@angflow/system 0.0.93 → 0.1.2
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/index.d.ts +0 -1
- package/dist/esm/index.js +30 -9
- package/dist/esm/index.mjs +30 -9
- package/dist/esm/types/changes.d.ts +0 -1
- package/dist/esm/types/edges.d.ts +0 -1
- package/dist/esm/types/general.d.ts +0 -1
- package/dist/esm/types/handles.d.ts +0 -1
- package/dist/esm/types/index.d.ts +0 -1
- package/dist/esm/types/nodes.d.ts +0 -1
- package/dist/esm/types/panzoom.d.ts +2 -3
- package/dist/esm/types/utils.d.ts +0 -1
- package/dist/esm/utils/connections.d.ts +0 -1
- package/dist/esm/utils/dom.d.ts +0 -1
- package/dist/esm/utils/edge-toolbar.d.ts +0 -1
- package/dist/esm/utils/edges/bezier-edge.d.ts +0 -1
- package/dist/esm/utils/edges/floating.d.ts +0 -1
- package/dist/esm/utils/edges/general.d.ts +0 -1
- package/dist/esm/utils/edges/index.d.ts +0 -1
- package/dist/esm/utils/edges/positions.d.ts +0 -1
- package/dist/esm/utils/edges/smoothstep-edge.d.ts +0 -1
- package/dist/esm/utils/edges/straight-edge.d.ts +0 -1
- package/dist/esm/utils/general.d.ts +0 -1
- package/dist/esm/utils/graph.d.ts +0 -1
- package/dist/esm/utils/index.d.ts +0 -1
- package/dist/esm/utils/marker.d.ts +0 -1
- package/dist/esm/utils/node-toolbar.d.ts +0 -1
- package/dist/esm/utils/shallow-node-data.d.ts +0 -1
- package/dist/esm/utils/store.d.ts +0 -1
- package/dist/esm/utils/types.d.ts +0 -1
- package/dist/esm/xydrag/XYDrag.d.ts +0 -1
- package/dist/esm/xydrag/index.d.ts +0 -1
- package/dist/esm/xydrag/utils.d.ts +0 -1
- package/dist/esm/xyhandle/XYHandle.d.ts +0 -1
- package/dist/esm/xyhandle/index.d.ts +0 -1
- package/dist/esm/xyhandle/types.d.ts +8 -5
- package/dist/esm/xyhandle/utils.d.ts +3 -4
- package/dist/esm/xyminimap/index.d.ts +0 -1
- package/dist/esm/xypanzoom/XYPanZoom.d.ts +0 -1
- package/dist/esm/xypanzoom/eventhandler.d.ts +0 -1
- package/dist/esm/xypanzoom/filter.d.ts +2 -3
- package/dist/esm/xypanzoom/index.d.ts +0 -1
- package/dist/esm/xypanzoom/utils.d.ts +0 -1
- package/dist/esm/xyresizer/XYResizer.d.ts +0 -1
- package/dist/esm/xyresizer/index.d.ts +0 -1
- package/dist/esm/xyresizer/types.d.ts +0 -1
- package/dist/esm/xyresizer/utils.d.ts +0 -1
- package/dist/umd/constants.d.ts +0 -1
- package/dist/umd/index.d.ts +0 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/types/changes.d.ts +0 -1
- package/dist/umd/types/edges.d.ts +0 -1
- package/dist/umd/types/general.d.ts +0 -1
- package/dist/umd/types/handles.d.ts +0 -1
- package/dist/umd/types/index.d.ts +0 -1
- package/dist/umd/types/nodes.d.ts +0 -1
- package/dist/umd/types/panzoom.d.ts +2 -3
- package/dist/umd/types/utils.d.ts +0 -1
- package/dist/umd/utils/connections.d.ts +0 -1
- package/dist/umd/utils/dom.d.ts +0 -1
- package/dist/umd/utils/edge-toolbar.d.ts +0 -1
- package/dist/umd/utils/edges/bezier-edge.d.ts +0 -1
- package/dist/umd/utils/edges/floating.d.ts +0 -1
- package/dist/umd/utils/edges/general.d.ts +0 -1
- package/dist/umd/utils/edges/index.d.ts +0 -1
- package/dist/umd/utils/edges/positions.d.ts +0 -1
- package/dist/umd/utils/edges/smoothstep-edge.d.ts +0 -1
- package/dist/umd/utils/edges/straight-edge.d.ts +0 -1
- package/dist/umd/utils/general.d.ts +0 -1
- package/dist/umd/utils/graph.d.ts +0 -1
- package/dist/umd/utils/index.d.ts +0 -1
- package/dist/umd/utils/marker.d.ts +0 -1
- package/dist/umd/utils/node-toolbar.d.ts +0 -1
- package/dist/umd/utils/shallow-node-data.d.ts +0 -1
- package/dist/umd/utils/store.d.ts +0 -1
- package/dist/umd/utils/types.d.ts +0 -1
- package/dist/umd/xydrag/XYDrag.d.ts +0 -1
- package/dist/umd/xydrag/index.d.ts +0 -1
- package/dist/umd/xydrag/utils.d.ts +0 -1
- package/dist/umd/xyhandle/XYHandle.d.ts +0 -1
- package/dist/umd/xyhandle/index.d.ts +0 -1
- package/dist/umd/xyhandle/types.d.ts +8 -5
- package/dist/umd/xyhandle/utils.d.ts +3 -4
- package/dist/umd/xyminimap/index.d.ts +0 -1
- package/dist/umd/xypanzoom/XYPanZoom.d.ts +0 -1
- package/dist/umd/xypanzoom/eventhandler.d.ts +0 -1
- package/dist/umd/xypanzoom/filter.d.ts +2 -3
- package/dist/umd/xypanzoom/index.d.ts +0 -1
- package/dist/umd/xypanzoom/utils.d.ts +0 -1
- package/dist/umd/xyresizer/XYResizer.d.ts +0 -1
- package/dist/umd/xyresizer/index.d.ts +0 -1
- package/dist/umd/xyresizer/types.d.ts +0 -1
- package/dist/umd/xyresizer/utils.d.ts +0 -1
- package/package.json +6 -2
- package/dist/esm/constants.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/src/constants.d.ts +0 -43
- package/dist/esm/src/constants.d.ts.map +0 -1
- package/dist/esm/src/index.d.ts +0 -9
- package/dist/esm/src/index.d.ts.map +0 -1
- package/dist/esm/src/types/changes.d.ts +0 -64
- package/dist/esm/src/types/changes.d.ts.map +0 -1
- package/dist/esm/src/types/edges.d.ts +0 -140
- package/dist/esm/src/types/edges.d.ts.map +0 -1
- package/dist/esm/src/types/general.d.ts +0 -296
- package/dist/esm/src/types/general.d.ts.map +0 -1
- package/dist/esm/src/types/handles.d.ts +0 -65
- package/dist/esm/src/types/handles.d.ts.map +0 -1
- package/dist/esm/src/types/index.d.ts +0 -8
- package/dist/esm/src/types/index.d.ts.map +0 -1
- package/dist/esm/src/types/nodes.d.ts +0 -157
- package/dist/esm/src/types/nodes.d.ts.map +0 -1
- package/dist/esm/src/types/panzoom.d.ts +0 -55
- package/dist/esm/src/types/panzoom.d.ts.map +0 -1
- package/dist/esm/src/types/utils.d.ts +0 -61
- package/dist/esm/src/types/utils.d.ts.map +0 -1
- package/dist/esm/src/utils/connections.d.ts +0 -13
- package/dist/esm/src/utils/connections.d.ts.map +0 -1
- package/dist/esm/src/utils/dom.d.ts +0 -21
- package/dist/esm/src/utils/dom.d.ts.map +0 -1
- package/dist/esm/src/utils/edge-toolbar.d.ts +0 -2
- package/dist/esm/src/utils/edge-toolbar.d.ts.map +0 -1
- package/dist/esm/src/utils/edges/bezier-edge.d.ts +0 -77
- package/dist/esm/src/utils/edges/bezier-edge.d.ts.map +0 -1
- package/dist/esm/src/utils/edges/floating.d.ts +0 -32
- package/dist/esm/src/utils/edges/floating.d.ts.map +0 -1
- package/dist/esm/src/utils/edges/general.d.ts +0 -91
- package/dist/esm/src/utils/edges/general.d.ts.map +0 -1
- package/dist/esm/src/utils/edges/index.d.ts +0 -7
- package/dist/esm/src/utils/edges/index.d.ts.map +0 -1
- package/dist/esm/src/utils/edges/positions.d.ts +0 -17
- package/dist/esm/src/utils/edges/positions.d.ts.map +0 -1
- package/dist/esm/src/utils/edges/smoothstep-edge.d.ts +0 -66
- package/dist/esm/src/utils/edges/smoothstep-edge.d.ts.map +0 -1
- package/dist/esm/src/utils/edges/straight-edge.d.ts +0 -41
- package/dist/esm/src/utils/edges/straight-edge.d.ts.map +0 -1
- package/dist/esm/src/utils/general.d.ts +0 -86
- package/dist/esm/src/utils/general.d.ts.map +0 -1
- package/dist/esm/src/utils/graph.d.ts +0 -191
- package/dist/esm/src/utils/graph.d.ts.map +0 -1
- package/dist/esm/src/utils/index.d.ts +0 -12
- package/dist/esm/src/utils/index.d.ts.map +0 -1
- package/dist/esm/src/utils/marker.d.ts +0 -9
- package/dist/esm/src/utils/marker.d.ts.map +0 -1
- package/dist/esm/src/utils/node-toolbar.d.ts +0 -3
- package/dist/esm/src/utils/node-toolbar.d.ts.map +0 -1
- package/dist/esm/src/utils/shallow-node-data.d.ts +0 -5
- package/dist/esm/src/utils/shallow-node-data.d.ts.map +0 -1
- package/dist/esm/src/utils/store.d.ts +0 -34
- package/dist/esm/src/utils/store.d.ts.map +0 -1
- package/dist/esm/src/utils/types.d.ts +0 -8
- package/dist/esm/src/utils/types.d.ts.map +0 -1
- package/dist/esm/src/xydrag/XYDrag.d.ts +0 -55
- package/dist/esm/src/xydrag/XYDrag.d.ts.map +0 -1
- package/dist/esm/src/xydrag/index.d.ts +0 -2
- package/dist/esm/src/xydrag/index.d.ts.map +0 -1
- package/dist/esm/src/xydrag/utils.d.ts +0 -24
- package/dist/esm/src/xydrag/utils.d.ts.map +0 -1
- package/dist/esm/src/xyhandle/XYHandle.d.ts +0 -3
- package/dist/esm/src/xyhandle/XYHandle.d.ts.map +0 -1
- package/dist/esm/src/xyhandle/index.d.ts +0 -2
- package/dist/esm/src/xyhandle/index.d.ts.map +0 -1
- package/dist/esm/src/xyhandle/types.d.ts +0 -51
- package/dist/esm/src/xyhandle/types.d.ts.map +0 -1
- package/dist/esm/src/xyhandle/utils.d.ts +0 -29
- package/dist/esm/src/xyhandle/utils.d.ts.map +0 -1
- package/dist/esm/src/xyminimap/index.d.ts +0 -28
- package/dist/esm/src/xyminimap/index.d.ts.map +0 -1
- package/dist/esm/src/xypanzoom/XYPanZoom.d.ts +0 -12
- package/dist/esm/src/xypanzoom/XYPanZoom.d.ts.map +0 -1
- package/dist/esm/src/xypanzoom/eventhandler.d.ts +0 -46
- package/dist/esm/src/xypanzoom/eventhandler.d.ts.map +0 -1
- package/dist/esm/src/xypanzoom/filter.d.ts +0 -15
- package/dist/esm/src/xypanzoom/filter.d.ts.map +0 -1
- package/dist/esm/src/xypanzoom/index.d.ts +0 -2
- package/dist/esm/src/xypanzoom/index.d.ts.map +0 -1
- package/dist/esm/src/xypanzoom/utils.d.ts +0 -9
- package/dist/esm/src/xypanzoom/utils.d.ts.map +0 -1
- package/dist/esm/src/xyresizer/XYResizer.d.ts +0 -49
- package/dist/esm/src/xyresizer/XYResizer.d.ts.map +0 -1
- package/dist/esm/src/xyresizer/index.d.ts +0 -3
- package/dist/esm/src/xyresizer/index.d.ts.map +0 -1
- package/dist/esm/src/xyresizer/types.d.ts +0 -59
- package/dist/esm/src/xyresizer/types.d.ts.map +0 -1
- package/dist/esm/src/xyresizer/utils.d.ts +0 -76
- package/dist/esm/src/xyresizer/utils.d.ts.map +0 -1
- package/dist/esm/types/changes.d.ts.map +0 -1
- package/dist/esm/types/edges.d.ts.map +0 -1
- package/dist/esm/types/general.d.ts.map +0 -1
- package/dist/esm/types/handles.d.ts.map +0 -1
- package/dist/esm/types/index.d.ts.map +0 -1
- package/dist/esm/types/nodes.d.ts.map +0 -1
- package/dist/esm/types/panzoom.d.ts.map +0 -1
- package/dist/esm/types/utils.d.ts.map +0 -1
- package/dist/esm/utils/connections.d.ts.map +0 -1
- package/dist/esm/utils/dom.d.ts.map +0 -1
- package/dist/esm/utils/edge-toolbar.d.ts.map +0 -1
- package/dist/esm/utils/edges/bezier-edge.d.ts.map +0 -1
- package/dist/esm/utils/edges/floating.d.ts.map +0 -1
- package/dist/esm/utils/edges/general.d.ts.map +0 -1
- package/dist/esm/utils/edges/index.d.ts.map +0 -1
- package/dist/esm/utils/edges/positions.d.ts.map +0 -1
- package/dist/esm/utils/edges/smoothstep-edge.d.ts.map +0 -1
- package/dist/esm/utils/edges/straight-edge.d.ts.map +0 -1
- package/dist/esm/utils/general.d.ts.map +0 -1
- package/dist/esm/utils/graph.d.ts.map +0 -1
- package/dist/esm/utils/index.d.ts.map +0 -1
- package/dist/esm/utils/marker.d.ts.map +0 -1
- package/dist/esm/utils/node-toolbar.d.ts.map +0 -1
- package/dist/esm/utils/shallow-node-data.d.ts.map +0 -1
- package/dist/esm/utils/store.d.ts.map +0 -1
- package/dist/esm/utils/types.d.ts.map +0 -1
- package/dist/esm/vitest.config.d.ts +0 -3
- package/dist/esm/vitest.config.d.ts.map +0 -1
- package/dist/esm/xydrag/XYDrag.d.ts.map +0 -1
- package/dist/esm/xydrag/index.d.ts.map +0 -1
- package/dist/esm/xydrag/utils.d.ts.map +0 -1
- package/dist/esm/xyhandle/XYHandle.d.ts.map +0 -1
- package/dist/esm/xyhandle/index.d.ts.map +0 -1
- package/dist/esm/xyhandle/types.d.ts.map +0 -1
- package/dist/esm/xyhandle/utils.d.ts.map +0 -1
- package/dist/esm/xyminimap/index.d.ts.map +0 -1
- package/dist/esm/xypanzoom/XYPanZoom.d.ts.map +0 -1
- package/dist/esm/xypanzoom/eventhandler.d.ts.map +0 -1
- package/dist/esm/xypanzoom/filter.d.ts.map +0 -1
- package/dist/esm/xypanzoom/index.d.ts.map +0 -1
- package/dist/esm/xypanzoom/utils.d.ts.map +0 -1
- package/dist/esm/xyresizer/XYResizer.d.ts.map +0 -1
- package/dist/esm/xyresizer/index.d.ts.map +0 -1
- package/dist/esm/xyresizer/types.d.ts.map +0 -1
- package/dist/esm/xyresizer/utils.d.ts.map +0 -1
- package/dist/umd/constants.d.ts.map +0 -1
- package/dist/umd/index.d.ts.map +0 -1
- package/dist/umd/src/constants.d.ts +0 -43
- package/dist/umd/src/constants.d.ts.map +0 -1
- package/dist/umd/src/index.d.ts +0 -9
- package/dist/umd/src/index.d.ts.map +0 -1
- package/dist/umd/src/types/changes.d.ts +0 -64
- package/dist/umd/src/types/changes.d.ts.map +0 -1
- package/dist/umd/src/types/edges.d.ts +0 -140
- package/dist/umd/src/types/edges.d.ts.map +0 -1
- package/dist/umd/src/types/general.d.ts +0 -296
- package/dist/umd/src/types/general.d.ts.map +0 -1
- package/dist/umd/src/types/handles.d.ts +0 -65
- package/dist/umd/src/types/handles.d.ts.map +0 -1
- package/dist/umd/src/types/index.d.ts +0 -8
- package/dist/umd/src/types/index.d.ts.map +0 -1
- package/dist/umd/src/types/nodes.d.ts +0 -157
- package/dist/umd/src/types/nodes.d.ts.map +0 -1
- package/dist/umd/src/types/panzoom.d.ts +0 -55
- package/dist/umd/src/types/panzoom.d.ts.map +0 -1
- package/dist/umd/src/types/utils.d.ts +0 -61
- package/dist/umd/src/types/utils.d.ts.map +0 -1
- package/dist/umd/src/utils/connections.d.ts +0 -13
- package/dist/umd/src/utils/connections.d.ts.map +0 -1
- package/dist/umd/src/utils/dom.d.ts +0 -21
- package/dist/umd/src/utils/dom.d.ts.map +0 -1
- package/dist/umd/src/utils/edge-toolbar.d.ts +0 -2
- package/dist/umd/src/utils/edge-toolbar.d.ts.map +0 -1
- package/dist/umd/src/utils/edges/bezier-edge.d.ts +0 -77
- package/dist/umd/src/utils/edges/bezier-edge.d.ts.map +0 -1
- package/dist/umd/src/utils/edges/floating.d.ts +0 -32
- package/dist/umd/src/utils/edges/floating.d.ts.map +0 -1
- package/dist/umd/src/utils/edges/general.d.ts +0 -91
- package/dist/umd/src/utils/edges/general.d.ts.map +0 -1
- package/dist/umd/src/utils/edges/index.d.ts +0 -7
- package/dist/umd/src/utils/edges/index.d.ts.map +0 -1
- package/dist/umd/src/utils/edges/positions.d.ts +0 -17
- package/dist/umd/src/utils/edges/positions.d.ts.map +0 -1
- package/dist/umd/src/utils/edges/smoothstep-edge.d.ts +0 -66
- package/dist/umd/src/utils/edges/smoothstep-edge.d.ts.map +0 -1
- package/dist/umd/src/utils/edges/straight-edge.d.ts +0 -41
- package/dist/umd/src/utils/edges/straight-edge.d.ts.map +0 -1
- package/dist/umd/src/utils/general.d.ts +0 -86
- package/dist/umd/src/utils/general.d.ts.map +0 -1
- package/dist/umd/src/utils/graph.d.ts +0 -191
- package/dist/umd/src/utils/graph.d.ts.map +0 -1
- package/dist/umd/src/utils/index.d.ts +0 -12
- package/dist/umd/src/utils/index.d.ts.map +0 -1
- package/dist/umd/src/utils/marker.d.ts +0 -9
- package/dist/umd/src/utils/marker.d.ts.map +0 -1
- package/dist/umd/src/utils/node-toolbar.d.ts +0 -3
- package/dist/umd/src/utils/node-toolbar.d.ts.map +0 -1
- package/dist/umd/src/utils/shallow-node-data.d.ts +0 -5
- package/dist/umd/src/utils/shallow-node-data.d.ts.map +0 -1
- package/dist/umd/src/utils/store.d.ts +0 -34
- package/dist/umd/src/utils/store.d.ts.map +0 -1
- package/dist/umd/src/utils/types.d.ts +0 -8
- package/dist/umd/src/utils/types.d.ts.map +0 -1
- package/dist/umd/src/xydrag/XYDrag.d.ts +0 -55
- package/dist/umd/src/xydrag/XYDrag.d.ts.map +0 -1
- package/dist/umd/src/xydrag/index.d.ts +0 -2
- package/dist/umd/src/xydrag/index.d.ts.map +0 -1
- package/dist/umd/src/xydrag/utils.d.ts +0 -24
- package/dist/umd/src/xydrag/utils.d.ts.map +0 -1
- package/dist/umd/src/xyhandle/XYHandle.d.ts +0 -3
- package/dist/umd/src/xyhandle/XYHandle.d.ts.map +0 -1
- package/dist/umd/src/xyhandle/index.d.ts +0 -2
- package/dist/umd/src/xyhandle/index.d.ts.map +0 -1
- package/dist/umd/src/xyhandle/types.d.ts +0 -51
- package/dist/umd/src/xyhandle/types.d.ts.map +0 -1
- package/dist/umd/src/xyhandle/utils.d.ts +0 -29
- package/dist/umd/src/xyhandle/utils.d.ts.map +0 -1
- package/dist/umd/src/xyminimap/index.d.ts +0 -28
- package/dist/umd/src/xyminimap/index.d.ts.map +0 -1
- package/dist/umd/src/xypanzoom/XYPanZoom.d.ts +0 -12
- package/dist/umd/src/xypanzoom/XYPanZoom.d.ts.map +0 -1
- package/dist/umd/src/xypanzoom/eventhandler.d.ts +0 -46
- package/dist/umd/src/xypanzoom/eventhandler.d.ts.map +0 -1
- package/dist/umd/src/xypanzoom/filter.d.ts +0 -15
- package/dist/umd/src/xypanzoom/filter.d.ts.map +0 -1
- package/dist/umd/src/xypanzoom/index.d.ts +0 -2
- package/dist/umd/src/xypanzoom/index.d.ts.map +0 -1
- package/dist/umd/src/xypanzoom/utils.d.ts +0 -9
- package/dist/umd/src/xypanzoom/utils.d.ts.map +0 -1
- package/dist/umd/src/xyresizer/XYResizer.d.ts +0 -49
- package/dist/umd/src/xyresizer/XYResizer.d.ts.map +0 -1
- package/dist/umd/src/xyresizer/index.d.ts +0 -3
- package/dist/umd/src/xyresizer/index.d.ts.map +0 -1
- package/dist/umd/src/xyresizer/types.d.ts +0 -59
- package/dist/umd/src/xyresizer/types.d.ts.map +0 -1
- package/dist/umd/src/xyresizer/utils.d.ts +0 -76
- package/dist/umd/src/xyresizer/utils.d.ts.map +0 -1
- package/dist/umd/types/changes.d.ts.map +0 -1
- package/dist/umd/types/edges.d.ts.map +0 -1
- package/dist/umd/types/general.d.ts.map +0 -1
- package/dist/umd/types/handles.d.ts.map +0 -1
- package/dist/umd/types/index.d.ts.map +0 -1
- package/dist/umd/types/nodes.d.ts.map +0 -1
- package/dist/umd/types/panzoom.d.ts.map +0 -1
- package/dist/umd/types/utils.d.ts.map +0 -1
- package/dist/umd/utils/connections.d.ts.map +0 -1
- package/dist/umd/utils/dom.d.ts.map +0 -1
- package/dist/umd/utils/edge-toolbar.d.ts.map +0 -1
- package/dist/umd/utils/edges/bezier-edge.d.ts.map +0 -1
- package/dist/umd/utils/edges/floating.d.ts.map +0 -1
- package/dist/umd/utils/edges/general.d.ts.map +0 -1
- package/dist/umd/utils/edges/index.d.ts.map +0 -1
- package/dist/umd/utils/edges/positions.d.ts.map +0 -1
- package/dist/umd/utils/edges/smoothstep-edge.d.ts.map +0 -1
- package/dist/umd/utils/edges/straight-edge.d.ts.map +0 -1
- package/dist/umd/utils/general.d.ts.map +0 -1
- package/dist/umd/utils/graph.d.ts.map +0 -1
- package/dist/umd/utils/index.d.ts.map +0 -1
- package/dist/umd/utils/marker.d.ts.map +0 -1
- package/dist/umd/utils/node-toolbar.d.ts.map +0 -1
- package/dist/umd/utils/shallow-node-data.d.ts.map +0 -1
- package/dist/umd/utils/store.d.ts.map +0 -1
- package/dist/umd/utils/types.d.ts.map +0 -1
- package/dist/umd/vitest.config.d.ts +0 -3
- package/dist/umd/vitest.config.d.ts.map +0 -1
- package/dist/umd/xydrag/XYDrag.d.ts.map +0 -1
- package/dist/umd/xydrag/index.d.ts.map +0 -1
- package/dist/umd/xydrag/utils.d.ts.map +0 -1
- package/dist/umd/xyhandle/XYHandle.d.ts.map +0 -1
- package/dist/umd/xyhandle/index.d.ts.map +0 -1
- package/dist/umd/xyhandle/types.d.ts.map +0 -1
- package/dist/umd/xyhandle/utils.d.ts.map +0 -1
- package/dist/umd/xyminimap/index.d.ts.map +0 -1
- package/dist/umd/xypanzoom/XYPanZoom.d.ts.map +0 -1
- package/dist/umd/xypanzoom/eventhandler.d.ts.map +0 -1
- package/dist/umd/xypanzoom/filter.d.ts.map +0 -1
- package/dist/umd/xypanzoom/index.d.ts.map +0 -1
- package/dist/umd/xypanzoom/utils.d.ts.map +0 -1
- package/dist/umd/xyresizer/XYResizer.d.ts.map +0 -1
- package/dist/umd/xyresizer/index.d.ts.map +0 -1
- package/dist/umd/xyresizer/types.d.ts.map +0 -1
- package/dist/umd/xyresizer/utils.d.ts.map +0 -1
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
import type { Selection as D3Selection } from 'd3-selection';
|
|
2
|
-
import type { D3DragEvent, SubjectPosition } from 'd3-drag';
|
|
3
|
-
import type { ZoomBehavior } from 'd3-zoom';
|
|
4
|
-
import type { XYPosition, Rect, Position } from './utils';
|
|
5
|
-
import type { InternalNodeBase, NodeBase, NodeDragItem } from './nodes';
|
|
6
|
-
import type { Handle, HandleType } from './handles';
|
|
7
|
-
import { PanZoomInstance } from './panzoom';
|
|
8
|
-
import { EdgeBase } from '..';
|
|
9
|
-
export type Project = (position: XYPosition) => XYPosition;
|
|
10
|
-
/**
|
|
11
|
-
* This type is used to define the `onMove` handler.
|
|
12
|
-
*/
|
|
13
|
-
export type OnMove = (event: MouseEvent | TouchEvent | null, viewport: Viewport) => void;
|
|
14
|
-
export type OnMoveStart = OnMove;
|
|
15
|
-
export type OnMoveEnd = OnMove;
|
|
16
|
-
/**
|
|
17
|
-
* @inline
|
|
18
|
-
*/
|
|
19
|
-
export type ZoomInOut = (options?: ViewportHelperFunctionOptions) => Promise<boolean>;
|
|
20
|
-
/**
|
|
21
|
-
* @inline
|
|
22
|
-
*/
|
|
23
|
-
export type ZoomTo = (zoomLevel: number, options?: ViewportHelperFunctionOptions) => Promise<boolean>;
|
|
24
|
-
/**
|
|
25
|
-
* @inline
|
|
26
|
-
*/
|
|
27
|
-
export type GetZoom = () => number;
|
|
28
|
-
/**
|
|
29
|
-
* @inline
|
|
30
|
-
*/
|
|
31
|
-
export type GetViewport = () => Viewport;
|
|
32
|
-
/**
|
|
33
|
-
* The `SetViewport` function is used to set the viewport of the flow.
|
|
34
|
-
*
|
|
35
|
-
* @inline
|
|
36
|
-
* @param viewport - The viewport to set.
|
|
37
|
-
* @param options - Optional parameters to control the animation and easing of the viewport change.
|
|
38
|
-
*/
|
|
39
|
-
export type SetViewport = (viewport: Viewport, options?: ViewportHelperFunctionOptions) => Promise<boolean>;
|
|
40
|
-
/**
|
|
41
|
-
* The `SetCenter` function is used to set the center of the flow viewport to a specific position
|
|
42
|
-
*
|
|
43
|
-
* @inline
|
|
44
|
-
* @param x - x coordinate
|
|
45
|
-
* @param y - y coordinate
|
|
46
|
-
* @param options - Optional parameters to control the animation and easing of the viewport change.
|
|
47
|
-
*/
|
|
48
|
-
export type SetCenter = (x: number, y: number, options?: SetCenterOptions) => Promise<boolean>;
|
|
49
|
-
/**
|
|
50
|
-
* The `FitBounds` function is used to fit the flow viewport to the bounds of the nodes.
|
|
51
|
-
*
|
|
52
|
-
* @inline
|
|
53
|
-
* @param bounds - The bounds to fit the viewport to.
|
|
54
|
-
* @param options - Optional parameters to control the animation and easing of the viewport change.
|
|
55
|
-
*/
|
|
56
|
-
export type FitBounds = (bounds: Rect, options?: FitBoundsOptions) => Promise<boolean>;
|
|
57
|
-
/**
|
|
58
|
-
* The `Connection` type is the basic minimal description of an [`Edge`](/api-reference/types/edge)
|
|
59
|
-
* between two nodes. The [`addEdge`](/api-reference/utils/add-edge) util can be used to upgrade
|
|
60
|
-
* a `Connection` to an [`Edge`](/api-reference/types/edge).
|
|
61
|
-
*
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
|
-
export type Connection = {
|
|
65
|
-
/** The id of the node this connection originates from. */
|
|
66
|
-
source: string;
|
|
67
|
-
/** The id of the node this connection terminates at. */
|
|
68
|
-
target: string;
|
|
69
|
-
/** When not `null`, the id of the handle on the source node that this connection originates from. */
|
|
70
|
-
sourceHandle: string | null;
|
|
71
|
-
/** When not `null`, the id of the handle on the target node that this connection terminates at. */
|
|
72
|
-
targetHandle: string | null;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* The `HandleConnection` type is an extension of a basic [Connection](/api-reference/types/connection) that includes the `edgeId`.
|
|
76
|
-
*/
|
|
77
|
-
export type HandleConnection = Connection & {
|
|
78
|
-
edgeId: string;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* The `NodeConnection` type is an extension of a basic [Connection](/api-reference/types/connection) that includes the `edgeId`.
|
|
82
|
-
*
|
|
83
|
-
*/
|
|
84
|
-
export type NodeConnection = Connection & {
|
|
85
|
-
edgeId: string;
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* The `ConnectionMode` is used to set the mode of connection between nodes.
|
|
89
|
-
* The `Strict` mode is the default one and only allows source to target edges.
|
|
90
|
-
* `Loose` mode allows source to source and target to target edges as well.
|
|
91
|
-
*
|
|
92
|
-
* @public
|
|
93
|
-
*/
|
|
94
|
-
export declare enum ConnectionMode {
|
|
95
|
-
Strict = "strict",
|
|
96
|
-
Loose = "loose"
|
|
97
|
-
}
|
|
98
|
-
export type OnConnectStartParams = {
|
|
99
|
-
nodeId: string | null;
|
|
100
|
-
handleId: string | null;
|
|
101
|
-
handleType: HandleType | null;
|
|
102
|
-
};
|
|
103
|
-
export type OnConnectStart = (event: MouseEvent | TouchEvent, params: OnConnectStartParams) => void;
|
|
104
|
-
export type OnConnect = (connection: Connection) => void;
|
|
105
|
-
export type OnConnectEnd = (event: MouseEvent | TouchEvent, connectionState: FinalConnectionState) => void;
|
|
106
|
-
export type OnReconnect<EdgeType extends EdgeBase = EdgeBase> = (oldEdge: EdgeType, newConnection: Connection) => void;
|
|
107
|
-
export type OnReconnectStart<EdgeType extends EdgeBase = EdgeBase> = (event: MouseEvent | TouchEvent, edge: EdgeType, handleType: HandleType) => void;
|
|
108
|
-
export type OnReconnectEnd<EdgeType extends EdgeBase = EdgeBase> = (event: MouseEvent | TouchEvent, edge: EdgeType, handleType: HandleType, connectionState: FinalConnectionState) => void;
|
|
109
|
-
export type IsValidConnection = (edge: EdgeBase | Connection) => boolean;
|
|
110
|
-
/**
|
|
111
|
-
* @inline
|
|
112
|
-
*/
|
|
113
|
-
export type FitViewParamsBase<NodeType extends NodeBase> = {
|
|
114
|
-
nodes: Map<string, InternalNodeBase<NodeType>>;
|
|
115
|
-
width: number;
|
|
116
|
-
height: number;
|
|
117
|
-
panZoom: PanZoomInstance;
|
|
118
|
-
minZoom: number;
|
|
119
|
-
maxZoom: number;
|
|
120
|
-
};
|
|
121
|
-
export type PaddingUnit = 'px' | '%';
|
|
122
|
-
export type PaddingWithUnit = `${number}${PaddingUnit}` | number;
|
|
123
|
-
export type Padding = PaddingWithUnit | {
|
|
124
|
-
top?: PaddingWithUnit;
|
|
125
|
-
right?: PaddingWithUnit;
|
|
126
|
-
bottom?: PaddingWithUnit;
|
|
127
|
-
left?: PaddingWithUnit;
|
|
128
|
-
x?: PaddingWithUnit;
|
|
129
|
-
y?: PaddingWithUnit;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* @inline
|
|
133
|
-
*/
|
|
134
|
-
export type FitViewOptionsBase<NodeType extends NodeBase = NodeBase> = {
|
|
135
|
-
padding?: Padding;
|
|
136
|
-
includeHiddenNodes?: boolean;
|
|
137
|
-
minZoom?: number;
|
|
138
|
-
maxZoom?: number;
|
|
139
|
-
duration?: number;
|
|
140
|
-
ease?: (t: number) => number;
|
|
141
|
-
interpolate?: 'smooth' | 'linear';
|
|
142
|
-
nodes?: (NodeType | {
|
|
143
|
-
id: string;
|
|
144
|
-
})[];
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* Internally, React Flow maintains a coordinate system that is independent of the
|
|
148
|
-
* rest of the page. The `Viewport` type tells you where in that system your flow
|
|
149
|
-
* is currently being display at and how zoomed in or out it is.
|
|
150
|
-
*
|
|
151
|
-
* @public
|
|
152
|
-
* @remarks A `Transform` has the same properties as the viewport, but they represent
|
|
153
|
-
* different things. Make sure you don't get them muddled up or things will start
|
|
154
|
-
* to look weird!
|
|
155
|
-
*
|
|
156
|
-
*/
|
|
157
|
-
export type Viewport = {
|
|
158
|
-
x: number;
|
|
159
|
-
y: number;
|
|
160
|
-
zoom: number;
|
|
161
|
-
};
|
|
162
|
-
export type KeyCode = string | Array<string>;
|
|
163
|
-
export type SnapGrid = [number, number];
|
|
164
|
-
/**
|
|
165
|
-
* This enum is used to set the different modes of panning the viewport when the
|
|
166
|
-
* user scrolls. The `Free` mode allows the user to pan in any direction by scrolling
|
|
167
|
-
* with a device like a trackpad. The `Vertical` and `Horizontal` modes restrict
|
|
168
|
-
* scroll panning to only the vertical or horizontal axis, respectively.
|
|
169
|
-
*
|
|
170
|
-
* @public
|
|
171
|
-
*/
|
|
172
|
-
export declare enum PanOnScrollMode {
|
|
173
|
-
Free = "free",
|
|
174
|
-
Vertical = "vertical",
|
|
175
|
-
Horizontal = "horizontal"
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* @inline
|
|
179
|
-
*/
|
|
180
|
-
export type ViewportHelperFunctionOptions = {
|
|
181
|
-
duration?: number;
|
|
182
|
-
ease?: (t: number) => number;
|
|
183
|
-
interpolate?: 'smooth' | 'linear';
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* @inline
|
|
187
|
-
*/
|
|
188
|
-
export type SetCenterOptions = ViewportHelperFunctionOptions & {
|
|
189
|
-
zoom?: number;
|
|
190
|
-
};
|
|
191
|
-
/**
|
|
192
|
-
* @inline
|
|
193
|
-
*/
|
|
194
|
-
export type FitBoundsOptions = ViewportHelperFunctionOptions & {
|
|
195
|
-
padding?: number;
|
|
196
|
-
};
|
|
197
|
-
export type OnViewportChange = (viewport: Viewport) => void;
|
|
198
|
-
export type D3ZoomInstance = ZoomBehavior<Element, unknown>;
|
|
199
|
-
export type D3SelectionInstance = D3Selection<Element, unknown, null, undefined>;
|
|
200
|
-
export type D3ZoomHandler = (this: Element, event: any, d: unknown) => void;
|
|
201
|
-
export type UpdateNodeInternals = (nodeId: string | string[]) => void;
|
|
202
|
-
/**
|
|
203
|
-
* This type is mostly used to help position things on top of the flow viewport. For
|
|
204
|
-
* example both the [`<MiniMap />`](/api-reference/components/minimap) and
|
|
205
|
-
* [`<Controls />`](/api-reference/components/controls) components take a `position`
|
|
206
|
-
* prop of this type.
|
|
207
|
-
*
|
|
208
|
-
* @public
|
|
209
|
-
*/
|
|
210
|
-
export type PanelPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center-left' | 'center-right';
|
|
211
|
-
export type ProOptions = {
|
|
212
|
-
account?: string;
|
|
213
|
-
hideAttribution: boolean;
|
|
214
|
-
};
|
|
215
|
-
export type UseDragEvent = D3DragEvent<HTMLDivElement, null, SubjectPosition>;
|
|
216
|
-
export declare enum SelectionMode {
|
|
217
|
-
Partial = "partial",
|
|
218
|
-
Full = "full"
|
|
219
|
-
}
|
|
220
|
-
export type SelectionRect = Rect & {
|
|
221
|
-
startX: number;
|
|
222
|
-
startY: number;
|
|
223
|
-
};
|
|
224
|
-
export type OnError = (id: string, message: string) => void;
|
|
225
|
-
export type UpdateNodePositions = (dragItems: Map<string, NodeDragItem | InternalNodeBase>, dragging?: boolean) => void;
|
|
226
|
-
export type PanBy = (delta: XYPosition) => Promise<boolean>;
|
|
227
|
-
export declare const initialConnection: NoConnection;
|
|
228
|
-
export type NoConnection = {
|
|
229
|
-
inProgress: false;
|
|
230
|
-
isValid: null;
|
|
231
|
-
from: null;
|
|
232
|
-
fromHandle: null;
|
|
233
|
-
fromPosition: null;
|
|
234
|
-
fromNode: null;
|
|
235
|
-
to: null;
|
|
236
|
-
toHandle: null;
|
|
237
|
-
toPosition: null;
|
|
238
|
-
toNode: null;
|
|
239
|
-
pointer: null;
|
|
240
|
-
};
|
|
241
|
-
export type ConnectionInProgress<NodeType extends InternalNodeBase = InternalNodeBase> = {
|
|
242
|
-
/** Indicates whether a connection is currently in progress. */
|
|
243
|
-
inProgress: true;
|
|
244
|
-
/**
|
|
245
|
-
* If an ongoing connection is above a handle or inside the connection radius, this will be `true`
|
|
246
|
-
* or `false`, otherwise `null`.
|
|
247
|
-
*/
|
|
248
|
-
isValid: boolean | null;
|
|
249
|
-
/** Returns the xy start position or `null` if no connection is in progress. */
|
|
250
|
-
from: XYPosition;
|
|
251
|
-
/** Returns the start handle or `null` if no connection is in progress. */
|
|
252
|
-
fromHandle: Handle;
|
|
253
|
-
/** Returns the side (called position) of the start handle or `null` if no connection is in progress. */
|
|
254
|
-
fromPosition: Position;
|
|
255
|
-
/** Returns the start node or `null` if no connection is in progress. */
|
|
256
|
-
fromNode: NodeType;
|
|
257
|
-
/** Returns the xy end position or `null` if no connection is in progress. */
|
|
258
|
-
to: XYPosition;
|
|
259
|
-
/** Returns the end handle or `null` if no connection is in progress. */
|
|
260
|
-
toHandle: Handle | null;
|
|
261
|
-
/** Returns the side (called position) of the end handle or `null` if no connection is in progress. */
|
|
262
|
-
toPosition: Position;
|
|
263
|
-
/** Returns the end node or `null` if no connection is in progress. */
|
|
264
|
-
toNode: NodeType | null;
|
|
265
|
-
/** Returns the pointer position or `null` if no connection is in progress. */
|
|
266
|
-
pointer: XYPosition;
|
|
267
|
-
};
|
|
268
|
-
/**
|
|
269
|
-
* The `ConnectionState` type bundles all information about an ongoing connection.
|
|
270
|
-
* It is returned by the [`useConnection`](/api-reference/hooks/use-connection) hook.
|
|
271
|
-
*
|
|
272
|
-
* @public
|
|
273
|
-
*/
|
|
274
|
-
export type ConnectionState<NodeType extends InternalNodeBase = InternalNodeBase> = ConnectionInProgress<NodeType> | NoConnection;
|
|
275
|
-
export type FinalConnectionState<NodeType extends InternalNodeBase = InternalNodeBase> = Omit<ConnectionState<NodeType>, 'inProgress'>;
|
|
276
|
-
export type UpdateConnection<NodeType extends InternalNodeBase = InternalNodeBase> = (params: ConnectionState<NodeType>) => void;
|
|
277
|
-
export type ColorModeClass = 'light' | 'dark';
|
|
278
|
-
export type ColorMode = ColorModeClass | 'system';
|
|
279
|
-
export type ConnectionLookup = Map<string, Map<string, HandleConnection>>;
|
|
280
|
-
export type OnBeforeDeleteBase<NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase> = ({ nodes, edges, }: {
|
|
281
|
-
nodes: NodeType[];
|
|
282
|
-
edges: EdgeType[];
|
|
283
|
-
}) => Promise<boolean | {
|
|
284
|
-
nodes: NodeType[];
|
|
285
|
-
edges: EdgeType[];
|
|
286
|
-
}>;
|
|
287
|
-
/**
|
|
288
|
-
* The `ZIndexMode` type is used to define how z-indexing is calculated for nodes and edges.
|
|
289
|
-
* `auto` mode will automatically manage z-indexing for selections and sub flows.
|
|
290
|
-
* `basic` mode will only manage z-indexing for selections.
|
|
291
|
-
* `manual` mode does not apply any automatic z-indexing.
|
|
292
|
-
*
|
|
293
|
-
* @public
|
|
294
|
-
*/
|
|
295
|
-
export type ZIndexMode = 'auto' | 'basic' | 'manual';
|
|
296
|
-
//# sourceMappingURL=general.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../src/types/general.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAI5C,OAAO,KAAK,EAAE,UAAU,EAAE,I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
7
|
-
id?: string | null;
|
|
8
|
-
nodeId: string;
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
position: Position;
|
|
12
|
-
type: HandleType;
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
/** User-attached metadata (e.g. data type tag). Populated by the framework wrapper. */
|
|
16
|
-
data?: unknown;
|
|
17
|
-
/** If true, edges connected to this handle render endpoints as ray-rect intersections on the node border
|
|
18
|
-
* and the handle acts as a whole-node drop fallback during connection drag. */
|
|
19
|
-
floating?: boolean;
|
|
20
|
-
};
|
|
21
|
-
export type HandleProps = {
|
|
22
|
-
/**
|
|
23
|
-
* Type of the handle.
|
|
24
|
-
* @default "source"
|
|
25
|
-
*/
|
|
26
|
-
type: HandleType;
|
|
27
|
-
/**
|
|
28
|
-
* The position of the handle relative to the node. In a horizontal flow source handles are
|
|
29
|
-
* typically `Position.Right` and in a vertical flow they are typically `Position.Top`.
|
|
30
|
-
* @default Position.Top
|
|
31
|
-
* @example Position.Top, Position.Right, Position.Bottom, Position.Left
|
|
32
|
-
*/
|
|
33
|
-
position: Position;
|
|
34
|
-
/**
|
|
35
|
-
* Should you be able to connect to/from this handle.
|
|
36
|
-
* @default true
|
|
37
|
-
*/
|
|
38
|
-
isConnectable?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Dictates whether a connection can start from this handle.
|
|
41
|
-
* @default true
|
|
42
|
-
*/
|
|
43
|
-
isConnectableStart?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Dictates whether a connection can end on this handle.
|
|
46
|
-
* @default true
|
|
47
|
-
*/
|
|
48
|
-
isConnectableEnd?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Called when a connection is dragged to this handle. You can use this callback to perform some
|
|
51
|
-
* custom validation logic based on the connection target and source, for example. Where possible,
|
|
52
|
-
* we recommend you move this logic to the `isValidConnection` prop on the main ReactFlow
|
|
53
|
-
* component for performance reasons.
|
|
54
|
-
* @remarks connection becomes an edge if isValidConnection returns true
|
|
55
|
-
*/
|
|
56
|
-
isValidConnection?: IsValidConnection;
|
|
57
|
-
/**
|
|
58
|
-
* Id of the handle.
|
|
59
|
-
* @remarks optional if there is only one handle of this type
|
|
60
|
-
*/
|
|
61
|
-
id?: string | null;
|
|
62
|
-
/** User-attached metadata. */
|
|
63
|
-
data?: unknown;
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=handles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handles.d.ts","sourceRoot":"","sources":["../../../src/types/handles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7C,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,uFAAuF;IACvF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;oFACgF;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import type { XYPosition, Position, CoordinateExtent, Handle } from '.';
|
|
2
|
-
import { Optional } from '../utils/types';
|
|
3
|
-
/**
|
|
4
|
-
* Framework independent node data structure.
|
|
5
|
-
*
|
|
6
|
-
* @inline
|
|
7
|
-
* @typeParam NodeData - type of the node data
|
|
8
|
-
* @typeParam NodeType - type of the node
|
|
9
|
-
*/
|
|
10
|
-
export type NodeBase<NodeData extends Record<string, unknown> = Record<string, unknown>, NodeType extends string | undefined = string | undefined> = {
|
|
11
|
-
/** Unique id of a node. */
|
|
12
|
-
id: string;
|
|
13
|
-
/**
|
|
14
|
-
* Position of a node on the pane.
|
|
15
|
-
* @example { x: 0, y: 0 }
|
|
16
|
-
*/
|
|
17
|
-
position: XYPosition;
|
|
18
|
-
/** Arbitrary data passed to a node. */
|
|
19
|
-
data: NodeData;
|
|
20
|
-
/**
|
|
21
|
-
* Only relevant for default, source, target nodeType. Controls source position.
|
|
22
|
-
* @example 'right', 'left', 'top', 'bottom'
|
|
23
|
-
*/
|
|
24
|
-
sourcePosition?: Position;
|
|
25
|
-
/**
|
|
26
|
-
* Only relevant for default, source, target nodeType. Controls target position.
|
|
27
|
-
* @example 'right', 'left', 'top', 'bottom'
|
|
28
|
-
*/
|
|
29
|
-
targetPosition?: Position;
|
|
30
|
-
/** Whether or not the node should be visible on the canvas. */
|
|
31
|
-
hidden?: boolean;
|
|
32
|
-
selected?: boolean;
|
|
33
|
-
/** Whether or not the node is currently being dragged. */
|
|
34
|
-
dragging?: boolean;
|
|
35
|
-
/** Whether or not the node is able to be dragged. */
|
|
36
|
-
draggable?: boolean;
|
|
37
|
-
selectable?: boolean;
|
|
38
|
-
connectable?: boolean;
|
|
39
|
-
deletable?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* A class name that can be applied to elements inside the node that allows those elements to act
|
|
42
|
-
* as drag handles, letting the user drag the node by clicking and dragging on those elements.
|
|
43
|
-
*/
|
|
44
|
-
dragHandle?: string;
|
|
45
|
-
width?: number;
|
|
46
|
-
height?: number;
|
|
47
|
-
initialWidth?: number;
|
|
48
|
-
initialHeight?: number;
|
|
49
|
-
/** Parent node id, used for creating sub-flows. */
|
|
50
|
-
parentId?: string;
|
|
51
|
-
zIndex?: number;
|
|
52
|
-
/**
|
|
53
|
-
* Boundary a node can be moved in.
|
|
54
|
-
* @example 'parent' or [[0, 0], [100, 100]]
|
|
55
|
-
*/
|
|
56
|
-
extent?: 'parent' | CoordinateExtent | null;
|
|
57
|
-
/**
|
|
58
|
-
* When `true`, the parent node will automatically expand if this node is dragged to the edge of
|
|
59
|
-
* the parent node's bounds.
|
|
60
|
-
*/
|
|
61
|
-
expandParent?: boolean;
|
|
62
|
-
ariaLabel?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Origin of the node relative to its position.
|
|
65
|
-
* @example
|
|
66
|
-
* [0.5, 0.5] // centers the node
|
|
67
|
-
* [0, 0] // top left
|
|
68
|
-
* [1, 1] // bottom right
|
|
69
|
-
*/
|
|
70
|
-
origin?: NodeOrigin;
|
|
71
|
-
handles?: NodeHandle[];
|
|
72
|
-
measured?: {
|
|
73
|
-
width?: number;
|
|
74
|
-
height?: number;
|
|
75
|
-
};
|
|
76
|
-
} & (undefined extends NodeType ? {
|
|
77
|
-
/** Type of node defined in nodeTypes */
|
|
78
|
-
type?: string | undefined;
|
|
79
|
-
} : {
|
|
80
|
-
/** Type of node defined in nodeTypes */
|
|
81
|
-
type: NodeType;
|
|
82
|
-
});
|
|
83
|
-
export type InternalNodeBase<NodeType extends NodeBase = NodeBase> = Omit<NodeType, 'measured'> & {
|
|
84
|
-
measured: {
|
|
85
|
-
width?: number;
|
|
86
|
-
height?: number;
|
|
87
|
-
};
|
|
88
|
-
internals: {
|
|
89
|
-
positionAbsolute: XYPosition;
|
|
90
|
-
z: number;
|
|
91
|
-
rootParentIndex?: number;
|
|
92
|
-
/**
|
|
93
|
-
* Holds a reference to the original node object provided by the user.
|
|
94
|
-
* Used as an optimization to avoid certain operations.
|
|
95
|
-
*/
|
|
96
|
-
userNode: NodeType;
|
|
97
|
-
handleBounds?: NodeHandleBounds;
|
|
98
|
-
bounds?: NodeBounds;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* The node data structure that gets used for the custom nodes props.
|
|
103
|
-
*
|
|
104
|
-
* @public
|
|
105
|
-
*/
|
|
106
|
-
export type NodeProps<NodeType extends NodeBase> = Pick<NodeType, 'id' | 'data' | 'width' | 'height' | 'sourcePosition' | 'targetPosition' | 'dragHandle' | 'parentId'> & Required<Pick<NodeType, 'type' | 'dragging' | 'zIndex' | 'selectable' | 'deletable' | 'selected' | 'draggable'>> & {
|
|
107
|
-
/** Whether a node is connectable or not. */
|
|
108
|
-
isConnectable: boolean;
|
|
109
|
-
/** Position absolute x value. */
|
|
110
|
-
positionAbsoluteX: number;
|
|
111
|
-
/** Position absolute y value. */
|
|
112
|
-
positionAbsoluteY: number;
|
|
113
|
-
};
|
|
114
|
-
export type NodeHandleBounds = {
|
|
115
|
-
source: Handle[] | null;
|
|
116
|
-
target: Handle[] | null;
|
|
117
|
-
};
|
|
118
|
-
export type InternalNodeUpdate = {
|
|
119
|
-
id: string;
|
|
120
|
-
nodeElement: HTMLDivElement;
|
|
121
|
-
force?: boolean;
|
|
122
|
-
};
|
|
123
|
-
export type NodeBounds = XYPosition & {
|
|
124
|
-
width: number | null;
|
|
125
|
-
height: number | null;
|
|
126
|
-
};
|
|
127
|
-
export type NodeDragItem = {
|
|
128
|
-
id: string;
|
|
129
|
-
position: XYPosition;
|
|
130
|
-
distance: XYPosition;
|
|
131
|
-
measured: {
|
|
132
|
-
width: number;
|
|
133
|
-
height: number;
|
|
134
|
-
};
|
|
135
|
-
internals: {
|
|
136
|
-
positionAbsolute: XYPosition;
|
|
137
|
-
};
|
|
138
|
-
} & Pick<InternalNodeBase, 'extent' | 'parentId' | 'origin' | 'expandParent' | 'dragging'>;
|
|
139
|
-
/**
|
|
140
|
-
* The origin of a Node determines how it is placed relative to its own coordinates.
|
|
141
|
-
* `[0, 0]` places it at the top left corner, `[0.5, 0.5]` right in the center and
|
|
142
|
-
* `[1, 1]` at the bottom right of its position.
|
|
143
|
-
*
|
|
144
|
-
* @public
|
|
145
|
-
*/
|
|
146
|
-
export type NodeOrigin = [number, number];
|
|
147
|
-
export type OnSelectionDrag = (event: MouseEvent, nodes: NodeBase[]) => void;
|
|
148
|
-
/**
|
|
149
|
-
* Type for the handles of a node
|
|
150
|
-
*
|
|
151
|
-
* @public
|
|
152
|
-
*/
|
|
153
|
-
export type NodeHandle = Omit<Optional<Handle, 'width' | 'height'>, 'nodeId'>;
|
|
154
|
-
export type Align = 'center' | 'start' | 'end';
|
|
155
|
-
export type NodeLookup<NodeType extends InternalNodeBase = InternalNodeBase> = Map<string, NodeType>;
|
|
156
|
-
export type ParentLookup<NodeType extends InternalNodeBase = InternalNodeBase> = Map<string, Map<string, NodeType>>;
|
|
157
|
-
//# sourceMappingURL=nodes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,MAAM,EAAE,MAAM,G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,EAAE,QAAQ,CAAC,CAAC;AAE9E,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;AACrG,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,gBAAgB,GAAG,gBAAgB,IAAI,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { ZoomTransform } from 'd3-zoom';
|
|
2
|
-
import { PanOnScrollMode, type CoordinateExtent, type Transform, type Viewport } from './';
|
|
3
|
-
export type OnDraggingChange = (dragging: boolean) => void;
|
|
4
|
-
export type OnTransformChange = (transform: Transform) => void;
|
|
5
|
-
export type PanZoomParams = {
|
|
6
|
-
domNode: Element;
|
|
7
|
-
minZoom: number;
|
|
8
|
-
maxZoom: number;
|
|
9
|
-
viewport: Viewport;
|
|
10
|
-
translateExtent: CoordinateExtent;
|
|
11
|
-
onDraggingChange: OnDraggingChange;
|
|
12
|
-
onPanZoomStart?: OnPanZoom;
|
|
13
|
-
onPanZoom?: OnPanZoom;
|
|
14
|
-
onPanZoomEnd?: OnPanZoom;
|
|
15
|
-
};
|
|
16
|
-
export type PanZoomTransformOptions = {
|
|
17
|
-
duration?: number;
|
|
18
|
-
ease?: (t: number) => number;
|
|
19
|
-
interpolate?: 'smooth' | 'linear';
|
|
20
|
-
};
|
|
21
|
-
export type OnPanZoom = (event: MouseEvent | TouchEvent | null, viewport: Viewport) => void;
|
|
22
|
-
export type PanZoomUpdateOptions = {
|
|
23
|
-
noWheelClassName: string;
|
|
24
|
-
noPanClassName: string;
|
|
25
|
-
onPaneContextMenu?: (event: MouseEvent) => void;
|
|
26
|
-
preventScrolling: boolean;
|
|
27
|
-
panOnScroll: boolean;
|
|
28
|
-
panOnDrag: boolean | number[];
|
|
29
|
-
panOnScrollMode: PanOnScrollMode;
|
|
30
|
-
panOnScrollSpeed: number;
|
|
31
|
-
userSelectionActive: boolean;
|
|
32
|
-
zoomOnPinch: boolean;
|
|
33
|
-
zoomOnScroll: boolean;
|
|
34
|
-
zoomOnDoubleClick: boolean;
|
|
35
|
-
zoomActivationKeyPressed: boolean;
|
|
36
|
-
lib: string;
|
|
37
|
-
onTransformChange: OnTransformChange;
|
|
38
|
-
connectionInProgress: boolean;
|
|
39
|
-
paneClickDistance: number;
|
|
40
|
-
selectionOnDrag?: boolean;
|
|
41
|
-
};
|
|
42
|
-
export type PanZoomInstance = {
|
|
43
|
-
update: (params: PanZoomUpdateOptions) => void;
|
|
44
|
-
destroy: () => void;
|
|
45
|
-
getViewport: () => Viewport;
|
|
46
|
-
setViewport: (viewport: Viewport, options?: PanZoomTransformOptions) => Promise<ZoomTransform | undefined>;
|
|
47
|
-
setViewportConstrained: (viewport: Viewport, extent: CoordinateExtent, translateExtent: CoordinateExtent) => Promise<ZoomTransform | undefined>;
|
|
48
|
-
setScaleExtent: (scaleExtent: [number, number]) => void;
|
|
49
|
-
setTranslateExtent: (translateExtent: CoordinateExtent) => void;
|
|
50
|
-
scaleTo: (scale: number, options?: PanZoomTransformOptions) => Promise<boolean>;
|
|
51
|
-
scaleBy: (factor: number, options?: PanZoomTransformOptions) => Promise<boolean>;
|
|
52
|
-
syncViewport: (viewport: Viewport) => void;
|
|
53
|
-
setClickDistance: (distance: number) => void;
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=panzoom.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"panzoom.d.ts","sourceRoot":"","sources":["../../../src/types/panzoom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAE,KA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