Skip to content

Instantly share code, notes, and snippets.

View catherinekerr's full-sized avatar

Catherine Kerr catherinekerr

View GitHub Profile
@catherinekerr
catherinekerr / README.md
Last active February 28, 2019 07:15
Zoom, pan, click to center

Zoom, pan, click to center

  • Use the mouse wheel to zoom in/out
  • Use mouse drag to pan canvas
  • Click on circle to enlarge and center in box

With this example, I wanted to solve a three-fold problem:

  1. Scale SVG to fit into smaller window size.