@semcore/d3-chart 16.0.2-prerelease.4 → 16.0.3-prerelease.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (453) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -50
  3. package/lib/cjs/AnimatedClipPath.js +13 -13
  4. package/lib/cjs/AnimatedClipPath.js.map +1 -1
  5. package/lib/cjs/Area.js +29 -27
  6. package/lib/cjs/Area.js.map +1 -1
  7. package/lib/cjs/Axis.js +97 -101
  8. package/lib/cjs/Axis.js.map +1 -1
  9. package/lib/cjs/Bar.js +31 -32
  10. package/lib/cjs/Bar.js.map +1 -1
  11. package/lib/cjs/Bubble.js +26 -27
  12. package/lib/cjs/Bubble.js.map +1 -1
  13. package/lib/cjs/CompactHorizontalBar.js +65 -68
  14. package/lib/cjs/CompactHorizontalBar.js.map +1 -1
  15. package/lib/cjs/Donut.js +94 -95
  16. package/lib/cjs/Donut.js.map +1 -1
  17. package/lib/cjs/Dots.js +36 -34
  18. package/lib/cjs/Dots.js.map +1 -1
  19. package/lib/cjs/GroupBar.js +16 -16
  20. package/lib/cjs/GroupBar.js.map +1 -1
  21. package/lib/cjs/HorizontalBar.js +30 -31
  22. package/lib/cjs/HorizontalBar.js.map +1 -1
  23. package/lib/cjs/Hover.js +27 -33
  24. package/lib/cjs/Hover.js.map +1 -1
  25. package/lib/cjs/Line.js +23 -23
  26. package/lib/cjs/Line.js.map +1 -1
  27. package/lib/cjs/Pattern.js +13 -11
  28. package/lib/cjs/Pattern.js.map +1 -1
  29. package/lib/cjs/Plot.js +26 -27
  30. package/lib/cjs/Plot.js.map +1 -1
  31. package/lib/cjs/Radar.js +125 -132
  32. package/lib/cjs/Radar.js.map +1 -1
  33. package/lib/cjs/RadialTree.js +164 -145
  34. package/lib/cjs/RadialTree.js.map +1 -1
  35. package/lib/cjs/Reference.js +47 -49
  36. package/lib/cjs/Reference.js.map +1 -1
  37. package/lib/cjs/ResponsiveContainer.js +19 -20
  38. package/lib/cjs/ResponsiveContainer.js.map +1 -1
  39. package/lib/cjs/ScatterPlot.js +24 -25
  40. package/lib/cjs/ScatterPlot.js.map +1 -1
  41. package/lib/cjs/StackBar.js +20 -23
  42. package/lib/cjs/StackBar.js.map +1 -1
  43. package/lib/cjs/StackedArea.js +14 -15
  44. package/lib/cjs/StackedArea.js.map +1 -1
  45. package/lib/cjs/Tooltip.js +34 -35
  46. package/lib/cjs/Tooltip.js.map +1 -1
  47. package/lib/cjs/Venn.js +28 -29
  48. package/lib/cjs/Venn.js.map +1 -1
  49. package/lib/cjs/a11y/DataAccessibilityTable.js +2 -3
  50. package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
  51. package/lib/cjs/a11y/PlotA11yModule.js +11 -12
  52. package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
  53. package/lib/cjs/a11y/PlotA11yView.js +10 -11
  54. package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
  55. package/lib/cjs/a11y/bezier.js +1 -2
  56. package/lib/cjs/a11y/bezier.js.map +1 -1
  57. package/lib/cjs/a11y/focus.js +4 -5
  58. package/lib/cjs/a11y/focus.js.map +1 -1
  59. package/lib/cjs/a11y/hints.js +5 -8
  60. package/lib/cjs/a11y/hints.js.map +1 -1
  61. package/lib/cjs/a11y/insights.js +63 -64
  62. package/lib/cjs/a11y/insights.js.map +1 -1
  63. package/lib/cjs/a11y/intl.js +1 -2
  64. package/lib/cjs/a11y/intl.js.map +1 -1
  65. package/lib/cjs/a11y/locale.js +4 -5
  66. package/lib/cjs/a11y/locale.js.map +1 -1
  67. package/lib/cjs/a11y/serialize.js +15 -17
  68. package/lib/cjs/a11y/serialize.js.map +1 -1
  69. package/lib/cjs/a11y/summarize.js +1 -2
  70. package/lib/cjs/a11y/summarize.js.map +1 -1
  71. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +4 -5
  72. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  73. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +4 -5
  74. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  75. package/lib/cjs/color.js +2 -3
  76. package/lib/cjs/color.js.map +1 -1
  77. package/lib/cjs/component/Chart/AbstractChart.js +43 -46
  78. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  79. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  80. package/lib/cjs/component/Chart/AreaChart.js +17 -20
  81. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  82. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  83. package/lib/cjs/component/Chart/BarChart.js +17 -21
  84. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  85. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  86. package/lib/cjs/component/Chart/BubbleChart.js +18 -19
  87. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  88. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  89. package/lib/cjs/component/Chart/CigaretteChart.js +19 -23
  90. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  91. package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
  92. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +13 -14
  93. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  94. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  95. package/lib/cjs/component/Chart/DonutChart.js +13 -14
  96. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  97. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  98. package/lib/cjs/component/Chart/HistogramChart.js +15 -16
  99. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  100. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  101. package/lib/cjs/component/Chart/LineChart.js +17 -18
  102. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  103. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  104. package/lib/cjs/component/Chart/RadarChart.js +14 -17
  105. package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
  106. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  107. package/lib/cjs/component/Chart/ScatterPlotChart.js +14 -15
  108. package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
  109. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  110. package/lib/cjs/component/Chart/VennChart.js +12 -13
  111. package/lib/cjs/component/Chart/VennChart.js.map +1 -1
  112. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  113. package/lib/cjs/component/Chart/index.js +7 -8
  114. package/lib/cjs/component/Chart/index.js.map +1 -1
  115. package/lib/cjs/component/ChartLegend/BaseLegend.js +42 -20
  116. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  117. package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
  118. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +20 -20
  119. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  120. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  121. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +79 -67
  122. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  123. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -2
  124. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  125. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +18 -18
  126. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  127. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  128. package/lib/cjs/component/ChartLegend/index.js +1 -2
  129. package/lib/cjs/component/ChartLegend/index.js.map +1 -1
  130. package/lib/cjs/component/Cigarette/Cigarette.js +18 -19
  131. package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
  132. package/lib/cjs/component/StackGroupBar/StackGroupBar.js +22 -26
  133. package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
  134. package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
  135. package/lib/cjs/component/SvgElement.js +21 -0
  136. package/lib/cjs/component/SvgElement.js.map +1 -0
  137. package/lib/cjs/createElement.d.js.map +1 -1
  138. package/lib/cjs/createElement.js +7 -8
  139. package/lib/cjs/createElement.js.map +1 -1
  140. package/lib/cjs/index.js +9 -2
  141. package/lib/cjs/index.js.map +1 -1
  142. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
  143. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  144. package/lib/cjs/types/Area.d.js.map +1 -1
  145. package/lib/cjs/types/Axis.d.js.map +1 -1
  146. package/lib/cjs/types/Bar.d.js.map +1 -1
  147. package/lib/cjs/types/Bubble.d.js.map +1 -1
  148. package/lib/cjs/types/ClipPath.d.js.map +1 -1
  149. package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
  150. package/lib/cjs/types/Donut.d.js.map +1 -1
  151. package/lib/cjs/types/GroupBar.d.js.map +1 -1
  152. package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
  153. package/lib/cjs/types/Hover.d.js.map +1 -1
  154. package/lib/cjs/types/Line.d.js.map +1 -1
  155. package/lib/cjs/types/Plot.d.js.map +1 -1
  156. package/lib/cjs/types/Radar.d.js.map +1 -1
  157. package/lib/cjs/types/Reference.d.js.map +1 -1
  158. package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
  159. package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
  160. package/lib/cjs/types/StackBar.d.js.map +1 -1
  161. package/lib/cjs/types/StackedArea.d.js.map +1 -1
  162. package/lib/cjs/types/Tooltip.d.js.map +1 -1
  163. package/lib/cjs/types/Venn.d.js.map +1 -1
  164. package/lib/cjs/types/context.d.js.map +1 -1
  165. package/lib/cjs/types/index.d.js +2 -2
  166. package/lib/cjs/types/index.d.js.map +1 -1
  167. package/lib/cjs/utils.js +31 -52
  168. package/lib/cjs/utils.js.map +1 -1
  169. package/lib/es6/AnimatedClipPath.js +11 -10
  170. package/lib/es6/AnimatedClipPath.js.map +1 -1
  171. package/lib/es6/Area.js +27 -24
  172. package/lib/es6/Area.js.map +1 -1
  173. package/lib/es6/Axis.js +96 -98
  174. package/lib/es6/Axis.js.map +1 -1
  175. package/lib/es6/Bar.js +28 -27
  176. package/lib/es6/Bar.js.map +1 -1
  177. package/lib/es6/Bubble.js +24 -24
  178. package/lib/es6/Bubble.js.map +1 -1
  179. package/lib/es6/CompactHorizontalBar.js +63 -65
  180. package/lib/es6/CompactHorizontalBar.js.map +1 -1
  181. package/lib/es6/Donut.js +92 -92
  182. package/lib/es6/Donut.js.map +1 -1
  183. package/lib/es6/Dots.js +36 -33
  184. package/lib/es6/Dots.js.map +1 -1
  185. package/lib/es6/GroupBar.js +14 -13
  186. package/lib/es6/GroupBar.js.map +1 -1
  187. package/lib/es6/HorizontalBar.js +27 -26
  188. package/lib/es6/HorizontalBar.js.map +1 -1
  189. package/lib/es6/Hover.js +24 -28
  190. package/lib/es6/Hover.js.map +1 -1
  191. package/lib/es6/Line.js +20 -19
  192. package/lib/es6/Line.js.map +1 -1
  193. package/lib/es6/Pattern.js +4 -2
  194. package/lib/es6/Pattern.js.map +1 -1
  195. package/lib/es6/Plot.js +25 -25
  196. package/lib/es6/Plot.js.map +1 -1
  197. package/lib/es6/Radar.js +122 -128
  198. package/lib/es6/Radar.js.map +1 -1
  199. package/lib/es6/RadialTree.js +162 -142
  200. package/lib/es6/RadialTree.js.map +1 -1
  201. package/lib/es6/Reference.js +44 -43
  202. package/lib/es6/Reference.js.map +1 -1
  203. package/lib/es6/ResponsiveContainer.js +17 -17
  204. package/lib/es6/ResponsiveContainer.js.map +1 -1
  205. package/lib/es6/ScatterPlot.js +22 -22
  206. package/lib/es6/ScatterPlot.js.map +1 -1
  207. package/lib/es6/StackBar.js +17 -19
  208. package/lib/es6/StackBar.js.map +1 -1
  209. package/lib/es6/StackedArea.js +12 -12
  210. package/lib/es6/StackedArea.js.map +1 -1
  211. package/lib/es6/Tooltip.js +33 -33
  212. package/lib/es6/Tooltip.js.map +1 -1
  213. package/lib/es6/Venn.js +26 -26
  214. package/lib/es6/Venn.js.map +1 -1
  215. package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
  216. package/lib/es6/a11y/PlotA11yModule.js +11 -11
  217. package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
  218. package/lib/es6/a11y/PlotA11yView.js +9 -9
  219. package/lib/es6/a11y/PlotA11yView.js.map +1 -1
  220. package/lib/es6/a11y/bezier.js.map +1 -1
  221. package/lib/es6/a11y/focus.js +3 -3
  222. package/lib/es6/a11y/focus.js.map +1 -1
  223. package/lib/es6/a11y/hints.js +1 -1
  224. package/lib/es6/a11y/hints.js.map +1 -1
  225. package/lib/es6/a11y/insights.js +61 -61
  226. package/lib/es6/a11y/insights.js.map +1 -1
  227. package/lib/es6/a11y/intl.js.map +1 -1
  228. package/lib/es6/a11y/locale.js +2 -2
  229. package/lib/es6/a11y/locale.js.map +1 -1
  230. package/lib/es6/a11y/serialize.js +14 -13
  231. package/lib/es6/a11y/serialize.js.map +1 -1
  232. package/lib/es6/a11y/summarize.js.map +1 -1
  233. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
  234. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  235. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +2 -2
  236. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  237. package/lib/es6/color.js +1 -1
  238. package/lib/es6/color.js.map +1 -1
  239. package/lib/es6/component/Chart/AbstractChart.js +40 -41
  240. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  241. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  242. package/lib/es6/component/Chart/AreaChart.js +16 -16
  243. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  244. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  245. package/lib/es6/component/Chart/BarChart.js +15 -17
  246. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  247. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  248. package/lib/es6/component/Chart/BubbleChart.js +17 -15
  249. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  250. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  251. package/lib/es6/component/Chart/CigaretteChart.js +17 -17
  252. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  253. package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
  254. package/lib/es6/component/Chart/CompactHorizontalBarChart.js +11 -10
  255. package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  256. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  257. package/lib/es6/component/Chart/DonutChart.js +12 -10
  258. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  259. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  260. package/lib/es6/component/Chart/HistogramChart.js +14 -12
  261. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  262. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  263. package/lib/es6/component/Chart/LineChart.js +15 -14
  264. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  265. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  266. package/lib/es6/component/Chart/RadarChart.js +12 -13
  267. package/lib/es6/component/Chart/RadarChart.js.map +1 -1
  268. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  269. package/lib/es6/component/Chart/ScatterPlotChart.js +13 -11
  270. package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
  271. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  272. package/lib/es6/component/Chart/VennChart.js +10 -9
  273. package/lib/es6/component/Chart/VennChart.js.map +1 -1
  274. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  275. package/lib/es6/component/Chart/index.js +6 -6
  276. package/lib/es6/component/Chart/index.js.map +1 -1
  277. package/lib/es6/component/ChartLegend/BaseLegend.js +40 -17
  278. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  279. package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
  280. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +18 -17
  281. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  282. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  283. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +77 -64
  284. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  285. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  286. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +16 -15
  287. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  288. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  289. package/lib/es6/component/ChartLegend/index.js.map +1 -1
  290. package/lib/es6/component/Cigarette/Cigarette.js +16 -16
  291. package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
  292. package/lib/es6/component/StackGroupBar/StackGroupBar.js +20 -21
  293. package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
  294. package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
  295. package/lib/es6/component/SvgElement.js +14 -0
  296. package/lib/es6/component/SvgElement.js.map +1 -0
  297. package/lib/es6/createElement.d.js.map +1 -1
  298. package/lib/es6/createElement.js +5 -5
  299. package/lib/es6/createElement.js.map +1 -1
  300. package/lib/es6/index.js +1 -0
  301. package/lib/es6/index.js.map +1 -1
  302. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  303. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  304. package/lib/es6/types/Area.d.js.map +1 -1
  305. package/lib/es6/types/Axis.d.js.map +1 -1
  306. package/lib/es6/types/Bar.d.js.map +1 -1
  307. package/lib/es6/types/Bubble.d.js.map +1 -1
  308. package/lib/es6/types/ClipPath.d.js.map +1 -1
  309. package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
  310. package/lib/es6/types/Donut.d.js.map +1 -1
  311. package/lib/es6/types/GroupBar.d.js.map +1 -1
  312. package/lib/es6/types/HorizontalBar.d.js.map +1 -1
  313. package/lib/es6/types/Hover.d.js.map +1 -1
  314. package/lib/es6/types/Line.d.js.map +1 -1
  315. package/lib/es6/types/Plot.d.js.map +1 -1
  316. package/lib/es6/types/Radar.d.js.map +1 -1
  317. package/lib/es6/types/Reference.d.js.map +1 -1
  318. package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
  319. package/lib/es6/types/ScatterPlot.d.js.map +1 -1
  320. package/lib/es6/types/StackBar.d.js.map +1 -1
  321. package/lib/es6/types/StackedArea.d.js.map +1 -1
  322. package/lib/es6/types/Tooltip.d.js.map +1 -1
  323. package/lib/es6/types/Venn.d.js.map +1 -1
  324. package/lib/es6/types/context.d.js.map +1 -1
  325. package/lib/es6/types/index.d.js +1 -0
  326. package/lib/es6/types/index.d.js.map +1 -1
  327. package/lib/es6/utils.js +11 -13
  328. package/lib/es6/utils.js.map +1 -1
  329. package/lib/esm/AnimatedClipPath.mjs +10 -7
  330. package/lib/esm/Area.mjs +30 -25
  331. package/lib/esm/Axis.mjs +67 -67
  332. package/lib/esm/Bar.mjs +31 -28
  333. package/lib/esm/Bubble.mjs +28 -26
  334. package/lib/esm/CompactHorizontalBar.mjs +61 -60
  335. package/lib/esm/Donut.mjs +50 -49
  336. package/lib/esm/Dots.mjs +32 -27
  337. package/lib/esm/GroupBar.mjs +14 -11
  338. package/lib/esm/HorizontalBar.mjs +30 -27
  339. package/lib/esm/Hover.mjs +28 -30
  340. package/lib/esm/Line.mjs +23 -20
  341. package/lib/esm/Pattern.mjs +1 -1
  342. package/lib/esm/Plot.mjs +27 -25
  343. package/lib/esm/Radar.mjs +90 -94
  344. package/lib/esm/RadialTree.mjs +86 -86
  345. package/lib/esm/Reference.mjs +34 -31
  346. package/lib/esm/ResponsiveContainer.mjs +19 -17
  347. package/lib/esm/ScatterPlot.mjs +26 -24
  348. package/lib/esm/StackBar.mjs +17 -17
  349. package/lib/esm/StackedArea.mjs +13 -11
  350. package/lib/esm/Tooltip.mjs +35 -33
  351. package/lib/esm/Venn.mjs +29 -27
  352. package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
  353. package/lib/esm/a11y/PlotA11yModule.mjs +8 -8
  354. package/lib/esm/a11y/PlotA11yView.mjs +9 -9
  355. package/lib/esm/a11y/focus.mjs +3 -3
  356. package/lib/esm/a11y/hints.mjs +1 -1
  357. package/lib/esm/a11y/insights.mjs +77 -78
  358. package/lib/esm/a11y/intl.mjs +1 -1
  359. package/lib/esm/a11y/locale.mjs +2 -2
  360. package/lib/esm/a11y/serialize.mjs +12 -12
  361. package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +2 -2
  362. package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
  363. package/lib/esm/component/Chart/AbstractChart.mjs +38 -37
  364. package/lib/esm/component/Chart/AreaChart.mjs +19 -15
  365. package/lib/esm/component/Chart/BarChart.mjs +20 -17
  366. package/lib/esm/component/Chart/BubbleChart.mjs +16 -13
  367. package/lib/esm/component/Chart/CigaretteChart.mjs +24 -17
  368. package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +18 -10
  369. package/lib/esm/component/Chart/DonutChart.mjs +13 -10
  370. package/lib/esm/component/Chart/HistogramChart.mjs +18 -12
  371. package/lib/esm/component/Chart/LineChart.mjs +18 -12
  372. package/lib/esm/component/Chart/RadarChart.mjs +19 -12
  373. package/lib/esm/component/Chart/ScatterPlotChart.mjs +14 -11
  374. package/lib/esm/component/Chart/VennChart.mjs +12 -9
  375. package/lib/esm/component/Chart/index.mjs +6 -6
  376. package/lib/esm/component/ChartLegend/BaseLegend.mjs +42 -17
  377. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +21 -18
  378. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +67 -56
  379. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +23 -20
  380. package/lib/esm/component/Cigarette/Cigarette.mjs +18 -16
  381. package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +20 -19
  382. package/lib/esm/component/SvgElement.mjs +14 -0
  383. package/lib/esm/createElement.mjs +5 -5
  384. package/lib/esm/index.mjs +2 -0
  385. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  386. package/lib/esm/utils.mjs +8 -8
  387. package/lib/types/Area.d.ts +7 -6
  388. package/lib/types/Axis.d.ts +4 -3
  389. package/lib/types/Bar.d.ts +7 -6
  390. package/lib/types/Bubble.d.ts +6 -5
  391. package/lib/types/ClipPath.d.ts +4 -3
  392. package/lib/types/CompactHorizontalBar.d.ts +7 -8
  393. package/lib/types/Donut.d.ts +6 -5
  394. package/lib/types/GroupBar.d.ts +6 -6
  395. package/lib/types/HorizontalBar.d.ts +7 -6
  396. package/lib/types/Hover.d.ts +8 -8
  397. package/lib/types/Line.d.ts +7 -6
  398. package/lib/types/Pattern.d.ts +51 -51
  399. package/lib/types/Plot.d.ts +10 -9
  400. package/lib/types/Radar.d.ts +8 -7
  401. package/lib/types/RadialTree.d.ts +9 -54
  402. package/lib/types/Reference.d.ts +5 -4
  403. package/lib/types/ResponsiveContainer.d.ts +5 -4
  404. package/lib/types/ScatterPlot.d.ts +6 -5
  405. package/lib/types/StackBar.d.ts +7 -6
  406. package/lib/types/StackedArea.d.ts +6 -5
  407. package/lib/types/Tooltip.d.ts +14 -12
  408. package/lib/types/Venn.d.ts +7 -6
  409. package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
  410. package/lib/types/a11y/PlotA11yModule.d.ts +1 -1
  411. package/lib/types/a11y/hints.d.ts +5 -5
  412. package/lib/types/a11y/insights.d.ts +1 -1
  413. package/lib/types/a11y/intl.d.ts +1 -1
  414. package/lib/types/a11y/serialize.d.ts +7 -7
  415. package/lib/types/a11y/summarize.d.ts +2 -2
  416. package/lib/types/component/Chart/AbstractChart.d.ts +6 -6
  417. package/lib/types/component/Chart/AbstractChart.type.d.ts +27 -27
  418. package/lib/types/component/Chart/AreaChart.d.ts +1 -1
  419. package/lib/types/component/Chart/AreaChart.type.d.ts +6 -6
  420. package/lib/types/component/Chart/BarChart.d.ts +1 -1
  421. package/lib/types/component/Chart/BarChart.type.d.ts +6 -6
  422. package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
  423. package/lib/types/component/Chart/BubbleChart.type.d.ts +4 -4
  424. package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
  425. package/lib/types/component/Chart/CigaretteChart.type.d.ts +4 -4
  426. package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
  427. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +5 -5
  428. package/lib/types/component/Chart/DonutChart.d.ts +1 -1
  429. package/lib/types/component/Chart/DonutChart.type.d.ts +5 -5
  430. package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
  431. package/lib/types/component/Chart/HistogramChart.type.d.ts +4 -4
  432. package/lib/types/component/Chart/LineChart.d.ts +1 -1
  433. package/lib/types/component/Chart/LineChart.type.d.ts +7 -7
  434. package/lib/types/component/Chart/RadarChart.d.ts +1 -1
  435. package/lib/types/component/Chart/RadarChart.type.d.ts +4 -4
  436. package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
  437. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +5 -5
  438. package/lib/types/component/Chart/VennChart.d.ts +1 -1
  439. package/lib/types/component/Chart/VennChart.type.d.ts +4 -4
  440. package/lib/types/component/ChartLegend/BaseLegend.d.ts +6 -4
  441. package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +4 -5
  442. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
  443. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -5
  444. package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
  445. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +17 -10
  446. package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
  447. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
  448. package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
  449. package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +3 -4
  450. package/lib/types/component/SvgElement.d.ts +10 -0
  451. package/lib/types/index.d.ts +2 -1
  452. package/lib/types/utils.d.ts +6 -6
  453. package/package.json +22 -23
@@ -1,36 +1,38 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
3
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
5
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
4
6
  import _inherits from "@babel/runtime/helpers/esm/inherits";
5
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
7
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
7
- import React from "react";
8
8
  import { sstyled, Component } from "@semcore/core";
9
+ import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
9
10
  import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
11
+ import React from "react";
10
12
  import createElement from "../../createElement.mjs";
11
- import { roundedPath } from "../../utils.mjs";
12
13
  import { PatternFill } from "../../Pattern.mjs";
13
- import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
14
+ import { roundedPath } from "../../utils.mjs";
15
+ function _callSuper(t, o, e) {
16
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
17
+ }
14
18
  var CigaretteBarRoot = /* @__PURE__ */ function(_Component) {
15
- _inherits(CigaretteBarRoot2, _Component);
16
- var _super = _createSuper(CigaretteBarRoot2);
17
19
  function CigaretteBarRoot2() {
18
20
  var _this;
19
21
  _classCallCheck(this, CigaretteBarRoot2);
20
22
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
21
23
  args[_key] = arguments[_key];
22
24
  }
23
- _this = _super.call.apply(_super, [this].concat(args));
24
- _defineProperty(_assertThisInitialized(_this), "refElement", /* @__PURE__ */ React.createRef());
25
- _defineProperty(_assertThisInitialized(_this), "handleMouseMove", function() {
25
+ _this = _callSuper(this, CigaretteBarRoot2, [].concat(args));
26
+ _defineProperty(_this, "refElement", /* @__PURE__ */ React.createRef());
27
+ _defineProperty(_this, "handleMouseMove", function() {
26
28
  _this.handlers.hovered(true);
27
29
  _this.setCursor("pointer");
28
30
  });
29
- _defineProperty(_assertThisInitialized(_this), "handleMouseLeave", function() {
31
+ _defineProperty(_this, "handleMouseLeave", function() {
30
32
  _this.handlers.hovered(false);
31
33
  _this.setCursor("auto");
32
34
  });
33
- _defineProperty(_assertThisInitialized(_this), "handleClick", function(e) {
35
+ _defineProperty(_this, "handleClick", function(e) {
34
36
  var _this$asProps = _this.asProps, onClick = _this$asProps.onClick, dataKey = _this$asProps.dataKey;
35
37
  if (onClick && e.currentTarget.tagName === "path") {
36
38
  e.stopPropagation();
@@ -38,16 +40,17 @@ var CigaretteBarRoot = /* @__PURE__ */ function(_Component) {
38
40
  return false;
39
41
  }
40
42
  });
41
- _defineProperty(_assertThisInitialized(_this), "setCursor", function(value) {
43
+ _defineProperty(_this, "setCursor", function(value) {
42
44
  var onClick = _this.asProps.onClick;
43
45
  if (onClick) {
44
46
  var _this$refElement$curr;
45
- (_this$refElement$curr = _this.refElement.current) === null || _this$refElement$curr === void 0 ? void 0 : _this$refElement$curr.style.setProperty("cursor", value);
47
+ (_this$refElement$curr = _this.refElement.current) === null || _this$refElement$curr === void 0 || _this$refElement$curr.style.setProperty("cursor", value);
46
48
  }
47
49
  });
48
50
  return _this;
49
51
  }
50
- _createClass(CigaretteBarRoot2, [{
52
+ _inherits(CigaretteBarRoot2, _Component);
53
+ return _createClass(CigaretteBarRoot2, [{
51
54
  key: "uncontrolledProps",
52
55
  value: function uncontrolledProps() {
53
56
  return {
@@ -122,7 +125,6 @@ var CigaretteBarRoot = /* @__PURE__ */ function(_Component) {
122
125
  })));
123
126
  }
124
127
  }]);
125
- return CigaretteBarRoot2;
126
128
  }(Component);
127
129
  _defineProperty(CigaretteBarRoot, "displayName", "Cigarette.BarItem");
128
130
  _defineProperty(CigaretteBarRoot, "enhance", [uniqueIDEnhancement()]);
@@ -2,29 +2,31 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/esm/createClass";
5
- import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
6
8
  import _inherits from "@babel/runtime/helpers/esm/inherits";
7
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
8
9
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
- import React from "react";
10
10
  import { Component } from "@semcore/core";
11
- import createElement from "../../createElement.mjs";
12
- import { scaleToBand, getChartDefaultColorName } from "../../utils.mjs";
13
- import Bar, { MIN_HEIGHT } from "../../Bar.mjs";
14
11
  import { scaleBand } from "d3-scale";
15
12
  import { stack } from "d3-shape";
13
+ import React from "react";
14
+ import Bar, { MIN_HEIGHT } from "../../Bar.mjs";
15
+ import createElement from "../../createElement.mjs";
16
+ import { scaleToBand, getChartDefaultColorName } from "../../utils.mjs";
17
+ function _callSuper(t, o, e) {
18
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
19
+ }
16
20
  var XY0 = Symbol("XY0");
17
21
  var StackGroupBarRoot = /* @__PURE__ */ function(_Component) {
18
- _inherits(StackGroupBarRoot2, _Component);
19
- var _super = _createSuper(StackGroupBarRoot2);
20
22
  function StackGroupBarRoot2(props) {
21
23
  var _this;
22
24
  _classCallCheck(this, StackGroupBarRoot2);
23
- _this = _super.call(this, props);
24
- _defineProperty(_assertThisInitialized(_this), "groupDomain", /* @__PURE__ */ new Set());
25
- _defineProperty(_assertThisInitialized(_this), "scaleGroup", scaleBand());
26
- _defineProperty(_assertThisInitialized(_this), "stacks", {});
27
- _defineProperty(_assertThisInitialized(_this), "offsetBars", []);
25
+ _this = _callSuper(this, StackGroupBarRoot2, [props]);
26
+ _defineProperty(_this, "groupDomain", /* @__PURE__ */ new Set());
27
+ _defineProperty(_this, "scaleGroup", scaleBand());
28
+ _defineProperty(_this, "stacks", {});
29
+ _defineProperty(_this, "offsetBars", []);
28
30
  var children = props.children;
29
31
  var groups = {};
30
32
  React.Children.toArray(children).forEach(function(child) {
@@ -43,7 +45,8 @@ var StackGroupBarRoot = /* @__PURE__ */ function(_Component) {
43
45
  });
44
46
  return _this;
45
47
  }
46
- _createClass(StackGroupBarRoot2, [{
48
+ _inherits(StackGroupBarRoot2, _Component);
49
+ return _createClass(StackGroupBarRoot2, [{
47
50
  key: "componentDidMount",
48
51
  value: function componentDidMount() {
49
52
  var scale = this.asProps.scale;
@@ -62,22 +65,21 @@ var StackGroupBarRoot = /* @__PURE__ */ function(_Component) {
62
65
  value: function getBarProps(_ref3, index) {
63
66
  var _this$offsetBars$seri, _this$scaleGroup$band, _this2 = this;
64
67
  var y = _ref3.y, group = _ref3.group, _ref3$hMin = _ref3.hMin, hMin = _ref3$hMin === void 0 ? MIN_HEIGHT : _ref3$hMin;
65
- var _this$asProps = this.asProps, x = _this$asProps.x, r = _this$asProps.r, scale = _this$asProps.scale, _this$asProps$maxBarS = _this$asProps.maxBarSize, maxBarSize = _this$asProps$maxBarS === void 0 ? Infinity : _this$asProps$maxBarS, patterns = _this$asProps.patterns;
68
+ var _this$asProps = this.asProps, x = _this$asProps.x, r = _this$asProps.r, scale = _this$asProps.scale, _this$asProps$maxBarS = _this$asProps.maxBarSize, maxBarSize = _this$asProps$maxBarS === void 0 ? Number.POSITIVE_INFINITY : _this$asProps$maxBarS, patterns = _this$asProps.patterns;
66
69
  var _ref4 = scale, _ref5 = _slicedToArray(_ref4, 2), yScale = _ref5[1];
67
70
  var allGroupSeries = this.getSeries(group);
68
71
  var seriesIndex = allGroupSeries.findIndex(function(s) {
69
72
  return s.key === y;
70
73
  });
71
74
  var series = allGroupSeries[seriesIndex] || [];
72
- var rBar = series.map(function(s, i) {
75
+ var rBar = series.map(function(_s, i) {
73
76
  return allGroupSeries.slice(seriesIndex + 1).some(function(bar) {
74
77
  return bar[i][0] !== bar[i][1];
75
78
  }) ? 0 : r;
76
79
  });
77
80
  this.offsetBars[seriesIndex] = (_this$offsetBars$seri = this.offsetBars[seriesIndex]) !== null && _this$offsetBars$seri !== void 0 ? _this$offsetBars$seri : [];
78
81
  var data = series.map(function(s) {
79
- var _objectSpread2;
80
- return _objectSpread(_objectSpread({}, s.data), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, y, s[1]), _defineProperty(_objectSpread2, XY0, s[0]), _objectSpread2));
82
+ return _objectSpread(_objectSpread({}, s.data), {}, _defineProperty(_defineProperty({}, y, s[1]), XY0, s[0]));
81
83
  });
82
84
  var bandWidth = (_this$scaleGroup$band = this.scaleGroup.bandwidth()) !== null && _this$scaleGroup$band !== void 0 ? _this$scaleGroup$band : 0;
83
85
  var width = Math.min(bandWidth, maxBarSize);
@@ -127,7 +129,6 @@ var StackGroupBarRoot = /* @__PURE__ */ function(_Component) {
127
129
  });
128
130
  }
129
131
  }]);
130
- return StackGroupBarRoot2;
131
132
  }(Component);
132
133
  _defineProperty(StackGroupBarRoot, "displayName", "StackGroupBar");
133
134
  _defineProperty(StackGroupBarRoot, "defaultProps", {
@@ -0,0 +1,14 @@
1
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
+ import propsForElement from "@semcore/core/lib/utils/propsForElement";
3
+ import React from "react";
4
+ var _excluded = ["tag"];
5
+ var SvgElement = function SvgElement2(_ref) {
6
+ var Tag = _ref.tag, props = _objectWithoutProperties(_ref, _excluded);
7
+ return (
8
+ // @ts-ignore
9
+ /* @__PURE__ */ React.createElement(Tag, propsForElement(props, Tag))
10
+ );
11
+ };
12
+ export {
13
+ SvgElement
14
+ };
@@ -1,13 +1,13 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
- import React from "react";
5
- import hoistNonReactStatics from "hoist-non-react-statics";
6
4
  import { createComponent, createBaseComponent, CONTEXT_COMPONENT } from "@semcore/core";
7
5
  import assignProps from "@semcore/core/lib/utils/assignProps";
8
- import { useForkRef } from "@semcore/core/lib/utils/ref";
9
- import propsForElement from "@semcore/core/lib/utils/propsForElement";
10
6
  import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
7
+ import propsForElement from "@semcore/core/lib/utils/propsForElement";
8
+ import { useForkRef } from "@semcore/core/lib/utils/ref";
9
+ import hoistNonReactStatics from "hoist-non-react-statics";
10
+ import React from "react";
11
11
  import Plot from "./Plot.mjs";
12
12
  var _excluded = ["render", "childrenPosition", "x", "y"], _excluded2 = ["forwardRef", "children", "Children", "x", "y"], _excluded3 = ["$rootProps"];
13
13
  var EXCLUDE_PROPS = ["data", "scale"];
@@ -60,7 +60,7 @@ function elementEnhancement() {
60
60
  init: function init() {
61
61
  this.Element = createElementRender();
62
62
  },
63
- asProps: function asProps(_ref2, WrapperComponent, isFunction) {
63
+ asProps: function asProps(_ref2, _WrapperComponent, isFunction) {
64
64
  var $rootProps = _ref2.$rootProps, props = _objectWithoutProperties(_ref2, _excluded3);
65
65
  if (isFunction) {
66
66
  return _objectSpread(_objectSpread(_objectSpread({}, $rootProps), props), {}, {
package/lib/esm/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { default as default2 } from "./Plot.mjs";
2
2
  import { default as default3 } from "./component/Chart/index.mjs";
3
3
  import { default as default4 } from "./component/StackGroupBar/StackGroupBar.mjs";
4
+ import { SvgElement } from "./component/SvgElement.mjs";
4
5
  import { XAxis, YAxis } from "./Axis.mjs";
5
6
  import { default as default5 } from "./Line.mjs";
6
7
  import { default as default6 } from "./Bar.mjs";
@@ -54,6 +55,7 @@ export {
54
55
  default10 as StackBar,
55
56
  default4 as StackGroupBar,
56
57
  default12 as StackedArea,
58
+ SvgElement,
57
59
  default19 as Tooltip,
58
60
  default17 as Venn,
59
61
  XAxis,
@@ -5,12 +5,12 @@ import it from "./it.json.mjs";
5
5
  import ja from "./ja.json.mjs";
6
6
  import ko from "./ko.json.mjs";
7
7
  import nl from "./nl.json.mjs";
8
+ import pl from "./pl.json.mjs";
8
9
  import pt from "./pt.json.mjs";
10
+ import sv from "./sv.json.mjs";
9
11
  import tr from "./tr.json.mjs";
10
12
  import vi from "./vi.json.mjs";
11
13
  import zh from "./zh.json.mjs";
12
- import pl from "./pl.json.mjs";
13
- import sv from "./sv.json.mjs";
14
14
  var localizedMessages = {
15
15
  en,
16
16
  es,
package/lib/esm/utils.mjs CHANGED
@@ -5,7 +5,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
5
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
6
  import EventEmitter from "@semcore/core/lib/utils/eventEmitter";
7
7
  import { extent, bisector } from "d3-array";
8
- import { scaleSqrt, scaleQuantize, scaleBand } from "d3-scale";
8
+ import { scaleSqrt, scaleBand, scaleQuantize } from "d3-scale";
9
9
  var eventToPoint = function eventToPoint2(event, svgRoot) {
10
10
  var node = event.currentTarget || event.target;
11
11
  var rect = svgRoot.getBoundingClientRect();
@@ -80,7 +80,7 @@ var getIndexFromData = function getIndexFromData2(data, scale, key, value) {
80
80
  return index >= 0 ? index : null;
81
81
  } else if ("invert" in scale && typeof scale.invert === "function" && !Array.isArray(data)) {
82
82
  var keys = Object.keys(data);
83
- var domain = keys.map(function(key2, index2) {
83
+ var domain = keys.map(function(_key, index2) {
84
84
  return keys.slice(0, index2).reduce(function(acc, item) {
85
85
  if (data[item] !== interpolateValue) {
86
86
  acc = acc + data[item];
@@ -88,22 +88,22 @@ var getIndexFromData = function getIndexFromData2(data, scale, key, value) {
88
88
  return acc;
89
89
  }, 0);
90
90
  });
91
- var _key = null;
91
+ var _key2 = null;
92
92
  var lastKeyIndex = keys.length - 1;
93
93
  if (value > domain[lastKeyIndex]) {
94
- _key = keys[lastKeyIndex];
94
+ _key2 = keys[lastKeyIndex];
95
95
  } else {
96
96
  for (var i = 0; i < lastKeyIndex; i++) {
97
97
  if (i === 0 && value < domain[i]) {
98
98
  break;
99
99
  }
100
100
  if (value > domain[i] && value < domain[i + 1]) {
101
- _key = keys[i];
101
+ _key2 = keys[i];
102
102
  break;
103
103
  }
104
104
  }
105
105
  }
106
- return _key;
106
+ return _key2;
107
107
  } else {
108
108
  console.warn("[d3-chart/utils/getIndexFromData] encountered incompatible scale type");
109
109
  return null;
@@ -156,8 +156,8 @@ var scaleToBand = function scaleToBand2(scale) {
156
156
  var memoize = function memoize2(func) {
157
157
  var results = {};
158
158
  return function() {
159
- for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
160
- args[_key2] = arguments[_key2];
159
+ for (var _len = arguments.length, args = new Array(_len), _key3 = 0; _key3 < _len; _key3++) {
160
+ args[_key3] = arguments[_key3];
161
161
  }
162
162
  var argsKey = args.join(",");
163
163
  if (!results[argsKey]) {
@@ -1,15 +1,16 @@
1
- import { UnknownProperties } from '@semcore/core';
2
- import { Context } from './context';
3
- import { CurveFactory } from 'd3-shape';
4
- import { IntergalacticD3Component } from './Plot';
5
- import { PatternsConfig } from './Pattern';
1
+ import type { UnknownProperties } from '@semcore/core';
2
+ import type { CurveFactory } from 'd3-shape';
3
+
4
+ import type { Context } from './context';
5
+ import type { PatternsConfig } from './Pattern';
6
+ import type { IntergalacticD3Component } from './Plot';
6
7
 
7
8
  /** @deprecated */
8
9
  export interface IAreaProps extends AreaProps, UnknownProperties {}
9
10
  export type AreaProps = Context & {
10
11
  /** Field name from `data` array item for the XAxis */
11
12
  x?: string;
12
- /** Field name from `data` array item for the YAxis*/
13
+ /** Field name from `data` array item for the YAxis */
13
14
  y?: string;
14
15
  /** Line color */
15
16
  color?: string;
@@ -1,6 +1,7 @@
1
- import { IntergalacticD3Component } from './Plot';
2
- import { Context } from './context';
3
- import { UnknownProperties } from '@semcore/core';
1
+ import type { UnknownProperties } from '@semcore/core';
2
+
3
+ import type { Context } from './context';
4
+ import type { IntergalacticD3Component } from './Plot';
4
5
 
5
6
  /** @deprecated */
6
7
  export interface IXAxisProps extends XAxisProps, UnknownProperties {}
@@ -1,9 +1,10 @@
1
- import React from 'react';
2
- import { UnknownProperties } from '@semcore/core';
3
- import { Context } from './context';
4
- import { IntergalacticD3Component } from './Plot';
5
- import { ScaleBand, ScaleLinear } from 'd3-scale';
6
- import { PatternsConfig } from './Pattern';
1
+ import type { UnknownProperties } from '@semcore/core';
2
+ import type { ScaleBand, ScaleLinear } from 'd3-scale';
3
+ import type React from 'react';
4
+
5
+ import type { Context } from './context';
6
+ import type { PatternsConfig } from './Pattern';
7
+ import type { IntergalacticD3Component } from './Plot';
7
8
 
8
9
  /** @deprecated */
9
10
  export interface IBarProps extends BarProps, UnknownProperties {}
@@ -1,8 +1,9 @@
1
- import { Intergalactic, UnknownProperties } from '@semcore/core';
2
- import { Context } from './context';
3
- import { TooltipType } from './Tooltip';
4
- import { IntergalacticD3Component } from './Plot';
5
- import { PatternsConfig } from './Pattern';
1
+ import type { Intergalactic, UnknownProperties } from '@semcore/core';
2
+
3
+ import type { Context } from './context';
4
+ import type { PatternsConfig } from './Pattern';
5
+ import type { IntergalacticD3Component } from './Plot';
6
+ import type { TooltipType } from './Tooltip';
6
7
 
7
8
  /** @deprecated */
8
9
  export interface IBubbleProps extends BubbleProps, UnknownProperties {}
@@ -1,6 +1,7 @@
1
- import React from 'react';
2
- import { UnknownProperties } from '@semcore/core';
3
- import { IntergalacticD3Component } from './Plot';
1
+ import type { UnknownProperties } from '@semcore/core';
2
+ import type React from 'react';
3
+
4
+ import type { IntergalacticD3Component } from './Plot';
4
5
 
5
6
  /** @deprecated */
6
7
  export interface IClipPath extends ClipPath, UnknownProperties {}
@@ -1,11 +1,10 @@
1
- import React from 'react';
2
- import { UnknownProperties } from '@semcore/core';
3
- import { Context } from './context';
4
- import { BackgroundProps } from './Bar';
5
- import { IntergalacticD3Component } from './Plot';
6
- import { PatternsConfig } from './Pattern';
7
- import { BoxProps } from '@semcore/flex-box';
8
- import { TooltipType } from './Tooltip';
1
+ import type { BoxProps } from '@semcore/flex-box';
2
+
3
+ import type { BackgroundProps } from './Bar';
4
+ import type { Context } from './context';
5
+ import type { PatternsConfig } from './Pattern';
6
+ import type { IntergalacticD3Component } from './Plot';
7
+ import type { TooltipType } from './Tooltip';
9
8
 
10
9
  export type CompactHorizontalBarProps = Context & {
11
10
  /** Field name from `data` array item for the XAxis */
@@ -1,8 +1,9 @@
1
- import { UnknownProperties } from '@semcore/core';
2
- import { Context } from './context';
3
- import { TooltipType } from './Tooltip';
4
- import { IntergalacticD3Component } from './Plot';
5
- import { PatternsConfig } from './Pattern';
1
+ import type { UnknownProperties } from '@semcore/core';
2
+
3
+ import type { Context } from './context';
4
+ import type { PatternsConfig } from './Pattern';
5
+ import type { IntergalacticD3Component } from './Plot';
6
+ import type { TooltipType } from './Tooltip';
6
7
 
7
8
  /** @deprecated */
8
9
  export interface IDonutProps extends DonutProps, UnknownProperties {}
@@ -1,9 +1,9 @@
1
- import { UnknownProperties } from '@semcore/core';
2
- import { BarContext, BarProps } from './Bar';
3
- import { HorizontalBarProps } from './HorizontalBar';
4
- import { Context } from './context';
5
- import { IntergalacticD3Component } from './Plot';
6
- import { PatternsConfig } from './Pattern';
1
+ import type { UnknownProperties } from '@semcore/core';
2
+
3
+ import type { BarContext, BarProps } from './Bar';
4
+ import type { Context } from './context';
5
+ import type { HorizontalBarProps } from './HorizontalBar';
6
+ import type { IntergalacticD3Component } from './Plot';
7
7
 
8
8
  /** @deprecated */
9
9
  export interface IGroupBarProps extends GroupBarProps, UnknownProperties {}
@@ -1,9 +1,10 @@
1
- import React from 'react';
2
- import { UnknownProperties } from '@semcore/core';
3
- import { Context } from './context';
4
- import { BarContext, BackgroundProps } from './Bar';
5
- import { IntergalacticD3Component } from './Plot';
6
- import { PatternsConfig } from './Pattern';
1
+ import type { UnknownProperties } from '@semcore/core';
2
+ import type React from 'react';
3
+
4
+ import type { BarContext, BackgroundProps } from './Bar';
5
+ import type { Context } from './context';
6
+ import type { PatternsConfig } from './Pattern';
7
+ import type { IntergalacticD3Component } from './Plot';
7
8
 
8
9
  /** @deprecated */
9
10
  export interface IHorizontalBarProps extends HorizontalBarProps, UnknownProperties {}
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
- import { UnknownProperties } from '@semcore/core';
3
- import { Context } from './context';
4
- import { ReturnEl } from '@semcore/core';
5
- import { TooltipTypeBase } from './Tooltip';
6
- import { BoxProps } from '@semcore/flex-box';
7
- import { IntergalacticD3Component } from './Plot';
1
+ import type { UnknownProperties, ReturnEl } from '@semcore/core';
2
+ import type { BoxProps } from '@semcore/flex-box';
3
+ import type React from 'react';
4
+
5
+ import type { Context } from './context';
6
+ import type { IntergalacticD3Component } from './Plot';
7
+ import type { TooltipTypeBase } from './Tooltip';
8
8
 
9
9
  /** @deprecated */
10
10
  export interface IHoverProps extends HoverProps, UnknownProperties {}
@@ -33,7 +33,7 @@ type HoverTooltip = (<X, Y>(
33
33
  hideHoverLine?: boolean | ((xIndex: number | null, yIndex: number | null) => boolean);
34
34
  } & Omit<BoxProps, 'children'>,
35
35
  ) => ReturnEl) &
36
- TooltipTypeBase;
36
+ TooltipTypeBase;
37
37
 
38
38
  type HoverContext = {
39
39
  /** Index in `data` array of the current item */
@@ -1,9 +1,10 @@
1
- import { UnknownProperties } from '@semcore/core';
2
- import { Context } from './context';
3
- import { curveCardinal, CurveFactory } from 'd3-shape';
4
- import { FadeInOutProps } from '@semcore/animation';
5
- import { IntergalacticD3Component } from './Plot';
6
- import { PatternsConfig } from './Pattern';
1
+ import type { FadeInOutProps } from '@semcore/animation';
2
+ import type { UnknownProperties } from '@semcore/core';
3
+ import type { CurveFactory } from 'd3-shape';
4
+
5
+ import type { Context } from './context';
6
+ import type { PatternsConfig } from './Pattern';
7
+ import type { IntergalacticD3Component } from './Plot';
7
8
 
8
9
  /** @deprecated */
9
10
  export interface ILineProps extends LineProps, UnknownProperties {}