feat(svelte) add autoPanOnConnect autoPanOnNodeDrag props

This commit is contained in:
Peter
2023-09-21 12:59:56 +02:00
parent 1e2ba65fce
commit 6b7e72b06c
6 changed files with 15 additions and 3 deletions
@@ -40,7 +40,8 @@
addEdge,
panBy,
cancelConnection,
updateConnection
updateConnection,
autoPanOnConnect
} = store;
function onPointerDown(event: MouseEvent | TouchEvent) {
@@ -56,7 +57,7 @@
nodes: $nodes,
connectionMode: $connectionMode,
lib: $lib,
autoPanOnConnect: true,
autoPanOnConnect: $autoPanOnConnect,
isValidConnection: $isValidConnection,
updateConnection,
cancelConnection,