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.
Files changed (90) hide show
  1. package/__mocks__/Defaults.ts +61 -61
  2. package/__mocks__/ScanditDataCaptureCore.ts +7 -5
  3. package/dist/dts/LicenseInfo.d.ts +2 -2
  4. package/dist/dts/camera/Camera.d.ts +7 -7
  5. package/dist/dts/camera/CameraSettings.d.ts +5 -5
  6. package/dist/dts/camera/FocusGesture.d.ts +2 -2
  7. package/dist/dts/camera/FocusGestureListener.d.ts +2 -2
  8. package/dist/dts/camera/PinchToZoom.d.ts +4 -4
  9. package/dist/dts/camera/PrivateFocusGestureDeserializer.d.ts +1 -1
  10. package/dist/dts/camera/PrivateZoomGestureDeserializer.d.ts +1 -1
  11. package/dist/dts/camera/SwipeToZoom.d.ts +4 -4
  12. package/dist/dts/camera/TapToFocus.d.ts +5 -5
  13. package/dist/dts/camera/TorchSwitchControl.d.ts +2 -2
  14. package/dist/dts/camera/ZoomGesture.d.ts +1 -1
  15. package/dist/dts/camera/ZoomGestureListener.d.ts +1 -1
  16. package/dist/dts/camera/ZoomSwitchControl.d.ts +3 -3
  17. package/dist/dts/camera/controller/CameraController.d.ts +4 -4
  18. package/dist/dts/camera/index.d.ts +24 -24
  19. package/dist/dts/camerahelpers/CameraOwnershipHelper.d.ts +3 -3
  20. package/dist/dts/camerahelpers/CameraOwnershipManager.d.ts +2 -2
  21. package/dist/dts/camerahelpers/index.d.ts +8 -8
  22. package/dist/dts/common/Brush.d.ts +2 -2
  23. package/dist/dts/common/MarginsWithUnit.d.ts +2 -2
  24. package/dist/dts/common/NumberWithUnit.d.ts +2 -2
  25. package/dist/dts/common/Observable.d.ts +1 -1
  26. package/dist/dts/common/Payload.d.ts +3 -3
  27. package/dist/dts/common/Point.d.ts +1 -1
  28. package/dist/dts/common/PointWithUnit.d.ts +2 -2
  29. package/dist/dts/common/Quadrilateral.d.ts +2 -2
  30. package/dist/dts/common/Rect.d.ts +3 -3
  31. package/dist/dts/common/RectWithUnit.d.ts +3 -3
  32. package/dist/dts/common/ScanIntention.d.ts +3 -0
  33. package/dist/dts/common/ScanditIcon.d.ts +4 -4
  34. package/dist/dts/common/ScanditIconBuilder.d.ts +4 -4
  35. package/dist/dts/common/ScanditIconType.d.ts +5 -1
  36. package/dist/dts/common/SelectionMode.d.ts +5 -0
  37. package/dist/dts/common/Size.d.ts +1 -1
  38. package/dist/dts/common/SizeWithAspect.d.ts +2 -2
  39. package/dist/dts/common/SizeWithUnit.d.ts +2 -2
  40. package/dist/dts/common/SizeWithUnitAndAspect.d.ts +5 -5
  41. package/dist/dts/common/index.d.ts +57 -55
  42. package/dist/dts/context/DataCaptureComponent.d.ts +1 -1
  43. package/dist/dts/context/DataCaptureContextListener.d.ts +2 -2
  44. package/dist/dts/context/DataCaptureContextSettings.d.ts +3 -3
  45. package/dist/dts/context/DataCaptureMode.d.ts +2 -2
  46. package/dist/dts/context/index.d.ts +12 -12
  47. package/dist/dts/controllers/index.d.ts +1 -1
  48. package/dist/dts/defaults/CoreDefaults.d.ts +12 -3
  49. package/dist/dts/defaults/index.d.ts +3 -3
  50. package/dist/dts/defaults/loadCoreDefaults.d.ts +1 -1
  51. package/dist/dts/feedback/Sound.d.ts +1 -1
  52. package/dist/dts/feedback/Vibration.d.ts +3 -2
  53. package/dist/dts/feedback/VibrationType.d.ts +1 -0
  54. package/dist/dts/feedback/index.d.ts +7 -7
  55. package/dist/dts/frame/FrameData.d.ts +1 -1
  56. package/dist/dts/frame/FrameDataSettingsBuilder.d.ts +1 -1
  57. package/dist/dts/frame/FrameSource.d.ts +4 -4
  58. package/dist/dts/frame/FrameSourceListener.d.ts +2 -2
  59. package/dist/dts/frame/ImageFrameSource.d.ts +8 -7
  60. package/dist/dts/frame/MacroModeListener.d.ts +1 -1
  61. package/dist/dts/frame/TorchListener.d.ts +1 -1
  62. package/dist/dts/frame/index.d.ts +13 -13
  63. package/dist/dts/helpers/index.d.ts +1 -1
  64. package/dist/dts/locationselection/RadiusLocationSelection.d.ts +3 -3
  65. package/dist/dts/locationselection/RectangularLocationSelection.d.ts +3 -3
  66. package/dist/dts/locationselection/index.d.ts +6 -6
  67. package/dist/dts/proxies/NativeProxy.d.ts +2 -2
  68. package/dist/dts/proxies/index.d.ts +5 -5
  69. package/dist/dts/proxy-types.d.ts +1 -1
  70. package/dist/dts/serializable/DefaultSerializable.d.ts +1 -1
  71. package/dist/dts/serializable/index.d.ts +7 -7
  72. package/dist/dts/view/Control.d.ts +2 -2
  73. package/dist/dts/view/ControlImage.d.ts +1 -1
  74. package/dist/dts/view/DataCaptureOverlay.d.ts +2 -2
  75. package/dist/dts/view/DataCaptureViewController.d.ts +7 -7
  76. package/dist/dts/view/DataCaptureViewListener.d.ts +2 -2
  77. package/dist/dts/view/index.d.ts +7 -7
  78. package/dist/dts/viewfinder/AimerViewfinder.d.ts +3 -3
  79. package/dist/dts/viewfinder/LaserlineViewfinder.d.ts +3 -3
  80. package/dist/dts/viewfinder/RectangularViewfinderAnimation.d.ts +1 -1
  81. package/dist/dts/viewfinder/index.d.ts +9 -9
  82. package/dist/index.js +1696 -1651
  83. package/dist/index.js.map +1 -1
  84. package/jest.config.js +5 -15
  85. package/package.json +1 -1
  86. package/test/Camera.test.ts +18 -8
  87. package/test/CameraSettings.test.ts +340 -341
  88. package/test/ProxyRegistration.test.ts +6 -7
  89. package/test/ZoomSwitchControl.test.ts +100 -100
  90. package/test/generated/CoreProxyAdapter.test.ts +4 -7
@@ -1,73 +1,74 @@
1
1
  import { loadCoreDefaults } from '../src';
2
2
 
3
3
  export const mockCoreDefaultsData: any = {
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": {}
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
- "availablePositions": ["worldFacing", "userFacing"]
21
+ availablePositions: ['worldFacing', 'userFacing'],
22
22
  },
23
- "ZoomSwitchControl": {
24
- "orientation": "horizontal",
25
- "isAlwaysExpanded": false,
26
- "isExpanded": false,
27
- "accessibilityLabel": "Zoom <level>",
28
- "accessibilityHint": "Adjusts the camera zoom level"
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
- "Version": "8.1.0-test",
31
- "deviceID": "test-device-id",
32
- "AimerViewfinder": {
33
- "dotColor": "ffffffcc",
34
- "frameColor": "ffffffff"
30
+ Version: '8.1.0-test',
31
+ deviceID: 'test-device-id',
32
+ AimerViewfinder: {
33
+ dotColor: 'ffffffcc',
34
+ frameColor: 'ffffffff',
35
35
  },
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
- }
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
- "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": "{\"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
- "Brush": {
62
- "fillColor": "00000000",
63
- "strokeColor": "00000000",
64
- "strokeWidth": 0
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 "eventemitter3";
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(public nativeModule: any, public emitter: MockNativeEventEmitter) {}
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((error) => {
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 "./serializable";
2
- import { Expiration } from "./Expiration";
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 "../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";
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 "../serializable";
2
- import { FocusGestureStrategy } from "./FocusGestureStrategy";
3
- import { FocusRange } from "./FocusRange";
4
- import { VideoResolution } from "./VideoResolution";
5
- import { MacroMode } from "./MacroMode";
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 "../common";
2
- import { FocusGestureListener } from "./FocusGestureListener";
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 "./FocusGesture";
2
- import { PointWithUnit } from "../common";
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 "../serializable";
2
- import { DataCaptureViewController } from "../view";
3
- import { ZoomGesture } from "./ZoomGesture";
4
- import { ZoomGestureListener } from "./ZoomGestureListener";
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 { FocusGesture } from "./FocusGesture";
1
+ import { FocusGesture } from './FocusGesture';
2
2
  export interface FocusGestureJSON {
3
3
  type: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { ZoomGesture, ZoomGestureJSON } from "./ZoomGesture";
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 "../serializable";
2
- import { DataCaptureViewController } from "../view";
3
- import { ZoomGesture } from "./ZoomGesture";
4
- import { ZoomGestureListener } from "./ZoomGestureListener";
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 "../serializable";
2
- import { FocusGesture } from "./FocusGesture";
3
- import { FocusGestureListener } from "./FocusGestureListener";
4
- import { PointWithUnit } from "../common";
5
- import { DataCaptureViewController } from "../view";
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 "../serializable";
2
- import { Control } from "../view";
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,4 +1,4 @@
1
- import { ZoomGestureListener } from "./ZoomGestureListener";
1
+ import { ZoomGestureListener } from './ZoomGestureListener';
2
2
  export interface ZoomGesture {
3
3
  addListener(listener: ZoomGestureListener): void;
4
4
  removeListener(listener: ZoomGestureListener): void;
@@ -1,4 +1,4 @@
1
- import { ZoomGesture } from "./ZoomGesture";
1
+ import { ZoomGesture } from './ZoomGesture';
2
2
  export interface ZoomGestureListener {
3
3
  didZoomInGesture?(zoomGesture: ZoomGesture): void;
4
4
  didZoomOutGesture?(zoomGesture: ZoomGesture): void;
@@ -1,6 +1,6 @@
1
- import { DefaultSerializeable } from "../serializable";
2
- import { Control } from "../view";
3
- import { ZoomSwitchOrientation } from "./ZoomSwitchOrientation";
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 "../Camera";
2
- import { FrameSourceState } from "../../frame";
3
- import { BaseController } from "../../controllers/BaseController";
4
- import { CoreProxy } from "../../generated";
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 "./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
+ 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 "../camera/Camera";
2
- import { CameraPosition } from "./CameraPosition";
3
- import { CameraOwner } from "./CameraOwner";
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 "./CameraPosition";
2
- import { CameraOwner } from "./CameraOwner";
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 "./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
+ 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 "../serializable";
2
- import { Color } from "./Color";
1
+ import { DefaultSerializeable } from '../serializable';
2
+ import { Color } from './Color';
3
3
  export interface PrivateBrush {
4
4
  readonly copy: Brush;
5
5
  defaults: unknown;
@@ -1,5 +1,5 @@
1
- import { DefaultSerializeable } from "../serializable";
2
- import { NumberWithUnit, NumberWithUnitJSON } from "./NumberWithUnit";
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 "../serializable";
2
- import { MeasureUnit } from "./MeasureUnit";
1
+ import { DefaultSerializeable } from '../serializable';
2
+ import { MeasureUnit } from './MeasureUnit';
3
3
  export interface NumberWithUnitJSON {
4
4
  value: number;
5
5
  unit: string;
@@ -1,4 +1,4 @@
1
- import { DefaultSerializeable } from "../serializable";
1
+ import { DefaultSerializeable } from '../serializable';
2
2
  export interface PropertyChangeListener {
3
3
  (property: string, value: any): void;
4
4
  }
@@ -1,6 +1,6 @@
1
- import { CameraPosition } from "../camerahelpers/CameraPosition";
2
- import { FrameSourceState } from "../frame/FrameSourceState";
3
- import { SizeJSON } from "./Size";
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,4 +1,4 @@
1
- import { DefaultSerializeable } from "../serializable";
1
+ import { DefaultSerializeable } from '../serializable';
2
2
  export interface PointJSON {
3
3
  x: number;
4
4
  y: number;
@@ -1,5 +1,5 @@
1
- import { DefaultSerializeable } from "../serializable";
2
- import { NumberWithUnit, NumberWithUnitJSON } from "./NumberWithUnit";
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 "../serializable";
2
- import { Point, PointJSON } from "./Point";
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 "../serializable";
2
- import { Point } from "./Point";
3
- import { Size } from "./Size";
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 "../serializable";
2
- import { PointWithUnit } from "./PointWithUnit";
3
- import { SizeWithUnit } from "./SizeWithUnit";
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,5 +1,8 @@
1
1
  export declare enum ScanIntention {
2
2
  Manual = "manual",
3
3
  Smart = "smart",
4
+ /**
5
+ * @deprecated Use SelectionMode.Auto instead. Will be removed in 9.0.
6
+ */
4
7
  SmartSelection = "smartSelection"
5
8
  }
@@ -1,7 +1,7 @@
1
- import { DefaultSerializeable } from "../serializable";
2
- import { Color } from "./Color";
3
- import { ScanditIconShape } from "./ScanditIconShape";
4
- import { ScanditIconType } from "./ScanditIconType";
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 "./ScanditIcon";
2
- import { Color } from "./Color";
3
- import { ScanditIconShape } from "./ScanditIconShape";
4
- import { ScanditIconType } from "./ScanditIconType";
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
  }
@@ -0,0 +1,5 @@
1
+ export declare enum SelectionMode {
2
+ Off = "off",
3
+ On = "on",
4
+ Auto = "auto"
5
+ }
@@ -1,4 +1,4 @@
1
- import { DefaultSerializeable } from "../serializable";
1
+ import { DefaultSerializeable } from '../serializable';
2
2
  export interface SizeJSON {
3
3
  width: number;
4
4
  height: number;
@@ -1,5 +1,5 @@
1
- import { DefaultSerializeable } from "../serializable";
2
- import { NumberWithUnit } from "./NumberWithUnit";
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 "../serializable";
2
- import { NumberWithUnit } from "./NumberWithUnit";
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;