@applitools/screenshoter
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,3 +7,3 @@ { | ||
"version": "file:../dry-run.tgz", | ||
"integrity": "sha512-Z253MY90q2T362XJaATxQmZ+FJTo4AqfNqiMlAOXIXtPrxt7Zye281IxaLryI3WAsK9Il73MTsUj74xIRI3PAA==", | ||
"integrity": "sha512-UbLMh7r2XVnToo2cXO7uWRC0T630TVvUZ/aEroQnnMMcVivsoJ0A94TKlOgiAINKEuvCrlwvWO51OBP6cspv+g==", | ||
"requires": { | ||
@@ -10,0 +10,0 @@ "@applitools/utils": "1.0.0", |
## 1.0.0 - 2020/12/1 | ||
- Provide functionality to take screenshots (viewport and full) using Applitools driver wrapped | ||
# Change Log | ||
## Unreleased | ||
## 1.0.1 - 2020/12/1 | ||
- round coordinate and size before image operations | ||
## 1.0.0 - 2020/12/1 | ||
- Provide functionality to take screenshots (viewport and full) using Applitools driver wrapper |
{ | ||
"name": "@applitools/screenshoter", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Applitools universal screenshoter for web and native applications", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -127,3 +127,5 @@ const utils = require('@applitools/utils') | ||
return sharp(image1.data, {raw: image1.info}) | ||
.composite([{input: image2.data, raw: image2.info, left: offset.x, top: offset.y}]) | ||
.composite([ | ||
{input: image2.data, raw: image2.info, left: Math.round(offset.x), top: Math.round(offset.y)}, | ||
]) | ||
.raw() | ||
@@ -130,0 +132,0 @@ .toBuffer({resolveWithObject: true}) |
@@ -46,2 +46,11 @@ const utils = require('@applitools/utils') | ||
if (hideCaret && activeElement) await targetContext.focusElement(activeElement) | ||
for (const prevContext of targetContext.path.reverse()) { | ||
const scrollingElement = await prevContext.getScrollRootElement() | ||
if (hideScrollbars) await scrollingElement.restoreScrollbars() | ||
const scrollingState = scrollingStates.shift() | ||
await defaultScroller.restoreState(scrollingState, scrollingElement) | ||
} | ||
await originalContext.focus() | ||
} | ||
@@ -72,3 +81,3 @@ } | ||
element: scrollingElement, | ||
scrollingMode: isScrollable && scrollingMode === 'css' ? 'mixed' : 'scroll', | ||
scrollingMode: isScrollable && scrollingMode === 'css' ? 'mixed' : scrollingMode, | ||
}), | ||
@@ -75,0 +84,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
10310144
1871
0