Browse Source

Fixed annoying typings issue with webgl2

David Catuhe 8 năm trước cách đây
mục cha
commit
a1d522ee82
3 tập tin đã thay đổi với 12882 bổ sung12892 xóa
  1. 6441 6444
      dist/preview release/babylon.d.ts
  2. 6441 6444
      dist/preview release/babylon.module.d.ts
  3. 0 4
      src/babylon.webgl2.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 6441 - 6444
dist/preview release/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 6441 - 6444
dist/preview release/babylon.module.d.ts


+ 0 - 4
src/babylon.webgl2.ts

@@ -3,10 +3,6 @@
 // Definitions by: Nico Kemnitz <https://github.com/nkemnitz/>
 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
 
-interface HTMLCanvasElement extends HTMLElement {
-    getContext(contextId: "webgl2" | "experimental-webgl2", contextAttributes?: WebGLContextAttributes): WebGL2RenderingContext | null;
-}
-
 interface ImageBitmap {
     readonly width: number;
     readonly height: number;