-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathimage-helper.d.ts
26 lines (26 loc) · 992 Bytes
/
image-helper.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { ImageOptions } from "./image-options";
import { INsCapabilities } from "./interfaces/ns-capabilities";
import { IRectangle } from "./interfaces/rectangle";
export declare class ImageHelper {
private _args;
private _imageCropRect;
private _blockOutAreas;
constructor(_args: INsCapabilities);
imageCropRect: IRectangle;
blockOutAreas: IRectangle[];
imageOutputLimit(): ImageOptions;
thresholdType(): ImageOptions;
threshold(thresholdType: any): 0.01 | 10;
delta(): number;
static cropImageDefault(_args: INsCapabilities): {
x: number;
y: any;
width: any;
height: any;
};
private static getOffsetPixels(args);
private runDiff(diffOptions, diffImage);
compareImages(actual: string, expected: string, output: string, valueThreshold?: number, typeThreshold?: any): Promise<boolean>;
clipRectangleImage(rect: IRectangle, path: string): Promise<{}>;
readImage(path: string): Promise<any>;
}