feat(svelte): add ondelete handler #3618

This commit is contained in:
moklick
2023-11-16 13:24:41 +01:00
parent 4849c90cbd
commit 05968c82a2
8 changed files with 33 additions and 11 deletions
+5
View File
@@ -221,6 +221,11 @@ export function createStore({
store.edges.update((eds) =>
eds.filter((edge) => !matchingEdges.some((mE) => mE.id === edge.id))
);
get(store.ondelete)?.({
nodes: matchingNodes,
edges: matchingEdges
});
}
}
});