UNPKG

pixel-buffer-diff

Version:

Pbd (Pixel Buffer Diff) is a pixel buffer diff library designed for visual regression tests. Pbd is 8-10x faster than Pixelmatch and works as a drop-in replacement. Update your package.json, and import, to save significant time and money on your visual re

14 lines 610 B
export type Result = { diff: number; cumulatedDiff: number; hash: number; }; export type Options = { threshold: number; cumulatedThreshold?: number; enableMinimap?: boolean; mode?: string; }; export declare const diffImageDatas: (baseline: ImageData, candidate: ImageData, diff: ImageData, options: Options) => Result; export declare const diff: (baseline8: Uint8Array | Uint8ClampedArray, candidate8: Uint8Array | Uint8ClampedArray, diff8: Uint8Array | Uint8ClampedArray, width: number, height: number, options?: Options) => Result; //# sourceMappingURL=index.d.ts.map