refactor(hooks): create used3zoom hook

This commit is contained in:
moklick
2019-08-19 13:50:24 +02:00
parent 0bb555bf17
commit aac214ad5b
10 changed files with 41902 additions and 41893 deletions

View File

@@ -97,13 +97,6 @@ class App extends PureComponent {
});
}
onChange(elements) {
if (!this.graphInstance) {
return false;
}
// console.log('graph changed', elements);
}
onFitView() {
this.graphInstance.fitView();
}
@@ -155,7 +148,6 @@ class App extends PureComponent {
onNodeDragStop={onNodeDragStop}
style={{ width: '100%', height: '100%' }}
onLoad={graphInstance => this.onLoad(graphInstance)}
onChange={(elements) => this.onChange(elements)}
nodeTypes={{
special: SpecialNode,
text: InputNode