Holger-Will / SVGZoomAndPan

A very simple zoom and pan library for svg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVGZoomAndPan

A very simple zoom and pan library for SVG

usage

this is just one simple function, add it to your project and call addSVGZoomAndPan(mysvg) passing a reference to an svg element.

view the example

how it works

this zoom and pan library uses the svg native currentTranslate and currenScale API for zoomin and panning. It does not add anything to your SVG and it dos not alter any of your code. It just manipulates to two above mentioned APIs.

About

A very simple zoom and pan library for svg

License:MIT License


Languages

Language:JavaScript 100.0%