UNPKG

fluid-dnd

Version:

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

20 lines (19 loc) 1.71 kB
import { DragMouseTouchEvent, fixedSize } from "../../../index"; type onTouchEvent = "ontouchstart" | "ontouchmove" | "ontouchend"; declare const onMouseEvents: readonly ["onmouseup", "onmousedown", "onmousemove"]; type onMouseEvent = (typeof onMouseEvents)[number]; type TouchEventType = "touchstart" | "touchmove" | "touchend"; declare const mouseEvents: readonly ["mouseup", "mousedown", "mousemove"]; type MouseEventType = (typeof mouseEvents)[number]; type DragEventCallback = (event: DragMouseTouchEvent) => void; export declare const setSizeStyles: (element: HTMLElement | undefined | null, height: number, width: number) => void; export declare const fixSizeStyle: (element: HTMLElement | undefined | null) => void; export declare const moveTranslate: (element: Element | undefined | null, height: number, width: number) => void; export declare const assignDraggingEvent: (element: HTMLElement, onEvent: onMouseEvent | onTouchEvent, callback: DragEventCallback | null) => void; export declare const addDragMouseToucEventListener: (event: TouchEventType | MouseEventType, callback: DragEventCallback | null) => void; export declare const convetEventToDragMouseTouchEvent: (event: MouseEvent | TouchEvent) => DragMouseTouchEvent; export declare const setTranistion: (element: Element | undefined, duration: number, timingFunction?: string, types?: string) => void; export declare const setEventWithInterval: (element: Element | undefined, eventName: "onscroll", callback: () => void) => void; export declare const AddCssStylesToElement: (node: ParentNode, cssCodes: string[]) => void; export declare const setCustomFixedSize: (element: HTMLElement | undefined, fixedProps?: fixedSize) => void; export {};