chore(svelte): revise useSvelteFlow example

This commit is contained in:
moklick
2023-03-14 14:11:59 +01:00
parent 154be3f900
commit 1df4736203
7 changed files with 113 additions and 51 deletions
@@ -42,7 +42,6 @@
nodes,
edges,
transform,
nodeOrigin,
dragging,
selectionRect,
selectionRectMode,
@@ -117,8 +116,7 @@
nextUserSelectRect,
$transform,
selectionMode === SelectionMode.Partial,
true,
$nodeOrigin
true
);
const selectedEdgeIds = getConnectedEdges(selectedNodes, $edges).map((e) => e.id);
const selectedNodeIds = selectedNodes.map((n) => n.id);