react-moveable
Version:
A React Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable, Groupable.
7 lines (6 loc) • 586 B
TypeScript
import MoveableGroup from "./MoveableGroup";
import { Able } from "./types";
import MoveableManager from "./MoveableManager";
import { IObject } from "@daybrush/utils";
export declare function triggerChildAble<T extends Able>(moveable: MoveableGroup, able: T, type: keyof T & string, datas: IObject<any>, eachEvent: ((movebale: MoveableManager, datas: IObject<any>) => any) | IObject<any>, callback?: (moveable: MoveableManager<any>, datas: IObject<any>, result: any, index: number) => any): any[];
export declare function directionCondition(target: HTMLElement | SVGElement): boolean;