react-moveable
Version:
A React Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable, Groupable.
11 lines (10 loc) • 981 B
TypeScript
import { Able, MoveableManagerInterface } from "../types";
import { IObject } from "@daybrush/utils";
import Gesto from "gesto";
export declare function triggerAble(moveable: MoveableManagerInterface, moveableAbles: Able[], eventOperations: string[], eventAffix: string, eventType: any, e: any, requestInstant?: boolean): boolean;
export declare function checkMoveableTarget(moveable: MoveableManagerInterface, isControl?: boolean): (e: {
inputEvent: Event;
}, target?: EventTarget | null) => any;
export declare function getTargetAbleGesto(moveable: MoveableManagerInterface, moveableTarget: HTMLElement | SVGElement, eventAffix: string): Gesto;
export declare function getControlAbleGesto(moveable: MoveableManagerInterface, eventAffix: string): Gesto;
export declare function getAbleGesto(moveable: MoveableManagerInterface, target: HTMLElement | SVGElement | Array<HTMLElement | SVGElement>, ableType: string, eventAffix: string, conditionFunctions?: IObject<any>): Gesto;