UNPKG

uiik

Version:

A UI interactions kit includes draggable, splittable, rotatable, selectable, etc.

9 lines (8 loc) 488 B
import { DraggableOptions, Uii } from "./types"; export declare class Draggable extends Uii { #private; constructor(els: string | HTMLElement | Array<string | HTMLElement> | NodeListOf<Element>, opts?: DraggableOptions); bindEvent(bindTarget: Element): void; onOptionChanged(opts: Record<string, any>): void; } export declare function newDraggable(els: string | HTMLElement | Array<string | HTMLElement> | NodeListOf<Element>, opts?: DraggableOptions): Draggable;