scandit-capacitor-datacapture-core 6.25.0-beta.1 → 6.25.0-beta.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/ScanditCapacitorDatacaptureCore.podspec +1 -1
- package/android/build.gradle +1 -1
- package/dist/core.js +27 -12
- package/dist/core.js.map +1 -1
- package/dist/index.js +31 -11
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/android/build.gradle
CHANGED
package/dist/core.js
CHANGED
|
@@ -375,7 +375,7 @@ FactoryMaker.instances = new Map();
|
|
|
375
375
|
|
|
376
376
|
function createEventEmitter() {
|
|
377
377
|
const ee = new EventEmitter();
|
|
378
|
-
FactoryMaker.
|
|
378
|
+
FactoryMaker.bindInstanceIfNotExists('EventEmitter', ee);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
class BaseController {
|
|
@@ -1998,25 +1998,25 @@ __decorate([
|
|
|
1998
1998
|
ignoreFromSerialization
|
|
1999
1999
|
], BaseDataCaptureView.prototype, "coreDefaults", null);
|
|
2000
2000
|
__decorate([
|
|
2001
|
-
|
|
2001
|
+
nameForSerialization('scanAreaMargins')
|
|
2002
2002
|
], BaseDataCaptureView.prototype, "_scanAreaMargins", void 0);
|
|
2003
2003
|
__decorate([
|
|
2004
|
-
|
|
2004
|
+
nameForSerialization('pointOfInterest')
|
|
2005
2005
|
], BaseDataCaptureView.prototype, "_pointOfInterest", void 0);
|
|
2006
2006
|
__decorate([
|
|
2007
|
-
|
|
2007
|
+
nameForSerialization('logoAnchor')
|
|
2008
2008
|
], BaseDataCaptureView.prototype, "_logoAnchor", void 0);
|
|
2009
2009
|
__decorate([
|
|
2010
|
-
|
|
2010
|
+
nameForSerialization('logoOffset')
|
|
2011
2011
|
], BaseDataCaptureView.prototype, "_logoOffset", void 0);
|
|
2012
2012
|
__decorate([
|
|
2013
|
-
|
|
2013
|
+
nameForSerialization('focusGesture')
|
|
2014
2014
|
], BaseDataCaptureView.prototype, "_focusGesture", void 0);
|
|
2015
2015
|
__decorate([
|
|
2016
|
-
|
|
2016
|
+
nameForSerialization('zoomGesture')
|
|
2017
2017
|
], BaseDataCaptureView.prototype, "_zoomGesture", void 0);
|
|
2018
2018
|
__decorate([
|
|
2019
|
-
|
|
2019
|
+
nameForSerialization('logoStyle')
|
|
2020
2020
|
], BaseDataCaptureView.prototype, "_logoStyle", void 0);
|
|
2021
2021
|
__decorate([
|
|
2022
2022
|
ignoreFromSerialization
|
|
@@ -2413,12 +2413,17 @@ class RectangularViewfinder extends DefaultSerializeable {
|
|
|
2413
2413
|
get sizeWithUnitAndAspect() {
|
|
2414
2414
|
return this._sizeWithUnitAndAspect;
|
|
2415
2415
|
}
|
|
2416
|
+
set sizeWithUnitAndAspect(value) {
|
|
2417
|
+
this._sizeWithUnitAndAspect = value;
|
|
2418
|
+
this.update();
|
|
2419
|
+
}
|
|
2416
2420
|
get coreDefaults() {
|
|
2417
2421
|
return getCoreDefaults();
|
|
2418
2422
|
}
|
|
2419
2423
|
constructor(style, lineStyle) {
|
|
2420
2424
|
super();
|
|
2421
2425
|
this.type = 'rectangular';
|
|
2426
|
+
this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
|
|
2422
2427
|
const viewfinderStyle = style || this.coreDefaults.RectangularViewfinder.defaultStyle;
|
|
2423
2428
|
this._style = this.coreDefaults.RectangularViewfinder.styles[viewfinderStyle].style;
|
|
2424
2429
|
this._lineStyle = this.coreDefaults.RectangularViewfinder.styles[viewfinderStyle].lineStyle;
|
|
@@ -2444,36 +2449,43 @@ class RectangularViewfinder extends DefaultSerializeable {
|
|
|
2444
2449
|
}
|
|
2445
2450
|
set dimming(value) {
|
|
2446
2451
|
this._dimming = value;
|
|
2452
|
+
this.update();
|
|
2447
2453
|
}
|
|
2448
2454
|
get disabledDimming() {
|
|
2449
2455
|
return this._disabledDimming;
|
|
2450
2456
|
}
|
|
2451
2457
|
set disabledDimming(value) {
|
|
2452
2458
|
this._disabledDimming = value;
|
|
2459
|
+
this.update();
|
|
2453
2460
|
}
|
|
2454
2461
|
get animation() {
|
|
2455
2462
|
return this._animation;
|
|
2456
2463
|
}
|
|
2457
2464
|
set animation(animation) {
|
|
2458
2465
|
this._animation = animation;
|
|
2466
|
+
this.update();
|
|
2459
2467
|
}
|
|
2460
2468
|
setSize(size) {
|
|
2461
|
-
this.
|
|
2469
|
+
this.sizeWithUnitAndAspect = SizeWithUnitAndAspect.sizeWithWidthAndHeight(size);
|
|
2462
2470
|
}
|
|
2463
2471
|
setWidthAndAspectRatio(width, heightToWidthAspectRatio) {
|
|
2464
|
-
this.
|
|
2472
|
+
this.sizeWithUnitAndAspect = SizeWithUnitAndAspect.sizeWithWidthAndAspectRatio(width, heightToWidthAspectRatio);
|
|
2465
2473
|
}
|
|
2466
2474
|
setHeightAndAspectRatio(height, widthToHeightAspectRatio) {
|
|
2467
|
-
this.
|
|
2475
|
+
this.sizeWithUnitAndAspect = SizeWithUnitAndAspect.sizeWithHeightAndAspectRatio(height, widthToHeightAspectRatio);
|
|
2468
2476
|
}
|
|
2469
2477
|
setShorterDimensionAndAspectRatio(fraction, aspectRatio) {
|
|
2470
|
-
this.
|
|
2478
|
+
this.sizeWithUnitAndAspect = SizeWithUnitAndAspect.sizeWithShorterDimensionAndAspectRatio(new NumberWithUnit(fraction, MeasureUnit.Fraction), aspectRatio);
|
|
2471
2479
|
}
|
|
2472
2480
|
get disabledColor() {
|
|
2473
2481
|
return this._disabledColor;
|
|
2474
2482
|
}
|
|
2475
2483
|
set disabledColor(value) {
|
|
2476
2484
|
this._disabledColor = value;
|
|
2485
|
+
this.update();
|
|
2486
|
+
}
|
|
2487
|
+
update() {
|
|
2488
|
+
this.eventEmitter.emit('viewfinder.update');
|
|
2477
2489
|
}
|
|
2478
2490
|
}
|
|
2479
2491
|
__decorate([
|
|
@@ -2498,6 +2510,9 @@ __decorate([
|
|
|
2498
2510
|
__decorate([
|
|
2499
2511
|
nameForSerialization('disabledColor')
|
|
2500
2512
|
], RectangularViewfinder.prototype, "_disabledColor", void 0);
|
|
2513
|
+
__decorate([
|
|
2514
|
+
ignoreFromSerialization
|
|
2515
|
+
], RectangularViewfinder.prototype, "eventEmitter", void 0);
|
|
2501
2516
|
|
|
2502
2517
|
var RectangularViewfinderStyle;
|
|
2503
2518
|
(function (RectangularViewfinderStyle) {
|