@appium/images-plugin 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/compare.d.ts +1 -25
- package/build/lib/compare.d.ts.map +1 -1
- package/package.json +4 -4
package/build/lib/compare.d.ts
CHANGED
|
@@ -1,29 +1,5 @@
|
|
|
1
1
|
export type OccurrenceResult = import('@appium/opencv').OccurrenceResult;
|
|
2
|
-
|
|
3
|
-
* Performs images comparison using OpenCV framework features.
|
|
4
|
-
* It is expected that both OpenCV framework and opencv4nodejs
|
|
5
|
-
* module are installed on the machine where Appium server is running.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} mode - One of possible comparison modes:
|
|
8
|
-
* matchFeatures, getSimilarity, matchTemplate
|
|
9
|
-
* @param {string} firstImage - Base64-encoded image file.
|
|
10
|
-
* All image formats, that OpenCV library itself accepts, are supported.
|
|
11
|
-
* @param {string} secondImage - Base64-encoded image file.
|
|
12
|
-
* All image formats, that OpenCV library itself accepts, are supported.
|
|
13
|
-
* @param {object} [options] - The content of this dictionary depends
|
|
14
|
-
* on the actual `mode` value. See the documentation on `@appium/support`
|
|
15
|
-
* module for more details.
|
|
16
|
-
* @returns {Promise<object|object[]>} The content of the resulting dictionary depends
|
|
17
|
-
* on the actual `mode` and `options` values. See the documentation on
|
|
18
|
-
* `@appium/support` module for more details.
|
|
19
|
-
* @throws {Error} If required OpenCV modules are not installed or
|
|
20
|
-
* if `mode` value is incorrect or if there was an unexpected issue while
|
|
21
|
-
* matching the images.
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* @type {import('@appium/types').PluginCommand<[string, string, string, object|undefined], Promise<OccurrenceResult>>}
|
|
25
|
-
*/
|
|
26
|
-
export function compareImages(mode: import("@appium/types").NextPluginCallback, firstImage: [string, string, string, any], secondImage: unknown, options?: unknown): Promise<any>;
|
|
2
|
+
export function compareImages(next: import("@appium/types").NextPluginCallback, driver: [string, string, string, any], ...args: Promise<import("@appium/opencv").OccurrenceResult>): Promise<any>;
|
|
27
3
|
export const DEFAULT_MATCH_THRESHOLD: 0.4;
|
|
28
4
|
export const MATCH_TEMPLATE_MODE: "matchTemplate";
|
|
29
5
|
export const MATCH_FEATURES_MODE: "matchFeatures";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../lib/compare.js"],"names":[],"mappings":"+BA+Fa,OAAO,gBAAgB,EAAE,gBAAgB;
|
|
1
|
+
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../lib/compare.js"],"names":[],"mappings":"+BA+Fa,OAAO,gBAAgB,EAAE,gBAAgB;AATrD,kMAGqB;AAjFtB,0CAAoC;AAFpC,kDAA4C;AAF5C,kDAA4C;AAC5C,kDAA4C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/images-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Plugin for working with images and image elements in Appium",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@appium/opencv": "^2.0.
|
|
42
|
+
"@appium/opencv": "^2.0.7",
|
|
43
43
|
"lodash": "4.17.21",
|
|
44
|
-
"lru-cache": "7.
|
|
44
|
+
"lru-cache": "7.17.0",
|
|
45
45
|
"source-map-support": "0.5.21"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "7b4935632222123a4fa7422461f6312f1f0dfbe4",
|
|
62
62
|
"typedoc": {
|
|
63
63
|
"entryPoint": "./lib/plugin.js"
|
|
64
64
|
}
|