uiik
Version:
A UI interactions kit includes draggable, splittable, rotatable, selectable, etc.
9 lines (8 loc) • 506 B
TypeScript
import { DraggableOptions, Uii } from "./types";
export declare class Draggable extends Uii {
#private;
constructor(els: string | HTMLElement | Array<string | HTMLElement>, opts?: DraggableOptions);
bindEvent(bindTarget: Element, opts: DraggableOptions, handleMap: WeakMap<Element, Element>): void;
onOptionChanged(opts: Record<string, any>): void;
}
export declare function newDraggable(els: string | HTMLElement | Array<string | HTMLElement>, opts?: DraggableOptions): Draggable;