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

Clearing the whole diagram (nodes, groups and links)

Open jpanext opened this issue 3 years ago • 0 comments

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<T> items of the abstract class BaseLayer<T> like for nodes and links. Is there a reason for that and not creating a Clear() method them BTW?

jpanext avatar May 11 '22 13:05 jpanext