@sme.up/ketchup2 2.7.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abnfDiagram-VCTEODGH-DwAVRNNu.js +89 -0
- package/dist/{arc-CVbkjF8U.js → arc-DXfwi1YX.js} +8 -6
- package/dist/architecture-7GRP2DOG-BsytjMto.js +3 -0
- package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-N1aPr2hw.js} +636 -540
- package/dist/assets/svg/functions.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- 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/file-upload/file-upload-hook.d.ts.map +1 -1
- package/dist/basic-components/list/list.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/basic-components/select/select.d.ts.map +1 -1
- package/dist/blockDiagram-I7D4REHJ-Cu18ws5-.js +1922 -0
- package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-B-uBy_NE.js} +899 -850
- package/dist/{channel-C-LAmObA.js → channel-CuEby436.js} +1 -1
- package/dist/chunk-2E4U76K2-ComA5SPA.js +348 -0
- package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
- package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-CZgIgrp_.js} +1667 -1145
- package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
- package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-Drsj7a97.js} +106 -136
- package/dist/chunk-CLGD4ZFX-CLGio9rD.js +14 -0
- package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-waeanndy.js} +1005 -768
- package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-jIrOJO87.js} +18 -17
- package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-LRqOLsSw.js} +5518 -4708
- package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-D80II4AD.js} +486 -520
- package/dist/chunk-GVQU2GXP-DP3t_9Rl.js +37 -0
- package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-8ItzAAcf.js} +336 -318
- package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
- package/dist/chunk-L3NEJ4N5-qPot4t6M.js +245 -0
- package/dist/chunk-LNGE3PJU-CtYcu9x8.js +1521 -0
- package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-CQhPF3Mc.js} +310 -198
- package/dist/chunk-P2QGCYS3-BUeNZ170.js +67 -0
- package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +26 -0
- package/dist/chunk-PWAF6VOD-D37VoZ8H.js +275 -0
- package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-Cri27Jke.js} +581 -543
- package/dist/chunk-SVP7TREG-CyJlOPau.js +490 -0
- package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-Cw2iT_VD.js} +191 -185
- package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-BdsLNXjt.js} +35 -25
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +30 -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/app-bar/app-bar.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/chat/chat.d.ts.map +1 -1
- 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/echarts/echarts-graph.d.ts.map +1 -1
- package/dist/components/scaffold/context/scaffold-provider.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/tooltip/tooltip.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-Qs_Z6zBZ.js} +87 -83
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +3 -0
- package/dist/cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js +355 -0
- package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-C5TvPYYm.js} +2749 -2701
- package/dist/{dagre-3-RnF0EK.js → dagre-D5csT9sx.js} +144 -146
- package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +425 -0
- package/dist/{defaultLocale-DnzPsei5.js → defaultLocale-N-0uLSyg.js} +1 -4
- package/dist/diagram-S7CK7UJ4-BuDHTdHA.js +301 -0
- package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-uvzJGj43.js} +82 -81
- package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CrQQCs-B.js} +66 -65
- package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-BNmG1sig.js} +92 -89
- package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-B6BrLhP0.js} +21 -20
- package/dist/{dist-Btd8EZyy.js → dist-CsrMlyO_.js} +2 -3
- package/dist/ebnfDiagram-PWID7BFC-DMx8xAFO.js +100 -0
- package/dist/erDiagram-RLTQ6QDP-bkJ9nzVK.js +1966 -0
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +3 -0
- package/dist/flowDiagram-HODETNUW-BIvD7-ts.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-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-CL-ywzz_.js} +703 -710
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +3 -0
- package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-aXhNDG6P.js} +156 -151
- package/dist/{graphlib-VMWSbyYi.js → graphlib-XW-Jr8pF.js} +5 -5
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/info-A6RAGUB7-CmZJKEaW.js +3 -0
- package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +20 -0
- package/dist/{init-MwSGRDIl.js → init-CsQUQz36.js} +1 -3
- package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-DK7HlH95.js} +142 -141
- package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-CpuYEKcB.js} +192 -191
- package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-aK8uKmyY.js} +149 -146
- package/dist/{katex-D-2KeLwt.js → katex-CT2p8LXT.js} +1627 -1650
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +34744 -32755
- package/dist/{line-DIhSUgmA.js → line-DTqYMLoX.js} +2 -2
- package/dist/{linear-DUAteVwl.js → linear-CXc5xaa6.js} +8 -9
- 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-BwVmI_Rq.js +638 -0
- package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-ZMYcmi9J.js} +170 -170
- package/dist/{ordinal-D_ZgubzR.js → ordinal-BubEveRk.js} +1 -1
- package/dist/packet-AYTQ26CC-B3tgRshR.js +3 -0
- package/dist/{path-DGNPZRdx.js → path-CnWkkRiY.js} +10 -11
- package/dist/pegDiagram-XKGWAZYB-DsfILwZN.js +94 -0
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-DcSLcLdd.js +203 -0
- package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-DSx3teop.js} +300 -300
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +3 -0
- package/dist/railroad-74A4TZTK-oS840SLr.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-jOZRtNDi.js +76 -0
- package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-D14hkkez.js} +176 -173
- package/dist/{rough.esm-rcMoXTJj.js → rough.esm-DXYGHN3m.js} +60 -51
- package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-C0jmknYo.js} +123 -120
- package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-C00egnMz.js} +714 -722
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/{src-DjDATEq3.js → src-DQoflmwT.js} +499 -509
- package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +220 -0
- package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +30 -0
- package/dist/swimlanes-42K2YHIH-CJcMmxXf.js +4979 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +31 -0
- package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-D2xfYuSV.js} +220 -219
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +3 -0
- package/dist/treemap-WGGIJYW6-Cjjk75wA.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/{v4-BK7K-jy_.js → v4-DIjJgmR0.js} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-C4XLgus_.js} +332 -310
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +3 -0
- package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-DFoKuS9s.js} +156 -155
- package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BzKKgVBe.js} +740 -574
- package/package.json +41 -38
- package/dist/arc-w3BipdfE.cjs +0 -1
- 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/array-DZSRzHA_.cjs +0 -1
- 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-727SXJPM-Dj8nsm0O.cjs +0 -206
- 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-FMBD7UC4-BIKI8zae.cjs +0 -15
- 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-B2BBwKNb.cjs +0 -1
- package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
- package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
- package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
- 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/graphlib-CkkG5MuS.cjs +0 -1
- 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/init-07zIhv_j.cjs +0 -1
- package/dist/ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs +0 -70
- package/dist/journeyDiagram-JHISSGLW-DfnmJPLn.cjs +0 -139
- package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
- package/dist/katex-CkiTumqg.cjs +0 -257
- package/dist/ketchup2.cjs.js +0 -485
- package/dist/line-CzwncDY3.cjs +0 -1
- package/dist/linear-1lpO_WlJ.cjs +0 -1
- package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
- package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
- package/dist/mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs +0 -96
- package/dist/ordinal-CUPR-p0T.cjs +0 -1
- package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
- package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
- package/dist/path-Kklx0M1v.cjs +0 -1
- 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/rough.esm-r0QOSzHM.cjs +0 -1
- 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/v4-Dyp-SQ1c.cjs +0 -1
- 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-DQoflmwT.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-waeanndy.js";
|
|
3
|
+
import { n as m } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
4
|
+
import { g as h, i as g, m as _ } from "./chunk-75Z2AOVW-Drsj7a97.js";
|
|
5
|
+
import { n as v } from "./mermaid-parser.core-BwVmI_Rq.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,11 +215,11 @@ 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) {
|
|
221
|
-
e === n ?
|
|
222
|
+
r += e === n ? " *" : " |";
|
|
222
223
|
});
|
|
223
224
|
let i = [
|
|
224
225
|
r,
|
|
@@ -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,16 +413,18 @@ 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
|
-
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))
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
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)) {
|
|
420
|
+
if (K === "TB" || K === "BT") s.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")"), o.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")");
|
|
421
|
+
else {
|
|
422
|
+
let e = -7.5 - (c.width + 10) / 25 * 9.5, t = 10 + c.width / 25 * 8.5;
|
|
423
|
+
a.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
|
|
424
|
+
}
|
|
422
425
|
}
|
|
423
426
|
}
|
|
424
|
-
}, "drawCommitLabel"),
|
|
427
|
+
}, "drawCommitLabel"), je = /* @__PURE__ */ m((e, t, n, r) => {
|
|
425
428
|
if (t.tags.length > 0) {
|
|
426
429
|
let i = 0, a = 0, o = 0, s = [];
|
|
427
430
|
for (let r of t.tags.reverse()) {
|
|
@@ -454,7 +457,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
454
457
|
}
|
|
455
458
|
}
|
|
456
459
|
}
|
|
457
|
-
}, "drawCommitTags"),
|
|
460
|
+
}, "drawCommitTags"), Me = /* @__PURE__ */ m((e) => {
|
|
458
461
|
switch (e.customType ?? e.type) {
|
|
459
462
|
case x.NORMAL: return "commit-normal";
|
|
460
463
|
case x.REVERSE: return "commit-reverse";
|
|
@@ -463,13 +466,13 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
463
466
|
case x.CHERRY_PICK: return "commit-cherry-pick";
|
|
464
467
|
default: return "commit-normal";
|
|
465
468
|
}
|
|
466
|
-
}, "getCommitClassType"),
|
|
469
|
+
}, "getCommitClassType"), Ne = /* @__PURE__ */ m((e, t, n, r) => {
|
|
467
470
|
let i = {
|
|
468
471
|
x: 0,
|
|
469
472
|
y: 0
|
|
470
473
|
};
|
|
471
474
|
if (e.parents.length > 0) {
|
|
472
|
-
let n =
|
|
475
|
+
let n = J(e.parents);
|
|
473
476
|
if (n) {
|
|
474
477
|
let a = r.get(n) ?? i;
|
|
475
478
|
return t === "TB" ? a.y + M : t === "BT" ? (r.get(e.id) ?? i).y - M : a.x + M;
|
|
@@ -478,84 +481,84 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
478
481
|
else if (t === "BT") return (r.get(e.id) ?? i).y - M;
|
|
479
482
|
else return 0;
|
|
480
483
|
return 0;
|
|
481
|
-
}, "calculatePosition"),
|
|
484
|
+
}, "calculatePosition"), Pe = /* @__PURE__ */ m((e, t, n) => {
|
|
482
485
|
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
486
|
if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
|
|
484
|
-
let o = I.has(
|
|
487
|
+
let o = I.has(f().theme ?? "");
|
|
485
488
|
return {
|
|
486
489
|
x: a,
|
|
487
490
|
y: K === "TB" || K === "BT" ? r : i + (o ? L / 2 + 1 : -2),
|
|
488
491
|
posWithOffset: r
|
|
489
492
|
};
|
|
490
|
-
}, "getCommitPosition"),
|
|
491
|
-
let
|
|
492
|
-
let r =
|
|
493
|
+
}, "getCommitPosition"), Y = /* @__PURE__ */ m((e, t, n, r) => {
|
|
494
|
+
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) => {
|
|
495
|
+
let r = t.get(e)?.seq, i = t.get(n)?.seq;
|
|
493
496
|
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
|
-
|
|
497
|
+
}, "sortKeys"), u = s.sort(l);
|
|
498
|
+
K === "BT" && (c && we(u, t, o), u = u.reverse()), u.forEach((e) => {
|
|
499
|
+
let s = t.get(e);
|
|
500
|
+
if (!s) throw Error(`Commit not found for key ${e}`);
|
|
501
|
+
c && (o = Ne(s, K, o, V));
|
|
502
|
+
let l = Pe(s, o, c);
|
|
503
|
+
if (n) {
|
|
504
|
+
let e = Me(s), t = s.customType ?? s.type, n = B.get(s.branch)?.index ?? 0;
|
|
505
|
+
ke(i, s, l, e, n, t), Ae(a, s, l, o, r), je(a, s, l, o);
|
|
503
506
|
}
|
|
504
|
-
K === "TB" || K === "BT" ? V.set(
|
|
505
|
-
x:
|
|
506
|
-
y:
|
|
507
|
-
}) : V.set(
|
|
508
|
-
x:
|
|
509
|
-
y:
|
|
510
|
-
}),
|
|
507
|
+
K === "TB" || K === "BT" ? V.set(s.id, {
|
|
508
|
+
x: l.x,
|
|
509
|
+
y: l.posWithOffset
|
|
510
|
+
}) : V.set(s.id, {
|
|
511
|
+
x: l.posWithOffset,
|
|
512
|
+
y: l.y
|
|
513
|
+
}), o = K === "BT" && c ? o + M : o + M + j, o > G && (G = o);
|
|
511
514
|
});
|
|
512
|
-
}, "drawCommits"),
|
|
513
|
-
let
|
|
514
|
-
return [...
|
|
515
|
-
}, "shouldRerouteArrow"),
|
|
515
|
+
}, "drawCommits"), Fe = /* @__PURE__ */ m((e, t, n, r, i) => {
|
|
516
|
+
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");
|
|
517
|
+
return [...i.values()].some((e) => s(e) && o(e));
|
|
518
|
+
}, "shouldRerouteArrow"), X = /* @__PURE__ */ m((e, t, n = 0) => {
|
|
516
519
|
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 } =
|
|
520
|
+
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);
|
|
521
|
+
}, "findLane"), Ie = /* @__PURE__ */ m((e, t, n, r) => {
|
|
522
|
+
let { theme: i } = f(), a = R.has(i ?? ""), o = V.get(t.id), s = V.get(n.id);
|
|
520
523
|
if (o === void 0 || s === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
|
|
521
|
-
let c =
|
|
524
|
+
let c = Fe(t, n, o, s, r), l = "", u = "", d = 0, p = 0, m = B.get(n.branch)?.index;
|
|
522
525
|
n.type === x.MERGE && t.id !== n.parents[0] && (m = B.get(t.branch)?.index);
|
|
523
526
|
let h;
|
|
524
527
|
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,
|
|
528
|
+
l = "A 10 10, 0, 0, 0,", u = "A 10 10, 0, 0, 1,", d = 10, p = 10;
|
|
529
|
+
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);
|
|
530
|
+
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}`);
|
|
531
|
+
} 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
532
|
if (h === void 0) throw Error("Line definition not found");
|
|
530
533
|
e.append("path").attr("d", h).attr("class", "arrow arrow" + z(m, F, a));
|
|
531
|
-
}, "drawArrow"),
|
|
534
|
+
}, "drawArrow"), Le = /* @__PURE__ */ m((e, t) => {
|
|
532
535
|
let n = e.append("g").attr("class", "commit-arrows");
|
|
533
536
|
[...t.keys()].forEach((e) => {
|
|
534
537
|
let r = t.get(e);
|
|
535
538
|
r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
|
|
536
|
-
|
|
539
|
+
Ie(n, t.get(e), r, t);
|
|
537
540
|
});
|
|
538
541
|
});
|
|
539
|
-
}, "drawArrows"),
|
|
540
|
-
let { look: i, theme: a, themeVariables: o } =
|
|
542
|
+
}, "drawArrows"), Re = /* @__PURE__ */ m((e, t, n, r) => {
|
|
543
|
+
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
544
|
t.forEach((e, t) => {
|
|
542
545
|
let a = z(t, l ? c : F, u), o = B.get(e.name)?.pos;
|
|
543
546
|
if (o === void 0) throw Error(`Position not found for branch ${e.name}`);
|
|
544
547
|
let f = K === "TB" || K === "BT" ? o : l ? o + L / 2 + 1 : o - 2, p = d.append("line");
|
|
545
548
|
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 =
|
|
549
|
+
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
550
|
_.node().appendChild(h);
|
|
548
551
|
let v = h.getBBox(), y = l ? 0 : 4, b = l ? 16 : 0, x = l ? L : 0;
|
|
549
552
|
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
553
|
});
|
|
551
|
-
}, "drawBranches"),
|
|
554
|
+
}, "drawBranches"), ze = /* @__PURE__ */ m(function(e, t, n, r, i) {
|
|
552
555
|
return B.set(e, {
|
|
553
556
|
pos: t,
|
|
554
557
|
index: n
|
|
555
558
|
}), t += 50 + (i ? 40 : 0) + (K === "TB" || K === "BT" ? r.width / 2 : 0), t;
|
|
556
|
-
}, "setBranchPosition"),
|
|
557
|
-
|
|
558
|
-
let s =
|
|
559
|
+
}, "setBranchPosition"), Be = { draw: /* @__PURE__ */ m(function(n, r, i, o) {
|
|
560
|
+
Se(), e.debug("in gitgraph renderer", n + "\n", "id:", r, i);
|
|
561
|
+
let s = o.db;
|
|
559
562
|
if (!s.getConfig) {
|
|
560
563
|
e.error("getConfig method is not available on db");
|
|
561
564
|
return;
|
|
@@ -564,25 +567,25 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
564
567
|
U = s.getCommits();
|
|
565
568
|
let u = s.getBranchesAsObjArray();
|
|
566
569
|
K = s.getDirection();
|
|
567
|
-
let d =
|
|
570
|
+
let d = t(`[id="${r}"]`), { look: p, theme: m, themeVariables: g } = f(), { useGradient: _, gradientStart: v, gradientStop: y, filterColor: b } = g;
|
|
568
571
|
if (_) {
|
|
569
572
|
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
573
|
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
574
|
}
|
|
572
|
-
|
|
575
|
+
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
576
|
let x = 0;
|
|
574
577
|
u.forEach((e, t) => {
|
|
575
|
-
let n =
|
|
578
|
+
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
579
|
a.node()?.appendChild(n);
|
|
577
580
|
let o = n.getBBox();
|
|
578
|
-
x =
|
|
579
|
-
}),
|
|
580
|
-
}, "draw") },
|
|
581
|
+
x = ze(e.name, x, t, o, l), a.remove(), i.remove(), r.remove();
|
|
582
|
+
}), 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);
|
|
583
|
+
}, "draw") }, Z = 8, Q = /* @__PURE__ */ new Set([
|
|
581
584
|
"redux",
|
|
582
585
|
"redux-dark",
|
|
583
586
|
"redux-color",
|
|
584
587
|
"redux-dark-color"
|
|
585
|
-
]),
|
|
588
|
+
]), $ = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Ve = /* @__PURE__ */ new Set(["neo", "neo-dark"]), He = /* @__PURE__ */ new Set([
|
|
586
589
|
"dark",
|
|
587
590
|
"redux-dark",
|
|
588
591
|
"redux-dark-color",
|
|
@@ -594,14 +597,14 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
594
597
|
"redux-dark-color",
|
|
595
598
|
"neo",
|
|
596
599
|
"neo-dark"
|
|
597
|
-
]), We = /* @__PURE__ */
|
|
600
|
+
]), We = /* @__PURE__ */ m((e) => {
|
|
598
601
|
let { svgId: t } = e, n = "";
|
|
599
602
|
if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
|
|
600
603
|
.label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
|
|
601
604
|
`;
|
|
602
605
|
return n;
|
|
603
|
-
}, "genGitGraphGradient"), Ge = /* @__PURE__ */
|
|
604
|
-
let { theme: t, themeVariables: n } =
|
|
606
|
+
}, "genGitGraphGradient"), Ge = /* @__PURE__ */ m((e) => {
|
|
607
|
+
let { theme: t, themeVariables: n } = s(), { borderColorArray: r } = n, i = Q.has(t);
|
|
605
608
|
if (Ve.has(t)) {
|
|
606
609
|
let t = "";
|
|
607
610
|
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
|
|
@@ -613,7 +616,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
613
616
|
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
614
617
|
${We(e)}`;
|
|
615
618
|
else {
|
|
616
|
-
let r = n %
|
|
619
|
+
let r = n % Z;
|
|
617
620
|
t += `
|
|
618
621
|
.branch-label${n} { fill: ${e["gitBranchLabel" + r]}; }
|
|
619
622
|
.commit${n} { stroke: ${e["git" + r]}; fill: ${e["git" + r]}; }
|
|
@@ -622,7 +625,8 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
622
625
|
`;
|
|
623
626
|
}
|
|
624
627
|
return t;
|
|
625
|
-
}
|
|
628
|
+
}
|
|
629
|
+
if ($.has(t)) {
|
|
626
630
|
let n = "";
|
|
627
631
|
for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) n += `
|
|
628
632
|
.branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
|
|
@@ -643,7 +647,8 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
643
647
|
`;
|
|
644
648
|
}
|
|
645
649
|
return n;
|
|
646
|
-
}
|
|
650
|
+
}
|
|
651
|
+
{
|
|
647
652
|
let t = "";
|
|
648
653
|
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) t += `
|
|
649
654
|
.branch-label${n} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
|
|
@@ -656,8 +661,8 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
656
661
|
`;
|
|
657
662
|
return t;
|
|
658
663
|
}
|
|
659
|
-
}, "genColor"), Ke = /* @__PURE__ */
|
|
660
|
-
let n = t %
|
|
664
|
+
}, "genColor"), Ke = /* @__PURE__ */ m((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
|
|
665
|
+
let n = t % Z;
|
|
661
666
|
return `
|
|
662
667
|
.branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
|
|
663
668
|
.commit${t} { stroke: ${e["git" + n]}; fill: ${e["git" + n]}; }
|
|
@@ -668,9 +673,9 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
668
673
|
}).join("\n")}`, "normalTheme"), qe = {
|
|
669
674
|
parser: be,
|
|
670
675
|
db: A,
|
|
671
|
-
renderer:
|
|
672
|
-
styles: /* @__PURE__ */
|
|
673
|
-
let { theme: t } =
|
|
676
|
+
renderer: Be,
|
|
677
|
+
styles: /* @__PURE__ */ m((e) => {
|
|
678
|
+
let { theme: t } = s(), n = Ue.has(t);
|
|
674
679
|
return `
|
|
675
680
|
.commit-id,
|
|
676
681
|
.commit-msg,
|
|
@@ -712,7 +717,7 @@ var ce = /* @__PURE__ */ t(function() {
|
|
|
712
717
|
|
|
713
718
|
.arrow {
|
|
714
719
|
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
715
|
-
stroke-width: ${
|
|
720
|
+
stroke-width: ${Q.has(t) ? e.strokeWidth : 8};
|
|
716
721
|
stroke-linecap: round;
|
|
717
722
|
fill: none
|
|
718
723
|
}
|