Gathering detailed insights and metrics for react-zoom-pan-pinch
Gathering detailed insights and metrics for react-zoom-pan-pinch
Gathering detailed insights and metrics for react-zoom-pan-pinch
Gathering detailed insights and metrics for react-zoom-pan-pinch
react-quick-pinch-zoom
A react component that providing multi-touch gestures for zooming and dragging on any DOM element.
@pronestor/react-zoom-pan-pinch
React package for zooming, panning and pinching html elements in an easy way.
react-responsive-pinch-zoom-pan
Enables zooming and panning an image, both mobile and desktop.
react-pinch-zoom-pan
A react component that lets you add pinch-zoom and pan sub components
🖼 React library to support easy zoom, pan, pinch on various html dom elements like <img> and <div>
npm install react-zoom-pan-pinch
Typescript
Module System
Min. Node Version
Node Version
NPM Version
93.9
Supply Chain
94.2
Quality
77
Maintenance
100
Vulnerability
100
License
TypeScript (83.14%)
MDX (14.42%)
JavaScript (1.17%)
CSS (1.15%)
HTML (0.12%)
Total Downloads
43,616,367
Last Day
16,794
Last Week
468,544
Last Month
1,984,376
Last Year
18,985,969
MIT License
1,704 Stars
413 Commits
292 Forks
8 Watchers
8 Branches
47 Contributors
Updated on Jul 03, 2025
Minified
Minified + Gzipped
Latest Version
3.7.0
Package Id
react-zoom-pan-pinch@3.7.0
Unpacked Size
431.13 kB
Size
81.92 kB
File Count
8
NPM Version
8.19.4
Node Version
16.20.2
Published on
Jan 31, 2025
Cumulative downloads
Total Downloads
Last Day
3.2%
16,794
Compared to previous day
Last Week
-6.7%
468,544
Compared to previous week
Last Month
-1.4%
1,984,376
Compared to previous month
Last Year
71%
18,985,969
Compared to previous year
69
Super fast and light react npm package for zooming, panning and pinching html elements in easy way
Do you like this library? Try out other projects
⚡Hyper Fetch - Fetching and realtime data exchange framework.
1npm install --save react-zoom-pan-pinch 2or 3yarn add react-zoom-pan-pinch
1import React, { Component } from "react"; 2 3import { TransformWrapper, TransformComponent } from "react-zoom-pan-pinch"; 4 5const Example = () => { 6 return ( 7 <TransformWrapper> 8 <TransformComponent> 9 <img src="image.jpg" alt="test" /> 10 </TransformComponent> 11 </TransformWrapper> 12 ); 13};
or
1import React, { Component } from "react"; 2 3import { 4 TransformWrapper, 5 TransformComponent, 6 useControls, 7} from "react-zoom-pan-pinch"; 8 9const Controls = () => { 10 const { zoomIn, zoomOut, resetTransform } = useControls(); 11 12 return ( 13 <div className="tools"> 14 <button onClick={() => zoomIn()}>+</button> 15 <button onClick={() => zoomOut()}>-</button> 16 <button onClick={() => resetTransform()}>x</button> 17 </div> 18 ); 19}; 20 21const Example = () => { 22 return ( 23 <TransformWrapper 24 initialScale={1} 25 initialPositionX={200} 26 initialPositionY={100} 27 > 28 {({ zoomIn, zoomOut, resetTransform, ...rest }) => ( 29 <> 30 <Controls /> 31 <TransformComponent> 32 <img src="image.jpg" alt="test" /> 33 <div>Example text</div> 34 </TransformComponent> 35 </> 36 )} 37 </TransformWrapper> 38 ); 39};
MIT © prc5
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 22/30 approved changesets -- score normalized to 7
Reason
3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
54 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More