@shopify/react-native-skia 0.1.237 → 0.1.239

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1050) hide show
  1. package/cpp/rnskia/dom/base/JsiDomNode.h +16 -0
  2. package/cpp/rnskia/dom/nodes/JsiAtlasNode.h +0 -1
  3. package/ios/RNSkia-iOS/RNSkiOSPlatformContext.h +4 -3
  4. package/ios/RNSkia-iOS/SkiaManager.h +3 -1
  5. package/ios/RNSkia-iOS/SkiaManager.mm +6 -5
  6. package/ios/RNSkiaModule.mm +7 -1
  7. package/lib/commonjs/Platform/Platform.js +1 -5
  8. package/lib/commonjs/Platform/Platform.js.map +1 -1
  9. package/lib/commonjs/Platform/Platform.web.js +11 -33
  10. package/lib/commonjs/Platform/Platform.web.js.map +1 -1
  11. package/lib/commonjs/Platform/index.js +0 -2
  12. package/lib/commonjs/Platform/index.js.map +1 -1
  13. package/lib/commonjs/animation/functions/index.js +0 -8
  14. package/lib/commonjs/animation/functions/index.js.map +1 -1
  15. package/lib/commonjs/animation/functions/interpolate.js +12 -31
  16. package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
  17. package/lib/commonjs/animation/functions/interpolateColors.js +2 -13
  18. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  19. package/lib/commonjs/animation/functions/interpolatePaths.js +1 -16
  20. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
  21. package/lib/commonjs/animation/functions/interpolateVector.js +0 -5
  22. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
  23. package/lib/commonjs/animation/index.js +0 -2
  24. package/lib/commonjs/animation/index.js.map +1 -1
  25. package/lib/commonjs/dom/nodes/DrawingNode.js +7 -22
  26. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
  27. package/lib/commonjs/dom/nodes/GroupNode.js +0 -6
  28. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
  29. package/lib/commonjs/dom/nodes/JsiSkDOM.js +25 -87
  30. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  31. package/lib/commonjs/dom/nodes/LayerNode.js +0 -11
  32. package/lib/commonjs/dom/nodes/LayerNode.js.map +1 -1
  33. package/lib/commonjs/dom/nodes/Node.js +4 -36
  34. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  35. package/lib/commonjs/dom/nodes/PaintNode.js +1 -29
  36. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
  37. package/lib/commonjs/dom/nodes/RenderNode.js +3 -35
  38. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
  39. package/lib/commonjs/dom/nodes/datatypes/Circle.js +6 -8
  40. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
  41. package/lib/commonjs/dom/nodes/datatypes/Enum.js +0 -2
  42. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
  43. package/lib/commonjs/dom/nodes/datatypes/Fitting.js +15 -46
  44. package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
  45. package/lib/commonjs/dom/nodes/datatypes/Gradient.js +9 -20
  46. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
  47. package/lib/commonjs/dom/nodes/datatypes/Path.js +2 -8
  48. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
  49. package/lib/commonjs/dom/nodes/datatypes/Radius.js +0 -3
  50. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
  51. package/lib/commonjs/dom/nodes/datatypes/Rect.js +10 -15
  52. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
  53. package/lib/commonjs/dom/nodes/datatypes/Transform.js +0 -6
  54. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
  55. package/lib/commonjs/dom/nodes/datatypes/index.js +0 -16
  56. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
  57. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js +4 -15
  58. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js.map +1 -1
  59. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js +4 -18
  60. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  61. package/lib/commonjs/dom/nodes/drawings/Box.js +8 -34
  62. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
  63. package/lib/commonjs/dom/nodes/drawings/CircleNode.js +4 -15
  64. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
  65. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js +4 -12
  66. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  67. package/lib/commonjs/dom/nodes/drawings/FillNode.js +5 -14
  68. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
  69. package/lib/commonjs/dom/nodes/drawings/ImageNode.js +6 -19
  70. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
  71. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js +3 -18
  72. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
  73. package/lib/commonjs/dom/nodes/drawings/LineNode.js +4 -12
  74. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
  75. package/lib/commonjs/dom/nodes/drawings/OvalNode.js +4 -15
  76. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
  77. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js +3 -12
  78. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  79. package/lib/commonjs/dom/nodes/drawings/PatchNode.js +6 -18
  80. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
  81. package/lib/commonjs/dom/nodes/drawings/PathNode.js +4 -21
  82. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
  83. package/lib/commonjs/dom/nodes/drawings/PictureNode.js +3 -11
  84. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
  85. package/lib/commonjs/dom/nodes/drawings/PointsNode.js +4 -14
  86. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
  87. package/lib/commonjs/dom/nodes/drawings/RRectNode.js +7 -18
  88. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
  89. package/lib/commonjs/dom/nodes/drawings/RectNode.js +4 -15
  90. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
  91. package/lib/commonjs/dom/nodes/drawings/Text.js +18 -62
  92. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
  93. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js +4 -16
  94. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
  95. package/lib/commonjs/dom/nodes/drawings/index.js +0 -36
  96. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  97. package/lib/commonjs/dom/nodes/index.js +0 -6
  98. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  99. package/lib/commonjs/dom/nodes/paint/BlendNode.js +4 -18
  100. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
  101. package/lib/commonjs/dom/nodes/paint/ColorFilters.js +0 -34
  102. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
  103. package/lib/commonjs/dom/nodes/paint/ImageFilters.js +7 -60
  104. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
  105. package/lib/commonjs/dom/nodes/paint/MaskFilters.js +0 -8
  106. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
  107. package/lib/commonjs/dom/nodes/paint/PathEffects.js +0 -45
  108. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
  109. package/lib/commonjs/dom/nodes/paint/Shaders.js +1 -48
  110. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
  111. package/lib/commonjs/dom/nodes/paint/index.js +0 -12
  112. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
  113. package/lib/commonjs/dom/types/DeclarationContext.js +3 -30
  114. package/lib/commonjs/dom/types/DeclarationContext.js.map +1 -1
  115. package/lib/commonjs/dom/types/DrawingContext.js +3 -91
  116. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  117. package/lib/commonjs/dom/types/NodeType.js +6 -11
  118. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  119. package/lib/commonjs/dom/types/index.js +0 -26
  120. package/lib/commonjs/dom/types/index.js.map +1 -1
  121. package/lib/commonjs/external/index.js +0 -2
  122. package/lib/commonjs/external/index.js.map +1 -1
  123. package/lib/commonjs/external/reanimated/buffers.d.ts +6 -4
  124. package/lib/commonjs/external/reanimated/buffers.js +25 -24
  125. package/lib/commonjs/external/reanimated/buffers.js.map +1 -1
  126. package/lib/commonjs/external/reanimated/index.js +0 -12
  127. package/lib/commonjs/external/reanimated/index.js.map +1 -1
  128. package/lib/commonjs/external/reanimated/interpolators.d.ts +1 -1
  129. package/lib/commonjs/external/reanimated/interpolators.js +5 -20
  130. package/lib/commonjs/external/reanimated/interpolators.js.map +1 -1
  131. package/lib/commonjs/external/reanimated/moduleWrapper.js +12 -29
  132. package/lib/commonjs/external/reanimated/moduleWrapper.js.map +1 -1
  133. package/lib/commonjs/external/reanimated/renderHelpers.js +5 -31
  134. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
  135. package/lib/commonjs/external/reanimated/textures.d.ts +6 -3
  136. package/lib/commonjs/external/reanimated/textures.js +52 -15
  137. package/lib/commonjs/external/reanimated/textures.js.map +1 -1
  138. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +11 -16
  139. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -1
  140. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js +0 -4
  141. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  142. package/lib/commonjs/headless/index.js +1 -12
  143. package/lib/commonjs/headless/index.js.map +1 -1
  144. package/lib/commonjs/index.js +0 -20
  145. package/lib/commonjs/index.js.map +1 -1
  146. package/lib/commonjs/mock/index.js +0 -6
  147. package/lib/commonjs/mock/index.js.map +1 -1
  148. package/lib/commonjs/renderer/Canvas.js +21 -46
  149. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  150. package/lib/commonjs/renderer/Container.js +4 -15
  151. package/lib/commonjs/renderer/Container.js.map +1 -1
  152. package/lib/commonjs/renderer/HostComponents.js +1 -65
  153. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  154. package/lib/commonjs/renderer/HostConfig.js +9 -38
  155. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  156. package/lib/commonjs/renderer/Offscreen.js +2 -12
  157. package/lib/commonjs/renderer/Offscreen.js.map +1 -1
  158. package/lib/commonjs/renderer/Reconciler.js +4 -20
  159. package/lib/commonjs/renderer/Reconciler.js.map +1 -1
  160. package/lib/commonjs/renderer/components/Blend.js +0 -4
  161. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  162. package/lib/commonjs/renderer/components/Group.js +6 -15
  163. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  164. package/lib/commonjs/renderer/components/Mask.js +6 -14
  165. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  166. package/lib/commonjs/renderer/components/Paint.js +0 -4
  167. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  168. package/lib/commonjs/renderer/components/Picture.js +0 -4
  169. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  170. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +5 -13
  171. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  172. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +5 -11
  173. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  174. package/lib/commonjs/renderer/components/backdrop/index.js +0 -4
  175. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
  176. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +0 -4
  177. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  178. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +0 -4
  179. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  180. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +0 -4
  181. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  182. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +0 -4
  183. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  184. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +0 -6
  185. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  186. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +0 -4
  187. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  188. package/lib/commonjs/renderer/components/colorFilters/index.js +0 -12
  189. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
  190. package/lib/commonjs/renderer/components/image/Image.js +0 -4
  191. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  192. package/lib/commonjs/renderer/components/image/ImageSVG.js +0 -4
  193. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  194. package/lib/commonjs/renderer/components/image/ImageShader.js +9 -15
  195. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  196. package/lib/commonjs/renderer/components/image/index.js +0 -6
  197. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  198. package/lib/commonjs/renderer/components/imageFilters/Blur.js +4 -10
  199. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  200. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +0 -4
  201. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  202. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +4 -10
  203. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  204. package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -11
  205. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  206. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +0 -4
  207. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  208. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +0 -4
  209. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  210. package/lib/commonjs/renderer/components/imageFilters/index.js +0 -12
  211. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
  212. package/lib/commonjs/renderer/components/index.js +0 -32
  213. package/lib/commonjs/renderer/components/index.js.map +1 -1
  214. package/lib/commonjs/renderer/components/maskFilters/Blur.js +5 -11
  215. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  216. package/lib/commonjs/renderer/components/maskFilters/index.js +0 -2
  217. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
  218. package/lib/commonjs/renderer/components/paragraph/Paragraph.js +0 -4
  219. package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -1
  220. package/lib/commonjs/renderer/components/paragraph/index.js +0 -2
  221. package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -1
  222. package/lib/commonjs/renderer/components/pathEffects/Corner.js +0 -4
  223. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  224. package/lib/commonjs/renderer/components/pathEffects/Dash.js +0 -4
  225. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  226. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +4 -10
  227. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  228. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +0 -4
  229. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  230. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +0 -4
  231. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  232. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +0 -4
  233. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  234. package/lib/commonjs/renderer/components/pathEffects/Sum.js +0 -4
  235. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  236. package/lib/commonjs/renderer/components/pathEffects/index.js +0 -14
  237. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
  238. package/lib/commonjs/renderer/components/shaders/Color.js +0 -4
  239. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  240. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +6 -12
  241. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  242. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +0 -4
  243. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  244. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +0 -4
  245. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  246. package/lib/commonjs/renderer/components/shaders/Shader.js +4 -10
  247. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  248. package/lib/commonjs/renderer/components/shaders/ShaderLib.js +1 -2
  249. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
  250. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +0 -4
  251. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  252. package/lib/commonjs/renderer/components/shaders/Turbulence.js +6 -12
  253. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  254. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +0 -4
  255. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  256. package/lib/commonjs/renderer/components/shaders/index.js +0 -18
  257. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
  258. package/lib/commonjs/renderer/components/shapes/Atlas.js +0 -4
  259. package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -1
  260. package/lib/commonjs/renderer/components/shapes/Box.js +0 -6
  261. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  262. package/lib/commonjs/renderer/components/shapes/Circle.js +0 -4
  263. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  264. package/lib/commonjs/renderer/components/shapes/DiffRect.js +0 -4
  265. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  266. package/lib/commonjs/renderer/components/shapes/Fill.js +0 -4
  267. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  268. package/lib/commonjs/renderer/components/shapes/FitBox.js +8 -18
  269. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  270. package/lib/commonjs/renderer/components/shapes/Line.js +0 -4
  271. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  272. package/lib/commonjs/renderer/components/shapes/Oval.js +0 -4
  273. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  274. package/lib/commonjs/renderer/components/shapes/Patch.js +0 -4
  275. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  276. package/lib/commonjs/renderer/components/shapes/Path.js +5 -11
  277. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  278. package/lib/commonjs/renderer/components/shapes/Points.js +4 -10
  279. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  280. package/lib/commonjs/renderer/components/shapes/Rect.js +0 -4
  281. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  282. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +0 -4
  283. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  284. package/lib/commonjs/renderer/components/shapes/Vertices.js +4 -10
  285. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  286. package/lib/commonjs/renderer/components/shapes/index.js +0 -28
  287. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
  288. package/lib/commonjs/renderer/components/text/Glyphs.js +5 -11
  289. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  290. package/lib/commonjs/renderer/components/text/Text.js +5 -11
  291. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  292. package/lib/commonjs/renderer/components/text/TextBlob.js +5 -11
  293. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  294. package/lib/commonjs/renderer/components/text/TextPath.js +4 -10
  295. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  296. package/lib/commonjs/renderer/components/text/index.js +0 -8
  297. package/lib/commonjs/renderer/components/text/index.js.map +1 -1
  298. package/lib/commonjs/renderer/index.js +0 -2
  299. package/lib/commonjs/renderer/index.js.map +1 -1
  300. package/lib/commonjs/renderer/processors/Animations/index.js +0 -2
  301. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
  302. package/lib/commonjs/renderer/processors/index.js +0 -4
  303. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  304. package/lib/commonjs/renderer/processors/math/Coordinates.js +0 -12
  305. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  306. package/lib/commonjs/renderer/processors/math/Math.js +1 -7
  307. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
  308. package/lib/commonjs/renderer/processors/math/Transforms.js +0 -3
  309. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  310. package/lib/commonjs/renderer/processors/math/index.js +0 -6
  311. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  312. package/lib/commonjs/renderer/typeddash.js +2 -11
  313. package/lib/commonjs/renderer/typeddash.js.map +1 -1
  314. package/lib/commonjs/skia/NativeSetup.js +0 -6
  315. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  316. package/lib/commonjs/skia/Skia.js +2 -3
  317. package/lib/commonjs/skia/Skia.js.map +1 -1
  318. package/lib/commonjs/skia/Skia.web.js +1 -4
  319. package/lib/commonjs/skia/Skia.web.js.map +1 -1
  320. package/lib/commonjs/skia/core/AnimatedImage.js +2 -10
  321. package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -1
  322. package/lib/commonjs/skia/core/Data.js +9 -29
  323. package/lib/commonjs/skia/core/Data.js.map +1 -1
  324. package/lib/commonjs/skia/core/Font.js +10 -36
  325. package/lib/commonjs/skia/core/Font.js.map +1 -1
  326. package/lib/commonjs/skia/core/Image.js +3 -16
  327. package/lib/commonjs/skia/core/Image.js.map +1 -1
  328. package/lib/commonjs/skia/core/Matrix.js +0 -4
  329. package/lib/commonjs/skia/core/Matrix.js.map +1 -1
  330. package/lib/commonjs/skia/core/Picture.js +0 -7
  331. package/lib/commonjs/skia/core/Picture.js.map +1 -1
  332. package/lib/commonjs/skia/core/RRect.js +0 -3
  333. package/lib/commonjs/skia/core/RRect.js.map +1 -1
  334. package/lib/commonjs/skia/core/Rect.js +0 -17
  335. package/lib/commonjs/skia/core/Rect.js.map +1 -1
  336. package/lib/commonjs/skia/core/SVG.js +0 -5
  337. package/lib/commonjs/skia/core/SVG.js.map +1 -1
  338. package/lib/commonjs/skia/core/Typeface.js +1 -6
  339. package/lib/commonjs/skia/core/Typeface.js.map +1 -1
  340. package/lib/commonjs/skia/core/Vector.js +3 -17
  341. package/lib/commonjs/skia/core/Vector.js.map +1 -1
  342. package/lib/commonjs/skia/core/index.js +0 -22
  343. package/lib/commonjs/skia/core/index.js.map +1 -1
  344. package/lib/commonjs/skia/index.js +0 -5
  345. package/lib/commonjs/skia/index.js.map +1 -1
  346. package/lib/commonjs/skia/types/AnimatedImage/index.js +0 -4
  347. package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -1
  348. package/lib/commonjs/skia/types/Canvas.js +6 -11
  349. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  350. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js +0 -2
  351. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  352. package/lib/commonjs/skia/types/ColorFilter/index.js +0 -4
  353. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
  354. package/lib/commonjs/skia/types/Data/Data.js +0 -2
  355. package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
  356. package/lib/commonjs/skia/types/Data/index.js +0 -4
  357. package/lib/commonjs/skia/types/Data/index.js.map +1 -1
  358. package/lib/commonjs/skia/types/Font/Font.js +16 -34
  359. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  360. package/lib/commonjs/skia/types/Font/index.js +0 -6
  361. package/lib/commonjs/skia/types/Font/index.js.map +1 -1
  362. package/lib/commonjs/skia/types/Image/Image.js +9 -17
  363. package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
  364. package/lib/commonjs/skia/types/Image/ImageFactory.js +6 -11
  365. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  366. package/lib/commonjs/skia/types/Image/index.js +0 -4
  367. package/lib/commonjs/skia/types/Image/index.js.map +1 -1
  368. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +3 -7
  369. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  370. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +3 -5
  371. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  372. package/lib/commonjs/skia/types/ImageFilter/index.js +0 -4
  373. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
  374. package/lib/commonjs/skia/types/MaskFilter.js +4 -8
  375. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
  376. package/lib/commonjs/skia/types/Matrix.js +0 -7
  377. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  378. package/lib/commonjs/skia/types/Matrix4.js +22 -90
  379. package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
  380. package/lib/commonjs/skia/types/Paint/BlendMode.js +3 -6
  381. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
  382. package/lib/commonjs/skia/types/Paint/Paint.js +9 -19
  383. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
  384. package/lib/commonjs/skia/types/Paint/index.js +0 -4
  385. package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
  386. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js +3 -5
  387. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  388. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js +9 -17
  389. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  390. package/lib/commonjs/skia/types/Paragraph/TextStyle.js +9 -17
  391. package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -1
  392. package/lib/commonjs/skia/types/Paragraph/index.js +0 -12
  393. package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -1
  394. package/lib/commonjs/skia/types/Path/Path.js +9 -20
  395. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  396. package/lib/commonjs/skia/types/Path/index.js +0 -4
  397. package/lib/commonjs/skia/types/Path/index.js.map +1 -1
  398. package/lib/commonjs/skia/types/PathEffect.js +3 -7
  399. package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
  400. package/lib/commonjs/skia/types/Picture/index.js +0 -6
  401. package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
  402. package/lib/commonjs/skia/types/Point.js +3 -5
  403. package/lib/commonjs/skia/types/Point.js.map +1 -1
  404. package/lib/commonjs/skia/types/RRect.js +2 -3
  405. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  406. package/lib/commonjs/skia/types/Rect.js +0 -3
  407. package/lib/commonjs/skia/types/Rect.js.map +1 -1
  408. package/lib/commonjs/skia/types/RuntimeEffect/index.js +0 -4
  409. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
  410. package/lib/commonjs/skia/types/SVG/index.js +0 -4
  411. package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
  412. package/lib/commonjs/skia/types/Shader/Shader.js +4 -12
  413. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  414. package/lib/commonjs/skia/types/Shader/index.js +0 -4
  415. package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
  416. package/lib/commonjs/skia/types/Surface/index.js +0 -4
  417. package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
  418. package/lib/commonjs/skia/types/Typeface/index.js +0 -4
  419. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
  420. package/lib/commonjs/skia/types/Vertices/Vertices.js +3 -5
  421. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
  422. package/lib/commonjs/skia/types/Vertices/index.js +0 -2
  423. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
  424. package/lib/commonjs/skia/types/index.js +0 -62
  425. package/lib/commonjs/skia/types/index.js.map +1 -1
  426. package/lib/commonjs/skia/web/Host.js +7 -29
  427. package/lib/commonjs/skia/web/Host.js.map +1 -1
  428. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +3 -13
  429. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -1
  430. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js +0 -9
  431. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  432. package/lib/commonjs/skia/web/JsiSkCanvas.js +11 -77
  433. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  434. package/lib/commonjs/skia/web/JsiSkColor.js +10 -54
  435. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
  436. package/lib/commonjs/skia/web/JsiSkColorFilter.js +3 -7
  437. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
  438. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +0 -12
  439. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  440. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +3 -13
  441. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
  442. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +3 -11
  443. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  444. package/lib/commonjs/skia/web/JsiSkData.js +5 -8
  445. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
  446. package/lib/commonjs/skia/web/JsiSkDataFactory.js +0 -10
  447. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
  448. package/lib/commonjs/skia/web/JsiSkFont.js +5 -33
  449. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  450. package/lib/commonjs/skia/web/JsiSkFontMgr.js +0 -8
  451. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -1
  452. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +0 -8
  453. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  454. package/lib/commonjs/skia/web/JsiSkImage.js +11 -33
  455. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
  456. package/lib/commonjs/skia/web/JsiSkImageFactory.js +2 -15
  457. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  458. package/lib/commonjs/skia/web/JsiSkImageFilter.js +3 -7
  459. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
  460. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +0 -28
  461. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  462. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +3 -7
  463. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
  464. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +0 -6
  465. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  466. package/lib/commonjs/skia/web/JsiSkMatrix.js +9 -26
  467. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  468. package/lib/commonjs/skia/web/JsiSkPaint.js +3 -35
  469. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  470. package/lib/commonjs/skia/web/JsiSkParagraph.js +21 -47
  471. package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
  472. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js +4 -26
  473. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  474. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +1 -11
  475. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  476. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js +19 -24
  477. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -1
  478. package/lib/commonjs/skia/web/JsiSkPath.js +4 -77
  479. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  480. package/lib/commonjs/skia/web/JsiSkPathEffect.js +3 -7
  481. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
  482. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +0 -23
  483. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  484. package/lib/commonjs/skia/web/JsiSkPathFactory.js +0 -16
  485. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
  486. package/lib/commonjs/skia/web/JsiSkPicture.js +3 -13
  487. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
  488. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +0 -8
  489. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
  490. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +4 -13
  491. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
  492. package/lib/commonjs/skia/web/JsiSkPoint.js +5 -12
  493. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
  494. package/lib/commonjs/skia/web/JsiSkRRect.js +5 -17
  495. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
  496. package/lib/commonjs/skia/web/JsiSkRSXform.js +5 -15
  497. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
  498. package/lib/commonjs/skia/web/JsiSkRect.js +5 -15
  499. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
  500. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +3 -16
  501. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  502. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +0 -8
  503. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  504. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +0 -6
  505. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
  506. package/lib/commonjs/skia/web/JsiSkShader.js +3 -7
  507. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
  508. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +0 -15
  509. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
  510. package/lib/commonjs/skia/web/JsiSkSurface.js +3 -13
  511. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
  512. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +0 -14
  513. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  514. package/lib/commonjs/skia/web/JsiSkTextBlob.js +3 -7
  515. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
  516. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +0 -11
  517. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  518. package/lib/commonjs/skia/web/JsiSkTextStyle.js +0 -3
  519. package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -1
  520. package/lib/commonjs/skia/web/JsiSkTypeface.js +3 -10
  521. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
  522. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +0 -8
  523. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  524. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +16 -26
  525. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  526. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -6
  527. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  528. package/lib/commonjs/skia/web/JsiSkVertices.js +3 -10
  529. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
  530. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +8 -27
  531. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
  532. package/lib/commonjs/skia/web/JsiSkia.js +0 -33
  533. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  534. package/lib/commonjs/skia/web/index.js +0 -2
  535. package/lib/commonjs/skia/web/index.js.map +1 -1
  536. package/lib/commonjs/specs/NativeSkiaModule.js +1 -5
  537. package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -1
  538. package/lib/commonjs/specs/NativeSkiaModule.web.js +1 -4
  539. package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -1
  540. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +1 -6
  541. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -1
  542. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +1 -6
  543. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  544. package/lib/commonjs/views/SkiaBaseWebView.js +18 -66
  545. package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
  546. package/lib/commonjs/views/SkiaDomView.js +8 -40
  547. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  548. package/lib/commonjs/views/SkiaDomView.web.js +0 -9
  549. package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
  550. package/lib/commonjs/views/SkiaJSDomView.js +10 -43
  551. package/lib/commonjs/views/SkiaJSDomView.js.map +1 -1
  552. package/lib/commonjs/views/SkiaJSDomView.web.js +0 -1
  553. package/lib/commonjs/views/SkiaJSDomView.web.js.map +1 -1
  554. package/lib/commonjs/views/SkiaPictureView.js +6 -32
  555. package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
  556. package/lib/commonjs/views/SkiaPictureView.web.js +0 -5
  557. package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -1
  558. package/lib/commonjs/views/SkiaViewNativeId.js +1 -2
  559. package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -1
  560. package/lib/commonjs/views/api.js.map +1 -1
  561. package/lib/commonjs/views/index.js +0 -8
  562. package/lib/commonjs/views/index.js.map +1 -1
  563. package/lib/commonjs/views/types.js +3 -5
  564. package/lib/commonjs/views/types.js.map +1 -1
  565. package/lib/commonjs/views/useTouchHandler.js +19 -33
  566. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  567. package/lib/commonjs/web/LoadSkiaWeb.js +8 -12
  568. package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
  569. package/lib/commonjs/web/WithSkiaWeb.js +10 -18
  570. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  571. package/lib/commonjs/web/index.js +0 -4
  572. package/lib/commonjs/web/index.js.map +1 -1
  573. package/lib/module/Platform/Platform.js.map +1 -1
  574. package/lib/module/Platform/Platform.web.js +7 -23
  575. package/lib/module/Platform/Platform.web.js.map +1 -1
  576. package/lib/module/Platform/index.js.map +1 -1
  577. package/lib/module/animation/functions/index.js.map +1 -1
  578. package/lib/module/animation/functions/interpolate.js +12 -29
  579. package/lib/module/animation/functions/interpolate.js.map +1 -1
  580. package/lib/module/animation/functions/interpolateColors.js +2 -5
  581. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  582. package/lib/module/animation/functions/interpolatePaths.js +1 -13
  583. package/lib/module/animation/functions/interpolatePaths.js.map +1 -1
  584. package/lib/module/animation/functions/interpolateVector.js.map +1 -1
  585. package/lib/module/animation/index.js.map +1 -1
  586. package/lib/module/dom/nodes/DrawingNode.js +7 -17
  587. package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
  588. package/lib/module/dom/nodes/GroupNode.js +0 -2
  589. package/lib/module/dom/nodes/GroupNode.js.map +1 -1
  590. package/lib/module/dom/nodes/JsiSkDOM.js +14 -65
  591. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  592. package/lib/module/dom/nodes/LayerNode.js +0 -6
  593. package/lib/module/dom/nodes/LayerNode.js.map +1 -1
  594. package/lib/module/dom/nodes/Node.js +4 -32
  595. package/lib/module/dom/nodes/Node.js.map +1 -1
  596. package/lib/module/dom/nodes/PaintNode.js +1 -23
  597. package/lib/module/dom/nodes/PaintNode.js.map +1 -1
  598. package/lib/module/dom/nodes/RenderNode.js +3 -29
  599. package/lib/module/dom/nodes/RenderNode.js.map +1 -1
  600. package/lib/module/dom/nodes/datatypes/Circle.js +4 -4
  601. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  602. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -1
  603. package/lib/module/dom/nodes/datatypes/Fitting.js +15 -39
  604. package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -1
  605. package/lib/module/dom/nodes/datatypes/Gradient.js +7 -9
  606. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
  607. package/lib/module/dom/nodes/datatypes/Path.js +2 -3
  608. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
  609. package/lib/module/dom/nodes/datatypes/Radius.js +0 -1
  610. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
  611. package/lib/module/dom/nodes/datatypes/Rect.js +5 -7
  612. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  613. package/lib/module/dom/nodes/datatypes/Transform.js +0 -3
  614. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -1
  615. package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
  616. package/lib/module/dom/nodes/drawings/AtlasNode.js +4 -9
  617. package/lib/module/dom/nodes/drawings/AtlasNode.js.map +1 -1
  618. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js +4 -13
  619. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  620. package/lib/module/dom/nodes/drawings/Box.js +8 -27
  621. package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
  622. package/lib/module/dom/nodes/drawings/CircleNode.js +4 -10
  623. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
  624. package/lib/module/dom/nodes/drawings/DiffRectNode.js +4 -8
  625. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  626. package/lib/module/dom/nodes/drawings/FillNode.js +5 -10
  627. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
  628. package/lib/module/dom/nodes/drawings/ImageNode.js +4 -14
  629. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
  630. package/lib/module/dom/nodes/drawings/ImageSVG.js +3 -14
  631. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
  632. package/lib/module/dom/nodes/drawings/LineNode.js +4 -8
  633. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
  634. package/lib/module/dom/nodes/drawings/OvalNode.js +4 -10
  635. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
  636. package/lib/module/dom/nodes/drawings/ParagraphNode.js +3 -8
  637. package/lib/module/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  638. package/lib/module/dom/nodes/drawings/PatchNode.js +6 -12
  639. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
  640. package/lib/module/dom/nodes/drawings/PathNode.js +4 -14
  641. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
  642. package/lib/module/dom/nodes/drawings/PictureNode.js +3 -7
  643. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
  644. package/lib/module/dom/nodes/drawings/PointsNode.js +4 -8
  645. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
  646. package/lib/module/dom/nodes/drawings/RRectNode.js +7 -13
  647. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
  648. package/lib/module/dom/nodes/drawings/RectNode.js +4 -10
  649. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
  650. package/lib/module/dom/nodes/drawings/Text.js +18 -51
  651. package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
  652. package/lib/module/dom/nodes/drawings/VerticesNode.js +4 -10
  653. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
  654. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  655. package/lib/module/dom/nodes/index.js.map +1 -1
  656. package/lib/module/dom/nodes/paint/BlendNode.js +4 -9
  657. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -1
  658. package/lib/module/dom/nodes/paint/ColorFilters.js +0 -16
  659. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
  660. package/lib/module/dom/nodes/paint/ImageFilters.js +3 -40
  661. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
  662. package/lib/module/dom/nodes/paint/MaskFilters.js +0 -2
  663. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
  664. package/lib/module/dom/nodes/paint/PathEffects.js +0 -26
  665. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
  666. package/lib/module/dom/nodes/paint/Shaders.js +0 -23
  667. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
  668. package/lib/module/dom/nodes/paint/index.js.map +1 -1
  669. package/lib/module/dom/types/DeclarationContext.js +3 -27
  670. package/lib/module/dom/types/DeclarationContext.js.map +1 -1
  671. package/lib/module/dom/types/DrawingContext.js +3 -85
  672. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  673. package/lib/module/dom/types/NodeType.js +6 -9
  674. package/lib/module/dom/types/NodeType.js.map +1 -1
  675. package/lib/module/dom/types/index.js.map +1 -1
  676. package/lib/module/external/index.js.map +1 -1
  677. package/lib/module/external/reanimated/buffers.d.ts +6 -4
  678. package/lib/module/external/reanimated/buffers.js +27 -15
  679. package/lib/module/external/reanimated/buffers.js.map +1 -1
  680. package/lib/module/external/reanimated/index.js.map +1 -1
  681. package/lib/module/external/reanimated/interpolators.d.ts +1 -1
  682. package/lib/module/external/reanimated/interpolators.js +5 -4
  683. package/lib/module/external/reanimated/interpolators.js.map +1 -1
  684. package/lib/module/external/reanimated/moduleWrapper.js +2 -4
  685. package/lib/module/external/reanimated/moduleWrapper.js.map +1 -1
  686. package/lib/module/external/reanimated/renderHelpers.js +5 -28
  687. package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
  688. package/lib/module/external/reanimated/textures.d.ts +6 -3
  689. package/lib/module/external/reanimated/textures.js +46 -6
  690. package/lib/module/external/reanimated/textures.js.map +1 -1
  691. package/lib/module/external/reanimated/useAnimatedImageValue.js +11 -10
  692. package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
  693. package/lib/module/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  694. package/lib/module/headless/index.js +3 -4
  695. package/lib/module/headless/index.js.map +1 -1
  696. package/lib/module/index.js.map +1 -1
  697. package/lib/module/mock/index.js +2 -4
  698. package/lib/module/mock/index.js.map +1 -1
  699. package/lib/module/renderer/Canvas.js +17 -28
  700. package/lib/module/renderer/Canvas.js.map +1 -1
  701. package/lib/module/renderer/Container.js +4 -12
  702. package/lib/module/renderer/Container.js.map +1 -1
  703. package/lib/module/renderer/HostComponents.js +0 -58
  704. package/lib/module/renderer/HostComponents.js.map +1 -1
  705. package/lib/module/renderer/HostConfig.js +8 -29
  706. package/lib/module/renderer/HostConfig.js.map +1 -1
  707. package/lib/module/renderer/Offscreen.js +2 -1
  708. package/lib/module/renderer/Offscreen.js.map +1 -1
  709. package/lib/module/renderer/Reconciler.js +4 -13
  710. package/lib/module/renderer/Reconciler.js.map +1 -1
  711. package/lib/module/renderer/components/Blend.js.map +1 -1
  712. package/lib/module/renderer/components/Group.js +4 -8
  713. package/lib/module/renderer/components/Group.js.map +1 -1
  714. package/lib/module/renderer/components/Mask.js +6 -7
  715. package/lib/module/renderer/components/Mask.js.map +1 -1
  716. package/lib/module/renderer/components/Paint.js.map +1 -1
  717. package/lib/module/renderer/components/Picture.js.map +1 -1
  718. package/lib/module/renderer/components/backdrop/BackdropBlur.js +5 -7
  719. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  720. package/lib/module/renderer/components/backdrop/BackdropFilter.js +5 -6
  721. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  722. package/lib/module/renderer/components/backdrop/index.js.map +1 -1
  723. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  724. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  725. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  726. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  727. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  728. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  729. package/lib/module/renderer/components/colorFilters/index.js.map +1 -1
  730. package/lib/module/renderer/components/image/Image.js.map +1 -1
  731. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  732. package/lib/module/renderer/components/image/ImageShader.js +9 -11
  733. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  734. package/lib/module/renderer/components/image/index.js.map +1 -1
  735. package/lib/module/renderer/components/imageFilters/Blur.js +4 -6
  736. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  737. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  738. package/lib/module/renderer/components/imageFilters/Morphology.js +4 -6
  739. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  740. package/lib/module/renderer/components/imageFilters/Offset.js +5 -7
  741. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  742. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  743. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  744. package/lib/module/renderer/components/imageFilters/index.js.map +1 -1
  745. package/lib/module/renderer/components/index.js.map +1 -1
  746. package/lib/module/renderer/components/maskFilters/Blur.js +5 -7
  747. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  748. package/lib/module/renderer/components/maskFilters/index.js.map +1 -1
  749. package/lib/module/renderer/components/paragraph/Paragraph.js.map +1 -1
  750. package/lib/module/renderer/components/paragraph/index.js.map +1 -1
  751. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  752. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  753. package/lib/module/renderer/components/pathEffects/Discrete.js +4 -6
  754. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  755. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  756. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  757. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  758. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  759. package/lib/module/renderer/components/pathEffects/index.js.map +1 -1
  760. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  761. package/lib/module/renderer/components/shaders/FractalNoise.js +6 -8
  762. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  763. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  764. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  765. package/lib/module/renderer/components/shaders/Shader.js +4 -6
  766. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  767. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -1
  768. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  769. package/lib/module/renderer/components/shaders/Turbulence.js +6 -8
  770. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  771. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  772. package/lib/module/renderer/components/shaders/index.js.map +1 -1
  773. package/lib/module/renderer/components/shapes/Atlas.js.map +1 -1
  774. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  775. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  776. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  777. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  778. package/lib/module/renderer/components/shapes/FitBox.js +6 -7
  779. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  780. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  781. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  782. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  783. package/lib/module/renderer/components/shapes/Path.js +5 -7
  784. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  785. package/lib/module/renderer/components/shapes/Points.js +4 -6
  786. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  787. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  788. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  789. package/lib/module/renderer/components/shapes/Vertices.js +4 -6
  790. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  791. package/lib/module/renderer/components/shapes/index.js.map +1 -1
  792. package/lib/module/renderer/components/text/Glyphs.js +5 -7
  793. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  794. package/lib/module/renderer/components/text/Text.js +5 -7
  795. package/lib/module/renderer/components/text/Text.js.map +1 -1
  796. package/lib/module/renderer/components/text/TextBlob.js +5 -7
  797. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  798. package/lib/module/renderer/components/text/TextPath.js +4 -6
  799. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  800. package/lib/module/renderer/components/text/index.js.map +1 -1
  801. package/lib/module/renderer/index.js.map +1 -1
  802. package/lib/module/renderer/processors/Animations/index.js.map +1 -1
  803. package/lib/module/renderer/processors/index.js.map +1 -1
  804. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  805. package/lib/module/renderer/processors/math/Math.js +1 -1
  806. package/lib/module/renderer/processors/math/Math.js.map +1 -1
  807. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  808. package/lib/module/renderer/processors/math/index.js.map +1 -1
  809. package/lib/module/renderer/typeddash.js +2 -5
  810. package/lib/module/renderer/typeddash.js.map +1 -1
  811. package/lib/module/skia/NativeSetup.js +0 -4
  812. package/lib/module/skia/NativeSetup.js.map +1 -1
  813. package/lib/module/skia/Skia.js +1 -0
  814. package/lib/module/skia/Skia.js.map +1 -1
  815. package/lib/module/skia/Skia.web.js.map +1 -1
  816. package/lib/module/skia/core/AnimatedImage.js +2 -5
  817. package/lib/module/skia/core/AnimatedImage.js.map +1 -1
  818. package/lib/module/skia/core/Data.js +9 -21
  819. package/lib/module/skia/core/Data.js.map +1 -1
  820. package/lib/module/skia/core/Font.js +9 -24
  821. package/lib/module/skia/core/Font.js.map +1 -1
  822. package/lib/module/skia/core/Image.js +3 -8
  823. package/lib/module/skia/core/Image.js.map +1 -1
  824. package/lib/module/skia/core/Matrix.js.map +1 -1
  825. package/lib/module/skia/core/Picture.js +1 -3
  826. package/lib/module/skia/core/Picture.js.map +1 -1
  827. package/lib/module/skia/core/RRect.js.map +1 -1
  828. package/lib/module/skia/core/Rect.js.map +1 -1
  829. package/lib/module/skia/core/SVG.js.map +1 -1
  830. package/lib/module/skia/core/Typeface.js +1 -1
  831. package/lib/module/skia/core/Typeface.js.map +1 -1
  832. package/lib/module/skia/core/Vector.js +1 -3
  833. package/lib/module/skia/core/Vector.js.map +1 -1
  834. package/lib/module/skia/core/index.js.map +1 -1
  835. package/lib/module/skia/index.js.map +1 -1
  836. package/lib/module/skia/types/AnimatedImage/index.js.map +1 -1
  837. package/lib/module/skia/types/Canvas.js +6 -9
  838. package/lib/module/skia/types/Canvas.js.map +1 -1
  839. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  840. package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
  841. package/lib/module/skia/types/Data/Data.js.map +1 -1
  842. package/lib/module/skia/types/Data/index.js.map +1 -1
  843. package/lib/module/skia/types/Font/Font.js +15 -26
  844. package/lib/module/skia/types/Font/Font.js.map +1 -1
  845. package/lib/module/skia/types/Font/index.js.map +1 -1
  846. package/lib/module/skia/types/Image/Image.js +9 -14
  847. package/lib/module/skia/types/Image/Image.js.map +1 -1
  848. package/lib/module/skia/types/Image/ImageFactory.js +6 -9
  849. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  850. package/lib/module/skia/types/Image/index.js.map +1 -1
  851. package/lib/module/skia/types/ImageFilter/ImageFilter.js +3 -5
  852. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  853. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +3 -4
  854. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  855. package/lib/module/skia/types/ImageFilter/index.js.map +1 -1
  856. package/lib/module/skia/types/MaskFilter.js +4 -5
  857. package/lib/module/skia/types/MaskFilter.js.map +1 -1
  858. package/lib/module/skia/types/Matrix.js.map +1 -1
  859. package/lib/module/skia/types/Matrix4.js +22 -64
  860. package/lib/module/skia/types/Matrix4.js.map +1 -1
  861. package/lib/module/skia/types/Paint/BlendMode.js +3 -4
  862. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
  863. package/lib/module/skia/types/Paint/Paint.js +9 -15
  864. package/lib/module/skia/types/Paint/Paint.js.map +1 -1
  865. package/lib/module/skia/types/Paint/index.js.map +1 -1
  866. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js +3 -4
  867. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  868. package/lib/module/skia/types/Paragraph/ParagraphStyle.js +9 -14
  869. package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  870. package/lib/module/skia/types/Paragraph/TextStyle.js +9 -14
  871. package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -1
  872. package/lib/module/skia/types/Paragraph/index.js.map +1 -1
  873. package/lib/module/skia/types/Path/Path.js +9 -14
  874. package/lib/module/skia/types/Path/Path.js.map +1 -1
  875. package/lib/module/skia/types/Path/index.js.map +1 -1
  876. package/lib/module/skia/types/PathEffect.js +3 -4
  877. package/lib/module/skia/types/PathEffect.js.map +1 -1
  878. package/lib/module/skia/types/Picture/index.js.map +1 -1
  879. package/lib/module/skia/types/Point.js +3 -4
  880. package/lib/module/skia/types/Point.js.map +1 -1
  881. package/lib/module/skia/types/RRect.js +2 -1
  882. package/lib/module/skia/types/RRect.js.map +1 -1
  883. package/lib/module/skia/types/Rect.js +0 -1
  884. package/lib/module/skia/types/Rect.js.map +1 -1
  885. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
  886. package/lib/module/skia/types/SVG/index.js.map +1 -1
  887. package/lib/module/skia/types/Shader/Shader.js +4 -9
  888. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  889. package/lib/module/skia/types/Shader/index.js.map +1 -1
  890. package/lib/module/skia/types/Surface/index.js.map +1 -1
  891. package/lib/module/skia/types/Typeface/index.js.map +1 -1
  892. package/lib/module/skia/types/Vertices/Vertices.js +3 -4
  893. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -1
  894. package/lib/module/skia/types/Vertices/index.js.map +1 -1
  895. package/lib/module/skia/types/index.js.map +1 -1
  896. package/lib/module/skia/web/Host.js +6 -16
  897. package/lib/module/skia/web/Host.js.map +1 -1
  898. package/lib/module/skia/web/JsiSkAnimatedImage.js +3 -9
  899. package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
  900. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js +0 -4
  901. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  902. package/lib/module/skia/web/JsiSkCanvas.js +13 -63
  903. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  904. package/lib/module/skia/web/JsiSkColor.js +10 -52
  905. package/lib/module/skia/web/JsiSkColor.js.map +1 -1
  906. package/lib/module/skia/web/JsiSkColorFilter.js +3 -4
  907. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  908. package/lib/module/skia/web/JsiSkColorFilterFactory.js +0 -8
  909. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  910. package/lib/module/skia/web/JsiSkContourMeasure.js +3 -8
  911. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  912. package/lib/module/skia/web/JsiSkContourMeasureIter.js +3 -7
  913. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  914. package/lib/module/skia/web/JsiSkData.js +5 -5
  915. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  916. package/lib/module/skia/web/JsiSkDataFactory.js +0 -6
  917. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
  918. package/lib/module/skia/web/JsiSkFont.js +5 -26
  919. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  920. package/lib/module/skia/web/JsiSkFontMgr.js +0 -5
  921. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -1
  922. package/lib/module/skia/web/JsiSkFontMgrFactory.js +0 -4
  923. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  924. package/lib/module/skia/web/JsiSkImage.js +7 -23
  925. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  926. package/lib/module/skia/web/JsiSkImageFactory.js +2 -10
  927. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  928. package/lib/module/skia/web/JsiSkImageFilter.js +3 -4
  929. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  930. package/lib/module/skia/web/JsiSkImageFilterFactory.js +0 -23
  931. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  932. package/lib/module/skia/web/JsiSkMaskFilter.js +3 -4
  933. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  934. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +0 -2
  935. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  936. package/lib/module/skia/web/JsiSkMatrix.js +7 -21
  937. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  938. package/lib/module/skia/web/JsiSkPaint.js +3 -27
  939. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  940. package/lib/module/skia/web/JsiSkParagraph.js +21 -44
  941. package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
  942. package/lib/module/skia/web/JsiSkParagraphBuilder.js +1 -18
  943. package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  944. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +0 -4
  945. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  946. package/lib/module/skia/web/JsiSkParagraphStyle.js +4 -6
  947. package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
  948. package/lib/module/skia/web/JsiSkPath.js +4 -69
  949. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  950. package/lib/module/skia/web/JsiSkPathEffect.js +3 -4
  951. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  952. package/lib/module/skia/web/JsiSkPathEffectFactory.js +0 -17
  953. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  954. package/lib/module/skia/web/JsiSkPathFactory.js +0 -12
  955. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
  956. package/lib/module/skia/web/JsiSkPicture.js +4 -6
  957. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  958. package/lib/module/skia/web/JsiSkPictureFactory.js +0 -4
  959. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
  960. package/lib/module/skia/web/JsiSkPictureRecorder.js +3 -6
  961. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  962. package/lib/module/skia/web/JsiSkPoint.js +5 -9
  963. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  964. package/lib/module/skia/web/JsiSkRRect.js +5 -13
  965. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  966. package/lib/module/skia/web/JsiSkRSXform.js +5 -12
  967. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  968. package/lib/module/skia/web/JsiSkRect.js +5 -12
  969. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  970. package/lib/module/skia/web/JsiSkRuntimeEffect.js +3 -11
  971. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  972. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +0 -4
  973. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  974. package/lib/module/skia/web/JsiSkSVGFactory.js +0 -3
  975. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
  976. package/lib/module/skia/web/JsiSkShader.js +3 -4
  977. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  978. package/lib/module/skia/web/JsiSkShaderFactory.js +0 -9
  979. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
  980. package/lib/module/skia/web/JsiSkSurface.js +3 -7
  981. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  982. package/lib/module/skia/web/JsiSkSurfaceFactory.js +0 -10
  983. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  984. package/lib/module/skia/web/JsiSkTextBlob.js +3 -4
  985. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  986. package/lib/module/skia/web/JsiSkTextBlobFactory.js +0 -5
  987. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  988. package/lib/module/skia/web/JsiSkTextStyle.js +0 -1
  989. package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -1
  990. package/lib/module/skia/web/JsiSkTypeface.js +3 -7
  991. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  992. package/lib/module/skia/web/JsiSkTypefaceFactory.js +0 -4
  993. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  994. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +16 -23
  995. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  996. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -2
  997. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  998. package/lib/module/skia/web/JsiSkVertices.js +3 -6
  999. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  1000. package/lib/module/skia/web/JsiSkVerticesFactory.js +8 -24
  1001. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
  1002. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  1003. package/lib/module/skia/web/index.js.map +1 -1
  1004. package/lib/module/specs/NativeSkiaModule.js.map +1 -1
  1005. package/lib/module/specs/NativeSkiaModule.web.js +2 -1
  1006. package/lib/module/specs/NativeSkiaModule.web.js.map +1 -1
  1007. package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -1
  1008. package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  1009. package/lib/module/views/SkiaBaseWebView.js +16 -58
  1010. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  1011. package/lib/module/views/SkiaDomView.js +8 -23
  1012. package/lib/module/views/SkiaDomView.js.map +1 -1
  1013. package/lib/module/views/SkiaDomView.web.js +0 -4
  1014. package/lib/module/views/SkiaDomView.web.js.map +1 -1
  1015. package/lib/module/views/SkiaJSDomView.js +10 -26
  1016. package/lib/module/views/SkiaJSDomView.js.map +1 -1
  1017. package/lib/module/views/SkiaJSDomView.web.js.map +1 -1
  1018. package/lib/module/views/SkiaPictureView.js +5 -18
  1019. package/lib/module/views/SkiaPictureView.js.map +1 -1
  1020. package/lib/module/views/SkiaPictureView.web.js +0 -2
  1021. package/lib/module/views/SkiaPictureView.web.js.map +1 -1
  1022. package/lib/module/views/SkiaViewNativeId.js.map +1 -1
  1023. package/lib/module/views/api.js.map +1 -1
  1024. package/lib/module/views/index.js.map +1 -1
  1025. package/lib/module/views/types.js +4 -4
  1026. package/lib/module/views/types.js.map +1 -1
  1027. package/lib/module/views/useTouchHandler.js +13 -21
  1028. package/lib/module/views/useTouchHandler.js.map +1 -1
  1029. package/lib/module/web/LoadSkiaWeb.js +4 -5
  1030. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  1031. package/lib/module/web/WithSkiaWeb.js +7 -8
  1032. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  1033. package/lib/module/web/index.js.map +1 -1
  1034. package/lib/typescript/src/external/reanimated/buffers.d.ts +6 -4
  1035. package/lib/typescript/src/external/reanimated/interpolators.d.ts +1 -1
  1036. package/lib/typescript/src/external/reanimated/textures.d.ts +6 -3
  1037. package/package.json +15 -15
  1038. package/react-native-skia.podspec +1 -1
  1039. package/src/dom/nodes/Node.ts +1 -0
  1040. package/src/external/reanimated/buffers.ts +29 -26
  1041. package/src/external/reanimated/interpolators.ts +4 -1
  1042. package/src/external/reanimated/textures.tsx +55 -6
  1043. package/lib/commonjs/animation/types.d.ts +0 -18
  1044. package/lib/commonjs/animation/types.js +0 -2
  1045. package/lib/commonjs/animation/types.js.map +0 -1
  1046. package/lib/module/animation/types.d.ts +0 -18
  1047. package/lib/module/animation/types.js +0 -2
  1048. package/lib/module/animation/types.js.map +0 -1
  1049. package/lib/typescript/src/animation/types.d.ts +0 -18
  1050. package/src/animation/types.ts +0 -23
@@ -1 +1 @@
1
- {"version":3,"names":["HostObject","JsiSkImage","JsiSkAnimatedImage","constructor","CanvasKit","ref","delete","decodeNextFrame","currentFrameDuration","getCurrentFrame","image","makeImageAtCurrentFrame"],"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,SAASA,UAAT,QAA2B,QAA3B;AACA,SAASC,UAAT,QAA2B,cAA3B;AAEA,OAAO,MAAMC,kBAAN,SACGF,UADH,CAGP;EACEG,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,IAAIT,UAAJ,CAAe,KAAKG,SAApB,EAA+BM,KAA/B,CAAP;EACD;;AAnBH"}
1
+ {"version":3,"names":["HostObject","JsiSkImage","JsiSkAnimatedImage","constructor","CanvasKit","ref","_defineProperty","delete","decodeNextFrame","currentFrameDuration","getCurrentFrame","image","makeImageAtCurrentFrame"],"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,SAASA,UAAU,QAAQ,QAAQ;AACnC,SAASC,UAAU,QAAQ,cAAc;AAEzC,OAAO,MAAMC,kBAAkB,SACrBF,UAAU,CAEpB;EACEG,WAAWA,CAACC,SAAoB,EAAEC,GAAkB,EAAE;IACpD,KAAK,CAACD,SAAS,EAAEC,GAAG,EAAE,eAAe,CAAC;IAACC,eAAA,kBAmB/B,MAAM;MACd,IAAI,CAACD,GAAG,CAACE,MAAM,CAAC,CAAC;IACnB,CAAC;EApBD;EAEAC,eAAeA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACH,GAAG,CAACG,eAAe,CAAC,CAAC;EACnC;EAEAC,oBAAoBA,CAAA,EAAG;IACrB,OAAO,IAAI,CAACJ,GAAG,CAACI,oBAAoB,CAAC,CAAC;EACxC;EAEAC,eAAeA,CAAA,EAAG;IAChB,MAAMC,KAAK,GAAG,IAAI,CAACN,GAAG,CAACO,uBAAuB,CAAC,CAAC;IAChD,IAAID,KAAK,KAAK,IAAI,EAAE;MAClB,OAAO,IAAI;IACb;IACA,OAAO,IAAIV,UAAU,CAAC,IAAI,CAACG,SAAS,EAAEO,KAAK,CAAC;EAC9C;AAKF"}
@@ -5,16 +5,12 @@ export class JsiSkAnimatedImageFactory extends Host {
5
5
  constructor(CanvasKit) {
6
6
  super(CanvasKit);
7
7
  }
8
-
9
8
  MakeAnimatedImageFromEncoded(encoded) {
10
9
  const image = this.CanvasKit.MakeAnimatedImageFromEncoded(JsiSkData.fromValue(encoded));
11
-
12
10
  if (image === null) {
13
11
  return null;
14
12
  }
15
-
16
13
  return new JsiSkAnimatedImage(this.CanvasKit, image);
17
14
  }
18
-
19
15
  }
20
16
  //# sourceMappingURL=JsiSkAnimatedImageFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Host","JsiSkData","JsiSkAnimatedImage","JsiSkAnimatedImageFactory","constructor","CanvasKit","MakeAnimatedImageFromEncoded","encoded","image","fromValue"],"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,SAASA,IAAT,QAAqB,QAArB;AACA,SAASC,SAAT,QAA0B,aAA1B;AACA,SAASC,kBAAT,QAAmC,sBAAnC;AAEA,OAAO,MAAMC,yBAAN,SACGH,IADH,CAGP;EACEI,WAAW,CAACC,SAAD,EAAuB;IAChC,MAAMA,SAAN;EACD;;EAEDC,4BAA4B,CAACC,OAAD,EAAkB;IAC5C,MAAMC,KAAK,GAAG,KAAKH,SAAL,CAAeC,4BAAf,CACZL,SAAS,CAACQ,SAAV,CAAoBF,OAApB,CADY,CAAd;;IAGA,IAAIC,KAAK,KAAK,IAAd,EAAoB;MAClB,OAAO,IAAP;IACD;;IACD,OAAO,IAAIN,kBAAJ,CAAuB,KAAKG,SAA5B,EAAuCG,KAAvC,CAAP;EACD;;AAbH"}
1
+ {"version":3,"names":["Host","JsiSkData","JsiSkAnimatedImage","JsiSkAnimatedImageFactory","constructor","CanvasKit","MakeAnimatedImageFromEncoded","encoded","image","fromValue"],"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,SAASA,IAAI,QAAQ,QAAQ;AAC7B,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,kBAAkB,QAAQ,sBAAsB;AAEzD,OAAO,MAAMC,yBAAyB,SAC5BH,IAAI,CAEd;EACEI,WAAWA,CAACC,SAAoB,EAAE;IAChC,KAAK,CAACA,SAAS,CAAC;EAClB;EAEAC,4BAA4BA,CAACC,OAAe,EAAE;IAC5C,MAAMC,KAAK,GAAG,IAAI,CAACH,SAAS,CAACC,4BAA4B,CACvDL,SAAS,CAACQ,SAAS,CAACF,OAAO,CAC7B,CAAC;IACD,IAAIC,KAAK,KAAK,IAAI,EAAE;MAClB,OAAO,IAAI;IACb;IACA,OAAO,IAAIN,kBAAkB,CAAC,IAAI,CAACG,SAAS,EAAEG,KAAK,CAAC;EACtD;AACF"}
@@ -1,5 +1,6 @@
1
- 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; }
2
-
1
+ 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; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
+ 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); }
3
4
  import { getEnum, HostObject } from "./Host";
4
5
  import { JsiSkPaint } from "./JsiSkPaint";
5
6
  import { JsiSkRect } from "./JsiSkRect";
@@ -17,193 +18,143 @@ import { JsiSkRSXform } from "./JsiSkRSXform";
17
18
  export class JsiSkCanvas extends HostObject {
18
19
  constructor(CanvasKit, ref) {
19
20
  super(CanvasKit, ref, "Canvas");
20
-
21
21
  _defineProperty(this, "dispose", () => {
22
22
  this.ref.delete();
23
23
  });
24
24
  }
25
-
26
25
  drawRect(rect, paint) {
27
26
  this.ref.drawRect(JsiSkRect.fromValue(this.CanvasKit, rect), JsiSkPaint.fromValue(paint));
28
27
  }
29
-
30
28
  drawImage(image, x, y, paint) {
31
29
  this.ref.drawImage(JsiSkImage.fromValue(image), x, y, paint ? JsiSkPaint.fromValue(paint) : paint);
32
30
  }
33
-
34
31
  drawImageRect(img, src, dest, paint, fastSample) {
35
32
  this.ref.drawImageRect(JsiSkImage.fromValue(img), JsiSkRect.fromValue(this.CanvasKit, src), JsiSkRect.fromValue(this.CanvasKit, dest), JsiSkPaint.fromValue(paint), fastSample);
36
33
  }
37
-
38
34
  drawImageCubic(img, left, top, B, C, paint) {
39
35
  this.ref.drawImageCubic(JsiSkImage.fromValue(img), left, top, B, C, paint ? JsiSkPaint.fromValue(paint) : paint);
40
36
  }
41
-
42
37
  drawImageOptions(img, left, top, fm, mm, paint) {
43
38
  this.ref.drawImageOptions(JsiSkImage.fromValue(img), left, top, getEnum(this.CanvasKit.FilterMode, fm), getEnum(this.CanvasKit.MipmapMode, mm), paint ? JsiSkPaint.fromValue(paint) : paint);
44
39
  }
45
-
46
40
  drawImageNine(img, center, dest, filter, paint) {
47
41
  this.ref.drawImageNine(JsiSkImage.fromValue(img), Array.from(JsiSkRect.fromValue(this.CanvasKit, center)), JsiSkRect.fromValue(this.CanvasKit, dest), getEnum(this.CanvasKit.FilterMode, filter), paint ? JsiSkPaint.fromValue(paint) : paint);
48
42
  }
49
-
50
43
  drawImageRectCubic(img, src, dest, B, C, paint) {
51
44
  this.ref.drawImageRectCubic(JsiSkImage.fromValue(img), JsiSkRect.fromValue(this.CanvasKit, src), JsiSkRect.fromValue(this.CanvasKit, dest), B, C, paint ? JsiSkPaint.fromValue(paint) : paint);
52
45
  }
53
-
54
46
  drawImageRectOptions(img, src, dest, fm, mm, paint) {
55
47
  this.ref.drawImageRectOptions(JsiSkImage.fromValue(img), JsiSkRect.fromValue(this.CanvasKit, src), JsiSkRect.fromValue(this.CanvasKit, dest), getEnum(this.CanvasKit.FilterMode, fm), getEnum(this.CanvasKit.MipmapMode, mm), paint ? JsiSkPaint.fromValue(paint) : paint);
56
48
  }
57
-
58
49
  drawPaint(paint) {
59
50
  this.ref.drawPaint(JsiSkPaint.fromValue(paint));
60
51
  }
61
-
62
52
  drawLine(x0, y0, x1, y1, paint) {
63
53
  this.ref.drawLine(x0, y0, x1, y1, JsiSkPaint.fromValue(paint));
64
54
  }
65
-
66
55
  drawCircle(cx, cy, radius, paint) {
67
56
  this.ref.drawCircle(cx, cy, radius, JsiSkPaint.fromValue(paint));
68
57
  }
69
-
70
58
  drawVertices(verts, mode, paint) {
71
59
  this.ref.drawVertices(JsiSkVertices.fromValue(verts), getEnum(this.CanvasKit.BlendMode, mode), JsiSkPaint.fromValue(paint));
72
60
  }
73
-
74
61
  drawPatch(cubics, colors, texs, mode, paint) {
75
- this.ref.drawPatch(cubics.map(_ref => {
76
- let {
77
- x,
78
- y
79
- } = _ref;
80
- return [x, y];
81
- }).flat(), colors, texs ? texs.flatMap(p => Array.from(JsiSkPoint.fromValue(p))) : texs, mode ? getEnum(this.CanvasKit.BlendMode, mode) : null, paint ? JsiSkPaint.fromValue(paint) : undefined);
82
- }
83
-
62
+ this.ref.drawPatch(cubics.map(({
63
+ x,
64
+ y
65
+ }) => [x, y]).flat(), colors, texs ? texs.flatMap(p => Array.from(JsiSkPoint.fromValue(p))) : texs, mode ? getEnum(this.CanvasKit.BlendMode, mode) : null, paint ? JsiSkPaint.fromValue(paint) : undefined);
66
+ }
84
67
  restoreToCount(saveCount) {
85
68
  this.ref.restoreToCount(saveCount);
86
69
  }
87
-
88
70
  drawPoints(mode, points, paint) {
89
- this.ref.drawPoints(getEnum(this.CanvasKit.PointMode, mode), points.map(_ref2 => {
90
- let {
91
- x,
92
- y
93
- } = _ref2;
94
- return [x, y];
95
- }).flat(), JsiSkPaint.fromValue(paint));
96
- }
97
-
71
+ this.ref.drawPoints(getEnum(this.CanvasKit.PointMode, mode), points.map(({
72
+ x,
73
+ y
74
+ }) => [x, y]).flat(), JsiSkPaint.fromValue(paint));
75
+ }
98
76
  drawArc(oval, startAngle, sweepAngle, useCenter, paint) {
99
77
  this.ref.drawArc(JsiSkRect.fromValue(this.CanvasKit, oval), startAngle, sweepAngle, useCenter, JsiSkPaint.fromValue(paint));
100
78
  }
101
-
102
79
  drawRRect(rrect, paint) {
103
80
  this.ref.drawRRect(JsiSkRRect.fromValue(this.CanvasKit, rrect), JsiSkPaint.fromValue(paint));
104
81
  }
105
-
106
82
  drawDRRect(outer, inner, paint) {
107
83
  this.ref.drawDRRect(JsiSkRRect.fromValue(this.CanvasKit, outer), JsiSkRRect.fromValue(this.CanvasKit, inner), JsiSkPaint.fromValue(paint));
108
84
  }
109
-
110
85
  drawOval(oval, paint) {
111
86
  this.ref.drawOval(JsiSkRect.fromValue(this.CanvasKit, oval), JsiSkPaint.fromValue(paint));
112
87
  }
113
-
114
88
  drawPath(path, paint) {
115
89
  this.ref.drawPath(JsiSkPath.fromValue(path), JsiSkPaint.fromValue(paint));
116
90
  }
117
-
118
91
  drawText(str, x, y, paint, font) {
119
92
  this.ref.drawText(str, x, y, JsiSkPaint.fromValue(paint), JsiSkFont.fromValue(font));
120
93
  }
121
-
122
94
  drawTextBlob(blob, x, y, paint) {
123
95
  this.ref.drawTextBlob(JsiSkTextBlob.fromValue(blob), x, y, JsiSkPaint.fromValue(paint));
124
96
  }
125
-
126
97
  drawGlyphs(glyphs, positions, x, y, font, paint) {
127
98
  this.ref.drawGlyphs(glyphs, positions.map(p => [p.x, p.y]).flat(), x, y, JsiSkFont.fromValue(font), JsiSkPaint.fromValue(paint));
128
99
  }
129
-
130
100
  drawSvg(_svgDom, _width, _height) {
131
101
  throw new Error("drawSvg is not implemented on React Native Web");
132
102
  }
133
-
134
103
  save() {
135
104
  return this.ref.save();
136
105
  }
137
-
138
106
  saveLayer(paint, bounds, backdrop, flags) {
139
107
  return this.ref.saveLayer(paint ? JsiSkPaint.fromValue(paint) : undefined, bounds ? JsiSkRect.fromValue(this.CanvasKit, bounds) : bounds, backdrop ? JsiSkImageFilter.fromValue(backdrop) : backdrop, flags);
140
108
  }
141
-
142
109
  restore() {
143
110
  this.ref.restore();
144
111
  }
145
-
146
112
  rotate(rotationInDegrees, rx, ry) {
147
113
  this.ref.rotate(rotationInDegrees, rx, ry);
148
114
  }
149
-
150
115
  scale(sx, sy) {
151
116
  this.ref.scale(sx, sy);
152
117
  }
153
-
154
118
  skew(sx, sy) {
155
119
  this.ref.skew(sx, sy);
156
120
  }
157
-
158
121
  translate(dx, dy) {
159
122
  this.ref.translate(dx, dy);
160
123
  }
161
-
162
124
  drawColor(color, blendMode) {
163
125
  this.ref.drawColor(color, blendMode ? getEnum(this.CanvasKit.BlendMode, blendMode) : undefined);
164
126
  }
165
-
166
127
  clear(color) {
167
128
  this.ref.clear(color);
168
129
  }
169
-
170
130
  clipPath(path, op, doAntiAlias) {
171
131
  this.ref.clipPath(JsiSkPath.fromValue(path), getEnum(this.CanvasKit.PathOp, op), doAntiAlias);
172
132
  }
173
-
174
133
  clipRect(rect, op, doAntiAlias) {
175
134
  this.ref.clipRect(JsiSkRect.fromValue(this.CanvasKit, rect), getEnum(this.CanvasKit.PathOp, op), doAntiAlias);
176
135
  }
177
-
178
136
  clipRRect(rrect, op, doAntiAlias) {
179
137
  this.ref.clipRRect(JsiSkRRect.fromValue(this.CanvasKit, rrect), getEnum(this.CanvasKit.PathOp, op), doAntiAlias);
180
138
  }
181
-
182
139
  concat(m) {
183
140
  this.ref.concat(Array.isArray(m) ? m : JsiSkMatrix.fromValue(m));
184
141
  }
185
-
186
142
  drawPicture(skp) {
187
143
  this.ref.drawPicture(JsiSkPicture.fromValue(skp));
188
144
  }
189
-
190
145
  drawAtlas(atlas, srcs, dsts, paint, blendMode, colors, _sampling) {
191
146
  const src = srcs.flatMap(s => Array.from(JsiSkRect.fromValue(this.CanvasKit, s)));
192
147
  const dst = dsts.flatMap(s => Array.from(JsiSkRSXform.fromValue(s)));
193
148
  let cls;
194
-
195
149
  if (colors) {
196
150
  cls = new Uint32Array(colors.length);
197
-
198
151
  for (let i = 0; i < colors.length; i++) {
199
152
  const [r, g, b, a] = colors[i];
200
153
  cls[i] = this.CanvasKit.ColorAsInt(r * 255, g * 255, b * 255, a * 255);
201
154
  }
202
155
  }
203
-
204
156
  this.ref.drawAtlas(JsiSkImage.fromValue(atlas), src, dst, JsiSkPaint.fromValue(paint), blendMode ? getEnum(this.CanvasKit.BlendMode, blendMode) : this.CanvasKit.BlendMode.DstOver, cls);
205
157
  }
206
-
207
158
  readPixels(srcX, srcY, imageInfo) {
208
159
  const pxInfo = {
209
160
  width: imageInfo.width,
@@ -214,6 +165,5 @@ export class JsiSkCanvas extends HostObject {
214
165
  };
215
166
  return this.ref.readPixels(srcX, srcY, pxInfo);
216
167
  }
217
-
218
168
  }
219
169
  //# sourceMappingURL=JsiSkCanvas.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getEnum","HostObject","JsiSkPaint","JsiSkRect","JsiSkRRect","JsiSkImage","JsiSkVertices","JsiSkPath","JsiSkFont","JsiSkTextBlob","JsiSkPicture","JsiSkMatrix","JsiSkImageFilter","JsiSkPoint","JsiSkRSXform","JsiSkCanvas","constructor","CanvasKit","ref","delete","drawRect","rect","paint","fromValue","drawImage","image","x","y","drawImageRect","img","src","dest","fastSample","drawImageCubic","left","top","B","C","drawImageOptions","fm","mm","FilterMode","MipmapMode","drawImageNine","center","filter","Array","from","drawImageRectCubic","drawImageRectOptions","drawPaint","drawLine","x0","y0","x1","y1","drawCircle","cx","cy","radius","drawVertices","verts","mode","BlendMode","drawPatch","cubics","colors","texs","map","flat","flatMap","p","undefined","restoreToCount","saveCount","drawPoints","points","PointMode","drawArc","oval","startAngle","sweepAngle","useCenter","drawRRect","rrect","drawDRRect","outer","inner","drawOval","drawPath","path","drawText","str","font","drawTextBlob","blob","drawGlyphs","glyphs","positions","drawSvg","_svgDom","_width","_height","Error","save","saveLayer","bounds","backdrop","flags","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","drawPicture","skp","drawAtlas","atlas","srcs","dsts","_sampling","s","dst","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,SAASA,OAAT,EAAkBC,UAAlB,QAAoC,QAApC;AACA,SAASC,UAAT,QAA2B,cAA3B;AACA,SAASC,SAAT,QAA0B,aAA1B;AACA,SAASC,UAAT,QAA2B,cAA3B;AACA,SAASC,UAAT,QAA2B,cAA3B;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,SAASC,SAAT,QAA0B,aAA1B;AACA,SAASC,SAAT,QAA0B,aAA1B;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA,SAASC,WAAT,QAA4B,eAA5B;AACA,SAASC,gBAAT,QAAiC,oBAAjC;AACA,SAASC,UAAT,QAA2B,cAA3B;AACA,SAASC,YAAT,QAA6B,gBAA7B;AAEA,OAAO,MAAMC,WAAN,SACGd,UADH,CAGP;EACEe,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,GAAL,CAASE,QAAT,CACEjB,SAAS,CAACoB,SAAV,CAAoB,KAAKN,SAAzB,EAAoCI,IAApC,CADF,EAEEnB,UAAU,CAACqB,SAAX,CAAqBD,KAArB,CAFF;EAID;;EAEDE,SAAS,CAACC,KAAD,EAAiBC,CAAjB,EAA4BC,CAA5B,EAAuCL,KAAvC,EAAwD;IAC/D,KAAKJ,GAAL,CAASM,SAAT,CACEnB,UAAU,CAACkB,SAAX,CAAqBE,KAArB,CADF,EAEEC,CAFF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SkImage","JsiSkVertices","JsiSkPath","JsiSkFont","JsiSkTextBlob","JsiSkPicture","JsiSkMatrix","JsiSkImageFilter","JsiSkPoint","JsiSkRSXform","JsiSkCanvas","constructor","CanvasKit","ref","_defineProperty","delete","drawRect","rect","paint","fromValue","drawImage","image","x","y","drawImageRect","img","src","dest","fastSample","drawImageCubic","left","top","B","C","drawImageOptions","fm","mm","FilterMode","MipmapMode","drawImageNine","center","filter","Array","from","drawImageRectCubic","drawImageRectOptions","drawPaint","drawLine","x0","y0","x1","y1","drawCircle","cx","cy","radius","drawVertices","verts","mode","BlendMode","drawPatch","cubics","colors","texs","map","flat","flatMap","p","undefined","restoreToCount","saveCount","drawPoints","points","PointMode","drawArc","oval","startAngle","sweepAngle","useCenter","drawRRect","rrect","drawDRRect","outer","inner","drawOval","drawPath","path","drawText","str","font","drawTextBlob","blob","drawGlyphs","glyphs","positions","drawSvg","_svgDom","_width","_height","Error","save","saveLayer","bounds","backdrop","flags","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","drawPicture","skp","drawAtlas","atlas","srcs","dsts","_sampling","s","dst","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,SAASA,OAAO,EAAEC,UAAU,QAAQ,QAAQ;AAC5C,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,YAAY,QAAQ,gBAAgB;AAE7C,OAAO,MAAMC,WAAW,SACdd,UAAU,CAEpB;EACEe,WAAWA,CAACC,SAAoB,EAAEC,GAAW,EAAE;IAC7C,KAAK,CAACD,SAAS,EAAEC,GAAG,EAAE,QAAQ,CAAC;IAACC,eAAA,kBAGxB,MAAM;MACd,IAAI,CAACD,GAAG,CAACE,MAAM,CAAC,CAAC;IACnB,CAAC;EAJD;EAMAC,QAAQA,CAACC,IAAY,EAAEC,KAAc,EAAE;IACrC,IAAI,CAACL,GAAG,CAACG,QAAQ,CACflB,SAAS,CAACqB,SAAS,CAAC,IAAI,CAACP,SAAS,EAAEK,IAAI,CAAC,EACzCpB,UAAU,CAACsB,SAAS,CAACD,KAAK,CAC5B,CAAC;EACH;EAEAE,SAASA,CAACC,KAAc,EAAEC,CAAS,EAAEC,CAAS,EAAEL,KAAe,E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AAER,SAAS,CAACO,SAAS,CAAC;MACjEE,SAAS,EAAEtK,OAAO,CAAC,IAAI,CAACiB,SAAS,CAACsJ,SAAS,EAAEV,SAAS,CAACS,SAAS;IAClE,CAAC;IACD,OAAO,IAAI,CAACpJ,GAAG,CAACwI,UAAU,CAACC,IAAI,EAAEC,IAAI,EAAEE,MAAM,CAAC;EAChD;AACF"}
@@ -1,12 +1,9 @@
1
1
  const alphaf = c => (c >> 24 & 255) / 255;
2
-
3
2
  const red = c => c >> 16 & 255;
4
-
5
3
  const green = c => c >> 8 & 255;
4
+ const blue = c => c & 255;
6
5
 
7
- const blue = c => c & 255; // From https://raw.githubusercontent.com/deanm/css-color-parser-js/master/csscolorparser.js
8
-
9
-
6
+ // From https://raw.githubusercontent.com/deanm/css-color-parser-js/master/csscolorparser.js
10
7
  const CSSColorTable = {
11
8
  transparent: Float32Array.of(0, 0, 0, 0),
12
9
  aliceblue: Float32Array.of(240, 248, 255, 1),
@@ -158,121 +155,93 @@ const CSSColorTable = {
158
155
  yellow: Float32Array.of(255, 255, 0, 1),
159
156
  yellowgreen: Float32Array.of(154, 205, 50, 1)
160
157
  };
161
-
162
158
  const clampCSSByte = j => {
163
159
  // Clamp to integer 0 .. 255.
164
160
  const i = Math.round(j); // Seems to be what Chrome does (vs truncation).
165
161
  // eslint-disable-next-line no-nested-ternary
166
-
167
162
  return i < 0 ? 0 : i > 255 ? 255 : i;
168
163
  };
169
-
170
164
  const clampCSSFloat = f => {
171
165
  // eslint-disable-next-line no-nested-ternary
172
166
  return f < 0 ? 0 : f > 1 ? 1 : f;
173
167
  };
174
-
175
168
  const parseCSSInt = str => {
176
169
  // int or percentage.
177
170
  if (str[str.length - 1] === "%") {
178
171
  return clampCSSByte(parseFloat(str) / 100 * 255);
179
- } // eslint-disable-next-line radix
180
-
181
-
172
+ }
173
+ // eslint-disable-next-line radix
182
174
  return clampCSSByte(parseInt(str));
183
175
  };
184
-
185
176
  const parseCSSFloat = str => {
186
177
  if (str === undefined) {
187
178
  return 1;
188
- } // float or percentage.
189
-
190
-
179
+ }
180
+ // float or percentage.
191
181
  if (str[str.length - 1] === "%") {
192
182
  return clampCSSFloat(parseFloat(str) / 100);
193
183
  }
194
-
195
184
  return clampCSSFloat(parseFloat(str));
196
185
  };
197
-
198
186
  const CSSHueToRGB = (m1, m2, h) => {
199
187
  if (h < 0) {
200
188
  h += 1;
201
189
  } else if (h > 1) {
202
190
  h -= 1;
203
191
  }
204
-
205
192
  if (h * 6 < 1) {
206
193
  return m1 + (m2 - m1) * h * 6;
207
194
  }
208
-
209
195
  if (h * 2 < 1) {
210
196
  return m2;
211
197
  }
212
-
213
198
  if (h * 3 < 2) {
214
199
  return m1 + (m2 - m1) * (2 / 3 - h) * 6;
215
200
  }
216
-
217
201
  return m1;
218
202
  };
219
-
220
203
  const parseCSSColor = cssStr => {
221
204
  // Remove all whitespace, not compliant, but should just be more accepting.
222
- var str = cssStr.replace(/ /g, "").toLowerCase(); // Color keywords (and transparent) lookup.
205
+ var str = cssStr.replace(/ /g, "").toLowerCase();
223
206
 
207
+ // Color keywords (and transparent) lookup.
224
208
  if (str in CSSColorTable) {
225
209
  const cl = CSSColorTable[str];
226
-
227
210
  if (cl) {
228
211
  return Float32Array.of(...cl);
229
212
  }
230
-
231
213
  return null;
232
214
  } // dup.
233
- // #abc and #abc123 syntax.
234
-
235
215
 
216
+ // #abc and #abc123 syntax.
236
217
  if (str[0] === "#") {
237
218
  if (str.length === 4) {
238
219
  var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.
239
-
240
220
  if (!(iv >= 0 && iv <= 0xfff)) {
241
221
  return null;
242
222
  } // Covers NaN.
243
-
244
-
245
223
  return [(iv & 0xf00) >> 4 | (iv & 0xf00) >> 8, iv & 0xf0 | (iv & 0xf0) >> 4, iv & 0xf | (iv & 0xf) << 4, 1];
246
224
  } else if (str.length === 7) {
247
225
  var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.
248
-
249
226
  if (!(iv >= 0 && iv <= 0xffffff)) {
250
227
  return null;
251
228
  } // Covers NaN.
252
-
253
-
254
229
  return [(iv & 0xff0000) >> 16, (iv & 0xff00) >> 8, iv & 0xff, 1];
255
230
  } else if (str.length === 9) {
256
231
  var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.
257
-
258
232
  if (!(iv >= 0 && iv <= 0xffffffff)) {
259
233
  return null; // Covers NaN.
260
234
  }
261
-
262
235
  return [(iv & 0xff000000) >> 24 & 0xff, (iv & 0xff0000) >> 16, (iv & 0xff00) >> 8, (iv & 0xff) / 255];
263
236
  }
264
-
265
237
  return null;
266
238
  }
267
-
268
239
  var op = str.indexOf("("),
269
- ep = str.indexOf(")");
270
-
240
+ ep = str.indexOf(")");
271
241
  if (op !== -1 && ep + 1 === str.length) {
272
242
  var fname = str.substr(0, op);
273
243
  var params = str.substr(op + 1, ep - (op + 1)).split(",");
274
244
  var alpha = 1; // To allow case fallthrough.
275
-
276
245
  switch (fname) {
277
246
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
278
247
  //@ts-expect-error
@@ -280,50 +249,39 @@ const parseCSSColor = cssStr => {
280
249
  if (params.length !== 4) {
281
250
  return null;
282
251
  }
283
-
284
252
  alpha = parseCSSFloat(params.pop());
285
253
  // Fall through.
286
-
287
254
  case "rgb":
288
255
  if (params.length !== 3) {
289
256
  return null;
290
257
  }
291
-
292
258
  return [parseCSSInt(params[0]), parseCSSInt(params[1]), parseCSSInt(params[2]), alpha];
293
259
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
294
260
  //@ts-expect-error
295
-
296
261
  case "hsla":
297
262
  if (params.length !== 4) {
298
263
  return null;
299
264
  }
300
-
301
265
  alpha = parseCSSFloat(params.pop());
302
266
  // Fall through.
303
-
304
267
  case "hsl":
305
268
  if (params.length !== 3) {
306
269
  return null;
307
270
  }
308
-
309
271
  var h = (parseFloat(params[0]) % 360 + 360) % 360 / 360; // 0 .. 1
310
272
  // NOTE(deanm): According to the CSS spec s/l should only be
311
273
  // percentages, but we don't bother and let float or percentage.
312
-
313
274
  var s = parseCSSFloat(params[1]);
314
275
  var l = parseCSSFloat(params[2]);
315
276
  var m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;
316
277
  var m1 = l * 2 - m2;
317
278
  return [clampCSSByte(CSSHueToRGB(m1, m2, h + 1 / 3) * 255), clampCSSByte(CSSHueToRGB(m1, m2, h) * 255), clampCSSByte(CSSHueToRGB(m1, m2, h - 1 / 3) * 255), alpha];
318
-
319
279
  default:
320
280
  return null;
321
281
  }
322
282
  }
323
-
324
283
  return null;
325
284
  };
326
-
327
285
  export const Color = color => {
328
286
  if (color instanceof Float32Array) {
329
287
  return color;