refactor(nodes): only use node internals

This commit is contained in:
moklick
2021-11-18 13:01:11 +01:00
parent f0e79c634a
commit 0974aa5732
21 changed files with 171 additions and 151 deletions
-1
View File
@@ -134,7 +134,6 @@ export interface ReactFlowState {
width: number;
height: number;
transform: Transform;
nodes: Node[];
nodeInternals: NodeInternals;
edges: Edge[];
selectedNodesBbox: Rect;
+1 -6
View File
@@ -101,12 +101,7 @@ export type NodeDimensionUpdate = {
forceUpdate?: boolean;
};
export type NodeInternalsItem = {
id?: string;
width?: number | null;
height?: number | null;
parentNode?: string;
position?: XYPosition;
export type NodeInternalsItem = Node & {
positionAbsolute?: XYPosition;
handleBounds?: NodeHandleBounds;
z?: number;