@applitools/screenshoter 3.4.3 → 3.4.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/screenshoter",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"description": "Applitools universal screenshoter for web and native applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -70,17 +70,17 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@applitools/logger": "1.1.
|
|
74
|
-
"@applitools/snippets": "2.4.
|
|
75
|
-
"@applitools/utils": "1.3.
|
|
73
|
+
"@applitools/logger": "1.1.13",
|
|
74
|
+
"@applitools/snippets": "2.4.3",
|
|
75
|
+
"@applitools/utils": "1.3.9",
|
|
76
76
|
"jpeg-js": "0.4.4",
|
|
77
77
|
"png-async": "0.9.4"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@applitools/bongo": "^2.1.5",
|
|
81
|
-
"@applitools/driver": "^1.9.
|
|
81
|
+
"@applitools/driver": "^1.9.6",
|
|
82
82
|
"@applitools/scripts": "1.1.0",
|
|
83
|
-
"@applitools/spec-driver-webdriverio": "1.2.
|
|
83
|
+
"@applitools/spec-driver-webdriverio": "1.2.13",
|
|
84
84
|
"@applitools/test-utils": "1.3.3",
|
|
85
85
|
"appium": "^1.22.3",
|
|
86
86
|
"chromedriver": "^101.0.0",
|
|
@@ -53,7 +53,7 @@ async function takeStitchedScreenshot({
|
|
|
53
53
|
: scrollerRegion
|
|
54
54
|
logger.log('Target region calculated: ', targetRegion)
|
|
55
55
|
|
|
56
|
-
const cropRegion = await driver.getRegionInViewport(context, targetRegion)
|
|
56
|
+
const cropRegion = utils.geometry.round(await driver.getRegionInViewport(context, targetRegion))
|
|
57
57
|
logger.log('Crop region calculated: ', cropRegion)
|
|
58
58
|
if (utils.geometry.isEmpty(cropRegion)) throw new Error('Screenshot region is out of viewport')
|
|
59
59
|
|
|
@@ -77,7 +77,7 @@ async function takeStitchedScreenshot({
|
|
|
77
77
|
region.width += expectedRemainingOffset.x
|
|
78
78
|
logger.verbose('region after compensation', region)
|
|
79
79
|
}
|
|
80
|
-
region = utils.geometry.
|
|
80
|
+
region = utils.geometry.floor(region)
|
|
81
81
|
|
|
82
82
|
const [initialRegion, ...partRegions] = utils.geometry.divide(region, image.size, overlap)
|
|
83
83
|
logger.verbose('Part regions', partRegions)
|