@shopify/react-native-skia 0.1.237 → 0.1.238

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1037) hide show
  1. package/cpp/rnskia/dom/base/JsiDomNode.h +16 -0
  2. package/lib/commonjs/Platform/Platform.js +1 -5
  3. package/lib/commonjs/Platform/Platform.js.map +1 -1
  4. package/lib/commonjs/Platform/Platform.web.js +11 -33
  5. package/lib/commonjs/Platform/Platform.web.js.map +1 -1
  6. package/lib/commonjs/Platform/index.js +0 -2
  7. package/lib/commonjs/Platform/index.js.map +1 -1
  8. package/lib/commonjs/animation/functions/index.js +0 -8
  9. package/lib/commonjs/animation/functions/index.js.map +1 -1
  10. package/lib/commonjs/animation/functions/interpolate.js +12 -31
  11. package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
  12. package/lib/commonjs/animation/functions/interpolateColors.js +2 -13
  13. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  14. package/lib/commonjs/animation/functions/interpolatePaths.js +1 -16
  15. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
  16. package/lib/commonjs/animation/functions/interpolateVector.js +0 -5
  17. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
  18. package/lib/commonjs/animation/index.js +0 -2
  19. package/lib/commonjs/animation/index.js.map +1 -1
  20. package/lib/commonjs/dom/nodes/DrawingNode.js +7 -22
  21. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
  22. package/lib/commonjs/dom/nodes/GroupNode.js +0 -6
  23. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
  24. package/lib/commonjs/dom/nodes/JsiSkDOM.js +25 -87
  25. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  26. package/lib/commonjs/dom/nodes/LayerNode.js +0 -11
  27. package/lib/commonjs/dom/nodes/LayerNode.js.map +1 -1
  28. package/lib/commonjs/dom/nodes/Node.js +4 -36
  29. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  30. package/lib/commonjs/dom/nodes/PaintNode.js +1 -29
  31. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
  32. package/lib/commonjs/dom/nodes/RenderNode.js +3 -35
  33. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
  34. package/lib/commonjs/dom/nodes/datatypes/Circle.js +6 -8
  35. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
  36. package/lib/commonjs/dom/nodes/datatypes/Enum.js +0 -2
  37. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
  38. package/lib/commonjs/dom/nodes/datatypes/Fitting.js +15 -46
  39. package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
  40. package/lib/commonjs/dom/nodes/datatypes/Gradient.js +9 -20
  41. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
  42. package/lib/commonjs/dom/nodes/datatypes/Path.js +2 -8
  43. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
  44. package/lib/commonjs/dom/nodes/datatypes/Radius.js +0 -3
  45. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
  46. package/lib/commonjs/dom/nodes/datatypes/Rect.js +10 -15
  47. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
  48. package/lib/commonjs/dom/nodes/datatypes/Transform.js +0 -6
  49. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
  50. package/lib/commonjs/dom/nodes/datatypes/index.js +0 -16
  51. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
  52. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js +4 -15
  53. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js.map +1 -1
  54. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js +4 -18
  55. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  56. package/lib/commonjs/dom/nodes/drawings/Box.js +8 -34
  57. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
  58. package/lib/commonjs/dom/nodes/drawings/CircleNode.js +4 -15
  59. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
  60. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js +4 -12
  61. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  62. package/lib/commonjs/dom/nodes/drawings/FillNode.js +5 -14
  63. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
  64. package/lib/commonjs/dom/nodes/drawings/ImageNode.js +6 -19
  65. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
  66. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js +3 -18
  67. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
  68. package/lib/commonjs/dom/nodes/drawings/LineNode.js +4 -12
  69. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
  70. package/lib/commonjs/dom/nodes/drawings/OvalNode.js +4 -15
  71. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
  72. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js +3 -12
  73. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  74. package/lib/commonjs/dom/nodes/drawings/PatchNode.js +6 -18
  75. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
  76. package/lib/commonjs/dom/nodes/drawings/PathNode.js +4 -21
  77. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
  78. package/lib/commonjs/dom/nodes/drawings/PictureNode.js +3 -11
  79. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
  80. package/lib/commonjs/dom/nodes/drawings/PointsNode.js +4 -14
  81. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
  82. package/lib/commonjs/dom/nodes/drawings/RRectNode.js +7 -18
  83. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
  84. package/lib/commonjs/dom/nodes/drawings/RectNode.js +4 -15
  85. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
  86. package/lib/commonjs/dom/nodes/drawings/Text.js +18 -62
  87. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
  88. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js +4 -16
  89. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
  90. package/lib/commonjs/dom/nodes/drawings/index.js +0 -36
  91. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  92. package/lib/commonjs/dom/nodes/index.js +0 -6
  93. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  94. package/lib/commonjs/dom/nodes/paint/BlendNode.js +4 -18
  95. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
  96. package/lib/commonjs/dom/nodes/paint/ColorFilters.js +0 -34
  97. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
  98. package/lib/commonjs/dom/nodes/paint/ImageFilters.js +7 -60
  99. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
  100. package/lib/commonjs/dom/nodes/paint/MaskFilters.js +0 -8
  101. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
  102. package/lib/commonjs/dom/nodes/paint/PathEffects.js +0 -45
  103. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
  104. package/lib/commonjs/dom/nodes/paint/Shaders.js +1 -48
  105. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
  106. package/lib/commonjs/dom/nodes/paint/index.js +0 -12
  107. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
  108. package/lib/commonjs/dom/types/DeclarationContext.js +3 -30
  109. package/lib/commonjs/dom/types/DeclarationContext.js.map +1 -1
  110. package/lib/commonjs/dom/types/DrawingContext.js +3 -91
  111. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  112. package/lib/commonjs/dom/types/NodeType.js +6 -11
  113. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  114. package/lib/commonjs/dom/types/index.js +0 -26
  115. package/lib/commonjs/dom/types/index.js.map +1 -1
  116. package/lib/commonjs/external/index.js +0 -2
  117. package/lib/commonjs/external/index.js.map +1 -1
  118. package/lib/commonjs/external/reanimated/buffers.js +10 -19
  119. package/lib/commonjs/external/reanimated/buffers.js.map +1 -1
  120. package/lib/commonjs/external/reanimated/index.js +0 -12
  121. package/lib/commonjs/external/reanimated/index.js.map +1 -1
  122. package/lib/commonjs/external/reanimated/interpolators.d.ts +1 -1
  123. package/lib/commonjs/external/reanimated/interpolators.js +5 -20
  124. package/lib/commonjs/external/reanimated/interpolators.js.map +1 -1
  125. package/lib/commonjs/external/reanimated/moduleWrapper.js +12 -29
  126. package/lib/commonjs/external/reanimated/moduleWrapper.js.map +1 -1
  127. package/lib/commonjs/external/reanimated/renderHelpers.js +5 -31
  128. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
  129. package/lib/commonjs/external/reanimated/textures.js +0 -8
  130. package/lib/commonjs/external/reanimated/textures.js.map +1 -1
  131. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +11 -16
  132. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -1
  133. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js +0 -4
  134. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  135. package/lib/commonjs/headless/index.js +1 -12
  136. package/lib/commonjs/headless/index.js.map +1 -1
  137. package/lib/commonjs/index.js +0 -20
  138. package/lib/commonjs/index.js.map +1 -1
  139. package/lib/commonjs/mock/index.js +0 -6
  140. package/lib/commonjs/mock/index.js.map +1 -1
  141. package/lib/commonjs/renderer/Canvas.js +21 -46
  142. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  143. package/lib/commonjs/renderer/Container.js +4 -15
  144. package/lib/commonjs/renderer/Container.js.map +1 -1
  145. package/lib/commonjs/renderer/HostComponents.js +1 -65
  146. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  147. package/lib/commonjs/renderer/HostConfig.js +9 -38
  148. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  149. package/lib/commonjs/renderer/Offscreen.js +2 -12
  150. package/lib/commonjs/renderer/Offscreen.js.map +1 -1
  151. package/lib/commonjs/renderer/Reconciler.js +4 -20
  152. package/lib/commonjs/renderer/Reconciler.js.map +1 -1
  153. package/lib/commonjs/renderer/components/Blend.js +0 -4
  154. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  155. package/lib/commonjs/renderer/components/Group.js +6 -15
  156. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  157. package/lib/commonjs/renderer/components/Mask.js +6 -14
  158. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  159. package/lib/commonjs/renderer/components/Paint.js +0 -4
  160. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  161. package/lib/commonjs/renderer/components/Picture.js +0 -4
  162. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  163. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +5 -13
  164. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  165. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +5 -11
  166. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  167. package/lib/commonjs/renderer/components/backdrop/index.js +0 -4
  168. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
  169. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +0 -4
  170. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  171. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +0 -4
  172. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  173. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +0 -4
  174. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  175. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +0 -4
  176. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  177. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +0 -6
  178. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  179. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +0 -4
  180. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  181. package/lib/commonjs/renderer/components/colorFilters/index.js +0 -12
  182. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
  183. package/lib/commonjs/renderer/components/image/Image.js +0 -4
  184. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  185. package/lib/commonjs/renderer/components/image/ImageSVG.js +0 -4
  186. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  187. package/lib/commonjs/renderer/components/image/ImageShader.js +9 -15
  188. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  189. package/lib/commonjs/renderer/components/image/index.js +0 -6
  190. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  191. package/lib/commonjs/renderer/components/imageFilters/Blur.js +4 -10
  192. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  193. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +0 -4
  194. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  195. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +4 -10
  196. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  197. package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -11
  198. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  199. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +0 -4
  200. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  201. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +0 -4
  202. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  203. package/lib/commonjs/renderer/components/imageFilters/index.js +0 -12
  204. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
  205. package/lib/commonjs/renderer/components/index.js +0 -32
  206. package/lib/commonjs/renderer/components/index.js.map +1 -1
  207. package/lib/commonjs/renderer/components/maskFilters/Blur.js +5 -11
  208. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  209. package/lib/commonjs/renderer/components/maskFilters/index.js +0 -2
  210. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
  211. package/lib/commonjs/renderer/components/paragraph/Paragraph.js +0 -4
  212. package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -1
  213. package/lib/commonjs/renderer/components/paragraph/index.js +0 -2
  214. package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -1
  215. package/lib/commonjs/renderer/components/pathEffects/Corner.js +0 -4
  216. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  217. package/lib/commonjs/renderer/components/pathEffects/Dash.js +0 -4
  218. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  219. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +4 -10
  220. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  221. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +0 -4
  222. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  223. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +0 -4
  224. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  225. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +0 -4
  226. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  227. package/lib/commonjs/renderer/components/pathEffects/Sum.js +0 -4
  228. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  229. package/lib/commonjs/renderer/components/pathEffects/index.js +0 -14
  230. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
  231. package/lib/commonjs/renderer/components/shaders/Color.js +0 -4
  232. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  233. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +6 -12
  234. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  235. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +0 -4
  236. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  237. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +0 -4
  238. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  239. package/lib/commonjs/renderer/components/shaders/Shader.js +4 -10
  240. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  241. package/lib/commonjs/renderer/components/shaders/ShaderLib.js +1 -2
  242. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
  243. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +0 -4
  244. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  245. package/lib/commonjs/renderer/components/shaders/Turbulence.js +6 -12
  246. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  247. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +0 -4
  248. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  249. package/lib/commonjs/renderer/components/shaders/index.js +0 -18
  250. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
  251. package/lib/commonjs/renderer/components/shapes/Atlas.js +0 -4
  252. package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -1
  253. package/lib/commonjs/renderer/components/shapes/Box.js +0 -6
  254. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  255. package/lib/commonjs/renderer/components/shapes/Circle.js +0 -4
  256. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  257. package/lib/commonjs/renderer/components/shapes/DiffRect.js +0 -4
  258. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  259. package/lib/commonjs/renderer/components/shapes/Fill.js +0 -4
  260. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  261. package/lib/commonjs/renderer/components/shapes/FitBox.js +8 -18
  262. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  263. package/lib/commonjs/renderer/components/shapes/Line.js +0 -4
  264. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  265. package/lib/commonjs/renderer/components/shapes/Oval.js +0 -4
  266. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  267. package/lib/commonjs/renderer/components/shapes/Patch.js +0 -4
  268. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  269. package/lib/commonjs/renderer/components/shapes/Path.js +5 -11
  270. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  271. package/lib/commonjs/renderer/components/shapes/Points.js +4 -10
  272. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  273. package/lib/commonjs/renderer/components/shapes/Rect.js +0 -4
  274. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  275. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +0 -4
  276. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  277. package/lib/commonjs/renderer/components/shapes/Vertices.js +4 -10
  278. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  279. package/lib/commonjs/renderer/components/shapes/index.js +0 -28
  280. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
  281. package/lib/commonjs/renderer/components/text/Glyphs.js +5 -11
  282. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  283. package/lib/commonjs/renderer/components/text/Text.js +5 -11
  284. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  285. package/lib/commonjs/renderer/components/text/TextBlob.js +5 -11
  286. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  287. package/lib/commonjs/renderer/components/text/TextPath.js +4 -10
  288. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  289. package/lib/commonjs/renderer/components/text/index.js +0 -8
  290. package/lib/commonjs/renderer/components/text/index.js.map +1 -1
  291. package/lib/commonjs/renderer/index.js +0 -2
  292. package/lib/commonjs/renderer/index.js.map +1 -1
  293. package/lib/commonjs/renderer/processors/Animations/index.js +0 -2
  294. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
  295. package/lib/commonjs/renderer/processors/index.js +0 -4
  296. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  297. package/lib/commonjs/renderer/processors/math/Coordinates.js +0 -12
  298. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  299. package/lib/commonjs/renderer/processors/math/Math.js +1 -7
  300. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
  301. package/lib/commonjs/renderer/processors/math/Transforms.js +0 -3
  302. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  303. package/lib/commonjs/renderer/processors/math/index.js +0 -6
  304. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  305. package/lib/commonjs/renderer/typeddash.js +2 -11
  306. package/lib/commonjs/renderer/typeddash.js.map +1 -1
  307. package/lib/commonjs/skia/NativeSetup.js +0 -6
  308. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  309. package/lib/commonjs/skia/Skia.js +2 -3
  310. package/lib/commonjs/skia/Skia.js.map +1 -1
  311. package/lib/commonjs/skia/Skia.web.js +1 -4
  312. package/lib/commonjs/skia/Skia.web.js.map +1 -1
  313. package/lib/commonjs/skia/core/AnimatedImage.js +2 -10
  314. package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -1
  315. package/lib/commonjs/skia/core/Data.js +9 -29
  316. package/lib/commonjs/skia/core/Data.js.map +1 -1
  317. package/lib/commonjs/skia/core/Font.js +10 -36
  318. package/lib/commonjs/skia/core/Font.js.map +1 -1
  319. package/lib/commonjs/skia/core/Image.js +3 -16
  320. package/lib/commonjs/skia/core/Image.js.map +1 -1
  321. package/lib/commonjs/skia/core/Matrix.js +0 -4
  322. package/lib/commonjs/skia/core/Matrix.js.map +1 -1
  323. package/lib/commonjs/skia/core/Picture.js +0 -7
  324. package/lib/commonjs/skia/core/Picture.js.map +1 -1
  325. package/lib/commonjs/skia/core/RRect.js +0 -3
  326. package/lib/commonjs/skia/core/RRect.js.map +1 -1
  327. package/lib/commonjs/skia/core/Rect.js +0 -17
  328. package/lib/commonjs/skia/core/Rect.js.map +1 -1
  329. package/lib/commonjs/skia/core/SVG.js +0 -5
  330. package/lib/commonjs/skia/core/SVG.js.map +1 -1
  331. package/lib/commonjs/skia/core/Typeface.js +1 -6
  332. package/lib/commonjs/skia/core/Typeface.js.map +1 -1
  333. package/lib/commonjs/skia/core/Vector.js +3 -17
  334. package/lib/commonjs/skia/core/Vector.js.map +1 -1
  335. package/lib/commonjs/skia/core/index.js +0 -22
  336. package/lib/commonjs/skia/core/index.js.map +1 -1
  337. package/lib/commonjs/skia/index.js +0 -5
  338. package/lib/commonjs/skia/index.js.map +1 -1
  339. package/lib/commonjs/skia/types/AnimatedImage/index.js +0 -4
  340. package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -1
  341. package/lib/commonjs/skia/types/Canvas.js +6 -11
  342. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  343. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js +0 -2
  344. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  345. package/lib/commonjs/skia/types/ColorFilter/index.js +0 -4
  346. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
  347. package/lib/commonjs/skia/types/Data/Data.js +0 -2
  348. package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
  349. package/lib/commonjs/skia/types/Data/index.js +0 -4
  350. package/lib/commonjs/skia/types/Data/index.js.map +1 -1
  351. package/lib/commonjs/skia/types/Font/Font.js +16 -34
  352. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  353. package/lib/commonjs/skia/types/Font/index.js +0 -6
  354. package/lib/commonjs/skia/types/Font/index.js.map +1 -1
  355. package/lib/commonjs/skia/types/Image/Image.js +9 -17
  356. package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
  357. package/lib/commonjs/skia/types/Image/ImageFactory.js +6 -11
  358. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  359. package/lib/commonjs/skia/types/Image/index.js +0 -4
  360. package/lib/commonjs/skia/types/Image/index.js.map +1 -1
  361. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +3 -7
  362. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  363. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +3 -5
  364. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  365. package/lib/commonjs/skia/types/ImageFilter/index.js +0 -4
  366. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
  367. package/lib/commonjs/skia/types/MaskFilter.js +4 -8
  368. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
  369. package/lib/commonjs/skia/types/Matrix.js +0 -7
  370. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  371. package/lib/commonjs/skia/types/Matrix4.js +22 -90
  372. package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
  373. package/lib/commonjs/skia/types/Paint/BlendMode.js +3 -6
  374. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
  375. package/lib/commonjs/skia/types/Paint/Paint.js +9 -19
  376. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
  377. package/lib/commonjs/skia/types/Paint/index.js +0 -4
  378. package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
  379. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js +3 -5
  380. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  381. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js +9 -17
  382. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  383. package/lib/commonjs/skia/types/Paragraph/TextStyle.js +9 -17
  384. package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -1
  385. package/lib/commonjs/skia/types/Paragraph/index.js +0 -12
  386. package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -1
  387. package/lib/commonjs/skia/types/Path/Path.js +9 -20
  388. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  389. package/lib/commonjs/skia/types/Path/index.js +0 -4
  390. package/lib/commonjs/skia/types/Path/index.js.map +1 -1
  391. package/lib/commonjs/skia/types/PathEffect.js +3 -7
  392. package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
  393. package/lib/commonjs/skia/types/Picture/index.js +0 -6
  394. package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
  395. package/lib/commonjs/skia/types/Point.js +3 -5
  396. package/lib/commonjs/skia/types/Point.js.map +1 -1
  397. package/lib/commonjs/skia/types/RRect.js +2 -3
  398. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  399. package/lib/commonjs/skia/types/Rect.js +0 -3
  400. package/lib/commonjs/skia/types/Rect.js.map +1 -1
  401. package/lib/commonjs/skia/types/RuntimeEffect/index.js +0 -4
  402. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
  403. package/lib/commonjs/skia/types/SVG/index.js +0 -4
  404. package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
  405. package/lib/commonjs/skia/types/Shader/Shader.js +4 -12
  406. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  407. package/lib/commonjs/skia/types/Shader/index.js +0 -4
  408. package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
  409. package/lib/commonjs/skia/types/Surface/index.js +0 -4
  410. package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
  411. package/lib/commonjs/skia/types/Typeface/index.js +0 -4
  412. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
  413. package/lib/commonjs/skia/types/Vertices/Vertices.js +3 -5
  414. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
  415. package/lib/commonjs/skia/types/Vertices/index.js +0 -2
  416. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
  417. package/lib/commonjs/skia/types/index.js +0 -62
  418. package/lib/commonjs/skia/types/index.js.map +1 -1
  419. package/lib/commonjs/skia/web/Host.js +7 -29
  420. package/lib/commonjs/skia/web/Host.js.map +1 -1
  421. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +3 -13
  422. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -1
  423. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js +0 -9
  424. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  425. package/lib/commonjs/skia/web/JsiSkCanvas.js +11 -77
  426. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  427. package/lib/commonjs/skia/web/JsiSkColor.js +10 -54
  428. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
  429. package/lib/commonjs/skia/web/JsiSkColorFilter.js +3 -7
  430. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
  431. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +0 -12
  432. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  433. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +3 -13
  434. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
  435. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +3 -11
  436. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  437. package/lib/commonjs/skia/web/JsiSkData.js +5 -8
  438. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
  439. package/lib/commonjs/skia/web/JsiSkDataFactory.js +0 -10
  440. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
  441. package/lib/commonjs/skia/web/JsiSkFont.js +5 -33
  442. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  443. package/lib/commonjs/skia/web/JsiSkFontMgr.js +0 -8
  444. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -1
  445. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +0 -8
  446. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  447. package/lib/commonjs/skia/web/JsiSkImage.js +11 -33
  448. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
  449. package/lib/commonjs/skia/web/JsiSkImageFactory.js +2 -15
  450. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  451. package/lib/commonjs/skia/web/JsiSkImageFilter.js +3 -7
  452. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
  453. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +0 -28
  454. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  455. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +3 -7
  456. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
  457. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +0 -6
  458. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  459. package/lib/commonjs/skia/web/JsiSkMatrix.js +9 -26
  460. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  461. package/lib/commonjs/skia/web/JsiSkPaint.js +3 -35
  462. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  463. package/lib/commonjs/skia/web/JsiSkParagraph.js +21 -47
  464. package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
  465. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js +4 -26
  466. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  467. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +1 -11
  468. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  469. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js +19 -24
  470. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -1
  471. package/lib/commonjs/skia/web/JsiSkPath.js +4 -77
  472. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  473. package/lib/commonjs/skia/web/JsiSkPathEffect.js +3 -7
  474. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
  475. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +0 -23
  476. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  477. package/lib/commonjs/skia/web/JsiSkPathFactory.js +0 -16
  478. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
  479. package/lib/commonjs/skia/web/JsiSkPicture.js +3 -13
  480. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
  481. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +0 -8
  482. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
  483. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +4 -13
  484. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
  485. package/lib/commonjs/skia/web/JsiSkPoint.js +5 -12
  486. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
  487. package/lib/commonjs/skia/web/JsiSkRRect.js +5 -17
  488. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
  489. package/lib/commonjs/skia/web/JsiSkRSXform.js +5 -15
  490. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
  491. package/lib/commonjs/skia/web/JsiSkRect.js +5 -15
  492. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
  493. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +3 -16
  494. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  495. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +0 -8
  496. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  497. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +0 -6
  498. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
  499. package/lib/commonjs/skia/web/JsiSkShader.js +3 -7
  500. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
  501. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +0 -15
  502. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
  503. package/lib/commonjs/skia/web/JsiSkSurface.js +3 -13
  504. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
  505. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +0 -14
  506. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  507. package/lib/commonjs/skia/web/JsiSkTextBlob.js +3 -7
  508. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
  509. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +0 -11
  510. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  511. package/lib/commonjs/skia/web/JsiSkTextStyle.js +0 -3
  512. package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -1
  513. package/lib/commonjs/skia/web/JsiSkTypeface.js +3 -10
  514. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
  515. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +0 -8
  516. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  517. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +16 -26
  518. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  519. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -6
  520. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  521. package/lib/commonjs/skia/web/JsiSkVertices.js +3 -10
  522. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
  523. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +8 -27
  524. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
  525. package/lib/commonjs/skia/web/JsiSkia.js +0 -33
  526. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  527. package/lib/commonjs/skia/web/index.js +0 -2
  528. package/lib/commonjs/skia/web/index.js.map +1 -1
  529. package/lib/commonjs/specs/NativeSkiaModule.js +1 -5
  530. package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -1
  531. package/lib/commonjs/specs/NativeSkiaModule.web.js +1 -4
  532. package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -1
  533. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +1 -6
  534. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -1
  535. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +1 -6
  536. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  537. package/lib/commonjs/views/SkiaBaseWebView.js +18 -66
  538. package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
  539. package/lib/commonjs/views/SkiaDomView.js +8 -40
  540. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  541. package/lib/commonjs/views/SkiaDomView.web.js +0 -9
  542. package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
  543. package/lib/commonjs/views/SkiaJSDomView.js +10 -43
  544. package/lib/commonjs/views/SkiaJSDomView.js.map +1 -1
  545. package/lib/commonjs/views/SkiaJSDomView.web.js +0 -1
  546. package/lib/commonjs/views/SkiaJSDomView.web.js.map +1 -1
  547. package/lib/commonjs/views/SkiaPictureView.js +6 -32
  548. package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
  549. package/lib/commonjs/views/SkiaPictureView.web.js +0 -5
  550. package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -1
  551. package/lib/commonjs/views/SkiaViewNativeId.js +1 -2
  552. package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -1
  553. package/lib/commonjs/views/api.js.map +1 -1
  554. package/lib/commonjs/views/index.js +0 -8
  555. package/lib/commonjs/views/index.js.map +1 -1
  556. package/lib/commonjs/views/types.js +3 -5
  557. package/lib/commonjs/views/types.js.map +1 -1
  558. package/lib/commonjs/views/useTouchHandler.js +19 -33
  559. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  560. package/lib/commonjs/web/LoadSkiaWeb.js +8 -12
  561. package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
  562. package/lib/commonjs/web/WithSkiaWeb.js +10 -18
  563. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  564. package/lib/commonjs/web/index.js +0 -4
  565. package/lib/commonjs/web/index.js.map +1 -1
  566. package/lib/module/Platform/Platform.js.map +1 -1
  567. package/lib/module/Platform/Platform.web.js +7 -23
  568. package/lib/module/Platform/Platform.web.js.map +1 -1
  569. package/lib/module/Platform/index.js.map +1 -1
  570. package/lib/module/animation/functions/index.js.map +1 -1
  571. package/lib/module/animation/functions/interpolate.js +12 -29
  572. package/lib/module/animation/functions/interpolate.js.map +1 -1
  573. package/lib/module/animation/functions/interpolateColors.js +2 -5
  574. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  575. package/lib/module/animation/functions/interpolatePaths.js +1 -13
  576. package/lib/module/animation/functions/interpolatePaths.js.map +1 -1
  577. package/lib/module/animation/functions/interpolateVector.js.map +1 -1
  578. package/lib/module/animation/index.js.map +1 -1
  579. package/lib/module/dom/nodes/DrawingNode.js +7 -17
  580. package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
  581. package/lib/module/dom/nodes/GroupNode.js +0 -2
  582. package/lib/module/dom/nodes/GroupNode.js.map +1 -1
  583. package/lib/module/dom/nodes/JsiSkDOM.js +14 -65
  584. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  585. package/lib/module/dom/nodes/LayerNode.js +0 -6
  586. package/lib/module/dom/nodes/LayerNode.js.map +1 -1
  587. package/lib/module/dom/nodes/Node.js +4 -32
  588. package/lib/module/dom/nodes/Node.js.map +1 -1
  589. package/lib/module/dom/nodes/PaintNode.js +1 -23
  590. package/lib/module/dom/nodes/PaintNode.js.map +1 -1
  591. package/lib/module/dom/nodes/RenderNode.js +3 -29
  592. package/lib/module/dom/nodes/RenderNode.js.map +1 -1
  593. package/lib/module/dom/nodes/datatypes/Circle.js +4 -4
  594. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  595. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -1
  596. package/lib/module/dom/nodes/datatypes/Fitting.js +15 -39
  597. package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -1
  598. package/lib/module/dom/nodes/datatypes/Gradient.js +7 -9
  599. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
  600. package/lib/module/dom/nodes/datatypes/Path.js +2 -3
  601. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
  602. package/lib/module/dom/nodes/datatypes/Radius.js +0 -1
  603. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
  604. package/lib/module/dom/nodes/datatypes/Rect.js +5 -7
  605. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  606. package/lib/module/dom/nodes/datatypes/Transform.js +0 -3
  607. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -1
  608. package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
  609. package/lib/module/dom/nodes/drawings/AtlasNode.js +4 -9
  610. package/lib/module/dom/nodes/drawings/AtlasNode.js.map +1 -1
  611. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js +4 -13
  612. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  613. package/lib/module/dom/nodes/drawings/Box.js +8 -27
  614. package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
  615. package/lib/module/dom/nodes/drawings/CircleNode.js +4 -10
  616. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
  617. package/lib/module/dom/nodes/drawings/DiffRectNode.js +4 -8
  618. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  619. package/lib/module/dom/nodes/drawings/FillNode.js +5 -10
  620. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
  621. package/lib/module/dom/nodes/drawings/ImageNode.js +4 -14
  622. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
  623. package/lib/module/dom/nodes/drawings/ImageSVG.js +3 -14
  624. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
  625. package/lib/module/dom/nodes/drawings/LineNode.js +4 -8
  626. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
  627. package/lib/module/dom/nodes/drawings/OvalNode.js +4 -10
  628. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
  629. package/lib/module/dom/nodes/drawings/ParagraphNode.js +3 -8
  630. package/lib/module/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  631. package/lib/module/dom/nodes/drawings/PatchNode.js +6 -12
  632. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
  633. package/lib/module/dom/nodes/drawings/PathNode.js +4 -14
  634. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
  635. package/lib/module/dom/nodes/drawings/PictureNode.js +3 -7
  636. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
  637. package/lib/module/dom/nodes/drawings/PointsNode.js +4 -8
  638. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
  639. package/lib/module/dom/nodes/drawings/RRectNode.js +7 -13
  640. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
  641. package/lib/module/dom/nodes/drawings/RectNode.js +4 -10
  642. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
  643. package/lib/module/dom/nodes/drawings/Text.js +18 -51
  644. package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
  645. package/lib/module/dom/nodes/drawings/VerticesNode.js +4 -10
  646. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
  647. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  648. package/lib/module/dom/nodes/index.js.map +1 -1
  649. package/lib/module/dom/nodes/paint/BlendNode.js +4 -9
  650. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -1
  651. package/lib/module/dom/nodes/paint/ColorFilters.js +0 -16
  652. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
  653. package/lib/module/dom/nodes/paint/ImageFilters.js +3 -40
  654. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
  655. package/lib/module/dom/nodes/paint/MaskFilters.js +0 -2
  656. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
  657. package/lib/module/dom/nodes/paint/PathEffects.js +0 -26
  658. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
  659. package/lib/module/dom/nodes/paint/Shaders.js +0 -23
  660. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
  661. package/lib/module/dom/nodes/paint/index.js.map +1 -1
  662. package/lib/module/dom/types/DeclarationContext.js +3 -27
  663. package/lib/module/dom/types/DeclarationContext.js.map +1 -1
  664. package/lib/module/dom/types/DrawingContext.js +3 -85
  665. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  666. package/lib/module/dom/types/NodeType.js +6 -9
  667. package/lib/module/dom/types/NodeType.js.map +1 -1
  668. package/lib/module/dom/types/index.js.map +1 -1
  669. package/lib/module/external/index.js.map +1 -1
  670. package/lib/module/external/reanimated/buffers.js +10 -8
  671. package/lib/module/external/reanimated/buffers.js.map +1 -1
  672. package/lib/module/external/reanimated/index.js.map +1 -1
  673. package/lib/module/external/reanimated/interpolators.d.ts +1 -1
  674. package/lib/module/external/reanimated/interpolators.js +5 -4
  675. package/lib/module/external/reanimated/interpolators.js.map +1 -1
  676. package/lib/module/external/reanimated/moduleWrapper.js +2 -4
  677. package/lib/module/external/reanimated/moduleWrapper.js.map +1 -1
  678. package/lib/module/external/reanimated/renderHelpers.js +5 -28
  679. package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
  680. package/lib/module/external/reanimated/textures.js +0 -2
  681. package/lib/module/external/reanimated/textures.js.map +1 -1
  682. package/lib/module/external/reanimated/useAnimatedImageValue.js +11 -10
  683. package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
  684. package/lib/module/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  685. package/lib/module/headless/index.js +3 -4
  686. package/lib/module/headless/index.js.map +1 -1
  687. package/lib/module/index.js.map +1 -1
  688. package/lib/module/mock/index.js +2 -4
  689. package/lib/module/mock/index.js.map +1 -1
  690. package/lib/module/renderer/Canvas.js +17 -28
  691. package/lib/module/renderer/Canvas.js.map +1 -1
  692. package/lib/module/renderer/Container.js +4 -12
  693. package/lib/module/renderer/Container.js.map +1 -1
  694. package/lib/module/renderer/HostComponents.js +0 -58
  695. package/lib/module/renderer/HostComponents.js.map +1 -1
  696. package/lib/module/renderer/HostConfig.js +8 -29
  697. package/lib/module/renderer/HostConfig.js.map +1 -1
  698. package/lib/module/renderer/Offscreen.js +2 -1
  699. package/lib/module/renderer/Offscreen.js.map +1 -1
  700. package/lib/module/renderer/Reconciler.js +4 -13
  701. package/lib/module/renderer/Reconciler.js.map +1 -1
  702. package/lib/module/renderer/components/Blend.js.map +1 -1
  703. package/lib/module/renderer/components/Group.js +4 -8
  704. package/lib/module/renderer/components/Group.js.map +1 -1
  705. package/lib/module/renderer/components/Mask.js +6 -7
  706. package/lib/module/renderer/components/Mask.js.map +1 -1
  707. package/lib/module/renderer/components/Paint.js.map +1 -1
  708. package/lib/module/renderer/components/Picture.js.map +1 -1
  709. package/lib/module/renderer/components/backdrop/BackdropBlur.js +5 -7
  710. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  711. package/lib/module/renderer/components/backdrop/BackdropFilter.js +5 -6
  712. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  713. package/lib/module/renderer/components/backdrop/index.js.map +1 -1
  714. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  715. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  716. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  717. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  718. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  719. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  720. package/lib/module/renderer/components/colorFilters/index.js.map +1 -1
  721. package/lib/module/renderer/components/image/Image.js.map +1 -1
  722. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  723. package/lib/module/renderer/components/image/ImageShader.js +9 -11
  724. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  725. package/lib/module/renderer/components/image/index.js.map +1 -1
  726. package/lib/module/renderer/components/imageFilters/Blur.js +4 -6
  727. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  728. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  729. package/lib/module/renderer/components/imageFilters/Morphology.js +4 -6
  730. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  731. package/lib/module/renderer/components/imageFilters/Offset.js +5 -7
  732. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  733. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  734. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  735. package/lib/module/renderer/components/imageFilters/index.js.map +1 -1
  736. package/lib/module/renderer/components/index.js.map +1 -1
  737. package/lib/module/renderer/components/maskFilters/Blur.js +5 -7
  738. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  739. package/lib/module/renderer/components/maskFilters/index.js.map +1 -1
  740. package/lib/module/renderer/components/paragraph/Paragraph.js.map +1 -1
  741. package/lib/module/renderer/components/paragraph/index.js.map +1 -1
  742. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  743. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  744. package/lib/module/renderer/components/pathEffects/Discrete.js +4 -6
  745. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  746. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  747. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  748. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  749. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  750. package/lib/module/renderer/components/pathEffects/index.js.map +1 -1
  751. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  752. package/lib/module/renderer/components/shaders/FractalNoise.js +6 -8
  753. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  754. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  755. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  756. package/lib/module/renderer/components/shaders/Shader.js +4 -6
  757. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  758. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -1
  759. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  760. package/lib/module/renderer/components/shaders/Turbulence.js +6 -8
  761. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  762. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  763. package/lib/module/renderer/components/shaders/index.js.map +1 -1
  764. package/lib/module/renderer/components/shapes/Atlas.js.map +1 -1
  765. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  766. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  767. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  768. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  769. package/lib/module/renderer/components/shapes/FitBox.js +6 -7
  770. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  771. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  772. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  773. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  774. package/lib/module/renderer/components/shapes/Path.js +5 -7
  775. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  776. package/lib/module/renderer/components/shapes/Points.js +4 -6
  777. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  778. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  779. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  780. package/lib/module/renderer/components/shapes/Vertices.js +4 -6
  781. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  782. package/lib/module/renderer/components/shapes/index.js.map +1 -1
  783. package/lib/module/renderer/components/text/Glyphs.js +5 -7
  784. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  785. package/lib/module/renderer/components/text/Text.js +5 -7
  786. package/lib/module/renderer/components/text/Text.js.map +1 -1
  787. package/lib/module/renderer/components/text/TextBlob.js +5 -7
  788. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  789. package/lib/module/renderer/components/text/TextPath.js +4 -6
  790. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  791. package/lib/module/renderer/components/text/index.js.map +1 -1
  792. package/lib/module/renderer/index.js.map +1 -1
  793. package/lib/module/renderer/processors/Animations/index.js.map +1 -1
  794. package/lib/module/renderer/processors/index.js.map +1 -1
  795. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  796. package/lib/module/renderer/processors/math/Math.js +1 -1
  797. package/lib/module/renderer/processors/math/Math.js.map +1 -1
  798. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  799. package/lib/module/renderer/processors/math/index.js.map +1 -1
  800. package/lib/module/renderer/typeddash.js +2 -5
  801. package/lib/module/renderer/typeddash.js.map +1 -1
  802. package/lib/module/skia/NativeSetup.js +0 -4
  803. package/lib/module/skia/NativeSetup.js.map +1 -1
  804. package/lib/module/skia/Skia.js +1 -0
  805. package/lib/module/skia/Skia.js.map +1 -1
  806. package/lib/module/skia/Skia.web.js.map +1 -1
  807. package/lib/module/skia/core/AnimatedImage.js +2 -5
  808. package/lib/module/skia/core/AnimatedImage.js.map +1 -1
  809. package/lib/module/skia/core/Data.js +9 -21
  810. package/lib/module/skia/core/Data.js.map +1 -1
  811. package/lib/module/skia/core/Font.js +9 -24
  812. package/lib/module/skia/core/Font.js.map +1 -1
  813. package/lib/module/skia/core/Image.js +3 -8
  814. package/lib/module/skia/core/Image.js.map +1 -1
  815. package/lib/module/skia/core/Matrix.js.map +1 -1
  816. package/lib/module/skia/core/Picture.js +1 -3
  817. package/lib/module/skia/core/Picture.js.map +1 -1
  818. package/lib/module/skia/core/RRect.js.map +1 -1
  819. package/lib/module/skia/core/Rect.js.map +1 -1
  820. package/lib/module/skia/core/SVG.js.map +1 -1
  821. package/lib/module/skia/core/Typeface.js +1 -1
  822. package/lib/module/skia/core/Typeface.js.map +1 -1
  823. package/lib/module/skia/core/Vector.js +1 -3
  824. package/lib/module/skia/core/Vector.js.map +1 -1
  825. package/lib/module/skia/core/index.js.map +1 -1
  826. package/lib/module/skia/index.js.map +1 -1
  827. package/lib/module/skia/types/AnimatedImage/index.js.map +1 -1
  828. package/lib/module/skia/types/Canvas.js +6 -9
  829. package/lib/module/skia/types/Canvas.js.map +1 -1
  830. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  831. package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
  832. package/lib/module/skia/types/Data/Data.js.map +1 -1
  833. package/lib/module/skia/types/Data/index.js.map +1 -1
  834. package/lib/module/skia/types/Font/Font.js +15 -26
  835. package/lib/module/skia/types/Font/Font.js.map +1 -1
  836. package/lib/module/skia/types/Font/index.js.map +1 -1
  837. package/lib/module/skia/types/Image/Image.js +9 -14
  838. package/lib/module/skia/types/Image/Image.js.map +1 -1
  839. package/lib/module/skia/types/Image/ImageFactory.js +6 -9
  840. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  841. package/lib/module/skia/types/Image/index.js.map +1 -1
  842. package/lib/module/skia/types/ImageFilter/ImageFilter.js +3 -5
  843. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  844. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +3 -4
  845. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  846. package/lib/module/skia/types/ImageFilter/index.js.map +1 -1
  847. package/lib/module/skia/types/MaskFilter.js +4 -5
  848. package/lib/module/skia/types/MaskFilter.js.map +1 -1
  849. package/lib/module/skia/types/Matrix.js.map +1 -1
  850. package/lib/module/skia/types/Matrix4.js +22 -64
  851. package/lib/module/skia/types/Matrix4.js.map +1 -1
  852. package/lib/module/skia/types/Paint/BlendMode.js +3 -4
  853. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
  854. package/lib/module/skia/types/Paint/Paint.js +9 -15
  855. package/lib/module/skia/types/Paint/Paint.js.map +1 -1
  856. package/lib/module/skia/types/Paint/index.js.map +1 -1
  857. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js +3 -4
  858. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  859. package/lib/module/skia/types/Paragraph/ParagraphStyle.js +9 -14
  860. package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  861. package/lib/module/skia/types/Paragraph/TextStyle.js +9 -14
  862. package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -1
  863. package/lib/module/skia/types/Paragraph/index.js.map +1 -1
  864. package/lib/module/skia/types/Path/Path.js +9 -14
  865. package/lib/module/skia/types/Path/Path.js.map +1 -1
  866. package/lib/module/skia/types/Path/index.js.map +1 -1
  867. package/lib/module/skia/types/PathEffect.js +3 -4
  868. package/lib/module/skia/types/PathEffect.js.map +1 -1
  869. package/lib/module/skia/types/Picture/index.js.map +1 -1
  870. package/lib/module/skia/types/Point.js +3 -4
  871. package/lib/module/skia/types/Point.js.map +1 -1
  872. package/lib/module/skia/types/RRect.js +2 -1
  873. package/lib/module/skia/types/RRect.js.map +1 -1
  874. package/lib/module/skia/types/Rect.js +0 -1
  875. package/lib/module/skia/types/Rect.js.map +1 -1
  876. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
  877. package/lib/module/skia/types/SVG/index.js.map +1 -1
  878. package/lib/module/skia/types/Shader/Shader.js +4 -9
  879. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  880. package/lib/module/skia/types/Shader/index.js.map +1 -1
  881. package/lib/module/skia/types/Surface/index.js.map +1 -1
  882. package/lib/module/skia/types/Typeface/index.js.map +1 -1
  883. package/lib/module/skia/types/Vertices/Vertices.js +3 -4
  884. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -1
  885. package/lib/module/skia/types/Vertices/index.js.map +1 -1
  886. package/lib/module/skia/types/index.js.map +1 -1
  887. package/lib/module/skia/web/Host.js +6 -16
  888. package/lib/module/skia/web/Host.js.map +1 -1
  889. package/lib/module/skia/web/JsiSkAnimatedImage.js +3 -9
  890. package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
  891. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js +0 -4
  892. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  893. package/lib/module/skia/web/JsiSkCanvas.js +13 -63
  894. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  895. package/lib/module/skia/web/JsiSkColor.js +10 -52
  896. package/lib/module/skia/web/JsiSkColor.js.map +1 -1
  897. package/lib/module/skia/web/JsiSkColorFilter.js +3 -4
  898. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  899. package/lib/module/skia/web/JsiSkColorFilterFactory.js +0 -8
  900. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  901. package/lib/module/skia/web/JsiSkContourMeasure.js +3 -8
  902. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  903. package/lib/module/skia/web/JsiSkContourMeasureIter.js +3 -7
  904. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  905. package/lib/module/skia/web/JsiSkData.js +5 -5
  906. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  907. package/lib/module/skia/web/JsiSkDataFactory.js +0 -6
  908. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
  909. package/lib/module/skia/web/JsiSkFont.js +5 -26
  910. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  911. package/lib/module/skia/web/JsiSkFontMgr.js +0 -5
  912. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -1
  913. package/lib/module/skia/web/JsiSkFontMgrFactory.js +0 -4
  914. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  915. package/lib/module/skia/web/JsiSkImage.js +7 -23
  916. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  917. package/lib/module/skia/web/JsiSkImageFactory.js +2 -10
  918. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  919. package/lib/module/skia/web/JsiSkImageFilter.js +3 -4
  920. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  921. package/lib/module/skia/web/JsiSkImageFilterFactory.js +0 -23
  922. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  923. package/lib/module/skia/web/JsiSkMaskFilter.js +3 -4
  924. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  925. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +0 -2
  926. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  927. package/lib/module/skia/web/JsiSkMatrix.js +7 -21
  928. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  929. package/lib/module/skia/web/JsiSkPaint.js +3 -27
  930. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  931. package/lib/module/skia/web/JsiSkParagraph.js +21 -44
  932. package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
  933. package/lib/module/skia/web/JsiSkParagraphBuilder.js +1 -18
  934. package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  935. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +0 -4
  936. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  937. package/lib/module/skia/web/JsiSkParagraphStyle.js +4 -6
  938. package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
  939. package/lib/module/skia/web/JsiSkPath.js +4 -69
  940. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  941. package/lib/module/skia/web/JsiSkPathEffect.js +3 -4
  942. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  943. package/lib/module/skia/web/JsiSkPathEffectFactory.js +0 -17
  944. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  945. package/lib/module/skia/web/JsiSkPathFactory.js +0 -12
  946. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
  947. package/lib/module/skia/web/JsiSkPicture.js +4 -6
  948. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  949. package/lib/module/skia/web/JsiSkPictureFactory.js +0 -4
  950. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
  951. package/lib/module/skia/web/JsiSkPictureRecorder.js +3 -6
  952. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  953. package/lib/module/skia/web/JsiSkPoint.js +5 -9
  954. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  955. package/lib/module/skia/web/JsiSkRRect.js +5 -13
  956. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  957. package/lib/module/skia/web/JsiSkRSXform.js +5 -12
  958. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  959. package/lib/module/skia/web/JsiSkRect.js +5 -12
  960. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  961. package/lib/module/skia/web/JsiSkRuntimeEffect.js +3 -11
  962. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  963. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +0 -4
  964. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  965. package/lib/module/skia/web/JsiSkSVGFactory.js +0 -3
  966. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
  967. package/lib/module/skia/web/JsiSkShader.js +3 -4
  968. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  969. package/lib/module/skia/web/JsiSkShaderFactory.js +0 -9
  970. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
  971. package/lib/module/skia/web/JsiSkSurface.js +3 -7
  972. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  973. package/lib/module/skia/web/JsiSkSurfaceFactory.js +0 -10
  974. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  975. package/lib/module/skia/web/JsiSkTextBlob.js +3 -4
  976. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  977. package/lib/module/skia/web/JsiSkTextBlobFactory.js +0 -5
  978. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  979. package/lib/module/skia/web/JsiSkTextStyle.js +0 -1
  980. package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -1
  981. package/lib/module/skia/web/JsiSkTypeface.js +3 -7
  982. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  983. package/lib/module/skia/web/JsiSkTypefaceFactory.js +0 -4
  984. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  985. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +16 -23
  986. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  987. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -2
  988. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  989. package/lib/module/skia/web/JsiSkVertices.js +3 -6
  990. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  991. package/lib/module/skia/web/JsiSkVerticesFactory.js +8 -24
  992. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
  993. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  994. package/lib/module/skia/web/index.js.map +1 -1
  995. package/lib/module/specs/NativeSkiaModule.js.map +1 -1
  996. package/lib/module/specs/NativeSkiaModule.web.js +2 -1
  997. package/lib/module/specs/NativeSkiaModule.web.js.map +1 -1
  998. package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -1
  999. package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  1000. package/lib/module/views/SkiaBaseWebView.js +16 -58
  1001. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  1002. package/lib/module/views/SkiaDomView.js +8 -23
  1003. package/lib/module/views/SkiaDomView.js.map +1 -1
  1004. package/lib/module/views/SkiaDomView.web.js +0 -4
  1005. package/lib/module/views/SkiaDomView.web.js.map +1 -1
  1006. package/lib/module/views/SkiaJSDomView.js +10 -26
  1007. package/lib/module/views/SkiaJSDomView.js.map +1 -1
  1008. package/lib/module/views/SkiaJSDomView.web.js.map +1 -1
  1009. package/lib/module/views/SkiaPictureView.js +5 -18
  1010. package/lib/module/views/SkiaPictureView.js.map +1 -1
  1011. package/lib/module/views/SkiaPictureView.web.js +0 -2
  1012. package/lib/module/views/SkiaPictureView.web.js.map +1 -1
  1013. package/lib/module/views/SkiaViewNativeId.js.map +1 -1
  1014. package/lib/module/views/api.js.map +1 -1
  1015. package/lib/module/views/index.js.map +1 -1
  1016. package/lib/module/views/types.js +4 -4
  1017. package/lib/module/views/types.js.map +1 -1
  1018. package/lib/module/views/useTouchHandler.js +13 -21
  1019. package/lib/module/views/useTouchHandler.js.map +1 -1
  1020. package/lib/module/web/LoadSkiaWeb.js +4 -5
  1021. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  1022. package/lib/module/web/WithSkiaWeb.js +7 -8
  1023. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  1024. package/lib/module/web/index.js.map +1 -1
  1025. package/lib/typescript/src/external/reanimated/interpolators.d.ts +1 -1
  1026. package/package.json +15 -15
  1027. package/react-native-skia.podspec +1 -1
  1028. package/src/dom/nodes/Node.ts +1 -0
  1029. package/src/external/reanimated/interpolators.ts +4 -1
  1030. package/lib/commonjs/animation/types.d.ts +0 -18
  1031. package/lib/commonjs/animation/types.js +0 -2
  1032. package/lib/commonjs/animation/types.js.map +0 -1
  1033. package/lib/module/animation/types.d.ts +0 -18
  1034. package/lib/module/animation/types.js +0 -2
  1035. package/lib/module/animation/types.js.map +0 -1
  1036. package/lib/typescript/src/animation/types.d.ts +0 -18
  1037. package/src/animation/types.ts +0 -23
@@ -4,41 +4,31 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkAnimatedImage = void 0;
7
-
8
7
  var _Host = require("./Host");
9
-
10
8
  var _JsiSkImage = require("./JsiSkImage");
11
-
12
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
-
9
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
11
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14
12
  class JsiSkAnimatedImage extends _Host.HostObject {
15
13
  constructor(CanvasKit, ref) {
16
14
  super(CanvasKit, ref, "AnimatedImage");
17
-
18
15
  _defineProperty(this, "dispose", () => {
19
16
  this.ref.delete();
20
17
  });
21
18
  }
22
-
23
19
  decodeNextFrame() {
24
20
  return this.ref.decodeNextFrame();
25
21
  }
26
-
27
22
  currentFrameDuration() {
28
23
  return this.ref.currentFrameDuration();
29
24
  }
30
-
31
25
  getCurrentFrame() {
32
26
  const image = this.ref.makeImageAtCurrentFrame();
33
-
34
27
  if (image === null) {
35
28
  return null;
36
29
  }
37
-
38
30
  return new _JsiSkImage.JsiSkImage(this.CanvasKit, image);
39
31
  }
40
-
41
32
  }
42
-
43
33
  exports.JsiSkAnimatedImage = JsiSkAnimatedImage;
44
34
  //# sourceMappingURL=JsiSkAnimatedImage.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkAnimatedImage","HostObject","constructor","CanvasKit","ref","delete","decodeNextFrame","currentFrameDuration","getCurrentFrame","image","makeImageAtCurrentFrame","JsiSkImage"],"sources":["JsiSkAnimatedImage.ts"],"sourcesContent":["import type { AnimatedImage, CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkAnimatedImage } from \"../types/AnimatedImage\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkImage } from \"./JsiSkImage\";\n\nexport class JsiSkAnimatedImage\n extends HostObject<AnimatedImage, \"AnimatedImage\">\n implements SkAnimatedImage\n{\n constructor(CanvasKit: CanvasKit, ref: AnimatedImage) {\n super(CanvasKit, ref, \"AnimatedImage\");\n }\n\n decodeNextFrame() {\n return this.ref.decodeNextFrame();\n }\n\n currentFrameDuration() {\n return this.ref.currentFrameDuration();\n }\n\n getCurrentFrame() {\n const image = this.ref.makeImageAtCurrentFrame();\n if (image === null) {\n return null;\n }\n return new JsiSkImage(this.CanvasKit, image);\n }\n\n dispose = () => {\n this.ref.delete();\n };\n}\n"],"mappings":";;;;;;;AAIA;;AACA;;;;AAEO,MAAMA,kBAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAA2C;IACpD,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,eAAtB;;IADoD,iCAoB5C,MAAM;MACd,KAAKA,GAAL,CAASC,MAAT;IACD,CAtBqD;EAErD;;EAEDC,eAAe,GAAG;IAChB,OAAO,KAAKF,GAAL,CAASE,eAAT,EAAP;EACD;;EAEDC,oBAAoB,GAAG;IACrB,OAAO,KAAKH,GAAL,CAASG,oBAAT,EAAP;EACD;;EAEDC,eAAe,GAAG;IAChB,MAAMC,KAAK,GAAG,KAAKL,GAAL,CAASM,uBAAT,EAAd;;IACA,IAAID,KAAK,KAAK,IAAd,EAAoB;MAClB,OAAO,IAAP;IACD;;IACD,OAAO,IAAIE,sBAAJ,CAAe,KAAKR,SAApB,EAA+BM,KAA/B,CAAP;EACD;;AAnBH"}
1
+ {"version":3,"names":["_Host","require","_JsiSkImage","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkAnimatedImage","HostObject","constructor","CanvasKit","ref","delete","decodeNextFrame","currentFrameDuration","getCurrentFrame","image","makeImageAtCurrentFrame","JsiSkImage","exports"],"sources":["JsiSkAnimatedImage.ts"],"sourcesContent":["import type { AnimatedImage, CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkAnimatedImage } from \"../types/AnimatedImage\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkImage } from \"./JsiSkImage\";\n\nexport class JsiSkAnimatedImage\n extends HostObject<AnimatedImage, \"AnimatedImage\">\n implements SkAnimatedImage\n{\n constructor(CanvasKit: CanvasKit, ref: AnimatedImage) {\n super(CanvasKit, ref, \"AnimatedImage\");\n }\n\n decodeNextFrame() {\n return this.ref.decodeNextFrame();\n }\n\n currentFrameDuration() {\n return this.ref.currentFrameDuration();\n }\n\n getCurrentFrame() {\n const image = this.ref.makeImageAtCurrentFrame();\n if (image === null) {\n return null;\n }\n return new JsiSkImage(this.CanvasKit, image);\n }\n\n dispose = () => {\n this.ref.delete();\n };\n}\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAA0C,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAA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("./Host");
9
-
10
8
  var _JsiSkData = require("./JsiSkData");
11
-
12
9
  var _JsiSkAnimatedImage = require("./JsiSkAnimatedImage");
13
-
14
10
  class JsiSkAnimatedImageFactory extends _Host.Host {
15
11
  constructor(CanvasKit) {
16
12
  super(CanvasKit);
17
13
  }
18
-
19
14
  MakeAnimatedImageFromEncoded(encoded) {
20
15
  const image = this.CanvasKit.MakeAnimatedImageFromEncoded(_JsiSkData.JsiSkData.fromValue(encoded));
21
-
22
16
  if (image === null) {
23
17
  return null;
24
18
  }
25
-
26
19
  return new _JsiSkAnimatedImage.JsiSkAnimatedImage(this.CanvasKit, image);
27
20
  }
28
-
29
21
  }
30
-
31
22
  exports.JsiSkAnimatedImageFactory = JsiSkAnimatedImageFactory;
32
23
  //# sourceMappingURL=JsiSkAnimatedImageFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkAnimatedImageFactory","Host","constructor","CanvasKit","MakeAnimatedImageFromEncoded","encoded","image","JsiSkData","fromValue","JsiSkAnimatedImage"],"sources":["JsiSkAnimatedImageFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkData } from \"../types\";\nimport type { AnimatedImageFactory } from \"../types/AnimatedImage/AnimatedImageFactory\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkData } from \"./JsiSkData\";\nimport { JsiSkAnimatedImage } from \"./JsiSkAnimatedImage\";\n\nexport class JsiSkAnimatedImageFactory\n extends Host\n implements AnimatedImageFactory\n{\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakeAnimatedImageFromEncoded(encoded: SkData) {\n const image = this.CanvasKit.MakeAnimatedImageFromEncoded(\n JsiSkData.fromValue(encoded)\n );\n if (image === null) {\n return null;\n }\n return new JsiSkAnimatedImage(this.CanvasKit, image);\n }\n}\n"],"mappings":";;;;;;;AAKA;;AACA;;AACA;;AAEO,MAAMA,yBAAN,SACGC,UADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuB;IAChC,MAAMA,SAAN;EACD;;EAEDC,4BAA4B,CAACC,OAAD,EAAkB;IAC5C,MAAMC,KAAK,GAAG,KAAKH,SAAL,CAAeC,4BAAf,CACZG,oBAAA,CAAUC,SAAV,CAAoBH,OAApB,CADY,CAAd;;IAGA,IAAIC,KAAK,KAAK,IAAd,EAAoB;MAClB,OAAO,IAAP;IACD;;IACD,OAAO,IAAIG,sCAAJ,CAAuB,KAAKN,SAA5B,EAAuCG,KAAvC,CAAP;EACD;;AAbH"}
1
+ {"version":3,"names":["_Host","require","_JsiSkData","_JsiSkAnimatedImage","JsiSkAnimatedImageFactory","Host","constructor","CanvasKit","MakeAnimatedImageFromEncoded","encoded","image","JsiSkData","fromValue","JsiSkAnimatedImage","exports"],"sources":["JsiSkAnimatedImageFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkData } from \"../types\";\nimport type { AnimatedImageFactory } from \"../types/AnimatedImage/AnimatedImageFactory\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkData } from \"./JsiSkData\";\nimport { JsiSkAnimatedImage } from \"./JsiSkAnimatedImage\";\n\nexport class JsiSkAnimatedImageFactory\n extends Host\n implements AnimatedImageFactory\n{\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakeAnimatedImageFromEncoded(encoded: SkData) {\n const image = this.CanvasKit.MakeAnimatedImageFromEncoded(\n JsiSkData.fromValue(encoded)\n );\n if (image === null) {\n return null;\n }\n return new JsiSkAnimatedImage(this.CanvasKit, image);\n }\n}\n"],"mappings":";;;;;;AAKA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAEO,MAAMG,yBAAyB,SAC5BC,UAAI,CAEd;EACEC,WAAWA,CAACC,SAAoB,EAAE;IAChC,KAAK,CAACA,SAAS,CAAC;EAClB;EAEAC,4BAA4BA,CAACC,OAAe,EAAE;IAC5C,MAAMC,KAAK,GAAG,IAAI,CAACH,SAAS,CAACC,4BAA4B,CACvDG,oBAAS,CAACC,SAAS,CAACH,OAAO,CAC7B,CAAC;IACD,IAAIC,KAAK,KAAK,IAAI,EAAE;MAClB,OAAO,IAAI;IACb;IACA,OAAO,IAAIG,sCAAkB,CAAC,IAAI,CAACN,SAAS,EAAEG,KAAK,CAAC;EACtD;AACF;AAACI,OAAA,CAAAV,yBAAA,GAAAA,yBAAA"}
@@ -4,227 +4,163 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkCanvas = void 0;
7
-
8
7
  var _Host = require("./Host");
9
-
10
8
  var _JsiSkPaint = require("./JsiSkPaint");
11
-
12
9
  var _JsiSkRect = require("./JsiSkRect");
13
-
14
10
  var _JsiSkRRect = require("./JsiSkRRect");
15
-
16
11
  var _JsiSkImage = require("./JsiSkImage");
17
-
18
12
  var _JsiSkVertices = require("./JsiSkVertices");
19
-
20
13
  var _JsiSkPath = require("./JsiSkPath");
21
-
22
14
  var _JsiSkFont = require("./JsiSkFont");
23
-
24
15
  var _JsiSkTextBlob = require("./JsiSkTextBlob");
25
-
26
16
  var _JsiSkPicture = require("./JsiSkPicture");
27
-
28
17
  var _JsiSkMatrix = require("./JsiSkMatrix");
29
-
30
18
  var _JsiSkImageFilter = require("./JsiSkImageFilter");
31
-
32
19
  var _JsiSkPoint = require("./JsiSkPoint");
33
-
34
20
  var _JsiSkRSXform = require("./JsiSkRSXform");
35
-
36
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
37
-
21
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
23
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
38
24
  class JsiSkCanvas extends _Host.HostObject {
39
25
  constructor(CanvasKit, ref) {
40
26
  super(CanvasKit, ref, "Canvas");
41
-
42
27
  _defineProperty(this, "dispose", () => {
43
28
  this.ref.delete();
44
29
  });
45
30
  }
46
-
47
31
  drawRect(rect, paint) {
48
32
  this.ref.drawRect(_JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, rect), _JsiSkPaint.JsiSkPaint.fromValue(paint));
49
33
  }
50
-
51
34
  drawImage(image, x, y, paint) {
52
35
  this.ref.drawImage(_JsiSkImage.JsiSkImage.fromValue(image), x, y, paint ? _JsiSkPaint.JsiSkPaint.fromValue(paint) : paint);
53
36
  }
54
-
55
37
  drawImageRect(img, src, dest, paint, fastSample) {
56
38
  this.ref.drawImageRect(_JsiSkImage.JsiSkImage.fromValue(img), _JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, src), _JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, dest), _JsiSkPaint.JsiSkPaint.fromValue(paint), fastSample);
57
39
  }
58
-
59
40
  drawImageCubic(img, left, top, B, C, paint) {
60
41
  this.ref.drawImageCubic(_JsiSkImage.JsiSkImage.fromValue(img), left, top, B, C, paint ? _JsiSkPaint.JsiSkPaint.fromValue(paint) : paint);
61
42
  }
62
-
63
43
  drawImageOptions(img, left, top, fm, mm, paint) {
64
44
  this.ref.drawImageOptions(_JsiSkImage.JsiSkImage.fromValue(img), left, top, (0, _Host.getEnum)(this.CanvasKit.FilterMode, fm), (0, _Host.getEnum)(this.CanvasKit.MipmapMode, mm), paint ? _JsiSkPaint.JsiSkPaint.fromValue(paint) : paint);
65
45
  }
66
-
67
46
  drawImageNine(img, center, dest, filter, paint) {
68
47
  this.ref.drawImageNine(_JsiSkImage.JsiSkImage.fromValue(img), Array.from(_JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, center)), _JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, dest), (0, _Host.getEnum)(this.CanvasKit.FilterMode, filter), paint ? _JsiSkPaint.JsiSkPaint.fromValue(paint) : paint);
69
48
  }
70
-
71
49
  drawImageRectCubic(img, src, dest, B, C, paint) {
72
50
  this.ref.drawImageRectCubic(_JsiSkImage.JsiSkImage.fromValue(img), _JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, src), _JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, dest), B, C, paint ? _JsiSkPaint.JsiSkPaint.fromValue(paint) : paint);
73
51
  }
74
-
75
52
  drawImageRectOptions(img, src, dest, fm, mm, paint) {
76
53
  this.ref.drawImageRectOptions(_JsiSkImage.JsiSkImage.fromValue(img), _JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, src), _JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, dest), (0, _Host.getEnum)(this.CanvasKit.FilterMode, fm), (0, _Host.getEnum)(this.CanvasKit.MipmapMode, mm), paint ? _JsiSkPaint.JsiSkPaint.fromValue(paint) : paint);
77
54
  }
78
-
79
55
  drawPaint(paint) {
80
56
  this.ref.drawPaint(_JsiSkPaint.JsiSkPaint.fromValue(paint));
81
57
  }
82
-
83
58
  drawLine(x0, y0, x1, y1, paint) {
84
59
  this.ref.drawLine(x0, y0, x1, y1, _JsiSkPaint.JsiSkPaint.fromValue(paint));
85
60
  }
86
-
87
61
  drawCircle(cx, cy, radius, paint) {
88
62
  this.ref.drawCircle(cx, cy, radius, _JsiSkPaint.JsiSkPaint.fromValue(paint));
89
63
  }
90
-
91
64
  drawVertices(verts, mode, paint) {
92
65
  this.ref.drawVertices(_JsiSkVertices.JsiSkVertices.fromValue(verts), (0, _Host.getEnum)(this.CanvasKit.BlendMode, mode), _JsiSkPaint.JsiSkPaint.fromValue(paint));
93
66
  }
94
-
95
67
  drawPatch(cubics, colors, texs, mode, paint) {
96
- this.ref.drawPatch(cubics.map(_ref => {
97
- let {
98
- x,
99
- y
100
- } = _ref;
101
- return [x, y];
102
- }).flat(), colors, texs ? texs.flatMap(p => Array.from(_JsiSkPoint.JsiSkPoint.fromValue(p))) : texs, mode ? (0, _Host.getEnum)(this.CanvasKit.BlendMode, mode) : null, paint ? _JsiSkPaint.JsiSkPaint.fromValue(paint) : undefined);
68
+ this.ref.drawPatch(cubics.map(({
69
+ x,
70
+ y
71
+ }) => [x, y]).flat(), colors, texs ? texs.flatMap(p => Array.from(_JsiSkPoint.JsiSkPoint.fromValue(p))) : texs, mode ? (0, _Host.getEnum)(this.CanvasKit.BlendMode, mode) : null, paint ? _JsiSkPaint.JsiSkPaint.fromValue(paint) : undefined);
103
72
  }
104
-
105
73
  restoreToCount(saveCount) {
106
74
  this.ref.restoreToCount(saveCount);
107
75
  }
108
-
109
76
  drawPoints(mode, points, paint) {
110
- this.ref.drawPoints((0, _Host.getEnum)(this.CanvasKit.PointMode, mode), points.map(_ref2 => {
111
- let {
112
- x,
113
- y
114
- } = _ref2;
115
- return [x, y];
116
- }).flat(), _JsiSkPaint.JsiSkPaint.fromValue(paint));
77
+ this.ref.drawPoints((0, _Host.getEnum)(this.CanvasKit.PointMode, mode), points.map(({
78
+ x,
79
+ y
80
+ }) => [x, y]).flat(), _JsiSkPaint.JsiSkPaint.fromValue(paint));
117
81
  }
118
-
119
82
  drawArc(oval, startAngle, sweepAngle, useCenter, paint) {
120
83
  this.ref.drawArc(_JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, oval), startAngle, sweepAngle, useCenter, _JsiSkPaint.JsiSkPaint.fromValue(paint));
121
84
  }
122
-
123
85
  drawRRect(rrect, paint) {
124
86
  this.ref.drawRRect(_JsiSkRRect.JsiSkRRect.fromValue(this.CanvasKit, rrect), _JsiSkPaint.JsiSkPaint.fromValue(paint));
125
87
  }
126
-
127
88
  drawDRRect(outer, inner, paint) {
128
89
  this.ref.drawDRRect(_JsiSkRRect.JsiSkRRect.fromValue(this.CanvasKit, outer), _JsiSkRRect.JsiSkRRect.fromValue(this.CanvasKit, inner), _JsiSkPaint.JsiSkPaint.fromValue(paint));
129
90
  }
130
-
131
91
  drawOval(oval, paint) {
132
92
  this.ref.drawOval(_JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, oval), _JsiSkPaint.JsiSkPaint.fromValue(paint));
133
93
  }
134
-
135
94
  drawPath(path, paint) {
136
95
  this.ref.drawPath(_JsiSkPath.JsiSkPath.fromValue(path), _JsiSkPaint.JsiSkPaint.fromValue(paint));
137
96
  }
138
-
139
97
  drawText(str, x, y, paint, font) {
140
98
  this.ref.drawText(str, x, y, _JsiSkPaint.JsiSkPaint.fromValue(paint), _JsiSkFont.JsiSkFont.fromValue(font));
141
99
  }
142
-
143
100
  drawTextBlob(blob, x, y, paint) {
144
101
  this.ref.drawTextBlob(_JsiSkTextBlob.JsiSkTextBlob.fromValue(blob), x, y, _JsiSkPaint.JsiSkPaint.fromValue(paint));
145
102
  }
146
-
147
103
  drawGlyphs(glyphs, positions, x, y, font, paint) {
148
104
  this.ref.drawGlyphs(glyphs, positions.map(p => [p.x, p.y]).flat(), x, y, _JsiSkFont.JsiSkFont.fromValue(font), _JsiSkPaint.JsiSkPaint.fromValue(paint));
149
105
  }
150
-
151
106
  drawSvg(_svgDom, _width, _height) {
152
107
  throw new Error("drawSvg is not implemented on React Native Web");
153
108
  }
154
-
155
109
  save() {
156
110
  return this.ref.save();
157
111
  }
158
-
159
112
  saveLayer(paint, bounds, backdrop, flags) {
160
113
  return this.ref.saveLayer(paint ? _JsiSkPaint.JsiSkPaint.fromValue(paint) : undefined, bounds ? _JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, bounds) : bounds, backdrop ? _JsiSkImageFilter.JsiSkImageFilter.fromValue(backdrop) : backdrop, flags);
161
114
  }
162
-
163
115
  restore() {
164
116
  this.ref.restore();
165
117
  }
166
-
167
118
  rotate(rotationInDegrees, rx, ry) {
168
119
  this.ref.rotate(rotationInDegrees, rx, ry);
169
120
  }
170
-
171
121
  scale(sx, sy) {
172
122
  this.ref.scale(sx, sy);
173
123
  }
174
-
175
124
  skew(sx, sy) {
176
125
  this.ref.skew(sx, sy);
177
126
  }
178
-
179
127
  translate(dx, dy) {
180
128
  this.ref.translate(dx, dy);
181
129
  }
182
-
183
130
  drawColor(color, blendMode) {
184
131
  this.ref.drawColor(color, blendMode ? (0, _Host.getEnum)(this.CanvasKit.BlendMode, blendMode) : undefined);
185
132
  }
186
-
187
133
  clear(color) {
188
134
  this.ref.clear(color);
189
135
  }
190
-
191
136
  clipPath(path, op, doAntiAlias) {
192
137
  this.ref.clipPath(_JsiSkPath.JsiSkPath.fromValue(path), (0, _Host.getEnum)(this.CanvasKit.PathOp, op), doAntiAlias);
193
138
  }
194
-
195
139
  clipRect(rect, op, doAntiAlias) {
196
140
  this.ref.clipRect(_JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, rect), (0, _Host.getEnum)(this.CanvasKit.PathOp, op), doAntiAlias);
197
141
  }
198
-
199
142
  clipRRect(rrect, op, doAntiAlias) {
200
143
  this.ref.clipRRect(_JsiSkRRect.JsiSkRRect.fromValue(this.CanvasKit, rrect), (0, _Host.getEnum)(this.CanvasKit.PathOp, op), doAntiAlias);
201
144
  }
202
-
203
145
  concat(m) {
204
146
  this.ref.concat(Array.isArray(m) ? m : _JsiSkMatrix.JsiSkMatrix.fromValue(m));
205
147
  }
206
-
207
148
  drawPicture(skp) {
208
149
  this.ref.drawPicture(_JsiSkPicture.JsiSkPicture.fromValue(skp));
209
150
  }
210
-
211
151
  drawAtlas(atlas, srcs, dsts, paint, blendMode, colors, _sampling) {
212
152
  const src = srcs.flatMap(s => Array.from(_JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, s)));
213
153
  const dst = dsts.flatMap(s => Array.from(_JsiSkRSXform.JsiSkRSXform.fromValue(s)));
214
154
  let cls;
215
-
216
155
  if (colors) {
217
156
  cls = new Uint32Array(colors.length);
218
-
219
157
  for (let i = 0; i < colors.length; i++) {
220
158
  const [r, g, b, a] = colors[i];
221
159
  cls[i] = this.CanvasKit.ColorAsInt(r * 255, g * 255, b * 255, a * 255);
222
160
  }
223
161
  }
224
-
225
162
  this.ref.drawAtlas(_JsiSkImage.JsiSkImage.fromValue(atlas), src, dst, _JsiSkPaint.JsiSkPaint.fromValue(paint), blendMode ? (0, _Host.getEnum)(this.CanvasKit.BlendMode, blendMode) : this.CanvasKit.BlendMode.DstOver, cls);
226
163
  }
227
-
228
164
  readPixels(srcX, srcY, imageInfo) {
229
165
  const pxInfo = {
230
166
  width: imageInfo.width,
@@ -235,8 +171,6 @@ class JsiSkCanvas extends _Host.HostObject {
235
171
  };
236
172
  return this.ref.readPixels(srcX, srcY, pxInfo);
237
173
  }
238
-
239
174
  }
240
-
241
175
  exports.JsiSkCanvas = JsiSkCanvas;
242
176
  //# sourceMappingURL=JsiSkCanvas.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkCanvas","HostObject","constructor","CanvasKit","ref","delete","drawRect","rect","paint","JsiSkRect","fromValue","JsiSkPaint","drawImage","image","x","y","JsiSkImage","drawImageRect","img","src","dest","fastSample","drawImageCubic","left","top","B","C","drawImageOptions","fm","mm","getEnum","FilterMode","MipmapMode","drawImageNine","center","filter","Array","from","drawImageRectCubic","drawImageRectOptions","drawPaint","drawLine","x0","y0","x1","y1","drawCircle","cx","cy","radius","drawVertices","verts","mode","JsiSkVertices","BlendMode","drawPatch","cubics","colors","texs","map","flat","flatMap","p","JsiSkPoint","undefined","restoreToCount","saveCount","drawPoints","points","PointMode","drawArc","oval","startAngle","sweepAngle","useCenter","drawRRect","rrect","JsiSkRRect","drawDRRect","outer","inner","drawOval","drawPath","path","JsiSkPath","drawText","str","font","JsiSkFont","drawTextBlob","blob","JsiSkTextBlob","drawGlyphs","glyphs","positions","drawSvg","_svgDom","_width","_height","Error","save","saveLayer","bounds","backdrop","flags","JsiSkImageFilter","restore","rotate","rotationInDegrees","rx","ry","scale","sx","sy","skew","translate","dx","dy","drawColor","color","blendMode","clear","clipPath","op","doAntiAlias","PathOp","clipRect","clipRRect","concat","m","isArray","JsiSkMatrix","drawPicture","skp","JsiSkPicture","drawAtlas","atlas","srcs","dsts","_sampling","s","dst","JsiSkRSXform","cls","Uint32Array","length","i","r","g","b","a","ColorAsInt","DstOver","readPixels","srcX","srcY","imageInfo","pxInfo","width","height","colorSpace","ColorSpace","SRGB","alphaType","AlphaType","colorType","ColorType"],"sources":["JsiSkCanvas.ts"],"sourcesContent":["import type { Canvas, CanvasKit } from \"canvaskit-wasm\";\n\nimport {\n type BlendMode,\n type ClipOp,\n type FilterMode,\n type MipmapMode,\n type PointMode,\n type SaveLayerFlag,\n type ImageInfo,\n type SkCanvas,\n type SkColor,\n type SkFont,\n type SkImage,\n type SkImageFilter,\n type SkMatrix,\n type SkPaint,\n type SkPath,\n type SkPicture,\n type SkPoint,\n type SkRect,\n type InputRRect,\n type SkSVG,\n type SkTextBlob,\n type SkVertices,\n type SkRSXform,\n type CubicResampler,\n type FilterOptions,\n} from \"../types\";\n\nimport { getEnum, HostObject } from \"./Host\";\nimport { JsiSkPaint } from \"./JsiSkPaint\";\nimport { JsiSkRect } from \"./JsiSkRect\";\nimport { JsiSkRRect } from \"./JsiSkRRect\";\nimport { JsiSkImage } from \"./JsiSkImage\";\nimport { JsiSkVertices } from \"./JsiSkVertices\";\nimport { JsiSkPath } from \"./JsiSkPath\";\nimport { JsiSkFont } from \"./JsiSkFont\";\nimport { JsiSkTextBlob } from \"./JsiSkTextBlob\";\nimport { JsiSkPicture } from \"./JsiSkPicture\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkImageFilter } from \"./JsiSkImageFilter\";\nimport { JsiSkPoint } from \"./JsiSkPoint\";\nimport { JsiSkRSXform } from \"./JsiSkRSXform\";\n\nexport class JsiSkCanvas\n extends HostObject<Canvas, \"Canvas\">\n implements SkCanvas\n{\n constructor(CanvasKit: CanvasKit, ref: Canvas) {\n super(CanvasKit, ref, \"Canvas\");\n }\n\n dispose = () => {\n this.ref.delete();\n };\n\n drawRect(rect: SkRect, paint: SkPaint) {\n this.ref.drawRect(\n JsiSkRect.fromValue(this.CanvasKit, rect),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawImage(image: SkImage, x: number, y: number, paint?: SkPaint) {\n this.ref.drawImage(\n JsiSkImage.fromValue(image),\n x,\n y,\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawImageRect(\n img: SkImage,\n src: SkRect,\n dest: SkRect,\n paint: SkPaint,\n fastSample?: boolean\n ) {\n this.ref.drawImageRect(\n JsiSkImage.fromValue(img),\n JsiSkRect.fromValue(this.CanvasKit, src),\n JsiSkRect.fromValue(this.CanvasKit, dest),\n JsiSkPaint.fromValue(paint),\n fastSample\n );\n }\n\n drawImageCubic(\n img: SkImage,\n left: number,\n top: number,\n B: number,\n C: number,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageCubic(\n JsiSkImage.fromValue(img),\n left,\n top,\n B,\n C,\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawImageOptions(\n img: SkImage,\n left: number,\n top: number,\n fm: FilterMode,\n mm: MipmapMode,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageOptions(\n JsiSkImage.fromValue(img),\n left,\n top,\n getEnum(this.CanvasKit.FilterMode, fm),\n getEnum(this.CanvasKit.MipmapMode, mm),\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawImageNine(\n img: SkImage,\n center: SkRect,\n dest: SkRect,\n filter: FilterMode,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageNine(\n JsiSkImage.fromValue(img),\n Array.from(JsiSkRect.fromValue(this.CanvasKit, center)),\n JsiSkRect.fromValue(this.CanvasKit, dest),\n getEnum(this.CanvasKit.FilterMode, filter),\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawImageRectCubic(\n img: SkImage,\n src: SkRect,\n dest: SkRect,\n B: number,\n C: number,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageRectCubic(\n JsiSkImage.fromValue(img),\n JsiSkRect.fromValue(this.CanvasKit, src),\n JsiSkRect.fromValue(this.CanvasKit, dest),\n B,\n C,\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawImageRectOptions(\n img: SkImage,\n src: SkRect,\n dest: SkRect,\n fm: FilterMode,\n mm: MipmapMode,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageRectOptions(\n JsiSkImage.fromValue(img),\n JsiSkRect.fromValue(this.CanvasKit, src),\n JsiSkRect.fromValue(this.CanvasKit, dest),\n getEnum(this.CanvasKit.FilterMode, fm),\n getEnum(this.CanvasKit.MipmapMode, mm),\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawPaint(paint: SkPaint) {\n this.ref.drawPaint(JsiSkPaint.fromValue(paint));\n }\n\n drawLine(x0: number, y0: number, x1: number, y1: number, paint: SkPaint) {\n this.ref.drawLine(x0, y0, x1, y1, JsiSkPaint.fromValue(paint));\n }\n\n drawCircle(cx: number, cy: number, radius: number, paint: SkPaint) {\n this.ref.drawCircle(cx, cy, radius, JsiSkPaint.fromValue(paint));\n }\n\n drawVertices(verts: SkVertices, mode: BlendMode, paint: SkPaint) {\n this.ref.drawVertices(\n JsiSkVertices.fromValue(verts),\n getEnum(this.CanvasKit.BlendMode, mode),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawPatch(\n cubics: SkPoint[],\n colors?: SkColor[] | null,\n texs?: SkPoint[] | null,\n mode?: BlendMode | null,\n paint?: SkPaint\n ) {\n this.ref.drawPatch(\n cubics.map(({ x, y }) => [x, y]).flat(),\n colors,\n texs ? texs.flatMap((p) => Array.from(JsiSkPoint.fromValue(p))) : texs,\n mode ? getEnum(this.CanvasKit.BlendMode, mode) : null,\n paint ? JsiSkPaint.fromValue(paint) : undefined\n );\n }\n\n restoreToCount(saveCount: number) {\n this.ref.restoreToCount(saveCount);\n }\n\n drawPoints(mode: PointMode, points: SkPoint[], paint: SkPaint) {\n this.ref.drawPoints(\n getEnum(this.CanvasKit.PointMode, mode),\n points.map(({ x, y }) => [x, y]).flat(),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawArc(\n oval: SkRect,\n startAngle: number,\n sweepAngle: number,\n useCenter: boolean,\n paint: SkPaint\n ) {\n this.ref.drawArc(\n JsiSkRect.fromValue(this.CanvasKit, oval),\n startAngle,\n sweepAngle,\n useCenter,\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawRRect(rrect: InputRRect, paint: SkPaint) {\n this.ref.drawRRect(\n JsiSkRRect.fromValue(this.CanvasKit, rrect),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawDRRect(outer: InputRRect, inner: InputRRect, paint: SkPaint) {\n this.ref.drawDRRect(\n JsiSkRRect.fromValue(this.CanvasKit, outer),\n JsiSkRRect.fromValue(this.CanvasKit, inner),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawOval(oval: SkRect, paint: SkPaint) {\n this.ref.drawOval(\n JsiSkRect.fromValue(this.CanvasKit, oval),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawPath(path: SkPath, paint: SkPaint) {\n this.ref.drawPath(JsiSkPath.fromValue(path), JsiSkPaint.fromValue(paint));\n }\n\n drawText(str: string, x: number, y: number, paint: SkPaint, font: SkFont) {\n this.ref.drawText(\n str,\n x,\n y,\n JsiSkPaint.fromValue(paint),\n JsiSkFont.fromValue(font)\n );\n }\n\n drawTextBlob(blob: SkTextBlob, x: number, y: number, paint: SkPaint) {\n this.ref.drawTextBlob(\n JsiSkTextBlob.fromValue(blob),\n x,\n y,\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawGlyphs(\n glyphs: number[],\n positions: SkPoint[],\n x: number,\n y: number,\n font: SkFont,\n paint: SkPaint\n ) {\n this.ref.drawGlyphs(\n glyphs,\n positions.map((p) => [p.x, p.y]).flat(),\n x,\n y,\n JsiSkFont.fromValue(font),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawSvg(_svgDom: SkSVG, _width?: number, _height?: number) {\n throw new Error(\"drawSvg is not implemented on React Native Web\");\n }\n\n save() {\n return this.ref.save();\n }\n\n saveLayer(\n paint?: SkPaint,\n bounds?: SkRect | null,\n backdrop?: SkImageFilter | null,\n flags?: SaveLayerFlag\n ) {\n return this.ref.saveLayer(\n paint ? JsiSkPaint.fromValue(paint) : undefined,\n bounds ? JsiSkRect.fromValue(this.CanvasKit, bounds) : bounds,\n backdrop ? JsiSkImageFilter.fromValue(backdrop) : backdrop,\n flags\n );\n }\n\n restore() {\n this.ref.restore();\n }\n\n rotate(rotationInDegrees: number, rx: number, ry: number) {\n this.ref.rotate(rotationInDegrees, rx, ry);\n }\n\n scale(sx: number, sy: number) {\n this.ref.scale(sx, sy);\n }\n\n skew(sx: number, sy: number) {\n this.ref.skew(sx, sy);\n }\n\n translate(dx: number, dy: number) {\n this.ref.translate(dx, dy);\n }\n\n drawColor(color: SkColor, blendMode?: BlendMode) {\n this.ref.drawColor(\n color,\n blendMode ? getEnum(this.CanvasKit.BlendMode, blendMode) : undefined\n );\n }\n\n clear(color: SkColor) {\n this.ref.clear(color);\n }\n\n clipPath(path: SkPath, op: ClipOp, doAntiAlias: boolean) {\n this.ref.clipPath(\n JsiSkPath.fromValue(path),\n getEnum(this.CanvasKit.PathOp, op),\n doAntiAlias\n );\n }\n\n clipRect(rect: SkRect, op: ClipOp, doAntiAlias: boolean) {\n this.ref.clipRect(\n JsiSkRect.fromValue(this.CanvasKit, rect),\n getEnum(this.CanvasKit.PathOp, op),\n doAntiAlias\n );\n }\n\n clipRRect(rrect: InputRRect, op: ClipOp, doAntiAlias: boolean) {\n this.ref.clipRRect(\n JsiSkRRect.fromValue(this.CanvasKit, rrect),\n getEnum(this.CanvasKit.PathOp, op),\n doAntiAlias\n );\n }\n\n concat(m: SkMatrix | number[]) {\n this.ref.concat(Array.isArray(m) ? m : JsiSkMatrix.fromValue(m));\n }\n\n drawPicture(skp: SkPicture) {\n this.ref.drawPicture(JsiSkPicture.fromValue(skp));\n }\n\n drawAtlas(\n atlas: SkImage,\n srcs: SkRect[],\n dsts: SkRSXform[],\n paint: SkPaint,\n blendMode?: BlendMode,\n colors?: SkColor[],\n _sampling?: CubicResampler | FilterOptions\n ) {\n const src = srcs.flatMap((s) =>\n Array.from(JsiSkRect.fromValue(this.CanvasKit, s))\n );\n const dst = dsts.flatMap((s) => Array.from(JsiSkRSXform.fromValue(s)));\n let cls: Uint32Array | undefined;\n if (colors) {\n cls = new Uint32Array(colors.length);\n for (let i = 0; i < colors.length; i++) {\n const [r, g, b, a] = colors[i];\n cls[i] = this.CanvasKit.ColorAsInt(r * 255, g * 255, b * 255, a * 255);\n }\n }\n this.ref.drawAtlas(\n JsiSkImage.fromValue(atlas),\n src,\n dst,\n JsiSkPaint.fromValue(paint),\n blendMode\n ? getEnum(this.CanvasKit.BlendMode, blendMode)\n : this.CanvasKit.BlendMode.DstOver,\n cls\n );\n }\n\n readPixels(srcX: number, srcY: number, imageInfo: ImageInfo) {\n const pxInfo = {\n width: imageInfo.width,\n height: imageInfo.height,\n colorSpace: this.CanvasKit.ColorSpace.SRGB,\n alphaType: getEnum(this.CanvasKit.AlphaType, imageInfo.alphaType),\n colorType: getEnum(this.CanvasKit.ColorType, imageInfo.colorType),\n };\n return this.ref.readPixels(srcX, srcY, pxInfo);\n }\n}\n"],"mappings":";;;;;;;AA8BA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEO,MAAMA,WAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAoC;IAC7C,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,QAAtB;;IAD6C,iCAIrC,MAAM;MACd,KAAKA,GAAL,CAASC,MAAT;IACD,CAN8C;EAE9C;;EAMDC,QAAQ,CAACC,IAAD,EAAeC,KAAf,EAA+B;IACrC,KAAKJ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ACE,KADJ;MAEbC,MAAM,EAAEH,SAAS,CAACG,MAFL;MAGbC,UAAU,EAAE,KAAK7J,SAAL,CAAe8J,UAAf,CAA0BC,IAHzB;MAIbC,SAAS,EAAE,IAAArI,aAAA,EAAQ,KAAK3B,SAAL,CAAeiK,SAAvB,EAAkCR,SAAS,CAACO,SAA5C,CAJE;MAKbE,SAAS,EAAE,IAAAvI,aAAA,EAAQ,KAAK3B,SAAL,CAAemK,SAAvB,EAAkCV,SAAS,CAACS,SAA5C;IALE,CAAf;IAOA,OAAO,KAAKjK,GAAL,CAASqJ,UAAT,CAAoBC,IAApB,EAA0BC,IAA1B,EAAgCE,MAAhC,CAAP;EACD;;AA/XH"}
1
+ {"version":3,"names":["_Host","require","_JsiSkPaint","_JsiSkRect","_JsiSkRRect","_JsiSkImage","_JsiSkVertices","_JsiSkPath","_JsiSkFont","_JsiSkTextBlob","_JsiSkPicture","_JsiSkMatrix","_JsiSkImageFilter","_JsiSkPoint","_JsiSkRSXform","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkCanvas","HostObject","constructor","CanvasKit","ref","delete","drawRect","rect","paint","JsiSkRect","fromValue","JsiSkPaint","drawImage","image","x","y","JsiSkImage","drawImageRect","img","src","dest","fastSample","drawImageCubic","left","top","B","C","drawImageOptions","fm","mm","getEnum","FilterMode","MipmapMode","drawImageNine","center","filter","Array","from","drawImageRectCubic","drawImageRectOptions","drawPaint","drawLine","x0","y0","x1","y1","drawCircle","cx","cy","radius","drawVertices","verts","mode","JsiSkVertices","BlendMode","drawPatch","cubics","colors","texs","map","flat","flatMap","p","JsiSkPoint","undefined","restoreToCount","saveCount","drawPoints","points","PointMode","drawArc","oval","startAngle","sweepAngle","useCenter","drawRRect","rrect","JsiSkRRect","drawDRRect","outer","inner","drawOval","drawPath","path","JsiSkPath","drawText","str","font","JsiSkFont","drawTextBlob","blob","JsiSkTextBlob","drawGlyphs","glyphs","positions","drawSvg","_svgDom","_width","_height","Error","save","saveLayer","bounds","backdrop","flags","JsiSkImageFilter","restore","rotate","rotationInDegrees","rx","ry","scale","sx","sy","skew","translate","dx","dy","drawColor","color","blendMode","clear","clipPath","op","doAntiAlias","PathOp","clipRect","clipRRect","concat","m","isArray","JsiSkMatrix","drawPicture","skp","JsiSkPicture","drawAtlas","atlas","srcs","dsts","_sampling","s","dst","JsiSkRSXform","cls","Uint32Array","length","g","b","a","ColorAsInt","DstOver","readPixels","srcX","srcY","imageInfo","pxInfo","width","height","colorSpace","ColorSpace","SRGB","alphaType","AlphaType","colorType","ColorType","exports"],"sources":["JsiSkCanvas.ts"],"sourcesContent":["import type { Canvas, CanvasKit } from \"canvaskit-wasm\";\n\nimport {\n type BlendMode,\n type ClipOp,\n type FilterMode,\n type MipmapMode,\n type PointMode,\n type SaveLayerFlag,\n type ImageInfo,\n type SkCanvas,\n type SkColor,\n type SkFont,\n type SkImage,\n type SkImageFilter,\n type SkMatrix,\n type SkPaint,\n type SkPath,\n type SkPicture,\n type SkPoint,\n type SkRect,\n type InputRRect,\n type SkSVG,\n type SkTextBlob,\n type SkVertices,\n type SkRSXform,\n type CubicResampler,\n type FilterOptions,\n} from \"../types\";\n\nimport { getEnum, HostObject } from \"./Host\";\nimport { JsiSkPaint } from \"./JsiSkPaint\";\nimport { JsiSkRect } from \"./JsiSkRect\";\nimport { JsiSkRRect } from \"./JsiSkRRect\";\nimport { JsiSkImage } from \"./JsiSkImage\";\nimport { JsiSkVertices } from \"./JsiSkVertices\";\nimport { JsiSkPath } from \"./JsiSkPath\";\nimport { JsiSkFont } from \"./JsiSkFont\";\nimport { JsiSkTextBlob } from \"./JsiSkTextBlob\";\nimport { JsiSkPicture } from \"./JsiSkPicture\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkImageFilter } from \"./JsiSkImageFilter\";\nimport { JsiSkPoint } from \"./JsiSkPoint\";\nimport { JsiSkRSXform } from \"./JsiSkRSXform\";\n\nexport class JsiSkCanvas\n extends HostObject<Canvas, \"Canvas\">\n implements SkCanvas\n{\n constructor(CanvasKit: CanvasKit, ref: Canvas) {\n super(CanvasKit, ref, \"Canvas\");\n }\n\n dispose = () => {\n this.ref.delete();\n };\n\n drawRect(rect: SkRect, paint: SkPaint) {\n this.ref.drawRect(\n JsiSkRect.fromValue(this.CanvasKit, rect),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawImage(image: SkImage, x: number, y: number, paint?: SkPaint) {\n this.ref.drawImage(\n JsiSkImage.fromValue(image),\n x,\n y,\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawImageRect(\n img: SkImage,\n src: SkRect,\n dest: SkRect,\n paint: SkPaint,\n fastSample?: boolean\n ) {\n this.ref.drawImageRect(\n JsiSkImage.fromValue(img),\n JsiSkRect.fromValue(this.CanvasKit, src),\n JsiSkRect.fromValue(this.CanvasKit, dest),\n JsiSkPaint.fromValue(paint),\n fastSample\n );\n }\n\n drawImageCubic(\n img: SkImage,\n left: number,\n top: number,\n B: number,\n C: number,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageCubic(\n JsiSkImage.fromValue(img),\n left,\n top,\n B,\n C,\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawImageOptions(\n img: SkImage,\n left: number,\n top: number,\n fm: FilterMode,\n mm: MipmapMode,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageOptions(\n JsiSkImage.fromValue(img),\n left,\n top,\n getEnum(this.CanvasKit.FilterMode, fm),\n getEnum(this.CanvasKit.MipmapMode, mm),\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawImageNine(\n img: SkImage,\n center: SkRect,\n dest: SkRect,\n filter: FilterMode,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageNine(\n JsiSkImage.fromValue(img),\n Array.from(JsiSkRect.fromValue(this.CanvasKit, center)),\n JsiSkRect.fromValue(this.CanvasKit, dest),\n getEnum(this.CanvasKit.FilterMode, filter),\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawImageRectCubic(\n img: SkImage,\n src: SkRect,\n dest: SkRect,\n B: number,\n C: number,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageRectCubic(\n JsiSkImage.fromValue(img),\n JsiSkRect.fromValue(this.CanvasKit, src),\n JsiSkRect.fromValue(this.CanvasKit, dest),\n B,\n C,\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawImageRectOptions(\n img: SkImage,\n src: SkRect,\n dest: SkRect,\n fm: FilterMode,\n mm: MipmapMode,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageRectOptions(\n JsiSkImage.fromValue(img),\n JsiSkRect.fromValue(this.CanvasKit, src),\n JsiSkRect.fromValue(this.CanvasKit, dest),\n getEnum(this.CanvasKit.FilterMode, fm),\n getEnum(this.CanvasKit.MipmapMode, mm),\n paint ? JsiSkPaint.fromValue(paint) : paint\n );\n }\n\n drawPaint(paint: SkPaint) {\n this.ref.drawPaint(JsiSkPaint.fromValue(paint));\n }\n\n drawLine(x0: number, y0: number, x1: number, y1: number, paint: SkPaint) {\n this.ref.drawLine(x0, y0, x1, y1, JsiSkPaint.fromValue(paint));\n }\n\n drawCircle(cx: number, cy: number, radius: number, paint: SkPaint) {\n this.ref.drawCircle(cx, cy, radius, JsiSkPaint.fromValue(paint));\n }\n\n drawVertices(verts: SkVertices, mode: BlendMode, paint: SkPaint) {\n this.ref.drawVertices(\n JsiSkVertices.fromValue(verts),\n getEnum(this.CanvasKit.BlendMode, mode),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawPatch(\n cubics: SkPoint[],\n colors?: SkColor[] | null,\n texs?: SkPoint[] | null,\n mode?: BlendMode | null,\n paint?: SkPaint\n ) {\n this.ref.drawPatch(\n cubics.map(({ x, y }) => [x, y]).flat(),\n colors,\n texs ? texs.flatMap((p) => Array.from(JsiSkPoint.fromValue(p))) : texs,\n mode ? getEnum(this.CanvasKit.BlendMode, mode) : null,\n paint ? JsiSkPaint.fromValue(paint) : undefined\n );\n }\n\n restoreToCount(saveCount: number) {\n this.ref.restoreToCount(saveCount);\n }\n\n drawPoints(mode: PointMode, points: SkPoint[], paint: SkPaint) {\n this.ref.drawPoints(\n getEnum(this.CanvasKit.PointMode, mode),\n points.map(({ x, y }) => [x, y]).flat(),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawArc(\n oval: SkRect,\n startAngle: number,\n sweepAngle: number,\n useCenter: boolean,\n paint: SkPaint\n ) {\n this.ref.drawArc(\n JsiSkRect.fromValue(this.CanvasKit, oval),\n startAngle,\n sweepAngle,\n useCenter,\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawRRect(rrect: InputRRect, paint: SkPaint) {\n this.ref.drawRRect(\n JsiSkRRect.fromValue(this.CanvasKit, rrect),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawDRRect(outer: InputRRect, inner: InputRRect, paint: SkPaint) {\n this.ref.drawDRRect(\n JsiSkRRect.fromValue(this.CanvasKit, outer),\n JsiSkRRect.fromValue(this.CanvasKit, inner),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawOval(oval: SkRect, paint: SkPaint) {\n this.ref.drawOval(\n JsiSkRect.fromValue(this.CanvasKit, oval),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawPath(path: SkPath, paint: SkPaint) {\n this.ref.drawPath(JsiSkPath.fromValue(path), JsiSkPaint.fromValue(paint));\n }\n\n drawText(str: string, x: number, y: number, paint: SkPaint, font: SkFont) {\n this.ref.drawText(\n str,\n x,\n y,\n JsiSkPaint.fromValue(paint),\n JsiSkFont.fromValue(font)\n );\n }\n\n drawTextBlob(blob: SkTextBlob, x: number, y: number, paint: SkPaint) {\n this.ref.drawTextBlob(\n JsiSkTextBlob.fromValue(blob),\n x,\n y,\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawGlyphs(\n glyphs: number[],\n positions: SkPoint[],\n x: number,\n y: number,\n font: SkFont,\n paint: SkPaint\n ) {\n this.ref.drawGlyphs(\n glyphs,\n positions.map((p) => [p.x, p.y]).flat(),\n x,\n y,\n JsiSkFont.fromValue(font),\n JsiSkPaint.fromValue(paint)\n );\n }\n\n drawSvg(_svgDom: SkSVG, _width?: number, _height?: number) {\n throw new Error(\"drawSvg is not implemented on React Native Web\");\n }\n\n save() {\n return this.ref.save();\n }\n\n saveLayer(\n paint?: SkPaint,\n bounds?: SkRect | null,\n backdrop?: SkImageFilter | null,\n flags?: SaveLayerFlag\n ) {\n return this.ref.saveLayer(\n paint ? JsiSkPaint.fromValue(paint) : undefined,\n bounds ? JsiSkRect.fromValue(this.CanvasKit, bounds) : bounds,\n backdrop ? JsiSkImageFilter.fromValue(backdrop) : backdrop,\n flags\n );\n }\n\n restore() {\n this.ref.restore();\n }\n\n rotate(rotationInDegrees: number, rx: number, ry: number) {\n this.ref.rotate(rotationInDegrees, rx, ry);\n }\n\n scale(sx: number, sy: number) {\n this.ref.scale(sx, sy);\n }\n\n skew(sx: number, sy: number) {\n this.ref.skew(sx, sy);\n }\n\n translate(dx: number, dy: number) {\n this.ref.translate(dx, dy);\n }\n\n drawColor(color: SkColor, blendMode?: BlendMode) {\n this.ref.drawColor(\n color,\n blendMode ? getEnum(this.CanvasKit.BlendMode, blendMode) : undefined\n );\n }\n\n clear(color: SkColor) {\n this.ref.clear(color);\n }\n\n clipPath(path: SkPath, op: ClipOp, doAntiAlias: boolean) {\n this.ref.clipPath(\n JsiSkPath.fromValue(path),\n getEnum(this.CanvasKit.PathOp, op),\n doAntiAlias\n );\n }\n\n clipRect(rect: SkRect, op: ClipOp, doAntiAlias: boolean) {\n this.ref.clipRect(\n JsiSkRect.fromValue(this.CanvasKit, rect),\n getEnum(this.CanvasKit.PathOp, op),\n doAntiAlias\n );\n }\n\n clipRRect(rrect: InputRRect, op: ClipOp, doAntiAlias: boolean) {\n this.ref.clipRRect(\n JsiSkRRect.fromValue(this.CanvasKit, rrect),\n getEnum(this.CanvasKit.PathOp, op),\n doAntiAlias\n );\n }\n\n concat(m: SkMatrix | number[]) {\n this.ref.concat(Array.isArray(m) ? m : JsiSkMatrix.fromValue(m));\n }\n\n drawPicture(skp: SkPicture) {\n this.ref.drawPicture(JsiSkPicture.fromValue(skp));\n }\n\n drawAtlas(\n atlas: SkImage,\n srcs: SkRect[],\n dsts: SkRSXform[],\n paint: SkPaint,\n blendMode?: BlendMode,\n colors?: SkColor[],\n _sampling?: CubicResampler | FilterOptions\n ) {\n const src = srcs.flatMap((s) =>\n Array.from(JsiSkRect.fromValue(this.CanvasKit, s))\n );\n const dst = dsts.flatMap((s) => Array.from(JsiSkRSXform.fromValue(s)));\n let cls: Uint32Array | undefined;\n if (colors) {\n cls = new Uint32Array(colors.length);\n for (let i = 0; i < colors.length; i++) {\n const [r, g, b, a] = colors[i];\n cls[i] = this.CanvasKit.ColorAsInt(r * 255, g * 255, b * 255, a * 255);\n }\n }\n this.ref.drawAtlas(\n JsiSkImage.fromValue(atlas),\n src,\n dst,\n JsiSkPaint.fromValue(paint),\n blendMode\n ? getEnum(this.CanvasKit.BlendMode, blendMode)\n : this.CanvasKit.BlendMode.DstOver,\n cls\n );\n }\n\n readPixels(srcX: number, srcY: number, imageInfo: ImageInfo) {\n const pxInfo = {\n width: imageInfo.width,\n height: imageInfo.height,\n colorSpace: this.CanvasKit.ColorSpace.SRGB,\n alphaType: getEnum(this.CanvasKit.AlphaType, imageInfo.alphaType),\n colorType: getEnum(this.CanvasKit.ColorType, imageInfo.colorType),\n };\n return this.ref.readPixels(srcX, srcY, pxInfo);\n }\n}\n"],"mappings":";;;;;;AA8BA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO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