@yudiel/react-qr-scanner
Version:
A library to scan QR codes in React.
19 lines • 933 B
TypeScript
import type { IDetectedBarcode } from '../types';
/**
* Tracker overlay that draws an outline connecting the four corner points
* of every detected barcode.
*/
export declare function outline(detectedCodes: IDetectedBarcode[], ctx: CanvasRenderingContext2D): void;
/**
* Tracker overlay that draws an axis-aligned bounding box around each barcode.
*/
export declare function boundingBox(detectedCodes: IDetectedBarcode[], ctx: CanvasRenderingContext2D): void;
/**
* Tracker overlay that draws the barcode's `rawValue` centered on the detected
* region, with JSON-aware syntax highlighting when the value parses as JSON.
*
* Parsed output is cached per `rawValue` (bounded LRU, 32 entries) so each
* frame only re-runs the JSON parse + regex split when a new value appears.
*/
export declare function centerText(detectedCodes: IDetectedBarcode[], ctx: CanvasRenderingContext2D): void;
//# sourceMappingURL=overlays.d.ts.map