Skip to content

v3.0.0

Compare
Choose a tag to compare
@bumbu bumbu released this 27 Nov 07:02
· 171 commits to master since this release

This is a major version release. Certain API methods calls are not compatible with version 2.3.x.
New API methods and configuration options are added.

Main changes are:

  • Zoom is now relative to initial SVG zoom scale
  • Improved viewport selection/creation. It is now possible to specify your own CSS selector for viewport.
  • Ability to override mouse and touch events. An example is available how to use svg-pan-zoom with Hammer.js. Any other library that processes events may be used.
  • Ability to cancel pan and zoom from before callbacks
  • destroy API method
  • updateBBox API method for cases when SVG content changes and viewport bounding box is changed
  • getSizes API method that exposes some internal state values (useful for customizations)
  • refreshRate configuration option. Using window.requestAnimationFrame by default (if available).