Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lock nodes and links in a diagram #411

Open
Cyrus-Sushiant opened this issue Feb 4, 2024 · 1 comment
Open

Lock nodes and links in a diagram #411

Cyrus-Sushiant opened this issue Feb 4, 2024 · 1 comment
Labels
answered question Further information is requested

Comments

@Cyrus-Sushiant
Copy link

I want to create diagrams with your library. I need a feature to freeze nodes and links until the user after finishing creating diagrams can't change their position of them. Is there such a feature in BlazorDiagram?

Use case

I am building an application that allows users to create and edit diagrams. However, I want to give them the option to lock the diagram once they are done, so that they can't accidentally or intentionally modify it. This would ensure the integrity and consistency of the diagram.

@Phloog
Copy link

Phloog commented Feb 21, 2024

You can set individual Nodes / Links to "Locked". If you do this programmatically on all elements, and disable deletion using Constraints (in the Diagram Options), you effectively get the desired behaviour.

@zHaytam zHaytam added question Further information is requested answered labels Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants