@shopify/react-native-skia 1.3.10 → 1.3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1662) hide show
  1. package/android/CMakeLists.txt +2 -0
  2. package/android/build.gradle +4 -2
  3. package/android/cpp/jni/JniSkiaManager.cpp +15 -4
  4. package/cpp/api/JsiSkAnimatedImage.h +6 -1
  5. package/cpp/api/JsiSkParagraph.h +10 -1
  6. package/cpp/jsi/JsiHostObject.h +9 -15
  7. package/lib/commonjs/Platform/IPlatform.d.ts +0 -1
  8. package/lib/commonjs/Platform/IPlatform.js.map +1 -1
  9. package/lib/commonjs/Platform/Platform.js.map +1 -1
  10. package/lib/commonjs/Platform/Platform.web.js +5 -1
  11. package/lib/commonjs/Platform/Platform.web.js.map +1 -1
  12. package/lib/commonjs/Platform/index.js.map +1 -1
  13. package/lib/commonjs/animation/functions/index.js.map +1 -1
  14. package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
  15. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  16. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
  17. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
  18. package/lib/commonjs/animation/index.js.map +1 -1
  19. package/lib/commonjs/dom/nodes/DrawingNode.js +2 -2
  20. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
  21. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
  22. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  23. package/lib/commonjs/dom/nodes/LayerNode.js.map +1 -1
  24. package/lib/commonjs/dom/nodes/Node.js +2 -2
  25. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  26. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
  27. package/lib/commonjs/dom/nodes/RenderNode.js +2 -2
  28. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
  29. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
  30. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
  31. package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
  32. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
  33. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
  34. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
  35. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
  36. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
  37. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
  38. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js.map +1 -1
  39. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  40. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
  41. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
  42. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  43. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
  44. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
  45. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
  46. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
  47. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
  48. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  49. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
  50. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
  51. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
  52. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
  53. package/lib/commonjs/dom/nodes/drawings/RRectNode.js +2 -2
  54. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
  55. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
  56. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
  57. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
  58. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  59. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  60. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
  61. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
  62. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
  63. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
  64. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
  65. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
  66. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
  67. package/lib/commonjs/dom/types/ColorFilters.js.map +1 -1
  68. package/lib/commonjs/dom/types/Common.js.map +1 -1
  69. package/lib/commonjs/dom/types/DeclarationContext.js +2 -2
  70. package/lib/commonjs/dom/types/DeclarationContext.js.map +1 -1
  71. package/lib/commonjs/dom/types/DrawingContext.js +2 -2
  72. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  73. package/lib/commonjs/dom/types/Drawings.js.map +1 -1
  74. package/lib/commonjs/dom/types/ImageFilters.js.map +1 -1
  75. package/lib/commonjs/dom/types/MaskFilters.js.map +1 -1
  76. package/lib/commonjs/dom/types/Node.js.map +1 -1
  77. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  78. package/lib/commonjs/dom/types/Paragraph.js.map +1 -1
  79. package/lib/commonjs/dom/types/PathEffects.js.map +1 -1
  80. package/lib/commonjs/dom/types/Shaders.js.map +1 -1
  81. package/lib/commonjs/dom/types/SkDOM.js.map +1 -1
  82. package/lib/commonjs/dom/types/index.js.map +1 -1
  83. package/lib/commonjs/external/ModuleProxy.js.map +1 -1
  84. package/lib/commonjs/external/index.js.map +1 -1
  85. package/lib/commonjs/external/reanimated/ReanimatedProxy.js.map +1 -1
  86. package/lib/commonjs/external/reanimated/buffers.d.ts +4 -4
  87. package/lib/commonjs/external/reanimated/buffers.js +1 -1
  88. package/lib/commonjs/external/reanimated/buffers.js.map +1 -1
  89. package/lib/commonjs/external/reanimated/index.js.map +1 -1
  90. package/lib/commonjs/external/reanimated/interpolators.js +1 -1
  91. package/lib/commonjs/external/reanimated/interpolators.js.map +1 -1
  92. package/lib/commonjs/external/reanimated/renderHelpers.js +1 -1
  93. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
  94. package/lib/commonjs/external/reanimated/textures.js +1 -1
  95. package/lib/commonjs/external/reanimated/textures.js.map +1 -1
  96. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +1 -1
  97. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -1
  98. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js +1 -1
  99. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  100. package/lib/commonjs/external/reanimated/useVideo.js +1 -1
  101. package/lib/commonjs/external/reanimated/useVideo.js.map +1 -1
  102. package/lib/commonjs/external/reanimated/useVideoLoading.js +1 -1
  103. package/lib/commonjs/external/reanimated/useVideoLoading.js.map +1 -1
  104. package/lib/commonjs/external/reanimated/useVideoLoading.web.js.map +1 -1
  105. package/lib/commonjs/headless/index.js.map +1 -1
  106. package/lib/commonjs/index.js.map +1 -1
  107. package/lib/commonjs/mock/index.js +4 -0
  108. package/lib/commonjs/mock/index.js.map +1 -1
  109. package/lib/commonjs/renderer/Canvas.d.ts +2 -2
  110. package/lib/commonjs/renderer/Canvas.js +2 -2
  111. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  112. package/lib/commonjs/renderer/Container.d.ts +1 -0
  113. package/lib/commonjs/renderer/Container.js +3 -2
  114. package/lib/commonjs/renderer/Container.js.map +1 -1
  115. package/lib/commonjs/renderer/DrawingContext.js.map +1 -1
  116. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  117. package/lib/commonjs/renderer/HostConfig.d.ts +0 -1
  118. package/lib/commonjs/renderer/HostConfig.js +7 -3
  119. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  120. package/lib/commonjs/renderer/Offscreen.js.map +1 -1
  121. package/lib/commonjs/renderer/Reconciler.js +4 -3
  122. package/lib/commonjs/renderer/Reconciler.js.map +1 -1
  123. package/lib/commonjs/renderer/components/Blend.js +1 -1
  124. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  125. package/lib/commonjs/renderer/components/Group.js +3 -3
  126. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  127. package/lib/commonjs/renderer/components/Mask.js +1 -1
  128. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  129. package/lib/commonjs/renderer/components/Paint.js +1 -1
  130. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  131. package/lib/commonjs/renderer/components/Picture.js +1 -1
  132. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  133. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +2 -2
  134. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  135. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +1 -1
  136. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  137. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
  138. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +1 -1
  139. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  140. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +1 -1
  141. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  142. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +1 -1
  143. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  144. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +1 -1
  145. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  146. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +1 -1
  147. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  148. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +1 -1
  149. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  150. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
  151. package/lib/commonjs/renderer/components/image/Image.js +1 -1
  152. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  153. package/lib/commonjs/renderer/components/image/ImageSVG.js +1 -1
  154. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  155. package/lib/commonjs/renderer/components/image/ImageShader.js +2 -2
  156. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  157. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  158. package/lib/commonjs/renderer/components/imageFilters/Blur.js +2 -2
  159. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  160. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +1 -1
  161. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  162. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +2 -2
  163. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  164. package/lib/commonjs/renderer/components/imageFilters/Offset.js +2 -2
  165. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  166. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +1 -1
  167. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  168. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +1 -1
  169. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  170. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
  171. package/lib/commonjs/renderer/components/index.js.map +1 -1
  172. package/lib/commonjs/renderer/components/maskFilters/Blur.js +2 -2
  173. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  174. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
  175. package/lib/commonjs/renderer/components/paragraph/Paragraph.js +1 -1
  176. package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -1
  177. package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -1
  178. package/lib/commonjs/renderer/components/pathEffects/Corner.js +1 -1
  179. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  180. package/lib/commonjs/renderer/components/pathEffects/Dash.js +1 -1
  181. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  182. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +2 -2
  183. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  184. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +1 -1
  185. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  186. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +1 -1
  187. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  188. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +1 -1
  189. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  190. package/lib/commonjs/renderer/components/pathEffects/Sum.js +1 -1
  191. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  192. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
  193. package/lib/commonjs/renderer/components/shaders/Color.js +1 -1
  194. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  195. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +2 -2
  196. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  197. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +1 -1
  198. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  199. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +1 -1
  200. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  201. package/lib/commonjs/renderer/components/shaders/Shader.js +2 -2
  202. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  203. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
  204. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +1 -1
  205. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  206. package/lib/commonjs/renderer/components/shaders/Turbulence.js +2 -2
  207. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  208. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +1 -1
  209. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  210. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
  211. package/lib/commonjs/renderer/components/shapes/Atlas.js +1 -1
  212. package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -1
  213. package/lib/commonjs/renderer/components/shapes/Box.js +1 -1
  214. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  215. package/lib/commonjs/renderer/components/shapes/Circle.js +1 -1
  216. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  217. package/lib/commonjs/renderer/components/shapes/DiffRect.js +1 -1
  218. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  219. package/lib/commonjs/renderer/components/shapes/Fill.js +1 -1
  220. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  221. package/lib/commonjs/renderer/components/shapes/FitBox.js +1 -1
  222. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  223. package/lib/commonjs/renderer/components/shapes/Line.js +1 -1
  224. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  225. package/lib/commonjs/renderer/components/shapes/Oval.js +1 -1
  226. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  227. package/lib/commonjs/renderer/components/shapes/Patch.js +1 -1
  228. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  229. package/lib/commonjs/renderer/components/shapes/Path.js +2 -2
  230. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  231. package/lib/commonjs/renderer/components/shapes/Points.js +2 -2
  232. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  233. package/lib/commonjs/renderer/components/shapes/Rect.js +1 -1
  234. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  235. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +1 -1
  236. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  237. package/lib/commonjs/renderer/components/shapes/Vertices.js +2 -2
  238. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  239. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
  240. package/lib/commonjs/renderer/components/text/Glyphs.js +2 -2
  241. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  242. package/lib/commonjs/renderer/components/text/Text.js +2 -2
  243. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  244. package/lib/commonjs/renderer/components/text/TextBlob.js +2 -2
  245. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  246. package/lib/commonjs/renderer/components/text/TextPath.js +2 -2
  247. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  248. package/lib/commonjs/renderer/components/text/index.js.map +1 -1
  249. package/lib/commonjs/renderer/index.js.map +1 -1
  250. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  251. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
  252. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  253. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  254. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
  255. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  256. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  257. package/lib/commonjs/renderer/typeddash.js.map +1 -1
  258. package/lib/commonjs/skia/NativeSetup.js +1 -1
  259. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  260. package/lib/commonjs/skia/Skia.js.map +1 -1
  261. package/lib/commonjs/skia/Skia.web.js.map +1 -1
  262. package/lib/commonjs/skia/core/AnimatedImage.d.ts +1 -1
  263. package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -1
  264. package/lib/commonjs/skia/core/Data.d.ts +3 -3
  265. package/lib/commonjs/skia/core/Data.js.map +1 -1
  266. package/lib/commonjs/skia/core/Font.d.ts +1 -1
  267. package/lib/commonjs/skia/core/Font.js.map +1 -1
  268. package/lib/commonjs/skia/core/Image.d.ts +2 -3
  269. package/lib/commonjs/skia/core/Image.js.map +1 -1
  270. package/lib/commonjs/skia/core/Matrix.js.map +1 -1
  271. package/lib/commonjs/skia/core/Picture.d.ts +1 -1
  272. package/lib/commonjs/skia/core/Picture.js.map +1 -1
  273. package/lib/commonjs/skia/core/RRect.js.map +1 -1
  274. package/lib/commonjs/skia/core/Rect.js.map +1 -1
  275. package/lib/commonjs/skia/core/SVG.d.ts +1 -1
  276. package/lib/commonjs/skia/core/SVG.js.map +1 -1
  277. package/lib/commonjs/skia/core/SVG.web.d.ts +1 -1
  278. package/lib/commonjs/skia/core/SVG.web.js.map +1 -1
  279. package/lib/commonjs/skia/core/Typeface.d.ts +1 -1
  280. package/lib/commonjs/skia/core/Typeface.js.map +1 -1
  281. package/lib/commonjs/skia/core/Vector.js.map +1 -1
  282. package/lib/commonjs/skia/core/index.js.map +1 -1
  283. package/lib/commonjs/skia/index.js.map +1 -1
  284. package/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.d.ts +5 -0
  285. package/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.js.map +1 -1
  286. package/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.js.map +1 -1
  287. package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -1
  288. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  289. package/lib/commonjs/skia/types/Color.js.map +1 -1
  290. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  291. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -1
  292. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
  293. package/lib/commonjs/skia/types/ContourMeasure.js.map +1 -1
  294. package/lib/commonjs/skia/types/Data/Data.d.ts +1 -1
  295. package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
  296. package/lib/commonjs/skia/types/Data/DataFactory.js.map +1 -1
  297. package/lib/commonjs/skia/types/Data/index.js.map +1 -1
  298. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  299. package/lib/commonjs/skia/types/Font/FontMgr.js.map +1 -1
  300. package/lib/commonjs/skia/types/Font/FontMgrFactory.js.map +1 -1
  301. package/lib/commonjs/skia/types/Font/index.js.map +1 -1
  302. package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
  303. package/lib/commonjs/skia/types/Image/ImageFactory.d.ts +16 -16
  304. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  305. package/lib/commonjs/skia/types/Image/index.js.map +1 -1
  306. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  307. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  308. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
  309. package/lib/commonjs/skia/types/JsiInstance.js.map +1 -1
  310. package/lib/commonjs/skia/types/MaskFilter.d.ts +3 -3
  311. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
  312. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  313. package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
  314. package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -3
  315. package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
  316. package/lib/commonjs/skia/types/NativeBuffer/index.js.map +1 -1
  317. package/lib/commonjs/skia/types/Paint/BlendMode.d.ts +28 -28
  318. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
  319. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
  320. package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
  321. package/lib/commonjs/skia/types/Paragraph/Paragraph.js.map +1 -1
  322. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  323. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  324. package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -1
  325. package/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.js.map +1 -1
  326. package/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.js.map +1 -1
  327. package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -1
  328. package/lib/commonjs/skia/types/Path/Path.d.ts +4 -4
  329. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  330. package/lib/commonjs/skia/types/Path/PathFactory.js.map +1 -1
  331. package/lib/commonjs/skia/types/Path/index.js.map +1 -1
  332. package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
  333. package/lib/commonjs/skia/types/Picture/Picture.js.map +1 -1
  334. package/lib/commonjs/skia/types/Picture/PictureFactory.js.map +1 -1
  335. package/lib/commonjs/skia/types/Picture/PictureRecorder.js.map +1 -1
  336. package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
  337. package/lib/commonjs/skia/types/Point.js.map +1 -1
  338. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  339. package/lib/commonjs/skia/types/RSXform.js.map +1 -1
  340. package/lib/commonjs/skia/types/Rect.js.map +1 -1
  341. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
  342. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -1
  343. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
  344. package/lib/commonjs/skia/types/SVG/SVG.js.map +1 -1
  345. package/lib/commonjs/skia/types/SVG/SVGFactory.js.map +1 -1
  346. package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
  347. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  348. package/lib/commonjs/skia/types/Shader/ShaderFactory.js.map +1 -1
  349. package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
  350. package/lib/commonjs/skia/types/Size.js.map +1 -1
  351. package/lib/commonjs/skia/types/Skia.js.map +1 -1
  352. package/lib/commonjs/skia/types/Surface/Surface.js.map +1 -1
  353. package/lib/commonjs/skia/types/Surface/SurfaceFactory.js.map +1 -1
  354. package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
  355. package/lib/commonjs/skia/types/TextBlob.js.map +1 -1
  356. package/lib/commonjs/skia/types/Typeface/Typeface.js.map +1 -1
  357. package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js.map +1 -1
  358. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
  359. package/lib/commonjs/skia/types/Vertices/Vertices.d.ts +1 -1
  360. package/lib/commonjs/skia/types/Vertices/Vertices.js +1 -1
  361. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
  362. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
  363. package/lib/commonjs/skia/types/Video/Video.js.map +1 -1
  364. package/lib/commonjs/skia/types/Video/index.js.map +1 -1
  365. package/lib/commonjs/skia/types/index.js.map +1 -1
  366. package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js +2 -2
  367. package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -1
  368. package/lib/commonjs/skia/web/Host.js +2 -2
  369. package/lib/commonjs/skia/web/Host.js.map +1 -1
  370. package/lib/commonjs/skia/web/JsiSkAnimatedImage.d.ts +1 -0
  371. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +5 -2
  372. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -1
  373. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  374. package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +1 -1
  375. package/lib/commonjs/skia/web/JsiSkCanvas.js +2 -2
  376. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  377. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
  378. package/lib/commonjs/skia/web/JsiSkColorFilter.js +2 -2
  379. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
  380. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  381. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +2 -2
  382. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
  383. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +2 -2
  384. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  385. package/lib/commonjs/skia/web/JsiSkData.js +2 -2
  386. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
  387. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
  388. package/lib/commonjs/skia/web/JsiSkFont.js +2 -2
  389. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  390. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -1
  391. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  392. package/lib/commonjs/skia/web/JsiSkImage.js +2 -2
  393. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
  394. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  395. package/lib/commonjs/skia/web/JsiSkImageFilter.js +2 -2
  396. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
  397. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  398. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +2 -2
  399. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
  400. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  401. package/lib/commonjs/skia/web/JsiSkMatrix.js +2 -2
  402. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  403. package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +1 -1
  404. package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
  405. package/lib/commonjs/skia/web/JsiSkPaint.js +2 -2
  406. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  407. package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
  408. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  409. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  410. package/lib/commonjs/skia/web/JsiSkParagraphStyle.d.ts +1 -1
  411. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -1
  412. package/lib/commonjs/skia/web/JsiSkPath.js +2 -2
  413. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  414. package/lib/commonjs/skia/web/JsiSkPathEffect.js +2 -2
  415. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
  416. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  417. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
  418. package/lib/commonjs/skia/web/JsiSkPicture.js +2 -2
  419. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
  420. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
  421. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +2 -2
  422. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
  423. package/lib/commonjs/skia/web/JsiSkPoint.js +2 -2
  424. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
  425. package/lib/commonjs/skia/web/JsiSkRRect.js +2 -2
  426. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
  427. package/lib/commonjs/skia/web/JsiSkRSXform.js +2 -2
  428. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
  429. package/lib/commonjs/skia/web/JsiSkRect.js +2 -2
  430. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
  431. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +2 -2
  432. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  433. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  434. package/lib/commonjs/skia/web/JsiSkSVG.js +2 -2
  435. package/lib/commonjs/skia/web/JsiSkSVG.js.map +1 -1
  436. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
  437. package/lib/commonjs/skia/web/JsiSkShader.js +2 -2
  438. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
  439. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
  440. package/lib/commonjs/skia/web/JsiSkSurface.js +2 -2
  441. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
  442. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  443. package/lib/commonjs/skia/web/JsiSkTextBlob.js +2 -2
  444. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
  445. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  446. package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -1
  447. package/lib/commonjs/skia/web/JsiSkTypeface.js +2 -2
  448. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
  449. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  450. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +2 -2
  451. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  452. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  453. package/lib/commonjs/skia/web/JsiSkVertices.js +2 -2
  454. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
  455. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
  456. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  457. package/lib/commonjs/skia/web/JsiVideo.js +2 -2
  458. package/lib/commonjs/skia/web/JsiVideo.js.map +1 -1
  459. package/lib/commonjs/skia/web/index.js.map +1 -1
  460. package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -1
  461. package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -1
  462. package/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +0 -1
  463. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +1 -1
  464. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -1
  465. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.d.ts +0 -1
  466. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +1 -1
  467. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  468. package/lib/commonjs/views/SkiaBaseWebView.js +4 -4
  469. package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
  470. package/lib/commonjs/views/SkiaDomView.d.ts +0 -4
  471. package/lib/commonjs/views/SkiaDomView.js +4 -12
  472. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  473. package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
  474. package/lib/commonjs/views/SkiaJSDomView.js +4 -4
  475. package/lib/commonjs/views/SkiaJSDomView.js.map +1 -1
  476. package/lib/commonjs/views/SkiaJSDomView.web.js.map +1 -1
  477. package/lib/commonjs/views/SkiaPictureView.js +4 -4
  478. package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
  479. package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -1
  480. package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -1
  481. package/lib/commonjs/views/api.js.map +1 -1
  482. package/lib/commonjs/views/index.js.map +1 -1
  483. package/lib/commonjs/views/types.js.map +1 -1
  484. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  485. package/lib/commonjs/web/LoadSkiaWeb.js +1 -1
  486. package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
  487. package/lib/commonjs/web/WithSkiaWeb.js +1 -1
  488. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  489. package/lib/commonjs/web/index.js.map +1 -1
  490. package/lib/module/Platform/IPlatform.d.ts +0 -1
  491. package/lib/module/Platform/IPlatform.js.map +1 -1
  492. package/lib/module/Platform/Platform.js.map +1 -1
  493. package/lib/module/Platform/Platform.web.js +4 -0
  494. package/lib/module/Platform/Platform.web.js.map +1 -1
  495. package/lib/module/Platform/index.js.map +1 -1
  496. package/lib/module/animation/functions/index.js.map +1 -1
  497. package/lib/module/animation/functions/interpolate.js.map +1 -1
  498. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  499. package/lib/module/animation/functions/interpolatePaths.js.map +1 -1
  500. package/lib/module/animation/functions/interpolateVector.js.map +1 -1
  501. package/lib/module/animation/index.js.map +1 -1
  502. package/lib/module/dom/nodes/DrawingNode.js +2 -2
  503. package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
  504. package/lib/module/dom/nodes/GroupNode.js.map +1 -1
  505. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  506. package/lib/module/dom/nodes/LayerNode.js.map +1 -1
  507. package/lib/module/dom/nodes/Node.js +2 -2
  508. package/lib/module/dom/nodes/Node.js.map +1 -1
  509. package/lib/module/dom/nodes/PaintNode.js.map +1 -1
  510. package/lib/module/dom/nodes/RenderNode.js +2 -2
  511. package/lib/module/dom/nodes/RenderNode.js.map +1 -1
  512. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  513. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -1
  514. package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -1
  515. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
  516. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
  517. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
  518. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  519. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -1
  520. package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
  521. package/lib/module/dom/nodes/drawings/AtlasNode.js.map +1 -1
  522. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  523. package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
  524. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
  525. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  526. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
  527. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
  528. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
  529. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
  530. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
  531. package/lib/module/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  532. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
  533. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
  534. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
  535. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
  536. package/lib/module/dom/nodes/drawings/RRectNode.js +2 -2
  537. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
  538. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
  539. package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
  540. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
  541. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  542. package/lib/module/dom/nodes/index.js.map +1 -1
  543. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -1
  544. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
  545. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
  546. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
  547. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
  548. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
  549. package/lib/module/dom/nodes/paint/index.js.map +1 -1
  550. package/lib/module/dom/types/ColorFilters.js.map +1 -1
  551. package/lib/module/dom/types/Common.js.map +1 -1
  552. package/lib/module/dom/types/DeclarationContext.js +2 -2
  553. package/lib/module/dom/types/DeclarationContext.js.map +1 -1
  554. package/lib/module/dom/types/DrawingContext.js +2 -2
  555. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  556. package/lib/module/dom/types/Drawings.js.map +1 -1
  557. package/lib/module/dom/types/ImageFilters.js.map +1 -1
  558. package/lib/module/dom/types/MaskFilters.js.map +1 -1
  559. package/lib/module/dom/types/Node.js.map +1 -1
  560. package/lib/module/dom/types/NodeType.js.map +1 -1
  561. package/lib/module/dom/types/Paragraph.js.map +1 -1
  562. package/lib/module/dom/types/PathEffects.js.map +1 -1
  563. package/lib/module/dom/types/Shaders.js.map +1 -1
  564. package/lib/module/dom/types/SkDOM.js.map +1 -1
  565. package/lib/module/dom/types/index.js.map +1 -1
  566. package/lib/module/external/ModuleProxy.js.map +1 -1
  567. package/lib/module/external/index.js.map +1 -1
  568. package/lib/module/external/reanimated/ReanimatedProxy.js.map +1 -1
  569. package/lib/module/external/reanimated/buffers.d.ts +4 -4
  570. package/lib/module/external/reanimated/buffers.js.map +1 -1
  571. package/lib/module/external/reanimated/index.js.map +1 -1
  572. package/lib/module/external/reanimated/interpolators.js.map +1 -1
  573. package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
  574. package/lib/module/external/reanimated/textures.js.map +1 -1
  575. package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
  576. package/lib/module/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  577. package/lib/module/external/reanimated/useVideo.js.map +1 -1
  578. package/lib/module/external/reanimated/useVideoLoading.js.map +1 -1
  579. package/lib/module/external/reanimated/useVideoLoading.web.js.map +1 -1
  580. package/lib/module/headless/index.js.map +1 -1
  581. package/lib/module/index.js.map +1 -1
  582. package/lib/module/mock/index.js +4 -0
  583. package/lib/module/mock/index.js.map +1 -1
  584. package/lib/module/renderer/Canvas.d.ts +2 -2
  585. package/lib/module/renderer/Canvas.js +1 -1
  586. package/lib/module/renderer/Canvas.js.map +1 -1
  587. package/lib/module/renderer/Container.d.ts +1 -0
  588. package/lib/module/renderer/Container.js +3 -2
  589. package/lib/module/renderer/Container.js.map +1 -1
  590. package/lib/module/renderer/DrawingContext.js.map +1 -1
  591. package/lib/module/renderer/HostComponents.js.map +1 -1
  592. package/lib/module/renderer/HostConfig.d.ts +0 -1
  593. package/lib/module/renderer/HostConfig.js +7 -3
  594. package/lib/module/renderer/HostConfig.js.map +1 -1
  595. package/lib/module/renderer/Offscreen.js.map +1 -1
  596. package/lib/module/renderer/Reconciler.js +3 -2
  597. package/lib/module/renderer/Reconciler.js.map +1 -1
  598. package/lib/module/renderer/components/Blend.js.map +1 -1
  599. package/lib/module/renderer/components/Group.js +2 -2
  600. package/lib/module/renderer/components/Group.js.map +1 -1
  601. package/lib/module/renderer/components/Mask.js.map +1 -1
  602. package/lib/module/renderer/components/Paint.js.map +1 -1
  603. package/lib/module/renderer/components/Picture.js.map +1 -1
  604. package/lib/module/renderer/components/backdrop/BackdropBlur.js +1 -1
  605. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  606. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  607. package/lib/module/renderer/components/backdrop/index.js.map +1 -1
  608. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  609. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  610. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  611. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  612. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  613. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  614. package/lib/module/renderer/components/colorFilters/index.js.map +1 -1
  615. package/lib/module/renderer/components/image/Image.js.map +1 -1
  616. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  617. package/lib/module/renderer/components/image/ImageShader.js +1 -1
  618. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  619. package/lib/module/renderer/components/image/index.js.map +1 -1
  620. package/lib/module/renderer/components/imageFilters/Blur.js +1 -1
  621. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  622. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  623. package/lib/module/renderer/components/imageFilters/Morphology.js +1 -1
  624. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  625. package/lib/module/renderer/components/imageFilters/Offset.js +1 -1
  626. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  627. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  628. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  629. package/lib/module/renderer/components/imageFilters/index.js.map +1 -1
  630. package/lib/module/renderer/components/index.js.map +1 -1
  631. package/lib/module/renderer/components/maskFilters/Blur.js +1 -1
  632. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  633. package/lib/module/renderer/components/maskFilters/index.js.map +1 -1
  634. package/lib/module/renderer/components/paragraph/Paragraph.js.map +1 -1
  635. package/lib/module/renderer/components/paragraph/index.js.map +1 -1
  636. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  637. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  638. package/lib/module/renderer/components/pathEffects/Discrete.js +1 -1
  639. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  640. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  641. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  642. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  643. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  644. package/lib/module/renderer/components/pathEffects/index.js.map +1 -1
  645. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  646. package/lib/module/renderer/components/shaders/FractalNoise.js +1 -1
  647. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  648. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  649. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  650. package/lib/module/renderer/components/shaders/Shader.js +1 -1
  651. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  652. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -1
  653. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  654. package/lib/module/renderer/components/shaders/Turbulence.js +1 -1
  655. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  656. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  657. package/lib/module/renderer/components/shaders/index.js.map +1 -1
  658. package/lib/module/renderer/components/shapes/Atlas.js.map +1 -1
  659. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  660. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  661. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  662. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  663. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  664. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  665. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  666. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  667. package/lib/module/renderer/components/shapes/Path.js +1 -1
  668. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  669. package/lib/module/renderer/components/shapes/Points.js +1 -1
  670. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  671. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  672. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  673. package/lib/module/renderer/components/shapes/Vertices.js +1 -1
  674. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  675. package/lib/module/renderer/components/shapes/index.js.map +1 -1
  676. package/lib/module/renderer/components/text/Glyphs.js +1 -1
  677. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  678. package/lib/module/renderer/components/text/Text.js +1 -1
  679. package/lib/module/renderer/components/text/Text.js.map +1 -1
  680. package/lib/module/renderer/components/text/TextBlob.js +1 -1
  681. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  682. package/lib/module/renderer/components/text/TextPath.js +1 -1
  683. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  684. package/lib/module/renderer/components/text/index.js.map +1 -1
  685. package/lib/module/renderer/index.js.map +1 -1
  686. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  687. package/lib/module/renderer/processors/Animations/index.js.map +1 -1
  688. package/lib/module/renderer/processors/index.js.map +1 -1
  689. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  690. package/lib/module/renderer/processors/math/Math.js.map +1 -1
  691. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  692. package/lib/module/renderer/processors/math/index.js.map +1 -1
  693. package/lib/module/renderer/typeddash.js.map +1 -1
  694. package/lib/module/skia/NativeSetup.js.map +1 -1
  695. package/lib/module/skia/Skia.js.map +1 -1
  696. package/lib/module/skia/Skia.web.js.map +1 -1
  697. package/lib/module/skia/core/AnimatedImage.d.ts +1 -1
  698. package/lib/module/skia/core/AnimatedImage.js.map +1 -1
  699. package/lib/module/skia/core/Data.d.ts +3 -3
  700. package/lib/module/skia/core/Data.js.map +1 -1
  701. package/lib/module/skia/core/Font.d.ts +1 -1
  702. package/lib/module/skia/core/Font.js.map +1 -1
  703. package/lib/module/skia/core/Image.d.ts +2 -3
  704. package/lib/module/skia/core/Image.js.map +1 -1
  705. package/lib/module/skia/core/Matrix.js.map +1 -1
  706. package/lib/module/skia/core/Picture.d.ts +1 -1
  707. package/lib/module/skia/core/Picture.js.map +1 -1
  708. package/lib/module/skia/core/RRect.js.map +1 -1
  709. package/lib/module/skia/core/Rect.js.map +1 -1
  710. package/lib/module/skia/core/SVG.d.ts +1 -1
  711. package/lib/module/skia/core/SVG.js.map +1 -1
  712. package/lib/module/skia/core/SVG.web.d.ts +1 -1
  713. package/lib/module/skia/core/SVG.web.js.map +1 -1
  714. package/lib/module/skia/core/Typeface.d.ts +1 -1
  715. package/lib/module/skia/core/Typeface.js.map +1 -1
  716. package/lib/module/skia/core/Vector.js.map +1 -1
  717. package/lib/module/skia/core/index.js.map +1 -1
  718. package/lib/module/skia/index.js.map +1 -1
  719. package/lib/module/skia/types/AnimatedImage/AnimatedImage.d.ts +5 -0
  720. package/lib/module/skia/types/AnimatedImage/AnimatedImage.js.map +1 -1
  721. package/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.js.map +1 -1
  722. package/lib/module/skia/types/AnimatedImage/index.js.map +1 -1
  723. package/lib/module/skia/types/Canvas.js.map +1 -1
  724. package/lib/module/skia/types/Color.js.map +1 -1
  725. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  726. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -1
  727. package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
  728. package/lib/module/skia/types/ContourMeasure.js.map +1 -1
  729. package/lib/module/skia/types/Data/Data.d.ts +1 -1
  730. package/lib/module/skia/types/Data/Data.js.map +1 -1
  731. package/lib/module/skia/types/Data/DataFactory.js.map +1 -1
  732. package/lib/module/skia/types/Data/index.js.map +1 -1
  733. package/lib/module/skia/types/Font/Font.js.map +1 -1
  734. package/lib/module/skia/types/Font/FontMgr.js.map +1 -1
  735. package/lib/module/skia/types/Font/FontMgrFactory.js.map +1 -1
  736. package/lib/module/skia/types/Font/index.js.map +1 -1
  737. package/lib/module/skia/types/Image/Image.js.map +1 -1
  738. package/lib/module/skia/types/Image/ImageFactory.d.ts +16 -16
  739. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  740. package/lib/module/skia/types/Image/index.js.map +1 -1
  741. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  742. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  743. package/lib/module/skia/types/ImageFilter/index.js.map +1 -1
  744. package/lib/module/skia/types/JsiInstance.js.map +1 -1
  745. package/lib/module/skia/types/MaskFilter.d.ts +3 -3
  746. package/lib/module/skia/types/MaskFilter.js.map +1 -1
  747. package/lib/module/skia/types/Matrix.js.map +1 -1
  748. package/lib/module/skia/types/Matrix4.js.map +1 -1
  749. package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -3
  750. package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -1
  751. package/lib/module/skia/types/NativeBuffer/index.js.map +1 -1
  752. package/lib/module/skia/types/Paint/BlendMode.d.ts +28 -28
  753. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
  754. package/lib/module/skia/types/Paint/Paint.js.map +1 -1
  755. package/lib/module/skia/types/Paint/index.js.map +1 -1
  756. package/lib/module/skia/types/Paragraph/Paragraph.js.map +1 -1
  757. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  758. package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  759. package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -1
  760. package/lib/module/skia/types/Paragraph/TypefaceFontProvider.js.map +1 -1
  761. package/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.js.map +1 -1
  762. package/lib/module/skia/types/Paragraph/index.js.map +1 -1
  763. package/lib/module/skia/types/Path/Path.d.ts +4 -4
  764. package/lib/module/skia/types/Path/Path.js.map +1 -1
  765. package/lib/module/skia/types/Path/PathFactory.js.map +1 -1
  766. package/lib/module/skia/types/Path/index.js.map +1 -1
  767. package/lib/module/skia/types/PathEffect.js.map +1 -1
  768. package/lib/module/skia/types/Picture/Picture.js.map +1 -1
  769. package/lib/module/skia/types/Picture/PictureFactory.js.map +1 -1
  770. package/lib/module/skia/types/Picture/PictureRecorder.js.map +1 -1
  771. package/lib/module/skia/types/Picture/index.js.map +1 -1
  772. package/lib/module/skia/types/Point.js.map +1 -1
  773. package/lib/module/skia/types/RRect.js.map +1 -1
  774. package/lib/module/skia/types/RSXform.js.map +1 -1
  775. package/lib/module/skia/types/Rect.js.map +1 -1
  776. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
  777. package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -1
  778. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
  779. package/lib/module/skia/types/SVG/SVG.js.map +1 -1
  780. package/lib/module/skia/types/SVG/SVGFactory.js.map +1 -1
  781. package/lib/module/skia/types/SVG/index.js.map +1 -1
  782. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  783. package/lib/module/skia/types/Shader/ShaderFactory.js.map +1 -1
  784. package/lib/module/skia/types/Shader/index.js.map +1 -1
  785. package/lib/module/skia/types/Size.js.map +1 -1
  786. package/lib/module/skia/types/Skia.js.map +1 -1
  787. package/lib/module/skia/types/Surface/Surface.js.map +1 -1
  788. package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -1
  789. package/lib/module/skia/types/Surface/index.js.map +1 -1
  790. package/lib/module/skia/types/TextBlob.js.map +1 -1
  791. package/lib/module/skia/types/Typeface/Typeface.js.map +1 -1
  792. package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -1
  793. package/lib/module/skia/types/Typeface/index.js.map +1 -1
  794. package/lib/module/skia/types/Vertices/Vertices.d.ts +1 -1
  795. package/lib/module/skia/types/Vertices/Vertices.js +1 -1
  796. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -1
  797. package/lib/module/skia/types/Vertices/index.js.map +1 -1
  798. package/lib/module/skia/types/Video/Video.js.map +1 -1
  799. package/lib/module/skia/types/Video/index.js.map +1 -1
  800. package/lib/module/skia/types/index.js.map +1 -1
  801. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js +2 -2
  802. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -1
  803. package/lib/module/skia/web/Host.js +2 -2
  804. package/lib/module/skia/web/Host.js.map +1 -1
  805. package/lib/module/skia/web/JsiSkAnimatedImage.d.ts +1 -0
  806. package/lib/module/skia/web/JsiSkAnimatedImage.js +5 -2
  807. package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
  808. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  809. package/lib/module/skia/web/JsiSkCanvas.d.ts +1 -1
  810. package/lib/module/skia/web/JsiSkCanvas.js +2 -2
  811. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  812. package/lib/module/skia/web/JsiSkColor.js.map +1 -1
  813. package/lib/module/skia/web/JsiSkColorFilter.js +2 -2
  814. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  815. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  816. package/lib/module/skia/web/JsiSkContourMeasure.js +2 -2
  817. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  818. package/lib/module/skia/web/JsiSkContourMeasureIter.js +2 -2
  819. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  820. package/lib/module/skia/web/JsiSkData.js +2 -2
  821. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  822. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
  823. package/lib/module/skia/web/JsiSkFont.js +2 -2
  824. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  825. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -1
  826. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  827. package/lib/module/skia/web/JsiSkImage.js +2 -2
  828. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  829. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  830. package/lib/module/skia/web/JsiSkImageFilter.js +2 -2
  831. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  832. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  833. package/lib/module/skia/web/JsiSkMaskFilter.js +2 -2
  834. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  835. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  836. package/lib/module/skia/web/JsiSkMatrix.js +2 -2
  837. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  838. package/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +1 -1
  839. package/lib/module/skia/web/JsiSkNativeBufferFactory.js.map +1 -1
  840. package/lib/module/skia/web/JsiSkPaint.js +2 -2
  841. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  842. package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
  843. package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  844. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  845. package/lib/module/skia/web/JsiSkParagraphStyle.d.ts +1 -1
  846. package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
  847. package/lib/module/skia/web/JsiSkPath.js +2 -2
  848. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  849. package/lib/module/skia/web/JsiSkPathEffect.js +2 -2
  850. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  851. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  852. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
  853. package/lib/module/skia/web/JsiSkPicture.js +2 -2
  854. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  855. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
  856. package/lib/module/skia/web/JsiSkPictureRecorder.js +2 -2
  857. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  858. package/lib/module/skia/web/JsiSkPoint.js +2 -2
  859. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  860. package/lib/module/skia/web/JsiSkRRect.js +2 -2
  861. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  862. package/lib/module/skia/web/JsiSkRSXform.js +2 -2
  863. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  864. package/lib/module/skia/web/JsiSkRect.js +2 -2
  865. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  866. package/lib/module/skia/web/JsiSkRuntimeEffect.js +2 -2
  867. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  868. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  869. package/lib/module/skia/web/JsiSkSVG.js +2 -2
  870. package/lib/module/skia/web/JsiSkSVG.js.map +1 -1
  871. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
  872. package/lib/module/skia/web/JsiSkShader.js +2 -2
  873. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  874. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
  875. package/lib/module/skia/web/JsiSkSurface.js +2 -2
  876. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  877. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  878. package/lib/module/skia/web/JsiSkTextBlob.js +2 -2
  879. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  880. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  881. package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -1
  882. package/lib/module/skia/web/JsiSkTypeface.js +2 -2
  883. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  884. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  885. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +2 -2
  886. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  887. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  888. package/lib/module/skia/web/JsiSkVertices.js +2 -2
  889. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  890. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
  891. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  892. package/lib/module/skia/web/JsiVideo.js +2 -2
  893. package/lib/module/skia/web/JsiVideo.js.map +1 -1
  894. package/lib/module/skia/web/index.js.map +1 -1
  895. package/lib/module/specs/NativeSkiaModule.js.map +1 -1
  896. package/lib/module/specs/NativeSkiaModule.web.js.map +1 -1
  897. package/lib/module/specs/SkiaDomViewNativeComponent.d.ts +0 -1
  898. package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -1
  899. package/lib/module/specs/SkiaPictureViewNativeComponent.d.ts +0 -1
  900. package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  901. package/lib/module/views/SkiaBaseWebView.js +3 -3
  902. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  903. package/lib/module/views/SkiaDomView.d.ts +0 -4
  904. package/lib/module/views/SkiaDomView.js +3 -11
  905. package/lib/module/views/SkiaDomView.js.map +1 -1
  906. package/lib/module/views/SkiaDomView.web.js.map +1 -1
  907. package/lib/module/views/SkiaJSDomView.js +3 -3
  908. package/lib/module/views/SkiaJSDomView.js.map +1 -1
  909. package/lib/module/views/SkiaJSDomView.web.js.map +1 -1
  910. package/lib/module/views/SkiaPictureView.js +3 -3
  911. package/lib/module/views/SkiaPictureView.js.map +1 -1
  912. package/lib/module/views/SkiaPictureView.web.js.map +1 -1
  913. package/lib/module/views/SkiaViewNativeId.js.map +1 -1
  914. package/lib/module/views/api.js.map +1 -1
  915. package/lib/module/views/index.js.map +1 -1
  916. package/lib/module/views/types.js.map +1 -1
  917. package/lib/module/views/useTouchHandler.js.map +1 -1
  918. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  919. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  920. package/lib/module/web/index.js.map +1 -1
  921. package/lib/typescript/jest.config.d.ts +2 -0
  922. package/lib/typescript/lib/commonjs/Platform/IPlatform.d.ts +1 -0
  923. package/lib/typescript/lib/commonjs/Platform/Platform.d.ts +9 -0
  924. package/lib/typescript/lib/commonjs/Platform/Platform.web.d.ts +14 -0
  925. package/lib/typescript/lib/commonjs/Platform/index.d.ts +1 -0
  926. package/lib/typescript/lib/commonjs/animation/functions/index.d.ts +1 -0
  927. package/lib/typescript/lib/commonjs/animation/functions/interpolate.d.ts +7 -0
  928. package/lib/typescript/lib/commonjs/animation/functions/interpolateColors.d.ts +3 -0
  929. package/lib/typescript/lib/commonjs/animation/functions/interpolatePaths.d.ts +18 -0
  930. package/lib/typescript/lib/commonjs/animation/functions/interpolateVector.d.ts +9 -0
  931. package/lib/typescript/lib/commonjs/animation/index.d.ts +1 -0
  932. package/lib/typescript/lib/commonjs/dom/nodes/DrawingNode.d.ts +6 -0
  933. package/lib/typescript/lib/commonjs/dom/nodes/GroupNode.d.ts +6 -0
  934. package/lib/typescript/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +70 -0
  935. package/lib/typescript/lib/commonjs/dom/nodes/LayerNode.d.ts +6 -0
  936. package/lib/typescript/lib/commonjs/dom/nodes/Node.d.ts +20 -0
  937. package/lib/typescript/lib/commonjs/dom/nodes/PaintNode.d.ts +6 -0
  938. package/lib/typescript/lib/commonjs/dom/nodes/RenderNode.d.ts +16 -0
  939. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Circle.d.ts +3 -0
  940. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Enum.d.ts +2 -0
  941. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Fitting.d.ts +45 -0
  942. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Gradient.d.ts +16 -0
  943. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Path.d.ts +3 -0
  944. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Radius.d.ts +2 -0
  945. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Rect.d.ts +4 -0
  946. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/Transform.d.ts +2 -0
  947. package/lib/typescript/lib/commonjs/dom/nodes/datatypes/index.d.ts +1 -0
  948. package/lib/typescript/lib/commonjs/dom/nodes/drawings/AtlasNode.d.ts +10 -0
  949. package/lib/typescript/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.d.ts +10 -0
  950. package/lib/typescript/lib/commonjs/dom/nodes/drawings/Box.d.ts +15 -0
  951. package/lib/typescript/lib/commonjs/dom/nodes/drawings/CircleNode.d.ts +10 -0
  952. package/lib/typescript/lib/commonjs/dom/nodes/drawings/DiffRectNode.d.ts +10 -0
  953. package/lib/typescript/lib/commonjs/dom/nodes/drawings/FillNode.d.ts +10 -0
  954. package/lib/typescript/lib/commonjs/dom/nodes/drawings/ImageNode.d.ts +13 -0
  955. package/lib/typescript/lib/commonjs/dom/nodes/drawings/ImageSVG.d.ts +9 -0
  956. package/lib/typescript/lib/commonjs/dom/nodes/drawings/LineNode.d.ts +10 -0
  957. package/lib/typescript/lib/commonjs/dom/nodes/drawings/OvalNode.d.ts +10 -0
  958. package/lib/typescript/lib/commonjs/dom/nodes/drawings/ParagraphNode.d.ts +9 -0
  959. package/lib/typescript/lib/commonjs/dom/nodes/drawings/PatchNode.d.ts +14 -0
  960. package/lib/typescript/lib/commonjs/dom/nodes/drawings/PathNode.d.ts +10 -0
  961. package/lib/typescript/lib/commonjs/dom/nodes/drawings/PictureNode.d.ts +9 -0
  962. package/lib/typescript/lib/commonjs/dom/nodes/drawings/PointsNode.d.ts +10 -0
  963. package/lib/typescript/lib/commonjs/dom/nodes/drawings/RRectNode.d.ts +10 -0
  964. package/lib/typescript/lib/commonjs/dom/nodes/drawings/RectNode.d.ts +10 -0
  965. package/lib/typescript/lib/commonjs/dom/nodes/drawings/Text.d.ts +34 -0
  966. package/lib/typescript/lib/commonjs/dom/nodes/drawings/VerticesNode.d.ts +10 -0
  967. package/lib/typescript/lib/commonjs/dom/nodes/drawings/index.d.ts +1 -0
  968. package/lib/typescript/lib/commonjs/dom/nodes/index.d.ts +1 -0
  969. package/lib/typescript/lib/commonjs/dom/nodes/paint/BlendNode.d.ts +6 -0
  970. package/lib/typescript/lib/commonjs/dom/nodes/paint/ColorFilters.d.ts +29 -0
  971. package/lib/typescript/lib/commonjs/dom/nodes/paint/ImageFilters.d.ts +35 -0
  972. package/lib/typescript/lib/commonjs/dom/nodes/paint/MaskFilters.d.ts +6 -0
  973. package/lib/typescript/lib/commonjs/dom/nodes/paint/PathEffects.d.ts +34 -0
  974. package/lib/typescript/lib/commonjs/dom/nodes/paint/Shaders.d.ts +40 -0
  975. package/lib/typescript/lib/commonjs/dom/nodes/paint/index.d.ts +1 -0
  976. package/lib/typescript/lib/commonjs/dom/types/ColorFilters.d.ts +1 -0
  977. package/lib/typescript/lib/commonjs/dom/types/Common.d.ts +1 -0
  978. package/lib/typescript/lib/commonjs/dom/types/DeclarationContext.d.ts +26 -0
  979. package/lib/typescript/lib/commonjs/dom/types/DrawingContext.d.ts +13 -0
  980. package/lib/typescript/lib/commonjs/dom/types/Drawings.d.ts +1 -0
  981. package/lib/typescript/lib/commonjs/dom/types/ImageFilters.d.ts +1 -0
  982. package/lib/typescript/lib/commonjs/dom/types/MaskFilters.d.ts +1 -0
  983. package/lib/typescript/lib/commonjs/dom/types/Node.d.ts +1 -0
  984. package/lib/typescript/lib/commonjs/dom/types/NodeType.d.ts +2 -0
  985. package/lib/typescript/lib/commonjs/dom/types/Paragraph.d.ts +1 -0
  986. package/lib/typescript/lib/commonjs/dom/types/PathEffects.d.ts +1 -0
  987. package/lib/typescript/lib/commonjs/dom/types/Shaders.d.ts +1 -0
  988. package/lib/typescript/lib/commonjs/dom/types/SkDOM.d.ts +1 -0
  989. package/lib/typescript/lib/commonjs/dom/types/index.d.ts +1 -0
  990. package/lib/typescript/lib/commonjs/external/ModuleProxy.d.ts +11 -0
  991. package/lib/typescript/lib/commonjs/external/index.d.ts +1 -0
  992. package/lib/typescript/lib/commonjs/external/reanimated/ReanimatedProxy.d.ts +5 -0
  993. package/lib/typescript/lib/commonjs/external/reanimated/buffers.d.ts +5 -0
  994. package/lib/typescript/lib/commonjs/external/reanimated/index.d.ts +1 -0
  995. package/lib/typescript/lib/commonjs/external/reanimated/interpolators.d.ts +6 -0
  996. package/lib/typescript/lib/commonjs/external/reanimated/renderHelpers.d.ts +4 -0
  997. package/lib/typescript/lib/commonjs/external/reanimated/textures.d.ts +6 -0
  998. package/lib/typescript/lib/commonjs/external/reanimated/useAnimatedImageValue.d.ts +2 -0
  999. package/lib/typescript/lib/commonjs/external/reanimated/useDerivedValueOnJS.d.ts +2 -0
  1000. package/lib/typescript/lib/commonjs/external/reanimated/useVideo.d.ts +9 -0
  1001. package/lib/typescript/lib/commonjs/external/reanimated/useVideoLoading.d.ts +2 -0
  1002. package/lib/typescript/lib/commonjs/external/reanimated/useVideoLoading.web.d.ts +2 -0
  1003. package/lib/typescript/lib/commonjs/headless/index.d.ts +6 -0
  1004. package/lib/typescript/lib/commonjs/index.d.ts +3 -0
  1005. package/lib/typescript/lib/commonjs/mock/index.d.ts +64 -0
  1006. package/lib/typescript/lib/commonjs/renderer/Canvas.d.ts +3 -0
  1007. package/lib/typescript/lib/commonjs/renderer/Container.d.ts +10 -0
  1008. package/lib/typescript/lib/commonjs/renderer/DrawingContext.d.ts +1 -0
  1009. package/lib/typescript/lib/commonjs/renderer/HostComponents.d.ts +3 -0
  1010. package/lib/typescript/lib/commonjs/renderer/HostConfig.d.ts +38 -0
  1011. package/lib/typescript/lib/commonjs/renderer/Offscreen.d.ts +5 -0
  1012. package/lib/typescript/lib/commonjs/renderer/Reconciler.d.ts +10 -0
  1013. package/lib/typescript/lib/commonjs/renderer/components/Blend.d.ts +2 -0
  1014. package/lib/typescript/lib/commonjs/renderer/components/Group.d.ts +5 -0
  1015. package/lib/typescript/lib/commonjs/renderer/components/Mask.d.ts +7 -0
  1016. package/lib/typescript/lib/commonjs/renderer/components/Paint.d.ts +2 -0
  1017. package/lib/typescript/lib/commonjs/renderer/components/Picture.d.ts +2 -0
  1018. package/lib/typescript/lib/commonjs/renderer/components/backdrop/BackdropBlur.d.ts +6 -0
  1019. package/lib/typescript/lib/commonjs/renderer/components/backdrop/BackdropFilter.d.ts +6 -0
  1020. package/lib/typescript/lib/commonjs/renderer/components/backdrop/index.d.ts +1 -0
  1021. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/BlendColor.d.ts +2 -0
  1022. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/Lerp.d.ts +2 -0
  1023. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +2 -0
  1024. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.d.ts +2 -0
  1025. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/Matrix.d.ts +3 -0
  1026. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +2 -0
  1027. package/lib/typescript/lib/commonjs/renderer/components/colorFilters/index.d.ts +1 -0
  1028. package/lib/typescript/lib/commonjs/renderer/components/image/Image.d.ts +2 -0
  1029. package/lib/typescript/lib/commonjs/renderer/components/image/ImageSVG.d.ts +2 -0
  1030. package/lib/typescript/lib/commonjs/renderer/components/image/ImageShader.d.ts +10 -0
  1031. package/lib/typescript/lib/commonjs/renderer/components/image/index.d.ts +1 -0
  1032. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Blur.d.ts +5 -0
  1033. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/DisplacementMap.d.ts +2 -0
  1034. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Morphology.d.ts +5 -0
  1035. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Offset.d.ts +6 -0
  1036. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/RuntimeShader.d.ts +2 -0
  1037. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/Shadow.d.ts +2 -0
  1038. package/lib/typescript/lib/commonjs/renderer/components/imageFilters/index.d.ts +1 -0
  1039. package/lib/typescript/lib/commonjs/renderer/components/index.d.ts +1 -0
  1040. package/lib/typescript/lib/commonjs/renderer/components/maskFilters/Blur.d.ts +6 -0
  1041. package/lib/typescript/lib/commonjs/renderer/components/maskFilters/index.d.ts +1 -0
  1042. package/lib/typescript/lib/commonjs/renderer/components/paragraph/Paragraph.d.ts +2 -0
  1043. package/lib/typescript/lib/commonjs/renderer/components/paragraph/index.d.ts +1 -0
  1044. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Corner.d.ts +2 -0
  1045. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Dash.d.ts +2 -0
  1046. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Discrete.d.ts +5 -0
  1047. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Line2D.d.ts +2 -0
  1048. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Path1D.d.ts +2 -0
  1049. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Path2D.d.ts +2 -0
  1050. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/Sum.d.ts +2 -0
  1051. package/lib/typescript/lib/commonjs/renderer/components/pathEffects/index.d.ts +1 -0
  1052. package/lib/typescript/lib/commonjs/renderer/components/shaders/Color.d.ts +2 -0
  1053. package/lib/typescript/lib/commonjs/renderer/components/shaders/FractalNoise.d.ts +7 -0
  1054. package/lib/typescript/lib/commonjs/renderer/components/shaders/LinearGradient.d.ts +2 -0
  1055. package/lib/typescript/lib/commonjs/renderer/components/shaders/RadialGradient.d.ts +2 -0
  1056. package/lib/typescript/lib/commonjs/renderer/components/shaders/Shader.d.ts +5 -0
  1057. package/lib/typescript/lib/commonjs/renderer/components/shaders/ShaderLib.d.ts +8 -0
  1058. package/lib/typescript/lib/commonjs/renderer/components/shaders/SweepGradient.d.ts +2 -0
  1059. package/lib/typescript/lib/commonjs/renderer/components/shaders/Turbulence.d.ts +7 -0
  1060. package/lib/typescript/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -0
  1061. package/lib/typescript/lib/commonjs/renderer/components/shaders/index.d.ts +1 -0
  1062. package/lib/typescript/lib/commonjs/renderer/components/shapes/Atlas.d.ts +2 -0
  1063. package/lib/typescript/lib/commonjs/renderer/components/shapes/Box.d.ts +3 -0
  1064. package/lib/typescript/lib/commonjs/renderer/components/shapes/Circle.d.ts +2 -0
  1065. package/lib/typescript/lib/commonjs/renderer/components/shapes/DiffRect.d.ts +2 -0
  1066. package/lib/typescript/lib/commonjs/renderer/components/shapes/Fill.d.ts +2 -0
  1067. package/lib/typescript/lib/commonjs/renderer/components/shapes/FitBox.d.ts +8 -0
  1068. package/lib/typescript/lib/commonjs/renderer/components/shapes/Line.d.ts +2 -0
  1069. package/lib/typescript/lib/commonjs/renderer/components/shapes/Oval.d.ts +2 -0
  1070. package/lib/typescript/lib/commonjs/renderer/components/shapes/Patch.d.ts +2 -0
  1071. package/lib/typescript/lib/commonjs/renderer/components/shapes/Path.d.ts +6 -0
  1072. package/lib/typescript/lib/commonjs/renderer/components/shapes/Points.d.ts +5 -0
  1073. package/lib/typescript/lib/commonjs/renderer/components/shapes/Rect.d.ts +2 -0
  1074. package/lib/typescript/lib/commonjs/renderer/components/shapes/RoundedRect.d.ts +2 -0
  1075. package/lib/typescript/lib/commonjs/renderer/components/shapes/Vertices.d.ts +5 -0
  1076. package/lib/typescript/lib/commonjs/renderer/components/shapes/index.d.ts +1 -0
  1077. package/lib/typescript/lib/commonjs/renderer/components/text/Glyphs.d.ts +6 -0
  1078. package/lib/typescript/lib/commonjs/renderer/components/text/Text.d.ts +6 -0
  1079. package/lib/typescript/lib/commonjs/renderer/components/text/TextBlob.d.ts +6 -0
  1080. package/lib/typescript/lib/commonjs/renderer/components/text/TextPath.d.ts +5 -0
  1081. package/lib/typescript/lib/commonjs/renderer/components/text/index.d.ts +1 -0
  1082. package/lib/typescript/lib/commonjs/renderer/index.d.ts +1 -0
  1083. package/lib/typescript/lib/commonjs/renderer/processors/Animations/Animations.d.ts +0 -0
  1084. package/lib/typescript/lib/commonjs/renderer/processors/Animations/index.d.ts +1 -0
  1085. package/lib/typescript/lib/commonjs/renderer/processors/index.d.ts +1 -0
  1086. package/lib/typescript/lib/commonjs/renderer/processors/math/Coordinates.d.ts +25 -0
  1087. package/lib/typescript/lib/commonjs/renderer/processors/math/Math.d.ts +10 -0
  1088. package/lib/typescript/lib/commonjs/renderer/processors/math/Transforms.d.ts +5 -0
  1089. package/lib/typescript/lib/commonjs/renderer/processors/math/index.d.ts +1 -0
  1090. package/lib/typescript/lib/commonjs/renderer/typeddash.d.ts +4 -0
  1091. package/lib/typescript/lib/commonjs/skia/NativeSetup.d.ts +1 -0
  1092. package/lib/typescript/lib/commonjs/skia/Skia.d.ts +2 -0
  1093. package/lib/typescript/lib/commonjs/skia/Skia.web.d.ts +2 -0
  1094. package/lib/typescript/lib/commonjs/skia/core/AnimatedImage.d.ts +5 -0
  1095. package/lib/typescript/lib/commonjs/skia/core/Data.d.ts +5 -0
  1096. package/lib/typescript/lib/commonjs/skia/core/Font.d.ts +8 -0
  1097. package/lib/typescript/lib/commonjs/skia/core/Image.d.ts +6 -0
  1098. package/lib/typescript/lib/commonjs/skia/core/Matrix.d.ts +2 -0
  1099. package/lib/typescript/lib/commonjs/skia/core/Picture.d.ts +8 -0
  1100. package/lib/typescript/lib/commonjs/skia/core/RRect.d.ts +2 -0
  1101. package/lib/typescript/lib/commonjs/skia/core/Rect.d.ts +8 -0
  1102. package/lib/typescript/lib/commonjs/skia/core/SVG.d.ts +2 -0
  1103. package/lib/typescript/lib/commonjs/skia/core/SVG.web.d.ts +2 -0
  1104. package/lib/typescript/lib/commonjs/skia/core/Typeface.d.ts +5 -0
  1105. package/lib/typescript/lib/commonjs/skia/core/Vector.d.ts +7 -0
  1106. package/lib/typescript/lib/commonjs/skia/core/index.d.ts +1 -0
  1107. package/lib/typescript/lib/commonjs/skia/index.d.ts +2 -0
  1108. package/lib/typescript/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.d.ts +1 -0
  1109. package/lib/typescript/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +1 -0
  1110. package/lib/typescript/lib/commonjs/skia/types/AnimatedImage/index.d.ts +1 -0
  1111. package/lib/typescript/lib/commonjs/skia/types/Canvas.d.ts +3 -0
  1112. package/lib/typescript/lib/commonjs/skia/types/Color.d.ts +0 -0
  1113. package/lib/typescript/lib/commonjs/skia/types/ColorFilter/ColorFilter.d.ts +2 -0
  1114. package/lib/typescript/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.d.ts +1 -0
  1115. package/lib/typescript/lib/commonjs/skia/types/ColorFilter/index.d.ts +1 -0
  1116. package/lib/typescript/lib/commonjs/skia/types/ContourMeasure.d.ts +1 -0
  1117. package/lib/typescript/lib/commonjs/skia/types/Data/Data.d.ts +2 -0
  1118. package/lib/typescript/lib/commonjs/skia/types/Data/DataFactory.d.ts +1 -0
  1119. package/lib/typescript/lib/commonjs/skia/types/Data/index.d.ts +1 -0
  1120. package/lib/typescript/lib/commonjs/skia/types/Font/Font.d.ts +16 -0
  1121. package/lib/typescript/lib/commonjs/skia/types/Font/FontMgr.d.ts +1 -0
  1122. package/lib/typescript/lib/commonjs/skia/types/Font/FontMgrFactory.d.ts +1 -0
  1123. package/lib/typescript/lib/commonjs/skia/types/Font/index.d.ts +1 -0
  1124. package/lib/typescript/lib/commonjs/skia/types/Image/Image.d.ts +4 -0
  1125. package/lib/typescript/lib/commonjs/skia/types/Image/ImageFactory.d.ts +3 -0
  1126. package/lib/typescript/lib/commonjs/skia/types/Image/index.d.ts +1 -0
  1127. package/lib/typescript/lib/commonjs/skia/types/ImageFilter/ImageFilter.d.ts +3 -0
  1128. package/lib/typescript/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.d.ts +2 -0
  1129. package/lib/typescript/lib/commonjs/skia/types/ImageFilter/index.d.ts +1 -0
  1130. package/lib/typescript/lib/commonjs/skia/types/JsiInstance.d.ts +0 -0
  1131. package/lib/typescript/lib/commonjs/skia/types/MaskFilter.d.ts +3 -0
  1132. package/lib/typescript/lib/commonjs/skia/types/Matrix.d.ts +4 -0
  1133. package/lib/typescript/lib/commonjs/skia/types/Matrix4.d.ts +31 -0
  1134. package/lib/typescript/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +6 -0
  1135. package/lib/typescript/lib/commonjs/skia/types/NativeBuffer/index.d.ts +1 -0
  1136. package/lib/typescript/lib/commonjs/skia/types/Paint/BlendMode.d.ts +2 -0
  1137. package/lib/typescript/lib/commonjs/skia/types/Paint/Paint.d.ts +5 -0
  1138. package/lib/typescript/lib/commonjs/skia/types/Paint/index.d.ts +1 -0
  1139. package/lib/typescript/lib/commonjs/skia/types/Paragraph/Paragraph.d.ts +1 -0
  1140. package/lib/typescript/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.d.ts +2 -0
  1141. package/lib/typescript/lib/commonjs/skia/types/Paragraph/ParagraphStyle.d.ts +4 -0
  1142. package/lib/typescript/lib/commonjs/skia/types/Paragraph/TextStyle.d.ts +4 -0
  1143. package/lib/typescript/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.d.ts +1 -0
  1144. package/lib/typescript/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +1 -0
  1145. package/lib/typescript/lib/commonjs/skia/types/Paragraph/index.d.ts +1 -0
  1146. package/lib/typescript/lib/commonjs/skia/types/Path/Path.d.ts +5 -0
  1147. package/lib/typescript/lib/commonjs/skia/types/Path/PathFactory.d.ts +1 -0
  1148. package/lib/typescript/lib/commonjs/skia/types/Path/index.d.ts +1 -0
  1149. package/lib/typescript/lib/commonjs/skia/types/PathEffect.d.ts +3 -0
  1150. package/lib/typescript/lib/commonjs/skia/types/Picture/Picture.d.ts +1 -0
  1151. package/lib/typescript/lib/commonjs/skia/types/Picture/PictureFactory.d.ts +1 -0
  1152. package/lib/typescript/lib/commonjs/skia/types/Picture/PictureRecorder.d.ts +1 -0
  1153. package/lib/typescript/lib/commonjs/skia/types/Picture/index.d.ts +1 -0
  1154. package/lib/typescript/lib/commonjs/skia/types/Point.d.ts +2 -0
  1155. package/lib/typescript/lib/commonjs/skia/types/RRect.d.ts +2 -0
  1156. package/lib/typescript/lib/commonjs/skia/types/RSXform.d.ts +1 -0
  1157. package/lib/typescript/lib/commonjs/skia/types/Rect.d.ts +2 -0
  1158. package/lib/typescript/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.d.ts +1 -0
  1159. package/lib/typescript/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +1 -0
  1160. package/lib/typescript/lib/commonjs/skia/types/RuntimeEffect/index.d.ts +1 -0
  1161. package/lib/typescript/lib/commonjs/skia/types/SVG/SVG.d.ts +1 -0
  1162. package/lib/typescript/lib/commonjs/skia/types/SVG/SVGFactory.d.ts +1 -0
  1163. package/lib/typescript/lib/commonjs/skia/types/SVG/index.d.ts +1 -0
  1164. package/lib/typescript/lib/commonjs/skia/types/Shader/Shader.d.ts +3 -0
  1165. package/lib/typescript/lib/commonjs/skia/types/Shader/ShaderFactory.d.ts +1 -0
  1166. package/lib/typescript/lib/commonjs/skia/types/Shader/index.d.ts +1 -0
  1167. package/lib/typescript/lib/commonjs/skia/types/Size.d.ts +0 -0
  1168. package/lib/typescript/lib/commonjs/skia/types/Skia.d.ts +1 -0
  1169. package/lib/typescript/lib/commonjs/skia/types/Surface/Surface.d.ts +1 -0
  1170. package/lib/typescript/lib/commonjs/skia/types/Surface/SurfaceFactory.d.ts +1 -0
  1171. package/lib/typescript/lib/commonjs/skia/types/Surface/index.d.ts +1 -0
  1172. package/lib/typescript/lib/commonjs/skia/types/TextBlob.d.ts +1 -0
  1173. package/lib/typescript/lib/commonjs/skia/types/Typeface/Typeface.d.ts +1 -0
  1174. package/lib/typescript/lib/commonjs/skia/types/Typeface/TypefaceFactory.d.ts +1 -0
  1175. package/lib/typescript/lib/commonjs/skia/types/Typeface/index.d.ts +1 -0
  1176. package/lib/typescript/lib/commonjs/skia/types/Vertices/Vertices.d.ts +2 -0
  1177. package/lib/typescript/lib/commonjs/skia/types/Vertices/index.d.ts +1 -0
  1178. package/lib/typescript/lib/commonjs/skia/types/Video/Video.d.ts +1 -0
  1179. package/lib/typescript/lib/commonjs/skia/types/Video/index.d.ts +1 -0
  1180. package/lib/typescript/lib/commonjs/skia/types/index.d.ts +1 -0
  1181. package/lib/typescript/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.d.ts +8 -0
  1182. package/lib/typescript/lib/commonjs/skia/web/Host.d.ts +18 -0
  1183. package/lib/typescript/lib/commonjs/skia/web/JsiSkAnimatedImage.d.ts +10 -0
  1184. package/lib/typescript/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.d.ts +6 -0
  1185. package/lib/typescript/lib/commonjs/skia/web/JsiSkCanvas.d.ts +45 -0
  1186. package/lib/typescript/lib/commonjs/skia/web/JsiSkColor.d.ts +2 -0
  1187. package/lib/typescript/lib/commonjs/skia/web/JsiSkColorFilter.d.ts +5 -0
  1188. package/lib/typescript/lib/commonjs/skia/web/JsiSkColorFilterFactory.d.ts +12 -0
  1189. package/lib/typescript/lib/commonjs/skia/web/JsiSkContourMeasure.d.ts +11 -0
  1190. package/lib/typescript/lib/commonjs/skia/web/JsiSkContourMeasureIter.d.ts +7 -0
  1191. package/lib/typescript/lib/commonjs/skia/web/JsiSkData.d.ts +5 -0
  1192. package/lib/typescript/lib/commonjs/skia/web/JsiSkDataFactory.d.ts +16 -0
  1193. package/lib/typescript/lib/commonjs/skia/web/JsiSkFont.d.ts +33 -0
  1194. package/lib/typescript/lib/commonjs/skia/web/JsiSkFontMgr.d.ts +9 -0
  1195. package/lib/typescript/lib/commonjs/skia/web/JsiSkFontMgrFactory.d.ts +6 -0
  1196. package/lib/typescript/lib/commonjs/skia/web/JsiSkImage.d.ts +21 -0
  1197. package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFactory.d.ts +9 -0
  1198. package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFilter.d.ts +5 -0
  1199. package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFilterFactory.d.ts +17 -0
  1200. package/lib/typescript/lib/commonjs/skia/web/JsiSkMaskFilter.d.ts +5 -0
  1201. package/lib/typescript/lib/commonjs/skia/web/JsiSkMaskFilterFactory.d.ts +6 -0
  1202. package/lib/typescript/lib/commonjs/skia/web/JsiSkMatrix.d.ts +18 -0
  1203. package/lib/typescript/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +6 -0
  1204. package/lib/typescript/lib/commonjs/skia/web/JsiSkPaint.d.ts +28 -0
  1205. package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraph.d.ts +17 -0
  1206. package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraphBuilder.d.ts +14 -0
  1207. package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.d.ts +6 -0
  1208. package/lib/typescript/lib/commonjs/skia/web/JsiSkParagraphStyle.d.ts +4 -0
  1209. package/lib/typescript/lib/commonjs/skia/web/JsiSkPath.d.ts +56 -0
  1210. package/lib/typescript/lib/commonjs/skia/web/JsiSkPathEffect.d.ts +5 -0
  1211. package/lib/typescript/lib/commonjs/skia/web/JsiSkPathEffectFactory.d.ts +13 -0
  1212. package/lib/typescript/lib/commonjs/skia/web/JsiSkPathFactory.d.ts +10 -0
  1213. package/lib/typescript/lib/commonjs/skia/web/JsiSkPicture.d.ts +8 -0
  1214. package/lib/typescript/lib/commonjs/skia/web/JsiSkPictureFactory.d.ts +6 -0
  1215. package/lib/typescript/lib/commonjs/skia/web/JsiSkPictureRecorder.d.ts +9 -0
  1216. package/lib/typescript/lib/commonjs/skia/web/JsiSkPoint.d.ts +8 -0
  1217. package/lib/typescript/lib/commonjs/skia/web/JsiSkRRect.d.ts +10 -0
  1218. package/lib/typescript/lib/commonjs/skia/web/JsiSkRSXform.d.ts +11 -0
  1219. package/lib/typescript/lib/commonjs/skia/web/JsiSkRect.d.ts +11 -0
  1220. package/lib/typescript/lib/commonjs/skia/web/JsiSkRuntimeEffect.d.ts +13 -0
  1221. package/lib/typescript/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.d.ts +6 -0
  1222. package/lib/typescript/lib/commonjs/skia/web/JsiSkSVG.d.ts +7 -0
  1223. package/lib/typescript/lib/commonjs/skia/web/JsiSkSVGFactory.d.ts +7 -0
  1224. package/lib/typescript/lib/commonjs/skia/web/JsiSkShader.d.ts +5 -0
  1225. package/lib/typescript/lib/commonjs/skia/web/JsiSkShaderFactory.d.ts +13 -0
  1226. package/lib/typescript/lib/commonjs/skia/web/JsiSkSurface.d.ts +12 -0
  1227. package/lib/typescript/lib/commonjs/skia/web/JsiSkSurfaceFactory.d.ts +7 -0
  1228. package/lib/typescript/lib/commonjs/skia/web/JsiSkTextBlob.d.ts +5 -0
  1229. package/lib/typescript/lib/commonjs/skia/web/JsiSkTextBlobFactory.d.ts +9 -0
  1230. package/lib/typescript/lib/commonjs/skia/web/JsiSkTextStyle.d.ts +38 -0
  1231. package/lib/typescript/lib/commonjs/skia/web/JsiSkTypeface.d.ts +8 -0
  1232. package/lib/typescript/lib/commonjs/skia/web/JsiSkTypefaceFactory.d.ts +6 -0
  1233. package/lib/typescript/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.d.ts +10 -0
  1234. package/lib/typescript/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +6 -0
  1235. package/lib/typescript/lib/commonjs/skia/web/JsiSkVertices.d.ts +8 -0
  1236. package/lib/typescript/lib/commonjs/skia/web/JsiSkVerticesFactory.d.ts +3 -0
  1237. package/lib/typescript/lib/commonjs/skia/web/JsiSkia.d.ts +64 -0
  1238. package/lib/typescript/lib/commonjs/skia/web/JsiVideo.d.ts +23 -0
  1239. package/lib/typescript/lib/commonjs/skia/web/index.d.ts +1 -0
  1240. package/lib/typescript/lib/commonjs/specs/NativeSkiaModule.d.ts +4 -0
  1241. package/lib/typescript/lib/commonjs/specs/NativeSkiaModule.web.d.ts +0 -0
  1242. package/lib/typescript/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +3 -0
  1243. package/lib/typescript/lib/commonjs/specs/SkiaPictureViewNativeComponent.d.ts +3 -0
  1244. package/lib/typescript/lib/commonjs/views/SkiaBaseWebView.d.ts +53 -0
  1245. package/lib/typescript/lib/commonjs/views/SkiaDomView.d.ts +27 -0
  1246. package/lib/typescript/lib/commonjs/views/SkiaDomView.web.d.ts +5 -0
  1247. package/lib/typescript/lib/commonjs/views/SkiaJSDomView.d.ts +26 -0
  1248. package/lib/typescript/lib/commonjs/views/SkiaJSDomView.web.d.ts +3 -0
  1249. package/lib/typescript/lib/commonjs/views/SkiaPictureView.d.ts +21 -0
  1250. package/lib/typescript/lib/commonjs/views/SkiaPictureView.web.d.ts +5 -0
  1251. package/lib/typescript/lib/commonjs/views/SkiaViewNativeId.d.ts +4 -0
  1252. package/lib/typescript/lib/commonjs/views/api.d.ts +2 -0
  1253. package/lib/typescript/lib/commonjs/views/index.d.ts +1 -0
  1254. package/lib/typescript/lib/commonjs/views/types.d.ts +2 -0
  1255. package/lib/typescript/lib/commonjs/views/useTouchHandler.d.ts +12 -0
  1256. package/lib/typescript/lib/commonjs/web/LoadSkiaWeb.d.ts +3 -0
  1257. package/lib/typescript/lib/commonjs/web/WithSkiaWeb.d.ts +6 -0
  1258. package/lib/typescript/lib/commonjs/web/index.d.ts +1 -0
  1259. package/lib/typescript/lib/module/Platform/IPlatform.d.ts +1 -0
  1260. package/lib/typescript/lib/module/Platform/Platform.d.ts +9 -0
  1261. package/lib/typescript/lib/module/Platform/Platform.web.d.ts +17 -0
  1262. package/lib/typescript/lib/module/Platform/index.d.ts +1 -0
  1263. package/lib/typescript/lib/module/animation/functions/index.d.ts +4 -0
  1264. package/lib/typescript/lib/module/animation/functions/interpolate.d.ts +6 -0
  1265. package/lib/typescript/lib/module/animation/functions/interpolateColors.d.ts +2 -0
  1266. package/lib/typescript/lib/module/animation/functions/interpolatePaths.d.ts +1 -0
  1267. package/lib/typescript/lib/module/animation/functions/interpolateVector.d.ts +8 -0
  1268. package/lib/typescript/lib/module/animation/index.d.ts +1 -0
  1269. package/lib/typescript/lib/module/dom/nodes/DrawingNode.d.ts +5 -0
  1270. package/lib/typescript/lib/module/dom/nodes/GroupNode.d.ts +5 -0
  1271. package/lib/typescript/lib/module/dom/nodes/JsiSkDOM.d.ts +119 -0
  1272. package/lib/typescript/lib/module/dom/nodes/LayerNode.d.ts +5 -0
  1273. package/lib/typescript/lib/module/dom/nodes/Node.d.ts +19 -0
  1274. package/lib/typescript/lib/module/dom/nodes/PaintNode.d.ts +5 -0
  1275. package/lib/typescript/lib/module/dom/nodes/RenderNode.d.ts +15 -0
  1276. package/lib/typescript/lib/module/dom/nodes/datatypes/Circle.d.ts +2 -0
  1277. package/lib/typescript/lib/module/dom/nodes/datatypes/Enum.d.ts +1 -0
  1278. package/lib/typescript/lib/module/dom/nodes/datatypes/Fitting.d.ts +44 -0
  1279. package/lib/typescript/lib/module/dom/nodes/datatypes/Gradient.d.ts +15 -0
  1280. package/lib/typescript/lib/module/dom/nodes/datatypes/Path.d.ts +2 -0
  1281. package/lib/typescript/lib/module/dom/nodes/datatypes/Radius.d.ts +1 -0
  1282. package/lib/typescript/lib/module/dom/nodes/datatypes/Rect.d.ts +3 -0
  1283. package/lib/typescript/lib/module/dom/nodes/datatypes/Transform.d.ts +1 -0
  1284. package/lib/typescript/lib/module/dom/nodes/datatypes/index.d.ts +8 -0
  1285. package/lib/typescript/lib/module/dom/nodes/drawings/AtlasNode.d.ts +9 -0
  1286. package/lib/typescript/lib/module/dom/nodes/drawings/BackdropFilterNode.d.ts +9 -0
  1287. package/lib/typescript/lib/module/dom/nodes/drawings/Box.d.ts +14 -0
  1288. package/lib/typescript/lib/module/dom/nodes/drawings/CircleNode.d.ts +9 -0
  1289. package/lib/typescript/lib/module/dom/nodes/drawings/DiffRectNode.d.ts +9 -0
  1290. package/lib/typescript/lib/module/dom/nodes/drawings/FillNode.d.ts +9 -0
  1291. package/lib/typescript/lib/module/dom/nodes/drawings/ImageNode.d.ts +22 -0
  1292. package/lib/typescript/lib/module/dom/nodes/drawings/ImageSVG.d.ts +8 -0
  1293. package/lib/typescript/lib/module/dom/nodes/drawings/LineNode.d.ts +9 -0
  1294. package/lib/typescript/lib/module/dom/nodes/drawings/OvalNode.d.ts +9 -0
  1295. package/lib/typescript/lib/module/dom/nodes/drawings/ParagraphNode.d.ts +8 -0
  1296. package/lib/typescript/lib/module/dom/nodes/drawings/PatchNode.d.ts +13 -0
  1297. package/lib/typescript/lib/module/dom/nodes/drawings/PathNode.d.ts +9 -0
  1298. package/lib/typescript/lib/module/dom/nodes/drawings/PictureNode.d.ts +8 -0
  1299. package/lib/typescript/lib/module/dom/nodes/drawings/PointsNode.d.ts +9 -0
  1300. package/lib/typescript/lib/module/dom/nodes/drawings/RRectNode.d.ts +9 -0
  1301. package/lib/typescript/lib/module/dom/nodes/drawings/RectNode.d.ts +9 -0
  1302. package/lib/typescript/lib/module/dom/nodes/drawings/Text.d.ts +33 -0
  1303. package/lib/typescript/lib/module/dom/nodes/drawings/VerticesNode.d.ts +9 -0
  1304. package/lib/typescript/lib/module/dom/nodes/drawings/index.d.ts +18 -0
  1305. package/lib/typescript/lib/module/dom/nodes/index.d.ts +3 -0
  1306. package/lib/typescript/lib/module/dom/nodes/paint/BlendNode.d.ts +5 -0
  1307. package/lib/typescript/lib/module/dom/nodes/paint/ColorFilters.d.ts +28 -0
  1308. package/lib/typescript/lib/module/dom/nodes/paint/ImageFilters.d.ts +34 -0
  1309. package/lib/typescript/lib/module/dom/nodes/paint/MaskFilters.d.ts +5 -0
  1310. package/lib/typescript/lib/module/dom/nodes/paint/PathEffects.d.ts +33 -0
  1311. package/lib/typescript/lib/module/dom/nodes/paint/Shaders.d.ts +39 -0
  1312. package/lib/typescript/lib/module/dom/nodes/paint/index.d.ts +6 -0
  1313. package/lib/typescript/lib/module/dom/types/ColorFilters.d.ts +1 -0
  1314. package/lib/typescript/lib/module/dom/types/Common.d.ts +1 -0
  1315. package/lib/typescript/lib/module/dom/types/DeclarationContext.d.ts +25 -0
  1316. package/lib/typescript/lib/module/dom/types/DrawingContext.d.ts +12 -0
  1317. package/lib/typescript/lib/module/dom/types/Drawings.d.ts +1 -0
  1318. package/lib/typescript/lib/module/dom/types/ImageFilters.d.ts +1 -0
  1319. package/lib/typescript/lib/module/dom/types/MaskFilters.d.ts +1 -0
  1320. package/lib/typescript/lib/module/dom/types/Node.d.ts +1 -0
  1321. package/lib/typescript/lib/module/dom/types/NodeType.d.ts +1 -0
  1322. package/lib/typescript/lib/module/dom/types/Paragraph.d.ts +1 -0
  1323. package/lib/typescript/lib/module/dom/types/PathEffects.d.ts +1 -0
  1324. package/lib/typescript/lib/module/dom/types/Shaders.d.ts +1 -0
  1325. package/lib/typescript/lib/module/dom/types/SkDOM.d.ts +1 -0
  1326. package/lib/typescript/lib/module/dom/types/index.d.ts +13 -0
  1327. package/lib/typescript/lib/module/external/ModuleProxy.d.ts +6 -0
  1328. package/lib/typescript/lib/module/external/index.d.ts +1 -0
  1329. package/lib/typescript/lib/module/external/reanimated/ReanimatedProxy.d.ts +4 -0
  1330. package/lib/typescript/lib/module/external/reanimated/buffers.d.ts +4 -0
  1331. package/lib/typescript/lib/module/external/reanimated/index.d.ts +7 -0
  1332. package/lib/typescript/lib/module/external/reanimated/interpolators.d.ts +5 -0
  1333. package/lib/typescript/lib/module/external/reanimated/renderHelpers.d.ts +3 -0
  1334. package/lib/typescript/lib/module/external/reanimated/textures.d.ts +5 -0
  1335. package/lib/typescript/lib/module/external/reanimated/useAnimatedImageValue.d.ts +1 -0
  1336. package/lib/typescript/lib/module/external/reanimated/useDerivedValueOnJS.d.ts +1 -0
  1337. package/lib/typescript/lib/module/external/reanimated/useVideo.d.ts +8 -0
  1338. package/lib/typescript/lib/module/external/reanimated/useVideoLoading.d.ts +1 -0
  1339. package/lib/typescript/lib/module/external/reanimated/useVideoLoading.web.d.ts +1 -0
  1340. package/lib/typescript/lib/module/headless/index.d.ts +6 -0
  1341. package/lib/typescript/lib/module/index.d.ts +10 -0
  1342. package/lib/typescript/lib/module/mock/index.d.ts +474 -0
  1343. package/lib/typescript/lib/module/renderer/Canvas.d.ts +3 -0
  1344. package/lib/typescript/lib/module/renderer/Container.d.ts +10 -0
  1345. package/lib/typescript/lib/module/renderer/DrawingContext.d.ts +1 -0
  1346. package/lib/typescript/lib/module/renderer/HostComponents.d.ts +2 -0
  1347. package/lib/typescript/lib/module/renderer/HostConfig.d.ts +37 -0
  1348. package/lib/typescript/lib/module/renderer/Offscreen.d.ts +4 -0
  1349. package/lib/typescript/lib/module/renderer/Reconciler.d.ts +9 -0
  1350. package/lib/typescript/lib/module/renderer/components/Blend.d.ts +2 -0
  1351. package/lib/typescript/lib/module/renderer/components/Group.d.ts +5 -0
  1352. package/lib/typescript/lib/module/renderer/components/Mask.d.ts +10 -0
  1353. package/lib/typescript/lib/module/renderer/components/Paint.d.ts +2 -0
  1354. package/lib/typescript/lib/module/renderer/components/Picture.d.ts +2 -0
  1355. package/lib/typescript/lib/module/renderer/components/backdrop/BackdropBlur.d.ts +10 -0
  1356. package/lib/typescript/lib/module/renderer/components/backdrop/BackdropFilter.d.ts +6 -0
  1357. package/lib/typescript/lib/module/renderer/components/backdrop/index.d.ts +2 -0
  1358. package/lib/typescript/lib/module/renderer/components/colorFilters/BlendColor.d.ts +2 -0
  1359. package/lib/typescript/lib/module/renderer/components/colorFilters/Lerp.d.ts +2 -0
  1360. package/lib/typescript/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +2 -0
  1361. package/lib/typescript/lib/module/renderer/components/colorFilters/LumaColorFilter.d.ts +2 -0
  1362. package/lib/typescript/lib/module/renderer/components/colorFilters/Matrix.d.ts +3 -0
  1363. package/lib/typescript/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +2 -0
  1364. package/lib/typescript/lib/module/renderer/components/colorFilters/index.d.ts +6 -0
  1365. package/lib/typescript/lib/module/renderer/components/image/Image.d.ts +2 -0
  1366. package/lib/typescript/lib/module/renderer/components/image/ImageSVG.d.ts +2 -0
  1367. package/lib/typescript/lib/module/renderer/components/image/ImageShader.d.ts +10 -0
  1368. package/lib/typescript/lib/module/renderer/components/image/index.d.ts +3 -0
  1369. package/lib/typescript/lib/module/renderer/components/imageFilters/Blur.d.ts +5 -0
  1370. package/lib/typescript/lib/module/renderer/components/imageFilters/DisplacementMap.d.ts +2 -0
  1371. package/lib/typescript/lib/module/renderer/components/imageFilters/Morphology.d.ts +5 -0
  1372. package/lib/typescript/lib/module/renderer/components/imageFilters/Offset.d.ts +6 -0
  1373. package/lib/typescript/lib/module/renderer/components/imageFilters/RuntimeShader.d.ts +2 -0
  1374. package/lib/typescript/lib/module/renderer/components/imageFilters/Shadow.d.ts +2 -0
  1375. package/lib/typescript/lib/module/renderer/components/imageFilters/index.d.ts +6 -0
  1376. package/lib/typescript/lib/module/renderer/components/index.d.ts +16 -0
  1377. package/lib/typescript/lib/module/renderer/components/maskFilters/Blur.d.ts +6 -0
  1378. package/lib/typescript/lib/module/renderer/components/maskFilters/index.d.ts +1 -0
  1379. package/lib/typescript/lib/module/renderer/components/paragraph/Paragraph.d.ts +2 -0
  1380. package/lib/typescript/lib/module/renderer/components/paragraph/index.d.ts +1 -0
  1381. package/lib/typescript/lib/module/renderer/components/pathEffects/Corner.d.ts +2 -0
  1382. package/lib/typescript/lib/module/renderer/components/pathEffects/Dash.d.ts +2 -0
  1383. package/lib/typescript/lib/module/renderer/components/pathEffects/Discrete.d.ts +5 -0
  1384. package/lib/typescript/lib/module/renderer/components/pathEffects/Line2D.d.ts +2 -0
  1385. package/lib/typescript/lib/module/renderer/components/pathEffects/Path1D.d.ts +2 -0
  1386. package/lib/typescript/lib/module/renderer/components/pathEffects/Path2D.d.ts +2 -0
  1387. package/lib/typescript/lib/module/renderer/components/pathEffects/Sum.d.ts +2 -0
  1388. package/lib/typescript/lib/module/renderer/components/pathEffects/index.d.ts +7 -0
  1389. package/lib/typescript/lib/module/renderer/components/shaders/Color.d.ts +2 -0
  1390. package/lib/typescript/lib/module/renderer/components/shaders/FractalNoise.d.ts +7 -0
  1391. package/lib/typescript/lib/module/renderer/components/shaders/LinearGradient.d.ts +2 -0
  1392. package/lib/typescript/lib/module/renderer/components/shaders/RadialGradient.d.ts +2 -0
  1393. package/lib/typescript/lib/module/renderer/components/shaders/Shader.d.ts +5 -0
  1394. package/lib/typescript/lib/module/renderer/components/shaders/ShaderLib.d.ts +7 -0
  1395. package/lib/typescript/lib/module/renderer/components/shaders/SweepGradient.d.ts +2 -0
  1396. package/lib/typescript/lib/module/renderer/components/shaders/Turbulence.d.ts +7 -0
  1397. package/lib/typescript/lib/module/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -0
  1398. package/lib/typescript/lib/module/renderer/components/shaders/index.d.ts +9 -0
  1399. package/lib/typescript/lib/module/renderer/components/shapes/Atlas.d.ts +2 -0
  1400. package/lib/typescript/lib/module/renderer/components/shapes/Box.d.ts +3 -0
  1401. package/lib/typescript/lib/module/renderer/components/shapes/Circle.d.ts +2 -0
  1402. package/lib/typescript/lib/module/renderer/components/shapes/DiffRect.d.ts +2 -0
  1403. package/lib/typescript/lib/module/renderer/components/shapes/Fill.d.ts +2 -0
  1404. package/lib/typescript/lib/module/renderer/components/shapes/FitBox.d.ts +34 -0
  1405. package/lib/typescript/lib/module/renderer/components/shapes/Line.d.ts +2 -0
  1406. package/lib/typescript/lib/module/renderer/components/shapes/Oval.d.ts +2 -0
  1407. package/lib/typescript/lib/module/renderer/components/shapes/Patch.d.ts +2 -0
  1408. package/lib/typescript/lib/module/renderer/components/shapes/Path.d.ts +6 -0
  1409. package/lib/typescript/lib/module/renderer/components/shapes/Points.d.ts +5 -0
  1410. package/lib/typescript/lib/module/renderer/components/shapes/Rect.d.ts +2 -0
  1411. package/lib/typescript/lib/module/renderer/components/shapes/RoundedRect.d.ts +2 -0
  1412. package/lib/typescript/lib/module/renderer/components/shapes/Vertices.d.ts +5 -0
  1413. package/lib/typescript/lib/module/renderer/components/shapes/index.d.ts +14 -0
  1414. package/lib/typescript/lib/module/renderer/components/text/Glyphs.d.ts +6 -0
  1415. package/lib/typescript/lib/module/renderer/components/text/Text.d.ts +6 -0
  1416. package/lib/typescript/lib/module/renderer/components/text/TextBlob.d.ts +6 -0
  1417. package/lib/typescript/lib/module/renderer/components/text/TextPath.d.ts +5 -0
  1418. package/lib/typescript/lib/module/renderer/components/text/index.d.ts +4 -0
  1419. package/lib/typescript/lib/module/renderer/index.d.ts +1 -0
  1420. package/lib/typescript/lib/module/renderer/processors/Animations/Animations.d.ts +0 -0
  1421. package/lib/typescript/lib/module/renderer/processors/Animations/index.d.ts +1 -0
  1422. package/lib/typescript/lib/module/renderer/processors/index.d.ts +2 -0
  1423. package/lib/typescript/lib/module/renderer/processors/math/Coordinates.d.ts +24 -0
  1424. package/lib/typescript/lib/module/renderer/processors/math/Math.d.ts +3 -0
  1425. package/lib/typescript/lib/module/renderer/processors/math/Transforms.d.ts +4 -0
  1426. package/lib/typescript/lib/module/renderer/processors/math/index.d.ts +3 -0
  1427. package/lib/typescript/lib/module/renderer/typeddash.d.ts +3 -0
  1428. package/lib/typescript/lib/module/skia/NativeSetup.d.ts +1 -0
  1429. package/lib/typescript/lib/module/skia/Skia.d.ts +4 -0
  1430. package/lib/typescript/lib/module/skia/Skia.web.d.ts +35 -0
  1431. package/lib/typescript/lib/module/skia/core/AnimatedImage.d.ts +1 -0
  1432. package/lib/typescript/lib/module/skia/core/Data.d.ts +4 -0
  1433. package/lib/typescript/lib/module/skia/core/Font.d.ts +4 -0
  1434. package/lib/typescript/lib/module/skia/core/Image.d.ts +2 -0
  1435. package/lib/typescript/lib/module/skia/core/Matrix.d.ts +1 -0
  1436. package/lib/typescript/lib/module/skia/core/Picture.d.ts +1 -0
  1437. package/lib/typescript/lib/module/skia/core/RRect.d.ts +1 -0
  1438. package/lib/typescript/lib/module/skia/core/Rect.d.ts +7 -0
  1439. package/lib/typescript/lib/module/skia/core/SVG.d.ts +1 -0
  1440. package/lib/typescript/lib/module/skia/core/SVG.web.d.ts +1 -0
  1441. package/lib/typescript/lib/module/skia/core/Typeface.d.ts +1 -0
  1442. package/lib/typescript/lib/module/skia/core/Vector.d.ts +6 -0
  1443. package/lib/typescript/lib/module/skia/core/index.d.ts +11 -0
  1444. package/lib/typescript/lib/module/skia/index.d.ts +3 -0
  1445. package/lib/typescript/lib/module/skia/types/AnimatedImage/AnimatedImage.d.ts +1 -0
  1446. package/lib/typescript/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +1 -0
  1447. package/lib/typescript/lib/module/skia/types/AnimatedImage/index.d.ts +2 -0
  1448. package/lib/typescript/lib/module/skia/types/Canvas.d.ts +2 -0
  1449. package/lib/typescript/lib/module/skia/types/Color.d.ts +0 -0
  1450. package/lib/typescript/lib/module/skia/types/ColorFilter/ColorFilter.d.ts +1 -0
  1451. package/lib/typescript/lib/module/skia/types/ColorFilter/ColorFilterFactory.d.ts +1 -0
  1452. package/lib/typescript/lib/module/skia/types/ColorFilter/index.d.ts +2 -0
  1453. package/lib/typescript/lib/module/skia/types/ContourMeasure.d.ts +1 -0
  1454. package/lib/typescript/lib/module/skia/types/Data/Data.d.ts +1 -0
  1455. package/lib/typescript/lib/module/skia/types/Data/DataFactory.d.ts +1 -0
  1456. package/lib/typescript/lib/module/skia/types/Data/index.d.ts +2 -0
  1457. package/lib/typescript/lib/module/skia/types/Font/Font.d.ts +15 -0
  1458. package/lib/typescript/lib/module/skia/types/Font/FontMgr.d.ts +1 -0
  1459. package/lib/typescript/lib/module/skia/types/Font/FontMgrFactory.d.ts +1 -0
  1460. package/lib/typescript/lib/module/skia/types/Font/index.d.ts +3 -0
  1461. package/lib/typescript/lib/module/skia/types/Image/Image.d.ts +3 -0
  1462. package/lib/typescript/lib/module/skia/types/Image/ImageFactory.d.ts +2 -0
  1463. package/lib/typescript/lib/module/skia/types/Image/index.d.ts +2 -0
  1464. package/lib/typescript/lib/module/skia/types/ImageFilter/ImageFilter.d.ts +2 -0
  1465. package/lib/typescript/lib/module/skia/types/ImageFilter/ImageFilterFactory.d.ts +1 -0
  1466. package/lib/typescript/lib/module/skia/types/ImageFilter/index.d.ts +2 -0
  1467. package/lib/typescript/lib/module/skia/types/JsiInstance.d.ts +0 -0
  1468. package/lib/typescript/lib/module/skia/types/MaskFilter.d.ts +2 -0
  1469. package/lib/typescript/lib/module/skia/types/Matrix.d.ts +3 -0
  1470. package/lib/typescript/lib/module/skia/types/Matrix4.d.ts +15 -0
  1471. package/lib/typescript/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +5 -0
  1472. package/lib/typescript/lib/module/skia/types/NativeBuffer/index.d.ts +1 -0
  1473. package/lib/typescript/lib/module/skia/types/Paint/BlendMode.d.ts +28 -0
  1474. package/lib/typescript/lib/module/skia/types/Paint/Paint.d.ts +4 -0
  1475. package/lib/typescript/lib/module/skia/types/Paint/index.d.ts +2 -0
  1476. package/lib/typescript/lib/module/skia/types/Paragraph/Paragraph.d.ts +1 -0
  1477. package/lib/typescript/lib/module/skia/types/Paragraph/ParagraphBuilder.d.ts +1 -0
  1478. package/lib/typescript/lib/module/skia/types/Paragraph/ParagraphStyle.d.ts +3 -0
  1479. package/lib/typescript/lib/module/skia/types/Paragraph/TextStyle.d.ts +3 -0
  1480. package/lib/typescript/lib/module/skia/types/Paragraph/TypefaceFontProvider.d.ts +1 -0
  1481. package/lib/typescript/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +1 -0
  1482. package/lib/typescript/lib/module/skia/types/Paragraph/index.d.ts +6 -0
  1483. package/lib/typescript/lib/module/skia/types/Path/Path.d.ts +7 -0
  1484. package/lib/typescript/lib/module/skia/types/Path/PathFactory.d.ts +1 -0
  1485. package/lib/typescript/lib/module/skia/types/Path/index.d.ts +2 -0
  1486. package/lib/typescript/lib/module/skia/types/PathEffect.d.ts +2 -0
  1487. package/lib/typescript/lib/module/skia/types/Picture/Picture.d.ts +1 -0
  1488. package/lib/typescript/lib/module/skia/types/Picture/PictureFactory.d.ts +1 -0
  1489. package/lib/typescript/lib/module/skia/types/Picture/PictureRecorder.d.ts +1 -0
  1490. package/lib/typescript/lib/module/skia/types/Picture/index.d.ts +3 -0
  1491. package/lib/typescript/lib/module/skia/types/Point.d.ts +1 -0
  1492. package/lib/typescript/lib/module/skia/types/RRect.d.ts +1 -0
  1493. package/lib/typescript/lib/module/skia/types/RSXform.d.ts +1 -0
  1494. package/lib/typescript/lib/module/skia/types/Rect.d.ts +1 -0
  1495. package/lib/typescript/lib/module/skia/types/RuntimeEffect/RuntimeEffect.d.ts +1 -0
  1496. package/lib/typescript/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +1 -0
  1497. package/lib/typescript/lib/module/skia/types/RuntimeEffect/index.d.ts +2 -0
  1498. package/lib/typescript/lib/module/skia/types/SVG/SVG.d.ts +1 -0
  1499. package/lib/typescript/lib/module/skia/types/SVG/SVGFactory.d.ts +1 -0
  1500. package/lib/typescript/lib/module/skia/types/SVG/index.d.ts +2 -0
  1501. package/lib/typescript/lib/module/skia/types/Shader/Shader.d.ts +2 -0
  1502. package/lib/typescript/lib/module/skia/types/Shader/ShaderFactory.d.ts +1 -0
  1503. package/lib/typescript/lib/module/skia/types/Shader/index.d.ts +2 -0
  1504. package/lib/typescript/lib/module/skia/types/Size.d.ts +0 -0
  1505. package/lib/typescript/lib/module/skia/types/Skia.d.ts +1 -0
  1506. package/lib/typescript/lib/module/skia/types/Surface/Surface.d.ts +1 -0
  1507. package/lib/typescript/lib/module/skia/types/Surface/SurfaceFactory.d.ts +1 -0
  1508. package/lib/typescript/lib/module/skia/types/Surface/index.d.ts +2 -0
  1509. package/lib/typescript/lib/module/skia/types/TextBlob.d.ts +1 -0
  1510. package/lib/typescript/lib/module/skia/types/Typeface/Typeface.d.ts +1 -0
  1511. package/lib/typescript/lib/module/skia/types/Typeface/TypefaceFactory.d.ts +1 -0
  1512. package/lib/typescript/lib/module/skia/types/Typeface/index.d.ts +2 -0
  1513. package/lib/typescript/lib/module/skia/types/Vertices/Vertices.d.ts +1 -0
  1514. package/lib/typescript/lib/module/skia/types/Vertices/index.d.ts +1 -0
  1515. package/lib/typescript/lib/module/skia/types/Video/Video.d.ts +1 -0
  1516. package/lib/typescript/lib/module/skia/types/Video/index.d.ts +1 -0
  1517. package/lib/typescript/lib/module/skia/types/index.d.ts +30 -0
  1518. package/lib/typescript/lib/module/skia/web/CanvasKitWebGLBufferImpl.d.ts +8 -0
  1519. package/lib/typescript/lib/module/skia/web/Host.d.ts +17 -0
  1520. package/lib/typescript/lib/module/skia/web/JsiSkAnimatedImage.d.ts +9 -0
  1521. package/lib/typescript/lib/module/skia/web/JsiSkAnimatedImageFactory.d.ts +5 -0
  1522. package/lib/typescript/lib/module/skia/web/JsiSkCanvas.d.ts +44 -0
  1523. package/lib/typescript/lib/module/skia/web/JsiSkColor.d.ts +1 -0
  1524. package/lib/typescript/lib/module/skia/web/JsiSkColorFilter.d.ts +4 -0
  1525. package/lib/typescript/lib/module/skia/web/JsiSkColorFilterFactory.d.ts +11 -0
  1526. package/lib/typescript/lib/module/skia/web/JsiSkContourMeasure.d.ts +10 -0
  1527. package/lib/typescript/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +6 -0
  1528. package/lib/typescript/lib/module/skia/web/JsiSkData.d.ts +4 -0
  1529. package/lib/typescript/lib/module/skia/web/JsiSkDataFactory.d.ts +15 -0
  1530. package/lib/typescript/lib/module/skia/web/JsiSkFont.d.ts +32 -0
  1531. package/lib/typescript/lib/module/skia/web/JsiSkFontMgr.d.ts +8 -0
  1532. package/lib/typescript/lib/module/skia/web/JsiSkFontMgrFactory.d.ts +5 -0
  1533. package/lib/typescript/lib/module/skia/web/JsiSkImage.d.ts +20 -0
  1534. package/lib/typescript/lib/module/skia/web/JsiSkImageFactory.d.ts +8 -0
  1535. package/lib/typescript/lib/module/skia/web/JsiSkImageFilter.d.ts +4 -0
  1536. package/lib/typescript/lib/module/skia/web/JsiSkImageFilterFactory.d.ts +16 -0
  1537. package/lib/typescript/lib/module/skia/web/JsiSkMaskFilter.d.ts +4 -0
  1538. package/lib/typescript/lib/module/skia/web/JsiSkMaskFilterFactory.d.ts +5 -0
  1539. package/lib/typescript/lib/module/skia/web/JsiSkMatrix.d.ts +17 -0
  1540. package/lib/typescript/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +5 -0
  1541. package/lib/typescript/lib/module/skia/web/JsiSkPaint.d.ts +27 -0
  1542. package/lib/typescript/lib/module/skia/web/JsiSkParagraph.d.ts +16 -0
  1543. package/lib/typescript/lib/module/skia/web/JsiSkParagraphBuilder.d.ts +13 -0
  1544. package/lib/typescript/lib/module/skia/web/JsiSkParagraphBuilderFactory.d.ts +5 -0
  1545. package/lib/typescript/lib/module/skia/web/JsiSkParagraphStyle.d.ts +3 -0
  1546. package/lib/typescript/lib/module/skia/web/JsiSkPath.d.ts +55 -0
  1547. package/lib/typescript/lib/module/skia/web/JsiSkPathEffect.d.ts +4 -0
  1548. package/lib/typescript/lib/module/skia/web/JsiSkPathEffectFactory.d.ts +12 -0
  1549. package/lib/typescript/lib/module/skia/web/JsiSkPathFactory.d.ts +9 -0
  1550. package/lib/typescript/lib/module/skia/web/JsiSkPicture.d.ts +7 -0
  1551. package/lib/typescript/lib/module/skia/web/JsiSkPictureFactory.d.ts +5 -0
  1552. package/lib/typescript/lib/module/skia/web/JsiSkPictureRecorder.d.ts +8 -0
  1553. package/lib/typescript/lib/module/skia/web/JsiSkPoint.d.ts +7 -0
  1554. package/lib/typescript/lib/module/skia/web/JsiSkRRect.d.ts +9 -0
  1555. package/lib/typescript/lib/module/skia/web/JsiSkRSXform.d.ts +10 -0
  1556. package/lib/typescript/lib/module/skia/web/JsiSkRect.d.ts +10 -0
  1557. package/lib/typescript/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +12 -0
  1558. package/lib/typescript/lib/module/skia/web/JsiSkRuntimeEffectFactory.d.ts +5 -0
  1559. package/lib/typescript/lib/module/skia/web/JsiSkSVG.d.ts +6 -0
  1560. package/lib/typescript/lib/module/skia/web/JsiSkSVGFactory.d.ts +6 -0
  1561. package/lib/typescript/lib/module/skia/web/JsiSkShader.d.ts +4 -0
  1562. package/lib/typescript/lib/module/skia/web/JsiSkShaderFactory.d.ts +12 -0
  1563. package/lib/typescript/lib/module/skia/web/JsiSkSurface.d.ts +11 -0
  1564. package/lib/typescript/lib/module/skia/web/JsiSkSurfaceFactory.d.ts +6 -0
  1565. package/lib/typescript/lib/module/skia/web/JsiSkTextBlob.d.ts +4 -0
  1566. package/lib/typescript/lib/module/skia/web/JsiSkTextBlobFactory.d.ts +8 -0
  1567. package/lib/typescript/lib/module/skia/web/JsiSkTextStyle.d.ts +37 -0
  1568. package/lib/typescript/lib/module/skia/web/JsiSkTypeface.d.ts +7 -0
  1569. package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFactory.d.ts +5 -0
  1570. package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFontProvider.d.ts +9 -0
  1571. package/lib/typescript/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +5 -0
  1572. package/lib/typescript/lib/module/skia/web/JsiSkVertices.d.ts +7 -0
  1573. package/lib/typescript/lib/module/skia/web/JsiSkVerticesFactory.d.ts +2 -0
  1574. package/lib/typescript/lib/module/skia/web/JsiSkia.d.ts +63 -0
  1575. package/lib/typescript/lib/module/skia/web/JsiVideo.d.ts +22 -0
  1576. package/lib/typescript/lib/module/skia/web/index.d.ts +1 -0
  1577. package/lib/typescript/lib/module/specs/NativeSkiaModule.d.ts +2 -0
  1578. package/lib/typescript/lib/module/specs/NativeSkiaModule.web.d.ts +0 -0
  1579. package/lib/typescript/lib/module/specs/SkiaDomViewNativeComponent.d.ts +2 -0
  1580. package/lib/typescript/lib/module/specs/SkiaPictureViewNativeComponent.d.ts +2 -0
  1581. package/lib/typescript/lib/module/views/SkiaBaseWebView.d.ts +50 -0
  1582. package/lib/typescript/lib/module/views/SkiaDomView.d.ts +24 -0
  1583. package/lib/typescript/lib/module/views/SkiaDomView.web.d.ts +4 -0
  1584. package/lib/typescript/lib/module/views/SkiaJSDomView.d.ts +23 -0
  1585. package/lib/typescript/lib/module/views/SkiaJSDomView.web.d.ts +1 -0
  1586. package/lib/typescript/lib/module/views/SkiaPictureView.d.ts +18 -0
  1587. package/lib/typescript/lib/module/views/SkiaPictureView.web.d.ts +4 -0
  1588. package/lib/typescript/lib/module/views/SkiaViewNativeId.d.ts +3 -0
  1589. package/lib/typescript/lib/module/views/api.d.ts +1 -0
  1590. package/lib/typescript/lib/module/views/index.d.ts +4 -0
  1591. package/lib/typescript/lib/module/views/types.d.ts +1 -0
  1592. package/lib/typescript/lib/module/views/useTouchHandler.d.ts +2 -0
  1593. package/lib/typescript/lib/module/web/LoadSkiaWeb.d.ts +2 -0
  1594. package/lib/typescript/lib/module/web/WithSkiaWeb.d.ts +6 -0
  1595. package/lib/typescript/lib/module/web/index.d.ts +2 -0
  1596. package/lib/typescript/src/Platform/IPlatform.d.ts +0 -1
  1597. package/lib/typescript/src/external/reanimated/buffers.d.ts +4 -4
  1598. package/lib/typescript/src/renderer/Canvas.d.ts +2 -2
  1599. package/lib/typescript/src/renderer/Container.d.ts +1 -0
  1600. package/lib/typescript/src/renderer/HostConfig.d.ts +0 -1
  1601. package/lib/typescript/src/skia/core/AnimatedImage.d.ts +1 -1
  1602. package/lib/typescript/src/skia/core/Data.d.ts +3 -3
  1603. package/lib/typescript/src/skia/core/Font.d.ts +1 -1
  1604. package/lib/typescript/src/skia/core/Image.d.ts +2 -3
  1605. package/lib/typescript/src/skia/core/Picture.d.ts +1 -1
  1606. package/lib/typescript/src/skia/core/SVG.d.ts +1 -1
  1607. package/lib/typescript/src/skia/core/SVG.web.d.ts +1 -1
  1608. package/lib/typescript/src/skia/core/Typeface.d.ts +1 -1
  1609. package/lib/typescript/src/skia/types/AnimatedImage/AnimatedImage.d.ts +5 -0
  1610. package/lib/typescript/src/skia/types/Data/Data.d.ts +1 -1
  1611. package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +16 -16
  1612. package/lib/typescript/src/skia/types/MaskFilter.d.ts +3 -3
  1613. package/lib/typescript/src/skia/types/NativeBuffer/NativeBufferFactory.d.ts +3 -3
  1614. package/lib/typescript/src/skia/types/Paint/BlendMode.d.ts +28 -28
  1615. package/lib/typescript/src/skia/types/Path/Path.d.ts +4 -4
  1616. package/lib/typescript/src/skia/types/Vertices/Vertices.d.ts +1 -1
  1617. package/lib/typescript/src/skia/web/JsiSkAnimatedImage.d.ts +1 -0
  1618. package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +1 -1
  1619. package/lib/typescript/src/skia/web/JsiSkNativeBufferFactory.d.ts +1 -1
  1620. package/lib/typescript/src/skia/web/JsiSkParagraphStyle.d.ts +1 -1
  1621. package/lib/typescript/src/specs/SkiaDomViewNativeComponent.d.ts +0 -1
  1622. package/lib/typescript/src/specs/SkiaPictureViewNativeComponent.d.ts +0 -1
  1623. package/lib/typescript/src/views/SkiaDomView.d.ts +0 -4
  1624. package/package.json +42 -19
  1625. package/scripts/setup-canvaskit.js +0 -0
  1626. package/src/Platform/Platform.web.tsx +4 -0
  1627. package/src/external/reanimated/buffers.ts +1 -1
  1628. package/src/mock/index.ts +4 -0
  1629. package/src/renderer/Container.tsx +1 -0
  1630. package/src/renderer/HostConfig.ts +7 -3
  1631. package/src/renderer/Reconciler.tsx +1 -0
  1632. package/src/skia/core/Picture.ts +2 -1
  1633. package/src/skia/types/AnimatedImage/AnimatedImage.ts +6 -0
  1634. package/src/skia/types/Matrix4.ts +2 -7
  1635. package/src/skia/types/Vertices/Vertices.tsx +1 -1
  1636. package/src/skia/web/JsiSkAnimatedImage.ts +4 -0
  1637. package/src/skia/web/JsiSkCanvas.ts +26 -26
  1638. package/src/skia/web/JsiSkNativeBufferFactory.ts +1 -5
  1639. package/src/skia/web/JsiSkParagraphStyle.ts +2 -1
  1640. package/src/views/SkiaDomView.tsx +0 -8
  1641. package/libs/ios/libskia.xcframework/Info.plist +0 -46
  1642. package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
  1643. package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
  1644. package/libs/ios/libskottie.xcframework/Info.plist +0 -46
  1645. package/libs/ios/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
  1646. package/libs/ios/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
  1647. package/libs/ios/libskparagraph.xcframework/Info.plist +0 -46
  1648. package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
  1649. package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
  1650. package/libs/ios/libsksg.xcframework/Info.plist +0 -46
  1651. package/libs/ios/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
  1652. package/libs/ios/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
  1653. package/libs/ios/libskshaper.xcframework/Info.plist +0 -46
  1654. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
  1655. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
  1656. package/libs/ios/libskunicode.xcframework/Info.plist +0 -46
  1657. package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e/libskunicode.a +0 -0
  1658. package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode.a +0 -0
  1659. package/libs/ios/libsvg.xcframework/Info.plist +0 -46
  1660. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
  1661. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
  1662. /package/android/src/{reactnative69 → latest}/java/com/shopify/reactnative/skia/ReactNativeCompatible.java +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Platform\";\n"],"mappings":"AAAA,cAAc,YAAY"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Platform\";\n"],"mappings":"AAAA,cAAc,YAAY","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./interpolate\";\nexport * from \"./interpolateColors\";\nexport * from \"./interpolateVector\";\nexport * from \"./interpolatePaths\";\n"],"mappings":"AAAA,cAAc,eAAe;AAC7B,cAAc,qBAAqB;AACnC,cAAc,qBAAqB;AACnC,cAAc,oBAAoB"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./interpolate\";\nexport * from \"./interpolateColors\";\nexport * from \"./interpolateVector\";\nexport * from \"./interpolatePaths\";\n"],"mappings":"AAAA,cAAc,eAAe;AAC7B,cAAc,qBAAqB;AACnC,cAAc,qBAAqB;AACnC,cAAc,oBAAoB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["Extrapolate","getVal","type","coef","val","leftEdgeOutput","rightEdgeOutput","x","IDENTITY","CLAMP","EXTEND","isExtrapolate","value","validateInterpolationOptions","extrapolationConfig","extrapolateLeft","extrapolateRight","Error","Object","assign","internalInterpolate","narrowedInput","leftEdgeInput","rightEdgeInput","progress","interpolate","input","output","length","i"],"sources":["interpolate.ts"],"sourcesContent":["/* eslint-disable max-len */\nexport enum Extrapolate {\n IDENTITY = \"identity\",\n CLAMP = \"clamp\",\n EXTEND = \"extend\",\n}\n\ninterface InterpolationNarrowedInput {\n leftEdgeInput: number;\n rightEdgeInput: number;\n leftEdgeOutput: number;\n rightEdgeOutput: number;\n}\n\nexport interface ExtrapolationConfig {\n extrapolateLeft?: Extrapolate | string;\n extrapolateRight?: Extrapolate | string;\n}\n\ninterface RequiredExtrapolationConfig {\n extrapolateLeft: Extrapolate;\n extrapolateRight: Extrapolate;\n}\n\nexport type ExtrapolationType =\n | ExtrapolationConfig\n | Extrapolate\n | string\n | undefined;\n\nfunction getVal(\n type: Extrapolate,\n coef: number,\n val: number,\n leftEdgeOutput: number,\n rightEdgeOutput: number,\n x: number\n): number {\n \"worklet\";\n switch (type) {\n case Extrapolate.IDENTITY:\n return x;\n case Extrapolate.CLAMP:\n if (coef * val < coef * leftEdgeOutput) {\n return leftEdgeOutput;\n }\n return rightEdgeOutput;\n case Extrapolate.EXTEND:\n default:\n return val;\n }\n}\n\nfunction isExtrapolate(value: string): value is Extrapolate {\n \"worklet\";\n return (\n value === Extrapolate.EXTEND ||\n value === Extrapolate.CLAMP ||\n value === Extrapolate.IDENTITY\n );\n}\n\n// validates extrapolations type\n// if type is correct, converts it to ExtrapolationConfig\nexport function validateInterpolationOptions(\n type: ExtrapolationType\n): RequiredExtrapolationConfig {\n \"worklet\";\n // initialize extrapolationConfig with default extrapolation\n const extrapolationConfig: RequiredExtrapolationConfig = {\n extrapolateLeft: Extrapolate.EXTEND,\n extrapolateRight: Extrapolate.EXTEND,\n };\n\n if (!type) {\n return extrapolationConfig;\n }\n\n if (typeof type === \"string\") {\n if (!isExtrapolate(type)) {\n throw new Error(\n `No supported value for \"interpolate\" \\nSupported values: [\"extend\", \"clamp\", \"identity\", Extrapolatation.CLAMP, Extrapolatation.EXTEND, Extrapolatation.IDENTITY]\\n Valid example:\n interpolate(value, [inputRange], [outputRange], \"clamp\")`\n );\n }\n extrapolationConfig.extrapolateLeft = type;\n extrapolationConfig.extrapolateRight = type;\n return extrapolationConfig;\n }\n\n // otherwise type is extrapolation config object\n if (\n (type.extrapolateLeft && !isExtrapolate(type.extrapolateLeft)) ||\n (type.extrapolateRight && !isExtrapolate(type.extrapolateRight))\n ) {\n throw new Error(\n `No supported value for \"interpolate\" \\nSupported values: [\"extend\", \"clamp\", \"identity\", Extrapolatation.CLAMP, Extrapolatation.EXTEND, Extrapolatation.IDENTITY]\\n Valid example:\n interpolate(value, [inputRange], [outputRange], {\n extrapolateLeft: Extrapolation.CLAMP,\n extrapolateRight: Extrapolation.IDENTITY\n }})`\n );\n }\n\n Object.assign(extrapolationConfig, type);\n return extrapolationConfig;\n}\n\nfunction internalInterpolate(\n x: number,\n narrowedInput: InterpolationNarrowedInput,\n extrapolationConfig: RequiredExtrapolationConfig\n) {\n \"worklet\";\n const { leftEdgeInput, rightEdgeInput, leftEdgeOutput, rightEdgeOutput } =\n narrowedInput;\n if (rightEdgeInput - leftEdgeInput === 0) {\n return leftEdgeOutput;\n }\n const progress = (x - leftEdgeInput) / (rightEdgeInput - leftEdgeInput);\n const val = leftEdgeOutput + progress * (rightEdgeOutput - leftEdgeOutput);\n const coef = rightEdgeOutput >= leftEdgeOutput ? 1 : -1;\n\n if (coef * val < coef * leftEdgeOutput) {\n return getVal(\n extrapolationConfig.extrapolateLeft,\n coef,\n val,\n leftEdgeOutput,\n rightEdgeOutput,\n x\n );\n } else if (coef * val > coef * rightEdgeOutput) {\n return getVal(\n extrapolationConfig.extrapolateRight,\n coef,\n val,\n leftEdgeOutput,\n rightEdgeOutput,\n x\n );\n }\n\n return val;\n}\n\n// e.g. function interpolate(x, input, output, type = Extrapolatation.CLAMP)\nexport function interpolate(\n x: number,\n input: readonly number[],\n output: readonly number[],\n type?: ExtrapolationType\n): number {\n \"worklet\";\n if (input.length < 2 || output.length < 2) {\n throw Error(\n \"Interpolation input and output should contain at least two values.\"\n );\n }\n\n const extrapolationConfig = validateInterpolationOptions(type);\n const { length } = input;\n const narrowedInput: InterpolationNarrowedInput = {\n leftEdgeInput: input[0],\n rightEdgeInput: input[1],\n leftEdgeOutput: output[0],\n rightEdgeOutput: output[1],\n };\n if (length > 2) {\n if (x > input[length - 1]) {\n narrowedInput.leftEdgeInput = input[length - 2];\n narrowedInput.rightEdgeInput = input[length - 1];\n narrowedInput.leftEdgeOutput = output[length - 2];\n narrowedInput.rightEdgeOutput = output[length - 1];\n } else {\n for (let i = 1; i < length; ++i) {\n if (x <= input[i]) {\n narrowedInput.leftEdgeInput = input[i - 1];\n narrowedInput.rightEdgeInput = input[i];\n narrowedInput.leftEdgeOutput = output[i - 1];\n narrowedInput.rightEdgeOutput = output[i];\n break;\n }\n }\n }\n }\n\n return internalInterpolate(x, narrowedInput, extrapolationConfig);\n}\n"],"mappings":"AAAA;AACA,WAAYA,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,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EACF;EAEA,OAAOT,mBAAmB,CAACb,CAAC,EAAEc,aAAa,EAAEP,mBAAmB,CAAC;AACnE"}
1
+ {"version":3,"names":["Extrapolate","getVal","type","coef","val","leftEdgeOutput","rightEdgeOutput","x","IDENTITY","CLAMP","EXTEND","isExtrapolate","value","validateInterpolationOptions","extrapolationConfig","extrapolateLeft","extrapolateRight","Error","Object","assign","internalInterpolate","narrowedInput","leftEdgeInput","rightEdgeInput","progress","interpolate","input","output","length","i"],"sources":["interpolate.ts"],"sourcesContent":["/* eslint-disable max-len */\nexport enum Extrapolate {\n IDENTITY = \"identity\",\n CLAMP = \"clamp\",\n EXTEND = \"extend\",\n}\n\ninterface InterpolationNarrowedInput {\n leftEdgeInput: number;\n rightEdgeInput: number;\n leftEdgeOutput: number;\n rightEdgeOutput: number;\n}\n\nexport interface ExtrapolationConfig {\n extrapolateLeft?: Extrapolate | string;\n extrapolateRight?: Extrapolate | string;\n}\n\ninterface RequiredExtrapolationConfig {\n extrapolateLeft: Extrapolate;\n extrapolateRight: Extrapolate;\n}\n\nexport type ExtrapolationType =\n | ExtrapolationConfig\n | Extrapolate\n | string\n | undefined;\n\nfunction getVal(\n type: Extrapolate,\n coef: number,\n val: number,\n leftEdgeOutput: number,\n rightEdgeOutput: number,\n x: number\n): number {\n \"worklet\";\n switch (type) {\n case Extrapolate.IDENTITY:\n return x;\n case Extrapolate.CLAMP:\n if (coef * val < coef * leftEdgeOutput) {\n return leftEdgeOutput;\n }\n return rightEdgeOutput;\n case Extrapolate.EXTEND:\n default:\n return val;\n }\n}\n\nfunction isExtrapolate(value: string): value is Extrapolate {\n \"worklet\";\n return (\n value === Extrapolate.EXTEND ||\n value === Extrapolate.CLAMP ||\n value === Extrapolate.IDENTITY\n );\n}\n\n// validates extrapolations type\n// if type is correct, converts it to ExtrapolationConfig\nexport function validateInterpolationOptions(\n type: ExtrapolationType\n): RequiredExtrapolationConfig {\n \"worklet\";\n // initialize extrapolationConfig with default extrapolation\n const extrapolationConfig: RequiredExtrapolationConfig = {\n extrapolateLeft: Extrapolate.EXTEND,\n extrapolateRight: Extrapolate.EXTEND,\n };\n\n if (!type) {\n return extrapolationConfig;\n }\n\n if (typeof type === \"string\") {\n if (!isExtrapolate(type)) {\n throw new Error(\n `No supported value for \"interpolate\" \\nSupported values: [\"extend\", \"clamp\", \"identity\", Extrapolatation.CLAMP, Extrapolatation.EXTEND, Extrapolatation.IDENTITY]\\n Valid example:\n interpolate(value, [inputRange], [outputRange], \"clamp\")`\n );\n }\n extrapolationConfig.extrapolateLeft = type;\n extrapolationConfig.extrapolateRight = type;\n return extrapolationConfig;\n }\n\n // otherwise type is extrapolation config object\n if (\n (type.extrapolateLeft && !isExtrapolate(type.extrapolateLeft)) ||\n (type.extrapolateRight && !isExtrapolate(type.extrapolateRight))\n ) {\n throw new Error(\n `No supported value for \"interpolate\" \\nSupported values: [\"extend\", \"clamp\", \"identity\", Extrapolatation.CLAMP, Extrapolatation.EXTEND, Extrapolatation.IDENTITY]\\n Valid example:\n interpolate(value, [inputRange], [outputRange], {\n extrapolateLeft: Extrapolation.CLAMP,\n extrapolateRight: Extrapolation.IDENTITY\n }})`\n );\n }\n\n Object.assign(extrapolationConfig, type);\n return extrapolationConfig;\n}\n\nfunction internalInterpolate(\n x: number,\n narrowedInput: InterpolationNarrowedInput,\n extrapolationConfig: RequiredExtrapolationConfig\n) {\n \"worklet\";\n const { leftEdgeInput, rightEdgeInput, leftEdgeOutput, rightEdgeOutput } =\n narrowedInput;\n if (rightEdgeInput - leftEdgeInput === 0) {\n return leftEdgeOutput;\n }\n const progress = (x - leftEdgeInput) / (rightEdgeInput - leftEdgeInput);\n const val = leftEdgeOutput + progress * (rightEdgeOutput - leftEdgeOutput);\n const coef = rightEdgeOutput >= leftEdgeOutput ? 1 : -1;\n\n if (coef * val < coef * leftEdgeOutput) {\n return getVal(\n extrapolationConfig.extrapolateLeft,\n coef,\n val,\n leftEdgeOutput,\n rightEdgeOutput,\n x\n );\n } else if (coef * val > coef * rightEdgeOutput) {\n return getVal(\n extrapolationConfig.extrapolateRight,\n coef,\n val,\n leftEdgeOutput,\n rightEdgeOutput,\n x\n );\n }\n\n return val;\n}\n\n// e.g. function interpolate(x, input, output, type = Extrapolatation.CLAMP)\nexport function interpolate(\n x: number,\n input: readonly number[],\n output: readonly number[],\n type?: ExtrapolationType\n): number {\n \"worklet\";\n if (input.length < 2 || output.length < 2) {\n throw Error(\n \"Interpolation input and output should contain at least two values.\"\n );\n }\n\n const extrapolationConfig = validateInterpolationOptions(type);\n const { length } = input;\n const narrowedInput: InterpolationNarrowedInput = {\n leftEdgeInput: input[0],\n rightEdgeInput: input[1],\n leftEdgeOutput: output[0],\n rightEdgeOutput: output[1],\n };\n if (length > 2) {\n if (x > input[length - 1]) {\n narrowedInput.leftEdgeInput = input[length - 2];\n narrowedInput.rightEdgeInput = input[length - 1];\n narrowedInput.leftEdgeOutput = output[length - 2];\n narrowedInput.rightEdgeOutput = output[length - 1];\n } else {\n for (let i = 1; i < length; ++i) {\n if (x <= input[i]) {\n narrowedInput.leftEdgeInput = input[i - 1];\n narrowedInput.rightEdgeInput = input[i];\n narrowedInput.leftEdgeOutput = output[i - 1];\n narrowedInput.rightEdgeOutput = output[i];\n break;\n }\n }\n }\n }\n\n return internalInterpolate(x, narrowedInput, extrapolationConfig);\n}\n"],"mappings":"AAAA;AACA,WAAYA,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AA6BvB,SAASC,MAAMA,CACbC,IAAiB,EACjBC,IAAY,EACZC,GAAW,EACXC,cAAsB,EACtBC,eAAuB,EACvBC,CAAS,EACD;EACR,SAAS;;EACT,QAAQL,IAAI;IACV,KAAKF,WAAW,CAACQ,QAAQ;MACvB,OAAOD,CAAC;IACV,KAAKP,WAAW,CAACS,KAAK;MACpB,IAAIN,IAAI,GAAGC,GAAG,GAAGD,IAAI,GAAGE,cAAc,EAAE;QACtC,OAAOA,c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B,cAAc,EAAEsB,MAAM,CAAC,CAAC,CAAC;IACzBrB,eAAe,EAAEqB,MAAM,CAAC,CAAC;EAC3B,CAAC;EACD,IAAIC,MAAM,GAAG,CAAC,EAAE;IACd,IAAIrB,CAAC,GAAGmB,KAAK,CAACE,MAAM,GAAG,CAAC,CAAC,EAAE;MACzBP,aAAa,CAACC,aAAa,GAAGI,KAAK,CAACE,MAAM,GAAG,CAAC,CAAC;MAC/CP,aAAa,CAACE,cAAc,GAAGG,KAAK,CAACE,MAAM,GAAG,CAAC,CAAC;MAChDP,aAAa,CAAChB,cAAc,GAAGsB,MAAM,CAACC,MAAM,GAAG,CAAC,CAAC;MACjDP,aAAa,CAACf,eAAe,GAAGqB,MAAM,CAACC,MAAM,GAAG,CAAC,CAAC;IACpD,CAAC,MAAM;MACL,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGD,MAAM,EAAE,EAAEC,CAAC,EAAE;QAC/B,IAAItB,CAAC,IAAImB,KAAK,CAACG,CAAC,CAAC,EAAE;UACjBR,aAAa,CAACC,aAAa,GAAGI,KAAK,CAACG,CAAC,GAAG,CAAC,CAAC;UAC1CR,aAAa,CAACE,cAAc,GAAGG,KAAK,CAACG,CAAC,CAAC;UACvCR,aAAa,CAAChB,cAAc,GAAGsB,MAAM,CAACE,CAAC,GAAG,CAAC,CAAC;UAC5CR,aAAa,CAACf,eAAe,GAAGqB,MAAM,CAACE,CAAC,CAAC;UACzC;QACF;MACF;IACF;EACF;EAEA,OAAOT,mBAAmB,CAACb,CAAC,EAAEc,aAAa,EAAEP,mBAAmB,CAAC;AACnE","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["mix","Skia","interpolate","interpolateColorsRGB","value","inputRange","outputRange","r","map","c","g","b","a","interpolateColors","_outputRange","cl","Color","mixColors","x","y","c1","c2","Float32Array"],"sources":["interpolateColors.ts"],"sourcesContent":["import { mix } from \"../../renderer/processors/math\";\nimport type { Color, SkColor } from \"../../skia\";\nimport { Skia } from \"../../skia\";\n\nimport { interpolate } from \"./interpolate\";\n\nconst interpolateColorsRGB = (\n value: number,\n inputRange: number[],\n outputRange: SkColor[]\n) => {\n \"worklet\";\n const r = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[0]),\n \"clamp\"\n );\n const g = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[1]),\n \"clamp\"\n );\n const b = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[2]),\n \"clamp\"\n );\n const a = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[3]),\n \"clamp\"\n );\n // TODO: once Float32Array are supported in the reanimated integration we can switch there\n return [r, g, b, a];\n};\n\nexport const interpolateColors = (\n value: number,\n inputRange: number[],\n _outputRange: Color[]\n) => {\n \"worklet\";\n const outputRange = _outputRange.map((cl) => Skia.Color(cl));\n return interpolateColorsRGB(value, inputRange, outputRange);\n};\n\nexport const mixColors = (value: number, x: Color, y: Color) => {\n \"worklet\";\n const c1 = Skia.Color(x);\n const c2 = Skia.Color(y);\n return new Float32Array([\n mix(value, c1[0], c2[0]),\n mix(value, c1[1], c2[1]),\n mix(value, c1[2], c2[2]),\n mix(value, c1[3], c2[3]),\n ]);\n};\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gCAAgC;AAEpD,SAASC,IAAI,QAAQ,YAAY;AAEjC,SAASC,WAAW,QAAQ,eAAe;AAE3C,MAAMC,oBAAoB,GAAGA,CAC3BC,KAAa,EACbC,UAAoB,EACpBC,WAAsB,KACnB;EACH,SAAS;;EACT,MAAMC,CAAC,GAAGL,WAAW,CACnBE,KAAK,EACLC,UAAU,EACVC,WAAW,CAACE,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAAC,CAAC,CAAC,CAAC,EAC5B,OACF,CAAC;EACD,MAAMC,CAAC,GAAGR,WAAW,CACnBE,KAAK,EACLC,UAAU,EACVC,WAAW,CAACE,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAAC,CAAC,CAAC,CAAC,EAC5B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AACI,KAAK,EAAEgB,EAAE,CAAC,CAAC,CAAC,EAAEC,EAAE,CAAC,CAAC,CAAC,CAAC,CACzB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"names":["mix","Skia","interpolate","interpolateColorsRGB","value","inputRange","outputRange","r","map","c","g","b","a","interpolateColors","_outputRange","cl","Color","mixColors","x","y","c1","c2","Float32Array"],"sources":["interpolateColors.ts"],"sourcesContent":["import { mix } from \"../../renderer/processors/math\";\nimport type { Color, SkColor } from \"../../skia\";\nimport { Skia } from \"../../skia\";\n\nimport { interpolate } from \"./interpolate\";\n\nconst interpolateColorsRGB = (\n value: number,\n inputRange: number[],\n outputRange: SkColor[]\n) => {\n \"worklet\";\n const r = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[0]),\n \"clamp\"\n );\n const g = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[1]),\n \"clamp\"\n );\n const b = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[2]),\n \"clamp\"\n );\n const a = interpolate(\n value,\n inputRange,\n outputRange.map((c) => c[3]),\n \"clamp\"\n );\n // TODO: once Float32Array are supported in the reanimated integration we can switch there\n return [r, g, b, a];\n};\n\nexport const interpolateColors = (\n value: number,\n inputRange: number[],\n _outputRange: Color[]\n) => {\n \"worklet\";\n const outputRange = _outputRange.map((cl) => Skia.Color(cl));\n return interpolateColorsRGB(value, inputRange, outputRange);\n};\n\nexport const mixColors = (value: number, x: Color, y: Color) => {\n \"worklet\";\n const c1 = Skia.Color(x);\n const c2 = Skia.Color(y);\n return new Float32Array([\n mix(value, c1[0], c2[0]),\n mix(value, c1[1], c2[1]),\n mix(value, c1[2], c2[2]),\n mix(value, c1[3], c2[3]),\n ]);\n};\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gCAAgC;AAEpD,SAASC,IAAI,QAAQ,YAAY;AAEjC,SAASC,WAAW,QAAQ,eAAe;AAE3C,MAAMC,oBAAoB,GAAGA,CAC3BC,KAAa,EACbC,UAAoB,EACpB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AY,CAAC,CACtBtB,GAAG,CAACI,KAAK,EAAEgB,EAAE,CAAC,CAAC,CAAC,EAAEC,EAAE,CAAC,CAAC,CAAC,CAAC,EACxBrB,GAAG,CAACI,KAAK,EAAEgB,EAAE,CAAC,CAAC,CAAC,EAAEC,EAAE,CAAC,CAAC,CAAC,CAAC,EACxBrB,GAAG,CAACI,KAAK,EAAEgB,EAAE,CAAC,CAAC,CAAC,EAAEC,EAAE,CAAC,CAAC,CAAC,CAAC,EACxBrB,GAAG,CAACI,KAAK,EAAEgB,EAAE,CAAC,CAAC,CAAC,EAAEC,EAAE,CAAC,CAAC,CAAC,CAAC,CACzB,CAAC;AACJ,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["exhaustiveCheck","validateInterpolationOptions","Extrapolate","lerp","value","from","to","p1","p2","output","t","interpolate","interpolatePaths","input","outputRange","options","extrapolation","extrapolateLeft","CLAMP","EXTEND","IDENTITY","Error","length","extrapolateRight","i"],"sources":["interpolatePaths.ts"],"sourcesContent":["import type { SkPath } from \"../../skia/types\";\nimport { exhaustiveCheck } from \"../../renderer/typeddash\";\n\nimport type { ExtrapolationType } from \"./interpolate\";\nimport { validateInterpolationOptions, Extrapolate } from \"./interpolate\";\n\nconst lerp = (\n value: number,\n from: number,\n to: number,\n p1: SkPath,\n p2: SkPath,\n output?: SkPath\n) => {\n \"worklet\";\n const t = (value - from) / (to - from);\n return p2.interpolate(p1, t, output)!;\n};\n\n/**\n * Maps an input value within a range to an output path within a path range.\n * @param value - The input value.\n * @param inputRange - The range of the input value.\n * @param outputRange - The range of the output path.\n * @param options - Extrapolation options\n * @returns The output path.\n * @example <caption>Map a value between 0 and 1 to a path between two paths.</caption>\n * const path1 = new Path();\n * path1.moveTo(0, 0);\n * path1.lineTo(100, 0);\n * const path2 = new Path();\n * path2.moveTo(0, 0);\n * path2.lineTo(0, 100);\n * const path = interpolatePath(0.5, [0, 1], [path1, path2]);\n */\nexport const interpolatePaths = (\n value: number,\n input: number[],\n outputRange: SkPath[],\n options?: ExtrapolationType,\n output?: SkPath\n) => {\n \"worklet\";\n const extrapolation = validateInterpolationOptions(options);\n if (value < input[0]) {\n switch (extrapolation.extrapolateLeft) {\n case Extrapolate.CLAMP:\n return outputRange[0];\n case Extrapolate.EXTEND:\n return lerp(value, input[0], input[1], outputRange[0], outputRange[1]);\n case Extrapolate.IDENTITY:\n throw new Error(\n \"Identity is not a supported extrapolation type for interpolatePaths()\"\n );\n default:\n exhaustiveCheck(extrapolation.extrapolateLeft);\n }\n } else if (value > input[input.length - 1]) {\n switch (extrapolation.extrapolateRight) {\n case Extrapolate.CLAMP:\n return outputRange[outputRange.length - 1];\n case Extrapolate.EXTEND:\n return lerp(\n value,\n input[input.length - 2],\n input[input.length - 1],\n outputRange[input.length - 2],\n outputRange[input.length - 1]\n );\n case Extrapolate.IDENTITY:\n throw new Error(\n \"Identity is not a supported extrapolation type for interpolatePaths()\"\n );\n default:\n exhaustiveCheck(extrapolation.extrapolateRight);\n }\n }\n let i = 0;\n for (; i <= input.length - 1; i++) {\n if (value >= input[i] && value <= input[i + 1]) {\n break;\n }\n }\n return lerp(\n value,\n input[i],\n input[i + 1],\n outputRange[i],\n outputRange[i + 1],\n output\n );\n};\n"],"mappings":"AACA,SAASA,eAAe,QAAQ,0BAA0B;AAG1D,SAASC,4BAA4B,EAAEC,WAAW,QAAQ,eAAe;AAEzE,MAAMC,IAAI,GAAGA,CACXC,KAAa,EACbC,IAAY,EACZC,EAAU,EACVC,EAAU,EACVC,EAAU,EACVC,MAAe,KACZ;EACH,SAAS;;EACT,MAAMC,CAAC,GAAG,CAACN,KAAK,GAAGC,IAAI,KAAKC,EAAE,GAAGD,IAAI,CAAC;EACtC,OAAOG,EAAE,CAACG,WAAW,CAACJ,EAAE,EAAEG,CAAC,EAAED,MAAM,CAAC;AACtC,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAA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b,uEACF,CAAC;MACH;QACErB,eAAe,CAACgB,aAAa,CAACO,gBAAgB,CAAC;IACnD;EACF;EACA,IAAIC,CAAC,GAAG,CAAC;EACT,OAAOA,CAAC,IAAIX,KAAK,CAACS,MAAM,GAAG,CAAC,EAAEE,CAAC,EAAE,EAAE;IACjC,IAAIpB,KAAK,IAAIS,KAAK,CAACW,CAAC,CAAC,IAAIpB,KAAK,IAAIS,KAAK,CAACW,CAAC,GAAG,CAAC,CAAC,EAAE;MAC9C;IACF;EACF;EACA,OAAOrB,IAAI,CACTC,KAAK,EACLS,KAAK,CAACW,CAAC,CAAC,EACRX,KAAK,CAACW,CAAC,GAAG,CAAC,CAAC,EACZV,WAAW,CAACU,CAAC,CAAC,EACdV,WAAW,CAACU,CAAC,GAAG,CAAC,CAAC,EAClBf,MACF,CAAC;AACH,CAAC"}
1
+ {"version":3,"names":["exhaustiveCheck","validateInterpolationOptions","Extrapolate","lerp","value","from","to","p1","p2","output","t","interpolate","interpolatePaths","input","outputRange","options","extrapolation","extrapolateLeft","CLAMP","EXTEND","IDENTITY","Error","length","extrapolateRight","i"],"sources":["interpolatePaths.ts"],"sourcesContent":["import type { SkPath } from \"../../skia/types\";\nimport { exhaustiveCheck } from \"../../renderer/typeddash\";\n\nimport type { ExtrapolationType } from \"./interpolate\";\nimport { validateInterpolationOptions, Extrapolate } from \"./interpolate\";\n\nconst lerp = (\n value: number,\n from: number,\n to: number,\n p1: SkPath,\n p2: SkPath,\n output?: SkPath\n) => {\n \"worklet\";\n const t = (value - from) / (to - from);\n return p2.interpolate(p1, t, output)!;\n};\n\n/**\n * Maps an input value within a range to an output path within a path range.\n * @param value - The input value.\n * @param inputRange - The range of the input value.\n * @param outputRange - The range of the output path.\n * @param options - Extrapolation options\n * @returns The output path.\n * @example <caption>Map a value between 0 and 1 to a path between two paths.</caption>\n * const path1 = new Path();\n * path1.moveTo(0, 0);\n * path1.lineTo(100, 0);\n * const path2 = new Path();\n * path2.moveTo(0, 0);\n * path2.lineTo(0, 100);\n * const path = interpolatePath(0.5, [0, 1], [path1, path2]);\n */\nexport const interpolatePaths = (\n value: number,\n input: number[],\n outputRange: SkPath[],\n options?: ExtrapolationType,\n output?: SkPath\n) => {\n \"worklet\";\n const extrapolation = validateInterpolationOptions(options);\n if (value < input[0]) {\n switch (extrapolation.extrapolateLeft) {\n case Extrapolate.CLAMP:\n return outputRange[0];\n case Extrapolate.EXTEND:\n return lerp(value, input[0], input[1], outputRange[0], outputRange[1]);\n case Extrapolate.IDENTITY:\n throw new Error(\n \"Identity is not a supported extrapolation type for interpolatePaths()\"\n );\n default:\n exhaustiveCheck(extrapolation.extrapolateLeft);\n }\n } else if (value > input[input.length - 1]) {\n switch (extrapolation.extrapolateRight) {\n case Extrapolate.CLAMP:\n return outputRange[outputRange.length - 1];\n case Extrapolate.EXTEND:\n return lerp(\n value,\n input[input.length - 2],\n input[input.length - 1],\n outputRange[input.length - 2],\n outputRange[input.length - 1]\n );\n case Extrapolate.IDENTITY:\n throw new Error(\n \"Identity is not a supported extrapolation type for interpolatePaths()\"\n );\n default:\n exhaustiveCheck(extrapolation.extrapolateRight);\n }\n }\n let i = 0;\n for (; i <= input.length - 1; i++) {\n if (value >= input[i] && value <= input[i + 1]) {\n break;\n }\n }\n return lerp(\n value,\n input[i],\n input[i + 1],\n outputRange[i],\n outputRange[i + 1],\n output\n );\n};\n"],"mappings":"AACA,SAASA,eAAe,QAAQ,0BAA0B;AAG1D,SAASC,4BAA4B,EAAEC,WAAW,QAAQ,eAAe;AAEzE,MAAMC,IAAI,GAAGA,CACXC,KAAa,EACbC,IAAY,EACZC,EAAU,EACVC,EAAU,EACVC,EAAU,EACVC,MAAe,KACZ;EACH,SAAS;;EACT,MAAMC,CAAC,GAAG,CAACN,KAAK,GAAGC,IAAI,KAAKC,EAAE,GAAGD,IAAI,CAAC;EACtC,OAAOG,EAAE,CAACG,WAAW,CAACJ,EAAE,EAAEG,CAAC,EAAED,MAAM,CAAC;AACtC,CAAC;;AAED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,CAAC,CAC9B,CAAC;MACH,KAAKpB,WAAW,CAACkB,QAAQ;QACvB,MAAM,IAAIC,KAAK,CACb,uEACF,CAAC;MACH;QACErB,eAAe,CAACgB,aAAa,CAACO,gBAAgB,CAAC;IACnD;EACF;EACA,IAAIC,CAAC,GAAG,CAAC;EACT,OAAOA,CAAC,IAAIX,KAAK,CAACS,MAAM,GAAG,CAAC,EAAEE,CAAC,EAAE,EAAE;IACjC,IAAIpB,KAAK,IAAIS,KAAK,CAACW,CAAC,CAAC,IAAIpB,KAAK,IAAIS,KAAK,CAACW,CAAC,GAAG,CAAC,CAAC,EAAE;MAC9C;IACF;EACF;EACA,OAAOrB,IAAI,CACTC,KAAK,EACLS,KAAK,CAACW,CAAC,CAAC,EACRX,KAAK,CAACW,CAAC,GAAG,CAAC,CAAC,EACZV,WAAW,CAACU,CAAC,CAAC,EACdV,WAAW,CAACU,CAAC,GAAG,CAAC,CAAC,EAClBf,MACF,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["interpolate","interpolateVector","value","inputRange","outputRange","options","x","map","v","y","mixVector","from","to"],"sources":["interpolateVector.ts"],"sourcesContent":["import type { Vector } from \"../../skia/types\";\n\nimport { interpolate } from \"./interpolate\";\n\nexport const interpolateVector = (\n value: number,\n inputRange: readonly number[],\n outputRange: readonly Vector[],\n options?: Parameters<typeof interpolate>[3]\n) => {\n \"worklet\";\n return {\n x: interpolate(\n value,\n inputRange,\n outputRange.map((v) => v.x),\n options\n ),\n y: interpolate(\n value,\n inputRange,\n outputRange.map((v) => v.y),\n options\n ),\n };\n};\n\nexport const mixVector = (value: number, from: Vector, to: Vector) => {\n \"worklet\";\n return interpolateVector(value, [0, 1], [from, to]);\n};\n"],"mappings":"AAEA,SAASA,WAAW,QAAQ,eAAe;AAE3C,OAAO,MAAMC,iBAAiB,GAAGA,CAC/BC,KAAa,EACbC,UAA6B,EAC7BC,WAA8B,EAC9BC,OAA2C,KACxC;EACH,SAAS;;EACT,OAAO;IACLC,CAAC,EAAEN,WAAW,CACZE,KAAK,EACLC,UAAU,EACVC,WAAW,CAACG,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACF,CAAC,CAAC,EAC3BD,OACF,CAAC;IACDI,CAAC,EAAET,WAAW,CACZE,KAAK,EACLC,UAAU,EACVC,WAAW,CAACG,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACC,CAAC,CAAC,EAC3BJ,OACF;EACF,CAAC;AACH,CAAC;AAED,OAAO,MAAMK,SAAS,GAAGA,CAACR,KAAa,EAAES,IAAY,EAAEC,EAAU,KAAK;EACpE,SAAS;;EACT,OAAOX,iBAAiB,CAACC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAACS,IAAI,EAAEC,EAAE,CAAC,CAAC;AACrD,CAAC"}
1
+ {"version":3,"names":["interpolate","interpolateVector","value","inputRange","outputRange","options","x","map","v","y","mixVector","from","to"],"sources":["interpolateVector.ts"],"sourcesContent":["import type { Vector } from \"../../skia/types\";\n\nimport { interpolate } from \"./interpolate\";\n\nexport const interpolateVector = (\n value: number,\n inputRange: readonly number[],\n outputRange: readonly Vector[],\n options?: Parameters<typeof interpolate>[3]\n) => {\n \"worklet\";\n return {\n x: interpolate(\n value,\n inputRange,\n outputRange.map((v) => v.x),\n options\n ),\n y: interpolate(\n value,\n inputRange,\n outputRange.map((v) => v.y),\n options\n ),\n };\n};\n\nexport const mixVector = (value: number, from: Vector, to: Vector) => {\n \"worklet\";\n return interpolateVector(value, [0, 1], [from, to]);\n};\n"],"mappings":"AAEA,SAASA,WAAW,QAAQ,eAAe;AAE3C,OAAO,MAAMC,iBAAiB,GAAGA,CAC/BC,KAAa,EACbC,UAA6B,EAC7BC,WAA8B,EAC9BC,OAA2C,KACxC;EACH,SAAS;;EACT,OAAO;IACLC,CAAC,EAAEN,WAAW,CACZE,KAAK,EACLC,UAAU,EACVC,WAAW,CAACG,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACF,CAAC,CAAC,EAC3BD,OACF,CAAC;IACDI,CAAC,EAAET,WAAW,CACZE,KAAK,EACLC,UAAU,EACVC,WAAW,CAACG,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACC,CAAC,CAAC,EAC3BJ,OACF;EACF,CAAC;AACH,CAAC;AAED,OAAO,MAAMK,SAAS,GAAGA,CAACR,KAAa,EAAES,IAAY,EAAEC,EAAU,KAAK;EACpE,SAAS;;EACT,OAAOX,iBAAiB,CAACC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAACS,IAAI,EAAEC,EAAE,CAAC,CAAC;AACrD,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./functions\";\n"],"mappings":"AAAA,cAAc,aAAa"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./functions\";\n"],"mappings":"AAAA,cAAc,aAAa","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
3
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { JsiDeclarationNode } from "./Node";
5
5
  import { PaintNode } from "./PaintNode";
@@ -1 +1 @@
1
- {"version":3,"names":["JsiDeclarationNode","PaintNode","JsiRenderNode","JsiDrawingNode","constructor","ctx","type","props","_defineProperty","derived","deriveProps","setProps","setProp","name","value","hasChanged","addChild","child","Error","insertChildBefore","before","renderNode","paint","draw","children","map","declCtx","declarationCtx","save","decorate","paints","pop","restore"],"sources":["DrawingNode.ts"],"sourcesContent":["import type {\n DrawingContext,\n DrawingNodeProps,\n Node,\n NodeType,\n RenderNode,\n} from \"../types\";\n\nimport type { NodeContext } from \"./Node\";\nimport { JsiDeclarationNode } from \"./Node\";\nimport { PaintNode } from \"./PaintNode\";\nimport { JsiRenderNode } from \"./RenderNode\";\n\nexport abstract class JsiDrawingNode<P extends DrawingNodeProps, C>\n extends JsiRenderNode<P>\n implements RenderNode<P>\n{\n protected derived?: C;\n\n constructor(ctx: NodeContext, type: NodeType, props: P) {\n super(ctx, type, props);\n this.derived = this.deriveProps();\n }\n\n setProps(props: P) {\n super.setProps(props);\n this.derived = this.deriveProps();\n }\n\n setProp<K extends keyof P>(name: K, value: P[K]) {\n const hasChanged = super.setProp(name, value);\n if (hasChanged) {\n this.derived = this.deriveProps();\n }\n return hasChanged;\n }\n\n addChild(child: Node<unknown>): void {\n if (!(child instanceof JsiDeclarationNode)) {\n throw new Error(`Cannot add ${child.type} to ${this.type}`);\n }\n super.addChild(child);\n this.derived = this.deriveProps();\n }\n\n insertChildBefore(child: Node<unknown>, before: Node<unknown>): void {\n if (!(child instanceof JsiDeclarationNode)) {\n throw new Error(`Cannot add ${child.type} to ${this.type}`);\n }\n super.insertChildBefore(child, before);\n this.derived = this.deriveProps();\n }\n\n renderNode(ctx: DrawingContext): void {\n if (this.props.paint) {\n this.draw({ ...ctx, paint: this.props.paint });\n } else {\n this.draw(ctx);\n }\n this.children().map((child) => {\n if (child instanceof PaintNode) {\n const declCtx = ctx.declarationCtx;\n declCtx.save();\n child.decorate(declCtx);\n const paint = declCtx.paints.pop()!;\n declCtx.restore();\n this.draw({ ...ctx, paint });\n }\n });\n }\n\n protected abstract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AK,CAACX,IAAK,OAAM,IAAI,CAACA,IAAK,EAAC,CAAC;IAC7D;IACA,KAAK,CAACa,iBAAiB,CAACF,KAAK,EAAEG,MAAM,CAAC;IACtC,IAAI,CAACX,OAAO,GAAG,IAAI,CAACC,WAAW,CAAC,CAAC;EACnC;EAEAW,UAAUA,CAAChB,GAAmB,EAAQ;IACpC,IAAI,IAAI,CAACE,KAAK,CAACe,KAAK,EAAE;MACpB,IAAI,CAACC,IAAI,CAAC;QAAE,GAAGlB,GAAG;QAAEiB,KAAK,EAAE,IAAI,CAACf,KAAK,CAACe;MAAM,CAAC,CAAC;IAChD,CAAC,MAAM;MACL,IAAI,CAACC,IAAI,CAAClB,GAAG,CAAC;IAChB;IACA,IAAI,CAACmB,QAAQ,CAAC,CAAC,CAACC,GAAG,CAAER,KAAK,IAAK;MAC7B,IAAIA,KAAK,YAAYhB,SAAS,EAAE;QAC9B,MAAMyB,OAAO,GAAGrB,GAAG,CAACsB,cAAc;QAClCD,OAAO,CAACE,IAAI,CAAC,CAAC;QACdX,KAAK,CAACY,QAAQ,CAACH,OAAO,CAAC;QACvB,MAAMJ,KAAK,GAAGI,OAAO,CAACI,MAAM,CAACC,GAAG,CAAC,CAAE;QACnCL,OAAO,CAACM,OAAO,CAAC,CAAC;QACjB,IAAI,CAACT,IAAI,CAAC;UAAE,GAAGlB,GAAG;UAAEiB;QAAM,CAAC,CAAC;MAC9B;IACF,CAAC,CAAC;EACJ;AAIF"}
1
+ {"version":3,"names":["JsiDeclarationNode","PaintNode","JsiRenderNode","JsiDrawingNode","constructor","ctx","type","props","_defineProperty","derived","deriveProps","setProps","setProp","name","value","hasChanged","addChild","child","Error","insertChildBefore","before","renderNode","paint","draw","children","map","declCtx","declarationCtx","save","decorate","paints","pop","restore"],"sources":["DrawingNode.ts"],"sourcesContent":["import type {\n DrawingContext,\n DrawingNodeProps,\n Node,\n NodeType,\n RenderNode,\n} from \"../types\";\n\nimport type { NodeContext } from \"./Node\";\nimport { JsiDeclarationNode } from \"./Node\";\nimport { PaintNode } from \"./PaintNode\";\nimport { JsiRenderNode } from \"./RenderNode\";\n\nexport abstract class JsiDrawingNode<P extends DrawingNodeProps, C>\n extends JsiRenderNode<P>\n implements RenderNode<P>\n{\n protected derived?: C;\n\n constructor(ctx: NodeContext, type: NodeType, props: P) {\n super(ctx, type, props);\n this.derived = this.deriveProps();\n }\n\n setProps(props: P) {\n super.setProps(props);\n this.derived = this.deriveProps();\n }\n\n setProp<K extends keyof P>(name: K, value: P[K]) {\n const hasChanged = super.setProp(name, value);\n if (hasChanged) {\n this.derived = this.deriveProps();\n }\n return hasChanged;\n }\n\n addChild(child: Node<unknown>): void {\n if (!(child instanceof JsiDeclarationNode)) {\n throw new Error(`Cannot add ${child.type} to ${this.type}`);\n }\n super.addChild(child);\n this.derived = this.deriveProps();\n }\n\n insertChildBefore(child: Node<unknown>, before: Node<unknown>): void {\n if (!(child instanceof JsiDeclarationNode)) {\n throw new Error(`Cannot add ${child.type} to ${this.type}`);\n }\n super.insertChildBefore(child, before);\n this.derived = this.deriveProps();\n }\n\n renderNode(ctx: DrawingContext): void {\n if (this.props.paint) {\n this.draw({ ...ctx, paint: this.props.paint });\n } else {\n this.draw(ctx);\n }\n this.children().map((child) => {\n if (child instanceof PaintNode) {\n const declCtx = ctx.declarationCtx;\n declCtx.save();\n child.decorate(declCtx);\n const paint = declCtx.paints.pop()!;\n declCtx.restore();\n this.draw({ ...ctx, paint });\n }\n });\n }\n\n protected abstract draw(ctx: DrawingContext): void;\n protected abstract deriveProps(): C;\n}\n"],"mappings":";;;AASA,SAASA,kBAAkB,QAAQ,QAAQ;AAC3C,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,aAAa,QAAQ,cAAc;AAE5C,OAAO,MAAeC,cAAc,SAC1BD,aAAa,CAEvB;EAGEE,WAAWA,CAACC,GAAgB,EAAEC,IAAc,EAAEC,KAAQ,EAAE;IACtD,KAAK,CAACF,GAAG,EAAEC,IAAI,EAAEC,KAAK,C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;QAAEiB,KAAK,EAAE,IAAI,CAACf,KAAK,CAACe;MAAM,CAAC,CAAC;IAChD,CAAC,MAAM;MACL,IAAI,CAACC,IAAI,CAAClB,GAAG,CAAC;IAChB;IACA,IAAI,CAACmB,QAAQ,CAAC,CAAC,CAACC,GAAG,CAAER,KAAK,IAAK;MAC7B,IAAIA,KAAK,YAAYhB,SAAS,EAAE;QAC9B,MAAMyB,OAAO,GAAGrB,GAAG,CAACsB,cAAc;QAClCD,OAAO,CAACE,IAAI,CAAC,CAAC;QACdX,KAAK,CAACY,QAAQ,CAACH,OAAO,CAAC;QACvB,MAAMJ,KAAK,GAAGI,OAAO,CAACI,MAAM,CAACC,GAAG,CAAC,CAAE;QACnCL,OAAO,CAACM,OAAO,CAAC,CAAC;QACjB,IAAI,CAACT,IAAI,CAAC;UAAE,GAAGlB,GAAG;UAAEiB;QAAM,CAAC,CAAC;MAC9B;IACF,CAAC,CAAC;EACJ;AAIF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["NodeType","JsiRenderNode","GroupNode","constructor","ctx","props","Group","renderNode","children","map","child","render"],"sources":["GroupNode.ts"],"sourcesContent":["import type { DrawingContext, GroupProps } from \"../types\";\nimport { NodeType } from \"../types\";\n\nimport { JsiRenderNode } from \"./RenderNode\";\nimport type { NodeContext } from \"./Node\";\n\nexport class GroupNode extends JsiRenderNode<GroupProps> {\n constructor(ctx: NodeContext, props: GroupProps) {\n super(ctx, NodeType.Group, props);\n }\n\n renderNode(ctx: DrawingContext): void {\n this.children().map((child) => {\n if (child instanceof JsiRenderNode) {\n child.render(ctx);\n }\n });\n }\n}\n"],"mappings":"AACA,SAASA,QAAQ,QAAQ,UAAU;AAEnC,SAASC,aAAa,QAAQ,cAAc;AAG5C,OAAO,MAAMC,SAAS,SAASD,aAAa,CAAa;EACvDE,WAAWA,CAACC,GAAgB,EAAEC,KAAiB,EAAE;IAC/C,KAAK,CAACD,GAAG,EAAEJ,QAAQ,CAACM,KAAK,EAAED,KAAK,CAAC;EACnC;EAEAE,UAAUA,CAACH,GAAmB,EAAQ;IACpC,IAAI,CAACI,QAAQ,CAAC,CAAC,CAACC,GAAG,CAAEC,KAAK,IAAK;MAC7B,IAAIA,KAAK,YAAYT,aAAa,EAAE;QAClCS,KAAK,CAACC,MAAM,CAACP,GAAG,CAAC;MACnB;IACF,CAAC,CAAC;EACJ;AACF"}
1
+ {"version":3,"names":["NodeType","JsiRenderNode","GroupNode","constructor","ctx","props","Group","renderNode","children","map","child","render"],"sources":["GroupNode.ts"],"sourcesContent":["import type { DrawingContext, GroupProps } from \"../types\";\nimport { NodeType } from \"../types\";\n\nimport { JsiRenderNode } from \"./RenderNode\";\nimport type { NodeContext } from \"./Node\";\n\nexport class GroupNode extends JsiRenderNode<GroupProps> {\n constructor(ctx: NodeContext, props: GroupProps) {\n super(ctx, NodeType.Group, props);\n }\n\n renderNode(ctx: DrawingContext): void {\n this.children().map((child) => {\n if (child instanceof JsiRenderNode) {\n child.render(ctx);\n }\n });\n }\n}\n"],"mappings":"AACA,SAASA,QAAQ,QAAQ,UAAU;AAEnC,SAASC,aAAa,QAAQ,cAAc;AAG5C,OAAO,MAAMC,SAAS,SAASD,aAAa,CAAa;EACvDE,WAAWA,CAACC,GAAgB,EAAEC,KAAiB,EAAE;IAC/C,KAAK,CAACD,GAAG,EAAEJ,QAAQ,CAACM,KAAK,EAAED,KAAK,CAAC;EACnC;EAEAE,UAAUA,CAACH,GAAmB,EAAQ;IACpC,IAAI,CAACI,QAAQ,CAAC,CAAC,CAACC,GAAG,CAAEC,KAAK,IAAK;MAC7B,IAAIA,KAAK,YAAYT,aAAa,EAAE;QAClCS,KAAK,CAACC,MAAM,CAACP,GAAG,CAAC;MACnB;IACF,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["FillNode","ImageNode","CircleNode","PathNode","LineNode","PatchNode","PointsNode","RectNode","RRectNode","VerticesNode","TextNode","OvalNode","TextPathNode","TextBlobNode","GlyphsNode","DiffRectNode","PictureNode","ImageSVGNode","BackdropFilterNode","BoxNode","BoxShadowNode","AtlasNode","BlendImageFilterNode","BlurImageFilterNode","BlurMaskFilterNode","DisplacementMapImageFilterNode","DropShadowImageFilterNode","OffsetImageFilterNode","RuntimeShaderImageFilterNode","CornerPathEffectNode","DiscretePathEffectNode","DashPathEffectNode","Path1DPathEffectNode","Path2DPathEffectNode","SumPathEffectNode","Line2DPathEffectNode","BlendNode","MatrixColorFilterNode","LumaColorFilterNode","LinearToSRGBGammaColorFilterNode","SRGBToLinearGammaColorFilterNode","BlendColorFilterNode","LerpColorFilterNode","LinearGradientNode","ShaderNode","ImageShaderNode","TwoPointConicalGradientNode","TurbulenceNode","SweepGradientNode","RadialGradientNode","FractalNoiseNode","ColorNode","MorphologyImageFilterNode","GroupNode","PaintNode","LayerNode","ParagraphNode","JsiSkDOM","constructor","ctx","native","Layer","props","global","SkiaDomApi","Group","Paint","Fill","Image","Circle","Path","Line","Oval","Patch","Points","Rect","RRect","Vertices","Text","TextPath","TextBlob","Glyphs","DiffRect","Picture","Atlas","ImageSVG","BlurMaskFilter","BlendImageFilter","DropShadowImageFilter","DisplacementMapImageFilter","BlurImageFilter","OffsetImageFilter","MorphologyImageFilter","RuntimeShaderImageFilter","MatrixColorFilter","BlendColorFilter","LumaColorFilter","LinearToSRGBGammaColorFilter","SRGBToLinearGammaColorFilter","LerpColorFilter","Shader","ImageShader","ColorShader","ColorShaderNode","SweepGradient","Turbulence","FractalNoise","LinearGradient","RadialGradient","TwoPointConicalGradient","CornerPathEffect","DiscretePathEffect","DashPathEffect","Path1DPathEffect","Path2DPathEffect","SumPathEffect","Line2DPathEffect","Blend","BackdropFilter","Box","BoxShadow","Paragraph"],"sources":["JsiSkDOM.ts"],"sourcesContent":["import type {\n PathProps,\n SkDOM,\n GroupProps,\n ImageProps,\n BlurImageFilterProps,\n MatrixColorFilterProps,\n CircleProps,\n BlurMaskFilterProps,\n LinearGradientProps,\n PaintProps,\n ShaderProps,\n ImageShaderProps,\n LineProps,\n OvalProps,\n PatchProps,\n PointsProps,\n RectProps,\n RoundedRectProps,\n VerticesProps,\n TextProps,\n DiffRectProps,\n OffsetImageFilterProps,\n BlendColorFilterProps,\n TextPathProps,\n TextBlobProps,\n GlyphsProps,\n TwoPointConicalGradientProps,\n TurbulenceProps,\n SweepGradientProps,\n RadialGradientProps,\n FractalNoiseProps,\n ColorProps,\n PictureProps,\n ImageSVGProps,\n LerpColorFilterProps,\n DrawingNodeProps,\n BoxProps,\n BoxShadowProps,\n ChildrenProps,\n AtlasProps,\n} from \"../types\";\nimport type {\n BlendImageFilterProps,\n BlendProps,\n DisplacementMapImageFilterProps,\n DropShadowImageFilterProps,\n MorphologyImageFilterProps,\n RuntimeShaderImageFilterProps,\n} from \"../types/ImageFilters\";\nimport type {\n CornerPathEffectProps,\n DashPathEffectProps,\n DiscretePathEffectProps,\n Line2DPathEffectProps,\n Path1DPathEffectProps,\n Path2DPathEffectProps,\n} from \"../types/PathEffects\";\nimport type { ParagraphProps } from \"../types/Paragraph\";\n\nimport {\n FillNode,\n ImageNode,\n CircleNode,\n PathNode,\n LineNode,\n PatchNode,\n PointsNode,\n RectNode,\n RRectNode,\n VerticesNode,\n TextNode,\n OvalNode,\n TextPathNode,\n TextBlobNode,\n GlyphsNode,\n DiffRectNode,\n PictureNode,\n ImageSVGNode,\n BackdropFilterNode,\n BoxNode,\n BoxShadowNode,\n AtlasNode,\n} from \"./drawings\";\nimport {\n BlendImageFilterNode,\n BlurImageFilterNode,\n BlurMaskFilterNode,\n DisplacementMapImageFilterNode,\n DropShadowImageFilterNode,\n OffsetImageFilterNode,\n RuntimeShaderImageFilterNode,\n CornerPathEffectNode,\n DiscretePathEffectNode,\n DashPathEffectNode,\n Path1DPathEffectNode,\n Path2DPathEffectNode,\n SumPathEffectNode,\n Line2DPathEffectNode,\n BlendNode,\n} from \"./paint\";\nimport {\n MatrixColorFilterNode,\n LumaColorFilterNode,\n LinearToSRGBGammaColorFilterNode,\n SRGBToLinearGammaColorFilterNode,\n BlendColorFilterNode,\n LerpColorFilterNode,\n} from \"./paint/ColorFilters\";\nimport {\n LinearGradientNode,\n ShaderNode,\n ImageShaderNode,\n TwoPointConicalGradientNode,\n TurbulenceNode,\n SweepGradientNode,\n RadialGradientNode,\n FractalNoiseNode,\n ColorNode,\n} from \"./paint/Shaders\";\nimport { MorphologyImageFilterNode } from \"./paint/ImageFilters\";\nimport { GroupNode } from \"./GroupNode\";\nimport { PaintNode } from \"./PaintNode\";\nimport type { NodeContext } from \"./Node\";\nimport { LayerNode } from \"./LayerNode\";\nimport { ParagraphNode } from \"./drawings/ParagraphNode\";\n\nexport class JsiSkDOM implements SkDOM {\n constructor(private ctx: NodeContext, private native: boolean) {}\n\n Layer(props?: ChildrenProps) {\n return this.native\n ? global.SkiaDomApi.LayerNode(props ?? {})\n : new LayerNode(this.ctx, props ?? {});\n }\n\n Group(props?: GroupProps) {\n return this.native\n ? global.SkiaDomApi.GroupNode(props ?? {})\n : new GroupNode(this.ctx, props ?? {});\n }\n\n Paint(props: PaintProps) {\n return this.native\n ? global.SkiaDomApi.PaintNode(props ?? {})\n : new PaintNode(this.ctx, props);\n }\n\n // Drawings\n Fill(props?: DrawingNodeProps) {\n return this.native\n ? global.SkiaDomApi.FillNode(props ?? {})\n : new FillNode(this.ctx, props);\n }\n\n Image(props: ImageProps) {\n return this.native\n ? global.SkiaDomApi.ImageNode(props ?? {})\n : new ImageNode(this.ctx, props);\n }\n\n Circle(props: CircleProps) {\n return this.native\n ? global.SkiaDomApi.CircleNode(props ?? {})\n : new CircleNode(this.ctx, props);\n }\n\n Path(props: PathProps) {\n return this.native\n ? global.SkiaDomApi.PathNode(props ?? {})\n : new PathNode(this.ctx, props);\n }\n\n Line(props: LineProps) {\n return this.native\n ? global.SkiaDomApi.LineNode(props ?? {})\n : new LineNode(this.ctx, props);\n }\n\n Oval(props: OvalProps) {\n return this.native\n ? global.SkiaDomApi.OvalNode(props ?? {})\n : new OvalNode(this.ctx, props);\n }\n\n Patch(props: PatchProps) {\n return this.native\n ? global.SkiaDomApi.PatchNode(props ?? {})\n : new PatchNode(this.ctx, props);\n }\n\n Points(props: PointsProps) {\n return this.native\n ? global.SkiaDomApi.PointsNode(props ?? {})\n : new PointsNode(this.ctx, props);\n }\n\n Rect(props: RectProps) {\n return this.native\n ? global.SkiaDomApi.RectNode(props)\n : new RectNode(this.ctx, props);\n }\n\n RRect(props: RoundedRectProps) {\n return this.native\n ? global.SkiaDomApi.RRectNode(props)\n : new RRectNode(this.ctx, props);\n }\n\n Vertices(props: VerticesProps) {\n return this.native\n ? global.SkiaDomApi.VerticesNode(props)\n : new VerticesNode(this.ctx, props);\n }\n\n Text(props: TextProps) {\n return this.native\n ? global.SkiaDomApi.TextNode(props)\n : new TextNode(this.ctx, props);\n }\n\n TextPath(props: TextPathProps) {\n return this.native\n ? global.SkiaDomApi.TextPathNode(props)\n : new TextPathNode(this.ctx, props);\n }\n\n TextBlob(props: TextBlobProps) {\n return this.native\n ? global.SkiaDomApi.TextBlobNode(props)\n : new TextBlobNode(this.ctx, props);\n }\n\n Glyphs(props: GlyphsProps) {\n return this.native\n ? global.SkiaDomApi.GlyphsNode(props)\n : new GlyphsNode(this.ctx, props);\n }\n\n DiffRect(props: DiffRectProps) {\n return this.native\n ? global.SkiaDomApi.DiffRectNode(props)\n : new DiffRectNode(this.ctx, props);\n }\n\n Picture(props: PictureProps) {\n return this.native\n ? global.SkiaDomApi.PictureNode(props)\n : new PictureNode(this.ctx, props);\n }\n\n Atlas(props: AtlasProps) {\n return this.native\n ? global.SkiaDomApi.AtlasNode(props)\n : new AtlasNode(this.ctx, props);\n }\n\n ImageSVG(props: ImageSVGProps) {\n return this.native\n ? global.SkiaDomApi.ImageSVGNode(props)\n : new ImageSVGNode(this.ctx, props);\n }\n\n // BlurMaskFilters\n BlurMaskFilter(props: BlurMaskFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlurMaskFilterNode(props)\n : new BlurMaskFilterNode(this.ctx, props);\n }\n\n // ImageFilters\n BlendImageFilter(props: BlendImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlendImageFilterNode(props)\n : new BlendImageFilterNode(this.ctx, props);\n }\n\n DropShadowImageFilter(props: DropShadowImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.DropShadowImageFilterNode(props)\n : new DropShadowImageFilterNode(this.ctx, props);\n }\n\n DisplacementMapImageFilter(props: DisplacementMapImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.DisplacementMapImageFilterNode(props)\n : new DisplacementMapImageFilterNode(this.ctx, props);\n }\n\n BlurImageFilter(props: BlurImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlurImageFilterNode(props)\n : new BlurImageFilterNode(this.ctx, props);\n }\n\n OffsetImageFilter(props: OffsetImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.OffsetImageFilterNode(props)\n : new OffsetImageFilterNode(this.ctx, props);\n }\n\n MorphologyImageFilter(props: MorphologyImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.MorphologyImageFilterNode(props)\n : new MorphologyImageFilterNode(this.ctx, props);\n }\n\n RuntimeShaderImageFilter(props: RuntimeShaderImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.RuntimeShaderImageFilterNode(props)\n : new RuntimeShaderImageFilterNode(this.ctx, props);\n }\n\n // Color Filters\n MatrixColorFilter(props: MatrixColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.MatrixColorFilterNode(props)\n : new MatrixColorFilterNode(this.ctx, props);\n }\n\n BlendColorFilter(props: BlendColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlendColorFilterNode(props)\n : new BlendColorFilterNode(this.ctx, props);\n }\n\n LumaColorFilter() {\n return this.native\n ? global.SkiaDomApi.LumaColorFilterNode()\n : new LumaColorFilterNode(this.ctx);\n }\n\n LinearToSRGBGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.LinearToSRGBGammaColorFilterNode\n ? global.SkiaDomApi.LinearToSRGBGammaColorFilterNode()\n : new LinearToSRGBGammaColorFilterNode(this.ctx);\n }\n\n SRGBToLinearGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.SRGBToLinearGammaColorFilterNode\n ? global.SkiaDomApi.SRGBToLinearGammaColorFilterNode()\n : new SRGBToLinearGammaColorFilterNode(this.ctx);\n }\n\n LerpColorFilter(props: LerpColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.LerpColorFilterNode(props)\n : new LerpColorFilterNode(this.ctx, props);\n }\n\n // Shaders\n Shader(props: ShaderProps) {\n return this.native\n ? global.SkiaDomApi.ShaderNode(props)\n : new ShaderNode(this.ctx, props);\n }\n\n ImageShader(props: ImageShaderProps) {\n return this.native\n ? global.SkiaDomApi.ImageShaderNode(props)\n : new ImageShaderNode(this.ctx, props);\n }\n\n ColorShader(props: ColorProps) {\n return this.native\n ? global.SkiaDomApi.ColorShaderNode(props)\n : new ColorNode(this.ctx, props);\n }\n\n SweepGradient(props: SweepGradientProps) {\n return this.native\n ? global.SkiaDomApi.SweepGradientNode(props)\n : new SweepGradientNode(this.ctx, props);\n }\n\n Turbulence(props: TurbulenceProps) {\n return this.native\n ? global.SkiaDomApi.TurbulenceNode(props)\n : new TurbulenceNode(this.ctx, props);\n }\n\n FractalNoise(props: FractalNoiseProps) {\n return this.native\n ? global.SkiaDomApi.FractalNoiseNode(props)\n : new FractalNoiseNode(this.ctx, props);\n }\n\n LinearGradient(props: LinearGradientProps) {\n return this.native\n ? global.SkiaDomApi.LinearGradientNode(props)\n : new LinearGradientNode(this.ctx, props);\n }\n\n RadialGradient(props: RadialGradientProps) {\n return this.native\n ? global.SkiaDomApi.RadialGradientNode(props)\n : new RadialGradientNode(this.ctx, props);\n }\n\n TwoPointConicalGradient(props: TwoPointConicalGradientProps) {\n return this.native\n ? global.SkiaDomApi.TwoPointConicalGradientNode(props)\n : new TwoPointConicalGradientNode(this.ctx, props);\n }\n\n // Path Effects\n CornerPathEffect(props: CornerPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.CornerPathEffectNode(props)\n : new CornerPathEffectNode(this.ctx, props);\n }\n\n DiscretePathEffect(props: DiscretePathEffectProps) {\n return this.native\n ? global.SkiaDomApi.DiscretePathEffectNode(props)\n : new DiscretePathEffectNode(this.ctx, props);\n }\n\n DashPathEffect(props: DashPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.DashPathEffectNode(props)\n : new DashPathEffectNode(this.ctx, props);\n }\n\n Path1DPathEffect(props: Path1DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Path1DPathEffectNode(props)\n : new Path1DPathEffectNode(this.ctx, props);\n }\n\n Path2DPathEffect(props: Path2DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Path2DPathEffectNode(props)\n : new Path2DPathEffectNode(this.ctx, props);\n }\n\n SumPathEffect() {\n return this.native\n ? global.SkiaDomApi.SumPathEffectNode()\n : new SumPathEffectNode(this.ctx);\n }\n\n Line2DPathEffect(props: Line2DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Line2DPathEffectNode(props)\n : new Line2DPathEffectNode(this.ctx, props);\n }\n\n Blend(props: BlendProps) {\n return this.native\n ? global.SkiaDomApi.BlendNode(props)\n : new BlendNode(this.ctx, props);\n }\n\n BackdropFilter(props: ChildrenProps) {\n return this.native\n ? global.SkiaDomApi.BackdropFilterNode(props)\n : new BackdropFilterNode(this.ctx, props);\n }\n\n Box(props: BoxProps) {\n return this.native\n ? global.SkiaDomApi.BoxNode(props)\n : new BoxNode(this.ctx, props);\n }\n\n BoxShadow(props: BoxShadowProps) {\n return this.native\n ? global.SkiaDomApi.BoxShadowNode(props)\n : new BoxShadowNode(this.ctx, props);\n }\n\n // Paragraph\n Paragraph(props: ParagraphProps) {\n return this.native\n ? global.SkiaDomApi.ParagraphNode(props)\n : new ParagraphNode(this.ctx, props);\n }\n}\n"],"mappings":"AA4DA,SACEA,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,QAAQ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AK,CAAC;EAC7C;EAEAyD,GAAGA,CAACzD,KAAe,EAAE;IACnB,OAAO,IAAI,CAACF,MAAM,GACdG,MAAM,CAACC,UAAU,CAAC7C,OAAO,CAAC2C,KAAK,CAAC,GAChC,IAAI3C,OAAO,CAAC,IAAI,CAACwC,GAAG,EAAEG,KAAK,CAAC;EAClC;EAEA0D,SAASA,CAAC1D,KAAqB,EAAE;IAC/B,OAAO,IAAI,CAACF,MAAM,GACdG,MAAM,CAACC,UAAU,CAAC5C,aAAa,CAAC0C,KAAK,CAAC,GACtC,IAAI1C,aAAa,CAAC,IAAI,CAACuC,GAAG,EAAEG,KAAK,CAAC;EACxC;;EAEA;EACA2D,SAASA,CAAC3D,KAAqB,EAAE;IAC/B,OAAO,IAAI,CAACF,MAAM,GACdG,MAAM,CAACC,UAAU,CAACR,aAAa,CAACM,KAAK,CAAC,GACtC,IAAIN,aAAa,CAAC,IAAI,CAACG,GAAG,EAAEG,KAAK,CAAC;EACxC;AACF"}
1
+ {"version":3,"names":["FillNode","ImageNode","CircleNode","PathNode","LineNode","PatchNode","PointsNode","RectNode","RRectNode","VerticesNode","TextNode","OvalNode","TextPathNode","TextBlobNode","GlyphsNode","DiffRectNode","PictureNode","ImageSVGNode","BackdropFilterNode","BoxNode","BoxShadowNode","AtlasNode","BlendImageFilterNode","BlurImageFilterNode","BlurMaskFilterNode","DisplacementMapImageFilterNode","DropShadowImageFilterNode","OffsetImageFilterNode","RuntimeShaderImageFilterNode","CornerPathEffectNode","DiscretePathEffectNode","DashPathEffectNode","Path1DPathEffectNode","Path2DPathEffectNode","SumPathEffectNode","Line2DPathEffectNode","BlendNode","MatrixColorFilterNode","LumaColorFilterNode","LinearToSRGBGammaColorFilterNode","SRGBToLinearGammaColorFilterNode","BlendColorFilterNode","LerpColorFilterNode","LinearGradientNode","ShaderNode","ImageShaderNode","TwoPointConicalGradientNode","TurbulenceNode","SweepGradientNode","RadialGradientNode","FractalNoiseNode","ColorNode","MorphologyImageFilterNode","GroupNode","PaintNode","LayerNode","ParagraphNode","JsiSkDOM","constructor","ctx","native","Layer","props","global","SkiaDomApi","Group","Paint","Fill","Image","Circle","Path","Line","Oval","Patch","Points","Rect","RRect","Vertices","Text","TextPath","TextBlob","Glyphs","DiffRect","Picture","Atlas","ImageSVG","BlurMaskFilter","BlendImageFilter","DropShadowImageFilter","DisplacementMapImageFilter","BlurImageFilter","OffsetImageFilter","MorphologyImageFilter","RuntimeShaderImageFilter","MatrixColorFilter","BlendColorFilter","LumaColorFilter","LinearToSRGBGammaColorFilter","SRGBToLinearGammaColorFilter","LerpColorFilter","Shader","ImageShader","ColorShader","ColorShaderNode","SweepGradient","Turbulence","FractalNoise","LinearGradient","RadialGradient","TwoPointConicalGradient","CornerPathEffect","DiscretePathEffect","DashPathEffect","Path1DPathEffect","Path2DPathEffect","SumPathEffect","Line2DPathEffect","Blend","BackdropFilter","Box","BoxShadow","Paragraph"],"sources":["JsiSkDOM.ts"],"sourcesContent":["import type {\n PathProps,\n SkDOM,\n GroupProps,\n ImageProps,\n BlurImageFilterProps,\n MatrixColorFilterProps,\n CircleProps,\n BlurMaskFilterProps,\n LinearGradientProps,\n PaintProps,\n ShaderProps,\n ImageShaderProps,\n LineProps,\n OvalProps,\n PatchProps,\n PointsProps,\n RectProps,\n RoundedRectProps,\n VerticesProps,\n TextProps,\n DiffRectProps,\n OffsetImageFilterProps,\n BlendColorFilterProps,\n TextPathProps,\n TextBlobProps,\n GlyphsProps,\n TwoPointConicalGradientProps,\n TurbulenceProps,\n SweepGradientProps,\n RadialGradientProps,\n FractalNoiseProps,\n ColorProps,\n PictureProps,\n ImageSVGProps,\n LerpColorFilterProps,\n DrawingNodeProps,\n BoxProps,\n BoxShadowProps,\n ChildrenProps,\n AtlasProps,\n} from \"../types\";\nimport type {\n BlendImageFilterProps,\n BlendProps,\n DisplacementMapImageFilterProps,\n DropShadowImageFilterProps,\n MorphologyImageFilterProps,\n RuntimeShaderImageFilterProps,\n} from \"../types/ImageFilters\";\nimport type {\n CornerPathEffectProps,\n DashPathEffectProps,\n DiscretePathEffectProps,\n Line2DPathEffectProps,\n Path1DPathEffectProps,\n Path2DPathEffectProps,\n} from \"../types/PathEffects\";\nimport type { ParagraphProps } from \"../types/Paragraph\";\n\nimport {\n FillNode,\n ImageNode,\n CircleNode,\n PathNode,\n LineNode,\n PatchNode,\n PointsNode,\n RectNode,\n RRectNode,\n VerticesNode,\n TextNode,\n OvalNode,\n TextPathNode,\n TextBlobNode,\n GlyphsNode,\n DiffRectNode,\n PictureNode,\n ImageSVGNode,\n BackdropFilterNode,\n BoxNode,\n BoxShadowNode,\n AtlasNode,\n} from \"./drawings\";\nimport {\n BlendImageFilterNode,\n BlurImageFilterNode,\n BlurMaskFilterNode,\n DisplacementMapImageFilterNode,\n DropShadowImageFilterNode,\n OffsetImageFilterNode,\n RuntimeShaderImageFilterNode,\n CornerPathEffectNode,\n DiscretePathEffectNode,\n DashPathEffectNode,\n Path1DPathEffectNode,\n Path2DPathEffectNode,\n SumPathEffectNode,\n Line2DPathEffectNode,\n BlendNode,\n} from \"./paint\";\nimport {\n MatrixColorFilterNode,\n LumaColorFilterNode,\n LinearToSRGBGammaColorFilterNode,\n SRGBToLinearGammaColorFilterNode,\n BlendColorFilterNode,\n LerpColorFilterNode,\n} from \"./paint/ColorFilters\";\nimport {\n LinearGradientNode,\n ShaderNode,\n ImageShaderNode,\n TwoPointConicalGradientNode,\n TurbulenceNode,\n SweepGradientNode,\n RadialGradientNode,\n FractalNoiseNode,\n ColorNode,\n} from \"./paint/Shaders\";\nimport { MorphologyImageFilterNode } from \"./paint/ImageFilters\";\nimport { GroupNode } from \"./GroupNode\";\nimport { PaintNode } from \"./PaintNode\";\nimport type { NodeContext } from \"./Node\";\nimport { LayerNode } from \"./LayerNode\";\nimport { ParagraphNode } from \"./drawings/ParagraphNode\";\n\nexport class JsiSkDOM implements SkDOM {\n constructor(private ctx: NodeContext, private native: boolean) {}\n\n Layer(props?: ChildrenProps) {\n return this.native\n ? global.SkiaDomApi.LayerNode(props ?? {})\n : new LayerNode(this.ctx, props ?? {});\n }\n\n Group(props?: GroupProps) {\n return this.native\n ? global.SkiaDomApi.GroupNode(props ?? {})\n : new GroupNode(this.ctx, props ?? {});\n }\n\n Paint(props: PaintProps) {\n return this.native\n ? global.SkiaDomApi.PaintNode(props ?? {})\n : new PaintNode(this.ctx, props);\n }\n\n // Drawings\n Fill(props?: DrawingNodeProps) {\n return this.native\n ? global.SkiaDomApi.FillNode(props ?? {})\n : new FillNode(this.ctx, props);\n }\n\n Image(props: ImageProps) {\n return this.native\n ? global.SkiaDomApi.ImageNode(props ?? {})\n : new ImageNode(this.ctx, props);\n }\n\n Circle(props: CircleProps) {\n return this.native\n ? global.SkiaDomApi.CircleNode(props ?? {})\n : new CircleNode(this.ctx, props);\n }\n\n Path(props: PathProps) {\n return this.native\n ? global.SkiaDomApi.PathNode(props ?? {})\n : new PathNode(this.ctx, props);\n }\n\n Line(props: LineProps) {\n return this.native\n ? global.SkiaDomApi.LineNode(props ?? {})\n : new LineNode(this.ctx, props);\n }\n\n Oval(props: OvalProps) {\n return this.native\n ? global.SkiaDomApi.OvalNode(props ?? {})\n : new OvalNode(this.ctx, props);\n }\n\n Patch(props: PatchProps) {\n return this.native\n ? global.SkiaDomApi.PatchNode(props ?? {})\n : new PatchNode(this.ctx, props);\n }\n\n Points(props: PointsProps) {\n return this.native\n ? global.SkiaDomApi.PointsNode(props ?? {})\n : new PointsNode(this.ctx, props);\n }\n\n Rect(props: RectProps) {\n return this.native\n ? global.SkiaDomApi.RectNode(props)\n : new RectNode(this.ctx, props);\n }\n\n RRect(props: RoundedRectProps) {\n return this.native\n ? global.SkiaDomApi.RRectNode(props)\n : new RRectNode(this.ctx, props);\n }\n\n Vertices(props: VerticesProps) {\n return this.native\n ? global.SkiaDomApi.VerticesNode(props)\n : new VerticesNode(this.ctx, props);\n }\n\n Text(props: TextProps) {\n return this.native\n ? global.SkiaDomApi.TextNode(props)\n : new TextNode(this.ctx, props);\n }\n\n TextPath(props: TextPathProps) {\n return this.native\n ? global.SkiaDomApi.TextPathNode(props)\n : new TextPathNode(this.ctx, props);\n }\n\n TextBlob(props: TextBlobProps) {\n return this.native\n ? global.SkiaDomApi.TextBlobNode(props)\n : new TextBlobNode(this.ctx, props);\n }\n\n Glyphs(props: GlyphsProps) {\n return this.native\n ? global.SkiaDomApi.GlyphsNode(props)\n : new GlyphsNode(this.ctx, props);\n }\n\n DiffRect(props: DiffRectProps) {\n return this.native\n ? global.SkiaDomApi.DiffRectNode(props)\n : new DiffRectNode(this.ctx, props);\n }\n\n Picture(props: PictureProps) {\n return this.native\n ? global.SkiaDomApi.PictureNode(props)\n : new PictureNode(this.ctx, props);\n }\n\n Atlas(props: AtlasProps) {\n return this.native\n ? global.SkiaDomApi.AtlasNode(props)\n : new AtlasNode(this.ctx, props);\n }\n\n ImageSVG(props: ImageSVGProps) {\n return this.native\n ? global.SkiaDomApi.ImageSVGNode(props)\n : new ImageSVGNode(this.ctx, props);\n }\n\n // BlurMaskFilters\n BlurMaskFilter(props: BlurMaskFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlurMaskFilterNode(props)\n : new BlurMaskFilterNode(this.ctx, props);\n }\n\n // ImageFilters\n BlendImageFilter(props: BlendImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlendImageFilterNode(props)\n : new BlendImageFilterNode(this.ctx, props);\n }\n\n DropShadowImageFilter(props: DropShadowImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.DropShadowImageFilterNode(props)\n : new DropShadowImageFilterNode(this.ctx, props);\n }\n\n DisplacementMapImageFilter(props: DisplacementMapImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.DisplacementMapImageFilterNode(props)\n : new DisplacementMapImageFilterNode(this.ctx, props);\n }\n\n BlurImageFilter(props: BlurImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlurImageFilterNode(props)\n : new BlurImageFilterNode(this.ctx, props);\n }\n\n OffsetImageFilter(props: OffsetImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.OffsetImageFilterNode(props)\n : new OffsetImageFilterNode(this.ctx, props);\n }\n\n MorphologyImageFilter(props: MorphologyImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.MorphologyImageFilterNode(props)\n : new MorphologyImageFilterNode(this.ctx, props);\n }\n\n RuntimeShaderImageFilter(props: RuntimeShaderImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.RuntimeShaderImageFilterNode(props)\n : new RuntimeShaderImageFilterNode(this.ctx, props);\n }\n\n // Color Filters\n MatrixColorFilter(props: MatrixColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.MatrixColorFilterNode(props)\n : new MatrixColorFilterNode(this.ctx, props);\n }\n\n BlendColorFilter(props: BlendColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlendColorFilterNode(props)\n : new BlendColorFilterNode(this.ctx, props);\n }\n\n LumaColorFilter() {\n return this.native\n ? global.SkiaDomApi.LumaColorFilterNode()\n : new LumaColorFilterNode(this.ctx);\n }\n\n LinearToSRGBGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.LinearToSRGBGammaColorFilterNode\n ? global.SkiaDomApi.LinearToSRGBGammaColorFilterNode()\n : new LinearToSRGBGammaColorFilterNode(this.ctx);\n }\n\n SRGBToLinearGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.SRGBToLinearGammaColorFilterNode\n ? global.SkiaDomApi.SRGBToLinearGammaColorFilterNode()\n : new SRGBToLinearGammaColorFilterNode(this.ctx);\n }\n\n LerpColorFilter(props: LerpColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.LerpColorFilterNode(props)\n : new LerpColorFilterNode(this.ctx, props);\n }\n\n // Shaders\n Shader(props: ShaderProps) {\n return this.native\n ? global.SkiaDomApi.ShaderNode(props)\n : new ShaderNode(this.ctx, props);\n }\n\n ImageShader(props: ImageShaderProps) {\n return this.native\n ? global.SkiaDomApi.ImageShaderNode(props)\n : new ImageShaderNode(this.ctx, props);\n }\n\n ColorShader(props: ColorProps) {\n return this.native\n ? global.SkiaDomApi.ColorShaderNode(props)\n : new ColorNode(this.ctx, props);\n }\n\n SweepGradient(props: SweepGradientProps) {\n return this.native\n ? global.SkiaDomApi.SweepGradientNode(props)\n : new SweepGradientNode(this.ctx, props);\n }\n\n Turbulence(props: TurbulenceProps) {\n return this.native\n ? global.SkiaDomApi.TurbulenceNode(props)\n : new TurbulenceNode(this.ctx, props);\n }\n\n FractalNoise(props: FractalNoiseProps) {\n return this.native\n ? global.SkiaDomApi.FractalNoiseNode(props)\n : new FractalNoiseNode(this.ctx, props);\n }\n\n LinearGradient(props: LinearGradientProps) {\n return this.native\n ? global.SkiaDomApi.LinearGradientNode(props)\n : new LinearGradientNode(this.ctx, props);\n }\n\n RadialGradient(props: RadialGradientProps) {\n return this.native\n ? global.SkiaDomApi.RadialGradientNode(props)\n : new RadialGradientNode(this.ctx, props);\n }\n\n TwoPointConicalGradient(props: TwoPointConicalGradientProps) {\n return this.native\n ? global.SkiaDomApi.TwoPointConicalGradientNode(props)\n : new TwoPointConicalGradientNode(this.ctx, props);\n }\n\n // Path Effects\n CornerPathEffect(props: CornerPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.CornerPathEffectNode(props)\n : new CornerPathEffectNode(this.ctx, props);\n }\n\n DiscretePathEffect(props: DiscretePathEffectProps) {\n return this.native\n ? global.SkiaDomApi.DiscretePathEffectNode(props)\n : new DiscretePathEffectNode(this.ctx, props);\n }\n\n DashPathEffect(props: DashPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.DashPathEffectNode(props)\n : new DashPathEffectNode(this.ctx, props);\n }\n\n Path1DPathEffect(props: Path1DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Path1DPathEffectNode(props)\n : new Path1DPathEffectNode(this.ctx, props);\n }\n\n Path2DPathEffect(props: Path2DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Path2DPathEffectNode(props)\n : new Path2DPathEffectNode(this.ctx, props);\n }\n\n SumPathEffect() {\n return this.native\n ? global.SkiaDomApi.SumPathEffectNode()\n : new SumPathEffectNode(this.ctx);\n }\n\n Line2DPathEffect(props: Line2DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Line2DPathEffectNode(props)\n : new Line2DPathEffectNode(this.ctx, props);\n }\n\n Blend(props: BlendProps) {\n return this.native\n ? global.SkiaDomApi.BlendNode(props)\n : new BlendNode(this.ctx, props);\n }\n\n BackdropFilter(props: ChildrenProps) {\n return this.native\n ? global.SkiaDomApi.BackdropFilterNode(props)\n : new BackdropFilterNode(this.ctx, props);\n }\n\n Box(props: BoxProps) {\n return this.native\n ? global.SkiaDomApi.BoxNode(props)\n : new BoxNode(this.ctx, props);\n }\n\n BoxShadow(props: BoxShadowProps) {\n return this.native\n ? global.SkiaDomApi.BoxShadowNode(props)\n : new BoxShadowNode(this.ctx, props);\n }\n\n // Paragraph\n Paragraph(props: ParagraphProps) {\n return this.native\n ? global.SkiaDomApi.ParagraphNode(props)\n : new ParagraphNode(this.ctx, props);\n }\n}\n"],"mappings":"AA4DA,SACEA,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,SAAS,EACTC,YAAY,EACZC,QAAQ,EACRC,QAAQ,EACRC,YAAY,EACZC,YAAY,EACZC,UAAU,EACVC,YAAY,EACZC,WAAW,EACXC,YAAY,EACZC,kBAAkB,EAClBC,OAAO,EACPC,aAAa,EACbC,SAAS,QACJ,YAAY;AACnB,SACEC,oBAAoB,EACpBC,mBAAmB,EACnBC,kBAAkB,EAClBC,8BAA8B,EAC9BC,yBAAyB,EACzBC,qBAAqB,EACrBC,4BAA4B,EAC5BC,oBAAoB,EACpBC,sBAAsB,EACtBC,kBAAkB,EAClBC,oBAAoB,EACpBC,oBAAoB,EACpBC,iBAAiB,EACjBC,oBAAoB,EACpBC,SAAS,QACJ,SAAS;AAChB,SACEC,qB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,CAACR,aAAa,CAACM,KAAK,CAAC,GACtC,IAAIN,aAAa,CAAC,IAAI,CAACG,GAAG,EAAEG,KAAK,CAAC;EACxC;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["NodeType","JsiRenderNode","JsiDeclarationNode","LayerNode","constructor","ctx","props","Layer","renderNode","hasLayer","layer","children","declCtx","declarationCtx","save","decorate","paint","paints","pop","restore","canvas","saveLayer","map","child","render"],"sources":["LayerNode.ts"],"sourcesContent":["import type { DrawingContext } from \"../types\";\nimport { NodeType } from \"../types\";\nimport type { ChildrenProps } from \"../types/Common\";\n\nimport { JsiRenderNode } from \"./RenderNode\";\nimport type { NodeContext } from \"./Node\";\nimport { JsiDeclarationNode } from \"./Node\";\n\nexport class LayerNode extends JsiRenderNode<ChildrenProps> {\n constructor(ctx: NodeContext, props: ChildrenProps) {\n super(ctx, NodeType.Layer, props);\n }\n\n renderNode(ctx: DrawingContext): void {\n let hasLayer = false;\n const [layer, ...children] = this.children();\n if (layer instanceof JsiDeclarationNode) {\n const declCtx = ctx.declarationCtx;\n declCtx.save();\n layer.decorate(declCtx);\n const paint = declCtx.paints.pop();\n declCtx.restore();\n if (paint) {\n hasLayer = true;\n ctx.canvas.saveLayer(paint);\n }\n }\n children.map((child) => {\n if (child instanceof JsiRenderNode) {\n child.render(ctx);\n }\n });\n if (hasLayer) {\n ctx.canvas.restore();\n }\n }\n}\n"],"mappings":"AACA,SAASA,QAAQ,QAAQ,UAAU;AAGnC,SAASC,aAAa,QAAQ,cAAc;AAE5C,SAASC,kBAAkB,QAAQ,QAAQ;AAE3C,OAAO,MAAMC,SAAS,SAASF,aAAa,CAAgB;EAC1DG,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEL,QAAQ,CAACO,KAAK,EAAED,KAAK,CAAC;EACnC;EAEAE,UAAUA,CAACH,GAAmB,EAAQ;IACpC,IAAII,QAAQ,GAAG,KAAK;IACpB,MAAM,CAACC,KAAK,EAAE,GAAGC,QAAQ,CAAC,GAAG,IAAI,CAACA,QAAQ,CAAC,CAAC;IAC5C,IAAID,KAAK,YAAYR,kBAAkB,EAAE;MACvC,MAAMU,OAAO,GAAGP,GAAG,CAACQ,cAAc;MAClCD,OAAO,CAACE,IAAI,CAAC,CAAC;MACdJ,KAAK,CAACK,QAAQ,CAACH,OAAO,CAAC;MACvB,MAAMI,KAAK,GAAGJ,OAAO,CAACK,MAAM,CAACC,GAAG,CAAC,CAAC;MAClCN,OAAO,CAACO,OAAO,CAAC,CAAC;MACjB,IAAIH,KAAK,EAAE;QACTP,QAAQ,GAAG,IAAI;QACfJ,GAAG,CAACe,MAAM,CAACC,SAAS,CAACL,KAAK,CAAC;MAC7B;IACF;IACAL,QAAQ,CAACW,GAAG,CAAEC,KAAK,IAAK;MACtB,IAAIA,KAAK,YAAYtB,aAAa,EAAE;QAClCsB,KAAK,CAACC,MAAM,CAACnB,GAAG,CAAC;MACnB;IACF,CAAC,CAAC;IACF,IAAII,QAAQ,EAAE;MACZJ,GAAG,CAACe,MAAM,CAACD,OAAO,CAAC,CAAC;IACtB;EACF;AACF"}
1
+ {"version":3,"names":["NodeType","JsiRenderNode","JsiDeclarationNode","LayerNode","constructor","ctx","props","Layer","renderNode","hasLayer","layer","children","declCtx","declarationCtx","save","decorate","paint","paints","pop","restore","canvas","saveLayer","map","child","render"],"sources":["LayerNode.ts"],"sourcesContent":["import type { DrawingContext } from \"../types\";\nimport { NodeType } from \"../types\";\nimport type { ChildrenProps } from \"../types/Common\";\n\nimport { JsiRenderNode } from \"./RenderNode\";\nimport type { NodeContext } from \"./Node\";\nimport { JsiDeclarationNode } from \"./Node\";\n\nexport class LayerNode extends JsiRenderNode<ChildrenProps> {\n constructor(ctx: NodeContext, props: ChildrenProps) {\n super(ctx, NodeType.Layer, props);\n }\n\n renderNode(ctx: DrawingContext): void {\n let hasLayer = false;\n const [layer, ...children] = this.children();\n if (layer instanceof JsiDeclarationNode) {\n const declCtx = ctx.declarationCtx;\n declCtx.save();\n layer.decorate(declCtx);\n const paint = declCtx.paints.pop();\n declCtx.restore();\n if (paint) {\n hasLayer = true;\n ctx.canvas.saveLayer(paint);\n }\n }\n children.map((child) => {\n if (child instanceof JsiRenderNode) {\n child.render(ctx);\n }\n });\n if (hasLayer) {\n ctx.canvas.restore();\n }\n }\n}\n"],"mappings":"AACA,SAASA,QAAQ,QAAQ,UAAU;AAGnC,SAASC,aAAa,QAAQ,cAAc;AAE5C,SAASC,kBAAkB,QAAQ,QAAQ;AAE3C,OAAO,MAAMC,SAAS,SAASF,aAAa,CAAgB;EAC1DG,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEL,QAAQ,CAACO,KAAK,EAAED,KAAK,CAAC;EACnC;EAEAE,UAAUA,CAACH,GAAmB,EAAQ;IACpC,IAAII,QAAQ,GAAG,KAAK;IACpB,MAAM,CAACC,KAAK,EAAE,GAAGC,QAAQ,CAAC,GAAG,IAAI,CAACA,QAAQ,CAAC,CAAC;IAC5C,IAAID,KAAK,YAAYR,kBAAkB,EAAE;MACvC,MAAMU,OAAO,GAAGP,GAAG,CAACQ,cAAc;MAClCD,OAAO,CAACE,IAAI,CAAC,CAAC;MACdJ,KAAK,CAACK,QAAQ,CAACH,OAAO,CAAC;MACvB,MAAMI,KAAK,GAAGJ,OAAO,CAACK,MAAM,CAACC,GAAG,CAAC,CAAC;MAClCN,OAAO,CAACO,OAAO,CAAC,CAAC;MACjB,IAAIH,KAAK,EAAE;QACTP,QAAQ,GAAG,IAAI;QACfJ,GAAG,CAACe,MAAM,CAACC,SAAS,CAACL,KAAK,CAAC;MAC7B;IACF;IACAL,QAAQ,CAACW,GAAG,CAAEC,KAAK,IAAK;MACtB,IAAIA,KAAK,YAAYtB,aAAa,EAAE;QAClCsB,KAAK,CAACC,MAAM,CAACnB,GAAG,CAAC;MACnB;IACF,CAAC,CAAC;IACF,IAAII,QAAQ,EAAE;MACZJ,GAAG,CAACe,MAAM,CAACD,OAAO,CAAC,CAAC;IACtB;EACF;AACF","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
3
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  export class JsiNode {
5
5
  constructor(ctx, type, props) {
@@ -1 +1 @@
1
- {"version":3,"names":["JsiNode","constructor","ctx","type","props","_defineProperty","Skia","setProps","setProp","name","v","hasChanged","getProps","children","_children","addChild","child","removeChild","push","dispose","forEach","index","indexOf","node","splice","insertChildBefore","before","beforeIndex","JsiDeclarationNode","decorateChildren","decorate","Error","invalidate","setInvalidate"],"sources":["Node.ts"],"sourcesContent":["import type { Skia } from \"../../skia/types\";\nimport type { Node, DeclarationNode, NodeType } from \"../types\";\nimport type { DeclarationContext } from \"../types/DeclarationContext\";\n\nexport interface NodeContext {\n Skia: Skia;\n}\n\nexport abstract class JsiNode<P> implements Node<P> {\n protected _children: JsiNode<unknown>[] = [];\n protected Skia: Skia;\n\n constructor(ctx: NodeContext, public type: NodeType, protected props: P) {\n this.Skia = ctx.Skia;\n }\n\n setProps(props: P) {\n this.props = props;\n }\n\n setProp<K extends keyof P>(name: K, v: P[K]) {\n const hasChanged = this.props[name] !== v;\n this.props[name] = v;\n return hasChanged;\n }\n\n getProps() {\n return this.props;\n }\n\n children() {\n return this._children;\n }\n\n addChild(child: Node<unknown>) {\n this.removeChild(child);\n this._children.push(child as JsiNode<unknown>);\n }\n\n dispose() {\n this._children.forEach((child) => child.dispose());\n }\n\n removeChild(child: Node<unknown>) {\n const index = this._children.indexOf(child as JsiNode<unknown>);\n if (index !== -1) {\n const [node] = this._children.splice(index, 1);\n node.dispose();\n }\n }\n\n insertChildBefore(child: Node<unknown>, before: Node<unknown>) {\n const index = this._children.indexOf(child as JsiNode<unknown>);\n if (index !== -1) {\n this._children.splice(index, 1);\n }\n const beforeIndex = this._children.indexOf(before as JsiNode<unknown>);\n this._children.splice(beforeIndex, 0, child as JsiNode<unknown>);\n }\n}\n\nexport type Invalidate = () => void;\n\nexport abstract class JsiDeclarationNode<P>\n extends JsiNode<P>\n implements DeclarationNode<P>\n{\n private invalidate: Invalidate = () => {};\n\n constructor(ctx: NodeContext, type: NodeType, props: P) {\n super(ctx, type, props);\n }\n\n abstract decorate(ctx: DeclarationContext): void;\n\n protected decorateChildren(ctx: DeclarationContext) {\n this.children().forEach((child) => {\n if (child instanceof JsiDeclarationNode) {\n child.decorate(ctx);\n }\n });\n }\n\n addChild(child: Node<unknown>): void {\n if (!(child instanceof JsiDeclarationNode)) {\n throw new Error(`Cannot add child of type ${child.type} to ${this.type}`);\n }\n super.addChild(child);\n this.invalidate();\n }\n\n insertChildBefore(child: Node<unknown>, before: Node<unknown>): void {\n if (!(child instanceof JsiDeclarationNode)) {\n throw new Error(`Cannot add child of type ${child.type} to ${this.type}`);\n }\n super.insertChildBefore(child, before);\n this.invalidate();\n }\n\n dispose() {\n this.invalidate();\n super.dispose();\n }\n\n setInvalidate(invalidate: Invalidate) {\n this.invalidate = invalidate;\n }\n\n setProps(props: P) {\n super.setProps(props);\n this.invalidate();\n }\n\n setProp<K extends keyof P>(name: K, v: P[K]) {\n const hasChanged = super.setProp(name, v);\n if (hasChanged) {\n this.inval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V,KAAK,YAAYY,kBAAkB,CAAC,EAAE;MAC1C,MAAM,IAAIG,KAAK,CAAE,4BAA2Bf,KAAK,CAACb,IAAK,OAAM,IAAI,CAACA,IAAK,EAAC,CAAC;IAC3E;IACA,KAAK,CAACsB,iBAAiB,CAACT,KAAK,EAAEU,MAAM,CAAC;IACtC,IAAI,CAACM,UAAU,CAAC,CAAC;EACnB;EAEAb,OAAOA,CAAA,EAAG;IACR,IAAI,CAACa,UAAU,CAAC,CAAC;IACjB,KAAK,CAACb,OAAO,CAAC,CAAC;EACjB;EAEAc,aAAaA,CAACD,UAAsB,EAAE;IACpC,IAAI,CAACA,UAAU,GAAGA,UAAU;EAC9B;EAEAzB,QAAQA,CAACH,KAAQ,EAAE;IACjB,KAAK,CAACG,QAAQ,CAACH,KAAK,CAAC;IACrB,IAAI,CAAC4B,UAAU,CAAC,CAAC;EACnB;EAEAxB,OAAOA,CAAoBC,IAAO,EAAEC,CAAO,EAAE;IAC3C,MAAMC,UAAU,GAAG,KAAK,CAACH,OAAO,CAACC,IAAI,EAAEC,CAAC,CAAC;IACzC,IAAIC,UAAU,EAAE;MACd,IAAI,CAACqB,UAAU,CAAC,CAAC;IACnB;IACA,OAAOrB,UAAU;EACnB;AACF"}
1
+ {"version":3,"names":["JsiNode","constructor","ctx","type","props","_defineProperty","Skia","setProps","setProp","name","v","hasChanged","getProps","children","_children","addChild","child","removeChild","push","dispose","forEach","index","indexOf","node","splice","insertChildBefore","before","beforeIndex","JsiDeclarationNode","decorateChildren","decorate","Error","invalidate","setInvalidate"],"sources":["Node.ts"],"sourcesContent":["import type { Skia } from \"../../skia/types\";\nimport type { Node, DeclarationNode, NodeType } from \"../types\";\nimport type { DeclarationContext } from \"../types/DeclarationContext\";\n\nexport interface NodeContext {\n Skia: Skia;\n}\n\nexport abstract class JsiNode<P> implements Node<P> {\n protected _children: JsiNode<unknown>[] = [];\n protected Skia: Skia;\n\n constructor(ctx: NodeContext, public type: NodeType, protected props: P) {\n this.Skia = ctx.Skia;\n }\n\n setProps(props: P) {\n this.props = props;\n }\n\n setProp<K extends keyof P>(name: K, v: P[K]) {\n const hasChanged = this.props[name] !== v;\n this.props[name] = v;\n return hasChanged;\n }\n\n getProps() {\n return this.props;\n }\n\n children() {\n return this._children;\n }\n\n addChild(child: Node<unknown>) {\n this.removeChild(child);\n this._children.push(child as JsiNode<unknown>);\n }\n\n dispose() {\n this._children.forEach((child) => child.dispose());\n }\n\n removeChild(child: Node<unknown>) {\n const index = this._children.indexOf(child as JsiNode<unknown>);\n if (index !== -1) {\n const [node] = this._children.splice(index, 1);\n node.dispose();\n }\n }\n\n insertChildBefore(child: Node<unknown>, before: Node<unknown>) {\n const index = this._children.indexOf(child as JsiNode<unknown>);\n if (index !== -1) {\n this._children.splice(index, 1);\n }\n const beforeIndex = this._children.indexOf(before as JsiNode<unknown>);\n this._children.splice(beforeIndex, 0, child as JsiNode<unknown>);\n }\n}\n\nexport type Invalidate = () => void;\n\nexport abstract class JsiDeclarationNode<P>\n extends JsiNode<P>\n implements DeclarationNode<P>\n{\n private invalidate: Invalidate = () => {};\n\n constructor(ctx: NodeContext, type: NodeType, props: P) {\n super(ctx, type, props);\n }\n\n abstract decorate(ctx: DeclarationContext): void;\n\n protected decorateChildren(ctx: DeclarationContext) {\n this.children().forEach((child) => {\n if (child instanceof JsiDeclarationNode) {\n child.decorate(ctx);\n }\n });\n }\n\n addChild(child: Node<unknown>): void {\n if (!(child instanceof JsiDeclarationNode)) {\n throw new Error(`Cannot add child of type ${child.type} to ${this.type}`);\n }\n super.addChild(child);\n this.invalidate();\n }\n\n insertChildBefore(child: Node<unknown>, before: Node<unknown>): void {\n if (!(child instanceof JsiDeclarationNode)) {\n throw new Error(`Cannot add child of type ${child.type} to ${this.type}`);\n }\n super.insertChildBefore(child, before);\n this.invalidate();\n }\n\n dispose() {\n this.invalidate();\n super.dispose();\n }\n\n setInvalidate(invalidate: Invalidate) {\n this.invalidate = invalidate;\n }\n\n setProps(props: P) {\n super.setProps(props);\n this.invalidate();\n }\n\n setProp<K extends keyof P>(name: K, v: P[K]) {\n const hasChanged = super.setProp(name, v);\n if (hasChanged) {\n this.invalidate();\n }\n return hasChanged;\n }\n}\n"],"mappings":";;;AAQA,OAAO,MAAeA,OAAO,CAAuB;EAIlDC,WAAWA,CAACC,GAAgB,EAASC,IAAc,EAAYC,KAAQ,EAAE;IAAA,KAApCD,IAAc,GAAdA,IAAc;IAAA,KAAYC,KAAQ,GAARA,KAAQ;IAAAC,eAAA,oBAH7B,EAAE;IAAAA,eAAA;IAI1C,IAAI,CAACC,IAAI,GAAGJ,GAAG,CAACI,IAAI;EACtB;EAEAC,QAAQA,CAACH,KAAQ,EAAE;IACjB,IAAI,CAACA,KAAK,GAAGA,KAAK;EACpB;EAEAI,OAAOA,CAAoBC,IAAO,EAAEC,CAAO,EAAE;IAC3C,MAAMC,UAAU,GAAG,IAAI,CAACP,KAAK,CAACK,IAAI,CAAC,KAAKC,CAAC;IACzC,IAAI,CAACN,KAAK,CAACK,IAAI,CAAC,GAAGC,CAAC;IACpB,OAAOC,UAAU;EACnB;EAEAC,QAAQA,CAAA,EAAG;IACT,OAAO,IAAI,CAACR,KAAK;EACnB;EAEAS,QAAQA,CAAA,EAAG;IACT,OAAO,IAAI,CAACC,SAAS;EACvB;EAEAC,QAAQA,CAACC,KAAoB,EAAE;IAC7B,IAAI,CAACC,WAAW,CAACD,KAAK,CAAC;IACvB,IAAI,CAACF,SAAS,CAACI,IAAI,CAACF,KAAyB,CAAC;EAChD;EAEAG,OAAOA,CAAA,EAAG;IACR,IAAI,CAACL,SAAS,CAACM,OAAO,CAAEJ,KAAK,IAAKA,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;EACpD;EAEAF,WAAWA,CAACD,KAAoB,EAAE;IAChC,MAAMK,KAAK,GAAG,IAAI,CAACP,SAAS,CAACQ,OAAO,CAACN,KAAyB,CAAC;IAC/D,IAAIK,KAAK,KAAK,CAAC,CAAC,EAAE;MAChB,MAAM,CA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ACgB,UAAU,CAAC,CAAC;EACnB;EAEAP,iBAAiBA,CAACT,KAAoB,EAAEU,MAAqB,EAAQ;IACnE,IAAI,EAAEV,KAAK,YAAYY,kBAAkB,CAAC,EAAE;MAC1C,MAAM,IAAIG,KAAK,CAAC,4BAA4Bf,KAAK,CAACb,IAAI,OAAO,IAAI,CAACA,IAAI,EAAE,CAAC;IAC3E;IACA,KAAK,CAACsB,iBAAiB,CAACT,KAAK,EAAEU,MAAM,CAAC;IACtC,IAAI,CAACM,UAAU,CAAC,CAAC;EACnB;EAEAb,OAAOA,CAAA,EAAG;IACR,IAAI,CAACa,UAAU,CAAC,CAAC;IACjB,KAAK,CAACb,OAAO,CAAC,CAAC;EACjB;EAEAc,aAAaA,CAACD,UAAsB,EAAE;IACpC,IAAI,CAACA,UAAU,GAAGA,UAAU;EAC9B;EAEAzB,QAAQA,CAACH,KAAQ,EAAE;IACjB,KAAK,CAACG,QAAQ,CAACH,KAAK,CAAC;IACrB,IAAI,CAAC4B,UAAU,CAAC,CAAC;EACnB;EAEAxB,OAAOA,CAAoBC,IAAO,EAAEC,CAAO,EAAE;IAC3C,MAAMC,UAAU,GAAG,KAAK,CAACH,OAAO,CAACC,IAAI,EAAEC,CAAC,CAAC;IACzC,IAAIC,UAAU,EAAE;MACd,IAAI,CAACqB,UAAU,CAAC,CAAC;IACnB;IACA,OAAOrB,UAAU;EACnB;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["StrokeCap","StrokeJoin","PaintStyle","BlendMode","NodeType","enumKey","JsiDeclarationNode","PaintNode","constructor","ctx","props","Paint","decorate","color","strokeWidth","blendMode","style","strokeJoin","strokeCap","strokeMiter","opacity","antiAlias","dither","paint","Skia","undefined","setColor","Color","setStrokeWidth","setBlendMode","setStyle","setStrokeJoin","setStrokeCap","setStrokeMiter","setAlphaf","setAntiAlias","setDither","save","_children","forEach","child","colorFilter","colorFilters","popAllAsOne","imageFilter","imageFilters","shader","shaders","pop","maskFilter","maskFilters","pathEffect","pathEffects","restore","setImageFilter","setShader","setPathEffect","setColorFilter","setMaskFilter","paints","push"],"sources":["PaintNode.ts"],"sourcesContent":["import { StrokeCap, StrokeJoin, PaintStyle, BlendMode } from \"../../skia/types\";\nimport type { DeclarationNode, PaintProps } from \"../types\";\nimport { NodeType } from \"../types\";\nimport type { DeclarationContext } from \"../types/DeclarationContext\";\n\nimport { enumKey } from \"./datatypes\";\nimport type { NodeContext } from \"./Node\";\nimport { JsiDeclarationNode } from \"./Node\";\n\nexport class PaintNode\n extends JsiDeclarationNode<PaintProps>\n implements DeclarationNode<PaintProps>\n{\n constructor(ctx: NodeContext, props: PaintProps = {}) {\n super(ctx, NodeType.Paint, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const {\n color,\n strokeWidth,\n blendMode,\n style,\n strokeJoin,\n strokeCap,\n strokeMiter,\n opacity,\n antiAlias,\n dither,\n } = this.props;\n const paint = this.Skia.Paint();\n if (color !== undefined) {\n paint.setColor(this.Skia.Color(color));\n }\n if (strokeWidth !== undefined) {\n paint.setStrokeWidth(strokeWidth);\n }\n if (blendMode !== undefined) {\n paint.setBlendMode(BlendMode[enumKey(blendMode)]);\n }\n if (style !== undefined) {\n paint.setStyle(PaintStyle[enumKey(style)]);\n }\n if (strokeJoin !== undefined) {\n paint.setStrokeJoin(StrokeJoin[enumKey(strokeJoin)]);\n }\n if (strokeCap !== undefined) {\n paint.setStrokeCap(StrokeCap[enumKey(strokeCap)]);\n }\n if (strokeMiter !== undefined) {\n paint.setStrokeMiter(strokeMiter);\n }\n if (opacity !== undefined) {\n paint.setAlphaf(opacity);\n }\n if (antiAlias !== undefined) {\n paint.setAntiAlias(antiAlias);\n }\n if (dither !== undefined) {\n paint.setDither(dither);\n }\n ctx.save();\n this._children.forEach((child) => {\n if (child instanceof JsiDeclarationNode) {\n child.decorate(ctx);\n }\n });\n const colorFilter = ctx.colorFilters.popAllAsOne();\n const imageFilter = ctx.imageFilters.popAllAsOne();\n const shader = ctx.shaders.pop();\n const maskFilter = ctx.maskFilters.pop();\n const pathEffect = ctx.pathEffects.popAllAsOne();\n ctx.restore();\n if (imageFilter) {\n paint.setImageFilter(imageFilter);\n }\n if (shader) {\n paint.setShader(shader);\n }\n if (pathEffect) {\n paint.setPathEffect(pathEffect);\n }\n if (colorFilter) {\n paint.setColorFilter(colorFilter);\n }\n if (maskFilter) {\n paint.setMaskFilter(maskFilter);\n }\n ctx.paints.push(paint);\n }\n}\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,UAAU,EAAEC,UAAU,EAAEC,SAAS,QAAQ,kBAAkB;AAE/E,SAASC,QAAQ,QAAQ,UAAU;AAGnC,SAASC,OAAO,QAAQ,aAAa;AAErC,SAASC,kBAAkB,QAAQ,QAAQ;AAE3C,OAAO,MAAMC,SAAS,SACZD,kBAAkB,CAE5B;EACEE,WAAWA,CAACC,GAAgB,EAAEC,KAAiB,GAAG,CAAC,CAAC,EAAE;IACpD,KAAK,CAACD,GAAG,EAAEL,QAAQ,CAACO,KAAK,EAAED,KAAK,CAAC;EACnC;EAEAE,QAAQA,CAACH,GAAuB,EAAE;IAChC,MAAM;MACJI,KAAK;MACLC,WAAW;MACXC,SAAS;MACTC,KAAK;MACLC,UAAU;MACVC,SAAS;MACTC,WAAW;MACXC,OAAO;MACPC,SAAS;MACTC;IACF,CAAC,GAAG,IAAI,CAACZ,KAAK;IACd,MAAMa,KAAK,GAAG,IAAI,CAACC,IAAI,CAACb,KAAK,CAAC,CAAC;IAC/B,IAAIE,KAAK,KAAKY,SAAS,EAAE;MACvBF,KAAK,CAACG,QAAQ,CAAC,IAAI,CAACF,IAAI,CAACG,KAAK,CAACd,KAAK,CAAC,CAAC;IACxC;IACA,IAAIC,WAAW,KAAKW,SAAS,EAAE;MAC7BF,KAAK,CAACK,cAAc,CAACd,WAAW,CAAC;IACnC;IACA,IAAIC,SAAS,KAAKU,SAAS,EAAE;MAC3BF,KAAK,CAACM,YAAY,CAAC1B,SAAS,CAACE,OAAO,CAACU,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F,GAAG,CAAC,CAAC;IACxC,MAAMG,UAAU,GAAG1C,GAAG,CAAC2C,WAAW,CAACT,WAAW,CAAC,CAAC;IAChDlC,GAAG,CAAC4C,OAAO,CAAC,CAAC;IACb,IAAIT,WAAW,EAAE;MACfrB,KAAK,CAAC+B,cAAc,CAACV,WAAW,CAAC;IACnC;IACA,IAAIE,MAAM,EAAE;MACVvB,KAAK,CAACgC,SAAS,CAACT,MAAM,CAAC;IACzB;IACA,IAAIK,UAAU,EAAE;MACd5B,KAAK,CAACiC,aAAa,CAACL,UAAU,CAAC;IACjC;IACA,IAAIV,WAAW,EAAE;MACflB,KAAK,CAACkC,cAAc,CAAChB,WAAW,CAAC;IACnC;IACA,IAAIQ,UAAU,EAAE;MACd1B,KAAK,CAACmC,aAAa,CAACT,UAAU,CAAC;IACjC;IACAxC,GAAG,CAACkD,MAAM,CAACC,IAAI,CAACrC,KAAK,CAAC;EACxB;AACF"}
1
+ {"version":3,"names":["StrokeCap","StrokeJoin","PaintStyle","BlendMode","NodeType","enumKey","JsiDeclarationNode","PaintNode","constructor","ctx","props","Paint","decorate","color","strokeWidth","blendMode","style","strokeJoin","strokeCap","strokeMiter","opacity","antiAlias","dither","paint","Skia","undefined","setColor","Color","setStrokeWidth","setBlendMode","setStyle","setStrokeJoin","setStrokeCap","setStrokeMiter","setAlphaf","setAntiAlias","setDither","save","_children","forEach","child","colorFilter","colorFilters","popAllAsOne","imageFilter","imageFilters","shader","shaders","pop","maskFilter","maskFilters","pathEffect","pathEffects","restore","setImageFilter","setShader","setPathEffect","setColorFilter","setMaskFilter","paints","push"],"sources":["PaintNode.ts"],"sourcesContent":["import { StrokeCap, StrokeJoin, PaintStyle, BlendMode } from \"../../skia/types\";\nimport type { DeclarationNode, PaintProps } from \"../types\";\nimport { NodeType } from \"../types\";\nimport type { DeclarationContext } from \"../types/DeclarationContext\";\n\nimport { enumKey } from \"./datatypes\";\nimport type { NodeContext } from \"./Node\";\nimport { JsiDeclarationNode } from \"./Node\";\n\nexport class PaintNode\n extends JsiDeclarationNode<PaintProps>\n implements DeclarationNode<PaintProps>\n{\n constructor(ctx: NodeContext, props: PaintProps = {}) {\n super(ctx, NodeType.Paint, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const {\n color,\n strokeWidth,\n blendMode,\n style,\n strokeJoin,\n strokeCap,\n strokeMiter,\n opacity,\n antiAlias,\n dither,\n } = this.props;\n const paint = this.Skia.Paint();\n if (color !== undefined) {\n paint.setColor(this.Skia.Color(color));\n }\n if (strokeWidth !== undefined) {\n paint.setStrokeWidth(strokeWidth);\n }\n if (blendMode !== undefined) {\n paint.setBlendMode(BlendMode[enumKey(blendMode)]);\n }\n if (style !== undefined) {\n paint.setStyle(PaintStyle[enumKey(style)]);\n }\n if (strokeJoin !== undefined) {\n paint.setStrokeJoin(StrokeJoin[enumKey(strokeJoin)]);\n }\n if (strokeCap !== undefined) {\n paint.setStrokeCap(StrokeCap[enumKey(strokeCap)]);\n }\n if (strokeMiter !== undefined) {\n paint.setStrokeMiter(strokeMiter);\n }\n if (opacity !== undefined) {\n paint.setAlphaf(opacity);\n }\n if (antiAlias !== undefined) {\n paint.setAntiAlias(antiAlias);\n }\n if (dither !== undefined) {\n paint.setDither(dither);\n }\n ctx.save();\n this._children.forEach((child) => {\n if (child instanceof JsiDeclarationNode) {\n child.decorate(ctx);\n }\n });\n const colorFilter = ctx.colorFilters.popAllAsOne();\n const imageFilter = ctx.imageFilters.popAllAsOne();\n const shader = ctx.shaders.pop();\n const maskFilter = ctx.maskFilters.pop();\n const pathEffect = ctx.pathEffects.popAllAsOne();\n ctx.restore();\n if (imageFilter) {\n paint.setImageFilter(imageFilter);\n }\n if (shader) {\n paint.setShader(shader);\n }\n if (pathEffect) {\n paint.setPathEffect(pathEffect);\n }\n if (colorFilter) {\n paint.setColorFilter(colorFilter);\n }\n if (maskFilter) {\n paint.setMaskFilter(maskFilter);\n }\n ctx.paints.push(paint);\n }\n}\n"],"mappings":"AAAA,SAASA,SAAS,E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d5B,KAAK,CAACiC,aAAa,CAACL,UAAU,CAAC;IACjC;IACA,IAAIV,WAAW,EAAE;MACflB,KAAK,CAACkC,cAAc,CAAChB,WAAW,CAAC;IACnC;IACA,IAAIQ,UAAU,EAAE;MACd1B,KAAK,CAACmC,aAAa,CAACT,UAAU,CAAC;IACjC;IACAxC,GAAG,CAACkD,MAAM,CAACC,IAAI,CAACrC,KAAK,CAAC;EACxB;AACF","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
3
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { ClipOp, isRRect } from "../../skia/types";
5
5
  import { isPathDef, processPath, processTransformProps } from "./datatypes";
@@ -1 +1 @@
1
- {"version":3,"names":["ClipOp","isRRect","isPathDef","processPath","processTransformProps","JsiNode","JsiDeclarationNode","paintProps","JsiRenderNode","constructor","ctx","type","props","_defineProperty","matrix","Skia","Matrix","onPropChange","setProps","setProp","key","value","hasChanged","includes","paintCache","identity","clipPath","undefined","clipRect","clipRRect","computeMatrix","computeClip","addChild","child","setInvalidate","insertChildBefore","before","clip","render","invertClip","layer","transform","canvas","parentPaint","paint","cache","parent","shouldRestore","saveAndConcat","hasTransform","hasClip","shouldSave","op","Difference","Intersect","saveLayer","save","concat","renderNode","restore"],"sources":["RenderNode.ts"],"sourcesContent":["import type {\n SkMatrix,\n SkRect,\n SkRRect,\n SkPath,\n SkPaint,\n} from \"../../skia/types\";\nimport { ClipOp, isRRect } from \"../../skia/types\";\nimport type {\n RenderNode,\n GroupProps,\n NodeType,\n Node,\n DrawingContext,\n} from \"../types\";\n\nimport { isPathDef, processPath, processTransformProps } from \"./datatypes\";\nimport type { NodeContext } from \"./Node\";\nimport { JsiNode, JsiDeclarationNode } from \"./Node\";\n\nconst paintProps = [\n \"color\",\n \"strokeWidth\",\n \"blendMode\",\n \"strokeCap\",\n \"strokeJoin\",\n \"strokeMiter\",\n \"style\",\n \"antiAlias\",\n \"dither\",\n \"opacity\",\n];\n\ninterface PaintCache {\n parent: SkPaint;\n child: SkPaint;\n}\n\nexport abstract class JsiRenderNode<P extends GroupProps>\n extends JsiNode<P>\n implements RenderNode<P>\n{\n paintCache: PaintCache | null = null;\n\n matrix: SkMatrix;\n clipRect?: SkRect;\n clipRRect?: SkRRect;\n clipPath?: SkPath;\n\n constructor(ctx: NodeContext, type: NodeType, props: P) {\n super(ctx, type, props);\n this.matrix = this.Skia.Matrix();\n this.onPropChange();\n }\n\n setProps(props: P) {\n super.setProps(props);\n this.onPropChange();\n }\n\n setProp<K extends keyof P>(key: K, value: P[K]) {\n const hasChanged = super.setProp(key, value);\n if (hasChanged) {\n this.onPropChange();\n if (paintProps.includes(key as string)) {\n this.paintCache = null;\n }\n }\n return hasChanged;\n }\n\n protected onPropChange() {\n this.matrix.identity();\n this.clipPath = undefined;\n this.clipRect = undefined;\n this.clipRRect = undefined;\n this.computeMatrix();\n this.computeClip();\n }\n\n addChild(child: Node<unknown>) {\n if (child instanceof JsiDeclarationNode) {\n child.setInvalidate(() => {\n this.paintCache = null;\n });\n }\n super.addChild(child);\n }\n\n insertChildBefore(child: Node<unknown>, before: Node<unknown>) {\n if (child instanceof JsiDeclarationNode) {\n child.setInvalidate(() => {\n this.paintCache = null;\n });\n }\n super.insertChildBefore(child, before);\n }\n\n private computeClip() {\n const { clip } = this.props;\n if (clip) {\n if (isPathDef(clip)) {\n this.clipPath = processPath(this.Skia, clip);\n } else if (isRRect(clip)) {\n this.clipRRect = clip;\n } else {\n this.clipRect = clip;\n }\n }\n }\n\n private computeMatrix() {\n processTransformProps(this.matrix, this.props);\n }\n\n render(ctx: DrawingContext) {\n const { invertClip, layer, matrix, transform } = this.props;\n const { canvas } = ctx;\n const parentPaint = ctx.paint;\n\n const cache =\n this.paintCache !== null && this.paintCache.parent === ctx.paint\n ? this.paintCache.child\n : undefined;\n const shouldRestore = ctx.saveAndConcat(this, cache);\n\n const hasTransform = matrix !== undefined || transform !== undefined;\n const hasClip =\n this.clipRect !== undefined ||\n this.clipPath !== undefined ||\n this.clipRRect !== undefined;\n const shouldSave = hasTransform || hasClip || !!layer;\n const op = invertClip ? ClipOp.Difference : ClipOp.Intersect;\n if (shouldSave) {\n if (layer) {\n if (typeof layer === \"boolean\") {\n canvas.saveLayer();\n } else {\n canvas.saveLayer(layer);\n }\n } else {\n canvas.save();\n }\n }\n\n if (this.matrix) {\n canvas.concat(this.matrix);\n }\n if (this.clipRect) {\n canvas.clipRect(this.clipRect, op, true);\n } else if (this.clipRRect) {\n canvas.clipRRect(this.clipRRect, op, true);\n } else if (this.clipPath) {\n canvas.clipPath(this.clipPath, op, true);\n }\n\n this.renderNode(ctx);\n\n if (shouldSave) {\n canvas.restore();\n }\n if (shouldRestore) {\n this.paintCache = {\n parent: parentPaint,\n child: ctx.paint,\n };\n ctx.restore();\n }\n }\n\n abstract renderNode(ctx: DrawingContext): void;\n}\n"],"mappings":";;;AAOA,SAASA,MAAM,EAAEC,OAAO,QAAQ,kBAAkB;AASlD,SAASC,SAAS,EAAEC,WAAW,EAAEC,qBAAqB,QAAQ,aAAa;AAE3E,SAASC,OAAO,EAAEC,kBAAkB,QAAQ,QAAQ;AAEpD,MAAMC,UAAU,GAAG,CACjB,OAAO,EACP,aAAa,EAC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CAAC,IAAI,CAACA,QAAQ,EAAE0B,EAAE,EAAE,IAAI,CAAC;IAC1C;IAEA,IAAI,CAACM,UAAU,CAAChD,GAAG,CAAC;IAEpB,IAAIyC,UAAU,EAAE;MACdT,MAAM,CAACiB,OAAO,CAAC,CAAC;IAClB;IACA,IAAIZ,aAAa,EAAE;MACjB,IAAI,CAACvB,UAAU,GAAG;QAChBsB,MAAM,EAAEH,WAAW;QACnBV,KAAK,EAAEvB,GAAG,CAACkC;MACb,CAAC;MACDlC,GAAG,CAACiD,OAAO,CAAC,CAAC;IACf;EACF;AAGF"}
1
+ {"version":3,"names":["ClipOp","isRRect","isPathDef","processPath","processTransformProps","JsiNode","JsiDeclarationNode","paintProps","JsiRenderNode","constructor","ctx","type","props","_defineProperty","matrix","Skia","Matrix","onPropChange","setProps","setProp","key","value","hasChanged","includes","paintCache","identity","clipPath","undefined","clipRect","clipRRect","computeMatrix","computeClip","addChild","child","setInvalidate","insertChildBefore","before","clip","render","invertClip","layer","transform","canvas","parentPaint","paint","cache","parent","shouldRestore","saveAndConcat","hasTransform","hasClip","shouldSave","op","Difference","Intersect","saveLayer","save","concat","renderNode","restore"],"sources":["RenderNode.ts"],"sourcesContent":["import type {\n SkMatrix,\n SkRect,\n SkRRect,\n SkPath,\n SkPaint,\n} from \"../../skia/types\";\nimport { ClipOp, isRRect } from \"../../skia/types\";\nimport type {\n RenderNode,\n GroupProps,\n NodeType,\n Node,\n DrawingContext,\n} from \"../types\";\n\nimport { isPathDef, processPath, processTransformProps } from \"./datatypes\";\nimport type { NodeContext } from \"./Node\";\nimport { JsiNode, JsiDeclarationNode } from \"./Node\";\n\nconst paintProps = [\n \"color\",\n \"strokeWidth\",\n \"blendMode\",\n \"strokeCap\",\n \"strokeJoin\",\n \"strokeMiter\",\n \"style\",\n \"antiAlias\",\n \"dither\",\n \"opacity\",\n];\n\ninterface PaintCache {\n parent: SkPaint;\n child: SkPaint;\n}\n\nexport abstract class JsiRenderNode<P extends GroupProps>\n extends JsiNode<P>\n implements RenderNode<P>\n{\n paintCache: PaintCache | null = null;\n\n matrix: SkMatrix;\n clipRect?: SkRect;\n clipRRect?: SkRRect;\n clipPath?: SkPath;\n\n constructor(ctx: NodeContext, type: NodeType, props: P) {\n super(ctx, type, props);\n this.matrix = this.Skia.Matrix();\n this.onPropChange();\n }\n\n setProps(props: P) {\n super.setProps(props);\n this.onPropChange();\n }\n\n setProp<K extends keyof P>(key: K, value: P[K]) {\n const hasChanged = super.setProp(key, value);\n if (hasChanged) {\n this.onPropChange();\n if (paintProps.includes(key as string)) {\n this.paintCache = null;\n }\n }\n return hasChanged;\n }\n\n protected onPropChange() {\n this.matrix.identity();\n this.clipPath = undefined;\n this.clipRect = undefined;\n this.clipRRect = undefined;\n this.computeMatrix();\n this.computeClip();\n }\n\n addChild(child: Node<unknown>) {\n if (child instanceof JsiDeclarationNode) {\n child.setInvalidate(() => {\n this.paintCache = null;\n });\n }\n super.addChild(child);\n }\n\n insertChildBefore(child: Node<unknown>, before: Node<unknown>) {\n if (child instanceof JsiDeclarationNode) {\n child.setInvalidate(() => {\n this.paintCache = null;\n });\n }\n super.insertChildBefore(child, before);\n }\n\n private computeClip() {\n const { clip } = this.props;\n if (clip) {\n if (isPathDef(clip)) {\n this.clipPath = processPath(this.Skia, clip);\n } else if (isRRect(clip)) {\n this.clipRRect = clip;\n } else {\n this.clipRect = clip;\n }\n }\n }\n\n private computeMatrix() {\n processTransformProps(this.matrix, this.props);\n }\n\n render(ctx: DrawingContext) {\n const { invertClip, layer, matrix, transform } = this.props;\n const { canvas } = ctx;\n const parentPaint = ctx.paint;\n\n const cache =\n this.paintCache !== null && this.paintCache.parent === ctx.paint\n ? this.paintCache.child\n : undefined;\n const shouldRestore = ctx.saveAndConcat(this, cache);\n\n const hasTransform = matrix !== undefined || transform !== undefined;\n const hasClip =\n this.clipRect !== undefined ||\n this.clipPath !== undefined ||\n this.clipRRect !== undefined;\n const shouldSave = hasTransform || hasClip || !!layer;\n const op = invertClip ? ClipOp.Difference : ClipOp.Intersect;\n if (shouldSave) {\n if (layer) {\n if (typeof layer === \"boolean\") {\n canvas.saveLayer();\n } else {\n canvas.saveLayer(layer);\n }\n } else {\n canvas.save();\n }\n }\n\n if (this.matrix) {\n canvas.concat(this.matrix);\n }\n if (this.clipRect) {\n canvas.clipRect(this.clipRect, op, true);\n } else if (this.clipRRect) {\n canvas.clipRRect(this.clipRRect, op, true);\n } else if (this.clipPath) {\n canvas.clipPath(this.clipPath, op, true);\n }\n\n this.renderNode(ctx);\n\n if (shouldSave) {\n canvas.restore();\n }\n if (shouldRestore) {\n this.paintCache = {\n parent: parentPaint,\n child: ctx.paint,\n };\n ctx.restore();\n }\n }\n\n abstract renderNode(ctx: DrawingContext): void;\n}\n"],"mappings":";;;AAOA,SAASA,MAAM,EAAEC,OAAO,QAAQ,kBAAkB;AASlD,SAASC,SAAS,EAAEC,WAAW,EAAEC,qBAAqB,QAAQ,aAAa;AAE3E,SAASC,OAAO,EAAEC,kBAAkB,QAAQ,QAAQ;AAEpD,MAAMC,UAAU,GAAG,CACjB,OAAO,EACP,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa,EACb,OAAO,EACP,WAAW,EACX,QAAQ,EACR,SAAS,CACV;AAOD,OAAO,MAAeC,aAAa,SACzBH,OAAO,CAEjB;EAQEI,WAAWA,CAACC,GAAgB,EAAEC,IAAc,EAAEC,KAAQ,EAAE;IACtD,KAAK,CAACF,GAAG,EAAEC,IAAI,EAAEC,KAAK,CAAC;IAACC,eAAA,qBARM,IAAI;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IASlC,IAAI,CAACC,MAAM,GAAG,IAAI,CAACC,IAAI,CAACC,MAAM,CAAC,CAAC;IAChC,IAAI,CAACC,YAAY,CAAC,CAAC;EACrB;EAEAC,QAAQA,CAACN,KAAQ,EAAE;IACjB,KAAK,CAACM,QAAQ,CAACN,KAAK,CAAC;IACrB,IAAI,CAACK,YAA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IH,UAAU,EAAE;MACd,IAAIX,KAAK,EAAE;QACT,IAAI,OAAOA,KAAK,KAAK,SAAS,EAAE;UAC9BE,MAAM,CAACa,SAAS,CAAC,CAAC;QACpB,CAAC,MAAM;UACLb,MAAM,CAACa,SAAS,CAACf,KAAK,CAAC;QACzB;MACF,CAAC,MAAM;QACLE,MAAM,CAACc,IAAI,CAAC,CAAC;MACf;IACF;IAEA,IAAI,IAAI,CAAC1C,MAAM,EAAE;MACf4B,MAAM,CAACe,MAAM,CAAC,IAAI,CAAC3C,MAAM,CAAC;IAC5B;IACA,IAAI,IAAI,CAACc,QAAQ,EAAE;MACjBc,MAAM,CAACd,QAAQ,CAAC,IAAI,CAACA,QAAQ,EAAEwB,EAAE,EAAE,IAAI,CAAC;IAC1C,CAAC,MAAM,IAAI,IAAI,CAACvB,SAAS,EAAE;MACzBa,MAAM,CAACb,SAAS,CAAC,IAAI,CAACA,SAAS,EAAEuB,EAAE,EAAE,IAAI,CAAC;IAC5C,CAAC,MAAM,IAAI,IAAI,CAAC1B,QAAQ,EAAE;MACxBgB,MAAM,CAAChB,QAAQ,CAAC,IAAI,CAACA,QAAQ,EAAE0B,EAAE,EAAE,IAAI,CAAC;IAC1C;IAEA,IAAI,CAACM,UAAU,CAAChD,GAAG,CAAC;IAEpB,IAAIyC,UAAU,EAAE;MACdT,MAAM,CAACiB,OAAO,CAAC,CAAC;IAClB;IACA,IAAIZ,aAAa,EAAE;MACjB,IAAI,CAACvB,UAAU,GAAG;QAChBsB,MAAM,EAAEH,WAAW;QACnBV,KAAK,EAAEvB,GAAG,CAACkC;MACb,CAAC;MACDlC,GAAG,CAACiD,OAAO,CAAC,CAAC;IACf;EACF;AAGF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["isCircleScalarDef","def","cx","undefined","processCircle","Skia","_def$c","c","Point","cy","r","x","y"],"sources":["Circle.ts"],"sourcesContent":["import type { Skia } from \"../../../skia/types\";\nimport type { CircleDef, ScalarCircleDef } from \"../../types\";\n\nexport const isCircleScalarDef = (def: CircleDef): def is ScalarCircleDef =>\n // We have an issue to check property existence on JSI backed instances\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (def as any).cx !== undefined;\n\nexport const processCircle = (Skia: Skia, def: CircleDef) => {\n if (isCircleScalarDef(def)) {\n return { c: Skia.Point(def.cx, def.cy), r: def.r };\n }\n return { ...def, c: def.c ?? { x: 0, y: 0 } };\n};\n"],"mappings":"AAGA,OAAO,MAAMA,iBAAiB,GAAIC,GAAc;AAC9C;AACA;AACCA,GAAG,CAASC,EAAE,KAAKC,SAAS;AAE/B,OAAO,MAAMC,aAAa,GAAGA,CAACC,IAAU,EAAEJ,GAAc,KAAK;EAAA,IAAAK,MAAA;EAC3D,IAAIN,iBAAiB,CAACC,GAAG,CAAC,EAAE;IAC1B,OAAO;MAAEM,CAAC,EAAEF,IAAI,CAACG,KAAK,CAACP,GAAG,CAACC,EAAE,EAAED,GAAG,CAACQ,EAAE,CAAC;MAAEC,CAAC,EAAET,GAAG,CAACS;IAAE,CAAC;EACpD;EACA,OAAO;IAAE,GAAGT,GAAG;IAAEM,CAAC,GAAAD,MAAA,GAAEL,GAAG,CAACM,CAAC,cAAAD,MAAA,cAAAA,MAAA,GAAI;MAAEK,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE;EAAE,CAAC;AAC/C,CAAC"}
1
+ {"version":3,"names":["isCircleScalarDef","def","cx","undefined","processCircle","Skia","_def$c","c","Point","cy","r","x","y"],"sources":["Circle.ts"],"sourcesContent":["import type { Skia } from \"../../../skia/types\";\nimport type { CircleDef, ScalarCircleDef } from \"../../types\";\n\nexport const isCircleScalarDef = (def: CircleDef): def is ScalarCircleDef =>\n // We have an issue to check property existence on JSI backed instances\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (def as any).cx !== undefined;\n\nexport const processCircle = (Skia: Skia, def: CircleDef) => {\n if (isCircleScalarDef(def)) {\n return { c: Skia.Point(def.cx, def.cy), r: def.r };\n }\n return { ...def, c: def.c ?? { x: 0, y: 0 } };\n};\n"],"mappings":"AAGA,OAAO,MAAMA,iBAAiB,GAAIC,GAAc;AAC9C;AACA;AACCA,GAAG,CAASC,EAAE,KAAKC,SAAS;AAE/B,OAAO,MAAMC,aAAa,GAAGA,CAACC,IAAU,EAAEJ,GAAc,KAAK;EAAA,IAAAK,MAAA;EAC3D,IAAIN,iBAAiB,CAACC,GAAG,CAAC,EAAE;IAC1B,OAAO;MAAEM,CAAC,EAAEF,IAAI,CAACG,KAAK,CAACP,GAAG,CAACC,EAAE,EAAED,GAAG,CAACQ,EAAE,CAAC;MAAEC,CAAC,EAAET,GAAG,CAACS;IAAE,CAAC;EACpD;EACA,OAAO;IAAE,GAAGT,GAAG;IAAEM,CAAC,GAAAD,MAAA,GAAEL,GAAG,CAACM,CAAC,cAAAD,MAAA,cAAAA,MAAA,GAAI;MAAEK,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE;EAAE,CAAC;AAC/C,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["enumKey","k","charAt","toUpperCase","slice"],"sources":["Enum.ts"],"sourcesContent":["export const enumKey = <K extends string>(k: K) =>\n (k.charAt(0).toUpperCase() + k.slice(1)) as Capitalize<K>;\n"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAsBC,CAAI,IAC3CA,CAAC,CAACC,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGF,CAAC,CAACG,KAAK,CAAC,CAAC,CAAmB"}
1
+ {"version":3,"names":["enumKey","k","charAt","toUpperCase","slice"],"sources":["Enum.ts"],"sourcesContent":["export const enumKey = <K extends string>(k: K) =>\n (k.charAt(0).toUpperCase() + k.slice(1)) as Capitalize<K>;\n"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAsBC,CAAI,IAC3CA,CAAC,CAACC,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGF,CAAC,CAACG,KAAK,CAAC,CAAC,CAAmB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["exhaustiveCheck","size","width","height","rect2rect","src","dst","scaleX","scaleY","translateX","x","translateY","y","inscribe","rect","halfWidthDelta","halfHeightDelta","applyBoxFit","fit","input","output","Math","min","aspectRatio","fitRects","sizes"],"sources":["Fitting.ts"],"sourcesContent":["import { exhaustiveCheck } from \"../../../renderer/typeddash\";\nimport type { SkRect } from \"../../../skia/types\";\nimport type { Fit } from \"../../types\";\n\nexport interface Size {\n width: number;\n height: number;\n}\n\nexport const size = (width = 0, height = 0) => {\n \"worklet\";\n return { width, height };\n};\n\nexport const rect2rect = (\n src: SkRect,\n dst: SkRect\n): [\n { translateX: number },\n { translateY: number },\n { scaleX: number },\n { scaleY: number }\n] => {\n \"worklet\";\n const scaleX = dst.width / src.width;\n const scaleY = dst.height / src.height;\n const translateX = dst.x - src.x * scaleX;\n const translateY = dst.y - src.y * scaleY;\n return [{ translateX }, { translateY }, { scaleX }, { scaleY }];\n};\n\nconst inscribe = (\n { width, height }: Size,\n rect: { x: number; y: number; width: number; height: number }\n) => {\n \"worklet\";\n const halfWidthDelta = (rect.width - width) / 2.0;\n const halfHeightDelta = (rect.height - height) / 2.0;\n return {\n x: rect.x + halfWidthDelta,\n y: rect.y + halfHeightDelta,\n width,\n height,\n };\n};\n\nconst applyBoxFit = (fit: Fit, input: Size, output: Size) => {\n \"worklet\";\n let src = size(),\n dst = size();\n if (\n input.height <= 0.0 ||\n input.width <= 0.0 ||\n output.height <= 0.0 ||\n output.width <= 0.0\n ) {\n return { src, dst };\n }\n switch (fit) {\n case \"fill\":\n src = input;\n dst = output;\n break;\n case \"contain\":\n src = input;\n if (output.width / output.height > src.width / src.height) {\n dst = size((src.width * output.height) / src.height, output.height);\n } else {\n dst = size(output.width, (src.height * output.width) / src.width);\n }\n break;\n case \"cover\":\n if (output.width / output.height > input.width / input.height) {\n src = size(input.width, (input.width * output.height) / output.width);\n } else {\n src = size((input.height * output.width) / output.height, input.height);\n }\n dst = output;\n break;\n case \"fitWidth\":\n src = size(input.width, (input.width * output.height) / output.width);\n dst = size(output.width, (src.height * output.width) / src.width);\n break;\n case \"fitHeight\":\n src = size((input.height * output.width) / output.height, input.height);\n dst = size((src.width * output.height) / src.height, output.height);\n break;\n case \"none\":\n src = size(\n Math.min(input.width, output.width),\n Math.min(input.height, output.height)\n );\n dst = src;\n break;\n case \"scaleDown\":\n src = input;\n dst = input;\n const aspectRatio = input.width / input.height;\n if (dst.height > output.height) {\n dst = size(output.height * aspectRatio, output.height);\n }\n if (dst.width > output.width) {\n dst = size(output.width, output.width / aspectRatio);\n }\n break;\n default:\n exhaustiveCheck(fit);\n }\n return { src, dst };\n};\n\nexport const fitRects = (\n fit: Fit,\n rect: SkRect,\n { x, y, width, height }: SkRect\n) => {\n \"worklet\";\n const sizes = applyBoxFit(\n fit,\n { width: rect.width, height: rect.height },\n { width, height }\n );\n const src = inscribe(sizes.src, rect);\n const dst = inscribe(sizes.dst, {\n x,\n y,\n width,\n height,\n });\n return { src, dst };\n};\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,6BAA6B;AAS7D,OAAO,MAAMC,IAAI,GAAGA,CAACC,KAAK,GAAG,CAAC,EAAEC,MAAM,GAAG,CAAC,KAAK;EAC7C,SAAS;;EACT,OAAO;IAAED,KAAK;IAAEC;EAAO,CAAC;AAC1B,CAAC;AAED,OAAO,MAAMC,SAAS,GAAGA,CACvBC,GAAW,EACXC,GAAW,KAMR;EACH,SAAS;;EACT,MAAMC,MAAM,GAAGD,GAAG,CAACJ,KAAK,GAAGG,GAAG,CAACH,KAAK;EACpC,MAAMM,MAAM,GAAGF,GAAG,CAACH,MAAM,GAAGE,GAAG,CAACF,MAAM;EACtC,MAAMM,UAAU,GAAGH,GAAG,CAACI,CAAC,GAAGL,GAAG,CAACK,CAAC,GAAGH,MAAM;EACzC,MAAMI,UAAU,GAAGL,GAAG,CAACM,CAAC,GAAGP,GAAG,CAACO,CAAC,GAA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,EAC1C;IAAED,KAAK;IAAEC;EAAO,CAClB,CAAC;EACD,MAAME,GAAG,GAAGQ,QAAQ,CAACY,KAAK,CAACpB,GAAG,EAAES,IAAI,CAAC;EACrC,MAAMR,GAAG,GAAGO,QAAQ,CAACY,KAAK,CAACnB,GAAG,EAAE;IAC9BI,CAAC;IACDE,CAAC;IACDV,KAAK;IACLC;EACF,CAAC,CAAC;EACF,OAAO;IAAEE,GAAG;IAAEC;EAAI,CAAC;AACrB,CAAC"}
1
+ {"version":3,"names":["exhaustiveCheck","size","width","height","rect2rect","src","dst","scaleX","scaleY","translateX","x","translateY","y","inscribe","rect","halfWidthDelta","halfHeightDelta","applyBoxFit","fit","input","output","Math","min","aspectRatio","fitRects","sizes"],"sources":["Fitting.ts"],"sourcesContent":["import { exhaustiveCheck } from \"../../../renderer/typeddash\";\nimport type { SkRect } from \"../../../skia/types\";\nimport type { Fit } from \"../../types\";\n\nexport interface Size {\n width: number;\n height: number;\n}\n\nexport const size = (width = 0, height = 0) => {\n \"worklet\";\n return { width, height };\n};\n\nexport const rect2rect = (\n src: SkRect,\n dst: SkRect\n): [\n { translateX: number },\n { translateY: number },\n { scaleX: number },\n { scaleY: number }\n] => {\n \"worklet\";\n const scaleX = dst.width / src.width;\n const scaleY = dst.height / src.height;\n const translateX = dst.x - src.x * scaleX;\n const translateY = dst.y - src.y * scaleY;\n return [{ translateX }, { translateY }, { scaleX }, { scaleY }];\n};\n\nconst inscribe = (\n { width, height }: Size,\n rect: { x: number; y: number; width: number; height: number }\n) => {\n \"worklet\";\n const halfWidthDelta = (rect.width - width) / 2.0;\n const halfHeightDelta = (rect.height - height) / 2.0;\n return {\n x: rect.x + halfWidthDelta,\n y: rect.y + halfHeightDelta,\n width,\n height,\n };\n};\n\nconst applyBoxFit = (fit: Fit, input: Size, output: Size) => {\n \"worklet\";\n let src = size(),\n dst = size();\n if (\n input.height <= 0.0 ||\n input.width <= 0.0 ||\n output.height <= 0.0 ||\n output.width <= 0.0\n ) {\n return { src, dst };\n }\n switch (fit) {\n case \"fill\":\n src = input;\n dst = output;\n break;\n case \"contain\":\n src = input;\n if (output.width / output.height > src.width / src.height) {\n dst = size((src.width * output.height) / src.height, output.height);\n } else {\n dst = size(output.width, (src.height * output.width) / src.width);\n }\n break;\n case \"cover\":\n if (output.width / output.height > input.width / input.height) {\n src = size(input.width, (input.width * output.height) / output.width);\n } else {\n src = size((input.height * output.width) / output.height, input.height);\n }\n dst = output;\n break;\n case \"fitWidth\":\n src = size(input.width, (input.width * output.height) / output.width);\n dst = size(output.width, (src.height * output.width) / src.width);\n break;\n case \"fitHeight\":\n src = size((input.height * output.width) / output.height, input.height);\n dst = size((src.width * output.height) / src.height, output.height);\n break;\n case \"none\":\n src = size(\n Math.min(input.width, output.width),\n Math.min(input.height, output.height)\n );\n dst = src;\n break;\n case \"scaleDown\":\n src = input;\n dst = input;\n const aspectRatio = input.width / input.height;\n if (dst.height > output.height) {\n dst = size(output.height * aspectRatio, output.height);\n }\n if (dst.width > output.width) {\n dst = size(output.width, output.width / aspectRatio);\n }\n break;\n default:\n exhaustiveCheck(fit);\n }\n return { src, dst };\n};\n\nexport const fitRects = (\n fit: Fit,\n rect: SkRect,\n { x, y, width, height }: SkRect\n) => {\n \"worklet\";\n const sizes = applyBoxFit(\n fit,\n { width: rect.width, height: rect.height },\n { width, height }\n );\n const src = inscribe(sizes.src, rect);\n const dst = inscribe(sizes.dst, {\n x,\n y,\n width,\n height,\n });\n return { src, dst };\n};\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,6BAA6B;AAS7D,OAAO,MAAMC,IAAI,GAAGA,CAACC,KAAK,GAAG,CAAC,EAAEC,MAAM,GAAG,CAAC,KAAK;EAC7C,SAAS;;EACT,OAAO;IAAED,KAAK;IAAEC;EAAO,CAAC;AAC1B,CAAC;AAED,OAAO,MAAMC,SAAS,GAAGA,CACvBC,GAAW,EACXC,GAAW,KAMR;EACH,SAAS;;EACT,MAAMC,MAAM,GAAGD,GAAG,CAACJ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AQ,GAAGA,CACtBN,GAAQ,EACRJ,IAAY,EACZ;EAAEJ,CAAC;EAAEE,CAAC;EAAEV,KAAK;EAAEC;AAAe,CAAC,KAC5B;EACH,SAAS;;EACT,MAAMsB,KAAK,GAAGR,WAAW,CACvBC,GAAG,EACH;IAAEhB,KAAK,EAAEY,IAAI,CAACZ,KAAK;IAAEC,MAAM,EAAEW,IAAI,CAACX;EAAO,CAAC,EAC1C;IAAED,KAAK;IAAEC;EAAO,CAClB,CAAC;EACD,MAAME,GAAG,GAAGQ,QAAQ,CAACY,KAAK,CAACpB,GAAG,EAAES,IAAI,CAAC;EACrC,MAAMR,GAAG,GAAGO,QAAQ,CAACY,KAAK,CAACnB,GAAG,EAAE;IAC9BI,CAAC;IACDE,CAAC;IACDV,KAAK;IACLC;EACF,CAAC,CAAC;EACF,OAAO;IAAEE,GAAG;IAAEC;EAAI,CAAC;AACrB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["TileMode","enumKey","processTransformProps","transformOrigin","origin","transform","translateX","x","translateY","y","processGradientProps","Skia","colors","positions","mode","flags","localMatrix","Matrix","map","color","Color","getRect","props","width","height","rect","undefined","XYWHRect"],"sources":["Gradient.ts"],"sourcesContent":["import type { Skia, SkRect, Transforms3d, Vector } from \"../../../skia/types\";\nimport { TileMode } from \"../../../skia/types\";\nimport type { GradientProps, ImageShaderProps } from \"../../types\";\n\nimport { enumKey } from \"./Enum\";\nimport { processTransformProps } from \"./Transform\";\n\nexport const transformOrigin = (origin: Vector, transform: Transforms3d) => [\n { translateX: origin.x },\n { translateY: origin.y },\n ...transform,\n { translateX: -origin.x },\n { translateY: -origin.y },\n];\n\nexport const processGradientProps = (\n Skia: Skia,\n { colors, positions, mode, flags, ...transform }: GradientProps\n) => {\n const localMatrix = Skia.Matrix();\n processTransformProps(localMatrix, transform);\n return {\n colors: colors.map((color) => Skia.Color(color)),\n positions: positions ?? null,\n mode: TileMode[enumKey(mode ?? \"clamp\")],\n flags,\n localMatrix,\n };\n};\n\nexport const getRect = (\n Skia: Skia,\n props: Omit<ImageShaderProps, \"tx\" | \"ty\" | \"fm\" | \"mm\" | \"fit\" | \"image\">\n): SkRect | undefined => {\n const { x, y, width, height } = props;\n if (props.rect) {\n return props.rect;\n } else if (\n x !== undefined &&\n y !== undefined &&\n width !== undefined &&\n height !== undefined\n ) {\n return Skia.XYWHRect(x, y, width, height);\n } else {\n return undefined;\n }\n};\n"],"mappings":"AACA,SAASA,QAAQ,QAAQ,qBAAqB;AAG9C,SAASC,OAAO,QAAQ,QAAQ;AAChC,SAASC,qBAAqB,QAAQ,aAAa;AAEnD,OAAO,MAAMC,eAAe,GAAGA,CAACC,MAAc,EAAEC,SAAuB,KAAK,CAC1E;EAAEC,UAAU,EAAEF,MAAM,CAACG;AAAE,CAAC,EACxB;EAAEC,UAAU,EAAEJ,MAAM,CAACK;AAAE,CAAC,EACxB,GAAGJ,SAAS,EACZ;EAAEC,UAAU,EAAE,CAACF,MAAM,CAACG;AAAE,CAAC,EACzB;EAAEC,UAAU,EAAE,CAACJ,MAAM,CAACK;AAAE,CAAC,CAC1B;AAED,OAAO,MAAMC,oBAAoB,GAAGA,CAClCC,IAAU,EACV;EAAEC,MAAM;EAAEC,SAAS;EAAEC,IAAI;EAAEC,KAAK;EAAE,GAAGV;AAAyB,CAAC,KAC5D;EACH,MAAMW,WAAW,GAAGL,IAAI,CAACM,MAAM,CAAC,CAAC;EACjCf,qBAAqB,CAACc,WAAW,EAAEX,SAAS,CAAC;EAC7C,OAAO;IACLO,MAAM,EAAEA,MAAM,CAACM,GAAG,CAAEC,KAAK,IAAKR,IAAI,CAACS,KAAK,CAACD,KAAK,CAAC,CAAC;IAChDN,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,IAAI;IAC5BC,IAAI,EAAEd,QAAQ,CAACC,OAAO,CAACa,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,OAAO,CAAC,CAAC;IACxCC,KAAK;IACLC;EACF,CAAC;AACH,CAAC;AAED,OAAO,MAAMK,OAAO,GAAGA,CACrBV,IAAU,EACVW,KAA0E,KACnD;EACvB,MAAM;IAAEf,CAAC;IAAEE,CAAC;IAAEc,KAAK;IAAEC;EAAO,CAAC,GAAGF,KAAK;EACrC,IAAIA,KAAK,CAACG,IAAI,EAAE;IACd,OAAOH,KAAK,CAACG,IAAI;EACnB,CAAC,MAAM,IACLlB,CAAC,KAAKmB,SAAS,IACfjB,CAAC,KAAKiB,SAAS,IACfH,KAAK,KAAKG,SAAS,IACnBF,MAAM,KAAKE,SAAS,EACpB;IACA,OAAOf,IAAI,CAACgB,QAAQ,CAACpB,CAAC,EAAEE,CAAC,EAAEc,KAAK,EAAEC,MAAM,CAAC;EAC3C,CAAC,MAAM;IACL,OAAOE,SAAS;EAClB;AACF,CAAC"}
1
+ {"version":3,"names":["TileMode","enumKey","processTransformProps","transformOrigin","origin","transform","translateX","x","translateY","y","processGradientProps","Skia","colors","positions","mode","flags","localMatrix","Matrix","map","color","Color","getRect","props","width","height","rect","undefined","XYWHRect"],"sources":["Gradient.ts"],"sourcesContent":["import type { Skia, SkRect, Transforms3d, Vector } from \"../../../skia/types\";\nimport { TileMode } from \"../../../skia/types\";\nimport type { GradientProps, ImageShaderProps } from \"../../types\";\n\nimport { enumKey } from \"./Enum\";\nimport { processTransformProps } from \"./Transform\";\n\nexport const transformOrigin = (origin: Vector, transform: Transforms3d) => [\n { translateX: origin.x },\n { translateY: origin.y },\n ...transform,\n { translateX: -origin.x },\n { translateY: -origin.y },\n];\n\nexport const processGradientProps = (\n Skia: Skia,\n { colors, positions, mode, flags, ...transform }: GradientProps\n) => {\n const localMatrix = Skia.Matrix();\n processTransformProps(localMatrix, transform);\n return {\n colors: colors.map((color) => Skia.Color(color)),\n positions: positions ?? null,\n mode: TileMode[enumKey(mode ?? \"clamp\")],\n flags,\n localMatrix,\n };\n};\n\nexport const getRect = (\n Skia: Skia,\n props: Omit<ImageShaderProps, \"tx\" | \"ty\" | \"fm\" | \"mm\" | \"fit\" | \"image\">\n): SkRect | undefined => {\n const { x, y, width, height } = props;\n if (props.rect) {\n return props.rect;\n } else if (\n x !== undefined &&\n y !== undefined &&\n width !== undefined &&\n height !== undefined\n ) {\n return Skia.XYWHRect(x, y, width, height);\n } else {\n return undefined;\n }\n};\n"],"mappings":"AACA,SAASA,QAAQ,QAAQ,qBAAqB;AAG9C,SAASC,OAAO,QAAQ,QAAQ;AAChC,SAASC,qBAAqB,QAAQ,aAAa;AAEnD,OAAO,MAAMC,eAAe,GAAGA,CAACC,MAAc,EAAEC,SAAuB,KAAK,CAC1E;EAAEC,UAAU,EAAEF,MAAM,CAACG;AAAE,CAAC,EACxB;EAAEC,UAAU,EAAEJ,MAAM,CAACK;AAAE,CAAC,EACxB,GAAGJ,SAAS,EACZ;EAAEC,UAAU,EAAE,CAACF,MAAM,CAACG;AAAE,CAAC,EACzB;EAAEC,UAAU,EAAE,CAACJ,MAAM,CAACK;AAAE,CAAC,CAC1B;AAED,OAAO,MAAMC,oBAAoB,GAAGA,CAClCC,IAAU,EACV;EAAEC,MAAM;EAAEC,SAAS;EAAEC,IAAI;EAAEC,KAAK;EAAE,GAAGV;AAAyB,CAAC,KAC5D;EACH,MAAMW,WAAW,GAAGL,IAAI,CAACM,MAAM,CAAC,CAAC;EACjCf,qBAAqB,CAACc,WAAW,EAAEX,SAAS,CAAC;EAC7C,OAAO;IACLO,MAAM,EAAEA,MAAM,CAACM,GAAG,CAAEC,KAAK,IAAKR,IAAI,CAACS,KAAK,CAACD,KAAK,CAAC,CAAC;IAChDN,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,IAAI;IAC5BC,IAAI,EAAEd,QAAQ,CAACC,OAAO,CAACa,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,OAAO,CAAC,CAAC;IACxCC,KAAK;IACLC;EACF,CAAC;AACH,CAAC;AAED,OAAO,MAAMK,OAAO,GAAGA,CACrBV,IAAU,EACVW,KAA0E,KACnD;EACvB,MAAM;IAAEf,CAAC;IAAEE,CAAC;IAAEc,KAAK;IAAEC;EAAO,CAAC,GAAGF,KAAK;EACrC,IAAIA,KAAK,CAACG,IAAI,EAAE;IACd,OAAOH,KAAK,CAACG,IAAI;EACnB,CAAC,MAAM,IACLlB,CAAC,KAAKmB,SAAS,IACfjB,CAAC,KAAKiB,SAAS,IACfH,KAAK,KAAKG,SAAS,IACnBF,MAAM,KAAKE,SAAS,EACpB;IACA,OAAOf,IAAI,CAACgB,QAAQ,CAACpB,CAAC,EAAEE,CAAC,EAAEc,KAAK,EAAEC,MAAM,CAAC;EAC3C,CAAC,MAAM;IACL,OAAOE,SAAS;EAClB;AACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["isPath","processPath","Skia","rawPath","path","Path","MakeFromSVGString","Error","isPathDef","def"],"sources":["Path.ts"],"sourcesContent":["import type { Skia } from \"../../../skia/types\";\nimport { isPath } from \"../../../skia/types\";\nimport type { PathDef } from \"../../types\";\n\nexport const processPath = (Skia: Skia, rawPath: PathDef) => {\n const path =\n typeof rawPath === \"string\"\n ? Skia.Path.MakeFromSVGString(rawPath)\n : rawPath;\n if (!path) {\n throw new Error(\"Invalid path: \" + rawPath);\n }\n return path;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const isPathDef = (def: any): def is PathDef =>\n typeof def === \"string\" || isPath(def);\n"],"mappings":"AACA,SAASA,MAAM,QAAQ,qBAAqB;AAG5C,OAAO,MAAMC,WAAW,GAAGA,CAACC,IAAU,EAAEC,OAAgB,KAAK;EAC3D,MAAMC,IAAI,GACR,OAAOD,OAAO,KAAK,QAAQ,GACvBD,IAAI,CAACG,IAAI,CAACC,iBAAiB,CAACH,OAAO,CAAC,GACpCA,OAAO;EACb,IAAI,CAACC,IAAI,EAAE;IACT,MAAM,IAAIG,KAAK,CAAC,gBAAgB,GAAGJ,OAAO,CAAC;EAC7C;EACA,OAAOC,IAAI;AACb,CAAC;;AAED;AACA,OAAO,MAAMI,SAAS,GAAIC,GAAQ,IAChC,OAAOA,GAAG,KAAK,QAAQ,IAAIT,MAAM,CAACS,GAAG,CAAC"}
1
+ {"version":3,"names":["isPath","processPath","Skia","rawPath","path","Path","MakeFromSVGString","Error","isPathDef","def"],"sources":["Path.ts"],"sourcesContent":["import type { Skia } from \"../../../skia/types\";\nimport { isPath } from \"../../../skia/types\";\nimport type { PathDef } from \"../../types\";\n\nexport const processPath = (Skia: Skia, rawPath: PathDef) => {\n const path =\n typeof rawPath === \"string\"\n ? Skia.Path.MakeFromSVGString(rawPath)\n : rawPath;\n if (!path) {\n throw new Error(\"Invalid path: \" + rawPath);\n }\n return path;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const isPathDef = (def: any): def is PathDef =>\n typeof def === \"string\" || isPath(def);\n"],"mappings":"AACA,SAASA,MAAM,QAAQ,qBAAqB;AAG5C,OAAO,MAAMC,WAAW,GAAGA,CAACC,IAAU,EAAEC,OAAgB,KAAK;EAC3D,MAAMC,IAAI,GACR,OAAOD,OAAO,KAAK,QAAQ,GACvBD,IAAI,CAACG,IAAI,CAACC,iBAAiB,CAACH,OAAO,CAAC,GACpCA,OAAO;EACb,IAAI,CAACC,IAAI,EAAE;IACT,MAAM,IAAIG,KAAK,CAAC,gBAAgB,GAAGJ,OAAO,CAAC;EAC7C;EACA,OAAOC,IAAI;AACb,CAAC;;AAED;AACA,OAAO,MAAMI,SAAS,GAAIC,GAAQ,IAChC,OAAOA,GAAG,KAAK,QAAQ,IAAIT,MAAM,CAACS,GAAG,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["processRadius","Skia","radius","Point"],"sources":["Radius.ts"],"sourcesContent":["import type { Skia, Vector } from \"../../../skia/types\";\nimport type { Radius } from \"../../types\";\n\nexport const processRadius = (Skia: Skia, radius: Radius): Vector => {\n if (typeof radius === \"number\") {\n return Skia.Point(radius, radius);\n }\n return radius;\n};\n"],"mappings":"AAGA,OAAO,MAAMA,aAAa,GAAGA,CAACC,IAAU,EAAEC,MAAc,KAAa;EACnE,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;IAC9B,OAAOD,IAAI,CAACE,KAAK,CAACD,MAAM,EAAEA,MAAM,CAAC;EACnC;EACA,OAAOA,MAAM;AACf,CAAC"}
1
+ {"version":3,"names":["processRadius","Skia","radius","Point"],"sources":["Radius.ts"],"sourcesContent":["import type { Skia, Vector } from \"../../../skia/types\";\nimport type { Radius } from \"../../types\";\n\nexport const processRadius = (Skia: Skia, radius: Radius): Vector => {\n if (typeof radius === \"number\") {\n return Skia.Point(radius, radius);\n }\n return radius;\n};\n"],"mappings":"AAGA,OAAO,MAAMA,aAAa,GAAGA,CAACC,IAAU,EAAEC,MAAc,KAAa;EACnE,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;IAC9B,OAAOD,IAAI,CAACE,KAAK,CAACD,MAAM,EAAEA,MAAM,CAAC;EACnC;EACA,OAAOA,MAAM;AACf,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["processRadius","isEdge","pos","b","x","y","width","height","isRRectCtor","def","rect","undefined","isRectCtor","processRect","Skia","_def$x","_def$y","XYWHRect","processRRect","_def$r","_def$x2","_def$y2","r","RRectXY"],"sources":["Rect.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { Skia, SkRect, Vector } from \"../../../skia/types\";\nimport type { RectCtor, RectDef, RRectCtor, RRectDef } from \"../../types\";\n\nimport { processRadius } from \"./Radius\";\n\nexport const isEdge = (pos: Vector, b: SkRect) => {\n \"worklet\";\n return (\n pos.x === b.x || pos.y === b.y || pos.x === b.width || pos.y === b.height\n );\n};\n\n// We have an issue to check property existence on JSI backed instances\nconst isRRectCtor = (def: RRectDef): def is RRectCtor =>\n (def as any).rect === undefined;\n// We have an issue to check property existence on JSI backed instances\nconst isRectCtor = (def: RectDef): def is RectCtor =>\n (def as any).rect === undefined;\n\nexport const processRect = (Skia: Skia, def: RectDef) => {\n if (isRectCtor(def)) {\n return Skia.XYWHRect(def.x ?? 0, def.y ?? 0, def.width, def.height);\n } else {\n return def.rect;\n }\n};\n\nexport const processRRect = (Skia: Skia, def: RRectDef) => {\n if (isRRectCtor(def)) {\n const r = processRadius(Skia, def.r ?? 0);\n return Skia.RRectXY(\n Skia.XYWHRect(def.x ?? 0, def.y ?? 0, def.width, def.height),\n r.x,\n r.y\n );\n } else {\n return def.rect;\n }\n};\n"],"mappings":"AAAA;;AAIA,SAASA,aAAa,QAAQ,UAAU;AAExC,OAAO,MAAMC,MAAM,GAAGA,CAACC,GAAW,EAAEC,CAAS,KAAK;EAChD,SAAS;;EACT,OACED,GAAG,CAACE,CAAC,KAAKD,CAAC,CAACC,CAAC,IAAIF,GAAG,CAACG,CAAC,KAAKF,CAAC,CAACE,CAAC,IAAIH,GAAG,CAACE,CAAC,KAAKD,CAAC,CAACG,KAAK,IAAIJ,GAAG,CAACG,CAAC,KAAKF,CAAC,CAACI,MAAM;AAE7E,CAAC;;AAED;AACA,MAAMC,WAAW,GAAIC,GAAa,IAC/BA,GAAG,CAASC,IAAI,KAAKC,SAAS;AACjC;AACA,MAAMC,UAAU,GAAIH,GAAY,IAC7BA,GAAG,CAASC,IAAI,KAAKC,SAAS;AAEjC,OAAO,MAAME,WAAW,GAAGA,CAACC,IAAU,EAAEL,GAAY,KAAK;EACvD,IAAIG,UAAU,CAACH,GAAG,CAAC,EAAE;IAAA,IAAAM,MAAA,EAAAC,MAAA;IACnB,OAAOF,IAAI,CAACG,QAAQ,EAAAF,MAAA,GAACN,GAAG,CAACL,CAAC,cAAAW,MAAA,cAAAA,MAAA,GAAI,CAAC,GAAAC,MAAA,GAAEP,GAAG,CAACJ,CAAC,cAAAW,MAAA,cAAAA,MAAA,GAAI,CAAC,EAAEP,GAAG,CAACH,KAAK,EAAEG,GAAG,CAACF,MAAM,CAAC;EACrE,CAAC,MAAM;IACL,OAAOE,GAAG,CAACC,IAAI;EACjB;AACF,CAAC;AAED,OAAO,MAAMQ,YAAY,GAAGA,CAACJ,IAAU,EAAEL,GAAa,KAAK;EACzD,IAAID,WAAW,CAACC,GAAG,CAAC,EAAE;IAAA,IAAAU,MAAA,EAAAC,OAAA,EAAAC,OAAA;IACpB,MAAMC,CAAC,GAAGtB,aAAa,CAACc,IAAI,GAAAK,MAAA,GAAEV,GAAG,CAACa,CAAC,cAAAH,MAAA,cAAAA,MAAA,GAAI,CAAC,CAAC;IACzC,OAAOL,IAAI,CAACS,OAAO,CACjBT,IAAI,CAACG,QAAQ,EAAAG,OAAA,GAACX,GAAG,CAACL,CAAC,cAAAgB,OAAA,cAAAA,OAAA,GAAI,CAAC,GAAAC,OAAA,GAAEZ,GAAG,CAACJ,CAAC,cAAAgB,OAAA,cAAAA,OAAA,GAAI,CAAC,EAAEZ,GAAG,CAACH,KAAK,EAAEG,GAAG,CAACF,MAAM,CAAC,EAC5De,CAAC,CAAClB,CAAC,EACHkB,CAAC,CAACjB,CACJ,CAAC;EACH,CAAC,MAAM;IACL,OAAOI,GAAG,CAACC,IAAI;EACjB;AACF,CAAC"}
1
+ {"version":3,"names":["processRadius","isEdge","pos","b","x","y","width","height","isRRectCtor","def","rect","undefined","isRectCtor","processRect","Skia","_def$x","_def$y","XYWHRect","processRRect","_def$r","_def$x2","_def$y2","r","RRectXY"],"sources":["Rect.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { Skia, SkRect, Vector } from \"../../../skia/types\";\nimport type { RectCtor, RectDef, RRectCtor, RRectDef } from \"../../types\";\n\nimport { processRadius } from \"./Radius\";\n\nexport const isEdge = (pos: Vector, b: SkRect) => {\n \"worklet\";\n return (\n pos.x === b.x || pos.y === b.y || pos.x === b.width || pos.y === b.height\n );\n};\n\n// We have an issue to check property existence on JSI backed instances\nconst isRRectCtor = (def: RRectDef): def is RRectCtor =>\n (def as any).rect === undefined;\n// We have an issue to check property existence on JSI backed instances\nconst isRectCtor = (def: RectDef): def is RectCtor =>\n (def as any).rect === undefined;\n\nexport const processRect = (Skia: Skia, def: RectDef) => {\n if (isRectCtor(def)) {\n return Skia.XYWHRect(def.x ?? 0, def.y ?? 0, def.width, def.height);\n } else {\n return def.rect;\n }\n};\n\nexport const processRRect = (Skia: Skia, def: RRectDef) => {\n if (isRRectCtor(def)) {\n const r = processRadius(Skia, def.r ?? 0);\n return Skia.RRectXY(\n Skia.XYWHRect(def.x ?? 0, def.y ?? 0, def.width, def.height),\n r.x,\n r.y\n );\n } else {\n return def.rect;\n }\n};\n"],"mappings":"AAAA;;AAIA,SAASA,aAAa,QAAQ,UAAU;AAExC,OAAO,MAAMC,MAAM,GAAGA,CAACC,GAAW,EAAEC,CAAS,KAAK;EAChD,SAAS;;EACT,OACED,GAAG,CAACE,CAAC,KAAKD,CAAC,CAACC,CAAC,IAAIF,GAAG,CAACG,CAAC,KAAKF,CAAC,CAACE,CAAC,IAAIH,GAAG,CAACE,CAAC,KAAKD,CAAC,CAACG,KAAK,IAAIJ,GAAG,CAACG,CAAC,KAAKF,CAAC,CAACI,MAAM;AAE7E,CAAC;;AAED;AACA,MAAMC,WAAW,GAAIC,GAAa,IAC/BA,GAAG,CAASC,IAAI,KAAKC,SAAS;AACjC;AACA,MAAMC,UAAU,GAAIH,GAAY,IAC7BA,GAAG,CAASC,IAAI,KAAKC,SAAS;AAEjC,OAAO,MAAME,WAAW,GAAGA,CAACC,IAAU,EAAEL,GAAY,KAAK;EACvD,IAAIG,UAAU,CAACH,GAAG,CAAC,EAAE;IAAA,IAAAM,MAAA,EAAAC,MAAA;IACnB,OAAOF,IAAI,CAACG,QAAQ,EAAAF,MAAA,GAACN,GAAG,CAACL,CAAC,cAAAW,MAAA,cAAAA,MAAA,GAAI,CAAC,GAAAC,MAAA,GAAEP,GAAG,CAACJ,CAAC,cAAAW,MAAA,cAAAA,MAAA,GAAI,CAAC,EAAEP,GAAG,CAACH,KAAK,EAAEG,GAAG,CAACF,MAAM,CAAC;EACrE,CAAC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