@xyflow/react 12.4.2 → 12.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/additional-components/Background/Background.d.ts +53 -0
- package/dist/esm/additional-components/Background/Background.d.ts.map +1 -1
- package/dist/esm/additional-components/Background/types.d.ts +11 -1
- package/dist/esm/additional-components/Background/types.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/ControlButton.d.ts +23 -0
- package/dist/esm/additional-components/Controls/ControlButton.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/Controls.d.ts +21 -0
- package/dist/esm/additional-components/Controls/Controls.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/types.d.ts +8 -1
- package/dist/esm/additional-components/Controls/types.d.ts.map +1 -1
- package/dist/esm/additional-components/MiniMap/MiniMap.d.ts +20 -0
- package/dist/esm/additional-components/MiniMap/MiniMap.d.ts.map +1 -1
- package/dist/esm/additional-components/MiniMap/MiniMapNodes.d.ts.map +1 -1
- package/dist/esm/additional-components/MiniMap/types.d.ts +11 -1
- package/dist/esm/additional-components/MiniMap/types.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeResizer/NodeResizeControl.d.ts +5 -0
- package/dist/esm/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeResizer/NodeResizer.d.ts +24 -0
- package/dist/esm/additional-components/NodeResizer/NodeResizer.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeResizer/types.d.ts +15 -3
- package/dist/esm/additional-components/NodeResizer/types.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeToolbar/NodeToolbar.d.ts +35 -0
- package/dist/esm/additional-components/NodeToolbar/NodeToolbar.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeToolbar/types.d.ts +7 -2
- package/dist/esm/additional-components/NodeToolbar/types.d.ts.map +1 -1
- package/dist/esm/components/BatchProvider/index.d.ts.map +1 -1
- package/dist/esm/components/BatchProvider/useQueue.d.ts.map +1 -1
- package/dist/esm/components/ConnectionLine/index.d.ts +4 -4
- package/dist/esm/components/ConnectionLine/index.d.ts.map +1 -1
- package/dist/esm/components/EdgeLabelRenderer/index.d.ts +40 -0
- package/dist/esm/components/EdgeLabelRenderer/index.d.ts.map +1 -1
- package/dist/esm/components/EdgeWrapper/index.d.ts +1 -1
- package/dist/esm/components/EdgeWrapper/index.d.ts.map +1 -1
- package/dist/esm/components/Edges/BaseEdge.d.ts +27 -0
- package/dist/esm/components/Edges/BaseEdge.d.ts.map +1 -1
- package/dist/esm/components/Edges/EdgeText.d.ts +26 -0
- package/dist/esm/components/Edges/EdgeText.d.ts.map +1 -1
- package/dist/esm/components/Edges/SimpleBezierEdge.d.ts +5 -0
- package/dist/esm/components/Edges/SimpleBezierEdge.d.ts.map +1 -1
- package/dist/esm/components/Edges/index.d.ts.map +1 -1
- package/dist/esm/components/Handle/index.d.ts +32 -4
- package/dist/esm/components/Handle/index.d.ts.map +1 -1
- package/dist/esm/components/NodeWrapper/index.d.ts +1 -1
- package/dist/esm/components/NodeWrapper/index.d.ts.map +1 -1
- package/dist/esm/components/NodeWrapper/useNodeObserver.d.ts.map +1 -1
- package/dist/esm/components/NodeWrapper/utils.d.ts.map +1 -1
- package/dist/esm/components/Nodes/utils.d.ts.map +1 -1
- package/dist/esm/components/Panel/index.d.ts +32 -4
- package/dist/esm/components/Panel/index.d.ts.map +1 -1
- package/dist/esm/components/ReactFlowProvider/index.d.ts +34 -0
- package/dist/esm/components/ReactFlowProvider/index.d.ts.map +1 -1
- package/dist/esm/components/SelectionListener/index.d.ts +4 -4
- package/dist/esm/components/SelectionListener/index.d.ts.map +1 -1
- package/dist/esm/components/StoreUpdater/index.d.ts.map +1 -1
- package/dist/esm/components/ViewportPortal/index.d.ts +25 -0
- package/dist/esm/components/ViewportPortal/index.d.ts.map +1 -1
- package/dist/esm/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -1
- package/dist/esm/container/NodeRenderer/index.d.ts.map +1 -1
- package/dist/esm/container/Pane/index.d.ts.map +1 -1
- package/dist/esm/container/ReactFlow/Wrapper.d.ts.map +1 -1
- package/dist/esm/container/ReactFlow/index.d.ts +21 -1
- package/dist/esm/container/ReactFlow/index.d.ts.map +1 -1
- package/dist/esm/contexts/NodeIdContext.d.ts +28 -0
- package/dist/esm/contexts/NodeIdContext.d.ts.map +1 -1
- package/dist/esm/hooks/useConnection.d.ts +20 -1
- package/dist/esm/hooks/useConnection.d.ts.map +1 -1
- package/dist/esm/hooks/useEdges.d.ts +13 -1
- package/dist/esm/hooks/useEdges.d.ts.map +1 -1
- package/dist/esm/hooks/useInternalNode.d.ts +21 -1
- package/dist/esm/hooks/useInternalNode.d.ts.map +1 -1
- package/dist/esm/hooks/useKeyPress.d.ts +19 -1
- package/dist/esm/hooks/useKeyPress.d.ts.map +1 -1
- package/dist/esm/hooks/useMoveSelectedNodes.d.ts.map +1 -1
- package/dist/esm/hooks/useNodeConnections.d.ts +17 -1
- package/dist/esm/hooks/useNodeConnections.d.ts.map +1 -1
- package/dist/esm/hooks/useNodes.d.ts +14 -1
- package/dist/esm/hooks/useNodes.d.ts.map +1 -1
- package/dist/esm/hooks/useNodesData.d.ts +14 -2
- package/dist/esm/hooks/useNodesData.d.ts.map +1 -1
- package/dist/esm/hooks/useNodesEdgesState.d.ts +62 -2
- package/dist/esm/hooks/useNodesEdgesState.d.ts.map +1 -1
- package/dist/esm/hooks/useNodesInitialized.d.ts +27 -1
- package/dist/esm/hooks/useNodesInitialized.d.ts.map +1 -1
- package/dist/esm/hooks/useOnSelectionChange.d.ts +37 -5
- package/dist/esm/hooks/useOnSelectionChange.d.ts.map +1 -1
- package/dist/esm/hooks/useOnViewportChange.d.ts +19 -1
- package/dist/esm/hooks/useOnViewportChange.d.ts.map +1 -1
- package/dist/esm/hooks/useReactFlow.d.ts +24 -1
- package/dist/esm/hooks/useReactFlow.d.ts.map +1 -1
- package/dist/esm/hooks/useStore.d.ts +23 -2
- package/dist/esm/hooks/useStore.d.ts.map +1 -1
- package/dist/esm/hooks/useUpdateNodeInternals.d.ts +39 -1
- package/dist/esm/hooks/useUpdateNodeInternals.d.ts.map +1 -1
- package/dist/esm/hooks/useViewport.d.ts +24 -1
- package/dist/esm/hooks/useViewport.d.ts.map +1 -1
- package/dist/esm/hooks/useViewportHelper.d.ts.map +1 -1
- package/dist/esm/index.js +1107 -198
- package/dist/esm/index.mjs +1107 -198
- package/dist/esm/store/index.d.ts.map +1 -1
- package/dist/esm/types/component-props.d.ts +112 -57
- package/dist/esm/types/component-props.d.ts.map +1 -1
- package/dist/esm/types/edges.d.ts +27 -2
- package/dist/esm/types/edges.d.ts.map +1 -1
- package/dist/esm/types/general.d.ts +48 -7
- package/dist/esm/types/general.d.ts.map +1 -1
- package/dist/esm/types/instance.d.ts +11 -1
- package/dist/esm/types/instance.d.ts.map +1 -1
- package/dist/esm/types/nodes.d.ts +46 -4
- package/dist/esm/types/nodes.d.ts.map +1 -1
- package/dist/esm/types/store.d.ts +2 -2
- package/dist/esm/types/store.d.ts.map +1 -1
- package/dist/esm/utils/changes.d.ts +45 -23
- package/dist/esm/utils/changes.d.ts.map +1 -1
- package/dist/esm/utils/general.d.ts +27 -3
- package/dist/esm/utils/general.d.ts.map +1 -1
- package/dist/umd/additional-components/Background/Background.d.ts +53 -0
- package/dist/umd/additional-components/Background/Background.d.ts.map +1 -1
- package/dist/umd/additional-components/Background/types.d.ts +11 -1
- package/dist/umd/additional-components/Background/types.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/ControlButton.d.ts +23 -0
- package/dist/umd/additional-components/Controls/ControlButton.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/Controls.d.ts +21 -0
- package/dist/umd/additional-components/Controls/Controls.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/types.d.ts +8 -1
- package/dist/umd/additional-components/Controls/types.d.ts.map +1 -1
- package/dist/umd/additional-components/MiniMap/MiniMap.d.ts +20 -0
- package/dist/umd/additional-components/MiniMap/MiniMap.d.ts.map +1 -1
- package/dist/umd/additional-components/MiniMap/MiniMapNodes.d.ts.map +1 -1
- package/dist/umd/additional-components/MiniMap/types.d.ts +11 -1
- package/dist/umd/additional-components/MiniMap/types.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts +5 -0
- package/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts +24 -0
- package/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeResizer/types.d.ts +15 -3
- package/dist/umd/additional-components/NodeResizer/types.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts +35 -0
- package/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeToolbar/types.d.ts +7 -2
- package/dist/umd/additional-components/NodeToolbar/types.d.ts.map +1 -1
- package/dist/umd/components/BatchProvider/index.d.ts.map +1 -1
- package/dist/umd/components/BatchProvider/useQueue.d.ts.map +1 -1
- package/dist/umd/components/ConnectionLine/index.d.ts +4 -4
- package/dist/umd/components/ConnectionLine/index.d.ts.map +1 -1
- package/dist/umd/components/EdgeLabelRenderer/index.d.ts +40 -0
- package/dist/umd/components/EdgeLabelRenderer/index.d.ts.map +1 -1
- package/dist/umd/components/EdgeWrapper/index.d.ts +1 -1
- package/dist/umd/components/EdgeWrapper/index.d.ts.map +1 -1
- package/dist/umd/components/Edges/BaseEdge.d.ts +27 -0
- package/dist/umd/components/Edges/BaseEdge.d.ts.map +1 -1
- package/dist/umd/components/Edges/EdgeText.d.ts +26 -0
- package/dist/umd/components/Edges/EdgeText.d.ts.map +1 -1
- package/dist/umd/components/Edges/SimpleBezierEdge.d.ts +5 -0
- package/dist/umd/components/Edges/SimpleBezierEdge.d.ts.map +1 -1
- package/dist/umd/components/Edges/index.d.ts.map +1 -1
- package/dist/umd/components/Handle/index.d.ts +32 -4
- package/dist/umd/components/Handle/index.d.ts.map +1 -1
- package/dist/umd/components/NodeWrapper/index.d.ts +1 -1
- package/dist/umd/components/NodeWrapper/index.d.ts.map +1 -1
- package/dist/umd/components/NodeWrapper/useNodeObserver.d.ts.map +1 -1
- package/dist/umd/components/NodeWrapper/utils.d.ts.map +1 -1
- package/dist/umd/components/Nodes/utils.d.ts.map +1 -1
- package/dist/umd/components/Panel/index.d.ts +32 -4
- package/dist/umd/components/Panel/index.d.ts.map +1 -1
- package/dist/umd/components/ReactFlowProvider/index.d.ts +34 -0
- package/dist/umd/components/ReactFlowProvider/index.d.ts.map +1 -1
- package/dist/umd/components/SelectionListener/index.d.ts +4 -4
- package/dist/umd/components/SelectionListener/index.d.ts.map +1 -1
- package/dist/umd/components/StoreUpdater/index.d.ts.map +1 -1
- package/dist/umd/components/ViewportPortal/index.d.ts +25 -0
- package/dist/umd/components/ViewportPortal/index.d.ts.map +1 -1
- package/dist/umd/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -1
- package/dist/umd/container/NodeRenderer/index.d.ts.map +1 -1
- package/dist/umd/container/Pane/index.d.ts.map +1 -1
- package/dist/umd/container/ReactFlow/Wrapper.d.ts.map +1 -1
- package/dist/umd/container/ReactFlow/index.d.ts +21 -1
- package/dist/umd/container/ReactFlow/index.d.ts.map +1 -1
- package/dist/umd/contexts/NodeIdContext.d.ts +28 -0
- package/dist/umd/contexts/NodeIdContext.d.ts.map +1 -1
- package/dist/umd/hooks/useConnection.d.ts +20 -1
- package/dist/umd/hooks/useConnection.d.ts.map +1 -1
- package/dist/umd/hooks/useEdges.d.ts +13 -1
- package/dist/umd/hooks/useEdges.d.ts.map +1 -1
- package/dist/umd/hooks/useInternalNode.d.ts +21 -1
- package/dist/umd/hooks/useInternalNode.d.ts.map +1 -1
- package/dist/umd/hooks/useKeyPress.d.ts +19 -1
- package/dist/umd/hooks/useKeyPress.d.ts.map +1 -1
- package/dist/umd/hooks/useMoveSelectedNodes.d.ts.map +1 -1
- package/dist/umd/hooks/useNodeConnections.d.ts +17 -1
- package/dist/umd/hooks/useNodeConnections.d.ts.map +1 -1
- package/dist/umd/hooks/useNodes.d.ts +14 -1
- package/dist/umd/hooks/useNodes.d.ts.map +1 -1
- package/dist/umd/hooks/useNodesData.d.ts +14 -2
- package/dist/umd/hooks/useNodesData.d.ts.map +1 -1
- package/dist/umd/hooks/useNodesEdgesState.d.ts +62 -2
- package/dist/umd/hooks/useNodesEdgesState.d.ts.map +1 -1
- package/dist/umd/hooks/useNodesInitialized.d.ts +27 -1
- package/dist/umd/hooks/useNodesInitialized.d.ts.map +1 -1
- package/dist/umd/hooks/useOnSelectionChange.d.ts +37 -5
- package/dist/umd/hooks/useOnSelectionChange.d.ts.map +1 -1
- package/dist/umd/hooks/useOnViewportChange.d.ts +19 -1
- package/dist/umd/hooks/useOnViewportChange.d.ts.map +1 -1
- package/dist/umd/hooks/useReactFlow.d.ts +24 -1
- package/dist/umd/hooks/useReactFlow.d.ts.map +1 -1
- package/dist/umd/hooks/useStore.d.ts +23 -2
- package/dist/umd/hooks/useStore.d.ts.map +1 -1
- package/dist/umd/hooks/useUpdateNodeInternals.d.ts +39 -1
- package/dist/umd/hooks/useUpdateNodeInternals.d.ts.map +1 -1
- package/dist/umd/hooks/useViewport.d.ts +24 -1
- package/dist/umd/hooks/useViewport.d.ts.map +1 -1
- package/dist/umd/hooks/useViewportHelper.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/store/index.d.ts.map +1 -1
- package/dist/umd/types/component-props.d.ts +112 -57
- package/dist/umd/types/component-props.d.ts.map +1 -1
- package/dist/umd/types/edges.d.ts +27 -2
- package/dist/umd/types/edges.d.ts.map +1 -1
- package/dist/umd/types/general.d.ts +48 -7
- package/dist/umd/types/general.d.ts.map +1 -1
- package/dist/umd/types/instance.d.ts +11 -1
- package/dist/umd/types/instance.d.ts.map +1 -1
- package/dist/umd/types/nodes.d.ts +46 -4
- package/dist/umd/types/nodes.d.ts.map +1 -1
- package/dist/umd/types/store.d.ts +2 -2
- package/dist/umd/types/store.d.ts.map +1 -1
- package/dist/umd/utils/changes.d.ts +45 -23
- package/dist/umd/utils/changes.d.ts.map +1 -1
- package/dist/umd/utils/general.d.ts +27 -3
- package/dist/umd/utils/general.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AACA,OAAO,EAcL,UAAU,EACV,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAA+C,MAAM,UAAU,CAAC;AAExG,QAAA,MAAM,WAAW;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AACA,OAAO,EAcL,UAAU,EACV,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAA+C,MAAM,UAAU,CAAC;AAExG,QAAA,MAAM,WAAW;;;;;;;;;;2GAmXd,CAAC;AAEJ,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -6,7 +6,8 @@ import type { OnSelectionChangeFunc, NodeTypes, EdgeTypes, Node, Edge, Connectio
|
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
8
|
export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends Edge = Edge> extends Omit<HTMLAttributes<HTMLDivElement>, 'onError'> {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* An array of nodes to render in a controlled flow.
|
|
10
11
|
* @example
|
|
11
12
|
* const nodes = [
|
|
12
13
|
* {
|
|
@@ -18,7 +19,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
18
19
|
* ];
|
|
19
20
|
*/
|
|
20
21
|
nodes?: NodeType[];
|
|
21
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* An array of edges to render in a controlled flow.
|
|
22
24
|
* @example
|
|
23
25
|
* const edges = [
|
|
24
26
|
* {
|
|
@@ -33,7 +35,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
33
35
|
defaultNodes?: NodeType[];
|
|
34
36
|
/** The initial edges to render in an uncontrolled flow. */
|
|
35
37
|
defaultEdges?: EdgeType[];
|
|
36
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Defaults to be applied to all new edges that are added to the flow.
|
|
37
40
|
*
|
|
38
41
|
* Properties on a new edge will override these defaults if they exist.
|
|
39
42
|
* @example
|
|
@@ -86,7 +89,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
86
89
|
onReconnect?: OnReconnect<EdgeType>;
|
|
87
90
|
onReconnectStart?: (event: ReactMouseEvent, edge: EdgeType, handleType: HandleType) => void;
|
|
88
91
|
onReconnectEnd?: (event: MouseEvent | TouchEvent, edge: EdgeType, handleType: HandleType) => void;
|
|
89
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* This event handler is called when a Node is updated
|
|
90
94
|
* @example // Use NodesState hook to create edges and get onNodesChange handler
|
|
91
95
|
* import ReactFlow, { useNodesState } from '@xyflow/react';
|
|
92
96
|
* const [edges, setNodes, onNodesChange] = useNodesState(initialNodes);
|
|
@@ -103,7 +107,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
103
107
|
* return (<ReactFlow onNodeChange={onNodeChange} {...rest} />)
|
|
104
108
|
*/
|
|
105
109
|
onNodesChange?: OnNodesChange<NodeType>;
|
|
106
|
-
/**
|
|
110
|
+
/**
|
|
111
|
+
* This event handler is called when a Edge is updated
|
|
107
112
|
* @example // Use EdgesState hook to create edges and get onEdgesChange handler
|
|
108
113
|
* import ReactFlow, { useEdgesState } from '@xyflow/react';
|
|
109
114
|
* const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);
|
|
@@ -135,7 +140,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
135
140
|
onSelectionStart?: (event: ReactMouseEvent) => void;
|
|
136
141
|
onSelectionEnd?: (event: ReactMouseEvent) => void;
|
|
137
142
|
onSelectionContextMenu?: (event: ReactMouseEvent, nodes: NodeType[]) => void;
|
|
138
|
-
/**
|
|
143
|
+
/**
|
|
144
|
+
* When a connection line is completed and two nodes are connected by the user, this event fires with the new connection.
|
|
139
145
|
*
|
|
140
146
|
* You can use the addEdge utility to convert the connection to a complete edge.
|
|
141
147
|
* @example // Use helper function to update edges onConnect
|
|
@@ -164,7 +170,7 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
164
170
|
/** This event handler gets called when a user stops panning or zooming the viewport */
|
|
165
171
|
onMoveEnd?: OnMoveEnd;
|
|
166
172
|
/** This event handler gets called when a user changes group of selected elements in the flow */
|
|
167
|
-
onSelectionChange?: OnSelectionChangeFunc
|
|
173
|
+
onSelectionChange?: OnSelectionChangeFunc<NodeType, EdgeType>;
|
|
168
174
|
/** This event handler gets called when user scroll inside the pane */
|
|
169
175
|
onPaneScroll?: (event?: WheelEvent) => void;
|
|
170
176
|
/** This event handler gets called when user clicks inside the pane */
|
|
@@ -177,17 +183,20 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
177
183
|
onPaneMouseMove?: (event: ReactMouseEvent) => void;
|
|
178
184
|
/** This event handler gets called when mouse leaves the pane */
|
|
179
185
|
onPaneMouseLeave?: (event: ReactMouseEvent) => void;
|
|
180
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* Distance that the mouse can move between mousedown/up that will trigger a click
|
|
181
188
|
* @default 0
|
|
182
189
|
*/
|
|
183
190
|
paneClickDistance?: number;
|
|
184
|
-
/**
|
|
191
|
+
/**
|
|
192
|
+
* Distance that the mouse can move between mousedown/up that will trigger a click
|
|
185
193
|
* @default 0
|
|
186
194
|
*/
|
|
187
195
|
nodeClickDistance?: number;
|
|
188
196
|
/** This handler gets called before the user deletes nodes or edges and provides a way to abort the deletion by returning false. */
|
|
189
197
|
onBeforeDelete?: OnBeforeDelete<NodeType, EdgeType>;
|
|
190
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* Custom node types to be available in a flow.
|
|
191
200
|
*
|
|
192
201
|
* React Flow matches a node's type to a component in the nodeTypes object.
|
|
193
202
|
* @example
|
|
@@ -196,7 +205,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
196
205
|
* const nodeTypes = { nameOfNodeType: CustomNode };
|
|
197
206
|
*/
|
|
198
207
|
nodeTypes?: NodeTypes;
|
|
199
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* Custom edge types to be available in a flow.
|
|
200
210
|
*
|
|
201
211
|
* React Flow matches an edge's type to a component in the edgeTypes object.
|
|
202
212
|
* @example
|
|
@@ -205,7 +215,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
205
215
|
* const edgeTypes = { nameOfEdgeType: CustomEdge };
|
|
206
216
|
*/
|
|
207
217
|
edgeTypes?: EdgeTypes;
|
|
208
|
-
/**
|
|
218
|
+
/**
|
|
219
|
+
* The type of edge path to use for connection lines.
|
|
209
220
|
*
|
|
210
221
|
* Although created edges can be of any type, React Flow needs to know what type of path to render for the connection line before the edge is created!
|
|
211
222
|
*/
|
|
@@ -213,20 +224,23 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
213
224
|
/** Styles to be applied to the connection line */
|
|
214
225
|
connectionLineStyle?: CSSProperties;
|
|
215
226
|
/** React Component to be used as a connection line */
|
|
216
|
-
connectionLineComponent?: ConnectionLineComponent
|
|
227
|
+
connectionLineComponent?: ConnectionLineComponent<NodeType>;
|
|
217
228
|
/** Styles to be applied to the container of the connection line */
|
|
218
229
|
connectionLineContainerStyle?: CSSProperties;
|
|
219
|
-
/**
|
|
230
|
+
/**
|
|
231
|
+
* 'strict' connection mode will only allow you to connect source handles to target handles.
|
|
220
232
|
*
|
|
221
233
|
* 'loose' connection mode will allow you to connect handles of any type to one another.
|
|
222
234
|
* @default 'strict'
|
|
223
235
|
*/
|
|
224
236
|
connectionMode?: ConnectionMode;
|
|
225
|
-
/**
|
|
237
|
+
/**
|
|
238
|
+
* Pressing down this key deletes all selected nodes & edges.
|
|
226
239
|
* @default 'Backspace'
|
|
227
240
|
*/
|
|
228
241
|
deleteKeyCode?: KeyCode | null;
|
|
229
|
-
/**
|
|
242
|
+
/**
|
|
243
|
+
* If a key is set, you can pan the viewport while that key is held down even if panOnScroll is set to false.
|
|
230
244
|
*
|
|
231
245
|
* By setting this prop to null you can disable this functionality.
|
|
232
246
|
* @default 'Space'
|
|
@@ -234,91 +248,110 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
234
248
|
selectionKeyCode?: KeyCode | null;
|
|
235
249
|
/** Select multiple elements with a selection box, without pressing down selectionKey */
|
|
236
250
|
selectionOnDrag?: boolean;
|
|
237
|
-
/**
|
|
251
|
+
/**
|
|
252
|
+
* When set to "partial", when the user creates a selection box by click and dragging nodes that are only partially in the box are still selected.
|
|
238
253
|
* @default 'full'
|
|
239
254
|
*/
|
|
240
255
|
selectionMode?: SelectionMode;
|
|
241
|
-
/**
|
|
256
|
+
/**
|
|
257
|
+
* If a key is set, you can pan the viewport while that key is held down even if panOnScroll is set to false.
|
|
242
258
|
*
|
|
243
259
|
* By setting this prop to null you can disable this functionality.
|
|
244
260
|
* @default 'Space'
|
|
245
261
|
*/
|
|
246
262
|
panActivationKeyCode?: KeyCode | null;
|
|
247
|
-
/**
|
|
263
|
+
/**
|
|
264
|
+
* Pressing down this key you can select multiple elements by clicking.
|
|
248
265
|
* @default 'Meta' for macOS, "Ctrl" for other systems
|
|
249
266
|
*/
|
|
250
267
|
multiSelectionKeyCode?: KeyCode | null;
|
|
251
|
-
/**
|
|
268
|
+
/**
|
|
269
|
+
* If a key is set, you can zoom the viewport while that key is held down even if panOnScroll is set to false.
|
|
252
270
|
*
|
|
253
271
|
* By setting this prop to null you can disable this functionality.
|
|
254
272
|
* @default 'Meta' for macOS, "Ctrl" for other systems
|
|
255
|
-
*
|
|
273
|
+
*
|
|
274
|
+
*/
|
|
256
275
|
zoomActivationKeyCode?: KeyCode | null;
|
|
257
276
|
/** Set this prop to make the flow snap to the grid */
|
|
258
277
|
snapToGrid?: boolean;
|
|
259
|
-
/**
|
|
278
|
+
/**
|
|
279
|
+
* Grid all nodes will snap to
|
|
260
280
|
* @example [20, 20]
|
|
261
281
|
*/
|
|
262
282
|
snapGrid?: SnapGrid;
|
|
263
|
-
/**
|
|
283
|
+
/**
|
|
284
|
+
* You can enable this optimisation to instruct Svelte Flow to only render nodes and edges that would be visible in the viewport.
|
|
264
285
|
*
|
|
265
286
|
* This might improve performance when you have a large number of nodes and edges but also adds an overhead.
|
|
266
287
|
* @default false
|
|
267
288
|
*/
|
|
268
289
|
onlyRenderVisibleElements?: boolean;
|
|
269
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* Controls if all nodes should be draggable
|
|
270
292
|
* @default true
|
|
271
293
|
*/
|
|
272
294
|
nodesDraggable?: boolean;
|
|
273
|
-
/**
|
|
295
|
+
/**
|
|
296
|
+
* Controls if all nodes should be connectable to each other
|
|
274
297
|
* @default true
|
|
275
298
|
*/
|
|
276
299
|
nodesConnectable?: boolean;
|
|
277
|
-
/**
|
|
300
|
+
/**
|
|
301
|
+
* Controls if all nodes should be focusable
|
|
278
302
|
* @default true
|
|
279
303
|
*/
|
|
280
304
|
nodesFocusable?: boolean;
|
|
281
|
-
/**
|
|
305
|
+
/**
|
|
306
|
+
* Defines nodes relative position to its coordinates
|
|
282
307
|
* @example
|
|
283
308
|
* [0, 0] // default, top left
|
|
284
309
|
* [0.5, 0.5] // center
|
|
285
310
|
* [1, 1] // bottom right
|
|
286
311
|
*/
|
|
287
312
|
nodeOrigin?: NodeOrigin;
|
|
288
|
-
/**
|
|
313
|
+
/**
|
|
314
|
+
* Controls if all edges should be focusable
|
|
289
315
|
* @default true
|
|
290
316
|
*/
|
|
291
317
|
edgesFocusable?: boolean;
|
|
292
|
-
/**
|
|
318
|
+
/**
|
|
319
|
+
* Controls if all edges should be updateable
|
|
293
320
|
* @default true
|
|
294
321
|
*/
|
|
295
322
|
edgesReconnectable?: boolean;
|
|
296
|
-
/**
|
|
323
|
+
/**
|
|
324
|
+
* Controls if all elements should (nodes & edges) be selectable
|
|
297
325
|
* @default true
|
|
298
326
|
*/
|
|
299
327
|
elementsSelectable?: boolean;
|
|
300
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* If true, nodes get selected on drag
|
|
301
330
|
* @default true
|
|
302
331
|
*/
|
|
303
332
|
selectNodesOnDrag?: boolean;
|
|
304
|
-
/**
|
|
333
|
+
/**
|
|
334
|
+
* Enableing this prop allows users to pan the viewport by clicking and dragging.
|
|
305
335
|
*
|
|
306
336
|
* You can also set this prop to an array of numbers to limit which mouse buttons can activate panning.
|
|
307
337
|
* @example [0, 2] // allows panning with the left and right mouse buttons
|
|
308
338
|
* [0, 1, 2, 3, 4] // allows panning with all mouse buttons
|
|
309
339
|
*/
|
|
310
340
|
panOnDrag?: boolean | number[];
|
|
311
|
-
/**
|
|
341
|
+
/**
|
|
342
|
+
* Minimum zoom level
|
|
312
343
|
* @default 0.5
|
|
313
344
|
*/
|
|
314
345
|
minZoom?: number;
|
|
315
|
-
/**
|
|
346
|
+
/**
|
|
347
|
+
* Maximum zoom level
|
|
316
348
|
* @default 2
|
|
317
349
|
*/
|
|
318
350
|
maxZoom?: number;
|
|
319
351
|
/** Controlled viewport to be used instead of internal one */
|
|
320
352
|
viewport?: Viewport;
|
|
321
|
-
/**
|
|
353
|
+
/**
|
|
354
|
+
* Sets the initial position and zoom of the viewport.
|
|
322
355
|
*
|
|
323
356
|
* If a default viewport is provided but fitView is enabled, the default viewport will be ignored.
|
|
324
357
|
* @example
|
|
@@ -332,23 +365,27 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
332
365
|
* Gets called when the viewport changes.
|
|
333
366
|
*/
|
|
334
367
|
onViewportChange?: (viewport: Viewport) => void;
|
|
335
|
-
/**
|
|
368
|
+
/**
|
|
369
|
+
* By default the viewport extends infinitely. You can use this prop to set a boundary.
|
|
336
370
|
*
|
|
337
371
|
* The first pair of coordinates is the top left boundary and the second pair is the bottom right.
|
|
338
372
|
* @example [[-1000, -10000], [1000, 1000]]
|
|
339
373
|
*/
|
|
340
374
|
translateExtent?: CoordinateExtent;
|
|
341
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* Disabling this prop will allow the user to scroll the page even when their pointer is over the flow.
|
|
342
377
|
* @default true
|
|
343
378
|
*/
|
|
344
379
|
preventScrolling?: boolean;
|
|
345
|
-
/**
|
|
380
|
+
/**
|
|
381
|
+
* By default nodes can be placed on an infinite flow. You can use this prop to set a boundary.
|
|
346
382
|
*
|
|
347
383
|
* The first pair of coordinates is the top left boundary and the second pair is the bottom right.
|
|
348
384
|
* @example [[-1000, -10000], [1000, 1000]]
|
|
349
385
|
*/
|
|
350
386
|
nodeExtent?: CoordinateExtent;
|
|
351
|
-
/**
|
|
387
|
+
/**
|
|
388
|
+
* Color of edge markers
|
|
352
389
|
* @example "#b1b1b7"
|
|
353
390
|
*/
|
|
354
391
|
defaultMarkerColor?: string;
|
|
@@ -356,17 +393,20 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
356
393
|
zoomOnScroll?: boolean;
|
|
357
394
|
/** Controls if the viewport should zoom by pinching on a touch screen */
|
|
358
395
|
zoomOnPinch?: boolean;
|
|
359
|
-
/**
|
|
396
|
+
/**
|
|
397
|
+
* Controls if the viewport should pan by scrolling inside the container
|
|
360
398
|
*
|
|
361
399
|
* Can be limited to a specific direction with panOnScrollMode
|
|
362
400
|
*/
|
|
363
401
|
panOnScroll?: boolean;
|
|
364
|
-
/**
|
|
402
|
+
/**
|
|
403
|
+
* Controls how fast viewport should be panned on scroll.
|
|
365
404
|
*
|
|
366
405
|
* Use togther with panOnScroll prop.
|
|
367
406
|
*/
|
|
368
407
|
panOnScrollSpeed?: number;
|
|
369
|
-
/**
|
|
408
|
+
/**
|
|
409
|
+
* This prop is used to limit the direction of panning when panOnScroll is enabled.
|
|
370
410
|
*
|
|
371
411
|
* The "free" option allows panning in any direction.
|
|
372
412
|
* @default "free"
|
|
@@ -381,7 +421,8 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
381
421
|
noPanClassName?: string;
|
|
382
422
|
/** If set, initial viewport will show all nodes & edges */
|
|
383
423
|
fitView?: boolean;
|
|
384
|
-
/**
|
|
424
|
+
/**
|
|
425
|
+
* Options to be used in combination with fitView
|
|
385
426
|
* @example
|
|
386
427
|
* const fitViewOptions = {
|
|
387
428
|
* padding: 0.1,
|
|
@@ -393,30 +434,35 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
393
434
|
* };
|
|
394
435
|
*/
|
|
395
436
|
fitViewOptions?: FitViewOptions;
|
|
396
|
-
/**
|
|
437
|
+
/**
|
|
438
|
+
*The connectOnClick option lets you click or tap on a source handle to start a connection
|
|
397
439
|
* and then click on a target handle to complete the connection.
|
|
398
440
|
*
|
|
399
441
|
* If you set this option to false, users will need to drag the connection line to the target
|
|
400
442
|
* handle to create a connection.
|
|
401
443
|
*/
|
|
402
444
|
connectOnClick?: boolean;
|
|
403
|
-
/**
|
|
445
|
+
/**
|
|
446
|
+
* Set position of the attribution
|
|
404
447
|
* @default 'bottom-right'
|
|
405
448
|
* @example 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'
|
|
406
449
|
*/
|
|
407
450
|
attributionPosition?: PanelPosition;
|
|
408
|
-
/**
|
|
451
|
+
/**
|
|
452
|
+
* By default, we render a small attribution in the corner of your flows that links back to the project.
|
|
409
453
|
*
|
|
410
454
|
* Anyone is free to remove this attribution whether they're a Pro subscriber or not
|
|
411
455
|
* but we ask that you take a quick look at our {@link https://reactflow.dev/learn/troubleshooting/remove-attribution | removing attribution guide}
|
|
412
456
|
* before doing so.
|
|
413
457
|
*/
|
|
414
458
|
proOptions?: ProOptions;
|
|
415
|
-
/**
|
|
459
|
+
/**
|
|
460
|
+
* Enabling this option will raise the z-index of nodes when they are selected.
|
|
416
461
|
* @default true
|
|
417
462
|
*/
|
|
418
463
|
elevateNodesOnSelect?: boolean;
|
|
419
|
-
/**
|
|
464
|
+
/**
|
|
465
|
+
* Enabling this option will raise the z-index of edges when they are selected.
|
|
420
466
|
* @default true
|
|
421
467
|
*/
|
|
422
468
|
elevateEdgesOnSelect?: boolean;
|
|
@@ -425,36 +471,43 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
425
471
|
* @default false
|
|
426
472
|
*/
|
|
427
473
|
disableKeyboardA11y?: boolean;
|
|
428
|
-
/**
|
|
474
|
+
/**
|
|
475
|
+
* You can enable this prop to automatically pan the viewport while dragging a node.
|
|
429
476
|
* @default true
|
|
430
477
|
*/
|
|
431
478
|
autoPanOnNodeDrag?: boolean;
|
|
432
|
-
/**
|
|
479
|
+
/**
|
|
480
|
+
* You can enable this prop to automatically pan the viewport while dragging a node.
|
|
433
481
|
* @default true
|
|
434
482
|
*/
|
|
435
483
|
autoPanOnConnect?: boolean;
|
|
436
|
-
/**
|
|
484
|
+
/**
|
|
485
|
+
* The speed at which the viewport pans while dragging a node or a selection box.
|
|
437
486
|
* @default 15
|
|
438
487
|
*/
|
|
439
488
|
autoPanSpeed?: number;
|
|
440
|
-
/**
|
|
489
|
+
/**
|
|
490
|
+
* You can enable this prop to automatically pan the viewport while making a new connection.
|
|
441
491
|
* @default true
|
|
442
492
|
*/
|
|
443
493
|
connectionRadius?: number;
|
|
444
|
-
/**
|
|
494
|
+
/**
|
|
495
|
+
* Ocassionally something may happen that causes Svelte Flow to throw an error.
|
|
445
496
|
*
|
|
446
497
|
* Instead of exploding your application, we log a message to the console and then call this event handler.
|
|
447
498
|
* You might use it for additional logging or to show a message to the user.
|
|
448
499
|
*/
|
|
449
500
|
onError?: OnError;
|
|
450
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* This callback can be used to validate a new connection
|
|
451
503
|
*
|
|
452
504
|
* If you return false, the edge will not be added to your flow.
|
|
453
505
|
* If you have custom connection logic its preferred to use this callback over the isValidConnection prop on the handle component for performance reasons.
|
|
454
506
|
* @default (connection: Connection) => true
|
|
455
507
|
*/
|
|
456
508
|
isValidConnection?: IsValidConnection<EdgeType>;
|
|
457
|
-
/**
|
|
509
|
+
/**
|
|
510
|
+
* With a threshold greater than zero you can control the distinction between node drag and click events.
|
|
458
511
|
*
|
|
459
512
|
* If threshold equals 1, you need to drag the node 1 pixel before a drag event is fired.
|
|
460
513
|
* @default 1
|
|
@@ -464,12 +517,14 @@ export interface ReactFlowProps<NodeType extends Node = Node, EdgeType extends E
|
|
|
464
517
|
width?: number;
|
|
465
518
|
/** Sets a fixed height for the flow */
|
|
466
519
|
height?: number;
|
|
467
|
-
/**
|
|
520
|
+
/**
|
|
521
|
+
* Controls color scheme used for styling the flow
|
|
468
522
|
* @default 'system'
|
|
469
523
|
* @example 'system' | 'light' | 'dark'
|
|
470
524
|
*/
|
|
471
525
|
colorMode?: ColorMode;
|
|
472
|
-
/**
|
|
526
|
+
/**
|
|
527
|
+
* If set true, some debug information will be logged to the console like which events are fired.
|
|
473
528
|
*
|
|
474
529
|
* @default undefined
|
|
475
530
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-props.d.ts","sourceRoot":"","sources":["../../src/types/component-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,IAAI,eAAe,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtG,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,eAAe,EACf,UAAU,EACV,aAAa,EACb,MAAM,EACN,WAAW,EACX,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,aAAa,EACb,OAAO,EACP,SAAS,EACT,QAAQ,EACT,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EACV,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,uBAAuB,EACvB,WAAW,EACX,MAAM,EACN,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,aAAa,EACb,QAAQ,EACR,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,GAAG,CAAC;AAEX;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,CACxF,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IACvD
|
|
1
|
+
{"version":3,"file":"component-props.d.ts","sourceRoot":"","sources":["../../src/types/component-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,IAAI,eAAe,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtG,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,eAAe,EACf,UAAU,EACV,aAAa,EACb,MAAM,EACN,WAAW,EACX,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,aAAa,EACb,OAAO,EACP,SAAS,EACT,QAAQ,EACT,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EACV,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,uBAAuB,EACvB,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E,OAAO,CAAC;IAClB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAChD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { CSSProperties, SVGAttributes, ReactNode, MouseEvent as ReactMouseEvent, ComponentType } from 'react';
|
|
2
2
|
import type { EdgeBase, BezierPathOptions, Position, SmoothStepPathOptions, DefaultEdgeOptionsBase, HandleType, Connection, ConnectionLineType, Handle, EdgePosition, StepPathOptions, OnError, FinalConnectionState } from '@xyflow/system';
|
|
3
3
|
import { EdgeTypes, InternalNode, Node } from '.';
|
|
4
|
+
/**
|
|
5
|
+
* @inline
|
|
6
|
+
*/
|
|
4
7
|
export type EdgeLabelOptions = {
|
|
5
8
|
label?: string | ReactNode;
|
|
6
9
|
labelStyle?: CSSProperties;
|
|
@@ -10,7 +13,8 @@ export type EdgeLabelOptions = {
|
|
|
10
13
|
labelBgBorderRadius?: number;
|
|
11
14
|
};
|
|
12
15
|
/**
|
|
13
|
-
*
|
|
16
|
+
* An `Edge` is the complete description with everything React Flow needs
|
|
17
|
+
* to know in order to render it.
|
|
14
18
|
* @public
|
|
15
19
|
*/
|
|
16
20
|
export type Edge<EdgeData extends Record<string, unknown> = Record<string, unknown>, EdgeType extends string | undefined = string | undefined> = EdgeBase<EdgeData, EdgeType> & EdgeLabelOptions & {
|
|
@@ -52,14 +56,21 @@ export type EdgeWrapperProps<EdgeType extends Edge = Edge> = {
|
|
|
52
56
|
onError?: OnError;
|
|
53
57
|
disableKeyboardA11y?: boolean;
|
|
54
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* Many properties on an [`Edge`](/api-reference/types/edge) are optional. When a new edge is created,
|
|
61
|
+
* the properties that are not provided will be filled in with the default values
|
|
62
|
+
* passed to the `defaultEdgeOptions` prop of the [`<ReactFlow />`](/api-reference/react-flow#defaultedgeoptions) component.
|
|
63
|
+
*/
|
|
55
64
|
export type DefaultEdgeOptions = DefaultEdgeOptionsBase<Edge>;
|
|
56
65
|
export type EdgeTextProps = SVGAttributes<SVGElement> & EdgeLabelOptions & {
|
|
57
66
|
x: number;
|
|
58
67
|
y: number;
|
|
59
68
|
};
|
|
60
69
|
/**
|
|
61
|
-
*
|
|
70
|
+
* When you implement a custom edge it is wrapped in a component that enables some
|
|
71
|
+
* basic functionality. The `EdgeProps` type is the props that are passed to this.
|
|
62
72
|
* @public
|
|
73
|
+
* @expand
|
|
63
74
|
*/
|
|
64
75
|
export type EdgeProps<EdgeType extends Edge = Edge> = Pick<EdgeType, 'id' | 'animated' | 'data' | 'style' | 'selected' | 'source' | 'target' | 'selectable' | 'deletable'> & EdgePosition & EdgeLabelOptions & {
|
|
65
76
|
sourceHandleId?: string | null;
|
|
@@ -72,6 +83,7 @@ export type EdgeProps<EdgeType extends Edge = Edge> = Pick<EdgeType, 'id' | 'ani
|
|
|
72
83
|
/**
|
|
73
84
|
* BaseEdge component props
|
|
74
85
|
* @public
|
|
86
|
+
* @expand
|
|
75
87
|
*/
|
|
76
88
|
export type BaseEdgeProps = Omit<SVGAttributes<SVGPathElement>, 'd'> & EdgeLabelOptions & {
|
|
77
89
|
/** Additional padding where interacting with an edge is still possible */
|
|
@@ -86,6 +98,7 @@ export type BaseEdgeProps = Omit<SVGAttributes<SVGPathElement>, 'd'> & EdgeLabel
|
|
|
86
98
|
/**
|
|
87
99
|
* Helper type for edge components that get exported by the library
|
|
88
100
|
* @public
|
|
101
|
+
* @expand
|
|
89
102
|
*/
|
|
90
103
|
export type EdgeComponentProps = EdgePosition & EdgeLabelOptions & {
|
|
91
104
|
id?: EdgeProps['id'];
|
|
@@ -102,29 +115,41 @@ export type EdgeComponentWithPathOptions<PathOptions> = EdgeComponentProps & {
|
|
|
102
115
|
/**
|
|
103
116
|
* BezierEdge component props
|
|
104
117
|
* @public
|
|
118
|
+
* @expand
|
|
105
119
|
*/
|
|
106
120
|
export type BezierEdgeProps = EdgeComponentWithPathOptions<BezierPathOptions>;
|
|
107
121
|
/**
|
|
108
122
|
* SmoothStepEdge component props
|
|
109
123
|
* @public
|
|
124
|
+
* @expand
|
|
110
125
|
*/
|
|
111
126
|
export type SmoothStepEdgeProps = EdgeComponentWithPathOptions<SmoothStepPathOptions>;
|
|
112
127
|
/**
|
|
113
128
|
* StepEdge component props
|
|
114
129
|
* @public
|
|
130
|
+
* @expand
|
|
115
131
|
*/
|
|
116
132
|
export type StepEdgeProps = EdgeComponentWithPathOptions<StepPathOptions>;
|
|
117
133
|
/**
|
|
118
134
|
* StraightEdge component props
|
|
119
135
|
* @public
|
|
136
|
+
* @expand
|
|
120
137
|
*/
|
|
121
138
|
export type StraightEdgeProps = Omit<EdgeComponentProps, 'sourcePosition' | 'targetPosition'>;
|
|
122
139
|
/**
|
|
123
140
|
* SimpleBezier component props
|
|
124
141
|
* @public
|
|
142
|
+
* @expand
|
|
125
143
|
*/
|
|
126
144
|
export type SimpleBezierEdgeProps = EdgeComponentProps;
|
|
127
145
|
export type OnReconnect<EdgeType extends Edge = Edge> = (oldEdge: EdgeType, newConnection: Connection) => void;
|
|
146
|
+
/**
|
|
147
|
+
* If you want to render a custom component for connection lines, you can set the
|
|
148
|
+
* `connectionLineComponent` prop on the [`<ReactFlow />`](/api-reference/react-flow#connection-connectionLineComponent)
|
|
149
|
+
* component. The `ConnectionLineComponentProps` are passed to your custom component.
|
|
150
|
+
*
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
128
153
|
export type ConnectionLineComponentProps<NodeType extends Node = Node> = {
|
|
129
154
|
connectionLineStyle?: CSSProperties;
|
|
130
155
|
connectionLineType: ConnectionLineType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edges.d.ts","sourceRoot":"","sources":["../../src/types/edges.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,IAAI,eAAe,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACnH,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACrB,sBAAsB,EACtB,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,MAAM,EACN,YAAY,EACZ,eAAe,EACf,OAAO,EACP,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"edges.d.ts","sourceRoot":"","sources":["../../src/types/edges.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,IAAI,eAAe,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACnH,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACrB,sBAAsB,EACtB,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,MAAM,EACN,YAAY,EACZ,eAAe,EACf,OAAO,EACP,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,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