arrange with initial positions

This commit is contained in:
Jan Prochazka
2022-01-06 12:36:07 +01:00
parent 0795eab05b
commit 71b89431ae
2 changed files with 9 additions and 2 deletions

View File

@@ -442,6 +442,8 @@
nodes[table.designerId] = node;
node.width = rect.right - rect.left;
node.height = rect.bottom - rect.top;
node.initX = (rect.right + rect.left) / 2;
node.initY = (rect.bottom + rect.top) / 2;
// console.log('RECT', rect);
}