Comparing version 9.2.1 to 9.2.2
@@ -71,2 +71,4 @@ declare module "panzoom" { | ||
setTransformOrigin: (newTransformOrigin: TransformOrigin) => void; | ||
getZoomSpeed: () => number; | ||
setZoomSpeed: (number) => void; | ||
} | ||
@@ -73,0 +75,0 @@ |
{ | ||
"name": "panzoom", | ||
"version": "9.2.1", | ||
"version": "9.2.2", | ||
"description": "Extensible, mobile friendly pan and zoom framework (supports DOM and SVG).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -189,2 +189,10 @@ # panzoom [![Build Status](https://travis-ci.org/anvaka/panzoom.svg)](https://travis-ci.org/anvaka/panzoom) | ||
## Get current transform (scale, offset) | ||
To get the current zoom (scale) level use the `getTransform()` method: | ||
``` | ||
console.log(panzoom.getTransform()); // prints {scale: 1.2, x: 10, y: 10} | ||
``` | ||
## Fixed transform origin when zooming | ||
@@ -191,0 +199,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
649959
3011
406