samizdatco / skia-canvas

A GPU-accelerated 2D graphics environment for Node.js
MIT License
1.7k stars 66 forks source link

fix(types): setter & getter for `src` on `Image` #102

Closed jacobk999 closed 2 years ago

jacobk999 commented 2 years ago

I added a setter and getter for the Image class to reflect its actual functionality. With the current types you are unable to set src to a Buffer.

samizdatco commented 2 years ago

Great catch. Thanks for the fix!