Optional backgroundOptional canvasThe final image will be painted to canvas if provided.
Optional cellThe pixel width or height of a cell. Default value is used only if neither cellSize nor size is provided. Default as 2.
Optional correctThe correct level of QRCode. When logo is assigned, correctLevel will be set to H.
Optional dataThe data to be encoded in the QRCode, text will be encoded in UTF-8. Default as ''.
Optional effectOptional foregroundThe foreground color or image of the QRCode. Default as 'black'.
Optional logoAdd a logo in the middle of the QRCode.
Optional paddingPadding space around the QRCode. Default as 0.
Optional resizeWhether to resize the canvas to size of QRCode on render
Optional sizeThe pixel width or height of the entire image, ignored if cellSize is specified. Default as undefined.
Optional typeThe type number of the QRCode. If too small to contain the data, the smallest valid type number will be used instead.
Default as 0.
Generated using TypeDoc
The background color or image of the QRCode. Default as
'white'.