scanbot-web-sdk 2.8.0-alpha1 → 2.8.0-beta3
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/document-scanner-view.d.ts +2 -1
- package/@types/service/debugger.d.ts +0 -3
- package/@types/service/public-utils.d.ts +1 -0
- package/@types/utils/dto/Point.d.ts +1 -1
- package/@types/utils/image-utils.d.ts +2 -0
- package/@types/utils/predicate/polygon-movement-predicate.d.ts +3 -3
- package/@types/utils/utils.d.ts +1 -0
- package/@types/view/cropping/draggable-lines-container.d.ts +3 -2
- package/@types/view/cropping/draggable-points-container.d.ts +4 -3
- 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 +1 -1
|
@@ -43,7 +43,8 @@ export default class DocumentScannerView extends ScannerView<DocumentScannerProp
|
|
|
43
43
|
updateButton(action: ShutterButtonAction): void;
|
|
44
44
|
render(): JSX.Element;
|
|
45
45
|
defaultCaptureButtonClick: () => Promise<void>;
|
|
46
|
-
private
|
|
46
|
+
private scalePolygonPointsToPixels;
|
|
47
47
|
private runMovementPredicate;
|
|
48
|
+
private getCameraFrameSize;
|
|
48
49
|
}
|
|
49
50
|
export {};
|
|
@@ -10,6 +10,6 @@ export declare class Point {
|
|
|
10
10
|
static scaleDownTo(pt: Point, size: Size): Point;
|
|
11
11
|
static fromHtmlElement(element: HTMLElement): Point;
|
|
12
12
|
static withScale(x: number, y: number, scale: number): Point;
|
|
13
|
-
static
|
|
13
|
+
static fromCoordinates(clientX: any, clientY: any, rotations: number, scale: number): Point;
|
|
14
14
|
static empty(): Point;
|
|
15
15
|
}
|
|
@@ -4,4 +4,6 @@ export declare class ImageUtils {
|
|
|
4
4
|
static toDataUrl(buffer: ArrayBuffer): Promise<string>;
|
|
5
5
|
static getObjectFitSize(container: Size, size: Size, contains?: boolean): Frame;
|
|
6
6
|
static loadFromUrl(imageURL: string): Promise<ImageData>;
|
|
7
|
+
static saveImageData(data: ImageData): void;
|
|
8
|
+
static saveBlob(blob: Blob, name: string): void;
|
|
7
9
|
}
|
|
@@ -6,9 +6,9 @@ export declare class PolygonMovementPredicate {
|
|
|
6
6
|
private maxDistance;
|
|
7
7
|
private sensitivity;
|
|
8
8
|
constructor(videoSize: VideoSize, sensitivity?: Number);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
check(polygon: Polygon): boolean;
|
|
10
|
+
reset(): void;
|
|
11
|
+
update(polygon: Polygon): void;
|
|
12
12
|
private isPointMoved;
|
|
13
13
|
private calculateMaxDistance;
|
|
14
14
|
}
|
package/@types/utils/utils.d.ts
CHANGED
|
@@ -7,8 +7,9 @@ export declare class DraggableLinesContainer extends DraggableBaseContainer {
|
|
|
7
7
|
point1Start: Point;
|
|
8
8
|
point2Start: Point;
|
|
9
9
|
create(): JSX.Element[];
|
|
10
|
-
lineTouchStart(e: React.
|
|
11
|
-
lineTouchMove(e: React.
|
|
10
|
+
lineTouchStart(e: React.PointerEvent<HTMLDivElement>, index: number): void;
|
|
11
|
+
lineTouchMove(e: React.PointerEvent<HTMLDivElement>, index: number): void;
|
|
12
|
+
lineTouchEnd(): void;
|
|
12
13
|
MAX_SLOPE_DIFF: number;
|
|
13
14
|
accountForSlopeCalculationError(potential: number, existing: number): number;
|
|
14
15
|
isNearOpposingPoint(start: Point, active: Point, wall: Point, axis: "x" | "y"): boolean;
|
|
@@ -2,10 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { Point } from "../../utils/dto/Point";
|
|
3
3
|
import { DraggableBaseContainer } from "./draggable-base-container";
|
|
4
4
|
export declare class DraggablePointsContainer extends DraggableBaseContainer {
|
|
5
|
+
lastPointIndex: number;
|
|
5
6
|
create(): JSX.Element[];
|
|
6
|
-
cornerTouchStart(e: React.
|
|
7
|
-
cornerTouchMove(e: React.
|
|
8
|
-
cornerTouchEnd(
|
|
7
|
+
cornerTouchStart(e: React.PointerEvent<HTMLDivElement>, index: number): void;
|
|
8
|
+
cornerTouchMove(e: React.PointerEvent<HTMLDivElement>, index: number): void;
|
|
9
|
+
cornerTouchEnd(): void;
|
|
9
10
|
calculateSlopes(): void;
|
|
10
11
|
calculateSlope(point1: Point, point2: Point, isHorizontal: boolean): number;
|
|
11
12
|
render(): JSX.Element;
|