@shopify/react-native-skia 0.1.149 → 0.1.151

Sign up to get free protection for your applications and to get access to all the features.
Files changed (703) hide show
  1. package/lib/commonjs/animation/decay/decay.js.map +1 -1
  2. package/lib/commonjs/animation/decay/index.js.map +1 -1
  3. package/lib/commonjs/animation/decay/runDecay.js.map +1 -1
  4. package/lib/commonjs/animation/decay/types.js.map +1 -1
  5. package/lib/commonjs/animation/functions/index.js.map +1 -1
  6. package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
  7. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  8. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
  9. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
  10. package/lib/commonjs/animation/index.js.map +1 -1
  11. package/lib/commonjs/animation/spring/Spring.js.map +1 -1
  12. package/lib/commonjs/animation/spring/functions/index.js.map +1 -1
  13. package/lib/commonjs/animation/spring/functions/spring.js.map +1 -1
  14. package/lib/commonjs/animation/spring/index.js.map +1 -1
  15. package/lib/commonjs/animation/spring/runSpring.js +1 -1
  16. package/lib/commonjs/animation/spring/runSpring.js.map +1 -1
  17. package/lib/commonjs/animation/spring/types.js.map +1 -1
  18. package/lib/commonjs/animation/spring/useSpring.js +1 -1
  19. package/lib/commonjs/animation/spring/useSpring.js.map +1 -1
  20. package/lib/commonjs/animation/timing/Easing.js.map +1 -1
  21. package/lib/commonjs/animation/timing/createTiming.js +2 -6
  22. package/lib/commonjs/animation/timing/createTiming.js.map +1 -1
  23. package/lib/commonjs/animation/timing/functions/bezier.js.map +1 -1
  24. package/lib/commonjs/animation/timing/functions/getResolvedParams.js +6 -10
  25. package/lib/commonjs/animation/timing/functions/getResolvedParams.js.map +1 -1
  26. package/lib/commonjs/animation/timing/functions/index.js.map +1 -1
  27. package/lib/commonjs/animation/timing/functions/timing.js.map +1 -1
  28. package/lib/commonjs/animation/timing/functions/types.js.map +1 -1
  29. package/lib/commonjs/animation/timing/index.js.map +1 -1
  30. package/lib/commonjs/animation/timing/runTiming.js.map +1 -1
  31. package/lib/commonjs/animation/timing/useLoop.js.map +1 -1
  32. package/lib/commonjs/animation/timing/useTiming.js +1 -3
  33. package/lib/commonjs/animation/timing/useTiming.js.map +1 -1
  34. package/lib/commonjs/animation/types.js.map +1 -1
  35. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
  36. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
  37. package/lib/commonjs/dom/nodes/JsiSkDOM.js +1 -1
  38. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  39. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  40. package/lib/commonjs/dom/nodes/PaintContext.js.map +1 -1
  41. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
  42. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
  43. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
  44. package/lib/commonjs/dom/nodes/datatypes/Color.js.map +1 -1
  45. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
  46. package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
  47. package/lib/commonjs/dom/nodes/datatypes/Gradient.js +2 -2
  48. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
  49. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
  50. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
  51. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
  52. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
  53. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
  54. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  55. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
  56. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
  57. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js.map +1 -1
  58. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  59. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
  60. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
  61. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
  62. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
  63. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
  64. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
  65. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
  66. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
  67. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
  68. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
  69. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
  70. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
  71. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
  72. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  73. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  74. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
  75. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
  76. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
  77. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
  78. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
  79. package/lib/commonjs/dom/nodes/paint/Shaders.js +2 -4
  80. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
  81. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
  82. package/lib/commonjs/dom/types/ColorFilters.js.map +1 -1
  83. package/lib/commonjs/dom/types/Common.js.map +1 -1
  84. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  85. package/lib/commonjs/dom/types/Drawings.js.map +1 -1
  86. package/lib/commonjs/dom/types/ImageFilters.js.map +1 -1
  87. package/lib/commonjs/dom/types/MaskFilters.js.map +1 -1
  88. package/lib/commonjs/dom/types/Node.js.map +1 -1
  89. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  90. package/lib/commonjs/dom/types/PathEffects.js.map +1 -1
  91. package/lib/commonjs/dom/types/Shaders.js.map +1 -1
  92. package/lib/commonjs/dom/types/SkDOM.js.map +1 -1
  93. package/lib/commonjs/dom/types/index.js.map +1 -1
  94. package/lib/commonjs/external/index.js.map +1 -1
  95. package/lib/commonjs/external/reanimated/index.js.map +1 -1
  96. package/lib/commonjs/external/reanimated/useSharedValueEffect.js.map +1 -1
  97. package/lib/commonjs/index.js.map +1 -1
  98. package/lib/commonjs/mock/index.js +7 -10
  99. package/lib/commonjs/mock/index.js.map +1 -1
  100. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  101. package/lib/commonjs/renderer/Container.js.map +1 -1
  102. package/lib/commonjs/renderer/DependencyManager.js.map +1 -1
  103. package/lib/commonjs/renderer/DrawingContext.js.map +1 -1
  104. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  105. package/lib/commonjs/renderer/HostConfig.js +0 -2
  106. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  107. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  108. package/lib/commonjs/renderer/components/Drawing.js.map +1 -1
  109. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  110. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  111. package/lib/commonjs/renderer/components/Paint.js +1 -1
  112. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  113. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  114. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +1 -1
  115. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  116. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  117. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
  118. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  119. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  120. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  121. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  122. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  123. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  124. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
  125. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  126. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  127. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  128. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  129. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  130. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  131. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  132. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  133. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  134. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  135. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
  136. package/lib/commonjs/renderer/components/index.js.map +1 -1
  137. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  138. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
  139. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  140. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  141. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  142. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  143. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  144. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  145. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  146. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
  147. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  148. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  149. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  150. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  151. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  152. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
  153. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  154. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  155. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  156. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
  157. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  158. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  159. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  160. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  161. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  162. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  163. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  164. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  165. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  166. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  167. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  168. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  169. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  170. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
  171. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  172. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  173. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  174. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  175. package/lib/commonjs/renderer/components/text/index.js.map +1 -1
  176. package/lib/commonjs/renderer/index.js.map +1 -1
  177. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  178. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
  179. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  180. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  181. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
  182. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  183. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  184. package/lib/commonjs/renderer/typeddash.js.map +1 -1
  185. package/lib/commonjs/renderer/useCanvas.js.map +1 -1
  186. package/lib/commonjs/renderer/useContextBridge.js.map +1 -1
  187. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  188. package/lib/commonjs/skia/Skia.js.map +1 -1
  189. package/lib/commonjs/skia/Skia.web.js.map +1 -1
  190. package/lib/commonjs/skia/core/Data.js.map +1 -1
  191. package/lib/commonjs/skia/core/Font.js.map +1 -1
  192. package/lib/commonjs/skia/core/Image.js.map +1 -1
  193. package/lib/commonjs/skia/core/Matrix.js.map +1 -1
  194. package/lib/commonjs/skia/core/Picture.js +20 -2
  195. package/lib/commonjs/skia/core/Picture.js.map +1 -1
  196. package/lib/commonjs/skia/core/RRect.js.map +1 -1
  197. package/lib/commonjs/skia/core/Rect.js.map +1 -1
  198. package/lib/commonjs/skia/core/SVG.js.map +1 -1
  199. package/lib/commonjs/skia/core/Typeface.js.map +1 -1
  200. package/lib/commonjs/skia/core/Vector.js +1 -1
  201. package/lib/commonjs/skia/core/Vector.js.map +1 -1
  202. package/lib/commonjs/skia/core/index.js.map +1 -1
  203. package/lib/commonjs/skia/index.js.map +1 -1
  204. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  205. package/lib/commonjs/skia/types/Color.js.map +1 -1
  206. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  207. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -1
  208. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
  209. package/lib/commonjs/skia/types/ContourMeasure.js.map +1 -1
  210. package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
  211. package/lib/commonjs/skia/types/Data/DataFactory.js.map +1 -1
  212. package/lib/commonjs/skia/types/Data/index.js.map +1 -1
  213. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  214. package/lib/commonjs/skia/types/Font/index.js.map +1 -1
  215. package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
  216. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  217. package/lib/commonjs/skia/types/Image/index.js.map +1 -1
  218. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  219. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  220. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
  221. package/lib/commonjs/skia/types/JsiInstance.js.map +1 -1
  222. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
  223. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  224. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
  225. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
  226. package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
  227. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  228. package/lib/commonjs/skia/types/Path/PathFactory.js.map +1 -1
  229. package/lib/commonjs/skia/types/Path/index.js.map +1 -1
  230. package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
  231. package/lib/commonjs/skia/types/Picture/Picture.js.map +1 -1
  232. package/lib/commonjs/skia/types/Picture/PictureFactory.js.map +1 -1
  233. package/lib/commonjs/skia/types/Picture/PictureRecorder.js.map +1 -1
  234. package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
  235. package/lib/commonjs/skia/types/Point.js.map +1 -1
  236. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  237. package/lib/commonjs/skia/types/RSXform.js.map +1 -1
  238. package/lib/commonjs/skia/types/Rect.js.map +1 -1
  239. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
  240. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -1
  241. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
  242. package/lib/commonjs/skia/types/SVG/SVG.js.map +1 -1
  243. package/lib/commonjs/skia/types/SVG/SVGFactory.js.map +1 -1
  244. package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
  245. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  246. package/lib/commonjs/skia/types/Shader/ShaderFactory.js.map +1 -1
  247. package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
  248. package/lib/commonjs/skia/types/Skia.js.map +1 -1
  249. package/lib/commonjs/skia/types/Surface/Surface.js.map +1 -1
  250. package/lib/commonjs/skia/types/Surface/SurfaceFactory.js.map +1 -1
  251. package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
  252. package/lib/commonjs/skia/types/TextBlob.js.map +1 -1
  253. package/lib/commonjs/skia/types/Typeface/Typeface.js.map +1 -1
  254. package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js.map +1 -1
  255. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
  256. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
  257. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
  258. package/lib/commonjs/skia/types/index.js.map +1 -1
  259. package/lib/commonjs/skia/web/Host.js +1 -1
  260. package/lib/commonjs/skia/web/Host.js.map +1 -1
  261. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  262. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
  263. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
  264. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  265. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
  266. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  267. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
  268. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
  269. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  270. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
  271. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  272. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
  273. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  274. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
  275. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  276. package/lib/commonjs/skia/web/JsiSkMatrix.js +1 -1
  277. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  278. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  279. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  280. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
  281. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  282. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
  283. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
  284. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
  285. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
  286. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
  287. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
  288. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
  289. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
  290. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  291. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  292. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
  293. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
  294. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
  295. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
  296. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  297. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
  298. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  299. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
  300. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  301. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
  302. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
  303. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  304. package/lib/commonjs/skia/web/index.js.map +1 -1
  305. package/lib/commonjs/values/api.js.map +1 -1
  306. package/lib/commonjs/values/api.web.js.map +1 -1
  307. package/lib/commonjs/values/hooks/index.js.map +1 -1
  308. package/lib/commonjs/values/hooks/useClockValue.js.map +1 -1
  309. package/lib/commonjs/values/hooks/useComputedValue.js.map +1 -1
  310. package/lib/commonjs/values/hooks/useValue.js.map +1 -1
  311. package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -1
  312. package/lib/commonjs/values/index.js.map +1 -1
  313. package/lib/commonjs/values/selector.js.map +1 -1
  314. package/lib/commonjs/values/types.js.map +1 -1
  315. package/lib/commonjs/values/web/RNSkAnimation.js +2 -2
  316. package/lib/commonjs/values/web/RNSkAnimation.js.map +1 -1
  317. package/lib/commonjs/values/web/RNSkClockValue.js.map +1 -1
  318. package/lib/commonjs/values/web/RNSkComputedValue.js +1 -1
  319. package/lib/commonjs/values/web/RNSkComputedValue.js.map +1 -1
  320. package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +1 -1
  321. package/lib/commonjs/values/web/RNSkValue.js.map +1 -1
  322. package/lib/commonjs/values/web/api.js.map +1 -1
  323. package/lib/commonjs/values/web/index.js.map +1 -1
  324. package/lib/commonjs/views/SkiaView.js +1 -1
  325. package/lib/commonjs/views/SkiaView.js.map +1 -1
  326. package/lib/commonjs/views/SkiaView.web.js +2 -4
  327. package/lib/commonjs/views/SkiaView.web.js.map +1 -1
  328. package/lib/commonjs/views/api.js.map +1 -1
  329. package/lib/commonjs/views/index.js.map +1 -1
  330. package/lib/commonjs/views/types.js.map +1 -1
  331. package/lib/commonjs/views/useDrawCallback.js.map +1 -1
  332. package/lib/commonjs/views/useTouchHandler.js +6 -6
  333. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  334. package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
  335. package/lib/commonjs/web/WithSkiaWeb.js +1 -1
  336. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  337. package/lib/commonjs/web/index.js.map +1 -1
  338. package/lib/module/animation/decay/decay.js.map +1 -1
  339. package/lib/module/animation/decay/index.js.map +1 -1
  340. package/lib/module/animation/decay/runDecay.js.map +1 -1
  341. package/lib/module/animation/decay/types.js.map +1 -1
  342. package/lib/module/animation/functions/index.js.map +1 -1
  343. package/lib/module/animation/functions/interpolate.js.map +1 -1
  344. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  345. package/lib/module/animation/functions/interpolatePaths.js.map +1 -1
  346. package/lib/module/animation/functions/interpolateVector.js.map +1 -1
  347. package/lib/module/animation/index.js.map +1 -1
  348. package/lib/module/animation/spring/Spring.js.map +1 -1
  349. package/lib/module/animation/spring/functions/index.js.map +1 -1
  350. package/lib/module/animation/spring/functions/spring.js.map +1 -1
  351. package/lib/module/animation/spring/index.js.map +1 -1
  352. package/lib/module/animation/spring/runSpring.js +1 -1
  353. package/lib/module/animation/spring/runSpring.js.map +1 -1
  354. package/lib/module/animation/spring/types.js.map +1 -1
  355. package/lib/module/animation/spring/useSpring.js +1 -1
  356. package/lib/module/animation/spring/useSpring.js.map +1 -1
  357. package/lib/module/animation/timing/Easing.js.map +1 -1
  358. package/lib/module/animation/timing/createTiming.js +2 -6
  359. package/lib/module/animation/timing/createTiming.js.map +1 -1
  360. package/lib/module/animation/timing/functions/bezier.js.map +1 -1
  361. package/lib/module/animation/timing/functions/getResolvedParams.js +6 -10
  362. package/lib/module/animation/timing/functions/getResolvedParams.js.map +1 -1
  363. package/lib/module/animation/timing/functions/index.js.map +1 -1
  364. package/lib/module/animation/timing/functions/timing.js.map +1 -1
  365. package/lib/module/animation/timing/functions/types.js.map +1 -1
  366. package/lib/module/animation/timing/index.js.map +1 -1
  367. package/lib/module/animation/timing/runTiming.js.map +1 -1
  368. package/lib/module/animation/timing/useLoop.js.map +1 -1
  369. package/lib/module/animation/timing/useTiming.js +1 -3
  370. package/lib/module/animation/timing/useTiming.js.map +1 -1
  371. package/lib/module/animation/types.js.map +1 -1
  372. package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
  373. package/lib/module/dom/nodes/GroupNode.js.map +1 -1
  374. package/lib/module/dom/nodes/JsiSkDOM.js +1 -1
  375. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  376. package/lib/module/dom/nodes/Node.js.map +1 -1
  377. package/lib/module/dom/nodes/PaintContext.js.map +1 -1
  378. package/lib/module/dom/nodes/PaintNode.js.map +1 -1
  379. package/lib/module/dom/nodes/RenderNode.js.map +1 -1
  380. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  381. package/lib/module/dom/nodes/datatypes/Color.js.map +1 -1
  382. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -1
  383. package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -1
  384. package/lib/module/dom/nodes/datatypes/Gradient.js +2 -2
  385. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
  386. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
  387. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
  388. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  389. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -1
  390. package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
  391. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  392. package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
  393. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
  394. package/lib/module/dom/nodes/drawings/CustomDrawingNode.js.map +1 -1
  395. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  396. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
  397. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
  398. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
  399. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
  400. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
  401. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
  402. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
  403. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
  404. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
  405. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
  406. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
  407. package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
  408. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
  409. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  410. package/lib/module/dom/nodes/index.js.map +1 -1
  411. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -1
  412. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
  413. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
  414. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
  415. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
  416. package/lib/module/dom/nodes/paint/Shaders.js +2 -4
  417. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
  418. package/lib/module/dom/nodes/paint/index.js.map +1 -1
  419. package/lib/module/dom/types/ColorFilters.js.map +1 -1
  420. package/lib/module/dom/types/Common.js.map +1 -1
  421. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  422. package/lib/module/dom/types/Drawings.js.map +1 -1
  423. package/lib/module/dom/types/ImageFilters.js.map +1 -1
  424. package/lib/module/dom/types/MaskFilters.js.map +1 -1
  425. package/lib/module/dom/types/Node.js.map +1 -1
  426. package/lib/module/dom/types/NodeType.js.map +1 -1
  427. package/lib/module/dom/types/PathEffects.js.map +1 -1
  428. package/lib/module/dom/types/Shaders.js.map +1 -1
  429. package/lib/module/dom/types/SkDOM.js.map +1 -1
  430. package/lib/module/dom/types/index.js.map +1 -1
  431. package/lib/module/external/index.js.map +1 -1
  432. package/lib/module/external/reanimated/index.js.map +1 -1
  433. package/lib/module/external/reanimated/useSharedValueEffect.js.map +1 -1
  434. package/lib/module/index.js.map +1 -1
  435. package/lib/module/mock/index.js +7 -10
  436. package/lib/module/mock/index.js.map +1 -1
  437. package/lib/module/renderer/Canvas.js.map +1 -1
  438. package/lib/module/renderer/Container.js.map +1 -1
  439. package/lib/module/renderer/DependencyManager.js.map +1 -1
  440. package/lib/module/renderer/DrawingContext.js.map +1 -1
  441. package/lib/module/renderer/HostComponents.js.map +1 -1
  442. package/lib/module/renderer/HostConfig.js +0 -2
  443. package/lib/module/renderer/HostConfig.js.map +1 -1
  444. package/lib/module/renderer/components/Blend.js.map +1 -1
  445. package/lib/module/renderer/components/Drawing.js.map +1 -1
  446. package/lib/module/renderer/components/Group.js.map +1 -1
  447. package/lib/module/renderer/components/Mask.js.map +1 -1
  448. package/lib/module/renderer/components/Paint.js +1 -1
  449. package/lib/module/renderer/components/Paint.js.map +1 -1
  450. package/lib/module/renderer/components/Picture.js.map +1 -1
  451. package/lib/module/renderer/components/backdrop/BackdropBlur.js +1 -1
  452. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  453. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  454. package/lib/module/renderer/components/backdrop/index.js.map +1 -1
  455. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  456. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  457. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  458. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  459. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  460. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  461. package/lib/module/renderer/components/colorFilters/index.js.map +1 -1
  462. package/lib/module/renderer/components/image/Image.js.map +1 -1
  463. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  464. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  465. package/lib/module/renderer/components/image/index.js.map +1 -1
  466. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  467. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  468. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  469. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  470. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  471. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  472. package/lib/module/renderer/components/imageFilters/index.js.map +1 -1
  473. package/lib/module/renderer/components/index.js.map +1 -1
  474. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  475. package/lib/module/renderer/components/maskFilters/index.js.map +1 -1
  476. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  477. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  478. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  479. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  480. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  481. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  482. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  483. package/lib/module/renderer/components/pathEffects/index.js.map +1 -1
  484. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  485. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  486. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  487. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  488. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  489. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -1
  490. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  491. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  492. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  493. package/lib/module/renderer/components/shaders/index.js.map +1 -1
  494. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  495. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  496. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  497. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  498. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  499. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  500. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  501. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  502. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  503. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  504. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  505. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  506. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  507. package/lib/module/renderer/components/shapes/index.js.map +1 -1
  508. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  509. package/lib/module/renderer/components/text/Text.js.map +1 -1
  510. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  511. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  512. package/lib/module/renderer/components/text/index.js.map +1 -1
  513. package/lib/module/renderer/index.js.map +1 -1
  514. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  515. package/lib/module/renderer/processors/Animations/index.js.map +1 -1
  516. package/lib/module/renderer/processors/index.js.map +1 -1
  517. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  518. package/lib/module/renderer/processors/math/Math.js.map +1 -1
  519. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  520. package/lib/module/renderer/processors/math/index.js.map +1 -1
  521. package/lib/module/renderer/typeddash.js.map +1 -1
  522. package/lib/module/renderer/useCanvas.js.map +1 -1
  523. package/lib/module/renderer/useContextBridge.js.map +1 -1
  524. package/lib/module/skia/NativeSetup.js.map +1 -1
  525. package/lib/module/skia/Skia.js.map +1 -1
  526. package/lib/module/skia/Skia.web.js.map +1 -1
  527. package/lib/module/skia/core/Data.js.map +1 -1
  528. package/lib/module/skia/core/Font.js.map +1 -1
  529. package/lib/module/skia/core/Image.js.map +1 -1
  530. package/lib/module/skia/core/Matrix.js.map +1 -1
  531. package/lib/module/skia/core/Picture.js +15 -1
  532. package/lib/module/skia/core/Picture.js.map +1 -1
  533. package/lib/module/skia/core/RRect.js.map +1 -1
  534. package/lib/module/skia/core/Rect.js.map +1 -1
  535. package/lib/module/skia/core/SVG.js.map +1 -1
  536. package/lib/module/skia/core/Typeface.js.map +1 -1
  537. package/lib/module/skia/core/Vector.js +1 -1
  538. package/lib/module/skia/core/Vector.js.map +1 -1
  539. package/lib/module/skia/core/index.js.map +1 -1
  540. package/lib/module/skia/index.js.map +1 -1
  541. package/lib/module/skia/types/Canvas.js.map +1 -1
  542. package/lib/module/skia/types/Color.js.map +1 -1
  543. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  544. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -1
  545. package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
  546. package/lib/module/skia/types/ContourMeasure.js.map +1 -1
  547. package/lib/module/skia/types/Data/Data.js.map +1 -1
  548. package/lib/module/skia/types/Data/DataFactory.js.map +1 -1
  549. package/lib/module/skia/types/Data/index.js.map +1 -1
  550. package/lib/module/skia/types/Font/Font.js.map +1 -1
  551. package/lib/module/skia/types/Font/index.js.map +1 -1
  552. package/lib/module/skia/types/Image/Image.js.map +1 -1
  553. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  554. package/lib/module/skia/types/Image/index.js.map +1 -1
  555. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  556. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  557. package/lib/module/skia/types/ImageFilter/index.js.map +1 -1
  558. package/lib/module/skia/types/JsiInstance.js.map +1 -1
  559. package/lib/module/skia/types/MaskFilter.js.map +1 -1
  560. package/lib/module/skia/types/Matrix.js.map +1 -1
  561. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
  562. package/lib/module/skia/types/Paint/Paint.js.map +1 -1
  563. package/lib/module/skia/types/Paint/index.js.map +1 -1
  564. package/lib/module/skia/types/Path/Path.js.map +1 -1
  565. package/lib/module/skia/types/Path/PathFactory.js.map +1 -1
  566. package/lib/module/skia/types/Path/index.js.map +1 -1
  567. package/lib/module/skia/types/PathEffect.js.map +1 -1
  568. package/lib/module/skia/types/Picture/Picture.js.map +1 -1
  569. package/lib/module/skia/types/Picture/PictureFactory.js.map +1 -1
  570. package/lib/module/skia/types/Picture/PictureRecorder.js.map +1 -1
  571. package/lib/module/skia/types/Picture/index.js.map +1 -1
  572. package/lib/module/skia/types/Point.js.map +1 -1
  573. package/lib/module/skia/types/RRect.js.map +1 -1
  574. package/lib/module/skia/types/RSXform.js.map +1 -1
  575. package/lib/module/skia/types/Rect.js.map +1 -1
  576. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
  577. package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -1
  578. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
  579. package/lib/module/skia/types/SVG/SVG.js.map +1 -1
  580. package/lib/module/skia/types/SVG/SVGFactory.js.map +1 -1
  581. package/lib/module/skia/types/SVG/index.js.map +1 -1
  582. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  583. package/lib/module/skia/types/Shader/ShaderFactory.js.map +1 -1
  584. package/lib/module/skia/types/Shader/index.js.map +1 -1
  585. package/lib/module/skia/types/Skia.js.map +1 -1
  586. package/lib/module/skia/types/Surface/Surface.js.map +1 -1
  587. package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -1
  588. package/lib/module/skia/types/Surface/index.js.map +1 -1
  589. package/lib/module/skia/types/TextBlob.js.map +1 -1
  590. package/lib/module/skia/types/Typeface/Typeface.js.map +1 -1
  591. package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -1
  592. package/lib/module/skia/types/Typeface/index.js.map +1 -1
  593. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -1
  594. package/lib/module/skia/types/Vertices/index.js.map +1 -1
  595. package/lib/module/skia/types/index.js.map +1 -1
  596. package/lib/module/skia/web/Host.js +1 -1
  597. package/lib/module/skia/web/Host.js.map +1 -1
  598. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  599. package/lib/module/skia/web/JsiSkColor.js.map +1 -1
  600. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  601. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  602. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  603. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  604. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  605. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
  606. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  607. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  608. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  609. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  610. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  611. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  612. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  613. package/lib/module/skia/web/JsiSkMatrix.js +1 -1
  614. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  615. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  616. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  617. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  618. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  619. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
  620. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  621. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
  622. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  623. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  624. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  625. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  626. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  627. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  628. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  629. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
  630. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  631. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
  632. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  633. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  634. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  635. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  636. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  637. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  638. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  639. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
  640. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  641. package/lib/module/skia/web/index.js.map +1 -1
  642. package/lib/module/values/api.js.map +1 -1
  643. package/lib/module/values/api.web.js.map +1 -1
  644. package/lib/module/values/hooks/index.js.map +1 -1
  645. package/lib/module/values/hooks/useClockValue.js.map +1 -1
  646. package/lib/module/values/hooks/useComputedValue.js.map +1 -1
  647. package/lib/module/values/hooks/useValue.js.map +1 -1
  648. package/lib/module/values/hooks/useValueEffect.js.map +1 -1
  649. package/lib/module/values/index.js.map +1 -1
  650. package/lib/module/values/selector.js.map +1 -1
  651. package/lib/module/values/types.js.map +1 -1
  652. package/lib/module/values/web/RNSkAnimation.js +2 -2
  653. package/lib/module/values/web/RNSkAnimation.js.map +1 -1
  654. package/lib/module/values/web/RNSkClockValue.js.map +1 -1
  655. package/lib/module/values/web/RNSkComputedValue.js +1 -1
  656. package/lib/module/values/web/RNSkComputedValue.js.map +1 -1
  657. package/lib/module/values/web/RNSkReadonlyValue.js.map +1 -1
  658. package/lib/module/values/web/RNSkValue.js.map +1 -1
  659. package/lib/module/values/web/api.js.map +1 -1
  660. package/lib/module/values/web/index.js.map +1 -1
  661. package/lib/module/views/SkiaView.js +1 -1
  662. package/lib/module/views/SkiaView.js.map +1 -1
  663. package/lib/module/views/SkiaView.web.js +2 -4
  664. package/lib/module/views/SkiaView.web.js.map +1 -1
  665. package/lib/module/views/api.js.map +1 -1
  666. package/lib/module/views/index.js.map +1 -1
  667. package/lib/module/views/types.js.map +1 -1
  668. package/lib/module/views/useDrawCallback.js.map +1 -1
  669. package/lib/module/views/useTouchHandler.js +6 -6
  670. package/lib/module/views/useTouchHandler.js.map +1 -1
  671. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  672. package/lib/module/web/WithSkiaWeb.js +1 -1
  673. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  674. package/lib/module/web/index.js.map +1 -1
  675. package/lib/typescript/src/animation/decay/runDecay.d.ts +1 -1
  676. package/lib/typescript/src/animation/spring/runSpring.d.ts +1 -1
  677. package/lib/typescript/src/animation/spring/useSpring.d.ts +1 -1
  678. package/lib/typescript/src/animation/timing/createTiming.d.ts +1 -1
  679. package/lib/typescript/src/animation/timing/functions/getResolvedParams.d.ts +1 -1
  680. package/lib/typescript/src/animation/timing/runTiming.d.ts +1 -1
  681. package/lib/typescript/src/animation/timing/useLoop.d.ts +1 -1
  682. package/lib/typescript/src/animation/timing/useTiming.d.ts +1 -1
  683. package/lib/typescript/src/mock/index.d.ts +1 -1
  684. package/lib/typescript/src/renderer/Canvas.d.ts +1 -1
  685. package/lib/typescript/src/renderer/HostConfig.d.ts +1 -1
  686. package/lib/typescript/src/renderer/components/Paint.d.ts +1 -1
  687. package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +1 -1
  688. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +4 -4
  689. package/lib/typescript/src/renderer/typeddash.d.ts +2 -2
  690. package/lib/typescript/src/skia/core/Font.d.ts +1 -1
  691. package/lib/typescript/src/skia/core/Picture.d.ts +9 -2
  692. package/lib/typescript/src/skia/core/Vector.d.ts +2 -2
  693. package/lib/typescript/src/skia/types/Shader/Shader.d.ts +1 -1
  694. package/lib/typescript/src/skia/web/JsiSkVerticesFactory.d.ts +2 -2
  695. package/lib/typescript/src/web/LoadSkiaWeb.d.ts +2 -2
  696. package/package.json +6 -6
  697. package/src/mock/index.ts +1 -0
  698. package/src/renderer/HostConfig.ts +3 -4
  699. package/src/renderer/components/backdrop/BackdropFilter.tsx +1 -1
  700. package/src/renderer/processors/Animations/Animations.ts +11 -4
  701. package/src/renderer/typeddash.ts +3 -2
  702. package/src/skia/core/Picture.ts +17 -3
  703. package/src/values/web/RNSkComputedValue.ts +6 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["ShaderLib.ts"],"names":["MATH","COLORS","ShaderLib","Math","Colors"],"mappings":"AAAA,MAAMA,IAAI,GAAI;AACd;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;AACA;AACA;AACA;AACA,CAhCA;AAkCA,MAAMC,MAAM,GAAI;AAChB;AACA;AACA;AACA;AACA;AACA,CANA;AAQA,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAEH,IADiB;AAEvBI,EAAAA,MAAM,EAAEH;AAFe,CAAlB","sourcesContent":["const MATH = `\nconst float PI = 3.1415926535897932384626433832795;\nconst float TAU = 2 * PI;\n\nfloat normalizeRad(float value) {\n float rest = mod(value, TAU);\n return rest > 0 ? rest : TAU + rest;\n}\n\nvec2 canvas2Cartesian(vec2 v, vec2 center) {\n return vec2(v.x - center.x, -1 * (v.y - center.y));\n}\n\nvec2 cartesian2Canvas(vec2 v, vec2 center) {\n return vec2(v.x + center.x, -1 * v.y + center.y);\n}\n\nvec2 cartesian2Polar(vec2 v) {\n return vec2(atan(v.y, v.x), sqrt(v.x * v.x + v.y * v.y));\n}\n\nvec2 polar2Cartesian(vec2 p) {\n return vec2(p.y * cos(p.x), p.y * sin(p.x));\n}\n\nvec2 polar2Canvas(vec2 p, vec2 center) {\n return cartesian2Canvas(polar2Cartesian(p), center);\n}\n\nvec2 canvas2Polar(vec2 v, vec2 center) {\n return cartesian2Polar(canvas2Cartesian(v, center));\n}\n`;\n\nconst COLORS = `\nvec4 hsv2rgb(vec3 c) {\n vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\n vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\n return vec4(c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y), 1.0);\n}\n`;\n\nexport const ShaderLib = {\n Math: MATH,\n Colors: COLORS,\n};\n"]}
1
+ {"version":3,"names":["MATH","COLORS","ShaderLib","Math","Colors"],"sources":["ShaderLib.ts"],"sourcesContent":["const MATH = `\nconst float PI = 3.1415926535897932384626433832795;\nconst float TAU = 2 * PI;\n\nfloat normalizeRad(float value) {\n float rest = mod(value, TAU);\n return rest > 0 ? rest : TAU + rest;\n}\n\nvec2 canvas2Cartesian(vec2 v, vec2 center) {\n return vec2(v.x - center.x, -1 * (v.y - center.y));\n}\n\nvec2 cartesian2Canvas(vec2 v, vec2 center) {\n return vec2(v.x + center.x, -1 * v.y + center.y);\n}\n\nvec2 cartesian2Polar(vec2 v) {\n return vec2(atan(v.y, v.x), sqrt(v.x * v.x + v.y * v.y));\n}\n\nvec2 polar2Cartesian(vec2 p) {\n return vec2(p.y * cos(p.x), p.y * sin(p.x));\n}\n\nvec2 polar2Canvas(vec2 p, vec2 center) {\n return cartesian2Canvas(polar2Cartesian(p), center);\n}\n\nvec2 canvas2Polar(vec2 v, vec2 center) {\n return cartesian2Polar(canvas2Cartesian(v, center));\n}\n`;\n\nconst COLORS = `\nvec4 hsv2rgb(vec3 c) {\n vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\n vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\n return vec4(c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y), 1.0);\n}\n`;\n\nexport const ShaderLib = {\n Math: MATH,\n Colors: COLORS,\n};\n"],"mappings":"AAAA,MAAMA,IAAI,GAAI;AACd;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;AACA;AACA;AACA;AACA,CAhCA;AAkCA,MAAMC,MAAM,GAAI;AAChB;AACA;AACA;AACA;AACA;AACA,CANA;AAQA,OAAO,MAAMC,SAAS,GAAG;EACvBC,IAAI,EAAEH,IADiB;EAEvBI,MAAM,EAAEH;AAFe,CAAlB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["SweepGradient.tsx"],"names":["React","SweepGradient","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,aAAa,GAAIC,KAAD,IAA0C;AACrE,sBAAO,uCAAqBA,KAArB,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SweepGradientProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const SweepGradient = (props: SkiaProps<SweepGradientProps>) => {\n return <skSweepGradient {...props} />;\n};\n"]}
1
+ {"version":3,"names":["React","SweepGradient","props"],"sources":["SweepGradient.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SweepGradientProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const SweepGradient = (props: SkiaProps<SweepGradientProps>) => {\n return <skSweepGradient {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,aAAa,GAAIC,KAAD,IAA0C;EACrE,oBAAO,uCAAqBA,KAArB,CAAP;AACD,CAFM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Turbulence.tsx"],"names":["React","Turbulence","props","defaultProps","seed","tileWidth","tileHeight"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,UAAU,GAAIC,KAAD,IAAuC;AAC/D,sBAAO,oCAAkBA,KAAlB,CAAP;AACD,CAFM;AAIPD,UAAU,CAACE,YAAX,GAA0B;AACxBC,EAAAA,IAAI,EAAE,CADkB;AAExBC,EAAAA,SAAS,EAAE,CAFa;AAGxBC,EAAAA,UAAU,EAAE;AAHY,CAA1B","sourcesContent":["import React from \"react\";\n\nimport type { TurbulenceProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const Turbulence = (props: SkiaProps<TurbulenceProps>) => {\n return <skTurbulence {...props} />;\n};\n\nTurbulence.defaultProps = {\n seed: 0,\n tileWidth: 0,\n tileHeight: 0,\n};\n"]}
1
+ {"version":3,"names":["React","Turbulence","props","defaultProps","seed","tileWidth","tileHeight"],"sources":["Turbulence.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { TurbulenceProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const Turbulence = (props: SkiaProps<TurbulenceProps>) => {\n return <skTurbulence {...props} />;\n};\n\nTurbulence.defaultProps = {\n seed: 0,\n tileWidth: 0,\n tileHeight: 0,\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,UAAU,GAAIC,KAAD,IAAuC;EAC/D,oBAAO,oCAAkBA,KAAlB,CAAP;AACD,CAFM;AAIPD,UAAU,CAACE,YAAX,GAA0B;EACxBC,IAAI,EAAE,CADkB;EAExBC,SAAS,EAAE,CAFa;EAGxBC,UAAU,EAAE;AAHY,CAA1B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["TwoPointConicalGradient.tsx"],"names":["React","TwoPointConicalGradient","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,uBAAuB,GAClCC,KADqC,IAElC;AACH,sBAAO,iDAA+BA,KAA/B,CAAP;AACD,CAJM","sourcesContent":["import React from \"react\";\n\nimport type { TwoPointConicalGradientProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const TwoPointConicalGradient = (\n props: SkiaProps<TwoPointConicalGradientProps>\n) => {\n return <skTwoPointConicalGradient {...props} />;\n};\n"]}
1
+ {"version":3,"names":["React","TwoPointConicalGradient","props"],"sources":["TwoPointConicalGradient.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { TwoPointConicalGradientProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const TwoPointConicalGradient = (\n props: SkiaProps<TwoPointConicalGradientProps>\n) => {\n return <skTwoPointConicalGradient {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,uBAAuB,GAClCC,KADqC,IAElC;EACH,oBAAO,iDAA+BA,KAA/B,CAAP;AACD,CAJM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAd;AACA,cAAc,kBAAd;AACA,cAAc,2BAAd;AACA,cAAc,iBAAd;AACA,cAAc,SAAd;AACA,cAAc,cAAd;AACA,cAAc,gBAAd;AACA,cAAc,UAAd;AACA,cAAc,aAAd","sourcesContent":["export * from \"./RadialGradient\";\nexport * from \"./LinearGradient\";\nexport * from \"./TwoPointConicalGradient\";\nexport * from \"./SweepGradient\";\nexport * from \"./Color\";\nexport * from \"./Turbulence\";\nexport * from \"./FractalNoise\";\nexport * from \"./Shader\";\nexport * from \"./ShaderLib\";\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./RadialGradient\";\nexport * from \"./LinearGradient\";\nexport * from \"./TwoPointConicalGradient\";\nexport * from \"./SweepGradient\";\nexport * from \"./Color\";\nexport * from \"./Turbulence\";\nexport * from \"./FractalNoise\";\nexport * from \"./Shader\";\nexport * from \"./ShaderLib\";\n"],"mappings":"AAAA,cAAc,kBAAd;AACA,cAAc,kBAAd;AACA,cAAc,2BAAd;AACA,cAAc,iBAAd;AACA,cAAc,SAAd;AACA,cAAc,cAAd;AACA,cAAc,gBAAd;AACA,cAAc,UAAd;AACA,cAAc,aAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Box.tsx"],"names":["React","BoxShadow","props","Box"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,SAAS,GAAIC,KAAD,IAAsC;AAC7D,sBAAO,mCAAiBA,KAAjB,CAAP;AACD,CAFM;AAIP,OAAO,MAAMC,GAAG,GAAID,KAAD,IAAgC;AACjD,sBAAO,6BAAWA,KAAX,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { BoxProps, BoxShadowProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const BoxShadow = (props: SkiaProps<BoxShadowProps>) => {\n return <skBoxShadow {...props} />;\n};\n\nexport const Box = (props: SkiaProps<BoxProps>) => {\n return <skBox {...props} />;\n};\n"]}
1
+ {"version":3,"names":["React","BoxShadow","props","Box"],"sources":["Box.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { BoxProps, BoxShadowProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const BoxShadow = (props: SkiaProps<BoxShadowProps>) => {\n return <skBoxShadow {...props} />;\n};\n\nexport const Box = (props: SkiaProps<BoxProps>) => {\n return <skBox {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,SAAS,GAAIC,KAAD,IAAsC;EAC7D,oBAAO,mCAAiBA,KAAjB,CAAP;AACD,CAFM;AAIP,OAAO,MAAMC,GAAG,GAAID,KAAD,IAAgC;EACjD,oBAAO,6BAAWA,KAAX,CAAP;AACD,CAFM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Circle.tsx"],"names":["React","Circle","props","defaultProps","c","x","y"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,MAAM,GAAIC,KAAD,IAAmC;AACvD,sBAAO,gCAAcA,KAAd,CAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;AACpBC,EAAAA,CAAC,EAAE;AAAEC,IAAAA,CAAC,EAAE,CAAL;AAAQC,IAAAA,CAAC,EAAE;AAAX;AADiB,CAAtB","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { CircleProps } from \"../../../dom/types\";\n\nexport const Circle = (props: SkiaProps<CircleProps>) => {\n return <skCircle {...props} />;\n};\n\nCircle.defaultProps = {\n c: { x: 0, y: 0 },\n};\n"]}
1
+ {"version":3,"names":["React","Circle","props","defaultProps","c","x","y"],"sources":["Circle.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { CircleProps } from \"../../../dom/types\";\n\nexport const Circle = (props: SkiaProps<CircleProps>) => {\n return <skCircle {...props} />;\n};\n\nCircle.defaultProps = {\n c: { x: 0, y: 0 },\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,MAAM,GAAIC,KAAD,IAAmC;EACvD,oBAAO,gCAAcA,KAAd,CAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;EACpBC,CAAC,EAAE;IAAEC,CAAC,EAAE,CAAL;IAAQC,CAAC,EAAE;EAAX;AADiB,CAAtB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["DiffRect.tsx"],"names":["React","DiffRect","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,QAAQ,GAAIC,KAAD,IAAqC;AAC3D,sBAAO,kCAAgBA,KAAhB,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { DiffRectProps } from \"../../../dom/types\";\n\nexport const DiffRect = (props: SkiaProps<DiffRectProps>) => {\n return <skDiffRect {...props} />;\n};\n"]}
1
+ {"version":3,"names":["React","DiffRect","props"],"sources":["DiffRect.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { DiffRectProps } from \"../../../dom/types\";\n\nexport const DiffRect = (props: SkiaProps<DiffRectProps>) => {\n return <skDiffRect {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,QAAQ,GAAIC,KAAD,IAAqC;EAC3D,oBAAO,kCAAgBA,KAAhB,CAAP;AACD,CAFM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Fill.tsx"],"names":["React","Fill","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAwC;AAC1D,sBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { DrawingNodeProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const Fill = (props: SkiaProps<DrawingNodeProps>) => {\n return <skFill {...props} />;\n};\n"]}
1
+ {"version":3,"names":["React","Fill","props"],"sources":["Fill.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { DrawingNodeProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const Fill = (props: SkiaProps<DrawingNodeProps>) => {\n return <skFill {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAwC;EAC1D,oBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["FitBox.tsx"],"names":["React","useMemo","fitRects","rect2rect","Group","fitbox","fit","src","dst","rects","FitBox","children","transform","defaultProps"],"mappings":"AACA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AAGA,SAASC,QAAT,EAAmBC,SAAnB,QAAoC,oBAApC;AAEA,SAASC,KAAT,QAAsB,UAAtB;AASA,OAAO,MAAMC,MAAM,GAAG,CAACC,GAAD,EAAWC,GAAX,EAAwBC,GAAxB,KAAwC;AAC5D,QAAMC,KAAK,GAAGP,QAAQ,CAACI,GAAD,EAAMC,GAAN,EAAWC,GAAX,CAAtB;AACA,SAAOL,SAAS,CAACM,KAAK,CAACF,GAAP,EAAYE,KAAK,CAACD,GAAlB,CAAhB;AACD,CAHM;AAKP,OAAO,MAAME,MAAM,GAAG,QAA2C;AAAA,MAA1C;AAAEJ,IAAAA,GAAF;AAAOC,IAAAA,GAAP;AAAYC,IAAAA,GAAZ;AAAiBG,IAAAA;AAAjB,GAA0C;AAC/D,QAAMC,SAAS,GAAGX,OAAO,CAAC,MAAMI,MAAM,CAACC,GAAD,EAAMC,GAAN,EAAWC,GAAX,CAAb,EAA8B,CAACA,GAAD,EAAMF,GAAN,EAAWC,GAAX,CAA9B,CAAzB;AACA,sBAAO,oBAAC,KAAD;AAAO,IAAA,SAAS,EAAEK;AAAlB,KAA8BD,QAA9B,CAAP;AACD,CAHM;AAKPD,MAAM,CAACG,YAAP,GAAsB;AACpBP,EAAAA,GAAG,EAAE;AADe,CAAtB","sourcesContent":["import type { ReactNode } from \"react\";\nimport React, { useMemo } from \"react\";\n\nimport type { Fit } from \"../../../dom/nodes\";\nimport { fitRects, rect2rect } from \"../../../dom/nodes\";\nimport type { SkRect } from \"../../../skia/types\";\nimport { Group } from \"../Group\";\n\ninterface FitProps {\n fit: Fit;\n src: SkRect;\n dst: SkRect;\n children: ReactNode | ReactNode[];\n}\n\nexport const fitbox = (fit: Fit, src: SkRect, dst: SkRect) => {\n const rects = fitRects(fit, src, dst);\n return rect2rect(rects.src, rects.dst);\n};\n\nexport const FitBox = ({ fit, src, dst, children }: FitProps) => {\n const transform = useMemo(() => fitbox(fit, src, dst), [dst, fit, src]);\n return <Group transform={transform}>{children}</Group>;\n};\n\nFitBox.defaultProps = {\n fit: \"contain\",\n};\n"]}
1
+ {"version":3,"names":["React","useMemo","fitRects","rect2rect","Group","fitbox","fit","src","dst","rects","FitBox","children","transform","defaultProps"],"sources":["FitBox.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport React, { useMemo } from \"react\";\n\nimport type { Fit } from \"../../../dom/nodes\";\nimport { fitRects, rect2rect } from \"../../../dom/nodes\";\nimport type { SkRect } from \"../../../skia/types\";\nimport { Group } from \"../Group\";\n\ninterface FitProps {\n fit: Fit;\n src: SkRect;\n dst: SkRect;\n children: ReactNode | ReactNode[];\n}\n\nexport const fitbox = (fit: Fit, src: SkRect, dst: SkRect) => {\n const rects = fitRects(fit, src, dst);\n return rect2rect(rects.src, rects.dst);\n};\n\nexport const FitBox = ({ fit, src, dst, children }: FitProps) => {\n const transform = useMemo(() => fitbox(fit, src, dst), [dst, fit, src]);\n return <Group transform={transform}>{children}</Group>;\n};\n\nFitBox.defaultProps = {\n fit: \"contain\",\n};\n"],"mappings":"AACA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AAGA,SAASC,QAAT,EAAmBC,SAAnB,QAAoC,oBAApC;AAEA,SAASC,KAAT,QAAsB,UAAtB;AASA,OAAO,MAAMC,MAAM,GAAG,CAACC,GAAD,EAAWC,GAAX,EAAwBC,GAAxB,KAAwC;EAC5D,MAAMC,KAAK,GAAGP,QAAQ,CAACI,GAAD,EAAMC,GAAN,EAAWC,GAAX,CAAtB;EACA,OAAOL,SAAS,CAACM,KAAK,CAACF,GAAP,EAAYE,KAAK,CAACD,GAAlB,CAAhB;AACD,CAHM;AAKP,OAAO,MAAME,MAAM,GAAG,QAA2C;EAAA,IAA1C;IAAEJ,GAAF;IAAOC,GAAP;IAAYC,GAAZ;IAAiBG;EAAjB,CAA0C;EAC/D,MAAMC,SAAS,GAAGX,OAAO,CAAC,MAAMI,MAAM,CAACC,GAAD,EAAMC,GAAN,EAAWC,GAAX,CAAb,EAA8B,CAACA,GAAD,EAAMF,GAAN,EAAWC,GAAX,CAA9B,CAAzB;EACA,oBAAO,oBAAC,KAAD;IAAO,SAAS,EAAEK;EAAlB,GAA8BD,QAA9B,CAAP;AACD,CAHM;AAKPD,MAAM,CAACG,YAAP,GAAsB;EACpBP,GAAG,EAAE;AADe,CAAtB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Line.tsx"],"names":["React","Line","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAiC;AACnD,sBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { LineProps } from \"../../../dom/types\";\n\nexport const Line = (props: SkiaProps<LineProps>) => {\n return <skLine {...props} />;\n};\n"]}
1
+ {"version":3,"names":["React","Line","props"],"sources":["Line.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { LineProps } from \"../../../dom/types\";\n\nexport const Line = (props: SkiaProps<LineProps>) => {\n return <skLine {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAiC;EACnD,oBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Oval.tsx"],"names":["React","Oval","props","defaultProps","x","y"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAiC;AACnD,sBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM;AAIPD,IAAI,CAACE,YAAL,GAAoB;AAClBC,EAAAA,CAAC,EAAE,CADe;AAElBC,EAAAA,CAAC,EAAE;AAFe,CAApB","sourcesContent":["import React from \"react\";\n\nimport type { OvalProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Oval = (props: SkiaProps<OvalProps>) => {\n return <skOval {...props} />;\n};\n\nOval.defaultProps = {\n x: 0,\n y: 0,\n};\n"]}
1
+ {"version":3,"names":["React","Oval","props","defaultProps","x","y"],"sources":["Oval.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { OvalProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Oval = (props: SkiaProps<OvalProps>) => {\n return <skOval {...props} />;\n};\n\nOval.defaultProps = {\n x: 0,\n y: 0,\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAiC;EACnD,oBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM;AAIPD,IAAI,CAACE,YAAL,GAAoB;EAClBC,CAAC,EAAE,CADe;EAElBC,CAAC,EAAE;AAFe,CAApB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Patch.tsx"],"names":["React","Patch","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,KAAK,GAAIC,KAAD,IAAkC;AACrD,sBAAO,+BAAaA,KAAb,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { PatchProps } from \"../../../dom/types\";\n\nexport const Patch = (props: SkiaProps<PatchProps>) => {\n return <skPatch {...props} />;\n};\n"]}
1
+ {"version":3,"names":["React","Patch","props"],"sources":["Patch.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { PatchProps } from \"../../../dom/types\";\n\nexport const Patch = (props: SkiaProps<PatchProps>) => {\n return <skPatch {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,KAAK,GAAIC,KAAD,IAAkC;EACrD,oBAAO,+BAAaA,KAAb,CAAP;AACD,CAFM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Path.tsx"],"names":["React","Path","props","defaultProps","start","end"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAiC;AACnD,sBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM;AAIPD,IAAI,CAACE,YAAL,GAAoB;AAClBC,EAAAA,KAAK,EAAE,CADW;AAElBC,EAAAA,GAAG,EAAE;AAFa,CAApB","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { PathProps } from \"../../../dom/types\";\n\nexport const Path = (props: SkiaProps<PathProps>) => {\n return <skPath {...props} />;\n};\n\nPath.defaultProps = {\n start: 0,\n end: 1,\n};\n"]}
1
+ {"version":3,"names":["React","Path","props","defaultProps","start","end"],"sources":["Path.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { PathProps } from \"../../../dom/types\";\n\nexport const Path = (props: SkiaProps<PathProps>) => {\n return <skPath {...props} />;\n};\n\nPath.defaultProps = {\n start: 0,\n end: 1,\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAiC;EACnD,oBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM;AAIPD,IAAI,CAACE,YAAL,GAAoB;EAClBC,KAAK,EAAE,CADW;EAElBC,GAAG,EAAE;AAFa,CAApB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Points.tsx"],"names":["React","Points","props","defaultProps","mode"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,MAAM,GAAIC,KAAD,IAAmC;AACvD,sBAAO,gCAAcA,KAAd,CAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;AACpBC,EAAAA,IAAI,EAAE;AADc,CAAtB","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { PointsProps } from \"../../../dom/types\";\n\nexport const Points = (props: SkiaProps<PointsProps>) => {\n return <skPoints {...props} />;\n};\n\nPoints.defaultProps = {\n mode: \"points\",\n};\n"]}
1
+ {"version":3,"names":["React","Points","props","defaultProps","mode"],"sources":["Points.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\nimport type { PointsProps } from \"../../../dom/types\";\n\nexport const Points = (props: SkiaProps<PointsProps>) => {\n return <skPoints {...props} />;\n};\n\nPoints.defaultProps = {\n mode: \"points\",\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,MAAM,GAAIC,KAAD,IAAmC;EACvD,oBAAO,gCAAcA,KAAd,CAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;EACpBC,IAAI,EAAE;AADc,CAAtB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Rect.tsx"],"names":["React","Rect","props"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAiC;AACnD,sBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { RectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Rect = (props: SkiaProps<RectProps>) => {\n return <skRect {...props} />;\n};\n"]}
1
+ {"version":3,"names":["React","Rect","props"],"sources":["Rect.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { RectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const Rect = (props: SkiaProps<RectProps>) => {\n return <skRect {...props} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAiC;EACnD,oBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["RoundedRect.tsx"],"names":["React","RoundedRect","props","defaultProps","r"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,WAAW,GAAIC,KAAD,IAAwC;AACjE,sBAAO,+BAAaA,KAAb,CAAP;AACD,CAFM;AAIPD,WAAW,CAACE,YAAZ,GAA2B;AACzBC,EAAAA,CAAC,EAAE;AADsB,CAA3B","sourcesContent":["import React from \"react\";\n\nimport type { RoundedRectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const RoundedRect = (props: SkiaProps<RoundedRectProps>) => {\n return <skRRect {...props} />;\n};\n\nRoundedRect.defaultProps = {\n r: 0,\n};\n"]}
1
+ {"version":3,"names":["React","RoundedRect","props","defaultProps","r"],"sources":["RoundedRect.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { RoundedRectProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors\";\n\nexport const RoundedRect = (props: SkiaProps<RoundedRectProps>) => {\n return <skRRect {...props} />;\n};\n\nRoundedRect.defaultProps = {\n r: 0,\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,WAAW,GAAIC,KAAD,IAAwC;EACjE,oBAAO,+BAAaA,KAAb,CAAP;AACD,CAFM;AAIPD,WAAW,CAACE,YAAZ,GAA2B;EACzBC,CAAC,EAAE;AADsB,CAA3B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Vertices.tsx"],"names":["React","Vertices","props","defaultProps","mode"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,QAAQ,GAAIC,KAAD,IAAqC;AAC3D,sBAAO,kCAAgBA,KAAhB,CAAP;AACD,CAFM;AAIPD,QAAQ,CAACE,YAAT,GAAwB;AACtBC,EAAAA,IAAI,EAAE;AADgB,CAAxB","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { VerticesProps } from \"../../../dom/types\";\n\nexport const Vertices = (props: SkiaProps<VerticesProps>) => {\n return <skVertices {...props} />;\n};\n\nVertices.defaultProps = {\n mode: \"triangles\",\n};\n"]}
1
+ {"version":3,"names":["React","Vertices","props","defaultProps","mode"],"sources":["Vertices.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { VerticesProps } from \"../../../dom/types\";\n\nexport const Vertices = (props: SkiaProps<VerticesProps>) => {\n return <skVertices {...props} />;\n};\n\nVertices.defaultProps = {\n mode: \"triangles\",\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,QAAQ,GAAIC,KAAD,IAAqC;EAC3D,oBAAO,kCAAgBA,KAAhB,CAAP;AACD,CAFM;AAIPD,QAAQ,CAACE,YAAT,GAAwB;EACtBC,IAAI,EAAE;AADgB,CAAxB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAd;AACA,cAAc,QAAd;AACA,cAAc,eAAd;AACA,cAAc,YAAd;AACA,cAAc,QAAd;AACA,cAAc,QAAd;AACA,cAAc,QAAd;AACA,cAAc,UAAd;AACA,cAAc,SAAd;AACA,cAAc,YAAd;AACA,cAAc,QAAd;AACA,cAAc,UAAd;AACA,cAAc,OAAd","sourcesContent":["export * from \"./Circle\";\nexport * from \"./Rect\";\nexport * from \"./RoundedRect\";\nexport * from \"./DiffRect\";\nexport * from \"./Line\";\nexport * from \"./Path\";\nexport * from \"./Oval\";\nexport * from \"./Points\";\nexport * from \"./Patch\";\nexport * from \"./Vertices\";\nexport * from \"./Fill\";\nexport * from \"./FitBox\";\nexport * from \"./Box\";\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Circle\";\nexport * from \"./Rect\";\nexport * from \"./RoundedRect\";\nexport * from \"./DiffRect\";\nexport * from \"./Line\";\nexport * from \"./Path\";\nexport * from \"./Oval\";\nexport * from \"./Points\";\nexport * from \"./Patch\";\nexport * from \"./Vertices\";\nexport * from \"./Fill\";\nexport * from \"./FitBox\";\nexport * from \"./Box\";\n"],"mappings":"AAAA,cAAc,UAAd;AACA,cAAc,QAAd;AACA,cAAc,eAAd;AACA,cAAc,YAAd;AACA,cAAc,QAAd;AACA,cAAc,QAAd;AACA,cAAc,QAAd;AACA,cAAc,UAAd;AACA,cAAc,SAAd;AACA,cAAc,YAAd;AACA,cAAc,QAAd;AACA,cAAc,UAAd;AACA,cAAc,OAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Glyphs.tsx"],"names":["React","Glyphs","props","defaultProps","x","y"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,MAAM,GAAIC,KAAD,IAAmC;AACvD,sBAAO,gCAAcA,KAAd,CAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;AACpBC,EAAAA,CAAC,EAAE,CADiB;AAEpBC,EAAAA,CAAC,EAAE;AAFiB,CAAtB","sourcesContent":["import React from \"react\";\n\nimport type { GlyphsProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const Glyphs = (props: SkiaProps<GlyphsProps>) => {\n return <skGlyphs {...props} />;\n};\n\nGlyphs.defaultProps = {\n x: 0,\n y: 0,\n};\n"]}
1
+ {"version":3,"names":["React","Glyphs","props","defaultProps","x","y"],"sources":["Glyphs.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { GlyphsProps } from \"../../../dom/types\";\nimport type { SkiaProps } from \"../../processors/Animations/Animations\";\n\nexport const Glyphs = (props: SkiaProps<GlyphsProps>) => {\n return <skGlyphs {...props} />;\n};\n\nGlyphs.defaultProps = {\n x: 0,\n y: 0,\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,MAAM,GAAIC,KAAD,IAAmC;EACvD,oBAAO,gCAAcA,KAAd,CAAP;AACD,CAFM;AAIPD,MAAM,CAACE,YAAP,GAAsB;EACpBC,CAAC,EAAE,CADiB;EAEpBC,CAAC,EAAE;AAFiB,CAAtB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Text.tsx"],"names":["React","Text","props","defaultProps","x","y"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAiC;AACnD,sBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM;AAIPD,IAAI,CAACE,YAAL,GAAoB;AAClBC,EAAAA,CAAC,EAAE,CADe;AAElBC,EAAAA,CAAC,EAAE;AAFe,CAApB","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { TextProps } from \"../../../dom/types\";\n\nexport const Text = (props: SkiaProps<TextProps>) => {\n return <skText {...props} />;\n};\n\nText.defaultProps = {\n x: 0,\n y: 0,\n};\n"]}
1
+ {"version":3,"names":["React","Text","props","defaultProps","x","y"],"sources":["Text.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { TextProps } from \"../../../dom/types\";\n\nexport const Text = (props: SkiaProps<TextProps>) => {\n return <skText {...props} />;\n};\n\nText.defaultProps = {\n x: 0,\n y: 0,\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,IAAI,GAAIC,KAAD,IAAiC;EACnD,oBAAO,8BAAYA,KAAZ,CAAP;AACD,CAFM;AAIPD,IAAI,CAACE,YAAL,GAAoB;EAClBC,CAAC,EAAE,CADe;EAElBC,CAAC,EAAE;AAFe,CAApB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["TextBlob.tsx"],"names":["React","TextBlob","props","defaultProps","x","y"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,QAAQ,GAAIC,KAAD,IAAqC;AAC3D,sBAAO,kCAAgBA,KAAhB,CAAP;AACD,CAFM;AAIPD,QAAQ,CAACE,YAAT,GAAwB;AACtBC,EAAAA,CAAC,EAAE,CADmB;AAEtBC,EAAAA,CAAC,EAAE;AAFmB,CAAxB","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { TextBlobProps } from \"../../../dom/types\";\n\nexport const TextBlob = (props: SkiaProps<TextBlobProps>) => {\n return <skTextBlob {...props} />;\n};\n\nTextBlob.defaultProps = {\n x: 0,\n y: 0,\n};\n"]}
1
+ {"version":3,"names":["React","TextBlob","props","defaultProps","x","y"],"sources":["TextBlob.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { TextBlobProps } from \"../../../dom/types\";\n\nexport const TextBlob = (props: SkiaProps<TextBlobProps>) => {\n return <skTextBlob {...props} />;\n};\n\nTextBlob.defaultProps = {\n x: 0,\n y: 0,\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,QAAQ,GAAIC,KAAD,IAAqC;EAC3D,oBAAO,kCAAgBA,KAAhB,CAAP;AACD,CAFM;AAIPD,QAAQ,CAACE,YAAT,GAAwB;EACtBC,CAAC,EAAE,CADmB;EAEtBC,CAAC,EAAE;AAFmB,CAAxB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["TextPath.tsx"],"names":["React","TextPath","props","defaultProps","initialOffset"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,QAAQ,GAAIC,KAAD,IAAqC;AAC3D,sBAAO,kCAAgBA,KAAhB,CAAP;AACD,CAFM;AAIPD,QAAQ,CAACE,YAAT,GAAwB;AACtBC,EAAAA,aAAa,EAAE;AADO,CAAxB","sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { TextPathProps } from \"../../../dom/types\";\n\nexport const TextPath = (props: SkiaProps<TextPathProps>) => {\n return <skTextPath {...props} />;\n};\n\nTextPath.defaultProps = {\n initialOffset: 0,\n};\n"]}
1
+ {"version":3,"names":["React","TextPath","props","defaultProps","initialOffset"],"sources":["TextPath.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { SkiaProps } from \"../../processors\";\nimport type { TextPathProps } from \"../../../dom/types\";\n\nexport const TextPath = (props: SkiaProps<TextPathProps>) => {\n return <skTextPath {...props} />;\n};\n\nTextPath.defaultProps = {\n initialOffset: 0,\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAKA,OAAO,MAAMC,QAAQ,GAAIC,KAAD,IAAqC;EAC3D,oBAAO,kCAAgBA,KAAhB,CAAP;AACD,CAFM;AAIPD,QAAQ,CAACE,YAAT,GAAwB;EACtBC,aAAa,EAAE;AADO,CAAxB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAd;AACA,cAAc,UAAd;AACA,cAAc,YAAd;AACA,cAAc,YAAd","sourcesContent":["export * from \"./Text\";\nexport * from \"./Glyphs\";\nexport * from \"./TextBlob\";\nexport * from \"./TextPath\";\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Text\";\nexport * from \"./Glyphs\";\nexport * from \"./TextBlob\";\nexport * from \"./TextPath\";\n"],"mappings":"AAAA,cAAc,QAAd;AACA,cAAc,UAAd;AACA,cAAc,YAAd;AACA,cAAc,YAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAd;AACA,cAAc,oBAAd;AACA,cAAc,qBAAd;AACA,cAAc,aAAd","sourcesContent":["export * from \"./components\";\nexport * from \"./useContextBridge\";\nexport * from \"./DependencyManager\";\nexport * from \"./useCanvas\";\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./components\";\nexport * from \"./useContextBridge\";\nexport * from \"./DependencyManager\";\nexport * from \"./useCanvas\";\n"],"mappings":"AAAA,cAAc,cAAd;AACA,cAAc,oBAAd;AACA,cAAc,qBAAd;AACA,cAAc,aAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Animations.ts"],"names":["isValue","value","undefined","__typename__","isSelector","selector","isAnimated","props","Object","values"],"mappings":"AAEA,OAAO,MAAMA,OAAO,GAAIC,KAAD,IAAiD;AACtE,MAAIA,KAAK,KAAKC,SAAV,IAAuBD,KAAK,KAAK,IAArC,EAA2C;AACzC,WAAO,KAAP;AACD;;AACD,MAAI;AACF,QACE,OAAOA,KAAP,KAAiB,QAAjB,IACA,kBAAkBA,KADlB,IAECA,KAAD,CAAyCE,YAAzC,KAA0D,WAH5D,EAIE;AACA,aAAO,IAAP;AACD;AACF,GARD,CAQE,MAAM,CAAE;;AACV,SAAO,KAAP;AACD,CAdM;AAgBP,OAAO,MAAMC,UAAU,GACrBH,KADwB,IAKrB;AACH,MAAIA,KAAJ,EAAW;AACT,WACE,OAAOA,KAAP,KAAiB,QAAjB,IACA,cAAcA,KADd,IAEA,WAAWA,KAFX,IAGCA,KAAD,CAAmCI,QAAnC,KAAgDH,SAHhD,IAICD,KAAD,CAAmCA,KAAnC,KAA6CC,SAL/C;AAOD;;AACD,SAAO,KAAP;AACD,CAhBM;AAkBP,OAAO,MAAMI,UAAU,GAAOC,KAAJ,IAAgC;AACxD,OAAK,MAAMN,KAAX,IAAoBO,MAAM,CAACC,MAAP,CAAcF,KAAd,CAApB,EAA0C;AACxC,QAAIP,OAAO,CAACC,KAAD,CAAP,IAAkBG,UAAU,CAACH,KAAD,CAAhC,EAAyC;AACvC,aAAO,IAAP;AACD;AACF;;AACD,SAAO,KAAP;AACD,CAPM,C,CASP","sourcesContent":["import type { SkiaSelector, SkiaValue } from \"../../../values\";\n\nexport const isValue = (value: unknown): value is SkiaValue<unknown> => {\n if (value === undefined || value === null) {\n return false;\n }\n try {\n if (\n typeof value === \"object\" &&\n \"__typename__\" in value &&\n (value as unknown as SkiaValue<unknown>).__typename__ === \"RNSkValue\"\n ) {\n return true;\n }\n } catch {}\n return false;\n};\n\nexport const isSelector = <T, R>(\n value: unknown\n): value is {\n selector: (v: T) => R;\n value: SkiaValue<T>;\n} => {\n if (value) {\n return (\n typeof value === \"object\" &&\n \"selector\" in value &&\n \"value\" in value &&\n (value as Record<string, unknown>).selector !== undefined &&\n (value as Record<string, unknown>).value !== undefined\n );\n }\n return false;\n};\n\nexport const isAnimated = <T>(props: AnimatedProps<T>) => {\n for (const value of Object.values(props)) {\n if (isValue(value) || isSelector(value)) {\n return true;\n }\n }\n return false;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type AnimatedProp<T, P = any> = T | SkiaValue<T> | SkiaSelector<T, P>;\n\nexport type AnimatedProps<T> = {\n [K in keyof T]: AnimatedProp<T[K]>;\n};\n\n// TODO: switch to AnimatedProps<GroupProps> and remove duplicate properties.\n// For instance matrix in color filter becomes colorMatrix\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type SkiaProps<P = {}> = AnimatedProps<P>;\n"]}
1
+ {"version":3,"names":["isValue","value","undefined","__typename__","isSelector","selector","isAnimated","props","Object","values"],"sources":["Animations.ts"],"sourcesContent":["import type { SkiaSelector, SkiaValue } from \"../../../values\";\n\nexport const isValue = (value: unknown): value is SkiaValue<unknown> => {\n if (value === undefined || value === null) {\n return false;\n }\n try {\n if (\n typeof value === \"object\" &&\n \"__typename__\" in value &&\n (value as unknown as SkiaValue<unknown>).__typename__ === \"RNSkValue\"\n ) {\n return true;\n }\n } catch {}\n return false;\n};\n\nexport const isSelector = <T, R>(\n value: unknown\n): value is {\n selector: (v: T) => R;\n value: SkiaValue<T>;\n} => {\n if (value) {\n return (\n typeof value === \"object\" &&\n \"selector\" in value &&\n \"value\" in value &&\n (value as Record<string, unknown>).selector !== undefined &&\n (value as Record<string, unknown>).value !== undefined\n );\n }\n return false;\n};\n\nexport const isAnimated = <T>(props: AnimatedProps<T>) => {\n for (const value of Object.values(props)) {\n if (isValue(value) || isSelector(value)) {\n return true;\n }\n }\n return false;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type AnimatedProp<T, P = any> = T | SkiaValue<T> | SkiaSelector<T, P>;\n\nexport type AnimatedProps<T, O extends keyof T | never = never> = {\n [K in keyof T]: K extends \"children\"\n ? T[K]\n : K extends O\n ? T[K]\n : AnimatedProp<T[K]>;\n};\n\n// TODO: switch to AnimatedProps<GroupProps> and remove duplicate properties.\n// For instance matrix in color filter becomes colorMatrix\n\nexport type SkiaProps<\n P = object,\n O extends keyof P | never = never\n> = AnimatedProps<P, O>;\n"],"mappings":"AAEA,OAAO,MAAMA,OAAO,GAAIC,KAAD,IAAiD;EACtE,IAAIA,KAAK,KAAKC,SAAV,IAAuBD,KAAK,KAAK,IAArC,EAA2C;IACzC,OAAO,KAAP;EACD;;EACD,IAAI;IACF,IACE,OAAOA,KAAP,KAAiB,QAAjB,IACA,kBAAkBA,KADlB,IAECA,KAAD,CAAyCE,YAAzC,KAA0D,WAH5D,EAIE;MACA,OAAO,IAAP;IACD;EACF,CARD,CAQE,MAAM,CAAE;;EACV,OAAO,KAAP;AACD,CAdM;AAgBP,OAAO,MAAMC,UAAU,GACrBH,KADwB,IAKrB;EACH,IAAIA,KAAJ,EAAW;IACT,OACE,OAAOA,KAAP,KAAiB,QAAjB,IACA,cAAcA,KADd,IAEA,WAAWA,KAFX,IAGCA,KAAD,CAAmCI,QAAnC,KAAgDH,SAHhD,IAICD,KAAD,CAAmCA,KAAnC,KAA6CC,SAL/C;EAOD;;EACD,OAAO,KAAP;AACD,CAhBM;AAkBP,OAAO,MAAMI,UAAU,GAAOC,KAAJ,IAAgC;EACxD,KAAK,MAAMN,KAAX,IAAoBO,MAAM,CAACC,MAAP,CAAcF,KAAd,CAApB,EAA0C;IACxC,IAAIP,OAAO,CAACC,KAAD,CAAP,IAAkBG,UAAU,CAACH,KAAD,CAAhC,EAAyC;MACvC,OAAO,IAAP;IACD;EACF;;EACD,OAAO,KAAP;AACD,CAPM,C,CASP"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAd","sourcesContent":["export * from \"./Animations\";\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Animations\";\n"],"mappings":"AAAA,cAAc,cAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAd;AACA,cAAc,QAAd","sourcesContent":["export * from \"./Animations\";\nexport * from \"./math\";\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Animations\";\nexport * from \"./math\";\n"],"mappings":"AAAA,cAAc,cAAd;AACA,cAAc,QAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Coordinates.ts"],"names":["canvas2Cartesian","v","center","x","y","cartesian2Canvas","cartesian2Polar","theta","Math","atan2","radius","sqrt","polar2Cartesian","p","cos","sin","polar2Canvas","canvas2Polar"],"mappings":"AAOA,OAAO,MAAMA,gBAAgB,GAAG,CAACC,CAAD,EAAYC,MAAZ,MAAgC;AAC9DC,EAAAA,CAAC,EAAEF,CAAC,CAACE,CAAF,GAAMD,MAAM,CAACC,CAD8C;AAE9DC,EAAAA,CAAC,EAAE,CAAC,CAAD,IAAMH,CAAC,CAACG,CAAF,GAAMF,MAAM,CAACE,CAAnB;AAF2D,CAAhC,CAAzB;AAKP,OAAO,MAAMC,gBAAgB,GAAG,CAACJ,CAAD,EAAYC,MAAZ,MAAgC;AAC9DC,EAAAA,CAAC,EAAEF,CAAC,CAACE,CAAF,GAAMD,MAAM,CAACC,CAD8C;AAE9DC,EAAAA,CAAC,EAAE,CAAC,CAAD,GAAKH,CAAC,CAACG,CAAP,GAAWF,MAAM,CAACE;AAFyC,CAAhC,CAAzB;AAKP,OAAO,MAAME,eAAe,GAAIL,CAAD,KAAgB;AAC7CM,EAAAA,KAAK,EAAEC,IAAI,CAACC,KAAL,CAAWR,CAAC,CAACG,CAAb,EAAgBH,CAAC,CAACE,CAAlB,CADsC;AAE7CO,EAAAA,MAAM,EAAEF,IAAI,CAACG,IAAL,CAAUV,CAAC,CAACE,CAAF,IAAO,CAAP,GAAWF,CAAC,CAACG,CAAF,IAAO,CAA5B;AAFqC,CAAhB,CAAxB;AAKP,OAAO,MAAMQ,eAAe,GAAIC,CAAD,KAAoB;AACjDV,EAAAA,CAAC,EAAEU,CAAC,CAACH,MAAF,GAAWF,IAAI,CAACM,GAAL,CAASD,CAAC,CAACN,KAAX,CADmC;AAEjDH,EAAAA,CAAC,EAAES,CAAC,CAACH,MAAF,GAAWF,IAAI,CAACO,GAAL,CAASF,CAAC,CAACN,KAAX;AAFmC,CAApB,CAAxB;AAKP,OAAO,MAAMS,YAAY,GAAG,CAACH,CAAD,EAAgBX,MAAhB,KAC1BG,gBAAgB,CAACO,eAAe,CAACC,CAAD,CAAhB,EAAqBX,MAArB,CADX;AAGP,OAAO,MAAMe,YAAY,GAAG,CAAChB,CAAD,EAAYC,MAAZ,KAC1BI,eAAe,CAACN,gBAAgB,CAACC,CAAD,EAAIC,MAAJ,CAAjB,CADV","sourcesContent":["import type { Vector } from \"../../../skia/types\";\n\nexport interface PolarPoint {\n theta: number;\n radius: number;\n}\n\nexport const canvas2Cartesian = (v: Vector, center: Vector) => ({\n x: v.x - center.x,\n y: -1 * (v.y - center.y),\n});\n\nexport const cartesian2Canvas = (v: Vector, center: Vector) => ({\n x: v.x + center.x,\n y: -1 * v.y + center.y,\n});\n\nexport const cartesian2Polar = (v: Vector) => ({\n theta: Math.atan2(v.y, v.x),\n radius: Math.sqrt(v.x ** 2 + v.y ** 2),\n});\n\nexport const polar2Cartesian = (p: PolarPoint) => ({\n x: p.radius * Math.cos(p.theta),\n y: p.radius * Math.sin(p.theta),\n});\n\nexport const polar2Canvas = (p: PolarPoint, center: Vector) =>\n cartesian2Canvas(polar2Cartesian(p), center);\n\nexport const canvas2Polar = (v: Vector, center: Vector) =>\n cartesian2Polar(canvas2Cartesian(v, center));\n"]}
1
+ {"version":3,"names":["canvas2Cartesian","v","center","x","y","cartesian2Canvas","cartesian2Polar","theta","Math","atan2","radius","sqrt","polar2Cartesian","p","cos","sin","polar2Canvas","canvas2Polar"],"sources":["Coordinates.ts"],"sourcesContent":["import type { Vector } from \"../../../skia/types\";\n\nexport interface PolarPoint {\n theta: number;\n radius: number;\n}\n\nexport const canvas2Cartesian = (v: Vector, center: Vector) => ({\n x: v.x - center.x,\n y: -1 * (v.y - center.y),\n});\n\nexport const cartesian2Canvas = (v: Vector, center: Vector) => ({\n x: v.x + center.x,\n y: -1 * v.y + center.y,\n});\n\nexport const cartesian2Polar = (v: Vector) => ({\n theta: Math.atan2(v.y, v.x),\n radius: Math.sqrt(v.x ** 2 + v.y ** 2),\n});\n\nexport const polar2Cartesian = (p: PolarPoint) => ({\n x: p.radius * Math.cos(p.theta),\n y: p.radius * Math.sin(p.theta),\n});\n\nexport const polar2Canvas = (p: PolarPoint, center: Vector) =>\n cartesian2Canvas(polar2Cartesian(p), center);\n\nexport const canvas2Polar = (v: Vector, center: Vector) =>\n cartesian2Polar(canvas2Cartesian(v, center));\n"],"mappings":"AAOA,OAAO,MAAMA,gBAAgB,GAAG,CAACC,CAAD,EAAYC,MAAZ,MAAgC;EAC9DC,CAAC,EAAEF,CAAC,CAACE,CAAF,GAAMD,MAAM,CAACC,CAD8C;EAE9DC,CAAC,EAAE,CAAC,CAAD,IAAMH,CAAC,CAACG,CAAF,GAAMF,MAAM,CAACE,CAAnB;AAF2D,CAAhC,CAAzB;AAKP,OAAO,MAAMC,gBAAgB,GAAG,CAACJ,CAAD,EAAYC,MAAZ,MAAgC;EAC9DC,CAAC,EAAEF,CAAC,CAACE,CAAF,GAAMD,MAAM,CAACC,CAD8C;EAE9DC,CAAC,EAAE,CAAC,CAAD,GAAKH,CAAC,CAACG,CAAP,GAAWF,MAAM,CAACE;AAFyC,CAAhC,CAAzB;AAKP,OAAO,MAAME,eAAe,GAAIL,CAAD,KAAgB;EAC7CM,KAAK,EAAEC,IAAI,CAACC,KAAL,CAAWR,CAAC,CAACG,CAAb,EAAgBH,CAAC,CAACE,CAAlB,CADsC;EAE7CO,MAAM,EAAEF,IAAI,CAACG,IAAL,CAAUV,CAAC,CAACE,CAAF,IAAO,CAAP,GAAWF,CAAC,CAACG,CAAF,IAAO,CAA5B;AAFqC,CAAhB,CAAxB;AAKP,OAAO,MAAMQ,eAAe,GAAIC,CAAD,KAAoB;EACjDV,CAAC,EAAEU,CAAC,CAACH,MAAF,GAAWF,IAAI,CAACM,GAAL,CAASD,CAAC,CAACN,KAAX,CADmC;EAEjDH,CAAC,EAAES,CAAC,CAACH,MAAF,GAAWF,IAAI,CAACO,GAAL,CAASF,CAAC,CAACN,KAAX;AAFmC,CAApB,CAAxB;AAKP,OAAO,MAAMS,YAAY,GAAG,CAACH,CAAD,EAAgBX,MAAhB,KAC1BG,gBAAgB,CAACO,eAAe,CAACC,CAAD,CAAhB,EAAqBX,MAArB,CADX;AAGP,OAAO,MAAMe,YAAY,GAAG,CAAChB,CAAD,EAAYC,MAAZ,KAC1BI,eAAe,CAACN,gBAAgB,CAACC,CAAD,EAAIC,MAAJ,CAAjB,CADV"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Math.ts"],"names":["mix","value","x","y","clamp","lowerBound","upperBound","Math","min","max"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,GAAG,GAAG,CAACC,KAAD,EAAgBC,CAAhB,EAA2BC,CAA3B,KACjBD,CAAC,IAAI,IAAID,KAAR,CAAD,GAAkBE,CAAC,GAAGF,KADjB;AAGP;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMG,KAAK,GAAG,CAACH,KAAD,EAAgBI,UAAhB,EAAoCC,UAApC,KACnBC,IAAI,CAACC,GAAL,CAASD,IAAI,CAACE,GAAL,CAASJ,UAAT,EAAqBJ,KAArB,CAAT,EAAsCK,UAAtC,CADK","sourcesContent":["/**\n * Linear interpolation\n * @param value\n * @param x\n * @param y\n */\nexport const mix = (value: number, x: number, y: number) =>\n x * (1 - value) + y * value;\n\n/**\n * @summary Clamps a node with a lower and upper bound.\n * @example\n clamp(-1, 0, 100); // 0\n clamp(1, 0, 100); // 1\n clamp(101, 0, 100); // 100\n */\nexport const clamp = (value: number, lowerBound: number, upperBound: number) =>\n Math.min(Math.max(lowerBound, value), upperBound);\n"]}
1
+ {"version":3,"names":["mix","value","x","y","clamp","lowerBound","upperBound","Math","min","max"],"sources":["Math.ts"],"sourcesContent":["/**\n * Linear interpolation\n * @param value\n * @param x\n * @param y\n */\nexport const mix = (value: number, x: number, y: number) =>\n x * (1 - value) + y * value;\n\n/**\n * @summary Clamps a node with a lower and upper bound.\n * @example\n clamp(-1, 0, 100); // 0\n clamp(1, 0, 100); // 1\n clamp(101, 0, 100); // 100\n */\nexport const clamp = (value: number, lowerBound: number, upperBound: number) =>\n Math.min(Math.max(lowerBound, value), upperBound);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,GAAG,GAAG,CAACC,KAAD,EAAgBC,CAAhB,EAA2BC,CAA3B,KACjBD,CAAC,IAAI,IAAID,KAAR,CAAD,GAAkBE,CAAC,GAAGF,KADjB;AAGP;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMG,KAAK,GAAG,CAACH,KAAD,EAAgBI,UAAhB,EAAoCC,UAApC,KACnBC,IAAI,CAACC,GAAL,CAASD,IAAI,CAACE,GAAL,CAASJ,UAAT,EAAqBJ,KAArB,CAAT,EAAsCK,UAAtC,CADK"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Transforms.ts"],"names":["canvas2Polar","polar2Canvas","rotate","tr","origin","rotation","radius","theta"],"mappings":"AAEA,SAASA,YAAT,EAAuBC,YAAvB,QAA2C,eAA3C;AAEA,OAAO,MAAMC,MAAM,GAAG,CAACC,EAAD,EAAaC,MAAb,EAA6BC,QAA7B,KAAkD;AACtE,QAAM;AAAEC,IAAAA,MAAF;AAAUC,IAAAA;AAAV,MAAoBP,YAAY,CAACG,EAAD,EAAKC,MAAL,CAAtC;AACA,SAAOH,YAAY,CAAC;AAAEK,IAAAA,MAAF;AAAUC,IAAAA,KAAK,EAAEA,KAAK,GAAGF;AAAzB,GAAD,EAAsCD,MAAtC,CAAnB;AACD,CAHM","sourcesContent":["import type { Vector } from \"../../../skia/types\";\n\nimport { canvas2Polar, polar2Canvas } from \"./Coordinates\";\n\nexport const rotate = (tr: Vector, origin: Vector, rotation: number) => {\n const { radius, theta } = canvas2Polar(tr, origin);\n return polar2Canvas({ radius, theta: theta + rotation }, origin);\n};\n"]}
1
+ {"version":3,"names":["canvas2Polar","polar2Canvas","rotate","tr","origin","rotation","radius","theta"],"sources":["Transforms.ts"],"sourcesContent":["import type { Vector } from \"../../../skia/types\";\n\nimport { canvas2Polar, polar2Canvas } from \"./Coordinates\";\n\nexport const rotate = (tr: Vector, origin: Vector, rotation: number) => {\n const { radius, theta } = canvas2Polar(tr, origin);\n return polar2Canvas({ radius, theta: theta + rotation }, origin);\n};\n"],"mappings":"AAEA,SAASA,YAAT,EAAuBC,YAAvB,QAA2C,eAA3C;AAEA,OAAO,MAAMC,MAAM,GAAG,CAACC,EAAD,EAAaC,MAAb,EAA6BC,QAA7B,KAAkD;EACtE,MAAM;IAAEC,MAAF;IAAUC;EAAV,IAAoBP,YAAY,CAACG,EAAD,EAAKC,MAAL,CAAtC;EACA,OAAOH,YAAY,CAAC;IAAEK,MAAF;IAAUC,KAAK,EAAEA,KAAK,GAAGF;EAAzB,CAAD,EAAsCD,MAAtC,CAAnB;AACD,CAHM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAd;AACA,cAAc,QAAd;AACA,cAAc,cAAd","sourcesContent":["export * from \"./Coordinates\";\nexport * from \"./Math\";\nexport * from \"./Transforms\";\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Coordinates\";\nexport * from \"./Math\";\nexport * from \"./Transforms\";\n"],"mappings":"AAAA,cAAc,eAAd;AACA,cAAc,QAAd;AACA,cAAc,cAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["typeddash.ts"],"names":["mapKeys","obj","Object","keys","exhaustiveCheck","a","Error","shallowEq","p1","p2","keys1","keys2","length","key"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAOC,GAAJ,IAAeC,MAAM,CAACC,IAAP,CAAYF,GAAZ,CAA/B;AAEP,OAAO,MAAMG,eAAe,GAAIC,CAAD,IAAqB;AAClD,QAAM,IAAIC,KAAJ,CAAW,6BAA4BD,CAAE,EAAzC,CAAN;AACD,CAFM,C,CAIP;;AACA,OAAO,MAAME,SAAS,GAAG,CAAIC,EAAJ,EAAWC,EAAX,KAA8B;AACrD,QAAMC,KAAK,GAAGV,OAAO,CAACQ,EAAD,CAArB;AACA,QAAMG,KAAK,GAAGX,OAAO,CAACS,EAAD,CAArB;;AACA,MAAIC,KAAK,CAACE,MAAN,KAAiBD,KAAK,CAACC,MAA3B,EAAmC;AACjC,WAAO,KAAP;AACD;;AACD,OAAK,MAAMC,GAAX,IAAkBH,KAAlB,EAAyB;AACvB,QAAIG,GAAG,KAAK,UAAZ,EAAwB;AACtB;AACD;;AACD,QAAIL,EAAE,CAACK,GAAD,CAAF,KAAYJ,EAAE,CAACI,GAAD,CAAlB,EAAyB;AACvB,aAAO,KAAP;AACD;AACF;;AACD,SAAO,IAAP;AACD,CAfM","sourcesContent":["export const mapKeys = <T>(obj: T) => Object.keys(obj) as (keyof T)[];\n\nexport const exhaustiveCheck = (a: never): never => {\n throw new Error(`Unexhaustive handling for ${a}`);\n};\n\n// Shallow eq on props (without children)\nexport const shallowEq = <P>(p1: P, p2: P): boolean => {\n const keys1 = mapKeys(p1);\n const keys2 = mapKeys(p2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (const key of keys1) {\n if (key === \"children\") {\n continue;\n }\n if (p1[key] !== p2[key]) {\n return false;\n }\n }\n return true;\n};\n"]}
1
+ {"version":3,"names":["mapKeys","obj","Object","keys","exhaustiveCheck","a","Error","shallowEq","p1","p2","keys1","keys2","length","key"],"sources":["typeddash.ts"],"sourcesContent":["export const mapKeys = <T extends object>(obj: T) =>\n Object.keys(obj) as (keyof T)[];\n\nexport const exhaustiveCheck = (a: never): never => {\n throw new Error(`Unexhaustive handling for ${a}`);\n};\n\n// Shallow eq on props (without children)\nexport const shallowEq = <P extends object>(p1: P, p2: P): boolean => {\n const keys1 = mapKeys(p1);\n const keys2 = mapKeys(p2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (const key of keys1) {\n if (key === \"children\") {\n continue;\n }\n if (p1[key] !== p2[key]) {\n return false;\n }\n }\n return true;\n};\n"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAsBC,GAAnB,IACrBC,MAAM,CAACC,IAAP,CAAYF,GAAZ,CADK;AAGP,OAAO,MAAMG,eAAe,GAAIC,CAAD,IAAqB;EAClD,MAAM,IAAIC,KAAJ,CAAW,6BAA4BD,CAAE,EAAzC,CAAN;AACD,CAFM,C,CAIP;;AACA,OAAO,MAAME,SAAS,GAAG,CAAmBC,EAAnB,EAA0BC,EAA1B,KAA6C;EACpE,MAAMC,KAAK,GAAGV,OAAO,CAACQ,EAAD,CAArB;EACA,MAAMG,KAAK,GAAGX,OAAO,CAACS,EAAD,CAArB;;EACA,IAAIC,KAAK,CAACE,MAAN,KAAiBD,KAAK,CAACC,MAA3B,EAAmC;IACjC,OAAO,KAAP;EACD;;EACD,KAAK,MAAMC,GAAX,IAAkBH,KAAlB,EAAyB;IACvB,IAAIG,GAAG,KAAK,UAAZ,EAAwB;MACtB;IACD;;IACD,IAAIL,EAAE,CAACK,GAAD,CAAF,KAAYJ,EAAE,CAACI,GAAD,CAAlB,EAAyB;MACvB,OAAO,KAAP;IACD;EACF;;EACD,OAAO,IAAP;AACD,CAfM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["useCanvas.ts"],"names":["React","useContext","CanvasContext","createContext","CanvasProvider","Provider","useCanvas","ctx","Error"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,UAAhB,QAAkC,OAAlC;AAUA,MAAMC,aAAa,gBAAGF,KAAK,CAACG,aAAN,CAA0C,IAA1C,CAAtB;AAEA,OAAO,MAAMC,cAAc,GAAGF,aAAa,CAACG,QAArC;AAEP,OAAO,MAAMC,SAAS,GAAG,MAAM;AAC7B,QAAMC,GAAG,GAAGN,UAAU,CAACC,aAAD,CAAtB;;AACA,MAAI,CAACK,GAAL,EAAU;AACR,UAAM,IAAIC,KAAJ,CAAU,iCAAV,CAAN;AACD;;AACD,SAAOD,GAAP;AACD,CANM","sourcesContent":["import React, { useContext } from \"react\";\n\nimport type { Skia } from \"../skia/types\";\nimport type { SkiaValue } from \"../values/types\";\n\ninterface CanvasContext {\n Skia: Skia;\n size: SkiaValue<{ width: number; height: number }>;\n}\n\nconst CanvasContext = React.createContext<CanvasContext | null>(null);\n\nexport const CanvasProvider = CanvasContext.Provider;\n\nexport const useCanvas = () => {\n const ctx = useContext(CanvasContext);\n if (!ctx) {\n throw new Error(\"Canvas context is not available\");\n }\n return ctx;\n};\n"]}
1
+ {"version":3,"names":["React","useContext","CanvasContext","createContext","CanvasProvider","Provider","useCanvas","ctx","Error"],"sources":["useCanvas.ts"],"sourcesContent":["import React, { useContext } from \"react\";\n\nimport type { Skia } from \"../skia/types\";\nimport type { SkiaValue } from \"../values/types\";\n\ninterface CanvasContext {\n Skia: Skia;\n size: SkiaValue<{ width: number; height: number }>;\n}\n\nconst CanvasContext = React.createContext<CanvasContext | null>(null);\n\nexport const CanvasProvider = CanvasContext.Provider;\n\nexport const useCanvas = () => {\n const ctx = useContext(CanvasContext);\n if (!ctx) {\n throw new Error(\"Canvas context is not available\");\n }\n return ctx;\n};\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,UAAhB,QAAkC,OAAlC;AAUA,MAAMC,aAAa,gBAAGF,KAAK,CAACG,aAAN,CAA0C,IAA1C,CAAtB;AAEA,OAAO,MAAMC,cAAc,GAAGF,aAAa,CAACG,QAArC;AAEP,OAAO,MAAMC,SAAS,GAAG,MAAM;EAC7B,MAAMC,GAAG,GAAGN,UAAU,CAACC,aAAD,CAAtB;;EACA,IAAI,CAACK,GAAL,EAAU;IACR,MAAM,IAAIC,KAAJ,CAAU,iCAAV,CAAN;EACD;;EACD,OAAOD,GAAP;AACD,CANM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["useContextBridge.tsx"],"names":["React","useMemo","useContext","useContextBridge","contexts","values","map","context","children","reduceRight","acc","Context","i"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,OAAhB,EAAyBC,UAAzB,QAA2C,OAA3C;AAGA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAG,YAAiC;AAAA,oCAA7BC,QAA6B;AAA7BA,IAAAA,QAA6B;AAAA;;AAC/D,QAAMC,MAAM,GACV;AACAD,EAAAA,QAAQ,CAACE,GAAT,CAAcC,OAAD,IAAaL,UAAU,CAACK,OAAD,CAApC,CAFF;AAGA,SAAON,OAAO,CACZ,MACE;AAAA,QAAC;AAAEO,MAAAA;AAAF,KAAD;AAAA,WACEJ,QAAQ,CAACK,WAAT,CACE,CAACC,GAAD,EAAMC,OAAN,EAAeC,CAAf,kBACE,oBAAC,OAAD,CAAS,QAAT;AAAkB,MAAA,KAAK,EAAEP,MAAM,CAACO,CAAD,CAA/B;AAAoC,MAAA,QAAQ,EAAEF;AAA9C,MAFJ,EAIEF,QAJF,CADF;AAAA,GAFU,EASZ,CAACJ,QAAD,EAAWC,MAAX,CATY,CAAd;AAWD,CAfM","sourcesContent":["import React, { useMemo, useContext } from \"react\";\nimport type { ReactNode, Context, ReactElement } from \"react\";\n\n// useContextBridge() is taken from https://github.com/pmndrs/drei#usecontextbridge\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const useContextBridge = (...contexts: Context<any>[]) => {\n const values =\n // eslint-disable-next-line react-hooks/rules-of-hooks\n contexts.map((context) => useContext(context));\n return useMemo(\n () =>\n ({ children }: { children: ReactNode }) =>\n contexts.reduceRight(\n (acc, Context, i) => (\n <Context.Provider value={values[i]} children={acc} />\n ),\n children\n ) as ReactElement,\n [contexts, values]\n );\n};\n"]}
1
+ {"version":3,"names":["React","useMemo","useContext","useContextBridge","contexts","values","map","context","children","reduceRight","acc","Context","i"],"sources":["useContextBridge.tsx"],"sourcesContent":["import React, { useMemo, useContext } from \"react\";\nimport type { ReactNode, Context, ReactElement } from \"react\";\n\n// useContextBridge() is taken from https://github.com/pmndrs/drei#usecontextbridge\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const useContextBridge = (...contexts: Context<any>[]) => {\n const values =\n // eslint-disable-next-line react-hooks/rules-of-hooks\n contexts.map((context) => useContext(context));\n return useMemo(\n () =>\n ({ children }: { children: ReactNode }) =>\n contexts.reduceRight(\n (acc, Context, i) => (\n <Context.Provider value={values[i]} children={acc} />\n ),\n children\n ) as ReactElement,\n [contexts, values]\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,OAAhB,EAAyBC,UAAzB,QAA2C,OAA3C;AAGA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAG,YAAiC;EAAA,kCAA7BC,QAA6B;IAA7BA,QAA6B;EAAA;;EAC/D,MAAMC,MAAM,GACV;EACAD,QAAQ,CAACE,GAAT,CAAcC,OAAD,IAAaL,UAAU,CAACK,OAAD,CAApC,CAFF;EAGA,OAAON,OAAO,CACZ,MACE;IAAA,IAAC;MAAEO;IAAF,CAAD;IAAA,OACEJ,QAAQ,CAACK,WAAT,CACE,CAACC,GAAD,EAAMC,OAAN,EAAeC,CAAf,kBACE,oBAAC,OAAD,CAAS,QAAT;MAAkB,KAAK,EAAEP,MAAM,CAACO,CAAD,CAA/B;MAAoC,QAAQ,EAAEF;IAA9C,EAFJ,EAIEF,QAJF,CADF;EAAA,CAFU,EASZ,CAACJ,QAAD,EAAWC,MAAX,CATY,CAAd;AAWD,CAfM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["NativeSetup.ts"],"names":["NativeModules","Platform","OS","global","SkiaApi","SkiaModule","RNSkia","install","Error","result"],"mappings":"AAAA,SAASA,aAAT,EAAwBC,QAAxB,QAAwC,cAAxC;;AAEA,IAAIA,QAAQ,CAACC,EAAT,KAAgB,KAAhB,IAAyBC,MAAM,CAACC,OAAP,IAAkB,IAA/C,EAAqD;AACnD;AACA,QAAMC,UAAU,GAAGL,aAAa,CAACM,MAAjC;;AACA,MAAID,UAAU,IAAI,IAAd,IAAsB,OAAOA,UAAU,CAACE,OAAlB,KAA8B,UAAxD,EAAoE;AAClE,UAAM,IAAIC,KAAJ,CACJ,mEACE,qDAFE,CAAN;AAID;;AACD,QAAMC,MAAM,GAAGJ,UAAU,CAACE,OAAX,EAAf;;AACA,MAAIE,MAAM,KAAK,IAAf,EAAqB;AACnB,UAAM,IAAID,KAAJ,CACH,wEAAuEC,MAAO,EAD3E,CAAN;AAGD;AACF","sourcesContent":["import { NativeModules, Platform } from \"react-native\";\n\nif (Platform.OS !== \"web\" && global.SkiaApi == null) {\n // Initialize RN Skia\n const SkiaModule = NativeModules.RNSkia;\n if (SkiaModule == null || typeof SkiaModule.install !== \"function\") {\n throw new Error(\n \"Native RNSkia Module cannot be found! Make sure you correctly \" +\n \"installed native dependencies and rebuilt your app.\"\n );\n }\n const result = SkiaModule.install();\n if (result !== true) {\n throw new Error(\n `Native Skia Module failed to correctly install JSI Bindings! Result: ${result}`\n );\n }\n}\n"]}
1
+ {"version":3,"names":["NativeModules","Platform","OS","global","SkiaApi","SkiaModule","RNSkia","install","Error","result"],"sources":["NativeSetup.ts"],"sourcesContent":["import { NativeModules, Platform } from \"react-native\";\n\nif (Platform.OS !== \"web\" && global.SkiaApi == null) {\n // Initialize RN Skia\n const SkiaModule = NativeModules.RNSkia;\n if (SkiaModule == null || typeof SkiaModule.install !== \"function\") {\n throw new Error(\n \"Native RNSkia Module cannot be found! Make sure you correctly \" +\n \"installed native dependencies and rebuilt your app.\"\n );\n }\n const result = SkiaModule.install();\n if (result !== true) {\n throw new Error(\n `Native Skia Module failed to correctly install JSI Bindings! Result: ${result}`\n );\n }\n}\n"],"mappings":"AAAA,SAASA,aAAT,EAAwBC,QAAxB,QAAwC,cAAxC;;AAEA,IAAIA,QAAQ,CAACC,EAAT,KAAgB,KAAhB,IAAyBC,MAAM,CAACC,OAAP,IAAkB,IAA/C,EAAqD;EACnD;EACA,MAAMC,UAAU,GAAGL,aAAa,CAACM,MAAjC;;EACA,IAAID,UAAU,IAAI,IAAd,IAAsB,OAAOA,UAAU,CAACE,OAAlB,KAA8B,UAAxD,EAAoE;IAClE,MAAM,IAAIC,KAAJ,CACJ,mEACE,qDAFE,CAAN;EAID;;EACD,MAAMC,MAAM,GAAGJ,UAAU,CAACE,OAAX,EAAf;;EACA,IAAIE,MAAM,KAAK,IAAf,EAAqB;IACnB,MAAM,IAAID,KAAJ,CACH,wEAAuEC,MAAO,EAD3E,CAAN;EAGD;AACF"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Skia.ts"],"names":["Skia","SkiaApi"],"mappings":"AAAA;;AAGA;AACA;AACA;AAKA,OAAO,MAAMA,IAAI,GAAGC,OAAb","sourcesContent":["/*global SkiaApi*/\nimport type { Skia as SkSkiaApi } from \"./types\";\n\n/**\n * Declares the SkiaApi as an available object in the global scope\n */\ndeclare global {\n var SkiaApi: SkSkiaApi;\n}\n\nexport const Skia = SkiaApi;\n"]}
1
+ {"version":3,"names":["Skia","SkiaApi"],"sources":["Skia.ts"],"sourcesContent":["/*global SkiaApi*/\nimport type { Skia as SkSkiaApi } from \"./types\";\n\n/**\n * Declares the SkiaApi as an available object in the global scope\n */\ndeclare global {\n var SkiaApi: SkSkiaApi;\n}\n\nexport const Skia = SkiaApi;\n"],"mappings":"AAAA;;AAGA;AACA;AACA;AAKA,OAAO,MAAMA,IAAI,GAAGC,OAAb"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Skia.web.ts"],"names":["JsiSkApi","Skia","global","CanvasKit"],"mappings":"AAAA,SAASA,QAAT,QAAyB,OAAzB;AAEA,OAAO,MAAMC,IAAI,GAAGD,QAAQ,CAACE,MAAM,CAACC,SAAR,CAArB","sourcesContent":["import { JsiSkApi } from \"./web\";\n\nexport const Skia = JsiSkApi(global.CanvasKit);\n"]}
1
+ {"version":3,"names":["JsiSkApi","Skia","global","CanvasKit"],"sources":["Skia.web.ts"],"sourcesContent":["import { JsiSkApi } from \"./web\";\n\nexport const Skia = JsiSkApi(global.CanvasKit);\n"],"mappings":"AAAA,SAASA,QAAT,QAAyB,OAAzB;AAEA,OAAO,MAAMC,IAAI,GAAGD,QAAQ,CAACE,MAAM,CAACC,SAAR,CAArB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Data.ts"],"names":["useEffect","useRef","useState","Image","Skia","isRNModule","resolveAsset","source","resolveAssetSource","uri","default","factoryWrapper","data2","factory","onError","factoryResult","Error","loadData","undefined","Promise","resolve","Uint8Array","Data","fromBytes","fromURI","then","d","useLoading","loader","mounted","data","setData","current","value","useRawData","identity","useData"],"mappings":"AAAA,SAASA,SAAT,EAAoBC,MAApB,EAA4BC,QAA5B,QAA4C,OAA5C;AACA,SAASC,KAAT,QAAsB,cAAtB;AAEA,SAASC,IAAT,QAAqB,SAArB;AACA,SAASC,UAAT,QAA2B,UAA3B;;AAGA,MAAMC,YAAY,GAAIC,MAAD,IAAwB;AAC3C,SAAOF,UAAU,CAACE,MAAD,CAAV,GACHJ,KAAK,CAACK,kBAAN,CAAyBD,MAAzB,EAAiCE,GAD9B,GAEHF,MAAM,CAACG,OAFX;AAGD,CAJD;;AAMA,MAAMC,cAAc,GAAG,CACrBC,KADqB,EAErBC,OAFqB,EAGrBC,OAHqB,KAIlB;AACH,QAAMC,aAAa,GAAGF,OAAO,CAACD,KAAD,CAA7B;;AACA,MAAIG,aAAa,KAAK,IAAtB,EAA4B;AAC1BD,IAAAA,OAAO,IAAIA,OAAO,CAAC,IAAIE,KAAJ,CAAU,qBAAV,CAAD,CAAlB;AACA,WAAO,IAAP;AACD,GAHD,MAGO;AACL,WAAOD,aAAP;AACD;AACF,CAZD;;AAcA,MAAME,QAAQ,GAAG,CACfV,MADe,EAEfM,OAFe,EAGfC,OAHe,KAIO;AACtB,MAAIP,MAAM,KAAK,IAAX,IAAmBA,MAAM,KAAKW,SAAlC,EAA6C;AAC3C,WAAO,IAAIC,OAAJ,CAAaC,OAAD,IAAaA,OAAO,CAAC,IAAD,CAAhC,CAAP;AACD,GAFD,MAEO,IAAIb,MAAM,YAAYc,UAAtB,EAAkC;AACvC,WAAO,IAAIF,OAAJ,CAAaC,OAAD,IACjBA,OAAO,CAACT,cAAc,CAACP,IAAI,CAACkB,IAAL,CAAUC,SAAV,CAAoBhB,MAApB,CAAD,EAA8BM,OAA9B,EAAuCC,OAAvC,CAAf,CADF,CAAP;AAGD,GAJM,MAIA;AACL,UAAML,GAAG,GAAG,OAAOF,MAAP,KAAkB,QAAlB,GAA6BA,MAA7B,GAAsCD,YAAY,CAACC,MAAD,CAA9D;AACA,WAAOH,IAAI,CAACkB,IAAL,CAAUE,OAAV,CAAkBf,GAAlB,EAAuBgB,IAAvB,CAA6BC,CAAD,IACjCf,cAAc,CAACe,CAAD,EAAIb,OAAJ,EAAaC,OAAb,CADT,CAAP;AAGD;AACF,CAjBD;;AAkBA,MAAMa,UAAU,GAAG,CACjBpB,MADiB,EAEjBqB,MAFiB,KAGd;AACH,QAAMC,OAAO,GAAG5B,MAAM,CAAC,KAAD,CAAtB;AACA,QAAM,CAAC6B,IAAD,EAAOC,OAAP,IAAkB7B,QAAQ,CAAW,IAAX,CAAhC;AACAF,EAAAA,SAAS,CAAC,MAAM;AACd6B,IAAAA,OAAO,CAACG,OAAR,GAAkB,IAAlB;AACAJ,IAAAA,MAAM,GAAGH,IAAT,CAAeQ,KAAD,IAAW;AACvB,UAAIJ,OAAO,CAACG,OAAZ,EAAqB;AACnBD,QAAAA,OAAO,CAACE,KAAD,CAAP;AACD;AACF,KAJD;AAKA,WAAO,MAAM;AACXJ,MAAAA,OAAO,CAACG,OAAR,GAAkB,KAAlB;AACD,KAFD,CAPc,CAUd;AACD,GAXQ,EAWN,CAACzB,MAAD,CAXM,CAAT;AAYA,SAAOuB,IAAP;AACD,CAnBD;;AAqBA,OAAO,MAAMI,UAAU,GAAG,CACxB3B,MADwB,EAExBM,OAFwB,EAGxBC,OAHwB,KAIrBa,UAAU,CAACpB,MAAD,EAAS,MAAMU,QAAQ,CAACV,MAAD,EAASM,OAAT,EAAkBC,OAAlB,CAAvB,CAJR;;AAMP,MAAMqB,QAAQ,GAAIL,IAAD,IAAkBA,IAAnC;;AAEA,OAAO,MAAMM,OAAO,GAAG,CACrB7B,MADqB,EAErBO,OAFqB,KAGlBoB,UAAU,CAAC3B,MAAD,EAAS4B,QAAT,EAAmBrB,OAAnB,CAHR","sourcesContent":["import { useEffect, useRef, useState } from \"react\";\nimport { Image } from \"react-native\";\n\nimport { Skia } from \"../Skia\";\nimport { isRNModule } from \"../types\";\nimport type { SkData, DataModule, DataSourceParam } from \"../types\";\n\nconst resolveAsset = (source: DataModule) => {\n return isRNModule(source)\n ? Image.resolveAssetSource(source).uri\n : source.default;\n};\n\nconst factoryWrapper = <T>(\n data2: SkData,\n factory: (data: SkData) => T,\n onError?: (err: Error) => void\n) => {\n const factoryResult = factory(data2);\n if (factoryResult === null) {\n onError && onError(new Error(\"Could not load data\"));\n return null;\n } else {\n return factoryResult;\n }\n};\n\nconst loadData = <T>(\n source: DataSourceParam,\n factory: (data: SkData) => T,\n onError?: (err: Error) => void\n): Promise<T | null> => {\n if (source === null || source === undefined) {\n return new Promise((resolve) => resolve(null));\n } else if (source instanceof Uint8Array) {\n return new Promise((resolve) =>\n resolve(factoryWrapper(Skia.Data.fromBytes(source), factory, onError))\n );\n } else {\n const uri = typeof source === \"string\" ? source : resolveAsset(source);\n return Skia.Data.fromURI(uri).then((d) =>\n factoryWrapper(d, factory, onError)\n );\n }\n};\nconst useLoading = <T>(\n source: DataSourceParam,\n loader: () => Promise<T | null>\n) => {\n const mounted = useRef(false);\n const [data, setData] = useState<T | null>(null);\n useEffect(() => {\n mounted.current = true;\n loader().then((value) => {\n if (mounted.current) {\n setData(value);\n }\n });\n return () => {\n mounted.current = false;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [source]);\n return data;\n};\n\nexport const useRawData = <T>(\n source: DataSourceParam,\n factory: (data: SkData) => T,\n onError?: (err: Error) => void\n) => useLoading(source, () => loadData(source, factory, onError));\n\nconst identity = (data: SkData) => data;\n\nexport const useData = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, identity, onError);\n"]}
1
+ {"version":3,"names":["useEffect","useRef","useState","Image","Skia","isRNModule","resolveAsset","source","resolveAssetSource","uri","default","factoryWrapper","data2","factory","onError","factoryResult","Error","loadData","undefined","Promise","resolve","Uint8Array","Data","fromBytes","fromURI","then","d","useLoading","loader","mounted","data","setData","current","value","useRawData","identity","useData"],"sources":["Data.ts"],"sourcesContent":["import { useEffect, useRef, useState } from \"react\";\nimport { Image } from \"react-native\";\n\nimport { Skia } from \"../Skia\";\nimport { isRNModule } from \"../types\";\nimport type { SkData, DataModule, DataSourceParam } from \"../types\";\n\nconst resolveAsset = (source: DataModule) => {\n return isRNModule(source)\n ? Image.resolveAssetSource(source).uri\n : source.default;\n};\n\nconst factoryWrapper = <T>(\n data2: SkData,\n factory: (data: SkData) => T,\n onError?: (err: Error) => void\n) => {\n const factoryResult = factory(data2);\n if (factoryResult === null) {\n onError && onError(new Error(\"Could not load data\"));\n return null;\n } else {\n return factoryResult;\n }\n};\n\nconst loadData = <T>(\n source: DataSourceParam,\n factory: (data: SkData) => T,\n onError?: (err: Error) => void\n): Promise<T | null> => {\n if (source === null || source === undefined) {\n return new Promise((resolve) => resolve(null));\n } else if (source instanceof Uint8Array) {\n return new Promise((resolve) =>\n resolve(factoryWrapper(Skia.Data.fromBytes(source), factory, onError))\n );\n } else {\n const uri = typeof source === \"string\" ? source : resolveAsset(source);\n return Skia.Data.fromURI(uri).then((d) =>\n factoryWrapper(d, factory, onError)\n );\n }\n};\nconst useLoading = <T>(\n source: DataSourceParam,\n loader: () => Promise<T | null>\n) => {\n const mounted = useRef(false);\n const [data, setData] = useState<T | null>(null);\n useEffect(() => {\n mounted.current = true;\n loader().then((value) => {\n if (mounted.current) {\n setData(value);\n }\n });\n return () => {\n mounted.current = false;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [source]);\n return data;\n};\n\nexport const useRawData = <T>(\n source: DataSourceParam,\n factory: (data: SkData) => T,\n onError?: (err: Error) => void\n) => useLoading(source, () => loadData(source, factory, onError));\n\nconst identity = (data: SkData) => data;\n\nexport const useData = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, identity, onError);\n"],"mappings":"AAAA,SAASA,SAAT,EAAoBC,MAApB,EAA4BC,QAA5B,QAA4C,OAA5C;AACA,SAASC,KAAT,QAAsB,cAAtB;AAEA,SAASC,IAAT,QAAqB,SAArB;AACA,SAASC,UAAT,QAA2B,UAA3B;;AAGA,MAAMC,YAAY,GAAIC,MAAD,IAAwB;EAC3C,OAAOF,UAAU,CAACE,MAAD,CAAV,GACHJ,KAAK,CAACK,kBAAN,CAAyBD,MAAzB,EAAiCE,GAD9B,GAEHF,MAAM,CAACG,OAFX;AAGD,CAJD;;AAMA,MAAMC,cAAc,GAAG,CACrBC,KADqB,EAErBC,OAFqB,EAGrBC,OAHqB,KAIlB;EACH,MAAMC,aAAa,GAAGF,OAAO,CAACD,KAAD,CAA7B;;EACA,IAAIG,aAAa,KAAK,IAAtB,EAA4B;IAC1BD,OAAO,IAAIA,OAAO,CAAC,IAAIE,KAAJ,CAAU,qBAAV,CAAD,CAAlB;IACA,OAAO,IAAP;EACD,CAHD,MAGO;IACL,OAAOD,aAAP;EACD;AACF,CAZD;;AAcA,MAAME,QAAQ,GAAG,CACfV,MADe,EAEfM,OAFe,EAGfC,OAHe,KAIO;EACtB,IAAIP,MAAM,KAAK,IAAX,IAAmBA,MAAM,KAAKW,SAAlC,EAA6C;IAC3C,OAAO,IAAIC,OAAJ,CAAaC,OAAD,IAAaA,OAAO,CAAC,IAAD,CAAhC,CAAP;EACD,CAFD,MAEO,IAAIb,MAAM,YAAYc,UAAtB,EAAkC;IACvC,OAAO,IAAIF,OAAJ,CAAaC,OAAD,IACjBA,OAAO,CAACT,cAAc,CAACP,IAAI,CAACkB,IAAL,CAAUC,SAAV,CAAoBhB,MAApB,CAAD,EAA8BM,OAA9B,EAAuCC,OAAvC,CAAf,CADF,CAAP;EAGD,CAJM,MAIA;IACL,MAAML,GAAG,GAAG,OAAOF,MAAP,KAAkB,QAAlB,GAA6BA,MAA7B,GAAsCD,YAAY,CAACC,MAAD,CAA9D;IACA,OAAOH,IAAI,CAACkB,IAAL,CAAUE,OAAV,CAAkBf,GAAlB,EAAuBgB,IAAvB,CAA6BC,CAAD,IACjCf,cAAc,CAACe,CAAD,EAAIb,OAAJ,EAAaC,OAAb,CADT,CAAP;EAGD;AACF,CAjBD;;AAkBA,MAAMa,UAAU,GAAG,CACjBpB,MADiB,EAEjBqB,MAFiB,KAGd;EACH,MAAMC,OAAO,GAAG5B,MAAM,CAAC,KAAD,CAAtB;EACA,MAAM,CAAC6B,IAAD,EAAOC,OAAP,IAAkB7B,QAAQ,CAAW,IAAX,CAAhC;EACAF,SAAS,CAAC,MAAM;IACd6B,OAAO,CAACG,OAAR,GAAkB,IAAlB;IACAJ,MAAM,GAAGH,IAAT,CAAeQ,KAAD,IAAW;MACvB,IAAIJ,OAAO,CAACG,OAAZ,EAAqB;QACnBD,OAAO,CAACE,KAAD,CAAP;MACD;IACF,CAJD;IAKA,OAAO,MAAM;MACXJ,OAAO,CAACG,OAAR,GAAkB,KAAlB;IACD,CAFD,CAPc,CAUd;EACD,CAXQ,EAWN,CAACzB,MAAD,CAXM,CAAT;EAYA,OAAOuB,IAAP;AACD,CAnBD;;AAqBA,OAAO,MAAMI,UAAU,GAAG,CACxB3B,MADwB,EAExBM,OAFwB,EAGxBC,OAHwB,KAIrBa,UAAU,CAACpB,MAAD,EAAS,MAAMU,QAAQ,CAACV,MAAD,EAASM,OAAT,EAAkBC,OAAlB,CAAvB,CAJR;;AAMP,MAAMqB,QAAQ,GAAIL,IAAD,IAAkBA,IAAnC;;AAEA,OAAO,MAAMM,OAAO,GAAG,CACrB7B,MADqB,EAErBO,OAFqB,KAGlBoB,UAAU,CAAC3B,MAAD,EAAS4B,QAAT,EAAmBrB,OAAnB,CAHR"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Font.ts"],"names":["useMemo","Skia","useTypeface","useFont","font","size","onError","typeface","Font"],"mappings":"AAAA;AACA,SAASA,OAAT,QAAwB,OAAxB;AAEA,SAASC,IAAT,QAAqB,SAArB;AAGA,SAASC,WAAT,QAA4B,YAA5B;AAEA;AACA;AACA;;AACA,OAAO,MAAMC,OAAO,GAAG,CACrBC,IADqB,EAErBC,IAFqB,EAGrBC,OAHqB,KAIlB;AACH,QAAMC,QAAQ,GAAGL,WAAW,CAACE,IAAD,EAAOE,OAAP,CAA5B;AACA,SAAON,OAAO,CAAC,MAAM;AACnB,QAAIO,QAAQ,IAAIF,IAAhB,EAAsB;AACpB,aAAOJ,IAAI,CAACO,IAAL,CAAUD,QAAV,EAAoBF,IAApB,CAAP;AACD,KAFD,MAEO,IAAIE,QAAQ,IAAI,CAACF,IAAjB,EAAuB;AAC5B,aAAOJ,IAAI,CAACO,IAAL,CAAUD,QAAV,CAAP;AACD,KAFM,MAEA;AACL,aAAO,IAAP;AACD;AACF,GARa,EAQX,CAACF,IAAD,EAAOE,QAAP,CARW,CAAd;AASD,CAfM","sourcesContent":["/*global SkiaApi*/\nimport { useMemo } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useTypeface } from \"./Typeface\";\n\n/**\n * Returns a Skia Font object\n * */\nexport const useFont = (\n font: DataSourceParam,\n size?: number,\n onError?: (err: Error) => void\n) => {\n const typeface = useTypeface(font, onError);\n return useMemo(() => {\n if (typeface && size) {\n return Skia.Font(typeface, size);\n } else if (typeface && !size) {\n return Skia.Font(typeface);\n } else {\n return null;\n }\n }, [size, typeface]);\n};\n"]}
1
+ {"version":3,"names":["useMemo","Skia","useTypeface","useFont","font","size","onError","typeface","Font"],"sources":["Font.ts"],"sourcesContent":["/*global SkiaApi*/\nimport { useMemo } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useTypeface } from \"./Typeface\";\n\n/**\n * Returns a Skia Font object\n * */\nexport const useFont = (\n font: DataSourceParam,\n size?: number,\n onError?: (err: Error) => void\n) => {\n const typeface = useTypeface(font, onError);\n return useMemo(() => {\n if (typeface && size) {\n return Skia.Font(typeface, size);\n } else if (typeface && !size) {\n return Skia.Font(typeface);\n } else {\n return null;\n }\n }, [size, typeface]);\n};\n"],"mappings":"AAAA;AACA,SAASA,OAAT,QAAwB,OAAxB;AAEA,SAASC,IAAT,QAAqB,SAArB;AAGA,SAASC,WAAT,QAA4B,YAA5B;AAEA;AACA;AACA;;AACA,OAAO,MAAMC,OAAO,GAAG,CACrBC,IADqB,EAErBC,IAFqB,EAGrBC,OAHqB,KAIlB;EACH,MAAMC,QAAQ,GAAGL,WAAW,CAACE,IAAD,EAAOE,OAAP,CAA5B;EACA,OAAON,OAAO,CAAC,MAAM;IACnB,IAAIO,QAAQ,IAAIF,IAAhB,EAAsB;MACpB,OAAOJ,IAAI,CAACO,IAAL,CAAUD,QAAV,EAAoBF,IAApB,CAAP;IACD,CAFD,MAEO,IAAIE,QAAQ,IAAI,CAACF,IAAjB,EAAuB;MAC5B,OAAOJ,IAAI,CAACO,IAAL,CAAUD,QAAV,CAAP;IACD,CAFM,MAEA;MACL,OAAO,IAAP;IACD;EACF,CARa,EAQX,CAACF,IAAD,EAAOE,QAAP,CARW,CAAd;AASD,CAfM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Image.ts"],"names":["Skia","useRawData","imgFactory","Image","MakeImageFromEncoded","bind","useImage","source","onError"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,SAASC,UAAT,QAA2B,QAA3B;AAEA,MAAMC,UAAU,GAAGF,IAAI,CAACG,KAAL,CAAWC,oBAAX,CAAgCC,IAAhC,CAAqCL,IAAI,CAACG,KAA1C,CAAnB;AAEA;AACA;AACA;;AACA,OAAO,MAAMG,QAAQ,GAAG,CACtBC,MADsB,EAEtBC,OAFsB,KAGnBP,UAAU,CAACM,MAAD,EAASL,UAAT,EAAqBM,OAArB,CAHR","sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst imgFactory = Skia.Image.MakeImageFromEncoded.bind(Skia.Image);\n\n/**\n * Returns a Skia Image object\n * */\nexport const useImage = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, imgFactory, onError);\n"]}
1
+ {"version":3,"names":["Skia","useRawData","imgFactory","Image","MakeImageFromEncoded","bind","useImage","source","onError"],"sources":["Image.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst imgFactory = Skia.Image.MakeImageFromEncoded.bind(Skia.Image);\n\n/**\n * Returns a Skia Image object\n * */\nexport const useImage = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, imgFactory, onError);\n"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,SAASC,UAAT,QAA2B,QAA3B;AAEA,MAAMC,UAAU,GAAGF,IAAI,CAACG,KAAL,CAAWC,oBAAX,CAAgCC,IAAhC,CAAqCL,IAAI,CAACG,KAA1C,CAAnB;AAEA;AACA;AACA;;AACA,OAAO,MAAMG,QAAQ,GAAG,CACtBC,MADsB,EAEtBC,OAFsB,KAGnBP,UAAU,CAACM,MAAD,EAASL,UAAT,EAAqBM,OAArB,CAHR"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Matrix.ts"],"names":["Skia","processTransform","processTransform2d","transforms","Matrix"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAEA,SAASC,gBAAT,QAAiC,UAAjC;AAEA,OAAO,MAAMC,kBAAkB,GAAIC,UAAD,IAChCF,gBAAgB,CAACD,IAAI,CAACI,MAAL,EAAD,EAAgBD,UAAhB,CADX","sourcesContent":["import { Skia } from \"../Skia\";\nimport type { Transforms2d } from \"../types\";\nimport { processTransform } from \"../types\";\n\nexport const processTransform2d = (transforms: Transforms2d) =>\n processTransform(Skia.Matrix(), transforms);\n"]}
1
+ {"version":3,"names":["Skia","processTransform","processTransform2d","transforms","Matrix"],"sources":["Matrix.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { Transforms2d } from \"../types\";\nimport { processTransform } from \"../types\";\n\nexport const processTransform2d = (transforms: Transforms2d) =>\n processTransform(Skia.Matrix(), transforms);\n"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAEA,SAASC,gBAAT,QAAiC,UAAjC;AAEA,OAAO,MAAMC,kBAAkB,GAAIC,UAAD,IAChCF,gBAAgB,CAACD,IAAI,CAACI,MAAL,EAAD,EAAgBD,UAAhB,CADX"}
@@ -9,11 +9,25 @@ import { Skia } from "../Skia";
9
9
  */
10
10
  export const usePicture = function (rect, cb) {
11
11
  let deps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
12
+ console.warn("usePicture() is deprecated. Use createPicture() instead.");
12
13
  return useMemo(() => {
13
14
  const recorder = Skia.PictureRecorder();
14
15
  const canvas = recorder.beginRecording(rect);
15
16
  cb(canvas);
16
17
  return recorder.finishRecordingAsPicture(); // eslint-disable-next-line react-hooks/exhaustive-deps
17
- }, [cb, rect, deps]);
18
+ }, deps);
19
+ };
20
+ /**
21
+ * Memoizes and returns an SkPicture that can be drawn to another canvas.
22
+ * @param rect Picture bounds
23
+ * @param cb Callback for drawing to the canvas
24
+ * @returns SkPicture
25
+ */
26
+
27
+ export const createPicture = (rect, cb) => {
28
+ const recorder = Skia.PictureRecorder();
29
+ const canvas = recorder.beginRecording(rect);
30
+ cb(canvas);
31
+ return recorder.finishRecordingAsPicture();
18
32
  };
19
33
  //# sourceMappingURL=Picture.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Picture.ts"],"names":["useMemo","Skia","usePicture","rect","cb","deps","recorder","PictureRecorder","canvas","beginRecording","finishRecordingAsPicture"],"mappings":"AACA,SAASA,OAAT,QAAwB,OAAxB;AAEA,SAASC,IAAT,QAAqB,SAArB;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,GAAG,UACxBC,IADwB,EAExBC,EAFwB,EAIV;AAAA,MADdC,IACc,uEADS,EACT;AACd,SAAOL,OAAO,CAAC,MAAM;AACnB,UAAMM,QAAQ,GAAGL,IAAI,CAACM,eAAL,EAAjB;AACA,UAAMC,MAAM,GAAGF,QAAQ,CAACG,cAAT,CAAwBN,IAAxB,CAAf;AACAC,IAAAA,EAAE,CAACI,MAAD,CAAF;AACA,WAAOF,QAAQ,CAACI,wBAAT,EAAP,CAJmB,CAKnB;AACD,GANa,EAMX,CAACN,EAAD,EAAKD,IAAL,EAAWE,IAAX,CANW,CAAd;AAOD,CAZM","sourcesContent":["import type { DependencyList } from \"react\";\nimport { useMemo } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport type { SkCanvas, SkPicture, SkRect } from \"../types\";\n\n/**\n * Memoizes and returns an SkPicture that can be drawn to another canvas.\n * @param rect Picture bounds\n * @param cb Callback for drawing to the canvas\n * @returns SkPicture\n */\nexport const usePicture = (\n rect: SkRect,\n cb: (canvas: SkCanvas) => void,\n deps: DependencyList = []\n): SkPicture => {\n return useMemo(() => {\n const recorder = Skia.PictureRecorder();\n const canvas = recorder.beginRecording(rect);\n cb(canvas);\n return recorder.finishRecordingAsPicture();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [cb, rect, deps]);\n};\n"]}
1
+ {"version":3,"names":["useMemo","Skia","usePicture","rect","cb","deps","console","warn","recorder","PictureRecorder","canvas","beginRecording","finishRecordingAsPicture","createPicture"],"sources":["Picture.ts"],"sourcesContent":["import type { DependencyList } from \"react\";\nimport { useMemo } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport type { SkCanvas, SkRect } from \"../types\";\n\n/**\n * Memoizes and returns an SkPicture that can be drawn to another canvas.\n * @param rect Picture bounds\n * @param cb Callback for drawing to the canvas\n * @returns SkPicture\n */\nexport const usePicture = (\n rect: SkRect,\n cb: (canvas: SkCanvas) => void,\n deps: DependencyList = []\n) => {\n console.warn(\"usePicture() is deprecated. Use createPicture() instead.\");\n return useMemo(() => {\n const recorder = Skia.PictureRecorder();\n const canvas = recorder.beginRecording(rect);\n cb(canvas);\n return recorder.finishRecordingAsPicture();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n};\n\n/**\n * Memoizes and returns an SkPicture that can be drawn to another canvas.\n * @param rect Picture bounds\n * @param cb Callback for drawing to the canvas\n * @returns SkPicture\n */\nexport const createPicture = (rect: SkRect, cb: (canvas: SkCanvas) => void) => {\n const recorder = Skia.PictureRecorder();\n const canvas = recorder.beginRecording(rect);\n cb(canvas);\n return recorder.finishRecordingAsPicture();\n};\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,OAAxB;AAEA,SAASC,IAAT,QAAqB,SAArB;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,GAAG,UACxBC,IADwB,EAExBC,EAFwB,EAIrB;EAAA,IADHC,IACG,uEADoB,EACpB;EACHC,OAAO,CAACC,IAAR,CAAa,0DAAb;EACA,OAAOP,OAAO,CAAC,MAAM;IACnB,MAAMQ,QAAQ,GAAGP,IAAI,CAACQ,eAAL,EAAjB;IACA,MAAMC,MAAM,GAAGF,QAAQ,CAACG,cAAT,CAAwBR,IAAxB,CAAf;IACAC,EAAE,CAACM,MAAD,CAAF;IACA,OAAOF,QAAQ,CAACI,wBAAT,EAAP,CAJmB,CAKnB;EACD,CANa,EAMXP,IANW,CAAd;AAOD,CAbM;AAeP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMQ,aAAa,GAAG,CAACV,IAAD,EAAeC,EAAf,KAAkD;EAC7E,MAAMI,QAAQ,GAAGP,IAAI,CAACQ,eAAL,EAAjB;EACA,MAAMC,MAAM,GAAGF,QAAQ,CAACG,cAAT,CAAwBR,IAAxB,CAAf;EACAC,EAAE,CAACM,MAAD,CAAF;EACA,OAAOF,QAAQ,CAACI,wBAAT,EAAP;AACD,CALM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["RRect.tsx"],"names":["Skia","rrect","r","rx","ry","RRectXY"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,OAAO,MAAMC,KAAK,GAAG,CAACC,CAAD,EAAYC,EAAZ,EAAwBC,EAAxB,KACnBJ,IAAI,CAACK,OAAL,CAAaH,CAAb,EAAgBC,EAAhB,EAAoBC,EAApB,CADK","sourcesContent":["import { Skia } from \"../Skia\";\nimport type { SkRect } from \"../types\";\n\nexport const rrect = (r: SkRect, rx: number, ry: number) =>\n Skia.RRectXY(r, rx, ry);\n"]}
1
+ {"version":3,"names":["Skia","rrect","r","rx","ry","RRectXY"],"sources":["RRect.tsx"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { SkRect } from \"../types\";\n\nexport const rrect = (r: SkRect, rx: number, ry: number) =>\n Skia.RRectXY(r, rx, ry);\n"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,OAAO,MAAMC,KAAK,GAAG,CAACC,CAAD,EAAYC,EAAZ,EAAwBC,EAAxB,KACnBJ,IAAI,CAACK,OAAL,CAAaH,CAAb,EAAgBC,EAAhB,EAAoBC,EAApB,CADK"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Rect.ts"],"names":["Skia","isRRect","vec","rect","x","y","width","height","XYWHRect","bounds","rects","Math","min","map","r","max","topLeft","topRight","bottomLeft","bottomRight","center"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAEA,SAASC,OAAT,QAAwB,UAAxB;AAEA,SAASC,GAAT,QAAoB,UAApB;AAEA,OAAO,MAAMC,IAAI,GAAG,CAACC,CAAD,EAAYC,CAAZ,EAAuBC,KAAvB,EAAsCC,MAAtC,KAClBP,IAAI,CAACQ,QAAL,CAAcJ,CAAd,EAAiBC,CAAjB,EAAoBC,KAApB,EAA2BC,MAA3B,CADK;AAGP,OAAO,MAAME,MAAM,GAAIC,KAAD,IAAqB;AACzC,QAAMN,CAAC,GAAGO,IAAI,CAACC,GAAL,CAAS,GAAGF,KAAK,CAACG,GAAN,CAAWC,CAAD,IAAOA,CAAC,CAACV,CAAnB,CAAZ,CAAV;AACA,QAAMC,CAAC,GAAGM,IAAI,CAACC,GAAL,CAAS,GAAGF,KAAK,CAACG,GAAN,CAAWC,CAAD,IAAOA,CAAC,CAACT,CAAnB,CAAZ,CAAV;AACA,QAAMC,KAAK,GAAGK,IAAI,CAACI,GAAL,CAAS,GAAGL,KAAK,CAACG,GAAN,CAAWC,CAAD,IAAOA,CAAC,CAACV,CAAF,GAAMU,CAAC,CAACR,KAAzB,CAAZ,CAAd;AACA,QAAMC,MAAM,GAAGI,IAAI,CAACI,GAAL,CAAS,GAAGL,KAAK,CAACG,GAAN,CAAWC,CAAD,IAAOA,CAAC,CAACT,CAAF,GAAMS,CAAC,CAACP,MAAzB,CAAZ,CAAf;AACA,SAAOJ,IAAI,CAACC,CAAD,EAAIC,CAAJ,EAAOC,KAAP,EAAcC,MAAd,CAAX;AACD,CANM;AAQP,OAAO,MAAMS,OAAO,GAAIF,CAAD,IACrBb,OAAO,CAACa,CAAD,CAAP,GAAaZ,GAAG,CAACY,CAAC,CAACX,IAAF,CAAOC,CAAR,EAAWU,CAAC,CAACX,IAAF,CAAOE,CAAlB,CAAhB,GAAuCH,GAAG,CAACY,CAAC,CAACV,CAAH,EAAMU,CAAC,CAACT,CAAR,CADrC;AAEP,OAAO,MAAMY,QAAQ,GAAIH,CAAD,IACtBb,OAAO,CAACa,CAAD,CAAP,GAAaZ,GAAG,CAACY,CAAC,CAACX,IAAF,CAAOC,CAAP,GAAWU,CAAC,CAACX,IAAF,CAAOG,KAAnB,EAA0BQ,CAAC,CAACX,IAAF,CAAOE,CAAjC,CAAhB,GAAsDH,GAAG,CAACY,CAAC,CAACV,CAAF,GAAMU,CAAC,CAACR,KAAT,EAAgBQ,CAAC,CAACT,CAAlB,CADpD;AAEP,OAAO,MAAMa,UAAU,GAAIJ,CAAD,IACxBb,OAAO,CAACa,CAAD,CAAP,GACIZ,GAAG,CAACY,CAAC,CAACX,IAAF,CAAOC,CAAR,EAAWU,CAAC,CAACX,IAAF,CAAOE,CAAP,GAAWS,CAAC,CAACX,IAAF,CAAOI,MAA7B,CADP,GAEIL,GAAG,CAACY,CAAC,CAACV,CAAH,EAAMU,CAAC,CAACT,CAAF,GAAMS,CAAC,CAACP,MAAd,CAHF;AAIP,OAAO,MAAMY,WAAW,GAAIL,CAAD,IACzBb,OAAO,CAACa,CAAD,CAAP,GACIZ,GAAG,CAACY,CAAC,CAACX,IAAF,CAAOC,CAAP,GAAWU,CAAC,CAACX,IAAF,CAAOG,KAAnB,EAA0BQ,CAAC,CAACX,IAAF,CAAOE,CAAP,GAAWS,CAAC,CAACX,IAAF,CAAOI,MAA5C,CADP,GAEIL,GAAG,CAACY,CAAC,CAACV,CAAF,GAAMU,CAAC,CAACR,KAAT,EAAgBQ,CAAC,CAACT,CAAF,GAAMS,CAAC,CAACP,MAAxB,CAHF;AAIP,OAAO,MAAMa,MAAM,GAAIN,CAAD,IACpBb,OAAO,CAACa,CAAD,CAAP,GACIZ,GAAG,CAACY,CAAC,CAACX,IAAF,CAAOC,CAAP,GAAWU,CAAC,CAACX,IAAF,CAAOG,KAAP,GAAe,CAA3B,EAA8BQ,CAAC,CAACX,IAAF,CAAOE,CAAP,GAAWS,CAAC,CAACX,IAAF,CAAOI,MAAP,GAAgB,CAAzD,CADP,GAEIL,GAAG,CAACY,CAAC,CAACV,CAAF,GAAMU,CAAC,CAACR,KAAF,GAAU,CAAjB,EAAoBQ,CAAC,CAACT,CAAF,GAAMS,CAAC,CAACP,MAAF,GAAW,CAArC,CAHF","sourcesContent":["import { Skia } from \"../Skia\";\nimport type { SkRect, SkRRect } from \"../types\";\nimport { isRRect } from \"../types\";\n\nimport { vec } from \"./Vector\";\n\nexport const rect = (x: number, y: number, width: number, height: number) =>\n Skia.XYWHRect(x, y, width, height);\n\nexport const bounds = (rects: SkRect[]) => {\n const x = Math.min(...rects.map((r) => r.x));\n const y = Math.min(...rects.map((r) => r.y));\n const width = Math.max(...rects.map((r) => r.x + r.width));\n const height = Math.max(...rects.map((r) => r.y + r.height));\n return rect(x, y, width, height);\n};\n\nexport const topLeft = (r: SkRect | SkRRect) =>\n isRRect(r) ? vec(r.rect.x, r.rect.y) : vec(r.x, r.y);\nexport const topRight = (r: SkRect | SkRRect) =>\n isRRect(r) ? vec(r.rect.x + r.rect.width, r.rect.y) : vec(r.x + r.width, r.y);\nexport const bottomLeft = (r: SkRect | SkRRect) =>\n isRRect(r)\n ? vec(r.rect.x, r.rect.y + r.rect.height)\n : vec(r.x, r.y + r.height);\nexport const bottomRight = (r: SkRect | SkRRect) =>\n isRRect(r)\n ? vec(r.rect.x + r.rect.width, r.rect.y + r.rect.height)\n : vec(r.x + r.width, r.y + r.height);\nexport const center = (r: SkRect | SkRRect) =>\n isRRect(r)\n ? vec(r.rect.x + r.rect.width / 2, r.rect.y + r.rect.height / 2)\n : vec(r.x + r.width / 2, r.y + r.height / 2);\n"]}
1
+ {"version":3,"names":["Skia","isRRect","vec","rect","x","y","width","height","XYWHRect","bounds","rects","Math","min","map","r","max","topLeft","topRight","bottomLeft","bottomRight","center"],"sources":["Rect.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { SkRect, SkRRect } from \"../types\";\nimport { isRRect } from \"../types\";\n\nimport { vec } from \"./Vector\";\n\nexport const rect = (x: number, y: number, width: number, height: number) =>\n Skia.XYWHRect(x, y, width, height);\n\nexport const bounds = (rects: SkRect[]) => {\n const x = Math.min(...rects.map((r) => r.x));\n const y = Math.min(...rects.map((r) => r.y));\n const width = Math.max(...rects.map((r) => r.x + r.width));\n const height = Math.max(...rects.map((r) => r.y + r.height));\n return rect(x, y, width, height);\n};\n\nexport const topLeft = (r: SkRect | SkRRect) =>\n isRRect(r) ? vec(r.rect.x, r.rect.y) : vec(r.x, r.y);\nexport const topRight = (r: SkRect | SkRRect) =>\n isRRect(r) ? vec(r.rect.x + r.rect.width, r.rect.y) : vec(r.x + r.width, r.y);\nexport const bottomLeft = (r: SkRect | SkRRect) =>\n isRRect(r)\n ? vec(r.rect.x, r.rect.y + r.rect.height)\n : vec(r.x, r.y + r.height);\nexport const bottomRight = (r: SkRect | SkRRect) =>\n isRRect(r)\n ? vec(r.rect.x + r.rect.width, r.rect.y + r.rect.height)\n : vec(r.x + r.width, r.y + r.height);\nexport const center = (r: SkRect | SkRRect) =>\n isRRect(r)\n ? vec(r.rect.x + r.rect.width / 2, r.rect.y + r.rect.height / 2)\n : vec(r.x + r.width / 2, r.y + r.height / 2);\n"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAEA,SAASC,OAAT,QAAwB,UAAxB;AAEA,SAASC,GAAT,QAAoB,UAApB;AAEA,OAAO,MAAMC,IAAI,GAAG,CAACC,CAAD,EAAYC,CAAZ,EAAuBC,KAAvB,EAAsCC,MAAtC,KAClBP,IAAI,CAACQ,QAAL,CAAcJ,CAAd,EAAiBC,CAAjB,EAAoBC,KAApB,EAA2BC,MAA3B,CADK;AAGP,OAAO,MAAME,MAAM,GAAIC,KAAD,IAAqB;EACzC,MAAMN,CAAC,GAAGO,IAAI,CAACC,GAAL,CAAS,GAAGF,KAAK,CAACG,GAAN,CAAWC,CAAD,IAAOA,CAAC,CAACV,CAAnB,CAAZ,CAAV;EACA,MAAMC,CAAC,GAAGM,IAAI,CAACC,GAAL,CAAS,GAAGF,KAAK,CAACG,GAAN,CAAWC,CAAD,IAAOA,CAAC,CAACT,CAAnB,CAAZ,CAAV;EACA,MAAMC,KAAK,GAAGK,IAAI,CAACI,GAAL,CAAS,GAAGL,KAAK,CAACG,GAAN,CAAWC,CAAD,IAAOA,CAAC,CAACV,CAAF,GAAMU,CAAC,CAACR,KAAzB,CAAZ,CAAd;EACA,MAAMC,MAAM,GAAGI,IAAI,CAACI,GAAL,CAAS,GAAGL,KAAK,CAACG,GAAN,CAAWC,CAAD,IAAOA,CAAC,CAACT,CAAF,GAAMS,CAAC,CAACP,MAAzB,CAAZ,CAAf;EACA,OAAOJ,IAAI,CAACC,CAAD,EAAIC,CAAJ,EAAOC,KAAP,EAAcC,MAAd,CAAX;AACD,CANM;AAQP,OAAO,MAAMS,OAAO,GAAIF,CAAD,IACrBb,OAAO,CAACa,CAAD,CAAP,GAAaZ,GAAG,CAACY,CAAC,CAACX,IAAF,CAAOC,CAAR,EAAWU,CAAC,CAACX,IAAF,CAAOE,CAAlB,CAAhB,GAAuCH,GAAG,CAACY,CAAC,CAACV,CAAH,EAAMU,CAAC,CAACT,CAAR,CADrC;AAEP,OAAO,MAAMY,QAAQ,GAAIH,CAAD,IACtBb,OAAO,CAACa,CAAD,CAAP,GAAaZ,GAAG,CAACY,CAAC,CAACX,IAAF,CAAOC,CAAP,GAAWU,CAAC,CAACX,IAAF,CAAOG,KAAnB,EAA0BQ,CAAC,CAACX,IAAF,CAAOE,CAAjC,CAAhB,GAAsDH,GAAG,CAACY,CAAC,CAACV,CAAF,GAAMU,CAAC,CAACR,KAAT,EAAgBQ,CAAC,CAACT,CAAlB,CADpD;AAEP,OAAO,MAAMa,UAAU,GAAIJ,CAAD,IACxBb,OAAO,CAACa,CAAD,CAAP,GACIZ,GAAG,CAACY,CAAC,CAACX,IAAF,CAAOC,CAAR,EAAWU,CAAC,CAACX,IAAF,CAAOE,CAAP,GAAWS,CAAC,CAACX,IAAF,CAAOI,MAA7B,CADP,GAEIL,GAAG,CAACY,CAAC,CAACV,CAAH,EAAMU,CAAC,CAACT,CAAF,GAAMS,CAAC,CAACP,MAAd,CAHF;AAIP,OAAO,MAAMY,WAAW,GAAIL,CAAD,IACzBb,OAAO,CAACa,CAAD,CAAP,GACIZ,GAAG,CAACY,CAAC,CAACX,IAAF,CAAOC,CAAP,GAAWU,CAAC,CAACX,IAAF,CAAOG,KAAnB,EAA0BQ,CAAC,CAACX,IAAF,CAAOE,CAAP,GAAWS,CAAC,CAACX,IAAF,CAAOI,MAA5C,CADP,GAEIL,GAAG,CAACY,CAAC,CAACV,CAAF,GAAMU,CAAC,CAACR,KAAT,EAAgBQ,CAAC,CAACT,CAAF,GAAMS,CAAC,CAACP,MAAxB,CAHF;AAIP,OAAO,MAAMa,MAAM,GAAIN,CAAD,IACpBb,OAAO,CAACa,CAAD,CAAP,GACIZ,GAAG,CAACY,CAAC,CAACX,IAAF,CAAOC,CAAP,GAAWU,CAAC,CAACX,IAAF,CAAOG,KAAP,GAAe,CAA3B,EAA8BQ,CAAC,CAACX,IAAF,CAAOE,CAAP,GAAWS,CAAC,CAACX,IAAF,CAAOI,MAAP,GAAgB,CAAzD,CADP,GAEIL,GAAG,CAACY,CAAC,CAACV,CAAF,GAAMU,CAAC,CAACR,KAAF,GAAU,CAAjB,EAAoBQ,CAAC,CAACT,CAAF,GAAMS,CAAC,CAACP,MAAF,GAAW,CAArC,CAHF"}
@@ -1 +1 @@
1
- {"version":3,"sources":["SVG.ts"],"names":["Skia","useRawData","svgFactory","SVG","MakeFromData","bind","useSVG","source","onError"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,SAASC,UAAT,QAA2B,QAA3B;AAEA,MAAMC,UAAU,GAAGF,IAAI,CAACG,GAAL,CAASC,YAAT,CAAsBC,IAAtB,CAA2BL,IAAI,CAACG,GAAhC,CAAnB;AAEA,OAAO,MAAMG,MAAM,GAAG,CACpBC,MADoB,EAEpBC,OAFoB,KAGjBP,UAAU,CAACM,MAAD,EAASL,UAAT,EAAqBM,OAArB,CAHR","sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst svgFactory = Skia.SVG.MakeFromData.bind(Skia.SVG);\n\nexport const useSVG = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, svgFactory, onError);\n"]}
1
+ {"version":3,"names":["Skia","useRawData","svgFactory","SVG","MakeFromData","bind","useSVG","source","onError"],"sources":["SVG.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst svgFactory = Skia.SVG.MakeFromData.bind(Skia.SVG);\n\nexport const useSVG = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, svgFactory, onError);\n"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,SAASC,UAAT,QAA2B,QAA3B;AAEA,MAAMC,UAAU,GAAGF,IAAI,CAACG,GAAL,CAASC,YAAT,CAAsBC,IAAtB,CAA2BL,IAAI,CAACG,GAAhC,CAAnB;AAEA,OAAO,MAAMG,MAAM,GAAG,CACpBC,MADoB,EAEpBC,OAFoB,KAGjBP,UAAU,CAACM,MAAD,EAASL,UAAT,EAAqBM,OAArB,CAHR"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Typeface.ts"],"names":["Skia","useRawData","tfFactory","Typeface","MakeFreeTypeFaceFromData","bind","useTypeface","source","onError"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,SAASC,UAAT,QAA2B,QAA3B;AAEA,MAAMC,SAAS,GAAGF,IAAI,CAACG,QAAL,CAAcC,wBAAd,CAAuCC,IAAvC,CAA4CL,IAAI,CAACG,QAAjD,CAAlB;AAEA;AACA;AACA;;AACA,OAAO,MAAMG,WAAW,GAAG,CACzBC,MADyB,EAEzBC,OAFyB,KAGtBP,UAAU,CAACM,MAAD,EAASL,SAAT,EAAoBM,OAApB,CAHR","sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst tfFactory = Skia.Typeface.MakeFreeTypeFaceFromData.bind(Skia.Typeface);\n\n/**\n * Returns a Skia Typeface object\n * */\nexport const useTypeface = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, tfFactory, onError);\n"]}
1
+ {"version":3,"names":["Skia","useRawData","tfFactory","Typeface","MakeFreeTypeFaceFromData","bind","useTypeface","source","onError"],"sources":["Typeface.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSourceParam } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nconst tfFactory = Skia.Typeface.MakeFreeTypeFaceFromData.bind(Skia.Typeface);\n\n/**\n * Returns a Skia Typeface object\n * */\nexport const useTypeface = (\n source: DataSourceParam,\n onError?: (err: Error) => void\n) => useRawData(source, tfFactory, onError);\n"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,SAASC,UAAT,QAA2B,QAA3B;AAEA,MAAMC,SAAS,GAAGF,IAAI,CAACG,QAAL,CAAcC,wBAAd,CAAuCC,IAAvC,CAA4CL,IAAI,CAACG,QAAjD,CAAlB;AAEA;AACA;AACA;;AACA,OAAO,MAAMG,WAAW,GAAG,CACzBC,MADyB,EAEzBC,OAFyB,KAGtBP,UAAU,CAACM,MAAD,EAASL,SAAT,EAAoBM,OAApB,CAHR"}
@@ -2,7 +2,7 @@ import { Skia } from "../Skia";
2
2
  export const vec = function () {
3
3
  let x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
4
4
  let y = arguments.length > 1 ? arguments[1] : undefined;
5
- return Skia.Point(x, y !== null && y !== void 0 ? y : x);
5
+ return Skia.Point(x, y ?? x);
6
6
  };
7
7
  export const point = vec;
8
8
  export const neg = a => vec(-a.x, -a.y);
@@ -1 +1 @@
1
- {"version":3,"sources":["Vector.ts"],"names":["Skia","vec","x","y","Point","point","neg","a","add","b","sub","dist","Math","hypot","translate","translateX","translateY"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,OAAO,MAAMC,GAAG,GAAG;AAAA,MAACC,CAAD,uEAAK,CAAL;AAAA,MAAQC,CAAR;AAAA,SAAuBH,IAAI,CAACI,KAAL,CAAWF,CAAX,EAAcC,CAAd,aAAcA,CAAd,cAAcA,CAAd,GAAmBD,CAAnB,CAAvB;AAAA,CAAZ;AACP,OAAO,MAAMG,KAAK,GAAGJ,GAAd;AACP,OAAO,MAAMK,GAAG,GAAIC,CAAD,IAAeN,GAAG,CAAC,CAACM,CAAC,CAACL,CAAJ,EAAO,CAACK,CAAC,CAACJ,CAAV,CAA9B;AACP,OAAO,MAAMK,GAAG,GAAG,CAACD,CAAD,EAAYE,CAAZ,KAA0BR,GAAG,CAACM,CAAC,CAACL,CAAF,GAAMO,CAAC,CAACP,CAAT,EAAYK,CAAC,CAACJ,CAAF,GAAMM,CAAC,CAACN,CAApB,CAAzC;AACP,OAAO,MAAMO,GAAG,GAAG,CAACH,CAAD,EAAYE,CAAZ,KAA0BR,GAAG,CAACM,CAAC,CAACL,CAAF,GAAMO,CAAC,CAACP,CAAT,EAAYK,CAAC,CAACJ,CAAF,GAAMM,CAAC,CAACN,CAApB,CAAzC;AACP,OAAO,MAAMQ,IAAI,GAAG,CAACJ,CAAD,EAAYE,CAAZ,KAA0BG,IAAI,CAACC,KAAL,CAAWN,CAAC,CAACL,CAAF,GAAMO,CAAC,CAACP,CAAnB,EAAsBK,CAAC,CAACJ,CAAF,GAAMM,CAAC,CAACN,CAA9B,CAAvC;AACP,OAAO,MAAMW,SAAS,GAAG;AAAA,MAAC;AAAEZ,IAAAA,CAAF;AAAKC,IAAAA;AAAL,GAAD;AAAA,SACvB,CAAC;AAAEY,IAAAA,UAAU,EAAEb;AAAd,GAAD,EAAoB;AAAEc,IAAAA,UAAU,EAAEb;AAAd,GAApB,CADuB;AAAA,CAAlB","sourcesContent":["import { Skia } from \"../Skia\";\nimport type { Vector } from \"../types\";\n\nexport const vec = (x = 0, y?: number) => Skia.Point(x, y ?? x);\nexport const point = vec;\nexport const neg = (a: Vector) => vec(-a.x, -a.y);\nexport const add = (a: Vector, b: Vector) => vec(a.x + b.x, a.y + b.y);\nexport const sub = (a: Vector, b: Vector) => vec(a.x - b.x, a.y - b.y);\nexport const dist = (a: Vector, b: Vector) => Math.hypot(a.x - b.x, a.y - b.y);\nexport const translate = ({ x, y }: Vector) =>\n [{ translateX: x }, { translateY: y }] as const;\n"]}
1
+ {"version":3,"names":["Skia","vec","x","y","Point","point","neg","a","add","b","sub","dist","Math","hypot","translate","translateX","translateY"],"sources":["Vector.ts"],"sourcesContent":["import { Skia } from \"../Skia\";\nimport type { Vector } from \"../types\";\n\nexport const vec = (x = 0, y?: number) => Skia.Point(x, y ?? x);\nexport const point = vec;\nexport const neg = (a: Vector) => vec(-a.x, -a.y);\nexport const add = (a: Vector, b: Vector) => vec(a.x + b.x, a.y + b.y);\nexport const sub = (a: Vector, b: Vector) => vec(a.x - b.x, a.y - b.y);\nexport const dist = (a: Vector, b: Vector) => Math.hypot(a.x - b.x, a.y - b.y);\nexport const translate = ({ x, y }: Vector) =>\n [{ translateX: x }, { translateY: y }] as const;\n"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,OAAO,MAAMC,GAAG,GAAG;EAAA,IAACC,CAAD,uEAAK,CAAL;EAAA,IAAQC,CAAR;EAAA,OAAuBH,IAAI,CAACI,KAAL,CAAWF,CAAX,EAAcC,CAAC,IAAID,CAAnB,CAAvB;AAAA,CAAZ;AACP,OAAO,MAAMG,KAAK,GAAGJ,GAAd;AACP,OAAO,MAAMK,GAAG,GAAIC,CAAD,IAAeN,GAAG,CAAC,CAACM,CAAC,CAACL,CAAJ,EAAO,CAACK,CAAC,CAACJ,CAAV,CAA9B;AACP,OAAO,MAAMK,GAAG,GAAG,CAACD,CAAD,EAAYE,CAAZ,KAA0BR,GAAG,CAACM,CAAC,CAACL,CAAF,GAAMO,CAAC,CAACP,CAAT,EAAYK,CAAC,CAACJ,CAAF,GAAMM,CAAC,CAACN,CAApB,CAAzC;AACP,OAAO,MAAMO,GAAG,GAAG,CAACH,CAAD,EAAYE,CAAZ,KAA0BR,GAAG,CAACM,CAAC,CAACL,CAAF,GAAMO,CAAC,CAACP,CAAT,EAAYK,CAAC,CAACJ,CAAF,GAAMM,CAAC,CAACN,CAApB,CAAzC;AACP,OAAO,MAAMQ,IAAI,GAAG,CAACJ,CAAD,EAAYE,CAAZ,KAA0BG,IAAI,CAACC,KAAL,CAAWN,CAAC,CAACL,CAAF,GAAMO,CAAC,CAACP,CAAnB,EAAsBK,CAAC,CAACJ,CAAF,GAAMM,CAAC,CAACN,CAA9B,CAAvC;AACP,OAAO,MAAMW,SAAS,GAAG;EAAA,IAAC;IAAEZ,CAAF;IAAKC;EAAL,CAAD;EAAA,OACvB,CAAC;IAAEY,UAAU,EAAEb;EAAd,CAAD,EAAoB;IAAEc,UAAU,EAAEb;EAAd,CAApB,CADuB;AAAA,CAAlB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAd;AACA,cAAc,QAAd;AACA,cAAc,YAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd;AACA,cAAc,OAAd;AACA,cAAc,UAAd;AACA,cAAc,QAAd;AACA,cAAc,SAAd;AACA,cAAc,UAAd","sourcesContent":["export * from \"./Data\";\nexport * from \"./Font\";\nexport * from \"./Typeface\";\nexport * from \"./Image\";\nexport * from \"./Picture\";\nexport * from \"./SVG\";\nexport * from \"./Vector\";\nexport * from \"./Rect\";\nexport * from \"./RRect\";\nexport * from \"./Matrix\";\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Data\";\nexport * from \"./Font\";\nexport * from \"./Typeface\";\nexport * from \"./Image\";\nexport * from \"./Picture\";\nexport * from \"./SVG\";\nexport * from \"./Vector\";\nexport * from \"./Rect\";\nexport * from \"./RRect\";\nexport * from \"./Matrix\";\n"],"mappings":"AAAA,cAAc,QAAd;AACA,cAAc,QAAd;AACA,cAAc,YAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd;AACA,cAAc,OAAd;AACA,cAAc,UAAd;AACA,cAAc,QAAd;AACA,cAAc,SAAd;AACA,cAAc,UAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["Skia"],"mappings":"AAAA,SAASA,IAAT,QAAqB,QAArB;AACA,cAAc,QAAd;AACA,cAAc,SAAd","sourcesContent":["export { Skia } from \"./Skia\";\nexport * from \"./core\";\nexport * from \"./types\";\n"]}
1
+ {"version":3,"names":["Skia"],"sources":["index.ts"],"sourcesContent":["export { Skia } from \"./Skia\";\nexport * from \"./core\";\nexport * from \"./types\";\n"],"mappings":"AAAA,SAASA,IAAT,QAAqB,QAArB;AACA,cAAc,QAAd;AACA,cAAc,SAAd"}