@shopify/react-native-skia 1.3.11 → 1.3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1643) hide show
  1. package/android/cpp/jni/JniSkiaManager.cpp +8 -2
  2. package/cpp/jsi/JsiHostObject.h +9 -15
  3. package/lib/commonjs/Platform/IPlatform.d.ts +0 -1
  4. package/lib/commonjs/Platform/IPlatform.js.map +1 -1
  5. package/lib/commonjs/Platform/Platform.js.map +1 -1
  6. package/lib/commonjs/Platform/Platform.web.js +5 -1
  7. package/lib/commonjs/Platform/Platform.web.js.map +1 -1
  8. package/lib/commonjs/Platform/index.js.map +1 -1
  9. package/lib/commonjs/animation/functions/index.js.map +1 -1
  10. package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
  11. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  12. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
  13. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
  14. package/lib/commonjs/animation/index.js.map +1 -1
  15. package/lib/commonjs/dom/nodes/DrawingNode.js +2 -2
  16. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
  17. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
  18. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  19. package/lib/commonjs/dom/nodes/LayerNode.js.map +1 -1
  20. package/lib/commonjs/dom/nodes/Node.js +2 -2
  21. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  22. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
  23. package/lib/commonjs/dom/nodes/RenderNode.js +2 -2
  24. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
  25. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
  26. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
  27. package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
  28. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
  29. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
  30. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
  31. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
  32. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
  33. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
  34. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js.map +1 -1
  35. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  36. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
  37. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
  38. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  39. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
  40. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
  41. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
  42. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
  43. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
  44. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  45. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
  46. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
  47. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
  48. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
  49. package/lib/commonjs/dom/nodes/drawings/RRectNode.js +2 -2
  50. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
  51. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
  52. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
  53. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
  54. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  55. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  56. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
  57. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
  58. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
  59. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
  60. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
  61. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
  62. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
  63. package/lib/commonjs/dom/types/ColorFilters.js.map +1 -1
  64. package/lib/commonjs/dom/types/Common.js.map +1 -1
  65. package/lib/commonjs/dom/types/DeclarationContext.js +2 -2
  66. package/lib/commonjs/dom/types/DeclarationContext.js.map +1 -1
  67. package/lib/commonjs/dom/types/DrawingContext.js +2 -2
  68. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  69. package/lib/commonjs/dom/types/Drawings.js.map +1 -1
  70. package/lib/commonjs/dom/types/ImageFilters.js.map +1 -1
  71. package/lib/commonjs/dom/types/MaskFilters.js.map +1 -1
  72. package/lib/commonjs/dom/types/Node.js.map +1 -1
  73. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  74. package/lib/commonjs/dom/types/Paragraph.js.map +1 -1
  75. package/lib/commonjs/dom/types/PathEffects.js.map +1 -1
  76. package/lib/commonjs/dom/types/Shaders.js.map +1 -1
  77. package/lib/commonjs/dom/types/SkDOM.js.map +1 -1
  78. package/lib/commonjs/dom/types/index.js.map +1 -1
  79. package/lib/commonjs/external/ModuleProxy.js.map +1 -1
  80. package/lib/commonjs/external/index.js.map +1 -1
  81. package/lib/commonjs/external/reanimated/ReanimatedProxy.js.map +1 -1
  82. package/lib/commonjs/external/reanimated/buffers.d.ts +4 -4
  83. package/lib/commonjs/external/reanimated/buffers.js +1 -1
  84. package/lib/commonjs/external/reanimated/buffers.js.map +1 -1
  85. package/lib/commonjs/external/reanimated/index.js.map +1 -1
  86. package/lib/commonjs/external/reanimated/interpolators.js +1 -1
  87. package/lib/commonjs/external/reanimated/interpolators.js.map +1 -1
  88. package/lib/commonjs/external/reanimated/renderHelpers.js +1 -1
  89. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
  90. package/lib/commonjs/external/reanimated/textures.js +1 -1
  91. package/lib/commonjs/external/reanimated/textures.js.map +1 -1
  92. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +1 -1
  93. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -1
  94. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js +1 -1
  95. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  96. package/lib/commonjs/external/reanimated/useVideo.js +1 -1
  97. package/lib/commonjs/external/reanimated/useVideo.js.map +1 -1
  98. package/lib/commonjs/external/reanimated/useVideoLoading.js +1 -1
  99. package/lib/commonjs/external/reanimated/useVideoLoading.js.map +1 -1
  100. package/lib/commonjs/external/reanimated/useVideoLoading.web.js.map +1 -1
  101. package/lib/commonjs/headless/index.js.map +1 -1
  102. package/lib/commonjs/index.js.map +1 -1
  103. package/lib/commonjs/mock/index.js +4 -0
  104. package/lib/commonjs/mock/index.js.map +1 -1
  105. package/lib/commonjs/renderer/Canvas.d.ts +2 -2
  106. package/lib/commonjs/renderer/Canvas.js +2 -2
  107. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  108. package/lib/commonjs/renderer/Container.d.ts +1 -0
  109. package/lib/commonjs/renderer/Container.js +3 -2
  110. package/lib/commonjs/renderer/Container.js.map +1 -1
  111. package/lib/commonjs/renderer/DrawingContext.js.map +1 -1
  112. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  113. package/lib/commonjs/renderer/HostConfig.d.ts +0 -1
  114. package/lib/commonjs/renderer/HostConfig.js +7 -3
  115. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  116. package/lib/commonjs/renderer/Offscreen.js.map +1 -1
  117. package/lib/commonjs/renderer/Reconciler.js +4 -3
  118. package/lib/commonjs/renderer/Reconciler.js.map +1 -1
  119. package/lib/commonjs/renderer/components/Blend.js +1 -1
  120. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  121. package/lib/commonjs/renderer/components/Group.js +3 -3
  122. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  123. package/lib/commonjs/renderer/components/Mask.js +1 -1
  124. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  125. package/lib/commonjs/renderer/components/Paint.js +1 -1
  126. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  127. package/lib/commonjs/renderer/components/Picture.js +1 -1
  128. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  129. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +2 -2
  130. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  131. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +1 -1
  132. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  133. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
  134. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +1 -1
  135. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  136. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +1 -1
  137. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  138. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +1 -1
  139. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  140. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +1 -1
  141. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  142. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +1 -1
  143. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  144. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +1 -1
  145. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  146. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
  147. package/lib/commonjs/renderer/components/image/Image.js +1 -1
  148. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  149. package/lib/commonjs/renderer/components/image/ImageSVG.js +1 -1
  150. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  151. package/lib/commonjs/renderer/components/image/ImageShader.js +2 -2
  152. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  153. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  154. package/lib/commonjs/renderer/components/imageFilters/Blur.js +2 -2
  155. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  156. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +1 -1
  157. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  158. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +2 -2
  159. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  160. package/lib/commonjs/renderer/components/imageFilters/Offset.js +2 -2
  161. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  162. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +1 -1
  163. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  164. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +1 -1
  165. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  166. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
  167. package/lib/commonjs/renderer/components/index.js.map +1 -1
  168. package/lib/commonjs/renderer/components/maskFilters/Blur.js +2 -2
  169. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  170. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
  171. package/lib/commonjs/renderer/components/paragraph/Paragraph.js +1 -1
  172. package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -1
  173. package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -1
  174. package/lib/commonjs/renderer/components/pathEffects/Corner.js +1 -1
  175. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  176. package/lib/commonjs/renderer/components/pathEffects/Dash.js +1 -1
  177. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  178. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +2 -2
  179. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  180. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +1 -1
  181. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  182. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +1 -1
  183. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  184. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +1 -1
  185. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  186. package/lib/commonjs/renderer/components/pathEffects/Sum.js +1 -1
  187. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  188. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
  189. package/lib/commonjs/renderer/components/shaders/Color.js +1 -1
  190. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  191. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +2 -2
  192. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  193. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +1 -1
  194. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  195. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +1 -1
  196. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  197. package/lib/commonjs/renderer/components/shaders/Shader.js +2 -2
  198. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  199. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
  200. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +1 -1
  201. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  202. package/lib/commonjs/renderer/components/shaders/Turbulence.js +2 -2
  203. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  204. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +1 -1
  205. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  206. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
  207. package/lib/commonjs/renderer/components/shapes/Atlas.js +1 -1
  208. package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -1
  209. package/lib/commonjs/renderer/components/shapes/Box.js +1 -1
  210. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  211. package/lib/commonjs/renderer/components/shapes/Circle.js +1 -1
  212. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  213. package/lib/commonjs/renderer/components/shapes/DiffRect.js +1 -1
  214. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  215. package/lib/commonjs/renderer/components/shapes/Fill.js +1 -1
  216. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  217. package/lib/commonjs/renderer/components/shapes/FitBox.js +1 -1
  218. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  219. package/lib/commonjs/renderer/components/shapes/Line.js +1 -1
  220. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  221. package/lib/commonjs/renderer/components/shapes/Oval.js +1 -1
  222. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  223. package/lib/commonjs/renderer/components/shapes/Patch.js +1 -1
  224. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  225. package/lib/commonjs/renderer/components/shapes/Path.js +2 -2
  226. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  227. package/lib/commonjs/renderer/components/shapes/Points.js +2 -2
  228. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  229. package/lib/commonjs/renderer/components/shapes/Rect.js +1 -1
  230. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  231. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +1 -1
  232. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  233. package/lib/commonjs/renderer/components/shapes/Vertices.js +2 -2
  234. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  235. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
  236. package/lib/commonjs/renderer/components/text/Glyphs.js +2 -2
  237. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  238. package/lib/commonjs/renderer/components/text/Text.js +2 -2
  239. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  240. package/lib/commonjs/renderer/components/text/TextBlob.js +2 -2
  241. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  242. package/lib/commonjs/renderer/components/text/TextPath.js +2 -2
  243. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  244. package/lib/commonjs/renderer/components/text/index.js.map +1 -1
  245. package/lib/commonjs/renderer/index.js.map +1 -1
  246. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  247. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
  248. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  249. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  250. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
  251. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  252. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  253. package/lib/commonjs/renderer/typeddash.js.map +1 -1
  254. package/lib/commonjs/skia/NativeSetup.js +1 -1
  255. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  256. package/lib/commonjs/skia/Skia.js.map +1 -1
  257. package/lib/commonjs/skia/Skia.web.js.map +1 -1
  258. package/lib/commonjs/skia/core/AnimatedImage.d.ts +1 -1
  259. package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -1
  260. package/lib/commonjs/skia/core/Data.d.ts +3 -3
  261. package/lib/commonjs/skia/core/Data.js.map +1 -1
  262. package/lib/commonjs/skia/core/Font.d.ts +1 -1
  263. package/lib/commonjs/skia/core/Font.js.map +1 -1
  264. package/lib/commonjs/skia/core/Image.d.ts +2 -3
  265. package/lib/commonjs/skia/core/Image.js.map +1 -1
  266. package/lib/commonjs/skia/core/Matrix.js.map +1 -1
  267. package/lib/commonjs/skia/core/Picture.d.ts +1 -1
  268. package/lib/commonjs/skia/core/Picture.js.map +1 -1
  269. package/lib/commonjs/skia/core/RRect.js.map +1 -1
  270. package/lib/commonjs/skia/core/Rect.js.map +1 -1
  271. package/lib/commonjs/skia/core/SVG.d.ts +1 -1
  272. package/lib/commonjs/skia/core/SVG.js.map +1 -1
  273. package/lib/commonjs/skia/core/SVG.web.d.ts +1 -1
  274. package/lib/commonjs/skia/core/SVG.web.js.map +1 -1
  275. package/lib/commonjs/skia/core/Typeface.d.ts +1 -1
  276. package/lib/commonjs/skia/core/Typeface.js.map +1 -1
  277. package/lib/commonjs/skia/core/Vector.js.map +1 -1
  278. package/lib/commonjs/skia/core/index.js.map +1 -1
  279. package/lib/commonjs/skia/index.js.map +1 -1
  280. package/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.js.map +1 -1
  281. package/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.js.map +1 -1
  282. package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -1
  283. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  284. package/lib/commonjs/skia/types/Color.js.map +1 -1
  285. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  286. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -1
  287. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
  288. package/lib/commonjs/skia/types/ContourMeasure.js.map +1 -1
  289. package/lib/commonjs/skia/types/Data/Data.d.ts +1 -1
  290. package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
  291. package/lib/commonjs/skia/types/Data/DataFactory.js.map +1 -1
  292. package/lib/commonjs/skia/types/Data/index.js.map +1 -1
  293. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  294. package/lib/commonjs/skia/types/Font/FontMgr.js.map +1 -1
  295. package/lib/commonjs/skia/types/Font/FontMgrFactory.js.map +1 -1
  296. package/lib/commonjs/skia/types/Font/index.js.map +1 -1
  297. package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
  298. package/lib/commonjs/skia/types/Image/ImageFactory.d.ts +16 -16
  299. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  300. package/lib/commonjs/skia/types/Image/index.js.map +1 -1
  301. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  302. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  303. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
  304. package/lib/commonjs/skia/types/JsiInstance.js.map +1 -1
  305. package/lib/commonjs/skia/types/MaskFilter.d.ts +3 -3
  306. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
  307. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  308. package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
  309. package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -3
  310. package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
  311. package/lib/commonjs/skia/types/NativeBuffer/index.js.map +1 -1
  312. package/lib/commonjs/skia/types/Paint/BlendMode.d.ts +28 -28
  313. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
  314. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
  315. package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
  316. package/lib/commonjs/skia/types/Paragraph/Paragraph.js.map +1 -1
  317. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  318. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  319. package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -1
  320. package/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.js.map +1 -1
  321. package/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.js.map +1 -1
  322. package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -1
  323. package/lib/commonjs/skia/types/Path/Path.d.ts +4 -4
  324. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  325. package/lib/commonjs/skia/types/Path/PathFactory.js.map +1 -1
  326. package/lib/commonjs/skia/types/Path/index.js.map +1 -1
  327. package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
  328. package/lib/commonjs/skia/types/Picture/Picture.js.map +1 -1
  329. package/lib/commonjs/skia/types/Picture/PictureFactory.js.map +1 -1
  330. package/lib/commonjs/skia/types/Picture/PictureRecorder.js.map +1 -1
  331. package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
  332. package/lib/commonjs/skia/types/Point.js.map +1 -1
  333. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  334. package/lib/commonjs/skia/types/RSXform.js.map +1 -1
  335. package/lib/commonjs/skia/types/Rect.js.map +1 -1
  336. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
  337. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -1
  338. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
  339. package/lib/commonjs/skia/types/SVG/SVG.js.map +1 -1
  340. package/lib/commonjs/skia/types/SVG/SVGFactory.js.map +1 -1
  341. package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
  342. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  343. package/lib/commonjs/skia/types/Shader/ShaderFactory.js.map +1 -1
  344. package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
  345. package/lib/commonjs/skia/types/Size.js.map +1 -1
  346. package/lib/commonjs/skia/types/Skia.js.map +1 -1
  347. package/lib/commonjs/skia/types/Surface/Surface.js.map +1 -1
  348. package/lib/commonjs/skia/types/Surface/SurfaceFactory.js.map +1 -1
  349. package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
  350. package/lib/commonjs/skia/types/TextBlob.js.map +1 -1
  351. package/lib/commonjs/skia/types/Typeface/Typeface.js.map +1 -1
  352. package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js.map +1 -1
  353. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
  354. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
  355. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
  356. package/lib/commonjs/skia/types/Video/Video.js.map +1 -1
  357. package/lib/commonjs/skia/types/Video/index.js.map +1 -1
  358. package/lib/commonjs/skia/types/index.js.map +1 -1
  359. package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js +2 -2
  360. package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -1
  361. package/lib/commonjs/skia/web/Host.js +2 -2
  362. package/lib/commonjs/skia/web/Host.js.map +1 -1
  363. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +2 -2
  364. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -1
  365. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  366. package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +1 -1
  367. package/lib/commonjs/skia/web/JsiSkCanvas.js +2 -2
  368. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  369. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
  370. package/lib/commonjs/skia/web/JsiSkColorFilter.js +2 -2
  371. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
  372. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  373. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +2 -2
  374. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
  375. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +2 -2
  376. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  377. package/lib/commonjs/skia/web/JsiSkData.js +2 -2
  378. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
  379. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
  380. package/lib/commonjs/skia/web/JsiSkFont.js +2 -2
  381. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  382. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -1
  383. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  384. package/lib/commonjs/skia/web/JsiSkImage.js +2 -2
  385. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
  386. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  387. package/lib/commonjs/skia/web/JsiSkImageFilter.js +2 -2
  388. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
  389. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  390. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +2 -2
  391. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
  392. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  393. package/lib/commonjs/skia/web/JsiSkMatrix.js +2 -2
  394. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  395. package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +1 -1
  396. package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
  397. package/lib/commonjs/skia/web/JsiSkPaint.js +2 -2
  398. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  399. package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
  400. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  401. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  402. package/lib/commonjs/skia/web/JsiSkParagraphStyle.d.ts +1 -1
  403. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -1
  404. package/lib/commonjs/skia/web/JsiSkPath.js +2 -2
  405. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  406. package/lib/commonjs/skia/web/JsiSkPathEffect.js +2 -2
  407. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
  408. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  409. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
  410. package/lib/commonjs/skia/web/JsiSkPicture.js +2 -2
  411. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
  412. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
  413. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +2 -2
  414. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
  415. package/lib/commonjs/skia/web/JsiSkPoint.js +2 -2
  416. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
  417. package/lib/commonjs/skia/web/JsiSkRRect.js +2 -2
  418. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
  419. package/lib/commonjs/skia/web/JsiSkRSXform.js +2 -2
  420. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
  421. package/lib/commonjs/skia/web/JsiSkRect.js +2 -2
  422. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
  423. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +2 -2
  424. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  425. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  426. package/lib/commonjs/skia/web/JsiSkSVG.js +2 -2
  427. package/lib/commonjs/skia/web/JsiSkSVG.js.map +1 -1
  428. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
  429. package/lib/commonjs/skia/web/JsiSkShader.js +2 -2
  430. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
  431. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
  432. package/lib/commonjs/skia/web/JsiSkSurface.js +2 -2
  433. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
  434. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  435. package/lib/commonjs/skia/web/JsiSkTextBlob.js +2 -2
  436. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
  437. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  438. package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -1
  439. package/lib/commonjs/skia/web/JsiSkTypeface.js +2 -2
  440. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
  441. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  442. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +2 -2
  443. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  444. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  445. package/lib/commonjs/skia/web/JsiSkVertices.js +2 -2
  446. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
  447. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
  448. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  449. package/lib/commonjs/skia/web/JsiVideo.js +2 -2
  450. package/lib/commonjs/skia/web/JsiVideo.js.map +1 -1
  451. package/lib/commonjs/skia/web/index.js.map +1 -1
  452. package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -1
  453. package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -1
  454. package/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +0 -1
  455. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +1 -1
  456. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -1
  457. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.d.ts +0 -1
  458. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +1 -1
  459. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  460. package/lib/commonjs/views/SkiaBaseWebView.js +4 -4
  461. package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
  462. package/lib/commonjs/views/SkiaDomView.d.ts +0 -4
  463. package/lib/commonjs/views/SkiaDomView.js +4 -12
  464. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  465. package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
  466. package/lib/commonjs/views/SkiaJSDomView.js +4 -4
  467. package/lib/commonjs/views/SkiaJSDomView.js.map +1 -1
  468. package/lib/commonjs/views/SkiaJSDomView.web.js.map +1 -1
  469. package/lib/commonjs/views/SkiaPictureView.js +4 -4
  470. package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
  471. package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -1
  472. package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -1
  473. package/lib/commonjs/views/api.js.map +1 -1
  474. package/lib/commonjs/views/index.js.map +1 -1
  475. package/lib/commonjs/views/types.js.map +1 -1
  476. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  477. package/lib/commonjs/web/LoadSkiaWeb.js +1 -1
  478. package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
  479. package/lib/commonjs/web/WithSkiaWeb.js +1 -1
  480. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  481. package/lib/commonjs/web/index.js.map +1 -1
  482. package/lib/module/Platform/IPlatform.d.ts +0 -1
  483. package/lib/module/Platform/IPlatform.js.map +1 -1
  484. package/lib/module/Platform/Platform.js.map +1 -1
  485. package/lib/module/Platform/Platform.web.js +4 -0
  486. package/lib/module/Platform/Platform.web.js.map +1 -1
  487. package/lib/module/Platform/index.js.map +1 -1
  488. package/lib/module/animation/functions/index.js.map +1 -1
  489. package/lib/module/animation/functions/interpolate.js.map +1 -1
  490. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  491. package/lib/module/animation/functions/interpolatePaths.js.map +1 -1
  492. package/lib/module/animation/functions/interpolateVector.js.map +1 -1
  493. package/lib/module/animation/index.js.map +1 -1
  494. package/lib/module/dom/nodes/DrawingNode.js +2 -2
  495. package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
  496. package/lib/module/dom/nodes/GroupNode.js.map +1 -1
  497. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  498. package/lib/module/dom/nodes/LayerNode.js.map +1 -1
  499. package/lib/module/dom/nodes/Node.js +2 -2
  500. package/lib/module/dom/nodes/Node.js.map +1 -1
  501. package/lib/module/dom/nodes/PaintNode.js.map +1 -1
  502. package/lib/module/dom/nodes/RenderNode.js +2 -2
  503. package/lib/module/dom/nodes/RenderNode.js.map +1 -1
  504. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  505. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -1
  506. package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -1
  507. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
  508. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
  509. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
  510. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  511. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -1
  512. package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
  513. package/lib/module/dom/nodes/drawings/AtlasNode.js.map +1 -1
  514. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  515. package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
  516. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
  517. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  518. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
  519. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
  520. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
  521. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
  522. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
  523. package/lib/module/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  524. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
  525. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
  526. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
  527. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
  528. package/lib/module/dom/nodes/drawings/RRectNode.js +2 -2
  529. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
  530. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
  531. package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
  532. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
  533. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  534. package/lib/module/dom/nodes/index.js.map +1 -1
  535. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -1
  536. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
  537. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
  538. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
  539. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
  540. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
  541. package/lib/module/dom/nodes/paint/index.js.map +1 -1
  542. package/lib/module/dom/types/ColorFilters.js.map +1 -1
  543. package/lib/module/dom/types/Common.js.map +1 -1
  544. package/lib/module/dom/types/DeclarationContext.js +2 -2
  545. package/lib/module/dom/types/DeclarationContext.js.map +1 -1
  546. package/lib/module/dom/types/DrawingContext.js +2 -2
  547. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  548. package/lib/module/dom/types/Drawings.js.map +1 -1
  549. package/lib/module/dom/types/ImageFilters.js.map +1 -1
  550. package/lib/module/dom/types/MaskFilters.js.map +1 -1
  551. package/lib/module/dom/types/Node.js.map +1 -1
  552. package/lib/module/dom/types/NodeType.js.map +1 -1
  553. package/lib/module/dom/types/Paragraph.js.map +1 -1
  554. package/lib/module/dom/types/PathEffects.js.map +1 -1
  555. package/lib/module/dom/types/Shaders.js.map +1 -1
  556. package/lib/module/dom/types/SkDOM.js.map +1 -1
  557. package/lib/module/dom/types/index.js.map +1 -1
  558. package/lib/module/external/ModuleProxy.js.map +1 -1
  559. package/lib/module/external/index.js.map +1 -1
  560. package/lib/module/external/reanimated/ReanimatedProxy.js.map +1 -1
  561. package/lib/module/external/reanimated/buffers.d.ts +4 -4
  562. package/lib/module/external/reanimated/buffers.js.map +1 -1
  563. package/lib/module/external/reanimated/index.js.map +1 -1
  564. package/lib/module/external/reanimated/interpolators.js.map +1 -1
  565. package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
  566. package/lib/module/external/reanimated/textures.js.map +1 -1
  567. package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
  568. package/lib/module/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  569. package/lib/module/external/reanimated/useVideo.js.map +1 -1
  570. package/lib/module/external/reanimated/useVideoLoading.js.map +1 -1
  571. package/lib/module/external/reanimated/useVideoLoading.web.js.map +1 -1
  572. package/lib/module/headless/index.js.map +1 -1
  573. package/lib/module/index.js.map +1 -1
  574. package/lib/module/mock/index.js +4 -0
  575. package/lib/module/mock/index.js.map +1 -1
  576. package/lib/module/renderer/Canvas.d.ts +2 -2
  577. package/lib/module/renderer/Canvas.js +1 -1
  578. package/lib/module/renderer/Canvas.js.map +1 -1
  579. package/lib/module/renderer/Container.d.ts +1 -0
  580. package/lib/module/renderer/Container.js +3 -2
  581. package/lib/module/renderer/Container.js.map +1 -1
  582. package/lib/module/renderer/DrawingContext.js.map +1 -1
  583. package/lib/module/renderer/HostComponents.js.map +1 -1
  584. package/lib/module/renderer/HostConfig.d.ts +0 -1
  585. package/lib/module/renderer/HostConfig.js +7 -3
  586. package/lib/module/renderer/HostConfig.js.map +1 -1
  587. package/lib/module/renderer/Offscreen.js.map +1 -1
  588. package/lib/module/renderer/Reconciler.js +3 -2
  589. package/lib/module/renderer/Reconciler.js.map +1 -1
  590. package/lib/module/renderer/components/Blend.js.map +1 -1
  591. package/lib/module/renderer/components/Group.js +2 -2
  592. package/lib/module/renderer/components/Group.js.map +1 -1
  593. package/lib/module/renderer/components/Mask.js.map +1 -1
  594. package/lib/module/renderer/components/Paint.js.map +1 -1
  595. package/lib/module/renderer/components/Picture.js.map +1 -1
  596. package/lib/module/renderer/components/backdrop/BackdropBlur.js +1 -1
  597. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  598. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  599. package/lib/module/renderer/components/backdrop/index.js.map +1 -1
  600. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  601. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  602. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  603. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  604. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  605. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  606. package/lib/module/renderer/components/colorFilters/index.js.map +1 -1
  607. package/lib/module/renderer/components/image/Image.js.map +1 -1
  608. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  609. package/lib/module/renderer/components/image/ImageShader.js +1 -1
  610. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  611. package/lib/module/renderer/components/image/index.js.map +1 -1
  612. package/lib/module/renderer/components/imageFilters/Blur.js +1 -1
  613. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  614. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  615. package/lib/module/renderer/components/imageFilters/Morphology.js +1 -1
  616. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  617. package/lib/module/renderer/components/imageFilters/Offset.js +1 -1
  618. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  619. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  620. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  621. package/lib/module/renderer/components/imageFilters/index.js.map +1 -1
  622. package/lib/module/renderer/components/index.js.map +1 -1
  623. package/lib/module/renderer/components/maskFilters/Blur.js +1 -1
  624. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  625. package/lib/module/renderer/components/maskFilters/index.js.map +1 -1
  626. package/lib/module/renderer/components/paragraph/Paragraph.js.map +1 -1
  627. package/lib/module/renderer/components/paragraph/index.js.map +1 -1
  628. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  629. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  630. package/lib/module/renderer/components/pathEffects/Discrete.js +1 -1
  631. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  632. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  633. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  634. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  635. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  636. package/lib/module/renderer/components/pathEffects/index.js.map +1 -1
  637. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  638. package/lib/module/renderer/components/shaders/FractalNoise.js +1 -1
  639. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  640. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  641. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  642. package/lib/module/renderer/components/shaders/Shader.js +1 -1
  643. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  644. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -1
  645. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  646. package/lib/module/renderer/components/shaders/Turbulence.js +1 -1
  647. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  648. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  649. package/lib/module/renderer/components/shaders/index.js.map +1 -1
  650. package/lib/module/renderer/components/shapes/Atlas.js.map +1 -1
  651. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  652. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  653. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  654. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  655. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  656. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  657. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  658. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  659. package/lib/module/renderer/components/shapes/Path.js +1 -1
  660. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  661. package/lib/module/renderer/components/shapes/Points.js +1 -1
  662. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  663. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  664. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  665. package/lib/module/renderer/components/shapes/Vertices.js +1 -1
  666. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  667. package/lib/module/renderer/components/shapes/index.js.map +1 -1
  668. package/lib/module/renderer/components/text/Glyphs.js +1 -1
  669. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  670. package/lib/module/renderer/components/text/Text.js +1 -1
  671. package/lib/module/renderer/components/text/Text.js.map +1 -1
  672. package/lib/module/renderer/components/text/TextBlob.js +1 -1
  673. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  674. package/lib/module/renderer/components/text/TextPath.js +1 -1
  675. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  676. package/lib/module/renderer/components/text/index.js.map +1 -1
  677. package/lib/module/renderer/index.js.map +1 -1
  678. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  679. package/lib/module/renderer/processors/Animations/index.js.map +1 -1
  680. package/lib/module/renderer/processors/index.js.map +1 -1
  681. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  682. package/lib/module/renderer/processors/math/Math.js.map +1 -1
  683. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  684. package/lib/module/renderer/processors/math/index.js.map +1 -1
  685. package/lib/module/renderer/typeddash.js.map +1 -1
  686. package/lib/module/skia/NativeSetup.js.map +1 -1
  687. package/lib/module/skia/Skia.js.map +1 -1
  688. package/lib/module/skia/Skia.web.js.map +1 -1
  689. package/lib/module/skia/core/AnimatedImage.d.ts +1 -1
  690. package/lib/module/skia/core/AnimatedImage.js.map +1 -1
  691. package/lib/module/skia/core/Data.d.ts +3 -3
  692. package/lib/module/skia/core/Data.js.map +1 -1
  693. package/lib/module/skia/core/Font.d.ts +1 -1
  694. package/lib/module/skia/core/Font.js.map +1 -1
  695. package/lib/module/skia/core/Image.d.ts +2 -3
  696. package/lib/module/skia/core/Image.js.map +1 -1
  697. package/lib/module/skia/core/Matrix.js.map +1 -1
  698. package/lib/module/skia/core/Picture.d.ts +1 -1
  699. package/lib/module/skia/core/Picture.js.map +1 -1
  700. package/lib/module/skia/core/RRect.js.map +1 -1
  701. package/lib/module/skia/core/Rect.js.map +1 -1
  702. package/lib/module/skia/core/SVG.d.ts +1 -1
  703. package/lib/module/skia/core/SVG.js.map +1 -1
  704. package/lib/module/skia/core/SVG.web.d.ts +1 -1
  705. package/lib/module/skia/core/SVG.web.js.map +1 -1
  706. package/lib/module/skia/core/Typeface.d.ts +1 -1
  707. package/lib/module/skia/core/Typeface.js.map +1 -1
  708. package/lib/module/skia/core/Vector.js.map +1 -1
  709. package/lib/module/skia/core/index.js.map +1 -1
  710. package/lib/module/skia/index.js.map +1 -1
  711. package/lib/module/skia/types/AnimatedImage/AnimatedImage.js.map +1 -1
  712. package/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.js.map +1 -1
  713. package/lib/module/skia/types/AnimatedImage/index.js.map +1 -1
  714. package/lib/module/skia/types/Canvas.js.map +1 -1
  715. package/lib/module/skia/types/Color.js.map +1 -1
  716. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  717. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -1
  718. package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
  719. package/lib/module/skia/types/ContourMeasure.js.map +1 -1
  720. package/lib/module/skia/types/Data/Data.d.ts +1 -1
  721. package/lib/module/skia/types/Data/Data.js.map +1 -1
  722. package/lib/module/skia/types/Data/DataFactory.js.map +1 -1
  723. package/lib/module/skia/types/Data/index.js.map +1 -1
  724. package/lib/module/skia/types/Font/Font.js.map +1 -1
  725. package/lib/module/skia/types/Font/FontMgr.js.map +1 -1
  726. package/lib/module/skia/types/Font/FontMgrFactory.js.map +1 -1
  727. package/lib/module/skia/types/Font/index.js.map +1 -1
  728. package/lib/module/skia/types/Image/Image.js.map +1 -1
  729. package/lib/module/skia/types/Image/ImageFactory.d.ts +16 -16
  730. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  731. package/lib/module/skia/types/Image/index.js.map +1 -1
  732. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  733. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  734. package/lib/module/skia/types/ImageFilter/index.js.map +1 -1
  735. package/lib/module/skia/types/JsiInstance.js.map +1 -1
  736. package/lib/module/skia/types/MaskFilter.d.ts +3 -3
  737. package/lib/module/skia/types/MaskFilter.js.map +1 -1
  738. package/lib/module/skia/types/Matrix.js.map +1 -1
  739. package/lib/module/skia/types/Matrix4.js.map +1 -1
  740. package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -3
  741. package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
  742. package/lib/module/skia/types/NativeBuffer/index.js.map +1 -1
  743. package/lib/module/skia/types/Paint/BlendMode.d.ts +28 -28
  744. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
  745. package/lib/module/skia/types/Paint/Paint.js.map +1 -1
  746. package/lib/module/skia/types/Paint/index.js.map +1 -1
  747. package/lib/module/skia/types/Paragraph/Paragraph.js.map +1 -1
  748. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  749. package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  750. package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -1
  751. package/lib/module/skia/types/Paragraph/TypefaceFontProvider.js.map +1 -1
  752. package/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.js.map +1 -1
  753. package/lib/module/skia/types/Paragraph/index.js.map +1 -1
  754. package/lib/module/skia/types/Path/Path.d.ts +4 -4
  755. package/lib/module/skia/types/Path/Path.js.map +1 -1
  756. package/lib/module/skia/types/Path/PathFactory.js.map +1 -1
  757. package/lib/module/skia/types/Path/index.js.map +1 -1
  758. package/lib/module/skia/types/PathEffect.js.map +1 -1
  759. package/lib/module/skia/types/Picture/Picture.js.map +1 -1
  760. package/lib/module/skia/types/Picture/PictureFactory.js.map +1 -1
  761. package/lib/module/skia/types/Picture/PictureRecorder.js.map +1 -1
  762. package/lib/module/skia/types/Picture/index.js.map +1 -1
  763. package/lib/module/skia/types/Point.js.map +1 -1
  764. package/lib/module/skia/types/RRect.js.map +1 -1
  765. package/lib/module/skia/types/RSXform.js.map +1 -1
  766. package/lib/module/skia/types/Rect.js.map +1 -1
  767. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
  768. package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -1
  769. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
  770. package/lib/module/skia/types/SVG/SVG.js.map +1 -1
  771. package/lib/module/skia/types/SVG/SVGFactory.js.map +1 -1
  772. package/lib/module/skia/types/SVG/index.js.map +1 -1
  773. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  774. package/lib/module/skia/types/Shader/ShaderFactory.js.map +1 -1
  775. package/lib/module/skia/types/Shader/index.js.map +1 -1
  776. package/lib/module/skia/types/Size.js.map +1 -1
  777. package/lib/module/skia/types/Skia.js.map +1 -1
  778. package/lib/module/skia/types/Surface/Surface.js.map +1 -1
  779. package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -1
  780. package/lib/module/skia/types/Surface/index.js.map +1 -1
  781. package/lib/module/skia/types/TextBlob.js.map +1 -1
  782. package/lib/module/skia/types/Typeface/Typeface.js.map +1 -1
  783. package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -1
  784. package/lib/module/skia/types/Typeface/index.js.map +1 -1
  785. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -1
  786. package/lib/module/skia/types/Vertices/index.js.map +1 -1
  787. package/lib/module/skia/types/Video/Video.js.map +1 -1
  788. package/lib/module/skia/types/Video/index.js.map +1 -1
  789. package/lib/module/skia/types/index.js.map +1 -1
  790. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js +2 -2
  791. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -1
  792. package/lib/module/skia/web/Host.js +2 -2
  793. package/lib/module/skia/web/Host.js.map +1 -1
  794. package/lib/module/skia/web/JsiSkAnimatedImage.js +2 -2
  795. package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
  796. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  797. package/lib/module/skia/web/JsiSkCanvas.d.ts +1 -1
  798. package/lib/module/skia/web/JsiSkCanvas.js +2 -2
  799. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  800. package/lib/module/skia/web/JsiSkColor.js.map +1 -1
  801. package/lib/module/skia/web/JsiSkColorFilter.js +2 -2
  802. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  803. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  804. package/lib/module/skia/web/JsiSkContourMeasure.js +2 -2
  805. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  806. package/lib/module/skia/web/JsiSkContourMeasureIter.js +2 -2
  807. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  808. package/lib/module/skia/web/JsiSkData.js +2 -2
  809. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  810. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
  811. package/lib/module/skia/web/JsiSkFont.js +2 -2
  812. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  813. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -1
  814. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  815. package/lib/module/skia/web/JsiSkImage.js +2 -2
  816. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  817. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  818. package/lib/module/skia/web/JsiSkImageFilter.js +2 -2
  819. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  820. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  821. package/lib/module/skia/web/JsiSkMaskFilter.js +2 -2
  822. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  823. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  824. package/lib/module/skia/web/JsiSkMatrix.js +2 -2
  825. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  826. package/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +1 -1
  827. package/lib/module/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
  828. package/lib/module/skia/web/JsiSkPaint.js +2 -2
  829. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  830. package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
  831. package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  832. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  833. package/lib/module/skia/web/JsiSkParagraphStyle.d.ts +1 -1
  834. package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
  835. package/lib/module/skia/web/JsiSkPath.js +2 -2
  836. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  837. package/lib/module/skia/web/JsiSkPathEffect.js +2 -2
  838. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  839. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  840. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
  841. package/lib/module/skia/web/JsiSkPicture.js +2 -2
  842. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  843. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
  844. package/lib/module/skia/web/JsiSkPictureRecorder.js +2 -2
  845. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  846. package/lib/module/skia/web/JsiSkPoint.js +2 -2
  847. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  848. package/lib/module/skia/web/JsiSkRRect.js +2 -2
  849. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  850. package/lib/module/skia/web/JsiSkRSXform.js +2 -2
  851. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  852. package/lib/module/skia/web/JsiSkRect.js +2 -2
  853. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  854. package/lib/module/skia/web/JsiSkRuntimeEffect.js +2 -2
  855. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  856. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  857. package/lib/module/skia/web/JsiSkSVG.js +2 -2
  858. package/lib/module/skia/web/JsiSkSVG.js.map +1 -1
  859. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
  860. package/lib/module/skia/web/JsiSkShader.js +2 -2
  861. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  862. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
  863. package/lib/module/skia/web/JsiSkSurface.js +2 -2
  864. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  865. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  866. package/lib/module/skia/web/JsiSkTextBlob.js +2 -2
  867. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  868. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  869. package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -1
  870. package/lib/module/skia/web/JsiSkTypeface.js +2 -2
  871. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  872. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  873. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +2 -2
  874. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  875. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  876. package/lib/module/skia/web/JsiSkVertices.js +2 -2
  877. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  878. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
  879. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  880. package/lib/module/skia/web/JsiVideo.js +2 -2
  881. package/lib/module/skia/web/JsiVideo.js.map +1 -1
  882. package/lib/module/skia/web/index.js.map +1 -1
  883. package/lib/module/specs/NativeSkiaModule.js.map +1 -1
  884. package/lib/module/specs/NativeSkiaModule.web.js.map +1 -1
  885. package/lib/module/specs/SkiaDomViewNativeComponent.d.ts +0 -1
  886. package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -1
  887. package/lib/module/specs/SkiaPictureViewNativeComponent.d.ts +0 -1
  888. package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  889. package/lib/module/views/SkiaBaseWebView.js +3 -3
  890. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  891. package/lib/module/views/SkiaDomView.d.ts +0 -4
  892. package/lib/module/views/SkiaDomView.js +3 -11
  893. package/lib/module/views/SkiaDomView.js.map +1 -1
  894. package/lib/module/views/SkiaDomView.web.js.map +1 -1
  895. package/lib/module/views/SkiaJSDomView.js +3 -3
  896. package/lib/module/views/SkiaJSDomView.js.map +1 -1
  897. package/lib/module/views/SkiaJSDomView.web.js.map +1 -1
  898. package/lib/module/views/SkiaPictureView.js +3 -3
  899. package/lib/module/views/SkiaPictureView.js.map +1 -1
  900. package/lib/module/views/SkiaPictureView.web.js.map +1 -1
  901. package/lib/module/views/SkiaViewNativeId.js.map +1 -1
  902. package/lib/module/views/api.js.map +1 -1
  903. package/lib/module/views/index.js.map +1 -1
  904. package/lib/module/views/types.js.map +1 -1
  905. package/lib/module/views/useTouchHandler.js.map +1 -1
  906. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  907. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  908. package/lib/module/web/index.js.map +1 -1
  909. package/lib/typescript/jest.config.d.ts +2 -0
  910. package/lib/typescript/lib/commonjs/Platform/IPlatform.d.ts +1 -0
  911. package/lib/typescript/lib/commonjs/Platform/Platform.d.ts +9 -0
  912. package/lib/typescript/lib/commonjs/Platform/Platform.web.d.ts +14 -0
  913. package/lib/typescript/lib/commonjs/Platform/index.d.ts +1 -0
  914. package/lib/typescript/lib/commonjs/animation/functions/index.d.ts +1 -0
  915. package/lib/typescript/lib/commonjs/animation/functions/interpolate.d.ts +7 -0
  916. package/lib/typescript/lib/commonjs/animation/functions/interpolateColors.d.ts +3 -0
  917. package/lib/typescript/lib/commonjs/animation/functions/interpolatePaths.d.ts +18 -0
  918. package/lib/typescript/lib/commonjs/animation/functions/interpolateVector.d.ts +9 -0
  919. package/lib/typescript/lib/commonjs/animation/index.d.ts +1 -0
  920. package/lib/typescript/lib/commonjs/dom/nodes/DrawingNode.d.ts +6 -0
  921. package/lib/typescript/lib/commonjs/dom/nodes/GroupNode.d.ts +6 -0
  922. package/lib/typescript/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +70 -0
  923. package/lib/typescript/lib/commonjs/dom/nodes/LayerNode.d.ts +6 -0
  924. package/lib/typescript/lib/commonjs/dom/nodes/Node.d.ts +20 -0
  925. package/lib/typescript/lib/commonjs/dom/nodes/PaintNode.d.ts +6 -0
  926. package/lib/typescript/lib/commonjs/dom/nodes/RenderNode.d.ts +16 -0
  927. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Circle.d.ts +3 -0
  928. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Enum.d.ts +2 -0
  929. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Fitting.d.ts +45 -0
  930. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Gradient.d.ts +16 -0
  931. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Path.d.ts +3 -0
  932. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Radius.d.ts +2 -0
  933. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Rect.d.ts +4 -0
  934. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Transform.d.ts +2 -0
  935. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/index.d.ts +1 -0
  936. package/lib/typescript/lib/commonjs/dom/nodes/drawings/AtlasNode.d.ts +10 -0
  937. package/lib/typescript/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.d.ts +10 -0
  938. package/lib/typescript/lib/commonjs/dom/nodes/drawings/Box.d.ts +15 -0
  939. package/lib/typescript/lib/commonjs/dom/nodes/drawings/CircleNode.d.ts +10 -0
  940. package/lib/typescript/lib/commonjs/dom/nodes/drawings/DiffRectNode.d.ts +10 -0
  941. package/lib/typescript/lib/commonjs/dom/nodes/drawings/FillNode.d.ts +10 -0
  942. package/lib/typescript/lib/commonjs/dom/nodes/drawings/ImageNode.d.ts +13 -0
  943. package/lib/typescript/lib/commonjs/dom/nodes/drawings/ImageSVG.d.ts +9 -0
  944. package/lib/typescript/lib/commonjs/dom/nodes/drawings/LineNode.d.ts +10 -0
  945. package/lib/typescript/lib/commonjs/dom/nodes/drawings/OvalNode.d.ts +10 -0
  946. package/lib/typescript/lib/commonjs/dom/nodes/drawings/ParagraphNode.d.ts +9 -0
  947. package/lib/typescript/lib/commonjs/dom/nodes/drawings/PatchNode.d.ts +14 -0
  948. package/lib/typescript/lib/commonjs/dom/nodes/drawings/PathNode.d.ts +10 -0
  949. package/lib/typescript/lib/commonjs/dom/nodes/drawings/PictureNode.d.ts +9 -0
  950. package/lib/typescript/lib/commonjs/dom/nodes/drawings/PointsNode.d.ts +10 -0
  951. package/lib/typescript/lib/commonjs/dom/nodes/drawings/RRectNode.d.ts +10 -0
  952. package/lib/typescript/lib/commonjs/dom/nodes/drawings/RectNode.d.ts +10 -0
  953. package/lib/typescript/lib/commonjs/dom/nodes/drawings/Text.d.ts +34 -0
  954. package/lib/typescript/lib/commonjs/dom/nodes/drawings/VerticesNode.d.ts +10 -0
  955. package/lib/typescript/lib/commonjs/dom/nodes/drawings/index.d.ts +1 -0
  956. package/lib/typescript/lib/commonjs/dom/nodes/index.d.ts +1 -0
  957. package/lib/typescript/lib/commonjs/dom/nodes/paint/BlendNode.d.ts +6 -0
  958. package/lib/typescript/lib/commonjs/dom/nodes/paint/ColorFilters.d.ts +29 -0
  959. package/lib/typescript/lib/commonjs/dom/nodes/paint/ImageFilters.d.ts +35 -0
  960. package/lib/typescript/lib/commonjs/dom/nodes/paint/MaskFilters.d.ts +6 -0
  961. package/lib/typescript/lib/commonjs/dom/nodes/paint/PathEffects.d.ts +34 -0
  962. package/lib/typescript/lib/commonjs/dom/nodes/paint/Shaders.d.ts +40 -0
  963. package/lib/typescript/lib/commonjs/dom/nodes/paint/index.d.ts +1 -0
  964. package/lib/typescript/lib/commonjs/dom/types/ColorFilters.d.ts +1 -0
  965. package/lib/typescript/lib/commonjs/dom/types/Common.d.ts +1 -0
  966. package/lib/typescript/lib/commonjs/dom/types/DeclarationContext.d.ts +26 -0
  967. package/lib/typescript/lib/commonjs/dom/types/DrawingContext.d.ts +13 -0
  968. package/lib/typescript/lib/commonjs/dom/types/Drawings.d.ts +1 -0
  969. package/lib/typescript/lib/commonjs/dom/types/ImageFilters.d.ts +1 -0
  970. package/lib/typescript/lib/commonjs/dom/types/MaskFilters.d.ts +1 -0
  971. package/lib/typescript/lib/commonjs/dom/types/Node.d.ts +1 -0
  972. package/lib/typescript/lib/commonjs/dom/types/NodeType.d.ts +2 -0
  973. package/lib/typescript/lib/commonjs/dom/types/Paragraph.d.ts +1 -0
  974. package/lib/typescript/lib/commonjs/dom/types/PathEffects.d.ts +1 -0
  975. package/lib/typescript/lib/commonjs/dom/types/Shaders.d.ts +1 -0
  976. package/lib/typescript/lib/commonjs/dom/types/SkDOM.d.ts +1 -0
  977. package/lib/typescript/lib/commonjs/dom/types/index.d.ts +1 -0
  978. package/lib/typescript/lib/commonjs/external/ModuleProxy.d.ts +11 -0
  979. package/lib/typescript/lib/commonjs/external/index.d.ts +1 -0
  980. package/lib/typescript/lib/commonjs/external/reanimated/ReanimatedProxy.d.ts +5 -0
  981. package/lib/typescript/lib/commonjs/external/reanimated/buffers.d.ts +5 -0
  982. package/lib/typescript/lib/commonjs/external/reanimated/index.d.ts +1 -0
  983. package/lib/typescript/lib/commonjs/external/reanimated/interpolators.d.ts +6 -0
  984. package/lib/typescript/lib/commonjs/external/reanimated/renderHelpers.d.ts +4 -0
  985. package/lib/typescript/lib/commonjs/external/reanimated/textures.d.ts +6 -0
  986. package/lib/typescript/lib/commonjs/external/reanimated/useAnimatedImageValue.d.ts +2 -0
  987. package/lib/typescript/lib/commonjs/external/reanimated/useDerivedValueOnJS.d.ts +2 -0
  988. package/lib/typescript/lib/commonjs/external/reanimated/useVideo.d.ts +9 -0
  989. package/lib/typescript/lib/commonjs/external/reanimated/useVideoLoading.d.ts +2 -0
  990. package/lib/typescript/lib/commonjs/external/reanimated/useVideoLoading.web.d.ts +2 -0
  991. package/lib/typescript/lib/commonjs/headless/index.d.ts +6 -0
  992. package/lib/typescript/lib/commonjs/index.d.ts +3 -0
  993. package/lib/typescript/lib/commonjs/mock/index.d.ts +64 -0
  994. package/lib/typescript/lib/commonjs/renderer/Canvas.d.ts +3 -0
  995. package/lib/typescript/lib/commonjs/renderer/Container.d.ts +10 -0
  996. package/lib/typescript/lib/commonjs/renderer/DrawingContext.d.ts +1 -0
  997. package/lib/typescript/lib/commonjs/renderer/HostComponents.d.ts +3 -0
  998. package/lib/typescript/lib/commonjs/renderer/HostConfig.d.ts +38 -0
  999. package/lib/typescript/lib/commonjs/renderer/Offscreen.d.ts +5 -0
  1000. package/lib/typescript/lib/commonjs/renderer/Reconciler.d.ts +10 -0
  1001. package/lib/typescript/lib/commonjs/renderer/components/Blend.d.ts +2 -0
  1002. package/lib/typescript/lib/commonjs/renderer/components/Group.d.ts +5 -0
  1003. package/lib/typescript/lib/commonjs/renderer/components/Mask.d.ts +7 -0
  1004. package/lib/typescript/lib/commonjs/renderer/components/Paint.d.ts +2 -0
  1005. package/lib/typescript/lib/commonjs/renderer/components/Picture.d.ts +2 -0
  1006. package/lib/typescript/lib/commonjs/renderer/components/backdrop/BackdropBlur.d.ts +6 -0
  1007. package/lib/typescript/lib/commonjs/renderer/components/backdrop/BackdropFilter.d.ts +6 -0
  1008. package/lib/typescript/lib/commonjs/renderer/components/backdrop/index.d.ts +1 -0
  1009. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/BlendColor.d.ts +2 -0
  1010. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/Lerp.d.ts +2 -0
  1011. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +2 -0
  1012. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.d.ts +2 -0
  1013. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/Matrix.d.ts +3 -0
  1014. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +2 -0
  1015. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/index.d.ts +1 -0
  1016. package/lib/typescript/lib/commonjs/renderer/components/image/Image.d.ts +2 -0
  1017. package/lib/typescript/lib/commonjs/renderer/components/image/ImageSVG.d.ts +2 -0
  1018. package/lib/typescript/lib/commonjs/renderer/components/image/ImageShader.d.ts +10 -0
  1019. package/lib/typescript/lib/commonjs/renderer/components/image/index.d.ts +1 -0
  1020. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Blur.d.ts +5 -0
  1021. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/DisplacementMap.d.ts +2 -0
  1022. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Morphology.d.ts +5 -0
  1023. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Offset.d.ts +6 -0
  1024. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/RuntimeShader.d.ts +2 -0
  1025. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Shadow.d.ts +2 -0
  1026. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/index.d.ts +1 -0
  1027. package/lib/typescript/lib/commonjs/renderer/components/index.d.ts +1 -0
  1028. package/lib/typescript/lib/commonjs/renderer/components/maskFilters/Blur.d.ts +6 -0
  1029. package/lib/typescript/lib/commonjs/renderer/components/maskFilters/index.d.ts +1 -0
  1030. package/lib/typescript/lib/commonjs/renderer/components/paragraph/Paragraph.d.ts +2 -0
  1031. package/lib/typescript/lib/commonjs/renderer/components/paragraph/index.d.ts +1 -0
  1032. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Corner.d.ts +2 -0
  1033. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Dash.d.ts +2 -0
  1034. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Discrete.d.ts +5 -0
  1035. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Line2D.d.ts +2 -0
  1036. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Path1D.d.ts +2 -0
  1037. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Path2D.d.ts +2 -0
  1038. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Sum.d.ts +2 -0
  1039. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/index.d.ts +1 -0
  1040. package/lib/typescript/lib/commonjs/renderer/components/shaders/Color.d.ts +2 -0
  1041. package/lib/typescript/lib/commonjs/renderer/components/shaders/FractalNoise.d.ts +7 -0
  1042. package/lib/typescript/lib/commonjs/renderer/components/shaders/LinearGradient.d.ts +2 -0
  1043. package/lib/typescript/lib/commonjs/renderer/components/shaders/RadialGradient.d.ts +2 -0
  1044. package/lib/typescript/lib/commonjs/renderer/components/shaders/Shader.d.ts +5 -0
  1045. package/lib/typescript/lib/commonjs/renderer/components/shaders/ShaderLib.d.ts +8 -0
  1046. package/lib/typescript/lib/commonjs/renderer/components/shaders/SweepGradient.d.ts +2 -0
  1047. package/lib/typescript/lib/commonjs/renderer/components/shaders/Turbulence.d.ts +7 -0
  1048. package/lib/typescript/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -0
  1049. package/lib/typescript/lib/commonjs/renderer/components/shaders/index.d.ts +1 -0
  1050. package/lib/typescript/lib/commonjs/renderer/components/shapes/Atlas.d.ts +2 -0
  1051. package/lib/typescript/lib/commonjs/renderer/components/shapes/Box.d.ts +3 -0
  1052. package/lib/typescript/lib/commonjs/renderer/components/shapes/Circle.d.ts +2 -0
  1053. package/lib/typescript/lib/commonjs/renderer/components/shapes/DiffRect.d.ts +2 -0
  1054. package/lib/typescript/lib/commonjs/renderer/components/shapes/Fill.d.ts +2 -0
  1055. package/lib/typescript/lib/commonjs/renderer/components/shapes/FitBox.d.ts +8 -0
  1056. package/lib/typescript/lib/commonjs/renderer/components/shapes/Line.d.ts +2 -0
  1057. package/lib/typescript/lib/commonjs/renderer/components/shapes/Oval.d.ts +2 -0
  1058. package/lib/typescript/lib/commonjs/renderer/components/shapes/Patch.d.ts +2 -0
  1059. package/lib/typescript/lib/commonjs/renderer/components/shapes/Path.d.ts +6 -0
  1060. package/lib/typescript/lib/commonjs/renderer/components/shapes/Points.d.ts +5 -0
  1061. package/lib/typescript/lib/commonjs/renderer/components/shapes/Rect.d.ts +2 -0
  1062. package/lib/typescript/lib/commonjs/renderer/components/shapes/RoundedRect.d.ts +2 -0
  1063. package/lib/typescript/lib/commonjs/renderer/components/shapes/Vertices.d.ts +5 -0
  1064. package/lib/typescript/lib/commonjs/renderer/components/shapes/index.d.ts +1 -0
  1065. package/lib/typescript/lib/commonjs/renderer/components/text/Glyphs.d.ts +6 -0
  1066. package/lib/typescript/lib/commonjs/renderer/components/text/Text.d.ts +6 -0
  1067. package/lib/typescript/lib/commonjs/renderer/components/text/TextBlob.d.ts +6 -0
  1068. package/lib/typescript/lib/commonjs/renderer/components/text/TextPath.d.ts +5 -0
  1069. package/lib/typescript/lib/commonjs/renderer/components/text/index.d.ts +1 -0
  1070. package/lib/typescript/lib/commonjs/renderer/index.d.ts +1 -0
  1071. package/lib/typescript/lib/commonjs/renderer/processors/Animations/Animations.d.ts +0 -0
  1072. package/lib/typescript/lib/commonjs/renderer/processors/Animations/index.d.ts +1 -0
  1073. package/lib/typescript/lib/commonjs/renderer/processors/index.d.ts +1 -0
  1074. package/lib/typescript/lib/commonjs/renderer/processors/math/Coordinates.d.ts +25 -0
  1075. package/lib/typescript/lib/commonjs/renderer/processors/math/Math.d.ts +10 -0
  1076. package/lib/typescript/lib/commonjs/renderer/processors/math/Transforms.d.ts +5 -0
  1077. package/lib/typescript/lib/commonjs/renderer/processors/math/index.d.ts +1 -0
  1078. package/lib/typescript/lib/commonjs/renderer/typeddash.d.ts +4 -0
  1079. package/lib/typescript/lib/commonjs/skia/NativeSetup.d.ts +1 -0
  1080. package/lib/typescript/lib/commonjs/skia/Skia.d.ts +2 -0
  1081. package/lib/typescript/lib/commonjs/skia/Skia.web.d.ts +2 -0
  1082. package/lib/typescript/lib/commonjs/skia/core/AnimatedImage.d.ts +5 -0
  1083. package/lib/typescript/lib/commonjs/skia/core/Data.d.ts +5 -0
  1084. package/lib/typescript/lib/commonjs/skia/core/Font.d.ts +8 -0
  1085. package/lib/typescript/lib/commonjs/skia/core/Image.d.ts +6 -0
  1086. package/lib/typescript/lib/commonjs/skia/core/Matrix.d.ts +2 -0
  1087. package/lib/typescript/lib/commonjs/skia/core/Picture.d.ts +8 -0
  1088. package/lib/typescript/lib/commonjs/skia/core/RRect.d.ts +2 -0
  1089. package/lib/typescript/lib/commonjs/skia/core/Rect.d.ts +8 -0
  1090. package/lib/typescript/lib/commonjs/skia/core/SVG.d.ts +2 -0
  1091. package/lib/typescript/lib/commonjs/skia/core/SVG.web.d.ts +2 -0
  1092. package/lib/typescript/lib/commonjs/skia/core/Typeface.d.ts +5 -0
  1093. package/lib/typescript/lib/commonjs/skia/core/Vector.d.ts +7 -0
  1094. package/lib/typescript/lib/commonjs/skia/core/index.d.ts +1 -0
  1095. package/lib/typescript/lib/commonjs/skia/index.d.ts +2 -0
  1096. package/lib/typescript/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.d.ts +1 -0
  1097. package/lib/typescript/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +1 -0
  1098. package/lib/typescript/lib/commonjs/skia/types/AnimatedImage/index.d.ts +1 -0
  1099. package/lib/typescript/lib/commonjs/skia/types/Canvas.d.ts +3 -0
  1100. package/lib/typescript/lib/commonjs/skia/types/Color.d.ts +0 -0
  1101. package/lib/typescript/lib/commonjs/skia/types/ColorFilter/ColorFilter.d.ts +2 -0
  1102. package/lib/typescript/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.d.ts +1 -0
  1103. package/lib/typescript/lib/commonjs/skia/types/ColorFilter/index.d.ts +1 -0
  1104. package/lib/typescript/lib/commonjs/skia/types/ContourMeasure.d.ts +1 -0
  1105. package/lib/typescript/lib/commonjs/skia/types/Data/Data.d.ts +2 -0
  1106. package/lib/typescript/lib/commonjs/skia/types/Data/DataFactory.d.ts +1 -0
  1107. package/lib/typescript/lib/commonjs/skia/types/Data/index.d.ts +1 -0
  1108. package/lib/typescript/lib/commonjs/skia/types/Font/Font.d.ts +16 -0
  1109. package/lib/typescript/lib/commonjs/skia/types/Font/FontMgr.d.ts +1 -0
  1110. package/lib/typescript/lib/commonjs/skia/types/Font/FontMgrFactory.d.ts +1 -0
  1111. package/lib/typescript/lib/commonjs/skia/types/Font/index.d.ts +1 -0
  1112. package/lib/typescript/lib/commonjs/skia/types/Image/Image.d.ts +4 -0
  1113. package/lib/typescript/lib/commonjs/skia/types/Image/ImageFactory.d.ts +3 -0
  1114. package/lib/typescript/lib/commonjs/skia/types/Image/index.d.ts +1 -0
  1115. package/lib/typescript/lib/commonjs/skia/types/ImageFilter/ImageFilter.d.ts +3 -0
  1116. package/lib/typescript/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.d.ts +2 -0
  1117. package/lib/typescript/lib/commonjs/skia/types/ImageFilter/index.d.ts +1 -0
  1118. package/lib/typescript/lib/commonjs/skia/types/JsiInstance.d.ts +0 -0
  1119. package/lib/typescript/lib/commonjs/skia/types/MaskFilter.d.ts +3 -0
  1120. package/lib/typescript/lib/commonjs/skia/types/Matrix.d.ts +4 -0
  1121. package/lib/typescript/lib/commonjs/skia/types/Matrix4.d.ts +31 -0
  1122. package/lib/typescript/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +6 -0
  1123. package/lib/typescript/lib/commonjs/skia/types/NativeBuffer/index.d.ts +1 -0
  1124. package/lib/typescript/lib/commonjs/skia/types/Paint/BlendMode.d.ts +2 -0
  1125. package/lib/typescript/lib/commonjs/skia/types/Paint/Paint.d.ts +5 -0
  1126. package/lib/typescript/lib/commonjs/skia/types/Paint/index.d.ts +1 -0
  1127. package/lib/typescript/lib/commonjs/skia/types/Paragraph/Paragraph.d.ts +1 -0
  1128. package/lib/typescript/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.d.ts +2 -0
  1129. package/lib/typescript/lib/commonjs/skia/types/Paragraph/ParagraphStyle.d.ts +4 -0
  1130. package/lib/typescript/lib/commonjs/skia/types/Paragraph/TextStyle.d.ts +4 -0
  1131. package/lib/typescript/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.d.ts +1 -0
  1132. package/lib/typescript/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +1 -0
  1133. package/lib/typescript/lib/commonjs/skia/types/Paragraph/index.d.ts +1 -0
  1134. package/lib/typescript/lib/commonjs/skia/types/Path/Path.d.ts +5 -0
  1135. package/lib/typescript/lib/commonjs/skia/types/Path/PathFactory.d.ts +1 -0
  1136. package/lib/typescript/lib/commonjs/skia/types/Path/index.d.ts +1 -0
  1137. package/lib/typescript/lib/commonjs/skia/types/PathEffect.d.ts +3 -0
  1138. package/lib/typescript/lib/commonjs/skia/types/Picture/Picture.d.ts +1 -0
  1139. package/lib/typescript/lib/commonjs/skia/types/Picture/PictureFactory.d.ts +1 -0
  1140. package/lib/typescript/lib/commonjs/skia/types/Picture/PictureRecorder.d.ts +1 -0
  1141. package/lib/typescript/lib/commonjs/skia/types/Picture/index.d.ts +1 -0
  1142. package/lib/typescript/lib/commonjs/skia/types/Point.d.ts +2 -0
  1143. package/lib/typescript/lib/commonjs/skia/types/RRect.d.ts +2 -0
  1144. package/lib/typescript/lib/commonjs/skia/types/RSXform.d.ts +1 -0
  1145. package/lib/typescript/lib/commonjs/skia/types/Rect.d.ts +2 -0
  1146. package/lib/typescript/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.d.ts +1 -0
  1147. package/lib/typescript/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +1 -0
  1148. package/lib/typescript/lib/commonjs/skia/types/RuntimeEffect/index.d.ts +1 -0
  1149. package/lib/typescript/lib/commonjs/skia/types/SVG/SVG.d.ts +1 -0
  1150. package/lib/typescript/lib/commonjs/skia/types/SVG/SVGFactory.d.ts +1 -0
  1151. package/lib/typescript/lib/commonjs/skia/types/SVG/index.d.ts +1 -0
  1152. package/lib/typescript/lib/commonjs/skia/types/Shader/Shader.d.ts +3 -0
  1153. package/lib/typescript/lib/commonjs/skia/types/Shader/ShaderFactory.d.ts +1 -0
  1154. package/lib/typescript/lib/commonjs/skia/types/Shader/index.d.ts +1 -0
  1155. package/lib/typescript/lib/commonjs/skia/types/Size.d.ts +0 -0
  1156. package/lib/typescript/lib/commonjs/skia/types/Skia.d.ts +1 -0
  1157. package/lib/typescript/lib/commonjs/skia/types/Surface/Surface.d.ts +1 -0
  1158. package/lib/typescript/lib/commonjs/skia/types/Surface/SurfaceFactory.d.ts +1 -0
  1159. package/lib/typescript/lib/commonjs/skia/types/Surface/index.d.ts +1 -0
  1160. package/lib/typescript/lib/commonjs/skia/types/TextBlob.d.ts +1 -0
  1161. package/lib/typescript/lib/commonjs/skia/types/Typeface/Typeface.d.ts +1 -0
  1162. package/lib/typescript/lib/commonjs/skia/types/Typeface/TypefaceFactory.d.ts +1 -0
  1163. package/lib/typescript/lib/commonjs/skia/types/Typeface/index.d.ts +1 -0
  1164. package/lib/typescript/lib/commonjs/skia/types/Vertices/Vertices.d.ts +2 -0
  1165. package/lib/typescript/lib/commonjs/skia/types/Vertices/index.d.ts +1 -0
  1166. package/lib/typescript/lib/commonjs/skia/types/Video/Video.d.ts +1 -0
  1167. package/lib/typescript/lib/commonjs/skia/types/Video/index.d.ts +1 -0
  1168. package/lib/typescript/lib/commonjs/skia/types/index.d.ts +1 -0
  1169. package/lib/typescript/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.d.ts +8 -0
  1170. package/lib/typescript/lib/commonjs/skia/web/Host.d.ts +18 -0
  1171. package/lib/typescript/lib/commonjs/skia/web/JsiSkAnimatedImage.d.ts +10 -0
  1172. package/lib/typescript/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.d.ts +6 -0
  1173. package/lib/typescript/lib/commonjs/skia/web/JsiSkCanvas.d.ts +45 -0
  1174. package/lib/typescript/lib/commonjs/skia/web/JsiSkColor.d.ts +2 -0
  1175. package/lib/typescript/lib/commonjs/skia/web/JsiSkColorFilter.d.ts +5 -0
  1176. package/lib/typescript/lib/commonjs/skia/web/JsiSkColorFilterFactory.d.ts +12 -0
  1177. package/lib/typescript/lib/commonjs/skia/web/JsiSkContourMeasure.d.ts +11 -0
  1178. package/lib/typescript/lib/commonjs/skia/web/JsiSkContourMeasureIter.d.ts +7 -0
  1179. package/lib/typescript/lib/commonjs/skia/web/JsiSkData.d.ts +5 -0
  1180. package/lib/typescript/lib/commonjs/skia/web/JsiSkDataFactory.d.ts +16 -0
  1181. package/lib/typescript/lib/commonjs/skia/web/JsiSkFont.d.ts +33 -0
  1182. package/lib/typescript/lib/commonjs/skia/web/JsiSkFontMgr.d.ts +9 -0
  1183. package/lib/typescript/lib/commonjs/skia/web/JsiSkFontMgrFactory.d.ts +6 -0
  1184. package/lib/typescript/lib/commonjs/skia/web/JsiSkImage.d.ts +21 -0
  1185. package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFactory.d.ts +9 -0
  1186. package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFilter.d.ts +5 -0
  1187. package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFilterFactory.d.ts +17 -0
  1188. package/lib/typescript/lib/commonjs/skia/web/JsiSkMaskFilter.d.ts +5 -0
  1189. package/lib/typescript/lib/commonjs/skia/web/JsiSkMaskFilterFactory.d.ts +6 -0
  1190. package/lib/typescript/lib/commonjs/skia/web/JsiSkMatrix.d.ts +18 -0
  1191. package/lib/typescript/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +6 -0
  1192. package/lib/typescript/lib/commonjs/skia/web/JsiSkPaint.d.ts +28 -0
  1193. package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraph.d.ts +17 -0
  1194. package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraphBuilder.d.ts +14 -0
  1195. package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.d.ts +6 -0
  1196. package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraphStyle.d.ts +4 -0
  1197. package/lib/typescript/lib/commonjs/skia/web/JsiSkPath.d.ts +56 -0
  1198. package/lib/typescript/lib/commonjs/skia/web/JsiSkPathEffect.d.ts +5 -0
  1199. package/lib/typescript/lib/commonjs/skia/web/JsiSkPathEffectFactory.d.ts +13 -0
  1200. package/lib/typescript/lib/commonjs/skia/web/JsiSkPathFactory.d.ts +10 -0
  1201. package/lib/typescript/lib/commonjs/skia/web/JsiSkPicture.d.ts +8 -0
  1202. package/lib/typescript/lib/commonjs/skia/web/JsiSkPictureFactory.d.ts +6 -0
  1203. package/lib/typescript/lib/commonjs/skia/web/JsiSkPictureRecorder.d.ts +9 -0
  1204. package/lib/typescript/lib/commonjs/skia/web/JsiSkPoint.d.ts +8 -0
  1205. package/lib/typescript/lib/commonjs/skia/web/JsiSkRRect.d.ts +10 -0
  1206. package/lib/typescript/lib/commonjs/skia/web/JsiSkRSXform.d.ts +11 -0
  1207. package/lib/typescript/lib/commonjs/skia/web/JsiSkRect.d.ts +11 -0
  1208. package/lib/typescript/lib/commonjs/skia/web/JsiSkRuntimeEffect.d.ts +13 -0
  1209. package/lib/typescript/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.d.ts +6 -0
  1210. package/lib/typescript/lib/commonjs/skia/web/JsiSkSVG.d.ts +7 -0
  1211. package/lib/typescript/lib/commonjs/skia/web/JsiSkSVGFactory.d.ts +7 -0
  1212. package/lib/typescript/lib/commonjs/skia/web/JsiSkShader.d.ts +5 -0
  1213. package/lib/typescript/lib/commonjs/skia/web/JsiSkShaderFactory.d.ts +13 -0
  1214. package/lib/typescript/lib/commonjs/skia/web/JsiSkSurface.d.ts +12 -0
  1215. package/lib/typescript/lib/commonjs/skia/web/JsiSkSurfaceFactory.d.ts +7 -0
  1216. package/lib/typescript/lib/commonjs/skia/web/JsiSkTextBlob.d.ts +5 -0
  1217. package/lib/typescript/lib/commonjs/skia/web/JsiSkTextBlobFactory.d.ts +9 -0
  1218. package/lib/typescript/lib/commonjs/skia/web/JsiSkTextStyle.d.ts +38 -0
  1219. package/lib/typescript/lib/commonjs/skia/web/JsiSkTypeface.d.ts +8 -0
  1220. package/lib/typescript/lib/commonjs/skia/web/JsiSkTypefaceFactory.d.ts +6 -0
  1221. package/lib/typescript/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.d.ts +10 -0
  1222. package/lib/typescript/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +6 -0
  1223. package/lib/typescript/lib/commonjs/skia/web/JsiSkVertices.d.ts +8 -0
  1224. package/lib/typescript/lib/commonjs/skia/web/JsiSkVerticesFactory.d.ts +3 -0
  1225. package/lib/typescript/lib/commonjs/skia/web/JsiSkia.d.ts +64 -0
  1226. package/lib/typescript/lib/commonjs/skia/web/JsiVideo.d.ts +23 -0
  1227. package/lib/typescript/lib/commonjs/skia/web/index.d.ts +1 -0
  1228. package/lib/typescript/lib/commonjs/specs/NativeSkiaModule.d.ts +4 -0
  1229. package/lib/typescript/lib/commonjs/specs/NativeSkiaModule.web.d.ts +0 -0
  1230. package/lib/typescript/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +3 -0
  1231. package/lib/typescript/lib/commonjs/specs/SkiaPictureViewNativeComponent.d.ts +3 -0
  1232. package/lib/typescript/lib/commonjs/views/SkiaBaseWebView.d.ts +53 -0
  1233. package/lib/typescript/lib/commonjs/views/SkiaDomView.d.ts +27 -0
  1234. package/lib/typescript/lib/commonjs/views/SkiaDomView.web.d.ts +5 -0
  1235. package/lib/typescript/lib/commonjs/views/SkiaJSDomView.d.ts +26 -0
  1236. package/lib/typescript/lib/commonjs/views/SkiaJSDomView.web.d.ts +3 -0
  1237. package/lib/typescript/lib/commonjs/views/SkiaPictureView.d.ts +21 -0
  1238. package/lib/typescript/lib/commonjs/views/SkiaPictureView.web.d.ts +5 -0
  1239. package/lib/typescript/lib/commonjs/views/SkiaViewNativeId.d.ts +4 -0
  1240. package/lib/typescript/lib/commonjs/views/api.d.ts +2 -0
  1241. package/lib/typescript/lib/commonjs/views/index.d.ts +1 -0
  1242. package/lib/typescript/lib/commonjs/views/types.d.ts +2 -0
  1243. package/lib/typescript/lib/commonjs/views/useTouchHandler.d.ts +12 -0
  1244. package/lib/typescript/lib/commonjs/web/LoadSkiaWeb.d.ts +3 -0
  1245. package/lib/typescript/lib/commonjs/web/WithSkiaWeb.d.ts +6 -0
  1246. package/lib/typescript/lib/commonjs/web/index.d.ts +1 -0
  1247. package/lib/typescript/lib/module/Platform/IPlatform.d.ts +1 -0
  1248. package/lib/typescript/lib/module/Platform/Platform.d.ts +9 -0
  1249. package/lib/typescript/lib/module/Platform/Platform.web.d.ts +17 -0
  1250. package/lib/typescript/lib/module/Platform/index.d.ts +1 -0
  1251. package/lib/typescript/lib/module/animation/functions/index.d.ts +4 -0
  1252. package/lib/typescript/lib/module/animation/functions/interpolate.d.ts +6 -0
  1253. package/lib/typescript/lib/module/animation/functions/interpolateColors.d.ts +2 -0
  1254. package/lib/typescript/lib/module/animation/functions/interpolatePaths.d.ts +1 -0
  1255. package/lib/typescript/lib/module/animation/functions/interpolateVector.d.ts +8 -0
  1256. package/lib/typescript/lib/module/animation/index.d.ts +1 -0
  1257. package/lib/typescript/lib/module/dom/nodes/DrawingNode.d.ts +5 -0
  1258. package/lib/typescript/lib/module/dom/nodes/GroupNode.d.ts +5 -0
  1259. package/lib/typescript/lib/module/dom/nodes/JsiSkDOM.d.ts +119 -0
  1260. package/lib/typescript/lib/module/dom/nodes/LayerNode.d.ts +5 -0
  1261. package/lib/typescript/lib/module/dom/nodes/Node.d.ts +19 -0
  1262. package/lib/typescript/lib/module/dom/nodes/PaintNode.d.ts +5 -0
  1263. package/lib/typescript/lib/module/dom/nodes/RenderNode.d.ts +15 -0
  1264. package/lib/typescript/lib/module/dom/nodes/datatypes/Circle.d.ts +2 -0
  1265. package/lib/typescript/lib/module/dom/nodes/datatypes/Enum.d.ts +1 -0
  1266. package/lib/typescript/lib/module/dom/nodes/datatypes/Fitting.d.ts +44 -0
  1267. package/lib/typescript/lib/module/dom/nodes/datatypes/Gradient.d.ts +15 -0
  1268. package/lib/typescript/lib/module/dom/nodes/datatypes/Path.d.ts +2 -0
  1269. package/lib/typescript/lib/module/dom/nodes/datatypes/Radius.d.ts +1 -0
  1270. package/lib/typescript/lib/module/dom/nodes/datatypes/Rect.d.ts +3 -0
  1271. package/lib/typescript/lib/module/dom/nodes/datatypes/Transform.d.ts +1 -0
  1272. package/lib/typescript/lib/module/dom/nodes/datatypes/index.d.ts +8 -0
  1273. package/lib/typescript/lib/module/dom/nodes/drawings/AtlasNode.d.ts +9 -0
  1274. package/lib/typescript/lib/module/dom/nodes/drawings/BackdropFilterNode.d.ts +9 -0
  1275. package/lib/typescript/lib/module/dom/nodes/drawings/Box.d.ts +14 -0
  1276. package/lib/typescript/lib/module/dom/nodes/drawings/CircleNode.d.ts +9 -0
  1277. package/lib/typescript/lib/module/dom/nodes/drawings/DiffRectNode.d.ts +9 -0
  1278. package/lib/typescript/lib/module/dom/nodes/drawings/FillNode.d.ts +9 -0
  1279. package/lib/typescript/lib/module/dom/nodes/drawings/ImageNode.d.ts +22 -0
  1280. package/lib/typescript/lib/module/dom/nodes/drawings/ImageSVG.d.ts +8 -0
  1281. package/lib/typescript/lib/module/dom/nodes/drawings/LineNode.d.ts +9 -0
  1282. package/lib/typescript/lib/module/dom/nodes/drawings/OvalNode.d.ts +9 -0
  1283. package/lib/typescript/lib/module/dom/nodes/drawings/ParagraphNode.d.ts +8 -0
  1284. package/lib/typescript/lib/module/dom/nodes/drawings/PatchNode.d.ts +13 -0
  1285. package/lib/typescript/lib/module/dom/nodes/drawings/PathNode.d.ts +9 -0
  1286. package/lib/typescript/lib/module/dom/nodes/drawings/PictureNode.d.ts +8 -0
  1287. package/lib/typescript/lib/module/dom/nodes/drawings/PointsNode.d.ts +9 -0
  1288. package/lib/typescript/lib/module/dom/nodes/drawings/RRectNode.d.ts +9 -0
  1289. package/lib/typescript/lib/module/dom/nodes/drawings/RectNode.d.ts +9 -0
  1290. package/lib/typescript/lib/module/dom/nodes/drawings/Text.d.ts +33 -0
  1291. package/lib/typescript/lib/module/dom/nodes/drawings/VerticesNode.d.ts +9 -0
  1292. package/lib/typescript/lib/module/dom/nodes/drawings/index.d.ts +18 -0
  1293. package/lib/typescript/lib/module/dom/nodes/index.d.ts +3 -0
  1294. package/lib/typescript/lib/module/dom/nodes/paint/BlendNode.d.ts +5 -0
  1295. package/lib/typescript/lib/module/dom/nodes/paint/ColorFilters.d.ts +28 -0
  1296. package/lib/typescript/lib/module/dom/nodes/paint/ImageFilters.d.ts +34 -0
  1297. package/lib/typescript/lib/module/dom/nodes/paint/MaskFilters.d.ts +5 -0
  1298. package/lib/typescript/lib/module/dom/nodes/paint/PathEffects.d.ts +33 -0
  1299. package/lib/typescript/lib/module/dom/nodes/paint/Shaders.d.ts +39 -0
  1300. package/lib/typescript/lib/module/dom/nodes/paint/index.d.ts +6 -0
  1301. package/lib/typescript/lib/module/dom/types/ColorFilters.d.ts +1 -0
  1302. package/lib/typescript/lib/module/dom/types/Common.d.ts +1 -0
  1303. package/lib/typescript/lib/module/dom/types/DeclarationContext.d.ts +25 -0
  1304. package/lib/typescript/lib/module/dom/types/DrawingContext.d.ts +12 -0
  1305. package/lib/typescript/lib/module/dom/types/Drawings.d.ts +1 -0
  1306. package/lib/typescript/lib/module/dom/types/ImageFilters.d.ts +1 -0
  1307. package/lib/typescript/lib/module/dom/types/MaskFilters.d.ts +1 -0
  1308. package/lib/typescript/lib/module/dom/types/Node.d.ts +1 -0
  1309. package/lib/typescript/lib/module/dom/types/NodeType.d.ts +1 -0
  1310. package/lib/typescript/lib/module/dom/types/Paragraph.d.ts +1 -0
  1311. package/lib/typescript/lib/module/dom/types/PathEffects.d.ts +1 -0
  1312. package/lib/typescript/lib/module/dom/types/Shaders.d.ts +1 -0
  1313. package/lib/typescript/lib/module/dom/types/SkDOM.d.ts +1 -0
  1314. package/lib/typescript/lib/module/dom/types/index.d.ts +13 -0
  1315. package/lib/typescript/lib/module/external/ModuleProxy.d.ts +6 -0
  1316. package/lib/typescript/lib/module/external/index.d.ts +1 -0
  1317. package/lib/typescript/lib/module/external/reanimated/ReanimatedProxy.d.ts +4 -0
  1318. package/lib/typescript/lib/module/external/reanimated/buffers.d.ts +4 -0
  1319. package/lib/typescript/lib/module/external/reanimated/index.d.ts +7 -0
  1320. package/lib/typescript/lib/module/external/reanimated/interpolators.d.ts +5 -0
  1321. package/lib/typescript/lib/module/external/reanimated/renderHelpers.d.ts +3 -0
  1322. package/lib/typescript/lib/module/external/reanimated/textures.d.ts +5 -0
  1323. package/lib/typescript/lib/module/external/reanimated/useAnimatedImageValue.d.ts +1 -0
  1324. package/lib/typescript/lib/module/external/reanimated/useDerivedValueOnJS.d.ts +1 -0
  1325. package/lib/typescript/lib/module/external/reanimated/useVideo.d.ts +8 -0
  1326. package/lib/typescript/lib/module/external/reanimated/useVideoLoading.d.ts +1 -0
  1327. package/lib/typescript/lib/module/external/reanimated/useVideoLoading.web.d.ts +1 -0
  1328. package/lib/typescript/lib/module/headless/index.d.ts +6 -0
  1329. package/lib/typescript/lib/module/index.d.ts +10 -0
  1330. package/lib/typescript/lib/module/mock/index.d.ts +474 -0
  1331. package/lib/typescript/lib/module/renderer/Canvas.d.ts +3 -0
  1332. package/lib/typescript/lib/module/renderer/Container.d.ts +10 -0
  1333. package/lib/typescript/lib/module/renderer/DrawingContext.d.ts +1 -0
  1334. package/lib/typescript/lib/module/renderer/HostComponents.d.ts +2 -0
  1335. package/lib/typescript/lib/module/renderer/HostConfig.d.ts +37 -0
  1336. package/lib/typescript/lib/module/renderer/Offscreen.d.ts +4 -0
  1337. package/lib/typescript/lib/module/renderer/Reconciler.d.ts +9 -0
  1338. package/lib/typescript/lib/module/renderer/components/Blend.d.ts +2 -0
  1339. package/lib/typescript/lib/module/renderer/components/Group.d.ts +5 -0
  1340. package/lib/typescript/lib/module/renderer/components/Mask.d.ts +10 -0
  1341. package/lib/typescript/lib/module/renderer/components/Paint.d.ts +2 -0
  1342. package/lib/typescript/lib/module/renderer/components/Picture.d.ts +2 -0
  1343. package/lib/typescript/lib/module/renderer/components/backdrop/BackdropBlur.d.ts +10 -0
  1344. package/lib/typescript/lib/module/renderer/components/backdrop/BackdropFilter.d.ts +6 -0
  1345. package/lib/typescript/lib/module/renderer/components/backdrop/index.d.ts +2 -0
  1346. package/lib/typescript/lib/module/renderer/components/colorFilters/BlendColor.d.ts +2 -0
  1347. package/lib/typescript/lib/module/renderer/components/colorFilters/Lerp.d.ts +2 -0
  1348. package/lib/typescript/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +2 -0
  1349. package/lib/typescript/lib/module/renderer/components/colorFilters/LumaColorFilter.d.ts +2 -0
  1350. package/lib/typescript/lib/module/renderer/components/colorFilters/Matrix.d.ts +3 -0
  1351. package/lib/typescript/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +2 -0
  1352. package/lib/typescript/lib/module/renderer/components/colorFilters/index.d.ts +6 -0
  1353. package/lib/typescript/lib/module/renderer/components/image/Image.d.ts +2 -0
  1354. package/lib/typescript/lib/module/renderer/components/image/ImageSVG.d.ts +2 -0
  1355. package/lib/typescript/lib/module/renderer/components/image/ImageShader.d.ts +10 -0
  1356. package/lib/typescript/lib/module/renderer/components/image/index.d.ts +3 -0
  1357. package/lib/typescript/lib/module/renderer/components/imageFilters/Blur.d.ts +5 -0
  1358. package/lib/typescript/lib/module/renderer/components/imageFilters/DisplacementMap.d.ts +2 -0
  1359. package/lib/typescript/lib/module/renderer/components/imageFilters/Morphology.d.ts +5 -0
  1360. package/lib/typescript/lib/module/renderer/components/imageFilters/Offset.d.ts +6 -0
  1361. package/lib/typescript/lib/module/renderer/components/imageFilters/RuntimeShader.d.ts +2 -0
  1362. package/lib/typescript/lib/module/renderer/components/imageFilters/Shadow.d.ts +2 -0
  1363. package/lib/typescript/lib/module/renderer/components/imageFilters/index.d.ts +6 -0
  1364. package/lib/typescript/lib/module/renderer/components/index.d.ts +16 -0
  1365. package/lib/typescript/lib/module/renderer/components/maskFilters/Blur.d.ts +6 -0
  1366. package/lib/typescript/lib/module/renderer/components/maskFilters/index.d.ts +1 -0
  1367. package/lib/typescript/lib/module/renderer/components/paragraph/Paragraph.d.ts +2 -0
  1368. package/lib/typescript/lib/module/renderer/components/paragraph/index.d.ts +1 -0
  1369. package/lib/typescript/lib/module/renderer/components/pathEffects/Corner.d.ts +2 -0
  1370. package/lib/typescript/lib/module/renderer/components/pathEffects/Dash.d.ts +2 -0
  1371. package/lib/typescript/lib/module/renderer/components/pathEffects/Discrete.d.ts +5 -0
  1372. package/lib/typescript/lib/module/renderer/components/pathEffects/Line2D.d.ts +2 -0
  1373. package/lib/typescript/lib/module/renderer/components/pathEffects/Path1D.d.ts +2 -0
  1374. package/lib/typescript/lib/module/renderer/components/pathEffects/Path2D.d.ts +2 -0
  1375. package/lib/typescript/lib/module/renderer/components/pathEffects/Sum.d.ts +2 -0
  1376. package/lib/typescript/lib/module/renderer/components/pathEffects/index.d.ts +7 -0
  1377. package/lib/typescript/lib/module/renderer/components/shaders/Color.d.ts +2 -0
  1378. package/lib/typescript/lib/module/renderer/components/shaders/FractalNoise.d.ts +7 -0
  1379. package/lib/typescript/lib/module/renderer/components/shaders/LinearGradient.d.ts +2 -0
  1380. package/lib/typescript/lib/module/renderer/components/shaders/RadialGradient.d.ts +2 -0
  1381. package/lib/typescript/lib/module/renderer/components/shaders/Shader.d.ts +5 -0
  1382. package/lib/typescript/lib/module/renderer/components/shaders/ShaderLib.d.ts +7 -0
  1383. package/lib/typescript/lib/module/renderer/components/shaders/SweepGradient.d.ts +2 -0
  1384. package/lib/typescript/lib/module/renderer/components/shaders/Turbulence.d.ts +7 -0
  1385. package/lib/typescript/lib/module/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -0
  1386. package/lib/typescript/lib/module/renderer/components/shaders/index.d.ts +9 -0
  1387. package/lib/typescript/lib/module/renderer/components/shapes/Atlas.d.ts +2 -0
  1388. package/lib/typescript/lib/module/renderer/components/shapes/Box.d.ts +3 -0
  1389. package/lib/typescript/lib/module/renderer/components/shapes/Circle.d.ts +2 -0
  1390. package/lib/typescript/lib/module/renderer/components/shapes/DiffRect.d.ts +2 -0
  1391. package/lib/typescript/lib/module/renderer/components/shapes/Fill.d.ts +2 -0
  1392. package/lib/typescript/lib/module/renderer/components/shapes/FitBox.d.ts +34 -0
  1393. package/lib/typescript/lib/module/renderer/components/shapes/Line.d.ts +2 -0
  1394. package/lib/typescript/lib/module/renderer/components/shapes/Oval.d.ts +2 -0
  1395. package/lib/typescript/lib/module/renderer/components/shapes/Patch.d.ts +2 -0
  1396. package/lib/typescript/lib/module/renderer/components/shapes/Path.d.ts +6 -0
  1397. package/lib/typescript/lib/module/renderer/components/shapes/Points.d.ts +5 -0
  1398. package/lib/typescript/lib/module/renderer/components/shapes/Rect.d.ts +2 -0
  1399. package/lib/typescript/lib/module/renderer/components/shapes/RoundedRect.d.ts +2 -0
  1400. package/lib/typescript/lib/module/renderer/components/shapes/Vertices.d.ts +5 -0
  1401. package/lib/typescript/lib/module/renderer/components/shapes/index.d.ts +14 -0
  1402. package/lib/typescript/lib/module/renderer/components/text/Glyphs.d.ts +6 -0
  1403. package/lib/typescript/lib/module/renderer/components/text/Text.d.ts +6 -0
  1404. package/lib/typescript/lib/module/renderer/components/text/TextBlob.d.ts +6 -0
  1405. package/lib/typescript/lib/module/renderer/components/text/TextPath.d.ts +5 -0
  1406. package/lib/typescript/lib/module/renderer/components/text/index.d.ts +4 -0
  1407. package/lib/typescript/lib/module/renderer/index.d.ts +1 -0
  1408. package/lib/typescript/lib/module/renderer/processors/Animations/Animations.d.ts +0 -0
  1409. package/lib/typescript/lib/module/renderer/processors/Animations/index.d.ts +1 -0
  1410. package/lib/typescript/lib/module/renderer/processors/index.d.ts +2 -0
  1411. package/lib/typescript/lib/module/renderer/processors/math/Coordinates.d.ts +24 -0
  1412. package/lib/typescript/lib/module/renderer/processors/math/Math.d.ts +3 -0
  1413. package/lib/typescript/lib/module/renderer/processors/math/Transforms.d.ts +4 -0
  1414. package/lib/typescript/lib/module/renderer/processors/math/index.d.ts +3 -0
  1415. package/lib/typescript/lib/module/renderer/typeddash.d.ts +3 -0
  1416. package/lib/typescript/lib/module/skia/NativeSetup.d.ts +1 -0
  1417. package/lib/typescript/lib/module/skia/Skia.d.ts +4 -0
  1418. package/lib/typescript/lib/module/skia/Skia.web.d.ts +35 -0
  1419. package/lib/typescript/lib/module/skia/core/AnimatedImage.d.ts +1 -0
  1420. package/lib/typescript/lib/module/skia/core/Data.d.ts +4 -0
  1421. package/lib/typescript/lib/module/skia/core/Font.d.ts +4 -0
  1422. package/lib/typescript/lib/module/skia/core/Image.d.ts +2 -0
  1423. package/lib/typescript/lib/module/skia/core/Matrix.d.ts +1 -0
  1424. package/lib/typescript/lib/module/skia/core/Picture.d.ts +1 -0
  1425. package/lib/typescript/lib/module/skia/core/RRect.d.ts +1 -0
  1426. package/lib/typescript/lib/module/skia/core/Rect.d.ts +7 -0
  1427. package/lib/typescript/lib/module/skia/core/SVG.d.ts +1 -0
  1428. package/lib/typescript/lib/module/skia/core/SVG.web.d.ts +1 -0
  1429. package/lib/typescript/lib/module/skia/core/Typeface.d.ts +1 -0
  1430. package/lib/typescript/lib/module/skia/core/Vector.d.ts +6 -0
  1431. package/lib/typescript/lib/module/skia/core/index.d.ts +11 -0
  1432. package/lib/typescript/lib/module/skia/index.d.ts +3 -0
  1433. package/lib/typescript/lib/module/skia/types/AnimatedImage/AnimatedImage.d.ts +1 -0
  1434. package/lib/typescript/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +1 -0
  1435. package/lib/typescript/lib/module/skia/types/AnimatedImage/index.d.ts +2 -0
  1436. package/lib/typescript/lib/module/skia/types/Canvas.d.ts +2 -0
  1437. package/lib/typescript/lib/module/skia/types/Color.d.ts +0 -0
  1438. package/lib/typescript/lib/module/skia/types/ColorFilter/ColorFilter.d.ts +1 -0
  1439. package/lib/typescript/lib/module/skia/types/ColorFilter/ColorFilterFactory.d.ts +1 -0
  1440. package/lib/typescript/lib/module/skia/types/ColorFilter/index.d.ts +2 -0
  1441. package/lib/typescript/lib/module/skia/types/ContourMeasure.d.ts +1 -0
  1442. package/lib/typescript/lib/module/skia/types/Data/Data.d.ts +1 -0
  1443. package/lib/typescript/lib/module/skia/types/Data/DataFactory.d.ts +1 -0
  1444. package/lib/typescript/lib/module/skia/types/Data/index.d.ts +2 -0
  1445. package/lib/typescript/lib/module/skia/types/Font/Font.d.ts +15 -0
  1446. package/lib/typescript/lib/module/skia/types/Font/FontMgr.d.ts +1 -0
  1447. package/lib/typescript/lib/module/skia/types/Font/FontMgrFactory.d.ts +1 -0
  1448. package/lib/typescript/lib/module/skia/types/Font/index.d.ts +3 -0
  1449. package/lib/typescript/lib/module/skia/types/Image/Image.d.ts +3 -0
  1450. package/lib/typescript/lib/module/skia/types/Image/ImageFactory.d.ts +2 -0
  1451. package/lib/typescript/lib/module/skia/types/Image/index.d.ts +2 -0
  1452. package/lib/typescript/lib/module/skia/types/ImageFilter/ImageFilter.d.ts +2 -0
  1453. package/lib/typescript/lib/module/skia/types/ImageFilter/ImageFilterFactory.d.ts +1 -0
  1454. package/lib/typescript/lib/module/skia/types/ImageFilter/index.d.ts +2 -0
  1455. package/lib/typescript/lib/module/skia/types/JsiInstance.d.ts +0 -0
  1456. package/lib/typescript/lib/module/skia/types/MaskFilter.d.ts +2 -0
  1457. package/lib/typescript/lib/module/skia/types/Matrix.d.ts +3 -0
  1458. package/lib/typescript/lib/module/skia/types/Matrix4.d.ts +15 -0
  1459. package/lib/typescript/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +5 -0
  1460. package/lib/typescript/lib/module/skia/types/NativeBuffer/index.d.ts +1 -0
  1461. package/lib/typescript/lib/module/skia/types/Paint/BlendMode.d.ts +28 -0
  1462. package/lib/typescript/lib/module/skia/types/Paint/Paint.d.ts +4 -0
  1463. package/lib/typescript/lib/module/skia/types/Paint/index.d.ts +2 -0
  1464. package/lib/typescript/lib/module/skia/types/Paragraph/Paragraph.d.ts +1 -0
  1465. package/lib/typescript/lib/module/skia/types/Paragraph/ParagraphBuilder.d.ts +1 -0
  1466. package/lib/typescript/lib/module/skia/types/Paragraph/ParagraphStyle.d.ts +3 -0
  1467. package/lib/typescript/lib/module/skia/types/Paragraph/TextStyle.d.ts +3 -0
  1468. package/lib/typescript/lib/module/skia/types/Paragraph/TypefaceFontProvider.d.ts +1 -0
  1469. package/lib/typescript/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +1 -0
  1470. package/lib/typescript/lib/module/skia/types/Paragraph/index.d.ts +6 -0
  1471. package/lib/typescript/lib/module/skia/types/Path/Path.d.ts +7 -0
  1472. package/lib/typescript/lib/module/skia/types/Path/PathFactory.d.ts +1 -0
  1473. package/lib/typescript/lib/module/skia/types/Path/index.d.ts +2 -0
  1474. package/lib/typescript/lib/module/skia/types/PathEffect.d.ts +2 -0
  1475. package/lib/typescript/lib/module/skia/types/Picture/Picture.d.ts +1 -0
  1476. package/lib/typescript/lib/module/skia/types/Picture/PictureFactory.d.ts +1 -0
  1477. package/lib/typescript/lib/module/skia/types/Picture/PictureRecorder.d.ts +1 -0
  1478. package/lib/typescript/lib/module/skia/types/Picture/index.d.ts +3 -0
  1479. package/lib/typescript/lib/module/skia/types/Point.d.ts +1 -0
  1480. package/lib/typescript/lib/module/skia/types/RRect.d.ts +1 -0
  1481. package/lib/typescript/lib/module/skia/types/RSXform.d.ts +1 -0
  1482. package/lib/typescript/lib/module/skia/types/Rect.d.ts +1 -0
  1483. package/lib/typescript/lib/module/skia/types/RuntimeEffect/RuntimeEffect.d.ts +1 -0
  1484. package/lib/typescript/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +1 -0
  1485. package/lib/typescript/lib/module/skia/types/RuntimeEffect/index.d.ts +2 -0
  1486. package/lib/typescript/lib/module/skia/types/SVG/SVG.d.ts +1 -0
  1487. package/lib/typescript/lib/module/skia/types/SVG/SVGFactory.d.ts +1 -0
  1488. package/lib/typescript/lib/module/skia/types/SVG/index.d.ts +2 -0
  1489. package/lib/typescript/lib/module/skia/types/Shader/Shader.d.ts +2 -0
  1490. package/lib/typescript/lib/module/skia/types/Shader/ShaderFactory.d.ts +1 -0
  1491. package/lib/typescript/lib/module/skia/types/Shader/index.d.ts +2 -0
  1492. package/lib/typescript/lib/module/skia/types/Size.d.ts +0 -0
  1493. package/lib/typescript/lib/module/skia/types/Skia.d.ts +1 -0
  1494. package/lib/typescript/lib/module/skia/types/Surface/Surface.d.ts +1 -0
  1495. package/lib/typescript/lib/module/skia/types/Surface/SurfaceFactory.d.ts +1 -0
  1496. package/lib/typescript/lib/module/skia/types/Surface/index.d.ts +2 -0
  1497. package/lib/typescript/lib/module/skia/types/TextBlob.d.ts +1 -0
  1498. package/lib/typescript/lib/module/skia/types/Typeface/Typeface.d.ts +1 -0
  1499. package/lib/typescript/lib/module/skia/types/Typeface/TypefaceFactory.d.ts +1 -0
  1500. package/lib/typescript/lib/module/skia/types/Typeface/index.d.ts +2 -0
  1501. package/lib/typescript/lib/module/skia/types/Vertices/Vertices.d.ts +1 -0
  1502. package/lib/typescript/lib/module/skia/types/Vertices/index.d.ts +1 -0
  1503. package/lib/typescript/lib/module/skia/types/Video/Video.d.ts +1 -0
  1504. package/lib/typescript/lib/module/skia/types/Video/index.d.ts +1 -0
  1505. package/lib/typescript/lib/module/skia/types/index.d.ts +30 -0
  1506. package/lib/typescript/lib/module/skia/web/CanvasKitWebGLBufferImpl.d.ts +8 -0
  1507. package/lib/typescript/lib/module/skia/web/Host.d.ts +17 -0
  1508. package/lib/typescript/lib/module/skia/web/JsiSkAnimatedImage.d.ts +9 -0
  1509. package/lib/typescript/lib/module/skia/web/JsiSkAnimatedImageFactory.d.ts +5 -0
  1510. package/lib/typescript/lib/module/skia/web/JsiSkCanvas.d.ts +44 -0
  1511. package/lib/typescript/lib/module/skia/web/JsiSkColor.d.ts +1 -0
  1512. package/lib/typescript/lib/module/skia/web/JsiSkColorFilter.d.ts +4 -0
  1513. package/lib/typescript/lib/module/skia/web/JsiSkColorFilterFactory.d.ts +11 -0
  1514. package/lib/typescript/lib/module/skia/web/JsiSkContourMeasure.d.ts +10 -0
  1515. package/lib/typescript/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +6 -0
  1516. package/lib/typescript/lib/module/skia/web/JsiSkData.d.ts +4 -0
  1517. package/lib/typescript/lib/module/skia/web/JsiSkDataFactory.d.ts +15 -0
  1518. package/lib/typescript/lib/module/skia/web/JsiSkFont.d.ts +32 -0
  1519. package/lib/typescript/lib/module/skia/web/JsiSkFontMgr.d.ts +8 -0
  1520. package/lib/typescript/lib/module/skia/web/JsiSkFontMgrFactory.d.ts +5 -0
  1521. package/lib/typescript/lib/module/skia/web/JsiSkImage.d.ts +20 -0
  1522. package/lib/typescript/lib/module/skia/web/JsiSkImageFactory.d.ts +8 -0
  1523. package/lib/typescript/lib/module/skia/web/JsiSkImageFilter.d.ts +4 -0
  1524. package/lib/typescript/lib/module/skia/web/JsiSkImageFilterFactory.d.ts +16 -0
  1525. package/lib/typescript/lib/module/skia/web/JsiSkMaskFilter.d.ts +4 -0
  1526. package/lib/typescript/lib/module/skia/web/JsiSkMaskFilterFactory.d.ts +5 -0
  1527. package/lib/typescript/lib/module/skia/web/JsiSkMatrix.d.ts +17 -0
  1528. package/lib/typescript/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +5 -0
  1529. package/lib/typescript/lib/module/skia/web/JsiSkPaint.d.ts +27 -0
  1530. package/lib/typescript/lib/module/skia/web/JsiSkParagraph.d.ts +16 -0
  1531. package/lib/typescript/lib/module/skia/web/JsiSkParagraphBuilder.d.ts +13 -0
  1532. package/lib/typescript/lib/module/skia/web/JsiSkParagraphBuilderFactory.d.ts +5 -0
  1533. package/lib/typescript/lib/module/skia/web/JsiSkParagraphStyle.d.ts +3 -0
  1534. package/lib/typescript/lib/module/skia/web/JsiSkPath.d.ts +55 -0
  1535. package/lib/typescript/lib/module/skia/web/JsiSkPathEffect.d.ts +4 -0
  1536. package/lib/typescript/lib/module/skia/web/JsiSkPathEffectFactory.d.ts +12 -0
  1537. package/lib/typescript/lib/module/skia/web/JsiSkPathFactory.d.ts +9 -0
  1538. package/lib/typescript/lib/module/skia/web/JsiSkPicture.d.ts +7 -0
  1539. package/lib/typescript/lib/module/skia/web/JsiSkPictureFactory.d.ts +5 -0
  1540. package/lib/typescript/lib/module/skia/web/JsiSkPictureRecorder.d.ts +8 -0
  1541. package/lib/typescript/lib/module/skia/web/JsiSkPoint.d.ts +7 -0
  1542. package/lib/typescript/lib/module/skia/web/JsiSkRRect.d.ts +9 -0
  1543. package/lib/typescript/lib/module/skia/web/JsiSkRSXform.d.ts +10 -0
  1544. package/lib/typescript/lib/module/skia/web/JsiSkRect.d.ts +10 -0
  1545. package/lib/typescript/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +12 -0
  1546. package/lib/typescript/lib/module/skia/web/JsiSkRuntimeEffectFactory.d.ts +5 -0
  1547. package/lib/typescript/lib/module/skia/web/JsiSkSVG.d.ts +6 -0
  1548. package/lib/typescript/lib/module/skia/web/JsiSkSVGFactory.d.ts +6 -0
  1549. package/lib/typescript/lib/module/skia/web/JsiSkShader.d.ts +4 -0
  1550. package/lib/typescript/lib/module/skia/web/JsiSkShaderFactory.d.ts +12 -0
  1551. package/lib/typescript/lib/module/skia/web/JsiSkSurface.d.ts +11 -0
  1552. package/lib/typescript/lib/module/skia/web/JsiSkSurfaceFactory.d.ts +6 -0
  1553. package/lib/typescript/lib/module/skia/web/JsiSkTextBlob.d.ts +4 -0
  1554. package/lib/typescript/lib/module/skia/web/JsiSkTextBlobFactory.d.ts +8 -0
  1555. package/lib/typescript/lib/module/skia/web/JsiSkTextStyle.d.ts +37 -0
  1556. package/lib/typescript/lib/module/skia/web/JsiSkTypeface.d.ts +7 -0
  1557. package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFactory.d.ts +5 -0
  1558. package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFontProvider.d.ts +9 -0
  1559. package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +5 -0
  1560. package/lib/typescript/lib/module/skia/web/JsiSkVertices.d.ts +7 -0
  1561. package/lib/typescript/lib/module/skia/web/JsiSkVerticesFactory.d.ts +2 -0
  1562. package/lib/typescript/lib/module/skia/web/JsiSkia.d.ts +63 -0
  1563. package/lib/typescript/lib/module/skia/web/JsiVideo.d.ts +22 -0
  1564. package/lib/typescript/lib/module/skia/web/index.d.ts +1 -0
  1565. package/lib/typescript/lib/module/specs/NativeSkiaModule.d.ts +2 -0
  1566. package/lib/typescript/lib/module/specs/NativeSkiaModule.web.d.ts +0 -0
  1567. package/lib/typescript/lib/module/specs/SkiaDomViewNativeComponent.d.ts +2 -0
  1568. package/lib/typescript/lib/module/specs/SkiaPictureViewNativeComponent.d.ts +2 -0
  1569. package/lib/typescript/lib/module/views/SkiaBaseWebView.d.ts +50 -0
  1570. package/lib/typescript/lib/module/views/SkiaDomView.d.ts +24 -0
  1571. package/lib/typescript/lib/module/views/SkiaDomView.web.d.ts +4 -0
  1572. package/lib/typescript/lib/module/views/SkiaJSDomView.d.ts +23 -0
  1573. package/lib/typescript/lib/module/views/SkiaJSDomView.web.d.ts +1 -0
  1574. package/lib/typescript/lib/module/views/SkiaPictureView.d.ts +18 -0
  1575. package/lib/typescript/lib/module/views/SkiaPictureView.web.d.ts +4 -0
  1576. package/lib/typescript/lib/module/views/SkiaViewNativeId.d.ts +3 -0
  1577. package/lib/typescript/lib/module/views/api.d.ts +1 -0
  1578. package/lib/typescript/lib/module/views/index.d.ts +4 -0
  1579. package/lib/typescript/lib/module/views/types.d.ts +1 -0
  1580. package/lib/typescript/lib/module/views/useTouchHandler.d.ts +2 -0
  1581. package/lib/typescript/lib/module/web/LoadSkiaWeb.d.ts +2 -0
  1582. package/lib/typescript/lib/module/web/WithSkiaWeb.d.ts +6 -0
  1583. package/lib/typescript/lib/module/web/index.d.ts +2 -0
  1584. package/lib/typescript/src/Platform/IPlatform.d.ts +0 -1
  1585. package/lib/typescript/src/external/reanimated/buffers.d.ts +4 -4
  1586. package/lib/typescript/src/renderer/Canvas.d.ts +2 -2
  1587. package/lib/typescript/src/renderer/Container.d.ts +1 -0
  1588. package/lib/typescript/src/renderer/HostConfig.d.ts +0 -1
  1589. package/lib/typescript/src/skia/core/AnimatedImage.d.ts +1 -1
  1590. package/lib/typescript/src/skia/core/Data.d.ts +3 -3
  1591. package/lib/typescript/src/skia/core/Font.d.ts +1 -1
  1592. package/lib/typescript/src/skia/core/Image.d.ts +2 -3
  1593. package/lib/typescript/src/skia/core/Picture.d.ts +1 -1
  1594. package/lib/typescript/src/skia/core/SVG.d.ts +1 -1
  1595. package/lib/typescript/src/skia/core/SVG.web.d.ts +1 -1
  1596. package/lib/typescript/src/skia/core/Typeface.d.ts +1 -1
  1597. package/lib/typescript/src/skia/types/Data/Data.d.ts +1 -1
  1598. package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +16 -16
  1599. package/lib/typescript/src/skia/types/MaskFilter.d.ts +3 -3
  1600. package/lib/typescript/src/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -3
  1601. package/lib/typescript/src/skia/types/Paint/BlendMode.d.ts +28 -28
  1602. package/lib/typescript/src/skia/types/Path/Path.d.ts +4 -4
  1603. package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +1 -1
  1604. package/lib/typescript/src/skia/web/JsiSkNativeBufferFactory.d.ts +1 -1
  1605. package/lib/typescript/src/skia/web/JsiSkParagraphStyle.d.ts +1 -1
  1606. package/lib/typescript/src/specs/SkiaDomViewNativeComponent.d.ts +0 -1
  1607. package/lib/typescript/src/specs/SkiaPictureViewNativeComponent.d.ts +0 -1
  1608. package/lib/typescript/src/views/SkiaDomView.d.ts +0 -4
  1609. package/package.json +42 -19
  1610. package/scripts/setup-canvaskit.js +0 -0
  1611. package/src/Platform/Platform.web.tsx +4 -0
  1612. package/src/external/reanimated/buffers.ts +1 -1
  1613. package/src/mock/index.ts +4 -0
  1614. package/src/renderer/Container.tsx +1 -0
  1615. package/src/renderer/HostConfig.ts +7 -3
  1616. package/src/renderer/Reconciler.tsx +1 -0
  1617. package/src/skia/core/Picture.ts +2 -1
  1618. package/src/skia/types/Matrix4.ts +2 -7
  1619. package/src/skia/web/JsiSkCanvas.ts +26 -26
  1620. package/src/skia/web/JsiSkNativeBufferFactory.ts +1 -5
  1621. package/src/skia/web/JsiSkParagraphStyle.ts +2 -1
  1622. package/src/views/SkiaDomView.tsx +0 -8
  1623. package/libs/ios/libskia.xcframework/Info.plist +0 -46
  1624. package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
  1625. package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
  1626. package/libs/ios/libskottie.xcframework/Info.plist +0 -46
  1627. package/libs/ios/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
  1628. package/libs/ios/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
  1629. package/libs/ios/libskparagraph.xcframework/Info.plist +0 -46
  1630. package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
  1631. package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
  1632. package/libs/ios/libsksg.xcframework/Info.plist +0 -46
  1633. package/libs/ios/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
  1634. package/libs/ios/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
  1635. package/libs/ios/libskshaper.xcframework/Info.plist +0 -46
  1636. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
  1637. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
  1638. package/libs/ios/libskunicode.xcframework/Info.plist +0 -46
  1639. package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e/libskunicode.a +0 -0
  1640. package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode.a +0 -0
  1641. package/libs/ios/libsvg.xcframework/Info.plist +0 -46
  1642. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
  1643. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["Rea","HAS_REANIMATED","HAS_REANIMATED_3","require","reanimatedVersion","version","includes","e","_bindings","WeakMap","unbindReanimatedNode","node","previousMapperId","get","undefined","stopMapper","extractReanimatedProps","props","reanimatedProps","otherProps","propName","propValue","isSharedValue","value","bindReanimatedProps2","container","sharedValues","Object","values","length","viewId","getNativeId","SkiaViewApi","global","updateProps","setProp","requestRedraw","redraw","mapperId","startMapper","runOnJS","set","bindReanimatedProps"],"sources":["renderHelpers.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { Container } from \"../../renderer/Container\";\nimport type { AnimatedProps } from \"../../renderer/processors\";\nimport type { Node } from \"../../dom/types\";\n\nimport Rea from \"./ReanimatedProxy\";\n\nlet HAS_REANIMATED = false;\nlet HAS_REANIMATED_3 = false;\ntry {\n require(\"react-native-reanimated\");\n HAS_REANIMATED = true;\n const reanimatedVersion =\n require(\"react-native-reanimated/package.json\").version;\n if (\n reanimatedVersion &&\n (reanimatedVersion >= \"3.0.0\" || reanimatedVersion.includes(\"3.0.0-\"))\n ) {\n HAS_REANIMATED_3 = true;\n }\n} catch (e) {\n HAS_REANIMATED = false;\n}\n\nconst _bindings = new WeakMap<Node<unknown>, unknown>();\n\nexport const unbindReanimatedNode = (node: Node<unknown>) => {\n if (!HAS_REANIMATED) {\n return;\n }\n const previousMapperId = _bindings.get(node);\n if (previousMapperId !== undefined) {\n Rea.stopMapper(previousMapperId as number);\n }\n};\n\nexport function extractReanimatedProps(props: AnimatedProps<any>) {\n if (!HAS_REANIMATED) {\n return [props, {}];\n }\n const reanimatedProps = {} as AnimatedProps<any>;\n const otherProps = {} as AnimatedProps<any>;\n for (const propName in props) {\n if (propName === \"children\") {\n continue;\n }\n const propValue = props[propName];\n if (Rea.isSharedValue(propValue)) {\n reanimatedProps[propName] = propValue;\n otherProps[propName] = propValue.value;\n } else {\n otherProps[propName] = propValue;\n }\n }\n return [otherProps, reanimatedProps];\n}\n\nfunction bindReanimatedProps2(\n container: Container,\n node: Node<any>,\n reanimatedProps: AnimatedProps<any>\n) {\n const sharedValues = Object.values(reanimatedProps);\n const previousMapperId = _bindings.get(node);\n if (previousMapperId !== undefined) {\n Rea.stopMapper(previousMapperId as number);\n }\n if (sharedValues.length > 0) {\n const viewId = container.getNativeId();\n const { SkiaViewApi } = global;\n const updateProps = () => {\n for (const propName in reanimatedProps) {\n node && node.setProp(propName, reanimatedProps[propName].value);\n }\n // On React Native we use the SkiaViewApi to redraw because it can\n // run on the worklet thread (container.redraw can't)\n // if SkiaViewApi is undefined, we are on web and container.redraw()\n // can safely be invoked\n if (SkiaViewApi) {\n SkiaViewApi.requestRedraw(viewId);\n } else {\n container.redraw();\n }\n };\n const mapperId = Rea.startMapper(() => {\n \"worklet\";\n Rea.runOnJS(updateProps)();\n }, sharedValues);\n _bindings.set(node, mapperId);\n }\n}\n\nexport function bindReanimatedProps(\n container: Container,\n node: Node<any>,\n reanimatedProps: AnimatedProps<any>\n) {\n if (HAS_REANIMATED && !HAS_REANIMATED_3) {\n return bindReanimatedProps2(container, node, reanimatedProps);\n }\n if (!HAS_REANIMATED) {\n return;\n }\n const sharedValues = Object.values(reanimatedProps);\n const previousMapperId = _bindings.get(node);\n if (previousMapperId !== undefined) {\n Rea.stopMapper(previousMapperId as number);\n }\n if (sharedValues.length > 0) {\n const viewId = container.getNativeId();\n const { SkiaViewApi } = global;\n const mapperId = Rea.startMapper(() => {\n \"worklet\";\n if (node) {\n for (const propName in reanimatedProps) {\n node.setProp(propName, reanimatedProps[propName].value);\n }\n }\n // On React Native we use the SkiaViewApi to redraw because it can\n // run on the worklet thread (container.redraw can't)\n // if SkiaViewApi is undefined, we are on web and container.redraw()\n // can safely be invoked\n if (SkiaViewApi) {\n SkiaViewApi.requestRedraw(view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CAAC9B,IAAI,EAAE2B,QAAQ,CAAC;EAC/B;AACF;AAEA,OAAO,SAASI,mBAAmBA,CACjCjB,SAAoB,EACpBd,IAAe,EACfO,eAAmC,EACnC;EACA,IAAIjB,cAAc,IAAI,CAACC,gBAAgB,EAAE;IACvC,OAAOsB,oBAAoB,CAACC,SAAS,EAAEd,IAAI,EAAEO,eAAe,CAAC;EAC/D;EACA,IAAI,CAACjB,cAAc,EAAE;IACnB;EACF;EACA,MAAMyB,YAAY,GAAGC,MAAM,CAACC,MAAM,CAACV,eAAe,CAAC;EACnD,MAAMN,gBAAgB,GAAGJ,SAAS,CAACK,GAAG,CAACF,IAAI,CAAC;EAC5C,IAAIC,gBAAgB,KAAKE,SAAS,EAAE;IAClCd,GAAG,CAACe,UAAU,CAACH,gBAA0B,CAAC;EAC5C;EACA,IAAIc,YAAY,CAACG,MAAM,GAAG,CAAC,EAAE;IAC3B,MAAMC,MAAM,GAAGL,SAAS,CAACM,WAAW,CAAC,CAAC;IACtC,MAAM;MAAEC;IAAY,CAAC,GAAGC,MAAM;IAC9B,MAAMK,QAAQ,GAAGtC,GAAG,CAACuC,WAAW,CAAC,MAAM;MACrC,SAAS;;MACT,IAAI5B,IAAI,EAAE;QACR,KAAK,MAAMS,QAAQ,IAAIF,eAAe,EAAE;UACtCP,IAAI,CAACwB,OAAO,CAACf,QAAQ,EAAEF,eAAe,CAACE,QAAQ,CAAC,CAACG,KAAK,CAAC;QACzD;MACF;MACA;MACA;MACA;MACA;MACA,IAAIS,WAAW,EAAE;QACfA,WAAW,CAACI,aAAa,CAACN,MAAM,CAAC;MACnC,CAAC,MAAM;QACLL,SAAS,CAACY,MAAM,CAAC,CAAC;MACpB;IACF,CAAC,EAAEX,YAAY,CAAC;IAChBlB,SAAS,CAACiC,GAAG,CAAC9B,IAAI,EAAE2B,QAAQ,CAAC;EAC/B;AACF"}
1
+ {"version":3,"names":["Rea","HAS_REANIMATED","HAS_REANIMATED_3","require","reanimatedVersion","version","includes","e","_bindings","WeakMap","unbindReanimatedNode","node","previousMapperId","get","undefined","stopMapper","extractReanimatedProps","props","reanimatedProps","otherProps","propName","propValue","isSharedValue","value","bindReanimatedProps2","container","sharedValues","Object","values","length","viewId","getNativeId","SkiaViewApi","global","updateProps","setProp","requestRedraw","redraw","mapperId","startMapper","runOnJS","set","bindReanimatedProps"],"sources":["renderHelpers.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { Container } from \"../../renderer/Container\";\nimport type { AnimatedProps } from \"../../renderer/processors\";\nimport type { Node } from \"../../dom/types\";\n\nimport Rea from \"./ReanimatedProxy\";\n\nlet HAS_REANIMATED = false;\nlet HAS_REANIMATED_3 = false;\ntry {\n require(\"react-native-reanimated\");\n HAS_REANIMATED = true;\n const reanimatedVersion =\n require(\"react-native-reanimated/package.json\").version;\n if (\n reanimatedVersion &&\n (reanimatedVersion >= \"3.0.0\" || reanimatedVersion.includes(\"3.0.0-\"))\n ) {\n HAS_REANIMATED_3 = true;\n }\n} catch (e) {\n HAS_REANIMATED = false;\n}\n\nconst _bindings = new WeakMap<Node<unknown>, unknown>();\n\nexport const unbindReanimatedNode = (node: Node<unknown>) => {\n if (!HAS_REANIMATED) {\n return;\n }\n const previousMapperId = _bindings.get(node);\n if (previousMapperId !== undefined) {\n Rea.stopMapper(previousMapperId as number);\n }\n};\n\nexport function extractReanimatedProps(props: AnimatedProps<any>) {\n if (!HAS_REANIMATED) {\n return [props, {}];\n }\n const reanimatedProps = {} as AnimatedProps<any>;\n const otherProps = {} as AnimatedProps<any>;\n for (const propName in props) {\n if (propName === \"children\") {\n continue;\n }\n const propValue = props[propName];\n if (Rea.isSharedValue(propValue)) {\n reanimatedProps[propName] = propValue;\n otherProps[propName] = propValue.value;\n } else {\n otherProps[propName] = propValue;\n }\n }\n return [otherProps, reanimatedProps];\n}\n\nfunction bindReanimatedProps2(\n container: Container,\n node: Node<any>,\n reanimatedProps: AnimatedProps<any>\n) {\n const sharedValues = Object.values(reanimatedProps);\n const previousMapperId = _bindings.get(node);\n if (previousMapperId !== undefined) {\n Rea.stopMapper(previousMapperId as number);\n }\n if (sharedValues.length > 0) {\n const viewId = container.getNativeId();\n const { SkiaViewApi } = global;\n const updateProps = () => {\n for (const propName in reanimatedProps) {\n node && node.setProp(propName, reanimatedProps[propName].value);\n }\n // On React Native we use the SkiaViewApi to redraw because it can\n // run on the worklet thread (container.redraw can't)\n // if SkiaViewApi is undefined, we are on web and container.redraw()\n // can safely be invoked\n if (SkiaViewApi) {\n SkiaViewApi.requestRedraw(viewId);\n } else {\n container.redraw();\n }\n };\n const mapperId = Rea.startMapper(() => {\n \"worklet\";\n Rea.runOnJS(updateProps)();\n }, sharedValues);\n _bindings.set(node, mapperId);\n }\n}\n\nexport function bindReanimatedProps(\n container: Container,\n node: Node<any>,\n reanimatedProps: AnimatedProps<any>\n) {\n if (HAS_REANIMATED && !HAS_REANIMATED_3) {\n return bindReanimatedProps2(container, node, reanimatedProps);\n }\n if (!HAS_REANIMATED) {\n return;\n }\n const sharedValues = Object.values(reanimatedProps);\n const previousMapperId = _bindings.get(node);\n if (previousMapperId !== undefined) {\n Rea.stopMapper(previousMapperId as number);\n }\n if (sharedValues.length > 0) {\n const viewId = container.getNativeId();\n const { SkiaViewApi } = global;\n const mapperId = Rea.startMapper(() => {\n \"worklet\";\n if (node) {\n for (const propName in reanimatedProps) {\n node.setProp(propName, reanimatedProps[propName].value);\n }\n }\n // On React Native we use the SkiaViewApi to redraw because it can\n // run on the worklet thread (container.redraw can't)\n // if SkiaViewApi is undefined, we are on web and container.redraw()\n // can safely be invoked\n if (SkiaViewApi) {\n SkiaViewApi.requestRedraw(viewId);\n } else {\n container.redraw();\n }\n }, sharedValues);\n _bindings.set(node, mapperId);\n }\n}\n"],"mappings":"AAAA;;AAMA,OAAOA,GAAG,MAAM,mBAAmB;AAEnC,IAAIC,cAAc,GAAG,KAAK;AAC1B,IAAIC,gBAAgB,GAAG,KAAK;AAC5B,IAAI;EACFC,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AAS,EAAEd,IAAI,EAAEO,eAAe,CAAC;EAC/D;EACA,IAAI,CAACjB,cAAc,EAAE;IACnB;EACF;EACA,MAAMyB,YAAY,GAAGC,MAAM,CAACC,MAAM,CAACV,eAAe,CAAC;EACnD,MAAMN,gBAAgB,GAAGJ,SAAS,CAACK,GAAG,CAACF,IAAI,CAAC;EAC5C,IAAIC,gBAAgB,KAAKE,SAAS,EAAE;IAClCd,GAAG,CAACe,UAAU,CAACH,gBAA0B,CAAC;EAC5C;EACA,IAAIc,YAAY,CAACG,MAAM,GAAG,CAAC,EAAE;IAC3B,MAAMC,MAAM,GAAGL,SAAS,CAACM,WAAW,CAAC,CAAC;IACtC,MAAM;MAAEC;IAAY,CAAC,GAAGC,MAAM;IAC9B,MAAMK,QAAQ,GAAGtC,GAAG,CAACuC,WAAW,CAAC,MAAM;MACrC,SAAS;;MACT,IAAI5B,IAAI,EAAE;QACR,KAAK,MAAMS,QAAQ,IAAIF,eAAe,EAAE;UACtCP,IAAI,CAACwB,OAAO,CAACf,QAAQ,EAAEF,eAAe,CAACE,QAAQ,CAAC,CAACG,KAAK,CAAC;QACzD;MACF;MACA;MACA;MACA;MACA;MACA,IAAIS,WAAW,EAAE;QACfA,WAAW,CAACI,aAAa,CAACN,MAAM,CAAC;MACnC,CAAC,MAAM;QACLL,SAAS,CAACY,MAAM,CAAC,CAAC;MACpB;IACF,CAAC,EAAEX,YAAY,CAAC;IAChBlB,SAAS,CAACiC,GAAG,CAAC9B,IAAI,EAAE2B,QAAQ,CAAC;EAC/B;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useMemo","drawAsImageFromPicture","drawAsPicture","Skia","useImage","Rea","createTexture","texture","picture","size","value","useTexture","element","width","height","x","y","usePictureAsTexture","useTextureAsValue","console","warn","useTextureValueFromPicture","useSharedValue","runOnUI","useImageAsTexture","source","image","recorder","PictureRecorder","canvas","beginRecording","drawImage","finishRecordingAsPicture"],"sources":["textures.tsx"],"sourcesContent":["import { useEffect, useMemo } from \"react\";\nimport type { ReactElement } from \"react\";\nimport type { SharedValue } from \"react-native-reanimated\";\n\nimport type {\n DataSourceParam,\n SkImage,\n SkPicture,\n SkSize,\n} from \"../../skia/types\";\nimport {\n drawAsImageFromPicture,\n drawAsPicture,\n} from \"../../renderer/Offscreen\";\nimport { Skia, useImage } from \"../../skia\";\n\nimport Rea from \"./ReanimatedProxy\";\n\nconst createTexture = (\n texture: SharedValue<SkImage | null>,\n picture: SkPicture,\n size: SkSize\n) => {\n \"worklet\";\n texture.value = drawAsImageFromPicture(picture, size);\n};\n\nexport const useTexture = (element: ReactElement, size: SkSize) => {\n const { width, height } = size;\n const picture = useMemo(() => {\n return drawAsPicture(element, {\n x: 0,\n y: 0,\n width,\n height,\n });\n }, [element, width, height]);\n return usePictureAsTexture(picture, size);\n};\n\nexport const useTextureAsValue = (element: ReactElement, size: SkSize) => {\n console.warn(\"useTextureAsValue has been renamed to use useTexture\");\n return useTexture(element, size);\n};\n\nexport const useTextureValueFromPicture = (\n picture: SkPicture | null,\n size: SkSize\n) => {\n console.warn(\n \"useTextureValueFromPicture has been renamed to use usePictureAsTexture\"\n );\n return usePictureAsTexture(picture, size);\n};\n\nexport const usePictureAsTexture = (\n picture: SkPicture | null,\n size: SkSize\n) => {\n const texture = Rea.useSharedValue<SkImage | null>(null);\n useEffect(() => {\n if (picture !== null) {\n Rea.runOnUI(createTexture)(texture, picture, size);\n }\n }, [texture, picture, size]);\n return texture;\n};\n\nexport const useImageAsTexture = (source: DataSourceParam) => {\n const image = useImage(source);\n const size = useMemo(() => {\n if (image) {\n return { width: image.width(), height: image.height() };\n }\n return { width: 0, height: 0 };\n }, [image]);\n const picture = useMemo(() => {\n if (image) {\n const recorder = Skia.PictureRecorder();\n const canvas = recorder.beginRecording({\n x: 0,\n y: 0,\n width: size.width,\n height: size.height,\n });\n canvas.drawImage(image, 0, 0);\n return recorder.finishRecordingAsPicture();\n } else {\n return null;\n }\n }, [size, image]);\n return usePicture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CAAC,CAAC;EACjB,OAAOT,mBAAmB,CAACT,OAAO,EAAEC,IAAI,CAAC;AAC3C,CAAC"}
1
+ {"version":3,"names":["useEffect","useMemo","drawAsImageFromPicture","drawAsPicture","Skia","useImage","Rea","createTexture","texture","picture","size","value","useTexture","element","width","height","x","y","usePictureAsTexture","useTextureAsValue","console","warn","useTextureValueFromPicture","useSharedValue","runOnUI","useImageAsTexture","source","image","recorder","PictureRecorder","canvas","beginRecording","drawImage","finishRecordingAsPicture"],"sources":["textures.tsx"],"sourcesContent":["import { useEffect, useMemo } from \"react\";\nimport type { ReactElement } from \"react\";\nimport type { SharedValue } from \"react-native-reanimated\";\n\nimport type {\n DataSourceParam,\n SkImage,\n SkPicture,\n SkSize,\n} from \"../../skia/types\";\nimport {\n drawAsImageFromPicture,\n drawAsPicture,\n} from \"../../renderer/Offscreen\";\nimport { Skia, useImage } from \"../../skia\";\n\nimport Rea from \"./ReanimatedProxy\";\n\nconst createTexture = (\n texture: SharedValue<SkImage | null>,\n picture: SkPicture,\n size: SkSize\n) => {\n \"worklet\";\n texture.value = drawAsImageFromPicture(picture, size);\n};\n\nexport const useTexture = (element: ReactElement, size: SkSize) => {\n const { width, height } = size;\n const picture = useMemo(() => {\n return drawAsPicture(element, {\n x: 0,\n y: 0,\n width,\n height,\n });\n }, [element, width, height]);\n return usePictureAsTexture(picture, size);\n};\n\nexport const useTextureAsValue = (element: ReactElement, size: SkSize) => {\n console.warn(\"useTextureAsValue has been renamed to use useTexture\");\n return useTexture(element, size);\n};\n\nexport const useTextureValueFromPicture = (\n picture: SkPicture | null,\n size: SkSize\n) => {\n console.warn(\n \"useTextureValueFromPicture has been renamed to use usePictureAsTexture\"\n );\n return usePictureAsTexture(picture, size);\n};\n\nexport const usePictureAsTexture = (\n picture: SkPicture | null,\n size: SkSize\n) => {\n const texture = Rea.useSharedValue<SkImage | null>(null);\n useEffect(() => {\n if (picture !== null) {\n Rea.runOnUI(createTexture)(texture, picture, size);\n }\n }, [texture, picture, size]);\n return texture;\n};\n\nexport const useImageAsTexture = (source: DataSourceParam) => {\n const image = useImage(source);\n const size = useMemo(() => {\n if (image) {\n return { width: image.width(), height: image.height() };\n }\n return { width: 0, height: 0 };\n }, [image]);\n const picture = useMemo(() => {\n if (image) {\n const recorder = Skia.PictureRecorder();\n const canvas = recorder.beginRecording({\n x: 0,\n y: 0,\n width: size.width,\n height: size.height,\n });\n canvas.drawImage(image, 0, 0);\n return recorder.finishRecordingAsPicture();\n } else {\n return null;\n }\n }, [size, image]);\n return usePictureAsTexture(picture, size);\n};\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,OAAO,QAAQ,OAAO;AAU1C,SACEC,sBAAsB,EACtBC,aAAa,QACR,0BAA0B;AACjC,SAASC,IAAI,EAAEC,QAAQ,QAAQ,YAAY;AAE3C,OAAOC,GAAG,MAAM,mBAAmB;AAEnC,MAAMC,aAAa,GAAGA,CACpBC,OAAoC,EACpCC,OAAkB,EAClBC,IAAY,KACT;EACH,SAAS;;EACTF,OAAO,CAACG,KAAK,GAAGT,sBAAsB,CAACO,OAAO,EAAEC,IAAI,CAAC;AACvD,CAAC;AAED,OAAO,MAAME,UAAU,GAAGA,CAACC,OAAqB,EAAEH,IAAY,KAAK;EACjE,MAAM;IAAEI,KAAK;IAAEC;EAAO,CAAC,GAAGL,IAAI;EAC9B,MAAMD,OAAO,GAAGR,OAAO,CAAC,MAAM;IAC5B,OAAOE,aAAa,CAACU,OAAO,EAAE;MAC5BG,CAAC,EAAE,CAAC;MACJC,CAAC,EAAE,CAAC;MACJH,KAAK;MACLC;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACF,OAAO,EAAEC,KAAK,EAAEC,MAAM,CAAC,CAAC;EAC5B,OAAOG,mBAAmB,CAACT,OAAO,EAAEC,IAAI,CAAC;AAC3C,CAAC;AAED,OAAO,MAAMS,iBAAiB,GAAGA,CAACN,OAAqB,EAAEH,IAAY,KAAK;EACxEU,OAAO,CAACC,IAAI,CAAC,sDAAs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,CAAC,EAAE,CAAC;QACJC,CAAC,EAAE,CAAC;QACJH,KAAK,EAAEJ,IAAI,CAACI,KAAK;QACjBC,MAAM,EAAEL,IAAI,CAACK;MACf,CAAC,CAAC;MACFe,MAAM,CAACE,SAAS,CAACL,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;MAC7B,OAAOC,QAAQ,CAACK,wBAAwB,CAAC,CAAC;IAC5C,CAAC,MAAM;MACL,OAAO,IAAI;IACb;EACF,CAAC,EAAE,CAACvB,IAAI,EAAEiB,KAAK,CAAC,CAAC;EACjB,OAAOT,mBAAmB,CAACT,OAAO,EAAEC,IAAI,CAAC;AAC3C,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useAnimatedImage","Rea","DEFAULT_FRAME_DURATION","useAnimatedImageValue","source","paused","defaultPaused","useSharedValue","isPaused","currentFrame","lastTimestamp","animatedImage","err","console","error","Error","message","frameDuration","currentFrameDuration","useFrameCallback","frameInfo","value","timestamp","elapsed","decodeNextFrame","dispose","getCurrentFrame"],"sources":["useAnimatedImageValue.ts"],"sourcesContent":["import { useEffect } from \"react\";\nimport type { FrameInfo, SharedValue } from \"react-native-reanimated\";\n\nimport { useAnimatedImage } from \"../../skia/core/AnimatedImage\";\nimport type { DataSourceParam, SkImage } from \"../../skia/types\";\n\nimport Rea from \"./ReanimatedProxy\";\n\nconst DEFAULT_FRAME_DURATION = 60;\n\nexport const useAnimatedImageValue = (\n source: DataSourceParam,\n paused?: SharedValue<boolean>\n) => {\n const defaultPaused = Rea.useSharedValue(false);\n const isPaused = paused ?? defaultPaused;\n const currentFrame = Rea.useSharedValue<null | SkImage>(null);\n const lastTimestamp = Rea.useSharedValue(-1);\n const animatedImage = useAnimatedImage(\n source,\n (err) => {\n console.error(err);\n throw new Error(`Could not load animated image - got '${err.message}'`);\n },\n false\n );\n const frameDuration =\n animatedImage?.currentFrameDuration() || DEFAULT_FRAME_DURATION;\n\n Rea.useFrameCallback((frameInfo: FrameInfo) => {\n if (!animatedImage) {\n currentFrame.value = null;\n return;\n }\n if (isPaused.value && lastTimestamp.value !== -1) {\n return;\n }\n const { timestamp } = frameInfo;\n const elapsed = timestamp - lastTimestamp.value;\n\n // Check if it's time to switch frames based on GIF frame duration\n if (elapsed < frameDuration) {\n return;\n }\n\n // Update the current frame\n animatedImage.decodeNextFrame();\n if (currentFrame.value) {\n currentFrame.value.dispose();\n }\n currentFrame.value = animatedImage.getCurrentFrame();\n\n // Update the last timestamp\n lastTimestamp.value = timestamp;\n });\n useEffect(() => {\n return () => {\n animatedImage?.dispose();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return currentFrame;\n};\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AAGjC,SAASC,gBAAgB,QAAQ,+BAA+B;AAGhE,OAAOC,GAAG,MAAM,mBAAmB;AAEnC,MAAMC,sBAAsB,GAAG,EAAE;AAEjC,OAAO,MAAMC,qBAAqB,GAAGA,CACnCC,MAAuB,EACvBC,MAA6B,KAC1B;EACH,MAAMC,aAAa,GAAGL,GAAG,CAACM,cAAc,CAAC,KAAK,CAAC;EAC/C,MAAMC,QAAQ,GAAGH,MAAM,aAANA,MAAM,cAANA,MAAM,GAAIC,aAAa;EACxC,MAAMG,YAAY,GAAGR,GAAG,CAACM,cAAc,CAAiB,IAAI,CAAC;EAC7D,MAAMG,aAAa,GAAGT,GAAG,CAACM,cAAc,CAAC,CAAC,CAAC,CAAC;EAC5C,MAAMI,aAAa,GAAGX,gBAAgB,CACpCI,MAAM,EACLQ,GAAG,IAAK;IACPC,OAAO,CAACC,KAAK,CAACF,GAAG,CAAC;IAClB,MAAM,IAAIG,KAAK,CAAE,wCAAuCH,GAAG,CAACI,OAAQ,GAAE,CAAC;EACzE,CAAC,EACD,KACF,CAAC;EACD,MAAMC,aAAa,GACjB,CAAAN,aAAa,aAAbA,aAAa,uBAAbA,aAAa,CAAEO,oBAAoB,CAAC,CAAC,KAAIhB,sBAAsB;EAEjED,GAAG,CAACkB,gBAAgB,CAAEC,SAAoB,IAAK;IAC7C,IAAI,CAACT,aAAa,EAAE;MAClBF,YAAY,CAACY,KAAK,GAAG,IAAI;MACzB;IACF;IACA,IAAIb,QAAQ,CAACa,KAAK,IAAIX,aAAa,CAACW,KAAK,KAAK,CAAC,CAAC,EAAE;MAChD;IACF;IACA,MAAM;MAAEC;IAAU,CAAC,GAAGF,SAAS;IAC/B,MAAMG,OAAO,GAAGD,SAAS,GAAGZ,aAAa,CAACW,KAAK;;IAE/C;IACA,IAAIE,OAAO,GAAGN,aAAa,EAAE;MAC3B;IACF;;IAEA;IACAN,aAAa,CAACa,eAAe,CAAC,CAAC;IAC/B,IAAIf,YAAY,CAACY,KAAK,EAAE;MACtBZ,YAAY,CAACY,KAAK,CAACI,OAAO,CAAC,CAAC;IAC9B;IACAhB,YAAY,CAACY,KAAK,GAAGV,aAAa,CAACe,eAAe,CAAC,CAAC;;IAEpD;IACAhB,aAAa,CAACW,KAAK,GAAGC,SAAS;EACjC,CAAC,CAAC;EACFvB,SAAS,CAAC,MAAM;IACd,OAAO,MAAM;MACXY,aAAa,aAAbA,aAAa,eAAbA,aAAa,CAAEc,OAAO,CAAC,CAAC;IAC1B,CAAC;IACD;EACF,CAAC,EAAE,EAAE,CAAC;EACN,OAAOhB,YAAY;AACrB,CAAC"}
1
+ {"version":3,"names":["useEffect","useAnimatedImage","Rea","DEFAULT_FRAME_DURATION","useAnimatedImageValue","source","paused","defaultPaused","useSharedValue","isPaused","currentFrame","lastTimestamp","animatedImage","err","console","error","Error","message","frameDuration","currentFrameDuration","useFrameCallback","frameInfo","value","timestamp","elapsed","decodeNextFrame","dispose","getCurrentFrame"],"sources":["useAnimatedImageValue.ts"],"sourcesContent":["import { useEffect } from \"react\";\nimport type { FrameInfo, SharedValue } from \"react-native-reanimated\";\n\nimport { useAnimatedImage } from \"../../skia/core/AnimatedImage\";\nimport type { DataSourceParam, SkImage } from \"../../skia/types\";\n\nimport Rea from \"./ReanimatedProxy\";\n\nconst DEFAULT_FRAME_DURATION = 60;\n\nexport const useAnimatedImageValue = (\n source: DataSourceParam,\n paused?: SharedValue<boolean>\n) => {\n const defaultPaused = Rea.useSharedValue(false);\n const isPaused = paused ?? defaultPaused;\n const currentFrame = Rea.useSharedValue<null | SkImage>(null);\n const lastTimestamp = Rea.useSharedValue(-1);\n const animatedImage = useAnimatedImage(\n source,\n (err) => {\n console.error(err);\n throw new Error(`Could not load animated image - got '${err.message}'`);\n },\n false\n );\n const frameDuration =\n animatedImage?.currentFrameDuration() || DEFAULT_FRAME_DURATION;\n\n Rea.useFrameCallback((frameInfo: FrameInfo) => {\n if (!animatedImage) {\n currentFrame.value = null;\n return;\n }\n if (isPaused.value && lastTimestamp.value !== -1) {\n return;\n }\n const { timestamp } = frameInfo;\n const elapsed = timestamp - lastTimestamp.value;\n\n // Check if it's time to switch frames based on GIF frame duration\n if (elapsed < frameDuration) {\n return;\n }\n\n // Update the current frame\n animatedImage.decodeNextFrame();\n if (currentFrame.value) {\n currentFrame.value.dispose();\n }\n currentFrame.value = animatedImage.getCurrentFrame();\n\n // Update the last timestamp\n lastTimestamp.value = timestamp;\n });\n useEffect(() => {\n return () => {\n animatedImage?.dispose();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return currentFrame;\n};\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AAGjC,SAASC,gBAAgB,QAAQ,+BAA+B;AAGhE,OAAOC,GAAG,MAAM,mBAAmB;AAEnC,MAAMC,sBAAsB,GAAG,EAAE;AAEjC,OAAO,MAAMC,qBAAqB,GAAGA,CACnCC,MAAuB,EACvBC,MAA6B,KAC1B;EACH,MAAMC,aAAa,GAAGL,GAAG,CAACM,cAAc,CAAC,KAAK,CAAC;EAC/C,MAAMC,QAAQ,GAAGH,MAAM,aAANA,MAAM,cAANA,MAAM,GAAIC,aAAa;EACxC,MAAMG,YAAY,GAAGR,GAAG,CAACM,cAAc,CAAiB,IAAI,CA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[]}
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useMemo","Rea","useDerivedValueOnJS","fn","deps","init","value","useSharedValue","mapperId","startMapper","runOnJS","stopMapper"],"sources":["useDerivedValueOnJS.ts"],"sourcesContent":["import { useEffect, useMemo } from \"react\";\n\nimport Rea from \"./ReanimatedProxy\";\n\nexport const useDerivedValueOnJS = (\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fn: () => any,\n deps: unknown[]\n) => {\n const init = useMemo(() => fn(), [fn]);\n const value = Rea.useSharedValue(init);\n useEffect(() => {\n const mapperId = Rea.startMapper(() => {\n \"worklet\";\n Rea.runOnJS(fn)();\n }, deps);\n return () => Rea.stopMapper(mapperId);\n }, [deps, fn]);\n return value;\n};\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,OAAO,QAAQ,OAAO;AAE1C,OAAOC,GAAG,MAAM,mBAAmB;AAEnC,OAAO,MAAMC,mBAAmB,GAAGA,CAEjCC,EAAa,EACbC,IAAe,KACZ;EACH,MAAMC,IAAI,GAAGL,OAAO,CAAC,MAAMG,EAAE,CAAC,CAAC,EAAE,CAACA,EAAE,CAAC,CAAC;EACtC,MAAMG,KAAK,GAAGL,GAAG,CAACM,cAAc,CAACF,IAAI,CAAC;EACtCN,SAAS,CAAC,MAAM;IACd,MAAMS,QAAQ,GAAGP,GAAG,CAACQ,WAAW,CAAC,MAAM;MACrC,SAAS;;MACTR,GAAG,CAACS,OAAO,CAACP,EAAE,CAAC,CAAC,CAAC;IACnB,CAAC,EAAEC,IAAI,CAAC;IACR,OAAO,MAAMH,GAAG,CAACU,UAAU,CAACH,QAAQ,CAAC;EACvC,CAAC,EAAE,CAACJ,IAAI,EAAED,EAAE,CAAC,CAAC;EACd,OAAOG,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["useEffect","useMemo","Rea","useDerivedValueOnJS","fn","deps","init","value","useSharedValue","mapperId","startMapper","runOnJS","stopMapper"],"sources":["useDerivedValueOnJS.ts"],"sourcesContent":["import { useEffect, useMemo } from \"react\";\n\nimport Rea from \"./ReanimatedProxy\";\n\nexport const useDerivedValueOnJS = (\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fn: () => any,\n deps: unknown[]\n) => {\n const init = useMemo(() => fn(), [fn]);\n const value = Rea.useSharedValue(init);\n useEffect(() => {\n const mapperId = Rea.startMapper(() => {\n \"worklet\";\n Rea.runOnJS(fn)();\n }, deps);\n return () => Rea.stopMapper(mapperId);\n }, [deps, fn]);\n return value;\n};\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,OAAO,QAAQ,OAAO;AAE1C,OAAOC,GAAG,MAAM,mBAAmB;AAEnC,OAAO,MAAMC,mBAAmB,GAAGA,CAEjCC,EAAa,EACbC,IAAe,KACZ;EACH,MAAMC,IAAI,GAAGL,OAAO,CAAC,MAAMG,EAAE,CAAC,CAAC,EAAE,CAACA,EAAE,CAAC,CAAC;EACtC,MAAMG,KAAK,GAAGL,GAAG,CAACM,cAAc,CAACF,IAAI,CAAC;EACtCN,SAAS,CAAC,MAAM;IACd,MAAMS,QAAQ,GAAGP,GAAG,CAACQ,WAAW,CAAC,MAAM;MACrC,SAAS;;MACTR,GAAG,CAACS,OAAO,CAACP,EAAE,CAAC,CAAC,CAAC;IACnB,CAAC,EAAEC,IAAI,CAAC;IACR,OAAO,MAAMH,GAAG,CAACU,UAAU,CAACH,QAAQ,CAAC;EACvC,CAAC,EAAE,CAACJ,IAAI,EAAED,EAAE,CAAC,CAAC;EACd,OAAOG,KAAK;AACd,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useMemo","Platform","Rea","useVideoLoading","copyFrameOnAndroid","currentFrame","OS","tex","value","makeNonTextureImage","dispose","setFrame","video","img","nextImage","defaultOptions","looping","paused","seek","currentTime","volume","useOption","defaultValue","useSharedValue","isSharedValue","disposeVideo","useVideo","source","userOptions","_userOptions$paused","_userOptions$looping","_userOptions$seek","_userOptions$volume","isPaused","lastTimestamp","duration","_video$duration","framerate","_video$framerate","size","_video$size","width","height","rotation","_video$rotation","frameDuration","currentFrameDuration","Math","floor","useAnimatedReaction","pause","play","setVolume","useFrameCallback","frameInfo","currentTimestamp","timestamp","delta","isOver","runOnUI"],"sources":["useVideo.ts"],"sourcesContent":["import type { SharedValue, FrameInfo } from \"react-native-reanimated\";\nimport { useEffect, useMemo } from \"react\";\n\nimport type { SkImage, Video } from \"../../skia/types\";\nimport { Platform } from \"../../Platform\";\n\nimport Rea from \"./ReanimatedProxy\";\nimport { useVideoLoading } from \"./useVideoLoading\";\n\ntype Animated<T> = SharedValue<T> | T;\n\ninterface PlaybackOptions {\n looping: Animated<boolean>;\n paused: Animated<boolean>;\n seek: Animated<number | null>;\n volume: Animated<number>;\n}\n\nconst copyFrameOnAndroid = (currentFrame: SharedValue<SkImage | null>) => {\n \"worklet\";\n // on android we need to copy the texture before it's invalidated\n if (Platform.OS === \"android\") {\n const tex = currentFrame.value;\n if (tex) {\n currentFrame.value = tex.makeNonTextureImage();\n tex.dispose();\n }\n }\n};\n\nconst setFrame = (video: Video, currentFrame: SharedValue<SkImage | null>) => {\n \"worklet\";\n const img = video.nextImage();\n if (img) {\n if (currentFrame.value) {\n currentFrame.value.dispose();\n }\n currentFrame.value = img;\n copyFrameOnAndroid(currentFrame);\n }\n};\n\nconst defaultOptions = {\n looping: true,\n paused: false,\n seek: null,\n currentTime: 0,\n volume: 0,\n};\n\nconst useOption = <T>(value: Animated<T>) => {\n \"worklet\";\n // TODO: only create defaultValue is needed (via makeMutable)\n const defaultValue = Rea.useSharedValue(\n Rea.isSharedValue(value) ? value.value : value\n );\n return Rea.isSharedValue(value) ? value : defaultValue;\n};\n\nconst disposeVideo = (video: Video | null) => {\n \"worklet\";\n video?.dispose();\n};\n\nexport const useVideo = (\n source: string | null,\n userOptions?: Partial<PlaybackOptions>\n) => {\n const video = useVideoLoading(source);\n const isPaused = useOption(userOptions?.paused ?? defaultOptions.paused);\n const looping = useOption(userOptions?.looping ?? defaultOptions.looping);\n const seek = useOption(userOptions?.seek ?? defaultOptions.seek);\n const volume = useOption(userOptions?.volume ?? defaultOptions.volume);\n const currentFrame = Rea.useSharedValue<null | SkImage>(null);\n const currentTime = Rea.useSharedValue(0);\n const lastTimestamp = Rea.useSharedValue(-1);\n const duration = useMemo(() => video?.duration() ?? 0, [video]);\n const framerate = useMemo(\n () => (Platform.OS === \"web\" ? -1 : video?.framerate() ?? 0),\n [video]\n );\n const size = useMemo(() => video?.size() ?? { width: 0, height: 0 }, [video]);\n const rotation = useMemo(() => video?.rotation() ?? 0, [video]);\n const frameDuration = 1000 / framerate;\n const currentFrameDuration = Math.floor(frameDuration);\n Rea.useAnimatedReaction(\n () => isPaused.value,\n (paused) => {\n if (paused) {\n video?.pause();\n } else {\n lastTimestamp.value = -1;\n video?.play();\n }\n }\n );\n Rea.useAnimatedReaction(\n () => seek.value,\n (value) => {\n if (value !== null) {\n video?.seek(value);\n currentTime.value = value;\n seek.value = null;\n }\n }\n );\n Rea.useAnimatedReaction(\n () => volume.value,\n (value) => {\n video?.setVolume(value);\n }\n );\n Rea.useFrameCallback((frameInfo: FrameInfo) => {\n \"worklet\";\n if (!video) {\n return;\n }\n if (isPaused.value) {\n return;\n }\n const currentTimestamp = frameInfo.timestamp;\n if (lastTimestamp.value === -1) {\n lastTimestamp.value = currentTimestamp;\n }\n const delta = currentTimestamp - lastTimestamp.value;\n\n const isOver = currentTime.value + delta > duration;\n if (isOver && looping.value) {\n seek.value = 0;\n currentTime.value = seek.value;\n lastTimestamp.value = currentTimestamp;\n }\n // On Web the framerate is uknown.\n // This could be optimized by using requestVideoFrameCallback (Chrome only)\n if ((delta >= currentFrameDuration && !isOver) || Platform.OS === \"web\") {\n setFrame(video, currentFrame);\n currentTime.value += delta;\n lastTimestamp.value = currentTimestamp;\n }\n });\n\n useEffect(() => {\n return () => {\n // TODO: should video simply be a shared value instead?\n Rea.runOnUI(disposeVideo)(video);\n };\n }, [video]);\n\n return {\n currentFrame,\n currentTime,\n duration,\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a,CAAC1B,KAAK,GAAG+C,gBAAgB;IACxC;IACA;IACA;IACA,IAAKE,KAAK,IAAIX,oBAAoB,IAAI,CAACY,MAAM,IAAKzD,QAAQ,CAACK,EAAE,KAAK,KAAK,EAAE;MACvEK,QAAQ,CAACC,KAAK,EAAEP,YAAY,CAAC;MAC7Bc,WAAW,CAACX,KAAK,IAAIiD,KAAK;MAC1BvB,aAAa,CAAC1B,KAAK,GAAG+C,gBAAgB;IACxC;EACF,CAAC,CAAC;EAEFxD,SAAS,CAAC,MAAM;IACd,OAAO,MAAM;MACX;MACAG,GAAG,CAACyD,OAAO,CAAClC,YAAY,CAAC,CAACb,KAAK,CAAC;IAClC,CAAC;EACH,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAEX,OAAO;IACLP,YAAY;IACZc,WAAW;IACXgB,QAAQ;IACRE,SAAS;IACTM,QAAQ;IACRJ;EACF,CAAC;AACH,CAAC"}
1
+ {"version":3,"names":["useEffect","useMemo","Platform","Rea","useVideoLoading","copyFrameOnAndroid","currentFrame","OS","tex","value","makeNonTextureImage","dispose","setFrame","video","img","nextImage","defaultOptions","looping","paused","seek","currentTime","volume","useOption","defaultValue","useSharedValue","isSharedValue","disposeVideo","useVideo","source","userOptions","_userOptions$paused","_userOptions$looping","_userOptions$seek","_userOptions$volume","isPaused","lastTimestamp","duration","_video$duration","framerate","_video$framerate","size","_video$size","width","height","rotation","_video$rotation","frameDuration","currentFrameDuration","Math","floor","useAnimatedReaction","pause","play","setVolume","useFrameCallback","frameInfo","currentTimestamp","timestamp","delta","isOver","runOnUI"],"sources":["useVideo.ts"],"sourcesContent":["import type { SharedValue, FrameInfo } from \"react-native-reanimated\";\nimport { useEffect, useMemo } from \"react\";\n\nimport type { SkImage, Video } from \"../../skia/types\";\nimport { Platform } from \"../../Platform\";\n\nimport Rea from \"./ReanimatedProxy\";\nimport { useVideoLoading } from \"./useVideoLoading\";\n\ntype Animated<T> = SharedValue<T> | T;\n\ninterface PlaybackOptions {\n looping: Animated<boolean>;\n paused: Animated<boolean>;\n seek: Animated<number | null>;\n volume: Animated<number>;\n}\n\nconst copyFrameOnAndroid = (currentFrame: SharedValue<SkImage | null>) => {\n \"worklet\";\n // on android we need to copy the texture before it's invalidated\n if (Platform.OS === \"android\") {\n const tex = currentFrame.value;\n if (tex) {\n currentFrame.value = tex.makeNonTextureImage();\n tex.dispose();\n }\n }\n};\n\nconst setFrame = (video: Video, currentFrame: SharedValue<SkImage | null>) => {\n \"worklet\";\n const img = video.nextImage();\n if (img) {\n if (currentFrame.value) {\n currentFrame.value.dispose();\n }\n currentFrame.value = img;\n copyFrameOnAndroid(currentFrame);\n }\n};\n\nconst defaultOptions = {\n looping: true,\n paused: false,\n seek: null,\n currentTime: 0,\n volume: 0,\n};\n\nconst useOption = <T>(value: Animated<T>) => {\n \"worklet\";\n // TODO: only create defaultValue is needed (via makeMutable)\n const defaultValue = Rea.useSharedValue(\n Rea.isSharedValue(value) ? value.value : value\n );\n return Rea.isSharedValue(value) ? value : defaultValue;\n};\n\nconst disposeVideo = (video: Video | null) => {\n \"worklet\";\n video?.dispose();\n};\n\nexport const useVideo = (\n source: string | null,\n userOptions?: Partial<PlaybackOptions>\n) => {\n const video = useVideoLoading(source);\n const isPaused = useOption(userOptions?.paused ?? defaultOptions.paused);\n const looping = useOption(userOptions?.looping ?? defaultOptions.looping);\n const seek = useOption(userOptions?.seek ?? defaultOptions.seek);\n const volume = useOption(userOptions?.volume ?? defaultOptions.volume);\n const currentFrame = Rea.useSharedValue<null | SkImage>(null);\n const currentTime = Rea.useSharedValue(0);\n const lastTimestamp = Rea.useSharedValue(-1);\n const duration = useMemo(() => video?.duration() ?? 0, [video]);\n const framerate = useMemo(\n () => (Platform.OS === \"web\" ? -1 : video?.framerate() ?? 0),\n [video]\n );\n const size = useMemo(() => video?.size() ?? { width: 0, height: 0 }, [video]);\n const rotation = useMemo(() => video?.rotation() ?? 0, [video]);\n const frameDuration = 1000 / framerate;\n const currentFrameDuration = Math.floor(frameDuration);\n Rea.useAnimatedReaction(\n () => isPaused.value,\n (paused) => {\n if (paused) {\n video?.pause();\n } else {\n lastTimestamp.value = -1;\n video?.play();\n }\n }\n );\n Rea.useAnimatedReaction(\n () => seek.value,\n (value) => {\n if (value !== null) {\n video?.seek(value);\n currentTime.value = value;\n seek.value = null;\n }\n }\n );\n Rea.useAnimatedReaction(\n () => volume.value,\n (value) => {\n video?.setVolume(value);\n }\n );\n Rea.useFrameCallback((frameInfo: FrameInfo) => {\n \"worklet\";\n if (!video) {\n return;\n }\n if (isPaused.value) {\n return;\n }\n const currentTimestamp = frameInfo.timestamp;\n if (lastTimestamp.value === -1) {\n lastTimestamp.value = currentTimestamp;\n }\n const delta = currentTimestamp - lastTimestamp.value;\n\n const isOver = currentTime.value + delta > duration;\n if (isOver && looping.value) {\n seek.value = 0;\n currentTime.value = seek.value;\n lastTimestamp.value = currentTimestamp;\n }\n // On Web the framerate is uknown.\n // This could be optimized by using requestVideoFrameCallback (Chrome only)\n if ((delta >= currentFrameDuration && !isOver) || Platform.OS === \"web\") {\n setFrame(video, currentFrame);\n currentTime.value += delta;\n lastTimestamp.value = currentTimestamp;\n }\n });\n\n useEffect(() => {\n return () => {\n // TODO: should video simply be a shared value instead?\n Rea.runOnUI(disposeVideo)(video);\n };\n }, [video]);\n\n return {\n currentFrame,\n currentTime,\n duration,\n framerate,\n rotation,\n size,\n };\n};\n"],"mappings":"AACA,SAASA,SAAS,EAAEC,OAAO,QAAQ,OAAO;AAG1C,SAASC,QAAQ,QAAQ,gBAAgB;AAEzC,OAAOC,GAAG,MAAM,mBAAmB;AACnC,SAASC,eAAe,QAAQ,mBAAmB;AAWnD,MAAMC,kBAAkB,GAAIC,YAAyC,IAAK;EACxE,SAAS;;EACT;EACA,IAAIJ,QAAQ,CAACK,EAAE,KAAK,SAAS,EAAE;IAC7B,MAAMC,GAAG,GAAGF,YAAY,CAACG,KAAK;IAC9B,IAAID,GAAG,EAAE;MACPF,YAAY,CAACG,KAAK,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AAC,CAACb,KAAK,CAAC;IAClC,CAAC;EACH,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAEX,OAAO;IACLP,YAAY;IACZc,WAAW;IACXgB,QAAQ;IACRE,SAAS;IACTM,QAAQ;IACRJ;EACF,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["useCallback","useEffect","useState","Skia","Rea","runtime","createWorkletRuntime","useVideoLoading","source","runOnJS","video","setVideo","cb","src","vid","Video","runOnRuntime"],"sources":["useVideoLoading.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from \"react\";\n\nimport type { Video } from \"../../skia/types\";\nimport { Skia } from \"../../skia\";\n\nimport Rea from \"./ReanimatedProxy\";\n\nconst runtime = Rea.createWorkletRuntime(\"video-metadata-runtime\");\n\ntype VideoSource = string | null;\n\nexport const useVideoLoading = (source: VideoSource) => {\n const { runOnJS } = Rea;\n const [video, setVideo] = useState<Video | null>(null);\n const cb = useCallback(\n (src: string) => {\n \"worklet\";\n const vid = Skia.Video(src) as Video;\n runOnJS(setVideo)(vid);\n },\n [runOnJS]\n );\n useEffect(() => {\n if (source) {\n Rea.runOnRuntime(runtime, cb)(source);\n }\n }, [cb, source]);\n return video;\n};\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAGxD,SAASC,IAAI,QAAQ,YAAY;AAEjC,OAAOC,GAAG,MAAM,mBAAmB;AAEnC,MAAMC,OAAO,GAAGD,GAAG,CAACE,oBAAoB,CAAC,wBAAwB,CAAC;AAIlE,OAAO,MAAMC,eAAe,GAAIC,MAAmB,IAAK;EACtD,MAAM;IAAEC;EAAQ,CAAC,GAAGL,GAAG;EACvB,MAAM,CAACM,KAAK,EAAEC,QAAQ,CAAC,GAAGT,QAAQ,CAAe,IAAI,CAAC;EACtD,MAAMU,EAAE,GAAGZ,WAAW,CACnBa,GAAW,IAAK;IACf,SAAS;;IACT,MAAMC,GAAG,GAAGX,IAAI,CAACY,KAAK,CAACF,GAAG,CAAU;IACpCJ,OAAO,CAACE,QAAQ,CAAC,CAACG,GAAG,CAAC;EACxB,CAAC,EACD,CAACL,OAAO,CACV,CAAC;EACDR,SAAS,CAAC,MAAM;IACd,IAAIO,MAAM,EAAE;MACVJ,GAAG,CAACY,YAAY,CAACX,OAAO,EAAEO,EAAE,CAAC,CAACJ,MAAM,CAAC;IACvC;EACF,CAAC,EAAE,CAACI,EAAE,EAAEJ,MAAM,CAAC,CAAC;EAChB,OAAOE,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["useCallback","useEffect","useState","Skia","Rea","runtime","createWorkletRuntime","useVideoLoading","source","runOnJS","video","setVideo","cb","src","vid","Video","runOnRuntime"],"sources":["useVideoLoading.ts"],"sourcesContent":["import { useCallback, useEffect, useState } from \"react\";\n\nimport type { Video } from \"../../skia/types\";\nimport { Skia } from \"../../skia\";\n\nimport Rea from \"./ReanimatedProxy\";\n\nconst runtime = Rea.createWorkletRuntime(\"video-metadata-runtime\");\n\ntype VideoSource = string | null;\n\nexport const useVideoLoading = (source: VideoSource) => {\n const { runOnJS } = Rea;\n const [video, setVideo] = useState<Video | null>(null);\n const cb = useCallback(\n (src: string) => {\n \"worklet\";\n const vid = Skia.Video(src) as Video;\n runOnJS(setVideo)(vid);\n },\n [runOnJS]\n );\n useEffect(() => {\n if (source) {\n Rea.runOnRuntime(runtime, cb)(source);\n }\n }, [cb, source]);\n return video;\n};\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAGxD,SAASC,IAAI,QAAQ,YAAY;AAEjC,OAAOC,GAAG,MAAM,mBAAmB;AAEnC,MAAMC,OAAO,GAAGD,GAAG,CAACE,oBAAoB,CAAC,wBAAwB,CAAC;AAIlE,OAAO,MAAMC,eAAe,GAAIC,MAAmB,IAAK;EACtD,MAAM;IAAEC;EAAQ,CAAC,GAAGL,GAAG;EACvB,MAAM,CAACM,KAAK,EAAEC,QAAQ,CAAC,GAAGT,QAAQ,CAAe,IAAI,CAAC;EACtD,MAAMU,EAAE,GAAGZ,WAAW,CACnBa,GAAW,IAAK;IACf,SAAS;;IACT,MAAMC,GAAG,GAAGX,IAAI,CAACY,KAAK,CAACF,GAAG,CAAU;IACpCJ,OAAO,CAACE,QAAQ,CAAC,CAACG,GAAG,CAAC;EACxB,CAAC,EACD,CAACL,OAAO,CACV,CAAC;EACDR,SAAS,CAAC,MAAM;IACd,IAAIO,MAAM,EAAE;MACVJ,GAAG,CAACY,YAAY,CAACX,OAAO,EAAEO,EAAE,CAAC,CAACJ,MAAM,CAAC;IACvC;EACF,CAAC,EAAE,CAACI,EAAE,EAAEJ,MAAM,CAAC,CAAC;EAChB,OAAOE,KAAK;AACd,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useState","Skia","useVideoLoading","source","video","setVideo","vid","Video","then","v"],"sources":["useVideoLoading.web.ts"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nimport type { Video } from \"../../skia/types\";\nimport { Skia } from \"../../skia\";\n\ntype VideoSource = string | null;\n\nexport const useVideoLoading = (source: VideoSource) => {\n const [video, setVideo] = useState<Video | null>(null);\n useEffect(() => {\n if (source) {\n const vid = Skia.Video(source) as Promise<Video>;\n vid.then((v) => setVideo(v));\n }\n }, [source]);\n return video;\n};\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAG3C,SAASC,IAAI,QAAQ,YAAY;AAIjC,OAAO,MAAMC,eAAe,GAAIC,MAAmB,IAAK;EACtD,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGL,QAAQ,CAAe,IAAI,CAAC;EACtDD,SAAS,CAAC,MAAM;IACd,IAAII,MAAM,EAAE;MACV,MAAMG,GAAG,GAAGL,IAAI,CAACM,KAAK,CAACJ,MAAM,CAAmB;MAChDG,GAAG,CAACE,IAAI,CAAEC,CAAC,IAAKJ,QAAQ,CAACI,CAAC,CAAC,CAAC;IAC9B;EACF,CAAC,EAAE,CAACN,MAAM,CAAC,CAAC;EACZ,OAAOC,KAAK;AACd,CAAC"}
1
+ {"version":3,"names":["useEffect","useState","Skia","useVideoLoading","source","video","setVideo","vid","Video","then","v"],"sources":["useVideoLoading.web.ts"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nimport type { Video } from \"../../skia/types\";\nimport { Skia } from \"../../skia\";\n\ntype VideoSource = string | null;\n\nexport const useVideoLoading = (source: VideoSource) => {\n const [video, setVideo] = useState<Video | null>(null);\n useEffect(() => {\n if (source) {\n const vid = Skia.Video(source) as Promise<Video>;\n vid.then((v) => setVideo(v));\n }\n }, [source]);\n return video;\n};\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAG3C,SAASC,IAAI,QAAQ,YAAY;AAIjC,OAAO,MAAMC,eAAe,GAAIC,MAAmB,IAAK;EACtD,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGL,QAAQ,CAAe,IAAI,CAAC;EACtDD,SAAS,CAAC,MAAM;IACd,IAAII,MAAM,EAAE;MACV,MAAMG,GAAG,GAAGL,IAAI,CAACM,KAAK,CAACJ,MAAM,CAAmB;MAChDG,GAAG,CAACE,IAAI,CAAEC,CAAC,IAAKJ,QAAQ,CAACI,CAAC,CAAC,CAAC;IAC9B;EACF,CAAC,EAAE,CAACN,MAAM,CAAC,CAAC;EACZ,OAAOC,KAAK;AACd,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkApi","SkiaRoot","JsiDrawingContext","Skia","makeOffscreenSurface","width","height","CanvasKit","surface","Surface","MakeOffscreen","Error","getSkiaExports","drawOffscreen","element","root","render","canvas","getCanvas","ctx","dom","unmount","flush","makeImageSnapshot"],"sources":["index.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport CanvasKitInit from \"canvaskit-wasm/bin/full/canvaskit\";\nimport type { ReactNode } from \"react\";\n\nimport { JsiSkApi } from \"../skia/web\";\nimport { SkiaRoot } from \"../renderer/Reconciler\";\nimport { JsiDrawingContext } from \"../dom/types\";\nimport type { SkSurface } from \"../skia\";\n\nexport * from \"../renderer/components\";\n\nlet Skia: ReturnType<typeof JsiSkApi>;\n\nexport const makeOffscreenSurface = (width: number, height: number) => {\n if (!Skia) {\n Skia = JsiSkApi(CanvasKit);\n }\n const surface = Skia.Surface.MakeOffscreen(width, height);\n if (surface === null) {\n throw new Error(\"Couldn't create surface!\");\n }\n return surface;\n};\n\nexport const getSkiaExports = () => {\n if (!Skia) {\n Skia = JsiSkApi(CanvasKit);\n }\n return { Skia };\n};\n\nexport const drawOffscreen = (surface: SkSurface, element: ReactNode) => {\n const root = new SkiaRoot(Skia, false);\n root.render(element);\n const canvas = surface.getCanvas();\n const ctx = new JsiDrawingContext(Skia, canvas);\n root.dom.render(ctx);\n root.unmount();\n surface.flush();\n return surface.makeImageSnapshot();\n};\n"],"mappings":"AAAA;AACA;;AAIA,SAASA,QAAQ,QAAQ,aAAa;AACtC,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,iBAAiB,QAAQ,cAAc;AAGhD,cAAc,wBAAwB;AAEtC,IAAIC,IAAiC;AAErC,OAAO,MAAMC,oBAAoB,GAAGA,CAACC,KAAa,EAAEC,MAAc,KAAK;EACrE,IAAI,CAACH,IAAI,EAAE;IACTA,IAAI,GAAGH,QAAQ,CAACO,SAAS,CAAC;EAC5B;EACA,MAAMC,OAAO,GAAGL,IAAI,CAACM,OAAO,CAACC,aAAa,CAACL,KAAK,EAAEC,MAAM,CAAC;EACzD,IAAIE,OAAO,KAAK,IAAI,EAAE;IACpB,MAAM,IAAIG,KAAK,CAAC,0BAA0B,CAAC;EAC7C;EACA,OAAOH,OAAO;AAChB,CAAC;AAED,OAAO,MAAMI,cAAc,GAAGA,CAAA,KAAM;EAClC,IAAI,CAACT,IAAI,EAAE;IACTA,IAAI,GAAGH,QAAQ,CAACO,SAAS,CAAC;EAC5B;EACA,OAAO;IAAEJ;EAAK,CAAC;AACjB,CAAC;AAED,OAAO,MAAMU,aAAa,GAAGA,CAACL,OAAkB,EAAEM,OAAkB,KAAK;EACvE,MAAMC,IAAI,GAAG,IAAId,QAAQ,CAACE,IAAI,EAAE,KAAK,CAAC;EACtCY,IAAI,CAACC,MAAM,CAACF,OAAO,CAAC;EACpB,MAAMG,MAAM,GAAGT,OAAO,CAACU,SAAS,CAAC,CAAC;EAClC,MAAMC,GAAG,GAAG,IAAIjB,iBAAiB,CAACC,IAAI,EAAEc,MAAM,CAAC;EAC/CF,IAAI,CAACK,GAAG,CAACJ,MAAM,CAACG,GAAG,CAAC;EACpBJ,IAAI,CAACM,OAAO,CAAC,CAAC;EACdb,OAAO,CAACc,KAAK,CAAC,CAAC;EACf,OAAOd,OAAO,CAACe,iBAAiB,CAAC,CAAC;AACpC,CAAC"}
1
+ {"version":3,"names":["JsiSkApi","SkiaRoot","JsiDrawingContext","Skia","makeOffscreenSurface","width","height","CanvasKit","surface","Surface","MakeOffscreen","Error","getSkiaExports","drawOffscreen","element","root","render","canvas","getCanvas","ctx","dom","unmount","flush","makeImageSnapshot"],"sources":["index.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport CanvasKitInit from \"canvaskit-wasm/bin/full/canvaskit\";\nimport type { ReactNode } from \"react\";\n\nimport { JsiSkApi } from \"../skia/web\";\nimport { SkiaRoot } from \"../renderer/Reconciler\";\nimport { JsiDrawingContext } from \"../dom/types\";\nimport type { SkSurface } from \"../skia\";\n\nexport * from \"../renderer/components\";\n\nlet Skia: ReturnType<typeof JsiSkApi>;\n\nexport const makeOffscreenSurface = (width: number, height: number) => {\n if (!Skia) {\n Skia = JsiSkApi(CanvasKit);\n }\n const surface = Skia.Surface.MakeOffscreen(width, height);\n if (surface === null) {\n throw new Error(\"Couldn't create surface!\");\n }\n return surface;\n};\n\nexport const getSkiaExports = () => {\n if (!Skia) {\n Skia = JsiSkApi(CanvasKit);\n }\n return { Skia };\n};\n\nexport const drawOffscreen = (surface: SkSurface, element: ReactNode) => {\n const root = new SkiaRoot(Skia, false);\n root.render(element);\n const canvas = surface.getCanvas();\n const ctx = new JsiDrawingContext(Skia, canvas);\n root.dom.render(ctx);\n root.unmount();\n surface.flush();\n return surface.makeImageSnapshot();\n};\n"],"mappings":"AAAA;AACA;;AAIA,SAASA,QAAQ,QAAQ,aAAa;AACtC,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,iBAAiB,QAAQ,cAAc;AAGhD,cAAc,wBAAwB;AAEtC,IAAIC,IAAiC;AAErC,OAAO,MAAMC,oBAAoB,GAAGA,CAACC,KAAa,EAAEC,MAAc,KAAK;EACrE,IAAI,CAACH,IAAI,EAAE;IACTA,IAAI,GAAGH,QAAQ,CAACO,SAAS,CAAC;EAC5B;EACA,MAAMC,OAAO,GAAGL,IAAI,CAACM,OAAO,CAACC,aAAa,CAACL,KAAK,EAAEC,MAAM,CAAC;EACzD,IAAIE,OAAO,KAAK,IAAI,EAAE;IACpB,MAAM,IAAIG,KAAK,CAAC,0BAA0B,CAAC;EAC7C;EACA,OAAOH,OAAO;AAChB,CAAC;AAED,OAAO,MAAMI,cAAc,GAAGA,CAAA,KAAM;EAClC,IAAI,CAACT,IAAI,EAAE;IACTA,IAAI,GAAGH,QAAQ,CAACO,SAAS,CAAC;EAC5B;EACA,OAAO;IAAEJ;EAAK,CAAC;AACjB,CAAC;AAED,OAAO,MAAMU,aAAa,GAAGA,CAACL,OAAkB,EAAEM,OAAkB,KAAK;EACvE,MAAMC,IAAI,GAAG,IAAId,QAAQ,CAACE,IAAI,EAAE,KAAK,CAAC;EACtCY,IAAI,CAACC,MAAM,CAACF,OAAO,CAAC;EACpB,MAAMG,MAAM,GAAGT,OAAO,CAACU,SAAS,CAAC,CAAC;EAClC,MAAMC,GAAG,GAAG,IAAIjB,iBAAiB,CAACC,IAAI,EAAEc,MAAM,CAAC;EAC/CF,IAAI,CAACK,GAAG,CAACJ,MAAM,CAACG,GAAG,CAAC;EACpBJ,IAAI,CAACM,OAAO,CAAC,CAAC;EACdb,OAAO,CAACc,KAAK,CAAC,CAAC;EACf,OAAOd,OAAO,CAACe,iBAAiB,CAAC,CAAC;AACpC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkImage"],"sources":["index.ts"],"sourcesContent":["import \"./skia/NativeSetup\";\nexport { JsiSkImage } from \"./skia/web/JsiSkImage\";\nexport * from \"./renderer\";\nexport * from \"./renderer/Canvas\";\nexport * from \"./renderer/Offscreen\";\nexport * from \"./views\";\nexport * from \"./skia\";\nexport * from \"./external\";\nexport * from \"./animation\";\nexport * from \"./dom/types\";\nexport * from \"./dom/nodes\";\n"],"mappings":"AAAA,OAAO,oBAAoB;AAC3B,SAASA,UAAU,QAAQ,uBAAuB;AAClD,cAAc,YAAY;AAC1B,cAAc,mBAAmB;AACjC,cAAc,sBAAsB;AACpC,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,aAAa;AAC3B,cAAc,aAAa;AAC3B,cAAc,aAAa"}
1
+ {"version":3,"names":["JsiSkImage"],"sources":["index.ts"],"sourcesContent":["import \"./skia/NativeSetup\";\nexport { JsiSkImage } from \"./skia/web/JsiSkImage\";\nexport * from \"./renderer\";\nexport * from \"./renderer/Canvas\";\nexport * from \"./renderer/Offscreen\";\nexport * from \"./views\";\nexport * from \"./skia\";\nexport * from \"./external\";\nexport * from \"./animation\";\nexport * from \"./dom/types\";\nexport * from \"./dom/nodes\";\n"],"mappings":"AAAA,OAAO,oBAAoB;AAC3B,SAASA,UAAU,QAAQ,uBAAuB;AAClD,cAAc,YAAY;AAC1B,cAAc,mBAAmB;AACjC,cAAc,sBAAsB;AACpC,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,aAAa;AAC3B,cAAc,aAAa;AAC3B,cAAc,aAAa","ignoreList":[]}
@@ -9,7 +9,11 @@ const NoopSharedValue = () => ({
9
9
  value: 0
10
10
  });
11
11
  export const Mock = CanvasKit => {
12
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
13
+ // @ts-ignore
12
14
  global.SkiaApi = JsiSkApi(CanvasKit);
15
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
16
+ // @ts-ignore
13
17
  const Skia = global.SkiaApi;
14
18
  return {
15
19
  Skia,
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkApi","Noop","undefined","NoopValue","current","NoopSharedValue","value","Mock","CanvasKit","global","SkiaApi","Skia","require","Canvas","useValue","useComputedValue","useTouchHandler","useTiming","useLoop","useSpring","useClockValue","useValueEffect","useClock","usePathInterpolation","useImageAsTexture","useTextureValue","useTextureValueFromPicture","useRSXformBuffer","usePointBuffer","useColorBuffer","useRectBuffer","useBuffer","useRawData","useData","useFont","Font","useFonts","useTypeface","useImage","useSVG","useVideo"],"sources":["index.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport { JsiSkApi } from \"../skia/web\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst Noop: () => any = () => undefined;\nconst NoopValue = () => ({ current: 0 });\nconst NoopSharedValue = () => ({ value: 0 });\n\nexport const Mock = (CanvasKit: CanvasKit) => {\n global.SkiaApi = JsiSkApi(CanvasKit);\n const Skia = global.SkiaApi;\n return {\n Skia,\n ...require(\"../renderer/components\"),\n ...require(\"../skia\"),\n ...require(\"../animation\"),\n ...require(\"../dom/types\"),\n ...require(\"../dom/nodes\"),\n // We could use the real Canvas if we mock the SkiaView component for node\n Canvas: Noop,\n // Skia Animations\n useValue: NoopValue,\n useComputedValue: NoopValue,\n useTouchHandler: Noop,\n useTiming: NoopValue,\n useLoop: NoopValue,\n useSpring: NoopValue,\n useClockValue: NoopValue,\n useValueEffect: Noop,\n // Reanimated hooks\n useClock: NoopSharedValue,\n usePathInterpolation: NoopSharedValue,\n useImageAsTexture: NoopSharedValue,\n useTextureValue: NoopSharedValue,\n useTextureValueFromPicture: NoopSharedValue,\n useRSXformBuffer: NoopSharedValue,\n usePointBuffer: NoopSharedValue,\n useColorBuffer: NoopSharedValue,\n useRectBuffer: NoopSharedValue,\n useBuffer: NoopSharedValue,\n useRawData: Noop,\n useData: Noop,\n useFont: () => Skia.Font(undefined, 0),\n useFonts: Noop,\n useTypeface: () => null,\n useImage: () => null,\n useSVG: () => null,\n useVideo: () => null,\n };\n};\n"],"mappings":"AAEA,SAASA,QAAQ,QAAQ,aAAa;;AAEtC;AACA,MAAMC,IAAe,GAAGA,CAAA,KAAMC,SAAS;AACvC,MAAMC,SAAS,GAAGA,CAAA,MAAO;EAAEC,OAAO,EAAE;AAAE,CAAC,CAAC;AACxC,MAAMC,eAAe,GAAGA,CAAA,MAAO;EAAEC,KAAK,EAAE;AAAE,CAAC,CAAC;AAE5C,OAAO,MAAMC,IAAI,GAAIC,SAAoB,IAAK;EAC5CC,MAAM,CAACC,OAAO,GAAGV,QAAQ,CAACQ,SAAS,CAAC;EACpC,MAAMG,IAAI,GAAGF,MAAM,CAACC,OAAO;EAC3B,OAAO;IACLC,IAAI;IACJ,GAAGC,OAAO,CAAC,wBAAwB,CAAC;IACpC,GAAGA,OAAO,CAAC,SAAS,CAAC;IACrB,GAAGA,OAAO,CAAC,cAAc,CAAC;IAC1B,GAAGA,OAAO,CAAC,cAAc,CAAC;IAC1B,GAAGA,OAAO,CAAC,cAAc,CAAC;IAC1B;IACAC,MAAM,EAAEZ,IAAI;IACZ;IACAa,QAAQ,EAAEX,SAAS;IACnBY,gBAAgB,EAAEZ,SAAS;IAC3Ba,eAAe,EAAEf,IAAI;IACrBgB,SAAS,EAAEd,SAAS;IACpBe,OAAO,EAAEf,SAAS;IAClBgB,SAAS,EAAEhB,SAAS;IACpBiB,aAAa,EAAEjB,SAAS;IACxBkB,cAAc,EAAEpB,IAAI;IACpB;IACAqB,QAAQ,EAAEjB,eAAe;IACzBkB,oBAAoB,EAAElB,eAAe;IACrCmB,iBAAiB,EAAEnB,eAAe;IAClCoB,eAAe,EAAEpB,eAAe;IAChCqB,0BAA0B,EAAErB,eAAe;IAC3CsB,gBAAgB,EAAEtB,eAAe;IACjCuB,cAAc,EAAEvB,eAAe;IAC/BwB,cAAc,EAAExB,eAAe;IAC/ByB,aAAa,EAAEzB,eAAe;IAC9B0B,SAAS,EAAE1B,eAAe;IAC1B2B,UAAU,EAAE/B,IAAI;IAChBgC,OAAO,EAAEhC,IAAI;IACbiC,OAAO,EAAEA,CAAA,KAAMvB,IAAI,CAACwB,IAAI,CAACjC,SAAS,EAAE,CAAC,CAAC;IACtCkC,QAAQ,EAAEnC,IAAI;IACdoC,WAAW,EAAEA,CAAA,KAAM,IAAI;IACvBC,QAAQ,EAAEA,CAAA,KAAM,IAAI;IACpBC,MAAM,EAAEA,CAAA,KAAM,IAAI;IAClBC,QAAQ,EAAEA,CAAA,KAAM;EAClB,CAAC;AACH,CAAC"}
1
+ {"version":3,"names":["JsiSkApi","Noop","undefined","NoopValue","current","NoopSharedValue","value","Mock","CanvasKit","global","SkiaApi","Skia","require","Canvas","useValue","useComputedValue","useTouchHandler","useTiming","useLoop","useSpring","useClockValue","useValueEffect","useClock","usePathInterpolation","useImageAsTexture","useTextureValue","useTextureValueFromPicture","useRSXformBuffer","usePointBuffer","useColorBuffer","useRectBuffer","useBuffer","useRawData","useData","useFont","Font","useFonts","useTypeface","useImage","useSVG","useVideo"],"sources":["index.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport { JsiSkApi } from \"../skia/web\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst Noop: () => any = () => undefined;\nconst NoopValue = () => ({ current: 0 });\nconst NoopSharedValue = () => ({ value: 0 });\n\nexport const Mock = (CanvasKit: CanvasKit) => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n global.SkiaApi = JsiSkApi(CanvasKit);\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n const Skia = global.SkiaApi;\n return {\n Skia,\n ...require(\"../renderer/components\"),\n ...require(\"../skia\"),\n ...require(\"../animation\"),\n ...require(\"../dom/types\"),\n ...require(\"../dom/nodes\"),\n // We could use the real Canvas if we mock the SkiaView component for node\n Canvas: Noop,\n // Skia Animations\n useValue: NoopValue,\n useComputedValue: NoopValue,\n useTouchHandler: Noop,\n useTiming: NoopValue,\n useLoop: NoopValue,\n useSpring: NoopValue,\n useClockValue: NoopValue,\n useValueEffect: Noop,\n // Reanimated hooks\n useClock: NoopSharedValue,\n usePathInterpolation: NoopSharedValue,\n useImageAsTexture: NoopSharedValue,\n useTextureValue: NoopSharedValue,\n useTextureValueFromPicture: NoopSharedValue,\n useRSXformBuffer: NoopSharedValue,\n usePointBuffer: NoopSharedValue,\n useColorBuffer: NoopSharedValue,\n useRectBuffer: NoopSharedValue,\n useBuffer: NoopSharedValue,\n useRawData: Noop,\n useData: Noop,\n useFont: () => Skia.Font(undefined, 0),\n useFonts: Noop,\n useTypeface: () => null,\n useImage: () => null,\n useSVG: () => null,\n useVideo: () => null,\n };\n};\n"],"mappings":"AAEA,SAASA,QAAQ,QAAQ,aAAa;;AAEtC;AACA,MAAMC,IAAe,GAAGA,CAAA,KAAMC,SAAS;AACvC,MAAMC,SAAS,GAAGA,CAAA,MAAO;EAAEC,OAAO,EAAE;AAAE,CAAC,CAAC;AACxC,MAAMC,eAAe,GAAGA,CAAA,MAAO;EAAEC,KAAK,EAAE;AAAE,CAAC,CAAC;AAE5C,OAAO,MAAMC,IAAI,GAAIC,SAAoB,IAAK;EAC5C;EACA;EACAC,MAAM,CAACC,OAAO,GAAGV,QAAQ,CAACQ,SAAS,CAAC;EACpC;EACA;EACA,MAAMG,IAAI,GAAGF,MAAM,CAACC,OAAO;EAC3B,OAAO;IACLC,IAAI;IACJ,GAAGC,OAAO,CAAC,wBAAwB,CAAC;IACpC,GAAGA,OAAO,CAAC,SAAS,CAAC;IACrB,GAAGA,OAAO,CAAC,cAAc,CAAC;IAC1B,GAAGA,OAAO,CAAC,cAAc,CAAC;IAC1B,GAAGA,OAAO,CAAC,cAAc,CAAC;IAC1B;IACAC,MAAM,EAAEZ,IAAI;IACZ;IACAa,QAAQ,EAAEX,SAAS;IACnBY,gBAAgB,EAAEZ,SAAS;IAC3Ba,eAAe,EAAEf,IAAI;IACrBgB,SAAS,EAAEd,SAAS;IACpBe,OAAO,EAAEf,SAAS;IAClBgB,SAAS,EAAEhB,SAAS;IACpBiB,aAAa,EAAEjB,SAAS;IACxBkB,cAAc,EAAEpB,IAAI;IACpB;IACAqB,QAAQ,EAAEjB,eAAe;IACzBkB,oBAAoB,EAAElB,eAAe;IACrCmB,iBAAiB,EAAEnB,eAAe;IAClCoB,eAAe,EAAEpB,eAAe;IAChCqB,0BAA0B,EAAErB,eAAe;IAC3CsB,gBAAgB,EAAEtB,eAAe;IACjCuB,cAAc,EAAEvB,eAAe;IAC/BwB,cAAc,EAAExB,eAAe;IAC/ByB,aAAa,EAAEzB,eAAe;IAC9B0B,SAAS,EAAE1B,eAAe;IAC1B2B,UAAU,EAAE/B,IAAI;IAChBgC,OAAO,EAAEhC,IAAI;IACbiC,OAAO,EAAEA,CAAA,KAAMvB,IAAI,CAACwB,IAAI,CAACjC,SAAS,EAAE,CAAC,CAAC;IACtCkC,QAAQ,EAAEnC,IAAI;IACdoC,WAAW,EAAEA,CAAA,KAAM,IAAI;IACvBC,QAAQ,EAAEA,CAAA,KAAM,IAAI;IACpBC,MAAM,EAAEA,CAAA,KAAM,IAAI;IAClBC,QAAQ,EAAEA,CAAA,KAAM;EAClB,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { RefObject, ReactNode } from "react";
2
+ import type { RefObject, ReactNode, FunctionComponent } from "react";
3
3
  import { SkiaDomView } from "../views";
4
4
  import type { TouchHandler, SkiaBaseViewProps } from "../views";
5
5
  export declare const useCanvasRef: () => React.RefObject<SkiaDomView>;
@@ -8,4 +8,4 @@ export interface CanvasProps extends SkiaBaseViewProps {
8
8
  children: ReactNode;
9
9
  onTouch?: TouchHandler;
10
10
  }
11
- export declare const Canvas: React.FunctionComponent<CanvasProps & React.RefAttributes<SkiaDomView>>;
11
+ export declare const Canvas: FunctionComponent<CanvasProps & React.RefAttributes<SkiaDomView>>;
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import React, { useEffect, useCallback, useMemo, forwardRef, useRef } from "react";
3
3
  import { SkiaDomView } from "../views";
4
4
  import { Skia } from "../skia/Skia";
@@ -1 +1 @@
1
- {"version":3,"names":["React","useEffect","useCallback","useMemo","forwardRef","useRef","SkiaDomView","Skia","SkiaJSDomView","SkiaRoot","NATIVE_DOM","useCanvasRef","useOnSizeEvent","resultValue","onLayout","event","width","height","nativeEvent","layout","value","Canvas","children","style","debug","mode","onTouch","onSize","_onSize","_onLayout","props","forwardedRef","innerRef","ref","useCombinedRefs","redraw","_innerRef$current","current","getNativeId","_innerRef$current$nat","_innerRef$current2","id","nativeId","root","render","unmount","createElement","_extends","dom","refs","targetRef","forEach"],"sources":["Canvas.tsx"],"sourcesContent":["import React, {\n useEffect,\n useCallback,\n useMemo,\n forwardRef,\n useRef,\n} from \"react\";\nimport type {\n RefObject,\n ReactNode,\n MutableRefObject,\n ForwardedRef,\n FunctionComponent,\n} from \"react\";\nimport type { LayoutChangeEvent } from \"react-native\";\n\nimport { SkiaDomView } from \"../views\";\nimport { Skia } from \"../skia/Skia\";\nimport type { TouchHandler, SkiaBaseViewProps } from \"../views\";\nimport { SkiaJSDomView } from \"../views/SkiaJSDomView\";\n\nimport { SkiaRoot } from \"./Reconciler\";\nimport { NATIVE_DOM } from \"./HostComponents\";\n\nexport const useCanvasRef = () => useRef<SkiaDomView>(null);\n\nexport interface CanvasProps extends SkiaBaseViewProps {\n ref?: RefObject<SkiaDomView>;\n children: ReactNode;\n onTouch?: TouchHandler;\n}\n\nconst useOnSizeEvent = (\n resultValue: SkiaBaseViewProps[\"onSize\"],\n onLayout?: (event: LayoutChangeEvent) => void\n) => {\n return useCallback(\n (event: LayoutChangeEvent) => {\n if (onLayout) {\n onLayout(event);\n }\n const { width, height } = event.nativeEvent.layout;\n\n if (resultValue) {\n resultValue.value = { width, height };\n }\n },\n [onLayout, resultValue]\n );\n};\n\nexport const Canvas = forwardRef<SkiaDomView, CanvasProps>(\n (\n {\n children,\n style,\n debug,\n mode,\n onTouch,\n onSize: _onSize,\n onLayout: _onLayout,\n ...props\n },\n forwardedRef\n ) => {\n const onLayout = useOnSizeEvent(_onSize, _onLayout);\n const innerRef = useCanvasRef();\n const ref = useCombinedRefs(forwardedRef, innerRef);\n const redraw = useCallback(() => {\n innerRef.current?.redraw();\n }, [innerRef]);\n const getNativeId = useCallback(() => {\n const id = innerRef.current?.nativeId ?? -1;\n return id;\n }, [innerRef]);\n\n const root = useMemo(\n () => new SkiaRoot(Skia, NATIVE_DOM, redraw, getNativeId),\n [redraw, getNativeId]\n );\n\n // Render effect\n useEffect(() => {\n root.render(children);\n }, [children, root, redraw]);\n\n useEffect(() => {\n return () => {\n root.unmount();\n };\n }, [root]);\n\n if (NATIVE_DOM) {\n return (\n <SkiaDomView\n ref={ref}\n style={style}\n root={root.dom}\n onTouch={onTouch}\n onLayout={onLayout}\n mode={mode}\n debug={debug}\n {...props}\n />\n );\n } else {\n return (\n <SkiaJSDomView\n Skia={Skia}\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ref={ref as any}\n style={style}\n root={root.dom}\n onTouch={onTouch}\n onLayout={onLayout}\n mode={mode}\n debug={debug}\n {...props}\n />\n );\n }\n }\n) as FunctionComponent<CanvasProps & React.RefAttributes<SkiaDomView>>;\n\n/**\n * Combines a list of refs into a single ref. This can be used to provide\n * both a forwarded ref and an internal ref keeping the same functionality\n * on both of the refs.\n * @param refs Array of refs to combine\n * @returns A single ref that can be used in a ref prop.\n */\nconst useCombinedRefs = <T,>(\n ...refs: Array<MutableRefObject<T> | ForwardedRef<T>>\n) => {\n const targetRef = React.useRef<T>(null);\n React.useEffect(() => {\n refs.forEach((ref) => {\n if (ref) {\n if (typeof ref === \"function\") {\n ref(targetRef.current);\n } else {\n ref.current = targetRef.current;\n }\n }\n });\n }, [refs]);\n return targetRef;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,IACVC,SAAS,EACTC,WAAW,EACXC,OAAO,EACPC,UAAU,EACVC,MAAM,QACD,OAAO;AAUd,SAASC,WAAW,QAAQ,UAAU;AACtC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,aAAa,QAAQ,wBAAwB;AAEtD,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,UAAU,QAAQ,kBAAkB;AAE7C,OAAO,MAAMC,YAAY,GAAGA,CAAA,KAAMN,MAAM,CAAc,IAAI,CAAC;AAQ3D,MAAMO,cAAc,GAAGA,CACrBC,WAAwC,EACxCC,QAA6C,KAC1C;EACH,OAAOZ,WAAW,CACfa,KAAwB,IAAK;IAC5B,IAAID,QAAQ,EAAE;MACZA,QAAQ,CAACC,KAAK,CAAC;IACjB;IACA,MAAM;MAAEC,KAAK;MAAEC;IAAO,CAAC,GAAGF,KAAK,CAACG,WAAW,CAACC,MAAM;IAElD,IAAIN,WAAW,EAAE;MACfA,WAAW,CAACO,KAAK,GAAG;QAAEJ,KAAK;QAAEC;MAAO,CAAC;IACvC;EACF,CAAC,EACD,CAACH,QAAQ,EAAED,WAAW,CACxB,CAAC;AACH,CAAC;AAED,OAA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C,EAAE,CAACY,IAAI,CAAC,CAAC;EACV,OAAOC,SAAS;AAClB,CAAC"}
1
+ {"version":3,"names":["React","useEffect","useCallback","useMemo","forwardRef","useRef","SkiaDomView","Skia","SkiaJSDomView","SkiaRoot","NATIVE_DOM","useCanvasRef","useOnSizeEvent","resultValue","onLayout","event","width","height","nativeEvent","layout","value","Canvas","children","style","debug","mode","onTouch","onSize","_onSize","_onLayout","props","forwardedRef","innerRef","ref","useCombinedRefs","redraw","_innerRef$current","current","getNativeId","_innerRef$current$nat","_innerRef$current2","id","nativeId","root","render","unmount","createElement","_extends","dom","refs","targetRef","forEach"],"sources":["Canvas.tsx"],"sourcesContent":["import React, {\n useEffect,\n useCallback,\n useMemo,\n forwardRef,\n useRef,\n} from \"react\";\nimport type {\n RefObject,\n ReactNode,\n MutableRefObject,\n ForwardedRef,\n FunctionComponent,\n} from \"react\";\nimport type { LayoutChangeEvent } from \"react-native\";\n\nimport { SkiaDomView } from \"../views\";\nimport { Skia } from \"../skia/Skia\";\nimport type { TouchHandler, SkiaBaseViewProps } from \"../views\";\nimport { SkiaJSDomView } from \"../views/SkiaJSDomView\";\n\nimport { SkiaRoot } from \"./Reconciler\";\nimport { NATIVE_DOM } from \"./HostComponents\";\n\nexport const useCanvasRef = () => useRef<SkiaDomView>(null);\n\nexport interface CanvasProps extends SkiaBaseViewProps {\n ref?: RefObject<SkiaDomView>;\n children: ReactNode;\n onTouch?: TouchHandler;\n}\n\nconst useOnSizeEvent = (\n resultValue: SkiaBaseViewProps[\"onSize\"],\n onLayout?: (event: LayoutChangeEvent) => void\n) => {\n return useCallback(\n (event: LayoutChangeEvent) => {\n if (onLayout) {\n onLayout(event);\n }\n const { width, height } = event.nativeEvent.layout;\n\n if (resultValue) {\n resultValue.value = { width, height };\n }\n },\n [onLayout, resultValue]\n );\n};\n\nexport const Canvas = forwardRef<SkiaDomView, CanvasProps>(\n (\n {\n children,\n style,\n debug,\n mode,\n onTouch,\n onSize: _onSize,\n onLayout: _onLayout,\n ...props\n },\n forwardedRef\n ) => {\n const onLayout = useOnSizeEvent(_onSize, _onLayout);\n const innerRef = useCanvasRef();\n const ref = useCombinedRefs(forwardedRef, innerRef);\n const redraw = useCallback(() => {\n innerRef.current?.redraw();\n }, [innerRef]);\n const getNativeId = useCallback(() => {\n const id = innerRef.current?.nativeId ?? -1;\n return id;\n }, [innerRef]);\n\n const root = useMemo(\n () => new SkiaRoot(Skia, NATIVE_DOM, redraw, getNativeId),\n [redraw, getNativeId]\n );\n\n // Render effect\n useEffect(() => {\n root.render(children);\n }, [children, root, redraw]);\n\n useEffect(() => {\n return () => {\n root.unmount();\n };\n }, [root]);\n\n if (NATIVE_DOM) {\n return (\n <SkiaDomView\n ref={ref}\n style={style}\n root={root.dom}\n onTouch={onTouch}\n onLayout={onLayout}\n mode={mode}\n debug={debug}\n {...props}\n />\n );\n } else {\n return (\n <SkiaJSDomView\n Skia={Skia}\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ref={ref as any}\n style={style}\n root={root.dom}\n onTouch={onTouch}\n onLayout={onLayout}\n mode={mode}\n debug={debug}\n {...props}\n />\n );\n }\n }\n) as FunctionComponent<CanvasProps & React.RefAttributes<SkiaDomView>>;\n\n/**\n * Combines a list of refs into a single ref. This can be used to provide\n * both a forwarded ref and an internal ref keeping the same functionality\n * on both of the refs.\n * @param refs Array of refs to combine\n * @returns A single ref that can be used in a ref prop.\n */\nconst useCombinedRefs = <T,>(\n ...refs: Array<MutableRefObject<T> | ForwardedRef<T>>\n) => {\n const targetRef = React.useRef<T>(null);\n React.useEffect(() => {\n refs.forEach((ref) => {\n if (ref) {\n if (typeof ref === \"function\") {\n ref(targetRef.current);\n } else {\n ref.current = targetRef.current;\n }\n }\n });\n }, [refs]);\n return targetRef;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,IACVC,SAAS,EACTC,WAAW,EACXC,OAAO,EACPC,UAAU,EACVC,MAAM,QACD,OAAO;AAUd,SAASC,WAAW,QAAQ,UAAU;AAC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AACK,GAAI;MACftB,OAAO,EAAEA,OAAQ;MACjBZ,QAAQ,EAAEA,QAAS;MACnBW,IAAI,EAAEA,IAAK;MACXD,KAAK,EAAEA;IAAM,GACTM,KAAK,CACV,CAAC;EAEN;AACF,CACF,CAAsE;;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMI,eAAe,GAAGA,CACtB,GAAGe,IAAkD,KAClD;EACH,MAAMC,SAAS,GAAGlD,KAAK,CAACK,MAAM,CAAI,IAAI,CAAC;EACvCL,KAAK,CAACC,SAAS,CAAC,MAAM;IACpBgD,IAAI,CAACE,OAAO,CAAElB,GAAG,IAAK;MACpB,IAAIA,GAAG,EAAE;QACP,IAAI,OAAOA,GAAG,KAAK,UAAU,EAAE;UAC7BA,GAAG,CAACiB,SAAS,CAACb,OAAO,CAAC;QACxB,CAAC,MAAM;UACLJ,GAAG,CAACI,OAAO,GAAGa,SAAS,CAACb,OAAO;QACjC;MACF;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACY,IAAI,CAAC,CAAC;EACV,OAAOC,SAAS;AAClB,CAAC","ignoreList":[]}
@@ -5,6 +5,7 @@ export declare class Container {
5
5
  getNativeId: () => number;
6
6
  private _root;
7
7
  Sk: SkDOM;
8
+ unmounted: boolean;
8
9
  constructor(Skia: Skia, redraw: () => void, getNativeId: () => number, native: boolean);
9
10
  draw(ctx: DrawingContext): void;
10
11
  get root(): RenderNode<GroupProps>;
@@ -1,5 +1,5 @@
1
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
3
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { JsiSkDOM } from "../dom/nodes";
5
5
  export class Container {
@@ -8,6 +8,7 @@ export class Container {
8
8
  this.getNativeId = getNativeId;
9
9
  _defineProperty(this, "_root", void 0);
10
10
  _defineProperty(this, "Sk", void 0);
11
+ _defineProperty(this, "unmounted", false);
11
12
  this.Sk = new JsiSkDOM({
12
13
  Skia
13
14
  }, native);
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkDOM","Container","constructor","Skia","redraw","getNativeId","native","_defineProperty","Sk","_root","Group","draw","ctx","render","root"],"sources":["Container.tsx"],"sourcesContent":["import { JsiSkDOM } from \"../dom/nodes\";\nimport type {\n GroupProps,\n DrawingContext,\n RenderNode,\n SkDOM,\n} from \"../dom/types\";\nimport type { Skia } from \"../skia/types\";\n\nexport class Container {\n private _root: RenderNode<GroupProps>;\n public Sk: SkDOM;\n constructor(\n Skia: Skia,\n public redraw: () => void = () => {},\n public getNativeId: () => number = () => 0,\n native: boolean\n ) {\n this.Sk = new JsiSkDOM({ Skia }, native);\n this._root = this.Sk.Group();\n }\n\n draw(ctx: DrawingContext) {\n this._root.render(ctx);\n }\n\n get root() {\n return this._root;\n }\n}\n"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,cAAc;AASvC,OAAO,MAAMC,SAAS,CAAC;EAGrBC,WAAWA,CACTC,IAAU,EACHC,MAAkB,GAAGA,CAAA,KAAM,CAAC,CAAC,EAC7BC,WAAyB,GAAGA,CAAA,KAAM,CAAC,EAC1CC,MAAe,EACf;IAAA,KAHOF,MAAkB,GAAlBA,MAAkB;IAAA,KAClBC,WAAyB,GAAzBA,WAAyB;IAAAE,eAAA;IAAAA,eAAA;IAGhC,IAAI,CAACC,EAAE,GAAG,IAAIR,QAAQ,CAAC;MAAEG;IAAK,CAAC,EAAEG,MAAM,CAAC;IACxC,IAAI,CAACG,KAAK,GAAG,IAAI,CAACD,EAAE,CAACE,KAAK,CAAC,CAAC;EAC9B;EAEAC,IAAIA,CAACC,GAAmB,EAAE;IACxB,IAAI,CAACH,KAAK,CAACI,MAAM,CAACD,GAAG,CAAC;EACxB;EAEA,IAAIE,IAAIA,CAAA,EAAG;IACT,OAAO,IAAI,CAACL,KAAK;EACnB;AACF"}
1
+ {"version":3,"names":["JsiSkDOM","Container","constructor","Skia","redraw","getNativeId","native","_defineProperty","Sk","_root","Group","draw","ctx","render","root"],"sources":["Container.tsx"],"sourcesContent":["import { JsiSkDOM } from \"../dom/nodes\";\nimport type {\n GroupProps,\n DrawingContext,\n RenderNode,\n SkDOM,\n} from \"../dom/types\";\nimport type { Skia } from \"../skia/types\";\n\nexport class Container {\n private _root: RenderNode<GroupProps>;\n public Sk: SkDOM;\n public unmounted = false;\n constructor(\n Skia: Skia,\n public redraw: () => void = () => {},\n public getNativeId: () => number = () => 0,\n native: boolean\n ) {\n this.Sk = new JsiSkDOM({ Skia }, native);\n this._root = this.Sk.Group();\n }\n\n draw(ctx: DrawingContext) {\n this._root.render(ctx);\n }\n\n get root() {\n return this._root;\n }\n}\n"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,cAAc;AASvC,OAAO,MAAMC,SAAS,CAAC;EAIrBC,WAAWA,CACTC,IAAU,EACHC,MAAkB,GAAGA,CAAA,KAAM,CAAC,CAAC,EAC7BC,WAAyB,GAAGA,CAAA,KAAM,CAAC,EAC1CC,MAAe,EACf;IAAA,KAHOF,MAAkB,GAAlBA,MAAkB;IAAA,KAClBC,WAAyB,GAAzBA,WAAyB;IAAAE,eAAA;IAAAA,eAAA;IAAAA,eAAA,oBAJf,KAAK;IAOtB,IAAI,CAACC,EAAE,GAAG,IAAIR,QAAQ,CAAC;MAAEG;IAAK,CAAC,EAAEG,MAAM,CAAC;IACxC,IAAI,CAACG,KAAK,GAAG,IAAI,CAACD,EAAE,CAACE,KAAK,CAAC,CAAC;EAC9B;EAEAC,IAAIA,CAACC,GAAmB,EAAE;IACxB,IAAI,CAACH,KAAK,CAACI,MAAM,CAACD,GAAG,CAAC;EACxB;EAEA,IAAIE,IAAIA,CAAA,EAAG;IACT,OAAO,IAAI,CAACL,KAAK;EACnB;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["DrawingContext.ts"],"sourcesContent":["import type { DrawingInfo } from \"../views\";\nimport type { Skia, SkCanvas, SkPaint } from \"../skia/types\";\n\nexport interface DrawingContext extends Omit<DrawingInfo, \"touches\"> {\n Skia: Skia;\n canvas: SkCanvas;\n paint: SkPaint;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["DrawingContext.ts"],"sourcesContent":["import type { DrawingInfo } from \"../views\";\nimport type { Skia, SkCanvas, SkPaint } from \"../skia/types\";\n\nexport interface DrawingContext extends Omit<DrawingInfo, \"touches\"> {\n Skia: Skia;\n canvas: SkCanvas;\n paint: SkPaint;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["NodeType","exhaustiveCheck","shouldUseJSDomOnNative","NATIVE_DOM","global","SkiaDomApi","createNode","container","type","props","Sk","Layer","Group","Paint","Fill","Image","Circle","Path","Line","Oval","Patch","Points","Rect","RRect","Vertices","Text","TextPath","TextBlob","Glyphs","Atlas","DiffRect","Picture","ImageSVG","BlurMaskFilter","BlendImageFilter","BlurImageFilter","OffsetImageFilter","DropShadowImageFilter","DisplacementMapImageFilter","MorphologyImageFilter","RuntimeShaderImageFilter","MatrixColorFilter","BlendColorFilter","LerpColorFilter","LumaColorFilter","LinearToSRGBGammaColorFilter","SRGBToLinearGammaColorFilter","Shader","ImageShader","ColorShader","Turbulence","FractalNoise","LinearGradient","RadialGradient","SweepGradient","TwoPointConicalGradient","CornerPathEffect","DiscretePathEffect","DashPathEffect","Path1DPathEffect","Path2DPathEffect","SumPathEffect","Line2DPathEffect","Blend","BackdropFilter","Box","BoxShadow","Paragraph"],"sources":["HostComponents.ts"],"sourcesContent":["import { NodeType } from \"../dom/types\";\nimport type {\n DeclarationNode,\n FractalNoiseProps,\n RenderNode,\n CircleProps,\n DrawingNodeProps,\n ImageProps,\n PaintProps,\n PathProps,\n LineProps,\n OvalProps,\n DiffRectProps,\n PointsProps,\n RectProps,\n RoundedRectProps,\n TextProps,\n VerticesProps,\n BlurMaskFilterProps,\n BlendImageFilterProps,\n BlurImageFilterProps,\n DisplacementMapImageFilterProps,\n DropShadowImageFilterProps,\n OffsetImageFilterProps,\n RuntimeShaderImageFilterProps,\n MatrixColorFilterProps,\n ShaderProps,\n ImageShaderProps,\n LinearGradientProps,\n GroupProps,\n PatchProps,\n BlendColorFilterProps,\n DashPathEffectProps,\n DiscretePathEffectProps,\n CornerPathEffectProps,\n Line2DPathEffectProps,\n Path1DPathEffectProps,\n Path2DPathEffectProps,\n TextPathProps,\n TextBlobProps,\n GlyphsProps,\n TwoPointConicalGradientProps,\n TurbulenceProps,\n SweepGradientProps,\n RadialGradientProps,\n ColorProps,\n PictureProps,\n ImageSVGProps,\n LerpColorFilterProps,\n BoxProps,\n BoxShadowProps,\n ParagraphProps,\n AtlasProps,\n} from \"../dom/types\";\nimport type { ChildrenProps } from \"../dom/types/Common\";\nimport type {\n BlendProps,\n MorphologyImageFilterProps,\n} from \"../dom/types/ImageFilters\";\nimport type { SkRect, SkRRect } from \"../skia/types\";\nimport type { JsiDrawingNode } from \"../dom/nodes/DrawingNode\";\n\nimport type { Container } from \"./Container\";\nimport { exhaustiveCheck } from \"./typeddash\";\nimport type { SkiaProps } from \"./processors\";\n\n// This flag should only be turned on for debugging/testing\nconst shouldUseJSDomOnNative = false;\nexport const NATIVE_DOM = shouldUseJSDomOnNative ? false : !!global.SkiaDomApi;\n\ndeclare global {\n var SkiaDomApi: {\n RectNode: (props: RectProps) => JsiDrawingNode<RectProps, SkRect>;\n RRectNode: (\n props: RoundedRectProps\n ) => JsiDrawingNode<RoundedRectProps, SkRRect>;\n GroupNode: (props: GroupProps) => RenderNode<GroupProps>;\n PaintNode: (props: PaintProps) => DeclarationNode<PaintProps>;\n FillNode: (props: PaintProps) => RenderNode<PaintProps>;\n CircleNode: (props: CircleProps) => RenderNode<CircleProps>;\n PathNode: (props: PathProps) => RenderNode<PathProps>;\n LineNode: (props: LineProps) => RenderNode<LineProps>;\n ImageNode: (props: ImageProps) => RenderNode<ImageProps>;\n OvalNode: (props: OvalProps) => RenderNode<OvalProps>;\n PatchNode: (props: PatchProps) => RenderNode<PatchProps>;\n PointsNode: (props: PointsProps) => RenderNode<PointsProps>;\n DiffRectNode: (props: DiffRectProps) => RenderNode<DiffRectProps>;\n AtlasNode: (props: AtlasProps) => RenderNode<AtlasProps>;\n\n // Mask filters\n BlurMaskFilterNode: (\n props: BlurMaskFilterProps\n ) => DeclarationNode<BlurMaskFilterProps>;\n\n // Path effects\n DashPathEffectNode: (\n props: DashPathEffectProps\n ) => DeclarationNode<DashPathEffectProps>;\n DiscretePathEffectNode: (\n props: DiscretePathEffectProps\n ) => DeclarationNode<DiscretePathEffectProps>;\n CornerPathEffectNode: (\n props: CornerPathEffectProps\n ) => DeclarationNode<CornerPathEffectProps>;\n Path1DPathEffectNode: (\n props: Path1DPathEffectProps\n ) => DeclarationNode<Path1DPathEffectProps>;\n Path2DPathEffectNode: (\n props: Path2DPathEffectProps\n ) => DeclarationNode<Path2DPathEffectProps>;\n Line2DPathEffectNode: (\n props: Line2DPathEffectProps\n ) => DeclarationNode<Line2DPathEffectProps>;\n SumPathEffectNode: () => DeclarationNode<null>;\n\n // Image filters\n BlendImageFilterNode: (\n props: BlendImageFilterProps\n ) => DeclarationNode<BlendImageFilterProps>;\n DropShadowImageFilterNode: (\n props: DropShadowImageFilterProps\n ) => DeclarationNode<DropShadowImageFilterProps>;\n DisplacementMapImageFilterNode: (\n props: DisplacementMapImageFilterProps\n ) => DeclarationNode<DisplacementMapImageFilterProps>;\n BlurImageFilterNode: (\n props: BlurImageFilterProps\n ) => DeclarationNode<BlurImageFilterProps>;\n OffsetImageFilterNode: (\n props: OffsetImageFilterProps\n ) => DeclarationNode<OffsetImageFilterProps>;\n MorphologyImageFilterNode: (\n props: MorphologyImageFilterProps\n ) => DeclarationNode<MorphologyImageFilterProps>;\n RuntimeShaderImageFilterNode: (\n props: RuntimeShaderImageFilterProps\n ) => DeclarationNode<RuntimeShaderImageFilterProps>;\n\n // Color filters\n MatrixColorFilterNode: (\n props: MatrixColorFilterProps\n ) => DeclarationNode<MatrixColorFilterProps>;\n BlendColorFilterNode: (\n props: BlendColorFilterProps\n ) => DeclarationNode<BlendColorFilterProps>;\n LinearToSRGBGammaColorFilterNode: () => DeclarationNode<null>;\n SRGBToLinearGammaColorFilterNode: () => DeclarationNode<null>;\n LumaColorFilterNode: () => DeclarationNode<null>;\n LerpColorFilterNode: (\n props: LerpColorFilterProps\n ) => DeclarationNode<LerpColorFilterProps>;\n\n // Shaders\n ShaderNode: (props: ShaderProps) => DeclarationNode<ShaderProps>;\n ImageShaderNode: (\n props: ImageShaderProps\n ) => DeclarationNode<ImageShaderProps>;\n ColorShaderNode: (props: ColorProps) => DeclarationNode<ColorProps>;\n TurbulenceNode: (\n props: TurbulenceProps\n ) => DeclarationNode<TurbulenceProps>;\n FractalNoiseNode: (\n props: FractalNoiseProps\n ) => DeclarationNode<FractalNoiseProps>;\n LinearGradientNode: (\n props: LinearGradientProps\n ) => DeclarationNode<LinearGradientProps>;\n RadialGradientNode: (\n props: RadialGradientProps\n ) => DeclarationNode<RadialGradientProps>;\n SweepGradientNode: (\n props: SweepGradientProps\n ) => DeclarationNode<SweepGradientProps>;\n TwoPointConicalGradientNode: (\n props: TwoPointConicalGradientProps\n ) => DeclarationNode<TwoPointConicalGradientProps>;\n PictureNode: (props: PictureProps) => RenderNode<PictureProps>;\n ImageSVGNode: (props: ImageSVGProps) => RenderNode<ImageSVGProps>;\n VerticesNode: (props: VerticesProps) => RenderNode<VerticesProps>;\n TextNode: (prop: TextProps) => RenderNode<TextProps>;\n TextPathNode: (prop: TextPathProps) => RenderNode<TextPathProps>;\n TextBlobNode: (prop: TextBlobProps) => RenderNode<TextBlobProps>;\n GlyphsNode: (prop: GlyphsProps) => RenderNode<GlyphsProps>;\n BlendNode: (prop: BlendProps) => DeclarationNode<BlendProps>;\n BackdropFilterNode: (prop: ChildrenProps) => RenderNode<ChildrenProps>;\n BoxNode: (prop: BoxProps) => RenderNode<BoxProps>;\n BoxShadowNode: (prop: BoxShadowProps) => DeclarationNode<BoxShadowProps>;\n LayerNode: (prop: ChildrenProps) => RenderNode<ChildrenProps>;\n\n // Paragraph\n ParagraphNode: (props: ParagraphProps) => RenderNode<ParagraphProps>;\n };\n\n // eslint-disable-next-line @typescript-eslint/no-namespace\n namespace JSX {\n interface IntrinsicElements {\n skGroup: SkiaProps<GroupProps>;\n skLayer: SkiaProps<ChildrenProps>;\n skPaint: SkiaProps<PaintProps>;\n\n // Drawings\n skFill: SkiaProps<DrawingNodeProps>;\n skImage: SkiaProps<ImageProps>;\n skCircle: SkiaProps<CircleProps>;\n skPath: SkiaProps<PathProps>;\n skLine: SkiaProps<LineProps>;\n skOval: SkiaProps<OvalProps>;\n skPatch: SkiaProps<PatchProps>;\n skPoints: SkiaProps<PointsProps>;\n skRect: SkiaProps<RectProps>;\n skRRect: SkiaProps<RoundedRectProps>;\n skAtlas: SkiaProps<AtlasProps>;\n skVertices: SkiaProps<VerticesProps>;\n skText: SkiaProps<TextProps>;\n skTextPath: SkiaProps<TextPathProps>;\n skTextBlob: SkiaProps<TextBlobProps>;\n skGlyphs: SkiaProps<GlyphsProps>;\n skDiffRect: SkiaProps<DiffRectProps>;\n skPicture: SkiaProps<PictureProps>;\n skImageSVG: SkiaProps<ImageSVGProps>;\n\n // BlurMaskFilters\n skBlurMaskFilter: SkiaProps<BlurMaskFilterProps>;\n\n // ImageFilters\n skBlendImageFilter: SkiaProps<BlendImageFilterProps>;\n skBlurImageFilter: SkiaProps<BlurImageFilterProps>;\n skOffsetImageFilter: SkiaProps<OffsetImageFilterProps>;\n skDropShadowImageFilter: SkiaProps<DropShadowImageFilterProps>;\n skDisplacementMapImageFilter: SkiaProps<DisplacementMapImageFilterProps>;\n skRuntimeShaderImageFilter: SkiaProps<RuntimeShaderImageFilterProps>;\n skMorphologyImageFilter: SkiaProps<MorphologyImageFilterProps>;\n\n // ColorFilters\n skMatrixColorFilter: SkiaProps<MatrixColorFilterProps>;\n skBlendColorFilter: SkiaProps<BlendColorFilterProps>;\n skLinearToSRGBGammaColorFilter: SkiaProps<ChildrenProps>;\n skSRGBToLinearGammaColorFilter: SkiaProps<ChildrenProps>;\n skLumaColorFilter: SkiaProps<ChildrenProps>;\n skLerpColorFilter: SkiaProps<LerpColorFilterProps>;\n\n // Shaders\n skShader: SkiaProps<ShaderProps>;\n skImageShader: SkiaProps<ImageShaderProps>;\n skColorShader: SkiaProps<ColorProps>;\n skTurbulence: SkiaProps<TurbulenceProps>;\n skFractalNoise: SkiaProps<FractalNoiseProps>;\n skLinearGradient: SkiaProps<LinearGradientProps>;\n skRadialGradient: SkiaProps<RadialGradientProps>;\n skSweepGradient: SkiaProps<SweepGradientProps>;\n skTwoPointConicalGradient: SkiaProps<TwoPointConicalGradientProps>;\n\n // Path Effects\n skDiscretePathEffect: SkiaProps<DiscretePathEffectProps>;\n skDashPathEffect: SkiaProps<DashPathEffectProps>;\n skPath1DPathEffect: SkiaProps<Path1DPathEffectProps>;\n skPath2DPathEffect: SkiaProps<Path2DPathEffectProps>;\n skCornerPathEffect: SkiaProps<CornerPathEffectProps>;\n skSumPathEffect: ChildrenProps;\n skLine2DPathEffect: SkiaProps<Line2DPathEffectProps>;\n\n // Mixed declarations/drawings\n skBlend: SkiaProps<BlendProps>;\n skBackdropFilter: SkiaProps<ChildrenProps>;\n skBox: SkiaProps<BoxProps>;\n skBoxShadow: SkiaProps<BoxShadowProps>;\n\n // Paragraph\n skParagraph: SkiaProps<ParagraphProps>;\n }\n }\n}\n\nexport const createNode = (\n container: Container,\n type: NodeType,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n props: any\n) => {\n const { Sk } = container;\n switch (type) {\n case NodeType.Layer:\n return Sk.Layer(props);\n case NodeType.Group:\n return Sk.Group(props);\n case NodeType.Paint:\n return Sk.Paint(props);\n // Drawings\n case NodeType.Fill:\n return Sk.Fill(props);\n case NodeType.Image:\n return Sk.Image(props);\n case NodeType.Circle:\n return Sk.Circle(props);\n case NodeType.Path:\n return Sk.Path(props);\n case NodeType.Line:\n return Sk.Line(props);\n case NodeType.Oval:\n return Sk.Oval(props);\n case NodeType.Patch:\n return Sk.Patch(props);\n case NodeType.Points:\n return Sk.Points(props);\n case NodeType.Rect:\n return Sk.Rect(props);\n case NodeType.RRect:\n return Sk.RRect(props);\n case NodeType.Vertices:\n return Sk.Vertices(props);\n case NodeType.Text:\n return Sk.Text(props);\n case NodeType.TextPath:\n return Sk.TextPath(props);\n case NodeType.TextBlob:\n return Sk.TextBlob(props);\n case NodeType.Glyphs:\n return Sk.Glyphs(props);\n case NodeType.Atlas:\n return Sk.Atlas(props);\n case NodeType.DiffRect:\n return Sk.DiffRect(props);\n case NodeType.Picture:\n return Sk.Picture(props);\n case NodeType.ImageSVG:\n return Sk.ImageSVG(props);\n // Mask Filter\n case NodeType.BlurMaskFilter:\n return Sk.BlurMaskFilter(props);\n // Image Filter\n case NodeType.BlendImageFilter:\n return Sk.BlendImageFilter(props);\n case NodeType.BlurImageFilter:\n return Sk.BlurImageFilter(props);\n case NodeType.OffsetImageFilter:\n return Sk.OffsetImageFilter(props);\n case NodeType.DropShadowImageFilter:\n return Sk.DropShadowImageFilter(props);\n case NodeType.DisplacementMapImageFilter:\n return Sk.DisplacementMapImageFilter(props);\n case NodeType.MorphologyImageFilter:\n return Sk.MorphologyImageFilter(props);\n case NodeType.RuntimeShaderImageFilter:\n return Sk.RuntimeShaderImageFilter(props);\n // Color Filter\n case NodeType.MatrixColorFilter:\n return Sk.MatrixColorFilter(props);\n case NodeType.BlendColorFilter:\n return Sk.BlendColorFilter(props);\n case NodeType.LerpColorFilter:\n return Sk.LerpColorFilter(props);\n case NodeType.LumaColorFilter:\n return Sk.LumaColorFilter();\n case NodeType.LinearToSRGBGammaColorFilter:\n return Sk.LinearToSRGBGammaColorFilter();\n case NodeType.SRGBToLinearGammaColorFilter:\n return Sk.SRGBToLinearGammaColorFilter();\n // Shader\n case NodeType.Shader:\n return Sk.Shader(props);\n case NodeType.ImageShader:\n return Sk.ImageShader(props);\n case NodeType.ColorShader:\n return Sk.ColorShader(props);\n case NodeType.Turbulence:\n return Sk.Turbulence(props);\n case NodeType.FractalNoise:\n return Sk.FractalNoise(props);\n case NodeType.LinearGradient:\n return Sk.LinearGradient(props);\n case NodeType.RadialGradient:\n return Sk.RadialGradient(props);\n case NodeType.SweepGradient:\n return Sk.SweepGradient(props);\n case NodeType.TwoPointConicalGradient:\n return Sk.TwoPointConicalGradient(props);\n // Path Effect\n case NodeType.CornerPathEffect:\n return Sk.CornerPathEffect(props);\n case NodeType.DiscretePathEffect:\n return Sk.DiscretePathEffect(props);\n case NodeType.DashPathEffect:\n return Sk.DashPathEffect(props);\n case NodeType.Path1DPathEffect:\n return Sk.Path1DPathEffect(props);\n case NodeType.Path2DPathEffect:\n return Sk.Path2DPathEffect(props);\n case NodeType.SumPathEffect:\n return Sk.SumPathEffect();\n case NodeType.Line2DPathEffect:\n return Sk.Line2DPathEffect(props);\n // Mixed\n case NodeType.Blend:\n return Sk.Blend(props);\n case NodeType.BackdropFilter:\n return Sk.BackdropFilter(props);\n case NodeType.Box:\n return Sk.Box(props);\n case NodeType.BoxShadow:\n return Sk.BoxShadow(props);\n // Paragraph\n case NodeType.Paragraph:\n return Sk.Paragraph(props);\n default:\n return exhaustiveCheck(type);\n }\n};\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AA+DvC,SAASC,eAAe,QAAQ,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QAAQ,CAAC+D,KAAK;MACjB,OAAOrD,EAAE,CAACqD,KAAK,CAACtD,KAAK,CAAC;IACxB,KAAKT,QAAQ,CAACgE,cAAc;MAC1B,OAAOtD,EAAE,CAACsD,cAAc,CAACvD,KAAK,CAAC;IACjC,KAAKT,QAAQ,CAACiE,GAAG;MACf,OAAOvD,EAAE,CAACuD,GAAG,CAACxD,KAAK,CAAC;IACtB,KAAKT,QAAQ,CAACkE,SAAS;MACrB,OAAOxD,EAAE,CAACwD,SAAS,CAACzD,KAAK,CAAC;IAC5B;IACA,KAAKT,QAAQ,CAACmE,SAAS;MACrB,OAAOzD,EAAE,CAACyD,SAAS,CAAC1D,KAAK,CAAC;IAC5B;MACE,OAAOR,eAAe,CAACO,IAAI,CAAC;EAChC;AACF,CAAC"}
1
+ {"version":3,"names":["NodeType","exhaustiveCheck","shouldUseJSDomOnNative","NATIVE_DOM","global","SkiaDomApi","createNode","container","type","props","Sk","Layer","Group","Paint","Fill","Image","Circle","Path","Line","Oval","Patch","Points","Rect","RRect","Vertices","Text","TextPath","TextBlob","Glyphs","Atlas","DiffRect","Picture","ImageSVG","BlurMaskFilter","BlendImageFilter","BlurImageFilter","OffsetImageFilter","DropShadowImageFilter","DisplacementMapImageFilter","MorphologyImageFilter","RuntimeShaderImageFilter","MatrixColorFilter","BlendColorFilter","LerpColorFilter","LumaColorFilter","LinearToSRGBGammaColorFilter","SRGBToLinearGammaColorFilter","Shader","ImageShader","ColorShader","Turbulence","FractalNoise","LinearGradient","RadialGradient","SweepGradient","TwoPointConicalGradient","CornerPathEffect","DiscretePathEffect","DashPathEffect","Path1DPathEffect","Path2DPathEffect","SumPathEffect","Line2DPathEffect","Blend","BackdropFilter","Box","BoxShadow","Paragraph"],"sources":["HostComponents.ts"],"sourcesContent":["import { NodeType } from \"../dom/types\";\nimport type {\n DeclarationNode,\n FractalNoiseProps,\n RenderNode,\n CircleProps,\n DrawingNodeProps,\n ImageProps,\n PaintProps,\n PathProps,\n LineProps,\n OvalProps,\n DiffRectProps,\n PointsProps,\n RectProps,\n RoundedRectProps,\n TextProps,\n VerticesProps,\n BlurMaskFilterProps,\n BlendImageFilterProps,\n BlurImageFilterProps,\n DisplacementMapImageFilterProps,\n DropShadowImageFilterProps,\n OffsetImageFilterProps,\n RuntimeShaderImageFilterProps,\n MatrixColorFilterProps,\n ShaderProps,\n ImageShaderProps,\n LinearGradientProps,\n GroupProps,\n PatchProps,\n BlendColorFilterProps,\n DashPathEffectProps,\n DiscretePathEffectProps,\n CornerPathEffectProps,\n Line2DPathEffectProps,\n Path1DPathEffectProps,\n Path2DPathEffectProps,\n TextPathProps,\n TextBlobProps,\n GlyphsProps,\n TwoPointConicalGradientProps,\n TurbulenceProps,\n SweepGradientProps,\n RadialGradientProps,\n ColorProps,\n PictureProps,\n ImageSVGProps,\n LerpColorFilterProps,\n BoxProps,\n BoxShadowProps,\n ParagraphProps,\n AtlasProps,\n} from \"../dom/types\";\nimport type { ChildrenProps } from \"../dom/types/Common\";\nimport type {\n BlendProps,\n MorphologyImageFilterProps,\n} from \"../dom/types/ImageFilters\";\nimport type { SkRect, SkRRect } from \"../skia/types\";\nimport type { JsiDrawingNode } from \"../dom/nodes/DrawingNode\";\n\nimport type { Container } from \"./Container\";\nimport { exhaustiveCheck } from \"./typeddash\";\nimport type { SkiaProps } from \"./processors\";\n\n// This flag should only be turned on for debugging/testing\nconst shouldUseJSDomOnNative = false;\nexport const NATIVE_DOM = shouldUseJSDomOnNative ? false : !!global.SkiaDomApi;\n\ndeclare global {\n var SkiaDomApi: {\n RectNode: (props: RectProps) => JsiDrawingNode<RectProps, SkRect>;\n RRectNode: (\n props: RoundedRectProps\n ) => JsiDrawingNode<RoundedRectProps, SkRRect>;\n GroupNode: (props: GroupProps) => RenderNode<GroupProps>;\n PaintNode: (props: PaintProps) => DeclarationNode<PaintProps>;\n FillNode: (props: PaintProps) => RenderNode<PaintProps>;\n CircleNode: (props: CircleProps) => RenderNode<CircleProps>;\n PathNode: (props: PathProps) => RenderNode<PathProps>;\n LineNode: (props: LineProps) => RenderNode<LineProps>;\n ImageNode: (props: ImageProps) => RenderNode<ImageProps>;\n OvalNode: (props: OvalProps) => RenderNode<OvalProps>;\n PatchNode: (props: PatchProps) => RenderNode<PatchProps>;\n PointsNode: (props: PointsProps) => RenderNode<PointsProps>;\n DiffRectNode: (props: DiffRectProps) => RenderNode<DiffRectProps>;\n AtlasNode: (props: AtlasProps) => RenderNode<AtlasProps>;\n\n // Mask filters\n BlurMaskFilterNode: (\n props: BlurMaskFilterProps\n ) => DeclarationNode<BlurMaskFilterProps>;\n\n // Path effects\n DashPathEffectNode: (\n props: DashPathEffectProps\n ) => DeclarationNode<DashPathEffectProps>;\n DiscretePathEffectNode: (\n props: DiscretePathEffectProps\n ) => DeclarationNode<DiscretePathEffectProps>;\n CornerPathEffectNode: (\n props: CornerPathEffectProps\n ) => DeclarationNode<CornerPathEffectProps>;\n Path1DPathEffectNode: (\n props: Path1DPathEffectProps\n ) => DeclarationNode<Path1DPathEffectProps>;\n Path2DPathEffectNode: (\n props: Path2DPathEffectProps\n ) => DeclarationNode<Path2DPathEffectProps>;\n Line2DPathEffectNode: (\n props: Line2DPathEffectProps\n ) => DeclarationNode<Line2DPathEffectProps>;\n SumPathEffectNode: () => DeclarationNode<null>;\n\n // Image filters\n BlendImageFilterNode: (\n props: BlendImageFilterProps\n ) => DeclarationNode<BlendImageFilterProps>;\n DropShadowImageFilterNode: (\n props: DropShadowImageFilterProps\n ) => DeclarationNode<DropShadowImageFilterProps>;\n DisplacementMapImageFilterNode: (\n props: DisplacementMapImageFilterProps\n ) => DeclarationNode<DisplacementMapImageFilterProps>;\n BlurImageFilterNode: (\n props: BlurImageFilterProps\n ) => DeclarationNode<BlurImageFilterProps>;\n OffsetImageFilterNode: (\n props: OffsetImageFilterProps\n ) => DeclarationNode<OffsetImageFilterProps>;\n MorphologyImageFilterNode: (\n props: MorphologyImageFilterProps\n ) => DeclarationNode<MorphologyImageFilterProps>;\n RuntimeShaderImageFilterNode: (\n props: RuntimeShaderImageFilterProps\n ) => DeclarationNode<RuntimeShaderImageFilterProps>;\n\n // Color filters\n MatrixColorFilterNode: (\n props: MatrixColorFilterProps\n ) => DeclarationNode<MatrixColorFilterProps>;\n BlendColorFilterNode: (\n props: BlendColorFilterProps\n ) => DeclarationNode<BlendColorFilterProps>;\n LinearToSRGBGammaColorFilterNode: () => DeclarationNode<null>;\n SRGBToLinearGammaColorFilterNode: () => DeclarationNode<null>;\n LumaColorFilterNode: () => DeclarationNode<null>;\n LerpColorFilterNode: (\n props: LerpColorFilterProps\n ) => DeclarationNode<LerpColorFilterProps>;\n\n // Shaders\n ShaderNode: (props: ShaderProps) => DeclarationNode<ShaderProps>;\n ImageShaderNode: (\n props: ImageShaderProps\n ) => DeclarationNode<ImageShaderProps>;\n ColorShaderNode: (props: ColorProps) => DeclarationNode<ColorProps>;\n TurbulenceNode: (\n props: TurbulenceProps\n ) => DeclarationNode<TurbulenceProps>;\n FractalNoiseNode: (\n props: FractalNoiseProps\n ) => DeclarationNode<FractalNoiseProps>;\n LinearGradientNode: (\n props: LinearGradientProps\n ) => DeclarationNode<LinearGradientProps>;\n RadialGradientNode: (\n props: RadialGradientProps\n ) => DeclarationNode<RadialGradientProps>;\n SweepGradientNode: (\n props: SweepGradientProps\n ) => DeclarationNode<SweepGradientProps>;\n TwoPointConicalGradientNode: (\n props: TwoPointConicalGradientProps\n ) => DeclarationNode<TwoPointConicalGradientProps>;\n PictureNode: (props: PictureProps) => RenderNode<PictureProps>;\n ImageSVGNode: (props: ImageSVGProps) => RenderNode<ImageSVGProps>;\n VerticesNode: (props: VerticesProps) => RenderNode<VerticesProps>;\n TextNode: (prop: TextProps) => RenderNode<TextProps>;\n TextPathNode: (prop: TextPathProps) => RenderNode<TextPathProps>;\n TextBlobNode: (prop: TextBlobProps) => RenderNode<TextBlobProps>;\n GlyphsNode: (prop: GlyphsProps) => RenderNode<GlyphsProps>;\n BlendNode: (prop: BlendProps) => DeclarationNode<BlendProps>;\n BackdropFilterNode: (prop: ChildrenProps) => RenderNode<ChildrenProps>;\n BoxNode: (prop: BoxProps) => RenderNode<BoxProps>;\n BoxShadowNode: (prop: BoxShadowProps) => DeclarationNode<BoxShadowProps>;\n LayerNode: (prop: ChildrenProps) => RenderNode<ChildrenProps>;\n\n // Paragraph\n ParagraphNode: (props: ParagraphProps) => RenderNode<ParagraphProps>;\n };\n\n // eslint-disable-next-line @typescript-eslint/no-namespace\n namespace JSX {\n interface IntrinsicElements {\n skGroup: SkiaProps<GroupProps>;\n skLayer: SkiaProps<ChildrenProps>;\n skPaint: SkiaProps<PaintProps>;\n\n // Drawings\n skFill: SkiaProps<DrawingNodeProps>;\n skImage: SkiaProps<ImageProps>;\n skCircle: SkiaProps<CircleProps>;\n skPath: SkiaProps<PathProps>;\n skLine: SkiaProps<LineProps>;\n skOval: SkiaProps<OvalProps>;\n skPatch: SkiaProps<PatchProps>;\n skPoints: SkiaProps<PointsProps>;\n skRect: SkiaProps<RectProps>;\n skRRect: SkiaProps<RoundedRectProps>;\n skAtlas: SkiaProps<AtlasProps>;\n skVertices: SkiaProps<VerticesProps>;\n skText: SkiaProps<TextProps>;\n skTextPath: SkiaProps<TextPathProps>;\n skTextBlob: SkiaProps<TextBlobProps>;\n skGlyphs: SkiaProps<GlyphsProps>;\n skDiffRect: SkiaProps<DiffRectProps>;\n skPicture: SkiaProps<PictureProps>;\n skImageSVG: SkiaProps<ImageSVGProps>;\n\n // BlurMaskFilters\n skBlurMaskFilter: SkiaProps<BlurMaskFilterProps>;\n\n // ImageFilters\n skBlendImageFilter: SkiaProps<BlendImageFilterProps>;\n skBlurImageFilter: SkiaProps<BlurImageFilterProps>;\n skOffsetImageFilter: SkiaProps<OffsetImageFilterProps>;\n skDropShadowImageFilter: SkiaProps<DropShadowImageFilterProps>;\n skDisplacementMapImageFilter: SkiaProps<DisplacementMapImageFilterProps>;\n skRuntimeShaderImageFilter: SkiaProps<RuntimeShaderImageFilterProps>;\n skMorphologyImageFilter: SkiaProps<MorphologyImageFilterProps>;\n\n // ColorFilters\n skMatrixColorFilter: SkiaProps<MatrixColorFilterProps>;\n skBlendColorFilter: SkiaProps<BlendColorFilterProps>;\n skLinearToSRGBGammaColorFilter: SkiaProps<ChildrenProps>;\n skSRGBToLinearGammaColorFilter: SkiaProps<ChildrenProps>;\n skLumaColorFilter: SkiaProps<ChildrenProps>;\n skLerpColorFilter: SkiaProps<LerpColorFilterProps>;\n\n // Shaders\n skShader: SkiaProps<ShaderProps>;\n skImageShader: SkiaProps<ImageShaderProps>;\n skColorShader: SkiaProps<ColorProps>;\n skTurbulence: SkiaProps<TurbulenceProps>;\n skFractalNoise: SkiaProps<FractalNoiseProps>;\n skLinearGradient: SkiaProps<LinearGradientProps>;\n skRadialGradient: SkiaProps<RadialGradientProps>;\n skSweepGradient: SkiaProps<SweepGradientProps>;\n skTwoPointConicalGradient: SkiaProps<TwoPointConicalGradientProps>;\n\n // Path Effects\n skDiscretePathEffect: SkiaProps<DiscretePathEffectProps>;\n skDashPathEffect: SkiaProps<DashPathEffectProps>;\n skPath1DPathEffect: SkiaProps<Path1DPathEffectProps>;\n skPath2DPathEffect: SkiaProps<Path2DPathEffectProps>;\n skCornerPathEffect: SkiaProps<CornerPathEffectProps>;\n skSumPathEffect: ChildrenProps;\n skLine2DPathEffect: SkiaProps<Line2DPathEffectProps>;\n\n // Mixed declarations/drawings\n skBlend: SkiaProps<BlendProps>;\n skBackdropFilter: SkiaProps<ChildrenProps>;\n skBox: SkiaProps<BoxProps>;\n skBoxShadow: SkiaProps<BoxShadowProps>;\n\n // Paragraph\n skParagraph: SkiaProps<ParagraphProps>;\n }\n }\n}\n\nexport const createNode = (\n container: Container,\n type: NodeType,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n props: any\n) => {\n const { Sk } = container;\n switch (type) {\n case NodeType.Layer:\n return Sk.Layer(props);\n case NodeType.Group:\n return Sk.Group(props);\n case NodeType.Paint:\n return Sk.Paint(props);\n // Drawings\n case NodeType.Fill:\n return Sk.Fill(props);\n case NodeType.Image:\n return Sk.Image(props);\n case NodeType.Circle:\n return Sk.Circle(props);\n case NodeType.Path:\n return Sk.Path(props);\n case NodeType.Line:\n return Sk.Line(props);\n case NodeType.Oval:\n return Sk.Oval(props);\n case NodeType.Patch:\n return Sk.Patch(props);\n case NodeType.Points:\n return Sk.Points(props);\n case NodeType.Rect:\n return Sk.Rect(props);\n case NodeType.RRect:\n return Sk.RRect(props);\n case NodeType.Vertices:\n return Sk.Vertices(props);\n case NodeType.Text:\n return Sk.Text(props);\n case NodeType.TextPath:\n return Sk.TextPath(props);\n case NodeType.TextBlob:\n return Sk.TextBlob(props);\n case NodeType.Glyphs:\n return Sk.Glyphs(props);\n case NodeType.Atlas:\n return Sk.Atlas(props);\n case NodeType.DiffRect:\n return Sk.DiffRect(props);\n case NodeType.Picture:\n return Sk.Picture(props);\n case NodeType.ImageSVG:\n return Sk.ImageSVG(props);\n // Mask Filter\n case NodeType.BlurMaskFilter:\n return Sk.BlurMaskFilter(props);\n // Image Filter\n case NodeType.BlendImageFilter:\n return Sk.BlendImageFilter(props);\n case NodeType.BlurImageFilter:\n return Sk.BlurImageFilter(props);\n case NodeType.OffsetImageFilter:\n return Sk.OffsetImageFilter(props);\n case NodeType.DropShadowImageFilter:\n return Sk.DropShadowImageFilter(props);\n case NodeType.DisplacementMapImageFilter:\n return Sk.DisplacementMapImageFilter(props);\n case NodeType.MorphologyImageFilter:\n return Sk.MorphologyImageFilter(props);\n case NodeType.RuntimeShaderImageFilter:\n return Sk.RuntimeShaderImageFilter(props);\n // Color Filter\n case NodeType.MatrixColorFilter:\n return Sk.MatrixColorFilter(props);\n case NodeType.BlendColorFilter:\n return Sk.BlendColorFilter(props);\n case NodeType.LerpColorFilter:\n return Sk.LerpColorFilter(props);\n case NodeType.LumaColorFilter:\n return Sk.LumaColorFilter();\n case NodeType.LinearToSRGBGammaColorFilter:\n return Sk.LinearToSRGBGammaColorFilter();\n case NodeType.SRGBToLinearGammaColorFilter:\n return Sk.SRGBToLinearGammaColorFilter();\n // Shader\n case NodeType.Shader:\n return Sk.Shader(props);\n case NodeType.ImageShader:\n return Sk.ImageShader(props);\n case NodeType.ColorShader:\n return Sk.ColorShader(props);\n case NodeType.Turbulence:\n return Sk.Turbulence(props);\n case NodeType.FractalNoise:\n return Sk.FractalNoise(props);\n case NodeType.LinearGradient:\n return Sk.LinearGradient(props);\n case NodeType.RadialGradient:\n return Sk.RadialGradient(props);\n case NodeType.SweepGradient:\n return Sk.SweepGradient(props);\n case NodeType.TwoPointConicalGradient:\n return Sk.TwoPointConicalGradient(props);\n // Path Effect\n case NodeType.CornerPathEffect:\n return Sk.CornerPathEffect(props);\n case NodeType.DiscretePathEffect:\n return Sk.DiscretePathEffect(props);\n case NodeType.DashPathEffect:\n return Sk.DashPathEffect(props);\n case NodeType.Path1DPathEffect:\n return Sk.Path1DPathEffect(props);\n case NodeType.Path2DPathEffect:\n return Sk.Path2DPathEffect(props);\n case NodeType.SumPathEffect:\n return Sk.SumPathEffect();\n case NodeType.Line2DPathEffect:\n return Sk.Line2DPathEffect(props);\n // Mixed\n case NodeType.Blend:\n return Sk.Blend(props);\n case NodeType.BackdropFilter:\n return Sk.BackdropFilter(props);\n case NodeType.Box:\n return Sk.Box(props);\n case NodeType.BoxShadow:\n return Sk.BoxShadow(props);\n // Paragraph\n case NodeType.Paragraph:\n return Sk.Paragraph(props);\n default:\n return exhaustiveCheck(type);\n }\n};\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AA+DvC,SAASC,eAAe,QAAQ,aAAa;AAG7C;AACA,MAAMC,sBAAsB,GAAG,KAAK;AACpC,OAAO,MAAMC,UAAU,GAAGD,sBAAsB,GAAG,KAAK,GAAG,CAAC,CAACE,MAAM,CAACC,UAAU;AA6M9E,OAAO,MAAMC,UAAU,GAAGA,CACxBC,SAAoB,EACpBC,IAAc,EAEdC,KAAU,KACP;EACH,MAAM;IAAEC;EAAG,CAAC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AC;IACtB,KAAKT,QAAQ,CAACkE,SAAS;MACrB,OAAOxD,EAAE,CAACwD,SAAS,CAACzD,KAAK,CAAC;IAC5B;IACA,KAAKT,QAAQ,CAACmE,SAAS;MACrB,OAAOzD,EAAE,CAACyD,SAAS,CAAC1D,KAAK,CAAC;IAC5B;MACE,OAAOR,eAAe,CAACO,IAAI,CAAC;EAChC;AACF,CAAC","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { HostConfig } from "react-reconciler";
3
2
  import type { NodeType, Node } from "../dom/types";
4
3
  import type { Container } from "./Container";
@@ -13,9 +13,13 @@ export const debug = (...args) => {
13
13
  const appendNode = (parent, child) => {
14
14
  parent.addChild(child);
15
15
  };
16
- const removeNode = (parent, child) => {
16
+ const removeNode = (parent, child, unmounted = false) => {
17
+ // If the drawing is unmounted we don't want to update it.
18
+ // We can just stop the reanimated mappers
17
19
  unbindReanimatedNode(child);
18
- return parent.removeChild(child);
20
+ if (!unmounted) {
21
+ parent.removeChild(child);
22
+ }
19
23
  };
20
24
  const insertBefore = (parent, child, before) => {
21
25
  parent.insertChildBefore(child, before);
@@ -123,7 +127,7 @@ export const skHostConfig = {
123
127
  removeNode(parent, child);
124
128
  },
125
129
  removeChildFromContainer: (container, child) => {
126
- removeNode(container.root, child);
130
+ removeNode(container.root, child, container.unmounted);
127
131
  },
128
132
  insertInContainerBefore: (container, child, before) => {
129
133
  insertBefore(container.root, child, before);
@@ -1 +1 @@
1
- {"version":3,"names":["DefaultEventPriority","bindReanimatedProps","extractReanimatedProps","unbindReanimatedNode","createNode","shallowEq","DEBUG","debug","args","console","log","appendNode","parent","child","addChild","removeNode","removeChild","insertBefore","before","insertChildBefore","skHostConfig","now","Date","supportsMutation","isPrimaryRenderer","supportsPersistence","supportsHydration","scheduleTimeout","setTimeout","cancelTimeout","clearTimeout","noTimeout","appendChildToContainer","container","root","appendChild","getRootHostContext","_rootContainerInstance","getChildHostContext","_parentHostContext","_type","shouldSetTextContent","_props","createTextInstance","_text","_hostContext","_internalInstanceHandle","Error","createInstance","type","pristineProps","props","reanimatedProps","node","appendInitialChild","parentInstance","finalizeInitialChildren","commitMount","prepareForCommit","_containerInfo","resetAfterCommit","redraw","getPublicInstance","prepareUpdate","_instance","oldProps","newProps","rootContainerInstance","propsAreEqual","commitUpdate","instance","updatePayload","prevProps","nextProps","_internalHandle","setProps","commitTextUpdate","_textInstance","_oldText","_newText","clearContainer","children","forEach","preparePortalMount","removeChildFromContainer","insertInContainerBefore","getCurrentEventPriority","beforeActiveInstanceBlur","afterActiveInstanceBlur","detachDeletedInstance"],"sources":["HostConfig.ts"],"sourcesContent":["/*global NodeJS*/\nimport type { HostConfig } from \"react-reconciler\";\nimport { DefaultEventPriority } from \"react-reconciler/constants\";\n\nimport type { NodeType, Node } from \"../dom/types\";\nimport {\n bindReanimatedProps,\n extractReanimatedProps,\n unbindReanimatedNode,\n} from \"../external/reanimated/renderHelpers\";\n\nimport type { Container } from \"./Container\";\nimport { createNode } from \"./HostComponents\";\nimport { shallowEq } from \"./typeddash\";\n\nconst DEBUG = false;\nexport const debug = (...args: Parameters<typeof console.log>) => {\n if (DEBUG) {\n console.log(...args);\n }\n};\n\ntype Instance = Node<unknown>;\n\ntype Props = object;\ntype TextInstance = Node<unknown>;\ntype SuspenseInstance = Instance;\ntype HydratableInstance = Instance;\ntype PublicInstance = Instance;\ntype HostContext = null;\ntype UpdatePayload = Container;\ntype ChildSet = unknown;\ntype TimeoutHandle = NodeJS.Timeout;\ntype NoTimeout = -1;\n\ntype SkiaHostConfig = HostConfig<\n NodeType,\n Props,\n Container,\n Instance,\n TextInstance,\n SuspenseInstance,\n HydratableInstance,\n PublicInstance,\n HostContext,\n UpdatePayload,\n ChildSet,\n TimeoutHandle,\n NoTimeout\n>;\n\nconst appendNode = (parent: Node<unknown>, child: Node<unknown>) => {\n parent.addChild(child);\n};\n\nconst removeNode = (parent: Node<unknown>, child: Node<unknown>) => {\n unbindReanimatedNode(child);\n return parent.removeChild(child);\n};\n\nconst insertBefore = (\n parent: Node<unknown>,\n child: Node<unknown>,\n before: Node<unknown>\n) => {\n parent.insertChildBefore(child, before);\n};\n\nexport const skHostConfig: SkiaHostConfig = {\n /**\n * This function is used by the reconciler in order to calculate current time for prioritising work.\n */\n now: Date.now,\n supportsMutation: true,\n isPrimaryRenderer: false,\n supportsPersistence: false,\n supportsHydration: false,\n //supportsMicrotask: true,\n\n scheduleTimeout: setTimeout,\n cancelTimeout: clearTimeout,\n noTimeout: -1,\n\n appendChildToContainer(container, child) {\n debug(\"appendChildToContainer\");\n appendNode(container.root, child);\n },\n\n appendChild(parent, child) {\n debug(\"appendChild\", parent, child);\n appendNode(parent, child);\n },\n\n getRootHostContext: (_rootContainerInstance: Container) => {\n debug(\"getRootHostContext\");\n return null;\n },\n\n getChildHostContext(_parentHostContext, _type, _rootContainerInstance) {\n debug(\"getChildHostContext\");\n return null;\n },\n\n shouldSetTextContent(_type, _props) {\n return false;\n },\n\n createTextInstance(\n _text,\n _rootContainerInstance,\n _hostContext,\n _internalInstanceHandle\n ) {\n debug(\"createTextInstance\");\n // return SpanNode({}, text) as SkNode;\n throw new Error(\"Text nodes are not supported yet\");\n },\n\n createInstance(\n type,\n pristineProps,\n container,\n _hostContext,\n _internalInstanceHandle\n ) {\n debug(\"createInstance\", type);\n const [props, reanimatedProps] = extractReanimatedProps(pristineProps);\n const node = createNode(container, type, props);\n bindReanimatedProps(container, node, reanimatedProps);\n return node;\n },\n\n appendInitialChild(parentInstance, child) {\n debug(\"appendInitialChild\");\n appendNode(parentInstance, child);\n },\n\n finalizeInitialChildren(\n parentInstance,\n _type,\n _props,\n _rootContainerInstance,\n _hostContext\n ) {\n debug(\"finalizeInitialChildren\", parentInstance);\n return false;\n },\n\n commitMount() {\n // if finalizeInitialChildren = true\n debug(\"commitMount\");\n },\n\n prepareForCommit(_containerInfo) {\n debug(\"prepareForCommit\");\n return null;\n },\n\n resetAfterCommit(container) {\n debug(\"resetAfterCommit\");\n container.redraw();\n },\n\n getPublicInstance(node: Instance) {\n debug(\"getPublicInstance\");\n return node;\n },\n\n prepareUpdate: (\n _instance,\n type,\n oldProps,\n newProps,\n rootContainerInstance,\n _hostContext\n ) => {\n debug(\"prepareUpdate\");\n const propsAreEqual = shallowEq(oldProps, newProps);\n if (propsAreEqual) {\n return null;\n }\n debug(\"update \", type);\n return rootContainerInstance;\n },\n\n commitUpdate(\n instance,\n updatePayload,\n type,\n prevProps,\n nextProps,\n _internalHandle\n ) {\n debug(\"commitUpdate: \", type);\n if (shallowEq(prevProps, nextProps)) {\n return;\n }\n const [props, reanimatedProps] = extractReanimatedProps(nextProps);\n instance.setProps(props);\n bindReanimatedProps(updatePayload, instance, reanimatedProps);\n },\n\n commitTextUpdate: (\n _textInstance: TextInstance,\n _oldText: string,\n _newText: string\n ) => {\n // textInstance.instance = newText;\n },\n\n clearContainer: (container) => {\n debug(\"clearContainer\");\n container.root.children().forEach((child) => {\n container.root.removeChild(child);\n });\n },\n\n preparePortalMount: () => {\n debug(\"preparePortalMount\");\n },\n\n removeChild: (parent, child) => {\n removeNode(parent, child);\n },\n\n removeChildFromContainer: (container, child) => {\n removeNode(container.root, child);\n },\n\n insertInContainerBefore: (container, child, before) => {\n insertBefore(container.root, child, before);\n },\n\n insertBefore: (parent, child, before) => {\n insertBefore(parent, child, before);\n },\n // see https://github.com/pmndrs/react-three-fiber/pull/2360#discussion_r916356874\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n getCurrentEventPriority: () => DefaultEventPriority,\n beforeActiveInstanceBlur: () => {},\n afterActiveInstanceBlur: () => {},\n detachDeletedInstance: () => {},\n};\n"],"mappings":"AAAA;;AAEA,SAASA,oBAAoB,QAAQ,4BAA4B;AAGjE,SACEC,mBAAmB,EACnBC,sBAAsB,EACtBC,oBAAoB,QACf,sCAAsC;AAG7C,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,SAAS,QAAQ,aAAa;AAEvC,MAAMC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AAC;IACvB0B,SAAS,CAACC,IAAI,CAAC+C,QAAQ,CAAC,CAAC,CAACC,OAAO,CAAErE,KAAK,IAAK;MAC3CoB,SAAS,CAACC,IAAI,CAAClB,WAAW,CAACH,KAAK,CAAC;IACnC,CAAC,CAAC;EACJ,CAAC;EAEDsE,kBAAkB,EAAEA,CAAA,KAAM;IACxB5E,KAAK,CAAC,oBAAoB,CAAC;EAC7B,CAAC;EAEDS,WAAW,EAAEA,CAACJ,MAAM,EAAEC,KAAK,KAAK;IAC9BE,UAAU,CAACH,MAAM,EAAEC,KAAK,CAAC;EAC3B,CAAC;EAEDuE,wBAAwB,EAAEA,CAACnD,SAAS,EAAEpB,KAAK,KAAK;IAC9CE,UAAU,CAACkB,SAAS,CAACC,IAAI,EAAErB,KAAK,CAAC;EACnC,CAAC;EAEDwE,uBAAuB,EAAEA,CAACpD,SAAS,EAAEpB,KAAK,EAAEK,MAAM,KAAK;IACrDD,YAAY,CAACgB,SAAS,CAACC,IAAI,EAAErB,KAAK,EAAEK,MAAM,CAAC;EAC7C,CAAC;EAEDD,YAAY,EAAEA,CAACL,MAAM,EAAEC,KAAK,EAAEK,MAAM,KAAK;IACvCD,YAAY,CAACL,MAAM,EAAEC,KAAK,EAAEK,MAAM,CAAC;EACrC,CAAC;EACD;EACA;EACA;EACAoE,uBAAuB,EAAEA,CAAA,KAAMtF,oBAAoB;EACnDuF,wBAAwB,EAAEA,CAAA,KAAM,CAAC,CAAC;EAClCC,uBAAuB,EAAEA,CAAA,KAAM,CAAC,CAAC;EACjCC,qBAAqB,EAAEA,CAAA,KAAM,CAAC;AAChC,CAAC"}
1
+ {"version":3,"names":["DefaultEventPriority","bindReanimatedProps","extractReanimatedProps","unbindReanimatedNode","createNode","shallowEq","DEBUG","debug","args","console","log","appendNode","parent","child","addChild","removeNode","unmounted","removeChild","insertBefore","before","insertChildBefore","skHostConfig","now","Date","supportsMutation","isPrimaryRenderer","supportsPersistence","supportsHydration","scheduleTimeout","setTimeout","cancelTimeout","clearTimeout","noTimeout","appendChildToContainer","container","root","appendChild","getRootHostContext","_rootContainerInstance","getChildHostContext","_parentHostContext","_type","shouldSetTextContent","_props","createTextInstance","_text","_hostContext","_internalInstanceHandle","Error","createInstance","type","pristineProps","props","reanimatedProps","node","appendInitialChild","parentInstance","finalizeInitialChildren","commitMount","prepareForCommit","_containerInfo","resetAfterCommit","redraw","getPublicInstance","prepareUpdate","_instance","oldProps","newProps","rootContainerInstance","propsAreEqual","commitUpdate","instance","updatePayload","prevProps","nextProps","_internalHandle","setProps","commitTextUpdate","_textInstance","_oldText","_newText","clearContainer","children","forEach","preparePortalMount","removeChildFromContainer","insertInContainerBefore","getCurrentEventPriority","beforeActiveInstanceBlur","afterActiveInstanceBlur","detachDeletedInstance"],"sources":["HostConfig.ts"],"sourcesContent":["/*global NodeJS*/\nimport type { HostConfig } from \"react-reconciler\";\nimport { DefaultEventPriority } from \"react-reconciler/constants\";\n\nimport type { NodeType, Node } from \"../dom/types\";\nimport {\n bindReanimatedProps,\n extractReanimatedProps,\n unbindReanimatedNode,\n} from \"../external/reanimated/renderHelpers\";\n\nimport type { Container } from \"./Container\";\nimport { createNode } from \"./HostComponents\";\nimport { shallowEq } from \"./typeddash\";\n\nconst DEBUG = false;\nexport const debug = (...args: Parameters<typeof console.log>) => {\n if (DEBUG) {\n console.log(...args);\n }\n};\n\ntype Instance = Node<unknown>;\n\ntype Props = object;\ntype TextInstance = Node<unknown>;\ntype SuspenseInstance = Instance;\ntype HydratableInstance = Instance;\ntype PublicInstance = Instance;\ntype HostContext = null;\ntype UpdatePayload = Container;\ntype ChildSet = unknown;\ntype TimeoutHandle = NodeJS.Timeout;\ntype NoTimeout = -1;\n\ntype SkiaHostConfig = HostConfig<\n NodeType,\n Props,\n Container,\n Instance,\n TextInstance,\n SuspenseInstance,\n HydratableInstance,\n PublicInstance,\n HostContext,\n UpdatePayload,\n ChildSet,\n TimeoutHandle,\n NoTimeout\n>;\n\nconst appendNode = (parent: Node<unknown>, child: Node<unknown>) => {\n parent.addChild(child);\n};\n\nconst removeNode = (parent: Node<unknown>, child: Node<unknown>, unmounted = false) => {\n // If the drawing is unmounted we don't want to update it.\n // We can just stop the reanimated mappers\n unbindReanimatedNode(child);\n if (!unmounted) {\n parent.removeChild(child);\n }\n};\n\nconst insertBefore = (\n parent: Node<unknown>,\n child: Node<unknown>,\n before: Node<unknown>\n) => {\n parent.insertChildBefore(child, before);\n};\n\nexport const skHostConfig: SkiaHostConfig = {\n /**\n * This function is used by the reconciler in order to calculate current time for prioritising work.\n */\n now: Date.now,\n supportsMutation: true,\n isPrimaryRenderer: false,\n supportsPersistence: false,\n supportsHydration: false,\n //supportsMicrotask: true,\n\n scheduleTimeout: setTimeout,\n cancelTimeout: clearTimeout,\n noTimeout: -1,\n\n appendChildToContainer(container, child) {\n debug(\"appendChildToContainer\");\n appendNode(container.root, child);\n },\n\n appendChild(parent, child) {\n debug(\"appendChild\", parent, child);\n appendNode(parent, child);\n },\n\n getRootHostContext: (_rootContainerInstance: Container) => {\n debug(\"getRootHostContext\");\n return null;\n },\n\n getChildHostContext(_parentHostContext, _type, _rootContainerInstance) {\n debug(\"getChildHostContext\");\n return null;\n },\n\n shouldSetTextContent(_type, _props) {\n return false;\n },\n\n createTextInstance(\n _text,\n _rootContainerInstance,\n _hostContext,\n _internalInstanceHandle\n ) {\n debug(\"createTextInstance\");\n // return SpanNode({}, text) as SkNode;\n throw new Error(\"Text nodes are not supported yet\");\n },\n\n createInstance(\n type,\n pristineProps,\n container,\n _hostContext,\n _internalInstanceHandle\n ) {\n debug(\"createInstance\", type);\n const [props, reanimatedProps] = extractReanimatedProps(pristineProps);\n const node = createNode(container, type, props);\n bindReanimatedProps(container, node, reanimatedProps);\n return node;\n },\n\n appendInitialChild(parentInstance, child) {\n debug(\"appendInitialChild\");\n appendNode(parentInstance, child);\n },\n\n finalizeInitialChildren(\n parentInstance,\n _type,\n _props,\n _rootContainerInstance,\n _hostContext\n ) {\n debug(\"finalizeInitialChildren\", parentInstance);\n return false;\n },\n\n commitMount() {\n // if finalizeInitialChildren = true\n debug(\"commitMount\");\n },\n\n prepareForCommit(_containerInfo) {\n debug(\"prepareForCommit\");\n return null;\n },\n\n resetAfterCommit(container) {\n debug(\"resetAfterCommit\");\n container.redraw();\n },\n\n getPublicInstance(node: Instance) {\n debug(\"getPublicInstance\");\n return node;\n },\n\n prepareUpdate: (\n _instance,\n type,\n oldProps,\n newProps,\n rootContainerInstance,\n _hostContext\n ) => {\n debug(\"prepareUpdate\");\n const propsAreEqual = shallowEq(oldProps, newProps);\n if (propsAreEqual) {\n return null;\n }\n debug(\"update \", type);\n return rootContainerInstance;\n },\n\n commitUpdate(\n instance,\n updatePayload,\n type,\n prevProps,\n nextProps,\n _internalHandle\n ) {\n debug(\"commitUpdate: \", type);\n if (shallowEq(prevProps, nextProps)) {\n return;\n }\n const [props, reanimatedProps] = extractReanimatedProps(nextProps);\n instance.setProps(props);\n bindReanimatedProps(updatePayload, instance, reanimatedProps);\n },\n\n commitTextUpdate: (\n _textInstance: TextInstance,\n _oldText: string,\n _newText: string\n ) => {\n // textInstance.instance = newText;\n },\n\n clearContainer: (container) => {\n debug(\"clearContainer\");\n container.root.children().forEach((child) => {\n container.root.removeChild(child);\n });\n },\n\n preparePortalMount: () => {\n debug(\"preparePortalMount\");\n },\n\n removeChild: (parent, child) => {\n removeNode(parent, child);\n },\n\n removeChildFromContainer: (container, child) => {\n removeNode(container.root, child, container.unmounted);\n },\n\n insertInContainerBefore: (container, child, before) => {\n insertBefore(container.root, child, before);\n },\n\n insertBefore: (parent, child, before) => {\n insertBefore(parent, child, before);\n },\n // see https://github.com/pmndrs/react-three-fiber/pull/2360#discussion_r916356874\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n getCurrentEventPriority: () => DefaultEventPriority,\n beforeActiveInstanceBlur: () => {},\n afterActiveInstanceBlur: () => {},\n detachDeletedInstance: () => {},\n};\n"],"mappings":"AAAA;;AAEA,SAASA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,EAAEA,CAAA,KAAM,CAAC;AAChC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["JsiDrawingContext","Skia","Platform","SkiaRoot","isOnMainThread","_WORKLET","OS","drawAsPicture","element","bounds","recorder","PictureRecorder","canvas","beginRecording","root","render","ctx","dom","picture","finishRecordingAsPicture","unmount","drawAsImage","size","drawAsImageFromPicture","surface","Surface","MakeOffscreen","width","height","getCanvas","drawPicture","flush","image","makeImageSnapshot","makeNonTextureImage"],"sources":["Offscreen.tsx"],"sourcesContent":["import type { ReactElement } from \"react\";\n\nimport { JsiDrawingContext } from \"../dom/types\";\nimport type { SkPicture, SkRect, SkSize } from \"../skia/types\";\nimport { Skia } from \"../skia\";\nimport { Platform } from \"../Platform\";\n\nimport { SkiaRoot } from \"./Reconciler\";\n\n// We call it main thread because on web main is JS thread\nexport const isOnMainThread = () => {\n \"worklet\";\n return (\n (typeof _WORKLET !== \"undefined\" && _WORKLET === true) ||\n Platform.OS === \"web\"\n );\n};\n\nexport const drawAsPicture = (element: ReactElement, bounds?: SkRect) => {\n const recorder = Skia.PictureRecorder();\n const canvas = recorder.beginRecording(bounds);\n const root = new SkiaRoot(Skia, false);\n root.render(element);\n const ctx = new JsiDrawingContext(Skia, canvas);\n root.dom.render(ctx);\n const picture = recorder.finishRecordingAsPicture();\n root.unmount();\n return picture;\n};\n\nexport const drawAsImage = (element: ReactElement, size: SkSize) => {\n return drawAsImageFromPicture(drawAsPicture(element), size);\n};\n\nexport const drawAsImageFromPicture = (picture: SkPicture, size: SkSize) => {\n \"worklet\";\n const surface = Skia.Surface.MakeOffscreen(size.width, size.height)!;\n const canvas = surface.getCanvas();\n canvas.drawPicture(picture);\n surface.flush();\n const image = surface.makeImageSnapshot();\n // If we are not on the main thread or if we are on Web, we need to make the image non-texture.\n if (!isOnMainThread() || Platform.OS === \"web\") {\n return image.makeNonTextureImage();\n } else {\n return image;\n }\n};\n"],"mappings":"AAEA,SAASA,iBAAiB,QAAQ,cAA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C,CAAC;EAClCjB,MAAM,CAACkB,WAAW,CAACZ,OAAO,CAAC;EAC3BM,OAAO,CAACO,KAAK,CAAC,CAAC;EACf,MAAMC,KAAK,GAAGR,OAAO,CAACS,iBAAiB,CAAC,CAAC;EACzC;EACA,IAAI,CAAC7B,cAAc,CAAC,CAAC,IAAIF,QAAQ,CAACI,EAAE,KAAK,KAAK,EAAE;IAC9C,OAAO0B,KAAK,CAACE,mBAAmB,CAAC,CAAC;EACpC,CAAC,MAAM;IACL,OAAOF,KAAK;EACd;AACF,CAAC"}
1
+ {"version":3,"names":["JsiDrawingContext","Skia","Platform","SkiaRoot","isOnMainThread","_WORKLET","OS","drawAsPicture","element","bounds","recorder","PictureRecorder","canvas","beginRecording","root","render","ctx","dom","picture","finishRecordingAsPicture","unmount","drawAsImage","size","drawAsImageFromPicture","surface","Surface","MakeOffscreen","width","height","getCanvas","drawPicture","flush","image","makeImageSnapshot","makeNonTextureImage"],"sources":["Offscreen.tsx"],"sourcesContent":["import type { ReactElement } from \"react\";\n\nimport { JsiDrawingContext } from \"../dom/types\";\nimport type { SkPicture, SkRect, SkSize } from \"../skia/types\";\nimport { Skia } from \"../skia\";\nimport { Platform } from \"../Platform\";\n\nimport { SkiaRoot } from \"./Reconciler\";\n\n// We call it main thread because on web main is JS thread\nexport const isOnMainThread = () => {\n \"worklet\";\n return (\n (typeof _WORKLET !== \"undefined\" && _WORKLET === true) ||\n Platform.OS === \"web\"\n );\n};\n\nexport const drawAsPicture = (element: ReactElement, bounds?: SkRect) => {\n const recorder = Skia.PictureRecorder();\n const canvas = recorder.beginRecording(bounds);\n const root = new SkiaRoot(Skia, false);\n root.render(element);\n const ctx = new JsiDrawingContext(Skia, canvas);\n root.dom.render(ctx);\n const picture = recorder.finishRecordingAsPicture();\n root.unmount();\n return picture;\n};\n\nexport const drawAsImage = (element: ReactElement, size: SkSize) => {\n return drawAsImageFromPicture(drawAsPicture(element), size);\n};\n\nexport const drawAsImageFromPicture = (picture: SkPicture, size: SkSize) => {\n \"worklet\";\n const surface = Skia.Surface.MakeOffscreen(size.width, size.height)!;\n const canvas = surface.getCanvas();\n canvas.drawPicture(picture);\n surface.flush();\n const image = surface.makeImageSnapshot();\n // If we are not on the main thread or if we are on Web, we need to make the image non-texture.\n if (!isOnMainThread() || Platform.OS === \"web\") {\n return image.makeNonTextureImage();\n } else {\n return image;\n }\n};\n"],"mappings":"AAEA,SAASA,iBAAiB,QAAQ,cAAc;AAEhD,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,QAAQ,QAAQ,aAAa;AAEtC,SAASC,QAAQ,QAAQ,cAAc;;AAEvC;AACA,OAAO,MAAMC,cAAc,GAAGA,CAAA,KAAM;EAClC,SAAS;;EACT,OACG,OAAOC,QAAQ,KAAK,WAAW,IAAIA,QAAQ,KAAK,IAAI,IACrDH,QAAQ,CAACI,EAAE,KAAK,KAAK;AAEzB,CAAC;AAED,OAAO,MAAMC,aAAa,GAAGA,CAACC,OAAqB,EAAEC,MAAe,KAAK;EACvE,MAAMC,QAAQ,GAAGT,IAAI,CAACU,eAAe,CAAC,CAAC;EACvC,MAAMC,MAAM,GAAGF,QAAQ,CAACG,cAAc,CAACJ,MAAM,CAAC;EAC9C,MAAMK,IAAI,GAAG,IAAIX,QAAQ,CAACF,IAAI,EAAE,KAAK,CAAC;EACtCa,IAAI,CAACC,MAAM,CAACP,OAAO,CAAC;EACpB,MAAMQ,GAAG,GAAG,IAAIhB,iBAAiB,CAACC,IAAI,EAAEW,MAAM,CAAC;EAC/CE,IAAI,CAACG,GAAG,CAACF,MAAM,CAACC,GAAG,CAAC;EACpB,MAAME,OAAO,GAAGR,QAAQ,CAACS,wBAAwB,CAAC,CAAC;EACnDL,IAAI,CAACM,OAAO,CAAC,CAAC;EACd,OAAOF,OAAO;AAChB,CAAC;AAED,OAAO,MAAMG,WAAW,GAAGA,CAACb,OAAqB,EAAEc,IAAY,KAAK;EAClE,OAAOC,sBAAsB,CAAChB,aAAa,CAACC,OAAO,CAA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