refactor(svelte): cleanup store usage

This commit is contained in:
moklick
2023-02-28 12:43:29 +01:00
parent 7a879f3c54
commit 62a6278682
25 changed files with 420 additions and 397 deletions
@@ -22,11 +22,11 @@
const handleId = id || null;
const {
connectionModeStore,
domNodeStore,
nodesStore,
connectionRadiusStore,
transformStore,
connectionMode,
domNode,
nodes,
connectionRadius,
transform,
addEdge,
panBy,
cancelConnection,
@@ -49,11 +49,11 @@
handleId,
nodeId,
isTarget,
connectionRadius: $connectionRadiusStore,
domNode: $domNodeStore,
nodes: $nodesStore,
connectionMode: $connectionModeStore,
transformStore,
connectionRadius: $connectionRadius,
domNode: $domNode,
nodes: $nodes,
connectionMode: $connectionMode,
transform,
isValidConnection: isValidConnection!,
onConnect: onConnectExtended,
updateConnection,