- Preparing search index...
- The search index is not available
qrcanvas
helpers
: { createCanvas
: ((width
: number, height
: number) => HTMLCanvasElement); drawCanvas
: ((canvas
: HTMLCanvasElement, data
: QRCanvasLayerValue, options
?: DrawCanvasOptions) => HTMLCanvasElement); drawText
: ((text
: string, options
?: QRCanvasDrawTextOptions) => HTMLCanvasElement); getCanvas
: ((width
: number, height
?: number) => HTMLCanvasElement); isCanvas
: ((el
: QRCanvasLayerValue) => boolean); isDrawable
: ((el
: QRCanvasLayerValue) => boolean); updateCanvas
: ((canvas
: HTMLCanvasElement, width
: number, height
?: number) => HTMLCanvasElement) } = ...
Type declaration
-
createCanvas: ((width: number, height: number) => HTMLCanvasElement)
-
- (width: number, height: number): HTMLCanvasElement
-
Parameters
-
width: number
-
height: number
Returns HTMLCanvasElement
-
drawCanvas: ((canvas: HTMLCanvasElement, data: QRCanvasLayerValue, options?: DrawCanvasOptions) => HTMLCanvasElement)
-
drawText: ((text: string, options?: QRCanvasDrawTextOptions) => HTMLCanvasElement)
-
getCanvas: ((width: number, height?: number) => HTMLCanvasElement)
-
- (width: number, height?: number): HTMLCanvasElement
-
Parameters
-
width: number
-
Optional
height: number
Returns HTMLCanvasElement
-
-
-
updateCanvas: ((canvas: HTMLCanvasElement, width: number, height?: number) => HTMLCanvasElement)
-
- (canvas: HTMLCanvasElement, width: number, height?: number): HTMLCanvasElement
-
Parameters
-
canvas: HTMLCanvasElement
-
width: number
-
Optional
height: number
Returns HTMLCanvasElement
Paint to a canvas with given image or colors.