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

Svelvet component on top of each other #461

Open sicheo opened 10 months ago

sicheo commented 10 months ago

I'm using Svelvet component to build a graph dynamically, adding nodes and edges. I need to have two type of nodes, regular ones, and node that represent sub-graphs. I open a data input window if a regular node is clicked. If a sub-graph node is clicked I need to open a new div with a new Svelvet component on top of the original one, in order to edit a new sub graph linked with the sub-graph node. Everything works fine except that the upmost Svelvet component doesn't show the edge when I connect two node's anchors of the sub graph. Using Firefox Inspector it seems that the path is created below the first <svg class="edges-wrapper svelte-eznx2t" ....../> and not below the second one. Can you suggest any solution? Thank in advance