Add barcode-detector-api-polyfill dependency and update environment variable declarations in SvelteKit project
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
import { IDetectedBarcode } from './IDetectedBarcode';
|
||||
export interface IBarcodeDetector {
|
||||
detect(image: ImageBitmapSource): Promise<IDetectedBarcode[]>;
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=IBarcodeDetector.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"IBarcodeDetector.js","sourceRoot":"","sources":["../../../src/models/IBarcodeDetector.ts"],"names":[],"mappings":""}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
export interface ICornerPoint {
|
||||
x: number;
|
||||
y: number;
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=ICornerPoint.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ICornerPoint.js","sourceRoot":"","sources":["../../../src/models/ICornerPoint.ts"],"names":[],"mappings":""}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import { ICornerPoint } from './ICornerPoint';
|
||||
export interface IDetectedBarcode {
|
||||
boundingBox: DOMRectReadOnly;
|
||||
cornerPoints: ICornerPoint[];
|
||||
format: string;
|
||||
rawValue: string;
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=IDetectedBarcode.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"IDetectedBarcode.js","sourceRoot":"","sources":["../../../src/models/IDetectedBarcode.ts"],"names":[],"mappings":""}
|
||||
Generated
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
import { IBarcodeDetector } from './IBarcodeDetector';
|
||||
export type WindowWithBarcodeDetector = Window & typeof globalThis & {
|
||||
BarcodeDetector: {
|
||||
prototype: IBarcodeDetector;
|
||||
new (): IBarcodeDetector;
|
||||
getSupportedFormats(): Promise<string[]>;
|
||||
};
|
||||
};
|
||||
Generated
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=WindowWithBarcodeDetector.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"WindowWithBarcodeDetector.js","sourceRoot":"","sources":["../../../src/models/WindowWithBarcodeDetector.ts"],"names":[],"mappings":""}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
export * from './ICornerPoint';
|
||||
export * from './IDetectedBarcode';
|
||||
export * from './IBarcodeDetector';
|
||||
export * from './WindowWithBarcodeDetector';
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
export * from './ICornerPoint';
|
||||
export * from './IDetectedBarcode';
|
||||
export * from './IBarcodeDetector';
|
||||
export * from './WindowWithBarcodeDetector';
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC"}
|
||||
Reference in New Issue
Block a user