bn.createOffscreenCanvas
▸ createOffscreenCanvas(options?
): HTMLCanvasElement
Parameters
Name | Type |
---|---|
options? | CreateOffscreenCanvasOptions |
Returns
HTMLCanvasElement
CreateOffscreenCanvasOptions
Ƭ CreateOffscreenCanvasOptions: Object
Type declaration
Name | Type | Description |
---|---|---|
type? | "2d" | "webgl" | Type of canvas context, valid values include '2d' and 'webgl' |
width? | number | Width of the canvas in pixel |
height? | number | Height of the canvas in pixel |
compInst? | Any | In custom component, pass current instance 'this' |
Any
Ƭ Any: any