refactor(elements): split edges and nodes
This commit is contained in:
+2
-4
@@ -6,12 +6,10 @@ export const initialState: ReactFlowState = {
|
||||
width: 0,
|
||||
height: 0,
|
||||
transform: [0, 0, 1],
|
||||
elements: [],
|
||||
// nodes: computed((state) => state.elements.filter(isNode)),
|
||||
// edges: computed((state) => state.elements.filter(isEdge)),
|
||||
nodes: [],
|
||||
edges: [],
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user