@sme.up/ketchup2 2.0.0 → 2.1.0
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-CqG9Hxdf.cjs +1 -0
- package/dist/arc-Klgb378K.js +80 -0
- package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
- package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
- package/dist/architectureDiagram-Q4EWVU46-JSjagcXX.cjs +36 -0
- package/dist/architectureDiagram-Q4EWVU46-u2vgZv3N.js +4057 -0
- package/dist/array-D8NZ46Ht.js +6 -0
- package/dist/array-Dxz0O8Q3.cjs +1 -0
- package/dist/assets/imageListAssets.d.ts +3 -1
- package/dist/assets/imageListAssets.d.ts.map +1 -1
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/list/list-types.d.ts +0 -1
- package/dist/basic-components/list/list-types.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
- package/dist/basic-components/select/select.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
- package/dist/blockDiagram-DXYQGD6D-BpB6_kTP.js +3033 -0
- package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +132 -0
- package/dist/c4Diagram-AHTNJAMY-B5Z8nO1s.js +2961 -0
- package/dist/c4Diagram-AHTNJAMY-CX5IjREU.cjs +10 -0
- package/dist/channel-BY9Lkyz7.cjs +1 -0
- package/dist/channel-BqNr2cYO.js +5 -0
- package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
- package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
- package/dist/chunk-336JU56O-CuXRn1VH.cjs +1 -0
- package/dist/chunk-336JU56O-xKPgkG3O.js +49 -0
- package/dist/chunk-426QAEUC-Df31vuwu.cjs +1 -0
- package/dist/chunk-426QAEUC-JjFVHKYG.js +9 -0
- package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
- package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
- package/dist/chunk-4TB4RGXK-CKyHmNcP.js +3253 -0
- package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +206 -0
- package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
- package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
- package/dist/chunk-5FUZZQ4R-2kdZJWq2.js +3638 -0
- package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +62 -0
- package/dist/chunk-5PVQY5BW-C5U7sJAA.js +1299 -0
- package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +2 -0
- package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
- package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
- package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
- package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
- package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
- package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
- package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
- package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
- package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
- package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
- package/dist/chunk-D-IZpNpi.cjs +1 -0
- package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +1 -0
- package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +25 -0
- package/dist/chunk-ENJZ2VHE-BluGQPyl.js +560 -0
- package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +10 -0
- package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
- package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
- package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
- package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
- package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +122 -0
- package/dist/chunk-ICPOFSXX-Sn6LWD0k.js +3316 -0
- package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
- package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
- package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
- package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
- package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
- package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
- package/dist/chunk-OYMX7WX6-BCT45RPu.cjs +231 -0
- package/dist/chunk-OYMX7WX6-BQADsxYi.js +2014 -0
- package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
- package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
- package/dist/chunk-U2HBQHQK-BZ3YFMXB.js +1879 -0
- package/dist/chunk-U2HBQHQK-D0AoQWxK.cjs +70 -0
- package/dist/chunk-WQLz0Won.js +20 -0
- package/dist/chunk-X2U36JSP-CY7mJR8m.js +67 -0
- package/dist/chunk-X2U36JSP-D1RYKjVc.cjs +1 -0
- package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
- package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
- package/dist/chunk-YZCP3GAM-9K9WNdyN.js +60 -0
- package/dist/chunk-YZCP3GAM-BmaAafMm.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-AQQsnXy4.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-CIYrdg-O.js +32 -0
- package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +1 -0
- package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +1 -0
- package/dist/clone-Dn__H8fX.js +8 -0
- package/dist/clone-lShkT11Q.cjs +1 -0
- package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
- package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
- package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
- package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
- package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
- package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
- package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
- package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
- package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
- package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
- package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-context.d.ts +5 -2
- package/dist/components/image-list/image-list-context.d.ts.map +1 -1
- package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
- package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
- package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-state-context.d.ts +5 -0
- package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-types.d.ts +45 -2
- package/dist/components/image-list/image-list-types.d.ts.map +1 -1
- package/dist/components/image-list/image-list-utils.d.ts +24 -1
- package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
- package/dist/components/image-list/image-list.d.ts +1 -1
- package/dist/components/image-list/image-list.d.ts.map +1 -1
- package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
- package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
- package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
- package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
- package/dist/dagre-BjnWDdkw.cjs +1 -0
- package/dist/dagre-DVLnxd7n.js +1606 -0
- package/dist/dagre-KV5264BT-BjqayRYC.js +293 -0
- package/dist/dagre-KV5264BT-BvInGAUC.cjs +4 -0
- package/dist/defaultLocale-Dcyuaxxg.js +201 -0
- package/dist/defaultLocale-DtzyZW63.cjs +1 -0
- package/dist/diagram-5BDNPKRD-Bk7depC0.js +101 -0
- package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +10 -0
- package/dist/diagram-G4DWMVQ6-BkQnbCLv.js +524 -0
- package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +24 -0
- package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +43 -0
- package/dist/diagram-MMDJMWI5-DUUVPi55.js +213 -0
- package/dist/diagram-TYMM5635-5auoAFCi.cjs +24 -0
- package/dist/diagram-TYMM5635-Cpj8wfoJ.js +133 -0
- package/dist/dist-BgvMZbfo.cjs +1 -0
- package/dist/dist-DL30VIBI.js +60 -0
- package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +85 -0
- package/dist/erDiagram-SMLLAGMA-D_ByPk0C.js +1700 -0
- package/dist/flatten-BE1bWL-7.js +40 -0
- package/dist/flatten-DxvYSoR8.cjs +1 -0
- package/dist/flowDiagram-DWJPFMVM-BWrkDnqc.js +4145 -0
- package/dist/flowDiagram-DWJPFMVM-BbK42NaF.cjs +162 -0
- package/dist/functional-components/action/action-types.d.ts +6 -1
- package/dist/functional-components/action/action-types.d.ts.map +1 -1
- package/dist/functional-components/action/action.d.ts.map +1 -1
- package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +292 -0
- package/dist/ganttDiagram-T4ZO3ILL-LuaYkUvj.js +3077 -0
- package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
- package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
- package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +106 -0
- package/dist/gitGraphDiagram-UUTBAWPF-DKkENwcV.js +728 -0
- package/dist/graphlib-Cpifseqb.js +373 -0
- package/dist/graphlib-HdfvGLpV.cjs +1 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/identity-KQSjemTb.cjs +1 -0
- package/dist/identity-g0dsMjx7.js +393 -0
- package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
- package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
- package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +2 -0
- package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +19 -0
- package/dist/init-B2MubQrj.cjs +1 -0
- package/dist/init-BO60vQHJ.js +15 -0
- package/dist/isEmpty-CA3kJuev.cjs +1 -0
- package/dist/isEmpty-RwX-oIQS.js +35 -0
- package/dist/ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs +70 -0
- package/dist/ishikawaDiagram-UXIWVN3A-DqbVPChK.js +718 -0
- package/dist/journeyDiagram-VCZTEJTY-DudduR0c.js +883 -0
- package/dist/journeyDiagram-VCZTEJTY-XRc0J8gM.cjs +139 -0
- package/dist/kanban-definition-6JOO6SKY-Br87atRc.cjs +89 -0
- package/dist/kanban-definition-6JOO6SKY-DzEqE64J.js +973 -0
- package/dist/katex-Du5WiYIy.js +22000 -0
- package/dist/katex-SAH56fvc.cjs +257 -0
- package/dist/ketchup2.cjs.js +190 -1
- package/dist/ketchup2.css +2 -1
- package/dist/ketchup2.es.js +132419 -52
- package/dist/line-BbHmiwbs.cjs +1 -0
- package/dist/line-JyRBGWft.js +34 -0
- package/dist/linear-BsPvNLJv.js +289 -0
- package/dist/linear-CxHa1DsM.cjs +1 -0
- package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
- package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
- package/dist/mindmap-definition-QFDTVHPH-BCq8zmLt.cjs +96 -0
- package/dist/mindmap-definition-QFDTVHPH-NGjPQ5SM.js +978 -0
- package/dist/ordinal-C-VoL0XF.js +65 -0
- package/dist/ordinal-Civr0hZL.cjs +1 -0
- package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
- package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
- package/dist/path-Civic7PQ.cjs +1 -0
- package/dist/path-CvfwEr8y.js +85 -0
- package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
- package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
- package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +30 -0
- package/dist/pieDiagram-DEJITSTG-DTeyzHmB.js +165 -0
- package/dist/quadrantDiagram-34T5L4WZ-CCcJIf91.js +1974 -0
- package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +7 -0
- package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
- package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
- package/dist/reduce-B7WW9rkU.cjs +1 -0
- package/dist/reduce-DNnkcf3M.js +532 -0
- package/dist/requirementDiagram-MS252O5E-BdOanuYe.js +2221 -0
- package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +84 -0
- package/dist/rough.esm-1mqTSjCt.js +1352 -0
- package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
- package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +10 -0
- package/dist/sankeyDiagram-XADWPNL6-3wviN_U4.js +920 -0
- package/dist/sequenceDiagram-FGHM5R23-DC8SjhFN.js +4157 -0
- package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +157 -0
- package/dist/src-BQiFKP24.js +2146 -0
- package/dist/src-DFxq-N5I.cjs +1 -0
- package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +217 -0
- package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +1 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +27 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +1 -0
- package/dist/timeline-definition-GMOUNBTQ-CBnYBWN0.js +1068 -0
- package/dist/timeline-definition-GMOUNBTQ-DWpngnE4.cjs +120 -0
- package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
- package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
- package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
- package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
- package/dist/utils/translation.d.ts.map +1 -1
- package/dist/v4-6yr83DbP.cjs +1 -0
- package/dist/v4-BR71w5_q.js +33 -0
- package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +34 -0
- package/dist/vennDiagram-DHZGUBPP-M-kkEkXj.js +1858 -0
- package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
- package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
- package/dist/wardleyDiagram-NUSXRM2D-CUX1SYhw.js +578 -0
- package/dist/wardleyDiagram-NUSXRM2D-thoOuA_D.cjs +20 -0
- package/dist/xychartDiagram-5P7HB3ND-1cXRZ1bi.js +2044 -0
- package/dist/xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs +7 -0
- package/package.json +31 -31
- package/dist/_basePickBy-CPekwY_Z.js +0 -151
- package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
- package/dist/_baseUniq-CAhfZr5S.js +0 -614
- package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
- package/dist/arc-CnmUepZA.cjs +0 -1
- package/dist/arc-Md6Ds0JZ.js +0 -83
- package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
- package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
- package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
- package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
- package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
- package/dist/channel-BGeX_R6w.cjs +0 -1
- package/dist/channel-lqmaHMPZ.js +0 -5
- package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
- package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
- package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
- package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
- package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
- package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
- package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
- package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
- package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
- package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
- package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
- package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
- package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
- package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
- package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
- package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
- package/dist/clone-B_MxWhab.js +0 -8
- package/dist/clone-D6gFD6F-.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
- package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
- package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
- package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
- package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
- package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
- package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
- package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
- package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
- package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
- package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
- package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
- package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
- package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
- package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
- package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
- package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
- package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
- package/dist/graph-BBPk5jyk.cjs +0 -1
- package/dist/graph-h6vsxKyr.js +0 -247
- package/dist/index-CYQM-t1d.cjs +0 -390
- package/dist/index-FiV1b00w.js +0 -133122
- package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
- package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
- package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
- package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
- package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
- package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
- package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
- package/dist/katex-C2g-EhzP.cjs +0 -261
- package/dist/katex-CUSbq6rG.js +0 -11692
- package/dist/layout-6z7-eUnZ.js +0 -1335
- package/dist/layout-DbcrMh5B.cjs +0 -1
- package/dist/linear-BKevCbhh.js +0 -259
- package/dist/linear-C7uVEtWW.cjs +0 -1
- package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
- package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
- package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
- package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
- package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
- package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
- package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
- package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
- package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
- package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
- package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
- package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
- package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
- package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
- package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
- package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
- package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
- package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
- package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
- package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
|
@@ -0,0 +1,728 @@
|
|
|
1
|
+
import { B as e, C as t, V as n, W as r, _ as i, a, b as o, d as s, q as c, s as l, v as u, y as d } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
|
|
2
|
+
import { g as f, h as p, p as m } from "./src-BQiFKP24.js";
|
|
3
|
+
import { h, p as g, r as _ } from "./chunk-5PVQY5BW-C5U7sJAA.js";
|
|
4
|
+
import { t as v } from "./chunk-4BX2VUAB-BW54-JWg.js";
|
|
5
|
+
import { t as y } from "./mermaid-parser.core-CERDf-UG.js";
|
|
6
|
+
import { t as b } from "./chunk-QZHKN3VN-Bx8I6l3c.js";
|
|
7
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.mjs
|
|
8
|
+
var x = {
|
|
9
|
+
NORMAL: 0,
|
|
10
|
+
REVERSE: 1,
|
|
11
|
+
HIGHLIGHT: 2,
|
|
12
|
+
MERGE: 3,
|
|
13
|
+
CHERRY_PICK: 4
|
|
14
|
+
}, ee = s.gitGraph, S = /* @__PURE__ */ p(() => _({
|
|
15
|
+
...ee,
|
|
16
|
+
...d().gitGraph
|
|
17
|
+
}), "getConfig"), C = new b(() => {
|
|
18
|
+
let e = S(), t = e.mainBranchName, n = e.mainBranchOrder;
|
|
19
|
+
return {
|
|
20
|
+
mainBranchName: t,
|
|
21
|
+
commits: /* @__PURE__ */ new Map(),
|
|
22
|
+
head: null,
|
|
23
|
+
branchConfig: /* @__PURE__ */ new Map([[t, {
|
|
24
|
+
name: t,
|
|
25
|
+
order: n
|
|
26
|
+
}]]),
|
|
27
|
+
branches: /* @__PURE__ */ new Map([[t, null]]),
|
|
28
|
+
currBranch: t,
|
|
29
|
+
direction: "LR",
|
|
30
|
+
seq: 0,
|
|
31
|
+
options: {}
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
function w() {
|
|
35
|
+
return g({ length: 7 });
|
|
36
|
+
}
|
|
37
|
+
p(w, "getID");
|
|
38
|
+
function T(e, t) {
|
|
39
|
+
let n = /* @__PURE__ */ Object.create(null);
|
|
40
|
+
return e.reduce((e, r) => {
|
|
41
|
+
let i = t(r);
|
|
42
|
+
return n[i] || (n[i] = !0, e.push(r)), e;
|
|
43
|
+
}, []);
|
|
44
|
+
}
|
|
45
|
+
p(T, "uniqBy");
|
|
46
|
+
var te = /* @__PURE__ */ p(function(e) {
|
|
47
|
+
C.records.direction = e;
|
|
48
|
+
}, "setDirection"), ne = /* @__PURE__ */ p(function(e) {
|
|
49
|
+
f.debug("options str", e), e = e?.trim(), e ||= "{}";
|
|
50
|
+
try {
|
|
51
|
+
C.records.options = JSON.parse(e);
|
|
52
|
+
} catch (e) {
|
|
53
|
+
f.error("error while parsing gitGraph options", e.message);
|
|
54
|
+
}
|
|
55
|
+
}, "setOptions"), re = /* @__PURE__ */ p(function() {
|
|
56
|
+
return C.records.options;
|
|
57
|
+
}, "getOptions"), ie = /* @__PURE__ */ p(function(e) {
|
|
58
|
+
let t = e.msg, n = e.id, r = e.type, i = e.tags;
|
|
59
|
+
f.info("commit", t, n, r, i), f.debug("Entering commit:", t, n, r, i);
|
|
60
|
+
let a = S();
|
|
61
|
+
n = l.sanitizeText(n, a), t = l.sanitizeText(t, a), i = i?.map((e) => l.sanitizeText(e, a));
|
|
62
|
+
let o = {
|
|
63
|
+
id: n || C.records.seq + "-" + w(),
|
|
64
|
+
message: t,
|
|
65
|
+
seq: C.records.seq++,
|
|
66
|
+
type: r ?? x.NORMAL,
|
|
67
|
+
tags: i ?? [],
|
|
68
|
+
parents: C.records.head == null ? [] : [C.records.head.id],
|
|
69
|
+
branch: C.records.currBranch
|
|
70
|
+
};
|
|
71
|
+
C.records.head = o, f.info("main branch", a.mainBranchName), C.records.commits.has(o.id) && f.warn(`Commit ID ${o.id} already exists`), C.records.commits.set(o.id, o), C.records.branches.set(C.records.currBranch, o.id), f.debug("in pushCommit " + o.id);
|
|
72
|
+
}, "commit"), ae = /* @__PURE__ */ p(function(e) {
|
|
73
|
+
let t = e.name, n = e.order;
|
|
74
|
+
if (t = l.sanitizeText(t, S()), C.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}")`);
|
|
75
|
+
C.records.branches.set(t, C.records.head == null ? null : C.records.head.id), C.records.branchConfig.set(t, {
|
|
76
|
+
name: t,
|
|
77
|
+
order: n
|
|
78
|
+
}), E(t), f.debug("in createBranch");
|
|
79
|
+
}, "branch"), oe = /* @__PURE__ */ p((e) => {
|
|
80
|
+
let t = e.branch, n = e.id, r = e.type, i = e.tags, a = S();
|
|
81
|
+
t = l.sanitizeText(t, a), n &&= l.sanitizeText(n, a);
|
|
82
|
+
let o = C.records.branches.get(C.records.currBranch), s = C.records.branches.get(t), c = o ? C.records.commits.get(o) : void 0, u = s ? C.records.commits.get(s) : void 0;
|
|
83
|
+
if (c && u && c.branch === t) throw Error(`Cannot merge branch '${t}' into itself.`);
|
|
84
|
+
if (C.records.currBranch === t) {
|
|
85
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
|
|
86
|
+
throw e.hash = {
|
|
87
|
+
text: `merge ${t}`,
|
|
88
|
+
token: `merge ${t}`,
|
|
89
|
+
expected: ["branch abc"]
|
|
90
|
+
}, e;
|
|
91
|
+
}
|
|
92
|
+
if (c === void 0 || !c) {
|
|
93
|
+
let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);
|
|
94
|
+
throw e.hash = {
|
|
95
|
+
text: `merge ${t}`,
|
|
96
|
+
token: `merge ${t}`,
|
|
97
|
+
expected: ["commit"]
|
|
98
|
+
}, e;
|
|
99
|
+
}
|
|
100
|
+
if (!C.records.branches.has(t)) {
|
|
101
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") does not exist");
|
|
102
|
+
throw e.hash = {
|
|
103
|
+
text: `merge ${t}`,
|
|
104
|
+
token: `merge ${t}`,
|
|
105
|
+
expected: [`branch ${t}`]
|
|
106
|
+
}, e;
|
|
107
|
+
}
|
|
108
|
+
if (u === void 0 || !u) {
|
|
109
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") has no commits");
|
|
110
|
+
throw e.hash = {
|
|
111
|
+
text: `merge ${t}`,
|
|
112
|
+
token: `merge ${t}`,
|
|
113
|
+
expected: ["\"commit\""]
|
|
114
|
+
}, e;
|
|
115
|
+
}
|
|
116
|
+
if (c === u) {
|
|
117
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
|
|
118
|
+
throw e.hash = {
|
|
119
|
+
text: `merge ${t}`,
|
|
120
|
+
token: `merge ${t}`,
|
|
121
|
+
expected: ["branch abc"]
|
|
122
|
+
}, e;
|
|
123
|
+
}
|
|
124
|
+
if (n && C.records.commits.has(n)) {
|
|
125
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + n + " already exists, use different custom id");
|
|
126
|
+
throw e.hash = {
|
|
127
|
+
text: `merge ${t} ${n} ${r} ${i?.join(" ")}`,
|
|
128
|
+
token: `merge ${t} ${n} ${r} ${i?.join(" ")}`,
|
|
129
|
+
expected: [`merge ${t} ${n}_UNIQUE ${r} ${i?.join(" ")}`]
|
|
130
|
+
}, e;
|
|
131
|
+
}
|
|
132
|
+
let d = s || "", p = {
|
|
133
|
+
id: n || `${C.records.seq}-${w()}`,
|
|
134
|
+
message: `merged branch ${t} into ${C.records.currBranch}`,
|
|
135
|
+
seq: C.records.seq++,
|
|
136
|
+
parents: C.records.head == null ? [] : [C.records.head.id, d],
|
|
137
|
+
branch: C.records.currBranch,
|
|
138
|
+
type: x.MERGE,
|
|
139
|
+
customType: r,
|
|
140
|
+
customId: !!n,
|
|
141
|
+
tags: i ?? []
|
|
142
|
+
};
|
|
143
|
+
C.records.head = p, C.records.commits.set(p.id, p), C.records.branches.set(C.records.currBranch, p.id), f.debug(C.records.branches), f.debug("in mergeBranch");
|
|
144
|
+
}, "merge"), se = /* @__PURE__ */ p(function(e) {
|
|
145
|
+
let t = e.id, n = e.targetId, r = e.tags, i = e.parent;
|
|
146
|
+
f.debug("Entering cherryPick:", t, n, r);
|
|
147
|
+
let a = S();
|
|
148
|
+
if (t = l.sanitizeText(t, a), n = l.sanitizeText(n, a), r = r?.map((e) => l.sanitizeText(e, a)), i = l.sanitizeText(i, a), !t || !C.records.commits.has(t)) {
|
|
149
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
150
|
+
throw e.hash = {
|
|
151
|
+
text: `cherryPick ${t} ${n}`,
|
|
152
|
+
token: `cherryPick ${t} ${n}`,
|
|
153
|
+
expected: ["cherry-pick abc"]
|
|
154
|
+
}, e;
|
|
155
|
+
}
|
|
156
|
+
let o = C.records.commits.get(t);
|
|
157
|
+
if (o === void 0 || !o) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
158
|
+
if (i && !(Array.isArray(o.parents) && o.parents.includes(i))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
|
|
159
|
+
let s = o.branch;
|
|
160
|
+
if (o.type === x.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.");
|
|
161
|
+
if (!n || !C.records.commits.has(n)) {
|
|
162
|
+
if (s === C.records.currBranch) {
|
|
163
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
|
|
164
|
+
throw e.hash = {
|
|
165
|
+
text: `cherryPick ${t} ${n}`,
|
|
166
|
+
token: `cherryPick ${t} ${n}`,
|
|
167
|
+
expected: ["cherry-pick abc"]
|
|
168
|
+
}, e;
|
|
169
|
+
}
|
|
170
|
+
let e = C.records.branches.get(C.records.currBranch);
|
|
171
|
+
if (e === void 0 || !e) {
|
|
172
|
+
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
|
|
173
|
+
throw e.hash = {
|
|
174
|
+
text: `cherryPick ${t} ${n}`,
|
|
175
|
+
token: `cherryPick ${t} ${n}`,
|
|
176
|
+
expected: ["cherry-pick abc"]
|
|
177
|
+
}, e;
|
|
178
|
+
}
|
|
179
|
+
let a = C.records.commits.get(e);
|
|
180
|
+
if (a === void 0 || !a) {
|
|
181
|
+
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
|
|
182
|
+
throw e.hash = {
|
|
183
|
+
text: `cherryPick ${t} ${n}`,
|
|
184
|
+
token: `cherryPick ${t} ${n}`,
|
|
185
|
+
expected: ["cherry-pick abc"]
|
|
186
|
+
}, e;
|
|
187
|
+
}
|
|
188
|
+
let c = {
|
|
189
|
+
id: C.records.seq + "-" + w(),
|
|
190
|
+
message: `cherry-picked ${o?.message} into ${C.records.currBranch}`,
|
|
191
|
+
seq: C.records.seq++,
|
|
192
|
+
parents: C.records.head == null ? [] : [C.records.head.id, o.id],
|
|
193
|
+
branch: C.records.currBranch,
|
|
194
|
+
type: x.CHERRY_PICK,
|
|
195
|
+
tags: r ? r.filter(Boolean) : [`cherry-pick:${o.id}${o.type === x.MERGE ? `|parent:${i}` : ""}`]
|
|
196
|
+
};
|
|
197
|
+
C.records.head = c, C.records.commits.set(c.id, c), C.records.branches.set(C.records.currBranch, c.id), f.debug(C.records.branches), f.debug("in cherryPick");
|
|
198
|
+
}
|
|
199
|
+
}, "cherryPick"), E = /* @__PURE__ */ p(function(e) {
|
|
200
|
+
if (e = l.sanitizeText(e, S()), C.records.branches.has(e)) {
|
|
201
|
+
C.records.currBranch = e;
|
|
202
|
+
let t = C.records.branches.get(C.records.currBranch);
|
|
203
|
+
t === void 0 || !t ? C.records.head = null : C.records.head = C.records.commits.get(t) ?? null;
|
|
204
|
+
} else {
|
|
205
|
+
let t = /* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);
|
|
206
|
+
throw t.hash = {
|
|
207
|
+
text: `checkout ${e}`,
|
|
208
|
+
token: `checkout ${e}`,
|
|
209
|
+
expected: [`branch ${e}`]
|
|
210
|
+
}, t;
|
|
211
|
+
}
|
|
212
|
+
}, "checkout");
|
|
213
|
+
function D(e, t, n) {
|
|
214
|
+
let r = e.indexOf(t);
|
|
215
|
+
r === -1 ? e.push(n) : e.splice(r, 1, n);
|
|
216
|
+
}
|
|
217
|
+
p(D, "upsert");
|
|
218
|
+
function O(e) {
|
|
219
|
+
let t = e.reduce((e, t) => e.seq > t.seq ? e : t, e[0]), n = "";
|
|
220
|
+
e.forEach(function(e) {
|
|
221
|
+
e === t ? n += " *" : n += " |";
|
|
222
|
+
});
|
|
223
|
+
let r = [
|
|
224
|
+
n,
|
|
225
|
+
t.id,
|
|
226
|
+
t.seq
|
|
227
|
+
];
|
|
228
|
+
for (let e in C.records.branches) C.records.branches.get(e) === t.id && r.push(e);
|
|
229
|
+
if (f.debug(r.join(" ")), t.parents && t.parents.length == 2 && t.parents[0] && t.parents[1]) {
|
|
230
|
+
let n = C.records.commits.get(t.parents[0]);
|
|
231
|
+
D(e, t, n), t.parents[1] && e.push(C.records.commits.get(t.parents[1]));
|
|
232
|
+
} else if (t.parents.length == 0) return;
|
|
233
|
+
else if (t.parents[0]) {
|
|
234
|
+
let n = C.records.commits.get(t.parents[0]);
|
|
235
|
+
D(e, t, n);
|
|
236
|
+
}
|
|
237
|
+
e = T(e, (e) => e.id), O(e);
|
|
238
|
+
}
|
|
239
|
+
p(O, "prettyPrintCommitHistory");
|
|
240
|
+
var ce = /* @__PURE__ */ p(function() {
|
|
241
|
+
f.debug(C.records.commits);
|
|
242
|
+
let e = k()[0];
|
|
243
|
+
O([e]);
|
|
244
|
+
}, "prettyPrint"), le = /* @__PURE__ */ p(function() {
|
|
245
|
+
C.reset(), a();
|
|
246
|
+
}, "clear"), ue = /* @__PURE__ */ p(function() {
|
|
247
|
+
return [...C.records.branchConfig.values()].map((e, t) => e.order !== null && e.order !== void 0 ? e : {
|
|
248
|
+
...e,
|
|
249
|
+
order: parseFloat(`0.${t}`)
|
|
250
|
+
}).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map(({ name: e }) => ({ name: e }));
|
|
251
|
+
}, "getBranchesAsObjArray"), de = /* @__PURE__ */ p(function() {
|
|
252
|
+
return C.records.branches;
|
|
253
|
+
}, "getBranches"), fe = /* @__PURE__ */ p(function() {
|
|
254
|
+
return C.records.commits;
|
|
255
|
+
}, "getCommits"), k = /* @__PURE__ */ p(function() {
|
|
256
|
+
let e = [...C.records.commits.values()];
|
|
257
|
+
return e.forEach(function(e) {
|
|
258
|
+
f.debug(e.id);
|
|
259
|
+
}), e.sort((e, t) => e.seq - t.seq), e;
|
|
260
|
+
}, "getCommitsArray"), A = {
|
|
261
|
+
commitType: x,
|
|
262
|
+
getConfig: S,
|
|
263
|
+
setDirection: te,
|
|
264
|
+
setOptions: ne,
|
|
265
|
+
getOptions: re,
|
|
266
|
+
commit: ie,
|
|
267
|
+
branch: ae,
|
|
268
|
+
merge: oe,
|
|
269
|
+
cherryPick: se,
|
|
270
|
+
checkout: E,
|
|
271
|
+
prettyPrint: ce,
|
|
272
|
+
clear: le,
|
|
273
|
+
getBranchesAsObjArray: ue,
|
|
274
|
+
getBranches: de,
|
|
275
|
+
getCommits: fe,
|
|
276
|
+
getCommitsArray: k,
|
|
277
|
+
getCurrentBranch: /* @__PURE__ */ p(function() {
|
|
278
|
+
return C.records.currBranch;
|
|
279
|
+
}, "getCurrentBranch"),
|
|
280
|
+
getDirection: /* @__PURE__ */ p(function() {
|
|
281
|
+
return C.records.direction;
|
|
282
|
+
}, "getDirection"),
|
|
283
|
+
getHead: /* @__PURE__ */ p(function() {
|
|
284
|
+
return C.records.head;
|
|
285
|
+
}, "getHead"),
|
|
286
|
+
setAccTitle: n,
|
|
287
|
+
getAccTitle: u,
|
|
288
|
+
getAccDescription: i,
|
|
289
|
+
setAccDescription: e,
|
|
290
|
+
setDiagramTitle: r,
|
|
291
|
+
getDiagramTitle: t
|
|
292
|
+
}, pe = /* @__PURE__ */ p((e, t) => {
|
|
293
|
+
v(e, t), e.dir && t.setDirection(e.dir);
|
|
294
|
+
for (let n of e.statements) me(n, t);
|
|
295
|
+
}, "populate"), me = /* @__PURE__ */ p((e, t) => {
|
|
296
|
+
let n = {
|
|
297
|
+
Commit: /* @__PURE__ */ p((e) => t.commit(he(e)), "Commit"),
|
|
298
|
+
Branch: /* @__PURE__ */ p((e) => t.branch(ge(e)), "Branch"),
|
|
299
|
+
Merge: /* @__PURE__ */ p((e) => t.merge(_e(e)), "Merge"),
|
|
300
|
+
Checkout: /* @__PURE__ */ p((e) => t.checkout(ve(e)), "Checkout"),
|
|
301
|
+
CherryPicking: /* @__PURE__ */ p((e) => t.cherryPick(ye(e)), "CherryPicking")
|
|
302
|
+
}[e.$type];
|
|
303
|
+
n ? n(e) : f.error(`Unknown statement type: ${e.$type}`);
|
|
304
|
+
}, "parseStatement"), he = /* @__PURE__ */ p((e) => ({
|
|
305
|
+
id: e.id,
|
|
306
|
+
msg: e.message ?? "",
|
|
307
|
+
type: e.type === void 0 ? x.NORMAL : x[e.type],
|
|
308
|
+
tags: e.tags ?? void 0
|
|
309
|
+
}), "parseCommit"), ge = /* @__PURE__ */ p((e) => ({
|
|
310
|
+
name: e.name,
|
|
311
|
+
order: e.order ?? 0
|
|
312
|
+
}), "parseBranch"), _e = /* @__PURE__ */ p((e) => ({
|
|
313
|
+
branch: e.branch,
|
|
314
|
+
id: e.id ?? "",
|
|
315
|
+
type: e.type === void 0 ? void 0 : x[e.type],
|
|
316
|
+
tags: e.tags ?? void 0
|
|
317
|
+
}), "parseMerge"), ve = /* @__PURE__ */ p((e) => e.branch, "parseCheckout"), ye = /* @__PURE__ */ p((e) => ({
|
|
318
|
+
id: e.id,
|
|
319
|
+
targetId: "",
|
|
320
|
+
tags: e.tags?.length === 0 ? void 0 : e.tags,
|
|
321
|
+
parent: e.parent
|
|
322
|
+
}), "parseCherryPicking"), be = { parse: /* @__PURE__ */ p(async (e) => {
|
|
323
|
+
let t = await y("gitGraph", e);
|
|
324
|
+
f.debug(t), pe(t, A);
|
|
325
|
+
}, "parse") }, j = 10, M = 40, N = 4, P = 2, F = 8, I = /* @__PURE__ */ new Set([
|
|
326
|
+
"redux",
|
|
327
|
+
"redux-dark",
|
|
328
|
+
"redux-color",
|
|
329
|
+
"redux-dark-color"
|
|
330
|
+
]), L = 12, R = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), xe = /* @__PURE__ */ new Set([
|
|
331
|
+
"dark",
|
|
332
|
+
"redux-dark",
|
|
333
|
+
"redux-dark-color",
|
|
334
|
+
"neo-dark"
|
|
335
|
+
]), z = /* @__PURE__ */ p((e, t, n = !1) => n && e > 0 ? (e - 1) % (t - 1) + 1 : e % t, "calcColorIndex"), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = 30, U = /* @__PURE__ */ new Map(), W = [], G = 0, K = "LR", q = /* @__PURE__ */ p(() => {
|
|
336
|
+
B.clear(), V.clear(), U.clear(), G = 0, W = [], K = "LR";
|
|
337
|
+
}, "clear"), J = /* @__PURE__ */ p((e) => {
|
|
338
|
+
let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
339
|
+
return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
|
|
340
|
+
let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
341
|
+
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);
|
|
342
|
+
}), t;
|
|
343
|
+
}, "drawText"), Y = /* @__PURE__ */ p((e) => {
|
|
344
|
+
let t, n, r;
|
|
345
|
+
return K === "BT" ? (n = /* @__PURE__ */ p((e, t) => e <= t, "comparisonFunc"), r = Infinity) : (n = /* @__PURE__ */ p((e, t) => e >= t, "comparisonFunc"), r = 0), e.forEach((e) => {
|
|
346
|
+
let i = K === "TB" || K == "BT" ? V.get(e)?.y : V.get(e)?.x;
|
|
347
|
+
i !== void 0 && n(i, r) && (t = e, r = i);
|
|
348
|
+
}), t;
|
|
349
|
+
}, "findClosestParent"), Se = /* @__PURE__ */ p((e) => {
|
|
350
|
+
let t = "", n = Infinity;
|
|
351
|
+
return e.forEach((e) => {
|
|
352
|
+
let r = V.get(e).y;
|
|
353
|
+
r <= n && (t = e, n = r);
|
|
354
|
+
}), t || void 0;
|
|
355
|
+
}, "findClosestParentBT"), Ce = /* @__PURE__ */ p((e, t, n) => {
|
|
356
|
+
let r = n, i = n, a = [];
|
|
357
|
+
e.forEach((e) => {
|
|
358
|
+
let n = t.get(e);
|
|
359
|
+
if (!n) throw Error(`Commit not found for key ${e}`);
|
|
360
|
+
n.parents.length ? (r = Te(n), i = Math.max(r, i)) : a.push(n), Ee(n, r);
|
|
361
|
+
}), r = i, a.forEach((e) => {
|
|
362
|
+
De(e, r, n);
|
|
363
|
+
}), e.forEach((e) => {
|
|
364
|
+
let n = t.get(e);
|
|
365
|
+
if (n?.parents.length) {
|
|
366
|
+
let e = Se(n.parents);
|
|
367
|
+
r = V.get(e).y - M, r <= i && (i = r);
|
|
368
|
+
let t = B.get(n.branch).pos, a = r - j;
|
|
369
|
+
V.set(n.id, {
|
|
370
|
+
x: t,
|
|
371
|
+
y: a
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
}, "setParallelBTPos"), we = /* @__PURE__ */ p((e) => {
|
|
376
|
+
let t = Y(e.parents.filter((e) => e !== null));
|
|
377
|
+
if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
|
|
378
|
+
let n = V.get(t)?.y;
|
|
379
|
+
if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
|
|
380
|
+
return n;
|
|
381
|
+
}, "findClosestParentPos"), Te = /* @__PURE__ */ p((e) => we(e) + M, "calculateCommitPosition"), Ee = /* @__PURE__ */ p((e, t) => {
|
|
382
|
+
let n = B.get(e.branch);
|
|
383
|
+
if (!n) throw Error(`Branch not found for commit ${e.id}`);
|
|
384
|
+
let r = n.pos, i = t + j;
|
|
385
|
+
return V.set(e.id, {
|
|
386
|
+
x: r,
|
|
387
|
+
y: i
|
|
388
|
+
}), {
|
|
389
|
+
x: r,
|
|
390
|
+
y: i
|
|
391
|
+
};
|
|
392
|
+
}, "setCommitPosition"), De = /* @__PURE__ */ p((e, t, n) => {
|
|
393
|
+
let r = B.get(e.branch);
|
|
394
|
+
if (!r) throw Error(`Branch not found for commit ${e.id}`);
|
|
395
|
+
let i = t + n, a = r.pos;
|
|
396
|
+
V.set(e.id, {
|
|
397
|
+
x: a,
|
|
398
|
+
y: i
|
|
399
|
+
});
|
|
400
|
+
}, "setRootPosition"), Oe = /* @__PURE__ */ p((e, t, n, r, i, a) => {
|
|
401
|
+
let { theme: s } = o(), c = I.has(s ?? ""), l = R.has(s ?? ""), u = xe.has(s ?? "");
|
|
402
|
+
if (a === x.HIGHLIGHT) e.append("rect").attr("x", n.x - 10 + (c ? 3 : 0)).attr("y", n.y - 10 + (c ? 3 : 0)).attr("width", c ? 14 : 20).attr("height", c ? 14 : 20).attr("class", `commit ${t.id} commit-highlight${z(i, F, l)} ${r}-outer`), e.append("rect").attr("x", n.x - 6 + (c ? 2 : 0)).attr("y", n.y - 6 + (c ? 2 : 0)).attr("width", c ? 8 : 12).attr("height", c ? 8 : 12).attr("class", `commit ${t.id} commit${z(i, F, l)} ${r}-inner`);
|
|
403
|
+
else if (a === x.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", c ? 7 : 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", c ? 2.5 : 2.75).attr("fill", u ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", c ? 2.5 : 2.75).attr("fill", u ? "#000000" : "#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", u ? "#000000" : "#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", u ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`);
|
|
404
|
+
else {
|
|
405
|
+
let o = e.append("circle");
|
|
406
|
+
if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r", c ? 7 : 10), o.attr("class", `commit ${t.id} commit${z(i, F, l)}`), a === x.MERGE) {
|
|
407
|
+
let a = e.append("circle");
|
|
408
|
+
a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r", c ? 5 : 6), a.attr("class", `commit ${r} ${t.id} commit${z(i, F, l)}`);
|
|
409
|
+
}
|
|
410
|
+
if (a === x.REVERSE) {
|
|
411
|
+
let a = e.append("path"), o = c ? 4 : 5;
|
|
412
|
+
a.attr("d", `M ${n.x - o},${n.y - o}L${n.x + o},${n.y + o}M${n.x - o},${n.y + o}L${n.x + o},${n.y - o}`).attr("class", `commit ${r} ${t.id} commit${z(i, F, l)}`);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}, "drawCommitBullet"), ke = /* @__PURE__ */ p((e, t, n, r, i) => {
|
|
416
|
+
if (t.type !== x.CHERRY_PICK && (t.customId && t.type === x.MERGE || t.type !== x.MERGE) && i.showCommitLabel) {
|
|
417
|
+
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();
|
|
418
|
+
if (c && (o.attr("x", n.posWithOffset - c.width / 2 - P).attr("y", n.y + 13.5).attr("width", c.width + 2 * P).attr("height", c.height + 2 * P), K === "TB" || K === "BT" ? (o.attr("x", n.x - (c.width + 4 * N + 5)).attr("y", n.y - 12), s.attr("x", n.x - (c.width + 4 * N)).attr("y", n.y + c.height - 12)) : s.attr("x", n.posWithOffset - c.width / 2), i.rotateCommitLabel)) if (K === "TB" || K === "BT") s.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")"), o.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")");
|
|
419
|
+
else {
|
|
420
|
+
let e = -7.5 - (c.width + 10) / 25 * 9.5, t = 10 + c.width / 25 * 8.5;
|
|
421
|
+
a.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}, "drawCommitLabel"), Ae = /* @__PURE__ */ p((e, t, n, r) => {
|
|
425
|
+
if (t.tags.length > 0) {
|
|
426
|
+
let i = 0, a = 0, o = 0, s = [];
|
|
427
|
+
for (let r of t.tags.reverse()) {
|
|
428
|
+
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();
|
|
429
|
+
if (!u) throw Error("Tag bbox not found");
|
|
430
|
+
a = Math.max(a, u.width), o = Math.max(o, u.height), l.attr("x", n.posWithOffset - u.width / 2), s.push({
|
|
431
|
+
tag: l,
|
|
432
|
+
hole: c,
|
|
433
|
+
rect: t,
|
|
434
|
+
yOffset: i
|
|
435
|
+
}), i += 20;
|
|
436
|
+
}
|
|
437
|
+
for (let { tag: e, hole: t, rect: i, yOffset: c } of s) {
|
|
438
|
+
let s = o / 2, l = n.y - 19.2 - c;
|
|
439
|
+
if (i.attr("class", "tag-label-bkg").attr("points", `
|
|
440
|
+
${r - a / 2 - N / 2},${l + P}
|
|
441
|
+
${r - a / 2 - N / 2},${l - P}
|
|
442
|
+
${n.posWithOffset - a / 2 - N},${l - s - P}
|
|
443
|
+
${n.posWithOffset + a / 2 + N},${l - s - P}
|
|
444
|
+
${n.posWithOffset + a / 2 + N},${l + s + P}
|
|
445
|
+
${n.posWithOffset - a / 2 - N},${l + s + P}`), t.attr("cy", l).attr("cx", r - a / 2 + N / 2).attr("r", 1.5).attr("class", "tag-hole"), K === "TB" || K === "BT") {
|
|
446
|
+
let o = r + c;
|
|
447
|
+
i.attr("class", "tag-label-bkg").attr("points", `
|
|
448
|
+
${n.x},${o + 2}
|
|
449
|
+
${n.x},${o - 2}
|
|
450
|
+
${n.x + j},${o - s - 2}
|
|
451
|
+
${n.x + j + a + 4},${o - s - 2}
|
|
452
|
+
${n.x + j + a + 4},${o + s + 2}
|
|
453
|
+
${n.x + j},${o + s + 2}`).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), t.attr("cx", n.x + N / 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 + ")");
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}, "drawCommitTags"), je = /* @__PURE__ */ p((e) => {
|
|
458
|
+
switch (e.customType ?? e.type) {
|
|
459
|
+
case x.NORMAL: return "commit-normal";
|
|
460
|
+
case x.REVERSE: return "commit-reverse";
|
|
461
|
+
case x.HIGHLIGHT: return "commit-highlight";
|
|
462
|
+
case x.MERGE: return "commit-merge";
|
|
463
|
+
case x.CHERRY_PICK: return "commit-cherry-pick";
|
|
464
|
+
default: return "commit-normal";
|
|
465
|
+
}
|
|
466
|
+
}, "getCommitClassType"), Me = /* @__PURE__ */ p((e, t, n, r) => {
|
|
467
|
+
let i = {
|
|
468
|
+
x: 0,
|
|
469
|
+
y: 0
|
|
470
|
+
};
|
|
471
|
+
if (e.parents.length > 0) {
|
|
472
|
+
let n = Y(e.parents);
|
|
473
|
+
if (n) {
|
|
474
|
+
let a = r.get(n) ?? i;
|
|
475
|
+
return t === "TB" ? a.y + M : t === "BT" ? (r.get(e.id) ?? i).y - M : a.x + M;
|
|
476
|
+
}
|
|
477
|
+
} else if (t === "TB") return H;
|
|
478
|
+
else if (t === "BT") return (r.get(e.id) ?? i).y - M;
|
|
479
|
+
else return 0;
|
|
480
|
+
return 0;
|
|
481
|
+
}, "calculatePosition"), Ne = /* @__PURE__ */ p((e, t, n) => {
|
|
482
|
+
let r = K === "BT" && n ? t : t + j, i = B.get(e.branch)?.pos, a = K === "TB" || K === "BT" ? B.get(e.branch)?.pos : r;
|
|
483
|
+
if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
|
|
484
|
+
let s = I.has(o().theme ?? "");
|
|
485
|
+
return {
|
|
486
|
+
x: a,
|
|
487
|
+
y: K === "TB" || K === "BT" ? r : i + (s ? L / 2 + 1 : -2),
|
|
488
|
+
posWithOffset: r
|
|
489
|
+
};
|
|
490
|
+
}, "getCommitPosition"), X = /* @__PURE__ */ p((e, t, n, r) => {
|
|
491
|
+
let i = e.append("g").attr("class", "commit-bullets"), a = e.append("g").attr("class", "commit-labels"), o = K === "TB" || K === "BT" ? H : 0, s = [...t.keys()], c = r.parallelCommits ?? !1, l = /* @__PURE__ */ p((e, n) => {
|
|
492
|
+
let r = t.get(e)?.seq, i = t.get(n)?.seq;
|
|
493
|
+
return r !== void 0 && i !== void 0 ? r - i : 0;
|
|
494
|
+
}, "sortKeys"), u = s.sort(l);
|
|
495
|
+
K === "BT" && (c && Ce(u, t, o), u = u.reverse()), u.forEach((e) => {
|
|
496
|
+
let s = t.get(e);
|
|
497
|
+
if (!s) throw Error(`Commit not found for key ${e}`);
|
|
498
|
+
c && (o = Me(s, K, o, V));
|
|
499
|
+
let l = Ne(s, o, c);
|
|
500
|
+
if (n) {
|
|
501
|
+
let e = je(s), t = s.customType ?? s.type;
|
|
502
|
+
Oe(i, s, l, e, B.get(s.branch)?.index ?? 0, t), ke(a, s, l, o, r), Ae(a, s, l, o);
|
|
503
|
+
}
|
|
504
|
+
K === "TB" || K === "BT" ? V.set(s.id, {
|
|
505
|
+
x: l.x,
|
|
506
|
+
y: l.posWithOffset
|
|
507
|
+
}) : V.set(s.id, {
|
|
508
|
+
x: l.posWithOffset,
|
|
509
|
+
y: l.y
|
|
510
|
+
}), o = K === "BT" && c ? o + M : o + M + j, o > G && (G = o);
|
|
511
|
+
});
|
|
512
|
+
}, "drawCommits"), Pe = /* @__PURE__ */ p((e, t, n, r, i) => {
|
|
513
|
+
let a = (K === "TB" || K === "BT" ? n.x < r.x : n.y < r.y) ? t.branch : e.branch, o = /* @__PURE__ */ p((e) => e.branch === a, "isOnBranchToGetCurve"), s = /* @__PURE__ */ p((n) => n.seq > e.seq && n.seq < t.seq, "isBetweenCommits");
|
|
514
|
+
return [...i.values()].some((e) => s(e) && o(e));
|
|
515
|
+
}, "shouldRerouteArrow"), Z = /* @__PURE__ */ p((e, t, n = 0) => {
|
|
516
|
+
let r = e + Math.abs(e - t) / 2;
|
|
517
|
+
return n > 5 ? r : W.every((e) => Math.abs(e - r) >= 10) ? (W.push(r), r) : Z(e, t - Math.abs(e - t) / 5, n + 1);
|
|
518
|
+
}, "findLane"), Fe = /* @__PURE__ */ p((e, t, n, r) => {
|
|
519
|
+
let { theme: i } = o(), a = R.has(i ?? ""), s = V.get(t.id), c = V.get(n.id);
|
|
520
|
+
if (s === void 0 || c === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
|
|
521
|
+
let l = Pe(t, n, s, c, r), u = "", d = "", f = 0, p = 0, m = B.get(n.branch)?.index;
|
|
522
|
+
n.type === x.MERGE && t.id !== n.parents[0] && (m = B.get(t.branch)?.index);
|
|
523
|
+
let h;
|
|
524
|
+
if (l) {
|
|
525
|
+
u = "A 10 10, 0, 0, 0,", d = "A 10 10, 0, 0, 1,", f = 10, p = 10;
|
|
526
|
+
let e = s.y < c.y ? Z(s.y, c.y) : Z(c.y, s.y), n = s.x < c.x ? Z(s.x, c.x) : Z(c.x, s.x);
|
|
527
|
+
K === "TB" ? s.x < c.x ? h = `M ${s.x} ${s.y} L ${n - f} ${s.y} ${d} ${n} ${s.y + p} L ${n} ${c.y - f} ${u} ${n + p} ${c.y} L ${c.x} ${c.y}` : (m = B.get(t.branch)?.index, h = `M ${s.x} ${s.y} L ${n + f} ${s.y} ${u} ${n} ${s.y + p} L ${n} ${c.y - f} ${d} ${n - p} ${c.y} L ${c.x} ${c.y}`) : K === "BT" ? s.x < c.x ? h = `M ${s.x} ${s.y} L ${n - f} ${s.y} ${u} ${n} ${s.y - p} L ${n} ${c.y + f} ${d} ${n + p} ${c.y} L ${c.x} ${c.y}` : (m = B.get(t.branch)?.index, h = `M ${s.x} ${s.y} L ${n + f} ${s.y} ${d} ${n} ${s.y - p} L ${n} ${c.y + f} ${u} ${n - p} ${c.y} L ${c.x} ${c.y}`) : s.y < c.y ? h = `M ${s.x} ${s.y} L ${s.x} ${e - f} ${u} ${s.x + p} ${e} L ${c.x - f} ${e} ${d} ${c.x} ${e + p} L ${c.x} ${c.y}` : (m = B.get(t.branch)?.index, h = `M ${s.x} ${s.y} L ${s.x} ${e + f} ${d} ${s.x + p} ${e} L ${c.x - f} ${e} ${u} ${c.x} ${e - p} L ${c.x} ${c.y}`);
|
|
528
|
+
} else u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, K === "TB" ? (s.x < c.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${u} ${s.x + p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${d} ${c.x} ${s.y + p} L ${c.x} ${c.y}`), s.x > c.x && (u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${d} ${s.x - p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + f} ${s.y} ${u} ${c.x} ${s.y + p} L ${c.x} ${c.y}`), s.x === c.x && (h = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : K === "BT" ? (s.x < c.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${d} ${s.x + p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${u} ${c.x} ${s.y - p} L ${c.x} ${c.y}`), s.x > c.x && (u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${u} ${s.x - p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + f} ${s.y} ${d} ${c.x} ${s.y - p} L ${c.x} ${c.y}`), s.x === c.x && (h = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : (s.y < c.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${d} ${c.x} ${s.y + p} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${u} ${s.x + p} ${c.y} L ${c.x} ${c.y}`), s.y > c.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${u} ${c.x} ${s.y - p} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${d} ${s.x + p} ${c.y} L ${c.x} ${c.y}`), s.y === c.y && (h = `M ${s.x} ${s.y} L ${c.x} ${c.y}`));
|
|
529
|
+
if (h === void 0) throw Error("Line definition not found");
|
|
530
|
+
e.append("path").attr("d", h).attr("class", "arrow arrow" + z(m, F, a));
|
|
531
|
+
}, "drawArrow"), Ie = /* @__PURE__ */ p((e, t) => {
|
|
532
|
+
let n = e.append("g").attr("class", "commit-arrows");
|
|
533
|
+
[...t.keys()].forEach((e) => {
|
|
534
|
+
let r = t.get(e);
|
|
535
|
+
r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
|
|
536
|
+
Fe(n, t.get(e), r, t);
|
|
537
|
+
});
|
|
538
|
+
});
|
|
539
|
+
}, "drawArrows"), Le = /* @__PURE__ */ p((e, t, n, r) => {
|
|
540
|
+
let { look: i, theme: a, themeVariables: s } = o(), { dropShadow: c, THEME_COLOR_LIMIT: l } = s, u = I.has(a ?? ""), d = R.has(a ?? ""), f = e.append("g");
|
|
541
|
+
t.forEach((e, t) => {
|
|
542
|
+
let a = z(t, u ? l : F, d), o = B.get(e.name)?.pos;
|
|
543
|
+
if (o === void 0) throw Error(`Position not found for branch ${e.name}`);
|
|
544
|
+
let s = K === "TB" || K === "BT" ? o : u ? o + L / 2 + 1 : o - 2, p = f.append("line");
|
|
545
|
+
p.attr("x1", 0), p.attr("y1", s), p.attr("x2", G), p.attr("y2", s), p.attr("class", "branch branch" + a), K === "TB" ? (p.attr("y1", H), p.attr("x1", o), p.attr("y2", G), p.attr("x2", o)) : K === "BT" && (p.attr("y1", G), p.attr("x1", o), p.attr("y2", H), p.attr("x2", o)), W.push(s);
|
|
546
|
+
let m = e.name, h = J(m), g = f.insert("rect"), _ = f.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + a);
|
|
547
|
+
_.node().appendChild(h);
|
|
548
|
+
let v = h.getBBox(), y = u ? 0 : 4, b = u ? 16 : 0, x = u ? L : 0;
|
|
549
|
+
i === "neo" && g.attr("data-look", "neo"), g.attr("class", "branchLabelBkg label" + a).attr("style", i === "neo" ? `filter:${u ? `url(#${r}-drop-shadow)` : c}` : "").attr("rx", y).attr("ry", y).attr("x", -v.width - 4 - (n.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -v.height / 2 + 10).attr("width", v.width + 18 + b).attr("height", v.height + 4 + x), _.attr("transform", "translate(" + (-v.width - 14 - (n.rotateCommitLabel === !0 ? 30 : 0) + b / 2) + ", " + (s - v.height / 2 - 2) + ")"), K === "TB" ? (g.attr("x", o - v.width / 2 - 10).attr("y", 0), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", 0)"), u && (g.attr("transform", `translate(${-b / 2 - 3}, ${-x - 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (-x * 2 + 7) + ")"))) : K === "BT" ? (g.attr("x", o - v.width / 2 - 10).attr("y", G), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + G + ")"), u && (g.attr("transform", `translate(${-b / 2 - 3}, ${x + 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (G + x * 2 + 4) + ")"))) : g.attr("transform", "translate(-19, " + (s - 12 - x / 2) + ")");
|
|
550
|
+
});
|
|
551
|
+
}, "drawBranches"), Re = /* @__PURE__ */ p(function(e, t, n, r, i) {
|
|
552
|
+
return B.set(e, {
|
|
553
|
+
pos: t,
|
|
554
|
+
index: n
|
|
555
|
+
}), t += 50 + (i ? 40 : 0) + (K === "TB" || K === "BT" ? r.width / 2 : 0), t;
|
|
556
|
+
}, "setBranchPosition"), ze = { draw: /* @__PURE__ */ p(function(e, t, n, r) {
|
|
557
|
+
q(), f.debug("in gitgraph renderer", e + "\n", "id:", t, n);
|
|
558
|
+
let i = r.db;
|
|
559
|
+
if (!i.getConfig) {
|
|
560
|
+
f.error("getConfig method is not available on db");
|
|
561
|
+
return;
|
|
562
|
+
}
|
|
563
|
+
let a = i.getConfig(), s = a.rotateCommitLabel ?? !1;
|
|
564
|
+
U = i.getCommits();
|
|
565
|
+
let l = i.getBranchesAsObjArray();
|
|
566
|
+
K = i.getDirection();
|
|
567
|
+
let u = m(`[id="${t}"]`), { look: d, theme: p, themeVariables: g } = o(), { useGradient: _, gradientStart: v, gradientStop: y, filterColor: b } = g;
|
|
568
|
+
if (_) {
|
|
569
|
+
let e = u.append("defs").append("linearGradient").attr("id", t + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
570
|
+
e.append("stop").attr("offset", "0%").attr("stop-color", v).attr("stop-opacity", 1), e.append("stop").attr("offset", "100%").attr("stop-color", y).attr("stop-opacity", 1);
|
|
571
|
+
}
|
|
572
|
+
d === "neo" && I.has(p ?? "") && u.append("defs").append("filter").attr("id", t + "-drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", b);
|
|
573
|
+
let x = 0;
|
|
574
|
+
l.forEach((e, t) => {
|
|
575
|
+
let n = J(e.name), r = u.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
|
|
576
|
+
a.node()?.appendChild(n);
|
|
577
|
+
let o = n.getBBox();
|
|
578
|
+
x = Re(e.name, x, t, o, s), a.remove(), i.remove(), r.remove();
|
|
579
|
+
}), X(u, U, !1, a), a.showBranches && Le(u, l, a, t), Ie(u, U), X(u, U, !0, a), h.insertTitle(u, "gitTitleText", a.titleTopMargin ?? 0, i.getDiagramTitle()), c(void 0, u, a.diagramPadding, a.useMaxWidth);
|
|
580
|
+
}, "draw") }, Q = 8, $ = /* @__PURE__ */ new Set([
|
|
581
|
+
"redux",
|
|
582
|
+
"redux-dark",
|
|
583
|
+
"redux-color",
|
|
584
|
+
"redux-dark-color"
|
|
585
|
+
]), Be = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Ve = /* @__PURE__ */ new Set(["neo", "neo-dark"]), He = /* @__PURE__ */ new Set([
|
|
586
|
+
"dark",
|
|
587
|
+
"redux-dark",
|
|
588
|
+
"redux-dark-color",
|
|
589
|
+
"neo-dark"
|
|
590
|
+
]), Ue = /* @__PURE__ */ new Set([
|
|
591
|
+
"redux",
|
|
592
|
+
"redux-dark",
|
|
593
|
+
"redux-color",
|
|
594
|
+
"redux-dark-color",
|
|
595
|
+
"neo",
|
|
596
|
+
"neo-dark"
|
|
597
|
+
]), We = /* @__PURE__ */ p((e) => {
|
|
598
|
+
let { svgId: t } = e, n = "";
|
|
599
|
+
if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
|
|
600
|
+
.label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
|
|
601
|
+
`;
|
|
602
|
+
return n;
|
|
603
|
+
}, "genGitGraphGradient"), Ge = /* @__PURE__ */ p((e) => {
|
|
604
|
+
let { theme: t, themeVariables: n } = d(), { borderColorArray: r } = n, i = $.has(t);
|
|
605
|
+
if (Ve.has(t)) {
|
|
606
|
+
let t = "";
|
|
607
|
+
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
|
|
608
|
+
.branch-label${n} { fill: ${e.nodeBorder};}
|
|
609
|
+
.commit${n} { stroke: ${e.nodeBorder}; }
|
|
610
|
+
.commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
611
|
+
.arrow${n} { stroke: ${e.nodeBorder}; }
|
|
612
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
613
|
+
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
614
|
+
${We(e)}`;
|
|
615
|
+
else {
|
|
616
|
+
let r = n % Q;
|
|
617
|
+
t += `
|
|
618
|
+
.branch-label${n} { fill: ${e["gitBranchLabel" + r]}; }
|
|
619
|
+
.commit${n} { stroke: ${e["git" + r]}; fill: ${e["git" + r]}; }
|
|
620
|
+
.commit-highlight${n} { stroke: ${e["gitInv" + r]}; fill: ${e["gitInv" + r]}; }
|
|
621
|
+
.arrow${n} { stroke: ${e["git" + r]}; }
|
|
622
|
+
`;
|
|
623
|
+
}
|
|
624
|
+
return t;
|
|
625
|
+
} else if (Be.has(t)) {
|
|
626
|
+
let n = "";
|
|
627
|
+
for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) n += `
|
|
628
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
|
|
629
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
630
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
|
|
631
|
+
.label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
|
|
632
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
633
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
634
|
+
`;
|
|
635
|
+
else {
|
|
636
|
+
let o = a % r.length;
|
|
637
|
+
n += `
|
|
638
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
|
|
639
|
+
.commit${a} { stroke: ${r[o]}; fill: ${r[o]}; }
|
|
640
|
+
.commit-highlight${a} { stroke: ${r[o]}; fill: ${r[o]}; }
|
|
641
|
+
.label${a} { fill: ${He.has(t) ? e.mainBkg : r[o]}; stroke: ${r[o]}; stroke-width: ${e.strokeWidth}; }
|
|
642
|
+
.arrow${a} { stroke: ${r[o]}; }
|
|
643
|
+
`;
|
|
644
|
+
}
|
|
645
|
+
return n;
|
|
646
|
+
} else {
|
|
647
|
+
let t = "";
|
|
648
|
+
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) t += `
|
|
649
|
+
.branch-label${n} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
|
|
650
|
+
.commit${n} { stroke: ${e.nodeBorder}; }
|
|
651
|
+
.commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
652
|
+
.label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i ? `font-weight:${e.noteFontWeight}` : ""}}
|
|
653
|
+
.arrow${n} { stroke: ${e.nodeBorder}; }
|
|
654
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
655
|
+
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
656
|
+
`;
|
|
657
|
+
return t;
|
|
658
|
+
}
|
|
659
|
+
}, "genColor"), Ke = /* @__PURE__ */ p((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
|
|
660
|
+
let n = t % Q;
|
|
661
|
+
return `
|
|
662
|
+
.branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
|
|
663
|
+
.commit${t} { stroke: ${e["git" + n]}; fill: ${e["git" + n]}; }
|
|
664
|
+
.commit-highlight${t} { stroke: ${e["gitInv" + n]}; fill: ${e["gitInv" + n]}; }
|
|
665
|
+
.label${t} { fill: ${e["git" + n]}; }
|
|
666
|
+
.arrow${t} { stroke: ${e["git" + n]}; }
|
|
667
|
+
`;
|
|
668
|
+
}).join("\n")}`, "normalTheme"), qe = {
|
|
669
|
+
parser: be,
|
|
670
|
+
db: A,
|
|
671
|
+
renderer: ze,
|
|
672
|
+
styles: /* @__PURE__ */ p((e) => {
|
|
673
|
+
let { theme: t } = d(), n = Ue.has(t);
|
|
674
|
+
return `
|
|
675
|
+
.commit-id,
|
|
676
|
+
.commit-msg,
|
|
677
|
+
.branch-label {
|
|
678
|
+
fill: lightgrey;
|
|
679
|
+
color: lightgrey;
|
|
680
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
681
|
+
font-family: var(--mermaid-font-family);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
${n ? Ge(e) : Ke(e)}
|
|
685
|
+
|
|
686
|
+
.branch {
|
|
687
|
+
stroke-width: ${e.strokeWidth};
|
|
688
|
+
stroke: ${e.commitLineColor ?? e.lineColor};
|
|
689
|
+
stroke-dasharray: ${n ? "4 2" : "2"};
|
|
690
|
+
}
|
|
691
|
+
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${n ? e.nodeBorder : e.commitLabelColor}; ${n ? `font-weight:${e.noteFontWeight};` : ""}}
|
|
692
|
+
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${n ? "transparent" : e.commitLabelBackground}; opacity: ${n ? "" : .5}; }
|
|
693
|
+
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
694
|
+
.tag-label-bkg { fill: ${n ? e.mainBkg : e.tagLabelBackground}; stroke: ${n ? e.nodeBorder : e.tagLabelBorder}; ${n ? `filter:${e.dropShadow}` : ""} }
|
|
695
|
+
.tag-hole { fill: ${e.textColor}; }
|
|
696
|
+
|
|
697
|
+
.commit-merge {
|
|
698
|
+
stroke: ${n ? e.mainBkg : e.primaryColor};
|
|
699
|
+
fill: ${n ? e.mainBkg : e.primaryColor};
|
|
700
|
+
}
|
|
701
|
+
.commit-reverse {
|
|
702
|
+
stroke: ${n ? e.mainBkg : e.primaryColor};
|
|
703
|
+
fill: ${n ? e.mainBkg : e.primaryColor};
|
|
704
|
+
stroke-width: ${n ? e.strokeWidth : 3};
|
|
705
|
+
}
|
|
706
|
+
.commit-highlight-outer {
|
|
707
|
+
}
|
|
708
|
+
.commit-highlight-inner {
|
|
709
|
+
stroke: ${n ? e.mainBkg : e.primaryColor};
|
|
710
|
+
fill: ${n ? e.mainBkg : e.primaryColor};
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.arrow {
|
|
714
|
+
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
715
|
+
stroke-width: ${$.has(t) ? e.strokeWidth : 8};
|
|
716
|
+
stroke-linecap: round;
|
|
717
|
+
fill: none
|
|
718
|
+
}
|
|
719
|
+
.gitTitleText {
|
|
720
|
+
text-anchor: middle;
|
|
721
|
+
font-size: 18px;
|
|
722
|
+
fill: ${e.textColor};
|
|
723
|
+
}
|
|
724
|
+
`;
|
|
725
|
+
}, "getStyles")
|
|
726
|
+
};
|
|
727
|
+
//#endregion
|
|
728
|
+
export { qe as diagram };
|