scanbot-web-sdk 6.0.0-dev.1 → 6.0.0-dev.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.
- package/@types/barcode-scanner-view.d.ts +10 -10
- package/@types/consume-type.d.ts +7 -0
- package/@types/core/bridge/common.d.ts +24 -0
- package/@types/core/bridge/compiled/BarcodeConfigs.d.ts +973 -0
- package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +183 -0
- package/@types/core/bridge/compiled/BarcodeTypes.d.ts +183 -0
- package/@types/core/bridge/compiled/CheckRecognizerTypes.d.ts +29 -0
- package/@types/core/bridge/compiled/CommonFieldType.d.ts +59 -0
- package/@types/core/bridge/compiled/DocumentDetectorTypes.d.ts +196 -0
- package/@types/core/bridge/compiled/DocumentQualityAnalyzerTypes.d.ts +105 -0
- package/@types/core/bridge/compiled/EhicTypes.d.ts +218 -0
- package/@types/core/bridge/compiled/FrameUtilities.d.ts +18 -0
- package/@types/core/bridge/compiled/GenericDocument.d.ts +198 -0
- package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +104 -0
- package/@types/core/bridge/compiled/GenericTextLineScannerTypes.d.ts +165 -0
- package/@types/core/bridge/compiled/Geometry.d.ts +49 -0
- package/@types/core/bridge/compiled/ImageProcessorTypes.d.ts +13 -0
- package/@types/core/bridge/compiled/LicensePlateScannerTypes.d.ts +67 -0
- package/@types/core/bridge/compiled/MRZTypes.d.ts +52 -0
- package/@types/core/bridge/compiled/MedicalCertificateTypes.d.ts +306 -0
- package/@types/core/bridge/compiled/OcrElements.d.ts +129 -0
- package/@types/core/bridge/compiled/ParametricFilters.d.ts +186 -0
- package/@types/core/bridge/compiled/PdfConfig.d.ts +197 -0
- package/@types/core/bridge/compiled/TiffTypes.d.ts +183 -0
- package/@types/core/bridge/compiled_schemas_v3/BarcodeConfigs.d.ts +973 -0
- package/@types/core/bridge/compiled_schemas_v3/BarcodeScannerTypes.d.ts +183 -0
- package/@types/core/bridge/compiled_schemas_v3/BarcodeTypes.d.ts +183 -0
- package/@types/core/bridge/compiled_schemas_v3/CheckRecognizerTypes.d.ts +29 -0
- package/@types/core/bridge/compiled_schemas_v3/CommonFieldType.d.ts +59 -0
- package/@types/core/bridge/compiled_schemas_v3/DocumentDetectorTypes.d.ts +196 -0
- package/@types/core/bridge/compiled_schemas_v3/DocumentQualityAnalyzerTypes.d.ts +105 -0
- package/@types/core/bridge/compiled_schemas_v3/EhicTypes.d.ts +218 -0
- package/@types/core/bridge/compiled_schemas_v3/FrameUtilities.d.ts +18 -0
- package/@types/core/bridge/compiled_schemas_v3/GenericDocument.d.ts +198 -0
- package/@types/core/bridge/compiled_schemas_v3/GenericDocumentRecognizerTypes.d.ts +104 -0
- package/@types/core/bridge/compiled_schemas_v3/GenericTextLineScannerTypes.d.ts +165 -0
- package/@types/core/bridge/compiled_schemas_v3/Geometry.d.ts +49 -0
- package/@types/core/bridge/compiled_schemas_v3/ImageProcessorTypes.d.ts +13 -0
- package/@types/core/bridge/compiled_schemas_v3/LicensePlateScannerTypes.d.ts +67 -0
- package/@types/core/bridge/compiled_schemas_v3/MRZTypes.d.ts +52 -0
- package/@types/core/bridge/compiled_schemas_v3/MedicalCertificateTypes.d.ts +306 -0
- package/@types/core/bridge/compiled_schemas_v3/OcrElements.d.ts +129 -0
- package/@types/core/bridge/compiled_schemas_v3/ParametricFilters.d.ts +186 -0
- package/@types/core/bridge/compiled_schemas_v3/PdfConfig.d.ts +197 -0
- package/@types/core/bridge/compiled_schemas_v3/TiffTypes.d.ts +183 -0
- package/@types/core/bridge/utils.d.ts +7 -0
- package/@types/core/bridge/worker-bridge.d.ts +362 -0
- package/@types/core/worker/ScanbotSDK.Core-simd-threads.d.ts +0 -0
- package/@types/core/worker/ScanbotSDK.Core-simd.d.ts +0 -0
- package/@types/core/worker/ScanbotSDK.Core.d.ts +75 -0
- package/@types/core-types.d.ts +23 -0
- package/@types/cropping-view.d.ts +4 -2
- package/@types/document-scanner-view.d.ts +5 -5
- package/@types/generic-document-recognizer-view.d.ts +22 -0
- package/@types/index.d.ts +12 -19
- package/@types/interfaces/i-document-scanner-handle.d.ts +2 -2
- package/@types/interfaces/i-generic-document-recognizer-scanner-handle.d.ts +3 -0
- package/@types/model/barcode/barcode-result.d.ts +6 -8
- package/@types/model/barcode/barcode.d.ts +3 -14
- package/@types/model/configuration/barcode-scanner-configuration.d.ts +12 -8
- package/@types/model/configuration/cropping-view-configuration.d.ts +2 -1
- package/@types/model/configuration/document-scanner-configuration.d.ts +5 -20
- package/@types/model/configuration/generic-document-recognizer-configuration.d.ts +9 -0
- package/@types/model/configuration/initialization-options.d.ts +2 -1
- package/@types/model/configuration/mrz-scanner-configuration.d.ts +4 -3
- package/@types/model/configuration/scanner-configuration.d.ts +1 -0
- package/@types/model/configuration/selection-overlay-configuration.d.ts +2 -2
- package/@types/model/configuration/text-data-scanner-configuration.d.ts +3 -6
- package/@types/model/configuration/view-finder-scanner-configuration.d.ts +3 -2
- package/@types/model/configuration/vin-scanner-configuration.d.ts +2 -1
- package/@types/model/response/cropping-result.d.ts +2 -1
- package/@types/scanbot-sdk.d.ts +208 -29
- package/@types/service/document-quality-analyzer.d.ts +7 -5
- package/@types/service/generic-document-recognizer.d.ts +11 -0
- package/@types/service/ocr-engine.d.ts +8 -5
- package/@types/service/pdf-generator.d.ts +7 -95
- package/@types/service/public-utils.d.ts +1 -1
- package/@types/service/simple-mrz-recognizer.d.ts +5 -5
- package/@types/service/text-data-recognizer.d.ts +5 -4
- package/@types/service/tiff-generator.d.ts +12 -10
- package/@types/ui2/configuration/BarcodeInfoMapping.d.ts +1 -1
- package/@types/ui2/configuration/BarcodeItem.d.ts +4 -28
- package/@types/ui2/configuration/BarcodeRecognizerConfiguration.d.ts +12 -155
- package/@types/ui2/configuration/BarcodeScannerConfiguration.d.ts +2 -18
- package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +6 -0
- package/@types/ui2/configuration/BarcodeTextLocalization.d.ts +0 -60
- package/@types/ui2/configuration/BarcodeTypes.d.ts +1 -0
- package/@types/ui2/configuration/BarcodeUseCase.d.ts +3 -0
- package/@types/ui2/configuration/CameraConfiguration.d.ts +22 -23
- package/@types/ui2/configuration/CameraPermission.d.ts +0 -15
- package/@types/ui2/configuration/Common.d.ts +0 -37
- package/@types/ui2/configuration/FindAndPickScanningModeUseCase.d.ts +2 -2
- package/@types/ui2/configuration/Geometry.d.ts +1 -0
- package/@types/ui2/configuration/MultipleScanningModeUseCase.d.ts +1 -1
- package/@types/ui2/configuration/SingleScanningModeUseCase.d.ts +1 -1
- package/@types/ui2/configuration/TopBarConfiguration.d.ts +0 -16
- package/@types/ui2/configuration/ViewFinderConfiguration.d.ts +6 -3
- package/@types/ui2/configuration.d.ts +1 -1
- package/@types/ui2/controllers/multiple-scanning-mode-controller.d.ts +2 -1
- package/@types/ui2/controllers/single-scanning-mode-controller.d.ts +2 -1
- package/@types/ui2/model/counted-barcodes.d.ts +13 -12
- package/@types/ui2/scanbot-sdk-ui.d.ts +2 -2
- package/@types/ui2/utils/barcode-mapper.d.ts +15 -3
- package/@types/ui2/utils/camera-config.d.ts +2 -2
- package/@types/ui2/utils/styled-input.d.ts +1 -1
- package/@types/ui2/views/action-button/action-button-container.d.ts +2 -0
- package/@types/ui2/views/barcode-scanner.d.ts +4 -3
- package/@types/ui2/views/drawer/subviews/barcode-list-item.d.ts +3 -3
- package/@types/ui2/views/form/dialog-button.d.ts +2 -2
- package/@types/utils/dto/MagneticLine.d.ts +4 -4
- package/@types/utils/dto/Point.d.ts +2 -2
- package/@types/utils/image-utils.d.ts +1 -0
- package/@types/utils/react/usePromise.d.ts +3 -1
- package/@types/utils/utils.d.ts +1 -1
- package/@types/utils/video-stream.d.ts +1 -0
- package/@types/view/action-bar/bottom-action-bar.d.ts +2 -2
- package/@types/view/barcode-calculation/barcode-calculation-popup-list.d.ts +2 -2
- package/@types/view/barcode-calculation/barcode-calculation-popup.d.ts +4 -4
- package/@types/view/barcode-calculation/scanned-image-with-overlay.d.ts +2 -2
- package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +6 -5
- package/@types/view/barcode-polygon/barcode-overlay.d.ts +3 -3
- package/@types/view/barcode-polygon/barcode-polygon-label.d.ts +2 -2
- package/@types/view/cropping/draggable-base-container.d.ts +8 -2
- package/@types/view/cropping/draggable-handles-component.d.ts +9 -2
- package/@types/view/view-finder.d.ts +1 -0
- package/@types/worker/worker-bridge.d.ts +349 -5
- package/Libraries.txt +307 -174
- package/README.md +3 -3
- package/bundle/ScanbotSDK.min.js +5 -5
- package/bundle/ScanbotSDK.ui2.min.js +108 -161
- package/bundle/ScanbotSDK.ui2.min.js.LICENSE.txt +0 -18
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
- package/package.json +4 -3
- package/ui.d.ts +3 -0
- package/ui.js +2 -0
- package/webpack/fileLoader.js +3 -5
- package/@types/core/compiled/ParametricFilters.d.ts +0 -181
- package/@types/core/utils.d.ts +0 -1
- package/@types/core/worker-bridge.d.ts +0 -20
- package/@types/model/barcode/barcode-format.d.ts +0 -1
- package/@types/model/barcode/engine-mode.d.ts +0 -1
- package/@types/model/configuration/document-quality-analyzer-configuration.d.ts +0 -13
- package/@types/model/document/contour-detection-result.d.ts +0 -11
- package/@types/model/document/detection-status.d.ts +0 -11
- package/@types/model/document/document-detection-result.d.ts +0 -8
- package/@types/model/filter-types.d.ts +0 -6
- package/@types/model/generic-text-line-recognizer/text-data-scanner-result.d.ts +0 -6
- package/@types/model/mrz/mrz-result.d.ts +0 -41
- package/@types/model/response/document-quality-analyzer-result.d.ts +0 -8
- package/@types/service/image-processor.d.ts +0 -35
- package/@types/ui2/configuration/BarcodeResult.d.ts +0 -14
- package/@types/utils/networking.d.ts +0 -7
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm-webpack-file-loader +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm-webpack-file-loader +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { ButtonConfiguration } from "./Common";
|
|
2
2
|
import { DeepPartial, PartiallyConstructible } from "./utils";
|
|
3
3
|
import { IconStyle } from "./Common";
|
|
4
|
-
import { StatusBarMode } from "./TopBarConfiguration";
|
|
5
4
|
import { StyledText } from "./Common";
|
|
6
5
|
/**
|
|
7
6
|
Configuration of the camera permission request view.
|
|
8
7
|
*/
|
|
9
8
|
export declare class CameraPermissionScreen extends PartiallyConstructible {
|
|
10
|
-
/**
|
|
11
|
-
Visual mode for displaying the contents of the status bar.
|
|
12
|
-
@defaultValue "DARK";
|
|
13
|
-
*/
|
|
14
|
-
statusBarMode: StatusBarMode;
|
|
15
9
|
/**
|
|
16
10
|
Background color of the camera permission request.
|
|
17
11
|
@defaultValue "?sbColorSurface";
|
|
@@ -30,15 +24,6 @@ export declare class CameraPermissionScreen extends PartiallyConstructible {
|
|
|
30
24
|
});
|
|
31
25
|
*/
|
|
32
26
|
icon: IconStyle;
|
|
33
|
-
/**
|
|
34
|
-
Configuration of the camera permission request's confirmation button.
|
|
35
|
-
@defaultValue new ButtonConfiguration({
|
|
36
|
-
"text": "{'type': 'String', 'default': 'Grant permission'}",
|
|
37
|
-
"background": new BackgroundStyle({}),
|
|
38
|
-
"foreground": new ForegroundStyle({})
|
|
39
|
-
});
|
|
40
|
-
*/
|
|
41
|
-
enableCameraButton: ButtonConfiguration;
|
|
42
27
|
/**
|
|
43
28
|
Configuration of the camera permission request's close button.
|
|
44
29
|
@defaultValue new ButtonConfiguration({
|
|
@@ -201,23 +201,6 @@ export declare class ForegroundStyle extends PartiallyConstructible {
|
|
|
201
201
|
/** @param source {@displayType `DeepPartial<ForegroundStyle>`} */
|
|
202
202
|
constructor(source?: DeepPartial<ForegroundStyle>);
|
|
203
203
|
}
|
|
204
|
-
/**
|
|
205
|
-
Configuration of the finder's aspect ratio.
|
|
206
|
-
*/
|
|
207
|
-
export declare class AspectRatio extends PartiallyConstructible {
|
|
208
|
-
/**
|
|
209
|
-
Width component of the aspect ratio.
|
|
210
|
-
@defaultValue 1.0;
|
|
211
|
-
*/
|
|
212
|
-
width: number;
|
|
213
|
-
/**
|
|
214
|
-
Height component of the aspect ratio.
|
|
215
|
-
@defaultValue 1.0;
|
|
216
|
-
*/
|
|
217
|
-
height: number;
|
|
218
|
-
/** @param source {@displayType `DeepPartial<AspectRatio>`} */
|
|
219
|
-
constructor(source?: DeepPartial<AspectRatio>);
|
|
220
|
-
}
|
|
221
204
|
/**
|
|
222
205
|
Configuration of the round button.
|
|
223
206
|
*/
|
|
@@ -319,26 +302,6 @@ export declare class ButtonConfiguration extends PartiallyConstructible {
|
|
|
319
302
|
/** @param source {@displayType `DeepPartial<ButtonConfiguration>`} */
|
|
320
303
|
constructor(source?: DeepPartial<ButtonConfiguration>);
|
|
321
304
|
}
|
|
322
|
-
/**
|
|
323
|
-
Configure the orientation of the interface.
|
|
324
|
-
|
|
325
|
-
- `NONE`:
|
|
326
|
-
Do not restrict the interface's orientation.
|
|
327
|
-
- `PORTRAIT`:
|
|
328
|
-
Lock the orientation to portrait.
|
|
329
|
-
- `LANDSCAPE`:
|
|
330
|
-
Lock the orientation to landscape.
|
|
331
|
-
*/
|
|
332
|
-
export type OrientationLockMode = "NONE" | "PORTRAIT" | "LANDSCAPE";
|
|
333
|
-
/**
|
|
334
|
-
Configuration of the camera preview mode.
|
|
335
|
-
|
|
336
|
-
- `FIT_IN`:
|
|
337
|
-
In this mode, the camera preview frames will be scaled to the layout view size - the full preview frame content will be visible, but unused edges might appear in the preview layout.
|
|
338
|
-
- `FILL_IN`:
|
|
339
|
-
In this mode, the camera preview frames fill the layout view - the preview frames may contain additional content on the edges that was not visible in the preview layout.
|
|
340
|
-
*/
|
|
341
|
-
export type CameraPreviewMode = "FIT_IN" | "FILL_IN";
|
|
342
305
|
/**
|
|
343
306
|
The sound selection type.
|
|
344
307
|
|
|
@@ -10,11 +10,11 @@ export declare class ExpectedBarcode extends PartiallyConstructible {
|
|
|
10
10
|
/**
|
|
11
11
|
Title of the barcode to find.
|
|
12
12
|
*/
|
|
13
|
-
title: string;
|
|
13
|
+
title: string | null;
|
|
14
14
|
/**
|
|
15
15
|
Image of the barcode to find.
|
|
16
16
|
*/
|
|
17
|
-
image: string;
|
|
17
|
+
image: string | null;
|
|
18
18
|
/**
|
|
19
19
|
Number of barcodes with given symbology/value required to scan.
|
|
20
20
|
@defaultValue 1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../core/bridge/compiled/Geometry";
|
|
@@ -317,7 +317,7 @@ export declare class SheetContent extends PartiallyConstructible {
|
|
|
317
317
|
Configuration of the mode for scanning multiple barcodes.
|
|
318
318
|
*/
|
|
319
319
|
export declare class MultipleScanningMode extends PartiallyConstructible {
|
|
320
|
-
_type: "MultipleScanningMode";
|
|
320
|
+
readonly _type: "MultipleScanningMode";
|
|
321
321
|
/**
|
|
322
322
|
Time interval in milliseconds before a barcode is counted again. 0 = no delay. The default value is 1000.
|
|
323
323
|
@defaultValue 1000;
|
|
@@ -7,7 +7,7 @@ import { StyledText } from "./Common";
|
|
|
7
7
|
Configuration of the single barcode scanning mode.
|
|
8
8
|
*/
|
|
9
9
|
export declare class SingleScanningMode extends PartiallyConstructible {
|
|
10
|
-
_type: "SingleScanningMode";
|
|
10
|
+
readonly _type: "SingleScanningMode";
|
|
11
11
|
/**
|
|
12
12
|
If enabled, the confirmation sheet will be shown after the barcode has been scanned.
|
|
13
13
|
@defaultValue false;
|
|
@@ -19,11 +19,6 @@ export declare class TopBarConfiguration extends PartiallyConstructible {
|
|
|
19
19
|
@defaultValue "SOLID";
|
|
20
20
|
*/
|
|
21
21
|
mode: TopBarMode;
|
|
22
|
-
/**
|
|
23
|
-
Visual mode used for the status bar icons.
|
|
24
|
-
@defaultValue "LIGHT";
|
|
25
|
-
*/
|
|
26
|
-
statusBarMode: StatusBarMode;
|
|
27
22
|
/**
|
|
28
23
|
Background color of the top bar to be used when the visual mode is specified as SOLID. Otherwise ignored.
|
|
29
24
|
@defaultValue "?sbColorPrimary";
|
|
@@ -47,17 +42,6 @@ export declare class TopBarConfiguration extends PartiallyConstructible {
|
|
|
47
42
|
/** @param source {@displayType `DeepPartial<TopBarConfiguration>`} */
|
|
48
43
|
constructor(source?: DeepPartial<TopBarConfiguration>);
|
|
49
44
|
}
|
|
50
|
-
/**
|
|
51
|
-
Visual mode used for the status bar icons.
|
|
52
|
-
|
|
53
|
-
- `DARK`:
|
|
54
|
-
Display all icons in the status bar in black.
|
|
55
|
-
- `LIGHT`:
|
|
56
|
-
Display all icons in the status bar in white.
|
|
57
|
-
- `HIDDEN`:
|
|
58
|
-
Hide the status bar icons.
|
|
59
|
-
*/
|
|
60
|
-
export type StatusBarMode = "DARK" | "LIGHT" | "HIDDEN";
|
|
61
45
|
/**
|
|
62
46
|
Visual mode used for the top bar.
|
|
63
47
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AspectRatio } from "./
|
|
1
|
+
import { AspectRatio } from "./Geometry";
|
|
2
2
|
import { DeepPartial, PartiallyConstructible } from "./utils";
|
|
3
3
|
/**
|
|
4
4
|
Configuration of the scanning interface's viewfinder, serving as guidance to the user.
|
|
@@ -34,6 +34,9 @@ export declare class ViewFinderConfiguration extends PartiallyConstructible {
|
|
|
34
34
|
/** @param source {@displayType `DeepPartial<ViewFinderConfiguration>`} */
|
|
35
35
|
constructor(source?: DeepPartial<ViewFinderConfiguration>);
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
Visual appearance of the viewfinder.
|
|
39
|
+
*/
|
|
37
40
|
export type FinderStyle = FinderCorneredStyle | FinderStrokedStyle;
|
|
38
41
|
/** @internal */
|
|
39
42
|
export declare namespace FinderStyle {
|
|
@@ -46,7 +49,7 @@ export declare namespace FinderStyle {
|
|
|
46
49
|
Variant of the viewfinder displaying only the four corners of the scanning area as user guidance.
|
|
47
50
|
*/
|
|
48
51
|
export declare class FinderCorneredStyle extends PartiallyConstructible {
|
|
49
|
-
_type: "FinderCorneredStyle";
|
|
52
|
+
readonly _type: "FinderCorneredStyle";
|
|
50
53
|
/**
|
|
51
54
|
Color of the viewfinder corner's outlines.
|
|
52
55
|
@defaultValue "#FFFFFFFF";
|
|
@@ -69,7 +72,7 @@ export declare class FinderCorneredStyle extends PartiallyConstructible {
|
|
|
69
72
|
Variant of the viewfinder displaying a full outline of the scanning area as user guidance.
|
|
70
73
|
*/
|
|
71
74
|
export declare class FinderStrokedStyle extends PartiallyConstructible {
|
|
72
|
-
_type: "FinderStrokedStyle";
|
|
75
|
+
readonly _type: "FinderStrokedStyle";
|
|
73
76
|
/**
|
|
74
77
|
Color of the viewfinder's outline.
|
|
75
78
|
@defaultValue "#FFFFFFFF";
|
|
@@ -13,8 +13,8 @@ export * from "./configuration/BarcodeRecognizerConfiguration";
|
|
|
13
13
|
export * from "./configuration/ArTrackingOverlayConfiguration";
|
|
14
14
|
export * from "./configuration/BarcodeScannerConfiguration";
|
|
15
15
|
export * from "./configuration/BarcodeItem";
|
|
16
|
-
export * from "./configuration/BarcodeResult";
|
|
17
16
|
export * from "./configuration/MultipleScanningModeUseCase";
|
|
18
17
|
export * from "./configuration/ScanbotAlertDialog";
|
|
19
18
|
export * from "./configuration/CameraPermission";
|
|
20
19
|
export * from "./configuration/BarcodeItemMapper";
|
|
20
|
+
export * from "./configuration/BarcodeScannerTypes";
|
|
@@ -4,7 +4,8 @@ declare class Props {
|
|
|
4
4
|
configuration: BarcodeScannerConfiguration;
|
|
5
5
|
onCameraPermissionDenied: () => void;
|
|
6
6
|
onSubmit: (barcodeScannerResult: BarcodeScannerResult) => void;
|
|
7
|
-
|
|
7
|
+
onError: (error?: Error) => void;
|
|
8
|
+
scanningEnabled: React.MutableRefObject<boolean>;
|
|
8
9
|
}
|
|
9
10
|
export declare function MultipleScanningModeController(props: Props): React.JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -4,8 +4,9 @@ declare class Props {
|
|
|
4
4
|
configuration: BarcodeScannerConfiguration;
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
onSubmit: (barcodeScannerResult: BarcodeScannerResult) => void;
|
|
7
|
+
onError: (error?: Error) => void;
|
|
7
8
|
onCameraPermissionDenied: () => void;
|
|
8
|
-
|
|
9
|
+
scanningEnabled: React.MutableRefObject<boolean>;
|
|
9
10
|
}
|
|
10
11
|
export declare function SingleScanningModeController(props: Props): React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { Barcode } from "../../model/barcode/barcode";
|
|
2
1
|
import BarcodePolygon from "../../view/barcode-polygon/barocode-polygon";
|
|
3
2
|
import { ArOverlayBarcodeInfo } from "../views/ar/ar-overlay-barcode-info";
|
|
3
|
+
import type { CoreBarcodeItem } from "../configuration/BarcodeItem";
|
|
4
4
|
export type CountedBarcode = {
|
|
5
|
-
barcode:
|
|
5
|
+
barcode: CoreBarcodeItem;
|
|
6
6
|
count: number;
|
|
7
7
|
labelElement?: ArOverlayBarcodeInfo;
|
|
8
8
|
polygonElement?: BarcodePolygon;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Function that takes the current count of a barcode and returns its new count.
|
|
12
|
+
* `oldCount` is 0 if the barcode is not yet in the list of barcodes.
|
|
13
|
+
**/
|
|
14
|
+
type ComputeNewCountFunction = (oldCount: number) => number;
|
|
10
15
|
export type CountedBarcodeAction = {
|
|
11
|
-
type: 'discover';
|
|
12
|
-
barcodes: Barcode[];
|
|
13
|
-
} | {
|
|
14
|
-
type: 'addOne';
|
|
15
|
-
barcodes: Barcode[];
|
|
16
|
-
} | {
|
|
17
16
|
type: 'setCount';
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
barcodes: CoreBarcodeItem[];
|
|
18
|
+
computeNewCount: ComputeNewCountFunction;
|
|
20
19
|
} | {
|
|
21
20
|
type: 'remove';
|
|
22
|
-
barcode:
|
|
21
|
+
barcode: CoreBarcodeItem;
|
|
23
22
|
} | {
|
|
24
23
|
type: 'clear';
|
|
25
24
|
} | {
|
|
26
25
|
type: 'setHtmlElements';
|
|
27
|
-
barcode:
|
|
26
|
+
barcode: CoreBarcodeItem;
|
|
28
27
|
labelElement: ArOverlayBarcodeInfo;
|
|
29
28
|
polygonElement: BarcodePolygon;
|
|
30
29
|
};
|
|
30
|
+
export declare const barcodesEqual: (a: CoreBarcodeItem, b: CoreBarcodeItem) => boolean;
|
|
31
31
|
export declare function countedBarcodesReducer(countedBarcodes: Readonly<Readonly<CountedBarcode>[]>, action: CountedBarcodeAction): CountedBarcode[];
|
|
32
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BarcodeScannerConfiguration, BarcodeScannerResult } from "./configuration";
|
|
2
1
|
import * as Config from "./configuration";
|
|
2
|
+
import { BarcodeScannerResult } from "./configuration/BarcodeScannerTypes";
|
|
3
3
|
export default class ScanbotSDKUI {
|
|
4
|
-
static createBarcodeScanner(config: BarcodeScannerConfiguration): Promise<BarcodeScannerResult | null>;
|
|
4
|
+
static createBarcodeScanner(config: Config.BarcodeScannerConfiguration): Promise<BarcodeScannerResult | null>;
|
|
5
5
|
private static createContainer;
|
|
6
6
|
static readonly Config: typeof Config;
|
|
7
7
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BarcodeItem, BarcodeItemMapper, BarcodeMappedData } from "../configuration";
|
|
3
|
-
import {
|
|
3
|
+
import type { CoreBarcodeItem } from "../configuration/BarcodeItem";
|
|
4
4
|
export declare const BarcodeMapperContext: import("react").Context<BarcodeMapper>;
|
|
5
5
|
export type BarcodeMappedDataLoadingState = {
|
|
6
6
|
value: BarcodeMappedData | null;
|
|
7
7
|
state: 'LOADED' | 'LOADING' | 'RETRY_DIALOG_OPEN' | 'FAILED';
|
|
8
8
|
};
|
|
9
|
+
type OnEvictionListener = {
|
|
10
|
+
barcode: CoreBarcodeItem;
|
|
11
|
+
callback: () => void;
|
|
12
|
+
};
|
|
9
13
|
export declare class BarcodeMapper {
|
|
10
14
|
private barcodeItemMapper;
|
|
11
15
|
private onError;
|
|
@@ -18,12 +22,20 @@ export declare class BarcodeMapper {
|
|
|
18
22
|
* If the retry function is called, all cached entries that are currently in this "RETRY_DIALOG_OPEN" state are cleared.
|
|
19
23
|
*/
|
|
20
24
|
constructor(barcodeItemMapper: BarcodeItemMapper, onError: (retry: () => void, cancel: () => void) => void);
|
|
21
|
-
mapBarcodeToBarcodeItem(barcode:
|
|
25
|
+
mapBarcodeToBarcodeItem(barcode: CoreBarcodeItem, count: number): Promise<BarcodeItem>;
|
|
22
26
|
/**
|
|
23
27
|
* Results are cached.
|
|
24
28
|
* Note that, because resulting promise will be used in useMemo, it is important we return the identical
|
|
25
29
|
* promise for the same input (not just a promise with the same value).
|
|
30
|
+
* Also note that we must not make this function async:
|
|
31
|
+
* If we do this, the function will only be evaluated once somebody awaits its result.
|
|
32
|
+
* It might be, that before that happens, the function is called again. In this case, the cache value will not
|
|
33
|
+
* have been set yet.
|
|
26
34
|
* */
|
|
27
35
|
private getBarcodeMappedData;
|
|
28
|
-
useBarcodeMappedData(barcode:
|
|
36
|
+
useBarcodeMappedData(barcode: CoreBarcodeItem): BarcodeMappedDataLoadingState | null;
|
|
37
|
+
private onEvictionListeners;
|
|
38
|
+
addOnEvictionListener(listener: OnEvictionListener): void;
|
|
39
|
+
removeOnEvictionListener(listener: OnEvictionListener): void;
|
|
29
40
|
}
|
|
41
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CameraConfiguration } from "../configuration/CameraConfiguration";
|
|
2
1
|
import { BarcodeScannerConfiguration as BarcodeScannerViewConfig } from "../../model/configuration/barcode-scanner-configuration";
|
|
3
|
-
|
|
2
|
+
import { BarcodeScannerConfiguration } from "../configuration/BarcodeScannerConfiguration";
|
|
3
|
+
export declare function barcodeScannerViewConfigFromRtuUiConfig(config: BarcodeScannerConfiguration): Partial<BarcodeScannerViewConfig>;
|
|
@@ -2,5 +2,5 @@ import React from "react";
|
|
|
2
2
|
interface Props extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
3
3
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
4
4
|
}
|
|
5
|
-
export declare function StyledInput(props: Props): React.JSX.Element;
|
|
5
|
+
export declare function StyledInput({ inputRef, ...props }: Props): React.JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import BarcodeScannerView from "../../../barcode-scanner-view";
|
|
3
3
|
import { ActionBarConfiguration } from "../../configuration/ActionBarConfiguration";
|
|
4
|
+
import { CameraModule } from "../../configuration/CameraConfiguration";
|
|
4
5
|
export type Facingmode = "environment" | "user";
|
|
5
6
|
export declare class Props {
|
|
6
7
|
capabilities?: ActionButtonCapabilities;
|
|
@@ -9,6 +10,7 @@ export declare class Props {
|
|
|
9
10
|
bottomPadding: number;
|
|
10
11
|
config: ActionBarConfiguration;
|
|
11
12
|
torchEnabledInitially: boolean;
|
|
13
|
+
initialCameraModule: CameraModule;
|
|
12
14
|
zoomSteps: number[];
|
|
13
15
|
defaultZoomFactor: number;
|
|
14
16
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Barcode } from "../../model/barcode/barcode";
|
|
3
2
|
import { ArOverlayGeneralConfiguration } from "../configuration/ArTrackingOverlayConfiguration";
|
|
4
3
|
import { ActionBarConfiguration } from "../configuration/ActionBarConfiguration";
|
|
5
4
|
import { BarcodeScannerConfiguration as BarcodeScannerViewConfig } from "../../model/configuration/barcode-scanner-configuration";
|
|
@@ -7,18 +6,20 @@ import { ViewFinderPadding } from "../../view/view-finder";
|
|
|
7
6
|
import BarcodePolygon from "../../view/barcode-polygon/barocode-polygon";
|
|
8
7
|
import BarcodePolygonLabel from "../../view/barcode-polygon/barcode-polygon-label";
|
|
9
8
|
import { CameraConfiguration } from "../configuration/CameraConfiguration";
|
|
9
|
+
import type { CoreBarcodeItem } from "../configuration/BarcodeItem";
|
|
10
10
|
export declare class Props {
|
|
11
11
|
cameraConfiguration: CameraConfiguration;
|
|
12
12
|
arOverlay: ArOverlayGeneralConfiguration;
|
|
13
13
|
actionBarConfig: ActionBarConfiguration;
|
|
14
14
|
actionBarBottomPadding: number;
|
|
15
|
-
arOnBarcodeEnter: (code:
|
|
16
|
-
arOnBarcodeClick: (barcode:
|
|
15
|
+
arOnBarcodeEnter: (code: CoreBarcodeItem, polygon: BarcodePolygon, label: BarcodePolygonLabel) => void;
|
|
16
|
+
arOnBarcodeClick: (barcode: CoreBarcodeItem) => void;
|
|
17
17
|
scanningPaused: boolean;
|
|
18
18
|
barcodeScannerViewConfig: BarcodeScannerViewConfig;
|
|
19
19
|
viewFinderPadding: ViewFinderPadding;
|
|
20
20
|
containerId: string;
|
|
21
21
|
onCameraPermissionDenied: () => void;
|
|
22
22
|
setActionButtonsVisible: (visible: boolean) => void;
|
|
23
|
+
onLicenseError?: () => void;
|
|
23
24
|
}
|
|
24
25
|
export declare function BarcodeScanner(props: Props): React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Barcode } from "../../../../model/barcode/barcode";
|
|
3
2
|
import { BarcodeInfoPropsBase } from "../../barcode-info/barcode-info";
|
|
4
3
|
import { SwipeToDelete } from "../../../configuration";
|
|
4
|
+
import { BarcodeScannerTypes } from "../../../../core-types";
|
|
5
5
|
export interface Props extends BarcodeInfoPropsBase {
|
|
6
|
-
barcode:
|
|
7
|
-
onDelete: (barcode:
|
|
6
|
+
barcode: BarcodeScannerTypes.BarcodeItem;
|
|
7
|
+
onDelete: (barcode: BarcodeScannerTypes.BarcodeItem) => void;
|
|
8
8
|
readonlyCount: number | null;
|
|
9
9
|
swipeToDeleteConfig: SwipeToDelete;
|
|
10
10
|
sheetColor: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ButtonConfiguration } from "../../configuration";
|
|
3
|
-
import * as Muicon from "@mui/icons-material";
|
|
4
3
|
import { ButtonProps } from "@mui/material/Button/Button";
|
|
4
|
+
import { SvgIconComponent } from "@mui/icons-material";
|
|
5
5
|
declare class Props extends ButtonConfiguration {
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: SvgIconComponent;
|
|
7
7
|
onClick: () => void;
|
|
8
8
|
style: React.CSSProperties;
|
|
9
9
|
type?: ButtonProps['type'];
|
|
@@ -6,8 +6,8 @@ export declare class Point {
|
|
|
6
6
|
constructor(x: number, y: number);
|
|
7
7
|
static toPolygon(points: Point[], size: Size): Polygon;
|
|
8
8
|
static scaleToPoint(pt: Point, x: number, y: number, scale: number): Point;
|
|
9
|
-
static scaleListToHtmlElement(points: Point[], original:
|
|
10
|
-
static scaleToHtmlElement(point: Point, original:
|
|
9
|
+
static scaleListToHtmlElement(points: Point[], original: Size, html: HTMLElement): Point[];
|
|
10
|
+
static scaleToHtmlElement(point: Point, original: Size, html: HTMLElement): Point;
|
|
11
11
|
static scaleUpTo(pt: Point, size: Size): Point;
|
|
12
12
|
static scaleDownTo(pt: Point, size: Size): Point;
|
|
13
13
|
static fromHtmlElement(element: HTMLElement): Point;
|
|
@@ -10,4 +10,5 @@ export declare class ImageUtils {
|
|
|
10
10
|
static saveBlob(blob: Blob, name: string): void;
|
|
11
11
|
static convertImageDataWrapperToImageData(imageDataWrapper: ImageDataWrapper): ImageData;
|
|
12
12
|
static wrapperToBase64(wrapper: ImageDataWrapper): string;
|
|
13
|
+
static toBase64(data: Uint8Array): Promise<string>;
|
|
13
14
|
}
|
package/@types/utils/utils.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export declare class Utils {
|
|
|
2
2
|
static toPixelSize(size: number): string;
|
|
3
3
|
static containsString(content: string, substring: string): boolean;
|
|
4
4
|
static copy(item: any): any;
|
|
5
|
-
static getProperty(obj:
|
|
5
|
+
static getProperty<T>(obj: T, propertyName: keyof T): T[keyof T] | undefined;
|
|
6
6
|
static uuid(): string;
|
|
7
7
|
}
|
|
@@ -29,5 +29,6 @@ export default class VideoStream extends React.Component<VideoStreamProps, Video
|
|
|
29
29
|
render(): React.ReactNode;
|
|
30
30
|
updateTorch(enabled: boolean): Promise<void>;
|
|
31
31
|
getCapabilities(): MediaTrackCapabilities | undefined;
|
|
32
|
+
static getMediaTrackCapabilities(track: MediaStreamTrack): MediaTrackCapabilities | undefined;
|
|
32
33
|
getVideoTrack(): MediaStreamTrack | undefined;
|
|
33
34
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import type { BarcodeScannerTypes } from "../../core-types";
|
|
3
3
|
export default class BottomActionBar extends React.Component<any, any> {
|
|
4
4
|
constructor(props: any);
|
|
5
|
-
update(barcodes:
|
|
5
|
+
update(barcodes: BarcodeScannerTypes.BarcodeItem[]): void;
|
|
6
6
|
didScan(): boolean;
|
|
7
7
|
render(): React.ReactNode;
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { BarcodeScannerTypes } from "../../core-types";
|
|
3
3
|
export default class BarcodeCalculationPopupList extends React.Component<any, any> {
|
|
4
4
|
constructor(props: any);
|
|
5
|
-
toUniqueListWithDuplicateCounter(barcodes:
|
|
5
|
+
toUniqueListWithDuplicateCounter(barcodes: BarcodeScannerTypes.BarcodeItem[]): BarcodeScannerTypes.BarcodeItem[];
|
|
6
6
|
update(barcodes: any): void;
|
|
7
7
|
render(): React.ReactNode;
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties } from "react";
|
|
2
|
-
import { Barcode } from "../../model/barcode/barcode";
|
|
3
2
|
import BarcodeCalculationPopupList from "./barcode-calculation-popup-list";
|
|
3
|
+
import type { BarcodeScannerTypes } from "../../core-types";
|
|
4
4
|
export declare enum AnimationType {
|
|
5
5
|
None = 0,
|
|
6
6
|
PushRight = 1,
|
|
@@ -10,15 +10,15 @@ export declare enum AnimationType {
|
|
|
10
10
|
export default class BarcodeCalculationPopup extends React.Component<any, any> {
|
|
11
11
|
list: BarcodeCalculationPopupList;
|
|
12
12
|
previousDestination?: string;
|
|
13
|
-
barcodes?:
|
|
13
|
+
barcodes?: BarcodeScannerTypes.BarcodeItem[];
|
|
14
14
|
constructor(props: any);
|
|
15
15
|
containerStyle(transform: string): CSSProperties;
|
|
16
16
|
render(): React.ReactNode;
|
|
17
17
|
reset(): void;
|
|
18
18
|
private _isVisible;
|
|
19
19
|
isVisible(): boolean;
|
|
20
|
-
push(type: AnimationType, barcodes:
|
|
21
|
-
update(barcodes:
|
|
20
|
+
push(type: AnimationType, barcodes: BarcodeScannerTypes.BarcodeItem[]): void;
|
|
21
|
+
update(barcodes: BarcodeScannerTypes.BarcodeItem[]): void;
|
|
22
22
|
pop(): void;
|
|
23
23
|
onAnimationStart(): void;
|
|
24
24
|
onAnimationEnd(): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { BarcodeScannerResultWithSize } from "../../model/barcode/barcode-result";
|
|
3
3
|
export default class ScannedImageWithOverlay extends React.Component<any, any> {
|
|
4
4
|
image: HTMLImageElement | undefined;
|
|
5
5
|
constructor(props: any);
|
|
6
|
-
update(result:
|
|
6
|
+
update(result: BarcodeScannerResultWithSize): void;
|
|
7
7
|
reset(): void;
|
|
8
8
|
render(): ReactNode;
|
|
9
9
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import ScanbotCameraView from "../scanbot-camera-view";
|
|
3
|
-
import { Barcode } from "../../model/barcode/barcode";
|
|
4
3
|
import { BarcodeOverlay } from "./barcode-overlay";
|
|
5
4
|
import BarcodePolygon from "./barocode-polygon";
|
|
6
5
|
import BarcodePolygonLabel from "./barcode-polygon-label";
|
|
7
6
|
import { SelectionOverlayConfiguration } from "../../model/configuration/selection-overlay-configuration";
|
|
8
7
|
import { ArOverlayBarcodeInfo, AROverlayBarcodeInfoConfig } from "../../ui2/views/ar/ar-overlay-barcode-info";
|
|
9
8
|
import { Frame } from "../../utils/dto/Frame";
|
|
9
|
+
import { Size } from "../../utils/dto/Size";
|
|
10
|
+
import { BarcodeScannerTypes } from "../../core-types";
|
|
10
11
|
export declare class BarcodePolygonElement {
|
|
11
12
|
element: BarcodeOverlay;
|
|
12
13
|
updatedAt?: number;
|
|
@@ -18,15 +19,15 @@ export declare class BarcodePolygonElement {
|
|
|
18
19
|
export declare class SelectionOverlayProps {
|
|
19
20
|
style?: React.CSSProperties;
|
|
20
21
|
configuration?: SelectionOverlayConfiguration;
|
|
21
|
-
onPolygonSelected?: (code:
|
|
22
|
-
onPolygonClick?: (code:
|
|
23
|
-
onBarcodeFound?: (code:
|
|
22
|
+
onPolygonSelected?: (code: BarcodeScannerTypes.BarcodeItem) => void;
|
|
23
|
+
onPolygonClick?: (code: BarcodeScannerTypes.BarcodeItem) => void;
|
|
24
|
+
onBarcodeFound?: (code: BarcodeScannerTypes.BarcodeItem, polygon: BarcodePolygon, label: BarcodePolygonLabel) => void;
|
|
24
25
|
LabelComponent: (typeof BarcodePolygonLabel | typeof ArOverlayBarcodeInfo);
|
|
25
26
|
labelComponentConfig: {} | AROverlayBarcodeInfoConfig;
|
|
26
27
|
}
|
|
27
28
|
export default class AnimatedBarcodeSelectionOverlay extends React.Component<SelectionOverlayProps, any> {
|
|
28
29
|
constructor(props: SelectionOverlayProps);
|
|
29
|
-
update(finderRect: Frame, camera: ScanbotCameraView,
|
|
30
|
+
update(finderRect: Frame, camera: ScanbotCameraView, originalImageSize: Size, codes: BarcodeScannerTypes.BarcodeItem[]): void;
|
|
30
31
|
onPolygonClick(model: BarcodeOverlay): void;
|
|
31
32
|
render(): React.ReactNode;
|
|
32
33
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Barcode } from "../../model/barcode/barcode";
|
|
2
1
|
import { Point } from "../../utils/dto/Point";
|
|
2
|
+
import { BarcodeScannerTypes } from "../../core-types";
|
|
3
3
|
export declare class BarcodeOverlay {
|
|
4
4
|
base64Image?: string;
|
|
5
|
-
code:
|
|
5
|
+
code: BarcodeScannerTypes.BarcodeItem;
|
|
6
6
|
points: Point[];
|
|
7
7
|
highlighted: boolean;
|
|
8
|
-
constructor(barcode:
|
|
8
|
+
constructor(barcode: BarcodeScannerTypes.BarcodeItem);
|
|
9
9
|
}
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { BarcodeOverlay } from "./barcode-overlay";
|
|
3
3
|
import { Point } from "../../utils/dto/Point";
|
|
4
4
|
import { BarcodePolygonLabelStyle, SelectionOverlayConfiguration, SelectionOverlayTextFormat } from "../../model/configuration/selection-overlay-configuration";
|
|
5
|
-
import {
|
|
5
|
+
import { BarcodeScannerTypes } from "../../core-types";
|
|
6
6
|
export declare class BarcodePolygonLabelProps {
|
|
7
7
|
element: BarcodeOverlay;
|
|
8
8
|
configuration: SelectionOverlayConfiguration;
|
|
@@ -18,7 +18,7 @@ export default class BarcodePolygonLabel<Props extends BarcodePolygonLabelProps
|
|
|
18
18
|
style(style: BarcodePolygonLabelStyle): void;
|
|
19
19
|
update(model: BarcodeOverlay): void;
|
|
20
20
|
label: HTMLDivElement;
|
|
21
|
-
formatText(code:
|
|
21
|
+
formatText(code: BarcodeScannerTypes.BarcodeItem, format: SelectionOverlayTextFormat): string | undefined;
|
|
22
22
|
render(): React.ReactNode;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -19,8 +19,14 @@ interface DraggableBaseContainerProps {
|
|
|
19
19
|
scale: number;
|
|
20
20
|
rotations: number;
|
|
21
21
|
points: Point[];
|
|
22
|
-
cornerMoveStart?:
|
|
23
|
-
|
|
22
|
+
cornerMoveStart?: (data: {
|
|
23
|
+
index: number;
|
|
24
|
+
point: Point;
|
|
25
|
+
}) => void;
|
|
26
|
+
cornerMoved?: (data: {
|
|
27
|
+
index: number;
|
|
28
|
+
point: Point;
|
|
29
|
+
}) => void;
|
|
24
30
|
cornerMoveEnd?: any;
|
|
25
31
|
lineMoved?: (movingLine: MovingLine) => void;
|
|
26
32
|
}
|