react-easy-sort
Version:
A React component to sort items in lists or grids
9 lines • 403 B
TypeScript
import { Point } from './types';
/**
* This function check if a given point is inside of the items rect.
* If it's not inside any rect, it will return the index of the closest rect
*/
export declare const findItemIndexAtPosition: ({ x, y }: Point, itemsRect: DOMRect[], { fallbackToClosest }?: {
fallbackToClosest?: boolean | undefined;
}) => number;
//# sourceMappingURL=helpers.d.ts.map