@nativescript/canvas 2.0.0-alpha.3 → 2.0.0-alpha.31

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 (524) hide show
  1. package/Canvas/common.d.ts +212 -25
  2. package/Canvas/common.js +677 -460
  3. package/Canvas/common.js.map +1 -1
  4. package/Canvas/index.android.d.ts +9 -0
  5. package/Canvas/index.android.js +162 -53
  6. package/Canvas/index.android.js.map +1 -1
  7. package/Canvas/index.d.ts +12 -0
  8. package/Canvas/index.ios.d.ts +6 -0
  9. package/Canvas/index.ios.js +151 -66
  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 +1 -3
  18. package/Canvas2D/CanvasRenderingContext2D/index.js +104 -214
  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 +34 -39
  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 -34
  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 +0 -2
  55. package/WebGL/WebGLRenderingContext/common.js +0 -10
  56. package/WebGL/WebGLRenderingContext/common.js.map +1 -1
  57. package/WebGL/WebGLRenderingContext/index.d.ts +15 -15
  58. package/WebGL/WebGLRenderingContext/index.js +183 -578
  59. package/WebGL/WebGLRenderingContext/index.js.map +1 -1
  60. package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
  61. package/WebGL2/WebGL2RenderingContext/index.js +109 -281
  62. package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
  63. package/angular/esm2020/index.mjs +4 -4
  64. package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
  65. package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
  66. package/angular/package.json +2 -2
  67. package/index.js.map +1 -1
  68. package/package.json +3 -2
  69. package/platforms/android/canvas-release.aar +0 -0
  70. package/platforms/android/include.gradle +15 -0
  71. package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
  72. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  73. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +137 -64
  74. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
  75. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +142 -0
  76. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2673 -68
  77. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
  78. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  79. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +5734 -2393
  80. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +42 -19
  81. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  82. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +42 -19
  83. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  84. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  85. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +274 -128
  86. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
  87. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +142 -0
  88. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2673 -68
  89. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
  90. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  91. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  92. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +5734 -2393
  93. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +42 -19
  94. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  95. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +42 -19
  96. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5734 -2393
  97. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +42 -19
  98. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  99. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +42 -19
  100. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
  101. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  102. package/platforms/ios/Podfile +4 -1
  103. package/platforms/ios/build.xcconfig +3 -3
  104. package/platforms/ios/src/CanvasModule.h +0 -2
  105. package/platforms/ios/src/CanvasModule.mm +4 -4
  106. package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
  107. package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
  108. package/platforms/ios/src/cpp/Caches.cpp +35 -0
  109. package/platforms/ios/src/cpp/Caches.h +190 -0
  110. package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1534 -0
  111. package/platforms/ios/src/cpp/CanvasJSIModule.h +8 -34
  112. package/platforms/ios/src/cpp/Common.h +30 -0
  113. package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
  114. package/platforms/ios/src/cpp/Helpers.h +304 -36
  115. package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
  116. package/platforms/ios/src/cpp/ImageAssetImpl.h +44 -12
  117. package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
  118. package/platforms/ios/src/cpp/ImageBitmapImpl.h +34 -16
  119. package/platforms/ios/src/cpp/JSICallback.h +61 -5
  120. package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
  121. package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
  122. package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
  123. package/platforms/ios/src/cpp/OneByteStringResource.cpp +49 -0
  124. package/platforms/ios/src/cpp/OneByteStringResource.h +32 -0
  125. package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
  126. package/platforms/ios/src/cpp/RafImpl.h +11 -8
  127. package/platforms/ios/src/cpp/TextDecoderImpl.cpp +187 -0
  128. package/platforms/ios/src/cpp/TextDecoderImpl.h +20 -14
  129. package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
  130. package/platforms/ios/src/cpp/TextEncoderImpl.h +20 -11
  131. package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
  132. package/platforms/ios/src/cpp/URLImpl.h +119 -0
  133. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
  134. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +27 -13
  135. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
  136. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +26 -13
  137. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2413 -0
  138. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +267 -16
  139. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +203 -0
  140. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +26 -12
  141. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +806 -0
  142. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +172 -13
  143. package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +449 -0
  144. package/platforms/ios/src/cpp/canvas2d/Path2D.h +41 -12
  145. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
  146. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +50 -12
  147. package/platforms/ios/src/cpp/gl.h +57 -7
  148. package/platforms/ios/src/cpp/gl3stub.c +425 -0
  149. package/platforms/ios/src/cpp/gl3stub.h +665 -0
  150. package/platforms/ios/src/cpp/gles3jni.h +37 -0
  151. package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
  152. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
  153. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
  154. package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +41 -6
  155. package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +46 -10
  156. package/platforms/ios/src/cpp/webgl/WebGLProgram.h +40 -5
  157. package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +40 -6
  158. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6454 -0
  159. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +262 -390
  160. package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +46 -24
  161. package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +17 -11
  162. package/platforms/ios/src/cpp/webgl/WebGLShader.h +40 -6
  163. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
  164. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +66 -11
  165. package/platforms/ios/src/cpp/webgl/WebGLTexture.h +40 -6
  166. package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +44 -8
  167. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +126 -0
  168. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +25 -11
  169. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
  170. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +25 -5
  171. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
  172. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +25 -5
  173. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
  174. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
  175. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
  176. package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
  177. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
  178. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
  179. package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +51 -0
  180. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
  181. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +38 -15
  182. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
  183. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +41 -6
  184. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
  185. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +102 -0
  186. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +69 -14
  187. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
  188. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
  189. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
  190. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
  191. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
  192. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
  193. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
  194. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
  195. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +35 -0
  196. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +127 -14
  197. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
  198. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -12
  199. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4375 -0
  200. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +139 -343
  201. package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +40 -4
  202. package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
  203. package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +44 -11
  204. package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +42 -4
  205. package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +43 -4
  206. package/platforms/ios/src/module.modulemap +1 -0
  207. package/src-native/ios/Headers/include/APIDesign.md +72 -0
  208. package/src-native/ios/Headers/include/DEPS +10 -0
  209. package/src-native/ios/Headers/include/DIR_METADATA +11 -0
  210. package/src-native/ios/Headers/include/OWNERS +23 -0
  211. package/src-native/ios/Headers/include/cppgc/DEPS +8 -0
  212. package/src-native/ios/Headers/include/cppgc/OWNERS +2 -0
  213. package/src-native/ios/Headers/include/cppgc/README.md +133 -0
  214. package/src-native/ios/Headers/include/cppgc/allocation.h +310 -0
  215. package/src-native/ios/Headers/include/cppgc/common.h +29 -0
  216. package/src-native/ios/Headers/include/cppgc/cross-thread-persistent.h +465 -0
  217. package/src-native/ios/Headers/include/cppgc/custom-space.h +97 -0
  218. package/src-native/ios/Headers/include/cppgc/default-platform.h +67 -0
  219. package/src-native/ios/Headers/include/cppgc/ephemeron-pair.h +30 -0
  220. package/src-native/ios/Headers/include/cppgc/explicit-management.h +100 -0
  221. package/src-native/ios/Headers/include/cppgc/garbage-collected.h +106 -0
  222. package/src-native/ios/Headers/include/cppgc/heap-consistency.h +266 -0
  223. package/src-native/ios/Headers/include/cppgc/heap-state.h +82 -0
  224. package/src-native/ios/Headers/include/cppgc/heap-statistics.h +120 -0
  225. package/src-native/ios/Headers/include/cppgc/heap.h +206 -0
  226. package/src-native/ios/Headers/include/cppgc/internal/api-constants.h +55 -0
  227. package/src-native/ios/Headers/include/cppgc/internal/atomic-entry-flag.h +48 -0
  228. package/src-native/ios/Headers/include/cppgc/internal/caged-heap-local-data.h +79 -0
  229. package/src-native/ios/Headers/include/cppgc/internal/compiler-specific.h +38 -0
  230. package/src-native/ios/Headers/include/cppgc/internal/finalizer-trait.h +93 -0
  231. package/src-native/ios/Headers/include/cppgc/internal/gc-info.h +156 -0
  232. package/src-native/ios/Headers/include/cppgc/internal/logging.h +50 -0
  233. package/src-native/ios/Headers/include/cppgc/internal/name-trait.h +122 -0
  234. package/src-native/ios/Headers/include/cppgc/internal/persistent-node.h +216 -0
  235. package/src-native/ios/Headers/include/cppgc/internal/pointer-policies.h +186 -0
  236. package/src-native/ios/Headers/include/cppgc/internal/write-barrier.h +435 -0
  237. package/src-native/ios/Headers/include/cppgc/liveness-broker.h +77 -0
  238. package/src-native/ios/Headers/include/cppgc/macros.h +26 -0
  239. package/src-native/ios/Headers/include/cppgc/member.h +291 -0
  240. package/src-native/ios/Headers/include/cppgc/name-provider.h +65 -0
  241. package/src-native/ios/Headers/include/cppgc/object-size-trait.h +58 -0
  242. package/src-native/ios/Headers/include/cppgc/persistent.h +370 -0
  243. package/src-native/ios/Headers/include/cppgc/platform.h +156 -0
  244. package/src-native/ios/Headers/include/cppgc/prefinalizer.h +75 -0
  245. package/src-native/ios/Headers/include/cppgc/process-heap-statistics.h +36 -0
  246. package/src-native/ios/Headers/include/cppgc/sentinel-pointer.h +32 -0
  247. package/src-native/ios/Headers/include/cppgc/source-location.h +92 -0
  248. package/src-native/ios/Headers/include/cppgc/testing.h +106 -0
  249. package/src-native/ios/Headers/include/cppgc/trace-trait.h +116 -0
  250. package/src-native/ios/Headers/include/cppgc/type-traits.h +240 -0
  251. package/src-native/ios/Headers/include/cppgc/visitor.h +379 -0
  252. package/src-native/ios/Headers/include/js_protocol-1.2.json +936 -0
  253. package/src-native/ios/Headers/include/js_protocol-1.3.json +1112 -0
  254. package/src-native/ios/Headers/include/js_protocol.pdl +1709 -0
  255. package/src-native/ios/Headers/include/libffi/arm64/ffi.h +524 -0
  256. package/src-native/ios/Headers/include/libffi/arm64/ffitarget.h +92 -0
  257. package/src-native/ios/Headers/include/libffi/x86_64/ffi.h +524 -0
  258. package/src-native/ios/Headers/include/libffi/x86_64/ffitarget.h +147 -0
  259. package/src-native/ios/Headers/include/libffi.h +12 -0
  260. package/src-native/ios/Headers/include/libplatform/DEPS +9 -0
  261. package/src-native/ios/Headers/include/libplatform/libplatform-export.h +29 -0
  262. package/src-native/ios/Headers/include/libplatform/libplatform.h +106 -0
  263. package/src-native/ios/Headers/include/libplatform/v8-tracing.h +333 -0
  264. package/src-native/ios/Headers/include/v8-array-buffer.h +433 -0
  265. package/src-native/ios/Headers/include/v8-callbacks.h +397 -0
  266. package/src-native/ios/Headers/include/v8-container.h +129 -0
  267. package/src-native/ios/Headers/include/v8-context.h +407 -0
  268. package/src-native/ios/Headers/include/v8-cppgc.h +215 -0
  269. package/src-native/ios/Headers/include/v8-data.h +80 -0
  270. package/src-native/ios/Headers/include/v8-date.h +43 -0
  271. package/src-native/ios/Headers/include/v8-debug.h +168 -0
  272. package/src-native/ios/Headers/include/v8-embedder-heap.h +218 -0
  273. package/src-native/ios/Headers/include/v8-embedder-state-scope.h +51 -0
  274. package/src-native/ios/Headers/include/v8-exception.h +217 -0
  275. package/src-native/ios/Headers/include/v8-extension.h +62 -0
  276. package/src-native/ios/Headers/include/v8-external.h +37 -0
  277. package/src-native/ios/Headers/include/v8-fast-api-calls.h +939 -0
  278. package/src-native/ios/Headers/include/v8-forward.h +81 -0
  279. package/src-native/ios/Headers/include/v8-function-callback.h +475 -0
  280. package/src-native/ios/Headers/include/v8-function.h +125 -0
  281. package/src-native/ios/Headers/include/v8-initialization.h +315 -0
  282. package/src-native/ios/Headers/include/v8-inspector-protocol.h +13 -0
  283. package/src-native/ios/Headers/include/v8-inspector.h +376 -0
  284. package/src-native/ios/Headers/include/v8-internal.h +661 -0
  285. package/src-native/ios/Headers/include/v8-isolate.h +1709 -0
  286. package/src-native/ios/Headers/include/v8-json.h +47 -0
  287. package/src-native/ios/Headers/include/v8-local-handle.h +455 -0
  288. package/src-native/ios/Headers/include/v8-locker.h +149 -0
  289. package/src-native/ios/Headers/include/v8-maybe.h +137 -0
  290. package/src-native/ios/Headers/include/v8-memory-span.h +43 -0
  291. package/src-native/ios/Headers/include/v8-message.h +216 -0
  292. package/src-native/ios/Headers/include/v8-metrics.h +255 -0
  293. package/src-native/ios/Headers/include/v8-microtask-queue.h +152 -0
  294. package/src-native/ios/Headers/include/v8-microtask.h +28 -0
  295. package/src-native/ios/Headers/include/v8-object.h +775 -0
  296. package/src-native/ios/Headers/include/v8-persistent-handle.h +590 -0
  297. package/src-native/ios/Headers/include/v8-platform.h +1092 -0
  298. package/src-native/ios/Headers/include/v8-primitive-object.h +118 -0
  299. package/src-native/ios/Headers/include/v8-primitive.h +866 -0
  300. package/src-native/ios/Headers/include/v8-profiler.h +1198 -0
  301. package/src-native/ios/Headers/include/v8-promise.h +174 -0
  302. package/src-native/ios/Headers/include/v8-proxy.h +50 -0
  303. package/src-native/ios/Headers/include/v8-regexp.h +105 -0
  304. package/src-native/ios/Headers/include/v8-script.h +748 -0
  305. package/src-native/ios/Headers/include/v8-snapshot.h +196 -0
  306. package/src-native/ios/Headers/include/v8-statistics.h +217 -0
  307. package/src-native/ios/Headers/include/v8-template.h +1079 -0
  308. package/src-native/ios/Headers/include/v8-traced-handle.h +420 -0
  309. package/src-native/ios/Headers/include/v8-typed-array.h +282 -0
  310. package/src-native/ios/Headers/include/v8-unwinder-state.h +31 -0
  311. package/src-native/ios/Headers/include/v8-unwinder.h +132 -0
  312. package/src-native/ios/Headers/include/v8-util.h +658 -0
  313. package/src-native/ios/Headers/include/v8-value-serializer-version.h +24 -0
  314. package/src-native/ios/Headers/include/v8-value-serializer.h +279 -0
  315. package/src-native/ios/Headers/include/v8-value.h +526 -0
  316. package/src-native/ios/Headers/include/v8-version-string.h +38 -0
  317. package/src-native/ios/Headers/include/v8-version.h +20 -0
  318. package/src-native/ios/Headers/include/v8-wasm-trap-handler-posix.h +31 -0
  319. package/src-native/ios/Headers/include/v8-wasm-trap-handler-win.h +28 -0
  320. package/src-native/ios/Headers/include/v8-wasm.h +257 -0
  321. package/src-native/ios/Headers/include/v8-weak-callback-info.h +86 -0
  322. package/src-native/ios/Headers/include/v8.h +88 -0
  323. package/src-native/ios/Headers/include/v8config.h +605 -0
  324. package/src-native/ios/Headers/inspector/InspectorServer.h +20 -0
  325. package/src-native/ios/Headers/inspector/JsV8InspectorClient.h +66 -0
  326. package/src-native/ios/Headers/inspector/base/trace_event/common/trace_event_common.h +1123 -0
  327. package/src-native/ios/Headers/inspector/base64.h +9 -0
  328. package/src-native/ios/Headers/inspector/src/base/address-region.h +95 -0
  329. package/src-native/ios/Headers/inspector/src/base/atomic-utils.h +219 -0
  330. package/src-native/ios/Headers/inspector/src/base/atomicops.h +332 -0
  331. package/src-native/ios/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +89 -0
  332. package/src-native/ios/Headers/inspector/src/base/base-export.h +31 -0
  333. package/src-native/ios/Headers/inspector/src/base/bits.h +343 -0
  334. package/src-native/ios/Headers/inspector/src/base/build_config.h +234 -0
  335. package/src-native/ios/Headers/inspector/src/base/compiler-specific.h +136 -0
  336. package/src-native/ios/Headers/inspector/src/base/export-template.h +163 -0
  337. package/src-native/ios/Headers/inspector/src/base/flags.h +130 -0
  338. package/src-native/ios/Headers/inspector/src/base/immediate-crash.h +162 -0
  339. package/src-native/ios/Headers/inspector/src/base/lazy-instance.h +258 -0
  340. package/src-native/ios/Headers/inspector/src/base/logging.h +417 -0
  341. package/src-native/ios/Headers/inspector/src/base/macros.h +423 -0
  342. package/src-native/ios/Headers/inspector/src/base/memory.h +89 -0
  343. package/src-native/ios/Headers/inspector/src/base/once.h +108 -0
  344. package/src-native/ios/Headers/inspector/src/base/optional.h +882 -0
  345. package/src-native/ios/Headers/inspector/src/base/platform/mutex.h +370 -0
  346. package/src-native/ios/Headers/inspector/src/base/platform/platform.h +476 -0
  347. package/src-native/ios/Headers/inspector/src/base/platform/semaphore.h +108 -0
  348. package/src-native/ios/Headers/inspector/src/base/platform/v8-time.h +513 -0
  349. package/src-native/ios/Headers/inspector/src/base/platform/wrappers.h +73 -0
  350. package/src-native/ios/Headers/inspector/src/base/safe_conversions.h +389 -0
  351. package/src-native/ios/Headers/inspector/src/base/safe_conversions_impl.h +822 -0
  352. package/src-native/ios/Headers/inspector/src/base/template-utils.h +113 -0
  353. package/src-native/ios/Headers/inspector/src/base/v8-fallthrough.h +21 -0
  354. package/src-native/ios/Headers/inspector/src/common/checks.h +38 -0
  355. package/src-native/ios/Headers/inspector/src/common/globals.h +1842 -0
  356. package/src-native/ios/Headers/inspector/src/debug/debug-interface.h +667 -0
  357. package/src-native/ios/Headers/inspector/src/debug/interface-types.h +175 -0
  358. package/src-native/ios/Headers/inspector/src/init/v8.h +52 -0
  359. package/src-native/ios/Headers/inspector/src/inspector/custom-preview.h +24 -0
  360. package/src-native/ios/Headers/inspector/src/inspector/injected-script.h +251 -0
  361. package/src-native/ios/Headers/inspector/src/inspector/inspected-context.h +79 -0
  362. package/src-native/ios/Headers/inspector/src/inspector/protocol/CSS.h +2148 -0
  363. package/src-native/ios/Headers/inspector/src/inspector/protocol/Console.h +211 -0
  364. package/src-native/ios/Headers/inspector/src/inspector/protocol/DOM.h +1008 -0
  365. package/src-native/ios/Headers/inspector/src/inspector/protocol/Debugger.h +892 -0
  366. package/src-native/ios/Headers/inspector/src/inspector/protocol/Forward.h +75 -0
  367. package/src-native/ios/Headers/inspector/src/inspector/protocol/HeapProfiler.h +346 -0
  368. package/src-native/ios/Headers/inspector/src/inspector/protocol/Log.h +342 -0
  369. package/src-native/ios/Headers/inspector/src/inspector/protocol/Network.h +2528 -0
  370. package/src-native/ios/Headers/inspector/src/inspector/protocol/Overlay.h +281 -0
  371. package/src-native/ios/Headers/inspector/src/inspector/protocol/Page.h +1189 -0
  372. package/src-native/ios/Headers/inspector/src/inspector/protocol/Profiler.h +1001 -0
  373. package/src-native/ios/Headers/inspector/src/inspector/protocol/Protocol.h +617 -0
  374. package/src-native/ios/Headers/inspector/src/inspector/protocol/Runtime.h +1696 -0
  375. package/src-native/ios/Headers/inspector/src/inspector/protocol/Schema.h +146 -0
  376. package/src-native/ios/Headers/inspector/src/inspector/protocol/Security.h +793 -0
  377. package/src-native/ios/Headers/inspector/src/inspector/remote-object-id.h +54 -0
  378. package/src-native/ios/Headers/inspector/src/inspector/search-util.h +26 -0
  379. package/src-native/ios/Headers/inspector/src/inspector/string-16.h +180 -0
  380. package/src-native/ios/Headers/inspector/src/inspector/string-util.h +128 -0
  381. package/src-native/ios/Headers/inspector/src/inspector/v8-console-agent-impl.h +48 -0
  382. package/src-native/ios/Headers/inspector/src/inspector/v8-console-message.h +147 -0
  383. package/src-native/ios/Headers/inspector/src/inspector/v8-console.h +173 -0
  384. package/src-native/ios/Headers/inspector/src/inspector/v8-css-agent-impl.h +62 -0
  385. package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +248 -0
  386. package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-id.h +44 -0
  387. package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-script.h +123 -0
  388. package/src-native/ios/Headers/inspector/src/inspector/v8-debugger.h +257 -0
  389. package/src-native/ios/Headers/inspector/src/inspector/v8-dom-agent-impl.h +91 -0
  390. package/src-native/ios/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +80 -0
  391. package/src-native/ios/Headers/inspector/src/inspector/v8-inspector-impl.h +191 -0
  392. package/src-native/ios/Headers/inspector/src/inspector/v8-inspector-session-impl.h +156 -0
  393. package/src-native/ios/Headers/inspector/src/inspector/v8-log-agent-impl.h +34 -0
  394. package/src-native/ios/Headers/inspector/src/inspector/v8-network-agent-impl.h +71 -0
  395. package/src-native/ios/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +24 -0
  396. package/src-native/ios/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +70 -0
  397. package/src-native/ios/Headers/inspector/src/inspector/v8-page-agent-impl.h +88 -0
  398. package/src-native/ios/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +104 -0
  399. package/src-native/ios/Headers/inspector/src/inspector/v8-regex.h +38 -0
  400. package/src-native/ios/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +157 -0
  401. package/src-native/ios/Headers/inspector/src/inspector/v8-schema-agent-impl.h +38 -0
  402. package/src-native/ios/Headers/inspector/src/inspector/v8-stack-trace-impl.h +164 -0
  403. package/src-native/ios/Headers/inspector/src/inspector/v8-string-conversions.h +17 -0
  404. package/src-native/ios/Headers/inspector/src/inspector/v8-value-utils.h +23 -0
  405. package/src-native/ios/Headers/inspector/src/inspector/value-mirror.h +87 -0
  406. package/src-native/ios/Headers/inspector/src/libplatform/default-platform.h +92 -0
  407. package/src-native/ios/Headers/inspector/src/logging/tracing-flags.h +50 -0
  408. package/src-native/ios/Headers/inspector/src/numbers/conversions.h +183 -0
  409. package/src-native/ios/Headers/inspector/src/tracing/trace-event.h +664 -0
  410. package/src-native/ios/Headers/inspector/src/utils/allocation.h +367 -0
  411. package/src-native/ios/Headers/inspector/src/utils/vector.h +324 -0
  412. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +305 -0
  413. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +314 -0
  414. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +62 -0
  415. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +6 -0
  416. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +58 -0
  417. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +47 -0
  418. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +80 -0
  419. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +52 -0
  420. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +26 -0
  421. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +104 -0
  422. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +39 -0
  423. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +406 -0
  424. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +32 -0
  425. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +158 -0
  426. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +99 -0
  427. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +139 -0
  428. package/src-native/ios/Headers/inspector/utils.h +32 -0
  429. package/src-native/ios/Headers/inspector/v8-inspector-platform.h +44 -0
  430. package/src-native/ios/Headers/runtime/ArgConverter.h +61 -0
  431. package/src-native/ios/Headers/runtime/ArrayAdapter.h +13 -0
  432. package/src-native/ios/Headers/runtime/Caches.h +98 -0
  433. package/src-native/ios/Headers/runtime/ClassBuilder.h +61 -0
  434. package/src-native/ios/Headers/runtime/Common.h +9 -0
  435. package/src-native/ios/Headers/runtime/ConcurrentMap.h +55 -0
  436. package/src-native/ios/Headers/runtime/ConcurrentQueue.h +28 -0
  437. package/src-native/ios/Headers/runtime/Console.h +27 -0
  438. package/src-native/ios/Headers/runtime/Constants.h +15 -0
  439. package/src-native/ios/Headers/runtime/DataWrapper.h +671 -0
  440. package/src-native/ios/Headers/runtime/DictionaryAdapter.h +13 -0
  441. package/src-native/ios/Headers/runtime/ExtVector.h +21 -0
  442. package/src-native/ios/Headers/runtime/FFICall.h +105 -0
  443. package/src-native/ios/Headers/runtime/FastEnumerationAdapter.h +13 -0
  444. package/src-native/ios/Headers/runtime/FunctionReference.h +18 -0
  445. package/src-native/ios/Headers/runtime/Helpers.h +84 -0
  446. package/src-native/ios/Headers/runtime/InlineFunctions.h +16 -0
  447. package/src-native/ios/Headers/runtime/Interop.h +202 -0
  448. package/src-native/ios/Headers/runtime/KnownUnknownClassPair.h +35 -0
  449. package/src-native/ios/Headers/runtime/Metadata.h +981 -0
  450. package/src-native/ios/Headers/runtime/MetadataBuilder.h +72 -0
  451. package/src-native/ios/Headers/runtime/MetadataInlines.h +157 -0
  452. package/src-native/ios/Headers/runtime/ModuleInternal.h +59 -0
  453. package/src-native/ios/Headers/runtime/NSDataAdapter.h +13 -0
  454. package/src-native/ios/Headers/runtime/NativeScriptException.h +27 -0
  455. package/src-native/ios/Headers/runtime/ObjectManager.h +31 -0
  456. package/src-native/ios/Headers/runtime/OneByteStringResource.h +21 -0
  457. package/src-native/ios/Headers/runtime/Pointer.h +26 -0
  458. package/src-native/ios/Headers/runtime/PromiseProxy.h +15 -0
  459. package/src-native/ios/Headers/runtime/Reference.h +38 -0
  460. package/src-native/ios/Headers/runtime/Runtime.h +67 -0
  461. package/src-native/ios/Headers/runtime/RuntimeConfig.h +17 -0
  462. package/src-native/ios/Headers/runtime/SetTimeout.h +34 -0
  463. package/src-native/ios/Headers/runtime/SimpleAllocator.h +23 -0
  464. package/src-native/ios/Headers/runtime/StringHasher.h +315 -0
  465. package/src-native/ios/Headers/runtime/SymbolIterator.h +18 -0
  466. package/src-native/ios/Headers/runtime/SymbolLoader.h +27 -0
  467. package/src-native/ios/Headers/runtime/TNSDerivedClass.h +8 -0
  468. package/src-native/ios/Headers/runtime/TSHelpers.h +15 -0
  469. package/src-native/ios/Headers/runtime/Tasks.h +19 -0
  470. package/src-native/ios/Headers/runtime/UnmanagedType.h +21 -0
  471. package/src-native/ios/Headers/runtime/WeakRef.h +15 -0
  472. package/src-native/ios/Headers/runtime/Worker.h +26 -0
  473. package/src-native/ios/Headers/runtime/robin_hood.h +2184 -0
  474. package/src-native/ios/NativeScript.podspec +55 -0
  475. package/typings/objc!CanvasNative.d.ts +2038 -0
  476. package/typings/objc!CanvasNative.js +1 -0
  477. package/typings/objc!CanvasNative.js.map +1 -0
  478. package/utils.d.ts +3 -1
  479. package/utils.js +7 -20
  480. package/utils.js.map +1 -1
  481. package/angular/nativescript-canvas-angular.d.ts +0 -5
  482. package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
  483. package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
  484. package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
  485. package/platforms/ios/src/cpp/RafImpl.mm +0 -10
  486. package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
  487. package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
  488. package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -51
  489. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6119
  490. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2854
  491. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
  492. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
  493. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1954
  494. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
  495. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
  496. package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
  497. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
  498. package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
  499. package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
  500. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
  501. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5879
  502. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
  503. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
  504. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
  505. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
  506. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
  507. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
  508. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
  509. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
  510. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
  511. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
  512. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
  513. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
  514. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
  515. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
  516. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
  517. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
  518. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
  519. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
  520. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
  521. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
  522. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
  523. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4554
  524. /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +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);
@@ -32,245 +32,164 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
32
32
  else {
33
33
  //direction = 1;
34
34
  }
35
- const native = ctor(contextOptions, ctx, Screen.mainScreen.scale, -16777216, Screen.mainScreen.scale * 160, direction);
35
+ const native = global.CanvasModule.createWebGL2Context(contextOptions, ctx, Screen.mainScreen.scale, -16777216, Screen.mainScreen.scale * 160, direction);
36
36
  this._context = native;
37
37
  }
38
38
  /* Transform feedback */
39
39
  beginQuery(target, query) {
40
- this._glCheckError('beginQuery');
41
40
  const value = query.native;
42
- const beginQuery = this._getMethod('beginQuery');
43
- beginQuery(target, value);
41
+ this.native.beginQuery(target, value);
44
42
  }
45
43
  beginTransformFeedback(primitiveMode) {
46
- this._glCheckError('beginTransformFeedback');
47
- const beginTransformFeedback = this._getMethod('beginTransformFeedback');
48
- beginTransformFeedback(primitiveMode);
44
+ this.native.beginTransformFeedback(primitiveMode);
49
45
  }
50
46
  bindBufferBase(target, index, buffer) {
51
- this._glCheckError('bindBufferBase');
52
47
  const value = buffer ? buffer.native : null;
53
- const bindBufferBase = this._getMethod('bindBufferBase');
54
- bindBufferBase(target, index, value);
48
+ this.native.bindBufferBase(target, index, value);
55
49
  }
56
50
  bindBufferRange(target, index, buffer, offset, size) {
57
- this._glCheckError('bindBufferRange');
58
51
  const value = buffer ? buffer.native : null;
59
- const bindBufferRange = this._getMethod('bindBufferRange');
60
- bindBufferRange(target, index, value, offset, size);
52
+ this.native.bindBufferRange(target, index, value, offset, size);
61
53
  }
62
54
  bindSampler(unit, sampler) {
63
- this._glCheckError('bindSampler');
64
55
  const value = sampler ? sampler.native : null;
65
- const bindSampler = this._getMethod('bindSampler');
66
- bindSampler(unit, value);
56
+ this.native.bindSampler(unit, value);
67
57
  }
68
58
  bindTransformFeedback(target, transformFeedback) {
69
- this._glCheckError('bindTransformFeedback');
70
59
  const value = transformFeedback ? transformFeedback.native : null;
71
- const bindTransformFeedback = this._getMethod('bindTransformFeedback');
72
- bindTransformFeedback(target, value);
60
+ this.native.bindTransformFeedback(target, value);
73
61
  }
74
62
  bindVertexArray(vertexArray) {
75
- this._glCheckError('bindVertexArray');
76
63
  const value = vertexArray ? vertexArray.native : null;
77
- const bindVertexArray = this._getMethod('bindVertexArray');
78
- bindVertexArray(value);
64
+ this.native.bindVertexArray(value);
79
65
  }
80
66
  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);
67
+ this.native.blitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
84
68
  }
85
69
  clearBufferfi(buffer, drawbuffer, depth, stencil) {
86
- this._glCheckError('clearBufferfi');
87
70
  const value = buffer.native;
88
- const clearBufferfi = this._getMethod('clearBufferfi');
89
- clearBufferfi(value, drawbuffer, depth, stencil);
71
+ this.native.clearBufferfi(value, drawbuffer, depth, stencil);
90
72
  }
91
73
  clearBufferfv(buffer, drawbuffer, values) {
92
- this._glCheckError('clearBufferfv');
93
- const clearBufferfv = this._getMethod('clearBufferfv');
94
74
  const value = buffer.native;
95
- clearBufferfv(value, drawbuffer, values);
75
+ this.native.clearBufferfv(value, drawbuffer, values);
96
76
  }
97
77
  clearBufferiv(buffer, drawbuffer, values) {
98
- this._glCheckError('clearBufferiv');
99
- const clearBufferiv = this._getMethod('clearBufferiv');
100
78
  const value = buffer ? buffer.native : 0;
101
- clearBufferiv(value, drawbuffer, values);
79
+ this.native.clearBufferiv(value, drawbuffer, values);
102
80
  }
103
81
  clearBufferuiv(buffer, drawbuffer, values) {
104
- this._glCheckError('clearBufferuiv');
105
- const clearBufferuiv = this._getMethod('clearBufferuiv');
106
82
  const value = buffer ? buffer.native : 0;
107
- clearBufferuiv(value, drawbuffer, values);
83
+ this.native.clearBufferuiv(value, drawbuffer, values);
108
84
  }
109
85
  clientWaitSync(sync, flags, timeout) {
110
- this._glCheckError('clientWaitSync');
111
- const clientWaitSync = this._getMethod('clientWaitSync');
112
86
  const value = sync.native;
113
- return clientWaitSync(value, flags, timeout);
87
+ return this.native.clientWaitSync(value, flags, timeout);
114
88
  }
115
89
  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);
90
+ this.native.compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, srcData, srcOffset);
119
91
  }
120
92
  /* Transform feedback */
121
93
  /* Framebuffers and renderbuffers */
122
94
  copyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size) {
123
- this._glCheckError('copyBufferSubData');
124
- const copyBufferSubData = this._getMethod('copyBufferSubData');
125
- copyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
95
+ this.native.copyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
126
96
  }
127
97
  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);
98
+ this.native.copyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
131
99
  }
132
100
  createQuery() {
133
- this._glCheckError('createQuery');
134
- const createQuery = this._getMethod('createQuery');
135
- return new WebGLQuery(createQuery());
101
+ return new WebGLQuery(this.native.createQuery());
136
102
  }
137
103
  createSampler() {
138
- this._glCheckError('createSampler');
139
- const createSampler = this._getMethod('createSampler');
140
- return new WebGLSampler(createSampler());
104
+ return new WebGLSampler(this.native.createSampler());
141
105
  }
142
106
  createTransformFeedback() {
143
- this._glCheckError('createTransformFeedback');
144
- const createTransformFeedback = this._getMethod('createTransformFeedback');
145
- return new WebGLTransformFeedback(createTransformFeedback());
107
+ return new WebGLTransformFeedback(this.native.createTransformFeedback());
146
108
  }
147
109
  createVertexArray() {
148
- this._glCheckError('createVertexArray');
149
- const createVertexArray = this._getMethod('createVertexArray');
150
- return new WebGLVertexArrayObject(createVertexArray());
110
+ return new WebGLVertexArrayObject(this.native.createVertexArray());
151
111
  }
152
112
  deleteQuery(query) {
153
- this._glCheckError('deleteQuery');
154
- const deleteQuery = this._getMethod('deleteQuery');
155
113
  const value = query.native;
156
- deleteQuery(value);
114
+ this.native.deleteQuery(value);
157
115
  }
158
116
  deleteSampler(sampler) {
159
- this._glCheckError('deleteSampler');
160
- const deleteSampler = this._getMethod('deleteSampler');
161
117
  const value = sampler.native;
162
- deleteSampler(value);
118
+ this.native.deleteSampler(value);
163
119
  }
164
120
  deleteSync(sync) {
165
- this._glCheckError('deleteSync');
166
- const deleteSync = this._getMethod('deleteSync');
167
121
  const value = sync.native;
168
- deleteSync(value);
122
+ this.native.deleteSync(value);
169
123
  }
170
124
  deleteTransformFeedback(transformFeedback) {
171
- this._glCheckError('deleteTransformFeedback');
172
- const deleteTransformFeedback = this._getMethod('deleteTransformFeedback');
173
125
  const value = transformFeedback.native;
174
- deleteTransformFeedback(value);
126
+ this.native.deleteTransformFeedback(value);
175
127
  }
176
128
  deleteVertexArray(vertexArray) {
177
- this._glCheckError('deleteVertexArray');
178
- const deleteVertexArray = this._getMethod('deleteVertexArray');
179
129
  const value = vertexArray.native;
180
- deleteVertexArray(value);
130
+ this.native.deleteVertexArray(value);
181
131
  }
182
132
  drawArraysInstanced(mode, first, count, instanceCount) {
183
- this._glCheckError('drawArraysInstanced');
184
- const drawArraysInstanced = this._getMethod('drawArraysInstanced');
185
- drawArraysInstanced(mode, first, count, instanceCount);
133
+ this.native.drawArraysInstanced(mode, first, count, instanceCount);
186
134
  }
187
135
  drawBuffers(buffers) {
188
- this._glCheckError('drawBuffers');
189
- const drawBuffers = this._getMethod('drawBuffers');
190
- drawBuffers(buffers);
136
+ this._checkArgs('drawBuffers', arguments);
137
+ this.native.drawBuffers(buffers);
191
138
  }
192
139
  drawElementsInstanced(mode, count, type, offset, instanceCount) {
193
- this._glCheckError('drawElementsInstanced');
194
- const drawElementsInstanced = this._getMethod('drawElementsInstanced');
195
- drawElementsInstanced(mode, count, type, offset, instanceCount);
140
+ this.native.drawElementsInstanced(mode, count, type, offset, instanceCount);
196
141
  }
197
142
  drawRangeElements(mode, start, end, count, type, offset) {
198
- this._glCheckError('drawRangeElements');
199
- const drawRangeElements = this._getMethod('drawRangeElements');
200
- drawRangeElements(mode, start, end, count, type, offset);
143
+ this.native.drawRangeElements(mode, start, end, count, type, offset);
201
144
  }
202
145
  endQuery(target) {
203
- this._glCheckError('endQuery');
204
- const endQuery = this._getMethod('endQuery');
205
- endQuery(target);
146
+ this.native.endQuery(target);
206
147
  }
207
148
  endTransformFeedback() {
208
- this._glCheckError('endTransformFeedback');
209
- const endTransformFeedback = this._getMethod('endTransformFeedback');
210
- endTransformFeedback();
149
+ this.native.endTransformFeedback();
211
150
  }
212
151
  fenceSync(condition, flags) {
213
- this._glCheckError('fenceSync');
214
- const fenceSync = this._getMethod('fenceSync');
215
- fenceSync(condition, flags);
152
+ return new WebGLSync(this.native.fenceSync(condition, flags));
216
153
  }
217
154
  framebufferTextureLayer(target, attachment, texture, level, layer) {
218
- this._glCheckError('framebufferTextureLayer');
219
- const framebufferTextureLayer = this._getMethod('framebufferTextureLayer');
220
155
  const value = texture.native;
221
- framebufferTextureLayer(target, attachment, value, level, layer);
156
+ this.native.framebufferTextureLayer(target, attachment, value, level, layer);
222
157
  }
223
158
  /* Framebuffers and renderbuffers */
224
159
  /* Uniforms */
225
160
  getActiveUniformBlockName(program, uniformBlockIndex) {
226
- this._glCheckError('getActiveUniformBlockName');
227
- const getActiveUniformBlockName = this._getMethod('getActiveUniformBlockName');
228
161
  const value = program.native;
229
- return getActiveUniformBlockName(value, uniformBlockIndex);
162
+ return this.native.getActiveUniformBlockName(value, uniformBlockIndex);
230
163
  }
231
164
  getActiveUniformBlockParameter(program, uniformBlockIndex, pname) {
232
- this._glCheckError('getActiveUniformBlockParameter');
233
- const getActiveUniformBlockParameter = this._getMethod('getActiveUniformBlockParameter');
234
165
  const value = program.native;
235
- return getActiveUniformBlockParameter(value, uniformBlockIndex, pname);
166
+ return this.native.getActiveUniformBlockParameter(value, uniformBlockIndex, pname);
236
167
  }
237
168
  getActiveUniforms(program, uniformIndices, pname) {
238
- this._glCheckError('getActiveUniforms');
239
- const getActiveUniforms = this._getMethod('getActiveUniforms');
240
169
  const value = program.native;
241
- return getActiveUniforms(value, uniformIndices, pname);
170
+ return this.native.getActiveUniforms(value, uniformIndices, pname);
242
171
  }
243
172
  getBufferSubData(target, srcByteOffset, dstData, dstOffset = 0, length = 0) {
244
- this._glCheckError('getBufferSubData');
245
- const getBufferSubData = this._getMethod('getBufferSubData');
246
- getBufferSubData(target, srcByteOffset, dstData, dstOffset, length);
173
+ this.native.getBufferSubData(target, srcByteOffset, dstData, dstOffset, length);
247
174
  }
248
175
  getFragDataLocation(program, name) {
249
- this._glCheckError('getFragDataLocation');
250
- const getFragDataLocation = this._getMethod('getFragDataLocation');
251
176
  const value = program.native;
252
- const result = getFragDataLocation(value, name);
177
+ const result = this.native.getFragDataLocation(value, name);
253
178
  return result !== -1 ? result : null;
254
179
  }
255
180
  getIndexedParameter(target, index) {
256
- this._glCheckError('getIndexedParameter');
257
- const getIndexedParameter = this._getMethod('getIndexedParameter');
258
- const param = getIndexedParameter(target, index);
181
+ const param = this.native.getIndexedParameter(target, index);
259
182
  if (target === this.TRANSFORM_FEEDBACK_BUFFER_BINDING || target === this.UNIFORM_BUFFER_BINDING) {
260
183
  return new WebGLBuffer(param);
261
184
  }
262
185
  return param;
263
186
  }
264
187
  getInternalformatParameter(target, internalformat, pname) {
265
- this._glCheckError('getInternalformatParameter');
266
- const getInternalformatParameter = this._getMethod('getInternalformatParameter');
267
- return getInternalformatParameter(target, internalformat, pname);
188
+ return this.native.getInternalformatParameter(target, internalformat, pname);
268
189
  }
269
190
  getQueryParameter(query, pname) {
270
- this._glCheckError('getQueryParameter');
271
- const getQueryParameter = this._getMethod('getQueryParameter');
272
191
  const value = query.native;
273
- const result = getQueryParameter(value, pname);
192
+ const result = this.native.getQueryParameter(value, pname);
274
193
  if (result === 0) {
275
194
  return null;
276
195
  }
@@ -278,10 +197,8 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
278
197
  }
279
198
  //@ts-ignore
280
199
  getParameter(pname) {
281
- this._glCheckError('getParameter');
282
200
  this._checkArgs('getParameter', arguments);
283
- const getParameter = this._getMethod('getParameter');
284
- const value = getParameter(pname);
201
+ const value = this.native.getParameter(pname);
285
202
  switch (pname) {
286
203
  case this.COPY_READ_BUFFER_BINDING:
287
204
  case this.COPY_WRITE_BUFFER_BINDING:
@@ -299,338 +216,249 @@ export class WebGL2RenderingContext extends WebGL2RenderingContextBase {
299
216
  }
300
217
  }
301
218
  getQuery(target, pname) {
302
- this._glCheckError('getQuery');
303
- const getQuery = this._getMethod('getQuery');
304
- const query = getQuery(target, pname);
219
+ const query = this.native.getQuery(target, pname);
305
220
  if (query) {
306
221
  return new WebGLQuery(query);
307
222
  }
308
223
  return null;
309
224
  }
310
225
  getSamplerParameter(sampler, pname) {
311
- this._glCheckError('getSamplerParameter');
312
- const getSamplerParameter = this._getMethod('getSamplerParameter');
313
226
  const value = sampler.native;
314
- return getSamplerParameter(value, pname);
227
+ return this.native.getSamplerParameter(value, pname);
315
228
  }
316
229
  getSyncParameter(sync, pname) {
317
- this._glCheckError('getSyncParameter');
318
- const getSyncParameter = this._getMethod('getSyncParameter');
319
230
  const value = sync.native;
320
- return getSyncParameter(value, pname);
231
+ return this.native.getSyncParameter(value, pname);
321
232
  }
322
233
  getTransformFeedbackVarying(program, index) {
323
- this._glCheckError('getTransformFeedbackVarying');
324
234
  const value = program.native;
325
- const getTransformFeedbackVarying = this._getMethod('getTransformFeedbackVarying');
326
- const info = getTransformFeedbackVarying(value, index);
235
+ const info = this.native.getTransformFeedbackVarying(value, index);
327
236
  if (info) {
328
237
  return new WebGLActiveInfo(info);
329
238
  }
330
239
  return null;
331
240
  }
332
241
  getUniformBlockIndex(program, uniformBlockName) {
333
- this._glCheckError('getUniformBlockIndex');
334
- const getUniformBlockIndex = this._getMethod('getUniformBlockIndex');
335
242
  const value = program.native;
336
- return getUniformBlockIndex(value, uniformBlockName);
243
+ return this.native.getUniformBlockIndex(value, uniformBlockName);
337
244
  }
338
245
  getUniformIndices(program, uniformNames) {
339
- this._glCheckError('getUniformIndices');
340
- const getUniformIndices = this._getMethod('getUniformIndices');
341
246
  const value = program.native;
342
- return getUniformIndices(value, uniformNames);
247
+ return this.native.getUniformIndices(value, uniformNames);
343
248
  }
344
249
  invalidateFramebuffer(target, attachments) {
345
- this._glCheckError('invalidateFramebuffer');
346
- const invalidateFramebuffer = this._getMethod('invalidateFramebuffer');
347
- invalidateFramebuffer(target, attachments);
250
+ this.native.invalidateFramebuffer(target, attachments);
348
251
  }
349
252
  invalidateSubFramebuffer(target, attachments, x, y, width, height) {
350
- this._glCheckError('invalidateSubFramebuffer');
351
- const invalidateSubFramebuffer = this._getMethod('invalidateSubFramebuffer');
352
- invalidateSubFramebuffer(target, attachments, x, y, width, height);
253
+ this.native.invalidateSubFramebuffer(target, attachments, x, y, width, height);
353
254
  }
354
255
  isQuery(query) {
355
- this._glCheckError('isQuery');
356
- const isQuery = this._getMethod('isQuery');
357
256
  const value = query.native;
358
- return isQuery(value);
257
+ return this.native.isQuery(value);
359
258
  }
360
259
  isSampler(sampler) {
361
- this._glCheckError('isSampler');
362
- const isSampler = this._getMethod('isSampler');
363
260
  const value = sampler.native;
364
- return isSampler(value);
261
+ return this.native.isSampler(value);
365
262
  }
366
263
  isSync(sync) {
367
- this._glCheckError('isSync');
368
- const isSync = this._getMethod('isSync');
369
264
  const value = sync.native;
370
- return isSync(value);
265
+ return this.native.isSync(value);
371
266
  }
372
267
  isTransformFeedback(transformFeedback) {
373
- this._glCheckError('isTransformFeedback');
374
- const isTransformFeedback = this._getMethod('isTransformFeedback');
375
268
  const value = transformFeedback.native;
376
- return isTransformFeedback(value);
269
+ return this.native.isTransformFeedback(value);
377
270
  }
378
271
  isVertexArray(vertexArray) {
379
- this._glCheckError('isVertexArray');
380
- const isVertexArray = this._getMethod('isVertexArray');
381
272
  const value = vertexArray.native;
382
- return isVertexArray(value);
273
+ return this.native.isVertexArray(value);
383
274
  }
384
275
  pauseTransformFeedback() {
385
- this._glCheckError('pauseTransformFeedback');
386
- const pauseTransformFeedback = this._getMethod('pauseTransformFeedback');
387
- pauseTransformFeedback();
276
+ this.native.pauseTransformFeedback();
388
277
  }
389
278
  readBuffer(src) {
390
- this._glCheckError('readBuffer');
391
- const readBuffer = this._getMethod('readBuffer');
392
- readBuffer(src);
279
+ this.native.readBuffer(src);
393
280
  }
394
281
  renderbufferStorageMultisample(target, samples, internalFormat, width, height) {
395
- this._glCheckError('renderbufferStorageMultisample');
396
- const renderbufferStorageMultisample = this._getMethod('renderbufferStorageMultisample');
397
- renderbufferStorageMultisample(target, samples, internalFormat, width, height);
282
+ this.native.renderbufferStorageMultisample(target, samples, internalFormat, width, height);
398
283
  }
399
284
  resumeTransformFeedback() {
400
- this._glCheckError('resumeTransformFeedback');
401
- const resumeTransformFeedback = this._getMethod('resumeTransformFeedback');
402
- resumeTransformFeedback();
285
+ this.native.resumeTransformFeedback();
403
286
  }
404
287
  samplerParameterf(sampler, pname, param) {
405
- this._glCheckError('samplerParameterf');
406
- const samplerParameterf = this._getMethod('samplerParameterf');
407
288
  const value = sampler.native;
408
- samplerParameterf(value, pname, param);
289
+ this.native.samplerParameterf(value, pname, param);
409
290
  }
410
291
  /* Uniforms */
411
292
  /* Sync objects */
412
293
  samplerParameteri(sampler, pname, param) {
413
- this._glCheckError('samplerParameteri');
414
- const samplerParameteri = this._getMethod('samplerParameteri');
415
294
  const value = sampler.native;
416
- samplerParameteri(value, pname, param);
295
+ this.native.samplerParameteri(value, pname, param);
417
296
  }
418
297
  texImage3D(target, level, internalformat, width, height, depth, border, format, type, source) {
419
- this._glCheckError('texImage3D');
420
- const texImage3D = this._getMethod('texImage3D');
421
298
  if (typeof source === 'number') {
422
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
299
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
423
300
  }
424
301
  else if (source && source.buffer) {
425
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
302
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
426
303
  }
427
304
  else if (source instanceof android.graphics.Bitmap) {
428
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
305
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source);
429
306
  }
430
307
  else if (source instanceof ImageSource) {
431
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.android);
308
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.android);
432
309
  }
433
310
  else if (source instanceof ImageAsset) {
434
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
311
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
435
312
  }
436
313
  else if (source instanceof ImageBitmap) {
437
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
314
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source.native);
438
315
  }
439
316
  else if (source && typeof source.tagName === 'string' && (source.tagName === 'IMG' || source.tagName === 'IMAGE')) {
440
317
  if (source._imageSource instanceof ImageSource) {
441
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._imageSource.android);
318
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._imageSource.android);
442
319
  }
443
320
  else if (source._image instanceof android.graphics.Bitmap) {
444
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._image);
321
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._image);
445
322
  }
446
323
  else if (source._asset instanceof ImageAsset) {
447
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._asset.native);
324
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._asset.native);
448
325
  }
449
326
  else if (typeof source.src === 'string') {
450
327
  const result = ImageSource.fromFileSync(source.src);
451
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, result ? result.android : null);
328
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, result ? result.android : null);
452
329
  }
453
330
  }
454
331
  else if (source && typeof source.tagName === 'string' && source.tagName === 'CANVAS' && source._canvas instanceof Canvas) {
455
- texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._canvas.native);
332
+ this.native.texImage3D(target, level, internalformat, width, height, depth, border, format, type, source._canvas.native);
456
333
  }
457
334
  }
458
335
  texStorage2D(target, levels, internalformat, width, height) {
459
- this._glCheckError('texStorage2D');
460
- const texStorage2D = this._getMethod('texStorage2D');
461
- texStorage2D(target, levels, internalformat, width, height);
336
+ this.native.texStorage2D(target, levels, internalformat, width, height);
462
337
  }
463
338
  texStorage3D(target, levels, internalformat, width, height, depth) {
464
- this._glCheckError('texStorage3D');
465
- const texStorage3D = this._getMethod('texStorage3D');
466
- texStorage3D(target, levels, internalformat, width, height, depth);
339
+ this.native.texStorage3D(target, levels, internalformat, width, height, depth);
467
340
  }
468
341
  texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData, srcOffset = 0) {
469
- this._glCheckError('texSubImage3D');
470
- const texSubImage3D = this._getMethod('texSubImage3D');
471
342
  if (typeof srcData === 'number') {
472
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
343
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
473
344
  }
474
345
  else if (srcData && srcData.buffer) {
475
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData, srcOffset);
346
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData, srcOffset);
476
347
  }
477
348
  else if (srcData instanceof android.graphics.Bitmap) {
478
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
349
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData);
479
350
  }
480
351
  else if (srcData instanceof ImageSource) {
481
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.android);
352
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.android);
482
353
  }
483
354
  else if (srcData instanceof ImageAsset) {
484
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
355
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
485
356
  }
486
357
  else if (srcData instanceof ImageBitmap) {
487
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
358
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData.native);
488
359
  }
489
360
  else if (srcData && typeof srcData.tagName === 'string' && (srcData.tagName === 'IMG' || srcData.tagName === 'IMAGE')) {
490
361
  if (srcData._imageSource instanceof ImageSource) {
491
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._imageSource.android);
362
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._imageSource.android);
492
363
  }
493
364
  else if (srcData._image instanceof android.graphics.Bitmap) {
494
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._image);
365
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._image);
495
366
  }
496
367
  else if (srcData._asset instanceof ImageAsset) {
497
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._asset.native);
368
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._asset.native);
498
369
  }
499
370
  else if (typeof srcData.src === 'string') {
500
371
  const result = ImageSource.fromFileSync(srcData.src);
501
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, result ? result.android : null);
372
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, result ? result.android : null);
502
373
  }
503
374
  }
504
375
  else if (srcData && typeof srcData.tagName === 'string' && srcData.tagName === 'CANVAS' && srcData._canvas instanceof TNSCanvas) {
505
- texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._canvas.native);
376
+ this.native.texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, srcData._canvas.native);
506
377
  }
507
378
  }
508
379
  transformFeedbackVaryings(program, varyings, bufferMode) {
509
- this._glCheckError('transformFeedbackVaryings');
510
- const transformFeedbackVaryings = this._getMethod('transformFeedbackVaryings');
511
380
  const value = program.native;
512
- transformFeedbackVaryings(value, varyings, bufferMode);
381
+ this.native.transformFeedbackVaryings(value, varyings, bufferMode);
513
382
  }
514
383
  uniform1ui(location, v0) {
515
- this._glCheckError('uniform1ui');
516
384
  const value = location.native;
517
- const uniform1ui = this._getMethod('uniform1ui');
518
- uniform1ui(value, v0);
385
+ this.native.uniform1ui(value, v0);
519
386
  }
520
387
  uniform1uiv(location, data) {
521
- this._glCheckError('uniform1uiv');
522
- const uniform1uiv = this._getMethod('uniform1uiv');
523
388
  const value = location.native;
524
- uniform1uiv(value, data);
389
+ this.native.uniform1uiv(value, data);
525
390
  }
526
391
  uniform2ui(location, v0, v1) {
527
- this._glCheckError('uniform2ui');
528
- const uniform2ui = this._getMethod('uniform2ui');
529
392
  const value = location.native;
530
- uniform2ui(value, v0, v1);
393
+ this.native.uniform2ui(value, v0, v1);
531
394
  }
532
395
  uniform2uiv(location, data) {
533
- this._glCheckError('uniform2uiv');
534
- const uniform2uiv = this._getMethod('uniform2uiv');
535
396
  const value = location.native;
536
- uniform2uiv(value, data);
397
+ this.native.uniform2uiv(value, data);
537
398
  }
538
399
  /* Sync objects */
539
400
  /* Miscellaneous constants */
540
401
  uniform3ui(location, v0, v1, v2) {
541
- this._glCheckError('uniform3ui');
542
- const uniform3ui = this._getMethod('uniform3ui');
543
402
  const value = location.native;
544
- uniform3ui(value, v0, v1, v2);
403
+ this.native.uniform3ui(value, v0, v1, v2);
545
404
  }
546
405
  uniform3uiv(location, data) {
547
- this._glCheckError('uniform3uiv');
548
- const uniform3uiv = this._getMethod('uniform3uiv');
549
406
  const value = location.native;
550
- uniform3uiv(value, data);
407
+ this.native.uniform3uiv(value, data);
551
408
  }
552
409
  uniform4ui(location, v0, v1, v2, v3) {
553
- this._glCheckError('uniform4ui');
554
- const uniform4ui = this._getMethod('uniform4ui');
555
410
  const value = location.native;
556
- uniform4ui(value, v0, v1, v2, v3);
411
+ this.native.uniform4ui(value, v0, v1, v2, v3);
557
412
  }
558
413
  uniform4uiv(location, data) {
559
- this._glCheckError('uniform4uiv');
560
- const uniform4uiv = this._getMethod('uniform4uiv');
561
414
  const value = location.native;
562
- uniform4uiv(value, data);
415
+ this.native.uniform4uiv(value, data);
563
416
  }
564
417
  uniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding) {
565
- this._glCheckError('uniformBlockBinding');
566
- const uniformBlockBindingFunc = this._getMethod('uniformBlockBinding');
567
418
  const value = program.native;
568
- uniformBlockBindingFunc(value, uniformBlockIndex, uniformBlockBinding);
419
+ this.native.uniformBlockBinding(value, uniformBlockIndex, uniformBlockBinding);
569
420
  }
570
421
  uniformMatrix2x3fv(location, transpose, data) {
571
- this._glCheckError('uniformMatrix2x3fv');
572
- const uniformMatrix2x3fv = this._getMethod('uniformMatrix2x3fv');
573
422
  const value = location.native;
574
- uniformMatrix2x3fv(value, transpose, data);
423
+ this.native.uniformMatrix2x3fv(value, transpose, data);
575
424
  }
576
425
  uniformMatrix2x4fv(location, transpose, data) {
577
- this._glCheckError('uniformMatrix2x4fv');
578
- const uniformMatrix2x4fv = this._getMethod('uniformMatrix2x4fv');
579
426
  const value = location.native;
580
- uniformMatrix2x4fv(value, transpose, data);
427
+ this.native.uniformMatrix2x4fv(value, transpose, data);
581
428
  }
582
429
  uniformMatrix3x2fv(location, transpose, data) {
583
- this._glCheckError('uniformMatrix3x2fv');
584
- const uniformMatrix3x2fv = this._getMethod('uniformMatrix3x2fv');
585
430
  const value = location.native;
586
- uniformMatrix3x2fv(value, transpose, data);
431
+ this.native.uniformMatrix3x2fv(value, transpose, data);
587
432
  }
588
433
  uniformMatrix3x4fv(location, transpose, data) {
589
- this._glCheckError('uniformMatrix3x4fv');
590
- const uniformMatrix3x4fv = this._getMethod('uniformMatrix3x4fv');
591
434
  const value = location.native;
592
- uniformMatrix3x4fv(value, transpose, data);
435
+ this.native.uniformMatrix3x4fv(value, transpose, data);
593
436
  }
594
437
  uniformMatrix4x2fv(location, transpose, data) {
595
- this._glCheckError('uniformMatrix4x2fv');
596
- const uniformMatrix4x2fv = this._getMethod('uniformMatrix4x2fv');
597
438
  const value = location.native;
598
- uniformMatrix4x2fv(value, transpose, data);
439
+ this.native.uniformMatrix4x2fv(value, transpose, data);
599
440
  }
600
441
  uniformMatrix4x3fv(location, transpose, data) {
601
- this._glCheckError('uniformMatrix4x3fv');
602
- const uniformMatrix4x3fv = this._getMethod('uniformMatrix4x3fv');
603
442
  const value = location.native;
604
- uniformMatrix4x3fv(value, transpose, data);
443
+ this.native.uniformMatrix4x3fv(value, transpose, data);
605
444
  }
606
445
  vertexAttribDivisor(index, divisor) {
607
- this._glCheckError('vertexAttribDivisor');
608
- const vertexAttribDivisor = this._getMethod('vertexAttribDivisor');
609
- vertexAttribDivisor(index, divisor);
446
+ this.native.vertexAttribDivisor(index, divisor);
610
447
  }
611
448
  vertexAttribI4i(index, v0, v1, v2, v3) {
612
- this._glCheckError('vertexAttribI4i');
613
- const vertexAttribI4i = this._getMethod('vertexAttribI4i');
614
- vertexAttribI4i(index, v0, v1, v2, v3);
449
+ this.native.vertexAttribI4i(index, v0, v1, v2, v3);
615
450
  }
616
451
  vertexAttribI4iv(index, value) {
617
- this._glCheckError('vertexAttribI4iv');
618
- const vertexAttribI4iv = this._getMethod('vertexAttribI4iv');
619
- vertexAttribI4iv(index, value);
452
+ this.native.vertexAttribI4iv(index, value);
620
453
  }
621
454
  vertexAttribI4ui(index, v0, v1, v2, v3) {
622
- this._glCheckError('vertexAttribI4ui');
623
- const vertexAttribI4ui = this._getMethod('vertexAttribI4ui');
624
- vertexAttribI4ui(index, v0, v1, v2, v3);
455
+ this.native.vertexAttribI4ui(index, v0, v1, v2, v3);
625
456
  }
626
457
  vertexAttribI4uiv(index, value) {
627
- this._glCheckError('vertexAttribI4uiv');
628
- const vertexAttribI4uiv = this._getMethod('vertexAttribI4uiv');
629
- vertexAttribI4uiv(index, value);
458
+ this.native.vertexAttribI4uiv(index, value);
630
459
  }
631
460
  }
632
461
  (() => {
633
462
  Helpers.initialize();
634
- ctor = global.CanvasJSIModule.createWebGL2Context;
635
463
  })();
636
464
  //# sourceMappingURL=index.js.map