@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":["_types","require","_RenderNode","_Node","LayerNode","JsiRenderNode","constructor","ctx","props","NodeType","Layer","renderNode","hasLayer","layer","children","JsiDeclarationNode","declCtx","declarationCtx","save","decorate","paint","paints","pop","restore","canvas","saveLayer","map","child","render","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AAEO,MAAMG,SAAS,SAASC,yBAAa,CAAgB;EAC1DC,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,KAAK,EAAEF,KAAK,CAAC;EACnC;EAEAG,UAAUA,CAACJ,GAAmB,EAAQ;IACpC,IAAIK,QAAQ,GAAG,KAAK;IACpB,MAAM,CAACC,KAAK,EAAE,GAAGC,QAAQ,CAAC,GAAG,IAAI,CAACA,QAAQ,CAAC,CAAC;IAC5C,IAAID,KAAK,YAAYE,wBAAkB,EAAE;MACvC,MAAMC,OAAO,GAAGT,GAAG,CAACU,cAAc;MAClCD,OAAO,CAACE,IAAI,CAAC,CAAC;MACdL,KAAK,CAACM,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;QACTR,QAAQ,GAAG,IAAI;QACfL,GAAG,CAACiB,MAAM,CAACC,SAAS,CAACL,KAAK,CAAC;MAC7B;IACF;IACAN,QAAQ,CAACY,GAAG,CAAEC,KAAK,IAAK;MACtB,IAAIA,KAAK,YAAYtB,yBAAa,EAAE;QAClCsB,KAAK,CAACC,MAAM,CAACrB,GAAG,CAAC;MACnB;IACF,CAAC,CAAC;IACF,IAAIK,QAAQ,EAAE;MACZL,GAAG,CAACiB,MAAM,CAACD,OAAO,CAAC,CAAC;IACtB;EACF;AACF;AAACM,OAAA,CAAAzB,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"names":["_types","require","_RenderNode","_Node","LayerNode","JsiRenderNode","constructor","ctx","props","NodeType","Layer","renderNode","hasLayer","layer","children","JsiDeclarationNode","declCtx","declarationCtx","save","decorate","paint","paints","pop","restore","canvas","saveLayer","map","child","render","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AAEO,MAAMG,SAAS,SAASC,yBAAa,CAAgB;EAC1DC,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,KAAK,EAAEF,KAAK,CAAC;EACnC;EAEAG,UAAUA,CAACJ,GAAmB,EAAQ;IACpC,IAAIK,QAAQ,GAAG,KAAK;IACpB,MAAM,CAACC,KAAK,EAAE,GAAGC,QAAQ,CAAC,GAAG,IAAI,CAACA,QAAQ,CAAC,CAAC;IAC5C,IAAID,KAAK,YAAYE,wBAAkB,EAAE;MACvC,MAAMC,OAAO,GAAGT,GAAG,CAACU,cAAc;MAClCD,OAAO,CAACE,IAAI,CAAC,CAAC;MACdL,KAAK,CAACM,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;QACTR,QAAQ,GAAG,IAAI;QACfL,GAAG,CAACiB,MAAM,CAACC,SAAS,CAACL,KAAK,CAAC;MAC7B;IACF;IACAN,QAAQ,CAACY,GAAG,CAAEC,KAAK,IAAK;MACtB,IAAIA,KAAK,YAAYtB,yBAAa,EAAE;QAClCsB,KAAK,CAACC,MAAM,CAACrB,GAAG,CAAC;MACnB;IACF,CAAC,CAAC;IACF,IAAIK,QAAQ,EAAE;MACZL,GAAG,CAACiB,MAAM,CAACD,OAAO,CAAC,CAAC;IACtB;EACF;AACF;AAACM,OAAA,CAAAzB,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiNode = exports.JsiDeclarationNode = void 0;
7
- 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; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
7
+ 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; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
9
9
  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); }
10
10
  class JsiNode {
11
11
  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","exports","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":";;;;;;;;;AAQO,MAAeA,OAAO,CAAuB;EAIlDC,WAAWA,CAACC,GAAgB,EAASC,IAAc,EAAYC,KAAQ,EAAE;IAAA,KAApCD,IAAc,GAAdA,IAAc;IAAA,KAAY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A,KAAK,CAACsB,iBAAiB,CAACT,KAAK,EAAEU,MAAM,CAAC;IACtC,IAAI,CAACO,UAAU,CAAC,CAAC;EACnB;EAEAd,OAAOA,CAAA,EAAG;IACR,IAAI,CAACc,UAAU,CAAC,CAAC;IACjB,KAAK,CAACd,OAAO,CAAC,CAAC;EACjB;EAEAe,aAAaA,CAACD,UAAsB,EAAE;IACpC,IAAI,CAACA,UAAU,GAAGA,UAAU;EAC9B;EAEA1B,QAAQA,CAACH,KAAQ,EAAE;IACjB,KAAK,CAACG,QAAQ,CAACH,KAAK,CAAC;IACrB,IAAI,CAAC6B,UAAU,CAAC,CAAC;EACnB;EAEAzB,OAAOA,CAAoBC,IAAO,EAAEC,CAAO,EAAE;IAC3C,MAAMC,UAAU,GAAG,KAAK,CAACH,OAAO,CAACC,IAAI,EAAEC,CAAC,CAAC;IACzC,IAAIC,UAAU,EAAE;MACd,IAAI,CAACsB,UAAU,CAAC,CAAC;IACnB;IACA,OAAOtB,UAAU;EACnB;AACF;AAACiB,OAAA,CAAAC,kBAAA,GAAAA,kBAAA"}
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","exports","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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EU,MAAqB,EAAQ;IACnE,IAAI,EAAEV,KAAK,YAAYa,kBAAkB,CAAC,EAAE;MAC1C,MAAM,IAAIG,KAAK,CAAC,4BAA4BhB,KAAK,CAACb,IAAI,OAAO,IAAI,CAACA,IAAI,EAAE,CAAC;IAC3E;IACA,KAAK,CAACsB,iBAAiB,CAACT,KAAK,EAAEU,MAAM,CAAC;IACtC,IAAI,CAACO,UAAU,CAAC,CAAC;EACnB;EAEAd,OAAOA,CAAA,EAAG;IACR,IAAI,CAACc,UAAU,CAAC,CAAC;IACjB,KAAK,CAACd,OAAO,CAAC,CAAC;EACjB;EAEAe,aAAaA,CAACD,UAAsB,EAAE;IACpC,IAAI,CAACA,UAAU,GAAGA,UAAU;EAC9B;EAEA1B,QAAQA,CAACH,KAAQ,EAAE;IACjB,KAAK,CAACG,QAAQ,CAACH,KAAK,CAAC;IACrB,IAAI,CAAC6B,UAAU,CAAC,CAAC;EACnB;EAEAzB,OAAOA,CAAoBC,IAAO,EAAEC,CAAO,EAAE;IAC3C,MAAMC,UAAU,GAAG,KAAK,CAACH,OAAO,CAACC,IAAI,EAAEC,CAAC,CAAC;IACzC,IAAIC,UAAU,EAAE;MACd,IAAI,CAACsB,UAAU,CAAC,CAAC;IACnB;IACA,OAAOtB,UAAU;EACnB;AACF;AAACiB,OAAA,CAAAC,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_types2","_datatypes","_Node","PaintNode","JsiDeclarationNode","constructor","ctx","props","NodeType","Paint","decorate","color","strokeWidth","blendMode","style","strokeJoin","strokeCap","strokeMiter","opacity","antiAlias","dither","paint","Skia","undefined","setColor","Color","setStrokeWidth","setBlendMode","BlendMode","enumKey","setStyle","PaintStyle","setStrokeJoin","StrokeJoin","setStrokeCap","StrokeCap","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","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAGA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAAG,KAAA,GAAAH,OAAA;AAEO,MAAMI,SAAS,SACZC,wBAAkB,CAE5B;EACEC,WAAWA,CAACC,GAAgB,EAAEC,KAAiB,GAAG,CAAC,CAAC,EAAE;IACpD,KAAK,CAACD,GAAG,EAAEE,gBAAQ,CAACC,KAAK,EAAEF,KAAK,CAAC;EACnC;EAEAG,QAAQA,CAACJ,GAAuB,EAAE;IAChC,MAAM;MACJK,KAAK;MACLC,WAAW;MACXC,SAAS;MACTC,KAAK;MACLC,UAAU;MACVC,SAAS;MACTC,WAAW;MACXC,OAAO;MACPC,SAAS;MACTC;IACF,CAAC,GAAG,IAAI,CAACb,KAAK;IACd,MAAMc,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,CAACC,gBAAS,CAAC,IAAAC,kBAAO,EAAChB,SAAS,CAAC,CAAC,CAAC;IACnD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,CAACF,GAAG,CAAC,CAAC;IACxC,MAAMG,UAAU,GAAGhD,GAAG,CAACiD,WAAW,CAACT,WAAW,CAAC,CAAC;IAChDxC,GAAG,CAACkD,OAAO,CAAC,CAAC;IACb,IAAIT,WAAW,EAAE;MACf1B,KAAK,CAACoC,cAAc,CAACV,WAAW,CAAC;IACnC;IACA,IAAIE,MAAM,EAAE;MACV5B,KAAK,CAACqC,SAAS,CAACT,MAAM,CAAC;IACzB;IACA,IAAIK,UAAU,EAAE;MACdjC,KAAK,CAACsC,aAAa,CAACL,UAAU,CAAC;IACjC;IACA,IAAIV,WAAW,EAAE;MACfvB,KAAK,CAACuC,cAAc,CAAChB,WAAW,CAAC;IACnC;IACA,IAAIQ,UAAU,EAAE;MACd/B,KAAK,CAACwC,aAAa,CAACT,UAAU,CAAC;IACjC;IACA9C,GAAG,CAACwD,MAAM,CAACC,IAAI,CAAC1C,KAAK,CAAC;EACxB;AACF;AAAC2C,OAAA,CAAA7D,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"names":["_types","require","_types2","_datatypes","_Node","PaintNode","JsiDeclarationNode","constructor","ctx","props","NodeType","Paint","decorate","color","strokeWidth","blendMode","style","strokeJoin","strokeCap","strokeMiter","opacity","antiAlias","dither","paint","Skia","undefined","setColor","Color","setStrokeWidth","setBlendMode","BlendMode","enumKey","setStyle","PaintStyle","setStrokeJoin","StrokeJoin","setStrokeCap","StrokeCap","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","exports"],"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.setMa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AK,CAACqC,SAAS,CAACT,MAAM,CAAC;IACzB;IACA,IAAIK,UAAU,EAAE;MACdjC,KAAK,CAACsC,aAAa,CAACL,UAAU,CAAC;IACjC;IACA,IAAIV,WAAW,EAAE;MACfvB,KAAK,CAACuC,cAAc,CAAChB,WAAW,CAAC;IACnC;IACA,IAAIQ,UAAU,EAAE;MACd/B,KAAK,CAACwC,aAAa,CAACT,UAAU,CAAC;IACjC;IACA9C,GAAG,CAACwD,MAAM,CAACC,IAAI,CAAC1C,KAAK,CAAC;EACxB;AACF;AAAC2C,OAAA,CAAA7D,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -7,8 +7,8 @@ exports.JsiRenderNode = void 0;
7
7
  var _types = require("../../skia/types");
8
8
  var _datatypes = require("./datatypes");
9
9
  var _Node = require("./Node");
10
- 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; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
10
+ 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; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
12
12
  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); }
13
13
  const paintProps = ["color", "strokeWidth", "blendMode", "strokeCap", "strokeJoin", "strokeMiter", "style", "antiAlias", "dither", "opacity"];
14
14
  class JsiRenderNode extends _Node.JsiNode {
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_datatypes","_Node","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","paintProps","JsiRenderNode","JsiNode","constructor","ctx","type","props","matrix","Skia","Matrix","onPropChange","setProps","setProp","hasChanged","includes","paintCache","identity","clipPath","undefined","clipRect","clipRRect","computeMatrix","computeClip","addChild","child","JsiDeclarationNode","setInvalidate","insertChildBefore","before","clip","isPathDef","processPath","isRRect","processTransformProps","render","invertClip","layer","transform","canvas","parentPaint","paint","cache","parent","shouldRestore","saveAndConcat","hasTransform","hasClip","shouldSave","op","ClipOp","Difference","Intersect","saveLayer","save","concat","renderNode","restore","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AASA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AAAqD,SAAAG,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAErD,MAAMW,UAAU,GAAG,CACjB,OAAO,EACP,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa,EACb,OAAO,EACP,WAAW,EACX,QAAQ,EACR,SAAS,CACV;AAOM,MAAeC,aAAa,SACzBC,aAAO,CAEjB;EAQEC,WAAWA,CAACC,GAAgB,EAAEC,IAAc,EAAEC,KAAQ,EAAE;IACtD,KAAK,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AAC;IAClB;IACA,IAAIb,aAAa,EAAE;MACjB,IAAI,CAAC5B,UAAU,GAAG;QAChB2B,MAAM,EAAEH,WAAW;QACnBf,KAAK,EAAEpB,GAAG,CAACoC;MACb,CAAC;MACDpC,GAAG,CAACoD,OAAO,CAAC,CAAC;IACf;EACF;AAGF;AAACC,OAAA,CAAAxD,aAAA,GAAAA,aAAA"}
1
+ {"version":3,"names":["_types","require","_datatypes","_Node","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","paintProps","JsiRenderNode","JsiNode","constructor","ctx","type","props","matrix","Skia","Matrix","onPropChange","setProps","setProp","key","hasChanged","includes","paintCache","identity","clipPath","undefined","clipRect","clipRRect","computeMatrix","computeClip","addChild","child","JsiDeclarationNode","setInvalidate","insertChildBefore","before","clip","isPathDef","processPath","isRRect","processTransformProps","render","invertClip","layer","transform","canvas","parentPaint","paint","cache","parent","shouldRestore","saveAndConcat","hasTransform","hasClip","shouldSave","op","ClipOp","Difference","Intersect","saveLayer","save","concat","renderNode","restore","exports"],"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,IAAAA,MAAA,GAAAC,OAAA;AASA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AAAqD,SAAAG,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,CAAA,GAAAI,MAAA,CAAAC,cAAA,CAAAL,CAAA,EAAAC,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAT,CAAA,CAAAC,CAAA,IAAAC,CAAA,EAAAF,CAAA;AAAA,SAAAG,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAF,CAAA,GAAAE,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAb,CAAA,QAAAU,CAAA,GAAAV,CAAA,CAAAc,IAAA,CAAAZ,CAAA,EAAAD,CAAA,uCAAAS,CAAA,SAAAA,CAAA,YAAAK,SAAA,yEAAAd,CAAA,GAAAe,MAAA,G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B,EAAE,EAAE,IAAI,CAAC;IAC5C,CAAC,MAAM,IAAI,IAAI,CAAC/B,QAAQ,EAAE;MACxBqB,MAAM,CAACrB,QAAQ,CAAC,IAAI,CAACA,QAAQ,EAAE+B,EAAE,EAAE,IAAI,CAAC;IAC1C;IAEA,IAAI,CAACO,UAAU,CAACpD,GAAG,CAAC;IAEpB,IAAI4C,UAAU,EAAE;MACdT,MAAM,CAACkB,OAAO,CAAC,CAAC;IAClB;IACA,IAAIb,aAAa,EAAE;MACjB,IAAI,CAAC5B,UAAU,GAAG;QAChB2B,MAAM,EAAEH,WAAW;QACnBf,KAAK,EAAErB,GAAG,CAACqC;MACb,CAAC;MACDrC,GAAG,CAACqD,OAAO,CAAC,CAAC;IACf;EACF;AAGF;AAACC,OAAA,CAAAzD,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["isCircleScalarDef","def","cx","undefined","exports","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":";;;;;;AAGO,MAAMA,iBAAiB,GAAIC,GAAc;AAC9C;AACA;AACCA,GAAG,CAASC,EAAE,KAAKC,SAAS;AAACC,OAAA,CAAAJ,iBAAA,GAAAA,iBAAA;AAEzB,MAAMK,aAAa,GAAGA,CAACC,IAAU,EAAEL,GAAc,KAAK;EAAA,IAAAM,MAAA;EAC3D,IAAIP,iBAAiB,CAACC,GAAG,CAAC,EAAE;IAC1B,OAAO;MAAEO,CAAC,EAAEF,IAAI,CAACG,KAAK,CAACR,GAAG,CAACC,EAAE,EAAED,GAAG,CAACS,EAAE,CAAC;MAAEC,CAAC,EAAEV,GAAG,CAACU;IAAE,CAAC;EACpD;EACA,OAAO;IAAE,GAAGV,GAAG;IAAEO,CAAC,GAAAD,MAAA,GAAEN,GAAG,CAACO,CAAC,cAAAD,MAAA,cAAAA,MAAA,GAAI;MAAEK,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE;EAAE,CAAC;AAC/C,CAAC;AAACT,OAAA,CAAAC,aAAA,GAAAA,aAAA"}
1
+ {"version":3,"names":["isCircleScalarDef","def","cx","undefined","exports","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":";;;;;;AAGO,MAAMA,iBAAiB,GAAIC,GAAc;AAC9C;AACA;AACCA,GAAG,CAASC,EAAE,KAAKC,SAAS;AAACC,OAAA,CAAAJ,iBAAA,GAAAA,iBAAA;AAEzB,MAAMK,aAAa,GAAGA,CAACC,IAAU,EAAEL,GAAc,KAAK;EAAA,IAAAM,MAAA;EAC3D,IAAIP,iBAAiB,CAACC,GAAG,CAAC,EAAE;IAC1B,OAAO;MAAEO,CAAC,EAAEF,IAAI,CAACG,KAAK,CAACR,GAAG,CAACC,EAAE,EAAED,GAAG,CAACS,EAAE,CAAC;MAAEC,CAAC,EAAEV,GAAG,CAACU;IAAE,CAAC;EACpD;EACA,OAAO;IAAE,GAAGV,GAAG;IAAEO,CAAC,GAAAD,MAAA,GAAEN,GAAG,CAACO,CAAC,cAAAD,MAAA,cAAAA,MAAA,GAAI;MAAEK,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE;EAAE,CAAC;AAC/C,CAAC;AAACT,OAAA,CAAAC,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["enumKey","k","charAt","toUpperCase","slice","exports"],"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":";;;;;;AAAO,MAAMA,OAAO,GAAsBC,CAAI,IAC3CA,CAAC,CAACC,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGF,CAAC,CAACG,KAAK,CAAC,CAAC,CAAmB;AAACC,OAAA,CAAAL,OAAA,GAAAA,OAAA"}
1
+ {"version":3,"names":["enumKey","k","charAt","toUpperCase","slice","exports"],"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":";;;;;;AAAO,MAAMA,OAAO,GAAsBC,CAAI,IAC3CA,CAAC,CAACC,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGF,CAAC,CAACG,KAAK,CAAC,CAAC,CAAmB;AAACC,OAAA,CAAAL,OAAA,GAAAA,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_typeddash","require","size","width","height","exports","rect2rect","src","dst","scaleX","scaleY","translateX","x","translateY","y","inscribe","rect","halfWidthDelta","halfHeightDelta","applyBoxFit","fit","input","output","Math","min","aspectRatio","exhaustiveCheck","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,IAAAA,UAAA,GAAAC,OAAA;AASO,MAAMC,IAAI,GAAGA,CAACC,KAAK,GAAG,CAAC,EAAEC,MAAM,GAAG,CAAC,KAAK;EAC7C,SAAS;;EACT,OAAO;IAAED,KAAK;IAAEC;EAAO,CAAC;AAC1B,CAAC;AAACC,OAAA,CAAAH,IAAA,GAAAA,IAAA;AAEK,MAAMI,SAAS,GAAGA,CACvBC,GAAW,EACXC,GAAW,KAMR;EACH,SAAS;;EACT,MAAMC,MAAM,GAAGD,GAAG,CAACL,KAAK,GAAGI,GAAG,CAACJ,KAAK;EACpC,MAAMO,MAAM,GAAGF,GAAG,CAACJ,MAAM,GAAGG,GAAG,CAACH,MAAM;EACtC,MAAMO,UAAU,GAAGH,GAAG,CAACI,CAAC,GAAGL,GAAG,CAACK,CAAC,GAAGH,MAAM;EACzC,MAAMI,UAAU,GAAGL,GAAG,CAACM,CAAC,GAAGP,GAAG,CAACO,CAAC,GAAGJ,MAAM;EACzC,OAAO,CAAC;IAAEC;EAAW,CAAC,EAAE;IAAEE;EAAW,CAAC,EAAE;IAAEJ;EAAO,CAAC,EAAE;IAAEC;EAAO,CAAC,CAAC;AACjE,CAAC;AAACL,OAAA,CAAAC,SAAA,GAAAA,SAAA;AAEF,MAAMS,QAAQ,GAAGA,CACf;EAAEZ,KAAK;EAAEC;AAAa,CAAC,EACvBY,IA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;IACLC;EACF,CAAC,CAAC;EACF,OAAO;IAAEG,GAAG;IAAEC;EAAI,CAAC;AACrB,CAAC;AAACH,OAAA,CAAAsB,QAAA,GAAAA,QAAA"}
1
+ {"version":3,"names":["_typeddash","require","size","width","height","exports","rect2rect","src","dst","scaleX","scaleY","translateX","x","translateY","y","inscribe","rect","halfWidthDelta","halfHeightDelta","applyBoxFit","fit","input","output","Math","min","aspectRatio","exhaustiveCheck","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,IAAAA,UAAA,GAAAC,OAAA;AASO,MAAMC,IAAI,GAAGA,CAACC,KAAK,GAAG,CAAC,EAAEC,MAAM,GAAG,CAAC,KAAK;EAC7C,SAAS;;EACT,OAAO;IAAED,KAAK;IAAEC;EAAO,CAAC;AAC1B,CAAC;AAACC,OAAA,CAAAH,IAAA,GAAAA,IAAA;AAEK,MAAMI,SAAS,GAAGA,CACvBC,GAAW,EACXC,GAAW,KAMR;EACH,SAAS;;EACT,MAAMC,MAAM,GAAGD,GAAG,CAACL,KAAK,GAAGI,GAAG,CAACJ,KAAK;EACpC,MAAMO,MAAM,GAAGF,GAAG,CAACJ,MAAM,GAAGG,GAAG,CAACH,MAAM;EACtC,MAAMO,UAAU,GAAGH,GAAG,CAAC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AC5B;EACH,SAAS;;EACT,MAAMwB,KAAK,GAAGT,WAAW,CACvBC,GAAG,EACH;IAAEjB,KAAK,EAAEa,IAAI,CAACb,KAAK;IAAEC,MAAM,EAAEY,IAAI,CAACZ;EAAO,CAAC,EAC1C;IAAED,KAAK;IAAEC;EAAO,CAClB,CAAC;EACD,MAAMG,GAAG,GAAGQ,QAAQ,CAACa,KAAK,CAACrB,GAAG,EAAES,IAAI,CAAC;EACrC,MAAMR,GAAG,GAAGO,QAAQ,CAACa,KAAK,CAACpB,GAAG,EAAE;IAC9BI,CAAC;IACDE,CAAC;IACDX,KAAK;IACLC;EACF,CAAC,CAAC;EACF,OAAO;IAAEG,GAAG;IAAEC;EAAI,CAAC;AACrB,CAAC;AAACH,OAAA,CAAAsB,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_Enum","_Transform","transformOrigin","origin","transform","translateX","x","translateY","y","exports","processGradientProps","Skia","colors","positions","mode","flags","localMatrix","Matrix","processTransformProps","map","color","Color","TileMode","enumKey","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,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEO,MAAMG,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;AAACC,OAAA,CAAAP,eAAA,GAAAA,eAAA;AAEK,MAAMQ,oBAAoB,GAAGA,CAClCC,IAAU,EACV;EAAEC,MAAM;EAAEC,SAAS;EAAEC,IAAI;EAAEC,KAAK;EAAE,GAAGX;AAAyB,CAAC,KAC5D;EACH,MAAMY,WAAW,GAAGL,IAAI,CAACM,MAAM,CAAC,CAAC;EACjC,IAAAC,gCAAqB,EAACF,WAAW,EAAEZ,SAAS,CAAC;EAC7C,OAAO;IACLQ,MAAM,EAAEA,MAAM,CAACO,GAAG,CAAEC,KAAK,IAAKT,IAAI,CAACU,KAAK,CAACD,KAAK,CAAC,CAAC;IAChDP,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,IAAI;IAC5BC,IAAI,EAAEQ,eAAQ,CAAC,IAAAC,aAAO,EAACT,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,OAAO,CAAC,CAAC;IACxCC,KAAK;IACLC;EACF,CAAC;AACH,CAAC;AAACP,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAEK,MAAMc,OAAO,GAAGA,CACrBb,IAAU,EACVc,KAA0E,KACnD;EACvB,MAAM;IAAEnB,CAAC;IAAEE,CAAC;IAAEkB,KAAK;IAAEC;EAAO,CAAC,GAAGF,KAAK;EACrC,IAAIA,KAAK,CAACG,IAAI,EAAE;IACd,OAAOH,KAAK,CAACG,IAAI;EACnB,CAAC,MAAM,IACLtB,CAAC,KAAKuB,SAAS,IACfrB,CAAC,KAAKqB,SAAS,IACfH,KAAK,KAAKG,SAAS,IACnBF,MAAM,KAAKE,SAAS,EACpB;IACA,OAAOlB,IAAI,CAACmB,QAAQ,CAACxB,CAAC,EAAEE,CAAC,EAAEkB,KAAK,EAAEC,MAAM,CAAC;EAC3C,CAAC,MAAM;IACL,OAAOE,SAAS;EAClB;AACF,CAAC;AAACpB,OAAA,CAAAe,OAAA,GAAAA,OAAA"}
1
+ {"version":3,"names":["_types","require","_Enum","_Transform","transformOrigin","origin","transform","translateX","x","translateY","y","exports","processGradientProps","Skia","colors","positions","mode","flags","localMatrix","Matrix","processTransformProps","map","color","Color","TileMode","enumKey","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,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEO,MAAMG,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;AAACC,OAAA,CAAAP,eAAA,GAAAA,eAAA;AAEK,MAAMQ,oBAAoB,GAAGA,CAClCC,IAAU,EACV;EAAEC,MAAM;EAAEC,SAAS;EAAEC,IAAI;EAAEC,KAAK;EAAE,GAAGX;AAAyB,CAAC,KAC5D;EACH,MAAMY,WAAW,GAAGL,IAAI,CAACM,MAAM,CAAC,CAAC;EACjC,IAAAC,gCAAqB,EAACF,WAAW,EAAEZ,SAAS,CAAC;EAC7C,OAAO;IACLQ,MAAM,EAAEA,MAAM,CAACO,GAAG,CAAEC,KAAK,IAAKT,IAAI,CAACU,KAAK,CAACD,KAAK,CAAC,CAAC;IAChDP,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,IAAI;IAC5BC,IAAI,EAAEQ,eAAQ,CAAC,IAAAC,aAAO,EAACT,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,OAAO,CAAC,CAAC;IACxCC,KAAK;IACLC;EACF,CAAC;AACH,CAAC;AAACP,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAEK,MAAMc,OAAO,GAAGA,CACrBb,IAAU,EACVc,KAA0E,KACnD;EACvB,MAAM;IAAEnB,CAAC;IAAEE,CAAC;IAAEkB,KAAK;IAAEC;EAAO,CAAC,GAAGF,KAAK;EACrC,IAAIA,KAAK,CAACG,IAAI,EAAE;IACd,OAAOH,KAAK,CAACG,IAAI;EACnB,CAAC,MAAM,IACLtB,CAAC,KAAKuB,SAAS,IACfrB,CAAC,KAAKqB,SAAS,IACfH,KAAK,KAAKG,SAAS,IACnBF,MAAM,KAAKE,SAAS,EACpB;IACA,OAAOlB,IAAI,CAACmB,QAAQ,CAACxB,CAAC,EAAEE,CAAC,EAAEkB,KAAK,EAAEC,MAAM,CAAC;EAC3C,CAAC,MAAM;IACL,OAAOE,SAAS;EAClB;AACF,CAAC;AAACpB,OAAA,CAAAe,OAAA,GAAAA,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","processPath","Skia","rawPath","path","Path","MakeFromSVGString","Error","exports","isPathDef","def","isPath"],"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,IAAAA,MAAA,GAAAC,OAAA;AAGO,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;AAAAI,OAAA,CAAAP,WAAA,GAAAA,WAAA;AACO,MAAMQ,SAAS,GAAIC,GAAQ,IAChC,OAAOA,GAAG,KAAK,QAAQ,IAAI,IAAAC,aAAM,EAACD,GAAG,CAAC;AAACF,OAAA,CAAAC,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"names":["_types","require","processPath","Skia","rawPath","path","Path","MakeFromSVGString","Error","exports","isPathDef","def","isPath"],"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,IAAAA,MAAA,GAAAC,OAAA;AAGO,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;AAAAI,OAAA,CAAAP,WAAA,GAAAA,WAAA;AACO,MAAMQ,SAAS,GAAIC,GAAQ,IAChC,OAAOA,GAAG,KAAK,QAAQ,IAAI,IAAAC,aAAM,EAACD,GAAG,CAAC;AAACF,OAAA,CAAAC,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["processRadius","Skia","radius","Point","exports"],"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":";;;;;;AAGO,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;AAACE,OAAA,CAAAJ,aAAA,GAAAA,aAAA"}
1
+ {"version":3,"names":["processRadius","Skia","radius","Point","exports"],"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":";;;;;;AAGO,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;AAACE,OAAA,CAAAJ,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_Radius","require","isEdge","pos","b","x","y","width","height","exports","isRRectCtor","def","rect","undefined","isRectCtor","processRect","Skia","_def$x","_def$y","XYWHRect","processRRect","_def$r","_def$x2","_def$y2","r","processRadius","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":";;;;;;AAIA,IAAAA,OAAA,GAAAC,OAAA;AAJA;;AAMO,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;AAAAC,OAAA,CAAAP,MAAA,GAAAA,MAAA;AACA,MAAMQ,WAAW,GAAIC,GAAa,IAC/BA,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,GAAG,CAACC,IAAI;EACjB;AACF,CAAC;AAACH,OAAA,CAAAW,YAAA,GAAAA,YAAA"}
1
+ {"version":3,"names":["_Radius","require","isEdge","pos","b","x","y","width","height","exports","isRRectCtor","def","rect","undefined","isRectCtor","processRect","Skia","_def$x","_def$y","XYWHRect","processRRect","_def$r","_def$x2","_def$y2","r","processRadius","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":";;;;;;AAIA,IAAAA,OAAA,GAAAC,OAAA;AAJA;;AAMO,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,CA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,OAAA,GAAI,CAAC,EAAEZ,GAAG,CAACJ,KAAK,EAAEI,GAAG,CAACH,MAAM,CAAC,EAC5DgB,CAAC,CAACnB,CAAC,EACHmB,CAAC,CAAClB,CACJ,CAAC;EACH,CAAC,MAAM;IACL,OAAOK,GAAG,CAACC,IAAI;EACjB;AACF,CAAC;AAACH,OAAA,CAAAW,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","processTransformProps","m3","props","transform","origin","matrix","translate","x","y","concat","processTransform","exports"],"sources":["Transform.ts"],"sourcesContent":["import type { TransformProps } from \"../../types\";\nimport type { SkMatrix } from \"../../../skia/types\";\nimport { processTransform } from \"../../../skia/types\";\n\nexport const processTransformProps = (m3: SkMatrix, props: TransformProps) => {\n const { transform, origin, matrix } = props;\n if (matrix) {\n if (origin) {\n m3.translate(origin.x, origin.y);\n m3.concat(matrix);\n m3.translate(-origin.x, -origin.y);\n } else {\n m3.concat(matrix);\n }\n } else if (transform) {\n if (origin) {\n m3.translate(origin.x, origin.y);\n }\n processTransform(m3, transform);\n if (origin) {\n m3.translate(-origin.x, -origin.y);\n }\n }\n};\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,qBAAqB,GAAGA,CAACC,EAAY,EAAEC,KAAqB,KAAK;EAC5E,MAAM;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGH,KAAK;EAC3C,IAAIG,MAAM,EAAE;IACV,IAAID,MAAM,EAAE;MACVH,EAAE,CAACK,SAAS,CAACF,MAAM,CAACG,CAAC,EAAEH,MAAM,CAACI,CAAC,CAAC;MAChCP,EAAE,CAACQ,MAAM,CAACJ,MAAM,CAAC;MACjBJ,EAAE,CAACK,SAAS,CAAC,CAACF,MAAM,CAACG,CAAC,EAAE,CAACH,MAAM,CAACI,CAAC,CAAC;IACpC,CAAC,MAAM;MACLP,EAAE,CAACQ,MAAM,CAACJ,MAAM,CAAC;IACnB;EACF,CAAC,MAAM,IAAIF,SAAS,EAAE;IACpB,IAAIC,MAAM,EAAE;MACVH,EAAE,CAACK,SAAS,CAACF,MAAM,CAACG,CAAC,EAAEH,MAAM,CAACI,CAAC,CAAC;IAClC;IACA,IAAAE,uBAAgB,EAACT,EAAE,EAAEE,SAAS,CAAC;IAC/B,IAAIC,MAAM,EAAE;MACVH,EAAE,CAACK,SAAS,CAAC,CAACF,MAAM,CAACG,CAAC,EAAE,CAACH,MAAM,CAACI,CAAC,CAAC;IACpC;EACF;AACF,CAAC;AAACG,OAAA,CAAAX,qBAAA,GAAAA,qBAAA"}
1
+ {"version":3,"names":["_types","require","processTransformProps","m3","props","transform","origin","matrix","translate","x","y","concat","processTransform","exports"],"sources":["Transform.ts"],"sourcesContent":["import type { TransformProps } from \"../../types\";\nimport type { SkMatrix } from \"../../../skia/types\";\nimport { processTransform } from \"../../../skia/types\";\n\nexport const processTransformProps = (m3: SkMatrix, props: TransformProps) => {\n const { transform, origin, matrix } = props;\n if (matrix) {\n if (origin) {\n m3.translate(origin.x, origin.y);\n m3.concat(matrix);\n m3.translate(-origin.x, -origin.y);\n } else {\n m3.concat(matrix);\n }\n } else if (transform) {\n if (origin) {\n m3.translate(origin.x, origin.y);\n }\n processTransform(m3, transform);\n if (origin) {\n m3.translate(-origin.x, -origin.y);\n }\n }\n};\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,qBAAqB,GAAGA,CAACC,EAAY,EAAEC,KAAqB,KAAK;EAC5E,MAAM;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGH,KAAK;EAC3C,IAAIG,MAAM,EAAE;IACV,IAAID,MAAM,EAAE;MACVH,EAAE,CAACK,SAAS,CAACF,MAAM,CAACG,CAAC,EAAEH,MAAM,CAACI,CAAC,CAAC;MAChCP,EAAE,CAACQ,MAAM,CAACJ,MAAM,CAAC;MACjBJ,EAAE,CAACK,SAAS,CAAC,CAACF,MAAM,CAACG,CAAC,EAAE,CAACH,MAAM,CAACI,CAAC,CAAC;IACpC,CAAC,MAAM;MACLP,EAAE,CAACQ,MAAM,CAACJ,MAAM,CAAC;IACnB;EACF,CAAC,MAAM,IAAIF,SAAS,EAAE;IACpB,IAAIC,MAAM,EAAE;MACVH,EAAE,CAACK,SAAS,CAACF,MAAM,CAACG,CAAC,EAAEH,MAAM,CAACI,CAAC,CAAC;IAClC;IACA,IAAAE,uBAAgB,EAACT,EAAE,EAAEE,SAAS,CAAC;IAC/B,IAAIC,MAAM,EAAE;MACVH,EAAE,CAACK,SAAS,CAAC,CAACF,MAAM,CAACG,CAAC,EAAE,CAACH,MAAM,CAACI,CAAC,CAAC;IACpC;EACF;AACF,CAAC;AAACG,OAAA,CAAAX,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_Enum","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Path","_Fitting","_Rect","_Radius","_Circle","_Gradient","_Transform"],"sources":["index.ts"],"sourcesContent":["export * from \"./Enum\";\nexport * from \"./Path\";\nexport * from \"./Fitting\";\nexport * from \"./Rect\";\nexport * from \"./Radius\";\nexport * from \"./Circle\";\nexport * from \"./Gradient\";\nexport * from \"./Transform\";\n"],"mappings":";;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,KAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,KAA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"version":3,"names":["_Enum","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Path","_Fitting","_Rect","_Radius","_Circle","_Gradient","_Transform"],"sources":["index.ts"],"sourcesContent":["export * from \"./Enum\";\nexport * from \"./Path\";\nexport * from \"./Fitting\";\nexport * from \"./Rect\";\nexport * from \"./Radius\";\nexport * from \"./Circle\";\nexport * from \"./Gradient\";\nexport * from \"./Transform\";\n"],"mappings":";;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,KAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,KAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,KAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,KAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,QAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,QAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,QAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cA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A;AAAAC,MAAA,CAAAC,IAAA,CAAAY,SAAA,EAAAX,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAU,SAAA,CAAAV,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAM,SAAA,CAAAV,GAAA;IAAA;EAAA;AAAA;AACA,IAAAW,UAAA,GAAAf,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAa,UAAA,EAAAZ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAW,UAAA,CAAAX,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAO,UAAA,CAAAX,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_types2","_DrawingNode","_datatypes","AtlasNode","JsiDrawingNode","deriveProps","constructor","ctx","props","NodeType","Atlas","draw","canvas","paint","image","sprites","transforms","colors","blendMode","blend","BlendMode","enumKey","undefined","drawAtlas","exports"],"sources":["AtlasNode.ts"],"sourcesContent":["import { BlendMode } from \"../../../skia/types\";\nimport type { AtlasProps, DrawingContext } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\nimport { enumKey } from \"../datatypes\";\n\nexport class AtlasNode extends JsiDrawingNode<AtlasProps, null> {\n protected deriveProps() {\n return null;\n }\n\n constructor(ctx: NodeContext, props: AtlasProps) {\n super(ctx, NodeType.Atlas, props);\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { image, sprites, transforms, colors, blendMode } = this.props;\n const blend = blendMode ? BlendMode[enumKey(blendMode)] : undefined;\n if (image) {\n canvas.drawAtlas(image, sprites, transforms, paint, blend, colors);\n }\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AAEO,MAAMI,SAAS,SAASC,2BAAc,CAAmB;EACpDC,WAAWA,CAAA,EAAG;IACtB,OAAO,IAAI;EACb;EAEAC,WAAWA,CAACC,GAAgB,EAAEC,KAAiB,EAAE;IAC/C,KAAK,CAACD,GAAG,EAAEE,gBAAQ,CAACC,KAAK,EAAEF,KAAK,CAAC;EACnC;EAEAG,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,MAAM;MAAEC,KAAK;MAAEC,OAAO;MAAEC,UAAU;MAAEC,MAAM;MAAEC;IAAU,CAAC,GAAG,IAAI,CAACV,KAAK;IACpE,MAAMW,KAAK,GAAGD,SAAS,GAAGE,gBAAS,CAAC,IAAAC,kBAAO,EAACH,SAAS,CAAC,CAAC,GAAGI,SAAS;IACnE,IAAIR,KAAK,EAAE;MACTF,MAAM,CAACW,SAAS,CAACT,KAAK,EAAEC,OAAO,EAAEC,UAAU,EAAEH,KAAK,EAAEM,KAAK,EAAEF,MAAM,CAAC;IACpE;EACF;AACF;AAACO,OAAA,CAAArB,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"names":["_types","require","_types2","_DrawingNode","_datatypes","AtlasNode","JsiDrawingNode","deriveProps","constructor","ctx","props","NodeType","Atlas","draw","canvas","paint","image","sprites","transforms","colors","blendMode","blend","BlendMode","enumKey","undefined","drawAtlas","exports"],"sources":["AtlasNode.ts"],"sourcesContent":["import { BlendMode } from \"../../../skia/types\";\nimport type { AtlasProps, DrawingContext } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\nimport { enumKey } from \"../datatypes\";\n\nexport class AtlasNode extends JsiDrawingNode<AtlasProps, null> {\n protected deriveProps() {\n return null;\n }\n\n constructor(ctx: NodeContext, props: AtlasProps) {\n super(ctx, NodeType.Atlas, props);\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { image, sprites, transforms, colors, blendMode } = this.props;\n const blend = blendMode ? BlendMode[enumKey(blendMode)] : undefined;\n if (image) {\n canvas.drawAtlas(image, sprites, transforms, paint, blend, colors);\n }\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AAEO,MAAMI,SAAS,SAASC,2BAAc,CAAmB;EACpDC,WAAWA,CAAA,EAAG;IACtB,OAAO,IAAI;EACb;EAEAC,WAAWA,CAACC,GAAgB,EAAEC,KAAiB,EAAE;IAC/C,KAAK,CAACD,GAAG,EAAEE,gBAAQ,CAACC,KAAK,EAAEF,KAAK,CAAC;EACnC;EAEAG,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,MAAM;MAAEC,KAAK;MAAEC,OAAO;MAAEC,UAAU;MAAEC,MAAM;MAAEC;IAAU,CAAC,GAAG,IAAI,CAACV,KAAK;IACpE,MAAMW,KAAK,GAAGD,SAAS,GAAGE,gBAAS,CAAC,IAAAC,kBAAO,EAACH,SAAS,CAAC,CAAC,GAAGI,SAAS;IACnE,IAAIR,KAAK,EAAE;MACTF,MAAM,CAACW,SAAS,CAACT,KAAK,EAAEC,OAAO,EAAEC,UAAU,EAAEH,KAAK,EAAEM,KAAK,EAAEF,MAAM,CAAC;IACpE;EACF;AACF;AAACO,OAAA,CAAArB,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_DrawingNode","_Node","BackdropFilterNode","JsiDrawingNode","constructor","ctx","props","NodeType","BackdropFilter","deriveProps","draw","canvas","declarationCtx","child","_children","imageFilter","JsiDeclarationNode","save","decorate","imgf","imageFilters","pop","cf","colorFilters","Skia","ImageFilter","MakeColorFilter","restore","saveLayer","undefined","exports"],"sources":["BackdropFilterNode.ts"],"sourcesContent":["import type { ChildrenProps, DrawingContext } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\nimport { JsiDeclarationNode } from \"../Node\";\nimport type { SkImageFilter } from \"../../../skia/types/ImageFilter/ImageFilter\";\n\nexport class BackdropFilterNode extends JsiDrawingNode<ChildrenProps, null> {\n constructor(ctx: NodeContext, props: ChildrenProps) {\n super(ctx, NodeType.BackdropFilter, props);\n }\n\n protected deriveProps() {\n return null;\n }\n\n draw({ canvas, declarationCtx }: DrawingContext) {\n const child = this._children[0];\n let imageFilter: SkImageFilter | null = null;\n if (child instanceof JsiDeclarationNode) {\n declarationCtx.save();\n child.decorate(declarationCtx);\n const imgf = declarationCtx.imageFilters.pop();\n if (imgf) {\n imageFilter = imgf;\n } else {\n const cf = declarationCtx.colorFilters.pop();\n if (cf) {\n imageFilter = this.Skia.ImageFilter.MakeColorFilter(cf, null);\n }\n }\n declarationCtx.restore();\n }\n canvas.saveLayer(undefined, null, imageFilter);\n canvas.restore();\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AAGO,MAAMG,kBAAkB,SAASC,2BAAc,CAAsB;EAC1EC,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,cAAc,EAAEF,KAAK,CAAC;EAC5C;EAEUG,WAAWA,CAAA,EAAG;IACtB,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAA+B,CAAC,EAAE;IAC/C,MAAMC,KAAK,GAAG,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IAC/B,IAAIC,WAAiC,GAAG,IAAI;IAC5C,IAAIF,KAAK,YAAYG,wBAAkB,EAAE;MACvCJ,cAAc,CAACK,IAAI,CAAC,CAAC;MACrBJ,KAAK,CAACK,QAAQ,CAACN,cAAc,CAAC;MAC9B,MAAMO,IAAI,GAAGP,cAAc,CAACQ,YAAY,CAACC,GAAG,CAAC,CAAC;MAC9C,IAAIF,IAAI,EAAE;QACRJ,WAAW,GAAGI,IAAI;MACpB,CAAC,MAAM;QACL,MAAMG,EAAE,GAAGV,cAAc,CAACW,YAAY,CAACF,GAAG,CAAC,CAAC;QAC5C,IAAIC,EAAE,EAAE;UACNP,WAAW,GAAG,IAAI,CAACS,IAAI,CAACC,WAAW,CAACC,eAAe,CAACJ,EAAE,EAAE,IAAI,CAAC;QAC/D;MACF;MACAV,cAAc,CAACe,OAAO,CAAC,CAAC;IAC1B;IACAhB,MAAM,CAACiB,SAAS,CAACC,SAAS,EAAE,IAAI,EAAEd,WAAW,CAAC;IAC9CJ,MAAM,CAACgB,OAAO,CAAC,CAAC;EAClB;AACF;AAACG,OAAA,CAAA5B,kBAAA,GAAAA,kBAAA"}
1
+ {"version":3,"names":["_types","require","_DrawingNode","_Node","BackdropFilterNode","JsiDrawingNode","constructor","ctx","props","NodeType","BackdropFilter","deriveProps","draw","canvas","declarationCtx","child","_children","imageFilter","JsiDeclarationNode","save","decorate","imgf","imageFilters","pop","cf","colorFilters","Skia","ImageFilter","MakeColorFilter","restore","saveLayer","undefined","exports"],"sources":["BackdropFilterNode.ts"],"sourcesContent":["import type { ChildrenProps, DrawingContext } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\nimport { JsiDeclarationNode } from \"../Node\";\nimport type { SkImageFilter } from \"../../../skia/types/ImageFilter/ImageFilter\";\n\nexport class BackdropFilterNode extends JsiDrawingNode<ChildrenProps, null> {\n constructor(ctx: NodeContext, props: ChildrenProps) {\n super(ctx, NodeType.BackdropFilter, props);\n }\n\n protected deriveProps() {\n return null;\n }\n\n draw({ canvas, declarationCtx }: DrawingContext) {\n const child = this._children[0];\n let imageFilter: SkImageFilter | null = null;\n if (child instanceof JsiDeclarationNode) {\n declarationCtx.save();\n child.decorate(declarationCtx);\n const imgf = declarationCtx.imageFilters.pop();\n if (imgf) {\n imageFilter = imgf;\n } else {\n const cf = declarationCtx.colorFilters.pop();\n if (cf) {\n imageFilter = this.Skia.ImageFilter.MakeColorFilter(cf, null);\n }\n }\n declarationCtx.restore();\n }\n canvas.saveLayer(undefined, null, imageFilter);\n canvas.restore();\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AAGO,MAAMG,kBAAkB,SAASC,2BAAc,CAAsB;EAC1EC,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,cAAc,EAAEF,KAAK,CAAC;EAC5C;EAEUG,WAAWA,CAAA,EAAG;IACtB,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAA+B,CAAC,EAAE;IAC/C,MAAMC,KAAK,GAAG,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IAC/B,IAAIC,WAAiC,GAAG,IAAI;IAC5C,IAAIF,KAAK,YAAYG,wBAAkB,EAAE;MACvCJ,cAAc,CAACK,IAAI,CAAC,CAAC;MACrBJ,KAAK,CAACK,QAAQ,CAACN,cAAc,CAAC;MAC9B,MAAMO,IAAI,GAAGP,cAAc,CAACQ,YAAY,CAACC,GAAG,CAAC,CAAC;MAC9C,IAAIF,IAAI,EAAE;QACRJ,WAAW,GAAGI,IAAI;MACpB,CAAC,MAAM;QACL,MAAMG,EAAE,GAAGV,cAAc,CAACW,YAAY,CAACF,GAAG,CAAC,CAAC;QAC5C,IAAIC,EAAE,EAAE;UACNP,WAAW,GAAG,IAAI,CAACS,IAAI,CAACC,WAAW,CAACC,eAAe,CAACJ,EAAE,EAAE,IAAI,CAAC;QAC/D;MACF;MACAV,cAAc,CAACe,OAAO,CAAC,CAAC;IAC1B;IACAhB,MAAM,CAACiB,SAAS,CAACC,SAAS,EAAE,IAAI,EAAEd,WAAW,CAAC;IAC9CJ,MAAM,CAACgB,OAAO,CAAC,CAAC;EAClB;AACF;AAACG,OAAA,CAAA5B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_types2","_Node","_RenderNode","inflate","Skia","box","dx","dy","tx","ty","RRectXY","XYWHRect","rect","x","y","width","height","rx","ry","deflate","BoxShadowNode","JsiDeclarationNode","constructor","ctx","props","NodeType","BoxShadow","decorate","_ctx","materialize","exports","BoxNode","JsiRenderNode","Box","renderNode","canvas","paint","defaultBox","opacity","getAlphaf","isRRect","shadows","_children","map","node","filter","n","shadow","inner","color","blur","spread","lPaint","Paint","setColor","Color","setAlphaf","setMaskFilter","MaskFilter","MakeBlur","BlurStyle","Normal","drawRRect","delta","Point","Math","abs","save","clipRRect","ClipOp","Intersect","outer","drawDRRect","restore"],"sources":["Box.ts"],"sourcesContent":["import type { SkRRect, Skia } from \"../../../skia/types\";\nimport { BlurStyle, ClipOp, isRRect } from \"../../../skia/types\";\nimport type { DrawingContext } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport type { BoxShadowProps, BoxProps } from \"../../types/Drawings\";\nimport type { NodeContext } from \"../Node\";\nimport { JsiDeclarationNode } from \"../Node\";\nimport { JsiRenderNode } from \"../RenderNode\";\nimport type { DeclarationContext } from \"../../types/DeclarationContext\";\n\nconst inflate = (\n Skia: Skia,\n box: SkRRect,\n dx: number,\n dy: number,\n tx = 0,\n ty = 0\n) =>\n Skia.RRectXY(\n Skia.XYWHRect(\n box.rect.x - dx + tx,\n box.rect.y - dy + ty,\n box.rect.width + 2 * dx,\n box.rect.height + 2 * dy\n ),\n box.rx + dx,\n box.ry + dy\n );\n\nconst deflate = (\n Skia: Skia,\n box: SkRRect,\n dx: number,\n dy: number,\n tx = 0,\n ty = 0\n) => inflate(Skia, box, -dx, -dy, tx, ty);\n\nexport class BoxShadowNode extends JsiDeclarationNode<BoxShadowProps> {\n constructor(ctx: NodeContext, props: BoxShadowProps) {\n super(ctx, NodeType.BoxShadow, props);\n }\n\n decorate(_ctx: DeclarationContext) {\n // do nothing\n }\n\n materialize() {\n return this.props;\n }\n}\n\nexport class BoxNode extends JsiRenderNode<BoxProps> {\n constructor(ctx: NodeContext, props: BoxProps) {\n super(ctx, NodeType.Box, props);\n }\n\n renderNode({ canvas, paint }: DrawingContext) {\n const { box: defaultBox } = this.props;\n const opacity = paint.getAlphaf();\n const box = isRRect(defaultBox)\n ? defaultBox\n : this.Skia.RRectXY(defaultBox, 0, 0);\n const shadows = this._children\n .map((node) => {\n if (node instanceof BoxShadowNode) {\n return node.materialize();\n }\n return null;\n })\n .filter((n): n is BoxShadowProps => n !== null);\n shadows\n .filter((shadow) => !shadow.inner)\n .map((shadow) => {\n const { color = \"black\", blur, spread = 0, dx = 0, dy = 0 } = shadow;\n const lPaint = this.Skia.Paint();\n lPaint.setColor(this.Skia.Color(color));\n lPaint.setAlphaf(paint.getAlphaf() * opacity);\n lPaint.setMaskFilter(\n this.Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)\n );\n canvas.drawRRect(\n inflate(this.Skia, box, spread, spread, dx, dy),\n lPaint\n );\n });\n\n canvas.drawRRect(box, paint);\n\n shadows\n .filter((shadow) => shadow.inner)\n .map((shadow) => {\n const { color = \"black\", blur, spread = 0, dx = 0, dy = 0 } = shadow;\n const delta = this.Skia.Point(10 + Math.abs(dx), 10 + Math.abs(dy));\n canvas.save();\n canvas.clipRRect(box, ClipOp.Intersect, false);\n const lPaint = this.Skia.Paint();\n lPaint.setColor(this.Skia.Color(color));\n lPaint.setAlphaf(paint.getAlphaf() * opacity);\n\n lPaint.setMaskFilter(\n this.Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)\n );\n const inner = deflate(this.Skia, box, spread, spread, dx, dy);\n const outer = inflate(this.Skia, box, delta.x, delta.y);\n canvas.drawDRRect(outer, inner, lPaint);\n canvas.restore();\n });\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAGA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,MAAMI,OAAO,GAAGA,CACdC,IAAU,EACVC,GAAY,EACZC,EAAU,EACVC,EAAU,EACVC,EAAE,GAAG,CAAC,EACNC,EAAE,GAAG,CAAC,KAENL,IAAI,CAACM,OAAO,CACVN,IAAI,CAACO,QAAQ,CACXN,GAAG,CAACO,IAAI,CAACC,CAAC,GAAGP,EAAE,GAAGE,EAAE,EACpBH,GAAG,CAACO,IAAI,CAACE,CAAC,GAAGP,EAAE,GAAGE,EAAE,EACpBJ,GAAG,CAACO,IAAI,CAACG,KAAK,GAAG,CAAC,GAAGT,EAAE,EACvBD,GAAG,CAACO,IAAI,CAACI,MAAM,GAAG,CAAC,GAAGT,EACxB,CAAC,EACDF,GAAG,CAACY,EAAE,GAAGX,EAAE,EACXD,GAAG,CAACa,EAAE,GAAGX,EACX,CAAC;AAEH,MAAMY,OAAO,GAAGA,CACdf,IAAU,EACVC,GAAY,EACZC,EAAU,EACVC,EAAU,EACVC,EAAE,GAAG,CAAC,EACNC,EAAE,GAAG,CAAC,KACHN,OAAO,CAACC,IAAI,EAAEC,GAAG,EAAE,CAACC,EAAE,EAAE,CAACC,EAAE,EAAEC,EAAE,EAAEC,EAAE,CAAC;AAElC,MAAMW,aAAa,SAASC,wBAAkB,CAAiB;EACpEC,WAAWA,C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AC9C,MAAMlB,MAAM,GAAG,IAAI,CAAChD,IAAI,CAACiD,KAAK,CAAC,CAAC;MAChCD,MAAM,CAACE,QAAQ,CAAC,IAAI,CAAClD,IAAI,CAACmD,KAAK,CAACN,KAAK,CAAC,CAAC;MACvCG,MAAM,CAACI,SAAS,CAACpB,KAAK,CAACG,SAAS,CAAC,CAAC,GAAGD,OAAO,CAAC;MAE7Cc,MAAM,CAACK,aAAa,CAClB,IAAI,CAACrD,IAAI,CAACsD,UAAU,CAACC,QAAQ,CAACC,gBAAS,CAACC,MAAM,EAAEX,IAAI,EAAE,IAAI,CAC5D,CAAC;MACD,MAAMF,KAAK,GAAG7B,OAAO,CAAC,IAAI,CAACf,IAAI,EAAEC,GAAG,EAAE8C,MAAM,EAAEA,MAAM,EAAE7C,EAAE,EAAEC,EAAE,CAAC;MAC7D,MAAMgE,KAAK,GAAGpE,OAAO,CAAC,IAAI,CAACC,IAAI,EAAEC,GAAG,EAAE0D,KAAK,CAAClD,CAAC,EAAEkD,KAAK,CAACjD,CAAC,CAAC;MACvDqB,MAAM,CAACqC,UAAU,CAACD,KAAK,EAAEvB,KAAK,EAAEI,MAAM,CAAC;MACvCjB,MAAM,CAACsC,OAAO,CAAC,CAAC;IAClB,CAAC,CAAC;EACN;AACF;AAAC3C,OAAA,CAAAC,OAAA,GAAAA,OAAA"}
1
+ {"version":3,"names":["_types","require","_types2","_Node","_RenderNode","inflate","Skia","box","dx","dy","tx","ty","RRectXY","XYWHRect","rect","x","y","width","height","rx","ry","deflate","BoxShadowNode","JsiDeclarationNode","constructor","ctx","props","NodeType","BoxShadow","decorate","_ctx","materialize","exports","BoxNode","JsiRenderNode","Box","renderNode","canvas","paint","defaultBox","opacity","getAlphaf","isRRect","shadows","_children","map","node","filter","n","shadow","inner","color","blur","spread","lPaint","Paint","setColor","Color","setAlphaf","setMaskFilter","MaskFilter","MakeBlur","BlurStyle","Normal","drawRRect","delta","Point","Math","abs","save","clipRRect","ClipOp","Intersect","outer","drawDRRect","restore"],"sources":["Box.ts"],"sourcesContent":["import type { SkRRect, Skia } from \"../../../skia/types\";\nimport { BlurStyle, ClipOp, isRRect } from \"../../../skia/types\";\nimport type { DrawingContext } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport type { BoxShadowProps, BoxProps } from \"../../types/Drawings\";\nimport type { NodeContext } from \"../Node\";\nimport { JsiDeclarationNode } from \"../Node\";\nimport { JsiRenderNode } from \"../RenderNode\";\nimport type { DeclarationContext } from \"../../types/DeclarationContext\";\n\nconst inflate = (\n Skia: Skia,\n box: SkRRect,\n dx: number,\n dy: number,\n tx = 0,\n ty = 0\n) =>\n Skia.RRectXY(\n Skia.XYWHRect(\n box.rect.x - dx + tx,\n box.rect.y - dy + ty,\n box.rect.width + 2 * dx,\n box.rect.height + 2 * dy\n ),\n box.rx + dx,\n box.ry + dy\n );\n\nconst deflate = (\n Skia: Skia,\n box: SkRRect,\n dx: number,\n dy: number,\n tx = 0,\n ty = 0\n) => inflate(Skia, box, -dx, -dy, tx, ty);\n\nexport class BoxShadowNode extends JsiDeclarationNode<BoxShadowProps> {\n constructor(ctx: NodeContext, props: BoxShadowProps) {\n super(ctx, NodeType.BoxShadow, props);\n }\n\n decorate(_ctx: DeclarationContext) {\n // do nothing\n }\n\n materialize() {\n return this.props;\n }\n}\n\nexport class BoxNode extends JsiRenderNode<BoxProps> {\n constructor(ctx: NodeContext, props: BoxProps) {\n super(ctx, NodeType.Box, props);\n }\n\n renderNode({ canvas, paint }: DrawingContext) {\n const { box: defaultBox } = this.props;\n const opacity = paint.getAlphaf();\n const box = isRRect(defaultBox)\n ? defaultBox\n : this.Skia.RRectXY(defaultBox, 0, 0);\n const shadows = this._children\n .map((node) => {\n if (node instanceof BoxShadowNode) {\n return node.materialize();\n }\n return null;\n })\n .filter((n): n is BoxShadowProps => n !== null);\n shadows\n .filter((shadow) => !shadow.inner)\n .map((shadow) => {\n const { color = \"black\", blur, spread = 0, dx = 0, dy = 0 } = shadow;\n const lPaint = this.Skia.Paint();\n lPaint.setColor(this.Skia.Color(color));\n lPaint.setAlphaf(paint.getAlphaf() * opacity);\n lPaint.setMaskFilter(\n this.Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)\n );\n canvas.drawRRect(\n inflate(this.Skia, box, spread, spread, dx, dy),\n lPaint\n );\n });\n\n canvas.drawRRect(box, paint);\n\n shadows\n .filter((shadow) => shadow.inner)\n .map((shadow) => {\n const { color = \"black\", blur, spread = 0, dx = 0, dy = 0 } = shadow;\n const delta = this.Skia.Point(10 + Math.abs(dx), 10 + Math.abs(dy));\n canvas.save();\n canvas.clipRRect(box, ClipOp.Intersect, false);\n const lPaint = this.Skia.Paint();\n lPaint.setColor(this.Skia.Color(color));\n lPaint.setAlphaf(paint.getAlphaf() * opacity);\n\n lPaint.setMaskFilter(\n this.Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)\n );\n const inner = deflate(this.Skia, box, spread, spread, dx, dy);\n const outer = inflate(this.Skia, box, delta.x, delta.y);\n canvas.drawDRRect(outer, inner, lPaint);\n canvas.restore();\n });\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAGA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,MAAMI,OAAO,GAAGA,CACdC,IAAU,EACVC,GAAY,EACZC,EAAU,EACVC,EAAU,EACVC,EAAE,GAAG,CAAC,EACNC,EAAE,GAAG,CAAC,KAENL,IAAI,CAACM,OAAO,CACVN,IAAI,CAACO,QAAQ,CACXN,GAAG,CAACO,IAAI,CAACC,CAAC,GAAGP,EAAE,GAAGE,EAAE,EACpBH,GAAG,CAACO,IAAI,CAACE,CAAC,GAAGP,EAAE,GAAGE,EAAE,EACpBJ,GAAG,CAACO,IAAI,CAACG,KAAK,GAAG,CAAC,GAAGT,EAAE,EACvBD,GAAG,CAACO,IAAI,CAACI,MAAM,GAAG,CAAC,G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1 +1 @@
1
- {"version":3,"names":["_types","require","_datatypes","_DrawingNode","CircleNode","JsiDrawingNode","constructor","ctx","props","NodeType","Circle","deriveProps","processCircle","Skia","c","draw","canvas","paint","derived","Error","x","y","drawCircle","r","exports"],"sources":["CircleNode.ts"],"sourcesContent":["import type { SkPoint } from \"../../../skia/types\";\nimport type { CircleProps, DrawingContext } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { processCircle } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class CircleNode extends JsiDrawingNode<CircleProps, SkPoint> {\n constructor(ctx: NodeContext, props: CircleProps) {\n super(ctx, NodeType.Circle, props);\n }\n\n protected deriveProps() {\n return processCircle(this.Skia, this.props).c;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (!this.derived) {\n throw new Error(\"CircleNode: c is undefined\");\n }\n const { x, y } = this.derived;\n canvas.drawCircle(x, y, this.props.r, paint);\n }\n}\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAGO,MAAMG,UAAU,SAASC,2BAAc,CAAuB;EACnEC,WAAWA,CAACC,GAAgB,EAAEC,KAAkB,EAAE;IAChD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,MAAM,EAAEF,KAAK,CAAC;EACpC;EAEUG,WAAWA,CAAA,EAAG;IACtB,OAAO,IAAAC,wBAAa,EAAC,IAAI,CAACC,IAAI,EAAE,IAAI,CAACL,KAAK,CAAC,CAACM,CAAC;EAC/C;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,IAAI,CAAC,IAAI,CAACC,OAAO,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,4BAA4B,CAAC;IAC/C;IACA,MAAM;MAAEC,CAAC;MAAEC;IAAE,CAAC,GAAG,IAAI,CAACH,OAAO;IAC7BF,MAAM,CAACM,UAAU,CAACF,CAAC,EAAEC,CAAC,EAAE,IAAI,CAACb,KAAK,CAACe,CAAC,EAAEN,KAAK,CAAC;EAC9C;AACF;AAACO,OAAA,CAAApB,UAAA,GAAAA,UAAA"}
1
+ {"version":3,"names":["_types","require","_datatypes","_DrawingNode","CircleNode","JsiDrawingNode","constructor","ctx","props","NodeType","Circle","deriveProps","processCircle","Skia","c","draw","canvas","paint","derived","Error","x","y","drawCircle","r","exports"],"sources":["CircleNode.ts"],"sourcesContent":["import type { SkPoint } from \"../../../skia/types\";\nimport type { CircleProps, DrawingContext } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { processCircle } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class CircleNode extends JsiDrawingNode<CircleProps, SkPoint> {\n constructor(ctx: NodeContext, props: CircleProps) {\n super(ctx, NodeType.Circle, props);\n }\n\n protected deriveProps() {\n return processCircle(this.Skia, this.props).c;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (!this.derived) {\n throw new Error(\"CircleNode: c is undefined\");\n }\n const { x, y } = this.derived;\n canvas.drawCircle(x, y, this.props.r, paint);\n }\n}\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAGO,MAAMG,UAAU,SAASC,2BAAc,CAAuB;EACnEC,WAAWA,CAACC,GAAgB,EAAEC,KAAkB,EAAE;IAChD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,MAAM,EAAEF,KAAK,CAAC;EACpC;EAEUG,WAAWA,CAAA,EAAG;IACtB,OAAO,IAAAC,wBAAa,EAAC,IAAI,CAACC,IAAI,EAAE,IAAI,CAACL,KAAK,CAAC,CAACM,CAAC;EAC/C;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,IAAI,CAAC,IAAI,CAACC,OAAO,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,4BAA4B,CAAC;IAC/C;IACA,MAAM;MAAEC,CAAC;MAAEC;IAAE,CAAC,GAAG,IAAI,CAACH,OAAO;IAC7BF,MAAM,CAACM,UAAU,CAACF,CAAC,EAAEC,CAAC,EAAE,IAAI,CAACb,KAAK,CAACe,CAAC,EAAEN,KAAK,CAAC;EAC9C;AACF;AAACO,OAAA,CAAApB,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_DrawingNode","DiffRectNode","JsiDrawingNode","constructor","ctx","props","NodeType","DiffRect","deriveProps","draw","canvas","paint","outer","inner","drawDRRect","exports"],"sources":["DiffRectNode.ts"],"sourcesContent":["import type { DiffRectProps, DrawingContext } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class DiffRectNode extends JsiDrawingNode<DiffRectProps, null> {\n constructor(ctx: NodeContext, props: DiffRectProps) {\n super(ctx, NodeType.DiffRect, props);\n }\n\n deriveProps() {\n return null;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { outer, inner } = this.props;\n canvas.drawDRRect(outer, inner, paint);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,YAAY,SAASC,2BAAc,CAAsB;EACpEC,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,QAAQ,EAAEF,KAAK,CAAC;EACtC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,MAAM;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAG,IAAI,CAACR,KAAK;IACnCK,MAAM,CAACI,UAAU,CAACF,KAAK,EAAEC,KAAK,EAAEF,KAAK,CAAC;EACxC;AACF;AAACI,OAAA,CAAAd,YAAA,GAAAA,YAAA"}
1
+ {"version":3,"names":["_types","require","_DrawingNode","DiffRectNode","JsiDrawingNode","constructor","ctx","props","NodeType","DiffRect","deriveProps","draw","canvas","paint","outer","inner","drawDRRect","exports"],"sources":["DiffRectNode.ts"],"sourcesContent":["import type { DiffRectProps, DrawingContext } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class DiffRectNode extends JsiDrawingNode<DiffRectProps, null> {\n constructor(ctx: NodeContext, props: DiffRectProps) {\n super(ctx, NodeType.DiffRect, props);\n }\n\n deriveProps() {\n return null;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { outer, inner } = this.props;\n canvas.drawDRRect(outer, inner, paint);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,YAAY,SAASC,2BAAc,CAAsB;EACpEC,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,QAAQ,EAAEF,KAAK,CAAC;EACtC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,MAAM;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAG,IAAI,CAACR,KAAK;IACnCK,MAAM,CAACI,UAAU,CAACF,KAAK,EAAEC,KAAK,EAAEF,KAAK,CAAC;EACxC;AACF;AAACI,OAAA,CAAAd,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_DrawingNode","FillNode","JsiDrawingNode","constructor","ctx","props","NodeType","Fill","deriveProps","draw","canvas","paint","drawPaint","exports"],"sources":["FillNode.ts"],"sourcesContent":["import type { DrawingContext, DrawingNodeProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class FillNode extends JsiDrawingNode<DrawingNodeProps, null> {\n constructor(ctx: NodeContext, props: DrawingNodeProps = {}) {\n super(ctx, NodeType.Fill, props);\n }\n\n deriveProps() {\n return null;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n canvas.drawPaint(paint);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,QAAQ,SAASC,2BAAc,CAAyB;EACnEC,WAAWA,CAACC,GAAgB,EAAEC,KAAuB,GAAG,CAAC,CAAC,EAAE;IAC1D,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,IAAI,EAAEF,KAAK,CAAC;EAClC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtCD,MAAM,CAACE,SAAS,CAACD,KAAK,CAAC;EACzB;AACF;AAACE,OAAA,CAAAZ,QAAA,GAAAA,QAAA"}
1
+ {"version":3,"names":["_types","require","_DrawingNode","FillNode","JsiDrawingNode","constructor","ctx","props","NodeType","Fill","deriveProps","draw","canvas","paint","drawPaint","exports"],"sources":["FillNode.ts"],"sourcesContent":["import type { DrawingContext, DrawingNodeProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class FillNode extends JsiDrawingNode<DrawingNodeProps, null> {\n constructor(ctx: NodeContext, props: DrawingNodeProps = {}) {\n super(ctx, NodeType.Fill, props);\n }\n\n deriveProps() {\n return null;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n canvas.drawPaint(paint);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,QAAQ,SAASC,2BAAc,CAAyB;EACnEC,WAAWA,CAACC,GAAgB,EAAEC,KAAuB,GAAG,CAAC,CAAC,EAAE;IAC1D,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,IAAI,EAAEF,KAAK,CAAC;EAClC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtCD,MAAM,CAACE,SAAS,CAACD,KAAK,CAAC;EACzB;AACF;AAACE,OAAA,CAAAZ,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_datatypes","_DrawingNode","ImageNode","JsiDrawingNode","constructor","ctx","props","NodeType","Image","deriveProps","_this$props$fit","image","src","x","y","width","height","dst","fit","rect","processRect","Skia","fitRects","draw","canvas","paint","derived","Error","drawImageRect","exports"],"sources":["ImageNode.ts"],"sourcesContent":["import type { SkRect } from \"../../../skia/types\";\nimport type { DrawingContext, ImageProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { fitRects, processRect } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class ImageNode extends JsiDrawingNode<\n ImageProps,\n { src: SkRect; dst: SkRect }\n> {\n constructor(ctx: NodeContext, props: ImageProps) {\n super(ctx, NodeType.Image, props);\n }\n\n deriveProps() {\n const { image } = this.props;\n if (!image) {\n return {\n src: { x: 0, y: 0, width: 0, height: 0 },\n dst: { x: 0, y: 0, width: 0, height: 0 },\n };\n }\n const fit = this.props.fit ?? \"contain\";\n const rect = processRect(this.Skia, this.props);\n const { src, dst } = fitRects(\n fit,\n {\n x: 0,\n y: 0,\n width: image.width(),\n height: image.height(),\n },\n rect\n );\n return { src, dst };\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { image } = this.props;\n if (!this.derived) {\n throw new Error(\"ImageNode: src and dst are undefined\");\n }\n const { src, dst } = this.derived;\n if (image) {\n canvas.drawImageRect(image, src, dst, paint);\n }\n }\n}\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAGO,MAAMG,SAAS,SAASC,2BAAc,CAG3C;EACAC,WAAWA,CAACC,GAAgB,EAAEC,KAAiB,EAAE;IAC/C,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,KAAK,EAAEF,KAAK,CAAC;EACnC;EAEAG,WAAWA,CAAA,EAAG;IAAA,IAAAC,eAAA;IACZ,MAAM;MAAEC;IAAM,CAAC,GAAG,IAAI,CAACL,KAAK;IAC5B,IAAI,CAACK,KAAK,EAAE;MACV,OAAO;QACLC,GAAG,EAAE;UAAEC,CAAC,EAAE,CAAC;UAAEC,CAAC,EAAE,CAAC;UAAEC,KAAK,EAAE,CAAC;UAAEC,MAAM,EAAE;QAAE,CAAC;QACxCC,GAAG,EAAE;UAAEJ,CAAC,EAAE,CAAC;UAAEC,CAAC,EAAE,CAAC;UAAEC,KAAK,EAAE,CAAC;UAAEC,MAAM,EAAE;QAAE;MACzC,CAAC;IACH;IACA,MAAME,GAAG,IAAAR,eAAA,GAAG,IAAI,CAACJ,KAAK,CAACY,GAAG,cAAAR,eAAA,cAAAA,eAAA,GAAI,SAAS;IACvC,MAAMS,IAAI,GAAG,IAAAC,sBAAW,EAAC,IAAI,CAACC,IAAI,EAAE,IAAI,CAACf,KAAK,CAAC;IAC/C,MAAM;MAAEM,GAAG;MAAEK;IAAI,CAAC,GAAG,IAAAK,mBAAQ,EAC3BJ,GAAG,EACH;MACEL,CAAC,EAAE,CAAC;MACJC,CAAC,EAAE,CAAC;MACJC,KAAK,EAAEJ,KAAK,CAACI,KAAK,CAAC,CAAC;MACpBC,MAAM,EAAEL,KAAK,CAACK,MAAM,CAAC;IACvB,CAAC,EACDG,IACF,CAAC;IACD,OAAO;MAAEP,GAAG;MAAEK;IAAI,CAAC;EACrB;EAEAM,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,MAAM;MAAEd;IAAM,CAAC,GAAG,IAAI,CAACL,KAAK;IAC5B,IAAI,CAAC,IAAI,CAACoB,OAAO,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,sCAAsC,CAAC;IACzD;IACA,MAAM;MAAEf,GAAG;MAAEK;IAAI,CAAC,GAAG,IAAI,CAACS,OAAO;IACjC,IAAIf,KAAK,EAAE;MACTa,MAAM,CAACI,aAAa,CAACjB,KAAK,EAAEC,GAAG,EAAEK,GAAG,EAAEQ,KAAK,CAAC;IAC9C;EACF;AACF;AAACI,OAAA,CAAA3B,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"names":["_types","require","_datatypes","_DrawingNode","ImageNode","JsiDrawingNode","constructor","ctx","props","NodeType","Image","deriveProps","_this$props$fit","image","src","x","y","width","height","dst","fit","rect","processRect","Skia","fitRects","draw","canvas","paint","derived","Error","drawImageRect","exports"],"sources":["ImageNode.ts"],"sourcesContent":["import type { SkRect } from \"../../../skia/types\";\nimport type { DrawingContext, ImageProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { fitRects, processRect } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class ImageNode extends JsiDrawingNode<\n ImageProps,\n { src: SkRect; dst: SkRect }\n> {\n constructor(ctx: NodeContext, props: ImageProps) {\n super(ctx, NodeType.Image, props);\n }\n\n deriveProps() {\n const { image } = this.props;\n if (!image) {\n return {\n src: { x: 0, y: 0, width: 0, height: 0 },\n dst: { x: 0, y: 0, width: 0, height: 0 },\n };\n }\n const fit = this.props.fit ?? \"contain\";\n const rect = processRect(this.Skia, this.props);\n const { src, dst } = fitRects(\n fit,\n {\n x: 0,\n y: 0,\n width: image.width(),\n height: image.height(),\n },\n rect\n );\n return { src, dst };\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { image } = this.props;\n if (!this.derived) {\n throw new Error(\"ImageNode: src and dst are undefined\");\n }\n const { src, dst } = this.derived;\n if (image) {\n canvas.drawImageRect(image, src, dst, paint);\n }\n }\n}\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAGO,MAAMG,SAAS,SAASC,2BAAc,CAG3C;EACAC,WAAWA,CAACC,GAAgB,EAAEC,KAAiB,EAAE;IAC/C,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,KAAK,EAAEF,KAAK,CAAC;EACnC;EAEAG,WAAWA,CAAA,EAAG;IAAA,IAAAC,eAAA;IACZ,MAAM;MAAEC;IAAM,CAAC,GAAG,IAAI,CAACL,KAAK;IAC5B,IAAI,CAACK,KAAK,EAAE;MACV,OAAO;QACLC,GAAG,EAAE;UAAEC,CAAC,EAAE,CAAC;UAAEC,CAAC,EAAE,CAAC;UAAEC,KAAK,EAAE,CAAC;UAAEC,MAAM,EAAE;QAAE,CAAC;QACxCC,GAAG,EAAE;UAAEJ,CAAC,EAAE,CAAC;UAAEC,CAAC,EAAE,CAAC;UAAEC,KAAK,EAAE,CAAC;UAAEC,MAAM,EAAE;QAAE;MACzC,CAAC;IACH;IACA,MAAME,GAAG,IAAAR,eAAA,GAAG,IAAI,CAACJ,KAAK,CAACY,GAAG,cAAAR,eAAA,cAAAA,eAAA,GAAI,SAAS;IACvC,MAAMS,IAAI,GAAG,IAAAC,sBAAW,EAAC,IAAI,CAACC,IAAI,EAAE,IAAI,CAACf,KAAK,CAAC;IAC/C,MAAM;MAAEM,GAAG;MAAEK;IAAI,CAAC,GAAG,IAAAK,mBAAQ,EAC3BJ,GAAG,EACH;MACEL,CAAC,EAAE,CAAC;MACJC,CAAC,EAAE,CAAC;MACJC,KAAK,EAAEJ,KAAK,CAACI,KAAK,CAAC,CAAC;MACpBC,MAAM,EAAEL,KAAK,CAACK,MAAM,CAAC;IACvB,CAAC,EACDG,IACF,CAAC;IACD,OAAO;MAAEP,GAAG;MAAEK;IAAI,CAAC;EACrB;EAEAM,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,MAAM;MAAEd;IAAM,CAAC,GAAG,IAAI,CAACL,KAAK;IAC5B,IAAI,CAAC,IAAI,CAACoB,OAAO,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,sCAAsC,CAAC;IACzD;IACA,MAAM;MAAEf,GAAG;MAAEK;IAAI,CAAC,GAAG,IAAI,CAACS,OAAO;IACjC,IAAIf,KAAK,EAAE;MACTa,MAAM,CAACI,aAAa,CAACjB,KAAK,EAAEC,GAAG,EAAEK,GAAG,EAAEQ,KAAK,CAAC;IAC9C;EACF;AACF;AAACI,OAAA,CAAA3B,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_DrawingNode","ImageSVGNode","JsiDrawingNode","constructor","ctx","props","NodeType","ImageSVG","deriveProps","rect","x","y","width","height","draw","canvas","svg","derived","Error","save","translate","drawSvg","restore","exports"],"sources":["ImageSVG.ts"],"sourcesContent":["import type { DrawingContext, ImageSVGProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class ImageSVGNode extends JsiDrawingNode<\n ImageSVGProps,\n Pick<ImageSVGProps, \"x\" | \"y\" | \"width\" | \"height\">\n> {\n constructor(ctx: NodeContext, props: ImageSVGProps) {\n super(ctx, NodeType.ImageSVG, props);\n }\n\n deriveProps() {\n if (this.props.rect) {\n return this.props.rect;\n }\n const { x, y, width, height } = this.props;\n return { x, y, width, height };\n }\n\n draw({ canvas }: DrawingContext) {\n const { svg } = this.props;\n if (!this.derived) {\n throw new Error(\"ImageSVGNode: derived props unresolved\");\n }\n const { x, y, width, height } = this.derived;\n if (svg === null) {\n return;\n }\n canvas.save();\n if (x && y) {\n canvas.translate(x, y);\n }\n canvas.drawSvg(svg, width, height);\n canvas.restore();\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,YAAY,SAASC,2BAAc,CAG9C;EACAC,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,QAAQ,EAAEF,KAAK,CAAC;EACtC;EAEAG,WAAWA,CAAA,EAAG;IACZ,IAAI,IAAI,CAACH,KAAK,CAACI,IAAI,EAAE;MACnB,OAAO,IAAI,CAACJ,KAAK,CAACI,IAAI;IACxB;IACA,MAAM;MAAEC,CAAC;MAAEC,CAAC;MAAEC,KAAK;MAAEC;IAAO,CAAC,GAAG,IAAI,CAACR,KAAK;IAC1C,OAAO;MAAEK,CAAC;MAAEC,CAAC;MAAEC,KAAK;MAAEC;IAAO,CAAC;EAChC;EAEAC,IAAIA,CAAC;IAAEC;EAAuB,CAAC,EAAE;IAC/B,MAAM;MAAEC;IAAI,CAAC,GAAG,IAAI,CAACX,KAAK;IAC1B,IAAI,CAAC,IAAI,CAACY,OAAO,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,wCAAwC,CAAC;IAC3D;IACA,MAAM;MAAER,CAAC;MAAEC,CAAC;MAAEC,KAAK;MAAEC;IAAO,CAAC,GAAG,IAAI,CAACI,OAAO;IAC5C,IAAID,GAAG,KAAK,IAAI,EAAE;MAChB;IACF;IACAD,MAAM,CAACI,IAAI,CAAC,CAAC;IACb,IAAIT,CAAC,IAAIC,CAAC,EAAE;MACVI,MAAM,CAACK,SAAS,CAACV,CAAC,EAAEC,CAAC,CAAC;IACxB;IACAI,MAAM,CAACM,OAAO,CAACL,GAAG,EAAEJ,KAAK,EAAEC,MAAM,CAAC;IAClCE,MAAM,CAACO,OAAO,CAAC,CAAC;EAClB;AACF;AAACC,OAAA,CAAAtB,YAAA,GAAAA,YAAA"}
1
+ {"version":3,"names":["_types","require","_DrawingNode","ImageSVGNode","JsiDrawingNode","constructor","ctx","props","NodeType","ImageSVG","deriveProps","rect","x","y","width","height","draw","canvas","svg","derived","Error","save","translate","drawSvg","restore","exports"],"sources":["ImageSVG.ts"],"sourcesContent":["import type { DrawingContext, ImageSVGProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class ImageSVGNode extends JsiDrawingNode<\n ImageSVGProps,\n Pick<ImageSVGProps, \"x\" | \"y\" | \"width\" | \"height\">\n> {\n constructor(ctx: NodeContext, props: ImageSVGProps) {\n super(ctx, NodeType.ImageSVG, props);\n }\n\n deriveProps() {\n if (this.props.rect) {\n return this.props.rect;\n }\n const { x, y, width, height } = this.props;\n return { x, y, width, height };\n }\n\n draw({ canvas }: DrawingContext) {\n const { svg } = this.props;\n if (!this.derived) {\n throw new Error(\"ImageSVGNode: derived props unresolved\");\n }\n const { x, y, width, height } = this.derived;\n if (svg === null) {\n return;\n }\n canvas.save();\n if (x && y) {\n canvas.translate(x, y);\n }\n canvas.drawSvg(svg, width, height);\n canvas.restore();\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,YAAY,SAASC,2BAAc,CAG9C;EACAC,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,QAAQ,EAAEF,KAAK,CAAC;EACtC;EAEAG,WAAWA,CAAA,EAAG;IACZ,IAAI,IAAI,CAACH,KAAK,CAACI,IAAI,EAAE;MACnB,OAAO,IAAI,CAACJ,KAAK,CAACI,IAAI;IACxB;IACA,MAAM;MAAEC,CAAC;MAAEC,CAAC;MAAEC,KAAK;MAAEC;IAAO,CAAC,GAAG,IAAI,CAACR,KAAK;IAC1C,OAAO;MAAEK,CAAC;MAAEC,CAAC;MAAEC,KAAK;MAAEC;IAAO,CAAC;EAChC;EAEAC,IAAIA,CAAC;IAAEC;EAAuB,CAAC,EAAE;IAC/B,MAAM;MAAEC;IAAI,CAAC,GAAG,IAAI,CAACX,KAAK;IAC1B,IAAI,CAAC,IAAI,CAACY,OAAO,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,wCAAwC,CAAC;IAC3D;IACA,MAAM;MAAER,CAAC;MAAEC,CAAC;MAAEC,KAAK;MAAEC;IAAO,CAAC,GAAG,IAAI,CAACI,OAAO;IAC5C,IAAID,GAAG,KAAK,IAAI,EAAE;MAChB;IACF;IACAD,MAAM,CAACI,IAAI,CAAC,CAAC;IACb,IAAIT,CAAC,IAAIC,CAAC,EAAE;MACVI,MAAM,CAACK,SAAS,CAACV,CAAC,EAAEC,CAAC,CAAC;IACxB;IACAI,MAAM,CAACM,OAAO,CAACL,GAAG,EAAEJ,KAAK,EAAEC,MAAM,CAAC;IAClCE,MAAM,CAACO,OAAO,CAAC,CAAC;EAClB;AACF;AAACC,OAAA,CAAAtB,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_DrawingNode","LineNode","JsiDrawingNode","constructor","ctx","props","NodeType","Line","deriveProps","draw","canvas","paint","p1","p2","drawLine","x","y","exports"],"sources":["LineNode.ts"],"sourcesContent":["import type { DrawingContext, LineProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class LineNode extends JsiDrawingNode<LineProps, null> {\n constructor(ctx: NodeContext, props: LineProps) {\n super(ctx, NodeType.Line, props);\n }\n\n deriveProps() {\n return null;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { p1, p2 } = this.props;\n canvas.drawLine(p1.x, p1.y, p2.x, p2.y, paint);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,QAAQ,SAASC,2BAAc,CAAkB;EAC5DC,WAAWA,CAACC,GAAgB,EAAEC,KAAgB,EAAE;IAC9C,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,IAAI,EAAEF,KAAK,CAAC;EAClC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,MAAM;MAAEC,EAAE;MAAEC;IAAG,CAAC,GAAG,IAAI,CAACR,KAAK;IAC7BK,MAAM,CAACI,QAAQ,CAACF,EAAE,CAACG,CAAC,EAAEH,EAAE,CAACI,CAAC,EAAEH,EAAE,CAACE,CAAC,EAAEF,EAAE,CAACG,CAAC,EAAEL,KAAK,CAAC;EAChD;AACF;AAACM,OAAA,CAAAhB,QAAA,GAAAA,QAAA"}
1
+ {"version":3,"names":["_types","require","_DrawingNode","LineNode","JsiDrawingNode","constructor","ctx","props","NodeType","Line","deriveProps","draw","canvas","paint","p1","p2","drawLine","x","y","exports"],"sources":["LineNode.ts"],"sourcesContent":["import type { DrawingContext, LineProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class LineNode extends JsiDrawingNode<LineProps, null> {\n constructor(ctx: NodeContext, props: LineProps) {\n super(ctx, NodeType.Line, props);\n }\n\n deriveProps() {\n return null;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { p1, p2 } = this.props;\n canvas.drawLine(p1.x, p1.y, p2.x, p2.y, paint);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,QAAQ,SAASC,2BAAc,CAAkB;EAC5DC,WAAWA,CAACC,GAAgB,EAAEC,KAAgB,EAAE;IAC9C,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,IAAI,EAAEF,KAAK,CAAC;EAClC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,MAAM;MAAEC,EAAE;MAAEC;IAAG,CAAC,GAAG,IAAI,CAACR,KAAK;IAC7BK,MAAM,CAACI,QAAQ,CAACF,EAAE,CAACG,CAAC,EAAEH,EAAE,CAACI,CAAC,EAAEH,EAAE,CAACE,CAAC,EAAEF,EAAE,CAACG,CAAC,EAAEL,KAAK,CAAC;EAChD;AACF;AAACM,OAAA,CAAAhB,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_datatypes","_DrawingNode","OvalNode","JsiDrawingNode","constructor","ctx","props","NodeType","Oval","deriveProps","processRect","Skia","draw","canvas","paint","derived","undefined","Error","drawOval","exports"],"sources":["OvalNode.ts"],"sourcesContent":["import type { SkRect } from \"../../../skia/types\";\nimport type { DrawingContext, OvalProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { processRect } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class OvalNode extends JsiDrawingNode<OvalProps, SkRect> {\n constructor(ctx: NodeContext, props: OvalProps) {\n super(ctx, NodeType.Oval, props);\n }\n\n deriveProps() {\n return processRect(this.Skia, this.props);\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (this.derived === undefined) {\n throw new Error(\"OvalNode: rect is undefined\");\n }\n canvas.drawOval(this.derived, paint);\n }\n}\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAGO,MAAMG,QAAQ,SAASC,2BAAc,CAAoB;EAC9DC,WAAWA,CAACC,GAAgB,EAAEC,KAAgB,EAAE;IAC9C,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,IAAI,EAAEF,KAAK,CAAC;EAClC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAAC,sBAAW,EAAC,IAAI,CAACC,IAAI,EAAE,IAAI,CAACL,KAAK,CAAC;EAC3C;EAEAM,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,IAAI,IAAI,CAACC,OAAO,KAAKC,SAAS,EAAE;MAC9B,MAAM,IAAIC,KAAK,CAAC,6BAA6B,CAAC;IAChD;IACAJ,MAAM,CAACK,QAAQ,CAAC,IAAI,CAACH,OAAO,EAAED,KAAK,CAAC;EACtC;AACF;AAACK,OAAA,CAAAjB,QAAA,GAAAA,QAAA"}
1
+ {"version":3,"names":["_types","require","_datatypes","_DrawingNode","OvalNode","JsiDrawingNode","constructor","ctx","props","NodeType","Oval","deriveProps","processRect","Skia","draw","canvas","paint","derived","undefined","Error","drawOval","exports"],"sources":["OvalNode.ts"],"sourcesContent":["import type { SkRect } from \"../../../skia/types\";\nimport type { DrawingContext, OvalProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { processRect } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class OvalNode extends JsiDrawingNode<OvalProps, SkRect> {\n constructor(ctx: NodeContext, props: OvalProps) {\n super(ctx, NodeType.Oval, props);\n }\n\n deriveProps() {\n return processRect(this.Skia, this.props);\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (this.derived === undefined) {\n throw new Error(\"OvalNode: rect is undefined\");\n }\n canvas.drawOval(this.derived, paint);\n }\n}\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAGO,MAAMG,QAAQ,SAASC,2BAAc,CAAoB;EAC9DC,WAAWA,CAACC,GAAgB,EAAEC,KAAgB,EAAE;IAC9C,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,IAAI,EAAEF,KAAK,CAAC;EAClC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAAC,sBAAW,EAAC,IAAI,CAACC,IAAI,EAAE,IAAI,CAACL,KAAK,CAAC;EAC3C;EAEAM,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,IAAI,IAAI,CAACC,OAAO,KAAKC,SAAS,EAAE;MAC9B,MAAM,IAAIC,KAAK,CAAC,6BAA6B,CAAC;IAChD;IACAJ,MAAM,CAACK,QAAQ,CAAC,IAAI,CAACH,OAAO,EAAED,KAAK,CAAC;EACtC;AACF;AAACK,OAAA,CAAAjB,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_DrawingNode","ParagraphNode","JsiDrawingNode","constructor","ctx","props","NodeType","Paragraph","deriveProps","draw","canvas","paragraph","x","y","width","layout","paint","exports"],"sources":["ParagraphNode.ts"],"sourcesContent":["import type { DrawingContext, ParagraphProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class ParagraphNode extends JsiDrawingNode<ParagraphProps, null> {\n constructor(ctx: NodeContext, props: ParagraphProps) {\n super(ctx, NodeType.Paragraph, props);\n }\n\n deriveProps() {\n return null;\n }\n\n draw({ canvas }: DrawingContext) {\n const { paragraph, x, y, width } = this.props;\n if (paragraph) {\n paragraph.layout(width);\n paragraph.paint(canvas, x, y);\n }\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,aAAa,SAASC,2BAAc,CAAuB;EACtEC,WAAWA,CAACC,GAAgB,EAAEC,KAAqB,EAAE;IACnD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,SAAS,EAAEF,KAAK,CAAC;EACvC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC;EAAuB,CAAC,EAAE;IAC/B,MAAM;MAAEC,SAAS;MAAEC,CAAC;MAAEC,CAAC;MAAEC;IAAM,CAAC,GAAG,IAAI,CAACT,KAAK;IAC7C,IAAIM,SAAS,EAAE;MACbA,SAAS,CAACI,MAAM,CAACD,KAAK,CAAC;MACvBH,SAAS,CAACK,KAAK,CAACN,MAAM,EAAEE,CAAC,EAAEC,CAAC,CAAC;IAC/B;EACF;AACF;AAACI,OAAA,CAAAhB,aAAA,GAAAA,aAAA"}
1
+ {"version":3,"names":["_types","require","_DrawingNode","ParagraphNode","JsiDrawingNode","constructor","ctx","props","NodeType","Paragraph","deriveProps","draw","canvas","paragraph","x","y","width","layout","paint","exports"],"sources":["ParagraphNode.ts"],"sourcesContent":["import type { DrawingContext, ParagraphProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class ParagraphNode extends JsiDrawingNode<ParagraphProps, null> {\n constructor(ctx: NodeContext, props: ParagraphProps) {\n super(ctx, NodeType.Paragraph, props);\n }\n\n deriveProps() {\n return null;\n }\n\n draw({ canvas }: DrawingContext) {\n const { paragraph, x, y, width } = this.props;\n if (paragraph) {\n paragraph.layout(width);\n paragraph.paint(canvas, x, y);\n }\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,aAAa,SAASC,2BAAc,CAAuB;EACtEC,WAAWA,CAACC,GAAgB,EAAEC,KAAqB,EAAE;IACnD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,SAAS,EAAEF,KAAK,CAAC;EACvC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC;EAAuB,CAAC,EAAE;IAC/B,MAAM;MAAEC,SAAS;MAAEC,CAAC;MAAEC,CAAC;MAAEC;IAAM,CAAC,GAAG,IAAI,CAACT,KAAK;IAC7C,IAAIM,SAAS,EAAE;MACbA,SAAS,CAACI,MAAM,CAACD,KAAK,CAAC;MACvBH,SAAS,CAACK,KAAK,CAACN,MAAM,EAAEE,CAAC,EAAEC,CAAC,CAAC;IAC/B;EACF;AACF;AAACI,OAAA,CAAAhB,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_types2","_datatypes","_DrawingNode","PatchNode","JsiDrawingNode","constructor","ctx","props","NodeType","Patch","deriveProps","colors","blendMode","patch","defaultBlendMode","BlendMode","DstOver","SrcOver","mode","enumKey","points","pos","c2","c1","map","c","Skia","Color","undefined","draw","canvas","paint","derived","Error","texture","drawPatch","exports"],"sources":["PatchNode.ts"],"sourcesContent":["import type { SkColor, SkPoint } from \"../../../skia/types\";\nimport { BlendMode } from \"../../../skia/types\";\nimport type { DrawingContext, PatchProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { enumKey } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class PatchNode extends JsiDrawingNode<\n PatchProps,\n { points: SkPoint[]; colors: SkColor[] | undefined; mode: BlendMode }\n> {\n constructor(ctx: NodeContext, props: PatchProps) {\n super(ctx, NodeType.Patch, props);\n }\n\n deriveProps() {\n const { colors, blendMode, patch } = this.props;\n const defaultBlendMode = colors ? BlendMode.DstOver : BlendMode.SrcOver;\n const mode = blendMode ? BlendMode[enumKey(blendMode)] : defaultBlendMode;\n // Patch requires a path with the following constraints:\n // M tl\n // C c1 c2 br\n // C c1 c2 bl\n // C c1 c2 tl (the redundant point in the last command is removed)\n return {\n mode,\n points: [\n patch[0].pos,\n patch[0].c2,\n patch[1].c1,\n patch[1].pos,\n patch[1].c2,\n patch[2].c1,\n patch[2].pos,\n patch[2].c2,\n patch[3].c1,\n patch[3].pos,\n patch[3].c2,\n patch[0].c1,\n ],\n colors: colors ? colors.map((c) => this.Skia.Color(c)) : undefined,\n };\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (!this.derived) {\n throw new Error(\"PatchNode: derived props not set\");\n }\n const { texture } = this.props;\n const { colors, points, mode } = this.derived;\n canvas.drawPatch(points, colors, texture, mode, paint);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAGO,MAAMI,SAAS,SAASC,2BAAc,CAG3C;EACAC,WAAWA,CAACC,GAAgB,EAAEC,KAAiB,EAAE;IAC/C,KAAK,CAACD,GAAG,EAAEE,gBAAQ,CAACC,KAAK,EAAEF,KAAK,CAAC;EACnC;EAEAG,WAAWA,CAAA,EAAG;IACZ,MAAM;MAAEC,MAAM;MAAEC,SAAS;MAAEC;IAAM,CAAC,GAAG,IAAI,CAACN,KAAK;IAC/C,MAAMO,gBAAgB,GAAGH,MAAM,GAAGI,gBAAS,CAACC,OAAO,GAAGD,gBAAS,CAACE,OAAO;IACvE,MAAMC,IAAI,GAAGN,SAAS,GAAGG,gBAAS,CAAC,IAAAI,kBAAO,EAACP,SAAS,CAAC,CAAC,GAAGE,gBAAgB;IACzE;IACA;IACA;IACA;IACA;IACA,OAAO;MACLI,IAAI;MACJE,MAAM,EAAE,CACNP,KAAK,CAAC,CAAC,CAAC,CAACQ,GAAG,EACZR,KAAK,CAAC,CAAC,CAAC,CAACS,EAAE,EACXT,KAAK,CAAC,CAAC,CAAC,CAACU,EAAE,EACXV,KAAK,CAAC,CAAC,CAAC,CAACQ,GAAG,EACZR,KAAK,CAAC,CAAC,CAAC,CAACS,EAAE,EACXT,KAAK,CAAC,CAAC,CAAC,CAACU,EAAE,EACXV,KAAK,CAAC,CAAC,CAAC,CAACQ,GAAG,EACZR,KAAK,CAAC,CAAC,CAAC,CAACS,EAAE,EACXT,KAAK,CAAC,CAAC,CAAC,CAACU,EAAE,EACXV,KAAK,CAAC,CAAC,CAAC,CAACQ,GAAG,EACZR,KAAK,CAAC,CAAC,CAAC,CAACS,EAAE,EACXT,KAAK,CAAC,CAAC,CAAC,CAACU,EAAE,CACZ;MACDZ,MAAM,EAAEA,MAAM,GAAGA,MAAM,CAACa,GAAG,CAAEC,CAAC,IAAK,IAAI,CAACC,IAAI,CAACC,KAAK,CAACF,CAAC,CAAC,CAAC,GAAGG;IAC3D,CAAC;EACH;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,IAAI,CAAC,IAAI,CAACC,OAAO,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,kCAAkC,CAAC;IACrD;IACA,MAAM;MAAEC;IAAQ,CAAC,GAAG,IAAI,CAAC3B,KAAK;IAC9B,MAAM;MAAEI,MAAM;MAAES,MAAM;MAAEF;IAAK,CAAC,GAAG,IAAI,CAACc,OAAO;IAC7CF,MAAM,CAACK,SAAS,CAACf,MAAM,EAAET,MAAM,EAAEuB,OAAO,EAAEhB,IAAI,EAAEa,KAAK,CAAC;EACxD;AACF;AAACK,OAAA,CAAAjC,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"names":["_types","require","_types2","_datatypes","_DrawingNode","PatchNode","JsiDrawingNode","constructor","ctx","props","NodeType","Patch","deriveProps","colors","blendMode","patch","defaultBlendMode","BlendMode","DstOver","SrcOver","mode","enumKey","points","pos","c2","c1","map","c","Skia","Color","undefined","draw","canvas","paint","derived","Error","texture","drawPatch","exports"],"sources":["PatchNode.ts"],"sourcesContent":["import type { SkColor, SkPoint } from \"../../../skia/types\";\nimport { BlendMode } from \"../../../skia/types\";\nimport type { DrawingContext, PatchProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { enumKey } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class PatchNode extends JsiDrawingNode<\n PatchProps,\n { points: SkPoint[]; colors: SkColor[] | undefined; mode: BlendMode }\n> {\n constructor(ctx: NodeContext, props: PatchProps) {\n super(ctx, NodeType.Patch, props);\n }\n\n deriveProps() {\n const { colors, blendMode, patch } = this.props;\n const defaultBlendMode = colors ? BlendMode.DstOver : BlendMode.SrcOver;\n const mode = blendMode ? BlendMode[enumKey(blendMode)] : defaultBlendMode;\n // Patch requires a path with the following constraints:\n // M tl\n // C c1 c2 br\n // C c1 c2 bl\n // C c1 c2 tl (the redundant point in the last command is removed)\n return {\n mode,\n points: [\n patch[0].pos,\n patch[0].c2,\n patch[1].c1,\n patch[1].pos,\n patch[1].c2,\n patch[2].c1,\n patch[2].pos,\n patch[2].c2,\n patch[3].c1,\n patch[3].pos,\n patch[3].c2,\n patch[0].c1,\n ],\n colors: colors ? colors.map((c) => this.Skia.Color(c)) : undefined,\n };\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (!this.derived) {\n throw new Error(\"PatchNode: derived props not set\");\n }\n const { texture } = this.props;\n const { colors, points, mode } = this.derived;\n canvas.drawPatch(points, colors, texture, mode, paint);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAGO,MAAMI,SAAS,SAASC,2BAAc,CAG3C;EACAC,WAAWA,CAACC,GAAgB,EAAEC,KAAiB,EAAE;IAC/C,KAAK,CAACD,GAAG,EAAEE,gBAAQ,CAACC,KAAK,EAAEF,KAAK,CAAC;EACnC;EAEAG,WAAWA,CAAA,EAAG;IACZ,MAAM;MAAEC,MAAM;MAAEC,SAAS;MAAEC;IAAM,CAAC,GAA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AACc,OAAO;IAC7CF,MAAM,CAACK,SAAS,CAACf,MAAM,EAAET,MAAM,EAAEuB,OAAO,EAAEhB,IAAI,EAAEa,KAAK,CAAC;EACxD;AACF;AAACK,OAAA,CAAAjC,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_math","require","_types","_types2","_datatypes","_DrawingNode","PathNode","JsiDrawingNode","constructor","ctx","props","NodeType","Path","deriveProps","start","trimStart","end","trimEnd","fillType","stroke","pathProps","saturate","hasStartOffset","hasEndOffset","hasStrokeOptions","undefined","hasFillType","willMutatePath","pristinePath","processPath","Skia","path","copy","setFillType","FillType","enumKey","trim","draw","canvas","paint","derived","Error","drawPath","exports"],"sources":["PathNode.ts"],"sourcesContent":["import { saturate } from \"../../../renderer/processors/math\";\nimport { FillType } from \"../../../skia/types\";\nimport type { SkPath } from \"../../../skia/types\";\nimport type { DrawingContext, PathProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { enumKey, processPath } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class PathNode extends JsiDrawingNode<PathProps, SkPath> {\n constructor(ctx: NodeContext, props: PathProps) {\n super(ctx, NodeType.Path, props);\n }\n\n protected deriveProps() {\n const {\n start: trimStart,\n end: trimEnd,\n fillType,\n stroke,\n ...pathProps\n } = this.props;\n const start = saturate(trimStart);\n const end = saturate(trimEnd);\n const hasStartOffset = start !== 0;\n const hasEndOffset = end !== 1;\n const hasStrokeOptions = stroke !== undefined;\n const hasFillType = !!fillType;\n const willMutatePath =\n hasStartOffset || hasEndOffset || hasStrokeOptions || hasFillType;\n const pristinePath = processPath(this.Skia, pathProps.path);\n const path = willMutatePath ? pristinePath.copy() : pristinePath;\n if (hasFillType) {\n path.setFillType(FillType[enumKey(fillType)]);\n }\n if (hasStrokeOptions) {\n path.stroke(stroke);\n }\n if (hasStartOffset || hasEndOffset) {\n path.trim(start, end, false);\n }\n return path;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (!this.derived) {\n throw new Error(\"Path not initialized\");\n }\n canvas.drawPath(this.derived, paint);\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAGO,MAAMK,QAAQ,SAASC,2BAAc,CAAoB;EAC9DC,WAAWA,CAACC,GAAgB,EAAEC,KAAgB,EAAE;IAC9C,KAAK,CAACD,GAAG,EAAEE,gBAAQ,CAACC,IAAI,EAAEF,KAAK,CAAC;EAClC;EAEUG,WAAWA,CAAA,EAAG;IACtB,MAAM;MACJC,KAAK,EAAEC,SAAS;MAChBC,GAAG,EAAEC,OAAO;MACZC,QAAQ;MACRC,MAAM;MACN,GAAGC;IACL,CAAC,GAAG,IAAI,CAACV,KAAK;IACd,MAAMI,KAAK,GAAG,IAAAO,cAAQ,EAACN,SAAS,CAAC;IACjC,MAAMC,GAAG,GAAG,IAAAK,cAAQ,EAACJ,OAAO,CAAC;IAC7B,MAAMK,cAAc,GAAGR,KAAK,KAAK,CAAC;IAClC,MAAMS,YAAY,GAAGP,GAAG,KAAK,CAAC;IAC9B,MAAMQ,gBAAgB,GAAGL,MAAM,KAAKM,SAAS;IAC7C,MAAMC,WAAW,GAAG,CAAC,CAACR,QAAQ;IAC9B,MAAMS,cAAc,GAClBL,cAAc,IAAIC,YAAY,IAAIC,gBAAgB,IAAIE,WAAW;IACnE,MAAME,YAAY,GAAG,IAAAC,sBAAW,EAAC,IAAI,CAACC,IAAI,EAAEV,SAAS,CAACW,IAAI,CAAC;IAC3D,MAAMA,IAAI,GAAGJ,cAAc,GAAGC,YAAY,CAACI,IAAI,CAAC,CAAC,GAAGJ,YAAY;IAChE,IAAIF,WAAW,EAAE;MACfK,IAAI,CAACE,WAAW,CAACC,eAAQ,CAAC,IAAAC,kBAAO,EAACjB,QAAQ,CAAC,CAAC,CAAC;IAC/C;IACA,IAAIM,gBAAgB,EAAE;MACpBO,IAAI,CAACZ,MAAM,CAACA,MAAM,CAAC;IACrB;IACA,IAAIG,cAAc,IAAIC,YAAY,EAAE;MAClCQ,IAAI,CAACK,IAAI,CAACtB,KAAK,EAAEE,GAAG,EAAE,KAAK,CAAC;IAC9B;IACA,OAAOe,IAAI;EACb;EAEAM,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,IAAI,CAAC,IAAI,CAACC,OAAO,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,sBAAsB,CAAC;IACzC;IACAH,MAAM,CAACI,QAAQ,CAAC,IAAI,CAACF,OAAO,EAAED,KAAK,CAAC;EACtC;AACF;AAACI,OAAA,CAAArC,QAAA,GAAAA,QAAA"}
1
+ {"version":3,"names":["_math","require","_types","_types2","_datatypes","_DrawingNode","PathNode","JsiDrawingNode","constructor","ctx","props","NodeType","Path","deriveProps","start","trimStart","end","trimEnd","fillType","stroke","pathProps","saturate","hasStartOffset","hasEndOffset","hasStrokeOptions","undefined","hasFillType","willMutatePath","pristinePath","processPath","Skia","path","copy","setFillType","FillType","enumKey","trim","draw","canvas","paint","derived","Error","drawPath","exports"],"sources":["PathNode.ts"],"sourcesContent":["import { saturate } from \"../../../renderer/processors/math\";\nimport { FillType } from \"../../../skia/types\";\nimport type { SkPath } from \"../../../skia/types\";\nimport type { DrawingContext, PathProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { enumKey, processPath } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class PathNode extends JsiDrawingNode<PathProps, SkPath> {\n constructor(ctx: NodeContext, props: PathProps) {\n super(ctx, NodeType.Path, props);\n }\n\n protected deriveProps() {\n const {\n start: trimStart,\n end: trimEnd,\n fillType,\n stroke,\n ...pathProps\n } = this.props;\n const start = saturate(trimStart);\n const end = saturate(trimEnd);\n const hasStartOffset = start !== 0;\n const hasEndOffset = end !== 1;\n const hasStrokeOptions = stroke !== undefined;\n const hasFillType = !!fillType;\n const willMutatePath =\n hasStartOffset || hasEndOffset || hasStrokeOptions || hasFillType;\n const pristinePath = processPath(this.Skia, pathProps.path);\n const path = willMutatePath ? pristinePath.copy() : pristinePath;\n if (hasFillType) {\n path.setFillType(FillType[enumKey(fillType)]);\n }\n if (hasStrokeOptions) {\n path.stroke(stroke);\n }\n if (hasStartOffset || hasEndOffset) {\n path.trim(start, end, false);\n }\n return path;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (!this.derived) {\n throw new Error(\"Path not initialized\");\n }\n canvas.drawPath(this.derived, paint);\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAGO,MAAMK,QAAQ,SAASC,2BAAc,CAAoB;EAC9DC,WAAWA,CAACC,GAAgB,EAAEC,KAAgB,EAAE;IAC9C,KAAK,CAACD,GAAG,EAAEE,gBAAQ,CAACC,IAAI,EAAEF,KAAK,CAAC;EAClC;EAEUG,WAAWA,CAAA,EAAG;IACtB,MAAM;MACJC,KAAK,EAAEC,SAAS;MAChBC,GAAG,EAAEC,OAAO;MACZC,QAAQ;MACRC,MAAM;MACN,GAAGC;IACL,CAAC,GAAG,IAAI,CAACV,KAAK;IACd,MAAMI,KAAK,GAAG,IAAAO,cAAQ,EAACN,SAAS,CAAC;IACjC,MAAMC,GAAG,GAAG,IAAAK,cAAQ,EAACJ,OAAO,CAAC;IAC7B,MAAMK,cAAc,GAAGR,KAAK,KAAK,CAAC;IAClC,MAAMS,YAAY,GAAGP,GAAG,KAAK,CAAC;IAC9B,MAAMQ,gBAAgB,GAAGL,MAAM,KAAKM,SAAS;IAC7C,MAAMC,WAAW,GAAG,CAAC,CAACR,QAAQ;IAC9B,MAAMS,cAAc,GAClBL,cAAc,IAAIC,YAAY,IAAIC,gBAAgB,IAAIE,WAAW;IACnE,MAAME,YAAY,GAAG,IAAAC,sBAAW,EAAC,IAAI,CAACC,IAAI,EAAEV,SAAS,CAACW,IAAI,CAAC;IAC3D,MAAMA,IAAI,GAAGJ,cAAc,GAAGC,YAAY,CAACI,IAAI,CAAC,CAAC,GAAGJ,YAAY;IAChE,IAAIF,WAAW,EAAE;MACfK,IAAI,CAACE,WAAW,CAACC,eAAQ,CAAC,IAAAC,kBAAO,EAACjB,QAAQ,CAAC,CAAC,CAAC;IAC/C;IACA,IAAIM,gBAAgB,EAAE;MACpBO,IAAI,CAACZ,MAAM,CAACA,MAAM,CAAC;IACrB;IACA,IAAIG,cAAc,IAAIC,YAAY,EAAE;MAClCQ,IAAI,CAACK,IAAI,CAACtB,KAAK,EAAEE,GAAG,EAAE,KAAK,CAAC;IAC9B;IACA,OAAOe,IAAI;EACb;EAEAM,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,IAAI,CAAC,IAAI,CAACC,OAAO,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,sBAAsB,CAAC;IACzC;IACAH,MAAM,CAACI,QAAQ,CAAC,IAAI,CAACF,OAAO,EAAED,KAAK,CAAC;EACtC;AACF;AAACI,OAAA,CAAArC,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","_DrawingNode","PictureNode","JsiDrawingNode","constructor","ctx","props","NodeType","Picture","deriveProps","draw","canvas","picture","drawPicture","exports"],"sources":["PictureNode.ts"],"sourcesContent":["import type { DrawingContext, PictureProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class PictureNode extends JsiDrawingNode<PictureProps, null> {\n constructor(ctx: NodeContext, props: PictureProps) {\n super(ctx, NodeType.Picture, props);\n }\n\n deriveProps() {\n return null;\n }\n\n draw({ canvas }: DrawingContext) {\n const { picture } = this.props;\n canvas.drawPicture(picture);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,WAAW,SAASC,2BAAc,CAAqB;EAClEC,WAAWA,CAACC,GAAgB,EAAEC,KAAmB,EAAE;IACjD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,OAAO,EAAEF,KAAK,CAAC;EACrC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC;EAAuB,CAAC,EAAE;IAC/B,MAAM;MAAEC;IAAQ,CAAC,GAAG,IAAI,CAACN,KAAK;IAC9BK,MAAM,CAACE,WAAW,CAACD,OAAO,CAAC;EAC7B;AACF;AAACE,OAAA,CAAAZ,WAAA,GAAAA,WAAA"}
1
+ {"version":3,"names":["_types","require","_DrawingNode","PictureNode","JsiDrawingNode","constructor","ctx","props","NodeType","Picture","deriveProps","draw","canvas","picture","drawPicture","exports"],"sources":["PictureNode.ts"],"sourcesContent":["import type { DrawingContext, PictureProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class PictureNode extends JsiDrawingNode<PictureProps, null> {\n constructor(ctx: NodeContext, props: PictureProps) {\n super(ctx, NodeType.Picture, props);\n }\n\n deriveProps() {\n return null;\n }\n\n draw({ canvas }: DrawingContext) {\n const { picture } = this.props;\n canvas.drawPicture(picture);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,WAAW,SAASC,2BAAc,CAAqB;EAClEC,WAAWA,CAACC,GAAgB,EAAEC,KAAmB,EAAE;IACjD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,OAAO,EAAEF,KAAK,CAAC;EACrC;EAEAG,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC;EAAuB,CAAC,EAAE;IAC/B,MAAM;MAAEC;IAAQ,CAAC,GAAG,IAAI,CAACN,KAAK;IAC9BK,MAAM,CAACE,WAAW,CAACD,OAAO,CAAC;EAC7B;AACF;AAACE,OAAA,CAAAZ,WAAA,GAAAA,WAAA","ignoreList":[]}