@xyflow/react 12.5.2 → 12.5.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/base.css +2 -2
- package/dist/esm/additional-components/Background/types.d.ts +9 -9
- package/dist/esm/additional-components/Background/types.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 +65 -19
- package/dist/esm/additional-components/MiniMap/types.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeResizer/types.d.ts +37 -18
- package/dist/esm/additional-components/NodeResizer/types.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeToolbar/types.d.ts +6 -5
- 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/Panel/index.d.ts +5 -5
- package/dist/esm/components/Panel/index.d.ts.map +1 -1
- package/dist/esm/index.js +14 -7
- package/dist/esm/index.mjs +14 -7
- package/dist/esm/types/edges.d.ts +16 -8
- package/dist/esm/types/edges.d.ts.map +1 -1
- package/dist/esm/types/general.d.ts +11 -6
- package/dist/esm/types/general.d.ts.map +1 -1
- package/dist/esm/types/instance.d.ts +23 -8
- package/dist/esm/types/instance.d.ts.map +1 -1
- package/dist/style.css +2 -2
- package/dist/umd/additional-components/Background/types.d.ts +9 -9
- package/dist/umd/additional-components/Background/types.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 +65 -19
- package/dist/umd/additional-components/MiniMap/types.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeResizer/types.d.ts +37 -18
- package/dist/umd/additional-components/NodeResizer/types.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeToolbar/types.d.ts +6 -5
- 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/Panel/index.d.ts +5 -5
- package/dist/umd/components/Panel/index.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/types/edges.d.ts +16 -8
- package/dist/umd/types/edges.d.ts.map +1 -1
- package/dist/umd/types/general.d.ts +11 -6
- package/dist/umd/types/general.d.ts.map +1 -1
- package/dist/umd/types/instance.d.ts +23 -8
- package/dist/umd/types/instance.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/base.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
--xy-attribution-background-color-default: rgba(255, 255, 255, 0.5);
|
|
14
14
|
|
|
15
15
|
--xy-minimap-background-color-default: #fff;
|
|
16
|
-
--xy-minimap-mask-background-color-default:
|
|
16
|
+
--xy-minimap-mask-background-color-default: rgba(240, 240, 240, 0.6);
|
|
17
17
|
--xy-minimap-mask-stroke-color-default: transparent;
|
|
18
18
|
--xy-minimap-mask-stroke-width-default: 1;
|
|
19
19
|
--xy-minimap-node-background-color-default: #e2e2e2;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
--xy-attribution-background-color-default: rgba(150, 150, 150, 0.25);
|
|
46
46
|
|
|
47
47
|
--xy-minimap-background-color-default: #141414;
|
|
48
|
-
--xy-minimap-mask-background-color-default:
|
|
48
|
+
--xy-minimap-mask-background-color-default: rgba(60, 60, 60, 0.6);
|
|
49
49
|
--xy-minimap-mask-stroke-color-default: transparent;
|
|
50
50
|
--xy-minimap-mask-stroke-width-default: 1;
|
|
51
51
|
--xy-minimap-node-background-color-default: #2b2b2b;
|
|
@@ -16,18 +16,18 @@ export declare enum BackgroundVariant {
|
|
|
16
16
|
export type BackgroundProps = {
|
|
17
17
|
/** When multiple backgrounds are present on the page, each one should have a unique id. */
|
|
18
18
|
id?: string;
|
|
19
|
-
/** Color of the pattern */
|
|
19
|
+
/** Color of the pattern. */
|
|
20
20
|
color?: string;
|
|
21
|
-
/** Color of the background */
|
|
21
|
+
/** Color of the background. */
|
|
22
22
|
bgColor?: string;
|
|
23
|
-
/** Class applied to the container */
|
|
23
|
+
/** Class applied to the container. */
|
|
24
24
|
className?: string;
|
|
25
|
-
/** Class applied to the pattern */
|
|
25
|
+
/** Class applied to the pattern. */
|
|
26
26
|
patternClassName?: string;
|
|
27
27
|
/**
|
|
28
28
|
* The gap between patterns. Passing in a tuple allows you to control the x and y gap
|
|
29
29
|
* independently.
|
|
30
|
-
* @default
|
|
30
|
+
* @default 20
|
|
31
31
|
*/
|
|
32
32
|
gap?: number | [number, number];
|
|
33
33
|
/**
|
|
@@ -37,8 +37,8 @@ export type BackgroundProps = {
|
|
|
37
37
|
*/
|
|
38
38
|
size?: number;
|
|
39
39
|
/**
|
|
40
|
-
* Offset of the pattern
|
|
41
|
-
* @default
|
|
40
|
+
* Offset of the pattern.
|
|
41
|
+
* @default 0
|
|
42
42
|
*/
|
|
43
43
|
offset?: number | [number, number];
|
|
44
44
|
/**
|
|
@@ -47,13 +47,13 @@ export type BackgroundProps = {
|
|
|
47
47
|
*/
|
|
48
48
|
lineWidth?: number;
|
|
49
49
|
/**
|
|
50
|
-
* Variant of the pattern
|
|
50
|
+
* Variant of the pattern.
|
|
51
51
|
* @default BackgroundVariant.Dots
|
|
52
52
|
* @example BackgroundVariant.Lines, BackgroundVariant.Dots, BackgroundVariant.Cross
|
|
53
53
|
* 'lines', 'dots', 'cross'
|
|
54
54
|
*/
|
|
55
55
|
variant?: BackgroundVariant;
|
|
56
|
-
/** Style applied to the container */
|
|
56
|
+
/** Style applied to the container. */
|
|
57
57
|
style?: CSSProperties;
|
|
58
58
|
};
|
|
59
59
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/Background/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;;;GAKG;AACH,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,2FAA2F;IAC3F,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/Background/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;;;GAKG;AACH,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,2FAA2F;IAC3F,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,sCAAsC;IACtC,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MiniMapNodes.d.ts","sourceRoot":"","sources":["../../../src/additional-components/MiniMap/MiniMapNodes.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAkB,IAAI,
|
|
1
|
+
{"version":3,"file":"MiniMapNodes.d.ts","sourceRoot":"","sources":["../../../src/additional-components/MiniMap/MiniMapNodes.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAkB,IAAI,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAA6C,MAAM,SAAS,CAAC;AAQ5G,iBAAS,YAAY,CAAC,QAAQ,SAAS,IAAI,EAAE,EAC3C,eAAe,EACf,SAAS,EACT,aAAkB,EAClB,gBAAoB,EACpB,eAAe,EAKf,aAAa,EAAE,aAA2B,EAC1C,OAAO,GACR,EAAE,iBAAiB,CAAC,QAAQ,CAAC,2CAiC7B;;AAgED,wBAAyD"}
|
|
@@ -6,47 +6,93 @@ export type GetMiniMapNodeAttribute<NodeType extends Node = Node> = (node: NodeT
|
|
|
6
6
|
* @expand
|
|
7
7
|
*/
|
|
8
8
|
export type MiniMapProps<NodeType extends Node = Node> = Omit<HTMLAttributes<SVGSVGElement>, 'onClick'> & {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Color of nodes on minimap.
|
|
11
|
+
* @default "#e2e2e2"
|
|
12
|
+
*/
|
|
10
13
|
nodeColor?: string | GetMiniMapNodeAttribute<NodeType>;
|
|
11
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Stroke color of nodes on minimap.
|
|
16
|
+
* @default "transparent"
|
|
17
|
+
*/
|
|
12
18
|
nodeStrokeColor?: string | GetMiniMapNodeAttribute<NodeType>;
|
|
13
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Class name applied to nodes on minimap.
|
|
21
|
+
* @default ""
|
|
22
|
+
*/
|
|
14
23
|
nodeClassName?: string | GetMiniMapNodeAttribute<NodeType>;
|
|
15
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Border radius of nodes on minimap.
|
|
26
|
+
* @default 5
|
|
27
|
+
*/
|
|
16
28
|
nodeBorderRadius?: number;
|
|
17
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Stroke width of nodes on minimap.
|
|
31
|
+
* @default 2
|
|
32
|
+
*/
|
|
18
33
|
nodeStrokeWidth?: number;
|
|
19
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* A custom component to render the nodes in the minimap. This component must render an SVG
|
|
36
|
+
* element!
|
|
37
|
+
*/
|
|
20
38
|
nodeComponent?: ComponentType<MiniMapNodeProps>;
|
|
21
|
-
/** Background color of minimap */
|
|
39
|
+
/** Background color of minimap. */
|
|
22
40
|
bgColor?: string;
|
|
23
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* The color of the mask that covers the portion of the minimap not currently visible in the
|
|
43
|
+
* viewport.
|
|
44
|
+
* @default "rgba(240, 240, 240, 0.6)"
|
|
45
|
+
*/
|
|
24
46
|
maskColor?: string;
|
|
25
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Stroke color of mask representing viewport.
|
|
49
|
+
* @default transparent
|
|
50
|
+
*/
|
|
26
51
|
maskStrokeColor?: string;
|
|
27
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Stroke width of mask representing viewport.
|
|
54
|
+
* @default 1
|
|
55
|
+
*/
|
|
28
56
|
maskStrokeWidth?: number;
|
|
29
57
|
/**
|
|
30
|
-
* Position of minimap on pane
|
|
58
|
+
* Position of minimap on pane.
|
|
59
|
+
* @default PanelPosition.BottomRight
|
|
31
60
|
* @example PanelPosition.TopLeft, PanelPosition.TopRight,
|
|
32
61
|
* PanelPosition.BottomLeft, PanelPosition.BottomRight
|
|
33
62
|
*/
|
|
34
63
|
position?: PanelPosition;
|
|
35
|
-
/** Callback
|
|
64
|
+
/** Callback called when minimap is clicked. */
|
|
36
65
|
onClick?: (event: MouseEvent, position: XYPosition) => void;
|
|
37
|
-
/** Callback called when node on minimap is clicked */
|
|
66
|
+
/** Callback called when node on minimap is clicked. */
|
|
38
67
|
onNodeClick?: (event: MouseEvent, node: NodeType) => void;
|
|
39
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Determines whether you can pan the viewport by dragging inside the minimap.
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
40
72
|
pannable?: boolean;
|
|
41
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* Determines whether you can zoom the viewport by scrolling inside the minimap.
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
42
77
|
zoomable?: boolean;
|
|
43
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* There is no text inside the minimap for a screen reader to use as an accessible name, so it's
|
|
80
|
+
* important we provide one to make the minimap accessible. The default is sufficient, but you may
|
|
81
|
+
* want to replace it with something more relevant to your app or product.
|
|
82
|
+
* @default "React Flow mini map"
|
|
83
|
+
*/
|
|
44
84
|
ariaLabel?: string | null;
|
|
45
|
-
/** Invert direction when panning the minimap viewport */
|
|
85
|
+
/** Invert direction when panning the minimap viewport. */
|
|
46
86
|
inversePan?: boolean;
|
|
47
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* Step size for zooming in/out on minimap.
|
|
89
|
+
* @default 10
|
|
90
|
+
*/
|
|
48
91
|
zoomStep?: number;
|
|
49
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Offset the viewport on the minimap, acts like a padding.
|
|
94
|
+
* @default 5
|
|
95
|
+
*/
|
|
50
96
|
offsetScale?: number;
|
|
51
97
|
};
|
|
52
98
|
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":["../../../src/additional-components/MiniMap/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,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,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeResizeControl.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/NodeResizeControl.tsx"],"names":[],"mappings":";AAmBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE1E,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,QAAQ,EACR,OAAqC,EACrC,SAAS,EACT,KAAU,EACV,QAAQ,EACR,KAAK,EACL,QAAa,EACb,SAAc,EACd,QAA2B,EAC3B,SAA4B,EAC5B,eAAuB,EACvB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,GACZ,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"NodeResizeControl.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/NodeResizeControl.tsx"],"names":[],"mappings":";AAmBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE1E,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,QAAQ,EACR,OAAqC,EACrC,SAAS,EACT,KAAU,EACV,QAAQ,EACR,KAAK,EACL,QAAa,EACb,SAAc,EACd,QAA2B,EAC3B,SAA4B,EAC5B,eAAuB,EACvB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,GACZ,EAAE,kBAAkB,2CAqKpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAE9D;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,2DAAsB,CAAC"}
|
|
@@ -5,39 +5,57 @@ import type { ControlPosition, ControlLinePosition, ResizeControlVariant, Should
|
|
|
5
5
|
*/
|
|
6
6
|
export type NodeResizerProps = {
|
|
7
7
|
/**
|
|
8
|
-
* Id of the node it is resizing
|
|
8
|
+
* Id of the node it is resizing.
|
|
9
9
|
* @remarks optional if used inside custom node
|
|
10
10
|
*/
|
|
11
11
|
nodeId?: string;
|
|
12
|
-
/** Color of the resize handle */
|
|
12
|
+
/** Color of the resize handle. */
|
|
13
13
|
color?: string;
|
|
14
|
-
/**
|
|
14
|
+
/** Class name applied to handle. */
|
|
15
15
|
handleClassName?: string;
|
|
16
|
-
/** Style applied to handle */
|
|
16
|
+
/** Style applied to handle. */
|
|
17
17
|
handleStyle?: CSSProperties;
|
|
18
|
-
/**
|
|
18
|
+
/** Class name applied to line. */
|
|
19
19
|
lineClassName?: string;
|
|
20
|
-
/** Style applied to line */
|
|
20
|
+
/** Style applied to line. */
|
|
21
21
|
lineStyle?: CSSProperties;
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Are the controls visible.
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
23
26
|
isVisible?: boolean;
|
|
24
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Minimum width of node.
|
|
29
|
+
* @default 10
|
|
30
|
+
*/
|
|
25
31
|
minWidth?: number;
|
|
26
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Minimum height of node.
|
|
34
|
+
* @default 10
|
|
35
|
+
*/
|
|
27
36
|
minHeight?: number;
|
|
28
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Maximum width of node.
|
|
39
|
+
* @default Number.MAX_VALUE
|
|
40
|
+
*/
|
|
29
41
|
maxWidth?: number;
|
|
30
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* Maximum height of node.
|
|
44
|
+
* @default Number.MAX_VALUE
|
|
45
|
+
*/
|
|
31
46
|
maxHeight?: number;
|
|
32
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Keep aspect ratio when resizing.
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
33
51
|
keepAspectRatio?: boolean;
|
|
34
|
-
/** Callback to determine if node should resize */
|
|
52
|
+
/** Callback to determine if node should resize. */
|
|
35
53
|
shouldResize?: ShouldResize;
|
|
36
|
-
/** Callback called when resizing starts */
|
|
54
|
+
/** Callback called when resizing starts. */
|
|
37
55
|
onResizeStart?: OnResizeStart;
|
|
38
|
-
/** Callback called when resizing */
|
|
56
|
+
/** Callback called when resizing. */
|
|
39
57
|
onResize?: OnResize;
|
|
40
|
-
/** Callback called when resizing ends */
|
|
58
|
+
/** Callback called when resizing ends. */
|
|
41
59
|
onResizeEnd?: OnResizeEnd;
|
|
42
60
|
};
|
|
43
61
|
/**
|
|
@@ -45,13 +63,14 @@ export type NodeResizerProps = {
|
|
|
45
63
|
*/
|
|
46
64
|
export type ResizeControlProps = Pick<NodeResizerProps, 'nodeId' | 'color' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight' | 'keepAspectRatio' | 'shouldResize' | 'onResizeStart' | 'onResize' | 'onResizeEnd'> & {
|
|
47
65
|
/**
|
|
48
|
-
* Position of the control
|
|
66
|
+
* Position of the control.
|
|
49
67
|
* @example ControlPosition.TopLeft, ControlPosition.TopRight,
|
|
50
68
|
* ControlPosition.BottomLeft, ControlPosition.BottomRight
|
|
51
69
|
*/
|
|
52
70
|
position?: ControlPosition;
|
|
53
71
|
/**
|
|
54
|
-
* Variant of the control
|
|
72
|
+
* Variant of the control.
|
|
73
|
+
* @default "handle"
|
|
55
74
|
* @example ResizeControlVariant.Handle, ResizeControlVariant.Line
|
|
56
75
|
*/
|
|
57
76
|
variant?: ResizeControlVariant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../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;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../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;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,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
+
/** If `true`, node toolbar is visible even if node is not selected. */
|
|
13
13
|
isVisible?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
* Position of the toolbar relative to the node
|
|
16
|
-
* @
|
|
17
|
-
* Position.BottomLeft, Position.BottomRight
|
|
15
|
+
* Position of the toolbar relative to the node.
|
|
16
|
+
* @default Position.Top
|
|
17
|
+
* @example Position.TopLeft, Position.TopRight, Position.BottomLeft, Position.BottomRight
|
|
18
18
|
*/
|
|
19
19
|
position?: Position;
|
|
20
20
|
/**
|
|
@@ -23,7 +23,8 @@ export type NodeToolbarProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
23
23
|
*/
|
|
24
24
|
offset?: number;
|
|
25
25
|
/**
|
|
26
|
-
* Align the toolbar relative to the node
|
|
26
|
+
* Align the toolbar relative to the node.
|
|
27
|
+
* @default "center"
|
|
27
28
|
* @example Align.Start, Align.Center, Align.End
|
|
28
29
|
*/
|
|
29
30
|
align?: Align;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../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;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC9D;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../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;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC9D;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BatchProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAoC,MAAM,OAAO,CAAC;AAKnF,OAAO,EAAE,KAAK,EAAa,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAU9C;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,EACxF,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;CACrB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BatchProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAoC,MAAM,OAAO,CAAC;AAKnF,OAAO,EAAE,KAAK,EAAa,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAU9C;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,EACxF,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;CACrB,2CAmEA;AAED,wBAAgB,eAAe;;;EAQ9B"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { PanelPosition } from '@xyflow/system';
|
|
3
3
|
/**
|
|
4
4
|
* @expand
|
|
5
5
|
*/
|
|
6
6
|
export type PanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
7
7
|
/**
|
|
8
|
-
* The position of the panel
|
|
8
|
+
* The position of the panel.
|
|
9
|
+
* @default "top-left"
|
|
9
10
|
*/
|
|
10
11
|
position?: PanelPosition;
|
|
11
|
-
children: ReactNode;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* The `<Panel />` component helps you position content above the viewport.
|
|
@@ -37,9 +37,9 @@ export type PanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
37
37
|
*/
|
|
38
38
|
export declare const Panel: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
39
39
|
/**
|
|
40
|
-
* The position of the panel
|
|
40
|
+
* The position of the panel.
|
|
41
|
+
* @default "top-left"
|
|
41
42
|
*/
|
|
42
43
|
position?: PanelPosition | undefined;
|
|
43
|
-
children: ReactNode;
|
|
44
44
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
45
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKpD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACxD;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,KAAK;IAlChB;;;OAGG;;kDA+CJ,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -934,13 +934,15 @@ function BatchProvider({ children, }) {
|
|
|
934
934
|
if (hasDefaultNodes) {
|
|
935
935
|
setNodes(next);
|
|
936
936
|
}
|
|
937
|
-
else
|
|
937
|
+
else {
|
|
938
|
+
// When a controlled flow is used we need to collect the changes
|
|
938
939
|
const changes = getElementsDiffChanges({
|
|
939
940
|
items: next,
|
|
940
941
|
lookup: nodeLookup,
|
|
941
942
|
});
|
|
943
|
+
// We only want to fire onNodesChange if there are changes to the nodes
|
|
942
944
|
if (changes.length > 0) {
|
|
943
|
-
onNodesChange(changes);
|
|
945
|
+
onNodesChange?.(changes);
|
|
944
946
|
}
|
|
945
947
|
else if (fitViewQueued) {
|
|
946
948
|
// If there are no changes to the nodes, we still need to call setNodes
|
|
@@ -4315,8 +4317,9 @@ nodeComponent: NodeComponent = MiniMapNode, onClick, }) {
|
|
|
4315
4317
|
}
|
|
4316
4318
|
function NodeComponentWrapperInner({ id, nodeColorFunc, nodeStrokeColorFunc, nodeClassNameFunc, nodeBorderRadius, nodeStrokeWidth, shapeRendering, NodeComponent, onClick, }) {
|
|
4317
4319
|
const { node, x, y, width, height } = useStore((s) => {
|
|
4318
|
-
const
|
|
4319
|
-
const
|
|
4320
|
+
const { internals } = s.nodeLookup.get(id);
|
|
4321
|
+
const node = internals.userNode;
|
|
4322
|
+
const { x, y } = internals.positionAbsolute;
|
|
4320
4323
|
const { width, height } = getNodeDimensions(node);
|
|
4321
4324
|
return {
|
|
4322
4325
|
node,
|
|
@@ -4414,7 +4417,7 @@ nodeComponent, bgColor, maskColor, maskStrokeColor, maskStrokeWidth, position =
|
|
|
4414
4417
|
: undefined;
|
|
4415
4418
|
const onSvgNodeClick = onNodeClick
|
|
4416
4419
|
? useCallback((event, nodeId) => {
|
|
4417
|
-
const node = store.getState().nodeLookup.get(nodeId);
|
|
4420
|
+
const node = store.getState().nodeLookup.get(nodeId).internals.userNode;
|
|
4418
4421
|
onNodeClick(event, node);
|
|
4419
4422
|
}, [])
|
|
4420
4423
|
: undefined;
|
|
@@ -4426,7 +4429,7 @@ nodeComponent, bgColor, maskColor, maskStrokeColor, maskStrokeWidth, position =
|
|
|
4426
4429
|
'--xy-minimap-mask-stroke-width-props': typeof maskStrokeWidth === 'number' ? maskStrokeWidth * viewScale : undefined,
|
|
4427
4430
|
'--xy-minimap-node-background-color-props': typeof nodeColor === 'string' ? nodeColor : undefined,
|
|
4428
4431
|
'--xy-minimap-node-stroke-color-props': typeof nodeStrokeColor === 'string' ? nodeStrokeColor : undefined,
|
|
4429
|
-
'--xy-minimap-node-stroke-width-props': typeof nodeStrokeWidth === '
|
|
4432
|
+
'--xy-minimap-node-stroke-width-props': typeof nodeStrokeWidth === 'number' ? nodeStrokeWidth : undefined,
|
|
4430
4433
|
}, className: cc(['react-flow__minimap', className]), "data-testid": "rf__minimap", children: jsxs("svg", { width: elementWidth, height: elementHeight, viewBox: `${x} ${y} ${width} ${height}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": labelledBy, ref: svg, onClick: onSvgClick, children: [ariaLabel && jsx("title", { id: labelledBy, children: ariaLabel }), jsx(MiniMapNodes$1, { onClick: onSvgNodeClick, nodeColor: nodeColor, nodeStrokeColor: nodeStrokeColor, nodeBorderRadius: nodeBorderRadius, nodeClassName: nodeClassName, nodeStrokeWidth: nodeStrokeWidth, nodeComponent: nodeComponent }), jsx("path", { className: "react-flow__minimap-mask", d: `M${x - offset},${y - offset}h${width + offset * 2}v${height + offset * 2}h${-width - offset * 2}z
|
|
4431
4434
|
M${viewBB.x},${viewBB.y}h${viewBB.width}v${viewBB.height}h${-viewBB.width}z`, fillRule: "evenodd", pointerEvents: "none" })] }) }));
|
|
4432
4435
|
}
|
|
@@ -4540,11 +4543,15 @@ function ResizeControl({ nodeId, position, variant = ResizeControlVariant.Handle
|
|
|
4540
4543
|
}
|
|
4541
4544
|
triggerNodeChanges(changes);
|
|
4542
4545
|
},
|
|
4543
|
-
onEnd: () => {
|
|
4546
|
+
onEnd: ({ width, height }) => {
|
|
4544
4547
|
const dimensionChange = {
|
|
4545
4548
|
id: id,
|
|
4546
4549
|
type: 'dimensions',
|
|
4547
4550
|
resizing: false,
|
|
4551
|
+
dimensions: {
|
|
4552
|
+
width,
|
|
4553
|
+
height,
|
|
4554
|
+
},
|
|
4548
4555
|
};
|
|
4549
4556
|
store.getState().triggerNodeChanges([dimensionChange]);
|
|
4550
4557
|
},
|
package/dist/esm/index.mjs
CHANGED
|
@@ -934,13 +934,15 @@ function BatchProvider({ children, }) {
|
|
|
934
934
|
if (hasDefaultNodes) {
|
|
935
935
|
setNodes(next);
|
|
936
936
|
}
|
|
937
|
-
else
|
|
937
|
+
else {
|
|
938
|
+
// When a controlled flow is used we need to collect the changes
|
|
938
939
|
const changes = getElementsDiffChanges({
|
|
939
940
|
items: next,
|
|
940
941
|
lookup: nodeLookup,
|
|
941
942
|
});
|
|
943
|
+
// We only want to fire onNodesChange if there are changes to the nodes
|
|
942
944
|
if (changes.length > 0) {
|
|
943
|
-
onNodesChange(changes);
|
|
945
|
+
onNodesChange?.(changes);
|
|
944
946
|
}
|
|
945
947
|
else if (fitViewQueued) {
|
|
946
948
|
// If there are no changes to the nodes, we still need to call setNodes
|
|
@@ -4315,8 +4317,9 @@ nodeComponent: NodeComponent = MiniMapNode, onClick, }) {
|
|
|
4315
4317
|
}
|
|
4316
4318
|
function NodeComponentWrapperInner({ id, nodeColorFunc, nodeStrokeColorFunc, nodeClassNameFunc, nodeBorderRadius, nodeStrokeWidth, shapeRendering, NodeComponent, onClick, }) {
|
|
4317
4319
|
const { node, x, y, width, height } = useStore((s) => {
|
|
4318
|
-
const
|
|
4319
|
-
const
|
|
4320
|
+
const { internals } = s.nodeLookup.get(id);
|
|
4321
|
+
const node = internals.userNode;
|
|
4322
|
+
const { x, y } = internals.positionAbsolute;
|
|
4320
4323
|
const { width, height } = getNodeDimensions(node);
|
|
4321
4324
|
return {
|
|
4322
4325
|
node,
|
|
@@ -4414,7 +4417,7 @@ nodeComponent, bgColor, maskColor, maskStrokeColor, maskStrokeWidth, position =
|
|
|
4414
4417
|
: undefined;
|
|
4415
4418
|
const onSvgNodeClick = onNodeClick
|
|
4416
4419
|
? useCallback((event, nodeId) => {
|
|
4417
|
-
const node = store.getState().nodeLookup.get(nodeId);
|
|
4420
|
+
const node = store.getState().nodeLookup.get(nodeId).internals.userNode;
|
|
4418
4421
|
onNodeClick(event, node);
|
|
4419
4422
|
}, [])
|
|
4420
4423
|
: undefined;
|
|
@@ -4426,7 +4429,7 @@ nodeComponent, bgColor, maskColor, maskStrokeColor, maskStrokeWidth, position =
|
|
|
4426
4429
|
'--xy-minimap-mask-stroke-width-props': typeof maskStrokeWidth === 'number' ? maskStrokeWidth * viewScale : undefined,
|
|
4427
4430
|
'--xy-minimap-node-background-color-props': typeof nodeColor === 'string' ? nodeColor : undefined,
|
|
4428
4431
|
'--xy-minimap-node-stroke-color-props': typeof nodeStrokeColor === 'string' ? nodeStrokeColor : undefined,
|
|
4429
|
-
'--xy-minimap-node-stroke-width-props': typeof nodeStrokeWidth === '
|
|
4432
|
+
'--xy-minimap-node-stroke-width-props': typeof nodeStrokeWidth === 'number' ? nodeStrokeWidth : undefined,
|
|
4430
4433
|
}, className: cc(['react-flow__minimap', className]), "data-testid": "rf__minimap", children: jsxs("svg", { width: elementWidth, height: elementHeight, viewBox: `${x} ${y} ${width} ${height}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": labelledBy, ref: svg, onClick: onSvgClick, children: [ariaLabel && jsx("title", { id: labelledBy, children: ariaLabel }), jsx(MiniMapNodes$1, { onClick: onSvgNodeClick, nodeColor: nodeColor, nodeStrokeColor: nodeStrokeColor, nodeBorderRadius: nodeBorderRadius, nodeClassName: nodeClassName, nodeStrokeWidth: nodeStrokeWidth, nodeComponent: nodeComponent }), jsx("path", { className: "react-flow__minimap-mask", d: `M${x - offset},${y - offset}h${width + offset * 2}v${height + offset * 2}h${-width - offset * 2}z
|
|
4431
4434
|
M${viewBB.x},${viewBB.y}h${viewBB.width}v${viewBB.height}h${-viewBB.width}z`, fillRule: "evenodd", pointerEvents: "none" })] }) }));
|
|
4432
4435
|
}
|
|
@@ -4540,11 +4543,15 @@ function ResizeControl({ nodeId, position, variant = ResizeControlVariant.Handle
|
|
|
4540
4543
|
}
|
|
4541
4544
|
triggerNodeChanges(changes);
|
|
4542
4545
|
},
|
|
4543
|
-
onEnd: () => {
|
|
4546
|
+
onEnd: ({ width, height }) => {
|
|
4544
4547
|
const dimensionChange = {
|
|
4545
4548
|
id: id,
|
|
4546
4549
|
type: 'dimensions',
|
|
4547
4550
|
resizing: false,
|
|
4551
|
+
dimensions: {
|
|
4552
|
+
width,
|
|
4553
|
+
height,
|
|
4554
|
+
},
|
|
4548
4555
|
};
|
|
4549
4556
|
store.getState().triggerNodeChanges([dimensionChange]);
|
|
4550
4557
|
},
|
|
@@ -27,6 +27,11 @@ export type EdgeLabelOptions = {
|
|
|
27
27
|
export type Edge<EdgeData extends Record<string, unknown> = Record<string, unknown>, EdgeType extends string | undefined = string | undefined> = EdgeBase<EdgeData, EdgeType> & EdgeLabelOptions & {
|
|
28
28
|
style?: CSSProperties;
|
|
29
29
|
className?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Determines whether the edge can be updated by dragging the source or target to a new node.
|
|
32
|
+
* This property will override the default set by the `edgesReconnectable` prop on the
|
|
33
|
+
* `<ReactFlow />` component.
|
|
34
|
+
*/
|
|
30
35
|
reconnectable?: boolean | HandleType;
|
|
31
36
|
focusable?: boolean;
|
|
32
37
|
};
|
|
@@ -69,14 +74,10 @@ export type EdgeWrapperProps<EdgeType extends Edge = Edge> = {
|
|
|
69
74
|
* passed to the `defaultEdgeOptions` prop of the [`<ReactFlow />`](/api-reference/react-flow#defaultedgeoptions) component.
|
|
70
75
|
*/
|
|
71
76
|
export type DefaultEdgeOptions = DefaultEdgeOptionsBase<Edge>;
|
|
72
|
-
export type EdgeTextProps = SVGAttributes<SVGElement> & EdgeLabelOptions & {
|
|
73
|
-
/**
|
|
74
|
-
* The x position where the label should be rendered.
|
|
75
|
-
*/
|
|
77
|
+
export type EdgeTextProps = Omit<SVGAttributes<SVGElement>, 'x' | 'y'> & EdgeLabelOptions & {
|
|
78
|
+
/** The x position where the label should be rendered. */
|
|
76
79
|
x: number;
|
|
77
|
-
/**
|
|
78
|
-
* The y position where the label should be rendered.
|
|
79
|
-
*/
|
|
80
|
+
/** The y position where the label should be rendered. */
|
|
80
81
|
y: number;
|
|
81
82
|
};
|
|
82
83
|
/**
|
|
@@ -98,10 +99,11 @@ export type EdgeProps<EdgeType extends Edge = Edge> = Pick<EdgeType, 'id' | 'ani
|
|
|
98
99
|
* @public
|
|
99
100
|
* @expand
|
|
100
101
|
*/
|
|
101
|
-
export type BaseEdgeProps = Omit<SVGAttributes<SVGPathElement>, 'd'> & EdgeLabelOptions & {
|
|
102
|
+
export type BaseEdgeProps = Omit<SVGAttributes<SVGPathElement>, 'd' | 'path'> & EdgeLabelOptions & {
|
|
102
103
|
/**
|
|
103
104
|
* The width of the invisible area around the edge that the user can interact with. This is
|
|
104
105
|
* useful for making the edge easier to click or hover over.
|
|
106
|
+
* @default 20
|
|
105
107
|
*/
|
|
106
108
|
interactionWidth?: number;
|
|
107
109
|
/** The x position of edge label */
|
|
@@ -173,7 +175,9 @@ export type OnReconnect<EdgeType extends Edge = Edge> = (oldEdge: EdgeType, newC
|
|
|
173
175
|
export type ConnectionLineComponentProps<NodeType extends Node = Node> = {
|
|
174
176
|
connectionLineStyle?: CSSProperties;
|
|
175
177
|
connectionLineType: ConnectionLineType;
|
|
178
|
+
/** The node the connection line originates from. */
|
|
176
179
|
fromNode: InternalNode<NodeType>;
|
|
180
|
+
/** The handle on the `fromNode` that the connection line originates from. */
|
|
177
181
|
fromHandle: Handle;
|
|
178
182
|
fromX: number;
|
|
179
183
|
fromY: number;
|
|
@@ -181,6 +185,10 @@ export type ConnectionLineComponentProps<NodeType extends Node = Node> = {
|
|
|
181
185
|
toY: number;
|
|
182
186
|
fromPosition: Position;
|
|
183
187
|
toPosition: Position;
|
|
188
|
+
/**
|
|
189
|
+
* If there is an `isValidConnection` callback, this prop will be set to `"valid"` or `"invalid"`
|
|
190
|
+
* based on the return value of that callback. Otherwise, it will be `null`.
|
|
191
|
+
*/
|
|
184
192
|
connectionStatus: 'valid' | 'invalid' | null;
|
|
185
193
|
toNode: InternalNode<NodeType> | null;
|
|
186
194
|
toHandle: Handle | null;
|
|
@@ -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;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,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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