trim-canvas
trim-canvas copied to clipboard
A tiny (< 100 LoC) library for trimming whitespace from a canvas element with no dependencies
Potential downstream request from https://github.com/agilgur5/react-signature-canvas/issues/22 The `trimCanvas` function would have to accept a second argument for the color and default to transparency detection. Since this hasn't really come up in...
i.e. `trimCanvas(canvas, {duplicate: true})`. Given the intense demand seen by the number of upvotes on https://github.com/szimek/signature_pad/issues/49#issuecomment-260976909 it seems like it should be included by default. I'm also reading through my...
- ~(refactor): use const everywhere instead of let …~ - (feat): add built-in option to clone the canvas … - (feat): add support for alternate canvas implementations … - (docs):...
hi, I used this script in my app, After erasing ended, all image returns with erased parts removed and then module takes canvas and returns canvas. However if you use...