TRULY Fix symbol position on scale
This commit is contained in:
parent
7121f0aae5
commit
84f968a872
1 changed files with 5 additions and 5 deletions
|
@ -33,12 +33,12 @@ export function Symbol(props: ISymbolProps): JSX.Element {
|
||||||
preserveAspectRatio="none"
|
preserveAspectRatio="none"
|
||||||
style={{
|
style={{
|
||||||
fill: 'none',
|
fill: 'none',
|
||||||
transform: `scale(${1 / props.scale}) translateX(-50%) translateY(-100%)`,
|
transform: 'translateY(-100%) translateX(-50%)',
|
||||||
transformBox: 'fill-box'
|
transformBox: 'fill-box'
|
||||||
}}
|
}}
|
||||||
x={props.model.x}
|
x={props.model.x + props.model.width / 2}
|
||||||
y={-SYMBOL_MARGIN / props.scale}
|
y={-SYMBOL_MARGIN}
|
||||||
height={props.model.height}
|
height={props.model.height / props.scale}
|
||||||
width={props.model.width} />
|
width={props.model.width / props.scale} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue