scanbot-web-sdk 2.9.1 → 2.9.2-beta2
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/model/barcode/barcode-result.d.ts +2 -1
- package/@types/model/image-data-wrapper.d.ts +5 -0
- package/@types/utils/image-utils.d.ts +2 -0
- package/@types/view/scanbot-camera-view.d.ts +2 -1
- package/bundle/ScanbotSDK.min.js +2 -2
- 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/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ImageDataWrapper } from "../image-data-wrapper";
|
|
1
2
|
import { Barcode } from "./barcode";
|
|
2
3
|
export declare class BarcodeResult {
|
|
3
4
|
barcodes: Barcode[];
|
|
4
5
|
imageData: ImageData;
|
|
5
6
|
constructor(barcodes: Barcode[], imageData: ImageData);
|
|
6
|
-
static fromWorker(inputs: any[],
|
|
7
|
+
static fromWorker(inputs: any[], image: ImageDataWrapper): BarcodeResult;
|
|
7
8
|
isEmpty(): boolean;
|
|
8
9
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Size } from "./dto/Size";
|
|
2
2
|
import { Frame } from "./dto/Frame";
|
|
3
|
+
import { ImageDataWrapper } from "../model/image-data-wrapper";
|
|
3
4
|
export declare class ImageUtils {
|
|
4
5
|
static toDataUrl(buffer: ArrayBuffer): Promise<string>;
|
|
5
6
|
static getObjectFitSize(container: Size, size: Size, contains?: boolean): Frame;
|
|
6
7
|
static loadFromUrl(imageURL: string): Promise<ImageData>;
|
|
7
8
|
static saveImageData(data: ImageData): void;
|
|
8
9
|
static saveBlob(blob: Blob, name: string): void;
|
|
10
|
+
static convertImageDataWrapperToImageData(imageDataWrapper: ImageDataWrapper): ImageData;
|
|
9
11
|
}
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { Size } from "../utils/dto/Size";
|
|
3
3
|
import { Frame } from "../utils/dto/Frame";
|
|
4
4
|
import { WindowStyleConfiguration } from "../model/configuration/window-style-configuration";
|
|
5
|
+
import { ImageDataWrapper } from "../model/image-data-wrapper";
|
|
5
6
|
export interface ScanbotCameraViewProps {
|
|
6
7
|
windowConfiguration?: WindowStyleConfiguration;
|
|
7
8
|
videoConstraints: MediaTrackConstraints;
|
|
@@ -21,7 +22,7 @@ export default class ScanbotCameraView extends React.Component<ScanbotCameraView
|
|
|
21
22
|
};
|
|
22
23
|
save: boolean;
|
|
23
24
|
saveExtractedData(): void;
|
|
24
|
-
createImageData(maxLargerLength?: number):
|
|
25
|
+
createImageData(maxLargerLength?: number): ImageDataWrapper;
|
|
25
26
|
calculateClientVideoConstraints(): {
|
|
26
27
|
clientVideoWidth: number;
|
|
27
28
|
clientVideoHeight: number;
|