mio-previewer 0.2.73 → 0.2.76
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/README.md +1 -0
- package/README.zh-CN.md +2 -1
- package/dist/_basePickBy-CXmXW7jd.js +166 -0
- package/dist/_basePickBy-CtuVwROD.cjs +1 -0
- package/dist/_baseUniq-CGoiOkSa.js +682 -0
- package/dist/_baseUniq-CYtOXxfV.cjs +1 -0
- package/dist/_createAssigner-DqH64jc7.cjs +1 -0
- package/dist/_createAssigner-IEX8lwxm.js +573 -0
- package/dist/arc-C78br9Yj.cjs +1 -0
- package/dist/arc-vLgDTVZZ.js +80 -0
- package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +1 -0
- package/dist/architecture-O4VJ6CD3-wqAP4onK.js +2 -0
- package/dist/architectureDiagram-VXUJARFQ-CYbuyVAs.js +4039 -0
- package/dist/architectureDiagram-VXUJARFQ-DEGYSl1f.cjs +36 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/assets/parser.worker-Bzb1GItl.js +14 -0
- package/dist/blockDiagram-VD42YOAC-DaH3L5Ng.js +3009 -0
- package/dist/blockDiagram-VD42YOAC-DeX0dq72.cjs +122 -0
- package/dist/c4Diagram-YG6GDRKO-CIThIYo6.js +2959 -0
- package/dist/c4Diagram-YG6GDRKO-Dz6dif_9.cjs +10 -0
- package/dist/channel-BWHkpgVD.cjs +1 -0
- package/dist/channel-JT7eWw2w.js +5 -0
- package/dist/chunk-4BX2VUAB-BZTgbbzC.js +8 -0
- package/dist/chunk-4BX2VUAB-HXFjpyQg.cjs +1 -0
- package/dist/chunk-55IACEB6-DWUqxxdp.js +8 -0
- package/dist/chunk-55IACEB6-Hy_THNUs.cjs +1 -0
- package/dist/chunk-ABZYJK2D-CbIYYZa_.cjs +80 -0
- package/dist/chunk-ABZYJK2D-DDrmE3Q7.js +2518 -0
- package/dist/chunk-ATLVNIR6-DHlCNWnJ.js +67 -0
- package/dist/chunk-ATLVNIR6-shAOudT0.cjs +1 -0
- package/dist/chunk-B4BG7PRW-C67vroOS.cjs +165 -0
- package/dist/chunk-B4BG7PRW-DSYuK8dI.js +3116 -0
- package/dist/chunk-BNMv73og.cjs +1 -0
- package/dist/chunk-CVBHYZKI-CLVcv_xh.cjs +1 -0
- package/dist/chunk-CVBHYZKI-CiCGetln.js +12 -0
- package/dist/chunk-DI55MBZ5-BCvBgHrp.cjs +220 -0
- package/dist/chunk-DI55MBZ5-Clru0TyG.js +2000 -0
- package/dist/chunk-Dbv0sNQl.js +20 -0
- package/dist/chunk-FMBD7UC4-D4kohRVY.js +5 -0
- package/dist/{chunk-FMBD7UC4-DxkUZTpt.cjs → chunk-FMBD7UC4-DWMVCXKq.cjs} +2 -2
- package/dist/chunk-HN2XXSSU-BwmRMa2r.cjs +1 -0
- package/dist/chunk-HN2XXSSU-CJL8wAZ2.js +76 -0
- package/dist/chunk-JA3XYJ7Z-BaAdjYEy.cjs +70 -0
- package/dist/chunk-JA3XYJ7Z-CpKHrbOX.js +1849 -0
- package/dist/chunk-JZLCHNYA-CYo7ykJf.js +4863 -0
- package/dist/chunk-JZLCHNYA-CvPIQFXP.cjs +54 -0
- package/dist/chunk-QN33PNHL-BFbXAWI4.js +25 -0
- package/dist/chunk-QN33PNHL-Cu0FHarG.cjs +1 -0
- package/dist/chunk-QXUST7PY-CnnfdJrM.cjs +7 -0
- package/dist/chunk-QXUST7PY-CxCAwQqP.js +488 -0
- package/dist/chunk-QZHKN3VN-2e6nJr8c.cjs +1 -0
- package/dist/chunk-QZHKN3VN-Dal4kx9B.js +15 -0
- package/dist/chunk-S3R3BYOJ-B2ozcJNg.cjs +2 -0
- package/dist/chunk-S3R3BYOJ-CG6GoSCd.js +1119 -0
- package/dist/chunk-TZMSLE5B-CooeLs4Q.js +57 -0
- package/dist/chunk-TZMSLE5B-D92K1Ja5.cjs +1 -0
- package/dist/classDiagram-2ON5EDUG-Bv1XCvDZ.js +28 -0
- package/dist/classDiagram-2ON5EDUG-BzMV1CJW.cjs +1 -0
- package/dist/classDiagram-v2-WZHVMYZB-Bqxv5U7u.js +28 -0
- package/dist/classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs +1 -0
- package/dist/clone-B0KDIkSS.js +8 -0
- package/dist/clone-wvtBTB6v.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-DMHTv1aW.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-bGPAcpg6.js +2250 -0
- package/dist/custom-Bl_fVJZ0.cjs +84 -0
- package/dist/custom-D-TzPpWT.js +5281 -0
- package/dist/cytoscape.esm-CElDUMAx.cjs +321 -0
- package/dist/cytoscape.esm-xf9dtmBj.js +18100 -0
- package/dist/dagre-6UL2VRFP-3bgUxzqG.js +294 -0
- package/dist/dagre-6UL2VRFP-B3NqmIxs.cjs +4 -0
- package/dist/dagre-BfAHSwtP.js +1472 -0
- package/dist/dagre-Buvkww-e.cjs +1 -0
- package/dist/defaultLocale-B5dSAwiC.js +201 -0
- package/dist/defaultLocale-G0HsdRIB.cjs +1 -0
- package/dist/diagram-PSM6KHXK-C4FjxUHt.cjs +24 -0
- package/dist/diagram-PSM6KHXK-CF8TkgzX.js +527 -0
- package/dist/diagram-QEK2KX5R-Dl3IHeA5.js +213 -0
- package/dist/diagram-QEK2KX5R-Z9DYjr44.cjs +43 -0
- package/dist/diagram-S2PKOQOG-Bib-zL2S.cjs +24 -0
- package/dist/diagram-S2PKOQOG-ZKvn7IEe.js +133 -0
- package/dist/dist-DC-lM4uX.cjs +1 -0
- package/dist/dist-zNcLEPGR.js +51 -0
- package/dist/erDiagram-Q2GNP2WA-DFMV9OUT.cjs +60 -0
- package/dist/erDiagram-Q2GNP2WA-DJYJEzEB.js +1600 -0
- package/dist/flowDiagram-NV44I4VS-7TxeawHS.cjs +162 -0
- package/dist/flowDiagram-NV44I4VS-CXa6ycqs.js +4128 -0
- package/dist/ganttDiagram-LVOFAZNH-DqT7pu4m.js +2869 -0
- package/dist/ganttDiagram-LVOFAZNH-iiExGpwF.cjs +267 -0
- package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +1 -0
- package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +2 -0
- package/dist/gitGraphDiagram-NY62KEGX-Tphu_MeC.js +621 -0
- package/dist/gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs +65 -0
- package/dist/graphlib-C3tPLMbC.js +225 -0
- package/dist/graphlib-Cdg0u3TT.cjs +1 -0
- package/dist/info-63CPKGFF-D2A5GDFo.js +2 -0
- package/dist/info-63CPKGFF-MRaucWlf.cjs +1 -0
- package/dist/infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs +2 -0
- package/dist/infoDiagram-F6ZHWCRC-BUoruN76.js +19 -0
- package/dist/init-07zIhv_j.cjs +1 -0
- package/dist/init-Bwwdo3M6.js +15 -0
- package/dist/journeyDiagram-XKPGCS4Q-C_3oD9RV.cjs +139 -0
- package/dist/journeyDiagram-XKPGCS4Q-DB7INfrf.js +883 -0
- package/dist/kanban-definition-3W4ZIXB7-AVLIBuMF.js +968 -0
- package/dist/kanban-definition-3W4ZIXB7-txUXjKzB.cjs +89 -0
- package/dist/katex-6UpFeIdV.cjs +261 -0
- package/dist/katex-BHcJffnM.js +22112 -0
- package/dist/line-DYhVGH2B.js +34 -0
- package/dist/line-DdNAPGaw.cjs +1 -0
- package/dist/linear-n4_iirEu.js +289 -0
- package/dist/linear-rQLpRrSH.cjs +1 -0
- package/dist/loadCss-D6257oR0.js +8 -0
- package/dist/loadCss-DhrQh6-A.cjs +1 -0
- package/dist/markdown-it-Cz3KGZjR.cjs +2 -0
- package/dist/markdown-it-D-hH4G7k.js +173 -0
- package/dist/math-G8rF7UWn.cjs +1 -0
- package/dist/math-H49DsxYR.js +10 -0
- package/dist/mermaid-parser.core-B84fnaGG.js +11904 -0
- package/dist/mermaid-parser.core-C9EbhVVg.cjs +82 -0
- package/dist/mindmap-definition-VGOIOE7T-CXlyYsc6.cjs +68 -0
- package/dist/mindmap-definition-VGOIOE7T-VIt9sDN3.js +963 -0
- package/dist/mio-previewer.cjs.js +11 -21
- package/dist/mio-previewer.css +2 -9
- package/dist/mio-previewer.esm.js +4939 -0
- package/dist/ordinal-C55HfHHp.js +65 -0
- package/dist/ordinal-CUPR-p0T.cjs +1 -0
- package/dist/packet-HUATNLJX-CGNko_oS.cjs +1 -0
- package/dist/packet-HUATNLJX-CVx40lqO.js +2 -0
- package/dist/path-DNvJyUE8.js +85 -0
- package/dist/path-Kklx0M1v.cjs +1 -0
- package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +1 -0
- package/dist/pie-WTHONI2E-DX5V8x0L.js +2 -0
- package/dist/pieDiagram-ADFJNKIX-BysReYfx.js +165 -0
- package/dist/pieDiagram-ADFJNKIX-CTT1YMsk.cjs +30 -0
- package/dist/plugins/custom.cjs.js +1 -1
- package/dist/plugins/custom.esm.js +2 -0
- package/dist/plugins/markdown-it.cjs.js +1 -3
- package/dist/plugins/markdown-it.esm.js +2 -0
- package/dist/quadrantDiagram-AYHSOK5B-8-V3cwsC.cjs +7 -0
- package/dist/quadrantDiagram-AYHSOK5B-DRutDK03.js +1974 -0
- package/dist/radar-NJJJXTRR-CTD6M8nl.js +2 -0
- package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +1 -0
- package/dist/requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs +64 -0
- package/dist/requirementDiagram-UZGBJVZJ-DNYoJyhG.js +2191 -0
- package/dist/sankeyDiagram-TZEHDZUN-B9fxDP0Q.cjs +10 -0
- package/dist/sankeyDiagram-TZEHDZUN-DD6bkI4Z.js +920 -0
- package/dist/sequenceDiagram-WL72ISMW-Bmptok1c.js +3562 -0
- package/dist/sequenceDiagram-WL72ISMW-D9sXtgAn.cjs +145 -0
- package/dist/src-BMjps4Ui.cjs +1 -0
- package/dist/src-BuisGndr.js +2149 -0
- package/dist/stateDiagram-FKZM4ZOC-Bmiw8fnW.js +217 -0
- package/dist/stateDiagram-FKZM4ZOC-DiD1WJPM.cjs +1 -0
- package/dist/stateDiagram-v2-4FDKWEC3-5ADhn1IF.js +27 -0
- package/dist/stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs +1 -0
- package/dist/timeline-definition-IT6M3QCI-C9VMls3W.js +830 -0
- package/dist/timeline-definition-IT6M3QCI-ZzbHXhNl.cjs +61 -0
- package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +1 -0
- package/dist/treemap-75Q7IDZK-u3p-cHDL.js +2 -0
- package/dist/types/plugins/custom/codeBlockPlugin.d.ts +8 -0
- package/dist/types/plugins/custom/mermaidPlugin.d.ts +4 -0
- package/dist/xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs +7 -0
- package/dist/xychartDiagram-PRI3JC2R-BWabDL1u.js +2041 -0
- package/package.json +2 -2
- package/dist/_basePickBy-Be3yyf2d.js +0 -151
- package/dist/_basePickBy-Z0DtrAKQ.cjs +0 -1
- package/dist/_baseUniq-BXkA0Pgx.js +0 -614
- package/dist/_baseUniq-Dq2eV1vY.cjs +0 -1
- package/dist/arc-B-QGG8RZ.cjs +0 -1
- package/dist/arc-djW14lrn.js +0 -83
- package/dist/architecture-O4VJ6CD3-Cws_zM2K.cjs +0 -1
- package/dist/architecture-O4VJ6CD3-pdMXTCaT.js +0 -5
- package/dist/architectureDiagram-VXUJARFQ-BwchhvqL.js +0 -4661
- package/dist/architectureDiagram-VXUJARFQ-DxDLWGpO.cjs +0 -36
- package/dist/assets/parser.worker-67NQKZt5.js +0 -16
- package/dist/blockDiagram-VD42YOAC-B4Xc8gfX.cjs +0 -122
- package/dist/blockDiagram-VD42YOAC-DpPneP6J.js +0 -2261
- package/dist/c4Diagram-YG6GDRKO-695lQbrZ.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-Cnlax2Xq.js +0 -1580
- package/dist/channel-D_ITz6Jy.cjs +0 -1
- package/dist/channel-sXy9EduO.js +0 -5
- package/dist/chunk-4BX2VUAB-Bdx3_f83.cjs +0 -1
- package/dist/chunk-4BX2VUAB-DRkGmgAZ.js +0 -8
- package/dist/chunk-55IACEB6-BB03hpRC.cjs +0 -1
- package/dist/chunk-55IACEB6-Ord5OQlh.js +0 -8
- package/dist/chunk-B4BG7PRW-Ca0fOgzA.cjs +0 -165
- package/dist/chunk-B4BG7PRW-D-cs8bDX.js +0 -1375
- package/dist/chunk-DI55MBZ5-BsRe2B2M.cjs +0 -220
- package/dist/chunk-DI55MBZ5-DSmlLD1s.js +0 -1370
- package/dist/chunk-FMBD7UC4-IYQmAMTo.js +0 -19
- package/dist/chunk-QN33PNHL-B7G6Qlf3.cjs +0 -1
- package/dist/chunk-QN33PNHL-EYMc4JVr.js +0 -19
- package/dist/chunk-QZHKN3VN-B8NJ6Ahx.cjs +0 -1
- package/dist/chunk-QZHKN3VN-C4WIG5z8.js +0 -15
- package/dist/chunk-TZMSLE5B-BoM53RHv.js +0 -64
- package/dist/chunk-TZMSLE5B-CgLDb48A.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-CxmdZvqc.js +0 -16
- package/dist/classDiagram-2ON5EDUG-DIRim8qa.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-CxmdZvqc.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-DIRim8qa.cjs +0 -1
- package/dist/clone-DOYxaT_d.js +0 -8
- package/dist/clone-DSlm33NG.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-BD3p1OC_.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-yLoaqH3G.js +0 -2608
- package/dist/cytoscape.esm-DHF7mANN.cjs +0 -331
- package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
- package/dist/dagre-6UL2VRFP-DG1oQ4B2.cjs +0 -4
- package/dist/dagre-6UL2VRFP-VjboDBbp.js +0 -444
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-C1p0l5TY.js +0 -531
- package/dist/diagram-PSM6KHXK-a4rni6rJ.cjs +0 -24
- package/dist/diagram-QEK2KX5R-CErKOsX1.cjs +0 -43
- package/dist/diagram-QEK2KX5R-CKmmuumX.js +0 -217
- package/dist/diagram-S2PKOQOG-B1M7qCNl.cjs +0 -24
- package/dist/diagram-S2PKOQOG-BMLCJExF.js +0 -142
- package/dist/erDiagram-Q2GNP2WA-BfuCa_Za.cjs +0 -60
- package/dist/erDiagram-Q2GNP2WA-fOTsQA-d.js +0 -841
- package/dist/flowDiagram-NV44I4VS-BEqeUuqz.cjs +0 -162
- package/dist/flowDiagram-NV44I4VS-DDwRAjVG.js +0 -1620
- package/dist/ganttDiagram-LVOFAZNH-BbuRS8g3.js +0 -2505
- package/dist/ganttDiagram-LVOFAZNH-BlVeWKRf.cjs +0 -267
- package/dist/gitGraph-ZV4HHKMB-Bmu8r_Iq.cjs +0 -1
- package/dist/gitGraph-ZV4HHKMB-DcQ2E4dF.js +0 -5
- package/dist/gitGraphDiagram-NY62KEGX-DcMEeNh7.cjs +0 -65
- package/dist/gitGraphDiagram-NY62KEGX-_sWVSKbL.js +0 -699
- package/dist/graph-DEnt0OtZ.js +0 -247
- package/dist/graph-Dgcjs2XL.cjs +0 -1
- package/dist/info-63CPKGFF-DVDDcoHy.js +0 -5
- package/dist/info-63CPKGFF-Dc3cWL0G.cjs +0 -1
- package/dist/infoDiagram-F6ZHWCRC-DoUSS0kC.js +0 -24
- package/dist/infoDiagram-F6ZHWCRC-ZeTrjgaE.cjs +0 -2
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-DGe13iBu.js +0 -834
- package/dist/journeyDiagram-XKPGCS4Q-Ihl9g4mY.cjs +0 -139
- package/dist/kanban-definition-3W4ZIXB7-2qkrkVLK.cjs +0 -89
- package/dist/kanban-definition-3W4ZIXB7-BhWe5nMU.js +0 -719
- package/dist/katex-CmGeg_OO.js +0 -11692
- package/dist/katex-DEiiRhcn.cjs +0 -261
- package/dist/layout-BDNzBIaA.cjs +0 -1
- package/dist/layout-DTBfbHzy.js +0 -1324
- package/dist/linear-BRl2UYUr.cjs +0 -1
- package/dist/linear-CwbXkgvF.js +0 -259
- package/dist/loadCss-BbD6mdv-.cjs +0 -1
- package/dist/loadCss-DS0Fuaxe.js +0 -8
- package/dist/mermaid-parser.core-CJ1yJm0s.js +0 -12966
- package/dist/mermaid-parser.core-CxTcWSA2.cjs +0 -128
- package/dist/mindmap-definition-VGOIOE7T-BPUEmP7g.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-DSqZBgzR.js +0 -784
- package/dist/mio-previewer.es.js +0 -6171
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/ordinal-DfAQgscy.js +0 -61
- package/dist/packet-HUATNLJX-B-qfkr5X.cjs +0 -1
- package/dist/packet-HUATNLJX-Dxob_meO.js +0 -5
- package/dist/pie-WTHONI2E-BRtdTGWt.js +0 -5
- package/dist/pie-WTHONI2E-DK7f6qJw.cjs +0 -1
- package/dist/pieDiagram-ADFJNKIX-Dhq_bEzm.js +0 -161
- package/dist/pieDiagram-ADFJNKIX-V04ms3gr.cjs +0 -30
- package/dist/plugins/custom.es.js +0 -85
- package/dist/plugins/markdown-it.es.js +0 -173
- package/dist/quadrantDiagram-AYHSOK5B-C97bOmUE.js +0 -1022
- package/dist/quadrantDiagram-AYHSOK5B-DlqFPVhi.cjs +0 -7
- package/dist/radar-NJJJXTRR-B9jT3LP3.cjs +0 -1
- package/dist/radar-NJJJXTRR-D8plmle3.js +0 -5
- package/dist/requirementDiagram-UZGBJVZJ-BxVMLKfQ.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-DENJ74Ew.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-DwgW7Suq.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-lTBLhaSq.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-BAOeX1dA.js +0 -2511
- package/dist/sequenceDiagram-WL72ISMW-BRVvH1X4.cjs +0 -145
- package/dist/stateDiagram-FKZM4ZOC-BrFQE7Gl.js +0 -263
- package/dist/stateDiagram-FKZM4ZOC-D8GjooGL.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-4VRIY-eH.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-DnrWD6a3.js +0 -16
- package/dist/timeline-definition-IT6M3QCI-BJMIlueb.js +0 -795
- package/dist/timeline-definition-IT6M3QCI-BQFGUuGP.cjs +0 -61
- package/dist/treemap-75Q7IDZK-BX1vBFWf.cjs +0 -1
- package/dist/treemap-75Q7IDZK-CMTkunTV.js +0 -5
- package/dist/viewer-CZUSHxhf.js +0 -19131
- package/dist/viewer-Canph5Zx.cjs +0 -305
- package/dist/xychartDiagram-PRI3JC2R-Sl8WX8wc.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-WnFI7Ezu.js +0 -1340
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
import { g as e, h as t, p as n } from "./src-BuisGndr.js";
|
|
2
|
+
import { B as r, C as i, K as a, U as o, _ as s, a as c, b as l, d as u, s as d, v as f, y as p, z as ee } from "./chunk-ABZYJK2D-DDrmE3Q7.js";
|
|
3
|
+
import { h as m, p as h, r as g } from "./chunk-S3R3BYOJ-CG6GoSCd.js";
|
|
4
|
+
import { t as _ } from "./mermaid-parser.core-B84fnaGG.js";
|
|
5
|
+
import { t as te } from "./chunk-4BX2VUAB-BZTgbbzC.js";
|
|
6
|
+
import { t as ne } from "./chunk-QZHKN3VN-Dal4kx9B.js";
|
|
7
|
+
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-NY62KEGX.mjs
|
|
8
|
+
var v = {
|
|
9
|
+
NORMAL: 0,
|
|
10
|
+
REVERSE: 1,
|
|
11
|
+
HIGHLIGHT: 2,
|
|
12
|
+
MERGE: 3,
|
|
13
|
+
CHERRY_PICK: 4
|
|
14
|
+
}, re = u.gitGraph, y = /* @__PURE__ */ t(() => g({
|
|
15
|
+
...re,
|
|
16
|
+
...p().gitGraph
|
|
17
|
+
}), "getConfig"), b = new ne(() => {
|
|
18
|
+
let e = y(), t = e.mainBranchName, n = e.mainBranchOrder;
|
|
19
|
+
return {
|
|
20
|
+
mainBranchName: t,
|
|
21
|
+
commits: /* @__PURE__ */ new Map(),
|
|
22
|
+
head: null,
|
|
23
|
+
branchConfig: /* @__PURE__ */ new Map([[t, {
|
|
24
|
+
name: t,
|
|
25
|
+
order: n
|
|
26
|
+
}]]),
|
|
27
|
+
branches: /* @__PURE__ */ new Map([[t, null]]),
|
|
28
|
+
currBranch: t,
|
|
29
|
+
direction: "LR",
|
|
30
|
+
seq: 0,
|
|
31
|
+
options: {}
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
function x() {
|
|
35
|
+
return h({ length: 7 });
|
|
36
|
+
}
|
|
37
|
+
t(x, "getID");
|
|
38
|
+
function S(e, t) {
|
|
39
|
+
let n = /* @__PURE__ */ Object.create(null);
|
|
40
|
+
return e.reduce((e, r) => {
|
|
41
|
+
let i = t(r);
|
|
42
|
+
return n[i] || (n[i] = !0, e.push(r)), e;
|
|
43
|
+
}, []);
|
|
44
|
+
}
|
|
45
|
+
t(S, "uniqBy");
|
|
46
|
+
var ie = /* @__PURE__ */ t(function(e) {
|
|
47
|
+
b.records.direction = e;
|
|
48
|
+
}, "setDirection"), ae = /* @__PURE__ */ t(function(t) {
|
|
49
|
+
e.debug("options str", t), t = t?.trim(), t ||= "{}";
|
|
50
|
+
try {
|
|
51
|
+
b.records.options = JSON.parse(t);
|
|
52
|
+
} catch (t) {
|
|
53
|
+
e.error("error while parsing gitGraph options", t.message);
|
|
54
|
+
}
|
|
55
|
+
}, "setOptions"), oe = /* @__PURE__ */ t(function() {
|
|
56
|
+
return b.records.options;
|
|
57
|
+
}, "getOptions"), se = /* @__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 = y();
|
|
61
|
+
r = d.sanitizeText(r, o), n = d.sanitizeText(n, o), a = a?.map((e) => d.sanitizeText(e, o));
|
|
62
|
+
let s = {
|
|
63
|
+
id: r || b.records.seq + "-" + x(),
|
|
64
|
+
message: n,
|
|
65
|
+
seq: b.records.seq++,
|
|
66
|
+
type: i ?? v.NORMAL,
|
|
67
|
+
tags: a ?? [],
|
|
68
|
+
parents: b.records.head == null ? [] : [b.records.head.id],
|
|
69
|
+
branch: b.records.currBranch
|
|
70
|
+
};
|
|
71
|
+
b.records.head = s, e.info("main branch", o.mainBranchName), b.records.commits.has(s.id) && e.warn(`Commit ID ${s.id} already exists`), b.records.commits.set(s.id, s), b.records.branches.set(b.records.currBranch, s.id), e.debug("in pushCommit " + s.id);
|
|
72
|
+
}, "commit"), ce = /* @__PURE__ */ t(function(t) {
|
|
73
|
+
let n = t.name, r = t.order;
|
|
74
|
+
if (n = d.sanitizeText(n, y()), b.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
|
+
b.records.branches.set(n, b.records.head == null ? null : b.records.head.id), b.records.branchConfig.set(n, {
|
|
76
|
+
name: n,
|
|
77
|
+
order: r
|
|
78
|
+
}), C(n), e.debug("in createBranch");
|
|
79
|
+
}, "branch"), le = /* @__PURE__ */ t((t) => {
|
|
80
|
+
let n = t.branch, r = t.id, i = t.type, a = t.tags, o = y();
|
|
81
|
+
n = d.sanitizeText(n, o), r &&= d.sanitizeText(r, o);
|
|
82
|
+
let s = b.records.branches.get(b.records.currBranch), c = b.records.branches.get(n), l = s ? b.records.commits.get(s) : void 0, u = c ? b.records.commits.get(c) : void 0;
|
|
83
|
+
if (l && u && l.branch === n) throw Error(`Cannot merge branch '${n}' into itself.`);
|
|
84
|
+
if (b.records.currBranch === n) {
|
|
85
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
|
|
86
|
+
throw e.hash = {
|
|
87
|
+
text: `merge ${n}`,
|
|
88
|
+
token: `merge ${n}`,
|
|
89
|
+
expected: ["branch abc"]
|
|
90
|
+
}, e;
|
|
91
|
+
}
|
|
92
|
+
if (l === void 0 || !l) {
|
|
93
|
+
let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${b.records.currBranch})has no commits`);
|
|
94
|
+
throw e.hash = {
|
|
95
|
+
text: `merge ${n}`,
|
|
96
|
+
token: `merge ${n}`,
|
|
97
|
+
expected: ["commit"]
|
|
98
|
+
}, e;
|
|
99
|
+
}
|
|
100
|
+
if (!b.records.branches.has(n)) {
|
|
101
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") does not exist");
|
|
102
|
+
throw e.hash = {
|
|
103
|
+
text: `merge ${n}`,
|
|
104
|
+
token: `merge ${n}`,
|
|
105
|
+
expected: [`branch ${n}`]
|
|
106
|
+
}, e;
|
|
107
|
+
}
|
|
108
|
+
if (u === void 0 || !u) {
|
|
109
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") has no commits");
|
|
110
|
+
throw e.hash = {
|
|
111
|
+
text: `merge ${n}`,
|
|
112
|
+
token: `merge ${n}`,
|
|
113
|
+
expected: ["\"commit\""]
|
|
114
|
+
}, e;
|
|
115
|
+
}
|
|
116
|
+
if (l === u) {
|
|
117
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
|
|
118
|
+
throw e.hash = {
|
|
119
|
+
text: `merge ${n}`,
|
|
120
|
+
token: `merge ${n}`,
|
|
121
|
+
expected: ["branch abc"]
|
|
122
|
+
}, e;
|
|
123
|
+
}
|
|
124
|
+
if (r && b.records.commits.has(r)) {
|
|
125
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + r + " already exists, use different custom id");
|
|
126
|
+
throw e.hash = {
|
|
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
|
+
}, e;
|
|
131
|
+
}
|
|
132
|
+
let f = c || "", p = {
|
|
133
|
+
id: r || `${b.records.seq}-${x()}`,
|
|
134
|
+
message: `merged branch ${n} into ${b.records.currBranch}`,
|
|
135
|
+
seq: b.records.seq++,
|
|
136
|
+
parents: b.records.head == null ? [] : [b.records.head.id, f],
|
|
137
|
+
branch: b.records.currBranch,
|
|
138
|
+
type: v.MERGE,
|
|
139
|
+
customType: i,
|
|
140
|
+
customId: !!r,
|
|
141
|
+
tags: a ?? []
|
|
142
|
+
};
|
|
143
|
+
b.records.head = p, b.records.commits.set(p.id, p), b.records.branches.set(b.records.currBranch, p.id), e.debug(b.records.branches), e.debug("in mergeBranch");
|
|
144
|
+
}, "merge"), ue = /* @__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 = y();
|
|
148
|
+
if (n = d.sanitizeText(n, o), r = d.sanitizeText(r, o), i = i?.map((e) => d.sanitizeText(e, o)), a = d.sanitizeText(a, o), !n || !b.records.commits.has(n)) {
|
|
149
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
150
|
+
throw e.hash = {
|
|
151
|
+
text: `cherryPick ${n} ${r}`,
|
|
152
|
+
token: `cherryPick ${n} ${r}`,
|
|
153
|
+
expected: ["cherry-pick abc"]
|
|
154
|
+
}, e;
|
|
155
|
+
}
|
|
156
|
+
let s = b.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 === v.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 || !b.records.commits.has(r)) {
|
|
162
|
+
if (c === b.records.currBranch) {
|
|
163
|
+
let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
|
|
164
|
+
throw e.hash = {
|
|
165
|
+
text: `cherryPick ${n} ${r}`,
|
|
166
|
+
token: `cherryPick ${n} ${r}`,
|
|
167
|
+
expected: ["cherry-pick abc"]
|
|
168
|
+
}, e;
|
|
169
|
+
}
|
|
170
|
+
let t = b.records.branches.get(b.records.currBranch);
|
|
171
|
+
if (t === void 0 || !t) {
|
|
172
|
+
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${b.records.currBranch})has no commits`);
|
|
173
|
+
throw e.hash = {
|
|
174
|
+
text: `cherryPick ${n} ${r}`,
|
|
175
|
+
token: `cherryPick ${n} ${r}`,
|
|
176
|
+
expected: ["cherry-pick abc"]
|
|
177
|
+
}, e;
|
|
178
|
+
}
|
|
179
|
+
let o = b.records.commits.get(t);
|
|
180
|
+
if (o === void 0 || !o) {
|
|
181
|
+
let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${b.records.currBranch})has no commits`);
|
|
182
|
+
throw e.hash = {
|
|
183
|
+
text: `cherryPick ${n} ${r}`,
|
|
184
|
+
token: `cherryPick ${n} ${r}`,
|
|
185
|
+
expected: ["cherry-pick abc"]
|
|
186
|
+
}, e;
|
|
187
|
+
}
|
|
188
|
+
let l = {
|
|
189
|
+
id: b.records.seq + "-" + x(),
|
|
190
|
+
message: `cherry-picked ${s?.message} into ${b.records.currBranch}`,
|
|
191
|
+
seq: b.records.seq++,
|
|
192
|
+
parents: b.records.head == null ? [] : [b.records.head.id, s.id],
|
|
193
|
+
branch: b.records.currBranch,
|
|
194
|
+
type: v.CHERRY_PICK,
|
|
195
|
+
tags: i ? i.filter(Boolean) : [`cherry-pick:${s.id}${s.type === v.MERGE ? `|parent:${a}` : ""}`]
|
|
196
|
+
};
|
|
197
|
+
b.records.head = l, b.records.commits.set(l.id, l), b.records.branches.set(b.records.currBranch, l.id), e.debug(b.records.branches), e.debug("in cherryPick");
|
|
198
|
+
}
|
|
199
|
+
}, "cherryPick"), C = /* @__PURE__ */ t(function(e) {
|
|
200
|
+
if (e = d.sanitizeText(e, y()), b.records.branches.has(e)) {
|
|
201
|
+
b.records.currBranch = e;
|
|
202
|
+
let t = b.records.branches.get(b.records.currBranch);
|
|
203
|
+
t === void 0 || !t ? b.records.head = null : b.records.head = b.records.commits.get(t) ?? null;
|
|
204
|
+
} else {
|
|
205
|
+
let t = /* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);
|
|
206
|
+
throw t.hash = {
|
|
207
|
+
text: `checkout ${e}`,
|
|
208
|
+
token: `checkout ${e}`,
|
|
209
|
+
expected: [`branch ${e}`]
|
|
210
|
+
}, t;
|
|
211
|
+
}
|
|
212
|
+
}, "checkout");
|
|
213
|
+
function w(e, t, n) {
|
|
214
|
+
let r = e.indexOf(t);
|
|
215
|
+
r === -1 ? e.push(n) : e.splice(r, 1, n);
|
|
216
|
+
}
|
|
217
|
+
t(w, "upsert");
|
|
218
|
+
function T(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
|
+
});
|
|
223
|
+
let i = [
|
|
224
|
+
r,
|
|
225
|
+
n.id,
|
|
226
|
+
n.seq
|
|
227
|
+
];
|
|
228
|
+
for (let e in b.records.branches) b.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 = b.records.commits.get(n.parents[0]);
|
|
231
|
+
w(t, n, e), n.parents[1] && t.push(b.records.commits.get(n.parents[1]));
|
|
232
|
+
} else if (n.parents.length == 0) return;
|
|
233
|
+
else if (n.parents[0]) {
|
|
234
|
+
let e = b.records.commits.get(n.parents[0]);
|
|
235
|
+
w(t, n, e);
|
|
236
|
+
}
|
|
237
|
+
t = S(t, (e) => e.id), T(t);
|
|
238
|
+
}
|
|
239
|
+
t(T, "prettyPrintCommitHistory");
|
|
240
|
+
var de = /* @__PURE__ */ t(function() {
|
|
241
|
+
e.debug(b.records.commits);
|
|
242
|
+
let t = E()[0];
|
|
243
|
+
T([t]);
|
|
244
|
+
}, "prettyPrint"), fe = /* @__PURE__ */ t(function() {
|
|
245
|
+
b.reset(), c();
|
|
246
|
+
}, "clear"), pe = /* @__PURE__ */ t(function() {
|
|
247
|
+
return [...b.records.branchConfig.values()].map((e, t) => e.order !== null && e.order !== void 0 ? e : {
|
|
248
|
+
...e,
|
|
249
|
+
order: parseFloat(`0.${t}`)
|
|
250
|
+
}).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map(({ name: e }) => ({ name: e }));
|
|
251
|
+
}, "getBranchesAsObjArray"), me = /* @__PURE__ */ t(function() {
|
|
252
|
+
return b.records.branches;
|
|
253
|
+
}, "getBranches"), he = /* @__PURE__ */ t(function() {
|
|
254
|
+
return b.records.commits;
|
|
255
|
+
}, "getCommits"), E = /* @__PURE__ */ t(function() {
|
|
256
|
+
let t = [...b.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
|
+
}, "getCommitsArray"), D = {
|
|
261
|
+
commitType: v,
|
|
262
|
+
getConfig: y,
|
|
263
|
+
setDirection: ie,
|
|
264
|
+
setOptions: ae,
|
|
265
|
+
getOptions: oe,
|
|
266
|
+
commit: se,
|
|
267
|
+
branch: ce,
|
|
268
|
+
merge: le,
|
|
269
|
+
cherryPick: ue,
|
|
270
|
+
checkout: C,
|
|
271
|
+
prettyPrint: de,
|
|
272
|
+
clear: fe,
|
|
273
|
+
getBranchesAsObjArray: pe,
|
|
274
|
+
getBranches: me,
|
|
275
|
+
getCommits: he,
|
|
276
|
+
getCommitsArray: E,
|
|
277
|
+
getCurrentBranch: /* @__PURE__ */ t(function() {
|
|
278
|
+
return b.records.currBranch;
|
|
279
|
+
}, "getCurrentBranch"),
|
|
280
|
+
getDirection: /* @__PURE__ */ t(function() {
|
|
281
|
+
return b.records.direction;
|
|
282
|
+
}, "getDirection"),
|
|
283
|
+
getHead: /* @__PURE__ */ t(function() {
|
|
284
|
+
return b.records.head;
|
|
285
|
+
}, "getHead"),
|
|
286
|
+
setAccTitle: r,
|
|
287
|
+
getAccTitle: f,
|
|
288
|
+
getAccDescription: s,
|
|
289
|
+
setAccDescription: ee,
|
|
290
|
+
setDiagramTitle: o,
|
|
291
|
+
getDiagramTitle: i
|
|
292
|
+
}, O = /* @__PURE__ */ t((e, t) => {
|
|
293
|
+
te(e, t), e.dir && t.setDirection(e.dir);
|
|
294
|
+
for (let n of e.statements) k(n, t);
|
|
295
|
+
}, "populate"), k = /* @__PURE__ */ t((n, r) => {
|
|
296
|
+
let i = {
|
|
297
|
+
Commit: /* @__PURE__ */ t((e) => r.commit(A(e)), "Commit"),
|
|
298
|
+
Branch: /* @__PURE__ */ t((e) => r.branch(j(e)), "Branch"),
|
|
299
|
+
Merge: /* @__PURE__ */ t((e) => r.merge(M(e)), "Merge"),
|
|
300
|
+
Checkout: /* @__PURE__ */ t((e) => r.checkout(N(e)), "Checkout"),
|
|
301
|
+
CherryPicking: /* @__PURE__ */ t((e) => r.cherryPick(P(e)), "CherryPicking")
|
|
302
|
+
}[n.$type];
|
|
303
|
+
i ? i(n) : e.error(`Unknown statement type: ${n.$type}`);
|
|
304
|
+
}, "parseStatement"), A = /* @__PURE__ */ t((e) => ({
|
|
305
|
+
id: e.id,
|
|
306
|
+
msg: e.message ?? "",
|
|
307
|
+
type: e.type === void 0 ? v.NORMAL : v[e.type],
|
|
308
|
+
tags: e.tags ?? void 0
|
|
309
|
+
}), "parseCommit"), j = /* @__PURE__ */ t((e) => ({
|
|
310
|
+
name: e.name,
|
|
311
|
+
order: e.order ?? 0
|
|
312
|
+
}), "parseBranch"), M = /* @__PURE__ */ t((e) => ({
|
|
313
|
+
branch: e.branch,
|
|
314
|
+
id: e.id ?? "",
|
|
315
|
+
type: e.type === void 0 ? void 0 : v[e.type],
|
|
316
|
+
tags: e.tags ?? void 0
|
|
317
|
+
}), "parseMerge"), N = /* @__PURE__ */ t((e) => e.branch, "parseCheckout"), P = /* @__PURE__ */ t((e) => ({
|
|
318
|
+
id: e.id,
|
|
319
|
+
targetId: "",
|
|
320
|
+
tags: e.tags?.length === 0 ? void 0 : e.tags,
|
|
321
|
+
parent: e.parent
|
|
322
|
+
}), "parseCherryPicking"), F = { parse: /* @__PURE__ */ t(async (t) => {
|
|
323
|
+
let n = await _("gitGraph", t);
|
|
324
|
+
e.debug(n), O(n, D);
|
|
325
|
+
}, "parse") }, I = l()?.gitGraph, L = 10, R = 40, z = 4, B = 2, V = 8, H = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), W = 30, G = /* @__PURE__ */ new Map(), K = [], q = 0, J = "LR", ge = /* @__PURE__ */ t(() => {
|
|
326
|
+
H.clear(), U.clear(), G.clear(), q = 0, K = [], J = "LR";
|
|
327
|
+
}, "clear"), Y = /* @__PURE__ */ t((e) => {
|
|
328
|
+
let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
329
|
+
return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
|
|
330
|
+
let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
331
|
+
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);
|
|
332
|
+
}), t;
|
|
333
|
+
}, "drawText"), X = /* @__PURE__ */ t((e) => {
|
|
334
|
+
let n, r, i;
|
|
335
|
+
return J === "BT" ? (r = /* @__PURE__ */ t((e, t) => e <= t, "comparisonFunc"), i = Infinity) : (r = /* @__PURE__ */ t((e, t) => e >= t, "comparisonFunc"), i = 0), e.forEach((e) => {
|
|
336
|
+
let t = J === "TB" || J == "BT" ? U.get(e)?.y : U.get(e)?.x;
|
|
337
|
+
t !== void 0 && r(t, i) && (n = e, i = t);
|
|
338
|
+
}), n;
|
|
339
|
+
}, "findClosestParent"), _e = /* @__PURE__ */ t((e) => {
|
|
340
|
+
let t = "", n = Infinity;
|
|
341
|
+
return e.forEach((e) => {
|
|
342
|
+
let r = U.get(e).y;
|
|
343
|
+
r <= n && (t = e, n = r);
|
|
344
|
+
}), t || void 0;
|
|
345
|
+
}, "findClosestParentBT"), ve = /* @__PURE__ */ t((e, t, n) => {
|
|
346
|
+
let r = n, i = n, a = [];
|
|
347
|
+
e.forEach((e) => {
|
|
348
|
+
let n = t.get(e);
|
|
349
|
+
if (!n) throw Error(`Commit not found for key ${e}`);
|
|
350
|
+
n.parents.length ? (r = be(n), i = Math.max(r, i)) : a.push(n), xe(n, r);
|
|
351
|
+
}), r = i, a.forEach((e) => {
|
|
352
|
+
Se(e, r, n);
|
|
353
|
+
}), e.forEach((e) => {
|
|
354
|
+
let n = t.get(e);
|
|
355
|
+
if (n?.parents.length) {
|
|
356
|
+
let e = _e(n.parents);
|
|
357
|
+
r = U.get(e).y - R, r <= i && (i = r);
|
|
358
|
+
let t = H.get(n.branch).pos, a = r - L;
|
|
359
|
+
U.set(n.id, {
|
|
360
|
+
x: t,
|
|
361
|
+
y: a
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
}, "setParallelBTPos"), ye = /* @__PURE__ */ t((e) => {
|
|
366
|
+
let t = X(e.parents.filter((e) => e !== null));
|
|
367
|
+
if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
|
|
368
|
+
let n = U.get(t)?.y;
|
|
369
|
+
if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
|
|
370
|
+
return n;
|
|
371
|
+
}, "findClosestParentPos"), be = /* @__PURE__ */ t((e) => ye(e) + R, "calculateCommitPosition"), xe = /* @__PURE__ */ t((e, t) => {
|
|
372
|
+
let n = H.get(e.branch);
|
|
373
|
+
if (!n) throw Error(`Branch not found for commit ${e.id}`);
|
|
374
|
+
let r = n.pos, i = t + L;
|
|
375
|
+
return U.set(e.id, {
|
|
376
|
+
x: r,
|
|
377
|
+
y: i
|
|
378
|
+
}), {
|
|
379
|
+
x: r,
|
|
380
|
+
y: i
|
|
381
|
+
};
|
|
382
|
+
}, "setCommitPosition"), Se = /* @__PURE__ */ t((e, t, n) => {
|
|
383
|
+
let r = H.get(e.branch);
|
|
384
|
+
if (!r) throw Error(`Branch not found for commit ${e.id}`);
|
|
385
|
+
let i = t + n, a = r.pos;
|
|
386
|
+
U.set(e.id, {
|
|
387
|
+
x: a,
|
|
388
|
+
y: i
|
|
389
|
+
});
|
|
390
|
+
}, "setRootPosition"), Ce = /* @__PURE__ */ t((e, t, n, r, i, a) => {
|
|
391
|
+
if (a === v.HIGHLIGHT) e.append("rect").attr("x", n.x - 10).attr("y", n.y - 10).attr("width", 20).attr("height", 20).attr("class", `commit ${t.id} commit-highlight${i % V} ${r}-outer`), e.append("rect").attr("x", n.x - 6).attr("y", n.y - 6).attr("width", 12).attr("height", 12).attr("class", `commit ${t.id} commit${i % V} ${r}-inner`);
|
|
392
|
+
else if (a === v.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x + 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x - 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", "#fff").attr("class", `commit ${t.id} ${r}`);
|
|
393
|
+
else {
|
|
394
|
+
let o = e.append("circle");
|
|
395
|
+
if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r", t.type === v.MERGE ? 9 : 10), o.attr("class", `commit ${t.id} commit${i % V}`), a === v.MERGE) {
|
|
396
|
+
let a = e.append("circle");
|
|
397
|
+
a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r", 6), a.attr("class", `commit ${r} ${t.id} commit${i % V}`);
|
|
398
|
+
}
|
|
399
|
+
a === v.REVERSE && e.append("path").attr("d", `M ${n.x - 5},${n.y - 5}L${n.x + 5},${n.y + 5}M${n.x - 5},${n.y + 5}L${n.x + 5},${n.y - 5}`).attr("class", `commit ${r} ${t.id} commit${i % V}`);
|
|
400
|
+
}
|
|
401
|
+
}, "drawCommitBullet"), we = /* @__PURE__ */ t((e, t, n, r) => {
|
|
402
|
+
if (t.type !== v.CHERRY_PICK && (t.customId && t.type === v.MERGE || t.type !== v.MERGE) && I?.showCommitLabel) {
|
|
403
|
+
let i = e.append("g"), a = i.insert("rect").attr("class", "commit-label-bkg"), o = i.append("text").attr("x", r).attr("y", n.y + 25).attr("class", "commit-label").text(t.id), s = o.node()?.getBBox();
|
|
404
|
+
if (s && (a.attr("x", n.posWithOffset - s.width / 2 - B).attr("y", n.y + 13.5).attr("width", s.width + 2 * B).attr("height", s.height + 2 * B), J === "TB" || J === "BT" ? (a.attr("x", n.x - (s.width + 4 * z + 5)).attr("y", n.y - 12), o.attr("x", n.x - (s.width + 4 * z)).attr("y", n.y + s.height - 12)) : o.attr("x", n.posWithOffset - s.width / 2), I.rotateCommitLabel)) if (J === "TB" || J === "BT") o.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")"), a.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")");
|
|
405
|
+
else {
|
|
406
|
+
let e = -7.5 - (s.width + 10) / 25 * 9.5, t = 10 + s.width / 25 * 8.5;
|
|
407
|
+
i.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}, "drawCommitLabel"), Te = /* @__PURE__ */ t((e, t, n, r) => {
|
|
411
|
+
if (t.tags.length > 0) {
|
|
412
|
+
let i = 0, a = 0, o = 0, s = [];
|
|
413
|
+
for (let r of t.tags.reverse()) {
|
|
414
|
+
let t = e.insert("polygon"), c = e.append("circle"), l = e.append("text").attr("y", n.y - 16 - i).attr("class", "tag-label").text(r), u = l.node()?.getBBox();
|
|
415
|
+
if (!u) throw Error("Tag bbox not found");
|
|
416
|
+
a = Math.max(a, u.width), o = Math.max(o, u.height), l.attr("x", n.posWithOffset - u.width / 2), s.push({
|
|
417
|
+
tag: l,
|
|
418
|
+
hole: c,
|
|
419
|
+
rect: t,
|
|
420
|
+
yOffset: i
|
|
421
|
+
}), i += 20;
|
|
422
|
+
}
|
|
423
|
+
for (let { tag: e, hole: t, rect: i, yOffset: c } of s) {
|
|
424
|
+
let s = o / 2, l = n.y - 19.2 - c;
|
|
425
|
+
if (i.attr("class", "tag-label-bkg").attr("points", `
|
|
426
|
+
${r - a / 2 - z / 2},${l + B}
|
|
427
|
+
${r - a / 2 - z / 2},${l - B}
|
|
428
|
+
${n.posWithOffset - a / 2 - z},${l - s - B}
|
|
429
|
+
${n.posWithOffset + a / 2 + z},${l - s - B}
|
|
430
|
+
${n.posWithOffset + a / 2 + z},${l + s + B}
|
|
431
|
+
${n.posWithOffset - a / 2 - z},${l + s + B}`), t.attr("cy", l).attr("cx", r - a / 2 + z / 2).attr("r", 1.5).attr("class", "tag-hole"), J === "TB" || J === "BT") {
|
|
432
|
+
let o = r + c;
|
|
433
|
+
i.attr("class", "tag-label-bkg").attr("points", `
|
|
434
|
+
${n.x},${o + 2}
|
|
435
|
+
${n.x},${o - 2}
|
|
436
|
+
${n.x + L},${o - s - 2}
|
|
437
|
+
${n.x + L + a + 4},${o - s - 2}
|
|
438
|
+
${n.x + L + a + 4},${o + s + 2}
|
|
439
|
+
${n.x + L},${o + s + 2}`).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), t.attr("cx", n.x + z / 2).attr("cy", o).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), e.attr("x", n.x + 5).attr("y", o + 3).attr("transform", "translate(14,14) rotate(45, " + n.x + "," + r + ")");
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}, "drawCommitTags"), Ee = /* @__PURE__ */ t((e) => {
|
|
444
|
+
switch (e.customType ?? e.type) {
|
|
445
|
+
case v.NORMAL: return "commit-normal";
|
|
446
|
+
case v.REVERSE: return "commit-reverse";
|
|
447
|
+
case v.HIGHLIGHT: return "commit-highlight";
|
|
448
|
+
case v.MERGE: return "commit-merge";
|
|
449
|
+
case v.CHERRY_PICK: return "commit-cherry-pick";
|
|
450
|
+
default: return "commit-normal";
|
|
451
|
+
}
|
|
452
|
+
}, "getCommitClassType"), De = /* @__PURE__ */ t((e, t, n, r) => {
|
|
453
|
+
let i = {
|
|
454
|
+
x: 0,
|
|
455
|
+
y: 0
|
|
456
|
+
};
|
|
457
|
+
if (e.parents.length > 0) {
|
|
458
|
+
let n = X(e.parents);
|
|
459
|
+
if (n) {
|
|
460
|
+
let a = r.get(n) ?? i;
|
|
461
|
+
return t === "TB" ? a.y + R : t === "BT" ? (r.get(e.id) ?? i).y - R : a.x + R;
|
|
462
|
+
}
|
|
463
|
+
} else if (t === "TB") return W;
|
|
464
|
+
else if (t === "BT") return (r.get(e.id) ?? i).y - R;
|
|
465
|
+
else return 0;
|
|
466
|
+
return 0;
|
|
467
|
+
}, "calculatePosition"), Oe = /* @__PURE__ */ t((e, t, n) => {
|
|
468
|
+
let r = J === "BT" && n ? t : t + L, i = J === "TB" || J === "BT" ? r : H.get(e.branch)?.pos, a = J === "TB" || J === "BT" ? H.get(e.branch)?.pos : r;
|
|
469
|
+
if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
|
|
470
|
+
return {
|
|
471
|
+
x: a,
|
|
472
|
+
y: i,
|
|
473
|
+
posWithOffset: r
|
|
474
|
+
};
|
|
475
|
+
}, "getCommitPosition"), Z = /* @__PURE__ */ t((e, n, r) => {
|
|
476
|
+
if (!I) throw Error("GitGraph config not found");
|
|
477
|
+
let i = e.append("g").attr("class", "commit-bullets"), a = e.append("g").attr("class", "commit-labels"), o = J === "TB" || J === "BT" ? W : 0, s = [...n.keys()], c = I?.parallelCommits ?? !1, l = /* @__PURE__ */ t((e, t) => {
|
|
478
|
+
let r = n.get(e)?.seq, i = n.get(t)?.seq;
|
|
479
|
+
return r !== void 0 && i !== void 0 ? r - i : 0;
|
|
480
|
+
}, "sortKeys"), u = s.sort(l);
|
|
481
|
+
J === "BT" && (c && ve(u, n, o), u = u.reverse()), u.forEach((e) => {
|
|
482
|
+
let t = n.get(e);
|
|
483
|
+
if (!t) throw Error(`Commit not found for key ${e}`);
|
|
484
|
+
c && (o = De(t, J, o, U));
|
|
485
|
+
let s = Oe(t, o, c);
|
|
486
|
+
if (r) {
|
|
487
|
+
let e = Ee(t), n = t.customType ?? t.type;
|
|
488
|
+
Ce(i, t, s, e, H.get(t.branch)?.index ?? 0, n), we(a, t, s, o), Te(a, t, s, o);
|
|
489
|
+
}
|
|
490
|
+
J === "TB" || J === "BT" ? U.set(t.id, {
|
|
491
|
+
x: s.x,
|
|
492
|
+
y: s.posWithOffset
|
|
493
|
+
}) : U.set(t.id, {
|
|
494
|
+
x: s.posWithOffset,
|
|
495
|
+
y: s.y
|
|
496
|
+
}), o = J === "BT" && c ? o + R : o + R + L, o > q && (q = o);
|
|
497
|
+
});
|
|
498
|
+
}, "drawCommits"), Q = /* @__PURE__ */ t((e, n, r, i, a) => {
|
|
499
|
+
let o = (J === "TB" || J === "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");
|
|
500
|
+
return [...a.values()].some((e) => c(e) && s(e));
|
|
501
|
+
}, "shouldRerouteArrow"), $ = /* @__PURE__ */ t((e, t, n = 0) => {
|
|
502
|
+
let r = e + Math.abs(e - t) / 2;
|
|
503
|
+
return n > 5 ? r : K.every((e) => Math.abs(e - r) >= 10) ? (K.push(r), r) : $(e, t - Math.abs(e - t) / 5, n + 1);
|
|
504
|
+
}, "findLane"), ke = /* @__PURE__ */ t((e, t, n, r) => {
|
|
505
|
+
let i = U.get(t.id), a = U.get(n.id);
|
|
506
|
+
if (i === void 0 || a === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
|
|
507
|
+
let o = Q(t, n, i, a, r), s = "", c = "", l = 0, u = 0, d = H.get(n.branch)?.index;
|
|
508
|
+
n.type === v.MERGE && t.id !== n.parents[0] && (d = H.get(t.branch)?.index);
|
|
509
|
+
let f;
|
|
510
|
+
if (o) {
|
|
511
|
+
s = "A 10 10, 0, 0, 0,", c = "A 10 10, 0, 0, 1,", l = 10, u = 10;
|
|
512
|
+
let e = i.y < a.y ? $(i.y, a.y) : $(a.y, i.y), n = i.x < a.x ? $(i.x, a.x) : $(a.x, i.x);
|
|
513
|
+
J === "TB" ? i.x < a.x ? f = `M ${i.x} ${i.y} L ${n - l} ${i.y} ${c} ${n} ${i.y + u} L ${n} ${a.y - l} ${s} ${n + u} ${a.y} L ${a.x} ${a.y}` : (d = H.get(t.branch)?.index, f = `M ${i.x} ${i.y} L ${n + l} ${i.y} ${s} ${n} ${i.y + u} L ${n} ${a.y - l} ${c} ${n - u} ${a.y} L ${a.x} ${a.y}`) : J === "BT" ? i.x < a.x ? f = `M ${i.x} ${i.y} L ${n - l} ${i.y} ${s} ${n} ${i.y - u} L ${n} ${a.y + l} ${c} ${n + u} ${a.y} L ${a.x} ${a.y}` : (d = H.get(t.branch)?.index, f = `M ${i.x} ${i.y} L ${n + l} ${i.y} ${c} ${n} ${i.y - u} L ${n} ${a.y + l} ${s} ${n - u} ${a.y} L ${a.x} ${a.y}`) : i.y < a.y ? f = `M ${i.x} ${i.y} L ${i.x} ${e - l} ${s} ${i.x + u} ${e} L ${a.x - l} ${e} ${c} ${a.x} ${e + u} L ${a.x} ${a.y}` : (d = H.get(t.branch)?.index, f = `M ${i.x} ${i.y} L ${i.x} ${e + l} ${c} ${i.x + u} ${e} L ${a.x - l} ${e} ${s} ${a.x} ${e - u} L ${a.x} ${a.y}`);
|
|
514
|
+
} else s = "A 20 20, 0, 0, 0,", c = "A 20 20, 0, 0, 1,", l = 20, u = 20, J === "TB" ? (i.x < a.x && (f = n.type === v.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y - l} ${s} ${i.x + u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${c} ${a.x} ${i.y + u} L ${a.x} ${a.y}`), i.x > a.x && (s = "A 20 20, 0, 0, 0,", c = "A 20 20, 0, 0, 1,", l = 20, u = 20, f = n.type === v.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y - l} ${c} ${i.x - u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x + l} ${i.y} ${s} ${a.x} ${i.y + u} L ${a.x} ${a.y}`), i.x === a.x && (f = `M ${i.x} ${i.y} L ${a.x} ${a.y}`)) : J === "BT" ? (i.x < a.x && (f = n.type === v.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y + l} ${c} ${i.x + u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${s} ${a.x} ${i.y - u} L ${a.x} ${a.y}`), i.x > a.x && (s = "A 20 20, 0, 0, 0,", c = "A 20 20, 0, 0, 1,", l = 20, u = 20, f = n.type === v.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${i.x} ${a.y + l} ${s} ${i.x - u} ${a.y} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${s} ${a.x} ${i.y - u} L ${a.x} ${a.y}`), i.x === a.x && (f = `M ${i.x} ${i.y} L ${a.x} ${a.y}`)) : (i.y < a.y && (f = n.type === v.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${c} ${a.x} ${i.y + u} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${i.x} ${a.y - l} ${s} ${i.x + u} ${a.y} L ${a.x} ${a.y}`), i.y > a.y && (f = n.type === v.MERGE && t.id !== n.parents[0] ? `M ${i.x} ${i.y} L ${a.x - l} ${i.y} ${s} ${a.x} ${i.y - u} L ${a.x} ${a.y}` : `M ${i.x} ${i.y} L ${i.x} ${a.y + l} ${c} ${i.x + u} ${a.y} L ${a.x} ${a.y}`), i.y === a.y && (f = `M ${i.x} ${i.y} L ${a.x} ${a.y}`));
|
|
515
|
+
if (f === void 0) throw Error("Line definition not found");
|
|
516
|
+
e.append("path").attr("d", f).attr("class", "arrow arrow" + d % V);
|
|
517
|
+
}, "drawArrow"), Ae = /* @__PURE__ */ t((e, t) => {
|
|
518
|
+
let n = e.append("g").attr("class", "commit-arrows");
|
|
519
|
+
[...t.keys()].forEach((e) => {
|
|
520
|
+
let r = t.get(e);
|
|
521
|
+
r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
|
|
522
|
+
ke(n, t.get(e), r, t);
|
|
523
|
+
});
|
|
524
|
+
});
|
|
525
|
+
}, "drawArrows"), je = /* @__PURE__ */ t((e, t) => {
|
|
526
|
+
let n = e.append("g");
|
|
527
|
+
t.forEach((e, t) => {
|
|
528
|
+
let r = t % V, i = H.get(e.name)?.pos;
|
|
529
|
+
if (i === void 0) throw Error(`Position not found for branch ${e.name}`);
|
|
530
|
+
let a = n.append("line");
|
|
531
|
+
a.attr("x1", 0), a.attr("y1", i), a.attr("x2", q), a.attr("y2", i), a.attr("class", "branch branch" + r), J === "TB" ? (a.attr("y1", W), a.attr("x1", i), a.attr("y2", q), a.attr("x2", i)) : J === "BT" && (a.attr("y1", q), a.attr("x1", i), a.attr("y2", W), a.attr("x2", i)), K.push(i);
|
|
532
|
+
let o = e.name, s = Y(o), c = n.insert("rect"), l = n.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + r);
|
|
533
|
+
l.node().appendChild(s);
|
|
534
|
+
let u = s.getBBox();
|
|
535
|
+
c.attr("class", "branchLabelBkg label" + r).attr("rx", 4).attr("ry", 4).attr("x", -u.width - 4 - (I?.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -u.height / 2 + 8).attr("width", u.width + 18).attr("height", u.height + 4), l.attr("transform", "translate(" + (-u.width - 14 - (I?.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (i - u.height / 2 - 1) + ")"), J === "TB" ? (c.attr("x", i - u.width / 2 - 10).attr("y", 0), l.attr("transform", "translate(" + (i - u.width / 2 - 5) + ", 0)")) : J === "BT" ? (c.attr("x", i - u.width / 2 - 10).attr("y", q), l.attr("transform", "translate(" + (i - u.width / 2 - 5) + ", " + q + ")")) : c.attr("transform", "translate(-19, " + (i - u.height / 2) + ")");
|
|
536
|
+
});
|
|
537
|
+
}, "drawBranches"), Me = /* @__PURE__ */ t(function(e, t, n, r, i) {
|
|
538
|
+
return H.set(e, {
|
|
539
|
+
pos: t,
|
|
540
|
+
index: n
|
|
541
|
+
}), t += 50 + (i ? 40 : 0) + (J === "TB" || J === "BT" ? r.width / 2 : 0), t;
|
|
542
|
+
}, "setBranchPosition"), Ne = {
|
|
543
|
+
parser: F,
|
|
544
|
+
db: D,
|
|
545
|
+
renderer: { draw: /* @__PURE__ */ t(function(t, r, i, o) {
|
|
546
|
+
if (ge(), e.debug("in gitgraph renderer", t + "\n", "id:", r, i), !I) throw Error("GitGraph config not found");
|
|
547
|
+
let s = I.rotateCommitLabel ?? !1, c = o.db;
|
|
548
|
+
G = c.getCommits();
|
|
549
|
+
let l = c.getBranchesAsObjArray();
|
|
550
|
+
J = c.getDirection();
|
|
551
|
+
let u = n(`[id="${r}"]`), d = 0;
|
|
552
|
+
l.forEach((e, t) => {
|
|
553
|
+
let n = Y(e.name), r = u.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
|
|
554
|
+
a.node()?.appendChild(n);
|
|
555
|
+
let o = n.getBBox();
|
|
556
|
+
d = Me(e.name, d, t, o, s), a.remove(), i.remove(), r.remove();
|
|
557
|
+
}), Z(u, G, !1), I.showBranches && je(u, l), Ae(u, G), Z(u, G, !0), m.insertTitle(u, "gitTitleText", I.titleTopMargin ?? 0, c.getDiagramTitle()), a(void 0, u, I.diagramPadding, I.useMaxWidth);
|
|
558
|
+
}, "draw") },
|
|
559
|
+
styles: /* @__PURE__ */ t((e) => `
|
|
560
|
+
.commit-id,
|
|
561
|
+
.commit-msg,
|
|
562
|
+
.branch-label {
|
|
563
|
+
fill: lightgrey;
|
|
564
|
+
color: lightgrey;
|
|
565
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
566
|
+
font-family: var(--mermaid-font-family);
|
|
567
|
+
}
|
|
568
|
+
${[
|
|
569
|
+
0,
|
|
570
|
+
1,
|
|
571
|
+
2,
|
|
572
|
+
3,
|
|
573
|
+
4,
|
|
574
|
+
5,
|
|
575
|
+
6,
|
|
576
|
+
7
|
|
577
|
+
].map((t) => `
|
|
578
|
+
.branch-label${t} { fill: ${e["gitBranchLabel" + t]}; }
|
|
579
|
+
.commit${t} { stroke: ${e["git" + t]}; fill: ${e["git" + t]}; }
|
|
580
|
+
.commit-highlight${t} { stroke: ${e["gitInv" + t]}; fill: ${e["gitInv" + t]}; }
|
|
581
|
+
.label${t} { fill: ${e["git" + t]}; }
|
|
582
|
+
.arrow${t} { stroke: ${e["git" + t]}; }
|
|
583
|
+
`).join("\n")}
|
|
584
|
+
|
|
585
|
+
.branch {
|
|
586
|
+
stroke-width: 1;
|
|
587
|
+
stroke: ${e.lineColor};
|
|
588
|
+
stroke-dasharray: 2;
|
|
589
|
+
}
|
|
590
|
+
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};}
|
|
591
|
+
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; }
|
|
592
|
+
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
593
|
+
.tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; }
|
|
594
|
+
.tag-hole { fill: ${e.textColor}; }
|
|
595
|
+
|
|
596
|
+
.commit-merge {
|
|
597
|
+
stroke: ${e.primaryColor};
|
|
598
|
+
fill: ${e.primaryColor};
|
|
599
|
+
}
|
|
600
|
+
.commit-reverse {
|
|
601
|
+
stroke: ${e.primaryColor};
|
|
602
|
+
fill: ${e.primaryColor};
|
|
603
|
+
stroke-width: 3;
|
|
604
|
+
}
|
|
605
|
+
.commit-highlight-outer {
|
|
606
|
+
}
|
|
607
|
+
.commit-highlight-inner {
|
|
608
|
+
stroke: ${e.primaryColor};
|
|
609
|
+
fill: ${e.primaryColor};
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
613
|
+
.gitTitleText {
|
|
614
|
+
text-anchor: middle;
|
|
615
|
+
font-size: 18px;
|
|
616
|
+
fill: ${e.textColor};
|
|
617
|
+
}
|
|
618
|
+
`, "getStyles")
|
|
619
|
+
};
|
|
620
|
+
//#endregion
|
|
621
|
+
export { Ne as diagram };
|