UNPKG

react-moveable

Version:

A React Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable, Groupable.

9 lines (8 loc) 902 B
import { Able, MoveableGroupInterface, MoveableManagerInterface } from "./types"; export declare function fillChildEvents(moveable: MoveableGroupInterface<any, any>, name: string, e: any): any[]; export declare function triggerChildGesto(moveable: MoveableGroupInterface<any, any>, able: Able, type: string, delta: number[], e: any, isConvert: boolean, ableName: string): { eventParams: any[]; childEvents: any[]; }; export declare function triggerChildAbles<T extends Able>(moveable: MoveableGroupInterface<any, any>, able: T, type: keyof T & string, e: any, eachEvent?: (movebale: MoveableManagerInterface<any, any>, ev: any) => any, callback?: (moveable: MoveableManagerInterface<any, any>, ev: any, result: any, index: number) => any): any[]; export declare function startChildDist(moveable: MoveableGroupInterface, child: MoveableManagerInterface, parentDatas: any, childEvent: any): any;