@xyflow/react 12.0.0-next.13 → 12.0.0-next.14
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/base.css +2 -0
- package/dist/esm/components/NodeWrapper/index.d.ts.map +1 -1
- package/dist/esm/hooks/useUpdateNodeInternals.d.ts.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +14 -14
- package/dist/esm/index.mjs +14 -14
- package/dist/esm/types/nodes.d.ts +6 -0
- package/dist/esm/types/nodes.d.ts.map +1 -1
- package/dist/esm/types/store.d.ts +2 -2
- package/dist/esm/types/store.d.ts.map +1 -1
- package/dist/style.css +2 -0
- package/dist/umd/components/NodeWrapper/index.d.ts.map +1 -1
- package/dist/umd/hooks/useUpdateNodeInternals.d.ts.map +1 -1
- package/dist/umd/index.d.ts +1 -1
- package/dist/umd/index.d.ts.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/types/nodes.d.ts +6 -0
- package/dist/umd/types/nodes.d.ts.map +1 -1
- package/dist/umd/types/store.d.ts +2 -2
- package/dist/umd/types/store.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/base.css
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* this will be exported as base.css and can be used for a basic styling */
|
|
2
2
|
/* these are the necessary styles for React/Svelte Flow, they get used by base.css and style.css */
|
|
3
3
|
.react-flow {
|
|
4
|
+
direction: ltr;
|
|
5
|
+
|
|
4
6
|
--xy-edge-stroke-default: #b1b1b7;
|
|
5
7
|
--xy-edge-stroke-width-default: 1;
|
|
6
8
|
--xy-edge-stroke-selected-default: #555;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/NodeWrapper/index.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAgB,IAAI,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExE,wBAAgB,WAAW,CAAC,QAAQ,SAAS,IAAI,EAAE,EACjD,EAAE,EACF,OAAO,EACP,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,IAAI,EACJ,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,GACR,EAAE,gBAAgB,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/NodeWrapper/index.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAgB,IAAI,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExE,wBAAgB,WAAW,CAAC,QAAQ,SAAS,IAAI,EAAE,EACjD,EAAE,EACF,OAAO,EACP,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,IAAI,EACJ,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,GACR,EAAE,gBAAgB,CAAC,QAAQ,CAAC,kDA2N5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUpdateNodeInternals.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useUpdateNodeInternals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"useUpdateNodeInternals.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useUpdateNodeInternals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAsB,MAAM,gBAAgB,CAAC;AAI9E;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,mBAAmB,CAkB5D"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -31,6 +31,6 @@ export { applyNodeChanges, applyEdgeChanges } from './utils/changes';
|
|
|
31
31
|
export { isNode, isEdge } from './utils/general';
|
|
32
32
|
export * from './additional-components';
|
|
33
33
|
export * from './types';
|
|
34
|
-
export { type SmoothStepPathOptions, type BezierPathOptions, ConnectionLineType, type EdgeMarker, type EdgeMarkerType, MarkerType, type OnMove, type OnMoveStart, type OnMoveEnd, type Connection, type ConnectionStatus, ConnectionMode, type OnConnectStartParams, type OnConnectStart, type OnConnect, type OnConnectEnd, type Viewport, type SnapGrid, PanOnScrollMode, type ViewportHelperFunctionOptions, type SetCenterOptions, type FitBoundsOptions, type PanelPosition, type ProOptions, SelectionMode, type SelectionRect, type OnError, type NodeOrigin, type OnSelectionDrag, Position, type XYPosition, type XYZPosition, type Dimensions, type Rect, type Box, type Transform, type CoordinateExtent, type ColorMode, type ColorModeClass, type HandleType, type ShouldResize, type OnResizeStart, type OnResize, type OnResizeEnd, type ControlPosition, type ControlLinePosition, type ResizeControlVariant, } from '@xyflow/system';
|
|
34
|
+
export { type SmoothStepPathOptions, type BezierPathOptions, ConnectionLineType, type EdgeMarker, type EdgeMarkerType, MarkerType, type OnMove, type OnMoveStart, type OnMoveEnd, type Connection, type ConnectionStatus, ConnectionMode, type OnConnectStartParams, type OnConnectStart, type OnConnect, type OnConnectEnd, type Viewport, type SnapGrid, PanOnScrollMode, type ViewportHelperFunctionOptions, type SetCenterOptions, type FitBoundsOptions, type PanelPosition, type ProOptions, SelectionMode, type SelectionRect, type OnError, type NodeOrigin, type OnSelectionDrag, Position, type XYPosition, type XYZPosition, type Dimensions, type Rect, type Box, type Transform, type CoordinateExtent, type ColorMode, type ColorModeClass, type HandleType, type ShouldResize, type OnResizeStart, type OnResize, type OnResizeEnd, type ControlPosition, type ControlLinePosition, type ResizeControlVariant, type NodeChange, type NodeDimensionChange, type NodePositionChange, type NodeSelectionChange, type NodeRemoveChange, type NodeAddChange, type NodeReplaceChange, type EdgeChange, type EdgeSelectionChange, type EdgeRemoveChange, type EdgeAddChange, type EdgeReplaceChange, } from '@xyflow/system';
|
|
35
35
|
export { type GetBezierPathParams, getBezierEdgeCenter, getBezierPath, getEdgeCenter, type GetSmoothStepPathParams, getSmoothStepPath, type GetStraightPathParams, getStraightPath, getViewportForBounds, getNodesBounds, getIncomers, getOutgoers, addEdge, updateEdge, getConnectedEdges, } from '@xyflow/system';
|
|
36
36
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/react/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD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nB,aAAa,EACb,aAAa,EACb,KAAK,uBAAuB,EAC5B,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,WAAW,EACX,OAAO,EACP,UAAU,EACV,iBAAiB,GAClB,MAAM,gBAAgB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import cc from 'classcat';
|
|
4
|
-
import { errorMessages, infiniteExtent, isInputDOMNode, fitView, getViewportForBounds, pointToRendererPoint, rendererPointToPoint, isNodeBase, isEdgeBase, getElementsToRemove, nodeToRect, isRectObject, getOverlappingArea, getDimensions, XYPanZoom, PanOnScrollMode, SelectionMode, getEventPosition, getNodesInside, XYDrag, snapPosition, calculateNodePosition, Position, ConnectionMode, isMouseEvent, XYHandle, getHostForElement, addEdge, getNodesBounds, clampPosition, getNodeDimensions, nodeHasDimensions, getPositionWithOrigin, elementSelectionKeys, isEdgeVisible, MarkerType, createMarkerIds, isNumeric, getBezierEdgeCenter, getSmoothStepPath, getStraightPath, getBezierPath, getEdgePosition, getElevatedEdgeZIndex, getMarkerId, ConnectionLineType, updateConnectionLookup, adoptUserNodes, devWarn,
|
|
4
|
+
import { errorMessages, infiniteExtent, isInputDOMNode, fitView, getViewportForBounds, pointToRendererPoint, rendererPointToPoint, isNodeBase, isEdgeBase, getElementsToRemove, nodeToRect, isRectObject, getOverlappingArea, getDimensions, XYPanZoom, PanOnScrollMode, SelectionMode, getEventPosition, getNodesInside, XYDrag, snapPosition, calculateNodePosition, Position, ConnectionMode, isMouseEvent, XYHandle, getHostForElement, addEdge, getNodesBounds, clampPosition, getNodeDimensions, nodeHasDimensions, getPositionWithOrigin, elementSelectionKeys, isEdgeVisible, MarkerType, createMarkerIds, isNumeric, getBezierEdgeCenter, getSmoothStepPath, getStraightPath, getBezierPath, getEdgePosition, getElevatedEdgeZIndex, getMarkerId, ConnectionLineType, updateConnectionLookup, adoptUserNodes, devWarn, updateNodeInternals, updateAbsolutePositions, handleParentExpand, panBy, isMacOs, areConnectionMapsEqual, handleConnectionChange, shallowNodeData, getNodePositionWithOrigin, XYMinimap, getBoundsOfRects, getInternalNodesBounds, ResizeControlVariant, XYResizer, XY_RESIZER_LINE_POSITIONS, XY_RESIZER_HANDLE_POSITIONS, getNodeToolbarTransform } from '@xyflow/system';
|
|
5
5
|
export { ConnectionLineType, ConnectionMode, MarkerType, PanOnScrollMode, Position, SelectionMode, addEdge, getBezierEdgeCenter, getBezierPath, getConnectedEdges, getEdgeCenter, getIncomers, getNodesBounds, getOutgoers, getSmoothStepPath, getStraightPath, getViewportForBounds, updateEdge } from '@xyflow/system';
|
|
6
6
|
import { createContext, useContext, useMemo, useEffect, useRef, useState, forwardRef, useLayoutEffect, useCallback, memo } from 'react';
|
|
7
7
|
import { useStoreWithEqualityFn, createWithEqualityFn } from 'zustand/traditional';
|
|
@@ -1602,9 +1602,9 @@ function useVisibleNodeIds(onlyRenderVisible) {
|
|
|
1602
1602
|
return nodeIds;
|
|
1603
1603
|
}
|
|
1604
1604
|
|
|
1605
|
-
const selector$e = (s) => s.
|
|
1605
|
+
const selector$e = (s) => s.updateNodeInternals;
|
|
1606
1606
|
function useResizeObserver() {
|
|
1607
|
-
const
|
|
1607
|
+
const updateNodeInternals = useStore(selector$e);
|
|
1608
1608
|
const resizeObserverRef = useRef();
|
|
1609
1609
|
const resizeObserver = useMemo(() => {
|
|
1610
1610
|
if (typeof ResizeObserver === 'undefined') {
|
|
@@ -1619,7 +1619,7 @@ function useResizeObserver() {
|
|
|
1619
1619
|
nodeElement: entry.target,
|
|
1620
1620
|
});
|
|
1621
1621
|
});
|
|
1622
|
-
|
|
1622
|
+
updateNodeInternals(updates);
|
|
1623
1623
|
});
|
|
1624
1624
|
resizeObserverRef.current = observer;
|
|
1625
1625
|
return observer;
|
|
@@ -1701,7 +1701,7 @@ function NodeWrapper({ id, onClick, onMouseEnter, onMouseMove, onMouseLeave, onC
|
|
|
1701
1701
|
if (targetPosChanged) {
|
|
1702
1702
|
prevTargetPosition.current = node.targetPosition;
|
|
1703
1703
|
}
|
|
1704
|
-
store.getState().
|
|
1704
|
+
store.getState().updateNodeInternals(new Map([[id, { id, nodeElement: nodeRef.current, force: true }]]));
|
|
1705
1705
|
}
|
|
1706
1706
|
}, [id, nodeType, node.sourcePosition, node.targetPosition]);
|
|
1707
1707
|
const dragging = useDrag({
|
|
@@ -2364,7 +2364,7 @@ const ConnectionLine = ({ nodeId, handleType, style, type = ConnectionLineType.B
|
|
|
2364
2364
|
toY: (s.connectionPosition.y - s.transform[1]) / s.transform[2],
|
|
2365
2365
|
connectionMode: s.connectionMode,
|
|
2366
2366
|
}), [nodeId]), shallow);
|
|
2367
|
-
const fromHandleBounds = fromNode?.internals
|
|
2367
|
+
const fromHandleBounds = fromNode?.internals.handleBounds;
|
|
2368
2368
|
let handleBounds = fromHandleBounds?.[handleType];
|
|
2369
2369
|
if (connectionMode === ConnectionMode.Loose) {
|
|
2370
2370
|
handleBounds = handleBounds ? handleBounds : fromHandleBounds?.[handleType === 'source' ? 'target' : 'source'];
|
|
@@ -2375,8 +2375,8 @@ const ConnectionLine = ({ nodeId, handleType, style, type = ConnectionLineType.B
|
|
|
2375
2375
|
const fromHandle = handleId ? handleBounds.find((d) => d.id === handleId) : handleBounds[0];
|
|
2376
2376
|
const fromHandleX = fromHandle ? fromHandle.x + fromHandle.width / 2 : (fromNode.measured.width ?? 0) / 2;
|
|
2377
2377
|
const fromHandleY = fromHandle ? fromHandle.y + fromHandle.height / 2 : fromNode.measured.height ?? 0;
|
|
2378
|
-
const fromX =
|
|
2379
|
-
const fromY =
|
|
2378
|
+
const fromX = fromNode.internals.positionAbsolute.x + fromHandleX;
|
|
2379
|
+
const fromY = fromNode.internals.positionAbsolute.y + fromHandleY;
|
|
2380
2380
|
const fromPosition = fromHandle?.position;
|
|
2381
2381
|
const toPosition = fromPosition ? oppositePosition[fromPosition] : null;
|
|
2382
2382
|
if (!fromPosition || !toPosition) {
|
|
@@ -2571,10 +2571,10 @@ const createRFStore = ({ nodes, edges, defaultNodes, defaultEdges, width, height
|
|
|
2571
2571
|
// Every node gets registerd at a ResizeObserver. Whenever a node
|
|
2572
2572
|
// changes its dimensions, this function is called to measure the
|
|
2573
2573
|
// new dimensions and update the nodes.
|
|
2574
|
-
|
|
2574
|
+
updateNodeInternals: (updates) => {
|
|
2575
2575
|
const { onNodesChange, fitView, nodeLookup, fitViewOnInit, fitViewDone, fitViewOnInitOptions, domNode, nodeOrigin, debug, } = get();
|
|
2576
|
-
const changes =
|
|
2577
|
-
if (
|
|
2576
|
+
const { changes, updatedInternals } = updateNodeInternals(updates, nodeLookup, domNode, nodeOrigin);
|
|
2577
|
+
if (!updatedInternals) {
|
|
2578
2578
|
return;
|
|
2579
2579
|
}
|
|
2580
2580
|
updateAbsolutePositions(nodeLookup, { nodeOrigin });
|
|
@@ -2828,7 +2828,7 @@ function ViewportPortal({ children }) {
|
|
|
2828
2828
|
function useUpdateNodeInternals() {
|
|
2829
2829
|
const store = useStoreApi();
|
|
2830
2830
|
return useCallback((id) => {
|
|
2831
|
-
const { domNode,
|
|
2831
|
+
const { domNode, updateNodeInternals } = store.getState();
|
|
2832
2832
|
const updateIds = Array.isArray(id) ? id : [id];
|
|
2833
2833
|
const updates = new Map();
|
|
2834
2834
|
updateIds.forEach((updateId) => {
|
|
@@ -2837,7 +2837,7 @@ function useUpdateNodeInternals() {
|
|
|
2837
2837
|
updates.set(updateId, { id: updateId, nodeElement, force: true });
|
|
2838
2838
|
}
|
|
2839
2839
|
});
|
|
2840
|
-
requestAnimationFrame(() =>
|
|
2840
|
+
requestAnimationFrame(() => updateNodeInternals(updates));
|
|
2841
2841
|
}, []);
|
|
2842
2842
|
}
|
|
2843
2843
|
|
|
@@ -3470,7 +3470,7 @@ function NodeToolbar({ nodeId, children, className, style, isVisible, position =
|
|
|
3470
3470
|
return null;
|
|
3471
3471
|
}
|
|
3472
3472
|
const nodeRect = getNodesBounds(nodes, { nodeOrigin });
|
|
3473
|
-
const zIndex = Math.max(...nodes.map((node) =>
|
|
3473
|
+
const zIndex = Math.max(...nodes.map((node) => node.internals.z + 1));
|
|
3474
3474
|
const wrapperStyle = {
|
|
3475
3475
|
position: 'absolute',
|
|
3476
3476
|
transform: getNodeToolbarTransform(nodeRect, viewport, position, offset, align),
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import cc from 'classcat';
|
|
4
|
-
import { errorMessages, infiniteExtent, isInputDOMNode, fitView, getViewportForBounds, pointToRendererPoint, rendererPointToPoint, isNodeBase, isEdgeBase, getElementsToRemove, nodeToRect, isRectObject, getOverlappingArea, getDimensions, XYPanZoom, PanOnScrollMode, SelectionMode, getEventPosition, getNodesInside, XYDrag, snapPosition, calculateNodePosition, Position, ConnectionMode, isMouseEvent, XYHandle, getHostForElement, addEdge, getNodesBounds, clampPosition, getNodeDimensions, nodeHasDimensions, getPositionWithOrigin, elementSelectionKeys, isEdgeVisible, MarkerType, createMarkerIds, isNumeric, getBezierEdgeCenter, getSmoothStepPath, getStraightPath, getBezierPath, getEdgePosition, getElevatedEdgeZIndex, getMarkerId, ConnectionLineType, updateConnectionLookup, adoptUserNodes, devWarn,
|
|
4
|
+
import { errorMessages, infiniteExtent, isInputDOMNode, fitView, getViewportForBounds, pointToRendererPoint, rendererPointToPoint, isNodeBase, isEdgeBase, getElementsToRemove, nodeToRect, isRectObject, getOverlappingArea, getDimensions, XYPanZoom, PanOnScrollMode, SelectionMode, getEventPosition, getNodesInside, XYDrag, snapPosition, calculateNodePosition, Position, ConnectionMode, isMouseEvent, XYHandle, getHostForElement, addEdge, getNodesBounds, clampPosition, getNodeDimensions, nodeHasDimensions, getPositionWithOrigin, elementSelectionKeys, isEdgeVisible, MarkerType, createMarkerIds, isNumeric, getBezierEdgeCenter, getSmoothStepPath, getStraightPath, getBezierPath, getEdgePosition, getElevatedEdgeZIndex, getMarkerId, ConnectionLineType, updateConnectionLookup, adoptUserNodes, devWarn, updateNodeInternals, updateAbsolutePositions, handleParentExpand, panBy, isMacOs, areConnectionMapsEqual, handleConnectionChange, shallowNodeData, getNodePositionWithOrigin, XYMinimap, getBoundsOfRects, getInternalNodesBounds, ResizeControlVariant, XYResizer, XY_RESIZER_LINE_POSITIONS, XY_RESIZER_HANDLE_POSITIONS, getNodeToolbarTransform } from '@xyflow/system';
|
|
5
5
|
export { ConnectionLineType, ConnectionMode, MarkerType, PanOnScrollMode, Position, SelectionMode, addEdge, getBezierEdgeCenter, getBezierPath, getConnectedEdges, getEdgeCenter, getIncomers, getNodesBounds, getOutgoers, getSmoothStepPath, getStraightPath, getViewportForBounds, updateEdge } from '@xyflow/system';
|
|
6
6
|
import { createContext, useContext, useMemo, useEffect, useRef, useState, forwardRef, useLayoutEffect, useCallback, memo } from 'react';
|
|
7
7
|
import { useStoreWithEqualityFn, createWithEqualityFn } from 'zustand/traditional';
|
|
@@ -1602,9 +1602,9 @@ function useVisibleNodeIds(onlyRenderVisible) {
|
|
|
1602
1602
|
return nodeIds;
|
|
1603
1603
|
}
|
|
1604
1604
|
|
|
1605
|
-
const selector$e = (s) => s.
|
|
1605
|
+
const selector$e = (s) => s.updateNodeInternals;
|
|
1606
1606
|
function useResizeObserver() {
|
|
1607
|
-
const
|
|
1607
|
+
const updateNodeInternals = useStore(selector$e);
|
|
1608
1608
|
const resizeObserverRef = useRef();
|
|
1609
1609
|
const resizeObserver = useMemo(() => {
|
|
1610
1610
|
if (typeof ResizeObserver === 'undefined') {
|
|
@@ -1619,7 +1619,7 @@ function useResizeObserver() {
|
|
|
1619
1619
|
nodeElement: entry.target,
|
|
1620
1620
|
});
|
|
1621
1621
|
});
|
|
1622
|
-
|
|
1622
|
+
updateNodeInternals(updates);
|
|
1623
1623
|
});
|
|
1624
1624
|
resizeObserverRef.current = observer;
|
|
1625
1625
|
return observer;
|
|
@@ -1701,7 +1701,7 @@ function NodeWrapper({ id, onClick, onMouseEnter, onMouseMove, onMouseLeave, onC
|
|
|
1701
1701
|
if (targetPosChanged) {
|
|
1702
1702
|
prevTargetPosition.current = node.targetPosition;
|
|
1703
1703
|
}
|
|
1704
|
-
store.getState().
|
|
1704
|
+
store.getState().updateNodeInternals(new Map([[id, { id, nodeElement: nodeRef.current, force: true }]]));
|
|
1705
1705
|
}
|
|
1706
1706
|
}, [id, nodeType, node.sourcePosition, node.targetPosition]);
|
|
1707
1707
|
const dragging = useDrag({
|
|
@@ -2364,7 +2364,7 @@ const ConnectionLine = ({ nodeId, handleType, style, type = ConnectionLineType.B
|
|
|
2364
2364
|
toY: (s.connectionPosition.y - s.transform[1]) / s.transform[2],
|
|
2365
2365
|
connectionMode: s.connectionMode,
|
|
2366
2366
|
}), [nodeId]), shallow);
|
|
2367
|
-
const fromHandleBounds = fromNode?.internals
|
|
2367
|
+
const fromHandleBounds = fromNode?.internals.handleBounds;
|
|
2368
2368
|
let handleBounds = fromHandleBounds?.[handleType];
|
|
2369
2369
|
if (connectionMode === ConnectionMode.Loose) {
|
|
2370
2370
|
handleBounds = handleBounds ? handleBounds : fromHandleBounds?.[handleType === 'source' ? 'target' : 'source'];
|
|
@@ -2375,8 +2375,8 @@ const ConnectionLine = ({ nodeId, handleType, style, type = ConnectionLineType.B
|
|
|
2375
2375
|
const fromHandle = handleId ? handleBounds.find((d) => d.id === handleId) : handleBounds[0];
|
|
2376
2376
|
const fromHandleX = fromHandle ? fromHandle.x + fromHandle.width / 2 : (fromNode.measured.width ?? 0) / 2;
|
|
2377
2377
|
const fromHandleY = fromHandle ? fromHandle.y + fromHandle.height / 2 : fromNode.measured.height ?? 0;
|
|
2378
|
-
const fromX =
|
|
2379
|
-
const fromY =
|
|
2378
|
+
const fromX = fromNode.internals.positionAbsolute.x + fromHandleX;
|
|
2379
|
+
const fromY = fromNode.internals.positionAbsolute.y + fromHandleY;
|
|
2380
2380
|
const fromPosition = fromHandle?.position;
|
|
2381
2381
|
const toPosition = fromPosition ? oppositePosition[fromPosition] : null;
|
|
2382
2382
|
if (!fromPosition || !toPosition) {
|
|
@@ -2571,10 +2571,10 @@ const createRFStore = ({ nodes, edges, defaultNodes, defaultEdges, width, height
|
|
|
2571
2571
|
// Every node gets registerd at a ResizeObserver. Whenever a node
|
|
2572
2572
|
// changes its dimensions, this function is called to measure the
|
|
2573
2573
|
// new dimensions and update the nodes.
|
|
2574
|
-
|
|
2574
|
+
updateNodeInternals: (updates) => {
|
|
2575
2575
|
const { onNodesChange, fitView, nodeLookup, fitViewOnInit, fitViewDone, fitViewOnInitOptions, domNode, nodeOrigin, debug, } = get();
|
|
2576
|
-
const changes =
|
|
2577
|
-
if (
|
|
2576
|
+
const { changes, updatedInternals } = updateNodeInternals(updates, nodeLookup, domNode, nodeOrigin);
|
|
2577
|
+
if (!updatedInternals) {
|
|
2578
2578
|
return;
|
|
2579
2579
|
}
|
|
2580
2580
|
updateAbsolutePositions(nodeLookup, { nodeOrigin });
|
|
@@ -2828,7 +2828,7 @@ function ViewportPortal({ children }) {
|
|
|
2828
2828
|
function useUpdateNodeInternals() {
|
|
2829
2829
|
const store = useStoreApi();
|
|
2830
2830
|
return useCallback((id) => {
|
|
2831
|
-
const { domNode,
|
|
2831
|
+
const { domNode, updateNodeInternals } = store.getState();
|
|
2832
2832
|
const updateIds = Array.isArray(id) ? id : [id];
|
|
2833
2833
|
const updates = new Map();
|
|
2834
2834
|
updateIds.forEach((updateId) => {
|
|
@@ -2837,7 +2837,7 @@ function useUpdateNodeInternals() {
|
|
|
2837
2837
|
updates.set(updateId, { id: updateId, nodeElement, force: true });
|
|
2838
2838
|
}
|
|
2839
2839
|
});
|
|
2840
|
-
requestAnimationFrame(() =>
|
|
2840
|
+
requestAnimationFrame(() => updateNodeInternals(updates));
|
|
2841
2841
|
}, []);
|
|
2842
2842
|
}
|
|
2843
2843
|
|
|
@@ -3470,7 +3470,7 @@ function NodeToolbar({ nodeId, children, className, style, isVisible, position =
|
|
|
3470
3470
|
return null;
|
|
3471
3471
|
}
|
|
3472
3472
|
const nodeRect = getNodesBounds(nodes, { nodeOrigin });
|
|
3473
|
-
const zIndex = Math.max(...nodes.map((node) =>
|
|
3473
|
+
const zIndex = Math.max(...nodes.map((node) => node.internals.z + 1));
|
|
3474
3474
|
const wrapperStyle = {
|
|
3475
3475
|
position: 'absolute',
|
|
3476
3476
|
transform: getNodeToolbarTransform(nodeRect, viewport, position, offset, align),
|
|
@@ -11,6 +11,12 @@ export type Node<NodeData extends Record<string, unknown> = Record<string, unkno
|
|
|
11
11
|
resizing?: boolean;
|
|
12
12
|
focusable?: boolean;
|
|
13
13
|
};
|
|
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
|
+
*/
|
|
14
20
|
export type InternalNode<NodeType extends Node = Node> = InternalNodeBase<NodeType>;
|
|
15
21
|
export type NodeMouseHandler<NodeType extends Node = Node> = (event: ReactMouseEvent, node: NodeType) => void;
|
|
16
22
|
export type SelectionDragHandler<NodeType extends Node = Node> = (event: ReactMouseEvent, nodes: NodeType[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../packages/react/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,M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;IAC1C,WAAW,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC1C,aAAa,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC3C,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAC;AAElF,MAAM,MAAM,SAAS,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConnectionMode, type ConnectionStatus, type CoordinateExtent, type
|
|
1
|
+
import { ConnectionMode, type ConnectionStatus, type CoordinateExtent, type InternalNodeUpdate, type UpdateNodePositions, type NodeOrigin, type OnConnect, type OnError, type OnViewportChange, type SelectionRect, type SnapGrid, type ConnectingHandle, type Transform, type XYPosition, type PanZoomInstance, type PanBy, type OnConnectStart, type OnConnectEnd, type OnSelectionDrag, type OnMoveStart, type OnMove, type OnMoveEnd, type UpdateConnection, type EdgeLookup, type ConnectionLookup, type NodeLookup, NodeChange, EdgeChange } from '@xyflow/system';
|
|
2
2
|
import type { Edge, Node, OnNodesChange, OnEdgesChange, DefaultEdgeOptions, FitViewOptions, OnNodesDelete, OnEdgesDelete, OnSelectionChangeFunc, UnselectNodesAndEdgesParams, OnDelete, OnNodeDrag, OnBeforeDelete, IsValidConnection, InternalNode } from '.';
|
|
3
3
|
export type ReactFlowStore<NodeType extends Node = Node, EdgeType extends Edge = Edge> = {
|
|
4
4
|
rfId: string;
|
|
@@ -85,7 +85,7 @@ export type ReactFlowActions<NodeType extends Node, EdgeType extends Edge> = {
|
|
|
85
85
|
setNodes: (nodes: NodeType[]) => void;
|
|
86
86
|
setEdges: (edges: EdgeType[]) => void;
|
|
87
87
|
setDefaultNodesAndEdges: (nodes?: NodeType[], edges?: EdgeType[]) => void;
|
|
88
|
-
|
|
88
|
+
updateNodeInternals: (updates: Map<string, InternalNodeUpdate>) => void;
|
|
89
89
|
updateNodePositions: UpdateNodePositions;
|
|
90
90
|
resetSelectedElements: () => void;
|
|
91
91
|
unselectNodesAndEdges: (params?: UnselectNodesAndEdgesParams) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/types/store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/types/store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,SAAS,EACd,KAAK,gBAAgB,EACr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AAI,GAAG,IAAI,IAAI,cAAc,CACrG,QAAQ,EACR,QAAQ,CACT,GACC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC"}
|
package/dist/style.css
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* this gets exported as style.css and can be used for the default theming */
|
|
2
2
|
/* these are the necessary styles for React/Svelte Flow, they get used by base.css and style.css */
|
|
3
3
|
.react-flow {
|
|
4
|
+
direction: ltr;
|
|
5
|
+
|
|
4
6
|
--xy-edge-stroke-default: #b1b1b7;
|
|
5
7
|
--xy-edge-stroke-width-default: 1;
|
|
6
8
|
--xy-edge-stroke-selected-default: #555;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/NodeWrapper/index.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAgB,IAAI,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExE,wBAAgB,WAAW,CAAC,QAAQ,SAAS,IAAI,EAAE,EACjD,EAAE,EACF,OAAO,EACP,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,IAAI,EACJ,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,GACR,EAAE,gBAAgB,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/components/NodeWrapper/index.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAgB,IAAI,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExE,wBAAgB,WAAW,CAAC,QAAQ,SAAS,IAAI,EAAE,EACjD,EAAE,EACF,OAAO,EACP,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,IAAI,EACJ,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,GACR,EAAE,gBAAgB,CAAC,QAAQ,CAAC,kDA2N5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUpdateNodeInternals.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useUpdateNodeInternals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"useUpdateNodeInternals.d.ts","sourceRoot":"","sources":["../../../../packages/react/src/hooks/useUpdateNodeInternals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAsB,MAAM,gBAAgB,CAAC;AAI9E;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,mBAAmB,CAkB5D"}
|
package/dist/umd/index.d.ts
CHANGED
|
@@ -31,6 +31,6 @@ export { applyNodeChanges, applyEdgeChanges } from './utils/changes';
|
|
|
31
31
|
export { isNode, isEdge } from './utils/general';
|
|
32
32
|
export * from './additional-components';
|
|
33
33
|
export * from './types';
|
|
34
|
-
export { type SmoothStepPathOptions, type BezierPathOptions, ConnectionLineType, type EdgeMarker, type EdgeMarkerType, MarkerType, type OnMove, type OnMoveStart, type OnMoveEnd, type Connection, type ConnectionStatus, ConnectionMode, type OnConnectStartParams, type OnConnectStart, type OnConnect, type OnConnectEnd, type Viewport, type SnapGrid, PanOnScrollMode, type ViewportHelperFunctionOptions, type SetCenterOptions, type FitBoundsOptions, type PanelPosition, type ProOptions, SelectionMode, type SelectionRect, type OnError, type NodeOrigin, type OnSelectionDrag, Position, type XYPosition, type XYZPosition, type Dimensions, type Rect, type Box, type Transform, type CoordinateExtent, type ColorMode, type ColorModeClass, type HandleType, type ShouldResize, type OnResizeStart, type OnResize, type OnResizeEnd, type ControlPosition, type ControlLinePosition, type ResizeControlVariant, } from '@xyflow/system';
|
|
34
|
+
export { type SmoothStepPathOptions, type BezierPathOptions, ConnectionLineType, type EdgeMarker, type EdgeMarkerType, MarkerType, type OnMove, type OnMoveStart, type OnMoveEnd, type Connection, type ConnectionStatus, ConnectionMode, type OnConnectStartParams, type OnConnectStart, type OnConnect, type OnConnectEnd, type Viewport, type SnapGrid, PanOnScrollMode, type ViewportHelperFunctionOptions, type SetCenterOptions, type FitBoundsOptions, type PanelPosition, type ProOptions, SelectionMode, type SelectionRect, type OnError, type NodeOrigin, type OnSelectionDrag, Position, type XYPosition, type XYZPosition, type Dimensions, type Rect, type Box, type Transform, type CoordinateExtent, type ColorMode, type ColorModeClass, type HandleType, type ShouldResize, type OnResizeStart, type OnResize, type OnResizeEnd, type ControlPosition, type ControlLinePosition, type ResizeControlVariant, type NodeChange, type NodeDimensionChange, type NodePositionChange, type NodeSelectionChange, type NodeRemoveChange, type NodeAddChange, type NodeReplaceChange, type EdgeChange, type EdgeSelectionChange, type EdgeRemoveChange, type EdgeAddChange, type EdgeReplaceChange, } from '@xyflow/system';
|
|
35
35
|
export { type GetBezierPathParams, getBezierEdgeCenter, getBezierPath, getEdgeCenter, type GetSmoothStepPathParams, getSmoothStepPath, type GetStraightPathParams, getStraightPath, getViewportForBounds, getNodesBounds, getIncomers, getOutgoers, addEdge, updateEdge, getConnectedEdges, } from '@xyflow/system';
|
|
36
36
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/umd/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/react/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EA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