HTMLCanvasElement$Typings extension
Properties
-
addEventListener
→ ({void Function<K$>(HTMLElementEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
-
Overload accessor: $1, $2
no setter
-
captureStream
↔ MediaStream Function([num?])
-
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})
-
Overload accessor: $1, $2, $3, $4, $5
no setter
-
height
↔ num
-
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})
-
Overload accessor: $1, $2
no setter
-
toBlob
↔ void Function(BlobCallback, [String?, dynamic])
-
getter/setter pair
-
toDataURL
↔ String Function([String?, dynamic])
-
getter/setter pair
-
transferControlToOffscreen
↔ OffscreenCanvas Function()
-
getter/setter pair
-
width
↔ num
-
Gets or sets the width of a canvas element on a document.
getter/setter pair