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

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 (339) hide show
  1. package/CHANGELOG.md +52 -1
  2. package/README.md +0 -1
  3. package/lib/cjs/Area.js +123 -23
  4. package/lib/cjs/Area.js.map +1 -1
  5. package/lib/cjs/Axis.js +109 -97
  6. package/lib/cjs/Axis.js.map +1 -1
  7. package/lib/cjs/Bar.js +16 -16
  8. package/lib/cjs/Bubble.js +14 -14
  9. package/lib/cjs/ChartMetaData.js +44 -0
  10. package/lib/cjs/ChartMetaData.js.map +1 -0
  11. package/lib/cjs/CompactHorizontalBar.js +17 -17
  12. package/lib/cjs/CompactHorizontalBar.js.map +1 -1
  13. package/lib/cjs/Donut.js +18 -19
  14. package/lib/cjs/Donut.js.map +1 -1
  15. package/lib/cjs/Dots.js +67 -13
  16. package/lib/cjs/Dots.js.map +1 -1
  17. package/lib/cjs/GroupBar.js +5 -2
  18. package/lib/cjs/GroupBar.js.map +1 -1
  19. package/lib/cjs/HorizontalBar.js +16 -16
  20. package/lib/cjs/Hover.js +55 -52
  21. package/lib/cjs/Hover.js.map +1 -1
  22. package/lib/cjs/Line.js +82 -17
  23. package/lib/cjs/Line.js.map +1 -1
  24. package/lib/cjs/Pattern.js +113 -2
  25. package/lib/cjs/Pattern.js.map +1 -1
  26. package/lib/cjs/Plot.js +5 -2
  27. package/lib/cjs/Plot.js.map +1 -1
  28. package/lib/cjs/Radar.js +19 -19
  29. package/lib/cjs/RadialTree.js +12 -12
  30. package/lib/cjs/Reference.js +55 -18
  31. package/lib/cjs/Reference.js.map +1 -1
  32. package/lib/cjs/ScatterPlot.js +9 -9
  33. package/lib/cjs/Tooltip.js +16 -14
  34. package/lib/cjs/Tooltip.js.map +1 -1
  35. package/lib/cjs/Venn.js +9 -9
  36. package/lib/cjs/a11y/PlotA11yView.js +2 -2
  37. package/lib/cjs/component/Chart/AbstractChart.js +29 -23
  38. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  39. package/lib/cjs/component/Chart/AbstractChart.type.js +19 -0
  40. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  41. package/lib/cjs/component/Chart/AreaChart.js +21 -7
  42. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  43. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  44. package/lib/cjs/component/Chart/BarChart.js +17 -8
  45. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  46. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  47. package/lib/cjs/component/Chart/BubbleChart.js +4 -0
  48. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  49. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  50. package/lib/cjs/component/Chart/CigaretteChart.js +5 -1
  51. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  52. package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
  53. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  54. package/lib/cjs/component/Chart/DonutChart.js +0 -1
  55. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  56. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  57. package/lib/cjs/component/Chart/HistogramChart.js +6 -3
  58. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  59. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  60. package/lib/cjs/component/Chart/LineChart.js +16 -6
  61. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  62. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  63. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  64. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  65. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  66. package/lib/cjs/component/Chart/index.js +43 -0
  67. package/lib/cjs/component/Chart/index.js.map +1 -1
  68. package/lib/cjs/component/ChartLegend/BaseLegend.js +0 -4
  69. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  70. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  71. package/lib/cjs/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  72. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +19 -17
  73. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  74. package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
  75. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +28 -21
  76. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  77. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  78. package/lib/cjs/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
  79. package/lib/cjs/component/Cigarette/Cigarette.js +0 -1
  80. package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
  81. package/lib/cjs/component/Metric/Metric.js +78 -0
  82. package/lib/cjs/component/Metric/Metric.js.map +1 -0
  83. package/lib/cjs/component/Metric/Metric.type.js +2 -0
  84. package/lib/cjs/component/Metric/Metric.type.js.map +1 -0
  85. package/lib/cjs/index.js +62 -8
  86. package/lib/cjs/index.js.map +1 -1
  87. package/lib/cjs/style/abstract-chart.shadow.css +13 -3
  88. package/lib/cjs/style/area.shadow.css +8 -7
  89. package/lib/cjs/style/axis.shadow.css +51 -60
  90. package/lib/cjs/style/bar.shadow.css +7 -9
  91. package/lib/cjs/style/bubble.shadow.css +4 -6
  92. package/lib/cjs/style/donut.shadow.css +3 -5
  93. package/lib/cjs/style/dot.shadow.css +37 -4
  94. package/lib/cjs/style/hover.shadow.css +30 -13
  95. package/lib/cjs/style/line.shadow.css +3 -5
  96. package/lib/cjs/style/pattern.shadow.css +10 -0
  97. package/lib/cjs/style/plotA11yView.shadow.css +3 -3
  98. package/lib/cjs/style/radar.shadow.css +7 -7
  99. package/lib/cjs/style/radial-tree.shadow.css +3 -5
  100. package/lib/cjs/style/reference.shadow.css +5 -5
  101. package/lib/cjs/style/scatterplot.shadow.css +2 -4
  102. package/lib/cjs/style/tooltip.shadow.css +12 -14
  103. package/lib/cjs/style/venn.shadow.css +0 -2
  104. package/lib/cjs/types/Axis.d.js.map +1 -1
  105. package/lib/cjs/types/Donut.d.js.map +1 -1
  106. package/lib/cjs/types/Hover.d.js.map +1 -1
  107. package/lib/cjs/types/index.d.js +20 -0
  108. package/lib/cjs/types/index.d.js.map +1 -1
  109. package/lib/cjs/utils.js +21 -1
  110. package/lib/cjs/utils.js.map +1 -1
  111. package/lib/es6/Area.js +125 -25
  112. package/lib/es6/Area.js.map +1 -1
  113. package/lib/es6/Axis.js +109 -97
  114. package/lib/es6/Axis.js.map +1 -1
  115. package/lib/es6/Bar.js +16 -16
  116. package/lib/es6/Bubble.js +14 -14
  117. package/lib/es6/ChartMetaData.js +36 -0
  118. package/lib/es6/ChartMetaData.js.map +1 -0
  119. package/lib/es6/CompactHorizontalBar.js +17 -17
  120. package/lib/es6/CompactHorizontalBar.js.map +1 -1
  121. package/lib/es6/Donut.js +18 -19
  122. package/lib/es6/Donut.js.map +1 -1
  123. package/lib/es6/Dots.js +68 -14
  124. package/lib/es6/Dots.js.map +1 -1
  125. package/lib/es6/GroupBar.js +5 -2
  126. package/lib/es6/GroupBar.js.map +1 -1
  127. package/lib/es6/HorizontalBar.js +16 -16
  128. package/lib/es6/Hover.js +55 -52
  129. package/lib/es6/Hover.js.map +1 -1
  130. package/lib/es6/Line.js +84 -19
  131. package/lib/es6/Line.js.map +1 -1
  132. package/lib/es6/Pattern.js +108 -2
  133. package/lib/es6/Pattern.js.map +1 -1
  134. package/lib/es6/Plot.js +5 -2
  135. package/lib/es6/Plot.js.map +1 -1
  136. package/lib/es6/Radar.js +19 -19
  137. package/lib/es6/RadialTree.js +12 -12
  138. package/lib/es6/Reference.js +55 -18
  139. package/lib/es6/Reference.js.map +1 -1
  140. package/lib/es6/ScatterPlot.js +9 -9
  141. package/lib/es6/Tooltip.js +16 -14
  142. package/lib/es6/Tooltip.js.map +1 -1
  143. package/lib/es6/Venn.js +9 -9
  144. package/lib/es6/a11y/PlotA11yView.js +2 -2
  145. package/lib/es6/component/Chart/AbstractChart.js +29 -23
  146. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  147. package/lib/es6/component/Chart/AbstractChart.type.js +14 -1
  148. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  149. package/lib/es6/component/Chart/AreaChart.js +21 -7
  150. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  151. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  152. package/lib/es6/component/Chart/BarChart.js +17 -8
  153. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  154. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  155. package/lib/es6/component/Chart/BubbleChart.js +4 -0
  156. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  157. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  158. package/lib/es6/component/Chart/CigaretteChart.js +5 -1
  159. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  160. package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
  161. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  162. package/lib/es6/component/Chart/DonutChart.js +0 -1
  163. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  164. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  165. package/lib/es6/component/Chart/HistogramChart.js +6 -3
  166. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  167. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  168. package/lib/es6/component/Chart/LineChart.js +14 -4
  169. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  170. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  171. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  172. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  173. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  174. package/lib/es6/component/Chart/index.js +2 -0
  175. package/lib/es6/component/Chart/index.js.map +1 -1
  176. package/lib/es6/component/ChartLegend/BaseLegend.js +0 -4
  177. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  178. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  179. package/lib/es6/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  180. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +19 -17
  181. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  182. package/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
  183. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +28 -21
  184. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  185. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  186. package/lib/es6/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
  187. package/lib/es6/component/Cigarette/Cigarette.js +0 -1
  188. package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
  189. package/lib/es6/component/Metric/Metric.js +72 -0
  190. package/lib/es6/component/Metric/Metric.js.map +1 -0
  191. package/lib/es6/component/Metric/Metric.type.js +2 -0
  192. package/lib/es6/component/Metric/Metric.type.js.map +1 -0
  193. package/lib/es6/index.js +2 -1
  194. package/lib/es6/index.js.map +1 -1
  195. package/lib/es6/style/abstract-chart.shadow.css +13 -3
  196. package/lib/es6/style/area.shadow.css +8 -7
  197. package/lib/es6/style/axis.shadow.css +51 -60
  198. package/lib/es6/style/bar.shadow.css +7 -9
  199. package/lib/es6/style/bubble.shadow.css +4 -6
  200. package/lib/es6/style/donut.shadow.css +3 -5
  201. package/lib/es6/style/dot.shadow.css +37 -4
  202. package/lib/es6/style/hover.shadow.css +30 -13
  203. package/lib/es6/style/line.shadow.css +3 -5
  204. package/lib/es6/style/pattern.shadow.css +10 -0
  205. package/lib/es6/style/plotA11yView.shadow.css +3 -3
  206. package/lib/es6/style/radar.shadow.css +7 -7
  207. package/lib/es6/style/radial-tree.shadow.css +3 -5
  208. package/lib/es6/style/reference.shadow.css +5 -5
  209. package/lib/es6/style/scatterplot.shadow.css +2 -4
  210. package/lib/es6/style/tooltip.shadow.css +12 -14
  211. package/lib/es6/style/venn.shadow.css +0 -2
  212. package/lib/es6/types/Axis.d.js.map +1 -1
  213. package/lib/es6/types/Donut.d.js.map +1 -1
  214. package/lib/es6/types/Hover.d.js.map +1 -1
  215. package/lib/es6/types/index.d.js +5 -7
  216. package/lib/es6/types/index.d.js.map +1 -1
  217. package/lib/es6/utils.js +18 -0
  218. package/lib/es6/utils.js.map +1 -1
  219. package/lib/esm/Area.mjs +127 -26
  220. package/lib/esm/Axis.mjs +110 -98
  221. package/lib/esm/Bar.mjs +17 -17
  222. package/lib/esm/Bubble.mjs +15 -15
  223. package/lib/esm/ChartMetaData.mjs +38 -0
  224. package/lib/esm/CompactHorizontalBar.mjs +18 -18
  225. package/lib/esm/Donut.mjs +19 -20
  226. package/lib/esm/Dots.mjs +66 -15
  227. package/lib/esm/GroupBar.mjs +5 -2
  228. package/lib/esm/HorizontalBar.mjs +17 -17
  229. package/lib/esm/Hover.mjs +56 -53
  230. package/lib/esm/Line.mjs +86 -20
  231. package/lib/esm/Pattern.mjs +119 -0
  232. package/lib/esm/Plot.mjs +6 -3
  233. package/lib/esm/Radar.mjs +20 -20
  234. package/lib/esm/RadialTree.mjs +13 -13
  235. package/lib/esm/Reference.mjs +56 -19
  236. package/lib/esm/ScatterPlot.mjs +10 -10
  237. package/lib/esm/Tooltip.mjs +17 -15
  238. package/lib/esm/Venn.mjs +10 -10
  239. package/lib/esm/a11y/PlotA11yView.mjs +3 -3
  240. package/lib/esm/component/Chart/AbstractChart.mjs +28 -24
  241. package/lib/esm/component/Chart/AbstractChart.type.mjs +16 -0
  242. package/lib/esm/component/Chart/AreaChart.mjs +21 -7
  243. package/lib/esm/component/Chart/BarChart.mjs +17 -8
  244. package/lib/esm/component/Chart/BubbleChart.mjs +4 -0
  245. package/lib/esm/component/Chart/CigaretteChart.mjs +5 -1
  246. package/lib/esm/component/Chart/DonutChart.mjs +0 -1
  247. package/lib/esm/component/Chart/HistogramChart.mjs +6 -3
  248. package/lib/esm/component/Chart/LineChart.mjs +14 -4
  249. package/lib/esm/component/Chart/index.mjs +8 -0
  250. package/lib/esm/component/ChartLegend/BaseLegend.mjs +0 -4
  251. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +5 -5
  252. package/lib/esm/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
  253. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +20 -18
  254. package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
  255. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +29 -22
  256. package/lib/esm/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
  257. package/lib/esm/component/Cigarette/Cigarette.mjs +0 -1
  258. package/lib/esm/component/Metric/Metric.mjs +62 -0
  259. package/lib/esm/index.mjs +42 -34
  260. package/lib/esm/style/abstract-chart.shadow.css +13 -3
  261. package/lib/esm/style/area.shadow.css +8 -7
  262. package/lib/esm/style/axis.shadow.css +51 -60
  263. package/lib/esm/style/bar.shadow.css +7 -9
  264. package/lib/esm/style/bubble.shadow.css +4 -6
  265. package/lib/esm/style/donut.shadow.css +3 -5
  266. package/lib/esm/style/dot.shadow.css +37 -4
  267. package/lib/esm/style/hover.shadow.css +30 -13
  268. package/lib/esm/style/line.shadow.css +3 -5
  269. package/lib/esm/style/pattern.shadow.css +10 -0
  270. package/lib/esm/style/plotA11yView.shadow.css +3 -3
  271. package/lib/esm/style/radar.shadow.css +7 -7
  272. package/lib/esm/style/radial-tree.shadow.css +3 -5
  273. package/lib/esm/style/reference.shadow.css +5 -5
  274. package/lib/esm/style/scatterplot.shadow.css +2 -4
  275. package/lib/esm/style/tooltip.shadow.css +12 -14
  276. package/lib/esm/style/venn.shadow.css +0 -2
  277. package/lib/esm/utils.mjs +20 -0
  278. package/lib/types/Axis.d.ts +3 -2
  279. package/lib/types/ChartMetaData.d.ts +17 -0
  280. package/lib/types/ChartMetaData.d.ts.map +1 -0
  281. package/lib/types/Donut.d.ts +1 -1
  282. package/lib/types/Hover.d.ts +2 -0
  283. package/lib/types/Pattern.d.ts +18 -0
  284. package/lib/types/Pattern.d.ts.map +1 -1
  285. package/lib/types/component/Chart/AbstractChart.d.ts +8 -4
  286. package/lib/types/component/Chart/AbstractChart.d.ts.map +1 -1
  287. package/lib/types/component/Chart/AbstractChart.type.d.ts +28 -8
  288. package/lib/types/component/Chart/AbstractChart.type.d.ts.map +1 -1
  289. package/lib/types/component/Chart/AreaChart.d.ts.map +1 -1
  290. package/lib/types/component/Chart/AreaChart.type.d.ts +8 -4
  291. package/lib/types/component/Chart/AreaChart.type.d.ts.map +1 -1
  292. package/lib/types/component/Chart/BarChart.d.ts.map +1 -1
  293. package/lib/types/component/Chart/BarChart.type.d.ts +3 -0
  294. package/lib/types/component/Chart/BarChart.type.d.ts.map +1 -1
  295. package/lib/types/component/Chart/BubbleChart.d.ts.map +1 -1
  296. package/lib/types/component/Chart/BubbleChart.type.d.ts +1 -1
  297. package/lib/types/component/Chart/BubbleChart.type.d.ts.map +1 -1
  298. package/lib/types/component/Chart/CigaretteChart.d.ts.map +1 -1
  299. package/lib/types/component/Chart/CigaretteChart.type.d.ts +1 -1
  300. package/lib/types/component/Chart/CigaretteChart.type.d.ts.map +1 -1
  301. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -1
  302. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts.map +1 -1
  303. package/lib/types/component/Chart/DonutChart.d.ts.map +1 -1
  304. package/lib/types/component/Chart/DonutChart.type.d.ts +1 -2
  305. package/lib/types/component/Chart/DonutChart.type.d.ts.map +1 -1
  306. package/lib/types/component/Chart/HistogramChart.d.ts.map +1 -1
  307. package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -0
  308. package/lib/types/component/Chart/HistogramChart.type.d.ts.map +1 -1
  309. package/lib/types/component/Chart/LineChart.d.ts.map +1 -1
  310. package/lib/types/component/Chart/LineChart.type.d.ts +1 -0
  311. package/lib/types/component/Chart/LineChart.type.d.ts.map +1 -1
  312. package/lib/types/component/Chart/RadarChart.type.d.ts +1 -1
  313. package/lib/types/component/Chart/RadarChart.type.d.ts.map +1 -1
  314. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
  315. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts.map +1 -1
  316. package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
  317. package/lib/types/component/Chart/VennChart.type.d.ts.map +1 -1
  318. package/lib/types/component/Chart/index.d.ts +2 -0
  319. package/lib/types/component/Chart/index.d.ts.map +1 -1
  320. package/lib/types/component/ChartLegend/BaseLegend.d.ts.map +1 -1
  321. package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts.map +1 -1
  322. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -3
  323. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts.map +1 -1
  324. package/lib/types/component/Metric/Metric.d.ts +9 -0
  325. package/lib/types/component/Metric/Metric.d.ts.map +1 -0
  326. package/lib/types/component/Metric/Metric.type.d.ts +33 -0
  327. package/lib/types/component/Metric/Metric.type.d.ts.map +1 -0
  328. package/lib/types/index.d.ts +5 -7
  329. package/lib/types/utils.d.ts +4 -1
  330. package/lib/types/utils.d.ts.map +1 -1
  331. package/package.json +16 -15
  332. package/lib/cjs/color.js +0 -132
  333. package/lib/cjs/color.js.map +0 -1
  334. package/lib/cjs/style/var.css +0 -125
  335. package/lib/es6/color.js +0 -127
  336. package/lib/es6/color.js.map +0 -1
  337. package/lib/es6/style/var.css +0 -125
  338. package/lib/esm/color.mjs +0 -127
  339. package/lib/esm/utils/TextMeasurer.mjs +0 -27
package/lib/esm/Line.mjs CHANGED
@@ -5,28 +5,31 @@ import { bisector } from "d3-array";
5
5
  import { line, curveLinear, curveCardinal, area } from "d3-shape";
6
6
  import React from "react";
7
7
  import AnimatedClipPath from "./AnimatedClipPath.mjs";
8
+ import "./component/Chart/index.mjs";
9
+ import { SvgElement } from "./component/SvgElement.mjs";
8
10
  import createElement from "./createElement.mjs";
9
11
  import Dots from "./Dots.mjs";
10
- import { resolvePatternDasharray } from "./Pattern.mjs";
11
- import { interpolateValue, getNullData, definedNullData, eventToPoint, invert, getChartDefaultColorName, definedData, scaleOfBandwidth } from "./utils.mjs";
12
+ import { ForecastGradient, StrokeMask, PotentialGradient, resolvePatternDasharray } from "./Pattern.mjs";
13
+ import { interpolateValue, getNullData, definedNullData, eventToPoint, invert, getDataOfType, getChartDefaultColorName, definedData, scaleOfBandwidth } from "./utils.mjs";
14
+ import { FORECAST, POTENTIAL, DATA_TYPE } from "./component/Chart/AbstractChart.type.mjs";
12
15
  /*!__reshadow-styles__:"./style/line.shadow.css"*/
13
16
  const style = (
14
17
  /*__reshadow_css_start__*/
15
18
  (sstyled.insert(
16
19
  /*__inner_css_start__*/
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)}",
20
+ ".___SLine_foqqi_gg_{fill:#0000;stroke-width:2;stroke:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));transition-property:d;transition-duration:var(--duration_foqqi);transition-timing-function:ease-in-out}.___SLine_foqqi_gg_.__color_foqqi_gg_{stroke:var(--color_foqqi)}.___SLine_foqqi_gg_.__hide_foqqi_gg_{display:none}.___SLine_foqqi_gg_.__transparent_foqqi_gg_{opacity:.3}.___SNull_foqqi_gg_{fill:#0000;stroke:var(--intergalactic-chart-palette-order-null,oklch(.9 .009 234));stroke-dasharray:4}.___SNull_foqqi_gg_.__hide_foqqi_gg_{display:none}.___SLineArea_foqqi_gg_{transition-property:d;transition-duration:var(--duration_foqqi);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245))}.___SLineArea_foqqi_gg_.__color_foqqi_gg_{fill:var(--color_foqqi)}",
18
21
  /*__inner_css_end__*/
19
- "ty5xk_gg_"
22
+ "foqqi_gg_"
20
23
  ), /*__reshadow_css_end__*/
21
24
  {
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_"
25
+ "__SLine": "___SLine_foqqi_gg_",
26
+ "--duration": "--duration_foqqi",
27
+ "_color": "__color_foqqi_gg_",
28
+ "--color": "--color_foqqi",
29
+ "_hide": "__hide_foqqi_gg_",
30
+ "_transparent": "__transparent_foqqi_gg_",
31
+ "__SNull": "___SNull_foqqi_gg_",
32
+ "__SLineArea": "___SLineArea_foqqi_gg_"
30
33
  })
31
34
  );
32
35
  class LineRoot extends Component {
@@ -106,8 +109,71 @@ class LineRoot extends Component {
106
109
  const index = bisector((d) => d[x]).center(data, vX);
107
110
  onClick(index, e);
108
111
  }
109
- render() {
112
+ renderForecast() {
110
113
  var _ref;
114
+ const SLine = SvgElement;
115
+ const {
116
+ styles,
117
+ hide,
118
+ color,
119
+ resolveColor,
120
+ uid,
121
+ d3,
122
+ duration,
123
+ y,
124
+ transparent
125
+ } = this.asProps;
126
+ const data = getDataOfType(this.asProps.data, FORECAST, y);
127
+ return _ref = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SLine, _ref.cn("SLine", {
128
+ "aria-hidden": true,
129
+ "clipPath": `url(#${uid})`,
130
+ "tag": "path",
131
+ "hide": hide,
132
+ "color": resolveColor(color),
133
+ "transparent": transparent,
134
+ "d": d3(data),
135
+ "use:duration": `${duration}ms`,
136
+ "strokeDasharray": "4 4",
137
+ "onClickCapture": this.handlerOnClick.bind(this),
138
+ "pointerEvents": "stroke"
139
+ })), /* @__PURE__ */ React.createElement(ForecastGradient, _ref.cn("ForecastGradient", {
140
+ "id": `${uid}-forecast-gradient`
141
+ })), /* @__PURE__ */ React.createElement(StrokeMask, _ref.cn("StrokeMask", {
142
+ "id": `${uid}-forecast-mask`
143
+ })));
144
+ }
145
+ renderPotential() {
146
+ var _ref2;
147
+ const SLine = SvgElement;
148
+ const {
149
+ styles,
150
+ hide,
151
+ uid,
152
+ d3,
153
+ duration,
154
+ y,
155
+ transparent
156
+ } = this.asProps;
157
+ const data = getDataOfType(this.asProps.data, POTENTIAL, y);
158
+ return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SLine, _ref2.cn("SLine", {
159
+ "aria-hidden": true,
160
+ "clipPath": `url(#${uid})`,
161
+ "tag": "path",
162
+ "hide": hide,
163
+ "color": `url(#${uid}-potential-gradient-line)`,
164
+ "transparent": transparent,
165
+ "d": d3(data),
166
+ "use:duration": `${duration}ms`,
167
+ "onClickCapture": this.handlerOnClick.bind(this),
168
+ "pointerEvents": "stroke",
169
+ "strokeDasharray": "4 4"
170
+ })), /* @__PURE__ */ React.createElement(PotentialGradient, _ref2.cn("PotentialGradient", {
171
+ "id": `${uid}-potential-gradient-line`,
172
+ "type": "line"
173
+ })));
174
+ }
175
+ render() {
176
+ var _ref3;
111
177
  const SLine = this.Element;
112
178
  const {
113
179
  styles,
@@ -123,11 +189,11 @@ class LineRoot extends Component {
123
189
  transparent,
124
190
  patterns
125
191
  } = this.asProps;
126
- const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);
192
+ const data = this.asProps.data.filter((item) => item[y] !== interpolateValue && item[DATA_TYPE] !== FORECAST && item[DATA_TYPE] !== POTENTIAL);
127
193
  this.asProps.dataHintsHandler.specifyDataRowFields(x, y);
128
194
  this.asProps.dataHintsHandler.establishDataType("time-series");
129
195
  const patternKey = color || getChartDefaultColorName(0);
130
- return _ref = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SLine, _ref.cn("SLine", {
196
+ return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, this.renderForecast(), this.renderPotential(), /* @__PURE__ */ React.createElement(SLine, _ref3.cn("SLine", {
131
197
  "aria-hidden": true,
132
198
  "clipPath": `url(#${uid})`,
133
199
  "render": "path",
@@ -139,7 +205,7 @@ class LineRoot extends Component {
139
205
  "strokeDasharray": patterns ? resolvePatternDasharray(patternKey, patterns) : void 0,
140
206
  "onClickCapture": this.handlerOnClick.bind(this),
141
207
  "pointerEvents": "stroke"
142
- })), duration && /* @__PURE__ */ React.createElement(AnimatedClipPath, _ref.cn("AnimatedClipPath", {
208
+ })), duration && /* @__PURE__ */ React.createElement(AnimatedClipPath, _ref3.cn("AnimatedClipPath", {
143
209
  "aria-hidden": true,
144
210
  "duration": duration,
145
211
  "id": uid,
@@ -167,7 +233,7 @@ _defineProperty(LineRoot, "defaultProps", ({
167
233
  };
168
234
  });
169
235
  function Null(props) {
170
- var _ref2;
236
+ var _ref4;
171
237
  const {
172
238
  Element: SNull,
173
239
  styles,
@@ -175,7 +241,7 @@ function Null(props) {
175
241
  data,
176
242
  hide
177
243
  } = props;
178
- return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(SNull, _ref2.cn("SNull", {
244
+ return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SNull, _ref4.cn("SNull", {
179
245
  "render": "path",
180
246
  "d": d3(data),
181
247
  "hide": hide
@@ -217,9 +283,9 @@ function Area(props) {
217
283
  return chunked;
218
284
  }, [data, y0, y1, area$1, autoInterpolate]);
219
285
  return /* @__PURE__ */ React.createElement(React.Fragment, null, dataToArea.map((chunk, index) => {
220
- var _ref3;
286
+ var _ref5;
221
287
  const d3 = area().curve(curve).x((data2) => xScale(data2[x])).y0((data2) => yScale(data2[y0])).y1((data2) => yScale(data2[y1]));
222
- return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SLineArea, _ref3.cn("SLineArea", {
288
+ return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(SLineArea, _ref5.cn("SLineArea", {
223
289
  "key": `${chunk.length}-${index}`,
224
290
  "aria-hidden": true,
225
291
  "clipPath": `url(#${uid})`,
@@ -1,6 +1,24 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ import { sstyled } from "@semcore/core";
2
3
  import propsForElement from "@semcore/core/lib/utils/propsForElement";
3
4
  import React from "react";
5
+ /*!__reshadow-styles__:"./style/pattern.shadow.css"*/
6
+ const style = (
7
+ /*__reshadow_css_start__*/
8
+ (sstyled.insert(
9
+ /*__inner_css_start__*/
10
+ ".___SLinearGradient_1yi6g_gg_ .___SStopFrom_1yi6g_gg_{stop-color:var(--violet-300_1yi6g,#c08eff)}@media (color-gamut:p3){.___SLinearGradient_1yi6g_gg_ .___SStopFrom_1yi6g_gg_{stop-color:var(--violet-300_1yi6g,oklch(.74 .17 303))}}.___SLinearGradient_1yi6g_gg_ .___SStopTo_1yi6g_gg_{stop-color:var(--green-100_1yi6g,oklch(.9 .11 175))}",
11
+ /*__inner_css_end__*/
12
+ "1yi6g_gg_"
13
+ ), /*__reshadow_css_end__*/
14
+ {
15
+ "__SLinearGradient": "___SLinearGradient_1yi6g_gg_",
16
+ "__SStopFrom": "___SStopFrom_1yi6g_gg_",
17
+ "--violet-300": "--violet-300_1yi6g",
18
+ "__SStopTo": "___SStopTo_1yi6g_gg_",
19
+ "--green-100": "--green-100_1yi6g"
20
+ })
21
+ );
4
22
  const defaultDasharrays = ["4 4", "8 8", "2 4", "4 8", "8 2", "8 4", "12 4", "2 2"];
5
23
  const defaultPatterns = {
6
24
  starSmall: {
@@ -456,6 +474,102 @@ const resolvePattern = (patternKey, patternsConfig = true) => {
456
474
  patternIndex = patternIndex % patterns.length;
457
475
  return patterns[patternIndex];
458
476
  };
477
+ const DefaultStrokePattern = (props) => {
478
+ return /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("pattern", {
479
+ id: props.id,
480
+ width: "10",
481
+ height: "8",
482
+ patternUnits: "userSpaceOnUse",
483
+ patternTransform: "rotate(-117)"
484
+ }, /* @__PURE__ */ React.createElement("rect", {
485
+ width: "10",
486
+ height: "8",
487
+ fill: "transparent"
488
+ }), /* @__PURE__ */ React.createElement("line", {
489
+ x1: "0",
490
+ y1: "0",
491
+ x2: "0",
492
+ y2: "8",
493
+ stroke: "#fff",
494
+ strokeWidth: "8"
495
+ })));
496
+ };
497
+ const LightStrokePattern = (props) => {
498
+ return /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("pattern", {
499
+ id: props.id,
500
+ width: "4",
501
+ height: "4",
502
+ patternUnits: "userSpaceOnUse",
503
+ patternTransform: "rotate(40)"
504
+ }, /* @__PURE__ */ React.createElement("line", {
505
+ x1: "3",
506
+ y1: "0",
507
+ x2: "3",
508
+ y2: "4",
509
+ stroke: "white",
510
+ strokeWidth: "2"
511
+ })));
512
+ };
513
+ const StrokeMask = (props) => {
514
+ return /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement(LightStrokePattern, {
515
+ id: `${props.id}-stroke`
516
+ }), /* @__PURE__ */ React.createElement("mask", {
517
+ id: props.id
518
+ }, /* @__PURE__ */ React.createElement("rect", {
519
+ width: "100%",
520
+ height: "100%",
521
+ fill: props.color
522
+ }), /* @__PURE__ */ React.createElement("rect", {
523
+ width: "100%",
524
+ height: "100%",
525
+ fill: `url(#${props.id}-stroke)`
526
+ })));
527
+ };
528
+ const ForecastGradient = (props) => {
529
+ return /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("linearGradient", {
530
+ id: props.id,
531
+ x1: "0%",
532
+ y1: "0%",
533
+ x2: "0%",
534
+ y2: "100%"
535
+ }, /* @__PURE__ */ React.createElement("stop", {
536
+ offset: "0%",
537
+ stopColor: props.color,
538
+ stopOpacity: "0.4"
539
+ }), /* @__PURE__ */ React.createElement("stop", {
540
+ offset: "100%",
541
+ stopColor: "#fff",
542
+ stopOpacity: "0.1"
543
+ })));
544
+ };
545
+ const PotentialGradient = (props) => {
546
+ var _ref;
547
+ const SLinearGradient = "linearGradient";
548
+ const SStopFrom = "stop";
549
+ const SStopTo = "stop";
550
+ const isLine = props.type === "line";
551
+ const isArea = props.type === "area";
552
+ let gradientTransform = "rotate(-90 0.5 0.5)";
553
+ if (isLine) {
554
+ gradientTransform = "";
555
+ } else if (isArea) {
556
+ gradientTransform = "rotate(-30 0.5 0.5)";
557
+ }
558
+ return _ref = sstyled(style), /* @__PURE__ */ React.createElement("defs", _ref.cn("defs", {}), /* @__PURE__ */ React.createElement(SLinearGradient, _ref.cn("SLinearGradient", {
559
+ "id": props.id,
560
+ "x1": "0%",
561
+ "y1": "0%",
562
+ "x2": isLine ? "100%" : "0",
563
+ "y2": isLine ? "0" : "100%",
564
+ "gradientTransform": gradientTransform
565
+ }), /* @__PURE__ */ React.createElement(SStopFrom, _ref.cn("SStopFrom", {
566
+ "offset": "0%",
567
+ "stopOpacity": 1
568
+ })), /* @__PURE__ */ React.createElement(SStopTo, _ref.cn("SStopTo", {
569
+ "offset": "100%",
570
+ "stopOpacity": isArea ? 0 : 1
571
+ }))));
572
+ };
459
573
  const PatternFill = ({
460
574
  id,
461
575
  color,
@@ -518,8 +632,13 @@ const resolvePatternDasharray = (patternKey, patterns) => {
518
632
  return pattern?.dasharray;
519
633
  };
520
634
  export {
635
+ DefaultStrokePattern,
636
+ ForecastGradient,
637
+ LightStrokePattern,
521
638
  PatternFill,
522
639
  PatternSymbol,
640
+ PotentialGradient,
641
+ StrokeMask,
523
642
  getPatternSymbolSize,
524
643
  resolvePatternDasharray
525
644
  };
package/lib/esm/Plot.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { sstyled, Component, assignProps, createComponent } from "@semcore/core";
2
+ import { createComponent, sstyled, Component, assignProps } from "@semcore/core";
3
3
  import { Box } from "@semcore/base-components";
4
4
  import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
5
5
  import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
@@ -7,6 +7,7 @@ import EventEmitter from "@semcore/core/lib/utils/eventEmitter";
7
7
  import React from "react";
8
8
  import { makeDataHintsContainer, makeDataHintsHandlers } from "./a11y/hints.mjs";
9
9
  import { PlotA11yModule } from "./a11y/PlotA11yModule.mjs";
10
+ import { ChartMetaData } from "./ChartMetaData.mjs";
10
11
  import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
11
12
  import { uniqueId, eventToPoint } from "./utils.mjs";
12
13
  /*!__reshadow-styles__:"./style/plot.shadow.css"*/
@@ -14,7 +15,7 @@ const style = (
14
15
  /*__reshadow_css_start__*/
15
16
  (sstyled.insert(
16
17
  /*__inner_css_start__*/
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
+ ".___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,oklch(.23 .009 245));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)}",
18
19
  /*__inner_css_end__*/
19
20
  "1f5de_gg_"
20
21
  ), /*__reshadow_css_end__*/
@@ -52,6 +53,7 @@ class PlotRoot extends Component {
52
53
  this.eventEmitter.emit("onMouseLeaveChart", e);
53
54
  });
54
55
  this.eventEmitter = props.eventEmitter || new EventEmitter();
56
+ this.meta = new ChartMetaData();
55
57
  }
56
58
  setContext() {
57
59
  const {
@@ -81,7 +83,8 @@ class PlotRoot extends Component {
81
83
  resolveColor,
82
84
  patterns,
83
85
  duration,
84
- plotId: this.plotId
86
+ plotId: this.plotId,
87
+ meta: this.meta
85
88
  }
86
89
  };
87
90
  }
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_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))}",
19
+ ".___SAxisLine_1i4jk_gg_,.___SAxisTick_1i4jk_gg_,.___SAxis_1i4jk_gg_{stroke:var(--intergalactic-chart-grid-line,oklch(.7 .021 242));stroke-width:1;fill:#0000}.___SAxisLine_1i4jk_gg_,.___SAxisTick_1i4jk_gg_{stroke-dasharray:2}.___SAxisLine_1i4jk_gg_.__active_1i4jk_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line,oklch(.88 .011 234.9))}.___SAxisLabel_1i4jk_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_1i4jk_gg_.__xDirection_1i4jk_gg_{text-anchor:var(--xDirection_1i4jk)}.___SAxisLabel_1i4jk_gg_.__yDirection_1i4jk_gg_{dominant-baseline:var(--yDirection_1i4jk)}.___SPolygon_1i4jk_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));opacity:.2}.___SPolygon_1i4jk_gg_.__color_1i4jk_gg_{fill:var(--color_1i4jk)}.___SPolygon_1i4jk_gg_.__pattern_1i4jk_gg_.__color_1i4jk_gg_{fill:var(--pattern_1i4jk);stroke:var(--color_1i4jk);stroke-width:1px}.___SPolygonDot_1i4jk_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border,#fff);r:6px;fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245))}.___SPolygonDot_1i4jk_gg_.__transparent_1i4jk_gg_{opacity:.3}.___SPolygonDot_1i4jk_gg_.__color_1i4jk_gg_{fill:var(--color_1i4jk)}.___SPolygonLine_1i4jk_gg_{stroke:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));stroke-width:3;fill:#0000}.___SPolygonLine_1i4jk_gg_.__transparent_1i4jk_gg_{opacity:.3}.___SPolygonLine_1i4jk_gg_.__color_1i4jk_gg_{stroke:var(--color_1i4jk)}.___SPieRect_1i4jk_gg_{outline:none;fill:var(--intergalactic-chart-grid-bar-hover,oklch(.375 .09 242.7/.05))}",
20
20
  /*__inner_css_end__*/
21
- "1hpm6_gg_"
21
+ "1i4jk_gg_"
22
22
  ), /*__reshadow_css_end__*/
23
23
  {
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_"
24
+ "__SAxis": "___SAxis_1i4jk_gg_",
25
+ "__SAxisLine": "___SAxisLine_1i4jk_gg_",
26
+ "__SAxisTick": "___SAxisTick_1i4jk_gg_",
27
+ "_active": "__active_1i4jk_gg_",
28
+ "__SAxisLabel": "___SAxisLabel_1i4jk_gg_",
29
+ "_xDirection": "__xDirection_1i4jk_gg_",
30
+ "--xDirection": "--xDirection_1i4jk",
31
+ "_yDirection": "__yDirection_1i4jk_gg_",
32
+ "--yDirection": "--yDirection_1i4jk",
33
+ "__SPolygon": "___SPolygon_1i4jk_gg_",
34
+ "_color": "__color_1i4jk_gg_",
35
+ "--color": "--color_1i4jk",
36
+ "_pattern": "__pattern_1i4jk_gg_",
37
+ "--pattern": "--pattern_1i4jk",
38
+ "__SPolygonDot": "___SPolygonDot_1i4jk_gg_",
39
+ "_transparent": "__transparent_1i4jk_gg_",
40
+ "__SPolygonLine": "___SPolygonLine_1i4jk_gg_",
41
+ "__SPieRect": "___SPieRect_1i4jk_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_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}}",
17
+ ".___SRadian_1u9s6_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info,oklch(.23 .009 245))}.___SLine_1u9s6_gg_{stroke:var(--intergalactic-text-large-info,oklch(.23 .009 245))}.___SLine_1u9s6_gg_.__stroke_1u9s6_gg_{stroke:var(--stroke_1u9s6)}.___SLine_1u9s6_gg_.__transparent_1u9s6_gg_{opacity:.3}.___SCap_1u9s6_gg_{transition:r .1s}.___SCap_1u9s6_gg_.__pattern_1u9s6_gg_{stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:1px}.___SCap_1u9s6_gg_.__transparent_1u9s6_gg_,.___SIcon_1u9s6_gg_.__transparent_1u9s6_gg_{opacity:.3}.___SLabel_1u9s6_gg_{fill:var(--color_1u9s6)}.___SLabel_1u9s6_gg_.__transparent_1u9s6_gg_{opacity:.3}@media (hover:hover){.___SRadian_1u9s6_gg_:hover .___SLabel_1u9s6_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1u9s6_gg_{transition:none}}",
18
18
  /*__inner_css_end__*/
19
- "ojwuj_gg_"
19
+ "1u9s6_gg_"
20
20
  ), /*__reshadow_css_end__*/
21
21
  {
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_"
22
+ "__SRadian": "___SRadian_1u9s6_gg_",
23
+ "__SLine": "___SLine_1u9s6_gg_",
24
+ "_stroke": "__stroke_1u9s6_gg_",
25
+ "--stroke": "--stroke_1u9s6",
26
+ "_transparent": "__transparent_1u9s6_gg_",
27
+ "__SCap": "___SCap_1u9s6_gg_",
28
+ "_pattern": "__pattern_1u9s6_gg_",
29
+ "__SIcon": "___SIcon_1u9s6_gg_",
30
+ "__SLabel": "___SLabel_1u9s6_gg_",
31
+ "--color": "--color_1u9s6",
32
+ "__SLineCap": "___SLineCap_1u9s6_gg_"
33
33
  })
34
34
  );
35
35
  const baseAngle = -Math.PI / 2;
@@ -9,24 +9,27 @@ const style = (
9
9
  /*__reshadow_css_start__*/
10
10
  (sstyled.insert(
11
11
  /*__inner_css_start__*/
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}",
12
+ ".___SReferenceLine_103dp_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line,oklch(.88 .011 234.9))}.___STitle_103dp_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label,#00132466);transform-origin:var(--transform-origin_103dp)}.___STitle_103dp_gg_._position_top_103dp_gg_{text-anchor:middle}.___STitle_103dp_gg_._position_bottom_103dp_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_103dp_gg_._position_left_103dp_gg_,.___STitle_103dp_gg_._position_right_103dp_gg_{transform:rotate(-90deg);dominant-baseline:middle;text-anchor:middle}.___SBackground_103dp_gg_{fill:var(--intergalactic-chart-grid-period-bg,oklch(.96 .005 232.5))}.___SStripes_103dp_gg_{fill:var(--fill_103dp)}.___SStripesPatternPath_103dp_gg_{stroke:var(--intergalactic-chart-grid-period-pattern,oklch(.95 .006 232.7));stroke-width:1px}",
13
13
  /*__inner_css_end__*/
14
- "1ycra_gg_"
14
+ "103dp_gg_"
15
15
  ), /*__reshadow_css_end__*/
16
16
  {
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_"
17
+ "__SReferenceLine": "___SReferenceLine_103dp_gg_",
18
+ "__STitle": "___STitle_103dp_gg_",
19
+ "--transform-origin": "--transform-origin_103dp",
20
+ "_position_top": "_position_top_103dp_gg_",
21
+ "_position_bottom": "_position_bottom_103dp_gg_",
22
+ "_position_right": "_position_right_103dp_gg_",
23
+ "_position_left": "_position_left_103dp_gg_",
24
+ "__SBackground": "___SBackground_103dp_gg_",
25
+ "__SStripes": "___SStripes_103dp_gg_",
26
+ "--fill": "--fill_103dp",
27
+ "__SStripesPatternPath": "___SStripesPatternPath_103dp_gg_"
28
28
  })
29
29
  );
30
+ const STROKE_WIDTH = 1;
31
+ const NOTCH_WIDTH = 9;
32
+ const NOTCH_DELTA = NOTCH_WIDTH / 2 - STROKE_WIDTH / 4;
30
33
  const side2direction = {
31
34
  left: "vertical",
32
35
  right: "vertical",
@@ -41,7 +44,19 @@ const lineDirection2props = {
41
44
  x1: x,
42
45
  x2: x,
43
46
  y1: yRange[0],
44
- y2: yRange[1]
47
+ y2: yRange[1],
48
+ notchFirst: {
49
+ x1: x - NOTCH_DELTA,
50
+ x2: x + NOTCH_DELTA,
51
+ y1: yRange[0],
52
+ y2: yRange[0]
53
+ },
54
+ notchLast: {
55
+ x1: x - NOTCH_DELTA,
56
+ x2: x + NOTCH_DELTA,
57
+ y1: yRange[1],
58
+ y2: yRange[1]
59
+ }
45
60
  };
46
61
  },
47
62
  horizontal: ([xScale, yScale], value) => {
@@ -51,7 +66,19 @@ const lineDirection2props = {
51
66
  x1: xRange[0],
52
67
  x2: xRange[1],
53
68
  y1: y,
54
- y2: y
69
+ y2: y,
70
+ notchFirst: {
71
+ x1: xRange[0],
72
+ x2: xRange[0],
73
+ y1: y - NOTCH_DELTA,
74
+ y2: y + NOTCH_DELTA
75
+ },
76
+ notchLast: {
77
+ x1: xRange[1],
78
+ x2: xRange[1],
79
+ y1: y - NOTCH_DELTA,
80
+ y2: y + NOTCH_DELTA
81
+ }
55
82
  };
56
83
  }
57
84
  };
@@ -148,12 +175,22 @@ class ReferenceLineRoot extends Component {
148
175
  styles
149
176
  } = this.asProps;
150
177
  const positionProps = lineDirection2props[side2direction[position]];
178
+ const {
179
+ notchFirst,
180
+ notchLast,
181
+ ...line
182
+ } = positionProps(scale, value);
151
183
  return _ref = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SReferenceLine, _ref.cn("SReferenceLine", {
152
- "render": "line",
184
+ "render": "g",
153
185
  "__excludeProps": ["data", "scale", "format", "value", "color"],
154
- "stroke": resolveColor(color),
155
- ...positionProps(scale, value)
156
- })), title && /* @__PURE__ */ React.createElement(ReferenceLine.Title, null, title));
186
+ "stroke": resolveColor(color)
187
+ }), /* @__PURE__ */ React.createElement("line", _ref.cn("line", {
188
+ ...notchFirst
189
+ })), /* @__PURE__ */ React.createElement("line", _ref.cn("line", {
190
+ ...line
191
+ })), /* @__PURE__ */ React.createElement("line", _ref.cn("line", {
192
+ ...notchLast
193
+ }))), title && /* @__PURE__ */ React.createElement(ReferenceLine.Title, null, title));
157
194
  }
158
195
  }
159
196
  _defineProperty(ReferenceLineRoot, "displayName", "ReferenceLine");
@@ -13,19 +13,19 @@ const style = (
13
13
  /*__reshadow_css_start__*/
14
14
  (sstyled.insert(
15
15
  /*__inner_css_start__*/
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}",
16
+ ".___SScatterPlot_v4rqi_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));transition-property:cx,cy;transition-duration:var(--duration_v4rqi);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_v4rqi_gg_:hover{opacity:.8}}.___SScatterPlot_v4rqi_gg_.__color_v4rqi_gg_{fill:var(--color_v4rqi)}.___SScatterPlot_v4rqi_gg_.__pattern_v4rqi_gg_.__color_v4rqi_gg_{fill:var(--pattern_v4rqi);stroke:var(--color_v4rqi);stroke-width:1px}.___SScatterPlot_v4rqi_gg_.__transparent_v4rqi_gg_{opacity:.3}.___SValue_v4rqi_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50,10px);stroke:var(--intergalactic-chart-palette-order-9,oklch(.53 .157 279.2))}.___SValue_v4rqi_gg_.__color_v4rqi_gg_{stroke:var(--color_v4rqi)}.___SValue_v4rqi_gg_.__transparent_v4rqi_gg_{opacity:.3}",
17
17
  /*__inner_css_end__*/
18
- "1kxs7_gg_"
18
+ "v4rqi_gg_"
19
19
  ), /*__reshadow_css_end__*/
20
20
  {
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"
21
+ "__SScatterPlot": "___SScatterPlot_v4rqi_gg_",
22
+ "_color": "__color_v4rqi_gg_",
23
+ "--color": "--color_v4rqi",
24
+ "_pattern": "__pattern_v4rqi_gg_",
25
+ "--pattern": "--pattern_v4rqi",
26
+ "_transparent": "__transparent_v4rqi_gg_",
27
+ "__SValue": "___SValue_v4rqi_gg_",
28
+ "--duration": "--duration_v4rqi"
29
29
  })
30
30
  );
31
31
  class ScatterPlotRoot extends Component {