MCPcopy
hub / github.com/clauderic/dnd-kit / move

Function move

packages/helpers/src/move.ts:320–330  ·  view source on GitHub ↗
(
  items: T,
  event: DragDropEventMap<U, V, W>['dragover'] | DragDropEventMap<U, V, W>['dragend']
)

Source from the content-addressed store, hash-verified

318}
319
320export function move<
321 T extends Items | Record<UniqueIdentifier, Items>,
322 U extends Draggable,
323 V extends Droppable,
324 W extends DragDropManager<U, V>,
325>(
326 items: T,
327 event: DragDropEventMap<U, V, W>['dragover'] | DragDropEventMap<U, V, W>['dragend']
328) {
329 return mutate(items, event, arrayMove);
330}
331
332export function swap<
333 T extends Items | Record<UniqueIdentifier, Items>,

Callers 15

constructorMethod · 0.90
move.test.tsFile · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
AppFunction · 0.90
SortableExampleFunction · 0.90

Calls 1

mutateFunction · 0.85

Tested by

no test coverage detected