@nativescript/canvas 2.0.0-alpha.5 → 2.0.0-alpha.50

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 +702 -452
  3. package/Canvas/common.js.map +1 -1
  4. package/Canvas/index.android.d.ts +12 -1
  5. package/Canvas/index.android.js +162 -49
  6. package/Canvas/index.android.js.map +1 -1
  7. package/Canvas/index.d.ts +13 -0
  8. package/Canvas/index.ios.d.ts +9 -4
  9. package/Canvas/index.ios.js +166 -103
  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 +7 -3
  18. package/Canvas2D/CanvasRenderingContext2D/index.js +132 -233
  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 +135 -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 +2774 -70
  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 +5851 -2555
  83. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +44 -24
  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 +44 -24
  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 +270 -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 +2774 -70
  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 +5851 -2555
  96. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +44 -24
  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 +44 -24
  99. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5851 -2555
  100. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +44 -24
  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 +44 -24
  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 +2841 -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 +126 -0
  174. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +26 -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 +102 -0
  192. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +69 -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 +35 -0
  202. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +131 -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 +4533 -0
  206. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1427 -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 -6132
  229. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2859
  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 -1975
  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 -4556
  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
@@ -1,5 +1,6 @@
1
1
  import { WebGLQuery } from '../WebGLQuery';
2
2
  import { WebGLSampler } from '../WebGLSampler';
3
+ import { WebGLSync } from '../WebGLSync';
3
4
  import { WebGLTransformFeedback } from '../WebGLTransformFeedback';
4
5
  import { WebGLVertexArrayObject } from '../WebGLVertexArrayObject';
5
6
  import { WebGLFramebuffer } from '../../WebGL/WebGLFramebuffer';
@@ -11,7 +12,6 @@ import { WebGL2RenderingContextBase } from './common';
11
12
  import { Canvas } from '../../Canvas';
12
13
  import { ImageBitmap } from '../../ImageBitmap';
13
14
  import { Helpers } from '../../helpers';
14
- let ctor;
15
15
  export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
16
16
  constructor(context, contextOptions) {
17
17
  super(null);
@@ -25,253 +25,169 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
25
25
  const ctx = BigInt(nativeContext);
26
26
  let direction = 0;
27
27
  if (global.isAndroid) {
28
- if (androidx.core.text.TextUtilsCompat.getLayoutDirectionFromLocale(java.util.Locale.getDefault()) === androidx.core.view.ViewCompat.LAYOUT_DIRECTION_RTL) {
29
- direction = 1;
30
- }
28
+ direction = org.nativescript.canvas.NSCCanvas.getDirection();
31
29
  }
32
30
  else {
33
31
  //direction = 1;
34
32
  }
35
- const native = ctor(contextOptions, ctx, Screen.mainScreen.scale, -16777216, Screen.mainScreen.scale * 160, direction);
33
+ const native = global.CanvasModule.createWebGL2Context(contextOptions, ctx, Screen.mainScreen.scale, -16777216, Screen.mainScreen.scale * 160, direction);
36
34
  this._context = native;
37
35
  }
38
36
  /* Transform feedback */
39
37
  beginQuery(target, query) {
40
- this._glCheckError('beginQuery');
41
38
  const value = query.native;
42
- const beginQuery = this._getMethod('beginQuery');
43
- beginQuery(target, value);
39
+ this.native.beginQuery(target, value);
44
40
  }
45
41
  beginTransformFeedback(primitiveMode) {
46
- this._glCheckError('beginTransformFeedback');
47
- const beginTransformFeedback = this._getMethod('beginTransformFeedback');
48
- beginTransformFeedback(primitiveMode);
42
+ this.native.beginTransformFeedback(primitiveMode);
49
43
  }
50
44
  bindBufferBase(target, index, buffer) {
51
- this._glCheckError('bindBufferBase');
52
45
  const value = buffer ? buffer.native : null;
53
- const bindBufferBase = this._getMethod('bindBufferBase');
54
- bindBufferBase(target, index, value);
46
+ this.native.bindBufferBase(target, index, value);
55
47
  }
56
48
  bindBufferRange(target, index, buffer, offset, size) {
57
- this._glCheckError('bindBufferRange');
58
49
  const value = buffer ? buffer.native : null;
59
- const bindBufferRange = this._getMethod('bindBufferRange');
60
- bindBufferRange(target, index, value, offset, size);
50
+ this.native.bindBufferRange(target, index, value, offset, size);
61
51
  }
62
52
  bindSampler(unit, sampler) {
63
- this._glCheckError('bindSampler');
64
53
  const value = sampler ? sampler.native : null;
65
- const bindSampler = this._getMethod('bindSampler');
66
- bindSampler(unit, value);
54
+ this.native.bindSampler(unit, value);
67
55
  }
68
56
  bindTransformFeedback(target, transformFeedback) {
69
- this._glCheckError('bindTransformFeedback');
70
57
  const value = transformFeedback ? transformFeedback.native : null;
71
- const bindTransformFeedback = this._getMethod('bindTransformFeedback');
72
- bindTransformFeedback(target, value);
58
+ this.native.bindTransformFeedback(target, value);
73
59
  }
74
60
  bindVertexArray(vertexArray) {
75
- this._glCheckError('bindVertexArray');
76
61
  const value = vertexArray ? vertexArray.native : null;
77
- const bindVertexArray = this._getMethod('bindVertexArray');
78
- bindVertexArray(value);
62
+ this.native.bindVertexArray(value);
79
63
  }
80
64
  blitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter) {
81
- this._glCheckError('blitFramebuffer');
82
- const blitFramebuffer = this._getMethod('blitFramebuffer');
83
- blitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
65
+ this.native.blitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
84
66
  }
85
67
  clearBufferfi(buffer, drawbuffer, depth, stencil) {
86
- this._glCheckError('clearBufferfi');
87
68
  const value = buffer.native;
88
- const clearBufferfi = this._getMethod('clearBufferfi');
89
- clearBufferfi(value, drawbuffer, depth, stencil);
69
+ this.native.clearBufferfi(value, drawbuffer, depth, stencil);
90
70
  }
91
71
  clearBufferfv(buffer, drawbuffer, values) {
92
- this._glCheckError('clearBufferfv');
93
- const clearBufferfv = this._getMethod('clearBufferfv');
94
72
  const value = buffer.native;
95
- clearBufferfv(value, drawbuffer, values);
73
+ this.native.clearBufferfv(value, drawbuffer, values);
96
74
  }
97
75
  clearBufferiv(buffer, drawbuffer, values) {
98
- this._glCheckError('clearBufferiv');
99
- const clearBufferiv = this._getMethod('clearBufferiv');
100
76
  const value = buffer ? buffer.native : 0;
101
- clearBufferiv(value, drawbuffer, values);
77
+ this.native.clearBufferiv(value, drawbuffer, values);
102
78
  }
103
79
  clearBufferuiv(buffer, drawbuffer, values) {
104
- this._glCheckError('clearBufferuiv');
105
- const clearBufferuiv = this._getMethod('clearBufferuiv');
106
80
  const value = buffer ? buffer.native : 0;
107
- clearBufferuiv(value, drawbuffer, values);
81
+ this.native.clearBufferuiv(value, drawbuffer, values);
108
82
  }
109
83
  clientWaitSync(sync, flags, timeout) {
110
- this._glCheckError('clientWaitSync');
111
- const clientWaitSync = this._getMethod('clientWaitSync');
112
84
  const value = sync.native;
113
- return clientWaitSync(value, flags, timeout);
85
+ return this.native.clientWaitSync(value, flags, timeout);
114
86
  }
115
87
  compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, srcData, srcOffset = 0, srcLengthOverride = 0) {
116
- this._glCheckError('compressedTexSubImage3D');
117
- const compressedTexSubImage3D = this._getMethod('compressedTexSubImage3D');
118
- compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, srcData, srcOffset);
88
+ this.native.compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, srcData, srcOffset);
119
89
  }
120
90
  /* Transform feedback */
121
91
  /* Framebuffers and renderbuffers */
122
92
  copyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size) {
123
- this._glCheckError('copyBufferSubData');
124
- const copyBufferSubData = this._getMethod('copyBufferSubData');
125
- copyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
93
+ this.native.copyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
126
94
  }
127
95
  copyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height) {
128
- this._glCheckError('copyTexSubImage3D');
129
- const copyTexSubImage3D = this._getMethod('copyTexSubImage3D');
130
- copyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
96
+ this.native.copyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
131
97
  }
132
98
  createQuery() {
133
- this._glCheckError('createQuery');
134
- const createQuery = this._getMethod('createQuery');
135
- return new WebGLQuery(createQuery());
99
+ return new WebGLQuery(this.native.createQuery());
136
100
  }
137
101
  createSampler() {
138
- this._glCheckError('createSampler');
139
- const createSampler = this._getMethod('createSampler');
140
- return new WebGLSampler(createSampler());
102
+ return new WebGLSampler(this.native.createSampler());
141
103
  }
142
104
  createTransformFeedback() {
143
- this._glCheckError('createTransformFeedback');
144
- const createTransformFeedback = this._getMethod('createTransformFeedback');
145
- return new WebGLTransformFeedback(createTransformFeedback());
105
+ return new WebGLTransformFeedback(this.native.createTransformFeedback());
146
106
  }
147
107
  createVertexArray() {
148
- this._glCheckError('createVertexArray');
149
- const createVertexArray = this._getMethod('createVertexArray');
150
- return new WebGLVertexArrayObject(createVertexArray());
108
+ return new WebGLVertexArrayObject(this.native.createVertexArray());
151
109
  }
152
110
  deleteQuery(query) {
153
- this._glCheckError('deleteQuery');
154
- const deleteQuery = this._getMethod('deleteQuery');
155
111
  const value = query.native;
156
- deleteQuery(value);
112
+ this.native.deleteQuery(value);
157
113
  }
158
114
  deleteSampler(sampler) {
159
- this._glCheckError('deleteSampler');
160
- const deleteSampler = this._getMethod('deleteSampler');
161
115
  const value = sampler.native;
162
- deleteSampler(value);
116
+ this.native.deleteSampler(value);
163
117
  }
164
118
  deleteSync(sync) {
165
- this._glCheckError('deleteSync');
166
- const deleteSync = this._getMethod('deleteSync');
167
119
  const value = sync.native;
168
- deleteSync(value);
120
+ this.native.deleteSync(value);
169
121
  }
170
122
  deleteTransformFeedback(transformFeedback) {
171
- this._glCheckError('deleteTransformFeedback');
172
- const deleteTransformFeedback = this._getMethod('deleteTransformFeedback');
173
123
  const value = transformFeedback.native;
174
- deleteTransformFeedback(value);
124
+ this.native.deleteTransformFeedback(value);
175
125
  }
176
126
  deleteVertexArray(vertexArray) {
177
- this._glCheckError('deleteVertexArray');
178
- const deleteVertexArray = this._getMethod('deleteVertexArray');
179
127
  const value = vertexArray.native;
180
- deleteVertexArray(value);
128
+ this.native.deleteVertexArray(value);
181
129
  }
182
130
  drawArraysInstanced(mode, first, count, instanceCount) {
183
- this._glCheckError('drawArraysInstanced');
184
- const drawArraysInstanced = this._getMethod('drawArraysInstanced');
185
- drawArraysInstanced(mode, first, count, instanceCount);
131
+ this.native.drawArraysInstanced(mode, first, count, instanceCount);
186
132
  }
187
133
  drawBuffers(buffers) {
188
- this._glCheckError('drawBuffers');
189
134
  this._checkArgs('drawBuffers', arguments);
190
- const drawBuffers = this._getMethod('drawBuffers');
191
- drawBuffers(buffers);
135
+ this.native.drawBuffers(buffers);
192
136
  }
193
137
  drawElementsInstanced(mode, count, type, offset, instanceCount) {
194
- this._glCheckError('drawElementsInstanced');
195
- const drawElementsInstanced = this._getMethod('drawElementsInstanced');
196
- drawElementsInstanced(mode, count, type, offset, instanceCount);
138
+ this.native.drawElementsInstanced(mode, count, type, offset, instanceCount);
197
139
  }
198
140
  drawRangeElements(mode, start, end, count, type, offset) {
199
- this._glCheckError('drawRangeElements');
200
- const drawRangeElements = this._getMethod('drawRangeElements');
201
- drawRangeElements(mode, start, end, count, type, offset);
141
+ this.native.drawRangeElements(mode, start, end, count, type, offset);
202
142
  }
203
143
  endQuery(target) {
204
- this._glCheckError('endQuery');
205
- const endQuery = this._getMethod('endQuery');
206
- endQuery(target);
144
+ this.native.endQuery(target);
207
145
  }
208
146
  endTransformFeedback() {
209
- this._glCheckError('endTransformFeedback');
210
- const endTransformFeedback = this._getMethod('endTransformFeedback');
211
- endTransformFeedback();
147
+ this.native.endTransformFeedback();
212
148
  }
213
149
  fenceSync(condition, flags) {
214
- this._glCheckError('fenceSync');
215
- const fenceSync = this._getMethod('fenceSync');
216
- fenceSync(condition, flags);
150
+ return new WebGLSync(this.native.fenceSync(condition, flags));
217
151
  }
218
152
  framebufferTextureLayer(target, attachment, texture, level, layer) {
219
- this._glCheckError('framebufferTextureLayer');
220
- const framebufferTextureLayer = this._getMethod('framebufferTextureLayer');
221
153
  const value = texture.native;
222
- framebufferTextureLayer(target, attachment, value, level, layer);
154
+ this.native.framebufferTextureLayer(target, attachment, value, level, layer);
223
155
  }
224
156
  /* Framebuffers and renderbuffers */
225
157
  /* Uniforms */
226
158
  getActiveUniformBlockName(program, uniformBlockIndex) {
227
- this._glCheckError('getActiveUniformBlockName');
228
- const getActiveUniformBlockName = this._getMethod('getActiveUniformBlockName');
229
159
  const value = program.native;
230
- return getActiveUniformBlockName(value, uniformBlockIndex);
160
+ return this.native.getActiveUniformBlockName(value, uniformBlockIndex);
231
161
  }
232
162
  getActiveUniformBlockParameter(program, uniformBlockIndex, pname) {
233
- this._glCheckError('getActiveUniformBlockParameter');
234
- const getActiveUniformBlockParameter = this._getMethod('getActiveUniformBlockParameter');
235
163
  const value = program.native;
236
- return getActiveUniformBlockParameter(value, uniformBlockIndex, pname);
164
+ return this.native.getActiveUniformBlockParameter(value, uniformBlockIndex, pname);
237
165
  }
238
166
  getActiveUniforms(program, uniformIndices, pname) {
239
- this._glCheckError('getActiveUniforms');
240
- const getActiveUniforms = this._getMethod('getActiveUniforms');
241
167
  const value = program.native;
242
- return getActiveUniforms(value, uniformIndices, pname);
168
+ return this.native.getActiveUniforms(value, uniformIndices, pname);
243
169
  }
244
170
  getBufferSubData(target, srcByteOffset, dstData, dstOffset = 0, length = 0) {
245
- this._glCheckError('getBufferSubData');
246
- const getBufferSubData = this._getMethod('getBufferSubData');
247
- getBufferSubData(target, srcByteOffset, dstData, dstOffset, length);
171
+ this.native.getBufferSubData(target, srcByteOffset, dstData, dstOffset, length);
248
172
  }
249
173
  getFragDataLocation(program, name) {
250
- this._glCheckError('getFragDataLocation');
251
- const getFragDataLocation = this._getMethod('getFragDataLocation');
252
174
  const value = program.native;
253
- const result = getFragDataLocation(value, name);
175
+ const result = this.native.getFragDataLocation(value, name);
254
176
  return result !== -1 ? result : null;
255
177
  }
256
178
  getIndexedParameter(target, index) {
257
- this._glCheckError('getIndexedParameter');
258
- const getIndexedParameter = this._getMethod('getIndexedParameter');
259
- const param = getIndexedParameter(target, index);
179
+ const param = this.native.getIndexedParameter(target, index);
260
180
  if (target === this.TRANSFORM_FEEDBACK_BUFFER_BINDING || target === this.UNIFORM_BUFFER_BINDING) {
261
181
  return new WebGLBuffer(param);
262
182
  }
263
183
  return param;
264
184
  }
265
185
  getInternalformatParameter(target, internalformat, pname) {
266
- this._glCheckError('getInternalformatParameter');
267
- const getInternalformatParameter = this._getMethod('getInternalformatParameter');
268
- return getInternalformatParameter(target, internalformat, pname);
186
+ return this.native.getInternalformatParameter(target, internalformat, pname);
269
187
  }
270
188
  getQueryParameter(query, pname) {
271
- this._glCheckError('getQueryParameter');
272
- const getQueryParameter = this._getMethod('getQueryParameter');
273
189
  const value = query.native;
274
- const result = getQueryParameter(value, pname);
190
+ const result = this.native.getQueryParameter(value, pname);
275
191
  if (result === 0) {
276
192
  return null;
277
193
  }
@@ -279,10 +195,8 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
279
195
  }
280
196
  //@ts-ignore
281
197
  getParameter(pname) {
282
- this._glCheckError('getParameter');
283
198
  this._checkArgs('getParameter', arguments);
284
- const getParameter = this._getMethod('getParameter');
285
- const value = getParameter(pname);
199
+ const value = this.native.getParameter(pname);
286
200
  switch (pname) {
287
201
  case this.COPY_READ_BUFFER_BINDING:
288
202
  case this.COPY_WRITE_BUFFER_BINDING:
@@ -300,338 +214,255 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
300
214
  }
301
215
  }
302
216
  getQuery(target, pname) {
303
- this._glCheckError('getQuery');
304
- const getQuery = this._getMethod('getQuery');
305
- const query = getQuery(target, pname);
217
+ const query = this.native.getQuery(target, pname);
306
218
  if (query) {
307
219
  return new WebGLQuery(query);
308
220
  }
309
221
  return null;
310
222
  }
311
223
  getSamplerParameter(sampler, pname) {
312
- this._glCheckError('getSamplerParameter');
313
- const getSamplerParameter = this._getMethod('getSamplerParameter');
314
224
  const value = sampler.native;
315
- return getSamplerParameter(value, pname);
225
+ return this.native.getSamplerParameter(value, pname);
316
226
  }
317
227
  getSyncParameter(sync, pname) {
318
- this._glCheckError('getSyncParameter');
319
- const getSyncParameter = this._getMethod('getSyncParameter');
320
228
  const value = sync.native;
321
- return getSyncParameter(value, pname);
229
+ return this.native.getSyncParameter(value, pname);
322
230
  }
323
231
  getTransformFeedbackVarying(program, index) {
324
- this._glCheckError('getTransformFeedbackVarying');
325
232
  const value = program.native;
326
- const getTransformFeedbackVarying = this._getMethod('getTransformFeedbackVarying');
327
- const info = getTransformFeedbackVarying(value, index);
233
+ const info = this.native.getTransformFeedbackVarying(value, index);
328
234
  if (info) {
329
235
  return new WebGLActiveInfo(info);
330
236
  }
331
237
  return null;
332
238
  }
333
239
  getUniformBlockIndex(program, uniformBlockName) {
334
- this._glCheckError('getUniformBlockIndex');
335
- const getUniformBlockIndex = this._getMethod('getUniformBlockIndex');
336
240
  const value = program.native;
337
- return getUniformBlockIndex(value, uniformBlockName);
241
+ return this.native.getUniformBlockIndex(value, uniformBlockName);
338
242
  }
339
243
  getUniformIndices(program, uniformNames) {
340
- this._glCheckError('getUniformIndices');
341
- const getUniformIndices = this._getMethod('getUniformIndices');
342
244
  const value = program.native;
343
- return getUniformIndices(value, uniformNames);
245
+ return this.native.getUniformIndices(value, uniformNames);
344
246
  }
345
247
  invalidateFramebuffer(target, attachments) {
346
- this._glCheckError('invalidateFramebuffer');
347
- const invalidateFramebuffer = this._getMethod('invalidateFramebuffer');
348
- invalidateFramebuffer(target, attachments);
248
+ this.native.invalidateFramebuffer(target, attachments);
349
249
  }
350
250
  invalidateSubFramebuffer(target, attachments, x, y, width, height) {
351
- this._glCheckError('invalidateSubFramebuffer');
352
- const invalidateSubFramebuffer = this._getMethod('invalidateSubFramebuffer');
353
- invalidateSubFramebuffer(target, attachments, x, y, width, height);
251
+ this.native.invalidateSubFramebuffer(target, attachments, x, y, width, height);
354
252
  }
355
253
  isQuery(query) {
356
- this._glCheckError('isQuery');
357
- const isQuery = this._getMethod('isQuery');
358
254
  const value = query.native;
359
- return isQuery(value);
255
+ return this.native.isQuery(value);
360
256
  }
361
257
  isSampler(sampler) {
362
- this._glCheckError('isSampler');
363
- const isSampler = this._getMethod('isSampler');
364
258
  const value = sampler.native;
365
- return isSampler(value);
259
+ return this.native.isSampler(value);
366
260
  }
367
261
  isSync(sync) {
368
- this._glCheckError('isSync');
369
- const isSync = this._getMethod('isSync');
370
262
  const value = sync.native;
371
- return isSync(value);
263
+ return this.native.isSync(value);
372
264
  }
373
265
  isTransformFeedback(transformFeedback) {
374
- this._glCheckError('isTransformFeedback');
375
- const isTransformFeedback = this._getMethod('isTransformFeedback');
376
266
  const value = transformFeedback.native;
377
- return isTransformFeedback(value);
267
+ return this.native.isTransformFeedback(value);
378
268
  }
379
269
  isVertexArray(vertexArray) {
380
- this._glCheckError('isVertexArray');
381
- const isVertexArray = this._getMethod('isVertexArray');
382
270
  const value = vertexArray.native;
383
- return isVertexArray(value);
271
+ return this.native.isVertexArray(value);
384
272
  }
385
273
  pauseTransformFeedback() {
386
- this._glCheckError('pauseTransformFeedback');
387
- const pauseTransformFeedback = this._getMethod('pauseTransformFeedback');
388
- pauseTransformFeedback();
274
+ this.native.pauseTransformFeedback();
389
275
  }
390
276
  readBuffer(src) {
391
- this._glCheckError('readBuffer');
392
- const readBuffer = this._getMethod('readBuffer');
393
- readBuffer(src);
277
+ this.native.readBuffer(src);
394
278
  }
395
279
  renderbufferStorageMultisample(target, samples, internalFormat, width, height) {
396
- this._glCheckError('renderbufferStorageMultisample');
397
- const renderbufferStorageMultisample = this._getMethod('renderbufferStorageMultisample');
398
- renderbufferStorageMultisample(target, samples, internalFormat, width, height);
280
+ this.native.renderbufferStorageMultisample(target, samples, internalFormat, width, height);
399
281
  }
400
282
  resumeTransformFeedback() {
401
- this._glCheckError('resumeTransformFeedback');
402
- const resumeTransformFeedback = this._getMethod('resumeTransformFeedback');
403
- resumeTransformFeedback();
283
+ this.native.resumeTransformFeedback();
404
284
  }
405
285
  samplerParameterf(sampler, pname, param) {
406
- this._glCheckError('samplerParameterf');
407
- const samplerParameterf = this._getMethod('samplerParameterf');
408
286
  const value = sampler.native;
409
- samplerParameterf(value, pname, param);
287
+ this.native.samplerParameterf(value, pname, param);
410
288
  }
411
289
  /* Uniforms */
412
290
  /* Sync objects */
413
291
  samplerParameteri(sampler, pname, param) {
414
- this._glCheckError('samplerParameteri');
415
- const samplerParameteri = this._getMethod('samplerParameteri');
416
292
  const value = sampler.native;
417
- samplerParameteri(value, pname, param);
293
+ this.native.samplerParameteri(value, pname, param);
418
294
  }
419
295
  texImage3D(target, level, internalformat, width, height, depth, border, format, type, source) {
420
- this._glCheckError('texImage3D');
421
- const texImage3D = this._getMethod('texImage3D');
422
296
  if (typeof source === 'number') {
423
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
297
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
424
298
  }
425
299
  else if (source && source.buffer) {
426
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
300
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
427
301
  }
428
302
  else if (source instanceof android.graphics.Bitmap) {
429
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
303
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
430
304
  }
431
305
  else if (source instanceof ImageSource) {
432
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.android);
306
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.android);
433
307
  }
434
308
  else if (source instanceof ImageAsset) {
435
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
309
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
310
+ }
311
+ else if (source instanceof Canvas) {
312
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
436
313
  }
437
314
  else if (source instanceof ImageBitmap) {
438
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
315
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
439
316
  }
440
317
  else if (source && typeof source.tagName === 'string' && (source.tagName === 'IMG' || source.tagName === 'IMAGE')) {
441
318
  if (source._imageSource instanceof ImageSource) {
442
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._imageSource.android);
319
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._imageSource.android);
443
320
  }
444
321
  else if (source._image instanceof android.graphics.Bitmap) {
445
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._image);
322
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._image);
446
323
  }
447
324
  else if (source._asset instanceof ImageAsset) {
448
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._asset.native);
325
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._asset.native);
449
326
  }
450
327
  else if (typeof source.src === 'string') {
451
328
  const result = ImageSource.fromFileSync(source.src);
452
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, result ? result.android : null);
329
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, result ? result.android : null);
453
330
  }
454
331
  }
455
332
  else if (source && typeof source.tagName === 'string' && source.tagName === 'CANVAS' && source._canvas instanceof Canvas) {
456
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._canvas.native);
333
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._canvas.native);
457
334
  }
458
335
  }
459
336
  texStorage2D(target, levels, internalformat, width, height) {
460
- this._glCheckError('texStorage2D');
461
- const texStorage2D = this._getMethod('texStorage2D');
462
- texStorage2D(target, levels, internalformat, width, height);
337
+ this.native.texStorage2D(target, levels, internalformat, width, height);
463
338
  }
464
339
  texStorage3D(target, levels, internalformat, width, height, depth) {
465
- this._glCheckError('texStorage3D');
466
- const texStorage3D = this._getMethod('texStorage3D');
467
- texStorage3D(target, levels, internalformat, width, height, depth);
340
+ this.native.texStorage3D(target, levels, internalformat, width, height, depth);
468
341
  }
469
342
  texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData, srcOffset = 0) {
470
- this._glCheckError('texSubImage3D');
471
- const texSubImage3D = this._getMethod('texSubImage3D');
472
343
  if (typeof srcData === 'number') {
473
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
344
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
474
345
  }
475
346
  else if (srcData && srcData.buffer) {
476
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData, srcOffset);
347
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData, srcOffset);
477
348
  }
478
349
  else if (srcData instanceof android.graphics.Bitmap) {
479
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
350
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
480
351
  }
481
352
  else if (srcData instanceof ImageSource) {
482
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.android);
353
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.android);
483
354
  }
484
355
  else if (srcData instanceof ImageAsset) {
485
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
356
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
357
+ }
358
+ else if (srcData instanceof Canvas) {
359
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
486
360
  }
487
361
  else if (srcData instanceof ImageBitmap) {
488
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
362
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
489
363
  }
490
364
  else if (srcData && typeof srcData.tagName === 'string' && (srcData.tagName === 'IMG' || srcData.tagName === 'IMAGE')) {
491
365
  if (srcData._imageSource instanceof ImageSource) {
492
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._imageSource.android);
366
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._imageSource.android);
493
367
  }
494
368
  else if (srcData._image instanceof android.graphics.Bitmap) {
495
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._image);
369
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._image);
496
370
  }
497
371
  else if (srcData._asset instanceof ImageAsset) {
498
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._asset.native);
372
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._asset.native);
499
373
  }
500
374
  else if (typeof srcData.src === 'string') {
501
375
  const result = ImageSource.fromFileSync(srcData.src);
502
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, result ? result.android : null);
376
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, result ? result.android : null);
503
377
  }
504
378
  }
505
- else if (srcData && typeof srcData.tagName === 'string' && srcData.tagName === 'CANVAS' && srcData._canvas instanceof TNSCanvas) {
506
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._canvas.native);
379
+ else if (srcData && typeof srcData.tagName === 'string' && srcData.tagName === 'CANVAS' && srcData._canvas instanceof Canvas) {
380
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._canvas.native);
507
381
  }
508
382
  }
509
383
  transformFeedbackVaryings(program, varyings, bufferMode) {
510
- this._glCheckError('transformFeedbackVaryings');
511
- const transformFeedbackVaryings = this._getMethod('transformFeedbackVaryings');
512
384
  const value = program.native;
513
- transformFeedbackVaryings(value, varyings, bufferMode);
385
+ this.native.transformFeedbackVaryings(value, varyings, bufferMode);
514
386
  }
515
387
  uniform1ui(location, v0) {
516
- this._glCheckError('uniform1ui');
517
388
  const value = location.native;
518
- const uniform1ui = this._getMethod('uniform1ui');
519
- uniform1ui(value, v0);
389
+ this.native.uniform1ui(value, v0);
520
390
  }
521
391
  uniform1uiv(location, data) {
522
- this._glCheckError('uniform1uiv');
523
- const uniform1uiv = this._getMethod('uniform1uiv');
524
392
  const value = location.native;
525
- uniform1uiv(value, data);
393
+ this.native.uniform1uiv(value, data);
526
394
  }
527
395
  uniform2ui(location, v0, v1) {
528
- this._glCheckError('uniform2ui');
529
- const uniform2ui = this._getMethod('uniform2ui');
530
396
  const value = location.native;
531
- uniform2ui(value, v0, v1);
397
+ this.native.uniform2ui(value, v0, v1);
532
398
  }
533
399
  uniform2uiv(location, data) {
534
- this._glCheckError('uniform2uiv');
535
- const uniform2uiv = this._getMethod('uniform2uiv');
536
400
  const value = location.native;
537
- uniform2uiv(value, data);
401
+ this.native.uniform2uiv(value, data);
538
402
  }
539
403
  /* Sync objects */
540
404
  /* Miscellaneous constants */
541
405
  uniform3ui(location, v0, v1, v2) {
542
- this._glCheckError('uniform3ui');
543
- const uniform3ui = this._getMethod('uniform3ui');
544
406
  const value = location.native;
545
- uniform3ui(value, v0, v1, v2);
407
+ this.native.uniform3ui(value, v0, v1, v2);
546
408
  }
547
409
  uniform3uiv(location, data) {
548
- this._glCheckError('uniform3uiv');
549
- const uniform3uiv = this._getMethod('uniform3uiv');
550
410
  const value = location.native;
551
- uniform3uiv(value, data);
411
+ this.native.uniform3uiv(value, data);
552
412
  }
553
413
  uniform4ui(location, v0, v1, v2, v3) {
554
- this._glCheckError('uniform4ui');
555
- const uniform4ui = this._getMethod('uniform4ui');
556
414
  const value = location.native;
557
- uniform4ui(value, v0, v1, v2, v3);
415
+ this.native.uniform4ui(value, v0, v1, v2, v3);
558
416
  }
559
417
  uniform4uiv(location, data) {
560
- this._glCheckError('uniform4uiv');
561
- const uniform4uiv = this._getMethod('uniform4uiv');
562
418
  const value = location.native;
563
- uniform4uiv(value, data);
419
+ this.native.uniform4uiv(value, data);
564
420
  }
565
421
  uniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding) {
566
- this._glCheckError('uniformBlockBinding');
567
- const uniformBlockBindingFunc = this._getMethod('uniformBlockBinding');
568
422
  const value = program.native;
569
- uniformBlockBindingFunc(value, uniformBlockIndex, uniformBlockBinding);
423
+ this.native.uniformBlockBinding(value, uniformBlockIndex, uniformBlockBinding);
570
424
  }
571
425
  uniformMatrix2x3fv(location, transpose, data) {
572
- this._glCheckError('uniformMatrix2x3fv');
573
- const uniformMatrix2x3fv = this._getMethod('uniformMatrix2x3fv');
574
426
  const value = location.native;
575
- uniformMatrix2x3fv(value, transpose, data);
427
+ this.native.uniformMatrix2x3fv(value, transpose, data);
576
428
  }
577
429
  uniformMatrix2x4fv(location, transpose, data) {
578
- this._glCheckError('uniformMatrix2x4fv');
579
- const uniformMatrix2x4fv = this._getMethod('uniformMatrix2x4fv');
580
430
  const value = location.native;
581
- uniformMatrix2x4fv(value, transpose, data);
431
+ this.native.uniformMatrix2x4fv(value, transpose, data);
582
432
  }
583
433
  uniformMatrix3x2fv(location, transpose, data) {
584
- this._glCheckError('uniformMatrix3x2fv');
585
- const uniformMatrix3x2fv = this._getMethod('uniformMatrix3x2fv');
586
434
  const value = location.native;
587
- uniformMatrix3x2fv(value, transpose, data);
435
+ this.native.uniformMatrix3x2fv(value, transpose, data);
588
436
  }
589
437
  uniformMatrix3x4fv(location, transpose, data) {
590
- this._glCheckError('uniformMatrix3x4fv');
591
- const uniformMatrix3x4fv = this._getMethod('uniformMatrix3x4fv');
592
438
  const value = location.native;
593
- uniformMatrix3x4fv(value, transpose, data);
439
+ this.native.uniformMatrix3x4fv(value, transpose, data);
594
440
  }
595
441
  uniformMatrix4x2fv(location, transpose, data) {
596
- this._glCheckError('uniformMatrix4x2fv');
597
- const uniformMatrix4x2fv = this._getMethod('uniformMatrix4x2fv');
598
442
  const value = location.native;
599
- uniformMatrix4x2fv(value, transpose, data);
443
+ this.native.uniformMatrix4x2fv(value, transpose, data);
600
444
  }
601
445
  uniformMatrix4x3fv(location, transpose, data) {
602
- this._glCheckError('uniformMatrix4x3fv');
603
- const uniformMatrix4x3fv = this._getMethod('uniformMatrix4x3fv');
604
446
  const value = location.native;
605
- uniformMatrix4x3fv(value, transpose, data);
447
+ this.native.uniformMatrix4x3fv(value, transpose, data);
606
448
  }
607
449
  vertexAttribDivisor(index, divisor) {
608
- this._glCheckError('vertexAttribDivisor');
609
- const vertexAttribDivisor = this._getMethod('vertexAttribDivisor');
610
- vertexAttribDivisor(index, divisor);
450
+ this.native.vertexAttribDivisor(index, divisor);
611
451
  }
612
452
  vertexAttribI4i(index, v0, v1, v2, v3) {
613
- this._glCheckError('vertexAttribI4i');
614
- const vertexAttribI4i = this._getMethod('vertexAttribI4i');
615
- vertexAttribI4i(index, v0, v1, v2, v3);
453
+ this.native.vertexAttribI4i(index, v0, v1, v2, v3);
616
454
  }
617
455
  vertexAttribI4iv(index, value) {
618
- this._glCheckError('vertexAttribI4iv');
619
- const vertexAttribI4iv = this._getMethod('vertexAttribI4iv');
620
- vertexAttribI4iv(index, value);
456
+ this.native.vertexAttribI4iv(index, value);
621
457
  }
622
458
  vertexAttribI4ui(index, v0, v1, v2, v3) {
623
- this._glCheckError('vertexAttribI4ui');
624
- const vertexAttribI4ui = this._getMethod('vertexAttribI4ui');
625
- vertexAttribI4ui(index, v0, v1, v2, v3);
459
+ this.native.vertexAttribI4ui(index, v0, v1, v2, v3);
626
460
  }
627
461
  vertexAttribI4uiv(index, value) {
628
- this._glCheckError('vertexAttribI4uiv');
629
- const vertexAttribI4uiv = this._getMethod('vertexAttribI4uiv');
630
- vertexAttribI4uiv(index, value);
462
+ this.native.vertexAttribI4uiv(index, value);
631
463
  }
632
464
  }
633
465
  (() => {
634
466
  Helpers.initialize();
635
- ctor = global.CanvasJSIModule.createWebGL2Context;
636
467
  })();
637
468
  //# sourceMappingURL=index.js.map