pdf-visual-diff
pdf-visual-diff copied to clipboard
Feature request: return match percent from comparePdfToSnapshot
Currently comparePdfToSnapshot returns true/false and we have to look at the generated heatmap diff to know how much they differed.
If comparePdfToSnapShot could return the equivalent of tolerance [0..1] as well it would be easier to calibrate the appropiate tolerance to use as well as programatically log the difference etc.
It would be a breaking change to make comparePdfToSnapshot return for example { matched: boolean, difference: number}, but maybe worth it?