@nativescript/canvas 2.0.0-alpha.9 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (542) hide show
  1. package/Canvas/common.d.ts +213 -25
  2. package/Canvas/common.js +705 -452
  3. package/Canvas/common.js.map +1 -1
  4. package/Canvas/index.android.d.ts +10 -1
  5. package/Canvas/index.android.js +155 -52
  6. package/Canvas/index.android.js.map +1 -1
  7. package/Canvas/index.d.ts +8 -0
  8. package/Canvas/index.ios.d.ts +7 -4
  9. package/Canvas/index.ios.js +159 -106
  10. package/Canvas/index.ios.js.map +1 -1
  11. package/Canvas2D/CanvasGradient/index.d.ts +1 -3
  12. package/Canvas2D/CanvasGradient/index.js +1 -10
  13. package/Canvas2D/CanvasGradient/index.js.map +1 -1
  14. package/Canvas2D/CanvasPattern/index.d.ts +1 -3
  15. package/Canvas2D/CanvasPattern/index.js +1 -10
  16. package/Canvas2D/CanvasPattern/index.js.map +1 -1
  17. package/Canvas2D/CanvasRenderingContext2D/index.d.ts +9 -5
  18. package/Canvas2D/CanvasRenderingContext2D/index.js +174 -245
  19. package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
  20. package/Canvas2D/DOMMatrix/index.js +3 -3
  21. package/Canvas2D/DOMMatrix/index.js.map +1 -1
  22. package/Canvas2D/ImageData/index.js +6 -6
  23. package/Canvas2D/ImageData/index.js.map +1 -1
  24. package/Canvas2D/Path2D/index.d.ts +0 -2
  25. package/Canvas2D/Path2D/index.js +32 -42
  26. package/Canvas2D/Path2D/index.js.map +1 -1
  27. package/Dom/Paint.js +2 -3
  28. package/Dom/Paint.js.map +1 -1
  29. package/Dom/shapes/Circle.js +1 -2
  30. package/Dom/shapes/Circle.js.map +1 -1
  31. package/Dom/shapes/Points.js +1 -2
  32. package/Dom/shapes/Points.js.map +1 -1
  33. package/ImageAsset/index.d.ts +2 -2
  34. package/ImageAsset/index.js +33 -37
  35. package/ImageAsset/index.js.map +1 -1
  36. package/ImageBitmap/index.d.ts +0 -2
  37. package/ImageBitmap/index.js +47 -33
  38. package/ImageBitmap/index.js.map +1 -1
  39. package/LICENSE +201 -0
  40. package/SVG/SVG.js +1 -1
  41. package/SVG/SVG.js.map +1 -1
  42. package/TextDecoder/index.d.ts +0 -2
  43. package/TextDecoder/index.js +3 -12
  44. package/TextDecoder/index.js.map +1 -1
  45. package/TextEncoder/index.d.ts +0 -2
  46. package/TextEncoder/index.js +4 -13
  47. package/TextEncoder/index.js.map +1 -1
  48. package/WebGL/WebGLExtensions/index.d.ts +4 -12
  49. package/WebGL/WebGLExtensions/index.js +27 -77
  50. package/WebGL/WebGLExtensions/index.js.map +1 -1
  51. package/WebGL/WebGLProgram.d.ts +0 -1
  52. package/WebGL/WebGLProgram.js +0 -3
  53. package/WebGL/WebGLProgram.js.map +1 -1
  54. package/WebGL/WebGLRenderingContext/common.d.ts +1 -3
  55. package/WebGL/WebGLRenderingContext/common.js +3 -13
  56. package/WebGL/WebGLRenderingContext/common.js.map +1 -1
  57. package/WebGL/WebGLRenderingContext/index.d.ts +19 -17
  58. package/WebGL/WebGLRenderingContext/index.js +354 -728
  59. package/WebGL/WebGLRenderingContext/index.js.map +1 -1
  60. package/WebGL2/WebGL2RenderingContext/common.d.ts +2 -2
  61. package/WebGL2/WebGL2RenderingContext/common.js +2 -2
  62. package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
  63. package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
  64. package/WebGL2/WebGL2RenderingContext/index.js +116 -285
  65. package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
  66. package/angular/esm2020/index.mjs +4 -4
  67. package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
  68. package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
  69. package/angular/package.json +2 -2
  70. package/index.js.map +1 -1
  71. package/package.json +3 -2
  72. package/platforms/android/canvas-release.aar +0 -0
  73. package/platforms/android/include.gradle +15 -0
  74. package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
  75. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  76. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +132 -68
  77. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
  78. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +144 -0
  79. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2808 -68
  80. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
  81. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  82. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +5847 -2633
  83. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +43 -25
  84. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  85. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +43 -25
  86. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  87. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  88. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +264 -136
  89. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
  90. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +144 -0
  91. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2808 -68
  92. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
  93. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  94. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  95. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +5847 -2633
  96. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +43 -25
  97. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  98. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +43 -25
  99. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5847 -2633
  100. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +43 -25
  101. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  102. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +43 -25
  103. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
  104. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  105. package/platforms/ios/Podfile +5 -2
  106. package/platforms/ios/build.xcconfig +3 -3
  107. package/platforms/ios/src/CanvasModule.h +0 -2
  108. package/platforms/ios/src/CanvasModule.mm +4 -4
  109. package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
  110. package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
  111. package/platforms/ios/src/cpp/Caches.cpp +35 -0
  112. package/platforms/ios/src/cpp/Caches.h +190 -0
  113. package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1593 -0
  114. package/platforms/ios/src/cpp/CanvasJSIModule.h +16 -34
  115. package/platforms/ios/src/cpp/Common.h +30 -0
  116. package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
  117. package/platforms/ios/src/cpp/Helpers.h +336 -38
  118. package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
  119. package/platforms/ios/src/cpp/ImageAssetImpl.h +46 -12
  120. package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
  121. package/platforms/ios/src/cpp/ImageBitmapImpl.h +42 -16
  122. package/platforms/ios/src/cpp/JSICallback.h +83 -5
  123. package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
  124. package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
  125. package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
  126. package/platforms/ios/src/cpp/ObjectWrapperImpl.h +31 -0
  127. package/platforms/ios/src/cpp/OneByteStringResource.cpp +55 -0
  128. package/platforms/ios/src/cpp/OneByteStringResource.h +36 -0
  129. package/platforms/ios/src/cpp/PerIsolateData.cpp +49 -0
  130. package/platforms/ios/src/cpp/PerIsolateData.h +54 -0
  131. package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
  132. package/platforms/ios/src/cpp/RafImpl.h +11 -8
  133. package/platforms/ios/src/cpp/TextDecoderImpl.cpp +193 -0
  134. package/platforms/ios/src/cpp/TextDecoderImpl.h +23 -13
  135. package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
  136. package/platforms/ios/src/cpp/TextEncoderImpl.h +21 -12
  137. package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
  138. package/platforms/ios/src/cpp/URLImpl.h +121 -0
  139. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
  140. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +29 -13
  141. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
  142. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +49 -12
  143. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2809 -0
  144. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1331 -21
  145. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +207 -0
  146. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +27 -13
  147. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +807 -0
  148. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +173 -13
  149. package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +499 -0
  150. package/platforms/ios/src/cpp/canvas2d/Path2D.h +422 -12
  151. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
  152. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +51 -12
  153. package/platforms/ios/src/cpp/gl.h +57 -7
  154. package/platforms/ios/src/cpp/gl3stub.c +425 -0
  155. package/platforms/ios/src/cpp/gl3stub.h +665 -0
  156. package/platforms/ios/src/cpp/gles3jni.h +37 -0
  157. package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
  158. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
  159. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
  160. package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +42 -7
  161. package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +47 -11
  162. package/platforms/ios/src/cpp/webgl/WebGLProgram.h +41 -6
  163. package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +41 -7
  164. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6845 -0
  165. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +3217 -388
  166. package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +18 -17
  167. package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +16 -36
  168. package/platforms/ios/src/cpp/webgl/WebGLShader.h +41 -7
  169. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
  170. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +67 -12
  171. package/platforms/ios/src/cpp/webgl/WebGLTexture.h +41 -7
  172. package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +45 -9
  173. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +136 -0
  174. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +88 -12
  175. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
  176. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +26 -6
  177. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
  178. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +26 -6
  179. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
  180. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
  181. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
  182. package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
  183. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
  184. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
  185. package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +41 -16
  186. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
  187. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +39 -16
  188. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
  189. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +42 -6
  190. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
  191. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +110 -0
  192. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +149 -14
  193. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
  194. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
  195. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
  196. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
  197. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
  198. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
  199. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
  200. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
  201. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +38 -0
  202. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +157 -14
  203. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
  204. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -13
  205. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4564 -0
  206. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1790 -342
  207. package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +41 -4
  208. package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
  209. package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +45 -11
  210. package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +43 -4
  211. package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +44 -4
  212. package/platforms/ios/src/module.modulemap +1 -0
  213. package/{pods → src-native/ios}/NativeScript.podspec +12 -25
  214. package/typings/objc!CanvasNative.d.ts +2038 -0
  215. package/typings/objc!CanvasNative.js +1 -0
  216. package/typings/objc!CanvasNative.js.map +1 -0
  217. package/utils.d.ts +3 -1
  218. package/utils.js +7 -20
  219. package/utils.js.map +1 -1
  220. package/angular/nativescript-canvas-angular.d.ts +0 -5
  221. package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
  222. package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
  223. package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
  224. package/platforms/ios/src/cpp/RafImpl.mm +0 -10
  225. package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
  226. package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
  227. package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -46
  228. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6156
  229. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2867
  230. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
  231. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
  232. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1972
  233. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
  234. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
  235. package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
  236. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
  237. package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
  238. package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
  239. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
  240. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5958
  241. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
  242. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
  243. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
  244. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
  245. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
  246. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
  247. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
  248. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
  249. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
  250. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
  251. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
  252. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
  253. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
  254. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
  255. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
  256. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
  257. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
  258. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
  259. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
  260. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
  261. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
  262. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4543
  263. package/pods/Headers/jsi/decorator.h +0 -770
  264. package/pods/Headers/jsi/instrumentation.h +0 -117
  265. package/pods/Headers/jsi/jsi-inl.h +0 -338
  266. package/pods/Headers/jsi/jsi.h +0 -1571
  267. package/pods/Headers/jsi/jsilib.h +0 -59
  268. package/pods/Headers/jsi/threadsafe.h +0 -79
  269. package/pods/Headers/v8runtime/HostProxy.h +0 -71
  270. package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
  271. package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
  272. package/pods/Headers/v8runtime/V8Runtime.h +0 -240
  273. package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
  274. package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
  275. /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
  276. /package/{pods → src-native/ios}/Headers/include/APIDesign.md +0 -0
  277. /package/{pods → src-native/ios}/Headers/include/DEPS +0 -0
  278. /package/{pods → src-native/ios}/Headers/include/DIR_METADATA +0 -0
  279. /package/{pods → src-native/ios}/Headers/include/OWNERS +0 -0
  280. /package/{pods → src-native/ios}/Headers/include/cppgc/DEPS +0 -0
  281. /package/{pods → src-native/ios}/Headers/include/cppgc/OWNERS +0 -0
  282. /package/{pods → src-native/ios}/Headers/include/cppgc/README.md +0 -0
  283. /package/{pods → src-native/ios}/Headers/include/cppgc/allocation.h +0 -0
  284. /package/{pods → src-native/ios}/Headers/include/cppgc/common.h +0 -0
  285. /package/{pods → src-native/ios}/Headers/include/cppgc/cross-thread-persistent.h +0 -0
  286. /package/{pods → src-native/ios}/Headers/include/cppgc/custom-space.h +0 -0
  287. /package/{pods → src-native/ios}/Headers/include/cppgc/default-platform.h +0 -0
  288. /package/{pods → src-native/ios}/Headers/include/cppgc/ephemeron-pair.h +0 -0
  289. /package/{pods → src-native/ios}/Headers/include/cppgc/explicit-management.h +0 -0
  290. /package/{pods → src-native/ios}/Headers/include/cppgc/garbage-collected.h +0 -0
  291. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-consistency.h +0 -0
  292. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-state.h +0 -0
  293. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-statistics.h +0 -0
  294. /package/{pods → src-native/ios}/Headers/include/cppgc/heap.h +0 -0
  295. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/api-constants.h +0 -0
  296. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -0
  297. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -0
  298. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/compiler-specific.h +0 -0
  299. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/finalizer-trait.h +0 -0
  300. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/gc-info.h +0 -0
  301. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/logging.h +0 -0
  302. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/name-trait.h +0 -0
  303. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/persistent-node.h +0 -0
  304. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/pointer-policies.h +0 -0
  305. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/write-barrier.h +0 -0
  306. /package/{pods → src-native/ios}/Headers/include/cppgc/liveness-broker.h +0 -0
  307. /package/{pods → src-native/ios}/Headers/include/cppgc/macros.h +0 -0
  308. /package/{pods → src-native/ios}/Headers/include/cppgc/member.h +0 -0
  309. /package/{pods → src-native/ios}/Headers/include/cppgc/name-provider.h +0 -0
  310. /package/{pods → src-native/ios}/Headers/include/cppgc/object-size-trait.h +0 -0
  311. /package/{pods → src-native/ios}/Headers/include/cppgc/persistent.h +0 -0
  312. /package/{pods → src-native/ios}/Headers/include/cppgc/platform.h +0 -0
  313. /package/{pods → src-native/ios}/Headers/include/cppgc/prefinalizer.h +0 -0
  314. /package/{pods → src-native/ios}/Headers/include/cppgc/process-heap-statistics.h +0 -0
  315. /package/{pods → src-native/ios}/Headers/include/cppgc/sentinel-pointer.h +0 -0
  316. /package/{pods → src-native/ios}/Headers/include/cppgc/source-location.h +0 -0
  317. /package/{pods → src-native/ios}/Headers/include/cppgc/testing.h +0 -0
  318. /package/{pods → src-native/ios}/Headers/include/cppgc/trace-trait.h +0 -0
  319. /package/{pods → src-native/ios}/Headers/include/cppgc/type-traits.h +0 -0
  320. /package/{pods → src-native/ios}/Headers/include/cppgc/visitor.h +0 -0
  321. /package/{pods → src-native/ios}/Headers/include/js_protocol-1.2.json +0 -0
  322. /package/{pods → src-native/ios}/Headers/include/js_protocol-1.3.json +0 -0
  323. /package/{pods → src-native/ios}/Headers/include/js_protocol.pdl +0 -0
  324. /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffi.h +0 -0
  325. /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffitarget.h +0 -0
  326. /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffi.h +0 -0
  327. /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffitarget.h +0 -0
  328. /package/{pods → src-native/ios}/Headers/include/libffi.h +0 -0
  329. /package/{pods → src-native/ios}/Headers/include/libplatform/DEPS +0 -0
  330. /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform-export.h +0 -0
  331. /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform.h +0 -0
  332. /package/{pods → src-native/ios}/Headers/include/libplatform/v8-tracing.h +0 -0
  333. /package/{pods → src-native/ios}/Headers/include/v8-array-buffer.h +0 -0
  334. /package/{pods → src-native/ios}/Headers/include/v8-callbacks.h +0 -0
  335. /package/{pods → src-native/ios}/Headers/include/v8-container.h +0 -0
  336. /package/{pods → src-native/ios}/Headers/include/v8-context.h +0 -0
  337. /package/{pods → src-native/ios}/Headers/include/v8-cppgc.h +0 -0
  338. /package/{pods → src-native/ios}/Headers/include/v8-data.h +0 -0
  339. /package/{pods → src-native/ios}/Headers/include/v8-date.h +0 -0
  340. /package/{pods → src-native/ios}/Headers/include/v8-debug.h +0 -0
  341. /package/{pods → src-native/ios}/Headers/include/v8-embedder-heap.h +0 -0
  342. /package/{pods → src-native/ios}/Headers/include/v8-embedder-state-scope.h +0 -0
  343. /package/{pods → src-native/ios}/Headers/include/v8-exception.h +0 -0
  344. /package/{pods → src-native/ios}/Headers/include/v8-extension.h +0 -0
  345. /package/{pods → src-native/ios}/Headers/include/v8-external.h +0 -0
  346. /package/{pods → src-native/ios}/Headers/include/v8-fast-api-calls.h +0 -0
  347. /package/{pods → src-native/ios}/Headers/include/v8-forward.h +0 -0
  348. /package/{pods → src-native/ios}/Headers/include/v8-function-callback.h +0 -0
  349. /package/{pods → src-native/ios}/Headers/include/v8-function.h +0 -0
  350. /package/{pods → src-native/ios}/Headers/include/v8-initialization.h +0 -0
  351. /package/{pods → src-native/ios}/Headers/include/v8-inspector-protocol.h +0 -0
  352. /package/{pods → src-native/ios}/Headers/include/v8-inspector.h +0 -0
  353. /package/{pods → src-native/ios}/Headers/include/v8-internal.h +0 -0
  354. /package/{pods → src-native/ios}/Headers/include/v8-isolate.h +0 -0
  355. /package/{pods → src-native/ios}/Headers/include/v8-json.h +0 -0
  356. /package/{pods → src-native/ios}/Headers/include/v8-local-handle.h +0 -0
  357. /package/{pods → src-native/ios}/Headers/include/v8-locker.h +0 -0
  358. /package/{pods → src-native/ios}/Headers/include/v8-maybe.h +0 -0
  359. /package/{pods → src-native/ios}/Headers/include/v8-memory-span.h +0 -0
  360. /package/{pods → src-native/ios}/Headers/include/v8-message.h +0 -0
  361. /package/{pods → src-native/ios}/Headers/include/v8-metrics.h +0 -0
  362. /package/{pods → src-native/ios}/Headers/include/v8-microtask-queue.h +0 -0
  363. /package/{pods → src-native/ios}/Headers/include/v8-microtask.h +0 -0
  364. /package/{pods → src-native/ios}/Headers/include/v8-object.h +0 -0
  365. /package/{pods → src-native/ios}/Headers/include/v8-persistent-handle.h +0 -0
  366. /package/{pods → src-native/ios}/Headers/include/v8-platform.h +0 -0
  367. /package/{pods → src-native/ios}/Headers/include/v8-primitive-object.h +0 -0
  368. /package/{pods → src-native/ios}/Headers/include/v8-primitive.h +0 -0
  369. /package/{pods → src-native/ios}/Headers/include/v8-profiler.h +0 -0
  370. /package/{pods → src-native/ios}/Headers/include/v8-promise.h +0 -0
  371. /package/{pods → src-native/ios}/Headers/include/v8-proxy.h +0 -0
  372. /package/{pods → src-native/ios}/Headers/include/v8-regexp.h +0 -0
  373. /package/{pods → src-native/ios}/Headers/include/v8-script.h +0 -0
  374. /package/{pods → src-native/ios}/Headers/include/v8-snapshot.h +0 -0
  375. /package/{pods → src-native/ios}/Headers/include/v8-statistics.h +0 -0
  376. /package/{pods → src-native/ios}/Headers/include/v8-template.h +0 -0
  377. /package/{pods → src-native/ios}/Headers/include/v8-traced-handle.h +0 -0
  378. /package/{pods → src-native/ios}/Headers/include/v8-typed-array.h +0 -0
  379. /package/{pods → src-native/ios}/Headers/include/v8-unwinder-state.h +0 -0
  380. /package/{pods → src-native/ios}/Headers/include/v8-unwinder.h +0 -0
  381. /package/{pods → src-native/ios}/Headers/include/v8-util.h +0 -0
  382. /package/{pods → src-native/ios}/Headers/include/v8-value-serializer-version.h +0 -0
  383. /package/{pods → src-native/ios}/Headers/include/v8-value-serializer.h +0 -0
  384. /package/{pods → src-native/ios}/Headers/include/v8-value.h +0 -0
  385. /package/{pods → src-native/ios}/Headers/include/v8-version-string.h +0 -0
  386. /package/{pods → src-native/ios}/Headers/include/v8-version.h +0 -0
  387. /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-posix.h +0 -0
  388. /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-win.h +0 -0
  389. /package/{pods → src-native/ios}/Headers/include/v8-wasm.h +0 -0
  390. /package/{pods → src-native/ios}/Headers/include/v8-weak-callback-info.h +0 -0
  391. /package/{pods → src-native/ios}/Headers/include/v8.h +0 -0
  392. /package/{pods → src-native/ios}/Headers/include/v8config.h +0 -0
  393. /package/{pods → src-native/ios}/Headers/inspector/InspectorServer.h +0 -0
  394. /package/{pods → src-native/ios}/Headers/inspector/JsV8InspectorClient.h +0 -0
  395. /package/{pods → src-native/ios}/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -0
  396. /package/{pods → src-native/ios}/Headers/inspector/base64.h +0 -0
  397. /package/{pods → src-native/ios}/Headers/inspector/src/base/address-region.h +0 -0
  398. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomic-utils.h +0 -0
  399. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops.h +0 -0
  400. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -0
  401. /package/{pods → src-native/ios}/Headers/inspector/src/base/base-export.h +0 -0
  402. /package/{pods → src-native/ios}/Headers/inspector/src/base/bits.h +0 -0
  403. /package/{pods → src-native/ios}/Headers/inspector/src/base/build_config.h +0 -0
  404. /package/{pods → src-native/ios}/Headers/inspector/src/base/compiler-specific.h +0 -0
  405. /package/{pods → src-native/ios}/Headers/inspector/src/base/export-template.h +0 -0
  406. /package/{pods → src-native/ios}/Headers/inspector/src/base/flags.h +0 -0
  407. /package/{pods → src-native/ios}/Headers/inspector/src/base/immediate-crash.h +0 -0
  408. /package/{pods → src-native/ios}/Headers/inspector/src/base/lazy-instance.h +0 -0
  409. /package/{pods → src-native/ios}/Headers/inspector/src/base/logging.h +0 -0
  410. /package/{pods → src-native/ios}/Headers/inspector/src/base/macros.h +0 -0
  411. /package/{pods → src-native/ios}/Headers/inspector/src/base/memory.h +0 -0
  412. /package/{pods → src-native/ios}/Headers/inspector/src/base/once.h +0 -0
  413. /package/{pods → src-native/ios}/Headers/inspector/src/base/optional.h +0 -0
  414. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/mutex.h +0 -0
  415. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/platform.h +0 -0
  416. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/semaphore.h +0 -0
  417. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/v8-time.h +0 -0
  418. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/wrappers.h +0 -0
  419. /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions.h +0 -0
  420. /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions_impl.h +0 -0
  421. /package/{pods → src-native/ios}/Headers/inspector/src/base/template-utils.h +0 -0
  422. /package/{pods → src-native/ios}/Headers/inspector/src/base/v8-fallthrough.h +0 -0
  423. /package/{pods → src-native/ios}/Headers/inspector/src/common/checks.h +0 -0
  424. /package/{pods → src-native/ios}/Headers/inspector/src/common/globals.h +0 -0
  425. /package/{pods → src-native/ios}/Headers/inspector/src/debug/debug-interface.h +0 -0
  426. /package/{pods → src-native/ios}/Headers/inspector/src/debug/interface-types.h +0 -0
  427. /package/{pods → src-native/ios}/Headers/inspector/src/init/v8.h +0 -0
  428. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/custom-preview.h +0 -0
  429. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/injected-script.h +0 -0
  430. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/inspected-context.h +0 -0
  431. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/CSS.h +0 -0
  432. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Console.h +0 -0
  433. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/DOM.h +0 -0
  434. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Debugger.h +0 -0
  435. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Forward.h +0 -0
  436. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -0
  437. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Log.h +0 -0
  438. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Network.h +0 -0
  439. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Overlay.h +0 -0
  440. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Page.h +0 -0
  441. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Profiler.h +0 -0
  442. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Protocol.h +0 -0
  443. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Runtime.h +0 -0
  444. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Schema.h +0 -0
  445. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Security.h +0 -0
  446. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/remote-object-id.h +0 -0
  447. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/search-util.h +0 -0
  448. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-16.h +0 -0
  449. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-util.h +0 -0
  450. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -0
  451. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-message.h +0 -0
  452. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console.h +0 -0
  453. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -0
  454. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -0
  455. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-id.h +0 -0
  456. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-script.h +0 -0
  457. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger.h +0 -0
  458. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -0
  459. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -0
  460. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -0
  461. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -0
  462. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -0
  463. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -0
  464. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -0
  465. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -0
  466. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -0
  467. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -0
  468. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-regex.h +0 -0
  469. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -0
  470. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -0
  471. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -0
  472. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-string-conversions.h +0 -0
  473. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-value-utils.h +0 -0
  474. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/value-mirror.h +0 -0
  475. /package/{pods → src-native/ios}/Headers/inspector/src/libplatform/default-platform.h +0 -0
  476. /package/{pods → src-native/ios}/Headers/inspector/src/logging/tracing-flags.h +0 -0
  477. /package/{pods → src-native/ios}/Headers/inspector/src/numbers/conversions.h +0 -0
  478. /package/{pods → src-native/ios}/Headers/inspector/src/tracing/trace-event.h +0 -0
  479. /package/{pods → src-native/ios}/Headers/inspector/src/utils/allocation.h +0 -0
  480. /package/{pods → src-native/ios}/Headers/inspector/src/utils/vector.h +0 -0
  481. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -0
  482. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -0
  483. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -0
  484. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -0
  485. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -0
  486. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -0
  487. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -0
  488. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -0
  489. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -0
  490. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -0
  491. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -0
  492. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -0
  493. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -0
  494. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -0
  495. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -0
  496. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -0
  497. /package/{pods → src-native/ios}/Headers/inspector/utils.h +0 -0
  498. /package/{pods → src-native/ios}/Headers/inspector/v8-inspector-platform.h +0 -0
  499. /package/{pods → src-native/ios}/Headers/runtime/ArgConverter.h +0 -0
  500. /package/{pods → src-native/ios}/Headers/runtime/ArrayAdapter.h +0 -0
  501. /package/{pods → src-native/ios}/Headers/runtime/Caches.h +0 -0
  502. /package/{pods → src-native/ios}/Headers/runtime/ClassBuilder.h +0 -0
  503. /package/{pods → src-native/ios}/Headers/runtime/Common.h +0 -0
  504. /package/{pods → src-native/ios}/Headers/runtime/ConcurrentMap.h +0 -0
  505. /package/{pods → src-native/ios}/Headers/runtime/ConcurrentQueue.h +0 -0
  506. /package/{pods → src-native/ios}/Headers/runtime/Console.h +0 -0
  507. /package/{pods → src-native/ios}/Headers/runtime/Constants.h +0 -0
  508. /package/{pods → src-native/ios}/Headers/runtime/DataWrapper.h +0 -0
  509. /package/{pods → src-native/ios}/Headers/runtime/DictionaryAdapter.h +0 -0
  510. /package/{pods → src-native/ios}/Headers/runtime/ExtVector.h +0 -0
  511. /package/{pods → src-native/ios}/Headers/runtime/FFICall.h +0 -0
  512. /package/{pods → src-native/ios}/Headers/runtime/FastEnumerationAdapter.h +0 -0
  513. /package/{pods → src-native/ios}/Headers/runtime/FunctionReference.h +0 -0
  514. /package/{pods → src-native/ios}/Headers/runtime/Helpers.h +0 -0
  515. /package/{pods → src-native/ios}/Headers/runtime/InlineFunctions.h +0 -0
  516. /package/{pods → src-native/ios}/Headers/runtime/Interop.h +0 -0
  517. /package/{pods → src-native/ios}/Headers/runtime/KnownUnknownClassPair.h +0 -0
  518. /package/{pods → src-native/ios}/Headers/runtime/Metadata.h +0 -0
  519. /package/{pods → src-native/ios}/Headers/runtime/MetadataBuilder.h +0 -0
  520. /package/{pods → src-native/ios}/Headers/runtime/MetadataInlines.h +0 -0
  521. /package/{pods → src-native/ios}/Headers/runtime/ModuleInternal.h +0 -0
  522. /package/{pods → src-native/ios}/Headers/runtime/NSDataAdapter.h +0 -0
  523. /package/{pods → src-native/ios}/Headers/runtime/NativeScriptException.h +0 -0
  524. /package/{pods → src-native/ios}/Headers/runtime/ObjectManager.h +0 -0
  525. /package/{pods → src-native/ios}/Headers/runtime/OneByteStringResource.h +0 -0
  526. /package/{pods → src-native/ios}/Headers/runtime/Pointer.h +0 -0
  527. /package/{pods → src-native/ios}/Headers/runtime/PromiseProxy.h +0 -0
  528. /package/{pods → src-native/ios}/Headers/runtime/Reference.h +0 -0
  529. /package/{pods → src-native/ios}/Headers/runtime/Runtime.h +0 -0
  530. /package/{pods → src-native/ios}/Headers/runtime/RuntimeConfig.h +0 -0
  531. /package/{pods → src-native/ios}/Headers/runtime/SetTimeout.h +0 -0
  532. /package/{pods → src-native/ios}/Headers/runtime/SimpleAllocator.h +0 -0
  533. /package/{pods → src-native/ios}/Headers/runtime/StringHasher.h +0 -0
  534. /package/{pods → src-native/ios}/Headers/runtime/SymbolIterator.h +0 -0
  535. /package/{pods → src-native/ios}/Headers/runtime/SymbolLoader.h +0 -0
  536. /package/{pods → src-native/ios}/Headers/runtime/TNSDerivedClass.h +0 -0
  537. /package/{pods → src-native/ios}/Headers/runtime/TSHelpers.h +0 -0
  538. /package/{pods → src-native/ios}/Headers/runtime/Tasks.h +0 -0
  539. /package/{pods → src-native/ios}/Headers/runtime/UnmanagedType.h +0 -0
  540. /package/{pods → src-native/ios}/Headers/runtime/WeakRef.h +0 -0
  541. /package/{pods → src-native/ios}/Headers/runtime/Worker.h +0 -0
  542. /package/{pods → src-native/ios}/Headers/runtime/robin_hood.h +0 -0
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { WebGLRenderingContextBase } from './common';
10
+ import { WebGLRenderingCommon } from './common';
11
11
  import { WebGLShader } from '../WebGLShader';
12
12
  import { WebGLFramebuffer } from '../WebGLFramebuffer';
13
13
  import { WebGLTexture } from '../WebGLTexture';
@@ -24,7 +24,7 @@ import { Canvas } from '../../Canvas';
24
24
  import { ImageBitmap } from '../../ImageBitmap';
25
25
  import { Helpers } from '../../helpers';
26
26
  let ctor;
27
- export class WebGLRenderingContext extends WebGLRenderingContextBase {
27
+ export class WebGLRenderingContextBase extends WebGLRenderingCommon {
28
28
  constructor(context, contextOptions) {
29
29
  super(context);
30
30
  this._flipY = false;
@@ -47,7 +47,7 @@ export class WebGLRenderingContext extends WebGLRenderingContextBase {
47
47
  // todo
48
48
  //direction = 1;
49
49
  }
50
- this._context = ctor(contextOptions, ctx, Screen.mainScreen.scale, -16777216, Screen.mainScreen.scale * 160, direction);
50
+ this._context = global.CanvasModule.createWebGLContext(contextOptions, ctx, Screen.mainScreen.scale, -16777216, Screen.mainScreen.scale * 160, direction);
51
51
  }
52
52
  else {
53
53
  this._context = context;
@@ -57,412 +57,236 @@ export class WebGLRenderingContext extends WebGLRenderingContextBase {
57
57
  return this._context;
58
58
  }
59
59
  get drawingBufferHeight() {
60
+ if (global.isAndroid) {
61
+ return this._canvas?.drawingBufferHeight ?? 0;
62
+ }
60
63
  return this.native.drawingBufferHeight;
61
64
  }
62
65
  get drawingBufferWidth() {
66
+ if (global.isAndroid) {
67
+ return this._canvas?.drawingBufferWidth ?? 0;
68
+ }
63
69
  return this.native.drawingBufferWidth;
64
70
  }
65
71
  __toDataURL() {
66
- const __toDataURL = this._getMethod('__toDataURL');
67
- return __toDataURL(arguments[0], arguments[1]);
72
+ return this.native.__toDataURL(arguments[0], arguments[1]);
68
73
  }
69
74
  activeTexture(texture) {
70
- this._glCheckError('activeTexture');
71
- this._checkArgs('activeTexture', arguments);
72
- const activeTexture = this._getMethod('activeTexture');
73
- activeTexture(texture);
75
+ this.native.activeTexture(texture);
74
76
  }
75
77
  attachShader(program, shader) {
76
- this._glCheckError('attachShader');
77
- this._checkArgs('attachShader', arguments);
78
78
  const value = program.native;
79
79
  const value2 = shader.native;
80
- const attachShader = this._getMethod('attachShader');
81
- attachShader(value, value2);
80
+ this.native.attachShader(value, value2);
82
81
  }
83
82
  bindAttribLocation(program, index, name) {
84
- this._glCheckError('bindAttribLocation');
85
- this._checkArgs('bindAttribLocation', arguments);
86
- const bindAttribLocation = this._getMethod('bindAttribLocation');
87
83
  const value = program.native;
88
- bindAttribLocation(value, index, name);
84
+ this.native.bindAttribLocation(value, index, name);
89
85
  }
90
86
  bindBuffer(target, buffer) {
91
- this._glCheckError('bindBuffer');
92
- this._checkArgs('bindBuffer', arguments);
93
- const value = buffer ? buffer.native : null;
94
- const bindBuffer = this._getMethod('bindBuffer');
95
- bindBuffer(target, value);
87
+ const value = buffer ? buffer.native : 0;
88
+ this.native.bindBuffer(target, value);
96
89
  }
97
90
  bindFramebuffer(target, framebuffer) {
98
- this._glCheckError('bindFramebuffer');
99
- this._checkArgs('bindFramebuffer', arguments);
100
- const value = framebuffer ? framebuffer.native : null;
101
- const bindFramebuffer = this._getMethod('bindFramebuffer');
102
- bindFramebuffer(target, value);
91
+ const value = framebuffer ? framebuffer.native : 0;
92
+ this.native.bindFramebuffer(target, value);
103
93
  }
104
94
  bindRenderbuffer(target, renderbuffer) {
105
- this._glCheckError('bindRenderbuffer');
106
- this._checkArgs('bindRenderbuffer', arguments);
107
- const value = renderbuffer ? renderbuffer.native : null;
108
- const bindRenderbuffer = this._getMethod('bindRenderbuffer');
109
- bindRenderbuffer(target, value);
95
+ const value = renderbuffer ? renderbuffer.native : 0;
96
+ this.native.bindRenderbuffer(target, value);
110
97
  }
111
98
  bindTexture(target, texture) {
112
- this._glCheckError('bindTexture');
113
- this._checkArgs('bindTexture', arguments);
114
- const value = texture ? texture.native : null;
115
- const bindTexture = this._getMethod('bindTexture');
116
- bindTexture(target, value);
99
+ const value = texture ? texture.native : 0;
100
+ this.native.bindTexture(target, value);
117
101
  }
118
102
  blendColor(red, green, blue, alpha) {
119
- this._glCheckError('blendColor');
120
- this._checkArgs('blendColor', arguments);
121
- const blendColor = this._getMethod('blendColor');
122
- blendColor(red, green, blue, alpha);
103
+ this.native.blendColor(red, green, blue, alpha);
123
104
  }
124
105
  blendEquationSeparate(modeRGB, modeAlpha) {
125
- this._glCheckError('blendEquationSeparate');
126
- this._checkArgs('blendEquationSeparate', arguments);
127
- const blendEquationSeparate = this._getMethod('blendEquationSeparate');
128
- blendEquationSeparate(modeRGB, modeAlpha);
106
+ this.native.blendEquationSeparate(modeRGB, modeAlpha);
129
107
  }
130
108
  blendEquation(mode) {
131
- this._glCheckError('blendEquation');
132
- this._checkArgs('blendEquation', arguments);
133
- const blendEquation = this._getMethod('blendEquation');
134
- blendEquation(mode);
109
+ this.native.blendEquation(mode);
135
110
  }
136
111
  blendFuncSeparate(srcRGB = this.ONE, dstRGB = this.ZERO, srcAlpha = this.ONE, dstAlpha = this.ZERO) {
137
- this._glCheckError('blendFuncSeparate');
138
- this._checkArgs('blendFuncSeparate', arguments);
139
- const blendFuncSeparate = this._getMethod('blendFuncSeparate');
140
- blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
112
+ this.native.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
141
113
  }
142
114
  blendFunc(sfactor = this.ONE, dfactor = this.ZERO) {
143
- this._glCheckError('blendFunc');
144
- this._checkArgs('blendFunc', arguments);
145
- const blendFunc = this._getMethod('blendFunc');
146
- blendFunc(sfactor, dfactor);
115
+ this.native.blendFunc(sfactor, dfactor);
147
116
  }
148
117
  bufferData(target, srcData, usage) {
149
- this._glCheckError('bufferData');
150
- this._checkArgs('bufferData', arguments);
151
- const bufferData = this._getMethod('bufferData');
152
- bufferData(target, srcData, usage);
118
+ this.native.bufferData(target, srcData, usage);
153
119
  }
154
120
  bufferSubData(target, offset, srcData) {
155
- this._glCheckError('bufferSubData');
156
- this._checkArgs('bufferSubData', arguments);
157
- const bufferSubData = this._getMethod('bufferSubData');
158
- bufferSubData(target, offset, srcData);
121
+ this.native.bufferSubData(target, offset, srcData);
159
122
  }
160
123
  checkFramebufferStatus(target) {
161
- this._glCheckError('checkFramebufferStatus');
162
- this._checkArgs('checkFramebufferStatus', arguments);
163
- const checkFramebufferStatus = this._getMethod('checkFramebufferStatus');
164
- return checkFramebufferStatus(target);
124
+ return this.native.checkFramebufferStatus(target);
165
125
  }
166
126
  clearColor(red, green, blue, alpha) {
167
- this._glCheckError('clearColor');
168
- this._checkArgs('clearColor', arguments);
169
- const clearColor = this._getMethod('clearColor');
170
- clearColor(red, green, blue, alpha);
127
+ this.native.clearColor(red, green, blue, alpha);
171
128
  }
172
129
  clearDepth(depth) {
173
- this._glCheckError('clearDepth');
174
- this._checkArgs('clearDepth', arguments);
175
- const clearDepth = this._getMethod('clearDepth');
176
- clearDepth(depth);
130
+ this.native.clearDepth(depth);
177
131
  }
178
132
  clearStencil(stencil) {
179
- this._glCheckError('clearStencil');
180
- this._checkArgs('clearStencil', arguments);
181
- const clearStencil = this._getMethod('clearStencil');
182
- clearStencil(stencil);
133
+ this.native.clearStencil(stencil);
183
134
  }
184
135
  clear(mask) {
185
- this._glCheckError('clear');
186
- this._checkArgs('clear', arguments);
187
- const clear = this._getMethod('clear');
188
- clear(mask);
136
+ this.native.clear(mask);
189
137
  }
190
138
  colorMask(red, green, blue, alpha) {
191
- this._glCheckError('colorMask');
192
- this._checkArgs('colorMask', arguments);
193
- const colorMask = this._getMethod('colorMask');
194
- colorMask(red, green, blue, alpha);
139
+ this.native.colorMask(red, green, blue, alpha);
195
140
  }
196
141
  commit() {
197
142
  // NOOP
198
- const commit = this._getMethod('commit');
199
- commit();
143
+ this.native.commit();
200
144
  }
201
145
  compileShader(shader) {
202
- this._glCheckError('compileShader');
203
- this._checkArgs('compileShader', arguments);
204
- const compileShader = this._getMethod('compileShader');
205
146
  const value = shader.native;
206
- compileShader(value);
147
+ this.native.compileShader(value);
207
148
  }
208
149
  compressedTexImage2D(target, level, internalformat, width, height, border, pixels) {
209
- this._glCheckError('compressedTexImage2D');
210
- this._checkArgs('compressedTexImage2D', arguments);
211
- const compressedTexImage2D = this._getMethod('compressedTexImage2D');
212
- compressedTexImage2D(target, level, internalformat, width, height, border, pixels);
150
+ this.native.compressedTexImage2D(target, level, internalformat, width, height, border, pixels);
213
151
  }
214
152
  compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, pixels) {
215
- this._glCheckError('compressedTexSubImage2D');
216
- this._checkArgs('compressedTexSubImage2D', arguments);
217
- const compressedTexSubImage2D = this._getMethod('compressedTexSubImage2D');
218
- compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, pixels);
153
+ this.native.compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, pixels);
219
154
  }
220
155
  copyTexImage2D(target, level, internalformat, x, y, width, height, border) {
221
- this._glCheckError('copyTexImage2D');
222
- this._checkArgs('copyTexImage2D', arguments);
223
- const copyTexImage2D = this._getMethod('copyTexImage2D');
224
- copyTexImage2D(target, level, internalformat, x, y, width, height, border);
156
+ this.native.copyTexImage2D(target, level, internalformat, x, y, width, height, border);
225
157
  }
226
158
  copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height) {
227
- this._glCheckError('copyTexSubImage2D');
228
- this._checkArgs('copyTexSubImage2D', arguments);
229
- const copyTexSubImage2D = this._getMethod('copyTexSubImage2D');
230
- copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
159
+ this.native.copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
231
160
  }
232
161
  createBuffer() {
233
- this._glCheckError('createBuffer');
234
- this._checkArgs('createBuffer', arguments);
235
- const createBuffer = this._getMethod('createBuffer');
236
- const id = createBuffer();
162
+ const id = this.native.createBuffer();
237
163
  return new WebGLBuffer(id);
238
164
  }
239
165
  createFramebuffer() {
240
- this._glCheckError('createFramebuffer');
241
- this._checkArgs('createFramebuffer', arguments);
242
- const createFramebuffer = this._getMethod('createFramebuffer');
243
- return new WebGLFramebuffer(createFramebuffer());
166
+ return new WebGLFramebuffer(this.native.createFramebuffer());
244
167
  }
245
168
  createProgram() {
246
- this._glCheckError('createProgram');
247
- this._checkArgs('createProgram', arguments);
248
- const createProgram = this._getMethod('createProgram');
249
- return new WebGLProgram(createProgram());
169
+ return new WebGLProgram(this.native.createProgram());
250
170
  }
251
171
  createRenderbuffer() {
252
- this._glCheckError('createRenderbuffer');
253
- this._checkArgs('createRenderbuffer', arguments);
254
- const createRenderbuffer = this._getMethod('createRenderbuffer');
255
- return new WebGLRenderbuffer(createRenderbuffer());
172
+ return new WebGLRenderbuffer(this.native.createRenderbuffer());
256
173
  }
257
174
  createShader(type) {
258
- this._glCheckError('createShader');
259
- this._checkArgs('createShader', arguments);
260
- const createShader = this._getMethod('createShader');
261
- return new WebGLShader(createShader(type));
175
+ return new WebGLShader(this.native.createShader(type));
262
176
  }
263
177
  createTexture() {
264
- this._glCheckError('createTexture');
265
- this._checkArgs('createTexture', arguments);
266
- const createTexture = this._getMethod('createTexture');
267
- return new WebGLTexture(createTexture());
178
+ return new WebGLTexture(this.native.createTexture());
268
179
  }
269
180
  cullFace(mode) {
270
- this._glCheckError('cullFace');
271
- this._checkArgs('cullFace', arguments);
272
- const cullFace = this._getMethod('cullFace');
273
- cullFace(mode);
181
+ this.native.cullFace(mode);
274
182
  }
275
183
  deleteBuffer(buffer) {
276
- this._glCheckError('deleteBuffer');
277
- this._checkArgs('deleteBuffer', arguments);
278
184
  const value = buffer.native;
279
- const deleteBuffer = this._getMethod('deleteBuffer');
280
- deleteBuffer(value);
185
+ this.native.deleteBuffer(value);
281
186
  }
282
187
  deleteFramebuffer(frameBuffer) {
283
- this._glCheckError('deleteFramebuffer');
284
- this._checkArgs('deleteFramebuffer', arguments);
285
188
  const value = frameBuffer.native;
286
- const deleteFramebuffer = this._getMethod('deleteFramebuffer');
287
- deleteFramebuffer(value);
189
+ this.native.deleteFramebuffer(value);
288
190
  }
289
191
  deleteProgram(program) {
290
- this._glCheckError('deleteProgram');
291
- this._checkArgs('deleteProgram', arguments);
292
192
  const value = program.native;
293
- const deleteProgram = this._getMethod('deleteProgram');
294
- deleteProgram(value);
193
+ this.native.deleteProgram(value);
295
194
  }
296
195
  deleteRenderbuffer(renderBuffer) {
297
- this._glCheckError('deleteRenderbuffer');
298
- this._checkArgs('deleteRenderbuffer', arguments);
299
196
  const value = renderBuffer.native;
300
- const deleteRenderbuffer = this._getMethod('deleteRenderbuffer');
301
- deleteRenderbuffer(value);
197
+ this.native.deleteRenderbuffer(value);
302
198
  }
303
199
  deleteShader(shader) {
304
- this._glCheckError('deleteShader');
305
- this._checkArgs('deleteShader', arguments);
306
- const deleteShader = this._getMethod('deleteShader');
307
- deleteShader(shader.native);
200
+ this.native.deleteShader(shader.native);
308
201
  }
309
202
  deleteTexture(texture) {
310
- this._glCheckError('deleteTexture');
311
- this._checkArgs('deleteTexture', arguments);
312
203
  const value = texture.native;
313
- const deleteTexture = this._getMethod('deleteTexture');
314
- deleteTexture(value);
204
+ this.native.deleteTexture(value);
315
205
  }
316
206
  depthFunc(func) {
317
- this._glCheckError('depthFunc');
318
- this._checkArgs('depthFunc', arguments);
319
- const depthFunc = this._getMethod('depthFunc');
320
- depthFunc(func);
207
+ this.native.depthFunc(func);
321
208
  }
322
209
  depthMask(flag) {
323
- this._glCheckError('depthMask');
324
- this._checkArgs('depthMask', arguments);
325
- const depthMask = this._getMethod('depthMask');
326
- depthMask(flag);
210
+ this.native.depthMask(flag);
327
211
  }
328
212
  depthRange(zNear, zFar) {
329
- this._glCheckError('depthRange');
330
- this._checkArgs('depthRange', arguments);
331
- const depthRange = this._getMethod('depthRange');
332
- depthRange(zNear, zFar);
213
+ this.native.depthRange(zNear, zFar);
333
214
  }
334
215
  detachShader(program, shader) {
335
- this._glCheckError('detachShader');
336
- this._checkArgs('detachShader', arguments);
337
216
  const value = program.native;
338
217
  const value2 = shader.native;
339
- const detachShader = this._getMethod('detachShader');
340
- detachShader(value, value2);
218
+ this.native.detachShader(value, value2);
341
219
  }
342
220
  disableVertexAttribArray(index) {
343
- this._glCheckError('disableVertexAttribArray');
344
- this._checkArgs('disableVertexAttribArray', arguments);
345
- const disableVertexAttribArray = this._getMethod('disableVertexAttribArray');
346
- disableVertexAttribArray(index);
221
+ this.native.disableVertexAttribArray(index);
347
222
  }
348
223
  disable(cap) {
349
- this._glCheckError('disable');
350
- this._checkArgs('disable', arguments);
351
- const disable = this._getMethod('disable');
352
- disable(cap);
224
+ this.native.disable(cap);
353
225
  }
354
226
  drawArrays(mode, first, count) {
355
- this._glCheckError('drawArrays');
356
- this._checkArgs('drawArrays', arguments);
357
- const drawArrays = this._getMethod('drawArrays');
358
- drawArrays(mode, first, count);
227
+ this.native.drawArrays(mode, first, count);
359
228
  }
360
229
  drawElements(mode, count, type, offset) {
361
- this._glCheckError('drawElements');
362
- this._checkArgs('drawElements', arguments);
363
- const drawElements = this._getMethod('drawElements');
364
- drawElements(mode, count, type, offset);
230
+ this.native.drawElements(mode, count, type, offset);
365
231
  }
366
232
  enableVertexAttribArray(index) {
367
- this._glCheckError('enableVertexAttribArray');
368
- this._checkArgs('enableVertexAttribArray', arguments);
369
- const enableVertexAttribArray = this._getMethod('enableVertexAttribArray');
370
- enableVertexAttribArray(index);
233
+ this.native.enableVertexAttribArray(index);
371
234
  }
372
235
  enable(cap) {
373
- this._glCheckError('enable');
374
- this._checkArgs('enable', arguments);
375
- const enable = this._getMethod('enable');
376
- enable(cap);
236
+ this.native.enable(cap);
377
237
  }
378
238
  finish() {
379
- this._glCheckError('finish');
380
- const finish = this._getMethod('finish');
381
- finish();
239
+ this.native.finish();
382
240
  }
383
241
  flush() {
384
- this._glCheckError('flush');
385
- const flush = this._getMethod('flush');
386
- flush();
242
+ this.native.flush();
387
243
  }
388
244
  framebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) {
389
- this._glCheckError('framebufferRenderbuffer');
390
- this._checkArgs('framebufferRenderbuffer', arguments);
391
245
  const value = renderbuffer.native;
392
- const framebufferRenderbuffer = this._getMethod('framebufferRenderbuffer');
393
- framebufferRenderbuffer(target, attachment, renderbuffertarget, value);
246
+ this.native.framebufferRenderbuffer(target, attachment, renderbuffertarget, value);
394
247
  }
395
248
  framebufferTexture2D(target, attachment, textarget, texture, level) {
396
- this._glCheckError('framebufferTexture2D');
397
- this._checkArgs('framebufferTexture2D', arguments);
398
249
  const value = texture.native;
399
- const framebufferTexture2D = this._getMethod('framebufferTexture2D');
400
- framebufferTexture2D(target, attachment, textarget, value, level);
250
+ this.native.framebufferTexture2D(target, attachment, textarget, value, level);
401
251
  }
402
252
  frontFace(mode) {
403
- this._checkArgs('frontFace', arguments);
404
- this._glCheckError('frontFace');
405
- const frontFace = this._getMethod('frontFace');
406
- frontFace(mode);
253
+ this.native.frontFace(mode);
407
254
  }
408
255
  generateMipmap(target) {
409
- this._checkArgs('generateMipmap', arguments);
410
- this._glCheckError('generateMipmap');
411
- const generateMipmap = this._getMethod('generateMipmap');
412
- generateMipmap(target);
256
+ this.native.generateMipmap(target);
413
257
  }
414
258
  getActiveAttrib(program, index) {
415
- this._glCheckError('getActiveAttrib');
416
- this._checkArgs('getActiveAttrib', arguments);
417
259
  const value = program.native;
418
- const getActiveAttrib = this._getMethod('getActiveAttrib');
419
- const attrib = getActiveAttrib(value, index);
260
+ const attrib = this.native.getActiveAttrib(value, index);
420
261
  return new WebGLActiveInfo(attrib);
421
262
  }
422
263
  getActiveUniform(program, index) {
423
- this._glCheckError('getActiveUniform');
424
- this._checkArgs('getActiveUniform', arguments);
425
264
  const value = program.native;
426
- const getActiveUniform = this._getMethod('getActiveUniform');
427
- const uniform = getActiveUniform(value, index);
265
+ const uniform = this.native.getActiveUniform(value, index);
428
266
  return new WebGLActiveInfo(uniform);
429
267
  }
430
268
  getAttachedShaders(program) {
431
- this._glCheckError('getAttachedShaders');
432
- this._checkArgs('getAttachedShaders', arguments);
433
- const getAttachedShaders = this._getMethod('getAttachedShaders');
434
269
  const value = program.native;
435
- return getAttachedShaders(value).map((shader) => new WebGLShader(shader));
270
+ return this.native.getAttachedShaders(value).map((shader) => new WebGLShader(shader));
436
271
  }
437
272
  getAttribLocation(program, name) {
438
- this._glCheckError('getAttribLocation');
439
- this._checkArgs('getAttribLocation', arguments);
440
- const getAttribLocation = this._getMethod('getAttribLocation');
441
273
  const value = program.native;
442
- return getAttribLocation(value, name);
274
+ return this.native.getAttribLocation(value, name);
443
275
  }
444
276
  getBufferParameter(target, pname) {
445
- this._glCheckError('getBufferParameter');
446
- this._checkArgs('getBufferParameter', arguments);
447
- const getBufferParameter = this._getMethod('getBufferParameter');
448
- return getBufferParameter(target, pname);
277
+ return this.native.getBufferParameter(target, pname);
449
278
  }
450
279
  getContextAttributes() {
451
- const getContextAttributes = this._getMethod('getContextAttributes');
452
- return getContextAttributes();
280
+ return this.native.getContextAttributes();
453
281
  }
454
282
  getError() {
455
- const getError = this._getMethod('getError');
456
- return getError();
283
+ return this.native.getError();
457
284
  }
458
285
  getExtension(name) {
459
- this._glCheckError('getExtension');
460
- this._checkArgs('getExtension', arguments);
461
286
  if (name === 'EXT_disjoint_timer_query_webgl2') {
462
287
  return null;
463
288
  }
464
- const getExtension = this._getMethod('getExtension');
465
- const ext = getExtension(name);
289
+ const ext = this.native.getExtension(name);
466
290
  if (ext) {
467
291
  const ext_name = ext.ext_name;
468
292
  switch (ext_name) {
@@ -517,10 +341,7 @@ export class WebGLRenderingContext extends WebGLRenderingContextBase {
517
341
  return null;
518
342
  }
519
343
  getFramebufferAttachmentParameter(target, attachment, pname) {
520
- this._glCheckError('getFramebufferAttachmentParameter');
521
- this._checkArgs('getFramebufferAttachmentParameter', arguments);
522
- const getFramebufferAttachmentParameter = this._getMethod('getFramebufferAttachmentParameter');
523
- const param = getFramebufferAttachmentParameter(target, attachment, pname);
344
+ const param = this.native.getFramebufferAttachmentParameter(target, attachment, pname);
524
345
  if (typeof param === 'object') {
525
346
  if (param.isRenderbuffer) {
526
347
  return new WebGLRenderbuffer(param);
@@ -585,293 +406,179 @@ export class WebGLRenderingContext extends WebGLRenderingContextBase {
585
406
  }
586
407
  }
587
408
  getParameter(pname) {
588
- this._glCheckError('getParameter');
589
- this._checkArgs('getParameter', arguments);
590
- const getParameter = this._getMethod('getParameter');
591
- const value = getParameter(pname);
409
+ const value = this.native.getParameter(pname);
592
410
  return this._handleGetParameter(pname, value);
593
411
  }
594
412
  getProgramInfoLog(program) {
595
- this._glCheckError('getProgramInfoLog');
596
- this._checkArgs('getProgramInfoLog', arguments);
597
- const getProgramInfoLog = this._getMethod('getProgramInfoLog');
598
413
  const value = program.native;
599
- return getProgramInfoLog(value);
414
+ return this.native.getProgramInfoLog(value);
600
415
  }
601
416
  getProgramParameter(program, pname) {
602
- this._glCheckError('getProgramParameter');
603
- this._checkArgs('getProgramParameter', arguments);
604
- const getProgramParameter = this._getMethod('getProgramParameter');
605
417
  const value = program.native;
606
- const result = getProgramParameter(value, pname);
418
+ const result = this.native.getProgramParameter(value, pname);
607
419
  return result;
608
420
  }
609
421
  getRenderbufferParameter(target, pname) {
610
- this._glCheckError('getRenderbufferParameter');
611
- this._checkArgs('getRenderbufferParameter', arguments);
612
- const getRenderbufferParameter = this._getMethod('getRenderbufferParameter');
613
- return getRenderbufferParameter(target, pname);
422
+ return this.native.getRenderbufferParameter(target, pname);
614
423
  }
615
424
  getShaderInfoLog(shader) {
616
- this._glCheckError('getShaderInfoLog');
617
- this._checkArgs('getShaderInfoLog', arguments);
618
- const getShaderInfoLog = this._getMethod('getShaderInfoLog');
619
425
  const value = shader.native;
620
- return getShaderInfoLog(value);
426
+ return this.native.getShaderInfoLog(value);
621
427
  }
622
428
  getShaderParameter(shader, pname) {
623
- this._glCheckError('getShaderParameter');
624
- this._checkArgs('getShaderParameter', arguments);
625
- const getShaderParameter = this._getMethod('getShaderParameter');
626
429
  const value = shader.native;
627
- const result = getShaderParameter(value, pname);
430
+ const result = this.native.getShaderParameter(value, pname);
628
431
  return result;
629
432
  }
630
433
  getShaderPrecisionFormat(shaderType, precisionType) {
631
- this._glCheckError('getShaderPrecisionFormat');
632
- this._checkArgs('getShaderPrecisionFormat', arguments);
633
- const getShaderPrecisionFormat = this._getMethod('getShaderPrecisionFormat');
634
- const precision = getShaderPrecisionFormat(shaderType, precisionType);
434
+ const precision = this.native.getShaderPrecisionFormat(shaderType, precisionType);
635
435
  return new WebGLShaderPrecisionFormat(precision);
636
436
  }
637
437
  getShaderSource(shader) {
638
- this._glCheckError('getShaderSource');
639
- this._checkArgs('getShaderSource', arguments);
640
- const getShaderSource = this._getMethod('getShaderSource');
641
438
  const value = shader ? shader.native : 0;
642
- return getShaderSource(value);
439
+ return this.native.getShaderSource(value);
643
440
  }
644
441
  getSupportedExtensions() {
645
- this._glCheckError('getSupportedExtensions');
646
- const getSupportedExtensions = this._getMethod('getSupportedExtensions');
647
- return getSupportedExtensions();
442
+ return this.native.getSupportedExtensions();
648
443
  }
649
444
  getTexParameter(target, pname) {
650
- this._glCheckError('getTexParameter');
651
- this._checkArgs('getTexParameter', arguments);
652
- const getTexParameter = this._getMethod('getTexParameter');
653
- return getTexParameter(target, pname);
445
+ return this.native.getTexParameter(target, pname);
654
446
  }
655
447
  getUniformLocation(program, name) {
656
- this._glCheckError('getUniformLocation');
657
- this._checkArgs('getUniformLocation', arguments);
658
- const getUniformLocation = this._getMethod('getUniformLocation');
659
448
  const value = program.native;
660
- const id = getUniformLocation(value, name);
449
+ const id = this.native.getUniformLocation(value, name);
661
450
  if (id === -1) {
662
451
  return null;
663
452
  }
664
453
  return new WebGLUniformLocation(id);
665
454
  }
666
455
  getUniform(program, location) {
667
- this._glCheckError('getUniform');
668
- this._checkArgs('getUniform', arguments);
669
- const getUniform = this._getMethod('getUniform');
670
456
  const value = program.native;
671
457
  const value2 = location.native;
672
- const uniform = getUniform(value, value2);
458
+ const uniform = this.native.getUniform(value, value2);
673
459
  if (uniform && uniform.length) {
674
460
  return uniform;
675
461
  }
676
462
  return uniform;
677
463
  }
678
464
  getVertexAttribOffset(index, pname) {
679
- this._glCheckError('getVertexAttribOffset');
680
- this._checkArgs('getVertexAttribOffset', arguments);
681
- const getVertexAttribOffset = this._getMethod('getVertexAttribOffset');
682
- return getVertexAttribOffset(index, pname);
465
+ return this.native.getVertexAttribOffset(index, pname);
683
466
  }
684
467
  getVertexAttrib(index, pname) {
685
- this._glCheckError('getVertexAttrib');
686
- this._checkArgs('getVertexAttrib', arguments);
687
- const getVertexAttrib = this._getMethod('getVertexAttrib');
688
- const value = getVertexAttrib(index, pname);
468
+ const value = this.native.getVertexAttrib(index, pname);
689
469
  if (pname === this.CURRENT_VERTEX_ATTRIB) {
690
470
  return value;
691
471
  }
692
472
  return value;
693
473
  }
694
474
  hint(target, mode) {
695
- this._glCheckError('hint');
696
- this._checkArgs('hint', arguments);
697
- const hint = this._getMethod('hint');
698
- hint(target, mode);
475
+ this.native.hint(target, mode);
699
476
  }
700
477
  isBuffer(buffer) {
701
- this._glCheckError('isBuffer');
702
- this._checkArgs('isBuffer', arguments);
703
- const isBuffer = this._getMethod('isBuffer');
704
478
  const value = buffer.native;
705
- return isBuffer(value);
479
+ return this.native.isBuffer(value);
706
480
  }
707
481
  isContextLost() {
708
- this._glCheckError('isContextLost');
709
- const isContextLost = this._getMethod('isContextLost');
710
- return isContextLost();
482
+ return this.native.isContextLost();
711
483
  }
712
484
  isEnabled(cap) {
713
- this._glCheckError('isEnabled');
714
- this._checkArgs('isEnabled', arguments);
715
- const isEnabled = this._getMethod('isEnabled');
716
- return isEnabled(cap);
485
+ return this.native.isEnabled(cap);
717
486
  }
718
487
  isFramebuffer(framebuffer) {
719
- this._glCheckError('isFramebuffer');
720
- this._checkArgs('isFramebuffer', arguments);
721
- const isFramebuffer = this._getMethod('isFramebuffer');
722
488
  const value = framebuffer ? framebuffer.native : 0;
723
- return isFramebuffer(value);
489
+ return this.native.isFramebuffer(value);
724
490
  }
725
491
  isProgram(program) {
726
- this._glCheckError('isProgram');
727
- this._checkArgs('isProgram', arguments);
728
- const isProgram = this._getMethod('isProgram');
729
492
  const value = program.native;
730
- return isProgram(value);
493
+ return this.native.isProgram(value);
731
494
  }
732
495
  isRenderbuffer(renderbuffer) {
733
- this._glCheckError('isRenderbuffer');
734
- this._checkArgs('isRenderbuffer', arguments);
735
- const isRenderbuffer = this._getMethod('isRenderbuffer');
736
496
  const value = renderbuffer.native;
737
- return isRenderbuffer(value);
497
+ return this.native.isRenderbuffer(value);
738
498
  }
739
499
  isShader(shader) {
740
- this._glCheckError('isShader');
741
- this._checkArgs('isShader', arguments);
742
- const isShader = this._getMethod('isShader');
743
500
  const value = shader.native;
744
- return isShader(value);
501
+ return this.native.isShader(value);
745
502
  }
746
503
  isTexture(texture) {
747
- this._glCheckError('isTexture');
748
- this._checkArgs('isTexture', arguments);
749
- const isTexture = this._getMethod('isTexture');
750
504
  const value = texture.native;
751
- return isTexture(value);
505
+ return this.native.isTexture(value);
752
506
  }
753
507
  lineWidth(width) {
754
- this._glCheckError('lineWidth');
755
- this._checkArgs('lineWidth', arguments);
756
- const lineWidth = this._getMethod('lineWidth');
757
- lineWidth(width);
508
+ this.native.lineWidth(width);
758
509
  }
759
510
  linkProgram(program) {
760
- this._glCheckError('linkProgram');
761
- this._checkArgs('linkProgram', arguments);
762
- const linkProgram = this._getMethod('linkProgram');
763
511
  const value = program ? program.native : 0;
764
- linkProgram(value);
512
+ this.native.linkProgram(value);
765
513
  }
766
514
  pixelStorei(pname, param) {
767
- this._glCheckError('pixelStorei');
768
- this._checkArgs('pixelStorei', arguments);
769
- const pixelStorei = this._getMethod('pixelStorei');
770
515
  if (pname === this.UNPACK_FLIP_Y_WEBGL || pname === this.UNPACK_PREMULTIPLY_ALPHA_WEBGL) {
771
516
  if (pname === this.UNPACK_FLIP_Y_WEBGL) {
772
517
  this._flipY = param;
773
518
  }
774
- pixelStorei(pname, param);
519
+ this.native.pixelStorei(pname, param);
775
520
  }
776
521
  else if (pname === this.PACK_ALIGNMENT || pname === this.UNPACK_ALIGNMENT || pname === this.UNPACK_COLORSPACE_CONVERSION_WEBGL) {
777
522
  if (pname === this.UNPACK_COLORSPACE_CONVERSION_WEBGL) {
778
523
  param = 0x9244;
779
524
  }
780
525
  else if (pname === this.PACK_ALIGNMENT || pname === this.UNPACK_ALIGNMENT) {
781
- param = 4;
526
+ //param = 1;
782
527
  }
783
- pixelStorei(pname, param);
528
+ this.native.pixelStorei(pname, param);
784
529
  }
785
530
  else {
786
- pixelStorei(pname, param);
531
+ this.native.pixelStorei(pname, param);
787
532
  }
788
533
  }
789
534
  polygonOffset(factor, units) {
790
- this._glCheckError('polygonOffset');
791
- this._checkArgs('polygonOffset', arguments);
792
- const polygonOffset = this._getMethod('polygonOffset');
793
- polygonOffset(factor, units);
535
+ this.native.polygonOffset(factor, units);
794
536
  }
795
537
  readPixels(x, y, width, height, format, type, pixels) {
796
- this._glCheckError('readPixels');
797
- this._checkArgs('readPixels', arguments);
798
- const readPixels = this._getMethod('readPixels');
799
- readPixels(x, y, width, height, format, type, pixels);
538
+ this.native.readPixels(x, y, width, height, format, type, pixels);
800
539
  }
801
540
  renderbufferStorage(target, internalFormat, width, height) {
802
- this._glCheckError('renderbufferStorage');
803
- this._checkArgs('renderbufferStorage', arguments);
804
- const renderbufferStorage = this._getMethod('renderbufferStorage');
805
541
  if (internalFormat === this.DEPTH_STENCIL) {
806
542
  // DEPTH24_STENCIL8 = 35056
807
543
  // DEPTH24_STENCIL8_OES = 0x88F0
808
544
  internalFormat = 0x88f0;
809
545
  }
810
- renderbufferStorage(target, internalFormat, width, height);
546
+ this.native.renderbufferStorage(target, internalFormat, width, height);
811
547
  }
812
548
  sampleCoverage(value, invert) {
813
- this._glCheckError('sampleCoverage');
814
- this._checkArgs('sampleCoverage', arguments);
815
- const sampleCoverage = this._getMethod('sampleCoverage');
816
- sampleCoverage(value, invert);
549
+ this.native.sampleCoverage(value, invert);
817
550
  }
818
551
  scissor(x, y, width, height) {
819
- this._glCheckError('scissor');
820
- this._checkArgs('scissor', arguments);
821
- const scissor = this._getMethod('scissor');
822
- scissor(x, y, width, height);
552
+ this.native.scissor(x, y, width, height);
823
553
  }
824
554
  shaderSource(shader, source) {
825
- this._glCheckError('shaderSource');
826
- this._checkArgs('shaderSource', arguments);
827
- const shaderSource = this._getMethod('shaderSource');
828
555
  const value = shader ? shader.native : 0;
829
- shaderSource(value, source);
556
+ this.native.shaderSource(value, source);
830
557
  }
831
558
  stencilFuncSeparate(face, func, ref, mask) {
832
- this._glCheckError('stencilFuncSeparate');
833
- this._checkArgs('stencilFuncSeparate', arguments);
834
- const stencilFuncSeparate = this._getMethod('stencilFuncSeparate');
835
- stencilFuncSeparate(face, func, ref, mask);
559
+ this.native.stencilFuncSeparate(face, func, ref, mask);
836
560
  }
837
561
  stencilFunc(func, ref, mask) {
838
- this._glCheckError('stencilFunc');
839
- this._checkArgs('stencilFunc', arguments);
840
- const stencilFunc = this._getMethod('stencilFunc');
841
- stencilFunc(func, ref, mask);
562
+ this.native.stencilFunc(func, ref, mask);
842
563
  }
843
564
  stencilMaskSeparate(face, mask) {
844
- this._glCheckError('stencilMaskSeparate');
845
- this._checkArgs('stencilMaskSeparate', arguments);
846
- const stencilMaskSeparate = this._getMethod('stencilMaskSeparate');
847
- stencilMaskSeparate(face, mask);
565
+ this.native.stencilMaskSeparate(face, mask);
848
566
  }
849
567
  stencilMask(mask) {
850
- this._glCheckError('stencilMask');
851
- this._checkArgs('stencilMask', arguments);
852
- const stencilMask = this._getMethod('stencilMask');
853
- stencilMask(mask);
568
+ this.native.stencilMask(mask);
854
569
  }
855
570
  stencilOpSeparate(face, fail, zfail, zpass) {
856
- this._glCheckError('stencilOpSeparate');
857
- this._checkArgs('stencilOpSeparate', arguments);
858
- const stencilOpSeparate = this._getMethod('stencilOpSeparate');
859
- stencilOpSeparate(face, fail, zfail, zpass);
571
+ this.native.stencilOpSeparate(face, fail, zfail, zpass);
860
572
  }
861
573
  stencilOp(fail, zfail, zpass) {
862
- this._glCheckError('stencilOp');
863
- this._checkArgs('stencilOp', arguments);
864
- const stencilOp = this._getMethod('stencilOp');
865
- stencilOp(fail, zfail, zpass);
574
+ this.native.stencilOp(fail, zfail, zpass);
866
575
  }
867
576
  texImage2D(target, level, internalformat, width, height, border, format, type, pixels) {
868
- this._glCheckError('texImage2D');
869
- this._checkArgs('texImage2D', arguments);
870
- const texImage2D = this._getMethod('texImage2D');
871
- if (arguments.length === 9) {
872
- texImage2D(target, level, internalformat, width, height, border, format, type !== null && type !== void 0 ? type : internalformat, pixels);
577
+ const length = arguments.length;
578
+ if (length === 9) {
579
+ this.native.texImage2D(target, level, internalformat, width, height, border, format, type ?? internalformat, pixels);
873
580
  }
874
- else if (arguments.length === 6) {
581
+ else if (length === 6) {
875
582
  if (border && typeof border.tagName === 'string' && (border.tagName === 'VID' || border.tagName === 'VIDEO') && border._video && typeof border._video.getCurrentFrame === 'function') {
876
583
  border._video.getCurrentFrame(this.native, this, target, level, internalformat, width, height);
877
584
  }
@@ -879,298 +586,216 @@ export class WebGLRenderingContext extends WebGLRenderingContextBase {
879
586
  border.getCurrentFrame(this.native, this, target, level, internalformat, width, height);
880
587
  }
881
588
  else if (border instanceof ImageAsset) {
882
- texImage2D(target, level, internalformat, width, height, border.native);
589
+ this.native.texImage2D(target, level, internalformat, width, height, border.native);
883
590
  }
884
591
  else if (border instanceof ImageBitmap) {
885
- texImage2D(target, level, internalformat, width, height, border.native);
592
+ this.native.texImage2D(target, level, internalformat, width, height, border.native);
593
+ }
594
+ else if (border instanceof Canvas) {
595
+ this.native.texImage2D(target, level, internalformat, width, height, border.native);
886
596
  }
887
597
  else if (global.isAndroid && border instanceof android.graphics.Bitmap) {
888
598
  // todo ios
889
- texImage2D(target, level, internalformat, width, height, border);
599
+ this.native.texImage2D(target, level, internalformat, width, height, border);
890
600
  }
891
601
  else if (border instanceof ImageSource) {
892
- texImage2D(target, level, internalformat, width, height, border.android);
602
+ if (global.isAndroid) {
603
+ this.native.texImage2D(target, level, internalformat, width, height, border.android);
604
+ }
893
605
  }
894
606
  else if (border && typeof border.tagName === 'string' && (border.tagName === 'IMG' || border.tagName === 'IMAGE')) {
895
607
  if (border._asset instanceof ImageAsset) {
896
- texImage2D(target, level, internalformat, width, height, border._asset.native);
608
+ this.native.texImage2D(target, level, internalformat, width, height, border._asset.native);
897
609
  }
898
610
  else if (border._imageSource instanceof ImageSource) {
899
- texImage2D(target, level, internalformat, width, height, border._imageSource.android);
611
+ this.native.texImage2D(target, level, internalformat, width, height, border._imageSource.android);
900
612
  }
901
613
  else if (global.isAndroid && border._image instanceof android.graphics.Bitmap) {
902
614
  //todo ios
903
- texImage2D(target, level, internalformat, width, height, border._image);
615
+ this.native.texImage2D(target, level, internalformat, width, height, border._image);
904
616
  }
905
617
  else if (typeof border.src === 'string') {
906
- texImage2D(target, level, internalformat, width, height, ImageSource.fromFileSync(border.src).android);
618
+ if (global.isAndroid) {
619
+ this.native.texImage2D(target, level, internalformat, width, height, ImageSource.fromFileSync(border.src).android);
620
+ }
907
621
  }
908
622
  }
909
623
  else if (border && typeof border.tagName === 'string' && border.tagName === 'CANVAS' && border._canvas instanceof Canvas) {
910
- texImage2D(target, level, internalformat, width, height, border._canvas.native);
624
+ this.native.texImage2D(target, level, internalformat, width, height, border._canvas.native);
911
625
  }
912
626
  }
913
627
  }
914
628
  texParameterf(target, pname, param) {
915
- this._glCheckError('texParameterf');
916
- this._checkArgs('texParameterf', arguments);
917
- const texParameterf = this._getMethod('texParameterf');
918
- texParameterf(target, pname, param);
629
+ this.native.texParameterf(target, pname, param);
919
630
  }
920
631
  texParameteri(target, pname, param) {
921
- this._glCheckError('texParameteri');
922
- this._checkArgs('texParameteri', arguments);
923
- const texParameteri = this._getMethod('texParameteri');
924
- texParameteri(target, pname, param);
632
+ this.native.texParameteri(target, pname, param);
925
633
  }
926
634
  texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) {
927
- this._glCheckError('texSubImage2D');
928
- this._checkArgs('texSubImage2D', arguments);
929
- const texSubImage2D = this._getMethod('texSubImage2D');
930
- if (arguments.length === 9) {
931
- texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
635
+ const length = arguments.length;
636
+ if (length === 9) {
637
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
932
638
  }
933
- else if (arguments.length === 7) {
639
+ else if (length === 7) {
934
640
  if (global.isAndroid && format instanceof android.graphics.Bitmap) {
935
641
  // todo
936
- texSubImage2D(target, level, xoffset, yoffset, width, height, format);
642
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format);
937
643
  }
938
644
  else if (format instanceof ImageSource) {
939
- texSubImage2D(target, level, xoffset, yoffset, width, height, format.android);
645
+ if (global.isAndroid) {
646
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format.android);
647
+ }
940
648
  }
941
649
  else if (format instanceof ImageAsset) {
942
- texSubImage2D(target, level, xoffset, yoffset, width, height, format.native);
650
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format.native);
651
+ }
652
+ else if (format instanceof Canvas) {
653
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format.native);
943
654
  }
944
655
  else if (format instanceof ImageBitmap) {
945
- texSubImage2D(target, level, xoffset, yoffset, width, height, format.native);
656
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format.native);
946
657
  }
947
658
  else if (format && typeof format.tagName === 'string' && (format.tagName === 'IMG' || format.tagName === 'IMAGE')) {
948
659
  if (format._imageSource instanceof ImageSource) {
949
- texSubImage2D(target, level, xoffset, yoffset, width, height, format._imageSource.android);
660
+ if (global.isAndroid) {
661
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format._imageSource.android);
662
+ }
950
663
  }
951
664
  else if (global.isAndroid && format._image instanceof android.graphics.Bitmap) {
952
665
  // todo
953
- texSubImage2D(target, level, xoffset, yoffset, width, height, format._image);
666
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format._image);
954
667
  }
955
668
  else if (format._asset instanceof ImageAsset) {
956
- texSubImage2D(target, level, xoffset, yoffset, width, height, format._asset.native);
669
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format._asset.native);
957
670
  }
958
671
  else if (typeof format.src === 'string') {
959
672
  const result = ImageSource.fromFileSync(format.src);
960
- texSubImage2D(target, level, xoffset, yoffset, width, height, result ? result.android : null);
673
+ if (global.isAndroid && result.android) {
674
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, result.android);
675
+ }
676
+ if (global.isIOS && result.ios) {
677
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, result.ios);
678
+ }
961
679
  }
962
680
  }
963
681
  else if (format && typeof format.tagName === 'string' && format.tagName === 'CANVAS' && format._canvas instanceof Canvas) {
964
- texSubImage2D(target, level, xoffset, yoffset, width, height, format._canvas.native);
682
+ this.native.texSubImage2D(target, level, xoffset, yoffset, width, height, format._canvas.native);
965
683
  }
966
684
  }
967
685
  }
968
686
  uniform1f(location, v0) {
969
- this._glCheckError('uniform1f');
970
- this._checkArgs('uniform1f', arguments);
971
- const uniform1f = this._getMethod('uniform1f');
972
687
  const loc = location.native;
973
- uniform1f(loc, v0);
688
+ this.native.uniform1f(loc, v0);
974
689
  }
975
690
  uniform1iv(location, value) {
976
- this._glCheckError('uniform1iv');
977
- this._checkArgs('uniform1iv', arguments);
978
691
  const loc = location.native;
979
- const uniform1iv = this._getMethod('uniform1iv');
980
- uniform1iv(loc, value);
692
+ this.native.uniform1iv(loc, value);
981
693
  }
982
694
  uniform1fv(location, value) {
983
- this._glCheckError('uniform1fv');
984
- this._checkArgs('uniform1fv', arguments);
985
695
  const loc = location.native;
986
- const uniform1fv = this._getMethod('uniform1fv');
987
- uniform1fv(loc, value);
696
+ this.native.uniform1fv(loc, value);
988
697
  }
989
698
  uniform1i(location, v0) {
990
- this._glCheckError('uniform1i');
991
- this._checkArgs('uniform1i', arguments);
992
- const uniform1i = this._getMethod('uniform1i');
993
699
  const loc = location.native;
994
- uniform1i(loc, Number(v0));
700
+ this.native.uniform1i(loc, Number(v0));
995
701
  }
996
702
  uniform2f(location, v0, v1) {
997
- this._glCheckError('uniform2f');
998
- this._checkArgs('uniform2f', arguments);
999
- const uniform2f = this._getMethod('uniform2f');
1000
703
  const loc = location.native;
1001
- uniform2f(loc, v0, v1);
704
+ this.native.uniform2f(loc, v0, v1);
1002
705
  }
1003
706
  uniform2iv(location, value) {
1004
- this._glCheckError('uniform2iv');
1005
- this._checkArgs('uniform2iv', arguments);
1006
707
  const loc = location.native;
1007
- const uniform2iv = this._getMethod('uniform2iv');
1008
- uniform2iv(loc, value);
708
+ this.native.uniform2iv(loc, value);
1009
709
  }
1010
710
  uniform2fv(location, value) {
1011
- this._glCheckError('uniform2fv');
1012
- this._checkArgs('uniform2fv', arguments);
1013
711
  const loc = location.native;
1014
- const uniform2fv = this._getMethod('uniform2fv');
1015
- uniform2fv(loc, value);
712
+ this.native.uniform2fv(loc, value);
1016
713
  }
1017
714
  uniform2i(location, v0, v1) {
1018
- this._glCheckError('uniform2i');
1019
- this._checkArgs('uniform2i', arguments);
1020
- const uniform2i = this._getMethod('uniform2i');
1021
715
  const loc = location.native;
1022
- uniform2i(loc, v0, v1);
716
+ this.native.uniform2i(loc, v0, v1);
1023
717
  }
1024
718
  uniform3f(location, v0, v1, v2) {
1025
- this._glCheckError('uniform3f');
1026
- this._checkArgs('uniform3f', arguments);
1027
- const uniform3f = this._getMethod('uniform3f');
1028
719
  const loc = location.native;
1029
- uniform3f(loc, v0, v1, v2);
720
+ this.native.uniform3f(loc, v0, v1, v2);
1030
721
  }
1031
722
  uniform3iv(location, value) {
1032
- this._glCheckError('uniform3iv');
1033
- this._checkArgs('uniform3iv', arguments);
1034
723
  const loc = location.native;
1035
- const uniform3iv = this._getMethod('uniform3iv');
1036
- uniform3iv(loc, value);
724
+ this.native.uniform3iv(loc, value);
1037
725
  }
1038
726
  uniform3fv(location, value) {
1039
- this._glCheckError('uniform3fv');
1040
- this._checkArgs('uniform3fv', arguments);
1041
727
  const loc = location.native;
1042
- const uniform3fv = this._getMethod('uniform3fv');
1043
- uniform3fv(loc, value);
728
+ this.native.uniform3fv(loc, value);
1044
729
  }
1045
730
  uniform3i(location, v0, v1, v2) {
1046
- this._glCheckError('uniform3i');
1047
- this._checkArgs('uniform3i', arguments);
1048
- const uniform3i = this._getMethod('uniform3i');
1049
731
  const loc = location.native;
1050
- uniform3i(loc, v0, v1, v2);
732
+ this.native.uniform3i(loc, v0, v1, v2);
1051
733
  }
1052
734
  uniform4f(location, v0, v1, v2, v3) {
1053
- this._glCheckError('uniform4f');
1054
- this._checkArgs('uniform4f', arguments);
1055
- const uniform4f = this._getMethod('uniform4f');
1056
735
  const loc = location.native;
1057
- uniform4f(loc, v0, v1, v2, v3);
736
+ this.native.uniform4f(loc, v0, v1, v2, v3);
1058
737
  }
1059
738
  uniform4iv(location, value) {
1060
- this._glCheckError('uniform4iv');
1061
- this._checkArgs('uniform4iv', arguments);
1062
739
  const loc = location.native;
1063
- const uniform4iv = this._getMethod('uniform4iv');
1064
- uniform4iv(loc, value);
740
+ this.native.uniform4iv(loc, value);
1065
741
  }
1066
742
  uniform4fv(location, value) {
1067
- this._glCheckError('uniform4fv');
1068
- this._checkArgs('uniform4fv', arguments);
1069
743
  const loc = location.native;
1070
- const uniform4fv = this._getMethod('uniform4fv');
1071
- uniform4fv(loc, value);
744
+ this.native.uniform4fv(loc, value);
1072
745
  }
1073
746
  uniform4i(location, v0, v1, v2, v3) {
1074
- this._glCheckError('uniform4i');
1075
- this._checkArgs('uniform4i', arguments);
1076
- const uniform4i = this._getMethod('uniform4i');
1077
747
  const loc = location.native;
1078
- uniform4i(loc, v0, v1, v2, v3);
748
+ this.native.uniform4i(loc, v0, v1, v2, v3);
1079
749
  }
1080
750
  uniformMatrix2fv(location, transpose, value) {
1081
- this._glCheckError('uniformMatrix2fv');
1082
- this._checkArgs('uniformMatrix2fv', arguments);
1083
751
  const loc = location.native;
1084
- const uniformMatrix2fv = this._getMethod('uniformMatrix2fv');
1085
- uniformMatrix2fv(loc, transpose, value);
752
+ this.native.uniformMatrix2fv(loc, transpose, value);
1086
753
  }
1087
754
  uniformMatrix3fv(location, transpose, value) {
1088
- this._glCheckError('uniformMatrix3fv');
1089
- this._checkArgs('uniformMatrix3fv', arguments);
1090
755
  const loc = location.native;
1091
- const uniformMatrix3fv = this._getMethod('uniformMatrix3fv');
1092
- uniformMatrix3fv(loc, transpose, value);
756
+ this.native.uniformMatrix3fv(loc, transpose, value);
1093
757
  }
1094
758
  uniformMatrix4fv(location, transpose, value) {
1095
- this._glCheckError('uniformMatrix4fv');
1096
- this._checkArgs('uniformMatrix4fv', arguments);
1097
759
  const loc = location.native;
1098
- const uniformMatrix4fv = this._getMethod('uniformMatrix4fv');
1099
- uniformMatrix4fv(loc, transpose, value);
760
+ this.native.uniformMatrix4fv(loc, transpose, value);
1100
761
  }
1101
762
  useProgram(program) {
1102
- this._glCheckError('useProgram');
1103
- this._checkArgs('useProgram', arguments);
1104
- const useProgram = this._getMethod('useProgram');
1105
- const value = program ? program.native : null;
1106
- useProgram(value);
763
+ const value = program ? program.native : 0;
764
+ this.native.useProgram(value);
1107
765
  }
1108
766
  validateProgram(program) {
1109
- this._glCheckError('validateProgram');
1110
- this._checkArgs('validateProgram', arguments);
1111
- const validateProgram = this._getMethod('validateProgram');
1112
767
  const value = program.native;
1113
- validateProgram(value);
768
+ this.native.validateProgram(value);
1114
769
  }
1115
770
  vertexAttrib1f(index, v0) {
1116
- this._glCheckError('vertexAttrib1f');
1117
- this._checkArgs('vertexAttrib1f', arguments);
1118
- const vertexAttrib1f = this._getMethod('vertexAttrib1f');
1119
- vertexAttrib1f(index, v0);
771
+ this.native.vertexAttrib1f(index, v0);
1120
772
  }
1121
773
  vertexAttrib1fv(index, value) {
1122
- this._glCheckError('vertexAttrib1fv');
1123
- this._checkArgs('vertexAttrib1fv', arguments);
1124
- const vertexAttrib1fv = this._getMethod('vertexAttrib1fv');
1125
- vertexAttrib1fv(index, value);
774
+ this.native.vertexAttrib1fv(index, value);
1126
775
  }
1127
776
  vertexAttrib2f(index, v0, v1) {
1128
- this._glCheckError('vertexAttrib2f');
1129
- this._checkArgs('vertexAttrib2f', arguments);
1130
- const vertexAttrib2f = this._getMethod('vertexAttrib2f');
1131
- vertexAttrib2f(index, v0, v1);
777
+ this.native.vertexAttrib2f(index, v0, v1);
1132
778
  }
1133
779
  vertexAttrib2fv(index, value) {
1134
- this._glCheckError('vertexAttrib2fv');
1135
- this._checkArgs('vertexAttrib2fv', arguments);
1136
- const vertexAttrib2fv = this._getMethod('vertexAttrib2fv');
1137
- vertexAttrib2fv(index, value);
780
+ this.native.vertexAttrib2fv(index, value);
1138
781
  }
1139
782
  vertexAttrib3f(index, v0, v1, v2) {
1140
- this._glCheckError('vertexAttrib3f');
1141
- this._checkArgs('vertexAttrib3f', arguments);
1142
- const vertexAttrib3f = this._getMethod('vertexAttrib3f');
1143
- vertexAttrib3f(index, v0, v1, v2);
783
+ this.native.vertexAttrib3f(index, v0, v1, v2);
1144
784
  }
1145
785
  vertexAttrib3fv(index, value) {
1146
- this._glCheckError('vertexAttrib3fv');
1147
- this._checkArgs('vertexAttrib3fv', arguments);
1148
- const vertexAttrib3fv = this._getMethod('vertexAttrib3fv');
1149
- vertexAttrib3fv(index, value);
786
+ this.native.vertexAttrib3fv(index, value);
1150
787
  }
1151
788
  vertexAttrib4f(index, v0, v1, v2, v3) {
1152
- this._glCheckError('vertexAttrib4f');
1153
- this._checkArgs('vertexAttrib4f', arguments);
1154
- const vertexAttrib4f = this._getMethod('vertexAttrib4f');
1155
- vertexAttrib4f(index, v0, v1, v2, v3);
789
+ this.native.vertexAttrib4f(index, v0, v1, v2, v3);
1156
790
  }
1157
791
  vertexAttrib4fv(index, value) {
1158
- this._glCheckError('vertexAttrib4fv');
1159
- this._checkArgs('vertexAttrib4fv', arguments);
1160
- const vertexAttrib4fv = this._getMethod('vertexAttrib4fv');
1161
- vertexAttrib4fv(index, value);
792
+ this.native.vertexAttrib4fv(index, value);
1162
793
  }
1163
794
  vertexAttribPointer(index, size, type, normalized, stride, offset) {
1164
- this._glCheckError('vertexAttribPointer');
1165
- this._checkArgs('vertexAttribPointer', arguments);
1166
- const vertexAttribPointer = this._getMethod('vertexAttribPointer');
1167
- vertexAttribPointer(index, size, type, !!normalized, stride, offset);
795
+ this.native.vertexAttribPointer(index, size, type, !!normalized, stride, offset);
1168
796
  }
1169
797
  viewport(x, y, width, height) {
1170
- this._glCheckError('viewport');
1171
- this._checkArgs('viewport', arguments);
1172
- const viewport = this._getMethod('viewport');
1173
- viewport(x, y, width, height);
798
+ this.native.viewport(x, y, width, height);
1174
799
  }
1175
800
  _glCheckError(message) {
1176
801
  if (!WebGLRenderingContext.isDebug) {
@@ -1191,832 +816,833 @@ export class WebGLRenderingContext extends WebGLRenderingContextBase {
1191
816
  }
1192
817
  }
1193
818
  }
1194
- WebGLRenderingContext.isDebug = false;
1195
- WebGLRenderingContext.filter = 'both';
819
+ WebGLRenderingContextBase.isDebug = false;
820
+ WebGLRenderingContextBase.filter = 'both';
1196
821
  (() => {
1197
822
  Helpers.initialize();
1198
- ctor = global.CanvasJSIModule.createWebGLContext;
1199
823
  })();
1200
824
  __decorate([
1201
825
  profile,
1202
826
  __metadata("design:type", Function),
1203
827
  __metadata("design:paramtypes", [Number]),
1204
828
  __metadata("design:returntype", void 0)
1205
- ], WebGLRenderingContext.prototype, "activeTexture", null);
829
+ ], WebGLRenderingContextBase.prototype, "activeTexture", null);
1206
830
  __decorate([
1207
831
  profile,
1208
832
  __metadata("design:type", Function),
1209
833
  __metadata("design:paramtypes", [WebGLProgram, WebGLShader]),
1210
834
  __metadata("design:returntype", void 0)
1211
- ], WebGLRenderingContext.prototype, "attachShader", null);
835
+ ], WebGLRenderingContextBase.prototype, "attachShader", null);
1212
836
  __decorate([
1213
837
  profile,
1214
838
  __metadata("design:type", Function),
1215
839
  __metadata("design:paramtypes", [WebGLProgram, Number, String]),
1216
840
  __metadata("design:returntype", void 0)
1217
- ], WebGLRenderingContext.prototype, "bindAttribLocation", null);
841
+ ], WebGLRenderingContextBase.prototype, "bindAttribLocation", null);
1218
842
  __decorate([
1219
843
  profile,
1220
844
  __metadata("design:type", Function),
1221
845
  __metadata("design:paramtypes", [Number, WebGLBuffer]),
1222
846
  __metadata("design:returntype", void 0)
1223
- ], WebGLRenderingContext.prototype, "bindBuffer", null);
847
+ ], WebGLRenderingContextBase.prototype, "bindBuffer", null);
1224
848
  __decorate([
1225
849
  profile,
1226
850
  __metadata("design:type", Function),
1227
851
  __metadata("design:paramtypes", [Number, WebGLFramebuffer]),
1228
852
  __metadata("design:returntype", void 0)
1229
- ], WebGLRenderingContext.prototype, "bindFramebuffer", null);
853
+ ], WebGLRenderingContextBase.prototype, "bindFramebuffer", null);
1230
854
  __decorate([
1231
855
  profile,
1232
856
  __metadata("design:type", Function),
1233
857
  __metadata("design:paramtypes", [Number, WebGLRenderbuffer]),
1234
858
  __metadata("design:returntype", void 0)
1235
- ], WebGLRenderingContext.prototype, "bindRenderbuffer", null);
859
+ ], WebGLRenderingContextBase.prototype, "bindRenderbuffer", null);
1236
860
  __decorate([
1237
861
  profile,
1238
862
  __metadata("design:type", Function),
1239
863
  __metadata("design:paramtypes", [Number, WebGLTexture]),
1240
864
  __metadata("design:returntype", void 0)
1241
- ], WebGLRenderingContext.prototype, "bindTexture", null);
865
+ ], WebGLRenderingContextBase.prototype, "bindTexture", null);
1242
866
  __decorate([
1243
867
  profile,
1244
868
  __metadata("design:type", Function),
1245
869
  __metadata("design:paramtypes", [Number, Number, Number, Number]),
1246
870
  __metadata("design:returntype", void 0)
1247
- ], WebGLRenderingContext.prototype, "blendColor", null);
871
+ ], WebGLRenderingContextBase.prototype, "blendColor", null);
1248
872
  __decorate([
1249
873
  profile,
1250
874
  __metadata("design:type", Function),
1251
875
  __metadata("design:paramtypes", [Number, Number]),
1252
876
  __metadata("design:returntype", void 0)
1253
- ], WebGLRenderingContext.prototype, "blendEquationSeparate", null);
877
+ ], WebGLRenderingContextBase.prototype, "blendEquationSeparate", null);
1254
878
  __decorate([
1255
879
  profile,
1256
880
  __metadata("design:type", Function),
1257
881
  __metadata("design:paramtypes", [Number]),
1258
882
  __metadata("design:returntype", void 0)
1259
- ], WebGLRenderingContext.prototype, "blendEquation", null);
883
+ ], WebGLRenderingContextBase.prototype, "blendEquation", null);
1260
884
  __decorate([
1261
885
  profile,
1262
886
  __metadata("design:type", Function),
1263
887
  __metadata("design:paramtypes", [Number, Number, Number, Number]),
1264
888
  __metadata("design:returntype", void 0)
1265
- ], WebGLRenderingContext.prototype, "blendFuncSeparate", null);
889
+ ], WebGLRenderingContextBase.prototype, "blendFuncSeparate", null);
1266
890
  __decorate([
1267
891
  profile,
1268
892
  __metadata("design:type", Function),
1269
893
  __metadata("design:paramtypes", [Number, Number]),
1270
894
  __metadata("design:returntype", void 0)
1271
- ], WebGLRenderingContext.prototype, "blendFunc", null);
895
+ ], WebGLRenderingContextBase.prototype, "blendFunc", null);
1272
896
  __decorate([
1273
897
  profile,
1274
898
  __metadata("design:type", Function),
1275
899
  __metadata("design:paramtypes", [Object, Object, Object]),
1276
900
  __metadata("design:returntype", void 0)
1277
- ], WebGLRenderingContext.prototype, "bufferData", null);
901
+ ], WebGLRenderingContextBase.prototype, "bufferData", null);
1278
902
  __decorate([
1279
903
  profile,
1280
904
  __metadata("design:type", Function),
1281
905
  __metadata("design:paramtypes", [Number, Number, Object]),
1282
906
  __metadata("design:returntype", void 0)
1283
- ], WebGLRenderingContext.prototype, "bufferSubData", null);
907
+ ], WebGLRenderingContextBase.prototype, "bufferSubData", null);
1284
908
  __decorate([
1285
909
  profile,
1286
910
  __metadata("design:type", Function),
1287
911
  __metadata("design:paramtypes", [Number]),
1288
912
  __metadata("design:returntype", Number)
1289
- ], WebGLRenderingContext.prototype, "checkFramebufferStatus", null);
913
+ ], WebGLRenderingContextBase.prototype, "checkFramebufferStatus", null);
1290
914
  __decorate([
1291
915
  profile,
1292
916
  __metadata("design:type", Function),
1293
917
  __metadata("design:paramtypes", [Number, Number, Number, Number]),
1294
918
  __metadata("design:returntype", void 0)
1295
- ], WebGLRenderingContext.prototype, "clearColor", null);
919
+ ], WebGLRenderingContextBase.prototype, "clearColor", null);
1296
920
  __decorate([
1297
921
  profile,
1298
922
  __metadata("design:type", Function),
1299
923
  __metadata("design:paramtypes", [Number]),
1300
924
  __metadata("design:returntype", void 0)
1301
- ], WebGLRenderingContext.prototype, "clearDepth", null);
925
+ ], WebGLRenderingContextBase.prototype, "clearDepth", null);
1302
926
  __decorate([
1303
927
  profile,
1304
928
  __metadata("design:type", Function),
1305
929
  __metadata("design:paramtypes", [Number]),
1306
930
  __metadata("design:returntype", void 0)
1307
- ], WebGLRenderingContext.prototype, "clearStencil", null);
931
+ ], WebGLRenderingContextBase.prototype, "clearStencil", null);
1308
932
  __decorate([
1309
933
  profile,
1310
934
  __metadata("design:type", Function),
1311
935
  __metadata("design:paramtypes", [Number]),
1312
936
  __metadata("design:returntype", void 0)
1313
- ], WebGLRenderingContext.prototype, "clear", null);
937
+ ], WebGLRenderingContextBase.prototype, "clear", null);
1314
938
  __decorate([
1315
939
  profile,
1316
940
  __metadata("design:type", Function),
1317
941
  __metadata("design:paramtypes", [Boolean, Boolean, Boolean, Boolean]),
1318
942
  __metadata("design:returntype", void 0)
1319
- ], WebGLRenderingContext.prototype, "colorMask", null);
943
+ ], WebGLRenderingContextBase.prototype, "colorMask", null);
1320
944
  __decorate([
1321
945
  profile,
1322
946
  __metadata("design:type", Function),
1323
947
  __metadata("design:paramtypes", []),
1324
948
  __metadata("design:returntype", void 0)
1325
- ], WebGLRenderingContext.prototype, "commit", null);
949
+ ], WebGLRenderingContextBase.prototype, "commit", null);
1326
950
  __decorate([
1327
951
  profile,
1328
952
  __metadata("design:type", Function),
1329
953
  __metadata("design:paramtypes", [WebGLShader]),
1330
954
  __metadata("design:returntype", void 0)
1331
- ], WebGLRenderingContext.prototype, "compileShader", null);
955
+ ], WebGLRenderingContextBase.prototype, "compileShader", null);
1332
956
  __decorate([
1333
957
  profile,
1334
958
  __metadata("design:type", Function),
1335
959
  __metadata("design:paramtypes", [Number, Number, Number, Number, Number, Number, Object]),
1336
960
  __metadata("design:returntype", void 0)
1337
- ], WebGLRenderingContext.prototype, "compressedTexImage2D", null);
961
+ ], WebGLRenderingContextBase.prototype, "compressedTexImage2D", null);
1338
962
  __decorate([
1339
963
  profile,
1340
964
  __metadata("design:type", Function),
1341
965
  __metadata("design:paramtypes", [Number, Number, Number, Number, Number, Number, Number, Object]),
1342
966
  __metadata("design:returntype", void 0)
1343
- ], WebGLRenderingContext.prototype, "compressedTexSubImage2D", null);
967
+ ], WebGLRenderingContextBase.prototype, "compressedTexSubImage2D", null);
1344
968
  __decorate([
1345
969
  profile,
1346
970
  __metadata("design:type", Function),
1347
971
  __metadata("design:paramtypes", [Number, Number, Number, Number, Number, Number, Number, Number]),
1348
972
  __metadata("design:returntype", void 0)
1349
- ], WebGLRenderingContext.prototype, "copyTexImage2D", null);
973
+ ], WebGLRenderingContextBase.prototype, "copyTexImage2D", null);
1350
974
  __decorate([
1351
975
  profile,
1352
976
  __metadata("design:type", Function),
1353
977
  __metadata("design:paramtypes", [Number, Number, Number, Number, Number, Number, Number, Number]),
1354
978
  __metadata("design:returntype", void 0)
1355
- ], WebGLRenderingContext.prototype, "copyTexSubImage2D", null);
979
+ ], WebGLRenderingContextBase.prototype, "copyTexSubImage2D", null);
1356
980
  __decorate([
1357
981
  profile,
1358
982
  __metadata("design:type", Function),
1359
983
  __metadata("design:paramtypes", []),
1360
984
  __metadata("design:returntype", WebGLBuffer)
1361
- ], WebGLRenderingContext.prototype, "createBuffer", null);
985
+ ], WebGLRenderingContextBase.prototype, "createBuffer", null);
1362
986
  __decorate([
1363
987
  profile,
1364
988
  __metadata("design:type", Function),
1365
989
  __metadata("design:paramtypes", []),
1366
990
  __metadata("design:returntype", WebGLFramebuffer)
1367
- ], WebGLRenderingContext.prototype, "createFramebuffer", null);
991
+ ], WebGLRenderingContextBase.prototype, "createFramebuffer", null);
1368
992
  __decorate([
1369
993
  profile,
1370
994
  __metadata("design:type", Function),
1371
995
  __metadata("design:paramtypes", []),
1372
996
  __metadata("design:returntype", WebGLProgram)
1373
- ], WebGLRenderingContext.prototype, "createProgram", null);
997
+ ], WebGLRenderingContextBase.prototype, "createProgram", null);
1374
998
  __decorate([
1375
999
  profile,
1376
1000
  __metadata("design:type", Function),
1377
1001
  __metadata("design:paramtypes", []),
1378
1002
  __metadata("design:returntype", WebGLRenderbuffer)
1379
- ], WebGLRenderingContext.prototype, "createRenderbuffer", null);
1003
+ ], WebGLRenderingContextBase.prototype, "createRenderbuffer", null);
1380
1004
  __decorate([
1381
1005
  profile,
1382
1006
  __metadata("design:type", Function),
1383
1007
  __metadata("design:paramtypes", [Number]),
1384
1008
  __metadata("design:returntype", WebGLShader)
1385
- ], WebGLRenderingContext.prototype, "createShader", null);
1009
+ ], WebGLRenderingContextBase.prototype, "createShader", null);
1386
1010
  __decorate([
1387
1011
  profile,
1388
1012
  __metadata("design:type", Function),
1389
1013
  __metadata("design:paramtypes", []),
1390
1014
  __metadata("design:returntype", WebGLTexture)
1391
- ], WebGLRenderingContext.prototype, "createTexture", null);
1015
+ ], WebGLRenderingContextBase.prototype, "createTexture", null);
1392
1016
  __decorate([
1393
1017
  profile,
1394
1018
  __metadata("design:type", Function),
1395
1019
  __metadata("design:paramtypes", [Number]),
1396
1020
  __metadata("design:returntype", void 0)
1397
- ], WebGLRenderingContext.prototype, "cullFace", null);
1021
+ ], WebGLRenderingContextBase.prototype, "cullFace", null);
1398
1022
  __decorate([
1399
1023
  profile,
1400
1024
  __metadata("design:type", Function),
1401
1025
  __metadata("design:paramtypes", [WebGLBuffer]),
1402
1026
  __metadata("design:returntype", void 0)
1403
- ], WebGLRenderingContext.prototype, "deleteBuffer", null);
1027
+ ], WebGLRenderingContextBase.prototype, "deleteBuffer", null);
1404
1028
  __decorate([
1405
1029
  profile,
1406
1030
  __metadata("design:type", Function),
1407
1031
  __metadata("design:paramtypes", [WebGLFramebuffer]),
1408
1032
  __metadata("design:returntype", void 0)
1409
- ], WebGLRenderingContext.prototype, "deleteFramebuffer", null);
1033
+ ], WebGLRenderingContextBase.prototype, "deleteFramebuffer", null);
1410
1034
  __decorate([
1411
1035
  profile,
1412
1036
  __metadata("design:type", Function),
1413
1037
  __metadata("design:paramtypes", [WebGLProgram]),
1414
1038
  __metadata("design:returntype", void 0)
1415
- ], WebGLRenderingContext.prototype, "deleteProgram", null);
1039
+ ], WebGLRenderingContextBase.prototype, "deleteProgram", null);
1416
1040
  __decorate([
1417
1041
  profile,
1418
1042
  __metadata("design:type", Function),
1419
1043
  __metadata("design:paramtypes", [WebGLRenderbuffer]),
1420
1044
  __metadata("design:returntype", void 0)
1421
- ], WebGLRenderingContext.prototype, "deleteRenderbuffer", null);
1045
+ ], WebGLRenderingContextBase.prototype, "deleteRenderbuffer", null);
1422
1046
  __decorate([
1423
1047
  profile,
1424
1048
  __metadata("design:type", Function),
1425
1049
  __metadata("design:paramtypes", [WebGLRenderbuffer]),
1426
1050
  __metadata("design:returntype", void 0)
1427
- ], WebGLRenderingContext.prototype, "deleteShader", null);
1051
+ ], WebGLRenderingContextBase.prototype, "deleteShader", null);
1428
1052
  __decorate([
1429
1053
  profile,
1430
1054
  __metadata("design:type", Function),
1431
1055
  __metadata("design:paramtypes", [WebGLTexture]),
1432
1056
  __metadata("design:returntype", void 0)
1433
- ], WebGLRenderingContext.prototype, "deleteTexture", null);
1057
+ ], WebGLRenderingContextBase.prototype, "deleteTexture", null);
1434
1058
  __decorate([
1435
1059
  profile,
1436
1060
  __metadata("design:type", Function),
1437
1061
  __metadata("design:paramtypes", [Number]),
1438
1062
  __metadata("design:returntype", void 0)
1439
- ], WebGLRenderingContext.prototype, "depthFunc", null);
1063
+ ], WebGLRenderingContextBase.prototype, "depthFunc", null);
1440
1064
  __decorate([
1441
1065
  profile,
1442
1066
  __metadata("design:type", Function),
1443
1067
  __metadata("design:paramtypes", [Boolean]),
1444
1068
  __metadata("design:returntype", void 0)
1445
- ], WebGLRenderingContext.prototype, "depthMask", null);
1069
+ ], WebGLRenderingContextBase.prototype, "depthMask", null);
1446
1070
  __decorate([
1447
1071
  profile,
1448
1072
  __metadata("design:type", Function),
1449
1073
  __metadata("design:paramtypes", [Number, Number]),
1450
1074
  __metadata("design:returntype", void 0)
1451
- ], WebGLRenderingContext.prototype, "depthRange", null);
1075
+ ], WebGLRenderingContextBase.prototype, "depthRange", null);
1452
1076
  __decorate([
1453
1077
  profile,
1454
1078
  __metadata("design:type", Function),
1455
1079
  __metadata("design:paramtypes", [WebGLProgram, WebGLShader]),
1456
1080
  __metadata("design:returntype", void 0)
1457
- ], WebGLRenderingContext.prototype, "detachShader", null);
1081
+ ], WebGLRenderingContextBase.prototype, "detachShader", null);
1458
1082
  __decorate([
1459
1083
  profile,
1460
1084
  __metadata("design:type", Function),
1461
1085
  __metadata("design:paramtypes", [Number]),
1462
1086
  __metadata("design:returntype", void 0)
1463
- ], WebGLRenderingContext.prototype, "disableVertexAttribArray", null);
1087
+ ], WebGLRenderingContextBase.prototype, "disableVertexAttribArray", null);
1464
1088
  __decorate([
1465
1089
  profile,
1466
1090
  __metadata("design:type", Function),
1467
1091
  __metadata("design:paramtypes", [Number]),
1468
1092
  __metadata("design:returntype", void 0)
1469
- ], WebGLRenderingContext.prototype, "disable", null);
1093
+ ], WebGLRenderingContextBase.prototype, "disable", null);
1470
1094
  __decorate([
1471
1095
  profile,
1472
1096
  __metadata("design:type", Function),
1473
1097
  __metadata("design:paramtypes", [Number, Number, Number]),
1474
1098
  __metadata("design:returntype", void 0)
1475
- ], WebGLRenderingContext.prototype, "drawArrays", null);
1099
+ ], WebGLRenderingContextBase.prototype, "drawArrays", null);
1476
1100
  __decorate([
1477
1101
  profile,
1478
1102
  __metadata("design:type", Function),
1479
1103
  __metadata("design:paramtypes", [Number, Number, Number, Number]),
1480
1104
  __metadata("design:returntype", void 0)
1481
- ], WebGLRenderingContext.prototype, "drawElements", null);
1105
+ ], WebGLRenderingContextBase.prototype, "drawElements", null);
1482
1106
  __decorate([
1483
1107
  profile,
1484
1108
  __metadata("design:type", Function),
1485
1109
  __metadata("design:paramtypes", [Number]),
1486
1110
  __metadata("design:returntype", void 0)
1487
- ], WebGLRenderingContext.prototype, "enableVertexAttribArray", null);
1111
+ ], WebGLRenderingContextBase.prototype, "enableVertexAttribArray", null);
1488
1112
  __decorate([
1489
1113
  profile,
1490
1114
  __metadata("design:type", Function),
1491
1115
  __metadata("design:paramtypes", [Number]),
1492
1116
  __metadata("design:returntype", void 0)
1493
- ], WebGLRenderingContext.prototype, "enable", null);
1117
+ ], WebGLRenderingContextBase.prototype, "enable", null);
1494
1118
  __decorate([
1495
1119
  profile,
1496
1120
  __metadata("design:type", Function),
1497
1121
  __metadata("design:paramtypes", []),
1498
1122
  __metadata("design:returntype", void 0)
1499
- ], WebGLRenderingContext.prototype, "finish", null);
1123
+ ], WebGLRenderingContextBase.prototype, "finish", null);
1500
1124
  __decorate([
1501
1125
  profile,
1502
1126
  __metadata("design:type", Function),
1503
1127
  __metadata("design:paramtypes", []),
1504
1128
  __metadata("design:returntype", void 0)
1505
- ], WebGLRenderingContext.prototype, "flush", null);
1129
+ ], WebGLRenderingContextBase.prototype, "flush", null);
1506
1130
  __decorate([
1507
1131
  profile,
1508
1132
  __metadata("design:type", Function),
1509
1133
  __metadata("design:paramtypes", [Number, Number, Number, WebGLRenderbuffer]),
1510
1134
  __metadata("design:returntype", void 0)
1511
- ], WebGLRenderingContext.prototype, "framebufferRenderbuffer", null);
1135
+ ], WebGLRenderingContextBase.prototype, "framebufferRenderbuffer", null);
1512
1136
  __decorate([
1513
1137
  profile,
1514
1138
  __metadata("design:type", Function),
1515
1139
  __metadata("design:paramtypes", [Number, Number, Number, WebGLTexture, Number]),
1516
1140
  __metadata("design:returntype", void 0)
1517
- ], WebGLRenderingContext.prototype, "framebufferTexture2D", null);
1141
+ ], WebGLRenderingContextBase.prototype, "framebufferTexture2D", null);
1518
1142
  __decorate([
1519
1143
  profile,
1520
1144
  __metadata("design:type", Function),
1521
1145
  __metadata("design:paramtypes", [Number]),
1522
1146
  __metadata("design:returntype", void 0)
1523
- ], WebGLRenderingContext.prototype, "frontFace", null);
1147
+ ], WebGLRenderingContextBase.prototype, "frontFace", null);
1524
1148
  __decorate([
1525
1149
  profile,
1526
1150
  __metadata("design:type", Function),
1527
1151
  __metadata("design:paramtypes", [Number]),
1528
1152
  __metadata("design:returntype", void 0)
1529
- ], WebGLRenderingContext.prototype, "generateMipmap", null);
1153
+ ], WebGLRenderingContextBase.prototype, "generateMipmap", null);
1530
1154
  __decorate([
1531
1155
  profile,
1532
1156
  __metadata("design:type", Function),
1533
1157
  __metadata("design:paramtypes", [WebGLProgram, Number]),
1534
1158
  __metadata("design:returntype", WebGLActiveInfo)
1535
- ], WebGLRenderingContext.prototype, "getActiveAttrib", null);
1159
+ ], WebGLRenderingContextBase.prototype, "getActiveAttrib", null);
1536
1160
  __decorate([
1537
1161
  profile,
1538
1162
  __metadata("design:type", Function),
1539
1163
  __metadata("design:paramtypes", [WebGLProgram, Number]),
1540
1164
  __metadata("design:returntype", WebGLActiveInfo)
1541
- ], WebGLRenderingContext.prototype, "getActiveUniform", null);
1165
+ ], WebGLRenderingContextBase.prototype, "getActiveUniform", null);
1542
1166
  __decorate([
1543
1167
  profile,
1544
1168
  __metadata("design:type", Function),
1545
1169
  __metadata("design:paramtypes", [WebGLProgram]),
1546
1170
  __metadata("design:returntype", Array)
1547
- ], WebGLRenderingContext.prototype, "getAttachedShaders", null);
1171
+ ], WebGLRenderingContextBase.prototype, "getAttachedShaders", null);
1548
1172
  __decorate([
1549
1173
  profile,
1550
1174
  __metadata("design:type", Function),
1551
1175
  __metadata("design:paramtypes", [WebGLProgram, String]),
1552
1176
  __metadata("design:returntype", Number)
1553
- ], WebGLRenderingContext.prototype, "getAttribLocation", null);
1177
+ ], WebGLRenderingContextBase.prototype, "getAttribLocation", null);
1554
1178
  __decorate([
1555
1179
  profile,
1556
1180
  __metadata("design:type", Function),
1557
1181
  __metadata("design:paramtypes", [Number, Number]),
1558
1182
  __metadata("design:returntype", Number)
1559
- ], WebGLRenderingContext.prototype, "getBufferParameter", null);
1183
+ ], WebGLRenderingContextBase.prototype, "getBufferParameter", null);
1560
1184
  __decorate([
1561
1185
  profile,
1562
1186
  __metadata("design:type", Function),
1563
1187
  __metadata("design:paramtypes", []),
1564
1188
  __metadata("design:returntype", Object)
1565
- ], WebGLRenderingContext.prototype, "getContextAttributes", null);
1189
+ ], WebGLRenderingContextBase.prototype, "getContextAttributes", null);
1566
1190
  __decorate([
1567
1191
  profile,
1568
1192
  __metadata("design:type", Function),
1569
1193
  __metadata("design:paramtypes", []),
1570
1194
  __metadata("design:returntype", Number)
1571
- ], WebGLRenderingContext.prototype, "getError", null);
1195
+ ], WebGLRenderingContextBase.prototype, "getError", null);
1572
1196
  __decorate([
1573
1197
  profile,
1574
1198
  __metadata("design:type", Function),
1575
1199
  __metadata("design:paramtypes", [String]),
1576
1200
  __metadata("design:returntype", void 0)
1577
- ], WebGLRenderingContext.prototype, "getExtension", null);
1201
+ ], WebGLRenderingContextBase.prototype, "getExtension", null);
1578
1202
  __decorate([
1579
1203
  profile,
1580
1204
  __metadata("design:type", Function),
1581
1205
  __metadata("design:paramtypes", [Number, Number, Number]),
1582
1206
  __metadata("design:returntype", Object)
1583
- ], WebGLRenderingContext.prototype, "getFramebufferAttachmentParameter", null);
1207
+ ], WebGLRenderingContextBase.prototype, "getFramebufferAttachmentParameter", null);
1584
1208
  __decorate([
1585
1209
  profile,
1586
1210
  __metadata("design:type", Function),
1587
1211
  __metadata("design:paramtypes", [Number]),
1588
1212
  __metadata("design:returntype", Object)
1589
- ], WebGLRenderingContext.prototype, "getParameter", null);
1213
+ ], WebGLRenderingContextBase.prototype, "getParameter", null);
1590
1214
  __decorate([
1591
1215
  profile,
1592
1216
  __metadata("design:type", Function),
1593
1217
  __metadata("design:paramtypes", [WebGLProgram]),
1594
1218
  __metadata("design:returntype", String)
1595
- ], WebGLRenderingContext.prototype, "getProgramInfoLog", null);
1219
+ ], WebGLRenderingContextBase.prototype, "getProgramInfoLog", null);
1596
1220
  __decorate([
1597
1221
  profile,
1598
1222
  __metadata("design:type", Function),
1599
1223
  __metadata("design:paramtypes", [WebGLProgram, Number]),
1600
1224
  __metadata("design:returntype", Object)
1601
- ], WebGLRenderingContext.prototype, "getProgramParameter", null);
1225
+ ], WebGLRenderingContextBase.prototype, "getProgramParameter", null);
1602
1226
  __decorate([
1603
1227
  profile,
1604
1228
  __metadata("design:type", Function),
1605
1229
  __metadata("design:paramtypes", [Number, Number]),
1606
1230
  __metadata("design:returntype", Number)
1607
- ], WebGLRenderingContext.prototype, "getRenderbufferParameter", null);
1231
+ ], WebGLRenderingContextBase.prototype, "getRenderbufferParameter", null);
1608
1232
  __decorate([
1609
1233
  profile,
1610
1234
  __metadata("design:type", Function),
1611
1235
  __metadata("design:paramtypes", [WebGLShader]),
1612
1236
  __metadata("design:returntype", String)
1613
- ], WebGLRenderingContext.prototype, "getShaderInfoLog", null);
1237
+ ], WebGLRenderingContextBase.prototype, "getShaderInfoLog", null);
1614
1238
  __decorate([
1615
1239
  profile,
1616
1240
  __metadata("design:type", Function),
1617
1241
  __metadata("design:paramtypes", [WebGLShader, Number]),
1618
1242
  __metadata("design:returntype", Object)
1619
- ], WebGLRenderingContext.prototype, "getShaderParameter", null);
1243
+ ], WebGLRenderingContextBase.prototype, "getShaderParameter", null);
1620
1244
  __decorate([
1621
1245
  profile,
1622
1246
  __metadata("design:type", Function),
1623
1247
  __metadata("design:paramtypes", [Number, Number]),
1624
1248
  __metadata("design:returntype", WebGLShaderPrecisionFormat)
1625
- ], WebGLRenderingContext.prototype, "getShaderPrecisionFormat", null);
1249
+ ], WebGLRenderingContextBase.prototype, "getShaderPrecisionFormat", null);
1626
1250
  __decorate([
1627
1251
  profile,
1628
1252
  __metadata("design:type", Function),
1629
1253
  __metadata("design:paramtypes", [WebGLShader]),
1630
1254
  __metadata("design:returntype", String)
1631
- ], WebGLRenderingContext.prototype, "getShaderSource", null);
1255
+ ], WebGLRenderingContextBase.prototype, "getShaderSource", null);
1632
1256
  __decorate([
1633
1257
  profile,
1634
1258
  __metadata("design:type", Function),
1635
1259
  __metadata("design:paramtypes", []),
1636
1260
  __metadata("design:returntype", Array)
1637
- ], WebGLRenderingContext.prototype, "getSupportedExtensions", null);
1261
+ ], WebGLRenderingContextBase.prototype, "getSupportedExtensions", null);
1638
1262
  __decorate([
1639
1263
  profile,
1640
1264
  __metadata("design:type", Function),
1641
1265
  __metadata("design:paramtypes", [Number, Number]),
1642
1266
  __metadata("design:returntype", Number)
1643
- ], WebGLRenderingContext.prototype, "getTexParameter", null);
1267
+ ], WebGLRenderingContextBase.prototype, "getTexParameter", null);
1644
1268
  __decorate([
1645
1269
  profile,
1646
1270
  __metadata("design:type", Function),
1647
1271
  __metadata("design:paramtypes", [WebGLProgram, String]),
1648
1272
  __metadata("design:returntype", WebGLUniformLocation)
1649
- ], WebGLRenderingContext.prototype, "getUniformLocation", null);
1273
+ ], WebGLRenderingContextBase.prototype, "getUniformLocation", null);
1650
1274
  __decorate([
1651
1275
  profile,
1652
1276
  __metadata("design:type", Function),
1653
1277
  __metadata("design:paramtypes", [WebGLProgram, WebGLUniformLocation]),
1654
1278
  __metadata("design:returntype", Object)
1655
- ], WebGLRenderingContext.prototype, "getUniform", null);
1279
+ ], WebGLRenderingContextBase.prototype, "getUniform", null);
1656
1280
  __decorate([
1657
1281
  profile,
1658
1282
  __metadata("design:type", Function),
1659
1283
  __metadata("design:paramtypes", [Number, Number]),
1660
1284
  __metadata("design:returntype", Number)
1661
- ], WebGLRenderingContext.prototype, "getVertexAttribOffset", null);
1285
+ ], WebGLRenderingContextBase.prototype, "getVertexAttribOffset", null);
1662
1286
  __decorate([
1663
1287
  profile,
1664
1288
  __metadata("design:type", Function),
1665
1289
  __metadata("design:paramtypes", [Number, Number]),
1666
1290
  __metadata("design:returntype", Object)
1667
- ], WebGLRenderingContext.prototype, "getVertexAttrib", null);
1291
+ ], WebGLRenderingContextBase.prototype, "getVertexAttrib", null);
1668
1292
  __decorate([
1669
1293
  profile,
1670
1294
  __metadata("design:type", Function),
1671
1295
  __metadata("design:paramtypes", [Number, Number]),
1672
1296
  __metadata("design:returntype", void 0)
1673
- ], WebGLRenderingContext.prototype, "hint", null);
1297
+ ], WebGLRenderingContextBase.prototype, "hint", null);
1674
1298
  __decorate([
1675
1299
  profile,
1676
1300
  __metadata("design:type", Function),
1677
1301
  __metadata("design:paramtypes", [WebGLBuffer]),
1678
1302
  __metadata("design:returntype", Boolean)
1679
- ], WebGLRenderingContext.prototype, "isBuffer", null);
1303
+ ], WebGLRenderingContextBase.prototype, "isBuffer", null);
1680
1304
  __decorate([
1681
1305
  profile,
1682
1306
  __metadata("design:type", Function),
1683
1307
  __metadata("design:paramtypes", []),
1684
1308
  __metadata("design:returntype", Boolean)
1685
- ], WebGLRenderingContext.prototype, "isContextLost", null);
1309
+ ], WebGLRenderingContextBase.prototype, "isContextLost", null);
1686
1310
  __decorate([
1687
1311
  profile,
1688
1312
  __metadata("design:type", Function),
1689
1313
  __metadata("design:paramtypes", [Number]),
1690
1314
  __metadata("design:returntype", Boolean)
1691
- ], WebGLRenderingContext.prototype, "isEnabled", null);
1315
+ ], WebGLRenderingContextBase.prototype, "isEnabled", null);
1692
1316
  __decorate([
1693
1317
  profile,
1694
1318
  __metadata("design:type", Function),
1695
1319
  __metadata("design:paramtypes", [WebGLFramebuffer]),
1696
1320
  __metadata("design:returntype", Boolean)
1697
- ], WebGLRenderingContext.prototype, "isFramebuffer", null);
1321
+ ], WebGLRenderingContextBase.prototype, "isFramebuffer", null);
1698
1322
  __decorate([
1699
1323
  profile,
1700
1324
  __metadata("design:type", Function),
1701
1325
  __metadata("design:paramtypes", [WebGLProgram]),
1702
1326
  __metadata("design:returntype", Boolean)
1703
- ], WebGLRenderingContext.prototype, "isProgram", null);
1327
+ ], WebGLRenderingContextBase.prototype, "isProgram", null);
1704
1328
  __decorate([
1705
1329
  profile,
1706
1330
  __metadata("design:type", Function),
1707
1331
  __metadata("design:paramtypes", [WebGLRenderbuffer]),
1708
1332
  __metadata("design:returntype", Boolean)
1709
- ], WebGLRenderingContext.prototype, "isRenderbuffer", null);
1333
+ ], WebGLRenderingContextBase.prototype, "isRenderbuffer", null);
1710
1334
  __decorate([
1711
1335
  profile,
1712
1336
  __metadata("design:type", Function),
1713
1337
  __metadata("design:paramtypes", [WebGLShader]),
1714
1338
  __metadata("design:returntype", Boolean)
1715
- ], WebGLRenderingContext.prototype, "isShader", null);
1339
+ ], WebGLRenderingContextBase.prototype, "isShader", null);
1716
1340
  __decorate([
1717
1341
  profile,
1718
1342
  __metadata("design:type", Function),
1719
1343
  __metadata("design:paramtypes", [WebGLTexture]),
1720
1344
  __metadata("design:returntype", Boolean)
1721
- ], WebGLRenderingContext.prototype, "isTexture", null);
1345
+ ], WebGLRenderingContextBase.prototype, "isTexture", null);
1722
1346
  __decorate([
1723
1347
  profile,
1724
1348
  __metadata("design:type", Function),
1725
1349
  __metadata("design:paramtypes", [Number]),
1726
1350
  __metadata("design:returntype", void 0)
1727
- ], WebGLRenderingContext.prototype, "lineWidth", null);
1351
+ ], WebGLRenderingContextBase.prototype, "lineWidth", null);
1728
1352
  __decorate([
1729
1353
  profile,
1730
1354
  __metadata("design:type", Function),
1731
1355
  __metadata("design:paramtypes", [WebGLProgram]),
1732
1356
  __metadata("design:returntype", void 0)
1733
- ], WebGLRenderingContext.prototype, "linkProgram", null);
1357
+ ], WebGLRenderingContextBase.prototype, "linkProgram", null);
1734
1358
  __decorate([
1735
1359
  profile,
1736
1360
  __metadata("design:type", Function),
1737
1361
  __metadata("design:paramtypes", [Number, Object]),
1738
1362
  __metadata("design:returntype", void 0)
1739
- ], WebGLRenderingContext.prototype, "pixelStorei", null);
1363
+ ], WebGLRenderingContextBase.prototype, "pixelStorei", null);
1740
1364
  __decorate([
1741
1365
  profile,
1742
1366
  __metadata("design:type", Function),
1743
1367
  __metadata("design:paramtypes", [Number, Number]),
1744
1368
  __metadata("design:returntype", void 0)
1745
- ], WebGLRenderingContext.prototype, "polygonOffset", null);
1369
+ ], WebGLRenderingContextBase.prototype, "polygonOffset", null);
1746
1370
  __decorate([
1747
1371
  profile,
1748
1372
  __metadata("design:type", Function),
1749
1373
  __metadata("design:paramtypes", [Number, Number, Number, Number, Number, Number, Object]),
1750
1374
  __metadata("design:returntype", void 0)
1751
- ], WebGLRenderingContext.prototype, "readPixels", null);
1375
+ ], WebGLRenderingContextBase.prototype, "readPixels", null);
1752
1376
  __decorate([
1753
1377
  profile,
1754
1378
  __metadata("design:type", Function),
1755
1379
  __metadata("design:paramtypes", [Number, Number, Number, Number]),
1756
1380
  __metadata("design:returntype", void 0)
1757
- ], WebGLRenderingContext.prototype, "renderbufferStorage", null);
1381
+ ], WebGLRenderingContextBase.prototype, "renderbufferStorage", null);
1758
1382
  __decorate([
1759
1383
  profile,
1760
1384
  __metadata("design:type", Function),
1761
1385
  __metadata("design:paramtypes", [Number, Boolean]),
1762
1386
  __metadata("design:returntype", void 0)
1763
- ], WebGLRenderingContext.prototype, "sampleCoverage", null);
1387
+ ], WebGLRenderingContextBase.prototype, "sampleCoverage", null);
1764
1388
  __decorate([
1765
1389
  profile,
1766
1390
  __metadata("design:type", Function),
1767
1391
  __metadata("design:paramtypes", [Number, Number, Number, Number]),
1768
1392
  __metadata("design:returntype", void 0)
1769
- ], WebGLRenderingContext.prototype, "scissor", null);
1393
+ ], WebGLRenderingContextBase.prototype, "scissor", null);
1770
1394
  __decorate([
1771
1395
  profile,
1772
1396
  __metadata("design:type", Function),
1773
1397
  __metadata("design:paramtypes", [WebGLShader, String]),
1774
1398
  __metadata("design:returntype", void 0)
1775
- ], WebGLRenderingContext.prototype, "shaderSource", null);
1399
+ ], WebGLRenderingContextBase.prototype, "shaderSource", null);
1776
1400
  __decorate([
1777
1401
  profile,
1778
1402
  __metadata("design:type", Function),
1779
1403
  __metadata("design:paramtypes", [Number, Number, Number, Number]),
1780
1404
  __metadata("design:returntype", void 0)
1781
- ], WebGLRenderingContext.prototype, "stencilFuncSeparate", null);
1405
+ ], WebGLRenderingContextBase.prototype, "stencilFuncSeparate", null);
1782
1406
  __decorate([
1783
1407
  profile,
1784
1408
  __metadata("design:type", Function),
1785
1409
  __metadata("design:paramtypes", [Number, Number, Number]),
1786
1410
  __metadata("design:returntype", void 0)
1787
- ], WebGLRenderingContext.prototype, "stencilFunc", null);
1411
+ ], WebGLRenderingContextBase.prototype, "stencilFunc", null);
1788
1412
  __decorate([
1789
1413
  profile,
1790
1414
  __metadata("design:type", Function),
1791
1415
  __metadata("design:paramtypes", [Number, Number]),
1792
1416
  __metadata("design:returntype", void 0)
1793
- ], WebGLRenderingContext.prototype, "stencilMaskSeparate", null);
1417
+ ], WebGLRenderingContextBase.prototype, "stencilMaskSeparate", null);
1794
1418
  __decorate([
1795
1419
  profile,
1796
1420
  __metadata("design:type", Function),
1797
1421
  __metadata("design:paramtypes", [Number]),
1798
1422
  __metadata("design:returntype", void 0)
1799
- ], WebGLRenderingContext.prototype, "stencilMask", null);
1423
+ ], WebGLRenderingContextBase.prototype, "stencilMask", null);
1800
1424
  __decorate([
1801
1425
  profile,
1802
1426
  __metadata("design:type", Function),
1803
1427
  __metadata("design:paramtypes", [Number, Number, Number, Number]),
1804
1428
  __metadata("design:returntype", void 0)
1805
- ], WebGLRenderingContext.prototype, "stencilOpSeparate", null);
1429
+ ], WebGLRenderingContextBase.prototype, "stencilOpSeparate", null);
1806
1430
  __decorate([
1807
1431
  profile,
1808
1432
  __metadata("design:type", Function),
1809
1433
  __metadata("design:paramtypes", [Number, Number, Number]),
1810
1434
  __metadata("design:returntype", void 0)
1811
- ], WebGLRenderingContext.prototype, "stencilOp", null);
1435
+ ], WebGLRenderingContextBase.prototype, "stencilOp", null);
1812
1436
  __decorate([
1813
1437
  profile,
1814
1438
  __metadata("design:type", Function),
1815
1439
  __metadata("design:paramtypes", [Object, Object, Object, Object, Object, Object, Object, Object, Object]),
1816
1440
  __metadata("design:returntype", void 0)
1817
- ], WebGLRenderingContext.prototype, "texImage2D", null);
1441
+ ], WebGLRenderingContextBase.prototype, "texImage2D", null);
1818
1442
  __decorate([
1819
1443
  profile,
1820
1444
  __metadata("design:type", Function),
1821
1445
  __metadata("design:paramtypes", [Number, Number, Number]),
1822
1446
  __metadata("design:returntype", void 0)
1823
- ], WebGLRenderingContext.prototype, "texParameterf", null);
1447
+ ], WebGLRenderingContextBase.prototype, "texParameterf", null);
1824
1448
  __decorate([
1825
1449
  profile,
1826
1450
  __metadata("design:type", Function),
1827
1451
  __metadata("design:paramtypes", [Number, Number, Number]),
1828
1452
  __metadata("design:returntype", void 0)
1829
- ], WebGLRenderingContext.prototype, "texParameteri", null);
1453
+ ], WebGLRenderingContextBase.prototype, "texParameteri", null);
1830
1454
  __decorate([
1831
1455
  profile,
1832
1456
  __metadata("design:type", Function),
1833
1457
  __metadata("design:paramtypes", [Object, Object, Object, Object, Object, Object, Object, Object, Object]),
1834
1458
  __metadata("design:returntype", void 0)
1835
- ], WebGLRenderingContext.prototype, "texSubImage2D", null);
1459
+ ], WebGLRenderingContextBase.prototype, "texSubImage2D", null);
1836
1460
  __decorate([
1837
1461
  profile,
1838
1462
  __metadata("design:type", Function),
1839
1463
  __metadata("design:paramtypes", [WebGLUniformLocation, Number]),
1840
1464
  __metadata("design:returntype", void 0)
1841
- ], WebGLRenderingContext.prototype, "uniform1f", null);
1465
+ ], WebGLRenderingContextBase.prototype, "uniform1f", null);
1842
1466
  __decorate([
1843
1467
  profile,
1844
1468
  __metadata("design:type", Function),
1845
- __metadata("design:paramtypes", [WebGLUniformLocation, Array]),
1469
+ __metadata("design:paramtypes", [WebGLUniformLocation, Object]),
1846
1470
  __metadata("design:returntype", void 0)
1847
- ], WebGLRenderingContext.prototype, "uniform1iv", null);
1471
+ ], WebGLRenderingContextBase.prototype, "uniform1iv", null);
1848
1472
  __decorate([
1849
1473
  profile,
1850
1474
  __metadata("design:type", Function),
1851
- __metadata("design:paramtypes", [WebGLUniformLocation, Array]),
1475
+ __metadata("design:paramtypes", [WebGLUniformLocation, Object]),
1852
1476
  __metadata("design:returntype", void 0)
1853
- ], WebGLRenderingContext.prototype, "uniform1fv", null);
1477
+ ], WebGLRenderingContextBase.prototype, "uniform1fv", null);
1854
1478
  __decorate([
1855
1479
  profile,
1856
1480
  __metadata("design:type", Function),
1857
1481
  __metadata("design:paramtypes", [WebGLUniformLocation, Number]),
1858
1482
  __metadata("design:returntype", void 0)
1859
- ], WebGLRenderingContext.prototype, "uniform1i", null);
1483
+ ], WebGLRenderingContextBase.prototype, "uniform1i", null);
1860
1484
  __decorate([
1861
1485
  profile,
1862
1486
  __metadata("design:type", Function),
1863
1487
  __metadata("design:paramtypes", [WebGLUniformLocation, Number, Number]),
1864
1488
  __metadata("design:returntype", void 0)
1865
- ], WebGLRenderingContext.prototype, "uniform2f", null);
1489
+ ], WebGLRenderingContextBase.prototype, "uniform2f", null);
1866
1490
  __decorate([
1867
1491
  profile,
1868
1492
  __metadata("design:type", Function),
1869
- __metadata("design:paramtypes", [WebGLUniformLocation, Array]),
1493
+ __metadata("design:paramtypes", [WebGLUniformLocation, Object]),
1870
1494
  __metadata("design:returntype", void 0)
1871
- ], WebGLRenderingContext.prototype, "uniform2iv", null);
1495
+ ], WebGLRenderingContextBase.prototype, "uniform2iv", null);
1872
1496
  __decorate([
1873
1497
  profile,
1874
1498
  __metadata("design:type", Function),
1875
- __metadata("design:paramtypes", [WebGLUniformLocation, Array]),
1499
+ __metadata("design:paramtypes", [WebGLUniformLocation, Object]),
1876
1500
  __metadata("design:returntype", void 0)
1877
- ], WebGLRenderingContext.prototype, "uniform2fv", null);
1501
+ ], WebGLRenderingContextBase.prototype, "uniform2fv", null);
1878
1502
  __decorate([
1879
1503
  profile,
1880
1504
  __metadata("design:type", Function),
1881
1505
  __metadata("design:paramtypes", [WebGLUniformLocation, Number, Number]),
1882
1506
  __metadata("design:returntype", void 0)
1883
- ], WebGLRenderingContext.prototype, "uniform2i", null);
1507
+ ], WebGLRenderingContextBase.prototype, "uniform2i", null);
1884
1508
  __decorate([
1885
1509
  profile,
1886
1510
  __metadata("design:type", Function),
1887
1511
  __metadata("design:paramtypes", [WebGLUniformLocation, Number, Number, Number]),
1888
1512
  __metadata("design:returntype", void 0)
1889
- ], WebGLRenderingContext.prototype, "uniform3f", null);
1513
+ ], WebGLRenderingContextBase.prototype, "uniform3f", null);
1890
1514
  __decorate([
1891
1515
  profile,
1892
1516
  __metadata("design:type", Function),
1893
- __metadata("design:paramtypes", [WebGLUniformLocation, Array]),
1517
+ __metadata("design:paramtypes", [WebGLUniformLocation, Object]),
1894
1518
  __metadata("design:returntype", void 0)
1895
- ], WebGLRenderingContext.prototype, "uniform3iv", null);
1519
+ ], WebGLRenderingContextBase.prototype, "uniform3iv", null);
1896
1520
  __decorate([
1897
1521
  profile,
1898
1522
  __metadata("design:type", Function),
1899
- __metadata("design:paramtypes", [WebGLUniformLocation, Array]),
1523
+ __metadata("design:paramtypes", [WebGLUniformLocation, Object]),
1900
1524
  __metadata("design:returntype", void 0)
1901
- ], WebGLRenderingContext.prototype, "uniform3fv", null);
1525
+ ], WebGLRenderingContextBase.prototype, "uniform3fv", null);
1902
1526
  __decorate([
1903
1527
  profile,
1904
1528
  __metadata("design:type", Function),
1905
1529
  __metadata("design:paramtypes", [WebGLUniformLocation, Number, Number, Number]),
1906
1530
  __metadata("design:returntype", void 0)
1907
- ], WebGLRenderingContext.prototype, "uniform3i", null);
1531
+ ], WebGLRenderingContextBase.prototype, "uniform3i", null);
1908
1532
  __decorate([
1909
1533
  profile,
1910
1534
  __metadata("design:type", Function),
1911
1535
  __metadata("design:paramtypes", [WebGLUniformLocation, Number, Number, Number, Number]),
1912
1536
  __metadata("design:returntype", void 0)
1913
- ], WebGLRenderingContext.prototype, "uniform4f", null);
1537
+ ], WebGLRenderingContextBase.prototype, "uniform4f", null);
1914
1538
  __decorate([
1915
1539
  profile,
1916
1540
  __metadata("design:type", Function),
1917
- __metadata("design:paramtypes", [WebGLUniformLocation, Array]),
1541
+ __metadata("design:paramtypes", [WebGLUniformLocation, Object]),
1918
1542
  __metadata("design:returntype", void 0)
1919
- ], WebGLRenderingContext.prototype, "uniform4iv", null);
1543
+ ], WebGLRenderingContextBase.prototype, "uniform4iv", null);
1920
1544
  __decorate([
1921
1545
  profile,
1922
1546
  __metadata("design:type", Function),
1923
- __metadata("design:paramtypes", [WebGLUniformLocation, Array]),
1547
+ __metadata("design:paramtypes", [WebGLUniformLocation, Object]),
1924
1548
  __metadata("design:returntype", void 0)
1925
- ], WebGLRenderingContext.prototype, "uniform4fv", null);
1549
+ ], WebGLRenderingContextBase.prototype, "uniform4fv", null);
1926
1550
  __decorate([
1927
1551
  profile,
1928
1552
  __metadata("design:type", Function),
1929
1553
  __metadata("design:paramtypes", [WebGLUniformLocation, Number, Number, Number, Number]),
1930
1554
  __metadata("design:returntype", void 0)
1931
- ], WebGLRenderingContext.prototype, "uniform4i", null);
1555
+ ], WebGLRenderingContextBase.prototype, "uniform4i", null);
1932
1556
  __decorate([
1933
1557
  profile,
1934
1558
  __metadata("design:type", Function),
1935
- __metadata("design:paramtypes", [WebGLUniformLocation, Boolean, Array]),
1559
+ __metadata("design:paramtypes", [WebGLUniformLocation, Boolean, Object]),
1936
1560
  __metadata("design:returntype", void 0)
1937
- ], WebGLRenderingContext.prototype, "uniformMatrix2fv", null);
1561
+ ], WebGLRenderingContextBase.prototype, "uniformMatrix2fv", null);
1938
1562
  __decorate([
1939
1563
  profile,
1940
1564
  __metadata("design:type", Function),
1941
- __metadata("design:paramtypes", [WebGLUniformLocation, Boolean, Array]),
1565
+ __metadata("design:paramtypes", [WebGLUniformLocation, Boolean, Object]),
1942
1566
  __metadata("design:returntype", void 0)
1943
- ], WebGLRenderingContext.prototype, "uniformMatrix3fv", null);
1567
+ ], WebGLRenderingContextBase.prototype, "uniformMatrix3fv", null);
1944
1568
  __decorate([
1945
1569
  profile,
1946
1570
  __metadata("design:type", Function),
1947
- __metadata("design:paramtypes", [WebGLUniformLocation, Boolean, Array]),
1571
+ __metadata("design:paramtypes", [WebGLUniformLocation, Boolean, Object]),
1948
1572
  __metadata("design:returntype", void 0)
1949
- ], WebGLRenderingContext.prototype, "uniformMatrix4fv", null);
1573
+ ], WebGLRenderingContextBase.prototype, "uniformMatrix4fv", null);
1950
1574
  __decorate([
1951
1575
  profile,
1952
1576
  __metadata("design:type", Function),
1953
1577
  __metadata("design:paramtypes", [WebGLProgram]),
1954
1578
  __metadata("design:returntype", void 0)
1955
- ], WebGLRenderingContext.prototype, "useProgram", null);
1579
+ ], WebGLRenderingContextBase.prototype, "useProgram", null);
1956
1580
  __decorate([
1957
1581
  profile,
1958
1582
  __metadata("design:type", Function),
1959
1583
  __metadata("design:paramtypes", [WebGLProgram]),
1960
1584
  __metadata("design:returntype", void 0)
1961
- ], WebGLRenderingContext.prototype, "validateProgram", null);
1585
+ ], WebGLRenderingContextBase.prototype, "validateProgram", null);
1962
1586
  __decorate([
1963
1587
  profile,
1964
1588
  __metadata("design:type", Function),
1965
1589
  __metadata("design:paramtypes", [Number, Number]),
1966
1590
  __metadata("design:returntype", void 0)
1967
- ], WebGLRenderingContext.prototype, "vertexAttrib1f", null);
1591
+ ], WebGLRenderingContextBase.prototype, "vertexAttrib1f", null);
1968
1592
  __decorate([
1969
1593
  profile,
1970
1594
  __metadata("design:type", Function),
1971
- __metadata("design:paramtypes", [Number, Array]),
1595
+ __metadata("design:paramtypes", [Number, Object]),
1972
1596
  __metadata("design:returntype", void 0)
1973
- ], WebGLRenderingContext.prototype, "vertexAttrib1fv", null);
1597
+ ], WebGLRenderingContextBase.prototype, "vertexAttrib1fv", null);
1974
1598
  __decorate([
1975
1599
  profile,
1976
1600
  __metadata("design:type", Function),
1977
1601
  __metadata("design:paramtypes", [Number, Number, Number]),
1978
1602
  __metadata("design:returntype", void 0)
1979
- ], WebGLRenderingContext.prototype, "vertexAttrib2f", null);
1603
+ ], WebGLRenderingContextBase.prototype, "vertexAttrib2f", null);
1980
1604
  __decorate([
1981
1605
  profile,
1982
1606
  __metadata("design:type", Function),
1983
- __metadata("design:paramtypes", [Number, Array]),
1607
+ __metadata("design:paramtypes", [Number, Object]),
1984
1608
  __metadata("design:returntype", void 0)
1985
- ], WebGLRenderingContext.prototype, "vertexAttrib2fv", null);
1609
+ ], WebGLRenderingContextBase.prototype, "vertexAttrib2fv", null);
1986
1610
  __decorate([
1987
1611
  profile,
1988
1612
  __metadata("design:type", Function),
1989
1613
  __metadata("design:paramtypes", [Number, Number, Number, Number]),
1990
1614
  __metadata("design:returntype", void 0)
1991
- ], WebGLRenderingContext.prototype, "vertexAttrib3f", null);
1615
+ ], WebGLRenderingContextBase.prototype, "vertexAttrib3f", null);
1992
1616
  __decorate([
1993
1617
  profile,
1994
1618
  __metadata("design:type", Function),
1995
- __metadata("design:paramtypes", [Number, Array]),
1619
+ __metadata("design:paramtypes", [Number, Object]),
1996
1620
  __metadata("design:returntype", void 0)
1997
- ], WebGLRenderingContext.prototype, "vertexAttrib3fv", null);
1621
+ ], WebGLRenderingContextBase.prototype, "vertexAttrib3fv", null);
1998
1622
  __decorate([
1999
1623
  profile,
2000
1624
  __metadata("design:type", Function),
2001
1625
  __metadata("design:paramtypes", [Number, Number, Number, Number, Number]),
2002
1626
  __metadata("design:returntype", void 0)
2003
- ], WebGLRenderingContext.prototype, "vertexAttrib4f", null);
1627
+ ], WebGLRenderingContextBase.prototype, "vertexAttrib4f", null);
2004
1628
  __decorate([
2005
1629
  profile,
2006
1630
  __metadata("design:type", Function),
2007
- __metadata("design:paramtypes", [Number, Array]),
1631
+ __metadata("design:paramtypes", [Number, Object]),
2008
1632
  __metadata("design:returntype", void 0)
2009
- ], WebGLRenderingContext.prototype, "vertexAttrib4fv", null);
1633
+ ], WebGLRenderingContextBase.prototype, "vertexAttrib4fv", null);
2010
1634
  __decorate([
2011
1635
  profile,
2012
1636
  __metadata("design:type", Function),
2013
1637
  __metadata("design:paramtypes", [Number, Number, Number, Boolean, Number, Number]),
2014
1638
  __metadata("design:returntype", void 0)
2015
- ], WebGLRenderingContext.prototype, "vertexAttribPointer", null);
1639
+ ], WebGLRenderingContextBase.prototype, "vertexAttribPointer", null);
2016
1640
  __decorate([
2017
1641
  profile,
2018
1642
  __metadata("design:type", Function),
2019
1643
  __metadata("design:paramtypes", [Number, Number, Number, Number]),
2020
1644
  __metadata("design:returntype", void 0)
2021
- ], WebGLRenderingContext.prototype, "viewport", null);
1645
+ ], WebGLRenderingContextBase.prototype, "viewport", null);
1646
+ export class WebGLRenderingContext extends WebGLRenderingContextBase {
1647
+ }
2022
1648
  //# sourceMappingURL=index.js.map