# v-finger-mk42

> Use AlloyFinger v0.1.10

Latest version **3.0.1** (published 2024-03-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install v-finger-mk42
pnpm add v-finger-mk42
yarn add v-finger-mk42
bun add v-finger-mk42
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2024-03-02 |
| First published | 2018-03-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 67 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | ssshooter |
| Maintainers | ssshooter |

## Links

- npm: https://www.npmjs.com/package/v-finger-mk42
- Repository: https://github.com/SSShooter/v-finger
- Homepage: https://github.com/SSShooter/v-finger#readme
- Issues: https://github.com/SSShooter/v-finger/issues
- npm.io page: https://npm.io/package/v-finger-mk42

## Recent versions

- 3.0.1 (latest) — 2024-03-02
- 3.0.0 — 2021-09-23
- 2.0.4 — 2019-03-08
- 2.0.3 — 2019-03-07
- 2.0.2 — 2019-03-07
- 2.0.1 — 2019-03-07
- 2.0.0 — 2019-03-07
- 1.0.11 — 2018-06-22
- 1.0.10 — 2018-03-15
- 1.0.9 — 2018-03-13
- 1.0.8 — 2018-03-13
- 1.0.7 — 2018-03-12
- 1.0.6 — 2018-03-09
- 1.0.5 — 2018-03-09
- 1.0.4 — 2018-03-08
- … 4 more at https://npm.io/package/v-finger-mk42/versions

## README

## legacy

Use AlloyFinger v0.1.10  

- 1.0.4 add transform.js  
- 1.0.5 fixed "toJSON" is not defined  
- 1.0.6 performance element cache  
- 1.0.7 use babel
- 2.0.3 compatible with PC
- 2.0.4 compatible with macOS

## 3.0

- 3.0.0 适配 Vue 3，Vue 2 代码在 legacy 分支
- 3.0.0 后不运行 rollup 打包，直接指定 lib/index 运行

# v-finger

```html
<img
  style="position:absolute;width: 100%;"
  v-transform
  v-finger:pinch="handlePinch"
  v-finger:doubleTap="handleDoubleTap"
  v-finger:multipointStart="handleMultipointStart"
  v-finger:pressMove="handlePressMove"
  v-finger:touchEnd="handleTouchEnd"
  :src="src"
/>
```

```JavaScript
...
handleXXX(e, el) {
    console.log('event',e)
    console.log('element',el)
    console.log("for pinch" + e.zoom)
    console.log("for pressMove" + e.deltaX + ' ' + e.deltaY);
    console.log("for swipe" + e.direction);
}
...
```

---
_Source: https://npm.io/package/v-finger-mk42 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
