Fix symbol's translate making the symbol overlap with the containers

This commit is contained in:
Eric NGUYEN 2022-10-04 15:40:59 +02:00
parent 2cb851866b
commit 7121f0aae5

View file

@ -33,7 +33,7 @@ export function Symbol(props: ISymbolProps): JSX.Element {
preserveAspectRatio="none"
style={{
fill: 'none',
transform: `scale(${1 / props.scale}) translateX(-50%) translateY(-50%)`,
transform: `scale(${1 / props.scale}) translateX(-50%) translateY(-100%)`,
transformBox: 'fill-box'
}}
x={props.model.x}