跳到主要内容

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'
rendererId?numberRenderer id

Any

Ƭ Any: any