Blazor-Diagrams / Blazor.Diagrams

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

Add Enabled flag to ports #414

Closed suraj-desai-wtg closed 2 months ago

suraj-desai-wtg commented 8 months ago

Add an Enabled flag which governs whether a link can be drawn from a node port or not.

zHaytam commented 8 months ago

Hello, thanks for the PR!

May I know why Locked wasn't enough for this use case?

suraj-desai-wtg commented 8 months ago

Locked is used in a context of position. i.e. a Locked port can't be moved. But a property was required which did not allow Links to be created through a Port which is why Enabled was added

zHaytam commented 2 months ago

Locked is not only for position, especially for ports that don't move by themselves. I think Enabled is doing the same thing, so Enabled is unnecessary.

I'll be closing this unless you think I'm wrong then please let me know!