# vue-zooming-image

> A vue component for zooming into an image based on the position of the cursor

Latest version **1.0.0** (published 2020-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-zooming-image
pnpm add vue-zooming-image
yarn add vue-zooming-image
bun add vue-zooming-image
```

## 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 | 1.0.0 |
| Published | 2020-10-12 |
| First published | 2020-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 53.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Marc Treiber |
| Maintainers | marctr |
| Keywords | vue, vuejs, vue-zooming-image, image, zoom |

## Links

- npm: https://www.npmjs.com/package/vue-zooming-image
- Repository: https://github.com/MarcTr/vue-zooming-image
- Homepage: https://github.com/MarcTr/vue-zooming-image#readme
- Issues: https://github.com/MarcTr/vue-zooming-image/issues
- npm.io page: https://npm.io/package/vue-zooming-image

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [core-js](https://npm.io/package/core-js.md) ^3.6.5

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-10-12

## README

# vue-zooming-image
A simple vue component to hold an image which will zoom towards the position of the cursor. Originally written to hold preview thumbnails in conjunction with a lightbox.


## Demo
[vue-zooming-image Demo](https://marctr.github.io/vue-zooming-image/)

## Installation via NPM
```
npm i vue-zooming-image
```

## Usage
```
<template>
  <div id="app">
    <ZoomingImage 
      src="./image.png"
      width="375px"
      height="250px"> 
      <div>Overlay content</div>
    </ZoomingImage>
  </div>
</template>

<script>
import ZoomingImage from 'vue-zooming-image'

export default {
  name: 'App',
  components: {
    ZoomingImage
  }
}
</script>
```

## Options

### Props
|Prop         | Description                       |
|-------------|-----------------------------------|
|src          | Path to the image to display      |
|width        | width of the image (in pixels)    |
|height       | height of the image (in pixels)   | 


### Slots
The component provides a single, unnamed slot as an overlay for the image.

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