Skip to main content

bn.createOffscreenCanvas

createOffscreenCanvas(options?): HTMLCanvasElement

Parameters

NameType
options?CreateOffscreenCanvasOptions

Returns

HTMLCanvasElement


CreateOffscreenCanvasOptions#

Ƭ CreateOffscreenCanvasOptions: Object

Type declaration

NameTypeDescription
type?"2d" | "webgl"Type of canvas context, valid values include '2d' and 'webgl'
width?numberWidth of the canvas in pixel
height?numberHeight of the canvas in pixel
compInst?AnyIn custom component, pass current instance 'this'

Any#

Ƭ Any: any