gregziegan / goat

Annotate Images (or goats) On The Web™
http://gregziegan.github.io/goat
MIT License
74 stars 9 forks source link

Resizing while holding shift now equalizes shaped annotations, clips line annotations #60

Closed gregziegan closed 7 years ago

gregziegan commented 7 years ago

Refactor and remove the concept of ShapeMode and LineMode. Really, shift is the only modifier of the drawing. I was duplicating this info (and it could get out of sync by duplicating) with the union type. Relying on isPressed Shift keyboardState is much more reliable.