Table of Contents

Class DndSortingStrategies

Namespace
Velvet
Assembly
Velvet.Docs.dll

The sorting strategies dnd-kit's @dnd-kit/sortable ships.

public static class DndSortingStrategies
Inheritance
object
DndSortingStrategies

Fields

HorizontalList

dnd-kit's horizontalListSortingStrategy, along x.

Rect

dnd-kit's rectSortingStrategy, the default: every item takes the rect of the slot the moved order puts it in, scaled to that slot's size.

RectSwapping

dnd-kit's rectSwappingStrategy: the dragged item and the one it is over trade places.

VerticalList

dnd-kit's verticalListSortingStrategy: the items between the dragged one and the one it is over shift by its height and the gap beside them.