@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 +1 @@
1
- {"version":3,"names":["exhaustiveCheck","a","Error","Matrix4","translate","x","y","z","perspective","p","normalizeVec","vec","length","Math","sqrt","rotatedUnitSinCos","axisVec","sinAngle","cosAngle","c","s","t","matrixVecMul4","m","v","mapPoint3d","r","multiply4","b","result","Array","fill","i","j","skewY","angle","tan","skewX","toMatrix3","rotate","axis","value","sin","cos","pivot","scale","sx","sy","sz","m4","rotateAxis","rotateZ","rotateX","rotateY","processTransform3d","transforms","reduce","acc","val","key","Object","keys","transform","convertToColumnMajor","rowMajorMatrix","colMajorMatrix","size","row","col","convertToAffineMatrix","d","tx","ty"],"sources":["Matrix4.ts"],"sourcesContent":["type Point = { x: number; y: number };\ntype Vec2 = readonly [number, number];\ntype Vec3 = readonly [number, number, number];\ntype Vec4 = readonly [number, number, number, number];\n\nexport type Matrix3 = readonly [\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number\n];\n\nexport type Matrix4 = readonly [\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number\n];\n\ntype Transform3dName =\n | \"translateX\"\n | \"translateY\"\n | \"translateZ\"\n | \"translate\"\n | \"scale\"\n | \"scaleX\"\n | \"scaleY\"\n | \"skewX\"\n | \"skewY\"\n | \"rotateZ\"\n | \"rotate\"\n | \"perspective\"\n | \"rotateX\"\n | \"rotateY\"\n | \"matrix\";\n\ntype Transformations = {\n [Name in Transform3dName]: Name extends \"matrix\"\n ? Matrix4\n : Name extends \"translate\"\n ? Vec3 | Vec2\n : number;\n};\n\ntype Transform3d =\n | Pick<Transformations, \"translateX\">\n | Pick<Transformations, \"translateY\">\n | Pick<Transformations, \"translateZ\">\n | Pick<Transformations, \"translate\">\n | Pick<Transformations, \"scale\">\n | Pick<Transformations, \"scaleX\">\n | Pick<Transformations, \"scaleY\">\n | Pick<Transformations, \"skewX\">\n | Pick<Transformations, \"skewY\">\n | Pick<Transformations, \"perspective\">\n | Pick<Transformations, \"rotateX\">\n | Pick<Transformations, \"rotateY\">\n | Pick<Transformations, \"rotateZ\">\n | Pick<Transformations, \"rotate\">\n | Pick<Transformations, \"matrix\">;\n\nexport type Transforms3d = Transform3d[];\n\nconst exhaustiveCheck = (a: never): never => {\n \"worklet\";\n throw new Error(`Unexhaustive handling for ${a}`);\n};\n\n/**\n * @worklet\n */\nexport const Matrix4 = (): Matrix4 => {\n \"worklet\";\n return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n};\n\n/**\n * @worklet\n */\nexport const translate = (x: number, y: number, z: number = 0): Matrix4 => {\n \"worklet\";\n return [1, 0, 0, x, 0, 1, 0, y, 0, 0, 1, z, 0, 0, 0, 1];\n};\n\n/**\n * @worklet\n */\nexport const perspective = (p: number): Matrix4 => {\n \"worklet\";\n return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, -1 / p, 1];\n};\n\nconst normalizeVec = (vec: Vec3): Vec3 => {\n \"worklet\";\n const [x, y, z] = vec;\n const length = Math.sqrt(x * x + y * y + z * z);\n // Check for zero length to avoid division by zero\n if (length === 0) {\n return [0, 0, 0];\n }\n return [x / length, y / length, z / length];\n};\n\nconst rotatedUnitSinCos = (\n axisVec: Vec3,\n sinAngle: number,\n cosAngle: number\n): Matrix4 => {\n \"worklet\";\n const x = axisVec[0];\n const y = axisVec[1];\n const z = axisVec[2];\n const c = cosAngle;\n const s = sinAngle;\n const t = 1 - c;\n return [\n t * x * x + c,\n t * x * y - s * z,\n t * x * z + s * y,\n 0,\n t * x * y + s * z,\n t * y * y + c,\n t * y * z - s * x,\n 0,\n t * x * z - s * y,\n t * y * z + s * x,\n t * z * z + c,\n 0,\n 0,\n 0,\n 0,\n 1,\n ];\n};\n\n/**\n * @worklet\n */\nexport const matrixVecMul4 = (m: Matrix4, v: Vec4): Vec4 => {\n \"worklet\";\n return [\n m[0] * v[0] + m[1] * v[1] + m[2] * v[2] + m[3] * v[3],\n m[4] * v[0] + m[5] * v[1] + m[6] * v[2] + m[7] * v[3],\n m[8] * v[0] + m[9] * v[1] + m[10] * v[2] + m[11] * v[3],\n m[12] * v[0] + m[13] * v[1] + m[14] * v[2] + m[15] * v[3],\n ];\n};\n\n/**\n * @worklet\n */\nexport const mapPoint3d = (m: Matrix4, v: Vec3) => {\n \"worklet\";\n const r = matrixVecMul4(m, [...v, 1]);\n return [r[0] / r[3], r[1] / r[3], r[2] / r[3]] as const;\n};\n\n/**\n * @worklet\n */\nexport const multiply4 = (a: Matrix4, b: Matrix4): Matrix4 => {\n \"worklet\";\n const result = new Array(16).fill(0);\n for (let i = 0; i < 4; i++) {\n for (let j = 0; j < 4; j++) {\n result[i * 4 + j] =\n a[i * 4] * b[j] +\n a[i * 4 + 1] * b[j + 4] +\n a[i * 4 + 2] * b[j + 8] +\n a[i * 4 + 3] * b[j + 12];\n }\n }\n return result as unknown as Matrix4;\n};\n\nconst skewY = (angle: number): Matrix4 => {\n \"worklet\";\n return [1, Math.tan(angle), 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n};\n\nconst skewX = (angle: number): Matrix4 => {\n \"worklet\";\n return [1, 0, 0, 0, Math.tan(angle), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n};\n\n/**\n * @worklet\n */\nexport const toMatrix3 = (m: Matrix4) => {\n \"worklet\";\n return [m[0], m[1], m[3], m[4], m[5], m[7], m[12], m[13], m[15]];\n};\n\nconst rotate = (axis: Vec3, value: number) => {\n \"worklet\";\n return rotatedUnitSinCos(\n normalizeVec(axis),\n Math.sin(value),\n Math.cos(value)\n );\n};\n\n/**\n * @worklet\n */\nexport const pivot = (m: Matrix4, p: Point) => {\n \"worklet\";\n return multiply4(translate(p.x, p.y), multiply4(m, translate(-p.x, -p.y)));\n};\n\n/**\n * @worklet\n */\nexport const scale = (\n sx: number,\n sy: number,\n sz: number = 1,\n p?: Point\n): Matrix4 => {\n \"worklet\";\n const m4: Matrix4 = [sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, sz, 0, 0, 0, 0, 1];\n if (p) {\n return pivot(m4, p);\n }\n return m4;\n};\n\nconst rotateAxis = (axis: Vec3, angle: number, p?: Point) => {\n \"worklet\";\n const result = rotate(axis, angle);\n if (p) {\n return pivot(result, p);\n }\n return result;\n};\n\n/**\n * @worklet\n */\nexport const rotateZ = (value: number, p?: Point) => {\n \"worklet\";\n return rotateAxis([0, 0, 1], value, p);\n};\n\n/**\n * @worklet\n */\nexport const rotateX = (value: number, p?: Point) => {\n \"worklet\";\n return rotateAxis([1, 0, 0], value, p);\n};\n\n/**\n * @worklet\n */\nexport const rotateY = (value: number, p?: Point) => {\n \"worklet\";\n return rotateAxis([0, 1, 0], value, p);\n};\n\n/**\n * @worklet\n */\nexport const processTransform3d = (transforms: Transforms3d) => {\n \"worklet\";\n return transforms.reduce((acc, val) => {\n const key = Object.keys(val)[0] as Transform3dName;\n const transform = val as Pick<Transformations, typeof key>;\n if (key === \"translateX\") {\n const value = transform[key];\n return multiply4(acc, translate(value, 0, 0));\n }\n if (key === \"translate\") {\n const [x, y, z = 0] = transform[key];\n return multiply4(acc, translate(x, y, z));\n }\n if (key === \"translateY\") {\n const value = transform[key];\n return multiply4(acc, translate(0, value, 0));\n }\n if (key === \"translateZ\") {\n const value = transform[key];\n return multiply4(acc, translate(0, 0, value));\n }\n if (key === \"scale\") {\n const value = transform[key];\n return multiply4(acc, scale(value, value, 1));\n }\n if (key === \"scaleX\") {\n const value = transform[key];\n return multiply4(acc, scale(value, 1, 1));\n }\n if (key === \"scaleY\") {\n const value = transform[key];\n return multiply4(acc, scale(1, value, 1));\n }\n if (key === \"skewX\") {\n const value = transform[key];\n return multiply4(acc, skewX(value));\n }\n if (key === \"skewY\") {\n const value = transform[key];\n return multiply4(acc, skewY(value));\n }\n if (key === \"rotateX\") {\n const value = transform[key];\n return multiply4(acc, rotate([1, 0, 0], value));\n }\n if (key === \"rotateY\") {\n const value = transform[key];\n return multiply4(acc, rotate([0, 1, 0], value));\n }\n if (key === \"perspective\") {\n const value = transform[key];\n return multiply4(acc, perspective(value));\n }\n if (key === \"rotate\" || key === \"rotateZ\") {\n const value = transform[key];\n return multiply4(acc, rotate([0, 0, 1], value));\n }\n if (key === \"matrix\") {\n const value = transform[key];\n return multiply4(acc, value);\n }\n return exhaustiveCheck(key);\n }, Matrix4());\n};\n\n/**\n * @worklet\n */\nexport const convertToColumnMajor = (rowMajorMatrix: Matrix4) => {\n \"worklet\";\n\n const colMajorMatrix = new Array<number>(16);\n const size = 4;\n for (let row = 0; row < size; row++) {\n for (let col = 0; col < size; col++) {\n colMajorMatrix[col * size + row] = rowMajorMatrix[row * size + col];\n }\n }\n return colMajorMatrix as unknown as Matrix4;\n};\n\n/**\n * @worklet\n */\nexport const convertToAffineMatrix = (m4: Matrix4) => {\n \"worklet\";\n // Extracting the relevant components from the 4x4 matrix\n const a = m4[0]; // Scale X\n const b = m4[1]; // Skew Y\n const c = m4[4]; // Skew X\n const d = m4[5]; // Scale Y\n const tx = m4[12]; // Translate X\n const ty = m4[13]; // Translate Y\n\n // Returning the 6-element affine transformation matrix\n return [a, b, c, d, tx, ty];\n};\n"],"mappings":"AAgFA,MAAMA,eAAe,GAAIC,CAAD,IAAqB;EAC3C;;EACA,MAAM,IAAIC,KAAJ,CAAW,6BAA4BD,CAAE,EAAzC,CAAN;AACD,CAHD;AAKA;AACA;AACA;;;AACA,OAAO,MAAME,OAAO,GAAG,MAAe;EACpC;;EACA,OAAO,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,CAAV,EAAa,CAAb,EAAgB,CAAhB,EAAmB,CAAnB,EAAsB,CAAtB,EAAyB,CAAzB,EAA4B,CAA5B,EAA+B,CAA/B,EAAkC,CAAlC,EAAqC,CAArC,EAAwC,CAAxC,EAA2C,CAA3C,EAA8C,CAA9C,CAAP;AACD,CAHM;AAKP;AACA;AACA;;AACA,OAAO,MAAMC,SAAS,GAAG,UAACC,CAAD,EAAYC,CAAZ,EAAkD;EACzE;;EADyE,IAA3BC,CAA2B,uEAAf,CAAe;EAEzE,OAAO,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAUF,CAAV,EAAa,CAAb,EAAgB,CAAhB,EAAmB,CAAnB,EAAsBC,CAAtB,EAAyB,CAAzB,EAA4B,CAA5B,EAA+B,CAA/B,EAAkCC,CAAlC,EAAqC,CAArC,EAAwC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gD,EAAE,CAAC,CAAD,CAAZ,CAHoD,CAGnC;;EACjB,MAAMrB,CAAC,GAAGqB,EAAE,CAAC,CAAD,CAAZ,CAJoD,CAInC;;EACjB,MAAM9B,CAAC,GAAG8B,EAAE,CAAC,CAAD,CAAZ,CALoD,CAKnC;;EACjB,MAAMqB,CAAC,GAAGrB,EAAE,CAAC,CAAD,CAAZ,CANoD,CAMnC;;EACjB,MAAMsB,EAAE,GAAGtB,EAAE,CAAC,EAAD,CAAb,CAPoD,CAOjC;;EACnB,MAAMuB,EAAE,GAAGvB,EAAE,CAAC,EAAD,CAAb,CARoD,CAQjC;EAEnB;;EACA,OAAO,CAAChD,CAAD,EAAI2B,CAAJ,EAAOT,CAAP,EAAUmD,CAAV,EAAaC,EAAb,EAAiBC,EAAjB,CAAP;AACD,CAZM"}
1
+ {"version":3,"names":["exhaustiveCheck","a","Error","Matrix4","translate","x","y","z","perspective","p","normalizeVec","vec","length","Math","sqrt","rotatedUnitSinCos","axisVec","sinAngle","cosAngle","c","s","t","matrixVecMul4","m","v","mapPoint3d","r","multiply4","b","result","Array","fill","i","j","skewY","angle","tan","skewX","toMatrix3","rotate","axis","value","sin","cos","pivot","scale","sx","sy","sz","m4","rotateAxis","rotateZ","rotateX","rotateY","processTransform3d","transforms","reduce","acc","val","key","Object","keys","transform","convertToColumnMajor","rowMajorMatrix","colMajorMatrix","size","row","col","convertToAffineMatrix","d","tx","ty"],"sources":["Matrix4.ts"],"sourcesContent":["type Point = { x: number; y: number };\ntype Vec2 = readonly [number, number];\ntype Vec3 = readonly [number, number, number];\ntype Vec4 = readonly [number, number, number, number];\n\nexport type Matrix3 = readonly [\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number\n];\n\nexport type Matrix4 = readonly [\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number\n];\n\ntype Transform3dName =\n | \"translateX\"\n | \"translateY\"\n | \"translateZ\"\n | \"translate\"\n | \"scale\"\n | \"scaleX\"\n | \"scaleY\"\n | \"skewX\"\n | \"skewY\"\n | \"rotateZ\"\n | \"rotate\"\n | \"perspective\"\n | \"rotateX\"\n | \"rotateY\"\n | \"matrix\";\n\ntype Transformations = {\n [Name in Transform3dName]: Name extends \"matrix\"\n ? Matrix4\n : Name extends \"translate\"\n ? Vec3 | Vec2\n : number;\n};\n\ntype Transform3d =\n | Pick<Transformations, \"translateX\">\n | Pick<Transformations, \"translateY\">\n | Pick<Transformations, \"translateZ\">\n | Pick<Transformations, \"translate\">\n | Pick<Transformations, \"scale\">\n | Pick<Transformations, \"scaleX\">\n | Pick<Transformations, \"scaleY\">\n | Pick<Transformations, \"skewX\">\n | Pick<Transformations, \"skewY\">\n | Pick<Transformations, \"perspective\">\n | Pick<Transformations, \"rotateX\">\n | Pick<Transformations, \"rotateY\">\n | Pick<Transformations, \"rotateZ\">\n | Pick<Transformations, \"rotate\">\n | Pick<Transformations, \"matrix\">;\n\nexport type Transforms3d = Transform3d[];\n\nconst exhaustiveCheck = (a: never): never => {\n \"worklet\";\n throw new Error(`Unexhaustive handling for ${a}`);\n};\n\n/**\n * @worklet\n */\nexport const Matrix4 = (): Matrix4 => {\n \"worklet\";\n return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n};\n\n/**\n * @worklet\n */\nexport const translate = (x: number, y: number, z: number = 0): Matrix4 => {\n \"worklet\";\n return [1, 0, 0, x, 0, 1, 0, y, 0, 0, 1, z, 0, 0, 0, 1];\n};\n\n/**\n * @worklet\n */\nexport const perspective = (p: number): Matrix4 => {\n \"worklet\";\n return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, -1 / p, 1];\n};\n\nconst normalizeVec = (vec: Vec3): Vec3 => {\n \"worklet\";\n const [x, y, z] = vec;\n const length = Math.sqrt(x * x + y * y + z * z);\n // Check for zero length to avoid division by zero\n if (length === 0) {\n return [0, 0, 0];\n }\n return [x / length, y / length, z / length];\n};\n\nconst rotatedUnitSinCos = (\n axisVec: Vec3,\n sinAngle: number,\n cosAngle: number\n): Matrix4 => {\n \"worklet\";\n const x = axisVec[0];\n const y = axisVec[1];\n const z = axisVec[2];\n const c = cosAngle;\n const s = sinAngle;\n const t = 1 - c;\n return [\n t * x * x + c,\n t * x * y - s * z,\n t * x * z + s * y,\n 0,\n t * x * y + s * z,\n t * y * y + c,\n t * y * z - s * x,\n 0,\n t * x * z - s * y,\n t * y * z + s * x,\n t * z * z + c,\n 0,\n 0,\n 0,\n 0,\n 1,\n ];\n};\n\n/**\n * @worklet\n */\nexport const matrixVecMul4 = (m: Matrix4, v: Vec4): Vec4 => {\n \"worklet\";\n return [\n m[0] * v[0] + m[1] * v[1] + m[2] * v[2] + m[3] * v[3],\n m[4] * v[0] + m[5] * v[1] + m[6] * v[2] + m[7] * v[3],\n m[8] * v[0] + m[9] * v[1] + m[10] * v[2] + m[11] * v[3],\n m[12] * v[0] + m[13] * v[1] + m[14] * v[2] + m[15] * v[3],\n ];\n};\n\n/**\n * @worklet\n */\nexport const mapPoint3d = (m: Matrix4, v: Vec3) => {\n \"worklet\";\n const r = matrixVecMul4(m, [...v, 1]);\n return [r[0] / r[3], r[1] / r[3], r[2] / r[3]] as const;\n};\n\n/**\n * @worklet\n */\nexport const multiply4 = (a: Matrix4, b: Matrix4): Matrix4 => {\n \"worklet\";\n const result = new Array(16).fill(0);\n for (let i = 0; i < 4; i++) {\n for (let j = 0; j < 4; j++) {\n result[i * 4 + j] =\n a[i * 4] * b[j] +\n a[i * 4 + 1] * b[j + 4] +\n a[i * 4 + 2] * b[j + 8] +\n a[i * 4 + 3] * b[j + 12];\n }\n }\n return result as unknown as Matrix4;\n};\n\nconst skewY = (angle: number): Matrix4 => {\n \"worklet\";\n return [1, Math.tan(angle), 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n};\n\nconst skewX = (angle: number): Matrix4 => {\n \"worklet\";\n return [1, 0, 0, 0, Math.tan(angle), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n};\n\n/**\n * @worklet\n */\nexport const toMatrix3 = (m: Matrix4) => {\n \"worklet\";\n return [m[0], m[1], m[3], m[4], m[5], m[7], m[12], m[13], m[15]];\n};\n\nconst rotate = (axis: Vec3, value: number) => {\n \"worklet\";\n return rotatedUnitSinCos(\n normalizeVec(axis),\n Math.sin(value),\n Math.cos(value)\n );\n};\n\n/**\n * @worklet\n */\nexport const pivot = (m: Matrix4, p: Point) => {\n \"worklet\";\n return multiply4(translate(p.x, p.y), multiply4(m, translate(-p.x, -p.y)));\n};\n\n/**\n * @worklet\n */\nexport const scale = (\n sx: number,\n sy: number,\n sz: number = 1,\n p?: Point\n): Matrix4 => {\n \"worklet\";\n const m4: Matrix4 = [sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, sz, 0, 0, 0, 0, 1];\n if (p) {\n return pivot(m4, p);\n }\n return m4;\n};\n\nconst rotateAxis = (axis: Vec3, angle: number, p?: Point) => {\n \"worklet\";\n const result = rotate(axis, angle);\n if (p) {\n return pivot(result, p);\n }\n return result;\n};\n\n/**\n * @worklet\n */\nexport const rotateZ = (value: number, p?: Point) => {\n \"worklet\";\n return rotateAxis([0, 0, 1], value, p);\n};\n\n/**\n * @worklet\n */\nexport const rotateX = (value: number, p?: Point) => {\n \"worklet\";\n return rotateAxis([1, 0, 0], value, p);\n};\n\n/**\n * @worklet\n */\nexport const rotateY = (value: number, p?: Point) => {\n \"worklet\";\n return rotateAxis([0, 1, 0], value, p);\n};\n\n/**\n * @worklet\n */\nexport const processTransform3d = (transforms: Transforms3d) => {\n \"worklet\";\n return transforms.reduce((acc, val) => {\n const key = Object.keys(val)[0] as Transform3dName;\n const transform = val as Pick<Transformations, typeof key>;\n if (key === \"translateX\") {\n const value = transform[key];\n return multiply4(acc, translate(value, 0, 0));\n }\n if (key === \"translate\") {\n const [x, y, z = 0] = transform[key];\n return multiply4(acc, translate(x, y, z));\n }\n if (key === \"translateY\") {\n const value = transform[key];\n return multiply4(acc, translate(0, value, 0));\n }\n if (key === \"translateZ\") {\n const value = transform[key];\n return multiply4(acc, translate(0, 0, value));\n }\n if (key === \"scale\") {\n const value = transform[key];\n return multiply4(acc, scale(value, value, 1));\n }\n if (key === \"scaleX\") {\n const value = transform[key];\n return multiply4(acc, scale(value, 1, 1));\n }\n if (key === \"scaleY\") {\n const value = transform[key];\n return multiply4(acc, scale(1, value, 1));\n }\n if (key === \"skewX\") {\n const value = transform[key];\n return multiply4(acc, skewX(value));\n }\n if (key === \"skewY\") {\n const value = transform[key];\n return multiply4(acc, skewY(value));\n }\n if (key === \"rotateX\") {\n const value = transform[key];\n return multiply4(acc, rotate([1, 0, 0], value));\n }\n if (key === \"rotateY\") {\n const value = transform[key];\n return multiply4(acc, rotate([0, 1, 0], value));\n }\n if (key === \"perspective\") {\n const value = transform[key];\n return multiply4(acc, perspective(value));\n }\n if (key === \"rotate\" || key === \"rotateZ\") {\n const value = transform[key];\n return multiply4(acc, rotate([0, 0, 1], value));\n }\n if (key === \"matrix\") {\n const value = transform[key];\n return multiply4(acc, value);\n }\n return exhaustiveCheck(key);\n }, Matrix4());\n};\n\n/**\n * @worklet\n */\nexport const convertToColumnMajor = (rowMajorMatrix: Matrix4) => {\n \"worklet\";\n\n const colMajorMatrix = new Array<number>(16);\n const size = 4;\n for (let row = 0; row < size; row++) {\n for (let col = 0; col < size; col++) {\n colMajorMatrix[col * size + row] = rowMajorMatrix[row * size + col];\n }\n }\n return colMajorMatrix as unknown as Matrix4;\n};\n\n/**\n * @worklet\n */\nexport const convertToAffineMatrix = (m4: Matrix4) => {\n \"worklet\";\n // Extracting the relevant components from the 4x4 matrix\n const a = m4[0]; // Scale X\n const b = m4[1]; // Skew Y\n const c = m4[4]; // Skew X\n const d = m4[5]; // Scale Y\n const tx = m4[12]; // Translate X\n const ty = m4[13]; // Translate Y\n\n // Returning the 6-element affine transformation matrix\n return [a, b, c, d, tx, ty];\n};\n"],"mappings":"A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EAC5C,MAAMoC,IAAI,GAAG,CAAC;EACd,KAAK,IAAIC,GAAG,GAAG,CAAC,EAAEA,GAAG,GAAGD,IAAI,EAAEC,GAAG,EAAE,EAAE;IACnC,KAAK,IAAIC,GAAG,GAAG,CAAC,EAAEA,GAAG,GAAGF,IAAI,EAAEE,GAAG,EAAE,EAAE;MACnCH,cAAc,CAACG,GAAG,GAAGF,IAAI,GAAGC,GAAG,CAAC,GAAGH,cAAc,CAACG,GAAG,GAAGD,IAAI,GAAGE,GAAG,CAAC;IACrE;EACF;EACA,OAAOH,cAAc;AACvB,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMI,qBAAqB,GAAIpB,EAAW,IAAK;EACpD,SAAS;;EACT;EACA,MAAMhD,CAAC,GAAGgD,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;EACjB,MAAMrB,CAAC,GAAGqB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;EACjB,MAAM9B,CAAC,GAAG8B,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;EACjB,MAAMqB,CAAC,GAAGrB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;EACjB,MAAMsB,EAAE,GAAGtB,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;EACnB,MAAMuB,EAAE,GAAGvB,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;;EAEnB;EACA,OAAO,CAAChD,CAAC,EAAE2B,CAAC,EAAET,CAAC,EAAEmD,CAAC,EAAEC,EAAE,EAAEC,EAAE,CAAC;AAC7B,CAAC"}
@@ -25,9 +25,7 @@
25
25
  * ra : result alpha component
26
26
  * rc : result "color": red, green, blue components
27
27
  */
28
- export let BlendMode;
29
-
30
- (function (BlendMode) {
28
+ export let BlendMode = /*#__PURE__*/function (BlendMode) {
31
29
  BlendMode[BlendMode["Clear"] = 0] = "Clear";
32
30
  BlendMode[BlendMode["Src"] = 1] = "Src";
33
31
  BlendMode[BlendMode["Dst"] = 2] = "Dst";
@@ -57,5 +55,6 @@ export let BlendMode;
57
55
  BlendMode[BlendMode["Saturation"] = 26] = "Saturation";
58
56
  BlendMode[BlendMode["Color"] = 27] = "Color";
59
57
  BlendMode[BlendMode["Luminosity"] = 28] = "Luminosity";
60
- })(BlendMode || (BlendMode = {}));
58
+ return BlendMode;
59
+ }({}); //!< luminosity of source with hue and saturation of
61
60
  //# sourceMappingURL=BlendMode.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BlendMode"],"sources":["BlendMode.ts"],"sourcesContent":["/**\n * Blends are operators that take in two colors (source, destination) and\n * return a new color. Many of these operate the same on all 4 components: red,\n * green, blue, alpha. For these, we just document what happens to one\n * component, rather than naming each one separately.\n *\n * Different SkColorTypes have different representations for color components:\n * 8-bit: 0..255\n * 6-bit: 0..63\n * 5-bit: 0..31\n * 4-bit: 0..15\n * floats: 0...1\n *\n * The documentation is expressed as if the component values are always 0..1\n * (floats).\n *\n * For brevity, the documentation uses the following abbreviations\n * s : source\n * d : destination\n * sa : source alpha\n * da : destination alpha\n *\n * Results are abbreviated\n * r : if all 4 components are computed in the same manner\n * ra : result alpha component\n * rc : result \"color\": red, green, blue components\n */\nexport enum BlendMode {\n Clear, //!< r = 0\n Src, //!< r = s\n Dst, //!< r = d\n SrcOver, //!< r = s + (1-sa)*d\n DstOver, //!< r = d + (1-da)*s\n SrcIn, //!< r = s * da\n DstIn, //!< r = d * sa\n SrcOut, //!< r = s * (1-da)\n DstOut, //!< r = d * (1-sa)\n SrcATop, //!< r = s*da + d*(1-sa)\n DstATop, //!< r = d*sa + s*(1-da)\n Xor, //!< r = s*(1-da) + d*(1-sa)\n Plus, //!< r = min(s + d, 1)\n Modulate, //!< r = s*d\n Screen, //!< r = s + d - s*d\n\n Overlay, //!< multiply or screen, depending on destination\n Darken, //!< rc = s + d - max(s*da, d*sa), ra = kSrcOver\n Lighten, //!< rc = s + d - min(s*da, d*sa), ra = kSrcOver\n ColorDodge, //!< brighten destination to reflect source\n ColorBurn, //!< darken destination to reflect source\n HardLight, //!< multiply or screen, depending on source\n SoftLight, //!< lighten or darken, depending on source\n Difference, //!< rc = s + d - 2*(min(s*da, d*sa)), ra = kSrcOver\n Exclusion, //!< rc = s + d - two(s*d), ra = kSrcOver\n Multiply, //!< r = s*(1-da) + d*(1-sa) + s*d\n\n Hue, //!< hue of source with saturation and luminosity of destination\n Saturation, //!< saturation of source with hue and luminosity of\n //!< destination\n Color, //!< hue and saturation of source with luminosity of destination\n Luminosity, //!< luminosity of source with hue and saturation of\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,SAAZ;;WAAYA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;GAAAA,S,KAAAA,S"}
1
+ {"version":3,"names":["BlendMode"],"sources":["BlendMode.ts"],"sourcesContent":["/**\n * Blends are operators that take in two colors (source, destination) and\n * return a new color. Many of these operate the same on all 4 components: red,\n * green, blue, alpha. For these, we just document what happens to one\n * component, rather than naming each one separately.\n *\n * Different SkColorTypes have different representations for color components:\n * 8-bit: 0..255\n * 6-bit: 0..63\n * 5-bit: 0..31\n * 4-bit: 0..15\n * floats: 0...1\n *\n * The documentation is expressed as if the component values are always 0..1\n * (floats).\n *\n * For brevity, the documentation uses the following abbreviations\n * s : source\n * d : destination\n * sa : source alpha\n * da : destination alpha\n *\n * Results are abbreviated\n * r : if all 4 components are computed in the same manner\n * ra : result alpha component\n * rc : result \"color\": red, green, blue components\n */\nexport enum BlendMode {\n Clear, //!< r = 0\n Src, //!< r = s\n Dst, //!< r = d\n SrcOver, //!< r = s + (1-sa)*d\n DstOver, //!< r = d + (1-da)*s\n SrcIn, //!< r = s * da\n DstIn, //!< r = d * sa\n SrcOut, //!< r = s * (1-da)\n DstOut, //!< r = d * (1-sa)\n SrcATop, //!< r = s*da + d*(1-sa)\n DstATop, //!< r = d*sa + s*(1-da)\n Xor, //!< r = s*(1-da) + d*(1-sa)\n Plus, //!< r = min(s + d, 1)\n Modulate, //!< r = s*d\n Screen, //!< r = s + d - s*d\n\n Overlay, //!< multiply or screen, depending on destination\n Darken, //!< rc = s + d - max(s*da, d*sa), ra = kSrcOver\n Lighten, //!< rc = s + d - min(s*da, d*sa), ra = kSrcOver\n ColorDodge, //!< brighten destination to reflect source\n ColorBurn, //!< darken destination to reflect source\n HardLight, //!< multiply or screen, depending on source\n SoftLight, //!< lighten or darken, depending on source\n Difference, //!< rc = s + d - 2*(min(s*da, d*sa)), ra = kSrcOver\n Exclusion, //!< rc = s + d - two(s*d), ra = kSrcOver\n Multiply, //!< r = s*(1-da) + d*(1-sa) + s*d\n\n Hue, //!< hue of source with saturation and luminosity of destination\n Saturation, //!< saturation of source with hue and luminosity of\n //!< destination\n Color, //!< hue and saturation of source with luminosity of destination\n Luminosity, //!< luminosity of source with hue and saturation of\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,SAAS,0BAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAAA,OAATA,SAAS;AAAA,OAgCP"}
@@ -1,25 +1,19 @@
1
- export let PaintStyle;
2
-
3
- (function (PaintStyle) {
1
+ export let PaintStyle = /*#__PURE__*/function (PaintStyle) {
4
2
  PaintStyle[PaintStyle["Fill"] = 0] = "Fill";
5
3
  PaintStyle[PaintStyle["Stroke"] = 1] = "Stroke";
6
- })(PaintStyle || (PaintStyle = {}));
7
-
8
- export let StrokeCap;
9
-
10
- (function (StrokeCap) {
4
+ return PaintStyle;
5
+ }({});
6
+ export let StrokeCap = /*#__PURE__*/function (StrokeCap) {
11
7
  StrokeCap[StrokeCap["Butt"] = 0] = "Butt";
12
8
  StrokeCap[StrokeCap["Round"] = 1] = "Round";
13
9
  StrokeCap[StrokeCap["Square"] = 2] = "Square";
14
- })(StrokeCap || (StrokeCap = {}));
15
-
16
- export let StrokeJoin;
17
-
18
- (function (StrokeJoin) {
10
+ return StrokeCap;
11
+ }({});
12
+ export let StrokeJoin = /*#__PURE__*/function (StrokeJoin) {
19
13
  StrokeJoin[StrokeJoin["Miter"] = 0] = "Miter";
20
14
  StrokeJoin[StrokeJoin["Round"] = 1] = "Round";
21
15
  StrokeJoin[StrokeJoin["Bevel"] = 2] = "Bevel";
22
- })(StrokeJoin || (StrokeJoin = {}));
23
-
16
+ return StrokeJoin;
17
+ }({});
24
18
  export const isPaint = obj => obj !== null && obj.__typename__ === "Paint";
25
19
  //# sourceMappingURL=Paint.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["PaintStyle","StrokeCap","StrokeJoin","isPaint","obj","__typename__"],"sources":["Paint.ts"],"sourcesContent":["import type { SkImageFilter } from \"../ImageFilter\";\nimport type { SkMaskFilter } from \"../MaskFilter\";\nimport type { SkColorFilter } from \"../ColorFilter\";\nimport type { SkColor } from \"../Color\";\nimport type { SkPathEffect } from \"../PathEffect\";\nimport type { SkJSIInstance } from \"../JsiInstance\";\nimport type { SkShader } from \"../Shader\";\n\nimport type { BlendMode } from \"./BlendMode\";\n\nexport enum PaintStyle {\n Fill,\n Stroke,\n}\n\nexport enum StrokeCap {\n Butt,\n Round,\n Square,\n}\n\nexport enum StrokeJoin {\n Miter,\n Round,\n Bevel,\n}\n\nexport const isPaint = (obj: SkJSIInstance<string> | null): obj is SkPaint =>\n obj !== null && obj.__typename__ === \"Paint\";\n\nexport interface SkPaint extends SkJSIInstance<\"Paint\"> {\n /**\n * Retrieves alpha from the color used when stroking and filling.\n */\n getAlphaf(): number;\n\n /**\n * Returns a copy of this paint.\n */\n copy(): SkPaint;\n\n /**\n * Sets all SkPaint contents to their initial values. This is equivalent to replacing\n SkPaint with the result of SkPaint().\n */\n reset(): void;\n\n /**\n * Retrieves the alpha and RGB unpremultiplied. RGB are extended sRGB values\n * (sRGB gamut, and encoded with the sRGB transfer function).\n */\n getColor(): SkColor;\n\n /**\n * Returns the geometry drawn at the beginning and end of strokes.\n */\n getStrokeCap(): StrokeCap;\n\n /**\n * Returns the geometry drawn at the corners of strokes.\n */\n getStrokeJoin(): StrokeJoin;\n\n /**\n * Returns the limit at which a sharp corner is drawn beveled.\n */\n getStrokeMiter(): number;\n\n /**\n * Returns the thickness of the pen used to outline the shape.\n */\n getStrokeWidth(): number;\n\n /**\n * Replaces alpha, leaving RGBA unchanged. 0 means fully transparent, 1.0 means opaque.\n * @param alpha\n */\n setAlphaf(alpha: number): void;\n\n /**\n * Requests, but does not require, that edge pixels draw opaque or with\n * partial transparency.\n * @param aa\n */\n setAntiAlias: (aa: boolean) => void;\n\n /**\n * Requests, but does not require, to distribute color error.\n * @param dither\n */\n setDither: (dither: boolean) => void;\n\n /**\n * Sets the blend mode that is, the mode used to combine source color\n * with destination color.\n * @param mode\n */\n setBlendMode: (blendMode: BlendMode) => void;\n\n /**\n * Sets alpha and RGB used when stroking and filling. The color is a 32-bit\n * value, unpremultiplied, packing 8-bit components for alpha, red, blue,\n * and green.\n *\n * @param color unpremultiplied ARGB\n *\n * example: https://fiddle.skia.org/c/@Paint_setColor\n */\n setColor(color: SkColor): void;\n\n /**\n * Sets the current color filter, replacing the existing one if there was one.\n * @param filter\n */\n setColorFilter(filter: SkColorFilter | null): void;\n\n /**\n * Sets the current image filter, replacing the existing one if there was one.\n * @param filter\n */\n setImageFilter(filter: SkImageFilter | null): void;\n\n /**\n * Sets the current mask filter, replacing the existing one if there was one.\n * @param filter\n */\n setMaskFilter(filter: SkMaskFilter | null): void;\n\n /**\n * Sets the current path effect, replacing the existing one if there was one.\n * @param effect\n */\n setPathEffect(effect: SkPathEffect | null): void;\n\n /**\n * Sets the current shader, replacing the existing one if there was one.\n * @param shader\n */\n setShader(shader: SkShader | null): void;\n\n /**\n * Sets the geometry drawn at the beginning and end of strokes.\n * @param cap\n */\n setStrokeCap(cap: StrokeCap): void;\n\n /**\n * Sets the geometry drawn at the corners of strokes.\n * @param join\n */\n setStrokeJoin(join: StrokeJoin): void;\n\n /**\n * Sets the limit at which a sharp corner is drawn beveled.\n * @param limit\n */\n setStrokeMiter(limit: number): void;\n\n /**\n * Sets the thickness of the pen used to outline the shape.\n * @param width\n */\n setStrokeWidth(width: number): void;\n\n /**\n * Sets whether the geometry is filled or stroked.\n * @param style\n */\n setStyle(style: PaintStyle): void;\n}\n"],"mappings":"AAUA,WAAYA,UAAZ;;WAAYA,U;EAAAA,U,CAAAA,U;EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U;;AAKZ,WAAYC,SAAZ;;WAAYA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;GAAAA,S,KAAAA,S;;AAMZ,WAAYC,UAAZ;;WAAYA,U;EAAAA,U,CAAAA,U;EAAAA,U,CAAAA,U;EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U;;AAMZ,OAAO,MAAMC,OAAO,GAAIC,GAAD,IACrBA,GAAG,KAAK,IAAR,IAAgBA,GAAG,CAACC,YAAJ,KAAqB,OADhC"}
1
+ {"version":3,"names":["PaintStyle","StrokeCap","StrokeJoin","isPaint","obj","__typename__"],"sources":["Paint.ts"],"sourcesContent":["import type { SkImageFilter } from \"../ImageFilter\";\nimport type { SkMaskFilter } from \"../MaskFilter\";\nimport type { SkColorFilter } from \"../ColorFilter\";\nimport type { SkColor } from \"../Color\";\nimport type { SkPathEffect } from \"../PathEffect\";\nimport type { SkJSIInstance } from \"../JsiInstance\";\nimport type { SkShader } from \"../Shader\";\n\nimport type { BlendMode } from \"./BlendMode\";\n\nexport enum PaintStyle {\n Fill,\n Stroke,\n}\n\nexport enum StrokeCap {\n Butt,\n Round,\n Square,\n}\n\nexport enum StrokeJoin {\n Miter,\n Round,\n Bevel,\n}\n\nexport const isPaint = (obj: SkJSIInstance<string> | null): obj is SkPaint =>\n obj !== null && obj.__typename__ === \"Paint\";\n\nexport interface SkPaint extends SkJSIInstance<\"Paint\"> {\n /**\n * Retrieves alpha from the color used when stroking and filling.\n */\n getAlphaf(): number;\n\n /**\n * Returns a copy of this paint.\n */\n copy(): SkPaint;\n\n /**\n * Sets all SkPaint contents to their initial values. This is equivalent to replacing\n SkPaint with the result of SkPaint().\n */\n reset(): void;\n\n /**\n * Retrieves the alpha and RGB unpremultiplied. RGB are extended sRGB values\n * (sRGB gamut, and encoded with the sRGB transfer function).\n */\n getColor(): SkColor;\n\n /**\n * Returns the geometry drawn at the beginning and end of strokes.\n */\n getStrokeCap(): StrokeCap;\n\n /**\n * Returns the geometry drawn at the corners of strokes.\n */\n getStrokeJoin(): StrokeJoin;\n\n /**\n * Returns the limit at which a sharp corner is drawn beveled.\n */\n getStrokeMiter(): number;\n\n /**\n * Returns the thickness of the pen used to outline the shape.\n */\n getStrokeWidth(): number;\n\n /**\n * Replaces alpha, leaving RGBA unchanged. 0 means fully transparent, 1.0 means opaque.\n * @param alpha\n */\n setAlphaf(alpha: number): void;\n\n /**\n * Requests, but does not require, that edge pixels draw opaque or with\n * partial transparency.\n * @param aa\n */\n setAntiAlias: (aa: boolean) => void;\n\n /**\n * Requests, but does not require, to distribute color error.\n * @param dither\n */\n setDither: (dither: boolean) => void;\n\n /**\n * Sets the blend mode that is, the mode used to combine source color\n * with destination color.\n * @param mode\n */\n setBlendMode: (blendMode: BlendMode) => void;\n\n /**\n * Sets alpha and RGB used when stroking and filling. The color is a 32-bit\n * value, unpremultiplied, packing 8-bit components for alpha, red, blue,\n * and green.\n *\n * @param color unpremultiplied ARGB\n *\n * example: https://fiddle.skia.org/c/@Paint_setColor\n */\n setColor(color: SkColor): void;\n\n /**\n * Sets the current color filter, replacing the existing one if there was one.\n * @param filter\n */\n setColorFilter(filter: SkColorFilter | null): void;\n\n /**\n * Sets the current image filter, replacing the existing one if there was one.\n * @param filter\n */\n setImageFilter(filter: SkImageFilter | null): void;\n\n /**\n * Sets the current mask filter, replacing the existing one if there was one.\n * @param filter\n */\n setMaskFilter(filter: SkMaskFilter | null): void;\n\n /**\n * Sets the current path effect, replacing the existing one if there was one.\n * @param effect\n */\n setPathEffect(effect: SkPathEffect | null): void;\n\n /**\n * Sets the current shader, replacing the existing one if there was one.\n * @param shader\n */\n setShader(shader: SkShader | null): void;\n\n /**\n * Sets the geometry drawn at the beginning and end of strokes.\n * @param cap\n */\n setStrokeCap(cap: StrokeCap): void;\n\n /**\n * Sets the geometry drawn at the corners of strokes.\n * @param join\n */\n setStrokeJoin(join: StrokeJoin): void;\n\n /**\n * Sets the limit at which a sharp corner is drawn beveled.\n * @param limit\n */\n setStrokeMiter(limit: number): void;\n\n /**\n * Sets the thickness of the pen used to outline the shape.\n * @param width\n */\n setStrokeWidth(width: number): void;\n\n /**\n * Sets whether the geometry is filled or stroked.\n * @param style\n */\n setStyle(style: PaintStyle): void;\n}\n"],"mappings":"AAUA,WAAYA,UAAU,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAKtB,WAAYC,SAAS,0BAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAAA,OAATA,SAAS;AAAA;AAMrB,WAAYC,UAAU,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAMtB,OAAO,MAAMC,OAAO,GAAIC,GAAiC,IACvDA,GAAG,KAAK,IAAI,IAAIA,GAAG,CAACC,YAAY,KAAK,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Paint\";\nexport * from \"./BlendMode\";\n"],"mappings":"AAAA,cAAc,SAAd;AACA,cAAc,aAAd"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Paint\";\nexport * from \"./BlendMode\";\n"],"mappings":"AAAA,cAAc,SAAS;AACvB,cAAc,aAAa"}
@@ -1,11 +1,10 @@
1
- export let PlaceholderAlignment;
2
-
3
- (function (PlaceholderAlignment) {
1
+ export let PlaceholderAlignment = /*#__PURE__*/function (PlaceholderAlignment) {
4
2
  PlaceholderAlignment[PlaceholderAlignment["Baseline"] = 0] = "Baseline";
5
3
  PlaceholderAlignment[PlaceholderAlignment["AboveBaseline"] = 1] = "AboveBaseline";
6
4
  PlaceholderAlignment[PlaceholderAlignment["BelowBaseline"] = 2] = "BelowBaseline";
7
5
  PlaceholderAlignment[PlaceholderAlignment["Top"] = 3] = "Top";
8
6
  PlaceholderAlignment[PlaceholderAlignment["Bottom"] = 4] = "Bottom";
9
7
  PlaceholderAlignment[PlaceholderAlignment["Middle"] = 5] = "Middle";
10
- })(PlaceholderAlignment || (PlaceholderAlignment = {}));
8
+ return PlaceholderAlignment;
9
+ }({});
11
10
  //# sourceMappingURL=ParagraphBuilder.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["PlaceholderAlignment"],"sources":["ParagraphBuilder.ts"],"sourcesContent":["import type { SkJSIInstance } from \"../JsiInstance\";\nimport type { SkPaint } from \"../Paint\";\n\nimport type { SkParagraph } from \"./Paragraph\";\nimport type { SkParagraphStyle } from \"./ParagraphStyle\";\nimport type { SkTextStyle, TextBaseline } from \"./TextStyle\";\nimport type { SkTypefaceFontProvider } from \"./TypefaceFontProvider\";\n\nexport interface ParagraphBuilderFactory {\n /**\n * Creates a new ParagraphBuilder object from custom fonts.\n * @param paragraphStyle Initial paragraph style\n * @param typefaceProvider Typeface provider\n */\n Make(\n paragraphStyle?: SkParagraphStyle,\n typefaceProvider?: SkTypefaceFontProvider\n ): SkParagraphBuilder;\n}\n\nexport enum PlaceholderAlignment {\n /// Match the baseline of the placeholder with the baseline.\n Baseline = 0,\n\n /// Align the bottom edge of the placeholder with the baseline such that the\n /// placeholder sits on top of the baseline.\n AboveBaseline,\n\n /// Align the top edge of the placeholder with the baseline specified in\n /// such that the placeholder hangs below the baseline.\n BelowBaseline,\n\n /// Align the top edge of the placeholder with the top edge of the font.\n /// When the placeholder is very tall, the extra space will hang from\n /// the top and extend through the bottom of the line.\n Top,\n\n /// Align the bottom edge of the placeholder with the top edge of the font.\n /// When the placeholder is very tall, the extra space will rise from\n /// the bottom and extend through the top of the line.\n Bottom,\n\n /// Align the middle of the placeholder with the middle of the text. When the\n /// placeholder is very tall, the extra space will grow equally from\n /// the top and bottom of the line.\n Middle,\n}\n\nexport interface SkParagraphBuilder extends SkJSIInstance<\"ParagraphBuilder\"> {\n /**\n * Creates a Paragraph object from the builder and the inputs given to the builder.\n */\n build(): SkParagraph;\n /**\n * Restores the builder to its initial empty state.\n */\n reset(): void;\n /**\n * Pushes a text-style to the builder\n * @param style Style to push\n * @param foregroundPaint Foreground paint object\n * @param backgroundPaint Background paint object\n * @returns The builder\n */\n pushStyle: (\n style: SkTextStyle,\n foregroundPaint?: SkPaint | undefined,\n backgroundPaint?: SkPaint | undefined\n ) => SkParagraphBuilder;\n /**\n * Pops the current text style from the builder\n * @returns The builder\n */\n pop: () => SkParagraphBuilder;\n /**\n * Adds text to the builder\n * @param text\n * @returns The builder\n */\n addText: (text: string) => SkParagraphBuilder;\n /**\n * Pushes the information required to leave an open space.\n * @param width\n * @param height\n * @param alignment\n * @param baseline\n * @param offset\n */\n addPlaceholder(\n width?: number,\n height?: number,\n alignment?: PlaceholderAlignment,\n baseline?: TextBaseline,\n offset?: number\n ): SkParagraphBuilder;\n}\n"],"mappings":"AAoBA,WAAYA,oBAAZ;;WAAYA,oB;EAAAA,oB,CAAAA,oB;EAAAA,oB,CAAAA,oB;EAAAA,oB,CAAAA,oB;EAAAA,oB,CAAAA,oB;EAAAA,oB,CAAAA,oB;EAAAA,oB,CAAAA,oB;GAAAA,oB,KAAAA,oB"}
1
+ {"version":3,"names":["PlaceholderAlignment"],"sources":["ParagraphBuilder.ts"],"sourcesContent":["import type { SkJSIInstance } from \"../JsiInstance\";\nimport type { SkPaint } from \"../Paint\";\n\nimport type { SkParagraph } from \"./Paragraph\";\nimport type { SkParagraphStyle } from \"./ParagraphStyle\";\nimport type { SkTextStyle, TextBaseline } from \"./TextStyle\";\nimport type { SkTypefaceFontProvider } from \"./TypefaceFontProvider\";\n\nexport interface ParagraphBuilderFactory {\n /**\n * Creates a new ParagraphBuilder object from custom fonts.\n * @param paragraphStyle Initial paragraph style\n * @param typefaceProvider Typeface provider\n */\n Make(\n paragraphStyle?: SkParagraphStyle,\n typefaceProvider?: SkTypefaceFontProvider\n ): SkParagraphBuilder;\n}\n\nexport enum PlaceholderAlignment {\n /// Match the baseline of the placeholder with the baseline.\n Baseline = 0,\n\n /// Align the bottom edge of the placeholder with the baseline such that the\n /// placeholder sits on top of the baseline.\n AboveBaseline,\n\n /// Align the top edge of the placeholder with the baseline specified in\n /// such that the placeholder hangs below the baseline.\n BelowBaseline,\n\n /// Align the top edge of the placeholder with the top edge of the font.\n /// When the placeholder is very tall, the extra space will hang from\n /// the top and extend through the bottom of the line.\n Top,\n\n /// Align the bottom edge of the placeholder with the top edge of the font.\n /// When the placeholder is very tall, the extra space will rise from\n /// the bottom and extend through the top of the line.\n Bottom,\n\n /// Align the middle of the placeholder with the middle of the text. When the\n /// placeholder is very tall, the extra space will grow equally from\n /// the top and bottom of the line.\n Middle,\n}\n\nexport interface SkParagraphBuilder extends SkJSIInstance<\"ParagraphBuilder\"> {\n /**\n * Creates a Paragraph object from the builder and the inputs given to the builder.\n */\n build(): SkParagraph;\n /**\n * Restores the builder to its initial empty state.\n */\n reset(): void;\n /**\n * Pushes a text-style to the builder\n * @param style Style to push\n * @param foregroundPaint Foreground paint object\n * @param backgroundPaint Background paint object\n * @returns The builder\n */\n pushStyle: (\n style: SkTextStyle,\n foregroundPaint?: SkPaint | undefined,\n backgroundPaint?: SkPaint | undefined\n ) => SkParagraphBuilder;\n /**\n * Pops the current text style from the builder\n * @returns The builder\n */\n pop: () => SkParagraphBuilder;\n /**\n * Adds text to the builder\n * @param text\n * @returns The builder\n */\n addText: (text: string) => SkParagraphBuilder;\n /**\n * Pushes the information required to leave an open space.\n * @param width\n * @param height\n * @param alignment\n * @param baseline\n * @param offset\n */\n addPlaceholder(\n width?: number,\n height?: number,\n alignment?: PlaceholderAlignment,\n baseline?: TextBaseline,\n offset?: number\n ): SkParagraphBuilder;\n}\n"],"mappings":"AAoBA,WAAYA,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA"}
@@ -1,27 +1,22 @@
1
- export let TextDirection;
2
-
3
- (function (TextDirection) {
1
+ export let TextDirection = /*#__PURE__*/function (TextDirection) {
4
2
  TextDirection[TextDirection["RTL"] = 0] = "RTL";
5
3
  TextDirection[TextDirection["LTR"] = 1] = "LTR";
6
- })(TextDirection || (TextDirection = {}));
7
-
8
- export let TextAlign;
9
-
10
- (function (TextAlign) {
4
+ return TextDirection;
5
+ }({});
6
+ export let TextAlign = /*#__PURE__*/function (TextAlign) {
11
7
  TextAlign[TextAlign["Left"] = 0] = "Left";
12
8
  TextAlign[TextAlign["Right"] = 1] = "Right";
13
9
  TextAlign[TextAlign["Center"] = 2] = "Center";
14
10
  TextAlign[TextAlign["Justify"] = 3] = "Justify";
15
11
  TextAlign[TextAlign["Start"] = 4] = "Start";
16
12
  TextAlign[TextAlign["End"] = 5] = "End";
17
- })(TextAlign || (TextAlign = {}));
18
-
19
- export let TextHeightBehavior;
20
-
21
- (function (TextHeightBehavior) {
13
+ return TextAlign;
14
+ }({});
15
+ export let TextHeightBehavior = /*#__PURE__*/function (TextHeightBehavior) {
22
16
  TextHeightBehavior[TextHeightBehavior["All"] = 0] = "All";
23
17
  TextHeightBehavior[TextHeightBehavior["DisableFirstAscent"] = 1] = "DisableFirstAscent";
24
18
  TextHeightBehavior[TextHeightBehavior["DisableLastDescent"] = 2] = "DisableLastDescent";
25
19
  TextHeightBehavior[TextHeightBehavior["DisableAll"] = 3] = "DisableAll";
26
- })(TextHeightBehavior || (TextHeightBehavior = {}));
20
+ return TextHeightBehavior;
21
+ }({});
27
22
  //# sourceMappingURL=ParagraphStyle.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["TextDirection","TextAlign","TextHeightBehavior"],"sources":["ParagraphStyle.ts"],"sourcesContent":["import type { SkTextFontStyle, SkTextStyle } from \"./TextStyle\";\n\nexport enum TextDirection {\n RTL = 0,\n LTR = 1,\n}\nexport enum TextAlign {\n Left = 0,\n Right,\n Center,\n Justify,\n Start,\n End,\n}\n\nexport interface SkStrutStyle {\n strutEnabled?: boolean;\n fontFamilies?: string[];\n fontStyle?: SkTextFontStyle;\n fontSize?: number;\n heightMultiplier?: number;\n halfLeading?: boolean;\n leading?: number;\n forceStrutHeight?: boolean;\n}\n\nexport enum TextHeightBehavior {\n All = 0x0,\n DisableFirstAscent = 0x1,\n DisableLastDescent = 0x2,\n DisableAll = 0x1 | 0x2,\n}\n\nexport interface SkParagraphStyle {\n disableHinting?: boolean;\n ellipsis?: string;\n heightMultiplier?: number;\n maxLines?: number;\n replaceTabCharacters?: boolean;\n strutStyle?: SkStrutStyle;\n textAlign?: TextAlign;\n textDirection?: TextDirection;\n textHeightBehavior?: TextHeightBehavior;\n textStyle?: SkTextStyle;\n}\n"],"mappings":"AAEA,WAAYA,aAAZ;;WAAYA,a;EAAAA,a,CAAAA,a;EAAAA,a,CAAAA,a;GAAAA,a,KAAAA,a;;AAIZ,WAAYC,SAAZ;;WAAYA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;GAAAA,S,KAAAA,S;;AAoBZ,WAAYC,kBAAZ;;WAAYA,kB;EAAAA,kB,CAAAA,kB;EAAAA,kB,CAAAA,kB;EAAAA,kB,CAAAA,kB;EAAAA,kB,CAAAA,kB;GAAAA,kB,KAAAA,kB"}
1
+ {"version":3,"names":["TextDirection","TextAlign","TextHeightBehavior"],"sources":["ParagraphStyle.ts"],"sourcesContent":["import type { SkTextFontStyle, SkTextStyle } from \"./TextStyle\";\n\nexport enum TextDirection {\n RTL = 0,\n LTR = 1,\n}\nexport enum TextAlign {\n Left = 0,\n Right,\n Center,\n Justify,\n Start,\n End,\n}\n\nexport interface SkStrutStyle {\n strutEnabled?: boolean;\n fontFamilies?: string[];\n fontStyle?: SkTextFontStyle;\n fontSize?: number;\n heightMultiplier?: number;\n halfLeading?: boolean;\n leading?: number;\n forceStrutHeight?: boolean;\n}\n\nexport enum TextHeightBehavior {\n All = 0x0,\n DisableFirstAscent = 0x1,\n DisableLastDescent = 0x2,\n DisableAll = 0x1 | 0x2,\n}\n\nexport interface SkParagraphStyle {\n disableHinting?: boolean;\n ellipsis?: string;\n heightMultiplier?: number;\n maxLines?: number;\n replaceTabCharacters?: boolean;\n strutStyle?: SkStrutStyle;\n textAlign?: TextAlign;\n textDirection?: TextDirection;\n textHeightBehavior?: TextHeightBehavior;\n textStyle?: SkTextStyle;\n}\n"],"mappings":"AAEA,WAAYA,aAAa,0BAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAIzB,WAAYC,SAAS,0BAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAAA,OAATA,SAAS;AAAA;AAoBrB,WAAYC,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA"}
@@ -1,26 +1,21 @@
1
- export let TextDecoration;
2
-
3
- (function (TextDecoration) {
1
+ export let TextDecoration = /*#__PURE__*/function (TextDecoration) {
4
2
  TextDecoration[TextDecoration["NoDecoration"] = 0] = "NoDecoration";
5
3
  TextDecoration[TextDecoration["Underline"] = 1] = "Underline";
6
4
  TextDecoration[TextDecoration["Overline"] = 2] = "Overline";
7
5
  TextDecoration[TextDecoration["LineThrough"] = 4] = "LineThrough";
8
- })(TextDecoration || (TextDecoration = {}));
9
-
10
- export let TextDecorationStyle;
11
-
12
- (function (TextDecorationStyle) {
6
+ return TextDecoration;
7
+ }({});
8
+ export let TextDecorationStyle = /*#__PURE__*/function (TextDecorationStyle) {
13
9
  TextDecorationStyle[TextDecorationStyle["Solid"] = 0] = "Solid";
14
10
  TextDecorationStyle[TextDecorationStyle["Double"] = 1] = "Double";
15
11
  TextDecorationStyle[TextDecorationStyle["Dotted"] = 2] = "Dotted";
16
12
  TextDecorationStyle[TextDecorationStyle["Dashed"] = 3] = "Dashed";
17
13
  TextDecorationStyle[TextDecorationStyle["Wavy"] = 4] = "Wavy";
18
- })(TextDecorationStyle || (TextDecorationStyle = {}));
19
-
20
- export let TextBaseline;
21
-
22
- (function (TextBaseline) {
14
+ return TextDecorationStyle;
15
+ }({});
16
+ export let TextBaseline = /*#__PURE__*/function (TextBaseline) {
23
17
  TextBaseline[TextBaseline["Alphabetic"] = 0] = "Alphabetic";
24
18
  TextBaseline[TextBaseline["Ideographic"] = 1] = "Ideographic";
25
- })(TextBaseline || (TextBaseline = {}));
19
+ return TextBaseline;
20
+ }({});
26
21
  //# sourceMappingURL=TextStyle.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["TextDecoration","TextDecorationStyle","TextBaseline"],"sources":["TextStyle.ts"],"sourcesContent":["import type { SkColor } from \"../Color\";\nimport type { FontSlant, FontWeight, FontWidth } from \"../Font\";\nimport type { SkPoint } from \"../Point\";\n\nexport enum TextDecoration {\n NoDecoration = 0x0,\n Underline = 0x1,\n Overline = 0x2,\n LineThrough = 0x4,\n}\n\nexport enum TextDecorationStyle {\n Solid = 0,\n Double,\n Dotted,\n Dashed,\n Wavy,\n}\n\nexport interface SkTextShadow {\n color?: SkColor;\n /**\n * 2d array for x and y offset. Defaults to [0, 0]\n */\n offset?: SkPoint;\n blurRadius?: number;\n}\n\nexport interface SkTextFontFeatures {\n name: string;\n value: number;\n}\n\nexport interface SkTextFontStyle {\n weight?: FontWeight;\n width?: FontWidth;\n slant?: FontSlant;\n}\n\nexport interface SkTextFontVariations {\n axis: string;\n value: number;\n}\n\nexport enum TextBaseline {\n Alphabetic = 0,\n Ideographic,\n}\n\nexport interface SkTextStyle {\n backgroundColor?: SkColor;\n color?: SkColor;\n decoration?: number;\n decorationColor?: SkColor;\n decorationThickness?: number;\n decorationStyle?: TextDecoration;\n fontFamilies?: string[];\n fontFeatures?: SkTextFontFeatures[];\n fontSize?: number;\n fontStyle?: SkTextFontStyle;\n fontVariations?: SkTextFontVariations[];\n foregroundColor?: SkColor;\n heightMultiplier?: number;\n halfLeading?: boolean;\n letterSpacing?: number;\n locale?: string;\n shadows?: SkTextShadow[];\n textBaseline?: TextBaseline;\n wordSpacing?: number;\n}\n"],"mappings":"AAIA,WAAYA,cAAZ;;WAAYA,c;EAAAA,c,CAAAA,c;EAAAA,c,CAAAA,c;EAAAA,c,CAAAA,c;EAAAA,c,CAAAA,c;GAAAA,c,KAAAA,c;;AAOZ,WAAYC,mBAAZ;;WAAYA,mB;EAAAA,mB,CAAAA,mB;EAAAA,mB,CAAAA,mB;EAAAA,mB,CAAAA,mB;EAAAA,mB,CAAAA,mB;EAAAA,mB,CAAAA,mB;GAAAA,mB,KAAAA,mB;;AAiCZ,WAAYC,YAAZ;;WAAYA,Y;EAAAA,Y,CAAAA,Y;EAAAA,Y,CAAAA,Y;GAAAA,Y,KAAAA,Y"}
1
+ {"version":3,"names":["TextDecoration","TextDecorationStyle","TextBaseline"],"sources":["TextStyle.ts"],"sourcesContent":["import type { SkColor } from \"../Color\";\nimport type { FontSlant, FontWeight, FontWidth } from \"../Font\";\nimport type { SkPoint } from \"../Point\";\n\nexport enum TextDecoration {\n NoDecoration = 0x0,\n Underline = 0x1,\n Overline = 0x2,\n LineThrough = 0x4,\n}\n\nexport enum TextDecorationStyle {\n Solid = 0,\n Double,\n Dotted,\n Dashed,\n Wavy,\n}\n\nexport interface SkTextShadow {\n color?: SkColor;\n /**\n * 2d array for x and y offset. Defaults to [0, 0]\n */\n offset?: SkPoint;\n blurRadius?: number;\n}\n\nexport interface SkTextFontFeatures {\n name: string;\n value: number;\n}\n\nexport interface SkTextFontStyle {\n weight?: FontWeight;\n width?: FontWidth;\n slant?: FontSlant;\n}\n\nexport interface SkTextFontVariations {\n axis: string;\n value: number;\n}\n\nexport enum TextBaseline {\n Alphabetic = 0,\n Ideographic,\n}\n\nexport interface SkTextStyle {\n backgroundColor?: SkColor;\n color?: SkColor;\n decoration?: number;\n decorationColor?: SkColor;\n decorationThickness?: number;\n decorationStyle?: TextDecoration;\n fontFamilies?: string[];\n fontFeatures?: SkTextFontFeatures[];\n fontSize?: number;\n fontStyle?: SkTextFontStyle;\n fontVariations?: SkTextFontVariations[];\n foregroundColor?: SkColor;\n heightMultiplier?: number;\n halfLeading?: boolean;\n letterSpacing?: number;\n locale?: string;\n shadows?: SkTextShadow[];\n textBaseline?: TextBaseline;\n wordSpacing?: number;\n}\n"],"mappings":"AAIA,WAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAO1B,WAAYC,mBAAmB,0BAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;AAiC/B,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TypefaceFontProvider\";\nexport * from \"./TypefaceFontProviderFactory\";\nexport * from \"./Paragraph\";\nexport * from \"./ParagraphBuilder\";\nexport * from \"./ParagraphStyle\";\nexport * from \"./TextStyle\";\n"],"mappings":"AAAA,cAAc,wBAAd;AACA,cAAc,+BAAd;AACA,cAAc,aAAd;AACA,cAAc,oBAAd;AACA,cAAc,kBAAd;AACA,cAAc,aAAd"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./TypefaceFontProvider\";\nexport * from \"./TypefaceFontProviderFactory\";\nexport * from \"./Paragraph\";\nexport * from \"./ParagraphBuilder\";\nexport * from \"./ParagraphStyle\";\nexport * from \"./TextStyle\";\n"],"mappings":"AAAA,cAAc,wBAAwB;AACtC,cAAc,+BAA+B;AAC7C,cAAc,aAAa;AAC3B,cAAc,oBAAoB;AAClC,cAAc,kBAAkB;AAChC,cAAc,aAAa"}
@@ -1,35 +1,30 @@
1
1
  /**
2
2
  * Options used for Path.stroke(). If an option is omitted, a sensible default will be used.
3
3
  */
4
- export let FillType;
5
4
 
6
- (function (FillType) {
5
+ export let FillType = /*#__PURE__*/function (FillType) {
7
6
  FillType[FillType["Winding"] = 0] = "Winding";
8
7
  FillType[FillType["EvenOdd"] = 1] = "EvenOdd";
9
8
  FillType[FillType["InverseWinding"] = 2] = "InverseWinding";
10
9
  FillType[FillType["InverseEvenOdd"] = 3] = "InverseEvenOdd";
11
- })(FillType || (FillType = {}));
12
-
13
- export let PathOp;
14
-
15
- (function (PathOp) {
10
+ return FillType;
11
+ }({});
12
+ export let PathOp = /*#__PURE__*/function (PathOp) {
16
13
  PathOp[PathOp["Difference"] = 0] = "Difference";
17
14
  PathOp[PathOp["Intersect"] = 1] = "Intersect";
18
15
  PathOp[PathOp["Union"] = 2] = "Union";
19
16
  PathOp[PathOp["XOR"] = 3] = "XOR";
20
17
  PathOp[PathOp["ReverseDifference"] = 4] = "ReverseDifference";
21
- })(PathOp || (PathOp = {}));
22
-
23
- export let PathVerb;
24
-
25
- (function (PathVerb) {
18
+ return PathOp;
19
+ }({});
20
+ export let PathVerb = /*#__PURE__*/function (PathVerb) {
26
21
  PathVerb[PathVerb["Move"] = 0] = "Move";
27
22
  PathVerb[PathVerb["Line"] = 1] = "Line";
28
23
  PathVerb[PathVerb["Quad"] = 2] = "Quad";
29
24
  PathVerb[PathVerb["Conic"] = 3] = "Conic";
30
25
  PathVerb[PathVerb["Cubic"] = 4] = "Cubic";
31
26
  PathVerb[PathVerb["Close"] = 5] = "Close";
32
- })(PathVerb || (PathVerb = {}));
33
-
27
+ return PathVerb;
28
+ }({});
34
29
  export const isPath = obj => obj !== null && obj.__typename__ === "Path";
35
30
  //# sourceMappingURL=Path.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FillType","PathOp","PathVerb","isPath","obj","__typename__"],"sources":["Path.ts"],"sourcesContent":["import type { SkRect } from \"../Rect\";\nimport type { SkPoint } from \"../Point\";\nimport type { InputRRect } from \"../RRect\";\nimport type { StrokeJoin, StrokeCap } from \"../Paint\";\nimport type { InputMatrix, SkMatrix } from \"../Matrix\";\nimport type { SkJSIInstance } from \"../JsiInstance\";\n\n/**\n * Options used for Path.stroke(). If an option is omitted, a sensible default will be used.\n */\nexport interface StrokeOpts {\n /** The width of the stroked lines. */\n width?: number;\n miter_limit?: number;\n /**\n * if > 1, increase precision, else if (0 < resScale < 1) reduce precision to\n * favor speed and size\n */\n precision?: number;\n join?: StrokeJoin;\n cap?: StrokeCap;\n}\n\nexport enum FillType {\n Winding,\n EvenOdd,\n InverseWinding,\n InverseEvenOdd,\n}\n\nexport enum PathOp {\n Difference, //!< subtract the op path from the first path\n Intersect, //!< intersect the two paths\n Union, //!< union (inclusive-or) the two paths\n XOR, //!< exclusive-or the two paths\n ReverseDifference,\n}\n\nexport enum PathVerb {\n Move,\n Line,\n Quad,\n Conic,\n Cubic,\n Close,\n}\n\nexport type PathCommand = number[];\n\nexport const isPath = (obj: SkJSIInstance<string> | null): obj is SkPath =>\n obj !== null && obj.__typename__ === \"Path\";\n\nexport interface SkPath extends SkJSIInstance<\"Path\"> {\n /**\n * Appends arc to Path, as the start of new contour. Arc added is part of ellipse\n * bounded by oval, from startAngle through sweepAngle. Both startAngle and\n * sweepAngle are measured in degrees, where zero degrees is aligned with the\n * positive x-axis, and positive sweeps extends arc clockwise.\n * Returns the modified path for easier chaining.\n * @param oval\n * @param startAngle\n * @param sweepAngle\n */\n addArc(\n oval: SkRect,\n startAngleInDegrees: number,\n sweepAngleInDegrees: number\n ): SkPath;\n\n /**\n * Adds oval to Path, appending kMove_Verb, four kConic_Verb, and kClose_Verb.\n * Oval is upright ellipse bounded by Rect oval with radii equal to half oval width\n * and half oval height. Oval begins at start and continues clockwise by default.\n * Returns the modified path for easier chaining.\n * @param oval\n * @param isCCW - if the path should be drawn counter-clockwise or not\n * @param startIndex - index of initial point of ellipse\n */\n addOval(oval: SkRect, isCCW?: boolean, startIndex?: number): SkPath;\n\n /**\n * Returns the number of points in this path. Initially zero.\n */\n countPoints(): number;\n\n /**\n * Adds contour created from array of n points, adding (count - 1) line segments.\n * Contour added starts at pts[0], then adds a line for every additional point\n * in pts array. If close is true, appends kClose_Verb to Path, connecting\n * pts[count - 1] and pts[0].\n * Returns the modified path for easier chaining.\n * @param points\n * @param close - if true, will add a line connecting last point to the first point.\n */\n addPoly(points: SkPoint[], close: boolean): SkPath;\n\n /** Adds beginning of contour at SkPoint (x, y).\n\n @param x x-axis value of contour start\n @param y y-axis value of contour start\n @return reference to SkPath\n\n example: https://fiddle.skia.org/c/@Path_moveTo\n */\n moveTo(x: number, y: number): SkPath;\n /** Adds line from last point to (x, y). If SkPath is empty, or last SkPath::Verb is\n kClose_Verb, last point is set to (0, 0) before adding line.\n\n lineTo() appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed.\n lineTo() then appends kLine_Verb to verb array and (x, y) to SkPoint array.\n\n @param x end of added line on x-axis\n @param y end of added line on y-axis\n @return reference to SkPath\n\n example: https://fiddle.skia.org/c/@Path_lineTo\n */\n lineTo(x: number, y: number): SkPath;\n\n /**\n * Returns a new path that covers the same area as the original path, but with the\n * Winding FillType. This may re-draw some contours in the path as counter-clockwise\n * instead of clockwise to achieve that effect. If such a transformation cannot\n * be done, null is returned.\n */\n makeAsWinding(): SkPath | null;\n\n /**\n * Translates all the points in the path by dx, dy.\n * @param dx\n * @param dy\n */\n offset(dx: number, dy: number): SkPath;\n\n /**\n * Relative version of arcToRotated.\n * @param rx\n * @param ry\n * @param xAxisRotate\n * @param useSmallArc\n * @param isCCW\n * @param dx\n * @param dy\n */\n rArcTo(\n rx: number,\n ry: number,\n xAxisRotateInDegrees: number,\n useSmallArc: boolean,\n isCCW: boolean,\n dx: number,\n dy: number\n ): SkPath;\n\n /**\n * Relative version of conicTo.\n * @param dx1\n * @param dy1\n * @param dx2\n * @param dy2\n * @param w\n */\n rConicTo(\n dx1: number,\n dy1: number,\n dx2: number,\n dy2: number,\n w: number\n ): SkPath;\n\n /**\n * Relative version of cubicTo.\n * @param cpx1\n * @param cpy1\n * @param cpx2\n * @param cpy2\n * @param x\n * @param y\n */\n rCubicTo(\n cpx1: number,\n cpy1: number,\n cpx2: number,\n cpy2: number,\n x: number,\n y: number\n ): SkPath;\n\n /**\n * Relative version of moveTo.\n * @param x\n * @param y\n */\n rMoveTo(x: number, y: number): SkPath;\n\n /**\n * Relative version of lineTo.\n * @param x\n * @param y\n */\n rLineTo(x: number, y: number): SkPath;\n\n /**\n * Relative version of quadTo.\n * @param x1\n * @param y1\n * @param x2\n * @param y2\n */\n rQuadTo(x1: number, y1: number, x2: number, y2: number): SkPath;\n\n /**\n * Sets FillType, the rule used to fill Path.\n * @param fill\n */\n setFillType(fill: FillType): SkPath;\n\n /**\n * Specifies whether Path is volatile; whether it will be altered or discarded\n * by the caller after it is drawn. Path by default have volatile set false.\n *\n * Mark animating or temporary paths as volatile to improve performance.\n * Mark unchanging Path non-volatile to improve repeated rendering.\n * @param volatile\n */\n setIsVolatile(volatile: boolean): SkPath;\n\n /**\n * Turns this path into the filled equivalent of the stroked path. Returns false if the operation\n * fails (e.g. the path is a hairline).\n * @param opts - describe how stroked path should look.\n * If such a transformation cannot be done, null is returned.\n */\n stroke(opts?: StrokeOpts): null | SkPath;\n\n /**\n * Appends CLOSE_VERB to Path. A closed contour connects the first and last point\n * with a line, forming a continuous loop.\n */\n close(): SkPath;\n\n /**\n * Sets Path to its initial state.\n * Removes verb array, point array, and weights, and sets FillType to Winding.\n * Internal storage associated with Path is released\n */\n reset(): SkPath;\n\n /**\n * Sets Path to its initial state.\n * Removes verb array, point array, and weights, and sets FillType to Winding.\n * Internal storage associated with Path is *not* released.\n * Use rewind() instead of reset() if Path storage will be reused and performance\n * is critical.\n */\n rewind(): SkPath;\n\n /**\n * Returns minimum and maximum axes values of the lines and curves in Path.\n * Returns (0, 0, 0, 0) if Path contains no points.\n * Returned bounds width and height may be larger or smaller than area affected\n * when Path is drawn.\n *\n * Behaves identically to getBounds() when Path contains\n * only lines. If Path contains curves, computed bounds includes\n * the maximum extent of the quad, conic, or cubic; is slower than getBounds();\n * and unlike getBounds(), does not cache the result.\n */\n computeTightBounds(): SkRect;\n\n /**\n * Appends arc to Path. Arc added is part of ellipse\n * bounded by oval, from startAngle through sweepAngle. Both startAngle and\n * sweepAngle are measured in degrees, where zero degrees is aligned with the\n * positive x-axis, and positive sweeps extends arc clockwise.\n * Returns the modified path for easier chaining.\n * @param oval\n * @param startAngleInDegrees\n * @param sweepAngleInDegrees\n * @param forceMoveTo\n */\n arcToOval(\n oval: SkRect,\n startAngleInDegrees: number,\n sweepAngleInDegrees: number,\n forceMoveTo: boolean\n ): SkPath;\n\n /**\n * Appends arc to Path. Arc is implemented by one or more conics weighted to\n * describe part of oval with radii (rx, ry) rotated by xAxisRotate degrees. Arc\n * curves from last Path Point to (x, y), choosing one of four possible routes:\n * clockwise or counterclockwise, and smaller or larger. See SkPath.h for more details.\n * Returns the modified path for easier chaining.\n * @param rx\n * @param ry\n * @param xAxisRotate\n * @param useSmallArc\n * @param isCCW\n * @param x\n * @param y\n */\n arcToRotated(\n rx: number,\n ry: number,\n xAxisRotateInDegrees: number,\n useSmallArc: boolean,\n isCCW: boolean,\n x: number,\n y: number\n ): SkPath;\n\n /**\n * Appends arc to Path, after appending line if needed. Arc is implemented by conic\n * weighted to describe part of circle. Arc is contained by tangent from\n * last Path point to (x1, y1), and tangent from (x1, y1) to (x2, y2). Arc\n * is part of circle sized to radius, positioned so it touches both tangent lines.\n * Returns the modified path for easier chaining.\n * @param x1\n * @param y1\n * @param x2\n * @param y2\n * @param radius\n */\n arcToTangent(\n x1: number,\n y1: number,\n x2: number,\n y2: number,\n radius: number\n ): SkPath;\n\n /**\n * Adds conic from last point towards (x1, y1), to (x2, y2), weighted by w.\n * If Path is empty, or path is closed, the last point is set to (0, 0)\n * before adding conic.\n * Returns the modified path for easier chaining.\n * @param x1\n * @param y1\n * @param x2\n * @param y2\n * @param w\n */\n conicTo(x1: number, y1: number, x2: number, y2: number, w: number): SkPath;\n\n /**\n * Returns true if the point (x, y) is contained by Path, taking into\n * account FillType.\n * @param x\n * @param y\n */\n contains(x: number, y: number): boolean;\n\n /**\n * Returns a copy of this Path.\n */\n copy(): SkPath;\n\n /**\n * Adds cubic from last point towards (x1, y1), then towards (x2, y2), ending at\n * (x3, y3). If Path is empty, or path is closed, the last point is set to\n * (0, 0) before adding cubic.\n * @param cpx1\n * @param cpy1\n * @param cpx2\n * @param cpy2\n * @param x\n * @param y\n */\n cubicTo(\n cpx1: number,\n cpy1: number,\n cpx2: number,\n cpy2: number,\n x: number,\n y: number\n ): SkPath;\n\n /**\n * Changes this path to be the dashed version of itself. This is the same effect as creating\n * a DashPathEffect and calling filterPath on this path.\n * @param on\n * @param off\n * @param phase\n */\n dash(on: number, off: number, phase: number): boolean;\n\n /**\n * Returns true if other path is equal to this path.\n * @param other\n */\n equals(other: SkPath): boolean;\n\n /**\n * Returns minimum and maximum axes values of Point array.\n * Returns (0, 0, 0, 0) if Path contains no points. Returned bounds width and height may\n * be larger or smaller than area affected when Path is drawn.\n */\n getBounds(): SkRect;\n\n /**\n * Return the FillType for this path.\n */\n getFillType(): FillType;\n\n /**\n Adds quad from last point towards (x1, y1), to (x2, y2).\n\n If SkPath is empty, or last SkPath::Verb is kClose_Verb, last point is set to (0, 0) before adding quad.\n\n Appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed; then appends kQuad_Verb to verb array;\n and (x1, y1), (x2, y2) to SkPoint array.\n\n Parameters\n x1\tcontrol SkPoint of quad on x-axis\n y1\tcontrol SkPoint of quad on y-axis\n x2\tend SkPoint of quad on x-axis\n y2\tend SkPoint of quad on y-axis\n Returns\n reference to SkPath\n example: https://fiddle.skia.org/c/@Path_quadTo\n */\n quadTo(x1: number, y1: number, x2: number, y2: number): SkPath;\n\n /**\n * Adds Rect to Path, appending kMove_Verb, three kLine_Verb, and kClose_Verb,\n * starting with top-left corner of Rect; followed by top-right, bottom-right,\n * and bottom-left if isCCW is false; or followed by bottom-left,\n * bottom-right, and top-right if isCCW is true.\n * Returns the modified path for easier chaining.\n * @param rect\n * @param isCCW\n */\n addRect(rect: SkRect, isCCW?: boolean): SkPath;\n\n /**\n * Adds rrect to Path, creating a new closed contour.\n * Returns the modified path for easier chaining.\n * @param rrect\n * @param isCCW\n */\n addRRect(rrect: InputRRect, isCCW?: boolean): SkPath;\n\n /** Appends src to SkPath, transformed by matrix. Transformed curves may have\n different verbs, SkPoint, and conic weights.\n\n If mode is kAppend_AddPathMode, src verb array, SkPoint array, and conic\n weights are added unaltered. If mode is kExtend_AddPathMode, add line\n before appending verbs, SkPoint, and conic weights.\n\n @param src SkPath verbs, SkPoint, and conic weights to add\n @param matrix transform applied to src\n @param extend extends path with line if true\n @return reference to SkPath\n */\n addPath(src: SkPath, matrix?: SkMatrix, extend?: boolean): SkPath;\n\n /**\n * Returns the Point at index in Point array. Valid range for index is\n * 0 to countPoints() - 1.\n * @param index\n */\n getPoint(index: number): SkPoint;\n\n /**\n * Returns true if there are no verbs in the path.\n */\n isEmpty(): boolean;\n\n /**\n * Returns true if the path is volatile; it will not be altered or discarded\n * by the caller after it is drawn. Path by default have volatile set false, allowing\n * Surface to attach a cache of data which speeds repeated drawing. If true, Surface\n * may not speed repeated drawing.\n */\n isVolatile(): boolean;\n\n /** Adds circle centered at (x, y) of size radius to SkPath, appending kMove_Verb,\n four kConic_Verb, and kClose_Verb. Circle begins at: (x + radius, y), continuing\n clockwise if dir is kCW_Direction, and counterclockwise if dir is kCCW_Direction.\n\n Has no effect if radius is zero or negative.\n\n @param x center of circle\n @param y center of circle\n @param radius distance from center to edge \n @return reference to SkPath\n */\n addCircle(x: number, y: number, r: number): SkPath;\n\n getLastPt(): { x: number; y: number };\n\n /** Set this path to the result of applying the Op to this path and the\n specified path: this = (this op operand).\n The resulting path will be constructed from non-overlapping contours.\n The curve order is reduced where possible so that cubics may be turned\n into quadratics, and quadratics maybe turned into lines.\n\n Returns true if operation was able to produce a result;\n otherwise, result is unmodified.\n\n @param path The second path (for difference, the subtrahend)\n @param op The operator to apply.\n @param result The product of the operands. The result may be one of the\n inputs.\n @return True if the operation succeeded.\n */\n op(path: SkPath, op: PathOp): boolean;\n\n /** Set this path to a set of non-overlapping contours that describe the\n same area as the original path.\n The curve order is reduced where possible so that cubics may\n be turned into quadratics, and quadratics maybe turned into lines.\n\n Returns true if operation was able to produce a result;\n otherwise, result is unmodified.\n\n @param result The simplified path. The result may be the input.\n @return True if simplification succeeded.\n */\n simplify(): boolean;\n\n /**\n * Returns this path as an SVG string.\n */\n toSVGString(): string;\n\n /**\n * Take start and stop \"t\" values (values between 0...1), and modify this path such that\n * it is a subset of the original path.\n * The trim values apply to the entire path, so if it contains several contours, all of them\n * are including in the calculation.\n * Null is returned if either input value is NaN.\n * @param startT - a value in the range [0.0, 1.0]. 0.0 is the beginning of the path.\n * @param stopT - a value in the range [0.0, 1.0]. 1.0 is the end of the path.\n * @param isComplement\n */\n trim(startT: number, stopT: number, isComplement: boolean): null | SkPath;\n\n /**\n * Transforms the path by the specified matrix.\n */\n transform(m3: InputMatrix): SkPath;\n\n /**\n * Interpolates between Path with point array of equal size.\n * Copy verb array and weights to result, and set result path to a weighted\n * average of this path array and ending path.\n\n * weight is most useful when between zero (ending path) and\n one (this path); will work with values outside of this\n range.\n\n * interpolate() returns undefined if path is not\n * the same size as ending path. Call isInterpolatable() to check Path\n * compatibility prior to calling interpolate().\n\n * @param ending path to interpolate with\n * @param weight contribution of this path, and\n * one minus contribution of ending path\n * @param output path to be replaced with the interpolated averages\n * @return Path replaced by interpolated averages or null if \n * not interpolatable\n * */\n interpolate(end: SkPath, weight: number, output?: SkPath): SkPath | null;\n\n /** Returns true if Path contain equal verbs and equal weights.\n * @param compare path to compare\n * @return true if Path can be interpolated equivalent\n *\n * */\n isInterpolatable(compare: SkPath): boolean;\n\n /**\n * Serializes the contents of this path as a series of commands.\n */\n toCmds(): PathCommand[];\n}\n"],"mappings":"AAOA;AACA;AACA;AAcA,WAAYA,QAAZ;;WAAYA,Q;EAAAA,Q,CAAAA,Q;EAAAA,Q,CAAAA,Q;EAAAA,Q,CAAAA,Q;EAAAA,Q,CAAAA,Q;GAAAA,Q,KAAAA,Q;;AAOZ,WAAYC,MAAZ;;WAAYA,M;EAAAA,M,CAAAA,M;EAAAA,M,CAAAA,M;EAAAA,M,CAAAA,M;EAAAA,M,CAAAA,M;EAAAA,M,CAAAA,M;GAAAA,M,KAAAA,M;;AAQZ,WAAYC,QAAZ;;WAAYA,Q;EAAAA,Q,CAAAA,Q;EAAAA,Q,CAAAA,Q;EAAAA,Q,CAAAA,Q;EAAAA,Q,CAAAA,Q;EAAAA,Q,CAAAA,Q;EAAAA,Q,CAAAA,Q;GAAAA,Q,KAAAA,Q;;AAWZ,OAAO,MAAMC,MAAM,GAAIC,GAAD,IACpBA,GAAG,KAAK,IAAR,IAAgBA,GAAG,CAACC,YAAJ,KAAqB,MADhC"}
1
+ {"version":3,"names":["FillType","PathOp","PathVerb","isPath","obj","__typename__"],"sources":["Path.ts"],"sourcesContent":["import type { SkRect } from \"../Rect\";\nimport type { SkPoint } from \"../Point\";\nimport type { InputRRect } from \"../RRect\";\nimport type { StrokeJoin, StrokeCap } from \"../Paint\";\nimport type { InputMatrix, SkMatrix } from \"../Matrix\";\nimport type { SkJSIInstance } from \"../JsiInstance\";\n\n/**\n * Options used for Path.stroke(). If an option is omitted, a sensible default will be used.\n */\nexport interface StrokeOpts {\n /** The width of the stroked lines. */\n width?: number;\n miter_limit?: number;\n /**\n * if > 1, increase precision, else if (0 < resScale < 1) reduce precision to\n * favor speed and size\n */\n precision?: number;\n join?: StrokeJoin;\n cap?: StrokeCap;\n}\n\nexport enum FillType {\n Winding,\n EvenOdd,\n InverseWinding,\n InverseEvenOdd,\n}\n\nexport enum PathOp {\n Difference, //!< subtract the op path from the first path\n Intersect, //!< intersect the two paths\n Union, //!< union (inclusive-or) the two paths\n XOR, //!< exclusive-or the two paths\n ReverseDifference,\n}\n\nexport enum PathVerb {\n Move,\n Line,\n Quad,\n Conic,\n Cubic,\n Close,\n}\n\nexport type PathCommand = number[];\n\nexport const isPath = (obj: SkJSIInstance<string> | null): obj is SkPath =>\n obj !== null && obj.__typename__ === \"Path\";\n\nexport interface SkPath extends SkJSIInstance<\"Path\"> {\n /**\n * Appends arc to Path, as the start of new contour. Arc added is part of ellipse\n * bounded by oval, from startAngle through sweepAngle. Both startAngle and\n * sweepAngle are measured in degrees, where zero degrees is aligned with the\n * positive x-axis, and positive sweeps extends arc clockwise.\n * Returns the modified path for easier chaining.\n * @param oval\n * @param startAngle\n * @param sweepAngle\n */\n addArc(\n oval: SkRect,\n startAngleInDegrees: number,\n sweepAngleInDegrees: number\n ): SkPath;\n\n /**\n * Adds oval to Path, appending kMove_Verb, four kConic_Verb, and kClose_Verb.\n * Oval is upright ellipse bounded by Rect oval with radii equal to half oval width\n * and half oval height. Oval begins at start and continues clockwise by default.\n * Returns the modified path for easier chaining.\n * @param oval\n * @param isCCW - if the path should be drawn counter-clockwise or not\n * @param startIndex - index of initial point of ellipse\n */\n addOval(oval: SkRect, isCCW?: boolean, startIndex?: number): SkPath;\n\n /**\n * Returns the number of points in this path. Initially zero.\n */\n countPoints(): number;\n\n /**\n * Adds contour created from array of n points, adding (count - 1) line segments.\n * Contour added starts at pts[0], then adds a line for every additional point\n * in pts array. If close is true, appends kClose_Verb to Path, connecting\n * pts[count - 1] and pts[0].\n * Returns the modified path for easier chaining.\n * @param points\n * @param close - if true, will add a line connecting last point to the first point.\n */\n addPoly(points: SkPoint[], close: boolean): SkPath;\n\n /** Adds beginning of contour at SkPoint (x, y).\n\n @param x x-axis value of contour start\n @param y y-axis value of contour start\n @return reference to SkPath\n\n example: https://fiddle.skia.org/c/@Path_moveTo\n */\n moveTo(x: number, y: number): SkPath;\n /** Adds line from last point to (x, y). If SkPath is empty, or last SkPath::Verb is\n kClose_Verb, last point is set to (0, 0) before adding line.\n\n lineTo() appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed.\n lineTo() then appends kLine_Verb to verb array and (x, y) to SkPoint array.\n\n @param x end of added line on x-axis\n @param y end of added line on y-axis\n @return reference to SkPath\n\n example: https://fiddle.skia.org/c/@Path_lineTo\n */\n lineTo(x: number, y: number): SkPath;\n\n /**\n * Returns a new path that covers the same area as the original path, but with the\n * Winding FillType. This may re-draw some contours in the path as counter-clockwise\n * instead of clockwise to achieve that effect. If such a transformation cannot\n * be done, null is returned.\n */\n makeAsWinding(): SkPath | null;\n\n /**\n * Translates all the points in the path by dx, dy.\n * @param dx\n * @param dy\n */\n offset(dx: number, dy: number): SkPath;\n\n /**\n * Relative version of arcToRotated.\n * @param rx\n * @param ry\n * @param xAxisRotate\n * @param useSmallArc\n * @param isCCW\n * @param dx\n * @param dy\n */\n rArcTo(\n rx: number,\n ry: number,\n xAxisRotateInDegrees: number,\n useSmallArc: boolean,\n isCCW: boolean,\n dx: number,\n dy: number\n ): SkPath;\n\n /**\n * Relative version of conicTo.\n * @param dx1\n * @param dy1\n * @param dx2\n * @param dy2\n * @param w\n */\n rConicTo(\n dx1: number,\n dy1: number,\n dx2: number,\n dy2: number,\n w: number\n ): SkPath;\n\n /**\n * Relative version of cubicTo.\n * @param cpx1\n * @param cpy1\n * @param cpx2\n * @param cpy2\n * @param x\n * @param y\n */\n rCubicTo(\n cpx1: number,\n cpy1: number,\n cpx2: number,\n cpy2: number,\n x: number,\n y: number\n ): SkPath;\n\n /**\n * Relative version of moveTo.\n * @param x\n * @param y\n */\n rMoveTo(x: number, y: number): SkPath;\n\n /**\n * Relative version of lineTo.\n * @param x\n * @param y\n */\n rLineTo(x: number, y: number): SkPath;\n\n /**\n * Relative version of quadTo.\n * @param x1\n * @param y1\n * @param x2\n * @param y2\n */\n rQuadTo(x1: number, y1: number, x2: number, y2: number): SkPath;\n\n /**\n * Sets FillType, the rule used to fill Path.\n * @param fill\n */\n setFillType(fill: FillType): SkPath;\n\n /**\n * Specifies whether Path is volatile; whether it will be altered or discarded\n * by the caller after it is drawn. Path by default have volatile set false.\n *\n * Mark animating or temporary paths as volatile to improve performance.\n * Mark unchanging Path non-volatile to improve repeated rendering.\n * @param volatile\n */\n setIsVolatile(volatile: boolean): SkPath;\n\n /**\n * Turns this path into the filled equivalent of the stroked path. Returns false if the operation\n * fails (e.g. the path is a hairline).\n * @param opts - describe how stroked path should look.\n * If such a transformation cannot be done, null is returned.\n */\n stroke(opts?: StrokeOpts): null | SkPath;\n\n /**\n * Appends CLOSE_VERB to Path. A closed contour connects the first and last point\n * with a line, forming a continuous loop.\n */\n close(): SkPath;\n\n /**\n * Sets Path to its initial state.\n * Removes verb array, point array, and weights, and sets FillType to Winding.\n * Internal storage associated with Path is released\n */\n reset(): SkPath;\n\n /**\n * Sets Path to its initial state.\n * Removes verb array, point array, and weights, and sets FillType to Winding.\n * Internal storage associated with Path is *not* released.\n * Use rewind() instead of reset() if Path storage will be reused and performance\n * is critical.\n */\n rewind(): SkPath;\n\n /**\n * Returns minimum and maximum axes values of the lines and curves in Path.\n * Returns (0, 0, 0, 0) if Path contains no points.\n * Returned bounds width and height may be larger or smaller than area affected\n * when Path is drawn.\n *\n * Behaves identically to getBounds() when Path contains\n * only lines. If Path contains curves, computed bounds includes\n * the maximum extent of the quad, conic, or cubic; is slower than getBounds();\n * and unlike getBounds(), does not cache the result.\n */\n computeTightBounds(): SkRect;\n\n /**\n * Appends arc to Path. Arc added is part of ellipse\n * bounded by oval, from startAngle through sweepAngle. Both startAngle and\n * sweepAngle are measured in degrees, where zero degrees is aligned with the\n * positive x-axis, and positive sweeps extends arc clockwise.\n * Returns the modified path for easier chaining.\n * @param oval\n * @param startAngleInDegrees\n * @param sweepAngleInDegrees\n * @param forceMoveTo\n */\n arcToOval(\n oval: SkRect,\n startAngleInDegrees: number,\n sweepAngleInDegrees: number,\n forceMoveTo: boolean\n ): SkPath;\n\n /**\n * Appends arc to Path. Arc is implemented by one or more conics weighted to\n * describe part of oval with radii (rx, ry) rotated by xAxisRotate degrees. Arc\n * curves from last Path Point to (x, y), choosing one of four possible routes:\n * clockwise or counterclockwise, and smaller or larger. See SkPath.h for more details.\n * Returns the modified path for easier chaining.\n * @param rx\n * @param ry\n * @param xAxisRotate\n * @param useSmallArc\n * @param isCCW\n * @param x\n * @param y\n */\n arcToRotated(\n rx: number,\n ry: number,\n xAxisRotateInDegrees: number,\n useSmallArc: boolean,\n isCCW: boolean,\n x: number,\n y: number\n ): SkPath;\n\n /**\n * Appends arc to Path, after appending line if needed. Arc is implemented by conic\n * weighted to describe part of circle. Arc is contained by tangent from\n * last Path point to (x1, y1), and tangent from (x1, y1) to (x2, y2). Arc\n * is part of circle sized to radius, positioned so it touches both tangent lines.\n * Returns the modified path for easier chaining.\n * @param x1\n * @param y1\n * @param x2\n * @param y2\n * @param radius\n */\n arcToTangent(\n x1: number,\n y1: number,\n x2: number,\n y2: number,\n radius: number\n ): SkPath;\n\n /**\n * Adds conic from last point towards (x1, y1), to (x2, y2), weighted by w.\n * If Path is empty, or path is closed, the last point is set to (0, 0)\n * before adding conic.\n * Returns the modified path for easier chaining.\n * @param x1\n * @param y1\n * @param x2\n * @param y2\n * @param w\n */\n conicTo(x1: number, y1: number, x2: number, y2: number, w: number): SkPath;\n\n /**\n * Returns true if the point (x, y) is contained by Path, taking into\n * account FillType.\n * @param x\n * @param y\n */\n contains(x: number, y: number): boolean;\n\n /**\n * Returns a copy of this Path.\n */\n copy(): SkPath;\n\n /**\n * Adds cubic from last point towards (x1, y1), then towards (x2, y2), ending at\n * (x3, y3). If Path is empty, or path is closed, the last point is set to\n * (0, 0) before adding cubic.\n * @param cpx1\n * @param cpy1\n * @param cpx2\n * @param cpy2\n * @param x\n * @param y\n */\n cubicTo(\n cpx1: number,\n cpy1: number,\n cpx2: number,\n cpy2: number,\n x: number,\n y: number\n ): SkPath;\n\n /**\n * Changes this path to be the dashed version of itself. This is the same effect as creating\n * a DashPathEffect and calling filterPath on this path.\n * @param on\n * @param off\n * @param phase\n */\n dash(on: number, off: number, phase: number): boolean;\n\n /**\n * Returns true if other path is equal to this path.\n * @param other\n */\n equals(other: SkPath): boolean;\n\n /**\n * Returns minimum and maximum axes values of Point array.\n * Returns (0, 0, 0, 0) if Path contains no points. Returned bounds width and height may\n * be larger or smaller than area affected when Path is drawn.\n */\n getBounds(): SkRect;\n\n /**\n * Return the FillType for this path.\n */\n getFillType(): FillType;\n\n /**\n Adds quad from last point towards (x1, y1), to (x2, y2).\n\n If SkPath is empty, or last SkPath::Verb is kClose_Verb, last point is set to (0, 0) before adding quad.\n\n Appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed; then appends kQuad_Verb to verb array;\n and (x1, y1), (x2, y2) to SkPoint array.\n\n Parameters\n x1\tcontrol SkPoint of quad on x-axis\n y1\tcontrol SkPoint of quad on y-axis\n x2\tend SkPoint of quad on x-axis\n y2\tend SkPoint of quad on y-axis\n Returns\n reference to SkPath\n example: https://fiddle.skia.org/c/@Path_quadTo\n */\n quadTo(x1: number, y1: number, x2: number, y2: number): SkPath;\n\n /**\n * Adds Rect to Path, appending kMove_Verb, three kLine_Verb, and kClose_Verb,\n * starting with top-left corner of Rect; followed by top-right, bottom-right,\n * and bottom-left if isCCW is false; or followed by bottom-left,\n * bottom-right, and top-right if isCCW is true.\n * Returns the modified path for easier chaining.\n * @param rect\n * @param isCCW\n */\n addRect(rect: SkRect, isCCW?: boolean): SkPath;\n\n /**\n * Adds rrect to Path, creating a new closed contour.\n * Returns the modified path for easier chaining.\n * @param rrect\n * @param isCCW\n */\n addRRect(rrect: InputRRect, isCCW?: boolean): SkPath;\n\n /** Appends src to SkPath, transformed by matrix. Transformed curves may have\n different verbs, SkPoint, and conic weights.\n\n If mode is kAppend_AddPathMode, src verb array, SkPoint array, and conic\n weights are added unaltered. If mode is kExtend_AddPathMode, add line\n before appending verbs, SkPoint, and conic weights.\n\n @param src SkPath verbs, SkPoint, and conic weights to add\n @param matrix transform applied to src\n @param extend extends path with line if true\n @return reference to SkPath\n */\n addPath(src: SkPath, matrix?: SkMatrix, extend?: boolean): SkPath;\n\n /**\n * Returns the Point at index in Point array. Valid range for index is\n * 0 to countPoints() - 1.\n * @param index\n */\n getPoint(index: number): SkPoint;\n\n /**\n * Returns true if there are no verbs in the path.\n */\n isEmpty(): boolean;\n\n /**\n * Returns true if the path is volatile; it will not be altered or discarded\n * by the caller after it is drawn. Path by default have volatile set false, allowing\n * Surface to attach a cache of data which speeds repeated drawing. If true, Surface\n * may not speed repeated drawing.\n */\n isVolatile(): boolean;\n\n /** Adds circle centered at (x, y) of size radius to SkPath, appending kMove_Verb,\n four kConic_Verb, and kClose_Verb. Circle begins at: (x + radius, y), continuing\n clockwise if dir is kCW_Direction, and counterclockwise if dir is kCCW_Direction.\n\n Has no effect if radius is zero or negative.\n\n @param x center of circle\n @param y center of circle\n @param radius distance from center to edge \n @return reference to SkPath\n */\n addCircle(x: number, y: number, r: number): SkPath;\n\n getLastPt(): { x: number; y: number };\n\n /** Set this path to the result of applying the Op to this path and the\n specified path: this = (this op operand).\n The resulting path will be constructed from non-overlapping contours.\n The curve order is reduced where possible so that cubics may be turned\n into quadratics, and quadratics maybe turned into lines.\n\n Returns true if operation was able to produce a result;\n otherwise, result is unmodified.\n\n @param path The second path (for difference, the subtrahend)\n @param op The operator to apply.\n @param result The product of the operands. The result may be one of the\n inputs.\n @return True if the operation succeeded.\n */\n op(path: SkPath, op: PathOp): boolean;\n\n /** Set this path to a set of non-overlapping contours that describe the\n same area as the original path.\n The curve order is reduced where possible so that cubics may\n be turned into quadratics, and quadratics maybe turned into lines.\n\n Returns true if operation was able to produce a result;\n otherwise, result is unmodified.\n\n @param result The simplified path. The result may be the input.\n @return True if simplification succeeded.\n */\n simplify(): boolean;\n\n /**\n * Returns this path as an SVG string.\n */\n toSVGString(): string;\n\n /**\n * Take start and stop \"t\" values (values between 0...1), and modify this path such that\n * it is a subset of the original path.\n * The trim values apply to the entire path, so if it contains several contours, all of them\n * are including in the calculation.\n * Null is returned if either input value is NaN.\n * @param startT - a value in the range [0.0, 1.0]. 0.0 is the beginning of the path.\n * @param stopT - a value in the range [0.0, 1.0]. 1.0 is the end of the path.\n * @param isComplement\n */\n trim(startT: number, stopT: number, isComplement: boolean): null | SkPath;\n\n /**\n * Transforms the path by the specified matrix.\n */\n transform(m3: InputMatrix): SkPath;\n\n /**\n * Interpolates between Path with point array of equal size.\n * Copy verb array and weights to result, and set result path to a weighted\n * average of this path array and ending path.\n\n * weight is most useful when between zero (ending path) and\n one (this path); will work with values outside of this\n range.\n\n * interpolate() returns undefined if path is not\n * the same size as ending path. Call isInterpolatable() to check Path\n * compatibility prior to calling interpolate().\n\n * @param ending path to interpolate with\n * @param weight contribution of this path, and\n * one minus contribution of ending path\n * @param output path to be replaced with the interpolated averages\n * @return Path replaced by interpolated averages or null if \n * not interpolatable\n * */\n interpolate(end: SkPath, weight: number, output?: SkPath): SkPath | null;\n\n /** Returns true if Path contain equal verbs and equal weights.\n * @param compare path to compare\n * @return true if Path can be interpolated equivalent\n *\n * */\n isInterpolatable(compare: SkPath): boolean;\n\n /**\n * Serializes the contents of this path as a series of commands.\n */\n toCmds(): PathCommand[];\n}\n"],"mappings":"AAOA;AACA;AACA;;AAcA,WAAYA,QAAQ,0BAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AAOpB,WAAYC,MAAM,0BAANA,MAAM;EAANA,MAAM,CAANA,MAAM;EAANA,MAAM,CAANA,MAAM;EAANA,MAAM,CAANA,MAAM;EAANA,MAAM,CAANA,MAAM;EAANA,MAAM,CAANA,MAAM;EAAA,OAANA,MAAM;AAAA;AAQlB,WAAYC,QAAQ,0BAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AAWpB,OAAO,MAAMC,MAAM,GAAIC,GAAiC,IACtDA,GAAG,KAAK,IAAI,IAAIA,GAAG,CAACC,YAAY,KAAK,MAAM"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Path\";\nexport * from \"./PathFactory\";\n"],"mappings":"AAAA,cAAc,QAAd;AACA,cAAc,eAAd"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Path\";\nexport * from \"./PathFactory\";\n"],"mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,eAAe"}
@@ -1,9 +1,8 @@
1
1
  export const isPathEffect = obj => obj !== null && obj.__typename__ === "PathEffect";
2
- export let Path1DEffectStyle;
3
-
4
- (function (Path1DEffectStyle) {
2
+ export let Path1DEffectStyle = /*#__PURE__*/function (Path1DEffectStyle) {
5
3
  Path1DEffectStyle[Path1DEffectStyle["Translate"] = 0] = "Translate";
6
4
  Path1DEffectStyle[Path1DEffectStyle["Rotate"] = 1] = "Rotate";
7
5
  Path1DEffectStyle[Path1DEffectStyle["Morph"] = 2] = "Morph";
8
- })(Path1DEffectStyle || (Path1DEffectStyle = {}));
6
+ return Path1DEffectStyle;
7
+ }({});
9
8
  //# sourceMappingURL=PathEffect.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["isPathEffect","obj","__typename__","Path1DEffectStyle"],"sources":["PathEffect.ts"],"sourcesContent":["import type { SkJSIInstance } from \"./JsiInstance\";\nimport type { SkPath } from \"./Path/Path\";\nimport type { SkMatrix } from \"./Matrix\";\n\nexport type SkPathEffect = SkJSIInstance<\"PathEffect\">;\n\nexport const isPathEffect = (\n obj: SkJSIInstance<string> | null\n): obj is SkPathEffect => obj !== null && obj.__typename__ === \"PathEffect\";\n\nexport enum Path1DEffectStyle {\n Translate,\n Rotate,\n Morph,\n}\n\nexport interface PathEffectFactory {\n /**\n * Returns a PathEffect that can turn sharp corners into rounded corners.\n * @param radius - if <=0, returns null\n */\n MakeCorner(radius: number): SkPathEffect | null;\n\n /**\n * Returns a PathEffect that add dashes to the path.\n *\n * See SkDashPathEffect.h for more details.\n *\n * @param intervals - even number of entries with even indicies specifying the length of\n * the \"on\" intervals, and the odd indices specifying the length of \"off\".\n * @param phase - offset length into the intervals array. Defaults to 0.\n */\n MakeDash(intervals: number[], phase?: number): SkPathEffect;\n\n /**\n * Returns a PathEffect that breaks path into segments of segLength length, and randomly move\n * the endpoints away from the original path by a maximum of deviation.\n * @param segLength - length of the subsegments.\n * @param dev - limit of the movement of the endpoints.\n * @param seedAssist - modifies the randomness. See SkDiscretePathEffect.h for more.\n */\n MakeDiscrete(\n segLength: number,\n dev: number,\n seedAssist: number\n ): SkPathEffect;\n\n /**\n *\n * A pathEffect whose effect is to apply first the inner pathEffect and the the\n * outer pathEffect (i.e. outer(inner(path))).\n *\n */\n MakeCompose(outer: SkPathEffect, inner: SkPathEffect): SkPathEffect;\n\n /**\n *\n * A pathEffect pathEffect whose effect is to apply two effects,\n * in sequence (i.e. first(path) + second(path)).\n *\n */\n MakeSum(outer: SkPathEffect, inner: SkPathEffect): SkPathEffect;\n\n /**\n * Returns a PathEffect that will fill the drawing path with a pattern made by applying\n * the given matrix to a repeating set of infinitely long lines of the given width.\n * For example, the scale of the provided matrix will determine how far apart the lines\n * should be drawn its rotation affects the lines' orientation.\n * @param width - must be >= 0\n * @param matrix\n */\n MakeLine2D(width: number, matrix: SkMatrix): SkPathEffect | null;\n\n /**\n * Returns a PathEffect which implements dashing by replicating the specified path.\n * @param path The path to replicate (dash)\n * @param advance The space between instances of path\n * @param phase distance (mod advance) along path for its initial position\n * @param style how to transform path at each point (based on the current\n * position and tangent)\n */\n MakePath1D(\n path: SkPath,\n advance: number,\n phase: number,\n style: Path1DEffectStyle\n ): SkPathEffect | null;\n\n /**\n * Returns a PathEffect that will fill the drawing path with a pattern by repeating the\n * given path according to the provided matrix. For example, the scale of the matrix\n * determines how far apart the path instances should be drawn.\n * @param matrix\n * @param path\n */\n MakePath2D(matrix: SkMatrix, path: SkPath): SkPathEffect | null;\n}\n"],"mappings":"AAMA,OAAO,MAAMA,YAAY,GACvBC,GAD0B,IAEFA,GAAG,KAAK,IAAR,IAAgBA,GAAG,CAACC,YAAJ,KAAqB,YAFxD;AAIP,WAAYC,iBAAZ;;WAAYA,iB;EAAAA,iB,CAAAA,iB;EAAAA,iB,CAAAA,iB;EAAAA,iB,CAAAA,iB;GAAAA,iB,KAAAA,iB"}
1
+ {"version":3,"names":["isPathEffect","obj","__typename__","Path1DEffectStyle"],"sources":["PathEffect.ts"],"sourcesContent":["import type { SkJSIInstance } from \"./JsiInstance\";\nimport type { SkPath } from \"./Path/Path\";\nimport type { SkMatrix } from \"./Matrix\";\n\nexport type SkPathEffect = SkJSIInstance<\"PathEffect\">;\n\nexport const isPathEffect = (\n obj: SkJSIInstance<string> | null\n): obj is SkPathEffect => obj !== null && obj.__typename__ === \"PathEffect\";\n\nexport enum Path1DEffectStyle {\n Translate,\n Rotate,\n Morph,\n}\n\nexport interface PathEffectFactory {\n /**\n * Returns a PathEffect that can turn sharp corners into rounded corners.\n * @param radius - if <=0, returns null\n */\n MakeCorner(radius: number): SkPathEffect | null;\n\n /**\n * Returns a PathEffect that add dashes to the path.\n *\n * See SkDashPathEffect.h for more details.\n *\n * @param intervals - even number of entries with even indicies specifying the length of\n * the \"on\" intervals, and the odd indices specifying the length of \"off\".\n * @param phase - offset length into the intervals array. Defaults to 0.\n */\n MakeDash(intervals: number[], phase?: number): SkPathEffect;\n\n /**\n * Returns a PathEffect that breaks path into segments of segLength length, and randomly move\n * the endpoints away from the original path by a maximum of deviation.\n * @param segLength - length of the subsegments.\n * @param dev - limit of the movement of the endpoints.\n * @param seedAssist - modifies the randomness. See SkDiscretePathEffect.h for more.\n */\n MakeDiscrete(\n segLength: number,\n dev: number,\n seedAssist: number\n ): SkPathEffect;\n\n /**\n *\n * A pathEffect whose effect is to apply first the inner pathEffect and the the\n * outer pathEffect (i.e. outer(inner(path))).\n *\n */\n MakeCompose(outer: SkPathEffect, inner: SkPathEffect): SkPathEffect;\n\n /**\n *\n * A pathEffect pathEffect whose effect is to apply two effects,\n * in sequence (i.e. first(path) + second(path)).\n *\n */\n MakeSum(outer: SkPathEffect, inner: SkPathEffect): SkPathEffect;\n\n /**\n * Returns a PathEffect that will fill the drawing path with a pattern made by applying\n * the given matrix to a repeating set of infinitely long lines of the given width.\n * For example, the scale of the provided matrix will determine how far apart the lines\n * should be drawn its rotation affects the lines' orientation.\n * @param width - must be >= 0\n * @param matrix\n */\n MakeLine2D(width: number, matrix: SkMatrix): SkPathEffect | null;\n\n /**\n * Returns a PathEffect which implements dashing by replicating the specified path.\n * @param path The path to replicate (dash)\n * @param advance The space between instances of path\n * @param phase distance (mod advance) along path for its initial position\n * @param style how to transform path at each point (based on the current\n * position and tangent)\n */\n MakePath1D(\n path: SkPath,\n advance: number,\n phase: number,\n style: Path1DEffectStyle\n ): SkPathEffect | null;\n\n /**\n * Returns a PathEffect that will fill the drawing path with a pattern by repeating the\n * given path according to the provided matrix. For example, the scale of the matrix\n * determines how far apart the path instances should be drawn.\n * @param matrix\n * @param path\n */\n MakePath2D(matrix: SkMatrix, path: SkPath): SkPathEffect | null;\n}\n"],"mappings":"AAMA,OAAO,MAAMA,YAAY,GACvBC,GAAiC,IACTA,GAAG,KAAK,IAAI,IAAIA,GAAG,CAACC,YAAY,KAAK,YAAY;AAE3E,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Picture\";\nexport * from \"./PictureRecorder\";\nexport * from \"./PictureFactory\";\n"],"mappings":"AAAA,cAAc,WAAd;AACA,cAAc,mBAAd;AACA,cAAc,kBAAd"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Picture\";\nexport * from \"./PictureRecorder\";\nexport * from \"./PictureFactory\";\n"],"mappings":"AAAA,cAAc,WAAW;AACzB,cAAc,mBAAmB;AACjC,cAAc,kBAAkB"}
@@ -1,8 +1,7 @@
1
- export let PointMode;
2
-
3
- (function (PointMode) {
1
+ export let PointMode = /*#__PURE__*/function (PointMode) {
4
2
  PointMode[PointMode["Points"] = 0] = "Points";
5
3
  PointMode[PointMode["Lines"] = 1] = "Lines";
6
4
  PointMode[PointMode["Polygon"] = 2] = "Polygon";
7
- })(PointMode || (PointMode = {}));
5
+ return PointMode;
6
+ }({});
8
7
  //# sourceMappingURL=Point.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["PointMode"],"sources":["Point.ts"],"sourcesContent":["export enum PointMode {\n Points,\n Lines,\n Polygon,\n}\n\nexport interface SkPoint {\n readonly x: number;\n readonly y: number;\n}\n\nexport type Vector = SkPoint;\n"],"mappings":"AAAA,WAAYA,SAAZ;;WAAYA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;EAAAA,S,CAAAA,S;GAAAA,S,KAAAA,S"}
1
+ {"version":3,"names":["PointMode"],"sources":["Point.ts"],"sourcesContent":["export enum PointMode {\n Points,\n Lines,\n Polygon,\n}\n\nexport interface SkPoint {\n readonly x: number;\n readonly y: number;\n}\n\nexport type Vector = SkPoint;\n"],"mappings":"AAAA,WAAYA,SAAS,0BAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAAA,OAATA,SAAS;AAAA"}
@@ -1,4 +1,5 @@
1
1
  // We have an issue to check property existence on JSI backed instances
2
- export const isRRect = def => // eslint-disable-next-line @typescript-eslint/no-explicit-any
2
+ export const isRRect = def =>
3
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3
4
  def.rect !== undefined;
4
5
  //# sourceMappingURL=RRect.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["isRRect","def","rect","undefined"],"sources":["RRect.ts"],"sourcesContent":["import type { SkPoint } from \"./Point\";\nimport type { SkRect } from \"./Rect\";\n\nexport interface SkRRect {\n readonly rect: SkRect;\n readonly rx: number;\n readonly ry: number;\n}\n\nexport interface NonUniformRRect {\n readonly rect: SkRect;\n readonly topLeft: SkPoint;\n readonly topRight: SkPoint;\n readonly bottomRight: SkPoint;\n readonly bottomLeft: SkPoint;\n}\n\nexport type InputRRect = SkRRect | NonUniformRRect;\n\n// We have an issue to check property existence on JSI backed instances\nexport const isRRect = (def: SkRect | SkRRect): def is SkRRect =>\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (def as any).rect !== undefined;\n"],"mappings":"AAmBA;AACA,OAAO,MAAMA,OAAO,GAAIC,GAAD,IACrB;AACCA,GAAD,CAAaC,IAAb,KAAsBC,SAFjB"}
1
+ {"version":3,"names":["isRRect","def","rect","undefined"],"sources":["RRect.ts"],"sourcesContent":["import type { SkPoint } from \"./Point\";\nimport type { SkRect } from \"./Rect\";\n\nexport interface SkRRect {\n readonly rect: SkRect;\n readonly rx: number;\n readonly ry: number;\n}\n\nexport interface NonUniformRRect {\n readonly rect: SkRect;\n readonly topLeft: SkPoint;\n readonly topRight: SkPoint;\n readonly bottomRight: SkPoint;\n readonly bottomLeft: SkPoint;\n}\n\nexport type InputRRect = SkRRect | NonUniformRRect;\n\n// We have an issue to check property existence on JSI backed instances\nexport const isRRect = (def: SkRect | SkRRect): def is SkRRect =>\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (def as any).rect !== undefined;\n"],"mappings":"AAmBA;AACA,OAAO,MAAMA,OAAO,GAAIC,GAAqB;AAC3C;AACCA,GAAG,CAASC,IAAI,KAAKC,SAAS"}