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
package/__mocks__/Defaults.ts
CHANGED
|
@@ -1,73 +1,74 @@
|
|
|
1
1
|
import { loadCoreDefaults } from '../src';
|
|
2
2
|
|
|
3
3
|
export const mockCoreDefaultsData: any = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
Camera: {
|
|
5
|
+
defaultPosition: 'worldFacing',
|
|
6
|
+
Settings: {
|
|
7
|
+
zoomFactor: 1,
|
|
8
|
+
zoomGestureZoomFactor: 2,
|
|
9
|
+
zoomLevels: [1, 2],
|
|
10
|
+
focusGestureStrategy: 'manualUntilCapture',
|
|
11
|
+
focusRange: 'near',
|
|
12
|
+
preferredResolution: 'auto',
|
|
13
|
+
shouldPreferSmoothAutoFocus: false,
|
|
14
|
+
torchLevel: 1,
|
|
15
|
+
macroMode: 'auto',
|
|
16
|
+
adaptiveExposure: false,
|
|
17
|
+
manualLensPosition: -1,
|
|
18
|
+
focusStrategy: 'auto',
|
|
19
|
+
properties: {},
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
availablePositions: ['worldFacing', 'userFacing'],
|
|
22
22
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
ZoomSwitchControl: {
|
|
24
|
+
orientation: 'horizontal',
|
|
25
|
+
isAlwaysExpanded: false,
|
|
26
|
+
isExpanded: false,
|
|
27
|
+
accessibilityLabel: 'Zoom <level>',
|
|
28
|
+
accessibilityHint: 'Adjusts the camera zoom level',
|
|
29
29
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
Version: '8.1.0-test',
|
|
31
|
+
deviceID: 'test-device-id',
|
|
32
|
+
AimerViewfinder: {
|
|
33
|
+
dotColor: 'ffffffcc',
|
|
34
|
+
frameColor: 'ffffffff',
|
|
35
35
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
}
|
|
36
|
+
RectangularViewfinder: {
|
|
37
|
+
defaultStyle: 'rounded',
|
|
38
|
+
styles: {
|
|
39
|
+
rounded: {
|
|
40
|
+
color: 'ffffffff',
|
|
41
|
+
size: '{"aspect":1.0,"shorterDimension":{"unit":"fraction","value":0.75}}',
|
|
42
|
+
disabledDimming: 0,
|
|
43
|
+
dimming: 0,
|
|
44
|
+
animation: '{"looping":true}',
|
|
45
|
+
style: 'rounded',
|
|
46
|
+
disabledColor: '00000000',
|
|
47
|
+
lineStyle: 'light',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
DataCaptureView: {
|
|
52
|
+
zoomGesture: '{"type":"swipeToZoom"}',
|
|
53
|
+
zoomGestures: '[{"type":"swipeToZoom"},{"type":"pinchToZoom"}]',
|
|
54
|
+
pointOfInterest: '{"x":{"unit":"fraction","value":0.5},"y":{"unit":"fraction","value":0.5}}',
|
|
55
|
+
focusGesture: '{"showUIIndicator":true,"type":"tapToFocus"}',
|
|
56
|
+
logoStyle: 'extended',
|
|
57
|
+
logoOffset: '{"x":{"unit":"fraction","value":0.0},"y":{"unit":"fraction","value":0.0}}',
|
|
58
|
+
logoAnchor: 'bottomRight',
|
|
59
|
+
scanAreaMargins:
|
|
60
|
+
'{"bottom":{"unit":"fraction","value":0.0},"left":{"unit":"fraction","value":0.0},"right":{"unit":"fraction","value":0.0},"top":{"unit":"fraction","value":0.0}}',
|
|
50
61
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"focusGesture": "{\"showUIIndicator\":true,\"type\":\"tapToFocus\"}",
|
|
56
|
-
"logoStyle": "extended",
|
|
57
|
-
"logoOffset": "{\"x\":{\"unit\":\"fraction\",\"value\":0.0},\"y\":{\"unit\":\"fraction\",\"value\":0.0}}",
|
|
58
|
-
"logoAnchor": "bottomRight",
|
|
59
|
-
"scanAreaMargins": "{\"bottom\":{\"unit\":\"fraction\",\"value\":0.0},\"left\":{\"unit\":\"fraction\",\"value\":0.0},\"right\":{\"unit\":\"fraction\",\"value\":0.0},\"top\":{\"unit\":\"fraction\",\"value\":0.0}}"
|
|
62
|
+
Brush: {
|
|
63
|
+
fillColor: '00000000',
|
|
64
|
+
strokeColor: '00000000',
|
|
65
|
+
strokeWidth: 0,
|
|
60
66
|
},
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
LaserlineViewfinder: {
|
|
68
|
+
width: '{"unit":"fraction","value":0.8}',
|
|
69
|
+
enabledColor: '#FFFFFFFF',
|
|
70
|
+
disabledColor: '#00000000',
|
|
65
71
|
},
|
|
66
|
-
"LaserlineViewfinder": {
|
|
67
|
-
"width": "{\"unit\":\"fraction\",\"value\":0.8}",
|
|
68
|
-
"enabledColor": "#FFFFFFFF",
|
|
69
|
-
"disabledColor": "#00000000"
|
|
70
|
-
}
|
|
71
72
|
};
|
|
72
73
|
|
|
73
74
|
export function loadMockDefaults() {
|
|
@@ -75,4 +76,3 @@ export function loadMockDefaults() {
|
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
loadMockDefaults();
|
|
78
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jest } from '@jest/globals';
|
|
2
2
|
import { NativeCaller } from '../src';
|
|
3
|
-
import { EventEmitter } from
|
|
3
|
+
import { EventEmitter } from 'eventemitter3';
|
|
4
4
|
|
|
5
5
|
export class MockDataCaptureView {
|
|
6
6
|
public get viewId(): number {
|
|
@@ -23,7 +23,7 @@ export class MockDataCaptureContext {
|
|
|
23
23
|
|
|
24
24
|
constructor() {
|
|
25
25
|
this.controller = {
|
|
26
|
-
updateContextFromJSON: jest.fn(() => Promise.resolve())
|
|
26
|
+
updateContextFromJSON: jest.fn(() => Promise.resolve()),
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -91,7 +91,10 @@ export class MockNativeEventEmitter {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export class MockCaller implements NativeCaller {
|
|
94
|
-
constructor(
|
|
94
|
+
constructor(
|
|
95
|
+
public nativeModule: any,
|
|
96
|
+
public emitter: MockNativeEventEmitter
|
|
97
|
+
) {}
|
|
95
98
|
|
|
96
99
|
eventHook(args: any) {
|
|
97
100
|
return args;
|
|
@@ -108,7 +111,7 @@ export class MockCaller implements NativeCaller {
|
|
|
108
111
|
// Wrap handler to catch and log errors
|
|
109
112
|
const wrappedHandler = (event: any) => {
|
|
110
113
|
const promise = handler(event);
|
|
111
|
-
promise.catch(
|
|
114
|
+
promise.catch(error => {
|
|
112
115
|
console.error(`Error in event handler for '${evName}':`, error);
|
|
113
116
|
});
|
|
114
117
|
};
|
|
@@ -152,4 +155,3 @@ export function createMockFeedbackNativeModule() {
|
|
|
152
155
|
$emit: jest.fn(() => Promise.resolve()),
|
|
153
156
|
};
|
|
154
157
|
}
|
|
155
|
-
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { Expiration } from
|
|
1
|
+
import { DefaultSerializeable } from './serializable';
|
|
2
|
+
import { Expiration } from './Expiration';
|
|
3
3
|
export declare class LicenseInfo extends DefaultSerializeable {
|
|
4
4
|
private _expiration;
|
|
5
5
|
get expiration(): Expiration;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DataCaptureContext } from
|
|
2
|
-
import { FrameSource, FrameSourceListener, FrameSourceState, TorchListener, MacroModeListener, ZoomListener } from
|
|
3
|
-
import { DefaultSerializeable } from
|
|
4
|
-
import { CameraController } from
|
|
5
|
-
import { TorchState } from
|
|
6
|
-
import { CameraPosition } from
|
|
7
|
-
import { CameraSettings } from
|
|
1
|
+
import { DataCaptureContext } from '../context';
|
|
2
|
+
import { FrameSource, FrameSourceListener, FrameSourceState, TorchListener, MacroModeListener, ZoomListener } from '../frame';
|
|
3
|
+
import { DefaultSerializeable } from '../serializable';
|
|
4
|
+
import { CameraController } from './controller/CameraController';
|
|
5
|
+
import { TorchState } from './TorchState';
|
|
6
|
+
import { CameraPosition } from '../camerahelpers/CameraPosition';
|
|
7
|
+
import { CameraSettings } from './CameraSettings';
|
|
8
8
|
/**
|
|
9
9
|
* Camera lifecycle and operation handling:
|
|
10
10
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { FocusGestureStrategy } from
|
|
3
|
-
import { FocusRange } from
|
|
4
|
-
import { VideoResolution } from
|
|
5
|
-
import { MacroMode } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { FocusGestureStrategy } from './FocusGestureStrategy';
|
|
3
|
+
import { FocusRange } from './FocusRange';
|
|
4
|
+
import { VideoResolution } from './VideoResolution';
|
|
5
|
+
import { MacroMode } from './MacroMode';
|
|
6
6
|
export interface CameraSettingsJSON {
|
|
7
7
|
preferredResolution: string;
|
|
8
8
|
zoomFactor: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PointWithUnit } from
|
|
2
|
-
import { FocusGestureListener } from
|
|
1
|
+
import { PointWithUnit } from '../common';
|
|
2
|
+
import { FocusGestureListener } from './FocusGestureListener';
|
|
3
3
|
export interface FocusGesture {
|
|
4
4
|
showUIIndicator: boolean;
|
|
5
5
|
addListener(listener: FocusGestureListener): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FocusGesture } from
|
|
2
|
-
import { PointWithUnit } from
|
|
1
|
+
import { FocusGesture } from './FocusGesture';
|
|
2
|
+
import { PointWithUnit } from '../common';
|
|
3
3
|
export interface FocusGestureListener {
|
|
4
4
|
didFocusGesture?(focusGesture: FocusGesture, point: PointWithUnit): void;
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { DataCaptureViewController } from
|
|
3
|
-
import { ZoomGesture } from
|
|
4
|
-
import { ZoomGestureListener } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { DataCaptureViewController } from '../view';
|
|
3
|
+
import { ZoomGesture } from './ZoomGesture';
|
|
4
|
+
import { ZoomGestureListener } from './ZoomGestureListener';
|
|
5
5
|
export interface PrivatePinchToZoom {
|
|
6
6
|
listeners: ZoomGestureListener[];
|
|
7
7
|
onListenersChanged?(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZoomGesture, ZoomGestureJSON } from
|
|
1
|
+
import { ZoomGesture, ZoomGestureJSON } from './ZoomGesture';
|
|
2
2
|
export declare class PrivateZoomGestureDeserializer {
|
|
3
3
|
static fromJSON(json: ZoomGestureJSON | null): ZoomGesture | null;
|
|
4
4
|
static fromJSONArray(jsonArray: ZoomGestureJSON[]): ZoomGesture[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { DataCaptureViewController } from
|
|
3
|
-
import { ZoomGesture } from
|
|
4
|
-
import { ZoomGestureListener } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { DataCaptureViewController } from '../view';
|
|
3
|
+
import { ZoomGesture } from './ZoomGesture';
|
|
4
|
+
import { ZoomGestureListener } from './ZoomGestureListener';
|
|
5
5
|
export interface PrivateSwipeToZoom {
|
|
6
6
|
listeners: ZoomGestureListener[];
|
|
7
7
|
onListenersChanged?(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { FocusGesture } from
|
|
3
|
-
import { FocusGestureListener } from
|
|
4
|
-
import { PointWithUnit } from
|
|
5
|
-
import { DataCaptureViewController } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { FocusGesture } from './FocusGesture';
|
|
3
|
+
import { FocusGestureListener } from './FocusGestureListener';
|
|
4
|
+
import { PointWithUnit } from '../common';
|
|
5
|
+
import { DataCaptureViewController } from '../view';
|
|
6
6
|
export interface PrivateTapToFocus {
|
|
7
7
|
listeners: FocusGestureListener[];
|
|
8
8
|
onListenersChanged?(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { Control } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { Control } from '../view';
|
|
3
3
|
export declare class TorchSwitchControl extends DefaultSerializeable implements Control {
|
|
4
4
|
private type;
|
|
5
5
|
private icon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { Control } from
|
|
3
|
-
import { ZoomSwitchOrientation } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { Control } from '../view';
|
|
3
|
+
import { ZoomSwitchOrientation } from './ZoomSwitchOrientation';
|
|
4
4
|
export declare class ZoomSwitchControl extends DefaultSerializeable implements Control {
|
|
5
5
|
private type;
|
|
6
6
|
private icon;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Camera } from
|
|
2
|
-
import { FrameSourceState } from
|
|
3
|
-
import { BaseController } from
|
|
4
|
-
import { CoreProxy } from
|
|
1
|
+
import { Camera } from '../Camera';
|
|
2
|
+
import { FrameSourceState } from '../../frame';
|
|
3
|
+
import { BaseController } from '../../controllers/BaseController';
|
|
4
|
+
import { CoreProxy } from '../../generated';
|
|
5
5
|
export declare class CameraController extends BaseController<CoreProxy> {
|
|
6
6
|
private camera;
|
|
7
7
|
private adapter;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
1
|
+
export * from './FocusGesture';
|
|
2
|
+
export * from './FocusGestureListener';
|
|
3
|
+
export * from './FocusGestureListenerEvents';
|
|
4
|
+
export * from './TapToFocus';
|
|
5
|
+
export * from './PrivateFocusGestureDeserializer';
|
|
6
|
+
export * from './ZoomGesture';
|
|
7
|
+
export * from './PrivateZoomGestureDeserializer';
|
|
8
|
+
export * from './ZoomGestureListener';
|
|
9
|
+
export * from './ZoomGestureListenerEvents';
|
|
10
|
+
export * from './controller/CameraController';
|
|
11
|
+
export * from './controller/FrameDataController';
|
|
12
|
+
export * from './Camera';
|
|
13
|
+
export * from './ZoomSwitchControl';
|
|
14
|
+
export * from './TorchSwitchControl';
|
|
15
|
+
export * from './VideoResolution';
|
|
16
|
+
export * from './TorchState';
|
|
17
|
+
export * from './FocusRange';
|
|
18
|
+
export * from './FocusGestureStrategy';
|
|
19
|
+
export * from './LogoStyle';
|
|
20
|
+
export * from './SwipeToZoom';
|
|
21
|
+
export * from './PinchToZoom';
|
|
22
|
+
export * from './CameraSettings';
|
|
23
|
+
export * from './MacroMode';
|
|
24
|
+
export * from './ZoomSwitchOrientation';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Camera } from
|
|
2
|
-
import { CameraPosition } from
|
|
3
|
-
import { CameraOwner } from
|
|
1
|
+
import { Camera } from '../camera/Camera';
|
|
2
|
+
import { CameraPosition } from './CameraPosition';
|
|
3
|
+
import { CameraOwner } from './CameraOwner';
|
|
4
4
|
export declare class CameraOwnershipHelper {
|
|
5
5
|
private static ownershipManager;
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CameraPosition } from
|
|
2
|
-
import { CameraOwner } from
|
|
1
|
+
import { CameraPosition } from './CameraPosition';
|
|
2
|
+
import { CameraOwner } from './CameraOwner';
|
|
3
3
|
export declare class CameraOwnershipManager {
|
|
4
4
|
private static instance;
|
|
5
5
|
private readonly owners;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
1
|
+
export * from './CameraPosition';
|
|
2
|
+
export * from './FrameSourceListenerEvents';
|
|
3
|
+
export * from './TorchListenerEvents';
|
|
4
|
+
export * from './MacroModeListenerEvents';
|
|
5
|
+
export * from './CameraOwner';
|
|
6
|
+
export * from './CameraOwnershipManager';
|
|
7
|
+
export * from './CameraOwnershipHelper';
|
|
8
|
+
export * from './ZoomListenerEvents';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { NumberWithUnit, NumberWithUnitJSON } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { NumberWithUnit, NumberWithUnitJSON } from './NumberWithUnit';
|
|
3
3
|
export interface MarginsWithUnitJSON {
|
|
4
4
|
left: NumberWithUnitJSON;
|
|
5
5
|
right: NumberWithUnitJSON;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { MeasureUnit } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { MeasureUnit } from './MeasureUnit';
|
|
3
3
|
export interface NumberWithUnitJSON {
|
|
4
4
|
value: number;
|
|
5
5
|
unit: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CameraPosition } from
|
|
2
|
-
import { FrameSourceState } from
|
|
3
|
-
import { SizeJSON } from
|
|
1
|
+
import { CameraPosition } from '../camerahelpers/CameraPosition';
|
|
2
|
+
import { FrameSourceState } from '../frame/FrameSourceState';
|
|
3
|
+
import { SizeJSON } from './Size';
|
|
4
4
|
export interface DidChangeSizeEventPayload {
|
|
5
5
|
viewId: number;
|
|
6
6
|
size: SizeJSON;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { NumberWithUnit, NumberWithUnitJSON } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { NumberWithUnit, NumberWithUnitJSON } from './NumberWithUnit';
|
|
3
3
|
export interface PointWithUnitJSON {
|
|
4
4
|
x: NumberWithUnitJSON;
|
|
5
5
|
y: NumberWithUnitJSON;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { Point, PointJSON } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { Point, PointJSON } from './Point';
|
|
3
3
|
export interface QuadrilateralJSON {
|
|
4
4
|
topLeft: PointJSON;
|
|
5
5
|
topRight: PointJSON;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { Point } from
|
|
3
|
-
import { Size } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { Point } from './Point';
|
|
3
|
+
import { Size } from './Size';
|
|
4
4
|
export declare class Rect extends DefaultSerializeable {
|
|
5
5
|
private _origin;
|
|
6
6
|
private _size;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { PointWithUnit } from
|
|
3
|
-
import { SizeWithUnit } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { PointWithUnit } from './PointWithUnit';
|
|
3
|
+
import { SizeWithUnit } from './SizeWithUnit';
|
|
4
4
|
export declare class RectWithUnit extends DefaultSerializeable {
|
|
5
5
|
private _origin;
|
|
6
6
|
private _size;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { Color } from
|
|
3
|
-
import { ScanditIconShape } from
|
|
4
|
-
import { ScanditIconType } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { Color } from './Color';
|
|
3
|
+
import { ScanditIconShape } from './ScanditIconShape';
|
|
4
|
+
import { ScanditIconType } from './ScanditIconType';
|
|
5
5
|
export type ScanditIconJSON = {
|
|
6
6
|
backgroundColor: Color | null;
|
|
7
7
|
backgroundShape: ScanditIconShape | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ScanditIcon } from
|
|
2
|
-
import { Color } from
|
|
3
|
-
import { ScanditIconShape } from
|
|
4
|
-
import { ScanditIconType } from
|
|
1
|
+
import { ScanditIcon } from './ScanditIcon';
|
|
2
|
+
import { Color } from './Color';
|
|
3
|
+
import { ScanditIconShape } from './ScanditIconShape';
|
|
4
|
+
import { ScanditIconType } from './ScanditIconType';
|
|
5
5
|
export declare class ScanditIconBuilder {
|
|
6
6
|
private _iconColor;
|
|
7
7
|
private _backgroundColor;
|
|
@@ -20,5 +20,9 @@ export declare enum ScanditIconType {
|
|
|
20
20
|
ChevronRight = "chevronRight",
|
|
21
21
|
InspectItem = "inspectItem",
|
|
22
22
|
StarOutlined = "starOutlined",
|
|
23
|
-
Print = "print"
|
|
23
|
+
Print = "print",
|
|
24
|
+
Plus = "plus",
|
|
25
|
+
Minus = "minus",
|
|
26
|
+
Delete = "delete",
|
|
27
|
+
Slash = "slash"
|
|
24
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { NumberWithUnit } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { NumberWithUnit } from './NumberWithUnit';
|
|
3
3
|
export declare class SizeWithAspect extends DefaultSerializeable {
|
|
4
4
|
private _size;
|
|
5
5
|
private _aspect;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultSerializeable } from
|
|
2
|
-
import { NumberWithUnit } from
|
|
1
|
+
import { DefaultSerializeable } from '../serializable';
|
|
2
|
+
import { NumberWithUnit } from './NumberWithUnit';
|
|
3
3
|
export declare class SizeWithUnit extends DefaultSerializeable {
|
|
4
4
|
private _width;
|
|
5
5
|
private _height;
|