@xyflow/react 12.0.0-next.5 → 12.0.0-next.7
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/LICENSE +1 -1
- package/dist/esm/additional-components/Background/types.d.ts +13 -0
- package/dist/esm/additional-components/Background/types.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/Controls.d.ts +1 -1
- package/dist/esm/additional-components/Controls/Controls.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/types.d.ts +19 -2
- package/dist/esm/additional-components/Controls/types.d.ts.map +1 -1
- package/dist/esm/additional-components/MiniMap/types.d.ts +21 -0
- package/dist/esm/additional-components/MiniMap/types.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeResizer/types.d.ts +25 -0
- package/dist/esm/additional-components/NodeResizer/types.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeToolbar/types.d.ts +10 -0
- package/dist/esm/additional-components/NodeToolbar/types.d.ts.map +1 -1
- package/dist/esm/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +1 -1
- package/dist/esm/components/Handle/index.d.ts.map +1 -1
- package/dist/esm/components/Panel/index.d.ts +3 -0
- package/dist/esm/components/Panel/index.d.ts.map +1 -1
- package/dist/esm/container/ReactFlow/index.d.ts +3 -3
- package/dist/esm/hooks/useNodesEdgesState.d.ts +2 -2
- package/dist/esm/hooks/useNodesEdgesState.d.ts.map +1 -1
- package/dist/esm/hooks/useReactFlow.d.ts.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +168 -163
- package/dist/esm/index.mjs +168 -163
- package/dist/esm/types/changes.d.ts +8 -6
- package/dist/esm/types/changes.d.ts.map +1 -1
- package/dist/esm/types/component-props.d.ts +339 -1
- package/dist/esm/types/component-props.d.ts.map +1 -1
- package/dist/esm/types/edges.d.ts +11 -0
- package/dist/esm/types/edges.d.ts.map +1 -1
- package/dist/esm/types/general.d.ts +5 -3
- package/dist/esm/types/general.d.ts.map +1 -1
- package/dist/esm/types/instance.d.ts +1 -11
- package/dist/esm/types/instance.d.ts.map +1 -1
- package/dist/esm/utils/changes.d.ts +20 -2
- package/dist/esm/utils/changes.d.ts.map +1 -1
- package/dist/esm/utils/general.d.ts +2 -49
- package/dist/esm/utils/general.d.ts.map +1 -1
- package/dist/umd/additional-components/Background/types.d.ts +13 -0
- package/dist/umd/additional-components/Background/types.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/Controls.d.ts +1 -1
- package/dist/umd/additional-components/Controls/Controls.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/types.d.ts +19 -2
- package/dist/umd/additional-components/Controls/types.d.ts.map +1 -1
- package/dist/umd/additional-components/MiniMap/types.d.ts +21 -0
- package/dist/umd/additional-components/MiniMap/types.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeResizer/types.d.ts +25 -0
- package/dist/umd/additional-components/NodeResizer/types.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeToolbar/types.d.ts +10 -0
- package/dist/umd/additional-components/NodeToolbar/types.d.ts.map +1 -1
- package/dist/umd/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +1 -1
- package/dist/umd/components/Handle/index.d.ts.map +1 -1
- package/dist/umd/components/Panel/index.d.ts +3 -0
- package/dist/umd/components/Panel/index.d.ts.map +1 -1
- package/dist/umd/container/ReactFlow/index.d.ts +3 -3
- package/dist/umd/hooks/useNodesEdgesState.d.ts +2 -2
- package/dist/umd/hooks/useNodesEdgesState.d.ts.map +1 -1
- package/dist/umd/hooks/useReactFlow.d.ts.map +1 -1
- package/dist/umd/index.d.ts +2 -2
- package/dist/umd/index.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/types/changes.d.ts +8 -6
- package/dist/umd/types/changes.d.ts.map +1 -1
- package/dist/umd/types/component-props.d.ts +339 -1
- package/dist/umd/types/component-props.d.ts.map +1 -1
- package/dist/umd/types/edges.d.ts +11 -0
- package/dist/umd/types/edges.d.ts.map +1 -1
- package/dist/umd/types/general.d.ts +5 -3
- package/dist/umd/types/general.d.ts.map +1 -1
- package/dist/umd/types/instance.d.ts +1 -11
- package/dist/umd/types/instance.d.ts.map +1 -1
- package/dist/umd/utils/changes.d.ts +20 -2
- package/dist/umd/utils/changes.d.ts.map +1 -1
- package/dist/umd/utils/general.d.ts +2 -49
- package/dist/umd/utils/general.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EdgeLookup, NodeLookup } from '@xyflow/system';
|
|
1
2
|
import type { Node, Edge, EdgeChange, NodeChange, NodeSelectionChange, EdgeSelectionChange } from '../types';
|
|
2
3
|
export declare function handleParentExpand(updatedElements: any[], updateItem: any): void;
|
|
3
4
|
/**
|
|
@@ -20,7 +21,7 @@ export declare function handleParentExpand(updatedElements: any[], updateItem: a
|
|
|
20
21
|
<ReactFLow nodes={nodes} edges={edges} onNodesChange={onNodesChange} />
|
|
21
22
|
);
|
|
22
23
|
*/
|
|
23
|
-
export declare function applyNodeChanges<NodeType extends Node = Node>(changes: NodeChange[], nodes: NodeType[]): NodeType[];
|
|
24
|
+
export declare function applyNodeChanges<NodeType extends Node = Node>(changes: NodeChange<NodeType>[], nodes: NodeType[]): NodeType[];
|
|
24
25
|
/**
|
|
25
26
|
* Drop in function that applies edge changes to an array of edges.
|
|
26
27
|
* @public
|
|
@@ -41,7 +42,24 @@ export declare function applyNodeChanges<NodeType extends Node = Node>(changes:
|
|
|
41
42
|
<ReactFlow nodes={nodes} edges={edges} onEdgesChange={onEdgesChange} />
|
|
42
43
|
);
|
|
43
44
|
*/
|
|
44
|
-
export declare function applyEdgeChanges<EdgeType extends Edge = Edge>(changes: EdgeChange[], edges: EdgeType[]): EdgeType[];
|
|
45
|
+
export declare function applyEdgeChanges<EdgeType extends Edge = Edge>(changes: EdgeChange<EdgeType>[], edges: EdgeType[]): EdgeType[];
|
|
45
46
|
export declare const createSelectionChange: (id: string, selected: boolean) => NodeSelectionChange | EdgeSelectionChange;
|
|
46
47
|
export declare function getSelectionChanges(items: any[], selectedIds?: Set<string>, mutateItem?: boolean): NodeSelectionChange[] | EdgeSelectionChange[];
|
|
48
|
+
/**
|
|
49
|
+
* This function is used to find the changes between two sets of elements.
|
|
50
|
+
* It is used to determine which nodes or edges have been added, removed or replaced.
|
|
51
|
+
*
|
|
52
|
+
* @internal
|
|
53
|
+
* @param params.items = the next set of elements (nodes or edges)
|
|
54
|
+
* @param params.lookup = a lookup map of the current store elements
|
|
55
|
+
* @returns an array of changes
|
|
56
|
+
*/
|
|
57
|
+
export declare function getElementsDiffChanges({ items, lookup, }: {
|
|
58
|
+
items: Node[] | undefined;
|
|
59
|
+
lookup: NodeLookup<Node>;
|
|
60
|
+
}): NodeChange[];
|
|
61
|
+
export declare function getElementsDiffChanges({ items, lookup, }: {
|
|
62
|
+
items: Edge[] | undefined;
|
|
63
|
+
lookup: EdgeLookup;
|
|
64
|
+
}): EdgeChange[];
|
|
47
65
|
//# sourceMappingURL=changes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/utils/changes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE7G,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,GAAG,QA8CzE;
|
|
1
|
+
{"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/utils/changes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE7G,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,GAAG,QA8CzE;AAwHD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC3D,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,EAC/B,KAAK,EAAE,QAAQ,EAAE,GAChB,QAAQ,EAAE,CAEZ;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC3D,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,EAC/B,KAAK,EAAE,QAAQ,EAAE,GAChB,QAAQ,EAAE,CAEZ;AAED,eAAO,MAAM,qBAAqB,OAAQ,MAAM,YAAY,OAAO,KAAG,mBAAmB,GAAG,mBAI1F,CAAC;AAEH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,GAAG,EAAE,EACZ,WAAW,GAAE,GAAG,CAAC,MAAM,CAAa,EACpC,UAAU,UAAQ,GACjB,mBAAmB,EAAE,GAAG,mBAAmB,EAAE,CAmB/C;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;CAC1B,GAAG,UAAU,EAAE,CAAC;AACjB,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,UAAU,CAAC;CACpB,GAAG,UAAU,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ import type { Edge, Node } from '../types';
|
|
|
6
6
|
* @param element - The element to test
|
|
7
7
|
* @returns A boolean indicating whether the element is an Node
|
|
8
8
|
*/
|
|
9
|
-
export declare const isNode:
|
|
9
|
+
export declare const isNode: <NodeType extends Node<any, string | undefined> = Node<any, string | undefined>>(element: unknown) => element is NodeType;
|
|
10
10
|
/**
|
|
11
11
|
* Test whether an object is useable as an Edge
|
|
12
12
|
* @public
|
|
@@ -14,52 +14,5 @@ export declare const isNode: (element: any) => element is Node<any, string | und
|
|
|
14
14
|
* @param element - The element to test
|
|
15
15
|
* @returns A boolean indicating whether the element is an Edge
|
|
16
16
|
*/
|
|
17
|
-
export declare const isEdge: (element:
|
|
18
|
-
/**
|
|
19
|
-
* Pass in a node, and get connected nodes where edge.source === node.id
|
|
20
|
-
* @public
|
|
21
|
-
* @param node - The node to get the connected nodes from
|
|
22
|
-
* @param nodes - The array of all nodes
|
|
23
|
-
* @param edges - The array of all edges
|
|
24
|
-
* @returns An array of nodes that are connected over eges where the source is the given node
|
|
25
|
-
*/
|
|
26
|
-
export declare const getOutgoers: (node: Node<any, string | undefined> | {
|
|
27
|
-
id: string;
|
|
28
|
-
}, nodes: Node<any, string | undefined>[], edges: Edge<any>[]) => Node<any, string | undefined>[];
|
|
29
|
-
/**
|
|
30
|
-
* Pass in a node, and get connected nodes where edge.target === node.id
|
|
31
|
-
* @public
|
|
32
|
-
* @param node - The node to get the connected nodes from
|
|
33
|
-
* @param nodes - The array of all nodes
|
|
34
|
-
* @param edges - The array of all edges
|
|
35
|
-
* @returns An array of nodes that are connected over eges where the target is the given node
|
|
36
|
-
*/
|
|
37
|
-
export declare const getIncomers: (node: Node<any, string | undefined> | {
|
|
38
|
-
id: string;
|
|
39
|
-
}, nodes: Node<any, string | undefined>[], edges: Edge<any>[]) => Node<any, string | undefined>[];
|
|
40
|
-
/**
|
|
41
|
-
* This util is a convenience function to add a new Edge to an array of edges
|
|
42
|
-
* @remarks It also performs some validation to make sure you don't add an invalid edge or duplicate an existing one.
|
|
43
|
-
* @public
|
|
44
|
-
* @param edgeParams - Either an Edge or a Connection you want to add
|
|
45
|
-
* @param edges - The array of all current edges
|
|
46
|
-
* @returns A new array of edges with the new edge added
|
|
47
|
-
*/
|
|
48
|
-
export declare const addEdge: (edgeParams: Edge<any> | import("@xyflow/system").Connection, edges: Edge<any>[]) => Edge<any>[];
|
|
49
|
-
/**
|
|
50
|
-
* A handy utility to update an existing Edge with new properties
|
|
51
|
-
* @param oldEdge - The edge you want to update
|
|
52
|
-
* @param newConnection - The new connection you want to update the edge with
|
|
53
|
-
* @param edges - The array of all current edges
|
|
54
|
-
* @param options.shouldReplaceId - should the id of the old edge be replaced with the new connection id
|
|
55
|
-
* @returns the updated edges array
|
|
56
|
-
*/
|
|
57
|
-
export declare const updateEdge: (oldEdge: Edge<any>, newConnection: import("@xyflow/system").Connection, edges: Edge<any>[], options?: import("@xyflow/system").UpdateEdgeOptions | undefined) => Edge<any>[];
|
|
58
|
-
/**
|
|
59
|
-
* Get all connecting edges for a given set of nodes
|
|
60
|
-
* @param nodes - Nodes you want to get the connected edges for
|
|
61
|
-
* @param edges - All edges
|
|
62
|
-
* @returns Array of edges that connect any of the given nodes with each other
|
|
63
|
-
*/
|
|
64
|
-
export declare const getConnectedEdges: (nodes: Node<any, string | undefined>[], edges: Edge<any>[]) => Edge<any>[];
|
|
17
|
+
export declare const isEdge: <EdgeType extends Edge<any> = Edge<any>>(element: unknown) => element is EdgeType;
|
|
65
18
|
//# sourceMappingURL=general.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/utils/general.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/utils/general.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,4FAA2C,OAAO,wBACtC,CAAC;AAEhC;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,oDAA2C,OAAO,wBACtC,CAAC"}
|
|
@@ -6,15 +6,28 @@ export declare enum BackgroundVariant {
|
|
|
6
6
|
}
|
|
7
7
|
export type BackgroundProps = {
|
|
8
8
|
id?: string;
|
|
9
|
+
/** Color of the pattern */
|
|
9
10
|
color?: string;
|
|
11
|
+
/** Color of the background */
|
|
10
12
|
bgColor?: string;
|
|
13
|
+
/** Class applied to the container */
|
|
11
14
|
className?: string;
|
|
15
|
+
/** Class applied to the pattern */
|
|
12
16
|
patternClassName?: string;
|
|
17
|
+
/** Gap between repetitions of the pattern */
|
|
13
18
|
gap?: number | [number, number];
|
|
19
|
+
/** Size of a single pattern element */
|
|
14
20
|
size?: number;
|
|
21
|
+
/** Offset of the pattern */
|
|
15
22
|
offset?: number;
|
|
23
|
+
/** Line width of the Line pattern */
|
|
16
24
|
lineWidth?: number;
|
|
25
|
+
/** Variant of the pattern
|
|
26
|
+
* @example BackgroundVariant.Lines, BackgroundVariant.Dots, BackgroundVariant.Cross
|
|
27
|
+
* 'lines', 'dots', 'cross'
|
|
28
|
+
*/
|
|
17
29
|
variant?: BackgroundVariant;
|
|
30
|
+
/** Style applied to the container */
|
|
18
31
|
style?: CSSProperties;
|
|
19
32
|
};
|
|
20
33
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/Background/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/Background/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6CAA6C;IAC7C,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,uCAAuC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,qCAAqC;IACrC,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ControlProps } from './types';
|
|
3
|
-
declare function ControlsComponent({ style, showZoom, showFitView, showInteractive, fitViewOptions, onZoomIn, onZoomOut, onFitView, onInteractiveChange, className, children, position, }: ControlProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function ControlsComponent({ style, showZoom, showFitView, showInteractive, fitViewOptions, onZoomIn, onZoomOut, onFitView, onInteractiveChange, className, children, position, 'aria-label': ariaLabel, }: ControlProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare namespace ControlsComponent {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/Controls/Controls.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAQ5C,iBAAS,iBAAiB,CAAC,EACzB,KAAK,EACL,QAAe,EACf,WAAkB,EAClB,eAAsB,EACtB,cAAc,EACd,QAAQ,EACR,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,SAAS,EACT,QAAQ,EACR,QAAwB,
|
|
1
|
+
{"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/Controls/Controls.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAQ5C,iBAAS,iBAAiB,CAAC,EACzB,KAAK,EACL,QAAe,EACf,WAAkB,EAClB,eAAsB,EACtB,cAAc,EACd,QAAQ,EACR,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,SAAS,EACT,QAAQ,EACR,QAAwB,EACxB,YAAY,EAAE,SAAiC,GAChD,EAAE,YAAY,2CAmFd;kBAjGQ,iBAAiB;;;AAqG1B,eAAO,MAAM,QAAQ,+DAA0B,CAAC"}
|
|
@@ -1,17 +1,34 @@
|
|
|
1
|
-
import type { ButtonHTMLAttributes,
|
|
1
|
+
import type { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import type { PanelPosition } from '@xyflow/system';
|
|
3
3
|
import type { FitViewOptions } from '../../types';
|
|
4
|
-
export type ControlProps =
|
|
4
|
+
export type ControlProps = {
|
|
5
|
+
/** Show button for zoom in/out */
|
|
5
6
|
showZoom?: boolean;
|
|
7
|
+
/** Show button for fit view */
|
|
6
8
|
showFitView?: boolean;
|
|
9
|
+
/** Show button for toggling interactivity */
|
|
7
10
|
showInteractive?: boolean;
|
|
11
|
+
/** Options being used when fit view button is clicked */
|
|
8
12
|
fitViewOptions?: FitViewOptions;
|
|
13
|
+
/** Callback when zoom in button is clicked */
|
|
9
14
|
onZoomIn?: () => void;
|
|
15
|
+
/** Callback when zoom out button is clicked */
|
|
10
16
|
onZoomOut?: () => void;
|
|
17
|
+
/** Callback when fit view button is clicked */
|
|
11
18
|
onFitView?: () => void;
|
|
19
|
+
/** Callback when interactivity is toggled */
|
|
12
20
|
onInteractiveChange?: (interactiveStatus: boolean) => void;
|
|
21
|
+
/** Position of the controls on the pane
|
|
22
|
+
* @example PanelPosition.TopLeft, PanelPosition.TopRight,
|
|
23
|
+
* PanelPosition.BottomLeft, PanelPosition.BottomRight
|
|
24
|
+
*/
|
|
13
25
|
position?: PanelPosition;
|
|
14
26
|
children?: ReactNode;
|
|
27
|
+
/** Style applied to container */
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
/** ClassName applied to container */
|
|
30
|
+
className?: string;
|
|
31
|
+
'aria-label'?: string;
|
|
15
32
|
};
|
|
16
33
|
export type ControlButtonProps = ButtonHTMLAttributes<HTMLButtonElement>;
|
|
17
34
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/Controls/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/Controls/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG;IACzB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6CAA6C;IAC7C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,yDAAyD;IACzD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,6CAA6C;IAC7C,mBAAmB,CAAC,EAAE,CAAC,iBAAiB,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3D;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iCAAiC;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -3,23 +3,44 @@ import type { PanelPosition, XYPosition } from '@xyflow/system';
|
|
|
3
3
|
import type { Node } from '../../types';
|
|
4
4
|
export type GetMiniMapNodeAttribute<NodeType extends Node = Node> = (node: NodeType) => string;
|
|
5
5
|
export type MiniMapProps<NodeType extends Node = Node> = Omit<HTMLAttributes<SVGSVGElement>, 'onClick'> & {
|
|
6
|
+
/** Color of nodes on minimap */
|
|
6
7
|
nodeColor?: string | GetMiniMapNodeAttribute<NodeType>;
|
|
8
|
+
/** Stroke color of nodes on minimap */
|
|
7
9
|
nodeStrokeColor?: string | GetMiniMapNodeAttribute<NodeType>;
|
|
10
|
+
/** ClassName applied to nodes on minimap */
|
|
8
11
|
nodeClassName?: string | GetMiniMapNodeAttribute<NodeType>;
|
|
12
|
+
/** Border radius of nodes on minimap */
|
|
9
13
|
nodeBorderRadius?: number;
|
|
14
|
+
/** Stroke width of nodes on minimap */
|
|
10
15
|
nodeStrokeWidth?: number;
|
|
16
|
+
/** Component used to render nodes on minimap */
|
|
11
17
|
nodeComponent?: ComponentType<MiniMapNodeProps>;
|
|
18
|
+
/** Color of mask representing viewport */
|
|
12
19
|
maskColor?: string;
|
|
20
|
+
/** Stroke color of mask representing viewport */
|
|
13
21
|
maskStrokeColor?: string;
|
|
22
|
+
/** Stroke width of mask representing viewport */
|
|
14
23
|
maskStrokeWidth?: number;
|
|
24
|
+
/** Position of minimap on pane
|
|
25
|
+
* @example PanelPosition.TopLeft, PanelPosition.TopRight,
|
|
26
|
+
* PanelPosition.BottomLeft, PanelPosition.BottomRight
|
|
27
|
+
*/
|
|
15
28
|
position?: PanelPosition;
|
|
29
|
+
/** Callback caled when minimap is clicked*/
|
|
16
30
|
onClick?: (event: MouseEvent, position: XYPosition) => void;
|
|
31
|
+
/** Callback called when node on minimap is clicked */
|
|
17
32
|
onNodeClick?: (event: MouseEvent, node: NodeType) => void;
|
|
33
|
+
/** If true, viewport is pannable via mini map component */
|
|
18
34
|
pannable?: boolean;
|
|
35
|
+
/** If true, viewport is zoomable via mini map component */
|
|
19
36
|
zoomable?: boolean;
|
|
37
|
+
/** The aria-label attribute */
|
|
20
38
|
ariaLabel?: string | null;
|
|
39
|
+
/** Invert direction when panning the minimap viewport */
|
|
21
40
|
inversePan?: boolean;
|
|
41
|
+
/** Step size for zooming in/out on minimap */
|
|
22
42
|
zoomStep?: number;
|
|
43
|
+
/** Offset the viewport on the minmap, acts like a padding */
|
|
23
44
|
offsetScale?: number;
|
|
24
45
|
};
|
|
25
46
|
export type MiniMapNodes<NodeType extends Node = Node> = Pick<MiniMapProps<NodeType>, 'nodeColor' | 'nodeStrokeColor' | 'nodeClassName' | 'nodeBorderRadius' | 'nodeStrokeWidth' | 'nodeComponent'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/MiniMap/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,uBAAuB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,KAAK,MAAM,CAAC;AAE/F,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,GAAG;IACxG,SAAS,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IACvD,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC7D,aAAa,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MA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,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD,CAAC"}
|
|
@@ -1,25 +1,50 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import type { ControlPosition, ControlLinePosition, ResizeControlVariant, ShouldResize, OnResizeStart, OnResize, OnResizeEnd } from '@xyflow/system';
|
|
3
3
|
export type NodeResizerProps = {
|
|
4
|
+
/** Id of the node it is resizing
|
|
5
|
+
* @remarks optional if used inside custom node
|
|
6
|
+
*/
|
|
4
7
|
nodeId?: string;
|
|
8
|
+
/** Color of the resize handle */
|
|
5
9
|
color?: string;
|
|
10
|
+
/** ClassName applied to handle */
|
|
6
11
|
handleClassName?: string;
|
|
12
|
+
/** Style applied to handle */
|
|
7
13
|
handleStyle?: CSSProperties;
|
|
14
|
+
/** ClassName applied to line */
|
|
8
15
|
lineClassName?: string;
|
|
16
|
+
/** Style applied to line */
|
|
9
17
|
lineStyle?: CSSProperties;
|
|
18
|
+
/** Are the controls visible */
|
|
10
19
|
isVisible?: boolean;
|
|
20
|
+
/** Minimum width of node */
|
|
11
21
|
minWidth?: number;
|
|
22
|
+
/** Minimum height of node */
|
|
12
23
|
minHeight?: number;
|
|
24
|
+
/** Maximum width of node */
|
|
13
25
|
maxWidth?: number;
|
|
26
|
+
/** Maximum height of node */
|
|
14
27
|
maxHeight?: number;
|
|
28
|
+
/** Keep aspect ratio when resizing */
|
|
15
29
|
keepAspectRatio?: boolean;
|
|
30
|
+
/** Callback to determine if node should resize */
|
|
16
31
|
shouldResize?: ShouldResize;
|
|
32
|
+
/** Callback called when resizing starts */
|
|
17
33
|
onResizeStart?: OnResizeStart;
|
|
34
|
+
/** Callback called when resizing */
|
|
18
35
|
onResize?: OnResize;
|
|
36
|
+
/** Callback called when resizing ends */
|
|
19
37
|
onResizeEnd?: OnResizeEnd;
|
|
20
38
|
};
|
|
21
39
|
export type ResizeControlProps = Pick<NodeResizerProps, 'nodeId' | 'color' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight' | 'keepAspectRatio' | 'shouldResize' | 'onResizeStart' | 'onResize' | 'onResizeEnd'> & {
|
|
40
|
+
/** Position of the control
|
|
41
|
+
* @example ControlPosition.TopLeft, ControlPosition.TopRight,
|
|
42
|
+
* ControlPosition.BottomLeft, ControlPosition.BottomRight
|
|
43
|
+
*/
|
|
22
44
|
position?: ControlPosition;
|
|
45
|
+
/** Variant of the control
|
|
46
|
+
* @example ResizeControlVariant.Handle, ResizeControlVariant.Line
|
|
47
|
+
*/
|
|
23
48
|
variant?: ResizeControlVariant;
|
|
24
49
|
className?: string;
|
|
25
50
|
style?: CSSProperties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/NodeResizer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,gBAAgB,EACd,QAAQ,GACR,OAAO,GACP,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,eAAe,GACf,UAAU,GACV,aAAa,CAChB,GAAG;IACF,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,GAAG;IACxD,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/NodeResizer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf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AC;CAChC,CAAC"}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
2
|
import type { Position, Align } from '@xyflow/system';
|
|
3
3
|
export type NodeToolbarProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
/** Id of the node, or array of ids the toolbar should be displayed at */
|
|
4
5
|
nodeId?: string | string[];
|
|
6
|
+
/** If true, node toolbar is visible even if node is not selected */
|
|
5
7
|
isVisible?: boolean;
|
|
8
|
+
/** Position of the toolbar relative to the node
|
|
9
|
+
* @example Position.TopLeft, Position.TopRight,
|
|
10
|
+
* Position.BottomLeft, Position.BottomRight
|
|
11
|
+
*/
|
|
6
12
|
position?: Position;
|
|
13
|
+
/** Offset the toolbar from the node */
|
|
7
14
|
offset?: number;
|
|
15
|
+
/** Align the toolbar relative to the node
|
|
16
|
+
* @example Align.Start, Align.Center, Align.End
|
|
17
|
+
*/
|
|
8
18
|
align?: Align;
|
|
9
19
|
};
|
|
10
20
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/NodeToolbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC9D,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/additional-components/NodeToolbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC9D,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,oEAAoE;IACpE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeUpdateAnchors.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/EdgeWrapper/EdgeUpdateAnchors.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAGhE,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC3C,iBAAiB,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IACzD,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACrC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACrC,YAAY,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC/C,iBAAiB,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IACzD,eAAe,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IACrD,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C,GAAG,YAAY,CAAC;AAEjB,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,iBAAiB,EACjB,IAAI,EACJ,cAAc,EACd,cAAc,EACd,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,cAAc,EACd,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,cAAc,GACf,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"EdgeUpdateAnchors.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/EdgeWrapper/EdgeUpdateAnchors.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAGhE,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC3C,iBAAiB,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IACzD,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACrC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACrC,YAAY,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC/C,iBAAiB,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IACzD,eAAe,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IACrD,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C,GAAG,YAAY,CAAC;AAEjB,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,iBAAiB,EACjB,IAAI,EACJ,cAAc,EACd,cAAc,EACd,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,cAAc,EACd,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,cAAc,GACf,EAAE,sBAAsB,2CAmGxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/Handle/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAQ,cAAc,EAA4E,MAAM,OAAO,CAAC;AAGvH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/Handle/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAQ,cAAc,EAA4E,MAAM,OAAO,CAAC;AAGvH,OAAO,EAOL,KAAK,WAAW,EAGjB,MAAM,gBAAgB,CAAC;AAMxB,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,CAAC;AAuM5F,eAAO,MAAM,MAAM,0LAAwB,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import type { PanelPosition } from '@xyflow/system';
|
|
3
3
|
export type PanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
/** Set position of the panel
|
|
5
|
+
* @example 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'
|
|
6
|
+
*/
|
|
4
7
|
position?: PanelPosition;
|
|
5
8
|
children: ReactNode;
|
|
6
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/Panel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKpD,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACxD,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAIF,wBAAgB,KAAK,CAAC,EAAE,QAAqB,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,2CAa/F"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/Panel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKpD,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAIF,wBAAgB,KAAK,CAAC,EAAE,QAAqB,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,2CAa/F"}
|
|
@@ -17,7 +17,6 @@ declare const ReactFlow: import("react").ForwardRefExoticComponent<Omit<import("
|
|
|
17
17
|
onNodeDrag?: import("../../types").NodeDragHandler | undefined;
|
|
18
18
|
onNodeDragStop?: import("../../types").NodeDragHandler | undefined;
|
|
19
19
|
onEdgeClick?: ((event: import("react").MouseEvent<Element, MouseEvent>, edge: import("../../types").Edge<any>) => void) | undefined;
|
|
20
|
-
onEdgeUpdate?: import("../../types").OnEdgeUpdateFunc<any> | undefined;
|
|
21
20
|
onEdgeContextMenu?: import("../../types").EdgeMouseHandler | undefined;
|
|
22
21
|
onEdgeMouseEnter?: import("../../types").EdgeMouseHandler | undefined;
|
|
23
22
|
onEdgeMouseMove?: import("../../types").EdgeMouseHandler | undefined;
|
|
@@ -25,8 +24,9 @@ declare const ReactFlow: import("react").ForwardRefExoticComponent<Omit<import("
|
|
|
25
24
|
onEdgeDoubleClick?: import("../../types").EdgeMouseHandler | undefined;
|
|
26
25
|
onEdgeUpdateStart?: ((event: import("react").MouseEvent<Element, MouseEvent>, edge: import("../../types").Edge<any>, handleType: import("@xyflow/system").HandleType) => void) | undefined;
|
|
27
26
|
onEdgeUpdateEnd?: ((event: MouseEvent | TouchEvent, edge: import("../../types").Edge<any>, handleType: import("@xyflow/system").HandleType) => void) | undefined;
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
onEdgeUpdate?: import("../../types").OnEdgeUpdateFunc<any> | undefined;
|
|
28
|
+
onNodesChange?: import("../../types").OnNodesChange<import("../../types").Node<any, string | undefined>> | undefined;
|
|
29
|
+
onEdgesChange?: import("../../types").OnEdgesChange<import("../../types").Edge<any>> | undefined;
|
|
30
30
|
onNodesDelete?: import("../../types").OnNodesDelete | undefined;
|
|
31
31
|
onEdgesDelete?: import("../../types").OnEdgesDelete | undefined;
|
|
32
32
|
onDelete?: import("../../types").OnDelete | undefined;
|
|
@@ -7,7 +7,7 @@ import type { Node, NodeChange, Edge, EdgeChange } from '../types';
|
|
|
7
7
|
* @param initialNodes
|
|
8
8
|
* @returns an array [nodes, setNodes, onNodesChange]
|
|
9
9
|
*/
|
|
10
|
-
export declare function useNodesState<NodeType extends Node = Node>(initialNodes: NodeType[]): [NodeType[], Dispatch<SetStateAction<NodeType[]>>, (changes: NodeChange[]) => void];
|
|
10
|
+
export declare function useNodesState<NodeType extends Node = Node>(initialNodes: NodeType[]): [NodeType[], Dispatch<SetStateAction<NodeType[]>>, (changes: NodeChange<NodeType>[]) => void];
|
|
11
11
|
/**
|
|
12
12
|
* Hook for managing the state of edges - should only be used for prototyping / simple use cases.
|
|
13
13
|
*
|
|
@@ -15,5 +15,5 @@ export declare function useNodesState<NodeType extends Node = Node>(initialNodes
|
|
|
15
15
|
* @param initialEdges
|
|
16
16
|
* @returns an array [edges, setEdges, onEdgesChange]
|
|
17
17
|
*/
|
|
18
|
-
export declare function useEdgesState<EdgeType extends Edge = Edge>(initialEdges: EdgeType[]): [EdgeType[], Dispatch<SetStateAction<EdgeType[]>>, (changes: EdgeChange[]) => void];
|
|
18
|
+
export declare function useEdgesState<EdgeType extends Edge = Edge>(initialEdges: EdgeType[]): [EdgeType[], Dispatch<SetStateAction<EdgeType[]>>, (changes: EdgeChange<EdgeType>[]) => void];
|
|
19
19
|
//# sourceMappingURL=useNodesEdgesState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNodesEdgesState.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useNodesEdgesState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGlF,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEnE;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EACxD,YAAY,EAAE,QAAQ,EAAE,GACvB,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"useNodesEdgesState.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useNodesEdgesState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGlF,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEnE;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EACxD,YAAY,EAAE,QAAQ,EAAE,GACvB,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,IAAI,CAAC,CAQ/F;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EACxD,YAAY,EAAE,QAAQ,EAAE,GACvB,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,IAAI,CAAC,CAQ/F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReactFlow.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useReactFlow.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useReactFlow.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useReactFlow.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,iBAAiB,EAIjB,IAAI,EACJ,IAAI,EAGL,MAAM,UAAU,CAAC;AAGlB;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,KAAK,iBAAiB,CAC3G,QAAQ,EACR,QAAQ,CACT,CAqSA"}
|
package/dist/umd/index.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ export { useNodesData } from './hooks/useNodesData';
|
|
|
27
27
|
export { useConnection } from './hooks/useConnection';
|
|
28
28
|
export { useNodeId } from './contexts/NodeIdContext';
|
|
29
29
|
export { applyNodeChanges, applyEdgeChanges, handleParentExpand } from './utils/changes';
|
|
30
|
-
export { isNode, isEdge
|
|
30
|
+
export { isNode, isEdge } from './utils/general';
|
|
31
31
|
export * from './additional-components';
|
|
32
32
|
export * from './types';
|
|
33
33
|
export { type SmoothStepPathOptions, type BezierPathOptions, ConnectionLineType, type EdgeMarker, type EdgeMarkerType, MarkerType, type OnMove, type OnMoveStart, type OnMoveEnd, type Connection, type ConnectionStatus, ConnectionMode, type OnConnectStartParams, type OnConnectStart, type OnConnect, type OnConnectEnd, type IsValidConnection, type Viewport, type SnapGrid, PanOnScrollMode, type ViewportHelperFunctionOptions, type SetCenterOptions, type FitBoundsOptions, type PanelPosition, type ProOptions, SelectionMode, type SelectionRect, type OnError, type NodeProps, type NodeOrigin, type OnNodeDrag, type OnSelectionDrag, Position, type XYPosition, type XYZPosition, type Dimensions, type Rect, type Box, type Transform, type CoordinateExtent, type ColorMode, type ColorModeClass, type HandleType, type OnBeforeDelete, type ShouldResize, type OnResizeStart, type OnResize, type OnResizeEnd, type ControlPosition, type ControlLinePosition, type ResizeControlVariant, } from '@xyflow/system';
|
|
34
|
-
export { type GetBezierPathParams, getBezierEdgeCenter, getBezierPath, getEdgeCenter, type GetSmoothStepPathParams, getSmoothStepPath, type GetStraightPathParams, getStraightPath, getViewportForBounds, getNodesBounds, internalsSymbol, } from '@xyflow/system';
|
|
34
|
+
export { type GetBezierPathParams, getBezierEdgeCenter, getBezierPath, getEdgeCenter, type GetSmoothStepPathParams, getSmoothStepPath, type GetStraightPathParams, getStraightPath, getViewportForBounds, getNodesBounds, getIncomers, getOutgoers, addEdge, updateEdge, getConnectedEdges, internalsSymbol, } from '@xyflow/system';
|
|
35
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/umd/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/react/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE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