This PR will remove the lib.dom.d.ts dependency. This is necesary in order to use this libabry in a node project that uses typescript. See #282 for more information.
I have just made a copy of ImageData, I saw that all properties (width, height and data) was used but I also saw that ImageData and Matrix are identical except for the type on data. ImageData.data is a Uint8ClampedArray while Matrix.data is a number[]. I guess there is a reason why they both coexists.
This PR will remove the
lib.dom.d.ts
dependency. This is necesary in order to use this libabry in a node project that uses typescript. See #282 for more information.I have just made a copy of
ImageData
, I saw that all properties (width, height and data) was used but I also saw thatImageData
andMatrix
are identical except for the type ondata
.ImageData.data
is aUint8ClampedArray
whileMatrix.data
is anumber[]
. I guess there is a reason why they both coexists.fix #282