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

8 lines (7 loc) • 287 B
import type { Edge } from './types'; export declare function getReorderDestinationIndex({ startIndex, closestEdgeOfTarget, indexOfTarget, axis, }: { startIndex: number; closestEdgeOfTarget: Edge | null; indexOfTarget: number; axis: 'vertical' | 'horizontal'; }): number;