open-source-labs / Svelvet

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

Preventing Edge Connections Between Specific Anchors #519

Open fdsgdshn opened 2 months ago

fdsgdshn commented 2 months ago

Hello,

Is it possible to prevent edge formation from one specific anchor to another? For example, I want to manually create edge connections from a selected anchor element to another anchor element in the browser, but I want to define certain exceptions. For instance, I'd like to prevent edge connections between a specific anchor and another specific anchor. In an #if connecting condition, can I make the input anchor element invisible?

Thanks.