### Summary This PR fixes a bug in the `evaluateAbsolutePosition` function where the incorrect parent node was being retrieved from the `nodeLookup` in each iteration of the while loop. ### Changes - Modified the line `const parent = nodeLookup.get(parentId);` to `const parent = nodeLookup.get(nextParentId);`. ### Reason The original implementation used `parentId` to look up the parent node, which did not change within the loop. This resulted in the same parent node being used for each iteration, leading to incorrect calculations of the absolute position. By using `nextParentId`, we ensure that the correct parent node is retrieved and used in each iteration.
@xyflow/system
Core system that powers React Flow and Svelte Flow.
Installation
npm install @xyflow/system
What is this package about?
The @xyflow/system package was created to have a place for vanilla utils for React Flow and Svelte Flow. The package exports helpers for edge creation, pan and zoom, dragging of nodes, general utils and lots of types. All the helpers are specifically built for React Flow and Svelte Flow so it's probably not too interesting to use them with other libraries.
XYPanZoom
Adds zoom and pan for the pane.
XYDrag
Adds drag for nodes and selection.
XYHandle
Adds connection line drawing.
XYMinimap
Adds interactive mini map (zoom and pan).
Edge utils
Util function for SVG edge path creating.
Store utils
Helpers for store functions.