feat(fitView): add padding option

This commit is contained in:
moklick
2019-07-26 00:57:03 +02:00
parent bb17c2fcb6
commit a6d191355a
5 changed files with 20 additions and 13 deletions

View File

@@ -61,7 +61,7 @@ class App extends PureComponent {
window.rg = graphInstance;
this.graphInstance = graphInstance;
this.graphInstance.fitView();
this.graphInstance.fitView({ padding: 0.1 });
this.setState({
graphLoaded: true
});