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

Can I set parameters to fix a certain node? #311

Closed whugarra closed 1 year ago

whugarra commented 1 year ago

I need to set a node that cannot be moved or deleted. Can this be implemented?

314159265meow commented 1 year ago

Hello, have you tried the Locked property of a node? See this demo here https://blazor-diagrams.zhaytam.com/demos/locked

zHaytam commented 1 year ago

Hey, as @314159265meow said, check out the Locked property, as well as the ShouldDeleteNode option in constraints.

whugarra commented 1 year ago

Wow,It's so cool to have this demonstration. Thank you very much.