open-source-labs / Svelvet

🎛 A Svelte library for building dynamic, infinitely customizable node-based user interfaces and flowcharts
https://svelvet.io
2.5k stars 161 forks source link

Fix locking for incoming connections #452

Open BOJIT opened 11 months ago

BOJIT commented 11 months ago

The Anchor component has a locked property that prevents outgoing edges from being created. However, the option does not disable edges from other nodes from being connected to it.

This PR prevents any edge creation, plus prevents the hovering styling from being applied to the locked anchor.