refactor(handles): prefix with flow id for handling nested flows #3196

This commit is contained in:
moklick
2024-01-16 16:57:50 +01:00
parent 9e2c907526
commit bc69a6adb4
4 changed files with 18 additions and 6 deletions
@@ -55,7 +55,8 @@
connectionLookup,
onconnect: onConnectAction,
onconnectstart: onConnectStartAction,
onconnectend: onConnectEndAction
onconnectend: onConnectEndAction,
flowId
} = store;
function onPointerDown(event: MouseEvent | TouchEvent) {
@@ -72,6 +73,7 @@
connectionMode: $connectionMode,
lib: $lib,
autoPanOnConnect: $autoPanOnConnect,
flowId: $flowId,
isValidConnection: $isValidConnection,
updateConnection,
cancelConnection,
@@ -128,7 +130,7 @@
data-handleid={handleId}
data-nodeid={nodeId}
data-handlepos={position}
data-id="{nodeId}-{id || null}-{type}"
data-id="{flowId}-{nodeId}-{id || null}-{type}"
class={cc([
'svelte-flow__handle',
`svelte-flow__handle-${position}`,