@diagrammo/dgmo 0.96.0 → 0.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.d.ts +178 -8
- package/dist/advanced.js +232 -246
- package/dist/block.d.ts +8 -0
- package/dist/block.js +138 -66
- package/dist/{calculator-GIB7POFX.js → calculator-CIGGTURF.js} +2 -2
- package/dist/{chart-meta-uImk4eTn.d.ts → chart-meta-B7niEd52.d.ts} +3 -1
- package/dist/chart-meta.d.ts +2 -2
- package/dist/chart-meta.js +19 -19
- package/dist/{chart-types-CBVYiLqy.d.ts → chart-types-Dxtv4XSz.d.ts} +3 -0
- package/dist/{charts-d3-IRP5VANE.js → charts-d3-INWEGMSD.js} +14 -14
- package/dist/{chunk-VLI6AWS3.js → chunk-3C4OXVZJ.js} +2 -2
- package/dist/{chunk-I3ZRIMR7.js → chunk-3EDV56HL.js} +15 -15
- package/dist/{chunk-OO4GUE4E.js → chunk-3F74NDUY.js} +63 -18
- package/dist/{chunk-RGFVHYDP.js → chunk-3IUMSK72.js} +2 -2
- package/dist/chunk-42AZPI2W.js +150 -0
- package/dist/{chunk-H7AXCRO7.js → chunk-453IWXZ3.js} +0 -11
- package/dist/{chunk-FHX373L5.js → chunk-47INRTZ6.js} +2 -2
- package/dist/{chunk-IN7XI6NO.js → chunk-4NMRS6HW.js} +1 -1
- package/dist/{chunk-JBAFAKGX.js → chunk-4PZP6URA.js} +41 -51
- package/dist/{chunk-5LG526X7.js → chunk-5TGZBHEJ.js} +1 -1
- package/dist/{chunk-BD4O4D2A.js → chunk-5WZYJC2P.js} +2 -2
- package/dist/{chunk-DPNSDCR3.js → chunk-65JFUANT.js} +1 -1
- package/dist/{chunk-EZ6BI5LL.js → chunk-6OUMYNAJ.js} +1 -1
- package/dist/{chunk-U6N547QA.js → chunk-6PUBFB6D.js} +24 -3
- package/dist/{chunk-IKXQ6NVR.js → chunk-6Q46GMKH.js} +21 -58
- package/dist/{chunk-DKCVAQU3.js → chunk-6YRTBI2F.js} +53 -75
- package/dist/{chunk-RTRORHSP.js → chunk-7QKWU7FX.js} +3 -3
- package/dist/{chunk-A6YINTY6.js → chunk-7RACGVUY.js} +1 -1
- package/dist/{chunk-H7RQG4PH.js → chunk-A3N4UHHL.js} +2 -2
- package/dist/{chunk-UNCCZ3NU.js → chunk-A3V72YIL.js} +14 -1
- package/dist/chunk-AHUBG6GR.js +188 -0
- package/dist/{chunk-P3PSLC2K.js → chunk-AULFF7L2.js} +2 -2
- package/dist/{chunk-SCYVGPLI.js → chunk-B7ZH5EQ2.js} +2 -2
- package/dist/{chunk-TUOZ6AXC.js → chunk-BTFB7W5Z.js} +16 -4
- package/dist/{chunk-THTYCJGF.js → chunk-BWVJTYTJ.js} +4 -4
- package/dist/{chunk-VGAMBOOC.js → chunk-C6ME2L4T.js} +2 -2
- package/dist/{chunk-H7JVKUA5.js → chunk-CES7REQM.js} +44 -60
- package/dist/{chunk-B2YVZ3QU.js → chunk-CGP7RGLJ.js} +1 -1
- package/dist/{chunk-34JOHSVE.js → chunk-CUTEHGXO.js} +2 -2
- package/dist/{chunk-NERQSSYD.js → chunk-D67YE4LR.js} +1 -1
- package/dist/{chunk-TPCP2UOI.js → chunk-D6XR22KO.js} +3 -3
- package/dist/{chunk-OAZ6BIIB.js → chunk-D7FHY6DO.js} +9 -7
- package/dist/{chunk-67N26CER.js → chunk-DA2GIHAY.js} +38 -5
- package/dist/{chunk-PGD6CNWO.js → chunk-DFEVFLEG.js} +3 -3
- package/dist/{chunk-VVTCUIPN.js → chunk-DKMZ4VMV.js} +1 -1
- package/dist/{chunk-VJ7NLYFE.js → chunk-DYI73PFY.js} +3 -3
- package/dist/{chunk-IQZSKWE5.js → chunk-E6GHXMH2.js} +8 -8
- package/dist/{chunk-I2I2FKAK.js → chunk-EBJLT7PH.js} +1 -1
- package/dist/{chunk-K2SFH3GJ.js → chunk-ENXENGW5.js} +3 -3
- package/dist/{chunk-FKJWZWNU.js → chunk-EUPUVYWO.js} +1 -1
- package/dist/{chunk-26EVL454.js → chunk-F4DGHT3F.js} +20 -0
- package/dist/{chunk-WLGOIMTI.js → chunk-FDVUD3PR.js} +4 -4
- package/dist/{chunk-IU7XKZA6.js → chunk-FK6HZYGK.js} +4 -14
- package/dist/{chunk-67RKJEKF.js → chunk-FTRW6YGU.js} +35 -11
- package/dist/{chunk-2M3K6GD2.js → chunk-FTW2E2YH.js} +6 -6
- package/dist/{chunk-5P2L5QXE.js → chunk-FZVCS2XY.js} +4 -2
- package/dist/chunk-G24NSISJ.js +69 -0
- package/dist/{chunk-4B45SNZH.js → chunk-G36XKXWT.js} +17 -15
- package/dist/{chunk-5H7SA5ZD.js → chunk-GFQFLLP3.js} +2 -2
- package/dist/{chunk-MAYTYF5S.js → chunk-GMJBBFKC.js} +3 -3
- package/dist/{chunk-5BG4OSWJ.js → chunk-GNQYARON.js} +20 -57
- package/dist/{chunk-RVOSA4RR.js → chunk-GNWCMWTO.js} +441 -267
- package/dist/{chunk-VLC6WNRD.js → chunk-GULGSH2Z.js} +4 -0
- package/dist/{chunk-H5NVCOEJ.js → chunk-GXBH7WNN.js} +2 -2
- package/dist/{chunk-7UWVHNPM.js → chunk-H242TVAE.js} +9 -9
- package/dist/{chunk-CD7VQCDL.js → chunk-H7XXQSYA.js} +63 -53
- package/dist/{chunk-GLCMUTO5.js → chunk-HQNZJMNS.js} +1 -1
- package/dist/{chunk-WTPS73RM.js → chunk-II6D6NWX.js} +8 -8
- package/dist/{chunk-3W73ZP6W.js → chunk-IMBFWXHF.js} +3 -3
- package/dist/{chunk-5ARANBIE.js → chunk-IUFTAFGN.js} +2 -2
- package/dist/{chunk-AQRSEQZV.js → chunk-IZEKHIV6.js} +3 -3
- package/dist/{chunk-WGNP5ND2.js → chunk-J3YM6RA5.js} +3 -3
- package/dist/{chunk-YFIUABSF.js → chunk-J467QBZF.js} +23 -3
- package/dist/{chunk-EPDBWATV.js → chunk-K7RRXZHS.js} +4 -2
- package/dist/{chunk-TIPNNOZC.js → chunk-KKJG3LBY.js} +41 -19
- package/dist/{chunk-YVIPJGFG.js → chunk-KMB754DO.js} +33 -6
- package/dist/chunk-KNKZGRRB.js +439 -0
- package/dist/{chunk-SIABEREK.js → chunk-KTGJQJB3.js} +2 -2
- package/dist/{chunk-LGUFJ7Y2.js → chunk-KW3CC7SB.js} +1 -1
- package/dist/{chunk-ITDF3MWD.js → chunk-L3K5O3Z5.js} +3 -3
- package/dist/{chunk-NI4L6HEU.js → chunk-LZATSXAA.js} +1 -1
- package/dist/{chunk-EPB3UEMD.js → chunk-NBISN6FH.js} +2 -2
- package/dist/{chunk-VNAPEZX2.js → chunk-NHN6GBG7.js} +1 -1
- package/dist/{chunk-EM5SA7NC.js → chunk-NQFZ7LXC.js} +4 -4
- package/dist/chunk-NTDWVTEY.js +12 -0
- package/dist/{chunk-ZBOIYC2G.js → chunk-NXOIH5JK.js} +8 -13
- package/dist/{chunk-AUXUNV73.js → chunk-O3HRF25Z.js} +1 -1
- package/dist/{chunk-KDWEOT54.js → chunk-O5APWRZN.js} +192 -230
- package/dist/{chunk-GLL237AP.js → chunk-OSSA5UWA.js} +3 -3
- package/dist/{chunk-UOCWYLYT.js → chunk-OZXKW5NA.js} +1 -1
- package/dist/{chunk-QEU6VM4O.js → chunk-PLQZJZ2K.js} +1 -1
- package/dist/chunk-PRG7NIUU.js +272 -0
- package/dist/{chunk-CP73WWLN.js → chunk-PRYAVMU6.js} +48 -14
- package/dist/{chunk-KAO7JL4I.js → chunk-PU5X3P3T.js} +6 -5
- package/dist/{chunk-B7BSRVNC.js → chunk-PZ5LAAO3.js} +2 -2
- package/dist/{chunk-TOHTKLKE.js → chunk-Q5Q5JLRT.js} +1 -1
- package/dist/{chunk-MVUNMJKO.js → chunk-Q6OKTHYL.js} +71 -57
- package/dist/{chunk-ZOKD5F7M.js → chunk-QDPTOIG7.js} +5 -5
- package/dist/{chunk-2BYFNZVM.js → chunk-QGSQ2LMB.js} +57 -15
- package/dist/{chunk-ERT7XDQW.js → chunk-QIITSGI5.js} +1 -1
- package/dist/{chunk-K2WXMXI2.js → chunk-QLIZ7SB7.js} +1 -1
- package/dist/{chunk-P6LKX3IQ.js → chunk-QOLRTPGH.js} +6 -6
- package/dist/{chunk-FBK32S4D.js → chunk-R4SXMBGF.js} +1 -1
- package/dist/chunk-R4U7IIRX.js +178 -0
- package/dist/{chunk-DWMQ24JR.js → chunk-RC6PISCK.js} +4 -2
- package/dist/{chunk-R5L5E3TC.js → chunk-REKLKGR6.js} +3 -3
- package/dist/{chunk-FUYEXLAN.js → chunk-RFGQDIOI.js} +837 -220
- package/dist/{chunk-W5MMPPGX.js → chunk-ROFSIFSY.js} +4 -4
- package/dist/{chunk-JCC3B2GS.js → chunk-ROH4LYBL.js} +65 -21
- package/dist/{chunk-MYHR3PMH.js → chunk-S5VZLZUQ.js} +7 -7
- package/dist/{chunk-JRN2CRXJ.js → chunk-TDUBTDXS.js} +1 -1
- package/dist/{chunk-IZFJZCF6.js → chunk-TGQQD2KC.js} +84 -16
- package/dist/{chunk-GM2SLMQW.js → chunk-TMB4YY3J.js} +34 -4
- package/dist/{chunk-HH3DHNQA.js → chunk-UWWQECLC.js} +2 -2
- package/dist/{chunk-HZX4QZGR.js → chunk-V65EDV6S.js} +3 -3
- package/dist/{chunk-OYGJZA24.js → chunk-VHVQT4EW.js} +39 -19
- package/dist/{chunk-KQAPFIYF.js → chunk-VQWLASDC.js} +2 -2
- package/dist/chunk-VTGGPBLW.js +14 -0
- package/dist/{chunk-LRHPBWOY.js → chunk-VUBCCY65.js} +32 -69
- package/dist/{chunk-JILEYZ2V.js → chunk-VVL2KKG4.js} +1 -1
- package/dist/{chunk-D7DGLJ7N.js → chunk-VVZDBUHA.js} +2 -2
- package/dist/{chunk-B5CEV7IR.js → chunk-VYEIMHL5.js} +38 -14
- package/dist/{chunk-XCKNFFKM.js → chunk-WH6E6SHC.js} +2 -4
- package/dist/{chunk-P2GNNEMN.js → chunk-WPYJAHRP.js} +1 -1
- package/dist/{chunk-RIK6WUMO.js → chunk-XCYGOCMS.js} +43 -26
- package/dist/{chunk-PWZEJNO6.js → chunk-XMUFXJI2.js} +6 -6
- package/dist/{chunk-5G4DOOX2.js → chunk-XPOEE2RW.js} +9 -5
- package/dist/{chunk-EMGNCG5C.js → chunk-XZGXVN4T.js} +5 -5
- package/dist/{chunk-BUVLLK3D.js → chunk-Y24QPREP.js} +27 -17
- package/dist/{chunk-GEHK4UD5.js → chunk-YCIOLYWL.js} +92 -23
- package/dist/{chunk-V2NQV7VL.js → chunk-YFIDR7JH.js} +2 -2
- package/dist/{chunk-6XLMTAEX.js → chunk-YIHRLY55.js} +33 -6
- package/dist/{chunk-CYRB2JTN.js → chunk-YLKPRT6U.js} +1 -1
- package/dist/{chunk-KMU65FYM.js → chunk-YSDSFXQD.js} +1 -1
- package/dist/{chunk-M4ZUIW3J.js → chunk-Z6V73LD6.js} +3 -3
- package/dist/{chunk-ZI6WC24V.js → chunk-ZBJV4KNU.js} +1 -1
- package/dist/{chunk-YSGOXZBB.js → chunk-ZMVMGZAJ.js} +1 -1
- package/dist/{chunk-O2HNVNKO.js → chunk-ZTKO2RD4.js} +5 -5
- package/dist/{chunk-5GU6C5WB.js → chunk-ZXPSNBZC.js} +3 -3
- package/dist/collapse-6IGH2B24.js +31 -0
- package/dist/collapse-GOWNCVHZ.js +7 -0
- package/dist/collapse-HNTPLB2Q.js +11 -0
- package/dist/collapse-NUM7DPJA.js +10 -0
- package/dist/completion-registry.js +27 -4
- package/dist/dgmo-router-RXV7BNPN.js +101 -0
- package/dist/dimensions-KXAI7U2B.js +21 -0
- package/dist/editor.js +882 -215
- package/dist/{flowchart-parser-SM5LHF2D.js → flowchart-parser-JAZRKKKJ.js} +5 -5
- package/dist/flowchart-renderer-JED3RESY.js +40 -0
- package/dist/fold-at-line-DmSAa1eU.d.ts +11 -0
- package/dist/highlight.js +883 -216
- package/dist/index.d.ts +52 -5
- package/dist/index.js +79 -63
- package/dist/{layout-LNVIH45F.js → layout-6QXAC2WA.js} +7 -6
- package/dist/{layout-2WESJYRE.js → layout-7E7BNOGO.js} +3 -2
- package/dist/layout-BSK374N6.js +11 -0
- package/dist/{layout-FCFUVCRI.js → layout-DJOZCSAP.js} +10 -10
- package/dist/{layout-R6G4MEO3.js → layout-FJDBY3WG.js} +5 -5
- package/dist/{layout-H2KP5A6M.js → layout-GC5XX2RH.js} +2 -2
- package/dist/{layout-KELSNWBD.js → layout-LCHMEGTV.js} +10 -10
- package/dist/{layout-PPIVGJXD.js → layout-ROI5KVSO.js} +3 -3
- package/dist/{layout-3TSVAGWH.js → layout-SPPS225I.js} +3 -3
- package/dist/{layout-AF4KA5B2.js → layout-VHBM32OD.js} +6 -6
- package/dist/{layout-HF3PMI4H.js → layout-VTGOYGRC.js} +2 -2
- package/dist/layout-WTHBGTH2.js +15 -0
- package/dist/layout-ZCCABSV7.js +15 -0
- package/dist/{layout-MPSH3YWE.js → layout-ZDMJL4KO.js} +10 -10
- package/dist/{layout-search-C2TYUH4L.js → layout-search-UZYZE4PR.js} +8 -8
- package/dist/{legend-constants-55MFBXYF.js → legend-constants-KF3MKWL2.js} +2 -2
- package/dist/{parser-6WURFLOB.js → parser-3KMY23A2.js} +3 -3
- package/dist/{parser-DGLKH4NT.js → parser-3PMYAVFL.js} +2 -2
- package/dist/{parser-OHBBDCG4.js → parser-5KVFS4RN.js} +2 -2
- package/dist/{parser-QWTECQEC.js → parser-ASXY2CPV.js} +6 -6
- package/dist/{parser-UHKROC7Z.js → parser-BA43YPIQ.js} +3 -3
- package/dist/{parser-F75WNYMK.js → parser-CFAYEWLF.js} +3 -3
- package/dist/{parser-MWINQNQW.js → parser-DRFEX6OX.js} +3 -3
- package/dist/{parser-W6NX3AIV.js → parser-DWVBRBB2.js} +3 -3
- package/dist/{parser-DRUGM3R6.js → parser-FWQY3HJX.js} +2 -2
- package/dist/{parser-4GHAYZKZ.js → parser-GBB5MYAN.js} +6 -6
- package/dist/{parser-GBQY3WOZ.js → parser-GMCXCJSP.js} +3 -3
- package/dist/{parser-BPYHIG24.js → parser-IHFHPFL7.js} +3 -3
- package/dist/{parser-TTGZYLYD.js → parser-JQGUTDSX.js} +3 -3
- package/dist/{parser-BNRX35NT.js → parser-JRKPOO2Z.js} +3 -3
- package/dist/{parser-B7SCN7FG.js → parser-KI2XYB2R.js} +2 -2
- package/dist/parser-LDVVBP7S.js +12 -0
- package/dist/{parser-L7SI3PW4.js → parser-MAGFK6OK.js} +4 -4
- package/dist/{parser-722KLLAQ.js → parser-MH5BDN7X.js} +3 -3
- package/dist/{parser-5RUD4A3X.js → parser-MUHFEM4G.js} +3 -3
- package/dist/{parser-Y7QXD2UR.js → parser-P375HO7Q.js} +2 -2
- package/dist/{parser-LUJX7AXO.js → parser-PYY5BRLQ.js} +2 -2
- package/dist/parser-QEMFMVF5.js +12 -0
- package/dist/{parser-WIKXZP4X.js → parser-QIPDBT5M.js} +2 -2
- package/dist/{parser-2AXU2MHJ.js → parser-RNBDDEGL.js} +3 -3
- package/dist/{parser-H6HT2WFQ.js → parser-SGX2PVR5.js} +2 -2
- package/dist/{parser-ZWWQZ4XZ.js → parser-SJUEFKNM.js} +3 -3
- package/dist/{parser-4BOP77CD.js → parser-UMNBPXG2.js} +2 -2
- package/dist/{parser-GM5B2EPW.js → parser-WE4VSBBY.js} +3 -3
- package/dist/{parser-XEJP37GQ.js → parser-WKEYS7N3.js} +3 -3
- package/dist/{parser-DWV2CYBS.js → parser-WPXUUNA2.js} +3 -3
- package/dist/{parser-5HQPPVHJ.js → parser-XP3RCOTN.js} +3 -3
- package/dist/{parser-F3JJNIFC.js → parser-YV4RBHG7.js} +3 -3
- package/dist/{parser-CRJYLOHA.js → parser-YZ3J542U.js} +2 -2
- package/dist/{parser-ZV756RMP.js → parser-ZSBMGGTD.js} +6 -6
- package/dist/renderer-37LMEGLD.js +26 -0
- package/dist/{renderer-TS5NHOQD.js → renderer-3EIZRVO3.js} +12 -11
- package/dist/renderer-4LK2RFHD.js +28 -0
- package/dist/{renderer-BYLQ37T2.js → renderer-4WD4ZIEH.js} +16 -15
- package/dist/renderer-67PNYODC.js +32 -0
- package/dist/{renderer-GKY55M4Z.js → renderer-6O5SV5YE.js} +10 -10
- package/dist/{renderer-VNJOZPSH.js → renderer-6VBL2DWH.js} +17 -17
- package/dist/{renderer-F7YGMEGQ.js → renderer-7OXMSF4R.js} +4 -4
- package/dist/{renderer-6HU44IGJ.js → renderer-A36NL2SS.js} +8 -8
- package/dist/renderer-CC6O6GQK.js +18 -0
- package/dist/renderer-CUEMI3PI.js +85 -0
- package/dist/{renderer-QZJZIAT3.js → renderer-D6BEC6LI.js} +6 -4
- package/dist/{renderer-5GP7YUS4.js → renderer-DT2PP7NJ.js} +7 -6
- package/dist/{renderer-MGF2NNGG.js → renderer-E7LC7HCU.js} +5 -5
- package/dist/{renderer-PEJF6R2I.js → renderer-F3JYZERE.js} +4 -4
- package/dist/{renderer-CVCCW7UT.js → renderer-FAFSRFGR.js} +9 -9
- package/dist/renderer-GHYW6Y3A.js +27 -0
- package/dist/{renderer-VUXAAGUG.js → renderer-HRUKL4T6.js} +12 -11
- package/dist/renderer-INQMQPNN.js +22 -0
- package/dist/{renderer-LJPUCG3U.js → renderer-KOPJ76GS.js} +10 -10
- package/dist/renderer-KVC7Z4T2.js +39 -0
- package/dist/{renderer-MVBAQP3M.js → renderer-MYKL6VG6.js} +6 -6
- package/dist/{renderer-D6EH5UQ6.js → renderer-QVUPRQ4L.js} +13 -12
- package/dist/{renderer-SYRH3B62.js → renderer-RBAMFLZQ.js} +14 -13
- package/dist/{renderer-YJVQT7QG.js → renderer-S6L3JR6C.js} +11 -11
- package/dist/{renderer-ONENGXFQ.js → renderer-SGRZKIMS.js} +14 -12
- package/dist/{renderer-NOYLNVTI.js → renderer-SYWVZ4CY.js} +3 -3
- package/dist/{renderer-66NCRXSC.js → renderer-TJPBVNVG.js} +14 -11
- package/dist/renderer-WK2BPXND.js +41 -0
- package/dist/renderer-ZG7WOBBN.js +30 -0
- package/dist/{renderer-N6PM5CSG.js → renderer-ZRPL5COW.js} +14 -13
- package/dist/{renderer-2V2XY2V7.js → renderer-ZTHXOBXW.js} +8 -8
- package/dist/{renderer-radial-4R7AKETK.js → renderer-radial-FC25BDCZ.js} +8 -8
- package/dist/{state-parser-EQBBEKHR.js → state-parser-LSFAJFMV.js} +6 -6
- package/dist/state-renderer-QTDBFB4F.js +43 -0
- package/dist/{themes-CbJL3w8L.d.ts → themes-DoLdhUXV.d.ts} +1 -1
- package/docs/ai-integration.md +4 -3
- package/docs/language-reference.md +100 -14
- package/gallery/fixtures/swot-relabel.dgmo +19 -0
- package/gallery/fixtures/swot-tags.dgmo +16 -0
- package/gallery/fixtures/swot.dgmo +13 -0
- package/package.json +1 -1
- package/dist/chunk-R2K5L4UA.js +0 -49
- package/dist/collapse-TCVK3RPO.js +0 -8
- package/dist/dgmo-router-EPBQKQW2.js +0 -100
- package/dist/dimensions-DBCRBZIU.js +0 -21
- package/dist/flowchart-renderer-PPS2GTTD.js +0 -40
- package/dist/layout-3J72UULM.js +0 -15
- package/dist/layout-IXQNVRBE.js +0 -15
- package/dist/layout-VDCJOZSH.js +0 -11
- package/dist/parser-HM6FEX5K.js +0 -14
- package/dist/renderer-2MCV75JQ.js +0 -41
- package/dist/renderer-5AEDVLAA.js +0 -31
- package/dist/renderer-7C76HP5W.js +0 -30
- package/dist/renderer-7RAMBMTH.js +0 -22
- package/dist/renderer-E3334XLT.js +0 -84
- package/dist/renderer-LFZKG2GR.js +0 -26
- package/dist/renderer-MZIWP55B.js +0 -28
- package/dist/renderer-N75E3UVY.js +0 -25
- package/dist/renderer-VNUDN6F5.js +0 -39
- package/dist/state-renderer-SOGZ2CNN.js +0 -42
|
@@ -4,17 +4,20 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
computeNodeSizing,
|
|
6
6
|
layoutPert
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LZATSXAA.js";
|
|
8
8
|
import {
|
|
9
9
|
serializeSvg
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YLKPRT6U.js";
|
|
11
11
|
import {
|
|
12
12
|
ScaleContext
|
|
13
13
|
} from "./chunk-24YPR5EH.js";
|
|
14
|
+
import {
|
|
15
|
+
renderCollapseBar
|
|
16
|
+
} from "./chunk-42AZPI2W.js";
|
|
14
17
|
import {
|
|
15
18
|
INLINE_HEADER_PAD,
|
|
16
19
|
layoutInlineHeader
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-REKLKGR6.js";
|
|
18
21
|
import {
|
|
19
22
|
CAPTION_BOX_PADDING_X,
|
|
20
23
|
CAPTION_BOX_PADDING_Y,
|
|
@@ -25,12 +28,11 @@ import {
|
|
|
25
28
|
TITLE_FONT_SIZE,
|
|
26
29
|
TITLE_FONT_WEIGHT,
|
|
27
30
|
TITLE_Y
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GULGSH2Z.js";
|
|
29
32
|
import {
|
|
30
33
|
ARROWHEAD_HEIGHT,
|
|
31
34
|
ARROWHEAD_WIDTH,
|
|
32
35
|
CARD_RADIUS,
|
|
33
|
-
COLLAPSE_BAR_HEIGHT,
|
|
34
36
|
CONTAINER_HEADER_HEIGHT,
|
|
35
37
|
CONTAINER_LABEL_FONT_SIZE,
|
|
36
38
|
CONTAINER_RADIUS,
|
|
@@ -40,16 +42,16 @@ import {
|
|
|
40
42
|
LABEL_FONT_SIZE,
|
|
41
43
|
META_FONT_SIZE,
|
|
42
44
|
NODE_STROKE_WIDTH
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-WH6E6SHC.js";
|
|
44
46
|
import {
|
|
45
47
|
renderIntegratedLegend
|
|
46
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-DFEVFLEG.js";
|
|
47
49
|
import {
|
|
48
50
|
getLegendExtent
|
|
49
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-VVL2KKG4.js";
|
|
50
52
|
import {
|
|
51
53
|
parsePert
|
|
52
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-CUTEHGXO.js";
|
|
53
55
|
import {
|
|
54
56
|
addCalendarDays,
|
|
55
57
|
formatDuration,
|
|
@@ -66,15 +68,15 @@ import {
|
|
|
66
68
|
resolveGroupTagColor,
|
|
67
69
|
resolveTagColor,
|
|
68
70
|
tagAttrKey
|
|
69
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-KW3CC7SB.js";
|
|
70
72
|
import {
|
|
71
73
|
LEGEND_HEIGHT
|
|
72
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-OZXKW5NA.js";
|
|
73
75
|
import {
|
|
74
76
|
measureText,
|
|
75
77
|
truncateText,
|
|
76
78
|
wrapTextToWidth
|
|
77
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-PU5X3P3T.js";
|
|
78
80
|
import {
|
|
79
81
|
contrastText,
|
|
80
82
|
groupFill,
|
|
@@ -228,7 +230,6 @@ function renderPert(container, resolved, layout, palette, isDark, options = {})
|
|
|
228
230
|
const sContainerRadius = ctx.structural(CONTAINER_RADIUS);
|
|
229
231
|
const sContainerLabelFontSize = ctx.text(CONTAINER_LABEL_FONT_SIZE);
|
|
230
232
|
const sContainerHeaderHeight = ctx.structural(CONTAINER_HEADER_HEIGHT);
|
|
231
|
-
const sCollapseBarHeight = ctx.structural(COLLAPSE_BAR_HEIGHT);
|
|
232
233
|
const sPinIconW = ctx.structural(PIN_ICON_W);
|
|
233
234
|
const sPinIconH = ctx.structural(PIN_ICON_H);
|
|
234
235
|
const scaledWidth = layout.width + sDiagramPad * 2;
|
|
@@ -304,7 +305,7 @@ function renderPert(container, resolved, layout, palette, isDark, options = {})
|
|
|
304
305
|
containerRadius: sContainerRadius,
|
|
305
306
|
containerLabelFontSize: sContainerLabelFontSize,
|
|
306
307
|
containerHeaderHeight: sContainerHeaderHeight,
|
|
307
|
-
|
|
308
|
+
scale: ctx,
|
|
308
309
|
nodeTopRowHeight: sNodeTopRowHeight,
|
|
309
310
|
nodeBottomRowHeight: sNodeBottomRowHeight,
|
|
310
311
|
nodeFontSize: sNodeFontSize,
|
|
@@ -718,7 +719,7 @@ function renderGroups(root, resolved, layout, palette, isDark, collapsedSet, siz
|
|
|
718
719
|
const g = layer.append("g").attr(
|
|
719
720
|
"class",
|
|
720
721
|
isCollapsed ? "pert-group pert-group-collapsed" : "pert-group"
|
|
721
|
-
).attr("data-group-id", grp.id).attr("data-group-toggle", grp.id).attr("data-collapsed", String(isCollapsed)).attr("data-line-number", String(resolvedGroup?.group.lineNumber ?? 0)).attr("data-critical-path", String(memberCritical)).attr("data-criticality-band", memberBand ?? "").style("cursor", "pointer");
|
|
722
|
+
).attr("data-group-id", grp.id).attr("data-group-toggle", grp.id).attr("role", "button").attr("aria-expanded", isCollapsed ? "false" : "true").attr("aria-label", label).attr("data-collapsed", String(isCollapsed)).attr("data-line-number", String(resolvedGroup?.group.lineNumber ?? 0)).attr("data-critical-path", String(memberCritical)).attr("data-criticality-band", memberBand ?? "").style("cursor", "pointer");
|
|
722
723
|
if (isCollapsed) {
|
|
723
724
|
const projectStart = resolved.projectStart;
|
|
724
725
|
const muStr = formatDuration(resolvedGroup?.rolledMu ?? null, unit, "?");
|
|
@@ -762,7 +763,6 @@ function renderGroups(root, resolved, layout, palette, isDark, collapsedSet, siz
|
|
|
762
763
|
palette.textOnFillDark
|
|
763
764
|
);
|
|
764
765
|
const sNR = sc.nodeRadius ?? CARD_RADIUS;
|
|
765
|
-
const sCBH = sc.collapseBarHeight ?? COLLAPSE_BAR_HEIGHT;
|
|
766
766
|
drawTextbookCard(g, {
|
|
767
767
|
width: grp.width,
|
|
768
768
|
height: grp.height,
|
|
@@ -791,9 +791,17 @@ function renderGroups(root, resolved, layout, palette, isDark, collapsedSet, siz
|
|
|
791
791
|
sPinIconH: sc.pinIconH
|
|
792
792
|
});
|
|
793
793
|
const safeGroupId = grp.id.replace(/[^A-Za-z0-9_-]/g, "_");
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
794
|
+
renderCollapseBar(g, {
|
|
795
|
+
x: grp.x,
|
|
796
|
+
y: grp.y,
|
|
797
|
+
width: grp.width,
|
|
798
|
+
height: grp.height,
|
|
799
|
+
rx: sNR,
|
|
800
|
+
fill: cardBaseColor,
|
|
801
|
+
clipId: `pert-group-clip-${safeGroupId}`,
|
|
802
|
+
prefix: "pert",
|
|
803
|
+
...sc.scale && { scale: sc.scale }
|
|
804
|
+
});
|
|
797
805
|
continue;
|
|
798
806
|
}
|
|
799
807
|
const sCR = sc.containerRadius ?? CONTAINER_RADIUS;
|
|
@@ -802,6 +810,18 @@ function renderGroups(root, resolved, layout, palette, isDark, collapsedSet, siz
|
|
|
802
810
|
const sNSW = sc.nodeStrokeWidth ?? NODE_STROKE_WIDTH;
|
|
803
811
|
g.append("rect").attr("x", grp.x).attr("y", grp.y).attr("width", grp.width).attr("height", grp.height).attr("rx", sCR).attr("ry", sCR).attr("fill", containerFill).attr("stroke", containerStroke).attr("stroke-opacity", grpTagColor ? 1 : 0.35).attr("stroke-width", sNSW);
|
|
804
812
|
g.append("text").attr("x", grp.x + grp.width / 2).attr("y", grp.y + sCHH / 2 + sCLFS / 2 - 2).attr("text-anchor", "middle").attr("font-family", FONT_FAMILY).attr("fill", palette.text).attr("font-size", sCLFS).attr("font-weight", "bold").text(label);
|
|
813
|
+
renderCollapseBar(g, {
|
|
814
|
+
expanded: true,
|
|
815
|
+
x: grp.x,
|
|
816
|
+
y: grp.y,
|
|
817
|
+
width: grp.width,
|
|
818
|
+
height: grp.height,
|
|
819
|
+
rx: sCR,
|
|
820
|
+
fill: containerStroke,
|
|
821
|
+
clipId: `pert-group-clip-${grp.id.replace(/[^A-Za-z0-9_-]/g, "_")}`,
|
|
822
|
+
prefix: "pert",
|
|
823
|
+
...sc.scale && { scale: sc.scale }
|
|
824
|
+
});
|
|
805
825
|
}
|
|
806
826
|
}
|
|
807
827
|
function renderEdges(root, resolved, layout, palette, collapsedSet, sc = {}) {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
stripDefaultModifier,
|
|
18
18
|
tagAttrKey,
|
|
19
19
|
validateTagGroupNames
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KW3CC7SB.js";
|
|
21
21
|
import {
|
|
22
22
|
AliasRegistry,
|
|
23
23
|
GANTT_BOOLEAN_SET,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
splitNameAndMeta,
|
|
33
33
|
warnUnknownMetaKeys,
|
|
34
34
|
withTagAliases
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RFGQDIOI.js";
|
|
36
36
|
import {
|
|
37
37
|
getSeriesColors
|
|
38
38
|
} from "./chunk-6GXLAKUH.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/shape-caps.ts
|
|
2
|
+
var CYLINDER_RY = 8;
|
|
3
|
+
var QUEUE_CAP = 16;
|
|
4
|
+
var FILE_WAVE = 10;
|
|
5
|
+
var SEQUENCE_CYLINDER_RY = 7;
|
|
6
|
+
var SEQUENCE_QUEUE_CAP = 10;
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
CYLINDER_RY,
|
|
10
|
+
QUEUE_CAP,
|
|
11
|
+
FILE_WAVE,
|
|
12
|
+
SEQUENCE_CYLINDER_RY,
|
|
13
|
+
SEQUENCE_QUEUE_CAP
|
|
14
|
+
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
edgeSplinePath
|
|
3
|
-
|
|
2
|
+
edgeSplinePath,
|
|
3
|
+
renderGraphTitle
|
|
4
|
+
} from "./chunk-F4DGHT3F.js";
|
|
4
5
|
import {
|
|
5
6
|
NODE_LABEL_LINE_HEIGHT,
|
|
6
7
|
layoutGraph,
|
|
7
8
|
wrapNodeLabel
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZXPSNBZC.js";
|
|
9
10
|
import {
|
|
10
11
|
appendArrowheadMarkers
|
|
11
12
|
} from "./chunk-XBJJP2HN.js";
|
|
12
13
|
import {
|
|
13
14
|
fitDiagramToCanvas
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-K7RRXZHS.js";
|
|
15
16
|
import {
|
|
16
17
|
serializeSvg
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YLKPRT6U.js";
|
|
18
19
|
import {
|
|
19
20
|
ScaleContext
|
|
20
21
|
} from "./chunk-24YPR5EH.js";
|
|
@@ -22,38 +23,34 @@ import {
|
|
|
22
23
|
INLINE_HEADER_PAD,
|
|
23
24
|
layoutInlineHeader,
|
|
24
25
|
measureTitleWidth
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-REKLKGR6.js";
|
|
26
27
|
import {
|
|
27
28
|
TITLE_FONT_SIZE,
|
|
28
|
-
TITLE_FONT_WEIGHT,
|
|
29
29
|
TITLE_Y
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GULGSH2Z.js";
|
|
31
31
|
import {
|
|
32
32
|
ARROWHEAD_HEIGHT,
|
|
33
33
|
ARROWHEAD_WIDTH,
|
|
34
34
|
EDGE_LABEL_KNOCKOUT_OPACITY,
|
|
35
35
|
EDGE_STROKE_WIDTH,
|
|
36
36
|
NODE_STROKE_WIDTH
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-WH6E6SHC.js";
|
|
38
38
|
import {
|
|
39
39
|
parseFlowchart
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-A3N4UHHL.js";
|
|
41
41
|
import {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
renderNoteBox,
|
|
46
|
-
renderNoteConnector
|
|
47
|
-
} from "./chunk-67N26CER.js";
|
|
42
|
+
NOTE_FONT_SIZE,
|
|
43
|
+
renderNodeNote
|
|
44
|
+
} from "./chunk-DA2GIHAY.js";
|
|
48
45
|
import {
|
|
49
46
|
FONT_FAMILY
|
|
50
47
|
} from "./chunk-ICLB27PZ.js";
|
|
51
48
|
import {
|
|
52
49
|
fillModeFromOptions
|
|
53
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-RFGQDIOI.js";
|
|
54
51
|
import {
|
|
55
52
|
measureText
|
|
56
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-PU5X3P3T.js";
|
|
57
54
|
import {
|
|
58
55
|
contrastText,
|
|
59
56
|
shapeFill
|
|
@@ -336,6 +333,11 @@ function renderFlowchart(container, graph, layout, palette, isDark, onClickItem,
|
|
|
336
333
|
const titleHeight = showTitle ? 40 : 0;
|
|
337
334
|
const diagramW = layout.width;
|
|
338
335
|
const diagramH = layout.height;
|
|
336
|
+
const smallestTextPx = Math.min(
|
|
337
|
+
sNodeFontSize,
|
|
338
|
+
layout.edges.some((e) => e.label) ? sEdgeLabelFontSize : Infinity,
|
|
339
|
+
graph.options?.["no-notes"] !== "on" && layout.nodes.some((n) => n.note && !n.note.collapsed) ? NOTE_FONT_SIZE : Infinity
|
|
340
|
+
);
|
|
339
341
|
const fit = fitDiagramToCanvas({
|
|
340
342
|
width,
|
|
341
343
|
height,
|
|
@@ -344,6 +346,7 @@ function renderFlowchart(container, graph, layout, palette, isDark, onClickItem,
|
|
|
344
346
|
padding: sDiagramPadding,
|
|
345
347
|
titleHeight,
|
|
346
348
|
maxScale: MAX_SCALE,
|
|
349
|
+
smallestTextPx,
|
|
347
350
|
exportMode: !!exportDims
|
|
348
351
|
});
|
|
349
352
|
const { scale, offsetY, canvasHeight } = fit;
|
|
@@ -381,20 +384,16 @@ function renderFlowchart(container, graph, layout, palette, isDark, onClickItem,
|
|
|
381
384
|
colors: edgeColors
|
|
382
385
|
});
|
|
383
386
|
if (showTitle) {
|
|
384
|
-
|
|
385
|
-
"
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
d3Selection.select(this).attr("opacity", 1);
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
}
|
|
387
|
+
renderGraphTitle(svg, {
|
|
388
|
+
title: graph.title ?? "",
|
|
389
|
+
titleLineNumber: graph.titleLineNumber,
|
|
390
|
+
x: header.titleX,
|
|
391
|
+
y: sTitleY,
|
|
392
|
+
anchor: header.titleAnchor,
|
|
393
|
+
fontSize: sTitleFontSize,
|
|
394
|
+
color: palette.text,
|
|
395
|
+
onClickItem
|
|
396
|
+
});
|
|
398
397
|
}
|
|
399
398
|
const contentG = svg.append("g").attr("transform", `translate(${offsetX}, ${offsetY}) scale(${scale})`);
|
|
400
399
|
const LABEL_PAD = 8;
|
|
@@ -551,43 +550,7 @@ function renderFlowchart(container, graph, layout, palette, isDark, onClickItem,
|
|
|
551
550
|
});
|
|
552
551
|
}
|
|
553
552
|
if (hasNote && node.note) {
|
|
554
|
-
|
|
555
|
-
renderNoteBadge(
|
|
556
|
-
nodeG,
|
|
557
|
-
{
|
|
558
|
-
x: node.width / 2 - NOTE_BADGE_RADIUS - 3,
|
|
559
|
-
y: -node.height / 2 + NOTE_BADGE_RADIUS + 3
|
|
560
|
-
},
|
|
561
|
-
palette,
|
|
562
|
-
{
|
|
563
|
-
isDark,
|
|
564
|
-
...node.note.color && { color: node.note.color },
|
|
565
|
-
lineNumber: node.note.lineNumber,
|
|
566
|
-
endLineNumber: node.note.endLineNumber
|
|
567
|
-
}
|
|
568
|
-
);
|
|
569
|
-
} else {
|
|
570
|
-
const [cx1, cy1, cx2, cy2] = noteConnectorPoints(node, node.note);
|
|
571
|
-
renderNoteConnector(nodeG, cx1, cy1, cx2, cy2, palette);
|
|
572
|
-
renderNoteBox(
|
|
573
|
-
nodeG,
|
|
574
|
-
{
|
|
575
|
-
x: node.note.x,
|
|
576
|
-
y: node.note.y,
|
|
577
|
-
width: node.note.width,
|
|
578
|
-
height: node.note.height
|
|
579
|
-
},
|
|
580
|
-
node.note.lines,
|
|
581
|
-
palette,
|
|
582
|
-
{
|
|
583
|
-
isDark,
|
|
584
|
-
...node.note.color && { color: node.note.color },
|
|
585
|
-
lineNumber: node.note.lineNumber,
|
|
586
|
-
endLineNumber: node.note.endLineNumber,
|
|
587
|
-
interactive: true
|
|
588
|
-
}
|
|
589
|
-
);
|
|
590
|
-
}
|
|
553
|
+
renderNodeNote(nodeG, node, node.note, palette, isDark);
|
|
591
554
|
}
|
|
592
555
|
}
|
|
593
556
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTagBlockHeading
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KW3CC7SB.js";
|
|
4
4
|
import {
|
|
5
5
|
OPTION_NOCOLON_RE,
|
|
6
6
|
measureIndent,
|
|
7
7
|
parseFirstLine,
|
|
8
8
|
tryParseSharedOption
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RFGQDIOI.js";
|
|
10
10
|
import {
|
|
11
11
|
formatDgmoError,
|
|
12
12
|
makeDgmoError
|
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isBlockNode
|
|
3
3
|
} from "./chunk-XSVWUOUZ.js";
|
|
4
|
+
import {
|
|
5
|
+
renderCollapseBar
|
|
6
|
+
} from "./chunk-42AZPI2W.js";
|
|
4
7
|
import {
|
|
5
8
|
layoutInlineHeader
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-REKLKGR6.js";
|
|
7
10
|
import {
|
|
8
11
|
TITLE_FONT_SIZE,
|
|
9
12
|
TITLE_FONT_WEIGHT,
|
|
10
13
|
TITLE_Y
|
|
11
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GULGSH2Z.js";
|
|
12
15
|
import {
|
|
13
16
|
EDGE_DASH
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WH6E6SHC.js";
|
|
15
18
|
import {
|
|
16
19
|
renderIntegratedLegend
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DFEVFLEG.js";
|
|
18
21
|
import {
|
|
19
22
|
getLegendExtent,
|
|
20
23
|
getMaxLegendReservedHeight
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VVL2KKG4.js";
|
|
22
25
|
import {
|
|
23
26
|
FONT_FAMILY
|
|
24
27
|
} from "./chunk-ICLB27PZ.js";
|
|
25
28
|
import {
|
|
26
29
|
resolveTagColor,
|
|
27
30
|
tagAttrKey
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KW3CC7SB.js";
|
|
29
32
|
import {
|
|
30
33
|
LEGEND_GROUP_GAP
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OZXKW5NA.js";
|
|
32
35
|
import {
|
|
33
36
|
measureText
|
|
34
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-PU5X3P3T.js";
|
|
35
38
|
import {
|
|
36
39
|
mix,
|
|
37
40
|
themeBaseBg
|
|
@@ -46,7 +49,6 @@ var BLOCK_PAD = 10;
|
|
|
46
49
|
var BLOCK_LEAF_H = 46;
|
|
47
50
|
var BLOCK_HEADER_H = 28;
|
|
48
51
|
var BLOCK_COLLAPSED_H = 46;
|
|
49
|
-
var BLOCK_BAR_H = 6;
|
|
50
52
|
var MIN_COL = 104;
|
|
51
53
|
var MAX_COL = 250;
|
|
52
54
|
var LABEL_FS = 13;
|
|
@@ -322,11 +324,18 @@ function drawItems(g, items, ctx, path = []) {
|
|
|
322
324
|
}
|
|
323
325
|
if (it.type === "collapsed") {
|
|
324
326
|
const fill2 = color ? fillMode === "solid" ? color : fillMode === "outline" ? themeBaseBg(palette, ctx.isDark) : mix(color, palette.bg, 12) : palette.surface;
|
|
325
|
-
const cid = `dgmo-block-clip-${clipCounter++}`;
|
|
326
|
-
cell.append("clipPath").attr("id", cid).append("rect").attr("x", it.x).attr("y", it.y).attr("width", it.w).attr("height", it.h).attr("rx", 10);
|
|
327
327
|
cell.append("rect").attr("x", it.x).attr("y", it.y).attr("width", it.w).attr("height", it.h).attr("rx", 10).attr("fill", fill2).attr("stroke", stroke).attr("stroke-width", 1.5);
|
|
328
328
|
cell.append("text").attr("x", it.x + it.w / 2).attr("y", it.y + it.h / 2 + 4).attr("text-anchor", "middle").attr("font-size", 12.5).attr("font-weight", "bold").attr("fill", palette.text).text(clipLabel(it.label ?? "", it.w - 24, 12.5));
|
|
329
|
-
cell
|
|
329
|
+
renderCollapseBar(cell, {
|
|
330
|
+
x: it.x,
|
|
331
|
+
y: it.y,
|
|
332
|
+
width: it.w,
|
|
333
|
+
height: it.h,
|
|
334
|
+
rx: 10,
|
|
335
|
+
fill: fillMode === "solid" && color ? palette.text : stroke,
|
|
336
|
+
clipId: `dgmo-block-clip-${clipCounter++}`,
|
|
337
|
+
prefix: "block"
|
|
338
|
+
});
|
|
330
339
|
bindToggle(cell, it, ctx, it.h);
|
|
331
340
|
continue;
|
|
332
341
|
}
|
|
@@ -342,7 +351,19 @@ function drawItems(g, items, ctx, path = []) {
|
|
|
342
351
|
const headerOpacity = 0.92 - grow * 0.3;
|
|
343
352
|
const headerY = it.y + Math.round(headerFs * 0.7) + 7;
|
|
344
353
|
cell.append("text").attr("x", it.x + it.w / 2).attr("y", headerY).attr("text-anchor", "middle").attr("font-size", headerFs).attr("font-weight", "bold").attr("fill", palette.text).attr("opacity", headerOpacity).text(clipLabel(it.label ?? "", it.w - 24, headerFs));
|
|
345
|
-
bindToggle(cell, it, ctx, BLOCK_HEADER_H)
|
|
354
|
+
if (bindToggle(cell, it, ctx, BLOCK_HEADER_H)) {
|
|
355
|
+
renderCollapseBar(cell, {
|
|
356
|
+
expanded: true,
|
|
357
|
+
x: it.x,
|
|
358
|
+
y: it.y,
|
|
359
|
+
width: it.w,
|
|
360
|
+
height: it.h,
|
|
361
|
+
rx: 10,
|
|
362
|
+
fill: fillMode === "solid" && color ? palette.text : stroke,
|
|
363
|
+
clipId: `dgmo-block-clip-${clipCounter++}`,
|
|
364
|
+
prefix: "block"
|
|
365
|
+
});
|
|
366
|
+
}
|
|
346
367
|
if (it.inner) drawItems(g, it.inner, ctx, itemPath);
|
|
347
368
|
continue;
|
|
348
369
|
}
|
|
@@ -353,10 +374,13 @@ function drawItems(g, items, ctx, path = []) {
|
|
|
353
374
|
}
|
|
354
375
|
}
|
|
355
376
|
function bindToggle(cell, it, ctx, hitH) {
|
|
356
|
-
if (!
|
|
377
|
+
if (!it.node || it.lineNumber === void 0) return false;
|
|
357
378
|
const id = it.node.id;
|
|
358
379
|
const ln = it.lineNumber;
|
|
380
|
+
cell.attr("data-group-toggle", id).attr("role", "button").attr("aria-expanded", String(it.type !== "collapsed")).attr("aria-label", it.label ?? id);
|
|
381
|
+
if (!ctx.onToggle) return true;
|
|
359
382
|
cell.append("rect").attr("x", it.x).attr("y", it.y).attr("width", it.w).attr("height", hitH).attr("rx", 10).attr("fill", "transparent").style("cursor", "pointer").on("click", () => ctx.onToggle(id, ln));
|
|
383
|
+
return true;
|
|
360
384
|
}
|
|
361
385
|
function authoredCollapsedIds(parsed) {
|
|
362
386
|
const into = /* @__PURE__ */ new Set();
|
|
@@ -3,7 +3,7 @@ var NODE_STROKE_WIDTH = 1.5;
|
|
|
3
3
|
var EDGE_STROKE_WIDTH = 1.5;
|
|
4
4
|
var CARD_RADIUS = 6;
|
|
5
5
|
var CONTAINER_RADIUS = 8;
|
|
6
|
-
var
|
|
6
|
+
var COLLAPSE_BAR_HEIGHT = 4;
|
|
7
7
|
var EDGE_LABEL_KNOCKOUT_OPACITY = 0.9;
|
|
8
8
|
var EDGE_LABEL_UNRESOLVED_KNOCKOUT_OPACITY = 1;
|
|
9
9
|
var ARROWHEAD_WIDTH = 10;
|
|
@@ -19,7 +19,6 @@ var LABEL_FONT_SIZE = 13;
|
|
|
19
19
|
var META_FONT_SIZE = 11;
|
|
20
20
|
var META_LINE_HEIGHT = 16;
|
|
21
21
|
var SEPARATOR_GAP = 6;
|
|
22
|
-
var COLLAPSE_BAR_HEIGHT = 6;
|
|
23
22
|
var CONTAINER_HEADER_HEIGHT = 28;
|
|
24
23
|
var CONTAINER_LABEL_FONT_SIZE = 13;
|
|
25
24
|
var CONTAINER_META_FONT_SIZE = 11;
|
|
@@ -30,7 +29,7 @@ export {
|
|
|
30
29
|
EDGE_STROKE_WIDTH,
|
|
31
30
|
CARD_RADIUS,
|
|
32
31
|
CONTAINER_RADIUS,
|
|
33
|
-
|
|
32
|
+
COLLAPSE_BAR_HEIGHT,
|
|
34
33
|
EDGE_LABEL_KNOCKOUT_OPACITY,
|
|
35
34
|
EDGE_LABEL_UNRESOLVED_KNOCKOUT_OPACITY,
|
|
36
35
|
ARROWHEAD_WIDTH,
|
|
@@ -44,7 +43,6 @@ export {
|
|
|
44
43
|
META_FONT_SIZE,
|
|
45
44
|
META_LINE_HEIGHT,
|
|
46
45
|
SEPARATOR_GAP,
|
|
47
|
-
COLLAPSE_BAR_HEIGHT,
|
|
48
46
|
CONTAINER_HEADER_HEIGHT,
|
|
49
47
|
CONTAINER_LABEL_FONT_SIZE,
|
|
50
48
|
CONTAINER_META_FONT_SIZE,
|