Add barcode-detector-api-polyfill dependency and update environment variable declarations in SvelteKit project
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
import LuminanceSource from '../core/LuminanceSource';
|
||||
/**
|
||||
* @deprecated Moving to @zxing/browser
|
||||
*/
|
||||
export declare class HTMLCanvasElementLuminanceSource extends LuminanceSource {
|
||||
private canvas;
|
||||
private buffer;
|
||||
private static DEGREE_TO_RADIANS;
|
||||
private static FRAME_INDEX;
|
||||
private tempCanvasElement;
|
||||
constructor(canvas: HTMLCanvasElement, doAutoInvert?: boolean);
|
||||
private static makeBufferFromCanvasImageData;
|
||||
private static toGrayscaleBuffer;
|
||||
getRow(y: number, row: Uint8ClampedArray): Uint8ClampedArray;
|
||||
getMatrix(): Uint8ClampedArray;
|
||||
isCropSupported(): boolean;
|
||||
crop(left: number, top: number, width: number, height: number): LuminanceSource;
|
||||
/**
|
||||
* This is always true, since the image is a gray-scale image.
|
||||
*
|
||||
* @return true
|
||||
*/
|
||||
isRotateSupported(): boolean;
|
||||
rotateCounterClockwise(): LuminanceSource;
|
||||
rotateCounterClockwise45(): LuminanceSource;
|
||||
private getTempCanvasElement;
|
||||
private rotate;
|
||||
invert(): LuminanceSource;
|
||||
}
|
||||
Reference in New Issue
Block a user