refactor(nodes): no jumping nodes on start

This commit is contained in:
moklick
2020-08-20 14:54:23 +02:00
parent 190ab6a3fb
commit 58b0d88208
4 changed files with 6 additions and 2 deletions
+2
View File
@@ -37,6 +37,7 @@ function renderNode(
const isDraggable = !!(node.draggable || (nodesDraggable && typeof node.draggable === 'undefined'));
const isSelectable = !!(node.selectable || (elementsSelectable && typeof node.selectable === 'undefined'));
const isConnectable = !!(node.connectable || (nodesConnectable && typeof node.connectable === 'undefined'));
const isInitialized = node.__rf.width !== null && node.__rf.height !== null;
return (
<NodeComponent
@@ -64,6 +65,7 @@ function renderNode(
targetPosition={node.targetPosition}
selectNodesOnDrag={props.selectNodesOnDrag}
isHidden={node.isHidden}
isInitialized={isInitialized}
/>
);
}