@xyflow/react 12.0.0-next.2 → 12.0.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/base.css +145 -22
- package/dist/esm/additional-components/Background/Background.d.ts +5 -5
- package/dist/esm/additional-components/Background/Background.d.ts.map +1 -1
- package/dist/esm/additional-components/Background/Patterns.d.ts.map +1 -1
- package/dist/esm/additional-components/Background/index.d.ts +2 -2
- package/dist/esm/additional-components/Background/index.d.ts.map +1 -1
- package/dist/esm/additional-components/Background/types.d.ts +13 -0
- package/dist/esm/additional-components/Background/types.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/ControlButton.d.ts +1 -3
- package/dist/esm/additional-components/Controls/ControlButton.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/Controls.d.ts +7 -3
- package/dist/esm/additional-components/Controls/Controls.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/Icons/FitView.d.ts +1 -2
- package/dist/esm/additional-components/Controls/Icons/FitView.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/Icons/Lock.d.ts +1 -2
- package/dist/esm/additional-components/Controls/Icons/Lock.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/Icons/Minus.d.ts +1 -2
- package/dist/esm/additional-components/Controls/Icons/Minus.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/Icons/Plus.d.ts +1 -2
- package/dist/esm/additional-components/Controls/Icons/Plus.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/Icons/Unlock.d.ts +1 -2
- package/dist/esm/additional-components/Controls/Icons/Unlock.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/index.d.ts +3 -3
- package/dist/esm/additional-components/Controls/index.d.ts.map +1 -1
- package/dist/esm/additional-components/Controls/types.d.ts +21 -2
- package/dist/esm/additional-components/Controls/types.d.ts.map +1 -1
- package/dist/esm/additional-components/MiniMap/MiniMap.d.ts +5 -5
- package/dist/esm/additional-components/MiniMap/MiniMap.d.ts.map +1 -1
- package/dist/esm/additional-components/MiniMap/MiniMapNode.d.ts +3 -3
- package/dist/esm/additional-components/MiniMap/MiniMapNode.d.ts.map +1 -1
- package/dist/esm/additional-components/MiniMap/MiniMapNodes.d.ts +3 -3
- package/dist/esm/additional-components/MiniMap/MiniMapNodes.d.ts.map +1 -1
- package/dist/esm/additional-components/MiniMap/index.d.ts +1 -1
- package/dist/esm/additional-components/MiniMap/index.d.ts.map +1 -1
- package/dist/esm/additional-components/MiniMap/types.d.ts +23 -0
- package/dist/esm/additional-components/MiniMap/types.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeResizer/{ResizeControl.d.ts → NodeResizeControl.d.ts} +4 -4
- package/dist/esm/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -0
- package/dist/esm/additional-components/NodeResizer/NodeResizer.d.ts +2 -2
- package/dist/esm/additional-components/NodeResizer/NodeResizer.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeResizer/index.d.ts +2 -2
- package/dist/esm/additional-components/NodeResizer/index.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeResizer/types.d.ts +26 -23
- package/dist/esm/additional-components/NodeResizer/types.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeToolbar/NodeToolbar.d.ts +2 -3
- package/dist/esm/additional-components/NodeToolbar/NodeToolbar.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeToolbar/NodeToolbarPortal.d.ts +1 -2
- package/dist/esm/additional-components/NodeToolbar/NodeToolbarPortal.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeToolbar/index.d.ts +2 -2
- package/dist/esm/additional-components/NodeToolbar/index.d.ts.map +1 -1
- package/dist/esm/additional-components/NodeToolbar/types.d.ts +10 -0
- package/dist/esm/additional-components/NodeToolbar/types.d.ts.map +1 -1
- package/dist/esm/additional-components/index.d.ts.map +1 -1
- package/dist/esm/components/A11yDescriptions/index.d.ts +1 -2
- package/dist/esm/components/A11yDescriptions/index.d.ts.map +1 -1
- package/dist/esm/components/Attribution/index.d.ts +2 -2
- package/dist/esm/components/Attribution/index.d.ts.map +1 -1
- package/dist/esm/components/BatchProvider/index.d.ts +17 -0
- package/dist/esm/components/BatchProvider/index.d.ts.map +1 -0
- package/dist/esm/components/BatchProvider/types.d.ts +7 -0
- package/dist/esm/components/BatchProvider/types.d.ts.map +1 -0
- package/dist/esm/components/BatchProvider/useQueue.d.ts +11 -0
- package/dist/esm/components/BatchProvider/useQueue.d.ts.map +1 -0
- package/dist/esm/components/ConnectionLine/index.d.ts +2 -2
- package/dist/esm/components/ConnectionLine/index.d.ts.map +1 -1
- package/dist/esm/components/EdgeLabelRenderer/index.d.ts +1 -2
- package/dist/esm/components/EdgeLabelRenderer/index.d.ts.map +1 -1
- package/dist/esm/components/EdgeWrapper/EdgeUpdateAnchors.d.ts +7 -7
- package/dist/esm/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +1 -1
- package/dist/esm/components/EdgeWrapper/index.d.ts +2 -7
- package/dist/esm/components/EdgeWrapper/index.d.ts.map +1 -1
- package/dist/esm/components/EdgeWrapper/utils.d.ts.map +1 -1
- package/dist/esm/components/Edges/BaseEdge.d.ts +1 -5
- package/dist/esm/components/Edges/BaseEdge.d.ts.map +1 -1
- package/dist/esm/components/Edges/BezierEdge.d.ts.map +1 -1
- package/dist/esm/components/Edges/EdgeAnchor.d.ts +2 -2
- package/dist/esm/components/Edges/EdgeAnchor.d.ts.map +1 -1
- package/dist/esm/components/Edges/EdgeText.d.ts +7 -3
- package/dist/esm/components/Edges/EdgeText.d.ts.map +1 -1
- package/dist/esm/components/Edges/SimpleBezierEdge.d.ts.map +1 -1
- package/dist/esm/components/Edges/SmoothStepEdge.d.ts.map +1 -1
- package/dist/esm/components/Edges/StepEdge.d.ts.map +1 -1
- package/dist/esm/components/Edges/StraightEdge.d.ts.map +1 -1
- package/dist/esm/components/Edges/index.d.ts.map +1 -1
- package/dist/esm/components/Handle/index.d.ts +10 -5
- package/dist/esm/components/Handle/index.d.ts.map +1 -1
- package/dist/esm/components/NodeWrapper/index.d.ts +2 -7
- package/dist/esm/components/NodeWrapper/index.d.ts.map +1 -1
- package/dist/esm/components/NodeWrapper/useNodeObserver.d.ts +15 -0
- package/dist/esm/components/NodeWrapper/useNodeObserver.d.ts.map +1 -0
- package/dist/esm/components/NodeWrapper/utils.d.ts +5 -1
- package/dist/esm/components/NodeWrapper/utils.d.ts.map +1 -1
- package/dist/esm/components/Nodes/DefaultNode.d.ts +2 -7
- package/dist/esm/components/Nodes/DefaultNode.d.ts.map +1 -1
- package/dist/esm/components/Nodes/GroupNode.d.ts +1 -5
- package/dist/esm/components/Nodes/GroupNode.d.ts.map +1 -1
- package/dist/esm/components/Nodes/InputNode.d.ts +2 -7
- package/dist/esm/components/Nodes/InputNode.d.ts.map +1 -1
- package/dist/esm/components/Nodes/OutputNode.d.ts +2 -7
- package/dist/esm/components/Nodes/OutputNode.d.ts.map +1 -1
- package/dist/esm/components/Nodes/utils.d.ts.map +1 -1
- package/dist/esm/components/NodesSelection/index.d.ts +3 -5
- package/dist/esm/components/NodesSelection/index.d.ts.map +1 -1
- package/dist/esm/components/Panel/index.d.ts +5 -3
- package/dist/esm/components/Panel/index.d.ts.map +1 -1
- package/dist/esm/components/ReactFlowProvider/index.d.ts +6 -7
- package/dist/esm/components/ReactFlowProvider/index.d.ts.map +1 -1
- package/dist/esm/components/SelectionListener/index.d.ts +2 -2
- package/dist/esm/components/SelectionListener/index.d.ts.map +1 -1
- package/dist/esm/components/StoreUpdater/index.d.ts +5 -5
- package/dist/esm/components/StoreUpdater/index.d.ts.map +1 -1
- package/dist/esm/components/UserSelection/index.d.ts +1 -2
- package/dist/esm/components/UserSelection/index.d.ts.map +1 -1
- package/dist/esm/components/ViewportPortal/index.d.ts +1 -2
- package/dist/esm/components/ViewportPortal/index.d.ts.map +1 -1
- package/dist/esm/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -1
- package/dist/esm/container/EdgeRenderer/MarkerSymbols.d.ts +1 -1
- package/dist/esm/container/EdgeRenderer/MarkerSymbols.d.ts.map +1 -1
- package/dist/esm/container/EdgeRenderer/index.d.ts +8 -6
- package/dist/esm/container/EdgeRenderer/index.d.ts.map +1 -1
- package/dist/esm/container/FlowRenderer/index.d.ts +8 -6
- package/dist/esm/container/FlowRenderer/index.d.ts.map +1 -1
- package/dist/esm/container/GraphView/index.d.ts +8 -8
- package/dist/esm/container/GraphView/index.d.ts.map +1 -1
- package/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +6 -1
- package/dist/esm/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -1
- package/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
- package/dist/esm/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
- package/dist/esm/container/NodeRenderer/index.d.ts +8 -7
- package/dist/esm/container/NodeRenderer/index.d.ts.map +1 -1
- package/dist/esm/container/NodeRenderer/useResizeObserver.d.ts +1 -1
- package/dist/esm/container/NodeRenderer/useResizeObserver.d.ts.map +1 -1
- package/dist/esm/container/Pane/index.d.ts +2 -2
- package/dist/esm/container/Pane/index.d.ts.map +1 -1
- package/dist/esm/container/ReactFlow/Wrapper.d.ts +3 -5
- package/dist/esm/container/ReactFlow/Wrapper.d.ts.map +1 -1
- package/dist/esm/container/ReactFlow/index.d.ts +4 -119
- package/dist/esm/container/ReactFlow/index.d.ts.map +1 -1
- package/dist/esm/container/ReactFlow/init-values.d.ts +4 -0
- package/dist/esm/container/ReactFlow/init-values.d.ts.map +1 -0
- package/dist/esm/container/Viewport/index.d.ts +1 -1
- package/dist/esm/container/Viewport/index.d.ts.map +1 -1
- package/dist/esm/container/ZoomPane/index.d.ts +2 -2
- package/dist/esm/container/ZoomPane/index.d.ts.map +1 -1
- package/dist/esm/contexts/NodeIdContext.d.ts.map +1 -1
- package/dist/esm/contexts/{RFStoreContext.d.ts → StoreContext.d.ts} +1 -1
- package/dist/esm/contexts/StoreContext.d.ts.map +1 -0
- package/dist/esm/hooks/useColorModeClass.d.ts +1 -1
- package/dist/esm/hooks/useColorModeClass.d.ts.map +1 -1
- package/dist/esm/hooks/useConnection.d.ts +13 -7
- package/dist/esm/hooks/useConnection.d.ts.map +1 -1
- package/dist/esm/hooks/useDrag.d.ts +3 -3
- package/dist/esm/hooks/useDrag.d.ts.map +1 -1
- package/dist/esm/hooks/useEdges.d.ts +1 -2
- package/dist/esm/hooks/useEdges.d.ts.map +1 -1
- package/dist/esm/hooks/useGlobalKeyHandler.d.ts +2 -3
- package/dist/esm/hooks/useGlobalKeyHandler.d.ts.map +1 -1
- package/dist/esm/hooks/useHandleConnections.d.ts +4 -4
- package/dist/esm/hooks/useHandleConnections.d.ts.map +1 -1
- package/dist/esm/hooks/useInternalNode.d.ts +10 -0
- package/dist/esm/hooks/useInternalNode.d.ts.map +1 -0
- package/dist/esm/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/esm/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/esm/hooks/useKeyPress.d.ts +1 -2
- package/dist/esm/hooks/useKeyPress.d.ts.map +1 -1
- package/dist/esm/hooks/useMoveSelectedNodes.d.ts +12 -0
- package/dist/esm/hooks/useMoveSelectedNodes.d.ts.map +1 -0
- package/dist/esm/hooks/useNodes.d.ts +1 -2
- package/dist/esm/hooks/useNodes.d.ts.map +1 -1
- package/dist/esm/hooks/useNodesData.d.ts +3 -4
- package/dist/esm/hooks/useNodesData.d.ts.map +1 -1
- package/dist/esm/hooks/useNodesEdgesState.d.ts +3 -3
- package/dist/esm/hooks/useNodesEdgesState.d.ts.map +1 -1
- package/dist/esm/hooks/useNodesInitialized.d.ts +1 -2
- package/dist/esm/hooks/useNodesInitialized.d.ts.map +1 -1
- package/dist/esm/hooks/useOnInitHandler.d.ts +2 -3
- package/dist/esm/hooks/useOnInitHandler.d.ts.map +1 -1
- package/dist/esm/hooks/useOnSelectionChange.d.ts +2 -3
- package/dist/esm/hooks/useOnSelectionChange.d.ts.map +1 -1
- package/dist/esm/hooks/useOnViewportChange.d.ts +1 -2
- package/dist/esm/hooks/useOnViewportChange.d.ts.map +1 -1
- package/dist/esm/hooks/useReactFlow.d.ts +1 -1
- package/dist/esm/hooks/useReactFlow.d.ts.map +1 -1
- package/dist/esm/hooks/useResizeHandler.d.ts +1 -2
- package/dist/esm/hooks/useResizeHandler.d.ts.map +1 -1
- package/dist/esm/hooks/useStore.d.ts +10 -11
- package/dist/esm/hooks/useStore.d.ts.map +1 -1
- package/dist/esm/hooks/useUpdateNodeInternals.d.ts +1 -2
- package/dist/esm/hooks/useUpdateNodeInternals.d.ts.map +1 -1
- package/dist/esm/hooks/useViewport.d.ts +1 -2
- package/dist/esm/hooks/useViewport.d.ts.map +1 -1
- package/dist/esm/hooks/useViewportHelper.d.ts.map +1 -1
- package/dist/esm/hooks/useViewportSync.d.ts +1 -1
- package/dist/esm/hooks/useViewportSync.d.ts.map +1 -1
- package/dist/esm/hooks/useVisibleEdgeIds.d.ts +1 -2
- package/dist/esm/hooks/useVisibleEdgeIds.d.ts.map +1 -1
- package/dist/esm/hooks/useVisibleNodeIds.d.ts +1 -2
- package/dist/esm/hooks/useVisibleNodeIds.d.ts.map +1 -1
- package/dist/esm/index.d.ts +22 -21
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1181 -1127
- package/dist/esm/index.mjs +1181 -1127
- package/dist/esm/store/index.d.ts +6 -4
- package/dist/esm/store/index.d.ts.map +1 -1
- package/dist/esm/store/initialState.d.ts +5 -3
- package/dist/esm/store/initialState.d.ts.map +1 -1
- package/dist/esm/styles/utils.d.ts.map +1 -1
- package/dist/esm/types/component-props.d.ts +380 -38
- package/dist/esm/types/component-props.d.ts.map +1 -1
- package/dist/esm/types/edges.d.ts +35 -25
- package/dist/esm/types/edges.d.ts.map +1 -1
- package/dist/esm/types/general.d.ts +99 -20
- package/dist/esm/types/general.d.ts.map +1 -1
- package/dist/esm/types/index.d.ts +0 -1
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/instance.d.ts +146 -44
- package/dist/esm/types/instance.d.ts.map +1 -1
- package/dist/esm/types/nodes.d.ts +23 -12
- package/dist/esm/types/nodes.d.ts.map +1 -1
- package/dist/esm/types/store.d.ts +26 -23
- package/dist/esm/types/store.d.ts.map +1 -1
- package/dist/esm/utils/changes.d.ts +25 -7
- package/dist/esm/utils/changes.d.ts.map +1 -1
- package/dist/esm/utils/general.d.ts +4 -49
- package/dist/esm/utils/general.d.ts.map +1 -1
- package/dist/esm/utils/index.d.ts.map +1 -1
- package/dist/style.css +68 -32
- package/dist/umd/additional-components/Background/Background.d.ts +5 -5
- package/dist/umd/additional-components/Background/Background.d.ts.map +1 -1
- package/dist/umd/additional-components/Background/Patterns.d.ts.map +1 -1
- package/dist/umd/additional-components/Background/index.d.ts +2 -2
- package/dist/umd/additional-components/Background/index.d.ts.map +1 -1
- package/dist/umd/additional-components/Background/types.d.ts +13 -0
- package/dist/umd/additional-components/Background/types.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/ControlButton.d.ts +1 -3
- package/dist/umd/additional-components/Controls/ControlButton.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/Controls.d.ts +7 -3
- package/dist/umd/additional-components/Controls/Controls.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/Icons/FitView.d.ts +1 -2
- package/dist/umd/additional-components/Controls/Icons/FitView.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/Icons/Lock.d.ts +1 -2
- package/dist/umd/additional-components/Controls/Icons/Lock.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/Icons/Minus.d.ts +1 -2
- package/dist/umd/additional-components/Controls/Icons/Minus.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/Icons/Plus.d.ts +1 -2
- package/dist/umd/additional-components/Controls/Icons/Plus.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/Icons/Unlock.d.ts +1 -2
- package/dist/umd/additional-components/Controls/Icons/Unlock.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/index.d.ts +3 -3
- package/dist/umd/additional-components/Controls/index.d.ts.map +1 -1
- package/dist/umd/additional-components/Controls/types.d.ts +21 -2
- package/dist/umd/additional-components/Controls/types.d.ts.map +1 -1
- package/dist/umd/additional-components/MiniMap/MiniMap.d.ts +5 -5
- package/dist/umd/additional-components/MiniMap/MiniMap.d.ts.map +1 -1
- package/dist/umd/additional-components/MiniMap/MiniMapNode.d.ts +3 -3
- package/dist/umd/additional-components/MiniMap/MiniMapNode.d.ts.map +1 -1
- package/dist/umd/additional-components/MiniMap/MiniMapNodes.d.ts +3 -3
- package/dist/umd/additional-components/MiniMap/MiniMapNodes.d.ts.map +1 -1
- package/dist/umd/additional-components/MiniMap/index.d.ts +1 -1
- package/dist/umd/additional-components/MiniMap/index.d.ts.map +1 -1
- package/dist/umd/additional-components/MiniMap/types.d.ts +23 -0
- package/dist/umd/additional-components/MiniMap/types.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeResizer/{ResizeControl.d.ts → NodeResizeControl.d.ts} +4 -4
- package/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts.map +1 -0
- package/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts +2 -2
- package/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeResizer/index.d.ts +2 -2
- package/dist/umd/additional-components/NodeResizer/index.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeResizer/types.d.ts +26 -23
- package/dist/umd/additional-components/NodeResizer/types.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts +2 -3
- package/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeToolbar/NodeToolbarPortal.d.ts +1 -2
- package/dist/umd/additional-components/NodeToolbar/NodeToolbarPortal.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeToolbar/index.d.ts +2 -2
- package/dist/umd/additional-components/NodeToolbar/index.d.ts.map +1 -1
- package/dist/umd/additional-components/NodeToolbar/types.d.ts +10 -0
- package/dist/umd/additional-components/NodeToolbar/types.d.ts.map +1 -1
- package/dist/umd/additional-components/index.d.ts.map +1 -1
- package/dist/umd/components/A11yDescriptions/index.d.ts +1 -2
- package/dist/umd/components/A11yDescriptions/index.d.ts.map +1 -1
- package/dist/umd/components/Attribution/index.d.ts +2 -2
- package/dist/umd/components/Attribution/index.d.ts.map +1 -1
- package/dist/umd/components/BatchProvider/index.d.ts +17 -0
- package/dist/umd/components/BatchProvider/index.d.ts.map +1 -0
- package/dist/umd/components/BatchProvider/types.d.ts +7 -0
- package/dist/umd/components/BatchProvider/types.d.ts.map +1 -0
- package/dist/umd/components/BatchProvider/useQueue.d.ts +11 -0
- package/dist/umd/components/BatchProvider/useQueue.d.ts.map +1 -0
- package/dist/umd/components/ConnectionLine/index.d.ts +2 -2
- package/dist/umd/components/ConnectionLine/index.d.ts.map +1 -1
- package/dist/umd/components/EdgeLabelRenderer/index.d.ts +1 -2
- package/dist/umd/components/EdgeLabelRenderer/index.d.ts.map +1 -1
- package/dist/umd/components/EdgeWrapper/EdgeUpdateAnchors.d.ts +7 -7
- package/dist/umd/components/EdgeWrapper/EdgeUpdateAnchors.d.ts.map +1 -1
- package/dist/umd/components/EdgeWrapper/index.d.ts +2 -7
- package/dist/umd/components/EdgeWrapper/index.d.ts.map +1 -1
- package/dist/umd/components/EdgeWrapper/utils.d.ts.map +1 -1
- package/dist/umd/components/Edges/BaseEdge.d.ts +1 -5
- package/dist/umd/components/Edges/BaseEdge.d.ts.map +1 -1
- package/dist/umd/components/Edges/BezierEdge.d.ts.map +1 -1
- package/dist/umd/components/Edges/EdgeAnchor.d.ts +2 -2
- package/dist/umd/components/Edges/EdgeAnchor.d.ts.map +1 -1
- package/dist/umd/components/Edges/EdgeText.d.ts +7 -3
- package/dist/umd/components/Edges/EdgeText.d.ts.map +1 -1
- package/dist/umd/components/Edges/SimpleBezierEdge.d.ts.map +1 -1
- package/dist/umd/components/Edges/SmoothStepEdge.d.ts.map +1 -1
- package/dist/umd/components/Edges/StepEdge.d.ts.map +1 -1
- package/dist/umd/components/Edges/StraightEdge.d.ts.map +1 -1
- package/dist/umd/components/Edges/index.d.ts.map +1 -1
- package/dist/umd/components/Handle/index.d.ts +10 -5
- package/dist/umd/components/Handle/index.d.ts.map +1 -1
- package/dist/umd/components/NodeWrapper/index.d.ts +2 -7
- package/dist/umd/components/NodeWrapper/index.d.ts.map +1 -1
- package/dist/umd/components/NodeWrapper/useNodeObserver.d.ts +15 -0
- package/dist/umd/components/NodeWrapper/useNodeObserver.d.ts.map +1 -0
- package/dist/umd/components/NodeWrapper/utils.d.ts +5 -1
- package/dist/umd/components/NodeWrapper/utils.d.ts.map +1 -1
- package/dist/umd/components/Nodes/DefaultNode.d.ts +2 -7
- package/dist/umd/components/Nodes/DefaultNode.d.ts.map +1 -1
- package/dist/umd/components/Nodes/GroupNode.d.ts +1 -5
- package/dist/umd/components/Nodes/GroupNode.d.ts.map +1 -1
- package/dist/umd/components/Nodes/InputNode.d.ts +2 -7
- package/dist/umd/components/Nodes/InputNode.d.ts.map +1 -1
- package/dist/umd/components/Nodes/OutputNode.d.ts +2 -7
- package/dist/umd/components/Nodes/OutputNode.d.ts.map +1 -1
- package/dist/umd/components/Nodes/utils.d.ts.map +1 -1
- package/dist/umd/components/NodesSelection/index.d.ts +3 -5
- package/dist/umd/components/NodesSelection/index.d.ts.map +1 -1
- package/dist/umd/components/Panel/index.d.ts +5 -3
- package/dist/umd/components/Panel/index.d.ts.map +1 -1
- package/dist/umd/components/ReactFlowProvider/index.d.ts +6 -7
- package/dist/umd/components/ReactFlowProvider/index.d.ts.map +1 -1
- package/dist/umd/components/SelectionListener/index.d.ts +2 -2
- package/dist/umd/components/SelectionListener/index.d.ts.map +1 -1
- package/dist/umd/components/StoreUpdater/index.d.ts +5 -5
- package/dist/umd/components/StoreUpdater/index.d.ts.map +1 -1
- package/dist/umd/components/UserSelection/index.d.ts +1 -2
- package/dist/umd/components/UserSelection/index.d.ts.map +1 -1
- package/dist/umd/components/ViewportPortal/index.d.ts +1 -2
- package/dist/umd/components/ViewportPortal/index.d.ts.map +1 -1
- package/dist/umd/container/EdgeRenderer/MarkerDefinitions.d.ts.map +1 -1
- package/dist/umd/container/EdgeRenderer/MarkerSymbols.d.ts +1 -1
- package/dist/umd/container/EdgeRenderer/MarkerSymbols.d.ts.map +1 -1
- package/dist/umd/container/EdgeRenderer/index.d.ts +8 -6
- package/dist/umd/container/EdgeRenderer/index.d.ts.map +1 -1
- package/dist/umd/container/FlowRenderer/index.d.ts +8 -6
- package/dist/umd/container/FlowRenderer/index.d.ts.map +1 -1
- package/dist/umd/container/GraphView/index.d.ts +8 -8
- package/dist/umd/container/GraphView/index.d.ts.map +1 -1
- package/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts +6 -1
- package/dist/umd/container/GraphView/useNodeOrEdgeTypesWarning.d.ts.map +1 -1
- package/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts +2 -0
- package/dist/umd/container/GraphView/useStylesLoadedWarning.d.ts.map +1 -0
- package/dist/umd/container/NodeRenderer/index.d.ts +8 -7
- package/dist/umd/container/NodeRenderer/index.d.ts.map +1 -1
- package/dist/umd/container/NodeRenderer/useResizeObserver.d.ts +1 -1
- package/dist/umd/container/NodeRenderer/useResizeObserver.d.ts.map +1 -1
- package/dist/umd/container/Pane/index.d.ts +2 -2
- package/dist/umd/container/Pane/index.d.ts.map +1 -1
- package/dist/umd/container/ReactFlow/Wrapper.d.ts +3 -5
- package/dist/umd/container/ReactFlow/Wrapper.d.ts.map +1 -1
- package/dist/umd/container/ReactFlow/index.d.ts +4 -119
- package/dist/umd/container/ReactFlow/index.d.ts.map +1 -1
- package/dist/umd/container/ReactFlow/init-values.d.ts +4 -0
- package/dist/umd/container/ReactFlow/init-values.d.ts.map +1 -0
- package/dist/umd/container/Viewport/index.d.ts +1 -1
- package/dist/umd/container/Viewport/index.d.ts.map +1 -1
- package/dist/umd/container/ZoomPane/index.d.ts +2 -2
- package/dist/umd/container/ZoomPane/index.d.ts.map +1 -1
- package/dist/umd/contexts/NodeIdContext.d.ts.map +1 -1
- package/dist/umd/contexts/{RFStoreContext.d.ts → StoreContext.d.ts} +1 -1
- package/dist/umd/contexts/StoreContext.d.ts.map +1 -0
- package/dist/umd/hooks/useColorModeClass.d.ts +1 -1
- package/dist/umd/hooks/useColorModeClass.d.ts.map +1 -1
- package/dist/umd/hooks/useConnection.d.ts +13 -7
- package/dist/umd/hooks/useConnection.d.ts.map +1 -1
- package/dist/umd/hooks/useDrag.d.ts +3 -3
- package/dist/umd/hooks/useDrag.d.ts.map +1 -1
- package/dist/umd/hooks/useEdges.d.ts +1 -2
- package/dist/umd/hooks/useEdges.d.ts.map +1 -1
- package/dist/umd/hooks/useGlobalKeyHandler.d.ts +2 -3
- package/dist/umd/hooks/useGlobalKeyHandler.d.ts.map +1 -1
- package/dist/umd/hooks/useHandleConnections.d.ts +4 -4
- package/dist/umd/hooks/useHandleConnections.d.ts.map +1 -1
- package/dist/umd/hooks/useInternalNode.d.ts +10 -0
- package/dist/umd/hooks/useInternalNode.d.ts.map +1 -0
- package/dist/umd/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/umd/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/umd/hooks/useKeyPress.d.ts +1 -2
- package/dist/umd/hooks/useKeyPress.d.ts.map +1 -1
- package/dist/umd/hooks/useMoveSelectedNodes.d.ts +12 -0
- package/dist/umd/hooks/useMoveSelectedNodes.d.ts.map +1 -0
- package/dist/umd/hooks/useNodes.d.ts +1 -2
- package/dist/umd/hooks/useNodes.d.ts.map +1 -1
- package/dist/umd/hooks/useNodesData.d.ts +3 -4
- package/dist/umd/hooks/useNodesData.d.ts.map +1 -1
- package/dist/umd/hooks/useNodesEdgesState.d.ts +3 -3
- package/dist/umd/hooks/useNodesEdgesState.d.ts.map +1 -1
- package/dist/umd/hooks/useNodesInitialized.d.ts +1 -2
- package/dist/umd/hooks/useNodesInitialized.d.ts.map +1 -1
- package/dist/umd/hooks/useOnInitHandler.d.ts +2 -3
- package/dist/umd/hooks/useOnInitHandler.d.ts.map +1 -1
- package/dist/umd/hooks/useOnSelectionChange.d.ts +2 -3
- package/dist/umd/hooks/useOnSelectionChange.d.ts.map +1 -1
- package/dist/umd/hooks/useOnViewportChange.d.ts +1 -2
- package/dist/umd/hooks/useOnViewportChange.d.ts.map +1 -1
- package/dist/umd/hooks/useReactFlow.d.ts +1 -1
- package/dist/umd/hooks/useReactFlow.d.ts.map +1 -1
- package/dist/umd/hooks/useResizeHandler.d.ts +1 -2
- package/dist/umd/hooks/useResizeHandler.d.ts.map +1 -1
- package/dist/umd/hooks/useStore.d.ts +10 -11
- package/dist/umd/hooks/useStore.d.ts.map +1 -1
- package/dist/umd/hooks/useUpdateNodeInternals.d.ts +1 -2
- package/dist/umd/hooks/useUpdateNodeInternals.d.ts.map +1 -1
- package/dist/umd/hooks/useViewport.d.ts +1 -2
- package/dist/umd/hooks/useViewport.d.ts.map +1 -1
- package/dist/umd/hooks/useViewportHelper.d.ts.map +1 -1
- package/dist/umd/hooks/useViewportSync.d.ts +1 -1
- package/dist/umd/hooks/useViewportSync.d.ts.map +1 -1
- package/dist/umd/hooks/useVisibleEdgeIds.d.ts +1 -2
- package/dist/umd/hooks/useVisibleEdgeIds.d.ts.map +1 -1
- package/dist/umd/hooks/useVisibleNodeIds.d.ts +1 -2
- package/dist/umd/hooks/useVisibleNodeIds.d.ts.map +1 -1
- package/dist/umd/index.d.ts +22 -21
- package/dist/umd/index.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/store/index.d.ts +6 -4
- package/dist/umd/store/index.d.ts.map +1 -1
- package/dist/umd/store/initialState.d.ts +5 -3
- package/dist/umd/store/initialState.d.ts.map +1 -1
- package/dist/umd/styles/utils.d.ts.map +1 -1
- package/dist/umd/types/component-props.d.ts +380 -38
- package/dist/umd/types/component-props.d.ts.map +1 -1
- package/dist/umd/types/edges.d.ts +35 -25
- package/dist/umd/types/edges.d.ts.map +1 -1
- package/dist/umd/types/general.d.ts +99 -20
- package/dist/umd/types/general.d.ts.map +1 -1
- package/dist/umd/types/index.d.ts +0 -1
- package/dist/umd/types/index.d.ts.map +1 -1
- package/dist/umd/types/instance.d.ts +146 -44
- package/dist/umd/types/instance.d.ts.map +1 -1
- package/dist/umd/types/nodes.d.ts +23 -12
- package/dist/umd/types/nodes.d.ts.map +1 -1
- package/dist/umd/types/store.d.ts +26 -23
- package/dist/umd/types/store.d.ts.map +1 -1
- package/dist/umd/utils/changes.d.ts +25 -7
- package/dist/umd/utils/changes.d.ts.map +1 -1
- package/dist/umd/utils/general.d.ts +4 -49
- package/dist/umd/utils/general.d.ts.map +1 -1
- package/dist/umd/utils/index.d.ts.map +1 -1
- package/package.json +4 -11
- package/dist/esm/additional-components/NodeResizer/ResizeControl.d.ts.map +0 -1
- package/dist/esm/additional-components/NodeResizer/utils.d.ts +0 -11
- package/dist/esm/additional-components/NodeResizer/utils.d.ts.map +0 -1
- package/dist/esm/contexts/RFStoreContext.d.ts.map +0 -1
- package/dist/esm/hooks/useUpdateNodePositions.d.ts +0 -13
- package/dist/esm/hooks/useUpdateNodePositions.d.ts.map +0 -1
- package/dist/esm/store/utils.d.ts +0 -12
- package/dist/esm/store/utils.d.ts.map +0 -1
- package/dist/esm/types/changes.d.ts +0 -50
- package/dist/esm/types/changes.d.ts.map +0 -1
- package/dist/umd/additional-components/NodeResizer/ResizeControl.d.ts.map +0 -1
- package/dist/umd/additional-components/NodeResizer/utils.d.ts +0 -11
- package/dist/umd/additional-components/NodeResizer/utils.d.ts.map +0 -1
- package/dist/umd/contexts/RFStoreContext.d.ts.map +0 -1
- package/dist/umd/hooks/useUpdateNodePositions.d.ts +0 -13
- package/dist/umd/hooks/useUpdateNodePositions.d.ts.map +0 -1
- package/dist/umd/store/utils.d.ts +0 -12
- package/dist/umd/store/utils.d.ts.map +0 -1
- package/dist/umd/types/changes.d.ts +0 -50
- package/dist/umd/types/changes.d.ts.map +0 -1
|
@@ -10,49 +10,48 @@ export type EdgeLabelOptions = {
|
|
|
10
10
|
labelBgBorderRadius?: number;
|
|
11
11
|
};
|
|
12
12
|
export type EdgeUpdatable = boolean | HandleType;
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* The Edge type is mainly used for the `edges` that get passed to the ReactFlow component
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type Edge<EdgeData extends Record<string, unknown> = Record<string, unknown>, EdgeType extends string | undefined = string | undefined> = EdgeBase<EdgeData, EdgeType> & EdgeLabelOptions & {
|
|
14
18
|
style?: CSSProperties;
|
|
15
19
|
className?: string;
|
|
16
20
|
updatable?: EdgeUpdatable;
|
|
17
21
|
focusable?: boolean;
|
|
18
22
|
};
|
|
19
|
-
type
|
|
20
|
-
type: 'smoothstep';
|
|
23
|
+
type SmoothStepEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<EdgeData, 'smoothstep'> & {
|
|
21
24
|
pathOptions?: SmoothStepPathOptions;
|
|
22
25
|
};
|
|
23
|
-
type
|
|
24
|
-
type: 'default';
|
|
26
|
+
type BezierEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<EdgeData, 'default'> & {
|
|
25
27
|
pathOptions?: BezierPathOptions;
|
|
26
28
|
};
|
|
27
|
-
type
|
|
28
|
-
type: 'step';
|
|
29
|
+
type StepEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<EdgeData, 'step'> & {
|
|
29
30
|
pathOptions?: StepPathOptions;
|
|
30
31
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export type Edge<T = any> = DefaultEdge<T> | SmoothStepEdgeType<T> | BezierEdgeType<T> | StepEdgeType<T>;
|
|
36
|
-
export type EdgeMouseHandler = (event: ReactMouseEvent, edge: Edge) => void;
|
|
37
|
-
export type EdgeWrapperProps = {
|
|
32
|
+
type StraightEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<EdgeData, 'straight'>;
|
|
33
|
+
export type BuiltInEdge = SmoothStepEdge | BezierEdge | StepEdge | StraightEdge;
|
|
34
|
+
export type EdgeMouseHandler<EdgeType extends Edge = Edge> = (event: ReactMouseEvent, edge: EdgeType) => void;
|
|
35
|
+
export type EdgeWrapperProps<EdgeType extends Edge = Edge> = {
|
|
38
36
|
id: string;
|
|
39
37
|
edgesFocusable: boolean;
|
|
40
38
|
edgesUpdatable: boolean;
|
|
41
39
|
elementsSelectable: boolean;
|
|
42
40
|
noPanClassName: string;
|
|
43
|
-
onClick?: EdgeMouseHandler
|
|
44
|
-
onDoubleClick?: EdgeMouseHandler
|
|
45
|
-
onEdgeUpdate?: OnEdgeUpdateFunc
|
|
46
|
-
onContextMenu?: EdgeMouseHandler
|
|
47
|
-
onMouseEnter?: EdgeMouseHandler
|
|
48
|
-
onMouseMove?: EdgeMouseHandler
|
|
49
|
-
onMouseLeave?: EdgeMouseHandler
|
|
41
|
+
onClick?: EdgeMouseHandler<EdgeType>;
|
|
42
|
+
onDoubleClick?: EdgeMouseHandler<EdgeType>;
|
|
43
|
+
onEdgeUpdate?: OnEdgeUpdateFunc<EdgeType>;
|
|
44
|
+
onContextMenu?: EdgeMouseHandler<EdgeType>;
|
|
45
|
+
onMouseEnter?: EdgeMouseHandler<EdgeType>;
|
|
46
|
+
onMouseMove?: EdgeMouseHandler<EdgeType>;
|
|
47
|
+
onMouseLeave?: EdgeMouseHandler<EdgeType>;
|
|
50
48
|
edgeUpdaterRadius?: number;
|
|
51
|
-
onEdgeUpdateStart?: (event: ReactMouseEvent, edge:
|
|
52
|
-
onEdgeUpdateEnd?: (event: MouseEvent | TouchEvent, edge:
|
|
49
|
+
onEdgeUpdateStart?: (event: ReactMouseEvent, edge: EdgeType, handleType: HandleType) => void;
|
|
50
|
+
onEdgeUpdateEnd?: (event: MouseEvent | TouchEvent, edge: EdgeType, handleType: HandleType) => void;
|
|
53
51
|
rfId?: string;
|
|
54
52
|
edgeTypes?: EdgeTypes;
|
|
55
53
|
onError?: OnError;
|
|
54
|
+
disableKeyboardA11y?: boolean;
|
|
56
55
|
};
|
|
57
56
|
export type DefaultEdgeOptions = DefaultEdgeOptionsBase<Edge>;
|
|
58
57
|
export type EdgeTextProps = HTMLAttributes<SVGElement> & EdgeLabelOptions & {
|
|
@@ -63,7 +62,7 @@ export type EdgeTextProps = HTMLAttributes<SVGElement> & EdgeLabelOptions & {
|
|
|
63
62
|
* Custom edge component props
|
|
64
63
|
* @public
|
|
65
64
|
*/
|
|
66
|
-
export type EdgeProps<
|
|
65
|
+
export type EdgeProps<EdgeType extends Edge = Edge> = Pick<EdgeType, 'id' | 'animated' | 'data' | 'style' | 'selected' | 'source' | 'target' | 'selectable' | 'deletable'> & EdgePosition & EdgeLabelOptions & {
|
|
67
66
|
sourceHandleId?: string | null;
|
|
68
67
|
targetHandleId?: string | null;
|
|
69
68
|
markerStart?: string;
|
|
@@ -76,13 +75,24 @@ export type EdgeProps<T = any> = Pick<Edge<T>, 'id' | 'animated' | 'data' | 'sty
|
|
|
76
75
|
* @public
|
|
77
76
|
*/
|
|
78
77
|
export type BaseEdgeProps = EdgeLabelOptions & {
|
|
78
|
+
/** Unique id of edge */
|
|
79
79
|
id?: string;
|
|
80
|
+
/** Additional padding where interacting with an edge is still possible */
|
|
80
81
|
interactionWidth?: number;
|
|
81
82
|
className?: string;
|
|
83
|
+
/** The x position of edge label */
|
|
82
84
|
labelX?: number;
|
|
85
|
+
/** The y position of edge label */
|
|
83
86
|
labelY?: number;
|
|
87
|
+
/** Marker at start of edge
|
|
88
|
+
* @example 'url(#arrow)'
|
|
89
|
+
*/
|
|
84
90
|
markerStart?: string;
|
|
91
|
+
/** Marker at end of edge
|
|
92
|
+
* @example 'url(#arrow)'
|
|
93
|
+
*/
|
|
85
94
|
markerEnd?: string;
|
|
95
|
+
/** SVG path of the edge */
|
|
86
96
|
path: string;
|
|
87
97
|
style?: CSSProperties;
|
|
88
98
|
};
|
|
@@ -127,7 +137,7 @@ export type StraightEdgeProps = Omit<EdgeComponentProps, 'sourcePosition' | 'tar
|
|
|
127
137
|
* @public
|
|
128
138
|
*/
|
|
129
139
|
export type SimpleBezierEdgeProps = EdgeComponentProps;
|
|
130
|
-
export type OnEdgeUpdateFunc<
|
|
140
|
+
export type OnEdgeUpdateFunc<EdgeType extends Edge = Edge> = (oldEdge: EdgeType, newConnection: Connection) => void;
|
|
131
141
|
export type ConnectionLineComponentProps = {
|
|
132
142
|
connectionLineStyle?: CSSProperties;
|
|
133
143
|
connectionLineType: ConnectionLineType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edges.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"edges.d.ts","sourceRoot":"","sources":["../../src/types/edges.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,IAAI,eAAe,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACpH,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACrB,sBAAsB,EACtB,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,OAAO,EACR,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEpC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,mBAAmB,CAA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AAa,EAAE,UAAU,KAAK,IAAI,CAAC;AAEpH,MAAM,MAAM,4BAA4B,GAAG;IACzC,mBAAmB,CAAC,EAAE,aAAa,CAAC;IACpC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,QAAQ,CAAC;IACvB,UAAU,EAAE,QAAQ,CAAC;IACrB,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { FitViewParamsBase, FitViewOptionsBase, ZoomInOut, ZoomTo, SetViewport, GetZoom, GetViewport, SetCenter, FitBounds, XYPosition, NodeProps } from '@xyflow/system';
|
|
2
|
-
import type { NodeChange, EdgeChange, Node, Edge, ReactFlowInstance, EdgeProps } from '.';
|
|
3
1
|
import { ComponentType } from 'react';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { FitViewParamsBase, FitViewOptionsBase, ZoomInOut, ZoomTo, SetViewport, GetZoom, GetViewport, SetCenter, FitBounds, XYPosition, OnBeforeDeleteBase, Connection, NodeChange, EdgeChange } from '@xyflow/system';
|
|
3
|
+
import type { Node, Edge, ReactFlowInstance, EdgeProps, NodeProps } from '.';
|
|
4
|
+
export type OnNodesChange<NodeType extends Node = Node> = (changes: NodeChange<NodeType>[]) => void;
|
|
5
|
+
export type OnEdgesChange<EdgeType extends Edge = Edge> = (changes: EdgeChange<EdgeType>[]) => void;
|
|
6
|
+
export type OnNodesDelete<NodeType extends Node = Node> = (nodes: NodeType[]) => void;
|
|
7
|
+
export type OnEdgesDelete<EdgeType extends Edge = Edge> = (edges: EdgeType[]) => void;
|
|
8
|
+
export type OnDelete<NodeType extends Node = Node, EdgeType extends Edge = Edge> = (params: {
|
|
9
|
+
nodes: NodeType[];
|
|
10
|
+
edges: EdgeType[];
|
|
11
11
|
}) => void;
|
|
12
|
-
export type NodeTypes = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
export type NodeTypes = Record<string, ComponentType<NodeProps & {
|
|
13
|
+
data: any;
|
|
14
|
+
type: any;
|
|
15
|
+
}>>;
|
|
16
|
+
export type EdgeTypes = Record<string, ComponentType<EdgeProps & {
|
|
17
|
+
data: any;
|
|
18
|
+
type: any;
|
|
19
|
+
}>>;
|
|
18
20
|
export type UnselectNodesAndEdgesParams = {
|
|
19
21
|
nodes?: Node[];
|
|
20
22
|
edges?: Edge[];
|
|
@@ -24,22 +26,99 @@ export type OnSelectionChangeParams = {
|
|
|
24
26
|
edges: Edge[];
|
|
25
27
|
};
|
|
26
28
|
export type OnSelectionChangeFunc = (params: OnSelectionChangeParams) => void;
|
|
27
|
-
export type FitViewParams = FitViewParamsBase<
|
|
28
|
-
export type FitViewOptions = FitViewOptionsBase<
|
|
29
|
+
export type FitViewParams<NodeType extends Node = Node> = FitViewParamsBase<NodeType>;
|
|
30
|
+
export type FitViewOptions<NodeType extends Node = Node> = FitViewOptionsBase<NodeType>;
|
|
29
31
|
export type FitView = (fitViewOptions?: FitViewOptions) => boolean;
|
|
30
32
|
export type OnInit<NodeType extends Node = Node, EdgeType extends Edge = Edge> = (reactFlowInstance: ReactFlowInstance<NodeType, EdgeType>) => void;
|
|
31
33
|
export type ViewportHelperFunctions = {
|
|
34
|
+
/**
|
|
35
|
+
* Zooms viewport in by 1.2.
|
|
36
|
+
*
|
|
37
|
+
* @param options.duration - optional duration. If set, a transition will be applied
|
|
38
|
+
*/
|
|
32
39
|
zoomIn: ZoomInOut;
|
|
40
|
+
/**
|
|
41
|
+
* Zooms viewport out by 1 / 1.2.
|
|
42
|
+
*
|
|
43
|
+
* @param options.duration - optional duration. If set, a transition will be applied
|
|
44
|
+
*/
|
|
33
45
|
zoomOut: ZoomInOut;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the current zoom level.
|
|
48
|
+
*
|
|
49
|
+
* @param zoomLevel - the zoom level to set
|
|
50
|
+
* @param options.duration - optional duration. If set, a transition will be applied
|
|
51
|
+
*/
|
|
34
52
|
zoomTo: ZoomTo;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the current zoom level.
|
|
55
|
+
*
|
|
56
|
+
* @returns current zoom as a number
|
|
57
|
+
*/
|
|
35
58
|
getZoom: GetZoom;
|
|
59
|
+
/**
|
|
60
|
+
* Sets the current viewport.
|
|
61
|
+
*
|
|
62
|
+
* @param viewport - the viewport to set
|
|
63
|
+
* @param options.duration - optional duration. If set, a transition will be applied
|
|
64
|
+
*/
|
|
36
65
|
setViewport: SetViewport;
|
|
66
|
+
/**
|
|
67
|
+
* Returns the current viewport.
|
|
68
|
+
*
|
|
69
|
+
* @returns Viewport
|
|
70
|
+
*/
|
|
37
71
|
getViewport: GetViewport;
|
|
72
|
+
/**
|
|
73
|
+
* Fits the view.
|
|
74
|
+
*
|
|
75
|
+
* @param options.padding - optional padding
|
|
76
|
+
* @param options.includeHiddenNodes - optional includeHiddenNodes
|
|
77
|
+
* @param options.minZoom - optional minZoom
|
|
78
|
+
* @param options.maxZoom - optional maxZoom
|
|
79
|
+
* @param options.duration - optional duration. If set, a transition will be applied
|
|
80
|
+
* @param options.nodes - optional nodes to fit the view to
|
|
81
|
+
*/
|
|
38
82
|
fitView: FitView;
|
|
83
|
+
/**
|
|
84
|
+
* Sets the center of the view to the given position.
|
|
85
|
+
*
|
|
86
|
+
* @param x - x position
|
|
87
|
+
* @param y - y position
|
|
88
|
+
* @param options.zoom - optional zoom
|
|
89
|
+
*/
|
|
39
90
|
setCenter: SetCenter;
|
|
91
|
+
/**
|
|
92
|
+
* Fits the view to the given bounds .
|
|
93
|
+
*
|
|
94
|
+
* @param bounds - the bounds ({ x: number, y: number, width: number, height: number }) to fit the view to
|
|
95
|
+
* @param options.padding - optional padding
|
|
96
|
+
*/
|
|
40
97
|
fitBounds: FitBounds;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
98
|
+
/**
|
|
99
|
+
* Converts a screen / client position to a flow position.
|
|
100
|
+
*
|
|
101
|
+
* @param clientPosition - the screen / client position. When you are working with events you can use event.clientX and event.clientY
|
|
102
|
+
* @param options.snapToGrid - if true, the converted position will be snapped to the grid
|
|
103
|
+
* @returns position as { x: number, y: number }
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* const flowPosition = screenToFlowPosition({ x: event.clientX, y: event.clientY })
|
|
107
|
+
*/
|
|
108
|
+
screenToFlowPosition: (clientPosition: XYPosition, options?: {
|
|
109
|
+
snapToGrid: boolean;
|
|
110
|
+
}) => XYPosition;
|
|
111
|
+
/**
|
|
112
|
+
* Converts a flow position to a screen / client position.
|
|
113
|
+
*
|
|
114
|
+
* @param flowPosition - the screen / client position. When you are working with events you can use event.clientX and event.clientY
|
|
115
|
+
* @returns position as { x: number, y: number }
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* const clientPosition = flowToScreenPosition({ x: node.position.x, y: node.position.y })
|
|
119
|
+
*/
|
|
120
|
+
flowToScreenPosition: (flowPosition: XYPosition) => XYPosition;
|
|
44
121
|
};
|
|
122
|
+
export type OnBeforeDelete<NodeType extends Node = Node, EdgeType extends Edge = Edge> = OnBeforeDeleteBase<NodeType, EdgeType>;
|
|
123
|
+
export type IsValidConnection<EdgeType extends Edge = Edge> = (edge: EdgeType | Connection) => boolean;
|
|
45
124
|
//# sourceMappingURL=general.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["
|
|
1
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B;;;;;OAKG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;;;;;;OASG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;;;OAMG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;;;;;;OASG;IACH,oBAAoB,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,KAAK,UAAU,CAAC;IACpG;;;;;;;;OAQG;IACH,oBAAoB,EAAE,CAAC,YAAY,EAAE,UAAU,KAAK,UAAU,CAAC;CAChE,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,kBAAkB,CACzG,QAAQ,EACR,QAAQ,CACT,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,GAAG,UAAU,KAAK,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Node, Edge, ViewportHelperFunctions } from '.';
|
|
1
|
+
import type { Rect, Viewport } from '@xyflow/system';
|
|
2
|
+
import type { Node, Edge, ViewportHelperFunctions, InternalNode } from '.';
|
|
3
3
|
export type ReactFlowJsonObject<NodeType extends Node = Node, EdgeType extends Edge = Edge> = {
|
|
4
4
|
nodes: NodeType[];
|
|
5
5
|
edges: EdgeType[];
|
|
@@ -12,59 +12,161 @@ export type DeleteElementsOptions = {
|
|
|
12
12
|
edges?: (Edge | {
|
|
13
13
|
id: Edge['id'];
|
|
14
14
|
})[];
|
|
15
|
-
onBeforeDelete?: OnBeforeDelete;
|
|
16
15
|
};
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
export type GeneralHelpers<NodeType extends Node = Node, EdgeType extends Edge = Edge> = {
|
|
17
|
+
/**
|
|
18
|
+
* Returns nodes.
|
|
19
|
+
*
|
|
20
|
+
* @returns nodes array
|
|
21
|
+
*/
|
|
22
|
+
getNodes: () => NodeType[];
|
|
23
|
+
/**
|
|
24
|
+
* Sets nodes.
|
|
25
|
+
*
|
|
26
|
+
* @param payload - the nodes to set or a function that receives the current nodes and returns the new nodes
|
|
27
|
+
*/
|
|
28
|
+
setNodes: (payload: NodeType[] | ((nodes: NodeType[]) => NodeType[])) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Adds nodes.
|
|
31
|
+
*
|
|
32
|
+
* @param payload - the nodes to add
|
|
33
|
+
*/
|
|
34
|
+
addNodes: (payload: NodeType[] | NodeType) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Returns a node by id.
|
|
37
|
+
*
|
|
38
|
+
* @param id - the node id
|
|
39
|
+
* @returns the node or undefined if no node was found
|
|
40
|
+
*/
|
|
41
|
+
getNode: (id: string) => NodeType | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Returns an internal node by id.
|
|
44
|
+
*
|
|
45
|
+
* @param id - the node id
|
|
46
|
+
* @returns the internal node or undefined if no node was found
|
|
47
|
+
*/
|
|
48
|
+
getInternalNode: (id: string) => InternalNode<NodeType> | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Returns edges.
|
|
51
|
+
*
|
|
52
|
+
* @returns edges array
|
|
53
|
+
*/
|
|
54
|
+
getEdges: () => EdgeType[];
|
|
55
|
+
/**
|
|
56
|
+
* Sets edges.
|
|
57
|
+
*
|
|
58
|
+
* @param payload - the edges to set or a function that receives the current edges and returns the new edges
|
|
59
|
+
*/
|
|
60
|
+
setEdges: (payload: EdgeType[] | ((edges: EdgeType[]) => EdgeType[])) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Adds edges.
|
|
63
|
+
*
|
|
64
|
+
* @param payload - the edges to add
|
|
65
|
+
*/
|
|
66
|
+
addEdges: (payload: EdgeType[] | EdgeType) => void;
|
|
67
|
+
/**
|
|
68
|
+
* Returns an edge by id.
|
|
69
|
+
*
|
|
70
|
+
* @param id - the edge id
|
|
71
|
+
* @returns the edge or undefined if no edge was found
|
|
72
|
+
*/
|
|
73
|
+
getEdge: (id: string) => EdgeType | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the nodes, edges and the viewport as a JSON object.
|
|
76
|
+
*
|
|
77
|
+
* @returns the nodes, edges and the viewport as a JSON object
|
|
78
|
+
*/
|
|
79
|
+
toObject: () => ReactFlowJsonObject<NodeType, EdgeType>;
|
|
80
|
+
/**
|
|
81
|
+
* Deletes nodes and edges.
|
|
82
|
+
*
|
|
83
|
+
* @param params.nodes - optional nodes array to delete
|
|
84
|
+
* @param params.edges - optional edges array to delete
|
|
85
|
+
*
|
|
86
|
+
* @returns a promise that resolves with the deleted nodes and edges
|
|
87
|
+
*/
|
|
88
|
+
deleteElements: (params: DeleteElementsOptions) => Promise<{
|
|
28
89
|
deletedNodes: Node[];
|
|
29
90
|
deletedEdges: Edge[];
|
|
30
91
|
}>;
|
|
31
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Returns all nodes that intersect with the given node or rect.
|
|
94
|
+
*
|
|
95
|
+
* @param node - the node or rect to check for intersections
|
|
96
|
+
* @param partially - if true, the node is considered to be intersecting if it partially overlaps with the passed node or rect
|
|
97
|
+
* @param nodes - optional nodes array to check for intersections
|
|
98
|
+
*
|
|
99
|
+
* @returns an array of intersecting nodes
|
|
100
|
+
*/
|
|
101
|
+
getIntersectingNodes: (node: NodeType | {
|
|
32
102
|
id: Node['id'];
|
|
33
103
|
} | Rect, partially?: boolean, nodes?: NodeType[]) => NodeType[];
|
|
34
|
-
|
|
104
|
+
/**
|
|
105
|
+
* Checks if the given node or rect intersects with the passed rect.
|
|
106
|
+
*
|
|
107
|
+
* @param node - the node or rect to check for intersections
|
|
108
|
+
* @param area - the rect to check for intersections
|
|
109
|
+
* @param partially - if true, the node is considered to be intersecting if it partially overlaps with the passed react
|
|
110
|
+
*
|
|
111
|
+
* @returns true if the node or rect intersects with the given area
|
|
112
|
+
*/
|
|
113
|
+
isNodeIntersecting: (node: NodeType | {
|
|
35
114
|
id: Node['id'];
|
|
36
115
|
} | Rect, area: Rect, partially?: boolean) => boolean;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Updates a node.
|
|
118
|
+
*
|
|
119
|
+
* @param id - id of the node to update
|
|
120
|
+
* @param nodeUpdate - the node update as an object or a function that receives the current node and returns the node update
|
|
121
|
+
* @param options.replace - if true, the node is replaced with the node update, otherwise the changes get merged
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* updateNode('node-1', (node) => ({ position: { x: node.position.x + 10, y: node.position.y } }));
|
|
125
|
+
*/
|
|
126
|
+
updateNode: (id: string, nodeUpdate: Partial<NodeType> | ((node: NodeType) => Partial<NodeType>), options?: {
|
|
127
|
+
replace: boolean;
|
|
128
|
+
}) => void;
|
|
129
|
+
/**
|
|
130
|
+
* Updates the data attribute of a node.
|
|
131
|
+
*
|
|
132
|
+
* @param id - id of the node to update
|
|
133
|
+
* @param dataUpdate - the data update as an object or a function that receives the current data and returns the data update
|
|
134
|
+
* @param options.replace - if true, the data is replaced with the data update, otherwise the changes get merged
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* updateNodeData('node-1', { label: 'A new label' });
|
|
138
|
+
*/
|
|
139
|
+
updateNodeData: (id: string, dataUpdate: Partial<NodeType['data']> | ((node: NodeType) => Partial<NodeType['data']>), options?: {
|
|
47
140
|
replace: boolean;
|
|
48
141
|
}) => void;
|
|
49
|
-
|
|
142
|
+
/**
|
|
143
|
+
* Updates an edge.
|
|
144
|
+
*
|
|
145
|
+
* @param id - id of the edge to update
|
|
146
|
+
* @param edgeUpdate - the edge update as an object or a function that receives the current edge and returns the edge update
|
|
147
|
+
* @param options.replace - if true, the edge is replaced with the edge update, otherwise the changes get merged
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* updateEdge('edge-1', (edge) => ({ label: 'A new label' }));
|
|
151
|
+
*/
|
|
152
|
+
updateEdge: (id: string, edgeUpdate: Partial<EdgeType> | ((edge: EdgeType) => Partial<EdgeType>), options?: {
|
|
50
153
|
replace: boolean;
|
|
51
154
|
}) => void;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
updateNodeData: Instance.UpdateNodeData<NodeType>;
|
|
155
|
+
/**
|
|
156
|
+
* Updates the data attribute of a edge.
|
|
157
|
+
*
|
|
158
|
+
* @param id - id of the edge to update
|
|
159
|
+
* @param dataUpdate - the data update as an object or a function that receives the current data and returns the data update
|
|
160
|
+
* @param options.replace - if true, the data is replaced with the data update, otherwise the changes get merged
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* updateEdgeData('edge-1', { label: 'A new label' });
|
|
164
|
+
*/
|
|
165
|
+
updateEdgeData: (id: string, dataUpdate: Partial<EdgeType['data']> | ((edge: EdgeType) => Partial<EdgeType['data']>), options?: {
|
|
166
|
+
replace: boolean;
|
|
167
|
+
}) => void;
|
|
168
|
+
};
|
|
169
|
+
export type ReactFlowInstance<NodeType extends Node = Node, EdgeType extends Edge = Edge> = GeneralHelpers<NodeType, EdgeType> & Omit<ViewportHelperFunctions, 'initialized'> & {
|
|
68
170
|
viewportInitialized: boolean;
|
|
69
|
-
}
|
|
171
|
+
};
|
|
70
172
|
//# sourceMappingURL=instance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../src/types/instance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AAE3E,MAAM,MAAM,mBAAmB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI;IAC5F,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,CAAC,EAAE,CAAC,IAAI,GAAG;QAAE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;KAAE,CAAC,EAAE,CAAC;IACtC,KAAK,CAAC,EAAE,CAAC,IAAI,GAAG;QAAE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;KAAE,CAAC,EAAE,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ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c,EAAE,CACd,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EACvF,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAC3B,IAAI,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,cAAc,CACxG,QAAQ,EACR,QAAQ,CACT,GACC,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC,GAAG;IAC7C,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC"}
|
|
@@ -1,31 +1,38 @@
|
|
|
1
1
|
import type { CSSProperties, MouseEvent as ReactMouseEvent } from 'react';
|
|
2
|
-
import type { CoordinateExtent, NodeBase, NodeOrigin, OnError } from '@xyflow/system';
|
|
2
|
+
import type { CoordinateExtent, NodeBase, NodeOrigin, OnError, NodeProps as NodePropsBase, InternalNodeBase } from '@xyflow/system';
|
|
3
3
|
import { NodeTypes } from './general';
|
|
4
4
|
/**
|
|
5
5
|
* The node data structure that gets used for the nodes prop.
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
export type Node<NodeData =
|
|
8
|
+
export type Node<NodeData extends Record<string, unknown> = Record<string, unknown>, NodeType extends string = string> = NodeBase<NodeData, NodeType> & {
|
|
9
9
|
style?: CSSProperties;
|
|
10
10
|
className?: string;
|
|
11
11
|
resizing?: boolean;
|
|
12
12
|
focusable?: boolean;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
/**
|
|
15
|
+
* The node data structure that gets used for internal nodes.
|
|
16
|
+
* There are some data structures added under node.internal
|
|
17
|
+
* that are needed for tracking some properties
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export type InternalNode<NodeType extends Node = Node> = InternalNodeBase<NodeType>;
|
|
21
|
+
export type NodeMouseHandler<NodeType extends Node = Node> = (event: ReactMouseEvent, node: NodeType) => void;
|
|
22
|
+
export type SelectionDragHandler<NodeType extends Node = Node> = (event: ReactMouseEvent, nodes: NodeType[]) => void;
|
|
23
|
+
export type OnNodeDrag<NodeType extends Node = Node> = (event: ReactMouseEvent, node: NodeType, nodes: NodeType[]) => void;
|
|
24
|
+
export type NodeWrapperProps<NodeType extends Node> = {
|
|
18
25
|
id: string;
|
|
19
26
|
nodesConnectable: boolean;
|
|
20
27
|
elementsSelectable: boolean;
|
|
21
28
|
nodesDraggable: boolean;
|
|
22
29
|
nodesFocusable: boolean;
|
|
23
|
-
onClick?: NodeMouseHandler
|
|
24
|
-
onDoubleClick?: NodeMouseHandler
|
|
25
|
-
onMouseEnter?: NodeMouseHandler
|
|
26
|
-
onMouseMove?: NodeMouseHandler
|
|
27
|
-
onMouseLeave?: NodeMouseHandler
|
|
28
|
-
onContextMenu?: NodeMouseHandler
|
|
30
|
+
onClick?: NodeMouseHandler<NodeType>;
|
|
31
|
+
onDoubleClick?: NodeMouseHandler<NodeType>;
|
|
32
|
+
onMouseEnter?: NodeMouseHandler<NodeType>;
|
|
33
|
+
onMouseMove?: NodeMouseHandler<NodeType>;
|
|
34
|
+
onMouseLeave?: NodeMouseHandler<NodeType>;
|
|
35
|
+
onContextMenu?: NodeMouseHandler<NodeType>;
|
|
29
36
|
resizeObserver: ResizeObserver | null;
|
|
30
37
|
noDragClassName: string;
|
|
31
38
|
noPanClassName: string;
|
|
@@ -36,4 +43,8 @@ export type NodeWrapperProps = {
|
|
|
36
43
|
nodeOrigin: NodeOrigin;
|
|
37
44
|
onError?: OnError;
|
|
38
45
|
};
|
|
46
|
+
export type BuiltInNode = Node<{
|
|
47
|
+
label: string;
|
|
48
|
+
}, 'input' | 'output' | 'default'>;
|
|
49
|
+
export type NodeProps<NodeType extends Node = Node> = NodePropsBase<NodeType>;
|
|
39
50
|
//# sourceMappingURL=nodes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../src/types/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,KAAK,EACV,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,OAAO,EACP,SAAS,IAAI,aAAa,EAC1B,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;;GAGG;AACH,MAAM,MAAM,IAAI,CACd,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClE,QAAQ,SAAS,MAAM,GAAG,MAAM,IAC9B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG;IACjC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AAEpF,MAAM,MAAM,gBAAgB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;AAC9G,MAAM,MAAM,oBAAoB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,K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