@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
@@ -4,51 +4,54 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
5
5
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
6
6
  import _createClass from "@babel/runtime/helpers/createClass";
7
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
7
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/isNativeReflectConstruct";
9
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
10
  import _inherits from "@babel/runtime/helpers/inherits";
9
- import _createSuper from "@babel/runtime/helpers/createSuper";
10
11
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
11
12
  import { sstyled as _sstyled } from "@semcore/core";
12
13
  var _excluded = ["data"];
13
- import React from 'react';
14
- import { transition } from 'd3-transition';
14
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
15
15
  import { Component, sstyled } from '@semcore/core';
16
- import uniqueIDEnhancement from '@semcore/core/lib/utils/uniqueID';
17
16
  import assignProps from '@semcore/core/lib/utils/assignProps';
18
- import getOriginChildren from '@semcore/core/lib/utils/getOriginChildren';
19
17
  import canUseDOM from '@semcore/core/lib/utils/canUseDOM';
18
+ import getOriginChildren from '@semcore/core/lib/utils/getOriginChildren';
19
+ import uniqueIDEnhancement from '@semcore/core/lib/utils/uniqueID';
20
+ import { transition } from 'd3-transition';
21
+ import React from 'react';
20
22
  import createElement from './createElement';
21
- import { getChartDefaultColorName, measureText } from './utils';
22
23
  import { PatternSymbol, getPatternSymbolSize } from './Pattern';
23
24
  /*!__reshadow-styles__:"./style/radial-tree.shadow.css"*/
24
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SRadian_1nmaa_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1nmaa_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1nmaa_gg_.__stroke_1nmaa_gg_{stroke:var(--stroke_1nmaa)}.___SLine_1nmaa_gg_.__transparent_1nmaa_gg_{opacity:.3}.___SCap_1nmaa_gg_{transition:r .1s}.___SCap_1nmaa_gg_.__pattern_1nmaa_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_1nmaa_gg_.__transparent_1nmaa_gg_,.___SIcon_1nmaa_gg_.__transparent_1nmaa_gg_,.___SLabel_1nmaa_gg_.__transparent_1nmaa_gg_{opacity:.3}.___SLabel_1nmaa_gg_{fill:var(--color_1nmaa)}@media (hover:hover){.___SRadian_1nmaa_gg_:hover .___SLabel_1nmaa_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1nmaa_gg_{transition:none}}", /*__inner_css_end__*/"1nmaa_gg_"),
25
+ var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SRadian_1k51n_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1k51n_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1k51n_gg_.__stroke_1k51n_gg_{stroke:var(--stroke_1k51n)}.___SLine_1k51n_gg_.__transparent_1k51n_gg_{opacity:.3}.___SCap_1k51n_gg_{transition:r .1s}.___SCap_1k51n_gg_.__pattern_1k51n_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_1k51n_gg_.__transparent_1k51n_gg_,.___SIcon_1k51n_gg_.__transparent_1k51n_gg_,.___SLabel_1k51n_gg_.__transparent_1k51n_gg_{opacity:.3}.___SLabel_1k51n_gg_{fill:var(--color_1k51n)}@media (hover:hover){.___SRadian_1k51n_gg_:hover .___SLabel_1k51n_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1k51n_gg_{transition:none}}", /*__inner_css_end__*/"1k51n_gg_"),
25
26
  /*__reshadow_css_end__*/
26
27
  {
27
- "__SRadian": "___SRadian_1nmaa_gg_",
28
- "__SLine": "___SLine_1nmaa_gg_",
29
- "_stroke": "__stroke_1nmaa_gg_",
30
- "--stroke": "--stroke_1nmaa",
31
- "_transparent": "__transparent_1nmaa_gg_",
32
- "__SCap": "___SCap_1nmaa_gg_",
33
- "_pattern": "__pattern_1nmaa_gg_",
34
- "__SIcon": "___SIcon_1nmaa_gg_",
35
- "__SLabel": "___SLabel_1nmaa_gg_",
36
- "--color": "--color_1nmaa",
37
- "__SLineCap": "___SLineCap_1nmaa_gg_"
28
+ "__SRadian": "___SRadian_1k51n_gg_",
29
+ "__SLine": "___SLine_1k51n_gg_",
30
+ "_stroke": "__stroke_1k51n_gg_",
31
+ "--stroke": "--stroke_1k51n",
32
+ "_transparent": "__transparent_1k51n_gg_",
33
+ "__SCap": "___SCap_1k51n_gg_",
34
+ "_pattern": "__pattern_1k51n_gg_",
35
+ "__SIcon": "___SIcon_1k51n_gg_",
36
+ "__SLabel": "___SLabel_1k51n_gg_",
37
+ "--color": "--color_1k51n",
38
+ "__SLineCap": "___SLineCap_1k51n_gg_"
38
39
  });
40
+ import { getChartDefaultColorName, measureText } from './utils';
39
41
  var baseAngle = -Math.PI / 2; // The top vertical line
42
+
43
+ /** @deprecated */
40
44
  var RadialTreeBase = /*#__PURE__*/function (_Component) {
41
- _inherits(RadialTreeBase, _Component);
42
- var _super = _createSuper(RadialTreeBase);
43
45
  function RadialTreeBase(props) {
44
46
  var _this;
45
47
  _classCallCheck(this, RadialTreeBase);
46
- _this = _super.call(this, props);
47
- _defineProperty(_assertThisInitialized(_this), "Element", void 0);
48
- _this.handleRadianClick = _this.handleRadianClick.bind(_assertThisInitialized(_this));
48
+ _this = _callSuper(this, RadialTreeBase, [props]);
49
+ _defineProperty(_this, "Element", void 0);
50
+ _this.handleRadianClick = _this.handleRadianClick.bind(_this);
49
51
  return _this;
50
52
  }
51
- _createClass(RadialTreeBase, [{
53
+ _inherits(RadialTreeBase, _Component);
54
+ return _createClass(RadialTreeBase, [{
52
55
  key: "uncontrolledProps",
53
56
  value: function uncontrolledProps() {
54
57
  return {
@@ -65,7 +68,7 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
65
68
  if (!canUseDOM()) return;
66
69
  var preferReduceMotion = (_window$matchMedia = window.matchMedia('(prefers-reduced-motion: reduce)')) === null || _window$matchMedia === void 0 ? void 0 : _window$matchMedia.matches;
67
70
 
68
- /** using `!(>)` instead of `<=` to get true on NaN and non numbers stuff */
71
+ /** using `!(>)` instead of `<=` to get true on Number.NaN and non numbers stuff */
69
72
  if (!(duration > 0)) return;
70
73
  if (preferReduceMotion) return;
71
74
  var circlesAnimation = transition().selection().selectAll("[data-radial-animation=".concat(uid, "-cap-circle]")).interrupt();
@@ -78,13 +81,13 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
78
81
  var labelsNodes = linesAnimation.nodes();
79
82
  if (circlesNodes.length > 0) {
80
83
  var attrs = circlesNodes.map(function (node) {
81
- var _lineNode$x, _lineNode$x$baseVal, _lineNode$y, _lineNode$y$baseVal;
82
- var radianIndex = parseInt(node.dataset.radianIndex, 10);
84
+ var _lineNode$x, _lineNode$y;
85
+ var radianIndex = Number.parseInt(node.dataset.radianIndex, 10);
83
86
  var lineNode = linesNodes[radianIndex];
84
87
  return {
85
88
  from: {
86
- cx: (_lineNode$x = lineNode.x1) === null || _lineNode$x === void 0 ? void 0 : (_lineNode$x$baseVal = _lineNode$x.baseVal) === null || _lineNode$x$baseVal === void 0 ? void 0 : _lineNode$x$baseVal.value,
87
- cy: (_lineNode$y = lineNode.y1) === null || _lineNode$y === void 0 ? void 0 : (_lineNode$y$baseVal = _lineNode$y.baseVal) === null || _lineNode$y$baseVal === void 0 ? void 0 : _lineNode$y$baseVal.value
89
+ cx: (_lineNode$x = lineNode.x1) === null || _lineNode$x === void 0 || (_lineNode$x = _lineNode$x.baseVal) === null || _lineNode$x === void 0 ? void 0 : _lineNode$x.value,
90
+ cy: (_lineNode$y = lineNode.y1) === null || _lineNode$y === void 0 || (_lineNode$y = _lineNode$y.baseVal) === null || _lineNode$y === void 0 ? void 0 : _lineNode$y.value
88
91
  },
89
92
  to: {
90
93
  cx: node.dataset['cx'],
@@ -98,25 +101,29 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
98
101
  }).attr('cy', function (_, index) {
99
102
  var _attrs$index$from2;
100
103
  return (_attrs$index$from2 = attrs[index].from) === null || _attrs$index$from2 === void 0 ? void 0 : _attrs$index$from2.cy;
101
- }).transition().duration(duration).attr('opacity', 1).attr('cx', function (_, index) {
104
+ }).transition().duration(duration).attr('opacity', 1)
105
+ // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
106
+ .attr('cx', function (_, index) {
102
107
  var _attrs$index$to;
103
108
  return (_attrs$index$to = attrs[index].to) === null || _attrs$index$to === void 0 ? void 0 : _attrs$index$to.cx;
104
- }).attr('cy', function (_, index) {
109
+ })
110
+ // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
111
+ .attr('cy', function (_, index) {
105
112
  var _attrs$index$to2;
106
113
  return (_attrs$index$to2 = attrs[index].to) === null || _attrs$index$to2 === void 0 ? void 0 : _attrs$index$to2.cy;
107
114
  });
108
115
  }
109
116
  if (iconsNodes.length > 0) {
110
117
  var _attrs = iconsNodes.map(function (node) {
111
- var _node$width, _node$width$baseVal, _node$height, _node$height$baseVal, _lineNode$x2, _lineNode$x2$baseVal, _lineNode$y2, _lineNode$y2$baseVal;
112
- var width = (_node$width = node.width) === null || _node$width === void 0 ? void 0 : (_node$width$baseVal = _node$width.baseVal) === null || _node$width$baseVal === void 0 ? void 0 : _node$width$baseVal.value;
113
- var height = (_node$height = node.height) === null || _node$height === void 0 ? void 0 : (_node$height$baseVal = _node$height.baseVal) === null || _node$height$baseVal === void 0 ? void 0 : _node$height$baseVal.value;
114
- var radianIndex = parseInt(node.dataset.radianIndex, 10);
118
+ var _node$width, _node$height, _lineNode$x2, _lineNode$y2;
119
+ var width = (_node$width = node.width) === null || _node$width === void 0 || (_node$width = _node$width.baseVal) === null || _node$width === void 0 ? void 0 : _node$width.value;
120
+ var height = (_node$height = node.height) === null || _node$height === void 0 || (_node$height = _node$height.baseVal) === null || _node$height === void 0 ? void 0 : _node$height.value;
121
+ var radianIndex = Number.parseInt(node.dataset.radianIndex, 10);
115
122
  var lineNode = linesNodes[radianIndex];
116
123
  return {
117
124
  from: {
118
- x: ((_lineNode$x2 = lineNode.x1) === null || _lineNode$x2 === void 0 ? void 0 : (_lineNode$x2$baseVal = _lineNode$x2.baseVal) === null || _lineNode$x2$baseVal === void 0 ? void 0 : _lineNode$x2$baseVal.value) - width / 2,
119
- y: ((_lineNode$y2 = lineNode.y1) === null || _lineNode$y2 === void 0 ? void 0 : (_lineNode$y2$baseVal = _lineNode$y2.baseVal) === null || _lineNode$y2$baseVal === void 0 ? void 0 : _lineNode$y2$baseVal.value) - height / 2
125
+ x: ((_lineNode$x2 = lineNode.x1) === null || _lineNode$x2 === void 0 || (_lineNode$x2 = _lineNode$x2.baseVal) === null || _lineNode$x2 === void 0 ? void 0 : _lineNode$x2.value) - width / 2,
126
+ y: ((_lineNode$y2 = lineNode.y1) === null || _lineNode$y2 === void 0 || (_lineNode$y2 = _lineNode$y2.baseVal) === null || _lineNode$y2 === void 0 ? void 0 : _lineNode$y2.value) - height / 2
120
127
  },
121
128
  to: {
122
129
  x: node.dataset['x'],
@@ -124,27 +131,35 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
124
131
  }
125
132
  };
126
133
  });
127
- iconsAnimation.attr('opacity', 0).attr('x', function (_, index) {
134
+ iconsAnimation.attr('opacity', 0)
135
+ // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
136
+ .attr('x', function (_, index) {
128
137
  var _attrs$index$from3;
129
138
  return (_attrs$index$from3 = _attrs[index].from) === null || _attrs$index$from3 === void 0 ? void 0 : _attrs$index$from3.x;
130
- }).attr('y', function (_, index) {
139
+ })
140
+ // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
141
+ .attr('y', function (_, index) {
131
142
  var _attrs$index$from4;
132
143
  return (_attrs$index$from4 = _attrs[index].from) === null || _attrs$index$from4 === void 0 ? void 0 : _attrs$index$from4.y;
133
- }).transition().duration(duration).attr('opacity', 1).attr('x', function (_, index) {
144
+ }).transition().duration(duration).attr('opacity', 1)
145
+ // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
146
+ .attr('x', function (_, index) {
134
147
  var _attrs$index$to3;
135
148
  return (_attrs$index$to3 = _attrs[index].to) === null || _attrs$index$to3 === void 0 ? void 0 : _attrs$index$to3.x;
136
- }).attr('y', function (_, index) {
149
+ })
150
+ // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
151
+ .attr('y', function (_, index) {
137
152
  var _attrs$index$to4;
138
153
  return (_attrs$index$to4 = _attrs[index].to) === null || _attrs$index$to4 === void 0 ? void 0 : _attrs$index$to4.y;
139
154
  });
140
155
  }
141
156
  if (linesNodes.length > 0) {
142
157
  var _attrs2 = linesNodes.map(function (node) {
143
- var _node$x, _node$x$baseVal, _node$y, _node$y$baseVal;
158
+ var _node$x, _node$y;
144
159
  return {
145
160
  from: {
146
- x2: (_node$x = node.x1) === null || _node$x === void 0 ? void 0 : (_node$x$baseVal = _node$x.baseVal) === null || _node$x$baseVal === void 0 ? void 0 : _node$x$baseVal.value,
147
- y2: (_node$y = node.y1) === null || _node$y === void 0 ? void 0 : (_node$y$baseVal = _node$y.baseVal) === null || _node$y$baseVal === void 0 ? void 0 : _node$y$baseVal.value
161
+ x2: (_node$x = node.x1) === null || _node$x === void 0 || (_node$x = _node$x.baseVal) === null || _node$x === void 0 ? void 0 : _node$x.value,
162
+ y2: (_node$y = node.y1) === null || _node$y === void 0 || (_node$y = _node$y.baseVal) === null || _node$y === void 0 ? void 0 : _node$y.value
148
163
  },
149
164
  to: {
150
165
  x2: node.dataset['x2'],
@@ -152,16 +167,24 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
152
167
  }
153
168
  };
154
169
  });
155
- linesAnimation.attr('opacity', 0).attr('x2', function (_, index) {
170
+ linesAnimation.attr('opacity', 0)
171
+ // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
172
+ .attr('x2', function (_, index) {
156
173
  var _attrs2$index$from;
157
174
  return (_attrs2$index$from = _attrs2[index].from) === null || _attrs2$index$from === void 0 ? void 0 : _attrs2$index$from.x2;
158
- }).attr('y2', function (_, index) {
175
+ })
176
+ // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
177
+ .attr('y2', function (_, index) {
159
178
  var _attrs2$index$from2;
160
179
  return (_attrs2$index$from2 = _attrs2[index].from) === null || _attrs2$index$from2 === void 0 ? void 0 : _attrs2$index$from2.y2;
161
- }).transition().duration(duration).attr('opacity', 1).attr('x2', function (_, index) {
180
+ }).transition().duration(duration).attr('opacity', 1)
181
+ // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
182
+ .attr('x2', function (_, index) {
162
183
  var _attrs2$index$to;
163
184
  return (_attrs2$index$to = _attrs2[index].to) === null || _attrs2$index$to === void 0 ? void 0 : _attrs2$index$to.x2;
164
- }).attr('y2', function (_, index) {
185
+ })
186
+ // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
187
+ .attr('y2', function (_, index) {
165
188
  var _attrs2$index$to2;
166
189
  return (_attrs2$index$to2 = _attrs2[index].to) === null || _attrs2$index$to2 === void 0 ? void 0 : _attrs2$index$to2.y2;
167
190
  });
@@ -198,8 +221,8 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
198
221
  var _this$asProps2 = this.asProps,
199
222
  data = _this$asProps2.data,
200
223
  textSize = _this$asProps2.textSize;
201
- var widths = data.map(function (_ref10) {
202
- var label = _ref10.label;
224
+ var widths = data.map(function (_ref0) {
225
+ var label = _ref0.label;
203
226
  return measureText(label, textSize);
204
227
  });
205
228
  return Math.max.apply(Math, _toConsumableArray(widths));
@@ -249,7 +272,6 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
249
272
  }), /*#__PURE__*/React.createElement(Children, _ref.cn("Children", {})));
250
273
  }
251
274
  }]);
252
- return RadialTreeBase;
253
275
  }(Component);
254
276
  /** @deprecated */
255
277
  _defineProperty(RadialTreeBase, "displayName", 'RadialTree');
@@ -267,21 +289,20 @@ _defineProperty(RadialTreeBase, "defaultProps", {
267
289
  defaultActiveKey: null
268
290
  });
269
291
  var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
270
- _inherits(RadialTreeRadian, _Component2);
271
- var _super2 = _createSuper(RadialTreeRadian);
272
292
  function RadialTreeRadian(props) {
273
293
  var _this3;
274
294
  _classCallCheck(this, RadialTreeRadian);
275
- _this3 = _super2.call(this, props);
276
- _defineProperty(_assertThisInitialized(_this3), "Element", void 0);
277
- _this3.renderRadian = _this3.renderRadian.bind(_assertThisInitialized(_this3));
295
+ _this3 = _callSuper(this, RadialTreeRadian, [props]);
296
+ _defineProperty(_this3, "Element", void 0);
297
+ _this3.renderRadian = _this3.renderRadian.bind(_this3);
278
298
  return _this3;
279
299
  }
280
- _createClass(RadialTreeRadian, [{
300
+ _inherits(RadialTreeRadian, _Component2);
301
+ return _createClass(RadialTreeRadian, [{
281
302
  key: "getInteractiveAreaProps",
282
- value: function getInteractiveAreaProps(_ref12, index) {
303
+ value: function getInteractiveAreaProps(_ref10, index) {
283
304
  var _$rootProps$data;
284
- var $rootProps = _ref12.$rootProps;
305
+ var $rootProps = _ref10.$rootProps;
285
306
  var data = (_$rootProps$data = $rootProps.data) === null || _$rootProps$data === void 0 ? void 0 : _$rootProps$data[index];
286
307
  var _this$computeRadianPo = this.computeRadianPosition(data, index),
287
308
  xStart = _this$computeRadianPo.xStart,
@@ -299,9 +320,9 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
299
320
  }
300
321
  }, {
301
322
  key: "getLineProps",
302
- value: function getLineProps(_ref13, index) {
303
- var _$rootProps$data2, _color, _ref14;
304
- var $rootProps = _ref13.$rootProps;
323
+ value: function getLineProps(_ref11, index) {
324
+ var _$rootProps$data2, _color;
325
+ var $rootProps = _ref11.$rootProps;
305
326
  var data = (_$rootProps$data2 = $rootProps.data) === null || _$rootProps$data2 === void 0 ? void 0 : _$rootProps$data2[index];
306
327
  var _this$computeRadianPo2 = this.computeRadianPosition(data, index),
307
328
  xStart = _this$computeRadianPo2.xStart,
@@ -313,7 +334,7 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
313
334
  transparent = _this$asProps5.transparent,
314
335
  resolveColor = _this$asProps5.resolveColor;
315
336
  var color = (_color = data.color) !== null && _color !== void 0 ? _color : this.asProps.color;
316
- return _ref14 = {
337
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
317
338
  x1: xStart,
318
339
  y1: yStart,
319
340
  x2: xEnd,
@@ -321,13 +342,13 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
321
342
  stroke: color,
322
343
  resolveColor: resolveColor,
323
344
  transparent: transparent
324
- }, _defineProperty(_ref14, 'data-x1', xStart), _defineProperty(_ref14, 'data-y1', yStart), _defineProperty(_ref14, 'data-x2', xEnd), _defineProperty(_ref14, 'data-y2', yEnd), _defineProperty(_ref14, 'data-radial-animation', "".concat(uid, "-line")), _defineProperty(_ref14, 'data-radian-index', index), _ref14;
345
+ }, 'data-x1', xStart), 'data-y1', yStart), 'data-x2', xEnd), 'data-y2', yEnd), 'data-radial-animation', "".concat(uid, "-line")), 'data-radian-index', index);
325
346
  }
326
347
  }, {
327
348
  key: "getCapProps",
328
- value: function getCapProps(_ref15, index) {
329
- var _$rootProps$data3, _color2, _ref16;
330
- var $rootProps = _ref15.$rootProps;
349
+ value: function getCapProps(_ref13, index) {
350
+ var _$rootProps$data3, _color2;
351
+ var $rootProps = _ref13.$rootProps;
331
352
  var data = (_$rootProps$data3 = $rootProps.data) === null || _$rootProps$data3 === void 0 ? void 0 : _$rootProps$data3[index];
332
353
  var _this$computeRadianPo3 = this.computeRadianPosition(data, index),
333
354
  xEnd = _this$computeRadianPo3.xEnd,
@@ -339,16 +360,16 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
339
360
  resolveColor = _this$asProps6.resolveColor,
340
361
  patterns = _this$asProps6.patterns;
341
362
  var color = (_color2 = data.color) !== null && _color2 !== void 0 ? _color2 : this.asProps.color;
342
- return _ref16 = {
363
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
343
364
  x: xEnd,
344
365
  y: yEnd
345
- }, _defineProperty(_ref16, 'data-cx', xEnd), _defineProperty(_ref16, 'data-cy', yEnd), _defineProperty(_ref16, "radius", capSize), _defineProperty(_ref16, "color", color), _defineProperty(_ref16, "resolveColor", resolveColor), _defineProperty(_ref16, "transparent", transparent), _defineProperty(_ref16, "patterns", patterns), _defineProperty(_ref16, "uid", "".concat(uid, "-cap-").concat(index)), _defineProperty(_ref16, 'data-radial-animation', "".concat(uid, "-cap-circle")), _defineProperty(_ref16, 'data-radian-index', index), _ref16;
366
+ }, 'data-cx', xEnd), 'data-cy', yEnd), "radius", capSize), "color", color), "resolveColor", resolveColor), "transparent", transparent), "patterns", patterns), "uid", "".concat(uid, "-cap-").concat(index)), 'data-radial-animation', "".concat(uid, "-cap-circle")), 'data-radian-index', index);
346
367
  }
347
368
  }, {
348
369
  key: "getIconProps",
349
- value: function getIconProps(_ref17, index) {
350
- var _$rootProps$data4, _iconColor, _iconSize, _icon, _ref18;
351
- var $rootProps = _ref17.$rootProps;
370
+ value: function getIconProps(_ref15, index) {
371
+ var _$rootProps$data4, _iconColor, _iconSize, _icon;
372
+ var $rootProps = _ref15.$rootProps;
352
373
  var data = (_$rootProps$data4 = $rootProps.data) === null || _$rootProps$data4 === void 0 ? void 0 : _$rootProps$data4[index];
353
374
  var _this$computeRadianPo4 = this.computeRadianPosition(data, index),
354
375
  xEnd = _this$computeRadianPo4.xEnd,
@@ -362,16 +383,16 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
362
383
  var icon = (_icon = data.icon) !== null && _icon !== void 0 ? _icon : this.asProps.icon;
363
384
  var x = xEnd - iconSize / 2;
364
385
  var y = yEnd - iconSize / 2;
365
- return _ref18 = {
386
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
366
387
  x: x,
367
388
  y: y
368
- }, _defineProperty(_ref18, 'data-x', x), _defineProperty(_ref18, 'data-y', y), _defineProperty(_ref18, "iconSize", iconSize), _defineProperty(_ref18, "color", iconColor !== null && iconColor !== void 0 ? iconColor : '#fff'), _defineProperty(_ref18, "resolveColor", resolveColor), _defineProperty(_ref18, 'data-radial-animation', "".concat(uid, "-cap-icon")), _defineProperty(_ref18, 'data-radian-index', index), _defineProperty(_ref18, "icon", icon), _defineProperty(_ref18, "tag", icon), _defineProperty(_ref18, "isActive", isActive), _ref18;
389
+ }, 'data-x', x), 'data-y', y), "iconSize", iconSize), "color", iconColor !== null && iconColor !== void 0 ? iconColor : '#fff'), "resolveColor", resolveColor), 'data-radial-animation', "".concat(uid, "-cap-icon")), 'data-radian-index', index), "icon", icon), "tag", icon), "isActive", isActive);
369
390
  }
370
391
  }, {
371
392
  key: "getLabelProps",
372
- value: function getLabelProps(_ref19, index) {
373
- var _$rootProps$data5, _color3, _ref21;
374
- var $rootProps = _ref19.$rootProps;
393
+ value: function getLabelProps(_ref17, index) {
394
+ var _$rootProps$data5, _color3;
395
+ var $rootProps = _ref17.$rootProps;
375
396
  var data = (_$rootProps$data5 = $rootProps.data) === null || _$rootProps$data5 === void 0 ? void 0 : _$rootProps$data5[index];
376
397
  var _this$computeRadianPo5 = this.computeRadianPosition(data, index),
377
398
  xLabelCenter = _this$computeRadianPo5.xLabelCenter,
@@ -383,14 +404,14 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
383
404
  textSize = _this$asProps8.textSize,
384
405
  transparent = _this$asProps8.transparent,
385
406
  resolveColor = _this$asProps8.resolveColor;
386
- var _ref20 = data,
387
- label = _ref20.label;
407
+ var _ref18 = data,
408
+ label = _ref18.label;
388
409
  var color = (_color3 = data.color) !== null && _color3 !== void 0 ? _color3 : this.asProps.color;
389
- return _ref21 = {
410
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
390
411
  x: xLabelCenter,
391
412
  y: yLabelCenter,
392
413
  angle: labelAngle
393
- }, _defineProperty(_ref21, 'data-radial-animation', "".concat(uid, "-label")), _defineProperty(_ref21, 'data-radian-index', index), _defineProperty(_ref21, "label", label), _defineProperty(_ref21, "color", color), _defineProperty(_ref21, "resolveColor", resolveColor), _defineProperty(_ref21, "isHorizontal", isHorizontal), _defineProperty(_ref21, "textSize", textSize), _defineProperty(_ref21, "transparent", transparent), _ref21;
414
+ }, 'data-radial-animation', "".concat(uid, "-label")), 'data-radian-index', index), "label", label), "color", color), "resolveColor", resolveColor), "isHorizontal", isHorizontal), "textSize", textSize), "transparent", transparent);
394
415
  }
395
416
  }, {
396
417
  key: "getRadianKey",
@@ -452,10 +473,10 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
452
473
  key: "renderRadian",
453
474
  value: function renderRadian(data, index) {
454
475
  var _ref2;
455
- var _this$asProps10 = this.asProps,
456
- styles = _this$asProps10.styles,
457
- Children = _this$asProps10.Children,
458
- onRadianClick = _this$asProps10.onRadianClick;
476
+ var _this$asProps0 = this.asProps,
477
+ styles = _this$asProps0.styles,
478
+ Children = _this$asProps0.Children,
479
+ onRadianClick = _this$asProps0.onRadianClick;
459
480
  var key = this.getRadianKey(data, index);
460
481
  var SRadian = 'g';
461
482
  var children = getOriginChildren(Children);
@@ -487,7 +508,6 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
487
508
  }));
488
509
  }
489
510
  }]);
490
- return RadialTreeRadian;
491
511
  }(Component);
492
512
  /** @deprecated */
493
513
  _defineProperty(RadialTreeRadian, "displayName", 'RadialTreeRadian');
@@ -500,10 +520,10 @@ _defineProperty(RadialTreeRadian, "defaultProps", {
500
520
  iconSize: 16,
501
521
  textSize: 14
502
522
  });
503
- var InteractiveArea = function InteractiveArea(_ref22) {
523
+ var InteractiveArea = function InteractiveArea(_ref20) {
504
524
  var _ref4;
505
- var SInteractiveArea = _ref22.Element,
506
- styles = _ref22.styles;
525
+ var SInteractiveArea = _ref20.Element,
526
+ styles = _ref20.styles;
507
527
  return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement(SInteractiveArea, _ref4.cn("SInteractiveArea", {
508
528
  "stroke": 'transparent',
509
529
  "render": 'line'
@@ -512,13 +532,13 @@ var InteractiveArea = function InteractiveArea(_ref22) {
512
532
 
513
533
  /** @deprecated */
514
534
 
515
- var Line = function Line(_ref23) {
535
+ var Line = function Line(_ref21) {
516
536
  var _ref5;
517
- var SLine = _ref23.Element,
518
- styles = _ref23.styles,
519
- stroke = _ref23.stroke,
520
- resolveColor = _ref23.resolveColor,
521
- transparent = _ref23.transparent;
537
+ var SLine = _ref21.Element,
538
+ styles = _ref21.styles,
539
+ stroke = _ref21.stroke,
540
+ resolveColor = _ref21.resolveColor,
541
+ transparent = _ref21.transparent;
522
542
  return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(SLine, _ref5.cn("SLine", {
523
543
  "render": 'line',
524
544
  "stroke": resolveColor(stroke),
@@ -528,19 +548,19 @@ var Line = function Line(_ref23) {
528
548
 
529
549
  /** @deprecated */
530
550
 
531
- var Cap = function Cap(_ref24) {
551
+ var Cap = function Cap(_ref22) {
532
552
  var _ref7;
533
- var SCap = _ref24.Element,
534
- styles = _ref24.styles,
535
- _ref24$x = _ref24.x,
536
- x = _ref24$x === void 0 ? 0 : _ref24$x,
537
- _ref24$y = _ref24.y,
538
- y = _ref24$y === void 0 ? 0 : _ref24$y,
539
- radius = _ref24.radius,
540
- color = _ref24.color,
541
- resolveColor = _ref24.resolveColor,
542
- transparent = _ref24.transparent,
543
- patterns = _ref24.patterns;
553
+ var SCap = _ref22.Element,
554
+ styles = _ref22.styles,
555
+ _ref22$x = _ref22.x,
556
+ x = _ref22$x === void 0 ? 0 : _ref22$x,
557
+ _ref22$y = _ref22.y,
558
+ y = _ref22$y === void 0 ? 0 : _ref22$y,
559
+ radius = _ref22.radius,
560
+ color = _ref22.color,
561
+ resolveColor = _ref22.resolveColor,
562
+ transparent = _ref22.transparent,
563
+ patterns = _ref22.patterns;
544
564
  if (!patterns) {
545
565
  var _ref6;
546
566
  return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SCap, _ref6.cn("SCap", {
@@ -573,16 +593,16 @@ var Cap = function Cap(_ref24) {
573
593
 
574
594
  /** @deprecated */
575
595
 
576
- var Icon = function Icon(_ref25) {
596
+ var Icon = function Icon(_ref23) {
577
597
  var _ref8;
578
- var SIcon = _ref25.Element,
579
- styles = _ref25.styles,
580
- isActive = _ref25.isActive,
581
- tag = _ref25.tag,
582
- x = _ref25.x,
583
- y = _ref25.y,
584
- iconSize = _ref25.iconSize,
585
- transparent = _ref25.transparent;
598
+ var SIcon = _ref23.Element,
599
+ styles = _ref23.styles,
600
+ isActive = _ref23.isActive,
601
+ tag = _ref23.tag,
602
+ x = _ref23.x,
603
+ y = _ref23.y,
604
+ iconSize = _ref23.iconSize,
605
+ transparent = _ref23.transparent;
586
606
  if (!(isActive && tag)) return null;
587
607
  var width = iconSize;
588
608
  var height = iconSize;
@@ -598,19 +618,19 @@ var Icon = function Icon(_ref25) {
598
618
 
599
619
  /** @deprecated */
600
620
 
601
- var Label = function Label(_ref26) {
602
- var SLabel = _ref26.Element,
603
- Children = _ref26.Children,
604
- styles = _ref26.styles,
605
- label = _ref26.label,
606
- color = _ref26.color,
607
- resolveColor = _ref26.resolveColor,
608
- isHorizontal = _ref26.isHorizontal,
609
- x = _ref26.x,
610
- y = _ref26.y,
611
- textSize = _ref26.textSize,
612
- angle = _ref26.angle,
613
- transparent = _ref26.transparent;
621
+ var Label = function Label(_ref24) {
622
+ var SLabel = _ref24.Element,
623
+ Children = _ref24.Children,
624
+ styles = _ref24.styles,
625
+ label = _ref24.label,
626
+ color = _ref24.color,
627
+ resolveColor = _ref24.resolveColor,
628
+ isHorizontal = _ref24.isHorizontal,
629
+ x = _ref24.x,
630
+ y = _ref24.y,
631
+ textSize = _ref24.textSize,
632
+ angle = _ref24.angle,
633
+ transparent = _ref24.transparent;
614
634
  var lines = String(label).split('\n');
615
635
  var linesCount = lines.length;
616
636
  var SLabelLine = 'tspan';
@@ -619,7 +639,7 @@ var Label = function Label(_ref26) {
619
639
  var transform = "rotate(".concat([angleDegs].concat(transformOrigin).join(', '), ")");
620
640
  var sstyles = sstyled(styles);
621
641
  var sLabelStyles = sstyles.cn('SLabel', {
622
- color: resolveColor(color),
642
+ 'color': resolveColor(color),
623
643
  'text-cursor': isHorizontal ? 'text' : 'vertical-text',
624
644
  transparent: transparent
625
645
  });
@@ -651,18 +671,18 @@ var Radian = createElement(RadialTreeRadian, {
651
671
 
652
672
  /** @deprecated */
653
673
 
654
- var Title = function Title(_ref27) {
674
+ var Title = function Title(_ref25) {
655
675
  var _ref9;
656
- var STitle = _ref27.Element,
657
- Children = _ref27.Children,
658
- children = _ref27.children,
659
- styles = _ref27.styles,
660
- textSize = _ref27.textSize,
661
- color = _ref27.color,
662
- resolveColor = _ref27.resolveColor,
663
- x = _ref27.x,
664
- y = _ref27.y,
665
- dataHintsHandler = _ref27.dataHintsHandler;
676
+ var STitle = _ref25.Element,
677
+ Children = _ref25.Children,
678
+ children = _ref25.children,
679
+ styles = _ref25.styles,
680
+ textSize = _ref25.textSize,
681
+ color = _ref25.color,
682
+ resolveColor = _ref25.resolveColor,
683
+ x = _ref25.x,
684
+ y = _ref25.y,
685
+ dataHintsHandler = _ref25.dataHintsHandler;
666
686
  if (typeof children === 'string') {
667
687
  dataHintsHandler.setTitle('vertical', children);
668
688
  }