feat(rg): add onConnect callback

This commit is contained in:
moklick
2019-07-29 18:18:27 +02:00
parent cc14c724d0
commit 8fb45f4894
26 changed files with 434 additions and 120 deletions
+5 -1
View File
@@ -78,7 +78,11 @@ const GraphView = memo((props) => {
return (
<div className="react-graph__renderer">
<NodeRenderer nodeTypes={props.nodeTypes} />
<NodeRenderer
nodeTypes={props.nodeTypes}
onElementClick={props.onElementClick}
onConnect={props.onConnect}
/>
<EdgeRenderer
width={state.width}
height={state.height}