mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-13 17:26:22 +00:00
Adds Blender-style auto-connect when a single dragged node is released over a noodle. Implemented as a small extension that subscribes to a new graph interaction hook bus and reuses layoutStore.queryLinkAtPoint for spatial-indexed hit-testing — zero extra render work. - new graphInteractionHooks event bus (nodeDragMove, nodeDragEnd) for hot-path subscribers - useNodeDrag emits drag events with canvas-space pointer position - useDropOnLink composable enforces Blender's rules: single closest noodle, target node must have 0 connections, both input and output type matches required, connect to first matching slot, single undo group - ADR 0009 proposes a culling contract for the Vue-node renderer to make this feature's spatial-index reliance a system-wide guarantee