Blazor-Diagrams / Blazor.Diagrams

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

Clearing the whole diagram (nodes, groups and links) #196

Closed jpanext closed 1 year ago

jpanext commented 2 years ago

Hi, it's a question about groups, as there is not Clear() method for them.

I managed to clear my diagram this way : Diagram.Nodes.Clear(); Diagram.Links.Clear(); foreach (var group in Diagram.Groups) { Diagram.Ungroup(group); } I saw that you are not adding group in the List items of the abstract class BaseLayer like for nodes and links. Is there a reason for that and not creating a Clear() method them BTW?