@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":["_react","require","_Platform","_ReanimatedProxy","_interopRequireDefault","_useVideoLoading","obj","__esModule","default","copyFrameOnAndroid","currentFrame","Platform","OS","tex","value","makeNonTextureImage","dispose","setFrame","video","img","nextImage","defaultOptions","looping","paused","seek","currentTime","volume","useOption","defaultValue","Rea","useSharedValue","isSharedValue","disposeVideo","useVideo","source","userOptions","_userOptions$paused","_userOptions$looping","_userOptions$seek","_userOptions$volume","useVideoLoading","isPaused","lastTimestamp","duration","useMemo","_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","useEffect","runOnUI","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAAoD,SAAAG,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAWpD,MAAMG,kBAAkB,GAAIC,YAAyC,IAAK;EACxE,SAAS;;EACT;EACA,IAAIC,kBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;IAC7B,MAAMC,GAAG,GAAGH,YAAY,CAACI,KAAK;IAC9B,IAAID,GAAG,EAAE;MACPH,YAAY,CAACI,KAAK,GAAGD,GAAG,CAACE,mBAAmB,CAAC,CAAC;MAC9CF,GAAG,CAACG,OAAO,CAAC,CAAC;IACf;EACF;AACF,CAAC;AAED,MAAMC,QAAQ,GAAGA,CAACC,KAAY,EAAER,YAAyC,KAAK;EAC5E,SAAS;;EACT,MAAMS,GAAG,GAAGD,KAAK,CAACE,SAAS,CAAC,CAAC;EAC7B,IAAID,GAAG,EAAE;IACP,IAAIT,YAAY,CAAC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","_Platform","_ReanimatedProxy","_interopRequireDefault","_useVideoLoading","e","__esModule","default","copyFrameOnAndroid","currentFrame","Platform","OS","tex","value","makeNonTextureImage","dispose","setFrame","video","img","nextImage","defaultOptions","looping","paused","seek","currentTime","volume","useOption","defaultValue","Rea","useSharedValue","isSharedValue","disposeVideo","useVideo","source","userOptions","_userOptions$paused","_userOptions$looping","_userOptions$seek","_userOptions$volume","useVideoLoading","isPaused","lastTimestamp","duration","useMemo","_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","useEffect","runOnUI","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAAoD,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAWpD,MAAMG,kBAAkB,GAAIC,YAAyC,IAAK;EACxE,SAAS;;EACT;EACA,IAAIC,kBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;IAC7B,MAAMC,GAAG,GAAGH,YAAY,CAACI,KAAK;IAC9B,IAAID,GAAG,EAAE;MACPH,YAAY,CAACI,KAAK,GAAGD,GAAG,CAACE,mBAAmB,CAAC,CAAC;MAC9CF,GAAG,CAACG,OAAO,CAAC,CAAC;IACf;EACF;AACF,CAAC;AAED,MAAMC,QAAQ,GAAGA,CAACC,KAAY,EAAER,YAAyC,KAAK;EAC5E,SAAS;;EACT,MAAMS,GAAG,GAAGD,KAAK,CAACE,SAAS,CAAC,CAAC;EAC7B,IAAID,GAAG,EAAE;IACP,IAAIT,YAAY,CAACI,KAAK,EAAE;MACtBJ,YAAY,CAACI,KAAK,CAACE,OAAO,CAAC,CAAC;IAC9B;IACAN,YAAY,CAACI,KAAK,GAAGK,GAAG;IACxBV,kBAAkB,CAACC,YAAY,CAAC;EAClC;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BAAgB,GAAGD,SAAS,CAACE,SAAS;IAC5C,IAAIvB,aAAa,CAAC5B,KAAK,KAAK,CAAC,CAAC,EAAE;MAC9B4B,aAAa,CAAC5B,KAAK,GAAGkD,gBAAgB;IACxC;IACA,MAAME,KAAK,GAAGF,gBAAgB,GAAGtB,aAAa,CAAC5B,KAAK;IAEpD,MAAMqD,MAAM,GAAG1C,WAAW,CAACX,KAAK,GAAGoD,KAAK,GAAGvB,QAAQ;IACnD,IAAIwB,MAAM,IAAI7C,OAAO,CAACR,KAAK,EAAE;MAC3BU,IAAI,CAACV,KAAK,GAAG,CAAC;MACdW,WAAW,CAACX,KAAK,GAAGU,IAAI,CAACV,KAAK;MAC9B4B,aAAa,CAAC5B,KAAK,GAAGkD,gBAAgB;IACxC;IACA;IACA;IACA,IAAKE,KAAK,IAAIX,oBAAoB,IAAI,CAACY,MAAM,IAAKxD,kBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;MACvEK,QAAQ,CAACC,KAAK,EAAER,YAAY,CAAC;MAC7Be,WAAW,CAACX,KAAK,IAAIoD,KAAK;MAC1BxB,aAAa,CAAC5B,KAAK,GAAGkD,gBAAgB;IACxC;EACF,CAAC,CAAC;EAEF,IAAAI,gBAAS,EAAC,MAAM;IACd,OAAO,MAAM;MACX;MACAvC,wBAAG,CAACwC,OAAO,CAACrC,YAAY,CAAC,CAACd,KAAK,CAAC;IAClC,CAAC;EACH,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAEX,OAAO;IACLR,YAAY;IACZe,WAAW;IACXkB,QAAQ;IACRG,SAAS;IACTM,QAAQ;IACRJ;EACF,CAAC;AACH,CAAC;AAACsB,OAAA,CAAArC,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -7,7 +7,7 @@ exports.useVideoLoading = void 0;
7
7
  var _react = require("react");
8
8
  var _skia = require("../../skia");
9
9
  var _ReanimatedProxy = _interopRequireDefault(require("./ReanimatedProxy"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const runtime = _ReanimatedProxy.default.createWorkletRuntime("video-metadata-runtime");
12
12
  const useVideoLoading = source => {
13
13
  const {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_skia","_ReanimatedProxy","_interopRequireDefault","obj","__esModule","default","runtime","Rea","createWorkletRuntime","useVideoLoading","source","runOnJS","video","setVideo","useState","cb","useCallback","src","vid","Skia","Video","useEffect","runOnRuntime","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAoC,SAAAG,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEpC,MAAMG,OAAO,GAAGC,wBAAG,CAACC,oBAAoB,CAAC,wBAAwB,CAAC;AAI3D,MAAMC,eAAe,GAAIC,MAAmB,IAAK;EACtD,MAAM;IAAEC;EAAQ,CAAC,GAAGJ,wBAAG;EACvB,MAAM,CAACK,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAAe,IAAI,CAAC;EACtD,MAAMC,EAAE,GAAG,IAAAC,kBAAW,EACnBC,GAAW,IAAK;IACf,SAAS;;IACT,MAAMC,GAAG,GAAGC,UAAI,CAACC,KAAK,CAACH,GAAG,CAAU;IACpCN,OAAO,CAACE,QAAQ,CAAC,CAACK,GAAG,CAAC;EACxB,CAAC,EACD,CAACP,OAAO,CACV,CAAC;EACD,IAAAU,gBAAS,EAAC,MAAM;IACd,IAAIX,MAAM,EAAE;MACVH,wBAAG,CAACe,YAAY,CAAChB,OAAO,EAAES,EAAE,CAAC,CAACL,MAAM,CAAC;IACvC;EACF,CAAC,EAAE,CAACK,EAAE,EAAEL,MAAM,CAAC,CAAC;EAChB,OAAOE,KAAK;AACd,CAAC;AAACW,OAAA,CAAAd,eAAA,GAAAA,eAAA"}
1
+ {"version":3,"names":["_react","require","_skia","_ReanimatedProxy","_interopRequireDefault","e","__esModule","default","runtime","Rea","createWorkletRuntime","useVideoLoading","source","runOnJS","video","setVideo","useState","cb","useCallback","src","vid","Skia","Video","useEffect","runOnRuntime","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAoC,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEpC,MAAMG,OAAO,GAAGC,wBAAG,CAACC,oBAAoB,CAAC,wBAAwB,CAAC;AAI3D,MAAMC,eAAe,GAAIC,MAAmB,IAAK;EACtD,MAAM;IAAEC;EAAQ,CAAC,GAAGJ,wBAAG;EACvB,MAAM,CAACK,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAAe,IAAI,CAAC;EACtD,MAAMC,EAAE,GAAG,IAAAC,kBAAW,EACnBC,GAAW,IAAK;IACf,SAAS;;IACT,MAAMC,GAAG,GAAGC,UAAI,CAACC,KAAK,CAACH,GAAG,CAAU;IACpCN,OAAO,CAACE,QAAQ,CAAC,CAACK,GAAG,CAAC;EACxB,CAAC,EACD,CAACP,OAAO,CACV,CAAC;EACD,IAAAU,gBAAS,EAAC,MAAM;IACd,IAAIX,MAAM,EAAE;MACVH,wBAAG,CAACe,YAAY,CAAChB,OAAO,EAAES,EAAE,CAAC,CAACL,MAAM,CAAC;IACvC;EACF,CAAC,EAAE,CAACK,EAAE,EAAEL,MAAM,CAAC,CAAC;EAChB,OAAOE,KAAK;AACd,CAAC;AAACW,OAAA,CAAAd,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_skia","useVideoLoading","source","video","setVideo","useState","useEffect","vid","Skia","Video","then","v","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,KAAA,GAAAD,OAAA;AAIO,MAAME,eAAe,GAAIC,MAAmB,IAAK;EACtD,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAAe,IAAI,CAAC;EACtD,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAIJ,MAAM,EAAE;MACV,MAAMK,GAAG,GAAGC,UAAI,CAACC,KAAK,CAACP,MAAM,CAAmB;MAChDK,GAAG,CAACG,IAAI,CAAEC,CAAC,IAAKP,QAAQ,CAACO,CAAC,CAAC,CAAC;IAC9B;EACF,CAAC,EAAE,CAACT,MAAM,CAAC,CAAC;EACZ,OAAOC,KAAK;AACd,CAAC;AAACS,OAAA,CAAAX,eAAA,GAAAA,eAAA"}
1
+ {"version":3,"names":["_react","require","_skia","useVideoLoading","source","video","setVideo","useState","useEffect","vid","Skia","Video","then","v","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,KAAA,GAAAD,OAAA;AAIO,MAAME,eAAe,GAAIC,MAAmB,IAAK;EACtD,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAAe,IAAI,CAAC;EACtD,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAIJ,MAAM,EAAE;MACV,MAAMK,GAAG,GAAGC,UAAI,CAACC,KAAK,CAACP,MAAM,CAAmB;MAChDK,GAAG,CAACG,IAAI,CAAEC,CAAC,IAAKP,QAAQ,CAACO,CAAC,CAAC,CAAC;IAC9B;EACF,CAAC,EAAE,CAACT,MAAM,CAAC,CAAC;EACZ,OAAOC,KAAK;AACd,CAAC;AAACS,OAAA,CAAAX,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_web","require","_Reconciler","_types","_components","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","Skia","makeOffscreenSurface","width","height","JsiSkApi","CanvasKit","surface","Surface","MakeOffscreen","Error","getSkiaExports","drawOffscreen","element","root","SkiaRoot","render","canvas","getCanvas","ctx","JsiDrawingContext","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":";;;;;;;;;;;AAKA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD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,IAAI,EAAE,KAAK,CAAC;EACtCa,IAAI,CAACE,MAAM,CAACH,OAAO,CAAC;EACpB,MAAMI,MAAM,GAAGV,OAAO,CAACW,SAAS,CAAC,CAAC;EAClC,MAAMC,GAAG,GAAG,IAAIC,wBAAiB,CAACnB,IAAI,EAAEgB,MAAM,CAAC;EAC/CH,IAAI,CAACO,GAAG,CAACL,MAAM,CAACG,GAAG,CAAC;EACpBL,IAAI,CAACQ,OAAO,CAAC,CAAC;EACdf,OAAO,CAACgB,KAAK,CAAC,CAAC;EACf,OAAOhB,OAAO,CAACiB,iBAAiB,CAAC,CAAC;AACpC,CAAC;AAAC3B,OAAA,CAAAe,aAAA,GAAAA,aAAA"}
1
+ {"version":3,"names":["_web","require","_Reconciler","_types","_components","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","Skia","makeOffscreenSurface","width","height","JsiSkApi","CanvasKit","surface","Surface","MakeOffscreen","Error","getSkiaExports","drawOffscreen","element","root","SkiaRoot","render","canvas","getCanvas","ctx","JsiDrawingContext","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":";;;;;;;;;;;AAKA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAGA,IAAAG,WAAA,GAAAH,OAAA;AAAAI,MAAA,CAAAC,IAAA,CAAAF,WAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,WAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,WAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAVA;AACA;;AAWA,IAAIS,IAAiC;AAE9B,MAAMC,oBAAoB,GAAGA,CAACC,KAAa,EAAEC,MAAc,KAAK;EACrE,IAAI,CAACH,IAAI,EAAE;IACTA,IAAI,GAAG,IAAAI,aAAQ,EAACC,SAAS,CAAC;EAC5B;EACA,MAAMC,OAAO,GAAGN,IAAI,CAACO,OAAO,CAACC,aAAa,CAACN,KAAK,EAAEC,MAAM,CAAC;EACzD,IAAIG,OAAO,KAAK,IAAI,EAAE;IACpB,MAAM,IAAIG,KAAK,CAAC,0BAA0B,CAAC;EAC7C;EACA,OAAOH,OAAO;AAChB,CAAC;AAACV,OAAA,CAAAK,oBAAA,GAAAA,oBAAA;AAEK,MAAMS,cAAc,GAAGA,CAAA,KAAM;EAClC,IAAI,CAACV,IAAI,EAAE;IACTA,IAAI,GAAG,IAAAI,aAAQ,EAACC,SAAS,CAAC;EAC5B;EACA,OAAO;IAAEL;EAAK,CAAC;AACjB,CAAC;AAACJ,OAAA,CAAAc,cAAA,GAAAA,cAAA;AAEK,MAAMC,aAAa,GAAGA,CAACL,OAAkB,EAAEM,OAAkB,KAAK;EACvE,MAAMC,IAAI,GAAG,IAAIC,oBAAQ,CAACd,IAAI,EAAE,KAAK,CAAC;EACtCa,IAAI,CAACE,MAAM,CAACH,OAAO,CAAC;EACpB,MAAMI,MAAM,GAAGV,OAAO,CAACW,SAAS,CAAC,CAAC;EAClC,MAAMC,GAAG,GAAG,IAAIC,wBAAiB,CAACnB,IAAI,EAAEgB,MAAM,CAAC;EAC/CH,IAAI,CAACO,GAAG,CAACL,MAAM,CAACG,GAAG,CAAC;EACpBL,IAAI,CAACQ,OAAO,CAAC,CAAC;EACdf,OAAO,CAACgB,KAAK,CAAC,CAAC;EACf,OAAOhB,OAAO,CAACiB,iBAAiB,CAAC,CAAC;AACpC,CAAC;AAAC3B,OAAA,CAAAe,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["require","_JsiSkImage","_renderer","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Canvas","_Offscreen","_views","_skia","_external","_animation","_types","_nodes"],"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":";;;;;;;;;;;;;;AAAAA,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,C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AAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAgB,MAAA,CAAAhB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAQ,MAAA,CAAAhB,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"names":["require","_JsiSkImage","_renderer","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Canvas","_Offscreen","_views","_skia","_external","_animation","_types","_nodes"],"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":";;;;;;;;;;;;;;AAAAA,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAF,SAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,SAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,SAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,OAAA,GAAAf,OAAA;AAAAG,MAA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ore
17
19
  global.SkiaApi = (0, _web.JsiSkApi)(CanvasKit);
20
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
21
+ // @ts-ignore
18
22
  const Skia = global.SkiaApi;
19
23
  return {
20
24
  Skia,
@@ -1 +1 @@
1
- {"version":3,"names":["_web","require","Noop","undefined","NoopValue","current","NoopSharedValue","value","Mock","CanvasKit","global","SkiaApi","JsiSkApi","Skia","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","exports"],"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,IAAAA,IAAA,GAAAC,OAAA;AAEA;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;AAErC,MAAMC,IAAI,GAAIC,SAAoB,IAAK;EAC5CC,MAAM,CAACC,OAAO,GAAG,IAAAC,aAAQ,EAACH,SAAS,CAAC;EACpC,MAAMI,IAAI,GAAGH,MAAM,CAACC,OAAO;EAC3B,OAAO;IACLE,IAAI;IACJ,GAAGZ,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;IACAa,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,KAAMtB,IAAI,CAACuB,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;AAACC,OAAA,CAAAlC,IAAA,GAAAA,IAAA"}
1
+ {"version":3,"names":["_web","require","Noop","undefined","NoopValue","current","NoopSharedValue","value","Mock","CanvasKit","global","SkiaApi","JsiSkApi","Skia","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","exports"],"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,IAAAA,IAAA,GAAAC,OAAA;AAEA;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;AAErC,MAAMC,IAAI,GAAIC,SAAoB,IAAK;EAC5C;EACA;EACAC,MAAM,CAACC,OAAO,GAAG,IAAAC,aAAQ,EAACH,SAAS,CAAC;EACpC;EACA;EACA,MAAMI,IAAI,GAAGH,MAAM,CAACC,OAAO;EAC3B,OAAO;IACLE,IAAI;IACJ,GAAGZ,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;IACAa,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,KAAMtB,IAAI,CAACuB,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;AAACC,OAAA,CAAAlC,IAAA,GAAAA,IAAA","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>>;
@@ -11,8 +11,8 @@ var _SkiaJSDomView = require("../views/SkiaJSDomView");
11
11
  var _Reconciler = require("./Reconciler");
12
12
  var _HostComponents = require("./HostComponents");
13
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
- 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); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
+ 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); }
16
16
  const useCanvasRef = () => (0, _react.useRef)(null);
17
17
  exports.useCanvasRef = useCanvasRef;
18
18
  const useOnSizeEvent = (resultValue, onLayout) => {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_views","_Skia","_SkiaJSDomView","_Reconciler","_HostComponents","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","useCanvasRef","useRef","exports","useOnSizeEvent","resultValue","onLayout","useCallback","event","width","height","nativeEvent","layout","value","Canvas","forwardRef","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","useMemo","SkiaRoot","Skia","NATIVE_DOM","useEffect","render","unmount","createElement","SkiaDomView","dom","SkiaJSDomView","refs","targetRef","React","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,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAgBA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AAA8C,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAA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MACpB,IAAIA,GAAG,EAAE;QACP,IAAI,OAAOA,GAAG,KAAK,UAAU,EAAE;UAC7BA,GAAG,CAACuB,SAAS,CAACnB,OAAO,CAAC;QACxB,CAAC,MAAM;UACLJ,GAAG,CAACI,OAAO,GAAGmB,SAAS,CAACnB,OAAO;QACjC;MACF;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACkB,IAAI,CAAC,CAAC;EACV,OAAOC,SAAS;AAClB,CAAC"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_views","_Skia","_SkiaJSDomView","_Reconciler","_HostComponents","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","useCanvasRef","useRef","exports","useOnSizeEvent","resultValue","onLayout","useCallback","event","width","height","nativeEvent","layout","value","Canvas","forwardRef","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","useMemo","SkiaRoot","Skia","NATIVE_DOM","useEffect","render","unmount","createElement","SkiaDomView","dom","SkiaJSDomView","refs","targetRef","React","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,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAgBA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AAA8C,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,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G,KAAK,UAAU,EAAE;UAC7BA,GAAG,CAACuB,SAAS,CAACnB,OAAO,CAAC;QACxB,CAAC,MAAM;UACLJ,GAAG,CAACI,OAAO,GAAGmB,SAAS,CAACnB,OAAO;QACjC;MACF;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACkB,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>;
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Container = void 0;
7
7
  var _nodes = require("../dom/nodes");
8
- 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; }
9
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
8
+ 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; }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
10
10
  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); }
11
11
  class Container {
12
12
  constructor(Skia, redraw = () => {}, getNativeId = () => 0, native) {
@@ -14,6 +14,7 @@ class Container {
14
14
  this.getNativeId = getNativeId;
15
15
  _defineProperty(this, "_root", void 0);
16
16
  _defineProperty(this, "Sk", void 0);
17
+ _defineProperty(this, "unmounted", false);
17
18
  this.Sk = new _nodes.JsiSkDOM({
18
19
  Skia
19
20
  }, native);
@@ -1 +1 @@
1
- {"version":3,"names":["_nodes","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","Container","constructor","Skia","redraw","getNativeId","native","Sk","JsiSkDOM","_root","Group","draw","ctx","render","root","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AAAwC,SAAAC,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AASjC,MAAMW,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;IAAAzB,eAAA;IAAAA,eAAA;IAGhC,IAAI,CAAC2B,EAAE,GAAG,IAAIC,eAAQ,CAAC;MAAEL;IAAK,CAAC,EAAEG,MAAM,CAAC;IACxC,IAAI,CAACG,KAAK,GAAG,IAAI,CAACF,EAAE,CAACG,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;AAACM,OAAA,CAAAd,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"names":["_nodes","require","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","Container","constructor","Skia","redraw","getNativeId","native","Sk","JsiSkDOM","_root","Group","draw","ctx","render","root","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AAAwC,SAAAC,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,CAAA,GAAAI,MAAA,CAAAC,cAAA,CAAAL,CAAA,EAAAC,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAT,CAAA,CAAAC,CAAA,IAAAC,CAAA,EAAAF,CAAA;AAAA,SAAAG,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAF,CAAA,GAAAE,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAb,CAAA,QAAAU,CAAA,GAAAV,CAAA,CAAAc,IAAA,CAAAZ,CAAA,EAAAD,CAAA,uCAAAS,CAAA,SAAAA,CAAA,YAAAK,SAAA,yEAAAd,CAAA,GAAAe,MAAA,GAAAC,MAAA,EAAAf,CAAA;AASjC,MAAMgB,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;IAAAvB,eAAA;IAAAA,eAAA;IAAAA,eAAA,oBAJf,KAAK;IAOtB,IAAI,CAACyB,EAAE,GAAG,IAAIC,eAAQ,CAAC;MAAEL;IAAK,CAAC,EAAEG,MAAM,CAAC;IACxC,IAAI,CAACG,KAAK,GAAG,IAAI,CAACF,EAAE,CAACG,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;AAACM,OAAA,CAAAd,SAAA,GAAAA,SAAA","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":["_types","require","_typeddash","shouldUseJSDomOnNative","NATIVE_DOM","exports","global","SkiaDomApi","createNode","container","type","props","Sk","NodeType","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","exhaustiveCheck"],"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,IAAAA,MAAA,GAAAC,OAAA;AA+DA,IAAAC,UAAA,GAAAD,OAAA;AAGA;AACA,MAAME,sBAAsB,GAAG,KAAK;AAC7B,MAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAGD,sBAAsB,GAAG,KAAK,GAAG,CAAC,CAACG,MAAM,CAACC,UAAU;AA6MvE,MAAMC,UAAU,GAAGA,CACxBC,SAAoB,EACpBC,IAAc,EAEdC,KAAU,KACP;EACH,MAAM;IAAEC;EAAG,CAAC,GAAGH,SAAS;EACxB,QAAQC,IAAI;IACV,KAAKG,eAAQ,CAACC,KAAK;MACjB,OAAOF,EAAE,CAACE,KAAK,CAACH,KAAK,CAAC;IACxB,KAAKE,eAAQ,CAACE,KAAK;MACjB,OAAOH,EAAE,CAACG,KAAK,CAACJ,KAAK,CAAC;IACxB,KAAKE,eAAQ,CAACG,KAAK;MACjB,OAAOJ,EAAE,CAACI,KAAK,CAACL,KAAK,CAAC;IACxB;IACA,KAAKE,eAAQ,CAACI,IAAI;MAChB,OAAOL,EAAE,CAACK,IAAI,CAACN,KAAK,CAAC;IACvB,KAAKE,eAAQ,CAACK,KAAK;MACjB,OAAON,EAAE,CAACM,KAAK,CAACP,KAAK,CAAC;IACxB,KAAKE,eAAQ,CAACM,MAAM;MAClB,OAAOP,EAAE,CAACO,MAAM,CAACR,KAAK,CAAC;IACzB,KAAKE,eAAQ,CAACO,IAAI;MAChB,OAAOR,EAAE,CAACQ,IAAI,CAACT,KAAK,CAAC;IACvB,KAAKE,eAAQ,CAACQ,IAAI;MAChB,OAAOT,EAAE,CAACS,IAAI,CAACV,KAAK,CAAC;IACvB,KAAKE,eAAQ,CAACS,IAAI;MAChB,OAAOV,EAAE,CAACU,IAAI,CAACX,KAAK,CAAC;IACvB,KAAKE,eAAQ,CAACU,KAAK;MACjB,OA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zB,OAAOpD,EAAE,CAACoD,aAAa,CAAC,CAAC;IAC3B,KAAKnD,eAAQ,CAACoD,gBAAgB;MAC5B,OAAOrD,EAAE,CAACqD,gBAAgB,CAACtD,KAAK,CAAC;IACnC;IACA,KAAKE,eAAQ,CAACqD,KAAK;MACjB,OAAOtD,EAAE,CAACsD,KAAK,CAACvD,KAAK,CAAC;IACxB,KAAKE,eAAQ,CAACsD,cAAc;MAC1B,OAAOvD,EAAE,CAACuD,cAAc,CAACxD,KAAK,CAAC;IACjC,KAAKE,eAAQ,CAACuD,GAAG;MACf,OAAOxD,EAAE,CAACwD,GAAG,CAACzD,KAAK,CAAC;IACtB,KAAKE,eAAQ,CAACwD,SAAS;MACrB,OAAOzD,EAAE,CAACyD,SAAS,CAAC1D,KAAK,CAAC;IAC5B;IACA,KAAKE,eAAQ,CAACyD,SAAS;MACrB,OAAO1D,EAAE,CAAC0D,SAAS,CAAC3D,KAAK,CAAC;IAC5B;MACE,OAAO,IAAA4D,0BAAe,EAAC7D,IAAI,CAAC;EAChC;AACF,CAAC;AAACL,OAAA,CAAAG,UAAA,GAAAA,UAAA"}
1
+ {"version":3,"names":["_types","require","_typeddash","shouldUseJSDomOnNative","NATIVE_DOM","exports","global","SkiaDomApi","createNode","container","type","props","Sk","NodeType","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","exhaustiveCheck"],"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,IAAAA,MAAA,GAAAC,OAAA;AA+DA,IAAAC,UAAA,GAAAD,OAAA;AAGA;AAC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KAAK;MACjB,OAAOtD,EAAE,CAACsD,KAAK,CAACvD,KAAK,CAAC;IACxB,KAAKE,eAAQ,CAACsD,cAAc;MAC1B,OAAOvD,EAAE,CAACuD,cAAc,CAACxD,KAAK,CAAC;IACjC,KAAKE,eAAQ,CAACuD,GAAG;MACf,OAAOxD,EAAE,CAACwD,GAAG,CAACzD,KAAK,CAAC;IACtB,KAAKE,eAAQ,CAACwD,SAAS;MACrB,OAAOzD,EAAE,CAACyD,SAAS,CAAC1D,KAAK,CAAC;IAC5B;IACA,KAAKE,eAAQ,CAACyD,SAAS;MACrB,OAAO1D,EAAE,CAAC0D,SAAS,CAAC3D,KAAK,CAAC;IAC5B;MACE,OAAO,IAAA4D,0BAAe,EAAC7D,IAAI,CAAC;EAChC;AACF,CAAC;AAACL,OAAA,CAAAG,UAAA,GAAAA,UAAA","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";
@@ -20,9 +20,13 @@ exports.debug = debug;
20
20
  const appendNode = (parent, child) => {
21
21
  parent.addChild(child);
22
22
  };
23
- const removeNode = (parent, child) => {
23
+ const removeNode = (parent, child, unmounted = false) => {
24
+ // If the drawing is unmounted we don't want to update it.
25
+ // We can just stop the reanimated mappers
24
26
  (0, _renderHelpers.unbindReanimatedNode)(child);
25
- return parent.removeChild(child);
27
+ if (!unmounted) {
28
+ parent.removeChild(child);
29
+ }
26
30
  };
27
31
  const insertBefore = (parent, child, before) => {
28
32
  parent.insertChildBefore(child, before);
@@ -130,7 +134,7 @@ const skHostConfig = exports.skHostConfig = {
130
134
  removeNode(parent, child);
131
135
  },
132
136
  removeChildFromContainer: (container, child) => {
133
- removeNode(container.root, child);
137
+ removeNode(container.root, child, container.unmounted);
134
138
  },
135
139
  insertInContainerBefore: (container, child, before) => {
136
140
  insertBefore(container.root, child, before);
@@ -1 +1 @@
1
- {"version":3,"names":["_constants","require","_renderHelpers","_HostComponents","_typeddash","DEBUG","debug","args","console","log","exports","appendNode","parent","child","addChild","removeNode","unbindReanimatedNode","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","extractReanimatedProps","node","createNode","bindReanimatedProps","appendInitialChild","parentInstance","finalizeInitialChildren","commitMount","prepareForCommit","_containerInfo","resetAfterCommit","redraw","getPublicInstance","prepareUpdate","_instance","oldProps","newProps","rootContainerInstance","propsAreEqual","shallowEq","commitUpdate","instance","updatePayload","prevProps","nextProps","_internalHandle","setProps","commitTextUpdate","_textInstance","_oldText","_newText","clearContainer","children","forEach","preparePortalMount","removeChildFromContainer","insertInContainerBefore","getCurrentEventPriority","DefaultEventPriority","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":";;;;;;AAEA,IAAAA,UAAA,GAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAD,OAAA;AAOA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAbA;;AAeA,MAAMI,KAAK,GAAG,KAAK;AACZ,MAAMC,KAAK,GAAGA,CAAC,GAAGC,IAAoC,KAAK;EAChE,IAAIF,KAAK,EAAE;IACTG,OAAO,CAACC,GAAG,CAAC,GAAGF,IAAI,CAAC;EACtB;AACF,CAAC;AAACG,OAAA,CAAAJ,KAAA,GAAAA,KAAA;AA+BF,MAAMK,UAAU,GAAGA,CAACC,MAAqB,EAAEC,KAAoB,KAAK;EAClED,MAAM,CAACE,QAAQ,CAACD,KAAK,CAAC;AACxB,CAAC;AAED,MAAME,UAAU,GAAGA,CAACH,MAAqB,EAAEC,KAAoB,KAAK;EAClE,IAAAG,mCAAoB,EAACH,KAAK,CAAC;EAC3B,OAAOD,MAAM,CAACK,WAAW,CAACJ,KAAK,CAAC;AAClC,CAAC;AAED,MAAMK,YAAY,GAAGA,CACnBN,MAAqB,EACrBC,KAAoB,EACpBM,MAAqB,KAClB;EACHP,MAAM,CAACQ,iBAAiB,CAACP,KAAK,EAAEM,MAAM,CAAC;AACzC,CAAC;AAEM,MAAME,YAA4B,GAAAX,OAAA,CAAAW,YAAA,GAAG;EAC1C;AACF;AACA;EACEC,GAAG,EAAEC,IAAI,CAACD,GAAG;EACbE,gBAAgB,EAAE,IAAI;EACtBC,iBAAiB,EAAE,KAAK;EACxBC,mBAAmB,EAAE,KAAK;EAC1BC,iBAAiB,EAAE,KAAK;EACxB;;EAEAC,eAAe,EAAEC,UAAU;EAC3BC,aAAa,EAAEC,YAAY;EAC3BC,SAAS,EAAE,CAA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A,CAAA,KAAMC,+BAAoB;EACnDC,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":["_constants","require","_renderHelpers","_HostComponents","_typeddash","DEBUG","debug","args","console","log","exports","appendNode","parent","child","addChild","removeNode","unmounted","unbindReanimatedNode","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","extractReanimatedProps","node","createNode","bindReanimatedProps","appendInitialChild","parentInstance","finalizeInitialChildren","commitMount","prepareForCommit","_containerInfo","resetAfterCommit","redraw","getPublicInstance","prepareUpdate","_instance","oldProps","newProps","rootContainerInstance","propsAreEqual","shallowEq","commitUpdate","instance","updatePayload","prevProps","nextProps","_internalHandle","setProps","commitTextUpdate","_textInstance","_oldText","_newText","clearContainer","children","forEach","preparePortalMount","removeChildFromContainer","insertInContainerBefore","getCurrentEventPriority","DefaultEventPriority","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":";;;;;;AAEA,IAAAA,UAAA,GAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAD,OAAA;AAOA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAbA;;AAeA,MAAMI,KAAK,GAAG,KAAK;AACZ,MAAMC,KAAK,GAAGA,CAAC,GAAGC,IAAoC,KAAK;EAChE,IAAIF,KAAK,EAAE;IACTG,OAAO,CAACC,GAAG,CAAC,GAAGF,IAAI,CAAC;EACtB;AACF,CAAC;AAACG,OAAA,CAAAJ,KAAA,GAAAA,KAAA;AA+BF,MAAMK,UAAU,GAAGA,CAACC,MAAqB,EAAEC,KAAoB,KAAK;EAClED,MAAM,CAACE,QAAQ,CAACD,KAAK,CAAC;AACxB,CAAC;AAED,MAAME,UAAU,GAAGA,CAACH,MAAqB,EAAEC,KAAoB,EAAEG,SAAS,GAAG,KAAK,KAAK;EACrF;EACA;EACA,IAAAC,mCAAoB,EAACJ,KAAK,CAAC;EAC3B,IAAI,CAACG,SAAS,EAAE;IACdJ,MAAM,CAACM,WAAW,CAACL,KAAK,CAAC;EAC3B;AACF,CAAC;AAED,MAAMM,YAAY,GAAGA,CACnBP,MAAqB,EACrBC,KAAoB,EACpBO,MAAqB,KAClB;EACHR,MAAM,CAACS,iBAAiB,CAACR,KAAK,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B,SAAS,CAACnB,SAAS,CAAC;EACxD,CAAC;EAED2E,uBAAuB,EAAEA,CAACxD,SAAS,EAAEtB,KAAK,EAAEO,MAAM,KAAK;IACrDD,YAAY,CAACgB,SAAS,CAACC,IAAI,EAAEvB,KAAK,EAAEO,MAAM,CAAC;EAC7C,CAAC;EAEDD,YAAY,EAAEA,CAACP,MAAM,EAAEC,KAAK,EAAEO,MAAM,KAAK;IACvCD,YAAY,CAACP,MAAM,EAAEC,KAAK,EAAEO,MAAM,CAAC;EACrC,CAAC;EACD;EACA;EACA;EACAwE,uBAAuB,EAAEA,CAAA,KAAMC,+BAAoB;EACnDC,wBAAwB,EAAEA,CAAA,KAAM,CAAC,CAAC;EAClCC,uBAAuB,EAAEA,CAAA,KAAM,CAAC,CAAC;EACjCC,qBAAqB,EAAEA,CAAA,KAAM,CAAC;AAChC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_skia","_Platform","_Reconciler","isOnMainThread","_WORKLET","Platform","OS","exports","drawAsPicture","element","bounds","recorder","Skia","PictureRecorder","canvas","beginRecording","root","SkiaRoot","render","ctx","JsiDrawingContext","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,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AAEA;AACO,MAAMI,cAAc,GAAGA,CAAA,KAAM;EAClC,SAAS;;EACT,OACG,OAAOC,QAAQ,KAAK,WAAW,IAAIA,QAAQ,KAAK,IAAI,IACrDC,kBAAQ,CAACC,EAAE,KAAK,KAAK;AAEzB,CAAC;AAACC,OAAA,CAAAJ,cAAA,GAAAA,cAAA;AAEK,MAAMK,aAAa,GAAGA,CAACC,OAAqB,EAAEC,MAAe,KAAK;EACvE,MAAMC,QAAQ,GAAGC,UAAI,CAACC,eAAe,CAAC,CAAC;EACvC,MAAMC,MAAM,GAAGH,QAAQ,CAACI,cAAc,CAACL,MAAM,CAAC;EAC9C,MAAMM,IAAI,GAAG,IAAIC,oBAAQ,CAACL,UAAI,EAAE,KAAK,CAAC;EACtCI,IAAI,CAACE,MAAM,CAACT,OAAO,CAAC;EACpB,MAAMU,GAAG,GAAG,IAAIC,wBAAiB,CAACR,UAAI,EAAEE,MAAM,CAAC;EAC/CE,IAAI,CAACK,GAAG,CAACH,MAAM,CAACC,GAAG,CAAC;EACpB,MAAMG,OAAO,GAAGX,QAAQ,CAACY,wBAAwB,CAAC,CAAC;EACnDP,IAAI,CAACQ,OAAO,CAAC,CAAC;EACd,OAAOF,OAAO;AAChB,CAAC;AAACf,OAAA,CAAAC,aAAA,GAAAA,aAAA;AAEK,MAAMiB,WAAW,GAAGA,CAAChB,OAAqB,EAAEiB,IAAY,KAAK;EAClE,OAAOC,sBAAsB,CAACnB,aAAa,CAACC,OAAO,CAAC,EAAEiB,IAAI,CAAC;AAC7D,CAAC;AAACnB,OAAA,CAAAkB,WAAA,GAAAA,WAAA;AAEK,MAAME,sBAAsB,GAAGA,CAACL,OAAkB,EAAEI,IAAY,KAAK;EAC1E,SAAS;;EACT,MAAME,OAAO,GAAGhB,UAAI,CAACiB,OAAO,CAACC,aAAa,CAACJ,IAAI,CAACK,KAAK,EAAEL,IAAI,CAACM,MAAM,CAAE;EACpE,MAAMlB,MAAM,GAAGc,OAAO,CAACK,SAAS,CAAC,CAAC;EAClCnB,MAAM,CAACoB,WAAW,CAACZ,OAAO,CAAC;EAC3BM,OAAO,CAACO,KAAK,CAAC,CAAC;EACf,MAAMC,KAAK,GAAGR,OAAO,CAACS,iBAAiB,CAAC,CAAC;EACzC;EACA,IAAI,CAAClC,cAAc,CAAC,CAAC,IAAIE,kBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;IAC9C,OAAO8B,KAAK,CAACE,mBAAmB,CAAC,CAAC;EACpC,CAAC,MAAM;IACL,OAAOF,KAAK;EACd;AACF,CAAC;AAAC7B,OAAA,CAAAoB,sBAAA,GAAAA,sBAAA"}
1
+ {"version":3,"names":["_types","require","_skia","_Platform","_Reconciler","isOnMainThread","_WORKLET","Platform","OS","exports","drawAsPicture","element","bounds","recorder","Skia","PictureRecorder","canvas","beginRecording","root","SkiaRoot","render","ctx","JsiDrawingContext","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,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AAEA;AACO,MAAMI,cAAc,GAAGA,CAAA,KAAM;EAClC,SAAS;;EACT,OACG,OAAOC,QAAQ,KAAK,WAAW,IAAIA,QAAQ,KAAK,IAAI,IACrDC,kBAAQ,CAACC,EAAE,KA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;EACzC;EACA,IAAI,CAAClC,cAAc,CAAC,CAAC,IAAIE,kBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;IAC9C,OAAO8B,KAAK,CAACE,mBAAmB,CAAC,CAAC;EACpC,CAAC,MAAM;IACL,OAAOF,KAAK;EACd;AACF,CAAC;AAAC7B,OAAA,CAAAoB,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -7,9 +7,9 @@ exports.SkiaRoot = void 0;
7
7
  var _reactReconciler = _interopRequireDefault(require("react-reconciler"));
8
8
  var _HostConfig = require("./HostConfig");
9
9
  var _Container = require("./Container");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- 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; }
12
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ 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; }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
13
13
  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); }
14
14
  const skiaReconciler = (0, _reactReconciler.default)(_HostConfig.skHostConfig);
15
15
  skiaReconciler.injectIntoDevTools({
@@ -31,6 +31,7 @@ class SkiaRoot {
31
31
  });
32
32
  }
33
33
  unmount() {
34
+ this.container.unmounted = true;
34
35
  skiaReconciler.updateContainer(null, this.root, null, () => {
35
36
  (0, _HostConfig.debug)("unmountContainer");
36
37
  });