Blazor.Diagrams
Blazor.Diagrams copied to clipboard
How to reattach links
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.
Hello,
Did you try to call SetTargetPort
in your link models?
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?
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?
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.