fixed NodeResizer for various NodeOrigins

This commit is contained in:
peterkogo
2024-02-28 15:55:55 +01:00
parent 966531ec39
commit 06f1fc4f73
3 changed files with 66 additions and 46 deletions
@@ -50,12 +50,13 @@ function ResizeControl({
domNode: resizeControlRef.current,
nodeId: id,
getStoreItems: () => {
const { nodeLookup, transform, snapGrid, snapToGrid } = store.getState();
const { nodeLookup, transform, snapGrid, snapToGrid, nodeOrigin } = store.getState();
return {
nodeLookup,
transform,
snapGrid,
snapToGrid,
nodeOrigin,
};
},
onChange: (change: XYResizerChange, childChanges: XYResizerChildChange[]) => {