@angflow/system 0.0.94 → 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,64 +0,0 @@
|
|
|
1
|
-
import type { XYPosition, Dimensions, NodeBase, EdgeBase } from '.';
|
|
2
|
-
export type NodeDimensionChange = {
|
|
3
|
-
id: string;
|
|
4
|
-
type: 'dimensions';
|
|
5
|
-
dimensions?: Dimensions;
|
|
6
|
-
resizing?: boolean;
|
|
7
|
-
setAttributes?: boolean | 'width' | 'height';
|
|
8
|
-
};
|
|
9
|
-
export type NodePositionChange = {
|
|
10
|
-
id: string;
|
|
11
|
-
type: 'position';
|
|
12
|
-
position?: XYPosition;
|
|
13
|
-
positionAbsolute?: XYPosition;
|
|
14
|
-
dragging?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export type NodeSelectionChange = {
|
|
17
|
-
id: string;
|
|
18
|
-
type: 'select';
|
|
19
|
-
selected: boolean;
|
|
20
|
-
};
|
|
21
|
-
export type NodeRemoveChange = {
|
|
22
|
-
id: string;
|
|
23
|
-
type: 'remove';
|
|
24
|
-
};
|
|
25
|
-
export type NodeAddChange<NodeType extends NodeBase = NodeBase> = {
|
|
26
|
-
item: NodeType;
|
|
27
|
-
type: 'add';
|
|
28
|
-
index?: number;
|
|
29
|
-
};
|
|
30
|
-
export type NodeReplaceChange<NodeType extends NodeBase = NodeBase> = {
|
|
31
|
-
id: string;
|
|
32
|
-
item: NodeType;
|
|
33
|
-
type: 'replace';
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* The [`onNodesChange`](/api-reference/react-flow#on-nodes-change) callback takes
|
|
37
|
-
*an array of `NodeChange` objects that you should use to update your flow's state.
|
|
38
|
-
*The `NodeChange` type is a union of six different object types that represent that
|
|
39
|
-
*various ways an node can change in a flow.
|
|
40
|
-
* @public
|
|
41
|
-
*/
|
|
42
|
-
export type NodeChange<NodeType extends NodeBase = NodeBase> = NodeDimensionChange | NodePositionChange | NodeSelectionChange | NodeRemoveChange | NodeAddChange<NodeType> | NodeReplaceChange<NodeType>;
|
|
43
|
-
export type EdgeSelectionChange = NodeSelectionChange;
|
|
44
|
-
export type EdgeRemoveChange = NodeRemoveChange;
|
|
45
|
-
export type EdgeAddChange<EdgeType extends EdgeBase = EdgeBase> = {
|
|
46
|
-
item: EdgeType;
|
|
47
|
-
type: 'add';
|
|
48
|
-
index?: number;
|
|
49
|
-
};
|
|
50
|
-
export type EdgeReplaceChange<EdgeType extends EdgeBase = EdgeBase> = {
|
|
51
|
-
id: string;
|
|
52
|
-
item: EdgeType;
|
|
53
|
-
type: 'replace';
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* The [`onEdgesChange`](/api-reference/react-flow#on-edges-change) callback takes
|
|
57
|
-
*an array of `EdgeChange` objects that you should use to update your flow's state.
|
|
58
|
-
*The `EdgeChange` type is a union of four different object types that represent that
|
|
59
|
-
*various ways an edge can change in a flow.
|
|
60
|
-
*
|
|
61
|
-
* @public
|
|
62
|
-
*/
|
|
63
|
-
export type EdgeChange<EdgeType extends EdgeBase = EdgeBase> = EdgeSelectionChange | EdgeRemoveChange | EdgeAddChange<EdgeType> | EdgeReplaceChange<EdgeType>;
|
|
64
|
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AC;IACf,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IACvD,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,gBAAgB,GAChB,aAAa,CAAC,QAAQ,CAAC,GACvB,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAEhC,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAChD,MAAM,MAAM,aAAa,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IAAI;IAChE,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IAAI;IACpE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IACvD,mBAAmB,GACnB,gBAAgB,GAChB,aAAa,CAAC,QAAQ,CAAC,GACvB,iBAAiB,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { Position } from './utils';
|
|
2
|
-
export type EdgeBase<EdgeData extends Record<string, unknown> = Record<string, unknown>, EdgeType extends string | undefined = string | undefined> = {
|
|
3
|
-
/** Unique id of an edge. */
|
|
4
|
-
id: string;
|
|
5
|
-
/** Type of edge defined in `edgeTypes`. */
|
|
6
|
-
type?: EdgeType;
|
|
7
|
-
/** Id of source node. */
|
|
8
|
-
source: string;
|
|
9
|
-
/** Id of target node. */
|
|
10
|
-
target: string;
|
|
11
|
-
/** Id of source handle, only needed if there are multiple handles per node. */
|
|
12
|
-
sourceHandle?: string | null;
|
|
13
|
-
/** Id of target handle, only needed if there are multiple handles per node. */
|
|
14
|
-
targetHandle?: string | null;
|
|
15
|
-
animated?: boolean;
|
|
16
|
-
hidden?: boolean;
|
|
17
|
-
deletable?: boolean;
|
|
18
|
-
selectable?: boolean;
|
|
19
|
-
/** Arbitrary data passed to an edge. */
|
|
20
|
-
data?: EdgeData;
|
|
21
|
-
selected?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Set the marker on the beginning of an edge.
|
|
24
|
-
* @example 'arrow', 'arrowclosed' or custom marker
|
|
25
|
-
*/
|
|
26
|
-
markerStart?: EdgeMarkerType;
|
|
27
|
-
/**
|
|
28
|
-
* Set the marker on the end of an edge.
|
|
29
|
-
* @example 'arrow', 'arrowclosed' or custom marker
|
|
30
|
-
*/
|
|
31
|
-
markerEnd?: EdgeMarkerType;
|
|
32
|
-
zIndex?: number;
|
|
33
|
-
ariaLabel?: string;
|
|
34
|
-
/**
|
|
35
|
-
* ReactFlow renders an invisible path around each edge to make them easier to click or tap on.
|
|
36
|
-
* This property sets the width of that invisible path.
|
|
37
|
-
*/
|
|
38
|
-
interactionWidth?: number;
|
|
39
|
-
};
|
|
40
|
-
export type SmoothStepPathOptions = {
|
|
41
|
-
offset?: number;
|
|
42
|
-
borderRadius?: number;
|
|
43
|
-
stepPosition?: number;
|
|
44
|
-
};
|
|
45
|
-
export type StepPathOptions = {
|
|
46
|
-
offset?: number;
|
|
47
|
-
};
|
|
48
|
-
export type BezierPathOptions = {
|
|
49
|
-
curvature?: number;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* @inline
|
|
53
|
-
*/
|
|
54
|
-
export type DefaultEdgeOptionsBase<EdgeType extends EdgeBase> = Omit<EdgeType, 'id' | 'source' | 'target' | 'sourceHandle' | 'targetHandle' | 'selected'>;
|
|
55
|
-
/**
|
|
56
|
-
* If you set the `connectionLineType` prop on your [`<ReactFlow />`](/api-reference/react-flow#connection-connectionLineType)
|
|
57
|
-
*component, it will dictate the style of connection line rendered when creating
|
|
58
|
-
*new edges.
|
|
59
|
-
*
|
|
60
|
-
* @public
|
|
61
|
-
*
|
|
62
|
-
* @remarks If you choose to render a custom connection line component, this value will be
|
|
63
|
-
*passed to your component as part of its [`ConnectionLineComponentProps`](/api-reference/types/connection-line-component-props).
|
|
64
|
-
*/
|
|
65
|
-
export declare enum ConnectionLineType {
|
|
66
|
-
Bezier = "default",
|
|
67
|
-
Straight = "straight",
|
|
68
|
-
Step = "step",
|
|
69
|
-
SmoothStep = "smoothstep",
|
|
70
|
-
SimpleBezier = "simplebezier"
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Edges can optionally have markers at the start and end of an edge. The `EdgeMarker`
|
|
74
|
-
*type is used to configure those markers! Check the docs for [`MarkerType`](/api-reference/types/marker-type)
|
|
75
|
-
*for details on what types of edge marker are available.
|
|
76
|
-
*
|
|
77
|
-
* @public
|
|
78
|
-
*/
|
|
79
|
-
export type EdgeMarker = {
|
|
80
|
-
type: MarkerType | `${MarkerType}`;
|
|
81
|
-
color?: string | null;
|
|
82
|
-
width?: number;
|
|
83
|
-
height?: number;
|
|
84
|
-
markerUnits?: string;
|
|
85
|
-
orient?: string;
|
|
86
|
-
strokeWidth?: number;
|
|
87
|
-
};
|
|
88
|
-
export type EdgeMarkerType = string | EdgeMarker;
|
|
89
|
-
/**
|
|
90
|
-
* Edges may optionally have a marker on either end. The MarkerType type enumerates
|
|
91
|
-
* the options available to you when configuring a given marker.
|
|
92
|
-
*
|
|
93
|
-
* @public
|
|
94
|
-
*/
|
|
95
|
-
export declare enum MarkerType {
|
|
96
|
-
Arrow = "arrow",
|
|
97
|
-
ArrowClosed = "arrowclosed"
|
|
98
|
-
}
|
|
99
|
-
export type MarkerProps = EdgeMarker & {
|
|
100
|
-
id: string;
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* @inline
|
|
104
|
-
*/
|
|
105
|
-
export type EdgePosition = {
|
|
106
|
-
sourceX: number;
|
|
107
|
-
sourceY: number;
|
|
108
|
-
targetX: number;
|
|
109
|
-
targetY: number;
|
|
110
|
-
sourcePosition: Position;
|
|
111
|
-
targetPosition: Position;
|
|
112
|
-
};
|
|
113
|
-
export type EdgeLookup<EdgeType extends EdgeBase = EdgeBase> = Map<string, EdgeType>;
|
|
114
|
-
export type EdgeToolbarBaseProps = {
|
|
115
|
-
/**
|
|
116
|
-
* The `x` position of the edge toolbar.
|
|
117
|
-
*/
|
|
118
|
-
x: number;
|
|
119
|
-
/**
|
|
120
|
-
* The `y` position of the edge toolbar.
|
|
121
|
-
*/
|
|
122
|
-
y: number;
|
|
123
|
-
/** If `true`, edge toolbar is visible even if edge is not selected.
|
|
124
|
-
* @default false
|
|
125
|
-
*/
|
|
126
|
-
isVisible?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Align the vertical toolbar position relative to the passed x position.
|
|
129
|
-
* @default "center"
|
|
130
|
-
* @example 'left', 'center', 'right'
|
|
131
|
-
*/
|
|
132
|
-
alignX?: 'left' | 'center' | 'right';
|
|
133
|
-
/**
|
|
134
|
-
* Align the horizontal toolbar position relative to the passed y position.
|
|
135
|
-
* @default "center"
|
|
136
|
-
* @example 'top', 'center', 'bottom'
|
|
137
|
-
*/
|
|
138
|
-
alignY?: 'top' | 'center' | 'bottom';
|
|
139
|
-
};
|
|
140
|
-
//# sourceMappingURL=edges.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edges.d.ts","sourceRoot":"","sources":["../../../src/types/edges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,MAAM,QAAQ,CAClB,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClE,QAAQ,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,S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;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;CACtC,CAAC"}
|
|
@@ -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,IAAI,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAE9B,MAAM,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,UAAU,KAAK,UAAU,C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Ae,CAAC,QAAQ,CAAC,KAC9B,IAAI,CAAC;AAEV,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,CAAC;AAC9C,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,QAAQ,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAE1E,MAAM,MAAM,kBAAkB,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,EAAE,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IAAI,CAAC,EAC5G,KAAK,EACL,KAAK,GACN,EAAE;IACD,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB,KAAK,OAAO,CAAC,OAAO,GAAG;IAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;IAAC,KAAK,EAAE,QAAQ,EAAE,CAAA;CAAE,CAAC,CAAC;AAElE;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { Position, IsValidConnection } from '.';
|
|
2
|
-
/**
|
|
3
|
-
* @inline
|
|
4
|
-
*/
|
|
5
|
-
export type HandleType = 'source' | 'target';
|
|
6
|
-
export type Handle = {
|
|
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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