scandit-capacitor-datacapture-core 6.28.1 → 6.28.3
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 +48 -1
- package/dist/core.js.map +1 -1
- package/dist/dts/definitions.d.ts +1 -1
- package/dist/dts/index.d.ts +1 -1
- package/dist/dts/ts/DataCaptureView.d.ts +0 -14
- package/dist/index.js +11 -28
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/android/build.gradle
CHANGED
package/dist/core.js
CHANGED
|
@@ -1763,6 +1763,53 @@ var ScanIntention;
|
|
|
1763
1763
|
ScanIntention["Smart"] = "smart";
|
|
1764
1764
|
})(ScanIntention || (ScanIntention = {}));
|
|
1765
1765
|
|
|
1766
|
+
class HtmlElementPosition {
|
|
1767
|
+
constructor(top, left) {
|
|
1768
|
+
this.top = 0;
|
|
1769
|
+
this.left = 0;
|
|
1770
|
+
this.top = top;
|
|
1771
|
+
this.left = left;
|
|
1772
|
+
}
|
|
1773
|
+
didChangeComparedTo(other) {
|
|
1774
|
+
if (!other)
|
|
1775
|
+
return true;
|
|
1776
|
+
return this.top !== other.top || this.left !== other.left;
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
class HtmlElementSize {
|
|
1780
|
+
constructor(width, height) {
|
|
1781
|
+
this.width = width;
|
|
1782
|
+
this.height = height;
|
|
1783
|
+
}
|
|
1784
|
+
didChangeComparedTo(other) {
|
|
1785
|
+
if (!other)
|
|
1786
|
+
return true;
|
|
1787
|
+
return this.width !== other.width || this.height !== other.height;
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
class HTMLElementState {
|
|
1791
|
+
constructor() {
|
|
1792
|
+
this.isShown = false;
|
|
1793
|
+
this.position = null;
|
|
1794
|
+
this.size = null;
|
|
1795
|
+
this.shouldBeUnderContent = false;
|
|
1796
|
+
}
|
|
1797
|
+
get isValid() {
|
|
1798
|
+
return this.isShown !== undefined && this.isShown !== null
|
|
1799
|
+
&& this.position !== undefined && this.position !== null
|
|
1800
|
+
&& this.size !== undefined && this.size !== null
|
|
1801
|
+
&& this.shouldBeUnderContent !== undefined && this.shouldBeUnderContent !== null;
|
|
1802
|
+
}
|
|
1803
|
+
didChangeComparedTo(other) {
|
|
1804
|
+
var _a, _b, _c, _d;
|
|
1805
|
+
if (!other)
|
|
1806
|
+
return true;
|
|
1807
|
+
const positionChanged = (_b = (_a = this.position) === null || _a === void 0 ? void 0 : _a.didChangeComparedTo(other.position)) !== null && _b !== void 0 ? _b : (this.position !== other.position);
|
|
1808
|
+
const sizeChanged = (_d = (_c = this.size) === null || _c === void 0 ? void 0 : _c.didChangeComparedTo(other.size)) !== null && _d !== void 0 ? _d : (this.size !== other.size);
|
|
1809
|
+
return positionChanged || sizeChanged || this.shouldBeUnderContent !== other.shouldBeUnderContent;
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1766
1813
|
var DataCaptureViewEvents;
|
|
1767
1814
|
(function (DataCaptureViewEvents) {
|
|
1768
1815
|
DataCaptureViewEvents["didChangeSize"] = "DataCaptureViewListener.onSizeChanged";
|
|
@@ -2915,5 +2962,5 @@ var Expiration;
|
|
|
2915
2962
|
|
|
2916
2963
|
createEventEmitter();
|
|
2917
2964
|
|
|
2918
|
-
export { AimerViewfinder, Anchor, BaseController, BaseDataCaptureView, BaseNativeProxy, Brush, Camera, CameraController, CameraPosition, CameraSettings, Color, ContextStatus, ControlImage, DataCaptureContext, DataCaptureContextEvents, DataCaptureContextFeatures, DataCaptureContextSettings, DataCaptureViewController, DataCaptureViewEvents, DefaultSerializeable, Direction, EventEmitter, Expiration, FactoryMaker, Feedback, FocusGestureStrategy, FocusRange, FrameSourceListenerEvents, FrameSourceState, ImageBuffer, ImageFrameSource, LaserlineViewfinder, LaserlineViewfinderStyle, LicenseInfo, LogoStyle, MarginsWithUnit, MeasureUnit, NoViewfinder, NoneLocationSelection, NumberWithUnit, Orientation, Point, PointWithUnit, PrivateFocusGestureDeserializer, PrivateFrameData, PrivateZoomGestureDeserializer, Quadrilateral, RadiusLocationSelection, Rect, RectWithUnit, RectangularLocationSelection, RectangularViewfinder, RectangularViewfinderAnimation, RectangularViewfinderLineStyle, RectangularViewfinderStyle, ScanIntention, Size, SizeWithAspect, SizeWithUnit, SizeWithUnitAndAspect, SizingMode, Sound, SpotlightViewfinder, SwipeToZoom, TapToFocus, TorchState, TorchSwitchControl, Vibration, VibrationType, VideoResolution, WaveFormVibration, ZoomSwitchControl, getCoreDefaults, ignoreFromSerialization, ignoreFromSerializationIfNull, loadCoreDefaults, nameForSerialization, serializationDefault };
|
|
2965
|
+
export { AimerViewfinder, Anchor, BaseController, BaseDataCaptureView, BaseNativeProxy, Brush, Camera, CameraController, CameraPosition, CameraSettings, Color, ContextStatus, ControlImage, DataCaptureContext, DataCaptureContextEvents, DataCaptureContextFeatures, DataCaptureContextSettings, DataCaptureViewController, DataCaptureViewEvents, DefaultSerializeable, Direction, EventEmitter, Expiration, FactoryMaker, Feedback, FocusGestureStrategy, FocusRange, FrameSourceListenerEvents, FrameSourceState, HTMLElementState, HtmlElementPosition, HtmlElementSize, ImageBuffer, ImageFrameSource, LaserlineViewfinder, LaserlineViewfinderStyle, LicenseInfo, LogoStyle, MarginsWithUnit, MeasureUnit, NoViewfinder, NoneLocationSelection, NumberWithUnit, Orientation, Point, PointWithUnit, PrivateFocusGestureDeserializer, PrivateFrameData, PrivateZoomGestureDeserializer, Quadrilateral, RadiusLocationSelection, Rect, RectWithUnit, RectangularLocationSelection, RectangularViewfinder, RectangularViewfinderAnimation, RectangularViewfinderLineStyle, RectangularViewfinderStyle, ScanIntention, Size, SizeWithAspect, SizeWithUnit, SizeWithUnitAndAspect, SizingMode, Sound, SpotlightViewfinder, SwipeToZoom, TapToFocus, TorchState, TorchSwitchControl, Vibration, VibrationType, VideoResolution, WaveFormVibration, ZoomSwitchControl, getCoreDefaults, ignoreFromSerialization, ignoreFromSerializationIfNull, loadCoreDefaults, nameForSerialization, serializationDefault };
|
|
2919
2966
|
//# sourceMappingURL=core.js.map
|