UNPKG

@atlaskit/pragmatic-drag-and-drop-hitbox

Version:

An optional package for Pragmatic drag and drop that enables the attaching of interaction information to a drop target

9 lines (8 loc) • 309 B
import type { Edge } from './types'; export declare function reorderWithEdge<Value>({ list, startIndex, closestEdgeOfTarget, indexOfTarget, axis, }: { list: Value[]; closestEdgeOfTarget: Edge | null; startIndex: number; indexOfTarget: number; axis: 'vertical' | 'horizontal'; }): Value[];