HTMLCanvasElement$Typings extension

on

Properties

addEventListener → ({void Function<K$>(HTMLElementEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on HTMLCanvasElement, provided by the HTMLCanvasElement$Typings extension

Overload accessor: $1, $2
no setter
captureStream MediaStream Function([num?])

Available on HTMLCanvasElement, provided by the HTMLCanvasElement$Typings extension

getter/setter pair
getContext → ({CanvasRenderingContext2D? Function(String contextId, [CanvasRenderingContext2DSettings? options]) $1, ImageBitmapRenderingContext? Function(String contextId, [ImageBitmapRenderingContextSettings? options]) $2, WebGLRenderingContext? Function(String contextId, [WebGLContextAttributes? options]) $3, WebGL2RenderingContext? Function(String contextId, [WebGLContextAttributes? options]) $4, Object? Function(String contextId, [dynamic options]) $5})

Available on HTMLCanvasElement, provided by the HTMLCanvasElement$Typings extension

Overload accessor: $1, $2, $3, $4, $5
no setter
height num

Available on HTMLCanvasElement, provided by the HTMLCanvasElement$Typings extension

Gets or sets the height of a canvas element on a document.
getter/setter pair
removeEventListener → ({void Function<K$>(HTMLElementEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on HTMLCanvasElement, provided by the HTMLCanvasElement$Typings extension

Overload accessor: $1, $2
no setter
toBlob ↔ void Function(BlobCallback, [String?, dynamic])

Available on HTMLCanvasElement, provided by the HTMLCanvasElement$Typings extension

getter/setter pair
toDataURL String Function([String?, dynamic])

Available on HTMLCanvasElement, provided by the HTMLCanvasElement$Typings extension

getter/setter pair
transferControlToOffscreen OffscreenCanvas Function()

Available on HTMLCanvasElement, provided by the HTMLCanvasElement$Typings extension

getter/setter pair
width num

Available on HTMLCanvasElement, provided by the HTMLCanvasElement$Typings extension

Gets or sets the width of a canvas element on a document.
getter/setter pair