2022-02-15 22:10:51 +03:00
|
|
|
#import <HTML/CanvasRenderingContext2D.idl>
|
|
|
|
#import <HTML/HTMLElement.idl>
|
2022-06-04 06:22:42 +03:00
|
|
|
#import <WebGL/WebGLRenderingContext.idl>
|
|
|
|
|
|
|
|
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
|
2022-02-15 22:10:51 +03:00
|
|
|
|
2022-10-08 01:45:09 +03:00
|
|
|
// https://html.spec.whatwg.org/multipage/semantics.html#htmlcanvaselement
|
|
|
|
[Exposed=Window]
|
2020-06-21 16:37:13 +03:00
|
|
|
interface HTMLCanvasElement : HTMLElement {
|
|
|
|
|
2022-06-04 06:22:42 +03:00
|
|
|
RenderingContext? getContext(DOMString contextId, optional any options = null);
|
2021-11-13 02:54:21 +03:00
|
|
|
attribute unsigned long width;
|
|
|
|
attribute unsigned long height;
|
2020-06-21 16:37:13 +03:00
|
|
|
|
2021-04-20 00:47:29 +03:00
|
|
|
USVString toDataURL(optional DOMString type = "image/png", optional double quality);
|
|
|
|
|
2020-12-10 00:26:42 +03:00
|
|
|
};
|