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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (542) hide show
  1. package/Canvas/common.d.ts +213 -25
  2. package/Canvas/common.js +705 -452
  3. package/Canvas/common.js.map +1 -1
  4. package/Canvas/index.android.d.ts +10 -1
  5. package/Canvas/index.android.js +155 -52
  6. package/Canvas/index.android.js.map +1 -1
  7. package/Canvas/index.d.ts +8 -0
  8. package/Canvas/index.ios.d.ts +7 -4
  9. package/Canvas/index.ios.js +159 -106
  10. package/Canvas/index.ios.js.map +1 -1
  11. package/Canvas2D/CanvasGradient/index.d.ts +1 -3
  12. package/Canvas2D/CanvasGradient/index.js +1 -10
  13. package/Canvas2D/CanvasGradient/index.js.map +1 -1
  14. package/Canvas2D/CanvasPattern/index.d.ts +1 -3
  15. package/Canvas2D/CanvasPattern/index.js +1 -10
  16. package/Canvas2D/CanvasPattern/index.js.map +1 -1
  17. package/Canvas2D/CanvasRenderingContext2D/index.d.ts +9 -5
  18. package/Canvas2D/CanvasRenderingContext2D/index.js +174 -245
  19. package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
  20. package/Canvas2D/DOMMatrix/index.js +3 -3
  21. package/Canvas2D/DOMMatrix/index.js.map +1 -1
  22. package/Canvas2D/ImageData/index.js +6 -6
  23. package/Canvas2D/ImageData/index.js.map +1 -1
  24. package/Canvas2D/Path2D/index.d.ts +0 -2
  25. package/Canvas2D/Path2D/index.js +32 -42
  26. package/Canvas2D/Path2D/index.js.map +1 -1
  27. package/Dom/Paint.js +2 -3
  28. package/Dom/Paint.js.map +1 -1
  29. package/Dom/shapes/Circle.js +1 -2
  30. package/Dom/shapes/Circle.js.map +1 -1
  31. package/Dom/shapes/Points.js +1 -2
  32. package/Dom/shapes/Points.js.map +1 -1
  33. package/ImageAsset/index.d.ts +2 -2
  34. package/ImageAsset/index.js +33 -37
  35. package/ImageAsset/index.js.map +1 -1
  36. package/ImageBitmap/index.d.ts +0 -2
  37. package/ImageBitmap/index.js +47 -33
  38. package/ImageBitmap/index.js.map +1 -1
  39. package/LICENSE +201 -0
  40. package/SVG/SVG.js +1 -1
  41. package/SVG/SVG.js.map +1 -1
  42. package/TextDecoder/index.d.ts +0 -2
  43. package/TextDecoder/index.js +3 -12
  44. package/TextDecoder/index.js.map +1 -1
  45. package/TextEncoder/index.d.ts +0 -2
  46. package/TextEncoder/index.js +4 -13
  47. package/TextEncoder/index.js.map +1 -1
  48. package/WebGL/WebGLExtensions/index.d.ts +4 -12
  49. package/WebGL/WebGLExtensions/index.js +27 -77
  50. package/WebGL/WebGLExtensions/index.js.map +1 -1
  51. package/WebGL/WebGLProgram.d.ts +0 -1
  52. package/WebGL/WebGLProgram.js +0 -3
  53. package/WebGL/WebGLProgram.js.map +1 -1
  54. package/WebGL/WebGLRenderingContext/common.d.ts +1 -3
  55. package/WebGL/WebGLRenderingContext/common.js +3 -13
  56. package/WebGL/WebGLRenderingContext/common.js.map +1 -1
  57. package/WebGL/WebGLRenderingContext/index.d.ts +19 -17
  58. package/WebGL/WebGLRenderingContext/index.js +354 -728
  59. package/WebGL/WebGLRenderingContext/index.js.map +1 -1
  60. package/WebGL2/WebGL2RenderingContext/common.d.ts +2 -2
  61. package/WebGL2/WebGL2RenderingContext/common.js +2 -2
  62. package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
  63. package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
  64. package/WebGL2/WebGL2RenderingContext/index.js +116 -285
  65. package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
  66. package/angular/esm2020/index.mjs +4 -4
  67. package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
  68. package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
  69. package/angular/package.json +2 -2
  70. package/index.js.map +1 -1
  71. package/package.json +3 -2
  72. package/platforms/android/canvas-release.aar +0 -0
  73. package/platforms/android/include.gradle +15 -0
  74. package/platforms/ios/CanvasNative.xcframework/Info.plist +5 -5
  75. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  76. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +132 -68
  77. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
  78. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +144 -0
  79. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2808 -68
  80. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
  81. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  82. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +5847 -2633
  83. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +43 -25
  84. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  85. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +43 -25
  86. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  87. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  88. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +264 -136
  89. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
  90. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +144 -0
  91. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2808 -68
  92. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
  93. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  94. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  95. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +5847 -2633
  96. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +43 -25
  97. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  98. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +43 -25
  99. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5847 -2633
  100. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +43 -25
  101. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  102. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +43 -25
  103. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
  104. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  105. package/platforms/ios/Podfile +5 -2
  106. package/platforms/ios/build.xcconfig +3 -3
  107. package/platforms/ios/src/CanvasModule.h +0 -2
  108. package/platforms/ios/src/CanvasModule.mm +4 -4
  109. package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
  110. package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
  111. package/platforms/ios/src/cpp/Caches.cpp +35 -0
  112. package/platforms/ios/src/cpp/Caches.h +190 -0
  113. package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1593 -0
  114. package/platforms/ios/src/cpp/CanvasJSIModule.h +16 -34
  115. package/platforms/ios/src/cpp/Common.h +30 -0
  116. package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
  117. package/platforms/ios/src/cpp/Helpers.h +336 -38
  118. package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
  119. package/platforms/ios/src/cpp/ImageAssetImpl.h +46 -12
  120. package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
  121. package/platforms/ios/src/cpp/ImageBitmapImpl.h +42 -16
  122. package/platforms/ios/src/cpp/JSICallback.h +83 -5
  123. package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
  124. package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
  125. package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
  126. package/platforms/ios/src/cpp/ObjectWrapperImpl.h +31 -0
  127. package/platforms/ios/src/cpp/OneByteStringResource.cpp +55 -0
  128. package/platforms/ios/src/cpp/OneByteStringResource.h +36 -0
  129. package/platforms/ios/src/cpp/PerIsolateData.cpp +49 -0
  130. package/platforms/ios/src/cpp/PerIsolateData.h +54 -0
  131. package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
  132. package/platforms/ios/src/cpp/RafImpl.h +11 -8
  133. package/platforms/ios/src/cpp/TextDecoderImpl.cpp +193 -0
  134. package/platforms/ios/src/cpp/TextDecoderImpl.h +23 -13
  135. package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
  136. package/platforms/ios/src/cpp/TextEncoderImpl.h +21 -12
  137. package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
  138. package/platforms/ios/src/cpp/URLImpl.h +121 -0
  139. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
  140. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +29 -13
  141. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
  142. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +49 -12
  143. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2809 -0
  144. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1331 -21
  145. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +207 -0
  146. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +27 -13
  147. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +807 -0
  148. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +173 -13
  149. package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +499 -0
  150. package/platforms/ios/src/cpp/canvas2d/Path2D.h +422 -12
  151. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
  152. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +51 -12
  153. package/platforms/ios/src/cpp/gl.h +57 -7
  154. package/platforms/ios/src/cpp/gl3stub.c +425 -0
  155. package/platforms/ios/src/cpp/gl3stub.h +665 -0
  156. package/platforms/ios/src/cpp/gles3jni.h +37 -0
  157. package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
  158. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
  159. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
  160. package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +42 -7
  161. package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +47 -11
  162. package/platforms/ios/src/cpp/webgl/WebGLProgram.h +41 -6
  163. package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +41 -7
  164. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6845 -0
  165. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +3217 -388
  166. package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +18 -17
  167. package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +16 -36
  168. package/platforms/ios/src/cpp/webgl/WebGLShader.h +41 -7
  169. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
  170. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +67 -12
  171. package/platforms/ios/src/cpp/webgl/WebGLTexture.h +41 -7
  172. package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +45 -9
  173. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +136 -0
  174. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +88 -12
  175. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
  176. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +26 -6
  177. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
  178. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +26 -6
  179. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
  180. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
  181. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
  182. package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
  183. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
  184. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
  185. package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +41 -16
  186. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
  187. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +39 -16
  188. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
  189. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +42 -6
  190. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
  191. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +110 -0
  192. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +149 -14
  193. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
  194. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
  195. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
  196. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
  197. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
  198. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
  199. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
  200. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
  201. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +38 -0
  202. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +157 -14
  203. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
  204. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -13
  205. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4564 -0
  206. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1790 -342
  207. package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +41 -4
  208. package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
  209. package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +45 -11
  210. package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +43 -4
  211. package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +44 -4
  212. package/platforms/ios/src/module.modulemap +1 -0
  213. package/{pods → src-native/ios}/NativeScript.podspec +12 -25
  214. package/typings/objc!CanvasNative.d.ts +2038 -0
  215. package/typings/objc!CanvasNative.js +1 -0
  216. package/typings/objc!CanvasNative.js.map +1 -0
  217. package/utils.d.ts +3 -1
  218. package/utils.js +7 -20
  219. package/utils.js.map +1 -1
  220. package/angular/nativescript-canvas-angular.d.ts +0 -5
  221. package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
  222. package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
  223. package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
  224. package/platforms/ios/src/cpp/RafImpl.mm +0 -10
  225. package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
  226. package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
  227. package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -46
  228. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6156
  229. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2867
  230. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
  231. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
  232. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1972
  233. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
  234. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
  235. package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
  236. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
  237. package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
  238. package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
  239. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
  240. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5958
  241. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
  242. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
  243. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
  244. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
  245. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
  246. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
  247. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
  248. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
  249. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
  250. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
  251. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
  252. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
  253. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
  254. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
  255. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
  256. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
  257. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
  258. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
  259. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
  260. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
  261. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
  262. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4543
  263. package/pods/Headers/jsi/decorator.h +0 -770
  264. package/pods/Headers/jsi/instrumentation.h +0 -117
  265. package/pods/Headers/jsi/jsi-inl.h +0 -338
  266. package/pods/Headers/jsi/jsi.h +0 -1571
  267. package/pods/Headers/jsi/jsilib.h +0 -59
  268. package/pods/Headers/jsi/threadsafe.h +0 -79
  269. package/pods/Headers/v8runtime/HostProxy.h +0 -71
  270. package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
  271. package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
  272. package/pods/Headers/v8runtime/V8Runtime.h +0 -240
  273. package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
  274. package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
  275. /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
  276. /package/{pods → src-native/ios}/Headers/include/APIDesign.md +0 -0
  277. /package/{pods → src-native/ios}/Headers/include/DEPS +0 -0
  278. /package/{pods → src-native/ios}/Headers/include/DIR_METADATA +0 -0
  279. /package/{pods → src-native/ios}/Headers/include/OWNERS +0 -0
  280. /package/{pods → src-native/ios}/Headers/include/cppgc/DEPS +0 -0
  281. /package/{pods → src-native/ios}/Headers/include/cppgc/OWNERS +0 -0
  282. /package/{pods → src-native/ios}/Headers/include/cppgc/README.md +0 -0
  283. /package/{pods → src-native/ios}/Headers/include/cppgc/allocation.h +0 -0
  284. /package/{pods → src-native/ios}/Headers/include/cppgc/common.h +0 -0
  285. /package/{pods → src-native/ios}/Headers/include/cppgc/cross-thread-persistent.h +0 -0
  286. /package/{pods → src-native/ios}/Headers/include/cppgc/custom-space.h +0 -0
  287. /package/{pods → src-native/ios}/Headers/include/cppgc/default-platform.h +0 -0
  288. /package/{pods → src-native/ios}/Headers/include/cppgc/ephemeron-pair.h +0 -0
  289. /package/{pods → src-native/ios}/Headers/include/cppgc/explicit-management.h +0 -0
  290. /package/{pods → src-native/ios}/Headers/include/cppgc/garbage-collected.h +0 -0
  291. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-consistency.h +0 -0
  292. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-state.h +0 -0
  293. /package/{pods → src-native/ios}/Headers/include/cppgc/heap-statistics.h +0 -0
  294. /package/{pods → src-native/ios}/Headers/include/cppgc/heap.h +0 -0
  295. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/api-constants.h +0 -0
  296. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -0
  297. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -0
  298. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/compiler-specific.h +0 -0
  299. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/finalizer-trait.h +0 -0
  300. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/gc-info.h +0 -0
  301. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/logging.h +0 -0
  302. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/name-trait.h +0 -0
  303. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/persistent-node.h +0 -0
  304. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/pointer-policies.h +0 -0
  305. /package/{pods → src-native/ios}/Headers/include/cppgc/internal/write-barrier.h +0 -0
  306. /package/{pods → src-native/ios}/Headers/include/cppgc/liveness-broker.h +0 -0
  307. /package/{pods → src-native/ios}/Headers/include/cppgc/macros.h +0 -0
  308. /package/{pods → src-native/ios}/Headers/include/cppgc/member.h +0 -0
  309. /package/{pods → src-native/ios}/Headers/include/cppgc/name-provider.h +0 -0
  310. /package/{pods → src-native/ios}/Headers/include/cppgc/object-size-trait.h +0 -0
  311. /package/{pods → src-native/ios}/Headers/include/cppgc/persistent.h +0 -0
  312. /package/{pods → src-native/ios}/Headers/include/cppgc/platform.h +0 -0
  313. /package/{pods → src-native/ios}/Headers/include/cppgc/prefinalizer.h +0 -0
  314. /package/{pods → src-native/ios}/Headers/include/cppgc/process-heap-statistics.h +0 -0
  315. /package/{pods → src-native/ios}/Headers/include/cppgc/sentinel-pointer.h +0 -0
  316. /package/{pods → src-native/ios}/Headers/include/cppgc/source-location.h +0 -0
  317. /package/{pods → src-native/ios}/Headers/include/cppgc/testing.h +0 -0
  318. /package/{pods → src-native/ios}/Headers/include/cppgc/trace-trait.h +0 -0
  319. /package/{pods → src-native/ios}/Headers/include/cppgc/type-traits.h +0 -0
  320. /package/{pods → src-native/ios}/Headers/include/cppgc/visitor.h +0 -0
  321. /package/{pods → src-native/ios}/Headers/include/js_protocol-1.2.json +0 -0
  322. /package/{pods → src-native/ios}/Headers/include/js_protocol-1.3.json +0 -0
  323. /package/{pods → src-native/ios}/Headers/include/js_protocol.pdl +0 -0
  324. /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffi.h +0 -0
  325. /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffitarget.h +0 -0
  326. /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffi.h +0 -0
  327. /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffitarget.h +0 -0
  328. /package/{pods → src-native/ios}/Headers/include/libffi.h +0 -0
  329. /package/{pods → src-native/ios}/Headers/include/libplatform/DEPS +0 -0
  330. /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform-export.h +0 -0
  331. /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform.h +0 -0
  332. /package/{pods → src-native/ios}/Headers/include/libplatform/v8-tracing.h +0 -0
  333. /package/{pods → src-native/ios}/Headers/include/v8-array-buffer.h +0 -0
  334. /package/{pods → src-native/ios}/Headers/include/v8-callbacks.h +0 -0
  335. /package/{pods → src-native/ios}/Headers/include/v8-container.h +0 -0
  336. /package/{pods → src-native/ios}/Headers/include/v8-context.h +0 -0
  337. /package/{pods → src-native/ios}/Headers/include/v8-cppgc.h +0 -0
  338. /package/{pods → src-native/ios}/Headers/include/v8-data.h +0 -0
  339. /package/{pods → src-native/ios}/Headers/include/v8-date.h +0 -0
  340. /package/{pods → src-native/ios}/Headers/include/v8-debug.h +0 -0
  341. /package/{pods → src-native/ios}/Headers/include/v8-embedder-heap.h +0 -0
  342. /package/{pods → src-native/ios}/Headers/include/v8-embedder-state-scope.h +0 -0
  343. /package/{pods → src-native/ios}/Headers/include/v8-exception.h +0 -0
  344. /package/{pods → src-native/ios}/Headers/include/v8-extension.h +0 -0
  345. /package/{pods → src-native/ios}/Headers/include/v8-external.h +0 -0
  346. /package/{pods → src-native/ios}/Headers/include/v8-fast-api-calls.h +0 -0
  347. /package/{pods → src-native/ios}/Headers/include/v8-forward.h +0 -0
  348. /package/{pods → src-native/ios}/Headers/include/v8-function-callback.h +0 -0
  349. /package/{pods → src-native/ios}/Headers/include/v8-function.h +0 -0
  350. /package/{pods → src-native/ios}/Headers/include/v8-initialization.h +0 -0
  351. /package/{pods → src-native/ios}/Headers/include/v8-inspector-protocol.h +0 -0
  352. /package/{pods → src-native/ios}/Headers/include/v8-inspector.h +0 -0
  353. /package/{pods → src-native/ios}/Headers/include/v8-internal.h +0 -0
  354. /package/{pods → src-native/ios}/Headers/include/v8-isolate.h +0 -0
  355. /package/{pods → src-native/ios}/Headers/include/v8-json.h +0 -0
  356. /package/{pods → src-native/ios}/Headers/include/v8-local-handle.h +0 -0
  357. /package/{pods → src-native/ios}/Headers/include/v8-locker.h +0 -0
  358. /package/{pods → src-native/ios}/Headers/include/v8-maybe.h +0 -0
  359. /package/{pods → src-native/ios}/Headers/include/v8-memory-span.h +0 -0
  360. /package/{pods → src-native/ios}/Headers/include/v8-message.h +0 -0
  361. /package/{pods → src-native/ios}/Headers/include/v8-metrics.h +0 -0
  362. /package/{pods → src-native/ios}/Headers/include/v8-microtask-queue.h +0 -0
  363. /package/{pods → src-native/ios}/Headers/include/v8-microtask.h +0 -0
  364. /package/{pods → src-native/ios}/Headers/include/v8-object.h +0 -0
  365. /package/{pods → src-native/ios}/Headers/include/v8-persistent-handle.h +0 -0
  366. /package/{pods → src-native/ios}/Headers/include/v8-platform.h +0 -0
  367. /package/{pods → src-native/ios}/Headers/include/v8-primitive-object.h +0 -0
  368. /package/{pods → src-native/ios}/Headers/include/v8-primitive.h +0 -0
  369. /package/{pods → src-native/ios}/Headers/include/v8-profiler.h +0 -0
  370. /package/{pods → src-native/ios}/Headers/include/v8-promise.h +0 -0
  371. /package/{pods → src-native/ios}/Headers/include/v8-proxy.h +0 -0
  372. /package/{pods → src-native/ios}/Headers/include/v8-regexp.h +0 -0
  373. /package/{pods → src-native/ios}/Headers/include/v8-script.h +0 -0
  374. /package/{pods → src-native/ios}/Headers/include/v8-snapshot.h +0 -0
  375. /package/{pods → src-native/ios}/Headers/include/v8-statistics.h +0 -0
  376. /package/{pods → src-native/ios}/Headers/include/v8-template.h +0 -0
  377. /package/{pods → src-native/ios}/Headers/include/v8-traced-handle.h +0 -0
  378. /package/{pods → src-native/ios}/Headers/include/v8-typed-array.h +0 -0
  379. /package/{pods → src-native/ios}/Headers/include/v8-unwinder-state.h +0 -0
  380. /package/{pods → src-native/ios}/Headers/include/v8-unwinder.h +0 -0
  381. /package/{pods → src-native/ios}/Headers/include/v8-util.h +0 -0
  382. /package/{pods → src-native/ios}/Headers/include/v8-value-serializer-version.h +0 -0
  383. /package/{pods → src-native/ios}/Headers/include/v8-value-serializer.h +0 -0
  384. /package/{pods → src-native/ios}/Headers/include/v8-value.h +0 -0
  385. /package/{pods → src-native/ios}/Headers/include/v8-version-string.h +0 -0
  386. /package/{pods → src-native/ios}/Headers/include/v8-version.h +0 -0
  387. /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-posix.h +0 -0
  388. /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-win.h +0 -0
  389. /package/{pods → src-native/ios}/Headers/include/v8-wasm.h +0 -0
  390. /package/{pods → src-native/ios}/Headers/include/v8-weak-callback-info.h +0 -0
  391. /package/{pods → src-native/ios}/Headers/include/v8.h +0 -0
  392. /package/{pods → src-native/ios}/Headers/include/v8config.h +0 -0
  393. /package/{pods → src-native/ios}/Headers/inspector/InspectorServer.h +0 -0
  394. /package/{pods → src-native/ios}/Headers/inspector/JsV8InspectorClient.h +0 -0
  395. /package/{pods → src-native/ios}/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -0
  396. /package/{pods → src-native/ios}/Headers/inspector/base64.h +0 -0
  397. /package/{pods → src-native/ios}/Headers/inspector/src/base/address-region.h +0 -0
  398. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomic-utils.h +0 -0
  399. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops.h +0 -0
  400. /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -0
  401. /package/{pods → src-native/ios}/Headers/inspector/src/base/base-export.h +0 -0
  402. /package/{pods → src-native/ios}/Headers/inspector/src/base/bits.h +0 -0
  403. /package/{pods → src-native/ios}/Headers/inspector/src/base/build_config.h +0 -0
  404. /package/{pods → src-native/ios}/Headers/inspector/src/base/compiler-specific.h +0 -0
  405. /package/{pods → src-native/ios}/Headers/inspector/src/base/export-template.h +0 -0
  406. /package/{pods → src-native/ios}/Headers/inspector/src/base/flags.h +0 -0
  407. /package/{pods → src-native/ios}/Headers/inspector/src/base/immediate-crash.h +0 -0
  408. /package/{pods → src-native/ios}/Headers/inspector/src/base/lazy-instance.h +0 -0
  409. /package/{pods → src-native/ios}/Headers/inspector/src/base/logging.h +0 -0
  410. /package/{pods → src-native/ios}/Headers/inspector/src/base/macros.h +0 -0
  411. /package/{pods → src-native/ios}/Headers/inspector/src/base/memory.h +0 -0
  412. /package/{pods → src-native/ios}/Headers/inspector/src/base/once.h +0 -0
  413. /package/{pods → src-native/ios}/Headers/inspector/src/base/optional.h +0 -0
  414. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/mutex.h +0 -0
  415. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/platform.h +0 -0
  416. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/semaphore.h +0 -0
  417. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/v8-time.h +0 -0
  418. /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/wrappers.h +0 -0
  419. /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions.h +0 -0
  420. /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions_impl.h +0 -0
  421. /package/{pods → src-native/ios}/Headers/inspector/src/base/template-utils.h +0 -0
  422. /package/{pods → src-native/ios}/Headers/inspector/src/base/v8-fallthrough.h +0 -0
  423. /package/{pods → src-native/ios}/Headers/inspector/src/common/checks.h +0 -0
  424. /package/{pods → src-native/ios}/Headers/inspector/src/common/globals.h +0 -0
  425. /package/{pods → src-native/ios}/Headers/inspector/src/debug/debug-interface.h +0 -0
  426. /package/{pods → src-native/ios}/Headers/inspector/src/debug/interface-types.h +0 -0
  427. /package/{pods → src-native/ios}/Headers/inspector/src/init/v8.h +0 -0
  428. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/custom-preview.h +0 -0
  429. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/injected-script.h +0 -0
  430. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/inspected-context.h +0 -0
  431. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/CSS.h +0 -0
  432. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Console.h +0 -0
  433. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/DOM.h +0 -0
  434. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Debugger.h +0 -0
  435. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Forward.h +0 -0
  436. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -0
  437. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Log.h +0 -0
  438. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Network.h +0 -0
  439. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Overlay.h +0 -0
  440. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Page.h +0 -0
  441. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Profiler.h +0 -0
  442. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Protocol.h +0 -0
  443. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Runtime.h +0 -0
  444. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Schema.h +0 -0
  445. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Security.h +0 -0
  446. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/remote-object-id.h +0 -0
  447. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/search-util.h +0 -0
  448. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-16.h +0 -0
  449. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-util.h +0 -0
  450. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -0
  451. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-message.h +0 -0
  452. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console.h +0 -0
  453. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -0
  454. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -0
  455. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-id.h +0 -0
  456. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-script.h +0 -0
  457. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger.h +0 -0
  458. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -0
  459. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -0
  460. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -0
  461. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -0
  462. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -0
  463. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -0
  464. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -0
  465. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -0
  466. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -0
  467. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -0
  468. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-regex.h +0 -0
  469. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -0
  470. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -0
  471. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -0
  472. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-string-conversions.h +0 -0
  473. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-value-utils.h +0 -0
  474. /package/{pods → src-native/ios}/Headers/inspector/src/inspector/value-mirror.h +0 -0
  475. /package/{pods → src-native/ios}/Headers/inspector/src/libplatform/default-platform.h +0 -0
  476. /package/{pods → src-native/ios}/Headers/inspector/src/logging/tracing-flags.h +0 -0
  477. /package/{pods → src-native/ios}/Headers/inspector/src/numbers/conversions.h +0 -0
  478. /package/{pods → src-native/ios}/Headers/inspector/src/tracing/trace-event.h +0 -0
  479. /package/{pods → src-native/ios}/Headers/inspector/src/utils/allocation.h +0 -0
  480. /package/{pods → src-native/ios}/Headers/inspector/src/utils/vector.h +0 -0
  481. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -0
  482. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -0
  483. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -0
  484. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -0
  485. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -0
  486. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -0
  487. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -0
  488. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -0
  489. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -0
  490. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -0
  491. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -0
  492. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -0
  493. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -0
  494. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -0
  495. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -0
  496. /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -0
  497. /package/{pods → src-native/ios}/Headers/inspector/utils.h +0 -0
  498. /package/{pods → src-native/ios}/Headers/inspector/v8-inspector-platform.h +0 -0
  499. /package/{pods → src-native/ios}/Headers/runtime/ArgConverter.h +0 -0
  500. /package/{pods → src-native/ios}/Headers/runtime/ArrayAdapter.h +0 -0
  501. /package/{pods → src-native/ios}/Headers/runtime/Caches.h +0 -0
  502. /package/{pods → src-native/ios}/Headers/runtime/ClassBuilder.h +0 -0
  503. /package/{pods → src-native/ios}/Headers/runtime/Common.h +0 -0
  504. /package/{pods → src-native/ios}/Headers/runtime/ConcurrentMap.h +0 -0
  505. /package/{pods → src-native/ios}/Headers/runtime/ConcurrentQueue.h +0 -0
  506. /package/{pods → src-native/ios}/Headers/runtime/Console.h +0 -0
  507. /package/{pods → src-native/ios}/Headers/runtime/Constants.h +0 -0
  508. /package/{pods → src-native/ios}/Headers/runtime/DataWrapper.h +0 -0
  509. /package/{pods → src-native/ios}/Headers/runtime/DictionaryAdapter.h +0 -0
  510. /package/{pods → src-native/ios}/Headers/runtime/ExtVector.h +0 -0
  511. /package/{pods → src-native/ios}/Headers/runtime/FFICall.h +0 -0
  512. /package/{pods → src-native/ios}/Headers/runtime/FastEnumerationAdapter.h +0 -0
  513. /package/{pods → src-native/ios}/Headers/runtime/FunctionReference.h +0 -0
  514. /package/{pods → src-native/ios}/Headers/runtime/Helpers.h +0 -0
  515. /package/{pods → src-native/ios}/Headers/runtime/InlineFunctions.h +0 -0
  516. /package/{pods → src-native/ios}/Headers/runtime/Interop.h +0 -0
  517. /package/{pods → src-native/ios}/Headers/runtime/KnownUnknownClassPair.h +0 -0
  518. /package/{pods → src-native/ios}/Headers/runtime/Metadata.h +0 -0
  519. /package/{pods → src-native/ios}/Headers/runtime/MetadataBuilder.h +0 -0
  520. /package/{pods → src-native/ios}/Headers/runtime/MetadataInlines.h +0 -0
  521. /package/{pods → src-native/ios}/Headers/runtime/ModuleInternal.h +0 -0
  522. /package/{pods → src-native/ios}/Headers/runtime/NSDataAdapter.h +0 -0
  523. /package/{pods → src-native/ios}/Headers/runtime/NativeScriptException.h +0 -0
  524. /package/{pods → src-native/ios}/Headers/runtime/ObjectManager.h +0 -0
  525. /package/{pods → src-native/ios}/Headers/runtime/OneByteStringResource.h +0 -0
  526. /package/{pods → src-native/ios}/Headers/runtime/Pointer.h +0 -0
  527. /package/{pods → src-native/ios}/Headers/runtime/PromiseProxy.h +0 -0
  528. /package/{pods → src-native/ios}/Headers/runtime/Reference.h +0 -0
  529. /package/{pods → src-native/ios}/Headers/runtime/Runtime.h +0 -0
  530. /package/{pods → src-native/ios}/Headers/runtime/RuntimeConfig.h +0 -0
  531. /package/{pods → src-native/ios}/Headers/runtime/SetTimeout.h +0 -0
  532. /package/{pods → src-native/ios}/Headers/runtime/SimpleAllocator.h +0 -0
  533. /package/{pods → src-native/ios}/Headers/runtime/StringHasher.h +0 -0
  534. /package/{pods → src-native/ios}/Headers/runtime/SymbolIterator.h +0 -0
  535. /package/{pods → src-native/ios}/Headers/runtime/SymbolLoader.h +0 -0
  536. /package/{pods → src-native/ios}/Headers/runtime/TNSDerivedClass.h +0 -0
  537. /package/{pods → src-native/ios}/Headers/runtime/TSHelpers.h +0 -0
  538. /package/{pods → src-native/ios}/Headers/runtime/Tasks.h +0 -0
  539. /package/{pods → src-native/ios}/Headers/runtime/UnmanagedType.h +0 -0
  540. /package/{pods → src-native/ios}/Headers/runtime/WeakRef.h +0 -0
  541. /package/{pods → src-native/ios}/Headers/runtime/Worker.h +0 -0
  542. /package/{pods → src-native/ios}/Headers/runtime/robin_hood.h +0 -0
@@ -8,10 +8,55 @@ import { CanvasPattern } from '../CanvasPattern';
8
8
  import { Canvas } from '../../Canvas';
9
9
  import { Helpers } from '../../helpers';
10
10
  let ctor;
11
+ function ruleToEnum(rule) {
12
+ switch (rule) {
13
+ case 'nonzero':
14
+ return 0;
15
+ case 'evenodd':
16
+ return 1;
17
+ default:
18
+ return -1; // will be ignored
19
+ }
20
+ }
21
+ function toBaseLine(value) {
22
+ switch (value) {
23
+ case 'top':
24
+ return 0;
25
+ case 'hanging':
26
+ return 1;
27
+ case 'middle':
28
+ return 2;
29
+ case 'alphabetic':
30
+ return 3;
31
+ case 'ideographic':
32
+ return 4;
33
+ case 'bottom':
34
+ return 5;
35
+ default:
36
+ return -1;
37
+ }
38
+ }
39
+ function fromBaseLine(value) {
40
+ switch (value) {
41
+ case 0:
42
+ return 'top';
43
+ case 1:
44
+ return 'hanging';
45
+ case 2:
46
+ return 'middle';
47
+ case 3:
48
+ return 'alphabetic';
49
+ case 4:
50
+ return 'ideographic';
51
+ case 5:
52
+ return 'bottom';
53
+ default:
54
+ return null;
55
+ }
56
+ }
11
57
  export class CanvasRenderingContext2D {
12
58
  constructor(context, contextOptions) {
13
59
  this._type = 'none';
14
- this._methodCache = new Map();
15
60
  /*const width = context.getDrawingBufferWidth(); // can use getMeasuredWidth / getMeasuredHeight
16
61
  const height = context.getDrawingBufferHeight();
17
62
 
@@ -38,121 +83,106 @@ export class CanvasRenderingContext2D {
38
83
  return this.context.shadowColor;
39
84
  }
40
85
  set shadowColor(color) {
41
- if (this.context) {
42
- this._ensureLayoutBeforeDraw();
43
- this.context.shadowColor = color;
44
- }
86
+ this.context.shadowColor = color;
45
87
  }
46
88
  get font() {
47
89
  return this.context.font;
48
90
  }
49
91
  set font(value) {
50
- if (this.context) {
51
- this._ensureLayoutBeforeDraw();
52
- this.context.font = value;
53
- }
92
+ this.context.font = value;
54
93
  }
55
94
  get direction() {
56
95
  return this.context.direction;
57
96
  }
58
97
  set direction(value) {
59
- if (this.context) {
60
- this._ensureLayoutBeforeDraw();
61
- this.context.direction = value;
62
- }
98
+ this.context.direction = value;
63
99
  }
64
100
  get globalAlpha() {
65
101
  return this.context.globalAlpha;
66
102
  }
67
103
  set globalAlpha(alpha) {
68
- if (this.context) {
69
- this._ensureLayoutBeforeDraw();
70
- this.context.globalAlpha = alpha;
71
- }
104
+ this.context.globalAlpha = alpha;
72
105
  }
73
106
  get imageSmoothingEnabled() {
74
107
  return this.context.imageSmoothingEnabled;
75
108
  }
76
109
  set imageSmoothingEnabled(enabled) {
77
- if (this.context) {
78
- this._ensureLayoutBeforeDraw();
79
- this.context.imageSmoothingEnabled = enabled;
80
- }
110
+ this.context.imageSmoothingEnabled = enabled;
81
111
  }
82
112
  get imageSmoothingQuality() {
83
113
  return this.context.imageSmoothingQuality;
84
114
  }
85
115
  set imageSmoothingQuality(quality) {
86
- this._ensureLayoutBeforeDraw();
87
116
  this.context.imageSmoothingQuality = quality;
88
117
  }
89
118
  get lineDashOffset() {
90
119
  return this.context.lineDashOffset;
91
120
  }
92
121
  set lineDashOffset(offset) {
93
- if (this.context) {
94
- this._ensureLayoutBeforeDraw();
95
- this.context.lineDashOffset = offset;
96
- }
122
+ this.context.lineDashOffset = offset;
123
+ }
124
+ get letterSpacing() {
125
+ return this.context.letterSpacing;
126
+ }
127
+ set letterSpacing(spacing) {
128
+ this.context.letterSpacing = spacing;
97
129
  }
98
130
  get lineJoin() {
99
131
  return this.context.lineJoin;
100
132
  }
101
133
  set lineJoin(join) {
102
- this._ensureLayoutBeforeDraw();
103
134
  this.context.lineJoin = join;
104
135
  }
105
136
  get lineCap() {
106
137
  return this.context.lineCap;
107
138
  }
108
139
  set lineCap(cap) {
109
- this._ensureLayoutBeforeDraw();
110
140
  this.context.lineCap = cap;
111
141
  }
112
142
  get miterLimit() {
113
143
  return this.context.miterLimit;
114
144
  }
115
145
  set miterLimit(limit) {
116
- this._ensureLayoutBeforeDraw();
117
146
  this.context.miterLimit = limit;
118
147
  }
119
148
  get shadowBlur() {
120
149
  return this.context.shadowBlur;
121
150
  }
122
151
  set shadowBlur(blur) {
123
- this._ensureLayoutBeforeDraw();
124
152
  this.context.shadowBlur = blur;
125
153
  }
126
154
  get shadowOffsetX() {
127
155
  return this.context.shadowOffsetX;
128
156
  }
129
157
  set shadowOffsetX(x) {
130
- if (this.context) {
131
- this._ensureLayoutBeforeDraw();
132
- this.context.shadowOffsetX = x;
133
- }
158
+ this.context.shadowOffsetX = x;
134
159
  }
135
160
  get shadowOffsetY() {
136
161
  return this.context.shadowOffsetY;
137
162
  }
138
163
  set shadowOffsetY(y) {
139
- if (this.context) {
140
- this._ensureLayoutBeforeDraw();
141
- this.context.shadowOffsetY = y;
142
- }
164
+ this.context.shadowOffsetY = y;
143
165
  }
144
166
  get textAlign() {
145
167
  return this.context.textAlign;
146
168
  }
147
169
  set textAlign(alignment) {
148
- this._ensureLayoutBeforeDraw();
149
- this.context.setTextAlign = alignment;
170
+ this.context.textAlign = alignment;
171
+ }
172
+ get textBaseline() {
173
+ return fromBaseLine(this.context.textBaseline);
174
+ }
175
+ set textBaseline(baseline) {
176
+ const value = toBaseLine(baseline);
177
+ if (value === -1) {
178
+ return;
179
+ }
180
+ this.context.textBaseline = value;
150
181
  }
151
182
  get globalCompositeOperation() {
152
183
  return this.context.globalCompositeOperation;
153
184
  }
154
185
  set globalCompositeOperation(composite) {
155
- this._ensureLayoutBeforeDraw();
156
186
  this.context.globalCompositeOperation = composite;
157
187
  }
158
188
  get fillStyle() {
@@ -162,19 +192,12 @@ export class CanvasRenderingContext2D {
162
192
  if (color === undefined || color === null) {
163
193
  return;
164
194
  }
165
- this._ensureLayoutBeforeDraw();
166
- if (color instanceof CanvasGradient || color instanceof CanvasPattern) {
167
- this.context.fillStyle = color.native;
168
- }
169
- else {
170
- this.context.fillStyle = color;
171
- }
195
+ this.context.fillStyle = typeof color === 'object' ? color.native : color;
172
196
  }
173
197
  get filter() {
174
198
  return this.context.filter;
175
199
  }
176
200
  set filter(value) {
177
- this._ensureLayoutBeforeDraw();
178
201
  this.context.filter = value;
179
202
  }
180
203
  get strokeStyle() {
@@ -184,81 +207,56 @@ export class CanvasRenderingContext2D {
184
207
  if (color === undefined || color === null) {
185
208
  return;
186
209
  }
187
- this._ensureLayoutBeforeDraw();
188
- if (color instanceof CanvasGradient || color instanceof CanvasPattern) {
189
- this.context.strokeStyle = color.native;
190
- }
191
- else {
192
- this.context.strokeStyle = color;
193
- }
210
+ this.context.strokeStyle = typeof color === 'object' ? color.native : color;
194
211
  }
195
212
  get lineWidth() {
196
213
  return this.context.lineWidth;
197
214
  }
198
215
  set lineWidth(width) {
199
- this._ensureLayoutBeforeDraw();
200
216
  this.context.lineWidth = width;
201
217
  }
202
- _getMethod(name) {
203
- const cached = this._methodCache.get(name);
204
- if (cached === undefined) {
205
- const ret = this.context[name];
206
- this._methodCache.set(name, ret);
207
- return ret;
208
- }
209
- return cached;
218
+ get wordSpacing() {
219
+ return this.context.wordSpacing;
220
+ }
221
+ set wordSpacing(spacing) {
222
+ this.context.wordSpacing = spacing;
210
223
  }
211
224
  __toDataURL(type = 'image/jpg', quality = 92) {
212
- const __toDataURL = this._getMethod('__toDataURL');
213
- return __toDataURL(type, quality);
225
+ return this.context.__toDataURL(type, quality);
214
226
  }
215
227
  addHitRegion(region) { }
216
228
  arc(x, y, radius, startAngle, endAngle, anticlockwise = false) {
217
- this._ensureLayoutBeforeDraw();
218
- const arc = this._getMethod('arc');
219
- arc(x, y, radius, startAngle, endAngle, anticlockwise);
229
+ this.context.arc(x, y, radius, startAngle, endAngle, anticlockwise ?? false);
220
230
  }
221
231
  arcTo(x1, y1, x2, y2, radius) {
222
- this._ensureLayoutBeforeDraw();
223
- const arcTo = this._getMethod('arcTo');
224
- arcTo(x1, y1, x2, y2, radius);
232
+ this.context.arcTo(x1, y1, x2, y2, radius);
225
233
  }
226
234
  beginPath() {
227
- this._ensureLayoutBeforeDraw();
228
- const beginPath = this._getMethod('beginPath');
229
- beginPath();
235
+ this.context.beginPath();
230
236
  }
231
237
  bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y) {
232
- this._ensureLayoutBeforeDraw();
233
- const bezierCurveTo = this._getMethod('bezierCurveTo');
234
- bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
238
+ this.context.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
235
239
  }
236
240
  clearHitRegions() { }
237
241
  clearRect(x, y, width, height) {
238
- this._ensureLayoutBeforeDraw();
239
- const clearRect = this._getMethod('clearRect');
240
- clearRect(x, y, width, height);
242
+ this.context.clearRect(x, y, width, height);
241
243
  }
242
244
  clip(...args) {
243
- this._ensureLayoutBeforeDraw();
244
- const clip = this._getMethod('clip');
245
245
  if (typeof args[0] === 'string') {
246
- clip(args[0]);
246
+ this.context.clip(ruleToEnum(args[0]));
247
247
  }
248
248
  else if (args[0] instanceof Path2D && typeof args[1] === 'string') {
249
- clip(args[0].native, args[1]);
249
+ this.context.clip(args[0].native, ruleToEnum(args[1]));
250
250
  }
251
251
  else if (args[0] instanceof Path2D) {
252
- clip(args[0].native);
252
+ this.context.clip(args[0].native);
253
253
  }
254
254
  else {
255
- clip();
255
+ this.context.clip();
256
256
  }
257
257
  }
258
258
  closePath() {
259
- this._ensureLayoutBeforeDraw();
260
- const closePath = this._getMethod('closePath');
261
- closePath();
259
+ this.context.closePath();
262
260
  }
263
261
  createImageData(width, height) {
264
262
  if (width instanceof ImageData) {
@@ -269,48 +267,45 @@ export class CanvasRenderingContext2D {
269
267
  }
270
268
  }
271
269
  createLinearGradient(x0, y0, x1, y1) {
272
- this._ensureLayoutBeforeDraw();
273
- const createLinearGradient = this._getMethod('createLinearGradient');
274
- return CanvasGradient.fromNative(createLinearGradient(x0, y0, x1, y1));
270
+ return CanvasGradient.fromNative(this.context.createLinearGradient(x0, y0, x1, y1));
275
271
  }
276
272
  createPattern(image, repetition) {
277
- var _a;
278
- this._ensureLayoutBeforeDraw();
279
273
  if (repetition === undefined || typeof repetition !== 'string') {
280
274
  const e = new Error('The string did not match the expected pattern.');
281
275
  e.name = 'SyntaxError';
282
276
  throw e;
283
277
  }
284
- const createPattern = this._getMethod('createPattern');
278
+ //const createPattern = this._getMethod('createPattern');
279
+ //const createPattern = this.context.createPattern;
285
280
  let img;
286
- if ((image === null || image === void 0 ? void 0 : image._type) === '2d' || ((_a = image === null || image === void 0 ? void 0 : image._type) === null || _a === void 0 ? void 0 : _a.indexOf('webgl')) > -1) {
281
+ if (image?._type === '2d' || image?._type?.indexOf('webgl') > -1) {
287
282
  img = image.native;
288
283
  }
289
284
  else if (image instanceof ImageSource) {
290
- const ptr = this._getMethod('__getPointer');
291
- const createPattern = this._getMethod('__createPatternWithNative');
285
+ //const ptr = this.context.__getPointer; //this._getMethod('__getPointer');
286
+ //const createPattern = this.context.__createPatternWithNative; //this._getMethod('__createPatternWithNative');
292
287
  if (global.isAndroid) {
293
288
  img = image.android;
294
- const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(ptr), img, repetition);
295
- return new CanvasPattern(createPattern(pattern));
289
+ const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(this.context.__getPointer()), img, repetition);
290
+ return new CanvasPattern(this.context.__createPatternWithNative(pattern));
296
291
  }
297
292
  if (global.isIOS) {
298
293
  img = image.ios;
299
- const pattern = NSCCanvasRenderingContext2D.createPattern(long(ptr), img, repetition);
300
- return new CanvasPattern(createPattern(pattern));
294
+ const pattern = NSCCanvasRenderingContext2D.createPattern(this.context.__getPointer(), img, repetition);
295
+ return new CanvasPattern(this.context.__createPatternWithNative(pattern));
301
296
  }
302
297
  return null;
303
298
  }
304
299
  else if (global.isAndroid && image instanceof android.graphics.Bitmap) {
305
- const ptr = this._getMethod('__getPointer');
306
- const createPattern = this._getMethod('__createPatternWithNative');
300
+ //const ptr = this.context.__getPointer; //this._getMethod('__getPointer');
301
+ const createPattern = this.context.__createPatternWithNative; //this._getMethod('__createPatternWithNative');
307
302
  if (global.isAndroid) {
308
- const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(ptr), image, repetition);
309
- return new CanvasPattern(createPattern(pattern));
303
+ const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(this.context.__getPointer()), image, repetition);
304
+ return new CanvasPattern(this.context.__createPatternWithNative(pattern));
310
305
  }
311
306
  if (global.isIOS) {
312
- const pattern = NSCCanvasRenderingContext2D.createPattern(long(ptr), image, repetition);
313
- return new CanvasPattern(createPattern(pattern));
307
+ const pattern = NSCCanvasRenderingContext2D.createPattern(this.context.__getPointer(), image, repetition);
308
+ return new CanvasPattern(this.context.__createPatternWithNative(pattern));
314
309
  }
315
310
  return null;
316
311
  }
@@ -329,17 +324,17 @@ export class CanvasRenderingContext2D {
329
324
  img = image._asset.native;
330
325
  }
331
326
  else if (typeof image.src === 'string') {
332
- const ptr = this._getMethod('__getPointer');
333
- const createPattern = this._getMethod('__createPatternWithNative');
327
+ //const ptr = this.context.__getPointer; //this._getMethod('__getPointer');
328
+ //const createPattern = this.context.__createPatternWithNative; //this._getMethod('__createPatternWithNative');
334
329
  if (global.isAndroid) {
335
330
  img = ImageSource.fromFileSync(image.src).android;
336
- const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(ptr), img, repetition);
337
- return new CanvasPattern(createPattern(pattern));
331
+ const pattern = org.nativescript.canvas.NSCCanvasRenderingContext2D.createPattern(long(this.context.__getPointer()), img, repetition);
332
+ return new CanvasPattern(this.context.__createPatternWithNative(pattern));
338
333
  }
339
334
  if (global.isiOS) {
340
335
  img = ImageSource.fromFileSync(image.src).android;
341
- const pattern = NSCCanvasRenderingContext2D.createPattern(long(ptr), img, repetition);
342
- return new CanvasPattern(createPattern(pattern));
336
+ const pattern = NSCCanvasRenderingContext2D.createPattern(this.context.__getPointer(), img, repetition);
337
+ return new CanvasPattern(this.context.__createPatternWithNative(pattern));
343
338
  }
344
339
  return null;
345
340
  }
@@ -353,67 +348,60 @@ export class CanvasRenderingContext2D {
353
348
  if (!img) {
354
349
  return null;
355
350
  }
356
- return new CanvasPattern(createPattern(img, repetition));
351
+ return new CanvasPattern(this.context.createPattern(img, repetition));
357
352
  }
358
353
  createRadialGradient(x0, y0, r0, x1, y1, r1) {
359
- this._ensureLayoutBeforeDraw();
360
- const createRadialGradient = this._getMethod('createRadialGradient');
361
- return CanvasGradient.fromNative(createRadialGradient(x0, y0, r0, x1, y1, r1));
354
+ return CanvasGradient.fromNative(this.context.createRadialGradient(x0, y0, r0, x1, y1, r1));
355
+ }
356
+ createConicGradient(startAngle, x, y) {
357
+ return CanvasGradient.fromNative(this.context.createConicGradient(startAngle, x, y));
362
358
  }
363
359
  drawPaint(color) {
364
- this._ensureLayoutBeforeDraw();
365
- const drawPaint = this._getMethod('drawPaint');
366
- drawPaint(color);
360
+ this.context.drawPaint(color);
367
361
  }
368
362
  drawPoint(x, y) {
369
- this._ensureLayoutBeforeDraw();
370
- const drawPoint = this._getMethod('drawPoint');
371
- drawPoint(x, y);
363
+ this.context.drawPoint(x, y);
372
364
  }
373
365
  drawPoints(mode, points) {
374
- this._ensureLayoutBeforeDraw();
375
- const drawPoints = this._getMethod('drawPoints');
376
- drawPoints(mode, points);
366
+ this.context.drawPoints(mode, points);
377
367
  }
378
368
  drawFocusIfNeeded(...args) { }
379
369
  drawImage(...args) {
380
- var _a;
381
- this._ensureLayoutBeforeDraw();
382
- const drawImage = this._getMethod('drawImage');
370
+ //const drawImage = this.context.drawImage; //this._getMethod('drawImage');
383
371
  const drawNativeImage = (args, image) => {
384
- const ptr = this._getMethod('__getPointer');
385
- const makeDirty = this._getMethod('__makeDirty');
372
+ //const ptr = this.context.__getPointer; //this._getMethod('__getPointer');
373
+ //const makeDirty = this.context.__makeDirty; //this._getMethod('__makeDirty');
386
374
  let dirty = false;
387
375
  if (args.length === 3) {
388
376
  if (global.isAndroid) {
389
- dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2]);
377
+ dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(this.context.__getPointer()), image, args[1], args[2]);
390
378
  }
391
379
  if (global.isIOS) {
392
- dirty = NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2]);
380
+ dirty = NSCCanvasRenderingContext2D.drawImage(this.context.__getPointer(), image, args[1], args[2]);
393
381
  }
394
382
  }
395
383
  else if (args.length === 5) {
396
384
  if (global.isAndroid) {
397
- dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2], args[3], args[4]);
385
+ dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(this.context.__getPointer()), image, args[1], args[2], args[3], args[4]);
398
386
  }
399
387
  if (global.isIOS) {
400
- dirty = NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2], args[3], args[4]);
388
+ dirty = NSCCanvasRenderingContext2D.drawImage(this.context.__getPointer(), image, args[1], args[2], args[3], args[4]);
401
389
  }
402
390
  }
403
391
  else if (args.length === 9) {
404
392
  if (global.Android) {
405
- dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
393
+ dirty = org.nativescript.canvas.NSCCanvasRenderingContext2D.drawImage(long(this.context.__getPointer()), image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
406
394
  }
407
395
  if (global.isIOS) {
408
- dirty = NSCCanvasRenderingContext2D.drawImage(long(ptr), image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
396
+ dirty = NSCCanvasRenderingContext2D.drawImage(this.context.__getPointer(), image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
409
397
  }
410
398
  }
411
399
  if (dirty) {
412
- makeDirty();
400
+ this.context.__makeDirty();
413
401
  }
414
402
  };
415
403
  let image = args[0];
416
- if ((image === null || image === void 0 ? void 0 : image._type) === '2d' || ((_a = image === null || image === void 0 ? void 0 : image._type) === null || _a === void 0 ? void 0 : _a.indexOf('webgl')) > -1) {
404
+ if (image?._type === '2d' || image?._type?.indexOf('webgl') > -1) {
417
405
  image = image.native;
418
406
  }
419
407
  else if (image instanceof ImageAsset) {
@@ -472,218 +460,159 @@ export class CanvasRenderingContext2D {
472
460
  }
473
461
  }
474
462
  else if (image && typeof image.tagName === 'string' && image.tagName === 'CANVAS' && image._canvas instanceof Canvas) {
475
- image = image._canvas.android;
463
+ image = image._canvas.native;
476
464
  }
477
465
  else if (image instanceof ImageBitmap) {
478
466
  image = image.native;
479
467
  }
480
468
  if (args.length === 3) {
481
- drawImage(image, args[1], args[2]);
469
+ this.context.drawImage(image, args[1], args[2]);
482
470
  }
483
471
  else if (args.length === 5) {
484
- drawImage(image, args[1], args[2], args[3], args[4]);
472
+ this.context.drawImage(image, args[1], args[2], args[3], args[4]);
485
473
  }
486
474
  else if (args.length === 9) {
487
- drawImage(image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
475
+ this.context.drawImage(image, args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
488
476
  }
489
477
  }
490
478
  ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise = false) {
491
- this._ensureLayoutBeforeDraw();
492
- const ellipse = this._getMethod('ellipse');
493
- ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise);
479
+ this.context.ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise ?? false);
494
480
  }
495
481
  fill(...args) {
496
- this._ensureLayoutBeforeDraw();
497
- const fill = this._getMethod('fill');
498
482
  if (typeof args[0] === 'string') {
499
- fill(args[0]);
483
+ this.context.fill(ruleToEnum(args[0]));
500
484
  }
501
485
  else if (args[0] instanceof Path2D && typeof args[1] === 'string') {
502
- fill(args[0].native, args[1]);
486
+ this.context.fill(args[0].native, ruleToEnum(args[1]));
503
487
  }
504
488
  else if (args[0] instanceof Path2D) {
505
- fill(args[0].native);
489
+ this.context.fill(args[0].native);
506
490
  }
507
491
  else {
508
- fill();
492
+ this.context.fill();
509
493
  }
510
494
  }
511
495
  fillRect(x, y, width, height) {
512
- this._ensureLayoutBeforeDraw();
513
- const fillRect = this._getMethod('fillRect');
514
- fillRect(x, y, width, height);
496
+ this.context.fillRect(x, y, width, height);
515
497
  }
516
498
  fillText(text, x, y, maxWidth) {
517
- this._ensureLayoutBeforeDraw();
518
- const fillText = this._getMethod('fillText');
519
499
  if (typeof maxWidth === 'number') {
520
- fillText(text + '', x, y, maxWidth);
500
+ this.context.fillText(text + '', x, y, maxWidth);
521
501
  }
522
502
  else {
523
- fillText(text + '', x, y);
503
+ this.context.fillText(text + '', x, y);
524
504
  }
525
505
  }
526
506
  getImageData(sx, sy, sw, sh) {
527
- this._ensureLayoutBeforeDraw();
528
- const getImageData = this._getMethod('getImageData');
529
- return ImageData.fromNative(getImageData(sx, sy, sw, sh));
507
+ return ImageData.fromNative(this.context.getImageData(sx, sy, sw, sh));
530
508
  }
531
509
  getLineDash() {
532
- this._ensureLayoutBeforeDraw();
533
- const getLineDash = this._getMethod('getLineDash');
534
- return getLineDash();
510
+ return this.context.getLineDash();
535
511
  }
536
512
  isPointInPath(...args) {
537
- this._ensureLayoutBeforeDraw();
538
- const isPointInPath = this._getMethod('isPointInPath');
539
513
  if (args.length === 2) {
540
- return isPointInPath(args[0], args[1]);
514
+ return this.context.isPointInPath(args[0], args[1]);
541
515
  }
542
516
  else if (args.length === 3) {
543
- return isPointInPath(args[0], args[1], args[2]);
517
+ return this.context.isPointInPath(args[0], args[1], ruleToEnum(args[2]));
544
518
  }
545
519
  else if (args.length === 4 && args[0] instanceof Path2D) {
546
- return isPointInPath(args[0].native, args[1], args[2], args[3]);
520
+ return this.context.isPointInPath(args[0].native, args[1], args[2], ruleToEnum(args[3]));
547
521
  }
548
522
  return false;
549
523
  }
550
524
  isPointInStroke(...args) {
551
- this._ensureLayoutBeforeDraw();
552
- const isPointInStroke = this._getMethod('isPointInStroke');
553
525
  if (args.length === 2) {
554
- return isPointInStroke(args[0], args[1]);
526
+ return this.context.isPointInStroke(args[0], args[1]);
555
527
  }
556
528
  else if (args.length === 3 && args[0] instanceof Path2D) {
557
- return isPointInStroke(args[0].native, args[1], args[2]);
529
+ return this.context.isPointInStroke(args[0].native, args[1], args[2]);
558
530
  }
559
531
  return false;
560
532
  }
561
533
  lineTo(x, y) {
562
- this._ensureLayoutBeforeDraw();
563
- const lineTo = this._getMethod('lineTo');
564
- lineTo(x, y);
534
+ this.context.lineTo(x, y);
565
535
  }
566
536
  measureText(text) {
567
- this._ensureLayoutBeforeDraw();
568
- const measureText = this._getMethod('measureText');
569
- return new TextMetrics(measureText(text));
537
+ return new TextMetrics(this.context.measureText(text));
570
538
  }
571
539
  moveTo(x, y) {
572
- this._ensureLayoutBeforeDraw();
573
- const moveTo = this._getMethod('moveTo');
574
- moveTo(x, y);
540
+ this.context.moveTo(x, y);
575
541
  }
576
542
  putImageData(...args) {
577
- this._ensureLayoutBeforeDraw();
578
543
  if (!args) {
579
544
  return;
580
545
  }
581
- const putImageData = this._getMethod('putImageData');
582
- let data = args[0];
546
+ const data = args[0];
583
547
  if (args.length === 3) {
584
- putImageData(data.native, args[1], args[2]);
548
+ this.context.putImageData(data.native, args[1], args[2]);
585
549
  }
586
550
  else if (args.length === 7) {
587
- putImageData(data.native, args[1], args[2], args[3], args[4], args[5], args[6]);
551
+ this.context.putImageData(data.native, args[1], args[2], args[3], args[4], args[5], args[6]);
588
552
  }
589
553
  }
590
554
  quadraticCurveTo(cpx, cpy, x, y) {
591
- this._ensureLayoutBeforeDraw();
592
- const quadraticCurveTo = this._getMethod('quadraticCurveTo');
593
- quadraticCurveTo(cpx, cpy, x, y);
555
+ this.context.quadraticCurveTo(cpx, cpy, x, y);
594
556
  }
595
557
  rect(x, y, width, height) {
596
- this._ensureLayoutBeforeDraw();
597
- const rect = this._getMethod('rect');
598
- rect(x, y, width, height);
558
+ this.context.rect(x, y, width, height);
599
559
  }
600
560
  roundRect(x, y, width, height, radii) {
601
- this._ensureLayoutBeforeDraw();
602
- const roundRect = this._getMethod('roundRect');
603
- roundRect(x, y, width, height, radii);
561
+ this.context.roundRect(x, y, width, height, radii);
604
562
  }
605
563
  removeHitRegion(id) { }
606
564
  resetTransform() {
607
- this._ensureLayoutBeforeDraw();
608
- const resetTransform = this._getMethod('resetTransform');
609
- resetTransform();
565
+ this.context.resetTransform();
610
566
  }
611
567
  restore() {
612
- this._ensureLayoutBeforeDraw();
613
- const restore = this._getMethod('restore');
614
- restore();
568
+ this.context.restore();
615
569
  }
616
570
  rotate(angle) {
617
- this._ensureLayoutBeforeDraw();
618
- const rotate = this._getMethod('rotate');
619
- rotate(angle);
571
+ this.context.rotate(angle);
620
572
  }
621
573
  save() {
622
- this._ensureLayoutBeforeDraw();
623
- const save = this._getMethod('save');
624
- save();
574
+ this.context.save();
625
575
  }
626
576
  scale(x, y) {
627
- this._ensureLayoutBeforeDraw();
628
- const scale = this._getMethod('scale');
629
- scale(x, y);
577
+ this.context.scale(x, y);
630
578
  }
631
579
  scrollPathIntoView(path) { }
632
580
  setLineDash(segments) {
633
- this._ensureLayoutBeforeDraw();
634
- const setLineDash = this._getMethod('setLineDash');
635
- setLineDash(segments);
581
+ this.context.setLineDash(segments);
636
582
  }
637
583
  setTransform(a, b, c, d, e, f) {
638
- this._ensureLayoutBeforeDraw();
639
- const setTransform = this._getMethod('setTransform');
640
- setTransform(a, b, c, d, e, f);
584
+ this.context.setTransform(a, b, c, d, e, f);
641
585
  }
642
586
  stroke(path) {
643
- this._ensureLayoutBeforeDraw();
644
- const stroke = this._getMethod('stroke');
645
587
  if (path) {
646
- stroke(path.native);
588
+ this.context.stroke(path.native);
647
589
  }
648
590
  else {
649
- stroke();
591
+ this.context.stroke();
650
592
  }
651
593
  }
652
594
  strokeRect(x, y, width, height) {
653
- this._ensureLayoutBeforeDraw();
654
- const strokeRect = this._getMethod('strokeRect');
655
- strokeRect(x, y, width, height);
595
+ this.context.strokeRect(x, y, width, height);
656
596
  }
657
597
  strokeText(text, x, y, maxWidth) {
658
- this._ensureLayoutBeforeDraw();
659
- const strokeText = this._getMethod('strokeText');
660
598
  if (typeof maxWidth === 'number') {
661
- strokeText(text + '', x, y, maxWidth);
599
+ this.context.strokeText(text + '', x, y, maxWidth);
662
600
  }
663
601
  else {
664
- strokeText(text + '', x, y);
602
+ this.context.strokeText(text + '', x, y);
665
603
  }
666
604
  }
667
605
  transform(a, b, c, d, e, f) {
668
- this._ensureLayoutBeforeDraw();
669
- const transform = this._getMethod('transform');
670
- transform(a, b, c, d, e, f);
606
+ this.context.transform(a, b, c, d, e, f);
671
607
  }
672
608
  translate(x, y) {
673
- this._ensureLayoutBeforeDraw();
674
- const translate = this._getMethod('translate');
675
- translate(x, y);
676
- }
677
- _ensureLayoutBeforeDraw() {
678
- if (this.canvas !== undefined) {
679
- this.canvas._layoutNative();
680
- }
609
+ this.context.translate(x, y);
681
610
  }
682
611
  }
683
- CanvasRenderingContext2D.isDebug = false;
612
+ CanvasRenderingContext2D.isDebug = true;
684
613
  (() => {
685
614
  Helpers.initialize();
686
615
  //ctor = global.CanvasJSIModule.create2DContext;
687
- ctor = global.CanvasJSIModule.create2DContextWithPointer;
616
+ ctor = global.CanvasModule.create2DContextWithPointer;
688
617
  })();
689
618
  //# sourceMappingURL=index.js.map