Skip to Content
Vue Flow v2 is here and joins xyflow! Read more here →
ReferenceTypes

NodeDragEvent

The NodeDragEvent type is the payload of the node drag events — @node-drag-start, @node-drag, and @node-drag-stop. It carries the native event, the primary Node, and the full set of nodes being dragged.

Fields

NameTypeDefault
eventMouseTouchEvent

The DOM event driving the drag.

nodeNodeType

The node being dragged.

nodesNodeType[]

All nodes being dragged together (the grabbed node plus any others in the selection).