[Update] Symbol alignement behavior + filtered Symbollist in ContainerForm.tsx

This commit is contained in:
Carl Fuchs 2023-02-22 12:10:01 +01:00
parent bf4f69a95f
commit a476017d99
8 changed files with 148 additions and 32 deletions

View file

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