@spteck/react-controls-v2 2.3.7 → 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-DD0xIF4q.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-Cje_jmPk.cjs +0 -2
- package/dist/_arrayEach-FofefpDi.js +0 -61
- package/dist/ar-C1pLt8fa.js +0 -219
- package/dist/ar-Jzw7PLrc.cjs +0 -2
- package/dist/arc-5Gjtja_I.js +0 -132
- package/dist/arc-DJHyDr2O.cjs +0 -2
- package/dist/architecture-7HQA4BMR-B3tJE43W.js +0 -6
- package/dist/architecture-7HQA4BMR-gT33-zCB.cjs +0 -2
- package/dist/architectureDiagram-VXUJARFQ-2JSYYGtM.js +0 -8680
- package/dist/architectureDiagram-VXUJARFQ-DXZHHpiT.cjs +0 -2
- 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-B6nGrskI.js +0 -3756
- package/dist/blockDiagram-VD42YOAC-quPSWMXj.cjs +0 -2
- package/dist/bs-BoW04lRb.cjs +0 -2
- package/dist/bs-CEe_gjEx.js +0 -219
- package/dist/c4Diagram-YG6GDRKO-CvSU_nSb.js +0 -2483
- package/dist/c4Diagram-YG6GDRKO-yrm6z9xI.cjs +0 -2
- package/dist/ca-Bsy2Y5pS.cjs +0 -2
- package/dist/ca-CKpd72XI.js +0 -219
- package/dist/channel-BGx_PGej.cjs +0 -2
- package/dist/channel-Dx_x_I-e.js +0 -8
- package/dist/chunk-4BX2VUAB-DE7Tf1KJ.js +0 -18
- package/dist/chunk-4BX2VUAB-hg2h7y7T.cjs +0 -2
- package/dist/chunk-55IACEB6-5VDRE5b9.js +0 -14
- package/dist/chunk-55IACEB6-DQzh2BFT.cjs +0 -2
- package/dist/chunk-B4BG7PRW-BONACuKe.cjs +0 -2
- package/dist/chunk-B4BG7PRW-ClXZOBBj.js +0 -1828
- package/dist/chunk-DI55MBZ5-CnX_pntz.cjs +0 -2
- package/dist/chunk-DI55MBZ5-Cw4AXuM5.js +0 -1928
- package/dist/chunk-FMBD7UC4-vGLXIanH.cjs +0 -2
- package/dist/chunk-QN33PNHL-Bi6cNSdZ.cjs +0 -2
- package/dist/chunk-QN33PNHL-NyikcZce.js +0 -26
- package/dist/chunk-QZHKN3VN-Cj-nkoY3.cjs +0 -2
- package/dist/chunk-QZHKN3VN-DRpbGzBX.js +0 -18
- package/dist/chunk-TZMSLE5B-Dbk2wKaP.cjs +0 -2
- package/dist/chunk-TZMSLE5B-DiEITu_i.js +0 -109
- package/dist/classDiagram-2ON5EDUG-CZ8qM-r0.js +0 -20
- package/dist/classDiagram-2ON5EDUG-GEqVHOl4.cjs +0 -2
- package/dist/classDiagram-v2-WZHVMYZB-CZ8qM-r0.js +0 -20
- package/dist/classDiagram-v2-WZHVMYZB-GEqVHOl4.cjs +0 -2
- package/dist/cose-bilkent-S5V4N54A-Bk5UrOC6.cjs +0 -2
- package/dist/cose-bilkent-S5V4N54A-D9POuI1b.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-BGgMwKrx.cjs +0 -2
- package/dist/dagre-6UL2VRFP-D1VXYHDk.js +0 -696
- 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-BnJ6u90U.cjs +0 -2
- package/dist/diagram-PSM6KHXK-MkySzwCw.js +0 -848
- package/dist/diagram-QEK2KX5R-7oJbO__T.js +0 -305
- package/dist/diagram-QEK2KX5R-CQjADuvs.cjs +0 -2
- package/dist/diagram-S2PKOQOG-AFF7RL6D.cjs +0 -2
- package/dist/diagram-S2PKOQOG-t6d3dY_R.js +0 -212
- package/dist/el-CBS9mHS3.js +0 -219
- package/dist/el-DbtZj-ph.cjs +0 -2
- package/dist/erDiagram-Q2GNP2WA-BY5cfs21.js +0 -1160
- package/dist/erDiagram-Q2GNP2WA-CsdjPSsg.cjs +0 -2
- 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-BcaW6-_t.cjs +0 -2
- package/dist/flowDiagram-NV44I4VS-DoSHOTLX.js +0 -2339
- 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-C8aHKsjy.js +0 -3652
- package/dist/ganttDiagram-JELNMOA3-YuzFUWYN.cjs +0 -2
- package/dist/gitGraph-G5XIXVHT-DN5M1zzB.cjs +0 -2
- package/dist/gitGraph-G5XIXVHT-kJP_icZ5.js +0 -6
- package/dist/gitGraphDiagram-V2S2FVAM-Bl2LJ6uK.js +0 -1215
- package/dist/gitGraphDiagram-V2S2FVAM-DI5S_ure.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-BMfuEpa-.cjs +0 -428
- package/dist/index-BiWHWaTZ.js +0 -55588
- package/dist/info-VBDWY6EO-0yZ4VJNq.cjs +0 -2
- package/dist/info-VBDWY6EO-CcLNynBA.js +0 -6
- package/dist/infoDiagram-HS3SLOUP-Bp0yOoLT.js +0 -32
- package/dist/infoDiagram-HS3SLOUP-C0Zno052.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-0OiMrl1O.cjs +0 -2
- package/dist/journeyDiagram-XKPGCS4Q-Ci2gigtu.js +0 -1255
- package/dist/kanban-definition-3W4ZIXB7-DTLYV2yk.js +0 -1049
- package/dist/kanban-definition-3W4ZIXB7-DbJAXyvr.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-CmvLp6xX.js +0 -341
- package/dist/linear-d_werDwb.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-B3PlRf6V.js +0 -23511
- package/dist/maplibre-gl-Cc1i9T04.cjs +0 -6
- package/dist/mermaid-parser.core-CNPkkUbW.cjs +0 -2
- package/dist/mermaid-parser.core-CnjbJ8mb.js +0 -23791
- package/dist/mindmap-definition-VGOIOE7T-D4S37eSG.cjs +0 -2
- package/dist/mindmap-definition-VGOIOE7T-z7i6md6S.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-8TxNXRiu.js +0 -6
- package/dist/packet-DYOGHKS2-T2_NOyn2.cjs +0 -2
- package/dist/pie-VRWISCQL-CVgwt5hn.cjs +0 -2
- package/dist/pie-VRWISCQL-Cw5ps4Uc.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-9tCdDAIz.cjs +0 -2
- package/dist/pieDiagram-ADFJNKIX-BLMaZqln.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-B_5PU35F.cjs +0 -2
- package/dist/quadrantDiagram-AYHSOK5B-Njb3KunW.js +0 -1338
- package/dist/radar-ZZBFDIW7-B5WKe_gp.js +0 -6
- package/dist/radar-ZZBFDIW7-DGwkdfQQ.cjs +0 -2
- package/dist/requirementDiagram-UZGBJVZJ-BOgHmi8B.cjs +0 -2
- package/dist/requirementDiagram-UZGBJVZJ-wkSzPa52.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-p1th2H-P.js +0 -1194
- package/dist/sankeyDiagram-TZEHDZUN-wNi-DuI_.cjs +0 -2
- package/dist/sequenceDiagram-WL72ISMW-CZsA3nl_.js +0 -3882
- package/dist/sequenceDiagram-WL72ISMW-DHsfFVVL.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-CZDqf83I.js +0 -449
- package/dist/stateDiagram-FKZM4ZOC-uCSdqeo_.cjs +0 -2
- package/dist/stateDiagram-v2-4FDKWEC3-Ard7BOGd.js +0 -20
- package/dist/stateDiagram-v2-4FDKWEC3-LQ3nCDHa.cjs +0 -2
- 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-5Kl_f6ac.cjs +0 -2
- package/dist/timeline-definition-IT6M3QCI-DOIExRzF.js +0 -1227
- package/dist/tr-BE5geTUC.cjs +0 -2
- package/dist/tr-BHR1QA-D.js +0 -219
- package/dist/treemap-GDKQZRPO-BsGYh-La.cjs +0 -2
- package/dist/treemap-GDKQZRPO-DQPba0Eh.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-DkaIeov2.cjs +0 -2
- package/dist/xychartDiagram-PRI3JC2R-DyqZd9yp.js +0 -1887
- package/dist/zh-CGcOiJ3s.cjs +0 -2
- package/dist/zh-GsCLn8OE.js +0 -219
|
@@ -1,1194 +0,0 @@
|
|
|
1
|
-
var _a, _b, _c;
|
|
2
|
-
import { _ as __name, q as setDiagramTitle, t as getDiagramTitle, s as setAccDescription, g as getAccDescription, b as setAccTitle, a as getAccTitle, c as getConfig2, A as defaultConfig2, d as select, ac as setupGraphViewbox, z as clear, k as common_default } from "./index-BiWHWaTZ.js";
|
|
3
|
-
import { o as ordinal } from "./ordinal-DSZU4PqD.js";
|
|
4
|
-
function colors(specifier) {
|
|
5
|
-
var n = specifier.length / 6 | 0, colors2 = new Array(n), i = 0;
|
|
6
|
-
while (i < n) colors2[i] = "#" + specifier.slice(i * 6, ++i * 6);
|
|
7
|
-
return colors2;
|
|
8
|
-
}
|
|
9
|
-
const d3schemeTableau10 = colors("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
|
|
10
|
-
function max(values, valueof) {
|
|
11
|
-
let max2;
|
|
12
|
-
if (valueof === void 0) {
|
|
13
|
-
for (const value2 of values) {
|
|
14
|
-
if (value2 != null && (max2 < value2 || max2 === void 0 && value2 >= value2)) {
|
|
15
|
-
max2 = value2;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
} else {
|
|
19
|
-
let index = -1;
|
|
20
|
-
for (let value2 of values) {
|
|
21
|
-
if ((value2 = valueof(value2, ++index, values)) != null && (max2 < value2 || max2 === void 0 && value2 >= value2)) {
|
|
22
|
-
max2 = value2;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return max2;
|
|
27
|
-
}
|
|
28
|
-
function min(values, valueof) {
|
|
29
|
-
let min2;
|
|
30
|
-
if (valueof === void 0) {
|
|
31
|
-
for (const value2 of values) {
|
|
32
|
-
if (value2 != null && (min2 > value2 || min2 === void 0 && value2 >= value2)) {
|
|
33
|
-
min2 = value2;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
} else {
|
|
37
|
-
let index = -1;
|
|
38
|
-
for (let value2 of values) {
|
|
39
|
-
if ((value2 = valueof(value2, ++index, values)) != null && (min2 > value2 || min2 === void 0 && value2 >= value2)) {
|
|
40
|
-
min2 = value2;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return min2;
|
|
45
|
-
}
|
|
46
|
-
function sum(values, valueof) {
|
|
47
|
-
let sum2 = 0;
|
|
48
|
-
if (valueof === void 0) {
|
|
49
|
-
for (let value2 of values) {
|
|
50
|
-
if (value2 = +value2) {
|
|
51
|
-
sum2 += value2;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
} else {
|
|
55
|
-
let index = -1;
|
|
56
|
-
for (let value2 of values) {
|
|
57
|
-
if (value2 = +valueof(value2, ++index, values)) {
|
|
58
|
-
sum2 += value2;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return sum2;
|
|
63
|
-
}
|
|
64
|
-
function targetDepth(d) {
|
|
65
|
-
return d.target.depth;
|
|
66
|
-
}
|
|
67
|
-
function left(node) {
|
|
68
|
-
return node.depth;
|
|
69
|
-
}
|
|
70
|
-
function right(node, n) {
|
|
71
|
-
return n - 1 - node.height;
|
|
72
|
-
}
|
|
73
|
-
function justify(node, n) {
|
|
74
|
-
return node.sourceLinks.length ? node.depth : n - 1;
|
|
75
|
-
}
|
|
76
|
-
function center(node) {
|
|
77
|
-
return node.targetLinks.length ? node.depth : node.sourceLinks.length ? min(node.sourceLinks, targetDepth) - 1 : 0;
|
|
78
|
-
}
|
|
79
|
-
function constant$1(x2) {
|
|
80
|
-
return function() {
|
|
81
|
-
return x2;
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
function ascendingSourceBreadth(a, b) {
|
|
85
|
-
return ascendingBreadth(a.source, b.source) || a.index - b.index;
|
|
86
|
-
}
|
|
87
|
-
function ascendingTargetBreadth(a, b) {
|
|
88
|
-
return ascendingBreadth(a.target, b.target) || a.index - b.index;
|
|
89
|
-
}
|
|
90
|
-
function ascendingBreadth(a, b) {
|
|
91
|
-
return a.y0 - b.y0;
|
|
92
|
-
}
|
|
93
|
-
function value(d) {
|
|
94
|
-
return d.value;
|
|
95
|
-
}
|
|
96
|
-
function defaultId(d) {
|
|
97
|
-
return d.index;
|
|
98
|
-
}
|
|
99
|
-
function defaultNodes(graph) {
|
|
100
|
-
return graph.nodes;
|
|
101
|
-
}
|
|
102
|
-
function defaultLinks(graph) {
|
|
103
|
-
return graph.links;
|
|
104
|
-
}
|
|
105
|
-
function find(nodeById, id) {
|
|
106
|
-
const node = nodeById.get(id);
|
|
107
|
-
if (!node) throw new Error("missing: " + id);
|
|
108
|
-
return node;
|
|
109
|
-
}
|
|
110
|
-
function computeLinkBreadths({ nodes: nodes2 }) {
|
|
111
|
-
for (const node of nodes2) {
|
|
112
|
-
let y0 = node.y0;
|
|
113
|
-
let y1 = y0;
|
|
114
|
-
for (const link2 of node.sourceLinks) {
|
|
115
|
-
link2.y0 = y0 + link2.width / 2;
|
|
116
|
-
y0 += link2.width;
|
|
117
|
-
}
|
|
118
|
-
for (const link2 of node.targetLinks) {
|
|
119
|
-
link2.y1 = y1 + link2.width / 2;
|
|
120
|
-
y1 += link2.width;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
function Sankey() {
|
|
125
|
-
let x0 = 0, y0 = 0, x1 = 1, y1 = 1;
|
|
126
|
-
let dx = 24;
|
|
127
|
-
let dy = 8, py;
|
|
128
|
-
let id = defaultId;
|
|
129
|
-
let align = justify;
|
|
130
|
-
let sort;
|
|
131
|
-
let linkSort;
|
|
132
|
-
let nodes2 = defaultNodes;
|
|
133
|
-
let links2 = defaultLinks;
|
|
134
|
-
let iterations = 6;
|
|
135
|
-
function sankey() {
|
|
136
|
-
const graph = { nodes: nodes2.apply(null, arguments), links: links2.apply(null, arguments) };
|
|
137
|
-
computeNodeLinks(graph);
|
|
138
|
-
computeNodeValues(graph);
|
|
139
|
-
computeNodeDepths(graph);
|
|
140
|
-
computeNodeHeights(graph);
|
|
141
|
-
computeNodeBreadths(graph);
|
|
142
|
-
computeLinkBreadths(graph);
|
|
143
|
-
return graph;
|
|
144
|
-
}
|
|
145
|
-
sankey.update = function(graph) {
|
|
146
|
-
computeLinkBreadths(graph);
|
|
147
|
-
return graph;
|
|
148
|
-
};
|
|
149
|
-
sankey.nodeId = function(_) {
|
|
150
|
-
return arguments.length ? (id = typeof _ === "function" ? _ : constant$1(_), sankey) : id;
|
|
151
|
-
};
|
|
152
|
-
sankey.nodeAlign = function(_) {
|
|
153
|
-
return arguments.length ? (align = typeof _ === "function" ? _ : constant$1(_), sankey) : align;
|
|
154
|
-
};
|
|
155
|
-
sankey.nodeSort = function(_) {
|
|
156
|
-
return arguments.length ? (sort = _, sankey) : sort;
|
|
157
|
-
};
|
|
158
|
-
sankey.nodeWidth = function(_) {
|
|
159
|
-
return arguments.length ? (dx = +_, sankey) : dx;
|
|
160
|
-
};
|
|
161
|
-
sankey.nodePadding = function(_) {
|
|
162
|
-
return arguments.length ? (dy = py = +_, sankey) : dy;
|
|
163
|
-
};
|
|
164
|
-
sankey.nodes = function(_) {
|
|
165
|
-
return arguments.length ? (nodes2 = typeof _ === "function" ? _ : constant$1(_), sankey) : nodes2;
|
|
166
|
-
};
|
|
167
|
-
sankey.links = function(_) {
|
|
168
|
-
return arguments.length ? (links2 = typeof _ === "function" ? _ : constant$1(_), sankey) : links2;
|
|
169
|
-
};
|
|
170
|
-
sankey.linkSort = function(_) {
|
|
171
|
-
return arguments.length ? (linkSort = _, sankey) : linkSort;
|
|
172
|
-
};
|
|
173
|
-
sankey.size = function(_) {
|
|
174
|
-
return arguments.length ? (x0 = y0 = 0, x1 = +_[0], y1 = +_[1], sankey) : [x1 - x0, y1 - y0];
|
|
175
|
-
};
|
|
176
|
-
sankey.extent = function(_) {
|
|
177
|
-
return arguments.length ? (x0 = +_[0][0], x1 = +_[1][0], y0 = +_[0][1], y1 = +_[1][1], sankey) : [[x0, y0], [x1, y1]];
|
|
178
|
-
};
|
|
179
|
-
sankey.iterations = function(_) {
|
|
180
|
-
return arguments.length ? (iterations = +_, sankey) : iterations;
|
|
181
|
-
};
|
|
182
|
-
function computeNodeLinks({ nodes: nodes3, links: links3 }) {
|
|
183
|
-
for (const [i, node] of nodes3.entries()) {
|
|
184
|
-
node.index = i;
|
|
185
|
-
node.sourceLinks = [];
|
|
186
|
-
node.targetLinks = [];
|
|
187
|
-
}
|
|
188
|
-
const nodeById = new Map(nodes3.map((d, i) => [id(d, i, nodes3), d]));
|
|
189
|
-
for (const [i, link2] of links3.entries()) {
|
|
190
|
-
link2.index = i;
|
|
191
|
-
let { source, target } = link2;
|
|
192
|
-
if (typeof source !== "object") source = link2.source = find(nodeById, source);
|
|
193
|
-
if (typeof target !== "object") target = link2.target = find(nodeById, target);
|
|
194
|
-
source.sourceLinks.push(link2);
|
|
195
|
-
target.targetLinks.push(link2);
|
|
196
|
-
}
|
|
197
|
-
if (linkSort != null) {
|
|
198
|
-
for (const { sourceLinks, targetLinks } of nodes3) {
|
|
199
|
-
sourceLinks.sort(linkSort);
|
|
200
|
-
targetLinks.sort(linkSort);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
function computeNodeValues({ nodes: nodes3 }) {
|
|
205
|
-
for (const node of nodes3) {
|
|
206
|
-
node.value = node.fixedValue === void 0 ? Math.max(sum(node.sourceLinks, value), sum(node.targetLinks, value)) : node.fixedValue;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
function computeNodeDepths({ nodes: nodes3 }) {
|
|
210
|
-
const n = nodes3.length;
|
|
211
|
-
let current = new Set(nodes3);
|
|
212
|
-
let next = /* @__PURE__ */ new Set();
|
|
213
|
-
let x2 = 0;
|
|
214
|
-
while (current.size) {
|
|
215
|
-
for (const node of current) {
|
|
216
|
-
node.depth = x2;
|
|
217
|
-
for (const { target } of node.sourceLinks) {
|
|
218
|
-
next.add(target);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
if (++x2 > n) throw new Error("circular link");
|
|
222
|
-
current = next;
|
|
223
|
-
next = /* @__PURE__ */ new Set();
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
function computeNodeHeights({ nodes: nodes3 }) {
|
|
227
|
-
const n = nodes3.length;
|
|
228
|
-
let current = new Set(nodes3);
|
|
229
|
-
let next = /* @__PURE__ */ new Set();
|
|
230
|
-
let x2 = 0;
|
|
231
|
-
while (current.size) {
|
|
232
|
-
for (const node of current) {
|
|
233
|
-
node.height = x2;
|
|
234
|
-
for (const { source } of node.targetLinks) {
|
|
235
|
-
next.add(source);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
if (++x2 > n) throw new Error("circular link");
|
|
239
|
-
current = next;
|
|
240
|
-
next = /* @__PURE__ */ new Set();
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
function computeNodeLayers({ nodes: nodes3 }) {
|
|
244
|
-
const x2 = max(nodes3, (d) => d.depth) + 1;
|
|
245
|
-
const kx = (x1 - x0 - dx) / (x2 - 1);
|
|
246
|
-
const columns = new Array(x2);
|
|
247
|
-
for (const node of nodes3) {
|
|
248
|
-
const i = Math.max(0, Math.min(x2 - 1, Math.floor(align.call(null, node, x2))));
|
|
249
|
-
node.layer = i;
|
|
250
|
-
node.x0 = x0 + i * kx;
|
|
251
|
-
node.x1 = node.x0 + dx;
|
|
252
|
-
if (columns[i]) columns[i].push(node);
|
|
253
|
-
else columns[i] = [node];
|
|
254
|
-
}
|
|
255
|
-
if (sort) for (const column of columns) {
|
|
256
|
-
column.sort(sort);
|
|
257
|
-
}
|
|
258
|
-
return columns;
|
|
259
|
-
}
|
|
260
|
-
function initializeNodeBreadths(columns) {
|
|
261
|
-
const ky = min(columns, (c) => (y1 - y0 - (c.length - 1) * py) / sum(c, value));
|
|
262
|
-
for (const nodes3 of columns) {
|
|
263
|
-
let y2 = y0;
|
|
264
|
-
for (const node of nodes3) {
|
|
265
|
-
node.y0 = y2;
|
|
266
|
-
node.y1 = y2 + node.value * ky;
|
|
267
|
-
y2 = node.y1 + py;
|
|
268
|
-
for (const link2 of node.sourceLinks) {
|
|
269
|
-
link2.width = link2.value * ky;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
y2 = (y1 - y2 + py) / (nodes3.length + 1);
|
|
273
|
-
for (let i = 0; i < nodes3.length; ++i) {
|
|
274
|
-
const node = nodes3[i];
|
|
275
|
-
node.y0 += y2 * (i + 1);
|
|
276
|
-
node.y1 += y2 * (i + 1);
|
|
277
|
-
}
|
|
278
|
-
reorderLinks(nodes3);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
function computeNodeBreadths(graph) {
|
|
282
|
-
const columns = computeNodeLayers(graph);
|
|
283
|
-
py = Math.min(dy, (y1 - y0) / (max(columns, (c) => c.length) - 1));
|
|
284
|
-
initializeNodeBreadths(columns);
|
|
285
|
-
for (let i = 0; i < iterations; ++i) {
|
|
286
|
-
const alpha = Math.pow(0.99, i);
|
|
287
|
-
const beta = Math.max(1 - alpha, (i + 1) / iterations);
|
|
288
|
-
relaxRightToLeft(columns, alpha, beta);
|
|
289
|
-
relaxLeftToRight(columns, alpha, beta);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
function relaxLeftToRight(columns, alpha, beta) {
|
|
293
|
-
for (let i = 1, n = columns.length; i < n; ++i) {
|
|
294
|
-
const column = columns[i];
|
|
295
|
-
for (const target of column) {
|
|
296
|
-
let y2 = 0;
|
|
297
|
-
let w = 0;
|
|
298
|
-
for (const { source, value: value2 } of target.targetLinks) {
|
|
299
|
-
let v = value2 * (target.layer - source.layer);
|
|
300
|
-
y2 += targetTop(source, target) * v;
|
|
301
|
-
w += v;
|
|
302
|
-
}
|
|
303
|
-
if (!(w > 0)) continue;
|
|
304
|
-
let dy2 = (y2 / w - target.y0) * alpha;
|
|
305
|
-
target.y0 += dy2;
|
|
306
|
-
target.y1 += dy2;
|
|
307
|
-
reorderNodeLinks(target);
|
|
308
|
-
}
|
|
309
|
-
if (sort === void 0) column.sort(ascendingBreadth);
|
|
310
|
-
resolveCollisions(column, beta);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
function relaxRightToLeft(columns, alpha, beta) {
|
|
314
|
-
for (let n = columns.length, i = n - 2; i >= 0; --i) {
|
|
315
|
-
const column = columns[i];
|
|
316
|
-
for (const source of column) {
|
|
317
|
-
let y2 = 0;
|
|
318
|
-
let w = 0;
|
|
319
|
-
for (const { target, value: value2 } of source.sourceLinks) {
|
|
320
|
-
let v = value2 * (target.layer - source.layer);
|
|
321
|
-
y2 += sourceTop(source, target) * v;
|
|
322
|
-
w += v;
|
|
323
|
-
}
|
|
324
|
-
if (!(w > 0)) continue;
|
|
325
|
-
let dy2 = (y2 / w - source.y0) * alpha;
|
|
326
|
-
source.y0 += dy2;
|
|
327
|
-
source.y1 += dy2;
|
|
328
|
-
reorderNodeLinks(source);
|
|
329
|
-
}
|
|
330
|
-
if (sort === void 0) column.sort(ascendingBreadth);
|
|
331
|
-
resolveCollisions(column, beta);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
function resolveCollisions(nodes3, alpha) {
|
|
335
|
-
const i = nodes3.length >> 1;
|
|
336
|
-
const subject = nodes3[i];
|
|
337
|
-
resolveCollisionsBottomToTop(nodes3, subject.y0 - py, i - 1, alpha);
|
|
338
|
-
resolveCollisionsTopToBottom(nodes3, subject.y1 + py, i + 1, alpha);
|
|
339
|
-
resolveCollisionsBottomToTop(nodes3, y1, nodes3.length - 1, alpha);
|
|
340
|
-
resolveCollisionsTopToBottom(nodes3, y0, 0, alpha);
|
|
341
|
-
}
|
|
342
|
-
function resolveCollisionsTopToBottom(nodes3, y2, i, alpha) {
|
|
343
|
-
for (; i < nodes3.length; ++i) {
|
|
344
|
-
const node = nodes3[i];
|
|
345
|
-
const dy2 = (y2 - node.y0) * alpha;
|
|
346
|
-
if (dy2 > 1e-6) node.y0 += dy2, node.y1 += dy2;
|
|
347
|
-
y2 = node.y1 + py;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
function resolveCollisionsBottomToTop(nodes3, y2, i, alpha) {
|
|
351
|
-
for (; i >= 0; --i) {
|
|
352
|
-
const node = nodes3[i];
|
|
353
|
-
const dy2 = (node.y1 - y2) * alpha;
|
|
354
|
-
if (dy2 > 1e-6) node.y0 -= dy2, node.y1 -= dy2;
|
|
355
|
-
y2 = node.y0 - py;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
function reorderNodeLinks({ sourceLinks, targetLinks }) {
|
|
359
|
-
if (linkSort === void 0) {
|
|
360
|
-
for (const { source: { sourceLinks: sourceLinks2 } } of targetLinks) {
|
|
361
|
-
sourceLinks2.sort(ascendingTargetBreadth);
|
|
362
|
-
}
|
|
363
|
-
for (const { target: { targetLinks: targetLinks2 } } of sourceLinks) {
|
|
364
|
-
targetLinks2.sort(ascendingSourceBreadth);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
function reorderLinks(nodes3) {
|
|
369
|
-
if (linkSort === void 0) {
|
|
370
|
-
for (const { sourceLinks, targetLinks } of nodes3) {
|
|
371
|
-
sourceLinks.sort(ascendingTargetBreadth);
|
|
372
|
-
targetLinks.sort(ascendingSourceBreadth);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
function targetTop(source, target) {
|
|
377
|
-
let y2 = source.y0 - (source.sourceLinks.length - 1) * py / 2;
|
|
378
|
-
for (const { target: node, width } of source.sourceLinks) {
|
|
379
|
-
if (node === target) break;
|
|
380
|
-
y2 += width + py;
|
|
381
|
-
}
|
|
382
|
-
for (const { source: node, width } of target.targetLinks) {
|
|
383
|
-
if (node === source) break;
|
|
384
|
-
y2 -= width;
|
|
385
|
-
}
|
|
386
|
-
return y2;
|
|
387
|
-
}
|
|
388
|
-
function sourceTop(source, target) {
|
|
389
|
-
let y2 = target.y0 - (target.targetLinks.length - 1) * py / 2;
|
|
390
|
-
for (const { source: node, width } of target.targetLinks) {
|
|
391
|
-
if (node === source) break;
|
|
392
|
-
y2 += width + py;
|
|
393
|
-
}
|
|
394
|
-
for (const { target: node, width } of source.sourceLinks) {
|
|
395
|
-
if (node === target) break;
|
|
396
|
-
y2 -= width;
|
|
397
|
-
}
|
|
398
|
-
return y2;
|
|
399
|
-
}
|
|
400
|
-
return sankey;
|
|
401
|
-
}
|
|
402
|
-
var pi = Math.PI, tau = 2 * pi, epsilon = 1e-6, tauEpsilon = tau - epsilon;
|
|
403
|
-
function Path() {
|
|
404
|
-
this._x0 = this._y0 = // start of current subpath
|
|
405
|
-
this._x1 = this._y1 = null;
|
|
406
|
-
this._ = "";
|
|
407
|
-
}
|
|
408
|
-
function path() {
|
|
409
|
-
return new Path();
|
|
410
|
-
}
|
|
411
|
-
Path.prototype = path.prototype = {
|
|
412
|
-
constructor: Path,
|
|
413
|
-
moveTo: function(x2, y2) {
|
|
414
|
-
this._ += "M" + (this._x0 = this._x1 = +x2) + "," + (this._y0 = this._y1 = +y2);
|
|
415
|
-
},
|
|
416
|
-
closePath: function() {
|
|
417
|
-
if (this._x1 !== null) {
|
|
418
|
-
this._x1 = this._x0, this._y1 = this._y0;
|
|
419
|
-
this._ += "Z";
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
lineTo: function(x2, y2) {
|
|
423
|
-
this._ += "L" + (this._x1 = +x2) + "," + (this._y1 = +y2);
|
|
424
|
-
},
|
|
425
|
-
quadraticCurveTo: function(x1, y1, x2, y2) {
|
|
426
|
-
this._ += "Q" + +x1 + "," + +y1 + "," + (this._x1 = +x2) + "," + (this._y1 = +y2);
|
|
427
|
-
},
|
|
428
|
-
bezierCurveTo: function(x1, y1, x2, y2, x3, y3) {
|
|
429
|
-
this._ += "C" + +x1 + "," + +y1 + "," + +x2 + "," + +y2 + "," + (this._x1 = +x3) + "," + (this._y1 = +y3);
|
|
430
|
-
},
|
|
431
|
-
arcTo: function(x1, y1, x2, y2, r) {
|
|
432
|
-
x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;
|
|
433
|
-
var x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01;
|
|
434
|
-
if (r < 0) throw new Error("negative radius: " + r);
|
|
435
|
-
if (this._x1 === null) {
|
|
436
|
-
this._ += "M" + (this._x1 = x1) + "," + (this._y1 = y1);
|
|
437
|
-
} else if (!(l01_2 > epsilon)) ;
|
|
438
|
-
else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {
|
|
439
|
-
this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1);
|
|
440
|
-
} else {
|
|
441
|
-
var x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21;
|
|
442
|
-
if (Math.abs(t01 - 1) > epsilon) {
|
|
443
|
-
this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01);
|
|
444
|
-
}
|
|
445
|
-
this._ += "A" + r + "," + r + ",0,0," + +(y01 * x20 > x01 * y20) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21);
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
arc: function(x2, y2, r, a0, a1, ccw) {
|
|
449
|
-
x2 = +x2, y2 = +y2, r = +r, ccw = !!ccw;
|
|
450
|
-
var dx = r * Math.cos(a0), dy = r * Math.sin(a0), x0 = x2 + dx, y0 = y2 + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0;
|
|
451
|
-
if (r < 0) throw new Error("negative radius: " + r);
|
|
452
|
-
if (this._x1 === null) {
|
|
453
|
-
this._ += "M" + x0 + "," + y0;
|
|
454
|
-
} else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {
|
|
455
|
-
this._ += "L" + x0 + "," + y0;
|
|
456
|
-
}
|
|
457
|
-
if (!r) return;
|
|
458
|
-
if (da < 0) da = da % tau + tau;
|
|
459
|
-
if (da > tauEpsilon) {
|
|
460
|
-
this._ += "A" + r + "," + r + ",0,1," + cw + "," + (x2 - dx) + "," + (y2 - dy) + "A" + r + "," + r + ",0,1," + cw + "," + (this._x1 = x0) + "," + (this._y1 = y0);
|
|
461
|
-
} else if (da > epsilon) {
|
|
462
|
-
this._ += "A" + r + "," + r + ",0," + +(da >= pi) + "," + cw + "," + (this._x1 = x2 + r * Math.cos(a1)) + "," + (this._y1 = y2 + r * Math.sin(a1));
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
rect: function(x2, y2, w, h) {
|
|
466
|
-
this._ += "M" + (this._x0 = this._x1 = +x2) + "," + (this._y0 = this._y1 = +y2) + "h" + +w + "v" + +h + "h" + -w + "Z";
|
|
467
|
-
},
|
|
468
|
-
toString: function() {
|
|
469
|
-
return this._;
|
|
470
|
-
}
|
|
471
|
-
};
|
|
472
|
-
function constant(x2) {
|
|
473
|
-
return function constant2() {
|
|
474
|
-
return x2;
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
function x(p) {
|
|
478
|
-
return p[0];
|
|
479
|
-
}
|
|
480
|
-
function y(p) {
|
|
481
|
-
return p[1];
|
|
482
|
-
}
|
|
483
|
-
var slice = Array.prototype.slice;
|
|
484
|
-
function linkSource(d) {
|
|
485
|
-
return d.source;
|
|
486
|
-
}
|
|
487
|
-
function linkTarget(d) {
|
|
488
|
-
return d.target;
|
|
489
|
-
}
|
|
490
|
-
function link(curve) {
|
|
491
|
-
var source = linkSource, target = linkTarget, x$1 = x, y$1 = y, context = null;
|
|
492
|
-
function link2() {
|
|
493
|
-
var buffer, argv = slice.call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);
|
|
494
|
-
if (!context) context = buffer = path();
|
|
495
|
-
curve(context, +x$1.apply(this, (argv[0] = s, argv)), +y$1.apply(this, argv), +x$1.apply(this, (argv[0] = t, argv)), +y$1.apply(this, argv));
|
|
496
|
-
if (buffer) return context = null, buffer + "" || null;
|
|
497
|
-
}
|
|
498
|
-
link2.source = function(_) {
|
|
499
|
-
return arguments.length ? (source = _, link2) : source;
|
|
500
|
-
};
|
|
501
|
-
link2.target = function(_) {
|
|
502
|
-
return arguments.length ? (target = _, link2) : target;
|
|
503
|
-
};
|
|
504
|
-
link2.x = function(_) {
|
|
505
|
-
return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant(+_), link2) : x$1;
|
|
506
|
-
};
|
|
507
|
-
link2.y = function(_) {
|
|
508
|
-
return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant(+_), link2) : y$1;
|
|
509
|
-
};
|
|
510
|
-
link2.context = function(_) {
|
|
511
|
-
return arguments.length ? (context = _ == null ? null : _, link2) : context;
|
|
512
|
-
};
|
|
513
|
-
return link2;
|
|
514
|
-
}
|
|
515
|
-
function curveHorizontal(context, x0, y0, x1, y1) {
|
|
516
|
-
context.moveTo(x0, y0);
|
|
517
|
-
context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);
|
|
518
|
-
}
|
|
519
|
-
function linkHorizontal() {
|
|
520
|
-
return link(curveHorizontal);
|
|
521
|
-
}
|
|
522
|
-
function horizontalSource(d) {
|
|
523
|
-
return [d.source.x1, d.y0];
|
|
524
|
-
}
|
|
525
|
-
function horizontalTarget(d) {
|
|
526
|
-
return [d.target.x0, d.y1];
|
|
527
|
-
}
|
|
528
|
-
function d3SankeyLinkHorizontal() {
|
|
529
|
-
return linkHorizontal().source(horizontalSource).target(horizontalTarget);
|
|
530
|
-
}
|
|
531
|
-
var parser = function() {
|
|
532
|
-
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
533
|
-
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
534
|
-
return o2;
|
|
535
|
-
}, "o"), $V0 = [1, 9], $V1 = [1, 10], $V2 = [1, 5, 10, 12];
|
|
536
|
-
var parser2 = {
|
|
537
|
-
trace: /* @__PURE__ */ __name(function trace() {
|
|
538
|
-
}, "trace"),
|
|
539
|
-
yy: {},
|
|
540
|
-
symbols_: { "error": 2, "start": 3, "SANKEY": 4, "NEWLINE": 5, "csv": 6, "opt_eof": 7, "record": 8, "csv_tail": 9, "EOF": 10, "field[source]": 11, "COMMA": 12, "field[target]": 13, "field[value]": 14, "field": 15, "escaped": 16, "non_escaped": 17, "DQUOTE": 18, "ESCAPED_TEXT": 19, "NON_ESCAPED_TEXT": 20, "$accept": 0, "$end": 1 },
|
|
541
|
-
terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
|
|
542
|
-
productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
|
|
543
|
-
performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
544
|
-
var $0 = $$.length - 1;
|
|
545
|
-
switch (yystate) {
|
|
546
|
-
case 7:
|
|
547
|
-
const source = yy.findOrCreateNode($$[$0 - 4].trim().replaceAll('""', '"'));
|
|
548
|
-
const target = yy.findOrCreateNode($$[$0 - 2].trim().replaceAll('""', '"'));
|
|
549
|
-
const value2 = parseFloat($$[$0].trim());
|
|
550
|
-
yy.addLink(source, target, value2);
|
|
551
|
-
break;
|
|
552
|
-
case 8:
|
|
553
|
-
case 9:
|
|
554
|
-
case 11:
|
|
555
|
-
this.$ = $$[$0];
|
|
556
|
-
break;
|
|
557
|
-
case 10:
|
|
558
|
-
this.$ = $$[$0 - 1];
|
|
559
|
-
break;
|
|
560
|
-
}
|
|
561
|
-
}, "anonymous"),
|
|
562
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: $V0, 20: $V1 }, { 1: [2, 6], 7: 11, 10: [1, 12] }, o($V1, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, o($V2, [2, 8]), o($V2, [2, 9]), { 19: [1, 16] }, o($V2, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, o($V1, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: $V0, 20: $V1 }, { 15: 18, 16: 7, 17: 8, 18: $V0, 20: $V1 }, { 18: [1, 19] }, o($V1, [2, 3]), { 12: [1, 20] }, o($V2, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: $V0, 20: $V1 }, o([1, 5, 10], [2, 7])],
|
|
563
|
-
defaultActions: { 11: [2, 1], 12: [2, 5] },
|
|
564
|
-
parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
|
|
565
|
-
if (hash.recoverable) {
|
|
566
|
-
this.trace(str);
|
|
567
|
-
} else {
|
|
568
|
-
var error = new Error(str);
|
|
569
|
-
error.hash = hash;
|
|
570
|
-
throw error;
|
|
571
|
-
}
|
|
572
|
-
}, "parseError"),
|
|
573
|
-
parse: /* @__PURE__ */ __name(function parse(input) {
|
|
574
|
-
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
|
|
575
|
-
var args = lstack.slice.call(arguments, 1);
|
|
576
|
-
var lexer2 = Object.create(this.lexer);
|
|
577
|
-
var sharedState = { yy: {} };
|
|
578
|
-
for (var k in this.yy) {
|
|
579
|
-
if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
|
|
580
|
-
sharedState.yy[k] = this.yy[k];
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
lexer2.setInput(input, sharedState.yy);
|
|
584
|
-
sharedState.yy.lexer = lexer2;
|
|
585
|
-
sharedState.yy.parser = this;
|
|
586
|
-
if (typeof lexer2.yylloc == "undefined") {
|
|
587
|
-
lexer2.yylloc = {};
|
|
588
|
-
}
|
|
589
|
-
var yyloc = lexer2.yylloc;
|
|
590
|
-
lstack.push(yyloc);
|
|
591
|
-
var ranges = lexer2.options && lexer2.options.ranges;
|
|
592
|
-
if (typeof sharedState.yy.parseError === "function") {
|
|
593
|
-
this.parseError = sharedState.yy.parseError;
|
|
594
|
-
} else {
|
|
595
|
-
this.parseError = Object.getPrototypeOf(this).parseError;
|
|
596
|
-
}
|
|
597
|
-
function popStack(n) {
|
|
598
|
-
stack.length = stack.length - 2 * n;
|
|
599
|
-
vstack.length = vstack.length - n;
|
|
600
|
-
lstack.length = lstack.length - n;
|
|
601
|
-
}
|
|
602
|
-
__name(popStack, "popStack");
|
|
603
|
-
function lex() {
|
|
604
|
-
var token;
|
|
605
|
-
token = tstack.pop() || lexer2.lex() || EOF;
|
|
606
|
-
if (typeof token !== "number") {
|
|
607
|
-
if (token instanceof Array) {
|
|
608
|
-
tstack = token;
|
|
609
|
-
token = tstack.pop();
|
|
610
|
-
}
|
|
611
|
-
token = self.symbols_[token] || token;
|
|
612
|
-
}
|
|
613
|
-
return token;
|
|
614
|
-
}
|
|
615
|
-
__name(lex, "lex");
|
|
616
|
-
var symbol, state, action, r, yyval = {}, p, len, newState, expected;
|
|
617
|
-
while (true) {
|
|
618
|
-
state = stack[stack.length - 1];
|
|
619
|
-
if (this.defaultActions[state]) {
|
|
620
|
-
action = this.defaultActions[state];
|
|
621
|
-
} else {
|
|
622
|
-
if (symbol === null || typeof symbol == "undefined") {
|
|
623
|
-
symbol = lex();
|
|
624
|
-
}
|
|
625
|
-
action = table[state] && table[state][symbol];
|
|
626
|
-
}
|
|
627
|
-
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
628
|
-
var errStr = "";
|
|
629
|
-
expected = [];
|
|
630
|
-
for (p in table[state]) {
|
|
631
|
-
if (this.terminals_[p] && p > TERROR) {
|
|
632
|
-
expected.push("'" + this.terminals_[p] + "'");
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
if (lexer2.showPosition) {
|
|
636
|
-
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
|
|
637
|
-
} else {
|
|
638
|
-
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
639
|
-
}
|
|
640
|
-
this.parseError(errStr, {
|
|
641
|
-
text: lexer2.match,
|
|
642
|
-
token: this.terminals_[symbol] || symbol,
|
|
643
|
-
line: lexer2.yylineno,
|
|
644
|
-
loc: yyloc,
|
|
645
|
-
expected
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
if (action[0] instanceof Array && action.length > 1) {
|
|
649
|
-
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
650
|
-
}
|
|
651
|
-
switch (action[0]) {
|
|
652
|
-
case 1:
|
|
653
|
-
stack.push(symbol);
|
|
654
|
-
vstack.push(lexer2.yytext);
|
|
655
|
-
lstack.push(lexer2.yylloc);
|
|
656
|
-
stack.push(action[1]);
|
|
657
|
-
symbol = null;
|
|
658
|
-
{
|
|
659
|
-
yyleng = lexer2.yyleng;
|
|
660
|
-
yytext = lexer2.yytext;
|
|
661
|
-
yylineno = lexer2.yylineno;
|
|
662
|
-
yyloc = lexer2.yylloc;
|
|
663
|
-
}
|
|
664
|
-
break;
|
|
665
|
-
case 2:
|
|
666
|
-
len = this.productions_[action[1]][1];
|
|
667
|
-
yyval.$ = vstack[vstack.length - len];
|
|
668
|
-
yyval._$ = {
|
|
669
|
-
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
670
|
-
last_line: lstack[lstack.length - 1].last_line,
|
|
671
|
-
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
672
|
-
last_column: lstack[lstack.length - 1].last_column
|
|
673
|
-
};
|
|
674
|
-
if (ranges) {
|
|
675
|
-
yyval._$.range = [
|
|
676
|
-
lstack[lstack.length - (len || 1)].range[0],
|
|
677
|
-
lstack[lstack.length - 1].range[1]
|
|
678
|
-
];
|
|
679
|
-
}
|
|
680
|
-
r = this.performAction.apply(yyval, [
|
|
681
|
-
yytext,
|
|
682
|
-
yyleng,
|
|
683
|
-
yylineno,
|
|
684
|
-
sharedState.yy,
|
|
685
|
-
action[1],
|
|
686
|
-
vstack,
|
|
687
|
-
lstack
|
|
688
|
-
].concat(args));
|
|
689
|
-
if (typeof r !== "undefined") {
|
|
690
|
-
return r;
|
|
691
|
-
}
|
|
692
|
-
if (len) {
|
|
693
|
-
stack = stack.slice(0, -1 * len * 2);
|
|
694
|
-
vstack = vstack.slice(0, -1 * len);
|
|
695
|
-
lstack = lstack.slice(0, -1 * len);
|
|
696
|
-
}
|
|
697
|
-
stack.push(this.productions_[action[1]][0]);
|
|
698
|
-
vstack.push(yyval.$);
|
|
699
|
-
lstack.push(yyval._$);
|
|
700
|
-
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
701
|
-
stack.push(newState);
|
|
702
|
-
break;
|
|
703
|
-
case 3:
|
|
704
|
-
return true;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
return true;
|
|
708
|
-
}, "parse")
|
|
709
|
-
};
|
|
710
|
-
var lexer = /* @__PURE__ */ function() {
|
|
711
|
-
var lexer2 = {
|
|
712
|
-
EOF: 1,
|
|
713
|
-
parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
|
|
714
|
-
if (this.yy.parser) {
|
|
715
|
-
this.yy.parser.parseError(str, hash);
|
|
716
|
-
} else {
|
|
717
|
-
throw new Error(str);
|
|
718
|
-
}
|
|
719
|
-
}, "parseError"),
|
|
720
|
-
// resets the lexer, sets new input
|
|
721
|
-
setInput: /* @__PURE__ */ __name(function(input, yy) {
|
|
722
|
-
this.yy = yy || this.yy || {};
|
|
723
|
-
this._input = input;
|
|
724
|
-
this._more = this._backtrack = this.done = false;
|
|
725
|
-
this.yylineno = this.yyleng = 0;
|
|
726
|
-
this.yytext = this.matched = this.match = "";
|
|
727
|
-
this.conditionStack = ["INITIAL"];
|
|
728
|
-
this.yylloc = {
|
|
729
|
-
first_line: 1,
|
|
730
|
-
first_column: 0,
|
|
731
|
-
last_line: 1,
|
|
732
|
-
last_column: 0
|
|
733
|
-
};
|
|
734
|
-
if (this.options.ranges) {
|
|
735
|
-
this.yylloc.range = [0, 0];
|
|
736
|
-
}
|
|
737
|
-
this.offset = 0;
|
|
738
|
-
return this;
|
|
739
|
-
}, "setInput"),
|
|
740
|
-
// consumes and returns one char from the input
|
|
741
|
-
input: /* @__PURE__ */ __name(function() {
|
|
742
|
-
var ch = this._input[0];
|
|
743
|
-
this.yytext += ch;
|
|
744
|
-
this.yyleng++;
|
|
745
|
-
this.offset++;
|
|
746
|
-
this.match += ch;
|
|
747
|
-
this.matched += ch;
|
|
748
|
-
var lines = ch.match(/(?:\r\n?|\n).*/g);
|
|
749
|
-
if (lines) {
|
|
750
|
-
this.yylineno++;
|
|
751
|
-
this.yylloc.last_line++;
|
|
752
|
-
} else {
|
|
753
|
-
this.yylloc.last_column++;
|
|
754
|
-
}
|
|
755
|
-
if (this.options.ranges) {
|
|
756
|
-
this.yylloc.range[1]++;
|
|
757
|
-
}
|
|
758
|
-
this._input = this._input.slice(1);
|
|
759
|
-
return ch;
|
|
760
|
-
}, "input"),
|
|
761
|
-
// unshifts one char (or a string) into the input
|
|
762
|
-
unput: /* @__PURE__ */ __name(function(ch) {
|
|
763
|
-
var len = ch.length;
|
|
764
|
-
var lines = ch.split(/(?:\r\n?|\n)/g);
|
|
765
|
-
this._input = ch + this._input;
|
|
766
|
-
this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
|
767
|
-
this.offset -= len;
|
|
768
|
-
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
|
769
|
-
this.match = this.match.substr(0, this.match.length - 1);
|
|
770
|
-
this.matched = this.matched.substr(0, this.matched.length - 1);
|
|
771
|
-
if (lines.length - 1) {
|
|
772
|
-
this.yylineno -= lines.length - 1;
|
|
773
|
-
}
|
|
774
|
-
var r = this.yylloc.range;
|
|
775
|
-
this.yylloc = {
|
|
776
|
-
first_line: this.yylloc.first_line,
|
|
777
|
-
last_line: this.yylineno + 1,
|
|
778
|
-
first_column: this.yylloc.first_column,
|
|
779
|
-
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
|
|
780
|
-
};
|
|
781
|
-
if (this.options.ranges) {
|
|
782
|
-
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
|
783
|
-
}
|
|
784
|
-
this.yyleng = this.yytext.length;
|
|
785
|
-
return this;
|
|
786
|
-
}, "unput"),
|
|
787
|
-
// When called from action, caches matched text and appends it on next action
|
|
788
|
-
more: /* @__PURE__ */ __name(function() {
|
|
789
|
-
this._more = true;
|
|
790
|
-
return this;
|
|
791
|
-
}, "more"),
|
|
792
|
-
// 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.
|
|
793
|
-
reject: /* @__PURE__ */ __name(function() {
|
|
794
|
-
if (this.options.backtrack_lexer) {
|
|
795
|
-
this._backtrack = true;
|
|
796
|
-
} else {
|
|
797
|
-
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(), {
|
|
798
|
-
text: "",
|
|
799
|
-
token: null,
|
|
800
|
-
line: this.yylineno
|
|
801
|
-
});
|
|
802
|
-
}
|
|
803
|
-
return this;
|
|
804
|
-
}, "reject"),
|
|
805
|
-
// retain first n characters of the match
|
|
806
|
-
less: /* @__PURE__ */ __name(function(n) {
|
|
807
|
-
this.unput(this.match.slice(n));
|
|
808
|
-
}, "less"),
|
|
809
|
-
// displays already matched input, i.e. for error messages
|
|
810
|
-
pastInput: /* @__PURE__ */ __name(function() {
|
|
811
|
-
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
812
|
-
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
813
|
-
}, "pastInput"),
|
|
814
|
-
// displays upcoming input, i.e. for error messages
|
|
815
|
-
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
816
|
-
var next = this.match;
|
|
817
|
-
if (next.length < 20) {
|
|
818
|
-
next += this._input.substr(0, 20 - next.length);
|
|
819
|
-
}
|
|
820
|
-
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
821
|
-
}, "upcomingInput"),
|
|
822
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
823
|
-
showPosition: /* @__PURE__ */ __name(function() {
|
|
824
|
-
var pre = this.pastInput();
|
|
825
|
-
var c = new Array(pre.length + 1).join("-");
|
|
826
|
-
return pre + this.upcomingInput() + "\n" + c + "^";
|
|
827
|
-
}, "showPosition"),
|
|
828
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
829
|
-
test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
|
|
830
|
-
var token, lines, backup;
|
|
831
|
-
if (this.options.backtrack_lexer) {
|
|
832
|
-
backup = {
|
|
833
|
-
yylineno: this.yylineno,
|
|
834
|
-
yylloc: {
|
|
835
|
-
first_line: this.yylloc.first_line,
|
|
836
|
-
last_line: this.last_line,
|
|
837
|
-
first_column: this.yylloc.first_column,
|
|
838
|
-
last_column: this.yylloc.last_column
|
|
839
|
-
},
|
|
840
|
-
yytext: this.yytext,
|
|
841
|
-
match: this.match,
|
|
842
|
-
matches: this.matches,
|
|
843
|
-
matched: this.matched,
|
|
844
|
-
yyleng: this.yyleng,
|
|
845
|
-
offset: this.offset,
|
|
846
|
-
_more: this._more,
|
|
847
|
-
_input: this._input,
|
|
848
|
-
yy: this.yy,
|
|
849
|
-
conditionStack: this.conditionStack.slice(0),
|
|
850
|
-
done: this.done
|
|
851
|
-
};
|
|
852
|
-
if (this.options.ranges) {
|
|
853
|
-
backup.yylloc.range = this.yylloc.range.slice(0);
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
|
857
|
-
if (lines) {
|
|
858
|
-
this.yylineno += lines.length;
|
|
859
|
-
}
|
|
860
|
-
this.yylloc = {
|
|
861
|
-
first_line: this.yylloc.last_line,
|
|
862
|
-
last_line: this.yylineno + 1,
|
|
863
|
-
first_column: this.yylloc.last_column,
|
|
864
|
-
last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
|
|
865
|
-
};
|
|
866
|
-
this.yytext += match[0];
|
|
867
|
-
this.match += match[0];
|
|
868
|
-
this.matches = match;
|
|
869
|
-
this.yyleng = this.yytext.length;
|
|
870
|
-
if (this.options.ranges) {
|
|
871
|
-
this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
|
872
|
-
}
|
|
873
|
-
this._more = false;
|
|
874
|
-
this._backtrack = false;
|
|
875
|
-
this._input = this._input.slice(match[0].length);
|
|
876
|
-
this.matched += match[0];
|
|
877
|
-
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
|
878
|
-
if (this.done && this._input) {
|
|
879
|
-
this.done = false;
|
|
880
|
-
}
|
|
881
|
-
if (token) {
|
|
882
|
-
return token;
|
|
883
|
-
} else if (this._backtrack) {
|
|
884
|
-
for (var k in backup) {
|
|
885
|
-
this[k] = backup[k];
|
|
886
|
-
}
|
|
887
|
-
return false;
|
|
888
|
-
}
|
|
889
|
-
return false;
|
|
890
|
-
}, "test_match"),
|
|
891
|
-
// return next match in input
|
|
892
|
-
next: /* @__PURE__ */ __name(function() {
|
|
893
|
-
if (this.done) {
|
|
894
|
-
return this.EOF;
|
|
895
|
-
}
|
|
896
|
-
if (!this._input) {
|
|
897
|
-
this.done = true;
|
|
898
|
-
}
|
|
899
|
-
var token, match, tempMatch, index;
|
|
900
|
-
if (!this._more) {
|
|
901
|
-
this.yytext = "";
|
|
902
|
-
this.match = "";
|
|
903
|
-
}
|
|
904
|
-
var rules = this._currentRules();
|
|
905
|
-
for (var i = 0; i < rules.length; i++) {
|
|
906
|
-
tempMatch = this._input.match(this.rules[rules[i]]);
|
|
907
|
-
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
|
908
|
-
match = tempMatch;
|
|
909
|
-
index = i;
|
|
910
|
-
if (this.options.backtrack_lexer) {
|
|
911
|
-
token = this.test_match(tempMatch, rules[i]);
|
|
912
|
-
if (token !== false) {
|
|
913
|
-
return token;
|
|
914
|
-
} else if (this._backtrack) {
|
|
915
|
-
match = false;
|
|
916
|
-
continue;
|
|
917
|
-
} else {
|
|
918
|
-
return false;
|
|
919
|
-
}
|
|
920
|
-
} else if (!this.options.flex) {
|
|
921
|
-
break;
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
if (match) {
|
|
926
|
-
token = this.test_match(match, rules[index]);
|
|
927
|
-
if (token !== false) {
|
|
928
|
-
return token;
|
|
929
|
-
}
|
|
930
|
-
return false;
|
|
931
|
-
}
|
|
932
|
-
if (this._input === "") {
|
|
933
|
-
return this.EOF;
|
|
934
|
-
} else {
|
|
935
|
-
return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
936
|
-
text: "",
|
|
937
|
-
token: null,
|
|
938
|
-
line: this.yylineno
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
}, "next"),
|
|
942
|
-
// return next match that has a token
|
|
943
|
-
lex: /* @__PURE__ */ __name(function lex() {
|
|
944
|
-
var r = this.next();
|
|
945
|
-
if (r) {
|
|
946
|
-
return r;
|
|
947
|
-
} else {
|
|
948
|
-
return this.lex();
|
|
949
|
-
}
|
|
950
|
-
}, "lex"),
|
|
951
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
952
|
-
begin: /* @__PURE__ */ __name(function begin(condition) {
|
|
953
|
-
this.conditionStack.push(condition);
|
|
954
|
-
}, "begin"),
|
|
955
|
-
// pop the previously active lexer condition state off the condition stack
|
|
956
|
-
popState: /* @__PURE__ */ __name(function popState() {
|
|
957
|
-
var n = this.conditionStack.length - 1;
|
|
958
|
-
if (n > 0) {
|
|
959
|
-
return this.conditionStack.pop();
|
|
960
|
-
} else {
|
|
961
|
-
return this.conditionStack[0];
|
|
962
|
-
}
|
|
963
|
-
}, "popState"),
|
|
964
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
965
|
-
_currentRules: /* @__PURE__ */ __name(function _currentRules() {
|
|
966
|
-
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
|
967
|
-
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
968
|
-
} else {
|
|
969
|
-
return this.conditions["INITIAL"].rules;
|
|
970
|
-
}
|
|
971
|
-
}, "_currentRules"),
|
|
972
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
973
|
-
topState: /* @__PURE__ */ __name(function topState(n) {
|
|
974
|
-
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
|
975
|
-
if (n >= 0) {
|
|
976
|
-
return this.conditionStack[n];
|
|
977
|
-
} else {
|
|
978
|
-
return "INITIAL";
|
|
979
|
-
}
|
|
980
|
-
}, "topState"),
|
|
981
|
-
// alias for begin(condition)
|
|
982
|
-
pushState: /* @__PURE__ */ __name(function pushState(condition) {
|
|
983
|
-
this.begin(condition);
|
|
984
|
-
}, "pushState"),
|
|
985
|
-
// return the number of states currently on the stack
|
|
986
|
-
stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
|
|
987
|
-
return this.conditionStack.length;
|
|
988
|
-
}, "stateStackSize"),
|
|
989
|
-
options: { "case-insensitive": true },
|
|
990
|
-
performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
991
|
-
switch ($avoiding_name_collisions) {
|
|
992
|
-
case 0:
|
|
993
|
-
this.pushState("csv");
|
|
994
|
-
return 4;
|
|
995
|
-
case 1:
|
|
996
|
-
this.pushState("csv");
|
|
997
|
-
return 4;
|
|
998
|
-
case 2:
|
|
999
|
-
return 10;
|
|
1000
|
-
case 3:
|
|
1001
|
-
return 5;
|
|
1002
|
-
case 4:
|
|
1003
|
-
return 12;
|
|
1004
|
-
case 5:
|
|
1005
|
-
this.pushState("escaped_text");
|
|
1006
|
-
return 18;
|
|
1007
|
-
case 6:
|
|
1008
|
-
return 20;
|
|
1009
|
-
case 7:
|
|
1010
|
-
this.popState("escaped_text");
|
|
1011
|
-
return 18;
|
|
1012
|
-
case 8:
|
|
1013
|
-
return 19;
|
|
1014
|
-
}
|
|
1015
|
-
}, "anonymous"),
|
|
1016
|
-
rules: [/^(?:sankey-beta\b)/i, /^(?:sankey\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
|
|
1017
|
-
conditions: { "csv": { "rules": [2, 3, 4, 5, 6, 7, 8], "inclusive": false }, "escaped_text": { "rules": [7, 8], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 8], "inclusive": true } }
|
|
1018
|
-
};
|
|
1019
|
-
return lexer2;
|
|
1020
|
-
}();
|
|
1021
|
-
parser2.lexer = lexer;
|
|
1022
|
-
function Parser() {
|
|
1023
|
-
this.yy = {};
|
|
1024
|
-
}
|
|
1025
|
-
__name(Parser, "Parser");
|
|
1026
|
-
Parser.prototype = parser2;
|
|
1027
|
-
parser2.Parser = Parser;
|
|
1028
|
-
return new Parser();
|
|
1029
|
-
}();
|
|
1030
|
-
parser.parser = parser;
|
|
1031
|
-
var sankey_default = parser;
|
|
1032
|
-
var links = [];
|
|
1033
|
-
var nodes = [];
|
|
1034
|
-
var nodesMap = /* @__PURE__ */ new Map();
|
|
1035
|
-
var clear2 = /* @__PURE__ */ __name(() => {
|
|
1036
|
-
links = [];
|
|
1037
|
-
nodes = [];
|
|
1038
|
-
nodesMap = /* @__PURE__ */ new Map();
|
|
1039
|
-
clear();
|
|
1040
|
-
}, "clear");
|
|
1041
|
-
var SankeyLink = (_a = class {
|
|
1042
|
-
constructor(source, target, value2 = 0) {
|
|
1043
|
-
this.source = source;
|
|
1044
|
-
this.target = target;
|
|
1045
|
-
this.value = value2;
|
|
1046
|
-
}
|
|
1047
|
-
}, __name(_a, "SankeyLink"), _a);
|
|
1048
|
-
var addLink = /* @__PURE__ */ __name((source, target, value2) => {
|
|
1049
|
-
links.push(new SankeyLink(source, target, value2));
|
|
1050
|
-
}, "addLink");
|
|
1051
|
-
var SankeyNode = (_b = class {
|
|
1052
|
-
constructor(ID) {
|
|
1053
|
-
this.ID = ID;
|
|
1054
|
-
}
|
|
1055
|
-
}, __name(_b, "SankeyNode"), _b);
|
|
1056
|
-
var findOrCreateNode = /* @__PURE__ */ __name((ID) => {
|
|
1057
|
-
ID = common_default.sanitizeText(ID, getConfig2());
|
|
1058
|
-
let node = nodesMap.get(ID);
|
|
1059
|
-
if (node === void 0) {
|
|
1060
|
-
node = new SankeyNode(ID);
|
|
1061
|
-
nodesMap.set(ID, node);
|
|
1062
|
-
nodes.push(node);
|
|
1063
|
-
}
|
|
1064
|
-
return node;
|
|
1065
|
-
}, "findOrCreateNode");
|
|
1066
|
-
var getNodes = /* @__PURE__ */ __name(() => nodes, "getNodes");
|
|
1067
|
-
var getLinks = /* @__PURE__ */ __name(() => links, "getLinks");
|
|
1068
|
-
var getGraph = /* @__PURE__ */ __name(() => ({
|
|
1069
|
-
nodes: nodes.map((node) => ({ id: node.ID })),
|
|
1070
|
-
links: links.map((link2) => ({
|
|
1071
|
-
source: link2.source.ID,
|
|
1072
|
-
target: link2.target.ID,
|
|
1073
|
-
value: link2.value
|
|
1074
|
-
}))
|
|
1075
|
-
}), "getGraph");
|
|
1076
|
-
var sankeyDB_default = {
|
|
1077
|
-
nodesMap,
|
|
1078
|
-
getConfig: /* @__PURE__ */ __name(() => getConfig2().sankey, "getConfig"),
|
|
1079
|
-
getNodes,
|
|
1080
|
-
getLinks,
|
|
1081
|
-
getGraph,
|
|
1082
|
-
addLink,
|
|
1083
|
-
findOrCreateNode,
|
|
1084
|
-
getAccTitle,
|
|
1085
|
-
setAccTitle,
|
|
1086
|
-
getAccDescription,
|
|
1087
|
-
setAccDescription,
|
|
1088
|
-
getDiagramTitle,
|
|
1089
|
-
setDiagramTitle,
|
|
1090
|
-
clear: clear2
|
|
1091
|
-
};
|
|
1092
|
-
var Uid = (_c = class {
|
|
1093
|
-
static next(name) {
|
|
1094
|
-
return new _c(name + ++_c.count);
|
|
1095
|
-
}
|
|
1096
|
-
constructor(id) {
|
|
1097
|
-
this.id = id;
|
|
1098
|
-
this.href = `#${id}`;
|
|
1099
|
-
}
|
|
1100
|
-
toString() {
|
|
1101
|
-
return "url(" + this.href + ")";
|
|
1102
|
-
}
|
|
1103
|
-
}, __name(_c, "Uid"), _c.count = 0, _c);
|
|
1104
|
-
var alignmentsMap = {
|
|
1105
|
-
left,
|
|
1106
|
-
right,
|
|
1107
|
-
center,
|
|
1108
|
-
justify
|
|
1109
|
-
};
|
|
1110
|
-
var draw = /* @__PURE__ */ __name(function(text, id, _version, diagObj) {
|
|
1111
|
-
const { securityLevel, sankey: conf } = getConfig2();
|
|
1112
|
-
const defaultSankeyConfig = defaultConfig2.sankey;
|
|
1113
|
-
let sandboxElement;
|
|
1114
|
-
if (securityLevel === "sandbox") {
|
|
1115
|
-
sandboxElement = select("#i" + id);
|
|
1116
|
-
}
|
|
1117
|
-
const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
|
|
1118
|
-
const svg = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select(`[id="${id}"]`);
|
|
1119
|
-
const width = (conf == null ? void 0 : conf.width) ?? defaultSankeyConfig.width;
|
|
1120
|
-
const height = (conf == null ? void 0 : conf.height) ?? defaultSankeyConfig.width;
|
|
1121
|
-
const useMaxWidth = (conf == null ? void 0 : conf.useMaxWidth) ?? defaultSankeyConfig.useMaxWidth;
|
|
1122
|
-
const nodeAlignment = (conf == null ? void 0 : conf.nodeAlignment) ?? defaultSankeyConfig.nodeAlignment;
|
|
1123
|
-
const prefix = (conf == null ? void 0 : conf.prefix) ?? defaultSankeyConfig.prefix;
|
|
1124
|
-
const suffix = (conf == null ? void 0 : conf.suffix) ?? defaultSankeyConfig.suffix;
|
|
1125
|
-
const showValues = (conf == null ? void 0 : conf.showValues) ?? defaultSankeyConfig.showValues;
|
|
1126
|
-
const graph = diagObj.db.getGraph();
|
|
1127
|
-
const nodeAlign = alignmentsMap[nodeAlignment];
|
|
1128
|
-
const nodeWidth = 10;
|
|
1129
|
-
const sankey = Sankey().nodeId((d) => d.id).nodeWidth(nodeWidth).nodePadding(10 + (showValues ? 15 : 0)).nodeAlign(nodeAlign).extent([
|
|
1130
|
-
[0, 0],
|
|
1131
|
-
[width, height]
|
|
1132
|
-
]);
|
|
1133
|
-
sankey(graph);
|
|
1134
|
-
const colorScheme = ordinal(d3schemeTableau10);
|
|
1135
|
-
svg.append("g").attr("class", "nodes").selectAll(".node").data(graph.nodes).join("g").attr("class", "node").attr("id", (d) => (d.uid = Uid.next("node-")).id).attr("transform", function(d) {
|
|
1136
|
-
return "translate(" + d.x0 + "," + d.y0 + ")";
|
|
1137
|
-
}).attr("x", (d) => d.x0).attr("y", (d) => d.y0).append("rect").attr("height", (d) => {
|
|
1138
|
-
return d.y1 - d.y0;
|
|
1139
|
-
}).attr("width", (d) => d.x1 - d.x0).attr("fill", (d) => colorScheme(d.id));
|
|
1140
|
-
const getText = /* @__PURE__ */ __name(({ id: id2, value: value2 }) => {
|
|
1141
|
-
if (!showValues) {
|
|
1142
|
-
return id2;
|
|
1143
|
-
}
|
|
1144
|
-
return `${id2}
|
|
1145
|
-
${prefix}${Math.round(value2 * 100) / 100}${suffix}`;
|
|
1146
|
-
}, "getText");
|
|
1147
|
-
svg.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(graph.nodes).join("text").attr("x", (d) => d.x0 < width / 2 ? d.x1 + 6 : d.x0 - 6).attr("y", (d) => (d.y1 + d.y0) / 2).attr("dy", `${showValues ? "0" : "0.35"}em`).attr("text-anchor", (d) => d.x0 < width / 2 ? "start" : "end").text(getText);
|
|
1148
|
-
const link2 = svg.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(graph.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply");
|
|
1149
|
-
const linkColor = (conf == null ? void 0 : conf.linkColor) ?? "gradient";
|
|
1150
|
-
if (linkColor === "gradient") {
|
|
1151
|
-
const gradient = link2.append("linearGradient").attr("id", (d) => (d.uid = Uid.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (d) => d.source.x1).attr("x2", (d) => d.target.x0);
|
|
1152
|
-
gradient.append("stop").attr("offset", "0%").attr("stop-color", (d) => colorScheme(d.source.id));
|
|
1153
|
-
gradient.append("stop").attr("offset", "100%").attr("stop-color", (d) => colorScheme(d.target.id));
|
|
1154
|
-
}
|
|
1155
|
-
let coloring;
|
|
1156
|
-
switch (linkColor) {
|
|
1157
|
-
case "gradient":
|
|
1158
|
-
coloring = /* @__PURE__ */ __name((d) => d.uid, "coloring");
|
|
1159
|
-
break;
|
|
1160
|
-
case "source":
|
|
1161
|
-
coloring = /* @__PURE__ */ __name((d) => colorScheme(d.source.id), "coloring");
|
|
1162
|
-
break;
|
|
1163
|
-
case "target":
|
|
1164
|
-
coloring = /* @__PURE__ */ __name((d) => colorScheme(d.target.id), "coloring");
|
|
1165
|
-
break;
|
|
1166
|
-
default:
|
|
1167
|
-
coloring = linkColor;
|
|
1168
|
-
}
|
|
1169
|
-
link2.append("path").attr("d", d3SankeyLinkHorizontal()).attr("stroke", coloring).attr("stroke-width", (d) => Math.max(1, d.width));
|
|
1170
|
-
setupGraphViewbox(void 0, svg, 0, useMaxWidth);
|
|
1171
|
-
}, "draw");
|
|
1172
|
-
var sankeyRenderer_default = {
|
|
1173
|
-
draw
|
|
1174
|
-
};
|
|
1175
|
-
var prepareTextForParsing = /* @__PURE__ */ __name((text) => {
|
|
1176
|
-
const textToParse = text.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, "\n").trim();
|
|
1177
|
-
return textToParse;
|
|
1178
|
-
}, "prepareTextForParsing");
|
|
1179
|
-
var getStyles = /* @__PURE__ */ __name((options) => `.label {
|
|
1180
|
-
font-family: ${options.fontFamily};
|
|
1181
|
-
}`, "getStyles");
|
|
1182
|
-
var styles_default = getStyles;
|
|
1183
|
-
var originalParse = sankey_default.parse.bind(sankey_default);
|
|
1184
|
-
sankey_default.parse = (text) => originalParse(prepareTextForParsing(text));
|
|
1185
|
-
var diagram = {
|
|
1186
|
-
styles: styles_default,
|
|
1187
|
-
parser: sankey_default,
|
|
1188
|
-
db: sankeyDB_default,
|
|
1189
|
-
renderer: sankeyRenderer_default
|
|
1190
|
-
};
|
|
1191
|
-
export {
|
|
1192
|
-
diagram
|
|
1193
|
-
};
|
|
1194
|
-
//# sourceMappingURL=sankeyDiagram-TZEHDZUN-p1th2H-P.js.map
|