fluid-dnd
Version:
An agnostic drag and drop library to sort all kind of lists. With current support for vue, react and svelte
15 lines (14 loc) • 713 B
TypeScript
export declare const START_DRAG_EVENT = "startDrag";
export declare const DRAG_EVENT = "drag";
export declare const START_DROP_EVENT = "startDrop";
export declare const DROP_EVENT = "drop";
export declare const TEMP_CHILD_CLASS = "temp-child";
export declare const draggableTargetTimingFunction = "cubic-bezier(0.2, 0, 0, 1)";
export type DraggingEvent = typeof DRAG_EVENT | typeof START_DRAG_EVENT;
export type DropEvent = typeof DROP_EVENT | typeof START_DROP_EVENT;
export type DragAndDropEvent = DraggingEvent | DropEvent | 'remove' | 'insert';
export declare const IsDropEvent: (event: DragAndDropEvent) => event is DropEvent;
export declare const NONE_TRANSLATE: {
height: number;
width: number;
};