@spteck/react-controls-v2 2.0.18 → 2.2.1

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 (662) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +143 -387
  3. package/dist/LocalizationProvider-BLjmybBa.cjs +2 -0
  4. package/dist/LocalizationProvider-BSlUf0tp.js +497 -0
  5. package/dist/_arrayEach-CnIMt1eB.js +61 -0
  6. package/dist/_arrayEach-vx8gLv03.cjs +2 -0
  7. package/dist/abstractions/ILocalizationProvider.d.ts +52 -0
  8. package/dist/abstractions/index.d.ts +1 -0
  9. package/dist/abstractions/providers/DefaultLocalizationProvider.d.ts +52 -0
  10. package/dist/abstractions/providers/LocalizationProvider.d.ts +47 -0
  11. package/dist/abstractions/providers/index.d.ts +3 -1
  12. package/dist/ar-C1pLt8fa.js +219 -0
  13. package/dist/ar-Jzw7PLrc.cjs +2 -0
  14. package/dist/arc-DPTV8xm_.js +132 -0
  15. package/dist/arc-fdHOvWdS.cjs +2 -0
  16. package/dist/architecture-7HQA4BMR-BAUhgjE2.js +6 -0
  17. package/dist/architecture-7HQA4BMR-DwCjpO72.cjs +2 -0
  18. package/dist/architectureDiagram-VXUJARFQ-B5yGOjRk.js +8680 -0
  19. package/dist/architectureDiagram-VXUJARFQ-C7K57uon.cjs +2 -0
  20. package/dist/az-C0Ow5Hxa.cjs +2 -0
  21. package/dist/az-C3-F9ybX.js +219 -0
  22. package/dist/bg-YB0TmpRF.cjs +2 -0
  23. package/dist/bg-w2e_udiK.js +219 -0
  24. package/dist/blockDiagram-VD42YOAC-B9MtQVc8.js +3756 -0
  25. package/dist/blockDiagram-VD42YOAC-CXUX1_9K.cjs +2 -0
  26. package/dist/bs-BoW04lRb.cjs +2 -0
  27. package/dist/bs-CEe_gjEx.js +219 -0
  28. package/dist/c4Diagram-YG6GDRKO-0rSYap-S.cjs +2 -0
  29. package/dist/c4Diagram-YG6GDRKO-CKFTKCbq.js +2483 -0
  30. package/dist/ca-Bsy2Y5pS.cjs +2 -0
  31. package/dist/ca-CKpd72XI.js +219 -0
  32. package/dist/channel-CJ2FoHig.js +8 -0
  33. package/dist/channel-DjKs64mj.cjs +2 -0
  34. package/dist/chunk-4BX2VUAB-DJlF8TIZ.cjs +2 -0
  35. package/dist/chunk-4BX2VUAB-ghaW5jSQ.js +18 -0
  36. package/dist/chunk-55IACEB6-9B1z6QHL.cjs +2 -0
  37. package/dist/chunk-55IACEB6-__yJgpDO.js +14 -0
  38. package/dist/chunk-B4BG7PRW-Dbzu88Oo.cjs +2 -0
  39. package/dist/chunk-B4BG7PRW-NVucxzRs.js +1828 -0
  40. package/dist/chunk-DI55MBZ5-Bun58OTZ.js +1928 -0
  41. package/dist/chunk-DI55MBZ5-e__JA50C.cjs +2 -0
  42. package/dist/chunk-FMBD7UC4-DulgQOWY.js +20 -0
  43. package/dist/chunk-FMBD7UC4-Pi8Fs7F6.cjs +2 -0
  44. package/dist/chunk-QN33PNHL-DA_6jplh.js +26 -0
  45. package/dist/chunk-QN33PNHL-DcHwlyDo.cjs +2 -0
  46. package/dist/chunk-QZHKN3VN-BfGBK4_s.cjs +2 -0
  47. package/dist/chunk-QZHKN3VN-C5x9oEL1.js +18 -0
  48. package/dist/chunk-TZMSLE5B-BCBp8EeB.cjs +2 -0
  49. package/dist/chunk-TZMSLE5B-Bj2-6aT8.js +109 -0
  50. package/dist/classDiagram-2ON5EDUG-BGUaVc1W.cjs +2 -0
  51. package/dist/classDiagram-2ON5EDUG-BcR1HP9z.js +20 -0
  52. package/dist/classDiagram-v2-WZHVMYZB-BGUaVc1W.cjs +2 -0
  53. package/dist/classDiagram-v2-WZHVMYZB-BcR1HP9z.js +20 -0
  54. package/dist/components/AISearchControl/index.d.ts +1 -0
  55. package/dist/components/Card/index.d.ts +0 -1
  56. package/dist/components/Carousel/index.d.ts +0 -3
  57. package/dist/components/Container/Container.d.ts +1 -9
  58. package/dist/components/Container/IContainerProps.d.ts +10 -4
  59. package/dist/components/Container/index.d.ts +1 -1
  60. package/dist/components/ContentRenderer/ContentRenderer.d.ts +1 -37
  61. package/dist/components/ContentRenderer/IContentRendererProps.d.ts +45 -0
  62. package/dist/components/ContentRenderer/index.d.ts +1 -1
  63. package/dist/components/DataGridV2/DataGridHandle.d.ts +14 -0
  64. package/dist/components/DataGridV2/DataGridV2.d.ts +2 -36
  65. package/dist/components/DataGridV2/IDataGridV2ExtraProps.d.ts +25 -0
  66. package/dist/components/DataGridV2/index.d.ts +1 -0
  67. package/dist/components/Grid/useGridStyles.d.ts +1 -1
  68. package/dist/components/ItemPicker/IItemPickerOption.d.ts +14 -0
  69. package/dist/components/ItemPicker/IItemPickerPagingInfo.d.ts +9 -0
  70. package/dist/components/ItemPicker/IItemPickerProps.d.ts +54 -0
  71. package/dist/components/ItemPicker/ItemPicker.d.ts +4 -0
  72. package/dist/components/ItemPicker/index.d.ts +5 -0
  73. package/dist/components/ItemPicker/useItemPickerStyles.d.ts +10 -0
  74. package/dist/components/KPIControl/IKpiCardData.d.ts +19 -0
  75. package/dist/components/KPIControl/IKpiCardProps.d.ts +6 -0
  76. package/dist/components/KPIControl/KpiCard.d.ts +4 -0
  77. package/dist/components/KPIControl/KpiCardCompact.d.ts +4 -0
  78. package/dist/components/KPIControl/KpiCardSkeleton.d.ts +8 -0
  79. package/dist/components/KPIControl/Kpis.d.ts +7 -0
  80. package/dist/components/KPIControl/NoKpisCard.d.ts +8 -0
  81. package/dist/components/KPIControl/index.d.ts +8 -0
  82. package/dist/components/KPIControl/useKpiStyles.d.ts +33 -0
  83. package/dist/components/ListToolbar/FlatItem.d.ts +8 -0
  84. package/dist/components/ListToolbar/IListToolbarProps.d.ts +27 -0
  85. package/dist/components/ListToolbar/IToolbarItem.d.ts +37 -0
  86. package/dist/components/ListToolbar/IToolbarItemRendererProps.d.ts +13 -0
  87. package/dist/components/ListToolbar/ListToolbar.d.ts +5 -0
  88. package/dist/components/ListToolbar/ToolbarItemRenderer.d.ts +7 -0
  89. package/dist/components/ListToolbar/helpers.d.ts +6 -0
  90. package/dist/components/ListToolbar/index.d.ts +4 -0
  91. package/dist/components/ListToolbar/useListToolbarStyles.d.ts +16 -0
  92. package/dist/components/ListToolbar/useOverflowIndex.d.ts +18 -0
  93. package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts +1 -1
  94. package/dist/components/MarkdownRenderer/useMarkdownStyles.d.ts +4 -0
  95. package/dist/components/MermaidDiagram/IMermaidDiagramProps.d.ts +31 -0
  96. package/dist/components/MermaidDiagram/MermaidDiagram.d.ts +4 -0
  97. package/dist/components/MermaidDiagram/index.d.ts +4 -0
  98. package/dist/components/MermaidDiagram/useMermaidDiagramStyles.d.ts +9 -0
  99. package/dist/components/Navigation/INavigationProps.d.ts +141 -0
  100. package/dist/components/Navigation/Navigation.d.ts +27 -0
  101. package/dist/components/Navigation/index.d.ts +4 -0
  102. package/dist/components/Navigation/useNavigationStyles.d.ts +13 -0
  103. package/dist/components/SelectTime/IOptionTimeProps.d.ts +23 -0
  104. package/dist/components/SelectTime/ISelectTimeProps.d.ts +25 -0
  105. package/dist/components/SelectTime/OptionTime.d.ts +16 -0
  106. package/dist/components/SelectTime/SelectTime.d.ts +4 -0
  107. package/dist/components/SelectTime/index.d.ts +7 -0
  108. package/dist/components/SelectTime/useOptionTimeStyles.d.ts +6 -0
  109. package/dist/components/SelectTime/useSelectTimeStyles.d.ts +7 -0
  110. package/dist/components/SplitPane/ISplitPaneProps.d.ts +28 -0
  111. package/dist/components/SplitPane/SplitPane.d.ts +10 -0
  112. package/dist/components/SplitPane/index.d.ts +4 -0
  113. package/dist/components/SplitPane/useSplitPaneStyles.d.ts +13 -0
  114. package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts +1 -1
  115. package/dist/components/adaptiveCardHost/fluentUI/renderCompat.d.ts +7 -0
  116. package/dist/components/aiAssistant/index.d.ts +1 -0
  117. package/dist/components/appDashboard/IAppDashboardProps.d.ts +2 -2
  118. package/dist/components/breadcrumb/IBreadcrumProps.d.ts +1 -1
  119. package/dist/components/breadcrumb/index.d.ts +1 -0
  120. package/dist/components/customControlBar/CustomControlBar.d.ts +1 -13
  121. package/dist/components/customControlBar/IControlItem.d.ts +6 -0
  122. package/dist/components/customControlBar/ICustomControlBarProps.d.ts +11 -0
  123. package/dist/components/customControlBar/index.d.ts +2 -0
  124. package/dist/components/dropDownField/useDropdownFieldStyles.d.ts +5 -0
  125. package/dist/components/index.d.ts +7 -0
  126. package/dist/components/inputField/IInputFieldProps.d.ts +22 -0
  127. package/dist/components/inputField/InputField.d.ts +4 -0
  128. package/dist/components/inputField/index.d.ts +3 -0
  129. package/dist/components/inputField/useInputFieldStyles.d.ts +5 -0
  130. package/dist/components/renderDrawer/RenderDrawer.d.ts +1 -4
  131. package/dist/components/renderHeader/index.d.ts +1 -0
  132. package/dist/components/searchControl/ISearchControlProps.d.ts +14 -0
  133. package/dist/components/searchControl/SearchControl.d.ts +5 -0
  134. package/dist/components/searchControl/index.d.ts +3 -0
  135. package/dist/components/searchControl/useSearchControlStyles.d.ts +13 -0
  136. package/dist/components/stackv2/StackV2.d.ts +1 -1
  137. package/dist/components/worldMap/index.d.ts +2 -0
  138. package/dist/components/worldMap/useContentToolTipStyles.d.ts +2 -8
  139. package/dist/cose-bilkent-S5V4N54A-BcLbJZT7.cjs +2 -0
  140. package/dist/cose-bilkent-S5V4N54A-CtEV3dGx.js +4934 -0
  141. package/dist/cs-D-801PIR.cjs +2 -0
  142. package/dist/cs-DQvRPciB.js +219 -0
  143. package/dist/cy-BxyJCM05.js +219 -0
  144. package/dist/cy-aUPUcn-S.cjs +2 -0
  145. package/dist/cytoscape.esm-BS1owLay.js +30250 -0
  146. package/dist/cytoscape.esm-BxB3woZB.cjs +10 -0
  147. package/dist/da-B05ad5Iq.js +219 -0
  148. package/dist/da-CTiLOqut.cjs +2 -0
  149. package/dist/dagre-6UL2VRFP-BZ9apxkx.js +696 -0
  150. package/dist/dagre-6UL2VRFP-FmOJGmX_.cjs +2 -0
  151. package/dist/de-DJ5iwpd7.js +219 -0
  152. package/dist/de-Dm204UMA.cjs +2 -0
  153. package/dist/defaultLocale-7NeEK7SF.cjs +2 -0
  154. package/dist/defaultLocale-DVr69WTU.js +207 -0
  155. package/dist/diagram-PSM6KHXK-BZxXJahR.cjs +2 -0
  156. package/dist/diagram-PSM6KHXK-_wkJk__z.js +848 -0
  157. package/dist/diagram-QEK2KX5R-NQiK3YZe.cjs +2 -0
  158. package/dist/diagram-QEK2KX5R-YQAU79Lo.js +305 -0
  159. package/dist/diagram-S2PKOQOG-Cob2HIrt.cjs +2 -0
  160. package/dist/diagram-S2PKOQOG-D8jaJbP8.js +212 -0
  161. package/dist/el-CBS9mHS3.js +219 -0
  162. package/dist/el-DbtZj-ph.cjs +2 -0
  163. package/dist/erDiagram-Q2GNP2WA-DAzex-RZ.cjs +2 -0
  164. package/dist/erDiagram-Q2GNP2WA-syuB6Tgc.js +1160 -0
  165. package/dist/es-Bo08apQr.js +219 -0
  166. package/dist/es-Cc-4Vqf7.cjs +2 -0
  167. package/dist/et-D5pQ66eY.cjs +2 -0
  168. package/dist/et-pRL0Tmle.js +219 -0
  169. package/dist/eu-Br68gaf7.js +219 -0
  170. package/dist/eu-RZ-27koK.cjs +2 -0
  171. package/dist/fi-BCXB-k_X.js +219 -0
  172. package/dist/fi-Dqa9mgnW.cjs +2 -0
  173. package/dist/flowDiagram-NV44I4VS-CXJA5Xu7.js +2339 -0
  174. package/dist/flowDiagram-NV44I4VS-DOcXDmk8.cjs +2 -0
  175. package/dist/fr-B7fhkle4.cjs +2 -0
  176. package/dist/fr-gKE1SSIF.js +219 -0
  177. package/dist/ga-4Hf7vKvr.cjs +2 -0
  178. package/dist/ga-C1SpITZy.js +219 -0
  179. package/dist/ganttDiagram-JELNMOA3-BodaBsjX.js +3652 -0
  180. package/dist/ganttDiagram-JELNMOA3-oeOE4Au1.cjs +2 -0
  181. package/dist/gitGraph-G5XIXVHT-BAoUh2t9.js +6 -0
  182. package/dist/gitGraph-G5XIXVHT-bEuOx0_B.cjs +2 -0
  183. package/dist/gitGraphDiagram-V2S2FVAM-B5dByD3_.js +1215 -0
  184. package/dist/gitGraphDiagram-V2S2FVAM-D4G2FRg-.cjs +2 -0
  185. package/dist/gl-COSpsMSK.cjs +2 -0
  186. package/dist/gl-CSzCeu2L.js +219 -0
  187. package/dist/graph-C7xixGrW.cjs +2 -0
  188. package/dist/graph-DH3cnEko.js +421 -0
  189. package/dist/he-BrkfqoIm.js +219 -0
  190. package/dist/he-C7Wi6-EL.cjs +2 -0
  191. package/dist/hi-C1RGDPzn.js +219 -0
  192. package/dist/hi-ojklJj-a.cjs +2 -0
  193. package/dist/hooks/index.d.ts +1 -0
  194. package/dist/hooks/useLocalizationStrings.d.ts +71 -0
  195. package/dist/hr-CsO_h2VT.js +219 -0
  196. package/dist/hr-DkEwOCGU.cjs +2 -0
  197. package/dist/hu-CVtbM-V2.js +219 -0
  198. package/dist/hu-D8uAAzvN.cjs +2 -0
  199. package/dist/id-18yPGK2f.cjs +2 -0
  200. package/dist/id-CARSN0W8.js +219 -0
  201. package/dist/index-CP55uT1-.js +55270 -0
  202. package/dist/index-DkoeCnje.cjs +428 -0
  203. package/dist/index.cjs +2 -0
  204. package/dist/index.d.ts +14 -0
  205. package/dist/index.js +165 -200
  206. package/dist/info-VBDWY6EO-CCtIeR-l.js +6 -0
  207. package/dist/info-VBDWY6EO-CIQZzC1h.cjs +2 -0
  208. package/dist/infoDiagram-HS3SLOUP-BCGLBWdb.js +32 -0
  209. package/dist/infoDiagram-HS3SLOUP-l61UBAGu.cjs +2 -0
  210. package/dist/init-DZ96s0AS.cjs +2 -0
  211. package/dist/init-ZxktEp_H.js +17 -0
  212. package/dist/it-BVq911RW.cjs +2 -0
  213. package/dist/it-ClWGK7XT.js +219 -0
  214. package/dist/ja-BgcKuKZ4.cjs +2 -0
  215. package/dist/ja-DGL12HwE.js +219 -0
  216. package/dist/journeyDiagram-XKPGCS4Q-CngaMpvw.js +1255 -0
  217. package/dist/journeyDiagram-XKPGCS4Q-DDFQr_sf.cjs +2 -0
  218. package/dist/kanban-definition-3W4ZIXB7-DE64tG2k.js +1049 -0
  219. package/dist/kanban-definition-3W4ZIXB7-Yh2cXBd5.cjs +2 -0
  220. package/dist/katex-DPu4QpBP.cjs +2 -0
  221. package/dist/katex-Dd1-wdX2.js +14523 -0
  222. package/dist/kk-CkKXbKso.js +219 -0
  223. package/dist/kk-Dn3FBkOR.cjs +2 -0
  224. package/dist/ko-CKAbV25b.cjs +2 -0
  225. package/dist/ko-QYvDV2aw.js +219 -0
  226. package/dist/layout-D6yO7DzL.cjs +2 -0
  227. package/dist/layout-bxkZz7Cm.js +1919 -0
  228. package/dist/linear-CytTXQM2.cjs +2 -0
  229. package/dist/linear-R5bATomY.js +341 -0
  230. package/dist/localization/ILibraryStrings.d.ts +299 -0
  231. package/dist/localization/defaults/ar.d.ts +8 -0
  232. package/dist/localization/defaults/az.d.ts +8 -0
  233. package/dist/localization/defaults/bg.d.ts +8 -0
  234. package/dist/localization/defaults/bs.d.ts +8 -0
  235. package/dist/localization/defaults/ca.d.ts +8 -0
  236. package/dist/localization/defaults/cs.d.ts +8 -0
  237. package/dist/localization/defaults/cy.d.ts +8 -0
  238. package/dist/localization/defaults/da.d.ts +8 -0
  239. package/dist/localization/defaults/de.d.ts +8 -0
  240. package/dist/localization/defaults/el.d.ts +8 -0
  241. package/dist/localization/defaults/en.d.ts +8 -0
  242. package/dist/localization/defaults/es.d.ts +8 -0
  243. package/dist/localization/defaults/et.d.ts +8 -0
  244. package/dist/localization/defaults/eu.d.ts +8 -0
  245. package/dist/localization/defaults/fi.d.ts +8 -0
  246. package/dist/localization/defaults/fr.d.ts +8 -0
  247. package/dist/localization/defaults/ga.d.ts +8 -0
  248. package/dist/localization/defaults/gl.d.ts +8 -0
  249. package/dist/localization/defaults/he.d.ts +8 -0
  250. package/dist/localization/defaults/hi.d.ts +8 -0
  251. package/dist/localization/defaults/hr.d.ts +8 -0
  252. package/dist/localization/defaults/hu.d.ts +8 -0
  253. package/dist/localization/defaults/id.d.ts +8 -0
  254. package/dist/localization/defaults/index.d.ts +47 -0
  255. package/dist/localization/defaults/it.d.ts +8 -0
  256. package/dist/localization/defaults/ja.d.ts +8 -0
  257. package/dist/localization/defaults/kk.d.ts +8 -0
  258. package/dist/localization/defaults/ko.d.ts +8 -0
  259. package/dist/localization/defaults/lt.d.ts +8 -0
  260. package/dist/localization/defaults/lv.d.ts +8 -0
  261. package/dist/localization/defaults/mk.d.ts +8 -0
  262. package/dist/localization/defaults/ms.d.ts +8 -0
  263. package/dist/localization/defaults/nb.d.ts +8 -0
  264. package/dist/localization/defaults/nl.d.ts +8 -0
  265. package/dist/localization/defaults/pl.d.ts +8 -0
  266. package/dist/localization/defaults/pt.d.ts +8 -0
  267. package/dist/localization/defaults/ro.d.ts +8 -0
  268. package/dist/localization/defaults/ru.d.ts +8 -0
  269. package/dist/localization/defaults/sk.d.ts +8 -0
  270. package/dist/localization/defaults/sl.d.ts +8 -0
  271. package/dist/localization/defaults/sr.d.ts +8 -0
  272. package/dist/localization/defaults/sv.d.ts +8 -0
  273. package/dist/localization/defaults/th.d.ts +8 -0
  274. package/dist/localization/defaults/tr.d.ts +8 -0
  275. package/dist/localization/defaults/uk.d.ts +8 -0
  276. package/dist/localization/defaults/vi.d.ts +8 -0
  277. package/dist/localization/defaults/zh.d.ts +8 -0
  278. package/dist/localization/index.d.ts +8 -0
  279. package/dist/localization/utils.d.ts +10 -0
  280. package/dist/lt-BKnFyiLV.js +219 -0
  281. package/dist/lt-BnGNEsIS.cjs +2 -0
  282. package/dist/lv-Clqo0Ogm.js +219 -0
  283. package/dist/lv-D3rJQRhc.cjs +2 -0
  284. package/dist/maplibre-gl-D9TSGNCf.cjs +6 -0
  285. package/dist/maplibre-gl-DwyiD0x9.js +23511 -0
  286. package/dist/mermaid-parser.core-BbdofhA6.js +23791 -0
  287. package/dist/mermaid-parser.core-C4ChZJz4.cjs +2 -0
  288. package/dist/mindmap-definition-VGOIOE7T-BonbrEly.cjs +2 -0
  289. package/dist/mindmap-definition-VGOIOE7T-C8FL7caj.js +1129 -0
  290. package/dist/mk-EhcD0RzW.js +219 -0
  291. package/dist/mk-hVxJgrE0.cjs +2 -0
  292. package/dist/ms-CJACwjo7.js +219 -0
  293. package/dist/ms-D0txYckK.cjs +2 -0
  294. package/dist/nb-BfKRl99z.cjs +2 -0
  295. package/dist/nb-NCgnP0Pu.js +219 -0
  296. package/dist/nl-EgsNCunP.js +219 -0
  297. package/dist/nl-ZXiLkBj_.cjs +2 -0
  298. package/dist/ordinal-BZdahNih.cjs +2 -0
  299. package/dist/ordinal-DSZU4PqD.js +77 -0
  300. package/dist/packet-DYOGHKS2-64UpspMA.cjs +2 -0
  301. package/dist/packet-DYOGHKS2-DCndr5Wp.js +6 -0
  302. package/dist/pie-VRWISCQL-B_5_SIgL.cjs +2 -0
  303. package/dist/pie-VRWISCQL-BbSFz_Jh.js +6 -0
  304. package/dist/pieDiagram-ADFJNKIX-C8b4kPLp.cjs +2 -0
  305. package/dist/pieDiagram-ADFJNKIX-CQjh4P80.js +238 -0
  306. package/dist/pl-H28GVtiG.js +219 -0
  307. package/dist/pl-tVjdYTB9.cjs +2 -0
  308. package/dist/providers.cjs +2 -0
  309. package/dist/providers.js +252 -1
  310. package/dist/pt-1k62N9F3.cjs +2 -0
  311. package/dist/pt-BSPZhWKl.js +211 -0
  312. package/dist/quadrantDiagram-AYHSOK5B-Bb99yQJL.cjs +2 -0
  313. package/dist/quadrantDiagram-AYHSOK5B-BiLBDCHf.js +1338 -0
  314. package/dist/radar-ZZBFDIW7-DC8bA3_e.cjs +2 -0
  315. package/dist/radar-ZZBFDIW7-DpGZ3D_F.js +6 -0
  316. package/dist/requirementDiagram-UZGBJVZJ-BeLfR5tA.cjs +2 -0
  317. package/dist/requirementDiagram-UZGBJVZJ-D6hcN5kf.js +1164 -0
  318. package/dist/ro-9Qt1qDDA.cjs +2 -0
  319. package/dist/ro-BpaZLre_.js +219 -0
  320. package/dist/ru-4WxRouIU.cjs +2 -0
  321. package/dist/ru-CUZzD-Tx.js +219 -0
  322. package/dist/sankeyDiagram-TZEHDZUN-7K2pggbF.js +1194 -0
  323. package/dist/sankeyDiagram-TZEHDZUN-T1lqY3ke.cjs +2 -0
  324. package/dist/sequenceDiagram-WL72ISMW-CaSRrEHR.cjs +2 -0
  325. package/dist/sequenceDiagram-WL72ISMW-DymCRly8.js +3882 -0
  326. package/dist/sk-CoQ6XiCY.js +219 -0
  327. package/dist/sk-uWukDQab.cjs +2 -0
  328. package/dist/sl-B6DVbKg6.cjs +2 -0
  329. package/dist/sl-CHW-ZGol.js +219 -0
  330. package/dist/sr-BOD8Tc-D.cjs +2 -0
  331. package/dist/sr-EQGjIBJE.js +219 -0
  332. package/dist/stateDiagram-FKZM4ZOC-B3uhYYpW.js +449 -0
  333. package/dist/stateDiagram-FKZM4ZOC-BETxyYxX.cjs +2 -0
  334. package/dist/stateDiagram-v2-4FDKWEC3-B4AjT1wB.cjs +2 -0
  335. package/dist/stateDiagram-v2-4FDKWEC3-BuiA8K0X.js +20 -0
  336. package/dist/style.css +1 -0
  337. package/dist/sv-B6nLuQr7.cjs +2 -0
  338. package/dist/sv-DTxWN6ED.js +219 -0
  339. package/dist/th-BVPzHvBf.js +219 -0
  340. package/dist/th-DmULV6uT.cjs +2 -0
  341. package/dist/timeline-definition-IT6M3QCI-CsJvwNrg.cjs +2 -0
  342. package/dist/timeline-definition-IT6M3QCI-DNROY61n.js +1227 -0
  343. package/dist/tr-BE5geTUC.cjs +2 -0
  344. package/dist/tr-BHR1QA-D.js +219 -0
  345. package/dist/treemap-GDKQZRPO-DbPXSmw-.js +6 -0
  346. package/dist/treemap-GDKQZRPO-Dj3L_VQH.cjs +2 -0
  347. package/dist/uk-Bc5TwelE.js +219 -0
  348. package/dist/uk-DS5ukB_-.cjs +2 -0
  349. package/dist/vi-D9FF4kkG.cjs +2 -0
  350. package/dist/vi-DC0eQZb7.js +219 -0
  351. package/dist/xychartDiagram-PRI3JC2R-CXT2FhOm.cjs +2 -0
  352. package/dist/xychartDiagram-PRI3JC2R-D7UaoGaC.js +1887 -0
  353. package/dist/zh-CGcOiJ3s.cjs +2 -0
  354. package/dist/zh-GsCLn8OE.js +219 -0
  355. package/package.json +95 -92
  356. package/dist/ILoggingProvider-C4FFlnQ0.js +0 -2
  357. package/dist/ILoggingProvider-C4FFlnQ0.js.map +0 -1
  358. package/dist/ILoggingProvider-CYYYCGLY.mjs +0 -18
  359. package/dist/ILoggingProvider-CYYYCGLY.mjs.map +0 -1
  360. package/dist/abstractions/IApplicationContext.d.ts.map +0 -1
  361. package/dist/abstractions/IAuthenticationProvider.d.ts.map +0 -1
  362. package/dist/abstractions/IGraphProvider.d.ts.map +0 -1
  363. package/dist/abstractions/ILoggingProvider.d.ts.map +0 -1
  364. package/dist/abstractions/IPageContext.d.ts.map +0 -1
  365. package/dist/abstractions/IStorageProvider.d.ts.map +0 -1
  366. package/dist/abstractions/index.d.ts.map +0 -1
  367. package/dist/abstractions/providers/ConsoleLoggingProvider.d.ts.map +0 -1
  368. package/dist/abstractions/providers/DefaultGraphClient.d.ts.map +0 -1
  369. package/dist/abstractions/providers/LocalStorageProvider.d.ts.map +0 -1
  370. package/dist/abstractions/providers/index.d.ts.map +0 -1
  371. package/dist/components/AISearchControl/AISearchControl.d.ts.map +0 -1
  372. package/dist/components/AISearchControl/AISearchIcon.d.ts.map +0 -1
  373. package/dist/components/AISearchControl/AISearchIconExample.d.ts.map +0 -1
  374. package/dist/components/AISearchControl/index.d.ts.map +0 -1
  375. package/dist/components/AISearchControl/useAISearchControlStyles.d.ts.map +0 -1
  376. package/dist/components/AspectRatio/AspectRatio.d.ts.map +0 -1
  377. package/dist/components/AspectRatio/IAspectRationProps.d.ts.map +0 -1
  378. package/dist/components/AspectRatio/index.d.ts.map +0 -1
  379. package/dist/components/AspectRatio/useAspectRatioStyles.d.ts.map +0 -1
  380. package/dist/components/Card/Card.d.ts.map +0 -1
  381. package/dist/components/Card/ICardProps.d.ts.map +0 -1
  382. package/dist/components/Card/index.d.ts.map +0 -1
  383. package/dist/components/Card/useCardStyles.d.ts.map +0 -1
  384. package/dist/components/Carousel/Carousel.d.ts.map +0 -1
  385. package/dist/components/Carousel/ICarouselProps.d.ts.map +0 -1
  386. package/dist/components/Carousel/index.d.ts.map +0 -1
  387. package/dist/components/Carousel/useCarouselButton.d.ts.map +0 -1
  388. package/dist/components/Carousel/useCarouselStyles.d.ts.map +0 -1
  389. package/dist/components/Carousel/useCarouselStylesMain.d.ts.map +0 -1
  390. package/dist/components/Center/Center.d.ts.map +0 -1
  391. package/dist/components/Center/ICenterProps.d.ts.map +0 -1
  392. package/dist/components/Center/index.d.ts.map +0 -1
  393. package/dist/components/Center/useCenterStyles.d.ts.map +0 -1
  394. package/dist/components/Container/Container.d.ts.map +0 -1
  395. package/dist/components/Container/IContainerProps.d.ts.map +0 -1
  396. package/dist/components/Container/index.d.ts.map +0 -1
  397. package/dist/components/Container/useContainerStyles.d.ts.map +0 -1
  398. package/dist/components/ContentRenderer/ContentRenderer.d.ts.map +0 -1
  399. package/dist/components/ContentRenderer/index.d.ts.map +0 -1
  400. package/dist/components/DataGridV2/DataGridV2.d.ts.map +0 -1
  401. package/dist/components/DataGridV2/index.d.ts.map +0 -1
  402. package/dist/components/DataGridV2/useDataGridV2Styles.d.ts.map +0 -1
  403. package/dist/components/Grid/Grid.d.ts.map +0 -1
  404. package/dist/components/Grid/IGridProps.d.ts.map +0 -1
  405. package/dist/components/Grid/index.d.ts.map +0 -1
  406. package/dist/components/Grid/useGridStyles.d.ts.map +0 -1
  407. package/dist/components/Layout/ILayoutProps.d.ts.map +0 -1
  408. package/dist/components/Layout/Layout.d.ts.map +0 -1
  409. package/dist/components/Layout/LayoutItem.d.ts.map +0 -1
  410. package/dist/components/Layout/index.d.ts.map +0 -1
  411. package/dist/components/Layout/useLayoutStyles.d.ts.map +0 -1
  412. package/dist/components/ListItemActivityMessage/IAction.d.ts.map +0 -1
  413. package/dist/components/ListItemActivityMessage/IActivity.d.ts.map +0 -1
  414. package/dist/components/ListItemActivityMessage/IActivityMessageProps.d.ts.map +0 -1
  415. package/dist/components/ListItemActivityMessage/IActor.d.ts.map +0 -1
  416. package/dist/components/ListItemActivityMessage/IUserActor.d.ts.map +0 -1
  417. package/dist/components/ListItemActivityMessage/ListItemActivityMessage.d.ts.map +0 -1
  418. package/dist/components/ListItemActivityMessage/index.d.ts.map +0 -1
  419. package/dist/components/ListItemActivityMessage/useSharePointActivities.d.ts.map +0 -1
  420. package/dist/components/LivePersona/ILivePersonaProps.d.ts.map +0 -1
  421. package/dist/components/LivePersona/LivePersona.d.ts.map +0 -1
  422. package/dist/components/LivePersona/index.d.ts.map +0 -1
  423. package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +0 -1
  424. package/dist/components/MarkdownRenderer/index.d.ts.map +0 -1
  425. package/dist/components/Popup/Popup.d.ts.map +0 -1
  426. package/dist/components/Popup/index.d.ts.map +0 -1
  427. package/dist/components/Provider/UniversalProvider.d.ts.map +0 -1
  428. package/dist/components/Provider/index.d.ts.map +0 -1
  429. package/dist/components/RenderLabel/RenderLabel.d.ts.map +0 -1
  430. package/dist/components/RenderLabel/index.d.ts.map +0 -1
  431. package/dist/components/RenderLabel/useRenderLabelStylesStyles.d.ts.map +0 -1
  432. package/dist/components/RenderSpninner/RenderSpinner.d.ts.map +0 -1
  433. package/dist/components/RenderSpninner/index.d.ts.map +0 -1
  434. package/dist/components/Space/ISpaceProps.d.ts.map +0 -1
  435. package/dist/components/Space/SPace.d.ts.map +0 -1
  436. package/dist/components/Space/index.d.ts.map +0 -1
  437. package/dist/components/Space/useSpaceStyles.d.ts.map +0 -1
  438. package/dist/components/Stack/IStackProps.d.ts.map +0 -1
  439. package/dist/components/Stack/Stack.d.ts.map +0 -1
  440. package/dist/components/Stack/StackItem.d.ts.map +0 -1
  441. package/dist/components/Stack/index.d.ts.map +0 -1
  442. package/dist/components/Stack/useStackStyles.d.ts.map +0 -1
  443. package/dist/components/StackedUsers/IStackedUsersProps.d.ts.map +0 -1
  444. package/dist/components/StackedUsers/StackedUsers.d.ts.map +0 -1
  445. package/dist/components/StackedUsers/index.d.ts.map +0 -1
  446. package/dist/components/StackedUsers/useStackedUsersStyles.d.ts.map +0 -1
  447. package/dist/components/adaptiveCardHost/AdaptiveCardHost.Exports.d.ts.map +0 -1
  448. package/dist/components/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts.map +0 -1
  449. package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts.map +0 -1
  450. package/dist/components/adaptiveCardHost/AdaptiveCardHost.d.ts.map +0 -1
  451. package/dist/components/adaptiveCardHost/IAdaptiveCardHostProps.d.ts.map +0 -1
  452. package/dist/components/adaptiveCardHost/fluentUI/Actions.d.ts.map +0 -1
  453. package/dist/components/adaptiveCardHost/fluentUI/Elements.d.ts.map +0 -1
  454. package/dist/components/adaptiveCardHost/fluentUI/FluentUIChoiceSetInput.d.ts.map +0 -1
  455. package/dist/components/adaptiveCardHost/fluentUI/FluentUIDateInput.d.ts.map +0 -1
  456. package/dist/components/adaptiveCardHost/fluentUI/FluentUINumberInput.d.ts.map +0 -1
  457. package/dist/components/adaptiveCardHost/fluentUI/FluentUITextInput.d.ts.map +0 -1
  458. package/dist/components/adaptiveCardHost/fluentUI/FluentUITimeInput.d.ts.map +0 -1
  459. package/dist/components/adaptiveCardHost/fluentUI/FluentUIToggleInput.d.ts.map +0 -1
  460. package/dist/components/adaptiveCardHost/fluentUI/HostCapability.d.ts.map +0 -1
  461. package/dist/components/adaptiveCardHost/fluentUI/HostConfig.d.ts.map +0 -1
  462. package/dist/components/adaptiveCardHost/fluentUI/IconButton.d.ts.map +0 -1
  463. package/dist/components/adaptiveCardHost/fluentUI/Styles.d.ts.map +0 -1
  464. package/dist/components/adaptiveCardHost/fluentUI/index.d.ts.map +0 -1
  465. package/dist/components/adaptiveCardHost/fluentUI/inlineButtonRootStyle.d.ts.map +0 -1
  466. package/dist/components/adaptiveCardHost/fluentUI/internalRender.d.ts.map +0 -1
  467. package/dist/components/adaptiveCardHost/index.d.ts.map +0 -1
  468. package/dist/components/adaptiveCardHost/models/AdaptiveCardHostThemeType.d.ts.map +0 -1
  469. package/dist/components/adaptiveCardHost/models/IAadInfo.d.ts.map +0 -1
  470. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostActionResult.d.ts.map +0 -1
  471. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts.map +0 -1
  472. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostEvaluationContext.d.ts.map +0 -1
  473. package/dist/components/adaptiveCardHost/models/ICultureInfo.d.ts.map +0 -1
  474. package/dist/components/adaptiveCardHost/models/ISPListInfo.d.ts.map +0 -1
  475. package/dist/components/adaptiveCardHost/models/ISPListItemInfo.d.ts.map +0 -1
  476. package/dist/components/adaptiveCardHost/models/ISPSiteInfo.d.ts.map +0 -1
  477. package/dist/components/adaptiveCardHost/models/ISPWebInfo.d.ts.map +0 -1
  478. package/dist/components/adaptiveCardHost/models/IUserInfo.d.ts.map +0 -1
  479. package/dist/components/adaptiveCardHost/models/index.d.ts.map +0 -1
  480. package/dist/components/aiAssistant/AIAssistant.d.ts.map +0 -1
  481. package/dist/components/aiAssistant/ChatAction.d.ts.map +0 -1
  482. package/dist/components/aiAssistant/ChatInput.d.ts.map +0 -1
  483. package/dist/components/aiAssistant/ChatInputProps.d.ts.map +0 -1
  484. package/dist/components/aiAssistant/ChatInputWithMensions.d.ts.map +0 -1
  485. package/dist/components/aiAssistant/ChatInputWithMensionsProps.d.ts.map +0 -1
  486. package/dist/components/aiAssistant/ChatInputWithMensionsV1.d.ts.map +0 -1
  487. package/dist/components/aiAssistant/ChatInputWithMensionsV2.d.ts.map +0 -1
  488. package/dist/components/aiAssistant/ChatList.d.ts.map +0 -1
  489. package/dist/components/aiAssistant/ChatState.d.ts.map +0 -1
  490. package/dist/components/aiAssistant/IAIAssistantProps.d.ts.map +0 -1
  491. package/dist/components/aiAssistant/IChatItem.d.ts.map +0 -1
  492. package/dist/components/aiAssistant/IResponse.d.ts.map +0 -1
  493. package/dist/components/aiAssistant/LoadingDots.d.ts.map +0 -1
  494. package/dist/components/aiAssistant/chatReducer.d.ts.map +0 -1
  495. package/dist/components/aiAssistant/index.d.ts.map +0 -1
  496. package/dist/components/aiAssistant/useAIAssistantStyles.d.ts.map +0 -1
  497. package/dist/components/aiAssistant/useChatInputStyles.d.ts.map +0 -1
  498. package/dist/components/aiAssistant/useChatInputWithMensionsStyles.d.ts.map +0 -1
  499. package/dist/components/aiAssistant/useLoadingDotsStyles.d.ts.map +0 -1
  500. package/dist/components/aiAssistant/useStreamRequest.d.ts.map +0 -1
  501. package/dist/components/aiAssistant/useStyles.d.ts.map +0 -1
  502. package/dist/components/appDashboard/AppDashboard.d.ts.map +0 -1
  503. package/dist/components/appDashboard/IAppDashboardProps.d.ts.map +0 -1
  504. package/dist/components/appDashboard/NoDashboards.d.ts.map +0 -1
  505. package/dist/components/appDashboard/index.d.ts.map +0 -1
  506. package/dist/components/appDashboard/selectZoom/SelectZoom.d.ts.map +0 -1
  507. package/dist/components/appDashboard/useDashboardStyles.d.ts.map +0 -1
  508. package/dist/components/baseComponentProps/IBaseProps.d.ts.map +0 -1
  509. package/dist/components/breadcrumb/Breadcrumb.d.ts.map +0 -1
  510. package/dist/components/breadcrumb/IBreadcrumItem.d.ts.map +0 -1
  511. package/dist/components/breadcrumb/IBreadcrumProps.d.ts.map +0 -1
  512. package/dist/components/breadcrumb/OverflowMenu.d.ts.map +0 -1
  513. package/dist/components/breadcrumb/index.d.ts.map +0 -1
  514. package/dist/components/breadcrumb/useBreadcrumStyles.d.ts.map +0 -1
  515. package/dist/components/buttonMenu/ButtonMenu.d.ts.map +0 -1
  516. package/dist/components/buttonMenu/IButtonMenuOption.d.ts.map +0 -1
  517. package/dist/components/buttonMenu/index.d.ts.map +0 -1
  518. package/dist/components/calendarControl/CalendarControl.d.ts.map +0 -1
  519. package/dist/components/calendarControl/Day.d.ts.map +0 -1
  520. package/dist/components/calendarControl/DayView.d.ts.map +0 -1
  521. package/dist/components/calendarControl/EventDetailsPopover.d.ts.map +0 -1
  522. package/dist/components/calendarControl/EventPopoverCard.d.ts.map +0 -1
  523. package/dist/components/calendarControl/EventRender.d.ts.map +0 -1
  524. package/dist/components/calendarControl/RenderEventToDayOfMonth.d.ts.map +0 -1
  525. package/dist/components/calendarControl/SelectCalendarView.d.ts.map +0 -1
  526. package/dist/components/calendarControl/Toolbar.d.ts.map +0 -1
  527. package/dist/components/calendarControl/WeekView.d.ts.map +0 -1
  528. package/dist/components/calendarControl/hooks/index.d.ts.map +0 -1
  529. package/dist/components/calendarControl/hooks/useCalendar.d.ts.map +0 -1
  530. package/dist/components/calendarControl/hooks/useCalendarStyles.d.ts.map +0 -1
  531. package/dist/components/calendarControl/hooks/useDayViewStyles.d.ts.map +0 -1
  532. package/dist/components/calendarControl/hooks/useUtils.d.ts.map +0 -1
  533. package/dist/components/calendarControl/hooks/useWeekViewStyles.d.ts.map +0 -1
  534. package/dist/components/calendarControl/index.d.ts.map +0 -1
  535. package/dist/components/calendarControl/models/ECalendarViews.d.ts.map +0 -1
  536. package/dist/components/calendarControl/models/IAttendee.d.ts.map +0 -1
  537. package/dist/components/calendarControl/models/ICalendarControlProps.d.ts.map +0 -1
  538. package/dist/components/calendarControl/models/ICalendarDay.d.ts.map +0 -1
  539. package/dist/components/calendarControl/models/IEventColors.d.ts.map +0 -1
  540. package/dist/components/calendarControl/models/IEvents.d.ts.map +0 -1
  541. package/dist/components/calendarControl/models/IStrings.d.ts.map +0 -1
  542. package/dist/components/calendarControl/models/index.d.ts.map +0 -1
  543. package/dist/components/customControlBar/CustomControlBar.d.ts.map +0 -1
  544. package/dist/components/customControlBar/index.d.ts.map +0 -1
  545. package/dist/components/dataGrid/DataGrid.d.ts.map +0 -1
  546. package/dist/components/dataGrid/IColumnConfig.d.ts.map +0 -1
  547. package/dist/components/dataGrid/IDataGridProps.d.ts.map +0 -1
  548. package/dist/components/dataGrid/ISortState.d.ts.map +0 -1
  549. package/dist/components/dataGrid/index.d.ts.map +0 -1
  550. package/dist/components/dataGrid/stack/IStackProps.d.ts.map +0 -1
  551. package/dist/components/dataGrid/stack/Stack.d.ts.map +0 -1
  552. package/dist/components/dataGrid/useDataGridStyles.d.ts.map +0 -1
  553. package/dist/components/dropDownField/DropDownField.d.ts.map +0 -1
  554. package/dist/components/dropDownField/IDropDownFieldProps.d.ts.map +0 -1
  555. package/dist/components/dropDownField/IOption.d.ts.map +0 -1
  556. package/dist/components/dropDownField/index.d.ts.map +0 -1
  557. package/dist/components/genericOverFlowMenu/GenericOverFlowMenu.d.ts.map +0 -1
  558. package/dist/components/genericOverFlowMenu/index.d.ts.map +0 -1
  559. package/dist/components/genericOverFlowMenu/useOverflowMenuStyles.d.ts.map +0 -1
  560. package/dist/components/iconButton/IconButton.d.ts.map +0 -1
  561. package/dist/components/iconButton/IconButtonProps.d.ts.map +0 -1
  562. package/dist/components/iconButton/index.d.ts.map +0 -1
  563. package/dist/components/index.d.ts.map +0 -1
  564. package/dist/components/mensions/IMensionsProps.d.ts.map +0 -1
  565. package/dist/components/mensions/Mensions.d.ts.map +0 -1
  566. package/dist/components/mensions/MensionsExample.d.ts.map +0 -1
  567. package/dist/components/mensions/index.d.ts.map +0 -1
  568. package/dist/components/mensions/useMensionsStyles.d.ts.map +0 -1
  569. package/dist/components/renderAdaptiveCard/RenderAdaptiveCard.d.ts.map +0 -1
  570. package/dist/components/renderAdaptiveCard/index.d.ts.map +0 -1
  571. package/dist/components/renderDialog/RenderDialog.d.ts.map +0 -1
  572. package/dist/components/renderDialog/index.d.ts.map +0 -1
  573. package/dist/components/renderDrawer/RenderDrawer.d.ts.map +0 -1
  574. package/dist/components/renderDrawer/index.d.ts.map +0 -1
  575. package/dist/components/renderHeader/IRenderHeaderProps.d.ts.map +0 -1
  576. package/dist/components/renderHeader/RenderHeader.d.ts.map +0 -1
  577. package/dist/components/renderHeader/index.d.ts.map +0 -1
  578. package/dist/components/renderHeader/useRenderHeaderStyles.d.ts.map +0 -1
  579. package/dist/components/selectDay/SelectDay.d.ts.map +0 -1
  580. package/dist/components/selectDay/index.d.ts.map +0 -1
  581. package/dist/components/selectMonth/CalendarMonth.d.ts.map +0 -1
  582. package/dist/components/selectMonth/SelectMonth.d.ts.map +0 -1
  583. package/dist/components/selectMonth/index.d.ts.map +0 -1
  584. package/dist/components/selectView/SelectView.d.ts.map +0 -1
  585. package/dist/components/selectView/index.d.ts.map +0 -1
  586. package/dist/components/selectWeek/SelectWeek.d.ts.map +0 -1
  587. package/dist/components/selectWeek/index.d.ts.map +0 -1
  588. package/dist/components/shareDialog/ShareDialog.d.ts.map +0 -1
  589. package/dist/components/shareDialog/index.d.ts.map +0 -1
  590. package/dist/components/showError/IErrorDisplayProps.d.ts.map +0 -1
  591. package/dist/components/showError/ShowError.d.ts.map +0 -1
  592. package/dist/components/showError/index.d.ts.map +0 -1
  593. package/dist/components/showError/useShowErrorStyles.d.ts.map +0 -1
  594. package/dist/components/showMessage/IShowMessage.d.ts.map +0 -1
  595. package/dist/components/showMessage/ShowMessage.d.ts.map +0 -1
  596. package/dist/components/showMessage/index.d.ts.map +0 -1
  597. package/dist/components/showMessage/useShowMessageStyles.d.ts.map +0 -1
  598. package/dist/components/stackv2/IStackV2Props.d.ts.map +0 -1
  599. package/dist/components/stackv2/StackV2.d.ts.map +0 -1
  600. package/dist/components/stackv2/index.d.ts.map +0 -1
  601. package/dist/components/svgImages/BusinessReportIcon.d.ts.map +0 -1
  602. package/dist/components/typographyControl/ITypographyControlProps.d.ts.map +0 -1
  603. package/dist/components/typographyControl/TypographyControl.d.ts.map +0 -1
  604. package/dist/components/typographyControl/index.d.ts.map +0 -1
  605. package/dist/components/userCard/IUserCardProps.d.ts.map +0 -1
  606. package/dist/components/userCard/IUserInfo.d.ts.map +0 -1
  607. package/dist/components/userCard/UserCard.d.ts.map +0 -1
  608. package/dist/components/userCard/constants.d.ts.map +0 -1
  609. package/dist/components/userCard/index.d.ts.map +0 -1
  610. package/dist/components/userCard/useUserCardStyles.d.ts.map +0 -1
  611. package/dist/components/userCard/useUserProfile.d.ts.map +0 -1
  612. package/dist/components/videoPlayer/VideoPlayer.d.ts.map +0 -1
  613. package/dist/components/videoPlayer/index.d.ts.map +0 -1
  614. package/dist/components/videoPlayer/useVideoStyles.d.ts.map +0 -1
  615. package/dist/components/worldMap/IWorldMapProps.d.ts.map +0 -1
  616. package/dist/components/worldMap/MapNavigation.d.ts.map +0 -1
  617. package/dist/components/worldMap/MaplibreWorldMapProps.d.ts.map +0 -1
  618. package/dist/components/worldMap/TooltipContent.d.ts.map +0 -1
  619. package/dist/components/worldMap/WorldMap.d.ts.map +0 -1
  620. package/dist/components/worldMap/WorldMapControl.d.ts.map +0 -1
  621. package/dist/components/worldMap/data.d.ts.map +0 -1
  622. package/dist/components/worldMap/index.d.ts.map +0 -1
  623. package/dist/components/worldMap/marker.d.ts.map +0 -1
  624. package/dist/components/worldMap/useCleanMapStyle.d.ts.map +0 -1
  625. package/dist/components/worldMap/useContentToolTipStyles.d.ts.map +0 -1
  626. package/dist/components/worldMap/useGeocodedCountries.d.ts.map +0 -1
  627. package/dist/constants/EBreakPoints.d.ts.map +0 -1
  628. package/dist/constants/EMessageTypes.d.ts.map +0 -1
  629. package/dist/constants/index.d.ts.map +0 -1
  630. package/dist/hooks/index.d.ts.map +0 -1
  631. package/dist/hooks/useAIAssistant.d.ts.map +0 -1
  632. package/dist/hooks/useAIAssistantParser.d.ts.map +0 -1
  633. package/dist/hooks/useGraphAPI.d.ts.map +0 -1
  634. package/dist/hooks/useIndexedDB.d.ts.map +0 -1
  635. package/dist/hooks/useLogging.d.ts.map +0 -1
  636. package/dist/hooks/usePolling.d.ts.map +0 -1
  637. package/dist/hooks/useTimeZone.d.ts.map +0 -1
  638. package/dist/hooks/useTimeZoneHelper.d.ts.map +0 -1
  639. package/dist/index.d.ts.map +0 -1
  640. package/dist/index.js.map +0 -1
  641. package/dist/index.mjs +0 -27983
  642. package/dist/index.mjs.map +0 -1
  643. package/dist/models/IAppCardContainer.d.ts.map +0 -1
  644. package/dist/models/index.d.ts.map +0 -1
  645. package/dist/providers.js.map +0 -1
  646. package/dist/providers.mjs +0 -250
  647. package/dist/providers.mjs.map +0 -1
  648. package/dist/types/TBaseSpacing.d.ts.map +0 -1
  649. package/dist/types/THorizontalSpacing.d.ts.map +0 -1
  650. package/dist/types/THorizontalSpacingBreakPoints.d.ts.map +0 -1
  651. package/dist/types/TLayoutBreakPoints.d.ts.map +0 -1
  652. package/dist/types/TPaddingBreakPoints.d.ts.map +0 -1
  653. package/dist/types/TPading.d.ts.map +0 -1
  654. package/dist/types/TVerticalSpacing.d.ts.map +0 -1
  655. package/dist/types/TVerticalSpacingBreakPoints.d.ts.map +0 -1
  656. package/dist/types/index.d.ts.map +0 -1
  657. package/dist/utils/contentDetector.d.ts.map +0 -1
  658. package/dist/utils/index.d.ts.map +0 -1
  659. package/dist/utils/lodash.d.ts.map +0 -1
  660. package/dist/utils/useComponentsUtils.d.ts.map +0 -1
  661. package/dist/utils/useDateUtils.d.ts.map +0 -1
  662. package/dist/utils/useImageUtils.d.ts.map +0 -1
@@ -0,0 +1,1887 @@
1
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
2
+ import { _ as __name, s as setAccDescription, g as getAccDescription, t as getDiagramTitle, q as setDiagramTitle, a as getAccTitle, b as setAccTitle, l as log, K as selectSvgElement, e as configureSvgSize, z as clear, G as getConfig, F as cleanAndMerge, H as defaultConfig_default, a1 as getThemeVariables3, i as sanitizeText, aw as computeDimensionOfText, a9 as line } from "./index-CP55uT1-.js";
3
+ import { i as initRange } from "./init-ZxktEp_H.js";
4
+ import { o as ordinal } from "./ordinal-DSZU4PqD.js";
5
+ import { l as linear } from "./linear-R5bATomY.js";
6
+ function range(start, stop, step) {
7
+ start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;
8
+ var i = -1, n = Math.max(0, Math.ceil((stop - start) / step)) | 0, range2 = new Array(n);
9
+ while (++i < n) {
10
+ range2[i] = start + i * step;
11
+ }
12
+ return range2;
13
+ }
14
+ function band() {
15
+ var scale = ordinal().unknown(void 0), domain = scale.domain, ordinalRange = scale.range, r0 = 0, r1 = 1, step, bandwidth, round = false, paddingInner = 0, paddingOuter = 0, align = 0.5;
16
+ delete scale.unknown;
17
+ function rescale() {
18
+ var n = domain().length, reverse = r1 < r0, start = reverse ? r1 : r0, stop = reverse ? r0 : r1;
19
+ step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);
20
+ if (round) step = Math.floor(step);
21
+ start += (stop - start - step * (n - paddingInner)) * align;
22
+ bandwidth = step * (1 - paddingInner);
23
+ if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);
24
+ var values = range(n).map(function(i) {
25
+ return start + step * i;
26
+ });
27
+ return ordinalRange(reverse ? values.reverse() : values);
28
+ }
29
+ scale.domain = function(_) {
30
+ return arguments.length ? (domain(_), rescale()) : domain();
31
+ };
32
+ scale.range = function(_) {
33
+ return arguments.length ? ([r0, r1] = _, r0 = +r0, r1 = +r1, rescale()) : [r0, r1];
34
+ };
35
+ scale.rangeRound = function(_) {
36
+ return [r0, r1] = _, r0 = +r0, r1 = +r1, round = true, rescale();
37
+ };
38
+ scale.bandwidth = function() {
39
+ return bandwidth;
40
+ };
41
+ scale.step = function() {
42
+ return step;
43
+ };
44
+ scale.round = function(_) {
45
+ return arguments.length ? (round = !!_, rescale()) : round;
46
+ };
47
+ scale.padding = function(_) {
48
+ return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;
49
+ };
50
+ scale.paddingInner = function(_) {
51
+ return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner;
52
+ };
53
+ scale.paddingOuter = function(_) {
54
+ return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter;
55
+ };
56
+ scale.align = function(_) {
57
+ return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;
58
+ };
59
+ scale.copy = function() {
60
+ return band(domain(), [r0, r1]).round(round).paddingInner(paddingInner).paddingOuter(paddingOuter).align(align);
61
+ };
62
+ return initRange.apply(rescale(), arguments);
63
+ }
64
+ var parser = function() {
65
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
66
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
67
+ return o2;
68
+ }, "o"), $V0 = [1, 10, 12, 14, 16, 18, 19, 21, 23], $V1 = [2, 6], $V2 = [1, 3], $V3 = [1, 5], $V4 = [1, 6], $V5 = [1, 7], $V6 = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], $V7 = [1, 25], $V8 = [1, 26], $V9 = [1, 28], $Va = [1, 29], $Vb = [1, 30], $Vc = [1, 31], $Vd = [1, 32], $Ve = [1, 33], $Vf = [1, 34], $Vg = [1, 35], $Vh = [1, 36], $Vi = [1, 37], $Vj = [1, 43], $Vk = [1, 42], $Vl = [1, 47], $Vm = [1, 50], $Vn = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], $Vo = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], $Vp = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], $Vq = [1, 64];
69
+ var parser2 = {
70
+ trace: /* @__PURE__ */ __name(function trace() {
71
+ }, "trace"),
72
+ yy: {},
73
+ symbols_: { "error": 2, "start": 3, "eol": 4, "XYCHART": 5, "chartConfig": 6, "document": 7, "CHART_ORIENTATION": 8, "statement": 9, "title": 10, "text": 11, "X_AXIS": 12, "parseXAxis": 13, "Y_AXIS": 14, "parseYAxis": 15, "LINE": 16, "plotData": 17, "BAR": 18, "acc_title": 19, "acc_title_value": 20, "acc_descr": 21, "acc_descr_value": 22, "acc_descr_multiline_value": 23, "SQUARE_BRACES_START": 24, "commaSeparatedNumbers": 25, "SQUARE_BRACES_END": 26, "NUMBER_WITH_DECIMAL": 27, "COMMA": 28, "xAxisData": 29, "bandData": 30, "ARROW_DELIMITER": 31, "commaSeparatedTexts": 32, "yAxisData": 33, "NEWLINE": 34, "SEMI": 35, "EOF": 36, "alphaNum": 37, "STR": 38, "MD_STR": 39, "alphaNumToken": 40, "AMP": 41, "NUM": 42, "ALPHA": 43, "PLUS": 44, "EQUALS": 45, "MULT": 46, "DOT": 47, "BRKT": 48, "MINUS": 49, "UNDERSCORE": 50, "$accept": 0, "$end": 1 },
74
+ terminals_: { 2: "error", 5: "XYCHART", 8: "CHART_ORIENTATION", 10: "title", 12: "X_AXIS", 14: "Y_AXIS", 16: "LINE", 18: "BAR", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "SQUARE_BRACES_START", 26: "SQUARE_BRACES_END", 27: "NUMBER_WITH_DECIMAL", 28: "COMMA", 31: "ARROW_DELIMITER", 34: "NEWLINE", 35: "SEMI", 36: "EOF", 38: "STR", 39: "MD_STR", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "PLUS", 45: "EQUALS", 46: "MULT", 47: "DOT", 48: "BRKT", 49: "MINUS", 50: "UNDERSCORE" },
75
+ productions_: [0, [3, 2], [3, 3], [3, 2], [3, 1], [6, 1], [7, 0], [7, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 3], [9, 2], [9, 3], [9, 2], [9, 2], [9, 1], [17, 3], [25, 3], [25, 1], [13, 1], [13, 2], [13, 1], [29, 1], [29, 3], [30, 3], [32, 3], [32, 1], [15, 1], [15, 2], [15, 1], [33, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [37, 1], [37, 2], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1]],
76
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
77
+ var $0 = $$.length - 1;
78
+ switch (yystate) {
79
+ case 5:
80
+ yy.setOrientation($$[$0]);
81
+ break;
82
+ case 9:
83
+ yy.setDiagramTitle($$[$0].text.trim());
84
+ break;
85
+ case 12:
86
+ yy.setLineData({ text: "", type: "text" }, $$[$0]);
87
+ break;
88
+ case 13:
89
+ yy.setLineData($$[$0 - 1], $$[$0]);
90
+ break;
91
+ case 14:
92
+ yy.setBarData({ text: "", type: "text" }, $$[$0]);
93
+ break;
94
+ case 15:
95
+ yy.setBarData($$[$0 - 1], $$[$0]);
96
+ break;
97
+ case 16:
98
+ this.$ = $$[$0].trim();
99
+ yy.setAccTitle(this.$);
100
+ break;
101
+ case 17:
102
+ case 18:
103
+ this.$ = $$[$0].trim();
104
+ yy.setAccDescription(this.$);
105
+ break;
106
+ case 19:
107
+ this.$ = $$[$0 - 1];
108
+ break;
109
+ case 20:
110
+ this.$ = [Number($$[$0 - 2]), ...$$[$0]];
111
+ break;
112
+ case 21:
113
+ this.$ = [Number($$[$0])];
114
+ break;
115
+ case 22:
116
+ yy.setXAxisTitle($$[$0]);
117
+ break;
118
+ case 23:
119
+ yy.setXAxisTitle($$[$0 - 1]);
120
+ break;
121
+ case 24:
122
+ yy.setXAxisTitle({ type: "text", text: "" });
123
+ break;
124
+ case 25:
125
+ yy.setXAxisBand($$[$0]);
126
+ break;
127
+ case 26:
128
+ yy.setXAxisRangeData(Number($$[$0 - 2]), Number($$[$0]));
129
+ break;
130
+ case 27:
131
+ this.$ = $$[$0 - 1];
132
+ break;
133
+ case 28:
134
+ this.$ = [$$[$0 - 2], ...$$[$0]];
135
+ break;
136
+ case 29:
137
+ this.$ = [$$[$0]];
138
+ break;
139
+ case 30:
140
+ yy.setYAxisTitle($$[$0]);
141
+ break;
142
+ case 31:
143
+ yy.setYAxisTitle($$[$0 - 1]);
144
+ break;
145
+ case 32:
146
+ yy.setYAxisTitle({ type: "text", text: "" });
147
+ break;
148
+ case 33:
149
+ yy.setYAxisRangeData(Number($$[$0 - 2]), Number($$[$0]));
150
+ break;
151
+ case 37:
152
+ this.$ = { text: $$[$0], type: "text" };
153
+ break;
154
+ case 38:
155
+ this.$ = { text: $$[$0], type: "text" };
156
+ break;
157
+ case 39:
158
+ this.$ = { text: $$[$0], type: "markdown" };
159
+ break;
160
+ case 40:
161
+ this.$ = $$[$0];
162
+ break;
163
+ case 41:
164
+ this.$ = $$[$0 - 1] + "" + $$[$0];
165
+ break;
166
+ }
167
+ }, "anonymous"),
168
+ table: [o($V0, $V1, { 3: 1, 4: 2, 7: 4, 5: $V2, 34: $V3, 35: $V4, 36: $V5 }), { 1: [3] }, o($V0, $V1, { 4: 2, 7: 4, 3: 8, 5: $V2, 34: $V3, 35: $V4, 36: $V5 }), o($V0, $V1, { 4: 2, 7: 4, 6: 9, 3: 10, 5: $V2, 8: [1, 11], 34: $V3, 35: $V4, 36: $V5 }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, o($V6, [2, 34]), o($V6, [2, 35]), o($V6, [2, 36]), { 1: [2, 1] }, o($V0, $V1, { 4: 2, 7: 4, 3: 21, 5: $V2, 34: $V3, 35: $V4, 36: $V5 }), { 1: [2, 3] }, o($V6, [2, 5]), o($V0, [2, 7], { 4: 22, 34: $V3, 35: $V4, 36: $V5 }), { 11: 23, 37: 24, 38: $V7, 39: $V8, 40: 27, 41: $V9, 42: $Va, 43: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi }, { 11: 39, 13: 38, 24: $Vj, 27: $Vk, 29: 40, 30: 41, 37: 24, 38: $V7, 39: $V8, 40: 27, 41: $V9, 42: $Va, 43: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi }, { 11: 45, 15: 44, 27: $Vl, 33: 46, 37: 24, 38: $V7, 39: $V8, 40: 27, 41: $V9, 42: $Va, 43: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi }, { 11: 49, 17: 48, 24: $Vm, 37: 24, 38: $V7, 39: $V8, 40: 27, 41: $V9, 42: $Va, 43: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi }, { 11: 52, 17: 51, 24: $Vm, 37: 24, 38: $V7, 39: $V8, 40: 27, 41: $V9, 42: $Va, 43: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi }, { 20: [1, 53] }, { 22: [1, 54] }, o($Vn, [2, 18]), { 1: [2, 2] }, o($Vn, [2, 8]), o($Vn, [2, 9]), o($Vo, [2, 37], { 40: 55, 41: $V9, 42: $Va, 43: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi }), o($Vo, [2, 38]), o($Vo, [2, 39]), o($Vp, [2, 40]), o($Vp, [2, 42]), o($Vp, [2, 43]), o($Vp, [2, 44]), o($Vp, [2, 45]), o($Vp, [2, 46]), o($Vp, [2, 47]), o($Vp, [2, 48]), o($Vp, [2, 49]), o($Vp, [2, 50]), o($Vp, [2, 51]), o($Vn, [2, 10]), o($Vn, [2, 22], { 30: 41, 29: 56, 24: $Vj, 27: $Vk }), o($Vn, [2, 24]), o($Vn, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: $V7, 39: $V8, 40: 27, 41: $V9, 42: $Va, 43: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi }, o($Vn, [2, 11]), o($Vn, [2, 30], { 33: 60, 27: $Vl }), o($Vn, [2, 32]), { 31: [1, 61] }, o($Vn, [2, 12]), { 17: 62, 24: $Vm }, { 25: 63, 27: $Vq }, o($Vn, [2, 14]), { 17: 65, 24: $Vm }, o($Vn, [2, 16]), o($Vn, [2, 17]), o($Vp, [2, 41]), o($Vn, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, o($Vn, [2, 31]), { 27: [1, 69] }, o($Vn, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, o($Vn, [2, 15]), o($Vn, [2, 26]), o($Vn, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: $V7, 39: $V8, 40: 27, 41: $V9, 42: $Va, 43: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi }, o($Vn, [2, 33]), o($Vn, [2, 19]), { 25: 73, 27: $Vq }, { 26: [2, 28] }, { 26: [2, 20] }],
169
+ defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
170
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
171
+ if (hash.recoverable) {
172
+ this.trace(str);
173
+ } else {
174
+ var error = new Error(str);
175
+ error.hash = hash;
176
+ throw error;
177
+ }
178
+ }, "parseError"),
179
+ parse: /* @__PURE__ */ __name(function parse(input) {
180
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
181
+ var args = lstack.slice.call(arguments, 1);
182
+ var lexer2 = Object.create(this.lexer);
183
+ var sharedState = { yy: {} };
184
+ for (var k in this.yy) {
185
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
186
+ sharedState.yy[k] = this.yy[k];
187
+ }
188
+ }
189
+ lexer2.setInput(input, sharedState.yy);
190
+ sharedState.yy.lexer = lexer2;
191
+ sharedState.yy.parser = this;
192
+ if (typeof lexer2.yylloc == "undefined") {
193
+ lexer2.yylloc = {};
194
+ }
195
+ var yyloc = lexer2.yylloc;
196
+ lstack.push(yyloc);
197
+ var ranges = lexer2.options && lexer2.options.ranges;
198
+ if (typeof sharedState.yy.parseError === "function") {
199
+ this.parseError = sharedState.yy.parseError;
200
+ } else {
201
+ this.parseError = Object.getPrototypeOf(this).parseError;
202
+ }
203
+ function popStack(n) {
204
+ stack.length = stack.length - 2 * n;
205
+ vstack.length = vstack.length - n;
206
+ lstack.length = lstack.length - n;
207
+ }
208
+ __name(popStack, "popStack");
209
+ function lex() {
210
+ var token;
211
+ token = tstack.pop() || lexer2.lex() || EOF;
212
+ if (typeof token !== "number") {
213
+ if (token instanceof Array) {
214
+ tstack = token;
215
+ token = tstack.pop();
216
+ }
217
+ token = self.symbols_[token] || token;
218
+ }
219
+ return token;
220
+ }
221
+ __name(lex, "lex");
222
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
223
+ while (true) {
224
+ state = stack[stack.length - 1];
225
+ if (this.defaultActions[state]) {
226
+ action = this.defaultActions[state];
227
+ } else {
228
+ if (symbol === null || typeof symbol == "undefined") {
229
+ symbol = lex();
230
+ }
231
+ action = table[state] && table[state][symbol];
232
+ }
233
+ if (typeof action === "undefined" || !action.length || !action[0]) {
234
+ var errStr = "";
235
+ expected = [];
236
+ for (p in table[state]) {
237
+ if (this.terminals_[p] && p > TERROR) {
238
+ expected.push("'" + this.terminals_[p] + "'");
239
+ }
240
+ }
241
+ if (lexer2.showPosition) {
242
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
243
+ } else {
244
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
245
+ }
246
+ this.parseError(errStr, {
247
+ text: lexer2.match,
248
+ token: this.terminals_[symbol] || symbol,
249
+ line: lexer2.yylineno,
250
+ loc: yyloc,
251
+ expected
252
+ });
253
+ }
254
+ if (action[0] instanceof Array && action.length > 1) {
255
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
256
+ }
257
+ switch (action[0]) {
258
+ case 1:
259
+ stack.push(symbol);
260
+ vstack.push(lexer2.yytext);
261
+ lstack.push(lexer2.yylloc);
262
+ stack.push(action[1]);
263
+ symbol = null;
264
+ {
265
+ yyleng = lexer2.yyleng;
266
+ yytext = lexer2.yytext;
267
+ yylineno = lexer2.yylineno;
268
+ yyloc = lexer2.yylloc;
269
+ }
270
+ break;
271
+ case 2:
272
+ len = this.productions_[action[1]][1];
273
+ yyval.$ = vstack[vstack.length - len];
274
+ yyval._$ = {
275
+ first_line: lstack[lstack.length - (len || 1)].first_line,
276
+ last_line: lstack[lstack.length - 1].last_line,
277
+ first_column: lstack[lstack.length - (len || 1)].first_column,
278
+ last_column: lstack[lstack.length - 1].last_column
279
+ };
280
+ if (ranges) {
281
+ yyval._$.range = [
282
+ lstack[lstack.length - (len || 1)].range[0],
283
+ lstack[lstack.length - 1].range[1]
284
+ ];
285
+ }
286
+ r = this.performAction.apply(yyval, [
287
+ yytext,
288
+ yyleng,
289
+ yylineno,
290
+ sharedState.yy,
291
+ action[1],
292
+ vstack,
293
+ lstack
294
+ ].concat(args));
295
+ if (typeof r !== "undefined") {
296
+ return r;
297
+ }
298
+ if (len) {
299
+ stack = stack.slice(0, -1 * len * 2);
300
+ vstack = vstack.slice(0, -1 * len);
301
+ lstack = lstack.slice(0, -1 * len);
302
+ }
303
+ stack.push(this.productions_[action[1]][0]);
304
+ vstack.push(yyval.$);
305
+ lstack.push(yyval._$);
306
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
307
+ stack.push(newState);
308
+ break;
309
+ case 3:
310
+ return true;
311
+ }
312
+ }
313
+ return true;
314
+ }, "parse")
315
+ };
316
+ var lexer = /* @__PURE__ */ function() {
317
+ var lexer2 = {
318
+ EOF: 1,
319
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
320
+ if (this.yy.parser) {
321
+ this.yy.parser.parseError(str, hash);
322
+ } else {
323
+ throw new Error(str);
324
+ }
325
+ }, "parseError"),
326
+ // resets the lexer, sets new input
327
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
328
+ this.yy = yy || this.yy || {};
329
+ this._input = input;
330
+ this._more = this._backtrack = this.done = false;
331
+ this.yylineno = this.yyleng = 0;
332
+ this.yytext = this.matched = this.match = "";
333
+ this.conditionStack = ["INITIAL"];
334
+ this.yylloc = {
335
+ first_line: 1,
336
+ first_column: 0,
337
+ last_line: 1,
338
+ last_column: 0
339
+ };
340
+ if (this.options.ranges) {
341
+ this.yylloc.range = [0, 0];
342
+ }
343
+ this.offset = 0;
344
+ return this;
345
+ }, "setInput"),
346
+ // consumes and returns one char from the input
347
+ input: /* @__PURE__ */ __name(function() {
348
+ var ch = this._input[0];
349
+ this.yytext += ch;
350
+ this.yyleng++;
351
+ this.offset++;
352
+ this.match += ch;
353
+ this.matched += ch;
354
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
355
+ if (lines) {
356
+ this.yylineno++;
357
+ this.yylloc.last_line++;
358
+ } else {
359
+ this.yylloc.last_column++;
360
+ }
361
+ if (this.options.ranges) {
362
+ this.yylloc.range[1]++;
363
+ }
364
+ this._input = this._input.slice(1);
365
+ return ch;
366
+ }, "input"),
367
+ // unshifts one char (or a string) into the input
368
+ unput: /* @__PURE__ */ __name(function(ch) {
369
+ var len = ch.length;
370
+ var lines = ch.split(/(?:\r\n?|\n)/g);
371
+ this._input = ch + this._input;
372
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
373
+ this.offset -= len;
374
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
375
+ this.match = this.match.substr(0, this.match.length - 1);
376
+ this.matched = this.matched.substr(0, this.matched.length - 1);
377
+ if (lines.length - 1) {
378
+ this.yylineno -= lines.length - 1;
379
+ }
380
+ var r = this.yylloc.range;
381
+ this.yylloc = {
382
+ first_line: this.yylloc.first_line,
383
+ last_line: this.yylineno + 1,
384
+ first_column: this.yylloc.first_column,
385
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
386
+ };
387
+ if (this.options.ranges) {
388
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
389
+ }
390
+ this.yyleng = this.yytext.length;
391
+ return this;
392
+ }, "unput"),
393
+ // When called from action, caches matched text and appends it on next action
394
+ more: /* @__PURE__ */ __name(function() {
395
+ this._more = true;
396
+ return this;
397
+ }, "more"),
398
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
399
+ reject: /* @__PURE__ */ __name(function() {
400
+ if (this.options.backtrack_lexer) {
401
+ this._backtrack = true;
402
+ } else {
403
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
404
+ text: "",
405
+ token: null,
406
+ line: this.yylineno
407
+ });
408
+ }
409
+ return this;
410
+ }, "reject"),
411
+ // retain first n characters of the match
412
+ less: /* @__PURE__ */ __name(function(n) {
413
+ this.unput(this.match.slice(n));
414
+ }, "less"),
415
+ // displays already matched input, i.e. for error messages
416
+ pastInput: /* @__PURE__ */ __name(function() {
417
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
418
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
419
+ }, "pastInput"),
420
+ // displays upcoming input, i.e. for error messages
421
+ upcomingInput: /* @__PURE__ */ __name(function() {
422
+ var next = this.match;
423
+ if (next.length < 20) {
424
+ next += this._input.substr(0, 20 - next.length);
425
+ }
426
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
427
+ }, "upcomingInput"),
428
+ // displays the character position where the lexing error occurred, i.e. for error messages
429
+ showPosition: /* @__PURE__ */ __name(function() {
430
+ var pre = this.pastInput();
431
+ var c = new Array(pre.length + 1).join("-");
432
+ return pre + this.upcomingInput() + "\n" + c + "^";
433
+ }, "showPosition"),
434
+ // test the lexed token: return FALSE when not a match, otherwise return token
435
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
436
+ var token, lines, backup;
437
+ if (this.options.backtrack_lexer) {
438
+ backup = {
439
+ yylineno: this.yylineno,
440
+ yylloc: {
441
+ first_line: this.yylloc.first_line,
442
+ last_line: this.last_line,
443
+ first_column: this.yylloc.first_column,
444
+ last_column: this.yylloc.last_column
445
+ },
446
+ yytext: this.yytext,
447
+ match: this.match,
448
+ matches: this.matches,
449
+ matched: this.matched,
450
+ yyleng: this.yyleng,
451
+ offset: this.offset,
452
+ _more: this._more,
453
+ _input: this._input,
454
+ yy: this.yy,
455
+ conditionStack: this.conditionStack.slice(0),
456
+ done: this.done
457
+ };
458
+ if (this.options.ranges) {
459
+ backup.yylloc.range = this.yylloc.range.slice(0);
460
+ }
461
+ }
462
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
463
+ if (lines) {
464
+ this.yylineno += lines.length;
465
+ }
466
+ this.yylloc = {
467
+ first_line: this.yylloc.last_line,
468
+ last_line: this.yylineno + 1,
469
+ first_column: this.yylloc.last_column,
470
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
471
+ };
472
+ this.yytext += match[0];
473
+ this.match += match[0];
474
+ this.matches = match;
475
+ this.yyleng = this.yytext.length;
476
+ if (this.options.ranges) {
477
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
478
+ }
479
+ this._more = false;
480
+ this._backtrack = false;
481
+ this._input = this._input.slice(match[0].length);
482
+ this.matched += match[0];
483
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
484
+ if (this.done && this._input) {
485
+ this.done = false;
486
+ }
487
+ if (token) {
488
+ return token;
489
+ } else if (this._backtrack) {
490
+ for (var k in backup) {
491
+ this[k] = backup[k];
492
+ }
493
+ return false;
494
+ }
495
+ return false;
496
+ }, "test_match"),
497
+ // return next match in input
498
+ next: /* @__PURE__ */ __name(function() {
499
+ if (this.done) {
500
+ return this.EOF;
501
+ }
502
+ if (!this._input) {
503
+ this.done = true;
504
+ }
505
+ var token, match, tempMatch, index;
506
+ if (!this._more) {
507
+ this.yytext = "";
508
+ this.match = "";
509
+ }
510
+ var rules = this._currentRules();
511
+ for (var i = 0; i < rules.length; i++) {
512
+ tempMatch = this._input.match(this.rules[rules[i]]);
513
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
514
+ match = tempMatch;
515
+ index = i;
516
+ if (this.options.backtrack_lexer) {
517
+ token = this.test_match(tempMatch, rules[i]);
518
+ if (token !== false) {
519
+ return token;
520
+ } else if (this._backtrack) {
521
+ match = false;
522
+ continue;
523
+ } else {
524
+ return false;
525
+ }
526
+ } else if (!this.options.flex) {
527
+ break;
528
+ }
529
+ }
530
+ }
531
+ if (match) {
532
+ token = this.test_match(match, rules[index]);
533
+ if (token !== false) {
534
+ return token;
535
+ }
536
+ return false;
537
+ }
538
+ if (this._input === "") {
539
+ return this.EOF;
540
+ } else {
541
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
542
+ text: "",
543
+ token: null,
544
+ line: this.yylineno
545
+ });
546
+ }
547
+ }, "next"),
548
+ // return next match that has a token
549
+ lex: /* @__PURE__ */ __name(function lex() {
550
+ var r = this.next();
551
+ if (r) {
552
+ return r;
553
+ } else {
554
+ return this.lex();
555
+ }
556
+ }, "lex"),
557
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
558
+ begin: /* @__PURE__ */ __name(function begin(condition) {
559
+ this.conditionStack.push(condition);
560
+ }, "begin"),
561
+ // pop the previously active lexer condition state off the condition stack
562
+ popState: /* @__PURE__ */ __name(function popState() {
563
+ var n = this.conditionStack.length - 1;
564
+ if (n > 0) {
565
+ return this.conditionStack.pop();
566
+ } else {
567
+ return this.conditionStack[0];
568
+ }
569
+ }, "popState"),
570
+ // produce the lexer rule set which is active for the currently active lexer condition state
571
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
572
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
573
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
574
+ } else {
575
+ return this.conditions["INITIAL"].rules;
576
+ }
577
+ }, "_currentRules"),
578
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
579
+ topState: /* @__PURE__ */ __name(function topState(n) {
580
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
581
+ if (n >= 0) {
582
+ return this.conditionStack[n];
583
+ } else {
584
+ return "INITIAL";
585
+ }
586
+ }, "topState"),
587
+ // alias for begin(condition)
588
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
589
+ this.begin(condition);
590
+ }, "pushState"),
591
+ // return the number of states currently on the stack
592
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
593
+ return this.conditionStack.length;
594
+ }, "stateStackSize"),
595
+ options: { "case-insensitive": true },
596
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
597
+ switch ($avoiding_name_collisions) {
598
+ case 0:
599
+ break;
600
+ case 1:
601
+ break;
602
+ case 2:
603
+ this.popState();
604
+ return 34;
605
+ case 3:
606
+ this.popState();
607
+ return 34;
608
+ case 4:
609
+ return 34;
610
+ case 5:
611
+ break;
612
+ case 6:
613
+ return 10;
614
+ case 7:
615
+ this.pushState("acc_title");
616
+ return 19;
617
+ case 8:
618
+ this.popState();
619
+ return "acc_title_value";
620
+ case 9:
621
+ this.pushState("acc_descr");
622
+ return 21;
623
+ case 10:
624
+ this.popState();
625
+ return "acc_descr_value";
626
+ case 11:
627
+ this.pushState("acc_descr_multiline");
628
+ break;
629
+ case 12:
630
+ this.popState();
631
+ break;
632
+ case 13:
633
+ return "acc_descr_multiline_value";
634
+ case 14:
635
+ return 5;
636
+ case 15:
637
+ return 5;
638
+ case 16:
639
+ return 8;
640
+ case 17:
641
+ this.pushState("axis_data");
642
+ return "X_AXIS";
643
+ case 18:
644
+ this.pushState("axis_data");
645
+ return "Y_AXIS";
646
+ case 19:
647
+ this.pushState("axis_band_data");
648
+ return 24;
649
+ case 20:
650
+ return 31;
651
+ case 21:
652
+ this.pushState("data");
653
+ return 16;
654
+ case 22:
655
+ this.pushState("data");
656
+ return 18;
657
+ case 23:
658
+ this.pushState("data_inner");
659
+ return 24;
660
+ case 24:
661
+ return 27;
662
+ case 25:
663
+ this.popState();
664
+ return 26;
665
+ case 26:
666
+ this.popState();
667
+ break;
668
+ case 27:
669
+ this.pushState("string");
670
+ break;
671
+ case 28:
672
+ this.popState();
673
+ break;
674
+ case 29:
675
+ return "STR";
676
+ case 30:
677
+ return 24;
678
+ case 31:
679
+ return 26;
680
+ case 32:
681
+ return 43;
682
+ case 33:
683
+ return "COLON";
684
+ case 34:
685
+ return 44;
686
+ case 35:
687
+ return 28;
688
+ case 36:
689
+ return 45;
690
+ case 37:
691
+ return 46;
692
+ case 38:
693
+ return 48;
694
+ case 39:
695
+ return 50;
696
+ case 40:
697
+ return 47;
698
+ case 41:
699
+ return 41;
700
+ case 42:
701
+ return 49;
702
+ case 43:
703
+ return 42;
704
+ case 44:
705
+ break;
706
+ case 45:
707
+ return 35;
708
+ case 46:
709
+ return 36;
710
+ }
711
+ }, "anonymous"),
712
+ rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:xychart\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
713
+ conditions: { "data_inner": { "rules": [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 24, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], "inclusive": true }, "data": { "rules": [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 23, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], "inclusive": true }, "axis_band_data": { "rules": [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], "inclusive": true }, "axis_data": { "rules": [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], "inclusive": true }, "acc_descr_multiline": { "rules": [12, 13], "inclusive": false }, "acc_descr": { "rules": [10], "inclusive": false }, "acc_title": { "rules": [8], "inclusive": false }, "title": { "rules": [], "inclusive": false }, "md_string": { "rules": [], "inclusive": false }, "string": { "rules": [28, 29], "inclusive": false }, "INITIAL": { "rules": [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], "inclusive": true } }
714
+ };
715
+ return lexer2;
716
+ }();
717
+ parser2.lexer = lexer;
718
+ function Parser() {
719
+ this.yy = {};
720
+ }
721
+ __name(Parser, "Parser");
722
+ Parser.prototype = parser2;
723
+ parser2.Parser = Parser;
724
+ return new Parser();
725
+ }();
726
+ parser.parser = parser;
727
+ var xychart_default = parser;
728
+ function isBarPlot(data) {
729
+ return data.type === "bar";
730
+ }
731
+ __name(isBarPlot, "isBarPlot");
732
+ function isBandAxisData(data) {
733
+ return data.type === "band";
734
+ }
735
+ __name(isBandAxisData, "isBandAxisData");
736
+ function isLinearAxisData(data) {
737
+ return data.type === "linear";
738
+ }
739
+ __name(isLinearAxisData, "isLinearAxisData");
740
+ var TextDimensionCalculatorWithFont = (_a = class {
741
+ constructor(parentGroup) {
742
+ this.parentGroup = parentGroup;
743
+ }
744
+ getMaxDimension(texts, fontSize) {
745
+ if (!this.parentGroup) {
746
+ return {
747
+ width: texts.reduce((acc, cur) => Math.max(cur.length, acc), 0) * fontSize,
748
+ height: fontSize
749
+ };
750
+ }
751
+ const dimension = {
752
+ width: 0,
753
+ height: 0
754
+ };
755
+ const elem = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", fontSize);
756
+ for (const t of texts) {
757
+ const bbox = computeDimensionOfText(elem, 1, t);
758
+ const width = bbox ? bbox.width : t.length * fontSize;
759
+ const height = bbox ? bbox.height : fontSize;
760
+ dimension.width = Math.max(dimension.width, width);
761
+ dimension.height = Math.max(dimension.height, height);
762
+ }
763
+ elem.remove();
764
+ return dimension;
765
+ }
766
+ }, __name(_a, "TextDimensionCalculatorWithFont"), _a);
767
+ var BAR_WIDTH_TO_TICK_WIDTH_RATIO = 0.7;
768
+ var MAX_OUTER_PADDING_PERCENT_FOR_WRT_LABEL = 0.2;
769
+ var BaseAxis = (_b = class {
770
+ constructor(axisConfig, title, textDimensionCalculator, axisThemeConfig) {
771
+ this.axisConfig = axisConfig;
772
+ this.title = title;
773
+ this.textDimensionCalculator = textDimensionCalculator;
774
+ this.axisThemeConfig = axisThemeConfig;
775
+ this.boundingRect = { x: 0, y: 0, width: 0, height: 0 };
776
+ this.axisPosition = "left";
777
+ this.showTitle = false;
778
+ this.showLabel = false;
779
+ this.showTick = false;
780
+ this.showAxisLine = false;
781
+ this.outerPadding = 0;
782
+ this.titleTextHeight = 0;
783
+ this.labelTextHeight = 0;
784
+ this.range = [0, 10];
785
+ this.boundingRect = { x: 0, y: 0, width: 0, height: 0 };
786
+ this.axisPosition = "left";
787
+ }
788
+ setRange(range2) {
789
+ this.range = range2;
790
+ if (this.axisPosition === "left" || this.axisPosition === "right") {
791
+ this.boundingRect.height = range2[1] - range2[0];
792
+ } else {
793
+ this.boundingRect.width = range2[1] - range2[0];
794
+ }
795
+ this.recalculateScale();
796
+ }
797
+ getRange() {
798
+ return [this.range[0] + this.outerPadding, this.range[1] - this.outerPadding];
799
+ }
800
+ setAxisPosition(axisPosition) {
801
+ this.axisPosition = axisPosition;
802
+ this.setRange(this.range);
803
+ }
804
+ getTickDistance() {
805
+ const range2 = this.getRange();
806
+ return Math.abs(range2[0] - range2[1]) / this.getTickValues().length;
807
+ }
808
+ getAxisOuterPadding() {
809
+ return this.outerPadding;
810
+ }
811
+ getLabelDimension() {
812
+ return this.textDimensionCalculator.getMaxDimension(
813
+ this.getTickValues().map((tick) => tick.toString()),
814
+ this.axisConfig.labelFontSize
815
+ );
816
+ }
817
+ recalculateOuterPaddingToDrawBar() {
818
+ if (BAR_WIDTH_TO_TICK_WIDTH_RATIO * this.getTickDistance() > this.outerPadding * 2) {
819
+ this.outerPadding = Math.floor(BAR_WIDTH_TO_TICK_WIDTH_RATIO * this.getTickDistance() / 2);
820
+ }
821
+ this.recalculateScale();
822
+ }
823
+ calculateSpaceIfDrawnHorizontally(availableSpace) {
824
+ let availableHeight = availableSpace.height;
825
+ if (this.axisConfig.showAxisLine && availableHeight > this.axisConfig.axisLineWidth) {
826
+ availableHeight -= this.axisConfig.axisLineWidth;
827
+ this.showAxisLine = true;
828
+ }
829
+ if (this.axisConfig.showLabel) {
830
+ const spaceRequired = this.getLabelDimension();
831
+ const maxPadding = MAX_OUTER_PADDING_PERCENT_FOR_WRT_LABEL * availableSpace.width;
832
+ this.outerPadding = Math.min(spaceRequired.width / 2, maxPadding);
833
+ const heightRequired = spaceRequired.height + this.axisConfig.labelPadding * 2;
834
+ this.labelTextHeight = spaceRequired.height;
835
+ if (heightRequired <= availableHeight) {
836
+ availableHeight -= heightRequired;
837
+ this.showLabel = true;
838
+ }
839
+ }
840
+ if (this.axisConfig.showTick && availableHeight >= this.axisConfig.tickLength) {
841
+ this.showTick = true;
842
+ availableHeight -= this.axisConfig.tickLength;
843
+ }
844
+ if (this.axisConfig.showTitle && this.title) {
845
+ const spaceRequired = this.textDimensionCalculator.getMaxDimension(
846
+ [this.title],
847
+ this.axisConfig.titleFontSize
848
+ );
849
+ const heightRequired = spaceRequired.height + this.axisConfig.titlePadding * 2;
850
+ this.titleTextHeight = spaceRequired.height;
851
+ if (heightRequired <= availableHeight) {
852
+ availableHeight -= heightRequired;
853
+ this.showTitle = true;
854
+ }
855
+ }
856
+ this.boundingRect.width = availableSpace.width;
857
+ this.boundingRect.height = availableSpace.height - availableHeight;
858
+ }
859
+ calculateSpaceIfDrawnVertical(availableSpace) {
860
+ let availableWidth = availableSpace.width;
861
+ if (this.axisConfig.showAxisLine && availableWidth > this.axisConfig.axisLineWidth) {
862
+ availableWidth -= this.axisConfig.axisLineWidth;
863
+ this.showAxisLine = true;
864
+ }
865
+ if (this.axisConfig.showLabel) {
866
+ const spaceRequired = this.getLabelDimension();
867
+ const maxPadding = MAX_OUTER_PADDING_PERCENT_FOR_WRT_LABEL * availableSpace.height;
868
+ this.outerPadding = Math.min(spaceRequired.height / 2, maxPadding);
869
+ const widthRequired = spaceRequired.width + this.axisConfig.labelPadding * 2;
870
+ if (widthRequired <= availableWidth) {
871
+ availableWidth -= widthRequired;
872
+ this.showLabel = true;
873
+ }
874
+ }
875
+ if (this.axisConfig.showTick && availableWidth >= this.axisConfig.tickLength) {
876
+ this.showTick = true;
877
+ availableWidth -= this.axisConfig.tickLength;
878
+ }
879
+ if (this.axisConfig.showTitle && this.title) {
880
+ const spaceRequired = this.textDimensionCalculator.getMaxDimension(
881
+ [this.title],
882
+ this.axisConfig.titleFontSize
883
+ );
884
+ const widthRequired = spaceRequired.height + this.axisConfig.titlePadding * 2;
885
+ this.titleTextHeight = spaceRequired.height;
886
+ if (widthRequired <= availableWidth) {
887
+ availableWidth -= widthRequired;
888
+ this.showTitle = true;
889
+ }
890
+ }
891
+ this.boundingRect.width = availableSpace.width - availableWidth;
892
+ this.boundingRect.height = availableSpace.height;
893
+ }
894
+ calculateSpace(availableSpace) {
895
+ if (this.axisPosition === "left" || this.axisPosition === "right") {
896
+ this.calculateSpaceIfDrawnVertical(availableSpace);
897
+ } else {
898
+ this.calculateSpaceIfDrawnHorizontally(availableSpace);
899
+ }
900
+ this.recalculateScale();
901
+ return {
902
+ width: this.boundingRect.width,
903
+ height: this.boundingRect.height
904
+ };
905
+ }
906
+ setBoundingBoxXY(point) {
907
+ this.boundingRect.x = point.x;
908
+ this.boundingRect.y = point.y;
909
+ }
910
+ getDrawableElementsForLeftAxis() {
911
+ const drawableElement = [];
912
+ if (this.showAxisLine) {
913
+ const x = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
914
+ drawableElement.push({
915
+ type: "path",
916
+ groupTexts: ["left-axis", "axisl-line"],
917
+ data: [
918
+ {
919
+ path: `M ${x},${this.boundingRect.y} L ${x},${this.boundingRect.y + this.boundingRect.height} `,
920
+ strokeFill: this.axisThemeConfig.axisLineColor,
921
+ strokeWidth: this.axisConfig.axisLineWidth
922
+ }
923
+ ]
924
+ });
925
+ }
926
+ if (this.showLabel) {
927
+ drawableElement.push({
928
+ type: "text",
929
+ groupTexts: ["left-axis", "label"],
930
+ data: this.getTickValues().map((tick) => ({
931
+ text: tick.toString(),
932
+ x: this.boundingRect.x + this.boundingRect.width - (this.showLabel ? this.axisConfig.labelPadding : 0) - (this.showTick ? this.axisConfig.tickLength : 0) - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
933
+ y: this.getScaleValue(tick),
934
+ fill: this.axisThemeConfig.labelColor,
935
+ fontSize: this.axisConfig.labelFontSize,
936
+ rotation: 0,
937
+ verticalPos: "middle",
938
+ horizontalPos: "right"
939
+ }))
940
+ });
941
+ }
942
+ if (this.showTick) {
943
+ const x = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
944
+ drawableElement.push({
945
+ type: "path",
946
+ groupTexts: ["left-axis", "ticks"],
947
+ data: this.getTickValues().map((tick) => ({
948
+ path: `M ${x},${this.getScaleValue(tick)} L ${x - this.axisConfig.tickLength},${this.getScaleValue(tick)}`,
949
+ strokeFill: this.axisThemeConfig.tickColor,
950
+ strokeWidth: this.axisConfig.tickWidth
951
+ }))
952
+ });
953
+ }
954
+ if (this.showTitle) {
955
+ drawableElement.push({
956
+ type: "text",
957
+ groupTexts: ["left-axis", "title"],
958
+ data: [
959
+ {
960
+ text: this.title,
961
+ x: this.boundingRect.x + this.axisConfig.titlePadding,
962
+ y: this.boundingRect.y + this.boundingRect.height / 2,
963
+ fill: this.axisThemeConfig.titleColor,
964
+ fontSize: this.axisConfig.titleFontSize,
965
+ rotation: 270,
966
+ verticalPos: "top",
967
+ horizontalPos: "center"
968
+ }
969
+ ]
970
+ });
971
+ }
972
+ return drawableElement;
973
+ }
974
+ getDrawableElementsForBottomAxis() {
975
+ const drawableElement = [];
976
+ if (this.showAxisLine) {
977
+ const y = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
978
+ drawableElement.push({
979
+ type: "path",
980
+ groupTexts: ["bottom-axis", "axis-line"],
981
+ data: [
982
+ {
983
+ path: `M ${this.boundingRect.x},${y} L ${this.boundingRect.x + this.boundingRect.width},${y}`,
984
+ strokeFill: this.axisThemeConfig.axisLineColor,
985
+ strokeWidth: this.axisConfig.axisLineWidth
986
+ }
987
+ ]
988
+ });
989
+ }
990
+ if (this.showLabel) {
991
+ drawableElement.push({
992
+ type: "text",
993
+ groupTexts: ["bottom-axis", "label"],
994
+ data: this.getTickValues().map((tick) => ({
995
+ text: tick.toString(),
996
+ x: this.getScaleValue(tick),
997
+ y: this.boundingRect.y + this.axisConfig.labelPadding + (this.showTick ? this.axisConfig.tickLength : 0) + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0),
998
+ fill: this.axisThemeConfig.labelColor,
999
+ fontSize: this.axisConfig.labelFontSize,
1000
+ rotation: 0,
1001
+ verticalPos: "top",
1002
+ horizontalPos: "center"
1003
+ }))
1004
+ });
1005
+ }
1006
+ if (this.showTick) {
1007
+ const y = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
1008
+ drawableElement.push({
1009
+ type: "path",
1010
+ groupTexts: ["bottom-axis", "ticks"],
1011
+ data: this.getTickValues().map((tick) => ({
1012
+ path: `M ${this.getScaleValue(tick)},${y} L ${this.getScaleValue(tick)},${y + this.axisConfig.tickLength}`,
1013
+ strokeFill: this.axisThemeConfig.tickColor,
1014
+ strokeWidth: this.axisConfig.tickWidth
1015
+ }))
1016
+ });
1017
+ }
1018
+ if (this.showTitle) {
1019
+ drawableElement.push({
1020
+ type: "text",
1021
+ groupTexts: ["bottom-axis", "title"],
1022
+ data: [
1023
+ {
1024
+ text: this.title,
1025
+ x: this.range[0] + (this.range[1] - this.range[0]) / 2,
1026
+ y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
1027
+ fill: this.axisThemeConfig.titleColor,
1028
+ fontSize: this.axisConfig.titleFontSize,
1029
+ rotation: 0,
1030
+ verticalPos: "top",
1031
+ horizontalPos: "center"
1032
+ }
1033
+ ]
1034
+ });
1035
+ }
1036
+ return drawableElement;
1037
+ }
1038
+ getDrawableElementsForTopAxis() {
1039
+ const drawableElement = [];
1040
+ if (this.showAxisLine) {
1041
+ const y = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
1042
+ drawableElement.push({
1043
+ type: "path",
1044
+ groupTexts: ["top-axis", "axis-line"],
1045
+ data: [
1046
+ {
1047
+ path: `M ${this.boundingRect.x},${y} L ${this.boundingRect.x + this.boundingRect.width},${y}`,
1048
+ strokeFill: this.axisThemeConfig.axisLineColor,
1049
+ strokeWidth: this.axisConfig.axisLineWidth
1050
+ }
1051
+ ]
1052
+ });
1053
+ }
1054
+ if (this.showLabel) {
1055
+ drawableElement.push({
1056
+ type: "text",
1057
+ groupTexts: ["top-axis", "label"],
1058
+ data: this.getTickValues().map((tick) => ({
1059
+ text: tick.toString(),
1060
+ x: this.getScaleValue(tick),
1061
+ y: this.boundingRect.y + (this.showTitle ? this.titleTextHeight + this.axisConfig.titlePadding * 2 : 0) + this.axisConfig.labelPadding,
1062
+ fill: this.axisThemeConfig.labelColor,
1063
+ fontSize: this.axisConfig.labelFontSize,
1064
+ rotation: 0,
1065
+ verticalPos: "top",
1066
+ horizontalPos: "center"
1067
+ }))
1068
+ });
1069
+ }
1070
+ if (this.showTick) {
1071
+ const y = this.boundingRect.y;
1072
+ drawableElement.push({
1073
+ type: "path",
1074
+ groupTexts: ["top-axis", "ticks"],
1075
+ data: this.getTickValues().map((tick) => ({
1076
+ path: `M ${this.getScaleValue(tick)},${y + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(tick)},${y + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
1077
+ strokeFill: this.axisThemeConfig.tickColor,
1078
+ strokeWidth: this.axisConfig.tickWidth
1079
+ }))
1080
+ });
1081
+ }
1082
+ if (this.showTitle) {
1083
+ drawableElement.push({
1084
+ type: "text",
1085
+ groupTexts: ["top-axis", "title"],
1086
+ data: [
1087
+ {
1088
+ text: this.title,
1089
+ x: this.boundingRect.x + this.boundingRect.width / 2,
1090
+ y: this.boundingRect.y + this.axisConfig.titlePadding,
1091
+ fill: this.axisThemeConfig.titleColor,
1092
+ fontSize: this.axisConfig.titleFontSize,
1093
+ rotation: 0,
1094
+ verticalPos: "top",
1095
+ horizontalPos: "center"
1096
+ }
1097
+ ]
1098
+ });
1099
+ }
1100
+ return drawableElement;
1101
+ }
1102
+ getDrawableElements() {
1103
+ if (this.axisPosition === "left") {
1104
+ return this.getDrawableElementsForLeftAxis();
1105
+ }
1106
+ if (this.axisPosition === "right") {
1107
+ throw Error("Drawing of right axis is not implemented");
1108
+ }
1109
+ if (this.axisPosition === "bottom") {
1110
+ return this.getDrawableElementsForBottomAxis();
1111
+ }
1112
+ if (this.axisPosition === "top") {
1113
+ return this.getDrawableElementsForTopAxis();
1114
+ }
1115
+ return [];
1116
+ }
1117
+ }, __name(_b, "BaseAxis"), _b);
1118
+ var BandAxis = (_c = class extends BaseAxis {
1119
+ constructor(axisConfig, axisThemeConfig, categories, title, textDimensionCalculator) {
1120
+ super(axisConfig, title, textDimensionCalculator, axisThemeConfig);
1121
+ this.categories = categories;
1122
+ this.scale = band().domain(this.categories).range(this.getRange());
1123
+ }
1124
+ setRange(range2) {
1125
+ super.setRange(range2);
1126
+ }
1127
+ recalculateScale() {
1128
+ this.scale = band().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5);
1129
+ log.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
1130
+ }
1131
+ getTickValues() {
1132
+ return this.categories;
1133
+ }
1134
+ getScaleValue(value) {
1135
+ return this.scale(value) ?? this.getRange()[0];
1136
+ }
1137
+ }, __name(_c, "BandAxis"), _c);
1138
+ var LinearAxis = (_d = class extends BaseAxis {
1139
+ constructor(axisConfig, axisThemeConfig, domain, title, textDimensionCalculator) {
1140
+ super(axisConfig, title, textDimensionCalculator, axisThemeConfig);
1141
+ this.domain = domain;
1142
+ this.scale = linear().domain(this.domain).range(this.getRange());
1143
+ }
1144
+ getTickValues() {
1145
+ return this.scale.ticks();
1146
+ }
1147
+ recalculateScale() {
1148
+ const domain = [...this.domain];
1149
+ if (this.axisPosition === "left") {
1150
+ domain.reverse();
1151
+ }
1152
+ this.scale = linear().domain(domain).range(this.getRange());
1153
+ }
1154
+ getScaleValue(value) {
1155
+ return this.scale(value);
1156
+ }
1157
+ }, __name(_d, "LinearAxis"), _d);
1158
+ function getAxis(data, axisConfig, axisThemeConfig, tmpSVGGroup2) {
1159
+ const textDimensionCalculator = new TextDimensionCalculatorWithFont(tmpSVGGroup2);
1160
+ if (isBandAxisData(data)) {
1161
+ return new BandAxis(
1162
+ axisConfig,
1163
+ axisThemeConfig,
1164
+ data.categories,
1165
+ data.title,
1166
+ textDimensionCalculator
1167
+ );
1168
+ }
1169
+ return new LinearAxis(
1170
+ axisConfig,
1171
+ axisThemeConfig,
1172
+ [data.min, data.max],
1173
+ data.title,
1174
+ textDimensionCalculator
1175
+ );
1176
+ }
1177
+ __name(getAxis, "getAxis");
1178
+ var ChartTitle = (_e = class {
1179
+ constructor(textDimensionCalculator, chartConfig, chartData, chartThemeConfig) {
1180
+ this.textDimensionCalculator = textDimensionCalculator;
1181
+ this.chartConfig = chartConfig;
1182
+ this.chartData = chartData;
1183
+ this.chartThemeConfig = chartThemeConfig;
1184
+ this.boundingRect = {
1185
+ x: 0,
1186
+ y: 0,
1187
+ width: 0,
1188
+ height: 0
1189
+ };
1190
+ this.showChartTitle = false;
1191
+ }
1192
+ setBoundingBoxXY(point) {
1193
+ this.boundingRect.x = point.x;
1194
+ this.boundingRect.y = point.y;
1195
+ }
1196
+ calculateSpace(availableSpace) {
1197
+ const titleDimension = this.textDimensionCalculator.getMaxDimension(
1198
+ [this.chartData.title],
1199
+ this.chartConfig.titleFontSize
1200
+ );
1201
+ const widthRequired = Math.max(titleDimension.width, availableSpace.width);
1202
+ const heightRequired = titleDimension.height + 2 * this.chartConfig.titlePadding;
1203
+ if (titleDimension.width <= widthRequired && titleDimension.height <= heightRequired && this.chartConfig.showTitle && this.chartData.title) {
1204
+ this.boundingRect.width = widthRequired;
1205
+ this.boundingRect.height = heightRequired;
1206
+ this.showChartTitle = true;
1207
+ }
1208
+ return {
1209
+ width: this.boundingRect.width,
1210
+ height: this.boundingRect.height
1211
+ };
1212
+ }
1213
+ getDrawableElements() {
1214
+ const drawableElem = [];
1215
+ if (this.showChartTitle) {
1216
+ drawableElem.push({
1217
+ groupTexts: ["chart-title"],
1218
+ type: "text",
1219
+ data: [
1220
+ {
1221
+ fontSize: this.chartConfig.titleFontSize,
1222
+ text: this.chartData.title,
1223
+ verticalPos: "middle",
1224
+ horizontalPos: "center",
1225
+ x: this.boundingRect.x + this.boundingRect.width / 2,
1226
+ y: this.boundingRect.y + this.boundingRect.height / 2,
1227
+ fill: this.chartThemeConfig.titleColor,
1228
+ rotation: 0
1229
+ }
1230
+ ]
1231
+ });
1232
+ }
1233
+ return drawableElem;
1234
+ }
1235
+ }, __name(_e, "ChartTitle"), _e);
1236
+ function getChartTitleComponent(chartConfig, chartData, chartThemeConfig, tmpSVGGroup2) {
1237
+ const textDimensionCalculator = new TextDimensionCalculatorWithFont(tmpSVGGroup2);
1238
+ return new ChartTitle(textDimensionCalculator, chartConfig, chartData, chartThemeConfig);
1239
+ }
1240
+ __name(getChartTitleComponent, "getChartTitleComponent");
1241
+ var LinePlot = (_f = class {
1242
+ constructor(plotData, xAxis, yAxis, orientation, plotIndex2) {
1243
+ this.plotData = plotData;
1244
+ this.xAxis = xAxis;
1245
+ this.yAxis = yAxis;
1246
+ this.orientation = orientation;
1247
+ this.plotIndex = plotIndex2;
1248
+ }
1249
+ getDrawableElement() {
1250
+ const finalData = this.plotData.data.map((d) => [
1251
+ this.xAxis.getScaleValue(d[0]),
1252
+ this.yAxis.getScaleValue(d[1])
1253
+ ]);
1254
+ let path;
1255
+ if (this.orientation === "horizontal") {
1256
+ path = line().y((d) => d[0]).x((d) => d[1])(finalData);
1257
+ } else {
1258
+ path = line().x((d) => d[0]).y((d) => d[1])(finalData);
1259
+ }
1260
+ if (!path) {
1261
+ return [];
1262
+ }
1263
+ return [
1264
+ {
1265
+ groupTexts: ["plot", `line-plot-${this.plotIndex}`],
1266
+ type: "path",
1267
+ data: [
1268
+ {
1269
+ path,
1270
+ strokeFill: this.plotData.strokeFill,
1271
+ strokeWidth: this.plotData.strokeWidth
1272
+ }
1273
+ ]
1274
+ }
1275
+ ];
1276
+ }
1277
+ }, __name(_f, "LinePlot"), _f);
1278
+ var BarPlot = (_g = class {
1279
+ constructor(barData, boundingRect, xAxis, yAxis, orientation, plotIndex2) {
1280
+ this.barData = barData;
1281
+ this.boundingRect = boundingRect;
1282
+ this.xAxis = xAxis;
1283
+ this.yAxis = yAxis;
1284
+ this.orientation = orientation;
1285
+ this.plotIndex = plotIndex2;
1286
+ }
1287
+ getDrawableElement() {
1288
+ const finalData = this.barData.data.map((d) => [
1289
+ this.xAxis.getScaleValue(d[0]),
1290
+ this.yAxis.getScaleValue(d[1])
1291
+ ]);
1292
+ const barPaddingPercent = 0.05;
1293
+ const barWidth = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - barPaddingPercent);
1294
+ const barWidthHalf = barWidth / 2;
1295
+ if (this.orientation === "horizontal") {
1296
+ return [
1297
+ {
1298
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
1299
+ type: "rect",
1300
+ data: finalData.map((data) => ({
1301
+ x: this.boundingRect.x,
1302
+ y: data[0] - barWidthHalf,
1303
+ height: barWidth,
1304
+ width: data[1] - this.boundingRect.x,
1305
+ fill: this.barData.fill,
1306
+ strokeWidth: 0,
1307
+ strokeFill: this.barData.fill
1308
+ }))
1309
+ }
1310
+ ];
1311
+ }
1312
+ return [
1313
+ {
1314
+ groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
1315
+ type: "rect",
1316
+ data: finalData.map((data) => ({
1317
+ x: data[0] - barWidthHalf,
1318
+ y: data[1],
1319
+ width: barWidth,
1320
+ height: this.boundingRect.y + this.boundingRect.height - data[1],
1321
+ fill: this.barData.fill,
1322
+ strokeWidth: 0,
1323
+ strokeFill: this.barData.fill
1324
+ }))
1325
+ }
1326
+ ];
1327
+ }
1328
+ }, __name(_g, "BarPlot"), _g);
1329
+ var BasePlot = (_h = class {
1330
+ constructor(chartConfig, chartData, chartThemeConfig) {
1331
+ this.chartConfig = chartConfig;
1332
+ this.chartData = chartData;
1333
+ this.chartThemeConfig = chartThemeConfig;
1334
+ this.boundingRect = {
1335
+ x: 0,
1336
+ y: 0,
1337
+ width: 0,
1338
+ height: 0
1339
+ };
1340
+ }
1341
+ setAxes(xAxis, yAxis) {
1342
+ this.xAxis = xAxis;
1343
+ this.yAxis = yAxis;
1344
+ }
1345
+ setBoundingBoxXY(point) {
1346
+ this.boundingRect.x = point.x;
1347
+ this.boundingRect.y = point.y;
1348
+ }
1349
+ calculateSpace(availableSpace) {
1350
+ this.boundingRect.width = availableSpace.width;
1351
+ this.boundingRect.height = availableSpace.height;
1352
+ return {
1353
+ width: this.boundingRect.width,
1354
+ height: this.boundingRect.height
1355
+ };
1356
+ }
1357
+ getDrawableElements() {
1358
+ if (!(this.xAxis && this.yAxis)) {
1359
+ throw Error("Axes must be passed to render Plots");
1360
+ }
1361
+ const drawableElem = [];
1362
+ for (const [i, plot] of this.chartData.plots.entries()) {
1363
+ switch (plot.type) {
1364
+ case "line":
1365
+ {
1366
+ const linePlot = new LinePlot(
1367
+ plot,
1368
+ this.xAxis,
1369
+ this.yAxis,
1370
+ this.chartConfig.chartOrientation,
1371
+ i
1372
+ );
1373
+ drawableElem.push(...linePlot.getDrawableElement());
1374
+ }
1375
+ break;
1376
+ case "bar":
1377
+ {
1378
+ const barPlot = new BarPlot(
1379
+ plot,
1380
+ this.boundingRect,
1381
+ this.xAxis,
1382
+ this.yAxis,
1383
+ this.chartConfig.chartOrientation,
1384
+ i
1385
+ );
1386
+ drawableElem.push(...barPlot.getDrawableElement());
1387
+ }
1388
+ break;
1389
+ }
1390
+ }
1391
+ return drawableElem;
1392
+ }
1393
+ }, __name(_h, "BasePlot"), _h);
1394
+ function getPlotComponent(chartConfig, chartData, chartThemeConfig) {
1395
+ return new BasePlot(chartConfig, chartData, chartThemeConfig);
1396
+ }
1397
+ __name(getPlotComponent, "getPlotComponent");
1398
+ var Orchestrator = (_i = class {
1399
+ constructor(chartConfig, chartData, chartThemeConfig, tmpSVGGroup2) {
1400
+ this.chartConfig = chartConfig;
1401
+ this.chartData = chartData;
1402
+ this.componentStore = {
1403
+ title: getChartTitleComponent(chartConfig, chartData, chartThemeConfig, tmpSVGGroup2),
1404
+ plot: getPlotComponent(chartConfig, chartData, chartThemeConfig),
1405
+ xAxis: getAxis(
1406
+ chartData.xAxis,
1407
+ chartConfig.xAxis,
1408
+ {
1409
+ titleColor: chartThemeConfig.xAxisTitleColor,
1410
+ labelColor: chartThemeConfig.xAxisLabelColor,
1411
+ tickColor: chartThemeConfig.xAxisTickColor,
1412
+ axisLineColor: chartThemeConfig.xAxisLineColor
1413
+ },
1414
+ tmpSVGGroup2
1415
+ ),
1416
+ yAxis: getAxis(
1417
+ chartData.yAxis,
1418
+ chartConfig.yAxis,
1419
+ {
1420
+ titleColor: chartThemeConfig.yAxisTitleColor,
1421
+ labelColor: chartThemeConfig.yAxisLabelColor,
1422
+ tickColor: chartThemeConfig.yAxisTickColor,
1423
+ axisLineColor: chartThemeConfig.yAxisLineColor
1424
+ },
1425
+ tmpSVGGroup2
1426
+ )
1427
+ };
1428
+ }
1429
+ calculateVerticalSpace() {
1430
+ let availableWidth = this.chartConfig.width;
1431
+ let availableHeight = this.chartConfig.height;
1432
+ let plotX = 0;
1433
+ let plotY = 0;
1434
+ let chartWidth = Math.floor(availableWidth * this.chartConfig.plotReservedSpacePercent / 100);
1435
+ let chartHeight = Math.floor(
1436
+ availableHeight * this.chartConfig.plotReservedSpacePercent / 100
1437
+ );
1438
+ let spaceUsed = this.componentStore.plot.calculateSpace({
1439
+ width: chartWidth,
1440
+ height: chartHeight
1441
+ });
1442
+ availableWidth -= spaceUsed.width;
1443
+ availableHeight -= spaceUsed.height;
1444
+ spaceUsed = this.componentStore.title.calculateSpace({
1445
+ width: this.chartConfig.width,
1446
+ height: availableHeight
1447
+ });
1448
+ plotY = spaceUsed.height;
1449
+ availableHeight -= spaceUsed.height;
1450
+ this.componentStore.xAxis.setAxisPosition("bottom");
1451
+ spaceUsed = this.componentStore.xAxis.calculateSpace({
1452
+ width: availableWidth,
1453
+ height: availableHeight
1454
+ });
1455
+ availableHeight -= spaceUsed.height;
1456
+ this.componentStore.yAxis.setAxisPosition("left");
1457
+ spaceUsed = this.componentStore.yAxis.calculateSpace({
1458
+ width: availableWidth,
1459
+ height: availableHeight
1460
+ });
1461
+ plotX = spaceUsed.width;
1462
+ availableWidth -= spaceUsed.width;
1463
+ if (availableWidth > 0) {
1464
+ chartWidth += availableWidth;
1465
+ availableWidth = 0;
1466
+ }
1467
+ if (availableHeight > 0) {
1468
+ chartHeight += availableHeight;
1469
+ availableHeight = 0;
1470
+ }
1471
+ this.componentStore.plot.calculateSpace({
1472
+ width: chartWidth,
1473
+ height: chartHeight
1474
+ });
1475
+ this.componentStore.plot.setBoundingBoxXY({ x: plotX, y: plotY });
1476
+ this.componentStore.xAxis.setRange([plotX, plotX + chartWidth]);
1477
+ this.componentStore.xAxis.setBoundingBoxXY({ x: plotX, y: plotY + chartHeight });
1478
+ this.componentStore.yAxis.setRange([plotY, plotY + chartHeight]);
1479
+ this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: plotY });
1480
+ if (this.chartData.plots.some((p) => isBarPlot(p))) {
1481
+ this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1482
+ }
1483
+ }
1484
+ calculateHorizontalSpace() {
1485
+ let availableWidth = this.chartConfig.width;
1486
+ let availableHeight = this.chartConfig.height;
1487
+ let titleYEnd = 0;
1488
+ let plotX = 0;
1489
+ let plotY = 0;
1490
+ let chartWidth = Math.floor(availableWidth * this.chartConfig.plotReservedSpacePercent / 100);
1491
+ let chartHeight = Math.floor(
1492
+ availableHeight * this.chartConfig.plotReservedSpacePercent / 100
1493
+ );
1494
+ let spaceUsed = this.componentStore.plot.calculateSpace({
1495
+ width: chartWidth,
1496
+ height: chartHeight
1497
+ });
1498
+ availableWidth -= spaceUsed.width;
1499
+ availableHeight -= spaceUsed.height;
1500
+ spaceUsed = this.componentStore.title.calculateSpace({
1501
+ width: this.chartConfig.width,
1502
+ height: availableHeight
1503
+ });
1504
+ titleYEnd = spaceUsed.height;
1505
+ availableHeight -= spaceUsed.height;
1506
+ this.componentStore.xAxis.setAxisPosition("left");
1507
+ spaceUsed = this.componentStore.xAxis.calculateSpace({
1508
+ width: availableWidth,
1509
+ height: availableHeight
1510
+ });
1511
+ availableWidth -= spaceUsed.width;
1512
+ plotX = spaceUsed.width;
1513
+ this.componentStore.yAxis.setAxisPosition("top");
1514
+ spaceUsed = this.componentStore.yAxis.calculateSpace({
1515
+ width: availableWidth,
1516
+ height: availableHeight
1517
+ });
1518
+ availableHeight -= spaceUsed.height;
1519
+ plotY = titleYEnd + spaceUsed.height;
1520
+ if (availableWidth > 0) {
1521
+ chartWidth += availableWidth;
1522
+ availableWidth = 0;
1523
+ }
1524
+ if (availableHeight > 0) {
1525
+ chartHeight += availableHeight;
1526
+ availableHeight = 0;
1527
+ }
1528
+ this.componentStore.plot.calculateSpace({
1529
+ width: chartWidth,
1530
+ height: chartHeight
1531
+ });
1532
+ this.componentStore.plot.setBoundingBoxXY({ x: plotX, y: plotY });
1533
+ this.componentStore.yAxis.setRange([plotX, plotX + chartWidth]);
1534
+ this.componentStore.yAxis.setBoundingBoxXY({ x: plotX, y: titleYEnd });
1535
+ this.componentStore.xAxis.setRange([plotY, plotY + chartHeight]);
1536
+ this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: plotY });
1537
+ if (this.chartData.plots.some((p) => isBarPlot(p))) {
1538
+ this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1539
+ }
1540
+ }
1541
+ calculateSpace() {
1542
+ if (this.chartConfig.chartOrientation === "horizontal") {
1543
+ this.calculateHorizontalSpace();
1544
+ } else {
1545
+ this.calculateVerticalSpace();
1546
+ }
1547
+ }
1548
+ getDrawableElement() {
1549
+ this.calculateSpace();
1550
+ const drawableElem = [];
1551
+ this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
1552
+ for (const component of Object.values(this.componentStore)) {
1553
+ drawableElem.push(...component.getDrawableElements());
1554
+ }
1555
+ return drawableElem;
1556
+ }
1557
+ }, __name(_i, "Orchestrator"), _i);
1558
+ var XYChartBuilder = (_j = class {
1559
+ static build(config, chartData, chartThemeConfig, tmpSVGGroup2) {
1560
+ const orchestrator = new Orchestrator(config, chartData, chartThemeConfig, tmpSVGGroup2);
1561
+ return orchestrator.getDrawableElement();
1562
+ }
1563
+ }, __name(_j, "XYChartBuilder"), _j);
1564
+ var plotIndex = 0;
1565
+ var tmpSVGGroup;
1566
+ var xyChartConfig = getChartDefaultConfig();
1567
+ var xyChartThemeConfig = getChartDefaultThemeConfig();
1568
+ var xyChartData = getChartDefaultData();
1569
+ var plotColorPalette = xyChartThemeConfig.plotColorPalette.split(",").map((color) => color.trim());
1570
+ var hasSetXAxis = false;
1571
+ var hasSetYAxis = false;
1572
+ function getChartDefaultThemeConfig() {
1573
+ const defaultThemeVariables = getThemeVariables3();
1574
+ const config = getConfig();
1575
+ return cleanAndMerge(defaultThemeVariables.xyChart, config.themeVariables.xyChart);
1576
+ }
1577
+ __name(getChartDefaultThemeConfig, "getChartDefaultThemeConfig");
1578
+ function getChartDefaultConfig() {
1579
+ const config = getConfig();
1580
+ return cleanAndMerge(
1581
+ defaultConfig_default.xyChart,
1582
+ config.xyChart
1583
+ );
1584
+ }
1585
+ __name(getChartDefaultConfig, "getChartDefaultConfig");
1586
+ function getChartDefaultData() {
1587
+ return {
1588
+ yAxis: {
1589
+ type: "linear",
1590
+ title: "",
1591
+ min: Infinity,
1592
+ max: -Infinity
1593
+ },
1594
+ xAxis: {
1595
+ type: "band",
1596
+ title: "",
1597
+ categories: []
1598
+ },
1599
+ title: "",
1600
+ plots: []
1601
+ };
1602
+ }
1603
+ __name(getChartDefaultData, "getChartDefaultData");
1604
+ function textSanitizer(text) {
1605
+ const config = getConfig();
1606
+ return sanitizeText(text.trim(), config);
1607
+ }
1608
+ __name(textSanitizer, "textSanitizer");
1609
+ function setTmpSVGG(SVGG) {
1610
+ tmpSVGGroup = SVGG;
1611
+ }
1612
+ __name(setTmpSVGG, "setTmpSVGG");
1613
+ function setOrientation(orientation) {
1614
+ if (orientation === "horizontal") {
1615
+ xyChartConfig.chartOrientation = "horizontal";
1616
+ } else {
1617
+ xyChartConfig.chartOrientation = "vertical";
1618
+ }
1619
+ }
1620
+ __name(setOrientation, "setOrientation");
1621
+ function setXAxisTitle(title) {
1622
+ xyChartData.xAxis.title = textSanitizer(title.text);
1623
+ }
1624
+ __name(setXAxisTitle, "setXAxisTitle");
1625
+ function setXAxisRangeData(min, max) {
1626
+ xyChartData.xAxis = { type: "linear", title: xyChartData.xAxis.title, min, max };
1627
+ hasSetXAxis = true;
1628
+ }
1629
+ __name(setXAxisRangeData, "setXAxisRangeData");
1630
+ function setXAxisBand(categories) {
1631
+ xyChartData.xAxis = {
1632
+ type: "band",
1633
+ title: xyChartData.xAxis.title,
1634
+ categories: categories.map((c) => textSanitizer(c.text))
1635
+ };
1636
+ hasSetXAxis = true;
1637
+ }
1638
+ __name(setXAxisBand, "setXAxisBand");
1639
+ function setYAxisTitle(title) {
1640
+ xyChartData.yAxis.title = textSanitizer(title.text);
1641
+ }
1642
+ __name(setYAxisTitle, "setYAxisTitle");
1643
+ function setYAxisRangeData(min, max) {
1644
+ xyChartData.yAxis = { type: "linear", title: xyChartData.yAxis.title, min, max };
1645
+ hasSetYAxis = true;
1646
+ }
1647
+ __name(setYAxisRangeData, "setYAxisRangeData");
1648
+ function setYAxisRangeFromPlotData(data) {
1649
+ const minValue = Math.min(...data);
1650
+ const maxValue = Math.max(...data);
1651
+ const prevMinValue = isLinearAxisData(xyChartData.yAxis) ? xyChartData.yAxis.min : Infinity;
1652
+ const prevMaxValue = isLinearAxisData(xyChartData.yAxis) ? xyChartData.yAxis.max : -Infinity;
1653
+ xyChartData.yAxis = {
1654
+ type: "linear",
1655
+ title: xyChartData.yAxis.title,
1656
+ min: Math.min(prevMinValue, minValue),
1657
+ max: Math.max(prevMaxValue, maxValue)
1658
+ };
1659
+ }
1660
+ __name(setYAxisRangeFromPlotData, "setYAxisRangeFromPlotData");
1661
+ function transformDataWithoutCategory(data) {
1662
+ let retData = [];
1663
+ if (data.length === 0) {
1664
+ return retData;
1665
+ }
1666
+ if (!hasSetXAxis) {
1667
+ const prevMinValue = isLinearAxisData(xyChartData.xAxis) ? xyChartData.xAxis.min : Infinity;
1668
+ const prevMaxValue = isLinearAxisData(xyChartData.xAxis) ? xyChartData.xAxis.max : -Infinity;
1669
+ setXAxisRangeData(Math.min(prevMinValue, 1), Math.max(prevMaxValue, data.length));
1670
+ }
1671
+ if (!hasSetYAxis) {
1672
+ setYAxisRangeFromPlotData(data);
1673
+ }
1674
+ if (isBandAxisData(xyChartData.xAxis)) {
1675
+ retData = xyChartData.xAxis.categories.map((c, i) => [c, data[i]]);
1676
+ }
1677
+ if (isLinearAxisData(xyChartData.xAxis)) {
1678
+ const min = xyChartData.xAxis.min;
1679
+ const max = xyChartData.xAxis.max;
1680
+ const step = (max - min) / (data.length - 1);
1681
+ const categories = [];
1682
+ for (let i = min; i <= max; i += step) {
1683
+ categories.push(`${i}`);
1684
+ }
1685
+ retData = categories.map((c, i) => [c, data[i]]);
1686
+ }
1687
+ return retData;
1688
+ }
1689
+ __name(transformDataWithoutCategory, "transformDataWithoutCategory");
1690
+ function getPlotColorFromPalette(plotIndex2) {
1691
+ return plotColorPalette[plotIndex2 === 0 ? 0 : plotIndex2 % plotColorPalette.length];
1692
+ }
1693
+ __name(getPlotColorFromPalette, "getPlotColorFromPalette");
1694
+ function setLineData(title, data) {
1695
+ const plotData = transformDataWithoutCategory(data);
1696
+ xyChartData.plots.push({
1697
+ type: "line",
1698
+ strokeFill: getPlotColorFromPalette(plotIndex),
1699
+ strokeWidth: 2,
1700
+ data: plotData
1701
+ });
1702
+ plotIndex++;
1703
+ }
1704
+ __name(setLineData, "setLineData");
1705
+ function setBarData(title, data) {
1706
+ const plotData = transformDataWithoutCategory(data);
1707
+ xyChartData.plots.push({
1708
+ type: "bar",
1709
+ fill: getPlotColorFromPalette(plotIndex),
1710
+ data: plotData
1711
+ });
1712
+ plotIndex++;
1713
+ }
1714
+ __name(setBarData, "setBarData");
1715
+ function getDrawableElem() {
1716
+ if (xyChartData.plots.length === 0) {
1717
+ throw Error("No Plot to render, please provide a plot with some data");
1718
+ }
1719
+ xyChartData.title = getDiagramTitle();
1720
+ return XYChartBuilder.build(xyChartConfig, xyChartData, xyChartThemeConfig, tmpSVGGroup);
1721
+ }
1722
+ __name(getDrawableElem, "getDrawableElem");
1723
+ function getChartThemeConfig() {
1724
+ return xyChartThemeConfig;
1725
+ }
1726
+ __name(getChartThemeConfig, "getChartThemeConfig");
1727
+ function getChartConfig() {
1728
+ return xyChartConfig;
1729
+ }
1730
+ __name(getChartConfig, "getChartConfig");
1731
+ function getXYChartData() {
1732
+ return xyChartData;
1733
+ }
1734
+ __name(getXYChartData, "getXYChartData");
1735
+ var clear2 = /* @__PURE__ */ __name(function() {
1736
+ clear();
1737
+ plotIndex = 0;
1738
+ xyChartConfig = getChartDefaultConfig();
1739
+ xyChartData = getChartDefaultData();
1740
+ xyChartThemeConfig = getChartDefaultThemeConfig();
1741
+ plotColorPalette = xyChartThemeConfig.plotColorPalette.split(",").map((color) => color.trim());
1742
+ hasSetXAxis = false;
1743
+ hasSetYAxis = false;
1744
+ }, "clear");
1745
+ var xychartDb_default = {
1746
+ getDrawableElem,
1747
+ clear: clear2,
1748
+ setAccTitle,
1749
+ getAccTitle,
1750
+ setDiagramTitle,
1751
+ getDiagramTitle,
1752
+ getAccDescription,
1753
+ setAccDescription,
1754
+ setOrientation,
1755
+ setXAxisTitle,
1756
+ setXAxisRangeData,
1757
+ setXAxisBand,
1758
+ setYAxisTitle,
1759
+ setYAxisRangeData,
1760
+ setLineData,
1761
+ setBarData,
1762
+ setTmpSVGG,
1763
+ getChartThemeConfig,
1764
+ getChartConfig,
1765
+ getXYChartData
1766
+ };
1767
+ var draw = /* @__PURE__ */ __name((txt, id, _version, diagObj) => {
1768
+ const db = diagObj.db;
1769
+ const themeConfig = db.getChartThemeConfig();
1770
+ const chartConfig = db.getChartConfig();
1771
+ const labelData = db.getXYChartData().plots[0].data.map((data) => data[1]);
1772
+ function getDominantBaseLine(horizontalPos) {
1773
+ return horizontalPos === "top" ? "text-before-edge" : "middle";
1774
+ }
1775
+ __name(getDominantBaseLine, "getDominantBaseLine");
1776
+ function getTextAnchor(verticalPos) {
1777
+ return verticalPos === "left" ? "start" : verticalPos === "right" ? "end" : "middle";
1778
+ }
1779
+ __name(getTextAnchor, "getTextAnchor");
1780
+ function getTextTransformation(data) {
1781
+ return `translate(${data.x}, ${data.y}) rotate(${data.rotation || 0})`;
1782
+ }
1783
+ __name(getTextTransformation, "getTextTransformation");
1784
+ log.debug("Rendering xychart chart\n" + txt);
1785
+ const svg = selectSvgElement(id);
1786
+ const group = svg.append("g").attr("class", "main");
1787
+ const background = group.append("rect").attr("width", chartConfig.width).attr("height", chartConfig.height).attr("class", "background");
1788
+ configureSvgSize(svg, chartConfig.height, chartConfig.width, true);
1789
+ svg.attr("viewBox", `0 0 ${chartConfig.width} ${chartConfig.height}`);
1790
+ background.attr("fill", themeConfig.backgroundColor);
1791
+ db.setTmpSVGG(svg.append("g").attr("class", "mermaid-tmp-group"));
1792
+ const shapes = db.getDrawableElem();
1793
+ const groups = {};
1794
+ function getGroup(gList) {
1795
+ let elem = group;
1796
+ let prefix = "";
1797
+ for (const [i] of gList.entries()) {
1798
+ let parent = group;
1799
+ if (i > 0 && groups[prefix]) {
1800
+ parent = groups[prefix];
1801
+ }
1802
+ prefix += gList[i];
1803
+ elem = groups[prefix];
1804
+ if (!elem) {
1805
+ elem = groups[prefix] = parent.append("g").attr("class", gList[i]);
1806
+ }
1807
+ }
1808
+ return elem;
1809
+ }
1810
+ __name(getGroup, "getGroup");
1811
+ for (const shape of shapes) {
1812
+ if (shape.data.length === 0) {
1813
+ continue;
1814
+ }
1815
+ const shapeGroup = getGroup(shape.groupTexts);
1816
+ switch (shape.type) {
1817
+ case "rect":
1818
+ shapeGroup.selectAll("rect").data(shape.data).enter().append("rect").attr("x", (data) => data.x).attr("y", (data) => data.y).attr("width", (data) => data.width).attr("height", (data) => data.height).attr("fill", (data) => data.fill).attr("stroke", (data) => data.strokeFill).attr("stroke-width", (data) => data.strokeWidth);
1819
+ if (chartConfig.showDataLabel) {
1820
+ if (chartConfig.chartOrientation === "horizontal") {
1821
+ let fitsHorizontally2 = function(item, fontSize) {
1822
+ const { data, label } = item;
1823
+ const textWidth = fontSize * label.length * charWidthFactor;
1824
+ return textWidth <= data.width - 10;
1825
+ };
1826
+ __name(fitsHorizontally2, "fitsHorizontally");
1827
+ const charWidthFactor = 0.7;
1828
+ const validItems = shape.data.map((d, i) => ({ data: d, label: labelData[i].toString() })).filter((item) => item.data.width > 0 && item.data.height > 0);
1829
+ const candidateFontSizes = validItems.map((item) => {
1830
+ const { data } = item;
1831
+ let fontSize = data.height * 0.7;
1832
+ while (!fitsHorizontally2(item, fontSize) && fontSize > 0) {
1833
+ fontSize -= 1;
1834
+ }
1835
+ return fontSize;
1836
+ });
1837
+ const uniformFontSize = Math.floor(Math.min(...candidateFontSizes));
1838
+ shapeGroup.selectAll("text").data(validItems).enter().append("text").attr("x", (item) => item.data.x + item.data.width - 10).attr("y", (item) => item.data.y + item.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${uniformFontSize}px`).text((item) => item.label);
1839
+ } else {
1840
+ let fitsInBar2 = function(item, fontSize, yOffset2) {
1841
+ const { data, label } = item;
1842
+ const charWidthFactor = 0.7;
1843
+ const textWidth = fontSize * label.length * charWidthFactor;
1844
+ const centerX = data.x + data.width / 2;
1845
+ const leftEdge = centerX - textWidth / 2;
1846
+ const rightEdge = centerX + textWidth / 2;
1847
+ const horizontalFits = leftEdge >= data.x && rightEdge <= data.x + data.width;
1848
+ const verticalFits = data.y + yOffset2 + fontSize <= data.y + data.height;
1849
+ return horizontalFits && verticalFits;
1850
+ };
1851
+ __name(fitsInBar2, "fitsInBar");
1852
+ const yOffset = 10;
1853
+ const validItems = shape.data.map((d, i) => ({ data: d, label: labelData[i].toString() })).filter((item) => item.data.width > 0 && item.data.height > 0);
1854
+ const candidateFontSizes = validItems.map((item) => {
1855
+ const { data, label } = item;
1856
+ let fontSize = data.width / (label.length * 0.7);
1857
+ while (!fitsInBar2(item, fontSize, yOffset) && fontSize > 0) {
1858
+ fontSize -= 1;
1859
+ }
1860
+ return fontSize;
1861
+ });
1862
+ const uniformFontSize = Math.floor(Math.min(...candidateFontSizes));
1863
+ shapeGroup.selectAll("text").data(validItems).enter().append("text").attr("x", (item) => item.data.x + item.data.width / 2).attr("y", (item) => item.data.y + yOffset).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${uniformFontSize}px`).text((item) => item.label);
1864
+ }
1865
+ }
1866
+ break;
1867
+ case "text":
1868
+ shapeGroup.selectAll("text").data(shape.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (data) => data.fill).attr("font-size", (data) => data.fontSize).attr("dominant-baseline", (data) => getDominantBaseLine(data.verticalPos)).attr("text-anchor", (data) => getTextAnchor(data.horizontalPos)).attr("transform", (data) => getTextTransformation(data)).text((data) => data.text);
1869
+ break;
1870
+ case "path":
1871
+ shapeGroup.selectAll("path").data(shape.data).enter().append("path").attr("d", (data) => data.path).attr("fill", (data) => data.fill ? data.fill : "none").attr("stroke", (data) => data.strokeFill).attr("stroke-width", (data) => data.strokeWidth);
1872
+ break;
1873
+ }
1874
+ }
1875
+ }, "draw");
1876
+ var xychartRenderer_default = {
1877
+ draw
1878
+ };
1879
+ var diagram = {
1880
+ parser: xychart_default,
1881
+ db: xychartDb_default,
1882
+ renderer: xychartRenderer_default
1883
+ };
1884
+ export {
1885
+ diagram
1886
+ };
1887
+ //# sourceMappingURL=xychartDiagram-PRI3JC2R-D7UaoGaC.js.map