scandit-datacapture-frameworks-core 8.4.0 → 8.5.0-beta.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/__mocks__/Defaults.ts +61 -61
- package/__mocks__/ScanditDataCaptureCore.ts +7 -5
- package/dist/dts/LicenseInfo.d.ts +2 -2
- package/dist/dts/camera/Camera.d.ts +7 -7
- package/dist/dts/camera/CameraSettings.d.ts +5 -5
- package/dist/dts/camera/FocusGesture.d.ts +2 -2
- package/dist/dts/camera/FocusGestureListener.d.ts +2 -2
- package/dist/dts/camera/PinchToZoom.d.ts +4 -4
- package/dist/dts/camera/PrivateFocusGestureDeserializer.d.ts +1 -1
- package/dist/dts/camera/PrivateZoomGestureDeserializer.d.ts +1 -1
- package/dist/dts/camera/SwipeToZoom.d.ts +4 -4
- package/dist/dts/camera/TapToFocus.d.ts +5 -5
- package/dist/dts/camera/TorchSwitchControl.d.ts +2 -2
- package/dist/dts/camera/ZoomGesture.d.ts +1 -1
- package/dist/dts/camera/ZoomGestureListener.d.ts +1 -1
- package/dist/dts/camera/ZoomSwitchControl.d.ts +3 -3
- package/dist/dts/camera/controller/CameraController.d.ts +4 -4
- package/dist/dts/camera/index.d.ts +24 -24
- package/dist/dts/camerahelpers/CameraOwnershipHelper.d.ts +3 -3
- package/dist/dts/camerahelpers/CameraOwnershipManager.d.ts +2 -2
- package/dist/dts/camerahelpers/index.d.ts +8 -8
- package/dist/dts/common/Brush.d.ts +2 -2
- package/dist/dts/common/MarginsWithUnit.d.ts +2 -2
- package/dist/dts/common/NumberWithUnit.d.ts +2 -2
- package/dist/dts/common/Observable.d.ts +1 -1
- package/dist/dts/common/Payload.d.ts +3 -3
- package/dist/dts/common/Point.d.ts +1 -1
- package/dist/dts/common/PointWithUnit.d.ts +2 -2
- package/dist/dts/common/Quadrilateral.d.ts +2 -2
- package/dist/dts/common/Rect.d.ts +3 -3
- package/dist/dts/common/RectWithUnit.d.ts +3 -3
- package/dist/dts/common/ScanIntention.d.ts +3 -0
- package/dist/dts/common/ScanditIcon.d.ts +4 -4
- package/dist/dts/common/ScanditIconBuilder.d.ts +4 -4
- package/dist/dts/common/ScanditIconType.d.ts +5 -1
- package/dist/dts/common/SelectionMode.d.ts +5 -0
- package/dist/dts/common/Size.d.ts +1 -1
- package/dist/dts/common/SizeWithAspect.d.ts +2 -2
- package/dist/dts/common/SizeWithUnit.d.ts +2 -2
- package/dist/dts/common/SizeWithUnitAndAspect.d.ts +5 -5
- package/dist/dts/common/index.d.ts +57 -55
- package/dist/dts/context/DataCaptureComponent.d.ts +1 -1
- package/dist/dts/context/DataCaptureContextListener.d.ts +2 -2
- package/dist/dts/context/DataCaptureContextSettings.d.ts +3 -3
- package/dist/dts/context/DataCaptureMode.d.ts +2 -2
- package/dist/dts/context/index.d.ts +12 -12
- package/dist/dts/controllers/index.d.ts +1 -1
- package/dist/dts/defaults/CoreDefaults.d.ts +12 -3
- package/dist/dts/defaults/index.d.ts +3 -3
- package/dist/dts/defaults/loadCoreDefaults.d.ts +1 -1
- package/dist/dts/feedback/Sound.d.ts +1 -1
- package/dist/dts/feedback/Vibration.d.ts +3 -2
- package/dist/dts/feedback/VibrationType.d.ts +1 -0
- package/dist/dts/feedback/index.d.ts +7 -7
- package/dist/dts/frame/FrameData.d.ts +1 -1
- package/dist/dts/frame/FrameDataSettingsBuilder.d.ts +1 -1
- package/dist/dts/frame/FrameSource.d.ts +4 -4
- package/dist/dts/frame/FrameSourceListener.d.ts +2 -2
- package/dist/dts/frame/ImageFrameSource.d.ts +8 -7
- package/dist/dts/frame/MacroModeListener.d.ts +1 -1
- package/dist/dts/frame/TorchListener.d.ts +1 -1
- package/dist/dts/frame/index.d.ts +13 -13
- package/dist/dts/helpers/index.d.ts +1 -1
- package/dist/dts/locationselection/RadiusLocationSelection.d.ts +3 -3
- package/dist/dts/locationselection/RectangularLocationSelection.d.ts +3 -3
- package/dist/dts/locationselection/index.d.ts +6 -6
- package/dist/dts/proxies/NativeProxy.d.ts +2 -2
- package/dist/dts/proxies/index.d.ts +5 -5
- package/dist/dts/proxy-types.d.ts +1 -1
- package/dist/dts/serializable/DefaultSerializable.d.ts +1 -1
- package/dist/dts/serializable/index.d.ts +7 -7
- package/dist/dts/view/Control.d.ts +2 -2
- package/dist/dts/view/ControlImage.d.ts +1 -1
- package/dist/dts/view/DataCaptureOverlay.d.ts +2 -2
- package/dist/dts/view/DataCaptureViewController.d.ts +7 -7
- package/dist/dts/view/DataCaptureViewListener.d.ts +2 -2
- package/dist/dts/view/index.d.ts +7 -7
- package/dist/dts/viewfinder/AimerViewfinder.d.ts +3 -3
- package/dist/dts/viewfinder/LaserlineViewfinder.d.ts +3 -3
- package/dist/dts/viewfinder/RectangularViewfinderAnimation.d.ts +1 -1
- package/dist/dts/viewfinder/index.d.ts +9 -9
- package/dist/index.js +1696 -1651
- package/dist/index.js.map +1 -1
- package/jest.config.js +5 -15
- package/package.json +1 -1
- package/test/Camera.test.ts +18 -8
- package/test/CameraSettings.test.ts +340 -341
- package/test/ProxyRegistration.test.ts +6 -7
- package/test/ZoomSwitchControl.test.ts +100 -100
- package/test/generated/CoreProxyAdapter.test.ts +4 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Serializeable } from
|
|
2
|
-
import { SizeWithUnit } from
|
|
3
|
-
import { SizeWithAspect } from
|
|
4
|
-
import { SizingMode } from
|
|
5
|
-
import { NumberWithUnitJSON } from
|
|
1
|
+
import { Serializeable } from '../serializable';
|
|
2
|
+
import { SizeWithUnit } from './SizeWithUnit';
|
|
3
|
+
import { SizeWithAspect } from './SizeWithAspect';
|
|
4
|
+
import { SizingMode } from './SizingMode';
|
|
5
|
+
import { NumberWithUnitJSON } from './NumberWithUnit';
|
|
6
6
|
export interface SizeWithUnitAndAspectJSON {
|
|
7
7
|
width?: NumberWithUnitJSON;
|
|
8
8
|
height?: NumberWithUnitJSON;
|
|
@@ -1,55 +1,57 @@
|
|
|
1
|
-
export { FontFamily } from
|
|
2
|
-
export { TextAlignment } from
|
|
3
|
-
export { Point } from
|
|
4
|
-
export { Quadrilateral } from
|
|
5
|
-
export { NumberWithUnit } from
|
|
6
|
-
export { PointWithUnit } from
|
|
7
|
-
export { Rect } from
|
|
8
|
-
export { RectWithUnit } from
|
|
9
|
-
export { ScanditIcon } from
|
|
10
|
-
export { ScanditIconBuilder } from
|
|
11
|
-
export { ScanditIconShape } from
|
|
12
|
-
export { ScanditIconType } from
|
|
13
|
-
export { Size } from
|
|
14
|
-
export { SizeWithAspect } from
|
|
15
|
-
export { SizeWithUnit } from
|
|
16
|
-
export { SizeWithUnitAndAspect } from
|
|
17
|
-
export { MarginsWithUnit } from
|
|
18
|
-
export { Color } from
|
|
19
|
-
export { Brush } from
|
|
20
|
-
export { Anchor } from
|
|
21
|
-
export { MeasureUnit } from
|
|
22
|
-
export { SizingMode } from
|
|
23
|
-
export { Orientation } from
|
|
24
|
-
export { Direction } from
|
|
25
|
-
export { ScanIntention } from
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export * from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
43
|
-
export * from
|
|
44
|
-
export * from
|
|
45
|
-
export * from
|
|
46
|
-
export * from
|
|
47
|
-
export * from
|
|
48
|
-
export * from
|
|
49
|
-
export * from
|
|
50
|
-
export * from
|
|
51
|
-
export * from
|
|
52
|
-
export * from
|
|
53
|
-
export * from
|
|
54
|
-
export * from
|
|
55
|
-
export * from
|
|
1
|
+
export { FontFamily } from './FontFamily';
|
|
2
|
+
export { TextAlignment } from './TextAlignment';
|
|
3
|
+
export { Point } from './Point';
|
|
4
|
+
export { Quadrilateral } from './Quadrilateral';
|
|
5
|
+
export { NumberWithUnit } from './NumberWithUnit';
|
|
6
|
+
export { PointWithUnit } from './PointWithUnit';
|
|
7
|
+
export { Rect } from './Rect';
|
|
8
|
+
export { RectWithUnit } from './RectWithUnit';
|
|
9
|
+
export { ScanditIcon } from './ScanditIcon';
|
|
10
|
+
export { ScanditIconBuilder } from './ScanditIconBuilder';
|
|
11
|
+
export { ScanditIconShape } from './ScanditIconShape';
|
|
12
|
+
export { ScanditIconType } from './ScanditIconType';
|
|
13
|
+
export { Size } from './Size';
|
|
14
|
+
export { SizeWithAspect } from './SizeWithAspect';
|
|
15
|
+
export { SizeWithUnit } from './SizeWithUnit';
|
|
16
|
+
export { SizeWithUnitAndAspect } from './SizeWithUnitAndAspect';
|
|
17
|
+
export { MarginsWithUnit } from './MarginsWithUnit';
|
|
18
|
+
export { Color } from './Color';
|
|
19
|
+
export { Brush } from './Brush';
|
|
20
|
+
export { Anchor } from './Anchor';
|
|
21
|
+
export { MeasureUnit } from './MeasureUnit';
|
|
22
|
+
export { SizingMode } from './SizingMode';
|
|
23
|
+
export { Orientation } from './Orientation';
|
|
24
|
+
export { Direction } from './Direction';
|
|
25
|
+
export { ScanIntention } from './ScanIntention';
|
|
26
|
+
export { SelectionMode } from './SelectionMode';
|
|
27
|
+
export * from './Payload';
|
|
28
|
+
export { Observable, PropertyChangeListener } from './Observable';
|
|
29
|
+
export * from './FontFamily';
|
|
30
|
+
export * from './TextAlignment';
|
|
31
|
+
export * from './Point';
|
|
32
|
+
export * from './Quadrilateral';
|
|
33
|
+
export * from './NumberWithUnit';
|
|
34
|
+
export * from './PointWithUnit';
|
|
35
|
+
export * from './Rect';
|
|
36
|
+
export * from './RectWithUnit';
|
|
37
|
+
export * from './ScanditIcon';
|
|
38
|
+
export * from './Size';
|
|
39
|
+
export * from './SizeWithAspect';
|
|
40
|
+
export * from './SizeWithUnit';
|
|
41
|
+
export * from './SizeWithUnitAndAspect';
|
|
42
|
+
export * from './MarginsWithUnit';
|
|
43
|
+
export * from './Color';
|
|
44
|
+
export * from './Brush';
|
|
45
|
+
export * from './Anchor';
|
|
46
|
+
export * from './MeasureUnit';
|
|
47
|
+
export * from './SizingMode';
|
|
48
|
+
export * from './Orientation';
|
|
49
|
+
export * from './Direction';
|
|
50
|
+
export * from './Anchor';
|
|
51
|
+
export * from './MeasureUnit';
|
|
52
|
+
export * from './SizingMode';
|
|
53
|
+
export * from './Orientation';
|
|
54
|
+
export * from './Direction';
|
|
55
|
+
export * from './ScanIntention';
|
|
56
|
+
export * from './SelectionMode';
|
|
57
|
+
export * from './HtmlElementState';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContextStatus } from
|
|
2
|
-
import { DataCaptureContext } from
|
|
1
|
+
import { ContextStatus } from './ContextStatus';
|
|
2
|
+
import { DataCaptureContext } from './DataCaptureContext';
|
|
3
3
|
export interface DataCaptureContextListener {
|
|
4
4
|
didChangeStatus?(context: DataCaptureContext, contextStatus: ContextStatus): void;
|
|
5
5
|
didStartObservingContext?(context: DataCaptureContext): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { FrameDataSettings } from
|
|
3
|
-
import { FrameDataSettingsBuilder } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { FrameDataSettings } from '../frame/FrameDataSettings';
|
|
3
|
+
import { FrameDataSettingsBuilder } from '../frame/FrameDataSettingsBuilder';
|
|
4
4
|
export declare class DataCaptureContextSettings extends DefaultSerializeable {
|
|
5
5
|
private _frameSettings;
|
|
6
6
|
constructor();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Serializeable } from
|
|
2
|
-
import { DataCaptureContext } from
|
|
1
|
+
import { Serializeable } from '../serializable';
|
|
2
|
+
import { DataCaptureContext } from './DataCaptureContext';
|
|
3
3
|
export interface DataCaptureMode extends Serializeable {
|
|
4
4
|
isEnabled: boolean;
|
|
5
5
|
readonly context: DataCaptureContext | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { ContextStatus } from
|
|
2
|
-
export { DataCaptureComponent, PrivateDataCaptureComponent } from
|
|
3
|
-
export { DataCaptureContextCreationOptions } from
|
|
4
|
-
export { DataCaptureContextSettings } from
|
|
5
|
-
export { DataCaptureContext } from
|
|
6
|
-
export { DataCaptureContextProxy, DataCaptureContextEvents } from
|
|
7
|
-
export { DataCaptureMode } from
|
|
8
|
-
export { DataCaptureContextListener } from
|
|
9
|
-
export { PrivateContextStatus } from
|
|
10
|
-
export { PrivateDataCaptureContext } from
|
|
11
|
-
export { PrivateDataCaptureMode } from
|
|
12
|
-
export { OpenSourceSoftwareLicenseInfo } from
|
|
1
|
+
export { ContextStatus } from './ContextStatus';
|
|
2
|
+
export { DataCaptureComponent, PrivateDataCaptureComponent } from './DataCaptureComponent';
|
|
3
|
+
export { DataCaptureContextCreationOptions } from './DataCaptureContextCreationOptions';
|
|
4
|
+
export { DataCaptureContextSettings } from './DataCaptureContextSettings';
|
|
5
|
+
export { DataCaptureContext } from './DataCaptureContext';
|
|
6
|
+
export { DataCaptureContextProxy, DataCaptureContextEvents } from './controller/DataCaptureContextController';
|
|
7
|
+
export { DataCaptureMode } from './DataCaptureMode';
|
|
8
|
+
export { DataCaptureContextListener } from './DataCaptureContextListener';
|
|
9
|
+
export { PrivateContextStatus } from './ContextStatus';
|
|
10
|
+
export { PrivateDataCaptureContext } from './DataCaptureContext';
|
|
11
|
+
export { PrivateDataCaptureMode } from './DataCaptureMode';
|
|
12
|
+
export { OpenSourceSoftwareLicenseInfo } from './OpenSourceSoftwareLicenseInfo';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './BaseController';
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import { FocusGesture
|
|
2
|
-
import {
|
|
1
|
+
import { FocusGesture } from '../camera/FocusGesture';
|
|
2
|
+
import { FocusGestureStrategy } from '../camera/FocusGestureStrategy';
|
|
3
|
+
import { FocusRange } from '../camera/FocusRange';
|
|
4
|
+
import { LogoStyle } from '../camera/LogoStyle';
|
|
5
|
+
import { MacroMode } from '../camera/MacroMode';
|
|
6
|
+
import { VideoResolution } from '../camera/VideoResolution';
|
|
7
|
+
import { ZoomGesture } from '../camera/ZoomGesture';
|
|
8
|
+
import { ZoomSwitchOrientation } from '../camera/ZoomSwitchOrientation';
|
|
9
|
+
import { CameraPosition } from '../camerahelpers/CameraPosition';
|
|
3
10
|
import { Anchor, Brush, Color, MarginsWithUnit, NumberWithUnit, PointWithUnit, SizeWithUnitAndAspect } from '../common';
|
|
4
|
-
import { RectangularViewfinderAnimation
|
|
11
|
+
import { RectangularViewfinderAnimation } from '../viewfinder/RectangularViewfinderAnimation';
|
|
12
|
+
import { RectangularViewfinderLineStyle } from '../viewfinder/RectangularViewfinderLineStyle';
|
|
13
|
+
import { RectangularViewfinderStyle } from '../viewfinder/RectangularViewfinderStyle';
|
|
5
14
|
export interface CameraSettingsDefaults {
|
|
6
15
|
preferredResolution: VideoResolution;
|
|
7
16
|
zoomFactor: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CoreDefaults } from
|
|
2
|
-
export { getCoreDefaults } from
|
|
3
|
-
export { setCoreDefaultsLoader, ensureCoreDefaults } from
|
|
1
|
+
export { CoreDefaults } from './CoreDefaults';
|
|
2
|
+
export { getCoreDefaults } from './getCoreDefaults';
|
|
3
|
+
export { setCoreDefaultsLoader, ensureCoreDefaults } from './loadCoreDefaults';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CoreDefaults } from
|
|
1
|
+
import { CoreDefaults } from './CoreDefaults';
|
|
2
2
|
export declare function setCoreDefaultsLoader(loader: () => void): void;
|
|
3
3
|
export declare function ensureCoreDefaults(): CoreDefaults;
|
|
4
4
|
export declare function loadCoreDefaults(jsonDefaults: unknown): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { VibrationType } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { VibrationType } from './VibrationType';
|
|
3
3
|
export interface VibrationJSON {
|
|
4
4
|
type: string;
|
|
5
5
|
timings: number[] | null;
|
|
@@ -13,6 +13,7 @@ export declare class Vibration extends DefaultSerializeable {
|
|
|
13
13
|
static get defaultVibration(): Vibration;
|
|
14
14
|
static get selectionHapticFeedback(): Vibration;
|
|
15
15
|
static get successHapticFeedback(): Vibration;
|
|
16
|
+
static get failureHapticFeedback(): Vibration;
|
|
16
17
|
static get impactHapticFeedback(): Vibration;
|
|
17
18
|
private static fromJSON;
|
|
18
19
|
protected constructor(type: VibrationType);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { Vibration, WaveFormVibration } from
|
|
2
|
-
export { VibrationType } from
|
|
3
|
-
export { Sound } from
|
|
4
|
-
export { Feedback } from
|
|
5
|
-
export { VibrationJSON, PrivateVibration } from
|
|
6
|
-
export { SoundJSON, PrivateSound } from
|
|
7
|
-
export { FeedbackJSON, PrivateFeedback } from
|
|
1
|
+
export { Vibration, WaveFormVibration } from './Vibration';
|
|
2
|
+
export { VibrationType } from './VibrationType';
|
|
3
|
+
export { Sound } from './Sound';
|
|
4
|
+
export { Feedback } from './Feedback';
|
|
5
|
+
export { VibrationJSON, PrivateVibration } from './Vibration';
|
|
6
|
+
export { SoundJSON, PrivateSound } from './Sound';
|
|
7
|
+
export { FeedbackJSON, PrivateFeedback } from './Feedback';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Serializeable } from
|
|
2
|
-
import { FrameSourceState } from
|
|
3
|
-
import { FrameSourceListener } from
|
|
4
|
-
import { DataCaptureContext } from
|
|
1
|
+
import { Serializeable } from '../serializable';
|
|
2
|
+
import { FrameSourceState } from './FrameSourceState';
|
|
3
|
+
import { FrameSourceListener } from './FrameSourceListener';
|
|
4
|
+
import { DataCaptureContext } from '../context/DataCaptureContext';
|
|
5
5
|
export interface PrivateFrameSource {
|
|
6
6
|
context: DataCaptureContext | null;
|
|
7
7
|
setNativeFrameSourceIsBeingCreated(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FrameSourceState } from
|
|
2
|
-
import { FrameSource } from
|
|
1
|
+
import { FrameSourceState } from './FrameSourceState';
|
|
2
|
+
import { FrameSource } from './FrameSource';
|
|
3
3
|
export interface FrameSourceListener {
|
|
4
4
|
didChangeState?(frameSource: FrameSource, newState: FrameSourceState): void;
|
|
5
5
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { DataCaptureContext } from
|
|
3
|
-
import { FrameSourceListener } from
|
|
4
|
-
import { FrameSourceState } from
|
|
5
|
-
import { FrameSource } from
|
|
6
|
-
import { ImageFrameSourceController } from
|
|
7
|
-
import { CameraPosition } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { DataCaptureContext } from '../context';
|
|
3
|
+
import { FrameSourceListener } from './FrameSourceListener';
|
|
4
|
+
import { FrameSourceState } from './FrameSourceState';
|
|
5
|
+
import { FrameSource } from './FrameSource';
|
|
6
|
+
import { ImageFrameSourceController } from './ImageFrameSourceController';
|
|
7
|
+
import { CameraPosition } from '../camerahelpers/CameraPosition';
|
|
8
8
|
export interface ImageFrameSourceJSON {
|
|
9
9
|
image: string;
|
|
10
10
|
}
|
|
@@ -38,4 +38,5 @@ export declare class ImageFrameSource extends DefaultSerializeable implements Fr
|
|
|
38
38
|
removeListener(listener: FrameSourceListener | null): void;
|
|
39
39
|
getCurrentState(): Promise<FrameSourceState>;
|
|
40
40
|
private didChange;
|
|
41
|
+
private setNativeFrameSourceIsBeingCreated;
|
|
41
42
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { FrameSource } from
|
|
2
|
-
export { FrameSourceListener } from
|
|
3
|
-
export { TorchListener } from
|
|
4
|
-
export { MacroModeListener } from
|
|
5
|
-
export { ZoomListener } from
|
|
6
|
-
export { FrameSourceState } from
|
|
7
|
-
export { FrameData } from
|
|
8
|
-
export { ImageBuffer } from
|
|
9
|
-
export { FrameDataSettings } from
|
|
10
|
-
export { FrameDataSettingsBuilder } from
|
|
11
|
-
export { ImageFrameSource } from
|
|
12
|
-
export { PrivateImageBuffer, ImageBufferJSON } from
|
|
13
|
-
export { PrivateFrameData, FrameDataJSON } from
|
|
1
|
+
export { FrameSource } from './FrameSource';
|
|
2
|
+
export { FrameSourceListener } from './FrameSourceListener';
|
|
3
|
+
export { TorchListener } from './TorchListener';
|
|
4
|
+
export { MacroModeListener } from './MacroModeListener';
|
|
5
|
+
export { ZoomListener } from './ZoomListener';
|
|
6
|
+
export { FrameSourceState } from './FrameSourceState';
|
|
7
|
+
export { FrameData } from './FrameData';
|
|
8
|
+
export { ImageBuffer } from './ImageBuffer';
|
|
9
|
+
export { FrameDataSettings } from './FrameDataSettings';
|
|
10
|
+
export { FrameDataSettingsBuilder } from './FrameDataSettingsBuilder';
|
|
11
|
+
export { ImageFrameSource } from './ImageFrameSource';
|
|
12
|
+
export { PrivateImageBuffer, ImageBufferJSON } from './ImageBuffer';
|
|
13
|
+
export { PrivateFrameData, FrameDataJSON } from './FrameData';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Helpers';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { LocationSelection } from
|
|
3
|
-
import { NumberWithUnit, NumberWithUnitJSON } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { LocationSelection } from './LocationSelection';
|
|
3
|
+
import { NumberWithUnit, NumberWithUnitJSON } from '../common';
|
|
4
4
|
export interface RadiusLocationSelectionJSON {
|
|
5
5
|
radius: NumberWithUnitJSON;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { LocationSelection } from
|
|
3
|
-
import { NumberWithUnit, SizeWithUnit, SizeWithUnitAndAspect, SizeWithUnitAndAspectJSON } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { LocationSelection } from './LocationSelection';
|
|
3
|
+
import { NumberWithUnit, SizeWithUnit, SizeWithUnitAndAspect, SizeWithUnitAndAspectJSON } from '../common';
|
|
4
4
|
export interface RectangularLocationSelectionJSON {
|
|
5
5
|
aspect: SizeWithUnitAndAspectJSON;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { LocationSelection } from
|
|
2
|
-
export { NoneLocationSelection } from
|
|
3
|
-
export { RadiusLocationSelection } from
|
|
4
|
-
export { RectangularLocationSelection } from
|
|
5
|
-
export { PrivateRadiusLocationSelection, RadiusLocationSelectionJSON } from
|
|
6
|
-
export { PrivateRectangularLocationSelection, RectangularLocationSelectionJSON } from
|
|
1
|
+
export { LocationSelection } from './LocationSelection';
|
|
2
|
+
export { NoneLocationSelection } from './NoneLocationSelection';
|
|
3
|
+
export { RadiusLocationSelection } from './RadiusLocationSelection';
|
|
4
|
+
export { RectangularLocationSelection } from './RectangularLocationSelection';
|
|
5
|
+
export { PrivateRadiusLocationSelection, RadiusLocationSelectionJSON } from './RadiusLocationSelection';
|
|
6
|
+
export { PrivateRectangularLocationSelection, RectangularLocationSelectionJSON } from './RectangularLocationSelection';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import EventEmitter from
|
|
2
|
-
import { NativeCaller } from
|
|
1
|
+
import EventEmitter from 'eventemitter3';
|
|
2
|
+
import { NativeCaller } from './NativeCaller';
|
|
3
3
|
export declare class NativeProxy {
|
|
4
4
|
eventEmitter: EventEmitter;
|
|
5
5
|
protected nativeCaller: NativeCaller;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ProxyEvent } from
|
|
2
|
-
export { NativeCaller } from
|
|
3
|
-
export { NativeProxy, createNativeProxy } from
|
|
4
|
-
export { BaseProxy } from
|
|
5
|
-
export { NativeCallerProvider, registerProxies } from
|
|
1
|
+
export { ProxyEvent } from './ProxyEvent';
|
|
2
|
+
export { NativeCaller } from './NativeCaller';
|
|
3
|
+
export { NativeProxy, createNativeProxy } from './NativeProxy';
|
|
4
|
+
export { BaseProxy } from './BaseProxy';
|
|
5
|
+
export { NativeCallerProvider, registerProxies } from './ProxyRegistration';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NativeCallerProvider } from './proxies/ProxyRegistration';
|
|
2
2
|
export declare const CORE_PROXY_TYPE_NAMES: readonly ["CoreProxy", "DataCaptureViewProxy", "DataCaptureContextProxy"];
|
|
3
|
-
export type CoreProxyType = typeof CORE_PROXY_TYPE_NAMES[number];
|
|
3
|
+
export type CoreProxyType = (typeof CORE_PROXY_TYPE_NAMES)[number];
|
|
4
4
|
export interface CoreNativeCallerProvider extends NativeCallerProvider<CoreProxyType> {
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { Serializeable } from
|
|
2
|
-
export { StringSerializeable } from
|
|
3
|
-
export { ignoreFromSerialization } from
|
|
4
|
-
export { nameForSerialization } from
|
|
5
|
-
export { ignoreFromSerializationIfNull } from
|
|
6
|
-
export { serializationDefault } from
|
|
7
|
-
export { DefaultSerializeable } from
|
|
1
|
+
export { Serializeable } from './Serializable';
|
|
2
|
+
export { StringSerializeable } from './StringSerializable';
|
|
3
|
+
export { ignoreFromSerialization } from './ignoreFromSerialization';
|
|
4
|
+
export { nameForSerialization } from './nameForSerialization';
|
|
5
|
+
export { ignoreFromSerializationIfNull } from './ignoreFromSerializationIfNull';
|
|
6
|
+
export { serializationDefault } from './serializationDefault';
|
|
7
|
+
export { DefaultSerializeable } from './DefaultSerializable';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseDataCaptureView } from
|
|
2
|
-
import { Anchor, PointWithUnit } from
|
|
1
|
+
import { BaseDataCaptureView } from './DataCaptureView';
|
|
2
|
+
import { Anchor, PointWithUnit } from '../common';
|
|
3
3
|
export interface Control {
|
|
4
4
|
}
|
|
5
5
|
export interface PrivateControl {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Serializeable } from
|
|
2
|
-
import { BaseDataCaptureView } from
|
|
1
|
+
import { Serializeable } from '../serializable';
|
|
2
|
+
import { BaseDataCaptureView } from './DataCaptureView';
|
|
3
3
|
export interface DataCaptureOverlay extends Serializeable {
|
|
4
4
|
}
|
|
5
5
|
export interface PrivateDataCaptureOverlay {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Point, Quadrilateral, PointWithUnit } from
|
|
2
|
-
import { BaseDataCaptureView } from
|
|
3
|
-
import { BaseController } from
|
|
4
|
-
import { CoreProxy } from
|
|
5
|
-
import { FocusGesture } from
|
|
6
|
-
import { ZoomGesture } from
|
|
1
|
+
import { Point, Quadrilateral, PointWithUnit } from '../common';
|
|
2
|
+
import { BaseDataCaptureView } from './DataCaptureView';
|
|
3
|
+
import { BaseController } from '../controllers/BaseController';
|
|
4
|
+
import { CoreProxy } from '../generated';
|
|
5
|
+
import { FocusGesture } from '../camera';
|
|
6
|
+
import { ZoomGesture } from '../camera';
|
|
7
7
|
export interface DataCaptureViewProxy extends CoreProxy {
|
|
8
8
|
$showDataCaptureView({ viewId }: {
|
|
9
9
|
viewId: number;
|
|
@@ -17,7 +17,7 @@ export interface DataCaptureViewProxy extends CoreProxy {
|
|
|
17
17
|
$removeDataCaptureView({ viewId }: {
|
|
18
18
|
viewId: number;
|
|
19
19
|
}): Promise<void>;
|
|
20
|
-
$setDataCaptureViewPositionAndSize({ top, left, width, height, shouldBeUnderWebView }: {
|
|
20
|
+
$setDataCaptureViewPositionAndSize({ top, left, width, height, shouldBeUnderWebView, }: {
|
|
21
21
|
top: number;
|
|
22
22
|
left: number;
|
|
23
23
|
width: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Orientation, Size } from
|
|
2
|
-
import { DataCaptureView } from
|
|
1
|
+
import { Orientation, Size } from '../common';
|
|
2
|
+
import { DataCaptureView } from './DataCaptureView';
|
|
3
3
|
export interface DataCaptureViewListener {
|
|
4
4
|
didChangeSize?(view: DataCaptureView, size: Size, orientation: Orientation): void;
|
|
5
5
|
}
|
package/dist/dts/view/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
1
|
+
export * from './Control';
|
|
2
|
+
export * from './ControlImage';
|
|
3
|
+
export * from './DataCaptureOverlay';
|
|
4
|
+
export * from './DataCaptureViewListener';
|
|
5
|
+
export * from './DataCaptureView';
|
|
6
|
+
export * from './DataCaptureViewController';
|
|
7
|
+
export * from '../camerahelpers/CameraOwner';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { DefaultSerializeable } from
|
|
3
|
-
import { Viewfinder } from
|
|
1
|
+
import { Color } from '../common';
|
|
2
|
+
import { DefaultSerializeable } from '../serializable';
|
|
3
|
+
import { Viewfinder } from './Viewfinder';
|
|
4
4
|
export declare class AimerViewfinder extends DefaultSerializeable implements Viewfinder {
|
|
5
5
|
frameColor: Color;
|
|
6
6
|
dotColor: Color;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NumberWithUnit, Color } from
|
|
2
|
-
import { DefaultSerializeable } from
|
|
3
|
-
import { Viewfinder } from
|
|
1
|
+
import { NumberWithUnit, Color } from '../common';
|
|
2
|
+
import { DefaultSerializeable } from '../serializable';
|
|
3
|
+
import { Viewfinder } from './Viewfinder';
|
|
4
4
|
export declare class LaserlineViewfinder extends DefaultSerializeable implements Viewfinder {
|
|
5
5
|
width: NumberWithUnit;
|
|
6
6
|
enabledColor: Color;
|