Skip to content

Just another pan and zoom library for SVG and DOM elements

License

Notifications You must be signed in to change notification settings

abhishekkhandait/pan-n-zoom

Repository files navigation

Pan-n-Zoom

Greenkeeper badge travis-ci badge downloads badge

A micro library to enable zoom and pan on any DOM or SVG element with mouse and touch events

Install

npm install pan-n-zoom

Usage

import * as panzoom from 'pan-n-zoom';

const element = document.querySelector('#elementid');
panzoom.init(element);

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D