Fix dimension spacing depending on scale

This commit is contained in:
Eric NGUYEN 2022-09-13 09:46:02 +02:00
parent 063467fb58
commit 910aa4479b
5 changed files with 12 additions and 6 deletions

View file

@ -70,7 +70,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));
const y = (lastY + (DIMENSION_MARGIN * (currentDepth + 1))) / scale;
const strokeWidth = 1;
const width = xEnd - xStart;
const text = width