@sme.up/ketchup2 2.1.0 → 2.3.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-Klgb378K.js → arc-D80gVCcI.js} +2 -2
- package/dist/{arc-CqG9Hxdf.cjs → arc-MUYNnJxV.cjs} +1 -1
- package/dist/architecture-7EHR7CIX-Bnyu5zgG.js +3 -0
- package/dist/architecture-7EHR7CIX-CKF7-4kH.cjs +1 -0
- package/dist/architectureDiagram-3BPJPVTR-BrmPrClJ.cjs +36 -0
- package/dist/{architectureDiagram-Q4EWVU46-u2vgZv3N.js → architectureDiagram-3BPJPVTR-EFK4DMha.js} +167 -166
- package/dist/assets/buttonListAssets.d.ts +8 -0
- package/dist/assets/buttonListAssets.d.ts.map +1 -1
- package/dist/basic-components/button/button-types.d.ts +4 -0
- package/dist/basic-components/button/button-types.d.ts.map +1 -1
- package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
- package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
- package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
- package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
- package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
- 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-utils.d.ts +13 -5
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/icon/icon.d.ts.map +1 -1
- package/dist/basic-components/image/image.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
- package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
- package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor-utils.d.ts +11 -0
- package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
- package/dist/basic-components/textarea/textarea-types.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/{blockDiagram-DXYQGD6D-BpB6_kTP.js → blockDiagram-GPEHLZMM-C3UgY0Z5.js} +999 -877
- package/dist/blockDiagram-GPEHLZMM-CuzoKhJT.cjs +132 -0
- package/dist/{c4Diagram-AHTNJAMY-CX5IjREU.cjs → c4Diagram-AAUBKEIU-DU8uXbgK.cjs} +6 -6
- package/dist/{c4Diagram-AHTNJAMY-B5Z8nO1s.js → c4Diagram-AAUBKEIU-klnmEOUo.js} +279 -279
- package/dist/channel-BbRDdbmM.js +5 -0
- package/dist/channel-intTktDQ.cjs +1 -0
- package/dist/chunk-2J33WTMH-EmvF7iYC.js +25 -0
- package/dist/chunk-2J33WTMH-PlcpVW8G.cjs +1 -0
- package/dist/{chunk-5FUZZQ4R-2kdZJWq2.js → chunk-3OPIFGDE-C7wE5oN7.js} +957 -929
- package/dist/chunk-3OPIFGDE-CT5oNC5X.cjs +62 -0
- package/dist/{chunk-4BX2VUAB-BW54-JWg.js → chunk-4BX2VUAB-BO1KRGb1.js} +1 -1
- package/dist/{chunk-4BX2VUAB-Qba52sxc.cjs → chunk-4BX2VUAB-CtDGlaPx.cjs} +1 -1
- package/dist/{chunk-7N4EOEYR-C-GuhRgW.js → chunk-4EGX6M5U-BMVrizoY.js} +12 -12
- package/dist/{chunk-7N4EOEYR-jNBQwvHx.cjs → chunk-4EGX6M5U-VENLmgBt.cjs} +1 -1
- package/dist/{chunk-55IACEB6-DPatBzu7.cjs → chunk-55IACEB6-VJP3Osm7.cjs} +1 -1
- package/dist/{chunk-55IACEB6-Bu3k0Yz5.js → chunk-55IACEB6-b_Ivgrk-.js} +1 -1
- package/dist/chunk-5DO6E6H7-Cx6Mfbjl.cjs +1 -0
- package/dist/chunk-5DO6E6H7-QuTLwcim.js +23 -0
- package/dist/chunk-5ZQYHXKU-BMnKD7Zq.cjs +2 -0
- package/dist/{chunk-5PVQY5BW-C5U7sJAA.js → chunk-5ZQYHXKU-C4uam08j.js} +527 -461
- package/dist/chunk-727SXJPM-DTmqhRKX.cjs +206 -0
- package/dist/{chunk-4TB4RGXK-CKyHmNcP.js → chunk-727SXJPM-Dof0vDVV.js} +650 -554
- package/dist/{chunk-OYMX7WX6-BCT45RPu.cjs → chunk-AQP2D5EJ-DdWeFQ4O.cjs} +5 -5
- package/dist/{chunk-OYMX7WX6-BQADsxYi.js → chunk-AQP2D5EJ-N9ii4fwJ.js} +349 -339
- package/dist/{chunk-LIHQZDEY-59I4-LWb.js → chunk-BR22UD5L-CS6hURQQ.js} +15 -15
- package/dist/{chunk-LIHQZDEY-CrogR3nT.cjs → chunk-BR22UD5L-wI1vkyAT.cjs} +1 -1
- package/dist/{chunk-BSJP7CBP-oNTXVRA7.js → chunk-BSJP7CBP-Bx5APwBA.js} +1 -1
- package/dist/{chunk-BSJP7CBP-CFzYPvgr.cjs → chunk-BSJP7CBP-CaeBFqNU.cjs} +1 -1
- package/dist/{chunk-ICPOFSXX-Sn6LWD0k.js → chunk-CSCIHK7Q-9WKhcDqw.js} +558 -460
- package/dist/chunk-CSCIHK7Q-BPMuICCz.cjs +123 -0
- package/dist/chunk-FHYWG6QK-CfRqYwCI.js +23 -0
- package/dist/chunk-FHYWG6QK-DxmnARsZ.cjs +1 -0
- package/dist/{chunk-FMBD7UC4-RRSc9jqt.js → chunk-FMBD7UC4-BbggSGOg.js} +1 -1
- package/dist/{chunk-FMBD7UC4-CS9_r76V.cjs → chunk-FMBD7UC4-CiO_59ls.cjs} +1 -1
- package/dist/{chunk-ENJZ2VHE-BluGQPyl.js → chunk-KSCS5N6A-BY1s4eGg.js} +205 -205
- package/dist/chunk-KSCS5N6A-DO8jEi0y.cjs +10 -0
- package/dist/{chunk-ZZ45TVLE-AQQsnXy4.cjs → chunk-L5ZTLDWV-BE9udiOh.cjs} +1 -1
- package/dist/{chunk-ZZ45TVLE-CIYrdg-O.js → chunk-L5ZTLDWV-D3UwMopa.js} +8 -8
- package/dist/{chunk-336JU56O-CuXRn1VH.cjs → chunk-LZXEDZCA-Dpz_wx3M.cjs} +1 -1
- package/dist/{chunk-336JU56O-xKPgkG3O.js → chunk-LZXEDZCA-KzBFuWPU.js} +18 -18
- package/dist/chunk-MPE355IW-4bpROspE.js +23 -0
- package/dist/chunk-MPE355IW-CxPw_dPP.cjs +1 -0
- package/dist/chunk-MZUSXYTE-DA5mUG5B.js +30 -0
- package/dist/chunk-MZUSXYTE-DIg1BPts.cjs +1 -0
- package/dist/chunk-N66VUXT2-DSbygtq1.cjs +1 -0
- package/dist/chunk-N66VUXT2-pDZ1b-B3.js +54 -0
- package/dist/{chunk-YZCP3GAM-9K9WNdyN.js → chunk-ND2GUHAM-CHTke4K8.js} +17 -17
- package/dist/{chunk-YZCP3GAM-BmaAafMm.cjs → chunk-ND2GUHAM-DdBSZTft.cjs} +1 -1
- package/dist/chunk-NNHCCRGN-D_orSz6n.js +20630 -0
- package/dist/chunk-NNHCCRGN-aKMHXBzL.cjs +159 -0
- package/dist/{chunk-X2U36JSP-CY7mJR8m.js → chunk-NZK2D7GU-BVOINLmx.js} +13 -13
- package/dist/{chunk-X2U36JSP-D1RYKjVc.cjs → chunk-NZK2D7GU-_twqedIe.cjs} +1 -1
- package/dist/{chunk-U2HBQHQK-D0AoQWxK.cjs → chunk-O5CBEL6O-CDvi2oZo.cjs} +6 -6
- package/dist/{chunk-U2HBQHQK-BZ3YFMXB.js → chunk-O5CBEL6O-VsMF4aZB.js} +108 -108
- package/dist/chunk-PUPMXCY4-CKjhJQnN.js +23 -0
- package/dist/chunk-PUPMXCY4-DsS_t57r.cjs +1 -0
- package/dist/{chunk-QZHKN3VN-CSMKL2rB.cjs → chunk-QZHKN3VN-CHjRGMI2.cjs} +1 -1
- package/dist/{chunk-QZHKN3VN-Bx8I6l3c.js → chunk-QZHKN3VN-DCddt14Q.js} +1 -1
- package/dist/chunk-UIBZB4QT-BZf7vqd9.cjs +1 -0
- package/dist/chunk-UIBZB4QT-BvFllM0Q.js +23 -0
- package/dist/chunk-WCWK7LTN-D_C1as0Y.js +31 -0
- package/dist/chunk-WCWK7LTN-Dl2uC9ZD.cjs +1 -0
- package/dist/chunk-WU5MYG2G-DgyP9QDj.cjs +1 -0
- package/dist/chunk-WU5MYG2G-mQn7Wt-i.js +9 -0
- package/dist/{chunk-XPW4576I-BcWkx-AL.js → chunk-XPW4576I-BCowsgDU.js} +1 -1
- package/dist/{chunk-XPW4576I-D8Pp6a3j.cjs → chunk-XPW4576I-D_mwgMVU.cjs} +1 -1
- package/dist/classDiagram-4FO5ZUOK-5DyhpZRK.cjs +1 -0
- package/dist/classDiagram-4FO5ZUOK-BHGLQIkz.js +29 -0
- package/dist/classDiagram-v2-Q7XG4LA2-CCAbBo05.js +29 -0
- package/dist/classDiagram-v2-Q7XG4LA2-D4TX4CLT.cjs +1 -0
- package/dist/components/dash-list/assets/dash-list.data.d.ts +1 -0
- package/dist/components/dash-list/assets/dash-list.data.d.ts.map +1 -1
- package/dist/components/dash-list/dash-list-types.d.ts +1 -0
- package/dist/components/dash-list/dash-list-types.d.ts.map +1 -1
- package/dist/components/dash-list/dash-list.d.ts.map +1 -1
- package/dist/components/dash-list/dash-list.utils.d.ts +0 -3
- package/dist/components/dash-list/dash-list.utils.d.ts.map +1 -1
- package/dist/components/drawer/drawer-types.d.ts +4 -0
- package/dist/components/drawer/drawer-types.d.ts.map +1 -1
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/htm/htm-types.d.ts +4 -0
- package/dist/components/htm/htm-types.d.ts.map +1 -1
- package/dist/components/htm/htm.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
- package/dist/components/pdf/pdf-types.d.ts +8 -0
- package/dist/components/pdf/pdf-types.d.ts.map +1 -1
- package/dist/components/pdf/pdf-utils.d.ts +1 -1
- package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
- package/dist/components/pdf/pdf.d.ts.map +1 -1
- package/dist/components/planner/planner-assets.d.ts +2 -2
- package/dist/components/planner/planner-assets.d.ts.map +1 -1
- package/dist/components/planner/planner-types.d.ts +1 -1
- package/dist/components/planner/planner-types.d.ts.map +1 -1
- package/dist/components/planner/planner-utils.d.ts +7 -5
- package/dist/components/planner/planner-utils.d.ts.map +1 -1
- package/dist/components/planner/planner.d.ts.map +1 -1
- package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
- package/dist/components/scaffold/scaffold-types.d.ts +1 -0
- package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
- package/dist/components/timeline/timeline-types.d.ts +6 -2
- package/dist/components/timeline/timeline-types.d.ts.map +1 -1
- package/dist/components/timeline/timeline.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-assets.d.ts +1 -0
- package/dist/components/tooltip/tooltip-assets.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-types.d.ts +4 -16
- package/dist/components/tooltip/tooltip-types.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-B30Rh9DR.js → cose-bilkent-S5V4N54A-Bfb7U01p.js} +26 -27
- package/dist/cose-bilkent-S5V4N54A-CE-7Sw0Y.cjs +1 -0
- package/dist/dagre-BM42HDAG-BhbA1R8l.cjs +4 -0
- package/dist/dagre-BM42HDAG-D87Rv2R4.js +297 -0
- package/dist/dagre-CC68z3y6.cjs +1 -0
- package/dist/dagre-Cg4CV48I.js +1936 -0
- package/dist/diagram-2AECGRRQ-C6vI3yau.cjs +43 -0
- package/dist/{diagram-MMDJMWI5-DUUVPi55.js → diagram-2AECGRRQ-OSYCK0tv.js} +36 -36
- package/dist/diagram-5GNKFQAL-BS9rRMAe.cjs +10 -0
- package/dist/diagram-5GNKFQAL-DnquluB9.js +101 -0
- package/dist/diagram-KO2AKTUF-CFi6eQYd.js +431 -0
- package/dist/diagram-KO2AKTUF-CjA_KTJj.cjs +3 -0
- package/dist/{diagram-TYMM5635-Cpj8wfoJ.js → diagram-LMA3HP47-Cwm5bzeM.js} +38 -38
- package/dist/diagram-LMA3HP47-DBwSTp2j.cjs +24 -0
- package/dist/diagram-OG6HWLK6-BdLnbUYy.cjs +24 -0
- package/dist/{diagram-G4DWMVQ6-BkQnbCLv.js → diagram-OG6HWLK6-DvGk1j55.js} +93 -93
- package/dist/{dist-DL30VIBI.js → dist-9MKIBfY4.js} +1 -1
- package/dist/dist-DC1YYeHc.cjs +1 -0
- package/dist/{erDiagram-SMLLAGMA-D_ByPk0C.js → erDiagram-TEJ5UH35-B17mqgD_.js} +164 -164
- package/dist/erDiagram-TEJ5UH35-NlRiP_bX.cjs +85 -0
- package/dist/eventmodeling-FCH6USID-BVaFiLQO.js +3 -0
- package/dist/eventmodeling-FCH6USID-leiC8dtX.cjs +1 -0
- package/dist/{flowDiagram-DWJPFMVM-BWrkDnqc.js → flowDiagram-I6XJVG4X-C2G6Tgw_.js} +444 -444
- package/dist/{flowDiagram-DWJPFMVM-BbK42NaF.cjs → flowDiagram-I6XJVG4X-ChI_6giU.cjs} +9 -9
- package/dist/functional-components/action/action-types.d.ts +26 -1
- package/dist/functional-components/action/action-types.d.ts.map +1 -1
- package/dist/functional-components/action/action-utils.d.ts +13 -1
- package/dist/functional-components/action/action-utils.d.ts.map +1 -1
- package/dist/functional-components/action/action.d.ts.map +1 -1
- package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
- package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
- package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts +106 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts +2 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts +38 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +60 -0
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
- package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
- package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts +79 -0
- package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
- package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
- package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +28 -0
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +143 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
- package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
- package/dist/ganttDiagram-6RSMTGT7-B0DHqd7u.cjs +292 -0
- package/dist/{ganttDiagram-T4ZO3ILL-LuaYkUvj.js → ganttDiagram-6RSMTGT7-Bb6bqcaS.js} +278 -276
- package/dist/gitGraph-WXDBUCRP-BFFuTWG4.cjs +1 -0
- package/dist/gitGraph-WXDBUCRP-Fz2kRwJ-.js +3 -0
- package/dist/gitGraphDiagram-PVQCEYII-BzbgPrwe.cjs +106 -0
- package/dist/{gitGraphDiagram-UUTBAWPF-DKkENwcV.js → gitGraphDiagram-PVQCEYII-DiJUr7lO.js} +255 -255
- package/dist/graphlib-B1zohIOM.js +1266 -0
- package/dist/graphlib-B5AXIZA4.cjs +1 -0
- package/dist/hooks/useFloating.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useGanttMath.d.ts +1 -1
- package/dist/hooks/useGanttMath.d.ts.map +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/info-J43DQDTF-CLRXRK49.js +3 -0
- package/dist/info-J43DQDTF-CmpcAuH-.cjs +1 -0
- package/dist/infoDiagram-5YYISTIA-C8P9DHlE.js +19 -0
- package/dist/infoDiagram-5YYISTIA-fhwEAAjF.cjs +2 -0
- package/dist/{ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs → ishikawaDiagram-YF4QCWOH-j6IZz59g.cjs} +6 -6
- package/dist/{ishikawaDiagram-UXIWVN3A-DqbVPChK.js → ishikawaDiagram-YF4QCWOH-rqNbTKZp.js} +134 -134
- package/dist/{journeyDiagram-VCZTEJTY-XRc0J8gM.cjs → journeyDiagram-JHISSGLW-BhHdd4y3.cjs} +6 -6
- package/dist/{journeyDiagram-VCZTEJTY-DudduR0c.js → journeyDiagram-JHISSGLW-peUJlm3L.js} +180 -180
- package/dist/{kanban-definition-6JOO6SKY-DzEqE64J.js → kanban-definition-UN3LZRKU-DLxDqiQn.js} +151 -151
- package/dist/{kanban-definition-6JOO6SKY-Br87atRc.cjs → kanban-definition-UN3LZRKU-TUg1x5yJ.cjs} +8 -8
- package/dist/{katex-SAH56fvc.cjs → katex-HkVgAsLB.cjs} +1 -1
- package/dist/ketchup2.cjs.js +110 -106
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +68073 -69871
- package/dist/{line-JyRBGWft.js → line-BhAnxCE8.js} +3 -3
- package/dist/line-CpcTW4h-.cjs +1 -0
- package/dist/{linear-CxHa1DsM.cjs → linear-D0eFmsG1.cjs} +1 -1
- package/dist/{linear-BsPvNLJv.js → linear-lSeWuvgy.js} +3 -3
- package/dist/{mermaid-parser.core-CERDf-UG.js → mermaid-parser.core-Dz33ts1l.js} +24 -19
- package/dist/mermaid-parser.core-HQxPJrkY.cjs +3 -0
- package/dist/{mindmap-definition-QFDTVHPH-BCq8zmLt.cjs → mindmap-definition-RKZ34NQL-D9BOsg5W.cjs} +29 -29
- package/dist/{mindmap-definition-QFDTVHPH-NGjPQ5SM.js → mindmap-definition-RKZ34NQL-DHkmUkxh.js} +148 -148
- package/dist/{ordinal-Civr0hZL.cjs → ordinal-BnUYNBtU.cjs} +1 -1
- package/dist/{ordinal-C-VoL0XF.js → ordinal-MD9_ORcM.js} +1 -1
- package/dist/packet-YPE3B663-BwjweAZY.cjs +1 -0
- package/dist/packet-YPE3B663-D1Hr9AQm.js +3 -0
- package/dist/pie-LRSECV5Y-CpDfN1P0.js +3 -0
- package/dist/pie-LRSECV5Y-I1-OkIXi.cjs +1 -0
- package/dist/{pieDiagram-DEJITSTG-DTeyzHmB.js → pieDiagram-4H26LBE5-ByA7ytZx.js} +40 -40
- package/dist/pieDiagram-4H26LBE5-CrLJh4L9.cjs +30 -0
- package/dist/{quadrantDiagram-34T5L4WZ-CCcJIf91.js → quadrantDiagram-W4KKPZXB-CHHpmu1l.js} +547 -520
- package/dist/quadrantDiagram-W4KKPZXB-CalC_db_.cjs +7 -0
- package/dist/radar-GUYGQ44K-BXt3oO8c.cjs +1 -0
- package/dist/radar-GUYGQ44K-ByzrmbOz.js +3 -0
- package/dist/{requirementDiagram-MS252O5E-BdOanuYe.js → requirementDiagram-4Y6WPE33-BVcDFSx8.js} +165 -165
- package/dist/requirementDiagram-4Y6WPE33-SsePLT8d.cjs +84 -0
- package/dist/sankeyDiagram-5OEKKPKP-BgvTZ7jd.cjs +40 -0
- package/dist/{sankeyDiagram-XADWPNL6-3wviN_U4.js → sankeyDiagram-5OEKKPKP-C-ODz9lV.js} +202 -153
- package/dist/{sequenceDiagram-FGHM5R23-DC8SjhFN.js → sequenceDiagram-3UESZ5HK-Cnc0aDO4.js} +786 -779
- package/dist/sequenceDiagram-3UESZ5HK-DEVLteqD.cjs +162 -0
- package/dist/src-BgvDIw01.cjs +1 -0
- package/dist/{src-BQiFKP24.js → src-v9RrE_4h.js} +578 -563
- package/dist/stateDiagram-AJRCARHV-CuHe6Iji.js +217 -0
- package/dist/stateDiagram-AJRCARHV-D_yPvIRw.cjs +1 -0
- package/dist/stateDiagram-v2-BHNVJYJU-CTnE6fOT.cjs +1 -0
- package/dist/stateDiagram-v2-BHNVJYJU-DqstYMSl.js +27 -0
- package/dist/{timeline-definition-GMOUNBTQ-CBnYBWN0.js → timeline-definition-PNZ67QCA-Bj1BItRB.js} +324 -324
- package/dist/{timeline-definition-GMOUNBTQ-DWpngnE4.cjs → timeline-definition-PNZ67QCA-Cynbc96w.cjs} +48 -48
- package/dist/treeView-BLDUP644-CxLhpd93.js +3 -0
- package/dist/treeView-BLDUP644-DMwVx0AR.cjs +1 -0
- package/dist/treemap-LRROVOQU-BqmiLdFI.js +3 -0
- package/dist/treemap-LRROVOQU-XhaFZdvI.cjs +1 -0
- package/dist/types/data-structures.d.ts +9 -1
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -0
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/utils/style.d.ts +13 -2
- package/dist/utils/style.d.ts.map +1 -1
- package/dist/v4-BpDBEhLK.js +30 -0
- package/dist/v4-CA8ev9YY.cjs +1 -0
- package/dist/{vennDiagram-DHZGUBPP-M-kkEkXj.js → vennDiagram-CIIHVFJN-CdmcxixA.js} +192 -192
- package/dist/vennDiagram-CIIHVFJN-Dm4D6omA.cjs +34 -0
- package/dist/wardley-L42UT6IY-C7UjBmVh.js +3 -0
- package/dist/wardley-L42UT6IY-DFAYOpjD.cjs +1 -0
- package/dist/{wardleyDiagram-NUSXRM2D-thoOuA_D.cjs → wardleyDiagram-YWT4CUSO-C-DdutxP.cjs} +61 -3
- package/dist/{wardleyDiagram-NUSXRM2D-CUX1SYhw.js → wardleyDiagram-YWT4CUSO-D1o116Wi.js} +272 -206
- package/dist/{xychartDiagram-5P7HB3ND-1cXRZ1bi.js → xychartDiagram-2RQKCTM6-Byw7djcg.js} +213 -213
- package/dist/{xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs → xychartDiagram-2RQKCTM6-D0D4PIQS.cjs} +6 -6
- package/package.json +1 -1
- package/dist/architecture-YZFGNWBL-BRqToLcm.js +0 -3
- package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +0 -1
- package/dist/architectureDiagram-Q4EWVU46-JSjagcXX.cjs +0 -36
- package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +0 -132
- package/dist/channel-BY9Lkyz7.cjs +0 -1
- package/dist/channel-BqNr2cYO.js +0 -5
- package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +0 -23
- package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +0 -1
- package/dist/chunk-426QAEUC-Df31vuwu.cjs +0 -1
- package/dist/chunk-426QAEUC-JjFVHKYG.js +0 -9
- package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +0 -206
- package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +0 -62
- package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +0 -2
- package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +0 -1
- package/dist/chunk-67CJDMHE-YMBkJcAO.js +0 -23
- package/dist/chunk-AA7GKIK3-B_ZB6dou.js +0 -30
- package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +0 -1
- package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +0 -1
- package/dist/chunk-CIAEETIT-XlxsAz-4.js +0 -23
- package/dist/chunk-D-IZpNpi.cjs +0 -1
- package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +0 -1
- package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +0 -25
- package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +0 -10
- package/dist/chunk-FOC6F5B3-DcZs851j.cjs +0 -1
- package/dist/chunk-FOC6F5B3-E9n6-juB.js +0 -23
- package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +0 -122
- package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +0 -94
- package/dist/chunk-K5T4RW27-DY7TOEqa.js +0 -16070
- package/dist/chunk-KGLVRYIC-5OJpfQCj.js +0 -23
- package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +0 -1
- package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +0 -1
- package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +0 -31
- package/dist/chunk-WQLz0Won.js +0 -20
- package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +0 -1
- package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +0 -29
- package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +0 -29
- package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +0 -1
- package/dist/clone-Dn__H8fX.js +0 -8
- package/dist/clone-lShkT11Q.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +0 -1
- package/dist/dagre-BjnWDdkw.cjs +0 -1
- package/dist/dagre-DVLnxd7n.js +0 -1606
- package/dist/dagre-KV5264BT-BjqayRYC.js +0 -293
- package/dist/dagre-KV5264BT-BvInGAUC.cjs +0 -4
- package/dist/diagram-5BDNPKRD-Bk7depC0.js +0 -101
- package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +0 -10
- package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +0 -24
- package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +0 -43
- package/dist/diagram-TYMM5635-5auoAFCi.cjs +0 -24
- package/dist/dist-BgvMZbfo.cjs +0 -1
- package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +0 -85
- package/dist/flatten-BE1bWL-7.js +0 -40
- package/dist/flatten-DxvYSoR8.cjs +0 -1
- package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
- package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
- package/dist/functional-components/gantt/gantt-assets.d.ts +0 -55
- package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
- package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
- package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
- package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
- package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
- package/dist/functional-components/gantt/types/gantt-types.d.ts +0 -47
- package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
- package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
- package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +0 -292
- package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +0 -1
- package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +0 -3
- package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +0 -106
- package/dist/graphlib-Cpifseqb.js +0 -373
- package/dist/graphlib-HdfvGLpV.cjs +0 -1
- package/dist/hooks/usePlannerSync.d.ts +0 -11
- package/dist/hooks/usePlannerSync.d.ts.map +0 -1
- package/dist/identity-KQSjemTb.cjs +0 -1
- package/dist/identity-g0dsMjx7.js +0 -393
- package/dist/info-OMHHGYJF-Bk0VWVNW.js +0 -3
- package/dist/info-OMHHGYJF-C8QtwF0k.cjs +0 -1
- package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +0 -2
- package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +0 -19
- package/dist/isEmpty-CA3kJuev.cjs +0 -1
- package/dist/isEmpty-RwX-oIQS.js +0 -35
- package/dist/line-BbHmiwbs.cjs +0 -1
- package/dist/mermaid-parser.core-DHpvGOZR.cjs +0 -3
- package/dist/packet-4T2RLAQJ-X0BMsNFj.js +0 -3
- package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +0 -1
- package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +0 -3
- package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +0 -1
- package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +0 -30
- package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +0 -7
- package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +0 -1
- package/dist/radar-PYXPWWZC-DgZIW9Ah.js +0 -3
- package/dist/reduce-B7WW9rkU.cjs +0 -1
- package/dist/reduce-DNnkcf3M.js +0 -532
- package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +0 -84
- package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +0 -10
- package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +0 -157
- package/dist/src-DFxq-N5I.cjs +0 -1
- package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +0 -217
- package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +0 -1
- package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +0 -27
- package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +0 -1
- package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +0 -1
- package/dist/treeView-SZITEDCU-Df3xzFtO.js +0 -3
- package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +0 -1
- package/dist/treemap-W4RFUUIX-ClUtdSdn.js +0 -3
- package/dist/utils/wbs-utils.d.ts +0 -143
- package/dist/utils/wbs-utils.d.ts.map +0 -1
- package/dist/v4-6yr83DbP.cjs +0 -1
- package/dist/v4-BR71w5_q.js +0 -33
- package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +0 -34
- package/dist/wardley-RL74JXVD-BtHQbnUy.js +0 -3
- package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +0 -1
- /package/dist/{array-D8NZ46Ht.js → array-CBdkHBGa.js} +0 -0
- /package/dist/{array-Dxz0O8Q3.cjs → array-Cx1JwiGD.cjs} +0 -0
- /package/dist/{cytoscape.esm-CrBwLFXE.cjs → cytoscape.esm-BzblyxzZ.cjs} +0 -0
- /package/dist/{cytoscape.esm-CPjF_mSK.js → cytoscape.esm-VShrX2U1.js} +0 -0
- /package/dist/{defaultLocale-DtzyZW63.cjs → defaultLocale-Bj_Ndo9V.cjs} +0 -0
- /package/dist/{defaultLocale-Dcyuaxxg.js → defaultLocale-dGy1YRID.js} +0 -0
- /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
- /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
- /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
- /package/dist/{init-BO60vQHJ.js → init-B7h4SEX5.js} +0 -0
- /package/dist/{init-B2MubQrj.cjs → init-CEL65JUo.cjs} +0 -0
- /package/dist/{katex-Du5WiYIy.js → katex-DWDh1q_h.js} +0 -0
- /package/dist/{path-CvfwEr8y.js → path-CAXMhBzK.js} +0 -0
- /package/dist/{path-Civic7PQ.cjs → path-CRahBUHI.cjs} +0 -0
- /package/dist/{rough.esm-BLKo1fIQ.cjs → rough.esm-BEA_SCZB.cjs} +0 -0
- /package/dist/{rough.esm-1mqTSjCt.js → rough.esm-TWNWL4Us.js} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { h,
|
|
4
|
-
import { t as v } from "./chunk-4BX2VUAB-
|
|
5
|
-
import { t as y } from "./mermaid-parser.core-
|
|
6
|
-
import { t as b } from "./chunk-QZHKN3VN-
|
|
7
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-
|
|
1
|
+
import { g as e, h as t, p as n } from "./src-v9RrE_4h.js";
|
|
2
|
+
import { H as r, K as i, U as a, Y as o, a as s, b as c, f as l, s as u, v as d, w as f, x as p, y as m } from "./chunk-CSCIHK7Q-9WKhcDqw.js";
|
|
3
|
+
import { g as h, i as g, m as _ } from "./chunk-5ZQYHXKU-C4uam08j.js";
|
|
4
|
+
import { t as v } from "./chunk-4BX2VUAB-BO1KRGb1.js";
|
|
5
|
+
import { t as y } from "./mermaid-parser.core-Dz33ts1l.js";
|
|
6
|
+
import { t as b } from "./chunk-QZHKN3VN-DCddt14Q.js";
|
|
7
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PVQCEYII.mjs
|
|
8
8
|
var x = {
|
|
9
9
|
NORMAL: 0,
|
|
10
10
|
REVERSE: 1,
|
|
11
11
|
HIGHLIGHT: 2,
|
|
12
12
|
MERGE: 3,
|
|
13
13
|
CHERRY_PICK: 4
|
|
14
|
-
}, ee =
|
|
14
|
+
}, ee = l.gitGraph, S = /* @__PURE__ */ t(() => g({
|
|
15
15
|
...ee,
|
|
16
|
-
...
|
|
16
|
+
...c().gitGraph
|
|
17
17
|
}), "getConfig"), C = new b(() => {
|
|
18
18
|
let e = S(), t = e.mainBranchName, n = e.mainBranchOrder;
|
|
19
19
|
return {
|
|
@@ -32,9 +32,9 @@ var x = {
|
|
|
32
32
|
};
|
|
33
33
|
});
|
|
34
34
|
function w() {
|
|
35
|
-
return
|
|
35
|
+
return _({ length: 7 });
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
t(w, "getID");
|
|
38
38
|
function T(e, t) {
|
|
39
39
|
let n = /* @__PURE__ */ Object.create(null);
|
|
40
40
|
return e.reduce((e, r) => {
|
|
@@ -42,162 +42,162 @@ function T(e, t) {
|
|
|
42
42
|
return n[i] || (n[i] = !0, e.push(r)), e;
|
|
43
43
|
}, []);
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
var te = /* @__PURE__ */
|
|
45
|
+
t(T, "uniqBy");
|
|
46
|
+
var te = /* @__PURE__ */ t(function(e) {
|
|
47
47
|
C.records.direction = e;
|
|
48
|
-
}, "setDirection"), ne = /* @__PURE__ */
|
|
49
|
-
|
|
48
|
+
}, "setDirection"), ne = /* @__PURE__ */ t(function(t) {
|
|
49
|
+
e.debug("options str", t), t = t?.trim(), t ||= "{}";
|
|
50
50
|
try {
|
|
51
|
-
C.records.options = JSON.parse(
|
|
52
|
-
} catch (
|
|
53
|
-
|
|
51
|
+
C.records.options = JSON.parse(t);
|
|
52
|
+
} catch (t) {
|
|
53
|
+
e.error("error while parsing gitGraph options", t.message);
|
|
54
54
|
}
|
|
55
|
-
}, "setOptions"), re = /* @__PURE__ */
|
|
55
|
+
}, "setOptions"), re = /* @__PURE__ */ t(function() {
|
|
56
56
|
return C.records.options;
|
|
57
|
-
}, "getOptions"), ie = /* @__PURE__ */
|
|
58
|
-
let
|
|
59
|
-
|
|
60
|
-
let
|
|
61
|
-
|
|
62
|
-
let
|
|
63
|
-
id:
|
|
64
|
-
message:
|
|
57
|
+
}, "getOptions"), ie = /* @__PURE__ */ t(function(t) {
|
|
58
|
+
let n = t.msg, r = t.id, i = t.type, a = t.tags;
|
|
59
|
+
e.info("commit", n, r, i, a), e.debug("Entering commit:", n, r, i, a);
|
|
60
|
+
let o = S();
|
|
61
|
+
r = u.sanitizeText(r, o), n = u.sanitizeText(n, o), a = a?.map((e) => u.sanitizeText(e, o));
|
|
62
|
+
let s = {
|
|
63
|
+
id: r || C.records.seq + "-" + w(),
|
|
64
|
+
message: n,
|
|
65
65
|
seq: C.records.seq++,
|
|
66
|
-
type:
|
|
67
|
-
tags:
|
|
66
|
+
type: i ?? x.NORMAL,
|
|
67
|
+
tags: a ?? [],
|
|
68
68
|
parents: C.records.head == null ? [] : [C.records.head.id],
|
|
69
69
|
branch: C.records.currBranch
|
|
70
70
|
};
|
|
71
|
-
C.records.head =
|
|
72
|
-
}, "commit"), ae = /* @__PURE__ */
|
|
73
|
-
let
|
|
74
|
-
if (
|
|
75
|
-
C.records.branches.set(
|
|
76
|
-
name:
|
|
77
|
-
order:
|
|
78
|
-
}), E(
|
|
79
|
-
}, "branch"), oe = /* @__PURE__ */
|
|
80
|
-
let
|
|
81
|
-
|
|
82
|
-
let
|
|
83
|
-
if (
|
|
84
|
-
if (C.records.currBranch ===
|
|
71
|
+
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__ */ t(function(t) {
|
|
73
|
+
let n = t.name, r = t.order;
|
|
74
|
+
if (n = u.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
|
+
C.records.branches.set(n, C.records.head == null ? null : C.records.head.id), C.records.branchConfig.set(n, {
|
|
76
|
+
name: n,
|
|
77
|
+
order: r
|
|
78
|
+
}), E(n), e.debug("in createBranch");
|
|
79
|
+
}, "branch"), oe = /* @__PURE__ */ t((t) => {
|
|
80
|
+
let n = t.branch, r = t.id, i = t.type, a = t.tags, o = S();
|
|
81
|
+
n = u.sanitizeText(n, o), r &&= u.sanitizeText(r, o);
|
|
82
|
+
let s = C.records.branches.get(C.records.currBranch), c = C.records.branches.get(n), l = s ? C.records.commits.get(s) : void 0, d = c ? C.records.commits.get(c) : void 0;
|
|
83
|
+
if (l && d && l.branch === n) throw Error(`Cannot merge branch '${n}' into itself.`);
|
|
84
|
+
if (C.records.currBranch === n) {
|
|
85
85
|
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
|
|
86
86
|
throw e.hash = {
|
|
87
|
-
text: `merge ${
|
|
88
|
-
token: `merge ${
|
|
87
|
+
text: `merge ${n}`,
|
|
88
|
+
token: `merge ${n}`,
|
|
89
89
|
expected: ["branch abc"]
|
|
90
90
|
}, e;
|
|
91
91
|
}
|
|
92
|
-
if (
|
|
92
|
+
if (l === void 0 || !l) {
|
|
93
93
|
let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);
|
|
94
94
|
throw e.hash = {
|
|
95
|
-
text: `merge ${
|
|
96
|
-
token: `merge ${
|
|
95
|
+
text: `merge ${n}`,
|
|
96
|
+
token: `merge ${n}`,
|
|
97
97
|
expected: ["commit"]
|
|
98
98
|
}, e;
|
|
99
99
|
}
|
|
100
|
-
if (!C.records.branches.has(
|
|
101
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" +
|
|
100
|
+
if (!C.records.branches.has(n)) {
|
|
101
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") does not exist");
|
|
102
102
|
throw e.hash = {
|
|
103
|
-
text: `merge ${
|
|
104
|
-
token: `merge ${
|
|
105
|
-
expected: [`branch ${
|
|
103
|
+
text: `merge ${n}`,
|
|
104
|
+
token: `merge ${n}`,
|
|
105
|
+
expected: [`branch ${n}`]
|
|
106
106
|
}, e;
|
|
107
107
|
}
|
|
108
|
-
if (
|
|
109
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" +
|
|
108
|
+
if (d === void 0 || !d) {
|
|
109
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") has no commits");
|
|
110
110
|
throw e.hash = {
|
|
111
|
-
text: `merge ${
|
|
112
|
-
token: `merge ${
|
|
111
|
+
text: `merge ${n}`,
|
|
112
|
+
token: `merge ${n}`,
|
|
113
113
|
expected: ["\"commit\""]
|
|
114
114
|
}, e;
|
|
115
115
|
}
|
|
116
|
-
if (
|
|
116
|
+
if (l === d) {
|
|
117
117
|
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
|
|
118
118
|
throw e.hash = {
|
|
119
|
-
text: `merge ${
|
|
120
|
-
token: `merge ${
|
|
119
|
+
text: `merge ${n}`,
|
|
120
|
+
token: `merge ${n}`,
|
|
121
121
|
expected: ["branch abc"]
|
|
122
122
|
}, e;
|
|
123
123
|
}
|
|
124
|
-
if (
|
|
125
|
-
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" +
|
|
124
|
+
if (r && C.records.commits.has(r)) {
|
|
125
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + r + " already exists, use different custom id");
|
|
126
126
|
throw e.hash = {
|
|
127
|
-
text: `merge ${
|
|
128
|
-
token: `merge ${
|
|
129
|
-
expected: [`merge ${
|
|
127
|
+
text: `merge ${n} ${r} ${i} ${a?.join(" ")}`,
|
|
128
|
+
token: `merge ${n} ${r} ${i} ${a?.join(" ")}`,
|
|
129
|
+
expected: [`merge ${n} ${r}_UNIQUE ${i} ${a?.join(" ")}`]
|
|
130
130
|
}, e;
|
|
131
131
|
}
|
|
132
|
-
let
|
|
133
|
-
id:
|
|
134
|
-
message: `merged branch ${
|
|
132
|
+
let f = c || "", p = {
|
|
133
|
+
id: r || `${C.records.seq}-${w()}`,
|
|
134
|
+
message: `merged branch ${n} into ${C.records.currBranch}`,
|
|
135
135
|
seq: C.records.seq++,
|
|
136
|
-
parents: C.records.head == null ? [] : [C.records.head.id,
|
|
136
|
+
parents: C.records.head == null ? [] : [C.records.head.id, f],
|
|
137
137
|
branch: C.records.currBranch,
|
|
138
138
|
type: x.MERGE,
|
|
139
|
-
customType:
|
|
140
|
-
customId: !!
|
|
141
|
-
tags:
|
|
139
|
+
customType: i,
|
|
140
|
+
customId: !!r,
|
|
141
|
+
tags: a ?? []
|
|
142
142
|
};
|
|
143
|
-
C.records.head = p, C.records.commits.set(p.id, p), C.records.branches.set(C.records.currBranch, p.id),
|
|
144
|
-
}, "merge"), se = /* @__PURE__ */
|
|
145
|
-
let
|
|
146
|
-
|
|
147
|
-
let
|
|
148
|
-
if (
|
|
143
|
+
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__ */ t(function(t) {
|
|
145
|
+
let n = t.id, r = t.targetId, i = t.tags, a = t.parent;
|
|
146
|
+
e.debug("Entering cherryPick:", n, r, i);
|
|
147
|
+
let o = S();
|
|
148
|
+
if (n = u.sanitizeText(n, o), r = u.sanitizeText(r, o), i = i?.map((e) => u.sanitizeText(e, o)), a = u.sanitizeText(a, o), !n || !C.records.commits.has(n)) {
|
|
149
149
|
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
150
150
|
throw e.hash = {
|
|
151
|
-
text: `cherryPick ${
|
|
152
|
-
token: `cherryPick ${
|
|
151
|
+
text: `cherryPick ${n} ${r}`,
|
|
152
|
+
token: `cherryPick ${n} ${r}`,
|
|
153
153
|
expected: ["cherry-pick abc"]
|
|
154
154
|
}, e;
|
|
155
155
|
}
|
|
156
|
-
let
|
|
157
|
-
if (
|
|
158
|
-
if (
|
|
159
|
-
let
|
|
160
|
-
if (
|
|
161
|
-
if (!
|
|
162
|
-
if (
|
|
156
|
+
let s = C.records.commits.get(n);
|
|
157
|
+
if (s === void 0 || !s) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
158
|
+
if (a && !(Array.isArray(s.parents) && s.parents.includes(a))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
|
|
159
|
+
let c = s.branch;
|
|
160
|
+
if (s.type === x.MERGE && !a) 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 (!r || !C.records.commits.has(r)) {
|
|
162
|
+
if (c === C.records.currBranch) {
|
|
163
163
|
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
|
|
164
164
|
throw e.hash = {
|
|
165
|
-
text: `cherryPick ${
|
|
166
|
-
token: `cherryPick ${
|
|
165
|
+
text: `cherryPick ${n} ${r}`,
|
|
166
|
+
token: `cherryPick ${n} ${r}`,
|
|
167
167
|
expected: ["cherry-pick abc"]
|
|
168
168
|
}, e;
|
|
169
169
|
}
|
|
170
|
-
let
|
|
171
|
-
if (
|
|
170
|
+
let t = C.records.branches.get(C.records.currBranch);
|
|
171
|
+
if (t === void 0 || !t) {
|
|
172
172
|
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
|
|
173
173
|
throw e.hash = {
|
|
174
|
-
text: `cherryPick ${
|
|
175
|
-
token: `cherryPick ${
|
|
174
|
+
text: `cherryPick ${n} ${r}`,
|
|
175
|
+
token: `cherryPick ${n} ${r}`,
|
|
176
176
|
expected: ["cherry-pick abc"]
|
|
177
177
|
}, e;
|
|
178
178
|
}
|
|
179
|
-
let
|
|
180
|
-
if (
|
|
179
|
+
let o = C.records.commits.get(t);
|
|
180
|
+
if (o === void 0 || !o) {
|
|
181
181
|
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
|
|
182
182
|
throw e.hash = {
|
|
183
|
-
text: `cherryPick ${
|
|
184
|
-
token: `cherryPick ${
|
|
183
|
+
text: `cherryPick ${n} ${r}`,
|
|
184
|
+
token: `cherryPick ${n} ${r}`,
|
|
185
185
|
expected: ["cherry-pick abc"]
|
|
186
186
|
}, e;
|
|
187
187
|
}
|
|
188
|
-
let
|
|
188
|
+
let l = {
|
|
189
189
|
id: C.records.seq + "-" + w(),
|
|
190
|
-
message: `cherry-picked ${
|
|
190
|
+
message: `cherry-picked ${s?.message} into ${C.records.currBranch}`,
|
|
191
191
|
seq: C.records.seq++,
|
|
192
|
-
parents: C.records.head == null ? [] : [C.records.head.id,
|
|
192
|
+
parents: C.records.head == null ? [] : [C.records.head.id, s.id],
|
|
193
193
|
branch: C.records.currBranch,
|
|
194
194
|
type: x.CHERRY_PICK,
|
|
195
|
-
tags:
|
|
195
|
+
tags: i ? i.filter(Boolean) : [`cherry-pick:${s.id}${s.type === x.MERGE ? `|parent:${a}` : ""}`]
|
|
196
196
|
};
|
|
197
|
-
C.records.head =
|
|
197
|
+
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
198
|
}
|
|
199
|
-
}, "cherryPick"), E = /* @__PURE__ */
|
|
200
|
-
if (e =
|
|
199
|
+
}, "cherryPick"), E = /* @__PURE__ */ t(function(e) {
|
|
200
|
+
if (e = u.sanitizeText(e, S()), C.records.branches.has(e)) {
|
|
201
201
|
C.records.currBranch = e;
|
|
202
202
|
let t = C.records.branches.get(C.records.currBranch);
|
|
203
203
|
t === void 0 || !t ? C.records.head = null : C.records.head = C.records.commits.get(t) ?? null;
|
|
@@ -214,49 +214,49 @@ function D(e, t, n) {
|
|
|
214
214
|
let r = e.indexOf(t);
|
|
215
215
|
r === -1 ? e.push(n) : e.splice(r, 1, n);
|
|
216
216
|
}
|
|
217
|
-
|
|
218
|
-
function O(
|
|
219
|
-
let
|
|
220
|
-
|
|
221
|
-
e ===
|
|
217
|
+
t(D, "upsert");
|
|
218
|
+
function O(t) {
|
|
219
|
+
let n = t.reduce((e, t) => e.seq > t.seq ? e : t, t[0]), r = "";
|
|
220
|
+
t.forEach(function(e) {
|
|
221
|
+
e === n ? r += " *" : r += " |";
|
|
222
222
|
});
|
|
223
|
-
let
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
let i = [
|
|
224
|
+
r,
|
|
225
|
+
n.id,
|
|
226
|
+
n.seq
|
|
227
227
|
];
|
|
228
|
-
for (let e in C.records.branches) C.records.branches.get(e) ===
|
|
229
|
-
if (
|
|
230
|
-
let
|
|
231
|
-
D(
|
|
232
|
-
} else if (
|
|
233
|
-
else if (
|
|
234
|
-
let
|
|
235
|
-
D(
|
|
228
|
+
for (let e in C.records.branches) C.records.branches.get(e) === n.id && i.push(e);
|
|
229
|
+
if (e.debug(i.join(" ")), n.parents && n.parents.length == 2 && n.parents[0] && n.parents[1]) {
|
|
230
|
+
let e = C.records.commits.get(n.parents[0]);
|
|
231
|
+
D(t, n, e), n.parents[1] && t.push(C.records.commits.get(n.parents[1]));
|
|
232
|
+
} else if (n.parents.length == 0) return;
|
|
233
|
+
else if (n.parents[0]) {
|
|
234
|
+
let e = C.records.commits.get(n.parents[0]);
|
|
235
|
+
D(t, n, e);
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
t = T(t, (e) => e.id), O(t);
|
|
238
238
|
}
|
|
239
|
-
|
|
240
|
-
var ce = /* @__PURE__ */
|
|
241
|
-
|
|
242
|
-
let
|
|
243
|
-
O([
|
|
244
|
-
}, "prettyPrint"), le = /* @__PURE__ */
|
|
245
|
-
C.reset(),
|
|
246
|
-
}, "clear"), ue = /* @__PURE__ */
|
|
239
|
+
t(O, "prettyPrintCommitHistory");
|
|
240
|
+
var ce = /* @__PURE__ */ t(function() {
|
|
241
|
+
e.debug(C.records.commits);
|
|
242
|
+
let t = k()[0];
|
|
243
|
+
O([t]);
|
|
244
|
+
}, "prettyPrint"), le = /* @__PURE__ */ t(function() {
|
|
245
|
+
C.reset(), s();
|
|
246
|
+
}, "clear"), ue = /* @__PURE__ */ t(function() {
|
|
247
247
|
return [...C.records.branchConfig.values()].map((e, t) => e.order !== null && e.order !== void 0 ? e : {
|
|
248
248
|
...e,
|
|
249
249
|
order: parseFloat(`0.${t}`)
|
|
250
250
|
}).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map(({ name: e }) => ({ name: e }));
|
|
251
|
-
}, "getBranchesAsObjArray"), de = /* @__PURE__ */
|
|
251
|
+
}, "getBranchesAsObjArray"), de = /* @__PURE__ */ t(function() {
|
|
252
252
|
return C.records.branches;
|
|
253
|
-
}, "getBranches"), fe = /* @__PURE__ */
|
|
253
|
+
}, "getBranches"), fe = /* @__PURE__ */ t(function() {
|
|
254
254
|
return C.records.commits;
|
|
255
|
-
}, "getCommits"), k = /* @__PURE__ */
|
|
256
|
-
let
|
|
257
|
-
return
|
|
258
|
-
|
|
259
|
-
}),
|
|
255
|
+
}, "getCommits"), k = /* @__PURE__ */ t(function() {
|
|
256
|
+
let t = [...C.records.commits.values()];
|
|
257
|
+
return t.forEach(function(t) {
|
|
258
|
+
e.debug(t.id);
|
|
259
|
+
}), t.sort((e, t) => e.seq - t.seq), t;
|
|
260
260
|
}, "getCommitsArray"), A = {
|
|
261
261
|
commitType: x,
|
|
262
262
|
getConfig: S,
|
|
@@ -274,54 +274,54 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
274
274
|
getBranches: de,
|
|
275
275
|
getCommits: fe,
|
|
276
276
|
getCommitsArray: k,
|
|
277
|
-
getCurrentBranch: /* @__PURE__ */
|
|
277
|
+
getCurrentBranch: /* @__PURE__ */ t(function() {
|
|
278
278
|
return C.records.currBranch;
|
|
279
279
|
}, "getCurrentBranch"),
|
|
280
|
-
getDirection: /* @__PURE__ */
|
|
280
|
+
getDirection: /* @__PURE__ */ t(function() {
|
|
281
281
|
return C.records.direction;
|
|
282
282
|
}, "getDirection"),
|
|
283
|
-
getHead: /* @__PURE__ */
|
|
283
|
+
getHead: /* @__PURE__ */ t(function() {
|
|
284
284
|
return C.records.head;
|
|
285
285
|
}, "getHead"),
|
|
286
|
-
setAccTitle:
|
|
287
|
-
getAccTitle:
|
|
288
|
-
getAccDescription:
|
|
289
|
-
setAccDescription:
|
|
290
|
-
setDiagramTitle:
|
|
291
|
-
getDiagramTitle:
|
|
292
|
-
}, pe = /* @__PURE__ */
|
|
286
|
+
setAccTitle: a,
|
|
287
|
+
getAccTitle: m,
|
|
288
|
+
getAccDescription: d,
|
|
289
|
+
setAccDescription: r,
|
|
290
|
+
setDiagramTitle: i,
|
|
291
|
+
getDiagramTitle: f
|
|
292
|
+
}, pe = /* @__PURE__ */ t((e, t) => {
|
|
293
293
|
v(e, t), e.dir && t.setDirection(e.dir);
|
|
294
294
|
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__ */
|
|
295
|
+
}, "populate"), me = /* @__PURE__ */ t((n, r) => {
|
|
296
|
+
let i = {
|
|
297
|
+
Commit: /* @__PURE__ */ t((e) => r.commit(he(e)), "Commit"),
|
|
298
|
+
Branch: /* @__PURE__ */ t((e) => r.branch(ge(e)), "Branch"),
|
|
299
|
+
Merge: /* @__PURE__ */ t((e) => r.merge(_e(e)), "Merge"),
|
|
300
|
+
Checkout: /* @__PURE__ */ t((e) => r.checkout(ve(e)), "Checkout"),
|
|
301
|
+
CherryPicking: /* @__PURE__ */ t((e) => r.cherryPick(ye(e)), "CherryPicking")
|
|
302
|
+
}[n.$type];
|
|
303
|
+
i ? i(n) : e.error(`Unknown statement type: ${n.$type}`);
|
|
304
|
+
}, "parseStatement"), he = /* @__PURE__ */ t((e) => ({
|
|
305
305
|
id: e.id,
|
|
306
306
|
msg: e.message ?? "",
|
|
307
307
|
type: e.type === void 0 ? x.NORMAL : x[e.type],
|
|
308
308
|
tags: e.tags ?? void 0
|
|
309
|
-
}), "parseCommit"), ge = /* @__PURE__ */
|
|
309
|
+
}), "parseCommit"), ge = /* @__PURE__ */ t((e) => ({
|
|
310
310
|
name: e.name,
|
|
311
311
|
order: e.order ?? 0
|
|
312
|
-
}), "parseBranch"), _e = /* @__PURE__ */
|
|
312
|
+
}), "parseBranch"), _e = /* @__PURE__ */ t((e) => ({
|
|
313
313
|
branch: e.branch,
|
|
314
314
|
id: e.id ?? "",
|
|
315
315
|
type: e.type === void 0 ? void 0 : x[e.type],
|
|
316
316
|
tags: e.tags ?? void 0
|
|
317
|
-
}), "parseMerge"), ve = /* @__PURE__ */
|
|
317
|
+
}), "parseMerge"), ve = /* @__PURE__ */ t((e) => e.branch, "parseCheckout"), ye = /* @__PURE__ */ t((e) => ({
|
|
318
318
|
id: e.id,
|
|
319
319
|
targetId: "",
|
|
320
320
|
tags: e.tags?.length === 0 ? void 0 : e.tags,
|
|
321
321
|
parent: e.parent
|
|
322
|
-
}), "parseCherryPicking"), be = { parse: /* @__PURE__ */
|
|
323
|
-
let
|
|
324
|
-
|
|
322
|
+
}), "parseCherryPicking"), be = { parse: /* @__PURE__ */ t(async (t) => {
|
|
323
|
+
let n = await y("gitGraph", t);
|
|
324
|
+
e.debug(n), pe(n, A);
|
|
325
325
|
}, "parse") }, j = 10, M = 40, N = 4, P = 2, F = 8, I = /* @__PURE__ */ new Set([
|
|
326
326
|
"redux",
|
|
327
327
|
"redux-dark",
|
|
@@ -332,27 +332,27 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
332
332
|
"redux-dark",
|
|
333
333
|
"redux-dark-color",
|
|
334
334
|
"neo-dark"
|
|
335
|
-
]), z = /* @__PURE__ */
|
|
335
|
+
]), z = /* @__PURE__ */ t((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__ */ t(() => {
|
|
336
336
|
B.clear(), V.clear(), U.clear(), G = 0, W = [], K = "LR";
|
|
337
|
-
}, "clear"), J = /* @__PURE__ */
|
|
337
|
+
}, "clear"), J = /* @__PURE__ */ t((e) => {
|
|
338
338
|
let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
339
339
|
return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
|
|
340
340
|
let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
341
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
342
|
}), t;
|
|
343
|
-
}, "drawText"), Y = /* @__PURE__ */
|
|
344
|
-
let
|
|
345
|
-
return K === "BT" ? (
|
|
346
|
-
let
|
|
347
|
-
|
|
348
|
-
}),
|
|
349
|
-
}, "findClosestParent"), Se = /* @__PURE__ */
|
|
343
|
+
}, "drawText"), Y = /* @__PURE__ */ t((e) => {
|
|
344
|
+
let n, r, i;
|
|
345
|
+
return K === "BT" ? (r = /* @__PURE__ */ t((e, t) => e <= t, "comparisonFunc"), i = Infinity) : (r = /* @__PURE__ */ t((e, t) => e >= t, "comparisonFunc"), i = 0), e.forEach((e) => {
|
|
346
|
+
let t = K === "TB" || K == "BT" ? V.get(e)?.y : V.get(e)?.x;
|
|
347
|
+
t !== void 0 && r(t, i) && (n = e, i = t);
|
|
348
|
+
}), n;
|
|
349
|
+
}, "findClosestParent"), Se = /* @__PURE__ */ t((e) => {
|
|
350
350
|
let t = "", n = Infinity;
|
|
351
351
|
return e.forEach((e) => {
|
|
352
352
|
let r = V.get(e).y;
|
|
353
353
|
r <= n && (t = e, n = r);
|
|
354
354
|
}), t || void 0;
|
|
355
|
-
}, "findClosestParentBT"), Ce = /* @__PURE__ */
|
|
355
|
+
}, "findClosestParentBT"), Ce = /* @__PURE__ */ t((e, t, n) => {
|
|
356
356
|
let r = n, i = n, a = [];
|
|
357
357
|
e.forEach((e) => {
|
|
358
358
|
let n = t.get(e);
|
|
@@ -372,13 +372,13 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
});
|
|
375
|
-
}, "setParallelBTPos"), we = /* @__PURE__ */
|
|
375
|
+
}, "setParallelBTPos"), we = /* @__PURE__ */ t((e) => {
|
|
376
376
|
let t = Y(e.parents.filter((e) => e !== null));
|
|
377
377
|
if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
|
|
378
378
|
let n = V.get(t)?.y;
|
|
379
379
|
if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
|
|
380
380
|
return n;
|
|
381
|
-
}, "findClosestParentPos"), Te = /* @__PURE__ */
|
|
381
|
+
}, "findClosestParentPos"), Te = /* @__PURE__ */ t((e) => we(e) + M, "calculateCommitPosition"), Ee = /* @__PURE__ */ t((e, t) => {
|
|
382
382
|
let n = B.get(e.branch);
|
|
383
383
|
if (!n) throw Error(`Branch not found for commit ${e.id}`);
|
|
384
384
|
let r = n.pos, i = t + j;
|
|
@@ -389,7 +389,7 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
389
389
|
x: r,
|
|
390
390
|
y: i
|
|
391
391
|
};
|
|
392
|
-
}, "setCommitPosition"), De = /* @__PURE__ */
|
|
392
|
+
}, "setCommitPosition"), De = /* @__PURE__ */ t((e, t, n) => {
|
|
393
393
|
let r = B.get(e.branch);
|
|
394
394
|
if (!r) throw Error(`Branch not found for commit ${e.id}`);
|
|
395
395
|
let i = t + n, a = r.pos;
|
|
@@ -397,22 +397,22 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
397
397
|
x: a,
|
|
398
398
|
y: i
|
|
399
399
|
});
|
|
400
|
-
}, "setRootPosition"), Oe = /* @__PURE__ */
|
|
401
|
-
let { theme:
|
|
402
|
-
if (a === x.HIGHLIGHT) e.append("rect").attr("x", n.x - 10 + (
|
|
403
|
-
else if (a === x.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r",
|
|
400
|
+
}, "setRootPosition"), Oe = /* @__PURE__ */ t((e, t, n, r, i, a) => {
|
|
401
|
+
let { theme: o } = p(), s = I.has(o ?? ""), c = R.has(o ?? ""), l = xe.has(o ?? "");
|
|
402
|
+
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
|
+
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
404
|
else {
|
|
405
405
|
let o = e.append("circle");
|
|
406
|
-
if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r",
|
|
406
|
+
if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r", s ? 7 : 10), o.attr("class", `commit ${t.id} commit${z(i, F, c)}`), a === x.MERGE) {
|
|
407
407
|
let a = e.append("circle");
|
|
408
|
-
a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r",
|
|
408
|
+
a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r", s ? 5 : 6), a.attr("class", `commit ${r} ${t.id} commit${z(i, F, c)}`);
|
|
409
409
|
}
|
|
410
410
|
if (a === x.REVERSE) {
|
|
411
|
-
let a = e.append("path"), o =
|
|
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,
|
|
411
|
+
let a = e.append("path"), o = s ? 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, c)}`);
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
}, "drawCommitBullet"), ke = /* @__PURE__ */
|
|
415
|
+
}, "drawCommitBullet"), ke = /* @__PURE__ */ t((e, t, n, r, i) => {
|
|
416
416
|
if (t.type !== x.CHERRY_PICK && (t.customId && t.type === x.MERGE || t.type !== x.MERGE) && i.showCommitLabel) {
|
|
417
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
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 + ")");
|
|
@@ -421,7 +421,7 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
421
421
|
a.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
}, "drawCommitLabel"), Ae = /* @__PURE__ */
|
|
424
|
+
}, "drawCommitLabel"), Ae = /* @__PURE__ */ t((e, t, n, r) => {
|
|
425
425
|
if (t.tags.length > 0) {
|
|
426
426
|
let i = 0, a = 0, o = 0, s = [];
|
|
427
427
|
for (let r of t.tags.reverse()) {
|
|
@@ -454,7 +454,7 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
}, "drawCommitTags"), je = /* @__PURE__ */
|
|
457
|
+
}, "drawCommitTags"), je = /* @__PURE__ */ t((e) => {
|
|
458
458
|
switch (e.customType ?? e.type) {
|
|
459
459
|
case x.NORMAL: return "commit-normal";
|
|
460
460
|
case x.REVERSE: return "commit-reverse";
|
|
@@ -463,7 +463,7 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
463
463
|
case x.CHERRY_PICK: return "commit-cherry-pick";
|
|
464
464
|
default: return "commit-normal";
|
|
465
465
|
}
|
|
466
|
-
}, "getCommitClassType"), Me = /* @__PURE__ */
|
|
466
|
+
}, "getCommitClassType"), Me = /* @__PURE__ */ t((e, t, n, r) => {
|
|
467
467
|
let i = {
|
|
468
468
|
x: 0,
|
|
469
469
|
y: 0
|
|
@@ -478,57 +478,57 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
478
478
|
else if (t === "BT") return (r.get(e.id) ?? i).y - M;
|
|
479
479
|
else return 0;
|
|
480
480
|
return 0;
|
|
481
|
-
}, "calculatePosition"), Ne = /* @__PURE__ */
|
|
481
|
+
}, "calculatePosition"), Ne = /* @__PURE__ */ t((e, t, n) => {
|
|
482
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
483
|
if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
|
|
484
|
-
let
|
|
484
|
+
let o = I.has(p().theme ?? "");
|
|
485
485
|
return {
|
|
486
486
|
x: a,
|
|
487
|
-
y: K === "TB" || K === "BT" ? r : i + (
|
|
487
|
+
y: K === "TB" || K === "BT" ? r : i + (o ? L / 2 + 1 : -2),
|
|
488
488
|
posWithOffset: r
|
|
489
489
|
};
|
|
490
|
-
}, "getCommitPosition"), X = /* @__PURE__ */
|
|
491
|
-
let
|
|
492
|
-
let r =
|
|
490
|
+
}, "getCommitPosition"), X = /* @__PURE__ */ t((e, n, r, i) => {
|
|
491
|
+
let a = e.append("g").attr("class", "commit-bullets"), o = e.append("g").attr("class", "commit-labels"), s = K === "TB" || K === "BT" ? H : 0, c = [...n.keys()], l = i.parallelCommits ?? !1, u = /* @__PURE__ */ t((e, t) => {
|
|
492
|
+
let r = n.get(e)?.seq, i = n.get(t)?.seq;
|
|
493
493
|
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 = je(
|
|
502
|
-
Oe(
|
|
494
|
+
}, "sortKeys"), d = c.sort(u);
|
|
495
|
+
K === "BT" && (l && Ce(d, n, s), d = d.reverse()), d.forEach((e) => {
|
|
496
|
+
let t = n.get(e);
|
|
497
|
+
if (!t) throw Error(`Commit not found for key ${e}`);
|
|
498
|
+
l && (s = Me(t, K, s, V));
|
|
499
|
+
let c = Ne(t, s, l);
|
|
500
|
+
if (r) {
|
|
501
|
+
let e = je(t), n = t.customType ?? t.type;
|
|
502
|
+
Oe(a, t, c, e, B.get(t.branch)?.index ?? 0, n), ke(o, t, c, s, i), Ae(o, t, c, s);
|
|
503
503
|
}
|
|
504
|
-
K === "TB" || K === "BT" ? V.set(
|
|
505
|
-
x:
|
|
506
|
-
y:
|
|
507
|
-
}) : V.set(
|
|
508
|
-
x:
|
|
509
|
-
y:
|
|
510
|
-
}),
|
|
504
|
+
K === "TB" || K === "BT" ? V.set(t.id, {
|
|
505
|
+
x: c.x,
|
|
506
|
+
y: c.posWithOffset
|
|
507
|
+
}) : V.set(t.id, {
|
|
508
|
+
x: c.posWithOffset,
|
|
509
|
+
y: c.y
|
|
510
|
+
}), s = K === "BT" && l ? s + M : s + M + j, s > G && (G = s);
|
|
511
511
|
});
|
|
512
|
-
}, "drawCommits"), Pe = /* @__PURE__ */
|
|
513
|
-
let
|
|
514
|
-
return [...
|
|
515
|
-
}, "shouldRerouteArrow"), Z = /* @__PURE__ */
|
|
512
|
+
}, "drawCommits"), Pe = /* @__PURE__ */ t((e, n, r, i, a) => {
|
|
513
|
+
let o = (K === "TB" || K === "BT" ? r.x < i.x : r.y < i.y) ? n.branch : e.branch, s = /* @__PURE__ */ t((e) => e.branch === o, "isOnBranchToGetCurve"), c = /* @__PURE__ */ t((t) => t.seq > e.seq && t.seq < n.seq, "isBetweenCommits");
|
|
514
|
+
return [...a.values()].some((e) => c(e) && s(e));
|
|
515
|
+
}, "shouldRerouteArrow"), Z = /* @__PURE__ */ t((e, t, n = 0) => {
|
|
516
516
|
let r = e + Math.abs(e - t) / 2;
|
|
517
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__ */
|
|
519
|
-
let { theme: i } =
|
|
520
|
-
if (
|
|
521
|
-
let
|
|
518
|
+
}, "findLane"), Fe = /* @__PURE__ */ t((e, t, n, r) => {
|
|
519
|
+
let { theme: i } = p(), a = R.has(i ?? ""), o = V.get(t.id), s = V.get(n.id);
|
|
520
|
+
if (o === void 0 || s === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
|
|
521
|
+
let c = Pe(t, n, o, s, r), l = "", u = "", d = 0, f = 0, m = B.get(n.branch)?.index;
|
|
522
522
|
n.type === x.MERGE && t.id !== n.parents[0] && (m = B.get(t.branch)?.index);
|
|
523
523
|
let h;
|
|
524
|
-
if (
|
|
525
|
-
|
|
526
|
-
let e =
|
|
527
|
-
K === "TB" ?
|
|
528
|
-
} else
|
|
524
|
+
if (c) {
|
|
525
|
+
l = "A 10 10, 0, 0, 0,", u = "A 10 10, 0, 0, 1,", d = 10, f = 10;
|
|
526
|
+
let e = o.y < s.y ? Z(o.y, s.y) : Z(s.y, o.y), n = o.x < s.x ? Z(o.x, s.x) : Z(s.x, o.x);
|
|
527
|
+
K === "TB" ? o.x < s.x ? h = `M ${o.x} ${o.y} L ${n - d} ${o.y} ${u} ${n} ${o.y + f} L ${n} ${s.y - d} ${l} ${n + f} ${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 + f} L ${n} ${s.y - d} ${u} ${n - f} ${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 - f} L ${n} ${s.y + d} ${u} ${n + f} ${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 - f} L ${n} ${s.y + d} ${l} ${n - f} ${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 + f} ${e} L ${s.x - d} ${e} ${u} ${s.x} ${e + f} 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 + f} ${e} L ${s.x - d} ${e} ${l} ${s.x} ${e - f} L ${s.x} ${s.y}`);
|
|
528
|
+
} else l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20, f = 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 + f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${u} ${s.x} ${o.y + f} 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, f = 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 - f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + d} ${o.y} ${l} ${s.x} ${o.y + f} 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 + f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${l} ${s.x} ${o.y - f} 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, f = 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 - f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + d} ${o.y} ${u} ${s.x} ${o.y - f} 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 + f} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y - d} ${l} ${o.x + f} ${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 - f} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y + d} ${u} ${o.x + f} ${s.y} L ${s.x} ${s.y}`), o.y === s.y && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`));
|
|
529
529
|
if (h === void 0) throw Error("Line definition not found");
|
|
530
530
|
e.append("path").attr("d", h).attr("class", "arrow arrow" + z(m, F, a));
|
|
531
|
-
}, "drawArrow"), Ie = /* @__PURE__ */
|
|
531
|
+
}, "drawArrow"), Ie = /* @__PURE__ */ t((e, t) => {
|
|
532
532
|
let n = e.append("g").attr("class", "commit-arrows");
|
|
533
533
|
[...t.keys()].forEach((e) => {
|
|
534
534
|
let r = t.get(e);
|
|
@@ -536,47 +536,47 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
536
536
|
Fe(n, t.get(e), r, t);
|
|
537
537
|
});
|
|
538
538
|
});
|
|
539
|
-
}, "drawArrows"), Le = /* @__PURE__ */
|
|
540
|
-
let { look: i, theme: a, themeVariables:
|
|
539
|
+
}, "drawArrows"), Le = /* @__PURE__ */ t((e, t, n, r) => {
|
|
540
|
+
let { look: i, theme: a, themeVariables: o } = p(), { dropShadow: s, THEME_COLOR_LIMIT: c } = o, l = I.has(a ?? ""), u = R.has(a ?? ""), d = e.append("g");
|
|
541
541
|
t.forEach((e, t) => {
|
|
542
|
-
let a = z(t,
|
|
542
|
+
let a = z(t, l ? c : F, u), o = B.get(e.name)?.pos;
|
|
543
543
|
if (o === void 0) throw Error(`Position not found for branch ${e.name}`);
|
|
544
|
-
let
|
|
545
|
-
p.attr("x1", 0), p.attr("y1",
|
|
546
|
-
let m = e.name, h = J(m), g =
|
|
544
|
+
let f = K === "TB" || K === "BT" ? o : l ? o + L / 2 + 1 : o - 2, p = d.append("line");
|
|
545
|
+
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 = J(m), g = d.insert("rect"), _ = d.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + a);
|
|
547
547
|
_.node().appendChild(h);
|
|
548
|
-
let v = h.getBBox(), y =
|
|
549
|
-
i === "neo" && g.attr("data-look", "neo"), g.attr("class", "branchLabelBkg label" + a).attr("style", i === "neo" ? `filter:${
|
|
548
|
+
let v = h.getBBox(), y = l ? 0 : 4, b = l ? 16 : 0, x = l ? L : 0;
|
|
549
|
+
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
550
|
});
|
|
551
|
-
}, "drawBranches"), Re = /* @__PURE__ */
|
|
551
|
+
}, "drawBranches"), Re = /* @__PURE__ */ t(function(e, t, n, r, i) {
|
|
552
552
|
return B.set(e, {
|
|
553
553
|
pos: t,
|
|
554
554
|
index: n
|
|
555
555
|
}), t += 50 + (i ? 40 : 0) + (K === "TB" || K === "BT" ? r.width / 2 : 0), t;
|
|
556
|
-
}, "setBranchPosition"), ze = { draw: /* @__PURE__ */
|
|
557
|
-
q(),
|
|
558
|
-
let
|
|
559
|
-
if (!
|
|
560
|
-
|
|
556
|
+
}, "setBranchPosition"), ze = { draw: /* @__PURE__ */ t(function(t, r, i, a) {
|
|
557
|
+
q(), e.debug("in gitgraph renderer", t + "\n", "id:", r, i);
|
|
558
|
+
let s = a.db;
|
|
559
|
+
if (!s.getConfig) {
|
|
560
|
+
e.error("getConfig method is not available on db");
|
|
561
561
|
return;
|
|
562
562
|
}
|
|
563
|
-
let
|
|
564
|
-
U =
|
|
565
|
-
let
|
|
566
|
-
K =
|
|
567
|
-
let
|
|
563
|
+
let c = s.getConfig(), l = c.rotateCommitLabel ?? !1;
|
|
564
|
+
U = s.getCommits();
|
|
565
|
+
let u = s.getBranchesAsObjArray();
|
|
566
|
+
K = s.getDirection();
|
|
567
|
+
let d = n(`[id="${r}"]`), { look: f, theme: m, themeVariables: g } = p(), { useGradient: _, gradientStart: v, gradientStop: y, filterColor: b } = g;
|
|
568
568
|
if (_) {
|
|
569
|
-
let e =
|
|
569
|
+
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
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
571
|
}
|
|
572
|
-
|
|
572
|
+
f === "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
573
|
let x = 0;
|
|
574
|
-
|
|
575
|
-
let n = J(e.name), r =
|
|
574
|
+
u.forEach((e, t) => {
|
|
575
|
+
let n = J(e.name), r = d.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
|
|
576
576
|
a.node()?.appendChild(n);
|
|
577
577
|
let o = n.getBBox();
|
|
578
|
-
x = Re(e.name, x, t, o,
|
|
579
|
-
}), X(
|
|
578
|
+
x = Re(e.name, x, t, o, l), a.remove(), i.remove(), r.remove();
|
|
579
|
+
}), X(d, U, !1, c), c.showBranches && Le(d, u, c, r), Ie(d, U), X(d, U, !0, c), h.insertTitle(d, "gitTitleText", c.titleTopMargin ?? 0, s.getDiagramTitle()), o(void 0, d, c.diagramPadding, c.useMaxWidth);
|
|
580
580
|
}, "draw") }, Q = 8, $ = /* @__PURE__ */ new Set([
|
|
581
581
|
"redux",
|
|
582
582
|
"redux-dark",
|
|
@@ -594,14 +594,14 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
594
594
|
"redux-dark-color",
|
|
595
595
|
"neo",
|
|
596
596
|
"neo-dark"
|
|
597
|
-
]), We = /* @__PURE__ */
|
|
597
|
+
]), We = /* @__PURE__ */ t((e) => {
|
|
598
598
|
let { svgId: t } = e, n = "";
|
|
599
599
|
if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
|
|
600
600
|
.label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
|
|
601
601
|
`;
|
|
602
602
|
return n;
|
|
603
|
-
}, "genGitGraphGradient"), Ge = /* @__PURE__ */
|
|
604
|
-
let { theme: t, themeVariables: n } =
|
|
603
|
+
}, "genGitGraphGradient"), Ge = /* @__PURE__ */ t((e) => {
|
|
604
|
+
let { theme: t, themeVariables: n } = c(), { borderColorArray: r } = n, i = $.has(t);
|
|
605
605
|
if (Ve.has(t)) {
|
|
606
606
|
let t = "";
|
|
607
607
|
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
|
|
@@ -656,7 +656,7 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
656
656
|
`;
|
|
657
657
|
return t;
|
|
658
658
|
}
|
|
659
|
-
}, "genColor"), Ke = /* @__PURE__ */
|
|
659
|
+
}, "genColor"), Ke = /* @__PURE__ */ t((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
|
|
660
660
|
let n = t % Q;
|
|
661
661
|
return `
|
|
662
662
|
.branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
|
|
@@ -669,8 +669,8 @@ var ce = /* @__PURE__ */ p(function() {
|
|
|
669
669
|
parser: be,
|
|
670
670
|
db: A,
|
|
671
671
|
renderer: ze,
|
|
672
|
-
styles: /* @__PURE__ */
|
|
673
|
-
let { theme: t } =
|
|
672
|
+
styles: /* @__PURE__ */ t((e) => {
|
|
673
|
+
let { theme: t } = c(), n = Ue.has(t);
|
|
674
674
|
return `
|
|
675
675
|
.commit-id,
|
|
676
676
|
.commit-msg,
|