scandit-capacitor-datacapture-core 6.19.0 → 6.19.1
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/esm/definitions.d.ts +7 -1
- package/dist/esm/ts/Camera+Related.js +28 -3
- package/dist/esm/ts/Camera+Related.js.map +1 -1
- package/dist/esm/ts/Capacitor/Defaults.js +1 -0
- package/dist/esm/ts/Capacitor/Defaults.js.map +1 -1
- package/dist/esm/ts/DataCaptureVersion.js +1 -1
- package/dist/plugin.js +71 -45
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -61,12 +61,15 @@ export interface CameraSettingsJSON {
|
|
|
61
61
|
zoomGestureZoomFactor: number;
|
|
62
62
|
focusGestureStrategy: string;
|
|
63
63
|
shouldPreferSmoothAutoFocus: boolean;
|
|
64
|
-
|
|
64
|
+
properties: {
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
};
|
|
65
67
|
}
|
|
66
68
|
interface PrivateCameraSettings {
|
|
67
69
|
fromJSON(json: CameraSettingsJSON): CameraSettings;
|
|
68
70
|
}
|
|
69
71
|
export class CameraSettings {
|
|
72
|
+
private focusHiddenProperties;
|
|
70
73
|
preferredResolution: VideoResolution;
|
|
71
74
|
zoomFactor: number;
|
|
72
75
|
zoomGestureZoomFactor: number;
|
|
@@ -307,6 +310,9 @@ export interface CameraSettingsDefaultsJSON {
|
|
|
307
310
|
zoomGestureZoomFactor: number;
|
|
308
311
|
focusGestureStrategy: string;
|
|
309
312
|
shouldPreferSmoothAutoFocus: boolean;
|
|
313
|
+
properties: {
|
|
314
|
+
[key: string]: any;
|
|
315
|
+
};
|
|
310
316
|
}
|
|
311
317
|
interface PrivateCameraSettingsDefaults {
|
|
312
318
|
fromJSON(json: CameraSettingsDefaultsJSON): CameraSettings;
|
|
@@ -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":["../../../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":["../../../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,gBAUX;AAVD,WAAY,gBAAgB;IAC1B,6BAAS,CAAA;IACT,+BAAW,CAAA;IACX,yCAAqB,CAAA;IACrB,yCAAqB,CAAA;IACrB,uCAAmB,C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D,OAAQ,IAAY,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF;AAtFC;IADC,uBAAuB;6DAOtB;AAwGJ,MAAM,OAAO,WAAW;IAKtB,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AAED,MAAM,OAAO,gBAAgB;IAI3B,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,IAAmB;QACxC,MAAM,SAAS,GAAG,IAAI,gBAAgB,EAAE,CAAC;QACzC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,eAAgC,EAAE,EAAE;YACnF,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;YACrC,WAAyC,CAAC,MAAM,GAAG,eAAe,CAAC,KAAK,CAAC;YACzE,WAAyC,CAAC,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC;YAC3E,WAAyC,CAAC,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC;YACxE,OAAO,WAAW,CAAC;QACrB,CAAC,CAAC,CAAC;QACH,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC;QAE1C,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -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":["../../../../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":["../../../../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;AA2L/B,MAAM,CAAC,MAAM,gBAAgB,GAAqC,CAAC,IAAkB,EAAE,EAAE;IACvF,OAAO;QACL,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,mBAAmB,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAsC;gBAChF,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU;gBAC3C,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAwB;gBACzD,qBAAqB,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB;gBACjE,oBAAoB,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAA4C;gBACvF,2BAA2B,EAAE,IAAI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E,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
|
@@ -129,7 +129,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
var __decorate$
|
|
132
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
133
133
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
134
134
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
135
135
|
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;
|
|
@@ -151,10 +151,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
151
151
|
this._y = y;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
__decorate$
|
|
154
|
+
__decorate$8([
|
|
155
155
|
nameForSerialization('x')
|
|
156
156
|
], Point.prototype, "_x", void 0);
|
|
157
|
-
__decorate$
|
|
157
|
+
__decorate$8([
|
|
158
158
|
nameForSerialization('y')
|
|
159
159
|
], Point.prototype, "_y", void 0);
|
|
160
160
|
class Quadrilateral extends DefaultSerializeable {
|
|
@@ -181,16 +181,16 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
181
181
|
this._bottomLeft = bottomLeft;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
__decorate$
|
|
184
|
+
__decorate$8([
|
|
185
185
|
nameForSerialization('topLeft')
|
|
186
186
|
], Quadrilateral.prototype, "_topLeft", void 0);
|
|
187
|
-
__decorate$
|
|
187
|
+
__decorate$8([
|
|
188
188
|
nameForSerialization('topRight')
|
|
189
189
|
], Quadrilateral.prototype, "_topRight", void 0);
|
|
190
|
-
__decorate$
|
|
190
|
+
__decorate$8([
|
|
191
191
|
nameForSerialization('bottomRight')
|
|
192
192
|
], Quadrilateral.prototype, "_bottomRight", void 0);
|
|
193
|
-
__decorate$
|
|
193
|
+
__decorate$8([
|
|
194
194
|
nameForSerialization('bottomLeft')
|
|
195
195
|
], Quadrilateral.prototype, "_bottomLeft", void 0);
|
|
196
196
|
var MeasureUnit;
|
|
@@ -215,10 +215,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
215
215
|
this._unit = unit;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
__decorate$
|
|
218
|
+
__decorate$8([
|
|
219
219
|
nameForSerialization('value')
|
|
220
220
|
], NumberWithUnit.prototype, "_value", void 0);
|
|
221
|
-
__decorate$
|
|
221
|
+
__decorate$8([
|
|
222
222
|
nameForSerialization('unit')
|
|
223
223
|
], NumberWithUnit.prototype, "_unit", void 0);
|
|
224
224
|
class PointWithUnit extends DefaultSerializeable {
|
|
@@ -240,10 +240,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
240
240
|
this._y = y;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
__decorate$
|
|
243
|
+
__decorate$8([
|
|
244
244
|
nameForSerialization('x')
|
|
245
245
|
], PointWithUnit.prototype, "_x", void 0);
|
|
246
|
-
__decorate$
|
|
246
|
+
__decorate$8([
|
|
247
247
|
nameForSerialization('y')
|
|
248
248
|
], PointWithUnit.prototype, "_y", void 0);
|
|
249
249
|
class Rect extends DefaultSerializeable {
|
|
@@ -259,10 +259,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
259
259
|
this._size = size;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
__decorate$
|
|
262
|
+
__decorate$8([
|
|
263
263
|
nameForSerialization('origin')
|
|
264
264
|
], Rect.prototype, "_origin", void 0);
|
|
265
|
-
__decorate$
|
|
265
|
+
__decorate$8([
|
|
266
266
|
nameForSerialization('size')
|
|
267
267
|
], Rect.prototype, "_size", void 0);
|
|
268
268
|
class RectWithUnit extends DefaultSerializeable {
|
|
@@ -278,10 +278,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
278
278
|
this._size = size;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
|
-
__decorate$
|
|
281
|
+
__decorate$8([
|
|
282
282
|
nameForSerialization('origin')
|
|
283
283
|
], RectWithUnit.prototype, "_origin", void 0);
|
|
284
|
-
__decorate$
|
|
284
|
+
__decorate$8([
|
|
285
285
|
nameForSerialization('size')
|
|
286
286
|
], RectWithUnit.prototype, "_size", void 0);
|
|
287
287
|
class SizeWithUnit extends DefaultSerializeable {
|
|
@@ -297,10 +297,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
297
297
|
this._height = height;
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
__decorate$
|
|
300
|
+
__decorate$8([
|
|
301
301
|
nameForSerialization('width')
|
|
302
302
|
], SizeWithUnit.prototype, "_width", void 0);
|
|
303
|
-
__decorate$
|
|
303
|
+
__decorate$8([
|
|
304
304
|
nameForSerialization('height')
|
|
305
305
|
], SizeWithUnit.prototype, "_height", void 0);
|
|
306
306
|
class Size extends DefaultSerializeable {
|
|
@@ -319,10 +319,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
319
319
|
this._height = height;
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
__decorate$
|
|
322
|
+
__decorate$8([
|
|
323
323
|
nameForSerialization('width')
|
|
324
324
|
], Size.prototype, "_width", void 0);
|
|
325
|
-
__decorate$
|
|
325
|
+
__decorate$8([
|
|
326
326
|
nameForSerialization('height')
|
|
327
327
|
], Size.prototype, "_height", void 0);
|
|
328
328
|
class SizeWithAspect {
|
|
@@ -337,10 +337,10 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
337
337
|
this._aspect = aspect;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
__decorate$
|
|
340
|
+
__decorate$8([
|
|
341
341
|
nameForSerialization('size')
|
|
342
342
|
], SizeWithAspect.prototype, "_size", void 0);
|
|
343
|
-
__decorate$
|
|
343
|
+
__decorate$8([
|
|
344
344
|
nameForSerialization('aspect')
|
|
345
345
|
], SizeWithAspect.prototype, "_aspect", void 0);
|
|
346
346
|
var SizingMode;
|
|
@@ -443,16 +443,16 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
__decorate$
|
|
446
|
+
__decorate$8([
|
|
447
447
|
nameForSerialization('widthAndHeight')
|
|
448
448
|
], SizeWithUnitAndAspect.prototype, "_widthAndHeight", void 0);
|
|
449
|
-
__decorate$
|
|
449
|
+
__decorate$8([
|
|
450
450
|
nameForSerialization('widthAndAspectRatio')
|
|
451
451
|
], SizeWithUnitAndAspect.prototype, "_widthAndAspectRatio", void 0);
|
|
452
|
-
__decorate$
|
|
452
|
+
__decorate$8([
|
|
453
453
|
nameForSerialization('heightAndAspectRatio')
|
|
454
454
|
], SizeWithUnitAndAspect.prototype, "_heightAndAspectRatio", void 0);
|
|
455
|
-
__decorate$
|
|
455
|
+
__decorate$8([
|
|
456
456
|
nameForSerialization('shorterDimensionAndAspectRatio')
|
|
457
457
|
], SizeWithUnitAndAspect.prototype, "_shorterDimensionAndAspectRatio", void 0);
|
|
458
458
|
class MarginsWithUnit extends DefaultSerializeable {
|
|
@@ -482,16 +482,16 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
482
482
|
this._bottom = bottom;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
__decorate$
|
|
485
|
+
__decorate$8([
|
|
486
486
|
nameForSerialization('left')
|
|
487
487
|
], MarginsWithUnit.prototype, "_left", void 0);
|
|
488
|
-
__decorate$
|
|
488
|
+
__decorate$8([
|
|
489
489
|
nameForSerialization('right')
|
|
490
490
|
], MarginsWithUnit.prototype, "_right", void 0);
|
|
491
|
-
__decorate$
|
|
491
|
+
__decorate$8([
|
|
492
492
|
nameForSerialization('top')
|
|
493
493
|
], MarginsWithUnit.prototype, "_top", void 0);
|
|
494
|
-
__decorate$
|
|
494
|
+
__decorate$8([
|
|
495
495
|
nameForSerialization('bottom')
|
|
496
496
|
], MarginsWithUnit.prototype, "_bottom", void 0);
|
|
497
497
|
class Color {
|
|
@@ -633,7 +633,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
633
633
|
LogoStyle["Extended"] = "extended";
|
|
634
634
|
})(LogoStyle || (LogoStyle = {}));
|
|
635
635
|
|
|
636
|
-
var __decorate$
|
|
636
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
637
637
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
638
638
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
639
639
|
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;
|
|
@@ -671,7 +671,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
671
671
|
this._isLooping = isLooping;
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
__decorate$
|
|
674
|
+
__decorate$7([
|
|
675
675
|
nameForSerialization('isLooping')
|
|
676
676
|
], RectangularViewfinderAnimation.prototype, "_isLooping", void 0);
|
|
677
677
|
|
|
@@ -685,6 +685,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
685
685
|
zoomGestureZoomFactor: json.Camera.Settings.zoomGestureZoomFactor,
|
|
686
686
|
focusGestureStrategy: json.Camera.Settings.focusGestureStrategy,
|
|
687
687
|
shouldPreferSmoothAutoFocus: json.Camera.Settings.shouldPreferSmoothAutoFocus,
|
|
688
|
+
properties: json.Camera.Settings.properties,
|
|
688
689
|
},
|
|
689
690
|
defaultPosition: (json.Camera.defaultPosition || null),
|
|
690
691
|
availablePositions: json.Camera.availablePositions,
|
|
@@ -801,7 +802,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
801
802
|
return Capacitor.defaults;
|
|
802
803
|
});
|
|
803
804
|
|
|
804
|
-
var __decorate$
|
|
805
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
805
806
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
806
807
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
807
808
|
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;
|
|
@@ -819,7 +820,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
819
820
|
this._radius = radius;
|
|
820
821
|
}
|
|
821
822
|
}
|
|
822
|
-
__decorate$
|
|
823
|
+
__decorate$6([
|
|
823
824
|
nameForSerialization('radius')
|
|
824
825
|
], RadiusLocationSelection.prototype, "_radius", void 0);
|
|
825
826
|
class RectangularLocationSelection extends DefaultSerializeable {
|
|
@@ -848,11 +849,11 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
848
849
|
return locationSelection;
|
|
849
850
|
}
|
|
850
851
|
}
|
|
851
|
-
__decorate$
|
|
852
|
+
__decorate$6([
|
|
852
853
|
nameForSerialization('size')
|
|
853
854
|
], RectangularLocationSelection.prototype, "_sizeWithUnitAndAspect", void 0);
|
|
854
855
|
|
|
855
|
-
var __decorate$
|
|
856
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
856
857
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
857
858
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
858
859
|
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;
|
|
@@ -894,7 +895,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
894
895
|
return this._style;
|
|
895
896
|
}
|
|
896
897
|
}
|
|
897
|
-
__decorate$
|
|
898
|
+
__decorate$5([
|
|
898
899
|
nameForSerialization('style')
|
|
899
900
|
], LaserlineViewfinder.prototype, "_style", void 0);
|
|
900
901
|
class RectangularViewfinder extends DefaultSerializeable {
|
|
@@ -954,23 +955,23 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
954
955
|
this._sizeWithUnitAndAspect = SizeWithUnitAndAspect.sizeWithShorterDimensionAndAspectRatio(new NumberWithUnit(fraction, MeasureUnit.Fraction), aspectRatio);
|
|
955
956
|
}
|
|
956
957
|
}
|
|
957
|
-
__decorate$
|
|
958
|
+
__decorate$5([
|
|
958
959
|
nameForSerialization('style')
|
|
959
960
|
], RectangularViewfinder.prototype, "_style", void 0);
|
|
960
|
-
__decorate$
|
|
961
|
+
__decorate$5([
|
|
961
962
|
nameForSerialization('lineStyle')
|
|
962
963
|
], RectangularViewfinder.prototype, "_lineStyle", void 0);
|
|
963
|
-
__decorate$
|
|
964
|
+
__decorate$5([
|
|
964
965
|
nameForSerialization('dimming')
|
|
965
966
|
], RectangularViewfinder.prototype, "_dimming", void 0);
|
|
966
|
-
__decorate$
|
|
967
|
+
__decorate$5([
|
|
967
968
|
nameForSerialization('disabledDimming')
|
|
968
969
|
], RectangularViewfinder.prototype, "_disabledDimming", void 0);
|
|
969
|
-
__decorate$
|
|
970
|
+
__decorate$5([
|
|
970
971
|
nameForSerialization('animation'),
|
|
971
972
|
ignoreFromSerialization
|
|
972
973
|
], RectangularViewfinder.prototype, "_animation", void 0);
|
|
973
|
-
__decorate$
|
|
974
|
+
__decorate$5([
|
|
974
975
|
nameForSerialization('size')
|
|
975
976
|
], RectangularViewfinder.prototype, "_sizeWithUnitAndAspect", void 0);
|
|
976
977
|
class AimerViewfinder extends DefaultSerializeable {
|
|
@@ -982,6 +983,12 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
982
983
|
}
|
|
983
984
|
}
|
|
984
985
|
|
|
986
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
987
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
988
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
989
|
+
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;
|
|
990
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
991
|
+
};
|
|
985
992
|
var FrameSourceState;
|
|
986
993
|
(function (FrameSourceState) {
|
|
987
994
|
FrameSourceState["On"] = "on";
|
|
@@ -1057,13 +1064,22 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
1057
1064
|
settings.zoomGestureZoomFactor = json.zoomGestureZoomFactor;
|
|
1058
1065
|
settings.focusGestureStrategy = json.focusGestureStrategy;
|
|
1059
1066
|
settings.shouldPreferSmoothAutoFocus = json.shouldPreferSmoothAutoFocus;
|
|
1060
|
-
if (json.
|
|
1061
|
-
|
|
1067
|
+
if (json.properties != undefined) {
|
|
1068
|
+
for (const key of Object.keys(json.properties)) {
|
|
1069
|
+
settings.setProperty(key, json.properties[key]);
|
|
1070
|
+
}
|
|
1062
1071
|
}
|
|
1063
1072
|
return settings;
|
|
1064
1073
|
}
|
|
1065
1074
|
constructor(settings) {
|
|
1066
1075
|
super();
|
|
1076
|
+
this.focusHiddenProperties = [
|
|
1077
|
+
'range',
|
|
1078
|
+
'manualLensPosition',
|
|
1079
|
+
'shouldPreferSmoothAutoFocus',
|
|
1080
|
+
'focusStrategy',
|
|
1081
|
+
'focusGestureStrategy'
|
|
1082
|
+
];
|
|
1067
1083
|
this.preferredResolution = Capacitor.defaults.Camera.Settings.preferredResolution;
|
|
1068
1084
|
this.zoomFactor = Capacitor.defaults.Camera.Settings.zoomFactor;
|
|
1069
1085
|
this.zoomGestureZoomFactor = Capacitor.defaults.Camera.Settings.zoomGestureZoomFactor;
|
|
@@ -1080,12 +1096,22 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
1080
1096
|
}
|
|
1081
1097
|
}
|
|
1082
1098
|
setProperty(name, value) {
|
|
1099
|
+
if (this.focusHiddenProperties.includes(name)) {
|
|
1100
|
+
this.focus[name] = value;
|
|
1101
|
+
return;
|
|
1102
|
+
}
|
|
1083
1103
|
this[name] = value;
|
|
1084
1104
|
}
|
|
1085
1105
|
getProperty(name) {
|
|
1106
|
+
if (this.focusHiddenProperties.includes(name)) {
|
|
1107
|
+
return this.focus[name];
|
|
1108
|
+
}
|
|
1086
1109
|
return this[name];
|
|
1087
1110
|
}
|
|
1088
1111
|
}
|
|
1112
|
+
__decorate$4([
|
|
1113
|
+
ignoreFromSerialization
|
|
1114
|
+
], CameraSettings.prototype, "focusHiddenProperties", void 0);
|
|
1089
1115
|
class ImageBuffer {
|
|
1090
1116
|
get width() {
|
|
1091
1117
|
return this._width;
|
|
@@ -2008,7 +2034,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
2008
2034
|
|
|
2009
2035
|
class DataCaptureVersion {
|
|
2010
2036
|
static get pluginVersion() {
|
|
2011
|
-
return '6.19.
|
|
2037
|
+
return '6.19.1';
|
|
2012
2038
|
}
|
|
2013
2039
|
}
|
|
2014
2040
|
|