projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.58k stars 1.17k forks source link

orbiting ports / dynamically moving ports #795

Open peteruhnak opened 3 years ago

peteruhnak commented 3 years ago

Is it possible to have something like "orbiting" ports?

image

Here the port on the "orbit" will automatically move itself so it's closes to the other end (A->B, A->C), or if there's extra routing points, the port moves to the next route point (B->C). I was looking at the examples, however there the the port is fixed and the link is computed, whilst I want the opposite -- dynamically computing the position of ports based on the shortest path to the source/target).

Is this something that should be possible with the current implementation without an excessive amount of customizations everywhere?