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

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 (304) hide show
  1. package/android/CMakeLists.txt +153 -30
  2. package/android/build.gradle +1 -1
  3. package/cpp/skia/include/codec/SkCodec.h +2 -7
  4. package/cpp/skia/include/config/SkUserConfig.h +0 -11
  5. package/cpp/skia/include/core/SkCanvas.h +7 -11
  6. package/cpp/skia/include/core/SkColor.h +0 -10
  7. package/cpp/skia/include/core/SkColorSpace.h +2 -184
  8. package/cpp/skia/include/core/SkColorType.h +32 -114
  9. package/cpp/skia/include/core/SkFontScanner.h +8 -5
  10. package/cpp/skia/include/core/SkFontStyle.h +1 -1
  11. package/cpp/skia/include/core/SkMaskFilter.h +8 -0
  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 +1 -3
  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 +0 -14
  18. package/cpp/skia/include/core/SkTypeface.h +7 -24
  19. package/cpp/skia/include/effects/SkGradientShader.h +1 -6
  20. package/cpp/skia/include/effects/SkRuntimeEffect.h +0 -1
  21. package/cpp/skia/include/encode/SkPngEncoder.h +0 -14
  22. package/cpp/skia/include/gpu/GpuTypes.h +0 -9
  23. package/cpp/skia/include/gpu/ganesh/GrContextOptions.h +133 -135
  24. package/cpp/skia/include/gpu/ganesh/GrDirectContext.h +0 -5
  25. package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkarounds.h +3 -3
  26. package/cpp/skia/include/gpu/ganesh/GrTypes.h +9 -14
  27. package/cpp/skia/include/gpu/graphite/Context.h +2 -25
  28. package/cpp/skia/include/gpu/graphite/ContextOptions.h +5 -23
  29. package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +1 -20
  30. package/cpp/skia/include/gpu/graphite/Image.h +0 -1
  31. package/cpp/skia/include/gpu/graphite/Recorder.h +0 -6
  32. package/cpp/skia/include/gpu/graphite/Recording.h +1 -3
  33. package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes.h +36 -4
  34. package/cpp/skia/include/gpu/graphite/precompile/Precompile.h +2 -3
  35. package/cpp/skia/include/pathops/SkPathOps.h +1 -9
  36. package/cpp/skia/include/ports/SkFontMgr_FontConfigInterface.h +0 -3
  37. package/cpp/skia/include/private/SkPathRef.h +21 -15
  38. package/cpp/skia/include/private/base/SkAttributes.h +10 -16
  39. package/cpp/skia/include/private/base/SkMutex.h +0 -8
  40. package/cpp/skia/include/private/base/SkTArray.h +1 -1
  41. package/cpp/skia/include/private/base/SkTDArray.h +1 -1
  42. package/cpp/skia/include/private/base/SkTemplates.h +11 -24
  43. package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +1 -1
  44. package/cpp/skia/include/sksl/SkSLDebugTrace.h +3 -0
  45. package/cpp/skia/modules/skcms/src/Transform_inl.h +20 -20
  46. package/cpp/skia/modules/skcms/src/skcms_Transform.h +3 -4
  47. package/cpp/skia/modules/skcms/src/skcms_public.h +15 -19
  48. package/cpp/skia/modules/skresources/include/SkResources.h +1 -3
  49. package/cpp/skia/modules/svg/include/SkSVGCircle.h +1 -1
  50. package/cpp/skia/modules/svg/include/SkSVGContainer.h +1 -1
  51. package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +1 -1
  52. package/cpp/skia/modules/svg/include/SkSVGImage.h +2 -2
  53. package/cpp/skia/modules/svg/include/SkSVGPath.h +1 -1
  54. package/cpp/skia/modules/svg/include/SkSVGPoly.h +1 -1
  55. package/cpp/skia/modules/svg/include/SkSVGRect.h +1 -1
  56. package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +0 -2
  57. package/cpp/skia/modules/svg/include/SkSVGShape.h +0 -1
  58. package/cpp/skia/modules/svg/include/SkSVGText.h +1 -1
  59. package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +0 -4
  60. package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
  61. package/cpp/skia/src/core/SkLRUCache.h +13 -19
  62. package/cpp/skia/src/core/SkTHash.h +4 -50
  63. package/cpp/skia/src/gpu/ganesh/gl/GrGLDefines.h +0 -1
  64. package/lib/commonjs/external/reanimated/textures.js +3 -4
  65. package/lib/commonjs/external/reanimated/textures.js.map +1 -1
  66. package/lib/commonjs/headless/index.d.ts +1 -1
  67. package/lib/commonjs/headless/index.js +2 -2
  68. package/lib/commonjs/headless/index.js.map +1 -1
  69. package/lib/commonjs/renderer/Canvas.d.ts +2 -2
  70. package/lib/commonjs/renderer/Canvas.js +28 -11
  71. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  72. package/lib/commonjs/renderer/Offscreen.d.ts +2 -2
  73. package/lib/commonjs/renderer/Offscreen.js +4 -4
  74. package/lib/commonjs/renderer/Offscreen.js.map +1 -1
  75. package/lib/commonjs/renderer/__tests__/setup.d.ts +5 -5
  76. package/lib/commonjs/sksg/Container.d.ts +1 -3
  77. package/lib/commonjs/sksg/Container.js +1 -7
  78. package/lib/commonjs/sksg/Container.js.map +1 -1
  79. package/lib/commonjs/sksg/HostConfig.d.ts +1 -1
  80. package/lib/commonjs/sksg/HostConfig.js +6 -36
  81. package/lib/commonjs/sksg/HostConfig.js.map +1 -1
  82. package/lib/commonjs/sksg/HostConfig2.d.ts +19 -0
  83. package/lib/commonjs/sksg/HostConfig2.js +159 -0
  84. package/lib/commonjs/sksg/HostConfig2.js.map +1 -0
  85. package/lib/commonjs/sksg/Reconciler.d.ts +2 -3
  86. package/lib/commonjs/sksg/Reconciler.js +6 -16
  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 +2 -1
  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 +5 -3
  95. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  96. package/lib/module/external/reanimated/buffers.js +2 -1
  97. package/lib/module/external/reanimated/buffers.js.map +1 -1
  98. package/lib/module/external/reanimated/textures.js +4 -5
  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 +23 -10
  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 +28 -10
  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 +4 -1
  117. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -1
  118. package/lib/module/skia/web/Host.js +7 -1
  119. package/lib/module/skia/web/Host.js.map +1 -1
  120. package/lib/module/skia/web/JsiSkAnimatedImage.js +6 -3
  121. package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
  122. package/lib/module/skia/web/JsiSkCanvas.js +6 -3
  123. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  124. package/lib/module/skia/web/JsiSkColorFilter.js +6 -3
  125. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  126. package/lib/module/skia/web/JsiSkContourMeasure.js +6 -3
  127. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  128. package/lib/module/skia/web/JsiSkContourMeasureIter.js +6 -3
  129. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  130. package/lib/module/skia/web/JsiSkData.js +6 -3
  131. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  132. package/lib/module/skia/web/JsiSkFont.js +6 -3
  133. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  134. package/lib/module/skia/web/JsiSkImage.js +12 -8
  135. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  136. package/lib/module/skia/web/JsiSkImageFilter.js +6 -3
  137. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  138. package/lib/module/skia/web/JsiSkMaskFilter.js +6 -3
  139. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  140. package/lib/module/skia/web/JsiSkMatrix.js +8 -5
  141. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  142. package/lib/module/skia/web/JsiSkPaint.js +6 -3
  143. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  144. package/lib/module/skia/web/JsiSkParagraphBuilder.js +3 -2
  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 +6 -3
  151. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  152. package/lib/module/skia/web/JsiSkPathEffect.js +6 -3
  153. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  154. package/lib/module/skia/web/JsiSkPicture.js +6 -3
  155. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  156. package/lib/module/skia/web/JsiSkPictureRecorder.js +6 -3
  157. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  158. package/lib/module/skia/web/JsiSkPoint.js +6 -3
  159. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  160. package/lib/module/skia/web/JsiSkRRect.js +6 -3
  161. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  162. package/lib/module/skia/web/JsiSkRSXform.js +6 -3
  163. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  164. package/lib/module/skia/web/JsiSkRect.js +6 -3
  165. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  166. package/lib/module/skia/web/JsiSkRuntimeEffect.js +6 -3
  167. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  168. package/lib/module/skia/web/JsiSkSVG.js +8 -5
  169. package/lib/module/skia/web/JsiSkSVG.js.map +1 -1
  170. package/lib/module/skia/web/JsiSkShader.js +6 -3
  171. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  172. package/lib/module/skia/web/JsiSkSurface.js +6 -3
  173. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  174. package/lib/module/skia/web/JsiSkTextBlob.js +6 -3
  175. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  176. package/lib/module/skia/web/JsiSkTypeface.js +6 -3
  177. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  178. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +4 -1
  179. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  180. package/lib/module/skia/web/JsiSkVertices.js +6 -3
  181. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  182. package/lib/module/skia/web/JsiVideo.js +5 -2
  183. package/lib/module/skia/web/JsiVideo.js.map +1 -1
  184. package/lib/module/sksg/Container.d.ts +1 -3
  185. package/lib/module/sksg/Container.js +8 -11
  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 +7 -36
  189. package/lib/module/sksg/HostConfig.js.map +1 -1
  190. package/lib/module/sksg/HostConfig2.d.ts +19 -0
  191. package/lib/module/sksg/HostConfig2.js +152 -0
  192. package/lib/module/sksg/HostConfig2.js.map +1 -0
  193. package/lib/module/sksg/Reconciler.d.ts +2 -3
  194. package/lib/module/sksg/Reconciler.js +11 -16
  195. package/lib/module/sksg/Reconciler.js.map +1 -1
  196. package/lib/module/sksg/Recorder/ReanimatedRecorder.js +5 -1
  197. package/lib/module/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
  198. package/lib/module/sksg/Recorder/Recorder.js +6 -3
  199. package/lib/module/sksg/Recorder/Recorder.js.map +1 -1
  200. package/lib/module/sksg/Recorder/Visitor.js +1 -1
  201. package/lib/module/sksg/Recorder/Visitor.js.map +1 -1
  202. package/lib/module/sksg/Recorder/commands/Drawing.js +4 -2
  203. package/lib/module/sksg/Recorder/commands/Drawing.js.map +1 -1
  204. package/lib/module/sksg/Recorder/commands/Shaders.js +3 -2
  205. package/lib/module/sksg/Recorder/commands/Shaders.js.map +1 -1
  206. package/lib/module/views/SkiaBaseWebView.js +12 -9
  207. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  208. package/lib/module/views/SkiaPictureView.js +5 -1
  209. package/lib/module/views/SkiaPictureView.js.map +1 -1
  210. package/lib/module/views/SkiaPictureView.web.js +4 -1
  211. package/lib/module/views/SkiaPictureView.web.js.map +1 -1
  212. package/lib/module/web/LoadSkiaWeb.js +2 -1
  213. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  214. package/lib/module/web/WithSkiaWeb.js +1 -1
  215. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  216. package/lib/typescript/lib/commonjs/headless/index.d.ts +1 -1
  217. package/lib/typescript/lib/commonjs/renderer/Canvas.d.ts +1 -9
  218. package/lib/typescript/lib/commonjs/renderer/Offscreen.d.ts +2 -2
  219. package/lib/typescript/lib/commonjs/sksg/Container.d.ts +0 -3
  220. package/lib/typescript/lib/commonjs/sksg/HostConfig.d.ts +4 -21
  221. package/lib/typescript/lib/commonjs/sksg/HostConfig2.d.ts +44 -0
  222. package/lib/typescript/lib/commonjs/sksg/Reconciler.d.ts +2 -9
  223. package/lib/typescript/lib/module/headless/index.d.ts +1 -1
  224. package/lib/typescript/lib/module/renderer/Canvas.d.ts +1 -9
  225. package/lib/typescript/lib/module/renderer/Offscreen.d.ts +2 -2
  226. package/lib/typescript/lib/module/skia/web/CanvasKitWebGLBufferImpl.d.ts +2 -2
  227. package/lib/typescript/lib/module/skia/web/JsiSkAnimatedImage.d.ts +0 -1
  228. package/lib/typescript/lib/module/skia/web/JsiSkCanvas.d.ts +0 -1
  229. package/lib/typescript/lib/module/skia/web/JsiSkColorFilter.d.ts +0 -1
  230. package/lib/typescript/lib/module/skia/web/JsiSkContourMeasure.d.ts +0 -1
  231. package/lib/typescript/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +0 -1
  232. package/lib/typescript/lib/module/skia/web/JsiSkData.d.ts +0 -1
  233. package/lib/typescript/lib/module/skia/web/JsiSkFont.d.ts +0 -1
  234. package/lib/typescript/lib/module/skia/web/JsiSkImage.d.ts +0 -1
  235. package/lib/typescript/lib/module/skia/web/JsiSkImageFilter.d.ts +0 -1
  236. package/lib/typescript/lib/module/skia/web/JsiSkMaskFilter.d.ts +0 -1
  237. package/lib/typescript/lib/module/skia/web/JsiSkMatrix.d.ts +0 -1
  238. package/lib/typescript/lib/module/skia/web/JsiSkPaint.d.ts +0 -1
  239. package/lib/typescript/lib/module/skia/web/JsiSkPath.d.ts +0 -1
  240. package/lib/typescript/lib/module/skia/web/JsiSkPathEffect.d.ts +0 -1
  241. package/lib/typescript/lib/module/skia/web/JsiSkPicture.d.ts +0 -1
  242. package/lib/typescript/lib/module/skia/web/JsiSkPictureRecorder.d.ts +0 -1
  243. package/lib/typescript/lib/module/skia/web/JsiSkPoint.d.ts +0 -1
  244. package/lib/typescript/lib/module/skia/web/JsiSkRRect.d.ts +0 -1
  245. package/lib/typescript/lib/module/skia/web/JsiSkRSXform.d.ts +0 -1
  246. package/lib/typescript/lib/module/skia/web/JsiSkRect.d.ts +0 -1
  247. package/lib/typescript/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +0 -1
  248. package/lib/typescript/lib/module/skia/web/JsiSkSVG.d.ts +0 -1
  249. package/lib/typescript/lib/module/skia/web/JsiSkShader.d.ts +0 -1
  250. package/lib/typescript/lib/module/skia/web/JsiSkSurface.d.ts +0 -1
  251. package/lib/typescript/lib/module/skia/web/JsiSkTextBlob.d.ts +0 -1
  252. package/lib/typescript/lib/module/skia/web/JsiSkTypeface.d.ts +0 -1
  253. package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFontProvider.d.ts +0 -1
  254. package/lib/typescript/lib/module/skia/web/JsiSkVertices.d.ts +0 -1
  255. package/lib/typescript/lib/module/skia/web/JsiVideo.d.ts +2 -2
  256. package/lib/typescript/lib/module/sksg/Container.d.ts +12 -7
  257. package/lib/typescript/lib/module/sksg/HostConfig.d.ts +4 -20
  258. package/lib/typescript/lib/module/sksg/HostConfig2.d.ts +43 -0
  259. package/lib/typescript/lib/module/sksg/Reconciler.d.ts +17 -18
  260. package/lib/typescript/lib/module/sksg/Recorder/ReanimatedRecorder.d.ts +0 -1
  261. package/lib/typescript/lib/module/sksg/Recorder/Recorder.d.ts +2 -5
  262. package/lib/typescript/lib/module/views/SkiaBaseWebView.d.ts +11 -12
  263. package/lib/typescript/lib/module/views/SkiaPictureView.d.ts +2 -2
  264. package/lib/typescript/lib/module/views/SkiaPictureView.web.d.ts +1 -1
  265. package/lib/typescript/src/headless/index.d.ts +1 -1
  266. package/lib/typescript/src/renderer/Canvas.d.ts +2 -2
  267. package/lib/typescript/src/renderer/Offscreen.d.ts +2 -2
  268. package/lib/typescript/src/renderer/__tests__/setup.d.ts +5 -5
  269. package/lib/typescript/src/sksg/Container.d.ts +1 -3
  270. package/lib/typescript/src/sksg/HostConfig.d.ts +1 -1
  271. package/lib/typescript/src/sksg/HostConfig2.d.ts +19 -0
  272. package/lib/typescript/src/sksg/Reconciler.d.ts +2 -3
  273. package/package.json +9 -10
  274. package/src/external/reanimated/textures.tsx +4 -5
  275. package/src/headless/index.ts +2 -2
  276. package/src/renderer/Canvas.tsx +81 -57
  277. package/src/renderer/Offscreen.tsx +4 -4
  278. package/src/renderer/__tests__/Data.spec.tsx +10 -9
  279. package/src/renderer/__tests__/Drawings.spec.tsx +11 -11
  280. package/src/renderer/__tests__/FitBox.spec.tsx +10 -10
  281. package/src/renderer/__tests__/Glyphs.spec.tsx +2 -2
  282. package/src/renderer/__tests__/Image.spec.tsx +2 -2
  283. package/src/renderer/__tests__/Paths.spec.tsx +8 -8
  284. package/src/renderer/__tests__/Picture.spec.tsx +12 -10
  285. package/src/renderer/__tests__/Simple.spec.tsx +6 -6
  286. package/src/renderer/__tests__/Surfaces.spec.tsx +2 -2
  287. package/src/renderer/__tests__/Text.spec.tsx +12 -12
  288. package/src/renderer/__tests__/Transform.spec.tsx +8 -8
  289. package/src/renderer/__tests__/documentation/Group.spec.tsx +12 -12
  290. package/src/renderer/__tests__/documentation/getting-started/HelloWorld.spec.tsx +2 -2
  291. package/src/renderer/__tests__/documentation/paint/Overview.spec.tsx +8 -8
  292. package/src/renderer/__tests__/documentation/shapes/Box.spec.tsx +4 -4
  293. package/src/renderer/__tests__/e2e/Atlas.spec.tsx +3 -3
  294. package/src/renderer/__tests__/e2e/Offscreen.spec.tsx +1 -1
  295. package/src/renderer/__tests__/examples/BlendModes.spec.tsx +4 -4
  296. package/src/renderer/__tests__/setup.tsx +13 -13
  297. package/src/sksg/Container.ts +1 -9
  298. package/src/sksg/HostConfig.ts +7 -37
  299. package/src/sksg/HostConfig2.ts +247 -0
  300. package/src/sksg/Reconciler.ts +6 -17
  301. package/src/sksg/__tests__/Simple.spec.tsx +8 -8
  302. package/cpp/skia/include/gpu/graphite/LogPriority.h +0 -36
  303. package/cpp/skia/include/gpu/graphite/PrecompileContext.h +0 -52
  304. package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypesUtils.h +0 -48
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","lazy","Suspense","Platform","LoadSkiaWeb","WithSkiaWeb","getComponent","fallback","opts","componentProps","Inner","OS","console","warn","createElement"],"sources":["WithSkiaWeb.tsx"],"sourcesContent":["import type { ComponentProps, ComponentType } from \"react\";\nimport React, { useMemo, lazy, Suspense } from \"react\";\n\nimport { Platform } from \"../Platform\";\n\nimport { LoadSkiaWeb } from \"./LoadSkiaWeb\";\n\ntype NonOptionalKeys<T> = {\n [k in keyof T]-?: undefined extends T[k] ? never : k;\n}[keyof T];\n\ntype WithSkiaProps<TProps> = {\n fallback?: ComponentProps<typeof Suspense>[\"fallback\"];\n getComponent: () => Promise<{ default: ComponentType<TProps> }>;\n opts?: Parameters<typeof LoadSkiaWeb>[0];\n} & (NonOptionalKeys<TProps> extends never\n ? {\n componentProps?: TProps;\n }\n : {\n componentProps: TProps;\n });\n\nexport const WithSkiaWeb = <TProps extends object>({\n getComponent,\n fallback,\n opts,\n componentProps,\n}: WithSkiaProps<TProps>) => {\n const Inner = useMemo(\n // TODO: investigate\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (): any =>\n lazy(async () => {\n if (Platform.OS === \"web\") {\n await LoadSkiaWeb(opts);\n } else {\n console.warn(\n \"<WithSkiaWeb /> is only necessary on web. Consider not using on native.\"\n );\n }\n return getComponent();\n }),\n // We we to run this only once.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []\n );\n return (\n <Suspense fallback={fallback ?? null}>\n <Inner {...componentProps} />\n </Suspense>\n );\n};\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,OAAO;AAEtD,SAASC,QAAQ,QAAQ,aAAa;AAEtC,SAASC,WAAW,QAAQ,eAAe;AAkB3C,OAAO,MAAMC,WAAW,GAAGA,CAAwB;EACjDC,YAAY;EACZC,QAAQ;EACRC,IAAI;EACJC;AACqB,CAAC,KAAK;EAC3B,MAAMC,KAAK,GAAGV,OAAO;EACnB;EACA;EACA,mBACEC,IAAI,CAAC,YAAY;IACf,IAAIE,QAAQ,CAACQ,EAAE,KAAK,KAAK,EAAE;MACzB,MAAMP,WAAW,CAACI,IAAI,CAAC;IACzB,CAAC,MAAM;MACLI,OAAO,CAACC,IAAI,CACV,yEACF,CAAC;IACH;IACA,OAAOP,YAAY,CAAC,CAAC;EACvB,CAAC,CAAC;EACJ;EACA;EACA,EACF,CAAC;EACD,oBACEP,KAAA,CAAAe,aAAA,CAACZ,QAAQ;IAACK,QAAQ,EAAEA,QAAQ,IAAI;EAAK,gBACnCR,KAAA,CAAAe,aAAA,CAACJ,KAAK,EAAKD,cAAiB,CACpB,CAAC;AAEf,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","lazy","Suspense","Platform","LoadSkiaWeb","WithSkiaWeb","getComponent","fallback","opts","componentProps","Inner","OS","console","warn","createElement"],"sources":["WithSkiaWeb.tsx"],"sourcesContent":["import type { ComponentProps, ComponentType } from \"react\";\nimport React, { useMemo, lazy, Suspense } from \"react\";\n\nimport { Platform } from \"../Platform\";\n\nimport { LoadSkiaWeb } from \"./LoadSkiaWeb\";\n\ntype NonOptionalKeys<T> = {\n [k in keyof T]-?: undefined extends T[k] ? never : k;\n}[keyof T];\n\ntype WithSkiaProps<TProps> = {\n fallback?: ComponentProps<typeof Suspense>[\"fallback\"];\n getComponent: () => Promise<{ default: ComponentType<TProps> }>;\n opts?: Parameters<typeof LoadSkiaWeb>[0];\n} & (NonOptionalKeys<TProps> extends never\n ? {\n componentProps?: TProps;\n }\n : {\n componentProps: TProps;\n });\n\nexport const WithSkiaWeb = <TProps extends object>({\n getComponent,\n fallback,\n opts,\n componentProps,\n}: WithSkiaProps<TProps>) => {\n const Inner = useMemo(\n // TODO: investigate\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (): any =>\n lazy(async () => {\n if (Platform.OS === \"web\") {\n await LoadSkiaWeb(opts);\n } else {\n console.warn(\n \"<WithSkiaWeb /> is only necessary on web. Consider not using on native.\"\n );\n }\n return getComponent();\n }),\n // We we to run this only once.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []\n );\n return (\n <Suspense fallback={fallback ?? null}>\n <Inner {...componentProps} />\n </Suspense>\n );\n};\n"],"mappings":"AACA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,OAAO;AAEtD,SAASC,QAAQ,QAAQ,aAAa;AAEtC,SAASC,WAAW,QAAQ,eAAe;AAkB3C,OAAO,MAAMC,WAAW,GAAGA,CAAwB;EACjDC,YAAY;EACZC,QAAQ;EACRC,IAAI;EACJC;AACqB,CAAC,KAAK;EAC3B,MAAMC,KAAK,GAAGV,OAAO;EACnB;EACA;EACA,mBACEC,IAAI,CAAC,YAAY;IACf,IAAIE,QAAQ,CAACQ,EAAE,KAAK,KAAK,EAAE;MACzB,MAAMP,WAAW,CAACI,IAAI,CAAC;IACzB,CAAC,MAAM;MACLI,OAAO,CAACC,IAAI,CACV,yEACF,CAAC;IACH;IACA,OAAOP,YAAY,CAAC,CAAC;EACvB,CAAC,CAAC;EACJ;EACA;EACA,EACF,CAAC;EACD,oBACEP,KAAA,CAAAe,aAAA,CAACZ,QAAQ;IAACK,QAAQ,EAAEA,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAI;EAAK,gBACnCR,KAAA,CAAAe,aAAA,CAACJ,KAAK,EAAKD,cAAiB,CACpB,CAAC;AAEf,CAAC","ignoreList":[]}
@@ -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): Promise<any>;
6
+ export function drawOffscreen(surface: any, element: any): any;
@@ -1,11 +1,3 @@
1
1
  export const __esModule: boolean;
2
+ export const Canvas: any;
2
3
  export function useCanvasRef(): any;
3
- export function Canvas({ debug, opaque, children, onSize, onLayout: _onLayout, ref, ...viewProps }: {
4
- [x: string]: any;
5
- debug: any;
6
- opaque: any;
7
- children: any;
8
- onSize: any;
9
- onLayout: any;
10
- ref: any;
11
- }): any;
@@ -1,5 +1,5 @@
1
1
  export const __esModule: boolean;
2
2
  export function isOnMainThread(): boolean;
3
- export function drawAsPicture(element: any, bounds: any): Promise<import("../../..").SkPicture>;
4
- export function drawAsImage(element: any, size: any): Promise<import("../../..").SkImage>;
3
+ export function drawAsPicture(element: any, bounds: any): import("../../..").SkPicture;
4
+ export function drawAsImage(element: any, size: any): import("../../..").SkImage;
5
5
  export function drawAsImageFromPicture(picture: any, size: any): import("../../..").SkImage;
@@ -3,9 +3,6 @@ export class Container {
3
3
  constructor(Skia: any, nativeId: any);
4
4
  Skia: any;
5
5
  nativeId: any;
6
- set root(value: any);
7
- get root(): any;
8
- _root: any;
9
6
  unmount(): void;
10
7
  unmounted: boolean | undefined;
11
8
  drawOnCanvas(canvas: any): void;
@@ -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): {};
11
- function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): {};
10
+ function getRootHostContext(_rootContainerInstance: any): null;
11
+ function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): null;
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, _type: any, _oldProps: any, newProps: any, _updatePayload: any, _internalInstanceHandle: any, keepChildren: any, _recyclableInstance: any): {
29
+ function cloneInstance(instance: any, _updatePayload: any, _type: any, _oldProps: any, newProps: any, _internalInstanceHandle: any, keepChildren: any, _recyclableInstance: any): {
30
30
  type: any;
31
31
  props: any;
32
32
  children: any[];
@@ -44,22 +44,5 @@ 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: _react.Context<null>;
59
- function setCurrentUpdatePriority(newPriority: any): void;
60
- function getCurrentUpdatePriority(): number;
61
- function resolveUpdatePriority(): number;
62
- function resetFormInstance(): void;
63
47
  }
64
48
  export function debug(...args: any[]): void;
65
- import _react = require("react");
@@ -0,0 +1,44 @@
1
+ export const __esModule: boolean;
2
+ export namespace sksgHostConfig {
3
+ let supportsMutation: boolean;
4
+ let isPrimaryRenderer: boolean;
5
+ let supportsPersistence: boolean;
6
+ let supportsHydration: boolean;
7
+ let scheduleTimeout: typeof setTimeout;
8
+ let cancelTimeout: typeof clearTimeout;
9
+ let noTimeout: number;
10
+ function appendChildToContainer(container: any, child: any): void;
11
+ function appendChild(parent: any, child: any): void;
12
+ function getRootHostContext(_rootContainerInstance: any): null;
13
+ function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): null;
14
+ function shouldSetTextContent(_type: any, _props: any): boolean;
15
+ function createTextInstance(_text: any, _rootContainerInstance: any, _hostContext: any, _internalInstanceHandle: any): never;
16
+ function createInstance(type: any, propsWithChildren: any, _container: any, _hostContext: any, _internalInstanceHandle: any): {
17
+ type: any;
18
+ props: any;
19
+ children: never[];
20
+ };
21
+ function appendInitialChild(parentInstance: any, child: any): void;
22
+ function finalizeInitialChildren(parentInstance: any, _type: any, _props: any, _rootContainerInstance: any, _hostContext: any): boolean;
23
+ function commitMount(): void;
24
+ function prepareForCommit(_containerInfo: any): null;
25
+ function resetAfterCommit(container: any): void;
26
+ function getPublicInstance(node: any): any;
27
+ function prepareUpdate(_instance: any, type: any, oldProps: any, newProps: any, rootContainerInstance: any, _hostContext: any): any;
28
+ function commitUpdate(instance: any, _updatePayload: any, type: any, prevProps: any, nextProps: any, _internalHandle: any): void;
29
+ function commitTextUpdate(_textInstance: any, _oldText: any, _newText: any): void;
30
+ function clearContainer(container: any): void;
31
+ function preparePortalMount(): void;
32
+ function removeChild(parent: any, child: any): void;
33
+ function removeChildFromContainer(container: any, child: any): void;
34
+ function insertInContainerBefore(container: any, child: any, before: any): void;
35
+ function insertBefore(parent: any, child: any, before: any): void;
36
+ function getCurrentEventPriority(): number;
37
+ function beforeActiveInstanceBlur(): void;
38
+ function afterActiveInstanceBlur(): void;
39
+ function detachDeletedInstance(): void;
40
+ function getInstanceFromNode(_node: any): null;
41
+ function prepareScopeUpdate(_scopeInstance: any, _instance: any): void;
42
+ function getInstanceFromScope(_scopeInstance: any): null;
43
+ }
44
+ export function debug(...args: any[]): void;
@@ -7,8 +7,6 @@ export class SkiaSGRoot {
7
7
  mapperId: any;
8
8
  Skia: any;
9
9
  nativeId: any;
10
- root: any;
11
- _root: any;
12
10
  unmount(): void;
13
11
  unmounted: boolean | undefined;
14
12
  drawOnCanvas(canvas: any): void;
@@ -21,8 +19,6 @@ export class SkiaSGRoot {
21
19
  mapperId: any;
22
20
  Skia: any;
23
21
  nativeId: any;
24
- root: any;
25
- _root: any;
26
22
  unmount(): void;
27
23
  unmounted: boolean | undefined;
28
24
  drawOnCanvas(canvas: any): void;
@@ -35,8 +31,6 @@ export class SkiaSGRoot {
35
31
  } | undefined;
36
32
  Skia: any;
37
33
  nativeId: any;
38
- root: any;
39
- _root: any;
40
34
  unmount(): void;
41
35
  unmounted: boolean | undefined;
42
36
  drawOnCanvas(canvas: any): void;
@@ -48,9 +42,8 @@ export class SkiaSGRoot {
48
42
  children: any;
49
43
  isDeclaration: boolean;
50
44
  };
51
- updateContainer(element: any): Promise<any>;
52
- render(element: any): Promise<void>;
45
+ render(element: any): void;
53
46
  drawOnCanvas(canvas: any): void;
54
47
  getPicture(): any;
55
- unmount(): Promise<any>;
48
+ unmount(): void;
56
49
  }
@@ -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): Promise<any>;
6
+ export function drawOffscreen(surface: any, element: any): any;
@@ -1,11 +1,3 @@
1
1
  export function useCanvasRef(): React.MutableRefObject<null>;
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>;
2
+ export const Canvas: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
11
3
  import React from "react";
@@ -1,4 +1,4 @@
1
1
  export function isOnMainThread(): boolean;
2
- export function drawAsPicture(element: any, bounds: any): Promise<import("../../..").SkPicture>;
3
- export function drawAsImage(element: any, size: any): Promise<import("../../..").SkImage>;
2
+ export function drawAsPicture(element: any, bounds: any): import("../../..").SkPicture;
3
+ export function drawAsImage(element: any, size: any): 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;
4
3
  surface: any;
5
4
  source: any;
6
- toImage(): never;
5
+ toImage(): any;
6
+ image: any;
7
7
  }
8
8
  import { CanvasKitWebGLBuffer } from "../types";
@@ -4,7 +4,6 @@ export class JsiSkAnimatedImage extends HostObject {
4
4
  currentFrameDuration(): any;
5
5
  getFrameCount(): any;
6
6
  getCurrentFrame(): JsiSkImage | null;
7
- dispose: () => void;
8
7
  }
9
8
  import { HostObject } from "./Host";
10
9
  import { JsiSkImage } from "./JsiSkImage";
@@ -1,6 +1,5 @@
1
1
  export class JsiSkCanvas extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  drawRect(rect: any, paint: any): void;
5
4
  drawImage(image: any, x: any, y: any, paint: any): void;
6
5
  drawImageRect(img: any, src: any, dest: any, paint: any, fastSample: any): void;
@@ -1,5 +1,4 @@
1
1
  export class JsiSkColorFilter extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  }
5
4
  import { HostObject } from "./Host";
@@ -4,7 +4,6 @@ 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;
8
7
  }
9
8
  import { HostObject } from "./Host";
10
9
  import { JsiSkPoint } from "./JsiSkPoint";
@@ -1,7 +1,6 @@
1
1
  export class JsiSkContourMeasureIter extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
3
  next(): JsiSkContourMeasure | null;
4
- dispose: () => void;
5
4
  }
6
5
  import { HostObject } from "./Host";
7
6
  import { JsiSkContourMeasure } from "./JsiSkContourMeasure";
@@ -1,5 +1,4 @@
1
1
  export class JsiSkData extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  }
5
4
  import { HostObject } from "./Host";
@@ -1,7 +1,6 @@
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;
5
4
  getTextWidth(text: any, paint: any): any;
6
5
  getMetrics(): {
7
6
  ascent: any;
@@ -14,7 +14,6 @@ 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;
18
17
  makeNonTextureImage(): JsiSkImage;
19
18
  getNativeTextureUnstable(): null;
20
19
  }
@@ -1,5 +1,4 @@
1
1
  export class JsiSkImageFilter extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  }
5
4
  import { HostObject } from "./Host";
@@ -1,5 +1,4 @@
1
1
  export class JsiSkMaskFilter extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  }
5
4
  import { HostObject } from "./Host";
@@ -2,7 +2,6 @@ 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;
6
5
  concat(matrix: any): this;
7
6
  translate(x: any, y: any): this;
8
7
  postTranslate(x: any, y: any): this;
@@ -1,6 +1,5 @@
1
1
  export class JsiSkPaint extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  copy(): JsiSkPaint;
5
4
  assign(paint: any): void;
6
5
  reset(): void;
@@ -1,6 +1,5 @@
1
1
  export class JsiSkPath extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  addPath(src: any, matrix: any, extend?: boolean): this;
5
4
  addArc(oval: any, startAngleInDegrees: any, sweepAngleInDegrees: any): this;
6
5
  addOval(oval: any, isCCW: any, startIndex: any): this;
@@ -1,5 +1,4 @@
1
1
  export class JsiSkPathEffect extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  }
5
4
  import { HostObject } from "./Host";
@@ -1,6 +1,5 @@
1
1
  export class JsiSkPicture extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  makeShader(tmx: any, tmy: any, mode: any, localMatrix: any, tileRect: any): JsiSkShader;
5
4
  serialize(): any;
6
5
  }
@@ -1,6 +1,5 @@
1
1
  export class JsiSkPictureRecorder extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  beginRecording(bounds: any): JsiSkCanvas;
5
4
  finishRecordingAsPicture(): JsiSkPicture;
6
5
  }
@@ -1,7 +1,6 @@
1
1
  export class JsiSkPoint extends BaseHostObject {
2
2
  static fromValue(point: any): any;
3
3
  constructor(CanvasKit: any, ref: any);
4
- dispose: () => void;
5
4
  get x(): any;
6
5
  get y(): any;
7
6
  }
@@ -1,7 +1,6 @@
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;
5
4
  get rx(): any;
6
5
  get ry(): any;
7
6
  get rect(): JsiSkRect;
@@ -6,6 +6,5 @@ export class JsiSkRSXform extends BaseHostObject {
6
6
  get ssin(): any;
7
7
  get tx(): any;
8
8
  get ty(): any;
9
- dispose: () => void;
10
9
  }
11
10
  import { BaseHostObject } from "./Host";
@@ -1,7 +1,6 @@
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;
5
4
  setXYWH(x: any, y: any, width: any, height: any): void;
6
5
  get x(): any;
7
6
  get y(): any;
@@ -1,6 +1,5 @@
1
1
  export class JsiSkRuntimeEffect extends HostObject {
2
2
  sksl: any;
3
- dispose: () => void;
4
3
  source(): any;
5
4
  makeShader(uniforms: any, localMatrix: any): JsiSkShader;
6
5
  makeShaderWithChildren(uniforms: any, children: any, localMatrix: any): JsiSkShader;
@@ -2,6 +2,5 @@ export class JsiSkSVG extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
3
  width(): any;
4
4
  height(): any;
5
- dispose: () => void;
6
5
  }
7
6
  import { HostObject } from "./Host";
@@ -1,5 +1,4 @@
1
1
  export class JsiSkShader extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  }
5
4
  import { HostObject } from "./Host";
@@ -1,6 +1,5 @@
1
1
  export class JsiSkSurface extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  flush(): void;
5
4
  width(): any;
6
5
  height(): any;
@@ -1,5 +1,4 @@
1
1
  export class JsiSkTextBlob extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  }
5
4
  import { HostObject } from "./Host";
@@ -3,6 +3,5 @@ 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;
7
6
  }
8
7
  import { HostObject } from "./Host";
@@ -1,6 +1,5 @@
1
1
  export class JsiSkTypefaceFontProvider extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- allocatedPointers: any[];
4
3
  matchFamilyStyle(_name: any, _style: any): void;
5
4
  countFamilies(): any;
6
5
  getFamilyName(index: any): any;
@@ -1,6 +1,5 @@
1
1
  export class JsiSkVertices extends HostObject {
2
2
  constructor(CanvasKit: any, ref: any);
3
- dispose: () => void;
4
3
  bounds(): JsiSkRect;
5
4
  uniqueID(): any;
6
5
  }
@@ -1,13 +1,12 @@
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;
6
4
  ImageFactory: any;
7
5
  videoElement: any;
8
6
  duration(): number;
9
7
  framerate(): void;
10
8
  setSurface(surface: any): void;
9
+ webglBuffer: CanvasKitWebGLBufferImpl | undefined;
11
10
  nextImage(): any;
12
11
  seek(time: any): void;
13
12
  rotation(): number;
@@ -20,3 +19,4 @@ export class JsiVideo {
20
19
  setVolume(volume: any): void;
21
20
  dispose(): void;
22
21
  }
22
+ import { CanvasKitWebGLBufferImpl } from "./CanvasKitWebGLBufferImpl";
@@ -1,25 +1,30 @@
1
1
  export class Container {
2
2
  constructor(Skia: any, nativeId: any);
3
- _root: any[];
4
- recording: null;
5
- unmounted: boolean;
6
3
  Skia: any;
7
4
  nativeId: any;
8
- set root(value: any[]);
9
- get root(): any[];
10
5
  unmount(): void;
6
+ unmounted: boolean | undefined;
11
7
  drawOnCanvas(canvas: any): void;
12
8
  }
13
9
  export function createContainer(Skia: any, nativeId: any): StaticContainer | ReanimatedContainer | NativeReanimatedContainer;
14
10
  declare class StaticContainer extends Container {
15
11
  redraw(): void;
12
+ recording: {
13
+ commands: any;
14
+ paintPool: never[];
15
+ animationValues: any;
16
+ } | undefined;
16
17
  }
17
18
  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;
20
25
  }
21
26
  declare class NativeReanimatedContainer extends Container {
22
- mapperId: null;
23
27
  redraw(): void;
28
+ mapperId: any;
24
29
  }
25
30
  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): {};
11
- function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): {};
10
+ function getRootHostContext(_rootContainerInstance: any): null;
11
+ function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): null;
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, _type: any, _oldProps: any, newProps: any, _updatePayload: any, _internalInstanceHandle: any, keepChildren: any, _recyclableInstance: any): {
29
+ function cloneInstance(instance: any, _updatePayload: any, _type: any, _oldProps: any, newProps: any, _internalInstanceHandle: any, keepChildren: any, _recyclableInstance: any): {
30
30
  type: any;
31
31
  props: any;
32
32
  children: any[];
@@ -44,20 +44,4 @@ 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;
63
47
  }
@@ -0,0 +1,43 @@
1
+ export function debug(...args: any[]): void;
2
+ export namespace sksgHostConfig {
3
+ let supportsMutation: boolean;
4
+ let isPrimaryRenderer: boolean;
5
+ let supportsPersistence: boolean;
6
+ let supportsHydration: boolean;
7
+ let scheduleTimeout: typeof setTimeout;
8
+ let cancelTimeout: typeof clearTimeout;
9
+ let noTimeout: number;
10
+ function appendChildToContainer(container: any, child: any): void;
11
+ function appendChild(parent: any, child: any): void;
12
+ function getRootHostContext(_rootContainerInstance: any): null;
13
+ function getChildHostContext(_parentHostContext: any, _type: any, _rootContainerInstance: any): null;
14
+ function shouldSetTextContent(_type: any, _props: any): boolean;
15
+ function createTextInstance(_text: any, _rootContainerInstance: any, _hostContext: any, _internalInstanceHandle: any): never;
16
+ function createInstance(type: any, propsWithChildren: any, _container: any, _hostContext: any, _internalInstanceHandle: any): {
17
+ type: any;
18
+ props: any;
19
+ children: never[];
20
+ };
21
+ function appendInitialChild(parentInstance: any, child: any): void;
22
+ function finalizeInitialChildren(parentInstance: any, _type: any, _props: any, _rootContainerInstance: any, _hostContext: any): boolean;
23
+ function commitMount(): void;
24
+ function prepareForCommit(_containerInfo: any): null;
25
+ function resetAfterCommit(container: any): void;
26
+ function getPublicInstance(node: any): any;
27
+ function prepareUpdate(_instance: any, type: any, oldProps: any, newProps: any, rootContainerInstance: any, _hostContext: any): any;
28
+ function commitUpdate(instance: any, _updatePayload: any, type: any, prevProps: any, nextProps: any, _internalHandle: any): void;
29
+ function commitTextUpdate(_textInstance: any, _oldText: any, _newText: any): void;
30
+ function clearContainer(container: any): void;
31
+ function preparePortalMount(): void;
32
+ function removeChild(parent: any, child: any): void;
33
+ function removeChildFromContainer(container: any, child: any): void;
34
+ function insertInContainerBefore(container: any, child: any, before: any): void;
35
+ function insertBefore(parent: any, child: any, before: any): void;
36
+ function getCurrentEventPriority(): number;
37
+ function beforeActiveInstanceBlur(): void;
38
+ function afterActiveInstanceBlur(): void;
39
+ function detachDeletedInstance(): void;
40
+ function getInstanceFromNode(_node: any): null;
41
+ function prepareScopeUpdate(_scopeInstance: any, _instance: any): void;
42
+ function getInstanceFromScope(_scopeInstance: any): null;
43
+ }