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
21.54k stars 1.43k forks source link

Add `avoidNodes` prop to getSmoothStepPath, getBezierPath and getSimpleBezierPath #4213

Closed DenisLantero closed 3 weeks ago

DenisLantero commented 3 weeks ago

Please describe the feature that you want to propose

Add avoidNodes to the utils functions that calculate the path for the edges (getSmoothStepPath, getBezierPath, and getSimpleBezierPath), which will make the edge not intercept any nodes.

This is very similar to what this library does: https://github.com/tisoap/react-flow-smart-edge/, but without any speed limitations since it will have direct access to the nodes.

moklick commented 3 weeks ago

Hey!

It would be a super nice feature but it is not planned and we will probably never had a functionality like this to the core.

All internals are accessible vie useStore so if anyone wants to create a third party package it's definitely possible.