Implement basic selector + fix text position
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Siklos 2022-08-03 23:59:53 +02:00
parent 42cd768cf4
commit 7236fc85bf
4 changed files with 59 additions and 7 deletions

View file

@ -1,10 +1,11 @@
import * as React from 'react';
import { ReactSVGPanZoom, Tool, Value, TOOL_PAN } from 'react-svg-pan-zoom';
import { Container } from './Elements/Container';
import { DimensionLayer } from './Elements/DimensionLayer';
import { Selector } from './Elements/Selector';
interface ISVGProps {
children: Container | Container[] | null,
selected: Container | null
}
interface ISVGState {
@ -80,6 +81,7 @@ export class SVG extends React.Component<ISVGProps> {
>
<svg ref={this.svg} {...properties}>
{ children }
<Selector selected={this.props.selected} />
</svg>
</ReactSVGPanZoom>
);