Blazor.Diagrams icon indicating copy to clipboard operation
Blazor.Diagrams copied to clipboard

Enhancement request: separate links between same pairs of nodes

Open TrevorDArcyEvans opened this issue 4 years ago • 3 comments

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

TrevorDArcyEvans avatar May 12 '21 13:05 TrevorDArcyEvans

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.

zHaytam avatar May 21 '21 10:05 zHaytam

One solution could be to dynamically add vertices when there are multiple links.

zHaytam avatar May 21 '21 10:05 zHaytam

Worked on a product many years ago which rendered multiple links like this:

image

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.

TrevorDArcyEvans avatar May 21 '21 10:05 TrevorDArcyEvans