@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
|
@@ -0,0 +1,2868 @@
|
|
|
1
|
+
import { t as e } from "./purify.es-Dsqc2y0I.js";
|
|
2
|
+
import { i as t, n, r, t as i } from "./src-DngnQkx_.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.radius = 5, this.strokeWidth = 1, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.useGradient = !0, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
|
|
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.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", 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.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
|
|
546
|
+
backgroundColor: this.wardley?.backgroundColor || this.background,
|
|
547
|
+
axisColor: this.wardley?.axisColor || this.lineColor,
|
|
548
|
+
axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
|
|
549
|
+
gridColor: this.wardley?.gridColor || this.gridColor,
|
|
550
|
+
componentFill: this.wardley?.componentFill || this.background,
|
|
551
|
+
componentStroke: this.wardley?.componentStroke || this.lineColor,
|
|
552
|
+
componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
|
|
553
|
+
linkStroke: this.wardley?.linkStroke || this.lineColor,
|
|
554
|
+
evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
|
|
555
|
+
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
556
|
+
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
557
|
+
annotationFill: this.wardley?.annotationFill || this.background
|
|
558
|
+
}, 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, {
|
|
559
|
+
r: 5,
|
|
560
|
+
g: 5,
|
|
561
|
+
b: 5
|
|
562
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
563
|
+
r: 10,
|
|
564
|
+
g: 10,
|
|
565
|
+
b: 10
|
|
566
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
567
|
+
r: 15,
|
|
568
|
+
g: 15,
|
|
569
|
+
b: 15
|
|
570
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
571
|
+
r: -5,
|
|
572
|
+
g: -5,
|
|
573
|
+
b: -5
|
|
574
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
575
|
+
r: -10,
|
|
576
|
+
g: -10,
|
|
577
|
+
b: -10
|
|
578
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
579
|
+
r: -15,
|
|
580
|
+
g: -15,
|
|
581
|
+
b: -15
|
|
582
|
+
}), 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 = {
|
|
583
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
584
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
585
|
+
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
586
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
587
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
588
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
589
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
590
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
591
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
592
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
593
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
594
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
595
|
+
}, 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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
|
|
596
|
+
}
|
|
597
|
+
calculate(e) {
|
|
598
|
+
if (typeof e != "object") {
|
|
599
|
+
this.updateColors();
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
let t = Object.keys(e);
|
|
603
|
+
t.forEach((t) => {
|
|
604
|
+
this[t] = e[t];
|
|
605
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
606
|
+
this[t] = e[t];
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
}, fe = /* @__PURE__ */ n((e) => {
|
|
610
|
+
let t = new de();
|
|
611
|
+
return t.calculate(e), t;
|
|
612
|
+
}, "getThemeVariables"), pe = class {
|
|
613
|
+
static {
|
|
614
|
+
n(this, "Theme");
|
|
615
|
+
}
|
|
616
|
+
constructor() {
|
|
617
|
+
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.radius = 5, this.strokeWidth = 1, 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.clusterBkg = "#302F3D", 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", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
|
|
618
|
+
}
|
|
619
|
+
updateColors() {
|
|
620
|
+
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 });
|
|
621
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
622
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
623
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
624
|
+
h: 30,
|
|
625
|
+
s: -30,
|
|
626
|
+
l: -(-10 + e * 4)
|
|
627
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
628
|
+
h: 30,
|
|
629
|
+
s: -30,
|
|
630
|
+
l: -(-7 + e * 4)
|
|
631
|
+
});
|
|
632
|
+
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
|
|
633
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
634
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
635
|
+
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";
|
|
636
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? b(this["cScale" + e], 30);
|
|
637
|
+
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, {
|
|
638
|
+
r: 5,
|
|
639
|
+
g: 5,
|
|
640
|
+
b: 5
|
|
641
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
642
|
+
r: 10,
|
|
643
|
+
g: 10,
|
|
644
|
+
b: 10
|
|
645
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
646
|
+
r: 15,
|
|
647
|
+
g: 15,
|
|
648
|
+
b: 15
|
|
649
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
650
|
+
r: -5,
|
|
651
|
+
g: -5,
|
|
652
|
+
b: -5
|
|
653
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
654
|
+
r: -10,
|
|
655
|
+
g: -10,
|
|
656
|
+
b: -10
|
|
657
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
658
|
+
r: -15,
|
|
659
|
+
g: -15,
|
|
660
|
+
b: -15
|
|
661
|
+
}), 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 = {
|
|
662
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
663
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
664
|
+
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
665
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
666
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
667
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
668
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
669
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
670
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
671
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
672
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
673
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
|
|
674
|
+
}, this.packet = {
|
|
675
|
+
startByteColor: this.primaryTextColor,
|
|
676
|
+
endByteColor: this.primaryTextColor,
|
|
677
|
+
labelColor: this.primaryTextColor,
|
|
678
|
+
titleColor: this.primaryTextColor,
|
|
679
|
+
blockStrokeColor: this.primaryTextColor,
|
|
680
|
+
blockFillColor: this.background
|
|
681
|
+
}, this.radar = {
|
|
682
|
+
axisColor: this.radar?.axisColor || this.lineColor,
|
|
683
|
+
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
684
|
+
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
685
|
+
curveOpacity: this.radar?.curveOpacity || .5,
|
|
686
|
+
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
687
|
+
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
688
|
+
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
689
|
+
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
690
|
+
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
691
|
+
legendFontSize: this.radar?.legendFontSize || 12
|
|
692
|
+
}, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#ff6b6b", this.wardley = {
|
|
693
|
+
backgroundColor: this.wardley?.backgroundColor || this.background,
|
|
694
|
+
axisColor: this.wardley?.axisColor || this.lineColor,
|
|
695
|
+
axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
|
|
696
|
+
gridColor: this.wardley?.gridColor || this.gridColor,
|
|
697
|
+
componentFill: this.wardley?.componentFill || this.mainBkg,
|
|
698
|
+
componentStroke: this.wardley?.componentStroke || this.lineColor,
|
|
699
|
+
componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
|
|
700
|
+
linkStroke: this.wardley?.linkStroke || this.lineColor,
|
|
701
|
+
evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
|
|
702
|
+
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
703
|
+
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
704
|
+
annotationFill: this.wardley?.annotationFill || this.mainBkg
|
|
705
|
+
}, 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.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || b("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || b("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || b("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || b("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || b(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || b(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || b(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || b(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
706
|
+
}
|
|
707
|
+
calculate(e) {
|
|
708
|
+
if (typeof e != "object") {
|
|
709
|
+
this.updateColors();
|
|
710
|
+
return;
|
|
711
|
+
}
|
|
712
|
+
let t = Object.keys(e);
|
|
713
|
+
t.forEach((t) => {
|
|
714
|
+
this[t] = e[t];
|
|
715
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
716
|
+
this[t] = e[t];
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
}, me = /* @__PURE__ */ n((e) => {
|
|
720
|
+
let t = new pe();
|
|
721
|
+
return t.calculate(e), t;
|
|
722
|
+
}, "getThemeVariables"), he = class {
|
|
723
|
+
static {
|
|
724
|
+
n(this, "Theme");
|
|
725
|
+
}
|
|
726
|
+
constructor() {
|
|
727
|
+
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.primaryBorderColor = k(this.primaryColor, this.darkMode), 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.radius = 5, this.strokeWidth = 1, 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.clusterBkg = "#FBFBFF", 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.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", 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.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
|
|
728
|
+
}
|
|
729
|
+
updateColors() {
|
|
730
|
+
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);
|
|
731
|
+
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);
|
|
732
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e], { h: 180 });
|
|
733
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
734
|
+
h: 30,
|
|
735
|
+
l: -(5 + e * 5)
|
|
736
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
737
|
+
h: 30,
|
|
738
|
+
l: -(7 + e * 5)
|
|
739
|
+
});
|
|
740
|
+
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
741
|
+
this.cScaleLabel0 = this.cScaleLabel0 || C(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || C(this.labelTextColor);
|
|
742
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
|
|
743
|
+
}
|
|
744
|
+
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 = this.border1, 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, {
|
|
745
|
+
h: 60,
|
|
746
|
+
l: -20
|
|
747
|
+
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
748
|
+
h: -60,
|
|
749
|
+
l: -40
|
|
750
|
+
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
751
|
+
h: 120,
|
|
752
|
+
l: -40
|
|
753
|
+
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
754
|
+
h: 60,
|
|
755
|
+
l: -40
|
|
756
|
+
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
757
|
+
h: -90,
|
|
758
|
+
l: -40
|
|
759
|
+
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
760
|
+
h: 120,
|
|
761
|
+
l: -30
|
|
762
|
+
}), 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, {
|
|
763
|
+
h: 60,
|
|
764
|
+
l: -30
|
|
765
|
+
}), this.venn5 = this.venn5 ?? S(this.primaryColor, {
|
|
766
|
+
h: -60,
|
|
767
|
+
l: -30
|
|
768
|
+
}), this.venn6 = this.venn6 ?? S(this.secondaryColor, {
|
|
769
|
+
h: 60,
|
|
770
|
+
l: -30
|
|
771
|
+
}), this.venn7 = this.venn7 ?? S(this.primaryColor, {
|
|
772
|
+
h: 120,
|
|
773
|
+
l: -30
|
|
774
|
+
}), this.venn8 = this.venn8 ?? S(this.secondaryColor, {
|
|
775
|
+
h: 120,
|
|
776
|
+
l: -30
|
|
777
|
+
}), 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, {
|
|
778
|
+
r: 5,
|
|
779
|
+
g: 5,
|
|
780
|
+
b: 5
|
|
781
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
782
|
+
r: 10,
|
|
783
|
+
g: 10,
|
|
784
|
+
b: 10
|
|
785
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
786
|
+
r: 15,
|
|
787
|
+
g: 15,
|
|
788
|
+
b: 15
|
|
789
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
790
|
+
r: -5,
|
|
791
|
+
g: -5,
|
|
792
|
+
b: -5
|
|
793
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
794
|
+
r: -10,
|
|
795
|
+
g: -10,
|
|
796
|
+
b: -10
|
|
797
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
798
|
+
r: -15,
|
|
799
|
+
g: -15,
|
|
800
|
+
b: -15
|
|
801
|
+
}), 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 = {
|
|
802
|
+
axisColor: this.radar?.axisColor || this.lineColor,
|
|
803
|
+
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
804
|
+
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
805
|
+
curveOpacity: this.radar?.curveOpacity || .5,
|
|
806
|
+
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
807
|
+
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
808
|
+
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
809
|
+
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
810
|
+
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
811
|
+
legendFontSize: this.radar?.legendFontSize || 12
|
|
812
|
+
}, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
|
|
813
|
+
backgroundColor: this.wardley?.backgroundColor || this.background,
|
|
814
|
+
axisColor: this.wardley?.axisColor || this.lineColor,
|
|
815
|
+
axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
|
|
816
|
+
gridColor: this.wardley?.gridColor || this.gridColor,
|
|
817
|
+
componentFill: this.wardley?.componentFill || this.background,
|
|
818
|
+
componentStroke: this.wardley?.componentStroke || this.lineColor,
|
|
819
|
+
componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
|
|
820
|
+
linkStroke: this.wardley?.linkStroke || this.lineColor,
|
|
821
|
+
evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
|
|
822
|
+
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
823
|
+
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
824
|
+
annotationFill: this.wardley?.annotationFill || this.background
|
|
825
|
+
}, this.xyChart = {
|
|
826
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
827
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
828
|
+
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
829
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
830
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
831
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
832
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
833
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
834
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
835
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
836
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
837
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
838
|
+
}, 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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
839
|
+
}
|
|
840
|
+
calculate(e) {
|
|
841
|
+
if (Object.keys(this).forEach((e) => {
|
|
842
|
+
this[e] === "calculated" && (this[e] = void 0);
|
|
843
|
+
}), typeof e != "object") {
|
|
844
|
+
this.updateColors();
|
|
845
|
+
return;
|
|
846
|
+
}
|
|
847
|
+
let t = Object.keys(e);
|
|
848
|
+
t.forEach((t) => {
|
|
849
|
+
this[t] = e[t];
|
|
850
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
851
|
+
this[t] = e[t];
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
}, ge = /* @__PURE__ */ n((e) => {
|
|
855
|
+
let t = new he();
|
|
856
|
+
return t.calculate(e), t;
|
|
857
|
+
}, "getThemeVariables"), _e = class {
|
|
858
|
+
static {
|
|
859
|
+
n(this, "Theme");
|
|
860
|
+
}
|
|
861
|
+
constructor() {
|
|
862
|
+
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.radius = 5, this.strokeWidth = 1, 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.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
|
|
863
|
+
}
|
|
864
|
+
updateColors() {
|
|
865
|
+
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);
|
|
866
|
+
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);
|
|
867
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e], { h: 180 });
|
|
868
|
+
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
869
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
870
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
871
|
+
h: 30,
|
|
872
|
+
s: -30,
|
|
873
|
+
l: -(5 + e * 5)
|
|
874
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
875
|
+
h: 30,
|
|
876
|
+
s: -30,
|
|
877
|
+
l: -(8 + e * 5)
|
|
878
|
+
});
|
|
879
|
+
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, {
|
|
880
|
+
h: 40,
|
|
881
|
+
l: -40
|
|
882
|
+
}), this.pie7 = this.pie7 || S(this.primaryColor, {
|
|
883
|
+
h: 60,
|
|
884
|
+
l: -10
|
|
885
|
+
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
886
|
+
h: -60,
|
|
887
|
+
l: -10
|
|
888
|
+
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
889
|
+
h: 120,
|
|
890
|
+
l: 0
|
|
891
|
+
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
892
|
+
h: 60,
|
|
893
|
+
l: -50
|
|
894
|
+
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
895
|
+
h: -60,
|
|
896
|
+
l: -50
|
|
897
|
+
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
898
|
+
h: 120,
|
|
899
|
+
l: -50
|
|
900
|
+
}), 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, {
|
|
901
|
+
h: 60,
|
|
902
|
+
l: -30
|
|
903
|
+
}), this.venn5 = this.venn5 ?? S(this.primaryColor, {
|
|
904
|
+
h: -60,
|
|
905
|
+
l: -30
|
|
906
|
+
}), this.venn6 = this.venn6 ?? S(this.secondaryColor, {
|
|
907
|
+
h: 60,
|
|
908
|
+
l: -30
|
|
909
|
+
}), this.venn7 = this.venn7 ?? S(this.primaryColor, {
|
|
910
|
+
h: 120,
|
|
911
|
+
l: -30
|
|
912
|
+
}), this.venn8 = this.venn8 ?? S(this.secondaryColor, {
|
|
913
|
+
h: 120,
|
|
914
|
+
l: -30
|
|
915
|
+
}), 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, {
|
|
916
|
+
r: 5,
|
|
917
|
+
g: 5,
|
|
918
|
+
b: 5
|
|
919
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
920
|
+
r: 10,
|
|
921
|
+
g: 10,
|
|
922
|
+
b: 10
|
|
923
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
924
|
+
r: 15,
|
|
925
|
+
g: 15,
|
|
926
|
+
b: 15
|
|
927
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
928
|
+
r: -5,
|
|
929
|
+
g: -5,
|
|
930
|
+
b: -5
|
|
931
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
932
|
+
r: -10,
|
|
933
|
+
g: -10,
|
|
934
|
+
b: -10
|
|
935
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
936
|
+
r: -15,
|
|
937
|
+
g: -15,
|
|
938
|
+
b: -15
|
|
939
|
+
}), 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 = {
|
|
940
|
+
startByteColor: this.primaryTextColor,
|
|
941
|
+
endByteColor: this.primaryTextColor,
|
|
942
|
+
labelColor: this.primaryTextColor,
|
|
943
|
+
titleColor: this.primaryTextColor,
|
|
944
|
+
blockStrokeColor: this.primaryTextColor,
|
|
945
|
+
blockFillColor: this.mainBkg
|
|
946
|
+
}, this.radar = {
|
|
947
|
+
axisColor: this.radar?.axisColor || this.lineColor,
|
|
948
|
+
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
949
|
+
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
950
|
+
curveOpacity: this.radar?.curveOpacity || .5,
|
|
951
|
+
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
952
|
+
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
953
|
+
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
954
|
+
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
955
|
+
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
956
|
+
legendFontSize: this.radar?.legendFontSize || 12
|
|
957
|
+
}, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
|
|
958
|
+
backgroundColor: this.wardley?.backgroundColor || this.background,
|
|
959
|
+
axisColor: this.wardley?.axisColor || this.lineColor,
|
|
960
|
+
axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
|
|
961
|
+
gridColor: this.wardley?.gridColor || this.gridColor,
|
|
962
|
+
componentFill: this.wardley?.componentFill || this.background,
|
|
963
|
+
componentStroke: this.wardley?.componentStroke || this.lineColor,
|
|
964
|
+
componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
|
|
965
|
+
linkStroke: this.wardley?.linkStroke || this.lineColor,
|
|
966
|
+
evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
|
|
967
|
+
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
968
|
+
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
969
|
+
annotationFill: this.wardley?.annotationFill || this.background
|
|
970
|
+
}, this.xyChart = {
|
|
971
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
972
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
973
|
+
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
974
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
975
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
976
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
977
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
978
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
979
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
980
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
981
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
982
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
983
|
+
}, 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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
984
|
+
}
|
|
985
|
+
calculate(e) {
|
|
986
|
+
if (typeof e != "object") {
|
|
987
|
+
this.updateColors();
|
|
988
|
+
return;
|
|
989
|
+
}
|
|
990
|
+
let t = Object.keys(e);
|
|
991
|
+
t.forEach((t) => {
|
|
992
|
+
this[t] = e[t];
|
|
993
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
994
|
+
this[t] = e[t];
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
}, ve = /* @__PURE__ */ n((e) => {
|
|
998
|
+
let t = new _e();
|
|
999
|
+
return t.calculate(e), t;
|
|
1000
|
+
}, "getThemeVariables"), ye = class {
|
|
1001
|
+
static {
|
|
1002
|
+
n(this, "Theme");
|
|
1003
|
+
}
|
|
1004
|
+
constructor() {
|
|
1005
|
+
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.radius = 5, this.strokeWidth = 1, 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.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || b(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
|
|
1006
|
+
}
|
|
1007
|
+
updateColors() {
|
|
1008
|
+
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";
|
|
1009
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1010
|
+
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);
|
|
1011
|
+
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
1012
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1013
|
+
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) });
|
|
1014
|
+
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 });
|
|
1015
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1016
|
+
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";
|
|
1017
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
|
|
1018
|
+
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, {
|
|
1019
|
+
r: 5,
|
|
1020
|
+
g: 5,
|
|
1021
|
+
b: 5
|
|
1022
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
1023
|
+
r: 10,
|
|
1024
|
+
g: 10,
|
|
1025
|
+
b: 10
|
|
1026
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
1027
|
+
r: 15,
|
|
1028
|
+
g: 15,
|
|
1029
|
+
b: 15
|
|
1030
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1031
|
+
r: -5,
|
|
1032
|
+
g: -5,
|
|
1033
|
+
b: -5
|
|
1034
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1035
|
+
r: -10,
|
|
1036
|
+
g: -10,
|
|
1037
|
+
b: -10
|
|
1038
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1039
|
+
r: -15,
|
|
1040
|
+
g: -15,
|
|
1041
|
+
b: -15
|
|
1042
|
+
}), 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 = {
|
|
1043
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1044
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1045
|
+
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1046
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1047
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1048
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1049
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1050
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1051
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1052
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1053
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1054
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
|
|
1055
|
+
}, this.radar = {
|
|
1056
|
+
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1057
|
+
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1058
|
+
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
1059
|
+
curveOpacity: this.radar?.curveOpacity || .5,
|
|
1060
|
+
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
|
|
1061
|
+
graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
|
|
1062
|
+
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
|
|
1063
|
+
graticuleOpacity: this.radar?.graticuleOpacity || .3,
|
|
1064
|
+
legendBoxSize: this.radar?.legendBoxSize || 12,
|
|
1065
|
+
legendFontSize: this.radar?.legendFontSize || 12
|
|
1066
|
+
}, this.wardleyEvolutionColor = this.wardleyEvolutionColor || "#dc3545", this.wardley = {
|
|
1067
|
+
backgroundColor: this.wardley?.backgroundColor || this.background,
|
|
1068
|
+
axisColor: this.wardley?.axisColor || this.lineColor,
|
|
1069
|
+
axisTextColor: this.wardley?.axisTextColor || this.primaryTextColor,
|
|
1070
|
+
gridColor: this.wardley?.gridColor || this.gridColor,
|
|
1071
|
+
componentFill: this.wardley?.componentFill || this.background,
|
|
1072
|
+
componentStroke: this.wardley?.componentStroke || this.lineColor,
|
|
1073
|
+
componentLabelColor: this.wardley?.componentLabelColor || this.primaryTextColor,
|
|
1074
|
+
linkStroke: this.wardley?.linkStroke || this.lineColor,
|
|
1075
|
+
evolutionStroke: this.wardley?.evolutionStroke || this.wardleyEvolutionColor,
|
|
1076
|
+
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1077
|
+
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1078
|
+
annotationFill: this.wardley?.annotationFill || this.background
|
|
1079
|
+
}, 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.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1080
|
+
}
|
|
1081
|
+
calculate(e) {
|
|
1082
|
+
if (typeof e != "object") {
|
|
1083
|
+
this.updateColors();
|
|
1084
|
+
return;
|
|
1085
|
+
}
|
|
1086
|
+
let t = Object.keys(e);
|
|
1087
|
+
t.forEach((t) => {
|
|
1088
|
+
this[t] = e[t];
|
|
1089
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1090
|
+
this[t] = e[t];
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
}, be = /* @__PURE__ */ n((e) => {
|
|
1094
|
+
let t = new ye();
|
|
1095
|
+
return t.calculate(e), t;
|
|
1096
|
+
}, "getThemeVariables"), xe = class {
|
|
1097
|
+
static {
|
|
1098
|
+
n(this, "Theme");
|
|
1099
|
+
}
|
|
1100
|
+
constructor() {
|
|
1101
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
|
|
1102
|
+
}
|
|
1103
|
+
updateColors() {
|
|
1104
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
1105
|
+
h: 180,
|
|
1106
|
+
l: 5
|
|
1107
|
+
}), 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);
|
|
1108
|
+
let e = "#ECECFE", t = "#E9E9F1", n = S(e, {
|
|
1109
|
+
h: 180,
|
|
1110
|
+
l: 5
|
|
1111
|
+
});
|
|
1112
|
+
if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || b(e, 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.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || n, this.cScale3 = this.cScale3 || S(e, { h: 30 }), this.cScale4 = this.cScale4 || S(e, { h: 60 }), this.cScale5 = this.cScale5 || S(e, { h: 90 }), this.cScale6 = this.cScale6 || S(e, { h: 120 }), this.cScale7 = this.cScale7 || S(e, { h: 150 }), this.cScale8 = this.cScale8 || S(e, {
|
|
1113
|
+
h: 210,
|
|
1114
|
+
l: 150
|
|
1115
|
+
}), this.cScale9 = this.cScale9 || S(e, { h: 270 }), this.cScale10 = this.cScale10 || S(e, { h: 300 }), this.cScale11 = this.cScale11 || S(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
|
|
1116
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
|
|
1117
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1118
|
+
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);
|
|
1119
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1120
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1121
|
+
let r = this.darkMode ? -4 : -1;
|
|
1122
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
1123
|
+
h: 180,
|
|
1124
|
+
s: -15,
|
|
1125
|
+
l: r * (5 + e * 3)
|
|
1126
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
1127
|
+
h: 180,
|
|
1128
|
+
s: -15,
|
|
1129
|
+
l: r * (8 + e * 3)
|
|
1130
|
+
});
|
|
1131
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || S(e, { h: 64 }), this.fillType3 = this.fillType3 || S(t, { h: 64 }), this.fillType4 = this.fillType4 || S(e, { h: -64 }), this.fillType5 = this.fillType5 || S(t, { h: -64 }), this.fillType6 = this.fillType6 || S(e, { h: 128 }), this.fillType7 = this.fillType7 || S(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || S(e, { l: -10 }), this.pie5 = this.pie5 || S(t, { l: -10 }), this.pie6 = this.pie6 || S(n, { l: -10 }), this.pie7 = this.pie7 || S(e, {
|
|
1132
|
+
h: 60,
|
|
1133
|
+
l: -10
|
|
1134
|
+
}), this.pie8 = this.pie8 || S(e, {
|
|
1135
|
+
h: -60,
|
|
1136
|
+
l: -10
|
|
1137
|
+
}), this.pie9 = this.pie9 || S(e, {
|
|
1138
|
+
h: 120,
|
|
1139
|
+
l: 0
|
|
1140
|
+
}), this.pie10 = this.pie10 || S(e, {
|
|
1141
|
+
h: 60,
|
|
1142
|
+
l: -20
|
|
1143
|
+
}), this.pie11 = this.pie11 || S(e, {
|
|
1144
|
+
h: -60,
|
|
1145
|
+
l: -20
|
|
1146
|
+
}), this.pie12 = this.pie12 || S(e, {
|
|
1147
|
+
h: 120,
|
|
1148
|
+
l: -10
|
|
1149
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || S(e, {
|
|
1150
|
+
r: 5,
|
|
1151
|
+
g: 5,
|
|
1152
|
+
b: 5
|
|
1153
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(e, {
|
|
1154
|
+
r: 10,
|
|
1155
|
+
g: 10,
|
|
1156
|
+
b: 10
|
|
1157
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(e, {
|
|
1158
|
+
r: 15,
|
|
1159
|
+
g: 15,
|
|
1160
|
+
b: 15
|
|
1161
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1162
|
+
r: -5,
|
|
1163
|
+
g: -5,
|
|
1164
|
+
b: -5
|
|
1165
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1166
|
+
r: -10,
|
|
1167
|
+
g: -10,
|
|
1168
|
+
b: -10
|
|
1169
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1170
|
+
r: -15,
|
|
1171
|
+
g: -15,
|
|
1172
|
+
b: -15
|
|
1173
|
+
}), 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 = {
|
|
1174
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1175
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1176
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1177
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1178
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1179
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1180
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1181
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1182
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1183
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1184
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1185
|
+
}, this.requirementBackground = this.requirementBackground || e, 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 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || S(e, { h: -30 }), this.git4 = this.git4 || S(e, { h: -60 }), this.git5 = this.git5 || S(e, { h: -90 }), this.git6 = this.git6 || S(e, { h: 60 }), this.git7 = this.git7 || S(e, { 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;
|
|
1186
|
+
}
|
|
1187
|
+
calculate(e) {
|
|
1188
|
+
if (typeof e != "object") {
|
|
1189
|
+
this.updateColors();
|
|
1190
|
+
return;
|
|
1191
|
+
}
|
|
1192
|
+
let t = Object.keys(e);
|
|
1193
|
+
t.forEach((t) => {
|
|
1194
|
+
this[t] = e[t];
|
|
1195
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1196
|
+
this[t] = e[t];
|
|
1197
|
+
});
|
|
1198
|
+
}
|
|
1199
|
+
}, Se = /* @__PURE__ */ n((e) => {
|
|
1200
|
+
let t = new xe();
|
|
1201
|
+
return t.calculate(e), t;
|
|
1202
|
+
}, "getThemeVariables"), Ce = class {
|
|
1203
|
+
static {
|
|
1204
|
+
n(this, "Theme");
|
|
1205
|
+
}
|
|
1206
|
+
constructor() {
|
|
1207
|
+
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.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = C(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
|
|
1208
|
+
}
|
|
1209
|
+
updateColors() {
|
|
1210
|
+
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, {
|
|
1211
|
+
h: 180,
|
|
1212
|
+
l: 5
|
|
1213
|
+
}), 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.border1, 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 || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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, {
|
|
1214
|
+
h: 210,
|
|
1215
|
+
l: 150
|
|
1216
|
+
}), 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);
|
|
1217
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
|
|
1218
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1219
|
+
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);
|
|
1220
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1221
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1222
|
+
let e = this.darkMode ? -4 : -1;
|
|
1223
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
|
|
1224
|
+
h: 180,
|
|
1225
|
+
s: -15,
|
|
1226
|
+
l: e * (5 + t * 3)
|
|
1227
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
|
|
1228
|
+
h: 180,
|
|
1229
|
+
s: -15,
|
|
1230
|
+
l: e * (8 + t * 3)
|
|
1231
|
+
});
|
|
1232
|
+
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, {
|
|
1233
|
+
h: 60,
|
|
1234
|
+
l: -10
|
|
1235
|
+
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
1236
|
+
h: -60,
|
|
1237
|
+
l: -10
|
|
1238
|
+
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
1239
|
+
h: 120,
|
|
1240
|
+
l: 0
|
|
1241
|
+
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
1242
|
+
h: 60,
|
|
1243
|
+
l: -20
|
|
1244
|
+
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
1245
|
+
h: -60,
|
|
1246
|
+
l: -20
|
|
1247
|
+
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
1248
|
+
h: 120,
|
|
1249
|
+
l: -10
|
|
1250
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
1251
|
+
r: 5,
|
|
1252
|
+
g: 5,
|
|
1253
|
+
b: 5
|
|
1254
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
1255
|
+
r: 10,
|
|
1256
|
+
g: 10,
|
|
1257
|
+
b: 10
|
|
1258
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
1259
|
+
r: 15,
|
|
1260
|
+
g: 15,
|
|
1261
|
+
b: 15
|
|
1262
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1263
|
+
r: -5,
|
|
1264
|
+
g: -5,
|
|
1265
|
+
b: -5
|
|
1266
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1267
|
+
r: -10,
|
|
1268
|
+
g: -10,
|
|
1269
|
+
b: -10
|
|
1270
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1271
|
+
r: -15,
|
|
1272
|
+
g: -15,
|
|
1273
|
+
b: -15
|
|
1274
|
+
}), 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 = {
|
|
1275
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1276
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1277
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1278
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1279
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1280
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1281
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1282
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1283
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1284
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1285
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1286
|
+
}, 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 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (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;
|
|
1287
|
+
}
|
|
1288
|
+
calculate(e) {
|
|
1289
|
+
if (typeof e != "object") {
|
|
1290
|
+
this.updateColors();
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1293
|
+
let t = Object.keys(e);
|
|
1294
|
+
t.forEach((t) => {
|
|
1295
|
+
this[t] = e[t];
|
|
1296
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1297
|
+
this[t] = e[t];
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1300
|
+
}, we = /* @__PURE__ */ n((e) => {
|
|
1301
|
+
let t = new Ce();
|
|
1302
|
+
return t.calculate(e), t;
|
|
1303
|
+
}, "getThemeVariables"), Te = class {
|
|
1304
|
+
static {
|
|
1305
|
+
n(this, "Theme");
|
|
1306
|
+
}
|
|
1307
|
+
constructor() {
|
|
1308
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = k("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
|
|
1309
|
+
}
|
|
1310
|
+
updateColors() {
|
|
1311
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
1312
|
+
h: 180,
|
|
1313
|
+
l: 5
|
|
1314
|
+
}), 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 || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", 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.noteFontWeight = 600, 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);
|
|
1315
|
+
let e = "#ECECFE", t = "#E9E9F1", n = S(e, {
|
|
1316
|
+
h: 180,
|
|
1317
|
+
l: 5
|
|
1318
|
+
});
|
|
1319
|
+
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || b(e, 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.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.compositeTitleBackground = "#F9F9FB", this.altBackground = "#F9F9FB", this.stateEdgeLabelBackground = "#FFFFFF", this.fontWeight = 600, 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.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor;
|
|
1320
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
|
|
1321
|
+
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 75);
|
|
1322
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
|
|
1323
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1324
|
+
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);
|
|
1325
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1326
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1327
|
+
let r = this.darkMode ? -4 : -1;
|
|
1328
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
1329
|
+
h: 180,
|
|
1330
|
+
s: -15,
|
|
1331
|
+
l: r * (5 + e * 3)
|
|
1332
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
1333
|
+
h: 180,
|
|
1334
|
+
s: -15,
|
|
1335
|
+
l: r * (8 + e * 3)
|
|
1336
|
+
});
|
|
1337
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || S(e, { h: 64 }), this.fillType3 = this.fillType3 || S(t, { h: 64 }), this.fillType4 = this.fillType4 || S(e, { h: -64 }), this.fillType5 = this.fillType5 || S(t, { h: -64 }), this.fillType6 = this.fillType6 || S(e, { h: 128 }), this.fillType7 = this.fillType7 || S(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || S(e, { l: -10 }), this.pie5 = this.pie5 || S(t, { l: -10 }), this.pie6 = this.pie6 || S(n, { l: -10 }), this.pie7 = this.pie7 || S(e, {
|
|
1338
|
+
h: 60,
|
|
1339
|
+
l: -10
|
|
1340
|
+
}), this.pie8 = this.pie8 || S(e, {
|
|
1341
|
+
h: -60,
|
|
1342
|
+
l: -10
|
|
1343
|
+
}), this.pie9 = this.pie9 || S(e, {
|
|
1344
|
+
h: 120,
|
|
1345
|
+
l: 0
|
|
1346
|
+
}), this.pie10 = this.pie10 || S(e, {
|
|
1347
|
+
h: 60,
|
|
1348
|
+
l: -20
|
|
1349
|
+
}), this.pie11 = this.pie11 || S(e, {
|
|
1350
|
+
h: -60,
|
|
1351
|
+
l: -20
|
|
1352
|
+
}), this.pie12 = this.pie12 || S(e, {
|
|
1353
|
+
h: 120,
|
|
1354
|
+
l: -10
|
|
1355
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || S(e, {
|
|
1356
|
+
r: 5,
|
|
1357
|
+
g: 5,
|
|
1358
|
+
b: 5
|
|
1359
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(e, {
|
|
1360
|
+
r: 10,
|
|
1361
|
+
g: 10,
|
|
1362
|
+
b: 10
|
|
1363
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(e, {
|
|
1364
|
+
r: 15,
|
|
1365
|
+
g: 15,
|
|
1366
|
+
b: 15
|
|
1367
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1368
|
+
r: -5,
|
|
1369
|
+
g: -5,
|
|
1370
|
+
b: -5
|
|
1371
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1372
|
+
r: -10,
|
|
1373
|
+
g: -10,
|
|
1374
|
+
b: -10
|
|
1375
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1376
|
+
r: -15,
|
|
1377
|
+
g: -15,
|
|
1378
|
+
b: -15
|
|
1379
|
+
}), 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 = {
|
|
1380
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1381
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1382
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1383
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1384
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1385
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1386
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1387
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1388
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1389
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1390
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1391
|
+
}, this.requirementBackground = this.requirementBackground || e, 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.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || S(e, { h: -30 }), this.git4 = this.git4 || S(e, { h: -60 }), this.git5 = this.git5 || S(e, { h: -90 }), this.git6 = this.git6 || S(e, { h: 60 }), this.git7 = this.git7 || S(e, { 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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1392
|
+
}
|
|
1393
|
+
calculate(e) {
|
|
1394
|
+
if (typeof e != "object") {
|
|
1395
|
+
this.updateColors();
|
|
1396
|
+
return;
|
|
1397
|
+
}
|
|
1398
|
+
let t = Object.keys(e);
|
|
1399
|
+
t.forEach((t) => {
|
|
1400
|
+
this[t] = e[t];
|
|
1401
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1402
|
+
this[t] = e[t];
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
}, Ee = /* @__PURE__ */ n((e) => {
|
|
1406
|
+
let t = new Te();
|
|
1407
|
+
return t.calculate(e), t;
|
|
1408
|
+
}, "getThemeVariables"), De = class {
|
|
1409
|
+
static {
|
|
1410
|
+
n(this, "Theme");
|
|
1411
|
+
}
|
|
1412
|
+
constructor() {
|
|
1413
|
+
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.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = C(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
|
|
1414
|
+
}
|
|
1415
|
+
updateColors() {
|
|
1416
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
1417
|
+
h: 180,
|
|
1418
|
+
l: 5
|
|
1419
|
+
}), 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 || "#FFFFFF", 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.border1, 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 = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", 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.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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, 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.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, {
|
|
1420
|
+
h: 210,
|
|
1421
|
+
l: 150
|
|
1422
|
+
}), 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);
|
|
1423
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = x(this["cScale" + e], 25);
|
|
1424
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1425
|
+
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);
|
|
1426
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1427
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1428
|
+
let e = this.darkMode ? -4 : -1;
|
|
1429
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
|
|
1430
|
+
h: 180,
|
|
1431
|
+
s: -15,
|
|
1432
|
+
l: e * (5 + t * 3)
|
|
1433
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
|
|
1434
|
+
h: 180,
|
|
1435
|
+
s: -15,
|
|
1436
|
+
l: e * (8 + t * 3)
|
|
1437
|
+
});
|
|
1438
|
+
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, {
|
|
1439
|
+
h: 60,
|
|
1440
|
+
l: -10
|
|
1441
|
+
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
1442
|
+
h: -60,
|
|
1443
|
+
l: -10
|
|
1444
|
+
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
1445
|
+
h: 120,
|
|
1446
|
+
l: 0
|
|
1447
|
+
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
1448
|
+
h: 60,
|
|
1449
|
+
l: -20
|
|
1450
|
+
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
1451
|
+
h: -60,
|
|
1452
|
+
l: -20
|
|
1453
|
+
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
1454
|
+
h: 120,
|
|
1455
|
+
l: -10
|
|
1456
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
1457
|
+
r: 5,
|
|
1458
|
+
g: 5,
|
|
1459
|
+
b: 5
|
|
1460
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
1461
|
+
r: 10,
|
|
1462
|
+
g: 10,
|
|
1463
|
+
b: 10
|
|
1464
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
1465
|
+
r: 15,
|
|
1466
|
+
g: 15,
|
|
1467
|
+
b: 15
|
|
1468
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1469
|
+
r: -5,
|
|
1470
|
+
g: -5,
|
|
1471
|
+
b: -5
|
|
1472
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1473
|
+
r: -10,
|
|
1474
|
+
g: -10,
|
|
1475
|
+
b: -10
|
|
1476
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1477
|
+
r: -15,
|
|
1478
|
+
g: -15,
|
|
1479
|
+
b: -15
|
|
1480
|
+
}), 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 = {
|
|
1481
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1482
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1483
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1484
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1485
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1486
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1487
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1488
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1489
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1490
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1491
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1492
|
+
}, 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.requirementEdgeLabelBackground = "#16141F", 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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1493
|
+
}
|
|
1494
|
+
calculate(e) {
|
|
1495
|
+
if (typeof e != "object") {
|
|
1496
|
+
this.updateColors();
|
|
1497
|
+
return;
|
|
1498
|
+
}
|
|
1499
|
+
let t = Object.keys(e);
|
|
1500
|
+
t.forEach((t) => {
|
|
1501
|
+
this[t] = e[t];
|
|
1502
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1503
|
+
this[t] = e[t];
|
|
1504
|
+
});
|
|
1505
|
+
}
|
|
1506
|
+
}, Oe = /* @__PURE__ */ n((e) => {
|
|
1507
|
+
let t = new De();
|
|
1508
|
+
return t.calculate(e), t;
|
|
1509
|
+
}, "getThemeVariables"), ke = class {
|
|
1510
|
+
static {
|
|
1511
|
+
n(this, "Theme");
|
|
1512
|
+
}
|
|
1513
|
+
constructor() {
|
|
1514
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = k(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
|
|
1515
|
+
"#E879F9",
|
|
1516
|
+
"#2DD4BF",
|
|
1517
|
+
"#FB923C",
|
|
1518
|
+
"#22D3EE",
|
|
1519
|
+
"#4ADE80",
|
|
1520
|
+
"#A78BFA",
|
|
1521
|
+
"#F87171",
|
|
1522
|
+
"#FACC15",
|
|
1523
|
+
"#818CF8",
|
|
1524
|
+
"#A3E635 ",
|
|
1525
|
+
"#38BDF8",
|
|
1526
|
+
"#FB7185"
|
|
1527
|
+
], this.bkgColorArray = [
|
|
1528
|
+
"#FDF4FF",
|
|
1529
|
+
"#F0FDFA",
|
|
1530
|
+
"#FFF7ED",
|
|
1531
|
+
"#ECFEFF",
|
|
1532
|
+
"#F0FDF4",
|
|
1533
|
+
"#F5F3FF",
|
|
1534
|
+
"#FEF2F2",
|
|
1535
|
+
"#FEFCE8",
|
|
1536
|
+
"#EEF2FF",
|
|
1537
|
+
"#F7FEE7",
|
|
1538
|
+
"#F0F9FF",
|
|
1539
|
+
"#FFF1F2"
|
|
1540
|
+
], this.filterColor = "#000000";
|
|
1541
|
+
}
|
|
1542
|
+
updateColors() {
|
|
1543
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
1544
|
+
h: 180,
|
|
1545
|
+
l: 5
|
|
1546
|
+
}), 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 || "#28253D", 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);
|
|
1547
|
+
let e = "#ECECFE", t = "#E9E9F1", n = S(e, {
|
|
1548
|
+
h: 180,
|
|
1549
|
+
l: 5
|
|
1550
|
+
});
|
|
1551
|
+
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || b(e, 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.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
1552
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1553
|
+
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);
|
|
1554
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1555
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1556
|
+
let r = this.darkMode ? -4 : -1;
|
|
1557
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || S(this.mainBkg, {
|
|
1558
|
+
h: 180,
|
|
1559
|
+
s: -15,
|
|
1560
|
+
l: r * (5 + e * 3)
|
|
1561
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || S(this.mainBkg, {
|
|
1562
|
+
h: 180,
|
|
1563
|
+
s: -15,
|
|
1564
|
+
l: r * (8 + e * 3)
|
|
1565
|
+
});
|
|
1566
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || S(e, { h: 64 }), this.fillType3 = this.fillType3 || S(t, { h: 64 }), this.fillType4 = this.fillType4 || S(e, { h: -64 }), this.fillType5 = this.fillType5 || S(t, { h: -64 }), this.fillType6 = this.fillType6 || S(e, { h: 128 }), this.fillType7 = this.fillType7 || S(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || S(e, { l: -10 }), this.pie5 = this.pie5 || S(t, { l: -10 }), this.pie6 = this.pie6 || S(n, { l: -10 }), this.pie7 = this.pie7 || S(e, {
|
|
1567
|
+
h: 60,
|
|
1568
|
+
l: -10
|
|
1569
|
+
}), this.pie8 = this.pie8 || S(e, {
|
|
1570
|
+
h: -60,
|
|
1571
|
+
l: -10
|
|
1572
|
+
}), this.pie9 = this.pie9 || S(e, {
|
|
1573
|
+
h: 120,
|
|
1574
|
+
l: 0
|
|
1575
|
+
}), this.pie10 = this.pie10 || S(e, {
|
|
1576
|
+
h: 60,
|
|
1577
|
+
l: -20
|
|
1578
|
+
}), this.pie11 = this.pie11 || S(e, {
|
|
1579
|
+
h: -60,
|
|
1580
|
+
l: -20
|
|
1581
|
+
}), this.pie12 = this.pie12 || S(e, {
|
|
1582
|
+
h: 120,
|
|
1583
|
+
l: -10
|
|
1584
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || S(e, {
|
|
1585
|
+
r: 5,
|
|
1586
|
+
g: 5,
|
|
1587
|
+
b: 5
|
|
1588
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(e, {
|
|
1589
|
+
r: 10,
|
|
1590
|
+
g: 10,
|
|
1591
|
+
b: 10
|
|
1592
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(e, {
|
|
1593
|
+
r: 15,
|
|
1594
|
+
g: 15,
|
|
1595
|
+
b: 15
|
|
1596
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1597
|
+
r: -5,
|
|
1598
|
+
g: -5,
|
|
1599
|
+
b: -5
|
|
1600
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1601
|
+
r: -10,
|
|
1602
|
+
g: -10,
|
|
1603
|
+
b: -10
|
|
1604
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1605
|
+
r: -15,
|
|
1606
|
+
g: -15,
|
|
1607
|
+
b: -15
|
|
1608
|
+
}), 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 = {
|
|
1609
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1610
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1611
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1612
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1613
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1614
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1615
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1616
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1617
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1618
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1619
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1620
|
+
}, this.requirementBackground = this.requirementBackground || e, 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 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || S(e, { h: -30 }), this.git4 = this.git4 || S(e, { h: -60 }), this.git5 = this.git5 || S(e, { h: -90 }), this.git6 = this.git6 || S(e, { h: 60 }), this.git7 = this.git7 || S(e, { 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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1621
|
+
}
|
|
1622
|
+
calculate(e) {
|
|
1623
|
+
if (typeof e != "object") {
|
|
1624
|
+
this.updateColors();
|
|
1625
|
+
return;
|
|
1626
|
+
}
|
|
1627
|
+
let t = Object.keys(e);
|
|
1628
|
+
t.forEach((t) => {
|
|
1629
|
+
this[t] = e[t];
|
|
1630
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1631
|
+
this[t] = e[t];
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
}, Ae = /* @__PURE__ */ n((e) => {
|
|
1635
|
+
let t = new ke();
|
|
1636
|
+
return t.calculate(e), t;
|
|
1637
|
+
}, "getThemeVariables"), je = class {
|
|
1638
|
+
static {
|
|
1639
|
+
n(this, "Theme");
|
|
1640
|
+
}
|
|
1641
|
+
constructor() {
|
|
1642
|
+
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.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = b(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = _(255, 255, 255, .25), this.arrowheadColor = C(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
|
|
1643
|
+
"#E879F9",
|
|
1644
|
+
"#2DD4BF",
|
|
1645
|
+
"#FB923C",
|
|
1646
|
+
"#22D3EE",
|
|
1647
|
+
"#4ADE80",
|
|
1648
|
+
"#A78BFA",
|
|
1649
|
+
"#F87171",
|
|
1650
|
+
"#FACC15",
|
|
1651
|
+
"#818CF8",
|
|
1652
|
+
"#A3E635 ",
|
|
1653
|
+
"#38BDF8",
|
|
1654
|
+
"#FB7185"
|
|
1655
|
+
], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
|
|
1656
|
+
}
|
|
1657
|
+
updateColors() {
|
|
1658
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || S(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || S(this.primaryColor, {
|
|
1659
|
+
h: 180,
|
|
1660
|
+
l: 5
|
|
1661
|
+
}), 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 || "#FFFFFF", 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.border1, 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 = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", 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.rootLabelColor = "#FFFFFF", 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.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, 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.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, 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.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 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
1662
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1663
|
+
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);
|
|
1664
|
+
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1665
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = x(this["cScale" + e], 75);
|
|
1666
|
+
let e = this.darkMode ? -4 : -1;
|
|
1667
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || S(this.mainBkg, {
|
|
1668
|
+
h: 180,
|
|
1669
|
+
s: -15,
|
|
1670
|
+
l: e * (5 + t * 3)
|
|
1671
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || S(this.mainBkg, {
|
|
1672
|
+
h: 180,
|
|
1673
|
+
s: -15,
|
|
1674
|
+
l: e * (8 + t * 3)
|
|
1675
|
+
});
|
|
1676
|
+
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, {
|
|
1677
|
+
h: 60,
|
|
1678
|
+
l: -10
|
|
1679
|
+
}), this.pie8 = this.pie8 || S(this.primaryColor, {
|
|
1680
|
+
h: -60,
|
|
1681
|
+
l: -10
|
|
1682
|
+
}), this.pie9 = this.pie9 || S(this.primaryColor, {
|
|
1683
|
+
h: 120,
|
|
1684
|
+
l: 0
|
|
1685
|
+
}), this.pie10 = this.pie10 || S(this.primaryColor, {
|
|
1686
|
+
h: 60,
|
|
1687
|
+
l: -20
|
|
1688
|
+
}), this.pie11 = this.pie11 || S(this.primaryColor, {
|
|
1689
|
+
h: -60,
|
|
1690
|
+
l: -20
|
|
1691
|
+
}), this.pie12 = this.pie12 || S(this.primaryColor, {
|
|
1692
|
+
h: 120,
|
|
1693
|
+
l: -10
|
|
1694
|
+
}), 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.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || S(this.primaryColor, {
|
|
1695
|
+
r: 5,
|
|
1696
|
+
g: 5,
|
|
1697
|
+
b: 5
|
|
1698
|
+
}), this.quadrant3Fill = this.quadrant3Fill || S(this.primaryColor, {
|
|
1699
|
+
r: 10,
|
|
1700
|
+
g: 10,
|
|
1701
|
+
b: 10
|
|
1702
|
+
}), this.quadrant4Fill = this.quadrant4Fill || S(this.primaryColor, {
|
|
1703
|
+
r: 15,
|
|
1704
|
+
g: 15,
|
|
1705
|
+
b: 15
|
|
1706
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || S(this.primaryTextColor, {
|
|
1707
|
+
r: -5,
|
|
1708
|
+
g: -5,
|
|
1709
|
+
b: -5
|
|
1710
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || S(this.primaryTextColor, {
|
|
1711
|
+
r: -10,
|
|
1712
|
+
g: -10,
|
|
1713
|
+
b: -10
|
|
1714
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || S(this.primaryTextColor, {
|
|
1715
|
+
r: -15,
|
|
1716
|
+
g: -15,
|
|
1717
|
+
b: -15
|
|
1718
|
+
}), 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 = {
|
|
1719
|
+
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1720
|
+
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1721
|
+
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1722
|
+
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1723
|
+
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
1724
|
+
xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
|
|
1725
|
+
yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
|
|
1726
|
+
yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
|
|
1727
|
+
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1728
|
+
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1729
|
+
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1730
|
+
}, 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.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || D, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || O;
|
|
1731
|
+
}
|
|
1732
|
+
calculate(e) {
|
|
1733
|
+
if (typeof e != "object") {
|
|
1734
|
+
this.updateColors();
|
|
1735
|
+
return;
|
|
1736
|
+
}
|
|
1737
|
+
let t = Object.keys(e);
|
|
1738
|
+
t.forEach((t) => {
|
|
1739
|
+
this[t] = e[t];
|
|
1740
|
+
}), this.updateColors(), t.forEach((t) => {
|
|
1741
|
+
this[t] = e[t];
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
1744
|
+
}, Me = /* @__PURE__ */ n((e) => {
|
|
1745
|
+
let t = new je();
|
|
1746
|
+
return t.calculate(e), t;
|
|
1747
|
+
}, "getThemeVariables"), A = {
|
|
1748
|
+
base: { getThemeVariables: fe },
|
|
1749
|
+
dark: { getThemeVariables: me },
|
|
1750
|
+
default: { getThemeVariables: ge },
|
|
1751
|
+
forest: { getThemeVariables: ve },
|
|
1752
|
+
neutral: { getThemeVariables: be },
|
|
1753
|
+
neo: { getThemeVariables: Se },
|
|
1754
|
+
"neo-dark": { getThemeVariables: we },
|
|
1755
|
+
redux: { getThemeVariables: Ee },
|
|
1756
|
+
"redux-dark": { getThemeVariables: Oe },
|
|
1757
|
+
"redux-color": { getThemeVariables: Ae },
|
|
1758
|
+
"redux-dark-color": { getThemeVariables: Me }
|
|
1759
|
+
}, j = {
|
|
1760
|
+
flowchart: {
|
|
1761
|
+
useMaxWidth: !0,
|
|
1762
|
+
titleTopMargin: 25,
|
|
1763
|
+
subGraphTitleMargin: {
|
|
1764
|
+
top: 0,
|
|
1765
|
+
bottom: 0
|
|
1766
|
+
},
|
|
1767
|
+
diagramPadding: 8,
|
|
1768
|
+
htmlLabels: null,
|
|
1769
|
+
nodeSpacing: 50,
|
|
1770
|
+
rankSpacing: 50,
|
|
1771
|
+
curve: "basis",
|
|
1772
|
+
padding: 15,
|
|
1773
|
+
defaultRenderer: "dagre-wrapper",
|
|
1774
|
+
wrappingWidth: 200,
|
|
1775
|
+
inheritDir: !1
|
|
1776
|
+
},
|
|
1777
|
+
sequence: {
|
|
1778
|
+
useMaxWidth: !0,
|
|
1779
|
+
hideUnusedParticipants: !1,
|
|
1780
|
+
activationWidth: 10,
|
|
1781
|
+
diagramMarginX: 50,
|
|
1782
|
+
diagramMarginY: 10,
|
|
1783
|
+
actorMargin: 50,
|
|
1784
|
+
width: 150,
|
|
1785
|
+
height: 65,
|
|
1786
|
+
boxMargin: 10,
|
|
1787
|
+
boxTextMargin: 5,
|
|
1788
|
+
noteMargin: 10,
|
|
1789
|
+
messageMargin: 35,
|
|
1790
|
+
messageAlign: "center",
|
|
1791
|
+
mirrorActors: !0,
|
|
1792
|
+
forceMenus: !1,
|
|
1793
|
+
bottomMarginAdj: 1,
|
|
1794
|
+
rightAngles: !1,
|
|
1795
|
+
showSequenceNumbers: !1,
|
|
1796
|
+
actorFontSize: 14,
|
|
1797
|
+
actorFontFamily: "\"Open Sans\", sans-serif",
|
|
1798
|
+
actorFontWeight: 400,
|
|
1799
|
+
noteFontSize: 14,
|
|
1800
|
+
noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
1801
|
+
noteFontWeight: 400,
|
|
1802
|
+
noteAlign: "center",
|
|
1803
|
+
messageFontSize: 16,
|
|
1804
|
+
messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
1805
|
+
messageFontWeight: 400,
|
|
1806
|
+
wrap: !1,
|
|
1807
|
+
wrapPadding: 10,
|
|
1808
|
+
labelBoxWidth: 50,
|
|
1809
|
+
labelBoxHeight: 20
|
|
1810
|
+
},
|
|
1811
|
+
gantt: {
|
|
1812
|
+
useMaxWidth: !0,
|
|
1813
|
+
titleTopMargin: 25,
|
|
1814
|
+
barHeight: 20,
|
|
1815
|
+
barGap: 4,
|
|
1816
|
+
topPadding: 50,
|
|
1817
|
+
rightPadding: 75,
|
|
1818
|
+
leftPadding: 75,
|
|
1819
|
+
gridLineStartPadding: 35,
|
|
1820
|
+
fontSize: 11,
|
|
1821
|
+
sectionFontSize: 11,
|
|
1822
|
+
numberSectionStyles: 4,
|
|
1823
|
+
axisFormat: "%Y-%m-%d",
|
|
1824
|
+
topAxis: !1,
|
|
1825
|
+
displayMode: "",
|
|
1826
|
+
weekday: "sunday"
|
|
1827
|
+
},
|
|
1828
|
+
journey: {
|
|
1829
|
+
useMaxWidth: !0,
|
|
1830
|
+
diagramMarginX: 50,
|
|
1831
|
+
diagramMarginY: 10,
|
|
1832
|
+
leftMargin: 150,
|
|
1833
|
+
maxLabelWidth: 360,
|
|
1834
|
+
width: 150,
|
|
1835
|
+
height: 50,
|
|
1836
|
+
boxMargin: 10,
|
|
1837
|
+
boxTextMargin: 5,
|
|
1838
|
+
noteMargin: 10,
|
|
1839
|
+
messageMargin: 35,
|
|
1840
|
+
messageAlign: "center",
|
|
1841
|
+
bottomMarginAdj: 1,
|
|
1842
|
+
rightAngles: !1,
|
|
1843
|
+
taskFontSize: 14,
|
|
1844
|
+
taskFontFamily: "\"Open Sans\", sans-serif",
|
|
1845
|
+
taskMargin: 50,
|
|
1846
|
+
activationWidth: 10,
|
|
1847
|
+
textPlacement: "fo",
|
|
1848
|
+
actorColours: [
|
|
1849
|
+
"#8FBC8F",
|
|
1850
|
+
"#7CFC00",
|
|
1851
|
+
"#00FFFF",
|
|
1852
|
+
"#20B2AA",
|
|
1853
|
+
"#B0E0E6",
|
|
1854
|
+
"#FFFFE0"
|
|
1855
|
+
],
|
|
1856
|
+
sectionFills: [
|
|
1857
|
+
"#191970",
|
|
1858
|
+
"#8B008B",
|
|
1859
|
+
"#4B0082",
|
|
1860
|
+
"#2F4F4F",
|
|
1861
|
+
"#800000",
|
|
1862
|
+
"#8B4513",
|
|
1863
|
+
"#00008B"
|
|
1864
|
+
],
|
|
1865
|
+
sectionColours: ["#fff"],
|
|
1866
|
+
titleColor: "",
|
|
1867
|
+
titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
|
|
1868
|
+
titleFontSize: "4ex"
|
|
1869
|
+
},
|
|
1870
|
+
class: {
|
|
1871
|
+
useMaxWidth: !0,
|
|
1872
|
+
titleTopMargin: 25,
|
|
1873
|
+
arrowMarkerAbsolute: !1,
|
|
1874
|
+
dividerMargin: 10,
|
|
1875
|
+
padding: 5,
|
|
1876
|
+
textHeight: 10,
|
|
1877
|
+
defaultRenderer: "dagre-wrapper",
|
|
1878
|
+
htmlLabels: !1,
|
|
1879
|
+
hideEmptyMembersBox: !1,
|
|
1880
|
+
hierarchicalNamespaces: !0
|
|
1881
|
+
},
|
|
1882
|
+
state: {
|
|
1883
|
+
useMaxWidth: !0,
|
|
1884
|
+
titleTopMargin: 25,
|
|
1885
|
+
dividerMargin: 10,
|
|
1886
|
+
sizeUnit: 5,
|
|
1887
|
+
padding: 8,
|
|
1888
|
+
textHeight: 10,
|
|
1889
|
+
titleShift: -15,
|
|
1890
|
+
noteMargin: 10,
|
|
1891
|
+
forkWidth: 70,
|
|
1892
|
+
forkHeight: 7,
|
|
1893
|
+
miniPadding: 2,
|
|
1894
|
+
fontSizeFactor: 5.02,
|
|
1895
|
+
fontSize: 24,
|
|
1896
|
+
labelHeight: 16,
|
|
1897
|
+
edgeLengthFactor: "20",
|
|
1898
|
+
compositTitleSize: 35,
|
|
1899
|
+
radius: 5,
|
|
1900
|
+
defaultRenderer: "dagre-wrapper"
|
|
1901
|
+
},
|
|
1902
|
+
er: {
|
|
1903
|
+
useMaxWidth: !0,
|
|
1904
|
+
titleTopMargin: 25,
|
|
1905
|
+
diagramPadding: 20,
|
|
1906
|
+
layoutDirection: "TB",
|
|
1907
|
+
minEntityWidth: 100,
|
|
1908
|
+
minEntityHeight: 75,
|
|
1909
|
+
entityPadding: 15,
|
|
1910
|
+
nodeSpacing: 140,
|
|
1911
|
+
rankSpacing: 80,
|
|
1912
|
+
stroke: "gray",
|
|
1913
|
+
fill: "honeydew",
|
|
1914
|
+
fontSize: 12
|
|
1915
|
+
},
|
|
1916
|
+
pie: {
|
|
1917
|
+
useMaxWidth: !0,
|
|
1918
|
+
textPosition: .75
|
|
1919
|
+
},
|
|
1920
|
+
quadrantChart: {
|
|
1921
|
+
useMaxWidth: !0,
|
|
1922
|
+
chartWidth: 500,
|
|
1923
|
+
chartHeight: 500,
|
|
1924
|
+
titleFontSize: 20,
|
|
1925
|
+
titlePadding: 10,
|
|
1926
|
+
quadrantPadding: 5,
|
|
1927
|
+
xAxisLabelPadding: 5,
|
|
1928
|
+
yAxisLabelPadding: 5,
|
|
1929
|
+
xAxisLabelFontSize: 16,
|
|
1930
|
+
yAxisLabelFontSize: 16,
|
|
1931
|
+
quadrantLabelFontSize: 16,
|
|
1932
|
+
quadrantTextTopPadding: 5,
|
|
1933
|
+
pointTextPadding: 5,
|
|
1934
|
+
pointLabelFontSize: 12,
|
|
1935
|
+
pointRadius: 5,
|
|
1936
|
+
xAxisPosition: "top",
|
|
1937
|
+
yAxisPosition: "left",
|
|
1938
|
+
quadrantInternalBorderStrokeWidth: 1,
|
|
1939
|
+
quadrantExternalBorderStrokeWidth: 2
|
|
1940
|
+
},
|
|
1941
|
+
xyChart: {
|
|
1942
|
+
useMaxWidth: !0,
|
|
1943
|
+
width: 700,
|
|
1944
|
+
height: 500,
|
|
1945
|
+
titleFontSize: 20,
|
|
1946
|
+
titlePadding: 10,
|
|
1947
|
+
showDataLabel: !1,
|
|
1948
|
+
showDataLabelOutsideBar: !1,
|
|
1949
|
+
showTitle: !0,
|
|
1950
|
+
xAxis: {
|
|
1951
|
+
$ref: "#/$defs/XYChartAxisConfig",
|
|
1952
|
+
showLabel: !0,
|
|
1953
|
+
labelFontSize: 14,
|
|
1954
|
+
labelPadding: 5,
|
|
1955
|
+
showTitle: !0,
|
|
1956
|
+
titleFontSize: 16,
|
|
1957
|
+
titlePadding: 5,
|
|
1958
|
+
showTick: !0,
|
|
1959
|
+
tickLength: 5,
|
|
1960
|
+
tickWidth: 2,
|
|
1961
|
+
showAxisLine: !0,
|
|
1962
|
+
axisLineWidth: 2
|
|
1963
|
+
},
|
|
1964
|
+
yAxis: {
|
|
1965
|
+
$ref: "#/$defs/XYChartAxisConfig",
|
|
1966
|
+
showLabel: !0,
|
|
1967
|
+
labelFontSize: 14,
|
|
1968
|
+
labelPadding: 5,
|
|
1969
|
+
showTitle: !0,
|
|
1970
|
+
titleFontSize: 16,
|
|
1971
|
+
titlePadding: 5,
|
|
1972
|
+
showTick: !0,
|
|
1973
|
+
tickLength: 5,
|
|
1974
|
+
tickWidth: 2,
|
|
1975
|
+
showAxisLine: !0,
|
|
1976
|
+
axisLineWidth: 2
|
|
1977
|
+
},
|
|
1978
|
+
chartOrientation: "vertical",
|
|
1979
|
+
plotReservedSpacePercent: 50
|
|
1980
|
+
},
|
|
1981
|
+
requirement: {
|
|
1982
|
+
useMaxWidth: !0,
|
|
1983
|
+
rect_fill: "#f9f9f9",
|
|
1984
|
+
text_color: "#333",
|
|
1985
|
+
rect_border_size: "0.5px",
|
|
1986
|
+
rect_border_color: "#bbb",
|
|
1987
|
+
rect_min_width: 200,
|
|
1988
|
+
rect_min_height: 200,
|
|
1989
|
+
fontSize: 14,
|
|
1990
|
+
rect_padding: 10,
|
|
1991
|
+
line_height: 20
|
|
1992
|
+
},
|
|
1993
|
+
mindmap: {
|
|
1994
|
+
useMaxWidth: !0,
|
|
1995
|
+
padding: 10,
|
|
1996
|
+
maxNodeWidth: 200,
|
|
1997
|
+
layoutAlgorithm: "cose-bilkent"
|
|
1998
|
+
},
|
|
1999
|
+
ishikawa: {
|
|
2000
|
+
useMaxWidth: !0,
|
|
2001
|
+
diagramPadding: 20
|
|
2002
|
+
},
|
|
2003
|
+
kanban: {
|
|
2004
|
+
useMaxWidth: !0,
|
|
2005
|
+
padding: 8,
|
|
2006
|
+
sectionWidth: 200,
|
|
2007
|
+
ticketBaseUrl: ""
|
|
2008
|
+
},
|
|
2009
|
+
timeline: {
|
|
2010
|
+
useMaxWidth: !0,
|
|
2011
|
+
diagramMarginX: 50,
|
|
2012
|
+
diagramMarginY: 10,
|
|
2013
|
+
leftMargin: 150,
|
|
2014
|
+
width: 150,
|
|
2015
|
+
height: 50,
|
|
2016
|
+
boxMargin: 10,
|
|
2017
|
+
boxTextMargin: 5,
|
|
2018
|
+
noteMargin: 10,
|
|
2019
|
+
messageMargin: 35,
|
|
2020
|
+
messageAlign: "center",
|
|
2021
|
+
bottomMarginAdj: 1,
|
|
2022
|
+
rightAngles: !1,
|
|
2023
|
+
taskFontSize: 14,
|
|
2024
|
+
taskFontFamily: "\"Open Sans\", sans-serif",
|
|
2025
|
+
taskMargin: 50,
|
|
2026
|
+
activationWidth: 10,
|
|
2027
|
+
textPlacement: "fo",
|
|
2028
|
+
actorColours: [
|
|
2029
|
+
"#8FBC8F",
|
|
2030
|
+
"#7CFC00",
|
|
2031
|
+
"#00FFFF",
|
|
2032
|
+
"#20B2AA",
|
|
2033
|
+
"#B0E0E6",
|
|
2034
|
+
"#FFFFE0"
|
|
2035
|
+
],
|
|
2036
|
+
sectionFills: [
|
|
2037
|
+
"#191970",
|
|
2038
|
+
"#8B008B",
|
|
2039
|
+
"#4B0082",
|
|
2040
|
+
"#2F4F4F",
|
|
2041
|
+
"#800000",
|
|
2042
|
+
"#8B4513",
|
|
2043
|
+
"#00008B"
|
|
2044
|
+
],
|
|
2045
|
+
sectionColours: ["#fff"],
|
|
2046
|
+
disableMulticolor: !1
|
|
2047
|
+
},
|
|
2048
|
+
gitGraph: {
|
|
2049
|
+
useMaxWidth: !0,
|
|
2050
|
+
titleTopMargin: 25,
|
|
2051
|
+
diagramPadding: 8,
|
|
2052
|
+
nodeLabel: {
|
|
2053
|
+
width: 75,
|
|
2054
|
+
height: 100,
|
|
2055
|
+
x: -25,
|
|
2056
|
+
y: 0
|
|
2057
|
+
},
|
|
2058
|
+
mainBranchName: "main",
|
|
2059
|
+
mainBranchOrder: 0,
|
|
2060
|
+
showCommitLabel: !0,
|
|
2061
|
+
showBranches: !0,
|
|
2062
|
+
rotateCommitLabel: !0,
|
|
2063
|
+
parallelCommits: !1,
|
|
2064
|
+
arrowMarkerAbsolute: !1
|
|
2065
|
+
},
|
|
2066
|
+
c4: {
|
|
2067
|
+
useMaxWidth: !0,
|
|
2068
|
+
diagramMarginX: 50,
|
|
2069
|
+
diagramMarginY: 10,
|
|
2070
|
+
c4ShapeMargin: 50,
|
|
2071
|
+
c4ShapePadding: 20,
|
|
2072
|
+
width: 216,
|
|
2073
|
+
height: 60,
|
|
2074
|
+
boxMargin: 10,
|
|
2075
|
+
c4ShapeInRow: 4,
|
|
2076
|
+
nextLinePaddingX: 0,
|
|
2077
|
+
c4BoundaryInRow: 2,
|
|
2078
|
+
personFontSize: 14,
|
|
2079
|
+
personFontFamily: "\"Open Sans\", sans-serif",
|
|
2080
|
+
personFontWeight: "normal",
|
|
2081
|
+
external_personFontSize: 14,
|
|
2082
|
+
external_personFontFamily: "\"Open Sans\", sans-serif",
|
|
2083
|
+
external_personFontWeight: "normal",
|
|
2084
|
+
systemFontSize: 14,
|
|
2085
|
+
systemFontFamily: "\"Open Sans\", sans-serif",
|
|
2086
|
+
systemFontWeight: "normal",
|
|
2087
|
+
external_systemFontSize: 14,
|
|
2088
|
+
external_systemFontFamily: "\"Open Sans\", sans-serif",
|
|
2089
|
+
external_systemFontWeight: "normal",
|
|
2090
|
+
system_dbFontSize: 14,
|
|
2091
|
+
system_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2092
|
+
system_dbFontWeight: "normal",
|
|
2093
|
+
external_system_dbFontSize: 14,
|
|
2094
|
+
external_system_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2095
|
+
external_system_dbFontWeight: "normal",
|
|
2096
|
+
system_queueFontSize: 14,
|
|
2097
|
+
system_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2098
|
+
system_queueFontWeight: "normal",
|
|
2099
|
+
external_system_queueFontSize: 14,
|
|
2100
|
+
external_system_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2101
|
+
external_system_queueFontWeight: "normal",
|
|
2102
|
+
boundaryFontSize: 14,
|
|
2103
|
+
boundaryFontFamily: "\"Open Sans\", sans-serif",
|
|
2104
|
+
boundaryFontWeight: "normal",
|
|
2105
|
+
messageFontSize: 12,
|
|
2106
|
+
messageFontFamily: "\"Open Sans\", sans-serif",
|
|
2107
|
+
messageFontWeight: "normal",
|
|
2108
|
+
containerFontSize: 14,
|
|
2109
|
+
containerFontFamily: "\"Open Sans\", sans-serif",
|
|
2110
|
+
containerFontWeight: "normal",
|
|
2111
|
+
external_containerFontSize: 14,
|
|
2112
|
+
external_containerFontFamily: "\"Open Sans\", sans-serif",
|
|
2113
|
+
external_containerFontWeight: "normal",
|
|
2114
|
+
container_dbFontSize: 14,
|
|
2115
|
+
container_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2116
|
+
container_dbFontWeight: "normal",
|
|
2117
|
+
external_container_dbFontSize: 14,
|
|
2118
|
+
external_container_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2119
|
+
external_container_dbFontWeight: "normal",
|
|
2120
|
+
container_queueFontSize: 14,
|
|
2121
|
+
container_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2122
|
+
container_queueFontWeight: "normal",
|
|
2123
|
+
external_container_queueFontSize: 14,
|
|
2124
|
+
external_container_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2125
|
+
external_container_queueFontWeight: "normal",
|
|
2126
|
+
componentFontSize: 14,
|
|
2127
|
+
componentFontFamily: "\"Open Sans\", sans-serif",
|
|
2128
|
+
componentFontWeight: "normal",
|
|
2129
|
+
external_componentFontSize: 14,
|
|
2130
|
+
external_componentFontFamily: "\"Open Sans\", sans-serif",
|
|
2131
|
+
external_componentFontWeight: "normal",
|
|
2132
|
+
component_dbFontSize: 14,
|
|
2133
|
+
component_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2134
|
+
component_dbFontWeight: "normal",
|
|
2135
|
+
external_component_dbFontSize: 14,
|
|
2136
|
+
external_component_dbFontFamily: "\"Open Sans\", sans-serif",
|
|
2137
|
+
external_component_dbFontWeight: "normal",
|
|
2138
|
+
component_queueFontSize: 14,
|
|
2139
|
+
component_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2140
|
+
component_queueFontWeight: "normal",
|
|
2141
|
+
external_component_queueFontSize: 14,
|
|
2142
|
+
external_component_queueFontFamily: "\"Open Sans\", sans-serif",
|
|
2143
|
+
external_component_queueFontWeight: "normal",
|
|
2144
|
+
wrap: !0,
|
|
2145
|
+
wrapPadding: 10,
|
|
2146
|
+
person_bg_color: "#08427B",
|
|
2147
|
+
person_border_color: "#073B6F",
|
|
2148
|
+
external_person_bg_color: "#686868",
|
|
2149
|
+
external_person_border_color: "#8A8A8A",
|
|
2150
|
+
system_bg_color: "#1168BD",
|
|
2151
|
+
system_border_color: "#3C7FC0",
|
|
2152
|
+
system_db_bg_color: "#1168BD",
|
|
2153
|
+
system_db_border_color: "#3C7FC0",
|
|
2154
|
+
system_queue_bg_color: "#1168BD",
|
|
2155
|
+
system_queue_border_color: "#3C7FC0",
|
|
2156
|
+
external_system_bg_color: "#999999",
|
|
2157
|
+
external_system_border_color: "#8A8A8A",
|
|
2158
|
+
external_system_db_bg_color: "#999999",
|
|
2159
|
+
external_system_db_border_color: "#8A8A8A",
|
|
2160
|
+
external_system_queue_bg_color: "#999999",
|
|
2161
|
+
external_system_queue_border_color: "#8A8A8A",
|
|
2162
|
+
container_bg_color: "#438DD5",
|
|
2163
|
+
container_border_color: "#3C7FC0",
|
|
2164
|
+
container_db_bg_color: "#438DD5",
|
|
2165
|
+
container_db_border_color: "#3C7FC0",
|
|
2166
|
+
container_queue_bg_color: "#438DD5",
|
|
2167
|
+
container_queue_border_color: "#3C7FC0",
|
|
2168
|
+
external_container_bg_color: "#B3B3B3",
|
|
2169
|
+
external_container_border_color: "#A6A6A6",
|
|
2170
|
+
external_container_db_bg_color: "#B3B3B3",
|
|
2171
|
+
external_container_db_border_color: "#A6A6A6",
|
|
2172
|
+
external_container_queue_bg_color: "#B3B3B3",
|
|
2173
|
+
external_container_queue_border_color: "#A6A6A6",
|
|
2174
|
+
component_bg_color: "#85BBF0",
|
|
2175
|
+
component_border_color: "#78A8D8",
|
|
2176
|
+
component_db_bg_color: "#85BBF0",
|
|
2177
|
+
component_db_border_color: "#78A8D8",
|
|
2178
|
+
component_queue_bg_color: "#85BBF0",
|
|
2179
|
+
component_queue_border_color: "#78A8D8",
|
|
2180
|
+
external_component_bg_color: "#CCCCCC",
|
|
2181
|
+
external_component_border_color: "#BFBFBF",
|
|
2182
|
+
external_component_db_bg_color: "#CCCCCC",
|
|
2183
|
+
external_component_db_border_color: "#BFBFBF",
|
|
2184
|
+
external_component_queue_bg_color: "#CCCCCC",
|
|
2185
|
+
external_component_queue_border_color: "#BFBFBF"
|
|
2186
|
+
},
|
|
2187
|
+
sankey: {
|
|
2188
|
+
useMaxWidth: !0,
|
|
2189
|
+
width: 600,
|
|
2190
|
+
height: 400,
|
|
2191
|
+
linkColor: "gradient",
|
|
2192
|
+
nodeAlignment: "justify",
|
|
2193
|
+
showValues: !0,
|
|
2194
|
+
prefix: "",
|
|
2195
|
+
suffix: "",
|
|
2196
|
+
nodeWidth: 10,
|
|
2197
|
+
nodePadding: 12,
|
|
2198
|
+
labelStyle: "legacy"
|
|
2199
|
+
},
|
|
2200
|
+
block: {
|
|
2201
|
+
useMaxWidth: !0,
|
|
2202
|
+
padding: 8
|
|
2203
|
+
},
|
|
2204
|
+
packet: {
|
|
2205
|
+
useMaxWidth: !0,
|
|
2206
|
+
rowHeight: 32,
|
|
2207
|
+
bitWidth: 32,
|
|
2208
|
+
bitsPerRow: 32,
|
|
2209
|
+
showBits: !0,
|
|
2210
|
+
paddingX: 5,
|
|
2211
|
+
paddingY: 5
|
|
2212
|
+
},
|
|
2213
|
+
treeView: {
|
|
2214
|
+
useMaxWidth: !0,
|
|
2215
|
+
rowIndent: 10,
|
|
2216
|
+
paddingX: 5,
|
|
2217
|
+
paddingY: 5,
|
|
2218
|
+
lineThickness: 1
|
|
2219
|
+
},
|
|
2220
|
+
architecture: {
|
|
2221
|
+
useMaxWidth: !0,
|
|
2222
|
+
padding: 40,
|
|
2223
|
+
iconSize: 80,
|
|
2224
|
+
fontSize: 16,
|
|
2225
|
+
randomize: !1,
|
|
2226
|
+
nodeSeparation: 75,
|
|
2227
|
+
idealEdgeLengthMultiplier: 1.5,
|
|
2228
|
+
edgeElasticity: .45,
|
|
2229
|
+
numIter: 2500
|
|
2230
|
+
},
|
|
2231
|
+
eventmodeling: {
|
|
2232
|
+
useMaxWidth: !0,
|
|
2233
|
+
padding: 30,
|
|
2234
|
+
rowHeight: 32
|
|
2235
|
+
},
|
|
2236
|
+
radar: {
|
|
2237
|
+
useMaxWidth: !0,
|
|
2238
|
+
width: 600,
|
|
2239
|
+
height: 600,
|
|
2240
|
+
marginTop: 50,
|
|
2241
|
+
marginRight: 50,
|
|
2242
|
+
marginBottom: 50,
|
|
2243
|
+
marginLeft: 50,
|
|
2244
|
+
axisScaleFactor: 1,
|
|
2245
|
+
axisLabelFactor: 1.05,
|
|
2246
|
+
curveTension: .17
|
|
2247
|
+
},
|
|
2248
|
+
venn: {
|
|
2249
|
+
useMaxWidth: !0,
|
|
2250
|
+
width: 800,
|
|
2251
|
+
height: 450,
|
|
2252
|
+
padding: 8,
|
|
2253
|
+
useDebugLayout: !1
|
|
2254
|
+
},
|
|
2255
|
+
theme: "default",
|
|
2256
|
+
look: "classic",
|
|
2257
|
+
handDrawnSeed: 0,
|
|
2258
|
+
layout: "dagre",
|
|
2259
|
+
maxTextSize: 5e4,
|
|
2260
|
+
maxEdges: 500,
|
|
2261
|
+
darkMode: !1,
|
|
2262
|
+
fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
|
|
2263
|
+
logLevel: 5,
|
|
2264
|
+
securityLevel: "strict",
|
|
2265
|
+
startOnLoad: !0,
|
|
2266
|
+
arrowMarkerAbsolute: !1,
|
|
2267
|
+
secure: [
|
|
2268
|
+
"secure",
|
|
2269
|
+
"securityLevel",
|
|
2270
|
+
"startOnLoad",
|
|
2271
|
+
"maxTextSize",
|
|
2272
|
+
"suppressErrorRendering",
|
|
2273
|
+
"maxEdges"
|
|
2274
|
+
],
|
|
2275
|
+
legacyMathML: !1,
|
|
2276
|
+
forceLegacyMathML: !1,
|
|
2277
|
+
deterministicIds: !1,
|
|
2278
|
+
fontSize: 16,
|
|
2279
|
+
markdownAutoWrap: !0,
|
|
2280
|
+
suppressErrorRendering: !1
|
|
2281
|
+
}, Ne = {
|
|
2282
|
+
...j,
|
|
2283
|
+
deterministicIDSeed: void 0,
|
|
2284
|
+
elk: {
|
|
2285
|
+
mergeEdges: !1,
|
|
2286
|
+
nodePlacementStrategy: "BRANDES_KOEPF",
|
|
2287
|
+
forceNodeModelOrder: !1,
|
|
2288
|
+
considerModelOrder: "NODES_AND_EDGES"
|
|
2289
|
+
},
|
|
2290
|
+
themeCSS: void 0,
|
|
2291
|
+
themeVariables: A.default.getThemeVariables(),
|
|
2292
|
+
sequence: {
|
|
2293
|
+
...j.sequence,
|
|
2294
|
+
messageFont: /* @__PURE__ */ n(function() {
|
|
2295
|
+
return {
|
|
2296
|
+
fontFamily: this.messageFontFamily,
|
|
2297
|
+
fontSize: this.messageFontSize,
|
|
2298
|
+
fontWeight: this.messageFontWeight
|
|
2299
|
+
};
|
|
2300
|
+
}, "messageFont"),
|
|
2301
|
+
noteFont: /* @__PURE__ */ n(function() {
|
|
2302
|
+
return {
|
|
2303
|
+
fontFamily: this.noteFontFamily,
|
|
2304
|
+
fontSize: this.noteFontSize,
|
|
2305
|
+
fontWeight: this.noteFontWeight
|
|
2306
|
+
};
|
|
2307
|
+
}, "noteFont"),
|
|
2308
|
+
actorFont: /* @__PURE__ */ n(function() {
|
|
2309
|
+
return {
|
|
2310
|
+
fontFamily: this.actorFontFamily,
|
|
2311
|
+
fontSize: this.actorFontSize,
|
|
2312
|
+
fontWeight: this.actorFontWeight
|
|
2313
|
+
};
|
|
2314
|
+
}, "actorFont")
|
|
2315
|
+
},
|
|
2316
|
+
class: {
|
|
2317
|
+
hideEmptyMembersBox: !1,
|
|
2318
|
+
hierarchicalNamespaces: !0
|
|
2319
|
+
},
|
|
2320
|
+
gantt: {
|
|
2321
|
+
...j.gantt,
|
|
2322
|
+
tickInterval: void 0,
|
|
2323
|
+
useWidth: void 0
|
|
2324
|
+
},
|
|
2325
|
+
c4: {
|
|
2326
|
+
...j.c4,
|
|
2327
|
+
useWidth: void 0,
|
|
2328
|
+
personFont: /* @__PURE__ */ n(function() {
|
|
2329
|
+
return {
|
|
2330
|
+
fontFamily: this.personFontFamily,
|
|
2331
|
+
fontSize: this.personFontSize,
|
|
2332
|
+
fontWeight: this.personFontWeight
|
|
2333
|
+
};
|
|
2334
|
+
}, "personFont"),
|
|
2335
|
+
flowchart: {
|
|
2336
|
+
...j.flowchart,
|
|
2337
|
+
inheritDir: !1
|
|
2338
|
+
},
|
|
2339
|
+
external_personFont: /* @__PURE__ */ n(function() {
|
|
2340
|
+
return {
|
|
2341
|
+
fontFamily: this.external_personFontFamily,
|
|
2342
|
+
fontSize: this.external_personFontSize,
|
|
2343
|
+
fontWeight: this.external_personFontWeight
|
|
2344
|
+
};
|
|
2345
|
+
}, "external_personFont"),
|
|
2346
|
+
systemFont: /* @__PURE__ */ n(function() {
|
|
2347
|
+
return {
|
|
2348
|
+
fontFamily: this.systemFontFamily,
|
|
2349
|
+
fontSize: this.systemFontSize,
|
|
2350
|
+
fontWeight: this.systemFontWeight
|
|
2351
|
+
};
|
|
2352
|
+
}, "systemFont"),
|
|
2353
|
+
external_systemFont: /* @__PURE__ */ n(function() {
|
|
2354
|
+
return {
|
|
2355
|
+
fontFamily: this.external_systemFontFamily,
|
|
2356
|
+
fontSize: this.external_systemFontSize,
|
|
2357
|
+
fontWeight: this.external_systemFontWeight
|
|
2358
|
+
};
|
|
2359
|
+
}, "external_systemFont"),
|
|
2360
|
+
system_dbFont: /* @__PURE__ */ n(function() {
|
|
2361
|
+
return {
|
|
2362
|
+
fontFamily: this.system_dbFontFamily,
|
|
2363
|
+
fontSize: this.system_dbFontSize,
|
|
2364
|
+
fontWeight: this.system_dbFontWeight
|
|
2365
|
+
};
|
|
2366
|
+
}, "system_dbFont"),
|
|
2367
|
+
external_system_dbFont: /* @__PURE__ */ n(function() {
|
|
2368
|
+
return {
|
|
2369
|
+
fontFamily: this.external_system_dbFontFamily,
|
|
2370
|
+
fontSize: this.external_system_dbFontSize,
|
|
2371
|
+
fontWeight: this.external_system_dbFontWeight
|
|
2372
|
+
};
|
|
2373
|
+
}, "external_system_dbFont"),
|
|
2374
|
+
system_queueFont: /* @__PURE__ */ n(function() {
|
|
2375
|
+
return {
|
|
2376
|
+
fontFamily: this.system_queueFontFamily,
|
|
2377
|
+
fontSize: this.system_queueFontSize,
|
|
2378
|
+
fontWeight: this.system_queueFontWeight
|
|
2379
|
+
};
|
|
2380
|
+
}, "system_queueFont"),
|
|
2381
|
+
external_system_queueFont: /* @__PURE__ */ n(function() {
|
|
2382
|
+
return {
|
|
2383
|
+
fontFamily: this.external_system_queueFontFamily,
|
|
2384
|
+
fontSize: this.external_system_queueFontSize,
|
|
2385
|
+
fontWeight: this.external_system_queueFontWeight
|
|
2386
|
+
};
|
|
2387
|
+
}, "external_system_queueFont"),
|
|
2388
|
+
containerFont: /* @__PURE__ */ n(function() {
|
|
2389
|
+
return {
|
|
2390
|
+
fontFamily: this.containerFontFamily,
|
|
2391
|
+
fontSize: this.containerFontSize,
|
|
2392
|
+
fontWeight: this.containerFontWeight
|
|
2393
|
+
};
|
|
2394
|
+
}, "containerFont"),
|
|
2395
|
+
external_containerFont: /* @__PURE__ */ n(function() {
|
|
2396
|
+
return {
|
|
2397
|
+
fontFamily: this.external_containerFontFamily,
|
|
2398
|
+
fontSize: this.external_containerFontSize,
|
|
2399
|
+
fontWeight: this.external_containerFontWeight
|
|
2400
|
+
};
|
|
2401
|
+
}, "external_containerFont"),
|
|
2402
|
+
container_dbFont: /* @__PURE__ */ n(function() {
|
|
2403
|
+
return {
|
|
2404
|
+
fontFamily: this.container_dbFontFamily,
|
|
2405
|
+
fontSize: this.container_dbFontSize,
|
|
2406
|
+
fontWeight: this.container_dbFontWeight
|
|
2407
|
+
};
|
|
2408
|
+
}, "container_dbFont"),
|
|
2409
|
+
external_container_dbFont: /* @__PURE__ */ n(function() {
|
|
2410
|
+
return {
|
|
2411
|
+
fontFamily: this.external_container_dbFontFamily,
|
|
2412
|
+
fontSize: this.external_container_dbFontSize,
|
|
2413
|
+
fontWeight: this.external_container_dbFontWeight
|
|
2414
|
+
};
|
|
2415
|
+
}, "external_container_dbFont"),
|
|
2416
|
+
container_queueFont: /* @__PURE__ */ n(function() {
|
|
2417
|
+
return {
|
|
2418
|
+
fontFamily: this.container_queueFontFamily,
|
|
2419
|
+
fontSize: this.container_queueFontSize,
|
|
2420
|
+
fontWeight: this.container_queueFontWeight
|
|
2421
|
+
};
|
|
2422
|
+
}, "container_queueFont"),
|
|
2423
|
+
external_container_queueFont: /* @__PURE__ */ n(function() {
|
|
2424
|
+
return {
|
|
2425
|
+
fontFamily: this.external_container_queueFontFamily,
|
|
2426
|
+
fontSize: this.external_container_queueFontSize,
|
|
2427
|
+
fontWeight: this.external_container_queueFontWeight
|
|
2428
|
+
};
|
|
2429
|
+
}, "external_container_queueFont"),
|
|
2430
|
+
componentFont: /* @__PURE__ */ n(function() {
|
|
2431
|
+
return {
|
|
2432
|
+
fontFamily: this.componentFontFamily,
|
|
2433
|
+
fontSize: this.componentFontSize,
|
|
2434
|
+
fontWeight: this.componentFontWeight
|
|
2435
|
+
};
|
|
2436
|
+
}, "componentFont"),
|
|
2437
|
+
external_componentFont: /* @__PURE__ */ n(function() {
|
|
2438
|
+
return {
|
|
2439
|
+
fontFamily: this.external_componentFontFamily,
|
|
2440
|
+
fontSize: this.external_componentFontSize,
|
|
2441
|
+
fontWeight: this.external_componentFontWeight
|
|
2442
|
+
};
|
|
2443
|
+
}, "external_componentFont"),
|
|
2444
|
+
component_dbFont: /* @__PURE__ */ n(function() {
|
|
2445
|
+
return {
|
|
2446
|
+
fontFamily: this.component_dbFontFamily,
|
|
2447
|
+
fontSize: this.component_dbFontSize,
|
|
2448
|
+
fontWeight: this.component_dbFontWeight
|
|
2449
|
+
};
|
|
2450
|
+
}, "component_dbFont"),
|
|
2451
|
+
external_component_dbFont: /* @__PURE__ */ n(function() {
|
|
2452
|
+
return {
|
|
2453
|
+
fontFamily: this.external_component_dbFontFamily,
|
|
2454
|
+
fontSize: this.external_component_dbFontSize,
|
|
2455
|
+
fontWeight: this.external_component_dbFontWeight
|
|
2456
|
+
};
|
|
2457
|
+
}, "external_component_dbFont"),
|
|
2458
|
+
component_queueFont: /* @__PURE__ */ n(function() {
|
|
2459
|
+
return {
|
|
2460
|
+
fontFamily: this.component_queueFontFamily,
|
|
2461
|
+
fontSize: this.component_queueFontSize,
|
|
2462
|
+
fontWeight: this.component_queueFontWeight
|
|
2463
|
+
};
|
|
2464
|
+
}, "component_queueFont"),
|
|
2465
|
+
external_component_queueFont: /* @__PURE__ */ n(function() {
|
|
2466
|
+
return {
|
|
2467
|
+
fontFamily: this.external_component_queueFontFamily,
|
|
2468
|
+
fontSize: this.external_component_queueFontSize,
|
|
2469
|
+
fontWeight: this.external_component_queueFontWeight
|
|
2470
|
+
};
|
|
2471
|
+
}, "external_component_queueFont"),
|
|
2472
|
+
boundaryFont: /* @__PURE__ */ n(function() {
|
|
2473
|
+
return {
|
|
2474
|
+
fontFamily: this.boundaryFontFamily,
|
|
2475
|
+
fontSize: this.boundaryFontSize,
|
|
2476
|
+
fontWeight: this.boundaryFontWeight
|
|
2477
|
+
};
|
|
2478
|
+
}, "boundaryFont"),
|
|
2479
|
+
messageFont: /* @__PURE__ */ n(function() {
|
|
2480
|
+
return {
|
|
2481
|
+
fontFamily: this.messageFontFamily,
|
|
2482
|
+
fontSize: this.messageFontSize,
|
|
2483
|
+
fontWeight: this.messageFontWeight
|
|
2484
|
+
};
|
|
2485
|
+
}, "messageFont")
|
|
2486
|
+
},
|
|
2487
|
+
pie: {
|
|
2488
|
+
...j.pie,
|
|
2489
|
+
useWidth: 984
|
|
2490
|
+
},
|
|
2491
|
+
xyChart: {
|
|
2492
|
+
...j.xyChart,
|
|
2493
|
+
useWidth: void 0
|
|
2494
|
+
},
|
|
2495
|
+
requirement: {
|
|
2496
|
+
...j.requirement,
|
|
2497
|
+
useWidth: void 0
|
|
2498
|
+
},
|
|
2499
|
+
packet: { ...j.packet },
|
|
2500
|
+
eventmodeling: { ...j.eventmodeling },
|
|
2501
|
+
treeView: {
|
|
2502
|
+
...j.treeView,
|
|
2503
|
+
useWidth: void 0
|
|
2504
|
+
},
|
|
2505
|
+
radar: { ...j.radar },
|
|
2506
|
+
ishikawa: { ...j.ishikawa },
|
|
2507
|
+
sankey: {
|
|
2508
|
+
...j.sankey,
|
|
2509
|
+
nodeColors: void 0
|
|
2510
|
+
},
|
|
2511
|
+
treemap: {
|
|
2512
|
+
useMaxWidth: !0,
|
|
2513
|
+
padding: 10,
|
|
2514
|
+
diagramPadding: 8,
|
|
2515
|
+
showValues: !0,
|
|
2516
|
+
nodeWidth: 100,
|
|
2517
|
+
nodeHeight: 40,
|
|
2518
|
+
borderWidth: 1,
|
|
2519
|
+
valueFontSize: 12,
|
|
2520
|
+
labelFontSize: 14,
|
|
2521
|
+
valueFormat: ","
|
|
2522
|
+
},
|
|
2523
|
+
venn: { ...j.venn }
|
|
2524
|
+
}, Pe = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
|
|
2525
|
+
...n,
|
|
2526
|
+
t + r,
|
|
2527
|
+
...Pe(e[r], "")
|
|
2528
|
+
] : [...n, t + r], []), "keyify"), Fe = new Set(Pe(Ne, "")), Ie = Ne, M = /* @__PURE__ */ n((e) => {
|
|
2529
|
+
if (r.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
|
|
2530
|
+
if (Array.isArray(e)) {
|
|
2531
|
+
e.forEach((e) => M(e));
|
|
2532
|
+
return;
|
|
2533
|
+
}
|
|
2534
|
+
for (let t of Object.keys(e)) {
|
|
2535
|
+
if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Fe.has(t) || e[t] == null) {
|
|
2536
|
+
r.debug("sanitize deleting key: ", t), delete e[t];
|
|
2537
|
+
continue;
|
|
2538
|
+
}
|
|
2539
|
+
if (typeof e[t] == "object") {
|
|
2540
|
+
if (t === "nodeColors") {
|
|
2541
|
+
let n = /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;
|
|
2542
|
+
for (let i of Object.keys(e[t])) (typeof e[t][i] != "string" || !n.test(e[t][i])) && (r.debug("sanitize deleting invalid color:", i, e[t][i]), delete e[t][i]);
|
|
2543
|
+
} else r.debug("sanitizing object", t), M(e[t]);
|
|
2544
|
+
continue;
|
|
2545
|
+
}
|
|
2546
|
+
for (let n of [
|
|
2547
|
+
"themeCSS",
|
|
2548
|
+
"fontFamily",
|
|
2549
|
+
"altFontFamily"
|
|
2550
|
+
]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = Le(e[t]));
|
|
2551
|
+
}
|
|
2552
|
+
if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
|
|
2553
|
+
let n = e.themeVariables[t];
|
|
2554
|
+
n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
|
|
2555
|
+
}
|
|
2556
|
+
r.debug("After sanitization", e);
|
|
2557
|
+
}
|
|
2558
|
+
}, "sanitizeDirective"), Le = /* @__PURE__ */ n((e) => {
|
|
2559
|
+
let t = 0, n = 0;
|
|
2560
|
+
for (let r of e) {
|
|
2561
|
+
if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
2562
|
+
r === "{" ? t++ : r === "}" && n++;
|
|
2563
|
+
}
|
|
2564
|
+
return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
|
|
2565
|
+
}, "sanitizeCss"), N = Object.freeze(Ie), P = /* @__PURE__ */ n((e) => !(e === !1 || [
|
|
2566
|
+
"false",
|
|
2567
|
+
"null",
|
|
2568
|
+
"0"
|
|
2569
|
+
].includes(String(e).trim().toLowerCase())), "evaluate"), F = E({}, N), I, L = [], R = E({}, N), z = /* @__PURE__ */ n((e, t) => {
|
|
2570
|
+
let n = E({}, e), r = {};
|
|
2571
|
+
for (let e of t) Ue(e), r = E(r, e);
|
|
2572
|
+
if (n = E(n, r), r.theme && r.theme in A) {
|
|
2573
|
+
let e = E(E({}, I).themeVariables || {}, r.themeVariables);
|
|
2574
|
+
n.theme && n.theme in A && (n.themeVariables = A[n.theme].getThemeVariables(e));
|
|
2575
|
+
}
|
|
2576
|
+
return R = n, Ye(R), R;
|
|
2577
|
+
}, "updateCurrentConfig"), Re = /* @__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"), ze = /* @__PURE__ */ n((e) => {
|
|
2578
|
+
I = E({}, e);
|
|
2579
|
+
}, "saveConfigFromInitialize"), Be = /* @__PURE__ */ n((e) => (F = E(F, e), z(F, L), F), "updateSiteConfig"), Ve = /* @__PURE__ */ n(() => E({}, F), "getSiteConfig"), He = /* @__PURE__ */ n((e) => (Ye(e), E(R, e), B()), "setConfig"), B = /* @__PURE__ */ n(() => E({}, R), "getConfig"), Ue = /* @__PURE__ */ n((e) => {
|
|
2580
|
+
e && (["secure", ...F.secure ?? []].forEach((t) => {
|
|
2581
|
+
Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
|
|
2582
|
+
}), Object.keys(e).forEach((t) => {
|
|
2583
|
+
t.startsWith("__") && delete e[t];
|
|
2584
|
+
}), Object.keys(e).forEach((t) => {
|
|
2585
|
+
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Ue(e[t]);
|
|
2586
|
+
}));
|
|
2587
|
+
}, "sanitize"), We = /* @__PURE__ */ n((e) => {
|
|
2588
|
+
M(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
|
|
2589
|
+
...e.themeVariables,
|
|
2590
|
+
fontFamily: e.fontFamily
|
|
2591
|
+
}), L.push(e), z(F, L);
|
|
2592
|
+
}, "addDirective"), Ge = /* @__PURE__ */ n((e = F) => {
|
|
2593
|
+
L = [], z(e, L);
|
|
2594
|
+
}, "reset"), Ke = {
|
|
2595
|
+
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
2596
|
+
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
2597
|
+
}, qe = {}, Je = /* @__PURE__ */ n((e) => {
|
|
2598
|
+
qe[e] || (r.warn(Ke[e]), qe[e] = !0);
|
|
2599
|
+
}, "issueWarning"), Ye = /* @__PURE__ */ n((e) => {
|
|
2600
|
+
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && Je("LAZY_LOAD_DEPRECATED");
|
|
2601
|
+
}, "checkConfig"), Xe = /* @__PURE__ */ n(() => {
|
|
2602
|
+
let e = {};
|
|
2603
|
+
I && (e = E(e, I));
|
|
2604
|
+
for (let t of L) e = E(e, t);
|
|
2605
|
+
return e;
|
|
2606
|
+
}, "getUserDefinedConfig"), Ze = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && Je("FLOWCHART_HTML_LABELS_DEPRECATED"), P(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), V = /<br\s*\/?>/gi, Qe = /* @__PURE__ */ n((e) => e ? st(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), $e = /* @__PURE__ */ (() => {
|
|
2607
|
+
let e = !1;
|
|
2608
|
+
return () => {
|
|
2609
|
+
e ||= (et(), !0);
|
|
2610
|
+
};
|
|
2611
|
+
})();
|
|
2612
|
+
function et() {
|
|
2613
|
+
let t = "data-temp-href-target";
|
|
2614
|
+
e.addHook("beforeSanitizeAttributes", (e) => {
|
|
2615
|
+
e.tagName === "A" && e.hasAttribute("target") && e.setAttribute(t, e.getAttribute("target") ?? "");
|
|
2616
|
+
}), e.addHook("afterSanitizeAttributes", (e) => {
|
|
2617
|
+
e.tagName === "A" && e.hasAttribute(t) && (e.setAttribute("target", e.getAttribute(t) ?? ""), e.removeAttribute(t), e.getAttribute("target") === "_blank" && e.setAttribute("rel", "noopener"));
|
|
2618
|
+
});
|
|
2619
|
+
}
|
|
2620
|
+
n(et, "setupDompurifyHooks");
|
|
2621
|
+
var tt = /* @__PURE__ */ n((t) => ($e(), e.sanitize(t)), "removeScript"), nt = /* @__PURE__ */ n((e, t) => {
|
|
2622
|
+
if (Ze(t)) {
|
|
2623
|
+
let n = t.securityLevel;
|
|
2624
|
+
n === "antiscript" || n === "strict" || n === "sandbox" ? e = tt(e) : n !== "loose" && (e = st(e), e = e.replace(/</g, "<").replace(/>/g, ">"), e = e.replace(/=/g, "="), e = ot(e));
|
|
2625
|
+
}
|
|
2626
|
+
return e;
|
|
2627
|
+
}, "sanitizeMore"), H = /* @__PURE__ */ n((t, n) => t && (t = n.dompurifyConfig ? e.sanitize(nt(t, n), n.dompurifyConfig).toString() : e.sanitize(nt(t, n), { FORBID_TAGS: ["style"] }).toString(), t), "sanitizeText"), rt = /* @__PURE__ */ n((e, t) => typeof e == "string" ? H(e, t) : e.flat().map((e) => H(e, t)), "sanitizeTextOrArray"), it = /* @__PURE__ */ n((e) => V.test(e), "hasBreaks"), at = /* @__PURE__ */ n((e) => e.split(V), "splitBreaks"), ot = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), st = /* @__PURE__ */ n((e) => e.replace(V, "#br#"), "breakToPlaceholder"), ct = /* @__PURE__ */ n((e) => {
|
|
2628
|
+
let t = "";
|
|
2629
|
+
return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
|
|
2630
|
+
}, "getUrl"), lt = /* @__PURE__ */ n(function(...e) {
|
|
2631
|
+
let t = e.filter((e) => !isNaN(e));
|
|
2632
|
+
return Math.max(...t);
|
|
2633
|
+
}, "getMax"), ut = /* @__PURE__ */ n(function(...e) {
|
|
2634
|
+
let t = e.filter((e) => !isNaN(e));
|
|
2635
|
+
return Math.min(...t);
|
|
2636
|
+
}, "getMin"), dt = /* @__PURE__ */ n(function(e) {
|
|
2637
|
+
let t = e.split(/(,)/), n = [];
|
|
2638
|
+
for (let e = 0; e < t.length; e++) {
|
|
2639
|
+
let r = t[e];
|
|
2640
|
+
if (r === "," && e > 0 && e + 1 < t.length) {
|
|
2641
|
+
let i = t[e - 1], a = t[e + 1];
|
|
2642
|
+
ft(i, a) && (r = i + "," + a, e++, n.pop());
|
|
2643
|
+
}
|
|
2644
|
+
n.push(pt(r));
|
|
2645
|
+
}
|
|
2646
|
+
return n.join("");
|
|
2647
|
+
}, "parseGenericTypes"), U = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), ft = /* @__PURE__ */ n((e, t) => {
|
|
2648
|
+
let n = U(e, "~"), r = U(t, "~");
|
|
2649
|
+
return n === 1 && r === 1;
|
|
2650
|
+
}, "shouldCombineSets"), pt = /* @__PURE__ */ n((e) => {
|
|
2651
|
+
let t = U(e, "~"), n = !1;
|
|
2652
|
+
if (t <= 1) return e;
|
|
2653
|
+
t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
|
|
2654
|
+
let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
2655
|
+
for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
2656
|
+
return n && r.unshift("~"), r.join("");
|
|
2657
|
+
}, "processSet"), mt = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), W = /\$\$(.*)\$\$/g, G = /* @__PURE__ */ n((e) => (e.match(W)?.length ?? 0) > 0, "hasKatex"), ht = /* @__PURE__ */ n(async (e, t) => {
|
|
2658
|
+
let n = document.createElement("div");
|
|
2659
|
+
n.innerHTML = await _t(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
|
|
2660
|
+
let r = {
|
|
2661
|
+
width: n.clientWidth,
|
|
2662
|
+
height: n.clientHeight
|
|
2663
|
+
};
|
|
2664
|
+
return n.remove(), r;
|
|
2665
|
+
}, "calculateMathMLDimensions"), gt = /* @__PURE__ */ n(async (e, t) => {
|
|
2666
|
+
if (!G(e)) return e;
|
|
2667
|
+
if (!(mt() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(W, "MathML is unsupported in this environment.");
|
|
2668
|
+
{
|
|
2669
|
+
let { default: n } = await import("./katex-CgkxVokH.js"), r = t.forceLegacyMathML || !mt() && t.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
2670
|
+
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, {
|
|
2671
|
+
throwOnError: !0,
|
|
2672
|
+
displayMode: !0,
|
|
2673
|
+
output: r
|
|
2674
|
+
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
2675
|
+
}
|
|
2676
|
+
return e.replace(W, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
|
|
2677
|
+
}, "renderKatexUnsanitized"), _t = /* @__PURE__ */ n(async (e, t) => H(await gt(e, t), t), "renderKatexSanitized"), vt = {
|
|
2678
|
+
getRows: Qe,
|
|
2679
|
+
sanitizeText: H,
|
|
2680
|
+
sanitizeTextOrArray: rt,
|
|
2681
|
+
hasBreaks: it,
|
|
2682
|
+
splitBreaks: at,
|
|
2683
|
+
lineBreakRegex: V,
|
|
2684
|
+
removeScript: tt,
|
|
2685
|
+
getUrl: ct,
|
|
2686
|
+
evaluate: P,
|
|
2687
|
+
getMax: lt,
|
|
2688
|
+
getMin: ut
|
|
2689
|
+
}, yt = /* @__PURE__ */ n(function(e, t) {
|
|
2690
|
+
for (let n of t) e.attr(n[0], n[1]);
|
|
2691
|
+
}, "d3Attrs"), bt = /* @__PURE__ */ n(function(e, t, n) {
|
|
2692
|
+
let r = /* @__PURE__ */ new Map();
|
|
2693
|
+
return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
|
|
2694
|
+
}, "calculateSvgSizeAttrs"), xt = /* @__PURE__ */ n(function(e, t, n, r) {
|
|
2695
|
+
yt(e, bt(t, n, r));
|
|
2696
|
+
}, "configureSvgSize"), St = /* @__PURE__ */ n(function(e, t, n, i) {
|
|
2697
|
+
let a = t.node().getBBox(), o = a.width, s = a.height;
|
|
2698
|
+
r.info(`SVG bounds: ${o}x${s}`, a);
|
|
2699
|
+
let c = 0, l = 0;
|
|
2700
|
+
r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`), xt(t, l, c, i);
|
|
2701
|
+
let u = `${a.x - n} ${a.y - n} ${a.width + 2 * n} ${a.height + 2 * n}`;
|
|
2702
|
+
t.attr("viewBox", u);
|
|
2703
|
+
}, "setupGraphViewbox"), K = {};
|
|
2704
|
+
function Ct(e) {
|
|
2705
|
+
return [...e.cssRules].map((e) => e.cssText).join("\n");
|
|
2706
|
+
}
|
|
2707
|
+
n(Ct, "cssStyleSheetToString");
|
|
2708
|
+
var wt = /* @__PURE__ */ n((e, t, n, i) => {
|
|
2709
|
+
let a = "";
|
|
2710
|
+
return e in K && K[e] ? a = K[e]({
|
|
2711
|
+
...n,
|
|
2712
|
+
svgId: i
|
|
2713
|
+
}) : r.warn(`No theme found for ${e}`), ` & {
|
|
2714
|
+
font-family: ${n.fontFamily};
|
|
2715
|
+
font-size: ${n.fontSize};
|
|
2716
|
+
fill: ${n.textColor}
|
|
2717
|
+
}
|
|
2718
|
+
@keyframes edge-animation-frame {
|
|
2719
|
+
from {
|
|
2720
|
+
stroke-dashoffset: 0;
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
@keyframes dash {
|
|
2724
|
+
to {
|
|
2725
|
+
stroke-dashoffset: 0;
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
& .edge-animation-slow {
|
|
2729
|
+
stroke-dasharray: 9,5 !important;
|
|
2730
|
+
stroke-dashoffset: 900;
|
|
2731
|
+
animation: dash 50s linear infinite;
|
|
2732
|
+
stroke-linecap: round;
|
|
2733
|
+
}
|
|
2734
|
+
& .edge-animation-fast {
|
|
2735
|
+
stroke-dasharray: 9,5 !important;
|
|
2736
|
+
stroke-dashoffset: 900;
|
|
2737
|
+
animation: dash 20s linear infinite;
|
|
2738
|
+
stroke-linecap: round;
|
|
2739
|
+
}
|
|
2740
|
+
/* Classes common for multiple diagrams */
|
|
2741
|
+
|
|
2742
|
+
& .error-icon {
|
|
2743
|
+
fill: ${n.errorBkgColor};
|
|
2744
|
+
}
|
|
2745
|
+
& .error-text {
|
|
2746
|
+
fill: ${n.errorTextColor};
|
|
2747
|
+
stroke: ${n.errorTextColor};
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
& .edge-thickness-normal {
|
|
2751
|
+
stroke-width: ${n.strokeWidth ?? 1}px;
|
|
2752
|
+
}
|
|
2753
|
+
& .edge-thickness-thick {
|
|
2754
|
+
stroke-width: 3.5px
|
|
2755
|
+
}
|
|
2756
|
+
& .edge-pattern-solid {
|
|
2757
|
+
stroke-dasharray: 0;
|
|
2758
|
+
}
|
|
2759
|
+
& .edge-thickness-invisible {
|
|
2760
|
+
stroke-width: 0;
|
|
2761
|
+
fill: none;
|
|
2762
|
+
}
|
|
2763
|
+
& .edge-pattern-dashed{
|
|
2764
|
+
stroke-dasharray: 3;
|
|
2765
|
+
}
|
|
2766
|
+
.edge-pattern-dotted {
|
|
2767
|
+
stroke-dasharray: 2;
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2770
|
+
& .marker {
|
|
2771
|
+
fill: ${n.lineColor};
|
|
2772
|
+
stroke: ${n.lineColor};
|
|
2773
|
+
}
|
|
2774
|
+
& .marker.cross {
|
|
2775
|
+
stroke: ${n.lineColor};
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
& svg {
|
|
2779
|
+
font-family: ${n.fontFamily};
|
|
2780
|
+
font-size: ${n.fontSize};
|
|
2781
|
+
}
|
|
2782
|
+
& p {
|
|
2783
|
+
margin: 0
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2786
|
+
${a}
|
|
2787
|
+
.node .neo-node {
|
|
2788
|
+
stroke: ${n.nodeBorder};
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
2792
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
2793
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
|
|
2797
|
+
[data-look="neo"].node path {
|
|
2798
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
2799
|
+
stroke-width: ${n.strokeWidth ?? 1}px;
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
[data-look="neo"].node .outer-path {
|
|
2803
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
2804
|
+
}
|
|
2805
|
+
|
|
2806
|
+
[data-look="neo"].node .neo-line path {
|
|
2807
|
+
stroke: ${n.nodeBorder};
|
|
2808
|
+
filter: none;
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
[data-look="neo"].node circle{
|
|
2812
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
2813
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
[data-look="neo"].node circle .state-start{
|
|
2817
|
+
fill: #000000;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
[data-look="neo"].icon-shape .icon {
|
|
2821
|
+
fill: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
2822
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
2826
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
2827
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
${t}
|
|
2831
|
+
`;
|
|
2832
|
+
}, "getStyles"), Tt = /* @__PURE__ */ n((e, t) => {
|
|
2833
|
+
t !== void 0 && (K[e] = t);
|
|
2834
|
+
}, "addStylesForDiagram"), Et = wt, q = {};
|
|
2835
|
+
i(q, {
|
|
2836
|
+
clear: () => Dt,
|
|
2837
|
+
getAccDescription: () => jt,
|
|
2838
|
+
getAccTitle: () => kt,
|
|
2839
|
+
getDiagramTitle: () => Nt,
|
|
2840
|
+
setAccDescription: () => At,
|
|
2841
|
+
setAccTitle: () => Ot,
|
|
2842
|
+
setDiagramTitle: () => Mt
|
|
2843
|
+
});
|
|
2844
|
+
var J = "", Y = "", X = "", Z = /* @__PURE__ */ n((e) => H(e, B()), "sanitizeText"), Dt = /* @__PURE__ */ n(() => {
|
|
2845
|
+
J = "", X = "", Y = "";
|
|
2846
|
+
}, "clear"), Ot = /* @__PURE__ */ n((e) => {
|
|
2847
|
+
J = Z(e).replace(/^\s+/g, "");
|
|
2848
|
+
}, "setAccTitle"), kt = /* @__PURE__ */ n(() => J, "getAccTitle"), At = /* @__PURE__ */ n((e) => {
|
|
2849
|
+
X = Z(e).replace(/\n\s+/g, "\n");
|
|
2850
|
+
}, "setAccDescription"), jt = /* @__PURE__ */ n(() => X, "getAccDescription"), Mt = /* @__PURE__ */ n((e) => {
|
|
2851
|
+
Y = Z(e);
|
|
2852
|
+
}, "setDiagramTitle"), Nt = /* @__PURE__ */ n(() => Y, "getDiagramTitle"), Pt = r, Ft = t, Q = B, It = He, Lt = N, Rt = /* @__PURE__ */ n((e) => H(e, Q()), "sanitizeText"), zt = St, Bt = /* @__PURE__ */ n(() => q, "getCommonDb"), $ = {}, Vt = /* @__PURE__ */ n((e, t, n) => {
|
|
2853
|
+
$[e] && Pt.warn(`Diagram with id ${e} already registered. Overwriting.`), $[e] = t, n && le(e, n), Tt(e, t.styles), t.injectUtils?.(Pt, Ft, Q, Rt, zt, Bt(), () => {});
|
|
2854
|
+
}, "registerDiagram"), Ht = /* @__PURE__ */ n((e) => {
|
|
2855
|
+
if (e in $) return $[e];
|
|
2856
|
+
throw new Ut(e);
|
|
2857
|
+
}, "getDiagram"), Ut = class extends Error {
|
|
2858
|
+
static {
|
|
2859
|
+
n(this, "DiagramNotFoundError");
|
|
2860
|
+
}
|
|
2861
|
+
constructor(e) {
|
|
2862
|
+
super(`Diagram ${e} not found.`);
|
|
2863
|
+
}
|
|
2864
|
+
};
|
|
2865
|
+
//#endregion
|
|
2866
|
+
export { x as $, G as A, Rt as B, ue as C, ge as D, Ve as E, _t as F, It as G, At as H, Ge as I, St as J, Mt as K, Le as L, dt as M, Vt as N, ct as O, ce as P, Be as Q, M as R, Ht as S, Ze as T, Ot as U, ze as V, He as W, Et as X, zt as Y, A as Z, re as _, Dt as a, o as at, B as b, xt as c, Lt as d, b as et, Ie as f, P as g, ie as h, ht as i, h as it, V as j, Xe as k, Ct as l, w as m, We as n, v as nt, q as o, se as p, Re as q, E as r, _ as rt, vt as s, oe as t, y as tt, N as u, jt as v, Nt as w, Q as x, kt as y, H as z };
|
|
2867
|
+
|
|
2868
|
+
//# sourceMappingURL=chunk-CSCIHK7Q-DyRIc27i.js.map
|