Hierarchy

Constructors

Properties

bgColor: string
canvas: HTMLCanvasElement
canvasContext: CanvasRenderingContext2D
errorsEnabled: boolean
fgColor: string
image: null | ImageConfigType = null
imageConfig: null | ImageConfigType = null
invert: boolean
level: ErrorCorrectionLevelType
padding: number
qrCodeData: undefined | null | QRCodeDataType
scale: number
size: null | number
typeNumber: number
value: string

Methods

  • Parameters

    • qrCodeCanvasContext: HTMLCanvasElement
    • pixelSize: number

    Returns null | true | Promise<unknown>

  • Parameters

    • imageConfig: ImageConfigType

    Returns null | HTMLCanvasElement | (new (width?, height?) => HTMLImageElement) | Promise<unknown>

  • Parameters

    • canvas: null | HTMLCanvasElement = null

    Returns null | HTMLCanvasElement | Promise<HTMLCanvasElement>

  • Returns null | HTMLCanvasElement | Promise<unknown>

  • Parameters

    • type: string = 'image/png'
    • encoderOptions: number = 0.92

    Returns null | string | Promise<unknown>

Generated using TypeDoc