refactor(store): rename nodeLookup to nodeInternals

This commit is contained in:
moklick
2021-11-04 18:13:21 +01:00
parent cc7debf8de
commit 996b1b51f5
13 changed files with 142 additions and 128 deletions
+3 -3
View File
@@ -457,7 +457,7 @@ export type InitD3ZoomPayload = {
export type OnNodesChange = (nodes: NodeChange[]) => void;
export type OnEdgesChange = (nodes: EdgeChange[]) => void;
export type NodeLookupItem = {
export type NodeInternalsItem = {
width?: number | null;
height?: number | null;
parentNode?: ElementId;
@@ -468,14 +468,14 @@ export type NodeLookupItem = {
isParentNode?: boolean;
};
export type NodeLookup = Map<ElementId, NodeLookupItem>;
export type NodeInternals = Map<ElementId, NodeInternalsItem>;
export interface ReactFlowState {
width: number;
height: number;
transform: Transform;
nodes: Node[];
nodeLookup: NodeLookup;
nodeInternals: NodeInternals;
edges: Edge[];
selectedNodesBbox: Rect;
onNodesChange: OnNodesChange | null;