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
+1 -1
View File
@@ -62,7 +62,7 @@ const GraphView = memo((props) => {
props.onLoad({
nodes: state.nodes,
edges: state.edges,
fitView: () => dispatch(fitView()),
fitView: opts => dispatch(fitView(opts)),
zoomIn: () => dispatch(zoomIn()),
zoomOut: () => dispatch(zoomOut())
});