StaticdataThe data codewords a version holds at a level.
1 to 40
the level's table row
the count
StaticdivisorThe Reed-Solomon generator polynomial of a degree, highest term implied.
the error correction codewords per block
its coefficients
StaticmatrixEncodes text as a QR code, in byte mode, in the smallest version that holds it at the level.
what the code says
Optionallevel: string
L, M (the default), Q or H
Optionalmask: number
a mask to force (0 to 7), or none to choose by penalty
the matrix
StaticmultiplyGF(2^8) multiplication modulo x^8 + x^4 + x^3 + x^2 + 1.
a byte
a byte
their product
StaticrawThe modules a version holds that are not function patterns.
1 to 40
the count, in bits
StaticremainderA block's error correction codewords.
the block's data codewords
the generator
the remainder
StaticsvgA QR code as an inline SVG, with the four-module quiet zone the standard asks for.
what the code says
Optionaloptions: { id?: string; label?: string; pixels?: number }
pixels (the drawn width, 240 by default), id,
label (its accessible name)
the SVG markup
Staticutf8Text as UTF-8 bytes, which is what byte mode carries.
the text
the bytes
QR codes for the portal. A static utility class; it holds no state.