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
startX:number
Mask column where the QR code starts
startY
startY:number
Mask row where the QR code starts
OptionalfitGradient
fitGradient?:boolean
Center the gradient at the mask bounds instead of the QR code (scaled proportionally either way)
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.