UNPKG

hana-img-viewer

Version:

A lightweight and easy-to-use image previewer for Vue 3

11 lines (10 loc) 412 B
import { Ref } from 'vue'; import { ImgViewerProps } from '../types'; export declare function useTransformer(targetRef: Ref<HTMLElement | null>, props: ImgViewerProps): { handleWheel: (event: WheelEvent) => void; handleTouchStart: (e: TouchEvent) => void; handleDblclick: () => void; handleMouseDown: (e: MouseEvent) => void; initTransformer: () => void; cleanupListeners: () => void; };