scandit-capacitor-datacapture-core 6.25.2 → 6.26.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 +17 -2
- package/dist/core.js.map +1 -1
- package/dist/dts/definitions.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/android/build.gradle
CHANGED
package/dist/core.js
CHANGED
|
@@ -596,8 +596,9 @@ class ImageFrameSourceController {
|
|
|
596
596
|
return this._proxy.switchCameraToDesiredState(desiredStateJson);
|
|
597
597
|
}
|
|
598
598
|
subscribeListener() {
|
|
599
|
+
var _a, _b;
|
|
599
600
|
this._proxy.registerListenerForEvents();
|
|
600
|
-
this._proxy.subscribeDidChangeState();
|
|
601
|
+
(_b = (_a = this._proxy).subscribeDidChangeState) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
601
602
|
this.eventEmitter.on(FrameSourceListenerEvents.didChangeState, (payload) => {
|
|
602
603
|
const newState = payload.state;
|
|
603
604
|
this.imageFrameSource.listeners.forEach(listener => {
|
|
@@ -1127,7 +1128,10 @@ class DataCaptureContext extends DefaultSerializeable {
|
|
|
1127
1128
|
if (options == null) {
|
|
1128
1129
|
options = { deviceName: null };
|
|
1129
1130
|
}
|
|
1130
|
-
|
|
1131
|
+
if (!DataCaptureContext.instance) {
|
|
1132
|
+
DataCaptureContext.instance = new DataCaptureContext(licenseKey, options.deviceName || '');
|
|
1133
|
+
}
|
|
1134
|
+
return DataCaptureContext.instance;
|
|
1131
1135
|
}
|
|
1132
1136
|
constructor(licenseKey, deviceName) {
|
|
1133
1137
|
super();
|
|
@@ -1188,6 +1192,7 @@ class DataCaptureContext extends DefaultSerializeable {
|
|
|
1188
1192
|
if (!this.controller) {
|
|
1189
1193
|
return;
|
|
1190
1194
|
}
|
|
1195
|
+
DataCaptureContext.instance = null;
|
|
1191
1196
|
(_a = this.view) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
1192
1197
|
this.removeAllModes();
|
|
1193
1198
|
this.controller.dispose();
|
|
@@ -1210,6 +1215,7 @@ class DataCaptureContext extends DefaultSerializeable {
|
|
|
1210
1215
|
return this.controller.updateContextFromJSON();
|
|
1211
1216
|
}
|
|
1212
1217
|
}
|
|
1218
|
+
DataCaptureContext.instance = null;
|
|
1213
1219
|
__decorate([
|
|
1214
1220
|
nameForSerialization('frameSource')
|
|
1215
1221
|
], DataCaptureContext.prototype, "_frameSource", void 0);
|
|
@@ -2382,6 +2388,9 @@ __decorate([
|
|
|
2382
2388
|
nameForSerialization('size')
|
|
2383
2389
|
], SpotlightViewfinder.prototype, "_sizeWithUnitAndAspect", void 0);
|
|
2384
2390
|
|
|
2391
|
+
/**
|
|
2392
|
+
* @deprecated LaserlineViewfinder is deprecated.
|
|
2393
|
+
*/
|
|
2385
2394
|
class LaserlineViewfinder extends DefaultSerializeable {
|
|
2386
2395
|
get coreDefaults() {
|
|
2387
2396
|
return getCoreDefaults();
|
|
@@ -2403,6 +2412,9 @@ __decorate([
|
|
|
2403
2412
|
nameForSerialization('style')
|
|
2404
2413
|
], LaserlineViewfinder.prototype, "_style", void 0);
|
|
2405
2414
|
|
|
2415
|
+
/**
|
|
2416
|
+
* @deprecated LaserlineViewfinderStyle is deprecated.
|
|
2417
|
+
*/
|
|
2406
2418
|
var LaserlineViewfinderStyle;
|
|
2407
2419
|
(function (LaserlineViewfinderStyle) {
|
|
2408
2420
|
LaserlineViewfinderStyle["Legacy"] = "legacy";
|
|
@@ -2516,6 +2528,9 @@ __decorate([
|
|
|
2516
2528
|
|
|
2517
2529
|
var RectangularViewfinderStyle;
|
|
2518
2530
|
(function (RectangularViewfinderStyle) {
|
|
2531
|
+
/**
|
|
2532
|
+
* @deprecated The legacy style of the RectangularViewfinder is deprecated.
|
|
2533
|
+
*/
|
|
2519
2534
|
RectangularViewfinderStyle["Legacy"] = "legacy";
|
|
2520
2535
|
RectangularViewfinderStyle["Rounded"] = "rounded";
|
|
2521
2536
|
RectangularViewfinderStyle["Square"] = "square";
|