@semcore/d3-chart 17.3.1 → 18.0.0-prerelease.1

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 (289) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/lib/cjs/Area.js +11 -11
  3. package/lib/cjs/Axis.js +55 -58
  4. package/lib/cjs/Axis.js.map +1 -1
  5. package/lib/cjs/Bar.js +16 -16
  6. package/lib/cjs/Bubble.js +14 -14
  7. package/lib/cjs/CompactHorizontalBar.js +16 -16
  8. package/lib/cjs/Donut.js +9 -9
  9. package/lib/cjs/Dots.js +14 -11
  10. package/lib/cjs/Dots.js.map +1 -1
  11. package/lib/cjs/HorizontalBar.js +16 -16
  12. package/lib/cjs/Hover.js +158 -39
  13. package/lib/cjs/Hover.js.map +1 -1
  14. package/lib/cjs/Line.js +9 -9
  15. package/lib/cjs/Plot.js +6 -4
  16. package/lib/cjs/Plot.js.map +1 -1
  17. package/lib/cjs/Radar.js +19 -19
  18. package/lib/cjs/RadialTree.js +12 -12
  19. package/lib/cjs/Reference.js +12 -12
  20. package/lib/cjs/ScatterPlot.js +9 -9
  21. package/lib/cjs/Tooltip.js +20 -11
  22. package/lib/cjs/Tooltip.js.map +1 -1
  23. package/lib/cjs/Venn.js +9 -9
  24. package/lib/cjs/a11y/PlotA11yModule.js +2 -2
  25. package/lib/cjs/a11y/PlotA11yView.js +2 -2
  26. package/lib/cjs/component/Chart/AbstractChart.js +139 -50
  27. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  28. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  29. package/lib/cjs/component/Chart/AreaChart.js +12 -10
  30. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  31. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  32. package/lib/cjs/component/Chart/BarChart.js +9 -7
  33. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  34. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  35. package/lib/cjs/component/Chart/BubbleChart.js +21 -8
  36. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  37. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  38. package/lib/cjs/component/Chart/CigaretteChart.js +33 -30
  39. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  40. package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
  41. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +2 -1
  42. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  43. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  44. package/lib/cjs/component/Chart/DonutChart.js +5 -4
  45. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  46. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  47. package/lib/cjs/component/Chart/HistogramChart.js +6 -4
  48. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  49. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  50. package/lib/cjs/component/Chart/LineChart.js +9 -7
  51. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  52. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  53. package/lib/cjs/component/Chart/RadarChart.js +3 -2
  54. package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
  55. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  56. package/lib/cjs/component/Chart/ScatterPlotChart.js +19 -7
  57. package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
  58. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  59. package/lib/cjs/component/Chart/VennChart.js +6 -5
  60. package/lib/cjs/component/Chart/VennChart.js.map +1 -1
  61. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  62. package/lib/cjs/component/ChartLegend/BaseLegend.js +4 -2
  63. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  64. package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
  65. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  66. package/lib/cjs/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  67. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +23 -18
  68. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  69. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
  70. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  71. package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
  72. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +12 -8
  73. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  74. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  75. package/lib/cjs/component/ChartLegend/LegendTable/legend-table.shadow.css +6 -2
  76. package/lib/cjs/style/abstract-chart.shadow.css +31 -1
  77. package/lib/cjs/style/area.shadow.css +6 -5
  78. package/lib/cjs/style/axis.shadow.css +2 -2
  79. package/lib/cjs/style/bar.shadow.css +7 -7
  80. package/lib/cjs/style/bubble.shadow.css +4 -4
  81. package/lib/cjs/style/donut.shadow.css +3 -3
  82. package/lib/cjs/style/dot.shadow.css +9 -3
  83. package/lib/cjs/style/hover.shadow.css +19 -1
  84. package/lib/cjs/style/line.shadow.css +4 -4
  85. package/lib/cjs/style/radar.shadow.css +5 -5
  86. package/lib/cjs/style/radial-tree.shadow.css +3 -3
  87. package/lib/cjs/style/reference.shadow.css +1 -1
  88. package/lib/cjs/style/scatterplot.shadow.css +1 -1
  89. package/lib/cjs/style/tooltip.shadow.css +23 -14
  90. package/lib/cjs/style/venn.shadow.css +3 -3
  91. package/lib/cjs/types/Hover.d.js.map +1 -1
  92. package/lib/cjs/utils/TextMeasurer.js +33 -0
  93. package/lib/cjs/utils/TextMeasurer.js.map +1 -0
  94. package/lib/es6/Area.js +11 -11
  95. package/lib/es6/Axis.js +55 -57
  96. package/lib/es6/Axis.js.map +1 -1
  97. package/lib/es6/Bar.js +16 -16
  98. package/lib/es6/Bubble.js +14 -14
  99. package/lib/es6/CompactHorizontalBar.js +16 -16
  100. package/lib/es6/Donut.js +9 -9
  101. package/lib/es6/Dots.js +14 -11
  102. package/lib/es6/Dots.js.map +1 -1
  103. package/lib/es6/HorizontalBar.js +16 -16
  104. package/lib/es6/Hover.js +158 -39
  105. package/lib/es6/Hover.js.map +1 -1
  106. package/lib/es6/Line.js +9 -9
  107. package/lib/es6/Plot.js +6 -4
  108. package/lib/es6/Plot.js.map +1 -1
  109. package/lib/es6/Radar.js +19 -19
  110. package/lib/es6/RadialTree.js +12 -12
  111. package/lib/es6/Reference.js +12 -12
  112. package/lib/es6/ScatterPlot.js +9 -9
  113. package/lib/es6/Tooltip.js +20 -11
  114. package/lib/es6/Tooltip.js.map +1 -1
  115. package/lib/es6/Venn.js +9 -9
  116. package/lib/es6/a11y/PlotA11yModule.js +2 -2
  117. package/lib/es6/a11y/PlotA11yView.js +2 -2
  118. package/lib/es6/component/Chart/AbstractChart.js +136 -48
  119. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  120. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  121. package/lib/es6/component/Chart/AreaChart.js +12 -10
  122. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  123. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  124. package/lib/es6/component/Chart/BarChart.js +9 -7
  125. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  126. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  127. package/lib/es6/component/Chart/BubbleChart.js +22 -9
  128. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  129. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  130. package/lib/es6/component/Chart/CigaretteChart.js +33 -30
  131. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  132. package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
  133. package/lib/es6/component/Chart/CompactHorizontalBarChart.js +2 -1
  134. package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  135. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  136. package/lib/es6/component/Chart/DonutChart.js +5 -4
  137. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  138. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  139. package/lib/es6/component/Chart/HistogramChart.js +6 -4
  140. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  141. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  142. package/lib/es6/component/Chart/LineChart.js +9 -7
  143. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  144. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  145. package/lib/es6/component/Chart/RadarChart.js +3 -2
  146. package/lib/es6/component/Chart/RadarChart.js.map +1 -1
  147. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  148. package/lib/es6/component/Chart/ScatterPlotChart.js +20 -8
  149. package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
  150. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  151. package/lib/es6/component/Chart/VennChart.js +6 -5
  152. package/lib/es6/component/Chart/VennChart.js.map +1 -1
  153. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  154. package/lib/es6/component/ChartLegend/BaseLegend.js +4 -2
  155. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  156. package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
  157. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  158. package/lib/es6/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  159. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +23 -18
  160. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  161. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
  162. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  163. package/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
  164. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +12 -8
  165. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  166. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  167. package/lib/es6/component/ChartLegend/LegendTable/legend-table.shadow.css +6 -2
  168. package/lib/es6/style/abstract-chart.shadow.css +31 -1
  169. package/lib/es6/style/area.shadow.css +6 -5
  170. package/lib/es6/style/axis.shadow.css +2 -2
  171. package/lib/es6/style/bar.shadow.css +7 -7
  172. package/lib/es6/style/bubble.shadow.css +4 -4
  173. package/lib/es6/style/donut.shadow.css +3 -3
  174. package/lib/es6/style/dot.shadow.css +9 -3
  175. package/lib/es6/style/hover.shadow.css +19 -1
  176. package/lib/es6/style/line.shadow.css +4 -4
  177. package/lib/es6/style/radar.shadow.css +5 -5
  178. package/lib/es6/style/radial-tree.shadow.css +3 -3
  179. package/lib/es6/style/reference.shadow.css +1 -1
  180. package/lib/es6/style/scatterplot.shadow.css +1 -1
  181. package/lib/es6/style/tooltip.shadow.css +23 -14
  182. package/lib/es6/style/venn.shadow.css +3 -3
  183. package/lib/es6/types/Hover.d.js.map +1 -1
  184. package/lib/es6/utils/TextMeasurer.js +25 -0
  185. package/lib/es6/utils/TextMeasurer.js.map +1 -0
  186. package/lib/esm/Area.mjs +12 -12
  187. package/lib/esm/Axis.mjs +56 -58
  188. package/lib/esm/Bar.mjs +17 -17
  189. package/lib/esm/Bubble.mjs +15 -15
  190. package/lib/esm/CompactHorizontalBar.mjs +17 -17
  191. package/lib/esm/Donut.mjs +10 -10
  192. package/lib/esm/Dots.mjs +15 -12
  193. package/lib/esm/HorizontalBar.mjs +17 -17
  194. package/lib/esm/Hover.mjs +157 -40
  195. package/lib/esm/Line.mjs +10 -10
  196. package/lib/esm/Plot.mjs +7 -5
  197. package/lib/esm/Radar.mjs +20 -20
  198. package/lib/esm/RadialTree.mjs +13 -13
  199. package/lib/esm/Reference.mjs +13 -13
  200. package/lib/esm/ScatterPlot.mjs +10 -10
  201. package/lib/esm/Tooltip.mjs +21 -12
  202. package/lib/esm/Venn.mjs +10 -10
  203. package/lib/esm/a11y/PlotA11yModule.mjs +3 -3
  204. package/lib/esm/a11y/PlotA11yView.mjs +3 -3
  205. package/lib/esm/component/Chart/AbstractChart.mjs +150 -54
  206. package/lib/esm/component/Chart/AreaChart.mjs +12 -10
  207. package/lib/esm/component/Chart/BarChart.mjs +9 -7
  208. package/lib/esm/component/Chart/BubbleChart.mjs +29 -9
  209. package/lib/esm/component/Chart/CigaretteChart.mjs +33 -30
  210. package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +2 -1
  211. package/lib/esm/component/Chart/DonutChart.mjs +5 -4
  212. package/lib/esm/component/Chart/HistogramChart.mjs +6 -4
  213. package/lib/esm/component/Chart/LineChart.mjs +9 -7
  214. package/lib/esm/component/Chart/RadarChart.mjs +3 -2
  215. package/lib/esm/component/Chart/ScatterPlotChart.mjs +25 -8
  216. package/lib/esm/component/Chart/VennChart.mjs +6 -5
  217. package/lib/esm/component/ChartLegend/BaseLegend.mjs +4 -2
  218. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +5 -5
  219. package/lib/esm/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  220. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +24 -19
  221. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.type.mjs +1 -1
  222. package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
  223. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +13 -9
  224. package/lib/esm/component/ChartLegend/LegendTable/legend-table.shadow.css +6 -2
  225. package/lib/esm/style/abstract-chart.shadow.css +31 -1
  226. package/lib/esm/style/area.shadow.css +6 -5
  227. package/lib/esm/style/axis.shadow.css +2 -2
  228. package/lib/esm/style/bar.shadow.css +7 -7
  229. package/lib/esm/style/bubble.shadow.css +4 -4
  230. package/lib/esm/style/donut.shadow.css +3 -3
  231. package/lib/esm/style/dot.shadow.css +9 -3
  232. package/lib/esm/style/hover.shadow.css +19 -1
  233. package/lib/esm/style/line.shadow.css +4 -4
  234. package/lib/esm/style/radar.shadow.css +5 -5
  235. package/lib/esm/style/radial-tree.shadow.css +3 -3
  236. package/lib/esm/style/reference.shadow.css +1 -1
  237. package/lib/esm/style/scatterplot.shadow.css +1 -1
  238. package/lib/esm/style/tooltip.shadow.css +23 -14
  239. package/lib/esm/style/venn.shadow.css +3 -3
  240. package/lib/esm/utils/TextMeasurer.mjs +27 -0
  241. package/lib/types/Hover.d.ts +2 -0
  242. package/lib/types/component/Chart/AbstractChart.d.ts +11 -6
  243. package/lib/types/component/Chart/AbstractChart.d.ts.map +1 -1
  244. package/lib/types/component/Chart/AbstractChart.type.d.ts +20 -2
  245. package/lib/types/component/Chart/AbstractChart.type.d.ts.map +1 -1
  246. package/lib/types/component/Chart/AreaChart.d.ts.map +1 -1
  247. package/lib/types/component/Chart/AreaChart.type.d.ts +1 -0
  248. package/lib/types/component/Chart/AreaChart.type.d.ts.map +1 -1
  249. package/lib/types/component/Chart/BarChart.d.ts.map +1 -1
  250. package/lib/types/component/Chart/BarChart.type.d.ts +1 -0
  251. package/lib/types/component/Chart/BarChart.type.d.ts.map +1 -1
  252. package/lib/types/component/Chart/BubbleChart.d.ts.map +1 -1
  253. package/lib/types/component/Chart/BubbleChart.type.d.ts +2 -1
  254. package/lib/types/component/Chart/BubbleChart.type.d.ts.map +1 -1
  255. package/lib/types/component/Chart/CigaretteChart.type.d.ts +2 -1
  256. package/lib/types/component/Chart/CigaretteChart.type.d.ts.map +1 -1
  257. package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts.map +1 -1
  258. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +2 -1
  259. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts.map +1 -1
  260. package/lib/types/component/Chart/DonutChart.d.ts.map +1 -1
  261. package/lib/types/component/Chart/DonutChart.type.d.ts +2 -1
  262. package/lib/types/component/Chart/DonutChart.type.d.ts.map +1 -1
  263. package/lib/types/component/Chart/HistogramChart.d.ts.map +1 -1
  264. package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -0
  265. package/lib/types/component/Chart/HistogramChart.type.d.ts.map +1 -1
  266. package/lib/types/component/Chart/LineChart.d.ts.map +1 -1
  267. package/lib/types/component/Chart/LineChart.type.d.ts +1 -0
  268. package/lib/types/component/Chart/LineChart.type.d.ts.map +1 -1
  269. package/lib/types/component/Chart/RadarChart.d.ts.map +1 -1
  270. package/lib/types/component/Chart/RadarChart.type.d.ts +2 -1
  271. package/lib/types/component/Chart/RadarChart.type.d.ts.map +1 -1
  272. package/lib/types/component/Chart/ScatterPlotChart.d.ts.map +1 -1
  273. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +2 -1
  274. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts.map +1 -1
  275. package/lib/types/component/Chart/VennChart.d.ts.map +1 -1
  276. package/lib/types/component/Chart/VennChart.type.d.ts +2 -1
  277. package/lib/types/component/Chart/VennChart.type.d.ts.map +1 -1
  278. package/lib/types/component/ChartLegend/BaseLegend.d.ts +5 -1
  279. package/lib/types/component/ChartLegend/BaseLegend.d.ts.map +1 -1
  280. package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +1 -1
  281. package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts.map +1 -1
  282. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +3 -1
  283. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts.map +1 -1
  284. package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts.map +1 -1
  285. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +2 -0
  286. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts.map +1 -1
  287. package/lib/types/utils/TextMeasurer.d.ts +5 -0
  288. package/lib/types/utils/TextMeasurer.d.ts.map +1 -0
  289. package/package.json +15 -15
package/lib/esm/Hover.mjs CHANGED
@@ -7,20 +7,32 @@ import React from "react";
7
7
  import createElement from "./createElement.mjs";
8
8
  import Tooltip from "./Tooltip.mjs";
9
9
  import { eventToPoint, invert, getIndexFromData, scaleOfBandwidth, scaleToBand } from "./utils.mjs";
10
+ import { TextMeasurer } from "./utils/TextMeasurer.mjs";
10
11
  /*!__reshadow-styles__:"./style/hover.shadow.css"*/
11
12
  const style = (
12
13
  /*__reshadow_css_start__*/
13
14
  (sstyled.insert(
14
15
  /*__inner_css_start__*/
15
- ".___SHoverLine_zlluo_gg_,.___SHoverLine_zlluo_gg_:focus-visible{outline:none;stroke:var(--intergalactic-chart-grid-x-axis,oklch(.88 .002 175.6))}.___SHoverRect_zlluo_gg_,.___SHoverRect_zlluo_gg_:focus-visible{outline:none;fill:var(--intergalactic-chart-grid-bar-chart-hover,oklch(.177 .033 175.6/.028))}",
16
+ ".___SHoverLine_j53e0_gg_,.___SHoverLine_j53e0_gg_:focus-visible{outline:none;stroke:var(--intergalactic-chart-grid-x-axis,oklch(.88 .002 175.6))}.___SHoverRect_j53e0_gg_,.___SHoverRect_j53e0_gg_:focus-visible{outline:none;fill:var(--intergalactic-chart-grid-bar-chart-hover,oklch(.177 .033 175.6/.042))}.___STick_j53e0_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label,oklch(.097 .023 156.5/.468));transform:translateY(12px);text-anchor:middle;cursor:default}.___STick_j53e0_gg_,.___STick_j53e0_gg_ tspan{dominant-baseline:hanging}.___STickHover_j53e0_gg_{fill:var(--intergalactic-chart-x-axis-accent-tick,oklch(.96 .001 180))}",
16
17
  /*__inner_css_end__*/
17
- "zlluo_gg_"
18
+ "j53e0_gg_"
18
19
  ), /*__reshadow_css_end__*/
19
20
  {
20
- "__SHoverLine": "___SHoverLine_zlluo_gg_",
21
- "__SHoverRect": "___SHoverRect_zlluo_gg_"
21
+ "__SHoverLine": "___SHoverLine_j53e0_gg_",
22
+ "__SHoverRect": "___SHoverRect_j53e0_gg_",
23
+ "__STickHover": "___STickHover_j53e0_gg_",
24
+ "__STick": "___STick_j53e0_gg_"
22
25
  })
23
26
  );
27
+ const STROKE_WIDTH = 1;
28
+ const NOTCH_WIDTH = 9;
29
+ const NOTCH_DELTA = NOTCH_WIDTH / 2 - STROKE_WIDTH / 4;
30
+ function formatValue(value) {
31
+ if (value instanceof Date) {
32
+ return value.toLocaleDateString();
33
+ }
34
+ return value;
35
+ }
24
36
  class Hover extends Component {
25
37
  constructor(...args) {
26
38
  super(...args);
@@ -28,8 +40,9 @@ class Hover extends Component {
28
40
  xIndex: null,
29
41
  yIndex: null
30
42
  });
43
+ _defineProperty(this, "measurer", new TextMeasurer());
31
44
  _defineProperty(this, "virtualElement", canUseDOM() ? document.createElement("div") : {});
32
- _defineProperty(this, "handlerMouseMoveRoot", trottle((e, currentTarget) => {
45
+ _defineProperty(this, "handlerMouseMoveRoot", trottle((e, currentTarget, isTickUnder) => {
33
46
  const {
34
47
  eventEmitter,
35
48
  data,
@@ -66,14 +79,18 @@ class Hover extends Component {
66
79
  } = currentTarget.getBoundingClientRect();
67
80
  const isRootTooltip = hasParent(e.target, rootRef.current);
68
81
  this.setState(state, () => {
82
+ let x2, y2;
69
83
  if (isRootTooltip) {
70
- eventEmitter.emit(`setTooltipPosition_${plotId}`, clientX, clientY);
84
+ x2 = clientX;
85
+ y2 = isTickUnder ? yRect + height / 2 : clientY;
71
86
  } else {
72
87
  const diff = clientY - yOriginal;
73
88
  const dimension = diff / heightOriginal * 100;
74
89
  const heightValue = height / 100 * dimension;
75
- eventEmitter.emit(`setTooltipPosition_${plotId}`, pX + xRect, yRect + heightValue);
90
+ x2 = pX + xRect;
91
+ y2 = isTickUnder ? yRect + height / 2 : yRect + heightValue;
76
92
  }
93
+ eventEmitter.emit(`setTooltipPosition_${plotId}`, x2, y2);
77
94
  eventEmitter.emit(`setTooltipRenderingProps_${plotId}`, {}, state);
78
95
  eventEmitter.emit(`setTooltipVisible_${plotId}`, xIndex !== null || yIndex !== null);
79
96
  });
@@ -93,9 +110,9 @@ class Hover extends Component {
93
110
  const {
94
111
  eventEmitter
95
112
  } = this.asProps;
96
- this.unsubscribeMouseMoveRoot = eventEmitter.subscribe("onMouseMoveChart", (e) => {
113
+ this.unsubscribeMouseMoveRoot = eventEmitter.subscribe("onMouseMoveChart", (e, _, isTickUnder) => {
97
114
  e.persist();
98
- this.handlerMouseMoveRoot(e, e.currentTarget);
115
+ this.handlerMouseMoveRoot(e, e.currentTarget, isTickUnder);
99
116
  });
100
117
  this.unsubscribeMouseLeaveRoot = eventEmitter.subscribe("onMouseLeaveChart", this.handlerMouseLeaveRoot);
101
118
  }
@@ -112,6 +129,17 @@ _defineProperty(Hover, "style", style);
112
129
  class HoverLineRoot extends Hover {
113
130
  render() {
114
131
  var _ref3;
132
+ const {
133
+ hideHoverLine
134
+ } = this.asProps;
135
+ const {
136
+ xIndex,
137
+ yIndex
138
+ } = this.state;
139
+ const isHide = typeof hideHoverLine === "function" ? hideHoverLine(xIndex, yIndex) : hideHoverLine;
140
+ if (isHide) {
141
+ return null;
142
+ }
115
143
  const SHoverLine = this.Element;
116
144
  const {
117
145
  styles,
@@ -119,44 +147,76 @@ class HoverLineRoot extends Hover {
119
147
  y,
120
148
  data,
121
149
  scale,
122
- hideHoverLine
150
+ dataHints,
151
+ hideTickHover
123
152
  } = this.asProps;
124
- const {
125
- xIndex,
126
- yIndex
127
- } = this.state;
128
153
  const [xScale, yScale] = scale;
129
154
  const xRange = xScale.range();
130
155
  const yRange = yScale.range();
131
156
  const x1 = xIndex !== null ? scaleOfBandwidth(xScale, data[xIndex][x]) : void 0;
132
157
  const y1 = yIndex !== null ? scaleOfBandwidth(yScale, data[yIndex][y]) : void 0;
133
- const isHide = typeof hideHoverLine === "function" ? hideHoverLine(xIndex, yIndex) : hideHoverLine;
134
- if (isHide) {
135
- return null;
136
- }
137
- return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, xIndex !== null ? /* @__PURE__ */ React.createElement(SHoverLine, _ref3.cn("SHoverLine", {
138
- "aria-hidden": true,
139
- "render": "line",
158
+ return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, xIndex !== null ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SHoverLine, _ref3.cn("SHoverLine", {
159
+ "render": "g",
140
160
  "index": xIndex,
161
+ "stroke-width": STROKE_WIDTH,
162
+ "aria-hidden": true
163
+ }), /* @__PURE__ */ React.createElement("line", _ref3.cn("line", {
164
+ "x1": x1 - NOTCH_DELTA,
165
+ "x2": x1 + NOTCH_DELTA,
166
+ "y1": yRange[0],
167
+ "y2": yRange[0]
168
+ })), /* @__PURE__ */ React.createElement("line", _ref3.cn("line", {
141
169
  "x1": x1,
142
170
  "y1": yRange[0],
143
171
  "x2": x1,
144
172
  "y2": yRange[1]
145
- })) : null, yIndex !== null ? /* @__PURE__ */ React.createElement(SHoverLine, _ref3.cn("SHoverLine", {
146
- "aria-hidden": true,
147
- "render": "line",
173
+ })), /* @__PURE__ */ React.createElement("line", _ref3.cn("line", {
174
+ "x1": x1 - NOTCH_DELTA,
175
+ "x2": x1 + NOTCH_DELTA,
176
+ "y1": yRange[1],
177
+ "y2": yRange[1]
178
+ }))), !hideTickHover && /* @__PURE__ */ React.createElement(HoveredTick, _ref3.cn("HoveredTick", {
179
+ "tickFormatter": dataHints.titles.getHorizontalAxesTitle ?? formatValue,
180
+ "value": data[xIndex]?.[x],
181
+ "isFirstTick": xIndex === 0,
182
+ "isLastTick": xIndex === data.length - 1,
183
+ "textMeasurer": this.measurer,
184
+ "styles": styles,
185
+ "x": x1,
186
+ "y": yRange[0]
187
+ }))) : null, yIndex !== null ? /* @__PURE__ */ React.createElement(SHoverLine, _ref3.cn("SHoverLine", {
188
+ "render": "g",
148
189
  "index": yIndex,
190
+ "stroke-width": STROKE_WIDTH,
191
+ "aria-hidden": true
192
+ }), /* @__PURE__ */ React.createElement("line", _ref3.cn("line", {
193
+ "x1": xRange[0],
194
+ "y1": y1 - NOTCH_DELTA,
195
+ "x2": xRange[0],
196
+ "y2": y1 + NOTCH_DELTA
197
+ })), /* @__PURE__ */ React.createElement("line", _ref3.cn("line", {
149
198
  "x1": xRange[0],
150
199
  "y1": y1,
151
200
  "x2": xRange[1],
152
201
  "y2": y1
153
- })) : null);
202
+ })), /* @__PURE__ */ React.createElement("line", _ref3.cn("line", {
203
+ "x1": xRange[1],
204
+ "y1": y1 - NOTCH_DELTA,
205
+ "x2": xRange[1],
206
+ "y2": y1 + NOTCH_DELTA
207
+ }))) : null);
154
208
  }
155
209
  }
156
210
  _defineProperty(HoverLineRoot, "displayName", "HoverLine");
157
211
  class HoverRectRoot extends Hover {
158
212
  render() {
159
213
  var _ref4;
214
+ const {
215
+ hideHoverLine
216
+ } = this.asProps;
217
+ if (hideHoverLine) {
218
+ return null;
219
+ }
160
220
  const SHoverRect = this.Element;
161
221
  const {
162
222
  styles,
@@ -164,7 +224,8 @@ class HoverRectRoot extends Hover {
164
224
  y,
165
225
  data,
166
226
  scale,
167
- hideHoverLine
227
+ dataHints,
228
+ hideTickHover
168
229
  } = this.asProps;
169
230
  const {
170
231
  xIndex,
@@ -175,33 +236,89 @@ class HoverRectRoot extends Hover {
175
236
  const yRange = yScale.range();
176
237
  const xBand = scaleToBand(xScale);
177
238
  const yBand = scaleToBand(yScale);
178
- if (hideHoverLine) {
179
- return null;
180
- }
181
- return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, xIndex !== null ? /* @__PURE__ */ React.createElement(SHoverRect, _ref4.cn("SHoverRect", {
239
+ const xStep = xBand.step();
240
+ const xPaddingInner = xBand.paddingInner();
241
+ const yStep = yBand.step();
242
+ const yPaddingInner = yBand.paddingInner();
243
+ return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, xIndex !== null && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SHoverRect, _ref4.cn("SHoverRect", {
182
244
  "aria-hidden": true,
183
245
  "render": "rect",
184
246
  "index": xIndex,
185
- "width": xBand.step() - xBand.paddingInner() / 2,
247
+ "width": xStep - xPaddingInner / 2,
186
248
  "height": yRange[0] - yRange[1],
187
- "x": xScale(data[xIndex][x]) - xBand.step() * xBand.paddingInner() / 2,
249
+ "x": xScale(data[xIndex][x]) - xStep * xPaddingInner / 2,
188
250
  "y": yRange[1]
189
- })) : null, yIndex !== null ? /* @__PURE__ */ React.createElement(SHoverRect, _ref4.cn("SHoverRect", {
251
+ })), !hideTickHover && /* @__PURE__ */ React.createElement(HoveredTick, _ref4.cn("HoveredTick", {
252
+ "tickFormatter": dataHints.titles.getHorizontalAxesTitle ?? formatValue,
253
+ "value": data[xIndex]?.[x],
254
+ "textMeasurer": this.measurer,
255
+ "styles": styles,
256
+ "x": xScale(data[xIndex][x]) + xStep * (1 - xPaddingInner) / 2,
257
+ "y": yRange[0]
258
+ }))), yIndex !== null && /* @__PURE__ */ React.createElement(SHoverRect, _ref4.cn("SHoverRect", {
190
259
  "aria-hidden": true,
191
260
  "render": "rect",
192
261
  "index": yIndex,
193
262
  "width": xRange[1] - xRange[0],
194
- "height": yBand.step() - yBand.paddingInner() / 2,
263
+ "height": yStep - yPaddingInner / 2,
195
264
  "x": xRange[0],
196
- "y": yScale(data[yIndex][y]) - yBand.step() * yBand.paddingInner() / 2
197
- })) : null);
265
+ "y": yScale(data[yIndex][y]) - yStep * yPaddingInner / 2
266
+ })));
198
267
  }
199
268
  }
200
269
  _defineProperty(HoverRectRoot, "displayName", "HoverRect");
270
+ const HOVERED_TICK_PADDING_X = 12;
271
+ const HOVERED_TICK_PADDING_Y = 4;
272
+ const HOVERED_TOCK_BORDER_RADIUS = 6;
273
+ function HoveredTick(props) {
274
+ var _ref5;
275
+ const {
276
+ paddingX = HOVERED_TICK_PADDING_X,
277
+ paddingY = HOVERED_TICK_PADDING_Y,
278
+ borderRadius = HOVERED_TOCK_BORDER_RADIUS,
279
+ tickFormatter,
280
+ value,
281
+ isFirstTick = false,
282
+ isLastTick = false,
283
+ textMeasurer,
284
+ styles,
285
+ x,
286
+ y
287
+ } = props;
288
+ const STickWrapper = "g";
289
+ const STickHover = "rect";
290
+ const STick = "text";
291
+ const formattedValue = tickFormatter(value);
292
+ const {
293
+ width: textWidth,
294
+ height: textHeight
295
+ } = formattedValue !== void 0 ? textMeasurer.measure(formattedValue) : {
296
+ width: 0,
297
+ height: 0
298
+ };
299
+ const hoverX = isFirstTick ? x - NOTCH_DELTA : isLastTick ? x - textWidth - paddingX * 2 + NOTCH_DELTA : x - paddingX - textWidth / 2;
300
+ const tickX = isFirstTick ? x + paddingX + textWidth / 2 - NOTCH_DELTA : isLastTick ? x - textWidth / 2 - paddingX + NOTCH_DELTA : x;
301
+ const hoverPos = {
302
+ x: hoverX,
303
+ y: y + textHeight / 2 - paddingY / 2,
304
+ width: textWidth + paddingX * 2,
305
+ height: textHeight + paddingY * 2
306
+ };
307
+ const tickPos = {
308
+ x: tickX,
309
+ y
310
+ };
311
+ return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(STickWrapper, _ref5.cn("STickWrapper", {}), /* @__PURE__ */ React.createElement(STickHover, _ref5.cn("STickHover", {
312
+ ...hoverPos,
313
+ "rx": borderRadius
314
+ })), /* @__PURE__ */ React.createElement(STick, _ref5.cn("STick", {
315
+ ...tickPos
316
+ }), formattedValue));
317
+ }
201
318
  function HoverLineTooltip(props) {
202
- var _ref = arguments[0], _ref5;
319
+ var _ref = arguments[0], _ref6;
203
320
  const SHoverLineTooltip = Tooltip;
204
- return _ref5 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SHoverLineTooltip, _ref5.cn("SHoverLineTooltip", {
321
+ return _ref6 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SHoverLineTooltip, _ref6.cn("SHoverLineTooltip", {
205
322
  ...assignProps({
206
323
  "tag": HoverLine,
207
324
  "excludeAnchorProps": true
@@ -209,9 +326,9 @@ function HoverLineTooltip(props) {
209
326
  }));
210
327
  }
211
328
  function HoverRectTooltip(props) {
212
- var _ref2 = arguments[0], _ref6;
329
+ var _ref2 = arguments[0], _ref7;
213
330
  const SHoverRectTooltip = Tooltip;
214
- return _ref6 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SHoverRectTooltip, _ref6.cn("SHoverRectTooltip", {
331
+ return _ref7 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SHoverRectTooltip, _ref7.cn("SHoverRectTooltip", {
215
332
  ...assignProps({
216
333
  "tag": HoverRect,
217
334
  "excludeAnchorProps": true
package/lib/esm/Line.mjs CHANGED
@@ -14,19 +14,19 @@ const style = (
14
14
  /*__reshadow_css_start__*/
15
15
  (sstyled.insert(
16
16
  /*__inner_css_start__*/
17
- ".___SLine_5v4ak_gg_{fill:#0000;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2));transition-property:d;transition-duration:var(--duration_5v4ak);transition-timing-function:ease-in-out}.___SLine_5v4ak_gg_.__color_5v4ak_gg_{stroke:var(--color_5v4ak)}.___SLine_5v4ak_gg_.__hide_5v4ak_gg_{display:none}.___SLine_5v4ak_gg_.__transparent_5v4ak_gg_{opacity:.3}.___SNull_5v4ak_gg_{fill:#0000;stroke:var(--intergalactic-border-primary,#000c0829);stroke-dasharray:4}@media (color-gamut:p3){.___SNull_5v4ak_gg_{stroke:var(--intergalactic-border-primary,oklch(.137 .026 175.7/.161))}}.___SNull_5v4ak_gg_.__hide_5v4ak_gg_{display:none}.___SLineArea_5v4ak_gg_{transition-property:d;transition-duration:var(--duration_5v4ak);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2))}.___SLineArea_5v4ak_gg_.__color_5v4ak_gg_{fill:var(--color_5v4ak)}",
17
+ ".___SLine_ty5xk_gg_{fill:#0000;stroke-width:2;stroke:var(--intergalactic-chart-palette-order-1,oklch(.23 .01 140));transition-property:d;transition-duration:var(--duration_ty5xk);transition-timing-function:ease-in-out}.___SLine_ty5xk_gg_.__color_ty5xk_gg_{stroke:var(--color_ty5xk)}.___SLine_ty5xk_gg_.__hide_ty5xk_gg_{display:none}.___SLine_ty5xk_gg_.__transparent_ty5xk_gg_{opacity:.3}.___SNull_ty5xk_gg_{fill:#0000;stroke:var(--intergalactic-chart-palette-order-null,oklch(.9 .002 177));stroke-dasharray:4}.___SNull_ty5xk_gg_.__hide_ty5xk_gg_{display:none}.___SLineArea_ty5xk_gg_{transition-property:d;transition-duration:var(--duration_ty5xk);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .01 140))}.___SLineArea_ty5xk_gg_.__color_ty5xk_gg_{fill:var(--color_ty5xk)}",
18
18
  /*__inner_css_end__*/
19
- "5v4ak_gg_"
19
+ "ty5xk_gg_"
20
20
  ), /*__reshadow_css_end__*/
21
21
  {
22
- "__SLine": "___SLine_5v4ak_gg_",
23
- "--duration": "--duration_5v4ak",
24
- "_color": "__color_5v4ak_gg_",
25
- "--color": "--color_5v4ak",
26
- "_hide": "__hide_5v4ak_gg_",
27
- "_transparent": "__transparent_5v4ak_gg_",
28
- "__SNull": "___SNull_5v4ak_gg_",
29
- "__SLineArea": "___SLineArea_5v4ak_gg_"
22
+ "__SLine": "___SLine_ty5xk_gg_",
23
+ "--duration": "--duration_ty5xk",
24
+ "_color": "__color_ty5xk_gg_",
25
+ "--color": "--color_ty5xk",
26
+ "_hide": "__hide_ty5xk_gg_",
27
+ "_transparent": "__transparent_ty5xk_gg_",
28
+ "__SNull": "___SNull_ty5xk_gg_",
29
+ "__SLineArea": "___SLineArea_ty5xk_gg_"
30
30
  })
31
31
  );
32
32
  class LineRoot extends Component {
package/lib/esm/Plot.mjs CHANGED
@@ -14,12 +14,12 @@ const style = (
14
14
  /*__reshadow_css_start__*/
15
15
  (sstyled.insert(
16
16
  /*__inner_css_start__*/
17
- ".___SPlot_1yukr_gg_{overflow:hidden}.___SPlot_1yukr_gg_:focus{outline:none}.___SPlot_1yukr_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_1yukr_gg_:has(foreignObject[data-aria-only]:focus-within){outline-color:var(--intergalactic-keyboard-focus-outline,#0020dd78);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset;border-radius:var(--intergalactic-surface-rounded,8px)}@media (color-gamut:p3){.___SPlot_1yukr_gg_:has(foreignObject[data-aria-only]:focus-within){outline-color:var(--intergalactic-keyboard-focus-outline,oklch(.424 .269 264.2/.469))}}",
17
+ ".___SPlot_1f5de_gg_{overflow:hidden}.___SPlot_1f5de_gg_:focus{outline:none}.___SPlot_1f5de_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_1f5de_gg_:has(foreignObject[data-aria-only]:focus-within){outline-color:var(--intergalactic-keyboard-focus-outline,#0020dd78);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset;border-radius:var(--intergalactic-surface-rounded,8px)}@media (color-gamut:p3){.___SPlot_1f5de_gg_:has(foreignObject[data-aria-only]:focus-within){outline-color:var(--intergalactic-keyboard-focus-outline,oklch(.424 .269 264.2/.469))}}",
18
18
  /*__inner_css_end__*/
19
- "1yukr_gg_"
19
+ "1f5de_gg_"
20
20
  ), /*__reshadow_css_end__*/
21
21
  {
22
- "__SPlot": "___SPlot_1yukr_gg_"
22
+ "__SPlot": "___SPlot_1f5de_gg_"
23
23
  })
24
24
  );
25
25
  class PlotRoot extends Component {
@@ -39,8 +39,9 @@ class PlotRoot extends Component {
39
39
  const [pX, pY] = eventToPoint(e, this.rootRef.current);
40
40
  const [minX, maxX] = xScale.range();
41
41
  const [maxY, minY] = yScale.range();
42
- if (pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) {
43
- this.eventEmitter.emit("onMouseMoveChart", e, this.rootRef.current);
42
+ if (pX >= minX && pX <= maxX && pY >= minY) {
43
+ const isTickUnder = pY >= maxY;
44
+ this.eventEmitter.emit("onMouseMoveChart", e, this.rootRef.current, isTickUnder);
44
45
  } else {
45
46
  this.eventEmitter.emit("onMouseLeaveChart", e);
46
47
  }
@@ -76,6 +77,7 @@ class PlotRoot extends Component {
76
77
  eventEmitter: this.eventEmitter,
77
78
  rootRef: this.rootRef,
78
79
  dataHintsHandler: this.dataHintsHandler,
80
+ dataHints: this.dataStructureHints,
79
81
  resolveColor,
80
82
  patterns,
81
83
  duration,
package/lib/esm/Radar.mjs CHANGED
@@ -16,29 +16,29 @@ const style = (
16
16
  /*__reshadow_css_start__*/
17
17
  (sstyled.insert(
18
18
  /*__inner_css_start__*/
19
- ".___SAxisLine_glazl_gg_,.___SAxisTick_glazl_gg_,.___SAxis_glazl_gg_{stroke:var(--intergalactic-chart-grid-line,oklch(.95 .002 180));stroke-width:1;fill:#0000}.___SAxisLine_glazl_gg_,.___SAxisTick_glazl_gg_{stroke-dasharray:2}.___SAxisLine_glazl_gg_.__active_glazl_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line,oklch(.88 .002 175.6))}.___SAxisLabel_glazl_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_glazl_gg_.__xDirection_glazl_gg_{text-anchor:var(--xDirection_glazl)}.___SAxisLabel_glazl_gg_.__yDirection_glazl_gg_{dominant-baseline:var(--yDirection_glazl)}.___SPolygon_glazl_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2));opacity:.2}.___SPolygon_glazl_gg_.__color_glazl_gg_{fill:var(--color_glazl)}.___SPolygon_glazl_gg_.__pattern_glazl_gg_.__color_glazl_gg_{fill:var(--pattern_glazl);stroke:var(--color_glazl);stroke-width:1px}.___SPolygonDot_glazl_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border,#fff);r:6px;fill:var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2))}.___SPolygonDot_glazl_gg_.__transparent_glazl_gg_{opacity:.3}.___SPolygonDot_glazl_gg_.__color_glazl_gg_{fill:var(--color_glazl)}.___SPolygonLine_glazl_gg_{stroke:var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2));stroke-width:3;fill:#0000}.___SPolygonLine_glazl_gg_.__transparent_glazl_gg_{opacity:.3}.___SPolygonLine_glazl_gg_.__color_glazl_gg_{stroke:var(--color_glazl)}.___SPieRect_glazl_gg_{outline:none;fill:var(--intergalactic-chart-grid-bar-chart-hover,oklch(.177 .033 175.6/.028))}",
19
+ ".___SAxisLine_1hpm6_gg_,.___SAxisTick_1hpm6_gg_,.___SAxis_1hpm6_gg_{stroke:var(--intergalactic-chart-grid-line,oklch(.95 .002 180));stroke-width:1;fill:#0000}.___SAxisLine_1hpm6_gg_,.___SAxisTick_1hpm6_gg_{stroke-dasharray:2}.___SAxisLine_1hpm6_gg_.__active_1hpm6_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line,oklch(.88 .002 175.6))}.___SAxisLabel_1hpm6_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_1hpm6_gg_.__xDirection_1hpm6_gg_{text-anchor:var(--xDirection_1hpm6)}.___SAxisLabel_1hpm6_gg_.__yDirection_1hpm6_gg_{dominant-baseline:var(--yDirection_1hpm6)}.___SPolygon_1hpm6_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .01 140));opacity:.2}.___SPolygon_1hpm6_gg_.__color_1hpm6_gg_{fill:var(--color_1hpm6)}.___SPolygon_1hpm6_gg_.__pattern_1hpm6_gg_.__color_1hpm6_gg_{fill:var(--pattern_1hpm6);stroke:var(--color_1hpm6);stroke-width:1px}.___SPolygonDot_1hpm6_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border,#fff);r:6px;fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .01 140))}.___SPolygonDot_1hpm6_gg_.__transparent_1hpm6_gg_{opacity:.3}.___SPolygonDot_1hpm6_gg_.__color_1hpm6_gg_{fill:var(--color_1hpm6)}.___SPolygonLine_1hpm6_gg_{stroke:var(--intergalactic-chart-palette-order-1,oklch(.23 .01 140));stroke-width:3;fill:#0000}.___SPolygonLine_1hpm6_gg_.__transparent_1hpm6_gg_{opacity:.3}.___SPolygonLine_1hpm6_gg_.__color_1hpm6_gg_{stroke:var(--color_1hpm6)}.___SPieRect_1hpm6_gg_{outline:none;fill:var(--intergalactic-chart-grid-bar-chart-hover,oklch(.177 .033 175.6/.042))}",
20
20
  /*__inner_css_end__*/
21
- "glazl_gg_"
21
+ "1hpm6_gg_"
22
22
  ), /*__reshadow_css_end__*/
23
23
  {
24
- "__SAxis": "___SAxis_glazl_gg_",
25
- "__SAxisLine": "___SAxisLine_glazl_gg_",
26
- "__SAxisTick": "___SAxisTick_glazl_gg_",
27
- "_active": "__active_glazl_gg_",
28
- "__SAxisLabel": "___SAxisLabel_glazl_gg_",
29
- "_xDirection": "__xDirection_glazl_gg_",
30
- "--xDirection": "--xDirection_glazl",
31
- "_yDirection": "__yDirection_glazl_gg_",
32
- "--yDirection": "--yDirection_glazl",
33
- "__SPolygon": "___SPolygon_glazl_gg_",
34
- "_color": "__color_glazl_gg_",
35
- "--color": "--color_glazl",
36
- "_pattern": "__pattern_glazl_gg_",
37
- "--pattern": "--pattern_glazl",
38
- "__SPolygonDot": "___SPolygonDot_glazl_gg_",
39
- "_transparent": "__transparent_glazl_gg_",
40
- "__SPolygonLine": "___SPolygonLine_glazl_gg_",
41
- "__SPieRect": "___SPieRect_glazl_gg_"
24
+ "__SAxis": "___SAxis_1hpm6_gg_",
25
+ "__SAxisLine": "___SAxisLine_1hpm6_gg_",
26
+ "__SAxisTick": "___SAxisTick_1hpm6_gg_",
27
+ "_active": "__active_1hpm6_gg_",
28
+ "__SAxisLabel": "___SAxisLabel_1hpm6_gg_",
29
+ "_xDirection": "__xDirection_1hpm6_gg_",
30
+ "--xDirection": "--xDirection_1hpm6",
31
+ "_yDirection": "__yDirection_1hpm6_gg_",
32
+ "--yDirection": "--yDirection_1hpm6",
33
+ "__SPolygon": "___SPolygon_1hpm6_gg_",
34
+ "_color": "__color_1hpm6_gg_",
35
+ "--color": "--color_1hpm6",
36
+ "_pattern": "__pattern_1hpm6_gg_",
37
+ "--pattern": "--pattern_1hpm6",
38
+ "__SPolygonDot": "___SPolygonDot_1hpm6_gg_",
39
+ "_transparent": "__transparent_1hpm6_gg_",
40
+ "__SPolygonLine": "___SPolygonLine_1hpm6_gg_",
41
+ "__SPieRect": "___SPieRect_1hpm6_gg_"
42
42
  })
43
43
  );
44
44
  const clampAngle = (angle) => {
@@ -14,22 +14,22 @@ const style = (
14
14
  /*__reshadow_css_start__*/
15
15
  (sstyled.insert(
16
16
  /*__inner_css_start__*/
17
- ".___SRadian_1cg1e_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info,oklch(.53 .157 279.2))}.___SLine_1cg1e_gg_{stroke:var(--intergalactic-text-large-info,oklch(.53 .157 279.2))}.___SLine_1cg1e_gg_.__stroke_1cg1e_gg_{stroke:var(--stroke_1cg1e)}.___SLine_1cg1e_gg_.__transparent_1cg1e_gg_{opacity:.3}.___SCap_1cg1e_gg_{transition:r .1s}.___SCap_1cg1e_gg_.__pattern_1cg1e_gg_{stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:1px}.___SCap_1cg1e_gg_.__transparent_1cg1e_gg_,.___SIcon_1cg1e_gg_.__transparent_1cg1e_gg_{opacity:.3}.___SLabel_1cg1e_gg_{fill:var(--color_1cg1e)}.___SLabel_1cg1e_gg_.__transparent_1cg1e_gg_{opacity:.3}@media (hover:hover){.___SRadian_1cg1e_gg_:hover .___SLabel_1cg1e_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1cg1e_gg_{transition:none}}",
17
+ ".___SRadian_ojwuj_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info,oklch(.6 .166 277.7))}.___SLine_ojwuj_gg_{stroke:var(--intergalactic-text-large-info,oklch(.6 .166 277.7))}.___SLine_ojwuj_gg_.__stroke_ojwuj_gg_{stroke:var(--stroke_ojwuj)}.___SLine_ojwuj_gg_.__transparent_ojwuj_gg_{opacity:.3}.___SCap_ojwuj_gg_{transition:r .1s}.___SCap_ojwuj_gg_.__pattern_ojwuj_gg_{stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:1px}.___SCap_ojwuj_gg_.__transparent_ojwuj_gg_,.___SIcon_ojwuj_gg_.__transparent_ojwuj_gg_{opacity:.3}.___SLabel_ojwuj_gg_{fill:var(--color_ojwuj)}.___SLabel_ojwuj_gg_.__transparent_ojwuj_gg_{opacity:.3}@media (hover:hover){.___SRadian_ojwuj_gg_:hover .___SLabel_ojwuj_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_ojwuj_gg_{transition:none}}",
18
18
  /*__inner_css_end__*/
19
- "1cg1e_gg_"
19
+ "ojwuj_gg_"
20
20
  ), /*__reshadow_css_end__*/
21
21
  {
22
- "__SRadian": "___SRadian_1cg1e_gg_",
23
- "__SLine": "___SLine_1cg1e_gg_",
24
- "_stroke": "__stroke_1cg1e_gg_",
25
- "--stroke": "--stroke_1cg1e",
26
- "_transparent": "__transparent_1cg1e_gg_",
27
- "__SCap": "___SCap_1cg1e_gg_",
28
- "_pattern": "__pattern_1cg1e_gg_",
29
- "__SIcon": "___SIcon_1cg1e_gg_",
30
- "__SLabel": "___SLabel_1cg1e_gg_",
31
- "--color": "--color_1cg1e",
32
- "__SLineCap": "___SLineCap_1cg1e_gg_"
22
+ "__SRadian": "___SRadian_ojwuj_gg_",
23
+ "__SLine": "___SLine_ojwuj_gg_",
24
+ "_stroke": "__stroke_ojwuj_gg_",
25
+ "--stroke": "--stroke_ojwuj",
26
+ "_transparent": "__transparent_ojwuj_gg_",
27
+ "__SCap": "___SCap_ojwuj_gg_",
28
+ "_pattern": "__pattern_ojwuj_gg_",
29
+ "__SIcon": "___SIcon_ojwuj_gg_",
30
+ "__SLabel": "___SLabel_ojwuj_gg_",
31
+ "--color": "--color_ojwuj",
32
+ "__SLineCap": "___SLineCap_ojwuj_gg_"
33
33
  })
34
34
  );
35
35
  const baseAngle = -Math.PI / 2;
@@ -9,22 +9,22 @@ const style = (
9
9
  /*__reshadow_css_start__*/
10
10
  (sstyled.insert(
11
11
  /*__inner_css_start__*/
12
- ".___SReferenceLine_1xddn_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line,oklch(.88 .002 175.6))}.___STitle_1xddn_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label,#00030095);transform-origin:var(--transform-origin_1xddn)}@media (color-gamut:p3){.___STitle_1xddn_gg_{fill:var(--intergalactic-chart-grid-text-label,oklch(.088 .026 147.7/.583))}}.___STitle_1xddn_gg_._position_top_1xddn_gg_{text-anchor:middle}.___STitle_1xddn_gg_._position_bottom_1xddn_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1xddn_gg_._position_left_1xddn_gg_,.___STitle_1xddn_gg_._position_right_1xddn_gg_{transform:rotate(-90deg);dominant-baseline:middle;text-anchor:middle}.___SBackground_1xddn_gg_{fill:var(--intergalactic-chart-grid-period-bg,oklch(.96 .001 180))}.___SStripes_1xddn_gg_{fill:var(--fill_1xddn)}.___SStripesPatternPath_1xddn_gg_{stroke:var(--intergalactic-chart-grid-period-pattern,oklch(.95 .002 180));stroke-width:1px}",
12
+ ".___SReferenceLine_1ycra_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line,oklch(.88 .002 175.6))}.___STitle_1ycra_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label,oklch(.097 .023 156.5/.468));transform-origin:var(--transform-origin_1ycra)}.___STitle_1ycra_gg_._position_top_1ycra_gg_{text-anchor:middle}.___STitle_1ycra_gg_._position_bottom_1ycra_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1ycra_gg_._position_left_1ycra_gg_,.___STitle_1ycra_gg_._position_right_1ycra_gg_{transform:rotate(-90deg);dominant-baseline:middle;text-anchor:middle}.___SBackground_1ycra_gg_{fill:var(--intergalactic-chart-grid-period-bg,oklch(.96 .001 180))}.___SStripes_1ycra_gg_{fill:var(--fill_1ycra)}.___SStripesPatternPath_1ycra_gg_{stroke:var(--intergalactic-chart-grid-period-pattern,oklch(.95 .002 180));stroke-width:1px}",
13
13
  /*__inner_css_end__*/
14
- "1xddn_gg_"
14
+ "1ycra_gg_"
15
15
  ), /*__reshadow_css_end__*/
16
16
  {
17
- "__SReferenceLine": "___SReferenceLine_1xddn_gg_",
18
- "__STitle": "___STitle_1xddn_gg_",
19
- "--transform-origin": "--transform-origin_1xddn",
20
- "_position_top": "_position_top_1xddn_gg_",
21
- "_position_bottom": "_position_bottom_1xddn_gg_",
22
- "_position_right": "_position_right_1xddn_gg_",
23
- "_position_left": "_position_left_1xddn_gg_",
24
- "__SBackground": "___SBackground_1xddn_gg_",
25
- "__SStripes": "___SStripes_1xddn_gg_",
26
- "--fill": "--fill_1xddn",
27
- "__SStripesPatternPath": "___SStripesPatternPath_1xddn_gg_"
17
+ "__SReferenceLine": "___SReferenceLine_1ycra_gg_",
18
+ "__STitle": "___STitle_1ycra_gg_",
19
+ "--transform-origin": "--transform-origin_1ycra",
20
+ "_position_top": "_position_top_1ycra_gg_",
21
+ "_position_bottom": "_position_bottom_1ycra_gg_",
22
+ "_position_right": "_position_right_1ycra_gg_",
23
+ "_position_left": "_position_left_1ycra_gg_",
24
+ "__SBackground": "___SBackground_1ycra_gg_",
25
+ "__SStripes": "___SStripes_1ycra_gg_",
26
+ "--fill": "--fill_1ycra",
27
+ "__SStripesPatternPath": "___SStripesPatternPath_1ycra_gg_"
28
28
  })
29
29
  );
30
30
  const side2direction = {
@@ -13,19 +13,19 @@ const style = (
13
13
  /*__reshadow_css_start__*/
14
14
  (sstyled.insert(
15
15
  /*__inner_css_start__*/
16
- ".___SScatterPlot_14nlj_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2));transition-property:cx,cy;transition-duration:var(--duration_14nlj);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_14nlj_gg_:hover{opacity:.8}}.___SScatterPlot_14nlj_gg_.__color_14nlj_gg_{fill:var(--color_14nlj)}.___SScatterPlot_14nlj_gg_.__pattern_14nlj_gg_.__color_14nlj_gg_{fill:var(--pattern_14nlj);stroke:var(--color_14nlj);stroke-width:1px}.___SScatterPlot_14nlj_gg_.__transparent_14nlj_gg_{opacity:.3}.___SValue_14nlj_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50,10px);stroke:var(--intergalactic-chart-palette-order-9,oklch(.53 .157 279.2))}.___SValue_14nlj_gg_.__color_14nlj_gg_{stroke:var(--color_14nlj)}.___SValue_14nlj_gg_.__transparent_14nlj_gg_{opacity:.3}",
16
+ ".___SScatterPlot_1kxs7_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .01 140));transition-property:cx,cy;transition-duration:var(--duration_1kxs7);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_1kxs7_gg_:hover{opacity:.8}}.___SScatterPlot_1kxs7_gg_.__color_1kxs7_gg_{fill:var(--color_1kxs7)}.___SScatterPlot_1kxs7_gg_.__pattern_1kxs7_gg_.__color_1kxs7_gg_{fill:var(--pattern_1kxs7);stroke:var(--color_1kxs7);stroke-width:1px}.___SScatterPlot_1kxs7_gg_.__transparent_1kxs7_gg_{opacity:.3}.___SValue_1kxs7_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50,10px);stroke:var(--intergalactic-chart-palette-order-9,oklch(.53 .157 279.2))}.___SValue_1kxs7_gg_.__color_1kxs7_gg_{stroke:var(--color_1kxs7)}.___SValue_1kxs7_gg_.__transparent_1kxs7_gg_{opacity:.3}",
17
17
  /*__inner_css_end__*/
18
- "14nlj_gg_"
18
+ "1kxs7_gg_"
19
19
  ), /*__reshadow_css_end__*/
20
20
  {
21
- "__SScatterPlot": "___SScatterPlot_14nlj_gg_",
22
- "_color": "__color_14nlj_gg_",
23
- "--color": "--color_14nlj",
24
- "_pattern": "__pattern_14nlj_gg_",
25
- "--pattern": "--pattern_14nlj",
26
- "_transparent": "__transparent_14nlj_gg_",
27
- "__SValue": "___SValue_14nlj_gg_",
28
- "--duration": "--duration_14nlj"
21
+ "__SScatterPlot": "___SScatterPlot_1kxs7_gg_",
22
+ "_color": "__color_1kxs7_gg_",
23
+ "--color": "--color_1kxs7",
24
+ "_pattern": "__pattern_1kxs7_gg_",
25
+ "--pattern": "--pattern_1kxs7",
26
+ "_transparent": "__transparent_1kxs7_gg_",
27
+ "__SValue": "___SValue_1kxs7_gg_",
28
+ "--duration": "--duration_1kxs7"
29
29
  })
30
30
  );
31
31
  class ScatterPlotRoot extends Component {
@@ -12,19 +12,22 @@ const style = (
12
12
  /*__reshadow_css_start__*/
13
13
  (sstyled.insert(
14
14
  /*__inner_css_start__*/
15
- ".___STooltip_dy7ls_gg_{font-size:var(--intergalactic-fs-100,12px);line-height:var(--intergalactic-lh-100,133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral,oklch(1 0 0));border-radius:var(--intergalactic-popper-rounded,6px);border:1px solid var(--intergalactic-border-secondary,#00151012);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 #00151012);padding:var(--intergalactic-spacing-3x,12px)}@media (color-gamut:p3){.___STooltip_dy7ls_gg_{border:1px solid var(--intergalactic-border-secondary,oklch(.176 .033 175.7/.07));box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 oklch(.176 .033 175.7/.07))}}.___STitle_dy7ls_gg_{color:var(--intergalactic-text-secondary,#00030095);margin-bottom:var(--intergalactic-spacing-2x,8px)}@media (color-gamut:p3){.___STitle_dy7ls_gg_{color:var(--intergalactic-text-secondary,oklch(.088 .026 147.7/.583))}}.___SDotGroup_dy7ls_gg_{display:flex;align-items:center}.___SDot_dy7ls_gg_{margin-right:var(--intergalactic-spacing-2x,8px)}.___SDotCircle_dy7ls_gg_.__color_dy7ls_gg_{background-color:var(--color_dy7ls);width:8px;height:8px;border-radius:50%}.___SFooter_dy7ls_gg_{background:var(--intergalactic-bg-secondary-neutral,oklch(.98 .001 180));padding:var(--intergalactic-spacing-1x,4px) var(--intergalactic-spacing-3x,12px);border-radius:0 0 var(--intergalactic-rounded-medium,6px) var(--intergalactic-rounded-medium,6px);margin:var(--intergalactic-spacing-3x,12px) calc(var(--intergalactic-spacing-3x, 12px)*-1) calc(var(--intergalactic-spacing-3x, 12px)*-1)}",
15
+ '.___STooltip_oee7t_gg_{font-size:var(--intergalactic-fs-100,12px);line-height:var(--intergalactic-lh-100,1.3334);font-feature-settings:"tnum";font-variant-numeric:tabular-nums;position:relative;color:var(--intergalactic-text-primary-invert,oklch(.999 .001 180/.949));background-color:var(--intergalactic-tooltip-bg-invert,oklch(.23 .01 140));border-radius:var(--intergalactic-popper-rounded,6px);border:1px solid var(--intergalactic-tooltip-border-invert,oklch(.4 .004 140));box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 #00151012);padding:var(--intergalactic-spacing-content-padding-medium,12px)}@media (color-gamut:p3){.___STooltip_oee7t_gg_{box-shadow:var(--intergalactic-box-shadow-popper,1px 1px 10px 0 oklch(.176 .033 175.7/.07))}}.___STitle_oee7t_gg_{color:var(--intergalactic-text-secondary-invert,oklch(.997 .004 165.9/.684));margin-bottom:var(--intergalactic-spacing-content-gap-large,8px)}.___SDotGroup_oee7t_gg_{display:flex;align-items:center}.___SDot_oee7t_gg_{margin-right:var(--intergalactic-spacing-content-gap-large,8px)}.___SDotCircle_oee7t_gg_.__color_oee7t_gg_.__lightness_oee7t_gg_{background-color:var(--color_oee7t);width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 1px oklch(from var(--color_oee7t) calc(l + var(--lightness_oee7t)) c h)}.___SFooter_oee7t_gg_{background:var(--intergalactic-bg-secondary-invert,oklch(.969 .057 140/.118));color:var(--intergalactic-text-secondary-invert,oklch(.997 .004 165.9/.684));padding:var(--intergalactic-spacing-content-padding-xsmall,4px) var(--intergalactic-spacing-content-padding-medium,12px);border-radius:0 0 var(--intergalactic-rounded-medium,6px) var(--intergalactic-rounded-medium,6px);margin:var(--intergalactic-spacing-content-gap-xlarge,12px) calc(var(--intergalactic-spacing-content-gap-xlarge, 12px)*-1) calc(var(--intergalactic-spacing-content-gap-xlarge, 12px)*-1)}.___SDotPattern_oee7t_gg_{stroke-width:1px;stroke:oklch(from var(--intergalactic-chart-grid-border,#fff) l c h/.5)}',
16
16
  /*__inner_css_end__*/
17
- "dy7ls_gg_"
17
+ "oee7t_gg_"
18
18
  ), /*__reshadow_css_end__*/
19
19
  {
20
- "__STooltip": "___STooltip_dy7ls_gg_",
21
- "__STitle": "___STitle_dy7ls_gg_",
22
- "__SDotGroup": "___SDotGroup_dy7ls_gg_",
23
- "__SDot": "___SDot_dy7ls_gg_",
24
- "__SDotCircle": "___SDotCircle_dy7ls_gg_",
25
- "_color": "__color_dy7ls_gg_",
26
- "--color": "--color_dy7ls",
27
- "__SFooter": "___SFooter_dy7ls_gg_"
20
+ "__STooltip": "___STooltip_oee7t_gg_",
21
+ "__STitle": "___STitle_oee7t_gg_",
22
+ "__SDotGroup": "___SDotGroup_oee7t_gg_",
23
+ "__SDot": "___SDot_oee7t_gg_",
24
+ "__SDotCircle": "___SDotCircle_oee7t_gg_",
25
+ "_color": "__color_oee7t_gg_",
26
+ "_lightness": "__lightness_oee7t_gg_",
27
+ "--color": "--color_oee7t",
28
+ "--lightness": "--lightness_oee7t",
29
+ "__SFooter": "___SFooter_oee7t_gg_",
30
+ "__SDotPattern": "___SDotPattern_oee7t_gg_"
28
31
  })
29
32
  );
30
33
  const TooltipDotRenderContext = /* @__PURE__ */ React.createContext({
@@ -207,6 +210,10 @@ function Title(props) {
207
210
  }));
208
211
  }
209
212
  Title.style = style;
213
+ const CHART_PALETTE_ORDER_TO_LIGHTNESS = {
214
+ "chart-palette-order-1": 0.35,
215
+ "DEFAULT": 0.15
216
+ };
210
217
  function Dot(props) {
211
218
  var _ref4 = arguments[0], _ref8;
212
219
  const {
@@ -226,16 +233,18 @@ function Dot(props) {
226
233
  const SDotGroup = Box;
227
234
  const SDot = Box;
228
235
  const SDotCircle = Box;
236
+ const SDotPattern = PatternSymbol;
229
237
  return _ref8 = sstyled(styles), /* @__PURE__ */ React.createElement(SDotGroup, _ref8.cn("SDotGroup", {
230
238
  ...assignProps({
231
239
  "use:color": void 0,
232
240
  "__excludeProps": ["data", "scale"]
233
241
  }, _ref4)
234
- }), patterns ? /* @__PURE__ */ React.createElement(SDot, _ref8.cn("SDot", {}), /* @__PURE__ */ React.createElement(PatternSymbol, _ref8.cn("PatternSymbol", {
242
+ }), patterns ? /* @__PURE__ */ React.createElement(SDot, _ref8.cn("SDot", {}), /* @__PURE__ */ React.createElement(SDotPattern, _ref8.cn("SDotPattern", {
235
243
  "color": resolveColor(color ?? defaultColor),
236
244
  "patternKey": color ?? defaultColor
237
245
  }))) : /* @__PURE__ */ React.createElement(SDot, _ref8.cn("SDot", {}), /* @__PURE__ */ React.createElement(SDotCircle, _ref8.cn("SDotCircle", {
238
- "color": resolveColor(color ?? defaultColor)
246
+ "color": resolveColor(color ?? defaultColor),
247
+ "lightness": CHART_PALETTE_ORDER_TO_LIGHTNESS[color ?? defaultColor] ?? CHART_PALETTE_ORDER_TO_LIGHTNESS.DEFAULT
239
248
  }))), /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {})));
240
249
  }
241
250
  Dot.style = style;