Table of Contents

Constructor DndContextState

Namespace
Velvet
Assembly
Velvet.Docs.dll

DndContextState(DraggableInfo?, DroppableInfo?, IReadOnlyList<DndCollision>, Rect?)

What Hooks.UseDndContext returns: the drag the nearest V.DndContext holds, dnd-kit's public context. Active is null while no drag is active; ActiveNodeRect is the source's rect at activation, panel space.

public DndContextState(DraggableInfo? Active, DroppableInfo? Over, IReadOnlyList<DndCollision> Collisions, Rect? ActiveNodeRect)

Parameters

Active DraggableInfo
Over DroppableInfo
Collisions IReadOnlyList<DndCollision>
ActiveNodeRect Rect?