scandit-react-native-datacapture-core 6.20.0-beta.2 → 6.21.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.
Files changed (117) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/ScanditDataCaptureCoreModule.kt +8 -4
  3. package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/ui/DataCaptureViewManager.kt +5 -2
  4. package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/utils/EventWithResult.kt +5 -3
  5. package/dist/core.js +2575 -0
  6. package/dist/core.js.map +1 -0
  7. package/{js → dist/dts}/DataCaptureView.d.ts +4 -5
  8. package/dist/dts/index.d.ts +18 -0
  9. package/dist/dts/native/CameraProxy.d.ts +14 -0
  10. package/dist/dts/native/DataCaptureContextProxy.d.ts +13 -0
  11. package/dist/dts/native/DataCaptureViewProxy.d.ts +13 -0
  12. package/dist/dts/native/FeedbackProxy.d.ts +4 -0
  13. package/dist/dts/native/ImageFrameSourceProxy.d.ts +12 -0
  14. package/dist/dts/native/initProxy.d.ts +1 -0
  15. package/dist/dts/private/Defaults.d.ts +1 -0
  16. package/dist/index.js +3123 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/tsconfig.tsbuildinfo +1 -0
  19. package/ios/Sources/ScanditDataCaptureCore.swift +6 -8
  20. package/ios/Sources/Utils/ReactNativeResult.swift +7 -0
  21. package/package.json +17 -7
  22. package/scandit-react-native-datacapture-core.podspec +1 -1
  23. package/js/Camera+Related.d.ts +0 -82
  24. package/js/Camera+Related.js +0 -308
  25. package/js/Camera+Related.js.map +0 -1
  26. package/js/Camera.d.ts +0 -28
  27. package/js/Camera.js +0 -162
  28. package/js/Camera.js.map +0 -1
  29. package/js/Common.d.ts +0 -138
  30. package/js/Common.js +0 -702
  31. package/js/Common.js.map +0 -1
  32. package/js/CommonEnums.d.ts +0 -38
  33. package/js/CommonEnums.js +0 -47
  34. package/js/CommonEnums.js.map +0 -1
  35. package/js/DataCaptureContext+Related.d.ts +0 -14
  36. package/js/DataCaptureContext+Related.js +0 -38
  37. package/js/DataCaptureContext+Related.js.map +0 -1
  38. package/js/DataCaptureContext.d.ts +0 -48
  39. package/js/DataCaptureContext.js +0 -182
  40. package/js/DataCaptureContext.js.map +0 -1
  41. package/js/DataCaptureVersion.js +0 -27
  42. package/js/DataCaptureVersion.js.map +0 -1
  43. package/js/DataCaptureView+Related.d.ts +0 -45
  44. package/js/DataCaptureView+Related.js +0 -183
  45. package/js/DataCaptureView+Related.js.map +0 -1
  46. package/js/DataCaptureView.js +0 -167
  47. package/js/DataCaptureView.js.map +0 -1
  48. package/js/Feedback.d.ts +0 -40
  49. package/js/Feedback.js +0 -180
  50. package/js/Feedback.js.map +0 -1
  51. package/js/FrameSource.d.ts +0 -22
  52. package/js/FrameSource.js +0 -16
  53. package/js/FrameSource.js.map +0 -1
  54. package/js/LocationSelection.d.ts +0 -24
  55. package/js/LocationSelection.js +0 -123
  56. package/js/LocationSelection.js.map +0 -1
  57. package/js/Viewfinder+Related.d.ts +0 -20
  58. package/js/Viewfinder+Related.js +0 -69
  59. package/js/Viewfinder+Related.js.map +0 -1
  60. package/js/Viewfinder.d.ts +0 -67
  61. package/js/Viewfinder.js +0 -232
  62. package/js/Viewfinder.js.map +0 -1
  63. package/js/index.d.ts +0 -14
  64. package/js/index.js +0 -31
  65. package/js/index.js.map +0 -1
  66. package/js/native/CameraProxy.d.ts +0 -15
  67. package/js/native/CameraProxy.js +0 -67
  68. package/js/native/CameraProxy.js.map +0 -1
  69. package/js/native/DataCaptureContextProxy.d.ts +0 -15
  70. package/js/native/DataCaptureContextProxy.js +0 -99
  71. package/js/native/DataCaptureContextProxy.js.map +0 -1
  72. package/js/native/DataCaptureViewProxy.d.ts +0 -12
  73. package/js/native/DataCaptureViewProxy.js +0 -58
  74. package/js/native/DataCaptureViewProxy.js.map +0 -1
  75. package/js/native/FeedbackProxy.d.ts +0 -6
  76. package/js/native/FeedbackProxy.js +0 -21
  77. package/js/native/FeedbackProxy.js.map +0 -1
  78. package/js/native/ImageFrameSourceProxy.d.ts +0 -11
  79. package/js/native/ImageFrameSourceProxy.js +0 -51
  80. package/js/native/ImageFrameSourceProxy.js.map +0 -1
  81. package/js/private/Defaults.d.ts +0 -60
  82. package/js/private/Defaults.js +0 -97
  83. package/js/private/Defaults.js.map +0 -1
  84. package/js/private/PrivateCamera+Related.d.ts +0 -52
  85. package/js/private/PrivateCamera+Related.js +0 -37
  86. package/js/private/PrivateCamera+Related.js.map +0 -1
  87. package/js/private/PrivateCamera.d.ts +0 -16
  88. package/js/private/PrivateCamera.js +0 -3
  89. package/js/private/PrivateCamera.js.map +0 -1
  90. package/js/private/PrivateCommon.d.ts +0 -86
  91. package/js/private/PrivateCommon.js +0 -3
  92. package/js/private/PrivateCommon.js.map +0 -1
  93. package/js/private/PrivateDataCaptureContext.d.ts +0 -27
  94. package/js/private/PrivateDataCaptureContext.js +0 -3
  95. package/js/private/PrivateDataCaptureContext.js.map +0 -1
  96. package/js/private/PrivateDataCaptureView+Related.d.ts +0 -17
  97. package/js/private/PrivateDataCaptureView+Related.js +0 -33
  98. package/js/private/PrivateDataCaptureView+Related.js.map +0 -1
  99. package/js/private/PrivateDataCaptureView.d.ts +0 -39
  100. package/js/private/PrivateDataCaptureView.js +0 -147
  101. package/js/private/PrivateDataCaptureView.js.map +0 -1
  102. package/js/private/PrivateFeedback.d.ts +0 -22
  103. package/js/private/PrivateFeedback.js +0 -3
  104. package/js/private/PrivateFeedback.js.map +0 -1
  105. package/js/private/PrivateFrameSource.d.ts +0 -4
  106. package/js/private/PrivateFrameSource.js +0 -3
  107. package/js/private/PrivateFrameSource.js.map +0 -1
  108. package/js/private/PrivateLocationSelection.d.ts +0 -14
  109. package/js/private/PrivateLocationSelection.js +0 -3
  110. package/js/private/PrivateLocationSelection.js.map +0 -1
  111. package/js/private/PrivateViewfinder+Related.d.ts +0 -7
  112. package/js/private/PrivateViewfinder+Related.js +0 -3
  113. package/js/private/PrivateViewfinder+Related.js.map +0 -1
  114. package/js/private/Serializeable.d.ts +0 -13
  115. package/js/private/Serializeable.js +0 -75
  116. package/js/private/Serializeable.js.map +0 -1
  117. /package/{js → dist/dts}/DataCaptureVersion.d.ts +0 -0
@@ -1,123 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- 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;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.RectangularLocationSelection = exports.RadiusLocationSelection = exports.NoneLocationSelection = void 0;
25
- var Common_1 = require("./Common");
26
- var Serializeable_1 = require("./private/Serializeable");
27
- // tslint:disable-next-line:variable-name
28
- exports.NoneLocationSelection = { type: 'none' };
29
- var RadiusLocationSelection = /** @class */ (function (_super) {
30
- __extends(RadiusLocationSelection, _super);
31
- function RadiusLocationSelection(radius) {
32
- var _this = _super.call(this) || this;
33
- _this.type = 'radius';
34
- _this._radius = radius;
35
- return _this;
36
- }
37
- Object.defineProperty(RadiusLocationSelection.prototype, "radius", {
38
- get: function () {
39
- return this._radius;
40
- },
41
- enumerable: false,
42
- configurable: true
43
- });
44
- RadiusLocationSelection.fromJSON = function (JSON) {
45
- var radius = Common_1.NumberWithUnit.fromJSON(JSON.radius);
46
- return new RadiusLocationSelection(radius);
47
- };
48
- __decorate([
49
- (0, Serializeable_1.nameForSerialization)('radius')
50
- ], RadiusLocationSelection.prototype, "_radius", void 0);
51
- return RadiusLocationSelection;
52
- }(Serializeable_1.DefaultSerializeable));
53
- exports.RadiusLocationSelection = RadiusLocationSelection;
54
- var RectangularLocationSelection = /** @class */ (function (_super) {
55
- __extends(RectangularLocationSelection, _super);
56
- function RectangularLocationSelection() {
57
- var _this = _super !== null && _super.apply(this, arguments) || this;
58
- _this.type = 'rectangular';
59
- return _this;
60
- }
61
- Object.defineProperty(RectangularLocationSelection.prototype, "sizeWithUnitAndAspect", {
62
- get: function () {
63
- return this._sizeWithUnitAndAspect;
64
- },
65
- enumerable: false,
66
- configurable: true
67
- });
68
- RectangularLocationSelection.withSize = function (size) {
69
- var locationSelection = new RectangularLocationSelection();
70
- locationSelection._sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect.sizeWithWidthAndHeight(size);
71
- return locationSelection;
72
- };
73
- RectangularLocationSelection.withWidthAndAspectRatio = function (width, heightToWidthAspectRatio) {
74
- var locationSelection = new RectangularLocationSelection();
75
- locationSelection._sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect
76
- .sizeWithWidthAndAspectRatio(width, heightToWidthAspectRatio);
77
- return locationSelection;
78
- };
79
- RectangularLocationSelection.withHeightAndAspectRatio = function (height, widthToHeightAspectRatio) {
80
- var locationSelection = new RectangularLocationSelection();
81
- locationSelection._sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect
82
- .sizeWithHeightAndAspectRatio(height, widthToHeightAspectRatio);
83
- return locationSelection;
84
- };
85
- RectangularLocationSelection.fromJSON = function (rectangularLocationSelectionJSON) {
86
- if (rectangularLocationSelectionJSON.aspect.width && rectangularLocationSelectionJSON.aspect.height) {
87
- var width = Common_1.NumberWithUnit
88
- .fromJSON(rectangularLocationSelectionJSON.aspect.width);
89
- var height = Common_1.NumberWithUnit
90
- .fromJSON(rectangularLocationSelectionJSON.aspect.height);
91
- var size = new Common_1.SizeWithUnit(width, height);
92
- return this.withSize(size);
93
- }
94
- else if (rectangularLocationSelectionJSON.aspect.width && rectangularLocationSelectionJSON.aspect.aspect) {
95
- var width = Common_1.NumberWithUnit
96
- .fromJSON(rectangularLocationSelectionJSON.aspect.width);
97
- return this.withWidthAndAspectRatio(width, rectangularLocationSelectionJSON.aspect.aspect);
98
- }
99
- else if (rectangularLocationSelectionJSON.aspect.height && rectangularLocationSelectionJSON.aspect.aspect) {
100
- var height = Common_1.NumberWithUnit
101
- .fromJSON(rectangularLocationSelectionJSON.aspect.height);
102
- return this.withHeightAndAspectRatio(height, rectangularLocationSelectionJSON.aspect.aspect);
103
- }
104
- else if (rectangularLocationSelectionJSON.aspect.shorterDimension && rectangularLocationSelectionJSON.aspect.aspect) {
105
- var shorterDimension = Common_1.NumberWithUnit
106
- .fromJSON(rectangularLocationSelectionJSON.aspect.shorterDimension);
107
- var sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect
108
- .sizeWithShorterDimensionAndAspectRatio(shorterDimension, rectangularLocationSelectionJSON.aspect.aspect);
109
- var locationSelection = new RectangularLocationSelection();
110
- locationSelection._sizeWithUnitAndAspect = sizeWithUnitAndAspect;
111
- return locationSelection;
112
- }
113
- else {
114
- throw new Error("RectangularLocationSelectionJSON is malformed: ".concat(JSON.stringify(rectangularLocationSelectionJSON)));
115
- }
116
- };
117
- __decorate([
118
- (0, Serializeable_1.nameForSerialization)('size')
119
- ], RectangularLocationSelection.prototype, "_sizeWithUnitAndAspect", void 0);
120
- return RectangularLocationSelection;
121
- }(Serializeable_1.DefaultSerializeable));
122
- exports.RectangularLocationSelection = RectangularLocationSelection;
123
- //# sourceMappingURL=LocationSelection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocationSelection.js","sourceRoot":"","sources":["../ts/LocationSelection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA+E;AAC/E,yDAAqF;AAOrF,yCAAyC;AAC5B,QAAA,qBAAqB,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AAEtD;IAA6C,2CAAoB;IAe/D,iCAAmB,MAAsB;QAAzC,YACE,iBAAO,SAER;QAjBO,UAAI,GAAG,QAAQ,CAAC;QAgBtB,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC;;IACxB,CAAC;IAZD,sBAAW,2CAAM;aAAjB;YACE,OAAO,IAAI,CAAC,OAAO,CAAC;QACtB,CAAC;;;OAAA;IAEM,gCAAQ,GAAf,UAAgB,IAAiC;QAC/C,IAAM,MAAM,GAAI,uBAA+C,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtF,OAAO,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IATO;QADP,IAAA,oCAAoB,EAAC,QAAQ,CAAC;4DACC;IAelC,8BAAC;CAAA,AAnBD,CAA6C,oCAAoB,GAmBhE;AAnBY,0DAAuB;AAqBpC;IAAkD,gDAAoB;IAAtE;QAAA,qEA4DC;QA3DS,UAAI,GAAG,aAAa,CAAC;;IA2D/B,CAAC;IAtDC,sBAAW,+DAAqB;aAAhC;YACE,OAAO,IAAI,CAAC,sBAAsB,CAAC;QACrC,CAAC;;;OAAA;IAEa,qCAAQ,GAAtB,UAAuB,IAAkB;QACvC,IAAM,iBAAiB,GAAG,IAAI,4BAA4B,EAAE,CAAC;QAC7D,iBAAiB,CAAC,sBAAsB,GAAI,8BAA6B,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QACvG,OAAO,iBAAiB,CAAC;IAC3B,CAAC;I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IAAI,gCAAgC,CAAC,MAAM,CAAC,MAAM,IAAI,gCAAgC,CAAC,MAAM,CAAC,MAAM,EAAE;YAC3G,IAAM,MAAM,GAAI,uBAA+C;iBAC1D,QAAQ,CAAC,gCAAgC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC9D,OAAO,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,gCAAgC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;SAC9F;aAAM,IAAI,gCAAgC,CAAC,MAAM,CAAC,gBAAgB,IAAI,gCAAgC,CAAC,MAAM,CAAC,MAAM,EAAE;YACrH,IAAM,gBAAgB,GAAI,uBAA+C;iBACpE,QAAQ,CAAC,gCAAgC,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;YACxE,IAAM,qBAAqB,GAAI,8BAA6B;iBACvD,sCAAsC,CAAC,gBAAgB,EAAE,gCAAgC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC9G,IAAM,iBAAiB,GAAG,IAAI,4BAA4B,EAAE,CAAC;YAC7D,iBAAiB,CAAC,sBAAsB,GAAG,qBAAqB,CAAC;YACjE,OAAO,iBAAiB,CAAC;SAC1B;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,yDAAkD,IAAI,CAAC,SAAS,CAAC,gCAAgC,CAAC,CAAE,CAAC,CAAC;SACvH;IACH,CAAC;IAvDO;QADP,IAAA,oCAAoB,EAAC,MAAM,CAAC;gFAC0B;IAwDzD,mCAAC;CAAA,AA5DD,CAAkD,oCAAoB,GA4DrE;AA5DY,oEAA4B"}
@@ -1,20 +0,0 @@
1
- import { DefaultSerializeable } from './private/Serializeable';
2
- export declare enum RectangularViewfinderStyle {
3
- Legacy = "legacy",
4
- Rounded = "rounded",
5
- Square = "square"
6
- }
7
- export declare enum RectangularViewfinderLineStyle {
8
- Light = "light",
9
- Bold = "bold"
10
- }
11
- export declare enum LaserlineViewfinderStyle {
12
- Legacy = "legacy",
13
- Animated = "animated"
14
- }
15
- export declare class RectangularViewfinderAnimation extends DefaultSerializeable {
16
- private readonly _isLooping;
17
- private static fromJSON;
18
- get isLooping(): boolean;
19
- constructor(isLooping: boolean);
20
- }
@@ -1,69 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- 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;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.RectangularViewfinderAnimation = exports.LaserlineViewfinderStyle = exports.RectangularViewfinderLineStyle = exports.RectangularViewfinderStyle = void 0;
25
- var Serializeable_1 = require("./private/Serializeable");
26
- var RectangularViewfinderStyle;
27
- (function (RectangularViewfinderStyle) {
28
- RectangularViewfinderStyle["Legacy"] = "legacy";
29
- RectangularViewfinderStyle["Rounded"] = "rounded";
30
- RectangularViewfinderStyle["Square"] = "square";
31
- })(RectangularViewfinderStyle || (exports.RectangularViewfinderStyle = RectangularViewfinderStyle = {}));
32
- var RectangularViewfinderLineStyle;
33
- (function (RectangularViewfinderLineStyle) {
34
- RectangularViewfinderLineStyle["Light"] = "light";
35
- RectangularViewfinderLineStyle["Bold"] = "bold";
36
- })(RectangularViewfinderLineStyle || (exports.RectangularViewfinderLineStyle = RectangularViewfinderLineStyle = {}));
37
- var LaserlineViewfinderStyle;
38
- (function (LaserlineViewfinderStyle) {
39
- LaserlineViewfinderStyle["Legacy"] = "legacy";
40
- LaserlineViewfinderStyle["Animated"] = "animated";
41
- })(LaserlineViewfinderStyle || (exports.LaserlineViewfinderStyle = LaserlineViewfinderStyle = {}));
42
- var RectangularViewfinderAnimation = /** @class */ (function (_super) {
43
- __extends(RectangularViewfinderAnimation, _super);
44
- function RectangularViewfinderAnimation(isLooping) {
45
- var _this = _super.call(this) || this;
46
- _this._isLooping = false;
47
- _this._isLooping = isLooping;
48
- return _this;
49
- }
50
- RectangularViewfinderAnimation.fromJSON = function (json) {
51
- if (json === null) {
52
- return null;
53
- }
54
- return new RectangularViewfinderAnimation(json.looping);
55
- };
56
- Object.defineProperty(RectangularViewfinderAnimation.prototype, "isLooping", {
57
- get: function () {
58
- return this._isLooping;
59
- },
60
- enumerable: false,
61
- configurable: true
62
- });
63
- __decorate([
64
- (0, Serializeable_1.nameForSerialization)('isLooping')
65
- ], RectangularViewfinderAnimation.prototype, "_isLooping", void 0);
66
- return RectangularViewfinderAnimation;
67
- }(Serializeable_1.DefaultSerializeable));
68
- exports.RectangularViewfinderAnimation = RectangularViewfinderAnimation;
69
- //# sourceMappingURL=Viewfinder+Related.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Viewfinder+Related.js","sourceRoot":"","sources":["../ts/Viewfinder+Related.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAqF;AAGrF,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IAClC,+CAAiB,CAAA;IACjB,iDAAmB,CAAA;IACnB,+CAAiB,CAAA;AACrB,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC;AAED,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACtC,iDAAe,CAAA;IACf,+CAAa,CAAA;AACjB,CAAC,EAHW,8BAA8B,8CAA9B,8BAA8B,QAGzC;AAED,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,6CAAiB,CAAA;IACjB,iDAAqB,CAAA;AACzB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAED;IAAoD,kDAAoB;IAepE,wCAAmB,SAAkB;QAArC,YACI,iBAAO,SAEV;QAhBgB,gBAAU,GAAY,KAAK,CAAC;QAezC,KAAI,CAAC,UAAU,GAAG,SAAS,CAAC;;IAChC,CAAC;IAdc,uCAAQ,GAAvB,UAAwB,IAA+C;QACnE,IAAI,IAAI,KAAK,IAAI,EAAE;YACf,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,8BAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,sBAAW,qDAAS;aAApB;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;;;OAAA;IAXgB;QADhB,IAAA,oCAAoB,EAAC,WAAW,CAAC;sEACW;IAiBjD,qCAAC;CAAA,AAnBD,CAAoD,oCAAoB,GAmBvE;AAnBY,wEAA8B"}
@@ -1,67 +0,0 @@
1
- import { Color, NumberWithUnit, SizeWithUnit, SizeWithUnitAndAspect } from './Common';
2
- import { DefaultSerializeable } from './private/Serializeable';
3
- import { LaserlineViewfinderStyle, RectangularViewfinderAnimation, RectangularViewfinderLineStyle, RectangularViewfinderStyle } from './Viewfinder+Related';
4
- export interface Viewfinder {
5
- }
6
- export declare const NoViewfinder: {
7
- type: string;
8
- };
9
- export declare class LaserlineViewfinder extends DefaultSerializeable implements Viewfinder {
10
- private type;
11
- private readonly _style;
12
- width: NumberWithUnit;
13
- enabledColor: Color;
14
- disabledColor: Color;
15
- constructor();
16
- constructor(style: LaserlineViewfinderStyle);
17
- get style(): LaserlineViewfinderStyle;
18
- }
19
- export declare class RectangularViewfinder extends DefaultSerializeable implements Viewfinder {
20
- private type;
21
- private readonly _style;
22
- private readonly _lineStyle;
23
- private _dimming;
24
- private _disabledDimming;
25
- private _animation;
26
- private _sizeWithUnitAndAspect;
27
- private _color;
28
- private _disabledColor;
29
- get sizeWithUnitAndAspect(): SizeWithUnitAndAspect;
30
- constructor();
31
- constructor(style: RectangularViewfinderStyle);
32
- constructor(style: RectangularViewfinderStyle, lineStyle: RectangularViewfinderLineStyle);
33
- get style(): RectangularViewfinderStyle;
34
- get lineStyle(): RectangularViewfinderLineStyle;
35
- get color(): Color;
36
- set color(value: Color);
37
- get disabledColor(): Color;
38
- set disabledColor(value: Color);
39
- get dimming(): number;
40
- set dimming(value: number);
41
- get disabledDimming(): number;
42
- set disabledDimming(value: number);
43
- get animation(): RectangularViewfinderAnimation | null;
44
- set animation(animation: RectangularViewfinderAnimation | null);
45
- setSize(size: SizeWithUnit): void;
46
- setWidthAndAspectRatio(width: NumberWithUnit, heightToWidthAspectRatio: number): void;
47
- setHeightAndAspectRatio(height: NumberWithUnit, widthToHeightAspectRatio: number): void;
48
- setShorterDimensionAndAspectRatio(fraction: number, aspectRatio: number): void;
49
- }
50
- export declare class SpotlightViewfinder extends DefaultSerializeable implements Viewfinder {
51
- private type;
52
- private _sizeWithUnitAndAspect;
53
- enabledBorderColor: Color;
54
- disabledBorderColor: Color;
55
- backgroundColor: Color;
56
- get sizeWithUnitAndAspect(): SizeWithUnitAndAspect;
57
- constructor();
58
- setSize(size: SizeWithUnit): void;
59
- setWidthAndAspectRatio(width: NumberWithUnit, heightToWidthAspectRatio: number): void;
60
- setHeightAndAspectRatio(height: NumberWithUnit, widthToHeightAspectRatio: number): void;
61
- }
62
- export declare class AimerViewfinder extends DefaultSerializeable implements Viewfinder {
63
- private type;
64
- frameColor: Color;
65
- dotColor: Color;
66
- constructor();
67
- }
package/js/Viewfinder.js DELETED
@@ -1,232 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- 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;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.AimerViewfinder = exports.SpotlightViewfinder = exports.RectangularViewfinder = exports.LaserlineViewfinder = exports.NoViewfinder = void 0;
25
- var Common_1 = require("./Common");
26
- var CommonEnums_1 = require("./CommonEnums");
27
- var Defaults_1 = require("./private/Defaults");
28
- var Serializeable_1 = require("./private/Serializeable");
29
- // tslint:disable-next-line:variable-name
30
- exports.NoViewfinder = { type: 'none' };
31
- var LaserlineViewfinder = /** @class */ (function (_super) {
32
- __extends(LaserlineViewfinder, _super);
33
- function LaserlineViewfinder(style) {
34
- var _this = _super.call(this) || this;
35
- _this.type = 'laserline';
36
- var viewfinderStyle = style || Defaults_1.Defaults.LaserlineViewfinder.defaultStyle;
37
- _this._style = Defaults_1.Defaults.LaserlineViewfinder.styles[viewfinderStyle].style;
38
- _this.width = Defaults_1.Defaults.LaserlineViewfinder.styles[viewfinderStyle].width;
39
- _this.enabledColor = Defaults_1.Defaults.LaserlineViewfinder.styles[viewfinderStyle].enabledColor;
40
- _this.disabledColor = Defaults_1.Defaults.LaserlineViewfinder.styles[viewfinderStyle].disabledColor;
41
- return _this;
42
- }
43
- Object.defineProperty(LaserlineViewfinder.prototype, "style", {
44
- get: function () {
45
- return this._style;
46
- },
47
- enumerable: false,
48
- configurable: true
49
- });
50
- __decorate([
51
- (0, Serializeable_1.nameForSerialization)('style')
52
- ], LaserlineViewfinder.prototype, "_style", void 0);
53
- return LaserlineViewfinder;
54
- }(Serializeable_1.DefaultSerializeable));
55
- exports.LaserlineViewfinder = LaserlineViewfinder;
56
- var RectangularViewfinder = /** @class */ (function (_super) {
57
- __extends(RectangularViewfinder, _super);
58
- function RectangularViewfinder(style, lineStyle) {
59
- var _this = _super.call(this) || this;
60
- _this.type = 'rectangular';
61
- var viewfinderStyle = style || Defaults_1.Defaults.RectangularViewfinder.defaultStyle;
62
- _this._style = Defaults_1.Defaults.RectangularViewfinder.styles[viewfinderStyle].style;
63
- _this._lineStyle = Defaults_1.Defaults.RectangularViewfinder.styles[viewfinderStyle].lineStyle;
64
- _this._dimming = Defaults_1.Defaults.RectangularViewfinder.styles[viewfinderStyle].dimming;
65
- _this._disabledDimming = Defaults_1.Defaults.RectangularViewfinder.styles[viewfinderStyle].disabledDimming;
66
- _this._animation = Defaults_1.Defaults.RectangularViewfinder.styles[viewfinderStyle].animation;
67
- _this._color = Defaults_1.Defaults.RectangularViewfinder.styles[viewfinderStyle].color;
68
- _this._disabledColor = Defaults_1.Defaults.RectangularViewfinder.styles[viewfinderStyle].disabledColor;
69
- _this._sizeWithUnitAndAspect = Defaults_1.Defaults.RectangularViewfinder.styles[viewfinderStyle].size;
70
- if (lineStyle !== undefined) {
71
- _this._lineStyle = lineStyle;
72
- }
73
- return _this;
74
- }
75
- Object.defineProperty(RectangularViewfinder.prototype, "sizeWithUnitAndAspect", {
76
- get: function () {
77
- return this._sizeWithUnitAndAspect;
78
- },
79
- enumerable: false,
80
- configurable: true
81
- });
82
- Object.defineProperty(RectangularViewfinder.prototype, "style", {
83
- get: function () {
84
- return this._style;
85
- },
86
- enumerable: false,
87
- configurable: true
88
- });
89
- Object.defineProperty(RectangularViewfinder.prototype, "lineStyle", {
90
- get: function () {
91
- return this._lineStyle;
92
- },
93
- enumerable: false,
94
- configurable: true
95
- });
96
- Object.defineProperty(RectangularViewfinder.prototype, "color", {
97
- get: function () {
98
- return this._color;
99
- },
100
- set: function (value) {
101
- this._color = value;
102
- },
103
- enumerable: false,
104
- configurable: true
105
- });
106
- Object.defineProperty(RectangularViewfinder.prototype, "disabledColor", {
107
- get: function () {
108
- return this._disabledColor;
109
- },
110
- set: function (value) {
111
- this._disabledColor = value;
112
- },
113
- enumerable: false,
114
- configurable: true
115
- });
116
- Object.defineProperty(RectangularViewfinder.prototype, "dimming", {
117
- get: function () {
118
- return this._dimming;
119
- },
120
- set: function (value) {
121
- this._dimming = value;
122
- },
123
- enumerable: false,
124
- configurable: true
125
- });
126
- Object.defineProperty(RectangularViewfinder.prototype, "disabledDimming", {
127
- get: function () {
128
- return this._disabledDimming;
129
- },
130
- set: function (value) {
131
- this._disabledDimming = value;
132
- },
133
- enumerable: false,
134
- configurable: true
135
- });
136
- Object.defineProperty(RectangularViewfinder.prototype, "animation", {
137
- get: function () {
138
- return this._animation;
139
- },
140
- set: function (animation) {
141
- this._animation = animation;
142
- },
143
- enumerable: false,
144
- configurable: true
145
- });
146
- RectangularViewfinder.prototype.setSize = function (size) {
147
- this._sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect.sizeWithWidthAndHeight(size);
148
- };
149
- RectangularViewfinder.prototype.setWidthAndAspectRatio = function (width, heightToWidthAspectRatio) {
150
- this._sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect.sizeWithWidthAndAspectRatio(width, heightToWidthAspectRatio);
151
- };
152
- RectangularViewfinder.prototype.setHeightAndAspectRatio = function (height, widthToHeightAspectRatio) {
153
- this._sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect.sizeWithHeightAndAspectRatio(height, widthToHeightAspectRatio);
154
- };
155
- RectangularViewfinder.prototype.setShorterDimensionAndAspectRatio = function (fraction, aspectRatio) {
156
- this._sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect.sizeWithShorterDimensionAndAspectRatio(new Common_1.NumberWithUnit(fraction, CommonEnums_1.MeasureUnit.Fraction), aspectRatio);
157
- };
158
- __decorate([
159
- (0, Serializeable_1.nameForSerialization)('style')
160
- ], RectangularViewfinder.prototype, "_style", void 0);
161
- __decorate([
162
- (0, Serializeable_1.nameForSerialization)('lineStyle')
163
- ], RectangularViewfinder.prototype, "_lineStyle", void 0);
164
- __decorate([
165
- (0, Serializeable_1.nameForSerialization)('dimming')
166
- ], RectangularViewfinder.prototype, "_dimming", void 0);
167
- __decorate([
168
- (0, Serializeable_1.nameForSerialization)('disabledDimming')
169
- ], RectangularViewfinder.prototype, "_disabledDimming", void 0);
170
- __decorate([
171
- (0, Serializeable_1.nameForSerialization)('animation')
172
- ], RectangularViewfinder.prototype, "_animation", void 0);
173
- __decorate([
174
- (0, Serializeable_1.nameForSerialization)('size')
175
- ], RectangularViewfinder.prototype, "_sizeWithUnitAndAspect", void 0);
176
- __decorate([
177
- (0, Serializeable_1.nameForSerialization)('color')
178
- ], RectangularViewfinder.prototype, "_color", void 0);
179
- __decorate([
180
- (0, Serializeable_1.nameForSerialization)('disabledColor')
181
- ], RectangularViewfinder.prototype, "_disabledColor", void 0);
182
- return RectangularViewfinder;
183
- }(Serializeable_1.DefaultSerializeable));
184
- exports.RectangularViewfinder = RectangularViewfinder;
185
- var SpotlightViewfinder = /** @class */ (function (_super) {
186
- __extends(SpotlightViewfinder, _super);
187
- function SpotlightViewfinder() {
188
- var _this = _super.call(this) || this;
189
- _this.type = 'spotlight';
190
- _this._sizeWithUnitAndAspect = Defaults_1.Defaults.SpotlightViewfinder.size;
191
- _this.enabledBorderColor = Defaults_1.Defaults.SpotlightViewfinder.enabledBorderColor;
192
- _this.disabledBorderColor = Defaults_1.Defaults.SpotlightViewfinder.disabledBorderColor;
193
- _this.backgroundColor = Defaults_1.Defaults.SpotlightViewfinder.backgroundColor;
194
- // tslint:disable-next-line:no-console
195
- console.warn('SpotlightViewfinder is deprecated and will be removed in a future release. Use RectangularViewfinder instead.');
196
- return _this;
197
- }
198
- Object.defineProperty(SpotlightViewfinder.prototype, "sizeWithUnitAndAspect", {
199
- get: function () {
200
- return this._sizeWithUnitAndAspect;
201
- },
202
- enumerable: false,
203
- configurable: true
204
- });
205
- SpotlightViewfinder.prototype.setSize = function (size) {
206
- this._sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect.sizeWithWidthAndHeight(size);
207
- };
208
- SpotlightViewfinder.prototype.setWidthAndAspectRatio = function (width, heightToWidthAspectRatio) {
209
- this._sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect.sizeWithWidthAndAspectRatio(width, heightToWidthAspectRatio);
210
- };
211
- SpotlightViewfinder.prototype.setHeightAndAspectRatio = function (height, widthToHeightAspectRatio) {
212
- this._sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect.sizeWithHeightAndAspectRatio(height, widthToHeightAspectRatio);
213
- };
214
- __decorate([
215
- (0, Serializeable_1.nameForSerialization)('size')
216
- ], SpotlightViewfinder.prototype, "_sizeWithUnitAndAspect", void 0);
217
- return SpotlightViewfinder;
218
- }(Serializeable_1.DefaultSerializeable));
219
- exports.SpotlightViewfinder = SpotlightViewfinder;
220
- var AimerViewfinder = /** @class */ (function (_super) {
221
- __extends(AimerViewfinder, _super);
222
- function AimerViewfinder() {
223
- var _this = _super.call(this) || this;
224
- _this.type = 'aimer';
225
- _this.frameColor = Defaults_1.Defaults.AimerViewfinder.frameColor;
226
- _this.dotColor = Defaults_1.Defaults.AimerViewfinder.dotColor;
227
- return _this;
228
- }
229
- return AimerViewfinder;
230
- }(Serializeable_1.DefaultSerializeable));
231
- exports.AimerViewfinder = AimerViewfinder;
232
- //# sourceMappingURL=Viewfinder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Viewfinder.js","sourceRoot":"","sources":["../ts/Viewfinder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAsF;AACtF,6CAA4C;AAC5C,+CAA8C;AAC9C,yDAAqF;AAWrF,yCAAyC;AAC5B,QAAA,YAAY,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AAE7C;IAAyC,uCAAoB;IAY3D,6BAAY,KAAgC;QAA5C,YACE,iBAAO,SAQR;QApBO,UAAI,GAAG,WAAW,CAAC;QAczB,IAAM,eAAe,GAAG,KAAK,IAAI,mBAAQ,CAAC,mBAAmB,CAAC,YAAY,CAAC;QAE3E,KAAI,CAAC,MAAM,GAAG,mBAAQ,CAAC,mBAAmB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC;QACzE,KAAI,CAAC,KAAK,GAAG,mBAAQ,CAAC,mBAAmB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC;QACxE,KAAI,CAAC,YAAY,GAAG,mBAAQ,CAAC,mBAAmB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC;QACtF,KAAI,CAAC,aAAa,GAAG,mBAAQ,CAAC,mBAAmB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,aAAa,CAAC;;IAC1F,CAAC;IAED,sBAAW,sCAAK;aAAhB;YACE,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;;;OAAA;IArBgB;QADhB,IAAA,oCAAoB,EAAC,OAAO,CAAC;uDACoB;IAsBpD,0BAAC;CAAA,AA1BD,CAAyC,oCAAoB,GA0B5D;AA1BY,kDAAmB;AA4BhC;IAA2C,yCAAoB;IAkC7D,+BAAY,KAAkC,EAAE,SAA0C;QAA1F,YACE,iBAAO,SAgBR;QAlDO,UAAI,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OAAA;IAQM,qCAAO,GAAd,UAAe,IAAkB;QAC/B,IAAI,CAAC,sBAAsB,GAAI,8BAA6B,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAC5F,CAAC;IAEM,oDAAsB,GAA7B,UAA8B,KAAqB,EAAE,wBAAgC;QACnF,IAAI,CAAC,sBAAsB,GAAI,8BAA6B,CAAC,2BAA2B,CAAC,KAAK,EAC5F,wBAAwB,CAAC,CAAC;IAC9B,CAAC;IAEM,qDAAuB,GAA9B,UAA+B,MAAsB,EAAE,wBAAgC;QACrF,IAAI,CAAC,sBAAsB,GAAI,8BAA6B,CAAC,4BAA4B,CAAC,MAAM,EAC9F,wBAAwB,CAAC,CAAC;IAC9B,CAAC;IA5BO;QADP,IAAA,oCAAoB,EAAC,MAAM,CAAC;uEAC6D;IA6B5F,0BAAC;CAAA,AAjCD,CAAyC,oCAAoB,GAiC5D;AAjCY,kDAAmB;AAmChC;IAAqC,mCAAoB;IAMvD;QAAA,YACE,iBAAO,SACR;QAPO,UAAI,GAAG,OAAO,CAAC;QAEhB,gBAAU,GAAU,mBAAQ,CAAC,eAAe,CAAC,UAAU,CAAC;QACxD,cAAQ,GAAU,mBAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC;;IAI3D,CAAC;IACH,sBAAC;AAAD,CAAC,AATD,CAAqC,oCAAoB,GASxD;AATY,0CAAe"}
package/js/index.d.ts DELETED
@@ -1,14 +0,0 @@
1
- export * from './Camera';
2
- export * from './Camera+Related';
3
- export * from './Common';
4
- export * from './CommonEnums';
5
- export * from './DataCaptureContext';
6
- export * from './DataCaptureContext+Related';
7
- export * from './DataCaptureVersion';
8
- export * from './DataCaptureView';
9
- export * from './DataCaptureView+Related';
10
- export * from './Feedback';
11
- export * from './FrameSource';
12
- export * from './LocationSelection';
13
- export * from './Viewfinder';
14
- export * from './Viewfinder+Related';
package/js/index.js DELETED
@@ -1,31 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./Camera"), exports);
18
- __exportStar(require("./Camera+Related"), exports);
19
- __exportStar(require("./Common"), exports);
20
- __exportStar(require("./CommonEnums"), exports);
21
- __exportStar(require("./DataCaptureContext"), exports);
22
- __exportStar(require("./DataCaptureContext+Related"), exports);
23
- __exportStar(require("./DataCaptureVersion"), exports);
24
- __exportStar(require("./DataCaptureView"), exports);
25
- __exportStar(require("./DataCaptureView+Related"), exports);
26
- __exportStar(require("./Feedback"), exports);
27
- __exportStar(require("./FrameSource"), exports);
28
- __exportStar(require("./LocationSelection"), exports);
29
- __exportStar(require("./Viewfinder"), exports);
30
- __exportStar(require("./Viewfinder+Related"), exports);
31
- //# sourceMappingURL=index.js.map
package/js/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,mDAAiC;AAEjC,2CAAyB;AACzB,gDAA8B;AAE9B,uDAAqC;AACrC,+DAA6C;AAE7C,uDAAqC;AAErC,oDAAkC;AAClC,4DAA0C;AAE1C,6CAA2B;AAE3B,gDAA8B;AAE9B,sDAAoC;AAEpC,+CAA6B;AAE7B,uDAAqC"}
@@ -1,15 +0,0 @@
1
- import { Camera } from '../Camera';
2
- import { FrameSourceState } from '../FrameSource';
3
- import { FrameData } from '../private/PrivateCamera+Related';
4
- export declare class CameraProxy {
5
- private camera;
6
- private nativeListeners;
7
- static forCamera(camera: Camera): CameraProxy;
8
- static getLastFrame(): Promise<FrameData>;
9
- static getLastFrameOrNull(): Promise<FrameData | null>;
10
- getCurrentState(): Promise<FrameSourceState>;
11
- getIsTorchAvailable(): Promise<boolean>;
12
- dispose(): void;
13
- subscribeListener(): void;
14
- unsubscribeListener(): void;
15
- }