@countermeasure-platform/web-components 1.2.1 → 1.2.2-dev.7.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-Dye0I6sO.js +145 -0
- package/dist/component-Dye0I6sO.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/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 +4 -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 +39 -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 +495 -0
- 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/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 +136 -4
- package/src/sidebar/index.ts +1 -0
- package/src/sidebar/types.ts +40 -0
- package/src/styles/components/brand.css +30 -0
- package/src/styles/sidebar.css +495 -0
- package/dist/_basePickBy-BQMPE4-n.js +0 -168
- package/dist/_basePickBy-BQMPE4-n.js.map +0 -1
- package/dist/_baseUniq-Bdp_vFUv.js +0 -684
- package/dist/_baseUniq-Bdp_vFUv.js.map +0 -1
- package/dist/architecture-PBZL5I3N-Zk3GmKE8.js +0 -3
- package/dist/blockDiagram-WCTKOSBZ-BH3jwWeU.js.map +0 -1
- package/dist/c4Diagram-IC4MRINW-OFLrunYI.js.map +0 -1
- package/dist/channel-LRbq43st.js +0 -7
- package/dist/chunk-7E7YKBS2-BsywoVTt.js +0 -25
- package/dist/chunk-7E7YKBS2-BsywoVTt.js.map +0 -1
- package/dist/chunk-7R4GIKGN-DJmroLCH.js +0 -2054
- package/dist/chunk-7R4GIKGN-DJmroLCH.js.map +0 -1
- package/dist/chunk-C72U2L5F-BwPwVDcP.js +0 -25
- package/dist/chunk-C72U2L5F-BwPwVDcP.js.map +0 -1
- package/dist/chunk-EGIJ26TM-DKd5cEgn.js +0 -25
- package/dist/chunk-EGIJ26TM-DKd5cEgn.js.map +0 -1
- package/dist/chunk-GEFDOKGD-DGJJEGSm.js.map +0 -1
- package/dist/chunk-GLR3WWYH-BDwmgwCA.js +0 -43
- package/dist/chunk-GLR3WWYH-BDwmgwCA.js.map +0 -1
- package/dist/chunk-HHEYEP7N-DJ1b-gA8.js +0 -12
- package/dist/chunk-KYZI473N-BXYCe83A.js +0 -3437
- package/dist/chunk-KYZI473N-BXYCe83A.js.map +0 -1
- package/dist/chunk-L3YUKLVL-Y5k8UNMf.js +0 -25
- package/dist/chunk-L3YUKLVL-Y5k8UNMf.js.map +0 -1
- package/dist/chunk-MX3YWQON-D43mcq1f.js.map +0 -1
- package/dist/chunk-NBPlniwU.js +0 -23
- package/dist/chunk-NQ4KR5QH-C0nWShNk.js.map +0 -1
- package/dist/chunk-O4XLMI2P-DtGEm9QX.js +0 -514
- package/dist/chunk-O4XLMI2P-DtGEm9QX.js.map +0 -1
- package/dist/chunk-OZEHJAEY-BsQ56PV-.js.map +0 -1
- package/dist/chunk-R5LLSJPH-c1IfaK5D.js.map +0 -1
- package/dist/chunk-WL4C6EOR-BV-op7zg.js.map +0 -1
- package/dist/chunk-XIRO2GV7-Bv1hlNLi.js +0 -32
- package/dist/chunk-XIRO2GV7-Bv1hlNLi.js.map +0 -1
- package/dist/chunk-XZSTWKYB-C7maKWEr.js +0 -15799
- package/dist/chunk-XZSTWKYB-C7maKWEr.js.map +0 -1
- package/dist/classDiagram-VBA2DB6C-DZfC0xPM.js +0 -31
- package/dist/classDiagram-v2-RAHNMMFH-CtWRD1ax.js +0 -31
- package/dist/clone-CliVdNc8.js +0 -10
- package/dist/clone-CliVdNc8.js.map +0 -1
- package/dist/component-C1Jiz1Ki.js +0 -103
- package/dist/component-C1Jiz1Ki.js.map +0 -1
- package/dist/dagre-BqC9mhMk.js +0 -1485
- package/dist/dagre-BqC9mhMk.js.map +0 -1
- package/dist/dagre-KLK3FWXG-DTKcsol6.js +0 -296
- package/dist/dagre-KLK3FWXG-DTKcsol6.js.map +0 -1
- package/dist/diagram-E7M64L7V-Co7O3gub.js.map +0 -1
- package/dist/dist-BrNloUiz.js.map +0 -1
- package/dist/erDiagram-INFDFZHY-C42JeR9I.js.map +0 -1
- package/dist/flowDiagram-PKNHOUZH-DInJjOz3.js.map +0 -1
- package/dist/ganttDiagram-A5KZAMGK-Dgp-4Yss.js.map +0 -1
- package/dist/gitGraph-HDMCJU4V-D_QsK6Rt.js +0 -3
- package/dist/gitGraphDiagram-K3NZZRJ6-Dr_X0dND.js +0 -628
- package/dist/gitGraphDiagram-K3NZZRJ6-Dr_X0dND.js.map +0 -1
- package/dist/graphlib-ecencZTG.js +0 -227
- package/dist/graphlib-ecencZTG.js.map +0 -1
- package/dist/info-3K5VOQVL-BbLiZXwn.js +0 -3
- package/dist/isArrayLikeObject-Bjsxaqj7.js +0 -580
- package/dist/isArrayLikeObject-Bjsxaqj7.js.map +0 -1
- package/dist/isEmpty-CeZZUVts.js +0 -37
- package/dist/isEmpty-CeZZUVts.js.map +0 -1
- package/dist/ishikawaDiagram-PHBUUO56-qHBJm2LT.js.map +0 -1
- package/dist/journeyDiagram-4ABVD52K-PgfYdoDM.js.map +0 -1
- package/dist/line-Cq1AZT4f.js +0 -36
- package/dist/math-D4gdAuwG.js +0 -12
- package/dist/math-D4gdAuwG.js.map +0 -1
- package/dist/mermaid-parser.core-Dz5qv4CI.js.map +0 -1
- package/dist/mermaid.core-DTiIXVKa.js +0 -923
- package/dist/mermaid.core-DTiIXVKa.js.map +0 -1
- package/dist/mindmap-definition-YRQLILUH-D95OPRMh.js.map +0 -1
- package/dist/packet-RMMSAZCW-D72DRs1N.js +0 -3
- package/dist/pie-UPGHQEXC-C8RDLrEi.js +0 -3
- package/dist/pieDiagram-SKSYHLDU-BREEn_Sk.js +0 -167
- package/dist/pieDiagram-SKSYHLDU-BREEn_Sk.js.map +0 -1
- package/dist/quadrantDiagram-337W2JSQ-CcKc-h2o.js.map +0 -1
- package/dist/radar-KQ55EAFF-DhmvjiyN.js +0 -3
- package/dist/requirementDiagram-Z7DCOOCP-aPcaPduF.js.map +0 -1
- package/dist/sequenceDiagram-2WXFIKYE-D7Vh1Zld.js +0 -4112
- package/dist/sequenceDiagram-2WXFIKYE-D7Vh1Zld.js.map +0 -1
- package/dist/stateDiagram-RAJIS63D-DdiY5cf3.js +0 -220
- package/dist/stateDiagram-RAJIS63D-DdiY5cf3.js.map +0 -1
- package/dist/stateDiagram-v2-FVOUBMTO-CAWy0Pkh.js +0 -29
- package/dist/timeline-definition-YZTLITO2-CjxxCuOg.js.map +0 -1
- package/dist/treemap-KZPCXAKY-BvLvHb2t.js +0 -3
|
@@ -1,628 +0,0 @@
|
|
|
1
|
-
import { w as e } from "./src-D1EMXotX.js";
|
|
2
|
-
import { h as t, p as n, r } from "./chunk-GEFDOKGD-DGJJEGSm.js";
|
|
3
|
-
import { n as i, r as a } from "./src-BhNgmpel.js";
|
|
4
|
-
import { B as o, C as s, V as c, W as l, _ as u, a as d, d as f, q as ee, s as p, v as te, y as m } from "./chunk-7R4GIKGN-DJmroLCH.js";
|
|
5
|
-
import { t as h } from "./chunk-4BX2VUAB-BS9gpN-y.js";
|
|
6
|
-
import { t as g } from "./mermaid-parser.core-Dz5qv4CI.js";
|
|
7
|
-
import { t as ne } from "./chunk-QZHKN3VN-kDNdTVLo.js";
|
|
8
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-K3NZZRJ6.mjs
|
|
9
|
-
var _ = {
|
|
10
|
-
NORMAL: 0,
|
|
11
|
-
REVERSE: 1,
|
|
12
|
-
HIGHLIGHT: 2,
|
|
13
|
-
MERGE: 3,
|
|
14
|
-
CHERRY_PICK: 4
|
|
15
|
-
}, re = f.gitGraph, v = /* @__PURE__ */ i(() => r({
|
|
16
|
-
...re,
|
|
17
|
-
...m().gitGraph
|
|
18
|
-
}), "getConfig"), y = new ne(() => {
|
|
19
|
-
let e = v(), t = e.mainBranchName, n = e.mainBranchOrder;
|
|
20
|
-
return {
|
|
21
|
-
mainBranchName: t,
|
|
22
|
-
commits: /* @__PURE__ */ new Map(),
|
|
23
|
-
head: null,
|
|
24
|
-
branchConfig: /* @__PURE__ */ new Map([[t, {
|
|
25
|
-
name: t,
|
|
26
|
-
order: n
|
|
27
|
-
}]]),
|
|
28
|
-
branches: /* @__PURE__ */ new Map([[t, null]]),
|
|
29
|
-
currBranch: t,
|
|
30
|
-
direction: "LR",
|
|
31
|
-
seq: 0,
|
|
32
|
-
options: {}
|
|
33
|
-
};
|
|
34
|
-
});
|
|
35
|
-
function b() {
|
|
36
|
-
return n({ length: 7 });
|
|
37
|
-
}
|
|
38
|
-
i(b, "getID");
|
|
39
|
-
function x(e, t) {
|
|
40
|
-
let n = /* @__PURE__ */ Object.create(null);
|
|
41
|
-
return e.reduce((e, r) => {
|
|
42
|
-
let i = t(r);
|
|
43
|
-
return n[i] || (n[i] = !0, e.push(r)), e;
|
|
44
|
-
}, []);
|
|
45
|
-
}
|
|
46
|
-
i(x, "uniqBy");
|
|
47
|
-
var S = /* @__PURE__ */ i(function(e) {
|
|
48
|
-
y.records.direction = e;
|
|
49
|
-
}, "setDirection"), C = /* @__PURE__ */ i(function(e) {
|
|
50
|
-
a.debug("options str", e), e = e?.trim(), e ||= "{}";
|
|
51
|
-
try {
|
|
52
|
-
y.records.options = JSON.parse(e);
|
|
53
|
-
} catch (e) {
|
|
54
|
-
a.error("error while parsing gitGraph options", e.message);
|
|
55
|
-
}
|
|
56
|
-
}, "setOptions"), ie = /* @__PURE__ */ i(function() {
|
|
57
|
-
return y.records.options;
|
|
58
|
-
}, "getOptions"), ae = /* @__PURE__ */ i(function(e) {
|
|
59
|
-
let t = e.msg, n = e.id, r = e.type, i = e.tags;
|
|
60
|
-
a.info("commit", t, n, r, i), a.debug("Entering commit:", t, n, r, i);
|
|
61
|
-
let o = v();
|
|
62
|
-
n = p.sanitizeText(n, o), t = p.sanitizeText(t, o), i = i?.map((e) => p.sanitizeText(e, o));
|
|
63
|
-
let s = {
|
|
64
|
-
id: n || y.records.seq + "-" + b(),
|
|
65
|
-
message: t,
|
|
66
|
-
seq: y.records.seq++,
|
|
67
|
-
type: r ?? _.NORMAL,
|
|
68
|
-
tags: i ?? [],
|
|
69
|
-
parents: y.records.head == null ? [] : [y.records.head.id],
|
|
70
|
-
branch: y.records.currBranch
|
|
71
|
-
};
|
|
72
|
-
y.records.head = s, a.info("main branch", o.mainBranchName), y.records.commits.has(s.id) && a.warn(`Commit ID ${s.id} already exists`), y.records.commits.set(s.id, s), y.records.branches.set(y.records.currBranch, s.id), a.debug("in pushCommit " + s.id);
|
|
73
|
-
}, "commit"), oe = /* @__PURE__ */ i(function(e) {
|
|
74
|
-
let t = e.name, n = e.order;
|
|
75
|
-
if (t = p.sanitizeText(t, v()), y.records.branches.has(t)) throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);
|
|
76
|
-
y.records.branches.set(t, y.records.head == null ? null : y.records.head.id), y.records.branchConfig.set(t, {
|
|
77
|
-
name: t,
|
|
78
|
-
order: n
|
|
79
|
-
}), w(t), a.debug("in createBranch");
|
|
80
|
-
}, "branch"), se = /* @__PURE__ */ i((e) => {
|
|
81
|
-
let t = e.branch, n = e.id, r = e.type, i = e.tags, o = v();
|
|
82
|
-
t = p.sanitizeText(t, o), n &&= p.sanitizeText(n, o);
|
|
83
|
-
let s = y.records.branches.get(y.records.currBranch), c = y.records.branches.get(t), l = s ? y.records.commits.get(s) : void 0, u = c ? y.records.commits.get(c) : void 0;
|
|
84
|
-
if (l && u && l.branch === t) throw Error(`Cannot merge branch '${t}' into itself.`);
|
|
85
|
-
if (y.records.currBranch === t) {
|
|
86
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
|
|
87
|
-
throw e.hash = {
|
|
88
|
-
text: `merge ${t}`,
|
|
89
|
-
token: `merge ${t}`,
|
|
90
|
-
expected: ["branch abc"]
|
|
91
|
-
}, e;
|
|
92
|
-
}
|
|
93
|
-
if (l === void 0 || !l) {
|
|
94
|
-
let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${y.records.currBranch})has no commits`);
|
|
95
|
-
throw e.hash = {
|
|
96
|
-
text: `merge ${t}`,
|
|
97
|
-
token: `merge ${t}`,
|
|
98
|
-
expected: ["commit"]
|
|
99
|
-
}, e;
|
|
100
|
-
}
|
|
101
|
-
if (!y.records.branches.has(t)) {
|
|
102
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") does not exist");
|
|
103
|
-
throw e.hash = {
|
|
104
|
-
text: `merge ${t}`,
|
|
105
|
-
token: `merge ${t}`,
|
|
106
|
-
expected: [`branch ${t}`]
|
|
107
|
-
}, e;
|
|
108
|
-
}
|
|
109
|
-
if (u === void 0 || !u) {
|
|
110
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") has no commits");
|
|
111
|
-
throw e.hash = {
|
|
112
|
-
text: `merge ${t}`,
|
|
113
|
-
token: `merge ${t}`,
|
|
114
|
-
expected: ["\"commit\""]
|
|
115
|
-
}, e;
|
|
116
|
-
}
|
|
117
|
-
if (l === u) {
|
|
118
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
|
|
119
|
-
throw e.hash = {
|
|
120
|
-
text: `merge ${t}`,
|
|
121
|
-
token: `merge ${t}`,
|
|
122
|
-
expected: ["branch abc"]
|
|
123
|
-
}, e;
|
|
124
|
-
}
|
|
125
|
-
if (n && y.records.commits.has(n)) {
|
|
126
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + n + " already exists, use different custom id");
|
|
127
|
-
throw e.hash = {
|
|
128
|
-
text: `merge ${t} ${n} ${r} ${i?.join(" ")}`,
|
|
129
|
-
token: `merge ${t} ${n} ${r} ${i?.join(" ")}`,
|
|
130
|
-
expected: [`merge ${t} ${n}_UNIQUE ${r} ${i?.join(" ")}`]
|
|
131
|
-
}, e;
|
|
132
|
-
}
|
|
133
|
-
let d = c || "", f = {
|
|
134
|
-
id: n || `${y.records.seq}-${b()}`,
|
|
135
|
-
message: `merged branch ${t} into ${y.records.currBranch}`,
|
|
136
|
-
seq: y.records.seq++,
|
|
137
|
-
parents: y.records.head == null ? [] : [y.records.head.id, d],
|
|
138
|
-
branch: y.records.currBranch,
|
|
139
|
-
type: _.MERGE,
|
|
140
|
-
customType: r,
|
|
141
|
-
customId: !!n,
|
|
142
|
-
tags: i ?? []
|
|
143
|
-
};
|
|
144
|
-
y.records.head = f, y.records.commits.set(f.id, f), y.records.branches.set(y.records.currBranch, f.id), a.debug(y.records.branches), a.debug("in mergeBranch");
|
|
145
|
-
}, "merge"), ce = /* @__PURE__ */ i(function(e) {
|
|
146
|
-
let t = e.id, n = e.targetId, r = e.tags, i = e.parent;
|
|
147
|
-
a.debug("Entering cherryPick:", t, n, r);
|
|
148
|
-
let o = v();
|
|
149
|
-
if (t = p.sanitizeText(t, o), n = p.sanitizeText(n, o), r = r?.map((e) => p.sanitizeText(e, o)), i = p.sanitizeText(i, o), !t || !y.records.commits.has(t)) {
|
|
150
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
151
|
-
throw e.hash = {
|
|
152
|
-
text: `cherryPick ${t} ${n}`,
|
|
153
|
-
token: `cherryPick ${t} ${n}`,
|
|
154
|
-
expected: ["cherry-pick abc"]
|
|
155
|
-
}, e;
|
|
156
|
-
}
|
|
157
|
-
let s = y.records.commits.get(t);
|
|
158
|
-
if (s === void 0 || !s) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
159
|
-
if (i && !(Array.isArray(s.parents) && s.parents.includes(i))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
|
|
160
|
-
let c = s.branch;
|
|
161
|
-
if (s.type === _.MERGE && !i) throw /* @__PURE__ */ Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
|
|
162
|
-
if (!n || !y.records.commits.has(n)) {
|
|
163
|
-
if (c === y.records.currBranch) {
|
|
164
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
|
|
165
|
-
throw e.hash = {
|
|
166
|
-
text: `cherryPick ${t} ${n}`,
|
|
167
|
-
token: `cherryPick ${t} ${n}`,
|
|
168
|
-
expected: ["cherry-pick abc"]
|
|
169
|
-
}, e;
|
|
170
|
-
}
|
|
171
|
-
let e = y.records.branches.get(y.records.currBranch);
|
|
172
|
-
if (e === void 0 || !e) {
|
|
173
|
-
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${y.records.currBranch})has no commits`);
|
|
174
|
-
throw e.hash = {
|
|
175
|
-
text: `cherryPick ${t} ${n}`,
|
|
176
|
-
token: `cherryPick ${t} ${n}`,
|
|
177
|
-
expected: ["cherry-pick abc"]
|
|
178
|
-
}, e;
|
|
179
|
-
}
|
|
180
|
-
let o = y.records.commits.get(e);
|
|
181
|
-
if (o === void 0 || !o) {
|
|
182
|
-
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${y.records.currBranch})has no commits`);
|
|
183
|
-
throw e.hash = {
|
|
184
|
-
text: `cherryPick ${t} ${n}`,
|
|
185
|
-
token: `cherryPick ${t} ${n}`,
|
|
186
|
-
expected: ["cherry-pick abc"]
|
|
187
|
-
}, e;
|
|
188
|
-
}
|
|
189
|
-
let l = {
|
|
190
|
-
id: y.records.seq + "-" + b(),
|
|
191
|
-
message: `cherry-picked ${s?.message} into ${y.records.currBranch}`,
|
|
192
|
-
seq: y.records.seq++,
|
|
193
|
-
parents: y.records.head == null ? [] : [y.records.head.id, s.id],
|
|
194
|
-
branch: y.records.currBranch,
|
|
195
|
-
type: _.CHERRY_PICK,
|
|
196
|
-
tags: r ? r.filter(Boolean) : [`cherry-pick:${s.id}${s.type === _.MERGE ? `|parent:${i}` : ""}`]
|
|
197
|
-
};
|
|
198
|
-
y.records.head = l, y.records.commits.set(l.id, l), y.records.branches.set(y.records.currBranch, l.id), a.debug(y.records.branches), a.debug("in cherryPick");
|
|
199
|
-
}
|
|
200
|
-
}, "cherryPick"), w = /* @__PURE__ */ i(function(e) {
|
|
201
|
-
if (e = p.sanitizeText(e, v()), y.records.branches.has(e)) {
|
|
202
|
-
y.records.currBranch = e;
|
|
203
|
-
let t = y.records.branches.get(y.records.currBranch);
|
|
204
|
-
t === void 0 || !t ? y.records.head = null : y.records.head = y.records.commits.get(t) ?? null;
|
|
205
|
-
} else {
|
|
206
|
-
let t = /* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);
|
|
207
|
-
throw t.hash = {
|
|
208
|
-
text: `checkout ${e}`,
|
|
209
|
-
token: `checkout ${e}`,
|
|
210
|
-
expected: [`branch ${e}`]
|
|
211
|
-
}, t;
|
|
212
|
-
}
|
|
213
|
-
}, "checkout");
|
|
214
|
-
function T(e, t, n) {
|
|
215
|
-
let r = e.indexOf(t);
|
|
216
|
-
r === -1 ? e.push(n) : e.splice(r, 1, n);
|
|
217
|
-
}
|
|
218
|
-
i(T, "upsert");
|
|
219
|
-
function E(e) {
|
|
220
|
-
let t = e.reduce((e, t) => e.seq > t.seq ? e : t, e[0]), n = "";
|
|
221
|
-
e.forEach(function(e) {
|
|
222
|
-
e === t ? n += " *" : n += " |";
|
|
223
|
-
});
|
|
224
|
-
let r = [
|
|
225
|
-
n,
|
|
226
|
-
t.id,
|
|
227
|
-
t.seq
|
|
228
|
-
];
|
|
229
|
-
for (let e in y.records.branches) y.records.branches.get(e) === t.id && r.push(e);
|
|
230
|
-
if (a.debug(r.join(" ")), t.parents && t.parents.length == 2 && t.parents[0] && t.parents[1]) {
|
|
231
|
-
let n = y.records.commits.get(t.parents[0]);
|
|
232
|
-
T(e, t, n), t.parents[1] && e.push(y.records.commits.get(t.parents[1]));
|
|
233
|
-
} else if (t.parents.length == 0) return;
|
|
234
|
-
else if (t.parents[0]) {
|
|
235
|
-
let n = y.records.commits.get(t.parents[0]);
|
|
236
|
-
T(e, t, n);
|
|
237
|
-
}
|
|
238
|
-
e = x(e, (e) => e.id), E(e);
|
|
239
|
-
}
|
|
240
|
-
i(E, "prettyPrintCommitHistory");
|
|
241
|
-
var le = /* @__PURE__ */ i(function() {
|
|
242
|
-
a.debug(y.records.commits);
|
|
243
|
-
let e = D()[0];
|
|
244
|
-
E([e]);
|
|
245
|
-
}, "prettyPrint"), ue = /* @__PURE__ */ i(function() {
|
|
246
|
-
y.reset(), d();
|
|
247
|
-
}, "clear"), de = /* @__PURE__ */ i(function() {
|
|
248
|
-
return [...y.records.branchConfig.values()].map((e, t) => e.order !== null && e.order !== void 0 ? e : {
|
|
249
|
-
...e,
|
|
250
|
-
order: parseFloat(`0.${t}`)
|
|
251
|
-
}).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map(({ name: e }) => ({ name: e }));
|
|
252
|
-
}, "getBranchesAsObjArray"), fe = /* @__PURE__ */ i(function() {
|
|
253
|
-
return y.records.branches;
|
|
254
|
-
}, "getBranches"), pe = /* @__PURE__ */ i(function() {
|
|
255
|
-
return y.records.commits;
|
|
256
|
-
}, "getCommits"), D = /* @__PURE__ */ i(function() {
|
|
257
|
-
let e = [...y.records.commits.values()];
|
|
258
|
-
return e.forEach(function(e) {
|
|
259
|
-
a.debug(e.id);
|
|
260
|
-
}), e.sort((e, t) => e.seq - t.seq), e;
|
|
261
|
-
}, "getCommitsArray"), O = {
|
|
262
|
-
commitType: _,
|
|
263
|
-
getConfig: v,
|
|
264
|
-
setDirection: S,
|
|
265
|
-
setOptions: C,
|
|
266
|
-
getOptions: ie,
|
|
267
|
-
commit: ae,
|
|
268
|
-
branch: oe,
|
|
269
|
-
merge: se,
|
|
270
|
-
cherryPick: ce,
|
|
271
|
-
checkout: w,
|
|
272
|
-
prettyPrint: le,
|
|
273
|
-
clear: ue,
|
|
274
|
-
getBranchesAsObjArray: de,
|
|
275
|
-
getBranches: fe,
|
|
276
|
-
getCommits: pe,
|
|
277
|
-
getCommitsArray: D,
|
|
278
|
-
getCurrentBranch: /* @__PURE__ */ i(function() {
|
|
279
|
-
return y.records.currBranch;
|
|
280
|
-
}, "getCurrentBranch"),
|
|
281
|
-
getDirection: /* @__PURE__ */ i(function() {
|
|
282
|
-
return y.records.direction;
|
|
283
|
-
}, "getDirection"),
|
|
284
|
-
getHead: /* @__PURE__ */ i(function() {
|
|
285
|
-
return y.records.head;
|
|
286
|
-
}, "getHead"),
|
|
287
|
-
setAccTitle: c,
|
|
288
|
-
getAccTitle: te,
|
|
289
|
-
getAccDescription: u,
|
|
290
|
-
setAccDescription: o,
|
|
291
|
-
setDiagramTitle: l,
|
|
292
|
-
getDiagramTitle: s
|
|
293
|
-
}, k = /* @__PURE__ */ i((e, t) => {
|
|
294
|
-
h(e, t), e.dir && t.setDirection(e.dir);
|
|
295
|
-
for (let n of e.statements) A(n, t);
|
|
296
|
-
}, "populate"), A = /* @__PURE__ */ i((e, t) => {
|
|
297
|
-
let n = {
|
|
298
|
-
Commit: /* @__PURE__ */ i((e) => t.commit(j(e)), "Commit"),
|
|
299
|
-
Branch: /* @__PURE__ */ i((e) => t.branch(M(e)), "Branch"),
|
|
300
|
-
Merge: /* @__PURE__ */ i((e) => t.merge(N(e)), "Merge"),
|
|
301
|
-
Checkout: /* @__PURE__ */ i((e) => t.checkout(P(e)), "Checkout"),
|
|
302
|
-
CherryPicking: /* @__PURE__ */ i((e) => t.cherryPick(F(e)), "CherryPicking")
|
|
303
|
-
}[e.$type];
|
|
304
|
-
n ? n(e) : a.error(`Unknown statement type: ${e.$type}`);
|
|
305
|
-
}, "parseStatement"), j = /* @__PURE__ */ i((e) => ({
|
|
306
|
-
id: e.id,
|
|
307
|
-
msg: e.message ?? "",
|
|
308
|
-
type: e.type === void 0 ? _.NORMAL : _[e.type],
|
|
309
|
-
tags: e.tags ?? void 0
|
|
310
|
-
}), "parseCommit"), M = /* @__PURE__ */ i((e) => ({
|
|
311
|
-
name: e.name,
|
|
312
|
-
order: e.order ?? 0
|
|
313
|
-
}), "parseBranch"), N = /* @__PURE__ */ i((e) => ({
|
|
314
|
-
branch: e.branch,
|
|
315
|
-
id: e.id ?? "",
|
|
316
|
-
type: e.type === void 0 ? void 0 : _[e.type],
|
|
317
|
-
tags: e.tags ?? void 0
|
|
318
|
-
}), "parseMerge"), P = /* @__PURE__ */ i((e) => e.branch, "parseCheckout"), F = /* @__PURE__ */ i((e) => ({
|
|
319
|
-
id: e.id,
|
|
320
|
-
targetId: "",
|
|
321
|
-
tags: e.tags?.length === 0 ? void 0 : e.tags,
|
|
322
|
-
parent: e.parent
|
|
323
|
-
}), "parseCherryPicking"), I = { parse: /* @__PURE__ */ i(async (e) => {
|
|
324
|
-
let t = await g("gitGraph", e);
|
|
325
|
-
a.debug(t), k(t, O);
|
|
326
|
-
}, "parse") }, L = 10, R = 40, z = 4, B = 2, V = 8, H = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), W = 30, G = /* @__PURE__ */ new Map(), K = [], q = 0, J = "LR", me = /* @__PURE__ */ i(() => {
|
|
327
|
-
H.clear(), U.clear(), G.clear(), q = 0, K = [], J = "LR";
|
|
328
|
-
}, "clear"), Y = /* @__PURE__ */ i((e) => {
|
|
329
|
-
let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
330
|
-
return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
|
|
331
|
-
let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
332
|
-
n.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), n.setAttribute("dy", "1em"), n.setAttribute("x", "0"), n.setAttribute("class", "row"), n.textContent = e.trim(), t.appendChild(n);
|
|
333
|
-
}), t;
|
|
334
|
-
}, "drawText"), X = /* @__PURE__ */ i((e) => {
|
|
335
|
-
let t, n, r;
|
|
336
|
-
return J === "BT" ? (n = /* @__PURE__ */ i((e, t) => e <= t, "comparisonFunc"), r = Infinity) : (n = /* @__PURE__ */ i((e, t) => e >= t, "comparisonFunc"), r = 0), e.forEach((e) => {
|
|
337
|
-
let i = J === "TB" || J == "BT" ? U.get(e)?.y : U.get(e)?.x;
|
|
338
|
-
i !== void 0 && n(i, r) && (t = e, r = i);
|
|
339
|
-
}), t;
|
|
340
|
-
}, "findClosestParent"), he = /* @__PURE__ */ i((e) => {
|
|
341
|
-
let t = "", n = Infinity;
|
|
342
|
-
return e.forEach((e) => {
|
|
343
|
-
let r = U.get(e).y;
|
|
344
|
-
r <= n && (t = e, n = r);
|
|
345
|
-
}), t || void 0;
|
|
346
|
-
}, "findClosestParentBT"), ge = /* @__PURE__ */ i((e, t, n) => {
|
|
347
|
-
let r = n, i = n, a = [];
|
|
348
|
-
e.forEach((e) => {
|
|
349
|
-
let n = t.get(e);
|
|
350
|
-
if (!n) throw Error(`Commit not found for key ${e}`);
|
|
351
|
-
n.parents.length ? (r = ve(n), i = Math.max(r, i)) : a.push(n), ye(n, r);
|
|
352
|
-
}), r = i, a.forEach((e) => {
|
|
353
|
-
be(e, r, n);
|
|
354
|
-
}), e.forEach((e) => {
|
|
355
|
-
let n = t.get(e);
|
|
356
|
-
if (n?.parents.length) {
|
|
357
|
-
let e = he(n.parents);
|
|
358
|
-
r = U.get(e).y - R, r <= i && (i = r);
|
|
359
|
-
let t = H.get(n.branch).pos, a = r - L;
|
|
360
|
-
U.set(n.id, {
|
|
361
|
-
x: t,
|
|
362
|
-
y: a
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
|
-
}, "setParallelBTPos"), _e = /* @__PURE__ */ i((e) => {
|
|
367
|
-
let t = X(e.parents.filter((e) => e !== null));
|
|
368
|
-
if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
|
|
369
|
-
let n = U.get(t)?.y;
|
|
370
|
-
if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
|
|
371
|
-
return n;
|
|
372
|
-
}, "findClosestParentPos"), ve = /* @__PURE__ */ i((e) => _e(e) + R, "calculateCommitPosition"), ye = /* @__PURE__ */ i((e, t) => {
|
|
373
|
-
let n = H.get(e.branch);
|
|
374
|
-
if (!n) throw Error(`Branch not found for commit ${e.id}`);
|
|
375
|
-
let r = n.pos, i = t + L;
|
|
376
|
-
return U.set(e.id, {
|
|
377
|
-
x: r,
|
|
378
|
-
y: i
|
|
379
|
-
}), {
|
|
380
|
-
x: r,
|
|
381
|
-
y: i
|
|
382
|
-
};
|
|
383
|
-
}, "setCommitPosition"), be = /* @__PURE__ */ i((e, t, n) => {
|
|
384
|
-
let r = H.get(e.branch);
|
|
385
|
-
if (!r) throw Error(`Branch not found for commit ${e.id}`);
|
|
386
|
-
let i = t + n, a = r.pos;
|
|
387
|
-
U.set(e.id, {
|
|
388
|
-
x: a,
|
|
389
|
-
y: i
|
|
390
|
-
});
|
|
391
|
-
}, "setRootPosition"), xe = /* @__PURE__ */ i((e, t, n, r, i, a) => {
|
|
392
|
-
if (a === _.HIGHLIGHT) e.append("rect").attr("x", n.x - 10).attr("y", n.y - 10).attr("width", 20).attr("height", 20).attr("class", `commit ${t.id} commit-highlight${i % V} ${r}-outer`), e.append("rect").attr("x", n.x - 6).attr("y", n.y - 6).attr("width", 12).attr("height", 12).attr("class", `commit ${t.id} commit${i % V} ${r}-inner`);
|
|
393
|
-
else if (a === _.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x + 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x - 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", "#fff").attr("class", `commit ${t.id} ${r}`);
|
|
394
|
-
else {
|
|
395
|
-
let o = e.append("circle");
|
|
396
|
-
if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r", t.type === _.MERGE ? 9 : 10), o.attr("class", `commit ${t.id} commit${i % V}`), a === _.MERGE) {
|
|
397
|
-
let a = e.append("circle");
|
|
398
|
-
a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r", 6), a.attr("class", `commit ${r} ${t.id} commit${i % V}`);
|
|
399
|
-
}
|
|
400
|
-
a === _.REVERSE && e.append("path").attr("d", `M ${n.x - 5},${n.y - 5}L${n.x + 5},${n.y + 5}M${n.x - 5},${n.y + 5}L${n.x + 5},${n.y - 5}`).attr("class", `commit ${r} ${t.id} commit${i % V}`);
|
|
401
|
-
}
|
|
402
|
-
}, "drawCommitBullet"), Se = /* @__PURE__ */ i((e, t, n, r, i) => {
|
|
403
|
-
if (t.type !== _.CHERRY_PICK && (t.customId && t.type === _.MERGE || t.type !== _.MERGE) && i.showCommitLabel) {
|
|
404
|
-
let a = e.append("g"), o = a.insert("rect").attr("class", "commit-label-bkg"), s = a.append("text").attr("x", r).attr("y", n.y + 25).attr("class", "commit-label").text(t.id), c = s.node()?.getBBox();
|
|
405
|
-
if (c && (o.attr("x", n.posWithOffset - c.width / 2 - B).attr("y", n.y + 13.5).attr("width", c.width + 2 * B).attr("height", c.height + 2 * B), J === "TB" || J === "BT" ? (o.attr("x", n.x - (c.width + 4 * z + 5)).attr("y", n.y - 12), s.attr("x", n.x - (c.width + 4 * z)).attr("y", n.y + c.height - 12)) : s.attr("x", n.posWithOffset - c.width / 2), i.rotateCommitLabel)) if (J === "TB" || J === "BT") s.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")"), o.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")");
|
|
406
|
-
else {
|
|
407
|
-
let e = -7.5 - (c.width + 10) / 25 * 9.5, t = 10 + c.width / 25 * 8.5;
|
|
408
|
-
a.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}, "drawCommitLabel"), Z = /* @__PURE__ */ i((e, t, n, r) => {
|
|
412
|
-
if (t.tags.length > 0) {
|
|
413
|
-
let i = 0, a = 0, o = 0, s = [];
|
|
414
|
-
for (let r of t.tags.reverse()) {
|
|
415
|
-
let t = e.insert("polygon"), c = e.append("circle"), l = e.append("text").attr("y", n.y - 16 - i).attr("class", "tag-label").text(r), u = l.node()?.getBBox();
|
|
416
|
-
if (!u) throw Error("Tag bbox not found");
|
|
417
|
-
a = Math.max(a, u.width), o = Math.max(o, u.height), l.attr("x", n.posWithOffset - u.width / 2), s.push({
|
|
418
|
-
tag: l,
|
|
419
|
-
hole: c,
|
|
420
|
-
rect: t,
|
|
421
|
-
yOffset: i
|
|
422
|
-
}), i += 20;
|
|
423
|
-
}
|
|
424
|
-
for (let { tag: e, hole: t, rect: i, yOffset: c } of s) {
|
|
425
|
-
let s = o / 2, l = n.y - 19.2 - c;
|
|
426
|
-
if (i.attr("class", "tag-label-bkg").attr("points", `
|
|
427
|
-
${r - a / 2 - z / 2},${l + B}
|
|
428
|
-
${r - a / 2 - z / 2},${l - B}
|
|
429
|
-
${n.posWithOffset - a / 2 - z},${l - s - B}
|
|
430
|
-
${n.posWithOffset + a / 2 + z},${l - s - B}
|
|
431
|
-
${n.posWithOffset + a / 2 + z},${l + s + B}
|
|
432
|
-
${n.posWithOffset - a / 2 - z},${l + s + B}`), t.attr("cy", l).attr("cx", r - a / 2 + z / 2).attr("r", 1.5).attr("class", "tag-hole"), J === "TB" || J === "BT") {
|
|
433
|
-
let o = r + c;
|
|
434
|
-
i.attr("class", "tag-label-bkg").attr("points", `
|
|
435
|
-
${n.x},${o + 2}
|
|
436
|
-
${n.x},${o - 2}
|
|
437
|
-
${n.x + L},${o - s - 2}
|
|
438
|
-
${n.x + L + a + 4},${o - s - 2}
|
|
439
|
-
${n.x + L + a + 4},${o + s + 2}
|
|
440
|
-
${n.x + L},${o + s + 2}`).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), t.attr("cx", n.x + z / 2).attr("cy", o).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), e.attr("x", n.x + 5).attr("y", o + 3).attr("transform", "translate(14,14) rotate(45, " + n.x + "," + r + ")");
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}, "drawCommitTags"), Ce = /* @__PURE__ */ i((e) => {
|
|
445
|
-
switch (e.customType ?? e.type) {
|
|
446
|
-
case _.NORMAL: return "commit-normal";
|
|
447
|
-
case _.REVERSE: return "commit-reverse";
|
|
448
|
-
case _.HIGHLIGHT: return "commit-highlight";
|
|
449
|
-
case _.MERGE: return "commit-merge";
|
|
450
|
-
case _.CHERRY_PICK: return "commit-cherry-pick";
|
|
451
|
-
default: return "commit-normal";
|
|
452
|
-
}
|
|
453
|
-
}, "getCommitClassType"), we = /* @__PURE__ */ i((e, t, n, r) => {
|
|
454
|
-
let i = {
|
|
455
|
-
x: 0,
|
|
456
|
-
y: 0
|
|
457
|
-
};
|
|
458
|
-
if (e.parents.length > 0) {
|
|
459
|
-
let n = X(e.parents);
|
|
460
|
-
if (n) {
|
|
461
|
-
let a = r.get(n) ?? i;
|
|
462
|
-
return t === "TB" ? a.y + R : t === "BT" ? (r.get(e.id) ?? i).y - R : a.x + R;
|
|
463
|
-
}
|
|
464
|
-
} else if (t === "TB") return W;
|
|
465
|
-
else if (t === "BT") return (r.get(e.id) ?? i).y - R;
|
|
466
|
-
else return 0;
|
|
467
|
-
return 0;
|
|
468
|
-
}, "calculatePosition"), Te = /* @__PURE__ */ i((e, t, n) => {
|
|
469
|
-
let r = J === "BT" && n ? t : t + L, i = J === "TB" || J === "BT" ? r : H.get(e.branch)?.pos, a = J === "TB" || J === "BT" ? H.get(e.branch)?.pos : r;
|
|
470
|
-
if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
|
|
471
|
-
return {
|
|
472
|
-
x: a,
|
|
473
|
-
y: i,
|
|
474
|
-
posWithOffset: r
|
|
475
|
-
};
|
|
476
|
-
}, "getCommitPosition"), Q = /* @__PURE__ */ i((e, t, n, r) => {
|
|
477
|
-
let a = e.append("g").attr("class", "commit-bullets"), o = e.append("g").attr("class", "commit-labels"), s = J === "TB" || J === "BT" ? W : 0, c = [...t.keys()], l = r.parallelCommits ?? !1, u = /* @__PURE__ */ i((e, n) => {
|
|
478
|
-
let r = t.get(e)?.seq, i = t.get(n)?.seq;
|
|
479
|
-
return r !== void 0 && i !== void 0 ? r - i : 0;
|
|
480
|
-
}, "sortKeys"), d = c.sort(u);
|
|
481
|
-
J === "BT" && (l && ge(d, t, s), d = d.reverse()), d.forEach((e) => {
|
|
482
|
-
let i = t.get(e);
|
|
483
|
-
if (!i) throw Error(`Commit not found for key ${e}`);
|
|
484
|
-
l && (s = we(i, J, s, U));
|
|
485
|
-
let c = Te(i, s, l);
|
|
486
|
-
if (n) {
|
|
487
|
-
let e = Ce(i), t = i.customType ?? i.type;
|
|
488
|
-
xe(a, i, c, e, H.get(i.branch)?.index ?? 0, t), Se(o, i, c, s, r), Z(o, i, c, s);
|
|
489
|
-
}
|
|
490
|
-
J === "TB" || J === "BT" ? U.set(i.id, {
|
|
491
|
-
x: c.x,
|
|
492
|
-
y: c.posWithOffset
|
|
493
|
-
}) : U.set(i.id, {
|
|
494
|
-
x: c.posWithOffset,
|
|
495
|
-
y: c.y
|
|
496
|
-
}), s = J === "BT" && l ? s + R : s + R + L, s > q && (q = s);
|
|
497
|
-
});
|
|
498
|
-
}, "drawCommits"), Ee = /* @__PURE__ */ i((e, t, n, r, a) => {
|
|
499
|
-
let o = (J === "TB" || J === "BT" ? n.x < r.x : n.y < r.y) ? t.branch : e.branch, s = /* @__PURE__ */ i((e) => e.branch === o, "isOnBranchToGetCurve"), c = /* @__PURE__ */ i((n) => n.seq > e.seq && n.seq < t.seq, "isBetweenCommits");
|
|
500
|
-
return [...a.values()].some((e) => c(e) && s(e));
|
|
501
|
-
}, "shouldRerouteArrow"), $ = /* @__PURE__ */ i((e, t, n = 0) => {
|
|
502
|
-
let r = e + Math.abs(e - t) / 2;
|
|
503
|
-
return n > 5 ? r : K.every((e) => Math.abs(e - r) >= 10) ? (K.push(r), r) : $(e, t - Math.abs(e - t) / 5, n + 1);
|
|
504
|
-
}, "findLane"), De = /* @__PURE__ */ i((e, t, n, r) => {
|
|
505
|
-
let i = U.get(t.id), a = U.get(n.id);
|
|
506
|
-
if (i === void 0 || a === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
|
|
507
|
-
let o = Ee(t, n, i, a, r), s = "", c = "", l = 0, u = 0, d = H.get(n.branch)?.index;
|
|
508
|
-
n.type === _.MERGE && t.id !== n.parents[0] && (d = H.get(t.branch)?.index);
|
|
509
|
-
let f;
|
|
510
|
-
if (o) {
|
|
511
|
-
s = "A 10 10, 0, 0, 0,", c = "A 10 10, 0, 0, 1,", l = 10, u = 10;
|
|
512
|
-
let e = i.y < a.y ? $(i.y, a.y) : $(a.y, i.y), n = i.x < a.x ? $(i.x, a.x) : $(a.x, i.x);
|
|
513
|
-
J === "TB" ? i.x < a.x ? f = `M ${i.x} ${i.y} L ${n - l} ${i.y} ${c} ${n} ${i.y + u} L ${n} ${a.y - l} ${s} ${n + u} ${a.y} L ${a.x} ${a.y}` : (d = H.get(t.branch)?.index, f = `M ${i.x} ${i.y} L ${n + l} ${i.y} ${s} ${n} ${i.y + u} L ${n} ${a.y - l} ${c} ${n - u} ${a.y} L ${a.x} ${a.y}`) : J === "BT" ? i.x < a.x ? f = `M ${i.x} ${i.y} L ${n - l} ${i.y} ${s} ${n} ${i.y - u} L ${n} ${a.y + l} ${c} ${n + u} ${a.y} L ${a.x} ${a.y}` : (d = H.get(t.branch)?.index, f = `M ${i.x} ${i.y} L ${n + l} ${i.y} ${c} ${n} ${i.y - u} L ${n} ${a.y + l} ${s} ${n - u} ${a.y} L ${a.x} ${a.y}`) : i.y < a.y ? f = `M ${i.x} ${i.y} L ${i.x} ${e - l} ${s} ${i.x + u} ${e} L ${a.x - l} ${e} ${c} ${a.x} ${e + u} L ${a.x} ${a.y}` : (d = H.get(t.branch)?.index, f = `M ${i.x} ${i.y} L ${i.x} ${e + l} ${c} ${i.x + u} ${e} L ${a.x - l} ${e} ${s} ${a.x} ${e - u} L ${a.x} ${a.y}`);
|
|
514
|
-
} else s = "A 20 20, 0, 0, 0,", c = "A 20 20, 0, 0, 1,", l = 20, u = 20, J === "TB" ? (i.x < a.x && (f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y - l} ${s} ${i.x + u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${c} ${a.x} ${i.y + u} L ${a.x} ${a.y}`), i.x > a.x && (s = "A 20 20, 0, 0, 0,", c = "A 20 20, 0, 0, 1,", l = 20, u = 20, f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y - l} ${c} ${i.x - u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x + l} ${i.y} ${s} ${a.x} ${i.y + u} L ${a.x} ${a.y}`), i.x === a.x && (f = `M ${i.x} ${i.y} L ${a.x} ${a.y}`)) : J === "BT" ? (i.x < a.x && (f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y + l} ${c} ${i.x + u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${s} ${a.x} ${i.y - u} L ${a.x} ${a.y}`), i.x > a.x && (s = "A 20 20, 0, 0, 0,", c = "A 20 20, 0, 0, 1,", l = 20, u = 20, f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y + l} ${s} ${i.x - u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x + l} ${i.y} ${c} ${a.x} ${i.y - u} L ${a.x} ${a.y}`), i.x === a.x && (f = `M ${i.x} ${i.y} L ${a.x} ${a.y}`)) : (i.y < a.y && (f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${c} ${a.x} ${i.y + u} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${i.x} ${a.y - l} ${s} ${i.x + u} ${a.y} L ${a.x} ${a.y}`), i.y > a.y && (f = n.type === _.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${s} ${a.x} ${i.y - u} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${i.x} ${a.y + l} ${c} ${i.x + u} ${a.y} L ${a.x} ${a.y}`), i.y === a.y && (f = `M ${i.x} ${i.y} L ${a.x} ${a.y}`));
|
|
515
|
-
if (f === void 0) throw Error("Line definition not found");
|
|
516
|
-
e.append("path").attr("d", f).attr("class", "arrow arrow" + d % V);
|
|
517
|
-
}, "drawArrow"), Oe = /* @__PURE__ */ i((e, t) => {
|
|
518
|
-
let n = e.append("g").attr("class", "commit-arrows");
|
|
519
|
-
[...t.keys()].forEach((e) => {
|
|
520
|
-
let r = t.get(e);
|
|
521
|
-
r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
|
|
522
|
-
De(n, t.get(e), r, t);
|
|
523
|
-
});
|
|
524
|
-
});
|
|
525
|
-
}, "drawArrows"), ke = /* @__PURE__ */ i((e, t, n) => {
|
|
526
|
-
let r = e.append("g");
|
|
527
|
-
t.forEach((e, t) => {
|
|
528
|
-
let i = t % V, a = H.get(e.name)?.pos;
|
|
529
|
-
if (a === void 0) throw Error(`Position not found for branch ${e.name}`);
|
|
530
|
-
let o = r.append("line");
|
|
531
|
-
o.attr("x1", 0), o.attr("y1", a), o.attr("x2", q), o.attr("y2", a), o.attr("class", "branch branch" + i), J === "TB" ? (o.attr("y1", W), o.attr("x1", a), o.attr("y2", q), o.attr("x2", a)) : J === "BT" && (o.attr("y1", q), o.attr("x1", a), o.attr("y2", W), o.attr("x2", a)), K.push(a);
|
|
532
|
-
let s = e.name, c = Y(s), l = r.insert("rect"), u = r.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + i);
|
|
533
|
-
u.node().appendChild(c);
|
|
534
|
-
let d = c.getBBox();
|
|
535
|
-
l.attr("class", "branchLabelBkg label" + i).attr("rx", 4).attr("ry", 4).attr("x", -d.width - 4 - (n.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -d.height / 2 + 8).attr("width", d.width + 18).attr("height", d.height + 4), u.attr("transform", "translate(" + (-d.width - 14 - (n.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (a - d.height / 2 - 1) + ")"), J === "TB" ? (l.attr("x", a - d.width / 2 - 10).attr("y", 0), u.attr("transform", "translate(" + (a - d.width / 2 - 5) + ", 0)")) : J === "BT" ? (l.attr("x", a - d.width / 2 - 10).attr("y", q), u.attr("transform", "translate(" + (a - d.width / 2 - 5) + ", " + q + ")")) : l.attr("transform", "translate(-19, " + (a - d.height / 2) + ")");
|
|
536
|
-
});
|
|
537
|
-
}, "drawBranches"), Ae = /* @__PURE__ */ i(function(e, t, n, r, i) {
|
|
538
|
-
return H.set(e, {
|
|
539
|
-
pos: t,
|
|
540
|
-
index: n
|
|
541
|
-
}), t += 50 + (i ? 40 : 0) + (J === "TB" || J === "BT" ? r.width / 2 : 0), t;
|
|
542
|
-
}, "setBranchPosition"), je = {
|
|
543
|
-
parser: I,
|
|
544
|
-
db: O,
|
|
545
|
-
renderer: { draw: /* @__PURE__ */ i(function(n, r, i, o) {
|
|
546
|
-
me(), a.debug("in gitgraph renderer", n + "\n", "id:", r, i);
|
|
547
|
-
let s = o.db;
|
|
548
|
-
if (!s.getConfig) {
|
|
549
|
-
a.error("getConfig method is not available on db");
|
|
550
|
-
return;
|
|
551
|
-
}
|
|
552
|
-
let c = s.getConfig(), l = c.rotateCommitLabel ?? !1;
|
|
553
|
-
G = s.getCommits();
|
|
554
|
-
let u = s.getBranchesAsObjArray();
|
|
555
|
-
J = s.getDirection();
|
|
556
|
-
let d = e(`[id="${r}"]`), f = 0;
|
|
557
|
-
u.forEach((e, t) => {
|
|
558
|
-
let n = Y(e.name), r = d.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
|
|
559
|
-
a.node()?.appendChild(n);
|
|
560
|
-
let o = n.getBBox();
|
|
561
|
-
f = Ae(e.name, f, t, o, l), a.remove(), i.remove(), r.remove();
|
|
562
|
-
}), Q(d, G, !1, c), c.showBranches && ke(d, u, c), Oe(d, G), Q(d, G, !0, c), t.insertTitle(d, "gitTitleText", c.titleTopMargin ?? 0, s.getDiagramTitle()), ee(void 0, d, c.diagramPadding, c.useMaxWidth);
|
|
563
|
-
}, "draw") },
|
|
564
|
-
styles: /* @__PURE__ */ i((e) => `
|
|
565
|
-
.commit-id,
|
|
566
|
-
.commit-msg,
|
|
567
|
-
.branch-label {
|
|
568
|
-
fill: lightgrey;
|
|
569
|
-
color: lightgrey;
|
|
570
|
-
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
571
|
-
font-family: var(--mermaid-font-family);
|
|
572
|
-
}
|
|
573
|
-
${[
|
|
574
|
-
0,
|
|
575
|
-
1,
|
|
576
|
-
2,
|
|
577
|
-
3,
|
|
578
|
-
4,
|
|
579
|
-
5,
|
|
580
|
-
6,
|
|
581
|
-
7
|
|
582
|
-
].map((t) => `
|
|
583
|
-
.branch-label${t} { fill: ${e["gitBranchLabel" + t]}; }
|
|
584
|
-
.commit${t} { stroke: ${e["git" + t]}; fill: ${e["git" + t]}; }
|
|
585
|
-
.commit-highlight${t} { stroke: ${e["gitInv" + t]}; fill: ${e["gitInv" + t]}; }
|
|
586
|
-
.label${t} { fill: ${e["git" + t]}; }
|
|
587
|
-
.arrow${t} { stroke: ${e["git" + t]}; }
|
|
588
|
-
`).join("\n")}
|
|
589
|
-
|
|
590
|
-
.branch {
|
|
591
|
-
stroke-width: 1;
|
|
592
|
-
stroke: ${e.lineColor};
|
|
593
|
-
stroke-dasharray: 2;
|
|
594
|
-
}
|
|
595
|
-
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};}
|
|
596
|
-
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; }
|
|
597
|
-
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
598
|
-
.tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; }
|
|
599
|
-
.tag-hole { fill: ${e.textColor}; }
|
|
600
|
-
|
|
601
|
-
.commit-merge {
|
|
602
|
-
stroke: ${e.primaryColor};
|
|
603
|
-
fill: ${e.primaryColor};
|
|
604
|
-
}
|
|
605
|
-
.commit-reverse {
|
|
606
|
-
stroke: ${e.primaryColor};
|
|
607
|
-
fill: ${e.primaryColor};
|
|
608
|
-
stroke-width: 3;
|
|
609
|
-
}
|
|
610
|
-
.commit-highlight-outer {
|
|
611
|
-
}
|
|
612
|
-
.commit-highlight-inner {
|
|
613
|
-
stroke: ${e.primaryColor};
|
|
614
|
-
fill: ${e.primaryColor};
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
618
|
-
.gitTitleText {
|
|
619
|
-
text-anchor: middle;
|
|
620
|
-
font-size: 18px;
|
|
621
|
-
fill: ${e.textColor};
|
|
622
|
-
}
|
|
623
|
-
`, "getStyles")
|
|
624
|
-
};
|
|
625
|
-
//#endregion
|
|
626
|
-
export { je as diagram };
|
|
627
|
-
|
|
628
|
-
//# sourceMappingURL=gitGraphDiagram-K3NZZRJ6-Dr_X0dND.js.map
|