Remove usage of scale for symbols + Remove shenanigans with multipliers

This commit is contained in:
Eric NGUYEN 2023-02-23 10:57:27 +01:00
parent a476017d99
commit 1c8cebf0f5
4 changed files with 25 additions and 85 deletions

View file

@ -8,7 +8,7 @@ export function ApplySymbol(containers: Map<string, IContainerModel>,
symbol: ISymbolModel): IContainerModel {
if (symbol.isVertical) {
container.properties.y = TransformY(symbol.offset,
symbol.height * 2,
symbol.height,
symbol.config.PositionReference);
container.properties.y = RestoreY(container.properties.y,
container.properties.height,
@ -21,7 +21,10 @@ export function ApplySymbol(containers: Map<string, IContainerModel>,
container.properties.y = y;
return container;
} else {
container.properties.x = TransformX(symbol.offset, symbol.width * 2, symbol.config.PositionReference);
container.properties.x = TransformX(
symbol.offset,
symbol.width,
symbol.config.PositionReference);
container.properties.x = RestoreX(container.properties.x,
container.properties.width,
container.properties.positionReference);