@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
Version:
An optional Pragmatic drag and drop package that enables rapid migration from react-beautiful-dnd to Pragmatic drag and drop
12 lines (11 loc) • 332 B
TypeScript
import type { Direction } from 'react-beautiful-dnd';
/**
* Computes the distance between two `DOMRect` instances.
*
* This is the shortest distance from the end of one to the start of the next.
*/
export declare function getDistance({ a, b, direction, }: {
a: DOMRect;
b: DOMRect;
direction: Direction;
}): number;