@shopify/react-native-skia 0.1.236 → 0.1.238

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1153) hide show
  1. package/cpp/api/JsiSkApi.h +2 -0
  2. package/cpp/api/JsiSkCanvas.h +36 -0
  3. package/cpp/api/JsiSkRSXform.h +35 -7
  4. package/cpp/rnskia/dom/JsiDomApi.h +2 -0
  5. package/cpp/rnskia/dom/base/JsiDomNode.h +16 -0
  6. package/cpp/rnskia/dom/nodes/JsiAtlasNode.h +60 -0
  7. package/cpp/rnskia/dom/props/RSXformProp.h +52 -0
  8. package/cpp/rnskia/dom/props/RectProp.h +31 -0
  9. package/lib/commonjs/Platform/Platform.js +1 -5
  10. package/lib/commonjs/Platform/Platform.js.map +1 -1
  11. package/lib/commonjs/Platform/Platform.web.js +11 -33
  12. package/lib/commonjs/Platform/Platform.web.js.map +1 -1
  13. package/lib/commonjs/Platform/index.js +0 -2
  14. package/lib/commonjs/Platform/index.js.map +1 -1
  15. package/lib/commonjs/animation/functions/index.js +0 -8
  16. package/lib/commonjs/animation/functions/index.js.map +1 -1
  17. package/lib/commonjs/animation/functions/interpolate.js +12 -31
  18. package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
  19. package/lib/commonjs/animation/functions/interpolateColors.js +2 -13
  20. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  21. package/lib/commonjs/animation/functions/interpolatePaths.js +1 -16
  22. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
  23. package/lib/commonjs/animation/functions/interpolateVector.js +0 -5
  24. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
  25. package/lib/commonjs/animation/index.js +0 -2
  26. package/lib/commonjs/animation/index.js.map +1 -1
  27. package/lib/commonjs/dom/nodes/DrawingNode.js +7 -22
  28. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
  29. package/lib/commonjs/dom/nodes/GroupNode.js +0 -6
  30. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
  31. package/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +2 -1
  32. package/lib/commonjs/dom/nodes/JsiSkDOM.js +28 -86
  33. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  34. package/lib/commonjs/dom/nodes/LayerNode.js +0 -11
  35. package/lib/commonjs/dom/nodes/LayerNode.js.map +1 -1
  36. package/lib/commonjs/dom/nodes/Node.js +4 -36
  37. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  38. package/lib/commonjs/dom/nodes/PaintNode.js +1 -29
  39. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
  40. package/lib/commonjs/dom/nodes/RenderNode.js +3 -35
  41. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
  42. package/lib/commonjs/dom/nodes/datatypes/Circle.js +6 -8
  43. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
  44. package/lib/commonjs/dom/nodes/datatypes/Enum.js +0 -2
  45. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
  46. package/lib/commonjs/dom/nodes/datatypes/Fitting.js +15 -46
  47. package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
  48. package/lib/commonjs/dom/nodes/datatypes/Gradient.js +9 -20
  49. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
  50. package/lib/commonjs/dom/nodes/datatypes/Path.js +2 -8
  51. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
  52. package/lib/commonjs/dom/nodes/datatypes/Radius.js +0 -3
  53. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
  54. package/lib/commonjs/dom/nodes/datatypes/Rect.js +10 -15
  55. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
  56. package/lib/commonjs/dom/nodes/datatypes/Transform.js +0 -6
  57. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
  58. package/lib/commonjs/dom/nodes/datatypes/index.js +0 -16
  59. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
  60. package/lib/commonjs/dom/nodes/drawings/AtlasNode.d.ts +8 -0
  61. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js +36 -0
  62. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js.map +1 -0
  63. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js +4 -18
  64. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  65. package/lib/commonjs/dom/nodes/drawings/Box.js +8 -34
  66. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
  67. package/lib/commonjs/dom/nodes/drawings/CircleNode.js +4 -15
  68. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
  69. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js +4 -12
  70. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  71. package/lib/commonjs/dom/nodes/drawings/FillNode.js +5 -14
  72. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
  73. package/lib/commonjs/dom/nodes/drawings/ImageNode.js +6 -19
  74. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
  75. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js +3 -18
  76. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
  77. package/lib/commonjs/dom/nodes/drawings/LineNode.js +4 -12
  78. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
  79. package/lib/commonjs/dom/nodes/drawings/OvalNode.js +4 -15
  80. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
  81. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js +3 -12
  82. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  83. package/lib/commonjs/dom/nodes/drawings/PatchNode.js +6 -18
  84. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
  85. package/lib/commonjs/dom/nodes/drawings/PathNode.js +4 -21
  86. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
  87. package/lib/commonjs/dom/nodes/drawings/PictureNode.js +3 -11
  88. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
  89. package/lib/commonjs/dom/nodes/drawings/PointsNode.js +4 -14
  90. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
  91. package/lib/commonjs/dom/nodes/drawings/RRectNode.js +7 -18
  92. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
  93. package/lib/commonjs/dom/nodes/drawings/RectNode.js +4 -15
  94. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
  95. package/lib/commonjs/dom/nodes/drawings/Text.js +18 -62
  96. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
  97. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js +4 -16
  98. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
  99. package/lib/commonjs/dom/nodes/drawings/index.d.ts +1 -0
  100. package/lib/commonjs/dom/nodes/drawings/index.js +11 -34
  101. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  102. package/lib/commonjs/dom/nodes/index.js +0 -6
  103. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  104. package/lib/commonjs/dom/nodes/paint/BlendNode.js +4 -18
  105. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
  106. package/lib/commonjs/dom/nodes/paint/ColorFilters.js +0 -34
  107. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
  108. package/lib/commonjs/dom/nodes/paint/ImageFilters.js +7 -60
  109. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
  110. package/lib/commonjs/dom/nodes/paint/MaskFilters.js +0 -8
  111. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
  112. package/lib/commonjs/dom/nodes/paint/PathEffects.js +0 -45
  113. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
  114. package/lib/commonjs/dom/nodes/paint/Shaders.js +1 -48
  115. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
  116. package/lib/commonjs/dom/nodes/paint/index.js +0 -12
  117. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
  118. package/lib/commonjs/dom/types/DeclarationContext.js +3 -30
  119. package/lib/commonjs/dom/types/DeclarationContext.js.map +1 -1
  120. package/lib/commonjs/dom/types/DrawingContext.js +3 -91
  121. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  122. package/lib/commonjs/dom/types/Drawings.d.ts +7 -1
  123. package/lib/commonjs/dom/types/Drawings.js.map +1 -1
  124. package/lib/commonjs/dom/types/NodeType.d.ts +1 -0
  125. package/lib/commonjs/dom/types/NodeType.js +7 -11
  126. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  127. package/lib/commonjs/dom/types/SkDOM.d.ts +2 -1
  128. package/lib/commonjs/dom/types/SkDOM.js.map +1 -1
  129. package/lib/commonjs/dom/types/index.js +0 -26
  130. package/lib/commonjs/dom/types/index.js.map +1 -1
  131. package/lib/commonjs/external/index.js +0 -2
  132. package/lib/commonjs/external/index.js.map +1 -1
  133. package/lib/commonjs/external/reanimated/buffers.d.ts +5 -0
  134. package/lib/commonjs/external/reanimated/buffers.js +39 -0
  135. package/lib/commonjs/external/reanimated/buffers.js.map +1 -0
  136. package/lib/commonjs/external/reanimated/index.d.ts +1 -0
  137. package/lib/commonjs/external/reanimated/index.js +11 -10
  138. package/lib/commonjs/external/reanimated/index.js.map +1 -1
  139. package/lib/commonjs/external/reanimated/interpolators.d.ts +1 -1
  140. package/lib/commonjs/external/reanimated/interpolators.js +5 -20
  141. package/lib/commonjs/external/reanimated/interpolators.js.map +1 -1
  142. package/lib/commonjs/external/reanimated/moduleWrapper.js +12 -29
  143. package/lib/commonjs/external/reanimated/moduleWrapper.js.map +1 -1
  144. package/lib/commonjs/external/reanimated/renderHelpers.js +5 -31
  145. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
  146. package/lib/commonjs/external/reanimated/textures.js +3 -25
  147. package/lib/commonjs/external/reanimated/textures.js.map +1 -1
  148. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +16 -14
  149. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -1
  150. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js +0 -4
  151. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  152. package/lib/commonjs/headless/index.js +1 -12
  153. package/lib/commonjs/headless/index.js.map +1 -1
  154. package/lib/commonjs/index.js +0 -20
  155. package/lib/commonjs/index.js.map +1 -1
  156. package/lib/commonjs/mock/index.js +5 -6
  157. package/lib/commonjs/mock/index.js.map +1 -1
  158. package/lib/commonjs/renderer/Canvas.js +21 -46
  159. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  160. package/lib/commonjs/renderer/Container.js +4 -15
  161. package/lib/commonjs/renderer/Container.js.map +1 -1
  162. package/lib/commonjs/renderer/HostComponents.d.ts +3 -1
  163. package/lib/commonjs/renderer/HostComponents.js +3 -64
  164. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  165. package/lib/commonjs/renderer/HostConfig.js +9 -38
  166. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  167. package/lib/commonjs/renderer/Offscreen.d.ts +4 -2
  168. package/lib/commonjs/renderer/Offscreen.js +19 -24
  169. package/lib/commonjs/renderer/Offscreen.js.map +1 -1
  170. package/lib/commonjs/renderer/Reconciler.js +4 -20
  171. package/lib/commonjs/renderer/Reconciler.js.map +1 -1
  172. package/lib/commonjs/renderer/components/Blend.js +0 -4
  173. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  174. package/lib/commonjs/renderer/components/Group.js +6 -15
  175. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  176. package/lib/commonjs/renderer/components/Mask.js +6 -14
  177. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  178. package/lib/commonjs/renderer/components/Paint.js +0 -4
  179. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  180. package/lib/commonjs/renderer/components/Picture.js +0 -4
  181. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  182. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +5 -13
  183. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  184. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +5 -11
  185. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  186. package/lib/commonjs/renderer/components/backdrop/index.js +0 -4
  187. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
  188. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +0 -4
  189. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  190. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +0 -4
  191. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  192. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +0 -4
  193. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  194. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +0 -4
  195. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  196. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +0 -6
  197. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  198. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +0 -4
  199. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  200. package/lib/commonjs/renderer/components/colorFilters/index.js +0 -12
  201. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
  202. package/lib/commonjs/renderer/components/image/Image.js +0 -4
  203. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  204. package/lib/commonjs/renderer/components/image/ImageSVG.js +0 -4
  205. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  206. package/lib/commonjs/renderer/components/image/ImageShader.js +9 -15
  207. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  208. package/lib/commonjs/renderer/components/image/index.js +0 -6
  209. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  210. package/lib/commonjs/renderer/components/imageFilters/Blur.js +4 -10
  211. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  212. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +0 -4
  213. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  214. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +4 -10
  215. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  216. package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -11
  217. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  218. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +0 -4
  219. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  220. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +0 -4
  221. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  222. package/lib/commonjs/renderer/components/imageFilters/index.js +0 -12
  223. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
  224. package/lib/commonjs/renderer/components/index.js +0 -32
  225. package/lib/commonjs/renderer/components/index.js.map +1 -1
  226. package/lib/commonjs/renderer/components/maskFilters/Blur.js +5 -11
  227. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  228. package/lib/commonjs/renderer/components/maskFilters/index.js +0 -2
  229. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
  230. package/lib/commonjs/renderer/components/paragraph/Paragraph.js +0 -4
  231. package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -1
  232. package/lib/commonjs/renderer/components/paragraph/index.js +0 -2
  233. package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -1
  234. package/lib/commonjs/renderer/components/pathEffects/Corner.js +0 -4
  235. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  236. package/lib/commonjs/renderer/components/pathEffects/Dash.js +0 -4
  237. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  238. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +4 -10
  239. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  240. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +0 -4
  241. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  242. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +0 -4
  243. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  244. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +0 -4
  245. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  246. package/lib/commonjs/renderer/components/pathEffects/Sum.js +0 -4
  247. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  248. package/lib/commonjs/renderer/components/pathEffects/index.js +0 -14
  249. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
  250. package/lib/commonjs/renderer/components/shaders/Color.js +0 -4
  251. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  252. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +6 -12
  253. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  254. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +0 -4
  255. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  256. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +0 -4
  257. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  258. package/lib/commonjs/renderer/components/shaders/Shader.js +4 -10
  259. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  260. package/lib/commonjs/renderer/components/shaders/ShaderLib.js +1 -2
  261. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
  262. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +0 -4
  263. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  264. package/lib/commonjs/renderer/components/shaders/Turbulence.js +6 -12
  265. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  266. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +0 -4
  267. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  268. package/lib/commonjs/renderer/components/shaders/index.js +0 -18
  269. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
  270. package/lib/commonjs/renderer/components/shapes/Atlas.d.ts +4 -0
  271. package/lib/commonjs/renderer/components/shapes/Atlas.js +13 -0
  272. package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -0
  273. package/lib/commonjs/renderer/components/shapes/Box.js +0 -6
  274. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  275. package/lib/commonjs/renderer/components/shapes/Circle.js +0 -4
  276. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  277. package/lib/commonjs/renderer/components/shapes/DiffRect.js +0 -4
  278. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  279. package/lib/commonjs/renderer/components/shapes/Fill.js +0 -4
  280. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  281. package/lib/commonjs/renderer/components/shapes/FitBox.js +8 -18
  282. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  283. package/lib/commonjs/renderer/components/shapes/Line.js +0 -4
  284. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  285. package/lib/commonjs/renderer/components/shapes/Oval.js +0 -4
  286. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  287. package/lib/commonjs/renderer/components/shapes/Patch.js +0 -4
  288. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  289. package/lib/commonjs/renderer/components/shapes/Path.js +5 -11
  290. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  291. package/lib/commonjs/renderer/components/shapes/Points.js +4 -10
  292. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  293. package/lib/commonjs/renderer/components/shapes/Rect.js +0 -4
  294. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  295. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +0 -4
  296. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  297. package/lib/commonjs/renderer/components/shapes/Vertices.js +4 -10
  298. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  299. package/lib/commonjs/renderer/components/shapes/index.d.ts +1 -0
  300. package/lib/commonjs/renderer/components/shapes/index.js +11 -26
  301. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
  302. package/lib/commonjs/renderer/components/text/Glyphs.js +5 -11
  303. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  304. package/lib/commonjs/renderer/components/text/Text.js +5 -11
  305. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  306. package/lib/commonjs/renderer/components/text/TextBlob.js +5 -11
  307. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  308. package/lib/commonjs/renderer/components/text/TextPath.js +4 -10
  309. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  310. package/lib/commonjs/renderer/components/text/index.js +0 -8
  311. package/lib/commonjs/renderer/components/text/index.js.map +1 -1
  312. package/lib/commonjs/renderer/index.js +0 -2
  313. package/lib/commonjs/renderer/index.js.map +1 -1
  314. package/lib/commonjs/renderer/processors/Animations/index.js +0 -2
  315. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
  316. package/lib/commonjs/renderer/processors/index.js +0 -4
  317. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  318. package/lib/commonjs/renderer/processors/math/Coordinates.js +0 -12
  319. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  320. package/lib/commonjs/renderer/processors/math/Math.js +1 -7
  321. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
  322. package/lib/commonjs/renderer/processors/math/Transforms.js +0 -3
  323. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  324. package/lib/commonjs/renderer/processors/math/index.js +0 -6
  325. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  326. package/lib/commonjs/renderer/typeddash.js +2 -11
  327. package/lib/commonjs/renderer/typeddash.js.map +1 -1
  328. package/lib/commonjs/skia/NativeSetup.js +0 -6
  329. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  330. package/lib/commonjs/skia/Skia.js +2 -3
  331. package/lib/commonjs/skia/Skia.js.map +1 -1
  332. package/lib/commonjs/skia/Skia.web.js +1 -4
  333. package/lib/commonjs/skia/Skia.web.js.map +1 -1
  334. package/lib/commonjs/skia/core/AnimatedImage.d.ts +1 -1
  335. package/lib/commonjs/skia/core/AnimatedImage.js +2 -7
  336. package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -1
  337. package/lib/commonjs/skia/core/Data.d.ts +1 -1
  338. package/lib/commonjs/skia/core/Data.js +12 -25
  339. package/lib/commonjs/skia/core/Data.js.map +1 -1
  340. package/lib/commonjs/skia/core/Font.js +10 -36
  341. package/lib/commonjs/skia/core/Font.js.map +1 -1
  342. package/lib/commonjs/skia/core/Image.js +3 -16
  343. package/lib/commonjs/skia/core/Image.js.map +1 -1
  344. package/lib/commonjs/skia/core/Matrix.js +0 -4
  345. package/lib/commonjs/skia/core/Matrix.js.map +1 -1
  346. package/lib/commonjs/skia/core/Picture.js +0 -7
  347. package/lib/commonjs/skia/core/Picture.js.map +1 -1
  348. package/lib/commonjs/skia/core/RRect.js +0 -3
  349. package/lib/commonjs/skia/core/RRect.js.map +1 -1
  350. package/lib/commonjs/skia/core/Rect.d.ts +2 -2
  351. package/lib/commonjs/skia/core/Rect.js +0 -17
  352. package/lib/commonjs/skia/core/Rect.js.map +1 -1
  353. package/lib/commonjs/skia/core/SVG.js +0 -5
  354. package/lib/commonjs/skia/core/SVG.js.map +1 -1
  355. package/lib/commonjs/skia/core/Typeface.js +1 -6
  356. package/lib/commonjs/skia/core/Typeface.js.map +1 -1
  357. package/lib/commonjs/skia/core/Vector.js +3 -17
  358. package/lib/commonjs/skia/core/Vector.js.map +1 -1
  359. package/lib/commonjs/skia/core/index.js +0 -22
  360. package/lib/commonjs/skia/core/index.js.map +1 -1
  361. package/lib/commonjs/skia/index.js +0 -5
  362. package/lib/commonjs/skia/index.js.map +1 -1
  363. package/lib/commonjs/skia/types/AnimatedImage/index.js +0 -4
  364. package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -1
  365. package/lib/commonjs/skia/types/Canvas.d.ts +16 -1
  366. package/lib/commonjs/skia/types/Canvas.js +6 -11
  367. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  368. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js +0 -2
  369. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  370. package/lib/commonjs/skia/types/ColorFilter/index.js +0 -4
  371. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
  372. package/lib/commonjs/skia/types/Data/Data.js +0 -2
  373. package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
  374. package/lib/commonjs/skia/types/Data/index.js +0 -4
  375. package/lib/commonjs/skia/types/Data/index.js.map +1 -1
  376. package/lib/commonjs/skia/types/Font/Font.js +16 -34
  377. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  378. package/lib/commonjs/skia/types/Font/index.js +0 -6
  379. package/lib/commonjs/skia/types/Font/index.js.map +1 -1
  380. package/lib/commonjs/skia/types/Image/Image.d.ts +8 -0
  381. package/lib/commonjs/skia/types/Image/Image.js +9 -17
  382. package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
  383. package/lib/commonjs/skia/types/Image/ImageFactory.js +6 -11
  384. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  385. package/lib/commonjs/skia/types/Image/index.js +0 -4
  386. package/lib/commonjs/skia/types/Image/index.js.map +1 -1
  387. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +3 -7
  388. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  389. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +3 -5
  390. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  391. package/lib/commonjs/skia/types/ImageFilter/index.js +0 -4
  392. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
  393. package/lib/commonjs/skia/types/MaskFilter.js +4 -8
  394. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
  395. package/lib/commonjs/skia/types/Matrix.js +0 -7
  396. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  397. package/lib/commonjs/skia/types/Matrix4.js +22 -90
  398. package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
  399. package/lib/commonjs/skia/types/Paint/BlendMode.js +3 -6
  400. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
  401. package/lib/commonjs/skia/types/Paint/Paint.js +9 -19
  402. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
  403. package/lib/commonjs/skia/types/Paint/index.js +0 -4
  404. package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
  405. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js +3 -5
  406. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  407. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js +9 -17
  408. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  409. package/lib/commonjs/skia/types/Paragraph/TextStyle.js +9 -17
  410. package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -1
  411. package/lib/commonjs/skia/types/Paragraph/index.js +0 -12
  412. package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -1
  413. package/lib/commonjs/skia/types/Path/Path.js +9 -20
  414. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  415. package/lib/commonjs/skia/types/Path/index.js +0 -4
  416. package/lib/commonjs/skia/types/Path/index.js.map +1 -1
  417. package/lib/commonjs/skia/types/PathEffect.js +3 -7
  418. package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
  419. package/lib/commonjs/skia/types/Picture/index.js +0 -6
  420. package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
  421. package/lib/commonjs/skia/types/Point.js +3 -5
  422. package/lib/commonjs/skia/types/Point.js.map +1 -1
  423. package/lib/commonjs/skia/types/RRect.js +2 -3
  424. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  425. package/lib/commonjs/skia/types/RSXform.d.ts +7 -1
  426. package/lib/commonjs/skia/types/RSXform.js.map +1 -1
  427. package/lib/commonjs/skia/types/Rect.d.ts +4 -0
  428. package/lib/commonjs/skia/types/Rect.js +0 -3
  429. package/lib/commonjs/skia/types/Rect.js.map +1 -1
  430. package/lib/commonjs/skia/types/RuntimeEffect/index.js +0 -4
  431. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
  432. package/lib/commonjs/skia/types/SVG/index.js +0 -4
  433. package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
  434. package/lib/commonjs/skia/types/Shader/Shader.js +4 -12
  435. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  436. package/lib/commonjs/skia/types/Shader/index.js +0 -4
  437. package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
  438. package/lib/commonjs/skia/types/Skia.d.ts +3 -2
  439. package/lib/commonjs/skia/types/Skia.js.map +1 -1
  440. package/lib/commonjs/skia/types/Surface/index.js +0 -4
  441. package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
  442. package/lib/commonjs/skia/types/Typeface/index.js +0 -4
  443. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
  444. package/lib/commonjs/skia/types/Vertices/Vertices.js +3 -5
  445. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
  446. package/lib/commonjs/skia/types/Vertices/index.js +0 -2
  447. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
  448. package/lib/commonjs/skia/types/index.js +0 -62
  449. package/lib/commonjs/skia/types/index.js.map +1 -1
  450. package/lib/commonjs/skia/web/Host.js +7 -29
  451. package/lib/commonjs/skia/web/Host.js.map +1 -1
  452. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +3 -13
  453. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -1
  454. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js +0 -9
  455. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  456. package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +2 -1
  457. package/lib/commonjs/skia/web/JsiSkCanvas.js +25 -72
  458. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  459. package/lib/commonjs/skia/web/JsiSkColor.js +10 -54
  460. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
  461. package/lib/commonjs/skia/web/JsiSkColorFilter.js +3 -7
  462. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
  463. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +0 -12
  464. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  465. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +3 -13
  466. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
  467. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +3 -11
  468. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  469. package/lib/commonjs/skia/web/JsiSkData.js +5 -8
  470. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
  471. package/lib/commonjs/skia/web/JsiSkDataFactory.js +0 -10
  472. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
  473. package/lib/commonjs/skia/web/JsiSkFont.js +5 -33
  474. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  475. package/lib/commonjs/skia/web/JsiSkFontMgr.js +0 -8
  476. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -1
  477. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +0 -8
  478. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  479. package/lib/commonjs/skia/web/JsiSkImage.js +11 -33
  480. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
  481. package/lib/commonjs/skia/web/JsiSkImageFactory.js +2 -15
  482. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  483. package/lib/commonjs/skia/web/JsiSkImageFilter.js +3 -7
  484. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
  485. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +0 -28
  486. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  487. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +3 -7
  488. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
  489. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +0 -6
  490. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  491. package/lib/commonjs/skia/web/JsiSkMatrix.js +9 -26
  492. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  493. package/lib/commonjs/skia/web/JsiSkPaint.js +3 -35
  494. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  495. package/lib/commonjs/skia/web/JsiSkParagraph.js +21 -47
  496. package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
  497. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js +4 -26
  498. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  499. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +1 -11
  500. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  501. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js +19 -24
  502. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -1
  503. package/lib/commonjs/skia/web/JsiSkPath.js +4 -77
  504. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  505. package/lib/commonjs/skia/web/JsiSkPathEffect.js +3 -7
  506. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
  507. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +0 -23
  508. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  509. package/lib/commonjs/skia/web/JsiSkPathFactory.js +0 -16
  510. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
  511. package/lib/commonjs/skia/web/JsiSkPicture.js +3 -13
  512. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
  513. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +0 -8
  514. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
  515. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +4 -13
  516. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
  517. package/lib/commonjs/skia/web/JsiSkPoint.js +5 -12
  518. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
  519. package/lib/commonjs/skia/web/JsiSkRRect.js +5 -17
  520. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
  521. package/lib/commonjs/skia/web/JsiSkRSXform.d.ts +8 -2
  522. package/lib/commonjs/skia/web/JsiSkRSXform.js +30 -9
  523. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
  524. package/lib/commonjs/skia/web/JsiSkRect.d.ts +3 -2
  525. package/lib/commonjs/skia/web/JsiSkRect.js +11 -14
  526. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
  527. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +3 -16
  528. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  529. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +0 -8
  530. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  531. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +0 -6
  532. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
  533. package/lib/commonjs/skia/web/JsiSkShader.js +3 -7
  534. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
  535. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +0 -15
  536. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
  537. package/lib/commonjs/skia/web/JsiSkSurface.js +3 -13
  538. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
  539. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +0 -14
  540. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  541. package/lib/commonjs/skia/web/JsiSkTextBlob.js +3 -7
  542. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
  543. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +2 -12
  544. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  545. package/lib/commonjs/skia/web/JsiSkTextStyle.js +0 -3
  546. package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -1
  547. package/lib/commonjs/skia/web/JsiSkTypeface.js +3 -10
  548. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
  549. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +0 -8
  550. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  551. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +16 -26
  552. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  553. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -6
  554. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  555. package/lib/commonjs/skia/web/JsiSkVertices.js +3 -10
  556. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
  557. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +8 -27
  558. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
  559. package/lib/commonjs/skia/web/JsiSkia.js +5 -33
  560. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  561. package/lib/commonjs/skia/web/index.js +0 -2
  562. package/lib/commonjs/skia/web/index.js.map +1 -1
  563. package/lib/commonjs/specs/NativeSkiaModule.js +1 -5
  564. package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -1
  565. package/lib/commonjs/specs/NativeSkiaModule.web.js +1 -4
  566. package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -1
  567. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +1 -6
  568. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -1
  569. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +1 -6
  570. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  571. package/lib/commonjs/views/SkiaBaseWebView.js +18 -66
  572. package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
  573. package/lib/commonjs/views/SkiaDomView.js +8 -40
  574. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  575. package/lib/commonjs/views/SkiaDomView.web.js +0 -9
  576. package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
  577. package/lib/commonjs/views/SkiaJSDomView.js +10 -43
  578. package/lib/commonjs/views/SkiaJSDomView.js.map +1 -1
  579. package/lib/commonjs/views/SkiaJSDomView.web.js +0 -1
  580. package/lib/commonjs/views/SkiaJSDomView.web.js.map +1 -1
  581. package/lib/commonjs/views/SkiaPictureView.js +6 -32
  582. package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
  583. package/lib/commonjs/views/SkiaPictureView.web.js +0 -5
  584. package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -1
  585. package/lib/commonjs/views/SkiaViewNativeId.js +1 -2
  586. package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -1
  587. package/lib/commonjs/views/api.js.map +1 -1
  588. package/lib/commonjs/views/index.js +0 -8
  589. package/lib/commonjs/views/index.js.map +1 -1
  590. package/lib/commonjs/views/types.js +3 -5
  591. package/lib/commonjs/views/types.js.map +1 -1
  592. package/lib/commonjs/views/useTouchHandler.js +19 -33
  593. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  594. package/lib/commonjs/web/LoadSkiaWeb.js +8 -12
  595. package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
  596. package/lib/commonjs/web/WithSkiaWeb.js +10 -18
  597. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  598. package/lib/commonjs/web/index.js +0 -4
  599. package/lib/commonjs/web/index.js.map +1 -1
  600. package/lib/module/Platform/Platform.js.map +1 -1
  601. package/lib/module/Platform/Platform.web.js +7 -23
  602. package/lib/module/Platform/Platform.web.js.map +1 -1
  603. package/lib/module/Platform/index.js.map +1 -1
  604. package/lib/module/animation/functions/index.js.map +1 -1
  605. package/lib/module/animation/functions/interpolate.js +12 -29
  606. package/lib/module/animation/functions/interpolate.js.map +1 -1
  607. package/lib/module/animation/functions/interpolateColors.js +2 -5
  608. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  609. package/lib/module/animation/functions/interpolatePaths.js +1 -13
  610. package/lib/module/animation/functions/interpolatePaths.js.map +1 -1
  611. package/lib/module/animation/functions/interpolateVector.js.map +1 -1
  612. package/lib/module/animation/index.js.map +1 -1
  613. package/lib/module/dom/nodes/DrawingNode.js +7 -17
  614. package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
  615. package/lib/module/dom/nodes/GroupNode.js +0 -2
  616. package/lib/module/dom/nodes/GroupNode.js.map +1 -1
  617. package/lib/module/dom/nodes/JsiSkDOM.d.ts +2 -1
  618. package/lib/module/dom/nodes/JsiSkDOM.js +18 -65
  619. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  620. package/lib/module/dom/nodes/LayerNode.js +0 -6
  621. package/lib/module/dom/nodes/LayerNode.js.map +1 -1
  622. package/lib/module/dom/nodes/Node.js +4 -32
  623. package/lib/module/dom/nodes/Node.js.map +1 -1
  624. package/lib/module/dom/nodes/PaintNode.js +1 -23
  625. package/lib/module/dom/nodes/PaintNode.js.map +1 -1
  626. package/lib/module/dom/nodes/RenderNode.js +3 -29
  627. package/lib/module/dom/nodes/RenderNode.js.map +1 -1
  628. package/lib/module/dom/nodes/datatypes/Circle.js +4 -4
  629. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  630. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -1
  631. package/lib/module/dom/nodes/datatypes/Fitting.js +15 -39
  632. package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -1
  633. package/lib/module/dom/nodes/datatypes/Gradient.js +7 -9
  634. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
  635. package/lib/module/dom/nodes/datatypes/Path.js +2 -3
  636. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
  637. package/lib/module/dom/nodes/datatypes/Radius.js +0 -1
  638. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
  639. package/lib/module/dom/nodes/datatypes/Rect.js +5 -7
  640. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  641. package/lib/module/dom/nodes/datatypes/Transform.js +0 -3
  642. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -1
  643. package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
  644. package/lib/module/dom/nodes/drawings/AtlasNode.d.ts +8 -0
  645. package/lib/module/dom/nodes/drawings/AtlasNode.js +29 -0
  646. package/lib/module/dom/nodes/drawings/AtlasNode.js.map +1 -0
  647. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js +4 -13
  648. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  649. package/lib/module/dom/nodes/drawings/Box.js +8 -27
  650. package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
  651. package/lib/module/dom/nodes/drawings/CircleNode.js +4 -10
  652. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
  653. package/lib/module/dom/nodes/drawings/DiffRectNode.js +4 -8
  654. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  655. package/lib/module/dom/nodes/drawings/FillNode.js +5 -10
  656. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
  657. package/lib/module/dom/nodes/drawings/ImageNode.js +4 -14
  658. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
  659. package/lib/module/dom/nodes/drawings/ImageSVG.js +3 -14
  660. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
  661. package/lib/module/dom/nodes/drawings/LineNode.js +4 -8
  662. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
  663. package/lib/module/dom/nodes/drawings/OvalNode.js +4 -10
  664. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
  665. package/lib/module/dom/nodes/drawings/ParagraphNode.js +3 -8
  666. package/lib/module/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  667. package/lib/module/dom/nodes/drawings/PatchNode.js +6 -12
  668. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
  669. package/lib/module/dom/nodes/drawings/PathNode.js +4 -14
  670. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
  671. package/lib/module/dom/nodes/drawings/PictureNode.js +3 -7
  672. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
  673. package/lib/module/dom/nodes/drawings/PointsNode.js +4 -8
  674. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
  675. package/lib/module/dom/nodes/drawings/RRectNode.js +7 -13
  676. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
  677. package/lib/module/dom/nodes/drawings/RectNode.js +4 -10
  678. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
  679. package/lib/module/dom/nodes/drawings/Text.js +18 -51
  680. package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
  681. package/lib/module/dom/nodes/drawings/VerticesNode.js +4 -10
  682. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
  683. package/lib/module/dom/nodes/drawings/index.d.ts +1 -0
  684. package/lib/module/dom/nodes/drawings/index.js +1 -0
  685. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  686. package/lib/module/dom/nodes/index.js.map +1 -1
  687. package/lib/module/dom/nodes/paint/BlendNode.js +4 -9
  688. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -1
  689. package/lib/module/dom/nodes/paint/ColorFilters.js +0 -16
  690. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
  691. package/lib/module/dom/nodes/paint/ImageFilters.js +3 -40
  692. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
  693. package/lib/module/dom/nodes/paint/MaskFilters.js +0 -2
  694. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
  695. package/lib/module/dom/nodes/paint/PathEffects.js +0 -26
  696. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
  697. package/lib/module/dom/nodes/paint/Shaders.js +0 -23
  698. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
  699. package/lib/module/dom/nodes/paint/index.js.map +1 -1
  700. package/lib/module/dom/types/DeclarationContext.js +3 -27
  701. package/lib/module/dom/types/DeclarationContext.js.map +1 -1
  702. package/lib/module/dom/types/DrawingContext.js +3 -85
  703. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  704. package/lib/module/dom/types/Drawings.d.ts +7 -1
  705. package/lib/module/dom/types/Drawings.js.map +1 -1
  706. package/lib/module/dom/types/NodeType.d.ts +1 -0
  707. package/lib/module/dom/types/NodeType.js +7 -9
  708. package/lib/module/dom/types/NodeType.js.map +1 -1
  709. package/lib/module/dom/types/SkDOM.d.ts +2 -1
  710. package/lib/module/dom/types/SkDOM.js.map +1 -1
  711. package/lib/module/dom/types/index.js.map +1 -1
  712. package/lib/module/external/index.js.map +1 -1
  713. package/lib/module/external/reanimated/buffers.d.ts +5 -0
  714. package/lib/module/external/reanimated/buffers.js +29 -0
  715. package/lib/module/external/reanimated/buffers.js.map +1 -0
  716. package/lib/module/external/reanimated/index.d.ts +1 -0
  717. package/lib/module/external/reanimated/index.js +1 -0
  718. package/lib/module/external/reanimated/index.js.map +1 -1
  719. package/lib/module/external/reanimated/interpolators.d.ts +1 -1
  720. package/lib/module/external/reanimated/interpolators.js +5 -4
  721. package/lib/module/external/reanimated/interpolators.js.map +1 -1
  722. package/lib/module/external/reanimated/moduleWrapper.js +2 -4
  723. package/lib/module/external/reanimated/moduleWrapper.js.map +1 -1
  724. package/lib/module/external/reanimated/renderHelpers.js +5 -28
  725. package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
  726. package/lib/module/external/reanimated/textures.js +5 -18
  727. package/lib/module/external/reanimated/textures.js.map +1 -1
  728. package/lib/module/external/reanimated/useAnimatedImageValue.js +16 -9
  729. package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
  730. package/lib/module/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  731. package/lib/module/headless/index.js +3 -4
  732. package/lib/module/headless/index.js.map +1 -1
  733. package/lib/module/index.js.map +1 -1
  734. package/lib/module/mock/index.js +7 -4
  735. package/lib/module/mock/index.js.map +1 -1
  736. package/lib/module/renderer/Canvas.js +17 -28
  737. package/lib/module/renderer/Canvas.js.map +1 -1
  738. package/lib/module/renderer/Container.js +4 -12
  739. package/lib/module/renderer/Container.js.map +1 -1
  740. package/lib/module/renderer/HostComponents.d.ts +3 -1
  741. package/lib/module/renderer/HostComponents.js +2 -57
  742. package/lib/module/renderer/HostComponents.js.map +1 -1
  743. package/lib/module/renderer/HostConfig.js +8 -29
  744. package/lib/module/renderer/HostConfig.js.map +1 -1
  745. package/lib/module/renderer/Offscreen.d.ts +4 -2
  746. package/lib/module/renderer/Offscreen.js +16 -13
  747. package/lib/module/renderer/Offscreen.js.map +1 -1
  748. package/lib/module/renderer/Reconciler.js +4 -13
  749. package/lib/module/renderer/Reconciler.js.map +1 -1
  750. package/lib/module/renderer/components/Blend.js.map +1 -1
  751. package/lib/module/renderer/components/Group.js +4 -8
  752. package/lib/module/renderer/components/Group.js.map +1 -1
  753. package/lib/module/renderer/components/Mask.js +6 -7
  754. package/lib/module/renderer/components/Mask.js.map +1 -1
  755. package/lib/module/renderer/components/Paint.js.map +1 -1
  756. package/lib/module/renderer/components/Picture.js.map +1 -1
  757. package/lib/module/renderer/components/backdrop/BackdropBlur.js +5 -7
  758. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  759. package/lib/module/renderer/components/backdrop/BackdropFilter.js +5 -6
  760. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  761. package/lib/module/renderer/components/backdrop/index.js.map +1 -1
  762. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  763. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  764. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  765. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  766. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  767. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  768. package/lib/module/renderer/components/colorFilters/index.js.map +1 -1
  769. package/lib/module/renderer/components/image/Image.js.map +1 -1
  770. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  771. package/lib/module/renderer/components/image/ImageShader.js +9 -11
  772. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  773. package/lib/module/renderer/components/image/index.js.map +1 -1
  774. package/lib/module/renderer/components/imageFilters/Blur.js +4 -6
  775. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  776. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  777. package/lib/module/renderer/components/imageFilters/Morphology.js +4 -6
  778. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  779. package/lib/module/renderer/components/imageFilters/Offset.js +5 -7
  780. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  781. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  782. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  783. package/lib/module/renderer/components/imageFilters/index.js.map +1 -1
  784. package/lib/module/renderer/components/index.js.map +1 -1
  785. package/lib/module/renderer/components/maskFilters/Blur.js +5 -7
  786. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  787. package/lib/module/renderer/components/maskFilters/index.js.map +1 -1
  788. package/lib/module/renderer/components/paragraph/Paragraph.js.map +1 -1
  789. package/lib/module/renderer/components/paragraph/index.js.map +1 -1
  790. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  791. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  792. package/lib/module/renderer/components/pathEffects/Discrete.js +4 -6
  793. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  794. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  795. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  796. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  797. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  798. package/lib/module/renderer/components/pathEffects/index.js.map +1 -1
  799. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  800. package/lib/module/renderer/components/shaders/FractalNoise.js +6 -8
  801. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  802. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  803. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  804. package/lib/module/renderer/components/shaders/Shader.js +4 -6
  805. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  806. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -1
  807. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  808. package/lib/module/renderer/components/shaders/Turbulence.js +6 -8
  809. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  810. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  811. package/lib/module/renderer/components/shaders/index.js.map +1 -1
  812. package/lib/module/renderer/components/shapes/Atlas.d.ts +4 -0
  813. package/lib/module/renderer/components/shapes/Atlas.js +5 -0
  814. package/lib/module/renderer/components/shapes/Atlas.js.map +1 -0
  815. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  816. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  817. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  818. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  819. package/lib/module/renderer/components/shapes/FitBox.js +6 -7
  820. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  821. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  822. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  823. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  824. package/lib/module/renderer/components/shapes/Path.js +5 -7
  825. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  826. package/lib/module/renderer/components/shapes/Points.js +4 -6
  827. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  828. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  829. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  830. package/lib/module/renderer/components/shapes/Vertices.js +4 -6
  831. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  832. package/lib/module/renderer/components/shapes/index.d.ts +1 -0
  833. package/lib/module/renderer/components/shapes/index.js +1 -0
  834. package/lib/module/renderer/components/shapes/index.js.map +1 -1
  835. package/lib/module/renderer/components/text/Glyphs.js +5 -7
  836. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  837. package/lib/module/renderer/components/text/Text.js +5 -7
  838. package/lib/module/renderer/components/text/Text.js.map +1 -1
  839. package/lib/module/renderer/components/text/TextBlob.js +5 -7
  840. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  841. package/lib/module/renderer/components/text/TextPath.js +4 -6
  842. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  843. package/lib/module/renderer/components/text/index.js.map +1 -1
  844. package/lib/module/renderer/index.js.map +1 -1
  845. package/lib/module/renderer/processors/Animations/index.js.map +1 -1
  846. package/lib/module/renderer/processors/index.js.map +1 -1
  847. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  848. package/lib/module/renderer/processors/math/Math.js +1 -1
  849. package/lib/module/renderer/processors/math/Math.js.map +1 -1
  850. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  851. package/lib/module/renderer/processors/math/index.js.map +1 -1
  852. package/lib/module/renderer/typeddash.js +2 -5
  853. package/lib/module/renderer/typeddash.js.map +1 -1
  854. package/lib/module/skia/NativeSetup.js +0 -4
  855. package/lib/module/skia/NativeSetup.js.map +1 -1
  856. package/lib/module/skia/Skia.js +1 -0
  857. package/lib/module/skia/Skia.js.map +1 -1
  858. package/lib/module/skia/Skia.web.js.map +1 -1
  859. package/lib/module/skia/core/AnimatedImage.d.ts +1 -1
  860. package/lib/module/skia/core/AnimatedImage.js +2 -2
  861. package/lib/module/skia/core/AnimatedImage.js.map +1 -1
  862. package/lib/module/skia/core/Data.d.ts +1 -1
  863. package/lib/module/skia/core/Data.js +12 -17
  864. package/lib/module/skia/core/Data.js.map +1 -1
  865. package/lib/module/skia/core/Font.js +9 -24
  866. package/lib/module/skia/core/Font.js.map +1 -1
  867. package/lib/module/skia/core/Image.js +3 -8
  868. package/lib/module/skia/core/Image.js.map +1 -1
  869. package/lib/module/skia/core/Matrix.js.map +1 -1
  870. package/lib/module/skia/core/Picture.js +1 -3
  871. package/lib/module/skia/core/Picture.js.map +1 -1
  872. package/lib/module/skia/core/RRect.js.map +1 -1
  873. package/lib/module/skia/core/Rect.d.ts +2 -2
  874. package/lib/module/skia/core/Rect.js.map +1 -1
  875. package/lib/module/skia/core/SVG.js.map +1 -1
  876. package/lib/module/skia/core/Typeface.js +1 -1
  877. package/lib/module/skia/core/Typeface.js.map +1 -1
  878. package/lib/module/skia/core/Vector.js +1 -3
  879. package/lib/module/skia/core/Vector.js.map +1 -1
  880. package/lib/module/skia/core/index.js.map +1 -1
  881. package/lib/module/skia/index.js.map +1 -1
  882. package/lib/module/skia/types/AnimatedImage/index.js.map +1 -1
  883. package/lib/module/skia/types/Canvas.d.ts +16 -1
  884. package/lib/module/skia/types/Canvas.js +6 -9
  885. package/lib/module/skia/types/Canvas.js.map +1 -1
  886. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  887. package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
  888. package/lib/module/skia/types/Data/Data.js.map +1 -1
  889. package/lib/module/skia/types/Data/index.js.map +1 -1
  890. package/lib/module/skia/types/Font/Font.js +15 -26
  891. package/lib/module/skia/types/Font/Font.js.map +1 -1
  892. package/lib/module/skia/types/Font/index.js.map +1 -1
  893. package/lib/module/skia/types/Image/Image.d.ts +8 -0
  894. package/lib/module/skia/types/Image/Image.js +9 -14
  895. package/lib/module/skia/types/Image/Image.js.map +1 -1
  896. package/lib/module/skia/types/Image/ImageFactory.js +6 -9
  897. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  898. package/lib/module/skia/types/Image/index.js.map +1 -1
  899. package/lib/module/skia/types/ImageFilter/ImageFilter.js +3 -5
  900. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  901. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +3 -4
  902. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  903. package/lib/module/skia/types/ImageFilter/index.js.map +1 -1
  904. package/lib/module/skia/types/MaskFilter.js +4 -5
  905. package/lib/module/skia/types/MaskFilter.js.map +1 -1
  906. package/lib/module/skia/types/Matrix.js.map +1 -1
  907. package/lib/module/skia/types/Matrix4.js +22 -64
  908. package/lib/module/skia/types/Matrix4.js.map +1 -1
  909. package/lib/module/skia/types/Paint/BlendMode.js +3 -4
  910. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
  911. package/lib/module/skia/types/Paint/Paint.js +9 -15
  912. package/lib/module/skia/types/Paint/Paint.js.map +1 -1
  913. package/lib/module/skia/types/Paint/index.js.map +1 -1
  914. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js +3 -4
  915. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  916. package/lib/module/skia/types/Paragraph/ParagraphStyle.js +9 -14
  917. package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  918. package/lib/module/skia/types/Paragraph/TextStyle.js +9 -14
  919. package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -1
  920. package/lib/module/skia/types/Paragraph/index.js.map +1 -1
  921. package/lib/module/skia/types/Path/Path.js +9 -14
  922. package/lib/module/skia/types/Path/Path.js.map +1 -1
  923. package/lib/module/skia/types/Path/index.js.map +1 -1
  924. package/lib/module/skia/types/PathEffect.js +3 -4
  925. package/lib/module/skia/types/PathEffect.js.map +1 -1
  926. package/lib/module/skia/types/Picture/index.js.map +1 -1
  927. package/lib/module/skia/types/Point.js +3 -4
  928. package/lib/module/skia/types/Point.js.map +1 -1
  929. package/lib/module/skia/types/RRect.js +2 -1
  930. package/lib/module/skia/types/RRect.js.map +1 -1
  931. package/lib/module/skia/types/RSXform.d.ts +7 -1
  932. package/lib/module/skia/types/RSXform.js.map +1 -1
  933. package/lib/module/skia/types/Rect.d.ts +4 -0
  934. package/lib/module/skia/types/Rect.js +0 -1
  935. package/lib/module/skia/types/Rect.js.map +1 -1
  936. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
  937. package/lib/module/skia/types/SVG/index.js.map +1 -1
  938. package/lib/module/skia/types/Shader/Shader.js +4 -9
  939. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  940. package/lib/module/skia/types/Shader/index.js.map +1 -1
  941. package/lib/module/skia/types/Skia.d.ts +3 -2
  942. package/lib/module/skia/types/Skia.js.map +1 -1
  943. package/lib/module/skia/types/Surface/index.js.map +1 -1
  944. package/lib/module/skia/types/Typeface/index.js.map +1 -1
  945. package/lib/module/skia/types/Vertices/Vertices.js +3 -4
  946. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -1
  947. package/lib/module/skia/types/Vertices/index.js.map +1 -1
  948. package/lib/module/skia/types/index.js.map +1 -1
  949. package/lib/module/skia/web/Host.js +6 -16
  950. package/lib/module/skia/web/Host.js.map +1 -1
  951. package/lib/module/skia/web/JsiSkAnimatedImage.js +3 -9
  952. package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
  953. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js +0 -4
  954. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  955. package/lib/module/skia/web/JsiSkCanvas.d.ts +2 -1
  956. package/lib/module/skia/web/JsiSkCanvas.js +27 -59
  957. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  958. package/lib/module/skia/web/JsiSkColor.js +10 -52
  959. package/lib/module/skia/web/JsiSkColor.js.map +1 -1
  960. package/lib/module/skia/web/JsiSkColorFilter.js +3 -4
  961. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  962. package/lib/module/skia/web/JsiSkColorFilterFactory.js +0 -8
  963. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  964. package/lib/module/skia/web/JsiSkContourMeasure.js +3 -8
  965. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  966. package/lib/module/skia/web/JsiSkContourMeasureIter.js +3 -7
  967. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  968. package/lib/module/skia/web/JsiSkData.js +5 -5
  969. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  970. package/lib/module/skia/web/JsiSkDataFactory.js +0 -6
  971. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
  972. package/lib/module/skia/web/JsiSkFont.js +5 -26
  973. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  974. package/lib/module/skia/web/JsiSkFontMgr.js +0 -5
  975. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -1
  976. package/lib/module/skia/web/JsiSkFontMgrFactory.js +0 -4
  977. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  978. package/lib/module/skia/web/JsiSkImage.js +7 -23
  979. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  980. package/lib/module/skia/web/JsiSkImageFactory.js +2 -10
  981. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  982. package/lib/module/skia/web/JsiSkImageFilter.js +3 -4
  983. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  984. package/lib/module/skia/web/JsiSkImageFilterFactory.js +0 -23
  985. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  986. package/lib/module/skia/web/JsiSkMaskFilter.js +3 -4
  987. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  988. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +0 -2
  989. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  990. package/lib/module/skia/web/JsiSkMatrix.js +7 -21
  991. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  992. package/lib/module/skia/web/JsiSkPaint.js +3 -27
  993. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  994. package/lib/module/skia/web/JsiSkParagraph.js +21 -44
  995. package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
  996. package/lib/module/skia/web/JsiSkParagraphBuilder.js +1 -18
  997. package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  998. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +0 -4
  999. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  1000. package/lib/module/skia/web/JsiSkParagraphStyle.js +4 -6
  1001. package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
  1002. package/lib/module/skia/web/JsiSkPath.js +4 -69
  1003. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  1004. package/lib/module/skia/web/JsiSkPathEffect.js +3 -4
  1005. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  1006. package/lib/module/skia/web/JsiSkPathEffectFactory.js +0 -17
  1007. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  1008. package/lib/module/skia/web/JsiSkPathFactory.js +0 -12
  1009. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
  1010. package/lib/module/skia/web/JsiSkPicture.js +4 -6
  1011. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  1012. package/lib/module/skia/web/JsiSkPictureFactory.js +0 -4
  1013. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
  1014. package/lib/module/skia/web/JsiSkPictureRecorder.js +3 -6
  1015. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  1016. package/lib/module/skia/web/JsiSkPoint.js +5 -9
  1017. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  1018. package/lib/module/skia/web/JsiSkRRect.js +5 -13
  1019. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  1020. package/lib/module/skia/web/JsiSkRSXform.d.ts +8 -2
  1021. package/lib/module/skia/web/JsiSkRSXform.js +31 -7
  1022. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  1023. package/lib/module/skia/web/JsiSkRect.d.ts +3 -2
  1024. package/lib/module/skia/web/JsiSkRect.js +11 -11
  1025. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  1026. package/lib/module/skia/web/JsiSkRuntimeEffect.js +3 -11
  1027. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  1028. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +0 -4
  1029. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  1030. package/lib/module/skia/web/JsiSkSVGFactory.js +0 -3
  1031. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
  1032. package/lib/module/skia/web/JsiSkShader.js +3 -4
  1033. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  1034. package/lib/module/skia/web/JsiSkShaderFactory.js +0 -9
  1035. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
  1036. package/lib/module/skia/web/JsiSkSurface.js +3 -7
  1037. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  1038. package/lib/module/skia/web/JsiSkSurfaceFactory.js +0 -10
  1039. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  1040. package/lib/module/skia/web/JsiSkTextBlob.js +3 -4
  1041. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  1042. package/lib/module/skia/web/JsiSkTextBlobFactory.js +2 -6
  1043. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  1044. package/lib/module/skia/web/JsiSkTextStyle.js +0 -1
  1045. package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -1
  1046. package/lib/module/skia/web/JsiSkTypeface.js +3 -7
  1047. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  1048. package/lib/module/skia/web/JsiSkTypefaceFactory.js +0 -4
  1049. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  1050. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +16 -23
  1051. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  1052. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -2
  1053. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  1054. package/lib/module/skia/web/JsiSkVertices.js +3 -6
  1055. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  1056. package/lib/module/skia/web/JsiSkVerticesFactory.js +8 -24
  1057. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
  1058. package/lib/module/skia/web/JsiSkia.js +5 -0
  1059. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  1060. package/lib/module/skia/web/index.js.map +1 -1
  1061. package/lib/module/specs/NativeSkiaModule.js.map +1 -1
  1062. package/lib/module/specs/NativeSkiaModule.web.js +2 -1
  1063. package/lib/module/specs/NativeSkiaModule.web.js.map +1 -1
  1064. package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -1
  1065. package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  1066. package/lib/module/views/SkiaBaseWebView.js +16 -58
  1067. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  1068. package/lib/module/views/SkiaDomView.js +8 -23
  1069. package/lib/module/views/SkiaDomView.js.map +1 -1
  1070. package/lib/module/views/SkiaDomView.web.js +0 -4
  1071. package/lib/module/views/SkiaDomView.web.js.map +1 -1
  1072. package/lib/module/views/SkiaJSDomView.js +10 -26
  1073. package/lib/module/views/SkiaJSDomView.js.map +1 -1
  1074. package/lib/module/views/SkiaJSDomView.web.js.map +1 -1
  1075. package/lib/module/views/SkiaPictureView.js +5 -18
  1076. package/lib/module/views/SkiaPictureView.js.map +1 -1
  1077. package/lib/module/views/SkiaPictureView.web.js +0 -2
  1078. package/lib/module/views/SkiaPictureView.web.js.map +1 -1
  1079. package/lib/module/views/SkiaViewNativeId.js.map +1 -1
  1080. package/lib/module/views/api.js.map +1 -1
  1081. package/lib/module/views/index.js.map +1 -1
  1082. package/lib/module/views/types.js +4 -4
  1083. package/lib/module/views/types.js.map +1 -1
  1084. package/lib/module/views/useTouchHandler.js +13 -21
  1085. package/lib/module/views/useTouchHandler.js.map +1 -1
  1086. package/lib/module/web/LoadSkiaWeb.js +4 -5
  1087. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  1088. package/lib/module/web/WithSkiaWeb.js +7 -8
  1089. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  1090. package/lib/module/web/index.js.map +1 -1
  1091. package/lib/typescript/src/dom/nodes/JsiSkDOM.d.ts +2 -1
  1092. package/lib/typescript/src/dom/nodes/drawings/AtlasNode.d.ts +8 -0
  1093. package/lib/typescript/src/dom/nodes/drawings/index.d.ts +1 -0
  1094. package/lib/typescript/src/dom/types/Drawings.d.ts +7 -1
  1095. package/lib/typescript/src/dom/types/NodeType.d.ts +1 -0
  1096. package/lib/typescript/src/dom/types/SkDOM.d.ts +2 -1
  1097. package/lib/typescript/src/external/reanimated/buffers.d.ts +5 -0
  1098. package/lib/typescript/src/external/reanimated/index.d.ts +1 -0
  1099. package/lib/typescript/src/external/reanimated/interpolators.d.ts +1 -1
  1100. package/lib/typescript/src/renderer/HostComponents.d.ts +3 -1
  1101. package/lib/typescript/src/renderer/Offscreen.d.ts +4 -2
  1102. package/lib/typescript/src/renderer/components/shapes/Atlas.d.ts +4 -0
  1103. package/lib/typescript/src/renderer/components/shapes/index.d.ts +1 -0
  1104. package/lib/typescript/src/skia/core/AnimatedImage.d.ts +1 -1
  1105. package/lib/typescript/src/skia/core/Data.d.ts +1 -1
  1106. package/lib/typescript/src/skia/core/Rect.d.ts +2 -2
  1107. package/lib/typescript/src/skia/types/Canvas.d.ts +16 -1
  1108. package/lib/typescript/src/skia/types/Image/Image.d.ts +8 -0
  1109. package/lib/typescript/src/skia/types/RSXform.d.ts +7 -1
  1110. package/lib/typescript/src/skia/types/Rect.d.ts +4 -0
  1111. package/lib/typescript/src/skia/types/Skia.d.ts +3 -2
  1112. package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +2 -1
  1113. package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +8 -2
  1114. package/lib/typescript/src/skia/web/JsiSkRect.d.ts +3 -2
  1115. package/package.json +15 -15
  1116. package/react-native-skia.podspec +1 -1
  1117. package/src/dom/nodes/JsiSkDOM.ts +8 -0
  1118. package/src/dom/nodes/Node.ts +1 -0
  1119. package/src/dom/nodes/drawings/AtlasNode.ts +24 -0
  1120. package/src/dom/nodes/drawings/index.ts +1 -0
  1121. package/src/dom/types/Drawings.ts +9 -0
  1122. package/src/dom/types/NodeType.ts +1 -0
  1123. package/src/dom/types/SkDOM.ts +2 -0
  1124. package/src/external/reanimated/buffers.ts +53 -0
  1125. package/src/external/reanimated/index.ts +1 -0
  1126. package/src/external/reanimated/interpolators.ts +4 -1
  1127. package/src/external/reanimated/textures.tsx +7 -19
  1128. package/src/external/reanimated/useAnimatedImageValue.ts +15 -4
  1129. package/src/mock/index.ts +5 -0
  1130. package/src/renderer/HostComponents.ts +6 -1
  1131. package/src/renderer/Offscreen.tsx +20 -16
  1132. package/src/renderer/components/shapes/Atlas.tsx +8 -0
  1133. package/src/renderer/components/shapes/index.ts +1 -0
  1134. package/src/skia/core/AnimatedImage.ts +3 -2
  1135. package/src/skia/core/Data.ts +8 -4
  1136. package/src/skia/types/Canvas.ts +32 -1
  1137. package/src/skia/types/Image/Image.ts +10 -0
  1138. package/src/skia/types/RSXform.ts +7 -1
  1139. package/src/skia/types/Rect.ts +6 -0
  1140. package/src/skia/types/Skia.ts +10 -2
  1141. package/src/skia/web/JsiSkCanvas.ts +60 -23
  1142. package/src/skia/web/JsiSkRSXform.ts +28 -4
  1143. package/src/skia/web/JsiSkRect.ts +12 -2
  1144. package/src/skia/web/JsiSkTextBlobFactory.ts +5 -5
  1145. package/src/skia/web/JsiSkia.ts +15 -0
  1146. package/lib/commonjs/animation/types.d.ts +0 -18
  1147. package/lib/commonjs/animation/types.js +0 -2
  1148. package/lib/commonjs/animation/types.js.map +0 -1
  1149. package/lib/module/animation/types.d.ts +0 -18
  1150. package/lib/module/animation/types.js +0 -2
  1151. package/lib/module/animation/types.js.map +0 -1
  1152. package/lib/typescript/src/animation/types.d.ts +0 -18
  1153. package/src/animation/types.ts +0 -23
@@ -1,2 +1,8 @@
1
1
  import type { SkJSIInstance } from "./JsiInstance";
2
- export type SkRSXform = SkJSIInstance<"RSXform">;
2
+ export interface SkRSXform extends SkJSIInstance<"RSXform"> {
3
+ readonly scos: number;
4
+ readonly ssin: number;
5
+ readonly tx: number;
6
+ readonly ty: number;
7
+ set(scos: number, ssin: number, tx: number, ty: number): void;
8
+ }
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["RSXform.ts"],"sourcesContent":["import type { SkJSIInstance } from \"./JsiInstance\";\n\nexport type SkRSXform = SkJSIInstance<\"RSXform\">;\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["RSXform.ts"],"sourcesContent":["import type { SkJSIInstance } from \"./JsiInstance\";\n\nexport interface SkRSXform extends SkJSIInstance<\"RSXform\"> {\n readonly scos: number;\n readonly ssin: number;\n readonly tx: number;\n readonly ty: number;\n set(scos: number, ssin: number, tx: number, ty: number): void;\n}\n"],"mappings":""}
@@ -1,7 +1,11 @@
1
+ import type { SkJSIInstance } from "./JsiInstance";
1
2
  export interface SkRect {
2
3
  readonly x: number;
3
4
  readonly y: number;
4
5
  readonly width: number;
5
6
  readonly height: number;
6
7
  }
8
+ export interface SkHostRect extends SkRect, SkJSIInstance<"Rect"> {
9
+ setXYWH(x: number, y: number, width: number, height: number): void;
10
+ }
7
11
  export declare const isRect: (def: unknown) => def is SkRect;
@@ -5,7 +5,6 @@ export const isRect = def => {
5
5
  const rect = def;
6
6
  return typeof rect.x === "number" && typeof rect.y === "number" && typeof rect.width === "number" && typeof rect.height === "number";
7
7
  }
8
-
9
8
  return false;
10
9
  };
11
10
  //# sourceMappingURL=Rect.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["isRect","def","rect","x","y","width","height"],"sources":["Rect.ts"],"sourcesContent":["export interface SkRect {\n readonly x: number;\n readonly y: number;\n readonly width: number;\n readonly height: number;\n}\n\nexport const isRect = (def: unknown): def is SkRect => {\n \"worklet\";\n if (typeof def === \"object\" && def !== null) {\n const rect = def as SkRect;\n return (\n typeof rect.x === \"number\" &&\n typeof rect.y === \"number\" &&\n typeof rect.width === \"number\" &&\n typeof rect.height === \"number\"\n );\n }\n return false;\n};\n"],"mappings":"AAOA,OAAO,MAAMA,MAAM,GAAIC,GAAD,IAAiC;EACrD;;EACA,IAAI,OAAOA,GAAP,KAAe,QAAf,IAA2BA,GAAG,KAAK,IAAvC,EAA6C;IAC3C,MAAMC,IAAI,GAAGD,GAAb;IACA,OACE,OAAOC,IAAI,CAACC,CAAZ,KAAkB,QAAlB,IACA,OAAOD,IAAI,CAACE,CAAZ,KAAkB,QADlB,IAEA,OAAOF,IAAI,CAACG,KAAZ,KAAsB,QAFtB,IAGA,OAAOH,IAAI,CAACI,MAAZ,KAAuB,QAJzB;EAMD;;EACD,OAAO,KAAP;AACD,CAZM"}
1
+ {"version":3,"names":["isRect","def","rect","x","y","width","height"],"sources":["Rect.ts"],"sourcesContent":["import type { SkJSIInstance } from \"./JsiInstance\";\n\nexport interface SkRect {\n readonly x: number;\n readonly y: number;\n readonly width: number;\n readonly height: number;\n}\n\nexport interface SkHostRect extends SkRect, SkJSIInstance<\"Rect\"> {\n setXYWH(x: number, y: number, width: number, height: number): void;\n}\n\nexport const isRect = (def: unknown): def is SkRect => {\n \"worklet\";\n if (typeof def === \"object\" && def !== null) {\n const rect = def as SkRect;\n return (\n typeof rect.x === \"number\" &&\n typeof rect.y === \"number\" &&\n typeof rect.width === \"number\" &&\n typeof rect.height === \"number\"\n );\n }\n return false;\n};\n"],"mappings":"AAaA,OAAO,MAAMA,MAAM,GAAIC,GAAY,IAAoB;EACrD,SAAS;;EACT,IAAI,OAAOA,GAAG,KAAK,QAAQ,IAAIA,GAAG,KAAK,IAAI,EAAE;IAC3C,MAAMC,IAAI,GAAGD,GAAa;IAC1B,OACE,OAAOC,IAAI,CAACC,CAAC,KAAK,QAAQ,IAC1B,OAAOD,IAAI,CAACE,CAAC,KAAK,QAAQ,IAC1B,OAAOF,IAAI,CAACG,KAAK,KAAK,QAAQ,IAC9B,OAAOH,IAAI,CAACI,MAAM,KAAK,QAAQ;EAEnC;EACA,OAAO,KAAK;AACd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./RuntimeEffect\";\nexport * from \"./RuntimeEffectFactory\";\n"],"mappings":"AAAA,cAAc,iBAAd;AACA,cAAc,wBAAd"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./RuntimeEffect\";\nexport * from \"./RuntimeEffectFactory\";\n"],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SVG\";\nexport * from \"./SVGFactory\";\n"],"mappings":"AAAA,cAAc,OAAd;AACA,cAAc,cAAd"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./SVG\";\nexport * from \"./SVGFactory\";\n"],"mappings":"AAAA,cAAc,OAAO;AACrB,cAAc,cAAc"}
@@ -1,9 +1,8 @@
1
1
  export const isShader = obj => obj !== null && obj.__typename__ === "Shader";
2
-
3
- const isVector = obj => // We have an issue to check property existence on JSI backed instances
2
+ const isVector = obj =>
3
+ // We have an issue to check property existence on JSI backed instances
4
4
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
5
  obj.x !== undefined && obj.y !== undefined;
6
-
7
6
  const processValue = (values, value) => {
8
7
  if (typeof value === "number") {
9
8
  values.push(value);
@@ -15,20 +14,17 @@ const processValue = (values, value) => {
15
14
  values.push(...value);
16
15
  }
17
16
  };
18
-
19
17
  export const processUniforms = (source, uniforms, builder) => {
20
18
  const result = [];
21
19
  const uniformsCount = source.getUniformCount();
22
-
23
20
  for (let i = 0; i < uniformsCount; i++) {
24
21
  const name = source.getUniformName(i);
25
22
  const value = uniforms[name];
26
-
27
23
  if (value === undefined) {
28
- throw new Error( // eslint-disable-next-line max-len
24
+ throw new Error(
25
+ // eslint-disable-next-line max-len
29
26
  `The runtime effect has the uniform value "${name}" declared, but it is missing from the uniforms property of the Runtime effect.`);
30
27
  }
31
-
32
28
  if (builder === undefined) {
33
29
  processValue(result, value);
34
30
  } else {
@@ -38,7 +34,6 @@ export const processUniforms = (source, uniforms, builder) => {
38
34
  result.push(...uniformValue);
39
35
  }
40
36
  }
41
-
42
37
  return result;
43
38
  };
44
39
  //# sourceMappingURL=Shader.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["isShader","obj","__typename__","isVector","x","undefined","y","processValue","values","value","push","Array","isArray","forEach","v","Float32Array","processUniforms","source","uniforms","builder","result","uniformsCount","getUniformCount","i","name","getUniformName","Error","uniformValue","setUniform"],"sources":["Shader.ts"],"sourcesContent":["import type { SkJSIInstance } from \"../JsiInstance\";\nimport type { Vector } from \"../Point\";\nimport type { SkRuntimeEffect, SkRuntimeShaderBuilder } from \"../RuntimeEffect\";\n\nexport const isShader = (obj: SkJSIInstance<string> | null): obj is SkShader =>\n obj !== null && obj.__typename__ === \"Shader\";\n\nexport type SkShader = SkJSIInstance<\"Shader\">;\n\nexport type Uniform =\n | number\n | Vector\n | Float32Array\n | readonly Uniform[]\n | Uniform[];\n\nexport interface Uniforms {\n [name: string]: Uniform;\n}\n\nconst isVector = (obj: unknown): obj is Vector =>\n // We have an issue to check property existence on JSI backed instances\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (obj as any).x !== undefined && (obj as any).y !== undefined;\n\nconst processValue = (values: number[], value: Uniform) => {\n if (typeof value === \"number\") {\n values.push(value);\n } else if (Array.isArray(value)) {\n value.forEach((v) => processValue(values, v));\n } else if (isVector(value)) {\n values.push(value.x, value.y);\n } else if (value instanceof Float32Array) {\n values.push(...value);\n }\n};\n\nexport const processUniforms = (\n source: SkRuntimeEffect,\n uniforms: Uniforms,\n builder?: SkRuntimeShaderBuilder\n) => {\n const result: number[] = [];\n const uniformsCount = source.getUniformCount();\n for (let i = 0; i < uniformsCount; i++) {\n const name = source.getUniformName(i);\n const value = uniforms[name];\n if (value === undefined) {\n throw new Error(\n // eslint-disable-next-line max-len\n `The runtime effect has the uniform value \"${name}\" declared, but it is missing from the uniforms property of the Runtime effect.`\n );\n }\n if (builder === undefined) {\n processValue(result, value);\n } else {\n const uniformValue: number[] = [];\n processValue(uniformValue, value);\n builder.setUniform(name, uniformValue);\n result.push(...uniformValue);\n }\n }\n return result;\n};\n"],"mappings":"AAIA,OAAO,MAAMA,QAAQ,GAAIC,GAAD,IACtBA,GAAG,KAAK,IAAR,IAAgBA,GAAG,CAACC,YAAJ,KAAqB,QADhC;;AAgBP,MAAMC,QAAQ,GAAIF,GAAD,IACf;AACA;AACCA,GAAD,CAAaG,CAAb,KAAmBC,SAAnB,IAAiCJ,GAAD,CAAaK,CAAb,KAAmBD,SAHrD;;AAKA,MAAME,YAAY,GAAG,CAACC,MAAD,EAAmBC,KAAnB,KAAsC;EACzD,IAAI,OAAOA,KAAP,KAAiB,QAArB,EAA+B;IAC7BD,MAAM,CAACE,IAAP,CAAYD,KAAZ;EACD,CAFD,MAEO,IAAIE,KAAK,CAACC,OAAN,CAAcH,KAAd,CAAJ,EAA0B;IAC/BA,KAAK,CAACI,OAAN,CAAeC,CAAD,IAAOP,YAAY,CAACC,MAAD,EAASM,CAAT,CAAjC;EACD,CAFM,MAEA,IAAIX,QAAQ,CAACM,KAAD,CAAZ,EAAqB;IAC1BD,MAAM,CAACE,IAAP,CAAYD,KAAK,CAACL,CAAlB,EAAqBK,KAAK,CAACH,CAA3B;EACD,CAFM,MAEA,IAAIG,KAAK,YAAYM,YAArB,EAAmC;IACxCP,MAAM,CAACE,IAAP,CAAY,GAAGD,KAAf;EACD;AACF,CAVD;;AAYA,OAAO,MAAMO,eAAe,GAAG,CAC7BC,MAD6B,EAE7BC,QAF6B,EAG7BC,OAH6B,KAI1B;EACH,MAAMC,MAAgB,GAAG,EAAzB;EACA,MAAMC,aAAa,GAAGJ,MAAM,CAACK,eAAP,EAAtB;;EACA,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGF,aAApB,EAAmCE,CAAC,EAApC,EAAwC;IACtC,MAAMC,IAAI,GAAGP,MAAM,CAACQ,cAAP,CAAsBF,CAAtB,CAAb;IACA,MAAMd,KAAK,GAAGS,QAAQ,CAACM,IAAD,CAAtB;;IACA,IAAIf,KAAK,KAAKJ,SAAd,EAAyB;MACvB,MAAM,IAAIqB,KAAJ,EACJ;MACC,6CAA4CF,IAAK,iFAF9C,CAAN;IAID;;IACD,IAAIL,OAAO,KAAKd,SAAhB,EAA2B;MACzBE,YAAY,CAACa,MAAD,EAASX,KAAT,CAAZ;IACD,CAFD,MAEO;MACL,MAAMkB,YAAsB,GAAG,EAA/B;MACApB,YAAY,CAACoB,YAAD,EAAelB,KAAf,CAAZ;MACAU,OAAO,CAACS,UAAR,CAAmBJ,IAAnB,EAAyBG,YAAzB;MACAP,MAAM,CAACV,IAAP,CAAY,GAAGiB,YAAf;IACD;EACF;;EACD,OAAOP,MAAP;AACD,CA1BM"}
1
+ {"version":3,"names":["isShader","obj","__typename__","isVector","x","undefined","y","processValue","values","value","push","Array","isArray","forEach","v","Float32Array","processUniforms","source","uniforms","builder","result","uniformsCount","getUniformCount","i","name","getUniformName","Error","uniformValue","setUniform"],"sources":["Shader.ts"],"sourcesContent":["import type { SkJSIInstance } from \"../JsiInstance\";\nimport type { Vector } from \"../Point\";\nimport type { SkRuntimeEffect, SkRuntimeShaderBuilder } from \"../RuntimeEffect\";\n\nexport const isShader = (obj: SkJSIInstance<string> | null): obj is SkShader =>\n obj !== null && obj.__typename__ === \"Shader\";\n\nexport type SkShader = SkJSIInstance<\"Shader\">;\n\nexport type Uniform =\n | number\n | Vector\n | Float32Array\n | readonly Uniform[]\n | Uniform[];\n\nexport interface Uniforms {\n [name: string]: Uniform;\n}\n\nconst isVector = (obj: unknown): obj is Vector =>\n // We have an issue to check property existence on JSI backed instances\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (obj as any).x !== undefined && (obj as any).y !== undefined;\n\nconst processValue = (values: number[], value: Uniform) => {\n if (typeof value === \"number\") {\n values.push(value);\n } else if (Array.isArray(value)) {\n value.forEach((v) => processValue(values, v));\n } else if (isVector(value)) {\n values.push(value.x, value.y);\n } else if (value instanceof Float32Array) {\n values.push(...value);\n }\n};\n\nexport const processUniforms = (\n source: SkRuntimeEffect,\n uniforms: Uniforms,\n builder?: SkRuntimeShaderBuilder\n) => {\n const result: number[] = [];\n const uniformsCount = source.getUniformCount();\n for (let i = 0; i < uniformsCount; i++) {\n const name = source.getUniformName(i);\n const value = uniforms[name];\n if (value === undefined) {\n throw new Error(\n // eslint-disable-next-line max-len\n `The runtime effect has the uniform value \"${name}\" declared, but it is missing from the uniforms property of the Runtime effect.`\n );\n }\n if (builder === undefined) {\n processValue(result, value);\n } else {\n const uniformValue: number[] = [];\n processValue(uniformValue, value);\n builder.setUniform(name, uniformValue);\n result.push(...uniformValue);\n }\n }\n return result;\n};\n"],"mappings":"AAIA,OAAO,MAAMA,QAAQ,GAAIC,GAAiC,IACxDA,GAAG,KAAK,IAAI,IAAIA,GAAG,CAACC,YAAY,KAAK,QAAQ;AAe/C,MAAMC,QAAQ,GAAIF,GAAY;AAC5B;AACA;AACCA,GAAG,CAASG,CAAC,KAAKC,SAAS,IAAKJ,GAAG,CAASK,CAAC,KAAKD,SAAS;AAE9D,MAAME,YAAY,GAAGA,CAACC,MAAgB,EAAEC,KAAc,KAAK;EACzD,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7BD,MAAM,CAACE,IAAI,CAACD,KAAK,CAAC;EACpB,CAAC,MAAM,IAAIE,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;IAC/BA,KAAK,CAACI,OAAO,CAAEC,CAAC,IAAKP,YAAY,CAACC,MAAM,EAAEM,CAAC,CAAC,CAAC;EAC/C,CAAC,MAAM,IAAIX,QAAQ,CAACM,KAAK,CAAC,EAAE;IAC1BD,MAAM,CAACE,IAAI,CAACD,KAAK,CAACL,CAAC,EAAEK,KAAK,CAACH,CAAC,CAAC;EAC/B,CAAC,MAAM,IAAIG,KAAK,YAAYM,YAAY,EAAE;IACxCP,MAAM,CAACE,IAAI,CAAC,GAAGD,KAAK,CAAC;EACvB;AACF,CAAC;AAED,OAAO,MAAMO,eAAe,GAAGA,CAC7BC,MAAuB,EACvBC,QAAkB,EAClBC,OAAgC,KAC7B;EACH,MAAMC,MAAgB,GAAG,EAAE;EAC3B,MAAMC,aAAa,GAAGJ,MAAM,CAACK,eAAe,CAAC,CAAC;EAC9C,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,aAAa,EAAEE,CAAC,EAAE,EAAE;IACtC,MAAMC,IAAI,GAAGP,MAAM,CAACQ,cAAc,CAACF,CAAC,CAAC;IACrC,MAAMd,KAAK,GAAGS,QAAQ,CAACM,IAAI,CAAC;IAC5B,IAAIf,KAAK,KAAKJ,SAAS,EAAE;MACvB,MAAM,IAAIqB,KAAK;MACb;MACC,6CAA4CF,IAAK,iFACpD,CAAC;IACH;IACA,IAAIL,OAAO,KAAKd,SAAS,EAAE;MACzBE,YAAY,CAACa,MAAM,EAAEX,KAAK,CAAC;IAC7B,CAAC,MAAM;MACL,MAAMkB,YAAsB,GAAG,EAAE;MACjCpB,YAAY,CAACoB,YAAY,EAAElB,KAAK,CAAC;MACjCU,OAAO,CAACS,UAAU,CAACJ,IAAI,EAAEG,YAAY,CAAC;MACtCP,MAAM,CAACV,IAAI,CAAC,GAAGiB,YAAY,CAAC;IAC9B;EACF;EACA,OAAOP,MAAM;AACf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Shader\";\nexport * from \"./ShaderFactory\";\n"],"mappings":"AAAA,cAAc,UAAd;AACA,cAAc,iBAAd"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Shader\";\nexport * from \"./ShaderFactory\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,iBAAiB"}
@@ -6,7 +6,7 @@ import type { SkTypeface, TypefaceFactory } from "./Typeface";
6
6
  import type { ImageFactory } from "./Image";
7
7
  import type { MaskFilterFactory } from "./MaskFilter";
8
8
  import type { SkPaint } from "./Paint";
9
- import type { SkRect } from "./Rect";
9
+ import type { SkHostRect, SkRect } from "./Rect";
10
10
  import type { SkRRect } from "./RRect";
11
11
  import type { RuntimeEffectFactory, SkRuntimeEffect, SkRuntimeShaderBuilder } from "./RuntimeEffect";
12
12
  import type { ShaderFactory } from "./Shader";
@@ -31,10 +31,11 @@ import type { ParagraphBuilderFactory } from "./Paragraph/ParagraphBuilder";
31
31
  */
32
32
  export interface Skia {
33
33
  Point: (x: number, y: number) => SkPoint;
34
- XYWHRect: (x: number, y: number, width: number, height: number) => SkRect;
34
+ XYWHRect: (x: number, y: number, width: number, height: number) => SkHostRect;
35
35
  RuntimeShaderBuilder: (rt: SkRuntimeEffect) => SkRuntimeShaderBuilder;
36
36
  RRectXY: (rect: SkRect, rx: number, ry: number) => SkRRect;
37
37
  RSXform: (scos: number, ssin: number, tx: number, ty: number) => SkRSXform;
38
+ RSXformFromRadians: (scale: number, radians: number, tx: number, ty: number, px: number, py: number) => SkRSXform;
38
39
  Color: (color: Color) => SkColor;
39
40
  ContourMeasureIter: (path: SkPath, forceClosed: boolean, resScale: number) => SkContourMeasureIter;
40
41
  Paint: () => SkPaint;
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["Skia.ts"],"sourcesContent":["import type { ImageFilterFactory } from \"./ImageFilter\";\nimport type { PathFactory } from \"./Path\";\nimport type { ColorFilterFactory } from \"./ColorFilter\";\nimport type { SkFont, FontMgrFactory } from \"./Font\";\nimport type { SkTypeface, TypefaceFactory } from \"./Typeface\";\nimport type { ImageFactory } from \"./Image\";\nimport type { MaskFilterFactory } from \"./MaskFilter\";\nimport type { SkPaint } from \"./Paint\";\nimport type { SkRect } from \"./Rect\";\nimport type { SkRRect } from \"./RRect\";\nimport type {\n RuntimeEffectFactory,\n SkRuntimeEffect,\n SkRuntimeShaderBuilder,\n} from \"./RuntimeEffect\";\nimport type { ShaderFactory } from \"./Shader\";\nimport type { SkMatrix } from \"./Matrix\";\nimport type { PathEffectFactory } from \"./PathEffect\";\nimport type { SkPoint } from \"./Point\";\nimport type { SkVertices, VertexMode } from \"./Vertices/Vertices\";\nimport type { DataFactory } from \"./Data\";\nimport type { SVGFactory } from \"./SVG\";\nimport type { TextBlobFactory } from \"./TextBlob\";\nimport type { SurfaceFactory } from \"./Surface\";\nimport type { SkRSXform } from \"./RSXform\";\nimport type { SkPath } from \"./Path/Path\";\nimport type { SkContourMeasureIter } from \"./ContourMeasure\";\nimport type { PictureFactory, SkPictureRecorder } from \"./Picture\";\nimport type { Color, SkColor } from \"./Color\";\nimport type { TypefaceFontProviderFactory } from \"./Paragraph/TypefaceFontProviderFactory\";\nimport type { AnimatedImageFactory } from \"./AnimatedImage\";\nimport type { ParagraphBuilderFactory } from \"./Paragraph/ParagraphBuilder\";\n\n/**\n * Declares the interface for the native Skia API\n */\nexport interface Skia {\n Point: (x: number, y: number) => SkPoint;\n XYWHRect: (x: number, y: number, width: number, height: number) => SkRect;\n RuntimeShaderBuilder: (rt: SkRuntimeEffect) => SkRuntimeShaderBuilder;\n RRectXY: (rect: SkRect, rx: number, ry: number) => SkRRect;\n RSXform: (scos: number, ssin: number, tx: number, ty: number) => SkRSXform;\n Color: (color: Color) => SkColor;\n ContourMeasureIter: (\n path: SkPath,\n forceClosed: boolean,\n resScale: number\n ) => SkContourMeasureIter;\n Paint: () => SkPaint;\n PictureRecorder: () => SkPictureRecorder;\n Picture: PictureFactory;\n Path: PathFactory;\n Matrix: (matrix?: readonly number[]) => SkMatrix;\n ColorFilter: ColorFilterFactory;\n Font: (typeface?: SkTypeface, size?: number) => SkFont;\n Typeface: TypefaceFactory;\n TypefaceFontProvider: TypefaceFontProviderFactory;\n FontMgr: FontMgrFactory;\n MaskFilter: MaskFilterFactory;\n RuntimeEffect: RuntimeEffectFactory;\n ImageFilter: ImageFilterFactory;\n Shader: ShaderFactory;\n PathEffect: PathEffectFactory;\n /**\n * Returns an Vertices based on the given positions and optional parameters.\n * See SkVertices.h (especially the Builder) for more details.\n * @param mode\n * @param positions\n * @param textureCoordinates\n * @param colors - either a list of int colors or a flattened color array.\n * @param indices\n * @param isVolatile\n */\n MakeVertices(\n mode: VertexMode,\n positions: SkPoint[],\n textureCoordinates?: SkPoint[] | null,\n colors?: SkColor[],\n indices?: number[] | null,\n isVolatile?: boolean\n ): SkVertices;\n Data: DataFactory;\n Image: ImageFactory;\n AnimatedImage: AnimatedImageFactory;\n SVG: SVGFactory;\n TextBlob: TextBlobFactory;\n Surface: SurfaceFactory;\n // Paragraph\n ParagraphBuilder: ParagraphBuilderFactory;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["Skia.ts"],"sourcesContent":["import type { ImageFilterFactory } from \"./ImageFilter\";\nimport type { PathFactory } from \"./Path\";\nimport type { ColorFilterFactory } from \"./ColorFilter\";\nimport type { SkFont, FontMgrFactory } from \"./Font\";\nimport type { SkTypeface, TypefaceFactory } from \"./Typeface\";\nimport type { ImageFactory } from \"./Image\";\nimport type { MaskFilterFactory } from \"./MaskFilter\";\nimport type { SkPaint } from \"./Paint\";\nimport type { SkHostRect, SkRect } from \"./Rect\";\nimport type { SkRRect } from \"./RRect\";\nimport type {\n RuntimeEffectFactory,\n SkRuntimeEffect,\n SkRuntimeShaderBuilder,\n} from \"./RuntimeEffect\";\nimport type { ShaderFactory } from \"./Shader\";\nimport type { SkMatrix } from \"./Matrix\";\nimport type { PathEffectFactory } from \"./PathEffect\";\nimport type { SkPoint } from \"./Point\";\nimport type { SkVertices, VertexMode } from \"./Vertices/Vertices\";\nimport type { DataFactory } from \"./Data\";\nimport type { SVGFactory } from \"./SVG\";\nimport type { TextBlobFactory } from \"./TextBlob\";\nimport type { SurfaceFactory } from \"./Surface\";\nimport type { SkRSXform } from \"./RSXform\";\nimport type { SkPath } from \"./Path/Path\";\nimport type { SkContourMeasureIter } from \"./ContourMeasure\";\nimport type { PictureFactory, SkPictureRecorder } from \"./Picture\";\nimport type { Color, SkColor } from \"./Color\";\nimport type { TypefaceFontProviderFactory } from \"./Paragraph/TypefaceFontProviderFactory\";\nimport type { AnimatedImageFactory } from \"./AnimatedImage\";\nimport type { ParagraphBuilderFactory } from \"./Paragraph/ParagraphBuilder\";\n\n/**\n * Declares the interface for the native Skia API\n */\nexport interface Skia {\n Point: (x: number, y: number) => SkPoint;\n XYWHRect: (x: number, y: number, width: number, height: number) => SkHostRect;\n RuntimeShaderBuilder: (rt: SkRuntimeEffect) => SkRuntimeShaderBuilder;\n RRectXY: (rect: SkRect, rx: number, ry: number) => SkRRect;\n RSXform: (scos: number, ssin: number, tx: number, ty: number) => SkRSXform;\n RSXformFromRadians: (\n scale: number,\n radians: number,\n tx: number,\n ty: number,\n px: number,\n py: number\n ) => SkRSXform;\n Color: (color: Color) => SkColor;\n ContourMeasureIter: (\n path: SkPath,\n forceClosed: boolean,\n resScale: number\n ) => SkContourMeasureIter;\n Paint: () => SkPaint;\n PictureRecorder: () => SkPictureRecorder;\n Picture: PictureFactory;\n Path: PathFactory;\n Matrix: (matrix?: readonly number[]) => SkMatrix;\n ColorFilter: ColorFilterFactory;\n Font: (typeface?: SkTypeface, size?: number) => SkFont;\n Typeface: TypefaceFactory;\n TypefaceFontProvider: TypefaceFontProviderFactory;\n FontMgr: FontMgrFactory;\n MaskFilter: MaskFilterFactory;\n RuntimeEffect: RuntimeEffectFactory;\n ImageFilter: ImageFilterFactory;\n Shader: ShaderFactory;\n PathEffect: PathEffectFactory;\n /**\n * Returns an Vertices based on the given positions and optional parameters.\n * See SkVertices.h (especially the Builder) for more details.\n * @param mode\n * @param positions\n * @param textureCoordinates\n * @param colors - either a list of int colors or a flattened color array.\n * @param indices\n * @param isVolatile\n */\n MakeVertices(\n mode: VertexMode,\n positions: SkPoint[],\n textureCoordinates?: SkPoint[] | null,\n colors?: SkColor[],\n indices?: number[] | null,\n isVolatile?: boolean\n ): SkVertices;\n Data: DataFactory;\n Image: ImageFactory;\n AnimatedImage: AnimatedImageFactory;\n SVG: SVGFactory;\n TextBlob: TextBlobFactory;\n Surface: SurfaceFactory;\n // Paragraph\n ParagraphBuilder: ParagraphBuilderFactory;\n}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Surface\";\nexport * from \"./SurfaceFactory\";\n"],"mappings":"AAAA,cAAc,WAAd;AACA,cAAc,kBAAd"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Surface\";\nexport * from \"./SurfaceFactory\";\n"],"mappings":"AAAA,cAAc,WAAW;AACzB,cAAc,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Typeface\";\nexport * from \"./TypefaceFactory\";\n"],"mappings":"AAAA,cAAc,YAAd;AACA,cAAc,mBAAd"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Typeface\";\nexport * from \"./TypefaceFactory\";\n"],"mappings":"AAAA,cAAc,YAAY;AAC1B,cAAc,mBAAmB"}
@@ -1,8 +1,7 @@
1
- export let VertexMode;
2
-
3
- (function (VertexMode) {
1
+ export let VertexMode = /*#__PURE__*/function (VertexMode) {
4
2
  VertexMode[VertexMode["Triangles"] = 0] = "Triangles";
5
3
  VertexMode[VertexMode["TrianglesStrip"] = 1] = "TrianglesStrip";
6
4
  VertexMode[VertexMode["TriangleFan"] = 2] = "TriangleFan";
7
- })(VertexMode || (VertexMode = {}));
5
+ return VertexMode;
6
+ }({});
8
7
  //# sourceMappingURL=Vertices.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["VertexMode"],"sources":["Vertices.tsx"],"sourcesContent":["import type { SkRect } from \"../Rect\";\nimport type { SkJSIInstance } from \"../JsiInstance\";\n\nexport enum VertexMode {\n Triangles,\n TrianglesStrip,\n TriangleFan,\n}\n\nexport interface SkVertices extends SkJSIInstance<\"Vertices\"> {\n /**\n * Return the bounding area for the vertices.\n */\n bounds(): SkRect;\n\n /**\n * Return a unique ID for this vertices object.\n */\n uniqueID(): number;\n}\n"],"mappings":"AAGA,WAAYA,UAAZ;;WAAYA,U;EAAAA,U,CAAAA,U;EAAAA,U,CAAAA,U;EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U"}
1
+ {"version":3,"names":["VertexMode"],"sources":["Vertices.tsx"],"sourcesContent":["import type { SkRect } from \"../Rect\";\nimport type { SkJSIInstance } from \"../JsiInstance\";\n\nexport enum VertexMode {\n Triangles,\n TrianglesStrip,\n TriangleFan,\n}\n\nexport interface SkVertices extends SkJSIInstance<\"Vertices\"> {\n /**\n * Return the bounding area for the vertices.\n */\n bounds(): SkRect;\n\n /**\n * Return a unique ID for this vertices object.\n */\n uniqueID(): number;\n}\n"],"mappings":"AAGA,WAAYA,UAAU,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Vertices\";\n"],"mappings":"AAAA,cAAc,YAAd"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Vertices\";\n"],"mappings":"AAAA,cAAc,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Picture\";\nexport * from \"./Data\";\nexport * from \"./SVG\";\nexport * from \"./Surface\";\nexport * from \"./Vertices\";\nexport * from \"./RuntimeEffect\";\nexport * from \"./Shader\";\nexport * from \"./Image\";\nexport * from \"./AnimatedImage\";\nexport * from \"./ColorFilter\";\nexport * from \"./ImageFilter\";\nexport * from \"./Font\";\nexport * from \"./Typeface\";\nexport * from \"./Paint\";\nexport * from \"./Path\";\nexport * from \"./Color\";\nexport * from \"./Canvas\";\nexport * from \"./ContourMeasure\";\nexport * from \"./MaskFilter\";\nexport * from \"./Matrix\";\nexport * from \"./PathEffect\";\nexport * from \"./Point\";\nexport * from \"./Rect\";\nexport * from \"./RRect\";\nexport * from \"./RSXform\";\nexport * from \"./JsiInstance\";\nexport * from \"./Skia\";\nexport * from \"./TextBlob\";\nexport * from \"./Size\";\nexport * from \"./Paragraph\";\nexport * from \"./Matrix4\";\n"],"mappings":"AAAA,cAAc,WAAd;AACA,cAAc,QAAd;AACA,cAAc,OAAd;AACA,cAAc,WAAd;AACA,cAAc,YAAd;AACA,cAAc,iBAAd;AACA,cAAc,UAAd;AACA,cAAc,SAAd;AACA,cAAc,iBAAd;AACA,cAAc,eAAd;AACA,cAAc,eAAd;AACA,cAAc,QAAd;AACA,cAAc,YAAd;AACA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,SAAd;AACA,cAAc,UAAd;AACA,cAAc,kBAAd;AACA,cAAc,cAAd;AACA,cAAc,UAAd;AACA,cAAc,cAAd;AACA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd;AACA,cAAc,eAAd;AACA,cAAc,QAAd;AACA,cAAc,YAAd;AACA,cAAc,QAAd;AACA,cAAc,aAAd;AACA,cAAc,WAAd"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Picture\";\nexport * from \"./Data\";\nexport * from \"./SVG\";\nexport * from \"./Surface\";\nexport * from \"./Vertices\";\nexport * from \"./RuntimeEffect\";\nexport * from \"./Shader\";\nexport * from \"./Image\";\nexport * from \"./AnimatedImage\";\nexport * from \"./ColorFilter\";\nexport * from \"./ImageFilter\";\nexport * from \"./Font\";\nexport * from \"./Typeface\";\nexport * from \"./Paint\";\nexport * from \"./Path\";\nexport * from \"./Color\";\nexport * from \"./Canvas\";\nexport * from \"./ContourMeasure\";\nexport * from \"./MaskFilter\";\nexport * from \"./Matrix\";\nexport * from \"./PathEffect\";\nexport * from \"./Point\";\nexport * from \"./Rect\";\nexport * from \"./RRect\";\nexport * from \"./RSXform\";\nexport * from \"./JsiInstance\";\nexport * from \"./Skia\";\nexport * from \"./TextBlob\";\nexport * from \"./Size\";\nexport * from \"./Paragraph\";\nexport * from \"./Matrix4\";\n"],"mappings":"AAAA,cAAc,WAAW;AACzB,cAAc,QAAQ;AACtB,cAAc,OAAO;AACrB,cAAc,WAAW;AACzB,cAAc,YAAY;AAC1B,cAAc,iBAAiB;AAC/B,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,iBAAiB;AAC/B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,UAAU;AACxB,cAAc,kBAAkB;AAChC,cAAc,cAAc;AAC5B,cAAc,UAAU;AACxB,cAAc,cAAc;AAC5B,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,WAAW;AACzB,cAAc,eAAe;AAC7B,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,WAAW"}
@@ -1,43 +1,33 @@
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
  export class NotImplementedOnRNWeb extends Error {
4
5
  constructor(msg) {
5
6
  super(msg !== null && msg !== void 0 ? msg : "Not implemented on React Native Web");
6
7
  }
7
-
8
8
  }
9
9
  export class Host {
10
10
  constructor(CanvasKit) {
11
11
  _defineProperty(this, "CanvasKit", void 0);
12
-
13
12
  this.CanvasKit = CanvasKit;
14
13
  }
15
-
16
14
  }
17
15
  export class BaseHostObject extends Host {
18
16
  constructor(CanvasKit, ref, typename) {
19
17
  super(CanvasKit);
20
-
21
18
  _defineProperty(this, "__typename__", void 0);
22
-
23
19
  _defineProperty(this, "ref", void 0);
24
-
25
20
  this.ref = ref;
26
21
  this.__typename__ = typename;
27
22
  }
28
-
29
23
  }
30
24
  export class HostObject extends BaseHostObject {
31
25
  static fromValue(value) {
32
26
  return value.ref;
33
27
  }
34
-
35
28
  }
36
- export const getEnum = (e, v) => Object.values(e).find(_ref => {
37
- let {
38
- value
39
- } = _ref;
40
- return value === v;
41
- });
29
+ export const getEnum = (e, v) => Object.values(e).find(({
30
+ value
31
+ }) => value === v);
42
32
  export const optEnum = (e, value) => value === undefined ? undefined : getEnum(e, value);
43
33
  //# sourceMappingURL=Host.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["NotImplementedOnRNWeb","Error","constructor","msg","Host","CanvasKit","BaseHostObject","ref","typename","__typename__","HostObject","fromValue","value","getEnum","e","v","Object","values","find","optEnum","undefined"],"sources":["Host.ts"],"sourcesContent":["import type { CanvasKit, EmbindEnumEntity, EmbindEnum } from \"canvaskit-wasm\";\n\nimport type { SkJSIInstance } from \"../types\";\n\nexport class NotImplementedOnRNWeb extends Error {\n constructor(msg?: string) {\n super(msg ?? \"Not implemented on React Native Web\");\n }\n}\n\nexport abstract class Host {\n readonly CanvasKit: CanvasKit;\n\n constructor(CanvasKit: CanvasKit) {\n this.CanvasKit = CanvasKit;\n }\n}\n\nexport abstract class BaseHostObject<T, N extends string>\n extends Host\n implements SkJSIInstance<N>\n{\n readonly __typename__: N;\n ref: T;\n\n constructor(CanvasKit: CanvasKit, ref: T, typename: N) {\n super(CanvasKit);\n this.ref = ref;\n this.__typename__ = typename;\n }\n\n abstract dispose(): void;\n}\n\nexport abstract class HostObject<T, N extends string> extends BaseHostObject<\n T,\n N\n> {\n static fromValue<T>(value: SkJSIInstance<string>) {\n return (value as HostObject<T, string>).ref;\n }\n}\n\nexport const getEnum = (e: EmbindEnum, v: number): EmbindEnumEntity =>\n Object.values(e).find(({ value }) => value === v);\n\nexport const optEnum = (\n e: EmbindEnum,\n value: number | undefined\n): EmbindEnumEntity | undefined =>\n value === undefined ? undefined : getEnum(e, value);\n"],"mappings":";;AAIA,OAAO,MAAMA,qBAAN,SAAoCC,KAApC,CAA0C;EAC/CC,WAAW,CAACC,GAAD,EAAe;IACxB,MAAMA,GAAN,aAAMA,GAAN,cAAMA,GAAN,GAAa,qCAAb;EACD;;AAH8C;AAMjD,OAAO,MAAeC,IAAf,CAAoB;EAGzBF,WAAW,CAACG,SAAD,EAAuB;IAAA;;IAChC,KAAKA,SAAL,GAAiBA,SAAjB;EACD;;AALwB;AAQ3B,OAAO,MAAeC,cAAf,SACGF,IADH,CAGP;EAIEF,WAAW,CAACG,SAAD,EAAuBE,GAAvB,EAA+BC,QAA/B,EAA4C;IACrD,MAAMH,SAAN;;IADqD;;IAAA;;IAErD,KAAKE,GAAL,GAAWA,GAAX;IACA,KAAKE,YAAL,GAAoBD,QAApB;EACD;;AARH;AAaA,OAAO,MAAeE,UAAf,SAAuDJ,cAAvD,CAGL;EACgB,OAATK,SAAS,CAAIC,KAAJ,EAAkC;IAChD,OAAQA,KAAD,CAAiCL,GAAxC;EACD;;AAHD;AAMF,OAAO,MAAMM,OAAO,GAAG,CAACC,CAAD,EAAgBC,CAAhB,KACrBC,MAAM,CAACC,MAAP,CAAcH,CAAd,EAAiBI,IAAjB,CAAsB;EAAA,IAAC;IAAEN;EAAF,CAAD;EAAA,OAAeA,KAAK,KAAKG,CAAzB;AAAA,CAAtB,CADK;AAGP,OAAO,MAAMI,OAAO,GAAG,CACrBL,CADqB,EAErBF,KAFqB,KAIrBA,KAAK,KAAKQ,SAAV,GAAsBA,SAAtB,GAAkCP,OAAO,CAACC,CAAD,EAAIF,KAAJ,CAJpC"}
1
+ {"version":3,"names":["NotImplementedOnRNWeb","Error","constructor","msg","Host","CanvasKit","_defineProperty","BaseHostObject","ref","typename","__typename__","HostObject","fromValue","value","getEnum","e","v","Object","values","find","optEnum","undefined"],"sources":["Host.ts"],"sourcesContent":["import type { CanvasKit, EmbindEnumEntity, EmbindEnum } from \"canvaskit-wasm\";\n\nimport type { SkJSIInstance } from \"../types\";\n\nexport class NotImplementedOnRNWeb extends Error {\n constructor(msg?: string) {\n super(msg ?? \"Not implemented on React Native Web\");\n }\n}\n\nexport abstract class Host {\n readonly CanvasKit: CanvasKit;\n\n constructor(CanvasKit: CanvasKit) {\n this.CanvasKit = CanvasKit;\n }\n}\n\nexport abstract class BaseHostObject<T, N extends string>\n extends Host\n implements SkJSIInstance<N>\n{\n readonly __typename__: N;\n ref: T;\n\n constructor(CanvasKit: CanvasKit, ref: T, typename: N) {\n super(CanvasKit);\n this.ref = ref;\n this.__typename__ = typename;\n }\n\n abstract dispose(): void;\n}\n\nexport abstract class HostObject<T, N extends string> extends BaseHostObject<\n T,\n N\n> {\n static fromValue<T>(value: SkJSIInstance<string>) {\n return (value as HostObject<T, string>).ref;\n }\n}\n\nexport const getEnum = (e: EmbindEnum, v: number): EmbindEnumEntity =>\n Object.values(e).find(({ value }) => value === v);\n\nexport const optEnum = (\n e: EmbindEnum,\n value: number | undefined\n): EmbindEnumEntity | undefined =>\n value === undefined ? undefined : getEnum(e, value);\n"],"mappings":";;;AAIA,OAAO,MAAMA,qBAAqB,SAASC,KAAK,CAAC;EAC/CC,WAAWA,CAACC,GAAY,EAAE;IACxB,KAAK,CAACA,GAAG,aAAHA,GAAG,cAAHA,GAAG,GAAI,qCAAqC,CAAC;EACrD;AACF;AAEA,OAAO,MAAeC,IAAI,CAAC;EAGzBF,WAAWA,CAACG,SAAoB,EAAE;IAAAC,eAAA;IAChC,IAAI,CAACD,SAAS,GAAGA,SAAS;EAC5B;AACF;AAEA,OAAO,MAAeE,cAAc,SAC1BH,IAAI,CAEd;EAIEF,WAAWA,CAACG,SAAoB,EAAEG,GAAM,EAAEC,QAAW,EAAE;IACrD,KAAK,CAACJ,SAAS,CAAC;IAACC,eAAA;IAAAA,eAAA;IACjB,IAAI,CAACE,GAAG,GAAGA,GAAG;IACd,IAAI,CAACE,YAAY,GAAGD,QAAQ;EAC9B;AAGF;AAEA,OAAO,MAAeE,UAAU,SAA8BJ,cAAc,CAG1E;EACA,OAAOK,SAASA,CAAIC,KAA4B,EAAE;IAChD,OAAQA,KAAK,CAA2BL,GAAG;EAC7C;AACF;AAEA,OAAO,MAAMM,OAAO,GAAGA,CAACC,CAAa,EAAEC,CAAS,KAC9CC,MAAM,CAACC,MAAM,CAACH,CAAC,CAAC,CAACI,IAAI,CAAC,CAAC;EAAEN;AAAM,CAAC,KAAKA,KAAK,KAAKG,CAAC,CAAC;AAEnD,OAAO,MAAMI,OAAO,GAAGA,CACrBL,CAAa,EACbF,KAAyB,KAEzBA,KAAK,KAAKQ,SAAS,GAAGA,SAAS,GAAGP,OAAO,CAACC,CAAC,EAAEF,KAAK,CAAC"}
@@ -1,33 +1,27 @@
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 { HostObject } from "./Host";
4
5
  import { JsiSkImage } from "./JsiSkImage";
5
6
  export class JsiSkAnimatedImage extends HostObject {
6
7
  constructor(CanvasKit, ref) {
7
8
  super(CanvasKit, ref, "AnimatedImage");
8
-
9
9
  _defineProperty(this, "dispose", () => {
10
10
  this.ref.delete();
11
11
  });
12
12
  }
13
-
14
13
  decodeNextFrame() {
15
14
  return this.ref.decodeNextFrame();
16
15
  }
17
-
18
16
  currentFrameDuration() {
19
17
  return this.ref.currentFrameDuration();
20
18
  }
21
-
22
19
  getCurrentFrame() {
23
20
  const image = this.ref.makeImageAtCurrentFrame();
24
-
25
21
  if (image === null) {
26
22
  return null;
27
23
  }
28
-
29
24
  return new JsiSkImage(this.CanvasKit, image);
30
25
  }
31
-
32
26
  }
33
27
  //# sourceMappingURL=JsiSkAnimatedImage.js.map
@@ -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,5 @@
1
1
  import type { Canvas, CanvasKit } from "canvaskit-wasm";
2
- import type { BlendMode, ClipOp, FilterMode, MipmapMode, PointMode, SaveLayerFlag, ImageInfo, SkCanvas, SkColor, SkFont, SkImage, SkImageFilter, SkMatrix, SkPaint, SkPath, SkPicture, SkPoint, SkRect, InputRRect, SkSVG, SkTextBlob, SkVertices } from "../types";
2
+ import { type BlendMode, type ClipOp, type FilterMode, type MipmapMode, type PointMode, type SaveLayerFlag, type ImageInfo, type SkCanvas, type SkColor, type SkFont, type SkImage, type SkImageFilter, type SkMatrix, type SkPaint, type SkPath, type SkPicture, type SkPoint, type SkRect, type InputRRect, type SkSVG, type SkTextBlob, type SkVertices, type SkRSXform, type CubicResampler, type FilterOptions } from "../types";
3
3
  import { HostObject } from "./Host";
4
4
  export declare class JsiSkCanvas extends HostObject<Canvas, "Canvas"> implements SkCanvas {
5
5
  constructor(CanvasKit: CanvasKit, ref: Canvas);
@@ -42,5 +42,6 @@ export declare class JsiSkCanvas extends HostObject<Canvas, "Canvas"> implements
42
42
  clipRRect(rrect: InputRRect, op: ClipOp, doAntiAlias: boolean): void;
43
43
  concat(m: SkMatrix | number[]): void;
44
44
  drawPicture(skp: SkPicture): void;
45
+ drawAtlas(atlas: SkImage, srcs: SkRect[], dsts: SkRSXform[], paint: SkPaint, blendMode?: BlendMode, colors?: SkColor[], _sampling?: CubicResampler | FilterOptions): void;
45
46
  readPixels(srcX: number, srcY: number, imageInfo: ImageInfo): Float32Array | Uint8Array | null;
46
47
  }
@@ -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";
@@ -13,179 +14,147 @@ import { JsiSkPicture } from "./JsiSkPicture";
13
14
  import { JsiSkMatrix } from "./JsiSkMatrix";
14
15
  import { JsiSkImageFilter } from "./JsiSkImageFilter";
15
16
  import { JsiSkPoint } from "./JsiSkPoint";
17
+ import { JsiSkRSXform } from "./JsiSkRSXform";
16
18
  export class JsiSkCanvas extends HostObject {
17
19
  constructor(CanvasKit, ref) {
18
20
  super(CanvasKit, ref, "Canvas");
19
-
20
21
  _defineProperty(this, "dispose", () => {
21
22
  this.ref.delete();
22
23
  });
23
24
  }
24
-
25
25
  drawRect(rect, paint) {
26
26
  this.ref.drawRect(JsiSkRect.fromValue(this.CanvasKit, rect), JsiSkPaint.fromValue(paint));
27
27
  }
28
-
29
28
  drawImage(image, x, y, paint) {
30
29
  this.ref.drawImage(JsiSkImage.fromValue(image), x, y, paint ? JsiSkPaint.fromValue(paint) : paint);
31
30
  }
32
-
33
31
  drawImageRect(img, src, dest, paint, fastSample) {
34
32
  this.ref.drawImageRect(JsiSkImage.fromValue(img), JsiSkRect.fromValue(this.CanvasKit, src), JsiSkRect.fromValue(this.CanvasKit, dest), JsiSkPaint.fromValue(paint), fastSample);
35
33
  }
36
-
37
34
  drawImageCubic(img, left, top, B, C, paint) {
38
35
  this.ref.drawImageCubic(JsiSkImage.fromValue(img), left, top, B, C, paint ? JsiSkPaint.fromValue(paint) : paint);
39
36
  }
40
-
41
37
  drawImageOptions(img, left, top, fm, mm, paint) {
42
38
  this.ref.drawImageOptions(JsiSkImage.fromValue(img), left, top, getEnum(this.CanvasKit.FilterMode, fm), getEnum(this.CanvasKit.MipmapMode, mm), paint ? JsiSkPaint.fromValue(paint) : paint);
43
39
  }
44
-
45
40
  drawImageNine(img, center, dest, filter, paint) {
46
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);
47
42
  }
48
-
49
43
  drawImageRectCubic(img, src, dest, B, C, paint) {
50
44
  this.ref.drawImageRectCubic(JsiSkImage.fromValue(img), JsiSkRect.fromValue(this.CanvasKit, src), JsiSkRect.fromValue(this.CanvasKit, dest), B, C, paint ? JsiSkPaint.fromValue(paint) : paint);
51
45
  }
52
-
53
46
  drawImageRectOptions(img, src, dest, fm, mm, paint) {
54
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);
55
48
  }
56
-
57
49
  drawPaint(paint) {
58
50
  this.ref.drawPaint(JsiSkPaint.fromValue(paint));
59
51
  }
60
-
61
52
  drawLine(x0, y0, x1, y1, paint) {
62
53
  this.ref.drawLine(x0, y0, x1, y1, JsiSkPaint.fromValue(paint));
63
54
  }
64
-
65
55
  drawCircle(cx, cy, radius, paint) {
66
56
  this.ref.drawCircle(cx, cy, radius, JsiSkPaint.fromValue(paint));
67
57
  }
68
-
69
58
  drawVertices(verts, mode, paint) {
70
59
  this.ref.drawVertices(JsiSkVertices.fromValue(verts), getEnum(this.CanvasKit.BlendMode, mode), JsiSkPaint.fromValue(paint));
71
60
  }
72
-
73
61
  drawPatch(cubics, colors, texs, mode, paint) {
74
- this.ref.drawPatch(cubics.map(_ref => {
75
- let {
76
- x,
77
- y
78
- } = _ref;
79
- return [x, y];
80
- }).flat(), colors, texs ? texs.flatMap(p => Array.from(JsiSkPoint.fromValue(p))) : texs, mode ? getEnum(this.CanvasKit.BlendMode, mode) : null, paint ? JsiSkPaint.fromValue(paint) : undefined);
81
- }
82
-
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
+ }
83
67
  restoreToCount(saveCount) {
84
68
  this.ref.restoreToCount(saveCount);
85
69
  }
86
-
87
70
  drawPoints(mode, points, paint) {
88
- this.ref.drawPoints(getEnum(this.CanvasKit.PointMode, mode), points.map(_ref2 => {
89
- let {
90
- x,
91
- y
92
- } = _ref2;
93
- return [x, y];
94
- }).flat(), JsiSkPaint.fromValue(paint));
95
- }
96
-
71
+ this.ref.drawPoints(getEnum(this.CanvasKit.PointMode, mode), points.map(({
72
+ x,
73
+ y
74
+ }) => [x, y]).flat(), JsiSkPaint.fromValue(paint));
75
+ }
97
76
  drawArc(oval, startAngle, sweepAngle, useCenter, paint) {
98
77
  this.ref.drawArc(JsiSkRect.fromValue(this.CanvasKit, oval), startAngle, sweepAngle, useCenter, JsiSkPaint.fromValue(paint));
99
78
  }
100
-
101
79
  drawRRect(rrect, paint) {
102
80
  this.ref.drawRRect(JsiSkRRect.fromValue(this.CanvasKit, rrect), JsiSkPaint.fromValue(paint));
103
81
  }
104
-
105
82
  drawDRRect(outer, inner, paint) {
106
83
  this.ref.drawDRRect(JsiSkRRect.fromValue(this.CanvasKit, outer), JsiSkRRect.fromValue(this.CanvasKit, inner), JsiSkPaint.fromValue(paint));
107
84
  }
108
-
109
85
  drawOval(oval, paint) {
110
86
  this.ref.drawOval(JsiSkRect.fromValue(this.CanvasKit, oval), JsiSkPaint.fromValue(paint));
111
87
  }
112
-
113
88
  drawPath(path, paint) {
114
89
  this.ref.drawPath(JsiSkPath.fromValue(path), JsiSkPaint.fromValue(paint));
115
90
  }
116
-
117
91
  drawText(str, x, y, paint, font) {
118
92
  this.ref.drawText(str, x, y, JsiSkPaint.fromValue(paint), JsiSkFont.fromValue(font));
119
93
  }
120
-
121
94
  drawTextBlob(blob, x, y, paint) {
122
95
  this.ref.drawTextBlob(JsiSkTextBlob.fromValue(blob), x, y, JsiSkPaint.fromValue(paint));
123
96
  }
124
-
125
97
  drawGlyphs(glyphs, positions, x, y, font, paint) {
126
98
  this.ref.drawGlyphs(glyphs, positions.map(p => [p.x, p.y]).flat(), x, y, JsiSkFont.fromValue(font), JsiSkPaint.fromValue(paint));
127
99
  }
128
-
129
100
  drawSvg(_svgDom, _width, _height) {
130
101
  throw new Error("drawSvg is not implemented on React Native Web");
131
102
  }
132
-
133
103
  save() {
134
104
  return this.ref.save();
135
105
  }
136
-
137
106
  saveLayer(paint, bounds, backdrop, flags) {
138
107
  return this.ref.saveLayer(paint ? JsiSkPaint.fromValue(paint) : undefined, bounds ? JsiSkRect.fromValue(this.CanvasKit, bounds) : bounds, backdrop ? JsiSkImageFilter.fromValue(backdrop) : backdrop, flags);
139
108
  }
140
-
141
109
  restore() {
142
110
  this.ref.restore();
143
111
  }
144
-
145
112
  rotate(rotationInDegrees, rx, ry) {
146
113
  this.ref.rotate(rotationInDegrees, rx, ry);
147
114
  }
148
-
149
115
  scale(sx, sy) {
150
116
  this.ref.scale(sx, sy);
151
117
  }
152
-
153
118
  skew(sx, sy) {
154
119
  this.ref.skew(sx, sy);
155
120
  }
156
-
157
121
  translate(dx, dy) {
158
122
  this.ref.translate(dx, dy);
159
123
  }
160
-
161
124
  drawColor(color, blendMode) {
162
125
  this.ref.drawColor(color, blendMode ? getEnum(this.CanvasKit.BlendMode, blendMode) : undefined);
163
126
  }
164
-
165
127
  clear(color) {
166
128
  this.ref.clear(color);
167
129
  }
168
-
169
130
  clipPath(path, op, doAntiAlias) {
170
131
  this.ref.clipPath(JsiSkPath.fromValue(path), getEnum(this.CanvasKit.PathOp, op), doAntiAlias);
171
132
  }
172
-
173
133
  clipRect(rect, op, doAntiAlias) {
174
134
  this.ref.clipRect(JsiSkRect.fromValue(this.CanvasKit, rect), getEnum(this.CanvasKit.PathOp, op), doAntiAlias);
175
135
  }
176
-
177
136
  clipRRect(rrect, op, doAntiAlias) {
178
137
  this.ref.clipRRect(JsiSkRRect.fromValue(this.CanvasKit, rrect), getEnum(this.CanvasKit.PathOp, op), doAntiAlias);
179
138
  }
180
-
181
139
  concat(m) {
182
140
  this.ref.concat(Array.isArray(m) ? m : JsiSkMatrix.fromValue(m));
183
141
  }
184
-
185
142
  drawPicture(skp) {
186
143
  this.ref.drawPicture(JsiSkPicture.fromValue(skp));
187
144
  }
188
-
145
+ drawAtlas(atlas, srcs, dsts, paint, blendMode, colors, _sampling) {
146
+ const src = srcs.flatMap(s => Array.from(JsiSkRect.fromValue(this.CanvasKit, s)));
147
+ const dst = dsts.flatMap(s => Array.from(JsiSkRSXform.fromValue(s)));
148
+ let cls;
149
+ if (colors) {
150
+ cls = new Uint32Array(colors.length);
151
+ for (let i = 0; i < colors.length; i++) {
152
+ const [r, g, b, a] = colors[i];
153
+ cls[i] = this.CanvasKit.ColorAsInt(r * 255, g * 255, b * 255, a * 255);
154
+ }
155
+ }
156
+ this.ref.drawAtlas(JsiSkImage.fromValue(atlas), src, dst, JsiSkPaint.fromValue(paint), blendMode ? getEnum(this.CanvasKit.BlendMode, blendMode) : this.CanvasKit.BlendMode.DstOver, cls);
157
+ }
189
158
  readPixels(srcX, srcY, imageInfo) {
190
159
  const pxInfo = {
191
160
  width: imageInfo.width,
@@ -196,6 +165,5 @@ export class JsiSkCanvas extends HostObject {
196
165
  };
197
166
  return this.ref.readPixels(srcX, srcY, pxInfo);
198
167
  }
199
-
200
168
  }
201
169
  //# sourceMappingURL=JsiSkCanvas.js.map