Questions tagged [panzoom]

A JS library for universal support in panning and zooming in the browser. Use this tag when you have a question or issue related to the library.

Panzoom is an open-source library used when you need to support panning or zooming via JS in the browser. It was created by Andrea Kashcha in 2016 and published under the MIT license.

See the library website for more information: https://anvaka.github.io/panzoom/

33 questions
0
votes
0 answers

How to place the transfom origin point of element in center of the view port

I'm trying to make a website where you can zoom and pan. Currently I'm working with the panzoom package, but the user should be able to rotate the scene content around the center of their screen. I know how the transform-origin property works but I…
Robbe Verhoest
  • 71
  • 1
  • 1
  • 10
0
votes
1 answer

Test if point outside pan-zoom bounds

I want to test if the location of a particular SVG element is inside or outside of the currently visible pan-zoom region. If it's outside then I can pan to get it just inside the corresponding border. This sounds like a simple operation, except that…
ACProctor
  • 284
  • 2
  • 17
0
votes
1 answer

Vue panzoom container

I would like to use this plug in to zoom and pan around a number of other components but am struggling to work out the best way to implement https://github.com/timmywil/panzoom It looks like a good library to use I have only just started playing but…
adamprocter
  • 856
  • 1
  • 15
  • 31
1 2
3