feat(reactflowInstance): add zoomTo function closes #433

This commit is contained in:
moklick
2020-08-19 19:12:28 +02:00
parent ecc4ae8b07
commit 23660b5903
3 changed files with 14 additions and 3 deletions
+1
View File
@@ -182,6 +182,7 @@ export type ProjectFunc = (position: XYPosition) => XYPosition;
export type OnLoadParams = {
zoomIn: () => void;
zoomOut: () => void;
zoomTo: (zoomLevel: number) => void;
fitView: FitViewFunc;
project: ProjectFunc;
getElements: () => Elements;