chore(node-resizer): update

This commit is contained in:
moklick
2024-06-25 12:13:34 +02:00
parent 1a25a7da48
commit e22c1b9391
4 changed files with 145 additions and 129 deletions
@@ -67,11 +67,10 @@ function ResizeControl({
},
onChange: (change: XYResizerChange, childChanges: XYResizerChildChange[]) => {
const { triggerNodeChanges, nodeLookup, parentLookup, nodeOrigin } = store.getState();
const changes: NodeChange[] = [];
const nextPosition = { x: change.x, y: change.y };
const node = nodeLookup.get(id);
if (node && node.expandParent && node.parentId) {
const origin = node.origin ?? nodeOrigin;
const width = change.width ?? node.measured.width!;