Blazor-Diagrams / Blazor.Diagrams

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

Select/Unselect all #74

Closed Rickybarb5 closed 3 years ago

Rickybarb5 commented 3 years ago

It would be cool if there were shortcuts and methods to select and unselect all nodes, with events of course.

zHaytam commented 3 years ago

Hello, There is a UnselectAll method but not a SelectAll method, maybe I'll add it but I don't know if it'll select everything or just nodes.

For the shortcuts, I don't think it's supposed to be available out of the box, at least I didn't see it in any other diagramming library. I believe it's up for the library users to add that, which is pretty easy to do using a DiagramSubManager.

Example: https://github.com/zHaytam/Blazor.Diagrams/blob/master/src/Blazor.Diagrams.Core/Default/GroupingSubManager.cs WHich you use like this: _diagramManager.RegisterSubManager<YourSubManager>();.