@sme.up/ketchup2 2.7.0 → 2.8.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/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
- package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
- package/dist/{arc-CVbkjF8U.js → arc-7ZXqzxve.js} +1 -1
- package/dist/{arc-w3BipdfE.cjs → arc-DBilzVYt.cjs} +1 -1
- package/dist/architecture-7GRP2DOG-DYFsLst2.js +3 -0
- package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +1 -0
- package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +36 -0
- package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -251
- package/dist/assets/svg/functions.svg +1 -0
- package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
- package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +5 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
- package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +15 -1
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
- package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
- package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
- package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
- package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
- package/dist/channel-BvUly9jN.cjs +1 -0
- package/dist/{channel-C-LAmObA.js → channel-D6agWknC.js} +1 -1
- package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
- package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
- package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
- package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
- package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
- package/dist/{chunk-FMBD7UC4-BIKI8zae.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
- package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
- package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
- package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
- package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
- package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-CNSdkWoH.js} +997 -764
- package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
- package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
- package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
- package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
- package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
- package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
- package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
- package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
- package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
- package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
- package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
- package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
- package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
- package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
- package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
- package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
- package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
- package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
- package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
- package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
- package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
- package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
- package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
- package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-DJgD-hyF.js} +566 -522
- package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
- package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
- package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
- package/dist/{chunk-727SXJPM-Dj8nsm0O.cjs → chunk-TICWLB2K-1u0p_luB.cjs} +7 -7
- package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-DqSHwYf9.js} +183 -177
- package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
- package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
- package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
- package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
- package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
- package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
- package/dist/components/data-table/data-table-types.d.ts +52 -1
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-types.d.ts +7 -1
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
- package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
- package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-CE0T5PqO.js} +25 -24
- package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
- package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
- package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
- package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
- package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
- package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
- package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
- package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
- package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
- package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
- package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
- package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
- package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
- package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
- package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
- package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
- package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
- package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
- package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
- package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
- package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
- package/dist/{dist-Btd8EZyy.js → dist-C7OpkiTz.js} +2 -3
- package/dist/dist-DrOEvFlx.cjs +1 -0
- package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
- package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
- package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
- package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
- package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
- package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
- package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
- package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +17 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +5 -0
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
- package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
- package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +675 -671
- package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
- package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
- package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
- package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
- package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
- package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
- package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
- package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
- package/dist/{ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
- package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
- package/dist/{journeyDiagram-JHISSGLW-DfnmJPLn.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
- package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
- package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
- package/dist/katex-DUe6VLjC.cjs +257 -0
- package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
- package/dist/ketchup2.cjs.js +156 -154
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +31759 -29656
- package/dist/{line-DIhSUgmA.js → line-BEo8vh4N.js} +1 -1
- package/dist/{line-CzwncDY3.cjs → line-wiGgVVGi.cjs} +1 -1
- package/dist/{linear-DUAteVwl.js → linear-BNesvT28.js} +1 -1
- package/dist/{linear-1lpO_WlJ.cjs → linear-YA14Lx5Z.cjs} +1 -1
- package/dist/locale/en/translation.json.d.ts +16 -0
- package/dist/locale/it/translation.json.d.ts +16 -0
- package/dist/mermaid-parser.core-CqChDTj1.cjs +6 -0
- package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
- package/dist/{mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
- package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
- package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
- package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
- package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
- package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
- package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
- package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
- package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
- package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
- package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
- package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
- package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
- package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
- package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
- package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
- package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
- package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
- package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
- package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
- package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
- package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
- package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
- package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
- package/dist/src-B16ML7oM.cjs +1 -0
- package/dist/{src-DjDATEq3.js → src-D-6ZfKf9.js} +500 -507
- package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
- package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
- package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
- package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
- package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
- package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
- package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
- package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
- package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
- package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
- package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
- package/dist/treemap-WGGIJYW6-D4tTzsvR.js +3 -0
- package/dist/types/translation.d.ts +17 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -1
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
- package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
- package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
- package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
- package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
- package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
- package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
- package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
- package/package.json +5 -2
- package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
- package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
- package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
- package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
- package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
- package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
- package/dist/channel-DJpMBAs-.cjs +0 -1
- package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
- package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
- package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
- package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
- package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
- package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
- package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
- package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
- package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
- package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
- package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
- package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
- package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
- package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
- package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
- package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
- package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
- package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
- package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
- package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
- package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
- package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
- package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
- package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
- package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
- package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
- package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
- package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
- package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
- package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
- package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
- package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
- package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
- package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
- package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
- package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
- package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
- package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
- package/dist/dist-D8RD2QWc.cjs +0 -1
- package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
- package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
- package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
- package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
- package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
- package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
- package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
- package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
- package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
- package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
- package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
- package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
- package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
- package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
- package/dist/katex-CkiTumqg.cjs +0 -257
- package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
- package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
- package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
- package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
- package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
- package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
- package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
- package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
- package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
- package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
- package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
- package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
- package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
- package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
- package/dist/src-DEmZ9bFr.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
- package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
- package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
- package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
- package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
- package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
- package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
- package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
- package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
- package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
- package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
- package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
- package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { H as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
|
|
1
|
+
import { m as e, p as t } from "./src-D-6ZfKf9.js";
|
|
2
|
+
import { H as n, K as r, U as i, Y as a, a as o, b as s, f as c, s as l, v as u, w as d, x as f, y as p } from "./chunk-DU6HZSFF-CNSdkWoH.js";
|
|
3
|
+
import { n as m } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
4
|
+
import { g as h, i as g, m as _ } from "./chunk-75Z2AOVW-BwUD389x.js";
|
|
5
|
+
import { n as v } from "./mermaid-parser.core-oFB-qEU8.js";
|
|
6
|
+
import { t as y } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
|
|
7
|
+
import { t as b } from "./chunk-2Q5K7J3B-kzxEEeTu.js";
|
|
8
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-WWUBYQGX.mjs
|
|
8
9
|
var x = {
|
|
9
10
|
NORMAL: 0,
|
|
10
11
|
REVERSE: 1,
|
|
11
12
|
HIGHLIGHT: 2,
|
|
12
13
|
MERGE: 3,
|
|
13
14
|
CHERRY_PICK: 4
|
|
14
|
-
}, ee =
|
|
15
|
+
}, ee = c.gitGraph, S = /* @__PURE__ */ m(() => g({
|
|
15
16
|
...ee,
|
|
16
|
-
...
|
|
17
|
+
...s().gitGraph
|
|
17
18
|
}), "getConfig"), C = new b(() => {
|
|
18
19
|
let e = S(), t = e.mainBranchName, n = e.mainBranchOrder;
|
|
19
20
|
return {
|
|
@@ -34,7 +35,7 @@ var x = {
|
|
|
34
35
|
function w() {
|
|
35
36
|
return _({ length: 7 });
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
+
m(w, "getID");
|
|
38
39
|
function T(e, t) {
|
|
39
40
|
let n = /* @__PURE__ */ Object.create(null);
|
|
40
41
|
return e.reduce((e, r) => {
|
|
@@ -42,23 +43,23 @@ function T(e, t) {
|
|
|
42
43
|
return n[i] || (n[i] = !0, e.push(r)), e;
|
|
43
44
|
}, []);
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
var te = /* @__PURE__ */
|
|
46
|
+
m(T, "uniqBy");
|
|
47
|
+
var te = /* @__PURE__ */ m(function(e) {
|
|
47
48
|
C.records.direction = e;
|
|
48
|
-
}, "setDirection"), ne = /* @__PURE__ */
|
|
49
|
+
}, "setDirection"), ne = /* @__PURE__ */ m(function(t) {
|
|
49
50
|
e.debug("options str", t), t = t?.trim(), t ||= "{}";
|
|
50
51
|
try {
|
|
51
52
|
C.records.options = JSON.parse(t);
|
|
52
53
|
} catch (t) {
|
|
53
54
|
e.error("error while parsing gitGraph options", t.message);
|
|
54
55
|
}
|
|
55
|
-
}, "setOptions"), re = /* @__PURE__ */
|
|
56
|
+
}, "setOptions"), re = /* @__PURE__ */ m(function() {
|
|
56
57
|
return C.records.options;
|
|
57
|
-
}, "getOptions"), ie = /* @__PURE__ */
|
|
58
|
+
}, "getOptions"), ie = /* @__PURE__ */ m(function(t) {
|
|
58
59
|
let n = t.msg, r = t.id, i = t.type, a = t.tags;
|
|
59
60
|
e.info("commit", n, r, i, a), e.debug("Entering commit:", n, r, i, a);
|
|
60
61
|
let o = S();
|
|
61
|
-
r =
|
|
62
|
+
r = l.sanitizeText(r, o), n = l.sanitizeText(n, o), a = a?.map((e) => l.sanitizeText(e, o));
|
|
62
63
|
let s = {
|
|
63
64
|
id: r || C.records.seq + "-" + w(),
|
|
64
65
|
message: n,
|
|
@@ -69,18 +70,18 @@ var te = /* @__PURE__ */ t(function(e) {
|
|
|
69
70
|
branch: C.records.currBranch
|
|
70
71
|
};
|
|
71
72
|
C.records.head = s, e.info("main branch", o.mainBranchName), C.records.commits.has(s.id) && e.warn(`Commit ID ${s.id} already exists`), C.records.commits.set(s.id, s), C.records.branches.set(C.records.currBranch, s.id), e.debug("in pushCommit " + s.id);
|
|
72
|
-
}, "commit"), ae = /* @__PURE__ */
|
|
73
|
+
}, "commit"), ae = /* @__PURE__ */ m(function(t) {
|
|
73
74
|
let n = t.name, r = t.order;
|
|
74
|
-
if (n =
|
|
75
|
+
if (n = l.sanitizeText(n, S()), C.records.branches.has(n)) 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 ${n}")`);
|
|
75
76
|
C.records.branches.set(n, C.records.head == null ? null : C.records.head.id), C.records.branchConfig.set(n, {
|
|
76
77
|
name: n,
|
|
77
78
|
order: r
|
|
78
79
|
}), E(n), e.debug("in createBranch");
|
|
79
|
-
}, "branch"), oe = /* @__PURE__ */
|
|
80
|
+
}, "branch"), oe = /* @__PURE__ */ m((t) => {
|
|
80
81
|
let n = t.branch, r = t.id, i = t.type, a = t.tags, o = S();
|
|
81
|
-
n =
|
|
82
|
-
let s = C.records.branches.get(C.records.currBranch), c = C.records.branches.get(n),
|
|
83
|
-
if (
|
|
82
|
+
n = l.sanitizeText(n, o), r &&= l.sanitizeText(r, o);
|
|
83
|
+
let s = C.records.branches.get(C.records.currBranch), c = C.records.branches.get(n), u = s ? C.records.commits.get(s) : void 0, d = c ? C.records.commits.get(c) : void 0;
|
|
84
|
+
if (u && d && u.branch === n) throw Error(`Cannot merge branch '${n}' into itself.`);
|
|
84
85
|
if (C.records.currBranch === n) {
|
|
85
86
|
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
|
|
86
87
|
throw e.hash = {
|
|
@@ -89,7 +90,7 @@ var te = /* @__PURE__ */ t(function(e) {
|
|
|
89
90
|
expected: ["branch abc"]
|
|
90
91
|
}, e;
|
|
91
92
|
}
|
|
92
|
-
if (
|
|
93
|
+
if (u === void 0 || !u) {
|
|
93
94
|
let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);
|
|
94
95
|
throw e.hash = {
|
|
95
96
|
text: `merge ${n}`,
|
|
@@ -113,7 +114,7 @@ var te = /* @__PURE__ */ t(function(e) {
|
|
|
113
114
|
expected: ["\"commit\""]
|
|
114
115
|
}, e;
|
|
115
116
|
}
|
|
116
|
-
if (
|
|
117
|
+
if (u === d) {
|
|
117
118
|
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
|
|
118
119
|
throw e.hash = {
|
|
119
120
|
text: `merge ${n}`,
|
|
@@ -141,11 +142,11 @@ var te = /* @__PURE__ */ t(function(e) {
|
|
|
141
142
|
tags: a ?? []
|
|
142
143
|
};
|
|
143
144
|
C.records.head = p, C.records.commits.set(p.id, p), C.records.branches.set(C.records.currBranch, p.id), e.debug(C.records.branches), e.debug("in mergeBranch");
|
|
144
|
-
}, "merge"), se = /* @__PURE__ */
|
|
145
|
+
}, "merge"), se = /* @__PURE__ */ m(function(t) {
|
|
145
146
|
let n = t.id, r = t.targetId, i = t.tags, a = t.parent;
|
|
146
147
|
e.debug("Entering cherryPick:", n, r, i);
|
|
147
148
|
let o = S();
|
|
148
|
-
if (n =
|
|
149
|
+
if (n = l.sanitizeText(n, o), r = l.sanitizeText(r, o), i = i?.map((e) => l.sanitizeText(e, o)), a = l.sanitizeText(a, o), !n || !C.records.commits.has(n)) {
|
|
149
150
|
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
150
151
|
throw e.hash = {
|
|
151
152
|
text: `cherryPick ${n} ${r}`,
|
|
@@ -196,8 +197,8 @@ var te = /* @__PURE__ */ t(function(e) {
|
|
|
196
197
|
};
|
|
197
198
|
C.records.head = l, C.records.commits.set(l.id, l), C.records.branches.set(C.records.currBranch, l.id), e.debug(C.records.branches), e.debug("in cherryPick");
|
|
198
199
|
}
|
|
199
|
-
}, "cherryPick"), E = /* @__PURE__ */
|
|
200
|
-
if (e =
|
|
200
|
+
}, "cherryPick"), E = /* @__PURE__ */ m(function(e) {
|
|
201
|
+
if (e = l.sanitizeText(e, S()), C.records.branches.has(e)) {
|
|
201
202
|
C.records.currBranch = e;
|
|
202
203
|
let t = C.records.branches.get(C.records.currBranch);
|
|
203
204
|
t === void 0 || !t ? C.records.head = null : C.records.head = C.records.commits.get(t) ?? null;
|
|
@@ -214,7 +215,7 @@ function D(e, t, n) {
|
|
|
214
215
|
let r = e.indexOf(t);
|
|
215
216
|
r === -1 ? e.push(n) : e.splice(r, 1, n);
|
|
216
217
|
}
|
|
217
|
-
|
|
218
|
+
m(D, "upsert");
|
|
218
219
|
function O(t) {
|
|
219
220
|
let n = t.reduce((e, t) => e.seq > t.seq ? e : t, t[0]), r = "";
|
|
220
221
|
t.forEach(function(e) {
|
|
@@ -236,23 +237,23 @@ function O(t) {
|
|
|
236
237
|
}
|
|
237
238
|
t = T(t, (e) => e.id), O(t);
|
|
238
239
|
}
|
|
239
|
-
|
|
240
|
-
var ce = /* @__PURE__ */
|
|
240
|
+
m(O, "prettyPrintCommitHistory");
|
|
241
|
+
var ce = /* @__PURE__ */ m(function() {
|
|
241
242
|
e.debug(C.records.commits);
|
|
242
243
|
let t = k()[0];
|
|
243
244
|
O([t]);
|
|
244
|
-
}, "prettyPrint"), le = /* @__PURE__ */
|
|
245
|
-
C.reset(),
|
|
246
|
-
}, "clear"), ue = /* @__PURE__ */
|
|
245
|
+
}, "prettyPrint"), le = /* @__PURE__ */ m(function() {
|
|
246
|
+
C.reset(), o();
|
|
247
|
+
}, "clear"), ue = /* @__PURE__ */ m(function() {
|
|
247
248
|
return [...C.records.branchConfig.values()].map((e, t) => e.order !== null && e.order !== void 0 ? e : {
|
|
248
249
|
...e,
|
|
249
250
|
order: parseFloat(`0.${t}`)
|
|
250
251
|
}).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map(({ name: e }) => ({ name: e }));
|
|
251
|
-
}, "getBranchesAsObjArray"), de = /* @__PURE__ */
|
|
252
|
+
}, "getBranchesAsObjArray"), de = /* @__PURE__ */ m(function() {
|
|
252
253
|
return C.records.branches;
|
|
253
|
-
}, "getBranches"), fe = /* @__PURE__ */
|
|
254
|
+
}, "getBranches"), fe = /* @__PURE__ */ m(function() {
|
|
254
255
|
return C.records.commits;
|
|
255
|
-
}, "getCommits"), k = /* @__PURE__ */
|
|
256
|
+
}, "getCommits"), k = /* @__PURE__ */ m(function() {
|
|
256
257
|
let t = [...C.records.commits.values()];
|
|
257
258
|
return t.forEach(function(t) {
|
|
258
259
|
e.debug(t.id);
|
|
@@ -274,52 +275,52 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
274
275
|
getBranches: de,
|
|
275
276
|
getCommits: fe,
|
|
276
277
|
getCommitsArray: k,
|
|
277
|
-
getCurrentBranch: /* @__PURE__ */
|
|
278
|
+
getCurrentBranch: /* @__PURE__ */ m(function() {
|
|
278
279
|
return C.records.currBranch;
|
|
279
280
|
}, "getCurrentBranch"),
|
|
280
|
-
getDirection: /* @__PURE__ */
|
|
281
|
+
getDirection: /* @__PURE__ */ m(function() {
|
|
281
282
|
return C.records.direction;
|
|
282
283
|
}, "getDirection"),
|
|
283
|
-
getHead: /* @__PURE__ */
|
|
284
|
+
getHead: /* @__PURE__ */ m(function() {
|
|
284
285
|
return C.records.head;
|
|
285
286
|
}, "getHead"),
|
|
286
|
-
setAccTitle:
|
|
287
|
-
getAccTitle:
|
|
288
|
-
getAccDescription:
|
|
289
|
-
setAccDescription:
|
|
290
|
-
setDiagramTitle:
|
|
291
|
-
getDiagramTitle:
|
|
292
|
-
}, pe = /* @__PURE__ */
|
|
287
|
+
setAccTitle: i,
|
|
288
|
+
getAccTitle: p,
|
|
289
|
+
getAccDescription: u,
|
|
290
|
+
setAccDescription: n,
|
|
291
|
+
setDiagramTitle: r,
|
|
292
|
+
getDiagramTitle: d
|
|
293
|
+
}, pe = /* @__PURE__ */ m((e, t) => {
|
|
293
294
|
y(e, t), e.dir && t.setDirection(e.dir);
|
|
294
295
|
for (let n of e.statements) me(n, t);
|
|
295
|
-
}, "populate"), me = /* @__PURE__ */
|
|
296
|
-
let
|
|
297
|
-
Commit: /* @__PURE__ */
|
|
298
|
-
Branch: /* @__PURE__ */
|
|
299
|
-
Merge: /* @__PURE__ */
|
|
300
|
-
Checkout: /* @__PURE__ */
|
|
301
|
-
CherryPicking: /* @__PURE__ */
|
|
302
|
-
}[
|
|
303
|
-
|
|
304
|
-
}, "parseStatement"), he = /* @__PURE__ */
|
|
296
|
+
}, "populate"), me = /* @__PURE__ */ m((t, n) => {
|
|
297
|
+
let r = {
|
|
298
|
+
Commit: /* @__PURE__ */ m((e) => n.commit(he(e)), "Commit"),
|
|
299
|
+
Branch: /* @__PURE__ */ m((e) => n.branch(ge(e)), "Branch"),
|
|
300
|
+
Merge: /* @__PURE__ */ m((e) => n.merge(_e(e)), "Merge"),
|
|
301
|
+
Checkout: /* @__PURE__ */ m((e) => n.checkout(ve(e)), "Checkout"),
|
|
302
|
+
CherryPicking: /* @__PURE__ */ m((e) => n.cherryPick(ye(e)), "CherryPicking")
|
|
303
|
+
}[t.$type];
|
|
304
|
+
r ? r(t) : e.error(`Unknown statement type: ${t.$type}`);
|
|
305
|
+
}, "parseStatement"), he = /* @__PURE__ */ m((e) => ({
|
|
305
306
|
id: e.id,
|
|
306
307
|
msg: e.message ?? "",
|
|
307
308
|
type: e.type === void 0 ? x.NORMAL : x[e.type],
|
|
308
309
|
tags: e.tags ?? void 0
|
|
309
|
-
}), "parseCommit"), ge = /* @__PURE__ */
|
|
310
|
+
}), "parseCommit"), ge = /* @__PURE__ */ m((e) => ({
|
|
310
311
|
name: e.name,
|
|
311
312
|
order: e.order ?? 0
|
|
312
|
-
}), "parseBranch"), _e = /* @__PURE__ */
|
|
313
|
+
}), "parseBranch"), _e = /* @__PURE__ */ m((e) => ({
|
|
313
314
|
branch: e.branch,
|
|
314
315
|
id: e.id ?? "",
|
|
315
316
|
type: e.type === void 0 ? void 0 : x[e.type],
|
|
316
317
|
tags: e.tags ?? void 0
|
|
317
|
-
}), "parseMerge"), ve = /* @__PURE__ */
|
|
318
|
+
}), "parseMerge"), ve = /* @__PURE__ */ m((e) => e.branch, "parseCheckout"), ye = /* @__PURE__ */ m((e) => ({
|
|
318
319
|
id: e.id,
|
|
319
320
|
targetId: "",
|
|
320
321
|
tags: e.tags?.length === 0 ? void 0 : e.tags,
|
|
321
322
|
parent: e.parent
|
|
322
|
-
}), "parseCherryPicking"), be = { parse: /* @__PURE__ */
|
|
323
|
+
}), "parseCherryPicking"), be = { parse: /* @__PURE__ */ m(async (t) => {
|
|
323
324
|
let n = await v("gitGraph", t);
|
|
324
325
|
e.debug(n), pe(n, A);
|
|
325
326
|
}, "parse") }, j = 10, M = 40, N = 4, P = 2, F = 8, I = /* @__PURE__ */ new Set([
|
|
@@ -332,38 +333,38 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
332
333
|
"redux-dark",
|
|
333
334
|
"redux-dark-color",
|
|
334
335
|
"neo-dark"
|
|
335
|
-
]), z = /* @__PURE__ */
|
|
336
|
+
]), z = /* @__PURE__ */ m((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", Se = /* @__PURE__ */ m(() => {
|
|
336
337
|
B.clear(), V.clear(), U.clear(), G = 0, W = [], K = "LR";
|
|
337
|
-
}, "clear"),
|
|
338
|
+
}, "clear"), q = /* @__PURE__ */ m((e) => {
|
|
338
339
|
let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
339
340
|
return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
|
|
340
341
|
let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
341
342
|
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
343
|
}), t;
|
|
343
|
-
}, "drawText"),
|
|
344
|
-
let n, r
|
|
345
|
-
return K === "BT" ? (
|
|
346
|
-
let
|
|
347
|
-
|
|
348
|
-
}),
|
|
349
|
-
}, "findClosestParent"),
|
|
344
|
+
}, "drawText"), J = /* @__PURE__ */ m((e) => {
|
|
345
|
+
let t, n, r;
|
|
346
|
+
return K === "BT" ? (n = /* @__PURE__ */ m((e, t) => e <= t, "comparisonFunc"), r = Infinity) : (n = /* @__PURE__ */ m((e, t) => e >= t, "comparisonFunc"), r = 0), e.forEach((e) => {
|
|
347
|
+
let i = K === "TB" || K == "BT" ? V.get(e)?.y : V.get(e)?.x;
|
|
348
|
+
i !== void 0 && n(i, r) && (t = e, r = i);
|
|
349
|
+
}), t;
|
|
350
|
+
}, "findClosestParent"), Ce = /* @__PURE__ */ m((e) => {
|
|
350
351
|
let t = "", n = Infinity;
|
|
351
352
|
return e.forEach((e) => {
|
|
352
353
|
let r = V.get(e).y;
|
|
353
354
|
r <= n && (t = e, n = r);
|
|
354
355
|
}), t || void 0;
|
|
355
|
-
}, "findClosestParentBT"),
|
|
356
|
+
}, "findClosestParentBT"), we = /* @__PURE__ */ m((e, t, n) => {
|
|
356
357
|
let r = n, i = n, a = [];
|
|
357
358
|
e.forEach((e) => {
|
|
358
359
|
let n = t.get(e);
|
|
359
360
|
if (!n) throw Error(`Commit not found for key ${e}`);
|
|
360
|
-
n.parents.length ? (r =
|
|
361
|
+
n.parents.length ? (r = Ee(n), i = Math.max(r, i)) : a.push(n), De(n, r);
|
|
361
362
|
}), r = i, a.forEach((e) => {
|
|
362
|
-
|
|
363
|
+
Oe(e, r, n);
|
|
363
364
|
}), e.forEach((e) => {
|
|
364
365
|
let n = t.get(e);
|
|
365
366
|
if (n?.parents.length) {
|
|
366
|
-
let e =
|
|
367
|
+
let e = Ce(n.parents);
|
|
367
368
|
r = V.get(e).y - M, r <= i && (i = r);
|
|
368
369
|
let t = B.get(n.branch).pos, a = r - j;
|
|
369
370
|
V.set(n.id, {
|
|
@@ -372,13 +373,13 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
372
373
|
});
|
|
373
374
|
}
|
|
374
375
|
});
|
|
375
|
-
}, "setParallelBTPos"),
|
|
376
|
-
let t =
|
|
376
|
+
}, "setParallelBTPos"), Te = /* @__PURE__ */ m((e) => {
|
|
377
|
+
let t = J(e.parents.filter((e) => e !== null));
|
|
377
378
|
if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
|
|
378
379
|
let n = V.get(t)?.y;
|
|
379
380
|
if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
|
|
380
381
|
return n;
|
|
381
|
-
}, "findClosestParentPos"),
|
|
382
|
+
}, "findClosestParentPos"), Ee = /* @__PURE__ */ m((e) => Te(e) + M, "calculateCommitPosition"), De = /* @__PURE__ */ m((e, t) => {
|
|
382
383
|
let n = B.get(e.branch);
|
|
383
384
|
if (!n) throw Error(`Branch not found for commit ${e.id}`);
|
|
384
385
|
let r = n.pos, i = t + j;
|
|
@@ -389,7 +390,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
389
390
|
x: r,
|
|
390
391
|
y: i
|
|
391
392
|
};
|
|
392
|
-
}, "setCommitPosition"),
|
|
393
|
+
}, "setCommitPosition"), Oe = /* @__PURE__ */ m((e, t, n) => {
|
|
393
394
|
let r = B.get(e.branch);
|
|
394
395
|
if (!r) throw Error(`Branch not found for commit ${e.id}`);
|
|
395
396
|
let i = t + n, a = r.pos;
|
|
@@ -397,8 +398,8 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
397
398
|
x: a,
|
|
398
399
|
y: i
|
|
399
400
|
});
|
|
400
|
-
}, "setRootPosition"),
|
|
401
|
-
let { theme: o } =
|
|
401
|
+
}, "setRootPosition"), ke = /* @__PURE__ */ m((e, t, n, r, i, a) => {
|
|
402
|
+
let { theme: o } = f(), s = I.has(o ?? ""), c = R.has(o ?? ""), l = xe.has(o ?? "");
|
|
402
403
|
if (a === x.HIGHLIGHT) e.append("rect").attr("x", n.x - 10 + (s ? 3 : 0)).attr("y", n.y - 10 + (s ? 3 : 0)).attr("width", s ? 14 : 20).attr("height", s ? 14 : 20).attr("class", `commit ${t.id} commit-highlight${z(i, F, c)} ${r}-outer`), e.append("rect").attr("x", n.x - 6 + (s ? 2 : 0)).attr("y", n.y - 6 + (s ? 2 : 0)).attr("width", s ? 8 : 12).attr("height", s ? 8 : 12).attr("class", `commit ${t.id} commit${z(i, F, c)} ${r}-inner`);
|
|
403
404
|
else if (a === x.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", s ? 7 : 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#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", l ? "#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", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`);
|
|
404
405
|
else {
|
|
@@ -412,7 +413,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
412
413
|
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, c)}`);
|
|
413
414
|
}
|
|
414
415
|
}
|
|
415
|
-
}, "drawCommitBullet"),
|
|
416
|
+
}, "drawCommitBullet"), Ae = /* @__PURE__ */ m((e, t, n, r, i) => {
|
|
416
417
|
if (t.type !== x.CHERRY_PICK && (t.customId && t.type === x.MERGE || t.type !== x.MERGE) && i.showCommitLabel) {
|
|
417
418
|
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
419
|
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 + ")");
|
|
@@ -421,7 +422,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
421
422
|
a.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
|
|
422
423
|
}
|
|
423
424
|
}
|
|
424
|
-
}, "drawCommitLabel"),
|
|
425
|
+
}, "drawCommitLabel"), je = /* @__PURE__ */ m((e, t, n, r) => {
|
|
425
426
|
if (t.tags.length > 0) {
|
|
426
427
|
let i = 0, a = 0, o = 0, s = [];
|
|
427
428
|
for (let r of t.tags.reverse()) {
|
|
@@ -454,7 +455,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
454
455
|
}
|
|
455
456
|
}
|
|
456
457
|
}
|
|
457
|
-
}, "drawCommitTags"),
|
|
458
|
+
}, "drawCommitTags"), Me = /* @__PURE__ */ m((e) => {
|
|
458
459
|
switch (e.customType ?? e.type) {
|
|
459
460
|
case x.NORMAL: return "commit-normal";
|
|
460
461
|
case x.REVERSE: return "commit-reverse";
|
|
@@ -463,13 +464,13 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
463
464
|
case x.CHERRY_PICK: return "commit-cherry-pick";
|
|
464
465
|
default: return "commit-normal";
|
|
465
466
|
}
|
|
466
|
-
}, "getCommitClassType"),
|
|
467
|
+
}, "getCommitClassType"), Ne = /* @__PURE__ */ m((e, t, n, r) => {
|
|
467
468
|
let i = {
|
|
468
469
|
x: 0,
|
|
469
470
|
y: 0
|
|
470
471
|
};
|
|
471
472
|
if (e.parents.length > 0) {
|
|
472
|
-
let n =
|
|
473
|
+
let n = J(e.parents);
|
|
473
474
|
if (n) {
|
|
474
475
|
let a = r.get(n) ?? i;
|
|
475
476
|
return t === "TB" ? a.y + M : t === "BT" ? (r.get(e.id) ?? i).y - M : a.x + M;
|
|
@@ -478,84 +479,84 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
478
479
|
else if (t === "BT") return (r.get(e.id) ?? i).y - M;
|
|
479
480
|
else return 0;
|
|
480
481
|
return 0;
|
|
481
|
-
}, "calculatePosition"),
|
|
482
|
+
}, "calculatePosition"), Pe = /* @__PURE__ */ m((e, t, n) => {
|
|
482
483
|
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
484
|
if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
|
|
484
|
-
let o = I.has(
|
|
485
|
+
let o = I.has(f().theme ?? "");
|
|
485
486
|
return {
|
|
486
487
|
x: a,
|
|
487
488
|
y: K === "TB" || K === "BT" ? r : i + (o ? L / 2 + 1 : -2),
|
|
488
489
|
posWithOffset: r
|
|
489
490
|
};
|
|
490
|
-
}, "getCommitPosition"),
|
|
491
|
-
let
|
|
492
|
-
let r =
|
|
491
|
+
}, "getCommitPosition"), Y = /* @__PURE__ */ m((e, t, n, r) => {
|
|
492
|
+
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__ */ m((e, n) => {
|
|
493
|
+
let r = t.get(e)?.seq, i = t.get(n)?.seq;
|
|
493
494
|
return r !== void 0 && i !== void 0 ? r - i : 0;
|
|
494
|
-
}, "sortKeys"),
|
|
495
|
-
K === "BT" && (
|
|
496
|
-
let
|
|
497
|
-
if (!
|
|
498
|
-
|
|
499
|
-
let
|
|
500
|
-
if (
|
|
501
|
-
let e =
|
|
502
|
-
|
|
495
|
+
}, "sortKeys"), u = s.sort(l);
|
|
496
|
+
K === "BT" && (c && we(u, t, o), u = u.reverse()), u.forEach((e) => {
|
|
497
|
+
let s = t.get(e);
|
|
498
|
+
if (!s) throw Error(`Commit not found for key ${e}`);
|
|
499
|
+
c && (o = Ne(s, K, o, V));
|
|
500
|
+
let l = Pe(s, o, c);
|
|
501
|
+
if (n) {
|
|
502
|
+
let e = Me(s), t = s.customType ?? s.type;
|
|
503
|
+
ke(i, s, l, e, B.get(s.branch)?.index ?? 0, t), Ae(a, s, l, o, r), je(a, s, l, o);
|
|
503
504
|
}
|
|
504
|
-
K === "TB" || K === "BT" ? V.set(
|
|
505
|
-
x:
|
|
506
|
-
y:
|
|
507
|
-
}) : V.set(
|
|
508
|
-
x:
|
|
509
|
-
y:
|
|
510
|
-
}),
|
|
505
|
+
K === "TB" || K === "BT" ? V.set(s.id, {
|
|
506
|
+
x: l.x,
|
|
507
|
+
y: l.posWithOffset
|
|
508
|
+
}) : V.set(s.id, {
|
|
509
|
+
x: l.posWithOffset,
|
|
510
|
+
y: l.y
|
|
511
|
+
}), o = K === "BT" && c ? o + M : o + M + j, o > G && (G = o);
|
|
511
512
|
});
|
|
512
|
-
}, "drawCommits"),
|
|
513
|
-
let
|
|
514
|
-
return [...
|
|
515
|
-
}, "shouldRerouteArrow"),
|
|
513
|
+
}, "drawCommits"), Fe = /* @__PURE__ */ m((e, t, n, r, i) => {
|
|
514
|
+
let a = (K === "TB" || K === "BT" ? n.x < r.x : n.y < r.y) ? t.branch : e.branch, o = /* @__PURE__ */ m((e) => e.branch === a, "isOnBranchToGetCurve"), s = /* @__PURE__ */ m((n) => n.seq > e.seq && n.seq < t.seq, "isBetweenCommits");
|
|
515
|
+
return [...i.values()].some((e) => s(e) && o(e));
|
|
516
|
+
}, "shouldRerouteArrow"), X = /* @__PURE__ */ m((e, t, n = 0) => {
|
|
516
517
|
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) :
|
|
518
|
-
}, "findLane"),
|
|
519
|
-
let { theme: i } =
|
|
518
|
+
return n > 5 ? r : W.every((e) => Math.abs(e - r) >= 10) ? (W.push(r), r) : X(e, t - Math.abs(e - t) / 5, n + 1);
|
|
519
|
+
}, "findLane"), Ie = /* @__PURE__ */ m((e, t, n, r) => {
|
|
520
|
+
let { theme: i } = f(), a = R.has(i ?? ""), o = V.get(t.id), s = V.get(n.id);
|
|
520
521
|
if (o === void 0 || s === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
|
|
521
|
-
let c =
|
|
522
|
+
let c = Fe(t, n, o, s, r), l = "", u = "", d = 0, p = 0, m = B.get(n.branch)?.index;
|
|
522
523
|
n.type === x.MERGE && t.id !== n.parents[0] && (m = B.get(t.branch)?.index);
|
|
523
524
|
let h;
|
|
524
525
|
if (c) {
|
|
525
|
-
l = "A 10 10, 0, 0, 0,", u = "A 10 10, 0, 0, 1,", d = 10,
|
|
526
|
-
let e = o.y < s.y ?
|
|
527
|
-
K === "TB" ? o.x < s.x ? h = `M ${o.x} ${o.y} L ${n - d} ${o.y} ${u} ${n} ${o.y +
|
|
528
|
-
} else l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20,
|
|
526
|
+
l = "A 10 10, 0, 0, 0,", u = "A 10 10, 0, 0, 1,", d = 10, p = 10;
|
|
527
|
+
let e = o.y < s.y ? X(o.y, s.y) : X(s.y, o.y), n = o.x < s.x ? X(o.x, s.x) : X(s.x, o.x);
|
|
528
|
+
K === "TB" ? o.x < s.x ? h = `M ${o.x} ${o.y} L ${n - d} ${o.y} ${u} ${n} ${o.y + p} L ${n} ${s.y - d} ${l} ${n + p} ${s.y} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${n + d} ${o.y} ${l} ${n} ${o.y + p} L ${n} ${s.y - d} ${u} ${n - p} ${s.y} L ${s.x} ${s.y}`) : K === "BT" ? o.x < s.x ? h = `M ${o.x} ${o.y} L ${n - d} ${o.y} ${l} ${n} ${o.y - p} L ${n} ${s.y + d} ${u} ${n + p} ${s.y} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${n + d} ${o.y} ${u} ${n} ${o.y - p} L ${n} ${s.y + d} ${l} ${n - p} ${s.y} L ${s.x} ${s.y}`) : o.y < s.y ? h = `M ${o.x} ${o.y} L ${o.x} ${e - d} ${l} ${o.x + p} ${e} L ${s.x - d} ${e} ${u} ${s.x} ${e + p} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${o.x} ${e + d} ${u} ${o.x + p} ${e} L ${s.x - d} ${e} ${l} ${s.x} ${e - p} L ${s.x} ${s.y}`);
|
|
529
|
+
} else l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20, p = 20, K === "TB" ? (o.x < s.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y - d} ${l} ${o.x + p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${u} ${s.x} ${o.y + p} L ${s.x} ${s.y}`), o.x > s.x && (l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y - d} ${u} ${o.x - p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + d} ${o.y} ${l} ${s.x} ${o.y + p} L ${s.x} ${s.y}`), o.x === s.x && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`)) : K === "BT" ? (o.x < s.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y + d} ${u} ${o.x + p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${l} ${s.x} ${o.y - p} L ${s.x} ${s.y}`), o.x > s.x && (l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y + d} ${l} ${o.x - p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + d} ${o.y} ${u} ${s.x} ${o.y - p} L ${s.x} ${s.y}`), o.x === s.x && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`)) : (o.y < s.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${u} ${s.x} ${o.y + p} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y - d} ${l} ${o.x + p} ${s.y} L ${s.x} ${s.y}`), o.y > s.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${l} ${s.x} ${o.y - p} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y + d} ${u} ${o.x + p} ${s.y} L ${s.x} ${s.y}`), o.y === s.y && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`));
|
|
529
530
|
if (h === void 0) throw Error("Line definition not found");
|
|
530
531
|
e.append("path").attr("d", h).attr("class", "arrow arrow" + z(m, F, a));
|
|
531
|
-
}, "drawArrow"),
|
|
532
|
+
}, "drawArrow"), Le = /* @__PURE__ */ m((e, t) => {
|
|
532
533
|
let n = e.append("g").attr("class", "commit-arrows");
|
|
533
534
|
[...t.keys()].forEach((e) => {
|
|
534
535
|
let r = t.get(e);
|
|
535
536
|
r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
|
|
536
|
-
|
|
537
|
+
Ie(n, t.get(e), r, t);
|
|
537
538
|
});
|
|
538
539
|
});
|
|
539
|
-
}, "drawArrows"),
|
|
540
|
-
let { look: i, theme: a, themeVariables: o } =
|
|
540
|
+
}, "drawArrows"), Re = /* @__PURE__ */ m((e, t, n, r) => {
|
|
541
|
+
let { look: i, theme: a, themeVariables: o } = f(), { dropShadow: s, THEME_COLOR_LIMIT: c } = o, l = I.has(a ?? ""), u = R.has(a ?? ""), d = e.append("g");
|
|
541
542
|
t.forEach((e, t) => {
|
|
542
543
|
let a = z(t, l ? c : F, u), o = B.get(e.name)?.pos;
|
|
543
544
|
if (o === void 0) throw Error(`Position not found for branch ${e.name}`);
|
|
544
545
|
let f = K === "TB" || K === "BT" ? o : l ? o + L / 2 + 1 : o - 2, p = d.append("line");
|
|
545
546
|
p.attr("x1", 0), p.attr("y1", f), p.attr("x2", G), p.attr("y2", f), 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(f);
|
|
546
|
-
let m = e.name, h =
|
|
547
|
+
let m = e.name, h = q(m), g = d.insert("rect"), _ = d.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + a);
|
|
547
548
|
_.node().appendChild(h);
|
|
548
549
|
let v = h.getBBox(), y = l ? 0 : 4, b = l ? 16 : 0, x = l ? L : 0;
|
|
549
550
|
i === "neo" && g.attr("data-look", "neo"), g.attr("class", "branchLabelBkg label" + a).attr("style", i === "neo" ? `filter:${l ? `url(#${r}-drop-shadow)` : s}` : "").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) + ", " + (f - 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)"), l && (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 + ")"), l && (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, " + (f - 12 - x / 2) + ")");
|
|
550
551
|
});
|
|
551
|
-
}, "drawBranches"),
|
|
552
|
+
}, "drawBranches"), ze = /* @__PURE__ */ m(function(e, t, n, r, i) {
|
|
552
553
|
return B.set(e, {
|
|
553
554
|
pos: t,
|
|
554
555
|
index: n
|
|
555
556
|
}), t += 50 + (i ? 40 : 0) + (K === "TB" || K === "BT" ? r.width / 2 : 0), t;
|
|
556
|
-
}, "setBranchPosition"),
|
|
557
|
-
|
|
558
|
-
let s =
|
|
557
|
+
}, "setBranchPosition"), Be = { draw: /* @__PURE__ */ m(function(n, r, i, o) {
|
|
558
|
+
Se(), e.debug("in gitgraph renderer", n + "\n", "id:", r, i);
|
|
559
|
+
let s = o.db;
|
|
559
560
|
if (!s.getConfig) {
|
|
560
561
|
e.error("getConfig method is not available on db");
|
|
561
562
|
return;
|
|
@@ -564,25 +565,25 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
564
565
|
U = s.getCommits();
|
|
565
566
|
let u = s.getBranchesAsObjArray();
|
|
566
567
|
K = s.getDirection();
|
|
567
|
-
let d =
|
|
568
|
+
let d = t(`[id="${r}"]`), { look: p, theme: m, themeVariables: g } = f(), { useGradient: _, gradientStart: v, gradientStop: y, filterColor: b } = g;
|
|
568
569
|
if (_) {
|
|
569
570
|
let e = d.append("defs").append("linearGradient").attr("id", r + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
570
571
|
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
|
}
|
|
572
|
-
|
|
573
|
+
p === "neo" && I.has(m ?? "") && d.append("defs").append("filter").attr("id", r + "-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
574
|
let x = 0;
|
|
574
575
|
u.forEach((e, t) => {
|
|
575
|
-
let n =
|
|
576
|
+
let n = q(e.name), r = d.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
|
|
576
577
|
a.node()?.appendChild(n);
|
|
577
578
|
let o = n.getBBox();
|
|
578
|
-
x =
|
|
579
|
-
}),
|
|
580
|
-
}, "draw") },
|
|
579
|
+
x = ze(e.name, x, t, o, l), a.remove(), i.remove(), r.remove();
|
|
580
|
+
}), Y(d, U, !1, c), c.showBranches && Re(d, u, c, r), Le(d, U), Y(d, U, !0, c), h.insertTitle(d, "gitTitleText", c.titleTopMargin ?? 0, s.getDiagramTitle()), a(void 0, d, c.diagramPadding, c.useMaxWidth);
|
|
581
|
+
}, "draw") }, Z = 8, Q = /* @__PURE__ */ new Set([
|
|
581
582
|
"redux",
|
|
582
583
|
"redux-dark",
|
|
583
584
|
"redux-color",
|
|
584
585
|
"redux-dark-color"
|
|
585
|
-
]),
|
|
586
|
+
]), $ = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Ve = /* @__PURE__ */ new Set(["neo", "neo-dark"]), He = /* @__PURE__ */ new Set([
|
|
586
587
|
"dark",
|
|
587
588
|
"redux-dark",
|
|
588
589
|
"redux-dark-color",
|
|
@@ -594,14 +595,14 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
594
595
|
"redux-dark-color",
|
|
595
596
|
"neo",
|
|
596
597
|
"neo-dark"
|
|
597
|
-
]), We = /* @__PURE__ */
|
|
598
|
+
]), We = /* @__PURE__ */ m((e) => {
|
|
598
599
|
let { svgId: t } = e, n = "";
|
|
599
600
|
if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
|
|
600
601
|
.label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
|
|
601
602
|
`;
|
|
602
603
|
return n;
|
|
603
|
-
}, "genGitGraphGradient"), Ge = /* @__PURE__ */
|
|
604
|
-
let { theme: t, themeVariables: n } =
|
|
604
|
+
}, "genGitGraphGradient"), Ge = /* @__PURE__ */ m((e) => {
|
|
605
|
+
let { theme: t, themeVariables: n } = s(), { borderColorArray: r } = n, i = Q.has(t);
|
|
605
606
|
if (Ve.has(t)) {
|
|
606
607
|
let t = "";
|
|
607
608
|
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
|
|
@@ -613,7 +614,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
613
614
|
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
614
615
|
${We(e)}`;
|
|
615
616
|
else {
|
|
616
|
-
let r = n %
|
|
617
|
+
let r = n % Z;
|
|
617
618
|
t += `
|
|
618
619
|
.branch-label${n} { fill: ${e["gitBranchLabel" + r]}; }
|
|
619
620
|
.commit${n} { stroke: ${e["git" + r]}; fill: ${e["git" + r]}; }
|
|
@@ -622,7 +623,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
622
623
|
`;
|
|
623
624
|
}
|
|
624
625
|
return t;
|
|
625
|
-
} else if (
|
|
626
|
+
} else if ($.has(t)) {
|
|
626
627
|
let n = "";
|
|
627
628
|
for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) n += `
|
|
628
629
|
.branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
|
|
@@ -656,8 +657,8 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
656
657
|
`;
|
|
657
658
|
return t;
|
|
658
659
|
}
|
|
659
|
-
}, "genColor"), Ke = /* @__PURE__ */
|
|
660
|
-
let n = t %
|
|
660
|
+
}, "genColor"), Ke = /* @__PURE__ */ m((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
|
|
661
|
+
let n = t % Z;
|
|
661
662
|
return `
|
|
662
663
|
.branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
|
|
663
664
|
.commit${t} { stroke: ${e["git" + n]}; fill: ${e["git" + n]}; }
|
|
@@ -668,9 +669,9 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
668
669
|
}).join("\n")}`, "normalTheme"), qe = {
|
|
669
670
|
parser: be,
|
|
670
671
|
db: A,
|
|
671
|
-
renderer:
|
|
672
|
-
styles: /* @__PURE__ */
|
|
673
|
-
let { theme: t } =
|
|
672
|
+
renderer: Be,
|
|
673
|
+
styles: /* @__PURE__ */ m((e) => {
|
|
674
|
+
let { theme: t } = s(), n = Ue.has(t);
|
|
674
675
|
return `
|
|
675
676
|
.commit-id,
|
|
676
677
|
.commit-msg,
|
|
@@ -712,7 +713,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
712
713
|
|
|
713
714
|
.arrow {
|
|
714
715
|
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
715
|
-
stroke-width: ${
|
|
716
|
+
stroke-width: ${Q.has(t) ? e.strokeWidth : 8};
|
|
716
717
|
stroke-linecap: round;
|
|
717
718
|
fill: none
|
|
718
719
|
}
|