refactor(store): remove unused viewportBox

This commit is contained in:
moklick
2020-11-14 17:04:29 +01:00
parent 2420cf3689
commit c8d945f39b
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -42,7 +42,6 @@ type InitD3Zoom = {
export interface StoreModel {
width: number;
height: number;
viewportBox: Computed<StoreModel, Rect>;
transform: Transform;
elements: Elements;
visibleNodes: Computed<StoreModel, Node[]>;
@@ -140,7 +139,6 @@ export interface StoreModel {
export const storeModel: StoreModel = {
width: 0,
height: 0,
viewportBox: computed((state) => ({ x: 0, y: 0, width: state.width, height: state.height })),
transform: [0, 0, 1],
elements: [],
nodes: computed((state) => state.elements.filter(isNode)),