blob: 90df720626b3de3c5a745467023714664afd0987 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#import <HTML/CanvasRenderingContext2D.idl>
#import <HTML/HTMLElement.idl>
#import <WebGL/WebGLRenderingContext.idl>
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
// https://html.spec.whatwg.org/multipage/semantics.html#htmlcanvaselement
[Exposed=Window]
interface HTMLCanvasElement : HTMLElement {
[HTMLConstructor] constructor();
RenderingContext? getContext(DOMString contextId, optional any options = null);
[CEReactions] attribute unsigned long width;
[CEReactions] attribute unsigned long height;
USVString toDataURL(optional DOMString type = "image/png", optional double quality);
};
|