Files

16 lines
828 B
TypeScript
Raw Normal View History

import { type Canvas, type CanvasEvents } from 'fabric';
/**
* Register this handler on canvas.on('pinch', pinchEventHandler);
* To get an out of the box functionality for the pinch to zoom
*/
export declare function pinchEventHandler(this: Canvas, { scale, target, scenePoint }: CanvasEvents['pinch']): void;
export declare function rotateEventHandler(this: Canvas, { rotation, target }: CanvasEvents['rotate']): void;
export declare const tripleTapGesture: (canvas: Canvas) => any;
export declare const doubleTapGesture: (canvas: Canvas) => any;
export declare const pinchGesture: (canvas: Canvas) => any;
export declare const rotateGesture: (canvas: Canvas) => any;
/**
* Add a serie of gestures recognition on the canvas
*/
export declare const addGestures: (canvas: Canvas) => void;
//# sourceMappingURL=index.d.ts.map