refactor(flow!): Change transform to viewport

* Change array type to object type and rename transform type to viewport
* Update examples & docs
This commit is contained in:
Braks
2022-04-11 11:30:10 +02:00
parent 47f5a761a1
commit fcdbc21d34
29 changed files with 255 additions and 633 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ const defaultState = (): State => ({
width: 0,
height: 0,
},
transform: [0, 0, 1],
viewport: { x: 0, y: 0, zoom: 1 },
d3Zoom: null,
d3Selection: null,