refactor(svelte): cleanup store usage
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user