@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,552 +0,0 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import { memo, useCallback, useMemo } from 'react';
3
- import { Example, ExampleScreen } from '@coinbase/cds-mobile/examples/ExampleScreen';
4
- import { useTheme } from '@coinbase/cds-mobile/hooks/useTheme';
5
- import { BarPlot } from '../../bar';
6
- import { CartesianChart } from '../../CartesianChart';
7
- import { LineChart, SolidLine } from '../../line';
8
- import { Line } from '../../line/Line';
9
- import { Scrubber } from '../../scrubber/Scrubber';
10
- import { XAxis, YAxis } from '..';
11
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
- const defaultChartHeight = 250;
13
- const ThinSolidLine = /*#__PURE__*/memo(props => /*#__PURE__*/_jsx(SolidLine, _extends({}, props, {
14
- strokeWidth: 1
15
- })));
16
- const Simple = () => {
17
- const data = [{
18
- name: 'Page A',
19
- uv: 4000,
20
- pv: 2400,
21
- amt: 2400
22
- }, {
23
- name: 'Page B',
24
- uv: 3000,
25
- pv: 1398,
26
- amt: 2210
27
- }, {
28
- name: 'Page C',
29
- uv: 2000,
30
- pv: 9800,
31
- amt: 2290
32
- }, {
33
- name: 'Page D',
34
- uv: 2780,
35
- pv: 3908,
36
- amt: 2000
37
- }, {
38
- name: 'Page E',
39
- uv: 1890,
40
- pv: 4800,
41
- amt: 2181
42
- }, {
43
- name: 'Page F',
44
- uv: 2390,
45
- pv: 3800,
46
- amt: 2500
47
- }, {
48
- name: 'Page G',
49
- uv: 3490,
50
- pv: 4300,
51
- amt: 2100
52
- }];
53
- const pageViews = data.map(d => d.pv);
54
- const pageNames = data.map(d => d.name);
55
- const pageUniqueVisitors = data.map(d => d.uv);
56
- const chartAccessibilityLabel = "Page views and unique visitors across " + pageNames.length + " pages. Swipe to navigate.";
57
- const getScrubberAccessibilityLabel = useCallback(index => pageNames[index] + ": " + pageViews[index] + " views, " + pageUniqueVisitors[index] + " unique visitors", [pageNames, pageViews, pageUniqueVisitors]);
58
- return /*#__PURE__*/_jsx(LineChart, {
59
- enableScrubbing: true,
60
- showXAxis: true,
61
- showYAxis: true,
62
- accessibilityLabel: chartAccessibilityLabel,
63
- getScrubberAccessibilityLabel: getScrubberAccessibilityLabel,
64
- height: defaultChartHeight,
65
- inset: 32,
66
- series: [{
67
- id: 'pageViews',
68
- data: pageViews,
69
- label: 'Page Views',
70
- color: '#8884d8',
71
- curve: 'monotone'
72
- }, {
73
- id: 'uniqueVisitors',
74
- data: pageUniqueVisitors,
75
- label: 'Unique Visitors',
76
- color: '#82ca9d',
77
- curve: 'monotone'
78
- }],
79
- xAxis: {
80
- data: pageNames,
81
- showLine: true,
82
- showGrid: true,
83
- showTickMarks: true,
84
- GridLineComponent: ThinSolidLine,
85
- position: 'bottom',
86
- requestedTickCount: 5
87
- },
88
- yAxis: {
89
- domain: {
90
- min: 0
91
- },
92
- showGrid: true,
93
- showLine: true,
94
- showTickMarks: true,
95
- GridLineComponent: ThinSolidLine,
96
- position: 'left',
97
- requestedTickCount: 5
98
- },
99
- children: /*#__PURE__*/_jsx(Scrubber, {})
100
- });
101
- };
102
- const TimeOfDayAxesExample = () => {
103
- const theme = useTheme();
104
- const lineA = useMemo(() => [5, 5, 10, 90, 85, 70, 30, 25, 25], []);
105
- const lineB = useMemo(() => [90, 85, 70, 25, 23, 40, 45, 40, 50], []);
106
- const timeData = useMemo(() => [new Date(2023, 7, 31), new Date(2023, 7, 31, 12), new Date(2023, 8, 1), new Date(2023, 8, 1, 12), new Date(2023, 8, 2), new Date(2023, 8, 2, 12), new Date(2023, 8, 3), new Date(2023, 8, 3, 12), new Date(2023, 8, 4)].map(d => d.getTime()), []);
107
- const dateFormatter = useCallback(index => {
108
- return new Date(timeData[index]).toLocaleDateString('en-US', {
109
- month: '2-digit',
110
- day: '2-digit'
111
- });
112
- }, [timeData]);
113
- const timeOfDayFormatter = useCallback(index => {
114
- return new Date(timeData[index]).toLocaleTimeString('en-US', {
115
- hour: '2-digit'
116
- });
117
- }, [timeData]);
118
- const timeOfDayTicks = useMemo(() => {
119
- return timeData.map((d, index) => index);
120
- }, [timeData]);
121
- const dateTicks = useMemo(() => {
122
- return timeData.map((d, index) => index).filter(d => d % 2 === 0);
123
- }, [timeData]);
124
- const chartAccessibilityLabel = "Chart with " + lineA.length + " data points. Swipe to navigate.";
125
- const getScrubberAccessibilityLabel = useCallback(index => "Point " + (index + 1) + ": lineA " + lineA[index] + ", lineB " + lineB[index], [lineA, lineB]);
126
- return /*#__PURE__*/_jsxs(LineChart, {
127
- enableScrubbing: true,
128
- accessibilityLabel: chartAccessibilityLabel,
129
- getScrubberAccessibilityLabel: getScrubberAccessibilityLabel,
130
- height: defaultChartHeight,
131
- series: [{
132
- id: 'lineA',
133
- data: lineA,
134
- color: theme.color.accentBoldBlue
135
- }, {
136
- id: 'lineB',
137
- data: lineB,
138
- color: theme.color.accentBoldGreen
139
- }],
140
- yAxis: {
141
- domain: {
142
- min: 0,
143
- max: 100
144
- }
145
- },
146
- children: [/*#__PURE__*/_jsx(XAxis, {
147
- showLine: true,
148
- showTickMarks: true,
149
- position: "top",
150
- tickLabelFormatter: dateFormatter,
151
- ticks: dateTicks
152
- }), /*#__PURE__*/_jsx(XAxis, {
153
- showGrid: true,
154
- showLine: true,
155
- showTickMarks: true,
156
- tickLabelFormatter: timeOfDayFormatter,
157
- ticks: timeOfDayTicks
158
- }), /*#__PURE__*/_jsx(Scrubber, {})]
159
- });
160
- };
161
- const multipleYAxesData = [1, 10, 30, 50, 70, 90, 100];
162
- const MultipleYAxesExample = () => {
163
- const getScrubberAccessibilityLabel = useCallback(index => "Point " + (index + 1) + ": linear " + multipleYAxesData[index] + ", log " + multipleYAxesData[index], []);
164
- return /*#__PURE__*/_jsxs(CartesianChart, {
165
- enableScrubbing: true,
166
- accessibilityLabel: "Chart with linear and log axes. 7 data points. Swipe to navigate.",
167
- getScrubberAccessibilityLabel: getScrubberAccessibilityLabel,
168
- height: defaultChartHeight,
169
- series: [{
170
- id: 'linear',
171
- yAxisId: 'linearAxis',
172
- data: multipleYAxesData,
173
- label: 'linear'
174
- }, {
175
- id: 'log',
176
- yAxisId: 'logAxis',
177
- data: multipleYAxesData,
178
- label: 'log'
179
- }],
180
- xAxis: {
181
- data: multipleYAxesData
182
- },
183
- yAxis: [{
184
- id: 'linearAxis',
185
- scaleType: 'linear'
186
- }, {
187
- id: 'logAxis',
188
- scaleType: 'log'
189
- }],
190
- children: [/*#__PURE__*/_jsx(XAxis, {
191
- showLine: true,
192
- showTickMarks: true
193
- }), /*#__PURE__*/_jsx(YAxis, {
194
- showLine: true,
195
- showTickMarks: true,
196
- axisId: "logAxis",
197
- position: "left"
198
- }), /*#__PURE__*/_jsx(YAxis, {
199
- showLine: true,
200
- showTickMarks: true,
201
- axisId: "linearAxis",
202
- position: "left"
203
- }), /*#__PURE__*/_jsx(Line, {
204
- curve: "natural",
205
- seriesId: "linear"
206
- }), /*#__PURE__*/_jsx(Line, {
207
- curve: "natural",
208
- seriesId: "log"
209
- }), /*#__PURE__*/_jsx(Scrubber, {})]
210
- });
211
- };
212
- const AxesOnAllSides = () => {
213
- const theme = useTheme();
214
- const data = [30, 45, 60, 80, 55, 40, 65];
215
- const labels = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
216
- return /*#__PURE__*/_jsxs(CartesianChart, {
217
- height: defaultChartHeight,
218
- series: [{
219
- id: 'data',
220
- data,
221
- color: theme.color.accentBoldBlue
222
- }],
223
- xAxis: {
224
- data: labels
225
- },
226
- yAxis: {
227
- domain: {
228
- min: 0,
229
- max: 100
230
- }
231
- },
232
- children: [/*#__PURE__*/_jsx(XAxis, {
233
- showLine: true,
234
- showTickMarks: true,
235
- label: "Bottom Axis",
236
- position: "bottom",
237
- ticks: labels.map((label, index) => index)
238
- }), /*#__PURE__*/_jsx(XAxis, {
239
- showLine: true,
240
- showTickMarks: true,
241
- label: "Top Axis",
242
- position: "top",
243
- ticks: labels.map((label, index) => index)
244
- }), /*#__PURE__*/_jsx(YAxis, {
245
- showLine: true,
246
- showTickMarks: true,
247
- label: "Left Axis",
248
- position: "left"
249
- }), /*#__PURE__*/_jsx(YAxis, {
250
- showLine: true,
251
- showTickMarks: true,
252
- label: "Right Axis",
253
- position: "right"
254
- }), /*#__PURE__*/_jsx(Line, {
255
- curve: "natural",
256
- seriesId: "data"
257
- })]
258
- });
259
- };
260
- const CustomTickMarkSizes = () => {
261
- const theme = useTheme();
262
- const data = [25, 50, 75, 60, 45, 80, 35];
263
- return /*#__PURE__*/_jsxs(CartesianChart, {
264
- height: 300,
265
- series: [{
266
- id: 'data',
267
- data,
268
- color: theme.color.accentBoldGreen
269
- }],
270
- xAxis: {
271
- data: ['A', 'B', 'C', 'D', 'E', 'F', 'G']
272
- },
273
- yAxis: {
274
- domain: {
275
- min: 0,
276
- max: 100
277
- }
278
- },
279
- children: [/*#__PURE__*/_jsx(XAxis, {
280
- showLine: true,
281
- showTickMarks: true,
282
- label: "tickMarkSize=4 (default)",
283
- tickMarkSize: 4
284
- }), /*#__PURE__*/_jsx(XAxis, {
285
- showLine: true,
286
- showTickMarks: true,
287
- height: 60,
288
- label: "tickMarkSize=8",
289
- position: "top",
290
- tickMarkSize: 8
291
- }), /*#__PURE__*/_jsx(YAxis, {
292
- showLine: true,
293
- showTickMarks: true,
294
- label: "tickMarkSize=16",
295
- position: "left",
296
- tickMarkSize: 16,
297
- width: 76
298
- }), /*#__PURE__*/_jsx(YAxis, {
299
- showLine: true,
300
- showTickMarks: true,
301
- label: "tickMarkSize=24",
302
- position: "right",
303
- tickMarkSize: 24,
304
- width: 84
305
- }), /*#__PURE__*/_jsx(Line, {
306
- curve: "monotone",
307
- seriesId: "data"
308
- })]
309
- });
310
- };
311
- const DomainLimitType = _ref => {
312
- let {
313
- limit
314
- } = _ref;
315
- const exponentialData = useMemo(() => [1, 2, 4, 8, 15, 30, 65, 140, 280, 580, 1200, 2400, 4800, 9500, 19000, 38000, 75000, 150000], []);
316
- const getScrubberAccessibilityLabel = useCallback(index => "Point " + (index + 1) + ": " + exponentialData[index], [exponentialData]);
317
- return /*#__PURE__*/_jsxs(CartesianChart, {
318
- enableScrubbing: true,
319
- accessibilityLabel: "Exponential growth chart with " + exponentialData.length + " data points. Swipe to navigate.",
320
- getScrubberAccessibilityLabel: getScrubberAccessibilityLabel,
321
- height: defaultChartHeight,
322
- series: [{
323
- id: 'growthLinear',
324
- data: exponentialData,
325
- color: '#10b981',
326
- yAxisId: 'linear'
327
- }, {
328
- id: 'growthExponential',
329
- data: exponentialData,
330
- color: '#10b981',
331
- yAxisId: 'exponential'
332
- }],
333
- yAxis: [{
334
- id: 'linear',
335
- scaleType: 'linear',
336
- domainLimit: limit
337
- }, {
338
- id: 'exponential',
339
- scaleType: 'log',
340
- domainLimit: limit
341
- }],
342
- children: [/*#__PURE__*/_jsx(Line, {
343
- showArea: true,
344
- curve: "natural",
345
- seriesId: "growthLinear"
346
- }), /*#__PURE__*/_jsx(Line, {
347
- showArea: true,
348
- curve: "natural",
349
- seriesId: "growthExponential"
350
- }), /*#__PURE__*/_jsx(XAxis, {
351
- showLine: true
352
- }), /*#__PURE__*/_jsx(YAxis, {
353
- showLine: true,
354
- showTickMarks: true,
355
- axisId: "exponential",
356
- position: "left",
357
- requestedTickCount: 6,
358
- tickLabelFormatter: value => value.toLocaleString(),
359
- width: 70
360
- }), /*#__PURE__*/_jsx(YAxis, {
361
- showLine: true,
362
- showTickMarks: true,
363
- axisId: "linear",
364
- tickLabelFormatter: value => value.toLocaleString(),
365
- width: 70
366
- }), /*#__PURE__*/_jsx(Scrubber, {})]
367
- });
368
- };
369
-
370
- // Band scale with tick filtering - show every other tick
371
- const BandScaleTickFiltering = () => /*#__PURE__*/_jsxs(CartesianChart, {
372
- height: defaultChartHeight,
373
- inset: 8,
374
- series: [{
375
- id: 'data',
376
- data: [10, 22, 29, 45, 98, 45, 22, 35, 42, 18, 55, 67]
377
- }],
378
- xAxis: {
379
- scaleType: 'band',
380
- data: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
381
- },
382
- yAxis: {
383
- domain: {
384
- min: 0
385
- }
386
- },
387
- children: [/*#__PURE__*/_jsx(XAxis, {
388
- showGrid: true,
389
- showLine: true,
390
- showTickMarks: true,
391
- label: "ticks={(i) => i % 2 === 0}",
392
- ticks: i => i % 2 === 0
393
- }), /*#__PURE__*/_jsx(BarPlot, {})]
394
- });
395
-
396
- // Band scale with explicit ticks array
397
- const BandScaleExplicitTicks = () => /*#__PURE__*/_jsxs(CartesianChart, {
398
- height: defaultChartHeight,
399
- inset: 8,
400
- series: [{
401
- id: 'data',
402
- data: [10, 22, 29, 45, 98, 45, 22]
403
- }],
404
- xAxis: {
405
- scaleType: 'band',
406
- data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
407
- },
408
- yAxis: {
409
- domain: {
410
- min: 0
411
- }
412
- },
413
- children: [/*#__PURE__*/_jsx(XAxis, {
414
- showGrid: true,
415
- showLine: true,
416
- showTickMarks: true,
417
- label: "ticks={[0, 3, 6]} (first, middle, last)",
418
- ticks: [0, 3, 6]
419
- }), /*#__PURE__*/_jsx(BarPlot, {})]
420
- });
421
-
422
- // Line chart on band scale - comparing grid placements
423
- const LineChartOnBandScale = _ref2 => {
424
- let {
425
- bandGridLinePlacement
426
- } = _ref2;
427
- const theme = useTheme();
428
- return /*#__PURE__*/_jsxs(CartesianChart, {
429
- height: 180,
430
- inset: 8,
431
- series: [{
432
- id: 'line1',
433
- data: [10, 22, 29, 45, 98, 45, 22],
434
- color: theme.color.accentBoldBlue
435
- }],
436
- xAxis: {
437
- scaleType: 'band',
438
- data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
439
- },
440
- yAxis: {
441
- domain: {
442
- min: 0
443
- }
444
- },
445
- children: [/*#__PURE__*/_jsx(XAxis, {
446
- showGrid: true,
447
- showLine: true,
448
- showTickMarks: true,
449
- bandGridLinePlacement: bandGridLinePlacement,
450
- bandTickMarkPlacement: bandGridLinePlacement,
451
- label: "bandGridLinePlacement: " + bandGridLinePlacement
452
- }), /*#__PURE__*/_jsx(YAxis, {
453
- showGrid: true,
454
- position: "left"
455
- }), /*#__PURE__*/_jsx(Line, {
456
- seriesId: "line1"
457
- })]
458
- });
459
- };
460
- const AxisStories = () => {
461
- return /*#__PURE__*/_jsxs(ExampleScreen, {
462
- children: [/*#__PURE__*/_jsx(Example, {
463
- title: "Basic",
464
- children: /*#__PURE__*/_jsx(Simple, {})
465
- }), /*#__PURE__*/_jsx(Example, {
466
- title: "Time of Day",
467
- children: /*#__PURE__*/_jsx(TimeOfDayAxesExample, {})
468
- }), /*#__PURE__*/_jsx(Example, {
469
- title: "Multiple Axes on Same Side",
470
- children: /*#__PURE__*/_jsx(MultipleYAxesExample, {})
471
- }), /*#__PURE__*/_jsx(Example, {
472
- title: "Strict Domain Limit",
473
- children: /*#__PURE__*/_jsx(DomainLimitType, {
474
- limit: "strict"
475
- })
476
- }), /*#__PURE__*/_jsx(Example, {
477
- title: "Nice Domain Limit",
478
- children: /*#__PURE__*/_jsx(DomainLimitType, {
479
- limit: "nice"
480
- })
481
- }), /*#__PURE__*/_jsx(Example, {
482
- title: "Band Axis Grid Alignment",
483
- children: /*#__PURE__*/_jsxs(CartesianChart, {
484
- height: 350,
485
- inset: 8,
486
- series: [{
487
- id: 'prices',
488
- data: [10, 22, 29, 45, 98, 45, 22]
489
- }],
490
- xAxis: {
491
- scaleType: 'band',
492
- data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
493
- },
494
- yAxis: {
495
- domain: {
496
- min: 0
497
- }
498
- },
499
- children: [/*#__PURE__*/_jsx(XAxis, {
500
- showGrid: true,
501
- showLine: true,
502
- showTickMarks: true,
503
- label: "Default"
504
- }), /*#__PURE__*/_jsx(XAxis, {
505
- showLine: true,
506
- showTickMarks: true,
507
- bandTickMarkPlacement: "start",
508
- label: "Start"
509
- }), /*#__PURE__*/_jsx(XAxis, {
510
- showLine: true,
511
- showTickMarks: true,
512
- bandTickMarkPlacement: "end",
513
- label: "End"
514
- }), /*#__PURE__*/_jsx(XAxis, {
515
- showLine: true,
516
- showTickMarks: true,
517
- bandTickMarkPlacement: "middle",
518
- label: "Middle"
519
- }), /*#__PURE__*/_jsx(XAxis, {
520
- showLine: true,
521
- showTickMarks: true,
522
- bandTickMarkPlacement: "edges",
523
- label: "Edges"
524
- }), /*#__PURE__*/_jsx(BarPlot, {})]
525
- })
526
- }), /*#__PURE__*/_jsx(Example, {
527
- title: "Band Scale - Tick Filtering",
528
- children: /*#__PURE__*/_jsx(BandScaleTickFiltering, {})
529
- }), /*#__PURE__*/_jsx(Example, {
530
- title: "Band Scale - Explicit Ticks",
531
- children: /*#__PURE__*/_jsx(BandScaleExplicitTicks, {})
532
- }), /*#__PURE__*/_jsxs(Example, {
533
- title: "Line Chart on Band Scale - Grid Positions",
534
- children: [/*#__PURE__*/_jsx(LineChartOnBandScale, {
535
- bandGridLinePlacement: "edges"
536
- }), /*#__PURE__*/_jsx(LineChartOnBandScale, {
537
- bandGridLinePlacement: "start"
538
- }), /*#__PURE__*/_jsx(LineChartOnBandScale, {
539
- bandGridLinePlacement: "middle"
540
- }), /*#__PURE__*/_jsx(LineChartOnBandScale, {
541
- bandGridLinePlacement: "end"
542
- })]
543
- }), /*#__PURE__*/_jsx(Example, {
544
- title: "Axes on All Sides",
545
- children: /*#__PURE__*/_jsx(AxesOnAllSides, {})
546
- }), /*#__PURE__*/_jsx(Example, {
547
- title: "Custom Tick Mark Sizes",
548
- children: /*#__PURE__*/_jsx(CustomTickMarkSizes, {})
549
- })]
550
- });
551
- };
552
- export default AxisStories;
@@ -1,6 +0,0 @@
1
- // codegen:start {preset: barrel, include: ./*.tsx, exclude: ./__stories__/*.tsx}
2
- export * from './Axis';
3
- export * from './DefaultAxisTickLabel';
4
- export * from './XAxis';
5
- export * from './YAxis';
6
- // codegen:end
@@ -1,71 +0,0 @@
1
- import React, { memo, useMemo } from 'react';
2
- import { useTheme } from '@coinbase/cds-mobile/hooks/useTheme';
3
- import { useCartesianChartContext } from '../ChartProvider';
4
- import { getBarPath } from '../utils';
5
- import { DefaultBar } from './DefaultBar';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- /**
8
- * Simple bar component that renders a single bar at the specified position.
9
- *
10
- * This component is intentionally kept simple - it just renders a static bar at the given
11
- * x, y, width, height coordinates. Complex positioning logic (like handling stacks,
12
- * groups, gaps, etc.) should be handled by parent components like BarChart or BarStack.
13
- *
14
- * @example
15
- * ```tsx
16
- * <Bar x={10} y={20} width={50} height={100} fill="blue" />
17
- * ```
18
- */
19
- export const Bar = /*#__PURE__*/memo(_ref => {
20
- let {
21
- x,
22
- y,
23
- width,
24
- height,
25
- origin: originProp,
26
- dataX,
27
- dataY,
28
- seriesId,
29
- BarComponent = DefaultBar,
30
- fill,
31
- fillOpacity = 1,
32
- stroke,
33
- strokeWidth,
34
- borderRadius = 4,
35
- roundTop = true,
36
- roundBottom = true,
37
- minSize,
38
- transitions,
39
- transition
40
- } = _ref;
41
- const theme = useTheme();
42
- const {
43
- layout
44
- } = useCartesianChartContext();
45
- const barPath = useMemo(() => {
46
- return getBarPath(x, y, width, height, borderRadius, roundTop, roundBottom, layout);
47
- }, [x, y, width, height, borderRadius, roundTop, roundBottom, layout]);
48
- const origin = useMemo(() => originProp != null ? originProp : layout === 'horizontal' ? x : y + height, [originProp, layout, x, y, height]);
49
- if (!barPath) return;
50
- return /*#__PURE__*/_jsx(BarComponent, {
51
- borderRadius: borderRadius,
52
- d: barPath,
53
- dataX: dataX,
54
- dataY: dataY,
55
- fill: fill != null ? fill : theme.color.fgPrimary,
56
- fillOpacity: fillOpacity,
57
- height: height,
58
- minSize: minSize,
59
- origin: origin,
60
- roundBottom: roundBottom,
61
- roundTop: roundTop,
62
- seriesId: seriesId,
63
- stroke: stroke,
64
- strokeWidth: strokeWidth,
65
- transition: transition,
66
- transitions: transitions,
67
- width: width,
68
- x: x,
69
- y: y
70
- });
71
- });