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

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 (522) hide show
  1. package/Canvas/common.d.ts +198 -25
  2. package/Canvas/common.js +660 -460
  3. package/Canvas/common.js.map +1 -1
  4. package/Canvas/index.android.d.ts +8 -0
  5. package/Canvas/index.android.js +129 -47
  6. package/Canvas/index.android.js.map +1 -1
  7. package/Canvas/index.d.ts +12 -0
  8. package/Canvas/index.ios.d.ts +5 -0
  9. package/Canvas/index.ios.js +111 -52
  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 +136 -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 +2621 -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 +5685 -2366
  80. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +41 -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 +41 -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 +272 -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 +2621 -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 +5685 -2366
  93. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +41 -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 +41 -19
  96. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5685 -2366
  97. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +41 -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 +41 -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 +186 -0
  110. package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1533 -0
  111. package/platforms/ios/src/cpp/CanvasJSIModule.h +7 -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/canvas2d/CanvasGradient.cpp +71 -0
  132. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +27 -13
  133. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
  134. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +26 -13
  135. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2413 -0
  136. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +267 -16
  137. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +203 -0
  138. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +26 -12
  139. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +806 -0
  140. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +172 -13
  141. package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +449 -0
  142. package/platforms/ios/src/cpp/canvas2d/Path2D.h +41 -12
  143. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
  144. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +50 -12
  145. package/platforms/ios/src/cpp/gl.h +57 -7
  146. package/platforms/ios/src/cpp/gl3stub.c +425 -0
  147. package/platforms/ios/src/cpp/gl3stub.h +665 -0
  148. package/platforms/ios/src/cpp/gles3jni.h +37 -0
  149. package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
  150. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
  151. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
  152. package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +41 -6
  153. package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +46 -10
  154. package/platforms/ios/src/cpp/webgl/WebGLProgram.h +40 -5
  155. package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +40 -6
  156. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6454 -0
  157. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +262 -390
  158. package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +46 -24
  159. package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +17 -11
  160. package/platforms/ios/src/cpp/webgl/WebGLShader.h +40 -6
  161. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
  162. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +66 -11
  163. package/platforms/ios/src/cpp/webgl/WebGLTexture.h +40 -6
  164. package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +44 -8
  165. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +126 -0
  166. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +25 -11
  167. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
  168. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +25 -5
  169. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
  170. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +25 -5
  171. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
  172. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
  173. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
  174. package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
  175. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
  176. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
  177. package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +51 -0
  178. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
  179. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +38 -15
  180. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
  181. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +41 -6
  182. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
  183. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +102 -0
  184. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +69 -14
  185. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
  186. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
  187. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
  188. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
  189. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
  190. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
  191. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
  192. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
  193. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +35 -0
  194. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +127 -14
  195. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
  196. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -12
  197. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4375 -0
  198. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +139 -343
  199. package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +40 -4
  200. package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
  201. package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +44 -11
  202. package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +42 -4
  203. package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +43 -4
  204. package/platforms/ios/src/module.modulemap +1 -0
  205. package/src-native/ios/Headers/include/APIDesign.md +72 -0
  206. package/src-native/ios/Headers/include/DEPS +10 -0
  207. package/src-native/ios/Headers/include/DIR_METADATA +11 -0
  208. package/src-native/ios/Headers/include/OWNERS +23 -0
  209. package/src-native/ios/Headers/include/cppgc/DEPS +8 -0
  210. package/src-native/ios/Headers/include/cppgc/OWNERS +2 -0
  211. package/src-native/ios/Headers/include/cppgc/README.md +133 -0
  212. package/src-native/ios/Headers/include/cppgc/allocation.h +310 -0
  213. package/src-native/ios/Headers/include/cppgc/common.h +29 -0
  214. package/src-native/ios/Headers/include/cppgc/cross-thread-persistent.h +465 -0
  215. package/src-native/ios/Headers/include/cppgc/custom-space.h +97 -0
  216. package/src-native/ios/Headers/include/cppgc/default-platform.h +67 -0
  217. package/src-native/ios/Headers/include/cppgc/ephemeron-pair.h +30 -0
  218. package/src-native/ios/Headers/include/cppgc/explicit-management.h +100 -0
  219. package/src-native/ios/Headers/include/cppgc/garbage-collected.h +106 -0
  220. package/src-native/ios/Headers/include/cppgc/heap-consistency.h +266 -0
  221. package/src-native/ios/Headers/include/cppgc/heap-state.h +82 -0
  222. package/src-native/ios/Headers/include/cppgc/heap-statistics.h +120 -0
  223. package/src-native/ios/Headers/include/cppgc/heap.h +206 -0
  224. package/src-native/ios/Headers/include/cppgc/internal/api-constants.h +55 -0
  225. package/src-native/ios/Headers/include/cppgc/internal/atomic-entry-flag.h +48 -0
  226. package/src-native/ios/Headers/include/cppgc/internal/caged-heap-local-data.h +79 -0
  227. package/src-native/ios/Headers/include/cppgc/internal/compiler-specific.h +38 -0
  228. package/src-native/ios/Headers/include/cppgc/internal/finalizer-trait.h +93 -0
  229. package/src-native/ios/Headers/include/cppgc/internal/gc-info.h +156 -0
  230. package/src-native/ios/Headers/include/cppgc/internal/logging.h +50 -0
  231. package/src-native/ios/Headers/include/cppgc/internal/name-trait.h +122 -0
  232. package/src-native/ios/Headers/include/cppgc/internal/persistent-node.h +216 -0
  233. package/src-native/ios/Headers/include/cppgc/internal/pointer-policies.h +186 -0
  234. package/src-native/ios/Headers/include/cppgc/internal/write-barrier.h +435 -0
  235. package/src-native/ios/Headers/include/cppgc/liveness-broker.h +77 -0
  236. package/src-native/ios/Headers/include/cppgc/macros.h +26 -0
  237. package/src-native/ios/Headers/include/cppgc/member.h +291 -0
  238. package/src-native/ios/Headers/include/cppgc/name-provider.h +65 -0
  239. package/src-native/ios/Headers/include/cppgc/object-size-trait.h +58 -0
  240. package/src-native/ios/Headers/include/cppgc/persistent.h +370 -0
  241. package/src-native/ios/Headers/include/cppgc/platform.h +156 -0
  242. package/src-native/ios/Headers/include/cppgc/prefinalizer.h +75 -0
  243. package/src-native/ios/Headers/include/cppgc/process-heap-statistics.h +36 -0
  244. package/src-native/ios/Headers/include/cppgc/sentinel-pointer.h +32 -0
  245. package/src-native/ios/Headers/include/cppgc/source-location.h +92 -0
  246. package/src-native/ios/Headers/include/cppgc/testing.h +106 -0
  247. package/src-native/ios/Headers/include/cppgc/trace-trait.h +116 -0
  248. package/src-native/ios/Headers/include/cppgc/type-traits.h +240 -0
  249. package/src-native/ios/Headers/include/cppgc/visitor.h +379 -0
  250. package/src-native/ios/Headers/include/js_protocol-1.2.json +936 -0
  251. package/src-native/ios/Headers/include/js_protocol-1.3.json +1112 -0
  252. package/src-native/ios/Headers/include/js_protocol.pdl +1709 -0
  253. package/src-native/ios/Headers/include/libffi/arm64/ffi.h +524 -0
  254. package/src-native/ios/Headers/include/libffi/arm64/ffitarget.h +92 -0
  255. package/src-native/ios/Headers/include/libffi/x86_64/ffi.h +524 -0
  256. package/src-native/ios/Headers/include/libffi/x86_64/ffitarget.h +147 -0
  257. package/src-native/ios/Headers/include/libffi.h +12 -0
  258. package/src-native/ios/Headers/include/libplatform/DEPS +9 -0
  259. package/src-native/ios/Headers/include/libplatform/libplatform-export.h +29 -0
  260. package/src-native/ios/Headers/include/libplatform/libplatform.h +106 -0
  261. package/src-native/ios/Headers/include/libplatform/v8-tracing.h +333 -0
  262. package/src-native/ios/Headers/include/v8-array-buffer.h +433 -0
  263. package/src-native/ios/Headers/include/v8-callbacks.h +397 -0
  264. package/src-native/ios/Headers/include/v8-container.h +129 -0
  265. package/src-native/ios/Headers/include/v8-context.h +407 -0
  266. package/src-native/ios/Headers/include/v8-cppgc.h +215 -0
  267. package/src-native/ios/Headers/include/v8-data.h +80 -0
  268. package/src-native/ios/Headers/include/v8-date.h +43 -0
  269. package/src-native/ios/Headers/include/v8-debug.h +168 -0
  270. package/src-native/ios/Headers/include/v8-embedder-heap.h +218 -0
  271. package/src-native/ios/Headers/include/v8-embedder-state-scope.h +51 -0
  272. package/src-native/ios/Headers/include/v8-exception.h +217 -0
  273. package/src-native/ios/Headers/include/v8-extension.h +62 -0
  274. package/src-native/ios/Headers/include/v8-external.h +37 -0
  275. package/src-native/ios/Headers/include/v8-fast-api-calls.h +939 -0
  276. package/src-native/ios/Headers/include/v8-forward.h +81 -0
  277. package/src-native/ios/Headers/include/v8-function-callback.h +475 -0
  278. package/src-native/ios/Headers/include/v8-function.h +125 -0
  279. package/src-native/ios/Headers/include/v8-initialization.h +315 -0
  280. package/src-native/ios/Headers/include/v8-inspector-protocol.h +13 -0
  281. package/src-native/ios/Headers/include/v8-inspector.h +376 -0
  282. package/src-native/ios/Headers/include/v8-internal.h +661 -0
  283. package/src-native/ios/Headers/include/v8-isolate.h +1709 -0
  284. package/src-native/ios/Headers/include/v8-json.h +47 -0
  285. package/src-native/ios/Headers/include/v8-local-handle.h +455 -0
  286. package/src-native/ios/Headers/include/v8-locker.h +149 -0
  287. package/src-native/ios/Headers/include/v8-maybe.h +137 -0
  288. package/src-native/ios/Headers/include/v8-memory-span.h +43 -0
  289. package/src-native/ios/Headers/include/v8-message.h +216 -0
  290. package/src-native/ios/Headers/include/v8-metrics.h +255 -0
  291. package/src-native/ios/Headers/include/v8-microtask-queue.h +152 -0
  292. package/src-native/ios/Headers/include/v8-microtask.h +28 -0
  293. package/src-native/ios/Headers/include/v8-object.h +775 -0
  294. package/src-native/ios/Headers/include/v8-persistent-handle.h +590 -0
  295. package/src-native/ios/Headers/include/v8-platform.h +1092 -0
  296. package/src-native/ios/Headers/include/v8-primitive-object.h +118 -0
  297. package/src-native/ios/Headers/include/v8-primitive.h +866 -0
  298. package/src-native/ios/Headers/include/v8-profiler.h +1198 -0
  299. package/src-native/ios/Headers/include/v8-promise.h +174 -0
  300. package/src-native/ios/Headers/include/v8-proxy.h +50 -0
  301. package/src-native/ios/Headers/include/v8-regexp.h +105 -0
  302. package/src-native/ios/Headers/include/v8-script.h +748 -0
  303. package/src-native/ios/Headers/include/v8-snapshot.h +196 -0
  304. package/src-native/ios/Headers/include/v8-statistics.h +217 -0
  305. package/src-native/ios/Headers/include/v8-template.h +1079 -0
  306. package/src-native/ios/Headers/include/v8-traced-handle.h +420 -0
  307. package/src-native/ios/Headers/include/v8-typed-array.h +282 -0
  308. package/src-native/ios/Headers/include/v8-unwinder-state.h +31 -0
  309. package/src-native/ios/Headers/include/v8-unwinder.h +132 -0
  310. package/src-native/ios/Headers/include/v8-util.h +658 -0
  311. package/src-native/ios/Headers/include/v8-value-serializer-version.h +24 -0
  312. package/src-native/ios/Headers/include/v8-value-serializer.h +279 -0
  313. package/src-native/ios/Headers/include/v8-value.h +526 -0
  314. package/src-native/ios/Headers/include/v8-version-string.h +38 -0
  315. package/src-native/ios/Headers/include/v8-version.h +20 -0
  316. package/src-native/ios/Headers/include/v8-wasm-trap-handler-posix.h +31 -0
  317. package/src-native/ios/Headers/include/v8-wasm-trap-handler-win.h +28 -0
  318. package/src-native/ios/Headers/include/v8-wasm.h +257 -0
  319. package/src-native/ios/Headers/include/v8-weak-callback-info.h +86 -0
  320. package/src-native/ios/Headers/include/v8.h +88 -0
  321. package/src-native/ios/Headers/include/v8config.h +605 -0
  322. package/src-native/ios/Headers/inspector/InspectorServer.h +20 -0
  323. package/src-native/ios/Headers/inspector/JsV8InspectorClient.h +66 -0
  324. package/src-native/ios/Headers/inspector/base/trace_event/common/trace_event_common.h +1123 -0
  325. package/src-native/ios/Headers/inspector/base64.h +9 -0
  326. package/src-native/ios/Headers/inspector/src/base/address-region.h +95 -0
  327. package/src-native/ios/Headers/inspector/src/base/atomic-utils.h +219 -0
  328. package/src-native/ios/Headers/inspector/src/base/atomicops.h +332 -0
  329. package/src-native/ios/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +89 -0
  330. package/src-native/ios/Headers/inspector/src/base/base-export.h +31 -0
  331. package/src-native/ios/Headers/inspector/src/base/bits.h +343 -0
  332. package/src-native/ios/Headers/inspector/src/base/build_config.h +234 -0
  333. package/src-native/ios/Headers/inspector/src/base/compiler-specific.h +136 -0
  334. package/src-native/ios/Headers/inspector/src/base/export-template.h +163 -0
  335. package/src-native/ios/Headers/inspector/src/base/flags.h +130 -0
  336. package/src-native/ios/Headers/inspector/src/base/immediate-crash.h +162 -0
  337. package/src-native/ios/Headers/inspector/src/base/lazy-instance.h +258 -0
  338. package/src-native/ios/Headers/inspector/src/base/logging.h +417 -0
  339. package/src-native/ios/Headers/inspector/src/base/macros.h +423 -0
  340. package/src-native/ios/Headers/inspector/src/base/memory.h +89 -0
  341. package/src-native/ios/Headers/inspector/src/base/once.h +108 -0
  342. package/src-native/ios/Headers/inspector/src/base/optional.h +882 -0
  343. package/src-native/ios/Headers/inspector/src/base/platform/mutex.h +370 -0
  344. package/src-native/ios/Headers/inspector/src/base/platform/platform.h +476 -0
  345. package/src-native/ios/Headers/inspector/src/base/platform/semaphore.h +108 -0
  346. package/src-native/ios/Headers/inspector/src/base/platform/v8-time.h +513 -0
  347. package/src-native/ios/Headers/inspector/src/base/platform/wrappers.h +73 -0
  348. package/src-native/ios/Headers/inspector/src/base/safe_conversions.h +389 -0
  349. package/src-native/ios/Headers/inspector/src/base/safe_conversions_impl.h +822 -0
  350. package/src-native/ios/Headers/inspector/src/base/template-utils.h +113 -0
  351. package/src-native/ios/Headers/inspector/src/base/v8-fallthrough.h +21 -0
  352. package/src-native/ios/Headers/inspector/src/common/checks.h +38 -0
  353. package/src-native/ios/Headers/inspector/src/common/globals.h +1842 -0
  354. package/src-native/ios/Headers/inspector/src/debug/debug-interface.h +667 -0
  355. package/src-native/ios/Headers/inspector/src/debug/interface-types.h +175 -0
  356. package/src-native/ios/Headers/inspector/src/init/v8.h +52 -0
  357. package/src-native/ios/Headers/inspector/src/inspector/custom-preview.h +24 -0
  358. package/src-native/ios/Headers/inspector/src/inspector/injected-script.h +251 -0
  359. package/src-native/ios/Headers/inspector/src/inspector/inspected-context.h +79 -0
  360. package/src-native/ios/Headers/inspector/src/inspector/protocol/CSS.h +2148 -0
  361. package/src-native/ios/Headers/inspector/src/inspector/protocol/Console.h +211 -0
  362. package/src-native/ios/Headers/inspector/src/inspector/protocol/DOM.h +1008 -0
  363. package/src-native/ios/Headers/inspector/src/inspector/protocol/Debugger.h +892 -0
  364. package/src-native/ios/Headers/inspector/src/inspector/protocol/Forward.h +75 -0
  365. package/src-native/ios/Headers/inspector/src/inspector/protocol/HeapProfiler.h +346 -0
  366. package/src-native/ios/Headers/inspector/src/inspector/protocol/Log.h +342 -0
  367. package/src-native/ios/Headers/inspector/src/inspector/protocol/Network.h +2528 -0
  368. package/src-native/ios/Headers/inspector/src/inspector/protocol/Overlay.h +281 -0
  369. package/src-native/ios/Headers/inspector/src/inspector/protocol/Page.h +1189 -0
  370. package/src-native/ios/Headers/inspector/src/inspector/protocol/Profiler.h +1001 -0
  371. package/src-native/ios/Headers/inspector/src/inspector/protocol/Protocol.h +617 -0
  372. package/src-native/ios/Headers/inspector/src/inspector/protocol/Runtime.h +1696 -0
  373. package/src-native/ios/Headers/inspector/src/inspector/protocol/Schema.h +146 -0
  374. package/src-native/ios/Headers/inspector/src/inspector/protocol/Security.h +793 -0
  375. package/src-native/ios/Headers/inspector/src/inspector/remote-object-id.h +54 -0
  376. package/src-native/ios/Headers/inspector/src/inspector/search-util.h +26 -0
  377. package/src-native/ios/Headers/inspector/src/inspector/string-16.h +180 -0
  378. package/src-native/ios/Headers/inspector/src/inspector/string-util.h +128 -0
  379. package/src-native/ios/Headers/inspector/src/inspector/v8-console-agent-impl.h +48 -0
  380. package/src-native/ios/Headers/inspector/src/inspector/v8-console-message.h +147 -0
  381. package/src-native/ios/Headers/inspector/src/inspector/v8-console.h +173 -0
  382. package/src-native/ios/Headers/inspector/src/inspector/v8-css-agent-impl.h +62 -0
  383. package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +248 -0
  384. package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-id.h +44 -0
  385. package/src-native/ios/Headers/inspector/src/inspector/v8-debugger-script.h +123 -0
  386. package/src-native/ios/Headers/inspector/src/inspector/v8-debugger.h +257 -0
  387. package/src-native/ios/Headers/inspector/src/inspector/v8-dom-agent-impl.h +91 -0
  388. package/src-native/ios/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +80 -0
  389. package/src-native/ios/Headers/inspector/src/inspector/v8-inspector-impl.h +191 -0
  390. package/src-native/ios/Headers/inspector/src/inspector/v8-inspector-session-impl.h +156 -0
  391. package/src-native/ios/Headers/inspector/src/inspector/v8-log-agent-impl.h +34 -0
  392. package/src-native/ios/Headers/inspector/src/inspector/v8-network-agent-impl.h +71 -0
  393. package/src-native/ios/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +24 -0
  394. package/src-native/ios/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +70 -0
  395. package/src-native/ios/Headers/inspector/src/inspector/v8-page-agent-impl.h +88 -0
  396. package/src-native/ios/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +104 -0
  397. package/src-native/ios/Headers/inspector/src/inspector/v8-regex.h +38 -0
  398. package/src-native/ios/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +157 -0
  399. package/src-native/ios/Headers/inspector/src/inspector/v8-schema-agent-impl.h +38 -0
  400. package/src-native/ios/Headers/inspector/src/inspector/v8-stack-trace-impl.h +164 -0
  401. package/src-native/ios/Headers/inspector/src/inspector/v8-string-conversions.h +17 -0
  402. package/src-native/ios/Headers/inspector/src/inspector/v8-value-utils.h +23 -0
  403. package/src-native/ios/Headers/inspector/src/inspector/value-mirror.h +87 -0
  404. package/src-native/ios/Headers/inspector/src/libplatform/default-platform.h +92 -0
  405. package/src-native/ios/Headers/inspector/src/logging/tracing-flags.h +50 -0
  406. package/src-native/ios/Headers/inspector/src/numbers/conversions.h +183 -0
  407. package/src-native/ios/Headers/inspector/src/tracing/trace-event.h +664 -0
  408. package/src-native/ios/Headers/inspector/src/utils/allocation.h +367 -0
  409. package/src-native/ios/Headers/inspector/src/utils/vector.h +324 -0
  410. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +305 -0
  411. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +314 -0
  412. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +62 -0
  413. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +6 -0
  414. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +58 -0
  415. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +47 -0
  416. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +80 -0
  417. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +52 -0
  418. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +26 -0
  419. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +104 -0
  420. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +39 -0
  421. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +406 -0
  422. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +32 -0
  423. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +158 -0
  424. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +99 -0
  425. package/src-native/ios/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +139 -0
  426. package/src-native/ios/Headers/inspector/utils.h +32 -0
  427. package/src-native/ios/Headers/inspector/v8-inspector-platform.h +44 -0
  428. package/src-native/ios/Headers/runtime/ArgConverter.h +61 -0
  429. package/src-native/ios/Headers/runtime/ArrayAdapter.h +13 -0
  430. package/src-native/ios/Headers/runtime/Caches.h +98 -0
  431. package/src-native/ios/Headers/runtime/ClassBuilder.h +61 -0
  432. package/src-native/ios/Headers/runtime/Common.h +9 -0
  433. package/src-native/ios/Headers/runtime/ConcurrentMap.h +55 -0
  434. package/src-native/ios/Headers/runtime/ConcurrentQueue.h +28 -0
  435. package/src-native/ios/Headers/runtime/Console.h +27 -0
  436. package/src-native/ios/Headers/runtime/Constants.h +15 -0
  437. package/src-native/ios/Headers/runtime/DataWrapper.h +671 -0
  438. package/src-native/ios/Headers/runtime/DictionaryAdapter.h +13 -0
  439. package/src-native/ios/Headers/runtime/ExtVector.h +21 -0
  440. package/src-native/ios/Headers/runtime/FFICall.h +105 -0
  441. package/src-native/ios/Headers/runtime/FastEnumerationAdapter.h +13 -0
  442. package/src-native/ios/Headers/runtime/FunctionReference.h +18 -0
  443. package/src-native/ios/Headers/runtime/Helpers.h +84 -0
  444. package/src-native/ios/Headers/runtime/InlineFunctions.h +16 -0
  445. package/src-native/ios/Headers/runtime/Interop.h +202 -0
  446. package/src-native/ios/Headers/runtime/KnownUnknownClassPair.h +35 -0
  447. package/src-native/ios/Headers/runtime/Metadata.h +981 -0
  448. package/src-native/ios/Headers/runtime/MetadataBuilder.h +72 -0
  449. package/src-native/ios/Headers/runtime/MetadataInlines.h +157 -0
  450. package/src-native/ios/Headers/runtime/ModuleInternal.h +59 -0
  451. package/src-native/ios/Headers/runtime/NSDataAdapter.h +13 -0
  452. package/src-native/ios/Headers/runtime/NativeScriptException.h +27 -0
  453. package/src-native/ios/Headers/runtime/ObjectManager.h +31 -0
  454. package/src-native/ios/Headers/runtime/OneByteStringResource.h +21 -0
  455. package/src-native/ios/Headers/runtime/Pointer.h +26 -0
  456. package/src-native/ios/Headers/runtime/PromiseProxy.h +15 -0
  457. package/src-native/ios/Headers/runtime/Reference.h +38 -0
  458. package/src-native/ios/Headers/runtime/Runtime.h +67 -0
  459. package/src-native/ios/Headers/runtime/RuntimeConfig.h +17 -0
  460. package/src-native/ios/Headers/runtime/SetTimeout.h +34 -0
  461. package/src-native/ios/Headers/runtime/SimpleAllocator.h +23 -0
  462. package/src-native/ios/Headers/runtime/StringHasher.h +315 -0
  463. package/src-native/ios/Headers/runtime/SymbolIterator.h +18 -0
  464. package/src-native/ios/Headers/runtime/SymbolLoader.h +27 -0
  465. package/src-native/ios/Headers/runtime/TNSDerivedClass.h +8 -0
  466. package/src-native/ios/Headers/runtime/TSHelpers.h +15 -0
  467. package/src-native/ios/Headers/runtime/Tasks.h +19 -0
  468. package/src-native/ios/Headers/runtime/UnmanagedType.h +21 -0
  469. package/src-native/ios/Headers/runtime/WeakRef.h +15 -0
  470. package/src-native/ios/Headers/runtime/Worker.h +26 -0
  471. package/src-native/ios/Headers/runtime/robin_hood.h +2184 -0
  472. package/src-native/ios/NativeScript.podspec +55 -0
  473. package/typings/objc!CanvasNative.d.ts +2038 -0
  474. package/typings/objc!CanvasNative.js +1 -0
  475. package/typings/objc!CanvasNative.js.map +1 -0
  476. package/utils.d.ts +3 -1
  477. package/utils.js +7 -20
  478. package/utils.js.map +1 -1
  479. package/angular/nativescript-canvas-angular.d.ts +0 -5
  480. package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
  481. package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
  482. package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
  483. package/platforms/ios/src/cpp/RafImpl.mm +0 -10
  484. package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
  485. package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
  486. package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -51
  487. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6119
  488. package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2854
  489. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
  490. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
  491. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1954
  492. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
  493. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
  494. package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
  495. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
  496. package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
  497. package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
  498. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
  499. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5879
  500. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
  501. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
  502. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
  503. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
  504. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
  505. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
  506. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
  507. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
  508. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
  509. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
  510. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
  511. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
  512. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
  513. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
  514. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
  515. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
  516. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
  517. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
  518. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
  519. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
  520. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
  521. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4554
  522. /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)
3
+ // Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
4
4
  #ifndef CANVASNATIVE_SWIFT_H
5
5
  #define CANVASNATIVE_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -23,7 +23,6 @@
23
23
  # include <swift/objc-prologue.h>
24
24
  #endif
25
25
 
26
- #pragma clang diagnostic ignored "-Wduplicate-method-match"
27
26
  #pragma clang diagnostic ignored "-Wauto-import"
28
27
  #if defined(__OBJC__)
29
28
  #include <Foundation/Foundation.h>
@@ -32,10 +31,24 @@
32
31
  #include <cstdint>
33
32
  #include <cstddef>
34
33
  #include <cstdbool>
34
+ #include <cstring>
35
+ #include <stdlib.h>
36
+ #include <new>
37
+ #include <type_traits>
35
38
  #else
36
39
  #include <stdint.h>
37
40
  #include <stddef.h>
38
41
  #include <stdbool.h>
42
+ #include <string.h>
43
+ #endif
44
+ #if defined(__cplusplus)
45
+ #if __has_include(<ptrauth.h>)
46
+ # include <ptrauth.h>
47
+ #else
48
+ # ifndef __ptrauth_swift_value_witness_function_pointer
49
+ # define __ptrauth_swift_value_witness_function_pointer(x)
50
+ # endif
51
+ #endif
39
52
  #endif
40
53
 
41
54
  #if !defined(SWIFT_TYPEDEFS)
@@ -71,53 +84,66 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
71
84
  # if __has_feature(objc_class_property)
72
85
  # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
73
86
  # else
74
- # define SWIFT_CLASS_PROPERTY(...)
87
+ # define SWIFT_CLASS_PROPERTY(...)
75
88
  # endif
76
89
  #endif
77
-
78
- #if __has_attribute(objc_runtime_name)
79
- # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
80
- #else
81
- # define SWIFT_RUNTIME_NAME(X)
90
+ #if !defined(SWIFT_RUNTIME_NAME)
91
+ # if __has_attribute(objc_runtime_name)
92
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
93
+ # else
94
+ # define SWIFT_RUNTIME_NAME(X)
95
+ # endif
82
96
  #endif
83
- #if __has_attribute(swift_name)
84
- # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
85
- #else
86
- # define SWIFT_COMPILE_NAME(X)
97
+ #if !defined(SWIFT_COMPILE_NAME)
98
+ # if __has_attribute(swift_name)
99
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
100
+ # else
101
+ # define SWIFT_COMPILE_NAME(X)
102
+ # endif
87
103
  #endif
88
- #if __has_attribute(objc_method_family)
89
- # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
90
- #else
91
- # define SWIFT_METHOD_FAMILY(X)
104
+ #if !defined(SWIFT_METHOD_FAMILY)
105
+ # if __has_attribute(objc_method_family)
106
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
107
+ # else
108
+ # define SWIFT_METHOD_FAMILY(X)
109
+ # endif
92
110
  #endif
93
- #if __has_attribute(noescape)
94
- # define SWIFT_NOESCAPE __attribute__((noescape))
95
- #else
96
- # define SWIFT_NOESCAPE
111
+ #if !defined(SWIFT_NOESCAPE)
112
+ # if __has_attribute(noescape)
113
+ # define SWIFT_NOESCAPE __attribute__((noescape))
114
+ # else
115
+ # define SWIFT_NOESCAPE
116
+ # endif
97
117
  #endif
98
- #if __has_attribute(ns_consumed)
99
- # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
100
- #else
101
- # define SWIFT_RELEASES_ARGUMENT
118
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
119
+ # if __has_attribute(ns_consumed)
120
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
121
+ # else
122
+ # define SWIFT_RELEASES_ARGUMENT
123
+ # endif
102
124
  #endif
103
- #if __has_attribute(warn_unused_result)
104
- # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
105
- #else
106
- # define SWIFT_WARN_UNUSED_RESULT
125
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
126
+ # if __has_attribute(warn_unused_result)
127
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
128
+ # else
129
+ # define SWIFT_WARN_UNUSED_RESULT
130
+ # endif
107
131
  #endif
108
- #if __has_attribute(noreturn)
109
- # define SWIFT_NORETURN __attribute__((noreturn))
110
- #else
111
- # define SWIFT_NORETURN
132
+ #if !defined(SWIFT_NORETURN)
133
+ # if __has_attribute(noreturn)
134
+ # define SWIFT_NORETURN __attribute__((noreturn))
135
+ # else
136
+ # define SWIFT_NORETURN
137
+ # endif
112
138
  #endif
113
139
  #if !defined(SWIFT_CLASS_EXTRA)
114
- # define SWIFT_CLASS_EXTRA
140
+ # define SWIFT_CLASS_EXTRA
115
141
  #endif
116
142
  #if !defined(SWIFT_PROTOCOL_EXTRA)
117
- # define SWIFT_PROTOCOL_EXTRA
143
+ # define SWIFT_PROTOCOL_EXTRA
118
144
  #endif
119
145
  #if !defined(SWIFT_ENUM_EXTRA)
120
- # define SWIFT_ENUM_EXTRA
146
+ # define SWIFT_ENUM_EXTRA
121
147
  #endif
122
148
  #if !defined(SWIFT_CLASS)
123
149
  # if __has_attribute(objc_subclassing_restricted)
@@ -137,28 +163,25 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
137
163
  # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
138
164
  # endif
139
165
  #endif
140
-
141
166
  #if !defined(SWIFT_PROTOCOL)
142
167
  # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
143
168
  # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
144
169
  #endif
145
-
146
170
  #if !defined(SWIFT_EXTENSION)
147
171
  # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
148
172
  #endif
149
-
150
173
  #if !defined(OBJC_DESIGNATED_INITIALIZER)
151
174
  # if __has_attribute(objc_designated_initializer)
152
175
  # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
153
176
  # else
154
- # define OBJC_DESIGNATED_INITIALIZER
177
+ # define OBJC_DESIGNATED_INITIALIZER
155
178
  # endif
156
179
  #endif
157
180
  #if !defined(SWIFT_ENUM_ATTR)
158
- # if defined(__has_attribute) && __has_attribute(enum_extensibility)
181
+ # if __has_attribute(enum_extensibility)
159
182
  # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
160
183
  # else
161
- # define SWIFT_ENUM_ATTR(_extensibility)
184
+ # define SWIFT_ENUM_ATTR(_extensibility)
162
185
  # endif
163
186
  #endif
164
187
  #if !defined(SWIFT_ENUM)
@@ -187,14 +210,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
187
210
  #if !defined(SWIFT_DEPRECATED_MSG)
188
211
  # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
189
212
  #endif
190
- #if __has_feature(attribute_diagnose_if_objc)
191
- # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
192
- #else
193
- # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
213
+ #if !defined(SWIFT_DEPRECATED_OBJC)
214
+ # if __has_feature(attribute_diagnose_if_objc)
215
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
216
+ # else
217
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
218
+ # endif
194
219
  #endif
195
220
  #if defined(__OBJC__)
196
221
  #if !defined(IBSegueAction)
197
- # define IBSegueAction
222
+ # define IBSegueAction
198
223
  #endif
199
224
  #endif
200
225
  #if !defined(SWIFT_EXTERN)
@@ -207,26 +232,31 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
207
232
  #if !defined(SWIFT_CALL)
208
233
  # define SWIFT_CALL __attribute__((swiftcall))
209
234
  #endif
235
+ #if !defined(SWIFT_INDIRECT_RESULT)
236
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
237
+ #endif
238
+ #if !defined(SWIFT_CONTEXT)
239
+ # define SWIFT_CONTEXT __attribute__((swift_context))
240
+ #endif
241
+ #if !defined(SWIFT_ERROR_RESULT)
242
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
243
+ #endif
210
244
  #if defined(__cplusplus)
211
- #if !defined(SWIFT_NOEXCEPT)
212
245
  # define SWIFT_NOEXCEPT noexcept
213
- #endif
214
246
  #else
215
- #if !defined(SWIFT_NOEXCEPT)
216
247
  # define SWIFT_NOEXCEPT
217
248
  #endif
249
+ #if defined(_WIN32)
250
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
251
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
218
252
  #endif
219
- #if defined(__cplusplus)
220
- #if !defined(SWIFT_CXX_INT_DEFINED)
221
- #define SWIFT_CXX_INT_DEFINED
222
- namespace swift {
223
- using Int = ptrdiff_t;
224
- using UInt = size_t;
225
- }
253
+ #else
254
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
255
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
226
256
  #endif
227
257
  #endif
228
258
  #if defined(__OBJC__)
229
- #if __has_feature(modules)
259
+ #if __has_feature(objc_modules)
230
260
  #if __has_warning("-Watimport-in-framework-header")
231
261
  #pragma clang diagnostic ignored "-Watimport-in-framework-header"
232
262
  #endif
@@ -281,17 +311,55 @@ SWIFT_CLASS_NAMED("CanvasGLKView")
281
311
  - (nonnull instancetype)initWithFrame:(CGRect)frame context:(EAGLContext * _Nonnull)context SWIFT_UNAVAILABLE;
282
312
  @end
283
313
 
284
-
285
- SWIFT_CLASS("_TtC12CanvasNative13CanvasHelpers")
286
- @interface CanvasHelpers : NSObject
314
+ @class UIImage;
315
+ @class NSMutableData;
316
+ @class NSString;
317
+ @class NSData;
318
+ @class NSError;
319
+
320
+ SWIFT_CLASS_NAMED("CanvasHelpers")
321
+ @interface NSSCanvasHelpers : NSObject
322
+ + (NSMutableData * _Nonnull)getBytesFromUIImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
323
+ + (int64_t)createPattern:(int64_t)context :(UIImage * _Nonnull)image :(NSString * _Nonnull)repetition SWIFT_WARN_UNUSED_RESULT;
324
+ + (BOOL)loadImageAssetWithContext:(int64_t)asset :(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
325
+ + (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy;
326
+ + (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy dw:(float)dw dh:(float)dh;
327
+ + (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image sx:(float)sx sy:(float)sy sw:(float)sw sh:(float)sh dx:(float)dx dy:(float)dy dw:(float)dw dh:(float)dh;
328
+ + (int64_t)initGLWithView:(int64_t)view :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
329
+ + (int64_t)initSharedGLWithView:(int64_t)view :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas :(int64_t)shared_context SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
330
+ + (int64_t)initGLWithWidthAndHeight:(int32_t)width :(int32_t)height :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
331
+ + (int64_t)initSharedGLWidthAndHeight:(int32_t)width :(int32_t)height :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas :(int64_t)shared_context SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
332
+ + (void)resize2DContext:(int64_t)context :(float)width :(float)height;
333
+ + (void)flush2DContext:(int64_t)context;
334
+ + (BOOL)flushGL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
335
+ + (void)releaseGL:(int64_t)context;
336
+ + (int64_t)getGLPointer:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
337
+ + (void)releaseGLPointer:(int64_t)context;
338
+ + (int64_t)create2DContext:(int64_t)context :(int32_t)width :(int32_t)height :(BOOL)alpha :(float)density :(int32_t)samples :(int32_t)font_color :(float)ppi :(int32_t)direction SWIFT_WARN_UNUSED_RESULT;
339
+ + (void)updateGLSurfaceWithView:(int64_t)view :(int32_t)width :(int32_t)height :(int64_t)context;
340
+ + (void)test2D:(int64_t)context;
341
+ + (NSString * _Nonnull)testToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
342
+ + (void)writeFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
343
+ + (void)readFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSData * _Nullable))callback;
344
+ + (void)deleteFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSError * _Nullable, BOOL))callback;
345
+ + (void)handleBase64Image:(NSString * _Nonnull)mime :(NSString * _Nonnull)dir :(NSString * _Nonnull)base64 :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
287
346
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
288
347
  @end
289
348
 
290
- @class NSString;
349
+
350
+ @interface GLKView (SWIFT_EXTENSION(CanvasNative))
351
+ - (void)snapshotWithData:(NSData * _Nonnull)data;
352
+ @end
353
+
354
+ @class NSMutableDictionary;
355
+ @class UIGestureRecognizer;
291
356
  @protocol NSCCanvasListener;
292
357
 
293
358
  SWIFT_CLASS_NAMED("NSCCanvas")
294
- @interface NSCCanvas : UIView
359
+ @interface NSCCanvas : UIView <GLKViewDelegate>
360
+ - (void)glkView:(GLKView * _Nonnull)view drawInRect:(CGRect)rect;
361
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSMutableDictionary * _Nonnull store;)
362
+ + (NSMutableDictionary * _Nonnull)store SWIFT_WARN_UNUSED_RESULT;
295
363
  + (NSMapTable<NSString *, NSCCanvas *> * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
296
364
  - (void * _Nonnull)getViewPtr SWIFT_WARN_UNUSED_RESULT;
297
365
  @property (nonatomic) BOOL ignorePixelScaling;
@@ -304,9 +372,11 @@ SWIFT_CLASS_NAMED("NSCCanvas")
304
372
  - (void)initContext:(NSString * _Nonnull)type :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(NSString * _Nonnull)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible SWIFT_METHOD_FAMILY(none);
305
373
  - (int64_t)create2DContext:(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(NSString * _Nonnull)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible :(int32_t)fontColor SWIFT_WARN_UNUSED_RESULT;
306
374
  - (void)forceLayout:(CGFloat)width :(CGFloat)height;
307
- - (void)render;
375
+ - (UIImage * _Nullable)snapshot:(BOOL)flip SWIFT_WARN_UNUSED_RESULT;
376
+ - (BOOL)render;
308
377
  - (void)context2DTest:(int64_t)context;
309
378
  - (NSString * _Nonnull)context2DTestToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
379
+ @property (nonatomic, copy) void (^ _Nullable touchEventListener)(NSString * _Nonnull, UIGestureRecognizer * _Nonnull);
310
380
  - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
311
381
  - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
312
382
  - (void)setListener:(id <NSCCanvasListener> _Nullable)listener;
@@ -325,7 +395,6 @@ SWIFT_CLASS_NAMED("NSCCanvasRenderingContext")
325
395
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
326
396
  @end
327
397
 
328
- @class UIImage;
329
398
 
330
399
  SWIFT_CLASS_NAMED("NSCCanvasRenderingContext2D")
331
400
  @interface NSCCanvasRenderingContext2D : NSCCanvasRenderingContext
@@ -369,6 +438,8 @@ SWIFT_CLASS_NAMED("NSCSVG")
369
438
  - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
370
439
  - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
371
440
  - (void)drawRect:(CGRect)rect;
441
+ - (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
442
+ - (NSData * _Nullable)toData SWIFT_WARN_UNUSED_RESULT;
372
443
  @end
373
444
 
374
445
  @class AVPlayer;
@@ -380,6 +451,7 @@ SWIFT_CLASS_NAMED("Utils")
380
451
  + (CVOpenGLESTextureRef _Nullable)createImage:(CVOpenGLESTextureCacheRef _Nonnull)texturecache :(CVImageBufferRef _Nonnull)buffer :(CFDictionaryRef _Nullable)textureAttributes :(GLenum)target :(GLint)internalFormat :(GLsizei)width :(GLsizei)height :(GLenum)format :(GLenum)type :(NSInteger)planeIndex SWIFT_WARN_UNUSED_RESULT;
381
452
  + (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
382
453
  + (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
454
+ + (BOOL)writeToFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path error:(NSError * _Nullable * _Nullable)error;
383
455
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
384
456
  @end
385
457
 
@@ -393,7 +465,7 @@ SWIFT_CLASS_NAMED("Utils")
393
465
  #endif
394
466
 
395
467
  #elif defined(__x86_64__) && __x86_64__
396
- // Generated by Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)
468
+ // Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
397
469
  #ifndef CANVASNATIVE_SWIFT_H
398
470
  #define CANVASNATIVE_SWIFT_H
399
471
  #pragma clang diagnostic push
@@ -416,7 +488,6 @@ SWIFT_CLASS_NAMED("Utils")
416
488
  # include <swift/objc-prologue.h>
417
489
  #endif
418
490
 
419
- #pragma clang diagnostic ignored "-Wduplicate-method-match"
420
491
  #pragma clang diagnostic ignored "-Wauto-import"
421
492
  #if defined(__OBJC__)
422
493
  #include <Foundation/Foundation.h>
@@ -425,10 +496,24 @@ SWIFT_CLASS_NAMED("Utils")
425
496
  #include <cstdint>
426
497
  #include <cstddef>
427
498
  #include <cstdbool>
499
+ #include <cstring>
500
+ #include <stdlib.h>
501
+ #include <new>
502
+ #include <type_traits>
428
503
  #else
429
504
  #include <stdint.h>
430
505
  #include <stddef.h>
431
506
  #include <stdbool.h>
507
+ #include <string.h>
508
+ #endif
509
+ #if defined(__cplusplus)
510
+ #if __has_include(<ptrauth.h>)
511
+ # include <ptrauth.h>
512
+ #else
513
+ # ifndef __ptrauth_swift_value_witness_function_pointer
514
+ # define __ptrauth_swift_value_witness_function_pointer(x)
515
+ # endif
516
+ #endif
432
517
  #endif
433
518
 
434
519
  #if !defined(SWIFT_TYPEDEFS)
@@ -464,53 +549,66 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
464
549
  # if __has_feature(objc_class_property)
465
550
  # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
466
551
  # else
467
- # define SWIFT_CLASS_PROPERTY(...)
552
+ # define SWIFT_CLASS_PROPERTY(...)
468
553
  # endif
469
554
  #endif
470
-
471
- #if __has_attribute(objc_runtime_name)
472
- # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
473
- #else
474
- # define SWIFT_RUNTIME_NAME(X)
555
+ #if !defined(SWIFT_RUNTIME_NAME)
556
+ # if __has_attribute(objc_runtime_name)
557
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
558
+ # else
559
+ # define SWIFT_RUNTIME_NAME(X)
560
+ # endif
475
561
  #endif
476
- #if __has_attribute(swift_name)
477
- # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
478
- #else
479
- # define SWIFT_COMPILE_NAME(X)
562
+ #if !defined(SWIFT_COMPILE_NAME)
563
+ # if __has_attribute(swift_name)
564
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
565
+ # else
566
+ # define SWIFT_COMPILE_NAME(X)
567
+ # endif
480
568
  #endif
481
- #if __has_attribute(objc_method_family)
482
- # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
483
- #else
484
- # define SWIFT_METHOD_FAMILY(X)
569
+ #if !defined(SWIFT_METHOD_FAMILY)
570
+ # if __has_attribute(objc_method_family)
571
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
572
+ # else
573
+ # define SWIFT_METHOD_FAMILY(X)
574
+ # endif
485
575
  #endif
486
- #if __has_attribute(noescape)
487
- # define SWIFT_NOESCAPE __attribute__((noescape))
488
- #else
489
- # define SWIFT_NOESCAPE
576
+ #if !defined(SWIFT_NOESCAPE)
577
+ # if __has_attribute(noescape)
578
+ # define SWIFT_NOESCAPE __attribute__((noescape))
579
+ # else
580
+ # define SWIFT_NOESCAPE
581
+ # endif
490
582
  #endif
491
- #if __has_attribute(ns_consumed)
492
- # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
493
- #else
494
- # define SWIFT_RELEASES_ARGUMENT
583
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
584
+ # if __has_attribute(ns_consumed)
585
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
586
+ # else
587
+ # define SWIFT_RELEASES_ARGUMENT
588
+ # endif
495
589
  #endif
496
- #if __has_attribute(warn_unused_result)
497
- # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
498
- #else
499
- # define SWIFT_WARN_UNUSED_RESULT
590
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
591
+ # if __has_attribute(warn_unused_result)
592
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
593
+ # else
594
+ # define SWIFT_WARN_UNUSED_RESULT
595
+ # endif
500
596
  #endif
501
- #if __has_attribute(noreturn)
502
- # define SWIFT_NORETURN __attribute__((noreturn))
503
- #else
504
- # define SWIFT_NORETURN
597
+ #if !defined(SWIFT_NORETURN)
598
+ # if __has_attribute(noreturn)
599
+ # define SWIFT_NORETURN __attribute__((noreturn))
600
+ # else
601
+ # define SWIFT_NORETURN
602
+ # endif
505
603
  #endif
506
604
  #if !defined(SWIFT_CLASS_EXTRA)
507
- # define SWIFT_CLASS_EXTRA
605
+ # define SWIFT_CLASS_EXTRA
508
606
  #endif
509
607
  #if !defined(SWIFT_PROTOCOL_EXTRA)
510
- # define SWIFT_PROTOCOL_EXTRA
608
+ # define SWIFT_PROTOCOL_EXTRA
511
609
  #endif
512
610
  #if !defined(SWIFT_ENUM_EXTRA)
513
- # define SWIFT_ENUM_EXTRA
611
+ # define SWIFT_ENUM_EXTRA
514
612
  #endif
515
613
  #if !defined(SWIFT_CLASS)
516
614
  # if __has_attribute(objc_subclassing_restricted)
@@ -530,28 +628,25 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
530
628
  # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
531
629
  # endif
532
630
  #endif
533
-
534
631
  #if !defined(SWIFT_PROTOCOL)
535
632
  # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
536
633
  # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
537
634
  #endif
538
-
539
635
  #if !defined(SWIFT_EXTENSION)
540
636
  # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
541
637
  #endif
542
-
543
638
  #if !defined(OBJC_DESIGNATED_INITIALIZER)
544
639
  # if __has_attribute(objc_designated_initializer)
545
640
  # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
546
641
  # else
547
- # define OBJC_DESIGNATED_INITIALIZER
642
+ # define OBJC_DESIGNATED_INITIALIZER
548
643
  # endif
549
644
  #endif
550
645
  #if !defined(SWIFT_ENUM_ATTR)
551
- # if defined(__has_attribute) && __has_attribute(enum_extensibility)
646
+ # if __has_attribute(enum_extensibility)
552
647
  # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
553
648
  # else
554
- # define SWIFT_ENUM_ATTR(_extensibility)
649
+ # define SWIFT_ENUM_ATTR(_extensibility)
555
650
  # endif
556
651
  #endif
557
652
  #if !defined(SWIFT_ENUM)
@@ -580,14 +675,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
580
675
  #if !defined(SWIFT_DEPRECATED_MSG)
581
676
  # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
582
677
  #endif
583
- #if __has_feature(attribute_diagnose_if_objc)
584
- # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
585
- #else
586
- # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
678
+ #if !defined(SWIFT_DEPRECATED_OBJC)
679
+ # if __has_feature(attribute_diagnose_if_objc)
680
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
681
+ # else
682
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
683
+ # endif
587
684
  #endif
588
685
  #if defined(__OBJC__)
589
686
  #if !defined(IBSegueAction)
590
- # define IBSegueAction
687
+ # define IBSegueAction
591
688
  #endif
592
689
  #endif
593
690
  #if !defined(SWIFT_EXTERN)
@@ -600,26 +697,31 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
600
697
  #if !defined(SWIFT_CALL)
601
698
  # define SWIFT_CALL __attribute__((swiftcall))
602
699
  #endif
700
+ #if !defined(SWIFT_INDIRECT_RESULT)
701
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
702
+ #endif
703
+ #if !defined(SWIFT_CONTEXT)
704
+ # define SWIFT_CONTEXT __attribute__((swift_context))
705
+ #endif
706
+ #if !defined(SWIFT_ERROR_RESULT)
707
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
708
+ #endif
603
709
  #if defined(__cplusplus)
604
- #if !defined(SWIFT_NOEXCEPT)
605
710
  # define SWIFT_NOEXCEPT noexcept
606
- #endif
607
711
  #else
608
- #if !defined(SWIFT_NOEXCEPT)
609
712
  # define SWIFT_NOEXCEPT
610
713
  #endif
714
+ #if defined(_WIN32)
715
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
716
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
611
717
  #endif
612
- #if defined(__cplusplus)
613
- #if !defined(SWIFT_CXX_INT_DEFINED)
614
- #define SWIFT_CXX_INT_DEFINED
615
- namespace swift {
616
- using Int = ptrdiff_t;
617
- using UInt = size_t;
618
- }
718
+ #else
719
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
720
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
619
721
  #endif
620
722
  #endif
621
723
  #if defined(__OBJC__)
622
- #if __has_feature(modules)
724
+ #if __has_feature(objc_modules)
623
725
  #if __has_warning("-Watimport-in-framework-header")
624
726
  #pragma clang diagnostic ignored "-Watimport-in-framework-header"
625
727
  #endif
@@ -674,17 +776,55 @@ SWIFT_CLASS_NAMED("CanvasGLKView")
674
776
  - (nonnull instancetype)initWithFrame:(CGRect)frame context:(EAGLContext * _Nonnull)context SWIFT_UNAVAILABLE;
675
777
  @end
676
778
 
677
-
678
- SWIFT_CLASS("_TtC12CanvasNative13CanvasHelpers")
679
- @interface CanvasHelpers : NSObject
779
+ @class UIImage;
780
+ @class NSMutableData;
781
+ @class NSString;
782
+ @class NSData;
783
+ @class NSError;
784
+
785
+ SWIFT_CLASS_NAMED("CanvasHelpers")
786
+ @interface NSSCanvasHelpers : NSObject
787
+ + (NSMutableData * _Nonnull)getBytesFromUIImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
788
+ + (int64_t)createPattern:(int64_t)context :(UIImage * _Nonnull)image :(NSString * _Nonnull)repetition SWIFT_WARN_UNUSED_RESULT;
789
+ + (BOOL)loadImageAssetWithContext:(int64_t)asset :(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
790
+ + (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy;
791
+ + (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image dx:(float)dx dy:(float)dy dw:(float)dw dh:(float)dh;
792
+ + (void)drawImageWithContext:(int64_t)context image:(UIImage * _Nonnull)image sx:(float)sx sy:(float)sy sw:(float)sw sh:(float)sh dx:(float)dx dy:(float)dy dw:(float)dw dh:(float)dh;
793
+ + (int64_t)initGLWithView:(int64_t)view :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
794
+ + (int64_t)initSharedGLWithView:(int64_t)view :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas :(int64_t)shared_context SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
795
+ + (int64_t)initGLWithWidthAndHeight:(int32_t)width :(int32_t)height :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
796
+ + (int64_t)initSharedGLWidthAndHeight:(int32_t)width :(int32_t)height :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)fail_if_major_performance_caveat :(NSString * _Nonnull)power_preference :(BOOL)premultiplied_alpha :(BOOL)preserve_drawing_buffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xr_compatible :(int32_t)version :(BOOL)is_canvas :(int64_t)shared_context SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
797
+ + (void)resize2DContext:(int64_t)context :(float)width :(float)height;
798
+ + (void)flush2DContext:(int64_t)context;
799
+ + (BOOL)flushGL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
800
+ + (void)releaseGL:(int64_t)context;
801
+ + (int64_t)getGLPointer:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
802
+ + (void)releaseGLPointer:(int64_t)context;
803
+ + (int64_t)create2DContext:(int64_t)context :(int32_t)width :(int32_t)height :(BOOL)alpha :(float)density :(int32_t)samples :(int32_t)font_color :(float)ppi :(int32_t)direction SWIFT_WARN_UNUSED_RESULT;
804
+ + (void)updateGLSurfaceWithView:(int64_t)view :(int32_t)width :(int32_t)height :(int64_t)context;
805
+ + (void)test2D:(int64_t)context;
806
+ + (NSString * _Nonnull)testToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
807
+ + (void)writeFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
808
+ + (void)readFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSString * _Nullable, NSData * _Nullable))callback;
809
+ + (void)deleteFile:(NSString * _Nonnull)path :(void (^ _Nonnull)(NSError * _Nullable, BOOL))callback;
810
+ + (void)handleBase64Image:(NSString * _Nonnull)mime :(NSString * _Nonnull)dir :(NSString * _Nonnull)base64 :(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))callback;
680
811
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
681
812
  @end
682
813
 
683
- @class NSString;
814
+
815
+ @interface GLKView (SWIFT_EXTENSION(CanvasNative))
816
+ - (void)snapshotWithData:(NSData * _Nonnull)data;
817
+ @end
818
+
819
+ @class NSMutableDictionary;
820
+ @class UIGestureRecognizer;
684
821
  @protocol NSCCanvasListener;
685
822
 
686
823
  SWIFT_CLASS_NAMED("NSCCanvas")
687
- @interface NSCCanvas : UIView
824
+ @interface NSCCanvas : UIView <GLKViewDelegate>
825
+ - (void)glkView:(GLKView * _Nonnull)view drawInRect:(CGRect)rect;
826
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSMutableDictionary * _Nonnull store;)
827
+ + (NSMutableDictionary * _Nonnull)store SWIFT_WARN_UNUSED_RESULT;
688
828
  + (NSMapTable<NSString *, NSCCanvas *> * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
689
829
  - (void * _Nonnull)getViewPtr SWIFT_WARN_UNUSED_RESULT;
690
830
  @property (nonatomic) BOOL ignorePixelScaling;
@@ -697,9 +837,11 @@ SWIFT_CLASS_NAMED("NSCCanvas")
697
837
  - (void)initContext:(NSString * _Nonnull)type :(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(NSString * _Nonnull)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible SWIFT_METHOD_FAMILY(none);
698
838
  - (int64_t)create2DContext:(BOOL)alpha :(BOOL)antialias :(BOOL)depth :(BOOL)failIfMajorPerformanceCaveat :(NSString * _Nonnull)powerPreference :(BOOL)premultipliedAlpha :(BOOL)preserveDrawingBuffer :(BOOL)stencil :(BOOL)desynchronized :(BOOL)xrCompatible :(int32_t)fontColor SWIFT_WARN_UNUSED_RESULT;
699
839
  - (void)forceLayout:(CGFloat)width :(CGFloat)height;
700
- - (void)render;
840
+ - (UIImage * _Nullable)snapshot:(BOOL)flip SWIFT_WARN_UNUSED_RESULT;
841
+ - (BOOL)render;
701
842
  - (void)context2DTest:(int64_t)context;
702
843
  - (NSString * _Nonnull)context2DTestToDataURL:(int64_t)context SWIFT_WARN_UNUSED_RESULT;
844
+ @property (nonatomic, copy) void (^ _Nullable touchEventListener)(NSString * _Nonnull, UIGestureRecognizer * _Nonnull);
703
845
  - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
704
846
  - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
705
847
  - (void)setListener:(id <NSCCanvasListener> _Nullable)listener;
@@ -718,7 +860,6 @@ SWIFT_CLASS_NAMED("NSCCanvasRenderingContext")
718
860
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
719
861
  @end
720
862
 
721
- @class UIImage;
722
863
 
723
864
  SWIFT_CLASS_NAMED("NSCCanvasRenderingContext2D")
724
865
  @interface NSCCanvasRenderingContext2D : NSCCanvasRenderingContext
@@ -762,6 +903,8 @@ SWIFT_CLASS_NAMED("NSCSVG")
762
903
  - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
763
904
  - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
764
905
  - (void)drawRect:(CGRect)rect;
906
+ - (UIImage * _Nullable)toImage SWIFT_WARN_UNUSED_RESULT;
907
+ - (NSData * _Nullable)toData SWIFT_WARN_UNUSED_RESULT;
765
908
  @end
766
909
 
767
910
  @class AVPlayer;
@@ -773,6 +916,7 @@ SWIFT_CLASS_NAMED("Utils")
773
916
  + (CVOpenGLESTextureRef _Nullable)createImage:(CVOpenGLESTextureCacheRef _Nonnull)texturecache :(CVImageBufferRef _Nonnull)buffer :(CFDictionaryRef _Nullable)textureAttributes :(GLenum)target :(GLint)internalFormat :(GLsizei)width :(GLsizei)height :(GLenum)format :(GLenum)type :(NSInteger)planeIndex SWIFT_WARN_UNUSED_RESULT;
774
917
  + (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
775
918
  + (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
919
+ + (BOOL)writeToFile:(NSData * _Nonnull)data :(NSString * _Nonnull)path error:(NSError * _Nullable * _Nullable)error;
776
920
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
777
921
  @end
778
922