@shopify/react-native-skia 1.11.8 → 1.11.9-next.1

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 (352) hide show
  1. package/android/CMakeLists.txt +30 -153
  2. package/android/build.gradle +1 -1
  3. package/cpp/skia/include/codec/SkCodec.h +7 -2
  4. package/cpp/skia/include/config/SkUserConfig.h +11 -0
  5. package/cpp/skia/include/core/SkCanvas.h +11 -7
  6. package/cpp/skia/include/core/SkColor.h +10 -0
  7. package/cpp/skia/include/core/SkColorSpace.h +184 -2
  8. package/cpp/skia/include/core/SkColorType.h +114 -32
  9. package/cpp/skia/include/core/SkFontScanner.h +5 -8
  10. package/cpp/skia/include/core/SkFontStyle.h +1 -1
  11. package/cpp/skia/include/core/SkMaskFilter.h +0 -8
  12. package/cpp/skia/include/core/SkMilestone.h +1 -1
  13. package/cpp/skia/include/core/SkPath.h +1 -1
  14. package/cpp/skia/include/core/SkRRect.h +3 -1
  15. package/cpp/skia/include/core/SkShader.h +3 -3
  16. package/cpp/skia/include/core/SkString.h +8 -8
  17. package/cpp/skia/include/core/SkSurface.h +14 -0
  18. package/cpp/skia/include/core/SkTypeface.h +24 -7
  19. package/cpp/skia/include/effects/SkGradientShader.h +6 -1
  20. package/cpp/skia/include/effects/SkRuntimeEffect.h +1 -0
  21. package/cpp/skia/include/encode/SkPngEncoder.h +14 -0
  22. package/cpp/skia/include/gpu/GpuTypes.h +9 -0
  23. package/cpp/skia/include/gpu/ganesh/GrContextOptions.h +135 -133
  24. package/cpp/skia/include/gpu/ganesh/GrDirectContext.h +5 -0
  25. package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkarounds.h +3 -3
  26. package/cpp/skia/include/gpu/ganesh/GrTypes.h +14 -9
  27. package/cpp/skia/include/gpu/graphite/Context.h +25 -2
  28. package/cpp/skia/include/gpu/graphite/ContextOptions.h +23 -5
  29. package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +20 -1
  30. package/cpp/skia/include/gpu/graphite/Image.h +1 -0
  31. package/cpp/skia/include/gpu/graphite/LogPriority.h +36 -0
  32. package/cpp/skia/include/gpu/graphite/PrecompileContext.h +52 -0
  33. package/cpp/skia/include/gpu/graphite/Recorder.h +6 -0
  34. package/cpp/skia/include/gpu/graphite/Recording.h +3 -1
  35. package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes.h +4 -36
  36. package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypesUtils.h +48 -0
  37. package/cpp/skia/include/gpu/graphite/precompile/Precompile.h +3 -2
  38. package/cpp/skia/include/pathops/SkPathOps.h +9 -1
  39. package/cpp/skia/include/ports/SkFontMgr_FontConfigInterface.h +3 -0
  40. package/cpp/skia/include/private/SkPathRef.h +15 -21
  41. package/cpp/skia/include/private/base/SkAttributes.h +16 -10
  42. package/cpp/skia/include/private/base/SkMutex.h +8 -0
  43. package/cpp/skia/include/private/base/SkTArray.h +1 -1
  44. package/cpp/skia/include/private/base/SkTDArray.h +1 -1
  45. package/cpp/skia/include/private/base/SkTemplates.h +24 -11
  46. package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +1 -1
  47. package/cpp/skia/include/sksl/SkSLDebugTrace.h +0 -3
  48. package/cpp/skia/modules/skcms/src/Transform_inl.h +20 -20
  49. package/cpp/skia/modules/skcms/src/skcms_Transform.h +4 -3
  50. package/cpp/skia/modules/skcms/src/skcms_public.h +19 -15
  51. package/cpp/skia/modules/skresources/include/SkResources.h +3 -1
  52. package/cpp/skia/modules/svg/include/SkSVGCircle.h +1 -1
  53. package/cpp/skia/modules/svg/include/SkSVGContainer.h +1 -1
  54. package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +1 -1
  55. package/cpp/skia/modules/svg/include/SkSVGImage.h +2 -2
  56. package/cpp/skia/modules/svg/include/SkSVGPath.h +1 -1
  57. package/cpp/skia/modules/svg/include/SkSVGPoly.h +1 -1
  58. package/cpp/skia/modules/svg/include/SkSVGRect.h +1 -1
  59. package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +2 -0
  60. package/cpp/skia/modules/svg/include/SkSVGShape.h +1 -0
  61. package/cpp/skia/modules/svg/include/SkSVGText.h +1 -1
  62. package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +4 -0
  63. package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
  64. package/cpp/skia/src/core/SkLRUCache.h +19 -13
  65. package/cpp/skia/src/core/SkTHash.h +50 -4
  66. package/cpp/skia/src/gpu/ganesh/gl/GrGLDefines.h +1 -0
  67. package/lib/commonjs/external/reanimated/textures.js +4 -3
  68. package/lib/commonjs/external/reanimated/textures.js.map +1 -1
  69. package/lib/commonjs/headless/index.d.ts +1 -1
  70. package/lib/commonjs/headless/index.js +2 -2
  71. package/lib/commonjs/headless/index.js.map +1 -1
  72. package/lib/commonjs/renderer/Canvas.d.ts +2 -2
  73. package/lib/commonjs/renderer/Canvas.js +10 -27
  74. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  75. package/lib/commonjs/renderer/Offscreen.d.ts +2 -2
  76. package/lib/commonjs/renderer/Offscreen.js +4 -4
  77. package/lib/commonjs/renderer/Offscreen.js.map +1 -1
  78. package/lib/commonjs/renderer/__tests__/setup.d.ts +5 -5
  79. package/lib/commonjs/sksg/Container.d.ts +3 -1
  80. package/lib/commonjs/sksg/Container.js +7 -1
  81. package/lib/commonjs/sksg/Container.js.map +1 -1
  82. package/lib/commonjs/sksg/HostConfig.d.ts +1 -1
  83. package/lib/commonjs/sksg/HostConfig.js +36 -6
  84. package/lib/commonjs/sksg/HostConfig.js.map +1 -1
  85. package/lib/commonjs/sksg/Reconciler.d.ts +3 -2
  86. package/lib/commonjs/sksg/Reconciler.js +16 -6
  87. package/lib/commonjs/sksg/Reconciler.js.map +1 -1
  88. package/lib/module/Platform/Platform.web.js +1 -1
  89. package/lib/module/Platform/Platform.web.js.map +1 -1
  90. package/lib/module/dom/nodes/datatypes/Circle.js +1 -2
  91. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  92. package/lib/module/dom/nodes/datatypes/Gradient.js +3 -3
  93. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
  94. package/lib/module/dom/nodes/datatypes/Rect.js +3 -5
  95. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  96. package/lib/module/external/reanimated/buffers.js +1 -2
  97. package/lib/module/external/reanimated/buffers.js.map +1 -1
  98. package/lib/module/external/reanimated/textures.js +5 -4
  99. package/lib/module/external/reanimated/textures.js.map +1 -1
  100. package/lib/module/external/reanimated/useAnimatedImageValue.js +1 -1
  101. package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
  102. package/lib/module/external/reanimated/useVideo.js +10 -23
  103. package/lib/module/external/reanimated/useVideo.js.map +1 -1
  104. package/lib/module/headless/index.d.ts +1 -1
  105. package/lib/module/headless/index.js +2 -2
  106. package/lib/module/headless/index.js.map +1 -1
  107. package/lib/module/renderer/Canvas.d.ts +2 -2
  108. package/lib/module/renderer/Canvas.js +9 -27
  109. package/lib/module/renderer/Canvas.js.map +1 -1
  110. package/lib/module/renderer/Offscreen.d.ts +2 -2
  111. package/lib/module/renderer/Offscreen.js +4 -4
  112. package/lib/module/renderer/Offscreen.js.map +1 -1
  113. package/lib/module/renderer/__tests__/setup.d.ts +5 -5
  114. package/lib/module/skia/core/Vector.js +1 -1
  115. package/lib/module/skia/core/Vector.js.map +1 -1
  116. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js +1 -4
  117. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -1
  118. package/lib/module/skia/web/Host.js +1 -7
  119. package/lib/module/skia/web/Host.js.map +1 -1
  120. package/lib/module/skia/web/JsiSkAnimatedImage.js +3 -6
  121. package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
  122. package/lib/module/skia/web/JsiSkCanvas.js +3 -6
  123. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  124. package/lib/module/skia/web/JsiSkColorFilter.js +3 -6
  125. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  126. package/lib/module/skia/web/JsiSkContourMeasure.js +3 -6
  127. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  128. package/lib/module/skia/web/JsiSkContourMeasureIter.js +3 -6
  129. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  130. package/lib/module/skia/web/JsiSkData.js +3 -6
  131. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  132. package/lib/module/skia/web/JsiSkFont.js +3 -6
  133. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  134. package/lib/module/skia/web/JsiSkImage.js +8 -12
  135. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  136. package/lib/module/skia/web/JsiSkImageFilter.js +3 -6
  137. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  138. package/lib/module/skia/web/JsiSkMaskFilter.js +3 -6
  139. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  140. package/lib/module/skia/web/JsiSkMatrix.js +5 -8
  141. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  142. package/lib/module/skia/web/JsiSkPaint.js +3 -6
  143. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  144. package/lib/module/skia/web/JsiSkParagraphBuilder.js +2 -3
  145. package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  146. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +1 -1
  147. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  148. package/lib/module/skia/web/JsiSkParagraphStyle.js +15 -15
  149. package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
  150. package/lib/module/skia/web/JsiSkPath.js +3 -6
  151. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  152. package/lib/module/skia/web/JsiSkPathEffect.js +3 -6
  153. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  154. package/lib/module/skia/web/JsiSkPicture.js +3 -6
  155. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  156. package/lib/module/skia/web/JsiSkPictureRecorder.js +3 -6
  157. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  158. package/lib/module/skia/web/JsiSkPoint.js +3 -6
  159. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  160. package/lib/module/skia/web/JsiSkRRect.js +3 -6
  161. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  162. package/lib/module/skia/web/JsiSkRSXform.js +3 -6
  163. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  164. package/lib/module/skia/web/JsiSkRect.js +3 -6
  165. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  166. package/lib/module/skia/web/JsiSkRuntimeEffect.js +3 -6
  167. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  168. package/lib/module/skia/web/JsiSkSVG.js +5 -8
  169. package/lib/module/skia/web/JsiSkSVG.js.map +1 -1
  170. package/lib/module/skia/web/JsiSkShader.js +3 -6
  171. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  172. package/lib/module/skia/web/JsiSkSurface.js +3 -6
  173. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  174. package/lib/module/skia/web/JsiSkTextBlob.js +3 -6
  175. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  176. package/lib/module/skia/web/JsiSkTypeface.js +3 -6
  177. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  178. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +1 -4
  179. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  180. package/lib/module/skia/web/JsiSkVertices.js +3 -6
  181. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  182. package/lib/module/skia/web/JsiVideo.js +2 -5
  183. package/lib/module/skia/web/JsiVideo.js.map +1 -1
  184. package/lib/module/sksg/Container.d.ts +3 -1
  185. package/lib/module/sksg/Container.js +11 -8
  186. package/lib/module/sksg/Container.js.map +1 -1
  187. package/lib/module/sksg/HostConfig.d.ts +1 -1
  188. package/lib/module/sksg/HostConfig.js +36 -7
  189. package/lib/module/sksg/HostConfig.js.map +1 -1
  190. package/lib/module/sksg/Reconciler.d.ts +3 -2
  191. package/lib/module/sksg/Reconciler.js +16 -11
  192. package/lib/module/sksg/Reconciler.js.map +1 -1
  193. package/lib/module/sksg/Recorder/ReanimatedRecorder.js +1 -5
  194. package/lib/module/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
  195. package/lib/module/sksg/Recorder/Recorder.js +3 -6
  196. package/lib/module/sksg/Recorder/Recorder.js.map +1 -1
  197. package/lib/module/sksg/Recorder/Visitor.js +1 -1
  198. package/lib/module/sksg/Recorder/Visitor.js.map +1 -1
  199. package/lib/module/sksg/Recorder/commands/Drawing.js +2 -4
  200. package/lib/module/sksg/Recorder/commands/Drawing.js.map +1 -1
  201. package/lib/module/sksg/Recorder/commands/Shaders.js +2 -3
  202. package/lib/module/sksg/Recorder/commands/Shaders.js.map +1 -1
  203. package/lib/module/views/SkiaBaseWebView.js +9 -12
  204. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  205. package/lib/module/views/SkiaPictureView.js +1 -5
  206. package/lib/module/views/SkiaPictureView.js.map +1 -1
  207. package/lib/module/views/SkiaPictureView.web.js +1 -4
  208. package/lib/module/views/SkiaPictureView.web.js.map +1 -1
  209. package/lib/module/web/LoadSkiaWeb.js +1 -2
  210. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  211. package/lib/module/web/WithSkiaWeb.js +1 -1
  212. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  213. package/lib/typescript/lib/commonjs/headless/index.d.ts +1 -1
  214. package/lib/typescript/lib/commonjs/renderer/Canvas.d.ts +9 -1
  215. package/lib/typescript/lib/commonjs/renderer/Offscreen.d.ts +2 -2
  216. package/lib/typescript/lib/commonjs/sksg/Container.d.ts +3 -0
  217. package/lib/typescript/lib/commonjs/sksg/HostConfig.d.ts +21 -4
  218. package/lib/typescript/lib/commonjs/sksg/Reconciler.d.ts +9 -2
  219. package/lib/typescript/lib/module/headless/index.d.ts +1 -1
  220. package/lib/typescript/lib/module/renderer/Canvas.d.ts +9 -1
  221. package/lib/typescript/lib/module/renderer/Offscreen.d.ts +2 -2
  222. package/lib/typescript/lib/module/skia/web/CanvasKitWebGLBufferImpl.d.ts +2 -2
  223. package/lib/typescript/lib/module/skia/web/JsiSkAnimatedImage.d.ts +1 -0
  224. package/lib/typescript/lib/module/skia/web/JsiSkCanvas.d.ts +1 -0
  225. package/lib/typescript/lib/module/skia/web/JsiSkColorFilter.d.ts +1 -0
  226. package/lib/typescript/lib/module/skia/web/JsiSkContourMeasure.d.ts +1 -0
  227. package/lib/typescript/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +1 -0
  228. package/lib/typescript/lib/module/skia/web/JsiSkData.d.ts +1 -0
  229. package/lib/typescript/lib/module/skia/web/JsiSkFont.d.ts +1 -0
  230. package/lib/typescript/lib/module/skia/web/JsiSkImage.d.ts +1 -0
  231. package/lib/typescript/lib/module/skia/web/JsiSkImageFilter.d.ts +1 -0
  232. package/lib/typescript/lib/module/skia/web/JsiSkMaskFilter.d.ts +1 -0
  233. package/lib/typescript/lib/module/skia/web/JsiSkMatrix.d.ts +1 -0
  234. package/lib/typescript/lib/module/skia/web/JsiSkPaint.d.ts +1 -0
  235. package/lib/typescript/lib/module/skia/web/JsiSkPath.d.ts +1 -0
  236. package/lib/typescript/lib/module/skia/web/JsiSkPathEffect.d.ts +1 -0
  237. package/lib/typescript/lib/module/skia/web/JsiSkPicture.d.ts +1 -0
  238. package/lib/typescript/lib/module/skia/web/JsiSkPictureRecorder.d.ts +1 -0
  239. package/lib/typescript/lib/module/skia/web/JsiSkPoint.d.ts +1 -0
  240. package/lib/typescript/lib/module/skia/web/JsiSkRRect.d.ts +1 -0
  241. package/lib/typescript/lib/module/skia/web/JsiSkRSXform.d.ts +1 -0
  242. package/lib/typescript/lib/module/skia/web/JsiSkRect.d.ts +1 -0
  243. package/lib/typescript/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +1 -0
  244. package/lib/typescript/lib/module/skia/web/JsiSkSVG.d.ts +1 -0
  245. package/lib/typescript/lib/module/skia/web/JsiSkShader.d.ts +1 -0
  246. package/lib/typescript/lib/module/skia/web/JsiSkSurface.d.ts +1 -0
  247. package/lib/typescript/lib/module/skia/web/JsiSkTextBlob.d.ts +1 -0
  248. package/lib/typescript/lib/module/skia/web/JsiSkTypeface.d.ts +1 -0
  249. package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFontProvider.d.ts +1 -0
  250. package/lib/typescript/lib/module/skia/web/JsiSkVertices.d.ts +1 -0
  251. package/lib/typescript/lib/module/skia/web/JsiVideo.d.ts +2 -2
  252. package/lib/typescript/lib/module/sksg/Container.d.ts +7 -12
  253. package/lib/typescript/lib/module/sksg/HostConfig.d.ts +20 -4
  254. package/lib/typescript/lib/module/sksg/Reconciler.d.ts +18 -17
  255. package/lib/typescript/lib/module/sksg/Recorder/ReanimatedRecorder.d.ts +1 -0
  256. package/lib/typescript/lib/module/sksg/Recorder/Recorder.d.ts +5 -2
  257. package/lib/typescript/lib/module/views/SkiaBaseWebView.d.ts +12 -11
  258. package/lib/typescript/lib/module/views/SkiaPictureView.d.ts +2 -2
  259. package/lib/typescript/lib/module/views/SkiaPictureView.web.d.ts +1 -1
  260. package/lib/typescript/src/headless/index.d.ts +1 -1
  261. package/lib/typescript/src/renderer/Canvas.d.ts +2 -2
  262. package/lib/typescript/src/renderer/Offscreen.d.ts +2 -2
  263. package/lib/typescript/src/renderer/__tests__/setup.d.ts +5 -5
  264. package/lib/typescript/src/sksg/Container.d.ts +3 -1
  265. package/lib/typescript/src/sksg/HostConfig.d.ts +1 -1
  266. package/lib/typescript/src/sksg/Reconciler.d.ts +3 -2
  267. package/libs/apple/libskia.xcframework/Info.plist +15 -15
  268. package/libs/apple/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
  269. package/libs/apple/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
  270. package/libs/apple/libskia.xcframework/macos-arm64_x86_64/libskia.a +0 -0
  271. package/libs/apple/libskia.xcframework/tvos-arm64_arm64e/libskia.a +0 -0
  272. package/libs/apple/libskia.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
  273. package/libs/apple/libskottie.xcframework/Info.plist +8 -8
  274. package/libs/apple/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
  275. package/libs/apple/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
  276. package/libs/apple/libskottie.xcframework/macos-arm64_x86_64/libskottie.a +0 -0
  277. package/libs/apple/libskottie.xcframework/tvos-arm64_arm64e/libskottie.a +0 -0
  278. package/libs/apple/libskottie.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
  279. package/libs/apple/libskparagraph.xcframework/Info.plist +7 -7
  280. package/libs/apple/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
  281. package/libs/apple/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
  282. package/libs/apple/libskparagraph.xcframework/macos-arm64_x86_64/libskparagraph.a +0 -0
  283. package/libs/apple/libskparagraph.xcframework/tvos-arm64_arm64e/libskparagraph.a +0 -0
  284. package/libs/apple/libskparagraph.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
  285. package/libs/apple/libsksg.xcframework/Info.plist +12 -12
  286. package/libs/apple/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
  287. package/libs/apple/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
  288. package/libs/apple/libsksg.xcframework/macos-arm64_x86_64/libsksg.a +0 -0
  289. package/libs/apple/libsksg.xcframework/tvos-arm64_arm64e/libsksg.a +0 -0
  290. package/libs/apple/libsksg.xcframework/tvos-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
  291. package/libs/apple/libskshaper.xcframework/Info.plist +14 -14
  292. package/libs/apple/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
  293. package/libs/apple/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
  294. package/libs/apple/libskshaper.xcframework/macos-arm64_x86_64/libskshaper.a +0 -0
  295. package/libs/apple/libskshaper.xcframework/tvos-arm64_arm64e/libskshaper.a +0 -0
  296. package/libs/apple/libskshaper.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
  297. package/libs/apple/libskunicode_core.xcframework/Info.plist +14 -14
  298. package/libs/apple/libskunicode_core.xcframework/ios-arm64_arm64e/libskunicode_core.a +0 -0
  299. package/libs/apple/libskunicode_core.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode_core.a +0 -0
  300. package/libs/apple/libskunicode_core.xcframework/macos-arm64_x86_64/libskunicode_core.a +0 -0
  301. package/libs/apple/libskunicode_core.xcframework/tvos-arm64_arm64e/libskunicode_core.a +0 -0
  302. package/libs/apple/libskunicode_core.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskunicode_core.a +0 -0
  303. package/libs/apple/libskunicode_libgrapheme.xcframework/Info.plist +13 -13
  304. package/libs/apple/libskunicode_libgrapheme.xcframework/ios-arm64_arm64e/libskunicode_libgrapheme.a +0 -0
  305. package/libs/apple/libskunicode_libgrapheme.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode_libgrapheme.a +0 -0
  306. package/libs/apple/libskunicode_libgrapheme.xcframework/macos-arm64_x86_64/libskunicode_libgrapheme.a +0 -0
  307. package/libs/apple/libskunicode_libgrapheme.xcframework/tvos-arm64_arm64e/libskunicode_libgrapheme.a +0 -0
  308. package/libs/apple/libskunicode_libgrapheme.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskunicode_libgrapheme.a +0 -0
  309. package/libs/apple/libsvg.xcframework/Info.plist +11 -11
  310. package/libs/apple/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
  311. package/libs/apple/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
  312. package/libs/apple/libsvg.xcframework/macos-arm64_x86_64/libsvg.a +0 -0
  313. package/libs/apple/libsvg.xcframework/tvos-arm64_arm64e/libsvg.a +0 -0
  314. package/libs/apple/libsvg.xcframework/tvos-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
  315. package/package.json +10 -9
  316. package/src/external/reanimated/textures.tsx +5 -4
  317. package/src/headless/index.ts +2 -2
  318. package/src/renderer/Canvas.tsx +57 -80
  319. package/src/renderer/Offscreen.tsx +4 -4
  320. package/src/renderer/__tests__/Data.spec.tsx +9 -10
  321. package/src/renderer/__tests__/Drawings.spec.tsx +11 -11
  322. package/src/renderer/__tests__/FitBox.spec.tsx +10 -10
  323. package/src/renderer/__tests__/Glyphs.spec.tsx +2 -2
  324. package/src/renderer/__tests__/Image.spec.tsx +2 -2
  325. package/src/renderer/__tests__/Paths.spec.tsx +8 -8
  326. package/src/renderer/__tests__/Picture.spec.tsx +10 -12
  327. package/src/renderer/__tests__/Simple.spec.tsx +6 -6
  328. package/src/renderer/__tests__/Surfaces.spec.tsx +2 -2
  329. package/src/renderer/__tests__/Text.spec.tsx +12 -12
  330. package/src/renderer/__tests__/Transform.spec.tsx +8 -8
  331. package/src/renderer/__tests__/documentation/Group.spec.tsx +12 -12
  332. package/src/renderer/__tests__/documentation/getting-started/HelloWorld.spec.tsx +2 -2
  333. package/src/renderer/__tests__/documentation/paint/Overview.spec.tsx +8 -8
  334. package/src/renderer/__tests__/documentation/shapes/Box.spec.tsx +4 -4
  335. package/src/renderer/__tests__/e2e/Atlas.spec.tsx +3 -3
  336. package/src/renderer/__tests__/e2e/Offscreen.spec.tsx +1 -1
  337. package/src/renderer/__tests__/examples/BlendModes.spec.tsx +4 -4
  338. package/src/renderer/__tests__/setup.tsx +13 -13
  339. package/src/sksg/Container.ts +9 -1
  340. package/src/sksg/HostConfig.ts +37 -7
  341. package/src/sksg/Reconciler.ts +17 -6
  342. package/src/sksg/__tests__/Simple.spec.tsx +8 -8
  343. package/lib/commonjs/sksg/HostConfig2.d.ts +0 -19
  344. package/lib/commonjs/sksg/HostConfig2.js +0 -159
  345. package/lib/commonjs/sksg/HostConfig2.js.map +0 -1
  346. package/lib/module/sksg/HostConfig2.d.ts +0 -19
  347. package/lib/module/sksg/HostConfig2.js +0 -152
  348. package/lib/module/sksg/HostConfig2.js.map +0 -1
  349. package/lib/typescript/lib/commonjs/sksg/HostConfig2.d.ts +0 -44
  350. package/lib/typescript/lib/module/sksg/HostConfig2.d.ts +0 -43
  351. package/lib/typescript/src/sksg/HostConfig2.d.ts +0 -19
  352. package/src/sksg/HostConfig2.ts +0 -247
@@ -3,4 +3,4 @@ export function makeOffscreenSurface(width: any, height: any): any;
3
3
  export function getSkiaExports(): {
4
4
  Skia: any;
5
5
  };
6
- export function drawOffscreen(surface: any, element: any): any;
6
+ export function drawOffscreen(surface: any, element: any): Promise<any>;
@@ -1,3 +1,11 @@
1
1
  export function useCanvasRef(): React.MutableRefObject<null>;
2
- export const Canvas: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
2
+ export function Canvas({ debug, opaque, children, onSize, onLayout: _onLayout, ref, ...viewProps }: {
3
+ [x: string]: any;
4
+ debug: any;
5
+ opaque: any;
6
+ children: any;
7
+ onSize: any;
8
+ onLayout: any;
9
+ ref: any;
10
+ }): React.CElement<object, React.Component<object, {}, any> & import("react-native").NativeMethods>;
3
11
  import React from "react";
@@ -1,4 +1,4 @@
1
1
  export function isOnMainThread(): boolean;
2
- export function drawAsPicture(element: any, bounds: any): import("../../..").SkPicture;
3
- export function drawAsImage(element: any, size: any): import("../../..").SkImage;
2
+ export function drawAsPicture(element: any, bounds: any): Promise<import("../../..").SkPicture>;
3
+ export function drawAsImage(element: any, size: any): Promise<import("../../..").SkImage>;
4
4
  export function drawAsImageFromPicture(picture: any, size: any): import("../../..").SkImage;
@@ -1,8 +1,8 @@
1
1
  export class CanvasKitWebGLBufferImpl extends CanvasKitWebGLBuffer {
2
2
  constructor(surface: any, source: any);
3
+ image: null;
3
4
  surface: any;
4
5
  source: any;
5
- toImage(): any;
6
- image: any;
6
+ toImage(): never;
7
7
  }
8
8
  import { CanvasKitWebGLBuffer } from "../types";
@@ -4,6 +4,7 @@ export class JsiSkAnimatedImage extends HostObject {
4
4
  currentFrameDuration(): any;
5
5
  getFrameCount(): any;
6
6
  getCurrentFrame(): JsiSkImage | null;
7
+ dispose: () => void;
7
8
  }
8
9
  import { HostObject } from "./Host";
9
10
  import { JsiSkImage } from "./JsiSkImage";
@@ -1,5 +1,6 @@
1
1
  export class JsiSkCanvas extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  drawRect(rect: any, paint: any): void;
4
5
  drawImage(image: any, x: any, y: any, paint: any): void;
5
6
  drawImageRect(img: any, src: any, dest: any, paint: any, fastSample: any): void;
@@ -1,4 +1,5 @@
1
1
  export class JsiSkColorFilter extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  }
4
5
  import { HostObject } from "./Host";
@@ -4,6 +4,7 @@ export class JsiSkContourMeasure extends HostObject {
4
4
  getSegment(startD: any, stopD: any, startWithMoveTo: any): JsiSkPath;
5
5
  isClosed(): any;
6
6
  length(): any;
7
+ dispose: () => void;
7
8
  }
8
9
  import { HostObject } from "./Host";
9
10
  import { JsiSkPoint } from "./JsiSkPoint";
@@ -1,6 +1,7 @@
1
1
  export class JsiSkContourMeasureIter extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
3
  next(): JsiSkContourMeasure | null;
4
+ dispose: () => void;
4
5
  }
5
6
  import { HostObject } from "./Host";
6
7
  import { JsiSkContourMeasure } from "./JsiSkContourMeasure";
@@ -1,4 +1,5 @@
1
1
  export class JsiSkData extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  }
4
5
  import { HostObject } from "./Host";
@@ -1,6 +1,7 @@
1
1
  export class JsiSkFont extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
3
  measureText(_text: any, _paint: any): void;
4
+ dispose: () => void;
4
5
  getTextWidth(text: any, paint: any): any;
5
6
  getMetrics(): {
6
7
  ascent: any;
@@ -14,6 +14,7 @@ export class JsiSkImage extends HostObject {
14
14
  encodeToBytes(fmt: any, quality: any): any;
15
15
  encodeToBase64(fmt: any, quality: any): string;
16
16
  readPixels(srcX: any, srcY: any, imageInfo: any): any;
17
+ dispose: () => void;
17
18
  makeNonTextureImage(): JsiSkImage;
18
19
  getNativeTextureUnstable(): null;
19
20
  }
@@ -1,4 +1,5 @@
1
1
  export class JsiSkImageFilter extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  }
4
5
  import { HostObject } from "./Host";
@@ -1,4 +1,5 @@
1
1
  export class JsiSkMaskFilter extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  }
4
5
  import { HostObject } from "./Host";
@@ -2,6 +2,7 @@ export class JsiSkMatrix extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
3
  preMultiply(matrix: any): void;
4
4
  postMultiply(matrix: any): void;
5
+ dispose: () => void;
5
6
  concat(matrix: any): this;
6
7
  translate(x: any, y: any): this;
7
8
  postTranslate(x: any, y: any): this;
@@ -1,5 +1,6 @@
1
1
  export class JsiSkPaint extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  copy(): JsiSkPaint;
4
5
  assign(paint: any): void;
5
6
  reset(): void;
@@ -1,5 +1,6 @@
1
1
  export class JsiSkPath extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  addPath(src: any, matrix: any, extend?: boolean): this;
4
5
  addArc(oval: any, startAngleInDegrees: any, sweepAngleInDegrees: any): this;
5
6
  addOval(oval: any, isCCW: any, startIndex: any): this;
@@ -1,4 +1,5 @@
1
1
  export class JsiSkPathEffect extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  }
4
5
  import { HostObject } from "./Host";
@@ -1,5 +1,6 @@
1
1
  export class JsiSkPicture extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  makeShader(tmx: any, tmy: any, mode: any, localMatrix: any, tileRect: any): JsiSkShader;
4
5
  serialize(): any;
5
6
  }
@@ -1,5 +1,6 @@
1
1
  export class JsiSkPictureRecorder extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  beginRecording(bounds: any): JsiSkCanvas;
4
5
  finishRecordingAsPicture(): JsiSkPicture;
5
6
  }
@@ -1,6 +1,7 @@
1
1
  export class JsiSkPoint extends BaseHostObject {
2
2
  static fromValue(point: any): any;
3
3
  constructor(CanvasKit: any, ref: any);
4
+ dispose: () => void;
4
5
  get x(): any;
5
6
  get y(): any;
6
7
  }
@@ -1,6 +1,7 @@
1
1
  export class JsiSkRRect extends BaseHostObject {
2
2
  static fromValue(CanvasKit: any, rect: any): any;
3
3
  constructor(CanvasKit: any, rect: any, rx: any, ry: any);
4
+ dispose: () => void;
4
5
  get rx(): any;
5
6
  get ry(): any;
6
7
  get rect(): JsiSkRect;
@@ -6,5 +6,6 @@ export class JsiSkRSXform extends BaseHostObject {
6
6
  get ssin(): any;
7
7
  get tx(): any;
8
8
  get ty(): any;
9
+ dispose: () => void;
9
10
  }
10
11
  import { BaseHostObject } from "./Host";
@@ -1,6 +1,7 @@
1
1
  export class JsiSkRect extends BaseHostObject {
2
2
  static fromValue(CanvasKit: any, rect: any): any;
3
3
  constructor(CanvasKit: any, ref: any);
4
+ dispose: () => void;
4
5
  setXYWH(x: any, y: any, width: any, height: any): void;
5
6
  get x(): any;
6
7
  get y(): any;
@@ -1,5 +1,6 @@
1
1
  export class JsiSkRuntimeEffect extends HostObject {
2
2
  sksl: any;
3
+ dispose: () => void;
3
4
  source(): any;
4
5
  makeShader(uniforms: any, localMatrix: any): JsiSkShader;
5
6
  makeShaderWithChildren(uniforms: any, children: any, localMatrix: any): JsiSkShader;
@@ -2,5 +2,6 @@ export class JsiSkSVG extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
3
  width(): any;
4
4
  height(): any;
5
+ dispose: () => void;
5
6
  }
6
7
  import { HostObject } from "./Host";
@@ -1,4 +1,5 @@
1
1
  export class JsiSkShader extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  }
4
5
  import { HostObject } from "./Host";
@@ -1,5 +1,6 @@
1
1
  export class JsiSkSurface extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  flush(): void;
4
5
  width(): any;
5
6
  height(): any;
@@ -1,4 +1,5 @@
1
1
  export class JsiSkTextBlob extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  }
4
5
  import { HostObject } from "./Host";
@@ -3,5 +3,6 @@ export class JsiSkTypeface extends HostObject {
3
3
  get bold(): boolean;
4
4
  get italic(): boolean;
5
5
  getGlyphIDs(str: any, numCodePoints: any): any[];
6
+ dispose: () => void;
6
7
  }
7
8
  import { HostObject } from "./Host";
@@ -1,5 +1,6 @@
1
1
  export class JsiSkTypefaceFontProvider extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ allocatedPointers: any[];
3
4
  matchFamilyStyle(_name: any, _style: any): void;
4
5
  countFamilies(): any;
5
6
  getFamilyName(index: any): any;
@@ -1,5 +1,6 @@
1
1
  export class JsiSkVertices extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
+ dispose: () => void;
3
4
  bounds(): JsiSkRect;
4
5
  uniqueID(): any;
5
6
  }
@@ -1,12 +1,13 @@
1
1
  export function createVideo(CanvasKit: any, url: any): Promise<any>;
2
2
  export class JsiVideo {
3
3
  constructor(ImageFactory: any, videoElement: any);
4
+ __typename__: string;
5
+ webglBuffer: null;
4
6
  ImageFactory: any;
5
7
  videoElement: any;
6
8
  duration(): number;
7
9
  framerate(): void;
8
10
  setSurface(surface: any): void;
9
- webglBuffer: CanvasKitWebGLBufferImpl | undefined;
10
11
  nextImage(): any;
11
12
  seek(time: any): void;
12
13
  rotation(): number;
@@ -19,4 +20,3 @@ export class JsiVideo {
19
20
  setVolume(volume: any): void;
20
21
  dispose(): void;
21
22
  }
22
- import { CanvasKitWebGLBufferImpl } from "./CanvasKitWebGLBufferImpl";
@@ -1,30 +1,25 @@
1
1
  export class Container {
2
2
  constructor(Skia: any, nativeId: any);
3
+ _root: any[];
4
+ recording: null;
5
+ unmounted: boolean;
3
6
  Skia: any;
4
7
  nativeId: any;
8
+ set root(value: any[]);
9
+ get root(): any[];
5
10
  unmount(): void;
6
- unmounted: boolean | undefined;
7
11
  drawOnCanvas(canvas: any): void;
8
12
  }
9
13
  export function createContainer(Skia: any, nativeId: any): StaticContainer | ReanimatedContainer | NativeReanimatedContainer;
10
14
  declare class StaticContainer extends Container {
11
15
  redraw(): void;
12
- recording: {
13
- commands: any;
14
- paintPool: never[];
15
- animationValues: any;
16
- } | undefined;
17
16
  }
18
17
  declare class ReanimatedContainer extends Container {
18
+ mapperId: null;
19
19
  redraw(): void;
20
- recording: {
21
- commands: any;
22
- paintPool: never[];
23
- } | undefined;
24
- mapperId: any;
25
20
  }
26
21
  declare class NativeReanimatedContainer extends Container {
22
+ mapperId: null;
27
23
  redraw(): void;
28
- mapperId: any;
29
24
  }
30
25
  export {};
@@ -7,8 +7,8 @@ export namespace sksgHostConfig {
7
7
  let scheduleTimeout: typeof setTimeout;
8
8
  let cancelTimeout: typeof clearTimeout;
9
9
  let noTimeout: number;
10
- function getRootHostContext(_rootContainerInstance: any): null;
11
- function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): null;
10
+ function getRootHostContext(_rootContainerInstance: any): {};
11
+ function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): {};
12
12
  function shouldSetTextContent(_type: any, _props: any): boolean;
13
13
  function createTextInstance(_text: any, _rootContainerInstance: any, _hostContext: any, _internalInstanceHandle: any): never;
14
14
  function createInstance(type: any, propsWithChildren: any, _container: any, _hostContext: any, _internalInstanceHandle: any): {
@@ -20,13 +20,13 @@ export namespace sksgHostConfig {
20
20
  function finalizeInitialChildren(parentInstance: any, _type: any, _props: any, _rootContainerInstance: any, _hostContext: any): boolean;
21
21
  function commitMount(): void;
22
22
  function prepareForCommit(_container: any): null;
23
- function resetAfterCommit(container: any): void;
23
+ function resetAfterCommit(_container: any): void;
24
24
  function getPublicInstance(node: any): any;
25
25
  function commitTextUpdate(_textInstance: any, _oldText: any, _newText: any): void;
26
26
  function clearContainer(_container: any): void;
27
27
  function prepareUpdate(_instance: any, _type: any, oldProps: any, newProps: any, container: any, _hostContext: any): any;
28
28
  function preparePortalMount(): void;
29
- function cloneInstance(instance: any, _updatePayload: any, _type: any, _oldProps: any, newProps: any, _internalInstanceHandle: any, keepChildren: any, _recyclableInstance: any): {
29
+ function cloneInstance(instance: any, _type: any, _oldProps: any, newProps: any, _updatePayload: any, _internalInstanceHandle: any, keepChildren: any, _recyclableInstance: any): {
30
30
  type: any;
31
31
  props: any;
32
32
  children: any[];
@@ -44,4 +44,20 @@ export namespace sksgHostConfig {
44
44
  function getInstanceFromNode(_node: any): never;
45
45
  function prepareScopeUpdate(_scopeInstance: any, _instance: any): never;
46
46
  function getInstanceFromScope(_scopeInstance: any): never;
47
+ function shouldAttemptEagerTransition(): boolean;
48
+ function trackSchedulerEvent(): void;
49
+ function resolveEventType(): null;
50
+ function resolveEventTimeStamp(): number;
51
+ function requestPostPaintCallback(): void;
52
+ function maySuspendCommit(): boolean;
53
+ function preloadInstance(): boolean;
54
+ function startSuspendingCommit(): void;
55
+ function suspendInstance(): void;
56
+ function waitForCommitToBeReady(): null;
57
+ let NotPendingTransition: null;
58
+ let HostTransitionContext: import("react").Context<null>;
59
+ function setCurrentUpdatePriority(newPriority: any): void;
60
+ function getCurrentUpdatePriority(): number;
61
+ function resolveUpdatePriority(): number;
62
+ function resetFormInstance(): void;
47
63
  }
@@ -3,46 +3,47 @@ export class SkiaSGRoot {
3
3
  Skia: any;
4
4
  container: {
5
5
  redraw(): void;
6
- recording: {
7
- commands: any;
8
- paintPool: never[];
9
- animationValues: any;
10
- } | undefined;
6
+ recording: null;
7
+ _root: any[];
8
+ unmounted: boolean;
11
9
  Skia: any;
12
10
  nativeId: any;
11
+ root: any[];
13
12
  unmount(): void;
14
- unmounted: boolean | undefined;
15
13
  drawOnCanvas(canvas: any): void;
16
14
  } | {
15
+ mapperId: null;
17
16
  redraw(): void;
18
- recording: {
19
- commands: any;
20
- paintPool: never[];
21
- } | undefined;
22
- mapperId: any;
17
+ recording: null;
18
+ _root: any[];
19
+ unmounted: boolean;
23
20
  Skia: any;
24
21
  nativeId: any;
22
+ root: any[];
25
23
  unmount(): void;
26
- unmounted: boolean | undefined;
27
24
  drawOnCanvas(canvas: any): void;
28
25
  } | {
26
+ mapperId: null;
29
27
  redraw(): void;
30
- mapperId: any;
28
+ _root: any[];
29
+ recording: null;
30
+ unmounted: boolean;
31
31
  Skia: any;
32
32
  nativeId: any;
33
+ root: any[];
33
34
  unmount(): void;
34
- unmounted: boolean | undefined;
35
35
  drawOnCanvas(canvas: any): void;
36
36
  };
37
37
  root: any;
38
38
  get sg(): {
39
39
  type: any;
40
40
  props: {};
41
- children: any;
41
+ children: any[];
42
42
  isDeclaration: boolean;
43
43
  };
44
- render(element: any): void;
44
+ updateContainer(element: any): Promise<any>;
45
+ render(element: any): Promise<void>;
45
46
  drawOnCanvas(canvas: any): void;
46
47
  getPicture(): any;
47
- unmount(): void;
48
+ unmount(): Promise<any>;
48
49
  }
@@ -1,5 +1,6 @@
1
1
  export class ReanimatedRecorder {
2
2
  constructor(Skia: any);
3
+ values: Set<any>;
3
4
  recorder: any;
4
5
  processAnimationValues(props: any): void;
5
6
  getRecorder(): any;
@@ -1,8 +1,11 @@
1
1
  export class Recorder {
2
+ commands: any[];
3
+ cursors: any[];
4
+ animationValues: Set<any>;
2
5
  getRecording(): {
3
- commands: any;
6
+ commands: any[];
4
7
  paintPool: never[];
5
- animationValues: any;
8
+ animationValues: Set<any>;
6
9
  };
7
10
  processProps(props: any): {
8
11
  props: any;
@@ -1,15 +1,18 @@
1
1
  export class SkiaBaseWebView extends React.Component<any, any, any> {
2
2
  constructor(props: any);
3
+ _surface: null;
4
+ _unsubscriptions: any[];
5
+ _canvas: null;
6
+ _canvasRef: React.RefObject<any>;
7
+ _redrawRequests: number;
8
+ requestId: number;
9
+ width: number;
10
+ height: number;
3
11
  unsubscribeAll(): void;
4
- _unsubscriptions: any[] | undefined;
5
12
  onLayoutEvent(evt: any): void;
6
- width: any;
7
- height: any;
8
- _surface: JsiSkSurface | undefined;
9
- _canvas: import("../skia/web/JsiSkCanvas").JsiSkCanvas | undefined;
10
13
  getSize(): {
11
- width: any;
12
- height: any;
14
+ width: number;
15
+ height: number;
13
16
  };
14
17
  componentDidMount(): void;
15
18
  componentDidUpdate(): void;
@@ -19,7 +22,7 @@ export class SkiaBaseWebView extends React.Component<any, any, any> {
19
22
  * @param rect Rect to use as bounds. Optional.
20
23
  * @returns An Image object.
21
24
  */
22
- makeImageSnapshot(rect: any): import("..").JsiSkImage | undefined;
25
+ makeImageSnapshot(rect: any): any;
23
26
  /**
24
27
  * Override to render
25
28
  */
@@ -27,10 +30,8 @@ export class SkiaBaseWebView extends React.Component<any, any, any> {
27
30
  * Sends a redraw request to the native SkiaView.
28
31
  */
29
32
  tick(): void;
30
- _redrawRequests: number | undefined;
31
- requestId: number | undefined;
32
33
  redraw(): void;
34
+ onLayout: (evt: any) => void;
33
35
  render(): React.CElement<import("react-native").ViewProps, import("react-native").View>;
34
36
  }
35
37
  import React from "react";
36
- import { JsiSkSurface } from "../skia/web/JsiSkSurface";
@@ -1,11 +1,11 @@
1
1
  export class SkiaPictureView extends React.Component<any, any, any> {
2
2
  constructor(props: any);
3
+ requestId: number;
3
4
  _nativeId: number;
4
5
  get nativeId(): number;
5
6
  componentDidUpdate(prevProps: any): void;
6
7
  componentWillUnmount(): void;
7
8
  tick(): void;
8
- requestId: number | undefined;
9
9
  /**
10
10
  * Creates a snapshot from the canvas in the surface
11
11
  * @param rect Rect to use as bounds. Optional.
@@ -16,6 +16,6 @@ export class SkiaPictureView extends React.Component<any, any, any> {
16
16
  * Sends a redraw request to the native SkiaView.
17
17
  */
18
18
  redraw(): void;
19
- render(): React.CElement<object, React.Component<object, {}, any> & Readonly<import("react-native").NativeMethods>>;
19
+ render(): React.CElement<object, React.Component<object, {}, any> & import("react-native").NativeMethods>;
20
20
  }
21
21
  import React from "react";
@@ -1,6 +1,6 @@
1
1
  export class SkiaPictureView extends SkiaBaseWebView {
2
+ picture: null;
2
3
  setPicture(picture: any): void;
3
- picture: any;
4
4
  renderInCanvas(canvas: any): void;
5
5
  }
6
6
  import { SkiaBaseWebView } from "./SkiaBaseWebView";
@@ -5,4 +5,4 @@ export declare const makeOffscreenSurface: (width: number, height: number) => Sk
5
5
  export declare const getSkiaExports: () => {
6
6
  Skia: import("../skia/types").Skia;
7
7
  };
8
- export declare const drawOffscreen: (surface: SkSurface, element: ReactNode) => import("../skia").SkImage;
8
+ export declare const drawOffscreen: (surface: SkSurface, element: ReactNode) => Promise<import("../skia").SkImage>;
@@ -14,7 +14,7 @@ export interface CanvasProps extends ViewProps {
14
14
  debug?: boolean;
15
15
  opaque?: boolean;
16
16
  onSize?: SharedValue<SkSize>;
17
- mode?: "continuous" | "default";
17
+ ref?: React.Ref<CanvasRef>;
18
18
  }
19
- export declare const Canvas: React.ForwardRefExoticComponent<CanvasProps & React.RefAttributes<unknown>>;
19
+ export declare const Canvas: ({ debug, opaque, children, onSize, onLayout: _onLayout, ref, ...viewProps }: CanvasProps) => React.JSX.Element;
20
20
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { ReactElement } from "react";
2
2
  import type { SkPicture, SkRect, SkSize } from "../skia/types";
3
3
  export declare const isOnMainThread: () => boolean;
4
- export declare const drawAsPicture: (element: ReactElement, bounds?: SkRect) => SkPicture;
5
- export declare const drawAsImage: (element: ReactElement, size: SkSize) => import("../skia").SkImage;
4
+ export declare const drawAsPicture: (element: ReactElement, bounds?: SkRect) => Promise<SkPicture>;
5
+ export declare const drawAsImage: (element: ReactElement, size: SkSize) => Promise<import("../skia").SkImage>;
6
6
  export declare const drawAsImageFromPicture: (picture: SkPicture, size: SkSize) => import("../skia").SkImage;
@@ -43,13 +43,13 @@ export declare const center: {
43
43
  x: number;
44
44
  y: number;
45
45
  };
46
- export declare const drawOnNode: (element: ReactNode) => SkiaExports.SkSurface;
47
- export declare const mountCanvas: (element: ReactNode) => {
46
+ export declare const drawOnNode: (element: ReactNode) => Promise<SkiaExports.SkSurface>;
47
+ export declare const mountCanvas: (element: ReactNode) => Promise<{
48
48
  surface: SkiaExports.SkSurface;
49
49
  root: SkiaSGRoot;
50
- draw: () => void;
51
- };
52
- export declare const serialize: (element: ReactNode) => string;
50
+ draw: () => Promise<void>;
51
+ }>;
52
+ export declare const serialize: (element: ReactNode) => Promise<string>;
53
53
  export type EvalContext = Record<string, any>;
54
54
  interface TestingSurface {
55
55
  eval<Ctx extends EvalContext = EvalContext, R = any>(fn: (Skia: Skia, ctx: Ctx) => R, ctx?: Ctx): Promise<R>;
@@ -5,10 +5,12 @@ import "../views/api";
5
5
  export declare abstract class Container {
6
6
  protected Skia: Skia;
7
7
  protected nativeId: number;
8
- root: Node[];
8
+ private _root;
9
9
  protected recording: Recording | null;
10
10
  protected unmounted: boolean;
11
11
  constructor(Skia: Skia, nativeId: number);
12
+ get root(): Node[];
13
+ set root(value: Node[]);
12
14
  unmount(): void;
13
15
  drawOnCanvas(canvas: SkCanvas): void;
14
16
  abstract redraw(): void;
@@ -9,7 +9,7 @@ type TextInstance = Node;
9
9
  type SuspenseInstance = Instance;
10
10
  type HydratableInstance = Instance;
11
11
  type PublicInstance = Instance;
12
- type HostContext = null;
12
+ type HostContext = object;
13
13
  type UpdatePayload = Container;
14
14
  type ChildSet = Node[];
15
15
  type TimeoutHandle = NodeJS.Timeout;
@@ -13,8 +13,9 @@ export declare class SkiaSGRoot {
13
13
  children: import("./Node").Node<unknown>[];
14
14
  isDeclaration: boolean;
15
15
  };
16
- render(element: ReactNode): void;
16
+ private updateContainer;
17
+ render(element: ReactNode): Promise<void>;
17
18
  drawOnCanvas(canvas: SkCanvas): void;
18
19
  getPicture(): import("../skia/types").SkPicture;
19
- unmount(): void;
20
+ unmount(): Promise<unknown>;
20
21
  }