- Clean up some css class - Fix wrong order when applying flex - Fix Replace behavior not working because previous container was still existing - Disable hard rigid behavior which disallow two container to overlap - Add ENABLE_FLEX, ENABLE_HARD_RIGID ENABLE_SWAP - Add missing form properties with dimensions - Update readme
23 lines
650 B
TypeScript
23 lines
650 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
import { App } from './Components/App/App';
|
|
import './index.scss';
|
|
|
|
function RenderRoot(root: Element | Document): void {
|
|
ReactDOM.createRoot(root.querySelector('#root') as HTMLDivElement).render(
|
|
<React.StrictMode>
|
|
<App root={root}/>
|
|
</React.StrictMode>
|
|
);
|
|
}
|
|
|
|
// Specific for Modeler apps
|
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
namespace SVGLayoutDesigner {
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
export const Render = RenderRoot;
|
|
}
|
|
|
|
(window as any).SVGLayoutDesigner = SVGLayoutDesigner;
|
|
|
|
RenderRoot(document);
|