abstract member height: float with get, set
abstract member width: float with get, set
abstract member captureStream (?frameRequestRate: float) : MediaStream
abstract member getContext (contextId: string, ?options: obj) : RenderingContext option
abstract member getContext2d (?options: CanvasRenderingContext2DSettings) : CanvasRenderingContext2D option
abstract member getContextBitmaprenderer (?options: ImageBitmapRenderingContextSettings) : ImageBitmapRenderingContext option
abstract member getContextWebgl (?options: WebGLContextAttributes) : WebGLRenderingContext option
abstract member getContextWebgl2 (?options: WebGLContextAttributes) : WebGL2RenderingContext option
abstract member getContextWebgpu () : GPUCanvasContext option
abstract member toBlob (callback: BlobCallback, ?type: string, ?quality: float) : unit
abstract member toDataURL (?type: string, ?quality: float) : string
abstract member transferControlToOffscreen () : OffscreenCanvas