scanbot-web-sdk 2.13.0-alpha.2 → 2.13.0-rc.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/@types/barcode-scanner-view.d.ts +3 -1
- package/@types/interfaces/i-barcode-scanner-handle.d.ts +7 -0
- package/@types/model/configuration/barcode-count-configuration.d.ts +5 -0
- package/@types/model/configuration/barcode-scanner-configuration.d.ts +9 -0
- package/@types/utils/colors.d.ts +1 -0
- package/@types/utils/dto/Point.d.ts +1 -0
- package/@types/view/utils/scanner-hint-label.d.ts +4 -0
- package/bundle/ScanbotSDK.min.js +3 -3
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm-webpack-file-loader +0 -0
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ export declare class BarcodeScannerState extends ScanbotCameraState {
|
|
|
19
19
|
zoom?: number;
|
|
20
20
|
action: ShutterButtonAction;
|
|
21
21
|
image?: string;
|
|
22
|
+
bottomHintText?: string;
|
|
22
23
|
}
|
|
23
24
|
export default class BarcodeScannerView extends ScannerView<BarcodeScannerProps, BarcodeScannerState> {
|
|
24
25
|
finder?: ViewFinder;
|
|
@@ -56,14 +57,15 @@ export default class BarcodeScannerView extends ScannerView<BarcodeScannerProps,
|
|
|
56
57
|
pause(): void;
|
|
57
58
|
computeSize(): boolean;
|
|
58
59
|
detect(): Promise<void>;
|
|
60
|
+
private recognizeBarcodes;
|
|
59
61
|
desiredRecognitionResolution: number | undefined;
|
|
60
62
|
setRecognitionResolution(resolution: number): void;
|
|
61
63
|
getResolution(): Promise<Size>;
|
|
62
|
-
private recognizeBarcodes;
|
|
63
64
|
saveExtractedImageData(): void;
|
|
64
65
|
setFinderVisible(isVisible: boolean): void;
|
|
65
66
|
setZoom(zoom: number): void;
|
|
66
67
|
updateTorch(enabled: boolean): void;
|
|
67
68
|
getCapabilities(): MediaTrackCapabilities | undefined;
|
|
68
69
|
render(): JSX.Element;
|
|
70
|
+
countLabelText(barcodes: Barcode[]): string;
|
|
69
71
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { Size } from "../utils/dto/Size";
|
|
1
2
|
import { IScannerCommon } from "./i-scanner-common-handle";
|
|
2
3
|
export interface IBarcodeScannerHandle extends IScannerCommon {
|
|
3
4
|
saveExtractedImageData(): void;
|
|
4
5
|
resumeDetection(): void;
|
|
5
6
|
pauseDetection(): void;
|
|
6
7
|
isDetectionPaused(): boolean;
|
|
8
|
+
getCapabilities(): MediaTrackCapabilities | undefined;
|
|
9
|
+
setZoom(): void;
|
|
10
|
+
setFinderVisible(isVisible: boolean): void;
|
|
11
|
+
updateTorch(enabled: boolean): void;
|
|
12
|
+
getResolution(): Promise<Size>;
|
|
13
|
+
setRecognitionResolution(resolution: number): void;
|
|
7
14
|
}
|
|
@@ -4,6 +4,7 @@ import { EngineMode } from "../barcode/engine-mode";
|
|
|
4
4
|
import { BarcodeFormat } from "../barcode/barcode-format";
|
|
5
5
|
import { ViewFinderConfiguration } from "./view-finder-configuration";
|
|
6
6
|
import { SelectionOverlayConfiguration } from "./selection-overlay-configuration";
|
|
7
|
+
import { BarcodeCountConfiguration } from "./barcode-count-configuration";
|
|
7
8
|
export declare class BarcodeScannerConfiguration extends ScannerConfiguration {
|
|
8
9
|
constructor();
|
|
9
10
|
/**
|
|
@@ -12,10 +13,18 @@ export declare class BarcodeScannerConfiguration extends ScannerConfiguration {
|
|
|
12
13
|
captureDelay?: number;
|
|
13
14
|
style?: ViewFinderConfiguration;
|
|
14
15
|
overlay?: SelectionOverlayConfiguration;
|
|
16
|
+
count?: BarcodeCountConfiguration;
|
|
15
17
|
engineMode?: EngineMode;
|
|
16
18
|
barcodeFormats?: BarcodeFormat[];
|
|
17
19
|
returnBarcodeImage?: boolean;
|
|
18
20
|
showFinder?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Special property to enable barcode count mode.
|
|
23
|
+
* This is a type of a ready-to-use user interface scanning and counting found barcodes.
|
|
24
|
+
* It can be configured via the 'count' (BarcodeCountConfiguration) property.
|
|
25
|
+
* It returns results normally via 'onBarcodesDetected' callback.
|
|
26
|
+
* Please note that results are returned for each consecutive scan, not only after the last scan
|
|
27
|
+
*/
|
|
19
28
|
manualDetection?: boolean;
|
|
20
29
|
/**
|
|
21
30
|
* Digital zoom level of the video stream. Defaults to 1.0.
|
package/@types/utils/colors.d.ts
CHANGED
|
@@ -14,5 +14,6 @@ export declare class Point {
|
|
|
14
14
|
static withScale(x: number, y: number, scale: number): Point;
|
|
15
15
|
static fromCoordinates(clientX: any, clientY: any, rotations: number, scale: number): Point;
|
|
16
16
|
static centerOf(points: Point[]): Point;
|
|
17
|
+
static smallerSizeOfQuad(points: Point[]): number;
|
|
17
18
|
static empty(): Point;
|
|
18
19
|
}
|