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

How to reattach links

Open TrevorDArcyEvans opened this issue 3 years ago • 4 comments

Hi just a question on how to detach a link from one node and reattach to another node.

If this is not possible, please make this an enhancement request.

TrevorDArcyEvans avatar Apr 23 '21 22:04 TrevorDArcyEvans

Hello, Did you try to call SetTargetPort in your link models?

zHaytam avatar Apr 23 '21 22:04 zHaytam

Hi thanks for the prompt response :-) but what I meant was:

Is there a way for a user to interactively detach a link from one node and reattach to another node?

Are there any settings in a Diagram to enable this?

TrevorDArcyEvans avatar Apr 24 '21 10:04 TrevorDArcyEvans

Oh, not currently. Not sure how it'll look actually, do you have any examples that you like? How would the user interact with the link for it to detach? Should we also allow free links?

zHaytam avatar Apr 24 '21 10:04 zHaytam

Please have a look at the very similarly named Blazor.Diagrams demo:

https://excubo-ag.github.io/Blazor.Diagrams/link_selector

The user interaction is OK but could be refined as selection of link vs node is a bit hit or miss.

This component allows for free links which can be reattached.

TrevorDArcyEvans avatar Apr 24 '21 12:04 TrevorDArcyEvans