@xyflow/system 0.0.14 → 0.0.16
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/index.js +91 -71
- package/dist/esm/index.mjs +91 -71
- package/dist/esm/types/edges.d.ts +18 -0
- package/dist/esm/types/edges.d.ts.map +1 -1
- package/dist/esm/types/general.d.ts +1 -1
- package/dist/esm/types/general.d.ts.map +1 -1
- package/dist/esm/types/handles.d.ts +17 -0
- package/dist/esm/types/handles.d.ts.map +1 -1
- package/dist/esm/types/nodes.d.ts +39 -4
- package/dist/esm/types/nodes.d.ts.map +1 -1
- package/dist/esm/utils/edges/general.d.ts +2 -2
- package/dist/esm/utils/edges/general.d.ts.map +1 -1
- package/dist/esm/utils/general.d.ts +1 -0
- package/dist/esm/utils/general.d.ts.map +1 -1
- package/dist/esm/utils/graph.d.ts +28 -9
- package/dist/esm/utils/graph.d.ts.map +1 -1
- package/dist/esm/utils/marker.d.ts +3 -1
- package/dist/esm/utils/marker.d.ts.map +1 -1
- package/dist/esm/xydrag/XYDrag.d.ts +5 -5
- package/dist/esm/xydrag/XYDrag.d.ts.map +1 -1
- package/dist/esm/xyhandle/XYHandle.d.ts +2 -0
- package/dist/esm/xyhandle/XYHandle.d.ts.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/types/edges.d.ts +18 -0
- package/dist/umd/types/edges.d.ts.map +1 -1
- package/dist/umd/types/general.d.ts +1 -1
- package/dist/umd/types/general.d.ts.map +1 -1
- package/dist/umd/types/handles.d.ts +17 -0
- package/dist/umd/types/handles.d.ts.map +1 -1
- package/dist/umd/types/nodes.d.ts +39 -4
- package/dist/umd/types/nodes.d.ts.map +1 -1
- package/dist/umd/utils/edges/general.d.ts +2 -2
- package/dist/umd/utils/edges/general.d.ts.map +1 -1
- package/dist/umd/utils/general.d.ts +1 -0
- package/dist/umd/utils/general.d.ts.map +1 -1
- package/dist/umd/utils/graph.d.ts +28 -9
- package/dist/umd/utils/graph.d.ts.map +1 -1
- package/dist/umd/utils/marker.d.ts +3 -1
- package/dist/umd/utils/marker.d.ts.map +1 -1
- package/dist/umd/xydrag/XYDrag.d.ts +5 -5
- package/dist/umd/xydrag/XYDrag.d.ts.map +1 -1
- package/dist/umd/xyhandle/XYHandle.d.ts +2 -0
- package/dist/umd/xyhandle/XYHandle.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Transform, type XYPosition, type Rect, type NodeOrigin, type NodeBase, type EdgeBase, type FitViewParamsBase, type FitViewOptionsBase,
|
|
1
|
+
import { type Transform, type XYPosition, type Rect, type NodeOrigin, type NodeBase, type EdgeBase, type FitViewParamsBase, type FitViewOptionsBase, CoordinateExtent, OnError, OnBeforeDeleteBase, NodeLookup } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Test whether an object is useable as an Edge
|
|
4
4
|
* @public
|
|
@@ -23,7 +23,7 @@ export declare const isNodeBase: <NodeType extends NodeBase<any, string | undefi
|
|
|
23
23
|
* @param edges - The array of all edges
|
|
24
24
|
* @returns An array of nodes that are connected over eges where the source is the given node
|
|
25
25
|
*/
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const getOutgoers: <NodeType extends NodeBase<any, string | undefined> = NodeBase<any, string | undefined>, EdgeType extends EdgeBase<any> = EdgeBase<any>>(node: NodeType | {
|
|
27
27
|
id: string;
|
|
28
28
|
}, nodes: NodeType[], edges: EdgeType[]) => NodeType[];
|
|
29
29
|
/**
|
|
@@ -34,21 +34,27 @@ export declare const getOutgoersBase: <NodeType extends NodeBase<any, string | u
|
|
|
34
34
|
* @param edges - The array of all edges
|
|
35
35
|
* @returns An array of nodes that are connected over eges where the target is the given node
|
|
36
36
|
*/
|
|
37
|
-
export declare const
|
|
37
|
+
export declare const getIncomers: <NodeType extends NodeBase<any, string | undefined> = NodeBase<any, string | undefined>, EdgeType extends EdgeBase<any> = EdgeBase<any>>(node: NodeType | {
|
|
38
38
|
id: string;
|
|
39
39
|
}, nodes: NodeType[], edges: EdgeType[]) => NodeType[];
|
|
40
|
-
export declare const getNodePositionWithOrigin: (node: NodeBase | undefined, nodeOrigin?: NodeOrigin) =>
|
|
40
|
+
export declare const getNodePositionWithOrigin: (node: NodeBase | undefined, nodeOrigin?: NodeOrigin) => {
|
|
41
|
+
position: XYPosition;
|
|
41
42
|
positionAbsolute: XYPosition;
|
|
42
43
|
};
|
|
44
|
+
export type GetNodesBoundsParams = {
|
|
45
|
+
nodeOrigin?: NodeOrigin;
|
|
46
|
+
useRelativePosition?: boolean;
|
|
47
|
+
};
|
|
43
48
|
/**
|
|
44
49
|
* Determines a bounding box that contains all given nodes in an array
|
|
45
50
|
* @public
|
|
46
51
|
* @remarks Useful when combined with {@link getViewportForBounds} to calculate the correct transform to fit the given nodes in a viewport.
|
|
47
52
|
* @param nodes - Nodes to calculate the bounds for
|
|
48
|
-
* @param nodeOrigin - Origin of the nodes: [0, 0] - top left, [0.5, 0.5] - center
|
|
53
|
+
* @param params.nodeOrigin - Origin of the nodes: [0, 0] - top left, [0.5, 0.5] - center
|
|
54
|
+
* @param params.useRelativePosition - Whether to use the relative or absolute node positions
|
|
49
55
|
* @returns Bounding box enclosing all nodes
|
|
50
56
|
*/
|
|
51
|
-
export declare const getNodesBounds: (nodes: NodeBase[],
|
|
57
|
+
export declare const getNodesBounds: (nodes: NodeBase[], params?: GetNodesBoundsParams) => Rect;
|
|
52
58
|
export declare const getNodesInside: <NodeType extends NodeBase<any, string | undefined>>(nodes: NodeType[], rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean, nodeOrigin?: NodeOrigin) => NodeType[];
|
|
53
59
|
/**
|
|
54
60
|
* Get all connecting edges for a given set of nodes
|
|
@@ -56,9 +62,22 @@ export declare const getNodesInside: <NodeType extends NodeBase<any, string | un
|
|
|
56
62
|
* @param edges - All edges
|
|
57
63
|
* @returns Array of edges that connect any of the given nodes with each other
|
|
58
64
|
*/
|
|
59
|
-
export declare const
|
|
65
|
+
export declare const getConnectedEdges: <NodeType extends NodeBase<any, string | undefined> = NodeBase<any, string | undefined>, EdgeType extends EdgeBase<any> = EdgeBase<any>>(nodes: NodeType[], edges: EdgeType[]) => EdgeType[];
|
|
60
66
|
export declare function fitView<Params extends FitViewParamsBase<NodeBase>, Options extends FitViewOptionsBase<NodeBase>>({ nodes, width, height, panZoom, minZoom, maxZoom, nodeOrigin }: Params, options?: Options): boolean;
|
|
61
|
-
|
|
67
|
+
/**
|
|
68
|
+
* This function calculates the next position of a node, taking into account the node's extent, parent node, and origin.
|
|
69
|
+
*
|
|
70
|
+
* @internal
|
|
71
|
+
* @returns position, positionAbsolute
|
|
72
|
+
*/
|
|
73
|
+
export declare function calculateNodePosition<NodeType extends NodeBase>({ nodeId, nextPosition, nodeLookup, nodeOrigin, nodeExtent, onError, }: {
|
|
74
|
+
nodeId: string;
|
|
75
|
+
nextPosition: XYPosition;
|
|
76
|
+
nodeLookup: NodeLookup<NodeType>;
|
|
77
|
+
nodeOrigin?: NodeOrigin;
|
|
78
|
+
nodeExtent?: CoordinateExtent;
|
|
79
|
+
onError?: OnError;
|
|
80
|
+
}): {
|
|
62
81
|
position: XYPosition;
|
|
63
82
|
positionAbsolute: XYPosition;
|
|
64
83
|
};
|
|
@@ -77,7 +96,7 @@ export declare function getElementsToRemove<NodeType extends NodeBase = NodeBase
|
|
|
77
96
|
edgesToRemove: Partial<EdgeType>[];
|
|
78
97
|
nodes: NodeType[];
|
|
79
98
|
edges: EdgeType[];
|
|
80
|
-
onBeforeDelete?:
|
|
99
|
+
onBeforeDelete?: OnBeforeDeleteBase<NodeType, EdgeType>;
|
|
81
100
|
}): Promise<{
|
|
82
101
|
nodes: NodeType[];
|
|
83
102
|
edges: EdgeType[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/utils/graph.ts"],"names":[],"mappings":"AAYA,OAAO,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+1,9 @@
|
|
|
1
1
|
import type { EdgeBase, EdgeMarkerType, MarkerProps } from '../types';
|
|
2
2
|
export declare function getMarkerId(marker: EdgeMarkerType | undefined, id?: string | null): string;
|
|
3
|
-
export declare function createMarkerIds(edges: EdgeBase[], { id, defaultColor }: {
|
|
3
|
+
export declare function createMarkerIds(edges: EdgeBase[], { id, defaultColor, defaultMarkerStart, defaultMarkerEnd, }: {
|
|
4
4
|
id?: string | null;
|
|
5
5
|
defaultColor?: string;
|
|
6
|
+
defaultMarkerStart?: EdgeMarkerType;
|
|
7
|
+
defaultMarkerEnd?: EdgeMarkerType;
|
|
6
8
|
}): MarkerProps[];
|
|
7
9
|
//# sourceMappingURL=marker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marker.d.ts","sourceRoot":"","sources":["../../src/utils/marker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAc,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAElF,wBAAgB,WAAW,CAAC,MAAM,EAAE,cAAc,GAAG,SAAS,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAe1F;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,QAAQ,EAAE,EACjB,
|
|
1
|
+
{"version":3,"file":"marker.d.ts","sourceRoot":"","sources":["../../src/utils/marker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAc,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAElF,wBAAgB,WAAW,CAAC,MAAM,EAAE,cAAc,GAAG,SAAS,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAe1F;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,QAAQ,EAAE,EACjB,EACE,EAAE,EACF,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,GACjB,EAAE;IACD,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,cAAc,CAAC;IACpC,gBAAgB,CAAC,EAAE,cAAc,CAAC;CACnC,iBAmBF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { NodeBase, NodeDragItem, EdgeBase, CoordinateExtent, NodeOrigin, OnError, SnapGrid, Transform, PanBy,
|
|
1
|
+
import type { NodeBase, NodeDragItem, EdgeBase, CoordinateExtent, NodeOrigin, OnError, SnapGrid, Transform, PanBy, OnSelectionDrag, UpdateNodePositions } from '../types';
|
|
2
2
|
export type OnDrag = (event: MouseEvent, dragItems: NodeDragItem[], node: NodeBase, nodes: NodeBase[]) => void;
|
|
3
|
-
type StoreItems = {
|
|
3
|
+
type StoreItems<OnNodeDrag> = {
|
|
4
4
|
nodes: NodeBase[];
|
|
5
5
|
nodeLookup: Map<string, NodeBase>;
|
|
6
6
|
edges: EdgeBase[];
|
|
@@ -29,9 +29,9 @@ type StoreItems = {
|
|
|
29
29
|
onSelectionDragStop?: OnSelectionDrag;
|
|
30
30
|
updateNodePositions: UpdateNodePositions;
|
|
31
31
|
};
|
|
32
|
-
export type XYDragParams = {
|
|
32
|
+
export type XYDragParams<OnNodeDrag> = {
|
|
33
33
|
domNode: Element;
|
|
34
|
-
getStoreItems: () => StoreItems
|
|
34
|
+
getStoreItems: () => StoreItems<OnNodeDrag>;
|
|
35
35
|
onDragStart?: OnDrag;
|
|
36
36
|
onDrag?: OnDrag;
|
|
37
37
|
onDragStop?: OnDrag;
|
|
@@ -48,6 +48,6 @@ export type DragUpdateParams = {
|
|
|
48
48
|
nodeId?: string;
|
|
49
49
|
domNode: Element;
|
|
50
50
|
};
|
|
51
|
-
export declare function XYDrag({ domNode, onNodeMouseDown, getStoreItems, onDragStart, onDrag, onDragStop, }: XYDragParams): XYDragInstance;
|
|
51
|
+
export declare function XYDrag<OnNodeDrag extends (e: any, nodes: any, node: any) => void | undefined>({ domNode, onNodeMouseDown, getStoreItems, onDragStart, onDrag, onDragStop, }: XYDragParams<OnNodeDrag>): XYDragInstance;
|
|
52
52
|
export {};
|
|
53
53
|
//# sourceMappingURL=XYDrag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XYDrag.d.ts","sourceRoot":"","sources":["../../src/xydrag/XYDrag.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EAGZ,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,
|
|
1
|
+
{"version":3,"file":"XYDrag.d.ts","sourceRoot":"","sources":["../../src/xydrag/XYDrag.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EAGZ,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,eAAe,EACf,mBAAmB,EAEpB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;AAE/G,KAAK,UAAU,CAAC,UAAU,IAAI;IAC5B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAClC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;IACvB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,OAAO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;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,wBAAgB,MAAM,CAAC,UAAU,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,GAAG,SAAS,EAAE,EAC7F,OAAO,EACP,eAAe,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,UAAU,GACX,EAAE,YAAY,CAAC,UAAU,CAAC,GAAG,cAAc,CAyP3C"}
|
|
@@ -9,6 +9,7 @@ export type OnPointerDownParams = {
|
|
|
9
9
|
isTarget: boolean;
|
|
10
10
|
nodes: NodeBase[];
|
|
11
11
|
lib: string;
|
|
12
|
+
flowId: string | null;
|
|
12
13
|
edgeUpdaterType?: HandleType;
|
|
13
14
|
updateConnection: UpdateConnection;
|
|
14
15
|
panBy: PanBy;
|
|
@@ -29,6 +30,7 @@ export type IsValidParams = {
|
|
|
29
30
|
isValidConnection?: IsValidConnection;
|
|
30
31
|
doc: Document | ShadowRoot;
|
|
31
32
|
lib: string;
|
|
33
|
+
flowId: string | null;
|
|
32
34
|
};
|
|
33
35
|
export type XYHandleInstance = {
|
|
34
36
|
onPointerDown: (event: MouseEvent | TouchEvent, params: OnPointerDownParams) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XYHandle.d.ts","sourceRoot":"","sources":["../../src/xyhandle/XYHandle.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACtB,MAAM,UAAU,CAAC;AAIlB,MAAM,MAAM,mBAAmB,GAAG;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAA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