pdf-visual-diff icon indicating copy to clipboard operation
pdf-visual-diff copied to clipboard

Feature request: return match percent from comparePdfToSnapshot

Open vaernion opened this issue 7 months ago • 1 comments

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?

vaernion avatar Mar 11 '25 14:03 vaernion