Blazor.Diagrams
Blazor.Diagrams copied to clipboard
Enhancement request: separate links between same pairs of nodes
Currently links between same pairs of nodes are stacked over each other. This has the following issues:
- no way to know how many links there are
- no way to select a specific link
It would be nice to have these links spaced apart 'in some sensible way' (!), possibly with some parameters in DiagramLinkOptions to control spacing
Example: https://blazor-diagrams.zhaytam.com/demos/simple
- create a new link over an existing link
- observe:
- cannot see how many links are present
- cannot select a specific link
Hello, sorry I thought I already replied to this one... This is a known "problem", and it's a bit hard to tackle since we need to find a generic solution that can handle whatever number of links you throw at it. I'll do some research and see how feasible this is.
One solution could be to dynamically add vertices when there are multiple links.
Worked on a product many years ago which rendered multiple links like this:

There was a user accessible parameter which controlled the spread of links.
This only scaled to a handful of multiple links. IIRC, over a threshold number of links, the extra (diagram) links were rendered as a thicker link. A user could then double click to display the extra links etc.