@exige/web-scanner-sdk 0.2.17 → 0.2.23

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.
@@ -1,27 +0,0 @@
1
- export interface CoverCrop {
2
- sx: number;
3
- sy: number;
4
- sw: number;
5
- sh: number;
6
- }
7
- /**
8
- * The overlay box the user is looking at. Prefer the parent so a later
9
- * layout tweak on the video element cannot change which pixels are analyzed.
10
- */
11
- export declare function viewfinderBox(element: HTMLElement): DOMRect;
12
- /**
13
- * Center crop matching `object-fit: cover`. A 1920×1080 buffer in a portrait
14
- * viewfinder loses the left and right, which is the upright image already on
15
- * screen. The pixels are not rotated: Android Chrome paints the preview
16
- * upright even when `videoWidth` × `videoHeight` stay landscape.
17
- */
18
- export declare function coverCropRect(frameWidth: number, frameHeight: number, viewportWidth: number, viewportHeight: number): CoverCrop;
19
- /** Long-edge cap of the cover crop. A 9:16 crop of 1920×1080 is already 608×1080. */
20
- export declare function coverAnalysisSize(frameWidth: number, frameHeight: number, viewportWidth: number, viewportHeight: number, maxDimension?: number): {
21
- crop: CoverCrop;
22
- size: {
23
- width: number;
24
- height: number;
25
- };
26
- };
27
- export declare function drawVisibleFrame(source: CanvasImageSource, sourceWidth: number, sourceHeight: number, viewportWidth: number, viewportHeight: number, maxDimension?: number): HTMLCanvasElement;