dytools-capture-engine 1.3.1 → 1.3.2
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.cjs +14 -3
- package/dist/index.js +14 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1414,7 +1414,10 @@ var CaptureEngine = class {
|
|
|
1414
1414
|
* @param bounds Rectangle
|
|
1415
1415
|
*/
|
|
1416
1416
|
addSimpleZone(bounds, makeCurrentSelected = false) {
|
|
1417
|
-
let newZone = new SimpleZone("Test1", bounds, false, null, null, null
|
|
1417
|
+
let newZone = new SimpleZone("Test1", bounds, false, null, null, null, false, null, false, null, {
|
|
1418
|
+
zoneColor: this.options.simpleZoneColor,
|
|
1419
|
+
ocrMatchColor: this.options.simpleZoneOcrMatchColor
|
|
1420
|
+
});
|
|
1418
1421
|
this.zones.push(newZone);
|
|
1419
1422
|
if (makeCurrentSelected) {
|
|
1420
1423
|
this.setSelectedZones([newZone]);
|
|
@@ -1426,7 +1429,12 @@ var CaptureEngine = class {
|
|
|
1426
1429
|
* @param bounds Rectangle
|
|
1427
1430
|
*/
|
|
1428
1431
|
addAnchorZone(bounds, makeCurrentSelected = false) {
|
|
1429
|
-
let newZone = new AnchorZone(`Anchor ${this.zoneCounter++}`, bounds, false, null, null, null
|
|
1432
|
+
let newZone = new AnchorZone(`Anchor ${this.zoneCounter++}`, bounds, false, null, null, null, false, null, false, null, {
|
|
1433
|
+
zoneColor: this.options.anchorZoneColor,
|
|
1434
|
+
ocrMatchColor: this.options.anchorZoneOcrMatchColor,
|
|
1435
|
+
anchorPointColor: this.options.anchorZoneAnchorPointColor,
|
|
1436
|
+
zoneAdditionalChildrenColor: this.options.anchorZoneAdditionalChildrenColor
|
|
1437
|
+
});
|
|
1430
1438
|
this.zones.push(newZone);
|
|
1431
1439
|
if (makeCurrentSelected) {
|
|
1432
1440
|
this.setSelectedZones([newZone]);
|
|
@@ -1443,7 +1451,10 @@ var CaptureEngine = class {
|
|
|
1443
1451
|
if (!anchorZone) {
|
|
1444
1452
|
throw new Error(`Anchor zone with id ${anchorId} not found`);
|
|
1445
1453
|
}
|
|
1446
|
-
let newZone = new AnchorChildZone(`Child ${this.zoneCounter++}`, bounds, false, null, null, null
|
|
1454
|
+
let newZone = new AnchorChildZone(`Child ${this.zoneCounter++}`, bounds, false, null, null, null, false, null, false, null, {
|
|
1455
|
+
zoneColor: this.options.anchorChildZoneColor,
|
|
1456
|
+
ocrMatchColor: this.options.anchorChildZoneOcrMatchColor
|
|
1457
|
+
});
|
|
1447
1458
|
if (!anchorZone.children) anchorZone.children = [];
|
|
1448
1459
|
anchorZone.children.push(newZone);
|
|
1449
1460
|
if (makeCurrentSelected) {
|
package/dist/index.js
CHANGED
|
@@ -1398,7 +1398,10 @@ var CaptureEngine = class {
|
|
|
1398
1398
|
* @param bounds Rectangle
|
|
1399
1399
|
*/
|
|
1400
1400
|
addSimpleZone(bounds, makeCurrentSelected = false) {
|
|
1401
|
-
let newZone = new SimpleZone("Test1", bounds, false, null, null, null
|
|
1401
|
+
let newZone = new SimpleZone("Test1", bounds, false, null, null, null, false, null, false, null, {
|
|
1402
|
+
zoneColor: this.options.simpleZoneColor,
|
|
1403
|
+
ocrMatchColor: this.options.simpleZoneOcrMatchColor
|
|
1404
|
+
});
|
|
1402
1405
|
this.zones.push(newZone);
|
|
1403
1406
|
if (makeCurrentSelected) {
|
|
1404
1407
|
this.setSelectedZones([newZone]);
|
|
@@ -1410,7 +1413,12 @@ var CaptureEngine = class {
|
|
|
1410
1413
|
* @param bounds Rectangle
|
|
1411
1414
|
*/
|
|
1412
1415
|
addAnchorZone(bounds, makeCurrentSelected = false) {
|
|
1413
|
-
let newZone = new AnchorZone(`Anchor ${this.zoneCounter++}`, bounds, false, null, null, null
|
|
1416
|
+
let newZone = new AnchorZone(`Anchor ${this.zoneCounter++}`, bounds, false, null, null, null, false, null, false, null, {
|
|
1417
|
+
zoneColor: this.options.anchorZoneColor,
|
|
1418
|
+
ocrMatchColor: this.options.anchorZoneOcrMatchColor,
|
|
1419
|
+
anchorPointColor: this.options.anchorZoneAnchorPointColor,
|
|
1420
|
+
zoneAdditionalChildrenColor: this.options.anchorZoneAdditionalChildrenColor
|
|
1421
|
+
});
|
|
1414
1422
|
this.zones.push(newZone);
|
|
1415
1423
|
if (makeCurrentSelected) {
|
|
1416
1424
|
this.setSelectedZones([newZone]);
|
|
@@ -1427,7 +1435,10 @@ var CaptureEngine = class {
|
|
|
1427
1435
|
if (!anchorZone) {
|
|
1428
1436
|
throw new Error(`Anchor zone with id ${anchorId} not found`);
|
|
1429
1437
|
}
|
|
1430
|
-
let newZone = new AnchorChildZone(`Child ${this.zoneCounter++}`, bounds, false, null, null, null
|
|
1438
|
+
let newZone = new AnchorChildZone(`Child ${this.zoneCounter++}`, bounds, false, null, null, null, false, null, false, null, {
|
|
1439
|
+
zoneColor: this.options.anchorChildZoneColor,
|
|
1440
|
+
ocrMatchColor: this.options.anchorChildZoneOcrMatchColor
|
|
1441
|
+
});
|
|
1431
1442
|
if (!anchorZone.children) anchorZone.children = [];
|
|
1432
1443
|
anchorZone.children.push(newZone);
|
|
1433
1444
|
if (makeCurrentSelected) {
|