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

Anchor not re-rendering Edge on Node size changes/anchor position moved #465

Closed andefran closed 10 months ago

andefran commented 10 months ago

Hey! First and foremost, I'm truly grateful for all the work you've done on this project, it's just amazing for the Svelte community.

I've encountered an issue with the node anchor not re-rendering the edge on node size changes or when the anchor position is moved, until I click on the node.

The black thing is just something censored

andefran commented 10 months ago

Update:

The problem was caused because the size update was on the same component as the node, anchors and edges themselves. Some reactivity was blocking its update, I guess.

Here is a video where the text that resizes the div is on a slot inside Node Svelvet component. Feel free to close the issue if this is the desired behavior.