Table of Contents

Struct DndCollisionQuery

Namespace
Velvet
Assembly
Velvet.Docs.dll

Everything a collision strategy may consider. Candidates are pre-filtered: in-scope, enabled, attached, on the source's panel or on another runtime panel of the tree (their rects mapped into the source's panel space), and the active draggable's own id excluded unless it is a V.Sortable item (any other element that is both draggable and droppable under one id never collides with itself).

public readonly struct DndCollisionQuery

Constructors

DndCollisionQuery(Rect, Vector2, IReadOnlyList<DndDroppableRect>)

Properties

ActiveRect

The source's activation-time worldBound translated by the current pointer delta — correct even under None, where the source element itself never moves.

Droppables

In registration order: a droppable that unmounts and mounts again goes to the end, as in dnd-kit's DroppableContainersMap.

HasPointer

False for a drag no pointer drives, such as one DndKeyboardSensor started: dnd-kit hands its strategies no pointer coordinates there, and PointerWithin collides with nothing. PointerPosition is then the active rect's center.

PointerPosition

Current pointer position, panel space.