@shopify/react-native-skia 0.1.147 → 0.1.148

Sign up to get free protection for your applications and to get access to all the features.
Files changed (829) hide show
  1. package/lib/commonjs/dom/nodes/DrawingNode.js +84 -0
  2. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -0
  3. package/lib/commonjs/dom/nodes/GroupNode.js +28 -0
  4. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -0
  5. package/lib/commonjs/dom/nodes/JsiSkDOM.js +256 -0
  6. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -0
  7. package/lib/commonjs/dom/nodes/Node.js +158 -0
  8. package/lib/commonjs/dom/nodes/Node.js.map +1 -0
  9. package/lib/commonjs/dom/nodes/PaintContext.js +6 -0
  10. package/lib/commonjs/dom/nodes/PaintContext.js.map +1 -0
  11. package/lib/commonjs/dom/nodes/PaintNode.js +96 -0
  12. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -0
  13. package/lib/commonjs/dom/nodes/RenderNode.js +346 -0
  14. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -0
  15. package/lib/commonjs/{renderer/processors/Circles.js → dom/nodes/datatypes/Circle.js} +4 -2
  16. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -0
  17. package/lib/commonjs/{renderer/processors → dom/nodes/datatypes}/Color.js +0 -0
  18. package/lib/commonjs/{renderer/processors → dom/nodes/datatypes}/Color.js.map +1 -1
  19. package/lib/commonjs/dom/nodes/datatypes/Enum.js +11 -0
  20. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -0
  21. package/lib/commonjs/{renderer/components/image/BoxFit.js → dom/nodes/datatypes/Fitting.js} +2 -2
  22. package/lib/commonjs/{renderer/components/image/BoxFit.js.map → dom/nodes/datatypes/Fitting.js.map} +1 -1
  23. package/lib/commonjs/dom/nodes/datatypes/Gradient.js +65 -0
  24. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -0
  25. package/lib/commonjs/{renderer/processors/Paths.js → dom/nodes/datatypes/Path.js} +2 -2
  26. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -0
  27. package/lib/commonjs/{renderer/processors → dom/nodes/datatypes}/Radius.js +0 -0
  28. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -0
  29. package/lib/commonjs/{renderer/processors/Rects.js → dom/nodes/datatypes/Rect.js} +1 -1
  30. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -0
  31. package/lib/commonjs/dom/nodes/datatypes/Transform.js +42 -0
  32. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -0
  33. package/lib/commonjs/dom/nodes/datatypes/index.js +123 -0
  34. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -0
  35. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js +38 -0
  36. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -0
  37. package/lib/commonjs/dom/nodes/drawings/Box.js +105 -0
  38. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -0
  39. package/lib/commonjs/dom/nodes/drawings/CircleNode.js +43 -0
  40. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -0
  41. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js +28 -0
  42. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js.map +1 -0
  43. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js +36 -0
  44. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -0
  45. package/lib/commonjs/dom/nodes/drawings/FillNode.js +33 -0
  46. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -0
  47. package/lib/commonjs/dom/nodes/drawings/ImageNode.js +63 -0
  48. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -0
  49. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js +45 -0
  50. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -0
  51. package/lib/commonjs/dom/nodes/drawings/LineNode.js +36 -0
  52. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -0
  53. package/lib/commonjs/dom/nodes/drawings/OvalNode.js +39 -0
  54. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -0
  55. package/lib/commonjs/dom/nodes/drawings/PatchNode.js +69 -0
  56. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -0
  57. package/lib/commonjs/dom/nodes/drawings/PathNode.js +68 -0
  58. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -0
  59. package/lib/commonjs/dom/nodes/drawings/PictureNode.js +34 -0
  60. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -0
  61. package/lib/commonjs/dom/nodes/drawings/PointsNode.js +40 -0
  62. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -0
  63. package/lib/commonjs/dom/nodes/drawings/RRectNode.js +43 -0
  64. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -0
  65. package/lib/commonjs/dom/nodes/drawings/RectNode.js +39 -0
  66. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -0
  67. package/lib/commonjs/dom/nodes/drawings/Text.js +185 -0
  68. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -0
  69. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js +55 -0
  70. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -0
  71. package/lib/commonjs/dom/nodes/drawings/index.js +240 -0
  72. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -0
  73. package/lib/commonjs/dom/nodes/index.js +45 -0
  74. package/lib/commonjs/dom/nodes/index.js.map +1 -0
  75. package/lib/commonjs/dom/nodes/paint/BlendNode.js +82 -0
  76. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -0
  77. package/lib/commonjs/dom/nodes/paint/ColorFilters.js +152 -0
  78. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -0
  79. package/lib/commonjs/dom/nodes/paint/ImageFilters.js +225 -0
  80. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -0
  81. package/lib/commonjs/dom/nodes/paint/MaskFilters.js +33 -0
  82. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -0
  83. package/lib/commonjs/dom/nodes/paint/PathEffects.js +223 -0
  84. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -0
  85. package/lib/commonjs/dom/nodes/paint/Shaders.js +242 -0
  86. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -0
  87. package/lib/commonjs/dom/nodes/paint/index.js +84 -0
  88. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -0
  89. package/lib/commonjs/dom/types/ColorFilters.js +6 -0
  90. package/lib/commonjs/dom/types/ColorFilters.js.map +1 -0
  91. package/lib/commonjs/dom/types/Common.js +6 -0
  92. package/lib/commonjs/dom/types/Common.js.map +1 -0
  93. package/lib/commonjs/dom/types/DrawingContext.js +6 -0
  94. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -0
  95. package/lib/commonjs/dom/types/Drawings.js +6 -0
  96. package/lib/commonjs/dom/types/Drawings.js.map +1 -0
  97. package/lib/commonjs/dom/types/ImageFilters.js +6 -0
  98. package/lib/commonjs/dom/types/ImageFilters.js.map +1 -0
  99. package/lib/commonjs/dom/types/MaskFilters.js +6 -0
  100. package/lib/commonjs/dom/types/MaskFilters.js.map +1 -0
  101. package/lib/commonjs/dom/types/Node.js +6 -0
  102. package/lib/commonjs/dom/types/Node.js.map +1 -0
  103. package/lib/commonjs/dom/types/NodeType.js +80 -0
  104. package/lib/commonjs/dom/types/NodeType.js.map +1 -0
  105. package/lib/commonjs/dom/types/PathEffects.js +6 -0
  106. package/lib/commonjs/dom/types/PathEffects.js.map +1 -0
  107. package/lib/commonjs/dom/types/Shaders.js +6 -0
  108. package/lib/commonjs/dom/types/Shaders.js.map +1 -0
  109. package/lib/commonjs/dom/types/SkDOM.js +6 -0
  110. package/lib/commonjs/dom/types/SkDOM.js.map +1 -0
  111. package/lib/commonjs/dom/types/index.js +149 -0
  112. package/lib/commonjs/dom/types/index.js.map +1 -0
  113. package/lib/commonjs/index.js +26 -0
  114. package/lib/commonjs/index.js.map +1 -1
  115. package/lib/commonjs/renderer/Canvas.js +7 -3
  116. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  117. package/lib/commonjs/renderer/Container.js +39 -0
  118. package/lib/commonjs/renderer/Container.js.map +1 -0
  119. package/lib/commonjs/renderer/DependencyManager.js +17 -5
  120. package/lib/commonjs/renderer/DependencyManager.js.map +1 -1
  121. package/lib/commonjs/renderer/HostComponents.js +196 -0
  122. package/lib/commonjs/renderer/HostComponents.js.map +1 -0
  123. package/lib/commonjs/renderer/HostConfig.js +47 -125
  124. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  125. package/lib/commonjs/renderer/components/Blend.js +1 -46
  126. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  127. package/lib/commonjs/renderer/components/Drawing.js +1 -15
  128. package/lib/commonjs/renderer/components/Drawing.js.map +1 -1
  129. package/lib/commonjs/renderer/components/Group.js +1 -69
  130. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  131. package/lib/commonjs/renderer/components/Paint.js +2 -14
  132. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  133. package/lib/commonjs/renderer/components/Picture.js +1 -19
  134. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  135. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  136. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +2 -32
  137. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  138. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +1 -25
  139. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  140. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +1 -23
  141. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  142. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +1 -17
  143. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  144. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +1 -17
  145. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  146. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +1 -20
  147. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  148. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +1 -17
  149. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  150. package/lib/commonjs/renderer/components/image/Image.js +1 -35
  151. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  152. package/lib/commonjs/renderer/components/image/ImageSVG.js +1 -30
  153. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  154. package/lib/commonjs/renderer/components/image/ImageShader.js +1 -61
  155. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  156. package/lib/commonjs/renderer/components/image/index.js +0 -13
  157. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  158. package/lib/commonjs/renderer/components/imageFilters/Blur.js +1 -27
  159. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  160. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +1 -38
  161. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  162. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +1 -25
  163. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  164. package/lib/commonjs/renderer/components/imageFilters/Offset.js +1 -20
  165. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  166. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +1 -28
  167. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  168. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +1 -39
  169. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  170. package/lib/commonjs/renderer/components/index.js +0 -13
  171. package/lib/commonjs/renderer/components/index.js.map +1 -1
  172. package/lib/commonjs/renderer/components/maskFilters/Blur.js +1 -23
  173. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  174. package/lib/commonjs/renderer/components/pathEffects/Corner.js +1 -30
  175. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  176. package/lib/commonjs/renderer/components/pathEffects/Dash.js +1 -27
  177. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  178. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +1 -28
  179. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  180. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +1 -31
  181. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  182. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +1 -37
  183. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  184. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +1 -33
  185. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  186. package/lib/commonjs/renderer/components/pathEffects/Sum.js +1 -17
  187. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  188. package/lib/commonjs/renderer/components/shaders/Color.js +1 -19
  189. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  190. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +1 -22
  191. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  192. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +1 -28
  193. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  194. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +1 -28
  195. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  196. package/lib/commonjs/renderer/components/shaders/Shader.js +1 -23
  197. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  198. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +1 -29
  199. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  200. package/lib/commonjs/renderer/components/shaders/Turbulence.js +1 -22
  201. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  202. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +1 -30
  203. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  204. package/lib/commonjs/renderer/components/shapes/Box.js +2 -102
  205. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  206. package/lib/commonjs/renderer/components/shapes/Circle.js +1 -22
  207. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  208. package/lib/commonjs/renderer/components/shapes/DiffRect.js +1 -19
  209. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  210. package/lib/commonjs/renderer/components/shapes/Fill.js +1 -15
  211. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  212. package/lib/commonjs/renderer/components/shapes/FitBox.js +3 -3
  213. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  214. package/lib/commonjs/renderer/components/shapes/Line.js +1 -19
  215. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  216. package/lib/commonjs/renderer/components/shapes/Oval.js +1 -19
  217. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  218. package/lib/commonjs/renderer/components/shapes/Patch.js +1 -37
  219. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  220. package/lib/commonjs/renderer/components/shapes/Path.js +1 -47
  221. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  222. package/lib/commonjs/renderer/components/shapes/Points.js +1 -26
  223. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  224. package/lib/commonjs/renderer/components/shapes/Rect.js +1 -19
  225. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  226. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +1 -19
  227. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  228. package/lib/commonjs/renderer/components/shapes/Vertices.js +1 -36
  229. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  230. package/lib/commonjs/renderer/components/text/Glyphs.js +1 -39
  231. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  232. package/lib/commonjs/renderer/components/text/Text.js +1 -24
  233. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  234. package/lib/commonjs/renderer/components/text/TextBlob.js +1 -20
  235. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  236. package/lib/commonjs/renderer/components/text/TextPath.js +1 -71
  237. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  238. package/lib/commonjs/renderer/index.js +0 -13
  239. package/lib/commonjs/renderer/index.js.map +1 -1
  240. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  241. package/lib/commonjs/renderer/processors/index.js +0 -117
  242. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  243. package/lib/commonjs/web/WithSkiaWeb.js +3 -1
  244. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  245. package/lib/module/dom/nodes/DrawingNode.js +72 -0
  246. package/lib/module/dom/nodes/DrawingNode.js.map +1 -0
  247. package/lib/module/dom/nodes/GroupNode.js +17 -0
  248. package/lib/module/dom/nodes/GroupNode.js.map +1 -0
  249. package/lib/module/dom/nodes/JsiSkDOM.js +240 -0
  250. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -0
  251. package/lib/module/dom/nodes/Node.js +145 -0
  252. package/lib/module/dom/nodes/Node.js.map +1 -0
  253. package/lib/module/dom/nodes/PaintContext.js +2 -0
  254. package/lib/module/dom/nodes/PaintContext.js.map +1 -0
  255. package/lib/module/dom/nodes/PaintNode.js +83 -0
  256. package/lib/module/dom/nodes/PaintNode.js.map +1 -0
  257. package/lib/module/dom/nodes/RenderNode.js +329 -0
  258. package/lib/module/dom/nodes/RenderNode.js.map +1 -0
  259. package/lib/module/{renderer/processors/Circles.js → dom/nodes/datatypes/Circle.js} +2 -3
  260. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -0
  261. package/lib/module/{renderer/processors → dom/nodes/datatypes}/Color.js +0 -0
  262. package/lib/module/{renderer/processors → dom/nodes/datatypes}/Color.js.map +1 -1
  263. package/lib/module/dom/nodes/datatypes/Enum.js +2 -0
  264. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -0
  265. package/lib/module/{renderer/components/image/BoxFit.js → dom/nodes/datatypes/Fitting.js} +2 -2
  266. package/lib/module/{renderer/components/image/BoxFit.js.map → dom/nodes/datatypes/Fitting.js.map} +1 -1
  267. package/lib/module/dom/nodes/datatypes/Gradient.js +47 -0
  268. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -0
  269. package/lib/module/{renderer/processors/Paths.js → dom/nodes/datatypes/Path.js} +2 -2
  270. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -0
  271. package/lib/module/{renderer/processors → dom/nodes/datatypes}/Radius.js +0 -0
  272. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -0
  273. package/lib/module/{renderer/processors/Rects.js → dom/nodes/datatypes/Rect.js} +1 -1
  274. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -0
  275. package/lib/module/dom/nodes/datatypes/Transform.js +32 -0
  276. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -0
  277. package/lib/module/dom/nodes/datatypes/index.js +10 -0
  278. package/lib/module/dom/nodes/datatypes/index.js.map +1 -0
  279. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js +25 -0
  280. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -0
  281. package/lib/module/dom/nodes/drawings/Box.js +89 -0
  282. package/lib/module/dom/nodes/drawings/Box.js.map +1 -0
  283. package/lib/module/dom/nodes/drawings/CircleNode.js +31 -0
  284. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -0
  285. package/lib/module/dom/nodes/drawings/CustomDrawingNode.js +17 -0
  286. package/lib/module/dom/nodes/drawings/CustomDrawingNode.js.map +1 -0
  287. package/lib/module/dom/nodes/drawings/DiffRectNode.js +25 -0
  288. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -0
  289. package/lib/module/dom/nodes/drawings/FillNode.js +22 -0
  290. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -0
  291. package/lib/module/dom/nodes/drawings/ImageNode.js +51 -0
  292. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -0
  293. package/lib/module/dom/nodes/drawings/ImageSVG.js +33 -0
  294. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -0
  295. package/lib/module/dom/nodes/drawings/LineNode.js +25 -0
  296. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -0
  297. package/lib/module/dom/nodes/drawings/OvalNode.js +27 -0
  298. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -0
  299. package/lib/module/dom/nodes/drawings/PatchNode.js +56 -0
  300. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -0
  301. package/lib/module/dom/nodes/drawings/PathNode.js +55 -0
  302. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -0
  303. package/lib/module/dom/nodes/drawings/PictureNode.js +23 -0
  304. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -0
  305. package/lib/module/dom/nodes/drawings/PointsNode.js +27 -0
  306. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -0
  307. package/lib/module/dom/nodes/drawings/RRectNode.js +31 -0
  308. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -0
  309. package/lib/module/dom/nodes/drawings/RectNode.js +27 -0
  310. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -0
  311. package/lib/module/dom/nodes/drawings/Text.js +164 -0
  312. package/lib/module/dom/nodes/drawings/Text.js.map +1 -0
  313. package/lib/module/dom/nodes/drawings/VerticesNode.js +42 -0
  314. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -0
  315. package/lib/module/dom/nodes/drawings/index.js +19 -0
  316. package/lib/module/dom/nodes/drawings/index.js.map +1 -0
  317. package/lib/module/dom/nodes/index.js +4 -0
  318. package/lib/module/dom/nodes/index.js.map +1 -0
  319. package/lib/module/dom/nodes/paint/BlendNode.js +66 -0
  320. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -0
  321. package/lib/module/dom/nodes/paint/ColorFilters.js +120 -0
  322. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -0
  323. package/lib/module/dom/nodes/paint/ImageFilters.js +191 -0
  324. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -0
  325. package/lib/module/dom/nodes/paint/MaskFilters.js +20 -0
  326. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -0
  327. package/lib/module/dom/nodes/paint/PathEffects.js +192 -0
  328. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -0
  329. package/lib/module/dom/nodes/paint/Shaders.js +201 -0
  330. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -0
  331. package/lib/module/dom/nodes/paint/index.js +7 -0
  332. package/lib/module/dom/nodes/paint/index.js.map +1 -0
  333. package/lib/module/dom/types/ColorFilters.js +2 -0
  334. package/lib/module/dom/types/ColorFilters.js.map +1 -0
  335. package/lib/module/dom/types/Common.js +2 -0
  336. package/lib/module/dom/types/Common.js.map +1 -0
  337. package/lib/module/dom/types/DrawingContext.js +2 -0
  338. package/lib/module/dom/types/DrawingContext.js.map +1 -0
  339. package/lib/module/dom/types/Drawings.js +2 -0
  340. package/lib/module/dom/types/Drawings.js.map +1 -0
  341. package/lib/module/dom/types/ImageFilters.js +2 -0
  342. package/lib/module/dom/types/ImageFilters.js.map +1 -0
  343. package/lib/module/dom/types/MaskFilters.js +2 -0
  344. package/lib/module/dom/types/MaskFilters.js.map +1 -0
  345. package/lib/module/dom/types/Node.js +2 -0
  346. package/lib/module/dom/types/Node.js.map +1 -0
  347. package/lib/module/dom/types/NodeType.js +72 -0
  348. package/lib/module/dom/types/NodeType.js.map +1 -0
  349. package/lib/module/dom/types/PathEffects.js +2 -0
  350. package/lib/module/dom/types/PathEffects.js.map +1 -0
  351. package/lib/module/dom/types/Shaders.js +2 -0
  352. package/lib/module/dom/types/Shaders.js.map +1 -0
  353. package/lib/module/dom/types/SkDOM.js +2 -0
  354. package/lib/module/dom/types/SkDOM.js.map +1 -0
  355. package/lib/module/dom/types/index.js +12 -0
  356. package/lib/module/dom/types/index.js.map +1 -0
  357. package/lib/module/index.js +2 -0
  358. package/lib/module/index.js.map +1 -1
  359. package/lib/module/renderer/Canvas.js +7 -3
  360. package/lib/module/renderer/Canvas.js.map +1 -1
  361. package/lib/module/renderer/Container.js +29 -0
  362. package/lib/module/renderer/Container.js.map +1 -0
  363. package/lib/module/renderer/DependencyManager.js +17 -5
  364. package/lib/module/renderer/DependencyManager.js.map +1 -1
  365. package/lib/module/renderer/HostComponents.js +185 -0
  366. package/lib/module/renderer/HostComponents.js.map +1 -0
  367. package/lib/module/renderer/HostConfig.js +47 -126
  368. package/lib/module/renderer/HostConfig.js.map +1 -1
  369. package/lib/module/renderer/components/Blend.js +1 -42
  370. package/lib/module/renderer/components/Blend.js.map +1 -1
  371. package/lib/module/renderer/components/Drawing.js +1 -13
  372. package/lib/module/renderer/components/Drawing.js.map +1 -1
  373. package/lib/module/renderer/components/Group.js +1 -65
  374. package/lib/module/renderer/components/Group.js.map +1 -1
  375. package/lib/module/renderer/components/Paint.js +3 -12
  376. package/lib/module/renderer/components/Paint.js.map +1 -1
  377. package/lib/module/renderer/components/Picture.js +1 -17
  378. package/lib/module/renderer/components/Picture.js.map +1 -1
  379. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  380. package/lib/module/renderer/components/backdrop/BackdropFilter.js +2 -30
  381. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  382. package/lib/module/renderer/components/colorFilters/BlendColor.js +1 -20
  383. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  384. package/lib/module/renderer/components/colorFilters/Lerp.js +1 -19
  385. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  386. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +1 -15
  387. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  388. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +1 -15
  389. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  390. package/lib/module/renderer/components/colorFilters/Matrix.js +1 -17
  391. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  392. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +1 -15
  393. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  394. package/lib/module/renderer/components/image/Image.js +1 -31
  395. package/lib/module/renderer/components/image/Image.js.map +1 -1
  396. package/lib/module/renderer/components/image/ImageSVG.js +1 -27
  397. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  398. package/lib/module/renderer/components/image/ImageShader.js +1 -57
  399. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  400. package/lib/module/renderer/components/image/index.js +0 -1
  401. package/lib/module/renderer/components/image/index.js.map +1 -1
  402. package/lib/module/renderer/components/imageFilters/Blur.js +1 -21
  403. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  404. package/lib/module/renderer/components/imageFilters/DisplacementMap.js +1 -30
  405. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  406. package/lib/module/renderer/components/imageFilters/Morphology.js +1 -21
  407. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  408. package/lib/module/renderer/components/imageFilters/Offset.js +1 -17
  409. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  410. package/lib/module/renderer/components/imageFilters/RuntimeShader.js +1 -24
  411. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  412. package/lib/module/renderer/components/imageFilters/Shadow.js +1 -34
  413. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  414. package/lib/module/renderer/components/index.js +0 -1
  415. package/lib/module/renderer/components/index.js.map +1 -1
  416. package/lib/module/renderer/components/maskFilters/Blur.js +1 -19
  417. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  418. package/lib/module/renderer/components/pathEffects/Corner.js +1 -27
  419. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  420. package/lib/module/renderer/components/pathEffects/Dash.js +1 -24
  421. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  422. package/lib/module/renderer/components/pathEffects/Discrete.js +1 -25
  423. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  424. package/lib/module/renderer/components/pathEffects/Line2D.js +1 -28
  425. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  426. package/lib/module/renderer/components/pathEffects/Path1D.js +1 -32
  427. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  428. package/lib/module/renderer/components/pathEffects/Path2D.js +1 -29
  429. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  430. package/lib/module/renderer/components/pathEffects/Sum.js +1 -14
  431. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  432. package/lib/module/renderer/components/shaders/Color.js +1 -16
  433. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  434. package/lib/module/renderer/components/shaders/FractalNoise.js +1 -20
  435. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  436. package/lib/module/renderer/components/shaders/LinearGradient.js +1 -25
  437. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  438. package/lib/module/renderer/components/shaders/RadialGradient.js +1 -25
  439. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  440. package/lib/module/renderer/components/shaders/Shader.js +1 -19
  441. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  442. package/lib/module/renderer/components/shaders/SweepGradient.js +1 -26
  443. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  444. package/lib/module/renderer/components/shaders/Turbulence.js +1 -20
  445. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  446. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +1 -27
  447. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  448. package/lib/module/renderer/components/shapes/Box.js +2 -97
  449. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  450. package/lib/module/renderer/components/shapes/Circle.js +1 -19
  451. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  452. package/lib/module/renderer/components/shapes/DiffRect.js +1 -17
  453. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  454. package/lib/module/renderer/components/shapes/Fill.js +1 -13
  455. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  456. package/lib/module/renderer/components/shapes/FitBox.js +1 -1
  457. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  458. package/lib/module/renderer/components/shapes/Line.js +1 -17
  459. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  460. package/lib/module/renderer/components/shapes/Oval.js +1 -16
  461. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  462. package/lib/module/renderer/components/shapes/Patch.js +1 -32
  463. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  464. package/lib/module/renderer/components/shapes/Path.js +1 -43
  465. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  466. package/lib/module/renderer/components/shapes/Points.js +1 -20
  467. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  468. package/lib/module/renderer/components/shapes/Rect.js +1 -16
  469. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  470. package/lib/module/renderer/components/shapes/RoundedRect.js +1 -16
  471. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  472. package/lib/module/renderer/components/shapes/Vertices.js +1 -31
  473. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  474. package/lib/module/renderer/components/text/Glyphs.js +1 -37
  475. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  476. package/lib/module/renderer/components/text/Text.js +1 -22
  477. package/lib/module/renderer/components/text/Text.js.map +1 -1
  478. package/lib/module/renderer/components/text/TextBlob.js +1 -18
  479. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  480. package/lib/module/renderer/components/text/TextPath.js +1 -69
  481. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  482. package/lib/module/renderer/index.js +0 -1
  483. package/lib/module/renderer/index.js.map +1 -1
  484. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  485. package/lib/module/renderer/processors/index.js +0 -9
  486. package/lib/module/renderer/processors/index.js.map +1 -1
  487. package/lib/module/web/WithSkiaWeb.js +3 -1
  488. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  489. package/lib/typescript/src/dom/nodes/DrawingNode.d.ts +14 -0
  490. package/lib/typescript/src/dom/nodes/GroupNode.d.ts +8 -0
  491. package/lib/typescript/src/dom/nodes/JsiSkDOM.d.ts +70 -0
  492. package/lib/typescript/src/dom/nodes/Node.d.ts +43 -0
  493. package/lib/typescript/src/dom/nodes/PaintContext.d.ts +18 -0
  494. package/lib/typescript/src/dom/nodes/PaintNode.d.ts +8 -0
  495. package/lib/typescript/src/dom/nodes/RenderNode.d.ts +29 -0
  496. package/lib/typescript/src/dom/nodes/datatypes/Circle.d.ts +4 -0
  497. package/lib/typescript/src/{renderer/processors → dom/nodes/datatypes}/Color.d.ts +1 -1
  498. package/lib/typescript/src/dom/nodes/datatypes/Enum.d.ts +1 -0
  499. package/lib/typescript/src/{renderer/components/image/BoxFit.d.ts → dom/nodes/datatypes/Fitting.d.ts} +1 -1
  500. package/lib/typescript/src/{renderer/processors/Transform.d.ts → dom/nodes/datatypes/Gradient.d.ts} +11 -9
  501. package/lib/typescript/src/dom/nodes/datatypes/Path.d.ts +4 -0
  502. package/lib/typescript/src/dom/nodes/datatypes/Radius.d.ts +3 -0
  503. package/lib/typescript/src/dom/nodes/datatypes/Rect.d.ts +5 -0
  504. package/lib/typescript/src/dom/nodes/datatypes/Transform.d.ts +3 -0
  505. package/lib/typescript/src/dom/nodes/datatypes/index.d.ts +9 -0
  506. package/lib/typescript/src/dom/nodes/drawings/BackdropFilterNode.d.ts +8 -0
  507. package/lib/typescript/src/dom/nodes/drawings/Box.d.ts +13 -0
  508. package/lib/typescript/src/dom/nodes/drawings/CircleNode.d.ts +9 -0
  509. package/lib/typescript/src/dom/nodes/drawings/CustomDrawingNode.d.ts +8 -0
  510. package/lib/typescript/src/dom/nodes/drawings/DiffRectNode.d.ts +8 -0
  511. package/lib/typescript/src/dom/nodes/drawings/FillNode.d.ts +8 -0
  512. package/lib/typescript/src/dom/nodes/drawings/ImageNode.d.ts +25 -0
  513. package/lib/typescript/src/dom/nodes/drawings/ImageSVG.d.ts +8 -0
  514. package/lib/typescript/src/dom/nodes/drawings/LineNode.d.ts +8 -0
  515. package/lib/typescript/src/dom/nodes/drawings/OvalNode.d.ts +9 -0
  516. package/lib/typescript/src/dom/nodes/drawings/PatchNode.d.ts +18 -0
  517. package/lib/typescript/src/dom/nodes/drawings/PathNode.d.ts +9 -0
  518. package/lib/typescript/src/dom/nodes/drawings/PictureNode.d.ts +8 -0
  519. package/lib/typescript/src/dom/nodes/drawings/PointsNode.d.ts +8 -0
  520. package/lib/typescript/src/dom/nodes/drawings/RRectNode.d.ts +10 -0
  521. package/lib/typescript/src/dom/nodes/drawings/RectNode.d.ts +9 -0
  522. package/lib/typescript/src/dom/nodes/drawings/Text.d.ts +30 -0
  523. package/lib/typescript/src/dom/nodes/drawings/VerticesNode.d.ts +9 -0
  524. package/lib/typescript/src/dom/nodes/drawings/index.d.ts +18 -0
  525. package/lib/typescript/src/dom/nodes/index.d.ts +3 -0
  526. package/lib/typescript/src/dom/nodes/paint/BlendNode.d.ts +12 -0
  527. package/lib/typescript/src/dom/nodes/paint/ColorFilters.d.ts +36 -0
  528. package/lib/typescript/src/dom/nodes/paint/ImageFilters.d.ts +42 -0
  529. package/lib/typescript/src/dom/nodes/paint/MaskFilters.d.ts +8 -0
  530. package/lib/typescript/src/dom/nodes/paint/PathEffects.d.ts +42 -0
  531. package/lib/typescript/src/dom/nodes/paint/Shaders.d.ts +44 -0
  532. package/lib/typescript/src/dom/nodes/paint/index.d.ts +6 -0
  533. package/lib/typescript/src/dom/types/ColorFilters.d.ts +12 -0
  534. package/lib/typescript/src/dom/types/Common.d.ts +57 -0
  535. package/lib/typescript/src/dom/types/DrawingContext.d.ts +6 -0
  536. package/lib/typescript/src/dom/types/Drawings.d.ts +106 -0
  537. package/lib/typescript/src/dom/types/ImageFilters.d.ts +37 -0
  538. package/lib/typescript/src/dom/types/MaskFilters.d.ts +7 -0
  539. package/lib/typescript/src/dom/types/Node.d.ts +29 -0
  540. package/lib/typescript/src/dom/types/NodeType.d.ts +66 -0
  541. package/lib/typescript/src/dom/types/PathEffects.d.ts +28 -0
  542. package/lib/typescript/src/dom/types/Shaders.d.ts +59 -0
  543. package/lib/typescript/src/dom/types/SkDOM.d.ts +71 -0
  544. package/lib/typescript/src/dom/types/index.d.ts +11 -0
  545. package/lib/typescript/src/index.d.ts +2 -0
  546. package/lib/typescript/src/renderer/Canvas.d.ts +3 -3
  547. package/lib/typescript/src/renderer/Container.d.ts +12 -0
  548. package/lib/typescript/src/renderer/DependencyManager.d.ts +5 -4
  549. package/lib/typescript/src/renderer/HostComponents.d.ts +72 -0
  550. package/lib/typescript/src/renderer/HostConfig.d.ts +5 -13
  551. package/lib/typescript/src/renderer/components/Blend.d.ts +4 -9
  552. package/lib/typescript/src/renderer/components/Drawing.d.ts +2 -6
  553. package/lib/typescript/src/renderer/components/Group.d.ts +4 -9
  554. package/lib/typescript/src/renderer/components/Paint.d.ts +4 -8
  555. package/lib/typescript/src/renderer/components/Picture.d.ts +3 -5
  556. package/lib/typescript/src/renderer/components/backdrop/BackdropBlur.d.ts +2 -1
  557. package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +3 -3
  558. package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +4 -10
  559. package/lib/typescript/src/renderer/components/colorFilters/Lerp.d.ts +4 -7
  560. package/lib/typescript/src/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +3 -4
  561. package/lib/typescript/src/renderer/components/colorFilters/LumaColorFilter.d.ts +3 -4
  562. package/lib/typescript/src/renderer/components/colorFilters/Matrix.d.ts +4 -8
  563. package/lib/typescript/src/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +3 -4
  564. package/lib/typescript/src/renderer/components/image/Image.d.ts +3 -11
  565. package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +2 -5
  566. package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +3 -15
  567. package/lib/typescript/src/renderer/components/image/index.d.ts +0 -1
  568. package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +4 -10
  569. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +4 -10
  570. package/lib/typescript/src/renderer/components/imageFilters/Morphology.d.ts +4 -8
  571. package/lib/typescript/src/renderer/components/imageFilters/Offset.d.ts +4 -8
  572. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +3 -7
  573. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +3 -11
  574. package/lib/typescript/src/renderer/components/index.d.ts +0 -1
  575. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +3 -9
  576. package/lib/typescript/src/renderer/components/pathEffects/Corner.d.ts +4 -7
  577. package/lib/typescript/src/renderer/components/pathEffects/Dash.d.ts +4 -8
  578. package/lib/typescript/src/renderer/components/pathEffects/Discrete.d.ts +4 -9
  579. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +4 -9
  580. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +4 -13
  581. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +4 -10
  582. package/lib/typescript/src/renderer/components/pathEffects/Sum.d.ts +3 -6
  583. package/lib/typescript/src/renderer/components/shaders/Color.d.ts +3 -6
  584. package/lib/typescript/src/renderer/components/shaders/FractalNoise.d.ts +3 -10
  585. package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +3 -8
  586. package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +3 -8
  587. package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +4 -9
  588. package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +3 -9
  589. package/lib/typescript/src/renderer/components/shaders/Turbulence.d.ts +3 -10
  590. package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +3 -10
  591. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +4 -21
  592. package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +3 -3
  593. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +3 -8
  594. package/lib/typescript/src/renderer/components/shapes/Fill.d.ts +3 -4
  595. package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +1 -1
  596. package/lib/typescript/src/renderer/components/shapes/Line.d.ts +3 -7
  597. package/lib/typescript/src/renderer/components/shapes/Oval.d.ts +3 -3
  598. package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +3 -20
  599. package/lib/typescript/src/renderer/components/shapes/Path.d.ts +3 -16
  600. package/lib/typescript/src/renderer/components/shapes/Points.d.ts +3 -9
  601. package/lib/typescript/src/renderer/components/shapes/Rect.d.ts +3 -3
  602. package/lib/typescript/src/renderer/components/shapes/RoundedRect.d.ts +3 -3
  603. package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +3 -12
  604. package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +3 -13
  605. package/lib/typescript/src/renderer/components/text/Text.d.ts +3 -8
  606. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +3 -8
  607. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +3 -9
  608. package/lib/typescript/src/renderer/index.d.ts +0 -1
  609. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +1 -0
  610. package/lib/typescript/src/renderer/processors/index.d.ts +0 -9
  611. package/package.json +1 -1
  612. package/src/dom/nodes/DrawingNode.ts +72 -0
  613. package/src/dom/nodes/GroupNode.ts +23 -0
  614. package/src/dom/nodes/JsiSkDOM.ts +353 -0
  615. package/src/dom/nodes/Node.ts +158 -0
  616. package/src/dom/nodes/PaintContext.ts +30 -0
  617. package/src/dom/nodes/PaintNode.ts +77 -0
  618. package/src/dom/nodes/RenderNode.ts +349 -0
  619. package/src/{renderer/processors/Circles.ts → dom/nodes/datatypes/Circle.ts} +3 -15
  620. package/src/{renderer/processors → dom/nodes/datatypes}/Color.ts +1 -1
  621. package/src/dom/nodes/datatypes/Enum.ts +2 -0
  622. package/src/{renderer/components/image/BoxFit.ts → dom/nodes/datatypes/Fitting.ts} +2 -11
  623. package/src/dom/nodes/datatypes/Gradient.ts +48 -0
  624. package/src/{renderer/processors/Paths.ts → dom/nodes/datatypes/Path.ts} +3 -4
  625. package/src/{renderer/processors → dom/nodes/datatypes}/Radius.ts +2 -3
  626. package/src/{renderer/processors/Rects.ts → dom/nodes/datatypes/Rect.ts} +2 -16
  627. package/src/dom/nodes/datatypes/Transform.ts +26 -0
  628. package/src/dom/nodes/datatypes/index.ts +9 -0
  629. package/src/dom/nodes/drawings/BackdropFilterNode.ts +30 -0
  630. package/src/dom/nodes/drawings/Box.ts +105 -0
  631. package/src/dom/nodes/drawings/CircleNode.ts +24 -0
  632. package/src/dom/nodes/drawings/CustomDrawingNode.ts +21 -0
  633. package/src/dom/nodes/drawings/DiffRectNode.ts +19 -0
  634. package/src/dom/nodes/drawings/FillNode.ts +18 -0
  635. package/src/dom/nodes/drawings/ImageNode.ts +40 -0
  636. package/src/dom/nodes/drawings/ImageSVG.ts +24 -0
  637. package/src/dom/nodes/drawings/LineNode.ts +19 -0
  638. package/src/dom/nodes/drawings/OvalNode.ts +23 -0
  639. package/src/dom/nodes/drawings/PatchNode.ts +68 -0
  640. package/src/dom/nodes/drawings/PathNode.ts +42 -0
  641. package/src/dom/nodes/drawings/PictureNode.ts +19 -0
  642. package/src/dom/nodes/drawings/PointsNode.ts +21 -0
  643. package/src/dom/nodes/drawings/RRectNode.ts +25 -0
  644. package/src/dom/nodes/drawings/RectNode.ts +23 -0
  645. package/src/dom/nodes/drawings/Text.ts +122 -0
  646. package/src/dom/nodes/drawings/VerticesNode.ts +35 -0
  647. package/src/dom/nodes/drawings/index.ts +18 -0
  648. package/src/dom/nodes/index.ts +3 -0
  649. package/src/dom/nodes/paint/BlendNode.ts +79 -0
  650. package/src/dom/nodes/paint/ColorFilters.ts +130 -0
  651. package/src/dom/nodes/paint/ImageFilters.ts +210 -0
  652. package/src/dom/nodes/paint/MaskFilters.ts +25 -0
  653. package/src/dom/nodes/paint/PathEffects.ts +192 -0
  654. package/src/dom/nodes/paint/Shaders.ts +228 -0
  655. package/src/dom/nodes/paint/index.ts +6 -0
  656. package/src/dom/types/ColorFilters.ts +16 -0
  657. package/src/dom/types/Common.ts +90 -0
  658. package/src/dom/types/DrawingContext.ts +7 -0
  659. package/src/dom/types/Drawings.ts +157 -0
  660. package/src/dom/types/ImageFilters.ts +53 -0
  661. package/src/dom/types/MaskFilters.ts +9 -0
  662. package/src/dom/types/Node.ts +46 -0
  663. package/src/dom/types/NodeType.ts +80 -0
  664. package/src/dom/types/PathEffects.ts +35 -0
  665. package/src/dom/types/Shaders.ts +86 -0
  666. package/src/dom/types/SkDOM.ts +202 -0
  667. package/src/dom/types/index.ts +11 -0
  668. package/src/index.ts +2 -0
  669. package/src/renderer/Canvas.tsx +7 -6
  670. package/src/renderer/Container.tsx +31 -0
  671. package/src/renderer/DependencyManager.tsx +23 -15
  672. package/src/renderer/HostComponents.ts +269 -0
  673. package/src/renderer/HostConfig.ts +60 -123
  674. package/src/renderer/components/Blend.tsx +4 -45
  675. package/src/renderer/components/Drawing.tsx +3 -12
  676. package/src/renderer/components/Group.tsx +4 -79
  677. package/src/renderer/components/Paint.tsx +7 -24
  678. package/src/renderer/components/Picture.tsx +4 -13
  679. package/src/renderer/components/backdrop/BackdropBlur.tsx +2 -1
  680. package/src/renderer/components/backdrop/BackdropFilter.tsx +5 -29
  681. package/src/renderer/components/colorFilters/BlendColor.tsx +4 -26
  682. package/src/renderer/components/colorFilters/Lerp.tsx +4 -23
  683. package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +4 -16
  684. package/src/renderer/components/colorFilters/LumaColorFilter.tsx +4 -14
  685. package/src/renderer/components/colorFilters/Matrix.tsx +4 -19
  686. package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +4 -16
  687. package/src/renderer/components/image/Image.tsx +4 -40
  688. package/src/renderer/components/image/ImageSVG.tsx +3 -19
  689. package/src/renderer/components/image/ImageShader.tsx +4 -69
  690. package/src/renderer/components/image/index.ts +0 -1
  691. package/src/renderer/components/imageFilters/Blur.tsx +4 -29
  692. package/src/renderer/components/imageFilters/DisplacementMap.tsx +6 -30
  693. package/src/renderer/components/imageFilters/Morphology.tsx +4 -25
  694. package/src/renderer/components/imageFilters/Offset.tsx +4 -19
  695. package/src/renderer/components/imageFilters/RuntimeShader.tsx +6 -27
  696. package/src/renderer/components/imageFilters/Shadow.tsx +4 -38
  697. package/src/renderer/components/index.ts +0 -1
  698. package/src/renderer/components/maskFilters/Blur.tsx +4 -23
  699. package/src/renderer/components/pathEffects/Corner.tsx +4 -27
  700. package/src/renderer/components/pathEffects/Dash.tsx +4 -23
  701. package/src/renderer/components/pathEffects/Discrete.tsx +4 -24
  702. package/src/renderer/components/pathEffects/Line2D.tsx +4 -29
  703. package/src/renderer/components/pathEffects/Path1D.tsx +4 -39
  704. package/src/renderer/components/pathEffects/Path2D.tsx +4 -31
  705. package/src/renderer/components/pathEffects/Sum.tsx +3 -17
  706. package/src/renderer/components/shaders/Color.tsx +4 -16
  707. package/src/renderer/components/shaders/FractalNoise.tsx +4 -26
  708. package/src/renderer/components/shaders/LinearGradient.tsx +4 -29
  709. package/src/renderer/components/shaders/RadialGradient.tsx +4 -29
  710. package/src/renderer/components/shaders/Shader.tsx +4 -24
  711. package/src/renderer/components/shaders/SweepGradient.tsx +4 -32
  712. package/src/renderer/components/shaders/Turbulence.tsx +4 -26
  713. package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +4 -33
  714. package/src/renderer/components/shapes/Box.tsx +6 -109
  715. package/src/renderer/components/shapes/Circle.tsx +4 -16
  716. package/src/renderer/components/shapes/DiffRect.tsx +4 -17
  717. package/src/renderer/components/shapes/Fill.tsx +4 -11
  718. package/src/renderer/components/shapes/FitBox.tsx +2 -2
  719. package/src/renderer/components/shapes/Line.tsx +4 -13
  720. package/src/renderer/components/shapes/Oval.tsx +4 -18
  721. package/src/renderer/components/shapes/Patch.tsx +4 -59
  722. package/src/renderer/components/shapes/Path.tsx +4 -48
  723. package/src/renderer/components/shapes/Points.tsx +4 -20
  724. package/src/renderer/components/shapes/Rect.tsx +4 -18
  725. package/src/renderer/components/shapes/RoundedRect.tsx +4 -17
  726. package/src/renderer/components/shapes/Vertices.tsx +4 -37
  727. package/src/renderer/components/text/Glyphs.tsx +4 -39
  728. package/src/renderer/components/text/Text.tsx +4 -22
  729. package/src/renderer/components/text/TextBlob.tsx +4 -17
  730. package/src/renderer/components/text/TextPath.tsx +4 -59
  731. package/src/renderer/index.ts +0 -1
  732. package/src/renderer/processors/Animations/Animations.ts +5 -0
  733. package/src/renderer/processors/index.ts +0 -9
  734. package/src/web/WithSkiaWeb.tsx +3 -1
  735. package/lib/commonjs/renderer/components/Compose.js +0 -40
  736. package/lib/commonjs/renderer/components/Compose.js.map +0 -1
  737. package/lib/commonjs/renderer/components/colorFilters/Compose.js +0 -24
  738. package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +0 -1
  739. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +0 -28
  740. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +0 -1
  741. package/lib/commonjs/renderer/components/imageFilters/getInput.js +0 -33
  742. package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +0 -1
  743. package/lib/commonjs/renderer/components/shaders/Gradient.js +0 -32
  744. package/lib/commonjs/renderer/components/shaders/Gradient.js.map +0 -1
  745. package/lib/commonjs/renderer/nodes/Container.js +0 -28
  746. package/lib/commonjs/renderer/nodes/Container.js.map +0 -1
  747. package/lib/commonjs/renderer/nodes/Declaration.js +0 -57
  748. package/lib/commonjs/renderer/nodes/Declaration.js.map +0 -1
  749. package/lib/commonjs/renderer/nodes/Drawing.js +0 -56
  750. package/lib/commonjs/renderer/nodes/Drawing.js.map +0 -1
  751. package/lib/commonjs/renderer/nodes/Node.js +0 -73
  752. package/lib/commonjs/renderer/nodes/Node.js.map +0 -1
  753. package/lib/commonjs/renderer/nodes/index.js +0 -58
  754. package/lib/commonjs/renderer/nodes/index.js.map +0 -1
  755. package/lib/commonjs/renderer/processors/Circles.js.map +0 -1
  756. package/lib/commonjs/renderer/processors/Clips.js +0 -24
  757. package/lib/commonjs/renderer/processors/Clips.js.map +0 -1
  758. package/lib/commonjs/renderer/processors/Font.js +0 -13
  759. package/lib/commonjs/renderer/processors/Font.js.map +0 -1
  760. package/lib/commonjs/renderer/processors/Paint.js +0 -98
  761. package/lib/commonjs/renderer/processors/Paint.js.map +0 -1
  762. package/lib/commonjs/renderer/processors/Paths.js.map +0 -1
  763. package/lib/commonjs/renderer/processors/Radius.js.map +0 -1
  764. package/lib/commonjs/renderer/processors/Rects.js.map +0 -1
  765. package/lib/commonjs/renderer/processors/Transform.js +0 -58
  766. package/lib/commonjs/renderer/processors/Transform.js.map +0 -1
  767. package/lib/module/renderer/components/Compose.js +0 -25
  768. package/lib/module/renderer/components/Compose.js.map +0 -1
  769. package/lib/module/renderer/components/colorFilters/Compose.js +0 -14
  770. package/lib/module/renderer/components/colorFilters/Compose.js.map +0 -1
  771. package/lib/module/renderer/components/imageFilters/InnerShadow.js +0 -17
  772. package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +0 -1
  773. package/lib/module/renderer/components/imageFilters/getInput.js +0 -23
  774. package/lib/module/renderer/components/imageFilters/getInput.js.map +0 -1
  775. package/lib/module/renderer/components/shaders/Gradient.js +0 -20
  776. package/lib/module/renderer/components/shaders/Gradient.js.map +0 -1
  777. package/lib/module/renderer/nodes/Container.js +0 -18
  778. package/lib/module/renderer/nodes/Container.js.map +0 -1
  779. package/lib/module/renderer/nodes/Declaration.js +0 -36
  780. package/lib/module/renderer/nodes/Declaration.js.map +0 -1
  781. package/lib/module/renderer/nodes/Drawing.js +0 -37
  782. package/lib/module/renderer/nodes/Drawing.js.map +0 -1
  783. package/lib/module/renderer/nodes/Node.js +0 -63
  784. package/lib/module/renderer/nodes/Node.js.map +0 -1
  785. package/lib/module/renderer/nodes/index.js +0 -5
  786. package/lib/module/renderer/nodes/index.js.map +0 -1
  787. package/lib/module/renderer/processors/Circles.js.map +0 -1
  788. package/lib/module/renderer/processors/Clips.js +0 -13
  789. package/lib/module/renderer/processors/Clips.js.map +0 -1
  790. package/lib/module/renderer/processors/Font.js +0 -4
  791. package/lib/module/renderer/processors/Font.js.map +0 -1
  792. package/lib/module/renderer/processors/Paint.js +0 -84
  793. package/lib/module/renderer/processors/Paint.js.map +0 -1
  794. package/lib/module/renderer/processors/Paths.js.map +0 -1
  795. package/lib/module/renderer/processors/Radius.js.map +0 -1
  796. package/lib/module/renderer/processors/Rects.js.map +0 -1
  797. package/lib/module/renderer/processors/Transform.js +0 -42
  798. package/lib/module/renderer/processors/Transform.js.map +0 -1
  799. package/lib/typescript/src/renderer/components/Compose.d.ts +0 -6
  800. package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +0 -3
  801. package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +0 -2
  802. package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +0 -3
  803. package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +0 -17
  804. package/lib/typescript/src/renderer/nodes/Container.d.ts +0 -8
  805. package/lib/typescript/src/renderer/nodes/Declaration.d.ts +0 -22
  806. package/lib/typescript/src/renderer/nodes/Drawing.d.ts +0 -21
  807. package/lib/typescript/src/renderer/nodes/Node.d.ts +0 -24
  808. package/lib/typescript/src/renderer/nodes/index.d.ts +0 -4
  809. package/lib/typescript/src/renderer/processors/Circles.d.ts +0 -13
  810. package/lib/typescript/src/renderer/processors/Clips.d.ts +0 -4
  811. package/lib/typescript/src/renderer/processors/Font.d.ts +0 -7
  812. package/lib/typescript/src/renderer/processors/Paint.d.ts +0 -22
  813. package/lib/typescript/src/renderer/processors/Paths.d.ts +0 -4
  814. package/lib/typescript/src/renderer/processors/Radius.d.ts +0 -3
  815. package/lib/typescript/src/renderer/processors/Rects.d.ts +0 -20
  816. package/src/renderer/components/Compose.tsx +0 -26
  817. package/src/renderer/components/colorFilters/Compose.ts +0 -18
  818. package/src/renderer/components/imageFilters/InnerShadow.tsx +0 -38
  819. package/src/renderer/components/imageFilters/getInput.ts +0 -20
  820. package/src/renderer/components/shaders/Gradient.ts +0 -24
  821. package/src/renderer/nodes/Container.tsx +0 -17
  822. package/src/renderer/nodes/Declaration.tsx +0 -65
  823. package/src/renderer/nodes/Drawing.tsx +0 -65
  824. package/src/renderer/nodes/Node.ts +0 -59
  825. package/src/renderer/nodes/index.ts +0 -4
  826. package/src/renderer/processors/Clips.ts +0 -23
  827. package/src/renderer/processors/Font.ts +0 -8
  828. package/src/renderer/processors/Paint.ts +0 -118
  829. package/src/renderer/processors/Transform.ts +0 -50
@@ -1,62 +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 { TileMode, FilterMode, MipmapMode } from "../../../skia/types";
5
- import { createDeclaration } from "../../nodes";
6
- import { localMatrix, enumKey } from "../../processors";
7
- import { rect2rect, fitRects } from "./BoxFit";
8
-
9
- const getRect = (Skia, props) => {
10
- const {
11
- x,
12
- y,
13
- width,
14
- height
15
- } = props;
16
-
17
- if (props.rect) {
18
- return props.rect;
19
- } else if (x !== undefined && y !== undefined && width !== undefined && height !== undefined) {
20
- return Skia.XYWHRect(x, y, width, height);
21
- } else {
22
- return undefined;
23
- }
24
- };
25
-
26
- const onDeclare = createDeclaration((_ref, _, _ref2) => {
27
- let {
28
- tx,
29
- ty,
30
- fm,
31
- mm,
32
- fit,
33
- image,
34
- ...imageShaderProps
35
- } = _ref;
36
- let {
37
- Skia
38
- } = _ref2;
39
- const rct = getRect(Skia, imageShaderProps);
40
-
41
- if (rct) {
42
- var _imageShaderProps$tra;
43
-
44
- const rects = fitRects(fit, {
45
- x: 0,
46
- y: 0,
47
- width: image.width(),
48
- height: image.height()
49
- }, rct);
50
- const m3 = rect2rect(rects.src, rects.dst);
51
- imageShaderProps.transform = [...((_imageShaderProps$tra = imageShaderProps.transform) !== null && _imageShaderProps$tra !== void 0 ? _imageShaderProps$tra : []), ...m3];
52
- }
53
-
54
- return image.makeShaderOptions(TileMode[enumKey(tx)], TileMode[enumKey(ty)], FilterMode[enumKey(fm)], MipmapMode[enumKey(mm)], localMatrix(Skia.Matrix(), imageShaderProps));
55
- });
56
2
  export const ImageShader = props => {
57
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
58
- onDeclare: onDeclare
59
- }, props));
3
+ return /*#__PURE__*/React.createElement("skImageShader", props);
60
4
  };
61
5
  ImageShader.defaultProps = {
62
6
  tx: "decal",
@@ -1 +1 @@
1
- {"version":3,"sources":["ImageShader.tsx"],"names":["React","TileMode","FilterMode","MipmapMode","createDeclaration","localMatrix","enumKey","rect2rect","fitRects","getRect","Skia","props","x","y","width","height","rect","undefined","XYWHRect","onDeclare","_","tx","ty","fm","mm","fit","image","imageShaderProps","rct","rects","m3","src","dst","transform","makeShaderOptions","Matrix","ImageShader","defaultProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,QAAT,EAAmBC,UAAnB,EAA+BC,UAA/B,QAAiD,qBAAjD;AACA,SAASC,iBAAT,QAAkC,aAAlC;AAOA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,kBAArC;AAGA,SAASC,SAAT,EAAoBC,QAApB,QAAoC,UAApC;;AAEA,MAAMC,OAAO,GAAG,CACdC,IADc,EAEdC,KAFc,KAGS;AACvB,QAAM;AAAEC,IAAAA,CAAF;AAAKC,IAAAA,CAAL;AAAQC,IAAAA,KAAR;AAAeC,IAAAA;AAAf,MAA0BJ,KAAhC;;AACA,MAAIA,KAAK,CAACK,IAAV,EAAgB;AACd,WAAOL,KAAK,CAACK,IAAb;AACD,GAFD,MAEO,IACLJ,CAAC,KAAKK,SAAN,IACAJ,CAAC,KAAKI,SADN,IAEAH,KAAK,KAAKG,SAFV,IAGAF,MAAM,KAAKE,SAJN,EAKL;AACA,WAAOP,IAAI,CAACQ,QAAL,CAAcN,CAAd,EAAiBC,CAAjB,EAAoBC,KAApB,EAA2BC,MAA3B,CAAP;AACD,GAPM,MAOA;AACL,WAAOE,SAAP;AACD;AACF,CAjBD;;AA6BA,MAAME,SAAS,GAAGf,iBAAiB,CACjC,OAAsDgB,CAAtD,YAAsE;AAAA,MAArE;AAAEC,IAAAA,EAAF;AAAMC,IAAAA,EAAN;AAAUC,IAAAA,EAAV;AAAcC,IAAAA,EAAd;AAAkBC,IAAAA,GAAlB;AAAuBC,IAAAA,KAAvB;AAA8B,OAAGC;AAAjC,GAAqE;AAAA,MAAb;AAAEjB,IAAAA;AAAF,GAAa;AACpE,QAAMkB,GAAG,GAAGnB,OAAO,CAACC,IAAD,EAAOiB,gBAAP,CAAnB;;AACA,MAAIC,GAAJ,EAAS;AAAA;;AACP,UAAMC,KAAK,GAAGrB,QAAQ,CACpBiB,GADoB,EAEpB;AAAEb,MAAAA,CAAC,EAAE,CAAL;AAAQC,MAAAA,CAAC,EAAE,CAAX;AAAcC,MAAAA,KAAK,EAAEY,KAAK,CAACZ,KAAN,EAArB;AAAoCC,MAAAA,MAAM,EAAEW,KAAK,CAACX,MAAN;AAA5C,KAFoB,EAGpBa,GAHoB,CAAtB;AAKA,UAAME,EAAE,GAAGvB,SAAS,CAACsB,KAAK,CAACE,GAAP,EAAYF,KAAK,CAACG,GAAlB,CAApB;AACAL,IAAAA,gBAAgB,CAACM,SAAjB,GAA6B,CAC3B,6BAAIN,gBAAgB,CAACM,SAArB,yEAAkC,EAAlC,CAD2B,EAE3B,GAAGH,EAFwB,CAA7B;AAID;;AACD,SAAOJ,KAAK,CAACQ,iBAAN,CACLjC,QAAQ,CAACK,OAAO,CAACe,EAAD,CAAR,CADH,EAELpB,QAAQ,CAACK,OAAO,CAACgB,EAAD,CAAR,CAFH,EAGLpB,UAAU,CAACI,OAAO,CAACiB,EAAD,CAAR,CAHL,EAILpB,UAAU,CAACG,OAAO,CAACkB,EAAD,CAAR,CAJL,EAKLnB,WAAW,CAACK,IAAI,CAACyB,MAAL,EAAD,EAAgBR,gBAAhB,CALN,CAAP;AAOD,CAtBgC,CAAnC;AAyBA,OAAO,MAAMS,WAAW,GAAIzB,KAAD,IAA4C;AACrE,sBAAO;AAAe,IAAA,SAAS,EAAEQ;AAA1B,KAAyCR,KAAzC,EAAP;AACD,CAFM;AAIPyB,WAAW,CAACC,YAAZ,GAA2B;AACzBhB,EAAAA,EAAE,EAAE,OADqB;AAEzBC,EAAAA,EAAE,EAAE,OAFqB;AAGzBC,EAAAA,EAAE,EAAE,SAHqB;AAIzBC,EAAAA,EAAE,EAAE,MAJqB;AAKzBC,EAAAA,GAAG,EAAE,MALoB;AAMzBQ,EAAAA,SAAS,EAAE;AANc,CAA3B","sourcesContent":["import React from \"react\";\n\nimport type { SkRect, SkImage, Skia } from \"../../../skia/types\";\nimport { TileMode, FilterMode, MipmapMode } from \"../../../skia/types\";\nimport { createDeclaration } from \"../../nodes\";\nimport type {\n TransformProps,\n SkEnum,\n AnimatedProps,\n RectCtor,\n} from \"../../processors\";\nimport { localMatrix, enumKey } from \"../../processors\";\n\nimport type { Fit } from \"./BoxFit\";\nimport { rect2rect, fitRects } from \"./BoxFit\";\n\nconst getRect = (\n Skia: Skia,\n props: Omit<ImageShaderProps, \"tx\" | \"ty\" | \"fm\" | \"mm\" | \"fit\" | \"image\">\n): SkRect | undefined => {\n const { x, y, width, height } = props;\n if (props.rect) {\n return props.rect;\n } else if (\n x !== undefined &&\n y !== undefined &&\n width !== undefined &&\n height !== undefined\n ) {\n return Skia.XYWHRect(x, y, width, height);\n } else {\n return undefined;\n }\n};\n\ninterface ImageShaderProps extends TransformProps, Partial<RectCtor> {\n tx: SkEnum<typeof TileMode>;\n ty: SkEnum<typeof TileMode>;\n fm: SkEnum<typeof FilterMode>;\n mm: SkEnum<typeof MipmapMode>;\n fit: Fit;\n rect?: SkRect;\n image: SkImage;\n}\n\nconst onDeclare = createDeclaration<ImageShaderProps>(\n ({ tx, ty, fm, mm, fit, image, ...imageShaderProps }, _, { Skia }) => {\n const rct = getRect(Skia, imageShaderProps);\n if (rct) {\n const rects = fitRects(\n fit,\n { x: 0, y: 0, width: image.width(), height: image.height() },\n rct\n );\n const m3 = rect2rect(rects.src, rects.dst);\n imageShaderProps.transform = [\n ...(imageShaderProps.transform ?? []),\n ...m3,\n ];\n }\n return image.makeShaderOptions(\n TileMode[enumKey(tx)],\n TileMode[enumKey(ty)],\n FilterMode[enumKey(fm)],\n MipmapMode[enumKey(mm)],\n localMatrix(Skia.Matrix(), imageShaderProps)\n );\n }\n);\n\nexport const ImageShader = (props: AnimatedProps<ImageShaderProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nImageShader.defaultProps = {\n tx: \"decal\",\n ty: \"decal\",\n fm: \"nearest\",\n mm: \"none\",\n fit: \"none\",\n transform: [],\n} as const;\n"]}
1
+ {"version":3,"sources":["ImageShader.tsx"],"names":["React","ImageShader","props","defaultProps","tx","ty","fm","mm","fit","transform"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,WAAW,GAAIC,KAAD,IAAwC;AACjE,sBAAO,qCAAmBA,KAAnB,CAAP;AACD,CAFM;AAIPD,WAAW,CAACE,YAAZ,GAA2B;AACzBC,EAAAA,EAAE,EAAE,OADqB;AAEzBC,EAAAA,EAAE,EAAE,OAFqB;AAGzBC,EAAAA,EAAE,EAAE,SAHqB;AAIzBC,EAAAA,EAAE,EAAE,MAJqB;AAKzBC,EAAAA,GAAG,EAAE,MALoB;AAMzBC,EAAAA,SAAS,EAAE;AANc,CAA3B","sourcesContent":["import React from \"react\";\n\nimport type { ImageShaderProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const ImageShader = (props: SkiaProps<ImageShaderProps>) => {\n return <skImageShader {...props} />;\n};\n\nImageShader.defaultProps = {\n tx: \"decal\",\n ty: \"decal\",\n fm: \"nearest\",\n mm: \"none\",\n fit: \"none\",\n transform: [],\n} as const;\n"]}
@@ -1,5 +1,4 @@
1
1
  export * from "./Image";
2
2
  export * from "./ImageShader";
3
3
  export * from "./ImageSVG";
4
- export * from "./BoxFit";
5
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAd;AACA,cAAc,eAAd;AACA,cAAc,YAAd;AACA,cAAc,UAAd","sourcesContent":["export * from \"./Image\";\nexport * from \"./ImageShader\";\nexport * from \"./ImageSVG\";\nexport * from \"./BoxFit\";\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAd;AACA,cAAc,eAAd;AACA,cAAc,YAAd","sourcesContent":["export * from \"./Image\";\nexport * from \"./ImageShader\";\nexport * from \"./ImageSVG\";\n"]}
@@ -1,26 +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 { TileMode } from "../../../skia/types";
5
- import { enumKey } from "../../processors";
6
- import { processRadius } from "../../processors/Radius";
7
- import { createDeclaration } from "../../nodes";
8
- import { getInput } from "./getInput";
9
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
10
- let {
11
- blur,
12
- mode
13
- } = _ref;
14
- let {
15
- Skia
16
- } = _ref2;
17
- const sigma = processRadius(Skia, blur);
18
- return Skia.ImageFilter.MakeBlur(sigma.x, sigma.y, TileMode[enumKey(mode)], getInput(Skia, children));
19
- });
20
2
  export const Blur = props => {
21
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
22
- onDeclare: onDeclare
23
- }, props));
3
+ return /*#__PURE__*/React.createElement("skBlurImageFilter", props);
24
4
  };
25
5
  Blur.defaultProps = {
26
6
  mode: "decal"
@@ -1 +1 @@
1
- {"version":3,"sources":["Blur.tsx"],"names":["React","TileMode","enumKey","processRadius","createDeclaration","getInput","onDeclare","children","blur","mode","Skia","sigma","ImageFilter","MakeBlur","x","y","Blur","props","defaultProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,QAAT,QAAyB,qBAAzB;AAEA,SAASC,OAAT,QAAwB,kBAAxB;AAEA,SAASC,aAAT,QAA8B,yBAA9B;AACA,SAASC,iBAAT,QAAkC,aAAlC;AAEA,SAASC,QAAT,QAAyB,YAAzB;AAQA,MAAMC,SAAS,GAAGF,iBAAiB,CACjC,OAAiBG,QAAjB,YAAwC;AAAA,MAAvC;AAAEC,IAAAA,IAAF;AAAQC,IAAAA;AAAR,GAAuC;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AACtC,QAAMC,KAAK,GAAGR,aAAa,CAACO,IAAD,EAAOF,IAAP,CAA3B;AACA,SAAOE,IAAI,CAACE,WAAL,CAAiBC,QAAjB,CACLF,KAAK,CAACG,CADD,EAELH,KAAK,CAACI,CAFD,EAGLd,QAAQ,CAACC,OAAO,CAACO,IAAD,CAAR,CAHH,EAILJ,QAAQ,CAACK,IAAD,EAAOH,QAAP,CAJH,CAAP;AAMD,CATgC,CAAnC;AAYA,OAAO,MAAMS,IAAI,GAAIC,KAAD,IAAqC;AACvD,sBAAO;AAAe,IAAA,SAAS,EAAEX;AAA1B,KAAyCW,KAAzC,EAAP;AACD,CAFM;AAIPD,IAAI,CAACE,YAAL,GAAoB;AAClBT,EAAAA,IAAI,EAAE;AADY,CAApB","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { TileMode } from \"../../../skia/types\";\nimport type { Radius, SkEnum } from \"../../processors\";\nimport { enumKey } from \"../../processors\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport { processRadius } from \"../../processors/Radius\";\nimport { createDeclaration } from \"../../nodes\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface BlurProps {\n blur: Radius;\n mode: SkEnum<typeof TileMode>;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<BlurProps>(\n ({ blur, mode }, children, { Skia }) => {\n const sigma = processRadius(Skia, blur);\n return Skia.ImageFilter.MakeBlur(\n sigma.x,\n sigma.y,\n TileMode[enumKey(mode)],\n getInput(Skia, children)\n );\n }\n);\n\nexport const Blur = (props: AnimatedProps<BlurProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nBlur.defaultProps = {\n mode: \"decal\",\n};\n"]}
1
+ {"version":3,"sources":["Blur.tsx"],"names":["React","Blur","props","defaultProps","mode"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAA4C;AAC9D,sBAAO,yCAAuBA,KAAvB,CAAP;AACD,CAFM;AAIPD,IAAI,CAACE,YAAL,GAAoB;AAClBC,EAAAA,IAAI,EAAE;AADY,CAApB","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { BlurImageFilterProps } from \"../../../dom/types\";\n\nexport const Blur = (props: SkiaProps<BlurImageFilterProps>) => {\n return <skBlurImageFilter {...props} />;\n};\n\nBlur.defaultProps = {\n mode: \"decal\",\n};\n"]}
@@ -1,34 +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 { ColorChannel } from "../../../skia/types";
5
- import { createDeclaration } from "../../nodes";
6
- import { enumKey } from "../../processors";
7
- import { getInput } from "./getInput";
8
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
9
- let {
10
- channelX,
11
- channelY,
12
- scale
13
- } = _ref;
14
- let {
15
- Skia
16
- } = _ref2;
17
- const [in1, in2] = children.filter(c => !!c);
18
- const x = ColorChannel[enumKey(channelX)];
19
- const y = ColorChannel[enumKey(channelY)];
20
- const map = getInput(Skia, [in1]);
21
- const input = in2 ? getInput(Skia, [in2]) : null;
22
-
23
- if (!map) {
24
- throw new Error("No DisplacementMap provided");
25
- }
26
-
27
- return Skia.ImageFilter.MakeDisplacementMap(x, y, scale, map, input);
28
- });
29
2
  export const DisplacementMap = props => {
30
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
31
- onDeclare: onDeclare
32
- }, props));
3
+ return /*#__PURE__*/React.createElement("skDisplacementMapImageFilter", props);
33
4
  };
34
5
  //# sourceMappingURL=DisplacementMap.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["DisplacementMap.tsx"],"names":["React","ColorChannel","createDeclaration","enumKey","getInput","onDeclare","children","channelX","channelY","scale","Skia","in1","in2","filter","c","x","y","map","input","Error","ImageFilter","MakeDisplacementMap","DisplacementMap","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,YAAT,QAA6B,qBAA7B;AACA,SAASC,iBAAT,QAAkC,aAAlC;AAEA,SAASC,OAAT,QAAwB,kBAAxB;AAEA,SAASC,QAAT,QAAyB,YAAzB;AASA,MAAMC,SAAS,GAAGH,iBAAiB,CACjC,OAAgCI,QAAhC,YAAuD;AAAA,MAAtD;AAAEC,IAAAA,QAAF;AAAYC,IAAAA,QAAZ;AAAsBC,IAAAA;AAAtB,GAAsD;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AACrD,QAAM,CAACC,GAAD,EAAMC,GAAN,IAAaN,QAAQ,CAACO,MAAT,CAAiBC,CAAD,IAAO,CAAC,CAACA,CAAzB,CAAnB;AACA,QAAMC,CAAC,GAAGd,YAAY,CAACE,OAAO,CAACI,QAAD,CAAR,CAAtB;AACA,QAAMS,CAAC,GAAGf,YAAY,CAACE,OAAO,CAACK,QAAD,CAAR,CAAtB;AACA,QAAMS,GAAG,GAAGb,QAAQ,CAACM,IAAD,EAAO,CAACC,GAAD,CAAP,CAApB;AACA,QAAMO,KAAK,GAAGN,GAAG,GAAGR,QAAQ,CAACM,IAAD,EAAO,CAACE,GAAD,CAAP,CAAX,GAA2B,IAA5C;;AACA,MAAI,CAACK,GAAL,EAAU;AACR,UAAM,IAAIE,KAAJ,CAAU,6BAAV,CAAN;AACD;;AACD,SAAOT,IAAI,CAACU,WAAL,CAAiBC,mBAAjB,CAAqCN,CAArC,EAAwCC,CAAxC,EAA2CP,KAA3C,EAAkDQ,GAAlD,EAAuDC,KAAvD,CAAP;AACD,CAXgC,CAAnC;AAcA,OAAO,MAAMI,eAAe,GAAIC,KAAD,IAAgD;AAC7E,sBAAO;AAAe,IAAA,SAAS,EAAElB;AAA1B,KAAyCkB,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { ColorChannel } from \"../../../skia/types\";\nimport { createDeclaration } from \"../../nodes\";\nimport type { SkEnum, AnimatedProps } from \"../../processors\";\nimport { enumKey } from \"../../processors\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface DisplacementMapProps {\n channelX: SkEnum<typeof ColorChannel>;\n channelY: SkEnum<typeof ColorChannel>;\n scale: number;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<DisplacementMapProps>(\n ({ channelX, channelY, scale }, children, { Skia }) => {\n const [in1, in2] = children.filter((c) => !!c);\n const x = ColorChannel[enumKey(channelX)];\n const y = ColorChannel[enumKey(channelY)];\n const map = getInput(Skia, [in1]);\n const input = in2 ? getInput(Skia, [in2]) : null;\n if (!map) {\n throw new Error(\"No DisplacementMap provided\");\n }\n return Skia.ImageFilter.MakeDisplacementMap(x, y, scale, map, input);\n }\n);\n\nexport const DisplacementMap = (props: AnimatedProps<DisplacementMapProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["DisplacementMap.tsx"],"names":["React","DisplacementMap","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,eAAe,GAC1BC,KAD6B,IAE1B;AACH,sBAAO,oDAAkCA,KAAlC,CAAP;AACD,CAJM","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { DisplacementMapImageFilterProps } from \"../../../dom/types\";\n\nexport const DisplacementMap = (\n props: SkiaProps<DisplacementMapImageFilterProps>\n) => {\n return <skDisplacementMapImageFilter {...props} />;\n};\n"]}
@@ -1,26 +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
- import { processRadius } from "../../processors/Radius";
6
- import { getInput } from "./getInput";
7
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
8
- let {
9
- radius,
10
- operator
11
- } = _ref;
12
- let {
13
- Skia
14
- } = _ref2;
15
- const input = getInput(Skia, children);
16
- const r = processRadius(Skia, radius);
17
- const factory = operator === "dilate" ? Skia.ImageFilter.MakeDilate.bind(Skia.ImageFilter) : Skia.ImageFilter.MakeErode.bind(Skia.ImageFilter);
18
- return factory(r.x, r.y, input);
19
- });
20
2
  export const Morphology = props => {
21
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
22
- onDeclare: onDeclare
23
- }, props));
3
+ return /*#__PURE__*/React.createElement("skMorphologyImageFilter", props);
24
4
  };
25
5
  Morphology.defaultProps = {
26
6
  operator: "dilate"
@@ -1 +1 @@
1
- {"version":3,"sources":["Morphology.tsx"],"names":["React","createDeclaration","processRadius","getInput","onDeclare","children","radius","operator","Skia","input","r","factory","ImageFilter","MakeDilate","bind","MakeErode","x","y","Morphology","props","defaultProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,SAASC,iBAAT,QAAkC,yBAAlC;AAEA,SAASC,aAAT,QAA8B,yBAA9B;AAEA,SAASC,QAAT,QAAyB,YAAzB;AAQA,MAAMC,SAAS,GAAGH,iBAAiB,CACjC,OAAuBI,QAAvB,YAA8C;AAAA,MAA7C;AAAEC,IAAAA,MAAF;AAAUC,IAAAA;AAAV,GAA6C;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC5C,QAAMC,KAAK,GAAGN,QAAQ,CAACK,IAAD,EAAOH,QAAP,CAAtB;AACA,QAAMK,CAAC,GAAGR,aAAa,CAACM,IAAD,EAAOF,MAAP,CAAvB;AACA,QAAMK,OAAO,GACXJ,QAAQ,KAAK,QAAb,GACIC,IAAI,CAACI,WAAL,CAAiBC,UAAjB,CAA4BC,IAA5B,CAAiCN,IAAI,CAACI,WAAtC,CADJ,GAEIJ,IAAI,CAACI,WAAL,CAAiBG,SAAjB,CAA2BD,IAA3B,CAAgCN,IAAI,CAACI,WAArC,CAHN;AAIA,SAAOD,OAAO,CAACD,CAAC,CAACM,CAAH,EAAMN,CAAC,CAACO,CAAR,EAAWR,KAAX,CAAd;AACD,CATgC,CAAnC;AAYA,OAAO,MAAMS,UAAU,GAAIC,KAAD,IAA2C;AACnE,sBAAO;AAAe,IAAA,SAAS,EAAEf;AAA1B,KAAyCe,KAAzC,EAAP;AACD,CAFM;AAIPD,UAAU,CAACE,YAAX,GAA0B;AACxBb,EAAAA,QAAQ,EAAE;AADc,CAA1B","sourcesContent":["import React from \"react\";\n\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps, Radius } from \"../../processors\";\nimport { processRadius } from \"../../processors/Radius\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface MorphologyProps {\n operator: \"erode\" | \"dilate\";\n radius: Radius;\n children?: React.ReactNode | React.ReactNode[];\n}\n\nconst onDeclare = createDeclaration<MorphologyProps>(\n ({ radius, operator }, children, { Skia }) => {\n const input = getInput(Skia, children);\n const r = processRadius(Skia, radius);\n const factory =\n operator === \"dilate\"\n ? Skia.ImageFilter.MakeDilate.bind(Skia.ImageFilter)\n : Skia.ImageFilter.MakeErode.bind(Skia.ImageFilter);\n return factory(r.x, r.y, input);\n }\n);\n\nexport const Morphology = (props: AnimatedProps<MorphologyProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nMorphology.defaultProps = {\n operator: \"dilate\",\n};\n"]}
1
+ {"version":3,"sources":["Morphology.tsx"],"names":["React","Morphology","props","defaultProps","operator"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,UAAU,GAAIC,KAAD,IAAkD;AAC1E,sBAAO,+CAA6BA,KAA7B,CAAP;AACD,CAFM;AAIPD,UAAU,CAACE,YAAX,GAA0B;AACxBC,EAAAA,QAAQ,EAAE;AADc,CAA1B","sourcesContent":["import React from \"react\";\n\nimport type { MorphologyImageFilterProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Morphology = (props: SkiaProps<MorphologyImageFilterProps>) => {\n return <skMorphologyImageFilter {...props} />;\n};\n\nMorphology.defaultProps = {\n operator: \"dilate\",\n};\n"]}
@@ -1,22 +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
- import { getInput } from "./getInput";
6
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
7
- let {
8
- x,
9
- y
10
- } = _ref;
11
- let {
12
- Skia
13
- } = _ref2;
14
- return Skia.ImageFilter.MakeOffset(x, y, getInput(Skia, children));
15
- });
16
2
  export const Offset = props => {
17
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
18
- onDeclare: onDeclare
19
- }, props));
3
+ return /*#__PURE__*/React.createElement("skOffsetImageFilter", props);
20
4
  };
21
5
  Offset.defaultProps = {
22
6
  x: 0,
@@ -1 +1 @@
1
- {"version":3,"sources":["Offset.tsx"],"names":["React","createDeclaration","getInput","onDeclare","children","x","y","Skia","ImageFilter","MakeOffset","Offset","props","defaultProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,iBAAT,QAAkC,yBAAlC;AAGA,SAASC,QAAT,QAAyB,YAAzB;AAQA,MAAMC,SAAS,GAAGF,iBAAiB,CACjC,OAAWG,QAAX,YAAkC;AAAA,MAAjC;AAAEC,IAAAA,CAAF;AAAKC,IAAAA;AAAL,GAAiC;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAChC,SAAOA,IAAI,CAACC,WAAL,CAAiBC,UAAjB,CAA4BJ,CAA5B,EAA+BC,CAA/B,EAAkCJ,QAAQ,CAACK,IAAD,EAAOH,QAAP,CAA1C,CAAP;AACD,CAHgC,CAAnC;AAMA,OAAO,MAAMM,MAAM,GAAIC,KAAD,IAAuC;AAC3D,sBAAO;AAAe,IAAA,SAAS,EAAER;AAA1B,KAAyCQ,KAAzC,EAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;AACpBP,EAAAA,CAAC,EAAE,CADiB;AAEpBC,EAAAA,CAAC,EAAE;AAFiB,CAAtB","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface OffsetProps {\n x: number;\n y: number;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<OffsetProps>(\n ({ x, y }, children, { Skia }) => {\n return Skia.ImageFilter.MakeOffset(x, y, getInput(Skia, children));\n }\n);\n\nexport const Offset = (props: AnimatedProps<OffsetProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nOffset.defaultProps = {\n x: 0,\n y: 0,\n};\n"]}
1
+ {"version":3,"sources":["Offset.tsx"],"names":["React","Offset","props","defaultProps","x","y"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,MAAM,GAAIC,KAAD,IAA8C;AAClE,sBAAO,2CAAyBA,KAAzB,CAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;AACpBC,EAAAA,CAAC,EAAE,CADiB;AAEpBC,EAAAA,CAAC,EAAE;AAFiB,CAAtB","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { OffsetImageFilterProps } from \"../../../dom/types\";\n\nexport const Offset = (props: SkiaProps<OffsetImageFilterProps>) => {\n return <skOffsetImageFilter {...props} />;\n};\n\nOffset.defaultProps = {\n x: 0,\n y: 0,\n};\n"]}
@@ -1,28 +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 { processUniforms } from "../../../skia/types/Shader/Shader";
6
- import { getInput } from "./getInput";
7
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
8
- let {
9
- source,
10
- uniforms
11
- } = _ref;
12
- let {
13
- Skia
14
- } = _ref2;
15
- const rtb = Skia.RuntimeShaderBuilder(source);
16
-
17
- if (uniforms) {
18
- processUniforms(source, uniforms, rtb);
19
- }
20
-
21
- return Skia.ImageFilter.MakeRuntimeShader(rtb, null, getInput(Skia, children));
22
- });
23
2
  export const RuntimeShader = props => {
24
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
25
- onDeclare: onDeclare
26
- }, props));
3
+ return /*#__PURE__*/React.createElement("skRuntimeShaderImageFilter", props);
27
4
  };
28
5
  //# sourceMappingURL=RuntimeShader.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["RuntimeShader.tsx"],"names":["React","createDeclaration","processUniforms","getInput","onDeclare","children","source","uniforms","Skia","rtb","RuntimeShaderBuilder","ImageFilter","MakeRuntimeShader","RuntimeShader","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,SAASC,iBAAT,QAAkC,yBAAlC;AAGA,SAASC,eAAT,QAAgC,mCAAhC;AAEA,SAASC,QAAT,QAAyB,YAAzB;AAOA,MAAMC,SAAS,GAAGH,iBAAiB,CACjC,OAAuBI,QAAvB,YAA8C;AAAA,MAA7C;AAAEC,IAAAA,MAAF;AAAUC,IAAAA;AAAV,GAA6C;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC5C,QAAMC,GAAG,GAAGD,IAAI,CAACE,oBAAL,CAA0BJ,MAA1B,CAAZ;;AACA,MAAIC,QAAJ,EAAc;AACZL,IAAAA,eAAe,CAACI,MAAD,EAASC,QAAT,EAAmBE,GAAnB,CAAf;AACD;;AACD,SAAOD,IAAI,CAACG,WAAL,CAAiBC,iBAAjB,CACLH,GADK,EAEL,IAFK,EAGLN,QAAQ,CAACK,IAAD,EAAOH,QAAP,CAHH,CAAP;AAKD,CAXgC,CAAnC;AAcA,OAAO,MAAMQ,aAAa,GAAIC,KAAD,IAA8C;AACzE,sBAAO;AAAe,IAAA,SAAS,EAAEV;AAA1B,KAAyCU,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport type { SkRuntimeEffect, Uniforms } from \"../../../skia/types\";\nimport { processUniforms } from \"../../../skia/types/Shader/Shader\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface RuntimeShaderProps {\n source: SkRuntimeEffect;\n uniforms?: Uniforms;\n}\n\nconst onDeclare = createDeclaration<RuntimeShaderProps>(\n ({ source, uniforms }, children, { Skia }) => {\n const rtb = Skia.RuntimeShaderBuilder(source);\n if (uniforms) {\n processUniforms(source, uniforms, rtb);\n }\n return Skia.ImageFilter.MakeRuntimeShader(\n rtb,\n null,\n getInput(Skia, children)\n );\n }\n);\n\nexport const RuntimeShader = (props: AnimatedProps<RuntimeShaderProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["RuntimeShader.tsx"],"names":["React","RuntimeShader","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,aAAa,GACxBC,KAD2B,IAExB;AACH,sBAAO,kDAAgCA,KAAhC,CAAP;AACD,CAJM","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { RuntimeShaderImageFilterProps } from \"../../../dom/types\";\n\nexport const RuntimeShader = (\n props: SkiaProps<RuntimeShaderImageFilterProps>\n) => {\n return <skRuntimeShaderImageFilter {...props} />;\n};\n"]}
@@ -1,38 +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 { processColor } from "../../processors/Color";
6
- import { getInput } from "./getInput";
7
- import { MakeInnerShadow } from "./InnerShadow";
8
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
9
- let {
10
- dx,
11
- dy,
12
- blur,
13
- color: cl,
14
- shadowOnly,
15
- inner
16
- } = _ref;
17
- let {
18
- opacity,
19
- Skia
20
- } = _ref2;
21
- const input = getInput(Skia, children);
22
- const color = processColor(Skia, cl, opacity);
23
- let factory;
24
-
25
- if (inner) {
26
- factory = MakeInnerShadow.bind(null, Skia, shadowOnly);
27
- } else {
28
- factory = shadowOnly ? Skia.ImageFilter.MakeDropShadowOnly.bind(Skia.ImageFilter) : Skia.ImageFilter.MakeDropShadow.bind(Skia.ImageFilter);
29
- }
30
-
31
- return factory(dx, dy, blur, blur, color, input);
32
- });
33
2
  export const Shadow = props => {
34
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
35
- onDeclare: onDeclare
36
- }, props));
3
+ return /*#__PURE__*/React.createElement("skDropShadowImageFilter", props);
37
4
  };
38
5
  //# sourceMappingURL=Shadow.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Shadow.tsx"],"names":["React","createDeclaration","processColor","getInput","MakeInnerShadow","onDeclare","children","dx","dy","blur","color","cl","shadowOnly","inner","opacity","Skia","input","factory","bind","ImageFilter","MakeDropShadowOnly","MakeDropShadow","Shadow","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,SAASC,iBAAT,QAAkC,yBAAlC;AAGA,SAASC,YAAT,QAA6B,wBAA7B;AAEA,SAASC,QAAT,QAAyB,YAAzB;AACA,SAASC,eAAT,QAAgC,eAAhC;AAWA,MAAMC,SAAS,GAAGJ,iBAAiB,CACjC,OAEEK,QAFF,YAIK;AAAA,MAHH;AAAEC,IAAAA,EAAF;AAAMC,IAAAA,EAAN;AAAUC,IAAAA,IAAV;AAAgBC,IAAAA,KAAK,EAAEC,EAAvB;AAA2BC,IAAAA,UAA3B;AAAuCC,IAAAA;AAAvC,GAGG;AAAA,MADH;AAAEC,IAAAA,OAAF;AAAWC,IAAAA;AAAX,GACG;AACH,QAAMC,KAAK,GAAGb,QAAQ,CAACY,IAAD,EAAOT,QAAP,CAAtB;AACA,QAAMI,KAAK,GAAGR,YAAY,CAACa,IAAD,EAAOJ,EAAP,EAAWG,OAAX,CAA1B;AACA,MAAIG,OAAJ;;AACA,MAAIJ,KAAJ,EAAW;AACTI,IAAAA,OAAO,GAAGb,eAAe,CAACc,IAAhB,CAAqB,IAArB,EAA2BH,IAA3B,EAAiCH,UAAjC,CAAV;AACD,GAFD,MAEO;AACLK,IAAAA,OAAO,GAAGL,UAAU,GAChBG,IAAI,CAACI,WAAL,CAAiBC,kBAAjB,CAAoCF,IAApC,CAAyCH,IAAI,CAACI,WAA9C,CADgB,GAEhBJ,IAAI,CAACI,WAAL,CAAiBE,cAAjB,CAAgCH,IAAhC,CAAqCH,IAAI,CAACI,WAA1C,CAFJ;AAGD;;AACD,SAAOF,OAAO,CAACV,EAAD,EAAKC,EAAL,EAASC,IAAT,EAAeA,IAAf,EAAqBC,KAArB,EAA4BM,KAA5B,CAAd;AACD,CAjBgC,CAAnC;AAoBA,OAAO,MAAMM,MAAM,GAAIC,KAAD,IAAuC;AAC3D,sBAAO;AAAe,IAAA,SAAS,EAAElB;AAA1B,KAAyCkB,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport type { Color } from \"../../../skia/types\";\nimport { processColor } from \"../../processors/Color\";\n\nimport { getInput } from \"./getInput\";\nimport { MakeInnerShadow } from \"./InnerShadow\";\n\nexport interface ShadowProps {\n dx: number;\n dy: number;\n blur: number;\n color: Color;\n inner?: boolean;\n shadowOnly?: boolean;\n}\n\nconst onDeclare = createDeclaration<ShadowProps>(\n (\n { dx, dy, blur, color: cl, shadowOnly, inner },\n children,\n { opacity, Skia }\n ) => {\n const input = getInput(Skia, children);\n const color = processColor(Skia, cl, opacity);\n let factory;\n if (inner) {\n factory = MakeInnerShadow.bind(null, Skia, shadowOnly);\n } else {\n factory = shadowOnly\n ? Skia.ImageFilter.MakeDropShadowOnly.bind(Skia.ImageFilter)\n : Skia.ImageFilter.MakeDropShadow.bind(Skia.ImageFilter);\n }\n return factory(dx, dy, blur, blur, color, input);\n }\n);\n\nexport const Shadow = (props: AnimatedProps<ShadowProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["Shadow.tsx"],"names":["React","Shadow","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,MAAM,GAAIC,KAAD,IAAkD;AACtE,sBAAO,+CAA6BA,KAA7B,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { DropShadowImageFilterProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const Shadow = (props: SkiaProps<DropShadowImageFilterProps>) => {\n return <skDropShadowImageFilter {...props} />;\n};\n"]}
@@ -12,7 +12,6 @@ export * from "./Picture";
12
12
  export * from "./Group";
13
13
  export * from "./Mask";
14
14
  export * from "./Paint";
15
- export * from "./Compose";
16
15
  export * from "./Blend";
17
16
  export * from "./Drawing";
18
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAd;AACA,cAAc,YAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd;AACA,cAAc,QAAd;AACA,cAAc,gBAAd;AACA,cAAc,eAAd;AACA,cAAc,gBAAd;AACA,cAAc,eAAd;AACA,cAAc,eAAd;AACA,cAAc,WAAd;AAEA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd","sourcesContent":["export * from \"./shapes\";\nexport * from \"./backdrop\";\nexport * from \"./image\";\nexport * from \"./shaders\";\nexport * from \"./text\";\nexport * from \"./colorFilters\";\nexport * from \"./maskFilters\";\nexport * from \"./imageFilters\";\nexport * from \"./pathEffects\";\nexport * from \"../processors\";\nexport * from \"./Picture\";\n\nexport * from \"./Group\";\nexport * from \"./Mask\";\nexport * from \"./Paint\";\nexport * from \"./Compose\";\nexport * from \"./Blend\";\nexport * from \"./Drawing\";\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAd;AACA,cAAc,YAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd;AACA,cAAc,QAAd;AACA,cAAc,gBAAd;AACA,cAAc,eAAd;AACA,cAAc,gBAAd;AACA,cAAc,eAAd;AACA,cAAc,eAAd;AACA,cAAc,WAAd;AAEA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,SAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd","sourcesContent":["export * from \"./shapes\";\nexport * from \"./backdrop\";\nexport * from \"./image\";\nexport * from \"./shaders\";\nexport * from \"./text\";\nexport * from \"./colorFilters\";\nexport * from \"./maskFilters\";\nexport * from \"./imageFilters\";\nexport * from \"./pathEffects\";\nexport * from \"../processors\";\nexport * from \"./Picture\";\n\nexport * from \"./Group\";\nexport * from \"./Mask\";\nexport * from \"./Paint\";\nexport * from \"./Blend\";\nexport * from \"./Drawing\";\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 { BlurStyle } from "../../../skia/types";
5
- import { createDeclaration } from "../../nodes/Declaration";
6
- import { enumKey } from "../../processors";
7
- const onDeclare = createDeclaration((_ref, _, _ref2) => {
8
- let {
9
- style,
10
- blur,
11
- respectCTM
12
- } = _ref;
13
- let {
14
- Skia
15
- } = _ref2;
16
- return Skia.MaskFilter.MakeBlur(BlurStyle[enumKey(style)], blur, respectCTM);
17
- });
18
2
  export const BlurMask = props => {
19
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
20
- onDeclare: onDeclare
21
- }, props));
3
+ return /*#__PURE__*/React.createElement("skBlurMaskFilter", props);
22
4
  };
23
5
  BlurMask.defaultProps = {
24
6
  style: "normal",
@@ -1 +1 @@
1
- {"version":3,"sources":["Blur.tsx"],"names":["React","BlurStyle","createDeclaration","enumKey","onDeclare","_","style","blur","respectCTM","Skia","MaskFilter","MakeBlur","BlurMask","props","defaultProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,SAASC,SAAT,QAA0B,qBAA1B;AACA,SAASC,iBAAT,QAAkC,yBAAlC;AAEA,SAASC,OAAT,QAAwB,kBAAxB;AASA,MAAMC,SAAS,GAAGF,iBAAiB,CACjC,OAA8BG,CAA9B,YAA8C;AAAA,MAA7C;AAAEC,IAAAA,KAAF;AAASC,IAAAA,IAAT;AAAeC,IAAAA;AAAf,GAA6C;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC5C,SAAOA,IAAI,CAACC,UAAL,CAAgBC,QAAhB,CACLV,SAAS,CAACE,OAAO,CAACG,KAAD,CAAR,CADJ,EAELC,IAFK,EAGLC,UAHK,CAAP;AAKD,CAPgC,CAAnC;AAUA,OAAO,MAAMI,QAAQ,GAAIC,KAAD,IAAyC;AAC/D,sBAAO;AAAe,IAAA,SAAS,EAAET;AAA1B,KAAyCS,KAAzC,EAAP;AACD,CAFM;AAIPD,QAAQ,CAACE,YAAT,GAAwB;AACtBR,EAAAA,KAAK,EAAE,QADe;AAEtBE,EAAAA,UAAU,EAAE;AAFU,CAAxB","sourcesContent":["import React from \"react\";\n\nimport { BlurStyle } from \"../../../skia/types\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { SkEnum } from \"../../processors\";\nimport { enumKey } from \"../../processors\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nexport interface BlurMaskProps {\n style: SkEnum<typeof BlurStyle>;\n blur: number;\n respectCTM: boolean;\n}\n\nconst onDeclare = createDeclaration<BlurMaskProps>(\n ({ style, blur, respectCTM }, _, { Skia }) => {\n return Skia.MaskFilter.MakeBlur(\n BlurStyle[enumKey(style)],\n blur,\n respectCTM\n );\n }\n);\n\nexport const BlurMask = (props: AnimatedProps<BlurMaskProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nBlurMask.defaultProps = {\n style: \"normal\",\n respectCTM: true,\n};\n"]}
1
+ {"version":3,"sources":["Blur.tsx"],"names":["React","BlurMask","props","defaultProps","style","respectCTM"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,QAAQ,GAAIC,KAAD,IAA2C;AACjE,sBAAO,wCAAsBA,KAAtB,CAAP;AACD,CAFM;AAIPD,QAAQ,CAACE,YAAT,GAAwB;AACtBC,EAAAA,KAAK,EAAE,QADe;AAEtBC,EAAAA,UAAU,EAAE;AAFU,CAAxB","sourcesContent":["import React from \"react\";\n\nimport type { BlurMaskFilterProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const BlurMask = (props: SkiaProps<BlurMaskFilterProps>) => {\n return <skBlurMaskFilter {...props} />;\n};\n\nBlurMask.defaultProps = {\n style: \"normal\",\n respectCTM: true,\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 { isPathEffect } from "../../../skia/types";
5
- import { createDeclaration } from "../../nodes/Declaration";
6
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
7
- let {
8
- r
9
- } = _ref;
10
- let {
11
- Skia
12
- } = _ref2;
13
- const [child] = children.filter(isPathEffect);
14
- const pe = Skia.PathEffect.MakeCorner(r);
15
-
16
- if (child) {
17
- if (!pe) {
18
- return child;
19
- }
20
-
21
- return Skia.PathEffect.MakeCompose(pe, child);
22
- }
23
-
24
- return pe;
25
- });
26
2
  export const CornerPathEffect = props => {
27
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
28
- onDeclare: onDeclare
29
- }, props));
3
+ return /*#__PURE__*/React.createElement("skCornerPathEffect", props);
30
4
  };
31
5
  //# sourceMappingURL=Corner.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Corner.tsx"],"names":["React","isPathEffect","createDeclaration","onDeclare","children","r","Skia","child","filter","pe","PathEffect","MakeCorner","MakeCompose","CornerPathEffect","props"],"mappings":";;AACA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,SAASC,YAAT,QAA6B,qBAA7B;AACA,SAASC,iBAAT,QAAkC,yBAAlC;AAQA,MAAMC,SAAS,GAAGD,iBAAiB,CACjC,OAAQE,QAAR,YAA+B;AAAA,MAA9B;AAAEC,IAAAA;AAAF,GAA8B;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC7B,QAAM,CAACC,KAAD,IAAUH,QAAQ,CAACI,MAAT,CAAgBP,YAAhB,CAAhB;AACA,QAAMQ,EAAE,GAAGH,IAAI,CAACI,UAAL,CAAgBC,UAAhB,CAA2BN,CAA3B,CAAX;;AACA,MAAIE,KAAJ,EAAW;AACT,QAAI,CAACE,EAAL,EAAS;AACP,aAAOF,KAAP;AACD;;AACD,WAAOD,IAAI,CAACI,UAAL,CAAgBE,WAAhB,CAA4BH,EAA5B,EAAgCF,KAAhC,CAAP;AACD;;AACD,SAAOE,EAAP;AACD,CAXgC,CAAnC;AAcA,OAAO,MAAMI,gBAAgB,GAC3BC,KAD8B,IAE3B;AACH,sBAAO;AAAe,IAAA,SAAS,EAAEX;AAA1B,KAAyCW,KAAzC,EAAP;AACD,CAJM","sourcesContent":["import type { ReactNode } from \"react\";\nimport React from \"react\";\n\nimport { isPathEffect } from \"../../../skia/types\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nexport interface CornerPathEffectProps {\n r: number;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<CornerPathEffectProps>(\n ({ r }, children, { Skia }) => {\n const [child] = children.filter(isPathEffect);\n const pe = Skia.PathEffect.MakeCorner(r);\n if (child) {\n if (!pe) {\n return child;\n }\n return Skia.PathEffect.MakeCompose(pe, child);\n }\n return pe;\n }\n);\n\nexport const CornerPathEffect = (\n props: AnimatedProps<CornerPathEffectProps>\n) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["Corner.tsx"],"names":["React","CornerPathEffect","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,gBAAgB,GAAIC,KAAD,IAA6C;AAC3E,sBAAO,0CAAwBA,KAAxB,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { CornerPathEffectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const CornerPathEffect = (props: SkiaProps<CornerPathEffectProps>) => {\n return <skCornerPathEffect {...props} />;\n};\n"]}
@@ -1,28 +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 { isPathEffect } from "../../../skia/types";
5
- import { createDeclaration } from "../../nodes/Declaration";
6
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
7
- let {
8
- intervals,
9
- phase
10
- } = _ref;
11
- let {
12
- Skia
13
- } = _ref2;
14
- const [child] = children.filter(isPathEffect);
15
- const pe = Skia.PathEffect.MakeDash(intervals, phase);
16
-
17
- if (child) {
18
- return Skia.PathEffect.MakeCompose(pe, child);
19
- }
20
-
21
- return pe;
22
- });
23
2
  export const DashPathEffect = props => {
24
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
25
- onDeclare: onDeclare
26
- }, props));
3
+ return /*#__PURE__*/React.createElement("skDashPathEffect", props);
27
4
  };
28
5
  //# sourceMappingURL=Dash.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Dash.tsx"],"names":["React","isPathEffect","createDeclaration","onDeclare","children","intervals","phase","Skia","child","filter","pe","PathEffect","MakeDash","MakeCompose","DashPathEffect","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,YAAT,QAA6B,qBAA7B;AACA,SAASC,iBAAT,QAAkC,yBAAlC;AASA,MAAMC,SAAS,GAAGD,iBAAiB,CACjC,OAAuBE,QAAvB,YAA8C;AAAA,MAA7C;AAAEC,IAAAA,SAAF;AAAaC,IAAAA;AAAb,GAA6C;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC5C,QAAM,CAACC,KAAD,IAAUJ,QAAQ,CAACK,MAAT,CAAgBR,YAAhB,CAAhB;AACA,QAAMS,EAAE,GAAGH,IAAI,CAACI,UAAL,CAAgBC,QAAhB,CAAyBP,SAAzB,EAAoCC,KAApC,CAAX;;AACA,MAAIE,KAAJ,EAAW;AACT,WAAOD,IAAI,CAACI,UAAL,CAAgBE,WAAhB,CAA4BH,EAA5B,EAAgCF,KAAhC,CAAP;AACD;;AACD,SAAOE,EAAP;AACD,CARgC,CAAnC;AAWA,OAAO,MAAMI,cAAc,GAAIC,KAAD,IAA+C;AAC3E,sBAAO;AAAe,IAAA,SAAS,EAAEZ;AAA1B,KAAyCY,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { isPathEffect } from \"../../../skia/types\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nexport interface DashPathEffectProps {\n intervals: number[];\n phase?: number;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<DashPathEffectProps>(\n ({ intervals, phase }, children, { Skia }) => {\n const [child] = children.filter(isPathEffect);\n const pe = Skia.PathEffect.MakeDash(intervals, phase);\n if (child) {\n return Skia.PathEffect.MakeCompose(pe, child);\n }\n return pe;\n }\n);\n\nexport const DashPathEffect = (props: AnimatedProps<DashPathEffectProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["Dash.tsx"],"names":["React","DashPathEffect","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 { DashPathEffectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const DashPathEffect = (props: SkiaProps<DashPathEffectProps>) => {\n return <skDashPathEffect {...props} />;\n};\n"]}
@@ -1,30 +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 { isPathEffect } from "../../../skia/types";
5
- import { createDeclaration } from "../../nodes/Declaration";
6
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
7
- let {
8
- length,
9
- deviation,
10
- seed
11
- } = _ref;
12
- let {
13
- Skia
14
- } = _ref2;
15
- const [child] = children.filter(isPathEffect);
16
- const pe = Skia.PathEffect.MakeDiscrete(length, deviation, seed);
17
-
18
- if (child) {
19
- return Skia.PathEffect.MakeCompose(pe, child);
20
- }
21
-
22
- return pe;
23
- });
24
2
  export const DiscretePathEffect = props => {
25
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
26
- onDeclare: onDeclare
27
- }, props));
3
+ return /*#__PURE__*/React.createElement("skDiscretePathEffect", props);
28
4
  };
29
5
  DiscretePathEffect.defaultProps = {
30
6
  seed: 0
@@ -1 +1 @@
1
- {"version":3,"sources":["Discrete.tsx"],"names":["React","isPathEffect","createDeclaration","onDeclare","children","length","deviation","seed","Skia","child","filter","pe","PathEffect","MakeDiscrete","MakeCompose","DiscretePathEffect","props","defaultProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,YAAT,QAA6B,qBAA7B;AACA,SAASC,iBAAT,QAAkC,yBAAlC;AAUA,MAAMC,SAAS,GAAGD,iBAAiB,CACjC,OAA8BE,QAA9B,YAAqD;AAAA,MAApD;AAAEC,IAAAA,MAAF;AAAUC,IAAAA,SAAV;AAAqBC,IAAAA;AAArB,GAAoD;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AACnD,QAAM,CAACC,KAAD,IAAUL,QAAQ,CAACM,MAAT,CAAgBT,YAAhB,CAAhB;AACA,QAAMU,EAAE,GAAGH,IAAI,CAACI,UAAL,CAAgBC,YAAhB,CAA6BR,MAA7B,EAAqCC,SAArC,EAAgDC,IAAhD,CAAX;;AACA,MAAIE,KAAJ,EAAW;AACT,WAAOD,IAAI,CAACI,UAAL,CAAgBE,WAAhB,CAA4BH,EAA5B,EAAgCF,KAAhC,CAAP;AACD;;AACD,SAAOE,EAAP;AACD,CARgC,CAAnC;AAWA,OAAO,MAAMI,kBAAkB,GAC7BC,KADgC,IAE7B;AACH,sBAAO;AAAe,IAAA,SAAS,EAAEb;AAA1B,KAAyCa,KAAzC,EAAP;AACD,CAJM;AAMPD,kBAAkB,CAACE,YAAnB,GAAkC;AAChCV,EAAAA,IAAI,EAAE;AAD0B,CAAlC","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { isPathEffect } from \"../../../skia/types\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nexport interface DiscretePathEffectProps {\n length: number;\n deviation: number;\n seed: number;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<DiscretePathEffectProps>(\n ({ length, deviation, seed }, children, { Skia }) => {\n const [child] = children.filter(isPathEffect);\n const pe = Skia.PathEffect.MakeDiscrete(length, deviation, seed);\n if (child) {\n return Skia.PathEffect.MakeCompose(pe, child);\n }\n return pe;\n }\n);\n\nexport const DiscretePathEffect = (\n props: AnimatedProps<DiscretePathEffectProps>\n) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nDiscretePathEffect.defaultProps = {\n seed: 0,\n};\n"]}
1
+ {"version":3,"sources":["Discrete.tsx"],"names":["React","DiscretePathEffect","props","defaultProps","seed"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,kBAAkB,GAC7BC,KADgC,IAE7B;AACH,sBAAO,4CAA0BA,KAA1B,CAAP;AACD,CAJM;AAMPD,kBAAkB,CAACE,YAAnB,GAAkC;AAChCC,EAAAA,IAAI,EAAE;AAD0B,CAAlC","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { DiscretePathEffectProps } from \"../../../dom/types\";\n\nexport const DiscretePathEffect = (\n props: SkiaProps<DiscretePathEffectProps>\n) => {\n return <skDiscretePathEffect {...props} />;\n};\n\nDiscretePathEffect.defaultProps = {\n seed: 0,\n};\n"]}
@@ -1,32 +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 { isPathEffect } from "../../../skia/types";
5
- import { createDeclaration } from "../../nodes/Declaration";
6
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
7
- let {
8
- width,
9
- matrix
10
- } = _ref;
11
- let {
12
- Skia
13
- } = _ref2;
14
- const [child] = children.filter(isPathEffect);
15
- const pe = Skia.PathEffect.MakeLine2D(width, matrix);
16
-
17
- if (child) {
18
- if (!pe) {
19
- return child;
20
- }
21
-
22
- return Skia.PathEffect.MakeCompose(pe, child);
23
- }
24
-
25
- return pe;
26
- });
27
2
  export const Line2DPathEffect = props => {
28
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
29
- onDeclare: onDeclare
30
- }, props));
3
+ return /*#__PURE__*/React.createElement("skLine2DPathEffect", props);
31
4
  };
32
5
  //# sourceMappingURL=Line2D.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Line2D.tsx"],"names":["React","isPathEffect","createDeclaration","onDeclare","children","width","matrix","Skia","child","filter","pe","PathEffect","MakeLine2D","MakeCompose","Line2DPathEffect","props"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,SAASC,YAAT,QAA6B,qBAA7B;AACA,SAASC,iBAAT,QAAkC,yBAAlC;AAUA,MAAMC,SAAS,GAAGD,iBAAiB,CACjC,OAAoBE,QAApB,YAA2C;AAAA,MAA1C;AAAEC,IAAAA,KAAF;AAASC,IAAAA;AAAT,GAA0C;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AACzC,QAAM,CAACC,KAAD,IAAUJ,QAAQ,CAACK,MAAT,CAAgBR,YAAhB,CAAhB;AACA,QAAMS,EAAE,GAAGH,IAAI,CAACI,UAAL,CAAgBC,UAAhB,CAA2BP,KAA3B,EAAkCC,MAAlC,CAAX;;AACA,MAAIE,KAAJ,EAAW;AACT,QAAI,CAACE,EAAL,EAAS;AACP,aAAOF,KAAP;AACD;;AACD,WAAOD,IAAI,CAACI,UAAL,CAAgBE,WAAhB,CAA4BH,EAA5B,EAAgCF,KAAhC,CAAP;AACD;;AACD,SAAOE,EAAP;AACD,CAXgC,CAAnC;AAcA,OAAO,MAAMI,gBAAgB,GAC3BC,KAD8B,IAE3B;AACH,sBAAO;AAAe,IAAA,SAAS,EAAEZ;AAA1B,KAAyCY,KAAzC,EAAP;AACD,CAJM","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { isPathEffect } from \"../../../skia/types\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport type { SkMatrix } from \"../../../skia/types\";\n\nexport interface Line2DPathEffectProps {\n children?: ReactNode | ReactNode[];\n width: number;\n matrix: SkMatrix;\n}\n\nconst onDeclare = createDeclaration<Line2DPathEffectProps>(\n ({ width, matrix }, children, { Skia }) => {\n const [child] = children.filter(isPathEffect);\n const pe = Skia.PathEffect.MakeLine2D(width, matrix);\n if (child) {\n if (!pe) {\n return child;\n }\n return Skia.PathEffect.MakeCompose(pe, child);\n }\n return pe;\n }\n);\n\nexport const Line2DPathEffect = (\n props: AnimatedProps<Line2DPathEffectProps>\n) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["Line2D.tsx"],"names":["React","Line2DPathEffect","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,gBAAgB,GAAIC,KAAD,IAA6C;AAC3E,sBAAO,0CAAwBA,KAAxB,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { Line2DPathEffectProps } from \"../../../dom/types\";\n\nexport const Line2DPathEffect = (props: SkiaProps<Line2DPathEffectProps>) => {\n return <skLine2DPathEffect {...props} />;\n};\n"]}
@@ -1,36 +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 { Path1DEffectStyle, isPathEffect } from "../../../skia/types";
5
- import { createDeclaration } from "../../nodes/Declaration";
6
- import { enumKey } from "../../processors/Paint";
7
- import { processPath } from "../../processors/Paths";
8
- const onDeclare = createDeclaration((_ref, children, _ref2) => {
9
- let {
10
- path,
11
- advance,
12
- phase,
13
- style
14
- } = _ref;
15
- let {
16
- Skia
17
- } = _ref2;
18
- const [child] = children.filter(isPathEffect);
19
- const pe = Skia.PathEffect.MakePath1D(processPath(Skia, path), advance, phase, Path1DEffectStyle[enumKey(style)]);
20
-
21
- if (child) {
22
- if (!pe) {
23
- return child;
24
- }
25
-
26
- return Skia.PathEffect.MakeCompose(pe, child);
27
- }
28
-
29
- return pe;
30
- });
31
2
  export const Path1DPathEffect = props => {
32
- return /*#__PURE__*/React.createElement("skDeclaration", _extends({
33
- onDeclare: onDeclare
34
- }, props));
3
+ return /*#__PURE__*/React.createElement("skPath1DPathEffect", props);
35
4
  };
36
5
  //# sourceMappingURL=Path1D.js.map