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

zoom-zoom-pan

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zoom-zoom-pan

Yup, there are multiple other Pan/Zoom libraries out there (see below). However, I had trouble getting them to lock the panning bounds to the parent element bounding box. This Pan/Zoom implementation also utilizes CSS transforms in order to take advantage

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Allows panning and zooming of any element in an HTML document. Unlike other libraries I've found, this one automatically locks the bounds of zooming/panning to the bounding box of it's parent element. This way your dragable element cannot be dragged out of view. This is a VanillaJS library so will work well in any project.

Yet Another Pan Zoom Library

Yup, there are multiple other Pan/Zoom libraries out there (see below). However, I had trouble getting them to lock the panning bounds to the parent element bounding box. This Pan/Zoom implementation also utilizes CSS transforms in order to take advantage of browser GPU acceleration.

Some other Pan/Zoom libraries

If this library doesn't fit the bill, try one of these:

  • dy/pan-zoom Simple library that gives you access to pan/zoom data through a callback.
  • timmywil/panzoom Just found this one and haven't had the chance to try it out. Looks promising but I can't find it on NPM.
  • PanZoom A DOM/SVG Pan/Zoom library. I was unable to get this to lock to the bounding box I wanted.
  • jquery.panzoom A Pan/Zoom library for jQuery.
  • React SVG Pan Zoom A React implementation of Pan/Zoom.
  • SVG Pan Zoom An SVG Pan/Zoom library.

FAQs

Package last updated on 22 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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