# vue3-zoom-pan-pinch

> vue3 zoom and pan

Latest version **1.0.2** (published 2023-12-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue3-zoom-pan-pinch
pnpm add vue3-zoom-pan-pinch
yarn add vue3-zoom-pan-pinch
bun add vue3-zoom-pan-pinch
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-12-06 |
| First published | 2023-12-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 27.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | DummyEkko |
| Maintainers | dummy-ekko |
| Keywords | vue3, zoom, pan, pinch, touch, scale |

## Links

- npm: https://www.npmjs.com/package/vue3-zoom-pan-pinch
- Repository: https://github.com/DummyEkko/vue3-zoom-pan-pinch
- Homepage: https://github.com/DummyEkko/vue3-zoom-pan-pinch#readme
- Issues: https://github.com/DummyEkko/vue3-zoom-pan-pinch/issues
- npm.io page: https://npm.io/package/vue3-zoom-pan-pinch

## Recent versions

- 1.0.2 (latest) — 2023-12-06
- 1.0.1 — 2023-12-01

## README

# vue3-zoom-pan-pinch

> Super fast and light vue3 npm package for zooming, panning and pinching html elements in easy way


## Development

```bash

pnpm install

pnpm --filter example run dev

```

## Props of TransformComponent

| Props            | Default |     Type |
| :--------------- | :-----: | -------: |
| defaultPositionX |  0      |   number |
| defaultPositionY |  0      |   number |
| defaultScale     |  1      |   number |
| options          |  {...}  |   object |
| wheel            |  {...}  |   object |
| pan              |  {...}  |   object |
| pinch            |  {...}  |   object |


#### Options prop elements

| Props            | Default |         Type |
| :--------------- | :-----: | -----------: |
| disabled         |  false  |      boolean |
| minPositionX     |  null   | null, number |
| maxPositionX     |  null   | null, number |
| minPositionY     |  null   | null, number |
| maxPositionY     |  null   | null, number |
| minScale         |    1    |       number |
| maxScale         |    8    |       number |
| limitToBounds    |  true   |      boolean |
| centerContent    |  true   |      boolean |

#### Wheel prop elements

| Props                | Default |    Type |
| :------------------- | :-----: | ------: |
| disabled             |  false  | boolean |
| step                 |   6.5   |  number |
| wheelEnabled         |  true   | boolean |
| touchPadEnabled      |  true   | boolean |
| disableLimitsOnWheel |  true   | boolean |

#### Pan prop elements

| Props                | Default |    Type |
| :------------------- | :-----: | ------: |
| disabled             |  false  | boolean |
| lockAxisX            |  false  | boolean |
| lockAxisY            |  false  | boolean |
| limitToWrapperBounds |  false  | boolean |

#### Pinch prop elements

| Props    | Default |    Type |
| :------- | :-----: | ------: |
| disabled |  false  | boolean |
| step     |    1    |  number |

---
_Source: https://npm.io/package/vue3-zoom-pan-pinch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
