Fix additional margin not taking into account in the scaling
This commit is contained in:
parent
63714b3520
commit
6d4938a487
1 changed files with 2 additions and 2 deletions
|
@ -194,7 +194,7 @@ function AddHorizontalSymbolDimension(
|
||||||
|
|
||||||
const spacing = DIMENSION_MARGIN;
|
const spacing = DIMENSION_MARGIN;
|
||||||
const position = spacing * (depth + 1) / maxDepth;
|
const position = spacing * (depth + 1) / maxDepth;
|
||||||
const offset = SYMBOL_DIMENSION_MARGIN + position / scale;
|
const offset = (SYMBOL_DIMENSION_MARGIN + position) / scale;
|
||||||
const text = width
|
const text = width
|
||||||
.toFixed(0)
|
.toFixed(0)
|
||||||
.toString();
|
.toString();
|
||||||
|
@ -225,7 +225,7 @@ function AddVerticalSymbolDimension(
|
||||||
|
|
||||||
const spacing = DIMENSION_MARGIN;
|
const spacing = DIMENSION_MARGIN;
|
||||||
const position = spacing * (depth + 1) / maxDepth;
|
const position = spacing * (depth + 1) / maxDepth;
|
||||||
const offset = SYMBOL_DIMENSION_MARGIN + position / scale;
|
const offset = (SYMBOL_DIMENSION_MARGIN + position) / scale;
|
||||||
const text = height
|
const text = height
|
||||||
.toFixed(0)
|
.toFixed(0)
|
||||||
.toString();
|
.toString();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue