@liquid-js/qr-code-styling
    Preparing search index...

    Interface AppliedMask

    Mask applied to the QR code, with its rendering data

    interface AppliedMask {
        mask: boolean[][];
        startX: number;
        startY: number;
        fitGradient?: boolean;
        count: number;
        dotSize: number;
        x: number;
        y: number;
    }

    Hierarchy (View Summary)

    Index
    mask: boolean[][]

    Matrix indexed as mask[x][y]; false hides the segment at [x, y]

    The QR code occupies [startX, startX + count) × [startY, startY + count), with count as passed to Plugin.applyMask; it must lie inside the mask with the requested padding and its corners visible, or an error is thrown. Remaining segments are filled pseudo-randomly.

    With a mask, the shape is square and the QR code is drawn from [0, 0], with extra segments outside the viewBox. Options that extend the image size are ignored, except the image margin in ImageMode.background.

    startX: number

    Mask column where the QR code starts

    startY: number

    Mask row where the QR code starts

    fitGradient?: boolean

    Center the gradient at the mask bounds instead of the QR code (scaled proportionally either way)

    false
    
    count: number

    QR code size in segments

    dotSize: number

    Segment size

    x: number

    Position of the mask's [0, 0] segment within the SVG

    y: number