Fix dimension spacing depending on scale
This commit is contained in:
parent
063467fb58
commit
910aa4479b
5 changed files with 12 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue