A typescript package that allows you to draw in a canvas HTML element, straightforward to use and extremely lightweight (~11KBs).

I initially started to work on this package for another project because I didn't find a good alternative that fit my needs, being clutter free and simple to use. It's built in typescript and it has no dependencies, you can just get the minified file and link it your page to make it work, you can also include it in your React or Vue project like I did here.

Features

  • Lightweight (~11KB minified)
  • Simplify canvas APIs
  • Bucket tool
  • Events (draw, fill, etc. )
  • Touch support
  • Undo and redo

You can find a pretty simple example of it down here and the source code with the instruction on how to use it on Github!

Clicks: 0Redraws: 0