UNPKG

custom-qrcode-browser

Version:

[![Continuous Integrations](https://github.com/CyrilDesch/custom-qrcode-browser/actions/workflows/continuous-integrations.yaml/badge.svg?branch=main)](https://github.com/CyrilDesch/custom-qrcode-browser/actions/workflows/continuous-integrations.yaml) [![L

16 lines (15 loc) 480 B
import type { QrCodedText } from "./QrCodedText"; export declare enum PixelType { DarkPixel = "DarkPixel", Background = "Background" } export declare class QrCodeMatrix { private matrix; size: number; origin: number; constructor(size: number); get(i: number, j: number): PixelType; set(i: number, j: number, type: PixelType): void; isOutOfBounds(i: number, j: number): boolean; static fromQrMatrix(byteMatrix: QrCodedText): QrCodeMatrix; }