This repository has been archived by the owner on Dec 24, 2023. It is now read-only.
Release 1.0.2
π Polish
-
fix: revert to number with toFixed(3) (230ec58)
This release reverts #105 and will update the misMatchPercentage from a string back to a number. But, instead of using atoFixed(2)
it usestoFixed(3)
.
The reasons for this are:- the previous implementation with
toFixed()
converts a number into a string and we didn't transform this back to a number. This resulted in updating all tests fromtoEqual(0)
totoEqual('0.00')
which in the end also had issues with bigger or smaller than - the average screen resolution is around 1920x1080. I want this module to be able to detect at least a 10x10 pixel difference.
1920x1080 = 2073600 pixels, a difference of 10x10 is 100 which means 0.005% difference (0.00482253).
Number(0.00482253.toFixed(2))
= 0 andNumber(0.00482253.toFixed(3))
= 0.005
- the previous implementation with
-
chore: update resemble to v4.1.0 - fix tests - remove not needed code (e2dd712)
Update ResembleJS to the latest version 4.1.0