@coinbase/cds-mobile-visualization 3.8.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dts/chart/index.d.ts +1 -15
  3. package/dts/chart/index.d.ts.map +1 -1
  4. package/dts/index.d.ts.map +1 -1
  5. package/dts/sparkline/index.d.ts +1 -5
  6. package/dts/sparkline/index.d.ts.map +1 -1
  7. package/esm/chart/index.js +1 -17
  8. package/esm/index.js +1 -3
  9. package/esm/sparkline/index.js +1 -5
  10. package/package.json +26 -20
  11. package/dts/chart/CartesianChart.d.ts +0 -206
  12. package/dts/chart/CartesianChart.d.ts.map +0 -1
  13. package/dts/chart/ChartContextBridge.d.ts +0 -28
  14. package/dts/chart/ChartContextBridge.d.ts.map +0 -1
  15. package/dts/chart/ChartProvider.d.ts +0 -9
  16. package/dts/chart/ChartProvider.d.ts.map +0 -1
  17. package/dts/chart/Path.d.ts +0 -121
  18. package/dts/chart/Path.d.ts.map +0 -1
  19. package/dts/chart/PeriodSelector.d.ts +0 -100
  20. package/dts/chart/PeriodSelector.d.ts.map +0 -1
  21. package/dts/chart/area/Area.d.ts +0 -83
  22. package/dts/chart/area/Area.d.ts.map +0 -1
  23. package/dts/chart/area/AreaChart.d.ts +0 -155
  24. package/dts/chart/area/AreaChart.d.ts.map +0 -1
  25. package/dts/chart/area/DottedArea.d.ts +0 -46
  26. package/dts/chart/area/DottedArea.d.ts.map +0 -1
  27. package/dts/chart/area/GradientArea.d.ts +0 -36
  28. package/dts/chart/area/GradientArea.d.ts.map +0 -1
  29. package/dts/chart/area/SolidArea.d.ts +0 -23
  30. package/dts/chart/area/SolidArea.d.ts.map +0 -1
  31. package/dts/chart/area/index.d.ts +0 -6
  32. package/dts/chart/area/index.d.ts.map +0 -1
  33. package/dts/chart/axis/Axis.d.ts +0 -174
  34. package/dts/chart/axis/Axis.d.ts.map +0 -1
  35. package/dts/chart/axis/DefaultAxisTickLabel.d.ts +0 -8
  36. package/dts/chart/axis/DefaultAxisTickLabel.d.ts.map +0 -1
  37. package/dts/chart/axis/XAxis.d.ts +0 -22
  38. package/dts/chart/axis/XAxis.d.ts.map +0 -1
  39. package/dts/chart/axis/YAxis.d.ts +0 -22
  40. package/dts/chart/axis/YAxis.d.ts.map +0 -1
  41. package/dts/chart/axis/index.d.ts +0 -5
  42. package/dts/chart/axis/index.d.ts.map +0 -1
  43. package/dts/chart/bar/Bar.d.ts +0 -100
  44. package/dts/chart/bar/Bar.d.ts.map +0 -1
  45. package/dts/chart/bar/BarChart.d.ts +0 -158
  46. package/dts/chart/bar/BarChart.d.ts.map +0 -1
  47. package/dts/chart/bar/BarPlot.d.ts +0 -31
  48. package/dts/chart/bar/BarPlot.d.ts.map +0 -1
  49. package/dts/chart/bar/BarStack.d.ts +0 -127
  50. package/dts/chart/bar/BarStack.d.ts.map +0 -1
  51. package/dts/chart/bar/BarStackGroup.d.ts +0 -37
  52. package/dts/chart/bar/BarStackGroup.d.ts.map +0 -1
  53. package/dts/chart/bar/DefaultBar.d.ts +0 -7
  54. package/dts/chart/bar/DefaultBar.d.ts.map +0 -1
  55. package/dts/chart/bar/DefaultBarStack.d.ts +0 -7
  56. package/dts/chart/bar/DefaultBarStack.d.ts.map +0 -1
  57. package/dts/chart/bar/PercentageBarChart.d.ts +0 -106
  58. package/dts/chart/bar/PercentageBarChart.d.ts.map +0 -1
  59. package/dts/chart/bar/index.d.ts +0 -9
  60. package/dts/chart/bar/index.d.ts.map +0 -1
  61. package/dts/chart/gradient/Gradient.d.ts +0 -41
  62. package/dts/chart/gradient/Gradient.d.ts.map +0 -1
  63. package/dts/chart/gradient/index.d.ts +0 -2
  64. package/dts/chart/gradient/index.d.ts.map +0 -1
  65. package/dts/chart/legend/DefaultLegendEntry.d.ts +0 -5
  66. package/dts/chart/legend/DefaultLegendEntry.d.ts.map +0 -1
  67. package/dts/chart/legend/DefaultLegendShape.d.ts +0 -5
  68. package/dts/chart/legend/DefaultLegendShape.d.ts.map +0 -1
  69. package/dts/chart/legend/Legend.d.ts +0 -168
  70. package/dts/chart/legend/Legend.d.ts.map +0 -1
  71. package/dts/chart/legend/index.d.ts +0 -4
  72. package/dts/chart/legend/index.d.ts.map +0 -1
  73. package/dts/chart/line/DefaultReferenceLineLabel.d.ts +0 -9
  74. package/dts/chart/line/DefaultReferenceLineLabel.d.ts.map +0 -1
  75. package/dts/chart/line/DottedLine.d.ts +0 -20
  76. package/dts/chart/line/DottedLine.d.ts.map +0 -1
  77. package/dts/chart/line/Line.d.ts +0 -122
  78. package/dts/chart/line/Line.d.ts.map +0 -1
  79. package/dts/chart/line/LineChart.d.ts +0 -135
  80. package/dts/chart/line/LineChart.d.ts.map +0 -1
  81. package/dts/chart/line/ReferenceLine.d.ts +0 -140
  82. package/dts/chart/line/ReferenceLine.d.ts.map +0 -1
  83. package/dts/chart/line/SolidLine.d.ts +0 -15
  84. package/dts/chart/line/SolidLine.d.ts.map +0 -1
  85. package/dts/chart/line/index.d.ts +0 -7
  86. package/dts/chart/line/index.d.ts.map +0 -1
  87. package/dts/chart/point/DefaultPointLabel.d.ts +0 -10
  88. package/dts/chart/point/DefaultPointLabel.d.ts.map +0 -1
  89. package/dts/chart/point/Point.d.ts +0 -144
  90. package/dts/chart/point/Point.d.ts.map +0 -1
  91. package/dts/chart/point/index.d.ts +0 -3
  92. package/dts/chart/point/index.d.ts.map +0 -1
  93. package/dts/chart/scrubber/DefaultScrubberBeacon.d.ts +0 -38
  94. package/dts/chart/scrubber/DefaultScrubberBeacon.d.ts.map +0 -1
  95. package/dts/chart/scrubber/DefaultScrubberBeaconLabel.d.ts +0 -12
  96. package/dts/chart/scrubber/DefaultScrubberBeaconLabel.d.ts.map +0 -1
  97. package/dts/chart/scrubber/DefaultScrubberLabel.d.ts +0 -12
  98. package/dts/chart/scrubber/DefaultScrubberLabel.d.ts.map +0 -1
  99. package/dts/chart/scrubber/Scrubber.d.ts +0 -302
  100. package/dts/chart/scrubber/Scrubber.d.ts.map +0 -1
  101. package/dts/chart/scrubber/ScrubberAccessibilityView.d.ts +0 -12
  102. package/dts/chart/scrubber/ScrubberAccessibilityView.d.ts.map +0 -1
  103. package/dts/chart/scrubber/ScrubberBeaconGroup.d.ts +0 -54
  104. package/dts/chart/scrubber/ScrubberBeaconGroup.d.ts.map +0 -1
  105. package/dts/chart/scrubber/ScrubberBeaconLabelGroup.d.ts +0 -46
  106. package/dts/chart/scrubber/ScrubberBeaconLabelGroup.d.ts.map +0 -1
  107. package/dts/chart/scrubber/ScrubberProvider.d.ts +0 -20
  108. package/dts/chart/scrubber/ScrubberProvider.d.ts.map +0 -1
  109. package/dts/chart/scrubber/index.d.ts +0 -5
  110. package/dts/chart/scrubber/index.d.ts.map +0 -1
  111. package/dts/chart/text/ChartText.d.ts +0 -164
  112. package/dts/chart/text/ChartText.d.ts.map +0 -1
  113. package/dts/chart/text/ChartTextGroup.d.ts +0 -61
  114. package/dts/chart/text/ChartTextGroup.d.ts.map +0 -1
  115. package/dts/chart/text/index.d.ts +0 -3
  116. package/dts/chart/text/index.d.ts.map +0 -1
  117. package/dts/chart/utils/axis.d.ts +0 -387
  118. package/dts/chart/utils/axis.d.ts.map +0 -1
  119. package/dts/chart/utils/bar.d.ts +0 -225
  120. package/dts/chart/utils/bar.d.ts.map +0 -1
  121. package/dts/chart/utils/chart.d.ts +0 -165
  122. package/dts/chart/utils/chart.d.ts.map +0 -1
  123. package/dts/chart/utils/context.d.ts +0 -131
  124. package/dts/chart/utils/context.d.ts.map +0 -1
  125. package/dts/chart/utils/gradient.d.ts +0 -129
  126. package/dts/chart/utils/gradient.d.ts.map +0 -1
  127. package/dts/chart/utils/index.d.ts +0 -11
  128. package/dts/chart/utils/index.d.ts.map +0 -1
  129. package/dts/chart/utils/path.d.ts +0 -186
  130. package/dts/chart/utils/path.d.ts.map +0 -1
  131. package/dts/chart/utils/point.d.ts +0 -146
  132. package/dts/chart/utils/point.d.ts.map +0 -1
  133. package/dts/chart/utils/scale.d.ts +0 -145
  134. package/dts/chart/utils/scale.d.ts.map +0 -1
  135. package/dts/chart/utils/scrubber.d.ts +0 -40
  136. package/dts/chart/utils/scrubber.d.ts.map +0 -1
  137. package/dts/chart/utils/transition.d.ts +0 -181
  138. package/dts/chart/utils/transition.d.ts.map +0 -1
  139. package/dts/sparkline/Counter.d.ts +0 -8
  140. package/dts/sparkline/Counter.d.ts.map +0 -1
  141. package/dts/sparkline/Sparkline.d.ts +0 -74
  142. package/dts/sparkline/Sparkline.d.ts.map +0 -1
  143. package/dts/sparkline/SparklineArea.d.ts +0 -15
  144. package/dts/sparkline/SparklineArea.d.ts.map +0 -1
  145. package/dts/sparkline/SparklineAreaPattern.d.ts +0 -14
  146. package/dts/sparkline/SparklineAreaPattern.d.ts.map +0 -1
  147. package/dts/sparkline/SparklineGradient.d.ts +0 -24
  148. package/dts/sparkline/SparklineGradient.d.ts.map +0 -1
  149. package/dts/sparkline/__figma__/Sparkline.figma.d.ts +0 -2
  150. package/dts/sparkline/__figma__/Sparkline.figma.d.ts.map +0 -1
  151. package/dts/sparkline/generateSparklineWithId.d.ts +0 -11
  152. package/dts/sparkline/generateSparklineWithId.d.ts.map +0 -1
  153. package/dts/sparkline/sparkline-interactive/SparklineAccessibleView.d.ts +0 -23
  154. package/dts/sparkline/sparkline-interactive/SparklineAccessibleView.d.ts.map +0 -1
  155. package/dts/sparkline/sparkline-interactive/SparklineInteractive.d.ts +0 -185
  156. package/dts/sparkline/sparkline-interactive/SparklineInteractive.d.ts.map +0 -1
  157. package/dts/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.d.ts +0 -25
  158. package/dts/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.d.ts.map +0 -1
  159. package/dts/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.d.ts +0 -28
  160. package/dts/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.d.ts.map +0 -1
  161. package/dts/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.d.ts +0 -13
  162. package/dts/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.d.ts.map +0 -1
  163. package/dts/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.d.ts +0 -17
  164. package/dts/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.d.ts.map +0 -1
  165. package/dts/sparkline/sparkline-interactive/SparklineInteractiveMinMax.d.ts +0 -11
  166. package/dts/sparkline/sparkline-interactive/SparklineInteractiveMinMax.d.ts.map +0 -1
  167. package/dts/sparkline/sparkline-interactive/SparklineInteractivePanGestureHandler.d.ts +0 -26
  168. package/dts/sparkline/sparkline-interactive/SparklineInteractivePanGestureHandler.d.ts.map +0 -1
  169. package/dts/sparkline/sparkline-interactive/SparklineInteractivePaths.d.ts +0 -25
  170. package/dts/sparkline/sparkline-interactive/SparklineInteractivePaths.d.ts.map +0 -1
  171. package/dts/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.d.ts +0 -25
  172. package/dts/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.d.ts.map +0 -1
  173. package/dts/sparkline/sparkline-interactive/SparklineInteractiveProvider.d.ts +0 -39
  174. package/dts/sparkline/sparkline-interactive/SparklineInteractiveProvider.d.ts.map +0 -1
  175. package/dts/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.d.ts +0 -31
  176. package/dts/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.d.ts.map +0 -1
  177. package/dts/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts +0 -2
  178. package/dts/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts.map +0 -1
  179. package/dts/sparkline/sparkline-interactive/useInterruptiblePathAnimation.d.ts +0 -13
  180. package/dts/sparkline/sparkline-interactive/useInterruptiblePathAnimation.d.ts.map +0 -1
  181. package/dts/sparkline/sparkline-interactive/useMinMaxTransform.d.ts +0 -16
  182. package/dts/sparkline/sparkline-interactive/useMinMaxTransform.d.ts.map +0 -1
  183. package/dts/sparkline/sparkline-interactive/useOpacityAnimation.d.ts +0 -6
  184. package/dts/sparkline/sparkline-interactive/useOpacityAnimation.d.ts.map +0 -1
  185. package/dts/sparkline/sparkline-interactive/useSparklineInteractiveConstants.d.ts +0 -22
  186. package/dts/sparkline/sparkline-interactive/useSparklineInteractiveConstants.d.ts.map +0 -1
  187. package/dts/sparkline/sparkline-interactive/useSparklineInteractiveLineStyles.d.ts +0 -34
  188. package/dts/sparkline/sparkline-interactive/useSparklineInteractiveLineStyles.d.ts.map +0 -1
  189. package/dts/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts +0 -118
  190. package/dts/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts.map +0 -1
  191. package/dts/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts +0 -2
  192. package/dts/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts.map +0 -1
  193. package/dts/sparkline/sparkline-interactive-header/useSparklineInteractiveHeaderStyles.d.ts +0 -29
  194. package/dts/sparkline/sparkline-interactive-header/useSparklineInteractiveHeaderStyles.d.ts.map +0 -1
  195. package/esm/chart/CartesianChart.js +0 -431
  196. package/esm/chart/ChartContextBridge.js +0 -159
  197. package/esm/chart/ChartProvider.js +0 -10
  198. package/esm/chart/Path.js +0 -255
  199. package/esm/chart/PeriodSelector.js +0 -139
  200. package/esm/chart/__stories__/CartesianChart.stories.js +0 -659
  201. package/esm/chart/__stories__/ChartAccessibility.stories.js +0 -721
  202. package/esm/chart/__stories__/ChartTransitions.stories.js +0 -693
  203. package/esm/chart/__stories__/PeriodSelector.stories.js +0 -420
  204. package/esm/chart/area/Area.js +0 -85
  205. package/esm/chart/area/AreaChart.js +0 -152
  206. package/esm/chart/area/DottedArea.js +0 -92
  207. package/esm/chart/area/GradientArea.js +0 -63
  208. package/esm/chart/area/SolidArea.js +0 -45
  209. package/esm/chart/area/__stories__/AreaChart.stories.js +0 -370
  210. package/esm/chart/area/index.js +0 -7
  211. package/esm/chart/axis/Axis.js +0 -9
  212. package/esm/chart/axis/DefaultAxisTickLabel.js +0 -11
  213. package/esm/chart/axis/XAxis.js +0 -256
  214. package/esm/chart/axis/YAxis.js +0 -255
  215. package/esm/chart/axis/__stories__/Axis.stories.js +0 -552
  216. package/esm/chart/axis/index.js +0 -6
  217. package/esm/chart/bar/Bar.js +0 -71
  218. package/esm/chart/bar/BarChart.js +0 -122
  219. package/esm/chart/bar/BarPlot.js +0 -106
  220. package/esm/chart/bar/BarStack.js +0 -173
  221. package/esm/chart/bar/BarStackGroup.js +0 -89
  222. package/esm/chart/bar/DefaultBar.js +0 -79
  223. package/esm/chart/bar/DefaultBarStack.js +0 -68
  224. package/esm/chart/bar/PercentageBarChart.js +0 -99
  225. package/esm/chart/bar/__stories__/BarChart.stories.js +0 -1417
  226. package/esm/chart/bar/__stories__/PercentageBarChart.stories.js +0 -833
  227. package/esm/chart/bar/index.js +0 -10
  228. package/esm/chart/gradient/Gradient.js +0 -156
  229. package/esm/chart/gradient/index.js +0 -1
  230. package/esm/chart/legend/DefaultLegendEntry.js +0 -42
  231. package/esm/chart/legend/DefaultLegendShape.js +0 -64
  232. package/esm/chart/legend/Legend.js +0 -59
  233. package/esm/chart/legend/__stories__/Legend.stories.js +0 -574
  234. package/esm/chart/legend/index.js +0 -3
  235. package/esm/chart/line/DefaultReferenceLineLabel.js +0 -66
  236. package/esm/chart/line/DottedLine.js +0 -57
  237. package/esm/chart/line/Line.js +0 -180
  238. package/esm/chart/line/LineChart.js +0 -149
  239. package/esm/chart/line/ReferenceLine.js +0 -132
  240. package/esm/chart/line/SolidLine.js +0 -53
  241. package/esm/chart/line/__stories__/LineChart.stories.js +0 -2018
  242. package/esm/chart/line/__stories__/ReferenceLine.stories.js +0 -226
  243. package/esm/chart/line/index.js +0 -8
  244. package/esm/chart/point/DefaultPointLabel.js +0 -39
  245. package/esm/chart/point/Point.js +0 -187
  246. package/esm/chart/point/index.js +0 -2
  247. package/esm/chart/scrubber/DefaultScrubberBeacon.js +0 -182
  248. package/esm/chart/scrubber/DefaultScrubberBeaconLabel.js +0 -43
  249. package/esm/chart/scrubber/DefaultScrubberLabel.js +0 -44
  250. package/esm/chart/scrubber/Scrubber.js +0 -198
  251. package/esm/chart/scrubber/ScrubberAccessibilityView.js +0 -177
  252. package/esm/chart/scrubber/ScrubberBeaconGroup.js +0 -169
  253. package/esm/chart/scrubber/ScrubberBeaconLabelGroup.js +0 -212
  254. package/esm/chart/scrubber/ScrubberProvider.js +0 -140
  255. package/esm/chart/scrubber/__stories__/Scrubber.stories.js +0 -946
  256. package/esm/chart/scrubber/index.js +0 -4
  257. package/esm/chart/text/ChartText.js +0 -305
  258. package/esm/chart/text/ChartTextGroup.js +0 -211
  259. package/esm/chart/text/index.js +0 -4
  260. package/esm/chart/utils/axis.js +0 -664
  261. package/esm/chart/utils/bar.js +0 -906
  262. package/esm/chart/utils/chart.js +0 -329
  263. package/esm/chart/utils/context.js +0 -22
  264. package/esm/chart/utils/gradient.js +0 -319
  265. package/esm/chart/utils/index.js +0 -12
  266. package/esm/chart/utils/path.js +0 -304
  267. package/esm/chart/utils/point.js +0 -282
  268. package/esm/chart/utils/scale.js +0 -288
  269. package/esm/chart/utils/scrubber.js +0 -146
  270. package/esm/chart/utils/transition.js +0 -241
  271. package/esm/sparkline/Counter.js +0 -45
  272. package/esm/sparkline/Sparkline.js +0 -165
  273. package/esm/sparkline/SparklineArea.js +0 -20
  274. package/esm/sparkline/SparklineAreaPattern.js +0 -38
  275. package/esm/sparkline/SparklineGradient.js +0 -77
  276. package/esm/sparkline/__figma__/Sparkline.figma.js +0 -22
  277. package/esm/sparkline/__stories__/Sparkline.stories.js +0 -124
  278. package/esm/sparkline/__stories__/SparklineGradient.stories.js +0 -126
  279. package/esm/sparkline/generateSparklineWithId.js +0 -7
  280. package/esm/sparkline/sparkline-interactive/SparklineAccessibleView.js +0 -75
  281. package/esm/sparkline/sparkline-interactive/SparklineInteractive.js +0 -308
  282. package/esm/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.js +0 -116
  283. package/esm/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.js +0 -131
  284. package/esm/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.js +0 -99
  285. package/esm/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.js +0 -82
  286. package/esm/sparkline/sparkline-interactive/SparklineInteractiveMinMax.js +0 -103
  287. package/esm/sparkline/sparkline-interactive/SparklineInteractivePanGestureHandler.js +0 -104
  288. package/esm/sparkline/sparkline-interactive/SparklineInteractivePaths.js +0 -57
  289. package/esm/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.js +0 -124
  290. package/esm/sparkline/sparkline-interactive/SparklineInteractiveProvider.js +0 -80
  291. package/esm/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.js +0 -109
  292. package/esm/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.js +0 -85
  293. package/esm/sparkline/sparkline-interactive/__stories__/SparklineInteractive.stories.js +0 -526
  294. package/esm/sparkline/sparkline-interactive/useInterruptiblePathAnimation.js +0 -58
  295. package/esm/sparkline/sparkline-interactive/useInterruptiblePathAnimation.test.disable.js +0 -37
  296. package/esm/sparkline/sparkline-interactive/useMinMaxTransform.js +0 -56
  297. package/esm/sparkline/sparkline-interactive/useOpacityAnimation.js +0 -23
  298. package/esm/sparkline/sparkline-interactive/useSparklineInteractiveConstants.js +0 -47
  299. package/esm/sparkline/sparkline-interactive/useSparklineInteractiveLineStyles.js +0 -34
  300. package/esm/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.js +0 -233
  301. package/esm/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.js +0 -104
  302. package/esm/sparkline/sparkline-interactive-header/__stories__/SparklineInteractiveHeader.stories.js +0 -565
  303. package/esm/sparkline/sparkline-interactive-header/useSparklineInteractiveHeaderStyles.js +0 -117
@@ -1,15 +0,0 @@
1
- import { type PathProps } from '../Path';
2
- import type { LineComponentProps } from './Line';
3
- export type SolidLineProps = Pick<
4
- PathProps,
5
- 'initialPath' | 'children' | 'strokeCap' | 'strokeJoin' | 'clipRect' | 'clipPath' | 'clipOffset'
6
- > &
7
- LineComponentProps & {
8
- fill?: string;
9
- };
10
- /**
11
- * A customizable solid line component.
12
- * Supports gradient for gradient effects and smooth data transitions via AnimatedPath.
13
- */
14
- export declare const SolidLine: import('react').NamedExoticComponent<SolidLineProps>;
15
- //# sourceMappingURL=SolidLine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SolidLine.d.ts","sourceRoot":"","sources":["../../../src/chart/line/SolidLine.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,SAAS,EACT,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CACjG,GACC,kBAAkB,GAAG;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,SAAS,sDA8CrB,CAAC"}
@@ -1,7 +0,0 @@
1
- export * from './DefaultReferenceLineLabel';
2
- export * from './DottedLine';
3
- export * from './Line';
4
- export * from './LineChart';
5
- export * from './ReferenceLine';
6
- export * from './SolidLine';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart/line/index.ts"],"names":[],"mappings":"AACA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
@@ -1,10 +0,0 @@
1
- import { type ChartTextProps } from '../text';
2
- import type { PointLabelProps } from './Point';
3
- export type DefaultPointLabelProps = PointLabelProps &
4
- Omit<ChartTextProps, 'children' | 'x' | 'y' | 'horizontalAlignment' | 'verticalAlignment'>;
5
- /**
6
- * DefaultPointLabel is the default label component for point labels.
7
- * It renders text at the specified position relative to the point.
8
- */
9
- export declare const DefaultPointLabel: import('react').NamedExoticComponent<DefaultPointLabelProps>;
10
- //# sourceMappingURL=DefaultPointLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultPointLabel.d.ts","sourceRoot":"","sources":["../../../src/chart/point/DefaultPointLabel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,sBAAsB,GAAG,eAAe,GAClD,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,GAAG,GAAG,GAAG,GAAG,qBAAqB,GAAG,mBAAmB,CAAC,CAAC;AAE7F;;;GAGG;AACH,eAAO,MAAM,iBAAiB,8DAwB7B,CAAC"}
@@ -1,144 +0,0 @@
1
- import { type ComponentType } from 'react';
2
- import type { ChartTextChildren, ChartTextProps } from '../text/ChartText';
3
- import { type PointLabelPosition } from '../utils';
4
- import { type Transition } from '../utils/transition';
5
- export type PointBaseProps = {
6
- /**
7
- * X coordinate in data space (not pixel coordinates).
8
- */
9
- dataX: number;
10
- /**
11
- * Y coordinate in data space (not pixel coordinates).
12
- */
13
- dataY: number;
14
- /**
15
- * The fill color of the point.
16
- * @default theme.color.fgPrimary
17
- */
18
- fill?: string;
19
- /**
20
- * Optional Y-axis id to specify which axis to plot along.
21
- * @default first y-axis defined in chart props.
22
- * @note Only used for axis selection when layout is 'vertical'. Horizontal layout supports a single y-axis.
23
- */
24
- yAxisId?: string;
25
- /**
26
- * Optional X-axis id to specify which axis to plot along.
27
- * @default first x-axis defined in chart props.
28
- * @note Only used for axis selection when layout is 'horizontal'. Vertical layout uses a single x-axis.
29
- */
30
- xAxisId?: string;
31
- /**
32
- * Radius of the point.
33
- * @default 5
34
- */
35
- radius?: number;
36
- /**
37
- * Opacity of the point.
38
- */
39
- opacity?: number;
40
- /**
41
- * Color of the outer stroke around the point.
42
- * @default theme.color.bg
43
- */
44
- stroke?: string;
45
- /**
46
- * Outer stroke width of the point.
47
- * Set to 0 to remove the stroke.
48
- * @default 2
49
- */
50
- strokeWidth?: number;
51
- /**
52
- * When set, overrides the chart's animation setting for this specific point.
53
- */
54
- animate?: boolean;
55
- /**
56
- * Custom component to render the label.
57
- * @default DefaultPointLabel
58
- */
59
- LabelComponent?: PointLabelComponent;
60
- /**
61
- * Position of the label relative to the point.
62
- * @default 'center'
63
- */
64
- labelPosition?: PointLabelPosition;
65
- /**
66
- * Distance in pixels to offset the label from the point.
67
- * @default 2 * radius
68
- */
69
- labelOffset?: number;
70
- /**
71
- * Font style for the label text.
72
- */
73
- labelFont?: ChartTextProps['font'];
74
- };
75
- /**
76
- * Props for point label components.
77
- */
78
- export type PointLabelProps = {
79
- /**
80
- * X coordinate in SVG pixel space.
81
- */
82
- x: number;
83
- /**
84
- * Y coordinate in SVG pixel space.
85
- */
86
- y: number;
87
- /**
88
- * X coordinate in data space (usually same as index).
89
- */
90
- dataX: number;
91
- /**
92
- * Y coordinate in data space (same as value).
93
- */
94
- dataY: number;
95
- /**
96
- * Fill color for the point.
97
- */
98
- fill: string;
99
- /**
100
- * Position of the label relative to the point.
101
- * @default 'center'
102
- */
103
- position?: PointLabelPosition;
104
- /**
105
- * Distance in pixels to offset the label from the point.
106
- */
107
- offset?: number;
108
- /**
109
- * Content to display in the label.
110
- */
111
- children: ChartTextChildren;
112
- };
113
- export type PointLabelComponent = ComponentType<PointLabelProps>;
114
- export type PointProps = PointBaseProps & {
115
- /**
116
- * Simple text label to display at the point position.
117
- * If provided, a label component will be automatically rendered.
118
- */
119
- label?: ChartTextChildren;
120
- /**
121
- * Transition configuration for enter and update animations.
122
- * @note Disable an animation by passing in null.
123
- */
124
- transitions?: {
125
- /**
126
- * Transition for the initial enter/reveal animation.
127
- * Set to `null` to disable.
128
- */
129
- enter?: Transition | null;
130
- /**
131
- * Transition for subsequent data update animations.
132
- * Set to `null` to disable.
133
- */
134
- update?: Transition | null;
135
- };
136
- /**
137
- * Transition for updates.
138
- * @deprecated Use `transitions.update` instead. This will be removed in a future major release.
139
- * @deprecationExpectedRemoval v4
140
- */
141
- transition?: Transition;
142
- };
143
- export declare const Point: import('react').NamedExoticComponent<PointProps>;
144
- //# sourceMappingURL=Point.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/chart/point/Point.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAA4B,MAAM,OAAO,CAAC;AAOrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,KAAK,kBAAkB,EAAgB,MAAM,UAAU,CAAC;AACjE,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAI7B,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC;;;OAGG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC,eAAe,CAAC,CAAC;AAEjE,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG;IACxC;;;OAGG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B;;;OAGG;IACH,WAAW,CAAC,EAAE;QACZ;;;WAGG;QACH,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;QAC1B;;;WAGG;QACH,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;KAC5B,CAAC;IACF;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,KAAK,kDA4NjB,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from './DefaultPointLabel';
2
- export * from './Point';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart/point/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC"}
@@ -1,38 +0,0 @@
1
- import { type Transition } from '../utils/transition';
2
- import type { ScrubberBeaconProps, ScrubberBeaconRef } from './Scrubber';
3
- export type DefaultScrubberBeaconProps = ScrubberBeaconProps & {
4
- /**
5
- * Radius of the beacon circle.
6
- * @default 5
7
- */
8
- radius?: number;
9
- /**
10
- * Stroke width of the beacon circle.
11
- * @default 2
12
- */
13
- strokeWidth?: number;
14
- };
15
- export declare const DefaultScrubberBeacon: import('react').MemoExoticComponent<
16
- import('react').ForwardRefExoticComponent<
17
- import('./Scrubber').ScrubberBeaconBaseProps & {
18
- transitions?: {
19
- enter?: Transition | null;
20
- update?: Transition | null;
21
- pulse?: Transition;
22
- pulseRepeatDelay?: number;
23
- };
24
- } & {
25
- /**
26
- * Radius of the beacon circle.
27
- * @default 5
28
- */
29
- radius?: number;
30
- /**
31
- * Stroke width of the beacon circle.
32
- * @default 2
33
- */
34
- strokeWidth?: number;
35
- } & import('react').RefAttributes<ScrubberBeaconRef>
36
- >
37
- >;
38
- //# sourceMappingURL=DefaultScrubberBeacon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultScrubberBeacon.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/DefaultScrubberBeacon.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAkBzE,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,GAAG;IAC7D;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;aAmD1B,CAAC;cAGI,CAAC;aAIE,CAAC;wBAEe,CAAC;;;IAxE/B;;;OAGG;aACM,MAAM;IACf;;;OAGG;kBACW,MAAM;sDAsMrB,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type ChartTextProps } from '../text';
2
- import type { ScrubberBeaconLabelProps } from './Scrubber';
3
- export type DefaultScrubberBeaconLabelProps = ScrubberBeaconLabelProps &
4
- Pick<
5
- ChartTextProps,
6
- 'background' | 'elevated' | 'borderRadius' | 'font' | 'verticalAlignment' | 'inset' | 'opacity'
7
- >;
8
- /**
9
- * DefaultScrubberBeaconLabel is a special instance of ChartText used to label a series' scrubber beacon.
10
- */
11
- export declare const DefaultScrubberBeaconLabel: import('react').NamedExoticComponent<DefaultScrubberBeaconLabelProps>;
12
- //# sourceMappingURL=DefaultScrubberBeaconLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultScrubberBeaconLabel.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/DefaultScrubberBeaconLabel.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAK3D,MAAM,MAAM,+BAA+B,GAAG,wBAAwB,GACpE,IAAI,CACF,cAAc,EACd,YAAY,GAAG,UAAU,GAAG,cAAc,GAAG,MAAM,GAAG,mBAAmB,GAAG,OAAO,GAAG,SAAS,CAChG,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,0BAA0B,uEAkCtC,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { ScrubberLabelProps } from './Scrubber';
2
- export type DefaultScrubberLabelProps = ScrubberLabelProps;
3
- /**
4
- * DefaultScrubberLabel is the default label component for the scrubber line.
5
- * It will automatically add padding around the label when elevated to fit within chart bounds to prevent shadow from being cutoff.
6
- * In vertical layout, it positions the label above the scrubber line.
7
- * In horizontal layout, it centers the label in the chart's right inset.
8
- */
9
- export declare const DefaultScrubberLabel: import('react').NamedExoticComponent<
10
- import('..').ReferenceLineLabelComponentProps
11
- >;
12
- //# sourceMappingURL=DefaultScrubberLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultScrubberLabel.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/DefaultScrubberLabel.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,qFAuBhC,CAAC"}
@@ -1,302 +0,0 @@
1
- import React from 'react';
2
- import { type AnimatedProp, type SkParagraph } from '@shopify/react-native-skia';
3
- import { type ReferenceLineBaseProps, type ReferenceLineLabelComponentProps } from '../line';
4
- import type { ChartTextChildren, ChartTextProps } from '../text';
5
- import { type ChartInset, type Series } from '../utils';
6
- import type { Transition } from '../utils/transition';
7
- import {
8
- type ScrubberBeaconGroupBaseProps,
9
- type ScrubberBeaconGroupProps,
10
- type ScrubberBeaconGroupRef,
11
- } from './ScrubberBeaconGroup';
12
- import {
13
- type ScrubberBeaconLabelGroupBaseProps,
14
- type ScrubberBeaconLabelGroupProps,
15
- } from './ScrubberBeaconLabelGroup';
16
- export type ScrubberBeaconRef = {
17
- /**
18
- * Triggers a single pulse animation.
19
- * Only works when the beacon is in idle state (not actively scrubbing).
20
- */
21
- pulse: () => void;
22
- };
23
- export type ScrubberBeaconBaseProps = {
24
- /**
25
- * Id of the series.
26
- */
27
- seriesId: Series['id'];
28
- /**
29
- * Color of the beacon.
30
- */
31
- color?: AnimatedProp<string>;
32
- /**
33
- * X coordinate in data space.
34
- * In vertical layout this is the scrubber index-axis value.
35
- * In horizontal layout this is the series value.
36
- */
37
- dataX: AnimatedProp<number>;
38
- /**
39
- * Y coordinate in data space.
40
- * In vertical layout this is the series value.
41
- * In horizontal layout this is the scrubber index-axis value.
42
- */
43
- dataY: AnimatedProp<number>;
44
- /**
45
- * Whether the beacon is in idle state (not actively scrubbing).
46
- */
47
- isIdle: AnimatedProp<boolean>;
48
- /**
49
- * Pulse the beacon while it is at rest.
50
- *
51
- * @note Only has an effect when `isIdle` is `true`. Pulse animations work
52
- * regardless of the chart's `animate` prop.
53
- */
54
- idlePulse?: boolean;
55
- /**
56
- * Whether position animations are enabled.
57
- * @default to ChartContext's animate value
58
- */
59
- animate?: boolean;
60
- /**
61
- * Opacity of the beacon.
62
- * @default 1
63
- */
64
- opacity?: AnimatedProp<number>;
65
- /**
66
- * Stroke color of the beacon circle.
67
- * @default theme.color.bg
68
- */
69
- stroke?: string;
70
- };
71
- export type ScrubberBeaconProps = ScrubberBeaconBaseProps & {
72
- /**
73
- * Transition configuration for beacon animations.
74
- */
75
- transitions?: {
76
- /**
77
- * Transition for the initial enter/reveal animation.
78
- * Set to `null` to disable.
79
- */
80
- enter?: Transition | null;
81
- /**
82
- * Transition for subsequent data update animations.
83
- * Set to `null` to disable.
84
- */
85
- update?: Transition | null;
86
- /**
87
- * Transition used for the pulse animation.
88
- * @default transition { type: 'timing', duration: 1600, easing: Easing.bezier(0.0, 0.0, 0.0, 1.0) }
89
- */
90
- pulse?: Transition;
91
- /**
92
- * Delay, in milliseconds between pulse transitions
93
- * when `idlePulse` is enabled.
94
- * @default 400
95
- */
96
- pulseRepeatDelay?: number;
97
- };
98
- };
99
- export type ScrubberBeaconComponent = React.FC<
100
- ScrubberBeaconProps & {
101
- ref?: React.Ref<ScrubberBeaconRef>;
102
- }
103
- >;
104
- export type ScrubberBeaconLabelProps = Pick<Series, 'color'> &
105
- Pick<
106
- ChartTextProps,
107
- 'x' | 'y' | 'dx' | 'horizontalAlignment' | 'onDimensionsChange' | 'opacity' | 'font'
108
- > & {
109
- /**
110
- * Label for the series.
111
- */
112
- label: ChartTextChildren;
113
- /**
114
- * Id of the series.
115
- */
116
- seriesId: Series['id'];
117
- };
118
- export type ScrubberBeaconLabelComponent = React.FC<ScrubberBeaconLabelProps>;
119
- export type ScrubberLabelProps = ReferenceLineLabelComponentProps;
120
- export type ScrubberLabelComponent = React.FC<ScrubberLabelProps>;
121
- export type ScrubberBaseProps = Pick<ScrubberBeaconGroupBaseProps, 'idlePulse'> &
122
- Pick<ReferenceLineBaseProps, 'LineComponent' | 'LabelComponent' | 'labelElevated'> &
123
- Pick<ScrubberBeaconGroupProps, 'BeaconComponent'> &
124
- Pick<ScrubberBeaconLabelGroupProps, 'BeaconLabelComponent'> & {
125
- /**
126
- * Array of series IDs to highlight when scrubbing with scrubber beacons.
127
- * By default, all series will be highlighted.
128
- */
129
- seriesIds?: string[];
130
- /**
131
- * Hides the beacon labels while keeping the line label visible (if provided).
132
- * @default true in horizontal layout, false in vertical layout.
133
- * @note Beacon labels are always hidden in horizontal layout, and cannot be overridden.
134
- */
135
- hideBeaconLabels?: boolean;
136
- /**
137
- * Hides the scrubber line.
138
- * @note This hides Scrubber's ReferenceLine including the label.
139
- */
140
- hideLine?: boolean;
141
- /**
142
- * Hides the overlay rect which obscures data beyond the scrubber position.
143
- */
144
- hideOverlay?: boolean;
145
- /**
146
- * Offset of the overlay rect relative to the drawing area.
147
- * Useful for when scrubbing over lines, where the stroke width would cause part of the line to be visible.
148
- * @default 2
149
- */
150
- overlayOffset?: number;
151
- /**
152
- * Minimum gap between beacon labels to prevent overlap.
153
- * Measured in pixels.
154
- */
155
- beaconLabelMinGap?: ScrubberBeaconLabelGroupBaseProps['labelMinGap'];
156
- /**
157
- * Horizontal offset for beacon labels from their beacon position.
158
- * Measured in pixels.
159
- */
160
- beaconLabelHorizontalOffset?: ScrubberBeaconLabelGroupBaseProps['labelHorizontalOffset'];
161
- /**
162
- * Preferred side for beacon labels.
163
- * @note labels will switch to the opposite side if there's not enough space on the preferred side.
164
- * @default 'right'
165
- */
166
- beaconLabelPreferredSide?: ScrubberBeaconLabelGroupBaseProps['labelPreferredSide'];
167
- /**
168
- * Label text displayed above the scrubber line.
169
- * Can be a static string or a function that receives the current dataIndex.
170
- */
171
- label?: string | SkParagraph | ((dataIndex: number) => string | SkParagraph);
172
- /**
173
- * Font style for the scrubber line label.
174
- */
175
- labelFont?: ChartTextProps['font'];
176
- /**
177
- * Bounds inset for the scrubber line label to prevent cutoff at chart edges.
178
- * @default { top: 4, bottom: 20, left: 12, right: 12 } when labelElevated is true, otherwise none
179
- */
180
- labelBoundsInset?: number | ChartInset;
181
- /**
182
- * Font style for the beacon labels.
183
- */
184
- beaconLabelFont?: ChartTextProps['font'];
185
- /**
186
- * Stroke color for the scrubber line.
187
- */
188
- lineStroke?: ReferenceLineBaseProps['stroke'];
189
- /**
190
- * Stroke color of the scrubber beacon circle.
191
- * @default theme.color.bg
192
- */
193
- beaconStroke?: string;
194
- };
195
- export type ScrubberProps = ScrubberBaseProps & {
196
- /**
197
- * Transition configuration for the scrubber.
198
- * Controls enter, update, and pulse animations for beacons and beacon labels.
199
- */
200
- transitions?: ScrubberBeaconProps['transitions'];
201
- /**
202
- * Transition configuration for the scrubber beacon.
203
- * @deprecated Use `transitions` instead. This will be removed in a future major release.
204
- * @deprecationExpectedRemoval v4
205
- */
206
- beaconTransitions?: ScrubberBeaconProps['transitions'];
207
- };
208
- export type ScrubberRef = ScrubberBeaconGroupRef;
209
- /**
210
- * Unified component that manages all scrubber elements (beacons, line, labels).
211
- */
212
- export declare const Scrubber: React.MemoExoticComponent<
213
- React.ForwardRefExoticComponent<
214
- Pick<ScrubberBeaconGroupBaseProps, 'idlePulse'> &
215
- Pick<ReferenceLineBaseProps, 'LabelComponent' | 'LineComponent' | 'labelElevated'> &
216
- Pick<ScrubberBeaconGroupProps, 'BeaconComponent'> &
217
- Pick<ScrubberBeaconLabelGroupProps, 'BeaconLabelComponent'> & {
218
- /**
219
- * Array of series IDs to highlight when scrubbing with scrubber beacons.
220
- * By default, all series will be highlighted.
221
- */
222
- seriesIds?: string[];
223
- /**
224
- * Hides the beacon labels while keeping the line label visible (if provided).
225
- * @default true in horizontal layout, false in vertical layout.
226
- * @note Beacon labels are always hidden in horizontal layout, and cannot be overridden.
227
- */
228
- hideBeaconLabels?: boolean;
229
- /**
230
- * Hides the scrubber line.
231
- * @note This hides Scrubber's ReferenceLine including the label.
232
- */
233
- hideLine?: boolean;
234
- /**
235
- * Hides the overlay rect which obscures data beyond the scrubber position.
236
- */
237
- hideOverlay?: boolean;
238
- /**
239
- * Offset of the overlay rect relative to the drawing area.
240
- * Useful for when scrubbing over lines, where the stroke width would cause part of the line to be visible.
241
- * @default 2
242
- */
243
- overlayOffset?: number;
244
- /**
245
- * Minimum gap between beacon labels to prevent overlap.
246
- * Measured in pixels.
247
- */
248
- beaconLabelMinGap?: ScrubberBeaconLabelGroupBaseProps['labelMinGap'];
249
- /**
250
- * Horizontal offset for beacon labels from their beacon position.
251
- * Measured in pixels.
252
- */
253
- beaconLabelHorizontalOffset?: ScrubberBeaconLabelGroupBaseProps['labelHorizontalOffset'];
254
- /**
255
- * Preferred side for beacon labels.
256
- * @note labels will switch to the opposite side if there's not enough space on the preferred side.
257
- * @default 'right'
258
- */
259
- beaconLabelPreferredSide?: ScrubberBeaconLabelGroupBaseProps['labelPreferredSide'];
260
- /**
261
- * Label text displayed above the scrubber line.
262
- * Can be a static string or a function that receives the current dataIndex.
263
- */
264
- label?: string | SkParagraph | ((dataIndex: number) => string | SkParagraph);
265
- /**
266
- * Font style for the scrubber line label.
267
- */
268
- labelFont?: ChartTextProps['font'];
269
- /**
270
- * Bounds inset for the scrubber line label to prevent cutoff at chart edges.
271
- * @default { top: 4, bottom: 20, left: 12, right: 12 } when labelElevated is true, otherwise none
272
- */
273
- labelBoundsInset?: number | ChartInset;
274
- /**
275
- * Font style for the beacon labels.
276
- */
277
- beaconLabelFont?: ChartTextProps['font'];
278
- /**
279
- * Stroke color for the scrubber line.
280
- */
281
- lineStroke?: ReferenceLineBaseProps['stroke'];
282
- /**
283
- * Stroke color of the scrubber beacon circle.
284
- * @default theme.color.bg
285
- */
286
- beaconStroke?: string;
287
- } & {
288
- /**
289
- * Transition configuration for the scrubber.
290
- * Controls enter, update, and pulse animations for beacons and beacon labels.
291
- */
292
- transitions?: ScrubberBeaconProps['transitions'];
293
- /**
294
- * Transition configuration for the scrubber beacon.
295
- * @deprecated Use `transitions` instead. This will be removed in a future major release.
296
- * @deprecationExpectedRemoval v4
297
- */
298
- beaconTransitions?: ScrubberBeaconProps['transitions'];
299
- } & React.RefAttributes<ScrubberBeaconGroupRef>
300
- >
301
- >;
302
- //# sourceMappingURL=Scrubber.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Scrubber.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/Scrubber.tsx"],"names":[],"mappings":"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"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export type ScrubberAccessibilityViewProps = {
3
- accessibilityLabel?: (dataIndex: number) => string;
4
- accessibilityStep?: number;
5
- };
6
- export declare const ScrubberAccessibilityView: React.MemoExoticComponent<
7
- ({
8
- accessibilityLabel,
9
- accessibilityStep,
10
- }: ScrubberAccessibilityViewProps) => import('react/jsx-runtime').JSX.Element | undefined
11
- >;
12
- //# sourceMappingURL=ScrubberAccessibilityView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScrubberAccessibilityView.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/ScrubberAccessibilityView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAqI1D,MAAM,MAAM,8BAA8B,GAAG;IAC3C,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,yBAAyB,wEACQ,8BAA8B,yDAmH3E,CAAC"}
@@ -1,54 +0,0 @@
1
- import type { ScrubberBeaconComponent, ScrubberBeaconProps } from './Scrubber';
2
- export type ScrubberBeaconGroupRef = {
3
- /**
4
- * Triggers a pulse animation on all beacons.
5
- */
6
- pulse: () => void;
7
- };
8
- export type ScrubberBeaconGroupBaseProps = {
9
- /**
10
- * Array of series IDs to render beacons for.
11
- */
12
- seriesIds: string[];
13
- /**
14
- * Pulse the beacons while at rest.
15
- */
16
- idlePulse?: boolean;
17
- };
18
- export type ScrubberBeaconGroupProps = ScrubberBeaconGroupBaseProps & {
19
- /**
20
- * Transition configuration for beacon animations.
21
- */
22
- transitions?: ScrubberBeaconProps['transitions'];
23
- /**
24
- * Custom component for the scrubber beacon.
25
- * @default DefaultScrubberBeacon
26
- */
27
- BeaconComponent?: ScrubberBeaconComponent;
28
- /**
29
- * Stroke color of the beacon circle.
30
- * @default theme.color.bg
31
- */
32
- stroke?: string;
33
- };
34
- export declare const ScrubberBeaconGroup: import('react').MemoExoticComponent<
35
- import('react').ForwardRefExoticComponent<
36
- ScrubberBeaconGroupBaseProps & {
37
- /**
38
- * Transition configuration for beacon animations.
39
- */
40
- transitions?: ScrubberBeaconProps['transitions'];
41
- /**
42
- * Custom component for the scrubber beacon.
43
- * @default DefaultScrubberBeacon
44
- */
45
- BeaconComponent?: ScrubberBeaconComponent;
46
- /**
47
- * Stroke color of the beacon circle.
48
- * @default theme.color.bg
49
- */
50
- stroke?: string;
51
- } & import('react').RefAttributes<ScrubberBeaconGroupRef>
52
- >
53
- >;
54
- //# sourceMappingURL=ScrubberBeaconGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScrubberBeaconGroup.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/ScrubberBeaconGroup.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,uBAAuB,EAAE,mBAAmB,EAAqB,MAAM,YAAY,CAAC;AA4HlG,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,4BAA4B,GAAG;IACpE;;OAEG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;IACjD;;;OAGG;IACH,eAAe,CAAC,EAAE,uBAAuB,CAAC;IAC1C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,mBAAmB;IAhB9B;;OAEG;kBACW,mBAAmB,CAAC,aAAa,CAAC;IAChD;;;OAGG;sBACe,uBAAuB;IACzC;;;OAGG;aACM,MAAM;2DAkFhB,CAAC"}