@applitools/visual-grid-client
Advanced tools
Comparing version 11.1.1 to 11.1.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [11.1.2](https://github.com/applitools/eyes.sdk.javascript1/compare/@applitools/visual-grid-client@11.1.1...@applitools/visual-grid-client@11.1.2) (2019-02-20) | ||
### Bug Fixes | ||
* **visual-grid-client:** add location to match request for checkRegion ([cb383d5](https://github.com/applitools/eyes.sdk.javascript1/commit/cb383d5)) | ||
## [11.1.1](https://github.com/applitools/eyes.sdk.javascript1/compare/@applitools/visual-grid-client@11.1.0...@applitools/visual-grid-client@11.1.1) (2019-02-20) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@applitools/visual-grid-client", | ||
"version": "11.1.1", | ||
"version": "11.1.2", | ||
"description": "", | ||
@@ -78,3 +78,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "650b64200e78a5c707245c7dce5ebc23b741d55b" | ||
"gitHead": "fd8b852b09bd46687dfbed76d309c74848f2f7dc" | ||
} |
@@ -163,6 +163,10 @@ 'use strict'; | ||
const imageLocationRegion = sizeMode === 'selector' ? selectorRegions[0] : undefined; | ||
const imageLocation = imageLocationRegion | ||
? new Location({x: imageLocationRegion.getLeft(), y: imageLocationRegion.getTop()}) | ||
: undefined; | ||
let imageLocation = undefined; | ||
if (imageLocationRegion) { | ||
imageLocation = imageLocationRegion.getLocation(); | ||
} else if (region) { | ||
imageLocation = region.getLocation(); | ||
} | ||
const {noOffsetRegions, offsetRegions} = calculateMatchRegions({ | ||
@@ -169,0 +173,0 @@ noOffsetSelectors: noOffsetSelectors.all, |
119507
1871