refactor(nodelookup): add treelevel

This commit is contained in:
moklick
2021-11-03 10:03:23 +01:00
parent 248b563231
commit 7333873822
5 changed files with 34 additions and 12 deletions
+3 -1
View File
@@ -236,11 +236,13 @@ const NodeRenderer = (props: NodeRendererProps) => {
});
}, []);
console.log(nodeLookup);
return (
<div className="react-flow__nodes" style={transformStyle}>
<MemoizedNodes
nodes={nodes}
nodeLookup={nodeLookup.current}
nodeLookup={nodeLookup}
snapToGrid={snapToGrid}
snapGrid={snapGrid}
nodesDraggable={nodesDraggable}