When an app supports multiple windows with different Svelvet graphs, all edges appear on the first graph that shows up in the DOM. This is because inside of Edge.svelte, the function moveEdge performs a query on the entire document.
document.querySelector(`.svelvet-graph-wrapper`);
This merge request instead uses the same query selector on the DOM node that is in our component's context.
When an app supports multiple windows with different Svelvet graphs, all edges appear on the first graph that shows up in the DOM. This is because inside of
Edge.svelte
, the functionmoveEdge
performs a query on the entire document.This merge request instead uses the same query selector on the DOM node that is in our component's context.