@spteck/react-controls-v2 2.3.5 → 2.3.8

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 (644) hide show
  1. package/dist/LocalizationProvider-B6NxHbu2.cjs +2 -0
  2. package/dist/LocalizationProvider-te5iu_6z.js +363 -0
  3. package/dist/_arrayEach-BuSFKyFt.js +54 -0
  4. package/dist/_arrayEach-ChR-TejB.cjs +2 -0
  5. package/dist/_getTag-BRuLtYrv.js +28 -0
  6. package/dist/_getTag-D6VVyrEu.cjs +2 -0
  7. package/dist/abstractions/IApplicationContext.d.ts +0 -1
  8. package/dist/abstractions/IAuthenticationProvider.d.ts +0 -1
  9. package/dist/abstractions/ILocalizationProvider.d.ts +0 -1
  10. package/dist/abstractions/providers/ConsoleLoggingProvider.d.ts +0 -1
  11. package/dist/abstractions/providers/DefaultGraphClient.d.ts +0 -1
  12. package/dist/abstractions/providers/DefaultLocalizationProvider.d.ts +0 -1
  13. package/dist/abstractions/providers/LocalStorageProvider.d.ts +0 -1
  14. package/dist/abstractions/providers/LocalizationProvider.d.ts +0 -1
  15. package/dist/ar-Blifx2MN.js +210 -0
  16. package/dist/ar-ip3bGOX3.cjs +2 -0
  17. package/dist/arc-4yb49ncY.js +82 -0
  18. package/dist/arc-djsA8IT0.cjs +2 -0
  19. package/dist/architecture-PBZL5I3N-CvTfVLFi.js +3 -0
  20. package/dist/architecture-PBZL5I3N-wZIE3ggH.cjs +1 -0
  21. package/dist/architectureDiagram-2XIMDMQ5-DFEvJNx1.cjs +37 -0
  22. package/dist/architectureDiagram-2XIMDMQ5-g-HotzpG.js +4047 -0
  23. package/dist/array-BNB_vRFv.cjs +2 -0
  24. package/dist/array-DP0duYiO.js +8 -0
  25. package/dist/az-CMhDjtnj.js +210 -0
  26. package/dist/az-CyVLdUDz.cjs +2 -0
  27. package/dist/bg-Bexoz3hL.cjs +2 -0
  28. package/dist/bg-C96WirSv.js +210 -0
  29. package/dist/blockDiagram-WCTKOSBZ-DWgb5Ghz.js +3165 -0
  30. package/dist/blockDiagram-WCTKOSBZ-Dl04FBAy.cjs +133 -0
  31. package/dist/bs-MMcvhwLv.cjs +2 -0
  32. package/dist/bs-_St1wBE_.js +210 -0
  33. package/dist/c4Diagram-IC4MRINW-ClZvialQ.js +2966 -0
  34. package/dist/c4Diagram-IC4MRINW-ZFE2cGZP.cjs +11 -0
  35. package/dist/ca-BspMSeHN.cjs +2 -0
  36. package/dist/ca-QlLcV4wf.js +210 -0
  37. package/dist/channel-2Bqnb1FY.js +7 -0
  38. package/dist/channel-5_aP1EVB.cjs +2 -0
  39. package/dist/chunk-4BX2VUAB-B5Va_oZz.js +10 -0
  40. package/dist/chunk-4BX2VUAB-BWDW-gYk.cjs +2 -0
  41. package/dist/chunk-55IACEB6-4ind_ByS.cjs +2 -0
  42. package/dist/chunk-55IACEB6-Pcyz_aR_.js +10 -0
  43. package/dist/chunk-7E7YKBS2-Sw9_w4gt.cjs +2 -0
  44. package/dist/chunk-7E7YKBS2-VHdgsed6.js +25 -0
  45. package/dist/chunk-7R4GIKGN-BKoqTTU_.cjs +81 -0
  46. package/dist/chunk-7R4GIKGN-CaQJ0QBF.js +2598 -0
  47. package/dist/chunk-C72U2L5F-CCvi6jiy.cjs +2 -0
  48. package/dist/chunk-C72U2L5F-MjJQTOMh.js +25 -0
  49. package/dist/chunk-D-IZpNpi.cjs +1 -0
  50. package/dist/chunk-EGIJ26TM-Bffl84Wq.cjs +2 -0
  51. package/dist/chunk-EGIJ26TM-DLMAfvpZ.js +25 -0
  52. package/dist/{chunk-FMBD7UC4-B7ANnE_H.js → chunk-FMBD7UC4-BvqqU04Z.cjs} +3 -7
  53. package/dist/chunk-FMBD7UC4-xjRtkFXe.js +7 -0
  54. package/dist/chunk-GEFDOKGD-BNgT40Ex.js +1302 -0
  55. package/dist/chunk-GEFDOKGD-BOwd6Jqp.cjs +3 -0
  56. package/dist/chunk-GLR3WWYH-DdNAJNRC.cjs +2 -0
  57. package/dist/chunk-GLR3WWYH-kyo6BUtq.js +43 -0
  58. package/dist/chunk-HHEYEP7N-DO1AYIZw.js +11 -0
  59. package/dist/chunk-HHEYEP7N-pdmgQZzP.cjs +2 -0
  60. package/dist/chunk-JSJVCQXG-Ci0seBb4.cjs +2 -0
  61. package/dist/chunk-JSJVCQXG-DowfYWcD.js +62 -0
  62. package/dist/chunk-KX2RTZJC-BJeOHReu.cjs +2 -0
  63. package/dist/chunk-KX2RTZJC-D-bUTSNy.js +27 -0
  64. package/dist/chunk-KYZI473N-DEPuSXaW.js +3436 -0
  65. package/dist/chunk-KYZI473N-DzBMFOER.cjs +54 -0
  66. package/dist/chunk-L3YUKLVL-BDGCTzmy.js +25 -0
  67. package/dist/chunk-L3YUKLVL-BZ17sqh5.cjs +2 -0
  68. package/dist/chunk-MX3YWQON-CAsnAj2e.js +82 -0
  69. package/dist/chunk-MX3YWQON-DulrBJdn.cjs +2 -0
  70. package/dist/chunk-NBPlniwU.js +23 -0
  71. package/dist/chunk-NQ4KR5QH-BJBAT2kM.cjs +221 -0
  72. package/dist/chunk-NQ4KR5QH-DFem-ORD.js +2004 -0
  73. package/dist/chunk-O4XLMI2P-BQF7MAo7.cjs +8 -0
  74. package/dist/chunk-O4XLMI2P-DA4TPzPG.js +513 -0
  75. package/dist/chunk-OZEHJAEY-CAiiXJUP.cjs +2 -0
  76. package/dist/chunk-OZEHJAEY-D7SX2SbR.js +66 -0
  77. package/dist/chunk-PQ6SQG4A-BZnW4-Sd.cjs +2 -0
  78. package/dist/chunk-PQ6SQG4A-ObFGkauo.js +69 -0
  79. package/dist/chunk-PU5JKC2W-BM5NPS-q.js +1887 -0
  80. package/dist/chunk-PU5JKC2W-eRU8wnTH.cjs +71 -0
  81. package/dist/chunk-QZHKN3VN-Dhli_tM0.cjs +2 -0
  82. package/dist/chunk-QZHKN3VN-x258g6EH.js +17 -0
  83. package/dist/chunk-R5LLSJPH-CNTEucEd.cjs +2 -0
  84. package/dist/chunk-R5LLSJPH-Gt27ml2m.js +37 -0
  85. package/dist/chunk-WL4C6EOR-CQXw6d0l.cjs +190 -0
  86. package/dist/chunk-WL4C6EOR-DuM6QmqM.js +3196 -0
  87. package/dist/chunk-XIRO2GV7-CswC9CO8.cjs +2 -0
  88. package/dist/chunk-XIRO2GV7-DXlO8X82.js +32 -0
  89. package/dist/chunk-XPW4576I-Bpsr4SZJ.js +1148 -0
  90. package/dist/chunk-XPW4576I-C68T-WIW.cjs +33 -0
  91. package/dist/chunk-XZSTWKYB-DJv9rEVU.cjs +95 -0
  92. package/dist/chunk-XZSTWKYB-jD9M1izK.js +16132 -0
  93. package/dist/chunk-YBOYWFTD-B6CeuteH.js +34 -0
  94. package/dist/chunk-YBOYWFTD-CiLW6HW_.cjs +2 -0
  95. package/dist/classDiagram-VBA2DB6C-Us0kuDfz.cjs +2 -0
  96. package/dist/classDiagram-VBA2DB6C-VOsE3gN0.js +31 -0
  97. package/dist/classDiagram-v2-RAHNMMFH-BWsm3ea6.cjs +2 -0
  98. package/dist/classDiagram-v2-RAHNMMFH-DPqMNfOz.js +31 -0
  99. package/dist/components/AISearchControl/useAISearchControlStyles.d.ts +0 -1
  100. package/dist/components/AspectRatio/AspectRatio.d.ts +0 -1
  101. package/dist/components/AspectRatio/IAspectRationProps.d.ts +0 -1
  102. package/dist/components/Card/ICardProps.d.ts +0 -1
  103. package/dist/components/Carousel/ICarouselProps.d.ts +0 -1
  104. package/dist/components/Carousel/useCarouselButton.d.ts +0 -1
  105. package/dist/components/Carousel/useCarouselStyles.d.ts +0 -1
  106. package/dist/components/Center/ICenterProps.d.ts +0 -1
  107. package/dist/components/ContentRenderer/IContentRendererProps.d.ts +0 -1
  108. package/dist/components/DataGridV2/DataGridV2.d.ts +2 -1
  109. package/dist/components/DataGridV2/IDataGridV2ExtraProps.d.ts +0 -1
  110. package/dist/components/Grid/IGridProps.d.ts +0 -1
  111. package/dist/components/ItemPicker/IItemPickerProps.d.ts +0 -1
  112. package/dist/components/KPIControl/IKpiCardProps.d.ts +0 -1
  113. package/dist/components/ListItemActivityMessage/IActivity.d.ts +0 -1
  114. package/dist/components/ListItemActivityMessage/IActivityMessageProps.d.ts +0 -1
  115. package/dist/components/ListItemActivityMessage/IActor.d.ts +0 -1
  116. package/dist/components/ListItemActivityMessage/useSharePointActivities.d.ts +0 -1
  117. package/dist/components/ListToolbar/FlatItem.d.ts +0 -1
  118. package/dist/components/ListToolbar/IListToolbarProps.d.ts +0 -1
  119. package/dist/components/ListToolbar/IToolbarItem.d.ts +0 -1
  120. package/dist/components/ListToolbar/IToolbarItemRendererProps.d.ts +0 -1
  121. package/dist/components/ListToolbar/helpers.d.ts +0 -1
  122. package/dist/components/MermaidDiagram/useMermaidDiagramStyles.d.ts +0 -1
  123. package/dist/components/Navigation/Navigation.d.ts +0 -1
  124. package/dist/components/Popup/Popup.d.ts +0 -1
  125. package/dist/components/Provider/UniversalProvider.d.ts +0 -1
  126. package/dist/components/Space/ISpaceProps.d.ts +0 -1
  127. package/dist/components/SplitPane/ISplitPaneProps.d.ts +0 -1
  128. package/dist/components/SplitPane/useSplitPaneStyles.d.ts +0 -1
  129. package/dist/components/Stack/IStackProps.d.ts +0 -1
  130. package/dist/components/StackedUsers/IStackedUsersProps.d.ts +0 -1
  131. package/dist/components/StackedUsers/StackedUsers.d.ts +0 -1
  132. package/dist/components/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts +0 -1
  133. package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts +0 -1
  134. package/dist/components/adaptiveCardHost/AdaptiveCardHost.d.ts +0 -1
  135. package/dist/components/adaptiveCardHost/IAdaptiveCardHostProps.d.ts +0 -1
  136. package/dist/components/adaptiveCardHost/fluentUI/Elements.d.ts +0 -1
  137. package/dist/components/adaptiveCardHost/fluentUI/FluentUIChoiceSetInput.d.ts +0 -1
  138. package/dist/components/adaptiveCardHost/fluentUI/FluentUIDateInput.d.ts +0 -1
  139. package/dist/components/adaptiveCardHost/fluentUI/FluentUINumberInput.d.ts +0 -1
  140. package/dist/components/adaptiveCardHost/fluentUI/FluentUITextInput.d.ts +0 -1
  141. package/dist/components/adaptiveCardHost/fluentUI/FluentUIToggleInput.d.ts +0 -1
  142. package/dist/components/adaptiveCardHost/fluentUI/HostCapability.d.ts +0 -1
  143. package/dist/components/adaptiveCardHost/fluentUI/HostConfig.d.ts +0 -1
  144. package/dist/components/adaptiveCardHost/fluentUI/Styles.d.ts +0 -1
  145. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts +0 -1
  146. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostEvaluationContext.d.ts +0 -1
  147. package/dist/components/aiAssistant/ChatAction.d.ts +0 -1
  148. package/dist/components/aiAssistant/ChatInputProps.d.ts +0 -1
  149. package/dist/components/aiAssistant/ChatInputWithMensions.d.ts +0 -1
  150. package/dist/components/aiAssistant/ChatInputWithMensionsProps.d.ts +0 -1
  151. package/dist/components/aiAssistant/ChatInputWithMensionsV1.d.ts +0 -1
  152. package/dist/components/aiAssistant/ChatInputWithMensionsV2.d.ts +0 -1
  153. package/dist/components/aiAssistant/ChatState.d.ts +0 -1
  154. package/dist/components/aiAssistant/IAIAssistantProps.d.ts +0 -1
  155. package/dist/components/aiAssistant/chatReducer.d.ts +0 -1
  156. package/dist/components/aiAssistant/useChatInputStyles.d.ts +0 -1
  157. package/dist/components/aiAssistant/useChatInputWithMensionsStyles.d.ts +0 -1
  158. package/dist/components/aiAssistant/useStyles.d.ts +0 -1
  159. package/dist/components/appDashboard/AppDashboard.d.ts +0 -1
  160. package/dist/components/appDashboard/IAppDashboardProps.d.ts +0 -1
  161. package/dist/components/baseComponentProps/IBaseProps.d.ts +0 -1
  162. package/dist/components/breadcrumb/Breadcrumb.d.ts +0 -1
  163. package/dist/components/breadcrumb/IBreadcrumProps.d.ts +0 -1
  164. package/dist/components/breadcrumb/OverflowMenu.d.ts +0 -1
  165. package/dist/components/breadcrumb/useBreadcrumStyles.d.ts +0 -1
  166. package/dist/components/calendarControl/hooks/useCalendar.d.ts +0 -1
  167. package/dist/components/calendarControl/hooks/useUtils.d.ts +0 -1
  168. package/dist/components/calendarControl/models/ICalendarControlProps.d.ts +0 -1
  169. package/dist/components/calendarControl/models/IEvents.d.ts +0 -1
  170. package/dist/components/customControlBar/ICustomControlBarProps.d.ts +0 -1
  171. package/dist/components/dataGrid/DataGrid.d.ts +0 -1
  172. package/dist/components/dataGrid/IDataGridProps.d.ts +0 -1
  173. package/dist/components/dataGrid/ISortState.d.ts +0 -1
  174. package/dist/components/dataGrid/stack/IStackProps.d.ts +0 -1
  175. package/dist/components/dataGrid/stack/Stack.d.ts +0 -1
  176. package/dist/components/dataGrid/useDataGridStyles.d.ts +0 -1
  177. package/dist/components/dropDownField/IDropDownFieldProps.d.ts +0 -1
  178. package/dist/components/fluentUIProvider/FluentUIProvider.d.ts +0 -1
  179. package/dist/components/iconButton/IconButton.d.ts +0 -1
  180. package/dist/components/iconButton/IconButtonProps.d.ts +0 -1
  181. package/dist/components/mensions/IMensionsProps.d.ts +0 -1
  182. package/dist/components/mensions/Mensions.d.ts +0 -1
  183. package/dist/components/mensions/MensionsExample.d.ts +0 -1
  184. package/dist/components/renderAdaptiveCard/RenderAdaptiveCard.d.ts +0 -1
  185. package/dist/components/searchControl/useSearchControlStyles.d.ts +0 -1
  186. package/dist/components/selectView/SelectView.d.ts +0 -1
  187. package/dist/components/showError/ShowError.d.ts +0 -1
  188. package/dist/components/stackv2/IStackV2Props.d.ts +0 -1
  189. package/dist/components/stackv2/StackV2.d.ts +0 -1
  190. package/dist/components/userCard/IUserCardProps.d.ts +0 -1
  191. package/dist/components/userCard/IUserInfo.d.ts +0 -1
  192. package/dist/components/userCard/UserCard.d.ts +0 -1
  193. package/dist/components/userCard/constants.d.ts +0 -1
  194. package/dist/components/userCard/useUserProfile.d.ts +0 -1
  195. package/dist/components/videoPlayer/VideoPlayer.d.ts +0 -1
  196. package/dist/components/videoPlayer/useVideoStyles.d.ts +0 -1
  197. package/dist/components/worldMap/IWorldMapProps.d.ts +0 -1
  198. package/dist/components/worldMap/MaplibreWorldMapProps.d.ts +0 -1
  199. package/dist/components/worldMap/WorldMap.d.ts +0 -1
  200. package/dist/components/worldMap/WorldMapControl.d.ts +0 -1
  201. package/dist/components/worldMap/useCleanMapStyle.d.ts +0 -1
  202. package/dist/components/worldMap/useGeocodedCountries.d.ts +0 -1
  203. package/dist/cose-bilkent-S5V4N54A-CKhwzobJ.js +2252 -0
  204. package/dist/cose-bilkent-S5V4N54A-DmyaRQ6l.cjs +2 -0
  205. package/dist/cs-FZSeHYld.cjs +2 -0
  206. package/dist/cs-MrS2bH7F.js +210 -0
  207. package/dist/cy-BX97Tgwk.js +210 -0
  208. package/dist/cy-CzQmM2lQ.cjs +2 -0
  209. package/dist/cytoscape.esm-CcJAI0wG.cjs +322 -0
  210. package/dist/cytoscape.esm-D9EjU25_.js +18102 -0
  211. package/dist/da-BnewPPrh.js +210 -0
  212. package/dist/da-CexFt-Oj.cjs +2 -0
  213. package/dist/dagre-CpEPaL3r.cjs +2 -0
  214. package/dist/dagre-Dd8wCGc6.js +1305 -0
  215. package/dist/dagre-KLK3FWXG-BpxkjvB3.js +294 -0
  216. package/dist/dagre-KLK3FWXG-DIznPQl_.cjs +5 -0
  217. package/dist/de-B68HwuYu.cjs +2 -0
  218. package/dist/de-BSZuzGTL.js +210 -0
  219. package/dist/defaultLocale-CYOzCjwh.js +203 -0
  220. package/dist/defaultLocale-DSgylVA1.cjs +2 -0
  221. package/dist/diagram-E7M64L7V-dXqTi77U.cjs +25 -0
  222. package/dist/diagram-E7M64L7V-oX07GVAD.js +529 -0
  223. package/dist/diagram-IFDJBPK2-CriVAAmI.cjs +44 -0
  224. package/dist/diagram-IFDJBPK2-lCNF06_S.js +215 -0
  225. package/dist/diagram-P4PSJMXO-TfwVJh4S.js +135 -0
  226. package/dist/diagram-P4PSJMXO-k7F0lH6Q.cjs +25 -0
  227. package/dist/dist-CV9Ez7cn.js +52 -0
  228. package/dist/dist-DVthN7lF.cjs +2 -0
  229. package/dist/el-DQc4jSMd.cjs +2 -0
  230. package/dist/el-DrOk3N7-.js +210 -0
  231. package/dist/erDiagram-INFDFZHY-CDt3mOSU.cjs +71 -0
  232. package/dist/erDiagram-INFDFZHY-Ds_R2Ds4.js +1668 -0
  233. package/dist/es-CGqzubZ2.js +210 -0
  234. package/dist/es-DI8Y4Bv1.cjs +2 -0
  235. package/dist/et-DGqkocuq.js +210 -0
  236. package/dist/et-DfaryKvp.cjs +2 -0
  237. package/dist/eu-BVOSXciF.cjs +2 -0
  238. package/dist/eu-DEo7fdTW.js +210 -0
  239. package/dist/fi-C5L-OzaI.cjs +2 -0
  240. package/dist/fi-DxErwnd5.js +210 -0
  241. package/dist/flowDiagram-PKNHOUZH-7XJG07fo.cjs +163 -0
  242. package/dist/flowDiagram-PKNHOUZH-CkeYebJ5.js +4163 -0
  243. package/dist/fr-yFvjqx8B.cjs +2 -0
  244. package/dist/fr-zrtSZX0o.js +210 -0
  245. package/dist/ga-6mVQhlWi.cjs +2 -0
  246. package/dist/ga-CbHxGc9_.js +210 -0
  247. package/dist/ganttDiagram-A5KZAMGK-Bbck1pyM.cjs +293 -0
  248. package/dist/ganttDiagram-A5KZAMGK-CFT3Xn_r.js +3074 -0
  249. package/dist/gitGraph-HDMCJU4V-BKE04oIl.js +3 -0
  250. package/dist/gitGraph-HDMCJU4V-C9GYfOYb.cjs +1 -0
  251. package/dist/gitGraphDiagram-K3NZZRJ6-CXz9SHBX.js +627 -0
  252. package/dist/gitGraphDiagram-K3NZZRJ6-Dt4D-ig1.cjs +66 -0
  253. package/dist/gl--w0P3RY4.js +210 -0
  254. package/dist/gl-BJzJe1sq.cjs +2 -0
  255. package/dist/graphlib-CPo7oIsu.js +223 -0
  256. package/dist/graphlib-CmUS4Qin.cjs +2 -0
  257. package/dist/he-B3Bw3qr0.cjs +2 -0
  258. package/dist/he-DY19lzWp.js +210 -0
  259. package/dist/hi-CFSsoO_8.js +210 -0
  260. package/dist/hi-kofL-mD8.cjs +2 -0
  261. package/dist/hooks/useBrandCenterFonts.d.ts +0 -1
  262. package/dist/hooks/useGraphAPI.d.ts +0 -1
  263. package/dist/hooks/useLocalizationStrings.d.ts +0 -1
  264. package/dist/hooks/useLogging.d.ts +0 -1
  265. package/dist/hr-CDxqA9Jm.cjs +2 -0
  266. package/dist/hr-DIRJ1Z8e.js +210 -0
  267. package/dist/hu-Defen_75.cjs +2 -0
  268. package/dist/hu-DqYPRWZh.js +210 -0
  269. package/dist/id-DcwMRgmX.cjs +2 -0
  270. package/dist/id-Dgj7SUCi.js +210 -0
  271. package/dist/identity-6JlhFhuM.cjs +2 -0
  272. package/dist/identity-C1jKsMoW.js +395 -0
  273. package/dist/index.cjs +453 -2
  274. package/dist/index.js +22827 -168
  275. package/dist/info-3K5VOQVL-DfN_3mKd.js +3 -0
  276. package/dist/info-3K5VOQVL-d6J9FY0_.cjs +1 -0
  277. package/dist/infoDiagram-LFFYTUFH-Bp9btqnA.cjs +3 -0
  278. package/dist/infoDiagram-LFFYTUFH-DnvgRFnx.js +21 -0
  279. package/dist/init-BAFZAp9S.cjs +2 -0
  280. package/dist/init-m0TwgR4W.js +17 -0
  281. package/dist/isEmpty-BTp1uKIj.cjs +2 -0
  282. package/dist/isEmpty-uXVYZZYe.js +17 -0
  283. package/dist/ishikawaDiagram-PHBUUO56-DLaOkz38.js +719 -0
  284. package/dist/ishikawaDiagram-PHBUUO56-DmqObwMZ.cjs +71 -0
  285. package/dist/it-D5nM6KCi.cjs +2 -0
  286. package/dist/it-QdChHqVN.js +210 -0
  287. package/dist/ja-BNS0BbY-.js +210 -0
  288. package/dist/ja-BtuHirv7.cjs +2 -0
  289. package/dist/journeyDiagram-4ABVD52K-Cv0DbLMi.cjs +140 -0
  290. package/dist/journeyDiagram-4ABVD52K-DYmmcNK4.js +885 -0
  291. package/dist/kanban-definition-K7BYSVSG-BdQLAMeB.cjs +90 -0
  292. package/dist/kanban-definition-K7BYSVSG-CLEYqSz5.js +973 -0
  293. package/dist/katex-B-Nju2J8.js +22002 -0
  294. package/dist/katex-WY67Rp7A.cjs +266 -0
  295. package/dist/kk-BSl8IqgQ.cjs +2 -0
  296. package/dist/kk-Dhkax68h.js +210 -0
  297. package/dist/ko-eplb1GD0.cjs +2 -0
  298. package/dist/ko-heRMHZWp.js +210 -0
  299. package/dist/line-CbEBKCYr.js +36 -0
  300. package/dist/line-DqSdvtRR.cjs +2 -0
  301. package/dist/linear-DvLDpS6A.cjs +2 -0
  302. package/dist/linear-Eb79THx6.js +291 -0
  303. package/dist/localization/ILibraryStrings.d.ts +0 -1
  304. package/dist/localization/defaults/ar.d.ts +0 -1
  305. package/dist/localization/defaults/az.d.ts +0 -1
  306. package/dist/localization/defaults/bg.d.ts +0 -1
  307. package/dist/localization/defaults/bs.d.ts +0 -1
  308. package/dist/localization/defaults/ca.d.ts +0 -1
  309. package/dist/localization/defaults/cs.d.ts +0 -1
  310. package/dist/localization/defaults/cy.d.ts +0 -1
  311. package/dist/localization/defaults/da.d.ts +0 -1
  312. package/dist/localization/defaults/de.d.ts +0 -1
  313. package/dist/localization/defaults/el.d.ts +0 -1
  314. package/dist/localization/defaults/en.d.ts +0 -1
  315. package/dist/localization/defaults/es.d.ts +0 -1
  316. package/dist/localization/defaults/et.d.ts +0 -1
  317. package/dist/localization/defaults/eu.d.ts +0 -1
  318. package/dist/localization/defaults/fi.d.ts +0 -1
  319. package/dist/localization/defaults/fr.d.ts +0 -1
  320. package/dist/localization/defaults/ga.d.ts +0 -1
  321. package/dist/localization/defaults/gl.d.ts +0 -1
  322. package/dist/localization/defaults/he.d.ts +0 -1
  323. package/dist/localization/defaults/hi.d.ts +0 -1
  324. package/dist/localization/defaults/hr.d.ts +0 -1
  325. package/dist/localization/defaults/hu.d.ts +0 -1
  326. package/dist/localization/defaults/id.d.ts +0 -1
  327. package/dist/localization/defaults/it.d.ts +0 -1
  328. package/dist/localization/defaults/ja.d.ts +0 -1
  329. package/dist/localization/defaults/kk.d.ts +0 -1
  330. package/dist/localization/defaults/ko.d.ts +0 -1
  331. package/dist/localization/defaults/lt.d.ts +0 -1
  332. package/dist/localization/defaults/lv.d.ts +0 -1
  333. package/dist/localization/defaults/mk.d.ts +0 -1
  334. package/dist/localization/defaults/ms.d.ts +0 -1
  335. package/dist/localization/defaults/nb.d.ts +0 -1
  336. package/dist/localization/defaults/nl.d.ts +0 -1
  337. package/dist/localization/defaults/pl.d.ts +0 -1
  338. package/dist/localization/defaults/pt.d.ts +0 -1
  339. package/dist/localization/defaults/ro.d.ts +0 -1
  340. package/dist/localization/defaults/ru.d.ts +0 -1
  341. package/dist/localization/defaults/sk.d.ts +0 -1
  342. package/dist/localization/defaults/sl.d.ts +0 -1
  343. package/dist/localization/defaults/sr.d.ts +0 -1
  344. package/dist/localization/defaults/sv.d.ts +0 -1
  345. package/dist/localization/defaults/th.d.ts +0 -1
  346. package/dist/localization/defaults/tr.d.ts +0 -1
  347. package/dist/localization/defaults/uk.d.ts +0 -1
  348. package/dist/localization/defaults/vi.d.ts +0 -1
  349. package/dist/localization/defaults/zh.d.ts +0 -1
  350. package/dist/lt-Decqbo8S.js +210 -0
  351. package/dist/lt-DsYAWFbF.cjs +2 -0
  352. package/dist/lv-DHmTjCb8.cjs +2 -0
  353. package/dist/lv-wZASv0Lw.js +210 -0
  354. package/dist/maplibre-gl-qSrG75fp.js +33003 -0
  355. package/dist/maplibre-gl-tm_pVdmb.cjs +757 -0
  356. package/dist/math-DR9t6ixc.cjs +2 -0
  357. package/dist/math-DyURnvXC.js +12 -0
  358. package/dist/mermaid-parser.core-BdTB9qx-.js +61 -0
  359. package/dist/mermaid-parser.core-BlzF5RRD.cjs +4 -0
  360. package/dist/mindmap-definition-YRQLILUH-CzcVgr-U.js +966 -0
  361. package/dist/mindmap-definition-YRQLILUH-zWN_YXC3.cjs +69 -0
  362. package/dist/mk-BTsLGTJT.js +210 -0
  363. package/dist/mk-CCV_308U.cjs +2 -0
  364. package/dist/ms-C0cVNwky.js +210 -0
  365. package/dist/ms-CH83xVYN.cjs +2 -0
  366. package/dist/nb-DGX4q4tS.js +210 -0
  367. package/dist/nb-DZ-DlwcL.cjs +2 -0
  368. package/dist/nl-CnXZa8tZ.js +210 -0
  369. package/dist/nl-Xdf-A19i.cjs +2 -0
  370. package/dist/ordinal-BAWGEQkf.js +67 -0
  371. package/dist/ordinal-CL2X4e2C.cjs +2 -0
  372. package/dist/packet-RMMSAZCW-Bek1stRX.cjs +1 -0
  373. package/dist/packet-RMMSAZCW-DUN6t9lN.js +3 -0
  374. package/dist/path-Bt6guLtL.cjs +2 -0
  375. package/dist/path-DSzKK8fH.js +87 -0
  376. package/dist/pie-UPGHQEXC-DjqNO54R.js +3 -0
  377. package/dist/pie-UPGHQEXC-pJq6_YgE.cjs +1 -0
  378. package/dist/pieDiagram-SKSYHLDU-Ba-c0fRA.cjs +31 -0
  379. package/dist/pieDiagram-SKSYHLDU-ya07MTY-.js +167 -0
  380. package/dist/pl-BStql1S-.cjs +2 -0
  381. package/dist/pl-DbIdTNpg.js +210 -0
  382. package/dist/providers.cjs +2 -2
  383. package/dist/providers.d.ts +1 -0
  384. package/dist/providers.js +188 -252
  385. package/dist/pt-CcKYweQk.js +210 -0
  386. package/dist/pt-Dk4jELuZ.cjs +2 -0
  387. package/dist/quadrantDiagram-337W2JSQ-CQQEVC49.cjs +8 -0
  388. package/dist/quadrantDiagram-337W2JSQ-Dp_QyIEO.js +1976 -0
  389. package/dist/radar-KQ55EAFF-Bid2hXXI.cjs +1 -0
  390. package/dist/radar-KQ55EAFF-C6zhEkCz.js +3 -0
  391. package/dist/requirementDiagram-Z7DCOOCP-CRl2914V.js +2203 -0
  392. package/dist/requirementDiagram-Z7DCOOCP-CeMYhXEm.cjs +74 -0
  393. package/dist/ro-BvhMyTKh.cjs +2 -0
  394. package/dist/ro-C-8tiqgA.js +210 -0
  395. package/dist/rough.esm-BjJ_weyP.cjs +2 -0
  396. package/dist/rough.esm-DBHP55VQ.js +1354 -0
  397. package/dist/ru-BQosng8l.cjs +2 -0
  398. package/dist/ru-Dhnz96q2.js +210 -0
  399. package/dist/sankeyDiagram-WA2Y5GQK-BFrF47Iv.js +922 -0
  400. package/dist/sankeyDiagram-WA2Y5GQK-DDfjtQ4G.cjs +11 -0
  401. package/dist/sequenceDiagram-2WXFIKYE-B-zWyr9f.cjs +146 -0
  402. package/dist/sequenceDiagram-2WXFIKYE-BAd8OVlz.js +4111 -0
  403. package/dist/sk-BU-Z5EsC.js +210 -0
  404. package/dist/sk-BhA7UeAk.cjs +2 -0
  405. package/dist/sl-6Mczv4jG.cjs +2 -0
  406. package/dist/sl-CcfjJFxo.js +210 -0
  407. package/dist/sr-CxObZdu0.cjs +2 -0
  408. package/dist/sr-S53unrLA.js +210 -0
  409. package/dist/src-DFxq-N5I.cjs +2 -0
  410. package/dist/src-Dm6r9c7l.js +2148 -0
  411. package/dist/stateDiagram-RAJIS63D-C-tfqeC-.js +219 -0
  412. package/dist/stateDiagram-RAJIS63D-C1Aj8vJQ.cjs +2 -0
  413. package/dist/stateDiagram-v2-FVOUBMTO-C-w53gXL.js +29 -0
  414. package/dist/stateDiagram-v2-FVOUBMTO-VoIE_KVn.cjs +2 -0
  415. package/dist/sv-BfiunVuX.cjs +2 -0
  416. package/dist/sv-BiJrVfZr.js +210 -0
  417. package/dist/th-BqLGltZi.cjs +2 -0
  418. package/dist/th-vQ7LQ7nD.js +210 -0
  419. package/dist/timeline-definition-YZTLITO2-CE1y2S_r.js +832 -0
  420. package/dist/timeline-definition-YZTLITO2-D8aFfnYE.cjs +62 -0
  421. package/dist/tr-Brwl4o_Z.cjs +2 -0
  422. package/dist/tr-C5RrNGLz.js +210 -0
  423. package/dist/treemap-KZPCXAKY-D2v0uStP.cjs +1 -0
  424. package/dist/treemap-KZPCXAKY-DLE_f1Bk.js +3 -0
  425. package/dist/types/THorizontalSpacing.d.ts +0 -1
  426. package/dist/types/THorizontalSpacingBreakPoints.d.ts +0 -1
  427. package/dist/types/TPaddingBreakPoints.d.ts +0 -1
  428. package/dist/types/TPading.d.ts +0 -1
  429. package/dist/types/TVerticalSpacing.d.ts +0 -1
  430. package/dist/types/TVerticalSpacingBreakPoints.d.ts +0 -1
  431. package/dist/uk-CV49TRvS.cjs +2 -0
  432. package/dist/uk-WGCFH0fY.js +210 -0
  433. package/dist/vennDiagram-LZ73GAT5-BSpVMORX.js +1860 -0
  434. package/dist/vennDiagram-LZ73GAT5-DvnB0e7u.cjs +35 -0
  435. package/dist/vi-JzM7bjn_.cjs +2 -0
  436. package/dist/vi-Waa7HkXq.js +210 -0
  437. package/dist/xychartDiagram-JWTSCODW-0qbVGrDs.cjs +8 -0
  438. package/dist/xychartDiagram-JWTSCODW-DpIry-th.js +2043 -0
  439. package/dist/zh-BmUS7Wn_.js +210 -0
  440. package/dist/zh-DEm0SGzZ.cjs +2 -0
  441. package/package.json +7 -7
  442. package/dist/LocalizationProvider-BLjmybBa.cjs +0 -2
  443. package/dist/LocalizationProvider-BSlUf0tp.js +0 -497
  444. package/dist/_arrayEach-DEUflJGE.cjs +0 -2
  445. package/dist/_arrayEach-tusrzNIw.js +0 -61
  446. package/dist/ar-C1pLt8fa.js +0 -219
  447. package/dist/ar-Jzw7PLrc.cjs +0 -2
  448. package/dist/arc-CDaXffrF.cjs +0 -2
  449. package/dist/arc-DfZkgffF.js +0 -132
  450. package/dist/architecture-7HQA4BMR-BwNHkZOR.cjs +0 -2
  451. package/dist/architecture-7HQA4BMR-ZD14yPTj.js +0 -6
  452. package/dist/architectureDiagram-VXUJARFQ-C2ZHmMwH.cjs +0 -2
  453. package/dist/architectureDiagram-VXUJARFQ-ZqTwLC_K.js +0 -8680
  454. package/dist/az-C0Ow5Hxa.cjs +0 -2
  455. package/dist/az-C3-F9ybX.js +0 -219
  456. package/dist/bg-YB0TmpRF.cjs +0 -2
  457. package/dist/bg-w2e_udiK.js +0 -219
  458. package/dist/blockDiagram-VD42YOAC-De0hLG3f.cjs +0 -2
  459. package/dist/blockDiagram-VD42YOAC-Dik4nU5R.js +0 -3756
  460. package/dist/bs-BoW04lRb.cjs +0 -2
  461. package/dist/bs-CEe_gjEx.js +0 -219
  462. package/dist/c4Diagram-YG6GDRKO-B97gU-WH.cjs +0 -2
  463. package/dist/c4Diagram-YG6GDRKO-BG0ZffB9.js +0 -2483
  464. package/dist/ca-Bsy2Y5pS.cjs +0 -2
  465. package/dist/ca-CKpd72XI.js +0 -219
  466. package/dist/channel-D35vM90y.cjs +0 -2
  467. package/dist/channel-DjCO9_Le.js +0 -8
  468. package/dist/chunk-4BX2VUAB-BOD7DqfU.cjs +0 -2
  469. package/dist/chunk-4BX2VUAB-ahGWfN9s.js +0 -18
  470. package/dist/chunk-55IACEB6-BE4LiqRj.js +0 -14
  471. package/dist/chunk-55IACEB6-aYtTY_gp.cjs +0 -2
  472. package/dist/chunk-B4BG7PRW-D7Ivw3g-.cjs +0 -2
  473. package/dist/chunk-B4BG7PRW-l_C90AO9.js +0 -1828
  474. package/dist/chunk-DI55MBZ5-CML-bpvH.cjs +0 -2
  475. package/dist/chunk-DI55MBZ5-CkzP_mAJ.js +0 -1928
  476. package/dist/chunk-FMBD7UC4-up_42EsF.cjs +0 -2
  477. package/dist/chunk-QN33PNHL-BQktMy72.js +0 -26
  478. package/dist/chunk-QN33PNHL-D3tw3Y1o.cjs +0 -2
  479. package/dist/chunk-QZHKN3VN-OgubCPUl.cjs +0 -2
  480. package/dist/chunk-QZHKN3VN-VbliCc4p.js +0 -18
  481. package/dist/chunk-TZMSLE5B-B2adgZpn.cjs +0 -2
  482. package/dist/chunk-TZMSLE5B-ogHnlNAL.js +0 -109
  483. package/dist/classDiagram-2ON5EDUG-DV3kGCmC.cjs +0 -2
  484. package/dist/classDiagram-2ON5EDUG-NFuoveOc.js +0 -20
  485. package/dist/classDiagram-v2-WZHVMYZB-DV3kGCmC.cjs +0 -2
  486. package/dist/classDiagram-v2-WZHVMYZB-NFuoveOc.js +0 -20
  487. package/dist/cose-bilkent-S5V4N54A-C1H2cJER.cjs +0 -2
  488. package/dist/cose-bilkent-S5V4N54A-CFFp3u42.js +0 -4934
  489. package/dist/cs-D-801PIR.cjs +0 -2
  490. package/dist/cs-DQvRPciB.js +0 -219
  491. package/dist/cy-BxyJCM05.js +0 -219
  492. package/dist/cy-aUPUcn-S.cjs +0 -2
  493. package/dist/cytoscape.esm-BS1owLay.js +0 -30250
  494. package/dist/cytoscape.esm-BxB3woZB.cjs +0 -10
  495. package/dist/da-B05ad5Iq.js +0 -219
  496. package/dist/da-CTiLOqut.cjs +0 -2
  497. package/dist/dagre-6UL2VRFP-BbRK6OVd.js +0 -696
  498. package/dist/dagre-6UL2VRFP-DceBzHY0.cjs +0 -2
  499. package/dist/de-DJ5iwpd7.js +0 -219
  500. package/dist/de-Dm204UMA.cjs +0 -2
  501. package/dist/defaultLocale-7NeEK7SF.cjs +0 -2
  502. package/dist/defaultLocale-DVr69WTU.js +0 -207
  503. package/dist/diagram-PSM6KHXK-CCRrPaN5.js +0 -848
  504. package/dist/diagram-PSM6KHXK-Dap3wmh3.cjs +0 -2
  505. package/dist/diagram-QEK2KX5R-CwkM4da6.js +0 -305
  506. package/dist/diagram-QEK2KX5R-CycnDjjr.cjs +0 -2
  507. package/dist/diagram-S2PKOQOG-BjWuQflk.js +0 -212
  508. package/dist/diagram-S2PKOQOG-C8bvmCRh.cjs +0 -2
  509. package/dist/el-CBS9mHS3.js +0 -219
  510. package/dist/el-DbtZj-ph.cjs +0 -2
  511. package/dist/erDiagram-Q2GNP2WA-CVwE6kCH.cjs +0 -2
  512. package/dist/erDiagram-Q2GNP2WA-DK_cVUc0.js +0 -1160
  513. package/dist/es-Bo08apQr.js +0 -219
  514. package/dist/es-Cc-4Vqf7.cjs +0 -2
  515. package/dist/et-D5pQ66eY.cjs +0 -2
  516. package/dist/et-pRL0Tmle.js +0 -219
  517. package/dist/eu-Br68gaf7.js +0 -219
  518. package/dist/eu-RZ-27koK.cjs +0 -2
  519. package/dist/fi-BCXB-k_X.js +0 -219
  520. package/dist/fi-Dqa9mgnW.cjs +0 -2
  521. package/dist/flowDiagram-NV44I4VS-BC9ZXfqx.js +0 -2339
  522. package/dist/flowDiagram-NV44I4VS-BmvwN_Qr.cjs +0 -2
  523. package/dist/fr-B7fhkle4.cjs +0 -2
  524. package/dist/fr-gKE1SSIF.js +0 -219
  525. package/dist/ga-4Hf7vKvr.cjs +0 -2
  526. package/dist/ga-C1SpITZy.js +0 -219
  527. package/dist/ganttDiagram-JELNMOA3-Cxvs4xUM.cjs +0 -2
  528. package/dist/ganttDiagram-JELNMOA3-DCPYcGQ7.js +0 -3652
  529. package/dist/gitGraph-G5XIXVHT-CGc4Dw_9.cjs +0 -2
  530. package/dist/gitGraph-G5XIXVHT-D2TpybaV.js +0 -6
  531. package/dist/gitGraphDiagram-V2S2FVAM-BLwOtAPI.js +0 -1215
  532. package/dist/gitGraphDiagram-V2S2FVAM-CxKeCiX6.cjs +0 -2
  533. package/dist/gl-COSpsMSK.cjs +0 -2
  534. package/dist/gl-CSzCeu2L.js +0 -219
  535. package/dist/graph-C7xixGrW.cjs +0 -2
  536. package/dist/graph-DH3cnEko.js +0 -421
  537. package/dist/he-BrkfqoIm.js +0 -219
  538. package/dist/he-C7Wi6-EL.cjs +0 -2
  539. package/dist/hi-C1RGDPzn.js +0 -219
  540. package/dist/hi-ojklJj-a.cjs +0 -2
  541. package/dist/hr-CsO_h2VT.js +0 -219
  542. package/dist/hr-DkEwOCGU.cjs +0 -2
  543. package/dist/hu-CVtbM-V2.js +0 -219
  544. package/dist/hu-D8uAAzvN.cjs +0 -2
  545. package/dist/id-18yPGK2f.cjs +0 -2
  546. package/dist/id-CARSN0W8.js +0 -219
  547. package/dist/index-Bo3Feswn.js +0 -55587
  548. package/dist/index-C6Yk2BjU.cjs +0 -428
  549. package/dist/info-VBDWY6EO-Bp4BP7Eb.js +0 -6
  550. package/dist/info-VBDWY6EO-dcVOFyXm.cjs +0 -2
  551. package/dist/infoDiagram-HS3SLOUP-BH_AfMqs.js +0 -32
  552. package/dist/infoDiagram-HS3SLOUP-BZqbkXM8.cjs +0 -2
  553. package/dist/init-DZ96s0AS.cjs +0 -2
  554. package/dist/init-ZxktEp_H.js +0 -17
  555. package/dist/it-BVq911RW.cjs +0 -2
  556. package/dist/it-ClWGK7XT.js +0 -219
  557. package/dist/ja-BgcKuKZ4.cjs +0 -2
  558. package/dist/ja-DGL12HwE.js +0 -219
  559. package/dist/journeyDiagram-XKPGCS4Q-B6LA5FxS.js +0 -1255
  560. package/dist/journeyDiagram-XKPGCS4Q-D738Gof9.cjs +0 -2
  561. package/dist/kanban-definition-3W4ZIXB7-BiudWCGQ.js +0 -1049
  562. package/dist/kanban-definition-3W4ZIXB7-CYpFGeof.cjs +0 -2
  563. package/dist/katex-DPu4QpBP.cjs +0 -2
  564. package/dist/katex-Dd1-wdX2.js +0 -14523
  565. package/dist/kk-CkKXbKso.js +0 -219
  566. package/dist/kk-Dn3FBkOR.cjs +0 -2
  567. package/dist/ko-CKAbV25b.cjs +0 -2
  568. package/dist/ko-QYvDV2aw.js +0 -219
  569. package/dist/layout-D6yO7DzL.cjs +0 -2
  570. package/dist/layout-bxkZz7Cm.js +0 -1919
  571. package/dist/linear-CsAdQFhD.js +0 -341
  572. package/dist/linear-Cu3RCqOH.cjs +0 -2
  573. package/dist/lt-BKnFyiLV.js +0 -219
  574. package/dist/lt-BnGNEsIS.cjs +0 -2
  575. package/dist/lv-Clqo0Ogm.js +0 -219
  576. package/dist/lv-D3rJQRhc.cjs +0 -2
  577. package/dist/maplibre-gl-Bu4KbMVz.js +0 -23511
  578. package/dist/maplibre-gl-oIss86aW.cjs +0 -6
  579. package/dist/mermaid-parser.core-BeAFxlhX.cjs +0 -2
  580. package/dist/mermaid-parser.core-EaBMrmE0.js +0 -23731
  581. package/dist/mindmap-definition-VGOIOE7T-BdPsEBSQ.cjs +0 -2
  582. package/dist/mindmap-definition-VGOIOE7T-CV_iinaV.js +0 -1129
  583. package/dist/mk-EhcD0RzW.js +0 -219
  584. package/dist/mk-hVxJgrE0.cjs +0 -2
  585. package/dist/ms-CJACwjo7.js +0 -219
  586. package/dist/ms-D0txYckK.cjs +0 -2
  587. package/dist/nb-BfKRl99z.cjs +0 -2
  588. package/dist/nb-NCgnP0Pu.js +0 -219
  589. package/dist/nl-EgsNCunP.js +0 -219
  590. package/dist/nl-ZXiLkBj_.cjs +0 -2
  591. package/dist/ordinal-BZdahNih.cjs +0 -2
  592. package/dist/ordinal-DSZU4PqD.js +0 -77
  593. package/dist/packet-DYOGHKS2-CxyBgIUF.js +0 -6
  594. package/dist/packet-DYOGHKS2-lB1ZNdq9.cjs +0 -2
  595. package/dist/pie-VRWISCQL-CvTcddz_.cjs +0 -2
  596. package/dist/pie-VRWISCQL-yxV8OJyl.js +0 -6
  597. package/dist/pieDiagram-ADFJNKIX-B0W0v6lo.cjs +0 -2
  598. package/dist/pieDiagram-ADFJNKIX-CkAS8Z8i.js +0 -238
  599. package/dist/pl-H28GVtiG.js +0 -219
  600. package/dist/pl-tVjdYTB9.cjs +0 -2
  601. package/dist/pt-1k62N9F3.cjs +0 -2
  602. package/dist/pt-BSPZhWKl.js +0 -211
  603. package/dist/quadrantDiagram-AYHSOK5B-Bzqn0a-l.js +0 -1338
  604. package/dist/quadrantDiagram-AYHSOK5B-SWF7EmO_.cjs +0 -2
  605. package/dist/radar-ZZBFDIW7-Cx_1gtna.js +0 -6
  606. package/dist/radar-ZZBFDIW7-Dt6yDSJ-.cjs +0 -2
  607. package/dist/requirementDiagram-UZGBJVZJ-CG-2-gxk.cjs +0 -2
  608. package/dist/requirementDiagram-UZGBJVZJ-DYGD-StR.js +0 -1164
  609. package/dist/ro-9Qt1qDDA.cjs +0 -2
  610. package/dist/ro-BpaZLre_.js +0 -219
  611. package/dist/ru-4WxRouIU.cjs +0 -2
  612. package/dist/ru-CUZzD-Tx.js +0 -219
  613. package/dist/sankeyDiagram-TZEHDZUN-DhUxbYSw.js +0 -1194
  614. package/dist/sankeyDiagram-TZEHDZUN-sLCJH1s2.cjs +0 -2
  615. package/dist/sequenceDiagram-WL72ISMW--4TVFyeB.js +0 -3882
  616. package/dist/sequenceDiagram-WL72ISMW-CFPZgLxH.cjs +0 -2
  617. package/dist/sk-CoQ6XiCY.js +0 -219
  618. package/dist/sk-uWukDQab.cjs +0 -2
  619. package/dist/sl-B6DVbKg6.cjs +0 -2
  620. package/dist/sl-CHW-ZGol.js +0 -219
  621. package/dist/sr-BOD8Tc-D.cjs +0 -2
  622. package/dist/sr-EQGjIBJE.js +0 -219
  623. package/dist/stateDiagram-FKZM4ZOC-CF_Lwk8j.js +0 -449
  624. package/dist/stateDiagram-FKZM4ZOC-D8CSpH_U.cjs +0 -2
  625. package/dist/stateDiagram-v2-4FDKWEC3-BDRDUNPf.cjs +0 -2
  626. package/dist/stateDiagram-v2-4FDKWEC3-BavZNkxV.js +0 -20
  627. package/dist/sv-B6nLuQr7.cjs +0 -2
  628. package/dist/sv-DTxWN6ED.js +0 -219
  629. package/dist/th-BVPzHvBf.js +0 -219
  630. package/dist/th-DmULV6uT.cjs +0 -2
  631. package/dist/timeline-definition-IT6M3QCI-DVBW6O_2.cjs +0 -2
  632. package/dist/timeline-definition-IT6M3QCI-Du5tfms8.js +0 -1227
  633. package/dist/tr-BE5geTUC.cjs +0 -2
  634. package/dist/tr-BHR1QA-D.js +0 -219
  635. package/dist/treemap-GDKQZRPO-7BeIVnJ2.cjs +0 -2
  636. package/dist/treemap-GDKQZRPO-Dc6Nwpnf.js +0 -6
  637. package/dist/uk-Bc5TwelE.js +0 -219
  638. package/dist/uk-DS5ukB_-.cjs +0 -2
  639. package/dist/vi-D9FF4kkG.cjs +0 -2
  640. package/dist/vi-DC0eQZb7.js +0 -219
  641. package/dist/xychartDiagram-PRI3JC2R-BMoq4LTz.js +0 -1887
  642. package/dist/xychartDiagram-PRI3JC2R-BbGEetiQ.cjs +0 -2
  643. package/dist/zh-CGcOiJ3s.cjs +0 -2
  644. package/dist/zh-GsCLn8OE.js +0 -219
@@ -1,1887 +0,0 @@
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-Bo3Feswn.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-CsAdQFhD.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-BMoq4LTz.js.map