From 3684a34d3b7dfde0c714c930836aa89386f31346 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Wed, 2 Nov 2022 12:23:45 +0100 Subject: [PATCH] Fix depth dimension bottom position --- src/Components/SVG/Elements/DepthDimensionLayer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/SVG/Elements/DepthDimensionLayer.tsx b/src/Components/SVG/Elements/DepthDimensionLayer.tsx index 15bd78e..ec93d9c 100644 --- a/src/Components/SVG/Elements/DepthDimensionLayer.tsx +++ b/src/Components/SVG/Elements/DepthDimensionLayer.tsx @@ -74,7 +74,7 @@ function AddNewDimension(currentDepth: number, min: number, max: number, lastY: const id = `dim-depth-${currentDepth}`; const xStart = min; const xEnd = max; - const y = (lastY + (DIMENSION_MARGIN * (currentDepth + 1))) / scale; + const y = lastY + (DIMENSION_MARGIN * (currentDepth + 1)) / scale; const strokeWidth = 1; const width = xEnd - xStart; const text = width