fix(store): add viewportBox

This commit is contained in:
moklick
2020-11-26 15:33:41 +01:00
parent 3a5ecfa666
commit 80b8016d5e
+1
View File
@@ -147,6 +147,7 @@ export const storeModel: StoreModel = {
edges: computed((state) => state.elements.filter(isEdge)),
selectedElements: null,
selectedNodesBbox: { x: 0, y: 0, width: 0, height: 0 },
viewportBox: computed((state) => ({ x: 0, y: 0, width: state.width, height: state.height })),
d3Zoom: null,
d3Selection: null,