@aspiresys/visor 1.3.0 → 1.3.1

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/dist/index.js CHANGED
@@ -611,7 +611,11 @@ CONF:${m.confidence.toFixed(3)}
611
611
  */
612
612
  async findText(text, index = 0, region) {
613
613
  this.checkConfig();
614
- return await (0, text_1.findText)(text, index, region);
614
+ const match = await (0, text_1.findText)(text, index, region);
615
+ if (match != null && region) {
616
+ return match.offset(region.x, region.y);
617
+ }
618
+ return match;
615
619
  }
616
620
  /**
617
621
  * Checks whether specific text exists
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspiresys/visor",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {