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

No way to interactively create links between portless nodes

Open TrevorDArcyEvans opened this issue 4 years ago • 2 comments

Not sure if this is 'by design' but there is no way for a user to create links between portless nodes: https://blazor-diagrams.zhaytam.com/nodes/portless-links

This is in direct contrast to ported nodes: https://blazor-diagrams.zhaytam.com/demos/simple

Possible enhancement request:

  • please allow interactive creation of links between portless nodes
    • would have to have some way to distinguish between dragging node and starting to create a link

TrevorDArcyEvans avatar May 12 '21 12:05 TrevorDArcyEvans

This is something I'm aware of (duh) and I'm thinking about an implementation that I can try adding to this library. In order to provide maximum customization, I'm thinking about adding functionality where clicking a link or a node would bring up some kind of UI on top of it. Using that, we can add actions to that UI, for example, an action would be a button that when clicked, a link is deleted. Or an action that lets you drag a link from a node to another.

Check out: https://resources.jointjs.com/demos/kitchensink Try clicking a node or a link, a UI will appear and that's what I'm talking about.

Of course, this would be customizable and extendable. There would be default actions, but also the ability to add/remove. What do you think?

zHaytam avatar May 12 '21 13:05 zHaytam

Thanks - a default UI, with a few default actions sounds like a good start. I'm assuming there'll be some styling we can tweak etc.

Customisation and extensibility would be an added bonus ;-)

TrevorDArcyEvans avatar May 12 '21 14:05 TrevorDArcyEvans