@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
@@ -6,10 +6,7 @@
6
6
  #pragma process_pending_includes
7
7
 
8
8
  #include <vector>
9
- #include "rust/cxx.h"
10
- #include "canvas-cxx/src/lib.rs.h"
11
- #import "NativeScript/JSIRuntime.h"
12
- #include "VecMutableBuffer.h"
9
+ #include "Common.h"
13
10
 
14
11
  #include "WebGLRenderingContextBase.h"
15
12
 
@@ -20,7 +17,7 @@
20
17
  #include "ImageBitmapImpl.h"
21
18
  #include "RafImpl.h"
22
19
 
23
- #include "canvas2d/CanvasRenderingContext2DImpl.h"
20
+ #include "CanvasRenderingContext2DImpl.h"
24
21
 
25
22
  #include "WebGLBuffer.h"
26
23
  #include "WebGLFramebuffer.h"
@@ -56,461 +53,336 @@
56
53
  #include "extensions/WEBGL_lose_contextImpl.h"
57
54
  #include "extensions/ANGLE_instanced_arraysImpl.h"
58
55
  #include "extensions/WEBGL_draw_buffersImpl.h"
56
+ #include "extensions/OES_fbo_render_mipmap.h"
59
57
  #include "gl.h"
60
58
 
61
- using namespace facebook;
62
- using namespace org::nativescript::canvas;
63
-
64
- class JSI_EXPORT WebGLRenderingContext : public WebGLRenderingContextBase {
59
+ class WebGLRenderingContext : public WebGLRenderingContextBase {
65
60
  public:
66
61
 
67
- WebGLRenderingContext(rust::Box<WebGLState> state);
62
+ WebGLRenderingContext(WebGLState* state);
68
63
 
69
- WebGLRenderingContext(rust::Box<WebGLState> state, WebGLRenderingVersion version);
64
+ WebGLRenderingContext(WebGLState* state, WebGLRenderingVersion version);
70
65
 
71
- jsi::Value get(jsi::Runtime &, const jsi::PropNameID &name) override;
66
+ static v8::Local<v8::FunctionTemplate> GetCtor(v8::Isolate *isolate);
72
67
 
73
- std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime &rt) override;
68
+ static v8::Local<v8::Object>
69
+ NewInstance(v8::Isolate *isolate, WebGLRenderingContext *renderingContext) {
70
+ auto context = isolate->GetCurrentContext();
71
+ v8::EscapableHandleScope scope(isolate);
72
+ auto object = WebGLRenderingContext::GetCtor(isolate)->GetFunction(
73
+ context).ToLocalChecked()->NewInstance(context).ToLocalChecked();
74
+ SetNativeType(isolate, object, NativeType::WebGLRenderingContextBase);
75
+ auto ext = v8::External::New(isolate, renderingContext);
76
+ object->SetInternalField(0, ext);
77
+ return scope.Escape(object);
78
+ }
74
79
 
75
- jsi::Value GetParameterInternal(jsi::Runtime &runtime, uint32_t pnameValue,
76
- rust::Box<WebGLResult> result);
80
+ static WebGLRenderingContext *GetPointer(const v8::Local<v8::Object> &object);
77
81
 
78
- static inline jsi::Value GetProperty(const std::string &methodName) {
79
- if (methodName == "DEPTH_BUFFER_BIT") { return {0x00000100}; }
80
82
 
81
- if (methodName == "STENCIL_BUFFER_BIT") { return {0x00000400}; }
83
+ static void SetConstants(v8::Isolate *isolate, const v8::Local<v8::ObjectTemplate> &tmpl);
82
84
 
83
- if (methodName == "COLOR_BUFFER_BIT") { return {0x00004000}; }
85
+ static void
86
+ SetProps(v8::Isolate *isolate, const v8::Local<v8::ObjectTemplate> &tmpl);
84
87
 
85
- if (methodName == "POINTS") { return {0x0000}; }
88
+ static void SetMethods(v8::Isolate *isolate,
89
+ const v8::Local<v8::ObjectTemplate> &tmpl);
86
90
 
87
- if (methodName == "LINES") { return {0x0001}; }
88
91
 
89
- if (methodName == "LINE_LOOP") { return {0x0002}; }
92
+ v8::Local<v8::Value> GetParameterInternal(v8::Isolate *isolate, uint32_t pnameValue,
93
+ WebGLResult* result);
90
94
 
91
- if (methodName == "LINE_STRIP") { return {0x0003}; }
95
+ static void GetDrawingBufferWidth(v8::Local<v8::String> name,
96
+ const v8::PropertyCallbackInfo<v8::Value> &info);
92
97
 
93
- if (methodName == "TRIANGLES") { return {0x0004}; }
98
+ static void GetFlipY(v8::Local<v8::String> name,
99
+ const v8::PropertyCallbackInfo<v8::Value> &info);
94
100
 
95
- if (methodName == "TRIANGLE_STRIP") { return {0x0005}; }
101
+ static void GetDrawingBufferHeight(v8::Local<v8::String> name,
102
+ const v8::PropertyCallbackInfo<v8::Value> &info);
96
103
 
97
- if (methodName == "TRIANGLE_FAN") { return {0x0006}; }
104
+ static void __Resized(const v8::FunctionCallbackInfo<v8::Value> &args);
98
105
 
99
- if (methodName == "ZERO") { return {0}; }
106
+ static void __StartRaf(const v8::FunctionCallbackInfo<v8::Value> &args);
100
107
 
101
- if (methodName == "ONE") { return {1}; }
108
+ static void __StopRaf(const v8::FunctionCallbackInfo<v8::Value> &args);
102
109
 
103
- if (methodName == "SRC_COLOR") { return {0x0300}; }
110
+ static void ActiveTexture(const v8::FunctionCallbackInfo<v8::Value> &args);
104
111
 
105
- if (methodName == "ONE_MINUS_SRC_COLOR") { return {0x0301}; }
112
+ static void AttachShader(const v8::FunctionCallbackInfo<v8::Value> &args);
106
113
 
107
- if (methodName == "SRC_ALPHA") { return {0x0302}; }
114
+ static void BindAttribLocation(const v8::FunctionCallbackInfo<v8::Value> &args);
108
115
 
109
- if (methodName == "ONE_MINUS_SRC_ALPHA") { return {0x0303}; }
116
+ static void BindBuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
110
117
 
111
- if (methodName == "DST_ALPHA") { return {0x0304}; }
118
+ static void BindFramebuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
112
119
 
113
- if (methodName == "ONE_MINUS_DST_ALPHA") { return {0x0305}; }
120
+ static void BindRenderbuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
114
121
 
115
- if (methodName == "DST_COLOR") { return {0x0306}; }
122
+ static void BindTexture(const v8::FunctionCallbackInfo<v8::Value> &args);
116
123
 
117
- if (methodName == "ONE_MINUS_DST_COLOR") { return {0x0307}; }
124
+ static void BlendColor(const v8::FunctionCallbackInfo<v8::Value> &args);
118
125
 
119
- if (methodName == "SRC_ALPHA_SATURATE") { return {0x0308}; }
126
+ static void BlendEquationSeparate(const v8::FunctionCallbackInfo<v8::Value> &args);
120
127
 
128
+ static void BlendEquation(const v8::FunctionCallbackInfo<v8::Value> &args);
121
129
 
122
- if (methodName == "CONSTANT_COLOR") { return {0x8001}; }
123
- if (methodName == "ONE_MINUS_CONSTANT_COLOR") { return {0x8002}; }
124
- if (methodName == "CONSTANT_ALPHA") { return {0x8003}; }
125
- if (methodName == "ONE_MINUS_CONSTANT_ALPHA") { return {0x8004}; }
130
+ static void BlendFuncSeparate(const v8::FunctionCallbackInfo<v8::Value> &args);
126
131
 
132
+ static void BlendFunc(const v8::FunctionCallbackInfo<v8::Value> &args);
127
133
 
128
- /* Blending equations */
134
+ static void BufferData(const v8::FunctionCallbackInfo<v8::Value> &args);
129
135
 
130
- if (methodName == "FUNC_ADD") { return {0x8006}; }
131
- if (methodName == "FUNC_SUBTRACT") { return {0x800A}; }
132
- if (methodName == "FUNC_REVERSE_SUBTRACT") { return {0x800B}; }
133
- if (methodName == "BLEND_EQUATION") { return {0x8009}; }
134
- if (methodName == "BLEND_EQUATION_RGB") { return {0x8009}; }
135
- if (methodName == "BLEND_EQUATION_ALPHA") { return {0x883D}; }
136
+ static void BufferSubData(const v8::FunctionCallbackInfo<v8::Value> &args);
136
137
 
138
+ static void CheckFramebufferStatus(const v8::FunctionCallbackInfo<v8::Value> &args);
137
139
 
138
- if (methodName == "BLEND_DST_RGB") { return {0x80C8}; }
139
- if (methodName == "BLEND_SRC_RGB") { return {0x80C9}; }
140
- if (methodName == "BLEND_DST_ALPHA") { return {0x80CA}; }
140
+ static void ClearColor(const v8::FunctionCallbackInfo<v8::Value> &args);
141
141
 
142
+ static void ClearDepth(const v8::FunctionCallbackInfo<v8::Value> &args);
142
143
 
143
- if (methodName == "BLEND_SRC_ALPHA") { return {0x80CB}; }
144
- if (methodName == "BLEND_COLOR") { return {0x8005}; }
145
- if (methodName == "ARRAY_BUFFER_BINDING") { return {0x8894}; }
144
+ static void ClearStencil(const v8::FunctionCallbackInfo<v8::Value> &args);
146
145
 
146
+ static void Clear(const v8::FunctionCallbackInfo<v8::Value> &args);
147
147
 
148
- if (methodName == "ELEMENT_ARRAY_BUFFER_BINDING") { return {0x8895}; }
149
- if (methodName == "LINE_WIDTH") { return {0x0B21}; }
150
- if (methodName == "ALIASED_POINT_SIZE_RANGE") { return {0x846D}; }
148
+ static void ColorMask(const v8::FunctionCallbackInfo<v8::Value> &args);
151
149
 
152
- if (methodName == "ALIASED_LINE_WIDTH_RANGE") { return {0x846E}; }
153
- if (methodName == "CULL_FACE_MODE") { return {0x0B45}; }
154
- if (methodName == "FRONT_FACE") { return {0x0B46}; }
150
+ static void Commit(const v8::FunctionCallbackInfo<v8::Value> &args);
155
151
 
156
- if (methodName == "DEPTH_RANGE") { return {0x0B70}; }
157
- if (methodName == "DEPTH_WRITEMASK") { return {0x0B72}; }
158
- if (methodName == "DEPTH_CLEAR_VALUE") { return {0x0B73}; }
152
+ static void CompileShader(const v8::FunctionCallbackInfo<v8::Value> &args);
159
153
 
160
- if (methodName == "DEPTH_FUNC") { return {0x0B74}; }
161
- if (methodName == "STENCIL_CLEAR_VALUE") { return {0x0B91}; }
162
- if (methodName == "STENCIL_FUNC") { return {0x0B92}; }
154
+ static void CompressedTexImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
163
155
 
164
- if (methodName == "STENCIL_FAIL") { return {0x0B94}; }
165
- if (methodName == "STENCIL_PASS_DEPTH_FAIL") { return {0x0B95}; }
166
- if (methodName == "STENCIL_PASS_DEPTH_PASS") { return {0x0B96}; }
156
+ static void CompressedTexSubImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
167
157
 
168
- if (methodName == "STENCIL_REF") { return {0x0B97}; }
169
- if (methodName == "STENCIL_VALUE_MASK") { return {0x0B93}; }
170
- if (methodName == "STENCIL_WRITEMASK") { return {0x0B98}; }
158
+ static void CopyTexImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
171
159
 
172
- if (methodName == "STENCIL_BACK_FUNC") { return {0x8800}; }
173
- if (methodName == "STENCIL_BACK_FAIL") { return {0x8801}; }
174
- if (methodName == "STENCIL_BACK_PASS_DEPTH_FAIL") { return {0x8802}; }
160
+ static void CopyTexSubImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
175
161
 
176
- if (methodName == "STENCIL_BACK_PASS_DEPTH_PASS") { return {0x8803}; }
177
- if (methodName == "STENCIL_BACK_REF") { return {0x8CA3}; }
178
- if (methodName == "STENCIL_BACK_VALUE_MASK") { return {0x8CA4}; }
179
- if (methodName == "STENCIL_BACK_WRITEMASK") { return {0x8CA5}; }
162
+ static void CreateBuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
180
163
 
181
- if (methodName == "VIEWPORT") { return {0x0BA2}; }
182
- if (methodName == "SCISSOR_BOX") { return {0x0C10}; }
183
- if (methodName == "COLOR_CLEAR_VALUE") { return {0x0C22}; }
184
- if (methodName == "COLOR_WRITEMASK") { return {0x0C23}; }
164
+ static void CreateFramebuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
185
165
 
186
- if (methodName == "UNPACK_ALIGNMENT") { return {0x0CF5}; }
187
- if (methodName == "PACK_ALIGNMENT") { return {0x0D05}; }
188
- if (methodName == "MAX_TEXTURE_SIZE") { return {0x0D33}; }
166
+ static void CreateProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
189
167
 
168
+ static void CreateRenderbuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
190
169
 
191
- if (methodName == "MAX_VIEWPORT_DIMS") { return {0x0D3A}; }
192
- if (methodName == "SUBPIXEL_BITS") { return {0x0D50}; }
170
+ static void CreateShader(const v8::FunctionCallbackInfo<v8::Value> &args);
193
171
 
194
- if (methodName == "RED_BITS") { return {0x0D52}; }
195
- if (methodName == "GREEN_BITS") { return {0x0D53}; }
196
- if (methodName == "BLUE_BITS") { return {0x0D54}; }
197
- if (methodName == "ALPHA_BITS") { return {0x0D55}; }
172
+ static void CreateTexture(const v8::FunctionCallbackInfo<v8::Value> &args);
198
173
 
199
- if (methodName == "STENCIL_BITS") { return {0x0D57}; }
200
- if (methodName == "POLYGON_OFFSET_UNITS") { return {0x2A00}; }
201
- if (methodName == "POLYGON_OFFSET_FACTOR") { return {0x8038}; }
174
+ static void CullFace(const v8::FunctionCallbackInfo<v8::Value> &args);
202
175
 
203
- if (methodName == "TEXTURE_BINDING_2D") { return {0x8069}; }
204
- if (methodName == "SAMPLE_BUFFERS") { return {0x80A8}; }
205
- if (methodName == "SAMPLES") { return {0x80A9}; }
206
- if (methodName == "SAMPLE_COVERAGE_VALUE") { return {0x80AA}; }
176
+ static void DeleteBuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
207
177
 
208
- if (methodName == "SAMPLE_COVERAGE_INVERT") { return {0x80AB}; }
209
- if (methodName == "COMPRESSED_TEXTURE_FORMATS") { return {0x86A3}; }
210
- if (methodName == "VENDOR") { return {0x1F00}; }
211
- if (methodName == "RENDERER") { return {0x1F01}; }
178
+ static void DeleteFramebuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
212
179
 
213
- if (methodName == "VERSION") { return {0x1F02}; }
214
- if (methodName == "IMPLEMENTATION_COLOR_READ_TYPE") { return {0x8B9A}; }
215
- if (methodName == "IMPLEMENTATION_COLOR_READ_FORMAT") { return {0x8B9B}; }
216
- if (methodName == "BROWSER_DEFAULT_WEBGL") { return {0x9244}; }
180
+ static void DeleteProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
217
181
 
218
- if (methodName == "STATIC_DRAW") { return {0x88E4}; }
219
- if (methodName == "STREAM_DRAW") { return {0x88E0}; }
220
- if (methodName == "DYNAMIC_DRAW") { return {0x88E8}; }
221
- if (methodName == "ARRAY_BUFFER") { return {0x8892}; }
182
+ static void DeleteRenderbuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
222
183
 
223
- if (methodName == "ELEMENT_ARRAY_BUFFER") { return {0x8893}; }
224
- if (methodName == "BUFFER_SIZE") { return {0x8764}; }
225
- if (methodName == "BUFFER_USAGE") { return {0x8765}; }
226
- if (methodName == "CURRENT_VERTEX_ATTRIB") { return {0x8626}; }
184
+ static void DeleteShader(const v8::FunctionCallbackInfo<v8::Value> &args);
227
185
 
186
+ static void DeleteTexture(const v8::FunctionCallbackInfo<v8::Value> &args);
228
187
 
229
- if (methodName == "VERTEX_ATTRIB_ARRAY_ENABLED") { return {0x8622}; }
230
- if (methodName == "VERTEX_ATTRIB_ARRAY_SIZE") { return {0x8623}; }
231
- if (methodName == "VERTEX_ATTRIB_ARRAY_STRIDE") { return {0x8624}; }
232
- if (methodName == "VERTEX_ATTRIB_ARRAY_TYPE") { return {0x8625}; }
233
- if (methodName == "VERTEX_ATTRIB_ARRAY_NORMALIZED") { return {0x886A}; }
234
- if (methodName == "VERTEX_ATTRIB_ARRAY_POINTER") { return {0x8645}; }
235
- if (methodName == "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING") { return {0x889F}; }
188
+ static void DepthFunc(const v8::FunctionCallbackInfo<v8::Value> &args);
236
189
 
237
- if (methodName == "CULL_FACE") { return {0x0B44}; }
238
- if (methodName == "FRONT") { return {0x0404}; }
239
- if (methodName == "BACK") { return {0x0405}; }
240
- if (methodName == "FRONT_AND_BACK") { return {0x0408}; }
241
-
242
- if (methodName == "BLEND") { return {0x0BE2}; }
243
- if (methodName == "DEPTH_TEST") { return {0x0B71}; }
244
- if (methodName == "DITHER") { return {0x0BD0}; }
245
- if (methodName == "POLYGON_OFFSET_FILL") { return {0x8037}; }
246
-
247
- if (methodName == "SAMPLE_ALPHA_TO_COVERAGE") { return {0x809E}; }
248
- if (methodName == "SAMPLE_COVERAGE") { return {0x80A0}; }
249
- if (methodName == "SCISSOR_TEST") { return {0x0C11}; }
250
- if (methodName == "STENCIL_TEST") { return {0x0B90}; }
251
-
252
-
253
- /* Errors */
254
-
255
- if (methodName == "NO_ERROR") { return {0}; }
256
- if (methodName == "INVALID_ENUM") { return {0x0500}; }
257
- if (methodName == "INVALID_VALUE") { return {0x0501}; }
258
- if (methodName == "INVALID_OPERATION") { return {0x0502}; }
259
-
260
- if (methodName == "OUT_OF_MEMORY") { return {0x0505}; }
261
- if (methodName == "CONTEXT_LOST_WEBGL") { return {0x9242}; }
262
- if (methodName == "CW") { return {0x0900}; }
263
- if (methodName == "CCW") { return {0x0901}; }
264
-
265
- if (methodName == "DONT_CARE") { return {0x1100}; }
266
- if (methodName == "FASTEST") { return {0x1101}; }
267
- if (methodName == "NICEST") { return {0x1102}; }
268
- if (methodName == "GENERATE_MIPMAP_HINT") { return {0x8192}; }
269
-
270
- if (methodName == "BYTE") { return {0x1400}; }
271
- if (methodName == "UNSIGNED_BYTE") { return {0x1401}; }
272
- if (methodName == "SHORT") { return {0x1402}; }
273
- if (methodName == "UNSIGNED_SHORT") { return {0x1403}; }
274
-
275
- if (methodName == "INT") { return {0x1404}; }
276
- if (methodName == "UNSIGNED_INT") { return {0x1405}; }
277
- if (methodName == "FLOAT") { return {0x1406}; }
278
- if (methodName == "DEPTH_COMPONENT") { return {0x1902}; }
279
-
280
- if (methodName == "ALPHA") { return {0x1906}; }
281
- if (methodName == "RGB") { return {0x1907}; }
282
-
283
- /* Clearing buffers */
284
-
285
- if (methodName == "RGBA") { return {0x1908}; }
286
- if (methodName == "LUMINANCE") { return {0x1909}; }
287
- if (methodName == "LUMINANCE_ALPHA") { return {0x190A}; }
288
-
289
- /* Clearing buffers */
290
-
291
- /* Rendering primitives */
292
-
293
- if (methodName == "UNSIGNED_SHORT_4_4_4_4") { return {0x8033}; }
294
- if (methodName == "UNSIGNED_SHORT_5_5_5_1") { return {0x8034}; }
295
- if (methodName == "UNSIGNED_SHORT_5_6_5") { return {0x8363}; }
296
- if (methodName == "FRAGMENT_SHADER") { return {0x8B30}; }
297
- if (methodName == "VERTEX_SHADER") { return {0x8B31}; }
298
- if (methodName == "COMPILE_STATUS") { return {0x8B81}; }
299
- if (methodName == "DELETE_STATUS") { return {0x8B80}; }
300
-
301
- /* Rendering primitives */
302
-
303
- /* Blending modes */
304
-
305
- if (methodName == "LINK_STATUS") { return {0x8B82}; }
306
- if (methodName == "VALIDATE_STATUS") { return {0x8B83}; }
307
- if (methodName == "ATTACHED_SHADERS") { return {0x8B85}; }
308
- if (methodName == "ACTIVE_ATTRIBUTES") { return {0x8B89}; }
309
- if (methodName == "ACTIVE_UNIFORMS") { return {0x8B86}; }
310
- if (methodName == "MAX_VERTEX_ATTRIBS") { return {0x8869}; }
311
- if (methodName == "MAX_VERTEX_UNIFORM_VECTORS") { return {0x8DFB}; }
312
- if (methodName == "MAX_VARYING_VECTORS") { return {0x8DFC}; }
313
- if (methodName == "MAX_COMBINED_TEXTURE_IMAGE_UNITS") { return {0x8B4D}; }
314
- if (methodName == "MAX_VERTEX_TEXTURE_IMAGE_UNITS") { return {0x8B4C}; }
315
- if (methodName == "MAX_TEXTURE_IMAGE_UNITS") { return {0x8872}; }
316
- if (methodName == "MAX_FRAGMENT_UNIFORM_VECTORS") { return {0x8DFD}; }
317
- if (methodName == "SHADER_TYPE") { return {0x8B4F}; }
318
- if (methodName == "SHADING_LANGUAGE_VERSION") { return {0x8B8C}; }
319
- if (methodName == "CURRENT_PROGRAM") { return {0x8B8D}; }
320
-
321
- /* Blending modes */
322
-
323
- if (methodName == "NEVER") { return {0x0200}; }
324
- if (methodName == "LESS") { return {0x0201}; }
325
- if (methodName == "EQUAL") { return {0x0202}; }
326
-
327
- /* Blending equations */
328
-
329
- /* Getting GL parameter information */
330
-
331
- if (methodName == "LEQUAL") { return {0x0203}; }
332
- if (methodName == "GREATER") { return {0x0204}; }
333
- if (methodName == "NOTEQUAL") { return {0x0205}; }
334
- if (methodName == "GEQUAL") { return {0x0206}; }
335
- if (methodName == "ALWAYS") { return {0x0207}; }
336
- if (methodName == "KEEP") { return {0x1E00}; }
337
- if (methodName == "REPLACE") { return {0x1E01}; }
338
- if (methodName == "INCR") { return {0x1E02}; }
339
- if (methodName == "DECR") { return {0x1E03}; }
340
- if (methodName == "INVERT") { return {0x150A}; }
341
- if (methodName == "INCR_WRAP") { return {0x8507}; }
342
- if (methodName == "DECR_WRAP") { return {0x8508}; }
343
- if (methodName == "NEAREST") { return {0x2600}; }
344
- if (methodName == "LINEAR") { return {0x2601}; }
345
- if (methodName == "NEAREST_MIPMAP_NEAREST") { return {0x2700}; }
346
- if (methodName == "LINEAR_MIPMAP_NEAREST") { return {0x2701}; }
347
- if (methodName == "NEAREST_MIPMAP_LINEAR") { return {0x2702}; }
348
- if (methodName == "LINEAR_MIPMAP_LINEAR") { return {0x2703}; }
349
- if (methodName == "TEXTURE_MAG_FILTER") { return {0x2800}; }
350
- if (methodName == "TEXTURE_MIN_FILTER") { return {0x2801}; }
351
- if (methodName == "TEXTURE_WRAP_S") { return {0x2802}; }
352
- if (methodName == "TEXTURE_WRAP_T") { return {0x2803}; }
353
- if (methodName == "TEXTURE_2D") { return {0x0DE1}; }
354
- if (methodName == "TEXTURE") { return {0x1702}; }
355
- if (methodName == "TEXTURE_CUBE_MAP") { return {0x8513}; }
356
- if (methodName == "TEXTURE_BINDING_CUBE_MAP") { return {0x8514}; }
357
- if (methodName == "TEXTURE_CUBE_MAP_POSITIVE_X") { return {0x8515}; }
358
- if (methodName == "TEXTURE_CUBE_MAP_NEGATIVE_X") { return {0x8516}; }
359
- if (methodName == "TEXTURE_CUBE_MAP_POSITIVE_Y") { return {0x8517}; }
360
- if (methodName == "TEXTURE_CUBE_MAP_NEGATIVE_Y") { return {0x8518}; }
361
- if (methodName == "TEXTURE_CUBE_MAP_POSITIVE_Z") { return {0x8519}; }
362
- if (methodName == "TEXTURE_CUBE_MAP_NEGATIVE_Z") { return {0x851A}; }
363
- if (methodName == "MAX_CUBE_MAP_TEXTURE_SIZE") { return {0x851C}; }
364
- if (methodName == "TEXTURE0") { return {0x84C0}; }
365
- if (methodName == "TEXTURE1") { return {0x84C1}; }
366
- if (methodName == "TEXTURE2") { return {0x84C2}; }
367
- if (methodName == "TEXTURE3") { return {0x84C3}; }
368
- if (methodName == "TEXTURE4") { return {0x84C4}; }
369
- if (methodName == "TEXTURE5") { return {0x84C5}; }
370
- if (methodName == "TEXTURE6") { return {0x84C6}; }
371
- if (methodName == "TEXTURE7") { return {0x84C7}; }
372
- if (methodName == "TEXTURE8") { return {0x84C8}; }
373
- if (methodName == "TEXTURE9") { return {0x84C9}; }
374
- if (methodName == "TEXTURE10") { return {0x84CA}; }
375
- if (methodName == "TEXTURE11") { return {0x84CB}; }
376
- if (methodName == "TEXTURE12") { return {0x84CC}; }
377
- if (methodName == "TEXTURE13") { return {0x84CD}; }
378
- if (methodName == "TEXTURE14") { return {0x84CE}; }
379
- if (methodName == "TEXTURE15") { return {0x84CF}; }
380
- if (methodName == "TEXTURE16") { return {0x84D0}; }
381
- if (methodName == "TEXTURE17") { return {0x84D1}; }
382
- if (methodName == "TEXTURE18") { return {0x84D2}; }
383
- if (methodName == "TEXTURE19") { return {0x84D3}; }
384
- if (methodName == "TEXTURE20") { return {0x84D4}; }
385
- if (methodName == "TEXTURE21") { return {0x84D5}; }
386
- if (methodName == "TEXTURE22") { return {0x84D6}; }
387
- if (methodName == "TEXTURE23") { return {0x84D7}; }
388
- if (methodName == "TEXTURE24") { return {0x84D8}; }
389
- if (methodName == "TEXTURE25") { return {0x84D9}; }
390
- if (methodName == "TEXTURE26") { return {0x84DA}; }
391
- if (methodName == "TEXTURE27") { return {0x84DB}; }
392
- if (methodName == "TEXTURE28") { return {0x84DC}; }
393
- if (methodName == "TEXTURE29") { return {0x84DD}; }
394
-
395
- /* Getting GL parameter information */
396
-
397
- /* Buffers */
398
-
399
- if (methodName == "TEXTURE30") { return {0x84DE}; }
400
- if (methodName == "TEXTURE31") { return {0x84DF}; }
401
- if (methodName == "ACTIVE_TEXTURE") { return {0x84E0}; }
402
- if (methodName == "REPEAT") { return {0x2901}; }
403
- if (methodName == "CLAMP_TO_EDGE") { return {0x812F}; }
404
- if (methodName == "MIRRORED_REPEAT") { return {0x8370}; }
405
- if (methodName == "FLOAT_VEC2") { return {0x8B50}; }
406
-
407
- /* Buffers */
408
-
409
- /* Vertex attributes */
410
-
411
- if (methodName == "FLOAT_VEC3") { return {0x8B51}; }
412
- if (methodName == "FLOAT_VEC4") { return {0x8B52}; }
413
- if (methodName == "INT_VEC2") { return {0x8B53}; }
414
- if (methodName == "INT_VEC3") { return {0x8B54}; }
415
- if (methodName == "INT_VEC4") { return {0x8B55}; }
416
- if (methodName == "BOOL") { return {0x8B56}; }
417
- if (methodName == "BOOL_VEC2") { return {0x8B57}; }
418
- if (methodName == "BOOL_VEC3") { return {0x8B58}; }
419
-
420
- /* Vertex attributes */
421
-
422
- /* Culling */
423
-
424
- if (methodName == "BOOL_VEC4") { return {0x8B59}; }
425
- if (methodName == "FLOAT_MAT2") { return {0x8B5A}; }
426
- if (methodName == "FLOAT_MAT3") { return {0x8B5B}; }
427
- if (methodName == "FLOAT_MAT4") { return {0x8B5C}; }
428
-
429
- /* Culling */
430
-
431
- /* Enabling and disabling */
432
-
433
- if (methodName == "SAMPLER_2D") { return {0x8B5E}; }
434
- if (methodName == "SAMPLER_CUBE") { return {0x8B60}; }
435
- if (methodName == "LOW_FLOAT") { return {0x8DF0}; }
436
- if (methodName == "MEDIUM_FLOAT") { return {0x8DF1}; }
437
- if (methodName == "HIGH_FLOAT") { return {0x8DF2}; }
438
- if (methodName == "LOW_INT") { return {0x8DF3}; }
439
- if (methodName == "MEDIUM_INT") { return {0x8DF4}; }
440
- if (methodName == "HIGH_INT") { return {0x8DF5}; }
441
-
442
- /* Enabling and disabling */
443
-
444
- if (methodName == "FRAMEBUFFER") { return {0x8D40}; }
445
- if (methodName == "RENDERBUFFER") { return {0x8D41}; }
446
- if (methodName == "RGBA4") { return {0x8056}; }
447
- if (methodName == "RGB5_A1") { return {0x8057}; }
448
- if (methodName == "RGB565") { return {0x8D62}; }
449
- if (methodName == "DEPTH_COMPONENT16") { return {0x81A5}; }
450
- if (methodName == "STENCIL_INDEX8") { return {0x8D48}; }
451
-
452
- /* Errors */
453
-
454
- /* Front face directions */
455
-
456
- if (methodName == "DEPTH_STENCIL") { return {0x84F9}; }
457
- if (methodName == "RENDERBUFFER_WIDTH") { return {0x8D42}; }
458
-
459
- /* Front face directions */
460
-
461
- /* Hints */
462
-
463
- if (methodName == "RENDERBUFFER_HEIGHT") { return {0x8D43}; }
464
- if (methodName == "RENDERBUFFER_INTERNAL_FORMAT") { return {0x8D44}; }
465
- if (methodName == "RENDERBUFFER_RED_SIZE") { return {0x8D50}; }
466
- if (methodName == "RENDERBUFFER_GREEN_SIZE") { return {0x8D51}; }
467
-
468
- /* Hints */
469
-
470
- /* Data types */
471
-
472
- if (methodName == "RENDERBUFFER_BLUE_SIZE") { return {0x8D52}; }
473
- if (methodName == "RENDERBUFFER_ALPHA_SIZE") { return {0x8D53}; }
474
- if (methodName == "RENDERBUFFER_DEPTH_SIZE") { return {0x8D54}; }
475
- if (methodName == "RENDERBUFFER_STENCIL_SIZE") { return {0x8D55}; }
476
- if (methodName == "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE") { return {0x8CD0}; }
477
- if (methodName == "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME") { return {0x8CD1}; }
478
- if (methodName == "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL") { return {0x8CD2}; }
190
+ static void DepthMask(const v8::FunctionCallbackInfo<v8::Value> &args);
479
191
 
480
- /* Data types */
192
+ static void DepthRange(const v8::FunctionCallbackInfo<v8::Value> &args);
481
193
 
482
- /* Pixel formats */
194
+ static void DetachShader(const v8::FunctionCallbackInfo<v8::Value> &args);
483
195
 
484
- if (methodName == "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE") { return {0x8CD3}; }
485
- if (methodName == "COLOR_ATTACHMENT0") { return {0x8CE0}; }
486
- if (methodName == "DEPTH_ATTACHMENT") { return {0x8D00}; }
487
- if (methodName == "STENCIL_ATTACHMENT") { return {0x8D20}; }
488
- if (methodName == "DEPTH_STENCIL_ATTACHMENT") { return {0x821A}; }
489
- if (methodName == "NONE") { return {}; }
196
+ static void DisableVertexAttribArray(const v8::FunctionCallbackInfo<v8::Value> &args);
490
197
 
491
- /* Pixel formats */
198
+ static void Disable(const v8::FunctionCallbackInfo<v8::Value> &args);
492
199
 
493
- /* Pixel types */
200
+ static void DrawArrays(const v8::FunctionCallbackInfo<v8::Value> &args);
494
201
 
495
- if (methodName == "FRAMEBUFFER_COMPLETE") { return {0x8CD5}; }
496
- if (methodName == "FRAMEBUFFER_INCOMPLETE_ATTACHMENT") { return {0x8CD6}; }
497
- if (methodName == "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT") { return {0x8CD7}; }
202
+ static void DrawElements(const v8::FunctionCallbackInfo<v8::Value> &args);
498
203
 
499
- /* Pixel types */
204
+ static void EnableVertexAttribArray(const v8::FunctionCallbackInfo<v8::Value> &args);
500
205
 
501
- /* Shaders */
206
+ static void Enable(const v8::FunctionCallbackInfo<v8::Value> &args);
502
207
 
503
- if (methodName == "FRAMEBUFFER_INCOMPLETE_DIMENSIONS") { return {0x8CD9}; }
504
- if (methodName == "FRAMEBUFFER_UNSUPPORTED") { return {0x8CDD}; }
505
- if (methodName == "FRAMEBUFFER_BINDING") { return {0x8CA6}; }
506
- if (methodName == "RENDERBUFFER_BINDING") { return {0x8CA7}; }
507
- if (methodName == "MAX_RENDERBUFFER_SIZE") { return {0x84E8}; }
508
- if (methodName == "INVALID_FRAMEBUFFER_OPERATION") { return {0x0506}; }
509
- if (methodName == "UNPACK_FLIP_Y_WEBGL") { return {0x9240}; }
510
- if (methodName == "UNPACK_PREMULTIPLY_ALPHA_WEBGL") { return {0x9241}; }
511
- if (methodName == "UNPACK_COLORSPACE_CONVERSION_WEBGL") { return {0x9243}; }
208
+ static void Finish(const v8::FunctionCallbackInfo<v8::Value> &args);
512
209
 
513
- return jsi::Value::undefined();
514
- }
210
+ static void Flush(const v8::FunctionCallbackInfo<v8::Value> &args);
211
+
212
+ static void FramebufferRenderbuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
213
+
214
+ static void FramebufferTexture2D(const v8::FunctionCallbackInfo<v8::Value> &args);
215
+
216
+ static void FrontFace(const v8::FunctionCallbackInfo<v8::Value> &args);
217
+
218
+ static void GenerateMipmap(const v8::FunctionCallbackInfo<v8::Value> &args);
219
+
220
+ static void GetActiveAttrib(const v8::FunctionCallbackInfo<v8::Value> &args);
221
+
222
+ static void GetActiveUniform(const v8::FunctionCallbackInfo<v8::Value> &args);
223
+
224
+ static void GetAttachedShaders(const v8::FunctionCallbackInfo<v8::Value> &args);
225
+
226
+ static void GetAttribLocation(const v8::FunctionCallbackInfo<v8::Value> &args);
227
+
228
+ static void GetBufferParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
229
+
230
+ static void GetContextAttributes(const v8::FunctionCallbackInfo<v8::Value> &args);
231
+
232
+ static void GetError(const v8::FunctionCallbackInfo<v8::Value> &args);
233
+
234
+ static void GetExtension(const v8::FunctionCallbackInfo<v8::Value> &args);
235
+
236
+ static void GetFramebufferAttachmentParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
237
+
238
+ static void GetParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
239
+
240
+ static void GetProgramInfoLog(const v8::FunctionCallbackInfo<v8::Value> &args);
241
+
242
+ static void GetProgramParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
243
+
244
+ static void GetRenderbufferParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
245
+
246
+ static void GetShaderInfoLog(const v8::FunctionCallbackInfo<v8::Value> &args);
247
+
248
+ static void GetShaderParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
249
+
250
+ static void GetShaderPrecisionFormat(const v8::FunctionCallbackInfo<v8::Value> &args);
251
+
252
+ static void GetShaderSource(const v8::FunctionCallbackInfo<v8::Value> &args);
253
+
254
+ static void GetSupportedExtensions(const v8::FunctionCallbackInfo<v8::Value> &args);
255
+
256
+ static void GetTexParameter(const v8::FunctionCallbackInfo<v8::Value> &args);
257
+
258
+ static void GetUniformLocation(const v8::FunctionCallbackInfo<v8::Value> &args);
259
+
260
+ static void GetUniform(const v8::FunctionCallbackInfo<v8::Value> &args);
261
+
262
+ static void GetVertexAttribOffset(const v8::FunctionCallbackInfo<v8::Value> &args);
263
+
264
+ static void GetVertexAttrib(const v8::FunctionCallbackInfo<v8::Value> &args);
265
+
266
+ static void Hint(const v8::FunctionCallbackInfo<v8::Value> &args);
267
+
268
+ static void IsBuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
269
+
270
+ static void IsContextLost(const v8::FunctionCallbackInfo<v8::Value> &args);
271
+
272
+ static void IsEnabled(const v8::FunctionCallbackInfo<v8::Value> &args);
273
+
274
+ static void IsFramebuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
275
+
276
+ static void IsProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
277
+
278
+ static void IsRenderbuffer(const v8::FunctionCallbackInfo<v8::Value> &args);
279
+
280
+ static void IsShader(const v8::FunctionCallbackInfo<v8::Value> &args);
281
+
282
+ static void IsTexture(const v8::FunctionCallbackInfo<v8::Value> &args);
283
+
284
+ static void LineWidth(const v8::FunctionCallbackInfo<v8::Value> &args);
285
+
286
+ static void LinkProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
287
+
288
+ static void PixelStorei(const v8::FunctionCallbackInfo<v8::Value> &args);
289
+
290
+ static void PolygonOffset(const v8::FunctionCallbackInfo<v8::Value> &args);
291
+
292
+ static void ReadPixels(const v8::FunctionCallbackInfo<v8::Value> &args);
293
+
294
+ static void RenderbufferStorage(const v8::FunctionCallbackInfo<v8::Value> &args);
295
+
296
+ static void SampleCoverage(const v8::FunctionCallbackInfo<v8::Value> &args);
297
+
298
+ static void Scissor(const v8::FunctionCallbackInfo<v8::Value> &args);
299
+
300
+ static void ShaderSource(const v8::FunctionCallbackInfo<v8::Value> &args);
301
+
302
+ static void StencilFuncSeparate(const v8::FunctionCallbackInfo<v8::Value> &args);
303
+
304
+ static void StencilFunc(const v8::FunctionCallbackInfo<v8::Value> &args);
305
+
306
+ static void StencilMaskSeparate(const v8::FunctionCallbackInfo<v8::Value> &args);
307
+
308
+ static void StencilMask(const v8::FunctionCallbackInfo<v8::Value> &args);
309
+
310
+ static void StencilOpSeparate(const v8::FunctionCallbackInfo<v8::Value> &args);
311
+
312
+ static void StencilOp(const v8::FunctionCallbackInfo<v8::Value> &args);
313
+
314
+ static void TexImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
315
+
316
+ static void TexParameterf(const v8::FunctionCallbackInfo<v8::Value> &args);
317
+
318
+ static void TexParameteri(const v8::FunctionCallbackInfo<v8::Value> &args);
319
+
320
+ static void TexSubImage2D(const v8::FunctionCallbackInfo<v8::Value> &args);
321
+
322
+ static void Uniform1f(const v8::FunctionCallbackInfo<v8::Value> &args);
323
+
324
+ static void Uniform1iv(const v8::FunctionCallbackInfo<v8::Value> &args);
325
+
326
+ static void Uniform1fv(const v8::FunctionCallbackInfo<v8::Value> &args);
327
+
328
+ static void Uniform1i(const v8::FunctionCallbackInfo<v8::Value> &args);
329
+
330
+ static void Uniform2f(const v8::FunctionCallbackInfo<v8::Value> &args);
331
+
332
+ static void Uniform2iv(const v8::FunctionCallbackInfo<v8::Value> &args);
333
+
334
+ static void Uniform2fv(const v8::FunctionCallbackInfo<v8::Value> &args);
335
+
336
+ static void Uniform2i(const v8::FunctionCallbackInfo<v8::Value> &args);
337
+
338
+ static void Uniform3f(const v8::FunctionCallbackInfo<v8::Value> &args);
339
+
340
+ static void Uniform3iv(const v8::FunctionCallbackInfo<v8::Value> &args);
341
+
342
+ static void Uniform3fv(const v8::FunctionCallbackInfo<v8::Value> &args);
343
+
344
+ static void Uniform3i(const v8::FunctionCallbackInfo<v8::Value> &args);
345
+
346
+ static void Uniform4f(const v8::FunctionCallbackInfo<v8::Value> &args);
347
+
348
+ static void Uniform4iv(const v8::FunctionCallbackInfo<v8::Value> &args);
349
+
350
+ static void Uniform4fv(const v8::FunctionCallbackInfo<v8::Value> &args);
351
+
352
+ static void Uniform4i(const v8::FunctionCallbackInfo<v8::Value> &args);
353
+
354
+ static void UniformMatrix2fv(const v8::FunctionCallbackInfo<v8::Value> &args);
355
+
356
+ static void UniformMatrix3fv(const v8::FunctionCallbackInfo<v8::Value> &args);
357
+
358
+ static void UniformMatrix4fv(const v8::FunctionCallbackInfo<v8::Value> &args);
359
+
360
+ static void UseProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
361
+
362
+ static void ValidateProgram(const v8::FunctionCallbackInfo<v8::Value> &args);
363
+
364
+ static void VertexAttrib1f(const v8::FunctionCallbackInfo<v8::Value> &args);
365
+
366
+ static void VertexAttrib1fv(const v8::FunctionCallbackInfo<v8::Value> &args);
367
+
368
+ static void VertexAttrib2f(const v8::FunctionCallbackInfo<v8::Value> &args);
369
+
370
+ static void VertexAttrib2fv(const v8::FunctionCallbackInfo<v8::Value> &args);
371
+
372
+ static void VertexAttrib3f(const v8::FunctionCallbackInfo<v8::Value> &args);
373
+
374
+ static void VertexAttrib3fv(const v8::FunctionCallbackInfo<v8::Value> &args);
375
+
376
+ static void VertexAttrib4f(const v8::FunctionCallbackInfo<v8::Value> &args);
377
+
378
+ static void VertexAttrib4fv(const v8::FunctionCallbackInfo<v8::Value> &args);
379
+
380
+ static void VertexAttribPointer(const v8::FunctionCallbackInfo<v8::Value> &args);
381
+
382
+ static void Viewport(const v8::FunctionCallbackInfo<v8::Value> &args);
383
+
384
+ static void __ToDataURL(const v8::FunctionCallbackInfo<v8::Value> &args);
385
+
386
+ static void __GetSupportedExtensions(const v8::FunctionCallbackInfo<v8::Value> &args);
515
387
 
516
388
  };