Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

panzoom

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

panzoom - npm Package Compare versions

Comparing version 9.2.1 to 9.2.2

2

index.d.ts

@@ -71,2 +71,4 @@ declare module "panzoom" {

setTransformOrigin: (newTransformOrigin: TransformOrigin) => void;
getZoomSpeed: () => number;
setZoomSpeed: (number) => void;
}

@@ -73,0 +75,0 @@

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc