tisoap / react-flow-smart-edge

Custom Edge for React Flow that never intersects with other nodes
https://tisoap.github.io/react-flow-smart-edge/
MIT License
242 stars 26 forks source link

Equivalent to getBezierPath or getSimpleBezierPath #26

Closed shemeshx closed 2 years ago

shemeshx commented 2 years ago

Hey, First of all, thanks for this library!!!! it is huge help for me :).

I'm looking for equivalent for getBezierPath/getSimpleBezierPath hooks of react-flow-renderer when creating custom edges. https://reactflow.dev/docs/examples/edges/

there is a way to implement the smart edge functionality in this case?

thanks!!!

tisoap commented 2 years ago

Hey @shemeshx ! This package does have some more advanced configuration using the smartEdgeFactory function, that let's you customize how an Smart Edge behaves. It this what you're looking for? Bear in mind the API is not the same as the React Flow's one since there's path-finding involved in this library

tisoap commented 2 years ago

There hasn't been a follow up, so I'll assume my suggestion was enough