From 05eb5d5ef0464ff2d37778f6e5850cbceaae0668 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Thu, 23 Feb 2023 11:06:31 +0100 Subject: [PATCH] Fix wrong margin on symbols --- src/Components/SVG/Elements/Symbol.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/SVG/Elements/Symbol.tsx b/src/Components/SVG/Elements/Symbol.tsx index c4552c7..dcdf707 100644 --- a/src/Components/SVG/Elements/Symbol.tsx +++ b/src/Components/SVG/Elements/Symbol.tsx @@ -1,7 +1,7 @@ import { Interweave } from 'interweave'; import * as React from 'react'; import { type ISymbolModel } from '../../../Interfaces/ISymbolModel'; -import { DIMENSION_MARGIN } from '../../../utils/default'; +import { SYMBOL_MARGIN } from '../../../utils/default'; interface ISymbolProps { model: ISymbolModel @@ -16,11 +16,11 @@ export function Symbol(props: ISymbolProps): JSX.Element { let x, y: number; if (props.model.isVertical) { - x = -DIMENSION_MARGIN; + x = -SYMBOL_MARGIN; y = props.model.offset; } else { x = props.model.offset; - y = -DIMENSION_MARGIN; + y = -SYMBOL_MARGIN; } if (hasSVG) {