Kaizen
Browse modulesQR codeqr-code/sharedInterfaces

Interface: QrCodeMatrix

Defined in: shared/qr-code/encode.ts:17

A finished QR symbol as a grid of modules. Row-major: modules[y][x], true for a dark module. The grid includes the quiet zone, so it can be painted verbatim without the caller re-deriving the margin.

Properties

errorCorrectionLevel

readonly errorCorrectionLevel: "L" | "M" | "Q" | "H";

Defined in: shared/qr-code/encode.ts:25


moduleCount

readonly moduleCount: number;

Defined in: shared/qr-code/encode.ts:22

Symbol width in modules, quiet zone excluded (17 + 4 × version).


modules

readonly modules: readonly readonly boolean[][];

Defined in: shared/qr-code/encode.ts:18


quietZone

readonly quietZone: number;

Defined in: shared/qr-code/encode.ts:26


size

readonly size: number;

Defined in: shared/qr-code/encode.ts:20

Grid width and height in modules, quiet zone included.


version

readonly version: number;

Defined in: shared/qr-code/encode.ts:24

QR version 1–40.

On this page