xyflow / xyflow

React Flow | Svelte Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev) or Svelte (https://svelteflow.dev). Ready out-of-the-box and infinitely customizable.
https://xyflow.com
MIT License
22.06k stars 1.46k forks source link

Internal nodes: calculate render position #4173

Open moklick opened 2 months ago

moklick commented 2 months ago

There are several places where we adjust a position based on the passed extent or origin. Maybe we could use those values to calculate a valid render position and then only work with those positions internally instead of positionAbsolute.