@xyflow/system 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/constants.d.ts +0 -1
- package/dist/esm/constants.d.ts.map +1 -1
- package/dist/esm/index.js +297 -188
- package/dist/esm/index.mjs +297 -188
- package/dist/esm/types/general.d.ts +3 -3
- package/dist/esm/types/general.d.ts.map +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/nodes.d.ts +21 -15
- package/dist/esm/types/nodes.d.ts.map +1 -1
- package/dist/esm/utils/edges/general.d.ts +5 -6
- package/dist/esm/utils/edges/general.d.ts.map +1 -1
- package/dist/esm/utils/edges/positions.d.ts +3 -3
- package/dist/esm/utils/edges/positions.d.ts.map +1 -1
- package/dist/esm/utils/general.d.ts +3 -3
- package/dist/esm/utils/general.d.ts.map +1 -1
- package/dist/esm/utils/graph.d.ts +16 -5
- package/dist/esm/utils/graph.d.ts.map +1 -1
- package/dist/esm/utils/store.d.ts +5 -5
- package/dist/esm/utils/store.d.ts.map +1 -1
- package/dist/esm/xydrag/XYDrag.d.ts +2 -2
- package/dist/esm/xydrag/XYDrag.d.ts.map +1 -1
- package/dist/esm/xydrag/utils.d.ts +3 -3
- package/dist/esm/xydrag/utils.d.ts.map +1 -1
- package/dist/esm/xyhandle/XYHandle.d.ts +2 -2
- package/dist/esm/xyhandle/XYHandle.d.ts.map +1 -1
- package/dist/esm/xyhandle/utils.d.ts +4 -4
- package/dist/esm/xyhandle/utils.d.ts.map +1 -1
- package/dist/esm/xypanzoom/XYPanZoom.d.ts.map +1 -1
- package/dist/esm/xypanzoom/filter.d.ts.map +1 -1
- package/dist/umd/constants.d.ts +0 -1
- package/dist/umd/constants.d.ts.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/types/changes.d.ts +50 -0
- package/dist/umd/types/changes.d.ts.map +1 -0
- package/dist/umd/types/general.d.ts +3 -3
- package/dist/umd/types/general.d.ts.map +1 -1
- package/dist/umd/types/index.d.ts +1 -0
- package/dist/umd/types/index.d.ts.map +1 -1
- package/dist/umd/types/nodes.d.ts +21 -15
- package/dist/umd/types/nodes.d.ts.map +1 -1
- package/dist/umd/utils/edges/general.d.ts +5 -6
- package/dist/umd/utils/edges/general.d.ts.map +1 -1
- package/dist/umd/utils/edges/positions.d.ts +3 -3
- package/dist/umd/utils/edges/positions.d.ts.map +1 -1
- package/dist/umd/utils/general.d.ts +3 -3
- package/dist/umd/utils/general.d.ts.map +1 -1
- package/dist/umd/utils/graph.d.ts +16 -5
- package/dist/umd/utils/graph.d.ts.map +1 -1
- package/dist/umd/utils/store.d.ts +5 -5
- package/dist/umd/utils/store.d.ts.map +1 -1
- package/dist/umd/xydrag/XYDrag.d.ts +2 -2
- package/dist/umd/xydrag/XYDrag.d.ts.map +1 -1
- package/dist/umd/xydrag/utils.d.ts +3 -3
- package/dist/umd/xydrag/utils.d.ts.map +1 -1
- package/dist/umd/xyhandle/XYHandle.d.ts +2 -2
- package/dist/umd/xyhandle/XYHandle.d.ts.map +1 -1
- package/dist/umd/xyhandle/utils.d.ts +4 -4
- package/dist/umd/xyhandle/utils.d.ts.map +1 -1
- package/dist/umd/xypanzoom/XYPanZoom.d.ts.map +1 -1
- package/dist/umd/xypanzoom/filter.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { internalsSymbol } from '../constants';
|
|
2
1
|
import type { XYPosition, Position, CoordinateExtent, HandleElement } from '.';
|
|
3
2
|
import { Optional } from '../utils/types';
|
|
4
3
|
/**
|
|
@@ -40,7 +39,7 @@ export type NodeBase<NodeData extends Record<string, unknown> = Record<string, u
|
|
|
40
39
|
initialWidth?: number;
|
|
41
40
|
initialHeight?: number;
|
|
42
41
|
/** Parent node id, used for creating sub-flows */
|
|
43
|
-
|
|
42
|
+
parentId?: string;
|
|
44
43
|
zIndex?: number;
|
|
45
44
|
/** Boundary a node can be moved in
|
|
46
45
|
* @example 'parent' or [[0, 0], [100, 100]]
|
|
@@ -56,19 +55,24 @@ export type NodeBase<NodeData extends Record<string, unknown> = Record<string, u
|
|
|
56
55
|
*/
|
|
57
56
|
origin?: NodeOrigin;
|
|
58
57
|
handles?: NodeHandle[];
|
|
59
|
-
|
|
58
|
+
measured?: {
|
|
60
59
|
width?: number;
|
|
61
60
|
height?: number;
|
|
62
|
-
positionAbsolute?: XYPosition;
|
|
63
61
|
};
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
};
|
|
63
|
+
export type InternalNodeBase<NodeType extends NodeBase = NodeBase> = NodeType & {
|
|
64
|
+
measured: {
|
|
65
|
+
width?: number;
|
|
66
|
+
height?: number;
|
|
67
|
+
};
|
|
68
|
+
internals: {
|
|
69
|
+
positionAbsolute: XYPosition;
|
|
70
|
+
z: number;
|
|
71
|
+
isParent: boolean;
|
|
72
|
+
/** Holds a reference to the original node object provided by the user.
|
|
73
|
+
* Used as an optimization to avoid certain operations. */
|
|
74
|
+
userNode: NodeType;
|
|
66
75
|
handleBounds?: NodeHandleBounds;
|
|
67
|
-
isParent?: boolean;
|
|
68
|
-
/** Holds a reference to the original node object provided by the user
|
|
69
|
-
* (which may lack some fields, like `computed` or `[internalSymbol]`. Used
|
|
70
|
-
* as an optimization to avoid certain operations. */
|
|
71
|
-
userProvidedNode: NodeBase<NodeData, NodeType>;
|
|
72
76
|
};
|
|
73
77
|
};
|
|
74
78
|
/**
|
|
@@ -91,7 +95,7 @@ export type NodeHandleBounds = {
|
|
|
91
95
|
export type NodeDimensionUpdate = {
|
|
92
96
|
id: string;
|
|
93
97
|
nodeElement: HTMLDivElement;
|
|
94
|
-
|
|
98
|
+
force?: boolean;
|
|
95
99
|
};
|
|
96
100
|
export type NodeBounds = XYPosition & {
|
|
97
101
|
width: number | null;
|
|
@@ -101,13 +105,15 @@ export type NodeDragItem = {
|
|
|
101
105
|
id: string;
|
|
102
106
|
position: XYPosition;
|
|
103
107
|
distance: XYPosition;
|
|
104
|
-
|
|
108
|
+
measured: {
|
|
105
109
|
width: number | null;
|
|
106
110
|
height: number | null;
|
|
111
|
+
};
|
|
112
|
+
internals: {
|
|
107
113
|
positionAbsolute: XYPosition;
|
|
108
114
|
};
|
|
109
115
|
extent?: 'parent' | CoordinateExtent;
|
|
110
|
-
|
|
116
|
+
parentId?: string;
|
|
111
117
|
dragging?: boolean;
|
|
112
118
|
origin?: NodeOrigin;
|
|
113
119
|
expandParent?: boolean;
|
|
@@ -116,5 +122,5 @@ export type NodeOrigin = [number, number];
|
|
|
116
122
|
export type OnSelectionDrag = (event: MouseEvent, nodes: NodeBase[]) => void;
|
|
117
123
|
export type NodeHandle = Optional<HandleElement, 'width' | 'height'>;
|
|
118
124
|
export type Align = 'center' | 'start' | 'end';
|
|
119
|
-
export type NodeLookup<NodeType extends
|
|
125
|
+
export type NodeLookup<NodeType extends InternalNodeBase = InternalNodeBase> = Map<string, NodeType>;
|
|
120
126
|
//# sourceMappingURL=nodes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../src/types/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../src/types/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,CAClB,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClE,QAAQ,SAAS,MAAM,GAAG,MAAM,IAC9B;IACF,0BAA0B;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,QAA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AAC;IAErB,QAAQ,EAAE,UAAU,CAAC;IACrB,QAAQ,EAAE;QACR,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB,CAAC;IACF,SAAS,EAAE;QACT,gBAAgB,EAAE,UAAU,CAAC;KAC9B,CAAC;IACF,MAAM,CAAC,EAAE,QAAQ,GAAG,gBAAgB,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE1C,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;AAE7E,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;AAErE,MAAM,MAAM,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAE/C,MAAM,MAAM,UAAU,CAAC,QAAQ,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Connection, Transform } from '../..';
|
|
2
|
-
import { EdgeBase, NodeBase } from '../../types';
|
|
1
|
+
import { Connection, InternalNodeBase, Transform, EdgeBase } from '../..';
|
|
3
2
|
export declare function getEdgeCenter({ sourceX, sourceY, targetX, targetY, }: {
|
|
4
3
|
sourceX: number;
|
|
5
4
|
sourceY: number;
|
|
@@ -7,16 +6,16 @@ export declare function getEdgeCenter({ sourceX, sourceY, targetX, targetY, }: {
|
|
|
7
6
|
targetY: number;
|
|
8
7
|
}): [number, number, number, number];
|
|
9
8
|
export type GetEdgeZIndexParams = {
|
|
10
|
-
sourceNode:
|
|
11
|
-
targetNode:
|
|
9
|
+
sourceNode: InternalNodeBase;
|
|
10
|
+
targetNode: InternalNodeBase;
|
|
12
11
|
selected?: boolean;
|
|
13
12
|
zIndex?: number;
|
|
14
13
|
elevateOnSelect?: boolean;
|
|
15
14
|
};
|
|
16
15
|
export declare function getElevatedEdgeZIndex({ sourceNode, targetNode, selected, zIndex, elevateOnSelect, }: GetEdgeZIndexParams): number;
|
|
17
16
|
type IsEdgeVisibleParams = {
|
|
18
|
-
sourceNode:
|
|
19
|
-
targetNode:
|
|
17
|
+
sourceNode: InternalNodeBase;
|
|
18
|
+
targetNode: InternalNodeBase;
|
|
20
19
|
width: number;
|
|
21
20
|
height: number;
|
|
22
21
|
transform: Transform;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../src/utils/edges/general.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../src/utils/edges/general.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAA6B,QAAQ,EAAE,MAAM,OAAO,CAAC;AAIrG,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAQnC;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,UAAU,EACV,QAAgB,EAChB,MAAU,EACV,eAAuB,GACxB,EAAE,mBAAmB,GAAG,MAAM,CAS9B;AAED,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,mBAAmB,GAAG,OAAO,CAmBhH;AAeD;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,0CACN,QAAQ,GAAG,UAAU,SAC1B,QAAQ,EAAE,KAChB,QAAQ,EA8BV,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,uCACZ,QAAQ,iBACF,UAAU,SAClB,QAAQ,EAAE,YACR,iBAAiB,KACzB,QAAQ,EA4BV,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EdgePosition } from '../../types/edges';
|
|
2
2
|
import { ConnectionMode, OnError } from '../../types/general';
|
|
3
|
-
import {
|
|
3
|
+
import { InternalNodeBase } from '../../types/nodes';
|
|
4
4
|
export type GetEdgePositionParams = {
|
|
5
5
|
id: string;
|
|
6
|
-
sourceNode:
|
|
6
|
+
sourceNode: InternalNodeBase;
|
|
7
7
|
sourceHandle: string | null;
|
|
8
|
-
targetNode:
|
|
8
|
+
targetNode: InternalNodeBase;
|
|
9
9
|
targetHandle: string | null;
|
|
10
10
|
connectionMode: ConnectionMode;
|
|
11
11
|
onError?: OnError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positions.d.ts","sourceRoot":"","sources":["../../../src/utils/edges/positions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"positions.d.ts","sourceRoot":"","sources":["../../../src/utils/edges/positions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAc,MAAM,mBAAmB,CAAC;AAMjE,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,gBAAgB,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,cAAc,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAUF,wBAAgB,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,YAAY,GAAG,IAAI,CA6ClF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Dimensions, XYPosition, CoordinateExtent, Box, Rect, NodeBase, NodeOrigin, SnapGrid, Transform } from '../types';
|
|
1
|
+
import type { Dimensions, XYPosition, CoordinateExtent, Box, Rect, NodeBase, NodeOrigin, SnapGrid, Transform, InternalNodeBase } from '../types';
|
|
2
2
|
import { type Viewport } from '../types';
|
|
3
3
|
export declare const clamp: (val: number, min?: number, max?: number) => number;
|
|
4
4
|
export declare const clampPosition: (position: XYPosition | undefined, extent: CoordinateExtent) => {
|
|
@@ -9,8 +9,8 @@ export declare const calcAutoPan: (pos: XYPosition, bounds: Dimensions) => numbe
|
|
|
9
9
|
export declare const getBoundsOfBoxes: (box1: Box, box2: Box) => Box;
|
|
10
10
|
export declare const rectToBox: ({ x, y, width, height }: Rect) => Box;
|
|
11
11
|
export declare const boxToRect: ({ x, y, x2, y2 }: Box) => Rect;
|
|
12
|
-
export declare const nodeToRect: (node: NodeBase, nodeOrigin?: NodeOrigin) => Rect;
|
|
13
|
-
export declare const nodeToBox: (node: NodeBase, nodeOrigin?: NodeOrigin) => Box;
|
|
12
|
+
export declare const nodeToRect: (node: InternalNodeBase | NodeBase, nodeOrigin?: NodeOrigin) => Rect;
|
|
13
|
+
export declare const nodeToBox: (node: InternalNodeBase | NodeBase, nodeOrigin?: NodeOrigin) => Box;
|
|
14
14
|
export declare const getBoundsOfRects: (rect1: Rect, rect2: Rect) => Rect;
|
|
15
15
|
export declare const getOverlappingArea: (rectA: Rect, rectB: Rect) => number;
|
|
16
16
|
export declare const isRectObject: (obj: any) => obj is Rect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../src/utils/general.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,GAAG,EACH,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,SAAS,
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../src/utils/general.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,GAAG,EACH,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,eAAO,MAAM,KAAK,QAAS,MAAM,iCAAqB,MAA2C,CAAC;AAEl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EAAE,gBAAgB,GAAG,QAAQ,GAAG,MAAM,IAAI,gBAAgB,CAEnG;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,EACpE,IAAI,EAAE,QAAQ,GACb;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAKnC;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,EAAE,IAAI,EAAE,QAAQ,GAAG,OAAO,CAK/F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Transform, type XYPosition, type Rect, type NodeOrigin, type NodeBase, type EdgeBase, type FitViewParamsBase, type FitViewOptionsBase, CoordinateExtent, OnError, OnBeforeDeleteBase, NodeLookup } from '../types';
|
|
1
|
+
import { type Transform, type XYPosition, type Rect, type NodeOrigin, type NodeBase, type EdgeBase, type FitViewParamsBase, type FitViewOptionsBase, CoordinateExtent, OnError, OnBeforeDeleteBase, NodeLookup, InternalNodeBase } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Test whether an object is useable as an Edge
|
|
4
4
|
* @public
|
|
@@ -15,6 +15,7 @@ export declare const isEdgeBase: <EdgeType extends EdgeBase = EdgeBase>(element:
|
|
|
15
15
|
* @returns A boolean indicating whether the element is an Node
|
|
16
16
|
*/
|
|
17
17
|
export declare const isNodeBase: <NodeType extends NodeBase = NodeBase>(element: any) => element is NodeType;
|
|
18
|
+
export declare const isInternalNodeBase: <NodeType extends InternalNodeBase = InternalNodeBase>(element: any) => element is NodeType;
|
|
18
19
|
/**
|
|
19
20
|
* Pass in a node, and get connected nodes where edge.source === node.id
|
|
20
21
|
* @public
|
|
@@ -37,7 +38,7 @@ export declare const getOutgoers: <NodeType extends NodeBase = NodeBase, EdgeTyp
|
|
|
37
38
|
export declare const getIncomers: <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(node: NodeType | {
|
|
38
39
|
id: string;
|
|
39
40
|
}, nodes: NodeType[], edges: EdgeType[]) => NodeType[];
|
|
40
|
-
export declare const getNodePositionWithOrigin: (node: NodeBase | undefined, nodeOrigin?: NodeOrigin) => {
|
|
41
|
+
export declare const getNodePositionWithOrigin: (node: InternalNodeBase | NodeBase | undefined, nodeOrigin?: NodeOrigin) => {
|
|
41
42
|
position: XYPosition;
|
|
42
43
|
positionAbsolute: XYPosition;
|
|
43
44
|
};
|
|
@@ -55,7 +56,17 @@ export type GetNodesBoundsParams = {
|
|
|
55
56
|
* @returns Bounding box enclosing all nodes
|
|
56
57
|
*/
|
|
57
58
|
export declare const getNodesBounds: (nodes: NodeBase[], params?: GetNodesBoundsParams) => Rect;
|
|
58
|
-
export
|
|
59
|
+
export type GetInternalNodesBoundsParams = {
|
|
60
|
+
nodeOrigin?: NodeOrigin;
|
|
61
|
+
useRelativePosition?: boolean;
|
|
62
|
+
filter?: (node: NodeBase) => boolean;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Determines a bounding box that contains all given nodes in an array
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
export declare const getInternalNodesBounds: (nodeLookup: NodeLookup, params?: GetInternalNodesBoundsParams) => Rect;
|
|
69
|
+
export declare const getNodesInside: <NodeType extends NodeBase = NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, rect: Rect, [tx, ty, tScale]?: Transform, partially?: boolean, excludeNonSelectableNodes?: boolean, nodeOrigin?: NodeOrigin) => NodeType[];
|
|
59
70
|
/**
|
|
60
71
|
* Get all connecting edges for a given set of nodes
|
|
61
72
|
* @param nodes - Nodes you want to get the connected edges for
|
|
@@ -63,7 +74,7 @@ export declare const getNodesInside: <NodeType extends NodeBase>(nodes: NodeType
|
|
|
63
74
|
* @returns Array of edges that connect any of the given nodes with each other
|
|
64
75
|
*/
|
|
65
76
|
export declare const getConnectedEdges: <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(nodes: NodeType[], edges: EdgeType[]) => EdgeType[];
|
|
66
|
-
export declare function fitView<Params extends FitViewParamsBase<NodeBase>, Options extends FitViewOptionsBase<NodeBase>>({
|
|
77
|
+
export declare function fitView<Params extends FitViewParamsBase<NodeBase>, Options extends FitViewOptionsBase<NodeBase>>({ nodeLookup, width, height, panZoom, minZoom, maxZoom, nodeOrigin }: Params, options?: Options): boolean;
|
|
67
78
|
/**
|
|
68
79
|
* This function calculates the next position of a node, taking into account the node's extent, parent node, and origin.
|
|
69
80
|
*
|
|
@@ -73,7 +84,7 @@ export declare function fitView<Params extends FitViewParamsBase<NodeBase>, Opti
|
|
|
73
84
|
export declare function calculateNodePosition<NodeType extends NodeBase>({ nodeId, nextPosition, nodeLookup, nodeOrigin, nodeExtent, onError, }: {
|
|
74
85
|
nodeId: string;
|
|
75
86
|
nextPosition: XYPosition;
|
|
76
|
-
nodeLookup: NodeLookup<NodeType
|
|
87
|
+
nodeLookup: NodeLookup<InternalNodeBase<NodeType>>;
|
|
77
88
|
nodeOrigin?: NodeOrigin;
|
|
78
89
|
nodeExtent?: CoordinateExtent;
|
|
79
90
|
onError?: OnError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/utils/graph.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EAClB,UAAU,
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/utils/graph.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,kBAA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,CAAC;IACnC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;CACzD,GAAG,OAAO,CAAC;IACV,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB,CAAC,CA+CD"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { NodeBase, CoordinateExtent,
|
|
2
|
-
|
|
3
|
-
export declare function updateAbsolutePositions<NodeType extends NodeBase>(nodes: NodeType[], nodeLookup: Map<string, NodeType>, nodeOrigin?: NodeOrigin, parentNodes?: ParentNodes): NodeType[];
|
|
1
|
+
import { NodeBase, CoordinateExtent, NodeDimensionUpdate, NodeOrigin, PanZoomInstance, Transform, XYPosition, ConnectionLookup, EdgeBase, EdgeLookup, InternalNodeBase, NodeChange, NodeLookup } from '../types';
|
|
2
|
+
export declare function updateAbsolutePositions<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, options?: UpdateNodesOptions<NodeType>, parentNodeIds?: Set<string>): void;
|
|
4
3
|
type UpdateNodesOptions<NodeType extends NodeBase> = {
|
|
5
4
|
nodeOrigin?: NodeOrigin;
|
|
6
5
|
elevateNodesOnSelect?: boolean;
|
|
7
6
|
defaults?: Partial<NodeType>;
|
|
8
7
|
};
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
8
|
+
export declare function adoptUserNodes<NodeType extends NodeBase>(nodes: NodeType[], nodeLookup: Map<string, InternalNodeBase<NodeType>>, options?: UpdateNodesOptions<NodeType>): void;
|
|
9
|
+
export declare function handleParentExpand(nodes: InternalNodeBase[], nodeLookup: NodeLookup): NodeChange[];
|
|
10
|
+
export declare function updateNodeDimensions<NodeType extends InternalNodeBase>(updates: Map<string, NodeDimensionUpdate>, nodeLookup: Map<string, NodeType>, domNode: HTMLElement | null, nodeOrigin?: NodeOrigin): NodeChange[];
|
|
11
11
|
export declare function panBy({ delta, panZoom, transform, translateExtent, width, height, }: {
|
|
12
12
|
delta: XYPosition;
|
|
13
13
|
panZoom: PanZoomInstance | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/utils/store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/utils/store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,SAAS,EACT,UAAU,EAEV,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,UAAU,EAEX,MAAM,UAAU,CAAC;AAKlB,wBAAgB,uBAAuB,CAAC,QAAQ,SAAS,QAAQ,EAC/D,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EACnD,OAAO,GAAE,kBAAkB,CAAC,QAAQ,CAInC,EACD,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,QAoC5B;AAED,KAAK,kBAAkB,CAAC,QAAQ,SAAS,QAAQ,IAAI;IACnD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC9B,CAAC;AAEF,wBAAgB,cAAc,CAAC,QAAQ,SAAS,QAAQ,EACtD,KAAK,EAAE,QAAQ,EAAE,EACjB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EACnD,OAAO,GAAE,kBAAkB,CAAC,QAAQ,CAInC,QAsCF;AA2BD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,EAAE,EAAE,UAAU,EAAE,UAAU,GAAG,UAAU,EAAE,CA8DlG;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,SAAS,gBAAgB,EACpE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,EACzC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,EACjC,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,UAAU,CAAC,EAAE,UAAU,GACtB,UAAU,EAAE,CAqEd;AAED,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,OAAO,EACP,SAAS,EACT,eAAe,EACf,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,EAAE,gBAAgB,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,WAuBA;AAED,wBAAgB,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,QAkBnH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { NodeBase, NodeDragItem, EdgeBase, CoordinateExtent, NodeOrigin, OnError, SnapGrid, Transform, PanBy, OnSelectionDrag, UpdateNodePositions } from '../types';
|
|
1
|
+
import type { NodeBase, NodeDragItem, EdgeBase, CoordinateExtent, NodeOrigin, OnError, SnapGrid, Transform, PanBy, OnSelectionDrag, UpdateNodePositions, InternalNodeBase } from '../types';
|
|
2
2
|
export type OnDrag = (event: MouseEvent, dragItems: NodeDragItem[], node: NodeBase, nodes: NodeBase[]) => void;
|
|
3
3
|
type StoreItems<OnNodeDrag> = {
|
|
4
4
|
nodes: NodeBase[];
|
|
5
|
-
nodeLookup: Map<string,
|
|
5
|
+
nodeLookup: Map<string, InternalNodeBase>;
|
|
6
6
|
edges: EdgeBase[];
|
|
7
7
|
nodeExtent: CoordinateExtent;
|
|
8
8
|
snapGrid: SnapGrid;
|
|
@@ -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,eAAe,EACf,mBAAmB,
|
|
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,EAEnB,gBAAgB,EACjB,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,gBAAgB,CAAC,CAAC;IAC1C,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,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,C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AE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,GAAG,SAAS,EAAE,EAC7F,eAAe,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,UAAU,GACX,EAAE,YAAY,CAAC,UAAU,CAAC,GAAG,cAAc,CAyQ3C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type NodeDragItem, type XYPosition, NodeBase } from '../types';
|
|
1
|
+
import { type NodeDragItem, type XYPosition, InternalNodeBase, NodeBase, NodeLookup } from '../types';
|
|
2
2
|
export declare function wrapSelectionDragFunc(selectionFunc?: (event: MouseEvent, nodes: NodeBase[]) => void): (event: MouseEvent, _: NodeBase, nodes: NodeBase[]) => void | undefined;
|
|
3
|
-
export declare function isParentSelected<NodeType extends NodeBase>(node: NodeType,
|
|
3
|
+
export declare function isParentSelected<NodeType extends NodeBase>(node: NodeType, nodeLookup: NodeLookup): boolean;
|
|
4
4
|
export declare function hasSelector(target: Element, selector: string, domNode: Element): boolean;
|
|
5
|
-
export declare function getDragItems<NodeType extends NodeBase>(
|
|
5
|
+
export declare function getDragItems<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, nodesDraggable: boolean, mousePos: XYPosition, nodeId?: string): NodeDragItem[];
|
|
6
6
|
export declare function getEventHandlerParams<NodeType extends NodeBase>({ nodeId, dragItems, nodeLookup, }: {
|
|
7
7
|
nodeId?: string;
|
|
8
8
|
dragItems: NodeDragItem[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/xydrag/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/xydrag/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtG,wBAAgB,qBAAqB,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,WACnF,UAAU,KAAK,QAAQ,SAAS,QAAQ,EAAE,sBAC1D;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,SAAS,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAgB3G;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAUxF;AAGD,wBAAgB,YAAY,CAAC,QAAQ,SAAS,QAAQ,EACpD,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EACnD,cAAc,EAAE,OAAO,EACvB,QAAQ,EAAE,UAAU,EACpB,MAAM,CAAC,EAAE,MAAM,GACd,YAAY,EAAE,CAiChB;AAKD,wBAAgB,qBAAqB,CAAC,QAAQ,SAAS,QAAQ,EAAE,EAC/D,MAAM,EACN,SAAS,EACT,UAAU,GACX,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACnC,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAczB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConnectionMode, type OnConnect, type OnConnectStart, type HandleType, type Connection, type PanBy, type
|
|
1
|
+
import { ConnectionMode, type OnConnect, type OnConnectStart, type HandleType, type Connection, type PanBy, type Transform, type ConnectingHandle, type OnConnectEnd, type UpdateConnection, type IsValidConnection, type ConnectionHandle, NodeLookup } from '../types';
|
|
2
2
|
export type OnPointerDownParams = {
|
|
3
3
|
autoPanOnConnect: boolean;
|
|
4
4
|
connectionMode: ConnectionMode;
|
|
@@ -7,7 +7,7 @@ export type OnPointerDownParams = {
|
|
|
7
7
|
handleId: string | null;
|
|
8
8
|
nodeId: string;
|
|
9
9
|
isTarget: boolean;
|
|
10
|
-
|
|
10
|
+
nodeLookup: NodeLookup;
|
|
11
11
|
lib: string;
|
|
12
12
|
flowId: string | null;
|
|
13
13
|
edgeUpdaterType?: HandleType;
|
|
@@ -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,
|
|
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,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,UAAU,EACX,MAAM,UAAU,CAAC;AAIlB,MAAM,MAAM,mBAAmB,GAAG;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,cAAc,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;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E,OAAO,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACpC,CAAC;AAwPF,eAAO,MAAM,QAAQ,EAAE,gBAGtB,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ConnectionStatus, type HandleType, type NodeHandleBounds, type XYPosition, type
|
|
2
|
-
export declare function getHandles(node:
|
|
1
|
+
import { ConnectionStatus, type HandleType, type NodeHandleBounds, type XYPosition, type ConnectionHandle, InternalNodeBase, NodeLookup } from '../types';
|
|
2
|
+
export declare function getHandles(node: InternalNodeBase, handleBounds: NodeHandleBounds, type: HandleType, currentHandle: string): ConnectionHandle[];
|
|
3
3
|
export declare function getClosestHandle(pos: XYPosition, connectionRadius: number, handles: ConnectionHandle[]): ConnectionHandle | null;
|
|
4
4
|
type GetHandleLookupParams = {
|
|
5
|
-
|
|
5
|
+
nodeLookup: NodeLookup;
|
|
6
6
|
nodeId: string;
|
|
7
7
|
handleId: string | null;
|
|
8
8
|
handleType: string;
|
|
9
9
|
};
|
|
10
|
-
export declare function getHandleLookup({
|
|
10
|
+
export declare function getHandleLookup({ nodeLookup, nodeId, handleId, handleType, }: GetHandleLookupParams): ConnectionHandle[];
|
|
11
11
|
export declare function getHandleType(edgeUpdaterType: HandleType | undefined, handleDomNode: Element | null): HandleType | null;
|
|
12
12
|
export declare function getConnectionStatus(isInsideConnectionRadius: boolean, isHandleValid: boolean): ConnectionStatus;
|
|
13
13
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/xyhandle/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/xyhandle/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,UAAU,EACX,MAAM,UAAU,CAAC;AAIlB,wBAAgB,UAAU,CACxB,IAAI,EAAE,gBAAgB,EACtB,YAAY,EAAE,gBAAgB,EAC9B,IAAI,EAAE,UAAU,EAChB,aAAa,EAAE,MAAM,GACpB,gBAAgB,EAAE,CAapB;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,UAAU,EACf,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE,gBAAgB,EAAE,GAC1B,gBAAgB,GAAG,IAAI,CAyBzB;AAED,KAAK,qBAAqB,GAAG;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,MAAM,EACN,QAAQ,EACR,UAAU,GACX,EAAE,qBAAqB,GAAG,gBAAgB,EAAE,CAa5C;AAED,wBAAgB,aAAa,CAC3B,eAAe,EAAE,UAAU,GAAG,SAAS,EACvC,aAAa,EAAE,OAAO,GAAG,IAAI,GAC5B,UAAU,GAAG,IAAI,CAUnB;AAED,wBAAgB,mBAAmB,CAAC,wBAAwB,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,oBAU5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XYPanZoom.d.ts","sourceRoot":"","sources":["../../src/xypanzoom/XYPanZoom.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,QAAQ,EAGb,aAAa,EACb,eAAe,EAChB,MAAM,UAAU,CAAC;AAYlB,MAAM,MAAM,aAAa,GAAG;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,YAAY,EAAE,QAAQ,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC;IACnD,gBAAgB,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC;IAC5D,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACxB,OAAO,EACP,OAAO,EACP,OAAO,EACP,eAAe,EACf,QAAQ,EACR,SAAS,EACT,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,GACjB,EAAE,aAAa,GAAG,eAAe,
|
|
1
|
+
{"version":3,"file":"XYPanZoom.d.ts","sourceRoot":"","sources":["../../src/xypanzoom/XYPanZoom.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,QAAQ,EAGb,aAAa,EACb,eAAe,EAChB,MAAM,UAAU,CAAC;AAYlB,MAAM,MAAM,aAAa,GAAG;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,YAAY,EAAE,QAAQ,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC;IACnD,gBAAgB,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC;IAC5D,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACxB,OAAO,EACP,OAAO,EACP,OAAO,EACP,eAAe,EACf,QAAQ,EACR,SAAS,EACT,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,GACjB,EAAE,aAAa,GAAG,eAAe,CAwNjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../src/xypanzoom/filter.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,YAAY,GAAG;IACzB,wBAAwB,EAAE,OAAO,CAAC;IAClC,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,GAAG,GACJ,EAAE,YAAY,WACE,GAAG,KAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../src/xypanzoom/filter.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,YAAY,GAAG;IACzB,wBAAwB,EAAE,OAAO,CAAC;IAClC,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,GAAG,GACJ,EAAE,YAAY,WACE,GAAG,KAAG,OAAO,CAiE7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyflow/system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "xyflow core system that powers React Flow and Svelte Flow.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node-based UI",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@types/node": "^18.7.16",
|
|
49
49
|
"typescript": "5.1.3",
|
|
50
50
|
"@xyflow/rollup-config": "0.0.0",
|
|
51
|
-
"@xyflow/
|
|
52
|
-
"@xyflow/
|
|
51
|
+
"@xyflow/tsconfig": "0.0.0",
|
|
52
|
+
"@xyflow/eslint-config": "0.0.0"
|
|
53
53
|
},
|
|
54
54
|
"rollup": {
|
|
55
55
|
"globals": {
|