@aloudata/ink-flow 1.0.0
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/README.md +5 -0
- package/dist/base.css +6 -0
- package/dist/components/A11yDescriptions/index.d.ts +8 -0
- package/dist/components/A11yDescriptions/index.d.ts.map +1 -0
- package/dist/components/BatchProvider/index.d.ts +17 -0
- package/dist/components/BatchProvider/index.d.ts.map +1 -0
- package/dist/components/BatchProvider/types.d.ts +7 -0
- package/dist/components/BatchProvider/types.d.ts.map +1 -0
- package/dist/components/BatchProvider/useQueue.d.ts +11 -0
- package/dist/components/BatchProvider/useQueue.d.ts.map +1 -0
- package/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts +17 -0
- package/dist/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +1 -0
- package/dist/components/EdgeWrapper/index.d.ts +3 -0
- package/dist/components/EdgeWrapper/index.d.ts.map +1 -0
- package/dist/components/EdgeWrapper/utils.d.ts +11 -0
- package/dist/components/EdgeWrapper/utils.d.ts.map +1 -0
- package/dist/components/Edges/BaseEdge.d.ts +3 -0
- package/dist/components/Edges/BaseEdge.d.ts.map +1 -0
- package/dist/components/Edges/BezierEdge.d.ts +5 -0
- package/dist/components/Edges/BezierEdge.d.ts.map +1 -0
- package/dist/components/Edges/EdgeAnchor.d.ts +14 -0
- package/dist/components/Edges/EdgeAnchor.d.ts.map +1 -0
- package/dist/components/Edges/EdgeText.d.ts +8 -0
- package/dist/components/Edges/EdgeText.d.ts.map +1 -0
- package/dist/components/Edges/SimpleBezierEdge.d.ts +21 -0
- package/dist/components/Edges/SimpleBezierEdge.d.ts.map +1 -0
- package/dist/components/Edges/SmoothStepEdge.d.ts +5 -0
- package/dist/components/Edges/SmoothStepEdge.d.ts.map +1 -0
- package/dist/components/Edges/StepEdge.d.ts +5 -0
- package/dist/components/Edges/StepEdge.d.ts.map +1 -0
- package/dist/components/Edges/StraightEdge.d.ts +5 -0
- package/dist/components/Edges/StraightEdge.d.ts.map +1 -0
- package/dist/components/Edges/index.d.ts +6 -0
- package/dist/components/Edges/index.d.ts.map +1 -0
- package/dist/components/Handle/index.d.ts +9 -0
- package/dist/components/Handle/index.d.ts.map +1 -0
- package/dist/components/InkFlowProvider/index.d.ts +14 -0
- package/dist/components/InkFlowProvider/index.d.ts.map +1 -0
- package/dist/components/NodeWrapper/index.d.ts +3 -0
- package/dist/components/NodeWrapper/index.d.ts.map +1 -0
- package/dist/components/NodeWrapper/useNodeObserver.d.ts +14 -0
- package/dist/components/NodeWrapper/useNodeObserver.d.ts.map +1 -0
- package/dist/components/NodeWrapper/utils.d.ts +9 -0
- package/dist/components/NodeWrapper/utils.d.ts.map +1 -0
- package/dist/components/Nodes/DefaultNode.d.ts +3 -0
- package/dist/components/Nodes/DefaultNode.d.ts.map +1 -0
- package/dist/components/Nodes/GroupNode.d.ts +2 -0
- package/dist/components/Nodes/GroupNode.d.ts.map +1 -0
- package/dist/components/Nodes/InputNode.d.ts +4 -0
- package/dist/components/Nodes/InputNode.d.ts.map +1 -0
- package/dist/components/Nodes/OutputNode.d.ts +3 -0
- package/dist/components/Nodes/OutputNode.d.ts.map +1 -0
- package/dist/components/Nodes/utils.d.ts +13 -0
- package/dist/components/Nodes/utils.d.ts.map +1 -0
- package/dist/components/Panel/index.d.ts +11 -0
- package/dist/components/Panel/index.d.ts.map +1 -0
- package/dist/components/StoreUpdater/index.d.ts +9 -0
- package/dist/components/StoreUpdater/index.d.ts.map +1 -0
- package/dist/components/UserSelection/index.d.ts +2 -0
- package/dist/components/UserSelection/index.d.ts.map +1 -0
- package/dist/constants/errorMessages.d.ts +22 -0
- package/dist/constants/errorMessages.d.ts.map +1 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/container/EdgeRenderer/MarkerDefinitions.d.ts +10 -0
- package/dist/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -0
- package/dist/container/EdgeRenderer/MarkerSymbols.d.ts +9 -0
- package/dist/container/EdgeRenderer/MarkerSymbols.d.ts.map +1 -0
- package/dist/container/EdgeRenderer/index.d.ts +13 -0
- package/dist/container/EdgeRenderer/index.d.ts.map +1 -0
- package/dist/container/FlowRenderer/index.d.ts +14 -0
- package/dist/container/FlowRenderer/index.d.ts.map +1 -0
- package/dist/container/GraphView/index.d.ts +11 -0
- package/dist/container/GraphView/index.d.ts.map +1 -0
- package/dist/container/InkFlow/Wrapper.d.ts +13 -0
- package/dist/container/InkFlow/Wrapper.d.ts.map +1 -0
- package/dist/container/InkFlow/index.d.ts +4 -0
- package/dist/container/InkFlow/index.d.ts.map +1 -0
- package/dist/container/InkFlow/init-values.d.ts +4 -0
- package/dist/container/InkFlow/init-values.d.ts.map +1 -0
- package/dist/container/NodeRenderer/index.d.ts +10 -0
- package/dist/container/NodeRenderer/index.d.ts.map +1 -0
- package/dist/container/NodeRenderer/useResizeObserver.d.ts +2 -0
- package/dist/container/NodeRenderer/useResizeObserver.d.ts.map +1 -0
- package/dist/container/Pane/index.d.ts +12 -0
- package/dist/container/Pane/index.d.ts.map +1 -0
- package/dist/container/Viewport/index.d.ts +7 -0
- package/dist/container/Viewport/index.d.ts.map +1 -0
- package/dist/container/ZoomPane/index.d.ts +7 -0
- package/dist/container/ZoomPane/index.d.ts.map +1 -0
- package/dist/contexts/NodeIdContext.d.ts +6 -0
- package/dist/contexts/NodeIdContext.d.ts.map +1 -0
- package/dist/contexts/StoreContext.d.ts +4 -0
- package/dist/contexts/StoreContext.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useDrag.d.ts +12 -0
- package/dist/hooks/useDrag.d.ts.map +1 -0
- package/dist/hooks/useEdgesState.d.ts +4 -0
- package/dist/hooks/useEdgesState.d.ts.map +1 -0
- package/dist/hooks/useGlobalKeyHandler.d.ts +11 -0
- package/dist/hooks/useGlobalKeyHandler.d.ts.map +1 -0
- package/dist/hooks/useInkFlow.d.ts +10 -0
- package/dist/hooks/useInkFlow.d.ts.map +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/hooks/useKeyPress.d.ts +15 -0
- package/dist/hooks/useKeyPress.d.ts.map +1 -0
- package/dist/hooks/useMoveSelectedNodes.d.ts +12 -0
- package/dist/hooks/useMoveSelectedNodes.d.ts.map +1 -0
- package/dist/hooks/useNodesState.d.ts +4 -0
- package/dist/hooks/useNodesState.d.ts.map +1 -0
- package/dist/hooks/useResizeHandler.d.ts +8 -0
- package/dist/hooks/useResizeHandler.d.ts.map +1 -0
- package/dist/hooks/useStore.d.ts +21 -0
- package/dist/hooks/useStore.d.ts.map +1 -0
- package/dist/hooks/useViewportHelper.d.ts +10 -0
- package/dist/hooks/useViewportHelper.d.ts.map +1 -0
- package/dist/hooks/useVisibleEdgeIds.d.ts +9 -0
- package/dist/hooks/useVisibleEdgeIds.d.ts.map +1 -0
- package/dist/hooks/useVisibleNodeIds.d.ts +9 -0
- package/dist/hooks/useVisibleNodeIds.d.ts.map +1 -0
- package/dist/index.cjs.js +17 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +17 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/plugins/Controls/ControlButton.d.ts +3 -0
- package/dist/plugins/Controls/ControlButton.d.ts.map +1 -0
- package/dist/plugins/Controls/Controls.d.ts +8 -0
- package/dist/plugins/Controls/Controls.d.ts.map +1 -0
- package/dist/plugins/Controls/Icons/FitView.d.ts +2 -0
- package/dist/plugins/Controls/Icons/FitView.d.ts.map +1 -0
- package/dist/plugins/Controls/Icons/Lock.d.ts +2 -0
- package/dist/plugins/Controls/Icons/Lock.d.ts.map +1 -0
- package/dist/plugins/Controls/Icons/Minus.d.ts +2 -0
- package/dist/plugins/Controls/Icons/Minus.d.ts.map +1 -0
- package/dist/plugins/Controls/Icons/Plus.d.ts +2 -0
- package/dist/plugins/Controls/Icons/Plus.d.ts.map +1 -0
- package/dist/plugins/Controls/Icons/Unlock.d.ts +2 -0
- package/dist/plugins/Controls/Icons/Unlock.d.ts.map +1 -0
- package/dist/plugins/Controls/index.d.ts +4 -0
- package/dist/plugins/Controls/index.d.ts.map +1 -0
- package/dist/plugins/Controls/types.d.ts +35 -0
- package/dist/plugins/Controls/types.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +2 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/store/index.d.ts +12 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/initialState.d.ts +12 -0
- package/dist/store/initialState.d.ts.map +1 -0
- package/dist/style.css +817 -0
- package/dist/styles/utils.d.ts +3 -0
- package/dist/styles/utils.d.ts.map +1 -0
- package/dist/types/edges.d.ts +114 -0
- package/dist/types/edges.d.ts.map +1 -0
- package/dist/types/general.d.ts +123 -0
- package/dist/types/general.d.ts.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/instance.d.ts +149 -0
- package/dist/types/instance.d.ts.map +1 -0
- package/dist/types/nodes.d.ts +40 -0
- package/dist/types/nodes.d.ts.map +1 -0
- package/dist/types/props.d.ts +151 -0
- package/dist/types/props.d.ts.map +1 -0
- package/dist/types/store.d.ts +105 -0
- package/dist/types/store.d.ts.map +1 -0
- package/dist/types/system/changes.d.ts +51 -0
- package/dist/types/system/changes.d.ts.map +1 -0
- package/dist/types/system/edges.d.ts +83 -0
- package/dist/types/system/edges.d.ts.map +1 -0
- package/dist/types/system/general.d.ts +119 -0
- package/dist/types/system/general.d.ts.map +1 -0
- package/dist/types/system/handles.d.ts +51 -0
- package/dist/types/system/handles.d.ts.map +1 -0
- package/dist/types/system/index.d.ts +8 -0
- package/dist/types/system/index.d.ts.map +1 -0
- package/dist/types/system/nodes.d.ts +126 -0
- package/dist/types/system/nodes.d.ts.map +1 -0
- package/dist/types/system/panzoom.d.ts +49 -0
- package/dist/types/system/panzoom.d.ts.map +1 -0
- package/dist/types/system/utils.d.ts +25 -0
- package/dist/types/system/utils.d.ts.map +1 -0
- package/dist/types/utils/types.d.ts +8 -0
- package/dist/types/utils/types.d.ts.map +1 -0
- package/dist/utils/bezier-edge.d.ts +59 -0
- package/dist/utils/bezier-edge.d.ts.map +1 -0
- package/dist/utils/changes.d.ts +16 -0
- package/dist/utils/changes.d.ts.map +1 -0
- package/dist/utils/dom.d.ts +20 -0
- package/dist/utils/dom.d.ts.map +1 -0
- package/dist/utils/edges/bezier-edge.d.ts +59 -0
- package/dist/utils/edges/bezier-edge.d.ts.map +1 -0
- package/dist/utils/edges/general.d.ts +46 -0
- package/dist/utils/edges/general.d.ts.map +1 -0
- package/dist/utils/edges/index.d.ts +6 -0
- package/dist/utils/edges/index.d.ts.map +1 -0
- package/dist/utils/edges/positions.d.ts +12 -0
- package/dist/utils/edges/positions.d.ts.map +1 -0
- package/dist/utils/edges/smoothstep-edge.d.ts +43 -0
- package/dist/utils/edges/smoothstep-edge.d.ts.map +1 -0
- package/dist/utils/edges/straight-edge.d.ts +28 -0
- package/dist/utils/edges/straight-edge.d.ts.map +1 -0
- package/dist/utils/edges.d.ts +26 -0
- package/dist/utils/edges.d.ts.map +1 -0
- package/dist/utils/general.d.ts +61 -0
- package/dist/utils/general.d.ts.map +1 -0
- package/dist/utils/graph.d.ts +113 -0
- package/dist/utils/graph.d.ts.map +1 -0
- package/dist/utils/marker.d.ts +9 -0
- package/dist/utils/marker.d.ts.map +1 -0
- package/dist/utils/positions.d.ts +12 -0
- package/dist/utils/positions.d.ts.map +1 -0
- package/dist/utils/smoothstep-edge.d.ts +43 -0
- package/dist/utils/smoothstep-edge.d.ts.map +1 -0
- package/dist/utils/store.d.ts +30 -0
- package/dist/utils/store.d.ts.map +1 -0
- package/dist/utils/straight-edge.d.ts +34 -0
- package/dist/utils/straight-edge.d.ts.map +1 -0
- package/dist/utils/xydrag/XYDrag.d.ts +52 -0
- package/dist/utils/xydrag/XYDrag.d.ts.map +1 -0
- package/dist/utils/xydrag/index.d.ts +2 -0
- package/dist/utils/xydrag/index.d.ts.map +1 -0
- package/dist/utils/xydrag/utils.d.ts +10 -0
- package/dist/utils/xydrag/utils.d.ts.map +1 -0
- package/dist/utils/xyhandle/XYHandle.d.ts +49 -0
- package/dist/utils/xyhandle/XYHandle.d.ts.map +1 -0
- package/dist/utils/xyhandle/index.d.ts +2 -0
- package/dist/utils/xyhandle/index.d.ts.map +1 -0
- package/dist/utils/xyhandle/utils.d.ts +14 -0
- package/dist/utils/xyhandle/utils.d.ts.map +1 -0
- package/dist/utils/xypanzoom/XYPanZoom.d.ts +12 -0
- package/dist/utils/xypanzoom/XYPanZoom.d.ts.map +1 -0
- package/dist/utils/xypanzoom/eventhandler.d.ts +46 -0
- package/dist/utils/xypanzoom/eventhandler.d.ts.map +1 -0
- package/dist/utils/xypanzoom/filter.d.ts +14 -0
- package/dist/utils/xypanzoom/filter.d.ts.map +1 -0
- package/dist/utils/xypanzoom/index.d.ts +2 -0
- package/dist/utils/xypanzoom/index.d.ts.map +1 -0
- package/dist/utils/xypanzoom/utils.d.ts +10 -0
- package/dist/utils/xypanzoom/utils.d.ts.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positions.d.ts","sourceRoot":"","sources":["../../src/utils/positions.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,YAAY,EAIb,MAAM,iBAAiB,CAAC;AAGzB,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,CAC7B,MAAM,EAAE,qBAAqB,GAC5B,YAAY,GAAG,IAAI,CA4DrB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Position } from '../types/system';
|
|
2
|
+
export interface GetSmoothStepPathParams {
|
|
3
|
+
sourceX: number;
|
|
4
|
+
sourceY: number;
|
|
5
|
+
sourcePosition?: Position;
|
|
6
|
+
targetX: number;
|
|
7
|
+
targetY: number;
|
|
8
|
+
targetPosition?: Position;
|
|
9
|
+
borderRadius?: number;
|
|
10
|
+
centerX?: number;
|
|
11
|
+
centerY?: number;
|
|
12
|
+
offset?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a smooth step path from source to target handle
|
|
16
|
+
* @param params.sourceX - The x position of the source handle
|
|
17
|
+
* @param params.sourceY - The y position of the source handle
|
|
18
|
+
* @param params.sourcePosition - The position of the source handle (default: Position.Bottom)
|
|
19
|
+
* @param params.targetX - The x position of the target handle
|
|
20
|
+
* @param params.targetY - The y position of the target handle
|
|
21
|
+
* @param params.targetPosition - The position of the target handle (default: Position.Top)
|
|
22
|
+
* @returns A path string you can use in an SVG, the labelX and labelY position (center of path) and offsetX, offsetY between source handle and label
|
|
23
|
+
* @example
|
|
24
|
+
* const source = { x: 0, y: 20 };
|
|
25
|
+
const target = { x: 150, y: 100 };
|
|
26
|
+
|
|
27
|
+
const [path, labelX, labelY, offsetX, offsetY] = getSmoothStepPath({
|
|
28
|
+
sourceX: source.x,
|
|
29
|
+
sourceY: source.y,
|
|
30
|
+
sourcePosition: Position.Right,
|
|
31
|
+
targetX: target.x,
|
|
32
|
+
targetY: target.y,
|
|
33
|
+
targetPosition: Position.Left,
|
|
34
|
+
});
|
|
35
|
+
*/
|
|
36
|
+
export declare function getSmoothStepPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, borderRadius, centerX, centerY, offset, }: GetSmoothStepPathParams): [
|
|
37
|
+
path: string,
|
|
38
|
+
labelX: number,
|
|
39
|
+
labelY: number,
|
|
40
|
+
offsetX: number,
|
|
41
|
+
offsetY: number
|
|
42
|
+
];
|
|
43
|
+
//# sourceMappingURL=smoothstep-edge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smoothstep-edge.d.ts","sourceRoot":"","sources":["../../src/utils/smoothstep-edge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,iBAAiB,CAAC;AAGvD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAkOD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,OAAO,EACP,cAAgC,EAChC,OAAO,EACP,OAAO,EACP,cAA6B,EAC7B,YAAgB,EAChB,OAAO,EACP,OAAO,EACP,MAAW,GACZ,EAAE,uBAAuB,GAAG;IAC3B,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;CAChB,CAyBA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ConnectionLookup, CoordinateExtent, EdgeBase, EdgeLookup, InternalNodeBase, InternalNodeUpdate, NodeBase, NodeDimensionChange, NodeLookup, NodeOrigin, NodePositionChange, PanZoomInstance, ParentLookup, Transform, XYPosition } from '../types/system';
|
|
2
|
+
import { ParentExpandChild } from '../types/utils/types';
|
|
3
|
+
type UpdateNodesOptions<NodeType extends NodeBase> = {
|
|
4
|
+
nodeOrigin?: NodeOrigin;
|
|
5
|
+
elevateNodesOnSelect?: boolean;
|
|
6
|
+
defaults?: Partial<NodeType>;
|
|
7
|
+
checkEquality?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function updateAbsolutePositions<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, options?: UpdateNodesOptions<NodeType>): void;
|
|
10
|
+
export declare function updateNodeInternals<NodeType extends InternalNodeBase>(updates: Map<string, InternalNodeUpdate>, nodeLookup: NodeLookup<NodeType>, parentLookup: ParentLookup<NodeType>, domNode: HTMLElement | null, nodeOrigin?: NodeOrigin): {
|
|
11
|
+
changes: (NodeDimensionChange | NodePositionChange)[];
|
|
12
|
+
updatedInternals: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const getNodePositionWithOrigin: (node: InternalNodeBase | NodeBase, nodeOrigin?: NodeOrigin) => {
|
|
15
|
+
position: XYPosition;
|
|
16
|
+
positionAbsolute: XYPosition;
|
|
17
|
+
};
|
|
18
|
+
export declare function updateConnectionLookup(connectionLookup: ConnectionLookup, edgeLookup: EdgeLookup, edges: EdgeBase[]): void;
|
|
19
|
+
export declare function adoptUserNodes<NodeType extends NodeBase>(nodes: NodeType[], nodeLookup: Map<string, InternalNodeBase<NodeType>>, parentLookup: Map<string, InternalNodeBase<NodeType>[]>, options?: UpdateNodesOptions<NodeType>): void;
|
|
20
|
+
export declare function handleExpandParent(children: ParentExpandChild[], nodeLookup: NodeLookup, parentLookup: ParentLookup, nodeOrigin?: NodeOrigin): (NodeDimensionChange | NodePositionChange)[];
|
|
21
|
+
export declare function panBy({ delta, panZoom, transform, translateExtent, width, height, }: {
|
|
22
|
+
delta: XYPosition;
|
|
23
|
+
panZoom: PanZoomInstance | null;
|
|
24
|
+
transform: Transform;
|
|
25
|
+
translateExtent: CoordinateExtent;
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
}): boolean;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/utils/store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,QAAQ,EACR,mBAAmB,EACnB,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,YAAY,EAEZ,SAAS,EACT,UAAU,EAEX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AASzD,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;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,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,QAuCF;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,SAAS,gBAAgB,EACnE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,EACxC,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,EAChC,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,EACpC,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,UAAU,CAAC,EAAE,UAAU,GACtB;IACD,OAAO,EAAE,CAAC,mBAAmB,GAAG,kBAAkB,CAA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|
5
|
+
targetY: number;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Get a straight path from source to target handle
|
|
9
|
+
* @param params.sourceX - The x position of the source handle
|
|
10
|
+
* @param params.sourceY - The y position of the source handle
|
|
11
|
+
* @param params.targetX - The x position of the target handle
|
|
12
|
+
* @param params.targetY - The y position of the target handle
|
|
13
|
+
* @returns A path string you can use in an SVG, the labelX and labelY position (center of path) and offsetX, offsetY between source handle and label
|
|
14
|
+
* @example
|
|
15
|
+
* const source = { x: 0, y: 20 };
|
|
16
|
+
const target = { x: 150, y: 100 };
|
|
17
|
+
|
|
18
|
+
const [path, labelX, labelY, offsetX, offsetY] = getStraightPath({
|
|
19
|
+
sourceX: source.x,
|
|
20
|
+
sourceY: source.y,
|
|
21
|
+
sourcePosition: Position.Right,
|
|
22
|
+
targetX: target.x,
|
|
23
|
+
targetY: target.y,
|
|
24
|
+
targetPosition: Position.Left,
|
|
25
|
+
});
|
|
26
|
+
*/
|
|
27
|
+
export declare function getStraightPath({ sourceX, sourceY, targetX, targetY, }: GetStraightPathParams): [
|
|
28
|
+
path: string,
|
|
29
|
+
labelX: number,
|
|
30
|
+
labelY: number,
|
|
31
|
+
offsetX: number,
|
|
32
|
+
offsetY: number
|
|
33
|
+
];
|
|
34
|
+
//# sourceMappingURL=straight-edge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"straight-edge.d.ts","sourceRoot":"","sources":["../../src/utils/straight-edge.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,GACR,EAAE,qBAAqB,GAAG;IACzB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;CAChB,CAeA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { NodeDragItem, NodeBase, InternalNodeBase, EdgeBase, CoordinateExtent, SnapGrid, NodeOrigin, Transform, PanBy, OnError, OnSelectionDrag, UpdateNodePositions } from '../../types/system';
|
|
2
|
+
export type OnDrag = (event: MouseEvent, dragItems: Map<string, NodeDragItem>, node: NodeBase, nodes: NodeBase[]) => void;
|
|
3
|
+
type StoreItems<OnNodeDrag> = {
|
|
4
|
+
nodes: NodeBase[];
|
|
5
|
+
nodeLookup: Map<string, InternalNodeBase>;
|
|
6
|
+
edges: EdgeBase[];
|
|
7
|
+
nodeExtent: CoordinateExtent;
|
|
8
|
+
snapGrid: SnapGrid;
|
|
9
|
+
snapToGrid: boolean;
|
|
10
|
+
nodeOrigin: NodeOrigin;
|
|
11
|
+
multiSelectionActive: boolean;
|
|
12
|
+
domNode?: Element | null;
|
|
13
|
+
transform: Transform;
|
|
14
|
+
autoPanOnNodeDrag: boolean;
|
|
15
|
+
nodesDraggable: boolean;
|
|
16
|
+
selectNodesOnDrag: boolean;
|
|
17
|
+
nodeDragThreshold: number;
|
|
18
|
+
panBy: PanBy;
|
|
19
|
+
unselectNodesAndEdges: (params?: {
|
|
20
|
+
nodes?: NodeBase[];
|
|
21
|
+
edges?: EdgeBase[];
|
|
22
|
+
}) => void;
|
|
23
|
+
onError?: OnError;
|
|
24
|
+
onNodeDragStart?: OnNodeDrag;
|
|
25
|
+
onNodeDrag?: OnNodeDrag;
|
|
26
|
+
onNodeDragStop?: OnNodeDrag;
|
|
27
|
+
onSelectionDragStart?: OnSelectionDrag;
|
|
28
|
+
onSelectionDrag?: OnSelectionDrag;
|
|
29
|
+
onSelectionDragStop?: OnSelectionDrag;
|
|
30
|
+
updateNodePositions: UpdateNodePositions;
|
|
31
|
+
};
|
|
32
|
+
export type XYDragParams<OnNodeDrag> = {
|
|
33
|
+
getStoreItems: () => StoreItems<OnNodeDrag>;
|
|
34
|
+
onDragStart?: OnDrag;
|
|
35
|
+
onDrag?: OnDrag;
|
|
36
|
+
onDragStop?: OnDrag;
|
|
37
|
+
onNodeMouseDown?: (id: string) => void;
|
|
38
|
+
};
|
|
39
|
+
export type XYDragInstance = {
|
|
40
|
+
update: (params: DragUpdateParams) => void;
|
|
41
|
+
destroy: () => void;
|
|
42
|
+
};
|
|
43
|
+
export type DragUpdateParams = {
|
|
44
|
+
noDragClassName?: string;
|
|
45
|
+
handleSelector?: string;
|
|
46
|
+
isSelectable?: boolean;
|
|
47
|
+
nodeId?: string;
|
|
48
|
+
domNode: Element;
|
|
49
|
+
};
|
|
50
|
+
export declare function XYDrag<OnNodeDrag extends (e: any, nodes: any, node: any) => void | undefined>({ onNodeMouseDown, getStoreItems, onDragStart, onDrag, onDragStop, }: XYDragParams<OnNodeDrag>): XYDragInstance;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=XYDrag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XYDrag.d.ts","sourceRoot":"","sources":["../../../src/utils/xydrag/XYDrag.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,SAAS,EACT,KAAK,EACL,OAAO,EACP,eAAe,EACf,mBAAmB,EAIpB,MAAM,oBAAoB,CAAC;AAK5B,MAAM,MAAM,MAAM,GAAG,CACnB,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACpC,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,QAAQ,EAAE,KACd,IAAI,CAAC;AAEV,KAAK,UAAU,CAAC,UAAU,IAAI;IAC5B,KAAK,EAAE,QAAQ,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K,IAAI,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,wBAAgB,MAAM,CACpB,UAAU,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,GAAG,SAAS,EACtE,EACA,eAAe,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,UAAU,GACX,EAAE,YAAY,CAAC,UAAU,CAAC,GAAG,cAAc,CAyV3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/xydrag/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NodeBase, NodeLookup, InternalNodeBase, XYPosition, NodeDragItem } from '../../types/system';
|
|
2
|
+
export declare function isParentSelected<NodeType extends NodeBase>(node: NodeType, nodeLookup: NodeLookup): boolean;
|
|
3
|
+
export declare function hasSelector(target: Element, selector: string, domNode: Element): boolean;
|
|
4
|
+
export declare function getDragItems<NodeType extends NodeBase>(nodeLookup: Map<string, InternalNodeBase<NodeType>>, nodesDraggable: boolean, mousePos: XYPosition, nodeId?: string): Map<string, NodeDragItem>;
|
|
5
|
+
export declare function getEventHandlerParams<NodeType extends InternalNodeBase>({ nodeId, dragItems, nodeLookup, }: {
|
|
6
|
+
nodeId?: string;
|
|
7
|
+
dragItems: Map<string, NodeDragItem>;
|
|
8
|
+
nodeLookup: Map<string, NodeType>;
|
|
9
|
+
}): [NodeBase, NodeBase[]];
|
|
10
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/xydrag/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,YAAY,EACb,MAAM,oBAAoB,CAAC;AAE5B,wBAAgB,gBAAgB,CAAC,QAAQ,SAAS,QAAQ,EACxD,IAAI,EAAE,QAAQ,EACd,UAAU,EAAE,UAAU,GACrB,OAAO,CAgBT;AAED,wBAAgB,WAAW,CACzB,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,GACf,OAAO,CAUT;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,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAwC3B;AAKD,wBAAgB,qBAAqB,CAAC,QAAQ,SAAS,gBAAgB,EAAE,EACvE,MAAM,EACN,SAAS,EACT,UAAU,GACX,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACrC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACnC,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,CA2BzB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IsValidConnection } from '../../types';
|
|
2
|
+
import { ConnectionMode, NodeLookup, HandleType, UpdateConnection, PanBy, OnConnectStart, OnConnect, OnConnectEnd, Transform, ConnectingHandle, ConnectionHandle, Connection } from '../../types/system';
|
|
3
|
+
export type OnPointerDownParams = {
|
|
4
|
+
autoPanOnConnect: boolean;
|
|
5
|
+
connectionMode: ConnectionMode;
|
|
6
|
+
connectionRadius: number;
|
|
7
|
+
domNode: HTMLDivElement | null;
|
|
8
|
+
handleId: string | null;
|
|
9
|
+
nodeId: string;
|
|
10
|
+
isTarget: boolean;
|
|
11
|
+
nodeLookup: NodeLookup;
|
|
12
|
+
lib: string;
|
|
13
|
+
flowId: string | null;
|
|
14
|
+
edgeUpdaterType?: HandleType;
|
|
15
|
+
updateConnection: UpdateConnection;
|
|
16
|
+
panBy: PanBy;
|
|
17
|
+
cancelConnection: () => void;
|
|
18
|
+
onConnectStart?: OnConnectStart;
|
|
19
|
+
onConnect?: OnConnect;
|
|
20
|
+
onConnectEnd?: OnConnectEnd;
|
|
21
|
+
isValidConnection?: IsValidConnection;
|
|
22
|
+
onEdgeUpdateEnd?: (evt: MouseEvent | TouchEvent) => void;
|
|
23
|
+
getTransform: () => Transform;
|
|
24
|
+
getConnectionStartHandle: () => ConnectingHandle | null;
|
|
25
|
+
};
|
|
26
|
+
export type IsValidParams = {
|
|
27
|
+
handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'> | null;
|
|
28
|
+
connectionMode: ConnectionMode;
|
|
29
|
+
fromNodeId: string;
|
|
30
|
+
fromHandleId: string | null;
|
|
31
|
+
fromType: HandleType;
|
|
32
|
+
isValidConnection?: IsValidConnection;
|
|
33
|
+
doc: Document | ShadowRoot;
|
|
34
|
+
lib: string;
|
|
35
|
+
flowId: string | null;
|
|
36
|
+
};
|
|
37
|
+
export type XYHandleInstance = {
|
|
38
|
+
onPointerDown: (event: MouseEvent | TouchEvent, params: OnPointerDownParams) => void;
|
|
39
|
+
isValid: (event: MouseEvent | TouchEvent, params: IsValidParams) => Result;
|
|
40
|
+
};
|
|
41
|
+
type Result = {
|
|
42
|
+
handleDomNode: Element | null;
|
|
43
|
+
isValid: boolean;
|
|
44
|
+
connection: Connection | null;
|
|
45
|
+
endHandle: ConnectingHandle | null;
|
|
46
|
+
};
|
|
47
|
+
export declare const XYHandle: XYHandleInstance;
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=XYHandle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XYHandle.d.ts","sourceRoot":"","sources":["../../../src/utils/xyhandle/XYHandle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EACL,cAAc,EACd,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,KAAK,EACL,cAAc,EACd,SAAS,EACT,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACX,MAAM,oBAAoB,CAAC;AAc5B,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;IACZ,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,KAAK,EAAE,KAAK,CAAC;IACb,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,iBAAiB,CAAC,EAAE,iBAAiB,CA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AY,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InternalNodeBase, NodeHandleBounds, HandleType, ConnectionHandle, XYPosition, NodeLookup, ConnectionStatus } from '../../types/system';
|
|
2
|
+
export declare function getHandles(node: InternalNodeBase, handleBounds: NodeHandleBounds, type: HandleType, currentHandle: string): ConnectionHandle[];
|
|
3
|
+
export declare function getClosestHandle(pos: XYPosition, connectionRadius: number, handles: ConnectionHandle[]): ConnectionHandle | null;
|
|
4
|
+
type GetHandleLookupParams = {
|
|
5
|
+
nodeLookup: NodeLookup;
|
|
6
|
+
nodeId: string;
|
|
7
|
+
handleId: string | null;
|
|
8
|
+
handleType: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function getHandleLookup({ nodeLookup, nodeId, handleId, handleType, }: GetHandleLookupParams): ConnectionHandle[];
|
|
11
|
+
export declare function getHandleType(edgeUpdaterType: HandleType | undefined, handleDomNode: Element | null): HandleType | null;
|
|
12
|
+
export declare function getConnectionStatus(isInsideConnectionRadius: boolean, isHandleValid: boolean): ConnectionStatus;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/xyhandle/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAG5B,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,CA4BzB;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,CAuB5C;AAED,wBAAgB,aAAa,CAC3B,eAAe,EAAE,UAAU,GAAG,SAAS,EACvC,aAAa,EAAE,OAAO,GAAG,IAAI,GAC5B,UAAU,GAAG,IAAI,CAUnB;AAED,wBAAgB,mBAAmB,CACjC,wBAAwB,EAAE,OAAO,EACjC,aAAa,EAAE,OAAO,oBAWvB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Viewport, PanZoomInstance, PanZoomParams } from '../../types/system';
|
|
2
|
+
export type ZoomPanValues = {
|
|
3
|
+
isZoomingOrPanning: boolean;
|
|
4
|
+
usedRightMouseButton: boolean;
|
|
5
|
+
prevViewport: Viewport;
|
|
6
|
+
mouseButton: number;
|
|
7
|
+
timerId: ReturnType<typeof setTimeout> | undefined;
|
|
8
|
+
panScrollTimeout: ReturnType<typeof setTimeout> | undefined;
|
|
9
|
+
isPanScrolling: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function XYPanZoom({ domNode, minZoom, maxZoom, translateExtent, viewport, onPanZoom, onPanZoomStart, onPanZoomEnd, onTransformChange, onDraggingChange, }: PanZoomParams): PanZoomInstance;
|
|
12
|
+
//# sourceMappingURL=XYPanZoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XYPanZoom.d.ts","sourceRoot":"","sources":["../../../src/utils/xypanzoom/XYPanZoom.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,QAAQ,EACR,eAAe,EAIf,aAAa,EACd,MAAM,oBAAoB,CAAC;AAG5B,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,CAgPjC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { D3ZoomEvent } from 'd3-zoom';
|
|
2
|
+
import { ZoomPanValues } from './XYPanZoom';
|
|
3
|
+
import { D3SelectionInstance, D3ZoomInstance, PanOnScrollMode, OnPanZoom, D3ZoomHandler, OnDraggingChange, OnTransformChange } from '../../types/system';
|
|
4
|
+
export type PanOnScrollParams = {
|
|
5
|
+
zoomPanValues: ZoomPanValues;
|
|
6
|
+
noWheelClassName: string;
|
|
7
|
+
d3Selection: D3SelectionInstance;
|
|
8
|
+
d3Zoom: D3ZoomInstance;
|
|
9
|
+
panOnScrollMode: PanOnScrollMode;
|
|
10
|
+
panOnScrollSpeed: number;
|
|
11
|
+
zoomOnPinch: boolean;
|
|
12
|
+
onPanZoomStart?: OnPanZoom;
|
|
13
|
+
onPanZoom?: OnPanZoom;
|
|
14
|
+
onPanZoomEnd?: OnPanZoom;
|
|
15
|
+
};
|
|
16
|
+
export type ZoomOnScrollParams = {
|
|
17
|
+
noWheelClassName: string;
|
|
18
|
+
preventScrolling: boolean;
|
|
19
|
+
d3ZoomHandler: D3ZoomHandler;
|
|
20
|
+
};
|
|
21
|
+
export type PanZoomStartParams = {
|
|
22
|
+
zoomPanValues: ZoomPanValues;
|
|
23
|
+
onDraggingChange: OnDraggingChange;
|
|
24
|
+
onPanZoomStart?: OnPanZoom;
|
|
25
|
+
};
|
|
26
|
+
export type PanZoomParams = {
|
|
27
|
+
zoomPanValues: ZoomPanValues;
|
|
28
|
+
panOnDrag: boolean | number[];
|
|
29
|
+
onPaneContextMenu: boolean;
|
|
30
|
+
onTransformChange: OnTransformChange;
|
|
31
|
+
onPanZoom?: OnPanZoom;
|
|
32
|
+
};
|
|
33
|
+
export type PanZoomEndParams = {
|
|
34
|
+
zoomPanValues: ZoomPanValues;
|
|
35
|
+
panOnDrag: boolean | number[];
|
|
36
|
+
panOnScroll: boolean;
|
|
37
|
+
onDraggingChange: (isDragging: boolean) => void;
|
|
38
|
+
onPanZoomEnd?: OnPanZoom;
|
|
39
|
+
onPaneContextMenu?: (event: any) => void;
|
|
40
|
+
};
|
|
41
|
+
export declare function createPanOnScrollHandler({ zoomPanValues, noWheelClassName, d3Selection, d3Zoom, panOnScrollMode, panOnScrollSpeed, zoomOnPinch, onPanZoomStart, onPanZoom, onPanZoomEnd, }: PanOnScrollParams): (event: any) => boolean;
|
|
42
|
+
export declare function createZoomOnScrollHandler({ noWheelClassName, preventScrolling, d3ZoomHandler, }: ZoomOnScrollParams): (this: Element, event: any, d: unknown) => any;
|
|
43
|
+
export declare function createPanZoomStartHandler({ zoomPanValues, onDraggingChange, onPanZoomStart, }: PanZoomStartParams): (event: D3ZoomEvent<HTMLDivElement, any>) => void;
|
|
44
|
+
export declare function createPanZoomHandler({ zoomPanValues, panOnDrag, onPaneContextMenu, onTransformChange, onPanZoom, }: PanZoomParams): (event: D3ZoomEvent<HTMLDivElement, any>) => void;
|
|
45
|
+
export declare function createPanZoomEndHandler({ zoomPanValues, panOnDrag, panOnScroll, onDraggingChange, onPanZoomEnd, onPaneContextMenu, }: PanZoomEndParams): (event: D3ZoomEvent<HTMLDivElement, any>) => void;
|
|
46
|
+
//# sourceMappingURL=eventhandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventhandler.d.ts","sourceRoot":"","sources":["../../../src/utils/xypanzoom/eventhandler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAU3C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAG5B,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,EAAE,aAAa,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,mBAAmB,CAAC;IACjC,MAAM,EAAE,cAAc,CAAC;IACvB,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE,aAAa,CAAC;IAC7B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iBAAiB,EAAE,iBAA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|
+
zoomOnScroll: boolean;
|
|
4
|
+
zoomOnPinch: boolean;
|
|
5
|
+
panOnDrag: boolean | number[];
|
|
6
|
+
panOnScroll: boolean;
|
|
7
|
+
zoomOnDoubleClick: boolean;
|
|
8
|
+
userSelectionActive: boolean;
|
|
9
|
+
noWheelClassName: string;
|
|
10
|
+
noPanClassName: string;
|
|
11
|
+
lib: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function createFilter({ zoomActivationKeyPressed, zoomOnScroll, zoomOnPinch, panOnDrag, panOnScroll, zoomOnDoubleClick, userSelectionActive, noWheelClassName, noPanClassName, lib, }: FilterParams): (event: any) => boolean;
|
|
14
|
+
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/utils/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,CA6D7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/xypanzoom/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ZoomTransform } from 'd3-zoom';
|
|
2
|
+
import { Viewport, D3SelectionInstance } from '../../types/system';
|
|
3
|
+
export declare const viewChanged: (prevViewport: Viewport, eventViewport: any) => boolean;
|
|
4
|
+
export declare const transformToViewport: (transform: ZoomTransform) => Viewport;
|
|
5
|
+
export declare const viewportToTransform: ({ x, y, zoom }: Viewport) => ZoomTransform;
|
|
6
|
+
export declare const isWrappedWithClass: (event: any, className: string | undefined) => any;
|
|
7
|
+
export declare const isRightClickPan: (panOnDrag: boolean | number[], usedButton: number) => boolean;
|
|
8
|
+
export declare const getD3Transition: (selection: D3SelectionInstance, duration?: number) => D3SelectionInstance | import("d3-transition").Transition<Element, unknown, null, undefined>;
|
|
9
|
+
export declare const wheelDelta: (event: any) => number;
|
|
10
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/xypanzoom/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGnE,eAAO,MAAM,WAAW,iBACR,QAAQ,iBACP,GAAG,KACjB,OAGoC,CAAC;AAExC,eAAO,MAAM,mBAAmB,cAAe,aAAa,KAAG,QAI7D,CAAC;AAEH,eAAO,MAAM,mBAAmB,mBAAoB,QAAQ,KAAG,aACrB,CAAC;AAE3C,eAAO,MAAM,kBAAkB,UAAW,GAAG,aAAa,MAAM,GAAG,SAAS,QACrC,CAAC;AAExC,eAAO,MAAM,eAAe,cACf,OAAO,GAAG,MAAM,EAAE,cACjB,MAAM,YACsD,CAAC;AAE3E,eAAO,MAAM,eAAe,oJAGb,CAAC;AAEhB,eAAO,MAAM,UAAU,UAAW,GAAG,WAQpC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aloudata/ink-flow",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "dist/index.cjs.js",
|
|
5
|
+
"module": "dist/index.esm.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "rollup -c ",
|
|
14
|
+
"css": "postcss src/styles/{base,style}.css --config ./../ --dir dist "
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@aloudata/ink-core": "workspace:^",
|
|
18
|
+
"react": "^18.3.1",
|
|
19
|
+
"react-dom": "^18.3.1",
|
|
20
|
+
"zustand": "^4.5.2"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@babel/core": "^7.18.6",
|
|
24
|
+
"@babel/preset-env": "^7.18.6",
|
|
25
|
+
"@babel/preset-react": "^7.24.1",
|
|
26
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
27
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
28
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
29
|
+
"@types/node": "^14.14.37",
|
|
30
|
+
"@types/react": "^18.3.1",
|
|
31
|
+
"@types/react-dom": "^18.3.0",
|
|
32
|
+
"autoprefixer": "^10.4.19",
|
|
33
|
+
"cssnano": "^7.0.1",
|
|
34
|
+
"install": "^0.13.0",
|
|
35
|
+
"postcss": "^8.4.38",
|
|
36
|
+
"postcss-cli": "^11.0.0",
|
|
37
|
+
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
38
|
+
"postcss-import": "^16.1.0",
|
|
39
|
+
"postcss-nested": "^6.0.1",
|
|
40
|
+
"postcss-rename": "^0.6.1",
|
|
41
|
+
"rollup": "^4.17.2",
|
|
42
|
+
"rollup-plugin-babel": "^4.4.0",
|
|
43
|
+
"rollup-plugin-css-only": "^4.5.2",
|
|
44
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
45
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
46
|
+
"rollup-plugin-typescript2": "^0.35.0"
|
|
47
|
+
}
|
|
48
|
+
}
|