import * as React from 'react'; import { UncontrolledReactSVGPanZoom } from 'react-svg-pan-zoom'; import { Container } from './Elements/Container'; import { ContainerModel } from '../../Interfaces/ContainerModel'; import { Selector } from './Elements/Selector'; interface ISVGProps { width: number height: number children: ContainerModel | ContainerModel[] | null selected: ContainerModel | null } export class SVG extends React.PureComponent { public static ID = 'svg'; render(): JSX.Element { const xmlns = ''; const properties = { width: this.props.width, height: this.props.height, xmlns }; let children: React.ReactNode | React.ReactNode[] = []; if (Array.isArray(this.props.children)) { children = this.props.children.map(child => ); } else if (this.props.children !== null) { children = ; } return (
{ children }
); }; }