refactor(core): merge defaultZoom & defaultPosition to defaultViewport

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-19 20:25:54 +01:00
committed by Braks
parent 9bc88a0504
commit 8b2a21bc07
4 changed files with 5 additions and 10 deletions
+1 -2
View File
@@ -66,8 +66,7 @@ const defaultState = (): State => ({
panOnDrag: true,
edgeUpdaterRadius: 10,
onlyRenderVisibleElements: false,
defaultZoom: 1,
defaultPosition: [0, 0],
defaultViewport: { x: 0, y: 0, zoom: 1 },
nodesSelectionActive: false,
userSelectionActive: false,