Commit Graph

7 Commits

Author SHA1 Message Date
a168d1cf8d big fixes, review 2021-08-12 19:36:35 +10:00
97f4c03602 refactor, better text editing 2021-08-12 11:52:40 +10:00
ca8b9eeabf reviewed canvas to computed 2021-08-08 09:45:37 +10:00
Fred Akers
1bcfedaf28
Fixbrushhistory (#9)
* fix brush history redraw, clearRect use right width heights

* fix brush history redraw, clearRect user proper width heights
2021-08-08 09:42:05 +10:00
Fred Akers
e43f564e8c
Some small fixes (#8)
* Cleanup toolCtx clearing and only do the canvas width height

* fix select bug where clicking after making a selection draws another rectangle

* remove unnecessary tool canvas clear

* clear select rectangle with clicking again

* remove uneeded toolCtx.stroke()s

* brush canvas only clear needed width, height. don't need to stroke.

* replace timers with requestAnimationFrame for smother animation

https://flaviocopes.com/requestanimationframe/

* skip running mousemove code if the mouse is still inside the last block
2021-08-08 08:36:00 +10:00
9cf63688cc better scrolling for larger brushes 2021-08-07 16:05:54 +10:00
4439b3b0bb basic block editor in main brush, better brush preview 2021-08-07 15:36:32 +10:00