refactor(nodes): add parentId to NodeProps closes #4061

This commit is contained in:
moklick
2024-06-03 17:23:46 +02:00
parent 5769ad2ab5
commit 3cc14e8ee5
7 changed files with 26 additions and 1 deletions
+3
View File
@@ -4,6 +4,9 @@
- update internals on node resizer updates
- re-observe node when `node.hidden` is toggled
- update `updateNodeData` argument type - thanks @ogroppo
- add `selectable`, `deletable` and `draggable` to node and edge props
- add `parentId` to node props
## 12.0.0-next.18
@@ -218,6 +218,7 @@ export function NodeWrapper<NodeType extends Node>({
dragging={dragging}
dragHandle={node.dragHandle}
zIndex={internals.z}
parentId={node.parentId}
{...nodeDimensions}
/>
</Provider>