scandit-capacitor-datacapture-barcode 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.
@@ -17,5 +17,5 @@ Pod::Spec.new do |s|
17
17
 
18
18
  s.dependency "Capacitor"
19
19
  s.dependency "ScanditCapacitorDatacaptureCore", "= #{version}"
20
- s.dependency "scandit-datacapture-frameworks-barcode", '= 6.25.0-beta.1'
20
+ s.dependency "scandit-datacapture-frameworks-barcode", '= 6.25.0-beta.2'
21
21
  end
@@ -56,7 +56,7 @@ repositories {
56
56
  }
57
57
 
58
58
  dependencies {
59
- def sdk_version = "6.25.0-beta.1"
59
+ def sdk_version = "6.25.0-beta.2"
60
60
 
61
61
  implementation fileTree(dir: 'libs', include: ['*.jar'])
62
62
  implementation fileTree(dir: 'library', include: ['*.aar'])
package/dist/barcode.js CHANGED
@@ -1218,6 +1218,12 @@ class BarcodeCaptureOverlay extends DefaultSerializeable {
1218
1218
  }
1219
1219
  set viewfinder(newViewfinder) {
1220
1220
  this._viewfinder = newViewfinder;
1221
+ if (newViewfinder) {
1222
+ this.eventEmitter.on('viewfinder.update', this.handleViewFinderUpdate);
1223
+ }
1224
+ else {
1225
+ this.eventEmitter.off('viewfinder.update');
1226
+ }
1221
1227
  this.barcodeCapture.controller.updateBarcodeCaptureOverlay(this);
1222
1228
  }
1223
1229
  get shouldShowScanAreaGuides() {
@@ -1254,6 +1260,11 @@ class BarcodeCaptureOverlay extends DefaultSerializeable {
1254
1260
  this._shouldShowScanAreaGuides = false;
1255
1261
  this._viewfinder = null;
1256
1262
  this._brush = BarcodeCaptureOverlay.barcodeCaptureDefaults.BarcodeCaptureOverlay.DefaultBrush;
1263
+ this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
1264
+ this.handleViewFinderUpdate = this.handleViewFinderUpdate.bind(this);
1265
+ }
1266
+ handleViewFinderUpdate() {
1267
+ this.barcodeCapture.controller.updateBarcodeCaptureOverlay(this);
1257
1268
  }
1258
1269
  }
1259
1270
  __decorate([
@@ -1272,6 +1283,9 @@ __decorate([
1272
1283
  __decorate([
1273
1284
  nameForSerialization('style')
1274
1285
  ], BarcodeCaptureOverlay.prototype, "_style", void 0);
1286
+ __decorate([
1287
+ ignoreFromSerialization
1288
+ ], BarcodeCaptureOverlay.prototype, "eventEmitter", void 0);
1275
1289
  __decorate([
1276
1290
  nameForSerialization('brush')
1277
1291
  ], BarcodeCaptureOverlay.prototype, "_brush", void 0);