@fluentui/react-charting 5.16.24 → 5.16.26

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 (796) hide show
  1. package/CHANGELOG.json +57 -1
  2. package/CHANGELOG.md +23 -2
  3. package/config/setup-env.js +1 -0
  4. package/dist/react-charting.js +1 -0
  5. package/dist/react-charting.min.js +1 -0
  6. package/docs/TestPlans/BasicDonutChart.png +0 -0
  7. package/docs/TestPlans/DonutChart/ComponentTests.md +35 -0
  8. package/lib/AreaChart.d.ts +1 -0
  9. package/lib/AreaChart.js +2 -0
  10. package/lib/AreaChart.js.map +1 -0
  11. package/lib/CartesianChart.d.ts +1 -0
  12. package/lib/CartesianChart.js +2 -0
  13. package/lib/CartesianChart.js.map +1 -0
  14. package/lib/DonutChart.d.ts +1 -0
  15. package/lib/DonutChart.js +2 -0
  16. package/lib/DonutChart.js.map +1 -0
  17. package/lib/GroupedVerticalBarChart.d.ts +1 -0
  18. package/lib/GroupedVerticalBarChart.js +2 -0
  19. package/lib/GroupedVerticalBarChart.js.map +1 -0
  20. package/lib/HeatMapChart.d.ts +1 -0
  21. package/lib/HeatMapChart.js +2 -0
  22. package/lib/HeatMapChart.js.map +1 -0
  23. package/lib/HorizontalBarChart.d.ts +1 -0
  24. package/lib/HorizontalBarChart.js +2 -0
  25. package/lib/HorizontalBarChart.js.map +1 -0
  26. package/lib/Legends.d.ts +1 -0
  27. package/lib/Legends.js +2 -0
  28. package/lib/Legends.js.map +1 -0
  29. package/lib/LineChart.d.ts +1 -0
  30. package/lib/LineChart.js +2 -0
  31. package/lib/LineChart.js.map +1 -0
  32. package/lib/PieChart.d.ts +1 -0
  33. package/lib/PieChart.js +2 -0
  34. package/lib/PieChart.js.map +1 -0
  35. package/lib/SankeyChart.d.ts +1 -0
  36. package/lib/SankeyChart.js +2 -0
  37. package/lib/SankeyChart.js.map +1 -0
  38. package/lib/Sparkline.d.ts +1 -0
  39. package/lib/Sparkline.js +2 -0
  40. package/lib/Sparkline.js.map +1 -0
  41. package/lib/StackedBarChart.d.ts +1 -0
  42. package/lib/StackedBarChart.js +2 -0
  43. package/lib/StackedBarChart.js.map +1 -0
  44. package/lib/Styling.d.ts +2 -0
  45. package/lib/Styling.js +8 -0
  46. package/lib/Styling.js.map +1 -0
  47. package/lib/TreeChart.d.ts +1 -0
  48. package/lib/TreeChart.js +2 -0
  49. package/lib/TreeChart.js.map +1 -0
  50. package/lib/Utilities.d.ts +2 -0
  51. package/lib/Utilities.js +20 -0
  52. package/lib/Utilities.js.map +1 -0
  53. package/lib/VerticalBarChart.d.ts +1 -0
  54. package/lib/VerticalBarChart.js +2 -0
  55. package/lib/VerticalBarChart.js.map +1 -0
  56. package/lib/VerticalStackedBarChart.d.ts +1 -0
  57. package/lib/VerticalStackedBarChart.js +2 -0
  58. package/lib/VerticalStackedBarChart.js.map +1 -0
  59. package/lib/components/AreaChart/AreaChart.base.d.ts +92 -0
  60. package/lib/components/AreaChart/AreaChart.base.js +562 -0
  61. package/lib/components/AreaChart/AreaChart.base.js.map +1 -0
  62. package/lib/components/AreaChart/AreaChart.d.ts +3 -0
  63. package/lib/components/AreaChart/AreaChart.js +6 -0
  64. package/lib/components/AreaChart/AreaChart.js.map +1 -0
  65. package/lib/components/AreaChart/AreaChart.styles.d.ts +2 -0
  66. package/lib/components/AreaChart/AreaChart.styles.js +7 -0
  67. package/lib/components/AreaChart/AreaChart.styles.js.map +1 -0
  68. package/lib/components/AreaChart/AreaChart.types.d.ts +37 -0
  69. package/lib/components/AreaChart/AreaChart.types.js +2 -0
  70. package/lib/components/AreaChart/AreaChart.types.js.map +1 -0
  71. package/lib/components/AreaChart/index.d.ts +2 -0
  72. package/lib/components/AreaChart/index.js +3 -0
  73. package/lib/components/AreaChart/index.js.map +1 -0
  74. package/lib/components/CommonComponents/CartesianChart.base.d.ts +43 -0
  75. package/lib/components/CommonComponents/CartesianChart.base.js +331 -0
  76. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -0
  77. package/lib/components/CommonComponents/CartesianChart.d.ts +3 -0
  78. package/lib/components/CommonComponents/CartesianChart.js +5 -0
  79. package/lib/components/CommonComponents/CartesianChart.js.map +1 -0
  80. package/lib/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
  81. package/lib/components/CommonComponents/CartesianChart.styles.js +163 -0
  82. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -0
  83. package/lib/components/CommonComponents/CartesianChart.types.d.ts +428 -0
  84. package/lib/components/CommonComponents/CartesianChart.types.js +2 -0
  85. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -0
  86. package/lib/components/CommonComponents/index.d.ts +2 -0
  87. package/lib/components/CommonComponents/index.js +3 -0
  88. package/lib/components/CommonComponents/index.js.map +1 -0
  89. package/lib/components/DonutChart/Arc/Arc.d.ts +21 -0
  90. package/lib/components/DonutChart/Arc/Arc.js +86 -0
  91. package/lib/components/DonutChart/Arc/Arc.js.map +1 -0
  92. package/lib/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
  93. package/lib/components/DonutChart/Arc/Arc.styles.js +28 -0
  94. package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -0
  95. package/lib/components/DonutChart/Arc/Arc.types.d.ts +124 -0
  96. package/lib/components/DonutChart/Arc/Arc.types.js +2 -0
  97. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -0
  98. package/lib/components/DonutChart/Arc/index.d.ts +2 -0
  99. package/lib/components/DonutChart/Arc/index.js +3 -0
  100. package/lib/components/DonutChart/Arc/index.js.map +1 -0
  101. package/lib/components/DonutChart/DonutChart.base.d.ts +50 -0
  102. package/lib/components/DonutChart/DonutChart.base.js +211 -0
  103. package/lib/components/DonutChart/DonutChart.base.js.map +1 -0
  104. package/lib/components/DonutChart/DonutChart.d.ts +3 -0
  105. package/lib/components/DonutChart/DonutChart.js +6 -0
  106. package/lib/components/DonutChart/DonutChart.js.map +1 -0
  107. package/lib/components/DonutChart/DonutChart.styles.d.ts +2 -0
  108. package/lib/components/DonutChart/DonutChart.styles.js +30 -0
  109. package/lib/components/DonutChart/DonutChart.styles.js.map +1 -0
  110. package/lib/components/DonutChart/DonutChart.types.d.ts +63 -0
  111. package/lib/components/DonutChart/DonutChart.types.js +2 -0
  112. package/lib/components/DonutChart/DonutChart.types.js.map +1 -0
  113. package/lib/components/DonutChart/Pie/Pie.d.ts +15 -0
  114. package/lib/components/DonutChart/Pie/Pie.js +71 -0
  115. package/lib/components/DonutChart/Pie/Pie.js.map +1 -0
  116. package/lib/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
  117. package/lib/components/DonutChart/Pie/Pie.styles.js +19 -0
  118. package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -0
  119. package/lib/components/DonutChart/Pie/Pie.types.d.ts +96 -0
  120. package/lib/components/DonutChart/Pie/Pie.types.js +2 -0
  121. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -0
  122. package/lib/components/DonutChart/Pie/index.d.ts +2 -0
  123. package/lib/components/DonutChart/Pie/index.js +3 -0
  124. package/lib/components/DonutChart/Pie/index.js.map +1 -0
  125. package/lib/components/DonutChart/index.d.ts +3 -0
  126. package/lib/components/DonutChart/index.js +4 -0
  127. package/lib/components/DonutChart/index.js.map +1 -0
  128. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +62 -0
  129. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +381 -0
  130. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
  131. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
  132. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +6 -0
  133. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  134. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
  135. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +17 -0
  136. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
  137. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +83 -0
  138. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +2 -0
  139. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  140. package/lib/components/GroupedVerticalBarChart/index.d.ts +2 -0
  141. package/lib/components/GroupedVerticalBarChart/index.js +3 -0
  142. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -0
  143. package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +147 -0
  144. package/lib/components/HeatMapChart/HeatMapChart.base.js +498 -0
  145. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
  146. package/lib/components/HeatMapChart/HeatMapChart.d.ts +3 -0
  147. package/lib/components/HeatMapChart/HeatMapChart.js +5 -0
  148. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -0
  149. package/lib/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
  150. package/lib/components/HeatMapChart/HeatMapChart.styles.js +24 -0
  151. package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
  152. package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
  153. package/lib/components/HeatMapChart/HeatMapChart.types.js +2 -0
  154. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  155. package/lib/components/HeatMapChart/index.d.ts +2 -0
  156. package/lib/components/HeatMapChart/index.js +3 -0
  157. package/lib/components/HeatMapChart/index.js.map +1 -0
  158. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +36 -0
  159. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +237 -0
  160. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
  161. package/lib/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
  162. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +6 -0
  163. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  164. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
  165. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js +69 -0
  166. package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
  167. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +172 -0
  168. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +6 -0
  169. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  170. package/lib/components/HorizontalBarChart/index.d.ts +3 -0
  171. package/lib/components/HorizontalBarChart/index.js +4 -0
  172. package/lib/components/HorizontalBarChart/index.js.map +1 -0
  173. package/lib/components/Legends/Legends.base.d.ts +44 -0
  174. package/lib/components/Legends/Legends.base.js +293 -0
  175. package/lib/components/Legends/Legends.base.js.map +1 -0
  176. package/lib/components/Legends/Legends.d.ts +3 -0
  177. package/lib/components/Legends/Legends.js +5 -0
  178. package/lib/components/Legends/Legends.js.map +1 -0
  179. package/lib/components/Legends/Legends.styles.d.ts +2 -0
  180. package/lib/components/Legends/Legends.styles.js +103 -0
  181. package/lib/components/Legends/Legends.styles.js.map +1 -0
  182. package/lib/components/Legends/Legends.types.d.ts +169 -0
  183. package/lib/components/Legends/Legends.types.js +2 -0
  184. package/lib/components/Legends/Legends.types.js.map +1 -0
  185. package/lib/components/Legends/index.d.ts +3 -0
  186. package/lib/components/Legends/index.js +4 -0
  187. package/lib/components/Legends/index.js.map +1 -0
  188. package/lib/components/Legends/shape.d.ts +9 -0
  189. package/lib/components/Legends/shape.js +24 -0
  190. package/lib/components/Legends/shape.js.map +1 -0
  191. package/lib/components/LineChart/LineChart.base.d.ts +84 -0
  192. package/lib/components/LineChart/LineChart.base.js +815 -0
  193. package/lib/components/LineChart/LineChart.base.js.map +1 -0
  194. package/lib/components/LineChart/LineChart.d.ts +3 -0
  195. package/lib/components/LineChart/LineChart.js +6 -0
  196. package/lib/components/LineChart/LineChart.js.map +1 -0
  197. package/lib/components/LineChart/LineChart.styles.d.ts +2 -0
  198. package/lib/components/LineChart/LineChart.styles.js +7 -0
  199. package/lib/components/LineChart/LineChart.styles.js.map +1 -0
  200. package/lib/components/LineChart/LineChart.types.d.ts +72 -0
  201. package/lib/components/LineChart/LineChart.types.js +2 -0
  202. package/lib/components/LineChart/LineChart.types.js.map +1 -0
  203. package/lib/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
  204. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +93 -0
  205. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  206. package/lib/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
  207. package/lib/components/LineChart/eventAnnotation/LabelLink.js +37 -0
  208. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  209. package/lib/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
  210. package/lib/components/LineChart/eventAnnotation/Textbox.js +37 -0
  211. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  212. package/lib/components/LineChart/index.d.ts +3 -0
  213. package/lib/components/LineChart/index.js +4 -0
  214. package/lib/components/LineChart/index.js.map +1 -0
  215. package/lib/components/PieChart/Arc/Arc.d.ts +12 -0
  216. package/lib/components/PieChart/Arc/Arc.js +57 -0
  217. package/lib/components/PieChart/Arc/Arc.js.map +1 -0
  218. package/lib/components/PieChart/Arc/Arc.styles.d.ts +2 -0
  219. package/lib/components/PieChart/Arc/Arc.styles.js +8 -0
  220. package/lib/components/PieChart/Arc/Arc.styles.js.map +1 -0
  221. package/lib/components/PieChart/Arc/Arc.types.d.ts +60 -0
  222. package/lib/components/PieChart/Arc/Arc.types.js +2 -0
  223. package/lib/components/PieChart/Arc/Arc.types.js.map +1 -0
  224. package/lib/components/PieChart/Arc/index.d.ts +2 -0
  225. package/lib/components/PieChart/Arc/index.js +3 -0
  226. package/lib/components/PieChart/Arc/index.js.map +1 -0
  227. package/lib/components/PieChart/Pie/Pie.d.ts +10 -0
  228. package/lib/components/PieChart/Pie/Pie.js +35 -0
  229. package/lib/components/PieChart/Pie/Pie.js.map +1 -0
  230. package/lib/components/PieChart/Pie/Pie.styles.d.ts +2 -0
  231. package/lib/components/PieChart/Pie/Pie.styles.js +6 -0
  232. package/lib/components/PieChart/Pie/Pie.styles.js.map +1 -0
  233. package/lib/components/PieChart/Pie/Pie.types.d.ts +46 -0
  234. package/lib/components/PieChart/Pie/Pie.types.js +2 -0
  235. package/lib/components/PieChart/Pie/Pie.types.js.map +1 -0
  236. package/lib/components/PieChart/Pie/index.d.ts +2 -0
  237. package/lib/components/PieChart/Pie/index.js +3 -0
  238. package/lib/components/PieChart/Pie/index.js.map +1 -0
  239. package/lib/components/PieChart/PieChart.base.d.ts +7 -0
  240. package/lib/components/PieChart/PieChart.base.js +34 -0
  241. package/lib/components/PieChart/PieChart.base.js.map +1 -0
  242. package/lib/components/PieChart/PieChart.d.ts +3 -0
  243. package/lib/components/PieChart/PieChart.js +6 -0
  244. package/lib/components/PieChart/PieChart.js.map +1 -0
  245. package/lib/components/PieChart/PieChart.styles.d.ts +2 -0
  246. package/lib/components/PieChart/PieChart.styles.js +29 -0
  247. package/lib/components/PieChart/PieChart.styles.js.map +1 -0
  248. package/lib/components/PieChart/PieChart.types.d.ts +63 -0
  249. package/lib/components/PieChart/PieChart.types.js +2 -0
  250. package/lib/components/PieChart/PieChart.types.js.map +1 -0
  251. package/lib/components/PieChart/index.d.ts +2 -0
  252. package/lib/components/PieChart/index.js +3 -0
  253. package/lib/components/PieChart/index.js.map +1 -0
  254. package/lib/components/SankeyChart/SankeyChart.base.d.ts +95 -0
  255. package/lib/components/SankeyChart/SankeyChart.base.js +674 -0
  256. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -0
  257. package/lib/components/SankeyChart/SankeyChart.d.ts +3 -0
  258. package/lib/components/SankeyChart/SankeyChart.js +6 -0
  259. package/lib/components/SankeyChart/SankeyChart.js.map +1 -0
  260. package/lib/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
  261. package/lib/components/SankeyChart/SankeyChart.styles.js +58 -0
  262. package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -0
  263. package/lib/components/SankeyChart/SankeyChart.types.d.ts +83 -0
  264. package/lib/components/SankeyChart/SankeyChart.types.js +2 -0
  265. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -0
  266. package/lib/components/SankeyChart/index.d.ts +2 -0
  267. package/lib/components/SankeyChart/index.js +3 -0
  268. package/lib/components/SankeyChart/index.js.map +1 -0
  269. package/lib/components/Sparkline/Sparkline.base.d.ts +20 -0
  270. package/lib/components/Sparkline/Sparkline.base.js +76 -0
  271. package/lib/components/Sparkline/Sparkline.base.js.map +1 -0
  272. package/lib/components/Sparkline/Sparkline.d.ts +3 -0
  273. package/lib/components/Sparkline/Sparkline.js +6 -0
  274. package/lib/components/Sparkline/Sparkline.js.map +1 -0
  275. package/lib/components/Sparkline/Sparkline.styles.d.ts +2 -0
  276. package/lib/components/Sparkline/Sparkline.styles.js +10 -0
  277. package/lib/components/Sparkline/Sparkline.styles.js.map +1 -0
  278. package/lib/components/Sparkline/Sparkline.types.d.ts +51 -0
  279. package/lib/components/Sparkline/Sparkline.types.js +2 -0
  280. package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
  281. package/lib/components/Sparkline/index.d.ts +2 -0
  282. package/lib/components/Sparkline/index.js +3 -0
  283. package/lib/components/Sparkline/index.js.map +1 -0
  284. package/lib/components/StackedBarChart/MultiStackedBarChart.base.d.ts +56 -0
  285. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +356 -0
  286. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
  287. package/lib/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
  288. package/lib/components/StackedBarChart/MultiStackedBarChart.js +6 -0
  289. package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
  290. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
  291. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js +90 -0
  292. package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
  293. package/lib/components/StackedBarChart/MultiStackedBarChart.types.d.ts +198 -0
  294. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js +6 -0
  295. package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
  296. package/lib/components/StackedBarChart/StackedBarChart.base.d.ts +51 -0
  297. package/lib/components/StackedBarChart/StackedBarChart.base.js +311 -0
  298. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
  299. package/lib/components/StackedBarChart/StackedBarChart.d.ts +3 -0
  300. package/lib/components/StackedBarChart/StackedBarChart.js +6 -0
  301. package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -0
  302. package/lib/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
  303. package/lib/components/StackedBarChart/StackedBarChart.styles.js +104 -0
  304. package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
  305. package/lib/components/StackedBarChart/StackedBarChart.types.d.ts +210 -0
  306. package/lib/components/StackedBarChart/StackedBarChart.types.js +2 -0
  307. package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
  308. package/lib/components/StackedBarChart/index.d.ts +5 -0
  309. package/lib/components/StackedBarChart/index.js +6 -0
  310. package/lib/components/StackedBarChart/index.js.map +1 -0
  311. package/lib/components/TreeChart/TreeChart.base.d.ts +18 -0
  312. package/lib/components/TreeChart/TreeChart.base.js +316 -0
  313. package/lib/components/TreeChart/TreeChart.base.js.map +1 -0
  314. package/lib/components/TreeChart/TreeChart.d.ts +3 -0
  315. package/lib/components/TreeChart/TreeChart.js +5 -0
  316. package/lib/components/TreeChart/TreeChart.js.map +1 -0
  317. package/lib/components/TreeChart/TreeChart.styles.d.ts +2 -0
  318. package/lib/components/TreeChart/TreeChart.styles.js +29 -0
  319. package/lib/components/TreeChart/TreeChart.styles.js.map +1 -0
  320. package/lib/components/TreeChart/TreeChart.types.d.ts +197 -0
  321. package/lib/components/TreeChart/TreeChart.types.js +23 -0
  322. package/lib/components/TreeChart/TreeChart.types.js.map +1 -0
  323. package/lib/components/TreeChart/index.d.ts +2 -0
  324. package/lib/components/TreeChart/index.js +3 -0
  325. package/lib/components/TreeChart/index.js.map +1 -0
  326. package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +74 -0
  327. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +536 -0
  328. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
  329. package/lib/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
  330. package/lib/components/VerticalBarChart/VerticalBarChart.js +6 -0
  331. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  332. package/lib/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
  333. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js +28 -0
  334. package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
  335. package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +114 -0
  336. package/lib/components/VerticalBarChart/VerticalBarChart.types.js +2 -0
  337. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  338. package/lib/components/VerticalBarChart/index.d.ts +2 -0
  339. package/lib/components/VerticalBarChart/index.js +3 -0
  340. package/lib/components/VerticalBarChart/index.js.map +1 -0
  341. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +85 -0
  342. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +666 -0
  343. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
  344. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
  345. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +6 -0
  346. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  347. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
  348. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +18 -0
  349. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
  350. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +142 -0
  351. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +2 -0
  352. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  353. package/lib/components/VerticalStackedBarChart/index.d.ts +2 -0
  354. package/lib/components/VerticalStackedBarChart/index.js +3 -0
  355. package/lib/components/VerticalStackedBarChart/index.js.map +1 -0
  356. package/lib/index.d.ts +19 -0
  357. package/lib/index.js +20 -0
  358. package/lib/index.js.map +1 -0
  359. package/lib/types/IDataPoint.d.ts +545 -0
  360. package/lib/types/IDataPoint.js +2 -0
  361. package/lib/types/IDataPoint.js.map +1 -0
  362. package/lib/types/IEventAnnotation.d.ts +6 -0
  363. package/lib/types/IEventAnnotation.js +2 -0
  364. package/lib/types/IEventAnnotation.js.map +1 -0
  365. package/lib/types/ILegendDataItem.d.ts +10 -0
  366. package/lib/types/ILegendDataItem.js +2 -0
  367. package/lib/types/ILegendDataItem.js.map +1 -0
  368. package/lib/types/index.d.ts +2 -0
  369. package/lib/types/index.js +3 -0
  370. package/lib/types/index.js.map +1 -0
  371. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
  372. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js +38 -0
  373. package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
  374. package/lib/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
  375. package/lib/utilities/ChartHoverCard/ChartHoverCard.js +6 -0
  376. package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
  377. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
  378. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +82 -0
  379. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
  380. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
  381. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js +2 -0
  382. package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
  383. package/lib/utilities/ChartHoverCard/index.d.ts +3 -0
  384. package/lib/utilities/ChartHoverCard/index.js +4 -0
  385. package/lib/utilities/ChartHoverCard/index.js.map +1 -0
  386. package/lib/utilities/FocusableTooltipText.d.ts +27 -0
  387. package/lib/utilities/FocusableTooltipText.js +54 -0
  388. package/lib/utilities/FocusableTooltipText.js.map +1 -0
  389. package/lib/utilities/colors.d.ts +51 -0
  390. package/lib/utilities/colors.js +132 -0
  391. package/lib/utilities/colors.js.map +1 -0
  392. package/lib/utilities/index.d.ts +3 -0
  393. package/lib/utilities/index.js +4 -0
  394. package/lib/utilities/index.js.map +1 -0
  395. package/lib/utilities/utilities.d.ts +377 -0
  396. package/lib/utilities/utilities.js +864 -0
  397. package/lib/utilities/utilities.js.map +1 -0
  398. package/lib/version.d.ts +1 -0
  399. package/lib/version.js +5 -0
  400. package/lib/version.js.map +1 -0
  401. package/lib-amd/AreaChart.d.ts +1 -0
  402. package/lib-amd/AreaChart.js +6 -0
  403. package/lib-amd/AreaChart.js.map +1 -0
  404. package/lib-amd/CartesianChart.d.ts +1 -0
  405. package/lib-amd/CartesianChart.js +6 -0
  406. package/lib-amd/CartesianChart.js.map +1 -0
  407. package/lib-amd/DonutChart.d.ts +1 -0
  408. package/lib-amd/DonutChart.js +6 -0
  409. package/lib-amd/DonutChart.js.map +1 -0
  410. package/lib-amd/GroupedVerticalBarChart.d.ts +1 -0
  411. package/lib-amd/GroupedVerticalBarChart.js +6 -0
  412. package/lib-amd/GroupedVerticalBarChart.js.map +1 -0
  413. package/lib-amd/HeatMapChart.d.ts +1 -0
  414. package/lib-amd/HeatMapChart.js +6 -0
  415. package/lib-amd/HeatMapChart.js.map +1 -0
  416. package/lib-amd/HorizontalBarChart.d.ts +1 -0
  417. package/lib-amd/HorizontalBarChart.js +6 -0
  418. package/lib-amd/HorizontalBarChart.js.map +1 -0
  419. package/lib-amd/Legends.d.ts +1 -0
  420. package/lib-amd/Legends.js +6 -0
  421. package/lib-amd/Legends.js.map +1 -0
  422. package/lib-amd/LineChart.d.ts +1 -0
  423. package/lib-amd/LineChart.js +6 -0
  424. package/lib-amd/LineChart.js.map +1 -0
  425. package/lib-amd/PieChart.d.ts +1 -0
  426. package/lib-amd/PieChart.js +6 -0
  427. package/lib-amd/PieChart.js.map +1 -0
  428. package/lib-amd/SankeyChart.d.ts +1 -0
  429. package/lib-amd/SankeyChart.js +6 -0
  430. package/lib-amd/SankeyChart.js.map +1 -0
  431. package/lib-amd/Sparkline.d.ts +1 -0
  432. package/lib-amd/Sparkline.js +6 -0
  433. package/lib-amd/Sparkline.js.map +1 -0
  434. package/lib-amd/StackedBarChart.d.ts +1 -0
  435. package/lib-amd/StackedBarChart.js +6 -0
  436. package/lib-amd/StackedBarChart.js.map +1 -0
  437. package/lib-amd/Styling.d.ts +2 -0
  438. package/lib-amd/Styling.js +75 -0
  439. package/lib-amd/Styling.js.map +1 -0
  440. package/lib-amd/TreeChart.d.ts +1 -0
  441. package/lib-amd/TreeChart.js +6 -0
  442. package/lib-amd/TreeChart.js.map +1 -0
  443. package/lib-amd/Utilities.d.ts +2 -0
  444. package/lib-amd/Utilities.js +183 -0
  445. package/lib-amd/Utilities.js.map +1 -0
  446. package/lib-amd/VerticalBarChart.d.ts +1 -0
  447. package/lib-amd/VerticalBarChart.js +6 -0
  448. package/lib-amd/VerticalBarChart.js.map +1 -0
  449. package/lib-amd/VerticalStackedBarChart.d.ts +1 -0
  450. package/lib-amd/VerticalStackedBarChart.js +6 -0
  451. package/lib-amd/VerticalStackedBarChart.js.map +1 -0
  452. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +92 -0
  453. package/lib-amd/components/AreaChart/AreaChart.base.js +555 -0
  454. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -0
  455. package/lib-amd/components/AreaChart/AreaChart.d.ts +3 -0
  456. package/lib-amd/components/AreaChart/AreaChart.js +8 -0
  457. package/lib-amd/components/AreaChart/AreaChart.js.map +1 -0
  458. package/lib-amd/components/AreaChart/AreaChart.styles.d.ts +2 -0
  459. package/lib-amd/components/AreaChart/AreaChart.styles.js +12 -0
  460. package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -0
  461. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +37 -0
  462. package/lib-amd/components/AreaChart/AreaChart.types.js +5 -0
  463. package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -0
  464. package/lib-amd/components/AreaChart/index.d.ts +2 -0
  465. package/lib-amd/components/AreaChart/index.js +7 -0
  466. package/lib-amd/components/AreaChart/index.js.map +1 -0
  467. package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +43 -0
  468. package/lib-amd/components/CommonComponents/CartesianChart.base.js +329 -0
  469. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -0
  470. package/lib-amd/components/CommonComponents/CartesianChart.d.ts +3 -0
  471. package/lib-amd/components/CommonComponents/CartesianChart.js +7 -0
  472. package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -0
  473. package/lib-amd/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
  474. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +166 -0
  475. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -0
  476. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +428 -0
  477. package/lib-amd/components/CommonComponents/CartesianChart.types.js +5 -0
  478. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -0
  479. package/lib-amd/components/CommonComponents/index.d.ts +2 -0
  480. package/lib-amd/components/CommonComponents/index.js +7 -0
  481. package/lib-amd/components/CommonComponents/index.js.map +1 -0
  482. package/lib-amd/components/DonutChart/Arc/Arc.d.ts +21 -0
  483. package/lib-amd/components/DonutChart/Arc/Arc.js +85 -0
  484. package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -0
  485. package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
  486. package/lib-amd/components/DonutChart/Arc/Arc.styles.js +33 -0
  487. package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +1 -0
  488. package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +124 -0
  489. package/lib-amd/components/DonutChart/Arc/Arc.types.js +5 -0
  490. package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +1 -0
  491. package/lib-amd/components/DonutChart/Arc/index.d.ts +2 -0
  492. package/lib-amd/components/DonutChart/Arc/index.js +7 -0
  493. package/lib-amd/components/DonutChart/Arc/index.js.map +1 -0
  494. package/lib-amd/components/DonutChart/DonutChart.base.d.ts +50 -0
  495. package/lib-amd/components/DonutChart/DonutChart.base.js +208 -0
  496. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -0
  497. package/lib-amd/components/DonutChart/DonutChart.d.ts +3 -0
  498. package/lib-amd/components/DonutChart/DonutChart.js +8 -0
  499. package/lib-amd/components/DonutChart/DonutChart.js.map +1 -0
  500. package/lib-amd/components/DonutChart/DonutChart.styles.d.ts +2 -0
  501. package/lib-amd/components/DonutChart/DonutChart.styles.js +36 -0
  502. package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -0
  503. package/lib-amd/components/DonutChart/DonutChart.types.d.ts +63 -0
  504. package/lib-amd/components/DonutChart/DonutChart.types.js +5 -0
  505. package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -0
  506. package/lib-amd/components/DonutChart/Pie/Pie.d.ts +15 -0
  507. package/lib-amd/components/DonutChart/Pie/Pie.js +69 -0
  508. package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -0
  509. package/lib-amd/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
  510. package/lib-amd/components/DonutChart/Pie/Pie.styles.js +24 -0
  511. package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +1 -0
  512. package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +96 -0
  513. package/lib-amd/components/DonutChart/Pie/Pie.types.js +5 -0
  514. package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +1 -0
  515. package/lib-amd/components/DonutChart/Pie/index.d.ts +2 -0
  516. package/lib-amd/components/DonutChart/Pie/index.js +7 -0
  517. package/lib-amd/components/DonutChart/Pie/index.js.map +1 -0
  518. package/lib-amd/components/DonutChart/index.d.ts +3 -0
  519. package/lib-amd/components/DonutChart/index.js +8 -0
  520. package/lib-amd/components/DonutChart/index.js.map +1 -0
  521. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +62 -0
  522. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +375 -0
  523. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
  524. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
  525. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +8 -0
  526. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
  527. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
  528. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +21 -0
  529. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
  530. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +83 -0
  531. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +5 -0
  532. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
  533. package/lib-amd/components/GroupedVerticalBarChart/index.d.ts +2 -0
  534. package/lib-amd/components/GroupedVerticalBarChart/index.js +7 -0
  535. package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -0
  536. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +147 -0
  537. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +492 -0
  538. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
  539. package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +3 -0
  540. package/lib-amd/components/HeatMapChart/HeatMapChart.js +7 -0
  541. package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +1 -0
  542. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
  543. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +29 -0
  544. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
  545. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
  546. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js +5 -0
  547. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
  548. package/lib-amd/components/HeatMapChart/index.d.ts +2 -0
  549. package/lib-amd/components/HeatMapChart/index.js +7 -0
  550. package/lib-amd/components/HeatMapChart/index.js.map +1 -0
  551. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +36 -0
  552. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +233 -0
  553. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
  554. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
  555. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +8 -0
  556. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
  557. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
  558. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +72 -0
  559. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
  560. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +172 -0
  561. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +11 -0
  562. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
  563. package/lib-amd/components/HorizontalBarChart/index.d.ts +3 -0
  564. package/lib-amd/components/HorizontalBarChart/index.js +8 -0
  565. package/lib-amd/components/HorizontalBarChart/index.js.map +1 -0
  566. package/lib-amd/components/Legends/Legends.base.d.ts +44 -0
  567. package/lib-amd/components/Legends/Legends.base.js +290 -0
  568. package/lib-amd/components/Legends/Legends.base.js.map +1 -0
  569. package/lib-amd/components/Legends/Legends.d.ts +3 -0
  570. package/lib-amd/components/Legends/Legends.js +7 -0
  571. package/lib-amd/components/Legends/Legends.js.map +1 -0
  572. package/lib-amd/components/Legends/Legends.styles.d.ts +2 -0
  573. package/lib-amd/components/Legends/Legends.styles.js +107 -0
  574. package/lib-amd/components/Legends/Legends.styles.js.map +1 -0
  575. package/lib-amd/components/Legends/Legends.types.d.ts +169 -0
  576. package/lib-amd/components/Legends/Legends.types.js +5 -0
  577. package/lib-amd/components/Legends/Legends.types.js.map +1 -0
  578. package/lib-amd/components/Legends/index.d.ts +3 -0
  579. package/lib-amd/components/Legends/index.js +8 -0
  580. package/lib-amd/components/Legends/index.js.map +1 -0
  581. package/lib-amd/components/Legends/shape.d.ts +9 -0
  582. package/lib-amd/components/Legends/shape.js +27 -0
  583. package/lib-amd/components/Legends/shape.js.map +1 -0
  584. package/lib-amd/components/LineChart/LineChart.base.d.ts +84 -0
  585. package/lib-amd/components/LineChart/LineChart.base.js +809 -0
  586. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -0
  587. package/lib-amd/components/LineChart/LineChart.d.ts +3 -0
  588. package/lib-amd/components/LineChart/LineChart.js +8 -0
  589. package/lib-amd/components/LineChart/LineChart.js.map +1 -0
  590. package/lib-amd/components/LineChart/LineChart.styles.d.ts +2 -0
  591. package/lib-amd/components/LineChart/LineChart.styles.js +12 -0
  592. package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -0
  593. package/lib-amd/components/LineChart/LineChart.types.d.ts +72 -0
  594. package/lib-amd/components/LineChart/LineChart.types.js +5 -0
  595. package/lib-amd/components/LineChart/LineChart.types.js.map +1 -0
  596. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
  597. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +95 -0
  598. package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
  599. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
  600. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +40 -0
  601. package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
  602. package/lib-amd/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
  603. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +40 -0
  604. package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
  605. package/lib-amd/components/LineChart/index.d.ts +3 -0
  606. package/lib-amd/components/LineChart/index.js +8 -0
  607. package/lib-amd/components/LineChart/index.js.map +1 -0
  608. package/lib-amd/components/PieChart/Arc/Arc.d.ts +12 -0
  609. package/lib-amd/components/PieChart/Arc/Arc.js +56 -0
  610. package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -0
  611. package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +2 -0
  612. package/lib-amd/components/PieChart/Arc/Arc.styles.js +13 -0
  613. package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +1 -0
  614. package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +60 -0
  615. package/lib-amd/components/PieChart/Arc/Arc.types.js +5 -0
  616. package/lib-amd/components/PieChart/Arc/Arc.types.js.map +1 -0
  617. package/lib-amd/components/PieChart/Arc/index.d.ts +2 -0
  618. package/lib-amd/components/PieChart/Arc/index.js +7 -0
  619. package/lib-amd/components/PieChart/Arc/index.js.map +1 -0
  620. package/lib-amd/components/PieChart/Pie/Pie.d.ts +10 -0
  621. package/lib-amd/components/PieChart/Pie/Pie.js +35 -0
  622. package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -0
  623. package/lib-amd/components/PieChart/Pie/Pie.styles.d.ts +2 -0
  624. package/lib-amd/components/PieChart/Pie/Pie.styles.js +12 -0
  625. package/lib-amd/components/PieChart/Pie/Pie.styles.js.map +1 -0
  626. package/lib-amd/components/PieChart/Pie/Pie.types.d.ts +46 -0
  627. package/lib-amd/components/PieChart/Pie/Pie.types.js +5 -0
  628. package/lib-amd/components/PieChart/Pie/Pie.types.js.map +1 -0
  629. package/lib-amd/components/PieChart/Pie/index.d.ts +2 -0
  630. package/lib-amd/components/PieChart/Pie/index.js +7 -0
  631. package/lib-amd/components/PieChart/Pie/index.js.map +1 -0
  632. package/lib-amd/components/PieChart/PieChart.base.d.ts +7 -0
  633. package/lib-amd/components/PieChart/PieChart.base.js +35 -0
  634. package/lib-amd/components/PieChart/PieChart.base.js.map +1 -0
  635. package/lib-amd/components/PieChart/PieChart.d.ts +3 -0
  636. package/lib-amd/components/PieChart/PieChart.js +8 -0
  637. package/lib-amd/components/PieChart/PieChart.js.map +1 -0
  638. package/lib-amd/components/PieChart/PieChart.styles.d.ts +2 -0
  639. package/lib-amd/components/PieChart/PieChart.styles.js +34 -0
  640. package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -0
  641. package/lib-amd/components/PieChart/PieChart.types.d.ts +63 -0
  642. package/lib-amd/components/PieChart/PieChart.types.js +5 -0
  643. package/lib-amd/components/PieChart/PieChart.types.js.map +1 -0
  644. package/lib-amd/components/PieChart/index.d.ts +2 -0
  645. package/lib-amd/components/PieChart/index.js +7 -0
  646. package/lib-amd/components/PieChart/index.js.map +1 -0
  647. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +95 -0
  648. package/lib-amd/components/SankeyChart/SankeyChart.base.js +669 -0
  649. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -0
  650. package/lib-amd/components/SankeyChart/SankeyChart.d.ts +3 -0
  651. package/lib-amd/components/SankeyChart/SankeyChart.js +8 -0
  652. package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -0
  653. package/lib-amd/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
  654. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +62 -0
  655. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -0
  656. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +83 -0
  657. package/lib-amd/components/SankeyChart/SankeyChart.types.js +5 -0
  658. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -0
  659. package/lib-amd/components/SankeyChart/index.d.ts +2 -0
  660. package/lib-amd/components/SankeyChart/index.js +7 -0
  661. package/lib-amd/components/SankeyChart/index.js.map +1 -0
  662. package/lib-amd/components/Sparkline/Sparkline.base.d.ts +20 -0
  663. package/lib-amd/components/Sparkline/Sparkline.base.js +74 -0
  664. package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -0
  665. package/lib-amd/components/Sparkline/Sparkline.d.ts +3 -0
  666. package/lib-amd/components/Sparkline/Sparkline.js +8 -0
  667. package/lib-amd/components/Sparkline/Sparkline.js.map +1 -0
  668. package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +2 -0
  669. package/lib-amd/components/Sparkline/Sparkline.styles.js +15 -0
  670. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -0
  671. package/lib-amd/components/Sparkline/Sparkline.types.d.ts +51 -0
  672. package/lib-amd/components/Sparkline/Sparkline.types.js +5 -0
  673. package/lib-amd/components/Sparkline/Sparkline.types.js.map +1 -0
  674. package/lib-amd/components/Sparkline/index.d.ts +2 -0
  675. package/lib-amd/components/Sparkline/index.js +7 -0
  676. package/lib-amd/components/Sparkline/index.js.map +1 -0
  677. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +56 -0
  678. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +351 -0
  679. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
  680. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
  681. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +8 -0
  682. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
  683. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
  684. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +93 -0
  685. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
  686. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +198 -0
  687. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +11 -0
  688. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
  689. package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +51 -0
  690. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +308 -0
  691. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
  692. package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +3 -0
  693. package/lib-amd/components/StackedBarChart/StackedBarChart.js +8 -0
  694. package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -0
  695. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
  696. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +108 -0
  697. package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
  698. package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +210 -0
  699. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js +5 -0
  700. package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
  701. package/lib-amd/components/StackedBarChart/index.d.ts +5 -0
  702. package/lib-amd/components/StackedBarChart/index.js +10 -0
  703. package/lib-amd/components/StackedBarChart/index.js.map +1 -0
  704. package/lib-amd/components/TreeChart/TreeChart.base.d.ts +18 -0
  705. package/lib-amd/components/TreeChart/TreeChart.base.js +314 -0
  706. package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -0
  707. package/lib-amd/components/TreeChart/TreeChart.d.ts +3 -0
  708. package/lib-amd/components/TreeChart/TreeChart.js +7 -0
  709. package/lib-amd/components/TreeChart/TreeChart.js.map +1 -0
  710. package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +2 -0
  711. package/lib-amd/components/TreeChart/TreeChart.styles.js +34 -0
  712. package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -0
  713. package/lib-amd/components/TreeChart/TreeChart.types.d.ts +197 -0
  714. package/lib-amd/components/TreeChart/TreeChart.types.js +28 -0
  715. package/lib-amd/components/TreeChart/TreeChart.types.js.map +1 -0
  716. package/lib-amd/components/TreeChart/index.d.ts +2 -0
  717. package/lib-amd/components/TreeChart/index.js +7 -0
  718. package/lib-amd/components/TreeChart/index.js.map +1 -0
  719. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +74 -0
  720. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +529 -0
  721. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
  722. package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
  723. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +8 -0
  724. package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
  725. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
  726. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +32 -0
  727. package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
  728. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +114 -0
  729. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js +5 -0
  730. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
  731. package/lib-amd/components/VerticalBarChart/index.d.ts +2 -0
  732. package/lib-amd/components/VerticalBarChart/index.js +7 -0
  733. package/lib-amd/components/VerticalBarChart/index.js.map +1 -0
  734. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +85 -0
  735. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +659 -0
  736. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
  737. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
  738. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +8 -0
  739. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
  740. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
  741. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +22 -0
  742. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
  743. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +142 -0
  744. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +5 -0
  745. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
  746. package/lib-amd/components/VerticalStackedBarChart/index.d.ts +2 -0
  747. package/lib-amd/components/VerticalStackedBarChart/index.js +7 -0
  748. package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -0
  749. package/lib-amd/index.d.ts +19 -0
  750. package/lib-amd/index.js +23 -0
  751. package/lib-amd/index.js.map +1 -0
  752. package/lib-amd/types/IDataPoint.d.ts +545 -0
  753. package/lib-amd/types/IDataPoint.js +5 -0
  754. package/lib-amd/types/IDataPoint.js.map +1 -0
  755. package/lib-amd/types/IEventAnnotation.d.ts +6 -0
  756. package/lib-amd/types/IEventAnnotation.js +5 -0
  757. package/lib-amd/types/IEventAnnotation.js.map +1 -0
  758. package/lib-amd/types/ILegendDataItem.d.ts +10 -0
  759. package/lib-amd/types/ILegendDataItem.js +5 -0
  760. package/lib-amd/types/ILegendDataItem.js.map +1 -0
  761. package/lib-amd/types/index.d.ts +2 -0
  762. package/lib-amd/types/index.js +7 -0
  763. package/lib-amd/types/index.js.map +1 -0
  764. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
  765. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +39 -0
  766. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
  767. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
  768. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +8 -0
  769. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
  770. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
  771. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +87 -0
  772. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
  773. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
  774. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js +5 -0
  775. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
  776. package/lib-amd/utilities/ChartHoverCard/index.d.ts +3 -0
  777. package/lib-amd/utilities/ChartHoverCard/index.js +8 -0
  778. package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -0
  779. package/lib-amd/utilities/FocusableTooltipText.d.ts +27 -0
  780. package/lib-amd/utilities/FocusableTooltipText.js +54 -0
  781. package/lib-amd/utilities/FocusableTooltipText.js.map +1 -0
  782. package/lib-amd/utilities/colors.d.ts +51 -0
  783. package/lib-amd/utilities/colors.js +139 -0
  784. package/lib-amd/utilities/colors.js.map +1 -0
  785. package/lib-amd/utilities/index.d.ts +3 -0
  786. package/lib-amd/utilities/index.js +8 -0
  787. package/lib-amd/utilities/index.js.map +1 -0
  788. package/lib-amd/utilities/utilities.d.ts +377 -0
  789. package/lib-amd/utilities/utilities.js +888 -0
  790. package/lib-amd/utilities/utilities.js.map +1 -0
  791. package/lib-amd/version.d.ts +1 -0
  792. package/lib-amd/version.js +6 -0
  793. package/lib-amd/version.js.map +1 -0
  794. package/lib-commonjs/version.js +1 -1
  795. package/lib-commonjs/version.js.map +1 -1
  796. package/package.json +5 -4
@@ -0,0 +1,669 @@
1
+ define(["require", "exports", "tslib", "react", "@fluentui/react/lib/Utilities", "d3-sankey", "d3-shape", "d3-array", "../../index", "@fluentui/react/lib/Callout", "d3-selection", "@fluentui/react-focus"], function (require, exports, tslib_1, React, Utilities_1, d3Sankey, d3_shape_1, d3_array_1, index_1, Callout_1, d3_selection_1, react_focus_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SankeyChartBase = void 0;
5
+ var getClassNames = Utilities_1.classNamesFunction();
6
+ var PADDING_PERCENTAGE = 0.3;
7
+ var NON_SELECTED_NODE_AND_STREAM_COLOR = '#757575';
8
+ var DEFAULT_NODE_COLORS = [
9
+ { fillColor: '#00758F', borderColor: '#002E39' },
10
+ { fillColor: '#77004D', borderColor: '#43002C' },
11
+ { fillColor: '#4F6BED', borderColor: '#3B52B4' },
12
+ { fillColor: '#937600', borderColor: '#6D5700' },
13
+ { fillColor: '#286EA8', borderColor: '#00457E' },
14
+ { fillColor: '#A43FB1', borderColor: '#7C158A' },
15
+ { fillColor: '#CC3595', borderColor: '#7F215D' },
16
+ { fillColor: '#0E7878', borderColor: '#004E4E' },
17
+ { fillColor: '#8764B8', borderColor: '#4B3867' },
18
+ { fillColor: '#9C663F', borderColor: '#6D4123' },
19
+ ];
20
+ var MIN_HEIGHT_FOR_DOUBLINE_TYPE = 36;
21
+ var MIN_HEIGHT_FOR_TYPE = 24;
22
+ var REST_STREAM_OPACITY = 1;
23
+ var NON_SELECTED_OPACITY = 1;
24
+ var SELECTED_STREAM_OPACITY = 0.3;
25
+ var NON_SELECTED_STREAM_BORDER_OPACITY = 0.5;
26
+ var DEFAULT_TEXT_COLOR = '#323130';
27
+ var NON_SELECTED_TEXT_COLOR = '#FFFFFF';
28
+ var SankeyChartBase = /** @class */ (function (_super) {
29
+ tslib_1.__extends(SankeyChartBase, _super);
30
+ function SankeyChartBase(props) {
31
+ var _this = _super.call(this, props) || this;
32
+ _this._isRtl = Utilities_1.getRTL();
33
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
34
+ _this._onCloseCallout = function () {
35
+ _this.setState({
36
+ isCalloutVisible: false,
37
+ refSelected: undefined,
38
+ descriptionMessage: '',
39
+ });
40
+ };
41
+ _this._onBlur = function () {
42
+ /**/
43
+ };
44
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
45
+ _this._fillNodeColors = function (singleNode) {
46
+ if (!_this.state.selectedState) {
47
+ return singleNode.color;
48
+ }
49
+ else if (_this.state.selectedState && _this.state.selectedNodes.has(singleNode.index) && _this.state.selectedNode) {
50
+ return _this.state.selectedNode.color;
51
+ }
52
+ else if (_this.state.selectedState && !_this.state.selectedNode) {
53
+ return singleNode.color;
54
+ }
55
+ };
56
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
57
+ _this._fillNodeBorder = function (singleNode) {
58
+ if (!_this.state.selectedState) {
59
+ return singleNode.borderColor;
60
+ }
61
+ else if (_this.state.selectedState && _this.state.selectedNodes.has(singleNode.index) && _this.state.selectedNode) {
62
+ return _this.state.selectedNode.borderColor;
63
+ }
64
+ else if (_this.state.selectedState && _this.state.selectedNodes.has(singleNode.index)) {
65
+ return singleNode.borderColor;
66
+ }
67
+ return singleNode.borderColor;
68
+ };
69
+ _this.state = {
70
+ containerHeight: 468,
71
+ containerWidth: 912,
72
+ selectedState: false,
73
+ selectedLinks: new Set(),
74
+ selectedNodes: new Set(),
75
+ shouldOverflow: false,
76
+ isCalloutVisible: false,
77
+ };
78
+ _this._calloutId = Utilities_1.getId('callout');
79
+ _this._linkId = Utilities_1.getId('link');
80
+ _this._margins = { top: 36, right: 48, bottom: 32, left: 48 };
81
+ _this._preRenderLayout();
82
+ _this._normalizeData = Utilities_1.memoizeFunction(function (data) { return _this._normalizeSankeyData(data); });
83
+ return _this;
84
+ }
85
+ SankeyChartBase.prototype.componentDidMount = function () {
86
+ this._fitParentContainer();
87
+ };
88
+ SankeyChartBase.prototype.componentDidUpdate = function (prevProps) {
89
+ if (prevProps.shouldResize !== this.props.shouldResize) {
90
+ this._fitParentContainer();
91
+ }
92
+ };
93
+ SankeyChartBase.prototype.componentWillUnmount = function () {
94
+ cancelAnimationFrame(this._reqID);
95
+ };
96
+ SankeyChartBase.prototype.render = function () {
97
+ var _this = this;
98
+ var _a = this.props, theme = _a.theme, className = _a.className, styles = _a.styles, pathColor = _a.pathColor;
99
+ this._classNames = getClassNames(styles, {
100
+ theme: theme,
101
+ width: this.state.containerWidth,
102
+ height: this.state.containerHeight,
103
+ pathColor: pathColor,
104
+ className: className,
105
+ });
106
+ // We are using the this._margins.left and this._margins.top in sankey extent while constructing the layout
107
+ var _b = this._preRenderLayout(), height = _b.height, width = _b.width;
108
+ this._normalizeData(this.props.data.SankeyChartData);
109
+ var nodePadding = 8;
110
+ nodePadding = this._adjustPadding(this._sankey, height - 6, this._nodesInColumn);
111
+ this._sankey.nodePadding(nodePadding);
112
+ this._sankey(this.props.data.SankeyChartData);
113
+ this._populateNodeActualValue(this.props.data.SankeyChartData);
114
+ this._assignNodeColors();
115
+ var nodeData = this._createNodes(width);
116
+ var linkData = this._createLinks();
117
+ var calloutProps = {
118
+ isCalloutVisible: this.state.isCalloutVisible,
119
+ directionalHint: Callout_1.DirectionalHint.topAutoEdge,
120
+ id: "toolTip" + this._calloutId,
121
+ target: this.state.refSelected,
122
+ color: this.state.color,
123
+ XValue: this.state.xCalloutValue,
124
+ YValue: this.state.yCalloutValue ? this.state.yCalloutValue : this.state.dataForHoverCard,
125
+ descriptionMessage: this.state.descriptionMessage,
126
+ isBeakVisible: false,
127
+ gapSpace: 15,
128
+ onDismiss: this._onCloseCallout,
129
+ className: this._classNames.calloutContentRoot,
130
+ preventDismissOnLostFocus: true,
131
+ };
132
+ return (React.createElement("div", { className: this._classNames.root, role: 'presentation', ref: function (rootElem) { return (_this.chartContainer = rootElem); }, onMouseLeave: this._onCloseCallout },
133
+ React.createElement(react_focus_1.FocusZone, { direction: react_focus_1.FocusZoneDirection.bidirectional, isCircularNavigation: true, handleTabKey: react_focus_1.FocusZoneTabbableElements.all },
134
+ React.createElement("svg", { width: width, height: height, id: Utilities_1.getId('sankeyChart') },
135
+ React.createElement("g", { className: this._classNames.links, strokeOpacity: 1 }, linkData),
136
+ React.createElement("g", { className: this._classNames.nodes }, nodeData),
137
+ calloutProps.isCalloutVisible && (React.createElement(Callout_1.Callout, tslib_1.__assign({}, calloutProps),
138
+ React.createElement(index_1.ChartHoverCard, { XValue: calloutProps.XValue, YValue: calloutProps.YValue, color: calloutProps.color, descriptionMessage: calloutProps.descriptionMessage ? calloutProps.descriptionMessage : '' })))))));
139
+ };
140
+ SankeyChartBase.prototype._preRenderLayout = function () {
141
+ var width = this.state.containerWidth - this._margins.right;
142
+ var height = this.state.containerHeight - this._margins.bottom > 0 ? this.state.containerHeight - this._margins.bottom : 0;
143
+ this._sankey = d3Sankey
144
+ .sankey()
145
+ .nodeWidth(124)
146
+ .extent([
147
+ [this._margins.left, this._margins.top],
148
+ [width - 1, height - 6],
149
+ ])
150
+ .nodeAlign(this._isRtl ? d3Sankey.sankeyRight : d3Sankey.sankeyJustify);
151
+ return { height: height, width: width };
152
+ };
153
+ /**
154
+ * This is used for calculating the node non normalized value based on link non normalized value.
155
+ *
156
+ */
157
+ SankeyChartBase.prototype._populateNodeActualValue = function (data) {
158
+ data.links.forEach(function (link) {
159
+ if (!link.unnormalizedValue) {
160
+ link.unnormalizedValue = link.value;
161
+ }
162
+ });
163
+ data.nodes.forEach(function (node) {
164
+ node.actualValue = Math.max(d3_array_1.sum(node.sourceLinks, function (link) { return link.unnormalizedValue; }), d3_array_1.sum(node.targetLinks, function (link) { return link.unnormalizedValue; }));
165
+ });
166
+ };
167
+ SankeyChartBase.prototype._normalizeSankeyData = function (data) {
168
+ this._nodesInColumn = this._populateNodeInColumns(data, this._sankey);
169
+ this._adjustOnePercentHeightNodes(this._nodesInColumn);
170
+ };
171
+ /**
172
+ *
173
+ * This is used to group nodes by column index.
174
+ */
175
+ SankeyChartBase.prototype._populateNodeInColumns = function (graph, sankey) {
176
+ sankey(graph);
177
+ var nodesInColumn = {};
178
+ graph.nodes.forEach(function (node) {
179
+ var columnId = node.layer;
180
+ if (nodesInColumn[columnId]) {
181
+ nodesInColumn[columnId].push(node);
182
+ }
183
+ else {
184
+ nodesInColumn[columnId] = [node];
185
+ }
186
+ });
187
+ return nodesInColumn;
188
+ };
189
+ /**
190
+ * This is used to normalize the nodes value whose value is less than 1% of the total column value.
191
+ *
192
+ */
193
+ SankeyChartBase.prototype._adjustOnePercentHeightNodes = function (nodesInColumn) {
194
+ var _this = this;
195
+ var totalColumnValue = Object.values(nodesInColumn).map(function (column) {
196
+ return d3_array_1.sum(column, function (node) { return node.value; });
197
+ });
198
+ totalColumnValue.forEach(function (columnValue, index) {
199
+ var totalPercentage = 0;
200
+ nodesInColumn[index].forEach(function (node) {
201
+ var nodePercentage = (node.value / columnValue) * 100;
202
+ node.actualValue = node.value;
203
+ //if the value is less than 1% then we are making it as 1% of total .
204
+ if (nodePercentage < 1) {
205
+ node.value = 0.01 * columnValue;
206
+ totalPercentage = totalPercentage + 1;
207
+ }
208
+ else {
209
+ totalPercentage = totalPercentage + nodePercentage;
210
+ }
211
+ });
212
+ //since we have adjusted the value to be 1% but we need to keep the sum of the percentage value under 100.
213
+ var scalingRatio = totalPercentage !== 0 ? totalPercentage / 100 : 1;
214
+ if (scalingRatio > 1) {
215
+ nodesInColumn[index].forEach(function (node) {
216
+ node.value = node.value / scalingRatio;
217
+ _this._changeColumnValue(node, node.actualValue, node.value);
218
+ });
219
+ }
220
+ });
221
+ };
222
+ /**
223
+ *
224
+ * This is used for normalizing each links value for reflecting the normalized node value.
225
+ */
226
+ SankeyChartBase.prototype._changeColumnValue = function (node, originalValue, normalizedValue) {
227
+ node.sourceLinks.forEach(function (link) {
228
+ link.unnormalizedValue = link.value;
229
+ var linkRatio = link.value / originalValue;
230
+ link.value = normalizedValue * linkRatio;
231
+ });
232
+ node.targetLinks.forEach(function (link) {
233
+ link.unnormalizedValue = link.value;
234
+ var linkRatio = link.value / originalValue;
235
+ link.value = normalizedValue * linkRatio;
236
+ });
237
+ };
238
+ /**
239
+ *
240
+ * This is used to introduce dynamic padding for cases where the number of nodes in a column is huge
241
+ * so that we maintain a node to space ratio for such columns as if we fail to do so the
242
+ * chart is devoid of nodes and only shows links.
243
+ */
244
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
245
+ SankeyChartBase.prototype._adjustPadding = function (sankey, height, nodesInColumn) {
246
+ var padding = this._sankey.nodePadding();
247
+ Object.values(nodesInColumn).forEach(function (column) {
248
+ var minPadding = PADDING_PERCENTAGE * height;
249
+ var toatlPaddingInColumn = height - d3_array_1.sum(column, function (node) { return node.y1 - node.y0; });
250
+ if (minPadding < toatlPaddingInColumn) {
251
+ //Here we are calculating the min of default and calculated padding, we will not increase the padding
252
+ //in any scenario.
253
+ padding = Math.min(padding, minPadding / (column.length - 1));
254
+ }
255
+ });
256
+ return padding;
257
+ };
258
+ SankeyChartBase.prototype._createLinks = function () {
259
+ var _this = this;
260
+ var links = [];
261
+ if (this.props.data.SankeyChartData) {
262
+ this.props.data.SankeyChartData.links.forEach(function (singleLink, index) {
263
+ var onMouseOut = function () {
264
+ _this._onStreamLeave(singleLink);
265
+ };
266
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
267
+ var data = function (d) {
268
+ return [
269
+ { x: d.source.x1, y0: d.y0 + d.width / 2, y1: d.y0 - d.width / 2 },
270
+ { x: d.target.x0, y0: d.y1 + d.width / 2, y1: d.y1 - d.width / 2 },
271
+ ];
272
+ };
273
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
274
+ var dataPoints = data(singleLink);
275
+ var linkArea = d3_shape_1.area()
276
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
277
+ .x(function (p) { return p.x; })
278
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
279
+ .y0(function (p) { return p.y0; })
280
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
281
+ .y1(function (p) { return p.y1; })
282
+ .curve(d3_shape_1.curveBumpX);
283
+ var gradientUrl = "url(#gradient-" + _this._linkId + "-" + index + ")";
284
+ var link = (React.createElement("g", { key: _this._linkId + "-" + index },
285
+ React.createElement("defs", null,
286
+ React.createElement("linearGradient", { id: "gradient-" + _this._linkId + "-" + index, x1: "0%", y1: "0%", x2: "100%", y2: "0%" },
287
+ React.createElement("stop", { offset: "0", stopColor: singleLink.source.color }),
288
+ React.createElement("stop", { offset: "100%", stopColor: singleLink.target.color }))),
289
+ React.createElement("path", { d: linkArea(dataPoints), id: Utilities_1.getId('link'), fill: _this._fillStreamColors(singleLink, gradientUrl), stroke: _this._fillStreamBorder(singleLink, gradientUrl), strokeWidth: "2", strokeOpacity: _this._getOpacityStreamBorder(singleLink), onMouseOver: _this._onStreamHover.bind(_this, singleLink), onMouseOut: onMouseOut, onFocus: _this._onFocusLink.bind(_this, singleLink), onBlur: _this._onBlur, fillOpacity: _this._getOpacityStream(singleLink), "data-is-focusable": true, "aria-label": 'link from' +
290
+ singleLink.source.name +
291
+ 'to' +
292
+ singleLink.target.name +
293
+ 'with weight' +
294
+ singleLink.unnormalizedValue, role: "img" })));
295
+ links.push(link);
296
+ });
297
+ }
298
+ return links;
299
+ };
300
+ SankeyChartBase.prototype._createNodes = function (width) {
301
+ var _this = this;
302
+ var nodes = [];
303
+ if (this.props.data.SankeyChartData) {
304
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
305
+ this.props.data.SankeyChartData.nodes.forEach(function (singleNode, index) {
306
+ var onMouseOut = function () {
307
+ _this._onLeave(singleNode);
308
+ };
309
+ var height = singleNode.y1 - singleNode.y0 > 0 ? singleNode.y1 - singleNode.y0 : 0;
310
+ var padding = 8;
311
+ var textLengthForNodeWeight = 0;
312
+ // If the nodeWeight is in the same line as node description an extra padding
313
+ // of 6 px is required between node description and node weight.
314
+ if (height < MIN_HEIGHT_FOR_DOUBLINE_TYPE) {
315
+ padding = padding + 6;
316
+ var tspan = d3_selection_1.select('.nodeName').append('text').attr('class', 'tempText').append('tspan').text(null);
317
+ tspan.text(singleNode.actualValue);
318
+ if (tspan.node() !== null) {
319
+ textLengthForNodeWeight = tspan.node().getComputedTextLength();
320
+ padding = padding + textLengthForNodeWeight;
321
+ }
322
+ tspan.text(null);
323
+ d3_selection_1.selectAll('.tempText').remove();
324
+ }
325
+ // Since the total width of the node is 124 and we are giving margin of 8px from the left .
326
+ //So the actual value on which it will be truncated is 124-8=116.
327
+ var truncatedname = _this._truncateText(singleNode.name, 116, padding);
328
+ var isTruncated = truncatedname.slice(-3) === '...';
329
+ var id = Utilities_1.getId('tooltip');
330
+ var div = d3_selection_1.select('body')
331
+ .append('div')
332
+ .attr('id', id)
333
+ .attr('class', _this._classNames.toolTip)
334
+ .style('opacity', 0);
335
+ var nodeId = Utilities_1.getId('nodeBar');
336
+ var node = (React.createElement("g", { key: index, id: Utilities_1.getId('nodeGElement') },
337
+ React.createElement("rect", { x: singleNode.x0, y: singleNode.y0, height: height, width: singleNode.x1 - singleNode.x0, fill: _this._fillNodeColors(singleNode), id: nodeId, onMouseOver: _this._onHover.bind(_this, singleNode), onMouseOut: onMouseOut, onFocus: _this._onCloseCallout.bind(_this), stroke: _this._fillNodeBorder(singleNode), strokeWidth: "2", opacity: "1", "data-is-focusable": true, "aria-label": 'node' + ("" + singleNode.name) + 'with weight' + ("" + singleNode.actualValue), role: "img" }),
338
+ singleNode.y1 - singleNode.y0 > MIN_HEIGHT_FOR_TYPE && (React.createElement("g", { className: _this._classNames.nodeTextContainer },
339
+ React.createElement("g", { className: "nodeName" },
340
+ React.createElement("text", { id: nodeId + "-name", x: singleNode.x0, y: singleNode.y0, dy: '1.2em', dx: '0.4em', textAnchor: _this._isRtl ? 'end' : 'start', fontWeight: "regular", "aria-hidden": "true", fill: !(!_this.state.selectedState ||
341
+ (_this.state.selectedState &&
342
+ _this.state.selectedNodes.has(singleNode.index) &&
343
+ _this.state.selectedNode) ||
344
+ (_this.state.selectedState && !_this.state.selectedNode))
345
+ ? DEFAULT_TEXT_COLOR
346
+ : NON_SELECTED_TEXT_COLOR, fontSize: 10, onMouseOver: _this._showTooltip.bind(_this, singleNode.name, isTruncated, div), onMouseOut: _this._hideTooltip.bind(_this, div) }, truncatedname)),
347
+ React.createElement("text", { x: height > MIN_HEIGHT_FOR_DOUBLINE_TYPE ? singleNode.x0 : singleNode.x1 - textLengthForNodeWeight - 8, y: singleNode.y0, dy: height > MIN_HEIGHT_FOR_DOUBLINE_TYPE ? '2em' : '1em', dx: height > MIN_HEIGHT_FOR_DOUBLINE_TYPE ? '0.4em' : '0em', textAnchor: _this._isRtl ? 'end' : 'start', fontWeight: "bold", "aria-hidden": "true", fill: !(!_this.state.selectedState ||
348
+ (_this.state.selectedState &&
349
+ _this.state.selectedNodes.has(singleNode.index) &&
350
+ _this.state.selectedNode) ||
351
+ (_this.state.selectedState && !_this.state.selectedNode))
352
+ ? DEFAULT_TEXT_COLOR
353
+ : NON_SELECTED_TEXT_COLOR, fontSize: 14 }, singleNode.actualValue)))));
354
+ nodes.push(node);
355
+ });
356
+ return nodes;
357
+ }
358
+ };
359
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
360
+ SankeyChartBase.prototype._onLeave = function (singleNode) {
361
+ if (this.state.selectedState) {
362
+ this.setState({
363
+ selectedState: false,
364
+ selectedNodes: new Set(),
365
+ selectedLinks: new Set(),
366
+ selectedNode: undefined,
367
+ });
368
+ }
369
+ };
370
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
371
+ SankeyChartBase.prototype._onHover = function (singleNode, mouseEvent) {
372
+ mouseEvent.persist();
373
+ this._onCloseCallout();
374
+ if (!this.state.selectedState) {
375
+ var selectedLinks = this._getSelectedLinks(singleNode);
376
+ var selectedNodes = this._getSelectedNodes(selectedLinks);
377
+ selectedNodes.push(singleNode);
378
+ this.setState({
379
+ selectedState: true,
380
+ selectedNodes: new Set(Array.from(selectedNodes).map(function (node) { return node.index; })),
381
+ selectedLinks: new Set(Array.from(selectedLinks).map(function (link) { return link.index; })),
382
+ selectedNode: singleNode,
383
+ refSelected: mouseEvent,
384
+ isCalloutVisible: singleNode.y1 - singleNode.y0 < MIN_HEIGHT_FOR_TYPE,
385
+ color: singleNode.color,
386
+ xCalloutValue: singleNode.name,
387
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
388
+ yCalloutValue: singleNode.actualValue,
389
+ });
390
+ }
391
+ };
392
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
393
+ SankeyChartBase.prototype._onStreamHover = function (singleLink, mouseEvent) {
394
+ mouseEvent.persist();
395
+ this._onCloseCallout();
396
+ if (!this.state.selectedState) {
397
+ var _a = this._getSelectedLinksforStreamHover(singleLink), selectedLinks = _a.selectedLinks, selectedNodes = _a.selectedNodes;
398
+ this.setState({
399
+ selectedState: true,
400
+ selectedNodes: new Set(Array.from(selectedNodes).map(function (node) { return node.index; })),
401
+ selectedLinks: new Set(Array.from(selectedLinks).map(function (link) { return link.index; })),
402
+ refSelected: mouseEvent,
403
+ selectedLink: singleLink,
404
+ isCalloutVisible: true,
405
+ color: singleLink.source.color,
406
+ xCalloutValue: singleLink.target.name,
407
+ yCalloutValue: singleLink.unnormalizedValue.toString(),
408
+ descriptionMessage: 'from ' + singleLink.source.name,
409
+ });
410
+ }
411
+ };
412
+ SankeyChartBase.prototype._onStreamLeave = function (singleLink) {
413
+ if (this.state.selectedState) {
414
+ this.setState({
415
+ selectedState: false,
416
+ selectedNodes: new Set(),
417
+ selectedLinks: new Set(),
418
+ selectedLink: undefined,
419
+ });
420
+ }
421
+ };
422
+ SankeyChartBase.prototype._onFocusLink = function (singleLink, element) {
423
+ element.persist();
424
+ this._onCloseCallout();
425
+ this.setState({
426
+ refSelected: element.currentTarget,
427
+ selectedLink: singleLink,
428
+ isCalloutVisible: true,
429
+ color: singleLink.source.color,
430
+ xCalloutValue: singleLink.target.name,
431
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
432
+ yCalloutValue: singleLink.source.actualValue,
433
+ descriptionMessage: 'from ' + singleLink.source.name,
434
+ });
435
+ };
436
+ /**
437
+ * This is used to assign node fillcolors and borderColor cyclically when the user doesnt
438
+ * provide color to individual node.
439
+ */
440
+ SankeyChartBase.prototype._assignNodeColors = function () {
441
+ var colors;
442
+ var borders;
443
+ if (this.props.colorsForNodes && this.props.borderColorsForNodes) {
444
+ colors = this.props.colorsForNodes;
445
+ borders = this.props.borderColorsForNodes;
446
+ }
447
+ else {
448
+ colors = DEFAULT_NODE_COLORS.map(function (color) { return color.fillColor; });
449
+ borders = DEFAULT_NODE_COLORS.map(function (color) { return color.borderColor; });
450
+ }
451
+ var currentIndex = 0;
452
+ this.props.data.SankeyChartData.nodes.forEach(function (node) {
453
+ if (!node.color && !node.borderColor) {
454
+ node.color = colors[currentIndex];
455
+ node.borderColor = borders[currentIndex];
456
+ }
457
+ else if (node.color && !node.borderColor) {
458
+ node.borderColor = '#757575';
459
+ }
460
+ else if (node.borderColor && !node.color) {
461
+ node.color = '#F5F5F5';
462
+ }
463
+ currentIndex = (currentIndex + 1) % colors.length;
464
+ });
465
+ };
466
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
467
+ SankeyChartBase.prototype._fillStreamColors = function (singleLink, gradientUrl) {
468
+ if (this.state.selectedState && this.state.selectedLinks.has(singleLink.index) && this.state.selectedNode) {
469
+ return this.state.selectedNode.color;
470
+ }
471
+ else if (this.state.selectedState && this.state.selectedLinks.has(singleLink.index)) {
472
+ return gradientUrl;
473
+ }
474
+ };
475
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
476
+ SankeyChartBase.prototype._fillStreamBorder = function (singleLink, gradientUrl) {
477
+ if (!this.state.selectedState) {
478
+ return NON_SELECTED_NODE_AND_STREAM_COLOR;
479
+ }
480
+ else if (this.state.selectedState && this.state.selectedLinks.has(singleLink.index) && this.state.selectedNode) {
481
+ return this.state.selectedNode.borderColor;
482
+ }
483
+ else if (this.state.selectedState && this.state.selectedLinks.has(singleLink.index)) {
484
+ return gradientUrl;
485
+ }
486
+ return NON_SELECTED_NODE_AND_STREAM_COLOR;
487
+ };
488
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
489
+ SankeyChartBase.prototype._getSelectedNodes = function (selectedLinks) {
490
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
491
+ var nodes = [];
492
+ selectedLinks.forEach(function (link) {
493
+ nodes.push(link.target);
494
+ if (nodes.indexOf(link.source) === -1) {
495
+ nodes.push(link.source);
496
+ }
497
+ });
498
+ return nodes;
499
+ };
500
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
501
+ SankeyChartBase.prototype._getSelectedLinks = function (singleNode) {
502
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, no-array-constructor
503
+ var q = new Array();
504
+ var finalLinks = new Set();
505
+ singleNode.sourceLinks.forEach(function (link) {
506
+ q.push(link);
507
+ finalLinks.add(link);
508
+ });
509
+ while (q.length > 0) {
510
+ var poppedLink = q.shift();
511
+ var node = poppedLink.target;
512
+ if (node && node.sourceLinks) {
513
+ node.sourceLinks.forEach(function (link) {
514
+ finalLinks.add(link);
515
+ q.push(link);
516
+ });
517
+ }
518
+ }
519
+ if (singleNode.targetLinks) {
520
+ singleNode.targetLinks.forEach(function (link) {
521
+ q.push(link);
522
+ finalLinks.add(link);
523
+ });
524
+ }
525
+ while (q.length > 0) {
526
+ var poppedLink = q.shift();
527
+ var node = poppedLink.source;
528
+ if (node && node.targetLinks) {
529
+ node.targetLinks.forEach(function (link) {
530
+ finalLinks.add(link);
531
+ q.push(link);
532
+ });
533
+ }
534
+ }
535
+ return finalLinks;
536
+ };
537
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
538
+ SankeyChartBase.prototype._getSelectedLinksforStreamHover = function (singleLink) {
539
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, no-array-constructor
540
+ var q = new Array();
541
+ var finalLinks = new Set();
542
+ var finalNodes = new Set();
543
+ q.push(singleLink.source);
544
+ finalLinks.add(singleLink);
545
+ while (q.length > 0) {
546
+ var poppedNode = q.shift();
547
+ finalNodes.add(poppedNode);
548
+ if (poppedNode.targetLinks && poppedNode.targetLinks.length > 0) {
549
+ poppedNode.targetLinks.forEach(function (link) {
550
+ q.push(link.source);
551
+ finalLinks.add(link);
552
+ });
553
+ }
554
+ }
555
+ q.push(singleLink.target);
556
+ while (q.length > 0) {
557
+ var poppedNode = q.shift();
558
+ finalNodes.add(poppedNode);
559
+ if (poppedNode.sourceLinks && poppedNode.sourceLinks.length > 0) {
560
+ poppedNode.sourceLinks.forEach(function (link) {
561
+ q.push(link.target);
562
+ finalLinks.add(link);
563
+ });
564
+ }
565
+ }
566
+ return {
567
+ selectedLinks: finalLinks,
568
+ selectedNodes: finalNodes,
569
+ };
570
+ };
571
+ SankeyChartBase.prototype._getOpacityStream = function (singleLink) {
572
+ if (this.state.selectedState) {
573
+ if (!this.state.selectedLinks.has(singleLink.index)) {
574
+ return NON_SELECTED_OPACITY;
575
+ }
576
+ else if (this.state.selectedState &&
577
+ this.state.selectedLinks.has(singleLink.index) &&
578
+ !this.state.selectedNode) {
579
+ return SELECTED_STREAM_OPACITY;
580
+ }
581
+ }
582
+ return REST_STREAM_OPACITY;
583
+ };
584
+ SankeyChartBase.prototype._getOpacityStreamBorder = function (singleLink) {
585
+ if (this.state.selectedState && !this.state.selectedLinks.has(singleLink.index) && !this.state.selectedNode) {
586
+ return NON_SELECTED_STREAM_BORDER_OPACITY;
587
+ }
588
+ return NON_SELECTED_OPACITY;
589
+ };
590
+ SankeyChartBase.prototype._fitParentContainer = function () {
591
+ var _this = this;
592
+ var _a = this.state, containerWidth = _a.containerWidth, containerHeight = _a.containerHeight;
593
+ this._reqID = requestAnimationFrame(function () {
594
+ var container = _this.props.parentRef ? _this.props.parentRef : _this.chartContainer;
595
+ var currentContainerWidth = container.getBoundingClientRect().width;
596
+ var currentContainerHeight = container.getBoundingClientRect().height;
597
+ var shouldResize = containerWidth !== currentContainerWidth || containerHeight !== currentContainerHeight;
598
+ if (shouldResize) {
599
+ _this.setState({
600
+ containerWidth: currentContainerWidth,
601
+ containerHeight: currentContainerHeight,
602
+ });
603
+ }
604
+ });
605
+ };
606
+ /**
607
+ *
608
+ * @param text is the text which we are trying to truncate
609
+ * @param rectangleWidth is the width of the rectangle which will contain the text
610
+ * @param padding is the space we need to leave between the rect lines and other text
611
+ * @param nodeWeight is the text if present needs to be accomodate in the same line as text.
612
+ * @returns the truncated text , if truncated given the above parameters.
613
+ */
614
+ SankeyChartBase.prototype._truncateText = function (text, rectangleWidth, padding) {
615
+ var textLengthForNodeName = rectangleWidth - padding;
616
+ var elipsisLength = 0;
617
+ var tspan = d3_selection_1.select('.nodeName')
618
+ .append('text')
619
+ .attr('class', 'tempText')
620
+ .attr('font-size', '10')
621
+ .append('tspan')
622
+ .text(null);
623
+ tspan.text(text);
624
+ if (tspan.node() !== null && tspan.node().getComputedTextLength() <= textLengthForNodeName) {
625
+ return text;
626
+ }
627
+ tspan.text(null);
628
+ tspan.text('...');
629
+ if (tspan.node() !== null) {
630
+ elipsisLength = tspan.node().getComputedTextLength();
631
+ }
632
+ tspan.text(null);
633
+ var line = '';
634
+ for (var i = 0; i < text.length; i++) {
635
+ line += text[i];
636
+ tspan.text(line);
637
+ if (tspan.node() !== null) {
638
+ var w = tspan.node().getComputedTextLength();
639
+ if (w >= textLengthForNodeName - elipsisLength) {
640
+ line = line.slice(0, -1);
641
+ line += '...';
642
+ break;
643
+ }
644
+ }
645
+ }
646
+ tspan.text(null);
647
+ d3_selection_1.selectAll('.tempText').remove();
648
+ return line;
649
+ };
650
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
651
+ SankeyChartBase.prototype._showTooltip = function (text, checkTrcuncated, div, evt) {
652
+ if (checkTrcuncated) {
653
+ //Fixing tooltip position by attaching it to the element rather than page
654
+ div.style('opacity', 0.9);
655
+ div
656
+ .html(text)
657
+ .style('left', evt.pageX + 'px')
658
+ .style('top', evt.pageY - 28 + 'px');
659
+ }
660
+ };
661
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
662
+ SankeyChartBase.prototype._hideTooltip = function (div) {
663
+ div.style('opacity', 0);
664
+ };
665
+ return SankeyChartBase;
666
+ }(React.Component));
667
+ exports.SankeyChartBase = SankeyChartBase;
668
+ });
669
+ //# sourceMappingURL=SankeyChart.base.js.map