scandit-capacitor-datacapture-barcode 6.19.0 → 6.19.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/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +1 -1
- package/dist/esm/scandit-capacitor-datacapture-barcode/src/definitions.d.ts +4 -1
- package/dist/esm/scandit-capacitor-datacapture-barcode/src/ts/Capacitor/BarcodeCountDefaults.js +1 -1
- package/dist/esm/scandit-capacitor-datacapture-barcode/src/ts/Capacitor/BarcodeCountDefaults.js.map +1 -1
- package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Camera+Related.js +28 -3
- package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Camera+Related.js.map +1 -1
- package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/Defaults.d.ts +3 -0
- package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/Defaults.js +1 -0
- package/dist/esm/scandit-capacitor-datacapture-core/src/ts/Capacitor/Defaults.js.map +1 -1
- package/dist/plugin.js +68 -43
- package/dist/plugin.js.map +1 -1
- package/package.json +2 -2
package/android/build.gradle
CHANGED
|
@@ -1281,12 +1281,15 @@ export interface CameraSettingsJSON {
|
|
|
1281
1281
|
zoomGestureZoomFactor: number;
|
|
1282
1282
|
focusGestureStrategy: string;
|
|
1283
1283
|
shouldPreferSmoothAutoFocus: boolean;
|
|
1284
|
-
|
|
1284
|
+
properties: {
|
|
1285
|
+
[key: string]: any;
|
|
1286
|
+
};
|
|
1285
1287
|
}
|
|
1286
1288
|
interface PrivateCameraSettings {
|
|
1287
1289
|
fromJSON(json: CameraSettingsJSON): CameraSettings;
|
|
1288
1290
|
}
|
|
1289
1291
|
export class CameraSettings {
|
|
1292
|
+
private focusHiddenProperties;
|
|
1290
1293
|
preferredResolution: VideoResolution;
|
|
1291
1294
|
zoomFactor: number;
|
|
1292
1295
|
zoomGestureZoomFactor: number;
|
package/dist/esm/scandit-capacitor-datacapture-barcode/src/ts/Capacitor/BarcodeCountDefaults.js
CHANGED
|
@@ -22,7 +22,7 @@ export const barcodeCountDefaultsFromJSON = (rootJson) => {
|
|
|
22
22
|
const json = rootJson.BarcodeCount;
|
|
23
23
|
return {
|
|
24
24
|
RecommendedCameraSettings: CameraSettings
|
|
25
|
-
.fromJSON(rootJson.
|
|
25
|
+
.fromJSON(rootJson.BarcodeCount.RecommendedCameraSettings),
|
|
26
26
|
Feedback: {
|
|
27
27
|
success: Feedback.fromJSON(JSON.parse(json.BarcodeCountFeedback).success),
|
|
28
28
|
failure: Feedback.fromJSON(JSON.parse(json.BarcodeCountFeedback).failure)
|
package/dist/esm/scandit-capacitor-datacapture-barcode/src/ts/Capacitor/BarcodeCountDefaults.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarcodeCountDefaults.js","sourceRoot":"","sources":["../../../../../../src/ts/Capacitor/BarcodeCountDefaults.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAmB,MAAM,gEAAgE,CAAC;AAC3G,OAAO,EACL,KAAK,EACN,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAA2D,MAAM,0BAA0B,CAAC;AAC1H,OAAO,EAAE,cAAc,EAAE,MAAM,sEAAsE,CAAC;AAGtG,OAAO,EAAE,KAAK,EAAgB,MAAM,8DAA8D,CAAC;AAEnG,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,oCAAW,CAAA;AACb,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC;AA+ID,MAAM,CAAC,MAAM,4BAA4B,GAAqD,CAAC,QAAsB,EAAE,EAAE;;IACvH,SAAS,UAAU,CAAC,IAAe;QACjC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;Y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AAC,GACrF;KACF,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
1
7
|
import { Capacitor } from './Capacitor/Capacitor';
|
|
2
|
-
import { DefaultSerializeable } from './Serializeable';
|
|
8
|
+
import { DefaultSerializeable, ignoreFromSerialization } from './Serializeable';
|
|
3
9
|
export var FrameSourceState;
|
|
4
10
|
(function (FrameSourceState) {
|
|
5
11
|
FrameSourceState["On"] = "on";
|
|
@@ -75,13 +81,22 @@ export class CameraSettings extends DefaultSerializeable {
|
|
|
75
81
|
settings.zoomGestureZoomFactor = json.zoomGestureZoomFactor;
|
|
76
82
|
settings.focusGestureStrategy = json.focusGestureStrategy;
|
|
77
83
|
settings.shouldPreferSmoothAutoFocus = json.shouldPreferSmoothAutoFocus;
|
|
78
|
-
if (json.
|
|
79
|
-
|
|
84
|
+
if (json.properties != undefined) {
|
|
85
|
+
for (const key of Object.keys(json.properties)) {
|
|
86
|
+
settings.setProperty(key, json.properties[key]);
|
|
87
|
+
}
|
|
80
88
|
}
|
|
81
89
|
return settings;
|
|
82
90
|
}
|
|
83
91
|
constructor(settings) {
|
|
84
92
|
super();
|
|
93
|
+
this.focusHiddenProperties = [
|
|
94
|
+
'range',
|
|
95
|
+
'manualLensPosition',
|
|
96
|
+
'shouldPreferSmoothAutoFocus',
|
|
97
|
+
'focusStrategy',
|
|
98
|
+
'focusGestureStrategy'
|
|
99
|
+
];
|
|
85
100
|
this.preferredResolution = Capacitor.defaults.Camera.Settings.preferredResolution;
|
|
86
101
|
this.zoomFactor = Capacitor.defaults.Camera.Settings.zoomFactor;
|
|
87
102
|
this.zoomGestureZoomFactor = Capacitor.defaults.Camera.Settings.zoomGestureZoomFactor;
|
|
@@ -98,12 +113,22 @@ export class CameraSettings extends DefaultSerializeable {
|
|
|
98
113
|
}
|
|
99
114
|
}
|
|
100
115
|
setProperty(name, value) {
|
|
116
|
+
if (this.focusHiddenProperties.includes(name)) {
|
|
117
|
+
this.focus[name] = value;
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
101
120
|
this[name] = value;
|
|
102
121
|
}
|
|
103
122
|
getProperty(name) {
|
|
123
|
+
if (this.focusHiddenProperties.includes(name)) {
|
|
124
|
+
return this.focus[name];
|
|
125
|
+
}
|
|
104
126
|
return this[name];
|
|
105
127
|
}
|
|
106
128
|
}
|
|
129
|
+
__decorate([
|
|
130
|
+
ignoreFromSerialization
|
|
131
|
+
], CameraSettings.prototype, "focusHiddenProperties", void 0);
|
|
107
132
|
export class ImageBuffer {
|
|
108
133
|
get width() {
|
|
109
134
|
return this._width;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Camera+Related.js","sourceRoot":"","sources":["../../../../../../scandit-capacitor-datacapture-core/src/ts/Camera+Related.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAiB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Camera+Related.js","sourceRoot":"","sources":["../../../../../../scandit-capacitor-datacapture-core/src/ts/Camera+Related.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAiB,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE/F,MAAM,CAAN,IAAY,gBAU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ategy: string;
|
|
72
72
|
shouldPreferSmoothAutoFocus: boolean;
|
|
73
|
+
properties: {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
};
|
|
73
76
|
}
|
|
74
77
|
export interface PrivateCameraSettingsDefaults {
|
|
75
78
|
fromJSON(json: CameraSettingsDefaultsJSON): CameraSettings;
|
|
@@ -11,6 +11,7 @@ export const defaultsFromJSON = (json) => {
|
|
|
11
11
|
zoomGestureZoomFactor: json.Camera.Settings.zoomGestureZoomFactor,
|
|
12
12
|
focusGestureStrategy: json.Camera.Settings.focusGestureStrategy,
|
|
13
13
|
shouldPreferSmoothAutoFocus: json.Camera.Settings.shouldPreferSmoothAutoFocus,
|
|
14
|
+
properties: json.Camera.Settings.properties,
|
|
14
15
|
},
|
|
15
16
|
defaultPosition: (json.Camera.defaultPosition || null),
|
|
16
17
|
availablePositions: json.Camera.availablePositions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Defaults.js","sourceRoot":"","sources":["../../../../../../../scandit-capacitor-datacapture-core/src/ts/Capacitor/Defaults.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,eAAe,EACf,cAAc,EACd,aAAa,EAMb,qBAAqB,GACtB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAGL,+BAA+B,EAC/B,8BAA8B,GAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,8BAA8B,GAG/B,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Defaults.js","sourceRoot":"","sources":["../../../../../../../scandit-capacitor-datacapture-core/src/ts/Capacitor/Defaults.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,eAAe,EACf,cAAc,EACd,aAAa,EAMb,qBAAqB,GACtB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAGL,+BAA+B,EAC/B,8BAA8B,GAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,8BAA8B,GAG/B,MAAM,uBAAuB,CAAC;AA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,CAAC;gBAC1C,KAAK,EAAG,KAA6B;qBAChC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;gBAC/B,KAAK,EAAE,UAAU,CAAC,KAAmC;gBACrD,SAAS,EAAE,UAAU,CAAC,SAA2C;gBACjE,OAAO,EAAE,UAAU,CAAC,OAAO;gBAC3B,eAAe,EAAE,UAAU,CAAC,eAAe;gBAC3C,SAAS,EAAG,8BAA+E;qBACtF,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;aAC9E,CAAC;YAEF,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,qBAAqB,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;QAE7E,eAAe,EAAE;YACf,UAAU,EAAG,KAA6B,CAAC,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC;YACpF,QAAQ,EAAG,KAA6B,CAAC,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC;SACjF;QAED,KAAK,EAAE;YACL,SAAS,EAAG,KAA6B;iBACtC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;YACjC,WAAW,EAAG,KAA6B;iBACxC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;YACnC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW;SACpC;QAED,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;KACxC,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/plugin.js
CHANGED
|
@@ -120,7 +120,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
var __decorate$
|
|
123
|
+
var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
124
124
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
125
125
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
126
126
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -142,10 +142,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
142
142
|
this._y = y;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
__decorate$
|
|
145
|
+
__decorate$l([
|
|
146
146
|
nameForSerialization('x')
|
|
147
147
|
], Point.prototype, "_x", void 0);
|
|
148
|
-
__decorate$
|
|
148
|
+
__decorate$l([
|
|
149
149
|
nameForSerialization('y')
|
|
150
150
|
], Point.prototype, "_y", void 0);
|
|
151
151
|
class Quadrilateral extends DefaultSerializeable {
|
|
@@ -172,16 +172,16 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
172
172
|
this._bottomLeft = bottomLeft;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
__decorate$
|
|
175
|
+
__decorate$l([
|
|
176
176
|
nameForSerialization('topLeft')
|
|
177
177
|
], Quadrilateral.prototype, "_topLeft", void 0);
|
|
178
|
-
__decorate$
|
|
178
|
+
__decorate$l([
|
|
179
179
|
nameForSerialization('topRight')
|
|
180
180
|
], Quadrilateral.prototype, "_topRight", void 0);
|
|
181
|
-
__decorate$
|
|
181
|
+
__decorate$l([
|
|
182
182
|
nameForSerialization('bottomRight')
|
|
183
183
|
], Quadrilateral.prototype, "_bottomRight", void 0);
|
|
184
|
-
__decorate$
|
|
184
|
+
__decorate$l([
|
|
185
185
|
nameForSerialization('bottomLeft')
|
|
186
186
|
], Quadrilateral.prototype, "_bottomLeft", void 0);
|
|
187
187
|
var MeasureUnit;
|
|
@@ -206,10 +206,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
206
206
|
this._unit = unit;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
__decorate$
|
|
209
|
+
__decorate$l([
|
|
210
210
|
nameForSerialization('value')
|
|
211
211
|
], NumberWithUnit.prototype, "_value", void 0);
|
|
212
|
-
__decorate$
|
|
212
|
+
__decorate$l([
|
|
213
213
|
nameForSerialization('unit')
|
|
214
214
|
], NumberWithUnit.prototype, "_unit", void 0);
|
|
215
215
|
class PointWithUnit extends DefaultSerializeable {
|
|
@@ -231,10 +231,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
231
231
|
this._y = y;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
__decorate$
|
|
234
|
+
__decorate$l([
|
|
235
235
|
nameForSerialization('x')
|
|
236
236
|
], PointWithUnit.prototype, "_x", void 0);
|
|
237
|
-
__decorate$
|
|
237
|
+
__decorate$l([
|
|
238
238
|
nameForSerialization('y')
|
|
239
239
|
], PointWithUnit.prototype, "_y", void 0);
|
|
240
240
|
class Rect extends DefaultSerializeable {
|
|
@@ -250,10 +250,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
250
250
|
this._size = size;
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
__decorate$
|
|
253
|
+
__decorate$l([
|
|
254
254
|
nameForSerialization('origin')
|
|
255
255
|
], Rect.prototype, "_origin", void 0);
|
|
256
|
-
__decorate$
|
|
256
|
+
__decorate$l([
|
|
257
257
|
nameForSerialization('size')
|
|
258
258
|
], Rect.prototype, "_size", void 0);
|
|
259
259
|
class RectWithUnit extends DefaultSerializeable {
|
|
@@ -269,10 +269,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
269
269
|
this._size = size;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
__decorate$
|
|
272
|
+
__decorate$l([
|
|
273
273
|
nameForSerialization('origin')
|
|
274
274
|
], RectWithUnit.prototype, "_origin", void 0);
|
|
275
|
-
__decorate$
|
|
275
|
+
__decorate$l([
|
|
276
276
|
nameForSerialization('size')
|
|
277
277
|
], RectWithUnit.prototype, "_size", void 0);
|
|
278
278
|
class SizeWithUnit extends DefaultSerializeable {
|
|
@@ -288,10 +288,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
288
288
|
this._height = height;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
__decorate$
|
|
291
|
+
__decorate$l([
|
|
292
292
|
nameForSerialization('width')
|
|
293
293
|
], SizeWithUnit.prototype, "_width", void 0);
|
|
294
|
-
__decorate$
|
|
294
|
+
__decorate$l([
|
|
295
295
|
nameForSerialization('height')
|
|
296
296
|
], SizeWithUnit.prototype, "_height", void 0);
|
|
297
297
|
class Size extends DefaultSerializeable {
|
|
@@ -310,10 +310,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
310
310
|
this._height = height;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
__decorate$
|
|
313
|
+
__decorate$l([
|
|
314
314
|
nameForSerialization('width')
|
|
315
315
|
], Size.prototype, "_width", void 0);
|
|
316
|
-
__decorate$
|
|
316
|
+
__decorate$l([
|
|
317
317
|
nameForSerialization('height')
|
|
318
318
|
], Size.prototype, "_height", void 0);
|
|
319
319
|
class SizeWithAspect {
|
|
@@ -328,10 +328,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
328
328
|
this._aspect = aspect;
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
__decorate$
|
|
331
|
+
__decorate$l([
|
|
332
332
|
nameForSerialization('size')
|
|
333
333
|
], SizeWithAspect.prototype, "_size", void 0);
|
|
334
|
-
__decorate$
|
|
334
|
+
__decorate$l([
|
|
335
335
|
nameForSerialization('aspect')
|
|
336
336
|
], SizeWithAspect.prototype, "_aspect", void 0);
|
|
337
337
|
var SizingMode;
|
|
@@ -434,16 +434,16 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
__decorate$
|
|
437
|
+
__decorate$l([
|
|
438
438
|
nameForSerialization('widthAndHeight')
|
|
439
439
|
], SizeWithUnitAndAspect.prototype, "_widthAndHeight", void 0);
|
|
440
|
-
__decorate$
|
|
440
|
+
__decorate$l([
|
|
441
441
|
nameForSerialization('widthAndAspectRatio')
|
|
442
442
|
], SizeWithUnitAndAspect.prototype, "_widthAndAspectRatio", void 0);
|
|
443
|
-
__decorate$
|
|
443
|
+
__decorate$l([
|
|
444
444
|
nameForSerialization('heightAndAspectRatio')
|
|
445
445
|
], SizeWithUnitAndAspect.prototype, "_heightAndAspectRatio", void 0);
|
|
446
|
-
__decorate$
|
|
446
|
+
__decorate$l([
|
|
447
447
|
nameForSerialization('shorterDimensionAndAspectRatio')
|
|
448
448
|
], SizeWithUnitAndAspect.prototype, "_shorterDimensionAndAspectRatio", void 0);
|
|
449
449
|
class MarginsWithUnit extends DefaultSerializeable {
|
|
@@ -473,16 +473,16 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
473
473
|
this._bottom = bottom;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
__decorate$
|
|
476
|
+
__decorate$l([
|
|
477
477
|
nameForSerialization('left')
|
|
478
478
|
], MarginsWithUnit.prototype, "_left", void 0);
|
|
479
|
-
__decorate$
|
|
479
|
+
__decorate$l([
|
|
480
480
|
nameForSerialization('right')
|
|
481
481
|
], MarginsWithUnit.prototype, "_right", void 0);
|
|
482
|
-
__decorate$
|
|
482
|
+
__decorate$l([
|
|
483
483
|
nameForSerialization('top')
|
|
484
484
|
], MarginsWithUnit.prototype, "_top", void 0);
|
|
485
|
-
__decorate$
|
|
485
|
+
__decorate$l([
|
|
486
486
|
nameForSerialization('bottom')
|
|
487
487
|
], MarginsWithUnit.prototype, "_bottom", void 0);
|
|
488
488
|
class Color {
|
|
@@ -592,7 +592,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
592
592
|
LogoStyle["Extended"] = "extended";
|
|
593
593
|
})(LogoStyle || (LogoStyle = {}));
|
|
594
594
|
|
|
595
|
-
var __decorate$
|
|
595
|
+
var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
596
596
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
597
597
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
598
598
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -630,7 +630,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
630
630
|
this._isLooping = isLooping;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
__decorate$
|
|
633
|
+
__decorate$k([
|
|
634
634
|
nameForSerialization('isLooping')
|
|
635
635
|
], RectangularViewfinderAnimation.prototype, "_isLooping", void 0);
|
|
636
636
|
|
|
@@ -673,7 +673,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
673
673
|
exec: (success, error, functionName, args) => capacitorExec(success, error, pluginName$1, functionName, args),
|
|
674
674
|
};
|
|
675
675
|
|
|
676
|
-
var __decorate$
|
|
676
|
+
var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
677
677
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
678
678
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
679
679
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -782,13 +782,13 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
|
-
__decorate$
|
|
785
|
+
__decorate$j([
|
|
786
786
|
ignoreFromSerialization
|
|
787
787
|
], SymbologySettings.prototype, "_symbology", void 0);
|
|
788
|
-
__decorate$
|
|
788
|
+
__decorate$j([
|
|
789
789
|
nameForSerialization('enabled')
|
|
790
790
|
], SymbologySettings.prototype, "isEnabled", void 0);
|
|
791
|
-
__decorate$
|
|
791
|
+
__decorate$j([
|
|
792
792
|
nameForSerialization('colorInvertedEnabled')
|
|
793
793
|
], SymbologySettings.prototype, "isColorInvertedEnabled", void 0);
|
|
794
794
|
var Checksum;
|
|
@@ -844,13 +844,13 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
844
844
|
return range;
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
|
-
__decorate$
|
|
847
|
+
__decorate$j([
|
|
848
848
|
nameForSerialization('minimum')
|
|
849
849
|
], Range.prototype, "_minimum", void 0);
|
|
850
|
-
__decorate$
|
|
850
|
+
__decorate$j([
|
|
851
851
|
nameForSerialization('maximum')
|
|
852
852
|
], Range.prototype, "_maximum", void 0);
|
|
853
|
-
__decorate$
|
|
853
|
+
__decorate$j([
|
|
854
854
|
nameForSerialization('step')
|
|
855
855
|
], Range.prototype, "_step", void 0);
|
|
856
856
|
class Barcode {
|
|
@@ -938,13 +938,19 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
938
938
|
this._quantity = quantity;
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
|
-
__decorate$
|
|
941
|
+
__decorate$j([
|
|
942
942
|
nameForSerialization('data')
|
|
943
943
|
], TargetBarcode.prototype, "_data", void 0);
|
|
944
|
-
__decorate$
|
|
944
|
+
__decorate$j([
|
|
945
945
|
nameForSerialization('quantity')
|
|
946
946
|
], TargetBarcode.prototype, "_quantity", void 0);
|
|
947
947
|
|
|
948
|
+
var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
949
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
950
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
951
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
952
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
953
|
+
};
|
|
948
954
|
var FrameSourceState;
|
|
949
955
|
(function (FrameSourceState) {
|
|
950
956
|
FrameSourceState["On"] = "on";
|
|
@@ -1020,13 +1026,22 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
1020
1026
|
settings.zoomGestureZoomFactor = json.zoomGestureZoomFactor;
|
|
1021
1027
|
settings.focusGestureStrategy = json.focusGestureStrategy;
|
|
1022
1028
|
settings.shouldPreferSmoothAutoFocus = json.shouldPreferSmoothAutoFocus;
|
|
1023
|
-
if (json.
|
|
1024
|
-
|
|
1029
|
+
if (json.properties != undefined) {
|
|
1030
|
+
for (const key of Object.keys(json.properties)) {
|
|
1031
|
+
settings.setProperty(key, json.properties[key]);
|
|
1032
|
+
}
|
|
1025
1033
|
}
|
|
1026
1034
|
return settings;
|
|
1027
1035
|
}
|
|
1028
1036
|
constructor(settings) {
|
|
1029
1037
|
super();
|
|
1038
|
+
this.focusHiddenProperties = [
|
|
1039
|
+
'range',
|
|
1040
|
+
'manualLensPosition',
|
|
1041
|
+
'shouldPreferSmoothAutoFocus',
|
|
1042
|
+
'focusStrategy',
|
|
1043
|
+
'focusGestureStrategy'
|
|
1044
|
+
];
|
|
1030
1045
|
this.preferredResolution = Capacitor$1.defaults.Camera.Settings.preferredResolution;
|
|
1031
1046
|
this.zoomFactor = Capacitor$1.defaults.Camera.Settings.zoomFactor;
|
|
1032
1047
|
this.zoomGestureZoomFactor = Capacitor$1.defaults.Camera.Settings.zoomGestureZoomFactor;
|
|
@@ -1043,12 +1058,22 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
1043
1058
|
}
|
|
1044
1059
|
}
|
|
1045
1060
|
setProperty(name, value) {
|
|
1061
|
+
if (this.focusHiddenProperties.includes(name)) {
|
|
1062
|
+
this.focus[name] = value;
|
|
1063
|
+
return;
|
|
1064
|
+
}
|
|
1046
1065
|
this[name] = value;
|
|
1047
1066
|
}
|
|
1048
1067
|
getProperty(name) {
|
|
1068
|
+
if (this.focusHiddenProperties.includes(name)) {
|
|
1069
|
+
return this.focus[name];
|
|
1070
|
+
}
|
|
1049
1071
|
return this[name];
|
|
1050
1072
|
}
|
|
1051
1073
|
}
|
|
1074
|
+
__decorate$i([
|
|
1075
|
+
ignoreFromSerialization
|
|
1076
|
+
], CameraSettings.prototype, "focusHiddenProperties", void 0);
|
|
1052
1077
|
class ImageBuffer {
|
|
1053
1078
|
get width() {
|
|
1054
1079
|
return this._width;
|
|
@@ -1435,7 +1460,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
1435
1460
|
const json = rootJson.BarcodeCount;
|
|
1436
1461
|
return {
|
|
1437
1462
|
RecommendedCameraSettings: CameraSettings
|
|
1438
|
-
.fromJSON(rootJson.
|
|
1463
|
+
.fromJSON(rootJson.BarcodeCount.RecommendedCameraSettings),
|
|
1439
1464
|
Feedback: {
|
|
1440
1465
|
success: Feedback.fromJSON(JSON.parse(json.BarcodeCountFeedback).success),
|
|
1441
1466
|
failure: Feedback.fromJSON(JSON.parse(json.BarcodeCountFeedback).failure)
|