obartra / ssim

🖼🔬 JavaScript Image Comparison
http://obartra.github.io/ssim
MIT License
298 stars 14 forks source link

fix: remove DOM as lib dependency for typescript #283

Closed tjoskar closed 4 years ago

tjoskar commented 4 years ago

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.

fix #282

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.

obartra commented 4 years ago

:tada: This PR is included in version 3.3.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: