diff --git a/src/Components/SVG/Elements/DimensionLayer.tsx b/src/Components/SVG/Elements/DimensionLayer.tsx index b366819..6a78deb 100644 --- a/src/Components/SVG/Elements/DimensionLayer.tsx +++ b/src/Components/SVG/Elements/DimensionLayer.tsx @@ -194,7 +194,7 @@ function AddHorizontalSymbolDimension( const spacing = DIMENSION_MARGIN; const position = spacing * (depth + 1) / maxDepth; - const offset = SYMBOL_DIMENSION_MARGIN + position / scale; + const offset = (SYMBOL_DIMENSION_MARGIN + position) / scale; const text = width .toFixed(0) .toString(); @@ -225,7 +225,7 @@ function AddVerticalSymbolDimension( const spacing = DIMENSION_MARGIN; const position = spacing * (depth + 1) / maxDepth; - const offset = SYMBOL_DIMENSION_MARGIN + position / scale; + const offset = (SYMBOL_DIMENSION_MARGIN + position) / scale; const text = height .toFixed(0) .toString();