@xyflow/vue 2.0.0-next.3 → 2.0.0-next.5
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/index.d.mts +338 -32
- package/dist/index.d.ts +338 -32
- package/dist/index.js +287 -76
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +283 -78
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, Component, ComputedRef, DefineComponent, HTMLAttributes, InjectionKey, MaybeRefOrGetter, SVGAttributes, ToRefs, VNode } from "vue";
|
|
2
|
-
import { Align, AriaLabelConfig, AriaLabelConfig as AriaLabelConfig$1, ColorMode, ColorMode as ColorMode$1, Connection, Connection as Connection$1, ConnectionLineType, ConnectionLineType as ConnectionLineType$1, ConnectionMode, ConnectionMode as ConnectionMode$1, ControlLinePosition, ControlLinePosition as ControlLinePosition$1, ControlPosition, ControlPosition as ControlPosition$1, CoordinateExtent, CoordinateExtent as CoordinateExtent$1, Dimensions, Dimensions as Dimensions$1, DistributivePick, EdgeBase, EdgeRemoveChange, EdgeRemoveChange as EdgeRemoveChange$1, EdgeSelectionChange, EdgeSelectionChange as EdgeSelectionChange$1, FinalConnectionState, FinalConnectionState as FinalConnectionState$1, FitViewOptionsBase, FitViewOptionsBase as FitViewOptions, GetViewport, GetViewport as GetViewport$1, HandleType, HandleType as HandleType$1, InternalNodeBase, NodeBase, NodeConnection, NodeConnection as NodeConnection$1, NodeDimensionChange, NodeDimensionChange as NodeDimensionChange$1, NodePositionChange, NodePositionChange as NodePositionChange$1, NodeRemoveChange, NodeRemoveChange as NodeRemoveChange$1, NodeSelectionChange, NodeSelectionChange as NodeSelectionChange$1, Padding, Padding as Padding$1, PaddingUnit, PaddingWithUnit, PanOnScrollMode, PanOnScrollMode as PanOnScrollMode$1, PanZoomInstance, PanelPosition, Position, Position as Position$1, Project, Project as Project$1, Rect, Rect as Rect$1, ResizeControlVariant, ResizeControlVariant as ResizeControlVariant$1, ResizeControlVariant as ResizeControlVariant$2, ResizeDragEvent, ResizeDragEvent as ResizeDragEvent$1, ResizeParams, ResizeParams as ResizeParams$1, ResizeParamsWithDirection, ResizeParamsWithDirection as ResizeParamsWithDirection$1, SelectionMode, SelectionMode as SelectionMode$1, SelectionRect, SelectionRect as SelectionRect$1, SetCenter, SetCenter as SetCenter$1, SetCenterOptions, SetViewport, SetViewport as SetViewport$1, ShouldResize, ShouldResize as ShouldResize$1, SnapGrid, SnapGrid as SnapGrid$1, Transform, Viewport, Viewport as Viewport$1, ViewportHelperFunctionOptions, ViewportHelperFunctionOptions as ViewportHelperFunctionOptions$1, XYPosition, XYPosition as XYPosition$1, ZIndexMode, ZIndexMode as ZIndexMode$1, ZoomInOut, ZoomInOut as ZoomInOut$1, ZoomTo, ZoomTo as ZoomTo$1, clamp, getBezierEdgeCenter, getBezierPath, getBoundsOfBoxes, getBoundsOfRects, getConnectedEdges, getConnectionStatus, getIncomers, getMarkerId, getNodesBounds, getNodesInside, getOutgoers, getSmoothStepPath, getStraightPath, getViewportForBounds, isEdgeBase, isInternalNodeBase, isMacOs, isNodeBase, pointToRendererPoint, rendererPointToPoint } from "@xyflow/system";
|
|
2
|
+
import { AddEdgeOptions, Align, AriaLabelConfig, AriaLabelConfig as AriaLabelConfig$1, ColorMode, ColorMode as ColorMode$1, Connection, Connection as Connection$1, ConnectionLineType, ConnectionLineType as ConnectionLineType$1, ConnectionMode, ConnectionMode as ConnectionMode$1, ControlLinePosition, ControlLinePosition as ControlLinePosition$1, ControlPosition, ControlPosition as ControlPosition$1, CoordinateExtent, CoordinateExtent as CoordinateExtent$1, Dimensions, Dimensions as Dimensions$1, DistributivePick, EdgeBase, EdgeRemoveChange, EdgeRemoveChange as EdgeRemoveChange$1, EdgeSelectionChange, EdgeSelectionChange as EdgeSelectionChange$1, FinalConnectionState, FinalConnectionState as FinalConnectionState$1, FitViewOptionsBase, FitViewOptionsBase as FitViewOptions, GetViewport, GetViewport as GetViewport$1, HandleType, HandleType as HandleType$1, InternalNodeBase, NodeBase, NodeConnection, NodeConnection as NodeConnection$1, NodeDimensionChange, NodeDimensionChange as NodeDimensionChange$1, NodePositionChange, NodePositionChange as NodePositionChange$1, NodeRemoveChange, NodeRemoveChange as NodeRemoveChange$1, NodeSelectionChange, NodeSelectionChange as NodeSelectionChange$1, Padding, Padding as Padding$1, PaddingUnit, PaddingWithUnit, PanOnScrollMode, PanOnScrollMode as PanOnScrollMode$1, PanZoomInstance, PanelPosition, Position, Position as Position$1, Project, Project as Project$1, ReconnectEdgeOptions, Rect, Rect as Rect$1, ResizeControlVariant, ResizeControlVariant as ResizeControlVariant$1, ResizeControlVariant as ResizeControlVariant$2, ResizeDragEvent, ResizeDragEvent as ResizeDragEvent$1, ResizeParams, ResizeParams as ResizeParams$1, ResizeParamsWithDirection, ResizeParamsWithDirection as ResizeParamsWithDirection$1, SelectionMode, SelectionMode as SelectionMode$1, SelectionRect, SelectionRect as SelectionRect$1, SetCenter, SetCenter as SetCenter$1, SetCenterOptions, SetViewport, SetViewport as SetViewport$1, ShouldResize, ShouldResize as ShouldResize$1, SnapGrid, SnapGrid as SnapGrid$1, Transform, Viewport, Viewport as Viewport$1, ViewportHelperFunctionOptions, ViewportHelperFunctionOptions as ViewportHelperFunctionOptions$1, XYPosition, XYPosition as XYPosition$1, ZIndexMode, ZIndexMode as ZIndexMode$1, ZoomInOut, ZoomInOut as ZoomInOut$1, ZoomTo, ZoomTo as ZoomTo$1, clamp, getBezierEdgeCenter, getBezierPath, getBoundsOfBoxes, getBoundsOfRects, getConnectedEdges, getConnectionStatus, getIncomers, getMarkerId, getNodesBounds, getNodesInside, getOutgoers, getSmoothStepPath, getStraightPath, getViewportForBounds, isEdgeBase, isInternalNodeBase, isMacOs, isNodeBase, pointToRendererPoint, rendererPointToPoint } from "@xyflow/system";
|
|
3
3
|
import { KeyFilter } from "@vueuse/core";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Background/types.d.ts
|
|
@@ -71,8 +71,8 @@ interface BackgroundProps {
|
|
|
71
71
|
}
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/components/Background/Background.vue.d.ts
|
|
74
|
-
declare const _default: typeof __VLS_export$
|
|
75
|
-
declare const __VLS_export$
|
|
74
|
+
declare const _default: typeof __VLS_export$15;
|
|
75
|
+
declare const __VLS_export$15: __VLS_WithSlots$11<import("vue").DefineComponent<BackgroundProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BackgroundProps> & Readonly<{}>, {
|
|
76
76
|
x: number;
|
|
77
77
|
y: number;
|
|
78
78
|
size: number;
|
|
@@ -91,15 +91,15 @@ declare const __VLS_export$14: __VLS_WithSlots$10<import("vue").DefineComponent<
|
|
|
91
91
|
id: string;
|
|
92
92
|
}) => any;
|
|
93
93
|
}>;
|
|
94
|
-
type __VLS_WithSlots$
|
|
94
|
+
type __VLS_WithSlots$11<T, S> = T & {
|
|
95
95
|
new (): {
|
|
96
96
|
$slots: S;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
//#endregion
|
|
100
100
|
//#region src/components/Controls/ControlButton.vue.d.ts
|
|
101
|
-
declare const _default$2: typeof __VLS_export$
|
|
102
|
-
declare const __VLS_export$
|
|
101
|
+
declare const _default$2: typeof __VLS_export$14;
|
|
102
|
+
declare const __VLS_export$14: __VLS_WithSlots$10<import("vue").DefineComponent<{
|
|
103
103
|
disabled?: boolean; /** accessible label; applied as both `aria-label` and `title` (mirrors xyflow) */
|
|
104
104
|
label?: string;
|
|
105
105
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -112,15 +112,15 @@ declare const __VLS_export$13: __VLS_WithSlots$9<import("vue").DefineComponent<{
|
|
|
112
112
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
113
113
|
default?: (props: {}) => any;
|
|
114
114
|
}>;
|
|
115
|
-
type __VLS_WithSlots$
|
|
115
|
+
type __VLS_WithSlots$10<T, S> = T & {
|
|
116
116
|
new (): {
|
|
117
117
|
$slots: S;
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
//#endregion
|
|
121
121
|
//#region src/components/Edges/BaseEdge.vue.d.ts
|
|
122
|
-
declare const _default$1: typeof __VLS_export$
|
|
123
|
-
declare const __VLS_export$
|
|
122
|
+
declare const _default$1: typeof __VLS_export$13;
|
|
123
|
+
declare const __VLS_export$13: import("vue").DefineComponent<BaseEdgeProps, {
|
|
124
124
|
pathEl: import("vue").ShallowRef<SVGPathElement | null, SVGPathElement | null>;
|
|
125
125
|
interactionEl: import("vue").ShallowRef<SVGPathElement | null, SVGPathElement | null>;
|
|
126
126
|
labelEl: import("vue").ShallowRef<SVGGElement | null, SVGGElement | null>;
|
|
@@ -132,22 +132,22 @@ declare const __VLS_export$12: import("vue").DefineComponent<BaseEdgeProps, {
|
|
|
132
132
|
declare const BezierEdge: import("vue").DefineComponent<BezierEdgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BezierEdgeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/components/Edges/EdgeLabelRenderer.vue.d.ts
|
|
135
|
-
declare const _default$4: typeof __VLS_export$
|
|
136
|
-
declare const __VLS_export$
|
|
135
|
+
declare const _default$4: typeof __VLS_export$12;
|
|
136
|
+
declare const __VLS_export$12: __VLS_WithSlots$9<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
137
137
|
default?: (props: {}) => any;
|
|
138
138
|
}>;
|
|
139
|
-
type __VLS_WithSlots$
|
|
139
|
+
type __VLS_WithSlots$9<T, S> = T & {
|
|
140
140
|
new (): {
|
|
141
141
|
$slots: S;
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region src/components/Edges/EdgeText.vue.d.ts
|
|
146
|
-
declare const _default$5: typeof __VLS_export$
|
|
147
|
-
declare const __VLS_export$
|
|
146
|
+
declare const _default$5: typeof __VLS_export$11;
|
|
147
|
+
declare const __VLS_export$11: __VLS_WithSlots$8<import("vue").DefineComponent<EdgeTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<EdgeTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
148
148
|
default?: (props: {}) => any;
|
|
149
149
|
}>;
|
|
150
|
-
type __VLS_WithSlots$
|
|
150
|
+
type __VLS_WithSlots$8<T, S> = T & {
|
|
151
151
|
new (): {
|
|
152
152
|
$slots: S;
|
|
153
153
|
};
|
|
@@ -195,8 +195,8 @@ declare const StepEdge: import("vue").DefineComponent<StepEdgeProps, {}, {}, {},
|
|
|
195
195
|
declare const StraightEdge: import("vue").DefineComponent<StraightEdgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StraightEdgeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region src/components/Handle/Handle.vue.d.ts
|
|
198
|
-
declare const _default$
|
|
199
|
-
declare const __VLS_export$
|
|
198
|
+
declare const _default$7: typeof __VLS_export$10;
|
|
199
|
+
declare const __VLS_export$10: __VLS_WithSlots$7<import("vue").DefineComponent<HandleProps, {
|
|
200
200
|
handleClick: (event: MouseEvent) => void;
|
|
201
201
|
handlePointerDown: (event: MouseTouchEvent) => void;
|
|
202
202
|
onClick: (event: MouseEvent) => void;
|
|
@@ -206,7 +206,7 @@ declare const __VLS_export$9: __VLS_WithSlots$6<import("vue").DefineComponent<Ha
|
|
|
206
206
|
id: string | undefined;
|
|
207
207
|
}) => any;
|
|
208
208
|
}>;
|
|
209
|
-
type __VLS_WithSlots$
|
|
209
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
210
210
|
new (): {
|
|
211
211
|
$slots: S;
|
|
212
212
|
};
|
|
@@ -271,12 +271,14 @@ declare enum ErrorCode {
|
|
|
271
271
|
NODE_MISSING_PARENT = "NODE_MISSING_PARENT",
|
|
272
272
|
NODE_TYPE_MISSING = "NODE_TYPE_MISSING",
|
|
273
273
|
NODE_EXTENT_INVALID = "NODE_EXTENT_INVALID",
|
|
274
|
+
NODE_DUPLICATE_ID = "NODE_DUPLICATE_ID",
|
|
274
275
|
EDGE_INVALID = "EDGE_INVALID",
|
|
275
276
|
EDGE_NOT_FOUND = "EDGE_NOT_FOUND",
|
|
276
277
|
EDGE_SOURCE_MISSING = "EDGE_SOURCE_MISSING",
|
|
277
278
|
EDGE_TARGET_MISSING = "EDGE_TARGET_MISSING",
|
|
278
279
|
EDGE_TYPE_MISSING = "EDGE_TYPE_MISSING",
|
|
279
280
|
EDGE_SOURCE_TARGET_MISSING = "EDGE_SOURCE_TARGET_MISSING",
|
|
281
|
+
EDGE_DUPLICATE_ID = "EDGE_DUPLICATE_ID",
|
|
280
282
|
USE_VUE_FLOW_OUTSIDE_PROVIDER = "USE_VUE_FLOW_OUTSIDE_PROVIDER"
|
|
281
283
|
}
|
|
282
284
|
declare const messages: {
|
|
@@ -287,11 +289,13 @@ declare const messages: {
|
|
|
287
289
|
readonly NODE_MISSING_PARENT: (id: string, parentId: string) => string;
|
|
288
290
|
readonly NODE_TYPE_MISSING: (type: string) => string;
|
|
289
291
|
readonly NODE_EXTENT_INVALID: (id: string) => string;
|
|
292
|
+
readonly NODE_DUPLICATE_ID: (id: string) => string;
|
|
290
293
|
readonly EDGE_INVALID: (id: string) => string;
|
|
291
294
|
readonly EDGE_SOURCE_MISSING: (id: string, source: string) => string;
|
|
292
295
|
readonly EDGE_TARGET_MISSING: (id: string, target: string) => string;
|
|
293
296
|
readonly EDGE_TYPE_MISSING: (type: string) => string;
|
|
294
297
|
readonly EDGE_SOURCE_TARGET_MISSING: (id: string, source: string, target: string) => string;
|
|
298
|
+
readonly EDGE_DUPLICATE_ID: (id: string) => string;
|
|
295
299
|
readonly EDGE_NOT_FOUND: (id: string) => string;
|
|
296
300
|
readonly USE_VUE_FLOW_OUTSIDE_PROVIDER: () => string;
|
|
297
301
|
};
|
|
@@ -1655,7 +1659,8 @@ type ElementChange = NodeChange | EdgeChange;
|
|
|
1655
1659
|
//#endregion
|
|
1656
1660
|
//#region src/types/panel.d.ts
|
|
1657
1661
|
interface PanelProps {
|
|
1658
|
-
position
|
|
1662
|
+
/** the position of the panel; defaults to `top-left` (mirrors xyflow/react) */
|
|
1663
|
+
position?: PanelPosition;
|
|
1659
1664
|
/** accessible label for the panel container, applied as `aria-label` (used by `<Controls>`) */
|
|
1660
1665
|
label?: string | null;
|
|
1661
1666
|
}
|
|
@@ -1735,8 +1740,8 @@ interface ControlEmits {
|
|
|
1735
1740
|
}
|
|
1736
1741
|
//#endregion
|
|
1737
1742
|
//#region src/components/Controls/Controls.vue.d.ts
|
|
1738
|
-
declare const _default$3: typeof __VLS_export$
|
|
1739
|
-
declare const __VLS_export$
|
|
1743
|
+
declare const _default$3: typeof __VLS_export$9;
|
|
1744
|
+
declare const __VLS_export$9: __VLS_WithSlots$6<import("vue").DefineComponent<ControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1740
1745
|
zoomIn: () => any;
|
|
1741
1746
|
zoomOut: () => any;
|
|
1742
1747
|
fitView: () => any;
|
|
@@ -1774,6 +1779,31 @@ declare const __VLS_export$8: __VLS_WithSlots$5<import("vue").DefineComponent<Co
|
|
|
1774
1779
|
} & {
|
|
1775
1780
|
default?: (props: {}) => any;
|
|
1776
1781
|
}>;
|
|
1782
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
1783
|
+
new (): {
|
|
1784
|
+
$slots: S;
|
|
1785
|
+
};
|
|
1786
|
+
};
|
|
1787
|
+
//#endregion
|
|
1788
|
+
//#region src/components/EdgeToolbar/types.d.ts
|
|
1789
|
+
interface EdgeToolbarProps {
|
|
1790
|
+
edgeId: string;
|
|
1791
|
+
x: number;
|
|
1792
|
+
y: number;
|
|
1793
|
+
isVisible?: boolean;
|
|
1794
|
+
alignX?: 'left' | 'center' | 'right';
|
|
1795
|
+
alignY?: 'top' | 'center' | 'bottom';
|
|
1796
|
+
}
|
|
1797
|
+
//#endregion
|
|
1798
|
+
//#region src/components/EdgeToolbar/EdgeToolbar.vue.d.ts
|
|
1799
|
+
declare const _default$6: typeof __VLS_export$8;
|
|
1800
|
+
declare const __VLS_export$8: __VLS_WithSlots$5<import("vue").DefineComponent<EdgeToolbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<EdgeToolbarProps> & Readonly<{}>, {
|
|
1801
|
+
isVisible: boolean;
|
|
1802
|
+
alignX: "left" | "center" | "right";
|
|
1803
|
+
alignY: "top" | "center" | "bottom";
|
|
1804
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
1805
|
+
default?: (props: {}) => any;
|
|
1806
|
+
}>;
|
|
1777
1807
|
type __VLS_WithSlots$5<T, S> = T & {
|
|
1778
1808
|
new (): {
|
|
1779
1809
|
$slots: S;
|
|
@@ -1856,7 +1886,7 @@ interface MiniMapSlots extends Record<`node-${string}`, (nodeProps: MiniMapNodeP
|
|
|
1856
1886
|
declare const Slots: InjectionKey<MiniMapSlots>;
|
|
1857
1887
|
//#endregion
|
|
1858
1888
|
//#region src/components/MiniMap/MiniMap.vue.d.ts
|
|
1859
|
-
declare const _default$
|
|
1889
|
+
declare const _default$8: typeof __VLS_export$7;
|
|
1860
1890
|
declare const __VLS_export$7: __VLS_WithSlots$4<import("vue").DefineComponent<MiniMapProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1861
1891
|
click: (params: {
|
|
1862
1892
|
event: MouseEvent;
|
|
@@ -1885,7 +1915,7 @@ type __VLS_WithSlots$4<T, S> = T & {
|
|
|
1885
1915
|
};
|
|
1886
1916
|
//#endregion
|
|
1887
1917
|
//#region src/components/MiniMap/MiniMapNode.vue.d.ts
|
|
1888
|
-
declare const _default$
|
|
1918
|
+
declare const _default$9: typeof __VLS_export$6;
|
|
1889
1919
|
declare const __VLS_export$6: import("vue").DefineComponent<MiniMapNodeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1890
1920
|
click: (params: MouseEvent) => any;
|
|
1891
1921
|
dblclick: (params: MouseEvent) => any;
|
|
@@ -1968,7 +1998,7 @@ interface ResizeControlLineProps extends ResizeControlProps {
|
|
|
1968
1998
|
}
|
|
1969
1999
|
//#endregion
|
|
1970
2000
|
//#region src/components/NodeResizer/NodeResizer.vue.d.ts
|
|
1971
|
-
declare const _default$
|
|
2001
|
+
declare const _default$11: typeof __VLS_export$5;
|
|
1972
2002
|
declare const __VLS_export$5: import("vue").DefineComponent<NodeResizerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1973
2003
|
resize: (resizeEvent: OnResize) => any;
|
|
1974
2004
|
resizeStart: (resizeEvent: OnResizeStart) => any;
|
|
@@ -1983,7 +2013,7 @@ declare const __VLS_export$5: import("vue").DefineComponent<NodeResizerProps, {}
|
|
|
1983
2013
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1984
2014
|
//#endregion
|
|
1985
2015
|
//#region src/components/NodeResizer/ResizeControl.vue.d.ts
|
|
1986
|
-
declare const _default$
|
|
2016
|
+
declare const _default$10: typeof __VLS_export$4;
|
|
1987
2017
|
declare const __VLS_export$4: __VLS_WithSlots$3<import("vue").DefineComponent<ResizeControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1988
2018
|
resize: (resizeEvent: OnResize) => any;
|
|
1989
2019
|
resizeStart: (resizeEvent: OnResizeStart) => any;
|
|
@@ -2019,7 +2049,7 @@ interface NodeToolbarProps {
|
|
|
2019
2049
|
}
|
|
2020
2050
|
//#endregion
|
|
2021
2051
|
//#region src/components/NodeToolbar/NodeToolbar.vue.d.ts
|
|
2022
|
-
declare const _default$
|
|
2052
|
+
declare const _default$12: typeof __VLS_export$3;
|
|
2023
2053
|
declare const __VLS_export$3: __VLS_WithSlots$2<import("vue").DefineComponent<NodeToolbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NodeToolbarProps> & Readonly<{}>, {
|
|
2024
2054
|
position: Position$1;
|
|
2025
2055
|
offset: number;
|
|
@@ -2035,8 +2065,10 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
2035
2065
|
};
|
|
2036
2066
|
//#endregion
|
|
2037
2067
|
//#region src/components/Panel/Panel.vue.d.ts
|
|
2038
|
-
declare const _default$
|
|
2039
|
-
declare const __VLS_export$2: __VLS_WithSlots$1<import("vue").DefineComponent<PanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PanelProps> & Readonly<{}>, {
|
|
2068
|
+
declare const _default$13: typeof __VLS_export$2;
|
|
2069
|
+
declare const __VLS_export$2: __VLS_WithSlots$1<import("vue").DefineComponent<PanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PanelProps> & Readonly<{}>, {
|
|
2070
|
+
position: import("@xyflow/system").PanelPosition;
|
|
2071
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
2040
2072
|
default?: (props: {}) => any;
|
|
2041
2073
|
}>;
|
|
2042
2074
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
@@ -2143,7 +2175,7 @@ interface UseNodesInitializedOptions {
|
|
|
2143
2175
|
declare function useNodesInitialized(options?: UseNodesInitializedOptions): import("vue").ComputedRef<boolean>;
|
|
2144
2176
|
//#endregion
|
|
2145
2177
|
//#region src/container/VueFlow/VueFlow.vue.d.ts
|
|
2146
|
-
declare const _default$
|
|
2178
|
+
declare const _default$14: typeof __VLS_export$1;
|
|
2147
2179
|
declare const __VLS_export$1: <NodeType extends Node = Node, EdgeType extends Edge = Edge>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2148
2180
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(FlowProps<NodeType, EdgeType> & {
|
|
2149
2181
|
nodes?: NodeType[];
|
|
@@ -2157,7 +2189,7 @@ declare const __VLS_export$1: <NodeType extends Node = Node, EdgeType extends Ed
|
|
|
2157
2189
|
expose: (exposed: import("vue").ShallowUnwrapRef<VueFlowInstance<NodeType, EdgeType>>) => void;
|
|
2158
2190
|
attrs: any;
|
|
2159
2191
|
slots: FlowSlots<NodeType, EdgeType>;
|
|
2160
|
-
emit: (((evt: "error", error: VueFlowError<ErrorCode, [] | [id?: string | undefined] | [id: string | null] | [id: string, parentId: string] | [type: string] | [id: string] | [id: string] | [id: string, source: string] | [id: string, target: string] | [type: string] | [id: string, source: string, target: string] | [id: string]>) => void) & ((evt: "nodesChange", changes: NodeChange<NodeType>[]) => void) & ((evt: "edgesChange", changes: EdgeChange<EdgeType>[]) => void) & ((evt: "nodeDoubleClick", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeClick", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeMouseEnter", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeMouseMove", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeMouseLeave", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeContextMenu", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeDragStart", nodeDragEvent: NodeDragEvent<NodeType>) => void) & ((evt: "nodeDrag", nodeDragEvent: NodeDragEvent<NodeType>) => void) & ((evt: "nodeDragStop", nodeDragEvent: NodeDragEvent<NodeType>) => void) & ((evt: "nodesInitialized", nodes: NodeType[]) => void) & ((evt: "updateNodeInternals") => void) & ((evt: "miniMapNodeClick", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "miniMapNodeDoubleClick", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "miniMapNodeMouseEnter", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "miniMapNodeMouseMove", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "miniMapNodeMouseLeave", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "connect", connectionEvent: import("@xyflow/system").Connection) => void) & ((evt: "connectStart", connectionEvent: {
|
|
2192
|
+
emit: (((evt: "error", error: VueFlowError<ErrorCode, [] | [id?: string | undefined] | [id: string | null] | [id: string, parentId: string] | [type: string] | [id: string] | [id: string] | [id: string] | [id: string, source: string] | [id: string, target: string] | [type: string] | [id: string, source: string, target: string] | [id: string] | [id: string]>) => void) & ((evt: "nodesChange", changes: NodeChange<NodeType>[]) => void) & ((evt: "edgesChange", changes: EdgeChange<EdgeType>[]) => void) & ((evt: "nodeDoubleClick", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeClick", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeMouseEnter", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeMouseMove", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeMouseLeave", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeContextMenu", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "nodeDragStart", nodeDragEvent: NodeDragEvent<NodeType>) => void) & ((evt: "nodeDrag", nodeDragEvent: NodeDragEvent<NodeType>) => void) & ((evt: "nodeDragStop", nodeDragEvent: NodeDragEvent<NodeType>) => void) & ((evt: "nodesInitialized", nodes: NodeType[]) => void) & ((evt: "updateNodeInternals") => void) & ((evt: "miniMapNodeClick", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "miniMapNodeDoubleClick", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "miniMapNodeMouseEnter", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "miniMapNodeMouseMove", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "miniMapNodeMouseLeave", nodeMouseEvent: NodeMouseEvent<NodeType>) => void) & ((evt: "connect", connectionEvent: import("@xyflow/system").Connection) => void) & ((evt: "connectStart", connectionEvent: {
|
|
2161
2193
|
event?: MouseEvent;
|
|
2162
2194
|
} & OnConnectStartParams) => void) & ((evt: "connectEnd", connectionEvent: ConnectEndEvent<NodeType>) => void) & ((evt: "clickConnectStart", connectionEvent: {
|
|
2163
2195
|
event?: MouseEvent;
|
|
@@ -2180,7 +2212,7 @@ declare const __VLS_export$1: <NodeType extends Node = Node, EdgeType extends Ed
|
|
|
2180
2212
|
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
2181
2213
|
//#endregion
|
|
2182
2214
|
//#region src/container/VueFlowProvider/VueFlowProvider.vue.d.ts
|
|
2183
|
-
declare const _default$
|
|
2215
|
+
declare const _default$15: typeof __VLS_export;
|
|
2184
2216
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
2185
2217
|
id?: string;
|
|
2186
2218
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
@@ -2199,9 +2231,283 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
2199
2231
|
declare const VueFlow: InjectionKey<VueFlowInstance>;
|
|
2200
2232
|
declare const NodeId: InjectionKey<string>;
|
|
2201
2233
|
//#endregion
|
|
2234
|
+
//#region src/props-objects.gen.d.ts
|
|
2235
|
+
declare function nodeProps<NodeType extends Node = Node>(): {
|
|
2236
|
+
data: {
|
|
2237
|
+
type: import("vue").PropType<NodeType["data"]>;
|
|
2238
|
+
required: true;
|
|
2239
|
+
};
|
|
2240
|
+
deletable: {
|
|
2241
|
+
type: import("vue").PropType<boolean>;
|
|
2242
|
+
required: true;
|
|
2243
|
+
};
|
|
2244
|
+
dragHandle: {
|
|
2245
|
+
type: import("vue").PropType<NodeType["dragHandle"] | undefined>;
|
|
2246
|
+
required: false;
|
|
2247
|
+
};
|
|
2248
|
+
draggable: {
|
|
2249
|
+
type: import("vue").PropType<boolean>;
|
|
2250
|
+
required: true;
|
|
2251
|
+
};
|
|
2252
|
+
dragging: {
|
|
2253
|
+
type: import("vue").PropType<boolean>;
|
|
2254
|
+
required: true;
|
|
2255
|
+
};
|
|
2256
|
+
height: {
|
|
2257
|
+
type: import("vue").PropType<NodeType["height"] | undefined>;
|
|
2258
|
+
required: false;
|
|
2259
|
+
};
|
|
2260
|
+
id: {
|
|
2261
|
+
type: import("vue").PropType<string>;
|
|
2262
|
+
required: true;
|
|
2263
|
+
};
|
|
2264
|
+
isConnectable: {
|
|
2265
|
+
type: import("vue").PropType<boolean>;
|
|
2266
|
+
required: true;
|
|
2267
|
+
};
|
|
2268
|
+
parentId: {
|
|
2269
|
+
type: import("vue").PropType<NodeType["parentId"] | undefined>;
|
|
2270
|
+
required: false;
|
|
2271
|
+
};
|
|
2272
|
+
positionAbsoluteX: {
|
|
2273
|
+
type: import("vue").PropType<number>;
|
|
2274
|
+
required: true;
|
|
2275
|
+
};
|
|
2276
|
+
positionAbsoluteY: {
|
|
2277
|
+
type: import("vue").PropType<number>;
|
|
2278
|
+
required: true;
|
|
2279
|
+
};
|
|
2280
|
+
selectable: {
|
|
2281
|
+
type: import("vue").PropType<boolean>;
|
|
2282
|
+
required: true;
|
|
2283
|
+
};
|
|
2284
|
+
selected: {
|
|
2285
|
+
type: import("vue").PropType<boolean>;
|
|
2286
|
+
required: true;
|
|
2287
|
+
};
|
|
2288
|
+
sourcePosition: {
|
|
2289
|
+
type: import("vue").PropType<NodeType["sourcePosition"] | undefined>;
|
|
2290
|
+
required: false;
|
|
2291
|
+
};
|
|
2292
|
+
targetPosition: {
|
|
2293
|
+
type: import("vue").PropType<NodeType["targetPosition"] | undefined>;
|
|
2294
|
+
required: false;
|
|
2295
|
+
};
|
|
2296
|
+
type: {
|
|
2297
|
+
type: import("vue").PropType<NodeType["type"]>;
|
|
2298
|
+
required: true;
|
|
2299
|
+
};
|
|
2300
|
+
width: {
|
|
2301
|
+
type: import("vue").PropType<NodeType["width"] | undefined>;
|
|
2302
|
+
required: false;
|
|
2303
|
+
};
|
|
2304
|
+
zIndex: {
|
|
2305
|
+
type: import("vue").PropType<number>;
|
|
2306
|
+
required: true;
|
|
2307
|
+
};
|
|
2308
|
+
};
|
|
2309
|
+
declare function edgeProps<EdgeType extends Edge = Edge>(): {
|
|
2310
|
+
animated: {
|
|
2311
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
2312
|
+
required: false;
|
|
2313
|
+
};
|
|
2314
|
+
curvature: {
|
|
2315
|
+
type: import("vue").PropType<number | undefined>;
|
|
2316
|
+
required: false;
|
|
2317
|
+
};
|
|
2318
|
+
data: {
|
|
2319
|
+
type: import("vue").PropType<EdgeType["data"] | undefined>;
|
|
2320
|
+
required: false;
|
|
2321
|
+
};
|
|
2322
|
+
deletable: {
|
|
2323
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
2324
|
+
required: false;
|
|
2325
|
+
};
|
|
2326
|
+
id: {
|
|
2327
|
+
type: import("vue").PropType<string>;
|
|
2328
|
+
required: true;
|
|
2329
|
+
};
|
|
2330
|
+
interactionWidth: {
|
|
2331
|
+
type: import("vue").PropType<number | undefined>;
|
|
2332
|
+
required: false;
|
|
2333
|
+
};
|
|
2334
|
+
label: {
|
|
2335
|
+
type: import("vue").PropType<string | object | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2336
|
+
[key: string]: any;
|
|
2337
|
+
}> | import("vue").Component<EdgeTextProps> | undefined>;
|
|
2338
|
+
required: false;
|
|
2339
|
+
};
|
|
2340
|
+
labelBgBorderRadius: {
|
|
2341
|
+
type: import("vue").PropType<number | undefined>;
|
|
2342
|
+
required: false;
|
|
2343
|
+
};
|
|
2344
|
+
labelBgPadding: {
|
|
2345
|
+
type: import("vue").PropType<[number, number] | undefined>;
|
|
2346
|
+
required: false;
|
|
2347
|
+
};
|
|
2348
|
+
labelBgStyle: {
|
|
2349
|
+
type: import("vue").PropType<import("vue").CSSProperties | undefined>;
|
|
2350
|
+
required: false;
|
|
2351
|
+
};
|
|
2352
|
+
labelShowBg: {
|
|
2353
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
2354
|
+
required: false;
|
|
2355
|
+
};
|
|
2356
|
+
labelStyle: {
|
|
2357
|
+
type: import("vue").PropType<import("vue").CSSProperties | undefined>;
|
|
2358
|
+
required: false;
|
|
2359
|
+
};
|
|
2360
|
+
markerEnd: {
|
|
2361
|
+
type: import("vue").PropType<string | undefined>;
|
|
2362
|
+
required: false;
|
|
2363
|
+
};
|
|
2364
|
+
markerStart: {
|
|
2365
|
+
type: import("vue").PropType<string | undefined>;
|
|
2366
|
+
required: false;
|
|
2367
|
+
};
|
|
2368
|
+
reconnectable: {
|
|
2369
|
+
type: import("vue").PropType<EdgeReconnectable | undefined>;
|
|
2370
|
+
required: false;
|
|
2371
|
+
};
|
|
2372
|
+
selectable: {
|
|
2373
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
2374
|
+
required: false;
|
|
2375
|
+
};
|
|
2376
|
+
selected: {
|
|
2377
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
2378
|
+
required: false;
|
|
2379
|
+
};
|
|
2380
|
+
source: {
|
|
2381
|
+
type: import("vue").PropType<string>;
|
|
2382
|
+
required: true;
|
|
2383
|
+
};
|
|
2384
|
+
sourceHandleId: {
|
|
2385
|
+
type: import("vue").PropType<string | null | undefined>;
|
|
2386
|
+
required: false;
|
|
2387
|
+
};
|
|
2388
|
+
sourcePosition: {
|
|
2389
|
+
type: import("vue").PropType<import("@xyflow/system").Position>;
|
|
2390
|
+
required: true;
|
|
2391
|
+
};
|
|
2392
|
+
sourceX: {
|
|
2393
|
+
type: import("vue").PropType<number>;
|
|
2394
|
+
required: true;
|
|
2395
|
+
};
|
|
2396
|
+
sourceY: {
|
|
2397
|
+
type: import("vue").PropType<number>;
|
|
2398
|
+
required: true;
|
|
2399
|
+
};
|
|
2400
|
+
style: {
|
|
2401
|
+
type: import("vue").PropType<import("vue").CSSProperties | undefined>;
|
|
2402
|
+
required: false;
|
|
2403
|
+
};
|
|
2404
|
+
target: {
|
|
2405
|
+
type: import("vue").PropType<string>;
|
|
2406
|
+
required: true;
|
|
2407
|
+
};
|
|
2408
|
+
targetHandleId: {
|
|
2409
|
+
type: import("vue").PropType<string | null | undefined>;
|
|
2410
|
+
required: false;
|
|
2411
|
+
};
|
|
2412
|
+
targetPosition: {
|
|
2413
|
+
type: import("vue").PropType<import("@xyflow/system").Position>;
|
|
2414
|
+
required: true;
|
|
2415
|
+
};
|
|
2416
|
+
targetX: {
|
|
2417
|
+
type: import("vue").PropType<number>;
|
|
2418
|
+
required: true;
|
|
2419
|
+
};
|
|
2420
|
+
targetY: {
|
|
2421
|
+
type: import("vue").PropType<number>;
|
|
2422
|
+
required: true;
|
|
2423
|
+
};
|
|
2424
|
+
type: {
|
|
2425
|
+
type: import("vue").PropType<EdgeType["type"] | undefined>;
|
|
2426
|
+
required: false;
|
|
2427
|
+
};
|
|
2428
|
+
};
|
|
2429
|
+
declare function connectionLineProps<NodeType extends Node = Node>(): {
|
|
2430
|
+
connectionStatus: {
|
|
2431
|
+
type: import("vue").PropType<ConnectionStatus | null>;
|
|
2432
|
+
required: true;
|
|
2433
|
+
};
|
|
2434
|
+
fromHandle: {
|
|
2435
|
+
type: import("vue").PropType<HandleElement | null>;
|
|
2436
|
+
required: true;
|
|
2437
|
+
};
|
|
2438
|
+
fromNode: {
|
|
2439
|
+
type: import("vue").PropType<InternalNode<NodeType>>;
|
|
2440
|
+
required: true;
|
|
2441
|
+
};
|
|
2442
|
+
fromPosition: {
|
|
2443
|
+
type: import("vue").PropType<import("@xyflow/system").Position>;
|
|
2444
|
+
required: true;
|
|
2445
|
+
};
|
|
2446
|
+
fromX: {
|
|
2447
|
+
type: import("vue").PropType<number>;
|
|
2448
|
+
required: true;
|
|
2449
|
+
};
|
|
2450
|
+
fromY: {
|
|
2451
|
+
type: import("vue").PropType<number>;
|
|
2452
|
+
required: true;
|
|
2453
|
+
};
|
|
2454
|
+
markerEnd: {
|
|
2455
|
+
type: import("vue").PropType<string | undefined>;
|
|
2456
|
+
required: false;
|
|
2457
|
+
};
|
|
2458
|
+
markerStart: {
|
|
2459
|
+
type: import("vue").PropType<string | undefined>;
|
|
2460
|
+
required: false;
|
|
2461
|
+
};
|
|
2462
|
+
pointer: {
|
|
2463
|
+
type: import("vue").PropType<import("@xyflow/system").XYPosition>;
|
|
2464
|
+
required: true;
|
|
2465
|
+
};
|
|
2466
|
+
toHandle: {
|
|
2467
|
+
type: import("vue").PropType<HandleElement | null>;
|
|
2468
|
+
required: true;
|
|
2469
|
+
};
|
|
2470
|
+
toNode: {
|
|
2471
|
+
type: import("vue").PropType<InternalNode<NodeType> | null>;
|
|
2472
|
+
required: true;
|
|
2473
|
+
};
|
|
2474
|
+
toPosition: {
|
|
2475
|
+
type: import("vue").PropType<import("@xyflow/system").Position>;
|
|
2476
|
+
required: true;
|
|
2477
|
+
};
|
|
2478
|
+
toX: {
|
|
2479
|
+
type: import("vue").PropType<number>;
|
|
2480
|
+
required: true;
|
|
2481
|
+
};
|
|
2482
|
+
toY: {
|
|
2483
|
+
type: import("vue").PropType<number>;
|
|
2484
|
+
required: true;
|
|
2485
|
+
};
|
|
2486
|
+
};
|
|
2487
|
+
//#endregion
|
|
2202
2488
|
//#region src/utils/defaultNodesEdges.d.ts
|
|
2203
2489
|
declare const defaultNodeTypes: DefaultNodeTypes;
|
|
2204
2490
|
declare const defaultEdgeTypes: DefaultEdgeTypes;
|
|
2205
2491
|
//#endregion
|
|
2206
|
-
|
|
2492
|
+
//#region src/utils/edges.d.ts
|
|
2493
|
+
/**
|
|
2494
|
+
* Adds a `Connection` (or a full `Edge`) to an edges array and returns a new array — generating the
|
|
2495
|
+
* edge id and skipping the add when an equivalent connection already exists. The pure helper to use
|
|
2496
|
+
* in an `@connect` handler against a `v-model:edges` array, e.g.
|
|
2497
|
+
* `edges.value = addEdge(connection, edges.value)`, with no store/instance access.
|
|
2498
|
+
*
|
|
2499
|
+
* Mirrors xyflow/react's + xyflow/svelte's `addEdge`.
|
|
2500
|
+
*/
|
|
2501
|
+
declare function addEdge<EdgeType extends EdgeBase>(edgeParams: EdgeType | Connection$1, edges: EdgeType[], options?: AddEdgeOptions): EdgeType[];
|
|
2502
|
+
/**
|
|
2503
|
+
* Reconnects an existing edge to a new `Connection`, returning a new edges array. The pure,
|
|
2504
|
+
* controlled counterpart to the store action `useVueFlow().reconnectEdge` — use it in an
|
|
2505
|
+
* `@reconnect` handler against a `v-model:edges` array, e.g.
|
|
2506
|
+
* `edges.value = reconnectEdge(oldEdge, newConnection, edges.value)`.
|
|
2507
|
+
*
|
|
2508
|
+
* Mirrors xyflow/react's `reconnectEdge`.
|
|
2509
|
+
*/
|
|
2510
|
+
declare function reconnectEdge<EdgeType extends EdgeBase>(oldEdge: EdgeType, newConnection: Connection$1, edges: EdgeType[], options?: ReconnectEdgeOptions): EdgeType[];
|
|
2511
|
+
//#endregion
|
|
2512
|
+
export { Actions, AddEdges, AddNodes, type Align, type AriaLabelConfig, _default as Background, BackgroundProps, BackgroundVariant, _default$1 as BaseEdge, BaseEdgeProps, BezierEdge, BezierEdgeProps, BezierEdgeType, BezierPathOptions, BuiltInNode, CSSVars, ClassValue, type ColorMode, ComputedGetters, ConnectEndEvent, ConnectingHandle, type Connection, ConnectionInProgress, ConnectionLineOptions, ConnectionLineProps, ConnectionLineType, ConnectionLookup, ConnectionMode, ConnectionState, ConnectionStatus, Connector, _default$2 as ControlButton, ControlEmits, type ControlLinePosition, type ControlPosition, ControlProps, _default$3 as Controls, type CoordinateExtent, CustomThemeVars, DefaultEdge, DefaultEdgeOptions, DefaultEdgeTypes, DefaultNodeTypes, DeleteElements, type Dimensions, Edge, EdgeAddChange, EdgeChange, EdgeComponent, EdgeEventsHandler, EdgeEventsOn, EdgeLabelOptions, _default$4 as EdgeLabelRenderer, EdgeLookup, EdgeMarker, EdgeMarkerType, EdgeMouseEvent, EdgePositions, EdgeProps, EdgeReconnectEndEvent, EdgeReconnectEvent, EdgeReconnectStartEvent, EdgeReconnectable, type EdgeRemoveChange, type EdgeSelectionChange, EdgeSlots, _default$5 as EdgeText, EdgeTextProps, _default$6 as EdgeToolbar, EdgeToolbarProps, EdgeTypesObject, ElementChange, ErrorCode, type FinalConnectionState, FitBounds, FitBoundsOptions, FitView, type FitViewOptions, FlowEmits, FlowEvents, FlowExportObject, FlowHooks, FlowHooksEmit, FlowHooksOn, FlowOptions, FlowProps, FlowSlots, GetEdge, GetInternalNode, GetIntersectingNodes, GetNode, type GetViewport, Getters, _default$7 as Handle, HandleConnectable, HandleConnectableFunc, HandleElement, HandleProps, type HandleType, InternalNode, IsNodeIntersecting, IsValidParams, MarkerProps, MarkerType, _default$8 as MiniMap, MiniMapEmits, _default$9 as MiniMapNode, MiniMapNodeEmits, MiniMapNodeFunc, MiniMapNodeProps, MiniMapProps, MiniMapSlots, MouseTouchEvent, NoConnection, Node, NodeAddChange, NodeChange, NodeComponent, type NodeConnection, type NodeDimensionChange, NodeDragEvent, NodeDragItem, NodeEventsHandler, NodeEventsOn, NodeHandleBounds, NodeId as NodeIdInjection, NodeLookup, NodeMouseEvent, NodeOrigin, type NodePositionChange, NodeProps, type NodeRemoveChange, _default$10 as NodeResizeControl, _default$11 as NodeResizer, NodeResizerEmits, NodeResizerProps, type NodeSelectionChange, NodeSlots, _default$12 as NodeToolbar, NodeToolbarProps, NodeTypesObject, OnBeforeDelete, OnConnectStartParams, OnResize, OnResizeEnd, OnResizeStart, type Padding, type PaddingUnit, type PaddingWithUnit, PanOnScrollMode, _default$13 as Panel, PanelProps, Position, type Project, ReconnectEdge, type Rect, RemoveEdges, RemoveNodes, ResizeControlLineProps, ResizeControlProps, ResizeControlVariant, type ResizeDragEvent, type ResizeParams, type ResizeParamsWithDirection, Result, SelectionChangeEvent, SelectionMode, type SelectionRect, type SetCenter, type SetCenterOptions, SetEdges, SetNodes, SetState, SetStateOptions, type SetViewport, ShapeRendering, type ShouldResize, SimpleBezierEdge, SimpleBezierEdgeProps, Slots, SmoothStepEdge, SmoothStepEdgeProps, SmoothStepEdgeType, SmoothStepPathOptions, type SnapGrid, State, StepEdge, StepEdgeProps, StraightEdge, StraightEdgeProps, Styles, ThemeVars, UpdateEdge, UpdateEdgeData, UpdateNode, UpdateNodeData, UpdateNodeDimensions, UpdateNodeDimensionsParams, UpdateNodeInternals, UpdateNodePosition, ValidConnectionFunc, type Viewport, ViewportFunctions, type ViewportHelperFunctionOptions, _default$14 as VueFlow, VueFlowError, VueFlow as VueFlowInjection, VueFlowInstance, _default$15 as VueFlowProvider, VueFlowState, VueFlowStoreHandle, type XYPosition, type ZIndexMode, type ZoomInOut, type ZoomTo, addEdge, applyChanges, applyEdgeChanges, applyNodeChanges, clamp, connectionExists, connectionLineProps, defaultEdgeTypes, defaultNodeTypes, edgeProps, getBezierEdgeCenter, getBezierPath, getBoundsOfBoxes, getBoundsOfRects, getConnectedEdges, getConnectionStatus, getIncomers, getMarkerId, getNodesBounds, getNodesInside, getOutgoers, getSimpleBezierPath, getSmoothStepPath, getStraightPath, getViewportForBounds, isEdge, isEdgeBase, isErrorOfType, isInternalNode, isInternalNodeBase, isMacOs, isNode, isNodeBase, nodeProps, pointToRendererPoint, reconnectEdge, rendererPointToPoint, storeToRefs, useConnection, useEdge, useEdgesData, useHandle, useInternalNode, useKeyPress, useNode, useNodeConnections, useNodeId, useNodesData, useNodesInitialized, useStore, useVueFlow };
|
|
2207
2513
|
//# sourceMappingURL=index.d.mts.map
|