feat(fitView): add padding option
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user