@shopify/react-native-skia 0.1.146 → 0.1.148

Sign up to get free protection for your applications and to get access to all the features.
Files changed (841) hide show
  1. package/cpp/api/JsiSkMatrix.h +9 -0
  2. package/cpp/api/JsiSkPath.h +2 -2
  3. package/lib/commonjs/dom/nodes/DrawingNode.js +84 -0
  4. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -0
  5. package/lib/commonjs/dom/nodes/GroupNode.js +28 -0
  6. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -0
  7. package/lib/commonjs/dom/nodes/JsiSkDOM.js +256 -0
  8. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -0
  9. package/lib/commonjs/dom/nodes/Node.js +158 -0
  10. package/lib/commonjs/dom/nodes/Node.js.map +1 -0
  11. package/lib/commonjs/dom/nodes/PaintContext.js +6 -0
  12. package/lib/commonjs/dom/nodes/PaintContext.js.map +1 -0
  13. package/lib/commonjs/dom/nodes/PaintNode.js +96 -0
  14. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -0
  15. package/lib/commonjs/dom/nodes/RenderNode.js +346 -0
  16. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -0
  17. package/lib/commonjs/{renderer/processors/Circles.js → dom/nodes/datatypes/Circle.js} +4 -2
  18. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -0
  19. package/lib/commonjs/{renderer/processors → dom/nodes/datatypes}/Color.js +0 -0
  20. package/lib/commonjs/{renderer/processors → dom/nodes/datatypes}/Color.js.map +1 -1
  21. package/lib/commonjs/dom/nodes/datatypes/Enum.js +11 -0
  22. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -0
  23. package/lib/commonjs/{renderer/components/image/BoxFit.js → dom/nodes/datatypes/Fitting.js} +2 -2
  24. package/lib/commonjs/{renderer/components/image/BoxFit.js.map → dom/nodes/datatypes/Fitting.js.map} +1 -1
  25. package/lib/commonjs/dom/nodes/datatypes/Gradient.js +65 -0
  26. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -0
  27. package/lib/commonjs/{renderer/processors/Paths.js → dom/nodes/datatypes/Path.js} +2 -2
  28. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -0
  29. package/lib/commonjs/{renderer/processors → dom/nodes/datatypes}/Radius.js +0 -0
  30. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -0
  31. package/lib/commonjs/{renderer/processors/Rects.js → dom/nodes/datatypes/Rect.js} +1 -1
  32. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -0
  33. package/lib/commonjs/dom/nodes/datatypes/Transform.js +42 -0
  34. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -0
  35. package/lib/commonjs/dom/nodes/datatypes/index.js +123 -0
  36. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -0
  37. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js +38 -0
  38. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -0
  39. package/lib/commonjs/dom/nodes/drawings/Box.js +105 -0
  40. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -0
  41. package/lib/commonjs/dom/nodes/drawings/CircleNode.js +43 -0
  42. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -0
  43. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js +28 -0
  44. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js.map +1 -0
  45. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js +36 -0
  46. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -0
  47. package/lib/commonjs/dom/nodes/drawings/FillNode.js +33 -0
  48. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -0
  49. package/lib/commonjs/dom/nodes/drawings/ImageNode.js +63 -0
  50. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -0
  51. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js +45 -0
  52. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -0
  53. package/lib/commonjs/dom/nodes/drawings/LineNode.js +36 -0
  54. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -0
  55. package/lib/commonjs/dom/nodes/drawings/OvalNode.js +39 -0
  56. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -0
  57. package/lib/commonjs/dom/nodes/drawings/PatchNode.js +69 -0
  58. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -0
  59. package/lib/commonjs/dom/nodes/drawings/PathNode.js +68 -0
  60. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -0
  61. package/lib/commonjs/dom/nodes/drawings/PictureNode.js +34 -0
  62. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -0
  63. package/lib/commonjs/dom/nodes/drawings/PointsNode.js +40 -0
  64. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -0
  65. package/lib/commonjs/dom/nodes/drawings/RRectNode.js +43 -0
  66. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -0
  67. package/lib/commonjs/dom/nodes/drawings/RectNode.js +39 -0
  68. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -0
  69. package/lib/commonjs/dom/nodes/drawings/Text.js +185 -0
  70. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -0
  71. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js +55 -0
  72. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -0
  73. package/lib/commonjs/dom/nodes/drawings/index.js +240 -0
  74. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -0
  75. package/lib/commonjs/dom/nodes/index.js +45 -0
  76. package/lib/commonjs/dom/nodes/index.js.map +1 -0
  77. package/lib/commonjs/dom/nodes/paint/BlendNode.js +82 -0
  78. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -0
  79. package/lib/commonjs/dom/nodes/paint/ColorFilters.js +152 -0
  80. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -0
  81. package/lib/commonjs/dom/nodes/paint/ImageFilters.js +225 -0
  82. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -0
  83. package/lib/commonjs/dom/nodes/paint/MaskFilters.js +33 -0
  84. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -0
  85. package/lib/commonjs/dom/nodes/paint/PathEffects.js +223 -0
  86. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -0
  87. package/lib/commonjs/dom/nodes/paint/Shaders.js +242 -0
  88. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -0
  89. package/lib/commonjs/dom/nodes/paint/index.js +84 -0
  90. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -0
  91. package/lib/commonjs/dom/types/ColorFilters.js +6 -0
  92. package/lib/commonjs/dom/types/ColorFilters.js.map +1 -0
  93. package/lib/commonjs/dom/types/Common.js +6 -0
  94. package/lib/commonjs/dom/types/Common.js.map +1 -0
  95. package/lib/commonjs/dom/types/DrawingContext.js +6 -0
  96. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -0
  97. package/lib/commonjs/dom/types/Drawings.js +6 -0
  98. package/lib/commonjs/dom/types/Drawings.js.map +1 -0
  99. package/lib/commonjs/dom/types/ImageFilters.js +6 -0
  100. package/lib/commonjs/dom/types/ImageFilters.js.map +1 -0
  101. package/lib/commonjs/dom/types/MaskFilters.js +6 -0
  102. package/lib/commonjs/dom/types/MaskFilters.js.map +1 -0
  103. package/lib/commonjs/dom/types/Node.js +6 -0
  104. package/lib/commonjs/dom/types/Node.js.map +1 -0
  105. package/lib/commonjs/dom/types/NodeType.js +80 -0
  106. package/lib/commonjs/dom/types/NodeType.js.map +1 -0
  107. package/lib/commonjs/dom/types/PathEffects.js +6 -0
  108. package/lib/commonjs/dom/types/PathEffects.js.map +1 -0
  109. package/lib/commonjs/dom/types/Shaders.js +6 -0
  110. package/lib/commonjs/dom/types/Shaders.js.map +1 -0
  111. package/lib/commonjs/dom/types/SkDOM.js +6 -0
  112. package/lib/commonjs/dom/types/SkDOM.js.map +1 -0
  113. package/lib/commonjs/dom/types/index.js +149 -0
  114. package/lib/commonjs/dom/types/index.js.map +1 -0
  115. package/lib/commonjs/index.js +26 -0
  116. package/lib/commonjs/index.js.map +1 -1
  117. package/lib/commonjs/renderer/Canvas.js +7 -3
  118. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  119. package/lib/commonjs/renderer/Container.js +39 -0
  120. package/lib/commonjs/renderer/Container.js.map +1 -0
  121. package/lib/commonjs/renderer/DependencyManager.js +17 -5
  122. package/lib/commonjs/renderer/DependencyManager.js.map +1 -1
  123. package/lib/commonjs/renderer/HostComponents.js +196 -0
  124. package/lib/commonjs/renderer/HostComponents.js.map +1 -0
  125. package/lib/commonjs/renderer/HostConfig.js +47 -125
  126. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  127. package/lib/commonjs/renderer/components/Blend.js +1 -46
  128. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  129. package/lib/commonjs/renderer/components/Drawing.js +1 -15
  130. package/lib/commonjs/renderer/components/Drawing.js.map +1 -1
  131. package/lib/commonjs/renderer/components/Group.js +1 -69
  132. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  133. package/lib/commonjs/renderer/components/Paint.js +2 -14
  134. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  135. package/lib/commonjs/renderer/components/Picture.js +1 -19
  136. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  137. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  138. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +2 -32
  139. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  140. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +1 -25
  141. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  142. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +1 -23
  143. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  144. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +1 -17
  145. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  146. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +1 -17
  147. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  148. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +1 -20
  149. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  150. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +1 -17
  151. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  152. package/lib/commonjs/renderer/components/image/Image.js +1 -35
  153. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  154. package/lib/commonjs/renderer/components/image/ImageSVG.js +1 -30
  155. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  156. package/lib/commonjs/renderer/components/image/ImageShader.js +1 -61
  157. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  158. package/lib/commonjs/renderer/components/image/index.js +0 -13
  159. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  160. package/lib/commonjs/renderer/components/imageFilters/Blur.js +1 -27
  161. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  162. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +1 -38
  163. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  164. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +1 -25
  165. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  166. package/lib/commonjs/renderer/components/imageFilters/Offset.js +1 -20
  167. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  168. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +1 -28
  169. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  170. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +1 -39
  171. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  172. package/lib/commonjs/renderer/components/index.js +0 -13
  173. package/lib/commonjs/renderer/components/index.js.map +1 -1
  174. package/lib/commonjs/renderer/components/maskFilters/Blur.js +1 -23
  175. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  176. package/lib/commonjs/renderer/components/pathEffects/Corner.js +1 -30
  177. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  178. package/lib/commonjs/renderer/components/pathEffects/Dash.js +1 -27
  179. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  180. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +1 -28
  181. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  182. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +1 -31
  183. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  184. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +1 -37
  185. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  186. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +1 -33
  187. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  188. package/lib/commonjs/renderer/components/pathEffects/Sum.js +1 -17
  189. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  190. package/lib/commonjs/renderer/components/shaders/Color.js +1 -19
  191. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  192. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +1 -22
  193. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  194. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +1 -28
  195. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  196. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +1 -28
  197. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  198. package/lib/commonjs/renderer/components/shaders/Shader.js +1 -23
  199. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  200. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +1 -29
  201. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  202. package/lib/commonjs/renderer/components/shaders/Turbulence.js +1 -22
  203. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  204. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +1 -30
  205. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  206. package/lib/commonjs/renderer/components/shapes/Box.js +2 -102
  207. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  208. package/lib/commonjs/renderer/components/shapes/Circle.js +1 -22
  209. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  210. package/lib/commonjs/renderer/components/shapes/DiffRect.js +1 -19
  211. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  212. package/lib/commonjs/renderer/components/shapes/Fill.js +1 -15
  213. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  214. package/lib/commonjs/renderer/components/shapes/FitBox.js +3 -3
  215. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  216. package/lib/commonjs/renderer/components/shapes/Line.js +1 -19
  217. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  218. package/lib/commonjs/renderer/components/shapes/Oval.js +1 -19
  219. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  220. package/lib/commonjs/renderer/components/shapes/Patch.js +1 -37
  221. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  222. package/lib/commonjs/renderer/components/shapes/Path.js +1 -47
  223. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  224. package/lib/commonjs/renderer/components/shapes/Points.js +1 -26
  225. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  226. package/lib/commonjs/renderer/components/shapes/Rect.js +1 -19
  227. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  228. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +1 -19
  229. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  230. package/lib/commonjs/renderer/components/shapes/Vertices.js +1 -36
  231. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  232. package/lib/commonjs/renderer/components/text/Glyphs.js +1 -39
  233. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  234. package/lib/commonjs/renderer/components/text/Text.js +1 -24
  235. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  236. package/lib/commonjs/renderer/components/text/TextBlob.js +1 -20
  237. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  238. package/lib/commonjs/renderer/components/text/TextPath.js +1 -71
  239. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  240. package/lib/commonjs/renderer/index.js +0 -13
  241. package/lib/commonjs/renderer/index.js.map +1 -1
  242. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  243. package/lib/commonjs/renderer/processors/index.js +0 -117
  244. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  245. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  246. package/lib/commonjs/skia/web/JsiSkMatrix.js +4 -0
  247. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  248. package/lib/commonjs/web/WithSkiaWeb.js +3 -1
  249. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  250. package/lib/module/dom/nodes/DrawingNode.js +72 -0
  251. package/lib/module/dom/nodes/DrawingNode.js.map +1 -0
  252. package/lib/module/dom/nodes/GroupNode.js +17 -0
  253. package/lib/module/dom/nodes/GroupNode.js.map +1 -0
  254. package/lib/module/dom/nodes/JsiSkDOM.js +240 -0
  255. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -0
  256. package/lib/module/dom/nodes/Node.js +145 -0
  257. package/lib/module/dom/nodes/Node.js.map +1 -0
  258. package/lib/module/dom/nodes/PaintContext.js +2 -0
  259. package/lib/module/dom/nodes/PaintContext.js.map +1 -0
  260. package/lib/module/dom/nodes/PaintNode.js +83 -0
  261. package/lib/module/dom/nodes/PaintNode.js.map +1 -0
  262. package/lib/module/dom/nodes/RenderNode.js +329 -0
  263. package/lib/module/dom/nodes/RenderNode.js.map +1 -0
  264. package/lib/module/{renderer/processors/Circles.js → dom/nodes/datatypes/Circle.js} +2 -3
  265. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -0
  266. package/lib/module/{renderer/processors → dom/nodes/datatypes}/Color.js +0 -0
  267. package/lib/module/{renderer/processors → dom/nodes/datatypes}/Color.js.map +1 -1
  268. package/lib/module/dom/nodes/datatypes/Enum.js +2 -0
  269. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -0
  270. package/lib/module/{renderer/components/image/BoxFit.js → dom/nodes/datatypes/Fitting.js} +2 -2
  271. package/lib/module/{renderer/components/image/BoxFit.js.map → dom/nodes/datatypes/Fitting.js.map} +1 -1
  272. package/lib/module/dom/nodes/datatypes/Gradient.js +47 -0
  273. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -0
  274. package/lib/module/{renderer/processors/Paths.js → dom/nodes/datatypes/Path.js} +2 -2
  275. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -0
  276. package/lib/module/{renderer/processors → dom/nodes/datatypes}/Radius.js +0 -0
  277. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -0
  278. package/lib/module/{renderer/processors/Rects.js → dom/nodes/datatypes/Rect.js} +1 -1
  279. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -0
  280. package/lib/module/dom/nodes/datatypes/Transform.js +32 -0
  281. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -0
  282. package/lib/module/dom/nodes/datatypes/index.js +10 -0
  283. package/lib/module/dom/nodes/datatypes/index.js.map +1 -0
  284. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js +25 -0
  285. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -0
  286. package/lib/module/dom/nodes/drawings/Box.js +89 -0
  287. package/lib/module/dom/nodes/drawings/Box.js.map +1 -0
  288. package/lib/module/dom/nodes/drawings/CircleNode.js +31 -0
  289. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -0
  290. package/lib/module/dom/nodes/drawings/CustomDrawingNode.js +17 -0
  291. package/lib/module/dom/nodes/drawings/CustomDrawingNode.js.map +1 -0
  292. package/lib/module/dom/nodes/drawings/DiffRectNode.js +25 -0
  293. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -0
  294. package/lib/module/dom/nodes/drawings/FillNode.js +22 -0
  295. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -0
  296. package/lib/module/dom/nodes/drawings/ImageNode.js +51 -0
  297. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -0
  298. package/lib/module/dom/nodes/drawings/ImageSVG.js +33 -0
  299. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -0
  300. package/lib/module/dom/nodes/drawings/LineNode.js +25 -0
  301. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -0
  302. package/lib/module/dom/nodes/drawings/OvalNode.js +27 -0
  303. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -0
  304. package/lib/module/dom/nodes/drawings/PatchNode.js +56 -0
  305. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -0
  306. package/lib/module/dom/nodes/drawings/PathNode.js +55 -0
  307. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -0
  308. package/lib/module/dom/nodes/drawings/PictureNode.js +23 -0
  309. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -0
  310. package/lib/module/dom/nodes/drawings/PointsNode.js +27 -0
  311. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -0
  312. package/lib/module/dom/nodes/drawings/RRectNode.js +31 -0
  313. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -0
  314. package/lib/module/dom/nodes/drawings/RectNode.js +27 -0
  315. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -0
  316. package/lib/module/dom/nodes/drawings/Text.js +164 -0
  317. package/lib/module/dom/nodes/drawings/Text.js.map +1 -0
  318. package/lib/module/dom/nodes/drawings/VerticesNode.js +42 -0
  319. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -0
  320. package/lib/module/dom/nodes/drawings/index.js +19 -0
  321. package/lib/module/dom/nodes/drawings/index.js.map +1 -0
  322. package/lib/module/dom/nodes/index.js +4 -0
  323. package/lib/module/dom/nodes/index.js.map +1 -0
  324. package/lib/module/dom/nodes/paint/BlendNode.js +66 -0
  325. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -0
  326. package/lib/module/dom/nodes/paint/ColorFilters.js +120 -0
  327. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -0
  328. package/lib/module/dom/nodes/paint/ImageFilters.js +191 -0
  329. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -0
  330. package/lib/module/dom/nodes/paint/MaskFilters.js +20 -0
  331. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -0
  332. package/lib/module/dom/nodes/paint/PathEffects.js +192 -0
  333. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -0
  334. package/lib/module/dom/nodes/paint/Shaders.js +201 -0
  335. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -0
  336. package/lib/module/dom/nodes/paint/index.js +7 -0
  337. package/lib/module/dom/nodes/paint/index.js.map +1 -0
  338. package/lib/module/dom/types/ColorFilters.js +2 -0
  339. package/lib/module/dom/types/ColorFilters.js.map +1 -0
  340. package/lib/module/dom/types/Common.js +2 -0
  341. package/lib/module/dom/types/Common.js.map +1 -0
  342. package/lib/module/dom/types/DrawingContext.js +2 -0
  343. package/lib/module/dom/types/DrawingContext.js.map +1 -0
  344. package/lib/module/dom/types/Drawings.js +2 -0
  345. package/lib/module/dom/types/Drawings.js.map +1 -0
  346. package/lib/module/dom/types/ImageFilters.js +2 -0
  347. package/lib/module/dom/types/ImageFilters.js.map +1 -0
  348. package/lib/module/dom/types/MaskFilters.js +2 -0
  349. package/lib/module/dom/types/MaskFilters.js.map +1 -0
  350. package/lib/module/dom/types/Node.js +2 -0
  351. package/lib/module/dom/types/Node.js.map +1 -0
  352. package/lib/module/dom/types/NodeType.js +72 -0
  353. package/lib/module/dom/types/NodeType.js.map +1 -0
  354. package/lib/module/dom/types/PathEffects.js +2 -0
  355. package/lib/module/dom/types/PathEffects.js.map +1 -0
  356. package/lib/module/dom/types/Shaders.js +2 -0
  357. package/lib/module/dom/types/Shaders.js.map +1 -0
  358. package/lib/module/dom/types/SkDOM.js +2 -0
  359. package/lib/module/dom/types/SkDOM.js.map +1 -0
  360. package/lib/module/dom/types/index.js +12 -0
  361. package/lib/module/dom/types/index.js.map +1 -0
  362. package/lib/module/index.js +2 -0
  363. package/lib/module/index.js.map +1 -1
  364. package/lib/module/renderer/Canvas.js +7 -3
  365. package/lib/module/renderer/Canvas.js.map +1 -1
  366. package/lib/module/renderer/Container.js +29 -0
  367. package/lib/module/renderer/Container.js.map +1 -0
  368. package/lib/module/renderer/DependencyManager.js +17 -5
  369. package/lib/module/renderer/DependencyManager.js.map +1 -1
  370. package/lib/module/renderer/HostComponents.js +185 -0
  371. package/lib/module/renderer/HostComponents.js.map +1 -0
  372. package/lib/module/renderer/HostConfig.js +47 -126
  373. package/lib/module/renderer/HostConfig.js.map +1 -1
  374. package/lib/module/renderer/components/Blend.js +1 -42
  375. package/lib/module/renderer/components/Blend.js.map +1 -1
  376. package/lib/module/renderer/components/Drawing.js +1 -13
  377. package/lib/module/renderer/components/Drawing.js.map +1 -1
  378. package/lib/module/renderer/components/Group.js +1 -65
  379. package/lib/module/renderer/components/Group.js.map +1 -1
  380. package/lib/module/renderer/components/Paint.js +3 -12
  381. package/lib/module/renderer/components/Paint.js.map +1 -1
  382. package/lib/module/renderer/components/Picture.js +1 -17
  383. package/lib/module/renderer/components/Picture.js.map +1 -1
  384. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  385. package/lib/module/renderer/components/backdrop/BackdropFilter.js +2 -30
  386. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  387. package/lib/module/renderer/components/colorFilters/BlendColor.js +1 -20
  388. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  389. package/lib/module/renderer/components/colorFilters/Lerp.js +1 -19
  390. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  391. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +1 -15
  392. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  393. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +1 -15
  394. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  395. package/lib/module/renderer/components/colorFilters/Matrix.js +1 -17
  396. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  397. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +1 -15
  398. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  399. package/lib/module/renderer/components/image/Image.js +1 -31
  400. package/lib/module/renderer/components/image/Image.js.map +1 -1
  401. package/lib/module/renderer/components/image/ImageSVG.js +1 -27
  402. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  403. package/lib/module/renderer/components/image/ImageShader.js +1 -57
  404. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  405. package/lib/module/renderer/components/image/index.js +0 -1
  406. package/lib/module/renderer/components/image/index.js.map +1 -1
  407. package/lib/module/renderer/components/imageFilters/Blur.js +1 -21
  408. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  409. package/lib/module/renderer/components/imageFilters/DisplacementMap.js +1 -30
  410. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  411. package/lib/module/renderer/components/imageFilters/Morphology.js +1 -21
  412. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  413. package/lib/module/renderer/components/imageFilters/Offset.js +1 -17
  414. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  415. package/lib/module/renderer/components/imageFilters/RuntimeShader.js +1 -24
  416. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  417. package/lib/module/renderer/components/imageFilters/Shadow.js +1 -34
  418. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  419. package/lib/module/renderer/components/index.js +0 -1
  420. package/lib/module/renderer/components/index.js.map +1 -1
  421. package/lib/module/renderer/components/maskFilters/Blur.js +1 -19
  422. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  423. package/lib/module/renderer/components/pathEffects/Corner.js +1 -27
  424. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  425. package/lib/module/renderer/components/pathEffects/Dash.js +1 -24
  426. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  427. package/lib/module/renderer/components/pathEffects/Discrete.js +1 -25
  428. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  429. package/lib/module/renderer/components/pathEffects/Line2D.js +1 -28
  430. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  431. package/lib/module/renderer/components/pathEffects/Path1D.js +1 -32
  432. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  433. package/lib/module/renderer/components/pathEffects/Path2D.js +1 -29
  434. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  435. package/lib/module/renderer/components/pathEffects/Sum.js +1 -14
  436. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  437. package/lib/module/renderer/components/shaders/Color.js +1 -16
  438. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  439. package/lib/module/renderer/components/shaders/FractalNoise.js +1 -20
  440. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  441. package/lib/module/renderer/components/shaders/LinearGradient.js +1 -25
  442. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  443. package/lib/module/renderer/components/shaders/RadialGradient.js +1 -25
  444. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  445. package/lib/module/renderer/components/shaders/Shader.js +1 -19
  446. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  447. package/lib/module/renderer/components/shaders/SweepGradient.js +1 -26
  448. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  449. package/lib/module/renderer/components/shaders/Turbulence.js +1 -20
  450. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  451. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +1 -27
  452. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  453. package/lib/module/renderer/components/shapes/Box.js +2 -97
  454. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  455. package/lib/module/renderer/components/shapes/Circle.js +1 -19
  456. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  457. package/lib/module/renderer/components/shapes/DiffRect.js +1 -17
  458. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  459. package/lib/module/renderer/components/shapes/Fill.js +1 -13
  460. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  461. package/lib/module/renderer/components/shapes/FitBox.js +1 -1
  462. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  463. package/lib/module/renderer/components/shapes/Line.js +1 -17
  464. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  465. package/lib/module/renderer/components/shapes/Oval.js +1 -16
  466. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  467. package/lib/module/renderer/components/shapes/Patch.js +1 -32
  468. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  469. package/lib/module/renderer/components/shapes/Path.js +1 -43
  470. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  471. package/lib/module/renderer/components/shapes/Points.js +1 -20
  472. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  473. package/lib/module/renderer/components/shapes/Rect.js +1 -16
  474. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  475. package/lib/module/renderer/components/shapes/RoundedRect.js +1 -16
  476. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  477. package/lib/module/renderer/components/shapes/Vertices.js +1 -31
  478. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  479. package/lib/module/renderer/components/text/Glyphs.js +1 -37
  480. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  481. package/lib/module/renderer/components/text/Text.js +1 -22
  482. package/lib/module/renderer/components/text/Text.js.map +1 -1
  483. package/lib/module/renderer/components/text/TextBlob.js +1 -18
  484. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  485. package/lib/module/renderer/components/text/TextPath.js +1 -69
  486. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  487. package/lib/module/renderer/index.js +0 -1
  488. package/lib/module/renderer/index.js.map +1 -1
  489. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  490. package/lib/module/renderer/processors/index.js +0 -9
  491. package/lib/module/renderer/processors/index.js.map +1 -1
  492. package/lib/module/skia/types/Matrix.js.map +1 -1
  493. package/lib/module/skia/web/JsiSkMatrix.js +4 -0
  494. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  495. package/lib/module/web/WithSkiaWeb.js +3 -1
  496. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  497. package/lib/typescript/src/dom/nodes/DrawingNode.d.ts +14 -0
  498. package/lib/typescript/src/dom/nodes/GroupNode.d.ts +8 -0
  499. package/lib/typescript/src/dom/nodes/JsiSkDOM.d.ts +70 -0
  500. package/lib/typescript/src/dom/nodes/Node.d.ts +43 -0
  501. package/lib/typescript/src/dom/nodes/PaintContext.d.ts +18 -0
  502. package/lib/typescript/src/dom/nodes/PaintNode.d.ts +8 -0
  503. package/lib/typescript/src/dom/nodes/RenderNode.d.ts +29 -0
  504. package/lib/typescript/src/dom/nodes/datatypes/Circle.d.ts +4 -0
  505. package/lib/typescript/src/{renderer/processors → dom/nodes/datatypes}/Color.d.ts +1 -1
  506. package/lib/typescript/src/dom/nodes/datatypes/Enum.d.ts +1 -0
  507. package/lib/typescript/src/{renderer/components/image/BoxFit.d.ts → dom/nodes/datatypes/Fitting.d.ts} +1 -1
  508. package/lib/typescript/src/{renderer/processors/Transform.d.ts → dom/nodes/datatypes/Gradient.d.ts} +11 -9
  509. package/lib/typescript/src/dom/nodes/datatypes/Path.d.ts +4 -0
  510. package/lib/typescript/src/dom/nodes/datatypes/Radius.d.ts +3 -0
  511. package/lib/typescript/src/dom/nodes/datatypes/Rect.d.ts +5 -0
  512. package/lib/typescript/src/dom/nodes/datatypes/Transform.d.ts +3 -0
  513. package/lib/typescript/src/dom/nodes/datatypes/index.d.ts +9 -0
  514. package/lib/typescript/src/dom/nodes/drawings/BackdropFilterNode.d.ts +8 -0
  515. package/lib/typescript/src/dom/nodes/drawings/Box.d.ts +13 -0
  516. package/lib/typescript/src/dom/nodes/drawings/CircleNode.d.ts +9 -0
  517. package/lib/typescript/src/dom/nodes/drawings/CustomDrawingNode.d.ts +8 -0
  518. package/lib/typescript/src/dom/nodes/drawings/DiffRectNode.d.ts +8 -0
  519. package/lib/typescript/src/dom/nodes/drawings/FillNode.d.ts +8 -0
  520. package/lib/typescript/src/dom/nodes/drawings/ImageNode.d.ts +25 -0
  521. package/lib/typescript/src/dom/nodes/drawings/ImageSVG.d.ts +8 -0
  522. package/lib/typescript/src/dom/nodes/drawings/LineNode.d.ts +8 -0
  523. package/lib/typescript/src/dom/nodes/drawings/OvalNode.d.ts +9 -0
  524. package/lib/typescript/src/dom/nodes/drawings/PatchNode.d.ts +18 -0
  525. package/lib/typescript/src/dom/nodes/drawings/PathNode.d.ts +9 -0
  526. package/lib/typescript/src/dom/nodes/drawings/PictureNode.d.ts +8 -0
  527. package/lib/typescript/src/dom/nodes/drawings/PointsNode.d.ts +8 -0
  528. package/lib/typescript/src/dom/nodes/drawings/RRectNode.d.ts +10 -0
  529. package/lib/typescript/src/dom/nodes/drawings/RectNode.d.ts +9 -0
  530. package/lib/typescript/src/dom/nodes/drawings/Text.d.ts +30 -0
  531. package/lib/typescript/src/dom/nodes/drawings/VerticesNode.d.ts +9 -0
  532. package/lib/typescript/src/dom/nodes/drawings/index.d.ts +18 -0
  533. package/lib/typescript/src/dom/nodes/index.d.ts +3 -0
  534. package/lib/typescript/src/dom/nodes/paint/BlendNode.d.ts +12 -0
  535. package/lib/typescript/src/dom/nodes/paint/ColorFilters.d.ts +36 -0
  536. package/lib/typescript/src/dom/nodes/paint/ImageFilters.d.ts +42 -0
  537. package/lib/typescript/src/dom/nodes/paint/MaskFilters.d.ts +8 -0
  538. package/lib/typescript/src/dom/nodes/paint/PathEffects.d.ts +42 -0
  539. package/lib/typescript/src/dom/nodes/paint/Shaders.d.ts +44 -0
  540. package/lib/typescript/src/dom/nodes/paint/index.d.ts +6 -0
  541. package/lib/typescript/src/dom/types/ColorFilters.d.ts +12 -0
  542. package/lib/typescript/src/dom/types/Common.d.ts +57 -0
  543. package/lib/typescript/src/dom/types/DrawingContext.d.ts +6 -0
  544. package/lib/typescript/src/dom/types/Drawings.d.ts +106 -0
  545. package/lib/typescript/src/dom/types/ImageFilters.d.ts +37 -0
  546. package/lib/typescript/src/dom/types/MaskFilters.d.ts +7 -0
  547. package/lib/typescript/src/dom/types/Node.d.ts +29 -0
  548. package/lib/typescript/src/dom/types/NodeType.d.ts +66 -0
  549. package/lib/typescript/src/dom/types/PathEffects.d.ts +28 -0
  550. package/lib/typescript/src/dom/types/Shaders.d.ts +59 -0
  551. package/lib/typescript/src/dom/types/SkDOM.d.ts +71 -0
  552. package/lib/typescript/src/dom/types/index.d.ts +11 -0
  553. package/lib/typescript/src/index.d.ts +2 -0
  554. package/lib/typescript/src/renderer/Canvas.d.ts +3 -3
  555. package/lib/typescript/src/renderer/Container.d.ts +12 -0
  556. package/lib/typescript/src/renderer/DependencyManager.d.ts +5 -4
  557. package/lib/typescript/src/renderer/HostComponents.d.ts +72 -0
  558. package/lib/typescript/src/renderer/HostConfig.d.ts +5 -13
  559. package/lib/typescript/src/renderer/components/Blend.d.ts +4 -9
  560. package/lib/typescript/src/renderer/components/Drawing.d.ts +2 -6
  561. package/lib/typescript/src/renderer/components/Group.d.ts +4 -9
  562. package/lib/typescript/src/renderer/components/Paint.d.ts +4 -8
  563. package/lib/typescript/src/renderer/components/Picture.d.ts +3 -5
  564. package/lib/typescript/src/renderer/components/backdrop/BackdropBlur.d.ts +2 -1
  565. package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +3 -3
  566. package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +4 -10
  567. package/lib/typescript/src/renderer/components/colorFilters/Lerp.d.ts +4 -7
  568. package/lib/typescript/src/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +3 -4
  569. package/lib/typescript/src/renderer/components/colorFilters/LumaColorFilter.d.ts +3 -4
  570. package/lib/typescript/src/renderer/components/colorFilters/Matrix.d.ts +4 -8
  571. package/lib/typescript/src/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +3 -4
  572. package/lib/typescript/src/renderer/components/image/Image.d.ts +3 -11
  573. package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +2 -5
  574. package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +3 -15
  575. package/lib/typescript/src/renderer/components/image/index.d.ts +0 -1
  576. package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +4 -10
  577. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +4 -10
  578. package/lib/typescript/src/renderer/components/imageFilters/Morphology.d.ts +4 -8
  579. package/lib/typescript/src/renderer/components/imageFilters/Offset.d.ts +4 -8
  580. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +3 -7
  581. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +3 -11
  582. package/lib/typescript/src/renderer/components/index.d.ts +0 -1
  583. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +3 -9
  584. package/lib/typescript/src/renderer/components/pathEffects/Corner.d.ts +4 -7
  585. package/lib/typescript/src/renderer/components/pathEffects/Dash.d.ts +4 -8
  586. package/lib/typescript/src/renderer/components/pathEffects/Discrete.d.ts +4 -9
  587. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +4 -9
  588. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +4 -13
  589. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +4 -10
  590. package/lib/typescript/src/renderer/components/pathEffects/Sum.d.ts +3 -6
  591. package/lib/typescript/src/renderer/components/shaders/Color.d.ts +3 -6
  592. package/lib/typescript/src/renderer/components/shaders/FractalNoise.d.ts +3 -10
  593. package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +3 -8
  594. package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +3 -8
  595. package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +4 -9
  596. package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +3 -9
  597. package/lib/typescript/src/renderer/components/shaders/Turbulence.d.ts +3 -10
  598. package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +3 -10
  599. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +4 -21
  600. package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +3 -3
  601. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +3 -8
  602. package/lib/typescript/src/renderer/components/shapes/Fill.d.ts +3 -4
  603. package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +1 -1
  604. package/lib/typescript/src/renderer/components/shapes/Line.d.ts +3 -7
  605. package/lib/typescript/src/renderer/components/shapes/Oval.d.ts +3 -3
  606. package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +3 -20
  607. package/lib/typescript/src/renderer/components/shapes/Path.d.ts +3 -16
  608. package/lib/typescript/src/renderer/components/shapes/Points.d.ts +3 -9
  609. package/lib/typescript/src/renderer/components/shapes/Rect.d.ts +3 -3
  610. package/lib/typescript/src/renderer/components/shapes/RoundedRect.d.ts +3 -3
  611. package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +3 -12
  612. package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +3 -13
  613. package/lib/typescript/src/renderer/components/text/Text.d.ts +3 -8
  614. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +3 -8
  615. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +3 -9
  616. package/lib/typescript/src/renderer/index.d.ts +0 -1
  617. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +1 -0
  618. package/lib/typescript/src/renderer/processors/index.d.ts +0 -9
  619. package/lib/typescript/src/skia/types/Matrix.d.ts +1 -0
  620. package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +1 -0
  621. package/package.json +1 -1
  622. package/src/dom/nodes/DrawingNode.ts +72 -0
  623. package/src/dom/nodes/GroupNode.ts +23 -0
  624. package/src/dom/nodes/JsiSkDOM.ts +353 -0
  625. package/src/dom/nodes/Node.ts +158 -0
  626. package/src/dom/nodes/PaintContext.ts +30 -0
  627. package/src/dom/nodes/PaintNode.ts +77 -0
  628. package/src/dom/nodes/RenderNode.ts +349 -0
  629. package/src/{renderer/processors/Circles.ts → dom/nodes/datatypes/Circle.ts} +3 -15
  630. package/src/{renderer/processors → dom/nodes/datatypes}/Color.ts +1 -1
  631. package/src/dom/nodes/datatypes/Enum.ts +2 -0
  632. package/src/{renderer/components/image/BoxFit.ts → dom/nodes/datatypes/Fitting.ts} +2 -11
  633. package/src/dom/nodes/datatypes/Gradient.ts +48 -0
  634. package/src/{renderer/processors/Paths.ts → dom/nodes/datatypes/Path.ts} +3 -4
  635. package/src/{renderer/processors → dom/nodes/datatypes}/Radius.ts +2 -3
  636. package/src/{renderer/processors/Rects.ts → dom/nodes/datatypes/Rect.ts} +2 -16
  637. package/src/dom/nodes/datatypes/Transform.ts +26 -0
  638. package/src/dom/nodes/datatypes/index.ts +9 -0
  639. package/src/dom/nodes/drawings/BackdropFilterNode.ts +30 -0
  640. package/src/dom/nodes/drawings/Box.ts +105 -0
  641. package/src/dom/nodes/drawings/CircleNode.ts +24 -0
  642. package/src/dom/nodes/drawings/CustomDrawingNode.ts +21 -0
  643. package/src/dom/nodes/drawings/DiffRectNode.ts +19 -0
  644. package/src/dom/nodes/drawings/FillNode.ts +18 -0
  645. package/src/dom/nodes/drawings/ImageNode.ts +40 -0
  646. package/src/dom/nodes/drawings/ImageSVG.ts +24 -0
  647. package/src/dom/nodes/drawings/LineNode.ts +19 -0
  648. package/src/dom/nodes/drawings/OvalNode.ts +23 -0
  649. package/src/dom/nodes/drawings/PatchNode.ts +68 -0
  650. package/src/dom/nodes/drawings/PathNode.ts +42 -0
  651. package/src/dom/nodes/drawings/PictureNode.ts +19 -0
  652. package/src/dom/nodes/drawings/PointsNode.ts +21 -0
  653. package/src/dom/nodes/drawings/RRectNode.ts +25 -0
  654. package/src/dom/nodes/drawings/RectNode.ts +23 -0
  655. package/src/dom/nodes/drawings/Text.ts +122 -0
  656. package/src/dom/nodes/drawings/VerticesNode.ts +35 -0
  657. package/src/dom/nodes/drawings/index.ts +18 -0
  658. package/src/dom/nodes/index.ts +3 -0
  659. package/src/dom/nodes/paint/BlendNode.ts +79 -0
  660. package/src/dom/nodes/paint/ColorFilters.ts +130 -0
  661. package/src/dom/nodes/paint/ImageFilters.ts +210 -0
  662. package/src/dom/nodes/paint/MaskFilters.ts +25 -0
  663. package/src/dom/nodes/paint/PathEffects.ts +192 -0
  664. package/src/dom/nodes/paint/Shaders.ts +228 -0
  665. package/src/dom/nodes/paint/index.ts +6 -0
  666. package/src/dom/types/ColorFilters.ts +16 -0
  667. package/src/dom/types/Common.ts +90 -0
  668. package/src/dom/types/DrawingContext.ts +7 -0
  669. package/src/dom/types/Drawings.ts +157 -0
  670. package/src/dom/types/ImageFilters.ts +53 -0
  671. package/src/dom/types/MaskFilters.ts +9 -0
  672. package/src/dom/types/Node.ts +46 -0
  673. package/src/dom/types/NodeType.ts +80 -0
  674. package/src/dom/types/PathEffects.ts +35 -0
  675. package/src/dom/types/Shaders.ts +86 -0
  676. package/src/dom/types/SkDOM.ts +202 -0
  677. package/src/dom/types/index.ts +11 -0
  678. package/src/index.ts +2 -0
  679. package/src/renderer/Canvas.tsx +7 -6
  680. package/src/renderer/Container.tsx +31 -0
  681. package/src/renderer/DependencyManager.tsx +23 -15
  682. package/src/renderer/HostComponents.ts +269 -0
  683. package/src/renderer/HostConfig.ts +60 -123
  684. package/src/renderer/components/Blend.tsx +4 -45
  685. package/src/renderer/components/Drawing.tsx +3 -12
  686. package/src/renderer/components/Group.tsx +4 -79
  687. package/src/renderer/components/Paint.tsx +7 -24
  688. package/src/renderer/components/Picture.tsx +4 -13
  689. package/src/renderer/components/backdrop/BackdropBlur.tsx +2 -1
  690. package/src/renderer/components/backdrop/BackdropFilter.tsx +5 -29
  691. package/src/renderer/components/colorFilters/BlendColor.tsx +4 -26
  692. package/src/renderer/components/colorFilters/Lerp.tsx +4 -23
  693. package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +4 -16
  694. package/src/renderer/components/colorFilters/LumaColorFilter.tsx +4 -14
  695. package/src/renderer/components/colorFilters/Matrix.tsx +4 -19
  696. package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +4 -16
  697. package/src/renderer/components/image/Image.tsx +4 -40
  698. package/src/renderer/components/image/ImageSVG.tsx +3 -19
  699. package/src/renderer/components/image/ImageShader.tsx +4 -69
  700. package/src/renderer/components/image/index.ts +0 -1
  701. package/src/renderer/components/imageFilters/Blur.tsx +4 -29
  702. package/src/renderer/components/imageFilters/DisplacementMap.tsx +6 -30
  703. package/src/renderer/components/imageFilters/Morphology.tsx +4 -25
  704. package/src/renderer/components/imageFilters/Offset.tsx +4 -19
  705. package/src/renderer/components/imageFilters/RuntimeShader.tsx +6 -27
  706. package/src/renderer/components/imageFilters/Shadow.tsx +4 -38
  707. package/src/renderer/components/index.ts +0 -1
  708. package/src/renderer/components/maskFilters/Blur.tsx +4 -23
  709. package/src/renderer/components/pathEffects/Corner.tsx +4 -27
  710. package/src/renderer/components/pathEffects/Dash.tsx +4 -23
  711. package/src/renderer/components/pathEffects/Discrete.tsx +4 -24
  712. package/src/renderer/components/pathEffects/Line2D.tsx +4 -29
  713. package/src/renderer/components/pathEffects/Path1D.tsx +4 -39
  714. package/src/renderer/components/pathEffects/Path2D.tsx +4 -31
  715. package/src/renderer/components/pathEffects/Sum.tsx +3 -17
  716. package/src/renderer/components/shaders/Color.tsx +4 -16
  717. package/src/renderer/components/shaders/FractalNoise.tsx +4 -26
  718. package/src/renderer/components/shaders/LinearGradient.tsx +4 -29
  719. package/src/renderer/components/shaders/RadialGradient.tsx +4 -29
  720. package/src/renderer/components/shaders/Shader.tsx +4 -24
  721. package/src/renderer/components/shaders/SweepGradient.tsx +4 -32
  722. package/src/renderer/components/shaders/Turbulence.tsx +4 -26
  723. package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +4 -33
  724. package/src/renderer/components/shapes/Box.tsx +6 -109
  725. package/src/renderer/components/shapes/Circle.tsx +4 -16
  726. package/src/renderer/components/shapes/DiffRect.tsx +4 -17
  727. package/src/renderer/components/shapes/Fill.tsx +4 -11
  728. package/src/renderer/components/shapes/FitBox.tsx +2 -2
  729. package/src/renderer/components/shapes/Line.tsx +4 -13
  730. package/src/renderer/components/shapes/Oval.tsx +4 -18
  731. package/src/renderer/components/shapes/Patch.tsx +4 -59
  732. package/src/renderer/components/shapes/Path.tsx +4 -48
  733. package/src/renderer/components/shapes/Points.tsx +4 -20
  734. package/src/renderer/components/shapes/Rect.tsx +4 -18
  735. package/src/renderer/components/shapes/RoundedRect.tsx +4 -17
  736. package/src/renderer/components/shapes/Vertices.tsx +4 -37
  737. package/src/renderer/components/text/Glyphs.tsx +4 -39
  738. package/src/renderer/components/text/Text.tsx +4 -22
  739. package/src/renderer/components/text/TextBlob.tsx +4 -17
  740. package/src/renderer/components/text/TextPath.tsx +4 -59
  741. package/src/renderer/index.ts +0 -1
  742. package/src/renderer/processors/Animations/Animations.ts +5 -0
  743. package/src/renderer/processors/index.ts +0 -9
  744. package/src/skia/types/Matrix.ts +1 -0
  745. package/src/skia/web/JsiSkMatrix.ts +4 -0
  746. package/src/web/WithSkiaWeb.tsx +3 -1
  747. package/lib/commonjs/renderer/components/Compose.js +0 -40
  748. package/lib/commonjs/renderer/components/Compose.js.map +0 -1
  749. package/lib/commonjs/renderer/components/colorFilters/Compose.js +0 -24
  750. package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +0 -1
  751. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +0 -28
  752. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +0 -1
  753. package/lib/commonjs/renderer/components/imageFilters/getInput.js +0 -33
  754. package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +0 -1
  755. package/lib/commonjs/renderer/components/shaders/Gradient.js +0 -32
  756. package/lib/commonjs/renderer/components/shaders/Gradient.js.map +0 -1
  757. package/lib/commonjs/renderer/nodes/Container.js +0 -28
  758. package/lib/commonjs/renderer/nodes/Container.js.map +0 -1
  759. package/lib/commonjs/renderer/nodes/Declaration.js +0 -57
  760. package/lib/commonjs/renderer/nodes/Declaration.js.map +0 -1
  761. package/lib/commonjs/renderer/nodes/Drawing.js +0 -56
  762. package/lib/commonjs/renderer/nodes/Drawing.js.map +0 -1
  763. package/lib/commonjs/renderer/nodes/Node.js +0 -73
  764. package/lib/commonjs/renderer/nodes/Node.js.map +0 -1
  765. package/lib/commonjs/renderer/nodes/index.js +0 -58
  766. package/lib/commonjs/renderer/nodes/index.js.map +0 -1
  767. package/lib/commonjs/renderer/processors/Circles.js.map +0 -1
  768. package/lib/commonjs/renderer/processors/Clips.js +0 -24
  769. package/lib/commonjs/renderer/processors/Clips.js.map +0 -1
  770. package/lib/commonjs/renderer/processors/Font.js +0 -13
  771. package/lib/commonjs/renderer/processors/Font.js.map +0 -1
  772. package/lib/commonjs/renderer/processors/Paint.js +0 -98
  773. package/lib/commonjs/renderer/processors/Paint.js.map +0 -1
  774. package/lib/commonjs/renderer/processors/Paths.js.map +0 -1
  775. package/lib/commonjs/renderer/processors/Radius.js.map +0 -1
  776. package/lib/commonjs/renderer/processors/Rects.js.map +0 -1
  777. package/lib/commonjs/renderer/processors/Transform.js +0 -58
  778. package/lib/commonjs/renderer/processors/Transform.js.map +0 -1
  779. package/lib/module/renderer/components/Compose.js +0 -25
  780. package/lib/module/renderer/components/Compose.js.map +0 -1
  781. package/lib/module/renderer/components/colorFilters/Compose.js +0 -14
  782. package/lib/module/renderer/components/colorFilters/Compose.js.map +0 -1
  783. package/lib/module/renderer/components/imageFilters/InnerShadow.js +0 -17
  784. package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +0 -1
  785. package/lib/module/renderer/components/imageFilters/getInput.js +0 -23
  786. package/lib/module/renderer/components/imageFilters/getInput.js.map +0 -1
  787. package/lib/module/renderer/components/shaders/Gradient.js +0 -20
  788. package/lib/module/renderer/components/shaders/Gradient.js.map +0 -1
  789. package/lib/module/renderer/nodes/Container.js +0 -18
  790. package/lib/module/renderer/nodes/Container.js.map +0 -1
  791. package/lib/module/renderer/nodes/Declaration.js +0 -36
  792. package/lib/module/renderer/nodes/Declaration.js.map +0 -1
  793. package/lib/module/renderer/nodes/Drawing.js +0 -37
  794. package/lib/module/renderer/nodes/Drawing.js.map +0 -1
  795. package/lib/module/renderer/nodes/Node.js +0 -63
  796. package/lib/module/renderer/nodes/Node.js.map +0 -1
  797. package/lib/module/renderer/nodes/index.js +0 -5
  798. package/lib/module/renderer/nodes/index.js.map +0 -1
  799. package/lib/module/renderer/processors/Circles.js.map +0 -1
  800. package/lib/module/renderer/processors/Clips.js +0 -13
  801. package/lib/module/renderer/processors/Clips.js.map +0 -1
  802. package/lib/module/renderer/processors/Font.js +0 -4
  803. package/lib/module/renderer/processors/Font.js.map +0 -1
  804. package/lib/module/renderer/processors/Paint.js +0 -84
  805. package/lib/module/renderer/processors/Paint.js.map +0 -1
  806. package/lib/module/renderer/processors/Paths.js.map +0 -1
  807. package/lib/module/renderer/processors/Radius.js.map +0 -1
  808. package/lib/module/renderer/processors/Rects.js.map +0 -1
  809. package/lib/module/renderer/processors/Transform.js +0 -42
  810. package/lib/module/renderer/processors/Transform.js.map +0 -1
  811. package/lib/typescript/src/renderer/components/Compose.d.ts +0 -6
  812. package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +0 -3
  813. package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +0 -2
  814. package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +0 -3
  815. package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +0 -17
  816. package/lib/typescript/src/renderer/nodes/Container.d.ts +0 -8
  817. package/lib/typescript/src/renderer/nodes/Declaration.d.ts +0 -22
  818. package/lib/typescript/src/renderer/nodes/Drawing.d.ts +0 -21
  819. package/lib/typescript/src/renderer/nodes/Node.d.ts +0 -24
  820. package/lib/typescript/src/renderer/nodes/index.d.ts +0 -4
  821. package/lib/typescript/src/renderer/processors/Circles.d.ts +0 -13
  822. package/lib/typescript/src/renderer/processors/Clips.d.ts +0 -4
  823. package/lib/typescript/src/renderer/processors/Font.d.ts +0 -7
  824. package/lib/typescript/src/renderer/processors/Paint.d.ts +0 -22
  825. package/lib/typescript/src/renderer/processors/Paths.d.ts +0 -4
  826. package/lib/typescript/src/renderer/processors/Radius.d.ts +0 -3
  827. package/lib/typescript/src/renderer/processors/Rects.d.ts +0 -20
  828. package/src/renderer/components/Compose.tsx +0 -26
  829. package/src/renderer/components/colorFilters/Compose.ts +0 -18
  830. package/src/renderer/components/imageFilters/InnerShadow.tsx +0 -38
  831. package/src/renderer/components/imageFilters/getInput.ts +0 -20
  832. package/src/renderer/components/shaders/Gradient.ts +0 -24
  833. package/src/renderer/nodes/Container.tsx +0 -17
  834. package/src/renderer/nodes/Declaration.tsx +0 -65
  835. package/src/renderer/nodes/Drawing.tsx +0 -65
  836. package/src/renderer/nodes/Node.ts +0 -59
  837. package/src/renderer/nodes/index.ts +0 -4
  838. package/src/renderer/processors/Clips.ts +0 -23
  839. package/src/renderer/processors/Font.ts +0 -8
  840. package/src/renderer/processors/Paint.ts +0 -118
  841. package/src/renderer/processors/Transform.ts +0 -50
@@ -1,20 +1,5 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { createDeclaration } from "../../nodes";
5
- import { processColor } from "../../processors/Color";
6
- const onDeclare = createDeclaration((_ref, _, _ref2) => {
7
- let {
8
- color
9
- } = _ref;
10
- let {
11
- Skia
12
- } = _ref2;
13
- return Skia.Shader.MakeColor(processColor(Skia, color, 1));
14
- });
15
2
  export const ColorShader = props => {
16
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
17
- onDeclare: onDeclare
18
- }, props));
3
+ return /*#__PURE__*/React.createElement("skColorShader", props);
19
4
  };
20
5
  //# sourceMappingURL=Color.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Color.tsx"],"names":["React","createDeclaration","processColor","onDeclare","_","color","Skia","Shader","MakeColor","ColorShader","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,SAASC,iBAAT,QAAkC,aAAlC;AAGA,SAASC,YAAT,QAA6B,wBAA7B;AAMA,MAAMC,SAAS,GAAGF,iBAAiB,CACjC,OAAYG,CAAZ,YAA4B;AAAA,MAA3B;AAAEC,IAAAA;AAAF,GAA2B;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC1B,SAAOA,IAAI,CAACC,MAAL,CAAYC,SAAZ,CAAsBN,YAAY,CAACI,IAAD,EAAOD,KAAP,EAAc,CAAd,CAAlC,CAAP;AACD,CAHgC,CAAnC;AAMA,OAAO,MAAMI,WAAW,GAAIC,KAAD,IAA4C;AACrE,sBAAO;AAAe,IAAA,SAAS,EAAEP;AAA1B,KAAyCO,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport { createDeclaration } from \"../../nodes\";\nimport type { AnimatedProps } from \"../../processors\";\nimport type { Color } from \"../../../skia/types\";\nimport { processColor } from \"../../processors/Color\";\n\nexport interface ColorShaderProps {\n color: Color;\n}\n\nconst onDeclare = createDeclaration<ColorShaderProps>(\n ({ color }, _, { Skia }) => {\n return Skia.Shader.MakeColor(processColor(Skia, color, 1));\n }\n);\n\nexport const ColorShader = (props: AnimatedProps<ColorShaderProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["Color.tsx"],"names":["React","ColorShader","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,WAAW,GAAIC,KAAD,IAAkC;AAC3D,sBAAO,qCAAmBA,KAAnB,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { ColorProps } from \"../../../dom/types\";\n\nexport const ColorShader = (props: SkiaProps<ColorProps>) => {\n return <skColorShader {...props} />;\n};\n"]}
@@ -1,25 +1,6 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { createDeclaration } from "../../nodes/Declaration";
5
- const onDeclare = createDeclaration((_ref, _, _ref2) => {
6
- let {
7
- freqX,
8
- freqY,
9
- octaves,
10
- seed,
11
- tileWidth,
12
- tileHeight
13
- } = _ref;
14
- let {
15
- Skia
16
- } = _ref2;
17
- return Skia.Shader.MakeFractalNoise(freqX, freqY, octaves, seed, tileWidth, tileHeight);
18
- });
19
2
  export const FractalNoise = props => {
20
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
21
- onDeclare: onDeclare
22
- }, props));
3
+ return /*#__PURE__*/React.createElement("skFractalNoise", props);
23
4
  };
24
5
  FractalNoise.defaultProps = {
25
6
  seed: 0,
@@ -1 +1 @@
1
- {"version":3,"sources":["FractalNoise.tsx"],"names":["React","createDeclaration","onDeclare","_","freqX","freqY","octaves","seed","tileWidth","tileHeight","Skia","Shader","MakeFractalNoise","FractalNoise","props","defaultProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,SAASC,iBAAT,QAAkC,yBAAlC;AAYA,MAAMC,SAAS,GAAGD,iBAAiB,CACjC,OAAyDE,CAAzD,YAAyE;AAAA,MAAxE;AAAEC,IAAAA,KAAF;AAASC,IAAAA,KAAT;AAAgBC,IAAAA,OAAhB;AAAyBC,IAAAA,IAAzB;AAA+BC,IAAAA,SAA/B;AAA0CC,IAAAA;AAA1C,GAAwE;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AACvE,SAAOA,IAAI,CAACC,MAAL,CAAYC,gBAAZ,CACLR,KADK,EAELC,KAFK,EAGLC,OAHK,EAILC,IAJK,EAKLC,SALK,EAMLC,UANK,CAAP;AAQD,CAVgC,CAAnC;AAaA,OAAO,MAAMI,YAAY,GAAIC,KAAD,IAA6C;AACvE,sBAAO;AAAe,IAAA,SAAS,EAAEZ;AAA1B,KAAyCY,KAAzC,EAAP;AACD,CAFM;AAIPD,YAAY,CAACE,YAAb,GAA4B;AAC1BR,EAAAA,IAAI,EAAE,CADoB;AAE1BC,EAAAA,SAAS,EAAE,CAFe;AAG1BC,EAAAA,UAAU,EAAE;AAHc,CAA5B","sourcesContent":["import React from \"react\";\n\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nexport interface FractalNoiseProps {\n freqX: number;\n freqY: number;\n octaves: number;\n seed: number;\n tileWidth: number;\n tileHeight: number;\n}\n\nconst onDeclare = createDeclaration<FractalNoiseProps>(\n ({ freqX, freqY, octaves, seed, tileWidth, tileHeight }, _, { Skia }) => {\n return Skia.Shader.MakeFractalNoise(\n freqX,\n freqY,\n octaves,\n seed,\n tileWidth,\n tileHeight\n );\n }\n);\n\nexport const FractalNoise = (props: AnimatedProps<FractalNoiseProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nFractalNoise.defaultProps = {\n seed: 0,\n tileWidth: 0,\n tileHeight: 0,\n};\n"]}
1
+ {"version":3,"sources":["FractalNoise.tsx"],"names":["React","FractalNoise","props","defaultProps","seed","tileWidth","tileHeight"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,YAAY,GAAIC,KAAD,IAAyC;AACnE,sBAAO,sCAAoBA,KAApB,CAAP;AACD,CAFM;AAIPD,YAAY,CAACE,YAAb,GAA4B;AAC1BC,EAAAA,IAAI,EAAE,CADoB;AAE1BC,EAAAA,SAAS,EAAE,CAFe;AAG1BC,EAAAA,UAAU,EAAE;AAHc,CAA5B","sourcesContent":["import React from \"react\";\n\nimport type { FractalNoiseProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const FractalNoise = (props: SkiaProps<FractalNoiseProps>) => {\n return <skFractalNoise {...props} />;\n};\n\nFractalNoise.defaultProps = {\n seed: 0,\n tileWidth: 0,\n tileHeight: 0,\n};\n"]}
@@ -1,29 +1,5 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { createDeclaration } from "../../nodes/Declaration";
5
- import { processGradientProps } from "./Gradient";
6
- const onDeclare = createDeclaration((_ref, _, _ref2) => {
7
- let {
8
- start,
9
- end,
10
- ...gradientProps
11
- } = _ref;
12
- let {
13
- Skia
14
- } = _ref2;
15
- const {
16
- colors,
17
- positions,
18
- mode,
19
- localMatrix,
20
- flags
21
- } = processGradientProps(Skia, gradientProps);
22
- return Skia.Shader.MakeLinearGradient(start, end, colors, positions, mode, localMatrix, flags);
23
- });
24
2
  export const LinearGradient = props => {
25
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
26
- onDeclare: onDeclare
27
- }, props));
3
+ return /*#__PURE__*/React.createElement("skLinearGradient", props);
28
4
  };
29
5
  //# sourceMappingURL=LinearGradient.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["LinearGradient.tsx"],"names":["React","createDeclaration","processGradientProps","onDeclare","_","start","end","gradientProps","Skia","colors","positions","mode","localMatrix","flags","Shader","MakeLinearGradient","LinearGradient","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,iBAAT,QAAkC,yBAAlC;AAIA,SAASC,oBAAT,QAAqC,YAArC;AAOA,MAAMC,SAAS,GAAGF,iBAAiB,CACjC,OAAmCG,CAAnC,YAAmD;AAAA,MAAlD;AAAEC,IAAAA,KAAF;AAASC,IAAAA,GAAT;AAAc,OAAGC;AAAjB,GAAkD;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AACjD,QAAM;AAAEC,IAAAA,MAAF;AAAUC,IAAAA,SAAV;AAAqBC,IAAAA,IAArB;AAA2BC,IAAAA,WAA3B;AAAwCC,IAAAA;AAAxC,MACJX,oBAAoB,CAACM,IAAD,EAAOD,aAAP,CADtB;AAEA,SAAOC,IAAI,CAACM,MAAL,CAAYC,kBAAZ,CACLV,KADK,EAELC,GAFK,EAGLG,MAHK,EAILC,SAJK,EAKLC,IALK,EAMLC,WANK,EAOLC,KAPK,CAAP;AASD,CAbgC,CAAnC;AAgBA,OAAO,MAAMG,cAAc,GAAIC,KAAD,IAA+C;AAC3E,sBAAO;AAAe,IAAA,SAAS,EAAEd;AAA1B,KAAyCc,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { AnimatedProps } from \"../../processors\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { Vector } from \"../../../skia/types\";\n\nimport type { GradientProps } from \"./Gradient\";\nimport { processGradientProps } from \"./Gradient\";\n\nexport interface LinearGradientProps extends GradientProps {\n start: Vector;\n end: Vector;\n}\n\nconst onDeclare = createDeclaration<LinearGradientProps>(\n ({ start, end, ...gradientProps }, _, { Skia }) => {\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(Skia, gradientProps);\n return Skia.Shader.MakeLinearGradient(\n start,\n end,\n colors,\n positions,\n mode,\n localMatrix,\n flags\n );\n }\n);\n\nexport const LinearGradient = (props: AnimatedProps<LinearGradientProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["LinearGradient.tsx"],"names":["React","LinearGradient","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,cAAc,GAAIC,KAAD,IAA2C;AACvE,sBAAO,wCAAsBA,KAAtB,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { LinearGradientProps } from \"../../../dom/types\";\n\nexport const LinearGradient = (props: SkiaProps<LinearGradientProps>) => {\n return <skLinearGradient {...props} />;\n};\n"]}
@@ -1,29 +1,5 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { createDeclaration } from "../../nodes/Declaration";
5
- import { processGradientProps } from "./Gradient";
6
- const onDeclare = createDeclaration((_ref, _, _ref2) => {
7
- let {
8
- c,
9
- r,
10
- ...gradientProps
11
- } = _ref;
12
- let {
13
- Skia
14
- } = _ref2;
15
- const {
16
- colors,
17
- positions,
18
- mode,
19
- localMatrix,
20
- flags
21
- } = processGradientProps(Skia, gradientProps);
22
- return Skia.Shader.MakeRadialGradient(c, r, colors, positions, mode, localMatrix, flags);
23
- });
24
2
  export const RadialGradient = props => {
25
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
26
- onDeclare: onDeclare
27
- }, props));
3
+ return /*#__PURE__*/React.createElement("skRadialGradient", props);
28
4
  };
29
5
  //# sourceMappingURL=RadialGradient.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["RadialGradient.tsx"],"names":["React","createDeclaration","processGradientProps","onDeclare","_","c","r","gradientProps","Skia","colors","positions","mode","localMatrix","flags","Shader","MakeRadialGradient","RadialGradient","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,iBAAT,QAAkC,yBAAlC;AAIA,SAASC,oBAAT,QAAqC,YAArC;AAOA,MAAMC,SAAS,GAAGF,iBAAiB,CACjC,OAA6BG,CAA7B,YAA6C;AAAA,MAA5C;AAAEC,IAAAA,CAAF;AAAKC,IAAAA,CAAL;AAAQ,OAAGC;AAAX,GAA4C;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC3C,QAAM;AAAEC,IAAAA,MAAF;AAAUC,IAAAA,SAAV;AAAqBC,IAAAA,IAArB;AAA2BC,IAAAA,WAA3B;AAAwCC,IAAAA;AAAxC,MACJX,oBAAoB,CAACM,IAAD,EAAOD,aAAP,CADtB;AAEA,SAAOC,IAAI,CAACM,MAAL,CAAYC,kBAAZ,CACLV,CADK,EAELC,CAFK,EAGLG,MAHK,EAILC,SAJK,EAKLC,IALK,EAMLC,WANK,EAOLC,KAPK,CAAP;AASD,CAbgC,CAAnC;AAgBA,OAAO,MAAMG,cAAc,GAAIC,KAAD,IAA+C;AAC3E,sBAAO;AAAe,IAAA,SAAS,EAAEd;AAA1B,KAAyCc,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { AnimatedProps } from \"../../processors\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { Vector } from \"../../../skia/types\";\n\nimport type { GradientProps } from \"./Gradient\";\nimport { processGradientProps } from \"./Gradient\";\n\nexport interface RadialGradientProps extends GradientProps {\n c: Vector;\n r: number;\n}\n\nconst onDeclare = createDeclaration<RadialGradientProps>(\n ({ c, r, ...gradientProps }, _, { Skia }) => {\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(Skia, gradientProps);\n return Skia.Shader.MakeRadialGradient(\n c,\n r,\n colors,\n positions,\n mode,\n localMatrix,\n flags\n );\n }\n);\n\nexport const RadialGradient = (props: AnimatedProps<RadialGradientProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["RadialGradient.tsx"],"names":["React","RadialGradient","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,cAAc,GAAIC,KAAD,IAA2C;AACvE,sBAAO,wCAAsBA,KAAtB,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { RadialGradientProps } from \"../../../dom/types\";\n\nexport const RadialGradient = (props: SkiaProps<RadialGradientProps>) => {\n return <skRadialGradient {...props} />;\n};\n"]}
@@ -1,24 +1,6 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { isShader, processUniforms } from "../../../skia/types";
5
- import { createDeclaration } from "../../nodes/Declaration";
6
- import { localMatrix } from "../../processors";
7
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
8
- let {
9
- uniforms,
10
- source,
11
- ...transform
12
- } = _ref;
13
- let {
14
- Skia
15
- } = _ref2;
16
- return source.makeShaderWithChildren(processUniforms(source, uniforms), children.filter(isShader), localMatrix(Skia.Matrix(), transform));
17
- });
18
2
  export const Shader = props => {
19
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
20
- onDeclare: onDeclare
21
- }, props));
3
+ return /*#__PURE__*/React.createElement("skShader", props);
22
4
  };
23
5
  Shader.defaultProps = {
24
6
  uniforms: []
@@ -1 +1 @@
1
- {"version":3,"sources":["Shader.tsx"],"names":["React","isShader","processUniforms","createDeclaration","localMatrix","onDeclare","children","uniforms","source","transform","Skia","makeShaderWithChildren","filter","Matrix","Shader","props","defaultProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAIA,SAASC,QAAT,EAAmBC,eAAnB,QAA0C,qBAA1C;AAEA,SAASC,iBAAT,QAAkC,yBAAlC;AACA,SAASC,WAAT,QAA4B,kBAA5B;AAQA,MAAMC,SAAS,GAAGF,iBAAiB,CACjC,OAAqCG,QAArC,YAA4D;AAAA,MAA3D;AAAEC,IAAAA,QAAF;AAAYC,IAAAA,MAAZ;AAAoB,OAAGC;AAAvB,GAA2D;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC1D,SAAOF,MAAM,CAACG,sBAAP,CACLT,eAAe,CAACM,MAAD,EAASD,QAAT,CADV,EAELD,QAAQ,CAACM,MAAT,CAAgBX,QAAhB,CAFK,EAGLG,WAAW,CAACM,IAAI,CAACG,MAAL,EAAD,EAAgBJ,SAAhB,CAHN,CAAP;AAKD,CAPgC,CAAnC;AAUA,OAAO,MAAMK,MAAM,GAAIC,KAAD,IAAuC;AAC3D,sBAAO;AAAe,IAAA,SAAS,EAAEV;AAA1B,KAAyCU,KAAzC,EAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;AACpBT,EAAAA,QAAQ,EAAE;AADU,CAAtB","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport type { SkRuntimeEffect, Uniforms } from \"../../../skia/types\";\nimport { isShader, processUniforms } from \"../../../skia/types\";\nimport type { AnimatedProps, TransformProps } from \"../../processors\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport { localMatrix } from \"../../processors\";\n\nexport interface ShaderProps extends TransformProps {\n source: SkRuntimeEffect;\n uniforms: Uniforms;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<ShaderProps>(\n ({ uniforms, source, ...transform }, children, { Skia }) => {\n return source.makeShaderWithChildren(\n processUniforms(source, uniforms),\n children.filter(isShader),\n localMatrix(Skia.Matrix(), transform)\n );\n }\n);\n\nexport const Shader = (props: AnimatedProps<ShaderProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nShader.defaultProps = {\n uniforms: [],\n};\n"]}
1
+ {"version":3,"sources":["Shader.tsx"],"names":["React","Shader","props","defaultProps","uniforms"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,MAAM,GAAIC,KAAD,IAAmC;AACvD,sBAAO,gCAAcA,KAAd,CAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;AACpBC,EAAAA,QAAQ,EAAE;AADU,CAAtB","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { ShaderProps } from \"../../../dom/types\";\n\nexport const Shader = (props: SkiaProps<ShaderProps>) => {\n return <skShader {...props} />;\n};\n\nShader.defaultProps = {\n uniforms: [],\n};\n"]}
@@ -1,30 +1,5 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { createDeclaration } from "../../nodes/Declaration";
5
- import { processGradientProps } from "./Gradient";
6
- const onDeclare = createDeclaration((_ref, _, _ref2) => {
7
- let {
8
- c,
9
- start,
10
- end,
11
- ...gradientProps
12
- } = _ref;
13
- let {
14
- Skia
15
- } = _ref2;
16
- const {
17
- colors,
18
- positions,
19
- mode,
20
- localMatrix,
21
- flags
22
- } = processGradientProps(Skia, gradientProps);
23
- return Skia.Shader.MakeSweepGradient(c.x, c.y, colors, positions, mode, localMatrix, flags, start, end);
24
- });
25
2
  export const SweepGradient = props => {
26
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
27
- onDeclare: onDeclare
28
- }, props));
3
+ return /*#__PURE__*/React.createElement("skSweepGradient", props);
29
4
  };
30
5
  //# sourceMappingURL=SweepGradient.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["SweepGradient.tsx"],"names":["React","createDeclaration","processGradientProps","onDeclare","_","c","start","end","gradientProps","Skia","colors","positions","mode","localMatrix","flags","Shader","MakeSweepGradient","x","y","SweepGradient","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,iBAAT,QAAkC,yBAAlC;AAIA,SAASC,oBAAT,QAAqC,YAArC;AAQA,MAAMC,SAAS,GAAGF,iBAAiB,CACjC,OAAsCG,CAAtC,YAAsD;AAAA,MAArD;AAAEC,IAAAA,CAAF;AAAKC,IAAAA,KAAL;AAAYC,IAAAA,GAAZ;AAAiB,OAAGC;AAApB,GAAqD;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AACpD,QAAM;AAAEC,IAAAA,MAAF;AAAUC,IAAAA,SAAV;AAAqBC,IAAAA,IAArB;AAA2BC,IAAAA,WAA3B;AAAwCC,IAAAA;AAAxC,MACJZ,oBAAoB,CAACO,IAAD,EAAOD,aAAP,CADtB;AAEA,SAAOC,IAAI,CAACM,MAAL,CAAYC,iBAAZ,CACLX,CAAC,CAACY,CADG,EAELZ,CAAC,CAACa,CAFG,EAGLR,MAHK,EAILC,SAJK,EAKLC,IALK,EAMLC,WANK,EAOLC,KAPK,EAQLR,KARK,EASLC,GATK,CAAP;AAWD,CAfgC,CAAnC;AAkBA,OAAO,MAAMY,aAAa,GAAIC,KAAD,IAA8C;AACzE,sBAAO;AAAe,IAAA,SAAS,EAAEjB;AAA1B,KAAyCiB,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { AnimatedProps } from \"../../processors\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { Vector } from \"../../../skia/types\";\n\nimport type { GradientProps } from \"./Gradient\";\nimport { processGradientProps } from \"./Gradient\";\n\nexport interface SweepGradientProps extends GradientProps {\n c: Vector;\n start?: number;\n end?: number;\n}\n\nconst onDeclare = createDeclaration<SweepGradientProps>(\n ({ c, start, end, ...gradientProps }, _, { Skia }) => {\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(Skia, gradientProps);\n return Skia.Shader.MakeSweepGradient(\n c.x,\n c.y,\n colors,\n positions,\n mode,\n localMatrix,\n flags,\n start,\n end\n );\n }\n);\n\nexport const SweepGradient = (props: AnimatedProps<SweepGradientProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["SweepGradient.tsx"],"names":["React","SweepGradient","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,aAAa,GAAIC,KAAD,IAA0C;AACrE,sBAAO,uCAAqBA,KAArB,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SweepGradientProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const SweepGradient = (props: SkiaProps<SweepGradientProps>) => {\n return <skSweepGradient {...props} />;\n};\n"]}
@@ -1,25 +1,6 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { createDeclaration } from "../../nodes/Declaration";
5
- const onDeclare = createDeclaration((_ref, _, _ref2) => {
6
- let {
7
- freqX,
8
- freqY,
9
- octaves,
10
- seed,
11
- tileWidth,
12
- tileHeight
13
- } = _ref;
14
- let {
15
- Skia
16
- } = _ref2;
17
- return Skia.Shader.MakeTurbulence(freqX, freqY, octaves, seed, tileWidth, tileHeight);
18
- });
19
2
  export const Turbulence = props => {
20
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
21
- onDeclare: onDeclare
22
- }, props));
3
+ return /*#__PURE__*/React.createElement("skTurbulence", props);
23
4
  };
24
5
  Turbulence.defaultProps = {
25
6
  seed: 0,
@@ -1 +1 @@
1
- {"version":3,"sources":["Turbulence.tsx"],"names":["React","createDeclaration","onDeclare","_","freqX","freqY","octaves","seed","tileWidth","tileHeight","Skia","Shader","MakeTurbulence","Turbulence","props","defaultProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,SAASC,iBAAT,QAAkC,yBAAlC;AAYA,MAAMC,SAAS,GAAGD,iBAAiB,CACjC,OAAyDE,CAAzD,YAAyE;AAAA,MAAxE;AAAEC,IAAAA,KAAF;AAASC,IAAAA,KAAT;AAAgBC,IAAAA,OAAhB;AAAyBC,IAAAA,IAAzB;AAA+BC,IAAAA,SAA/B;AAA0CC,IAAAA;AAA1C,GAAwE;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AACvE,SAAOA,IAAI,CAACC,MAAL,CAAYC,cAAZ,CACLR,KADK,EAELC,KAFK,EAGLC,OAHK,EAILC,IAJK,EAKLC,SALK,EAMLC,UANK,CAAP;AAQD,CAVgC,CAAnC;AAaA,OAAO,MAAMI,UAAU,GAAIC,KAAD,IAA2C;AACnE,sBAAO;AAAe,IAAA,SAAS,EAAEZ;AAA1B,KAAyCY,KAAzC,EAAP;AACD,CAFM;AAIPD,UAAU,CAACE,YAAX,GAA0B;AACxBR,EAAAA,IAAI,EAAE,CADkB;AAExBC,EAAAA,SAAS,EAAE,CAFa;AAGxBC,EAAAA,UAAU,EAAE;AAHY,CAA1B","sourcesContent":["import React from \"react\";\n\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nexport interface TurbulenceProps {\n freqX: number;\n freqY: number;\n octaves: number;\n seed: number;\n tileWidth: number;\n tileHeight: number;\n}\n\nconst onDeclare = createDeclaration<TurbulenceProps>(\n ({ freqX, freqY, octaves, seed, tileWidth, tileHeight }, _, { Skia }) => {\n return Skia.Shader.MakeTurbulence(\n freqX,\n freqY,\n octaves,\n seed,\n tileWidth,\n tileHeight\n );\n }\n);\n\nexport const Turbulence = (props: AnimatedProps<TurbulenceProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nTurbulence.defaultProps = {\n seed: 0,\n tileWidth: 0,\n tileHeight: 0,\n};\n"]}
1
+ {"version":3,"sources":["Turbulence.tsx"],"names":["React","Turbulence","props","defaultProps","seed","tileWidth","tileHeight"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,UAAU,GAAIC,KAAD,IAAuC;AAC/D,sBAAO,oCAAkBA,KAAlB,CAAP;AACD,CAFM;AAIPD,UAAU,CAACE,YAAX,GAA0B;AACxBC,EAAAA,IAAI,EAAE,CADkB;AAExBC,EAAAA,SAAS,EAAE,CAFa;AAGxBC,EAAAA,UAAU,EAAE;AAHY,CAA1B","sourcesContent":["import React from \"react\";\n\nimport type { TurbulenceProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const Turbulence = (props: SkiaProps<TurbulenceProps>) => {\n return <skTurbulence {...props} />;\n};\n\nTurbulence.defaultProps = {\n seed: 0,\n tileWidth: 0,\n tileHeight: 0,\n};\n"]}
@@ -1,31 +1,5 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { createDeclaration } from "../../nodes/Declaration";
5
- import { processGradientProps } from "./Gradient";
6
- const onDeclare = createDeclaration((_ref, _, _ref2) => {
7
- let {
8
- start,
9
- startR,
10
- end,
11
- endR,
12
- ...gradientProps
13
- } = _ref;
14
- let {
15
- Skia
16
- } = _ref2;
17
- const {
18
- colors,
19
- positions,
20
- mode,
21
- localMatrix,
22
- flags
23
- } = processGradientProps(Skia, gradientProps);
24
- return Skia.Shader.MakeTwoPointConicalGradient(start, startR, end, endR, colors, positions, mode, localMatrix, flags);
25
- });
26
2
  export const TwoPointConicalGradient = props => {
27
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
28
- onDeclare: onDeclare
29
- }, props));
3
+ return /*#__PURE__*/React.createElement("skTwoPointConicalGradient", props);
30
4
  };
31
5
  //# sourceMappingURL=TwoPointConicalGradient.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["TwoPointConicalGradient.tsx"],"names":["React","createDeclaration","processGradientProps","onDeclare","_","start","startR","end","endR","gradientProps","Skia","colors","positions","mode","localMatrix","flags","Shader","MakeTwoPointConicalGradient","TwoPointConicalGradient","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,iBAAT,QAAkC,yBAAlC;AAIA,SAASC,oBAAT,QAAqC,YAArC;AASA,MAAMC,SAAS,GAAGF,iBAAiB,CACjC,OAAiDG,CAAjD,YAAiE;AAAA,MAAhE;AAAEC,IAAAA,KAAF;AAASC,IAAAA,MAAT;AAAiBC,IAAAA,GAAjB;AAAsBC,IAAAA,IAAtB;AAA4B,OAAGC;AAA/B,GAAgE;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC/D,QAAM;AAAEC,IAAAA,MAAF;AAAUC,IAAAA,SAAV;AAAqBC,IAAAA,IAArB;AAA2BC,IAAAA,WAA3B;AAAwCC,IAAAA;AAAxC,MACJb,oBAAoB,CAACQ,IAAD,EAAOD,aAAP,CADtB;AAEA,SAAOC,IAAI,CAACM,MAAL,CAAYC,2BAAZ,CACLZ,KADK,EAELC,MAFK,EAGLC,GAHK,EAILC,IAJK,EAKLG,MALK,EAMLC,SANK,EAOLC,IAPK,EAQLC,WARK,EASLC,KATK,CAAP;AAWD,CAfgC,CAAnC;AAkBA,OAAO,MAAMG,uBAAuB,GAClCC,KADqC,IAElC;AACH,sBAAO;AAAe,IAAA,SAAS,EAAEhB;AAA1B,KAAyCgB,KAAzC,EAAP;AACD,CAJM","sourcesContent":["import React from \"react\";\n\nimport type { AnimatedProps } from \"../../processors\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { Vector } from \"../../../skia/types\";\n\nimport type { GradientProps } from \"./Gradient\";\nimport { processGradientProps } from \"./Gradient\";\n\nexport interface TwoPointConicalGradientProps extends GradientProps {\n start: Vector;\n startR: number;\n end: Vector;\n endR: number;\n}\n\nconst onDeclare = createDeclaration<TwoPointConicalGradientProps>(\n ({ start, startR, end, endR, ...gradientProps }, _, { Skia }) => {\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(Skia, gradientProps);\n return Skia.Shader.MakeTwoPointConicalGradient(\n start,\n startR,\n end,\n endR,\n colors,\n positions,\n mode,\n localMatrix,\n flags\n );\n }\n);\n\nexport const TwoPointConicalGradient = (\n props: AnimatedProps<TwoPointConicalGradientProps>\n) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["TwoPointConicalGradient.tsx"],"names":["React","TwoPointConicalGradient","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,uBAAuB,GAClCC,KADqC,IAElC;AACH,sBAAO,iDAA+BA,KAA/B,CAAP;AACD,CAJM","sourcesContent":["import React from \"react\";\n\nimport type { TwoPointConicalGradientProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const TwoPointConicalGradient = (\n props: SkiaProps<TwoPointConicalGradientProps>\n) => {\n return <skTwoPointConicalGradient {...props} />;\n};\n"]}
@@ -1,103 +1,8 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { ClipOp, BlurStyle } from "../../../skia/types";
5
- import { createDrawing } from "../../nodes";
6
- import { createDeclaration } from "../../nodes/Declaration";
7
- import { processColor } from "../../processors/Color";
8
- import { isRRect } from "../../../skia/types/RRect";
9
-
10
- const inflate = function (Skia, box, dx, dy) {
11
- let tx = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
12
- let ty = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
13
- return Skia.RRectXY(Skia.XYWHRect(box.rect.x - dx + tx, box.rect.y - dy + ty, box.rect.width + 2 * dx, box.rect.height + 2 * dy), box.rx + dx, box.ry + dy);
14
- };
15
-
16
- const deflate = function (Skia, box, dx, dy) {
17
- let tx = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
18
- let ty = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
19
- return inflate(Skia, box, -dx, -dy, tx, ty);
20
- };
21
-
22
- const onDeclare = createDeclaration(_ref => {
23
- let {
24
- dx,
25
- dy,
26
- spread,
27
- blur,
28
- color,
29
- inner
30
- } = _ref;
31
- return {
32
- dx,
33
- dy,
34
- spread,
35
- blur,
36
- color,
37
- inner,
38
- __typename__: "BoxShadow"
39
- };
40
- });
41
2
  export const BoxShadow = props => {
42
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
43
- onDeclare: onDeclare
44
- }, props));
3
+ return /*#__PURE__*/React.createElement("skBoxShadow", props);
45
4
  };
46
-
47
- const isBoxShadow = s => s.__typename__ === "BoxShadow";
48
-
49
- const onDraw = createDrawing((ctx, _ref2, node) => {
50
- let {
51
- box: defaultBox
52
- } = _ref2;
53
- const {
54
- canvas,
55
- paint,
56
- opacity,
57
- Skia
58
- } = ctx;
59
- const box = isRRect(defaultBox) ? defaultBox : Skia.RRectXY(defaultBox, 0, 0);
60
- const shadows = node.visit(ctx).filter(isBoxShadow);
61
- shadows.filter(shadow => !shadow.inner).map(shadow => {
62
- const {
63
- color = "black",
64
- blur,
65
- spread = 0,
66
- dx = 0,
67
- dy = 0
68
- } = shadow;
69
- const lPaint = Skia.Paint();
70
- lPaint.setColor(processColor(Skia, color, opacity));
71
- lPaint.setMaskFilter(Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true));
72
- canvas.drawRRect(inflate(Skia, box, spread, spread, dx, dy), lPaint);
73
- });
74
- canvas.drawRRect(box, paint);
75
- shadows.filter(shadow => shadow.inner).map(shadow => {
76
- const {
77
- color = "black",
78
- blur,
79
- spread = 0,
80
- dx = 0,
81
- dy = 0
82
- } = shadow;
83
- const delta = Skia.Point(10 + Math.abs(dx), 10 + Math.abs(dy));
84
- canvas.save();
85
- canvas.clipRRect(box, ClipOp.Intersect, false);
86
- const lPaint = Skia.Paint();
87
- lPaint.setColor(processColor(Skia, color, opacity));
88
- lPaint.setMaskFilter(Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true));
89
- const inner = deflate(Skia, box, spread, spread, dx, dy);
90
- const outer = inflate(Skia, box, delta.x, delta.y);
91
- canvas.drawDRRect(outer, inner, lPaint);
92
- canvas.restore();
93
- });
94
- });
95
5
  export const Box = props => {
96
- return /*#__PURE__*/React.createElement("skDrawing", _extends({
97
- onDraw: onDraw
98
- }, props));
99
- };
100
- Box.defaultProps = {
101
- shadows: []
6
+ return /*#__PURE__*/React.createElement("skBox", props);
102
7
  };
103
8
  //# sourceMappingURL=Box.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Box.tsx"],"names":["React","ClipOp","BlurStyle","createDrawing","createDeclaration","processColor","isRRect","inflate","Skia","box","dx","dy","tx","ty","RRectXY","XYWHRect","rect","x","y","width","height","rx","ry","deflate","onDeclare","spread","blur","color","inner","__typename__","BoxShadow","props","isBoxShadow","s","onDraw","ctx","node","defaultBox","canvas","paint","opacity","shadows","visit","filter","shadow","map","lPaint","Paint","setColor","setMaskFilter","MaskFilter","MakeBlur","Normal","drawRRect","delta","Point","Math","abs","save","clipRRect","Intersect","outer","drawDRRect","restore","Box","defaultProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AASA,SAASC,MAAT,EAAiBC,SAAjB,QAAkC,qBAAlC;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,SAASC,iBAAT,QAAkC,yBAAlC;AACA,SAASC,YAAT,QAA6B,wBAA7B;AACA,SAASC,OAAT,QAAwB,2BAAxB;;AAEA,MAAMC,OAAO,GAAG,UACdC,IADc,EAEdC,GAFc,EAGdC,EAHc,EAIdC,EAJc;AAAA,MAKdC,EALc,uEAKT,CALS;AAAA,MAMdC,EANc,uEAMT,CANS;AAAA,SAQdL,IAAI,CAACM,OAAL,CACEN,IAAI,CAACO,QAAL,CACEN,GAAG,CAACO,IAAJ,CAASC,CAAT,GAAaP,EAAb,GAAkBE,EADpB,EAEEH,GAAG,CAACO,IAAJ,CAASE,CAAT,GAAaP,EAAb,GAAkBE,EAFpB,EAGEJ,GAAG,CAACO,IAAJ,CAASG,KAAT,GAAiB,IAAIT,EAHvB,EAIED,GAAG,CAACO,IAAJ,CAASI,MAAT,GAAkB,IAAIT,EAJxB,CADF,EAOEF,GAAG,CAACY,EAAJ,GAASX,EAPX,EAQED,GAAG,CAACa,EAAJ,GAASX,EARX,CARc;AAAA,CAAhB;;AAmBA,MAAMY,OAAO,GAAG,UACdf,IADc,EAEdC,GAFc,EAGdC,EAHc,EAIdC,EAJc;AAAA,MAKdC,EALc,uEAKT,CALS;AAAA,MAMdC,EANc,uEAMT,CANS;AAAA,SAOXN,OAAO,CAACC,IAAD,EAAOC,GAAP,EAAY,CAACC,EAAb,EAAiB,CAACC,EAAlB,EAAsBC,EAAtB,EAA0BC,EAA1B,CAPI;AAAA,CAAhB;;AAoBA,MAAMW,SAAS,GAAGpB,iBAAiB,CACjC,QAA4C;AAAA,MAA3C;AAAEM,IAAAA,EAAF;AAAMC,IAAAA,EAAN;AAAUc,IAAAA,MAAV;AAAkBC,IAAAA,IAAlB;AAAwBC,IAAAA,KAAxB;AAA+BC,IAAAA;AAA/B,GAA2C;AAC1C,SAAO;AAAElB,IAAAA,EAAF;AAAMC,IAAAA,EAAN;AAAUc,IAAAA,MAAV;AAAkBC,IAAAA,IAAlB;AAAwBC,IAAAA,KAAxB;AAA+BC,IAAAA,KAA/B;AAAsCC,IAAAA,YAAY,EAAE;AAApD,GAAP;AACD,CAHgC,CAAnC;AAMA,OAAO,MAAMC,SAAS,GAAIC,KAAD,IAA0C;AACjE,sBAAO;AAAe,IAAA,SAAS,EAAEP;AAA1B,KAAyCO,KAAzC,EAAP;AACD,CAFM;;AAIP,MAAMC,WAAW,GAAIC,CAAD,IAClBA,CAAC,CAACJ,YAAF,KAAmB,WADrB;;AAOA,MAAMK,MAAM,GAAG/B,aAAa,CAAW,CAACgC,GAAD,SAA2BC,IAA3B,KAAoC;AAAA,MAA9B;AAAE3B,IAAAA,GAAG,EAAE4B;AAAP,GAA8B;AACzE,QAAM;AAAEC,IAAAA,MAAF;AAAUC,IAAAA,KAAV;AAAiBC,IAAAA,OAAjB;AAA0BhC,IAAAA;AAA1B,MAAmC2B,GAAzC;AACA,QAAM1B,GAAG,GAAGH,OAAO,CAAC+B,UAAD,CAAP,GAAsBA,UAAtB,GAAmC7B,IAAI,CAACM,OAAL,CAAauB,UAAb,EAAyB,CAAzB,EAA4B,CAA5B,CAA/C;AACA,QAAMI,OAAO,GAAGL,IAAI,CAACM,KAAL,CAAWP,GAAX,EAAgBQ,MAAhB,CAAsCX,WAAtC,CAAhB;AACAS,EAAAA,OAAO,CACJE,MADH,CACWC,MAAD,IAAY,CAACA,MAAM,CAAChB,KAD9B,EAEGiB,GAFH,CAEQD,MAAD,IAAY;AACf,UAAM;AAAEjB,MAAAA,KAAK,GAAG,OAAV;AAAmBD,MAAAA,IAAnB;AAAyBD,MAAAA,MAAM,GAAG,CAAlC;AAAqCf,MAAAA,EAAE,GAAG,CAA1C;AAA6CC,MAAAA,EAAE,GAAG;AAAlD,QAAwDiC,MAA9D;AACA,UAAME,MAAM,GAAGtC,IAAI,CAACuC,KAAL,EAAf;AACAD,IAAAA,MAAM,CAACE,QAAP,CAAgB3C,YAAY,CAACG,IAAD,EAAOmB,KAAP,EAAca,OAAd,CAA5B;AACAM,IAAAA,MAAM,CAACG,aAAP,CACEzC,IAAI,CAAC0C,UAAL,CAAgBC,QAAhB,CAAyBjD,SAAS,CAACkD,MAAnC,EAA2C1B,IAA3C,EAAiD,IAAjD,CADF;AAGAY,IAAAA,MAAM,CAACe,SAAP,CAAiB9C,OAAO,CAACC,IAAD,EAAOC,GAAP,EAAYgB,MAAZ,EAAoBA,MAApB,EAA4Bf,EAA5B,EAAgCC,EAAhC,CAAxB,EAA6DmC,MAA7D;AACD,GAVH;AAWAR,EAAAA,MAAM,CAACe,SAAP,CAAiB5C,GAAjB,EAAsB8B,KAAtB;AAEAE,EAAAA,OAAO,CACJE,MADH,CACWC,MAAD,IAAYA,MAAM,CAAChB,KAD7B,EAEGiB,GAFH,CAEQD,MAAD,IAAY;AACf,UAAM;AAAEjB,MAAAA,KAAK,GAAG,OAAV;AAAmBD,MAAAA,IAAnB;AAAyBD,MAAAA,MAAM,GAAG,CAAlC;AAAqCf,MAAAA,EAAE,GAAG,CAA1C;AAA6CC,MAAAA,EAAE,GAAG;AAAlD,QAAwDiC,MAA9D;AACA,UAAMU,KAAK,GAAG9C,IAAI,CAAC+C,KAAL,CAAW,KAAKC,IAAI,CAACC,GAAL,CAAS/C,EAAT,CAAhB,EAA8B,KAAK8C,IAAI,CAACC,GAAL,CAAS9C,EAAT,CAAnC,CAAd;AACA2B,IAAAA,MAAM,CAACoB,IAAP;AACApB,IAAAA,MAAM,CAACqB,SAAP,CAAiBlD,GAAjB,EAAsBR,MAAM,CAAC2D,SAA7B,EAAwC,KAAxC;AACA,UAAMd,MAAM,GAAGtC,IAAI,CAACuC,KAAL,EAAf;AACAD,IAAAA,MAAM,CAACE,QAAP,CAAgB3C,YAAY,CAACG,IAAD,EAAOmB,KAAP,EAAca,OAAd,CAA5B;AACAM,IAAAA,MAAM,CAACG,aAAP,CACEzC,IAAI,CAAC0C,UAAL,CAAgBC,QAAhB,CAAyBjD,SAAS,CAACkD,MAAnC,EAA2C1B,IAA3C,EAAiD,IAAjD,CADF;AAGA,UAAME,KAAK,GAAGL,OAAO,CAACf,IAAD,EAAOC,GAAP,EAAYgB,MAAZ,EAAoBA,MAApB,EAA4Bf,EAA5B,EAAgCC,EAAhC,CAArB;AACA,UAAMkD,KAAK,GAAGtD,OAAO,CAACC,IAAD,EAAOC,GAAP,EAAY6C,KAAK,CAACrC,CAAlB,EAAqBqC,KAAK,CAACpC,CAA3B,CAArB;AACAoB,IAAAA,MAAM,CAACwB,UAAP,CAAkBD,KAAlB,EAAyBjC,KAAzB,EAAgCkB,MAAhC;AACAR,IAAAA,MAAM,CAACyB,OAAP;AACD,GAhBH;AAiBD,CAlC2B,CAA5B;AAoCA,OAAO,MAAMC,GAAG,GAAIjC,KAAD,IAAoC;AACrD,sBAAO;AAAW,IAAA,MAAM,EAAEG;AAAnB,KAA+BH,KAA/B,EAAP;AACD,CAFM;AAIPiC,GAAG,CAACC,YAAJ,GAAmB;AACjBxB,EAAAA,OAAO,EAAE;AADQ,CAAnB","sourcesContent":["import React from \"react\";\n\nimport type {\n Color,\n SkRRect,\n SkJSIInstance,\n SkRect,\n Skia,\n} from \"../../../skia/types\";\nimport { ClipOp, BlurStyle } from \"../../../skia/types\";\nimport { createDrawing } from \"../../nodes\";\nimport type { AnimatedProps, CustomPaintProps } from \"../../processors\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport { processColor } from \"../../processors/Color\";\nimport { isRRect } from \"../../../skia/types/RRect\";\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\ninterface BoxShadowProps {\n dx?: number;\n dy?: number;\n spread?: number;\n blur: number;\n color?: Color;\n inner?: boolean;\n}\n\ninterface BoxShadowDecl extends BoxShadowProps, SkJSIInstance<\"BoxShadow\"> {}\n\nconst onDeclare = createDeclaration<BoxShadowProps>(\n ({ dx, dy, spread, blur, color, inner }) => {\n return { dx, dy, spread, blur, color, inner, __typename__: \"BoxShadow\" };\n }\n);\n\nexport const BoxShadow = (props: AnimatedProps<BoxShadowProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nconst isBoxShadow = (s: SkJSIInstance<string>): s is BoxShadowDecl =>\n s.__typename__ === \"BoxShadow\";\n\ninterface BoxProps extends CustomPaintProps {\n box: SkRRect | SkRect;\n}\n\nconst onDraw = createDrawing<BoxProps>((ctx, { box: defaultBox }, node) => {\n const { canvas, paint, opacity, Skia } = ctx;\n const box = isRRect(defaultBox) ? defaultBox : Skia.RRectXY(defaultBox, 0, 0);\n const shadows = node.visit(ctx).filter<BoxShadowDecl>(isBoxShadow);\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 = Skia.Paint();\n lPaint.setColor(processColor(Skia, color, opacity));\n lPaint.setMaskFilter(\n Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)\n );\n canvas.drawRRect(inflate(Skia, box, spread, spread, dx, dy), lPaint);\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 = Skia.Point(10 + Math.abs(dx), 10 + Math.abs(dy));\n canvas.save();\n canvas.clipRRect(box, ClipOp.Intersect, false);\n const lPaint = Skia.Paint();\n lPaint.setColor(processColor(Skia, color, opacity));\n lPaint.setMaskFilter(\n Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)\n );\n const inner = deflate(Skia, box, spread, spread, dx, dy);\n const outer = inflate(Skia, box, delta.x, delta.y);\n canvas.drawDRRect(outer, inner, lPaint);\n canvas.restore();\n });\n});\n\nexport const Box = (props: AnimatedProps<BoxProps>) => {\n return <skDrawing onDraw={onDraw} {...props} />;\n};\n\nBox.defaultProps = {\n shadows: [],\n};\n"]}
1
+ {"version":3,"sources":["Box.tsx"],"names":["React","BoxShadow","props","Box"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,SAAS,GAAIC,KAAD,IAAsC;AAC7D,sBAAO,mCAAiBA,KAAjB,CAAP;AACD,CAFM;AAIP,OAAO,MAAMC,GAAG,GAAID,KAAD,IAAgC;AACjD,sBAAO,6BAAWA,KAAX,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { BoxProps, BoxShadowProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const BoxShadow = (props: SkiaProps<BoxShadowProps>) => {\n return <skBoxShadow {...props} />;\n};\n\nexport const Box = (props: SkiaProps<BoxProps>) => {\n return <skBox {...props} />;\n};\n"]}
@@ -1,24 +1,6 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { createDrawing } from "../../nodes/Drawing";
5
- import { processCircle } from "../../processors";
6
- const onDraw = createDrawing((_ref, def) => {
7
- let {
8
- canvas,
9
- paint,
10
- Skia
11
- } = _ref;
12
- const {
13
- c,
14
- r
15
- } = processCircle(Skia, def);
16
- canvas.drawCircle(c.x, c.y, r, paint);
17
- });
18
2
  export const Circle = props => {
19
- return /*#__PURE__*/React.createElement("skDrawing", _extends({
20
- onDraw: onDraw
21
- }, props));
3
+ return /*#__PURE__*/React.createElement("skCircle", props);
22
4
  };
23
5
  Circle.defaultProps = {
24
6
  c: {
@@ -1 +1 @@
1
- {"version":3,"sources":["Circle.tsx"],"names":["React","createDrawing","processCircle","onDraw","def","canvas","paint","Skia","c","r","drawCircle","x","y","Circle","props","defaultProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAOA,SAASC,aAAT,QAA8B,qBAA9B;AACA,SAASC,aAAT,QAA8B,kBAA9B;AAIA,MAAMC,MAAM,GAAGF,aAAa,CAAc,OAA0BG,GAA1B,KAAkC;AAAA,MAAjC;AAAEC,IAAAA,MAAF;AAAUC,IAAAA,KAAV;AAAiBC,IAAAA;AAAjB,GAAiC;AAC1E,QAAM;AAAEC,IAAAA,CAAF;AAAKC,IAAAA;AAAL,MAAWP,aAAa,CAACK,IAAD,EAAOH,GAAP,CAA9B;AACAC,EAAAA,MAAM,CAACK,UAAP,CAAkBF,CAAC,CAACG,CAApB,EAAuBH,CAAC,CAACI,CAAzB,EAA4BH,CAA5B,EAA+BH,KAA/B;AACD,CAH2B,CAA5B;AAKA,OAAO,MAAMO,MAAM,GAAIC,KAAD,IAAuC;AAC3D,sBAAO;AAAW,IAAA,MAAM,EAAEX;AAAnB,KAA+BW,KAA/B,EAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;AACpBP,EAAAA,CAAC,EAAE;AAAEG,IAAAA,CAAC,EAAE,CAAL;AAAQC,IAAAA,CAAC,EAAE;AAAX;AADiB,CAAtB","sourcesContent":["import React from \"react\";\n\nimport type {\n CustomPaintProps,\n AnimatedProps,\n CircleDef,\n} from \"../../processors\";\nimport { createDrawing } from \"../../nodes/Drawing\";\nimport { processCircle } from \"../../processors\";\n\nexport type CircleProps = CircleDef & CustomPaintProps;\n\nconst onDraw = createDrawing<CircleProps>(({ canvas, paint, Skia }, def) => {\n const { c, r } = processCircle(Skia, def);\n canvas.drawCircle(c.x, c.y, r, paint);\n});\n\nexport const Circle = (props: AnimatedProps<CircleProps>) => {\n return <skDrawing onDraw={onDraw} {...props} />;\n};\n\nCircle.defaultProps = {\n c: { x: 0, y: 0 },\n};\n"]}
1
+ {"version":3,"sources":["Circle.tsx"],"names":["React","Circle","props","defaultProps","c","x","y"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,MAAM,GAAIC,KAAD,IAAmC;AACvD,sBAAO,gCAAcA,KAAd,CAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;AACpBC,EAAAA,CAAC,EAAE;AAAEC,IAAAA,CAAC,EAAE,CAAL;AAAQC,IAAAA,CAAC,EAAE;AAAX;AADiB,CAAtB","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { CircleProps } from \"../../../dom/types\";\n\nexport const Circle = (props: SkiaProps<CircleProps>) => {\n return <skCircle {...props} />;\n};\n\nCircle.defaultProps = {\n c: { x: 0, y: 0 },\n};\n"]}
@@ -1,21 +1,5 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { createDrawing } from "../../nodes/Drawing";
5
- const onDraw = createDrawing((_ref, _ref2) => {
6
- let {
7
- canvas,
8
- paint
9
- } = _ref;
10
- let {
11
- inner,
12
- outer
13
- } = _ref2;
14
- canvas.drawDRRect(outer, inner, paint);
15
- });
16
2
  export const DiffRect = props => {
17
- return /*#__PURE__*/React.createElement("skDrawing", _extends({
18
- onDraw: onDraw
19
- }, props));
3
+ return /*#__PURE__*/React.createElement("skDiffRect", props);
20
4
  };
21
5
  //# sourceMappingURL=DiffRect.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["DiffRect.tsx"],"names":["React","createDrawing","onDraw","canvas","paint","inner","outer","drawDRRect","DiffRect","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,SAASC,aAAT,QAA8B,qBAA9B;AAOA,MAAMC,MAAM,GAAGD,aAAa,CAC1B,iBAAyC;AAAA,MAAxC;AAAEE,IAAAA,MAAF;AAAUC,IAAAA;AAAV,GAAwC;AAAA,MAArB;AAAEC,IAAAA,KAAF;AAASC,IAAAA;AAAT,GAAqB;AACvCH,EAAAA,MAAM,CAACI,UAAP,CAAkBD,KAAlB,EAAyBD,KAAzB,EAAgCD,KAAhC;AACD,CAHyB,CAA5B;AAMA,OAAO,MAAMI,QAAQ,GAAIC,KAAD,IAAyC;AAC/D,sBAAO;AAAW,IAAA,MAAM,EAAEP;AAAnB,KAA+BO,KAA/B,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { CustomPaintProps } from \"../../processors\";\nimport type { SkRRect } from \"../../../skia/types\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport { createDrawing } from \"../../nodes/Drawing\";\n\nexport interface DiffRectProps extends CustomPaintProps {\n inner: SkRRect;\n outer: SkRRect;\n}\n\nconst onDraw = createDrawing<DiffRectProps>(\n ({ canvas, paint }, { inner, outer }) => {\n canvas.drawDRRect(outer, inner, paint);\n }\n);\n\nexport const DiffRect = (props: AnimatedProps<DiffRectProps>) => {\n return <skDrawing onDraw={onDraw} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["DiffRect.tsx"],"names":["React","DiffRect","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,QAAQ,GAAIC,KAAD,IAAqC;AAC3D,sBAAO,kCAAgBA,KAAhB,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { DiffRectProps } from \"../../../dom/types\";\n\nexport const DiffRect = (props: SkiaProps<DiffRectProps>) => {\n return <skDiffRect {...props} />;\n};\n"]}
@@ -1,17 +1,5 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { createDrawing } from "../../nodes/Drawing";
5
- const onDraw = createDrawing(_ref => {
6
- let {
7
- canvas,
8
- paint
9
- } = _ref;
10
- canvas.drawPaint(paint);
11
- });
12
2
  export const Fill = props => {
13
- return /*#__PURE__*/React.createElement("skDrawing", _extends({
14
- onDraw: onDraw
15
- }, props));
3
+ return /*#__PURE__*/React.createElement("skFill", props);
16
4
  };
17
5
  //# sourceMappingURL=Fill.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Fill.tsx"],"names":["React","createDrawing","onDraw","canvas","paint","drawPaint","Fill","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAIA,SAASC,aAAT,QAA8B,qBAA9B;AAIA,MAAMC,MAAM,GAAGD,aAAa,CAAC,QAAuB;AAAA,MAAtB;AAAEE,IAAAA,MAAF;AAAUC,IAAAA;AAAV,GAAsB;AAClDD,EAAAA,MAAM,CAACE,SAAP,CAAiBD,KAAjB;AACD,CAF2B,CAA5B;AAIA,OAAO,MAAME,IAAI,GAAIC,KAAD,IAAqC;AACvD,sBAAO;AAAW,IAAA,MAAM,EAAEL;AAAnB,KAA+BK,KAA/B,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport type { CustomPaintProps } from \"../../processors/Paint\";\nimport { createDrawing } from \"../../nodes/Drawing\";\n\nexport type FillProps = CustomPaintProps;\n\nconst onDraw = createDrawing(({ canvas, paint }) => {\n canvas.drawPaint(paint);\n});\n\nexport const Fill = (props: AnimatedProps<FillProps>) => {\n return <skDrawing onDraw={onDraw} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["Fill.tsx"],"names":["React","Fill","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAwC;AAC1D,sBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { DrawingNodeProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const Fill = (props: SkiaProps<DrawingNodeProps>) => {\n return <skFill {...props} />;\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo } from "react";
2
- import { rect2rect, fitRects } from "../image";
2
+ import { fitRects, rect2rect } from "../../../dom/nodes";
3
3
  import { Group } from "../Group";
4
4
  export const fitbox = (fit, src, dst) => {
5
5
  const rects = fitRects(fit, src, dst);
@@ -1 +1 @@
1
- {"version":3,"sources":["FitBox.tsx"],"names":["React","useMemo","rect2rect","fitRects","Group","fitbox","fit","src","dst","rects","FitBox","children","transform","defaultProps"],"mappings":"AACA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AAGA,SAASC,SAAT,EAAoBC,QAApB,QAAoC,UAApC;AAEA,SAASC,KAAT,QAAsB,UAAtB;AASA,OAAO,MAAMC,MAAM,GAAG,CAACC,GAAD,EAAWC,GAAX,EAAwBC,GAAxB,KAAwC;AAC5D,QAAMC,KAAK,GAAGN,QAAQ,CAACG,GAAD,EAAMC,GAAN,EAAWC,GAAX,CAAtB;AACA,SAAON,SAAS,CAACO,KAAK,CAACF,GAAP,EAAYE,KAAK,CAACD,GAAlB,CAAhB;AACD,CAHM;AAKP,OAAO,MAAME,MAAM,GAAG,QAA2C;AAAA,MAA1C;AAAEJ,IAAAA,GAAF;AAAOC,IAAAA,GAAP;AAAYC,IAAAA,GAAZ;AAAiBG,IAAAA;AAAjB,GAA0C;AAC/D,QAAMC,SAAS,GAAGX,OAAO,CAAC,MAAMI,MAAM,CAACC,GAAD,EAAMC,GAAN,EAAWC,GAAX,CAAb,EAA8B,CAACA,GAAD,EAAMF,GAAN,EAAWC,GAAX,CAA9B,CAAzB;AACA,sBAAO,oBAAC,KAAD;AAAO,IAAA,SAAS,EAAEK;AAAlB,KAA8BD,QAA9B,CAAP;AACD,CAHM;AAKPD,MAAM,CAACG,YAAP,GAAsB;AACpBP,EAAAA,GAAG,EAAE;AADe,CAAtB","sourcesContent":["import type { ReactNode } from \"react\";\nimport React, { useMemo } from \"react\";\n\nimport type { Fit } from \"../image\";\nimport { rect2rect, fitRects } from \"../image\";\nimport type { SkRect } from \"../../../skia/types\";\nimport { Group } from \"../Group\";\n\ninterface FitProps {\n fit: Fit;\n src: SkRect;\n dst: SkRect;\n children: ReactNode | ReactNode[];\n}\n\nexport const fitbox = (fit: Fit, src: SkRect, dst: SkRect) => {\n const rects = fitRects(fit, src, dst);\n return rect2rect(rects.src, rects.dst);\n};\n\nexport const FitBox = ({ fit, src, dst, children }: FitProps) => {\n const transform = useMemo(() => fitbox(fit, src, dst), [dst, fit, src]);\n return <Group transform={transform}>{children}</Group>;\n};\n\nFitBox.defaultProps = {\n fit: \"contain\",\n};\n"]}
1
+ {"version":3,"sources":["FitBox.tsx"],"names":["React","useMemo","fitRects","rect2rect","Group","fitbox","fit","src","dst","rects","FitBox","children","transform","defaultProps"],"mappings":"AACA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AAGA,SAASC,QAAT,EAAmBC,SAAnB,QAAoC,oBAApC;AAEA,SAASC,KAAT,QAAsB,UAAtB;AASA,OAAO,MAAMC,MAAM,GAAG,CAACC,GAAD,EAAWC,GAAX,EAAwBC,GAAxB,KAAwC;AAC5D,QAAMC,KAAK,GAAGP,QAAQ,CAACI,GAAD,EAAMC,GAAN,EAAWC,GAAX,CAAtB;AACA,SAAOL,SAAS,CAACM,KAAK,CAACF,GAAP,EAAYE,KAAK,CAACD,GAAlB,CAAhB;AACD,CAHM;AAKP,OAAO,MAAME,MAAM,GAAG,QAA2C;AAAA,MAA1C;AAAEJ,IAAAA,GAAF;AAAOC,IAAAA,GAAP;AAAYC,IAAAA,GAAZ;AAAiBG,IAAAA;AAAjB,GAA0C;AAC/D,QAAMC,SAAS,GAAGX,OAAO,CAAC,MAAMI,MAAM,CAACC,GAAD,EAAMC,GAAN,EAAWC,GAAX,CAAb,EAA8B,CAACA,GAAD,EAAMF,GAAN,EAAWC,GAAX,CAA9B,CAAzB;AACA,sBAAO,oBAAC,KAAD;AAAO,IAAA,SAAS,EAAEK;AAAlB,KAA8BD,QAA9B,CAAP;AACD,CAHM;AAKPD,MAAM,CAACG,YAAP,GAAsB;AACpBP,EAAAA,GAAG,EAAE;AADe,CAAtB","sourcesContent":["import type { ReactNode } from \"react\";\nimport React, { useMemo } from \"react\";\n\nimport type { Fit } from \"../../../dom/nodes\";\nimport { fitRects, rect2rect } from \"../../../dom/nodes\";\nimport type { SkRect } from \"../../../skia/types\";\nimport { Group } from \"../Group\";\n\ninterface FitProps {\n fit: Fit;\n src: SkRect;\n dst: SkRect;\n children: ReactNode | ReactNode[];\n}\n\nexport const fitbox = (fit: Fit, src: SkRect, dst: SkRect) => {\n const rects = fitRects(fit, src, dst);\n return rect2rect(rects.src, rects.dst);\n};\n\nexport const FitBox = ({ fit, src, dst, children }: FitProps) => {\n const transform = useMemo(() => fitbox(fit, src, dst), [dst, fit, src]);\n return <Group transform={transform}>{children}</Group>;\n};\n\nFitBox.defaultProps = {\n fit: \"contain\",\n};\n"]}
@@ -1,21 +1,5 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { createDrawing } from "../../nodes/Drawing";
5
- const onDraw = createDrawing((_ref, _ref2) => {
6
- let {
7
- canvas,
8
- paint
9
- } = _ref;
10
- let {
11
- p1,
12
- p2
13
- } = _ref2;
14
- canvas.drawLine(p1.x, p1.y, p2.x, p2.y, paint);
15
- });
16
2
  export const Line = props => {
17
- return /*#__PURE__*/React.createElement("skDrawing", _extends({
18
- onDraw: onDraw
19
- }, props));
3
+ return /*#__PURE__*/React.createElement("skLine", props);
20
4
  };
21
5
  //# sourceMappingURL=Line.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Line.tsx"],"names":["React","createDrawing","onDraw","canvas","paint","p1","p2","drawLine","x","y","Line","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,aAAT,QAA8B,qBAA9B;AAOA,MAAMC,MAAM,GAAGD,aAAa,CAAY,iBAAmC;AAAA,MAAlC;AAAEE,IAAAA,MAAF;AAAUC,IAAAA;AAAV,GAAkC;AAAA,MAAf;AAAEC,IAAAA,EAAF;AAAMC,IAAAA;AAAN,GAAe;AACzEH,EAAAA,MAAM,CAACI,QAAP,CAAgBF,EAAE,CAACG,CAAnB,EAAsBH,EAAE,CAACI,CAAzB,EAA4BH,EAAE,CAACE,CAA/B,EAAkCF,EAAE,CAACG,CAArC,EAAwCL,KAAxC;AACD,CAF2B,CAA5B;AAIA,OAAO,MAAMM,IAAI,GAAIC,KAAD,IAAqC;AACvD,sBAAO;AAAW,IAAA,MAAM,EAAET;AAAnB,KAA+BS,KAA/B,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { CustomPaintProps, AnimatedProps } from \"../../processors\";\nimport { createDrawing } from \"../../nodes/Drawing\";\nimport type { Vector } from \"../../../skia/types\";\n\nexport interface LineProps extends CustomPaintProps {\n p1: Vector;\n p2: Vector;\n}\nconst onDraw = createDrawing<LineProps>(({ canvas, paint }, { p1, p2 }) => {\n canvas.drawLine(p1.x, p1.y, p2.x, p2.y, paint);\n});\n\nexport const Line = (props: AnimatedProps<LineProps>) => {\n return <skDrawing onDraw={onDraw} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["Line.tsx"],"names":["React","Line","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAiC;AACnD,sBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { LineProps } from \"../../../dom/types\";\n\nexport const Line = (props: SkiaProps<LineProps>) => {\n return <skLine {...props} />;\n};\n"]}
@@ -1,21 +1,6 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from "react";
4
- import { processRect } from "../../processors";
5
- import { createDrawing } from "../../nodes";
6
- const onDraw = createDrawing((_ref, rectProps) => {
7
- let {
8
- canvas,
9
- paint,
10
- Skia
11
- } = _ref;
12
- const rect = processRect(Skia, rectProps);
13
- canvas.drawOval(rect, paint);
14
- });
15
2
  export const Oval = props => {
16
- return /*#__PURE__*/React.createElement("skDrawing", _extends({
17
- onDraw: onDraw
18
- }, props));
3
+ return /*#__PURE__*/React.createElement("skOval", props);
19
4
  };
20
5
  Oval.defaultProps = {
21
6
  x: 0,