UNPKG

react-moveable

Version:

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

13 lines (12 loc) 881 B
import MoveableManager from "../MoveableManager"; import { WarpableProps, ScalableProps, ResizableProps, Renderer, SnappableProps, SnappableState } from "../types"; declare const _default: { name: string; dragControlOnly: boolean; render(moveable: MoveableManager<ResizableProps & ScalableProps & WarpableProps, {}>, React: Renderer): any[] | undefined; dragControlCondition(target: SVGElement | HTMLElement): boolean; dragControlStart(moveable: MoveableManager<WarpableProps, SnappableState>, { datas, clientX, clientY, inputEvent: { target: inputTarget } }: any): any; dragControl(moveable: MoveableManager<WarpableProps & SnappableProps, SnappableState>, { datas, clientX, clientY, distX, distY }: any): boolean; dragControlEnd(moveable: MoveableManager<WarpableProps, {}>, { datas, isDrag, clientX, clientY }: any): any; }; export default _default;