bumbu/svg-pan-zoom
JavaScript library that enables panning and zooming of an SVG in an HTML document, with mouse events or custom JavaScript hooks observed · 2026-08-28
Health v2 · maintenance only
51/100
- Activity 62
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4671
- days_rel: n/a
- days_push: 229
- n_releases_24m: 0
Adoption not part of the score
1971 stars · 393 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A JavaScript library that adds panning and zooming to SVG images embedded in HTML documents, via mouse scroll, double-click, touch gestures, or programmatic API calls. It supports inline SVGs as well as SVGs loaded through object or embed elements, with optional on-screen zoom controls and onPan/onZoom event hooks.
Use cases
- add pan and zoom to an inline SVG diagram in a web page
- make an SVG map pannable and zoomable with mouse wheel and touch
- control SVG zoom programmatically from JavaScript
- add on-screen zoom controls to an embedded SVG
- listen for pan and zoom events on an SVG viewer
- enable pinch-to-zoom on SVGs for mobile users
When to choose
- you need simple, dependency-free pan/zoom for SVG content in the browser
- you want both mouse and touch support with a small JavaScript API
- you need cross-browser support for inline and embedded SVGs
When to avoid
- you need pan/zoom for raster images or canvas rather than SVG
- you need advanced features like rotation, deep-zoom tiling, or WebGL rendering
- you are building a full-featured map application where a mapping library fits better
Facets
library · maturity maintenance
ui-components animation web-development frontend graphics browser cross-platform svg pan zoom javascript touch-events
3 sources
- readme: https://github.com/bumbu/svg-pan-zoom · fetched 2026-08-28 · 3e19997b4d45
- homepage: https://github.com/ariutta/svg-pan-zoom#demos · fetched 2026-08-29 · 762a0743f5b8
- registry_npm: https://registry.npmjs.org/svg-pan-zoom · fetched 2026-08-29 · 649d7360287c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| bumbu/svg-pan-zoom | main | 51 |
For agents
markdown · JSON · MCP: product_card(name="bumbu/svg-pan-zoom")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem