abhishekkhandait / pan-n-zoom

Just another pan and zoom library for SVG and DOM elements

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Just another pan and zoom library for SVG and DOM elements

License:MIT License


Languages

Language:TypeScript 97.3%Language:JavaScript 2.7%