aaronland / fingerprint

None of the other digital drawing tools were my jam, so I wrote my own.
BSD 3-Clause "New" or "Revised" License
11 stars 0 forks source link

Zoom in and out of canvas #1

Open thisisaaronland opened 1 year ago

thisisaaronland commented 1 year ago

There were some early tests using escobar5/raphael-pan-zoom which:

straup commented 1 year ago

https://dmitrybaranovskiy.github.io/raphael/reference.html#Paper.setViewBox

There are two things to figure out:

  1. UI/UX for taking raphael.sketchpad out of editing mode and listening for pan/zoom events
  2. Adjusting the offset (_offset) for the pen in raphael.sketchpad