@countermeasure-platform/web-components 1.2.1 → 1.2.2-dev.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{arc-jVbrWVYZ.js → arc-DOJ9myHo.js} +21 -21
- package/dist/{arc-jVbrWVYZ.js.map → arc-DOJ9myHo.js.map} +1 -1
- package/dist/architecture-7EHR7CIX-RjIwnEbG.js +3 -0
- package/dist/{architectureDiagram-2XIMDMQ5-D5q0ma9h.js → architectureDiagram-3BPJPVTR-cYFnhp15.js} +165 -152
- package/dist/{architectureDiagram-2XIMDMQ5-D5q0ma9h.js.map → architectureDiagram-3BPJPVTR-cYFnhp15.js.map} +1 -1
- package/dist/{array-DXadUs1s.js → array-BLp0zq5K.js} +1 -1
- package/dist/{array-DXadUs1s.js.map → array-BLp0zq5K.js.map} +1 -1
- package/dist/{blockDiagram-WCTKOSBZ-BH3jwWeU.js → blockDiagram-GPEHLZMM-DNLPMFXL.js} +994 -864
- package/dist/blockDiagram-GPEHLZMM-DNLPMFXL.js.map +1 -0
- package/dist/{c4Diagram-IC4MRINW-OFLrunYI.js → c4Diagram-AAUBKEIU-G8g3OBBg.js} +232 -235
- package/dist/c4Diagram-AAUBKEIU-G8g3OBBg.js.map +1 -0
- package/dist/channel-MTYqUJFm.js +7 -0
- package/dist/{channel-LRbq43st.js.map → channel-MTYqUJFm.js.map} +1 -1
- package/dist/{chunk-KX2RTZJC-d9jFqUAY.js → chunk-2J33WTMH-BKsVIUnb.js} +4 -4
- package/dist/{chunk-KX2RTZJC-d9jFqUAY.js.map → chunk-2J33WTMH-BKsVIUnb.js.map} +1 -1
- package/dist/chunk-3OPIFGDE-CcNRL44h.js +3669 -0
- package/dist/chunk-3OPIFGDE-CcNRL44h.js.map +1 -0
- package/dist/{chunk-4BX2VUAB-BS9gpN-y.js → chunk-4BX2VUAB-BeLKo9Pn.js} +2 -2
- package/dist/{chunk-4BX2VUAB-BS9gpN-y.js.map → chunk-4BX2VUAB-BeLKo9Pn.js.map} +1 -1
- package/dist/{chunk-R5LLSJPH-c1IfaK5D.js → chunk-4EGX6M5U-Bh9as06l.js} +13 -13
- package/dist/chunk-4EGX6M5U-Bh9as06l.js.map +1 -0
- package/dist/{chunk-55IACEB6-DZ-UBhHX.js → chunk-55IACEB6-CuKbiO89.js} +3 -3
- package/dist/{chunk-55IACEB6-DZ-UBhHX.js.map → chunk-55IACEB6-CuKbiO89.js.map} +1 -1
- package/dist/chunk-5DO6E6H7-CAB8pWf5.js +25 -0
- package/dist/chunk-5DO6E6H7-CAB8pWf5.js.map +1 -0
- package/dist/{chunk-GEFDOKGD-DGJJEGSm.js → chunk-5ZQYHXKU-CjOcwRY6.js} +570 -326
- package/dist/chunk-5ZQYHXKU-CjOcwRY6.js.map +1 -0
- package/dist/{chunk-WL4C6EOR-BV-op7zg.js → chunk-727SXJPM-kowsFLrz.js} +724 -569
- package/dist/chunk-727SXJPM-kowsFLrz.js.map +1 -0
- package/dist/{chunk-NQ4KR5QH-C0nWShNk.js → chunk-AQP2D5EJ-Bc1gUIeA.js} +384 -362
- package/dist/chunk-AQP2D5EJ-Bc1gUIeA.js.map +1 -0
- package/dist/{chunk-OZEHJAEY-BsQ56PV-.js → chunk-BR22UD5L-BCFxmd5-.js} +16 -16
- package/dist/chunk-BR22UD5L-BCFxmd5-.js.map +1 -0
- package/dist/{chunk-MX3YWQON-D43mcq1f.js → chunk-BSJP7CBP-Bl94i3-1.js} +7 -5
- package/dist/chunk-BSJP7CBP-Bl94i3-1.js.map +1 -0
- package/dist/chunk-CSCIHK7Q-DyRIc27i.js +2868 -0
- package/dist/chunk-CSCIHK7Q-DyRIc27i.js.map +1 -0
- package/dist/chunk-FHYWG6QK-kLWdRarG.js +25 -0
- package/dist/chunk-FHYWG6QK-kLWdRarG.js.map +1 -0
- package/dist/{chunk-FMBD7UC4-1IxrpdPX.js → chunk-FMBD7UC4-IdpWVRCU.js} +2 -2
- package/dist/{chunk-FMBD7UC4-1IxrpdPX.js.map → chunk-FMBD7UC4-IdpWVRCU.js.map} +1 -1
- package/dist/chunk-KSCS5N6A-CVcDS9QV.js +563 -0
- package/dist/chunk-KSCS5N6A-CVcDS9QV.js.map +1 -0
- package/dist/{chunk-YBOYWFTD-DkjEOcgZ.js → chunk-L5ZTLDWV-Day0EgsR.js} +9 -9
- package/dist/{chunk-YBOYWFTD-DkjEOcgZ.js.map → chunk-L5ZTLDWV-Day0EgsR.js.map} +1 -1
- package/dist/chunk-LZXEDZCA-BO_GpQSR.js +51 -0
- package/dist/chunk-LZXEDZCA-BO_GpQSR.js.map +1 -0
- package/dist/chunk-MPE355IW-BkN6MrMO.js +25 -0
- package/dist/chunk-MPE355IW-BkN6MrMO.js.map +1 -0
- package/dist/chunk-MZUSXYTE-94iWO-dh.js +32 -0
- package/dist/chunk-MZUSXYTE-94iWO-dh.js.map +1 -0
- package/dist/chunk-N66VUXT2-QbIUkiJZ.js +56 -0
- package/dist/chunk-N66VUXT2-QbIUkiJZ.js.map +1 -0
- package/dist/{chunk-JSJVCQXG-Do17yYig.js → chunk-ND2GUHAM-Boh7GenS.js} +6 -6
- package/dist/{chunk-JSJVCQXG-Do17yYig.js.map → chunk-ND2GUHAM-Boh7GenS.js.map} +1 -1
- package/dist/chunk-NNHCCRGN-CNU0zvRn.js +20603 -0
- package/dist/chunk-NNHCCRGN-CNU0zvRn.js.map +1 -0
- package/dist/{chunk-PQ6SQG4A-Cpfc5F4u.js → chunk-NZK2D7GU-D4Ird7wv.js} +4 -4
- package/dist/{chunk-PQ6SQG4A-Cpfc5F4u.js.map → chunk-NZK2D7GU-D4Ird7wv.js.map} +1 -1
- package/dist/{chunk-PU5JKC2W-DNpn_Yik.js → chunk-O5CBEL6O-DThtyjPO.js} +85 -74
- package/dist/{chunk-PU5JKC2W-DNpn_Yik.js.map → chunk-O5CBEL6O-DThtyjPO.js.map} +1 -1
- package/dist/chunk-PUPMXCY4-DsO2K8st.js +25 -0
- package/dist/chunk-PUPMXCY4-DsO2K8st.js.map +1 -0
- package/dist/{chunk-QZHKN3VN-kDNdTVLo.js → chunk-QZHKN3VN-DC5aJQQT.js} +2 -2
- package/dist/{chunk-QZHKN3VN-kDNdTVLo.js.map → chunk-QZHKN3VN-DC5aJQQT.js.map} +1 -1
- package/dist/chunk-UIBZB4QT-Cu3IcTk1.js +25 -0
- package/dist/chunk-UIBZB4QT-Cu3IcTk1.js.map +1 -0
- package/dist/chunk-WCWK7LTN-DpMt57Ty.js +33 -0
- package/dist/chunk-WCWK7LTN-DpMt57Ty.js.map +1 -0
- package/dist/chunk-WU5MYG2G-mzocEmS2.js +12 -0
- package/dist/{chunk-HHEYEP7N-DJ1b-gA8.js.map → chunk-WU5MYG2G-mzocEmS2.js.map} +1 -1
- package/dist/{chunk-XPW4576I-BqiPnb3d.js → chunk-XPW4576I-BwxN5U1_.js} +2 -2
- package/dist/{chunk-XPW4576I-BqiPnb3d.js.map → chunk-XPW4576I-BwxN5U1_.js.map} +1 -1
- package/dist/classDiagram-4FO5ZUOK-CZv04EX-.js +31 -0
- package/dist/{classDiagram-VBA2DB6C-DZfC0xPM.js.map → classDiagram-4FO5ZUOK-CZv04EX-.js.map} +1 -1
- package/dist/classDiagram-v2-Q7XG4LA2-aOPSPoxt.js +31 -0
- package/dist/{classDiagram-v2-RAHNMMFH-CtWRD1ax.js.map → classDiagram-v2-Q7XG4LA2-aOPSPoxt.js.map} +1 -1
- package/dist/component-CBXhVCNE.js +163 -0
- package/dist/component-CBXhVCNE.js.map +1 -0
- package/dist/components/brand/index.d.ts +8 -2
- package/dist/components/brand/index.d.ts.map +1 -1
- package/dist/components/brand/index.js +58 -31
- package/dist/components/brand/index.js.map +1 -1
- package/dist/components/brand/types.d.ts +8 -0
- package/dist/components/brand/types.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-DxM02fly.js → cose-bilkent-S5V4N54A-D_hwzCJc.js} +7 -8
- package/dist/{cose-bilkent-S5V4N54A-DxM02fly.js.map → cose-bilkent-S5V4N54A-D_hwzCJc.js.map} +1 -1
- package/dist/{cytoscape.esm-2vKMh7AJ.js → cytoscape.esm-C85eXBIz.js} +1 -1
- package/dist/{cytoscape.esm-2vKMh7AJ.js.map → cytoscape.esm-C85eXBIz.js.map} +1 -1
- package/dist/dagre-BM42HDAG-DBqY2dVf.js +299 -0
- package/dist/dagre-BM42HDAG-DBqY2dVf.js.map +1 -0
- package/dist/dagre-IxFkiJHF.js +1938 -0
- package/dist/dagre-IxFkiJHF.js.map +1 -0
- package/dist/{defaultLocale-PLHpRrsr.js → defaultLocale-DSDxELFN.js} +1 -1
- package/dist/{defaultLocale-PLHpRrsr.js.map → defaultLocale-DSDxELFN.js.map} +1 -1
- package/dist/{diagram-IFDJBPK2-D-Enf1mK.js → diagram-2AECGRRQ-BwC5Qbme.js} +39 -39
- package/dist/{diagram-IFDJBPK2-D-Enf1mK.js.map → diagram-2AECGRRQ-BwC5Qbme.js.map} +1 -1
- package/dist/diagram-5GNKFQAL-BpJ9oZ4s.js +103 -0
- package/dist/diagram-5GNKFQAL-BpJ9oZ4s.js.map +1 -0
- package/dist/diagram-KO2AKTUF-kSLn21uw.js +434 -0
- package/dist/diagram-KO2AKTUF-kSLn21uw.js.map +1 -0
- package/dist/{diagram-P4PSJMXO-O8g_RIkM.js → diagram-LMA3HP47-BRqyGMLP.js} +43 -43
- package/dist/{diagram-P4PSJMXO-O8g_RIkM.js.map → diagram-LMA3HP47-BRqyGMLP.js.map} +1 -1
- package/dist/{diagram-E7M64L7V-Co7O3gub.js → diagram-OG6HWLK6-BsskLXHm.js} +171 -174
- package/dist/diagram-OG6HWLK6-BsskLXHm.js.map +1 -0
- package/dist/{dist-BrNloUiz.js → dist-BScrlPBC.js} +32 -23
- package/dist/dist-BScrlPBC.js.map +1 -0
- package/dist/{erDiagram-INFDFZHY-C42JeR9I.js → erDiagram-TEJ5UH35-DzB7hnCi.js} +198 -164
- package/dist/erDiagram-TEJ5UH35-DzB7hnCi.js.map +1 -0
- package/dist/eventmodeling-FCH6USID-HcA67HMu.js +3 -0
- package/dist/{flowDiagram-PKNHOUZH-DInJjOz3.js → flowDiagram-I6XJVG4X-RYkPtPRG.js} +453 -469
- package/dist/flowDiagram-I6XJVG4X-RYkPtPRG.js.map +1 -0
- package/dist/{ganttDiagram-A5KZAMGK-Dgp-4Yss.js → ganttDiagram-6RSMTGT7-BfjlFVNd.js} +340 -333
- package/dist/ganttDiagram-6RSMTGT7-BfjlFVNd.js.map +1 -0
- package/dist/gitGraph-WXDBUCRP-D60yP8mT.js +3 -0
- package/dist/gitGraphDiagram-PVQCEYII-DbUp_ElG.js +731 -0
- package/dist/gitGraphDiagram-PVQCEYII-DbUp_ElG.js.map +1 -0
- package/dist/graphlib-k-wJtbbK.js +1268 -0
- package/dist/graphlib-k-wJtbbK.js.map +1 -0
- package/dist/icons/lucide.d.ts +1 -2
- package/dist/icons/lucide.d.ts.map +1 -1
- package/dist/icons/lucide.js.map +1 -1
- package/dist/info-J43DQDTF-DDmtkMBG.js +3 -0
- package/dist/{infoDiagram-LFFYTUFH-DajJJRvc.js → infoDiagram-5YYISTIA-C0TqWTrr.js} +7 -7
- package/dist/{infoDiagram-LFFYTUFH-DajJJRvc.js.map → infoDiagram-5YYISTIA-C0TqWTrr.js.map} +1 -1
- package/dist/{init-DcLTaNW1.js → init-CGzIZb6J.js} +1 -1
- package/dist/{init-DcLTaNW1.js.map → init-CGzIZb6J.js.map} +1 -1
- package/dist/{ishikawaDiagram-PHBUUO56-qHBJm2LT.js → ishikawaDiagram-YF4QCWOH-Cyk_Antz.js} +98 -97
- package/dist/ishikawaDiagram-YF4QCWOH-Cyk_Antz.js.map +1 -0
- package/dist/{journeyDiagram-4ABVD52K-PgfYdoDM.js → journeyDiagram-JHISSGLW-CTl8eDDe.js} +78 -78
- package/dist/journeyDiagram-JHISSGLW-CTl8eDDe.js.map +1 -0
- package/dist/{kanban-definition-K7BYSVSG-DFRT8j7A.js → kanban-definition-UN3LZRKU-homeDoHF.js} +46 -44
- package/dist/{kanban-definition-K7BYSVSG-DFRT8j7A.js.map → kanban-definition-UN3LZRKU-homeDoHF.js.map} +1 -1
- package/dist/{katex-BZdHnXin.js → katex-CgkxVokH.js} +1 -1
- package/dist/{katex-BZdHnXin.js.map → katex-CgkxVokH.js.map} +1 -1
- package/dist/line-k_aZSToM.js +36 -0
- package/dist/{line-Cq1AZT4f.js.map → line-k_aZSToM.js.map} +1 -1
- package/dist/{linear-BnJD01Xn.js → linear-Dpcbf4VP.js} +5 -5
- package/dist/{linear-BnJD01Xn.js.map → linear-Dpcbf4VP.js.map} +1 -1
- package/dist/{mermaid-parser.core-Dz5qv4CI.js → mermaid-parser.core-B_q76LYz.js} +32 -17
- package/dist/mermaid-parser.core-B_q76LYz.js.map +1 -0
- package/dist/mermaid.core-DAh-gNcn.js +997 -0
- package/dist/mermaid.core-DAh-gNcn.js.map +1 -0
- package/dist/{mindmap-definition-YRQLILUH-D95OPRMh.js → mindmap-definition-RKZ34NQL-Cjglmmr7.js} +153 -108
- package/dist/mindmap-definition-RKZ34NQL-Cjglmmr7.js.map +1 -0
- package/dist/{ordinal-CC9tfh_g.js → ordinal-DHGdAr1Y.js} +2 -2
- package/dist/{ordinal-CC9tfh_g.js.map → ordinal-DHGdAr1Y.js.map} +1 -1
- package/dist/packet-YPE3B663-Bo9N32Mb.js +3 -0
- package/dist/{path-y0uQCOMW.js → path-D-DDb3Wo.js} +1 -1
- package/dist/{path-y0uQCOMW.js.map → path-D-DDb3Wo.js.map} +1 -1
- package/dist/pie-LRSECV5Y-DndCyILX.js +3 -0
- package/dist/pieDiagram-4H26LBE5-Swbny_uk.js +167 -0
- package/dist/pieDiagram-4H26LBE5-Swbny_uk.js.map +1 -0
- package/dist/{quadrantDiagram-337W2JSQ-CcKc-h2o.js → quadrantDiagram-W4KKPZXB-kyt1iJkC.js} +359 -332
- package/dist/quadrantDiagram-W4KKPZXB-kyt1iJkC.js.map +1 -0
- package/dist/radar-GUYGQ44K-DpLG1fRN.js +3 -0
- package/dist/react/brand/index.d.ts +13 -1
- package/dist/react/brand/index.d.ts.map +1 -1
- package/dist/react/brand.js +28 -3
- package/dist/react/brand.js.map +1 -1
- package/dist/react/sidebar.d.ts +22 -1
- package/dist/react/sidebar.d.ts.map +1 -1
- package/dist/react/sidebar.js +26 -2
- package/dist/react/sidebar.js.map +1 -1
- package/dist/react/topology.js +1 -1
- package/dist/react.js +100 -100
- package/dist/{requirementDiagram-Z7DCOOCP-aPcaPduF.js → requirementDiagram-4Y6WPE33-DWRks7dz.js} +153 -133
- package/dist/requirementDiagram-4Y6WPE33-DWRks7dz.js.map +1 -0
- package/dist/{rough.esm-C9rQ9YkE.js → rough.esm-C7tiDdBn.js} +1 -1
- package/dist/{rough.esm-C9rQ9YkE.js.map → rough.esm-C7tiDdBn.js.map} +1 -1
- package/dist/{sankeyDiagram-WA2Y5GQK-CO_lUqQX.js → sankeyDiagram-5OEKKPKP-J_SVMd-0.js} +125 -76
- package/dist/{sankeyDiagram-WA2Y5GQK-CO_lUqQX.js.map → sankeyDiagram-5OEKKPKP-J_SVMd-0.js.map} +1 -1
- package/dist/sequenceDiagram-3UESZ5HK-BMhjbe8U.js +4167 -0
- package/dist/sequenceDiagram-3UESZ5HK-BMhjbe8U.js.map +1 -0
- package/dist/sidebar/component.d.ts +5 -0
- package/dist/sidebar/component.d.ts.map +1 -1
- package/dist/sidebar/index.d.ts +1 -1
- package/dist/sidebar/index.d.ts.map +1 -1
- package/dist/sidebar/index.js +1 -1
- package/dist/sidebar/index.js.map +1 -1
- package/dist/sidebar/types.d.ts +59 -0
- package/dist/sidebar/types.d.ts.map +1 -1
- package/dist/{src-D1EMXotX.js → src-CWnvxuyh.js} +603 -591
- package/dist/{src-D1EMXotX.js.map → src-CWnvxuyh.js.map} +1 -1
- package/dist/{src-BhNgmpel.js → src-DngnQkx_.js} +4 -5
- package/dist/{src-BhNgmpel.js.map → src-DngnQkx_.js.map} +1 -1
- package/dist/stateDiagram-AJRCARHV-x4JHehDk.js +220 -0
- package/dist/stateDiagram-AJRCARHV-x4JHehDk.js.map +1 -0
- package/dist/stateDiagram-v2-BHNVJYJU-CO93vpHl.js +29 -0
- package/dist/{stateDiagram-v2-FVOUBMTO-CAWy0Pkh.js.map → stateDiagram-v2-BHNVJYJU-CO93vpHl.js.map} +1 -1
- package/dist/styles/components/brand.css +30 -0
- package/dist/styles/sidebar.css +568 -0
- package/dist/styles/tenant-ui.css +3 -4
- package/dist/styles/threat-library.css +0 -1
- package/dist/styles/tokens.css +0 -1
- package/dist/{timeline-definition-YZTLITO2-CjxxCuOg.js → timeline-definition-PNZ67QCA-rsiMN1-p.js} +517 -279
- package/dist/timeline-definition-PNZ67QCA-rsiMN1-p.js.map +1 -0
- package/dist/{topology-C8cyIHlB.js → topology-B9Lv-y1-.js} +181 -182
- package/dist/{topology-C8cyIHlB.js.map → topology-B9Lv-y1-.js.map} +1 -1
- package/dist/treeView-BLDUP644-mJdM3Q6x.js +3 -0
- package/dist/treemap-LRROVOQU-BbNMhR6z.js +3 -0
- package/dist/{value-gSPnIECy.js → value-CnwEagIg.js} +2 -2
- package/dist/{value-gSPnIECy.js.map → value-CnwEagIg.js.map} +1 -1
- package/dist/{vennDiagram-LZ73GAT5-FqpGoq2s.js → vennDiagram-CIIHVFJN-JUCgWboO.js} +98 -98
- package/dist/{vennDiagram-LZ73GAT5-FqpGoq2s.js.map → vennDiagram-CIIHVFJN-JUCgWboO.js.map} +1 -1
- package/dist/visualization/mermaid-diagram/index.js +1 -1
- package/dist/wardley-L42UT6IY-DB53GwcN.js +3 -0
- package/dist/wardleyDiagram-YWT4CUSO-D9ZPcSHL.js +646 -0
- package/dist/wardleyDiagram-YWT4CUSO-D9ZPcSHL.js.map +1 -0
- package/dist/{xychartDiagram-JWTSCODW-BNEAK79X.js → xychartDiagram-2RQKCTM6-D3ufsY0S.js} +146 -143
- package/dist/{xychartDiagram-JWTSCODW-BNEAK79X.js.map → xychartDiagram-2RQKCTM6-D3ufsY0S.js.map} +1 -1
- package/package.json +1 -1
- package/src/components/brand/index.ts +63 -0
- package/src/components/brand/types.ts +9 -0
- package/src/components/theme/theme-studio-review.test.ts +34 -0
- package/src/icons/lucide.ts +1 -2
- package/src/react/brand/index.test.tsx +28 -0
- package/src/react/brand/index.tsx +38 -0
- package/src/react/sidebar.test.tsx +30 -0
- package/src/react/sidebar.tsx +52 -1
- package/src/sidebar/component.test.ts +109 -0
- package/src/sidebar/component.ts +231 -42
- package/src/sidebar/index.ts +1 -0
- package/src/sidebar/types.ts +60 -0
- package/src/styles/components/brand.css +30 -0
- package/src/styles/sidebar.css +568 -0
- package/src/styles/tenant-ui.css +3 -4
- package/src/styles/threat-library.css +0 -1
- package/src/styles/tokens.css +0 -1
- package/dist/_basePickBy-BQMPE4-n.js +0 -168
- package/dist/_basePickBy-BQMPE4-n.js.map +0 -1
- package/dist/_baseUniq-Bdp_vFUv.js +0 -684
- package/dist/_baseUniq-Bdp_vFUv.js.map +0 -1
- package/dist/architecture-PBZL5I3N-Zk3GmKE8.js +0 -3
- package/dist/blockDiagram-WCTKOSBZ-BH3jwWeU.js.map +0 -1
- package/dist/c4Diagram-IC4MRINW-OFLrunYI.js.map +0 -1
- package/dist/channel-LRbq43st.js +0 -7
- package/dist/chunk-7E7YKBS2-BsywoVTt.js +0 -25
- package/dist/chunk-7E7YKBS2-BsywoVTt.js.map +0 -1
- package/dist/chunk-7R4GIKGN-DJmroLCH.js +0 -2054
- package/dist/chunk-7R4GIKGN-DJmroLCH.js.map +0 -1
- package/dist/chunk-C72U2L5F-BwPwVDcP.js +0 -25
- package/dist/chunk-C72U2L5F-BwPwVDcP.js.map +0 -1
- package/dist/chunk-EGIJ26TM-DKd5cEgn.js +0 -25
- package/dist/chunk-EGIJ26TM-DKd5cEgn.js.map +0 -1
- package/dist/chunk-GEFDOKGD-DGJJEGSm.js.map +0 -1
- package/dist/chunk-GLR3WWYH-BDwmgwCA.js +0 -43
- package/dist/chunk-GLR3WWYH-BDwmgwCA.js.map +0 -1
- package/dist/chunk-HHEYEP7N-DJ1b-gA8.js +0 -12
- package/dist/chunk-KYZI473N-BXYCe83A.js +0 -3437
- package/dist/chunk-KYZI473N-BXYCe83A.js.map +0 -1
- package/dist/chunk-L3YUKLVL-Y5k8UNMf.js +0 -25
- package/dist/chunk-L3YUKLVL-Y5k8UNMf.js.map +0 -1
- package/dist/chunk-MX3YWQON-D43mcq1f.js.map +0 -1
- package/dist/chunk-NBPlniwU.js +0 -23
- package/dist/chunk-NQ4KR5QH-C0nWShNk.js.map +0 -1
- package/dist/chunk-O4XLMI2P-DtGEm9QX.js +0 -514
- package/dist/chunk-O4XLMI2P-DtGEm9QX.js.map +0 -1
- package/dist/chunk-OZEHJAEY-BsQ56PV-.js.map +0 -1
- package/dist/chunk-R5LLSJPH-c1IfaK5D.js.map +0 -1
- package/dist/chunk-WL4C6EOR-BV-op7zg.js.map +0 -1
- package/dist/chunk-XIRO2GV7-Bv1hlNLi.js +0 -32
- package/dist/chunk-XIRO2GV7-Bv1hlNLi.js.map +0 -1
- package/dist/chunk-XZSTWKYB-C7maKWEr.js +0 -15799
- package/dist/chunk-XZSTWKYB-C7maKWEr.js.map +0 -1
- package/dist/classDiagram-VBA2DB6C-DZfC0xPM.js +0 -31
- package/dist/classDiagram-v2-RAHNMMFH-CtWRD1ax.js +0 -31
- package/dist/clone-CliVdNc8.js +0 -10
- package/dist/clone-CliVdNc8.js.map +0 -1
- package/dist/component-C1Jiz1Ki.js +0 -103
- package/dist/component-C1Jiz1Ki.js.map +0 -1
- package/dist/dagre-BqC9mhMk.js +0 -1485
- package/dist/dagre-BqC9mhMk.js.map +0 -1
- package/dist/dagre-KLK3FWXG-DTKcsol6.js +0 -296
- package/dist/dagre-KLK3FWXG-DTKcsol6.js.map +0 -1
- package/dist/diagram-E7M64L7V-Co7O3gub.js.map +0 -1
- package/dist/dist-BrNloUiz.js.map +0 -1
- package/dist/erDiagram-INFDFZHY-C42JeR9I.js.map +0 -1
- package/dist/flowDiagram-PKNHOUZH-DInJjOz3.js.map +0 -1
- package/dist/ganttDiagram-A5KZAMGK-Dgp-4Yss.js.map +0 -1
- package/dist/gitGraph-HDMCJU4V-D_QsK6Rt.js +0 -3
- package/dist/gitGraphDiagram-K3NZZRJ6-Dr_X0dND.js +0 -628
- package/dist/gitGraphDiagram-K3NZZRJ6-Dr_X0dND.js.map +0 -1
- package/dist/graphlib-ecencZTG.js +0 -227
- package/dist/graphlib-ecencZTG.js.map +0 -1
- package/dist/info-3K5VOQVL-BbLiZXwn.js +0 -3
- package/dist/isArrayLikeObject-Bjsxaqj7.js +0 -580
- package/dist/isArrayLikeObject-Bjsxaqj7.js.map +0 -1
- package/dist/isEmpty-CeZZUVts.js +0 -37
- package/dist/isEmpty-CeZZUVts.js.map +0 -1
- package/dist/ishikawaDiagram-PHBUUO56-qHBJm2LT.js.map +0 -1
- package/dist/journeyDiagram-4ABVD52K-PgfYdoDM.js.map +0 -1
- package/dist/line-Cq1AZT4f.js +0 -36
- package/dist/math-D4gdAuwG.js +0 -12
- package/dist/math-D4gdAuwG.js.map +0 -1
- package/dist/mermaid-parser.core-Dz5qv4CI.js.map +0 -1
- package/dist/mermaid.core-DTiIXVKa.js +0 -923
- package/dist/mermaid.core-DTiIXVKa.js.map +0 -1
- package/dist/mindmap-definition-YRQLILUH-D95OPRMh.js.map +0 -1
- package/dist/packet-RMMSAZCW-D72DRs1N.js +0 -3
- package/dist/pie-UPGHQEXC-C8RDLrEi.js +0 -3
- package/dist/pieDiagram-SKSYHLDU-BREEn_Sk.js +0 -167
- package/dist/pieDiagram-SKSYHLDU-BREEn_Sk.js.map +0 -1
- package/dist/quadrantDiagram-337W2JSQ-CcKc-h2o.js.map +0 -1
- package/dist/radar-KQ55EAFF-DhmvjiyN.js +0 -3
- package/dist/requirementDiagram-Z7DCOOCP-aPcaPduF.js.map +0 -1
- package/dist/sequenceDiagram-2WXFIKYE-D7Vh1Zld.js +0 -4112
- package/dist/sequenceDiagram-2WXFIKYE-D7Vh1Zld.js.map +0 -1
- package/dist/stateDiagram-RAJIS63D-DdiY5cf3.js +0 -220
- package/dist/stateDiagram-RAJIS63D-DdiY5cf3.js.map +0 -1
- package/dist/stateDiagram-v2-FVOUBMTO-CAWy0Pkh.js +0 -29
- package/dist/timeline-definition-YZTLITO2-CjxxCuOg.js.map +0 -1
- package/dist/treemap-KZPCXAKY-BvLvHb2t.js +0 -3
|
@@ -1,2054 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./purify.es-Dsqc2y0I.js";
|
|
2
|
-
import { i as t, n, r, t as i } from "./src-BhNgmpel.js";
|
|
3
|
-
//#region node_modules/khroma/dist/utils/channel.js
|
|
4
|
-
var a = {
|
|
5
|
-
min: {
|
|
6
|
-
r: 0,
|
|
7
|
-
g: 0,
|
|
8
|
-
b: 0,
|
|
9
|
-
s: 0,
|
|
10
|
-
l: 0,
|
|
11
|
-
a: 0
|
|
12
|
-
},
|
|
13
|
-
max: {
|
|
14
|
-
r: 255,
|
|
15
|
-
g: 255,
|
|
16
|
-
b: 255,
|
|
17
|
-
h: 360,
|
|
18
|
-
s: 100,
|
|
19
|
-
l: 100,
|
|
20
|
-
a: 1
|
|
21
|
-
},
|
|
22
|
-
clamp: {
|
|
23
|
-
r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
|
|
24
|
-
g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
|
|
25
|
-
b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
|
|
26
|
-
h: (e) => e % 360,
|
|
27
|
-
s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
|
|
28
|
-
l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
|
|
29
|
-
a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
|
|
30
|
-
},
|
|
31
|
-
toLinear: (e) => {
|
|
32
|
-
let t = e / 255;
|
|
33
|
-
return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
|
|
34
|
-
},
|
|
35
|
-
hue2rgb: (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e),
|
|
36
|
-
hsl2rgb: ({ h: e, s: t, l: n }, r) => {
|
|
37
|
-
if (!t) return n * 2.55;
|
|
38
|
-
e /= 360, t /= 100, n /= 100;
|
|
39
|
-
let i = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - i;
|
|
40
|
-
switch (r) {
|
|
41
|
-
case "r": return a.hue2rgb(o, i, e + 1 / 3) * 255;
|
|
42
|
-
case "g": return a.hue2rgb(o, i, e) * 255;
|
|
43
|
-
case "b": return a.hue2rgb(o, i, e - 1 / 3) * 255;
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
rgb2hsl: ({ r: e, g: t, b: n }, r) => {
|
|
47
|
-
e /= 255, t /= 255, n /= 255;
|
|
48
|
-
let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
|
|
49
|
-
if (r === "l") return o * 100;
|
|
50
|
-
if (i === a) return 0;
|
|
51
|
-
let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
|
|
52
|
-
if (r === "s") return c * 100;
|
|
53
|
-
switch (i) {
|
|
54
|
-
case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
|
|
55
|
-
case t: return ((n - e) / s + 2) * 60;
|
|
56
|
-
case n: return ((e - t) / s + 4) * 60;
|
|
57
|
-
default: return -1;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}, o = {
|
|
61
|
-
channel: a,
|
|
62
|
-
lang: {
|
|
63
|
-
clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
|
|
64
|
-
round: (e) => Math.round(e * 1e10) / 1e10
|
|
65
|
-
},
|
|
66
|
-
unit: { dec2hex: (e) => {
|
|
67
|
-
let t = Math.round(e).toString(16);
|
|
68
|
-
return t.length > 1 ? t : `0${t}`;
|
|
69
|
-
} }
|
|
70
|
-
}, s = {};
|
|
71
|
-
for (let e = 0; e <= 255; e++) s[e] = o.unit.dec2hex(e);
|
|
72
|
-
var c = {
|
|
73
|
-
ALL: 0,
|
|
74
|
-
RGB: 1,
|
|
75
|
-
HSL: 2
|
|
76
|
-
}, l = class {
|
|
77
|
-
constructor() {
|
|
78
|
-
this.type = c.ALL;
|
|
79
|
-
}
|
|
80
|
-
get() {
|
|
81
|
-
return this.type;
|
|
82
|
-
}
|
|
83
|
-
set(e) {
|
|
84
|
-
if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
|
|
85
|
-
this.type = e;
|
|
86
|
-
}
|
|
87
|
-
reset() {
|
|
88
|
-
this.type = c.ALL;
|
|
89
|
-
}
|
|
90
|
-
is(e) {
|
|
91
|
-
return this.type === e;
|
|
92
|
-
}
|
|
93
|
-
}, u = new class {
|
|
94
|
-
constructor(e, t) {
|
|
95
|
-
this.color = t, this.changed = !1, this.data = e, this.type = new l();
|
|
96
|
-
}
|
|
97
|
-
set(e, t) {
|
|
98
|
-
return this.color = t, this.changed = !1, this.data = e, this.type.type = c.ALL, this;
|
|
99
|
-
}
|
|
100
|
-
_ensureHSL() {
|
|
101
|
-
let e = this.data, { h: t, s: n, l: r } = e;
|
|
102
|
-
t === void 0 && (e.h = o.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = o.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = o.channel.rgb2hsl(e, "l"));
|
|
103
|
-
}
|
|
104
|
-
_ensureRGB() {
|
|
105
|
-
let e = this.data, { r: t, g: n, b: r } = e;
|
|
106
|
-
t === void 0 && (e.r = o.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = o.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = o.channel.hsl2rgb(e, "b"));
|
|
107
|
-
}
|
|
108
|
-
get r() {
|
|
109
|
-
let e = this.data, t = e.r;
|
|
110
|
-
return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "r"));
|
|
111
|
-
}
|
|
112
|
-
get g() {
|
|
113
|
-
let e = this.data, t = e.g;
|
|
114
|
-
return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "g"));
|
|
115
|
-
}
|
|
116
|
-
get b() {
|
|
117
|
-
let e = this.data, t = e.b;
|
|
118
|
-
return !this.type.is(c.HSL) && t !== void 0 ? t : (this._ensureHSL(), o.channel.hsl2rgb(e, "b"));
|
|
119
|
-
}
|
|
120
|
-
get h() {
|
|
121
|
-
let e = this.data, t = e.h;
|
|
122
|
-
return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "h"));
|
|
123
|
-
}
|
|
124
|
-
get s() {
|
|
125
|
-
let e = this.data, t = e.s;
|
|
126
|
-
return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "s"));
|
|
127
|
-
}
|
|
128
|
-
get l() {
|
|
129
|
-
let e = this.data, t = e.l;
|
|
130
|
-
return !this.type.is(c.RGB) && t !== void 0 ? t : (this._ensureRGB(), o.channel.rgb2hsl(e, "l"));
|
|
131
|
-
}
|
|
132
|
-
get a() {
|
|
133
|
-
return this.data.a;
|
|
134
|
-
}
|
|
135
|
-
set r(e) {
|
|
136
|
-
this.type.set(c.RGB), this.changed = !0, this.data.r = e;
|
|
137
|
-
}
|
|
138
|
-
set g(e) {
|
|
139
|
-
this.type.set(c.RGB), this.changed = !0, this.data.g = e;
|
|
140
|
-
}
|
|
141
|
-
set b(e) {
|
|
142
|
-
this.type.set(c.RGB), this.changed = !0, this.data.b = e;
|
|
143
|
-
}
|
|
144
|
-
set h(e) {
|
|
145
|
-
this.type.set(c.HSL), this.changed = !0, this.data.h = e;
|
|
146
|
-
}
|
|
147
|
-
set s(e) {
|
|
148
|
-
this.type.set(c.HSL), this.changed = !0, this.data.s = e;
|
|
149
|
-
}
|
|
150
|
-
set l(e) {
|
|
151
|
-
this.type.set(c.HSL), this.changed = !0, this.data.l = e;
|
|
152
|
-
}
|
|
153
|
-
set a(e) {
|
|
154
|
-
this.changed = !0, this.data.a = e;
|
|
155
|
-
}
|
|
156
|
-
}({
|
|
157
|
-
r: 0,
|
|
158
|
-
g: 0,
|
|
159
|
-
b: 0,
|
|
160
|
-
a: 0
|
|
161
|
-
}, "transparent"), d = {
|
|
162
|
-
re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
|
|
163
|
-
parse: (e) => {
|
|
164
|
-
if (e.charCodeAt(0) !== 35) return;
|
|
165
|
-
let t = e.match(d.re);
|
|
166
|
-
if (!t) return;
|
|
167
|
-
let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, l = a ? 0 : -1, f = o ? 255 : 15;
|
|
168
|
-
return u.set({
|
|
169
|
-
r: (r >> c * (l + 3) & f) * s,
|
|
170
|
-
g: (r >> c * (l + 2) & f) * s,
|
|
171
|
-
b: (r >> c * (l + 1) & f) * s,
|
|
172
|
-
a: a ? (r & f) * s / 255 : 1
|
|
173
|
-
}, e);
|
|
174
|
-
},
|
|
175
|
-
stringify: (e) => {
|
|
176
|
-
let { r: t, g: n, b: r, a: i } = e;
|
|
177
|
-
return i < 1 ? `#${s[Math.round(t)]}${s[Math.round(n)]}${s[Math.round(r)]}${s[Math.round(i * 255)]}` : `#${s[Math.round(t)]}${s[Math.round(n)]}${s[Math.round(r)]}`;
|
|
178
|
-
}
|
|
179
|
-
}, f = {
|
|
180
|
-
re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
|
|
181
|
-
hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
|
|
182
|
-
_hue2deg: (e) => {
|
|
183
|
-
let t = e.match(f.hueRe);
|
|
184
|
-
if (t) {
|
|
185
|
-
let [, e, n] = t;
|
|
186
|
-
switch (n) {
|
|
187
|
-
case "grad": return o.channel.clamp.h(parseFloat(e) * .9);
|
|
188
|
-
case "rad": return o.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
|
|
189
|
-
case "turn": return o.channel.clamp.h(parseFloat(e) * 360);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
return o.channel.clamp.h(parseFloat(e));
|
|
193
|
-
},
|
|
194
|
-
parse: (e) => {
|
|
195
|
-
let t = e.charCodeAt(0);
|
|
196
|
-
if (t !== 104 && t !== 72) return;
|
|
197
|
-
let n = e.match(f.re);
|
|
198
|
-
if (!n) return;
|
|
199
|
-
let [, r, i, a, s, c] = n;
|
|
200
|
-
return u.set({
|
|
201
|
-
h: f._hue2deg(r),
|
|
202
|
-
s: o.channel.clamp.s(parseFloat(i)),
|
|
203
|
-
l: o.channel.clamp.l(parseFloat(a)),
|
|
204
|
-
a: s ? o.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
|
|
205
|
-
}, e);
|
|
206
|
-
},
|
|
207
|
-
stringify: (e) => {
|
|
208
|
-
let { h: t, s: n, l: r, a: i } = e;
|
|
209
|
-
return i < 1 ? `hsla(${o.lang.round(t)}, ${o.lang.round(n)}%, ${o.lang.round(r)}%, ${i})` : `hsl(${o.lang.round(t)}, ${o.lang.round(n)}%, ${o.lang.round(r)}%)`;
|
|
210
|
-
}
|
|
211
|
-
}, p = {
|
|
212
|
-
colors: {
|
|
213
|
-
aliceblue: "#f0f8ff",
|
|
214
|
-
antiquewhite: "#faebd7",
|
|
215
|
-
aqua: "#00ffff",
|
|
216
|
-
aquamarine: "#7fffd4",
|
|
217
|
-
azure: "#f0ffff",
|
|
218
|
-
beige: "#f5f5dc",
|
|
219
|
-
bisque: "#ffe4c4",
|
|
220
|
-
black: "#000000",
|
|
221
|
-
blanchedalmond: "#ffebcd",
|
|
222
|
-
blue: "#0000ff",
|
|
223
|
-
blueviolet: "#8a2be2",
|
|
224
|
-
brown: "#a52a2a",
|
|
225
|
-
burlywood: "#deb887",
|
|
226
|
-
cadetblue: "#5f9ea0",
|
|
227
|
-
chartreuse: "#7fff00",
|
|
228
|
-
chocolate: "#d2691e",
|
|
229
|
-
coral: "#ff7f50",
|
|
230
|
-
cornflowerblue: "#6495ed",
|
|
231
|
-
cornsilk: "#fff8dc",
|
|
232
|
-
crimson: "#dc143c",
|
|
233
|
-
cyanaqua: "#00ffff",
|
|
234
|
-
darkblue: "#00008b",
|
|
235
|
-
darkcyan: "#008b8b",
|
|
236
|
-
darkgoldenrod: "#b8860b",
|
|
237
|
-
darkgray: "#a9a9a9",
|
|
238
|
-
darkgreen: "#006400",
|
|
239
|
-
darkgrey: "#a9a9a9",
|
|
240
|
-
darkkhaki: "#bdb76b",
|
|
241
|
-
darkmagenta: "#8b008b",
|
|
242
|
-
darkolivegreen: "#556b2f",
|
|
243
|
-
darkorange: "#ff8c00",
|
|
244
|
-
darkorchid: "#9932cc",
|
|
245
|
-
darkred: "#8b0000",
|
|
246
|
-
darksalmon: "#e9967a",
|
|
247
|
-
darkseagreen: "#8fbc8f",
|
|
248
|
-
darkslateblue: "#483d8b",
|
|
249
|
-
darkslategray: "#2f4f4f",
|
|
250
|
-
darkslategrey: "#2f4f4f",
|
|
251
|
-
darkturquoise: "#00ced1",
|
|
252
|
-
darkviolet: "#9400d3",
|
|
253
|
-
deeppink: "#ff1493",
|
|
254
|
-
deepskyblue: "#00bfff",
|
|
255
|
-
dimgray: "#696969",
|
|
256
|
-
dimgrey: "#696969",
|
|
257
|
-
dodgerblue: "#1e90ff",
|
|
258
|
-
firebrick: "#b22222",
|
|
259
|
-
floralwhite: "#fffaf0",
|
|
260
|
-
forestgreen: "#228b22",
|
|
261
|
-
fuchsia: "#ff00ff",
|
|
262
|
-
gainsboro: "#dcdcdc",
|
|
263
|
-
ghostwhite: "#f8f8ff",
|
|
264
|
-
gold: "#ffd700",
|
|
265
|
-
goldenrod: "#daa520",
|
|
266
|
-
gray: "#808080",
|
|
267
|
-
green: "#008000",
|
|
268
|
-
greenyellow: "#adff2f",
|
|
269
|
-
grey: "#808080",
|
|
270
|
-
honeydew: "#f0fff0",
|
|
271
|
-
hotpink: "#ff69b4",
|
|
272
|
-
indianred: "#cd5c5c",
|
|
273
|
-
indigo: "#4b0082",
|
|
274
|
-
ivory: "#fffff0",
|
|
275
|
-
khaki: "#f0e68c",
|
|
276
|
-
lavender: "#e6e6fa",
|
|
277
|
-
lavenderblush: "#fff0f5",
|
|
278
|
-
lawngreen: "#7cfc00",
|
|
279
|
-
lemonchiffon: "#fffacd",
|
|
280
|
-
lightblue: "#add8e6",
|
|
281
|
-
lightcoral: "#f08080",
|
|
282
|
-
lightcyan: "#e0ffff",
|
|
283
|
-
lightgoldenrodyellow: "#fafad2",
|
|
284
|
-
lightgray: "#d3d3d3",
|
|
285
|
-
lightgreen: "#90ee90",
|
|
286
|
-
lightgrey: "#d3d3d3",
|
|
287
|
-
lightpink: "#ffb6c1",
|
|
288
|
-
lightsalmon: "#ffa07a",
|
|
289
|
-
lightseagreen: "#20b2aa",
|
|
290
|
-
lightskyblue: "#87cefa",
|
|
291
|
-
lightslategray: "#778899",
|
|
292
|
-
lightslategrey: "#778899",
|
|
293
|
-
lightsteelblue: "#b0c4de",
|
|
294
|
-
lightyellow: "#ffffe0",
|
|
295
|
-
lime: "#00ff00",
|
|
296
|
-
limegreen: "#32cd32",
|
|
297
|
-
linen: "#faf0e6",
|
|
298
|
-
magenta: "#ff00ff",
|
|
299
|
-
maroon: "#800000",
|
|
300
|
-
mediumaquamarine: "#66cdaa",
|
|
301
|
-
mediumblue: "#0000cd",
|
|
302
|
-
mediumorchid: "#ba55d3",
|
|
303
|
-
mediumpurple: "#9370db",
|
|
304
|
-
mediumseagreen: "#3cb371",
|
|
305
|
-
mediumslateblue: "#7b68ee",
|
|
306
|
-
mediumspringgreen: "#00fa9a",
|
|
307
|
-
mediumturquoise: "#48d1cc",
|
|
308
|
-
mediumvioletred: "#c71585",
|
|
309
|
-
midnightblue: "#191970",
|
|
310
|
-
mintcream: "#f5fffa",
|
|
311
|
-
mistyrose: "#ffe4e1",
|
|
312
|
-
moccasin: "#ffe4b5",
|
|
313
|
-
navajowhite: "#ffdead",
|
|
314
|
-
navy: "#000080",
|
|
315
|
-
oldlace: "#fdf5e6",
|
|
316
|
-
olive: "#808000",
|
|
317
|
-
olivedrab: "#6b8e23",
|
|
318
|
-
orange: "#ffa500",
|
|
319
|
-
orangered: "#ff4500",
|
|
320
|
-
orchid: "#da70d6",
|
|
321
|
-
palegoldenrod: "#eee8aa",
|
|
322
|
-
palegreen: "#98fb98",
|
|
323
|
-
paleturquoise: "#afeeee",
|
|
324
|
-
palevioletred: "#db7093",
|
|
325
|
-
papayawhip: "#ffefd5",
|
|
326
|
-
peachpuff: "#ffdab9",
|
|
327
|
-
peru: "#cd853f",
|
|
328
|
-
pink: "#ffc0cb",
|
|
329
|
-
plum: "#dda0dd",
|
|
330
|
-
powderblue: "#b0e0e6",
|
|
331
|
-
purple: "#800080",
|
|
332
|
-
rebeccapurple: "#663399",
|
|
333
|
-
red: "#ff0000",
|
|
334
|
-
rosybrown: "#bc8f8f",
|
|
335
|
-
royalblue: "#4169e1",
|
|
336
|
-
saddlebrown: "#8b4513",
|
|
337
|
-
salmon: "#fa8072",
|
|
338
|
-
sandybrown: "#f4a460",
|
|
339
|
-
seagreen: "#2e8b57",
|
|
340
|
-
seashell: "#fff5ee",
|
|
341
|
-
sienna: "#a0522d",
|
|
342
|
-
silver: "#c0c0c0",
|
|
343
|
-
skyblue: "#87ceeb",
|
|
344
|
-
slateblue: "#6a5acd",
|
|
345
|
-
slategray: "#708090",
|
|
346
|
-
slategrey: "#708090",
|
|
347
|
-
snow: "#fffafa",
|
|
348
|
-
springgreen: "#00ff7f",
|
|
349
|
-
tan: "#d2b48c",
|
|
350
|
-
teal: "#008080",
|
|
351
|
-
thistle: "#d8bfd8",
|
|
352
|
-
transparent: "#00000000",
|
|
353
|
-
turquoise: "#40e0d0",
|
|
354
|
-
violet: "#ee82ee",
|
|
355
|
-
wheat: "#f5deb3",
|
|
356
|
-
white: "#ffffff",
|
|
357
|
-
whitesmoke: "#f5f5f5",
|
|
358
|
-
yellow: "#ffff00",
|
|
359
|
-
yellowgreen: "#9acd32"
|
|
360
|
-
},
|
|
361
|
-
parse: (e) => {
|
|
362
|
-
e = e.toLowerCase();
|
|
363
|
-
let t = p.colors[e];
|
|
364
|
-
if (t) return d.parse(t);
|
|
365
|
-
},
|
|
366
|
-
stringify: (e) => {
|
|
367
|
-
let t = d.stringify(e);
|
|
368
|
-
for (let e in p.colors) if (p.colors[e] === t) return e;
|
|
369
|
-
}
|
|
370
|
-
}, m = {
|
|
371
|
-
re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
|
|
372
|
-
parse: (e) => {
|
|
373
|
-
let t = e.charCodeAt(0);
|
|
374
|
-
if (t !== 114 && t !== 82) return;
|
|
375
|
-
let n = e.match(m.re);
|
|
376
|
-
if (!n) return;
|
|
377
|
-
let [, r, i, a, s, c, l, d, f] = n;
|
|
378
|
-
return u.set({
|
|
379
|
-
r: o.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
|
|
380
|
-
g: o.channel.clamp.g(s ? parseFloat(a) * 2.55 : parseFloat(a)),
|
|
381
|
-
b: o.channel.clamp.b(l ? parseFloat(c) * 2.55 : parseFloat(c)),
|
|
382
|
-
a: d ? o.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
|
|
383
|
-
}, e);
|
|
384
|
-
},
|
|
385
|
-
stringify: (e) => {
|
|
386
|
-
let { r: t, g: n, b: r, a: i } = e;
|
|
387
|
-
return i < 1 ? `rgba(${o.lang.round(t)}, ${o.lang.round(n)}, ${o.lang.round(r)}, ${o.lang.round(i)})` : `rgb(${o.lang.round(t)}, ${o.lang.round(n)}, ${o.lang.round(r)})`;
|
|
388
|
-
}
|
|
389
|
-
}, h = {
|
|
390
|
-
format: {
|
|
391
|
-
keyword: p,
|
|
392
|
-
hex: d,
|
|
393
|
-
rgb: m,
|
|
394
|
-
rgba: m,
|
|
395
|
-
hsl: f,
|
|
396
|
-
hsla: f
|
|
397
|
-
},
|
|
398
|
-
parse: (e) => {
|
|
399
|
-
if (typeof e != "string") return e;
|
|
400
|
-
let t = d.parse(e) || m.parse(e) || f.parse(e) || p.parse(e);
|
|
401
|
-
if (t) return t;
|
|
402
|
-
throw Error(`Unsupported color format: "${e}"`);
|
|
403
|
-
},
|
|
404
|
-
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(c.HSL) || e.data.r === void 0 ? f.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? m.stringify(e) : d.stringify(e)
|
|
405
|
-
}, g = (e, t) => {
|
|
406
|
-
let n = h.parse(e);
|
|
407
|
-
for (let e in t) n[e] = o.channel.clamp[e](t[e]);
|
|
408
|
-
return h.stringify(n);
|
|
409
|
-
}, _ = (e, t, n = 0, r = 1) => {
|
|
410
|
-
if (typeof e != "number") return g(e, { a: t });
|
|
411
|
-
let i = u.set({
|
|
412
|
-
r: o.channel.clamp.r(e),
|
|
413
|
-
g: o.channel.clamp.g(t),
|
|
414
|
-
b: o.channel.clamp.b(n),
|
|
415
|
-
a: o.channel.clamp.a(r)
|
|
416
|
-
});
|
|
417
|
-
return h.stringify(i);
|
|
418
|
-
}, ee = (e) => {
|
|
419
|
-
let { r: t, g: n, b: r } = h.parse(e), i = .2126 * o.channel.toLinear(t) + .7152 * o.channel.toLinear(n) + .0722 * o.channel.toLinear(r);
|
|
420
|
-
return o.lang.round(i);
|
|
421
|
-
}, te = (e) => ee(e) >= .5, v = (e) => !te(e), y = (e, t, n) => {
|
|
422
|
-
let r = h.parse(e), i = r[t], a = o.channel.clamp[t](i + n);
|
|
423
|
-
return i !== a && (r[t] = a), h.stringify(r);
|
|
424
|
-
}, b = (e, t) => y(e, "l", t), x = (e, t) => y(e, "l", -t), S = (e, t) => {
|
|
425
|
-
let n = h.parse(e), r = {};
|
|
426
|
-
for (let e in t) t[e] && (r[e] = n[e] + t[e]);
|
|
427
|
-
return g(e, r);
|
|
428
|
-
}, ne = (e, t, n = 50) => {
|
|
429
|
-
let { r, g: i, b: a, a: o } = h.parse(e), { r: s, g: c, b: l, a: u } = h.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, m = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, g = 1 - m;
|
|
430
|
-
return _(r * m + s * g, i * m + c * g, a * m + l * g, o * d + u * (1 - d));
|
|
431
|
-
}, C = (e, t = 100) => {
|
|
432
|
-
let n = h.parse(e);
|
|
433
|
-
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, ne(n, e, t);
|
|
434
|
-
}, re = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, ie = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ae = /\s*%%.*\n/gm, oe = class extends Error {
|
|
435
|
-
static {
|
|
436
|
-
n(this, "UnknownDiagramError");
|
|
437
|
-
}
|
|
438
|
-
constructor(e) {
|
|
439
|
-
super(e), this.name = "UnknownDiagramError";
|
|
440
|
-
}
|
|
441
|
-
}, w = {}, se = /* @__PURE__ */ n(function(e, t) {
|
|
442
|
-
e = e.replace(re, "").replace(ie, "").replace(ae, "\n");
|
|
443
|
-
for (let [n, { detector: r }] of Object.entries(w)) if (r(e, t)) return n;
|
|
444
|
-
throw new oe(`No diagram type detected matching given configuration for text: ${e}`);
|
|
445
|
-
}, "detectType"), ce = /* @__PURE__ */ n((...e) => {
|
|
446
|
-
for (let { id: t, detector: n, loader: r } of e) le(t, n, r);
|
|
447
|
-
}, "registerLazyLoadedDiagrams"), le = /* @__PURE__ */ n((e, t, n) => {
|
|
448
|
-
w[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), w[e] = {
|
|
449
|
-
detector: t,
|
|
450
|
-
loader: n
|
|
451
|
-
}, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
|
|
452
|
-
}, "addDetector"), ue = /* @__PURE__ */ n((e) => w[e].loader, "getDiagramLoader"), T = /* @__PURE__ */ n((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
|
|
453
|
-
let i = {
|
|
454
|
-
depth: n,
|
|
455
|
-
clobber: r
|
|
456
|
-
};
|
|
457
|
-
return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => T(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
|
|
458
|
-
e.includes(t) || e.push(t);
|
|
459
|
-
}), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
|
|
460
|
-
typeof t[i] == "object" && t[i] !== null && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = T(e[i], t[i], {
|
|
461
|
-
depth: n - 1,
|
|
462
|
-
clobber: r
|
|
463
|
-
})) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
|
|
464
|
-
}), e);
|
|
465
|
-
}, "assignWithDepth"), E = T, D = "#ffffff", O = "#f2f2f2", k = /* @__PURE__ */ n((e, t) => t ? S(e, {
|
|
466
|
-
s: -40,
|
|
467
|
-
l: 10
|
|
468
|
-
}) : S(e, {
|
|
469
|
-
s: -40,
|
|
470
|
-
l: -10
|
|
471
|
-
}), "mkBorder"), de = class {
|
|
472
|
-
static {
|
|
473
|
-
n(this, "Theme");
|
|
474
|
-
}
|
|
475
|
-
constructor() {
|
|
476
|
-
this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px";
|
|
477
|
-
}
|
|
478
|
-
updateColors() {
|
|
479
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
480
|
-
h: 180,
|
|
481
|
-
l: 5
|
|
482
|
-
}), this.primaryBorderColor = this.primaryBorderColor || k(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || k(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || k(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || x(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || b(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || x(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || x(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || b(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 5)), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || this.tertiaryColor, this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, {
|
|
483
|
-
h: 210,
|
|
484
|
-
l: 150
|
|
485
|
-
}), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
|
|
486
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
|
|
487
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
488
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
|
|
489
|
-
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
490
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
491
|
-
let e = this.darkMode ? -4 : -1;
|
|
492
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
|
|
493
|
-
h: 180,
|
|
494
|
-
s: -15,
|
|
495
|
-
l: e * (5 + t * 3)
|
|
496
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
|
|
497
|
-
h: 180,
|
|
498
|
-
s: -15,
|
|
499
|
-
l: e * (8 + t * 3)
|
|
500
|
-
});
|
|
501
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || S(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || S(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || S(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || S(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || S(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || S(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || S(this.primaryColor, {
|
|
502
|
-
h: 60,
|
|
503
|
-
l: -10
|
|
504
|
-
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
505
|
-
h: -60,
|
|
506
|
-
l: -10
|
|
507
|
-
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
508
|
-
h: 120,
|
|
509
|
-
l: 0
|
|
510
|
-
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
511
|
-
h: 60,
|
|
512
|
-
l: -20
|
|
513
|
-
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
514
|
-
h: -60,
|
|
515
|
-
l: -20
|
|
516
|
-
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
517
|
-
h: 120,
|
|
518
|
-
l: -10
|
|
519
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? S(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? S(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? S(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? S(this.primaryColor, {
|
|
520
|
-
h: 60,
|
|
521
|
-
l: -30
|
|
522
|
-
}), this.venn5 = this.venn5 ?? S(this.primaryColor, {
|
|
523
|
-
h: -60,
|
|
524
|
-
l: -30
|
|
525
|
-
}), this.venn6 = this.venn6 ?? S(this.secondaryColor, {
|
|
526
|
-
h: 60,
|
|
527
|
-
l: -30
|
|
528
|
-
}), this.venn7 = this.venn7 ?? S(this.primaryColor, {
|
|
529
|
-
h: 120,
|
|
530
|
-
l: -30
|
|
531
|
-
}), this.venn8 = this.venn8 ?? S(this.secondaryColor, {
|
|
532
|
-
h: 120,
|
|
533
|
-
l: -30
|
|
534
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.radar = {
|
|
535
|
-
axisColor: this.radar?.axisColor || this.lineColor,
|
|
536
|
-
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
537
|
-
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
538
|
-
curveOpacity: this.radar?.curveOpacity || .5,
|
|
539
|
-
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
540
|
-
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
541
|
-
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
542
|
-
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
543
|
-
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
544
|
-
legendFontSize: this.radar?.legendFontSize || 12
|
|
545
|
-
}, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
546
|
-
r: 5,
|
|
547
|
-
g: 5,
|
|
548
|
-
b: 5
|
|
549
|
-
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
550
|
-
r: 10,
|
|
551
|
-
g: 10,
|
|
552
|
-
b: 10
|
|
553
|
-
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
554
|
-
r: 15,
|
|
555
|
-
g: 15,
|
|
556
|
-
b: 15
|
|
557
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
558
|
-
r: -5,
|
|
559
|
-
g: -5,
|
|
560
|
-
b: -5
|
|
561
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
562
|
-
r: -10,
|
|
563
|
-
g: -10,
|
|
564
|
-
b: -10
|
|
565
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
566
|
-
r: -15,
|
|
567
|
-
g: -15,
|
|
568
|
-
b: -15
|
|
569
|
-
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
570
|
-
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
571
|
-
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
572
|
-
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
573
|
-
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
574
|
-
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
575
|
-
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
576
|
-
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
577
|
-
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
578
|
-
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
579
|
-
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
580
|
-
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
581
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
582
|
-
}
|
|
583
|
-
calculate(e) {
|
|
584
|
-
if (typeof e != "object") {
|
|
585
|
-
this.updateColors();
|
|
586
|
-
return;
|
|
587
|
-
}
|
|
588
|
-
let t = Object.keys(e);
|
|
589
|
-
t.forEach((t) => {
|
|
590
|
-
this[t] = e[t];
|
|
591
|
-
}), this.updateColors(), t.forEach((t) => {
|
|
592
|
-
this[t] = e[t];
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
}, fe = /* @__PURE__ */ n((e) => {
|
|
596
|
-
let t = new de();
|
|
597
|
-
return t.calculate(e), t;
|
|
598
|
-
}, "getThemeVariables"), pe = class {
|
|
599
|
-
static {
|
|
600
|
-
n(this, "Theme");
|
|
601
|
-
}
|
|
602
|
-
constructor() {
|
|
603
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = b(this.primaryColor, 16), this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.sectionBkgColor = x("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = x(this.sectionBkgColor, 10), this.taskBorderColor = _(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = _(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || x(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd";
|
|
604
|
-
}
|
|
605
|
-
updateColors() {
|
|
606
|
-
this.secondBkg = b(this.mainBkg, 16), this.lineColor = this.mainContrastColor, this.arrowheadColor = this.mainContrastColor, this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.edgeLabelBackground = b(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.altSectionBkgColor = this.background, this.taskBkgColor = b(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = C(this.doneTaskBkgColor), this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(this.secondaryColor, { h: 128 }), this.cScale1 = this.cScale1 || "#0b0000", this.cScale2 = this.cScale2 || "#4d1037", this.cScale3 = this.cScale3 || "#3f5258", this.cScale4 = this.cScale4 || "#4f2f1b", this.cScale5 = this.cScale5 || "#6e0a0a", this.cScale6 = this.cScale6 || "#3b0048", this.cScale7 = this.cScale7 || "#995a01", this.cScale8 = this.cScale8 || "#154706", this.cScale9 = this.cScale9 || "#161722", this.cScale10 = this.cScale10 || "#00296f", this.cScale11 = this.cScale11 || "#01629c", this.cScale12 = this.cScale12 || "#010029", this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 });
|
|
607
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
608
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
609
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
610
|
-
h: 30,
|
|
611
|
-
s: -30,
|
|
612
|
-
l: -(-10 + e * 4)
|
|
613
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
614
|
-
h: 30,
|
|
615
|
-
s: -30,
|
|
616
|
-
l: -(-7 + e * 4)
|
|
617
|
-
});
|
|
618
|
-
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
|
|
619
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
620
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
621
|
-
this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.mainContrastColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.mainContrastColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7";
|
|
622
|
-
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? b(this["cScale" + e], 30);
|
|
623
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
624
|
-
r: 5,
|
|
625
|
-
g: 5,
|
|
626
|
-
b: 5
|
|
627
|
-
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
628
|
-
r: 10,
|
|
629
|
-
g: 10,
|
|
630
|
-
b: 10
|
|
631
|
-
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
632
|
-
r: 15,
|
|
633
|
-
g: 15,
|
|
634
|
-
b: 15
|
|
635
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
636
|
-
r: -5,
|
|
637
|
-
g: -5,
|
|
638
|
-
b: -5
|
|
639
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
640
|
-
r: -10,
|
|
641
|
-
g: -10,
|
|
642
|
-
b: -10
|
|
643
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
644
|
-
r: -15,
|
|
645
|
-
g: -15,
|
|
646
|
-
b: -15
|
|
647
|
-
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
648
|
-
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
649
|
-
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
650
|
-
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
651
|
-
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
652
|
-
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
653
|
-
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
654
|
-
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
655
|
-
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
656
|
-
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
657
|
-
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
658
|
-
plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
|
|
659
|
-
}, this.packet = {
|
|
660
|
-
startByteColor: this.primaryTextColor,
|
|
661
|
-
endByteColor: this.primaryTextColor,
|
|
662
|
-
labelColor: this.primaryTextColor,
|
|
663
|
-
titleColor: this.primaryTextColor,
|
|
664
|
-
blockStrokeColor: this.primaryTextColor,
|
|
665
|
-
blockFillColor: this.background
|
|
666
|
-
}, this.radar = {
|
|
667
|
-
axisColor: this.radar?.axisColor || this.lineColor,
|
|
668
|
-
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
669
|
-
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
670
|
-
curveOpacity: this.radar?.curveOpacity || .5,
|
|
671
|
-
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
672
|
-
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
673
|
-
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
674
|
-
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
675
|
-
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
676
|
-
legendFontSize: this.radar?.legendFontSize || 12
|
|
677
|
-
}, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? x(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = b(this.secondaryColor, 20), this.git1 = b(this.pie2 || this.secondaryColor, 20), this.git2 = b(this.pie3 || this.tertiaryColor, 20), this.git3 = b(this.pie4 || S(this.primaryColor, { h: -30 }), 20), this.git4 = b(this.pie5 || S(this.primaryColor, { h: -60 }), 20), this.git5 = b(this.pie6 || S(this.primaryColor, { h: -90 }), 10), this.git6 = b(this.pie7 || S(this.primaryColor, { h: 60 }), 10), this.git7 = b(this.pie8 || S(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || b(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || b(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
678
|
-
}
|
|
679
|
-
calculate(e) {
|
|
680
|
-
if (typeof e != "object") {
|
|
681
|
-
this.updateColors();
|
|
682
|
-
return;
|
|
683
|
-
}
|
|
684
|
-
let t = Object.keys(e);
|
|
685
|
-
t.forEach((t) => {
|
|
686
|
-
this[t] = e[t];
|
|
687
|
-
}), this.updateColors(), t.forEach((t) => {
|
|
688
|
-
this[t] = e[t];
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
}, me = /* @__PURE__ */ n((e) => {
|
|
692
|
-
let t = new pe();
|
|
693
|
-
return t.calculate(e), t;
|
|
694
|
-
}, "getThemeVariables"), he = class {
|
|
695
|
-
static {
|
|
696
|
-
n(this, "Theme");
|
|
697
|
-
}
|
|
698
|
-
constructor() {
|
|
699
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = S(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = _(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.updateColors();
|
|
700
|
-
}
|
|
701
|
-
updateColors() {
|
|
702
|
-
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || x(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || x(this.tertiaryColor, 40);
|
|
703
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 25);
|
|
704
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e], { h: 180 });
|
|
705
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
706
|
-
h: 30,
|
|
707
|
-
l: -(5 + e * 5)
|
|
708
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
709
|
-
h: 30,
|
|
710
|
-
l: -(7 + e * 5)
|
|
711
|
-
});
|
|
712
|
-
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
713
|
-
this.cScaleLabel0 = this.cScaleLabel0 || C(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || C(this.labelTextColor);
|
|
714
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
|
|
715
|
-
}
|
|
716
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = b(this.border1, 23), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || b(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || b(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || S(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || S(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || S(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || S(this.primaryColor, {
|
|
717
|
-
h: 60,
|
|
718
|
-
l: -20
|
|
719
|
-
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
720
|
-
h: -60,
|
|
721
|
-
l: -40
|
|
722
|
-
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
723
|
-
h: 120,
|
|
724
|
-
l: -40
|
|
725
|
-
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
726
|
-
h: 60,
|
|
727
|
-
l: -40
|
|
728
|
-
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
729
|
-
h: -90,
|
|
730
|
-
l: -40
|
|
731
|
-
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
732
|
-
h: 120,
|
|
733
|
-
l: -30
|
|
734
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? S(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? S(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? S(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? S(this.primaryColor, {
|
|
735
|
-
h: 60,
|
|
736
|
-
l: -30
|
|
737
|
-
}), this.venn5 = this.venn5 ?? S(this.primaryColor, {
|
|
738
|
-
h: -60,
|
|
739
|
-
l: -30
|
|
740
|
-
}), this.venn6 = this.venn6 ?? S(this.secondaryColor, {
|
|
741
|
-
h: 60,
|
|
742
|
-
l: -30
|
|
743
|
-
}), this.venn7 = this.venn7 ?? S(this.primaryColor, {
|
|
744
|
-
h: 120,
|
|
745
|
-
l: -30
|
|
746
|
-
}), this.venn8 = this.venn8 ?? S(this.secondaryColor, {
|
|
747
|
-
h: 120,
|
|
748
|
-
l: -30
|
|
749
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
750
|
-
r: 5,
|
|
751
|
-
g: 5,
|
|
752
|
-
b: 5
|
|
753
|
-
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
754
|
-
r: 10,
|
|
755
|
-
g: 10,
|
|
756
|
-
b: 10
|
|
757
|
-
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
758
|
-
r: 15,
|
|
759
|
-
g: 15,
|
|
760
|
-
b: 15
|
|
761
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
762
|
-
r: -5,
|
|
763
|
-
g: -5,
|
|
764
|
-
b: -5
|
|
765
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
766
|
-
r: -10,
|
|
767
|
-
g: -10,
|
|
768
|
-
b: -10
|
|
769
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
770
|
-
r: -15,
|
|
771
|
-
g: -15,
|
|
772
|
-
b: -15
|
|
773
|
-
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = {
|
|
774
|
-
axisColor: this.radar?.axisColor || this.lineColor,
|
|
775
|
-
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
776
|
-
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
777
|
-
curveOpacity: this.radar?.curveOpacity || .5,
|
|
778
|
-
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
779
|
-
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
780
|
-
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
781
|
-
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
782
|
-
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
783
|
-
legendFontSize: this.radar?.legendFontSize || 12
|
|
784
|
-
}, this.xyChart = {
|
|
785
|
-
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
786
|
-
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
787
|
-
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
788
|
-
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
789
|
-
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
790
|
-
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
791
|
-
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
792
|
-
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
793
|
-
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
794
|
-
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
795
|
-
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
796
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || x(C(this.git0), 25), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
797
|
-
}
|
|
798
|
-
calculate(e) {
|
|
799
|
-
if (Object.keys(this).forEach((e) => {
|
|
800
|
-
this[e] === "calculated" && (this[e] = void 0);
|
|
801
|
-
}), typeof e != "object") {
|
|
802
|
-
this.updateColors();
|
|
803
|
-
return;
|
|
804
|
-
}
|
|
805
|
-
let t = Object.keys(e);
|
|
806
|
-
t.forEach((t) => {
|
|
807
|
-
this[t] = e[t];
|
|
808
|
-
}), this.updateColors(), t.forEach((t) => {
|
|
809
|
-
this[t] = e[t];
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
}, ge = /* @__PURE__ */ n((e) => {
|
|
813
|
-
let t = new he();
|
|
814
|
-
return t.calculate(e), t;
|
|
815
|
-
}, "getThemeVariables"), _e = class {
|
|
816
|
-
static {
|
|
817
|
-
n(this, "Theme");
|
|
818
|
-
}
|
|
819
|
-
constructor() {
|
|
820
|
-
this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = b("#cde498", 10), this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.primaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
|
|
821
|
-
}
|
|
822
|
-
updateColors() {
|
|
823
|
-
this.actorBorder = x(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || S(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || S(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || S(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || S(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || S(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || S(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || S(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || S(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || S(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || x(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || x(this.tertiaryColor, 40);
|
|
824
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 25);
|
|
825
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e], { h: 180 });
|
|
826
|
-
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
827
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
828
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
829
|
-
h: 30,
|
|
830
|
-
s: -30,
|
|
831
|
-
l: -(5 + e * 5)
|
|
832
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
833
|
-
h: 30,
|
|
834
|
-
s: -30,
|
|
835
|
-
l: -(8 + e * 5)
|
|
836
|
-
});
|
|
837
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || b(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 20), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || S(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || S(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || S(this.tertiaryColor, {
|
|
838
|
-
h: 40,
|
|
839
|
-
l: -40
|
|
840
|
-
}), this.pie7 = this.pie7 || S(this.primaryColor, {
|
|
841
|
-
h: 60,
|
|
842
|
-
l: -10
|
|
843
|
-
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
844
|
-
h: -60,
|
|
845
|
-
l: -10
|
|
846
|
-
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
847
|
-
h: 120,
|
|
848
|
-
l: 0
|
|
849
|
-
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
850
|
-
h: 60,
|
|
851
|
-
l: -50
|
|
852
|
-
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
853
|
-
h: -60,
|
|
854
|
-
l: -50
|
|
855
|
-
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
856
|
-
h: 120,
|
|
857
|
-
l: -50
|
|
858
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? S(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? S(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? S(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? S(this.primaryColor, {
|
|
859
|
-
h: 60,
|
|
860
|
-
l: -30
|
|
861
|
-
}), this.venn5 = this.venn5 ?? S(this.primaryColor, {
|
|
862
|
-
h: -60,
|
|
863
|
-
l: -30
|
|
864
|
-
}), this.venn6 = this.venn6 ?? S(this.secondaryColor, {
|
|
865
|
-
h: 60,
|
|
866
|
-
l: -30
|
|
867
|
-
}), this.venn7 = this.venn7 ?? S(this.primaryColor, {
|
|
868
|
-
h: 120,
|
|
869
|
-
l: -30
|
|
870
|
-
}), this.venn8 = this.venn8 ?? S(this.secondaryColor, {
|
|
871
|
-
h: 120,
|
|
872
|
-
l: -30
|
|
873
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
874
|
-
r: 5,
|
|
875
|
-
g: 5,
|
|
876
|
-
b: 5
|
|
877
|
-
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
878
|
-
r: 10,
|
|
879
|
-
g: 10,
|
|
880
|
-
b: 10
|
|
881
|
-
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
882
|
-
r: 15,
|
|
883
|
-
g: 15,
|
|
884
|
-
b: 15
|
|
885
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
886
|
-
r: -5,
|
|
887
|
-
g: -5,
|
|
888
|
-
b: -5
|
|
889
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
890
|
-
r: -10,
|
|
891
|
-
g: -10,
|
|
892
|
-
b: -10
|
|
893
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
894
|
-
r: -15,
|
|
895
|
-
g: -15,
|
|
896
|
-
b: -15
|
|
897
|
-
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = {
|
|
898
|
-
startByteColor: this.primaryTextColor,
|
|
899
|
-
endByteColor: this.primaryTextColor,
|
|
900
|
-
labelColor: this.primaryTextColor,
|
|
901
|
-
titleColor: this.primaryTextColor,
|
|
902
|
-
blockStrokeColor: this.primaryTextColor,
|
|
903
|
-
blockFillColor: this.mainBkg
|
|
904
|
-
}, this.radar = {
|
|
905
|
-
axisColor: this.radar?.axisColor || this.lineColor,
|
|
906
|
-
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
907
|
-
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
908
|
-
curveOpacity: this.radar?.curveOpacity || .5,
|
|
909
|
-
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
910
|
-
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
911
|
-
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
912
|
-
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
913
|
-
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
914
|
-
legendFontSize: this.radar?.legendFontSize || 12
|
|
915
|
-
}, this.xyChart = {
|
|
916
|
-
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
917
|
-
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
918
|
-
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
919
|
-
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
920
|
-
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
921
|
-
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
922
|
-
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
923
|
-
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
924
|
-
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
925
|
-
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
926
|
-
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
927
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || S(this.primaryColor, { h: -30 }), this.git4 = this.git4 || S(this.primaryColor, { h: -60 }), this.git5 = this.git5 || S(this.primaryColor, { h: -90 }), this.git6 = this.git6 || S(this.primaryColor, { h: 60 }), this.git7 = this.git7 || S(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)) : (this.git0 = x(this.git0, 25), this.git1 = x(this.git1, 25), this.git2 = x(this.git2, 25), this.git3 = x(this.git3, 25), this.git4 = x(this.git4, 25), this.git5 = x(this.git5, 25), this.git6 = x(this.git6, 25), this.git7 = x(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
928
|
-
}
|
|
929
|
-
calculate(e) {
|
|
930
|
-
if (typeof e != "object") {
|
|
931
|
-
this.updateColors();
|
|
932
|
-
return;
|
|
933
|
-
}
|
|
934
|
-
let t = Object.keys(e);
|
|
935
|
-
t.forEach((t) => {
|
|
936
|
-
this[t] = e[t];
|
|
937
|
-
}), this.updateColors(), t.forEach((t) => {
|
|
938
|
-
this[t] = e[t];
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
}, ve = /* @__PURE__ */ n((e) => {
|
|
942
|
-
let t = new _e();
|
|
943
|
-
return t.calculate(e), t;
|
|
944
|
-
}, "getThemeVariables"), ye = class {
|
|
945
|
-
static {
|
|
946
|
-
n(this, "Theme");
|
|
947
|
-
}
|
|
948
|
-
constructor() {
|
|
949
|
-
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = b(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = S(this.primaryColor, { h: -160 }), this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.secondaryBorderColor = k(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = k(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || b(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
|
|
950
|
-
}
|
|
951
|
-
updateColors() {
|
|
952
|
-
this.secondBkg = b(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = b(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
|
|
953
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
954
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || x(this["cScale" + e], 10);
|
|
955
|
-
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
956
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
957
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, { l: -(8 + e * 5) });
|
|
958
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = b(this.contrast, 30), this.sectionBkgColor2 = b(this.contrast, 30), this.taskBorderColor = x(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = b(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = x(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = S(this.primaryColor, { h: 64 }), this.fillType3 = S(this.secondaryColor, { h: 64 }), this.fillType4 = S(this.primaryColor, { h: -64 }), this.fillType5 = S(this.secondaryColor, { h: -64 }), this.fillType6 = S(this.primaryColor, { h: 128 }), this.fillType7 = S(this.secondaryColor, { h: 128 });
|
|
959
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
960
|
-
this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7";
|
|
961
|
-
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
|
|
962
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
963
|
-
r: 5,
|
|
964
|
-
g: 5,
|
|
965
|
-
b: 5
|
|
966
|
-
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
967
|
-
r: 10,
|
|
968
|
-
g: 10,
|
|
969
|
-
b: 10
|
|
970
|
-
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
971
|
-
r: 15,
|
|
972
|
-
g: 15,
|
|
973
|
-
b: 15
|
|
974
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
975
|
-
r: -5,
|
|
976
|
-
g: -5,
|
|
977
|
-
b: -5
|
|
978
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
979
|
-
r: -10,
|
|
980
|
-
g: -10,
|
|
981
|
-
b: -10
|
|
982
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
983
|
-
r: -15,
|
|
984
|
-
g: -15,
|
|
985
|
-
b: -15
|
|
986
|
-
}), this.quadrantPointFill = this.quadrantPointFill || v(this.quadrant1Fill) ? b(this.quadrant1Fill) : x(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
987
|
-
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
988
|
-
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
989
|
-
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
990
|
-
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
991
|
-
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
992
|
-
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
993
|
-
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
994
|
-
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
995
|
-
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
996
|
-
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
997
|
-
plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
|
|
998
|
-
}, this.radar = {
|
|
999
|
-
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1000
|
-
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1001
|
-
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
1002
|
-
curveOpacity: this.radar?.curveOpacity || .5,
|
|
1003
|
-
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
1004
|
-
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
1005
|
-
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
1006
|
-
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
1007
|
-
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
1008
|
-
legendFontSize: this.radar?.legendFontSize || 12
|
|
1009
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = x(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || S(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || S(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || S(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || S(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || S(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1010
|
-
}
|
|
1011
|
-
calculate(e) {
|
|
1012
|
-
if (typeof e != "object") {
|
|
1013
|
-
this.updateColors();
|
|
1014
|
-
return;
|
|
1015
|
-
}
|
|
1016
|
-
let t = Object.keys(e);
|
|
1017
|
-
t.forEach((t) => {
|
|
1018
|
-
this[t] = e[t];
|
|
1019
|
-
}), this.updateColors(), t.forEach((t) => {
|
|
1020
|
-
this[t] = e[t];
|
|
1021
|
-
});
|
|
1022
|
-
}
|
|
1023
|
-
}, A = {
|
|
1024
|
-
base: { getThemeVariables: fe },
|
|
1025
|
-
dark: { getThemeVariables: me },
|
|
1026
|
-
default: { getThemeVariables: ge },
|
|
1027
|
-
forest: { getThemeVariables: ve },
|
|
1028
|
-
neutral: { getThemeVariables: /* @__PURE__ */ n((e) => {
|
|
1029
|
-
let t = new ye();
|
|
1030
|
-
return t.calculate(e), t;
|
|
1031
|
-
}, "getThemeVariables") }
|
|
1032
|
-
}, j = {
|
|
1033
|
-
flowchart: {
|
|
1034
|
-
useMaxWidth: !0,
|
|
1035
|
-
titleTopMargin: 25,
|
|
1036
|
-
subGraphTitleMargin: {
|
|
1037
|
-
top: 0,
|
|
1038
|
-
bottom: 0
|
|
1039
|
-
},
|
|
1040
|
-
diagramPadding: 8,
|
|
1041
|
-
htmlLabels: null,
|
|
1042
|
-
nodeSpacing: 50,
|
|
1043
|
-
rankSpacing: 50,
|
|
1044
|
-
curve: "basis",
|
|
1045
|
-
padding: 15,
|
|
1046
|
-
defaultRenderer: "dagre-wrapper",
|
|
1047
|
-
wrappingWidth: 200,
|
|
1048
|
-
inheritDir: !1
|
|
1049
|
-
},
|
|
1050
|
-
sequence: {
|
|
1051
|
-
useMaxWidth: !0,
|
|
1052
|
-
hideUnusedParticipants: !1,
|
|
1053
|
-
activationWidth: 10,
|
|
1054
|
-
diagramMarginX: 50,
|
|
1055
|
-
diagramMarginY: 10,
|
|
1056
|
-
actorMargin: 50,
|
|
1057
|
-
width: 150,
|
|
1058
|
-
height: 65,
|
|
1059
|
-
boxMargin: 10,
|
|
1060
|
-
boxTextMargin: 5,
|
|
1061
|
-
noteMargin: 10,
|
|
1062
|
-
messageMargin: 35,
|
|
1063
|
-
messageAlign: "center",
|
|
1064
|
-
mirrorActors: !0,
|
|
1065
|
-
forceMenus: !1,
|
|
1066
|
-
bottomMarginAdj: 1,
|
|
1067
|
-
rightAngles: !1,
|
|
1068
|
-
showSequenceNumbers: !1,
|
|
1069
|
-
actorFontSize: 14,
|
|
1070
|
-
actorFontFamily: "\"Open Sans\", sans-serif",
|
|
1071
|
-
actorFontWeight: 400,
|
|
1072
|
-
noteFontSize: 14,
|
|
1073
|
-
noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
1074
|
-
noteFontWeight: 400,
|
|
1075
|
-
noteAlign: "center",
|
|
1076
|
-
messageFontSize: 16,
|
|
1077
|
-
messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
1078
|
-
messageFontWeight: 400,
|
|
1079
|
-
wrap: !1,
|
|
1080
|
-
wrapPadding: 10,
|
|
1081
|
-
labelBoxWidth: 50,
|
|
1082
|
-
labelBoxHeight: 20
|
|
1083
|
-
},
|
|
1084
|
-
gantt: {
|
|
1085
|
-
useMaxWidth: !0,
|
|
1086
|
-
titleTopMargin: 25,
|
|
1087
|
-
barHeight: 20,
|
|
1088
|
-
barGap: 4,
|
|
1089
|
-
topPadding: 50,
|
|
1090
|
-
rightPadding: 75,
|
|
1091
|
-
leftPadding: 75,
|
|
1092
|
-
gridLineStartPadding: 35,
|
|
1093
|
-
fontSize: 11,
|
|
1094
|
-
sectionFontSize: 11,
|
|
1095
|
-
numberSectionStyles: 4,
|
|
1096
|
-
axisFormat: "%Y-%m-%d",
|
|
1097
|
-
topAxis: !1,
|
|
1098
|
-
displayMode: "",
|
|
1099
|
-
weekday: "sunday"
|
|
1100
|
-
},
|
|
1101
|
-
journey: {
|
|
1102
|
-
useMaxWidth: !0,
|
|
1103
|
-
diagramMarginX: 50,
|
|
1104
|
-
diagramMarginY: 10,
|
|
1105
|
-
leftMargin: 150,
|
|
1106
|
-
maxLabelWidth: 360,
|
|
1107
|
-
width: 150,
|
|
1108
|
-
height: 50,
|
|
1109
|
-
boxMargin: 10,
|
|
1110
|
-
boxTextMargin: 5,
|
|
1111
|
-
noteMargin: 10,
|
|
1112
|
-
messageMargin: 35,
|
|
1113
|
-
messageAlign: "center",
|
|
1114
|
-
bottomMarginAdj: 1,
|
|
1115
|
-
rightAngles: !1,
|
|
1116
|
-
taskFontSize: 14,
|
|
1117
|
-
taskFontFamily: "\"Open Sans\", sans-serif",
|
|
1118
|
-
taskMargin: 50,
|
|
1119
|
-
activationWidth: 10,
|
|
1120
|
-
textPlacement: "fo",
|
|
1121
|
-
actorColours: [
|
|
1122
|
-
"#8FBC8F",
|
|
1123
|
-
"#7CFC00",
|
|
1124
|
-
"#00FFFF",
|
|
1125
|
-
"#20B2AA",
|
|
1126
|
-
"#B0E0E6",
|
|
1127
|
-
"#FFFFE0"
|
|
1128
|
-
],
|
|
1129
|
-
sectionFills: [
|
|
1130
|
-
"#191970",
|
|
1131
|
-
"#8B008B",
|
|
1132
|
-
"#4B0082",
|
|
1133
|
-
"#2F4F4F",
|
|
1134
|
-
"#800000",
|
|
1135
|
-
"#8B4513",
|
|
1136
|
-
"#00008B"
|
|
1137
|
-
],
|
|
1138
|
-
sectionColours: ["#fff"],
|
|
1139
|
-
titleColor: "",
|
|
1140
|
-
titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
1141
|
-
titleFontSize: "4ex"
|
|
1142
|
-
},
|
|
1143
|
-
class: {
|
|
1144
|
-
useMaxWidth: !0,
|
|
1145
|
-
titleTopMargin: 25,
|
|
1146
|
-
arrowMarkerAbsolute: !1,
|
|
1147
|
-
dividerMargin: 10,
|
|
1148
|
-
padding: 5,
|
|
1149
|
-
textHeight: 10,
|
|
1150
|
-
defaultRenderer: "dagre-wrapper",
|
|
1151
|
-
htmlLabels: !1,
|
|
1152
|
-
hideEmptyMembersBox: !1
|
|
1153
|
-
},
|
|
1154
|
-
state: {
|
|
1155
|
-
useMaxWidth: !0,
|
|
1156
|
-
titleTopMargin: 25,
|
|
1157
|
-
dividerMargin: 10,
|
|
1158
|
-
sizeUnit: 5,
|
|
1159
|
-
padding: 8,
|
|
1160
|
-
textHeight: 10,
|
|
1161
|
-
titleShift: -15,
|
|
1162
|
-
noteMargin: 10,
|
|
1163
|
-
forkWidth: 70,
|
|
1164
|
-
forkHeight: 7,
|
|
1165
|
-
miniPadding: 2,
|
|
1166
|
-
fontSizeFactor: 5.02,
|
|
1167
|
-
fontSize: 24,
|
|
1168
|
-
labelHeight: 16,
|
|
1169
|
-
edgeLengthFactor: "20",
|
|
1170
|
-
compositTitleSize: 35,
|
|
1171
|
-
radius: 5,
|
|
1172
|
-
defaultRenderer: "dagre-wrapper"
|
|
1173
|
-
},
|
|
1174
|
-
er: {
|
|
1175
|
-
useMaxWidth: !0,
|
|
1176
|
-
titleTopMargin: 25,
|
|
1177
|
-
diagramPadding: 20,
|
|
1178
|
-
layoutDirection: "TB",
|
|
1179
|
-
minEntityWidth: 100,
|
|
1180
|
-
minEntityHeight: 75,
|
|
1181
|
-
entityPadding: 15,
|
|
1182
|
-
nodeSpacing: 140,
|
|
1183
|
-
rankSpacing: 80,
|
|
1184
|
-
stroke: "gray",
|
|
1185
|
-
fill: "honeydew",
|
|
1186
|
-
fontSize: 12
|
|
1187
|
-
},
|
|
1188
|
-
pie: {
|
|
1189
|
-
useMaxWidth: !0,
|
|
1190
|
-
textPosition: .75
|
|
1191
|
-
},
|
|
1192
|
-
quadrantChart: {
|
|
1193
|
-
useMaxWidth: !0,
|
|
1194
|
-
chartWidth: 500,
|
|
1195
|
-
chartHeight: 500,
|
|
1196
|
-
titleFontSize: 20,
|
|
1197
|
-
titlePadding: 10,
|
|
1198
|
-
quadrantPadding: 5,
|
|
1199
|
-
xAxisLabelPadding: 5,
|
|
1200
|
-
yAxisLabelPadding: 5,
|
|
1201
|
-
xAxisLabelFontSize: 16,
|
|
1202
|
-
yAxisLabelFontSize: 16,
|
|
1203
|
-
quadrantLabelFontSize: 16,
|
|
1204
|
-
quadrantTextTopPadding: 5,
|
|
1205
|
-
pointTextPadding: 5,
|
|
1206
|
-
pointLabelFontSize: 12,
|
|
1207
|
-
pointRadius: 5,
|
|
1208
|
-
xAxisPosition: "top",
|
|
1209
|
-
yAxisPosition: "left",
|
|
1210
|
-
quadrantInternalBorderStrokeWidth: 1,
|
|
1211
|
-
quadrantExternalBorderStrokeWidth: 2
|
|
1212
|
-
},
|
|
1213
|
-
xyChart: {
|
|
1214
|
-
useMaxWidth: !0,
|
|
1215
|
-
width: 700,
|
|
1216
|
-
height: 500,
|
|
1217
|
-
titleFontSize: 20,
|
|
1218
|
-
titlePadding: 10,
|
|
1219
|
-
showDataLabel: !1,
|
|
1220
|
-
showTitle: !0,
|
|
1221
|
-
xAxis: {
|
|
1222
|
-
$ref: "#/$defs/XYChartAxisConfig",
|
|
1223
|
-
showLabel: !0,
|
|
1224
|
-
labelFontSize: 14,
|
|
1225
|
-
labelPadding: 5,
|
|
1226
|
-
showTitle: !0,
|
|
1227
|
-
titleFontSize: 16,
|
|
1228
|
-
titlePadding: 5,
|
|
1229
|
-
showTick: !0,
|
|
1230
|
-
tickLength: 5,
|
|
1231
|
-
tickWidth: 2,
|
|
1232
|
-
showAxisLine: !0,
|
|
1233
|
-
axisLineWidth: 2
|
|
1234
|
-
},
|
|
1235
|
-
yAxis: {
|
|
1236
|
-
$ref: "#/$defs/XYChartAxisConfig",
|
|
1237
|
-
showLabel: !0,
|
|
1238
|
-
labelFontSize: 14,
|
|
1239
|
-
labelPadding: 5,
|
|
1240
|
-
showTitle: !0,
|
|
1241
|
-
titleFontSize: 16,
|
|
1242
|
-
titlePadding: 5,
|
|
1243
|
-
showTick: !0,
|
|
1244
|
-
tickLength: 5,
|
|
1245
|
-
tickWidth: 2,
|
|
1246
|
-
showAxisLine: !0,
|
|
1247
|
-
axisLineWidth: 2
|
|
1248
|
-
},
|
|
1249
|
-
chartOrientation: "vertical",
|
|
1250
|
-
plotReservedSpacePercent: 50
|
|
1251
|
-
},
|
|
1252
|
-
requirement: {
|
|
1253
|
-
useMaxWidth: !0,
|
|
1254
|
-
rect_fill: "#f9f9f9",
|
|
1255
|
-
text_color: "#333",
|
|
1256
|
-
rect_border_size: "0.5px",
|
|
1257
|
-
rect_border_color: "#bbb",
|
|
1258
|
-
rect_min_width: 200,
|
|
1259
|
-
rect_min_height: 200,
|
|
1260
|
-
fontSize: 14,
|
|
1261
|
-
rect_padding: 10,
|
|
1262
|
-
line_height: 20
|
|
1263
|
-
},
|
|
1264
|
-
mindmap: {
|
|
1265
|
-
useMaxWidth: !0,
|
|
1266
|
-
padding: 10,
|
|
1267
|
-
maxNodeWidth: 200,
|
|
1268
|
-
layoutAlgorithm: "cose-bilkent"
|
|
1269
|
-
},
|
|
1270
|
-
ishikawa: {
|
|
1271
|
-
useMaxWidth: !0,
|
|
1272
|
-
diagramPadding: 20
|
|
1273
|
-
},
|
|
1274
|
-
kanban: {
|
|
1275
|
-
useMaxWidth: !0,
|
|
1276
|
-
padding: 8,
|
|
1277
|
-
sectionWidth: 200,
|
|
1278
|
-
ticketBaseUrl: ""
|
|
1279
|
-
},
|
|
1280
|
-
timeline: {
|
|
1281
|
-
useMaxWidth: !0,
|
|
1282
|
-
diagramMarginX: 50,
|
|
1283
|
-
diagramMarginY: 10,
|
|
1284
|
-
leftMargin: 150,
|
|
1285
|
-
width: 150,
|
|
1286
|
-
height: 50,
|
|
1287
|
-
boxMargin: 10,
|
|
1288
|
-
boxTextMargin: 5,
|
|
1289
|
-
noteMargin: 10,
|
|
1290
|
-
messageMargin: 35,
|
|
1291
|
-
messageAlign: "center",
|
|
1292
|
-
bottomMarginAdj: 1,
|
|
1293
|
-
rightAngles: !1,
|
|
1294
|
-
taskFontSize: 14,
|
|
1295
|
-
taskFontFamily: "\"Open Sans\", sans-serif",
|
|
1296
|
-
taskMargin: 50,
|
|
1297
|
-
activationWidth: 10,
|
|
1298
|
-
textPlacement: "fo",
|
|
1299
|
-
actorColours: [
|
|
1300
|
-
"#8FBC8F",
|
|
1301
|
-
"#7CFC00",
|
|
1302
|
-
"#00FFFF",
|
|
1303
|
-
"#20B2AA",
|
|
1304
|
-
"#B0E0E6",
|
|
1305
|
-
"#FFFFE0"
|
|
1306
|
-
],
|
|
1307
|
-
sectionFills: [
|
|
1308
|
-
"#191970",
|
|
1309
|
-
"#8B008B",
|
|
1310
|
-
"#4B0082",
|
|
1311
|
-
"#2F4F4F",
|
|
1312
|
-
"#800000",
|
|
1313
|
-
"#8B4513",
|
|
1314
|
-
"#00008B"
|
|
1315
|
-
],
|
|
1316
|
-
sectionColours: ["#fff"],
|
|
1317
|
-
disableMulticolor: !1
|
|
1318
|
-
},
|
|
1319
|
-
gitGraph: {
|
|
1320
|
-
useMaxWidth: !0,
|
|
1321
|
-
titleTopMargin: 25,
|
|
1322
|
-
diagramPadding: 8,
|
|
1323
|
-
nodeLabel: {
|
|
1324
|
-
width: 75,
|
|
1325
|
-
height: 100,
|
|
1326
|
-
x: -25,
|
|
1327
|
-
y: 0
|
|
1328
|
-
},
|
|
1329
|
-
mainBranchName: "main",
|
|
1330
|
-
mainBranchOrder: 0,
|
|
1331
|
-
showCommitLabel: !0,
|
|
1332
|
-
showBranches: !0,
|
|
1333
|
-
rotateCommitLabel: !0,
|
|
1334
|
-
parallelCommits: !1,
|
|
1335
|
-
arrowMarkerAbsolute: !1
|
|
1336
|
-
},
|
|
1337
|
-
c4: {
|
|
1338
|
-
useMaxWidth: !0,
|
|
1339
|
-
diagramMarginX: 50,
|
|
1340
|
-
diagramMarginY: 10,
|
|
1341
|
-
c4ShapeMargin: 50,
|
|
1342
|
-
c4ShapePadding: 20,
|
|
1343
|
-
width: 216,
|
|
1344
|
-
height: 60,
|
|
1345
|
-
boxMargin: 10,
|
|
1346
|
-
c4ShapeInRow: 4,
|
|
1347
|
-
nextLinePaddingX: 0,
|
|
1348
|
-
c4BoundaryInRow: 2,
|
|
1349
|
-
personFontSize: 14,
|
|
1350
|
-
personFontFamily: "\"Open Sans\", sans-serif",
|
|
1351
|
-
personFontWeight: "normal",
|
|
1352
|
-
external_personFontSize: 14,
|
|
1353
|
-
external_personFontFamily: "\"Open Sans\", sans-serif",
|
|
1354
|
-
external_personFontWeight: "normal",
|
|
1355
|
-
systemFontSize: 14,
|
|
1356
|
-
systemFontFamily: "\"Open Sans\", sans-serif",
|
|
1357
|
-
systemFontWeight: "normal",
|
|
1358
|
-
external_systemFontSize: 14,
|
|
1359
|
-
external_systemFontFamily: "\"Open Sans\", sans-serif",
|
|
1360
|
-
external_systemFontWeight: "normal",
|
|
1361
|
-
system_dbFontSize: 14,
|
|
1362
|
-
system_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
1363
|
-
system_dbFontWeight: "normal",
|
|
1364
|
-
external_system_dbFontSize: 14,
|
|
1365
|
-
external_system_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
1366
|
-
external_system_dbFontWeight: "normal",
|
|
1367
|
-
system_queueFontSize: 14,
|
|
1368
|
-
system_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
1369
|
-
system_queueFontWeight: "normal",
|
|
1370
|
-
external_system_queueFontSize: 14,
|
|
1371
|
-
external_system_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
1372
|
-
external_system_queueFontWeight: "normal",
|
|
1373
|
-
boundaryFontSize: 14,
|
|
1374
|
-
boundaryFontFamily: "\"Open Sans\", sans-serif",
|
|
1375
|
-
boundaryFontWeight: "normal",
|
|
1376
|
-
messageFontSize: 12,
|
|
1377
|
-
messageFontFamily: "\"Open Sans\", sans-serif",
|
|
1378
|
-
messageFontWeight: "normal",
|
|
1379
|
-
containerFontSize: 14,
|
|
1380
|
-
containerFontFamily: "\"Open Sans\", sans-serif",
|
|
1381
|
-
containerFontWeight: "normal",
|
|
1382
|
-
external_containerFontSize: 14,
|
|
1383
|
-
external_containerFontFamily: "\"Open Sans\", sans-serif",
|
|
1384
|
-
external_containerFontWeight: "normal",
|
|
1385
|
-
container_dbFontSize: 14,
|
|
1386
|
-
container_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
1387
|
-
container_dbFontWeight: "normal",
|
|
1388
|
-
external_container_dbFontSize: 14,
|
|
1389
|
-
external_container_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
1390
|
-
external_container_dbFontWeight: "normal",
|
|
1391
|
-
container_queueFontSize: 14,
|
|
1392
|
-
container_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
1393
|
-
container_queueFontWeight: "normal",
|
|
1394
|
-
external_container_queueFontSize: 14,
|
|
1395
|
-
external_container_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
1396
|
-
external_container_queueFontWeight: "normal",
|
|
1397
|
-
componentFontSize: 14,
|
|
1398
|
-
componentFontFamily: "\"Open Sans\", sans-serif",
|
|
1399
|
-
componentFontWeight: "normal",
|
|
1400
|
-
external_componentFontSize: 14,
|
|
1401
|
-
external_componentFontFamily: "\"Open Sans\", sans-serif",
|
|
1402
|
-
external_componentFontWeight: "normal",
|
|
1403
|
-
component_dbFontSize: 14,
|
|
1404
|
-
component_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
1405
|
-
component_dbFontWeight: "normal",
|
|
1406
|
-
external_component_dbFontSize: 14,
|
|
1407
|
-
external_component_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
1408
|
-
external_component_dbFontWeight: "normal",
|
|
1409
|
-
component_queueFontSize: 14,
|
|
1410
|
-
component_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
1411
|
-
component_queueFontWeight: "normal",
|
|
1412
|
-
external_component_queueFontSize: 14,
|
|
1413
|
-
external_component_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
1414
|
-
external_component_queueFontWeight: "normal",
|
|
1415
|
-
wrap: !0,
|
|
1416
|
-
wrapPadding: 10,
|
|
1417
|
-
person_bg_color: "#08427B",
|
|
1418
|
-
person_border_color: "#073B6F",
|
|
1419
|
-
external_person_bg_color: "#686868",
|
|
1420
|
-
external_person_border_color: "#8A8A8A",
|
|
1421
|
-
system_bg_color: "#1168BD",
|
|
1422
|
-
system_border_color: "#3C7FC0",
|
|
1423
|
-
system_db_bg_color: "#1168BD",
|
|
1424
|
-
system_db_border_color: "#3C7FC0",
|
|
1425
|
-
system_queue_bg_color: "#1168BD",
|
|
1426
|
-
system_queue_border_color: "#3C7FC0",
|
|
1427
|
-
external_system_bg_color: "#999999",
|
|
1428
|
-
external_system_border_color: "#8A8A8A",
|
|
1429
|
-
external_system_db_bg_color: "#999999",
|
|
1430
|
-
external_system_db_border_color: "#8A8A8A",
|
|
1431
|
-
external_system_queue_bg_color: "#999999",
|
|
1432
|
-
external_system_queue_border_color: "#8A8A8A",
|
|
1433
|
-
container_bg_color: "#438DD5",
|
|
1434
|
-
container_border_color: "#3C7FC0",
|
|
1435
|
-
container_db_bg_color: "#438DD5",
|
|
1436
|
-
container_db_border_color: "#3C7FC0",
|
|
1437
|
-
container_queue_bg_color: "#438DD5",
|
|
1438
|
-
container_queue_border_color: "#3C7FC0",
|
|
1439
|
-
external_container_bg_color: "#B3B3B3",
|
|
1440
|
-
external_container_border_color: "#A6A6A6",
|
|
1441
|
-
external_container_db_bg_color: "#B3B3B3",
|
|
1442
|
-
external_container_db_border_color: "#A6A6A6",
|
|
1443
|
-
external_container_queue_bg_color: "#B3B3B3",
|
|
1444
|
-
external_container_queue_border_color: "#A6A6A6",
|
|
1445
|
-
component_bg_color: "#85BBF0",
|
|
1446
|
-
component_border_color: "#78A8D8",
|
|
1447
|
-
component_db_bg_color: "#85BBF0",
|
|
1448
|
-
component_db_border_color: "#78A8D8",
|
|
1449
|
-
component_queue_bg_color: "#85BBF0",
|
|
1450
|
-
component_queue_border_color: "#78A8D8",
|
|
1451
|
-
external_component_bg_color: "#CCCCCC",
|
|
1452
|
-
external_component_border_color: "#BFBFBF",
|
|
1453
|
-
external_component_db_bg_color: "#CCCCCC",
|
|
1454
|
-
external_component_db_border_color: "#BFBFBF",
|
|
1455
|
-
external_component_queue_bg_color: "#CCCCCC",
|
|
1456
|
-
external_component_queue_border_color: "#BFBFBF"
|
|
1457
|
-
},
|
|
1458
|
-
sankey: {
|
|
1459
|
-
useMaxWidth: !0,
|
|
1460
|
-
width: 600,
|
|
1461
|
-
height: 400,
|
|
1462
|
-
linkColor: "gradient",
|
|
1463
|
-
nodeAlignment: "justify",
|
|
1464
|
-
showValues: !0,
|
|
1465
|
-
prefix: "",
|
|
1466
|
-
suffix: ""
|
|
1467
|
-
},
|
|
1468
|
-
block: {
|
|
1469
|
-
useMaxWidth: !0,
|
|
1470
|
-
padding: 8
|
|
1471
|
-
},
|
|
1472
|
-
packet: {
|
|
1473
|
-
useMaxWidth: !0,
|
|
1474
|
-
rowHeight: 32,
|
|
1475
|
-
bitWidth: 32,
|
|
1476
|
-
bitsPerRow: 32,
|
|
1477
|
-
showBits: !0,
|
|
1478
|
-
paddingX: 5,
|
|
1479
|
-
paddingY: 5
|
|
1480
|
-
},
|
|
1481
|
-
architecture: {
|
|
1482
|
-
useMaxWidth: !0,
|
|
1483
|
-
padding: 40,
|
|
1484
|
-
iconSize: 80,
|
|
1485
|
-
fontSize: 16
|
|
1486
|
-
},
|
|
1487
|
-
radar: {
|
|
1488
|
-
useMaxWidth: !0,
|
|
1489
|
-
width: 600,
|
|
1490
|
-
height: 600,
|
|
1491
|
-
marginTop: 50,
|
|
1492
|
-
marginRight: 50,
|
|
1493
|
-
marginBottom: 50,
|
|
1494
|
-
marginLeft: 50,
|
|
1495
|
-
axisScaleFactor: 1,
|
|
1496
|
-
axisLabelFactor: 1.05,
|
|
1497
|
-
curveTension: .17
|
|
1498
|
-
},
|
|
1499
|
-
venn: {
|
|
1500
|
-
useMaxWidth: !0,
|
|
1501
|
-
width: 800,
|
|
1502
|
-
height: 450,
|
|
1503
|
-
padding: 8,
|
|
1504
|
-
useDebugLayout: !1
|
|
1505
|
-
},
|
|
1506
|
-
theme: "default",
|
|
1507
|
-
look: "classic",
|
|
1508
|
-
handDrawnSeed: 0,
|
|
1509
|
-
layout: "dagre",
|
|
1510
|
-
maxTextSize: 5e4,
|
|
1511
|
-
maxEdges: 500,
|
|
1512
|
-
darkMode: !1,
|
|
1513
|
-
fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
|
|
1514
|
-
logLevel: 5,
|
|
1515
|
-
securityLevel: "strict",
|
|
1516
|
-
startOnLoad: !0,
|
|
1517
|
-
arrowMarkerAbsolute: !1,
|
|
1518
|
-
secure: [
|
|
1519
|
-
"secure",
|
|
1520
|
-
"securityLevel",
|
|
1521
|
-
"startOnLoad",
|
|
1522
|
-
"maxTextSize",
|
|
1523
|
-
"suppressErrorRendering",
|
|
1524
|
-
"maxEdges"
|
|
1525
|
-
],
|
|
1526
|
-
legacyMathML: !1,
|
|
1527
|
-
forceLegacyMathML: !1,
|
|
1528
|
-
deterministicIds: !1,
|
|
1529
|
-
fontSize: 16,
|
|
1530
|
-
markdownAutoWrap: !0,
|
|
1531
|
-
suppressErrorRendering: !1
|
|
1532
|
-
}, be = {
|
|
1533
|
-
...j,
|
|
1534
|
-
deterministicIDSeed: void 0,
|
|
1535
|
-
elk: {
|
|
1536
|
-
mergeEdges: !1,
|
|
1537
|
-
nodePlacementStrategy: "BRANDES_KOEPF",
|
|
1538
|
-
forceNodeModelOrder: !1,
|
|
1539
|
-
considerModelOrder: "NODES_AND_EDGES"
|
|
1540
|
-
},
|
|
1541
|
-
themeCSS: void 0,
|
|
1542
|
-
themeVariables: A.default.getThemeVariables(),
|
|
1543
|
-
sequence: {
|
|
1544
|
-
...j.sequence,
|
|
1545
|
-
messageFont: /* @__PURE__ */ n(function() {
|
|
1546
|
-
return {
|
|
1547
|
-
fontFamily: this.messageFontFamily,
|
|
1548
|
-
fontSize: this.messageFontSize,
|
|
1549
|
-
fontWeight: this.messageFontWeight
|
|
1550
|
-
};
|
|
1551
|
-
}, "messageFont"),
|
|
1552
|
-
noteFont: /* @__PURE__ */ n(function() {
|
|
1553
|
-
return {
|
|
1554
|
-
fontFamily: this.noteFontFamily,
|
|
1555
|
-
fontSize: this.noteFontSize,
|
|
1556
|
-
fontWeight: this.noteFontWeight
|
|
1557
|
-
};
|
|
1558
|
-
}, "noteFont"),
|
|
1559
|
-
actorFont: /* @__PURE__ */ n(function() {
|
|
1560
|
-
return {
|
|
1561
|
-
fontFamily: this.actorFontFamily,
|
|
1562
|
-
fontSize: this.actorFontSize,
|
|
1563
|
-
fontWeight: this.actorFontWeight
|
|
1564
|
-
};
|
|
1565
|
-
}, "actorFont")
|
|
1566
|
-
},
|
|
1567
|
-
class: { hideEmptyMembersBox: !1 },
|
|
1568
|
-
gantt: {
|
|
1569
|
-
...j.gantt,
|
|
1570
|
-
tickInterval: void 0,
|
|
1571
|
-
useWidth: void 0
|
|
1572
|
-
},
|
|
1573
|
-
c4: {
|
|
1574
|
-
...j.c4,
|
|
1575
|
-
useWidth: void 0,
|
|
1576
|
-
personFont: /* @__PURE__ */ n(function() {
|
|
1577
|
-
return {
|
|
1578
|
-
fontFamily: this.personFontFamily,
|
|
1579
|
-
fontSize: this.personFontSize,
|
|
1580
|
-
fontWeight: this.personFontWeight
|
|
1581
|
-
};
|
|
1582
|
-
}, "personFont"),
|
|
1583
|
-
flowchart: {
|
|
1584
|
-
...j.flowchart,
|
|
1585
|
-
inheritDir: !1
|
|
1586
|
-
},
|
|
1587
|
-
external_personFont: /* @__PURE__ */ n(function() {
|
|
1588
|
-
return {
|
|
1589
|
-
fontFamily: this.external_personFontFamily,
|
|
1590
|
-
fontSize: this.external_personFontSize,
|
|
1591
|
-
fontWeight: this.external_personFontWeight
|
|
1592
|
-
};
|
|
1593
|
-
}, "external_personFont"),
|
|
1594
|
-
systemFont: /* @__PURE__ */ n(function() {
|
|
1595
|
-
return {
|
|
1596
|
-
fontFamily: this.systemFontFamily,
|
|
1597
|
-
fontSize: this.systemFontSize,
|
|
1598
|
-
fontWeight: this.systemFontWeight
|
|
1599
|
-
};
|
|
1600
|
-
}, "systemFont"),
|
|
1601
|
-
external_systemFont: /* @__PURE__ */ n(function() {
|
|
1602
|
-
return {
|
|
1603
|
-
fontFamily: this.external_systemFontFamily,
|
|
1604
|
-
fontSize: this.external_systemFontSize,
|
|
1605
|
-
fontWeight: this.external_systemFontWeight
|
|
1606
|
-
};
|
|
1607
|
-
}, "external_systemFont"),
|
|
1608
|
-
system_dbFont: /* @__PURE__ */ n(function() {
|
|
1609
|
-
return {
|
|
1610
|
-
fontFamily: this.system_dbFontFamily,
|
|
1611
|
-
fontSize: this.system_dbFontSize,
|
|
1612
|
-
fontWeight: this.system_dbFontWeight
|
|
1613
|
-
};
|
|
1614
|
-
}, "system_dbFont"),
|
|
1615
|
-
external_system_dbFont: /* @__PURE__ */ n(function() {
|
|
1616
|
-
return {
|
|
1617
|
-
fontFamily: this.external_system_dbFontFamily,
|
|
1618
|
-
fontSize: this.external_system_dbFontSize,
|
|
1619
|
-
fontWeight: this.external_system_dbFontWeight
|
|
1620
|
-
};
|
|
1621
|
-
}, "external_system_dbFont"),
|
|
1622
|
-
system_queueFont: /* @__PURE__ */ n(function() {
|
|
1623
|
-
return {
|
|
1624
|
-
fontFamily: this.system_queueFontFamily,
|
|
1625
|
-
fontSize: this.system_queueFontSize,
|
|
1626
|
-
fontWeight: this.system_queueFontWeight
|
|
1627
|
-
};
|
|
1628
|
-
}, "system_queueFont"),
|
|
1629
|
-
external_system_queueFont: /* @__PURE__ */ n(function() {
|
|
1630
|
-
return {
|
|
1631
|
-
fontFamily: this.external_system_queueFontFamily,
|
|
1632
|
-
fontSize: this.external_system_queueFontSize,
|
|
1633
|
-
fontWeight: this.external_system_queueFontWeight
|
|
1634
|
-
};
|
|
1635
|
-
}, "external_system_queueFont"),
|
|
1636
|
-
containerFont: /* @__PURE__ */ n(function() {
|
|
1637
|
-
return {
|
|
1638
|
-
fontFamily: this.containerFontFamily,
|
|
1639
|
-
fontSize: this.containerFontSize,
|
|
1640
|
-
fontWeight: this.containerFontWeight
|
|
1641
|
-
};
|
|
1642
|
-
}, "containerFont"),
|
|
1643
|
-
external_containerFont: /* @__PURE__ */ n(function() {
|
|
1644
|
-
return {
|
|
1645
|
-
fontFamily: this.external_containerFontFamily,
|
|
1646
|
-
fontSize: this.external_containerFontSize,
|
|
1647
|
-
fontWeight: this.external_containerFontWeight
|
|
1648
|
-
};
|
|
1649
|
-
}, "external_containerFont"),
|
|
1650
|
-
container_dbFont: /* @__PURE__ */ n(function() {
|
|
1651
|
-
return {
|
|
1652
|
-
fontFamily: this.container_dbFontFamily,
|
|
1653
|
-
fontSize: this.container_dbFontSize,
|
|
1654
|
-
fontWeight: this.container_dbFontWeight
|
|
1655
|
-
};
|
|
1656
|
-
}, "container_dbFont"),
|
|
1657
|
-
external_container_dbFont: /* @__PURE__ */ n(function() {
|
|
1658
|
-
return {
|
|
1659
|
-
fontFamily: this.external_container_dbFontFamily,
|
|
1660
|
-
fontSize: this.external_container_dbFontSize,
|
|
1661
|
-
fontWeight: this.external_container_dbFontWeight
|
|
1662
|
-
};
|
|
1663
|
-
}, "external_container_dbFont"),
|
|
1664
|
-
container_queueFont: /* @__PURE__ */ n(function() {
|
|
1665
|
-
return {
|
|
1666
|
-
fontFamily: this.container_queueFontFamily,
|
|
1667
|
-
fontSize: this.container_queueFontSize,
|
|
1668
|
-
fontWeight: this.container_queueFontWeight
|
|
1669
|
-
};
|
|
1670
|
-
}, "container_queueFont"),
|
|
1671
|
-
external_container_queueFont: /* @__PURE__ */ n(function() {
|
|
1672
|
-
return {
|
|
1673
|
-
fontFamily: this.external_container_queueFontFamily,
|
|
1674
|
-
fontSize: this.external_container_queueFontSize,
|
|
1675
|
-
fontWeight: this.external_container_queueFontWeight
|
|
1676
|
-
};
|
|
1677
|
-
}, "external_container_queueFont"),
|
|
1678
|
-
componentFont: /* @__PURE__ */ n(function() {
|
|
1679
|
-
return {
|
|
1680
|
-
fontFamily: this.componentFontFamily,
|
|
1681
|
-
fontSize: this.componentFontSize,
|
|
1682
|
-
fontWeight: this.componentFontWeight
|
|
1683
|
-
};
|
|
1684
|
-
}, "componentFont"),
|
|
1685
|
-
external_componentFont: /* @__PURE__ */ n(function() {
|
|
1686
|
-
return {
|
|
1687
|
-
fontFamily: this.external_componentFontFamily,
|
|
1688
|
-
fontSize: this.external_componentFontSize,
|
|
1689
|
-
fontWeight: this.external_componentFontWeight
|
|
1690
|
-
};
|
|
1691
|
-
}, "external_componentFont"),
|
|
1692
|
-
component_dbFont: /* @__PURE__ */ n(function() {
|
|
1693
|
-
return {
|
|
1694
|
-
fontFamily: this.component_dbFontFamily,
|
|
1695
|
-
fontSize: this.component_dbFontSize,
|
|
1696
|
-
fontWeight: this.component_dbFontWeight
|
|
1697
|
-
};
|
|
1698
|
-
}, "component_dbFont"),
|
|
1699
|
-
external_component_dbFont: /* @__PURE__ */ n(function() {
|
|
1700
|
-
return {
|
|
1701
|
-
fontFamily: this.external_component_dbFontFamily,
|
|
1702
|
-
fontSize: this.external_component_dbFontSize,
|
|
1703
|
-
fontWeight: this.external_component_dbFontWeight
|
|
1704
|
-
};
|
|
1705
|
-
}, "external_component_dbFont"),
|
|
1706
|
-
component_queueFont: /* @__PURE__ */ n(function() {
|
|
1707
|
-
return {
|
|
1708
|
-
fontFamily: this.component_queueFontFamily,
|
|
1709
|
-
fontSize: this.component_queueFontSize,
|
|
1710
|
-
fontWeight: this.component_queueFontWeight
|
|
1711
|
-
};
|
|
1712
|
-
}, "component_queueFont"),
|
|
1713
|
-
external_component_queueFont: /* @__PURE__ */ n(function() {
|
|
1714
|
-
return {
|
|
1715
|
-
fontFamily: this.external_component_queueFontFamily,
|
|
1716
|
-
fontSize: this.external_component_queueFontSize,
|
|
1717
|
-
fontWeight: this.external_component_queueFontWeight
|
|
1718
|
-
};
|
|
1719
|
-
}, "external_component_queueFont"),
|
|
1720
|
-
boundaryFont: /* @__PURE__ */ n(function() {
|
|
1721
|
-
return {
|
|
1722
|
-
fontFamily: this.boundaryFontFamily,
|
|
1723
|
-
fontSize: this.boundaryFontSize,
|
|
1724
|
-
fontWeight: this.boundaryFontWeight
|
|
1725
|
-
};
|
|
1726
|
-
}, "boundaryFont"),
|
|
1727
|
-
messageFont: /* @__PURE__ */ n(function() {
|
|
1728
|
-
return {
|
|
1729
|
-
fontFamily: this.messageFontFamily,
|
|
1730
|
-
fontSize: this.messageFontSize,
|
|
1731
|
-
fontWeight: this.messageFontWeight
|
|
1732
|
-
};
|
|
1733
|
-
}, "messageFont")
|
|
1734
|
-
},
|
|
1735
|
-
pie: {
|
|
1736
|
-
...j.pie,
|
|
1737
|
-
useWidth: 984
|
|
1738
|
-
},
|
|
1739
|
-
xyChart: {
|
|
1740
|
-
...j.xyChart,
|
|
1741
|
-
useWidth: void 0
|
|
1742
|
-
},
|
|
1743
|
-
requirement: {
|
|
1744
|
-
...j.requirement,
|
|
1745
|
-
useWidth: void 0
|
|
1746
|
-
},
|
|
1747
|
-
packet: { ...j.packet },
|
|
1748
|
-
radar: { ...j.radar },
|
|
1749
|
-
ishikawa: { ...j.ishikawa },
|
|
1750
|
-
treemap: {
|
|
1751
|
-
useMaxWidth: !0,
|
|
1752
|
-
padding: 10,
|
|
1753
|
-
diagramPadding: 8,
|
|
1754
|
-
showValues: !0,
|
|
1755
|
-
nodeWidth: 100,
|
|
1756
|
-
nodeHeight: 40,
|
|
1757
|
-
borderWidth: 1,
|
|
1758
|
-
valueFontSize: 12,
|
|
1759
|
-
labelFontSize: 14,
|
|
1760
|
-
valueFormat: ","
|
|
1761
|
-
},
|
|
1762
|
-
venn: { ...j.venn }
|
|
1763
|
-
}, xe = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
|
|
1764
|
-
...n,
|
|
1765
|
-
t + r,
|
|
1766
|
-
...xe(e[r], "")
|
|
1767
|
-
] : [...n, t + r], []), "keyify"), Se = new Set(xe(be, "")), Ce = be, M = /* @__PURE__ */ n((e) => {
|
|
1768
|
-
if (r.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
|
|
1769
|
-
if (Array.isArray(e)) {
|
|
1770
|
-
e.forEach((e) => M(e));
|
|
1771
|
-
return;
|
|
1772
|
-
}
|
|
1773
|
-
for (let t of Object.keys(e)) {
|
|
1774
|
-
if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Se.has(t) || e[t] == null) {
|
|
1775
|
-
r.debug("sanitize deleting key: ", t), delete e[t];
|
|
1776
|
-
continue;
|
|
1777
|
-
}
|
|
1778
|
-
if (typeof e[t] == "object") {
|
|
1779
|
-
r.debug("sanitizing object", t), M(e[t]);
|
|
1780
|
-
continue;
|
|
1781
|
-
}
|
|
1782
|
-
for (let n of [
|
|
1783
|
-
"themeCSS",
|
|
1784
|
-
"fontFamily",
|
|
1785
|
-
"altFontFamily"
|
|
1786
|
-
]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = we(e[t]));
|
|
1787
|
-
}
|
|
1788
|
-
if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
|
|
1789
|
-
let n = e.themeVariables[t];
|
|
1790
|
-
n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
|
|
1791
|
-
}
|
|
1792
|
-
r.debug("After sanitization", e);
|
|
1793
|
-
}
|
|
1794
|
-
}, "sanitizeDirective"), we = /* @__PURE__ */ n((e) => {
|
|
1795
|
-
let t = 0, n = 0;
|
|
1796
|
-
for (let r of e) {
|
|
1797
|
-
if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
1798
|
-
r === "{" ? t++ : r === "}" && n++;
|
|
1799
|
-
}
|
|
1800
|
-
return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
|
|
1801
|
-
}, "sanitizeCss"), N = Object.freeze(Ce), P = /* @__PURE__ */ n((e) => !(e === !1 || [
|
|
1802
|
-
"false",
|
|
1803
|
-
"null",
|
|
1804
|
-
"0"
|
|
1805
|
-
].includes(String(e).trim().toLowerCase())), "evaluate"), F = E({}, N), I, L = [], R = E({}, N), z = /* @__PURE__ */ n((e, t) => {
|
|
1806
|
-
let n = E({}, e), r = {};
|
|
1807
|
-
for (let e of t) Ae(e), r = E(r, e);
|
|
1808
|
-
if (n = E(n, r), r.theme && r.theme in A) {
|
|
1809
|
-
let e = E(E({}, I).themeVariables || {}, r.themeVariables);
|
|
1810
|
-
n.theme && n.theme in A && (n.themeVariables = A[n.theme].getThemeVariables(e));
|
|
1811
|
-
}
|
|
1812
|
-
return R = n, Ie(R), R;
|
|
1813
|
-
}, "updateCurrentConfig"), Te = /* @__PURE__ */ n((e) => (F = E({}, N), F = E(F, e), e.theme && A[e.theme] && (F.themeVariables = A[e.theme].getThemeVariables(e.themeVariables)), z(F, L), F), "setSiteConfig"), Ee = /* @__PURE__ */ n((e) => {
|
|
1814
|
-
I = E({}, e);
|
|
1815
|
-
}, "saveConfigFromInitialize"), De = /* @__PURE__ */ n((e) => (F = E(F, e), z(F, L), F), "updateSiteConfig"), Oe = /* @__PURE__ */ n(() => E({}, F), "getSiteConfig"), ke = /* @__PURE__ */ n((e) => (Ie(e), E(R, e), B()), "setConfig"), B = /* @__PURE__ */ n(() => E({}, R), "getConfig"), Ae = /* @__PURE__ */ n((e) => {
|
|
1816
|
-
e && (["secure", ...F.secure ?? []].forEach((t) => {
|
|
1817
|
-
Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
|
|
1818
|
-
}), Object.keys(e).forEach((t) => {
|
|
1819
|
-
t.startsWith("__") && delete e[t];
|
|
1820
|
-
}), Object.keys(e).forEach((t) => {
|
|
1821
|
-
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Ae(e[t]);
|
|
1822
|
-
}));
|
|
1823
|
-
}, "sanitize"), je = /* @__PURE__ */ n((e) => {
|
|
1824
|
-
M(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
|
|
1825
|
-
...e.themeVariables,
|
|
1826
|
-
fontFamily: e.fontFamily
|
|
1827
|
-
}), L.push(e), z(F, L);
|
|
1828
|
-
}, "addDirective"), Me = /* @__PURE__ */ n((e = F) => {
|
|
1829
|
-
L = [], z(e, L);
|
|
1830
|
-
}, "reset"), Ne = {
|
|
1831
|
-
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
1832
|
-
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
1833
|
-
}, Pe = {}, Fe = /* @__PURE__ */ n((e) => {
|
|
1834
|
-
Pe[e] || (r.warn(Ne[e]), Pe[e] = !0);
|
|
1835
|
-
}, "issueWarning"), Ie = /* @__PURE__ */ n((e) => {
|
|
1836
|
-
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && Fe("LAZY_LOAD_DEPRECATED");
|
|
1837
|
-
}, "checkConfig"), Le = /* @__PURE__ */ n(() => {
|
|
1838
|
-
let e = {};
|
|
1839
|
-
I && (e = E(e, I));
|
|
1840
|
-
for (let t of L) e = E(e, t);
|
|
1841
|
-
return e;
|
|
1842
|
-
}, "getUserDefinedConfig"), Re = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && Fe("FLOWCHART_HTML_LABELS_DEPRECATED"), P(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), V = /<br\s*\/?>/gi, ze = /* @__PURE__ */ n((e) => e ? Je(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Be = /* @__PURE__ */ (() => {
|
|
1843
|
-
let e = !1;
|
|
1844
|
-
return () => {
|
|
1845
|
-
e ||= (Ve(), !0);
|
|
1846
|
-
};
|
|
1847
|
-
})();
|
|
1848
|
-
function Ve() {
|
|
1849
|
-
let t = "data-temp-href-target";
|
|
1850
|
-
e.addHook("beforeSanitizeAttributes", (e) => {
|
|
1851
|
-
e.tagName === "A" && e.hasAttribute("target") && e.setAttribute(t, e.getAttribute("target") ?? "");
|
|
1852
|
-
}), e.addHook("afterSanitizeAttributes", (e) => {
|
|
1853
|
-
e.tagName === "A" && e.hasAttribute(t) && (e.setAttribute("target", e.getAttribute(t) ?? ""), e.removeAttribute(t), e.getAttribute("target") === "_blank" && e.setAttribute("rel", "noopener"));
|
|
1854
|
-
});
|
|
1855
|
-
}
|
|
1856
|
-
n(Ve, "setupDompurifyHooks");
|
|
1857
|
-
var He = /* @__PURE__ */ n((t) => (Be(), e.sanitize(t)), "removeScript"), Ue = /* @__PURE__ */ n((e, t) => {
|
|
1858
|
-
if (Re(t)) {
|
|
1859
|
-
let n = t.securityLevel;
|
|
1860
|
-
n === "antiscript" || n === "strict" || n === "sandbox" ? e = He(e) : n !== "loose" && (e = Je(e), e = e.replace(/</g, "<").replace(/>/g, ">"), e = e.replace(/=/g, "="), e = qe(e));
|
|
1861
|
-
}
|
|
1862
|
-
return e;
|
|
1863
|
-
}, "sanitizeMore"), H = /* @__PURE__ */ n((t, n) => t && (t = n.dompurifyConfig ? e.sanitize(Ue(t, n), n.dompurifyConfig).toString() : e.sanitize(Ue(t, n), { FORBID_TAGS: ["style"] }).toString(), t), "sanitizeText"), We = /* @__PURE__ */ n((e, t) => typeof e == "string" ? H(e, t) : e.flat().map((e) => H(e, t)), "sanitizeTextOrArray"), Ge = /* @__PURE__ */ n((e) => V.test(e), "hasBreaks"), Ke = /* @__PURE__ */ n((e) => e.split(V), "splitBreaks"), qe = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), Je = /* @__PURE__ */ n((e) => e.replace(V, "#br#"), "breakToPlaceholder"), Ye = /* @__PURE__ */ n((e) => {
|
|
1864
|
-
let t = "";
|
|
1865
|
-
return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
|
|
1866
|
-
}, "getUrl"), Xe = /* @__PURE__ */ n(function(...e) {
|
|
1867
|
-
let t = e.filter((e) => !isNaN(e));
|
|
1868
|
-
return Math.max(...t);
|
|
1869
|
-
}, "getMax"), Ze = /* @__PURE__ */ n(function(...e) {
|
|
1870
|
-
let t = e.filter((e) => !isNaN(e));
|
|
1871
|
-
return Math.min(...t);
|
|
1872
|
-
}, "getMin"), Qe = /* @__PURE__ */ n(function(e) {
|
|
1873
|
-
let t = e.split(/(,)/), n = [];
|
|
1874
|
-
for (let e = 0; e < t.length; e++) {
|
|
1875
|
-
let r = t[e];
|
|
1876
|
-
if (r === "," && e > 0 && e + 1 < t.length) {
|
|
1877
|
-
let i = t[e - 1], a = t[e + 1];
|
|
1878
|
-
$e(i, a) && (r = i + "," + a, e++, n.pop());
|
|
1879
|
-
}
|
|
1880
|
-
n.push(et(r));
|
|
1881
|
-
}
|
|
1882
|
-
return n.join("");
|
|
1883
|
-
}, "parseGenericTypes"), U = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), $e = /* @__PURE__ */ n((e, t) => {
|
|
1884
|
-
let n = U(e, "~"), r = U(t, "~");
|
|
1885
|
-
return n === 1 && r === 1;
|
|
1886
|
-
}, "shouldCombineSets"), et = /* @__PURE__ */ n((e) => {
|
|
1887
|
-
let t = U(e, "~"), n = !1;
|
|
1888
|
-
if (t <= 1) return e;
|
|
1889
|
-
t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
|
|
1890
|
-
let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
1891
|
-
for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
1892
|
-
return n && r.unshift("~"), r.join("");
|
|
1893
|
-
}, "processSet"), tt = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), W = /\$\$(.*)\$\$/g, G = /* @__PURE__ */ n((e) => (e.match(W)?.length ?? 0) > 0, "hasKatex"), nt = /* @__PURE__ */ n(async (e, t) => {
|
|
1894
|
-
let n = document.createElement("div");
|
|
1895
|
-
n.innerHTML = await it(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
|
|
1896
|
-
let r = {
|
|
1897
|
-
width: n.clientWidth,
|
|
1898
|
-
height: n.clientHeight
|
|
1899
|
-
};
|
|
1900
|
-
return n.remove(), r;
|
|
1901
|
-
}, "calculateMathMLDimensions"), rt = /* @__PURE__ */ n(async (e, t) => {
|
|
1902
|
-
if (!G(e)) return e;
|
|
1903
|
-
if (!(tt() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(W, "MathML is unsupported in this environment.");
|
|
1904
|
-
{
|
|
1905
|
-
let { default: n } = await import("./katex-BZdHnXin.js"), r = t.forceLegacyMathML || !tt() && t.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
1906
|
-
return e.split(V).map((e) => G(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(W, (e, t) => n.renderToString(t, {
|
|
1907
|
-
throwOnError: !0,
|
|
1908
|
-
displayMode: !0,
|
|
1909
|
-
output: r
|
|
1910
|
-
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
1911
|
-
}
|
|
1912
|
-
return e.replace(W, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
|
|
1913
|
-
}, "renderKatexUnsanitized"), it = /* @__PURE__ */ n(async (e, t) => H(await rt(e, t), t), "renderKatexSanitized"), at = {
|
|
1914
|
-
getRows: ze,
|
|
1915
|
-
sanitizeText: H,
|
|
1916
|
-
sanitizeTextOrArray: We,
|
|
1917
|
-
hasBreaks: Ge,
|
|
1918
|
-
splitBreaks: Ke,
|
|
1919
|
-
lineBreakRegex: V,
|
|
1920
|
-
removeScript: He,
|
|
1921
|
-
getUrl: Ye,
|
|
1922
|
-
evaluate: P,
|
|
1923
|
-
getMax: Xe,
|
|
1924
|
-
getMin: Ze
|
|
1925
|
-
}, ot = /* @__PURE__ */ n(function(e, t) {
|
|
1926
|
-
for (let n of t) e.attr(n[0], n[1]);
|
|
1927
|
-
}, "d3Attrs"), st = /* @__PURE__ */ n(function(e, t, n) {
|
|
1928
|
-
let r = /* @__PURE__ */ new Map();
|
|
1929
|
-
return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
|
|
1930
|
-
}, "calculateSvgSizeAttrs"), ct = /* @__PURE__ */ n(function(e, t, n, r) {
|
|
1931
|
-
ot(e, st(t, n, r));
|
|
1932
|
-
}, "configureSvgSize"), lt = /* @__PURE__ */ n(function(e, t, n, i) {
|
|
1933
|
-
let a = t.node().getBBox(), o = a.width, s = a.height;
|
|
1934
|
-
r.info(`SVG bounds: ${o}x${s}`, a);
|
|
1935
|
-
let c = 0, l = 0;
|
|
1936
|
-
r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`), ct(t, l, c, i);
|
|
1937
|
-
let u = `${a.x - n} ${a.y - n} ${a.width + 2 * n} ${a.height + 2 * n}`;
|
|
1938
|
-
t.attr("viewBox", u);
|
|
1939
|
-
}, "setupGraphViewbox"), K = {}, ut = /* @__PURE__ */ n((e, t, n) => {
|
|
1940
|
-
let i = "";
|
|
1941
|
-
return e in K && K[e] ? i = K[e](n) : r.warn(`No theme found for ${e}`), ` & {
|
|
1942
|
-
font-family: ${n.fontFamily};
|
|
1943
|
-
font-size: ${n.fontSize};
|
|
1944
|
-
fill: ${n.textColor}
|
|
1945
|
-
}
|
|
1946
|
-
@keyframes edge-animation-frame {
|
|
1947
|
-
from {
|
|
1948
|
-
stroke-dashoffset: 0;
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
@keyframes dash {
|
|
1952
|
-
to {
|
|
1953
|
-
stroke-dashoffset: 0;
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
& .edge-animation-slow {
|
|
1957
|
-
stroke-dasharray: 9,5 !important;
|
|
1958
|
-
stroke-dashoffset: 900;
|
|
1959
|
-
animation: dash 50s linear infinite;
|
|
1960
|
-
stroke-linecap: round;
|
|
1961
|
-
}
|
|
1962
|
-
& .edge-animation-fast {
|
|
1963
|
-
stroke-dasharray: 9,5 !important;
|
|
1964
|
-
stroke-dashoffset: 900;
|
|
1965
|
-
animation: dash 20s linear infinite;
|
|
1966
|
-
stroke-linecap: round;
|
|
1967
|
-
}
|
|
1968
|
-
/* Classes common for multiple diagrams */
|
|
1969
|
-
|
|
1970
|
-
& .error-icon {
|
|
1971
|
-
fill: ${n.errorBkgColor};
|
|
1972
|
-
}
|
|
1973
|
-
& .error-text {
|
|
1974
|
-
fill: ${n.errorTextColor};
|
|
1975
|
-
stroke: ${n.errorTextColor};
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
& .edge-thickness-normal {
|
|
1979
|
-
stroke-width: 1px;
|
|
1980
|
-
}
|
|
1981
|
-
& .edge-thickness-thick {
|
|
1982
|
-
stroke-width: 3.5px
|
|
1983
|
-
}
|
|
1984
|
-
& .edge-pattern-solid {
|
|
1985
|
-
stroke-dasharray: 0;
|
|
1986
|
-
}
|
|
1987
|
-
& .edge-thickness-invisible {
|
|
1988
|
-
stroke-width: 0;
|
|
1989
|
-
fill: none;
|
|
1990
|
-
}
|
|
1991
|
-
& .edge-pattern-dashed{
|
|
1992
|
-
stroke-dasharray: 3;
|
|
1993
|
-
}
|
|
1994
|
-
.edge-pattern-dotted {
|
|
1995
|
-
stroke-dasharray: 2;
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
& .marker {
|
|
1999
|
-
fill: ${n.lineColor};
|
|
2000
|
-
stroke: ${n.lineColor};
|
|
2001
|
-
}
|
|
2002
|
-
& .marker.cross {
|
|
2003
|
-
stroke: ${n.lineColor};
|
|
2004
|
-
}
|
|
2005
|
-
|
|
2006
|
-
& svg {
|
|
2007
|
-
font-family: ${n.fontFamily};
|
|
2008
|
-
font-size: ${n.fontSize};
|
|
2009
|
-
}
|
|
2010
|
-
& p {
|
|
2011
|
-
margin: 0
|
|
2012
|
-
}
|
|
2013
|
-
|
|
2014
|
-
${i}
|
|
2015
|
-
|
|
2016
|
-
${t}
|
|
2017
|
-
`;
|
|
2018
|
-
}, "getStyles"), dt = /* @__PURE__ */ n((e, t) => {
|
|
2019
|
-
t !== void 0 && (K[e] = t);
|
|
2020
|
-
}, "addStylesForDiagram"), ft = ut, q = {};
|
|
2021
|
-
i(q, {
|
|
2022
|
-
clear: () => pt,
|
|
2023
|
-
getAccDescription: () => _t,
|
|
2024
|
-
getAccTitle: () => ht,
|
|
2025
|
-
getDiagramTitle: () => yt,
|
|
2026
|
-
setAccDescription: () => gt,
|
|
2027
|
-
setAccTitle: () => mt,
|
|
2028
|
-
setDiagramTitle: () => vt
|
|
2029
|
-
});
|
|
2030
|
-
var J = "", Y = "", X = "", Z = /* @__PURE__ */ n((e) => H(e, B()), "sanitizeText"), pt = /* @__PURE__ */ n(() => {
|
|
2031
|
-
J = "", X = "", Y = "";
|
|
2032
|
-
}, "clear"), mt = /* @__PURE__ */ n((e) => {
|
|
2033
|
-
J = Z(e).replace(/^\s+/g, "");
|
|
2034
|
-
}, "setAccTitle"), ht = /* @__PURE__ */ n(() => J, "getAccTitle"), gt = /* @__PURE__ */ n((e) => {
|
|
2035
|
-
X = Z(e).replace(/\n\s+/g, "\n");
|
|
2036
|
-
}, "setAccDescription"), _t = /* @__PURE__ */ n(() => X, "getAccDescription"), vt = /* @__PURE__ */ n((e) => {
|
|
2037
|
-
Y = Z(e);
|
|
2038
|
-
}, "setDiagramTitle"), yt = /* @__PURE__ */ n(() => Y, "getDiagramTitle"), bt = r, xt = t, Q = B, St = ke, Ct = N, wt = /* @__PURE__ */ n((e) => H(e, Q()), "sanitizeText"), Tt = lt, Et = /* @__PURE__ */ n(() => q, "getCommonDb"), $ = {}, Dt = /* @__PURE__ */ n((e, t, n) => {
|
|
2039
|
-
$[e] && bt.warn(`Diagram with id ${e} already registered. Overwriting.`), $[e] = t, n && le(e, n), dt(e, t.styles), t.injectUtils?.(bt, xt, Q, wt, Tt, Et(), () => {});
|
|
2040
|
-
}, "registerDiagram"), Ot = /* @__PURE__ */ n((e) => {
|
|
2041
|
-
if (e in $) return $[e];
|
|
2042
|
-
throw new kt(e);
|
|
2043
|
-
}, "getDiagram"), kt = class extends Error {
|
|
2044
|
-
static {
|
|
2045
|
-
n(this, "DiagramNotFoundError");
|
|
2046
|
-
}
|
|
2047
|
-
constructor(e) {
|
|
2048
|
-
super(`Diagram ${e} not found.`);
|
|
2049
|
-
}
|
|
2050
|
-
};
|
|
2051
|
-
//#endregion
|
|
2052
|
-
export { y as $, V as A, gt as B, yt as C, Ye as D, ge as E, Me as F, Te as G, ke as H, M as I, ft as J, lt as K, H as L, Dt as M, ce as N, Le as O, it as P, b as Q, wt as R, ue as S, Oe as T, St as U, mt as V, vt as W, De as X, A as Y, x as Z, _t as _, pt as a, Q as b, ct as c, Ce as d, v as et, se as f, re as g, P as h, nt as i, Qe as j, G as k, N as l, ie as m, je as n, h as nt, q as o, w as p, Tt as q, E as r, o as rt, at as s, oe as t, _ as tt, Ct as u, ht as v, Re as w, Ot as x, B as y, Ee as z };
|
|
2053
|
-
|
|
2054
|
-
//# sourceMappingURL=chunk-7R4GIKGN-DJmroLCH.js.map
|