@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.
- package/dist/LocalizationProvider-B6NxHbu2.cjs +2 -0
- package/dist/LocalizationProvider-te5iu_6z.js +363 -0
- package/dist/_arrayEach-BuSFKyFt.js +54 -0
- package/dist/_arrayEach-ChR-TejB.cjs +2 -0
- package/dist/_getTag-BRuLtYrv.js +28 -0
- package/dist/_getTag-D6VVyrEu.cjs +2 -0
- package/dist/abstractions/IApplicationContext.d.ts +0 -1
- package/dist/abstractions/IAuthenticationProvider.d.ts +0 -1
- package/dist/abstractions/ILocalizationProvider.d.ts +0 -1
- package/dist/abstractions/providers/ConsoleLoggingProvider.d.ts +0 -1
- package/dist/abstractions/providers/DefaultGraphClient.d.ts +0 -1
- package/dist/abstractions/providers/DefaultLocalizationProvider.d.ts +0 -1
- package/dist/abstractions/providers/LocalStorageProvider.d.ts +0 -1
- package/dist/abstractions/providers/LocalizationProvider.d.ts +0 -1
- package/dist/ar-Blifx2MN.js +210 -0
- package/dist/ar-ip3bGOX3.cjs +2 -0
- package/dist/arc-4yb49ncY.js +82 -0
- package/dist/arc-djsA8IT0.cjs +2 -0
- package/dist/architecture-PBZL5I3N-CvTfVLFi.js +3 -0
- package/dist/architecture-PBZL5I3N-wZIE3ggH.cjs +1 -0
- package/dist/architectureDiagram-2XIMDMQ5-DFEvJNx1.cjs +37 -0
- package/dist/architectureDiagram-2XIMDMQ5-g-HotzpG.js +4047 -0
- package/dist/array-BNB_vRFv.cjs +2 -0
- package/dist/array-DP0duYiO.js +8 -0
- package/dist/az-CMhDjtnj.js +210 -0
- package/dist/az-CyVLdUDz.cjs +2 -0
- package/dist/bg-Bexoz3hL.cjs +2 -0
- package/dist/bg-C96WirSv.js +210 -0
- package/dist/blockDiagram-WCTKOSBZ-DWgb5Ghz.js +3165 -0
- package/dist/blockDiagram-WCTKOSBZ-Dl04FBAy.cjs +133 -0
- package/dist/bs-MMcvhwLv.cjs +2 -0
- package/dist/bs-_St1wBE_.js +210 -0
- package/dist/c4Diagram-IC4MRINW-ClZvialQ.js +2966 -0
- package/dist/c4Diagram-IC4MRINW-ZFE2cGZP.cjs +11 -0
- package/dist/ca-BspMSeHN.cjs +2 -0
- package/dist/ca-QlLcV4wf.js +210 -0
- package/dist/channel-2Bqnb1FY.js +7 -0
- package/dist/channel-5_aP1EVB.cjs +2 -0
- package/dist/chunk-4BX2VUAB-B5Va_oZz.js +10 -0
- package/dist/chunk-4BX2VUAB-BWDW-gYk.cjs +2 -0
- package/dist/chunk-55IACEB6-4ind_ByS.cjs +2 -0
- package/dist/chunk-55IACEB6-Pcyz_aR_.js +10 -0
- package/dist/chunk-7E7YKBS2-Sw9_w4gt.cjs +2 -0
- package/dist/chunk-7E7YKBS2-VHdgsed6.js +25 -0
- package/dist/chunk-7R4GIKGN-BKoqTTU_.cjs +81 -0
- package/dist/chunk-7R4GIKGN-CaQJ0QBF.js +2598 -0
- package/dist/chunk-C72U2L5F-CCvi6jiy.cjs +2 -0
- package/dist/chunk-C72U2L5F-MjJQTOMh.js +25 -0
- package/dist/chunk-D-IZpNpi.cjs +1 -0
- package/dist/chunk-EGIJ26TM-Bffl84Wq.cjs +2 -0
- package/dist/chunk-EGIJ26TM-DLMAfvpZ.js +25 -0
- package/dist/{chunk-FMBD7UC4-B7ANnE_H.js → chunk-FMBD7UC4-BvqqU04Z.cjs} +3 -7
- package/dist/chunk-FMBD7UC4-xjRtkFXe.js +7 -0
- package/dist/chunk-GEFDOKGD-BNgT40Ex.js +1302 -0
- package/dist/chunk-GEFDOKGD-BOwd6Jqp.cjs +3 -0
- package/dist/chunk-GLR3WWYH-DdNAJNRC.cjs +2 -0
- package/dist/chunk-GLR3WWYH-kyo6BUtq.js +43 -0
- package/dist/chunk-HHEYEP7N-DO1AYIZw.js +11 -0
- package/dist/chunk-HHEYEP7N-pdmgQZzP.cjs +2 -0
- package/dist/chunk-JSJVCQXG-Ci0seBb4.cjs +2 -0
- package/dist/chunk-JSJVCQXG-DowfYWcD.js +62 -0
- package/dist/chunk-KX2RTZJC-BJeOHReu.cjs +2 -0
- package/dist/chunk-KX2RTZJC-D-bUTSNy.js +27 -0
- package/dist/chunk-KYZI473N-DEPuSXaW.js +3436 -0
- package/dist/chunk-KYZI473N-DzBMFOER.cjs +54 -0
- package/dist/chunk-L3YUKLVL-BDGCTzmy.js +25 -0
- package/dist/chunk-L3YUKLVL-BZ17sqh5.cjs +2 -0
- package/dist/chunk-MX3YWQON-CAsnAj2e.js +82 -0
- package/dist/chunk-MX3YWQON-DulrBJdn.cjs +2 -0
- package/dist/chunk-NBPlniwU.js +23 -0
- package/dist/chunk-NQ4KR5QH-BJBAT2kM.cjs +221 -0
- package/dist/chunk-NQ4KR5QH-DFem-ORD.js +2004 -0
- package/dist/chunk-O4XLMI2P-BQF7MAo7.cjs +8 -0
- package/dist/chunk-O4XLMI2P-DA4TPzPG.js +513 -0
- package/dist/chunk-OZEHJAEY-CAiiXJUP.cjs +2 -0
- package/dist/chunk-OZEHJAEY-D7SX2SbR.js +66 -0
- package/dist/chunk-PQ6SQG4A-BZnW4-Sd.cjs +2 -0
- package/dist/chunk-PQ6SQG4A-ObFGkauo.js +69 -0
- package/dist/chunk-PU5JKC2W-BM5NPS-q.js +1887 -0
- package/dist/chunk-PU5JKC2W-eRU8wnTH.cjs +71 -0
- package/dist/chunk-QZHKN3VN-Dhli_tM0.cjs +2 -0
- package/dist/chunk-QZHKN3VN-x258g6EH.js +17 -0
- package/dist/chunk-R5LLSJPH-CNTEucEd.cjs +2 -0
- package/dist/chunk-R5LLSJPH-Gt27ml2m.js +37 -0
- package/dist/chunk-WL4C6EOR-CQXw6d0l.cjs +190 -0
- package/dist/chunk-WL4C6EOR-DuM6QmqM.js +3196 -0
- package/dist/chunk-XIRO2GV7-CswC9CO8.cjs +2 -0
- package/dist/chunk-XIRO2GV7-DXlO8X82.js +32 -0
- package/dist/chunk-XPW4576I-Bpsr4SZJ.js +1148 -0
- package/dist/chunk-XPW4576I-C68T-WIW.cjs +33 -0
- package/dist/chunk-XZSTWKYB-DJv9rEVU.cjs +95 -0
- package/dist/chunk-XZSTWKYB-jD9M1izK.js +16132 -0
- package/dist/chunk-YBOYWFTD-B6CeuteH.js +34 -0
- package/dist/chunk-YBOYWFTD-CiLW6HW_.cjs +2 -0
- package/dist/classDiagram-VBA2DB6C-Us0kuDfz.cjs +2 -0
- package/dist/classDiagram-VBA2DB6C-VOsE3gN0.js +31 -0
- package/dist/classDiagram-v2-RAHNMMFH-BWsm3ea6.cjs +2 -0
- package/dist/classDiagram-v2-RAHNMMFH-DPqMNfOz.js +31 -0
- package/dist/components/AISearchControl/useAISearchControlStyles.d.ts +0 -1
- package/dist/components/AspectRatio/AspectRatio.d.ts +0 -1
- package/dist/components/AspectRatio/IAspectRationProps.d.ts +0 -1
- package/dist/components/Card/ICardProps.d.ts +0 -1
- package/dist/components/Carousel/ICarouselProps.d.ts +0 -1
- package/dist/components/Carousel/useCarouselButton.d.ts +0 -1
- package/dist/components/Carousel/useCarouselStyles.d.ts +0 -1
- package/dist/components/Center/ICenterProps.d.ts +0 -1
- package/dist/components/ContentRenderer/IContentRendererProps.d.ts +0 -1
- package/dist/components/DataGridV2/DataGridV2.d.ts +2 -1
- package/dist/components/DataGridV2/IDataGridV2ExtraProps.d.ts +0 -1
- package/dist/components/Grid/IGridProps.d.ts +0 -1
- package/dist/components/ItemPicker/IItemPickerProps.d.ts +0 -1
- package/dist/components/KPIControl/IKpiCardProps.d.ts +0 -1
- package/dist/components/ListItemActivityMessage/IActivity.d.ts +0 -1
- package/dist/components/ListItemActivityMessage/IActivityMessageProps.d.ts +0 -1
- package/dist/components/ListItemActivityMessage/IActor.d.ts +0 -1
- package/dist/components/ListItemActivityMessage/useSharePointActivities.d.ts +0 -1
- package/dist/components/ListToolbar/FlatItem.d.ts +0 -1
- package/dist/components/ListToolbar/IListToolbarProps.d.ts +0 -1
- package/dist/components/ListToolbar/IToolbarItem.d.ts +0 -1
- package/dist/components/ListToolbar/IToolbarItemRendererProps.d.ts +0 -1
- package/dist/components/ListToolbar/helpers.d.ts +0 -1
- package/dist/components/MermaidDiagram/useMermaidDiagramStyles.d.ts +0 -1
- package/dist/components/Navigation/Navigation.d.ts +0 -1
- package/dist/components/Popup/Popup.d.ts +0 -1
- package/dist/components/Provider/UniversalProvider.d.ts +0 -1
- package/dist/components/Space/ISpaceProps.d.ts +0 -1
- package/dist/components/SplitPane/ISplitPaneProps.d.ts +0 -1
- package/dist/components/SplitPane/useSplitPaneStyles.d.ts +0 -1
- package/dist/components/Stack/IStackProps.d.ts +0 -1
- package/dist/components/StackedUsers/IStackedUsersProps.d.ts +0 -1
- package/dist/components/StackedUsers/StackedUsers.d.ts +0 -1
- package/dist/components/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts +0 -1
- package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts +0 -1
- package/dist/components/adaptiveCardHost/AdaptiveCardHost.d.ts +0 -1
- package/dist/components/adaptiveCardHost/IAdaptiveCardHostProps.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/Elements.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUIChoiceSetInput.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUIDateInput.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUINumberInput.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUITextInput.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/FluentUIToggleInput.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/HostCapability.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/HostConfig.d.ts +0 -1
- package/dist/components/adaptiveCardHost/fluentUI/Styles.d.ts +0 -1
- package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts +0 -1
- package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostEvaluationContext.d.ts +0 -1
- package/dist/components/aiAssistant/ChatAction.d.ts +0 -1
- package/dist/components/aiAssistant/ChatInputProps.d.ts +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensions.d.ts +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensionsProps.d.ts +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensionsV1.d.ts +0 -1
- package/dist/components/aiAssistant/ChatInputWithMensionsV2.d.ts +0 -1
- package/dist/components/aiAssistant/ChatState.d.ts +0 -1
- package/dist/components/aiAssistant/IAIAssistantProps.d.ts +0 -1
- package/dist/components/aiAssistant/chatReducer.d.ts +0 -1
- package/dist/components/aiAssistant/useChatInputStyles.d.ts +0 -1
- package/dist/components/aiAssistant/useChatInputWithMensionsStyles.d.ts +0 -1
- package/dist/components/aiAssistant/useStyles.d.ts +0 -1
- package/dist/components/appDashboard/AppDashboard.d.ts +0 -1
- package/dist/components/appDashboard/IAppDashboardProps.d.ts +0 -1
- package/dist/components/baseComponentProps/IBaseProps.d.ts +0 -1
- package/dist/components/breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/components/breadcrumb/IBreadcrumProps.d.ts +0 -1
- package/dist/components/breadcrumb/OverflowMenu.d.ts +0 -1
- package/dist/components/breadcrumb/useBreadcrumStyles.d.ts +0 -1
- package/dist/components/calendarControl/hooks/useCalendar.d.ts +0 -1
- package/dist/components/calendarControl/hooks/useUtils.d.ts +0 -1
- package/dist/components/calendarControl/models/ICalendarControlProps.d.ts +0 -1
- package/dist/components/calendarControl/models/IEvents.d.ts +0 -1
- package/dist/components/customControlBar/ICustomControlBarProps.d.ts +0 -1
- package/dist/components/dataGrid/DataGrid.d.ts +0 -1
- package/dist/components/dataGrid/IDataGridProps.d.ts +0 -1
- package/dist/components/dataGrid/ISortState.d.ts +0 -1
- package/dist/components/dataGrid/stack/IStackProps.d.ts +0 -1
- package/dist/components/dataGrid/stack/Stack.d.ts +0 -1
- package/dist/components/dataGrid/useDataGridStyles.d.ts +0 -1
- package/dist/components/dropDownField/IDropDownFieldProps.d.ts +0 -1
- package/dist/components/fluentUIProvider/FluentUIProvider.d.ts +0 -1
- package/dist/components/iconButton/IconButton.d.ts +0 -1
- package/dist/components/iconButton/IconButtonProps.d.ts +0 -1
- package/dist/components/mensions/IMensionsProps.d.ts +0 -1
- package/dist/components/mensions/Mensions.d.ts +0 -1
- package/dist/components/mensions/MensionsExample.d.ts +0 -1
- package/dist/components/renderAdaptiveCard/RenderAdaptiveCard.d.ts +0 -1
- package/dist/components/searchControl/useSearchControlStyles.d.ts +0 -1
- package/dist/components/selectView/SelectView.d.ts +0 -1
- package/dist/components/showError/ShowError.d.ts +0 -1
- package/dist/components/stackv2/IStackV2Props.d.ts +0 -1
- package/dist/components/stackv2/StackV2.d.ts +0 -1
- package/dist/components/userCard/IUserCardProps.d.ts +0 -1
- package/dist/components/userCard/IUserInfo.d.ts +0 -1
- package/dist/components/userCard/UserCard.d.ts +0 -1
- package/dist/components/userCard/constants.d.ts +0 -1
- package/dist/components/userCard/useUserProfile.d.ts +0 -1
- package/dist/components/videoPlayer/VideoPlayer.d.ts +0 -1
- package/dist/components/videoPlayer/useVideoStyles.d.ts +0 -1
- package/dist/components/worldMap/IWorldMapProps.d.ts +0 -1
- package/dist/components/worldMap/MaplibreWorldMapProps.d.ts +0 -1
- package/dist/components/worldMap/WorldMap.d.ts +0 -1
- package/dist/components/worldMap/WorldMapControl.d.ts +0 -1
- package/dist/components/worldMap/useCleanMapStyle.d.ts +0 -1
- package/dist/components/worldMap/useGeocodedCountries.d.ts +0 -1
- package/dist/cose-bilkent-S5V4N54A-CKhwzobJ.js +2252 -0
- package/dist/cose-bilkent-S5V4N54A-DmyaRQ6l.cjs +2 -0
- package/dist/cs-FZSeHYld.cjs +2 -0
- package/dist/cs-MrS2bH7F.js +210 -0
- package/dist/cy-BX97Tgwk.js +210 -0
- package/dist/cy-CzQmM2lQ.cjs +2 -0
- package/dist/cytoscape.esm-CcJAI0wG.cjs +322 -0
- package/dist/cytoscape.esm-D9EjU25_.js +18102 -0
- package/dist/da-BnewPPrh.js +210 -0
- package/dist/da-CexFt-Oj.cjs +2 -0
- package/dist/dagre-CpEPaL3r.cjs +2 -0
- package/dist/dagre-Dd8wCGc6.js +1305 -0
- package/dist/dagre-KLK3FWXG-BpxkjvB3.js +294 -0
- package/dist/dagre-KLK3FWXG-DIznPQl_.cjs +5 -0
- package/dist/de-B68HwuYu.cjs +2 -0
- package/dist/de-BSZuzGTL.js +210 -0
- package/dist/defaultLocale-CYOzCjwh.js +203 -0
- package/dist/defaultLocale-DSgylVA1.cjs +2 -0
- package/dist/diagram-E7M64L7V-dXqTi77U.cjs +25 -0
- package/dist/diagram-E7M64L7V-oX07GVAD.js +529 -0
- package/dist/diagram-IFDJBPK2-CriVAAmI.cjs +44 -0
- package/dist/diagram-IFDJBPK2-lCNF06_S.js +215 -0
- package/dist/diagram-P4PSJMXO-TfwVJh4S.js +135 -0
- package/dist/diagram-P4PSJMXO-k7F0lH6Q.cjs +25 -0
- package/dist/dist-CV9Ez7cn.js +52 -0
- package/dist/dist-DVthN7lF.cjs +2 -0
- package/dist/el-DQc4jSMd.cjs +2 -0
- package/dist/el-DrOk3N7-.js +210 -0
- package/dist/erDiagram-INFDFZHY-CDt3mOSU.cjs +71 -0
- package/dist/erDiagram-INFDFZHY-Ds_R2Ds4.js +1668 -0
- package/dist/es-CGqzubZ2.js +210 -0
- package/dist/es-DI8Y4Bv1.cjs +2 -0
- package/dist/et-DGqkocuq.js +210 -0
- package/dist/et-DfaryKvp.cjs +2 -0
- package/dist/eu-BVOSXciF.cjs +2 -0
- package/dist/eu-DEo7fdTW.js +210 -0
- package/dist/fi-C5L-OzaI.cjs +2 -0
- package/dist/fi-DxErwnd5.js +210 -0
- package/dist/flowDiagram-PKNHOUZH-7XJG07fo.cjs +163 -0
- package/dist/flowDiagram-PKNHOUZH-CkeYebJ5.js +4163 -0
- package/dist/fr-yFvjqx8B.cjs +2 -0
- package/dist/fr-zrtSZX0o.js +210 -0
- package/dist/ga-6mVQhlWi.cjs +2 -0
- package/dist/ga-CbHxGc9_.js +210 -0
- package/dist/ganttDiagram-A5KZAMGK-Bbck1pyM.cjs +293 -0
- package/dist/ganttDiagram-A5KZAMGK-CFT3Xn_r.js +3074 -0
- package/dist/gitGraph-HDMCJU4V-BKE04oIl.js +3 -0
- package/dist/gitGraph-HDMCJU4V-C9GYfOYb.cjs +1 -0
- package/dist/gitGraphDiagram-K3NZZRJ6-CXz9SHBX.js +627 -0
- package/dist/gitGraphDiagram-K3NZZRJ6-Dt4D-ig1.cjs +66 -0
- package/dist/gl--w0P3RY4.js +210 -0
- package/dist/gl-BJzJe1sq.cjs +2 -0
- package/dist/graphlib-CPo7oIsu.js +223 -0
- package/dist/graphlib-CmUS4Qin.cjs +2 -0
- package/dist/he-B3Bw3qr0.cjs +2 -0
- package/dist/he-DY19lzWp.js +210 -0
- package/dist/hi-CFSsoO_8.js +210 -0
- package/dist/hi-kofL-mD8.cjs +2 -0
- package/dist/hooks/useBrandCenterFonts.d.ts +0 -1
- package/dist/hooks/useGraphAPI.d.ts +0 -1
- package/dist/hooks/useLocalizationStrings.d.ts +0 -1
- package/dist/hooks/useLogging.d.ts +0 -1
- package/dist/hr-CDxqA9Jm.cjs +2 -0
- package/dist/hr-DIRJ1Z8e.js +210 -0
- package/dist/hu-Defen_75.cjs +2 -0
- package/dist/hu-DqYPRWZh.js +210 -0
- package/dist/id-DcwMRgmX.cjs +2 -0
- package/dist/id-Dgj7SUCi.js +210 -0
- package/dist/identity-6JlhFhuM.cjs +2 -0
- package/dist/identity-C1jKsMoW.js +395 -0
- package/dist/index.cjs +453 -2
- package/dist/index.js +22827 -168
- package/dist/info-3K5VOQVL-DfN_3mKd.js +3 -0
- package/dist/info-3K5VOQVL-d6J9FY0_.cjs +1 -0
- package/dist/infoDiagram-LFFYTUFH-Bp9btqnA.cjs +3 -0
- package/dist/infoDiagram-LFFYTUFH-DnvgRFnx.js +21 -0
- package/dist/init-BAFZAp9S.cjs +2 -0
- package/dist/init-m0TwgR4W.js +17 -0
- package/dist/isEmpty-BTp1uKIj.cjs +2 -0
- package/dist/isEmpty-uXVYZZYe.js +17 -0
- package/dist/ishikawaDiagram-PHBUUO56-DLaOkz38.js +719 -0
- package/dist/ishikawaDiagram-PHBUUO56-DmqObwMZ.cjs +71 -0
- package/dist/it-D5nM6KCi.cjs +2 -0
- package/dist/it-QdChHqVN.js +210 -0
- package/dist/ja-BNS0BbY-.js +210 -0
- package/dist/ja-BtuHirv7.cjs +2 -0
- package/dist/journeyDiagram-4ABVD52K-Cv0DbLMi.cjs +140 -0
- package/dist/journeyDiagram-4ABVD52K-DYmmcNK4.js +885 -0
- package/dist/kanban-definition-K7BYSVSG-BdQLAMeB.cjs +90 -0
- package/dist/kanban-definition-K7BYSVSG-CLEYqSz5.js +973 -0
- package/dist/katex-B-Nju2J8.js +22002 -0
- package/dist/katex-WY67Rp7A.cjs +266 -0
- package/dist/kk-BSl8IqgQ.cjs +2 -0
- package/dist/kk-Dhkax68h.js +210 -0
- package/dist/ko-eplb1GD0.cjs +2 -0
- package/dist/ko-heRMHZWp.js +210 -0
- package/dist/line-CbEBKCYr.js +36 -0
- package/dist/line-DqSdvtRR.cjs +2 -0
- package/dist/linear-DvLDpS6A.cjs +2 -0
- package/dist/linear-Eb79THx6.js +291 -0
- package/dist/localization/ILibraryStrings.d.ts +0 -1
- package/dist/localization/defaults/ar.d.ts +0 -1
- package/dist/localization/defaults/az.d.ts +0 -1
- package/dist/localization/defaults/bg.d.ts +0 -1
- package/dist/localization/defaults/bs.d.ts +0 -1
- package/dist/localization/defaults/ca.d.ts +0 -1
- package/dist/localization/defaults/cs.d.ts +0 -1
- package/dist/localization/defaults/cy.d.ts +0 -1
- package/dist/localization/defaults/da.d.ts +0 -1
- package/dist/localization/defaults/de.d.ts +0 -1
- package/dist/localization/defaults/el.d.ts +0 -1
- package/dist/localization/defaults/en.d.ts +0 -1
- package/dist/localization/defaults/es.d.ts +0 -1
- package/dist/localization/defaults/et.d.ts +0 -1
- package/dist/localization/defaults/eu.d.ts +0 -1
- package/dist/localization/defaults/fi.d.ts +0 -1
- package/dist/localization/defaults/fr.d.ts +0 -1
- package/dist/localization/defaults/ga.d.ts +0 -1
- package/dist/localization/defaults/gl.d.ts +0 -1
- package/dist/localization/defaults/he.d.ts +0 -1
- package/dist/localization/defaults/hi.d.ts +0 -1
- package/dist/localization/defaults/hr.d.ts +0 -1
- package/dist/localization/defaults/hu.d.ts +0 -1
- package/dist/localization/defaults/id.d.ts +0 -1
- package/dist/localization/defaults/it.d.ts +0 -1
- package/dist/localization/defaults/ja.d.ts +0 -1
- package/dist/localization/defaults/kk.d.ts +0 -1
- package/dist/localization/defaults/ko.d.ts +0 -1
- package/dist/localization/defaults/lt.d.ts +0 -1
- package/dist/localization/defaults/lv.d.ts +0 -1
- package/dist/localization/defaults/mk.d.ts +0 -1
- package/dist/localization/defaults/ms.d.ts +0 -1
- package/dist/localization/defaults/nb.d.ts +0 -1
- package/dist/localization/defaults/nl.d.ts +0 -1
- package/dist/localization/defaults/pl.d.ts +0 -1
- package/dist/localization/defaults/pt.d.ts +0 -1
- package/dist/localization/defaults/ro.d.ts +0 -1
- package/dist/localization/defaults/ru.d.ts +0 -1
- package/dist/localization/defaults/sk.d.ts +0 -1
- package/dist/localization/defaults/sl.d.ts +0 -1
- package/dist/localization/defaults/sr.d.ts +0 -1
- package/dist/localization/defaults/sv.d.ts +0 -1
- package/dist/localization/defaults/th.d.ts +0 -1
- package/dist/localization/defaults/tr.d.ts +0 -1
- package/dist/localization/defaults/uk.d.ts +0 -1
- package/dist/localization/defaults/vi.d.ts +0 -1
- package/dist/localization/defaults/zh.d.ts +0 -1
- package/dist/lt-Decqbo8S.js +210 -0
- package/dist/lt-DsYAWFbF.cjs +2 -0
- package/dist/lv-DHmTjCb8.cjs +2 -0
- package/dist/lv-wZASv0Lw.js +210 -0
- package/dist/maplibre-gl-qSrG75fp.js +33003 -0
- package/dist/maplibre-gl-tm_pVdmb.cjs +757 -0
- package/dist/math-DR9t6ixc.cjs +2 -0
- package/dist/math-DyURnvXC.js +12 -0
- package/dist/mermaid-parser.core-BdTB9qx-.js +61 -0
- package/dist/mermaid-parser.core-BlzF5RRD.cjs +4 -0
- package/dist/mindmap-definition-YRQLILUH-CzcVgr-U.js +966 -0
- package/dist/mindmap-definition-YRQLILUH-zWN_YXC3.cjs +69 -0
- package/dist/mk-BTsLGTJT.js +210 -0
- package/dist/mk-CCV_308U.cjs +2 -0
- package/dist/ms-C0cVNwky.js +210 -0
- package/dist/ms-CH83xVYN.cjs +2 -0
- package/dist/nb-DGX4q4tS.js +210 -0
- package/dist/nb-DZ-DlwcL.cjs +2 -0
- package/dist/nl-CnXZa8tZ.js +210 -0
- package/dist/nl-Xdf-A19i.cjs +2 -0
- package/dist/ordinal-BAWGEQkf.js +67 -0
- package/dist/ordinal-CL2X4e2C.cjs +2 -0
- package/dist/packet-RMMSAZCW-Bek1stRX.cjs +1 -0
- package/dist/packet-RMMSAZCW-DUN6t9lN.js +3 -0
- package/dist/path-Bt6guLtL.cjs +2 -0
- package/dist/path-DSzKK8fH.js +87 -0
- package/dist/pie-UPGHQEXC-DjqNO54R.js +3 -0
- package/dist/pie-UPGHQEXC-pJq6_YgE.cjs +1 -0
- package/dist/pieDiagram-SKSYHLDU-Ba-c0fRA.cjs +31 -0
- package/dist/pieDiagram-SKSYHLDU-ya07MTY-.js +167 -0
- package/dist/pl-BStql1S-.cjs +2 -0
- package/dist/pl-DbIdTNpg.js +210 -0
- package/dist/providers.cjs +2 -2
- package/dist/providers.d.ts +1 -0
- package/dist/providers.js +188 -252
- package/dist/pt-CcKYweQk.js +210 -0
- package/dist/pt-Dk4jELuZ.cjs +2 -0
- package/dist/quadrantDiagram-337W2JSQ-CQQEVC49.cjs +8 -0
- package/dist/quadrantDiagram-337W2JSQ-Dp_QyIEO.js +1976 -0
- package/dist/radar-KQ55EAFF-Bid2hXXI.cjs +1 -0
- package/dist/radar-KQ55EAFF-C6zhEkCz.js +3 -0
- package/dist/requirementDiagram-Z7DCOOCP-CRl2914V.js +2203 -0
- package/dist/requirementDiagram-Z7DCOOCP-CeMYhXEm.cjs +74 -0
- package/dist/ro-BvhMyTKh.cjs +2 -0
- package/dist/ro-C-8tiqgA.js +210 -0
- package/dist/rough.esm-BjJ_weyP.cjs +2 -0
- package/dist/rough.esm-DBHP55VQ.js +1354 -0
- package/dist/ru-BQosng8l.cjs +2 -0
- package/dist/ru-Dhnz96q2.js +210 -0
- package/dist/sankeyDiagram-WA2Y5GQK-BFrF47Iv.js +922 -0
- package/dist/sankeyDiagram-WA2Y5GQK-DDfjtQ4G.cjs +11 -0
- package/dist/sequenceDiagram-2WXFIKYE-B-zWyr9f.cjs +146 -0
- package/dist/sequenceDiagram-2WXFIKYE-BAd8OVlz.js +4111 -0
- package/dist/sk-BU-Z5EsC.js +210 -0
- package/dist/sk-BhA7UeAk.cjs +2 -0
- package/dist/sl-6Mczv4jG.cjs +2 -0
- package/dist/sl-CcfjJFxo.js +210 -0
- package/dist/sr-CxObZdu0.cjs +2 -0
- package/dist/sr-S53unrLA.js +210 -0
- package/dist/src-DFxq-N5I.cjs +2 -0
- package/dist/src-Dm6r9c7l.js +2148 -0
- package/dist/stateDiagram-RAJIS63D-C-tfqeC-.js +219 -0
- package/dist/stateDiagram-RAJIS63D-C1Aj8vJQ.cjs +2 -0
- package/dist/stateDiagram-v2-FVOUBMTO-C-w53gXL.js +29 -0
- package/dist/stateDiagram-v2-FVOUBMTO-VoIE_KVn.cjs +2 -0
- package/dist/sv-BfiunVuX.cjs +2 -0
- package/dist/sv-BiJrVfZr.js +210 -0
- package/dist/th-BqLGltZi.cjs +2 -0
- package/dist/th-vQ7LQ7nD.js +210 -0
- package/dist/timeline-definition-YZTLITO2-CE1y2S_r.js +832 -0
- package/dist/timeline-definition-YZTLITO2-D8aFfnYE.cjs +62 -0
- package/dist/tr-Brwl4o_Z.cjs +2 -0
- package/dist/tr-C5RrNGLz.js +210 -0
- package/dist/treemap-KZPCXAKY-D2v0uStP.cjs +1 -0
- package/dist/treemap-KZPCXAKY-DLE_f1Bk.js +3 -0
- package/dist/types/THorizontalSpacing.d.ts +0 -1
- package/dist/types/THorizontalSpacingBreakPoints.d.ts +0 -1
- package/dist/types/TPaddingBreakPoints.d.ts +0 -1
- package/dist/types/TPading.d.ts +0 -1
- package/dist/types/TVerticalSpacing.d.ts +0 -1
- package/dist/types/TVerticalSpacingBreakPoints.d.ts +0 -1
- package/dist/uk-CV49TRvS.cjs +2 -0
- package/dist/uk-WGCFH0fY.js +210 -0
- package/dist/vennDiagram-LZ73GAT5-BSpVMORX.js +1860 -0
- package/dist/vennDiagram-LZ73GAT5-DvnB0e7u.cjs +35 -0
- package/dist/vi-JzM7bjn_.cjs +2 -0
- package/dist/vi-Waa7HkXq.js +210 -0
- package/dist/xychartDiagram-JWTSCODW-0qbVGrDs.cjs +8 -0
- package/dist/xychartDiagram-JWTSCODW-DpIry-th.js +2043 -0
- package/dist/zh-BmUS7Wn_.js +210 -0
- package/dist/zh-DEm0SGzZ.cjs +2 -0
- package/package.json +7 -7
- package/dist/LocalizationProvider-BLjmybBa.cjs +0 -2
- package/dist/LocalizationProvider-BSlUf0tp.js +0 -497
- package/dist/_arrayEach-DEUflJGE.cjs +0 -2
- package/dist/_arrayEach-tusrzNIw.js +0 -61
- package/dist/ar-C1pLt8fa.js +0 -219
- package/dist/ar-Jzw7PLrc.cjs +0 -2
- package/dist/arc-CDaXffrF.cjs +0 -2
- package/dist/arc-DfZkgffF.js +0 -132
- package/dist/architecture-7HQA4BMR-BwNHkZOR.cjs +0 -2
- package/dist/architecture-7HQA4BMR-ZD14yPTj.js +0 -6
- package/dist/architectureDiagram-VXUJARFQ-C2ZHmMwH.cjs +0 -2
- package/dist/architectureDiagram-VXUJARFQ-ZqTwLC_K.js +0 -8680
- package/dist/az-C0Ow5Hxa.cjs +0 -2
- package/dist/az-C3-F9ybX.js +0 -219
- package/dist/bg-YB0TmpRF.cjs +0 -2
- package/dist/bg-w2e_udiK.js +0 -219
- package/dist/blockDiagram-VD42YOAC-De0hLG3f.cjs +0 -2
- package/dist/blockDiagram-VD42YOAC-Dik4nU5R.js +0 -3756
- package/dist/bs-BoW04lRb.cjs +0 -2
- package/dist/bs-CEe_gjEx.js +0 -219
- package/dist/c4Diagram-YG6GDRKO-B97gU-WH.cjs +0 -2
- package/dist/c4Diagram-YG6GDRKO-BG0ZffB9.js +0 -2483
- package/dist/ca-Bsy2Y5pS.cjs +0 -2
- package/dist/ca-CKpd72XI.js +0 -219
- package/dist/channel-D35vM90y.cjs +0 -2
- package/dist/channel-DjCO9_Le.js +0 -8
- package/dist/chunk-4BX2VUAB-BOD7DqfU.cjs +0 -2
- package/dist/chunk-4BX2VUAB-ahGWfN9s.js +0 -18
- package/dist/chunk-55IACEB6-BE4LiqRj.js +0 -14
- package/dist/chunk-55IACEB6-aYtTY_gp.cjs +0 -2
- package/dist/chunk-B4BG7PRW-D7Ivw3g-.cjs +0 -2
- package/dist/chunk-B4BG7PRW-l_C90AO9.js +0 -1828
- package/dist/chunk-DI55MBZ5-CML-bpvH.cjs +0 -2
- package/dist/chunk-DI55MBZ5-CkzP_mAJ.js +0 -1928
- package/dist/chunk-FMBD7UC4-up_42EsF.cjs +0 -2
- package/dist/chunk-QN33PNHL-BQktMy72.js +0 -26
- package/dist/chunk-QN33PNHL-D3tw3Y1o.cjs +0 -2
- package/dist/chunk-QZHKN3VN-OgubCPUl.cjs +0 -2
- package/dist/chunk-QZHKN3VN-VbliCc4p.js +0 -18
- package/dist/chunk-TZMSLE5B-B2adgZpn.cjs +0 -2
- package/dist/chunk-TZMSLE5B-ogHnlNAL.js +0 -109
- package/dist/classDiagram-2ON5EDUG-DV3kGCmC.cjs +0 -2
- package/dist/classDiagram-2ON5EDUG-NFuoveOc.js +0 -20
- package/dist/classDiagram-v2-WZHVMYZB-DV3kGCmC.cjs +0 -2
- package/dist/classDiagram-v2-WZHVMYZB-NFuoveOc.js +0 -20
- package/dist/cose-bilkent-S5V4N54A-C1H2cJER.cjs +0 -2
- package/dist/cose-bilkent-S5V4N54A-CFFp3u42.js +0 -4934
- package/dist/cs-D-801PIR.cjs +0 -2
- package/dist/cs-DQvRPciB.js +0 -219
- package/dist/cy-BxyJCM05.js +0 -219
- package/dist/cy-aUPUcn-S.cjs +0 -2
- package/dist/cytoscape.esm-BS1owLay.js +0 -30250
- package/dist/cytoscape.esm-BxB3woZB.cjs +0 -10
- package/dist/da-B05ad5Iq.js +0 -219
- package/dist/da-CTiLOqut.cjs +0 -2
- package/dist/dagre-6UL2VRFP-BbRK6OVd.js +0 -696
- package/dist/dagre-6UL2VRFP-DceBzHY0.cjs +0 -2
- package/dist/de-DJ5iwpd7.js +0 -219
- package/dist/de-Dm204UMA.cjs +0 -2
- package/dist/defaultLocale-7NeEK7SF.cjs +0 -2
- package/dist/defaultLocale-DVr69WTU.js +0 -207
- package/dist/diagram-PSM6KHXK-CCRrPaN5.js +0 -848
- package/dist/diagram-PSM6KHXK-Dap3wmh3.cjs +0 -2
- package/dist/diagram-QEK2KX5R-CwkM4da6.js +0 -305
- package/dist/diagram-QEK2KX5R-CycnDjjr.cjs +0 -2
- package/dist/diagram-S2PKOQOG-BjWuQflk.js +0 -212
- package/dist/diagram-S2PKOQOG-C8bvmCRh.cjs +0 -2
- package/dist/el-CBS9mHS3.js +0 -219
- package/dist/el-DbtZj-ph.cjs +0 -2
- package/dist/erDiagram-Q2GNP2WA-CVwE6kCH.cjs +0 -2
- package/dist/erDiagram-Q2GNP2WA-DK_cVUc0.js +0 -1160
- package/dist/es-Bo08apQr.js +0 -219
- package/dist/es-Cc-4Vqf7.cjs +0 -2
- package/dist/et-D5pQ66eY.cjs +0 -2
- package/dist/et-pRL0Tmle.js +0 -219
- package/dist/eu-Br68gaf7.js +0 -219
- package/dist/eu-RZ-27koK.cjs +0 -2
- package/dist/fi-BCXB-k_X.js +0 -219
- package/dist/fi-Dqa9mgnW.cjs +0 -2
- package/dist/flowDiagram-NV44I4VS-BC9ZXfqx.js +0 -2339
- package/dist/flowDiagram-NV44I4VS-BmvwN_Qr.cjs +0 -2
- package/dist/fr-B7fhkle4.cjs +0 -2
- package/dist/fr-gKE1SSIF.js +0 -219
- package/dist/ga-4Hf7vKvr.cjs +0 -2
- package/dist/ga-C1SpITZy.js +0 -219
- package/dist/ganttDiagram-JELNMOA3-Cxvs4xUM.cjs +0 -2
- package/dist/ganttDiagram-JELNMOA3-DCPYcGQ7.js +0 -3652
- package/dist/gitGraph-G5XIXVHT-CGc4Dw_9.cjs +0 -2
- package/dist/gitGraph-G5XIXVHT-D2TpybaV.js +0 -6
- package/dist/gitGraphDiagram-V2S2FVAM-BLwOtAPI.js +0 -1215
- package/dist/gitGraphDiagram-V2S2FVAM-CxKeCiX6.cjs +0 -2
- package/dist/gl-COSpsMSK.cjs +0 -2
- package/dist/gl-CSzCeu2L.js +0 -219
- package/dist/graph-C7xixGrW.cjs +0 -2
- package/dist/graph-DH3cnEko.js +0 -421
- package/dist/he-BrkfqoIm.js +0 -219
- package/dist/he-C7Wi6-EL.cjs +0 -2
- package/dist/hi-C1RGDPzn.js +0 -219
- package/dist/hi-ojklJj-a.cjs +0 -2
- package/dist/hr-CsO_h2VT.js +0 -219
- package/dist/hr-DkEwOCGU.cjs +0 -2
- package/dist/hu-CVtbM-V2.js +0 -219
- package/dist/hu-D8uAAzvN.cjs +0 -2
- package/dist/id-18yPGK2f.cjs +0 -2
- package/dist/id-CARSN0W8.js +0 -219
- package/dist/index-Bo3Feswn.js +0 -55587
- package/dist/index-C6Yk2BjU.cjs +0 -428
- package/dist/info-VBDWY6EO-Bp4BP7Eb.js +0 -6
- package/dist/info-VBDWY6EO-dcVOFyXm.cjs +0 -2
- package/dist/infoDiagram-HS3SLOUP-BH_AfMqs.js +0 -32
- package/dist/infoDiagram-HS3SLOUP-BZqbkXM8.cjs +0 -2
- package/dist/init-DZ96s0AS.cjs +0 -2
- package/dist/init-ZxktEp_H.js +0 -17
- package/dist/it-BVq911RW.cjs +0 -2
- package/dist/it-ClWGK7XT.js +0 -219
- package/dist/ja-BgcKuKZ4.cjs +0 -2
- package/dist/ja-DGL12HwE.js +0 -219
- package/dist/journeyDiagram-XKPGCS4Q-B6LA5FxS.js +0 -1255
- package/dist/journeyDiagram-XKPGCS4Q-D738Gof9.cjs +0 -2
- package/dist/kanban-definition-3W4ZIXB7-BiudWCGQ.js +0 -1049
- package/dist/kanban-definition-3W4ZIXB7-CYpFGeof.cjs +0 -2
- package/dist/katex-DPu4QpBP.cjs +0 -2
- package/dist/katex-Dd1-wdX2.js +0 -14523
- package/dist/kk-CkKXbKso.js +0 -219
- package/dist/kk-Dn3FBkOR.cjs +0 -2
- package/dist/ko-CKAbV25b.cjs +0 -2
- package/dist/ko-QYvDV2aw.js +0 -219
- package/dist/layout-D6yO7DzL.cjs +0 -2
- package/dist/layout-bxkZz7Cm.js +0 -1919
- package/dist/linear-CsAdQFhD.js +0 -341
- package/dist/linear-Cu3RCqOH.cjs +0 -2
- package/dist/lt-BKnFyiLV.js +0 -219
- package/dist/lt-BnGNEsIS.cjs +0 -2
- package/dist/lv-Clqo0Ogm.js +0 -219
- package/dist/lv-D3rJQRhc.cjs +0 -2
- package/dist/maplibre-gl-Bu4KbMVz.js +0 -23511
- package/dist/maplibre-gl-oIss86aW.cjs +0 -6
- package/dist/mermaid-parser.core-BeAFxlhX.cjs +0 -2
- package/dist/mermaid-parser.core-EaBMrmE0.js +0 -23731
- package/dist/mindmap-definition-VGOIOE7T-BdPsEBSQ.cjs +0 -2
- package/dist/mindmap-definition-VGOIOE7T-CV_iinaV.js +0 -1129
- package/dist/mk-EhcD0RzW.js +0 -219
- package/dist/mk-hVxJgrE0.cjs +0 -2
- package/dist/ms-CJACwjo7.js +0 -219
- package/dist/ms-D0txYckK.cjs +0 -2
- package/dist/nb-BfKRl99z.cjs +0 -2
- package/dist/nb-NCgnP0Pu.js +0 -219
- package/dist/nl-EgsNCunP.js +0 -219
- package/dist/nl-ZXiLkBj_.cjs +0 -2
- package/dist/ordinal-BZdahNih.cjs +0 -2
- package/dist/ordinal-DSZU4PqD.js +0 -77
- package/dist/packet-DYOGHKS2-CxyBgIUF.js +0 -6
- package/dist/packet-DYOGHKS2-lB1ZNdq9.cjs +0 -2
- package/dist/pie-VRWISCQL-CvTcddz_.cjs +0 -2
- package/dist/pie-VRWISCQL-yxV8OJyl.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-B0W0v6lo.cjs +0 -2
- package/dist/pieDiagram-ADFJNKIX-CkAS8Z8i.js +0 -238
- package/dist/pl-H28GVtiG.js +0 -219
- package/dist/pl-tVjdYTB9.cjs +0 -2
- package/dist/pt-1k62N9F3.cjs +0 -2
- package/dist/pt-BSPZhWKl.js +0 -211
- package/dist/quadrantDiagram-AYHSOK5B-Bzqn0a-l.js +0 -1338
- package/dist/quadrantDiagram-AYHSOK5B-SWF7EmO_.cjs +0 -2
- package/dist/radar-ZZBFDIW7-Cx_1gtna.js +0 -6
- package/dist/radar-ZZBFDIW7-Dt6yDSJ-.cjs +0 -2
- package/dist/requirementDiagram-UZGBJVZJ-CG-2-gxk.cjs +0 -2
- package/dist/requirementDiagram-UZGBJVZJ-DYGD-StR.js +0 -1164
- package/dist/ro-9Qt1qDDA.cjs +0 -2
- package/dist/ro-BpaZLre_.js +0 -219
- package/dist/ru-4WxRouIU.cjs +0 -2
- package/dist/ru-CUZzD-Tx.js +0 -219
- package/dist/sankeyDiagram-TZEHDZUN-DhUxbYSw.js +0 -1194
- package/dist/sankeyDiagram-TZEHDZUN-sLCJH1s2.cjs +0 -2
- package/dist/sequenceDiagram-WL72ISMW--4TVFyeB.js +0 -3882
- package/dist/sequenceDiagram-WL72ISMW-CFPZgLxH.cjs +0 -2
- package/dist/sk-CoQ6XiCY.js +0 -219
- package/dist/sk-uWukDQab.cjs +0 -2
- package/dist/sl-B6DVbKg6.cjs +0 -2
- package/dist/sl-CHW-ZGol.js +0 -219
- package/dist/sr-BOD8Tc-D.cjs +0 -2
- package/dist/sr-EQGjIBJE.js +0 -219
- package/dist/stateDiagram-FKZM4ZOC-CF_Lwk8j.js +0 -449
- package/dist/stateDiagram-FKZM4ZOC-D8CSpH_U.cjs +0 -2
- package/dist/stateDiagram-v2-4FDKWEC3-BDRDUNPf.cjs +0 -2
- package/dist/stateDiagram-v2-4FDKWEC3-BavZNkxV.js +0 -20
- package/dist/sv-B6nLuQr7.cjs +0 -2
- package/dist/sv-DTxWN6ED.js +0 -219
- package/dist/th-BVPzHvBf.js +0 -219
- package/dist/th-DmULV6uT.cjs +0 -2
- package/dist/timeline-definition-IT6M3QCI-DVBW6O_2.cjs +0 -2
- package/dist/timeline-definition-IT6M3QCI-Du5tfms8.js +0 -1227
- package/dist/tr-BE5geTUC.cjs +0 -2
- package/dist/tr-BHR1QA-D.js +0 -219
- package/dist/treemap-GDKQZRPO-7BeIVnJ2.cjs +0 -2
- package/dist/treemap-GDKQZRPO-Dc6Nwpnf.js +0 -6
- package/dist/uk-Bc5TwelE.js +0 -219
- package/dist/uk-DS5ukB_-.cjs +0 -2
- package/dist/vi-D9FF4kkG.cjs +0 -2
- package/dist/vi-DC0eQZb7.js +0 -219
- package/dist/xychartDiagram-PRI3JC2R-BMoq4LTz.js +0 -1887
- package/dist/xychartDiagram-PRI3JC2R-BbGEetiQ.cjs +0 -2
- package/dist/zh-CGcOiJ3s.cjs +0 -2
- package/dist/zh-GsCLn8OE.js +0 -219
|
@@ -1,848 +0,0 @@
|
|
|
1
|
-
var _a;
|
|
2
|
-
import { _ as __name, F as cleanAndMerge, G as getConfig, K as selectSvgElement, e as configureSvgSize, l as log, b4 as styles2String, d as select, b as setAccTitle, a as getAccTitle, q as setDiagramTitle, t as getDiagramTitle, g as getAccDescription, s as setAccDescription, H as defaultConfig_default, b5 as isLabelStyle, z as clear } from "./index-Bo3Feswn.js";
|
|
3
|
-
import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-BQktMy72.js";
|
|
4
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-ahGWfN9s.js";
|
|
5
|
-
import { p as parse } from "./mermaid-parser.core-EaBMrmE0.js";
|
|
6
|
-
import { b as format } from "./defaultLocale-DVr69WTU.js";
|
|
7
|
-
import { o as ordinal } from "./ordinal-DSZU4PqD.js";
|
|
8
|
-
function count(node) {
|
|
9
|
-
var sum = 0, children = node.children, i = children && children.length;
|
|
10
|
-
if (!i) sum = 1;
|
|
11
|
-
else while (--i >= 0) sum += children[i].value;
|
|
12
|
-
node.value = sum;
|
|
13
|
-
}
|
|
14
|
-
function node_count() {
|
|
15
|
-
return this.eachAfter(count);
|
|
16
|
-
}
|
|
17
|
-
function node_each(callback, that) {
|
|
18
|
-
let index = -1;
|
|
19
|
-
for (const node of this) {
|
|
20
|
-
callback.call(that, node, ++index, this);
|
|
21
|
-
}
|
|
22
|
-
return this;
|
|
23
|
-
}
|
|
24
|
-
function node_eachBefore(callback, that) {
|
|
25
|
-
var node = this, nodes = [node], children, i, index = -1;
|
|
26
|
-
while (node = nodes.pop()) {
|
|
27
|
-
callback.call(that, node, ++index, this);
|
|
28
|
-
if (children = node.children) {
|
|
29
|
-
for (i = children.length - 1; i >= 0; --i) {
|
|
30
|
-
nodes.push(children[i]);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return this;
|
|
35
|
-
}
|
|
36
|
-
function node_eachAfter(callback, that) {
|
|
37
|
-
var node = this, nodes = [node], next = [], children, i, n, index = -1;
|
|
38
|
-
while (node = nodes.pop()) {
|
|
39
|
-
next.push(node);
|
|
40
|
-
if (children = node.children) {
|
|
41
|
-
for (i = 0, n = children.length; i < n; ++i) {
|
|
42
|
-
nodes.push(children[i]);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
while (node = next.pop()) {
|
|
47
|
-
callback.call(that, node, ++index, this);
|
|
48
|
-
}
|
|
49
|
-
return this;
|
|
50
|
-
}
|
|
51
|
-
function node_find(callback, that) {
|
|
52
|
-
let index = -1;
|
|
53
|
-
for (const node of this) {
|
|
54
|
-
if (callback.call(that, node, ++index, this)) {
|
|
55
|
-
return node;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function node_sum(value) {
|
|
60
|
-
return this.eachAfter(function(node) {
|
|
61
|
-
var sum = +value(node.data) || 0, children = node.children, i = children && children.length;
|
|
62
|
-
while (--i >= 0) sum += children[i].value;
|
|
63
|
-
node.value = sum;
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function node_sort(compare) {
|
|
67
|
-
return this.eachBefore(function(node) {
|
|
68
|
-
if (node.children) {
|
|
69
|
-
node.children.sort(compare);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function node_path(end) {
|
|
74
|
-
var start = this, ancestor = leastCommonAncestor(start, end), nodes = [start];
|
|
75
|
-
while (start !== ancestor) {
|
|
76
|
-
start = start.parent;
|
|
77
|
-
nodes.push(start);
|
|
78
|
-
}
|
|
79
|
-
var k = nodes.length;
|
|
80
|
-
while (end !== ancestor) {
|
|
81
|
-
nodes.splice(k, 0, end);
|
|
82
|
-
end = end.parent;
|
|
83
|
-
}
|
|
84
|
-
return nodes;
|
|
85
|
-
}
|
|
86
|
-
function leastCommonAncestor(a, b) {
|
|
87
|
-
if (a === b) return a;
|
|
88
|
-
var aNodes = a.ancestors(), bNodes = b.ancestors(), c = null;
|
|
89
|
-
a = aNodes.pop();
|
|
90
|
-
b = bNodes.pop();
|
|
91
|
-
while (a === b) {
|
|
92
|
-
c = a;
|
|
93
|
-
a = aNodes.pop();
|
|
94
|
-
b = bNodes.pop();
|
|
95
|
-
}
|
|
96
|
-
return c;
|
|
97
|
-
}
|
|
98
|
-
function node_ancestors() {
|
|
99
|
-
var node = this, nodes = [node];
|
|
100
|
-
while (node = node.parent) {
|
|
101
|
-
nodes.push(node);
|
|
102
|
-
}
|
|
103
|
-
return nodes;
|
|
104
|
-
}
|
|
105
|
-
function node_descendants() {
|
|
106
|
-
return Array.from(this);
|
|
107
|
-
}
|
|
108
|
-
function node_leaves() {
|
|
109
|
-
var leaves = [];
|
|
110
|
-
this.eachBefore(function(node) {
|
|
111
|
-
if (!node.children) {
|
|
112
|
-
leaves.push(node);
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
return leaves;
|
|
116
|
-
}
|
|
117
|
-
function node_links() {
|
|
118
|
-
var root = this, links = [];
|
|
119
|
-
root.each(function(node) {
|
|
120
|
-
if (node !== root) {
|
|
121
|
-
links.push({ source: node.parent, target: node });
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
return links;
|
|
125
|
-
}
|
|
126
|
-
function* node_iterator() {
|
|
127
|
-
var node = this, current, next = [node], children, i, n;
|
|
128
|
-
do {
|
|
129
|
-
current = next.reverse(), next = [];
|
|
130
|
-
while (node = current.pop()) {
|
|
131
|
-
yield node;
|
|
132
|
-
if (children = node.children) {
|
|
133
|
-
for (i = 0, n = children.length; i < n; ++i) {
|
|
134
|
-
next.push(children[i]);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
} while (next.length);
|
|
139
|
-
}
|
|
140
|
-
function hierarchy(data, children) {
|
|
141
|
-
if (data instanceof Map) {
|
|
142
|
-
data = [void 0, data];
|
|
143
|
-
if (children === void 0) children = mapChildren;
|
|
144
|
-
} else if (children === void 0) {
|
|
145
|
-
children = objectChildren;
|
|
146
|
-
}
|
|
147
|
-
var root = new Node(data), node, nodes = [root], child, childs, i, n;
|
|
148
|
-
while (node = nodes.pop()) {
|
|
149
|
-
if ((childs = children(node.data)) && (n = (childs = Array.from(childs)).length)) {
|
|
150
|
-
node.children = childs;
|
|
151
|
-
for (i = n - 1; i >= 0; --i) {
|
|
152
|
-
nodes.push(child = childs[i] = new Node(childs[i]));
|
|
153
|
-
child.parent = node;
|
|
154
|
-
child.depth = node.depth + 1;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
return root.eachBefore(computeHeight);
|
|
159
|
-
}
|
|
160
|
-
function node_copy() {
|
|
161
|
-
return hierarchy(this).eachBefore(copyData);
|
|
162
|
-
}
|
|
163
|
-
function objectChildren(d) {
|
|
164
|
-
return d.children;
|
|
165
|
-
}
|
|
166
|
-
function mapChildren(d) {
|
|
167
|
-
return Array.isArray(d) ? d[1] : null;
|
|
168
|
-
}
|
|
169
|
-
function copyData(node) {
|
|
170
|
-
if (node.data.value !== void 0) node.value = node.data.value;
|
|
171
|
-
node.data = node.data.data;
|
|
172
|
-
}
|
|
173
|
-
function computeHeight(node) {
|
|
174
|
-
var height = 0;
|
|
175
|
-
do
|
|
176
|
-
node.height = height;
|
|
177
|
-
while ((node = node.parent) && node.height < ++height);
|
|
178
|
-
}
|
|
179
|
-
function Node(data) {
|
|
180
|
-
this.data = data;
|
|
181
|
-
this.depth = this.height = 0;
|
|
182
|
-
this.parent = null;
|
|
183
|
-
}
|
|
184
|
-
Node.prototype = hierarchy.prototype = {
|
|
185
|
-
constructor: Node,
|
|
186
|
-
count: node_count,
|
|
187
|
-
each: node_each,
|
|
188
|
-
eachAfter: node_eachAfter,
|
|
189
|
-
eachBefore: node_eachBefore,
|
|
190
|
-
find: node_find,
|
|
191
|
-
sum: node_sum,
|
|
192
|
-
sort: node_sort,
|
|
193
|
-
path: node_path,
|
|
194
|
-
ancestors: node_ancestors,
|
|
195
|
-
descendants: node_descendants,
|
|
196
|
-
leaves: node_leaves,
|
|
197
|
-
links: node_links,
|
|
198
|
-
copy: node_copy,
|
|
199
|
-
[Symbol.iterator]: node_iterator
|
|
200
|
-
};
|
|
201
|
-
function required(f) {
|
|
202
|
-
if (typeof f !== "function") throw new Error();
|
|
203
|
-
return f;
|
|
204
|
-
}
|
|
205
|
-
function constantZero() {
|
|
206
|
-
return 0;
|
|
207
|
-
}
|
|
208
|
-
function constant(x) {
|
|
209
|
-
return function() {
|
|
210
|
-
return x;
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
function roundNode(node) {
|
|
214
|
-
node.x0 = Math.round(node.x0);
|
|
215
|
-
node.y0 = Math.round(node.y0);
|
|
216
|
-
node.x1 = Math.round(node.x1);
|
|
217
|
-
node.y1 = Math.round(node.y1);
|
|
218
|
-
}
|
|
219
|
-
function treemapDice(parent, x0, y0, x1, y1) {
|
|
220
|
-
var nodes = parent.children, node, i = -1, n = nodes.length, k = parent.value && (x1 - x0) / parent.value;
|
|
221
|
-
while (++i < n) {
|
|
222
|
-
node = nodes[i], node.y0 = y0, node.y1 = y1;
|
|
223
|
-
node.x0 = x0, node.x1 = x0 += node.value * k;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
function treemapSlice(parent, x0, y0, x1, y1) {
|
|
227
|
-
var nodes = parent.children, node, i = -1, n = nodes.length, k = parent.value && (y1 - y0) / parent.value;
|
|
228
|
-
while (++i < n) {
|
|
229
|
-
node = nodes[i], node.x0 = x0, node.x1 = x1;
|
|
230
|
-
node.y0 = y0, node.y1 = y0 += node.value * k;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
var phi = (1 + Math.sqrt(5)) / 2;
|
|
234
|
-
function squarifyRatio(ratio, parent, x0, y0, x1, y1) {
|
|
235
|
-
var rows = [], nodes = parent.children, row, nodeValue, i0 = 0, i1 = 0, n = nodes.length, dx, dy, value = parent.value, sumValue, minValue, maxValue, newRatio, minRatio, alpha, beta;
|
|
236
|
-
while (i0 < n) {
|
|
237
|
-
dx = x1 - x0, dy = y1 - y0;
|
|
238
|
-
do
|
|
239
|
-
sumValue = nodes[i1++].value;
|
|
240
|
-
while (!sumValue && i1 < n);
|
|
241
|
-
minValue = maxValue = sumValue;
|
|
242
|
-
alpha = Math.max(dy / dx, dx / dy) / (value * ratio);
|
|
243
|
-
beta = sumValue * sumValue * alpha;
|
|
244
|
-
minRatio = Math.max(maxValue / beta, beta / minValue);
|
|
245
|
-
for (; i1 < n; ++i1) {
|
|
246
|
-
sumValue += nodeValue = nodes[i1].value;
|
|
247
|
-
if (nodeValue < minValue) minValue = nodeValue;
|
|
248
|
-
if (nodeValue > maxValue) maxValue = nodeValue;
|
|
249
|
-
beta = sumValue * sumValue * alpha;
|
|
250
|
-
newRatio = Math.max(maxValue / beta, beta / minValue);
|
|
251
|
-
if (newRatio > minRatio) {
|
|
252
|
-
sumValue -= nodeValue;
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
minRatio = newRatio;
|
|
256
|
-
}
|
|
257
|
-
rows.push(row = { value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1) });
|
|
258
|
-
if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);
|
|
259
|
-
else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);
|
|
260
|
-
value -= sumValue, i0 = i1;
|
|
261
|
-
}
|
|
262
|
-
return rows;
|
|
263
|
-
}
|
|
264
|
-
const squarify = function custom(ratio) {
|
|
265
|
-
function squarify2(parent, x0, y0, x1, y1) {
|
|
266
|
-
squarifyRatio(ratio, parent, x0, y0, x1, y1);
|
|
267
|
-
}
|
|
268
|
-
squarify2.ratio = function(x) {
|
|
269
|
-
return custom((x = +x) > 1 ? x : 1);
|
|
270
|
-
};
|
|
271
|
-
return squarify2;
|
|
272
|
-
}(phi);
|
|
273
|
-
function treemap() {
|
|
274
|
-
var tile = squarify, round = false, dx = 1, dy = 1, paddingStack = [0], paddingInner = constantZero, paddingTop = constantZero, paddingRight = constantZero, paddingBottom = constantZero, paddingLeft = constantZero;
|
|
275
|
-
function treemap2(root) {
|
|
276
|
-
root.x0 = root.y0 = 0;
|
|
277
|
-
root.x1 = dx;
|
|
278
|
-
root.y1 = dy;
|
|
279
|
-
root.eachBefore(positionNode);
|
|
280
|
-
paddingStack = [0];
|
|
281
|
-
if (round) root.eachBefore(roundNode);
|
|
282
|
-
return root;
|
|
283
|
-
}
|
|
284
|
-
function positionNode(node) {
|
|
285
|
-
var p = paddingStack[node.depth], x0 = node.x0 + p, y0 = node.y0 + p, x1 = node.x1 - p, y1 = node.y1 - p;
|
|
286
|
-
if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
|
|
287
|
-
if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
|
|
288
|
-
node.x0 = x0;
|
|
289
|
-
node.y0 = y0;
|
|
290
|
-
node.x1 = x1;
|
|
291
|
-
node.y1 = y1;
|
|
292
|
-
if (node.children) {
|
|
293
|
-
p = paddingStack[node.depth + 1] = paddingInner(node) / 2;
|
|
294
|
-
x0 += paddingLeft(node) - p;
|
|
295
|
-
y0 += paddingTop(node) - p;
|
|
296
|
-
x1 -= paddingRight(node) - p;
|
|
297
|
-
y1 -= paddingBottom(node) - p;
|
|
298
|
-
if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
|
|
299
|
-
if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
|
|
300
|
-
tile(node, x0, y0, x1, y1);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
treemap2.round = function(x) {
|
|
304
|
-
return arguments.length ? (round = !!x, treemap2) : round;
|
|
305
|
-
};
|
|
306
|
-
treemap2.size = function(x) {
|
|
307
|
-
return arguments.length ? (dx = +x[0], dy = +x[1], treemap2) : [dx, dy];
|
|
308
|
-
};
|
|
309
|
-
treemap2.tile = function(x) {
|
|
310
|
-
return arguments.length ? (tile = required(x), treemap2) : tile;
|
|
311
|
-
};
|
|
312
|
-
treemap2.padding = function(x) {
|
|
313
|
-
return arguments.length ? treemap2.paddingInner(x).paddingOuter(x) : treemap2.paddingInner();
|
|
314
|
-
};
|
|
315
|
-
treemap2.paddingInner = function(x) {
|
|
316
|
-
return arguments.length ? (paddingInner = typeof x === "function" ? x : constant(+x), treemap2) : paddingInner;
|
|
317
|
-
};
|
|
318
|
-
treemap2.paddingOuter = function(x) {
|
|
319
|
-
return arguments.length ? treemap2.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap2.paddingTop();
|
|
320
|
-
};
|
|
321
|
-
treemap2.paddingTop = function(x) {
|
|
322
|
-
return arguments.length ? (paddingTop = typeof x === "function" ? x : constant(+x), treemap2) : paddingTop;
|
|
323
|
-
};
|
|
324
|
-
treemap2.paddingRight = function(x) {
|
|
325
|
-
return arguments.length ? (paddingRight = typeof x === "function" ? x : constant(+x), treemap2) : paddingRight;
|
|
326
|
-
};
|
|
327
|
-
treemap2.paddingBottom = function(x) {
|
|
328
|
-
return arguments.length ? (paddingBottom = typeof x === "function" ? x : constant(+x), treemap2) : paddingBottom;
|
|
329
|
-
};
|
|
330
|
-
treemap2.paddingLeft = function(x) {
|
|
331
|
-
return arguments.length ? (paddingLeft = typeof x === "function" ? x : constant(+x), treemap2) : paddingLeft;
|
|
332
|
-
};
|
|
333
|
-
return treemap2;
|
|
334
|
-
}
|
|
335
|
-
var TreeMapDB = (_a = class {
|
|
336
|
-
constructor() {
|
|
337
|
-
this.nodes = [];
|
|
338
|
-
this.levels = /* @__PURE__ */ new Map();
|
|
339
|
-
this.outerNodes = [];
|
|
340
|
-
this.classes = /* @__PURE__ */ new Map();
|
|
341
|
-
this.setAccTitle = setAccTitle;
|
|
342
|
-
this.getAccTitle = getAccTitle;
|
|
343
|
-
this.setDiagramTitle = setDiagramTitle;
|
|
344
|
-
this.getDiagramTitle = getDiagramTitle;
|
|
345
|
-
this.getAccDescription = getAccDescription;
|
|
346
|
-
this.setAccDescription = setAccDescription;
|
|
347
|
-
}
|
|
348
|
-
getNodes() {
|
|
349
|
-
return this.nodes;
|
|
350
|
-
}
|
|
351
|
-
getConfig() {
|
|
352
|
-
const defaultConfig = defaultConfig_default;
|
|
353
|
-
const userConfig = getConfig();
|
|
354
|
-
return cleanAndMerge({
|
|
355
|
-
...defaultConfig.treemap,
|
|
356
|
-
...userConfig.treemap ?? {}
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
addNode(node, level) {
|
|
360
|
-
this.nodes.push(node);
|
|
361
|
-
this.levels.set(node, level);
|
|
362
|
-
if (level === 0) {
|
|
363
|
-
this.outerNodes.push(node);
|
|
364
|
-
this.root ?? (this.root = node);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
getRoot() {
|
|
368
|
-
return { name: "", children: this.outerNodes };
|
|
369
|
-
}
|
|
370
|
-
addClass(id, _style) {
|
|
371
|
-
const styleClass = this.classes.get(id) ?? { id, styles: [], textStyles: [] };
|
|
372
|
-
const styles = _style.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
|
|
373
|
-
if (styles) {
|
|
374
|
-
styles.forEach((s) => {
|
|
375
|
-
if (isLabelStyle(s)) {
|
|
376
|
-
if (styleClass == null ? void 0 : styleClass.textStyles) {
|
|
377
|
-
styleClass.textStyles.push(s);
|
|
378
|
-
} else {
|
|
379
|
-
styleClass.textStyles = [s];
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
if (styleClass == null ? void 0 : styleClass.styles) {
|
|
383
|
-
styleClass.styles.push(s);
|
|
384
|
-
} else {
|
|
385
|
-
styleClass.styles = [s];
|
|
386
|
-
}
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
this.classes.set(id, styleClass);
|
|
390
|
-
}
|
|
391
|
-
getClasses() {
|
|
392
|
-
return this.classes;
|
|
393
|
-
}
|
|
394
|
-
getStylesForClass(classSelector) {
|
|
395
|
-
var _a2;
|
|
396
|
-
return ((_a2 = this.classes.get(classSelector)) == null ? void 0 : _a2.styles) ?? [];
|
|
397
|
-
}
|
|
398
|
-
clear() {
|
|
399
|
-
clear();
|
|
400
|
-
this.nodes = [];
|
|
401
|
-
this.levels = /* @__PURE__ */ new Map();
|
|
402
|
-
this.outerNodes = [];
|
|
403
|
-
this.classes = /* @__PURE__ */ new Map();
|
|
404
|
-
this.root = void 0;
|
|
405
|
-
}
|
|
406
|
-
}, __name(_a, "TreeMapDB"), _a);
|
|
407
|
-
function buildHierarchy(items) {
|
|
408
|
-
if (!items.length) {
|
|
409
|
-
return [];
|
|
410
|
-
}
|
|
411
|
-
const root = [];
|
|
412
|
-
const stack = [];
|
|
413
|
-
items.forEach((item) => {
|
|
414
|
-
const node = {
|
|
415
|
-
name: item.name,
|
|
416
|
-
children: item.type === "Leaf" ? void 0 : []
|
|
417
|
-
};
|
|
418
|
-
node.classSelector = item == null ? void 0 : item.classSelector;
|
|
419
|
-
if (item == null ? void 0 : item.cssCompiledStyles) {
|
|
420
|
-
node.cssCompiledStyles = [item.cssCompiledStyles];
|
|
421
|
-
}
|
|
422
|
-
if (item.type === "Leaf" && item.value !== void 0) {
|
|
423
|
-
node.value = item.value;
|
|
424
|
-
}
|
|
425
|
-
while (stack.length > 0 && stack[stack.length - 1].level >= item.level) {
|
|
426
|
-
stack.pop();
|
|
427
|
-
}
|
|
428
|
-
if (stack.length === 0) {
|
|
429
|
-
root.push(node);
|
|
430
|
-
} else {
|
|
431
|
-
const parent = stack[stack.length - 1].node;
|
|
432
|
-
if (parent.children) {
|
|
433
|
-
parent.children.push(node);
|
|
434
|
-
} else {
|
|
435
|
-
parent.children = [node];
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
if (item.type !== "Leaf") {
|
|
439
|
-
stack.push({ node, level: item.level });
|
|
440
|
-
}
|
|
441
|
-
});
|
|
442
|
-
return root;
|
|
443
|
-
}
|
|
444
|
-
__name(buildHierarchy, "buildHierarchy");
|
|
445
|
-
var populate = /* @__PURE__ */ __name((ast, db) => {
|
|
446
|
-
populateCommonDb(ast, db);
|
|
447
|
-
const items = [];
|
|
448
|
-
for (const row of ast.TreemapRows ?? []) {
|
|
449
|
-
if (row.$type === "ClassDefStatement") {
|
|
450
|
-
db.addClass(row.className ?? "", row.styleText ?? "");
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
for (const row of ast.TreemapRows ?? []) {
|
|
454
|
-
const item = row.item;
|
|
455
|
-
if (!item) {
|
|
456
|
-
continue;
|
|
457
|
-
}
|
|
458
|
-
const level = row.indent ? parseInt(row.indent) : 0;
|
|
459
|
-
const name = getItemName(item);
|
|
460
|
-
const styles = item.classSelector ? db.getStylesForClass(item.classSelector) : [];
|
|
461
|
-
const cssCompiledStyles = styles.length > 0 ? styles.join(";") : void 0;
|
|
462
|
-
const itemData = {
|
|
463
|
-
level,
|
|
464
|
-
name,
|
|
465
|
-
type: item.$type,
|
|
466
|
-
value: item.value,
|
|
467
|
-
classSelector: item.classSelector,
|
|
468
|
-
cssCompiledStyles
|
|
469
|
-
};
|
|
470
|
-
items.push(itemData);
|
|
471
|
-
}
|
|
472
|
-
const hierarchyNodes = buildHierarchy(items);
|
|
473
|
-
const addNodesRecursively = /* @__PURE__ */ __name((nodes, level) => {
|
|
474
|
-
for (const node of nodes) {
|
|
475
|
-
db.addNode(node, level);
|
|
476
|
-
if (node.children && node.children.length > 0) {
|
|
477
|
-
addNodesRecursively(node.children, level + 1);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}, "addNodesRecursively");
|
|
481
|
-
addNodesRecursively(hierarchyNodes, 0);
|
|
482
|
-
}, "populate");
|
|
483
|
-
var getItemName = /* @__PURE__ */ __name((item) => {
|
|
484
|
-
return item.name ? String(item.name) : "";
|
|
485
|
-
}, "getItemName");
|
|
486
|
-
var parser = {
|
|
487
|
-
// @ts-expect-error - TreeMapDB is not assignable to DiagramDB
|
|
488
|
-
parser: { yy: void 0 },
|
|
489
|
-
parse: /* @__PURE__ */ __name(async (text) => {
|
|
490
|
-
var _a2;
|
|
491
|
-
try {
|
|
492
|
-
const parseFunc = parse;
|
|
493
|
-
const ast = await parseFunc("treemap", text);
|
|
494
|
-
log.debug("Treemap AST:", ast);
|
|
495
|
-
const db = (_a2 = parser.parser) == null ? void 0 : _a2.yy;
|
|
496
|
-
if (!(db instanceof TreeMapDB)) {
|
|
497
|
-
throw new Error(
|
|
498
|
-
"parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
|
|
499
|
-
);
|
|
500
|
-
}
|
|
501
|
-
populate(ast, db);
|
|
502
|
-
} catch (error) {
|
|
503
|
-
log.error("Error parsing treemap:", error);
|
|
504
|
-
throw error;
|
|
505
|
-
}
|
|
506
|
-
}, "parse")
|
|
507
|
-
};
|
|
508
|
-
var DEFAULT_INNER_PADDING = 10;
|
|
509
|
-
var SECTION_INNER_PADDING = 10;
|
|
510
|
-
var SECTION_HEADER_HEIGHT = 25;
|
|
511
|
-
var draw = /* @__PURE__ */ __name((_text, id, _version, diagram2) => {
|
|
512
|
-
const treemapDb = diagram2.db;
|
|
513
|
-
const config = treemapDb.getConfig();
|
|
514
|
-
const treemapInnerPadding = config.padding ?? DEFAULT_INNER_PADDING;
|
|
515
|
-
const title = treemapDb.getDiagramTitle();
|
|
516
|
-
const root = treemapDb.getRoot();
|
|
517
|
-
const { themeVariables } = getConfig();
|
|
518
|
-
if (!root) {
|
|
519
|
-
return;
|
|
520
|
-
}
|
|
521
|
-
const titleHeight = title ? 30 : 0;
|
|
522
|
-
const svg = selectSvgElement(id);
|
|
523
|
-
const width = config.nodeWidth ? config.nodeWidth * SECTION_INNER_PADDING : 960;
|
|
524
|
-
const height = config.nodeHeight ? config.nodeHeight * SECTION_INNER_PADDING : 500;
|
|
525
|
-
const svgWidth = width;
|
|
526
|
-
const svgHeight = height + titleHeight;
|
|
527
|
-
svg.attr("viewBox", `0 0 ${svgWidth} ${svgHeight}`);
|
|
528
|
-
configureSvgSize(svg, svgHeight, svgWidth, config.useMaxWidth);
|
|
529
|
-
let valueFormat;
|
|
530
|
-
try {
|
|
531
|
-
const formatStr = config.valueFormat || ",";
|
|
532
|
-
if (formatStr === "$0,0") {
|
|
533
|
-
valueFormat = /* @__PURE__ */ __name((value) => "$" + format(",")(value), "valueFormat");
|
|
534
|
-
} else if (formatStr.startsWith("$") && formatStr.includes(",")) {
|
|
535
|
-
const precision = /\.\d+/.exec(formatStr);
|
|
536
|
-
const precisionStr = precision ? precision[0] : "";
|
|
537
|
-
valueFormat = /* @__PURE__ */ __name((value) => "$" + format("," + precisionStr)(value), "valueFormat");
|
|
538
|
-
} else if (formatStr.startsWith("$")) {
|
|
539
|
-
const restOfFormat = formatStr.substring(1);
|
|
540
|
-
valueFormat = /* @__PURE__ */ __name((value) => "$" + format(restOfFormat || "")(value), "valueFormat");
|
|
541
|
-
} else {
|
|
542
|
-
valueFormat = format(formatStr);
|
|
543
|
-
}
|
|
544
|
-
} catch (error) {
|
|
545
|
-
log.error("Error creating format function:", error);
|
|
546
|
-
valueFormat = format(",");
|
|
547
|
-
}
|
|
548
|
-
const colorScale = ordinal().range([
|
|
549
|
-
"transparent",
|
|
550
|
-
themeVariables.cScale0,
|
|
551
|
-
themeVariables.cScale1,
|
|
552
|
-
themeVariables.cScale2,
|
|
553
|
-
themeVariables.cScale3,
|
|
554
|
-
themeVariables.cScale4,
|
|
555
|
-
themeVariables.cScale5,
|
|
556
|
-
themeVariables.cScale6,
|
|
557
|
-
themeVariables.cScale7,
|
|
558
|
-
themeVariables.cScale8,
|
|
559
|
-
themeVariables.cScale9,
|
|
560
|
-
themeVariables.cScale10,
|
|
561
|
-
themeVariables.cScale11
|
|
562
|
-
]);
|
|
563
|
-
const colorScalePeer = ordinal().range([
|
|
564
|
-
"transparent",
|
|
565
|
-
themeVariables.cScalePeer0,
|
|
566
|
-
themeVariables.cScalePeer1,
|
|
567
|
-
themeVariables.cScalePeer2,
|
|
568
|
-
themeVariables.cScalePeer3,
|
|
569
|
-
themeVariables.cScalePeer4,
|
|
570
|
-
themeVariables.cScalePeer5,
|
|
571
|
-
themeVariables.cScalePeer6,
|
|
572
|
-
themeVariables.cScalePeer7,
|
|
573
|
-
themeVariables.cScalePeer8,
|
|
574
|
-
themeVariables.cScalePeer9,
|
|
575
|
-
themeVariables.cScalePeer10,
|
|
576
|
-
themeVariables.cScalePeer11
|
|
577
|
-
]);
|
|
578
|
-
const colorScaleLabel = ordinal().range([
|
|
579
|
-
themeVariables.cScaleLabel0,
|
|
580
|
-
themeVariables.cScaleLabel1,
|
|
581
|
-
themeVariables.cScaleLabel2,
|
|
582
|
-
themeVariables.cScaleLabel3,
|
|
583
|
-
themeVariables.cScaleLabel4,
|
|
584
|
-
themeVariables.cScaleLabel5,
|
|
585
|
-
themeVariables.cScaleLabel6,
|
|
586
|
-
themeVariables.cScaleLabel7,
|
|
587
|
-
themeVariables.cScaleLabel8,
|
|
588
|
-
themeVariables.cScaleLabel9,
|
|
589
|
-
themeVariables.cScaleLabel10,
|
|
590
|
-
themeVariables.cScaleLabel11
|
|
591
|
-
]);
|
|
592
|
-
if (title) {
|
|
593
|
-
svg.append("text").attr("x", svgWidth / 2).attr("y", titleHeight / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(title);
|
|
594
|
-
}
|
|
595
|
-
const g = svg.append("g").attr("transform", `translate(0, ${titleHeight})`).attr("class", "treemapContainer");
|
|
596
|
-
const hierarchyRoot = hierarchy(root).sum((d) => d.value ?? 0).sort((a, b) => (b.value ?? 0) - (a.value ?? 0));
|
|
597
|
-
const treemapLayout = treemap().size([width, height]).paddingTop(
|
|
598
|
-
(d) => d.children && d.children.length > 0 ? SECTION_HEADER_HEIGHT + SECTION_INNER_PADDING : 0
|
|
599
|
-
).paddingInner(treemapInnerPadding).paddingLeft((d) => d.children && d.children.length > 0 ? SECTION_INNER_PADDING : 0).paddingRight((d) => d.children && d.children.length > 0 ? SECTION_INNER_PADDING : 0).paddingBottom((d) => d.children && d.children.length > 0 ? SECTION_INNER_PADDING : 0).round(true);
|
|
600
|
-
const treemapData = treemapLayout(hierarchyRoot);
|
|
601
|
-
const branchNodes = treemapData.descendants().filter((d) => d.children && d.children.length > 0);
|
|
602
|
-
const sections = g.selectAll(".treemapSection").data(branchNodes).enter().append("g").attr("class", "treemapSection").attr("transform", (d) => `translate(${d.x0},${d.y0})`);
|
|
603
|
-
sections.append("rect").attr("width", (d) => d.x1 - d.x0).attr("height", SECTION_HEADER_HEIGHT).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (d) => {
|
|
604
|
-
if (d.depth === 0) {
|
|
605
|
-
return "display: none;";
|
|
606
|
-
}
|
|
607
|
-
return "";
|
|
608
|
-
});
|
|
609
|
-
sections.append("clipPath").attr("id", (_d, i) => `clip-section-${id}-${i}`).append("rect").attr("width", (d) => Math.max(0, d.x1 - d.x0 - 12)).attr("height", SECTION_HEADER_HEIGHT);
|
|
610
|
-
sections.append("rect").attr("width", (d) => d.x1 - d.x0).attr("height", (d) => d.y1 - d.y0).attr("class", (_d, i) => {
|
|
611
|
-
return `treemapSection section${i}`;
|
|
612
|
-
}).attr("fill", (d) => colorScale(d.data.name)).attr("fill-opacity", 0.6).attr("stroke", (d) => colorScalePeer(d.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (d) => {
|
|
613
|
-
if (d.depth === 0) {
|
|
614
|
-
return "display: none;";
|
|
615
|
-
}
|
|
616
|
-
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
617
|
-
return styles.nodeStyles + ";" + styles.borderStyles.join(";");
|
|
618
|
-
});
|
|
619
|
-
sections.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", SECTION_HEADER_HEIGHT / 2).attr("dominant-baseline", "middle").text((d) => d.depth === 0 ? "" : d.data.name).attr("font-weight", "bold").attr("style", (d) => {
|
|
620
|
-
if (d.depth === 0) {
|
|
621
|
-
return "display: none;";
|
|
622
|
-
}
|
|
623
|
-
const labelStyles = "dominant-baseline: middle; font-size: 12px; fill:" + colorScaleLabel(d.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;";
|
|
624
|
-
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
625
|
-
return labelStyles + styles.labelStyles.replace("color:", "fill:");
|
|
626
|
-
}).each(function(d) {
|
|
627
|
-
if (d.depth === 0) {
|
|
628
|
-
return;
|
|
629
|
-
}
|
|
630
|
-
const self = select(this);
|
|
631
|
-
const originalText = d.data.name;
|
|
632
|
-
self.text(originalText);
|
|
633
|
-
const totalHeaderWidth = d.x1 - d.x0;
|
|
634
|
-
const labelXPosition = 6;
|
|
635
|
-
let spaceForTextContent;
|
|
636
|
-
if (config.showValues !== false && d.value) {
|
|
637
|
-
const valueEndsAtXRelative = totalHeaderWidth - 10;
|
|
638
|
-
const estimatedValueTextActualWidth = 30;
|
|
639
|
-
const gapBetweenLabelAndValue = 10;
|
|
640
|
-
const labelMustEndBeforeX = valueEndsAtXRelative - estimatedValueTextActualWidth - gapBetweenLabelAndValue;
|
|
641
|
-
spaceForTextContent = labelMustEndBeforeX - labelXPosition;
|
|
642
|
-
} else {
|
|
643
|
-
const labelOwnRightPadding = 6;
|
|
644
|
-
spaceForTextContent = totalHeaderWidth - labelXPosition - labelOwnRightPadding;
|
|
645
|
-
}
|
|
646
|
-
const minimumWidthToDisplay = 15;
|
|
647
|
-
const actualAvailableWidth = Math.max(minimumWidthToDisplay, spaceForTextContent);
|
|
648
|
-
const textNode = self.node();
|
|
649
|
-
const currentTextContentLength = textNode.getComputedTextLength();
|
|
650
|
-
if (currentTextContentLength > actualAvailableWidth) {
|
|
651
|
-
const ellipsis = "...";
|
|
652
|
-
let currentTruncatedText = originalText;
|
|
653
|
-
while (currentTruncatedText.length > 0) {
|
|
654
|
-
currentTruncatedText = originalText.substring(0, currentTruncatedText.length - 1);
|
|
655
|
-
if (currentTruncatedText.length === 0) {
|
|
656
|
-
self.text(ellipsis);
|
|
657
|
-
if (textNode.getComputedTextLength() > actualAvailableWidth) {
|
|
658
|
-
self.text("");
|
|
659
|
-
}
|
|
660
|
-
break;
|
|
661
|
-
}
|
|
662
|
-
self.text(currentTruncatedText + ellipsis);
|
|
663
|
-
if (textNode.getComputedTextLength() <= actualAvailableWidth) {
|
|
664
|
-
break;
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
});
|
|
669
|
-
if (config.showValues !== false) {
|
|
670
|
-
sections.append("text").attr("class", "treemapSectionValue").attr("x", (d) => d.x1 - d.x0 - 10).attr("y", SECTION_HEADER_HEIGHT / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((d) => d.value ? valueFormat(d.value) : "").attr("font-style", "italic").attr("style", (d) => {
|
|
671
|
-
if (d.depth === 0) {
|
|
672
|
-
return "display: none;";
|
|
673
|
-
}
|
|
674
|
-
const labelStyles = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + colorScaleLabel(d.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;";
|
|
675
|
-
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
676
|
-
return labelStyles + styles.labelStyles.replace("color:", "fill:");
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
const leafNodes = treemapData.leaves();
|
|
680
|
-
const cell = g.selectAll(".treemapLeafGroup").data(leafNodes).enter().append("g").attr("class", (d, i) => {
|
|
681
|
-
return `treemapNode treemapLeafGroup leaf${i}${d.data.classSelector ? ` ${d.data.classSelector}` : ""}x`;
|
|
682
|
-
}).attr("transform", (d) => `translate(${d.x0},${d.y0})`);
|
|
683
|
-
cell.append("rect").attr("width", (d) => d.x1 - d.x0).attr("height", (d) => d.y1 - d.y0).attr("class", "treemapLeaf").attr("fill", (d) => {
|
|
684
|
-
return d.parent ? colorScale(d.parent.data.name) : colorScale(d.data.name);
|
|
685
|
-
}).attr("style", (d) => {
|
|
686
|
-
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
687
|
-
return styles.nodeStyles;
|
|
688
|
-
}).attr("fill-opacity", 0.3).attr("stroke", (d) => {
|
|
689
|
-
return d.parent ? colorScale(d.parent.data.name) : colorScale(d.data.name);
|
|
690
|
-
}).attr("stroke-width", 3);
|
|
691
|
-
cell.append("clipPath").attr("id", (_d, i) => `clip-${id}-${i}`).append("rect").attr("width", (d) => Math.max(0, d.x1 - d.x0 - 4)).attr("height", (d) => Math.max(0, d.y1 - d.y0 - 4));
|
|
692
|
-
const leafLabels = cell.append("text").attr("class", "treemapLabel").attr("x", (d) => (d.x1 - d.x0) / 2).attr("y", (d) => (d.y1 - d.y0) / 2).attr("style", (d) => {
|
|
693
|
-
const labelStyles = "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + colorScaleLabel(d.data.name) + ";";
|
|
694
|
-
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
695
|
-
return labelStyles + styles.labelStyles.replace("color:", "fill:");
|
|
696
|
-
}).attr("clip-path", (_d, i) => `url(#clip-${id}-${i})`).text((d) => d.data.name);
|
|
697
|
-
leafLabels.each(function(d) {
|
|
698
|
-
const self = select(this);
|
|
699
|
-
const nodeWidth = d.x1 - d.x0;
|
|
700
|
-
const nodeHeight = d.y1 - d.y0;
|
|
701
|
-
const textNode = self.node();
|
|
702
|
-
const padding = 4;
|
|
703
|
-
const availableWidth = nodeWidth - 2 * padding;
|
|
704
|
-
const availableHeight = nodeHeight - 2 * padding;
|
|
705
|
-
if (availableWidth < 10 || availableHeight < 10) {
|
|
706
|
-
self.style("display", "none");
|
|
707
|
-
return;
|
|
708
|
-
}
|
|
709
|
-
let currentLabelFontSize = parseInt(self.style("font-size"), 10);
|
|
710
|
-
const minLabelFontSize = 8;
|
|
711
|
-
const originalValueRelFontSize = 28;
|
|
712
|
-
const valueScaleFactor = 0.6;
|
|
713
|
-
const minValueFontSize = 6;
|
|
714
|
-
const spacingBetweenLabelAndValue = 2;
|
|
715
|
-
while (textNode.getComputedTextLength() > availableWidth && currentLabelFontSize > minLabelFontSize) {
|
|
716
|
-
currentLabelFontSize--;
|
|
717
|
-
self.style("font-size", `${currentLabelFontSize}px`);
|
|
718
|
-
}
|
|
719
|
-
let prospectiveValueFontSize = Math.max(
|
|
720
|
-
minValueFontSize,
|
|
721
|
-
Math.min(originalValueRelFontSize, Math.round(currentLabelFontSize * valueScaleFactor))
|
|
722
|
-
);
|
|
723
|
-
let combinedHeight = currentLabelFontSize + spacingBetweenLabelAndValue + prospectiveValueFontSize;
|
|
724
|
-
while (combinedHeight > availableHeight && currentLabelFontSize > minLabelFontSize) {
|
|
725
|
-
currentLabelFontSize--;
|
|
726
|
-
prospectiveValueFontSize = Math.max(
|
|
727
|
-
minValueFontSize,
|
|
728
|
-
Math.min(originalValueRelFontSize, Math.round(currentLabelFontSize * valueScaleFactor))
|
|
729
|
-
);
|
|
730
|
-
if (prospectiveValueFontSize < minValueFontSize && currentLabelFontSize === minLabelFontSize) {
|
|
731
|
-
break;
|
|
732
|
-
}
|
|
733
|
-
self.style("font-size", `${currentLabelFontSize}px`);
|
|
734
|
-
combinedHeight = currentLabelFontSize + spacingBetweenLabelAndValue + prospectiveValueFontSize;
|
|
735
|
-
}
|
|
736
|
-
self.style("font-size", `${currentLabelFontSize}px`);
|
|
737
|
-
if (textNode.getComputedTextLength() > availableWidth || currentLabelFontSize < minLabelFontSize || availableHeight < currentLabelFontSize) {
|
|
738
|
-
self.style("display", "none");
|
|
739
|
-
}
|
|
740
|
-
});
|
|
741
|
-
if (config.showValues !== false) {
|
|
742
|
-
const leafValues = cell.append("text").attr("class", "treemapValue").attr("x", (d) => (d.x1 - d.x0) / 2).attr("y", function(d) {
|
|
743
|
-
return (d.y1 - d.y0) / 2;
|
|
744
|
-
}).attr("style", (d) => {
|
|
745
|
-
const labelStyles = "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + colorScaleLabel(d.data.name) + ";";
|
|
746
|
-
const styles = styles2String({ cssCompiledStyles: d.data.cssCompiledStyles });
|
|
747
|
-
return labelStyles + styles.labelStyles.replace("color:", "fill:");
|
|
748
|
-
}).attr("clip-path", (_d, i) => `url(#clip-${id}-${i})`).text((d) => d.value ? valueFormat(d.value) : "");
|
|
749
|
-
leafValues.each(function(d) {
|
|
750
|
-
const valueTextElement = select(this);
|
|
751
|
-
const parentCellNode = this.parentNode;
|
|
752
|
-
if (!parentCellNode) {
|
|
753
|
-
valueTextElement.style("display", "none");
|
|
754
|
-
return;
|
|
755
|
-
}
|
|
756
|
-
const labelElement = select(parentCellNode).select(".treemapLabel");
|
|
757
|
-
if (labelElement.empty() || labelElement.style("display") === "none") {
|
|
758
|
-
valueTextElement.style("display", "none");
|
|
759
|
-
return;
|
|
760
|
-
}
|
|
761
|
-
const finalLabelFontSize = parseFloat(labelElement.style("font-size"));
|
|
762
|
-
const originalValueFontSize = 28;
|
|
763
|
-
const valueScaleFactor = 0.6;
|
|
764
|
-
const minValueFontSize = 6;
|
|
765
|
-
const spacingBetweenLabelAndValue = 2;
|
|
766
|
-
const actualValueFontSize = Math.max(
|
|
767
|
-
minValueFontSize,
|
|
768
|
-
Math.min(originalValueFontSize, Math.round(finalLabelFontSize * valueScaleFactor))
|
|
769
|
-
);
|
|
770
|
-
valueTextElement.style("font-size", `${actualValueFontSize}px`);
|
|
771
|
-
const labelCenterY = (d.y1 - d.y0) / 2;
|
|
772
|
-
const valueTopActualY = labelCenterY + finalLabelFontSize / 2 + spacingBetweenLabelAndValue;
|
|
773
|
-
valueTextElement.attr("y", valueTopActualY);
|
|
774
|
-
const nodeWidth = d.x1 - d.x0;
|
|
775
|
-
const nodeTotalHeight = d.y1 - d.y0;
|
|
776
|
-
const cellBottomPadding = 4;
|
|
777
|
-
const maxValueBottomY = nodeTotalHeight - cellBottomPadding;
|
|
778
|
-
const availableWidthForValue = nodeWidth - 2 * 4;
|
|
779
|
-
if (valueTextElement.node().getComputedTextLength() > availableWidthForValue || valueTopActualY + actualValueFontSize > maxValueBottomY || actualValueFontSize < minValueFontSize) {
|
|
780
|
-
valueTextElement.style("display", "none");
|
|
781
|
-
} else {
|
|
782
|
-
valueTextElement.style("display", null);
|
|
783
|
-
}
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
const diagramPadding = config.diagramPadding ?? 8;
|
|
787
|
-
setupViewPortForSVG(svg, diagramPadding, "flowchart", (config == null ? void 0 : config.useMaxWidth) || false);
|
|
788
|
-
}, "draw");
|
|
789
|
-
var getClasses = /* @__PURE__ */ __name(function(_text, diagramObj) {
|
|
790
|
-
return diagramObj.db.getClasses();
|
|
791
|
-
}, "getClasses");
|
|
792
|
-
var renderer = { draw, getClasses };
|
|
793
|
-
var defaultTreemapStyleOptions = {
|
|
794
|
-
sectionStrokeColor: "black",
|
|
795
|
-
sectionStrokeWidth: "1",
|
|
796
|
-
sectionFillColor: "#efefef",
|
|
797
|
-
leafStrokeColor: "black",
|
|
798
|
-
leafStrokeWidth: "1",
|
|
799
|
-
leafFillColor: "#efefef",
|
|
800
|
-
labelColor: "black",
|
|
801
|
-
labelFontSize: "12px",
|
|
802
|
-
valueFontSize: "10px",
|
|
803
|
-
valueColor: "black",
|
|
804
|
-
titleColor: "black",
|
|
805
|
-
titleFontSize: "14px"
|
|
806
|
-
};
|
|
807
|
-
var getStyles = /* @__PURE__ */ __name(({
|
|
808
|
-
treemap: treemap2
|
|
809
|
-
} = {}) => {
|
|
810
|
-
const options = cleanAndMerge(defaultTreemapStyleOptions, treemap2);
|
|
811
|
-
return `
|
|
812
|
-
.treemapNode.section {
|
|
813
|
-
stroke: ${options.sectionStrokeColor};
|
|
814
|
-
stroke-width: ${options.sectionStrokeWidth};
|
|
815
|
-
fill: ${options.sectionFillColor};
|
|
816
|
-
}
|
|
817
|
-
.treemapNode.leaf {
|
|
818
|
-
stroke: ${options.leafStrokeColor};
|
|
819
|
-
stroke-width: ${options.leafStrokeWidth};
|
|
820
|
-
fill: ${options.leafFillColor};
|
|
821
|
-
}
|
|
822
|
-
.treemapLabel {
|
|
823
|
-
fill: ${options.labelColor};
|
|
824
|
-
font-size: ${options.labelFontSize};
|
|
825
|
-
}
|
|
826
|
-
.treemapValue {
|
|
827
|
-
fill: ${options.valueColor};
|
|
828
|
-
font-size: ${options.valueFontSize};
|
|
829
|
-
}
|
|
830
|
-
.treemapTitle {
|
|
831
|
-
fill: ${options.titleColor};
|
|
832
|
-
font-size: ${options.titleFontSize};
|
|
833
|
-
}
|
|
834
|
-
`;
|
|
835
|
-
}, "getStyles");
|
|
836
|
-
var styles_default = getStyles;
|
|
837
|
-
var diagram = {
|
|
838
|
-
parser,
|
|
839
|
-
get db() {
|
|
840
|
-
return new TreeMapDB();
|
|
841
|
-
},
|
|
842
|
-
renderer,
|
|
843
|
-
styles: styles_default
|
|
844
|
-
};
|
|
845
|
-
export {
|
|
846
|
-
diagram
|
|
847
|
-
};
|
|
848
|
-
//# sourceMappingURL=diagram-PSM6KHXK-CCRrPaN5.js.map
|