UNPKG

react-moveable

Version:

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

35 lines (34 loc) 1.55 kB
import { ResizableProps, OnResizeGroup, Renderer, DraggableProps, OnDrag, OnResizeStart, SnappableState } from "../types"; import MoveableManager from "../MoveableManager"; import MoveableGroup from "../MoveableGroup"; import { directionCondition } from "../groupUtils"; declare const _default: { name: string; dragControlOnly: boolean; updateRect: boolean; canPinch: boolean; render(moveable: MoveableManager<Partial<ResizableProps>, {}>, React: Renderer): any[] | undefined; dragControlCondition: typeof directionCondition; dragControlStart(moveable: MoveableManager<ResizableProps & DraggableProps, SnappableState>, e: any): false | OnResizeStart; dragControl(moveable: MoveableManager<ResizableProps & DraggableProps, {}>, e: any): { target: SVGElement | HTMLElement; width: any; height: any; offsetWidth: any; offsetHeight: any; direction: any; dist: number[]; datas: any; delta: number[]; clientX: any; clientY: any; isPinch: boolean; drag: OnDrag; } | undefined; dragControlEnd(moveable: MoveableManager<ResizableProps & DraggableProps, {}>, { datas, isDrag, clientX, clientY }: any): any; dragGroupControlCondition: typeof directionCondition; dragGroupControlStart(moveable: MoveableGroup, e: any): false | OnResizeStart; dragGroupControl(moveable: MoveableGroup, e: any): OnResizeGroup | undefined; dragGroupControlEnd(moveable: MoveableGroup, e: any): any; }; export default _default;