Restore WebGLRenderingContextBase#canvas (#1051)
* Restore WebGLRenderingContextBase#canvas Closes #1050. * feedback
This commit is contained in:
Родитель
b5f95cd93a
Коммит
18c98d8571
|
@ -16482,6 +16482,7 @@ declare var WebGLRenderingContext: {
|
|||
};
|
||||
|
||||
interface WebGLRenderingContextBase {
|
||||
readonly canvas: HTMLCanvasElement;
|
||||
readonly drawingBufferHeight: GLsizei;
|
||||
readonly drawingBufferWidth: GLsizei;
|
||||
activeTexture(texture: GLenum): void;
|
||||
|
|
|
@ -179,6 +179,20 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"WebGLRenderingContextBase": {
|
||||
"properties": {
|
||||
"property": {
|
||||
"canvas": {
|
||||
"exposed": "Window",
|
||||
|
||||
// https://github.com/KhronosGroup/WebGL/pull/3296 will make these redundant
|
||||
"name": "canvas",
|
||||
"type": "HTMLCanvasElement",
|
||||
"readonly": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"WindowEventHandlers": {
|
||||
"events": {
|
||||
"event": [
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
"WebGLRenderingContextBase": {
|
||||
"properties": {
|
||||
"namesakes": {
|
||||
// https://github.com/KhronosGroup/WebGL/pull/3296 will make this redundant
|
||||
"canvas": null
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче