refactor(api): use all elements instead of nodes only

This commit is contained in:
moklick
2019-07-24 23:44:48 +02:00
parent 9d44f26c68
commit 81746b2714
9 changed files with 38 additions and 25 deletions

View File

@@ -86,7 +86,7 @@ class App extends PureComponent {
<Graph
elements={this.state.elements}
onElementClick={node => console.log('clicked', node)}
onNodeRemove={nodeIds => console.log('remove', nodeIds)}
onElementsRemove={elements => console.log('remove', elements)}
style={{ width: '100%', height: '100%' }}
onLoad={graphInstance => this.onLoad(graphInstance)}
onChange={(elements) => this.onChange(elements)}