Blazor-Diagrams / Blazor.Diagrams

A fully customizable and extensible all-purpose diagrams library for Blazor
https://blazor-diagrams.zhaytam.com
MIT License
983 stars 192 forks source link

No way to interactively create links between portless nodes #99

Open TrevorDArcyEvans opened 3 years ago

TrevorDArcyEvans commented 3 years ago

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:

zHaytam commented 3 years ago

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?

TrevorDArcyEvans commented 3 years ago

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 ;-)