Description
If you have more than one Svelvet app container and you have Edges on your Nodes, the Edges are only appended to the first instance of the Svelvet app due to this line
|
const newContainer = document.querySelector(`.svelvet-graph-wrapper`); |
Reproduction
https://stackblitz.com/edit/vitejs-vite-3df9v8?file=package.json,src%2FApp.svelte
- Create 2 instances of Svelvet apps with Edges, Anchors and Nodes
- See the first one will have double the Edges
- See the subsequent instances of Svelvet apps not drawing the Edges
System information
svelte: ^4.2.12 => 4.2.12
svelte-loader: ^3.2.0 => 3.2.0
svelvet: 10.0.2 => 10.0.2
Additional information
No response
👨👧👦 Contributing
Description
If you have more than one Svelvet app container and you have Edges on your Nodes, the Edges are only appended to the first instance of the Svelvet app due to this line
Svelvet/src/lib/components/Edge/Edge.svelte
Line 20 in bd69dc3
Reproduction
https://stackblitz.com/edit/vitejs-vite-3df9v8?file=package.json,src%2FApp.svelte
System information
Additional information
No response
👨👧👦 Contributing