@semcore/d3-chart 16.5.0 → 17.0.0-prerelease.9

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 (439) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/lib/cjs/AnimatedClipPath.js +28 -41
  3. package/lib/cjs/AnimatedClipPath.js.map +1 -1
  4. package/lib/cjs/Area.js +187 -223
  5. package/lib/cjs/Area.js.map +1 -1
  6. package/lib/cjs/Axis.js +248 -327
  7. package/lib/cjs/Axis.js.map +1 -1
  8. package/lib/cjs/Bar.js +162 -185
  9. package/lib/cjs/Bar.js.map +1 -1
  10. package/lib/cjs/Bubble.js +219 -248
  11. package/lib/cjs/Bubble.js.map +1 -1
  12. package/lib/cjs/CompactHorizontalBar.js +448 -482
  13. package/lib/cjs/CompactHorizontalBar.js.map +1 -1
  14. package/lib/cjs/Donut.js +349 -396
  15. package/lib/cjs/Donut.js.map +1 -1
  16. package/lib/cjs/Dots.js +67 -86
  17. package/lib/cjs/Dots.js.map +1 -1
  18. package/lib/cjs/GroupBar.js +78 -93
  19. package/lib/cjs/GroupBar.js.map +1 -1
  20. package/lib/cjs/HorizontalBar.js +149 -167
  21. package/lib/cjs/HorizontalBar.js.map +1 -1
  22. package/lib/cjs/Hover.js +178 -207
  23. package/lib/cjs/Hover.js.map +1 -1
  24. package/lib/cjs/Line.js +182 -222
  25. package/lib/cjs/Line.js.map +1 -1
  26. package/lib/cjs/Pattern.js +124 -126
  27. package/lib/cjs/Pattern.js.map +1 -1
  28. package/lib/cjs/Plot.js +100 -126
  29. package/lib/cjs/Plot.js.map +1 -1
  30. package/lib/cjs/Radar.js +576 -681
  31. package/lib/cjs/Radar.js.map +1 -1
  32. package/lib/cjs/RadialTree.js +518 -571
  33. package/lib/cjs/RadialTree.js.map +1 -1
  34. package/lib/cjs/Reference.js +147 -178
  35. package/lib/cjs/Reference.js.map +1 -1
  36. package/lib/cjs/ResponsiveContainer.js +64 -82
  37. package/lib/cjs/ResponsiveContainer.js.map +1 -1
  38. package/lib/cjs/ScatterPlot.js +169 -199
  39. package/lib/cjs/ScatterPlot.js.map +1 -1
  40. package/lib/cjs/StackBar.js +135 -177
  41. package/lib/cjs/StackBar.js.map +1 -1
  42. package/lib/cjs/StackedArea.js +60 -73
  43. package/lib/cjs/StackedArea.js.map +1 -1
  44. package/lib/cjs/Tooltip.js +193 -208
  45. package/lib/cjs/Tooltip.js.map +1 -1
  46. package/lib/cjs/Venn.js +182 -217
  47. package/lib/cjs/Venn.js.map +1 -1
  48. package/lib/cjs/a11y/DataAccessibilityTable.js +45 -83
  49. package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
  50. package/lib/cjs/a11y/PlotA11yModule.js +37 -97
  51. package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
  52. package/lib/cjs/a11y/PlotA11yView.js +97 -91
  53. package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
  54. package/lib/cjs/a11y/bezier.js +17 -23
  55. package/lib/cjs/a11y/bezier.js.map +1 -1
  56. package/lib/cjs/a11y/focus.js +16 -16
  57. package/lib/cjs/a11y/focus.js.map +1 -1
  58. package/lib/cjs/a11y/hints.js +72 -75
  59. package/lib/cjs/a11y/hints.js.map +1 -1
  60. package/lib/cjs/a11y/insights.js +354 -525
  61. package/lib/cjs/a11y/insights.js.map +1 -1
  62. package/lib/cjs/a11y/intl.js +5 -5
  63. package/lib/cjs/a11y/intl.js.map +1 -1
  64. package/lib/cjs/a11y/locale.js +12 -19
  65. package/lib/cjs/a11y/locale.js.map +1 -1
  66. package/lib/cjs/a11y/serialize.js +164 -203
  67. package/lib/cjs/a11y/serialize.js.map +1 -1
  68. package/lib/cjs/a11y/summarize.js +7 -6
  69. package/lib/cjs/a11y/summarize.js.map +1 -1
  70. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +16 -16
  71. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  72. package/lib/cjs/a11y/translations/module/de.json +2 -2
  73. package/lib/cjs/a11y/translations/module/en.json +2 -2
  74. package/lib/cjs/a11y/translations/module/es.json +2 -2
  75. package/lib/cjs/a11y/translations/module/fr.json +2 -2
  76. package/lib/cjs/a11y/translations/module/it.json +2 -2
  77. package/lib/cjs/a11y/translations/module/ja.json +2 -2
  78. package/lib/cjs/a11y/translations/module/ko.json +2 -2
  79. package/lib/cjs/a11y/translations/module/nl.json +2 -2
  80. package/lib/cjs/a11y/translations/module/pl.json +2 -2
  81. package/lib/cjs/a11y/translations/module/pt.json +2 -2
  82. package/lib/cjs/a11y/translations/module/sv.json +2 -2
  83. package/lib/cjs/a11y/translations/module/tr.json +2 -2
  84. package/lib/cjs/a11y/translations/module/vi.json +2 -2
  85. package/lib/cjs/a11y/translations/module/zh.json +2 -2
  86. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +16 -16
  87. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  88. package/lib/cjs/color.js +1 -1
  89. package/lib/cjs/color.js.map +1 -1
  90. package/lib/cjs/component/Chart/AbstractChart.js +421 -466
  91. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  92. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  93. package/lib/cjs/component/Chart/AreaChart.js +97 -115
  94. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  95. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  96. package/lib/cjs/component/Chart/BarChart.js +229 -216
  97. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  98. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  99. package/lib/cjs/component/Chart/BubbleChart.js +114 -136
  100. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  101. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  102. package/lib/cjs/component/Chart/CigaretteChart.js +280 -305
  103. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  104. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +76 -108
  105. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  106. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  107. package/lib/cjs/component/Chart/DonutChart.js +80 -95
  108. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  109. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  110. package/lib/cjs/component/Chart/HistogramChart.js +126 -148
  111. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  112. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  113. package/lib/cjs/component/Chart/LineChart.js +95 -113
  114. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  115. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  116. package/lib/cjs/component/Chart/RadarChart.js +84 -110
  117. package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
  118. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  119. package/lib/cjs/component/Chart/ScatterPlotChart.js +119 -143
  120. package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
  121. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  122. package/lib/cjs/component/Chart/VennChart.js +103 -122
  123. package/lib/cjs/component/Chart/VennChart.js.map +1 -1
  124. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  125. package/lib/cjs/component/Chart/index.js +2 -2
  126. package/lib/cjs/component/Chart/index.js.map +1 -1
  127. package/lib/cjs/component/ChartLegend/BaseLegend.js +72 -105
  128. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  129. package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
  130. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +58 -70
  131. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  132. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  133. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +208 -221
  134. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  135. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
  136. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  137. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +63 -73
  138. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  139. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  140. package/lib/cjs/component/ChartLegend/index.js +4 -4
  141. package/lib/cjs/component/ChartLegend/index.js.map +1 -1
  142. package/lib/cjs/component/Cigarette/Cigarette.js +115 -129
  143. package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
  144. package/lib/cjs/component/StackGroupBar/StackGroupBar.js +107 -137
  145. package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
  146. package/lib/cjs/component/SvgElement.js +7 -7
  147. package/lib/cjs/component/SvgElement.js.map +1 -1
  148. package/lib/cjs/createElement.js +66 -65
  149. package/lib/cjs/createElement.js.map +1 -1
  150. package/lib/cjs/index.js +62 -62
  151. package/lib/cjs/style/axis.shadow.css +3 -0
  152. package/lib/cjs/style/plot.shadow.css +1 -3
  153. package/lib/cjs/style/plotA11yModule.shadow.css +10 -11
  154. package/lib/cjs/style/plotA11yView.shadow.css +13 -26
  155. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +15 -15
  156. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  157. package/lib/cjs/types/Axis.d.js.map +1 -1
  158. package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
  159. package/lib/cjs/types/Hover.d.js.map +1 -1
  160. package/lib/cjs/types/Line.d.js.map +1 -1
  161. package/lib/cjs/types/Plot.d.js.map +1 -1
  162. package/lib/cjs/types/Radar.d.js.map +1 -1
  163. package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
  164. package/lib/cjs/types/Tooltip.d.js.map +1 -1
  165. package/lib/cjs/types/Venn.d.js.map +1 -1
  166. package/lib/cjs/types/index.d.js +80 -80
  167. package/lib/cjs/types/index.d.js.map +1 -1
  168. package/lib/cjs/utils.js +122 -145
  169. package/lib/cjs/utils.js.map +1 -1
  170. package/lib/es6/AnimatedClipPath.js +24 -37
  171. package/lib/es6/AnimatedClipPath.js.map +1 -1
  172. package/lib/es6/Area.js +179 -215
  173. package/lib/es6/Area.js.map +1 -1
  174. package/lib/es6/Axis.js +242 -321
  175. package/lib/es6/Axis.js.map +1 -1
  176. package/lib/es6/Bar.js +154 -177
  177. package/lib/es6/Bar.js.map +1 -1
  178. package/lib/es6/Bubble.js +206 -235
  179. package/lib/es6/Bubble.js.map +1 -1
  180. package/lib/es6/CompactHorizontalBar.js +433 -467
  181. package/lib/es6/CompactHorizontalBar.js.map +1 -1
  182. package/lib/es6/Donut.js +337 -384
  183. package/lib/es6/Donut.js.map +1 -1
  184. package/lib/es6/Dots.js +60 -79
  185. package/lib/es6/Dots.js.map +1 -1
  186. package/lib/es6/GroupBar.js +74 -89
  187. package/lib/es6/GroupBar.js.map +1 -1
  188. package/lib/es6/HorizontalBar.js +141 -159
  189. package/lib/es6/HorizontalBar.js.map +1 -1
  190. package/lib/es6/Hover.js +174 -203
  191. package/lib/es6/Hover.js.map +1 -1
  192. package/lib/es6/Line.js +173 -213
  193. package/lib/es6/Line.js.map +1 -1
  194. package/lib/es6/Pattern.js +68 -74
  195. package/lib/es6/Pattern.js.map +1 -1
  196. package/lib/es6/Plot.js +95 -121
  197. package/lib/es6/Plot.js.map +1 -1
  198. package/lib/es6/Radar.js +554 -659
  199. package/lib/es6/Radar.js.map +1 -1
  200. package/lib/es6/RadialTree.js +500 -553
  201. package/lib/es6/RadialTree.js.map +1 -1
  202. package/lib/es6/Reference.js +140 -171
  203. package/lib/es6/Reference.js.map +1 -1
  204. package/lib/es6/ResponsiveContainer.js +58 -76
  205. package/lib/es6/ResponsiveContainer.js.map +1 -1
  206. package/lib/es6/ScatterPlot.js +161 -191
  207. package/lib/es6/ScatterPlot.js.map +1 -1
  208. package/lib/es6/StackBar.js +130 -172
  209. package/lib/es6/StackBar.js.map +1 -1
  210. package/lib/es6/StackedArea.js +56 -69
  211. package/lib/es6/StackedArea.js.map +1 -1
  212. package/lib/es6/Tooltip.js +183 -198
  213. package/lib/es6/Tooltip.js.map +1 -1
  214. package/lib/es6/Venn.js +169 -204
  215. package/lib/es6/Venn.js.map +1 -1
  216. package/lib/es6/a11y/DataAccessibilityTable.js +41 -80
  217. package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
  218. package/lib/es6/a11y/PlotA11yModule.js +35 -95
  219. package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
  220. package/lib/es6/a11y/PlotA11yView.js +89 -84
  221. package/lib/es6/a11y/PlotA11yView.js.map +1 -1
  222. package/lib/es6/a11y/bezier.js +16 -23
  223. package/lib/es6/a11y/bezier.js.map +1 -1
  224. package/lib/es6/a11y/focus.js +15 -16
  225. package/lib/es6/a11y/focus.js.map +1 -1
  226. package/lib/es6/a11y/hints.js +67 -73
  227. package/lib/es6/a11y/hints.js.map +1 -1
  228. package/lib/es6/a11y/insights.js +353 -524
  229. package/lib/es6/a11y/insights.js.map +1 -1
  230. package/lib/es6/a11y/intl.js +4 -5
  231. package/lib/es6/a11y/intl.js.map +1 -1
  232. package/lib/es6/a11y/locale.js +11 -18
  233. package/lib/es6/a11y/locale.js.map +1 -1
  234. package/lib/es6/a11y/serialize.js +162 -203
  235. package/lib/es6/a11y/serialize.js.map +1 -1
  236. package/lib/es6/a11y/summarize.js +6 -6
  237. package/lib/es6/a11y/summarize.js.map +1 -1
  238. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +15 -15
  239. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  240. package/lib/es6/a11y/translations/module/de.json +2 -2
  241. package/lib/es6/a11y/translations/module/en.json +2 -2
  242. package/lib/es6/a11y/translations/module/es.json +2 -2
  243. package/lib/es6/a11y/translations/module/fr.json +2 -2
  244. package/lib/es6/a11y/translations/module/it.json +2 -2
  245. package/lib/es6/a11y/translations/module/ja.json +2 -2
  246. package/lib/es6/a11y/translations/module/ko.json +2 -2
  247. package/lib/es6/a11y/translations/module/nl.json +2 -2
  248. package/lib/es6/a11y/translations/module/pl.json +2 -2
  249. package/lib/es6/a11y/translations/module/pt.json +2 -2
  250. package/lib/es6/a11y/translations/module/sv.json +2 -2
  251. package/lib/es6/a11y/translations/module/tr.json +2 -2
  252. package/lib/es6/a11y/translations/module/vi.json +2 -2
  253. package/lib/es6/a11y/translations/module/zh.json +2 -2
  254. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +15 -15
  255. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  256. package/lib/es6/color.js +1 -1
  257. package/lib/es6/color.js.map +1 -1
  258. package/lib/es6/component/Chart/AbstractChart.js +416 -462
  259. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  260. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  261. package/lib/es6/component/Chart/AreaChart.js +92 -111
  262. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  263. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  264. package/lib/es6/component/Chart/BarChart.js +225 -213
  265. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  266. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  267. package/lib/es6/component/Chart/BubbleChart.js +109 -132
  268. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  269. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  270. package/lib/es6/component/Chart/CigaretteChart.js +276 -301
  271. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  272. package/lib/es6/component/Chart/CompactHorizontalBarChart.js +70 -103
  273. package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  274. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  275. package/lib/es6/component/Chart/DonutChart.js +74 -90
  276. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  277. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  278. package/lib/es6/component/Chart/HistogramChart.js +121 -144
  279. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  280. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  281. package/lib/es6/component/Chart/LineChart.js +90 -109
  282. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  283. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  284. package/lib/es6/component/Chart/RadarChart.js +80 -107
  285. package/lib/es6/component/Chart/RadarChart.js.map +1 -1
  286. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  287. package/lib/es6/component/Chart/ScatterPlotChart.js +113 -138
  288. package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
  289. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  290. package/lib/es6/component/Chart/VennChart.js +97 -117
  291. package/lib/es6/component/Chart/VennChart.js.map +1 -1
  292. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  293. package/lib/es6/component/ChartLegend/BaseLegend.js +70 -104
  294. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  295. package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
  296. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +53 -65
  297. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  298. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  299. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +198 -211
  300. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  301. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
  302. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  303. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +58 -68
  304. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  305. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  306. package/lib/es6/component/Cigarette/Cigarette.js +108 -122
  307. package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
  308. package/lib/es6/component/StackGroupBar/StackGroupBar.js +100 -130
  309. package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
  310. package/lib/es6/component/SvgElement.js +4 -5
  311. package/lib/es6/component/SvgElement.js.map +1 -1
  312. package/lib/es6/createElement.js +55 -54
  313. package/lib/es6/createElement.js.map +1 -1
  314. package/lib/es6/style/axis.shadow.css +3 -0
  315. package/lib/es6/style/plot.shadow.css +1 -3
  316. package/lib/es6/style/plotA11yModule.shadow.css +10 -11
  317. package/lib/es6/style/plotA11yView.shadow.css +13 -26
  318. package/lib/es6/translations/__intergalactic-dynamic-locales.js +14 -14
  319. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  320. package/lib/es6/types/Axis.d.js.map +1 -1
  321. package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
  322. package/lib/es6/types/Hover.d.js.map +1 -1
  323. package/lib/es6/types/Line.d.js.map +1 -1
  324. package/lib/es6/types/Plot.d.js.map +1 -1
  325. package/lib/es6/types/Radar.d.js.map +1 -1
  326. package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
  327. package/lib/es6/types/Tooltip.d.js.map +1 -1
  328. package/lib/es6/types/Venn.d.js.map +1 -1
  329. package/lib/es6/utils.js +105 -144
  330. package/lib/es6/utils.js.map +1 -1
  331. package/lib/esm/AnimatedClipPath.mjs +24 -36
  332. package/lib/esm/Area.mjs +178 -149
  333. package/lib/esm/Axis.mjs +241 -242
  334. package/lib/esm/Bar.mjs +155 -137
  335. package/lib/esm/Bubble.mjs +205 -171
  336. package/lib/esm/CompactHorizontalBar.mjs +428 -383
  337. package/lib/esm/Donut.mjs +315 -266
  338. package/lib/esm/Dots.mjs +60 -49
  339. package/lib/esm/GroupBar.mjs +71 -75
  340. package/lib/esm/HorizontalBar.mjs +142 -120
  341. package/lib/esm/Hover.mjs +173 -163
  342. package/lib/esm/Line.mjs +174 -145
  343. package/lib/esm/Pattern.mjs +67 -63
  344. package/lib/esm/Plot.mjs +98 -95
  345. package/lib/esm/Radar.mjs +550 -498
  346. package/lib/esm/RadialTree.mjs +512 -416
  347. package/lib/esm/Reference.mjs +137 -122
  348. package/lib/esm/ResponsiveContainer.mjs +58 -69
  349. package/lib/esm/ScatterPlot.mjs +163 -162
  350. package/lib/esm/StackBar.mjs +126 -147
  351. package/lib/esm/StackedArea.mjs +53 -61
  352. package/lib/esm/Tooltip.mjs +185 -175
  353. package/lib/esm/Venn.mjs +170 -170
  354. package/lib/esm/a11y/DataAccessibilityTable.mjs +46 -73
  355. package/lib/esm/a11y/PlotA11yModule.mjs +37 -80
  356. package/lib/esm/a11y/PlotA11yView.mjs +99 -74
  357. package/lib/esm/a11y/bezier.mjs +16 -23
  358. package/lib/esm/a11y/focus.mjs +15 -16
  359. package/lib/esm/a11y/hints.mjs +65 -71
  360. package/lib/esm/a11y/insights.mjs +347 -495
  361. package/lib/esm/a11y/intl.mjs +4 -5
  362. package/lib/esm/a11y/locale.mjs +12 -14
  363. package/lib/esm/a11y/serialize.mjs +139 -152
  364. package/lib/esm/a11y/summarize.mjs +3 -3
  365. package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +1 -1
  366. package/lib/esm/a11y/translations/module/de.json.mjs +2 -4
  367. package/lib/esm/a11y/translations/module/en.json.mjs +2 -4
  368. package/lib/esm/a11y/translations/module/es.json.mjs +2 -4
  369. package/lib/esm/a11y/translations/module/fr.json.mjs +2 -4
  370. package/lib/esm/a11y/translations/module/it.json.mjs +2 -4
  371. package/lib/esm/a11y/translations/module/ja.json.mjs +2 -4
  372. package/lib/esm/a11y/translations/module/ko.json.mjs +2 -4
  373. package/lib/esm/a11y/translations/module/nl.json.mjs +2 -4
  374. package/lib/esm/a11y/translations/module/pl.json.mjs +2 -4
  375. package/lib/esm/a11y/translations/module/pt.json.mjs +2 -4
  376. package/lib/esm/a11y/translations/module/sv.json.mjs +2 -4
  377. package/lib/esm/a11y/translations/module/tr.json.mjs +2 -4
  378. package/lib/esm/a11y/translations/module/vi.json.mjs +2 -4
  379. package/lib/esm/a11y/translations/module/zh.json.mjs +2 -4
  380. package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +1 -1
  381. package/lib/esm/color.mjs +1 -1
  382. package/lib/esm/component/Chart/AbstractChart.mjs +422 -415
  383. package/lib/esm/component/Chart/AreaChart.mjs +92 -91
  384. package/lib/esm/component/Chart/BarChart.mjs +225 -177
  385. package/lib/esm/component/Chart/BubbleChart.mjs +110 -118
  386. package/lib/esm/component/Chart/CigaretteChart.mjs +277 -268
  387. package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +70 -87
  388. package/lib/esm/component/Chart/DonutChart.mjs +74 -84
  389. package/lib/esm/component/Chart/HistogramChart.mjs +121 -117
  390. package/lib/esm/component/Chart/LineChart.mjs +90 -89
  391. package/lib/esm/component/Chart/RadarChart.mjs +81 -97
  392. package/lib/esm/component/Chart/ScatterPlotChart.mjs +113 -111
  393. package/lib/esm/component/Chart/VennChart.mjs +98 -111
  394. package/lib/esm/component/ChartLegend/BaseLegend.mjs +75 -97
  395. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +54 -55
  396. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +194 -165
  397. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.type.mjs +1 -1
  398. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +60 -58
  399. package/lib/esm/component/Cigarette/Cigarette.mjs +109 -99
  400. package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +97 -111
  401. package/lib/esm/component/SvgElement.mjs +4 -4
  402. package/lib/esm/createElement.mjs +54 -37
  403. package/lib/esm/style/axis.shadow.css +3 -0
  404. package/lib/esm/style/plot.shadow.css +1 -3
  405. package/lib/esm/style/plotA11yModule.shadow.css +10 -11
  406. package/lib/esm/style/plotA11yView.shadow.css +13 -26
  407. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +1 -1
  408. package/lib/esm/utils.mjs +103 -138
  409. package/lib/types/Axis.d.ts +4 -0
  410. package/lib/types/CompactHorizontalBar.d.ts +1 -1
  411. package/lib/types/Hover.d.ts +1 -1
  412. package/lib/types/Line.d.ts +1 -1
  413. package/lib/types/Plot.d.ts +1 -1
  414. package/lib/types/Radar.d.ts +1 -1
  415. package/lib/types/ResponsiveContainer.d.ts +1 -1
  416. package/lib/types/Tooltip.d.ts +1 -3
  417. package/lib/types/Venn.d.ts +1 -1
  418. package/lib/types/a11y/PlotA11yModule.d.ts +4 -11
  419. package/lib/types/a11y/PlotA11yView.d.ts +12 -1
  420. package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
  421. package/lib/types/component/Chart/AbstractChart.d.ts +1 -1
  422. package/lib/types/component/Chart/AbstractChart.type.d.ts +1 -1
  423. package/lib/types/component/Chart/AreaChart.type.d.ts +1 -1
  424. package/lib/types/component/Chart/BarChart.type.d.ts +1 -1
  425. package/lib/types/component/Chart/BubbleChart.type.d.ts +1 -1
  426. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -1
  427. package/lib/types/component/Chart/DonutChart.type.d.ts +1 -1
  428. package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -1
  429. package/lib/types/component/Chart/LineChart.type.d.ts +1 -1
  430. package/lib/types/component/Chart/RadarChart.type.d.ts +1 -1
  431. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
  432. package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
  433. package/lib/types/component/ChartLegend/BaseLegend.d.ts +1 -1
  434. package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +1 -1
  435. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +1 -1
  436. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +1 -1
  437. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +1 -1
  438. package/lib/types/utils.d.ts +10 -10
  439. package/package.json +9 -12
@@ -1,5 +1,3 @@
1
- @import './var.css';
2
-
3
1
  SPlot {
4
2
  overflow: hidden;
5
3
  }
@@ -17,7 +15,7 @@ foreignObject[data-aria-only] {
17
15
  pointer-events: none;
18
16
  }
19
17
 
20
- SPlot[keyboardFocused] {
18
+ SPlot:has(foreignObject[data-aria-only]:focus-within) {
21
19
  @mixin focus-outline-mixin;
22
20
  border-radius: var(--intergalactic-surface-rounded, 6px);
23
21
  }
@@ -1,12 +1,11 @@
1
- @import './var.css';
2
-
3
1
  SPlotA11yModule {
4
- user-select: none;
5
- pointer-events: none;
6
- opacity: 0;
7
- }
8
- SPlotA11yModule:focus {
9
- user-select: all;
10
- pointer-events: all;
11
- opacity: 1;
12
- }
2
+ position: absolute;
3
+ width: 1px;
4
+ height: 1px;
5
+ padding: 0;
6
+ margin: -1px;
7
+ overflow: hidden;
8
+ clip: rect(0, 0, 0, 0);
9
+ white-space: nowrap;
10
+ border: 0,
11
+ }
@@ -1,39 +1,26 @@
1
- @import './var.css';
2
-
3
1
  SPlotA11yView {
4
- user-select: none;
5
- pointer-events: none;
6
- opacity: 0;
2
+ position: relative;
3
+ display: block;
7
4
  background-color: var(--intergalactic-bg-primary-neutral, #ffffff);
8
5
  color: var(--intergalactic-text-primary, #191b23);
9
6
  border: 3px solid var(--intergalactic-border-primary, #c4c7cf);
10
7
  font-size: var(--intergalactic-fs-50, 10px);
11
- /* disable-tokens-validator */
8
+ z-index: var(--intergalactic-z-index-overlay, 500);
12
9
  padding: 2px;
13
10
  width: 200px;
14
11
  height: 200px;
15
12
  max-width: 80%;
16
13
  max-height: 80%;
17
14
  overflow: auto;
18
- }
19
- SPlotA11yView:focus-within,
20
- SPlotA11yView:focus {
21
- user-select: all;
22
- pointer-events: all;
23
- opacity: 1;
24
- z-index: var(--intergalactic-z-index-overlay, 500);
25
- position: relative;
26
- display: block;
27
- }
28
- SPlotA11yView a {
29
- cursor: pointer;
30
- text-decoration: underline;
31
- margin-bottom: var(--intergalactic-spacing-2x, 8px);
32
- display: block;
33
- }
34
15
 
35
- SPlotA11yView table,
36
- SPlotA11yView td,
37
- SPlotA11yView th {
38
- border: 1px solid var(--intergalactic-border-primary, #c4c7cf);
16
+ a {
17
+ cursor: pointer;
18
+ text-decoration: underline;
19
+ margin-bottom: var(--intergalactic-spacing-2x, 8px);
20
+ display: block;
21
+ }
22
+
23
+ table, td, th {
24
+ border: 1px solid var(--intergalactic-border-primary, #c4c7cf);
25
+ }
39
26
  }
@@ -11,7 +11,7 @@ import sv from "./sv.json.mjs";
11
11
  import tr from "./tr.json.mjs";
12
12
  import vi from "./vi.json.mjs";
13
13
  import zh from "./zh.json.mjs";
14
- var localizedMessages = {
14
+ const localizedMessages = {
15
15
  en,
16
16
  es,
17
17
  fr,
package/lib/esm/utils.mjs CHANGED
@@ -1,219 +1,184 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
- import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
4
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
1
  import EventEmitter from "@semcore/core/lib/utils/eventEmitter";
7
2
  import { extent, bisector } from "d3-array";
8
3
  import { scaleSqrt, scaleBand, scaleQuantize } from "d3-scale";
9
- var eventToPoint = function eventToPoint2(event, svgRoot) {
10
- var node = event.currentTarget || event.target;
11
- var rect = svgRoot.getBoundingClientRect();
4
+ const eventToPoint = (event, svgRoot) => {
5
+ const node = event.currentTarget || event.target;
6
+ const rect = svgRoot.getBoundingClientRect();
12
7
  return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];
13
8
  };
14
- var invert = function invert2(scale, value) {
9
+ const invert = (scale, value) => {
15
10
  if ("invert" in scale && scale.invert) return scale.invert(value);
16
- var range = scale.range();
17
- var domain = scale.domain();
11
+ const range = scale.range();
12
+ const domain = scale.domain();
18
13
  if ("paddingOuter" in scale) {
19
14
  range[0] += scale.paddingOuter() * scale.step();
20
15
  range[1] -= scale.paddingOuter() * scale.step();
21
16
  }
22
17
  return scaleQuantize().domain(range[0] <= range[1] ? range : range.slice().reverse()).range(range[0] <= range[1] ? domain : domain.slice().reverse())(value);
23
18
  };
24
- var definedNullData = function definedNullData2(x, y) {
25
- return function(plot) {
26
- return plot[x] !== null && plot[y] !== null;
27
- };
28
- };
29
- var definedData = function definedData2(x, y) {
30
- return function(plot) {
31
- return plot[x] !== null && plot[x] !== void 0 && plot[y] !== null && plot[y] !== void 0;
32
- };
33
- };
34
- var scaleOfBandwidth = function scaleOfBandwidth2(scale, value) {
35
- return scale.bandwidth ? scale(value) + scale.bandwidth() / 2 : scale(value);
36
- };
37
- var minMax = function minMax2(data, key) {
19
+ const definedNullData = (x, y) => (plot) => plot[x] !== null && plot[y] !== null;
20
+ const definedData = (x, y) => (plot) => plot[x] !== null && plot[x] !== void 0 && plot[y] !== null && plot[y] !== void 0;
21
+ const scaleOfBandwidth = (scale, value) => scale.bandwidth ? scale(value) + scale.bandwidth() / 2 : scale(value);
22
+ const minMax = (data, key) => {
38
23
  if (typeof key === "string") {
39
- return extent(data, function(d) {
40
- return d[key];
41
- });
24
+ return extent(data, (d) => d[key]);
42
25
  }
43
26
  return extent(data, key);
44
27
  };
45
- var getNullData = function getNullData2(data, defined, name) {
46
- return data.reduce(function(acc, d, i, data2) {
47
- if (defined(d)) {
48
- acc.push(_defineProperty({}, name, null));
49
- } else {
50
- var prev = data2[i - 1];
51
- var next = data2[i + 1];
52
- if (i === 0) {
53
- var defNext = data2.find(defined);
54
- acc.push(_objectSpread(_objectSpread({}, d), {}, _defineProperty({}, name, defNext ? defNext[name] : null)));
55
- }
56
- if (prev && defined(prev)) {
57
- acc.push(prev);
58
- }
59
- if (next && defined(next)) {
60
- acc.push(next);
61
- }
62
- if (data2.length - 1 === i) {
63
- var defPrev = data2.slice().reverse().find(defined);
64
- acc.push(_objectSpread(_objectSpread({}, d), {}, _defineProperty({}, name, defPrev ? defPrev[name] : null)));
65
- }
28
+ const getNullData = (data, defined, name) => data.reduce((acc, d, i, data2) => {
29
+ if (defined(d)) {
30
+ acc.push({
31
+ [name]: null
32
+ });
33
+ } else {
34
+ const prev = data2[i - 1];
35
+ const next = data2[i + 1];
36
+ if (i === 0) {
37
+ const defNext = data2.find(defined);
38
+ acc.push({
39
+ ...d,
40
+ [name]: defNext ? defNext[name] : null
41
+ });
66
42
  }
67
- return acc;
68
- }, []);
69
- };
70
- var getIndexFromData = function getIndexFromData2(data, scale, key, value) {
43
+ if (prev && defined(prev)) {
44
+ acc.push(prev);
45
+ }
46
+ if (next && defined(next)) {
47
+ acc.push(next);
48
+ }
49
+ if (data2.length - 1 === i) {
50
+ const defPrev = data2.slice().reverse().find(defined);
51
+ acc.push({
52
+ ...d,
53
+ [name]: defPrev ? defPrev[name] : null
54
+ });
55
+ }
56
+ }
57
+ return acc;
58
+ }, []);
59
+ const getIndexFromData = (data, scale, key, value) => {
71
60
  if ("invert" in scale && typeof scale.invert === "function" && Array.isArray(data)) {
72
- var bisect = bisector(function(d) {
73
- return d[key];
74
- }).center;
61
+ const bisect = bisector((d) => d[key]).center;
75
62
  return bisect(data, value);
76
63
  } else if ("step" in scale && typeof scale.step !== "undefined" && Array.isArray(data)) {
77
- var index = data.findIndex(function(d) {
78
- return d[key] === value;
79
- });
64
+ const index = data.findIndex((d) => d[key] === value);
80
65
  return index >= 0 ? index : null;
81
66
  } else if ("invert" in scale && typeof scale.invert === "function" && !Array.isArray(data)) {
82
- var keys = Object.keys(data);
83
- var domain = keys.map(function(_key, index2) {
84
- return keys.slice(0, index2).reduce(function(acc, item) {
67
+ const keys = Object.keys(data);
68
+ const domain = keys.map((_key, index) => {
69
+ return keys.slice(0, index).reduce((acc, item) => {
85
70
  if (data[item] !== interpolateValue) {
86
71
  acc = acc + data[item];
87
72
  }
88
73
  return acc;
89
74
  }, 0);
90
75
  });
91
- var _key2 = null;
92
- var lastKeyIndex = keys.length - 1;
76
+ let key2 = null;
77
+ const lastKeyIndex = keys.length - 1;
93
78
  if (value > domain[lastKeyIndex]) {
94
- _key2 = keys[lastKeyIndex];
79
+ key2 = keys[lastKeyIndex];
95
80
  } else {
96
- for (var i = 0; i < lastKeyIndex; i++) {
81
+ for (let i = 0; i < lastKeyIndex; i++) {
97
82
  if (i === 0 && value < domain[i]) {
98
83
  break;
99
84
  }
100
85
  if (value > domain[i] && value < domain[i + 1]) {
101
- _key2 = keys[i];
86
+ key2 = keys[i];
102
87
  break;
103
88
  }
104
89
  }
105
90
  }
106
- return _key2;
91
+ return key2;
107
92
  } else {
108
93
  console.warn("[d3-chart/utils/getIndexFromData] encountered incompatible scale type");
109
94
  return null;
110
95
  }
111
96
  };
112
- var roundedPath = function roundedPath2(x, y, w, h, r) {
113
- var tl = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;
114
- var tr = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : false;
115
- var bl = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : false;
116
- var br = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : false;
117
- var result = "M".concat(x + r, ",").concat(y);
118
- result += "h".concat(w - 2 * r);
97
+ const roundedPath = (x, y, w, h, r, tl = false, tr = false, bl = false, br = false) => {
98
+ let result = `M${x + r},${y}`;
99
+ result += `h${w - 2 * r}`;
119
100
  if (tr) {
120
- result += "a".concat(r, ",").concat(r, " 0 0 1 ").concat(r, ",").concat(r);
101
+ result += `a${r},${r} 0 0 1 ${r},${r}`;
121
102
  } else {
122
- result += "h".concat(r);
123
- result += "v".concat(r);
103
+ result += `h${r}`;
104
+ result += `v${r}`;
124
105
  }
125
- result += "v".concat(h - 2 * r);
106
+ result += `v${h - 2 * r}`;
126
107
  if (br) {
127
- result += "a".concat(r, ",").concat(r, " 0 0 1 ").concat(-r, ",").concat(r);
108
+ result += `a${r},${r} 0 0 1 ${-r},${r}`;
128
109
  } else {
129
- result += "v".concat(r);
130
- result += "h".concat(-r);
110
+ result += `v${r}`;
111
+ result += `h${-r}`;
131
112
  }
132
- result += "h".concat(2 * r - w);
113
+ result += `h${2 * r - w}`;
133
114
  if (bl) {
134
- result += "a".concat(r, ",").concat(r, " 0 0 1 ").concat(-r, ",").concat(-r);
115
+ result += `a${r},${r} 0 0 1 ${-r},${-r}`;
135
116
  } else {
136
- result += "h".concat(-r);
137
- result += "v".concat(-r);
117
+ result += `h${-r}`;
118
+ result += `v${-r}`;
138
119
  }
139
- result += "v".concat(2 * r - h);
120
+ result += `v${2 * r - h}`;
140
121
  if (tl) {
141
- result += "a".concat(r, ",").concat(r, " 0 0 1 ").concat(r, ",").concat(-r);
122
+ result += `a${r},${r} 0 0 1 ${r},${-r}`;
142
123
  } else {
143
- result += "v".concat(-r);
144
- result += "h".concat(r);
124
+ result += `v${-r}`;
125
+ result += `h${r}`;
145
126
  }
146
127
  result += "z";
147
128
  return result;
148
129
  };
149
- var scaleToBand = function scaleToBand2(scale) {
130
+ const scaleToBand = (scale) => {
150
131
  if ("bandwidth" in scale) {
151
132
  return scale;
152
133
  }
153
- var band = scaleBand().range(scale.range()).domain(scale.domain());
134
+ const band = scaleBand().range(scale.range()).domain(scale.domain());
154
135
  return band;
155
136
  };
156
- var memoize = function memoize2(func) {
157
- var results = {};
158
- return function() {
159
- for (var _len = arguments.length, args = new Array(_len), _key3 = 0; _key3 < _len; _key3++) {
160
- args[_key3] = arguments[_key3];
161
- }
162
- var argsKey = args.join(",");
137
+ const memoize = (func) => {
138
+ const results = {};
139
+ return (...args) => {
140
+ const argsKey = args.join(",");
163
141
  if (!results[argsKey]) {
164
- results[argsKey] = func.apply(void 0, args);
142
+ results[argsKey] = func(...args);
165
143
  }
166
144
  return results[argsKey];
167
145
  };
168
146
  };
169
- var measureText = memoize(function(text, fontSize) {
147
+ const measureText = memoize((text, fontSize) => {
170
148
  if (!text) return 0;
171
- var span = document.createElement("span");
149
+ const span = document.createElement("span");
172
150
  if (fontSize) {
173
- span.style.fontSize = "".concat(fontSize, "px");
151
+ span.style.fontSize = `${fontSize}px`;
174
152
  }
175
- var _iterator = _createForOfIteratorHelper(text.split("\n")), _step;
176
- try {
177
- for (_iterator.s(); !(_step = _iterator.n()).done; ) {
178
- var line = _step.value;
179
- span.append(document.createTextNode(line));
180
- span.append(document.createElement("br"));
181
- }
182
- } catch (err) {
183
- _iterator.e(err);
184
- } finally {
185
- _iterator.f();
153
+ for (const line of text.split("\n")) {
154
+ span.append(document.createTextNode(line));
155
+ span.append(document.createElement("br"));
186
156
  }
187
157
  span.style.display = "inline-block";
188
158
  document.body.append(span);
189
- var textWidth = span.offsetWidth;
190
- var textHeight = span.offsetHeight;
159
+ const textWidth = span.offsetWidth;
160
+ const textHeight = span.offsetHeight;
191
161
  span.remove();
192
162
  return Math.max(textWidth, textHeight);
193
163
  });
194
- var idCounter = 0;
195
- var uniqueId = function uniqueId2() {
196
- var prefix = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "id-";
197
- return "".concat(prefix).concat(idCounter++);
198
- };
199
- var interpolateValue = Symbol("intergalactic-d3-chart-line-interpolate");
200
- var getChartDefaultColorName = function getChartDefaultColorName2(index) {
164
+ let idCounter = 0;
165
+ const uniqueId = (prefix = "id-") => `${prefix}${idCounter++}`;
166
+ const interpolateValue = Symbol("intergalactic-d3-chart-line-interpolate");
167
+ const getChartDefaultColorName = (index) => {
201
168
  index++;
202
169
  if (index < 1) index = 1;
203
170
  if (index > 24) index %= 24;
204
- return "chart-palette-order-".concat(index);
171
+ return `chart-palette-order-${index}`;
205
172
  };
206
- var getBubbleChartValueScale = function getBubbleChartValueScale2(data, key) {
207
- var z = scaleSqrt().domain([0, Math.max.apply(Math, _toConsumableArray(data.map(function(el) {
208
- return el[key];
209
- })))]).range([5.5, 50.5]);
173
+ const getBubbleChartValueScale = (data, key) => {
174
+ const z = scaleSqrt().domain([0, Math.max(...data.map((el) => el[key]))]).range([5.5, 50.5]);
210
175
  return z;
211
176
  };
212
- var getScatterPlotRadius = function getScatterPlotRadius2(valueKey) {
177
+ const getScatterPlotRadius = (valueKey) => {
213
178
  return valueKey !== void 0 ? 12 : 5.5;
214
179
  };
215
- var calculateBubbleDomain = function calculateBubbleDomain2(data, key, range) {
216
- var miniestValue = data.reduce(function(acc, item) {
180
+ const calculateBubbleDomain = (data, key, range) => {
181
+ const miniestValue = data.reduce((acc, item) => {
217
182
  if (item[key] - item.value < acc.min) {
218
183
  acc.min = item[key] - item.value;
219
184
  acc.value = item.value;
@@ -223,7 +188,7 @@ var calculateBubbleDomain = function calculateBubbleDomain2(data, key, range) {
223
188
  value: data[0].value,
224
189
  min: data[0][key] - data[0].value
225
190
  }).value;
226
- var maxestValue = data.reduce(function(acc, item) {
191
+ const maxestValue = data.reduce((acc, item) => {
227
192
  if (item.value + item[key] > acc.max) {
228
193
  acc.max = item.value + item.x;
229
194
  acc.value = item.value;
@@ -233,16 +198,16 @@ var calculateBubbleDomain = function calculateBubbleDomain2(data, key, range) {
233
198
  value: data[0].value,
234
199
  max: data[0].value + data[0][key]
235
200
  }).value;
236
- var _minMax = minMax(data, key), _minMax2 = _slicedToArray(_minMax, 2), min = _minMax2[0], max = _minMax2[1];
237
- var pixelRatio = Math.abs(max - min) / Math.abs(range[0] - range[1]);
238
- var valueScale = getBubbleChartValueScale(data, "value");
239
- var minValueShift = valueScale(miniestValue) * pixelRatio;
240
- var maxValueShift = valueScale(maxestValue) * pixelRatio;
201
+ let [min, max] = minMax(data, key);
202
+ const pixelRatio = Math.abs(max - min) / Math.abs(range[0] - range[1]);
203
+ const valueScale = getBubbleChartValueScale(data, "value");
204
+ const minValueShift = valueScale(miniestValue) * pixelRatio;
205
+ const maxValueShift = valueScale(maxestValue) * pixelRatio;
241
206
  min -= minValueShift * 2;
242
207
  max += maxValueShift * 2;
243
208
  return [min, max];
244
209
  };
245
- var PlotEventEmitter = EventEmitter;
210
+ const PlotEventEmitter = EventEmitter;
246
211
  export {
247
212
  PlotEventEmitter,
248
213
  calculateBubbleDomain,
@@ -40,6 +40,10 @@ export type AxisTicksProps = Context & {
40
40
  ticks?: any[];
41
41
  /** Enables multiline tick labels, applicable only for band scales */
42
42
  multiline?: boolean;
43
+ /**
44
+ * Enable `--intergalactic-text-primary` color for ticks
45
+ */
46
+ primaryText?: boolean;
43
47
  };
44
48
 
45
49
  /** @deprecated */
@@ -1,4 +1,4 @@
1
- import type { BoxProps } from '@semcore/flex-box';
1
+ import type { BoxProps } from '@semcore/base-components';
2
2
 
3
3
  import type { BackgroundProps } from './Bar';
4
4
  import type { Context } from './context';
@@ -1,5 +1,5 @@
1
+ import type { BoxProps } from '@semcore/base-components';
1
2
  import type { UnknownProperties, ReturnEl } from '@semcore/core';
2
- import type { BoxProps } from '@semcore/flex-box';
3
3
  import type React from 'react';
4
4
 
5
5
  import type { Context } from './context';
@@ -1,4 +1,4 @@
1
- import type { FadeInOutProps } from '@semcore/animation';
1
+ import type { FadeInOutProps } from '@semcore/base-components';
2
2
  import type { UnknownProperties } from '@semcore/core';
3
3
  import type { CurveFactory } from 'd3-shape';
4
4
 
@@ -1,5 +1,5 @@
1
+ import type { BoxProps } from '@semcore/base-components';
1
2
  import type { UnknownProperties, Intergalactic } from '@semcore/core';
2
- import type { BoxProps } from '@semcore/flex-box';
3
3
 
4
4
  import type { DataStructureHints } from './a11y/hints';
5
5
  import type { Context } from './context';
@@ -1,5 +1,5 @@
1
+ import type { BoxProps } from '@semcore/base-components';
1
2
  import type { UnknownProperties } from '@semcore/core';
2
- import type { BoxProps } from '@semcore/flex-box';
3
3
  import type { CurveFactory } from 'd3-shape';
4
4
 
5
5
  import type { Context } from './context';
@@ -1,5 +1,5 @@
1
+ import type { BoxProps } from '@semcore/base-components';
1
2
  import type { UnknownProperties } from '@semcore/core';
2
- import type { BoxProps } from '@semcore/flex-box';
3
3
 
4
4
  import type { IntergalacticD3Component } from './Plot';
5
5
 
@@ -1,7 +1,5 @@
1
+ import type { Popper, Box, BoxProps, PopperProps, PopperTriggerProps } from '@semcore/base-components';
1
2
  import type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';
2
- import type { Box, BoxProps } from '@semcore/flex-box';
3
- import type { PopperProps, PopperTriggerProps } from '@semcore/popper';
4
- import type Popper from '@semcore/popper';
5
3
  import type React from 'react';
6
4
 
7
5
  import type { Context } from './context';
@@ -1,4 +1,4 @@
1
- import type { FadeInOutProps } from '@semcore/animation';
1
+ import type { FadeInOutProps } from '@semcore/base-components';
2
2
  import type { UnknownProperties } from '@semcore/core';
3
3
 
4
4
  import type { Context } from './context';
@@ -1,12 +1,5 @@
1
1
  import React from 'react';
2
- import type { DataStructureHints, PartialDataSummarizationConfig } from './hints';
3
- export type A11yViewProps = {
4
- id: string;
5
- data: Record<string, unknown>[];
6
- hints: DataStructureHints;
7
- plotLabel: string;
8
- locale: NavigatorLanguage['language'];
9
- config: PartialDataSummarizationConfig;
10
- plotRef: React.RefObject<HTMLElement>;
11
- };
12
- export declare function PlotA11yModule(props: A11yViewProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
2
+ import type { A11yViewProps } from './PlotA11yView';
3
+ type A11yModuleProps = Omit<A11yViewProps, 'onBlurHandler' | 'triggerRef'>;
4
+ export declare function PlotA11yModule(props: A11yModuleProps): React.ReactNode;
5
+ export {};
@@ -1,3 +1,14 @@
1
1
  import React from 'react';
2
- import type { A11yViewProps } from './PlotA11yModule';
2
+ import type { DataStructureHints, PartialDataSummarizationConfig } from './hints';
3
+ export type A11yViewProps = {
4
+ id: string;
5
+ payload: Record<string, unknown>[];
6
+ hints: DataStructureHints;
7
+ plotLabel: string;
8
+ locale: NavigatorLanguage['language'];
9
+ config: PartialDataSummarizationConfig;
10
+ plotRef: React.RefObject<HTMLElement>;
11
+ triggerRef: React.RefObject<HTMLElement>;
12
+ onCloseHandler: () => void;
13
+ };
3
14
  export declare const PlotA11yView: React.FC<A11yViewProps>;
@@ -1,72 +1,72 @@
1
1
  export declare const localizedMessages: {
2
2
  de: {
3
- disabled: string;
4
3
  loading: string;
5
4
  failed: string;
5
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
6
6
  };
7
7
  en: {
8
- disabled: string;
9
8
  loading: string;
10
9
  failed: string;
10
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
11
11
  };
12
12
  es: {
13
- disabled: string;
14
13
  loading: string;
15
14
  failed: string;
15
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
16
16
  };
17
17
  fr: {
18
- disabled: string;
19
18
  loading: string;
20
19
  failed: string;
20
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
21
21
  };
22
22
  it: {
23
- disabled: string;
24
23
  loading: string;
25
24
  failed: string;
25
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
26
26
  };
27
27
  ja: {
28
- disabled: string;
29
28
  loading: string;
30
29
  failed: string;
30
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
31
31
  };
32
32
  ko: {
33
- disabled: string;
34
33
  loading: string;
35
34
  failed: string;
35
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
36
36
  };
37
37
  nl: {
38
- disabled: string;
39
38
  loading: string;
40
39
  failed: string;
40
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
41
41
  };
42
42
  pt: {
43
- disabled: string;
44
43
  loading: string;
45
44
  failed: string;
45
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
46
46
  };
47
47
  tr: {
48
- disabled: string;
49
48
  loading: string;
50
49
  failed: string;
50
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
51
51
  };
52
52
  vi: {
53
- disabled: string;
54
53
  loading: string;
55
54
  failed: string;
55
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
56
56
  };
57
57
  zh: {
58
- disabled: string;
59
58
  loading: string;
60
59
  failed: string;
60
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
61
61
  };
62
62
  pl: {
63
- disabled: string;
64
63
  loading: string;
65
64
  failed: string;
65
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
66
66
  };
67
67
  sv: {
68
- disabled: string;
69
68
  loading: string;
70
69
  failed: string;
70
+ "PlotA11yModule.ScreenReaderOnlyButton.Label": string;
71
71
  };
72
72
  };
@@ -13,7 +13,7 @@ type ChartState = {
13
13
  withTrend: boolean;
14
14
  };
15
15
  export declare const NOT_A_VALUE = "n/a";
16
- export declare abstract class AbstractChart<D extends ListData | ObjectData, T extends BaseChartProps<D>, E extends readonly ((...args: any[]) => any)[] = []> extends Component<T, {}, ChartState, E> {
16
+ export declare abstract class AbstractChart<D extends ListData | ObjectData, T extends BaseChartProps<D>, E extends readonly ((...args: any[]) => any)[] = []> extends Component<T, E, Readonly<{}>, {}, ChartState> {
17
17
  static style: {
18
18
  [key: string]: string;
19
19
  };