Options
All
  • Public
  • Public/Protected
  • All
Menu

QR code's renderer, which relies on canvas, is used for the boolean matrix provided by creator.

You can design your own renderer to render the boolean matrix provided by creator.

export

Hierarchy

  • Renderer

Index

Constructors

Methods

Constructors

constructor

Methods

drawCanvas

  • drawCanvas(matrix: QRMatrix, canvas?: HTMLCanvasElement): HTMLCanvasElement
  • Draw QR code on canvas.

    If canvas are not provided, one will be created automatically.

    Parameters

    • matrix: QRMatrix
    • Optional canvas: HTMLCanvasElement

    Returns HTMLCanvasElement

updateOptions

Generated using TypeDoc