UNPKG

svg-zoom-drag-vue-directives

Version:

Provide two Vue custom directives that are compatible with Vue 2 and Vue 3.

10 lines (9 loc) 830 B
import { Vue2, App } from "vue-demi"; /** create a `v-svgWheel` directive for a Vue app, allows the user to control the zoom in and out of an SVG image using the mouse wheel. */ export declare function svgWheel(app: typeof Vue2): void; /** create a `v-svgWheel` directive for a Vue app, allows the user to control the zoom in and out of an SVG image using the mouse wheel. */ export declare function svgWheel(app: App<Element>): void; /** create a `v-svgDrag` directive for a Vue app, allows the user to drag the SVG image by holding down the mouse and moving the cursor. */ export declare function svgDrag(app: typeof Vue2): void; /** create a `v-svgDrag` directive for a Vue app, allows the user to drag the SVG image by holding down the mouse and moving the cursor. */ export declare function svgDrag(app: App<Element>): void;