Blazor-Diagrams / Blazor.Diagrams

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

Portless links not rendered when linked nodes are grouped #266

Closed codeus-de closed 1 year ago

codeus-de commented 1 year ago

With a simple setup like in https://blazor-diagrams.zhaytam.com/nodes/portless-links where two nodes are linked without using ports, the links will disappear as soon as one is grouping the two nodes.

I recognize, that the demo above doesn't allow grouping. But if one allows for grouping, the link between the two nodes will simply disappear. This doesn't happen when using links between node ports.

Is this by design or is it a bug? Is there a way to combine grouping and linkless ports?

zHaytam commented 1 year ago

Hello, This has been fixed in 3.0.0 by doing the following:

            _blazorDiagram.Options.Groups.Enabled = true;
            _blazorDiagram.Options.NodesLayerOrder = 1;
            _blazorDiagram.Options.LinksLayerOrder = 2;

This way, links will render on top of nodes.

codeus-de commented 1 year ago

Thanks a lot! Looking forward to 3.0.

You've created a really good and much needed project here!