UNPKG

fluid-dnd

Version:

An agnostic drag and drop library to sort all kind of lists. With current support for vue, react and svelte

8 lines (7 loc) 611 B
import { DragMouseTouchEvent, ElementPosition, OffsetCoordinate, TransformEvent } from '../../../index'; import { CoordinateMap, Direction } from '..'; export declare const usePositioning: (draggedElement: HTMLElement, coordinateTransforms: CoordinateMap[]) => readonly [(element: HTMLElement, parent: HTMLElement, pagePosition: { pageX: number; pageY: number; }, direction?: Direction) => void, (event: DragMouseTouchEvent, element: HTMLElement) => void]; export declare const getTransformState: (event: TransformEvent, element: HTMLElement, draggable: Element) => [ElementPosition, OffsetCoordinate];