clamp position on adoptUserNode

This commit is contained in:
peterkogo
2024-08-22 11:00:16 +02:00
parent 04774e5011
commit ea8b9e0050
5 changed files with 32 additions and 15 deletions
+6 -1
View File
@@ -54,7 +54,12 @@ const createStore = ({
//
// When this happens, we take the note objects passed by the user and extend them with fields
// relevant for internal React Flow operations.
adoptUserNodes(nodes, nodeLookup, parentLookup, { nodeOrigin, elevateNodesOnSelect, checkEquality: true });
adoptUserNodes(nodes, nodeLookup, parentLookup, {
nodeOrigin,
nodeExtent,
elevateNodesOnSelect,
checkEquality: true,
});
set({ nodes });
},