fix: node type change not triggering recalculation of node dimensions

This commit is contained in:
Braks
2021-10-21 16:23:23 +02:00
parent 636eeff9fe
commit cd02dd0444
6 changed files with 23 additions and 7 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ export const initialState = (): FlowState => ({
height: 0,
},
transform: [0, 0, 1],
elements: [],
nodes: [],
edges: [],
selectedElements: undefined,
@@ -42,7 +43,7 @@ export const initialState = (): FlowState => ({
connectionHandleId: undefined,
connectionHandleType: 'source',
connectionPosition: { x: NaN, y: NaN },
connectionMode: ConnectionMode.Strict,
connectionMode: ConnectionMode.Loose,
snapGrid: [15, 15],
snapToGrid: false,