|
|
|
@ -52,6 +52,9 @@ export class DrawLeftRight implements Command
|
|
|
|
|
let rightBoard = Board.CreateBoard(height, width - data.rightShrink, thickness, BoardType.Vertical);
|
|
|
|
|
rightBoard.Position = new Vector3(spacing - thickness, data.rightShrink);
|
|
|
|
|
|
|
|
|
|
leftBoard.SpaceCSNoClone.setPosition(0, 0, 0);
|
|
|
|
|
rightBoard.SpaceCSNoClone.setPosition(0, 0, 0);
|
|
|
|
|
|
|
|
|
|
return [leftBoard, rightBoard];
|
|
|
|
|
}
|
|
|
|
|
private InsertByPoint = async () =>
|
|
|
|
@ -99,14 +102,16 @@ export class DrawLeftRight implements Command
|
|
|
|
|
{
|
|
|
|
|
if (newWidth < width)
|
|
|
|
|
{
|
|
|
|
|
for (let br of brs) br.Width = newWidth;
|
|
|
|
|
brs[0].Width = newWidth - data.leftShrink;
|
|
|
|
|
brs[1].Width = newWidth - data.rightShrink;
|
|
|
|
|
|
|
|
|
|
parse.PlaceEntity.Width = newWidth;
|
|
|
|
|
return newWidth;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
for (let br of brs) br.Width = width;
|
|
|
|
|
brs[0].Width = width - data.leftShrink;
|
|
|
|
|
brs[1].Width = width - data.rightShrink;
|
|
|
|
|
|
|
|
|
|
parse.PlaceEntity.Width = width;
|
|
|
|
|
return width;
|
|
|
|
|