fix(subflows): handle selections correctly
This commit is contained in:
@@ -24,12 +24,6 @@ export type OnNodesChange = (nodes: NodeChange[]) => void;
|
||||
|
||||
export type OnEdgesChange = (nodes: EdgeChange[]) => void;
|
||||
|
||||
export interface SelectionRect extends Rect {
|
||||
startX: number;
|
||||
startY: number;
|
||||
draw: boolean;
|
||||
}
|
||||
|
||||
export type OnLoadParams<T = any> = {
|
||||
zoomIn: () => void;
|
||||
zoomOut: () => void;
|
||||
@@ -151,8 +145,6 @@ export type ReactFlowStore = {
|
||||
nodesSelectionActive: boolean;
|
||||
userSelectionActive: boolean;
|
||||
|
||||
userSelectionRect: SelectionRect;
|
||||
|
||||
connectionNodeId: string | null;
|
||||
connectionHandleId: string | null;
|
||||
connectionHandleType: HandleType | null;
|
||||
|
||||
+2
-2
@@ -104,9 +104,9 @@ export type NodeDimensionUpdate = {
|
||||
};
|
||||
|
||||
export type NodeInternalsItem = Node & {
|
||||
positionAbsolute?: XYPosition;
|
||||
handleBounds?: NodeHandleBounds;
|
||||
positionAbsolute: XYPosition;
|
||||
z: number;
|
||||
handleBounds?: NodeHandleBounds;
|
||||
isParent?: boolean;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user