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

Docs with dynamic prop #478

Open KyleFontenot opened 9 months ago

KyleFontenot commented 9 months ago

The only thing the docs say on the Node component is: "Enables dynamic Anchor positioning based on relative posiiton of conneted Nodes" (typos btw).

I see that adding dynamic to a recipient node of a connection has a relative anchor based on it's relativity to it connected node, but adding dynamic to the sender node of the connection breaks it, whether or not the recipient node has a connection assigned to the parent. If it is meant to be unidirectional, expanding on the usage of a dynamic mode on a Node in general would be useful. If it is meant to be bidirectional, I can create a reproduction.