panzoom icon indicating copy to clipboard operation
panzoom copied to clipboard

How to initialize PanZoom element in center of parent

Open alekbless opened this issue 5 years ago • 3 comments

I want to calculate the width and height of the parent and set initial zoomLevel to fit the screen.

Did anyone solve this with this package?

This issue managed to do this with a combination of moveTo and ZoomAbs: https://github.com/anvaka/panzoom/issues/155

alekbless avatar Feb 05 '20 14:02 alekbless

@alekbless can you give any example of it

satwiks avatar Feb 07 '20 14:02 satwiks

https://stackoverflow.com/a/57715145/5724889

navneetsingh-cpu avatar Feb 12 '20 19:02 navneetsingh-cpu

https://stackoverflow.com/questions/57712303/how-to-initially-center-an-image-inside-inline-block-container-when-using-panzoo/57715145#57715145

bjsteven avatar May 07 '20 06:05 bjsteven