@shopify/react-native-skia 0.1.237 → 0.1.238

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1037) hide show
  1. package/cpp/rnskia/dom/base/JsiDomNode.h +16 -0
  2. package/lib/commonjs/Platform/Platform.js +1 -5
  3. package/lib/commonjs/Platform/Platform.js.map +1 -1
  4. package/lib/commonjs/Platform/Platform.web.js +11 -33
  5. package/lib/commonjs/Platform/Platform.web.js.map +1 -1
  6. package/lib/commonjs/Platform/index.js +0 -2
  7. package/lib/commonjs/Platform/index.js.map +1 -1
  8. package/lib/commonjs/animation/functions/index.js +0 -8
  9. package/lib/commonjs/animation/functions/index.js.map +1 -1
  10. package/lib/commonjs/animation/functions/interpolate.js +12 -31
  11. package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
  12. package/lib/commonjs/animation/functions/interpolateColors.js +2 -13
  13. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  14. package/lib/commonjs/animation/functions/interpolatePaths.js +1 -16
  15. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
  16. package/lib/commonjs/animation/functions/interpolateVector.js +0 -5
  17. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
  18. package/lib/commonjs/animation/index.js +0 -2
  19. package/lib/commonjs/animation/index.js.map +1 -1
  20. package/lib/commonjs/dom/nodes/DrawingNode.js +7 -22
  21. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
  22. package/lib/commonjs/dom/nodes/GroupNode.js +0 -6
  23. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
  24. package/lib/commonjs/dom/nodes/JsiSkDOM.js +25 -87
  25. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  26. package/lib/commonjs/dom/nodes/LayerNode.js +0 -11
  27. package/lib/commonjs/dom/nodes/LayerNode.js.map +1 -1
  28. package/lib/commonjs/dom/nodes/Node.js +4 -36
  29. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  30. package/lib/commonjs/dom/nodes/PaintNode.js +1 -29
  31. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
  32. package/lib/commonjs/dom/nodes/RenderNode.js +3 -35
  33. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
  34. package/lib/commonjs/dom/nodes/datatypes/Circle.js +6 -8
  35. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
  36. package/lib/commonjs/dom/nodes/datatypes/Enum.js +0 -2
  37. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
  38. package/lib/commonjs/dom/nodes/datatypes/Fitting.js +15 -46
  39. package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
  40. package/lib/commonjs/dom/nodes/datatypes/Gradient.js +9 -20
  41. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
  42. package/lib/commonjs/dom/nodes/datatypes/Path.js +2 -8
  43. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
  44. package/lib/commonjs/dom/nodes/datatypes/Radius.js +0 -3
  45. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
  46. package/lib/commonjs/dom/nodes/datatypes/Rect.js +10 -15
  47. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
  48. package/lib/commonjs/dom/nodes/datatypes/Transform.js +0 -6
  49. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
  50. package/lib/commonjs/dom/nodes/datatypes/index.js +0 -16
  51. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
  52. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js +4 -15
  53. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js.map +1 -1
  54. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js +4 -18
  55. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  56. package/lib/commonjs/dom/nodes/drawings/Box.js +8 -34
  57. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
  58. package/lib/commonjs/dom/nodes/drawings/CircleNode.js +4 -15
  59. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
  60. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js +4 -12
  61. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  62. package/lib/commonjs/dom/nodes/drawings/FillNode.js +5 -14
  63. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
  64. package/lib/commonjs/dom/nodes/drawings/ImageNode.js +6 -19
  65. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
  66. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js +3 -18
  67. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
  68. package/lib/commonjs/dom/nodes/drawings/LineNode.js +4 -12
  69. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
  70. package/lib/commonjs/dom/nodes/drawings/OvalNode.js +4 -15
  71. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
  72. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js +3 -12
  73. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  74. package/lib/commonjs/dom/nodes/drawings/PatchNode.js +6 -18
  75. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
  76. package/lib/commonjs/dom/nodes/drawings/PathNode.js +4 -21
  77. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
  78. package/lib/commonjs/dom/nodes/drawings/PictureNode.js +3 -11
  79. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
  80. package/lib/commonjs/dom/nodes/drawings/PointsNode.js +4 -14
  81. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
  82. package/lib/commonjs/dom/nodes/drawings/RRectNode.js +7 -18
  83. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
  84. package/lib/commonjs/dom/nodes/drawings/RectNode.js +4 -15
  85. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
  86. package/lib/commonjs/dom/nodes/drawings/Text.js +18 -62
  87. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
  88. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js +4 -16
  89. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
  90. package/lib/commonjs/dom/nodes/drawings/index.js +0 -36
  91. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  92. package/lib/commonjs/dom/nodes/index.js +0 -6
  93. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  94. package/lib/commonjs/dom/nodes/paint/BlendNode.js +4 -18
  95. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
  96. package/lib/commonjs/dom/nodes/paint/ColorFilters.js +0 -34
  97. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
  98. package/lib/commonjs/dom/nodes/paint/ImageFilters.js +7 -60
  99. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
  100. package/lib/commonjs/dom/nodes/paint/MaskFilters.js +0 -8
  101. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
  102. package/lib/commonjs/dom/nodes/paint/PathEffects.js +0 -45
  103. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
  104. package/lib/commonjs/dom/nodes/paint/Shaders.js +1 -48
  105. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
  106. package/lib/commonjs/dom/nodes/paint/index.js +0 -12
  107. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
  108. package/lib/commonjs/dom/types/DeclarationContext.js +3 -30
  109. package/lib/commonjs/dom/types/DeclarationContext.js.map +1 -1
  110. package/lib/commonjs/dom/types/DrawingContext.js +3 -91
  111. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  112. package/lib/commonjs/dom/types/NodeType.js +6 -11
  113. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  114. package/lib/commonjs/dom/types/index.js +0 -26
  115. package/lib/commonjs/dom/types/index.js.map +1 -1
  116. package/lib/commonjs/external/index.js +0 -2
  117. package/lib/commonjs/external/index.js.map +1 -1
  118. package/lib/commonjs/external/reanimated/buffers.js +10 -19
  119. package/lib/commonjs/external/reanimated/buffers.js.map +1 -1
  120. package/lib/commonjs/external/reanimated/index.js +0 -12
  121. package/lib/commonjs/external/reanimated/index.js.map +1 -1
  122. package/lib/commonjs/external/reanimated/interpolators.d.ts +1 -1
  123. package/lib/commonjs/external/reanimated/interpolators.js +5 -20
  124. package/lib/commonjs/external/reanimated/interpolators.js.map +1 -1
  125. package/lib/commonjs/external/reanimated/moduleWrapper.js +12 -29
  126. package/lib/commonjs/external/reanimated/moduleWrapper.js.map +1 -1
  127. package/lib/commonjs/external/reanimated/renderHelpers.js +5 -31
  128. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
  129. package/lib/commonjs/external/reanimated/textures.js +0 -8
  130. package/lib/commonjs/external/reanimated/textures.js.map +1 -1
  131. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +11 -16
  132. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -1
  133. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js +0 -4
  134. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  135. package/lib/commonjs/headless/index.js +1 -12
  136. package/lib/commonjs/headless/index.js.map +1 -1
  137. package/lib/commonjs/index.js +0 -20
  138. package/lib/commonjs/index.js.map +1 -1
  139. package/lib/commonjs/mock/index.js +0 -6
  140. package/lib/commonjs/mock/index.js.map +1 -1
  141. package/lib/commonjs/renderer/Canvas.js +21 -46
  142. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  143. package/lib/commonjs/renderer/Container.js +4 -15
  144. package/lib/commonjs/renderer/Container.js.map +1 -1
  145. package/lib/commonjs/renderer/HostComponents.js +1 -65
  146. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  147. package/lib/commonjs/renderer/HostConfig.js +9 -38
  148. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  149. package/lib/commonjs/renderer/Offscreen.js +2 -12
  150. package/lib/commonjs/renderer/Offscreen.js.map +1 -1
  151. package/lib/commonjs/renderer/Reconciler.js +4 -20
  152. package/lib/commonjs/renderer/Reconciler.js.map +1 -1
  153. package/lib/commonjs/renderer/components/Blend.js +0 -4
  154. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  155. package/lib/commonjs/renderer/components/Group.js +6 -15
  156. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  157. package/lib/commonjs/renderer/components/Mask.js +6 -14
  158. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  159. package/lib/commonjs/renderer/components/Paint.js +0 -4
  160. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  161. package/lib/commonjs/renderer/components/Picture.js +0 -4
  162. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  163. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +5 -13
  164. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  165. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +5 -11
  166. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  167. package/lib/commonjs/renderer/components/backdrop/index.js +0 -4
  168. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
  169. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +0 -4
  170. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  171. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +0 -4
  172. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  173. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +0 -4
  174. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  175. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +0 -4
  176. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  177. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +0 -6
  178. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  179. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +0 -4
  180. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  181. package/lib/commonjs/renderer/components/colorFilters/index.js +0 -12
  182. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
  183. package/lib/commonjs/renderer/components/image/Image.js +0 -4
  184. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  185. package/lib/commonjs/renderer/components/image/ImageSVG.js +0 -4
  186. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  187. package/lib/commonjs/renderer/components/image/ImageShader.js +9 -15
  188. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  189. package/lib/commonjs/renderer/components/image/index.js +0 -6
  190. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  191. package/lib/commonjs/renderer/components/imageFilters/Blur.js +4 -10
  192. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  193. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +0 -4
  194. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  195. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +4 -10
  196. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  197. package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -11
  198. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  199. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +0 -4
  200. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  201. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +0 -4
  202. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  203. package/lib/commonjs/renderer/components/imageFilters/index.js +0 -12
  204. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
  205. package/lib/commonjs/renderer/components/index.js +0 -32
  206. package/lib/commonjs/renderer/components/index.js.map +1 -1
  207. package/lib/commonjs/renderer/components/maskFilters/Blur.js +5 -11
  208. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  209. package/lib/commonjs/renderer/components/maskFilters/index.js +0 -2
  210. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
  211. package/lib/commonjs/renderer/components/paragraph/Paragraph.js +0 -4
  212. package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -1
  213. package/lib/commonjs/renderer/components/paragraph/index.js +0 -2
  214. package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -1
  215. package/lib/commonjs/renderer/components/pathEffects/Corner.js +0 -4
  216. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  217. package/lib/commonjs/renderer/components/pathEffects/Dash.js +0 -4
  218. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  219. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +4 -10
  220. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  221. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +0 -4
  222. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  223. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +0 -4
  224. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  225. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +0 -4
  226. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  227. package/lib/commonjs/renderer/components/pathEffects/Sum.js +0 -4
  228. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  229. package/lib/commonjs/renderer/components/pathEffects/index.js +0 -14
  230. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
  231. package/lib/commonjs/renderer/components/shaders/Color.js +0 -4
  232. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  233. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +6 -12
  234. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  235. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +0 -4
  236. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  237. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +0 -4
  238. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  239. package/lib/commonjs/renderer/components/shaders/Shader.js +4 -10
  240. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  241. package/lib/commonjs/renderer/components/shaders/ShaderLib.js +1 -2
  242. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
  243. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +0 -4
  244. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  245. package/lib/commonjs/renderer/components/shaders/Turbulence.js +6 -12
  246. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  247. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +0 -4
  248. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  249. package/lib/commonjs/renderer/components/shaders/index.js +0 -18
  250. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
  251. package/lib/commonjs/renderer/components/shapes/Atlas.js +0 -4
  252. package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -1
  253. package/lib/commonjs/renderer/components/shapes/Box.js +0 -6
  254. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  255. package/lib/commonjs/renderer/components/shapes/Circle.js +0 -4
  256. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  257. package/lib/commonjs/renderer/components/shapes/DiffRect.js +0 -4
  258. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  259. package/lib/commonjs/renderer/components/shapes/Fill.js +0 -4
  260. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  261. package/lib/commonjs/renderer/components/shapes/FitBox.js +8 -18
  262. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  263. package/lib/commonjs/renderer/components/shapes/Line.js +0 -4
  264. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  265. package/lib/commonjs/renderer/components/shapes/Oval.js +0 -4
  266. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  267. package/lib/commonjs/renderer/components/shapes/Patch.js +0 -4
  268. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  269. package/lib/commonjs/renderer/components/shapes/Path.js +5 -11
  270. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  271. package/lib/commonjs/renderer/components/shapes/Points.js +4 -10
  272. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  273. package/lib/commonjs/renderer/components/shapes/Rect.js +0 -4
  274. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  275. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +0 -4
  276. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  277. package/lib/commonjs/renderer/components/shapes/Vertices.js +4 -10
  278. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  279. package/lib/commonjs/renderer/components/shapes/index.js +0 -28
  280. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
  281. package/lib/commonjs/renderer/components/text/Glyphs.js +5 -11
  282. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  283. package/lib/commonjs/renderer/components/text/Text.js +5 -11
  284. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  285. package/lib/commonjs/renderer/components/text/TextBlob.js +5 -11
  286. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  287. package/lib/commonjs/renderer/components/text/TextPath.js +4 -10
  288. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  289. package/lib/commonjs/renderer/components/text/index.js +0 -8
  290. package/lib/commonjs/renderer/components/text/index.js.map +1 -1
  291. package/lib/commonjs/renderer/index.js +0 -2
  292. package/lib/commonjs/renderer/index.js.map +1 -1
  293. package/lib/commonjs/renderer/processors/Animations/index.js +0 -2
  294. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
  295. package/lib/commonjs/renderer/processors/index.js +0 -4
  296. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  297. package/lib/commonjs/renderer/processors/math/Coordinates.js +0 -12
  298. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  299. package/lib/commonjs/renderer/processors/math/Math.js +1 -7
  300. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
  301. package/lib/commonjs/renderer/processors/math/Transforms.js +0 -3
  302. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  303. package/lib/commonjs/renderer/processors/math/index.js +0 -6
  304. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  305. package/lib/commonjs/renderer/typeddash.js +2 -11
  306. package/lib/commonjs/renderer/typeddash.js.map +1 -1
  307. package/lib/commonjs/skia/NativeSetup.js +0 -6
  308. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  309. package/lib/commonjs/skia/Skia.js +2 -3
  310. package/lib/commonjs/skia/Skia.js.map +1 -1
  311. package/lib/commonjs/skia/Skia.web.js +1 -4
  312. package/lib/commonjs/skia/Skia.web.js.map +1 -1
  313. package/lib/commonjs/skia/core/AnimatedImage.js +2 -10
  314. package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -1
  315. package/lib/commonjs/skia/core/Data.js +9 -29
  316. package/lib/commonjs/skia/core/Data.js.map +1 -1
  317. package/lib/commonjs/skia/core/Font.js +10 -36
  318. package/lib/commonjs/skia/core/Font.js.map +1 -1
  319. package/lib/commonjs/skia/core/Image.js +3 -16
  320. package/lib/commonjs/skia/core/Image.js.map +1 -1
  321. package/lib/commonjs/skia/core/Matrix.js +0 -4
  322. package/lib/commonjs/skia/core/Matrix.js.map +1 -1
  323. package/lib/commonjs/skia/core/Picture.js +0 -7
  324. package/lib/commonjs/skia/core/Picture.js.map +1 -1
  325. package/lib/commonjs/skia/core/RRect.js +0 -3
  326. package/lib/commonjs/skia/core/RRect.js.map +1 -1
  327. package/lib/commonjs/skia/core/Rect.js +0 -17
  328. package/lib/commonjs/skia/core/Rect.js.map +1 -1
  329. package/lib/commonjs/skia/core/SVG.js +0 -5
  330. package/lib/commonjs/skia/core/SVG.js.map +1 -1
  331. package/lib/commonjs/skia/core/Typeface.js +1 -6
  332. package/lib/commonjs/skia/core/Typeface.js.map +1 -1
  333. package/lib/commonjs/skia/core/Vector.js +3 -17
  334. package/lib/commonjs/skia/core/Vector.js.map +1 -1
  335. package/lib/commonjs/skia/core/index.js +0 -22
  336. package/lib/commonjs/skia/core/index.js.map +1 -1
  337. package/lib/commonjs/skia/index.js +0 -5
  338. package/lib/commonjs/skia/index.js.map +1 -1
  339. package/lib/commonjs/skia/types/AnimatedImage/index.js +0 -4
  340. package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -1
  341. package/lib/commonjs/skia/types/Canvas.js +6 -11
  342. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  343. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js +0 -2
  344. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  345. package/lib/commonjs/skia/types/ColorFilter/index.js +0 -4
  346. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
  347. package/lib/commonjs/skia/types/Data/Data.js +0 -2
  348. package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
  349. package/lib/commonjs/skia/types/Data/index.js +0 -4
  350. package/lib/commonjs/skia/types/Data/index.js.map +1 -1
  351. package/lib/commonjs/skia/types/Font/Font.js +16 -34
  352. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  353. package/lib/commonjs/skia/types/Font/index.js +0 -6
  354. package/lib/commonjs/skia/types/Font/index.js.map +1 -1
  355. package/lib/commonjs/skia/types/Image/Image.js +9 -17
  356. package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
  357. package/lib/commonjs/skia/types/Image/ImageFactory.js +6 -11
  358. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  359. package/lib/commonjs/skia/types/Image/index.js +0 -4
  360. package/lib/commonjs/skia/types/Image/index.js.map +1 -1
  361. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +3 -7
  362. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  363. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +3 -5
  364. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  365. package/lib/commonjs/skia/types/ImageFilter/index.js +0 -4
  366. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
  367. package/lib/commonjs/skia/types/MaskFilter.js +4 -8
  368. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
  369. package/lib/commonjs/skia/types/Matrix.js +0 -7
  370. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  371. package/lib/commonjs/skia/types/Matrix4.js +22 -90
  372. package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
  373. package/lib/commonjs/skia/types/Paint/BlendMode.js +3 -6
  374. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
  375. package/lib/commonjs/skia/types/Paint/Paint.js +9 -19
  376. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
  377. package/lib/commonjs/skia/types/Paint/index.js +0 -4
  378. package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
  379. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js +3 -5
  380. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  381. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js +9 -17
  382. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  383. package/lib/commonjs/skia/types/Paragraph/TextStyle.js +9 -17
  384. package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -1
  385. package/lib/commonjs/skia/types/Paragraph/index.js +0 -12
  386. package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -1
  387. package/lib/commonjs/skia/types/Path/Path.js +9 -20
  388. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  389. package/lib/commonjs/skia/types/Path/index.js +0 -4
  390. package/lib/commonjs/skia/types/Path/index.js.map +1 -1
  391. package/lib/commonjs/skia/types/PathEffect.js +3 -7
  392. package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
  393. package/lib/commonjs/skia/types/Picture/index.js +0 -6
  394. package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
  395. package/lib/commonjs/skia/types/Point.js +3 -5
  396. package/lib/commonjs/skia/types/Point.js.map +1 -1
  397. package/lib/commonjs/skia/types/RRect.js +2 -3
  398. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  399. package/lib/commonjs/skia/types/Rect.js +0 -3
  400. package/lib/commonjs/skia/types/Rect.js.map +1 -1
  401. package/lib/commonjs/skia/types/RuntimeEffect/index.js +0 -4
  402. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
  403. package/lib/commonjs/skia/types/SVG/index.js +0 -4
  404. package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
  405. package/lib/commonjs/skia/types/Shader/Shader.js +4 -12
  406. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  407. package/lib/commonjs/skia/types/Shader/index.js +0 -4
  408. package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
  409. package/lib/commonjs/skia/types/Surface/index.js +0 -4
  410. package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
  411. package/lib/commonjs/skia/types/Typeface/index.js +0 -4
  412. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
  413. package/lib/commonjs/skia/types/Vertices/Vertices.js +3 -5
  414. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
  415. package/lib/commonjs/skia/types/Vertices/index.js +0 -2
  416. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
  417. package/lib/commonjs/skia/types/index.js +0 -62
  418. package/lib/commonjs/skia/types/index.js.map +1 -1
  419. package/lib/commonjs/skia/web/Host.js +7 -29
  420. package/lib/commonjs/skia/web/Host.js.map +1 -1
  421. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +3 -13
  422. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -1
  423. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js +0 -9
  424. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  425. package/lib/commonjs/skia/web/JsiSkCanvas.js +11 -77
  426. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  427. package/lib/commonjs/skia/web/JsiSkColor.js +10 -54
  428. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
  429. package/lib/commonjs/skia/web/JsiSkColorFilter.js +3 -7
  430. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
  431. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +0 -12
  432. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  433. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +3 -13
  434. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
  435. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +3 -11
  436. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  437. package/lib/commonjs/skia/web/JsiSkData.js +5 -8
  438. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
  439. package/lib/commonjs/skia/web/JsiSkDataFactory.js +0 -10
  440. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
  441. package/lib/commonjs/skia/web/JsiSkFont.js +5 -33
  442. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  443. package/lib/commonjs/skia/web/JsiSkFontMgr.js +0 -8
  444. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -1
  445. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +0 -8
  446. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  447. package/lib/commonjs/skia/web/JsiSkImage.js +11 -33
  448. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
  449. package/lib/commonjs/skia/web/JsiSkImageFactory.js +2 -15
  450. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  451. package/lib/commonjs/skia/web/JsiSkImageFilter.js +3 -7
  452. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
  453. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +0 -28
  454. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  455. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +3 -7
  456. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
  457. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +0 -6
  458. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  459. package/lib/commonjs/skia/web/JsiSkMatrix.js +9 -26
  460. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  461. package/lib/commonjs/skia/web/JsiSkPaint.js +3 -35
  462. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  463. package/lib/commonjs/skia/web/JsiSkParagraph.js +21 -47
  464. package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
  465. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js +4 -26
  466. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  467. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +1 -11
  468. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  469. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js +19 -24
  470. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -1
  471. package/lib/commonjs/skia/web/JsiSkPath.js +4 -77
  472. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  473. package/lib/commonjs/skia/web/JsiSkPathEffect.js +3 -7
  474. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
  475. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +0 -23
  476. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  477. package/lib/commonjs/skia/web/JsiSkPathFactory.js +0 -16
  478. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
  479. package/lib/commonjs/skia/web/JsiSkPicture.js +3 -13
  480. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
  481. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +0 -8
  482. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
  483. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +4 -13
  484. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
  485. package/lib/commonjs/skia/web/JsiSkPoint.js +5 -12
  486. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
  487. package/lib/commonjs/skia/web/JsiSkRRect.js +5 -17
  488. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
  489. package/lib/commonjs/skia/web/JsiSkRSXform.js +5 -15
  490. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
  491. package/lib/commonjs/skia/web/JsiSkRect.js +5 -15
  492. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
  493. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +3 -16
  494. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  495. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +0 -8
  496. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  497. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +0 -6
  498. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
  499. package/lib/commonjs/skia/web/JsiSkShader.js +3 -7
  500. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
  501. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +0 -15
  502. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
  503. package/lib/commonjs/skia/web/JsiSkSurface.js +3 -13
  504. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
  505. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +0 -14
  506. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  507. package/lib/commonjs/skia/web/JsiSkTextBlob.js +3 -7
  508. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
  509. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +0 -11
  510. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  511. package/lib/commonjs/skia/web/JsiSkTextStyle.js +0 -3
  512. package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -1
  513. package/lib/commonjs/skia/web/JsiSkTypeface.js +3 -10
  514. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
  515. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +0 -8
  516. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  517. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +16 -26
  518. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  519. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -6
  520. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  521. package/lib/commonjs/skia/web/JsiSkVertices.js +3 -10
  522. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
  523. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +8 -27
  524. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
  525. package/lib/commonjs/skia/web/JsiSkia.js +0 -33
  526. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  527. package/lib/commonjs/skia/web/index.js +0 -2
  528. package/lib/commonjs/skia/web/index.js.map +1 -1
  529. package/lib/commonjs/specs/NativeSkiaModule.js +1 -5
  530. package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -1
  531. package/lib/commonjs/specs/NativeSkiaModule.web.js +1 -4
  532. package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -1
  533. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +1 -6
  534. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -1
  535. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +1 -6
  536. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  537. package/lib/commonjs/views/SkiaBaseWebView.js +18 -66
  538. package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
  539. package/lib/commonjs/views/SkiaDomView.js +8 -40
  540. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  541. package/lib/commonjs/views/SkiaDomView.web.js +0 -9
  542. package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
  543. package/lib/commonjs/views/SkiaJSDomView.js +10 -43
  544. package/lib/commonjs/views/SkiaJSDomView.js.map +1 -1
  545. package/lib/commonjs/views/SkiaJSDomView.web.js +0 -1
  546. package/lib/commonjs/views/SkiaJSDomView.web.js.map +1 -1
  547. package/lib/commonjs/views/SkiaPictureView.js +6 -32
  548. package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
  549. package/lib/commonjs/views/SkiaPictureView.web.js +0 -5
  550. package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -1
  551. package/lib/commonjs/views/SkiaViewNativeId.js +1 -2
  552. package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -1
  553. package/lib/commonjs/views/api.js.map +1 -1
  554. package/lib/commonjs/views/index.js +0 -8
  555. package/lib/commonjs/views/index.js.map +1 -1
  556. package/lib/commonjs/views/types.js +3 -5
  557. package/lib/commonjs/views/types.js.map +1 -1
  558. package/lib/commonjs/views/useTouchHandler.js +19 -33
  559. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  560. package/lib/commonjs/web/LoadSkiaWeb.js +8 -12
  561. package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
  562. package/lib/commonjs/web/WithSkiaWeb.js +10 -18
  563. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  564. package/lib/commonjs/web/index.js +0 -4
  565. package/lib/commonjs/web/index.js.map +1 -1
  566. package/lib/module/Platform/Platform.js.map +1 -1
  567. package/lib/module/Platform/Platform.web.js +7 -23
  568. package/lib/module/Platform/Platform.web.js.map +1 -1
  569. package/lib/module/Platform/index.js.map +1 -1
  570. package/lib/module/animation/functions/index.js.map +1 -1
  571. package/lib/module/animation/functions/interpolate.js +12 -29
  572. package/lib/module/animation/functions/interpolate.js.map +1 -1
  573. package/lib/module/animation/functions/interpolateColors.js +2 -5
  574. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  575. package/lib/module/animation/functions/interpolatePaths.js +1 -13
  576. package/lib/module/animation/functions/interpolatePaths.js.map +1 -1
  577. package/lib/module/animation/functions/interpolateVector.js.map +1 -1
  578. package/lib/module/animation/index.js.map +1 -1
  579. package/lib/module/dom/nodes/DrawingNode.js +7 -17
  580. package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
  581. package/lib/module/dom/nodes/GroupNode.js +0 -2
  582. package/lib/module/dom/nodes/GroupNode.js.map +1 -1
  583. package/lib/module/dom/nodes/JsiSkDOM.js +14 -65
  584. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  585. package/lib/module/dom/nodes/LayerNode.js +0 -6
  586. package/lib/module/dom/nodes/LayerNode.js.map +1 -1
  587. package/lib/module/dom/nodes/Node.js +4 -32
  588. package/lib/module/dom/nodes/Node.js.map +1 -1
  589. package/lib/module/dom/nodes/PaintNode.js +1 -23
  590. package/lib/module/dom/nodes/PaintNode.js.map +1 -1
  591. package/lib/module/dom/nodes/RenderNode.js +3 -29
  592. package/lib/module/dom/nodes/RenderNode.js.map +1 -1
  593. package/lib/module/dom/nodes/datatypes/Circle.js +4 -4
  594. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  595. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -1
  596. package/lib/module/dom/nodes/datatypes/Fitting.js +15 -39
  597. package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -1
  598. package/lib/module/dom/nodes/datatypes/Gradient.js +7 -9
  599. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
  600. package/lib/module/dom/nodes/datatypes/Path.js +2 -3
  601. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
  602. package/lib/module/dom/nodes/datatypes/Radius.js +0 -1
  603. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
  604. package/lib/module/dom/nodes/datatypes/Rect.js +5 -7
  605. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  606. package/lib/module/dom/nodes/datatypes/Transform.js +0 -3
  607. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -1
  608. package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
  609. package/lib/module/dom/nodes/drawings/AtlasNode.js +4 -9
  610. package/lib/module/dom/nodes/drawings/AtlasNode.js.map +1 -1
  611. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js +4 -13
  612. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  613. package/lib/module/dom/nodes/drawings/Box.js +8 -27
  614. package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
  615. package/lib/module/dom/nodes/drawings/CircleNode.js +4 -10
  616. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
  617. package/lib/module/dom/nodes/drawings/DiffRectNode.js +4 -8
  618. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  619. package/lib/module/dom/nodes/drawings/FillNode.js +5 -10
  620. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
  621. package/lib/module/dom/nodes/drawings/ImageNode.js +4 -14
  622. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
  623. package/lib/module/dom/nodes/drawings/ImageSVG.js +3 -14
  624. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
  625. package/lib/module/dom/nodes/drawings/LineNode.js +4 -8
  626. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
  627. package/lib/module/dom/nodes/drawings/OvalNode.js +4 -10
  628. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
  629. package/lib/module/dom/nodes/drawings/ParagraphNode.js +3 -8
  630. package/lib/module/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  631. package/lib/module/dom/nodes/drawings/PatchNode.js +6 -12
  632. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
  633. package/lib/module/dom/nodes/drawings/PathNode.js +4 -14
  634. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
  635. package/lib/module/dom/nodes/drawings/PictureNode.js +3 -7
  636. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
  637. package/lib/module/dom/nodes/drawings/PointsNode.js +4 -8
  638. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
  639. package/lib/module/dom/nodes/drawings/RRectNode.js +7 -13
  640. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
  641. package/lib/module/dom/nodes/drawings/RectNode.js +4 -10
  642. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
  643. package/lib/module/dom/nodes/drawings/Text.js +18 -51
  644. package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
  645. package/lib/module/dom/nodes/drawings/VerticesNode.js +4 -10
  646. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
  647. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  648. package/lib/module/dom/nodes/index.js.map +1 -1
  649. package/lib/module/dom/nodes/paint/BlendNode.js +4 -9
  650. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -1
  651. package/lib/module/dom/nodes/paint/ColorFilters.js +0 -16
  652. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
  653. package/lib/module/dom/nodes/paint/ImageFilters.js +3 -40
  654. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
  655. package/lib/module/dom/nodes/paint/MaskFilters.js +0 -2
  656. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
  657. package/lib/module/dom/nodes/paint/PathEffects.js +0 -26
  658. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
  659. package/lib/module/dom/nodes/paint/Shaders.js +0 -23
  660. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
  661. package/lib/module/dom/nodes/paint/index.js.map +1 -1
  662. package/lib/module/dom/types/DeclarationContext.js +3 -27
  663. package/lib/module/dom/types/DeclarationContext.js.map +1 -1
  664. package/lib/module/dom/types/DrawingContext.js +3 -85
  665. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  666. package/lib/module/dom/types/NodeType.js +6 -9
  667. package/lib/module/dom/types/NodeType.js.map +1 -1
  668. package/lib/module/dom/types/index.js.map +1 -1
  669. package/lib/module/external/index.js.map +1 -1
  670. package/lib/module/external/reanimated/buffers.js +10 -8
  671. package/lib/module/external/reanimated/buffers.js.map +1 -1
  672. package/lib/module/external/reanimated/index.js.map +1 -1
  673. package/lib/module/external/reanimated/interpolators.d.ts +1 -1
  674. package/lib/module/external/reanimated/interpolators.js +5 -4
  675. package/lib/module/external/reanimated/interpolators.js.map +1 -1
  676. package/lib/module/external/reanimated/moduleWrapper.js +2 -4
  677. package/lib/module/external/reanimated/moduleWrapper.js.map +1 -1
  678. package/lib/module/external/reanimated/renderHelpers.js +5 -28
  679. package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
  680. package/lib/module/external/reanimated/textures.js +0 -2
  681. package/lib/module/external/reanimated/textures.js.map +1 -1
  682. package/lib/module/external/reanimated/useAnimatedImageValue.js +11 -10
  683. package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
  684. package/lib/module/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  685. package/lib/module/headless/index.js +3 -4
  686. package/lib/module/headless/index.js.map +1 -1
  687. package/lib/module/index.js.map +1 -1
  688. package/lib/module/mock/index.js +2 -4
  689. package/lib/module/mock/index.js.map +1 -1
  690. package/lib/module/renderer/Canvas.js +17 -28
  691. package/lib/module/renderer/Canvas.js.map +1 -1
  692. package/lib/module/renderer/Container.js +4 -12
  693. package/lib/module/renderer/Container.js.map +1 -1
  694. package/lib/module/renderer/HostComponents.js +0 -58
  695. package/lib/module/renderer/HostComponents.js.map +1 -1
  696. package/lib/module/renderer/HostConfig.js +8 -29
  697. package/lib/module/renderer/HostConfig.js.map +1 -1
  698. package/lib/module/renderer/Offscreen.js +2 -1
  699. package/lib/module/renderer/Offscreen.js.map +1 -1
  700. package/lib/module/renderer/Reconciler.js +4 -13
  701. package/lib/module/renderer/Reconciler.js.map +1 -1
  702. package/lib/module/renderer/components/Blend.js.map +1 -1
  703. package/lib/module/renderer/components/Group.js +4 -8
  704. package/lib/module/renderer/components/Group.js.map +1 -1
  705. package/lib/module/renderer/components/Mask.js +6 -7
  706. package/lib/module/renderer/components/Mask.js.map +1 -1
  707. package/lib/module/renderer/components/Paint.js.map +1 -1
  708. package/lib/module/renderer/components/Picture.js.map +1 -1
  709. package/lib/module/renderer/components/backdrop/BackdropBlur.js +5 -7
  710. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  711. package/lib/module/renderer/components/backdrop/BackdropFilter.js +5 -6
  712. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  713. package/lib/module/renderer/components/backdrop/index.js.map +1 -1
  714. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  715. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  716. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  717. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  718. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  719. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  720. package/lib/module/renderer/components/colorFilters/index.js.map +1 -1
  721. package/lib/module/renderer/components/image/Image.js.map +1 -1
  722. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  723. package/lib/module/renderer/components/image/ImageShader.js +9 -11
  724. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  725. package/lib/module/renderer/components/image/index.js.map +1 -1
  726. package/lib/module/renderer/components/imageFilters/Blur.js +4 -6
  727. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  728. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  729. package/lib/module/renderer/components/imageFilters/Morphology.js +4 -6
  730. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  731. package/lib/module/renderer/components/imageFilters/Offset.js +5 -7
  732. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  733. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  734. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  735. package/lib/module/renderer/components/imageFilters/index.js.map +1 -1
  736. package/lib/module/renderer/components/index.js.map +1 -1
  737. package/lib/module/renderer/components/maskFilters/Blur.js +5 -7
  738. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  739. package/lib/module/renderer/components/maskFilters/index.js.map +1 -1
  740. package/lib/module/renderer/components/paragraph/Paragraph.js.map +1 -1
  741. package/lib/module/renderer/components/paragraph/index.js.map +1 -1
  742. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  743. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  744. package/lib/module/renderer/components/pathEffects/Discrete.js +4 -6
  745. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  746. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  747. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  748. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  749. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  750. package/lib/module/renderer/components/pathEffects/index.js.map +1 -1
  751. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  752. package/lib/module/renderer/components/shaders/FractalNoise.js +6 -8
  753. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  754. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  755. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  756. package/lib/module/renderer/components/shaders/Shader.js +4 -6
  757. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  758. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -1
  759. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  760. package/lib/module/renderer/components/shaders/Turbulence.js +6 -8
  761. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  762. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  763. package/lib/module/renderer/components/shaders/index.js.map +1 -1
  764. package/lib/module/renderer/components/shapes/Atlas.js.map +1 -1
  765. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  766. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  767. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  768. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  769. package/lib/module/renderer/components/shapes/FitBox.js +6 -7
  770. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  771. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  772. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  773. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  774. package/lib/module/renderer/components/shapes/Path.js +5 -7
  775. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  776. package/lib/module/renderer/components/shapes/Points.js +4 -6
  777. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  778. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  779. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  780. package/lib/module/renderer/components/shapes/Vertices.js +4 -6
  781. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  782. package/lib/module/renderer/components/shapes/index.js.map +1 -1
  783. package/lib/module/renderer/components/text/Glyphs.js +5 -7
  784. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  785. package/lib/module/renderer/components/text/Text.js +5 -7
  786. package/lib/module/renderer/components/text/Text.js.map +1 -1
  787. package/lib/module/renderer/components/text/TextBlob.js +5 -7
  788. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  789. package/lib/module/renderer/components/text/TextPath.js +4 -6
  790. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  791. package/lib/module/renderer/components/text/index.js.map +1 -1
  792. package/lib/module/renderer/index.js.map +1 -1
  793. package/lib/module/renderer/processors/Animations/index.js.map +1 -1
  794. package/lib/module/renderer/processors/index.js.map +1 -1
  795. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  796. package/lib/module/renderer/processors/math/Math.js +1 -1
  797. package/lib/module/renderer/processors/math/Math.js.map +1 -1
  798. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  799. package/lib/module/renderer/processors/math/index.js.map +1 -1
  800. package/lib/module/renderer/typeddash.js +2 -5
  801. package/lib/module/renderer/typeddash.js.map +1 -1
  802. package/lib/module/skia/NativeSetup.js +0 -4
  803. package/lib/module/skia/NativeSetup.js.map +1 -1
  804. package/lib/module/skia/Skia.js +1 -0
  805. package/lib/module/skia/Skia.js.map +1 -1
  806. package/lib/module/skia/Skia.web.js.map +1 -1
  807. package/lib/module/skia/core/AnimatedImage.js +2 -5
  808. package/lib/module/skia/core/AnimatedImage.js.map +1 -1
  809. package/lib/module/skia/core/Data.js +9 -21
  810. package/lib/module/skia/core/Data.js.map +1 -1
  811. package/lib/module/skia/core/Font.js +9 -24
  812. package/lib/module/skia/core/Font.js.map +1 -1
  813. package/lib/module/skia/core/Image.js +3 -8
  814. package/lib/module/skia/core/Image.js.map +1 -1
  815. package/lib/module/skia/core/Matrix.js.map +1 -1
  816. package/lib/module/skia/core/Picture.js +1 -3
  817. package/lib/module/skia/core/Picture.js.map +1 -1
  818. package/lib/module/skia/core/RRect.js.map +1 -1
  819. package/lib/module/skia/core/Rect.js.map +1 -1
  820. package/lib/module/skia/core/SVG.js.map +1 -1
  821. package/lib/module/skia/core/Typeface.js +1 -1
  822. package/lib/module/skia/core/Typeface.js.map +1 -1
  823. package/lib/module/skia/core/Vector.js +1 -3
  824. package/lib/module/skia/core/Vector.js.map +1 -1
  825. package/lib/module/skia/core/index.js.map +1 -1
  826. package/lib/module/skia/index.js.map +1 -1
  827. package/lib/module/skia/types/AnimatedImage/index.js.map +1 -1
  828. package/lib/module/skia/types/Canvas.js +6 -9
  829. package/lib/module/skia/types/Canvas.js.map +1 -1
  830. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  831. package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
  832. package/lib/module/skia/types/Data/Data.js.map +1 -1
  833. package/lib/module/skia/types/Data/index.js.map +1 -1
  834. package/lib/module/skia/types/Font/Font.js +15 -26
  835. package/lib/module/skia/types/Font/Font.js.map +1 -1
  836. package/lib/module/skia/types/Font/index.js.map +1 -1
  837. package/lib/module/skia/types/Image/Image.js +9 -14
  838. package/lib/module/skia/types/Image/Image.js.map +1 -1
  839. package/lib/module/skia/types/Image/ImageFactory.js +6 -9
  840. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  841. package/lib/module/skia/types/Image/index.js.map +1 -1
  842. package/lib/module/skia/types/ImageFilter/ImageFilter.js +3 -5
  843. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  844. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +3 -4
  845. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  846. package/lib/module/skia/types/ImageFilter/index.js.map +1 -1
  847. package/lib/module/skia/types/MaskFilter.js +4 -5
  848. package/lib/module/skia/types/MaskFilter.js.map +1 -1
  849. package/lib/module/skia/types/Matrix.js.map +1 -1
  850. package/lib/module/skia/types/Matrix4.js +22 -64
  851. package/lib/module/skia/types/Matrix4.js.map +1 -1
  852. package/lib/module/skia/types/Paint/BlendMode.js +3 -4
  853. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
  854. package/lib/module/skia/types/Paint/Paint.js +9 -15
  855. package/lib/module/skia/types/Paint/Paint.js.map +1 -1
  856. package/lib/module/skia/types/Paint/index.js.map +1 -1
  857. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js +3 -4
  858. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  859. package/lib/module/skia/types/Paragraph/ParagraphStyle.js +9 -14
  860. package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  861. package/lib/module/skia/types/Paragraph/TextStyle.js +9 -14
  862. package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -1
  863. package/lib/module/skia/types/Paragraph/index.js.map +1 -1
  864. package/lib/module/skia/types/Path/Path.js +9 -14
  865. package/lib/module/skia/types/Path/Path.js.map +1 -1
  866. package/lib/module/skia/types/Path/index.js.map +1 -1
  867. package/lib/module/skia/types/PathEffect.js +3 -4
  868. package/lib/module/skia/types/PathEffect.js.map +1 -1
  869. package/lib/module/skia/types/Picture/index.js.map +1 -1
  870. package/lib/module/skia/types/Point.js +3 -4
  871. package/lib/module/skia/types/Point.js.map +1 -1
  872. package/lib/module/skia/types/RRect.js +2 -1
  873. package/lib/module/skia/types/RRect.js.map +1 -1
  874. package/lib/module/skia/types/Rect.js +0 -1
  875. package/lib/module/skia/types/Rect.js.map +1 -1
  876. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
  877. package/lib/module/skia/types/SVG/index.js.map +1 -1
  878. package/lib/module/skia/types/Shader/Shader.js +4 -9
  879. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  880. package/lib/module/skia/types/Shader/index.js.map +1 -1
  881. package/lib/module/skia/types/Surface/index.js.map +1 -1
  882. package/lib/module/skia/types/Typeface/index.js.map +1 -1
  883. package/lib/module/skia/types/Vertices/Vertices.js +3 -4
  884. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -1
  885. package/lib/module/skia/types/Vertices/index.js.map +1 -1
  886. package/lib/module/skia/types/index.js.map +1 -1
  887. package/lib/module/skia/web/Host.js +6 -16
  888. package/lib/module/skia/web/Host.js.map +1 -1
  889. package/lib/module/skia/web/JsiSkAnimatedImage.js +3 -9
  890. package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
  891. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js +0 -4
  892. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  893. package/lib/module/skia/web/JsiSkCanvas.js +13 -63
  894. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  895. package/lib/module/skia/web/JsiSkColor.js +10 -52
  896. package/lib/module/skia/web/JsiSkColor.js.map +1 -1
  897. package/lib/module/skia/web/JsiSkColorFilter.js +3 -4
  898. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  899. package/lib/module/skia/web/JsiSkColorFilterFactory.js +0 -8
  900. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  901. package/lib/module/skia/web/JsiSkContourMeasure.js +3 -8
  902. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  903. package/lib/module/skia/web/JsiSkContourMeasureIter.js +3 -7
  904. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  905. package/lib/module/skia/web/JsiSkData.js +5 -5
  906. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  907. package/lib/module/skia/web/JsiSkDataFactory.js +0 -6
  908. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
  909. package/lib/module/skia/web/JsiSkFont.js +5 -26
  910. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  911. package/lib/module/skia/web/JsiSkFontMgr.js +0 -5
  912. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -1
  913. package/lib/module/skia/web/JsiSkFontMgrFactory.js +0 -4
  914. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  915. package/lib/module/skia/web/JsiSkImage.js +7 -23
  916. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  917. package/lib/module/skia/web/JsiSkImageFactory.js +2 -10
  918. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  919. package/lib/module/skia/web/JsiSkImageFilter.js +3 -4
  920. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  921. package/lib/module/skia/web/JsiSkImageFilterFactory.js +0 -23
  922. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  923. package/lib/module/skia/web/JsiSkMaskFilter.js +3 -4
  924. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  925. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +0 -2
  926. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  927. package/lib/module/skia/web/JsiSkMatrix.js +7 -21
  928. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  929. package/lib/module/skia/web/JsiSkPaint.js +3 -27
  930. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  931. package/lib/module/skia/web/JsiSkParagraph.js +21 -44
  932. package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
  933. package/lib/module/skia/web/JsiSkParagraphBuilder.js +1 -18
  934. package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  935. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +0 -4
  936. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  937. package/lib/module/skia/web/JsiSkParagraphStyle.js +4 -6
  938. package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
  939. package/lib/module/skia/web/JsiSkPath.js +4 -69
  940. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  941. package/lib/module/skia/web/JsiSkPathEffect.js +3 -4
  942. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  943. package/lib/module/skia/web/JsiSkPathEffectFactory.js +0 -17
  944. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  945. package/lib/module/skia/web/JsiSkPathFactory.js +0 -12
  946. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
  947. package/lib/module/skia/web/JsiSkPicture.js +4 -6
  948. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  949. package/lib/module/skia/web/JsiSkPictureFactory.js +0 -4
  950. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
  951. package/lib/module/skia/web/JsiSkPictureRecorder.js +3 -6
  952. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  953. package/lib/module/skia/web/JsiSkPoint.js +5 -9
  954. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  955. package/lib/module/skia/web/JsiSkRRect.js +5 -13
  956. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  957. package/lib/module/skia/web/JsiSkRSXform.js +5 -12
  958. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  959. package/lib/module/skia/web/JsiSkRect.js +5 -12
  960. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  961. package/lib/module/skia/web/JsiSkRuntimeEffect.js +3 -11
  962. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  963. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +0 -4
  964. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  965. package/lib/module/skia/web/JsiSkSVGFactory.js +0 -3
  966. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
  967. package/lib/module/skia/web/JsiSkShader.js +3 -4
  968. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  969. package/lib/module/skia/web/JsiSkShaderFactory.js +0 -9
  970. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
  971. package/lib/module/skia/web/JsiSkSurface.js +3 -7
  972. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  973. package/lib/module/skia/web/JsiSkSurfaceFactory.js +0 -10
  974. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  975. package/lib/module/skia/web/JsiSkTextBlob.js +3 -4
  976. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  977. package/lib/module/skia/web/JsiSkTextBlobFactory.js +0 -5
  978. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  979. package/lib/module/skia/web/JsiSkTextStyle.js +0 -1
  980. package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -1
  981. package/lib/module/skia/web/JsiSkTypeface.js +3 -7
  982. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  983. package/lib/module/skia/web/JsiSkTypefaceFactory.js +0 -4
  984. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  985. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +16 -23
  986. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  987. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -2
  988. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  989. package/lib/module/skia/web/JsiSkVertices.js +3 -6
  990. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  991. package/lib/module/skia/web/JsiSkVerticesFactory.js +8 -24
  992. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
  993. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  994. package/lib/module/skia/web/index.js.map +1 -1
  995. package/lib/module/specs/NativeSkiaModule.js.map +1 -1
  996. package/lib/module/specs/NativeSkiaModule.web.js +2 -1
  997. package/lib/module/specs/NativeSkiaModule.web.js.map +1 -1
  998. package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -1
  999. package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  1000. package/lib/module/views/SkiaBaseWebView.js +16 -58
  1001. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  1002. package/lib/module/views/SkiaDomView.js +8 -23
  1003. package/lib/module/views/SkiaDomView.js.map +1 -1
  1004. package/lib/module/views/SkiaDomView.web.js +0 -4
  1005. package/lib/module/views/SkiaDomView.web.js.map +1 -1
  1006. package/lib/module/views/SkiaJSDomView.js +10 -26
  1007. package/lib/module/views/SkiaJSDomView.js.map +1 -1
  1008. package/lib/module/views/SkiaJSDomView.web.js.map +1 -1
  1009. package/lib/module/views/SkiaPictureView.js +5 -18
  1010. package/lib/module/views/SkiaPictureView.js.map +1 -1
  1011. package/lib/module/views/SkiaPictureView.web.js +0 -2
  1012. package/lib/module/views/SkiaPictureView.web.js.map +1 -1
  1013. package/lib/module/views/SkiaViewNativeId.js.map +1 -1
  1014. package/lib/module/views/api.js.map +1 -1
  1015. package/lib/module/views/index.js.map +1 -1
  1016. package/lib/module/views/types.js +4 -4
  1017. package/lib/module/views/types.js.map +1 -1
  1018. package/lib/module/views/useTouchHandler.js +13 -21
  1019. package/lib/module/views/useTouchHandler.js.map +1 -1
  1020. package/lib/module/web/LoadSkiaWeb.js +4 -5
  1021. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  1022. package/lib/module/web/WithSkiaWeb.js +7 -8
  1023. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  1024. package/lib/module/web/index.js.map +1 -1
  1025. package/lib/typescript/src/external/reanimated/interpolators.d.ts +1 -1
  1026. package/package.json +15 -15
  1027. package/react-native-skia.podspec +1 -1
  1028. package/src/dom/nodes/Node.ts +1 -0
  1029. package/src/external/reanimated/interpolators.ts +4 -1
  1030. package/lib/commonjs/animation/types.d.ts +0 -18
  1031. package/lib/commonjs/animation/types.js +0 -2
  1032. package/lib/commonjs/animation/types.js.map +0 -1
  1033. package/lib/module/animation/types.d.ts +0 -18
  1034. package/lib/module/animation/types.js +0 -2
  1035. package/lib/module/animation/types.js.map +0 -1
  1036. package/lib/typescript/src/animation/types.d.ts +0 -18
  1037. package/src/animation/types.ts +0 -23
@@ -4,29 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.TwoPointConicalGradientNode = exports.TurbulenceNode = exports.SweepGradientNode = exports.ShaderNode = exports.ShaderDeclaration = exports.RadialGradientNode = exports.LinearGradientNode = exports.ImageShaderNode = exports.FractalNoiseNode = exports.ColorNode = void 0;
7
-
8
7
  var _types = require("../../../skia/types");
9
-
10
8
  var _Node = require("../Node");
11
-
12
9
  var _types2 = require("../../types");
13
-
14
10
  var _datatypes = require("../datatypes");
15
-
16
11
  class ShaderDeclaration extends _Node.JsiDeclarationNode {
17
12
  constructor(ctx, type, props) {
18
13
  super(ctx, _types2.DeclarationType.Shader, type, props);
19
14
  }
20
-
21
15
  }
22
-
23
16
  exports.ShaderDeclaration = ShaderDeclaration;
24
-
25
17
  class ShaderNode extends ShaderDeclaration {
26
18
  constructor(ctx, props) {
27
19
  super(ctx, _types2.NodeType.Shader, props);
28
20
  }
29
-
30
21
  decorate(ctx) {
31
22
  this.decorateChildren(ctx);
32
23
  const {
@@ -39,16 +30,12 @@ class ShaderNode extends ShaderDeclaration {
39
30
  const shader = source.makeShaderWithChildren((0, _types.processUniforms)(source, uniforms), ctx.shaders.popAll(), m3);
40
31
  ctx.shaders.push(shader);
41
32
  }
42
-
43
33
  }
44
-
45
34
  exports.ShaderNode = ShaderNode;
46
-
47
35
  class ImageShaderNode extends ShaderDeclaration {
48
36
  constructor(ctx, props) {
49
37
  super(ctx, _types2.NodeType.ImageShader, props);
50
38
  }
51
-
52
39
  decorate(ctx) {
53
40
  const {
54
41
  fit,
@@ -59,14 +46,11 @@ class ImageShaderNode extends ShaderDeclaration {
59
46
  mm,
60
47
  ...imageShaderProps
61
48
  } = this.props;
62
-
63
49
  if (!image) {
64
50
  return;
65
51
  }
66
-
67
52
  const rct = (0, _datatypes.getRect)(this.Skia, imageShaderProps);
68
53
  const m3 = this.Skia.Matrix();
69
-
70
54
  if (rct) {
71
55
  const rects = (0, _datatypes.fitRects)(fit, {
72
56
  x: 0,
@@ -78,23 +62,18 @@ class ImageShaderNode extends ShaderDeclaration {
78
62
  m3.translate(x.translateX, y.translateY);
79
63
  m3.scale(sx.scaleX, sy.scaleY);
80
64
  }
81
-
82
65
  const lm = this.Skia.Matrix();
83
66
  lm.concat(m3);
84
67
  (0, _datatypes.processTransformProps)(lm, imageShaderProps);
85
68
  const shader = image.makeShaderOptions(_types.TileMode[(0, _datatypes.enumKey)(tx)], _types.TileMode[(0, _datatypes.enumKey)(ty)], _types.FilterMode[(0, _datatypes.enumKey)(fm)], _types.MipmapMode[(0, _datatypes.enumKey)(mm)], lm);
86
69
  ctx.shaders.push(shader);
87
70
  }
88
-
89
71
  }
90
-
91
72
  exports.ImageShaderNode = ImageShaderNode;
92
-
93
73
  class ColorNode extends ShaderDeclaration {
94
74
  constructor(ctx, props) {
95
75
  super(ctx, _types2.NodeType.ColorShader, props);
96
76
  }
97
-
98
77
  decorate(ctx) {
99
78
  const {
100
79
  color
@@ -102,16 +81,12 @@ class ColorNode extends ShaderDeclaration {
102
81
  const shader = this.Skia.Shader.MakeColor(this.Skia.Color(color));
103
82
  ctx.shaders.push(shader);
104
83
  }
105
-
106
84
  }
107
-
108
85
  exports.ColorNode = ColorNode;
109
-
110
86
  class TurbulenceNode extends ShaderDeclaration {
111
87
  constructor(ctx, props) {
112
88
  super(ctx, _types2.NodeType.Turbulence, props);
113
89
  }
114
-
115
90
  decorate(ctx) {
116
91
  const {
117
92
  freqX,
@@ -124,16 +99,12 @@ class TurbulenceNode extends ShaderDeclaration {
124
99
  const shader = this.Skia.Shader.MakeTurbulence(freqX, freqY, octaves, seed, tileWidth, tileHeight);
125
100
  ctx.shaders.push(shader);
126
101
  }
127
-
128
102
  }
129
-
130
103
  exports.TurbulenceNode = TurbulenceNode;
131
-
132
104
  class FractalNoiseNode extends ShaderDeclaration {
133
105
  constructor(ctx, props) {
134
106
  super(ctx, _types2.NodeType.FractalNoise, props);
135
107
  }
136
-
137
108
  decorate(ctx) {
138
109
  const {
139
110
  freqX,
@@ -146,16 +117,12 @@ class FractalNoiseNode extends ShaderDeclaration {
146
117
  const shader = this.Skia.Shader.MakeFractalNoise(freqX, freqY, octaves, seed, tileWidth, tileHeight);
147
118
  ctx.shaders.push(shader);
148
119
  }
149
-
150
120
  }
151
-
152
121
  exports.FractalNoiseNode = FractalNoiseNode;
153
-
154
122
  class LinearGradientNode extends ShaderDeclaration {
155
123
  constructor(ctx, props) {
156
124
  super(ctx, _types2.NodeType.LinearGradient, props);
157
125
  }
158
-
159
126
  decorate(ctx) {
160
127
  const {
161
128
  start,
@@ -168,19 +135,15 @@ class LinearGradientNode extends ShaderDeclaration {
168
135
  localMatrix,
169
136
  flags
170
137
  } = (0, _datatypes.processGradientProps)(this.Skia, this.props);
171
- const shader = this.Skia.Shader.MakeLinearGradient(start, end, colors, positions ?? null, mode, localMatrix, flags);
138
+ const shader = this.Skia.Shader.MakeLinearGradient(start, end, colors, positions !== null && positions !== void 0 ? positions : null, mode, localMatrix, flags);
172
139
  ctx.shaders.push(shader);
173
140
  }
174
-
175
141
  }
176
-
177
142
  exports.LinearGradientNode = LinearGradientNode;
178
-
179
143
  class RadialGradientNode extends ShaderDeclaration {
180
144
  constructor(ctx, props) {
181
145
  super(ctx, _types2.NodeType.RadialGradient, props);
182
146
  }
183
-
184
147
  decorate(ctx) {
185
148
  const {
186
149
  c,
@@ -196,16 +159,12 @@ class RadialGradientNode extends ShaderDeclaration {
196
159
  const shader = this.Skia.Shader.MakeRadialGradient(c, r, colors, positions, mode, localMatrix, flags);
197
160
  ctx.shaders.push(shader);
198
161
  }
199
-
200
162
  }
201
-
202
163
  exports.RadialGradientNode = RadialGradientNode;
203
-
204
164
  class SweepGradientNode extends ShaderDeclaration {
205
165
  constructor(ctx, props) {
206
166
  super(ctx, _types2.NodeType.SweepGradient, props);
207
167
  }
208
-
209
168
  decorate(ctx) {
210
169
  const {
211
170
  c,
@@ -222,16 +181,12 @@ class SweepGradientNode extends ShaderDeclaration {
222
181
  const shader = this.Skia.Shader.MakeSweepGradient(c.x, c.y, colors, positions, mode, localMatrix, flags, start, end);
223
182
  ctx.shaders.push(shader);
224
183
  }
225
-
226
184
  }
227
-
228
185
  exports.SweepGradientNode = SweepGradientNode;
229
-
230
186
  class TwoPointConicalGradientNode extends ShaderDeclaration {
231
187
  constructor(ctx, props) {
232
188
  super(ctx, _types2.NodeType.TwoPointConicalGradient, props);
233
189
  }
234
-
235
190
  decorate(ctx) {
236
191
  const {
237
192
  startR,
@@ -249,8 +204,6 @@ class TwoPointConicalGradientNode extends ShaderDeclaration {
249
204
  const shader = this.Skia.Shader.MakeTwoPointConicalGradient(start, startR, end, endR, colors, positions, mode, localMatrix, flags);
250
205
  ctx.shaders.push(shader);
251
206
  }
252
-
253
207
  }
254
-
255
208
  exports.TwoPointConicalGradientNode = TwoPointConicalGradientNode;
256
209
  //# sourceMappingURL=Shaders.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ShaderDeclaration","JsiDeclarationNode","constructor","ctx","type","props","DeclarationType","Shader","ShaderNode","NodeType","decorate","decorateChildren","source","uniforms","transform","m3","Skia","Matrix","processTransformProps","shader","makeShaderWithChildren","processUniforms","shaders","popAll","push","ImageShaderNode","ImageShader","fit","image","tx","ty","fm","mm","imageShaderProps","rct","getRect","rects","fitRects","x","y","width","height","sx","sy","rect2rect","src","dst","translate","translateX","translateY","scale","scaleX","scaleY","lm","concat","makeShaderOptions","TileMode","enumKey","FilterMode","MipmapMode","ColorNode","ColorShader","color","MakeColor","Color","TurbulenceNode","Turbulence","freqX","freqY","octaves","seed","tileWidth","tileHeight","MakeTurbulence","FractalNoiseNode","FractalNoise","MakeFractalNoise","LinearGradientNode","LinearGradient","start","end","colors","positions","mode","localMatrix","flags","processGradientProps","MakeLinearGradient","RadialGradientNode","RadialGradient","c","r","MakeRadialGradient","SweepGradientNode","SweepGradient","MakeSweepGradient","TwoPointConicalGradientNode","TwoPointConicalGradient","startR","endR","MakeTwoPointConicalGradient"],"sources":["Shaders.ts"],"sourcesContent":["import {\n processUniforms,\n FilterMode,\n MipmapMode,\n TileMode,\n} from \"../../../skia/types\";\nimport type { NodeContext } from \"../Node\";\nimport { JsiDeclarationNode } from \"../Node\";\nimport type {\n ColorProps,\n DeclarationContext,\n FractalNoiseProps,\n ImageShaderProps,\n LinearGradientProps,\n RadialGradientProps,\n ShaderProps,\n SweepGradientProps,\n TurbulenceProps,\n TwoPointConicalGradientProps,\n} from \"../../types\";\nimport { DeclarationType, NodeType } from \"../../types\";\nimport {\n enumKey,\n fitRects,\n getRect,\n processGradientProps,\n processTransformProps,\n rect2rect,\n} from \"../datatypes\";\n\nexport abstract class ShaderDeclaration<P> extends JsiDeclarationNode<P> {\n constructor(ctx: NodeContext, type: NodeType, props: P) {\n super(ctx, DeclarationType.Shader, type, props);\n }\n}\n\nexport class ShaderNode extends ShaderDeclaration<ShaderProps> {\n constructor(ctx: NodeContext, props: ShaderProps) {\n super(ctx, NodeType.Shader, props);\n }\n\n decorate(ctx: DeclarationContext) {\n this.decorateChildren(ctx);\n const { source, uniforms, ...transform } = this.props;\n const m3 = this.Skia.Matrix();\n processTransformProps(m3, transform);\n const shader = source.makeShaderWithChildren(\n processUniforms(source, uniforms),\n ctx.shaders.popAll(),\n m3\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class ImageShaderNode extends ShaderDeclaration<ImageShaderProps> {\n constructor(ctx: NodeContext, props: ImageShaderProps) {\n super(ctx, NodeType.ImageShader, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { fit, image, tx, ty, fm, mm, ...imageShaderProps } = this.props;\n if (!image) {\n return;\n }\n\n const rct = getRect(this.Skia, imageShaderProps);\n const m3 = this.Skia.Matrix();\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 [x, y, sx, sy] = rect2rect(rects.src, rects.dst);\n m3.translate(x.translateX, y.translateY);\n m3.scale(sx.scaleX, sy.scaleY);\n }\n const lm = this.Skia.Matrix();\n lm.concat(m3);\n processTransformProps(lm, imageShaderProps);\n const shader = image.makeShaderOptions(\n TileMode[enumKey(tx)],\n TileMode[enumKey(ty)],\n FilterMode[enumKey(fm)],\n MipmapMode[enumKey(mm)],\n lm\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class ColorNode extends ShaderDeclaration<ColorProps> {\n constructor(ctx: NodeContext, props: ColorProps) {\n super(ctx, NodeType.ColorShader, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { color } = this.props;\n const shader = this.Skia.Shader.MakeColor(this.Skia.Color(color));\n ctx.shaders.push(shader);\n }\n}\n\nexport class TurbulenceNode extends ShaderDeclaration<TurbulenceProps> {\n constructor(ctx: NodeContext, props: TurbulenceProps) {\n super(ctx, NodeType.Turbulence, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { freqX, freqY, octaves, seed, tileWidth, tileHeight } = this.props;\n const shader = this.Skia.Shader.MakeTurbulence(\n freqX,\n freqY,\n octaves,\n seed,\n tileWidth,\n tileHeight\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class FractalNoiseNode extends ShaderDeclaration<FractalNoiseProps> {\n constructor(ctx: NodeContext, props: FractalNoiseProps) {\n super(ctx, NodeType.FractalNoise, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { freqX, freqY, octaves, seed, tileWidth, tileHeight } = this.props;\n const shader = this.Skia.Shader.MakeFractalNoise(\n freqX,\n freqY,\n octaves,\n seed,\n tileWidth,\n tileHeight\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class LinearGradientNode extends ShaderDeclaration<LinearGradientProps> {\n constructor(ctx: NodeContext, props: LinearGradientProps) {\n super(ctx, NodeType.LinearGradient, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { start, end } = this.props;\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(this.Skia, this.props);\n const shader = this.Skia.Shader.MakeLinearGradient(\n start,\n end,\n colors,\n positions ?? null,\n mode,\n localMatrix,\n flags\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class RadialGradientNode extends ShaderDeclaration<RadialGradientProps> {\n constructor(ctx: NodeContext, props: RadialGradientProps) {\n super(ctx, NodeType.RadialGradient, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { c, r } = this.props;\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(this.Skia, this.props);\n const shader = this.Skia.Shader.MakeRadialGradient(\n c,\n r,\n colors,\n positions,\n mode,\n localMatrix,\n flags\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class SweepGradientNode extends ShaderDeclaration<SweepGradientProps> {\n constructor(ctx: NodeContext, props: SweepGradientProps) {\n super(ctx, NodeType.SweepGradient, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { c, start, end } = this.props;\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(this.Skia, this.props);\n const shader = this.Skia.Shader.MakeSweepGradient(\n c.x,\n c.y,\n colors,\n positions,\n mode,\n localMatrix,\n flags,\n start,\n end\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class TwoPointConicalGradientNode extends ShaderDeclaration<TwoPointConicalGradientProps> {\n constructor(ctx: NodeContext, props: TwoPointConicalGradientProps) {\n super(ctx, NodeType.TwoPointConicalGradient, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { startR, endR, start, end } = this.props;\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(this.Skia, this.props);\n const shader = this.Skia.Shader.MakeTwoPointConicalGradient(\n start,\n startR,\n end,\n endR,\n colors,\n positions,\n mode,\n localMatrix,\n flags\n );\n ctx.shaders.push(shader);\n }\n}\n"],"mappings":";;;;;;;AAAA;;AAOA;;AAaA;;AACA;;AASO,MAAeA,iBAAf,SAA4CC,wBAA5C,CAAkE;EACvEC,WAAW,CAACC,GAAD,EAA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uBAApB,EAA6C5F,KAA7C;EACD;;EAEDK,QAAQ,CAACP,GAAD,EAA0B;IAChC,MAAM;MAAE+F,MAAF;MAAUC,IAAV;MAAgBpB,KAAhB;MAAuBC;IAAvB,IAA+B,KAAK3E,KAA1C;IACA,MAAM;MAAE4E,MAAF;MAAUC,SAAV;MAAqBC,IAArB;MAA2BC,WAA3B;MAAwCC;IAAxC,IACJ,IAAAC,+BAAA,EAAqB,KAAKtE,IAA1B,EAAgC,KAAKX,KAArC,CADF;IAEA,MAAMc,MAAM,GAAG,KAAKH,IAAL,CAAUT,MAAV,CAAiB6F,2BAAjB,CACbrB,KADa,EAEbmB,MAFa,EAGblB,GAHa,EAIbmB,IAJa,EAKblB,MALa,EAMbC,SANa,EAObC,IAPa,EAQbC,WARa,EASbC,KATa,CAAf;IAWAlF,GAAG,CAACmB,OAAJ,CAAYE,IAAZ,CAAiBL,MAAjB;EACD;;AArB8F"}
1
+ {"version":3,"names":["_types","require","_Node","_types2","_datatypes","ShaderDeclaration","JsiDeclarationNode","constructor","ctx","type","props","DeclarationType","Shader","exports","ShaderNode","NodeType","decorate","decorateChildren","source","uniforms","transform","m3","Skia","Matrix","processTransformProps","shader","makeShaderWithChildren","processUniforms","shaders","popAll","push","ImageShaderNode","ImageShader","fit","image","tx","ty","fm","mm","imageShaderProps","rct","getRect","rects","fitRects","x","y","width","height","sx","sy","rect2rect","src","dst","translate","translateX","translateY","scale","scaleX","scaleY","lm","concat","makeShaderOptions","TileMode","enumKey","FilterMode","MipmapMode","ColorNode","ColorShader","color","MakeColor","Color","TurbulenceNode","Turbulence","freqX","freqY","octaves","seed","tileWidth","tileHeight","MakeTurbulence","FractalNoiseNode","FractalNoise","MakeFractalNoise","LinearGradientNode","LinearGradient","start","end","colors","positions","mode","localMatrix","flags","processGradientProps","MakeLinearGradient","RadialGradientNode","RadialGradient","c","r","MakeRadialGradient","SweepGradientNode","SweepGradient","MakeSweepGradient","TwoPointConicalGradientNode","TwoPointConicalGradient","startR","endR","MakeTwoPointConicalGradient"],"sources":["Shaders.ts"],"sourcesContent":["import {\n processUniforms,\n FilterMode,\n MipmapMode,\n TileMode,\n} from \"../../../skia/types\";\nimport type { NodeContext } from \"../Node\";\nimport { JsiDeclarationNode } from \"../Node\";\nimport type {\n ColorProps,\n DeclarationContext,\n FractalNoiseProps,\n ImageShaderProps,\n LinearGradientProps,\n RadialGradientProps,\n ShaderProps,\n SweepGradientProps,\n TurbulenceProps,\n TwoPointConicalGradientProps,\n} from \"../../types\";\nimport { DeclarationType, NodeType } from \"../../types\";\nimport {\n enumKey,\n fitRects,\n getRect,\n processGradientProps,\n processTransformProps,\n rect2rect,\n} from \"../datatypes\";\n\nexport abstract class ShaderDeclaration<P> extends JsiDeclarationNode<P> {\n constructor(ctx: NodeContext, type: NodeType, props: P) {\n super(ctx, DeclarationType.Shader, type, props);\n }\n}\n\nexport class ShaderNode extends ShaderDeclaration<ShaderProps> {\n constructor(ctx: NodeContext, props: ShaderProps) {\n super(ctx, NodeType.Shader, props);\n }\n\n decorate(ctx: DeclarationContext) {\n this.decorateChildren(ctx);\n const { source, uniforms, ...transform } = this.props;\n const m3 = this.Skia.Matrix();\n processTransformProps(m3, transform);\n const shader = source.makeShaderWithChildren(\n processUniforms(source, uniforms),\n ctx.shaders.popAll(),\n m3\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class ImageShaderNode extends ShaderDeclaration<ImageShaderProps> {\n constructor(ctx: NodeContext, props: ImageShaderProps) {\n super(ctx, NodeType.ImageShader, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { fit, image, tx, ty, fm, mm, ...imageShaderProps } = this.props;\n if (!image) {\n return;\n }\n\n const rct = getRect(this.Skia, imageShaderProps);\n const m3 = this.Skia.Matrix();\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 [x, y, sx, sy] = rect2rect(rects.src, rects.dst);\n m3.translate(x.translateX, y.translateY);\n m3.scale(sx.scaleX, sy.scaleY);\n }\n const lm = this.Skia.Matrix();\n lm.concat(m3);\n processTransformProps(lm, imageShaderProps);\n const shader = image.makeShaderOptions(\n TileMode[enumKey(tx)],\n TileMode[enumKey(ty)],\n FilterMode[enumKey(fm)],\n MipmapMode[enumKey(mm)],\n lm\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class ColorNode extends ShaderDeclaration<ColorProps> {\n constructor(ctx: NodeContext, props: ColorProps) {\n super(ctx, NodeType.ColorShader, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { color } = this.props;\n const shader = this.Skia.Shader.MakeColor(this.Skia.Color(color));\n ctx.shaders.push(shader);\n }\n}\n\nexport class TurbulenceNode extends ShaderDeclaration<TurbulenceProps> {\n constructor(ctx: NodeContext, props: TurbulenceProps) {\n super(ctx, NodeType.Turbulence, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { freqX, freqY, octaves, seed, tileWidth, tileHeight } = this.props;\n const shader = this.Skia.Shader.MakeTurbulence(\n freqX,\n freqY,\n octaves,\n seed,\n tileWidth,\n tileHeight\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class FractalNoiseNode extends ShaderDeclaration<FractalNoiseProps> {\n constructor(ctx: NodeContext, props: FractalNoiseProps) {\n super(ctx, NodeType.FractalNoise, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { freqX, freqY, octaves, seed, tileWidth, tileHeight } = this.props;\n const shader = this.Skia.Shader.MakeFractalNoise(\n freqX,\n freqY,\n octaves,\n seed,\n tileWidth,\n tileHeight\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class LinearGradientNode extends ShaderDeclaration<LinearGradientProps> {\n constructor(ctx: NodeContext, props: LinearGradientProps) {\n super(ctx, NodeType.LinearGradient, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { start, end } = this.props;\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(this.Skia, this.props);\n const shader = this.Skia.Shader.MakeLinearGradient(\n start,\n end,\n colors,\n positions ?? null,\n mode,\n localMatrix,\n flags\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class RadialGradientNode extends ShaderDeclaration<RadialGradientProps> {\n constructor(ctx: NodeContext, props: RadialGradientProps) {\n super(ctx, NodeType.RadialGradient, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { c, r } = this.props;\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(this.Skia, this.props);\n const shader = this.Skia.Shader.MakeRadialGradient(\n c,\n r,\n colors,\n positions,\n mode,\n localMatrix,\n flags\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class SweepGradientNode extends ShaderDeclaration<SweepGradientProps> {\n constructor(ctx: NodeContext, props: SweepGradientProps) {\n super(ctx, NodeType.SweepGradient, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { c, start, end } = this.props;\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(this.Skia, this.props);\n const shader = this.Skia.Shader.MakeSweepGradient(\n c.x,\n c.y,\n colors,\n positions,\n mode,\n localMatrix,\n flags,\n start,\n end\n );\n ctx.shaders.push(shader);\n }\n}\n\nexport class TwoPointConicalGradientNode extends ShaderDeclaration<TwoPointConicalGradientProps> {\n constructor(ctx: NodeContext, props: TwoPointConicalGradientProps) {\n super(ctx, NodeType.TwoPointConicalGradient, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { startR, endR, start, end } = this.props;\n const { colors, positions, mode, localMatrix, flags } =\n processGradientProps(this.Skia, this.props);\n const shader = this.Skia.Shader.MakeTwoPointConicalGradient(\n start,\n startR,\n end,\n endR,\n colors,\n positions,\n mode,\n localMatrix,\n flags\n );\n ctx.shaders.push(shader);\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,KAAA,GAAAD,OAAA;AAaA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AASO,MAAeI,iBAAiB,SAAYC,wBAAkB,CAAI;EACvEC,WAAWA,CAACC,GAA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(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  var _Shaders = require("./Shaders");
8
-
9
7
  Object.keys(_Shaders).forEach(function (key) {
10
8
  if (key === "default" || key === "__esModule") return;
11
9
  if (key in exports && exports[key] === _Shaders[key]) return;
@@ -16,9 +14,7 @@ Object.keys(_Shaders).forEach(function (key) {
16
14
  }
17
15
  });
18
16
  });
19
-
20
17
  var _MaskFilters = require("./MaskFilters");
21
-
22
18
  Object.keys(_MaskFilters).forEach(function (key) {
23
19
  if (key === "default" || key === "__esModule") return;
24
20
  if (key in exports && exports[key] === _MaskFilters[key]) return;
@@ -29,9 +25,7 @@ Object.keys(_MaskFilters).forEach(function (key) {
29
25
  }
30
26
  });
31
27
  });
32
-
33
28
  var _ColorFilters = require("./ColorFilters");
34
-
35
29
  Object.keys(_ColorFilters).forEach(function (key) {
36
30
  if (key === "default" || key === "__esModule") return;
37
31
  if (key in exports && exports[key] === _ColorFilters[key]) return;
@@ -42,9 +36,7 @@ Object.keys(_ColorFilters).forEach(function (key) {
42
36
  }
43
37
  });
44
38
  });
45
-
46
39
  var _ImageFilters = require("./ImageFilters");
47
-
48
40
  Object.keys(_ImageFilters).forEach(function (key) {
49
41
  if (key === "default" || key === "__esModule") return;
50
42
  if (key in exports && exports[key] === _ImageFilters[key]) return;
@@ -55,9 +47,7 @@ Object.keys(_ImageFilters).forEach(function (key) {
55
47
  }
56
48
  });
57
49
  });
58
-
59
50
  var _PathEffects = require("./PathEffects");
60
-
61
51
  Object.keys(_PathEffects).forEach(function (key) {
62
52
  if (key === "default" || key === "__esModule") return;
63
53
  if (key in exports && exports[key] === _PathEffects[key]) return;
@@ -68,9 +58,7 @@ Object.keys(_PathEffects).forEach(function (key) {
68
58
  }
69
59
  });
70
60
  });
71
-
72
61
  var _BlendNode = require("./BlendNode");
73
-
74
62
  Object.keys(_BlendNode).forEach(function (key) {
75
63
  if (key === "default" || key === "__esModule") return;
76
64
  if (key in exports && exports[key] === _BlendNode[key]) return;
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Shaders\";\nexport * from \"./MaskFilters\";\nexport * from \"./ColorFilters\";\nexport * from \"./ImageFilters\";\nexport * from \"./PathEffects\";\nexport * from \"./BlendNode\";\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"names":["_Shaders","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_MaskFilters","_ColorFilters","_ImageFilters","_PathEffects","_BlendNode"],"sources":["index.ts"],"sourcesContent":["export * from \"./Shaders\";\nexport * from \"./MaskFilters\";\nexport * from \"./ColorFilters\";\nexport * from \"./ImageFilters\";\nexport * from \"./PathEffects\";\nexport * from \"./BlendNode\";\n"],"mappings":";;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,QAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,YAAA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AAA,OAAA,CAAAD,GAAA,MAAAQ,YAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,YAAA,CAAAR,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,UAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,UAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAS,UAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAK,UAAA,CAAAT,GAAA;IAAA;EAAA;AAAA"}
@@ -4,85 +4,62 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.composeDeclarations = exports.DeclarationContext = void 0;
7
-
8
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
-
7
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
9
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
10
  const composeDeclarations = (filters, composer) => {
11
11
  if (filters.length <= 1) {
12
12
  return filters[0];
13
13
  }
14
-
15
14
  return filters.reverse().reduce((inner, outer) => {
16
15
  if (!inner) {
17
16
  return outer;
18
17
  }
19
-
20
18
  return composer(outer, inner);
21
19
  });
22
20
  };
23
-
24
21
  exports.composeDeclarations = composeDeclarations;
25
-
26
22
  class Declaration {
27
23
  constructor(composer) {
28
24
  this.composer = composer;
29
-
30
25
  _defineProperty(this, "decls", []);
31
-
32
26
  _defineProperty(this, "indexes", [0]);
33
27
  }
34
-
35
28
  get index() {
36
29
  return this.indexes[this.indexes.length - 1];
37
30
  }
38
-
39
31
  save() {
40
32
  this.indexes.push(this.decls.length);
41
33
  }
42
-
43
34
  restore() {
44
35
  this.indexes.pop();
45
36
  }
46
-
47
37
  pop() {
48
38
  return this.decls.pop();
49
39
  }
50
-
51
40
  push(decl) {
52
41
  this.decls.push(decl);
53
42
  }
54
-
55
43
  popAll() {
56
44
  return this.decls.splice(this.index, this.decls.length - this.index);
57
45
  }
58
-
59
46
  popAllAsOne() {
60
47
  if (!this.composer) {
61
48
  throw new Error("No composer for this type of declaration");
62
49
  }
63
-
64
50
  const decls = this.popAll();
65
51
  return composeDeclarations(decls, this.composer);
66
52
  }
67
-
68
53
  }
69
-
70
54
  class DeclarationContext {
71
55
  constructor(Skia) {
72
56
  this.Skia = Skia;
73
-
74
57
  _defineProperty(this, "paints", void 0);
75
-
76
58
  _defineProperty(this, "maskFilters", void 0);
77
-
78
59
  _defineProperty(this, "shaders", void 0);
79
-
80
60
  _defineProperty(this, "pathEffects", void 0);
81
-
82
61
  _defineProperty(this, "imageFilters", void 0);
83
-
84
62
  _defineProperty(this, "colorFilters", void 0);
85
-
86
63
  const peComp = this.Skia.PathEffect.MakeCompose.bind(this.Skia.PathEffect);
87
64
  const ifComp = this.Skia.ImageFilter.MakeCompose.bind(this.Skia.ImageFilter);
88
65
  const cfComp = this.Skia.ColorFilter.MakeCompose.bind(this.Skia.ColorFilter);
@@ -93,7 +70,6 @@ class DeclarationContext {
93
70
  this.imageFilters = new Declaration(ifComp);
94
71
  this.colorFilters = new Declaration(cfComp);
95
72
  }
96
-
97
73
  save() {
98
74
  this.paints.save();
99
75
  this.maskFilters.save();
@@ -102,7 +78,6 @@ class DeclarationContext {
102
78
  this.imageFilters.save();
103
79
  this.colorFilters.save();
104
80
  }
105
-
106
81
  restore() {
107
82
  this.paints.restore();
108
83
  this.maskFilters.restore();
@@ -111,8 +86,6 @@ class DeclarationContext {
111
86
  this.imageFilters.restore();
112
87
  this.colorFilters.restore();
113
88
  }
114
-
115
89
  }
116
-
117
90
  exports.DeclarationContext = DeclarationContext;
118
91
  //# sourceMappingURL=DeclarationContext.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["composeDeclarations","filters","composer","length","reverse","reduce","inner","outer","Declaration","constructor","index","indexes","save","push","decls","restore","pop","decl","popAll","splice","popAllAsOne","Error","DeclarationContext","Skia","peComp","PathEffect","MakeCompose","bind","ifComp","ImageFilter","cfComp","ColorFilter","paints","maskFilters","shaders","pathEffects","imageFilters","colorFilters"],"sources":["DeclarationContext.ts"],"sourcesContent":["import type {\n SkShader,\n SkPaint,\n SkImageFilter,\n SkMaskFilter,\n SkPathEffect,\n Skia,\n SkColorFilter,\n} from \"../../skia/types\";\n\ntype Composer<T> = (outer: T, inner: T) => T;\n\nexport const composeDeclarations = <T>(filters: T[], composer: Composer<T>) => {\n if (filters.length <= 1) {\n return filters[0];\n }\n return filters.reverse().reduce((inner, outer) => {\n if (!inner) {\n return outer;\n }\n return composer(outer, inner);\n });\n};\n\nclass Declaration<T> {\n private decls: T[] = [];\n private indexes = [0];\n\n constructor(private composer?: Composer<T>) {}\n\n private get index() {\n return this.indexes[this.indexes.length - 1];\n }\n\n save() {\n this.indexes.push(this.decls.length);\n }\n\n restore() {\n this.indexes.pop();\n }\n\n pop() {\n return this.decls.pop();\n }\n\n push(decl: T) {\n this.decls.push(decl);\n }\n\n popAll() {\n return this.decls.splice(this.index, this.decls.length - this.index);\n }\n\n popAllAsOne() {\n if (!this.composer) {\n throw new Error(\"No composer for this type of declaration\");\n }\n const decls = this.popAll();\n return composeDeclarations(decls, this.composer!);\n }\n}\n\nexport class DeclarationContext {\n readonly paints: Declaration<SkPaint>;\n readonly maskFilters: Declaration<SkMaskFilter>;\n readonly shaders: Declaration<SkShader>;\n readonly pathEffects: Declaration<SkPathEffect>;\n readonly imageFilters: Declaration<SkImageFilter>;\n readonly colorFilters: Declaration<SkColorFilter>;\n\n constructor(private Skia: Skia) {\n const peComp = this.Skia.PathEffect.MakeCompose.bind(this.Skia.PathEffect);\n const ifComp = this.Skia.ImageFilter.MakeCompose.bind(\n this.Skia.ImageFilter\n );\n const cfComp = this.Skia.ColorFilter.MakeCompose.bind(\n this.Skia.ColorFilter\n );\n this.paints = new Declaration<SkPaint>();\n this.maskFilters = new Declaration<SkMaskFilter>();\n this.shaders = new Declaration<SkShader>();\n this.pathEffects = new Declaration<SkPathEffect>(peComp);\n this.imageFilters = new Declaration<SkImageFilter>(ifComp);\n this.colorFilters = new Declaration<SkColorFilter>(cfComp);\n }\n\n save() {\n this.paints.save();\n this.maskFilters.save();\n this.shaders.save();\n this.pathEffects.save();\n this.imageFilters.save();\n this.colorFilters.save();\n }\n\n restore() {\n this.paints.restore();\n this.maskFilters.restore();\n this.shaders.restore();\n this.pathEffects.restore();\n this.imageFilters.restore();\n this.colorFilters.restore();\n }\n}\n"],"mappings":";;;;;;;;;AAYO,MAAMA,mBAAmB,GAAG,CAAIC,OAAJ,EAAkBC,QAAlB,KAA4C;EAC7E,IAAID,OAAO,CAACE,MAAR,IAAkB,CAAtB,EAAyB;IACvB,OAAOF,OAAO,CAAC,CAAD,CAAd;EACD;;EACD,OAAOA,OAAO,CAACG,OAAR,GAAkBC,MAAlB,CAAyB,CAACC,KAAD,EAAQC,KAAR,KAAkB;IAChD,IAAI,CAACD,KAAL,EAAY;MACV,OAAOC,KAAP;IACD;;IACD,OAAOL,QAAQ,CAACK,KAAD,EAAQD,KAAR,CAAf;EACD,CALM,CAAP;AAMD,CAVM;;;;AAYP,MAAME,WAAN,CAAqB;EAInBC,WAAW,CAASP,QAA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WAAtB,CAAkCC,IAAlC,CACb,KAAKJ,IAAL,CAAUM,WADG,CAAf;IAGA,MAAMC,MAAM,GAAG,KAAKP,IAAL,CAAUQ,WAAV,CAAsBL,WAAtB,CAAkCC,IAAlC,CACb,KAAKJ,IAAL,CAAUQ,WADG,CAAf;IAGA,KAAKC,MAAL,GAAc,IAAIxB,WAAJ,EAAd;IACA,KAAKyB,WAAL,GAAmB,IAAIzB,WAAJ,EAAnB;IACA,KAAK0B,OAAL,GAAe,IAAI1B,WAAJ,EAAf;IACA,KAAK2B,WAAL,GAAmB,IAAI3B,WAAJ,CAA8BgB,MAA9B,CAAnB;IACA,KAAKY,YAAL,GAAoB,IAAI5B,WAAJ,CAA+BoB,MAA/B,CAApB;IACA,KAAKS,YAAL,GAAoB,IAAI7B,WAAJ,CAA+BsB,MAA/B,CAApB;EACD;;EAEDlB,IAAI,GAAG;IACL,KAAKoB,MAAL,CAAYpB,IAAZ;IACA,KAAKqB,WAAL,CAAiBrB,IAAjB;IACA,KAAKsB,OAAL,CAAatB,IAAb;IACA,KAAKuB,WAAL,CAAiBvB,IAAjB;IACA,KAAKwB,YAAL,CAAkBxB,IAAlB;IACA,KAAKyB,YAAL,CAAkBzB,IAAlB;EACD;;EAEDG,OAAO,GAAG;IACR,KAAKiB,MAAL,CAAYjB,OAAZ;IACA,KAAKkB,WAAL,CAAiBlB,OAAjB;IACA,KAAKmB,OAAL,CAAanB,OAAb;IACA,KAAKoB,WAAL,CAAiBpB,OAAjB;IACA,KAAKqB,YAAL,CAAkBrB,OAAlB;IACA,KAAKsB,YAAL,CAAkBtB,OAAlB;EACD;;AAxC6B"}
1
+ {"version":3,"names":["composeDeclarations","filters","composer","length","reverse","reduce","inner","outer","exports","Declaration","constructor","_defineProperty","index","indexes","save","push","decls","restore","pop","decl","popAll","splice","popAllAsOne","Error","DeclarationContext","Skia","peComp","PathEffect","MakeCompose","bind","ifComp","ImageFilter","cfComp","ColorFilter","paints","maskFilters","shaders","pathEffects","imageFilters","colorFilters"],"sources":["DeclarationContext.ts"],"sourcesContent":["import type {\n SkShader,\n SkPaint,\n SkImageFilter,\n SkMaskFilter,\n SkPathEffect,\n Skia,\n SkColorFilter,\n} from \"../../skia/types\";\n\ntype Composer<T> = (outer: T, inner: T) => T;\n\nexport const composeDeclarations = <T>(filters: T[], composer: Composer<T>) => {\n if (filters.length <= 1) {\n return filters[0];\n }\n return filters.reverse().reduce((inner, outer) => {\n if (!inner) {\n return outer;\n }\n return composer(outer, inner);\n });\n};\n\nclass Declaration<T> {\n private decls: T[] = [];\n private indexes = [0];\n\n constructor(private composer?: Composer<T>) {}\n\n private get index() {\n return this.indexes[this.indexes.length - 1];\n }\n\n save() {\n this.indexes.push(this.decls.length);\n }\n\n restore() {\n this.indexes.pop();\n }\n\n pop() {\n return this.decls.pop();\n }\n\n push(decl: T) {\n this.decls.push(decl);\n }\n\n popAll() {\n return this.decls.splice(this.index, this.decls.length - this.index);\n }\n\n popAllAsOne() {\n if (!this.composer) {\n throw new Error(\"No composer for this type of declaration\");\n }\n const decls = this.popAll();\n return composeDeclarations(decls, this.composer!);\n }\n}\n\nexport class DeclarationContext {\n readonly paints: Declaration<SkPaint>;\n readonly maskFilters: Declaration<SkMaskFilter>;\n readonly shaders: Declaration<SkShader>;\n readonly pathEffects: Declaration<SkPathEffect>;\n readonly imageFilters: Declaration<SkImageFilter>;\n readonly colorFilters: Declaration<SkColorFilter>;\n\n constructor(private Skia: Skia) {\n const peComp = this.Skia.PathEffect.MakeCompose.bind(this.Skia.PathEffect);\n const ifComp = this.Skia.ImageFilter.MakeCompose.bind(\n this.Skia.ImageFilter\n );\n const cfComp = this.Skia.ColorFilter.MakeCompose.bind(\n this.Skia.ColorFilter\n );\n this.paints = new Declaration<SkPaint>();\n this.maskFilters = new Declaration<SkMaskFilter>();\n this.shaders = new Declaration<SkShader>();\n this.pathEffects = new Declaration<SkPathEffect>(peComp);\n this.imageFilters = new Declaration<SkImageFilter>(ifComp);\n this.colorFilters = new Declaration<SkColorFilter>(cfComp);\n }\n\n save() {\n this.paints.save();\n this.maskFilters.save();\n this.shaders.save();\n this.pathEffects.save();\n this.imageFilters.save();\n this.colorFilters.save();\n }\n\n restore() {\n this.paints.restore();\n this.maskFilters.restore();\n this.shaders.restore();\n this.pathEffects.restore();\n this.imageFilters.restore();\n this.colorFilters.restore();\n }\n}\n"],"mappings":";;;;;;;;;AAYO,MAAMA,mBAAmB,GAAGA,CAAIC,OAAY,EAAEC,QAAqB,KAAK;EAC7E,IAAID,OAAO,CAACE,MAAM,IAAI,CAAC,EAAE;IACvB,OAAOF,OAAO,CAAC,CAAC,CAAC;EACnB;EACA,OAAOA,OAAO,CAACG,OAAO,CAAC,CAAC,CAACC,MAAM,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAK;IAChD,IAAI,CAACD,KAAK,EAAE;MACV,OAAOC,KAAK;IACd;IACA,OAAOL,QAAQ,CAACK,KAAK,EAAED,KAAK,CAAC;EAC/B,CAAC,CAAC;AACJ,CAAC;AAACE,OAAA,CAAAR,mBAAA,GAAAA,mBAAA;AAEF,MAAMS,WAAW,CAAI;EAInBC,WAAWA,CAASR,QAAsB,EAAE;IAAA,KAAxBA,QAAsB,GAAtBA,QAAsB;IAAAS,eAAA,gBAHrB,EAAE;IAAAA,eAAA,kBACL,CAAC,CAAC,CAAC;EAEwB;EAE7C,IAAYC,KAAKA,CAAA,EAAG;IAClB,OAAO,IAAI,CAACC,OAAO,CAAC,IAAI,CAACA,OAAO,CAACV,MAAM,GAAG,CAAC,CAAC;EAC9C;EAEAW,IAAIA,CAAA,EAAG;IACL,IAAI,CAACD,OAAO,CAACE,IAAI,CAAC,IAAI,CAACC,KAAK,CAACb,MAAM,CAAC;EACtC;EAEAc,OAAOA,CAAA,EAAG;IACR,IAAI,CAACJ,OAAO,CAACK,GAAG,CAAC,CAAC;EACpB;EAEAA,GAAGA,CAAA,EAAG;IACJ,OAAO,IAAI,CAACF,KAAK,CAACE,GAAG,CAAC,CAAC;EACzB;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