# d-panzoom

> A Derby JS component for jQuery Panzoom.

Latest version **0.1.3** (published 2014-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install d-panzoom
pnpm add d-panzoom
yarn add d-panzoom
bun add d-panzoom
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2014-11-11 |
| First published | 2014-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dennis Torres |
| Maintainers | psirenny |
| Keywords | derby, image, pan, scale, zoom |

## Links

- npm: https://www.npmjs.com/package/d-panzoom
- Repository: https://github.com/psirenny/d-panzoom
- Issues: https://github.com/psirenny/d-panzoom/issues
- npm.io page: https://npm.io/package/d-panzoom

## 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

- 0.1.3 (latest) — 2014-11-11
- 0.1.2 — 2014-07-26
- 0.1.1 — 2014-07-24
- 0.1.0 — 2014-07-24

## README

Derby Panzoom
=============

A [Derby JS](http://derbyjs.com) component for [jQuery Panzoom](https://github.com/timmywil/jquery.panzoom).
Refer to the jQuery Panzoom docs for details about options and events.

Installation
------------

    $ npm install d-panzoom --save

Dependencies
------------

This component requires [jQuery Panzoom](https://github.com/timmywil/jquery.panzoom) in order to work.
It does not include the script for you. You must include it on the page.

Usage
-----

Create a view:

    <index: element="panzoom">
      <img alt="" as="image" src="{{@src}}">
      <button on-click="zoom()" type="button">Zoom in</button>
      <button on-click="zoom(true)" type="button">Zoom out</button>
      <label>Slide to zoom in or out</label>
      <input as="range" type="range">
      <button on-click="reset()">Reset</button>

Associate the view with the component:

    app.use('panzoom', require('d-panzoom'));

Use the view:

    <Scripts:>
      <script src="jquery.panzoom.js">

    <Body:>
      <view name="panzoom" minScale="1" maxScale="5" src="..."></view>

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