escpos-ts API - v1.0.0
    Preparing search index...

    Interface QrHelperOptions

    Options controlling the QR code appearance and encoding.

    1.0.0

    interface QrHelperOptions {
        eclevel?: number;
        model?: number;
        size?: number;
    }
    Index

    Properties

    Properties

    eclevel?: number

    Error correction level. Use the QR_ECLEVEL_* constants from ../constants.

    • QR_ECLEVEL_L = 0 — roughly 7 % correction (default)
    • QR_ECLEVEL_M = 1 — roughly 15 % correction
    • QR_ECLEVEL_Q = 2 — roughly 25 % correction
    • QR_ECLEVEL_H = 3 — roughly 30 % correction
    model?: number

    QR model constant. Use the QR_MODEL_* constants from ../constants.

    • QR_MODEL_1 = 1
    • QR_MODEL_2 = 2 (default; most widely supported)
    • QR_MICRO = 3
    size?: number

    Module size (pixel width per cell), 1–16. Defaults to 3.