@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
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
stripDefaultModifier,
|
|
10
10
|
tagAttrKey,
|
|
11
11
|
validateTagGroupNames
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KW3CC7SB.js";
|
|
13
13
|
import {
|
|
14
14
|
AliasRegistry,
|
|
15
15
|
KANBAN_REGISTRY,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
splitNameAndMeta,
|
|
23
23
|
warnUnknownMetaKeys,
|
|
24
24
|
withTagAliases
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RFGQDIOI.js";
|
|
26
26
|
import {
|
|
27
27
|
resolveColorWithDiagnostic
|
|
28
28
|
} from "./chunk-3J7O3CU6.js";
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ScaleContext
|
|
3
3
|
} from "./chunk-24YPR5EH.js";
|
|
4
|
+
import {
|
|
5
|
+
renderCollapseBar
|
|
6
|
+
} from "./chunk-42AZPI2W.js";
|
|
4
7
|
import {
|
|
5
8
|
TITLE_FONT_SIZE,
|
|
6
9
|
TITLE_FONT_WEIGHT
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GULGSH2Z.js";
|
|
8
11
|
import {
|
|
9
12
|
FONT_FAMILY
|
|
10
13
|
} from "./chunk-ICLB27PZ.js";
|
|
11
14
|
import {
|
|
12
15
|
fillModeFromOptions
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RFGQDIOI.js";
|
|
14
17
|
import {
|
|
15
18
|
measureText
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PU5X3P3T.js";
|
|
17
20
|
import {
|
|
18
21
|
contrastText,
|
|
19
22
|
mix,
|
|
@@ -42,6 +45,7 @@ function getElementSemanticColor(el, palette) {
|
|
|
42
45
|
}
|
|
43
46
|
return null;
|
|
44
47
|
}
|
|
48
|
+
var wfClipCounter = 0;
|
|
45
49
|
function renderWireframe(container, parsed, layout, palette, isDark, _onClickItem, exportDims, theme, options) {
|
|
46
50
|
const opts = options ?? {};
|
|
47
51
|
const effectiveExportDims = opts.exportDims ?? exportDims;
|
|
@@ -57,6 +61,7 @@ function renderWireframe(container, parsed, layout, palette, isDark, _onClickIte
|
|
|
57
61
|
} else {
|
|
58
62
|
svg.attr("width", "100%").style("display", "block");
|
|
59
63
|
}
|
|
64
|
+
wfClipCounter = 0;
|
|
60
65
|
const ctx = {
|
|
61
66
|
palette,
|
|
62
67
|
isTransparent: effectiveTheme === "transparent",
|
|
@@ -176,7 +181,14 @@ function renderGroup(g, node, ctx, depth) {
|
|
|
176
181
|
g.append("text").attr("x", 10).attr("y", 18).attr("fill", palette.textMuted).attr("font-size", 11).attr("font-weight", "bold").attr("letter-spacing", "0.5px").text(el.label.toUpperCase());
|
|
177
182
|
}
|
|
178
183
|
if (el.states.includes("collapsed")) {
|
|
179
|
-
g
|
|
184
|
+
renderCollapseBar(g, {
|
|
185
|
+
width: node.width,
|
|
186
|
+
height: node.height,
|
|
187
|
+
rx: GROUP_CORNER,
|
|
188
|
+
fill: palette.border,
|
|
189
|
+
clipId: `wf-collapse-clip-${wfClipCounter++}`,
|
|
190
|
+
prefix: "wf"
|
|
191
|
+
});
|
|
180
192
|
return;
|
|
181
193
|
}
|
|
182
194
|
if (el.states.includes("scrollable")) {
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
LABEL_REACH_WIDE,
|
|
7
7
|
placeEdgeLabels
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4NMRS6HW.js";
|
|
9
9
|
import {
|
|
10
10
|
buildPlacedNotes,
|
|
11
11
|
noteCanvasShift,
|
|
12
12
|
resolveNotes
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UWWQECLC.js";
|
|
14
14
|
import {
|
|
15
15
|
measureText,
|
|
16
16
|
wrapTextToWidth
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PU5X3P3T.js";
|
|
18
18
|
|
|
19
19
|
// src/boxes-and-lines/layout.ts
|
|
20
20
|
var MARGIN = 40;
|
|
@@ -105,7 +105,7 @@ function computeNodeSize(node, reserveValueRow) {
|
|
|
105
105
|
return { width: w, height: Math.max(NODE_HEIGHT, totalHeight) };
|
|
106
106
|
}
|
|
107
107
|
async function layoutBoxesAndLines(parsed, collapseInfo, layoutOptions) {
|
|
108
|
-
const { layoutBoxesAndLinesSearch } = await import("./layout-search-
|
|
108
|
+
const { layoutBoxesAndLinesSearch } = await import("./layout-search-UZYZE4PR.js");
|
|
109
109
|
const searchOpts = {
|
|
110
110
|
...layoutOptions?.hideDescriptions !== void 0 && {
|
|
111
111
|
hideDescriptions: layoutOptions.hideDescriptions
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
BOX_CLEAR_PAD,
|
|
7
7
|
EDGE_LABEL_FONT_SIZE,
|
|
8
8
|
measureEdgeLabel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4NMRS6HW.js";
|
|
10
10
|
import {
|
|
11
11
|
measureText
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PU5X3P3T.js";
|
|
13
13
|
|
|
14
14
|
// src/boxes-and-lines/edge-clip.ts
|
|
15
15
|
function rectBorderPoint(rect, toward) {
|
|
@@ -10,14 +10,17 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
ScaleContext
|
|
12
12
|
} from "./chunk-24YPR5EH.js";
|
|
13
|
+
import {
|
|
14
|
+
renderCollapseBar
|
|
15
|
+
} from "./chunk-42AZPI2W.js";
|
|
13
16
|
import {
|
|
14
17
|
layoutInlineHeader
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-REKLKGR6.js";
|
|
16
19
|
import {
|
|
17
20
|
TITLE_FONT_SIZE,
|
|
18
21
|
TITLE_FONT_WEIGHT,
|
|
19
22
|
TITLE_Y
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GULGSH2Z.js";
|
|
21
24
|
import {
|
|
22
25
|
ARROWHEAD_HEIGHT,
|
|
23
26
|
ARROWHEAD_WIDTH,
|
|
@@ -27,21 +30,17 @@ import {
|
|
|
27
30
|
EDGE_LABEL_UNRESOLVED_KNOCKOUT_OPACITY,
|
|
28
31
|
EDGE_STROKE_WIDTH,
|
|
29
32
|
NODE_STROKE_WIDTH
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-WH6E6SHC.js";
|
|
31
34
|
import {
|
|
32
35
|
renderIntegratedLegend
|
|
33
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-DFEVFLEG.js";
|
|
34
37
|
import {
|
|
35
38
|
getLegendExtent,
|
|
36
39
|
getMaxLegendReservedHeight
|
|
37
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-VVL2KKG4.js";
|
|
38
41
|
import {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
renderNoteBadge,
|
|
42
|
-
renderNoteBox,
|
|
43
|
-
renderNoteConnector
|
|
44
|
-
} from "./chunk-67N26CER.js";
|
|
42
|
+
renderNodeNote
|
|
43
|
+
} from "./chunk-DA2GIHAY.js";
|
|
45
44
|
import {
|
|
46
45
|
wrapDescriptionLines
|
|
47
46
|
} from "./chunk-7WEYXYLC.js";
|
|
@@ -56,17 +55,17 @@ import {
|
|
|
56
55
|
resolveGroupTagColor,
|
|
57
56
|
resolveTagColor,
|
|
58
57
|
tagAttrKey
|
|
59
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-KW3CC7SB.js";
|
|
60
59
|
import {
|
|
61
60
|
fillModeFromOptions,
|
|
62
61
|
legendInlineRequested,
|
|
63
62
|
legendSuppressed
|
|
64
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-RFGQDIOI.js";
|
|
65
64
|
import {
|
|
66
65
|
CHAR_WIDTH_RATIO,
|
|
67
66
|
measureText,
|
|
68
67
|
truncateText
|
|
69
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-PU5X3P3T.js";
|
|
70
69
|
import {
|
|
71
70
|
contrastText,
|
|
72
71
|
groupFill,
|
|
@@ -89,7 +88,6 @@ var NODE_FONT_SIZE = 11;
|
|
|
89
88
|
var MIN_NODE_FONT_SIZE = 9;
|
|
90
89
|
var EDGE_LABEL_FONT_SIZE = 11;
|
|
91
90
|
var NODE_RX = CARD_RADIUS;
|
|
92
|
-
var COLLAPSE_BAR_HEIGHT = 4;
|
|
93
91
|
var DESC_FONT_SIZE = 10;
|
|
94
92
|
var DESC_LINE_HEIGHT = 1.4;
|
|
95
93
|
var MAX_DESC_LINES = 6;
|
|
@@ -287,7 +285,6 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
287
285
|
const sEdgeLabelFontSize = sctx.text(EDGE_LABEL_FONT_SIZE);
|
|
288
286
|
const sEdgeStrokeWidth = sctx.structural(EDGE_STROKE_WIDTH);
|
|
289
287
|
const sNodeStrokeWidth = sctx.structural(NODE_STROKE_WIDTH);
|
|
290
|
-
const sCollapseBarHeight = sctx.structural(COLLAPSE_BAR_HEIGHT);
|
|
291
288
|
const sDescFontSize = sctx.text(DESC_FONT_SIZE);
|
|
292
289
|
const sGroupLabelFontSize = sctx.text(GROUP_LABEL_FONT_SIZE);
|
|
293
290
|
const sGroupLabelZone = sctx.structural(GROUP_LABEL_ZONE);
|
|
@@ -457,14 +454,22 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
457
454
|
const groupG = diagramG.append("g").attr(
|
|
458
455
|
"class",
|
|
459
456
|
group.collapsed ? "bl-group bl-group-collapsed" : "bl-group"
|
|
460
|
-
).attr("data-line-number", String(group.lineNumber)).attr("data-node-id", group.label).attr("data-group-toggle", group.label).style("cursor", "pointer");
|
|
457
|
+
).attr("data-line-number", String(group.lineNumber)).attr("data-node-id", group.label).attr("data-group-toggle", group.label).attr("role", "button").attr("aria-expanded", group.collapsed ? "false" : "true").attr("aria-label", group.label).style("cursor", "pointer");
|
|
461
458
|
if (group.collapsed) {
|
|
462
459
|
const fillColor = groupTagColor ? groupFill(palette, isDark, groupTagColor) : themeBaseBg(palette, isDark);
|
|
463
460
|
const strokeColor = groupTagColor ?? palette.border;
|
|
464
461
|
groupG.append("rect").attr("x", gx).attr("y", gy).attr("width", group.width).attr("height", group.height).attr("rx", NODE_RX).attr("ry", NODE_RX).attr("fill", fillColor).attr("stroke", strokeColor).attr("stroke-width", sNodeStrokeWidth);
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
462
|
+
renderCollapseBar(groupG, {
|
|
463
|
+
x: gx,
|
|
464
|
+
y: gy,
|
|
465
|
+
width: group.width,
|
|
466
|
+
height: group.height,
|
|
467
|
+
rx: NODE_RX,
|
|
468
|
+
fill: strokeColor,
|
|
469
|
+
clipId: `bl-clip-${group.label.replace(/[[\]\s]/g, "")}`,
|
|
470
|
+
prefix: "bl",
|
|
471
|
+
scale: sctx
|
|
472
|
+
});
|
|
468
473
|
const maxLabelLines = Math.max(
|
|
469
474
|
2,
|
|
470
475
|
Math.floor((group.height - 16) / (sMinNodeFontSize * 1.3))
|
|
@@ -490,6 +495,18 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
490
495
|
} else {
|
|
491
496
|
groupG.append("rect").attr("x", gx).attr("y", gy).attr("width", group.width).attr("height", groupHeight).attr("rx", GROUP_RX).attr("ry", GROUP_RX).attr("fill", groupFill(palette, isDark, groupTagColor)).attr("stroke", groupStroke(palette, groupTagColor)).attr("stroke-width", 1).attr("stroke-opacity", groupTagColor ? 1 : 0.35);
|
|
492
497
|
groupG.append("text").attr("class", "bl-group-label").attr("x", gx + group.width / 2).attr("y", gy + 18).attr("text-anchor", "middle").attr("font-family", FONT_FAMILY).attr("font-size", sGroupLabelFontSize).attr("font-weight", "bold").attr("fill", palette.text).text(group.label);
|
|
498
|
+
renderCollapseBar(groupG, {
|
|
499
|
+
expanded: true,
|
|
500
|
+
x: gx,
|
|
501
|
+
y: gy,
|
|
502
|
+
width: group.width,
|
|
503
|
+
height: groupHeight,
|
|
504
|
+
rx: GROUP_RX,
|
|
505
|
+
fill: groupStroke(palette, groupTagColor),
|
|
506
|
+
clipId: `bl-clip-${group.label.replace(/[[\]\s]/g, "")}`,
|
|
507
|
+
prefix: "bl",
|
|
508
|
+
scale: sctx
|
|
509
|
+
});
|
|
493
510
|
}
|
|
494
511
|
}
|
|
495
512
|
for (let i = 0; i < layout.edges.length; i++) {
|
|
@@ -694,46 +711,13 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
694
711
|
nodeG.attr(FULL_TEXT_ATTR, fullNodeText(node.label, drawnDesc));
|
|
695
712
|
}
|
|
696
713
|
if (ln.note) {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
palette,
|
|
705
|
-
{
|
|
706
|
-
isDark,
|
|
707
|
-
...ln.note.color && { color: ln.note.color },
|
|
708
|
-
lineNumber: ln.note.lineNumber,
|
|
709
|
-
endLineNumber: ln.note.endLineNumber
|
|
710
|
-
}
|
|
711
|
-
);
|
|
712
|
-
} else {
|
|
713
|
-
const [cx1, cy1, cx2, cy2] = noteConnectorPoints(
|
|
714
|
-
{ width: ln.width, height: ln.height },
|
|
715
|
-
ln.note
|
|
716
|
-
);
|
|
717
|
-
renderNoteConnector(nodeG, cx1, cy1, cx2, cy2, palette);
|
|
718
|
-
renderNoteBox(
|
|
719
|
-
nodeG,
|
|
720
|
-
{
|
|
721
|
-
x: ln.note.x,
|
|
722
|
-
y: ln.note.y,
|
|
723
|
-
width: ln.note.width,
|
|
724
|
-
height: ln.note.height
|
|
725
|
-
},
|
|
726
|
-
ln.note.lines,
|
|
727
|
-
palette,
|
|
728
|
-
{
|
|
729
|
-
isDark,
|
|
730
|
-
...ln.note.color && { color: ln.note.color },
|
|
731
|
-
lineNumber: ln.note.lineNumber,
|
|
732
|
-
endLineNumber: ln.note.endLineNumber,
|
|
733
|
-
interactive: true
|
|
734
|
-
}
|
|
735
|
-
);
|
|
736
|
-
}
|
|
714
|
+
renderNodeNote(
|
|
715
|
+
nodeG,
|
|
716
|
+
{ width: ln.width, height: ln.height },
|
|
717
|
+
ln.note,
|
|
718
|
+
palette,
|
|
719
|
+
isDark
|
|
720
|
+
);
|
|
737
721
|
}
|
|
738
722
|
}
|
|
739
723
|
const labelLayer = diagramG.append("g").attr("class", "bl-edge-labels");
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
tagAttrKey,
|
|
22
22
|
validateTagGroupNames,
|
|
23
23
|
validateTagValues
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KW3CC7SB.js";
|
|
25
25
|
import {
|
|
26
26
|
PERT_REGISTRY,
|
|
27
27
|
extractColor,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
splitNameAndMeta,
|
|
32
32
|
warnUnknownMetaKeys,
|
|
33
33
|
withTagAliases
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-RFGQDIOI.js";
|
|
35
35
|
import {
|
|
36
36
|
emit,
|
|
37
37
|
makeDgmoError,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
resolveNotes,
|
|
6
6
|
tryCollectNote
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UWWQECLC.js";
|
|
8
8
|
import {
|
|
9
9
|
displayName,
|
|
10
10
|
normalizeName
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
tagAttrKey,
|
|
18
18
|
validateTagGroupNames,
|
|
19
19
|
validateTagValues
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KW3CC7SB.js";
|
|
21
21
|
import {
|
|
22
22
|
ALL_CHART_TYPES,
|
|
23
23
|
FILL_FAMILY_TOKENS,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
parseMetadataRegion,
|
|
31
31
|
tryParseSharedOption,
|
|
32
32
|
withTagAliases
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RFGQDIOI.js";
|
|
34
34
|
import {
|
|
35
35
|
resolveColorWithDiagnostic
|
|
36
36
|
} from "./chunk-3J7O3CU6.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
resolveNotes,
|
|
6
6
|
tryCollectNote
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UWWQECLC.js";
|
|
8
8
|
import {
|
|
9
9
|
normalizeName
|
|
10
10
|
} from "./chunk-NOTA6TEI.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
tagAttrKey,
|
|
19
19
|
validateTagGroupNames,
|
|
20
20
|
validateTagValues
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KW3CC7SB.js";
|
|
22
22
|
import {
|
|
23
23
|
AliasRegistry,
|
|
24
24
|
BOXES_AND_LINES_REGISTRY,
|
|
@@ -27,11 +27,12 @@ import {
|
|
|
27
27
|
parseFirstLine,
|
|
28
28
|
peelQuotedName,
|
|
29
29
|
peelRampColors,
|
|
30
|
+
peelTrailingCollapsedFlag,
|
|
30
31
|
splitNameAndMeta,
|
|
31
32
|
tryParseSharedOption,
|
|
32
33
|
warnUnknownMetaKeys,
|
|
33
34
|
withTagAliases
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RFGQDIOI.js";
|
|
35
36
|
import {
|
|
36
37
|
makeDgmoError,
|
|
37
38
|
suggest
|
|
@@ -426,16 +427,17 @@ function parseBoxesAndLines(content, palette) {
|
|
|
426
427
|
);
|
|
427
428
|
continue;
|
|
428
429
|
}
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
430
|
+
const groupPeel = peelTrailingCollapsedFlag(groupMatch[2] ?? "");
|
|
431
|
+
const groupMeta = parseTailMeta(groupPeel.rest, metaAliasMap).metadata;
|
|
432
|
+
const groupCollapsed = groupPeel.collapsed || groupMeta["collapsed"] === "true";
|
|
433
|
+
delete groupMeta["collapsed"];
|
|
433
434
|
const parentGs = currentGroupState();
|
|
434
435
|
const group = {
|
|
435
436
|
label,
|
|
436
437
|
children: [],
|
|
437
438
|
lineNumber: lineNum,
|
|
438
439
|
metadata: groupMeta,
|
|
440
|
+
...groupCollapsed && { collapsed: true },
|
|
439
441
|
...parentGs ? { parentGroup: parentGs.group.label } : {}
|
|
440
442
|
};
|
|
441
443
|
if (parentGs && indent > parentGs.indent) {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-QKPOIJBT.js";
|
|
7
7
|
import {
|
|
8
8
|
measureText
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PU5X3P3T.js";
|
|
10
10
|
import {
|
|
11
11
|
mix
|
|
12
12
|
} from "./chunk-6GXLAKUH.js";
|
|
@@ -164,15 +164,48 @@ function renderNoteBadge(parent, center, palette, opts) {
|
|
|
164
164
|
g.append("line").attr("x1", -3.5).attr("y1", -0.5).attr("x2", 1.5).attr("y2", -0.5).attr("stroke", palette.textMuted).attr("stroke-width", 0.75).style("pointer-events", "none");
|
|
165
165
|
return g;
|
|
166
166
|
}
|
|
167
|
+
function renderNodeNote(nodeG, node, note, palette, isDark) {
|
|
168
|
+
const accent = note.color ? { color: note.color } : {};
|
|
169
|
+
if (note.collapsed) {
|
|
170
|
+
renderNoteBadge(
|
|
171
|
+
nodeG,
|
|
172
|
+
{
|
|
173
|
+
x: node.width / 2 - NOTE_BADGE_RADIUS - 3,
|
|
174
|
+
y: -node.height / 2 + NOTE_BADGE_RADIUS + 3
|
|
175
|
+
},
|
|
176
|
+
palette,
|
|
177
|
+
{
|
|
178
|
+
isDark,
|
|
179
|
+
...accent,
|
|
180
|
+
lineNumber: note.lineNumber,
|
|
181
|
+
endLineNumber: note.endLineNumber
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
const [x1, y1, x2, y2] = noteConnectorPoints(node, note);
|
|
187
|
+
renderNoteConnector(nodeG, x1, y1, x2, y2, palette);
|
|
188
|
+
renderNoteBox(
|
|
189
|
+
nodeG,
|
|
190
|
+
{ x: note.x, y: note.y, width: note.width, height: note.height },
|
|
191
|
+
note.lines,
|
|
192
|
+
palette,
|
|
193
|
+
{
|
|
194
|
+
isDark,
|
|
195
|
+
...accent,
|
|
196
|
+
lineNumber: note.lineNumber,
|
|
197
|
+
endLineNumber: note.endLineNumber,
|
|
198
|
+
interactive: true
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
}
|
|
167
202
|
|
|
168
203
|
export {
|
|
204
|
+
NOTE_FONT_SIZE,
|
|
169
205
|
NOTE_GAP,
|
|
170
206
|
NOTE_BULLET_INDENT,
|
|
171
207
|
wrapNoteBody,
|
|
172
208
|
noteBoxSize,
|
|
173
|
-
renderNoteConnector,
|
|
174
209
|
noteConnectorPoints,
|
|
175
|
-
|
|
176
|
-
NOTE_BADGE_RADIUS,
|
|
177
|
-
renderNoteBadge
|
|
210
|
+
renderNodeNote
|
|
178
211
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeLegendLayout
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VVL2KKG4.js";
|
|
4
4
|
import {
|
|
5
5
|
FONT_FAMILY
|
|
6
6
|
} from "./chunk-ICLB27PZ.js";
|
|
7
7
|
import {
|
|
8
8
|
tagAttrKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KW3CC7SB.js";
|
|
10
10
|
import {
|
|
11
11
|
CONTROLS_ICON_PATH,
|
|
12
12
|
LEGEND_DOT_R,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
LEGEND_TOGGLE_OFF_OPACITY,
|
|
20
20
|
legendChromeColors,
|
|
21
21
|
measureLegendText
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OZXKW5NA.js";
|
|
23
23
|
import {
|
|
24
24
|
valueRampStops
|
|
25
25
|
} from "./chunk-6GXLAKUH.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchPlacement
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NHN6GBG7.js";
|
|
4
4
|
import {
|
|
5
5
|
buildPlacedNotes,
|
|
6
6
|
noteCanvasShift,
|
|
7
7
|
resolveNotes
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UWWQECLC.js";
|
|
9
9
|
import {
|
|
10
10
|
measureText
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PU5X3P3T.js";
|
|
12
12
|
|
|
13
13
|
// src/class/layout.ts
|
|
14
14
|
import dagre from "@dagrejs/dagre";
|
|
@@ -5,22 +5,22 @@ import {
|
|
|
5
5
|
PAIR_GAP,
|
|
6
6
|
layoutBracket,
|
|
7
7
|
wrapText
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZBJV4KNU.js";
|
|
9
9
|
import {
|
|
10
10
|
layoutInlineHeader
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-REKLKGR6.js";
|
|
12
12
|
import {
|
|
13
13
|
TITLE_FONT_SIZE,
|
|
14
14
|
TITLE_FONT_WEIGHT,
|
|
15
15
|
TITLE_Y
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GULGSH2Z.js";
|
|
17
17
|
import {
|
|
18
18
|
renderIntegratedLegend
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DFEVFLEG.js";
|
|
20
20
|
import {
|
|
21
21
|
getLegendExtent,
|
|
22
22
|
getMaxLegendReservedHeight
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VVL2KKG4.js";
|
|
24
24
|
import {
|
|
25
25
|
renderInlineText
|
|
26
26
|
} from "./chunk-QKPOIJBT.js";
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
resolveTagColor,
|
|
32
32
|
tagAttrKey
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KW3CC7SB.js";
|
|
34
34
|
import {
|
|
35
35
|
LEGEND_GROUP_GAP
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-OZXKW5NA.js";
|
|
37
37
|
import {
|
|
38
38
|
measureText
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PU5X3P3T.js";
|
|
40
40
|
import {
|
|
41
41
|
contrastText,
|
|
42
42
|
getSeriesColors,
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-6OSGENN5.js";
|
|
4
4
|
import {
|
|
5
5
|
parseDgmoChartType
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3EDV56HL.js";
|
|
7
7
|
import {
|
|
8
8
|
FONT_FAMILY,
|
|
9
9
|
MONO_FAMILY
|
|
10
10
|
} from "./chunk-ICLB27PZ.js";
|
|
11
11
|
import {
|
|
12
12
|
chartTypes
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RFGQDIOI.js";
|
|
14
14
|
import {
|
|
15
15
|
measureText,
|
|
16
16
|
truncateText
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PU5X3P3T.js";
|
|
18
18
|
|
|
19
19
|
// src/error-card.ts
|
|
20
20
|
var DOCS_BASE = "https://diagrammo.app/docs";
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TITLE_FONT_WEIGHT
|
|
3
|
+
} from "./chunk-GULGSH2Z.js";
|
|
4
|
+
|
|
5
|
+
// src/graph/title.ts
|
|
6
|
+
import * as d3Selection from "d3-selection";
|
|
7
|
+
function renderGraphTitle(svg, opts) {
|
|
8
|
+
const { titleLineNumber, onClickItem } = opts;
|
|
9
|
+
const titleEl = svg.append("text").attr("class", "chart-title").attr("x", opts.x).attr("y", opts.y).attr("text-anchor", opts.anchor).attr("fill", opts.color).attr("font-size", opts.fontSize).attr("font-weight", TITLE_FONT_WEIGHT).style("cursor", onClickItem && titleLineNumber ? "pointer" : "default").text(opts.title);
|
|
10
|
+
if (!titleLineNumber) return;
|
|
11
|
+
titleEl.attr("data-line-number", titleLineNumber);
|
|
12
|
+
if (!onClickItem) return;
|
|
13
|
+
titleEl.on("click", () => onClickItem(titleLineNumber)).on("mouseenter", function() {
|
|
14
|
+
d3Selection.select(this).attr("opacity", 0.7);
|
|
15
|
+
}).on("mouseleave", function() {
|
|
16
|
+
d3Selection.select(this).attr("opacity", 1);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
1
20
|
// src/graph/edge-spline.ts
|
|
2
21
|
import * as d3Shape from "d3-shape";
|
|
3
22
|
var lineGenerator = d3Shape.line().x((d) => d.x).y((d) => d.y).curve(d3Shape.curveBasis);
|
|
@@ -42,6 +61,7 @@ function selfLoopArcPath(points) {
|
|
|
42
61
|
}
|
|
43
62
|
|
|
44
63
|
export {
|
|
64
|
+
renderGraphTitle,
|
|
45
65
|
edgeSplinePath,
|
|
46
66
|
selfLoopArcPath
|
|
47
67
|
};
|