@shopify/react-native-skia 0.1.237 → 0.1.239

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1050) hide show
  1. package/cpp/rnskia/dom/base/JsiDomNode.h +16 -0
  2. package/cpp/rnskia/dom/nodes/JsiAtlasNode.h +0 -1
  3. package/ios/RNSkia-iOS/RNSkiOSPlatformContext.h +4 -3
  4. package/ios/RNSkia-iOS/SkiaManager.h +3 -1
  5. package/ios/RNSkia-iOS/SkiaManager.mm +6 -5
  6. package/ios/RNSkiaModule.mm +7 -1
  7. package/lib/commonjs/Platform/Platform.js +1 -5
  8. package/lib/commonjs/Platform/Platform.js.map +1 -1
  9. package/lib/commonjs/Platform/Platform.web.js +11 -33
  10. package/lib/commonjs/Platform/Platform.web.js.map +1 -1
  11. package/lib/commonjs/Platform/index.js +0 -2
  12. package/lib/commonjs/Platform/index.js.map +1 -1
  13. package/lib/commonjs/animation/functions/index.js +0 -8
  14. package/lib/commonjs/animation/functions/index.js.map +1 -1
  15. package/lib/commonjs/animation/functions/interpolate.js +12 -31
  16. package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
  17. package/lib/commonjs/animation/functions/interpolateColors.js +2 -13
  18. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  19. package/lib/commonjs/animation/functions/interpolatePaths.js +1 -16
  20. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
  21. package/lib/commonjs/animation/functions/interpolateVector.js +0 -5
  22. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
  23. package/lib/commonjs/animation/index.js +0 -2
  24. package/lib/commonjs/animation/index.js.map +1 -1
  25. package/lib/commonjs/dom/nodes/DrawingNode.js +7 -22
  26. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
  27. package/lib/commonjs/dom/nodes/GroupNode.js +0 -6
  28. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
  29. package/lib/commonjs/dom/nodes/JsiSkDOM.js +25 -87
  30. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  31. package/lib/commonjs/dom/nodes/LayerNode.js +0 -11
  32. package/lib/commonjs/dom/nodes/LayerNode.js.map +1 -1
  33. package/lib/commonjs/dom/nodes/Node.js +4 -36
  34. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  35. package/lib/commonjs/dom/nodes/PaintNode.js +1 -29
  36. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
  37. package/lib/commonjs/dom/nodes/RenderNode.js +3 -35
  38. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
  39. package/lib/commonjs/dom/nodes/datatypes/Circle.js +6 -8
  40. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
  41. package/lib/commonjs/dom/nodes/datatypes/Enum.js +0 -2
  42. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
  43. package/lib/commonjs/dom/nodes/datatypes/Fitting.js +15 -46
  44. package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
  45. package/lib/commonjs/dom/nodes/datatypes/Gradient.js +9 -20
  46. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
  47. package/lib/commonjs/dom/nodes/datatypes/Path.js +2 -8
  48. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
  49. package/lib/commonjs/dom/nodes/datatypes/Radius.js +0 -3
  50. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
  51. package/lib/commonjs/dom/nodes/datatypes/Rect.js +10 -15
  52. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
  53. package/lib/commonjs/dom/nodes/datatypes/Transform.js +0 -6
  54. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
  55. package/lib/commonjs/dom/nodes/datatypes/index.js +0 -16
  56. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
  57. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js +4 -15
  58. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js.map +1 -1
  59. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js +4 -18
  60. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  61. package/lib/commonjs/dom/nodes/drawings/Box.js +8 -34
  62. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
  63. package/lib/commonjs/dom/nodes/drawings/CircleNode.js +4 -15
  64. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
  65. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js +4 -12
  66. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  67. package/lib/commonjs/dom/nodes/drawings/FillNode.js +5 -14
  68. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
  69. package/lib/commonjs/dom/nodes/drawings/ImageNode.js +6 -19
  70. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
  71. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js +3 -18
  72. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
  73. package/lib/commonjs/dom/nodes/drawings/LineNode.js +4 -12
  74. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
  75. package/lib/commonjs/dom/nodes/drawings/OvalNode.js +4 -15
  76. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
  77. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js +3 -12
  78. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  79. package/lib/commonjs/dom/nodes/drawings/PatchNode.js +6 -18
  80. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
  81. package/lib/commonjs/dom/nodes/drawings/PathNode.js +4 -21
  82. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
  83. package/lib/commonjs/dom/nodes/drawings/PictureNode.js +3 -11
  84. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
  85. package/lib/commonjs/dom/nodes/drawings/PointsNode.js +4 -14
  86. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
  87. package/lib/commonjs/dom/nodes/drawings/RRectNode.js +7 -18
  88. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
  89. package/lib/commonjs/dom/nodes/drawings/RectNode.js +4 -15
  90. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
  91. package/lib/commonjs/dom/nodes/drawings/Text.js +18 -62
  92. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
  93. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js +4 -16
  94. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
  95. package/lib/commonjs/dom/nodes/drawings/index.js +0 -36
  96. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  97. package/lib/commonjs/dom/nodes/index.js +0 -6
  98. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  99. package/lib/commonjs/dom/nodes/paint/BlendNode.js +4 -18
  100. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
  101. package/lib/commonjs/dom/nodes/paint/ColorFilters.js +0 -34
  102. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
  103. package/lib/commonjs/dom/nodes/paint/ImageFilters.js +7 -60
  104. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
  105. package/lib/commonjs/dom/nodes/paint/MaskFilters.js +0 -8
  106. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
  107. package/lib/commonjs/dom/nodes/paint/PathEffects.js +0 -45
  108. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
  109. package/lib/commonjs/dom/nodes/paint/Shaders.js +1 -48
  110. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
  111. package/lib/commonjs/dom/nodes/paint/index.js +0 -12
  112. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
  113. package/lib/commonjs/dom/types/DeclarationContext.js +3 -30
  114. package/lib/commonjs/dom/types/DeclarationContext.js.map +1 -1
  115. package/lib/commonjs/dom/types/DrawingContext.js +3 -91
  116. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  117. package/lib/commonjs/dom/types/NodeType.js +6 -11
  118. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  119. package/lib/commonjs/dom/types/index.js +0 -26
  120. package/lib/commonjs/dom/types/index.js.map +1 -1
  121. package/lib/commonjs/external/index.js +0 -2
  122. package/lib/commonjs/external/index.js.map +1 -1
  123. package/lib/commonjs/external/reanimated/buffers.d.ts +6 -4
  124. package/lib/commonjs/external/reanimated/buffers.js +25 -24
  125. package/lib/commonjs/external/reanimated/buffers.js.map +1 -1
  126. package/lib/commonjs/external/reanimated/index.js +0 -12
  127. package/lib/commonjs/external/reanimated/index.js.map +1 -1
  128. package/lib/commonjs/external/reanimated/interpolators.d.ts +1 -1
  129. package/lib/commonjs/external/reanimated/interpolators.js +5 -20
  130. package/lib/commonjs/external/reanimated/interpolators.js.map +1 -1
  131. package/lib/commonjs/external/reanimated/moduleWrapper.js +12 -29
  132. package/lib/commonjs/external/reanimated/moduleWrapper.js.map +1 -1
  133. package/lib/commonjs/external/reanimated/renderHelpers.js +5 -31
  134. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
  135. package/lib/commonjs/external/reanimated/textures.d.ts +6 -3
  136. package/lib/commonjs/external/reanimated/textures.js +52 -15
  137. package/lib/commonjs/external/reanimated/textures.js.map +1 -1
  138. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +11 -16
  139. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -1
  140. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js +0 -4
  141. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  142. package/lib/commonjs/headless/index.js +1 -12
  143. package/lib/commonjs/headless/index.js.map +1 -1
  144. package/lib/commonjs/index.js +0 -20
  145. package/lib/commonjs/index.js.map +1 -1
  146. package/lib/commonjs/mock/index.js +0 -6
  147. package/lib/commonjs/mock/index.js.map +1 -1
  148. package/lib/commonjs/renderer/Canvas.js +21 -46
  149. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  150. package/lib/commonjs/renderer/Container.js +4 -15
  151. package/lib/commonjs/renderer/Container.js.map +1 -1
  152. package/lib/commonjs/renderer/HostComponents.js +1 -65
  153. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  154. package/lib/commonjs/renderer/HostConfig.js +9 -38
  155. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  156. package/lib/commonjs/renderer/Offscreen.js +2 -12
  157. package/lib/commonjs/renderer/Offscreen.js.map +1 -1
  158. package/lib/commonjs/renderer/Reconciler.js +4 -20
  159. package/lib/commonjs/renderer/Reconciler.js.map +1 -1
  160. package/lib/commonjs/renderer/components/Blend.js +0 -4
  161. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  162. package/lib/commonjs/renderer/components/Group.js +6 -15
  163. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  164. package/lib/commonjs/renderer/components/Mask.js +6 -14
  165. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  166. package/lib/commonjs/renderer/components/Paint.js +0 -4
  167. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  168. package/lib/commonjs/renderer/components/Picture.js +0 -4
  169. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  170. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +5 -13
  171. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  172. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +5 -11
  173. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  174. package/lib/commonjs/renderer/components/backdrop/index.js +0 -4
  175. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
  176. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +0 -4
  177. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  178. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +0 -4
  179. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  180. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +0 -4
  181. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  182. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +0 -4
  183. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  184. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +0 -6
  185. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  186. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +0 -4
  187. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  188. package/lib/commonjs/renderer/components/colorFilters/index.js +0 -12
  189. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
  190. package/lib/commonjs/renderer/components/image/Image.js +0 -4
  191. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  192. package/lib/commonjs/renderer/components/image/ImageSVG.js +0 -4
  193. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  194. package/lib/commonjs/renderer/components/image/ImageShader.js +9 -15
  195. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  196. package/lib/commonjs/renderer/components/image/index.js +0 -6
  197. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  198. package/lib/commonjs/renderer/components/imageFilters/Blur.js +4 -10
  199. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  200. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +0 -4
  201. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  202. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +4 -10
  203. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  204. package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -11
  205. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  206. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +0 -4
  207. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  208. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +0 -4
  209. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  210. package/lib/commonjs/renderer/components/imageFilters/index.js +0 -12
  211. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
  212. package/lib/commonjs/renderer/components/index.js +0 -32
  213. package/lib/commonjs/renderer/components/index.js.map +1 -1
  214. package/lib/commonjs/renderer/components/maskFilters/Blur.js +5 -11
  215. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  216. package/lib/commonjs/renderer/components/maskFilters/index.js +0 -2
  217. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
  218. package/lib/commonjs/renderer/components/paragraph/Paragraph.js +0 -4
  219. package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -1
  220. package/lib/commonjs/renderer/components/paragraph/index.js +0 -2
  221. package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -1
  222. package/lib/commonjs/renderer/components/pathEffects/Corner.js +0 -4
  223. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  224. package/lib/commonjs/renderer/components/pathEffects/Dash.js +0 -4
  225. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  226. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +4 -10
  227. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  228. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +0 -4
  229. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  230. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +0 -4
  231. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  232. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +0 -4
  233. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  234. package/lib/commonjs/renderer/components/pathEffects/Sum.js +0 -4
  235. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  236. package/lib/commonjs/renderer/components/pathEffects/index.js +0 -14
  237. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
  238. package/lib/commonjs/renderer/components/shaders/Color.js +0 -4
  239. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  240. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +6 -12
  241. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  242. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +0 -4
  243. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  244. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +0 -4
  245. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  246. package/lib/commonjs/renderer/components/shaders/Shader.js +4 -10
  247. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  248. package/lib/commonjs/renderer/components/shaders/ShaderLib.js +1 -2
  249. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
  250. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +0 -4
  251. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  252. package/lib/commonjs/renderer/components/shaders/Turbulence.js +6 -12
  253. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  254. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +0 -4
  255. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  256. package/lib/commonjs/renderer/components/shaders/index.js +0 -18
  257. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
  258. package/lib/commonjs/renderer/components/shapes/Atlas.js +0 -4
  259. package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -1
  260. package/lib/commonjs/renderer/components/shapes/Box.js +0 -6
  261. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  262. package/lib/commonjs/renderer/components/shapes/Circle.js +0 -4
  263. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  264. package/lib/commonjs/renderer/components/shapes/DiffRect.js +0 -4
  265. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  266. package/lib/commonjs/renderer/components/shapes/Fill.js +0 -4
  267. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  268. package/lib/commonjs/renderer/components/shapes/FitBox.js +8 -18
  269. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  270. package/lib/commonjs/renderer/components/shapes/Line.js +0 -4
  271. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  272. package/lib/commonjs/renderer/components/shapes/Oval.js +0 -4
  273. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  274. package/lib/commonjs/renderer/components/shapes/Patch.js +0 -4
  275. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  276. package/lib/commonjs/renderer/components/shapes/Path.js +5 -11
  277. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  278. package/lib/commonjs/renderer/components/shapes/Points.js +4 -10
  279. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  280. package/lib/commonjs/renderer/components/shapes/Rect.js +0 -4
  281. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  282. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +0 -4
  283. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  284. package/lib/commonjs/renderer/components/shapes/Vertices.js +4 -10
  285. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  286. package/lib/commonjs/renderer/components/shapes/index.js +0 -28
  287. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
  288. package/lib/commonjs/renderer/components/text/Glyphs.js +5 -11
  289. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  290. package/lib/commonjs/renderer/components/text/Text.js +5 -11
  291. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  292. package/lib/commonjs/renderer/components/text/TextBlob.js +5 -11
  293. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  294. package/lib/commonjs/renderer/components/text/TextPath.js +4 -10
  295. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  296. package/lib/commonjs/renderer/components/text/index.js +0 -8
  297. package/lib/commonjs/renderer/components/text/index.js.map +1 -1
  298. package/lib/commonjs/renderer/index.js +0 -2
  299. package/lib/commonjs/renderer/index.js.map +1 -1
  300. package/lib/commonjs/renderer/processors/Animations/index.js +0 -2
  301. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
  302. package/lib/commonjs/renderer/processors/index.js +0 -4
  303. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  304. package/lib/commonjs/renderer/processors/math/Coordinates.js +0 -12
  305. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  306. package/lib/commonjs/renderer/processors/math/Math.js +1 -7
  307. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
  308. package/lib/commonjs/renderer/processors/math/Transforms.js +0 -3
  309. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  310. package/lib/commonjs/renderer/processors/math/index.js +0 -6
  311. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  312. package/lib/commonjs/renderer/typeddash.js +2 -11
  313. package/lib/commonjs/renderer/typeddash.js.map +1 -1
  314. package/lib/commonjs/skia/NativeSetup.js +0 -6
  315. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  316. package/lib/commonjs/skia/Skia.js +2 -3
  317. package/lib/commonjs/skia/Skia.js.map +1 -1
  318. package/lib/commonjs/skia/Skia.web.js +1 -4
  319. package/lib/commonjs/skia/Skia.web.js.map +1 -1
  320. package/lib/commonjs/skia/core/AnimatedImage.js +2 -10
  321. package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -1
  322. package/lib/commonjs/skia/core/Data.js +9 -29
  323. package/lib/commonjs/skia/core/Data.js.map +1 -1
  324. package/lib/commonjs/skia/core/Font.js +10 -36
  325. package/lib/commonjs/skia/core/Font.js.map +1 -1
  326. package/lib/commonjs/skia/core/Image.js +3 -16
  327. package/lib/commonjs/skia/core/Image.js.map +1 -1
  328. package/lib/commonjs/skia/core/Matrix.js +0 -4
  329. package/lib/commonjs/skia/core/Matrix.js.map +1 -1
  330. package/lib/commonjs/skia/core/Picture.js +0 -7
  331. package/lib/commonjs/skia/core/Picture.js.map +1 -1
  332. package/lib/commonjs/skia/core/RRect.js +0 -3
  333. package/lib/commonjs/skia/core/RRect.js.map +1 -1
  334. package/lib/commonjs/skia/core/Rect.js +0 -17
  335. package/lib/commonjs/skia/core/Rect.js.map +1 -1
  336. package/lib/commonjs/skia/core/SVG.js +0 -5
  337. package/lib/commonjs/skia/core/SVG.js.map +1 -1
  338. package/lib/commonjs/skia/core/Typeface.js +1 -6
  339. package/lib/commonjs/skia/core/Typeface.js.map +1 -1
  340. package/lib/commonjs/skia/core/Vector.js +3 -17
  341. package/lib/commonjs/skia/core/Vector.js.map +1 -1
  342. package/lib/commonjs/skia/core/index.js +0 -22
  343. package/lib/commonjs/skia/core/index.js.map +1 -1
  344. package/lib/commonjs/skia/index.js +0 -5
  345. package/lib/commonjs/skia/index.js.map +1 -1
  346. package/lib/commonjs/skia/types/AnimatedImage/index.js +0 -4
  347. package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -1
  348. package/lib/commonjs/skia/types/Canvas.js +6 -11
  349. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  350. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js +0 -2
  351. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  352. package/lib/commonjs/skia/types/ColorFilter/index.js +0 -4
  353. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
  354. package/lib/commonjs/skia/types/Data/Data.js +0 -2
  355. package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
  356. package/lib/commonjs/skia/types/Data/index.js +0 -4
  357. package/lib/commonjs/skia/types/Data/index.js.map +1 -1
  358. package/lib/commonjs/skia/types/Font/Font.js +16 -34
  359. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  360. package/lib/commonjs/skia/types/Font/index.js +0 -6
  361. package/lib/commonjs/skia/types/Font/index.js.map +1 -1
  362. package/lib/commonjs/skia/types/Image/Image.js +9 -17
  363. package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
  364. package/lib/commonjs/skia/types/Image/ImageFactory.js +6 -11
  365. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  366. package/lib/commonjs/skia/types/Image/index.js +0 -4
  367. package/lib/commonjs/skia/types/Image/index.js.map +1 -1
  368. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +3 -7
  369. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  370. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +3 -5
  371. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  372. package/lib/commonjs/skia/types/ImageFilter/index.js +0 -4
  373. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
  374. package/lib/commonjs/skia/types/MaskFilter.js +4 -8
  375. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
  376. package/lib/commonjs/skia/types/Matrix.js +0 -7
  377. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  378. package/lib/commonjs/skia/types/Matrix4.js +22 -90
  379. package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
  380. package/lib/commonjs/skia/types/Paint/BlendMode.js +3 -6
  381. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
  382. package/lib/commonjs/skia/types/Paint/Paint.js +9 -19
  383. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
  384. package/lib/commonjs/skia/types/Paint/index.js +0 -4
  385. package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
  386. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js +3 -5
  387. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  388. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js +9 -17
  389. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  390. package/lib/commonjs/skia/types/Paragraph/TextStyle.js +9 -17
  391. package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -1
  392. package/lib/commonjs/skia/types/Paragraph/index.js +0 -12
  393. package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -1
  394. package/lib/commonjs/skia/types/Path/Path.js +9 -20
  395. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  396. package/lib/commonjs/skia/types/Path/index.js +0 -4
  397. package/lib/commonjs/skia/types/Path/index.js.map +1 -1
  398. package/lib/commonjs/skia/types/PathEffect.js +3 -7
  399. package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
  400. package/lib/commonjs/skia/types/Picture/index.js +0 -6
  401. package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
  402. package/lib/commonjs/skia/types/Point.js +3 -5
  403. package/lib/commonjs/skia/types/Point.js.map +1 -1
  404. package/lib/commonjs/skia/types/RRect.js +2 -3
  405. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  406. package/lib/commonjs/skia/types/Rect.js +0 -3
  407. package/lib/commonjs/skia/types/Rect.js.map +1 -1
  408. package/lib/commonjs/skia/types/RuntimeEffect/index.js +0 -4
  409. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
  410. package/lib/commonjs/skia/types/SVG/index.js +0 -4
  411. package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
  412. package/lib/commonjs/skia/types/Shader/Shader.js +4 -12
  413. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  414. package/lib/commonjs/skia/types/Shader/index.js +0 -4
  415. package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
  416. package/lib/commonjs/skia/types/Surface/index.js +0 -4
  417. package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
  418. package/lib/commonjs/skia/types/Typeface/index.js +0 -4
  419. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
  420. package/lib/commonjs/skia/types/Vertices/Vertices.js +3 -5
  421. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
  422. package/lib/commonjs/skia/types/Vertices/index.js +0 -2
  423. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
  424. package/lib/commonjs/skia/types/index.js +0 -62
  425. package/lib/commonjs/skia/types/index.js.map +1 -1
  426. package/lib/commonjs/skia/web/Host.js +7 -29
  427. package/lib/commonjs/skia/web/Host.js.map +1 -1
  428. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +3 -13
  429. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -1
  430. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js +0 -9
  431. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  432. package/lib/commonjs/skia/web/JsiSkCanvas.js +11 -77
  433. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  434. package/lib/commonjs/skia/web/JsiSkColor.js +10 -54
  435. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
  436. package/lib/commonjs/skia/web/JsiSkColorFilter.js +3 -7
  437. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
  438. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +0 -12
  439. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  440. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +3 -13
  441. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
  442. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +3 -11
  443. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  444. package/lib/commonjs/skia/web/JsiSkData.js +5 -8
  445. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
  446. package/lib/commonjs/skia/web/JsiSkDataFactory.js +0 -10
  447. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
  448. package/lib/commonjs/skia/web/JsiSkFont.js +5 -33
  449. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  450. package/lib/commonjs/skia/web/JsiSkFontMgr.js +0 -8
  451. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -1
  452. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +0 -8
  453. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  454. package/lib/commonjs/skia/web/JsiSkImage.js +11 -33
  455. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
  456. package/lib/commonjs/skia/web/JsiSkImageFactory.js +2 -15
  457. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  458. package/lib/commonjs/skia/web/JsiSkImageFilter.js +3 -7
  459. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
  460. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +0 -28
  461. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  462. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +3 -7
  463. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
  464. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +0 -6
  465. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  466. package/lib/commonjs/skia/web/JsiSkMatrix.js +9 -26
  467. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  468. package/lib/commonjs/skia/web/JsiSkPaint.js +3 -35
  469. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  470. package/lib/commonjs/skia/web/JsiSkParagraph.js +21 -47
  471. package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
  472. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js +4 -26
  473. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  474. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +1 -11
  475. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  476. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js +19 -24
  477. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -1
  478. package/lib/commonjs/skia/web/JsiSkPath.js +4 -77
  479. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  480. package/lib/commonjs/skia/web/JsiSkPathEffect.js +3 -7
  481. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
  482. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +0 -23
  483. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  484. package/lib/commonjs/skia/web/JsiSkPathFactory.js +0 -16
  485. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
  486. package/lib/commonjs/skia/web/JsiSkPicture.js +3 -13
  487. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
  488. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +0 -8
  489. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
  490. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +4 -13
  491. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
  492. package/lib/commonjs/skia/web/JsiSkPoint.js +5 -12
  493. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
  494. package/lib/commonjs/skia/web/JsiSkRRect.js +5 -17
  495. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
  496. package/lib/commonjs/skia/web/JsiSkRSXform.js +5 -15
  497. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
  498. package/lib/commonjs/skia/web/JsiSkRect.js +5 -15
  499. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
  500. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +3 -16
  501. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  502. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +0 -8
  503. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  504. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +0 -6
  505. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
  506. package/lib/commonjs/skia/web/JsiSkShader.js +3 -7
  507. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
  508. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +0 -15
  509. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
  510. package/lib/commonjs/skia/web/JsiSkSurface.js +3 -13
  511. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
  512. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +0 -14
  513. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  514. package/lib/commonjs/skia/web/JsiSkTextBlob.js +3 -7
  515. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
  516. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +0 -11
  517. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  518. package/lib/commonjs/skia/web/JsiSkTextStyle.js +0 -3
  519. package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -1
  520. package/lib/commonjs/skia/web/JsiSkTypeface.js +3 -10
  521. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
  522. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +0 -8
  523. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  524. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +16 -26
  525. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  526. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -6
  527. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  528. package/lib/commonjs/skia/web/JsiSkVertices.js +3 -10
  529. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
  530. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +8 -27
  531. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
  532. package/lib/commonjs/skia/web/JsiSkia.js +0 -33
  533. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  534. package/lib/commonjs/skia/web/index.js +0 -2
  535. package/lib/commonjs/skia/web/index.js.map +1 -1
  536. package/lib/commonjs/specs/NativeSkiaModule.js +1 -5
  537. package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -1
  538. package/lib/commonjs/specs/NativeSkiaModule.web.js +1 -4
  539. package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -1
  540. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +1 -6
  541. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -1
  542. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +1 -6
  543. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  544. package/lib/commonjs/views/SkiaBaseWebView.js +18 -66
  545. package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
  546. package/lib/commonjs/views/SkiaDomView.js +8 -40
  547. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  548. package/lib/commonjs/views/SkiaDomView.web.js +0 -9
  549. package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
  550. package/lib/commonjs/views/SkiaJSDomView.js +10 -43
  551. package/lib/commonjs/views/SkiaJSDomView.js.map +1 -1
  552. package/lib/commonjs/views/SkiaJSDomView.web.js +0 -1
  553. package/lib/commonjs/views/SkiaJSDomView.web.js.map +1 -1
  554. package/lib/commonjs/views/SkiaPictureView.js +6 -32
  555. package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
  556. package/lib/commonjs/views/SkiaPictureView.web.js +0 -5
  557. package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -1
  558. package/lib/commonjs/views/SkiaViewNativeId.js +1 -2
  559. package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -1
  560. package/lib/commonjs/views/api.js.map +1 -1
  561. package/lib/commonjs/views/index.js +0 -8
  562. package/lib/commonjs/views/index.js.map +1 -1
  563. package/lib/commonjs/views/types.js +3 -5
  564. package/lib/commonjs/views/types.js.map +1 -1
  565. package/lib/commonjs/views/useTouchHandler.js +19 -33
  566. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  567. package/lib/commonjs/web/LoadSkiaWeb.js +8 -12
  568. package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
  569. package/lib/commonjs/web/WithSkiaWeb.js +10 -18
  570. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  571. package/lib/commonjs/web/index.js +0 -4
  572. package/lib/commonjs/web/index.js.map +1 -1
  573. package/lib/module/Platform/Platform.js.map +1 -1
  574. package/lib/module/Platform/Platform.web.js +7 -23
  575. package/lib/module/Platform/Platform.web.js.map +1 -1
  576. package/lib/module/Platform/index.js.map +1 -1
  577. package/lib/module/animation/functions/index.js.map +1 -1
  578. package/lib/module/animation/functions/interpolate.js +12 -29
  579. package/lib/module/animation/functions/interpolate.js.map +1 -1
  580. package/lib/module/animation/functions/interpolateColors.js +2 -5
  581. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  582. package/lib/module/animation/functions/interpolatePaths.js +1 -13
  583. package/lib/module/animation/functions/interpolatePaths.js.map +1 -1
  584. package/lib/module/animation/functions/interpolateVector.js.map +1 -1
  585. package/lib/module/animation/index.js.map +1 -1
  586. package/lib/module/dom/nodes/DrawingNode.js +7 -17
  587. package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
  588. package/lib/module/dom/nodes/GroupNode.js +0 -2
  589. package/lib/module/dom/nodes/GroupNode.js.map +1 -1
  590. package/lib/module/dom/nodes/JsiSkDOM.js +14 -65
  591. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  592. package/lib/module/dom/nodes/LayerNode.js +0 -6
  593. package/lib/module/dom/nodes/LayerNode.js.map +1 -1
  594. package/lib/module/dom/nodes/Node.js +4 -32
  595. package/lib/module/dom/nodes/Node.js.map +1 -1
  596. package/lib/module/dom/nodes/PaintNode.js +1 -23
  597. package/lib/module/dom/nodes/PaintNode.js.map +1 -1
  598. package/lib/module/dom/nodes/RenderNode.js +3 -29
  599. package/lib/module/dom/nodes/RenderNode.js.map +1 -1
  600. package/lib/module/dom/nodes/datatypes/Circle.js +4 -4
  601. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  602. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -1
  603. package/lib/module/dom/nodes/datatypes/Fitting.js +15 -39
  604. package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -1
  605. package/lib/module/dom/nodes/datatypes/Gradient.js +7 -9
  606. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
  607. package/lib/module/dom/nodes/datatypes/Path.js +2 -3
  608. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
  609. package/lib/module/dom/nodes/datatypes/Radius.js +0 -1
  610. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
  611. package/lib/module/dom/nodes/datatypes/Rect.js +5 -7
  612. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  613. package/lib/module/dom/nodes/datatypes/Transform.js +0 -3
  614. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -1
  615. package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
  616. package/lib/module/dom/nodes/drawings/AtlasNode.js +4 -9
  617. package/lib/module/dom/nodes/drawings/AtlasNode.js.map +1 -1
  618. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js +4 -13
  619. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  620. package/lib/module/dom/nodes/drawings/Box.js +8 -27
  621. package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
  622. package/lib/module/dom/nodes/drawings/CircleNode.js +4 -10
  623. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
  624. package/lib/module/dom/nodes/drawings/DiffRectNode.js +4 -8
  625. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  626. package/lib/module/dom/nodes/drawings/FillNode.js +5 -10
  627. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
  628. package/lib/module/dom/nodes/drawings/ImageNode.js +4 -14
  629. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
  630. package/lib/module/dom/nodes/drawings/ImageSVG.js +3 -14
  631. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
  632. package/lib/module/dom/nodes/drawings/LineNode.js +4 -8
  633. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
  634. package/lib/module/dom/nodes/drawings/OvalNode.js +4 -10
  635. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
  636. package/lib/module/dom/nodes/drawings/ParagraphNode.js +3 -8
  637. package/lib/module/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  638. package/lib/module/dom/nodes/drawings/PatchNode.js +6 -12
  639. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
  640. package/lib/module/dom/nodes/drawings/PathNode.js +4 -14
  641. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
  642. package/lib/module/dom/nodes/drawings/PictureNode.js +3 -7
  643. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
  644. package/lib/module/dom/nodes/drawings/PointsNode.js +4 -8
  645. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
  646. package/lib/module/dom/nodes/drawings/RRectNode.js +7 -13
  647. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
  648. package/lib/module/dom/nodes/drawings/RectNode.js +4 -10
  649. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
  650. package/lib/module/dom/nodes/drawings/Text.js +18 -51
  651. package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
  652. package/lib/module/dom/nodes/drawings/VerticesNode.js +4 -10
  653. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
  654. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  655. package/lib/module/dom/nodes/index.js.map +1 -1
  656. package/lib/module/dom/nodes/paint/BlendNode.js +4 -9
  657. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -1
  658. package/lib/module/dom/nodes/paint/ColorFilters.js +0 -16
  659. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
  660. package/lib/module/dom/nodes/paint/ImageFilters.js +3 -40
  661. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
  662. package/lib/module/dom/nodes/paint/MaskFilters.js +0 -2
  663. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
  664. package/lib/module/dom/nodes/paint/PathEffects.js +0 -26
  665. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
  666. package/lib/module/dom/nodes/paint/Shaders.js +0 -23
  667. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
  668. package/lib/module/dom/nodes/paint/index.js.map +1 -1
  669. package/lib/module/dom/types/DeclarationContext.js +3 -27
  670. package/lib/module/dom/types/DeclarationContext.js.map +1 -1
  671. package/lib/module/dom/types/DrawingContext.js +3 -85
  672. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  673. package/lib/module/dom/types/NodeType.js +6 -9
  674. package/lib/module/dom/types/NodeType.js.map +1 -1
  675. package/lib/module/dom/types/index.js.map +1 -1
  676. package/lib/module/external/index.js.map +1 -1
  677. package/lib/module/external/reanimated/buffers.d.ts +6 -4
  678. package/lib/module/external/reanimated/buffers.js +27 -15
  679. package/lib/module/external/reanimated/buffers.js.map +1 -1
  680. package/lib/module/external/reanimated/index.js.map +1 -1
  681. package/lib/module/external/reanimated/interpolators.d.ts +1 -1
  682. package/lib/module/external/reanimated/interpolators.js +5 -4
  683. package/lib/module/external/reanimated/interpolators.js.map +1 -1
  684. package/lib/module/external/reanimated/moduleWrapper.js +2 -4
  685. package/lib/module/external/reanimated/moduleWrapper.js.map +1 -1
  686. package/lib/module/external/reanimated/renderHelpers.js +5 -28
  687. package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
  688. package/lib/module/external/reanimated/textures.d.ts +6 -3
  689. package/lib/module/external/reanimated/textures.js +46 -6
  690. package/lib/module/external/reanimated/textures.js.map +1 -1
  691. package/lib/module/external/reanimated/useAnimatedImageValue.js +11 -10
  692. package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
  693. package/lib/module/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  694. package/lib/module/headless/index.js +3 -4
  695. package/lib/module/headless/index.js.map +1 -1
  696. package/lib/module/index.js.map +1 -1
  697. package/lib/module/mock/index.js +2 -4
  698. package/lib/module/mock/index.js.map +1 -1
  699. package/lib/module/renderer/Canvas.js +17 -28
  700. package/lib/module/renderer/Canvas.js.map +1 -1
  701. package/lib/module/renderer/Container.js +4 -12
  702. package/lib/module/renderer/Container.js.map +1 -1
  703. package/lib/module/renderer/HostComponents.js +0 -58
  704. package/lib/module/renderer/HostComponents.js.map +1 -1
  705. package/lib/module/renderer/HostConfig.js +8 -29
  706. package/lib/module/renderer/HostConfig.js.map +1 -1
  707. package/lib/module/renderer/Offscreen.js +2 -1
  708. package/lib/module/renderer/Offscreen.js.map +1 -1
  709. package/lib/module/renderer/Reconciler.js +4 -13
  710. package/lib/module/renderer/Reconciler.js.map +1 -1
  711. package/lib/module/renderer/components/Blend.js.map +1 -1
  712. package/lib/module/renderer/components/Group.js +4 -8
  713. package/lib/module/renderer/components/Group.js.map +1 -1
  714. package/lib/module/renderer/components/Mask.js +6 -7
  715. package/lib/module/renderer/components/Mask.js.map +1 -1
  716. package/lib/module/renderer/components/Paint.js.map +1 -1
  717. package/lib/module/renderer/components/Picture.js.map +1 -1
  718. package/lib/module/renderer/components/backdrop/BackdropBlur.js +5 -7
  719. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  720. package/lib/module/renderer/components/backdrop/BackdropFilter.js +5 -6
  721. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  722. package/lib/module/renderer/components/backdrop/index.js.map +1 -1
  723. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  724. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  725. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  726. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  727. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  728. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  729. package/lib/module/renderer/components/colorFilters/index.js.map +1 -1
  730. package/lib/module/renderer/components/image/Image.js.map +1 -1
  731. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  732. package/lib/module/renderer/components/image/ImageShader.js +9 -11
  733. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  734. package/lib/module/renderer/components/image/index.js.map +1 -1
  735. package/lib/module/renderer/components/imageFilters/Blur.js +4 -6
  736. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  737. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  738. package/lib/module/renderer/components/imageFilters/Morphology.js +4 -6
  739. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  740. package/lib/module/renderer/components/imageFilters/Offset.js +5 -7
  741. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  742. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  743. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  744. package/lib/module/renderer/components/imageFilters/index.js.map +1 -1
  745. package/lib/module/renderer/components/index.js.map +1 -1
  746. package/lib/module/renderer/components/maskFilters/Blur.js +5 -7
  747. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  748. package/lib/module/renderer/components/maskFilters/index.js.map +1 -1
  749. package/lib/module/renderer/components/paragraph/Paragraph.js.map +1 -1
  750. package/lib/module/renderer/components/paragraph/index.js.map +1 -1
  751. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  752. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  753. package/lib/module/renderer/components/pathEffects/Discrete.js +4 -6
  754. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  755. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  756. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  757. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  758. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  759. package/lib/module/renderer/components/pathEffects/index.js.map +1 -1
  760. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  761. package/lib/module/renderer/components/shaders/FractalNoise.js +6 -8
  762. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  763. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  764. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  765. package/lib/module/renderer/components/shaders/Shader.js +4 -6
  766. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  767. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -1
  768. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  769. package/lib/module/renderer/components/shaders/Turbulence.js +6 -8
  770. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  771. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  772. package/lib/module/renderer/components/shaders/index.js.map +1 -1
  773. package/lib/module/renderer/components/shapes/Atlas.js.map +1 -1
  774. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  775. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  776. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  777. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  778. package/lib/module/renderer/components/shapes/FitBox.js +6 -7
  779. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  780. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  781. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  782. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  783. package/lib/module/renderer/components/shapes/Path.js +5 -7
  784. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  785. package/lib/module/renderer/components/shapes/Points.js +4 -6
  786. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  787. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  788. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  789. package/lib/module/renderer/components/shapes/Vertices.js +4 -6
  790. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  791. package/lib/module/renderer/components/shapes/index.js.map +1 -1
  792. package/lib/module/renderer/components/text/Glyphs.js +5 -7
  793. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  794. package/lib/module/renderer/components/text/Text.js +5 -7
  795. package/lib/module/renderer/components/text/Text.js.map +1 -1
  796. package/lib/module/renderer/components/text/TextBlob.js +5 -7
  797. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  798. package/lib/module/renderer/components/text/TextPath.js +4 -6
  799. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  800. package/lib/module/renderer/components/text/index.js.map +1 -1
  801. package/lib/module/renderer/index.js.map +1 -1
  802. package/lib/module/renderer/processors/Animations/index.js.map +1 -1
  803. package/lib/module/renderer/processors/index.js.map +1 -1
  804. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  805. package/lib/module/renderer/processors/math/Math.js +1 -1
  806. package/lib/module/renderer/processors/math/Math.js.map +1 -1
  807. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  808. package/lib/module/renderer/processors/math/index.js.map +1 -1
  809. package/lib/module/renderer/typeddash.js +2 -5
  810. package/lib/module/renderer/typeddash.js.map +1 -1
  811. package/lib/module/skia/NativeSetup.js +0 -4
  812. package/lib/module/skia/NativeSetup.js.map +1 -1
  813. package/lib/module/skia/Skia.js +1 -0
  814. package/lib/module/skia/Skia.js.map +1 -1
  815. package/lib/module/skia/Skia.web.js.map +1 -1
  816. package/lib/module/skia/core/AnimatedImage.js +2 -5
  817. package/lib/module/skia/core/AnimatedImage.js.map +1 -1
  818. package/lib/module/skia/core/Data.js +9 -21
  819. package/lib/module/skia/core/Data.js.map +1 -1
  820. package/lib/module/skia/core/Font.js +9 -24
  821. package/lib/module/skia/core/Font.js.map +1 -1
  822. package/lib/module/skia/core/Image.js +3 -8
  823. package/lib/module/skia/core/Image.js.map +1 -1
  824. package/lib/module/skia/core/Matrix.js.map +1 -1
  825. package/lib/module/skia/core/Picture.js +1 -3
  826. package/lib/module/skia/core/Picture.js.map +1 -1
  827. package/lib/module/skia/core/RRect.js.map +1 -1
  828. package/lib/module/skia/core/Rect.js.map +1 -1
  829. package/lib/module/skia/core/SVG.js.map +1 -1
  830. package/lib/module/skia/core/Typeface.js +1 -1
  831. package/lib/module/skia/core/Typeface.js.map +1 -1
  832. package/lib/module/skia/core/Vector.js +1 -3
  833. package/lib/module/skia/core/Vector.js.map +1 -1
  834. package/lib/module/skia/core/index.js.map +1 -1
  835. package/lib/module/skia/index.js.map +1 -1
  836. package/lib/module/skia/types/AnimatedImage/index.js.map +1 -1
  837. package/lib/module/skia/types/Canvas.js +6 -9
  838. package/lib/module/skia/types/Canvas.js.map +1 -1
  839. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  840. package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
  841. package/lib/module/skia/types/Data/Data.js.map +1 -1
  842. package/lib/module/skia/types/Data/index.js.map +1 -1
  843. package/lib/module/skia/types/Font/Font.js +15 -26
  844. package/lib/module/skia/types/Font/Font.js.map +1 -1
  845. package/lib/module/skia/types/Font/index.js.map +1 -1
  846. package/lib/module/skia/types/Image/Image.js +9 -14
  847. package/lib/module/skia/types/Image/Image.js.map +1 -1
  848. package/lib/module/skia/types/Image/ImageFactory.js +6 -9
  849. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  850. package/lib/module/skia/types/Image/index.js.map +1 -1
  851. package/lib/module/skia/types/ImageFilter/ImageFilter.js +3 -5
  852. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  853. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +3 -4
  854. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  855. package/lib/module/skia/types/ImageFilter/index.js.map +1 -1
  856. package/lib/module/skia/types/MaskFilter.js +4 -5
  857. package/lib/module/skia/types/MaskFilter.js.map +1 -1
  858. package/lib/module/skia/types/Matrix.js.map +1 -1
  859. package/lib/module/skia/types/Matrix4.js +22 -64
  860. package/lib/module/skia/types/Matrix4.js.map +1 -1
  861. package/lib/module/skia/types/Paint/BlendMode.js +3 -4
  862. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
  863. package/lib/module/skia/types/Paint/Paint.js +9 -15
  864. package/lib/module/skia/types/Paint/Paint.js.map +1 -1
  865. package/lib/module/skia/types/Paint/index.js.map +1 -1
  866. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js +3 -4
  867. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  868. package/lib/module/skia/types/Paragraph/ParagraphStyle.js +9 -14
  869. package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  870. package/lib/module/skia/types/Paragraph/TextStyle.js +9 -14
  871. package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -1
  872. package/lib/module/skia/types/Paragraph/index.js.map +1 -1
  873. package/lib/module/skia/types/Path/Path.js +9 -14
  874. package/lib/module/skia/types/Path/Path.js.map +1 -1
  875. package/lib/module/skia/types/Path/index.js.map +1 -1
  876. package/lib/module/skia/types/PathEffect.js +3 -4
  877. package/lib/module/skia/types/PathEffect.js.map +1 -1
  878. package/lib/module/skia/types/Picture/index.js.map +1 -1
  879. package/lib/module/skia/types/Point.js +3 -4
  880. package/lib/module/skia/types/Point.js.map +1 -1
  881. package/lib/module/skia/types/RRect.js +2 -1
  882. package/lib/module/skia/types/RRect.js.map +1 -1
  883. package/lib/module/skia/types/Rect.js +0 -1
  884. package/lib/module/skia/types/Rect.js.map +1 -1
  885. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
  886. package/lib/module/skia/types/SVG/index.js.map +1 -1
  887. package/lib/module/skia/types/Shader/Shader.js +4 -9
  888. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  889. package/lib/module/skia/types/Shader/index.js.map +1 -1
  890. package/lib/module/skia/types/Surface/index.js.map +1 -1
  891. package/lib/module/skia/types/Typeface/index.js.map +1 -1
  892. package/lib/module/skia/types/Vertices/Vertices.js +3 -4
  893. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -1
  894. package/lib/module/skia/types/Vertices/index.js.map +1 -1
  895. package/lib/module/skia/types/index.js.map +1 -1
  896. package/lib/module/skia/web/Host.js +6 -16
  897. package/lib/module/skia/web/Host.js.map +1 -1
  898. package/lib/module/skia/web/JsiSkAnimatedImage.js +3 -9
  899. package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
  900. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js +0 -4
  901. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  902. package/lib/module/skia/web/JsiSkCanvas.js +13 -63
  903. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  904. package/lib/module/skia/web/JsiSkColor.js +10 -52
  905. package/lib/module/skia/web/JsiSkColor.js.map +1 -1
  906. package/lib/module/skia/web/JsiSkColorFilter.js +3 -4
  907. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  908. package/lib/module/skia/web/JsiSkColorFilterFactory.js +0 -8
  909. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  910. package/lib/module/skia/web/JsiSkContourMeasure.js +3 -8
  911. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  912. package/lib/module/skia/web/JsiSkContourMeasureIter.js +3 -7
  913. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  914. package/lib/module/skia/web/JsiSkData.js +5 -5
  915. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  916. package/lib/module/skia/web/JsiSkDataFactory.js +0 -6
  917. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
  918. package/lib/module/skia/web/JsiSkFont.js +5 -26
  919. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  920. package/lib/module/skia/web/JsiSkFontMgr.js +0 -5
  921. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -1
  922. package/lib/module/skia/web/JsiSkFontMgrFactory.js +0 -4
  923. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  924. package/lib/module/skia/web/JsiSkImage.js +7 -23
  925. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  926. package/lib/module/skia/web/JsiSkImageFactory.js +2 -10
  927. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  928. package/lib/module/skia/web/JsiSkImageFilter.js +3 -4
  929. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  930. package/lib/module/skia/web/JsiSkImageFilterFactory.js +0 -23
  931. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  932. package/lib/module/skia/web/JsiSkMaskFilter.js +3 -4
  933. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  934. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +0 -2
  935. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  936. package/lib/module/skia/web/JsiSkMatrix.js +7 -21
  937. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  938. package/lib/module/skia/web/JsiSkPaint.js +3 -27
  939. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  940. package/lib/module/skia/web/JsiSkParagraph.js +21 -44
  941. package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
  942. package/lib/module/skia/web/JsiSkParagraphBuilder.js +1 -18
  943. package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  944. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +0 -4
  945. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  946. package/lib/module/skia/web/JsiSkParagraphStyle.js +4 -6
  947. package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
  948. package/lib/module/skia/web/JsiSkPath.js +4 -69
  949. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  950. package/lib/module/skia/web/JsiSkPathEffect.js +3 -4
  951. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  952. package/lib/module/skia/web/JsiSkPathEffectFactory.js +0 -17
  953. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  954. package/lib/module/skia/web/JsiSkPathFactory.js +0 -12
  955. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
  956. package/lib/module/skia/web/JsiSkPicture.js +4 -6
  957. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  958. package/lib/module/skia/web/JsiSkPictureFactory.js +0 -4
  959. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
  960. package/lib/module/skia/web/JsiSkPictureRecorder.js +3 -6
  961. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  962. package/lib/module/skia/web/JsiSkPoint.js +5 -9
  963. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  964. package/lib/module/skia/web/JsiSkRRect.js +5 -13
  965. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  966. package/lib/module/skia/web/JsiSkRSXform.js +5 -12
  967. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  968. package/lib/module/skia/web/JsiSkRect.js +5 -12
  969. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  970. package/lib/module/skia/web/JsiSkRuntimeEffect.js +3 -11
  971. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  972. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +0 -4
  973. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  974. package/lib/module/skia/web/JsiSkSVGFactory.js +0 -3
  975. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
  976. package/lib/module/skia/web/JsiSkShader.js +3 -4
  977. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  978. package/lib/module/skia/web/JsiSkShaderFactory.js +0 -9
  979. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
  980. package/lib/module/skia/web/JsiSkSurface.js +3 -7
  981. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  982. package/lib/module/skia/web/JsiSkSurfaceFactory.js +0 -10
  983. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  984. package/lib/module/skia/web/JsiSkTextBlob.js +3 -4
  985. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  986. package/lib/module/skia/web/JsiSkTextBlobFactory.js +0 -5
  987. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  988. package/lib/module/skia/web/JsiSkTextStyle.js +0 -1
  989. package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -1
  990. package/lib/module/skia/web/JsiSkTypeface.js +3 -7
  991. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  992. package/lib/module/skia/web/JsiSkTypefaceFactory.js +0 -4
  993. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  994. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +16 -23
  995. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  996. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -2
  997. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  998. package/lib/module/skia/web/JsiSkVertices.js +3 -6
  999. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  1000. package/lib/module/skia/web/JsiSkVerticesFactory.js +8 -24
  1001. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
  1002. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  1003. package/lib/module/skia/web/index.js.map +1 -1
  1004. package/lib/module/specs/NativeSkiaModule.js.map +1 -1
  1005. package/lib/module/specs/NativeSkiaModule.web.js +2 -1
  1006. package/lib/module/specs/NativeSkiaModule.web.js.map +1 -1
  1007. package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -1
  1008. package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  1009. package/lib/module/views/SkiaBaseWebView.js +16 -58
  1010. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  1011. package/lib/module/views/SkiaDomView.js +8 -23
  1012. package/lib/module/views/SkiaDomView.js.map +1 -1
  1013. package/lib/module/views/SkiaDomView.web.js +0 -4
  1014. package/lib/module/views/SkiaDomView.web.js.map +1 -1
  1015. package/lib/module/views/SkiaJSDomView.js +10 -26
  1016. package/lib/module/views/SkiaJSDomView.js.map +1 -1
  1017. package/lib/module/views/SkiaJSDomView.web.js.map +1 -1
  1018. package/lib/module/views/SkiaPictureView.js +5 -18
  1019. package/lib/module/views/SkiaPictureView.js.map +1 -1
  1020. package/lib/module/views/SkiaPictureView.web.js +0 -2
  1021. package/lib/module/views/SkiaPictureView.web.js.map +1 -1
  1022. package/lib/module/views/SkiaViewNativeId.js.map +1 -1
  1023. package/lib/module/views/api.js.map +1 -1
  1024. package/lib/module/views/index.js.map +1 -1
  1025. package/lib/module/views/types.js +4 -4
  1026. package/lib/module/views/types.js.map +1 -1
  1027. package/lib/module/views/useTouchHandler.js +13 -21
  1028. package/lib/module/views/useTouchHandler.js.map +1 -1
  1029. package/lib/module/web/LoadSkiaWeb.js +4 -5
  1030. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  1031. package/lib/module/web/WithSkiaWeb.js +7 -8
  1032. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  1033. package/lib/module/web/index.js.map +1 -1
  1034. package/lib/typescript/src/external/reanimated/buffers.d.ts +6 -4
  1035. package/lib/typescript/src/external/reanimated/interpolators.d.ts +1 -1
  1036. package/lib/typescript/src/external/reanimated/textures.d.ts +6 -3
  1037. package/package.json +15 -15
  1038. package/react-native-skia.podspec +1 -1
  1039. package/src/dom/nodes/Node.ts +1 -0
  1040. package/src/external/reanimated/buffers.ts +29 -26
  1041. package/src/external/reanimated/interpolators.ts +4 -1
  1042. package/src/external/reanimated/textures.tsx +55 -6
  1043. package/lib/commonjs/animation/types.d.ts +0 -18
  1044. package/lib/commonjs/animation/types.js +0 -2
  1045. package/lib/commonjs/animation/types.js.map +0 -1
  1046. package/lib/module/animation/types.d.ts +0 -18
  1047. package/lib/module/animation/types.js +0 -2
  1048. package/lib/module/animation/types.js.map +0 -1
  1049. package/lib/typescript/src/animation/types.d.ts +0 -18
  1050. package/src/animation/types.ts +0 -23
@@ -1 +1 @@
1
- {"version":3,"names":["TextNode","JsiDrawingNode","constructor","ctx","props","NodeType","Text","deriveProps","font","draw","canvas","paint","text","x","y","derived","undefined","Error","drawText","TextPathNode","TextPath","path","processPath","Skia","initialOffset","ids","getGlyphIDs","widths","getGlyphWidths","rsx","meas","ContourMeasureIter","cont","next","dist","i","length","width","substring","p","t","getPosTan","adjustedX","adjustedY","push","RSXform","TextBlob","MakeFromRSXform","drawTextBlob","TextBlobNode","blob","GlyphsNode","Glyphs","glyphs","reduce","acc","glyph","id","pos","positions","drawGlyphs"],"sources":["Text.ts"],"sourcesContent":["import type {\n SkRSXform,\n SkTextBlob,\n SkPoint,\n SkFont,\n} from \"../../../skia/types\";\nimport type {\n DrawingContext,\n TextBlobProps,\n TextPathProps,\n TextProps,\n} from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { processPath } from \"../datatypes\";\nimport type { GlyphsProps } from \"../../types/Drawings\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class TextNode extends JsiDrawingNode<TextProps, SkFont | null> {\n constructor(ctx: NodeContext, props: TextProps) {\n super(ctx, NodeType.Text, props);\n }\n\n protected deriveProps() {\n const { font } = this.props;\n if (!font) {\n return null;\n }\n return font;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { text, x, y } = this.props;\n const font = this.derived;\n if (font === undefined) {\n throw new Error(\"TextNode: font hasn't been derived\");\n }\n if (font != null) {\n canvas.drawText(text, x, y, paint, font);\n }\n }\n}\n\nexport class TextPathNode extends JsiDrawingNode<\n TextPathProps,\n SkTextBlob | null\n> {\n constructor(ctx: NodeContext, props: TextPathProps) {\n super(ctx, NodeType.TextPath, props);\n }\n\n deriveProps() {\n const path = processPath(this.Skia, this.props.path);\n const { font, initialOffset } = this.props;\n if (!font) {\n return null;\n }\n let { text } = this.props;\n const ids = font.getGlyphIDs(text);\n const widths = font.getGlyphWidths(ids);\n const rsx: SkRSXform[] = [];\n const meas = this.Skia.ContourMeasureIter(path, false, 1);\n let cont = meas.next();\n let dist = initialOffset;\n for (let i = 0; i < text.length && cont; i++) {\n const width = widths[i];\n dist += width / 2;\n if (dist > cont.length()) {\n // jump to next contour\n cont = meas.next();\n if (!cont) {\n // We have come to the end of the path - terminate the string\n // right here.\n text = text.substring(0, i);\n break;\n }\n dist = width / 2;\n }\n // Gives us the (x, y) coordinates as well as the cos/sin of the tangent\n // line at that position.\n const [p, t] = cont.getPosTan(dist);\n const adjustedX = p.x - (width / 2) * t.x;\n const adjustedY = p.y - (width / 2) * t.y;\n rsx.push(this.Skia.RSXform(t.x, t.y, adjustedX, adjustedY));\n dist += width / 2;\n }\n return this.Skia.TextBlob.MakeFromRSXform(text, rsx, font);\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (!this.derived) {\n throw new Error(\"TextPathNode: blob is null\");\n }\n canvas.drawTextBlob(this.derived, 0, 0, paint);\n }\n}\n\nexport class TextBlobNode extends JsiDrawingNode<TextBlobProps, null> {\n constructor(ctx: NodeContext, props: TextBlobProps) {\n super(ctx, NodeType.TextBlob, props);\n }\n\n protected deriveProps() {\n return null;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { blob, x, y } = this.props;\n canvas.drawTextBlob(blob, x, y, paint);\n }\n}\n\ninterface ProcessedGlyphs {\n glyphs: number[];\n positions: SkPoint[];\n}\n\nexport class GlyphsNode extends JsiDrawingNode<GlyphsProps, ProcessedGlyphs> {\n constructor(ctx: NodeContext, props: GlyphsProps) {\n super(ctx, NodeType.Glyphs, props);\n }\n\n deriveProps() {\n return this.props.glyphs.reduce<ProcessedGlyphs>(\n (acc, glyph) => {\n const { id, pos } = glyph;\n acc.glyphs.push(id);\n acc.positions.push(pos);\n return acc;\n },\n { glyphs: [], positions: [] }\n );\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (!this.derived) {\n throw new Error(\"GlyphsNode: processedGlyphs is null\");\n }\n const { glyphs, positions } = this.derived;\n const { x, y, font } = this.props;\n if (font) {\n canvas.drawGlyphs(glyphs, positions, x, y, font, paint);\n }\n }\n}\n"],"mappings":";;;;;;;AAYA;;AACA;;AAEA;;AAGO,MAAMA,QAAN,SAAuBC,2BAAvB,CAAgE;EACrEC,WAAW,CAACC,GAAD,EAAmBC,KAAnB,EAAqC;IAC9C,MAAMD,GAAN,EAAWE,eAAA,CAASC,IAApB,EAA0BF,KAA1B;EACD;;EAESG,WAAW,GAAG;IACtB,MAAM;MAAEC;IAAF,IAAW,KAAKJ,KAAtB;;IACA,IAAI,CAACI,IAAL,EAAW;MACT,OAAO,IAAP;IACD;;IACD,OAAOA,IAAP;EACD;;EAEDC,IAAI,OAAoC;IAAA,IAAnC;MAAEC,MAAF;MAAUC;IAAV,CAAmC;IACtC,MAAM;MAAEC,IAAF;MAAQC,CAAR;MAAWC;IAAX,IAAiB,KAAKV,KAA5B;IACA,MAAMI,IAAI,GAAG,KAAKO,OAAlB;;IACA,IAAIP,IAAI,KAAKQ,SAAb,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,IAAII,IAAJ,EAAU;MACRE,MAAM,CAACkD,UAAP,CAAkBP,MAAlB,EAA0BM,SAA1B,EAAqC9C,CAArC,EAAwCC,CAAxC,EAA2CN,IAA3C,EAAiDG,KAAjD;IACD;EACF;;AA1B0E"}
1
+ {"version":3,"names":["_types","require","_datatypes","_DrawingNode","TextNode","JsiDrawingNode","constructor","ctx","props","NodeType","Text","deriveProps","font","draw","canvas","paint","text","x","y","derived","undefined","Error","drawText","exports","TextPathNode","TextPath","path","processPath","Skia","initialOffset","ids","getGlyphIDs","widths","getGlyphWidths","rsx","meas","ContourMeasureIter","cont","next","dist","i","length","width","substring","p","t","getPosTan","adjustedX","adjustedY","push","RSXform","TextBlob","MakeFromRSXform","drawTextBlob","TextBlobNode","blob","GlyphsNode","Glyphs","glyphs","reduce","acc","glyph","id","pos","positions","drawGlyphs"],"sources":["Text.ts"],"sourcesContent":["import type {\n SkRSXform,\n SkTextBlob,\n SkPoint,\n SkFont,\n} from \"../../../skia/types\";\nimport type {\n DrawingContext,\n TextBlobProps,\n TextPathProps,\n TextProps,\n} from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { processPath } from \"../datatypes\";\nimport type { GlyphsProps } from \"../../types/Drawings\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class TextNode extends JsiDrawingNode<TextProps, SkFont | null> {\n constructor(ctx: NodeContext, props: TextProps) {\n super(ctx, NodeType.Text, props);\n }\n\n protected deriveProps() {\n const { font } = this.props;\n if (!font) {\n return null;\n }\n return font;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { text, x, y } = this.props;\n const font = this.derived;\n if (font === undefined) {\n throw new Error(\"TextNode: font hasn't been derived\");\n }\n if (font != null) {\n canvas.drawText(text, x, y, paint, font);\n }\n }\n}\n\nexport class TextPathNode extends JsiDrawingNode<\n TextPathProps,\n SkTextBlob | null\n> {\n constructor(ctx: NodeContext, props: TextPathProps) {\n super(ctx, NodeType.TextPath, props);\n }\n\n deriveProps() {\n const path = processPath(this.Skia, this.props.path);\n const { font, initialOffset } = this.props;\n if (!font) {\n return null;\n }\n let { text } = this.props;\n const ids = font.getGlyphIDs(text);\n const widths = font.getGlyphWidths(ids);\n const rsx: SkRSXform[] = [];\n const meas = this.Skia.ContourMeasureIter(path, false, 1);\n let cont = meas.next();\n let dist = initialOffset;\n for (let i = 0; i < text.length && cont; i++) {\n const width = widths[i];\n dist += width / 2;\n if (dist > cont.length()) {\n // jump to next contour\n cont = meas.next();\n if (!cont) {\n // We have come to the end of the path - terminate the string\n // right here.\n text = text.substring(0, i);\n break;\n }\n dist = width / 2;\n }\n // Gives us the (x, y) coordinates as well as the cos/sin of the tangent\n // line at that position.\n const [p, t] = cont.getPosTan(dist);\n const adjustedX = p.x - (width / 2) * t.x;\n const adjustedY = p.y - (width / 2) * t.y;\n rsx.push(this.Skia.RSXform(t.x, t.y, adjustedX, adjustedY));\n dist += width / 2;\n }\n return this.Skia.TextBlob.MakeFromRSXform(text, rsx, font);\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (!this.derived) {\n throw new Error(\"TextPathNode: blob is null\");\n }\n canvas.drawTextBlob(this.derived, 0, 0, paint);\n }\n}\n\nexport class TextBlobNode extends JsiDrawingNode<TextBlobProps, null> {\n constructor(ctx: NodeContext, props: TextBlobProps) {\n super(ctx, NodeType.TextBlob, props);\n }\n\n protected deriveProps() {\n return null;\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { blob, x, y } = this.props;\n canvas.drawTextBlob(blob, x, y, paint);\n }\n}\n\ninterface ProcessedGlyphs {\n glyphs: number[];\n positions: SkPoint[];\n}\n\nexport class GlyphsNode extends JsiDrawingNode<GlyphsProps, ProcessedGlyphs> {\n constructor(ctx: NodeContext, props: GlyphsProps) {\n super(ctx, NodeType.Glyphs, props);\n }\n\n deriveProps() {\n return this.props.glyphs.reduce<ProcessedGlyphs>(\n (acc, glyph) => {\n const { id, pos } = glyph;\n acc.glyphs.push(id);\n acc.positions.push(pos);\n return acc;\n },\n { glyphs: [], positions: [] }\n );\n }\n\n draw({ canvas, paint }: DrawingContext) {\n if (!this.derived) {\n throw new Error(\"GlyphsNode: processedGlyphs is null\");\n }\n const { glyphs, positions } = this.derived;\n const { x, y, font } = this.props;\n if (font) {\n canvas.drawGlyphs(glyphs, positions, x, y, font, paint);\n }\n }\n}\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AAGO,MAAMG,QAAQ,SAASC,2BAAc,CAA2B;EACrEC,WAAWA,CAACC,GAAgB,EAAEC,KAAgB,EAAE;IAC9C,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,IAAI,EAAEF,KAAK,CAAC;EAClC;EAEUG,WAAWA,CAAA,EAAG;IACtB,MAAM;MAAEC;IAAK,CAAC,GAAG,IAAI,CAACJ,KAAK;IAC3B,IAAI,CAACI,IAAI,EAAE;MACT,OAAO,IAAI;IACb;IACA,OAAOA,IAAI;EACb;EAEAC,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,MAAM;MAAEC,IAAI;MAAEC,CAAC;MAAEC;IAAE,CAAC,GAAG,IAAI,CAACV,KAAK;IACjC,MAAMI,IAAI,GAAG,IAAI,CAACO,OAAO;IACzB,IAAIP,IAAI,KAAKQ,SAAS,EAAE;MACtB,MAAM,IAAIC,KAAK,CAAC,oCAAoC,CAAC;IACvD;IACA,IAAIT,IAAI,IAAI,IAAI,EAAE;MAChBE,MAAM,CAACQ,QAAQ,CAACN,IAAI,EAAEC,CAAC,EAAEC,CAAC,EAAEH,KAAK,EAAEH,IAAI,CAAC;IAC1C;EACF;AACF;AAACW,OAAA,CAAAnB,QAAA,GAAAA,QAAA;AAEM,MAAMoB,YAAY,SAASnB,2BAAc,CAG9C;EACAC,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK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A,GAAAA,UAAA"}
@@ -4,20 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VerticesNode = void 0;
7
-
8
7
  var _types = require("../../../skia/types");
9
-
10
8
  var _types2 = require("../../types");
11
-
12
9
  var _datatypes = require("../datatypes");
13
-
14
10
  var _DrawingNode = require("../DrawingNode");
15
-
16
11
  class VerticesNode extends _DrawingNode.JsiDrawingNode {
17
12
  constructor(ctx, props) {
18
13
  super(ctx, _types2.NodeType.Vertices, props);
19
14
  }
20
-
21
15
  deriveProps() {
22
16
  const {
23
17
  mode,
@@ -29,27 +23,21 @@ class VerticesNode extends _DrawingNode.JsiDrawingNode {
29
23
  const vertexMode = mode ? _types.VertexMode[(0, _datatypes.enumKey)(mode)] : _types.VertexMode.Triangles;
30
24
  return this.Skia.MakeVertices(vertexMode, vertices, textures, colors ? colors.map(c => this.Skia.Color(c)) : undefined, indices);
31
25
  }
32
-
33
- draw(_ref) {
34
- let {
35
- canvas,
36
- paint
37
- } = _ref;
26
+ draw({
27
+ canvas,
28
+ paint
29
+ }) {
38
30
  const {
39
31
  colors,
40
32
  blendMode
41
33
  } = this.props;
42
34
  const defaultBlendMode = colors ? _types.BlendMode.DstOver : _types.BlendMode.SrcOver;
43
35
  const blend = blendMode ? _types.BlendMode[(0, _datatypes.enumKey)(blendMode)] : defaultBlendMode;
44
-
45
36
  if (this.derived === undefined) {
46
37
  throw new Error("VerticesNode: vertices is undefined");
47
38
  }
48
-
49
39
  canvas.drawVertices(this.derived, blend, paint);
50
40
  }
51
-
52
41
  }
53
-
54
42
  exports.VerticesNode = VerticesNode;
55
43
  //# sourceMappingURL=VerticesNode.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["VerticesNode","JsiDrawingNode","constructor","ctx","props","NodeType","Vertices","deriveProps","mode","vertices","textures","colors","indices","vertexMode","VertexMode","enumKey","Triangles","Skia","MakeVertices","map","c","Color","undefined","draw","canvas","paint","blendMode","defaultBlendMode","BlendMode","DstOver","SrcOver","blend","derived","Error","drawVertices"],"sources":["VerticesNode.ts"],"sourcesContent":["import type { SkVertices } from \"../../../skia/types\";\nimport { VertexMode, BlendMode } from \"../../../skia/types\";\nimport type { DrawingContext, VerticesProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { enumKey } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class VerticesNode extends JsiDrawingNode<VerticesProps, SkVertices> {\n constructor(ctx: NodeContext, props: VerticesProps) {\n super(ctx, NodeType.Vertices, props);\n }\n\n protected deriveProps() {\n const { mode, vertices, textures, colors, indices } = this.props;\n const vertexMode = mode ? VertexMode[enumKey(mode)] : VertexMode.Triangles;\n return this.Skia.MakeVertices(\n vertexMode,\n vertices,\n textures,\n colors ? colors.map((c) => this.Skia.Color(c)) : undefined,\n indices\n );\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { colors, blendMode } = this.props;\n const defaultBlendMode = colors ? BlendMode.DstOver : BlendMode.SrcOver;\n const blend = blendMode ? BlendMode[enumKey(blendMode)] : defaultBlendMode;\n if (this.derived === undefined) {\n throw new Error(\"VerticesNode: vertices is undefined\");\n }\n canvas.drawVertices(this.derived, blend, paint);\n }\n}\n"],"mappings":";;;;;;;AACA;;AAEA;;AACA;;AACA;;AAGO,MAAMA,YAAN,SAA2BC,2BAA3B,CAAqE;EAC1EC,WAAW,CAACC,GAAD,EAAmBC,KAAnB,EAAyC;IAClD,MAAMD,GAAN,EAAWE,gBAAA,CAASC,QAApB,EAA8BF,KAA9B;EACD;;EAESG,WAAW,GAAG;IACtB,MAAM;MAAEC,IAAF;MAAQC,QAAR;MAAkBC,QAAlB;MAA4BC,MAA5B;MAAoCC;IAApC,IAAgD,KAAKR,KAA3D;IACA,MAAMS,UAAU,GAAGL,IAAI,GAAGM,iBAAA,CAAW,IAAAC,kBAAA,EAAQP,IAAR,CAAX,CAAH,GAA+BM,iBAAA,CAAWE,SAAjE;IACA,OAAO,KAAKC,IAAL,CAAUC,YAAV,CACLL,UADK,EAELJ,QAFK,EAGLC,QAHK,EAILC,MAAM,GAAGA,MAAM,CAACQ,GAAP,CAAYC,CAAD,IAAO,KAAKH,IAAL,CAAUI,KAAV,CAAgBD,CAAhB,CAAlB,CAAH,GAA2CE,SAJ5C,EAKLV,OALK,CAAP;EAOD;;EAEDW,IAAI,OAAoC;IAAA,IAAnC;MAAEC,MAAF;MAAUC;IAAV,CAAmC;IACtC,MAAM;MAAEd,MAAF;MAAUe;IAAV,IAAwB,KAAKtB,KAAnC;IACA,MAAMuB,gBAAgB,GAAGhB,MAAM,GAAGiB,gBAAA,CAAUC,OAAb,GAAuBD,gBAAA,CAAUE,OAAhE;IACA,MAAMC,KAAK,GAAGL,SAAS,GAAGE,gBAAA,CAAU,IAAAb,kBAAA,EAAQW,SAAR,CAAV,CAAH,GAAmCC,gBAA1D;;IACA,IAAI,KAAKK,OAAL,KAAiBV,SAArB,EAAgC;MAC9B,MAAM,IAAIW,KAAJ,CAAU,qCAAV,CAAN;IACD;;IACDT,MAAM,CAACU,YAAP,CAAoB,KAAKF,OAAzB,EAAkCD,KAAlC,EAAyCN,KAAzC;EACD;;AAzByE"}
1
+ {"version":3,"names":["_types","require","_types2","_datatypes","_DrawingNode","VerticesNode","JsiDrawingNode","constructor","ctx","props","NodeType","Vertices","deriveProps","mode","vertices","textures","colors","indices","vertexMode","VertexMode","enumKey","Triangles","Skia","MakeVertices","map","c","Color","undefined","draw","canvas","paint","blendMode","defaultBlendMode","BlendMode","DstOver","SrcOver","blend","derived","Error","drawVertices","exports"],"sources":["VerticesNode.ts"],"sourcesContent":["import type { SkVertices } from \"../../../skia/types\";\nimport { VertexMode, BlendMode } from \"../../../skia/types\";\nimport type { DrawingContext, VerticesProps } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { enumKey } from \"../datatypes\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class VerticesNode extends JsiDrawingNode<VerticesProps, SkVertices> {\n constructor(ctx: NodeContext, props: VerticesProps) {\n super(ctx, NodeType.Vertices, props);\n }\n\n protected deriveProps() {\n const { mode, vertices, textures, colors, indices } = this.props;\n const vertexMode = mode ? VertexMode[enumKey(mode)] : VertexMode.Triangles;\n return this.Skia.MakeVertices(\n vertexMode,\n vertices,\n textures,\n colors ? colors.map((c) => this.Skia.Color(c)) : undefined,\n indices\n );\n }\n\n draw({ canvas, paint }: DrawingContext) {\n const { colors, blendMode } = this.props;\n const defaultBlendMode = colors ? BlendMode.DstOver : BlendMode.SrcOver;\n const blend = blendMode ? BlendMode[enumKey(blendMode)] : defaultBlendMode;\n if (this.derived === undefined) {\n throw new Error(\"VerticesNode: vertices is undefined\");\n }\n canvas.drawVertices(this.derived, blend, paint);\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAGO,MAAMI,YAAY,SAASC,2BAAc,CAA4B;EAC1EC,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEE,gBAAQ,CAACC,QAAQ,EAAEF,KAAK,CAAC;EACtC;EAEUG,WAAWA,CAAA,EAAG;IACtB,MAAM;MAAEC,IAAI;MAAEC,QAAQ;MAAEC,QAAQ;MAAEC,MAAM;MAAEC;IAAQ,CAAC,GAAG,IAAI,CAACR,KAAK;IAChE,MAAMS,UAAU,GAAGL,IAAI,GAAGM,iBAAU,CAAC,IAAAC,kBAAO,EAACP,IAAI,CAAC,CAAC,GAAGM,iBAAU,CAACE,SAAS;IAC1E,OAAO,IAAI,CAACC,IAAI,CAACC,YAAY,CAC3BL,UAAU,EACVJ,QAAQ,EACRC,QAAQ,EACRC,MAAM,GAAGA,MAAM,CAACQ,GAAG,CAAEC,CAAC,IAAK,IAAI,CAACH,IAAI,CAACI,KAAK,CAACD,CAAC,CAAC,CAAC,GAAGE,SAAS,EAC1DV,OACF,CAAC;EACH;EAEAW,IAAIA,CAAC;IAAEC,MAAM;IAAEC;EAAsB,CAAC,EAAE;IACtC,MAAM;MAAEd,MAAM;MAAEe;IAAU,CAAC,GAAG,IAAI,CAACtB,KAAK;IACxC,MAAMuB,gBAAgB,GAAGhB,MAAM,GAAGiB,gBAAS,CAACC,OAAO,GAAGD,gBAAS,CAACE,OAAO;IACvE,MAAMC,KAAK,GAAGL,SAAS,GAAGE,gBAAS,CAAC,IAAAb,kBAAO,EAACW,SAAS,CAAC,CAAC,GAAGC,gBAAgB;IAC1E,IAAI,IAAI,CAACK,OAAO,KAAKV,SAAS,EAAE;MAC9B,MAAM,IAAIW,KAAK,CAAC,qCAAqC,CAAC;IACxD;IACAT,MAAM,CAACU,YAAY,CAAC,IAAI,CAACF,OAAO,EAAED,KAAK,EAAEN,KAAK,CAAC;EACjD;AACF;AAACU,OAAA,CAAAnC,YAAA,GAAAA,YAAA"}
@@ -3,9 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  var _AtlasNode = require("./AtlasNode");
8
-
9
7
  Object.keys(_AtlasNode).forEach(function (key) {
10
8
  if (key === "default" || key === "__esModule") return;
11
9
  if (key in exports && exports[key] === _AtlasNode[key]) return;
@@ -16,9 +14,7 @@ Object.keys(_AtlasNode).forEach(function (key) {
16
14
  }
17
15
  });
18
16
  });
19
-
20
17
  var _CircleNode = require("./CircleNode");
21
-
22
18
  Object.keys(_CircleNode).forEach(function (key) {
23
19
  if (key === "default" || key === "__esModule") return;
24
20
  if (key in exports && exports[key] === _CircleNode[key]) return;
@@ -29,9 +25,7 @@ Object.keys(_CircleNode).forEach(function (key) {
29
25
  }
30
26
  });
31
27
  });
32
-
33
28
  var _FillNode = require("./FillNode");
34
-
35
29
  Object.keys(_FillNode).forEach(function (key) {
36
30
  if (key === "default" || key === "__esModule") return;
37
31
  if (key in exports && exports[key] === _FillNode[key]) return;
@@ -42,9 +36,7 @@ Object.keys(_FillNode).forEach(function (key) {
42
36
  }
43
37
  });
44
38
  });
45
-
46
39
  var _ImageNode = require("./ImageNode");
47
-
48
40
  Object.keys(_ImageNode).forEach(function (key) {
49
41
  if (key === "default" || key === "__esModule") return;
50
42
  if (key in exports && exports[key] === _ImageNode[key]) return;
@@ -55,9 +47,7 @@ Object.keys(_ImageNode).forEach(function (key) {
55
47
  }
56
48
  });
57
49
  });
58
-
59
50
  var _PointsNode = require("./PointsNode");
60
-
61
51
  Object.keys(_PointsNode).forEach(function (key) {
62
52
  if (key === "default" || key === "__esModule") return;
63
53
  if (key in exports && exports[key] === _PointsNode[key]) return;
@@ -68,9 +58,7 @@ Object.keys(_PointsNode).forEach(function (key) {
68
58
  }
69
59
  });
70
60
  });
71
-
72
61
  var _PathNode = require("./PathNode");
73
-
74
62
  Object.keys(_PathNode).forEach(function (key) {
75
63
  if (key === "default" || key === "__esModule") return;
76
64
  if (key in exports && exports[key] === _PathNode[key]) return;
@@ -81,9 +69,7 @@ Object.keys(_PathNode).forEach(function (key) {
81
69
  }
82
70
  });
83
71
  });
84
-
85
72
  var _RectNode = require("./RectNode");
86
-
87
73
  Object.keys(_RectNode).forEach(function (key) {
88
74
  if (key === "default" || key === "__esModule") return;
89
75
  if (key in exports && exports[key] === _RectNode[key]) return;
@@ -94,9 +80,7 @@ Object.keys(_RectNode).forEach(function (key) {
94
80
  }
95
81
  });
96
82
  });
97
-
98
83
  var _RRectNode = require("./RRectNode");
99
-
100
84
  Object.keys(_RRectNode).forEach(function (key) {
101
85
  if (key === "default" || key === "__esModule") return;
102
86
  if (key in exports && exports[key] === _RRectNode[key]) return;
@@ -107,9 +91,7 @@ Object.keys(_RRectNode).forEach(function (key) {
107
91
  }
108
92
  });
109
93
  });
110
-
111
94
  var _OvalNode = require("./OvalNode");
112
-
113
95
  Object.keys(_OvalNode).forEach(function (key) {
114
96
  if (key === "default" || key === "__esModule") return;
115
97
  if (key in exports && exports[key] === _OvalNode[key]) return;
@@ -120,9 +102,7 @@ Object.keys(_OvalNode).forEach(function (key) {
120
102
  }
121
103
  });
122
104
  });
123
-
124
105
  var _LineNode = require("./LineNode");
125
-
126
106
  Object.keys(_LineNode).forEach(function (key) {
127
107
  if (key === "default" || key === "__esModule") return;
128
108
  if (key in exports && exports[key] === _LineNode[key]) return;
@@ -133,9 +113,7 @@ Object.keys(_LineNode).forEach(function (key) {
133
113
  }
134
114
  });
135
115
  });
136
-
137
116
  var _PatchNode = require("./PatchNode");
138
-
139
117
  Object.keys(_PatchNode).forEach(function (key) {
140
118
  if (key === "default" || key === "__esModule") return;
141
119
  if (key in exports && exports[key] === _PatchNode[key]) return;
@@ -146,9 +124,7 @@ Object.keys(_PatchNode).forEach(function (key) {
146
124
  }
147
125
  });
148
126
  });
149
-
150
127
  var _VerticesNode = require("./VerticesNode");
151
-
152
128
  Object.keys(_VerticesNode).forEach(function (key) {
153
129
  if (key === "default" || key === "__esModule") return;
154
130
  if (key in exports && exports[key] === _VerticesNode[key]) return;
@@ -159,9 +135,7 @@ Object.keys(_VerticesNode).forEach(function (key) {
159
135
  }
160
136
  });
161
137
  });
162
-
163
138
  var _Text = require("./Text");
164
-
165
139
  Object.keys(_Text).forEach(function (key) {
166
140
  if (key === "default" || key === "__esModule") return;
167
141
  if (key in exports && exports[key] === _Text[key]) return;
@@ -172,9 +146,7 @@ Object.keys(_Text).forEach(function (key) {
172
146
  }
173
147
  });
174
148
  });
175
-
176
149
  var _PictureNode = require("./PictureNode");
177
-
178
150
  Object.keys(_PictureNode).forEach(function (key) {
179
151
  if (key === "default" || key === "__esModule") return;
180
152
  if (key in exports && exports[key] === _PictureNode[key]) return;
@@ -185,9 +157,7 @@ Object.keys(_PictureNode).forEach(function (key) {
185
157
  }
186
158
  });
187
159
  });
188
-
189
160
  var _DiffRectNode = require("./DiffRectNode");
190
-
191
161
  Object.keys(_DiffRectNode).forEach(function (key) {
192
162
  if (key === "default" || key === "__esModule") return;
193
163
  if (key in exports && exports[key] === _DiffRectNode[key]) return;
@@ -198,9 +168,7 @@ Object.keys(_DiffRectNode).forEach(function (key) {
198
168
  }
199
169
  });
200
170
  });
201
-
202
171
  var _ImageSVG = require("./ImageSVG");
203
-
204
172
  Object.keys(_ImageSVG).forEach(function (key) {
205
173
  if (key === "default" || key === "__esModule") return;
206
174
  if (key in exports && exports[key] === _ImageSVG[key]) return;
@@ -211,9 +179,7 @@ Object.keys(_ImageSVG).forEach(function (key) {
211
179
  }
212
180
  });
213
181
  });
214
-
215
182
  var _BackdropFilterNode = require("./BackdropFilterNode");
216
-
217
183
  Object.keys(_BackdropFilterNode).forEach(function (key) {
218
184
  if (key === "default" || key === "__esModule") return;
219
185
  if (key in exports && exports[key] === _BackdropFilterNode[key]) return;
@@ -224,9 +190,7 @@ Object.keys(_BackdropFilterNode).forEach(function (key) {
224
190
  }
225
191
  });
226
192
  });
227
-
228
193
  var _Box = require("./Box");
229
-
230
194
  Object.keys(_Box).forEach(function (key) {
231
195
  if (key === "default" || key === "__esModule") return;
232
196
  if (key in exports && exports[key] === _Box[key]) return;
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./AtlasNode\";\nexport * from \"./CircleNode\";\nexport * from \"./FillNode\";\nexport * from \"./ImageNode\";\nexport * from \"./PointsNode\";\nexport * from \"./PathNode\";\nexport * from \"./RectNode\";\nexport * from \"./RRectNode\";\nexport * from \"./OvalNode\";\nexport * from \"./LineNode\";\nexport * from \"./PatchNode\";\nexport * from \"./VerticesNode\";\nexport * from \"./Text\";\nexport * from \"./PictureNode\";\nexport * from \"./DiffRectNode\";\nexport * from \"./ImageSVG\";\nexport * from \"./BackdropFilterNode\";\nexport * from \"./Box\";\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;;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;;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;;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":["_AtlasNode","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_CircleNode","_FillNode","_ImageNode","_PointsNode","_PathNode","_RectNode","_RRectNode","_OvalNode","_LineNode","_PatchNode","_VerticesNode","_Text","_PictureNode","_DiffRectNode","_ImageSVG","_BackdropFilterNode","_Box"],"sources":["index.ts"],"sourcesContent":["export * from \"./AtlasNode\";\nexport * from \"./CircleNode\";\nexport * from \"./FillNode\";\nexport * from \"./ImageNode\";\nexport * from \"./PointsNode\";\nexport * from \"./PathNode\";\nexport * from \"./RectNode\";\nexport * from \"./RRectNode\";\nexport * from \"./OvalNode\";\nexport * from \"./LineNode\";\nexport * from \"./PatchNode\";\nexport * from \"./VerticesNode\";\nexport * from \"./Text\";\nexport * from \"./PictureNode\";\nexport * from \"./DiffRectNode\";\nexport * from \"./ImageSVG\";\nexport * from \"./BackdropFilterNode\";\nexport * from \"./Box\";\n"],"mappings":";;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,WAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,WAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,WAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,WAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,SAAA,GAAAV,OAAA;AAAAC,MAAA,CAAA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A,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAe,SAAA,CAAAnB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAoB,mBAAA,GAAAxB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAsB,mBAAA,EAAArB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAoB,mBAAA,CAAApB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAgB,mBAAA,CAAApB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAqB,IAAA,GAAAzB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAuB,IAAA,EAAAtB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAqB,IAAA,CAAArB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAiB,IAAA,CAAArB,GAAA;IAAA;EAAA;AAAA"}
@@ -3,9 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  var _types = require("../types");
8
-
9
7
  Object.keys(_types).forEach(function (key) {
10
8
  if (key === "default" || key === "__esModule") return;
11
9
  if (key in exports && exports[key] === _types[key]) return;
@@ -16,9 +14,7 @@ Object.keys(_types).forEach(function (key) {
16
14
  }
17
15
  });
18
16
  });
19
-
20
17
  var _JsiSkDOM = require("./JsiSkDOM");
21
-
22
18
  Object.keys(_JsiSkDOM).forEach(function (key) {
23
19
  if (key === "default" || key === "__esModule") return;
24
20
  if (key in exports && exports[key] === _JsiSkDOM[key]) return;
@@ -29,9 +25,7 @@ Object.keys(_JsiSkDOM).forEach(function (key) {
29
25
  }
30
26
  });
31
27
  });
32
-
33
28
  var _datatypes = require("./datatypes");
34
-
35
29
  Object.keys(_datatypes).forEach(function (key) {
36
30
  if (key === "default" || key === "__esModule") return;
37
31
  if (key in exports && exports[key] === _datatypes[key]) return;
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"../types\";\nexport * from \"./JsiSkDOM\";\nexport * from \"./datatypes\";\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"}
1
+ {"version":3,"names":["_types","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_JsiSkDOM","_datatypes"],"sources":["index.ts"],"sourcesContent":["export * from \"../types\";\nexport * from \"./JsiSkDOM\";\nexport * from \"./datatypes\";\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,SAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,SAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,SAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,SAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,UAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,UAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,UAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,UAAA,CAAAN,GAAA;IAAA;EAAA;AAAA"}
@@ -4,48 +4,34 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.BlendNode = void 0;
7
-
8
7
  var _types = require("../../../skia/types");
9
-
10
8
  var _NodeType = require("../../types/NodeType");
11
-
12
9
  var _Node = require("../Node");
13
-
14
10
  var _datatypes = require("../datatypes");
15
-
16
11
  var _DeclarationContext = require("../../types/DeclarationContext");
17
-
18
12
  class BlendNode extends _Node.JsiDeclarationNode {
19
13
  constructor(ctx, props) {
20
14
  super(ctx, _NodeType.DeclarationType.ImageFilter, _NodeType.NodeType.Blend, props);
21
15
  }
22
-
23
16
  decorate(ctx) {
24
17
  this.decorateChildren(ctx);
25
18
  const {
26
19
  Skia
27
20
  } = this;
28
-
29
- const blend = _types.BlendMode[(0, _datatypes.enumKey)(this.props.mode)]; // Blend ImageFilters
30
-
31
-
21
+ const blend = _types.BlendMode[(0, _datatypes.enumKey)(this.props.mode)];
22
+ // Blend ImageFilters
32
23
  const imageFilters = ctx.imageFilters.popAll();
33
-
34
24
  if (imageFilters.length > 0) {
35
25
  const composer = Skia.ImageFilter.MakeBlend.bind(Skia.ImageFilter, blend);
36
26
  ctx.imageFilters.push((0, _DeclarationContext.composeDeclarations)(imageFilters, composer));
37
- } // Blend Shaders
38
-
39
-
27
+ }
28
+ // Blend Shaders
40
29
  const shaders = ctx.shaders.popAll();
41
-
42
30
  if (shaders.length > 0) {
43
31
  const composer = Skia.Shader.MakeBlend.bind(Skia.Shader, blend);
44
32
  ctx.shaders.push((0, _DeclarationContext.composeDeclarations)(shaders, composer));
45
33
  }
46
34
  }
47
-
48
35
  }
49
-
50
36
  exports.BlendNode = BlendNode;
51
37
  //# sourceMappingURL=BlendNode.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BlendNode","JsiDeclarationNode","constructor","ctx","props","DeclarationType","ImageFilter","NodeType","Blend","decorate","decorateChildren","Skia","blend","BlendMode","enumKey","mode","imageFilters","popAll","length","composer","MakeBlend","bind","push","composeDeclarations","shaders","Shader"],"sources":["BlendNode.ts"],"sourcesContent":["import type { BlendProps } from \"../../types/ImageFilters\";\nimport { BlendMode } from \"../../../skia/types\";\nimport { DeclarationType, NodeType } from \"../../types/NodeType\";\nimport type { NodeContext } from \"../Node\";\nimport { JsiDeclarationNode } from \"../Node\";\nimport { enumKey } from \"../datatypes\";\nimport type { DeclarationContext } from \"../../types/DeclarationContext\";\nimport { composeDeclarations } from \"../../types/DeclarationContext\";\n\nexport class BlendNode extends JsiDeclarationNode<BlendProps> {\n constructor(ctx: NodeContext, props: BlendProps) {\n super(ctx, DeclarationType.ImageFilter, NodeType.Blend, props);\n }\n\n decorate(ctx: DeclarationContext) {\n this.decorateChildren(ctx);\n const { Skia } = this;\n const blend = BlendMode[enumKey(this.props.mode)];\n // Blend ImageFilters\n const imageFilters = ctx.imageFilters.popAll();\n if (imageFilters.length > 0) {\n const composer = Skia.ImageFilter.MakeBlend.bind(Skia.ImageFilter, blend);\n ctx.imageFilters.push(composeDeclarations(imageFilters, composer));\n }\n // Blend Shaders\n const shaders = ctx.shaders.popAll();\n if (shaders.length > 0) {\n const composer = Skia.Shader.MakeBlend.bind(Skia.Shader, blend);\n ctx.shaders.push(composeDeclarations(shaders, composer));\n }\n }\n}\n"],"mappings":";;;;;;;AACA;;AACA;;AAEA;;AACA;;AAEA;;AAEO,MAAMA,SAAN,SAAwBC,wBAAxB,CAAuD;EAC5DC,WAAW,CAACC,GAAD,EAAmBC,KAAnB,EAAsC;IAC/C,MAAMD,GAAN,EAAWE,yBAAA,CAAgBC,WAA3B,EAAwCC,kBAAA,CAASC,KAAjD,EAAwDJ,KAAxD;EACD;;EAEDK,QAAQ,CAACN,GAAD,EAA0B;IAChC,KAAKO,gBAAL,CAAsBP,GAAtB;IACA,MAAM;MAAEQ;IAAF,IAAW,IAAjB;;IACA,MAAMC,KAAK,GAAGC,gBAAA,CAAU,IAAAC,kBAAA,EAAQ,KAAKV,KAAL,CAAWW,IAAnB,CAAV,CAAd,CAHgC,CAIhC;;;IACA,MAAMC,YAAY,GAAGb,GAAG,CAACa,YAAJ,CAAiBC,MAAjB,EAArB;;IACA,IAAID,YAAY,CAACE,MAAb,GAAsB,CAA1B,EAA6B;MAC3B,MAAMC,QAAQ,GAAGR,IAAI,CAACL,WAAL,CAAiBc,SAAjB,CAA2BC,IAA3B,CAAgCV,IAAI,CAACL,WAArC,EAAkDM,KAAlD,CAAjB;MACAT,GAAG,CAACa,YAAJ,CAAiBM,IAAjB,CAAsB,IAAAC,uCAAA,EAAoBP,YAApB,EAAkCG,QAAlC,CAAtB;IACD,CAT+B,CAUhC;;;IACA,MAAMK,OAAO,GAAGrB,GAAG,CAACqB,OAAJ,CAAYP,MAAZ,EAAhB;;IACA,IAAIO,OAAO,CAACN,MAAR,GAAiB,CAArB,EAAwB;MACtB,MAAMC,QAAQ,GAAGR,IAAI,CAACc,MAAL,CAAYL,SAAZ,CAAsBC,IAAtB,CAA2BV,IAAI,CAACc,MAAhC,EAAwCb,KAAxC,CAAjB;MACAT,GAAG,CAACqB,OAAJ,CAAYF,IAAZ,CAAiB,IAAAC,uCAAA,EAAoBC,OAApB,EAA6BL,QAA7B,CAAjB;IACD;EACF;;AArB2D"}
1
+ {"version":3,"names":["_types","require","_NodeType","_Node","_datatypes","_DeclarationContext","BlendNode","JsiDeclarationNode","constructor","ctx","props","DeclarationType","ImageFilter","NodeType","Blend","decorate","decorateChildren","Skia","blend","BlendMode","enumKey","mode","imageFilters","popAll","length","composer","MakeBlend","bind","push","composeDeclarations","shaders","Shader","exports"],"sources":["BlendNode.ts"],"sourcesContent":["import type { BlendProps } from \"../../types/ImageFilters\";\nimport { BlendMode } from \"../../../skia/types\";\nimport { DeclarationType, NodeType } from \"../../types/NodeType\";\nimport type { NodeContext } from \"../Node\";\nimport { JsiDeclarationNode } from \"../Node\";\nimport { enumKey } from \"../datatypes\";\nimport type { DeclarationContext } from \"../../types/DeclarationContext\";\nimport { composeDeclarations } from \"../../types/DeclarationContext\";\n\nexport class BlendNode extends JsiDeclarationNode<BlendProps> {\n constructor(ctx: NodeContext, props: BlendProps) {\n super(ctx, DeclarationType.ImageFilter, NodeType.Blend, props);\n }\n\n decorate(ctx: DeclarationContext) {\n this.decorateChildren(ctx);\n const { Skia } = this;\n const blend = BlendMode[enumKey(this.props.mode)];\n // Blend ImageFilters\n const imageFilters = ctx.imageFilters.popAll();\n if (imageFilters.length > 0) {\n const composer = Skia.ImageFilter.MakeBlend.bind(Skia.ImageFilter, blend);\n ctx.imageFilters.push(composeDeclarations(imageFilters, composer));\n }\n // Blend Shaders\n const shaders = ctx.shaders.popAll();\n if (shaders.length > 0) {\n const composer = Skia.Shader.MakeBlend.bind(Skia.Shader, blend);\n ctx.shaders.push(composeDeclarations(shaders, composer));\n }\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,mBAAA,GAAAJ,OAAA;A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ToLinearGammaColorFilterNode = exports.MatrixColorFilterNode = exports.LumaColorFilterNode = exports.LinearToSRGBGammaColorFilterNode = exports.LerpColorFilterNode = exports.ColorFilterDeclaration = exports.BlendColorFilterNode = 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 _Enum = require("../datatypes/Enum");
15
-
16
11
  class ColorFilterDeclaration extends _Node.JsiDeclarationNode {
17
12
  constructor(ctx, type, props) {
18
13
  super(ctx, _types2.DeclarationType.ColorFilter, type, props);
19
14
  }
20
-
21
15
  composeAndPush(ctx, cf1) {
22
16
  ctx.save();
23
17
  this.decorateChildren(ctx);
@@ -26,16 +20,12 @@ class ColorFilterDeclaration extends _Node.JsiDeclarationNode {
26
20
  const cf = cf2 ? this.Skia.ColorFilter.MakeCompose(cf1, cf2) : cf1;
27
21
  ctx.colorFilters.push(cf);
28
22
  }
29
-
30
23
  }
31
-
32
24
  exports.ColorFilterDeclaration = ColorFilterDeclaration;
33
-
34
25
  class MatrixColorFilterNode extends ColorFilterDeclaration {
35
26
  constructor(ctx, props) {
36
27
  super(ctx, _types2.NodeType.MatrixColorFilter, props);
37
28
  }
38
-
39
29
  decorate(ctx) {
40
30
  const {
41
31
  matrix
@@ -43,16 +33,12 @@ class MatrixColorFilterNode extends ColorFilterDeclaration {
43
33
  const cf = this.Skia.ColorFilter.MakeMatrix(matrix);
44
34
  this.composeAndPush(ctx, cf);
45
35
  }
46
-
47
36
  }
48
-
49
37
  exports.MatrixColorFilterNode = MatrixColorFilterNode;
50
-
51
38
  class BlendColorFilterNode extends ColorFilterDeclaration {
52
39
  constructor(ctx, props) {
53
40
  super(ctx, _types2.NodeType.BlendColorFilter, props);
54
41
  }
55
-
56
42
  decorate(ctx) {
57
43
  const {
58
44
  mode
@@ -61,58 +47,42 @@ class BlendColorFilterNode extends ColorFilterDeclaration {
61
47
  const cf = this.Skia.ColorFilter.MakeBlend(color, _types.BlendMode[(0, _Enum.enumKey)(mode)]);
62
48
  this.composeAndPush(ctx, cf);
63
49
  }
64
-
65
50
  }
66
-
67
51
  exports.BlendColorFilterNode = BlendColorFilterNode;
68
-
69
52
  class LinearToSRGBGammaColorFilterNode extends ColorFilterDeclaration {
70
53
  constructor(ctx) {
71
54
  super(ctx, _types2.NodeType.LinearToSRGBGammaColorFilter, null);
72
55
  }
73
-
74
56
  decorate(ctx) {
75
57
  const cf = this.Skia.ColorFilter.MakeLinearToSRGBGamma();
76
58
  this.composeAndPush(ctx, cf);
77
59
  }
78
-
79
60
  }
80
-
81
61
  exports.LinearToSRGBGammaColorFilterNode = LinearToSRGBGammaColorFilterNode;
82
-
83
62
  class SRGBToLinearGammaColorFilterNode extends ColorFilterDeclaration {
84
63
  constructor(ctx) {
85
64
  super(ctx, _types2.NodeType.SRGBToLinearGammaColorFilter, null);
86
65
  }
87
-
88
66
  decorate(ctx) {
89
67
  const cf = this.Skia.ColorFilter.MakeSRGBToLinearGamma();
90
68
  this.composeAndPush(ctx, cf);
91
69
  }
92
-
93
70
  }
94
-
95
71
  exports.SRGBToLinearGammaColorFilterNode = SRGBToLinearGammaColorFilterNode;
96
-
97
72
  class LumaColorFilterNode extends ColorFilterDeclaration {
98
73
  constructor(ctx) {
99
74
  super(ctx, _types2.NodeType.LumaColorFilter, null);
100
75
  }
101
-
102
76
  decorate(ctx) {
103
77
  const cf = this.Skia.ColorFilter.MakeLumaColorFilter();
104
78
  this.composeAndPush(ctx, cf);
105
79
  }
106
-
107
80
  }
108
-
109
81
  exports.LumaColorFilterNode = LumaColorFilterNode;
110
-
111
82
  class LerpColorFilterNode extends ColorFilterDeclaration {
112
83
  constructor(ctx, props) {
113
84
  super(ctx, _types2.NodeType.LerpColorFilter, props);
114
85
  }
115
-
116
86
  decorate(ctx) {
117
87
  ctx.save();
118
88
  this.decorateChildren(ctx);
@@ -122,15 +92,11 @@ class LerpColorFilterNode extends ColorFilterDeclaration {
122
92
  const second = ctx.colorFilters.pop();
123
93
  const first = ctx.colorFilters.pop();
124
94
  ctx.restore();
125
-
126
95
  if (!first || !second) {
127
96
  throw new Error("LerpColorFilterNode: missing two color filters as children");
128
97
  }
129
-
130
98
  ctx.colorFilters.push(this.Skia.ColorFilter.MakeLerp(t, first, second));
131
99
  }
132
-
133
100
  }
134
-
135
101
  exports.LerpColorFilterNode = LerpColorFilterNode;
136
102
  //# sourceMappingURL=ColorFilters.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ColorFilterDeclaration","JsiDeclarationNode","constructor","ctx","type","props","DeclarationType","ColorFilter","composeAndPush","cf1","save","decorateChildren","cf2","colorFilters","popAllAsOne","restore","cf","Skia","MakeCompose","push","MatrixColorFilterNode","NodeType","MatrixColorFilter","decorate","matrix","MakeMatrix","BlendColorFilterNode","BlendColorFilter","mode","color","Color","MakeBlend","BlendMode","enumKey","LinearToSRGBGammaColorFilterNode","LinearToSRGBGammaColorFilter","MakeLinearToSRGBGamma","SRGBToLinearGammaColorFilterNode","SRGBToLinearGammaColorFilter","MakeSRGBToLinearGamma","LumaColorFilterNode","LumaColorFilter","MakeLumaColorFilter","LerpColorFilterNode","LerpColorFilter","t","second","pop","first","Error","MakeLerp"],"sources":["ColorFilters.ts"],"sourcesContent":["import type { SkColorFilter } from \"../../../skia/types\";\nimport { BlendMode } from \"../../../skia/types\";\nimport type { NodeContext } from \"../Node\";\nimport { JsiDeclarationNode } from \"../Node\";\nimport type {\n BlendColorFilterProps,\n MatrixColorFilterProps,\n} from \"../../types\";\nimport { DeclarationType, NodeType } from \"../../types\";\nimport { enumKey } from \"../datatypes/Enum\";\nimport type { LerpColorFilterProps } from \"../../types/ColorFilters\";\nimport type { DeclarationContext } from \"../../types/DeclarationContext\";\n\nexport abstract class ColorFilterDeclaration<P> extends JsiDeclarationNode<P> {\n constructor(ctx: NodeContext, type: NodeType, props: P) {\n super(ctx, DeclarationType.ColorFilter, type, props);\n }\n\n protected composeAndPush(ctx: DeclarationContext, cf1: SkColorFilter) {\n ctx.save();\n this.decorateChildren(ctx);\n const cf2 = ctx.colorFilters.popAllAsOne();\n ctx.restore();\n const cf = cf2 ? this.Skia.ColorFilter.MakeCompose(cf1, cf2) : cf1;\n ctx.colorFilters.push(cf);\n }\n}\n\nexport class MatrixColorFilterNode extends ColorFilterDeclaration<MatrixColorFilterProps> {\n constructor(ctx: NodeContext, props: MatrixColorFilterProps) {\n super(ctx, NodeType.MatrixColorFilter, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { matrix } = this.props;\n const cf = this.Skia.ColorFilter.MakeMatrix(matrix);\n this.composeAndPush(ctx, cf);\n }\n}\n\nexport class BlendColorFilterNode extends ColorFilterDeclaration<BlendColorFilterProps> {\n constructor(ctx: NodeContext, props: BlendColorFilterProps) {\n super(ctx, NodeType.BlendColorFilter, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { mode } = this.props;\n const color = this.Skia.Color(this.props.color);\n const cf = this.Skia.ColorFilter.MakeBlend(color, BlendMode[enumKey(mode)]);\n this.composeAndPush(ctx, cf);\n }\n}\n\nexport class LinearToSRGBGammaColorFilterNode extends ColorFilterDeclaration<null> {\n constructor(ctx: NodeContext) {\n super(ctx, NodeType.LinearToSRGBGammaColorFilter, null);\n }\n\n decorate(ctx: DeclarationContext) {\n const cf = this.Skia.ColorFilter.MakeLinearToSRGBGamma();\n this.composeAndPush(ctx, cf);\n }\n}\n\nexport class SRGBToLinearGammaColorFilterNode extends ColorFilterDeclaration<null> {\n constructor(ctx: NodeContext) {\n super(ctx, NodeType.SRGBToLinearGammaColorFilter, null);\n }\n\n decorate(ctx: DeclarationContext) {\n const cf = this.Skia.ColorFilter.MakeSRGBToLinearGamma();\n this.composeAndPush(ctx, cf);\n }\n}\n\nexport class LumaColorFilterNode extends ColorFilterDeclaration<null> {\n constructor(ctx: NodeContext) {\n super(ctx, NodeType.LumaColorFilter, null);\n }\n\n decorate(ctx: DeclarationContext) {\n const cf = this.Skia.ColorFilter.MakeLumaColorFilter();\n this.composeAndPush(ctx, cf);\n }\n}\n\nexport class LerpColorFilterNode extends ColorFilterDeclaration<LerpColorFilterProps> {\n constructor(ctx: NodeContext, props: LerpColorFilterProps) {\n super(ctx, NodeType.LerpColorFilter, props);\n }\n\n decorate(ctx: DeclarationContext) {\n ctx.save();\n this.decorateChildren(ctx);\n const { t } = this.props;\n const second = ctx.colorFilters.pop();\n const first = ctx.colorFilters.pop();\n ctx.restore();\n if (!first || !second) {\n throw new Error(\n \"LerpColorFilterNode: missing two color filters as children\"\n );\n }\n ctx.colorFilters.push(this.Skia.ColorFilter.MakeLerp(t, first, second));\n }\n}\n"],"mappings":";;;;;;;AACA;;AAEA;;AAKA;;AACA;;AAIO,MAAeA,sBAAf,SAAiDC,wBAAjD,CAAuE;EAC5EC,WAAW,CAACC,GAAD,EAAmBC,IAAnB,EAAmCC,KAAnC,EAA6C;IACtD,MAAMF,GAAN,EAAWG,uBAAA,CAAgBC,WAA3B,EAAwCH,IAAxC,EAA8CC,KAA9C;EACD;;EAESG,cAAc,CAACL,GAAD,EAA0BM,GAA1B,EAA8C;IACpEN,GAAG,CAACO,IAAJ;IACA,KAAKC,gBAAL,CAAsBR,GAAtB;IACA,MAAMS,GAAG,GAAGT,GAAG,CAACU,YAAJ,CAAiBC,WAAjB,EAAZ;IACAX,GAAG,CAACY,OAAJ;IACA,MAAMC,EAAE,GAAGJ,GAAG,GAAG,KAAKK,IAAL,CAAUV,WAAV,CAAsBW,WAAtB,CAAkCT,GAAlC,EAAuCG,GAAvC,CAAH,GAAiDH,GAA/D;IACAN,GAAG,CAACU,YAAJ,CAAiBM,IAAjB,CAAsBH,EAAtB;EACD;;AAZ2E;;;;AAevE,MAAMI,qBAAN,SAAoCpB,sBAApC,CAAmF;EACxFE,WAAW,CAACC,GAAD,EAAmBE,KAAnB,EAAkD;IAC3D,MAAMF,GAAN,EAAWkB,gBAAA,CAASC,iBAApB,EAAuCjB,KAAvC;EACD;;EAEDkB,QAAQ,CAACpB,GAAD,EAA0B;IAChC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B;EACD;;AAlBmF"}
1
+ {"version":3,"names":["_types","require","_Node","_types2","_Enum","ColorFilterDeclaration","JsiDeclarationNode","constructor","ctx","type","props","DeclarationType","ColorFilter","composeAndPush","cf1","save","decorateChildren","cf2","colorFilters","popAllAsOne","restore","cf","Skia","MakeCompose","push","exports","MatrixColorFilterNode","NodeType","MatrixColorFilter","decorate","matrix","MakeMatrix","BlendColorFilterNode","BlendColorFilter","mode","color","Color","MakeBlend","BlendMode","enumKey","LinearToSRGBGammaColorFilterNode","LinearToSRGBGammaColorFilter","MakeLinearToSRGBGamma","SRGBToLinearGammaColorFilterNode","SRGBToLinearGammaColorFilter","MakeSRGBToLinearGamma","LumaColorFilterNode","LumaColorFilter","MakeLumaColorFilter","LerpColorFilterNode","LerpColorFilter","t","second","pop","first","Error","MakeLerp"],"sources":["ColorFilters.ts"],"sourcesContent":["import type { SkColorFilter } from \"../../../skia/types\";\nimport { BlendMode } from \"../../../skia/types\";\nimport type { NodeContext } from \"../Node\";\nimport { JsiDeclarationNode } from \"../Node\";\nimport type {\n BlendColorFilterProps,\n MatrixColorFilterProps,\n} from \"../../types\";\nimport { DeclarationType, NodeType } from \"../../types\";\nimport { enumKey } from \"../datatypes/Enum\";\nimport type { LerpColorFilterProps } from \"../../types/ColorFilters\";\nimport type { DeclarationContext } from \"../../types/DeclarationContext\";\n\nexport abstract class ColorFilterDeclaration<P> extends JsiDeclarationNode<P> {\n constructor(ctx: NodeContext, type: NodeType, props: P) {\n super(ctx, DeclarationType.ColorFilter, type, props);\n }\n\n protected composeAndPush(ctx: DeclarationContext, cf1: SkColorFilter) {\n ctx.save();\n this.decorateChildren(ctx);\n const cf2 = ctx.colorFilters.popAllAsOne();\n ctx.restore();\n const cf = cf2 ? this.Skia.ColorFilter.MakeCompose(cf1, cf2) : cf1;\n ctx.colorFilters.push(cf);\n }\n}\n\nexport class MatrixColorFilterNode extends ColorFilterDeclaration<MatrixColorFilterProps> {\n constructor(ctx: NodeContext, props: MatrixColorFilterProps) {\n super(ctx, NodeType.MatrixColorFilter, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { matrix } = this.props;\n const cf = this.Skia.ColorFilter.MakeMatrix(matrix);\n this.composeAndPush(ctx, cf);\n }\n}\n\nexport class BlendColorFilterNode extends ColorFilterDeclaration<BlendColorFilterProps> {\n constructor(ctx: NodeContext, props: BlendColorFilterProps) {\n super(ctx, NodeType.BlendColorFilter, props);\n }\n\n decorate(ctx: DeclarationContext) {\n const { mode } = this.props;\n const color = this.Skia.Color(this.props.color);\n const cf = this.Skia.ColorFilter.MakeBlend(color, BlendMode[enumKey(mode)]);\n this.composeAndPush(ctx, cf);\n }\n}\n\nexport class LinearToSRGBGammaColorFilterNode extends ColorFilterDeclaration<null> {\n constructor(ctx: NodeContext) {\n super(ctx, NodeType.LinearToSRGBGammaColorFilter, null);\n }\n\n decorate(ctx: DeclarationContext) {\n const cf = this.Skia.ColorFilter.MakeLinearToSRGBGamma();\n this.composeAndPush(ctx, cf);\n }\n}\n\nexport class SRGBToLinearGammaColorFilterNode extends ColorFilterDeclaration<null> {\n constructor(ctx: NodeContext) {\n super(ctx, NodeType.SRGBToLinearGammaColorFilter, null);\n }\n\n decorate(ctx: DeclarationContext) {\n const cf = this.Skia.ColorFilter.MakeSRGBToLinearGamma();\n this.composeAndPush(ctx, cf);\n }\n}\n\nexport class LumaColorFilterNode extends ColorFilterDeclaration<null> {\n constructor(ctx: NodeContext) {\n super(ctx, NodeType.LumaColorFilter, null);\n }\n\n decorate(ctx: DeclarationContext) {\n const cf = this.Skia.ColorFilter.MakeLumaColorFilter();\n this.composeAndPush(ctx, cf);\n }\n}\n\nexport class LerpColorFilterNode extends ColorFilterDeclaration<LerpColorFilterProps> {\n constructor(ctx: NodeContext, props: LerpColorFilterProps) {\n super(ctx, NodeType.LerpColorFilter, props);\n }\n\n decorate(ctx: DeclarationContext) {\n ctx.save();\n this.decorateChildren(ctx);\n const { t } = this.props;\n const second = ctx.colorFilters.pop();\n const first = ctx.colorFilters.pop();\n ctx.restore();\n if (!first || !second) {\n throw new Error(\n \"LerpColorFilterNode: missing two color filters as children\"\n );\n }\n ctx.colorFilters.push(this.Skia.ColorFilter.MakeLerp(t, first, second));\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAKA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAIO,MAAeI,sBAAsB,SAAYC,wBAAkB,CAAI;EAC5EC,WAAWA,CAACC,GAAgB,EAAEC,IAAc,EAAEC,KAAQ,EAAE;IACtD,KAAK,CAACF,GAAG,EAAEG,uBAAe,CAACC,WAAW,EAAEH,IAAI,EAAEC,KAAK,CAAC;EACtD;EAEUG,cAAcA,CAACL,GAAuB,EAAEM,GAAkB,EAAE;IACpEN,GAAG,CAACO,IAAI,CAAC,CAAC;IACV,IAAI,CAACC,gBAAgB,CAACR,GAAG,CAAC;IAC1B,MAAMS,GAAG,GAAGT,GAAG,CAACU,YAAY,CAACC,WAAW,CAAC,CAAC;IAC1CX,GAAG,CAACY,OAAO,CAAC,CAAC;IACb,MAAMC,EAAE,GAAGJ,GAAG,GAAG,IAAI,CAACK,IAAI,CAACV,WAAW,CAACW,WAAW,CAACT,GAAG,EAAEG,GAAG,CAAC,GAAGH,GAAG;IAClEN,GAAG,CAACU,YAAY,CAACM,IAAI,CAACH,EAAE,CAAC;EAC3B;AACF;AAACI,OAAA,CAAApB,sBAAA,GAAAA,sBAAA;AAEM,MAAMqB,qBAAqB,SAASrB,sBAAsB,CAAyB;EACxFE,WAAWA,CAACC,GAAgB,EAAEE,KAA6B,EAAE;IAC3D,KAAK,CAACF,GAAG,EAAEmB,gBAAQ,CAACC,iBAAiB,EAAElB,KAAK,CAAC;EAC/C;EAEAmB,QAAQA,CAACrB,GAAuB,EAAE;IAChC,MAAM;MAAEsB;IAAO,CAAC,GAAG,IAAI,CAACpB,KAAK;IAC7B,MAAMW,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