SVG Zoom And Pan

By Spadar Shut Last update Aug 31, 2010 — Installed 549 times.

Script Summary: Allows to zoom and pan svg images, either opened directly in browser or embedded



Version: 1.0

Script homepage

The script allows to zoom and pan SVG images, either opened directly in browser or embedded via object or iframe. The ones inserted as IMG won't zoom as they don't expose their DOM.

The script has several features:

  • Zoom from center.
  • Turbo mode with Alt key pressed. Speed is configurable, default: 5x.
  • Turning script on/off by pressing Esc (key configurable)

Script settings can be changed quickly in Opera via UJS Manager.

Currently works only in Opera. Doesn't work in Firefox and Chrome as they seem to not load userscripts on SVG documents. If you know how to make it work in all browsers, please contact me.