scandit-capacitor-datacapture-barcode 6.25.0-beta.1 → 6.25.0
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/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +1 -1
- package/dist/barcode.js +57 -1
- package/dist/barcode.js.map +1 -1
- package/dist/index.js +30 -10
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
|
@@ -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
|
|
20
|
+
s.dependency "scandit-datacapture-frameworks-barcode", '= 6.25.0'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
package/dist/barcode.js
CHANGED
|
@@ -794,7 +794,7 @@ class StructuredAppendData {
|
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
|
|
797
|
-
class Barcode {
|
|
797
|
+
class Barcode extends DefaultSerializeable {
|
|
798
798
|
get symbology() { return this._symbology; }
|
|
799
799
|
get data() { return this._data; }
|
|
800
800
|
get rawData() { return this._rawData; }
|
|
@@ -831,6 +831,48 @@ class Barcode {
|
|
|
831
831
|
return barcode;
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
+
__decorate([
|
|
835
|
+
nameForSerialization('symbology')
|
|
836
|
+
], Barcode.prototype, "_symbology", void 0);
|
|
837
|
+
__decorate([
|
|
838
|
+
nameForSerialization('data')
|
|
839
|
+
], Barcode.prototype, "_data", void 0);
|
|
840
|
+
__decorate([
|
|
841
|
+
nameForSerialization('rawData')
|
|
842
|
+
], Barcode.prototype, "_rawData", void 0);
|
|
843
|
+
__decorate([
|
|
844
|
+
nameForSerialization('compositeData')
|
|
845
|
+
], Barcode.prototype, "_compositeData", void 0);
|
|
846
|
+
__decorate([
|
|
847
|
+
nameForSerialization('compositeRawData')
|
|
848
|
+
], Barcode.prototype, "_compositeRawData", void 0);
|
|
849
|
+
__decorate([
|
|
850
|
+
nameForSerialization('addOnData')
|
|
851
|
+
], Barcode.prototype, "_addOnData", void 0);
|
|
852
|
+
__decorate([
|
|
853
|
+
nameForSerialization('encodingRanges')
|
|
854
|
+
], Barcode.prototype, "_encodingRanges", void 0);
|
|
855
|
+
__decorate([
|
|
856
|
+
nameForSerialization('location')
|
|
857
|
+
], Barcode.prototype, "_location", void 0);
|
|
858
|
+
__decorate([
|
|
859
|
+
nameForSerialization('isGS1DataCarrier')
|
|
860
|
+
], Barcode.prototype, "_isGS1DataCarrier", void 0);
|
|
861
|
+
__decorate([
|
|
862
|
+
nameForSerialization('compositeFlag')
|
|
863
|
+
], Barcode.prototype, "_compositeFlag", void 0);
|
|
864
|
+
__decorate([
|
|
865
|
+
nameForSerialization('isColorInverted')
|
|
866
|
+
], Barcode.prototype, "_isColorInverted", void 0);
|
|
867
|
+
__decorate([
|
|
868
|
+
nameForSerialization('symbolCount')
|
|
869
|
+
], Barcode.prototype, "_symbolCount", void 0);
|
|
870
|
+
__decorate([
|
|
871
|
+
nameForSerialization('frameID')
|
|
872
|
+
], Barcode.prototype, "_frameID", void 0);
|
|
873
|
+
__decorate([
|
|
874
|
+
nameForSerialization('structuredAppendData')
|
|
875
|
+
], Barcode.prototype, "_structuredAppendData", void 0);
|
|
834
876
|
|
|
835
877
|
var BatterySavingMode;
|
|
836
878
|
(function (BatterySavingMode) {
|
|
@@ -1218,6 +1260,12 @@ class BarcodeCaptureOverlay extends DefaultSerializeable {
|
|
|
1218
1260
|
}
|
|
1219
1261
|
set viewfinder(newViewfinder) {
|
|
1220
1262
|
this._viewfinder = newViewfinder;
|
|
1263
|
+
if (newViewfinder) {
|
|
1264
|
+
this.eventEmitter.on('viewfinder.update', this.handleViewFinderUpdate);
|
|
1265
|
+
}
|
|
1266
|
+
else {
|
|
1267
|
+
this.eventEmitter.off('viewfinder.update');
|
|
1268
|
+
}
|
|
1221
1269
|
this.barcodeCapture.controller.updateBarcodeCaptureOverlay(this);
|
|
1222
1270
|
}
|
|
1223
1271
|
get shouldShowScanAreaGuides() {
|
|
@@ -1254,6 +1302,11 @@ class BarcodeCaptureOverlay extends DefaultSerializeable {
|
|
|
1254
1302
|
this._shouldShowScanAreaGuides = false;
|
|
1255
1303
|
this._viewfinder = null;
|
|
1256
1304
|
this._brush = BarcodeCaptureOverlay.barcodeCaptureDefaults.BarcodeCaptureOverlay.DefaultBrush;
|
|
1305
|
+
this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
|
|
1306
|
+
this.handleViewFinderUpdate = this.handleViewFinderUpdate.bind(this);
|
|
1307
|
+
}
|
|
1308
|
+
handleViewFinderUpdate() {
|
|
1309
|
+
this.barcodeCapture.controller.updateBarcodeCaptureOverlay(this);
|
|
1257
1310
|
}
|
|
1258
1311
|
}
|
|
1259
1312
|
__decorate([
|
|
@@ -1272,6 +1325,9 @@ __decorate([
|
|
|
1272
1325
|
__decorate([
|
|
1273
1326
|
nameForSerialization('style')
|
|
1274
1327
|
], BarcodeCaptureOverlay.prototype, "_style", void 0);
|
|
1328
|
+
__decorate([
|
|
1329
|
+
ignoreFromSerialization
|
|
1330
|
+
], BarcodeCaptureOverlay.prototype, "eventEmitter", void 0);
|
|
1275
1331
|
__decorate([
|
|
1276
1332
|
nameForSerialization('brush')
|
|
1277
1333
|
], BarcodeCaptureOverlay.prototype, "_brush", void 0);
|