Implement basic selector + fix text position
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
42cd768cf4
commit
7236fc85bf
4 changed files with 59 additions and 7 deletions
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue