Options
All
  • Public
  • Public/Protected
  • All
Menu

Module QR

This is the entrypoint of qr.js library

Functions

generate

  • Wrap up all steps for generating the QR code

    Parameters

    • text: string

      The string that should be encoded to QR code

    • options: GeneratorOptions = ...

      Options for how to generate the QR code

    Returns QR

renderOnCanvas

  • renderOnCanvas(code: QR, id: string, options?: RenderOptions): HTMLCanvasElement
  • Render QR code on HTML canvas

    Parameters

    • code: QR

      the QR code

    • id: string

      the id of the canvas element

    • options: RenderOptions = ...

      options for how to render the QR code

    Returns HTMLCanvasElement

Generated using TypeDoc