@diagrammo/dgmo 0.95.0 → 0.97.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/README.md +1 -1
- package/dist/advanced.d.ts +190 -568
- package/dist/advanced.js +259 -470
- package/dist/block.d.ts +8 -0
- package/dist/block.js +144 -73
- package/dist/{calculator-BNH3GSJE.js → calculator-CIGGTURF.js} +2 -2
- package/dist/{chart-meta-BbjsRY7o.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-Cppnp31G.d.ts → chart-types-Dxtv4XSz.d.ts} +4 -5
- package/dist/{charts-d3-SZV2SFTM.js → charts-d3-INWEGMSD.js} +14 -14
- package/dist/{chunk-P5XA627W.js → chunk-2FMOLWX4.js} +73 -65
- package/dist/{chunk-MLY5ALOV.js → chunk-2SZILMQT.js} +57 -15
- package/dist/chunk-35A3J4Z5.js +14 -0
- package/dist/{chunk-UXNA2H2V.js → chunk-3C4OXVZJ.js} +2 -2
- package/dist/{chunk-IZHGT5HD.js → chunk-3HL6NSSQ.js} +63 -18
- package/dist/{chunk-2WQ3YZMN.js → chunk-3IUMSK72.js} +2 -2
- package/dist/{chunk-LAXMUSGW.js → chunk-44RLIAYC.js} +17 -10
- package/dist/{chunk-H7AXCRO7.js → chunk-453IWXZ3.js} +0 -11
- package/dist/{chunk-2I4UQG7W.js → chunk-47INRTZ6.js} +2 -2
- package/dist/{chunk-IN7XI6NO.js → chunk-4NMRS6HW.js} +1 -1
- package/dist/{chunk-KLBTJEIK.js → chunk-4TK26YHH.js} +2 -2
- package/dist/{chunk-CN4RDJDV.js → chunk-5TGZBHEJ.js} +1 -1
- package/dist/{chunk-IXHWS2HI.js → chunk-5WZYJC2P.js} +2 -2
- package/dist/{chunk-KBDMEOLI.js → chunk-65JFUANT.js} +1 -1
- package/dist/{chunk-D3K4U3ZM.js → chunk-6K2W3FH7.js} +8 -5
- package/dist/{chunk-NXU4N5WT.js → chunk-6OUMYNAJ.js} +1 -1
- package/dist/{chunk-KRPLP5LP.js → chunk-6PUBFB6D.js} +24 -3
- package/dist/{chunk-EXHXTMVR.js → chunk-6S2H6EKN.js} +3 -3
- package/dist/{chunk-KSZB7TIY.js → chunk-6SDEXSJY.js} +42 -22
- package/dist/{chunk-IQN2NGEU.js → chunk-6YBZFOTA.js} +13 -13
- package/dist/{chunk-IHN6WDEY.js → chunk-74XR7Z3I.js} +13 -13
- package/dist/{chunk-2J2CWWWK.js → chunk-7ASVGFW3.js} +1 -1
- package/dist/{chunk-BH2SF4TT.js → chunk-7QKWU7FX.js} +3 -3
- package/dist/{chunk-A6YINTY6.js → chunk-7RACGVUY.js} +1 -1
- package/dist/{chunk-VB4VMB2I.js → chunk-7TEAFIEJ.js} +9 -5
- package/dist/{chunk-UNCCZ3NU.js → chunk-A3V72YIL.js} +14 -1
- package/dist/{chunk-BCV2VJTM.js → chunk-A5LFM62B.js} +3 -3
- package/dist/{chunk-U6VS3T2M.js → chunk-AULFF7L2.js} +4 -4
- package/dist/{chunk-LKZCUFOW.js → chunk-B7ZH5EQ2.js} +2 -2
- package/dist/{chunk-VGAMBOOC.js → chunk-C6ME2L4T.js} +2 -2
- package/dist/{chunk-3PP746YM.js → chunk-CGP7RGLJ.js} +1 -1
- package/dist/{chunk-67N26CER.js → chunk-CLW45YKE.js} +2 -1
- package/dist/{chunk-VTESGA5F.js → chunk-CUOMNKYW.js} +4 -4
- package/dist/{chunk-CDM6XMOT.js → chunk-CUTEHGXO.js} +2 -2
- package/dist/{chunk-NERQSSYD.js → chunk-D67YE4LR.js} +1 -1
- package/dist/{chunk-XOMIYMQ3.js → chunk-D7KZE2XJ.js} +39 -17
- package/dist/{chunk-NMS5XSLX.js → chunk-DFEVFLEG.js} +3 -3
- package/dist/{chunk-EBVVMUAA.js → chunk-DKMZ4VMV.js} +1 -1
- package/dist/{chunk-V5D6GDNK.js → chunk-DRY4W4W6.js} +36 -15
- package/dist/{chunk-XJQ6Z3FO.js → chunk-E6GHXMH2.js} +8 -8
- package/dist/{chunk-KBEWVCK3.js → chunk-EBJLT7PH.js} +1 -1
- package/dist/{chunk-TASRGDYP.js → chunk-EEIGHOJR.js} +92 -23
- package/dist/{chunk-AQQUJEDN.js → chunk-EUPUVYWO.js} +1 -1
- package/dist/{chunk-7IALGIOI.js → chunk-F2OAZHOX.js} +10 -5
- package/dist/{chunk-JXGSTBW6.js → chunk-FK6HZYGK.js} +4 -14
- package/dist/{chunk-OSSTOSXU.js → chunk-FTW2E2YH.js} +7 -10
- package/dist/{chunk-5P2L5QXE.js → chunk-FZVCS2XY.js} +4 -2
- package/dist/chunk-G24NSISJ.js +69 -0
- package/dist/{chunk-EBIDNRSR.js → chunk-GFQFLLP3.js} +2 -2
- package/dist/{chunk-RQTDUZUH.js → chunk-GLLYHYGT.js} +27 -17
- package/dist/{chunk-VLC6WNRD.js → chunk-GULGSH2Z.js} +4 -0
- package/dist/{chunk-H5NVCOEJ.js → chunk-GXBH7WNN.js} +2 -2
- package/dist/{chunk-C6G36F5S.js → chunk-H242TVAE.js} +9 -9
- package/dist/{chunk-5XBYLYYI.js → chunk-H7DZYHQF.js} +3 -3
- package/dist/{chunk-GLCMUTO5.js → chunk-HQNZJMNS.js} +1 -1
- package/dist/{chunk-IY62DXT2.js → chunk-IAM3IDL4.js} +2 -2
- package/dist/{chunk-IGJEKO2P.js → chunk-II6D6NWX.js} +8 -8
- package/dist/{chunk-AULZD45V.js → chunk-IUFTAFGN.js} +2 -2
- package/dist/{chunk-FWVE373X.js → chunk-IZEKHIV6.js} +3 -3
- package/dist/{chunk-BQMHJ6OW.js → chunk-J3YM6RA5.js} +22 -14
- package/dist/{chunk-R6EGUTIV.js → chunk-J467QBZF.js} +23 -3
- package/dist/{chunk-JJ7RGTAU.js → chunk-J7JF4QKA.js} +40 -30
- package/dist/{chunk-E7F76M3U.js → chunk-JULBDTNU.js} +61 -9
- package/dist/{chunk-EPDBWATV.js → chunk-K7RRXZHS.js} +4 -2
- package/dist/{chunk-ZECJ7Q6C.js → chunk-KMB754DO.js} +33 -6
- package/dist/chunk-KNKZGRRB.js +439 -0
- package/dist/{chunk-XIUGSUE4.js → chunk-KTGJQJB3.js} +6 -2
- package/dist/{chunk-4SACN2C5.js → chunk-KW3CC7SB.js} +1 -1
- package/dist/{chunk-3GUEYQGL.js → chunk-L3K5O3Z5.js} +3 -3
- package/dist/chunk-LRTSTDJ6.js +126 -0
- package/dist/{chunk-NBAAIRFP.js → chunk-LZATSXAA.js} +5 -2
- package/dist/{chunk-USE6HIOZ.js → chunk-MJ725XHD.js} +1156 -330
- package/dist/{chunk-3KVUFHUJ.js → chunk-NBISN6FH.js} +2 -2
- package/dist/{chunk-RITTLIDJ.js → chunk-NN5RUHXV.js} +84 -16
- package/dist/{chunk-62GLKE6Q.js → chunk-NOZMRPXI.js} +112 -157
- package/dist/{chunk-4XYZJTFO.js → chunk-NQFZ7LXC.js} +14 -6
- package/dist/chunk-NTDWVTEY.js +12 -0
- package/dist/{chunk-BQO24BDM.js → chunk-O3HRF25Z.js} +1 -1
- package/dist/{chunk-ZD3QCNB7.js → chunk-OSSA5UWA.js} +3 -3
- package/dist/{chunk-UOCWYLYT.js → chunk-OZXKW5NA.js} +1 -1
- package/dist/{chunk-NPDVWFAQ.js → chunk-PLQZJZ2K.js} +1 -1
- package/dist/chunk-PRG7NIUU.js +272 -0
- package/dist/{chunk-S4SJ4LLY.js → chunk-PSNRB75I.js} +3 -3
- package/dist/{chunk-QPQWY5RU.js → chunk-PT5VFY3B.js} +38 -14
- package/dist/{chunk-KAO7JL4I.js → chunk-PU5X3P3T.js} +6 -5
- package/dist/{chunk-J7Q4AB23.js → chunk-PZ5LAAO3.js} +2 -2
- package/dist/{chunk-TOHTKLKE.js → chunk-Q5Q5JLRT.js} +1 -1
- package/dist/{chunk-Y3SIQN4J.js → chunk-Q6V342WS.js} +17 -5
- package/dist/{chunk-RBVFNUAL.js → chunk-QDPTOIG7.js} +5 -5
- package/dist/{chunk-ERT7XDQW.js → chunk-QIITSGI5.js} +1 -1
- package/dist/{chunk-NM5V5EKY.js → chunk-QLIZ7SB7.js} +1 -1
- package/dist/chunk-QLNLRZ37.js +181 -0
- package/dist/{chunk-HHVIE45A.js → chunk-QOLRTPGH.js} +6 -6
- package/dist/{chunk-2ZW4NBYX.js → chunk-R4SXMBGF.js} +1 -1
- package/dist/chunk-R4U7IIRX.js +178 -0
- package/dist/{chunk-BRGRIZQB.js → chunk-RC6PISCK.js} +4 -2
- package/dist/{chunk-UIEKW4SG.js → chunk-REKLKGR6.js} +3 -4
- package/dist/{chunk-TIIZIAGS.js → chunk-RFGQDIOI.js} +843 -233
- package/dist/{chunk-FVTYJUXR.js → chunk-ROFSIFSY.js} +4 -4
- package/dist/{chunk-VSAKEMDD.js → chunk-ROH4LYBL.js} +71 -21
- package/dist/{chunk-4UVCTLRH.js → chunk-SNDCXT5R.js} +9 -7
- package/dist/{chunk-R46N5KR4.js → chunk-SQBCNEJB.js} +2 -1
- package/dist/{chunk-66JTY4AN.js → chunk-TDUBTDXS.js} +1 -1
- package/dist/{chunk-PGSGJLUR.js → chunk-TMB4YY3J.js} +34 -4
- package/dist/{chunk-UZ7EZW3B.js → chunk-TO53KK2P.js} +6 -1
- package/dist/{chunk-5KKZXA44.js → chunk-V3ICBS2O.js} +7 -5
- package/dist/{chunk-GWQRTA5W.js → chunk-V65EDV6S.js} +3 -3
- package/dist/{chunk-VF7IKIRS.js → chunk-VKT3BVRO.js} +35 -11
- package/dist/{chunk-L5S32VZJ.js → chunk-VOO65FKC.js} +12 -12
- package/dist/{chunk-PVWIBKV2.js → chunk-VQWLASDC.js} +2 -2
- package/dist/{chunk-JILEYZ2V.js → chunk-VVL2KKG4.js} +1 -1
- package/dist/{chunk-GI5R5B3S.js → chunk-VVZDBUHA.js} +2 -2
- package/dist/{chunk-PGBTUGDB.js → chunk-W46OMHOK.js} +23 -27
- package/dist/{chunk-XCKNFFKM.js → chunk-WH6E6SHC.js} +2 -4
- package/dist/{chunk-H6BT45SN.js → chunk-WPYJAHRP.js} +1 -1
- package/dist/{chunk-LJGE43SG.js → chunk-WXGFB2O2.js} +3 -3
- package/dist/{chunk-YQMIKX54.js → chunk-XCYGOCMS.js} +102 -52
- package/dist/{chunk-BTP2BMWN.js → chunk-XEMCNQQW.js} +15 -15
- package/dist/{chunk-NVZ7R4EK.js → chunk-XMUFXJI2.js} +6 -6
- package/dist/{chunk-AM42TLSZ.js → chunk-XZGXVN4T.js} +5 -5
- package/dist/{chunk-5OTA2PUH.js → chunk-YCIBBVI2.js} +2 -2
- package/dist/{chunk-V2NQV7VL.js → chunk-YFIDR7JH.js} +2 -2
- package/dist/{chunk-USZLHYEQ.js → chunk-YFWIFKRQ.js} +3 -3
- 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-ZI6WC24V.js → chunk-ZBJV4KNU.js} +1 -1
- package/dist/{chunk-4EX4OKGZ.js → chunk-ZCKVTZHD.js} +41 -19
- package/dist/{chunk-7PJBJ2DU.js → chunk-ZMVMGZAJ.js} +1 -1
- package/dist/{chunk-6EFCOES2.js → chunk-ZRW4B4KF.js} +48 -14
- package/dist/{chunk-A2A2I4Z4.js → chunk-ZTKO2RD4.js} +5 -5
- package/dist/collapse-6IGH2B24.js +31 -0
- package/dist/{collapse-BSPH3BFM.js → collapse-6X5S2S3G.js} +2 -1
- 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 +28 -39
- package/dist/countdown.js +1 -1
- package/dist/dgmo-router-RSYWR5IS.js +101 -0
- package/dist/dimensions-KXAI7U2B.js +21 -0
- package/dist/editor.js +884 -222
- package/dist/{flowchart-parser-J3VWIFWB.js → flowchart-parser-UI5VZNGJ.js} +5 -5
- package/dist/{flowchart-renderer-FECH5KK5.js → flowchart-renderer-IYWPKPCF.js} +18 -18
- package/dist/fold-at-line-DmSAa1eU.d.ts +11 -0
- package/dist/highlight.js +886 -224
- package/dist/index.d.ts +89 -6
- package/dist/index.js +91 -70
- package/dist/{layout-TIBRMWHL.js → layout-6VY3DHYD.js} +6 -6
- package/dist/{layout-5SZ5A64I.js → layout-7C2QZCEZ.js} +10 -10
- package/dist/{layout-2WESJYRE.js → layout-7E7BNOGO.js} +3 -2
- package/dist/layout-BSK374N6.js +11 -0
- package/dist/{layout-RH3N46HP.js → layout-FJDBY3WG.js} +6 -5
- package/dist/{layout-YBMT74MG.js → layout-G3RVKEC4.js} +10 -10
- package/dist/{layout-KV27UW25.js → layout-GC5XX2RH.js} +2 -2
- package/dist/{layout-JTIRCKAW.js → layout-R6ULGQJK.js} +6 -6
- package/dist/{layout-HFBK5UEG.js → layout-ROI5KVSO.js} +3 -3
- package/dist/{layout-3TSVAGWH.js → layout-SPPS225I.js} +3 -3
- package/dist/{layout-HF3PMI4H.js → layout-VTGOYGRC.js} +2 -2
- package/dist/{layout-EWXHEXNS.js → layout-WBH5IHYK.js} +10 -10
- package/dist/layout-WTHBGTH2.js +15 -0
- package/dist/layout-ZCCABSV7.js +15 -0
- package/dist/{layout-search-AWPJWBKT.js → layout-search-DSIDKKQO.js} +8 -8
- package/dist/{legend-constants-55MFBXYF.js → legend-constants-KF3MKWL2.js} +2 -2
- package/dist/{parser-NUU3DVW4.js → parser-3PMYAVFL.js} +2 -2
- package/dist/{parser-KJPPUN4D.js → parser-5KVFS4RN.js} +2 -2
- package/dist/{parser-6TDWUKM5.js → parser-BA43YPIQ.js} +3 -3
- package/dist/{parser-EFF22GYO.js → parser-CFAYEWLF.js} +3 -3
- package/dist/{parser-A3AN76RQ.js → parser-DRFEX6OX.js} +3 -3
- package/dist/{parser-H5OODY5N.js → parser-DWVBRBB2.js} +3 -3
- package/dist/{parser-BJ7RJNUM.js → parser-E4B7HJT2.js} +3 -3
- package/dist/{parser-5UZV32ZI.js → parser-FWQY3HJX.js} +2 -2
- package/dist/{parser-RTWPFKXG.js → parser-GMCXCJSP.js} +3 -3
- package/dist/{parser-NL73FSFI.js → parser-IHFHPFL7.js} +3 -3
- package/dist/{parser-BTSTKY5G.js → parser-IU6425JW.js} +6 -6
- package/dist/{parser-ZRIZFDZY.js → parser-IZYIXDJX.js} +6 -6
- package/dist/{parser-4TBSWULQ.js → parser-JQGUTDSX.js} +3 -3
- package/dist/{parser-TUAEX6ML.js → parser-JRKPOO2Z.js} +3 -3
- package/dist/{parser-KMKVFET2.js → parser-KI2XYB2R.js} +2 -2
- package/dist/parser-LDVVBP7S.js +12 -0
- package/dist/{parser-YG625J5H.js → parser-MAGFK6OK.js} +4 -4
- package/dist/{parser-AR2GON37.js → parser-MH5BDN7X.js} +4 -4
- package/dist/{parser-EAQPZX2B.js → parser-MUHFEM4G.js} +3 -3
- package/dist/{parser-RCIEKN7Y.js → parser-P375HO7Q.js} +2 -2
- package/dist/{parser-GMQJISZ6.js → parser-PYY5BRLQ.js} +2 -2
- package/dist/parser-QEMFMVF5.js +12 -0
- package/dist/{parser-GDLKUBTO.js → parser-QIPDBT5M.js} +2 -2
- package/dist/{parser-BT4NI6JY.js → parser-RNBDDEGL.js} +3 -3
- package/dist/{parser-MA7L3XND.js → parser-RSWZGQA7.js} +6 -6
- package/dist/{parser-K2DI26SC.js → parser-SGX2PVR5.js} +2 -2
- package/dist/{parser-KKF6Y5MM.js → parser-SJUEFKNM.js} +4 -3
- package/dist/{parser-3QIFY5IN.js → parser-UMNBPXG2.js} +2 -2
- package/dist/{parser-F7NDRPMA.js → parser-WE4VSBBY.js} +3 -3
- package/dist/{parser-4Y6PODW6.js → parser-WKEYS7N3.js} +3 -3
- package/dist/{parser-KLCSFQ3J.js → parser-WPXUUNA2.js} +3 -3
- package/dist/{parser-LTRQASGB.js → parser-XP3RCOTN.js} +3 -3
- package/dist/{parser-2IKPQVKX.js → parser-YV4RBHG7.js} +3 -3
- package/dist/{parser-3LT3ZUUC.js → parser-YZ3J542U.js} +2 -2
- package/dist/{redraw-AHW7EUUF.js → redraw-BZ4GI6IC.js} +6 -4
- package/dist/{redraw-STZ4WJAI.js → redraw-LEOXS7C6.js} +3 -3
- package/dist/{renderer-IGSHD3OT.js → renderer-2V5NVI3V.js} +16 -16
- package/dist/renderer-4PKYVOYL.js +39 -0
- package/dist/{renderer-IVHD7ENY.js → renderer-66SCERH7.js} +14 -12
- package/dist/renderer-6IAXRZLK.js +85 -0
- package/dist/{renderer-XCLARXCK.js → renderer-6O5SV5YE.js} +10 -10
- package/dist/{renderer-IXBOT6DU.js → renderer-7OXMSF4R.js} +4 -4
- package/dist/{renderer-AM7P4LN7.js → renderer-A36NL2SS.js} +8 -8
- package/dist/{renderer-ACQQ2JXA.js → renderer-ASPBBACI.js} +13 -11
- package/dist/{renderer-W4MUMXJE.js → renderer-BXVTYE27.js} +7 -6
- package/dist/renderer-CC6O6GQK.js +18 -0
- package/dist/{renderer-Y47EM337.js → renderer-CNDB4JTZ.js} +17 -17
- package/dist/renderer-COV2DXTM.js +41 -0
- package/dist/renderer-DXCATVLO.js +30 -0
- package/dist/{renderer-JYHA6R2D.js → renderer-E5E3OJ42.js} +12 -11
- package/dist/{renderer-DAZWHNLI.js → renderer-E7LC7HCU.js} +5 -5
- package/dist/{renderer-RUSQJFFC.js → renderer-F3JYZERE.js} +4 -4
- package/dist/{renderer-7OGGV327.js → renderer-FAFSRFGR.js} +9 -9
- package/dist/renderer-HIB6LZWZ.js +26 -0
- package/dist/renderer-HLDRRFZB.js +28 -0
- package/dist/renderer-INQMQPNN.js +22 -0
- package/dist/renderer-ITJ67HXO.js +27 -0
- package/dist/{renderer-UTEEJDGB.js → renderer-JLOKFKOZ.js} +14 -13
- package/dist/{renderer-2LYX6NHN.js → renderer-KOPJ76GS.js} +10 -10
- package/dist/{renderer-MWZC7TMD.js → renderer-M2467III.js} +14 -13
- package/dist/{renderer-HX6ICPDX.js → renderer-MYKL6VG6.js} +6 -6
- package/dist/{renderer-BXD5KVSR.js → renderer-S6L3JR6C.js} +11 -11
- package/dist/{renderer-NOYLNVTI.js → renderer-SYWVZ4CY.js} +3 -3
- package/dist/renderer-TCTZZ5Y6.js +32 -0
- package/dist/{renderer-QTPWRRJ7.js → renderer-UIHCYXBY.js} +12 -12
- package/dist/{renderer-36446HSH.js → renderer-WIBVOPRC.js} +6 -4
- package/dist/{renderer-2QPHDBZY.js → renderer-XMJ6XZGL.js} +12 -11
- package/dist/{renderer-TINHO2IO.js → renderer-ZTHXOBXW.js} +8 -8
- package/dist/{renderer-radial-WFUX3Z3C.js → renderer-radial-FC25BDCZ.js} +8 -8
- package/dist/{state-parser-PMNHLHLE.js → state-parser-2PQRH5JE.js} +6 -6
- package/dist/state-renderer-YP6HWLJR.js +43 -0
- package/dist/{themes-DzIH3Hjv.d.ts → themes-DoLdhUXV.d.ts} +1 -1
- package/docs/ai-integration.md +4 -4
- package/docs/language-reference.md +154 -104
- package/gallery/fixtures/swot-relabel.dgmo +19 -0
- package/gallery/fixtures/swot-tags.dgmo +16 -0
- package/gallery/fixtures/swot.dgmo +13 -0
- package/gallery/fixtures/whiteboard.dgmo +1 -0
- package/package.json +1 -1
- package/dist/chunk-6BQSDF77.js +0 -734
- package/dist/chunk-NWSPPGIE.js +0 -60
- package/dist/chunk-R2K5L4UA.js +0 -49
- package/dist/chunk-VBMRZCMQ.js +0 -1465
- package/dist/chunk-WZBZXZ6T.js +0 -636
- package/dist/collapse-TCVK3RPO.js +0 -8
- package/dist/dgmo-router-6YLKM6WU.js +0 -101
- package/dist/dimensions-DS6FWLRY.js +0 -21
- package/dist/layout-D4L44NRG.js +0 -11
- package/dist/layout-MXHR3P35.js +0 -15
- package/dist/layout-ND26WVX2.js +0 -15
- package/dist/layout-VDCJOZSH.js +0 -11
- package/dist/parser-PEZ7RN43.js +0 -14
- package/dist/parser-YHDGKPZI.js +0 -14
- package/dist/renderer-4VGO27EE.js +0 -41
- package/dist/renderer-6BDK47V6.js +0 -30
- package/dist/renderer-ISQJ2ELA.js +0 -25
- package/dist/renderer-KJ3V5BYP.js +0 -26
- package/dist/renderer-O6RP52CQ.js +0 -22
- package/dist/renderer-P3WR7TKD.js +0 -39
- package/dist/renderer-UGW4N2W5.js +0 -28
- package/dist/renderer-WPN2SXGT.js +0 -29
- package/dist/renderer-XDX6S7OV.js +0 -30
- package/dist/renderer-ZV6KCLCL.js +0 -85
- package/dist/state-renderer-JQ5DS66J.js +0 -42
- package/gallery/fixtures/sketch.dgmo +0 -22
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clipEndpointsToNodes,
|
|
3
3
|
groupedTierCandidates
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C6ME2L4T.js";
|
|
5
5
|
import {
|
|
6
6
|
computeNodeSize
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CUOMNKYW.js";
|
|
8
8
|
import {
|
|
9
9
|
NODE_HEIGHT,
|
|
10
10
|
NODE_WIDTH
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
EDGE_LABEL_FONT_SIZE,
|
|
14
14
|
measureEdgeLabel
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4NMRS6HW.js";
|
|
16
16
|
|
|
17
17
|
// src/boxes-and-lines/layout-search.ts
|
|
18
18
|
import dagre from "@dagrejs/dagre";
|
|
@@ -774,7 +774,9 @@ function tryStableCollapseLayout(input) {
|
|
|
774
774
|
const r = shift(rects.get(gid(label)));
|
|
775
775
|
groups.push({
|
|
776
776
|
label,
|
|
777
|
-
|
|
777
|
+
// The `[Group]` header line, so the folded pill's toggle points at the
|
|
778
|
+
// line the `collapsed` marker belongs on (#1741).
|
|
779
|
+
lineNumber: collapseInfo.originalGroups.find((og) => og.label === label)?.lineNumber ?? 0,
|
|
778
780
|
x: r.x,
|
|
779
781
|
y: r.y,
|
|
780
782
|
width: r.width,
|
|
@@ -1747,7 +1749,9 @@ async function layoutBoxesAndLinesSearch(parsed, collapseInfo, opts) {
|
|
|
1747
1749
|
const p = g.node(gid2(label));
|
|
1748
1750
|
groups.push({
|
|
1749
1751
|
label,
|
|
1750
|
-
|
|
1752
|
+
// The `[Group]` header line, so the folded pill's toggle points at the
|
|
1753
|
+
// line the `collapsed` marker belongs on (#1741).
|
|
1754
|
+
lineNumber: collapseInfo?.originalGroups.find((og) => og.label === label)?.lineNumber ?? 0,
|
|
1751
1755
|
x: p.x,
|
|
1752
1756
|
y: p.y,
|
|
1753
1757
|
width: p.width,
|
|
@@ -77,7 +77,8 @@ function cloneNode(node) {
|
|
|
77
77
|
parentId: node.parentId,
|
|
78
78
|
isContainer: node.isContainer,
|
|
79
79
|
lineNumber: node.lineNumber,
|
|
80
|
-
...node.color !== void 0 && { color: node.color }
|
|
80
|
+
...node.color !== void 0 && { color: node.color },
|
|
81
|
+
...node.collapsed !== void 0 && { collapsed: node.collapsed }
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
var SITEMAP_SHAPE = {
|
|
@@ -98,6 +99,17 @@ var SITEMAP_EDGE_SHAPE = {
|
|
|
98
99
|
targetId
|
|
99
100
|
})
|
|
100
101
|
};
|
|
102
|
+
function unionCollapsedSitemapNodes(parsed, interactive) {
|
|
103
|
+
const ids = new Set(interactive ?? []);
|
|
104
|
+
const walk = (nodes) => {
|
|
105
|
+
for (const node of nodes) {
|
|
106
|
+
if (node.collapsed) ids.add(node.id);
|
|
107
|
+
walk(node.children);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
walk(parsed.roots);
|
|
111
|
+
return ids;
|
|
112
|
+
}
|
|
101
113
|
function collapseSitemapTree(original, collapsedIds) {
|
|
102
114
|
if (collapsedIds.size === 0) {
|
|
103
115
|
return { parsed: original, hiddenCounts: /* @__PURE__ */ new Map() };
|
|
@@ -122,5 +134,6 @@ function collapseSitemapTree(original, collapsedIds) {
|
|
|
122
134
|
}
|
|
123
135
|
|
|
124
136
|
export {
|
|
137
|
+
unionCollapsedSitemapNodes,
|
|
125
138
|
collapseSitemapTree
|
|
126
139
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchPlacement
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7ASVGFW3.js";
|
|
4
4
|
import {
|
|
5
5
|
buildPlacedNotes,
|
|
6
6
|
noteCanvasShift,
|
|
7
7
|
resolveNotes
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4TK26YHH.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";
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
WHITEBOARD_NOTE_WIDTH,
|
|
8
8
|
isWhiteboardColor,
|
|
9
9
|
isWhiteboardShapeKind
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SQBCNEJB.js";
|
|
11
11
|
import {
|
|
12
12
|
extractPaletteDirective
|
|
13
13
|
} from "./chunk-CYTFO2LF.js";
|
|
14
14
|
import {
|
|
15
15
|
matchTagBlockHeading
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KW3CC7SB.js";
|
|
17
17
|
import {
|
|
18
18
|
parseFirstLine,
|
|
19
19
|
recognizeGlobalBoolean
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RFGQDIOI.js";
|
|
21
21
|
import {
|
|
22
22
|
makeDgmoError,
|
|
23
23
|
makeFail,
|
|
@@ -46,7 +46,7 @@ var WHITEBOARD_DIAGNOSTICS = [
|
|
|
46
46
|
severity: "warning",
|
|
47
47
|
chartType: "whiteboard",
|
|
48
48
|
title: "Unknown whiteboard element",
|
|
49
|
-
message: (p) => `Unknown element "${s(p.word)}" \u2014 a whiteboard line starts with rectangle, ellipse, database, queue, note, arrow, line, text, image or ink; line skipped${p.hint ? `. ${s(p.hint)}` : ""}`,
|
|
49
|
+
message: (p) => `Unknown element "${s(p.word)}" \u2014 a whiteboard line starts with rectangle, ellipse, database, queue, file, note, arrow, line, text, image or ink; line skipped${p.hint ? `. ${s(p.hint)}` : ""}`,
|
|
50
50
|
hint: "Start the line with one of the ten element keywords.",
|
|
51
51
|
example: "whiteboard\nsquare Start at: 0 0, size: 120 60"
|
|
52
52
|
},
|
|
@@ -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";
|
|
@@ -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) {
|
|
@@ -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";
|
|
@@ -166,6 +166,7 @@ function renderNoteBadge(parent, center, palette, opts) {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
export {
|
|
169
|
+
NOTE_FONT_SIZE,
|
|
169
170
|
NOTE_GAP,
|
|
170
171
|
NOTE_BULLET_INDENT,
|
|
171
172
|
wrapNoteBody,
|
|
@@ -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-4TK26YHH.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-DSIDKKQO.js");
|
|
109
109
|
const searchOpts = {
|
|
110
110
|
...layoutOptions?.hideDescriptions !== void 0 && {
|
|
111
111
|
hideDescriptions: layoutOptions.hideDescriptions
|
|
@@ -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,51 +4,54 @@ import {
|
|
|
4
4
|
} from "./chunk-26EVL454.js";
|
|
5
5
|
import {
|
|
6
6
|
layoutGraph
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6S2H6EKN.js";
|
|
8
8
|
import {
|
|
9
9
|
appendArrowheadMarkers
|
|
10
10
|
} from "./chunk-XBJJP2HN.js";
|
|
11
11
|
import {
|
|
12
12
|
fitDiagramToCanvas
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-K7RRXZHS.js";
|
|
14
14
|
import {
|
|
15
15
|
serializeSvg
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YLKPRT6U.js";
|
|
17
17
|
import {
|
|
18
18
|
ScaleContext
|
|
19
19
|
} from "./chunk-24YPR5EH.js";
|
|
20
|
+
import {
|
|
21
|
+
renderCollapseBar
|
|
22
|
+
} from "./chunk-LRTSTDJ6.js";
|
|
20
23
|
import {
|
|
21
24
|
layoutInlineHeader
|
|
22
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-REKLKGR6.js";
|
|
23
26
|
import {
|
|
24
27
|
TITLE_FONT_SIZE,
|
|
25
28
|
TITLE_FONT_WEIGHT,
|
|
26
29
|
TITLE_Y
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GULGSH2Z.js";
|
|
28
31
|
import {
|
|
29
32
|
ARROWHEAD_HEIGHT,
|
|
30
33
|
ARROWHEAD_WIDTH,
|
|
31
34
|
EDGE_LABEL_KNOCKOUT_OPACITY,
|
|
32
35
|
EDGE_STROKE_WIDTH,
|
|
33
36
|
NODE_STROKE_WIDTH
|
|
34
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-WH6E6SHC.js";
|
|
35
38
|
import {
|
|
36
39
|
renderIntegratedLegend
|
|
37
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-DFEVFLEG.js";
|
|
38
41
|
import {
|
|
39
42
|
getLegendExtent,
|
|
40
43
|
getMaxLegendReservedHeight
|
|
41
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VVL2KKG4.js";
|
|
42
45
|
import {
|
|
43
46
|
parseState
|
|
44
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-WXGFB2O2.js";
|
|
45
48
|
import {
|
|
46
49
|
NOTE_BADGE_RADIUS,
|
|
47
50
|
noteConnectorPoints,
|
|
48
51
|
renderNoteBadge,
|
|
49
52
|
renderNoteBox,
|
|
50
53
|
renderNoteConnector
|
|
51
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-CLW45YKE.js";
|
|
52
55
|
import {
|
|
53
56
|
FONT_FAMILY
|
|
54
57
|
} from "./chunk-ICLB27PZ.js";
|
|
@@ -57,15 +60,15 @@ import {
|
|
|
57
60
|
resolveGroupTagColor,
|
|
58
61
|
resolveTagColor,
|
|
59
62
|
tagAttrKey
|
|
60
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-KW3CC7SB.js";
|
|
61
64
|
import {
|
|
62
65
|
fillModeFromOptions,
|
|
63
66
|
legendInlineRequested,
|
|
64
67
|
legendSuppressed
|
|
65
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-RFGQDIOI.js";
|
|
66
69
|
import {
|
|
67
70
|
measureText
|
|
68
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-PU5X3P3T.js";
|
|
69
72
|
import {
|
|
70
73
|
contrastText,
|
|
71
74
|
mix,
|
|
@@ -238,6 +241,18 @@ function renderState(container, graph, layout, palette, isDark, onClickItem, exp
|
|
|
238
241
|
const groupWrapper = contentG.append("g").attr("class", "st-group-wrapper").attr("data-line-number", String(group.lineNumber)).attr("data-group-id", group.id).attr("data-group-toggle", group.id).attr("role", "button").attr("aria-expanded", "true").attr("aria-label", `Collapse group ${group.label}`).style("cursor", "pointer");
|
|
239
242
|
groupWrapper.append("rect").attr("x", gx).attr("y", gy).attr("width", gw).attr("height", gh).attr("rx", 6).attr("fill", fillColor).attr("stroke", strokeColor).attr("stroke-width", 1).attr("stroke-opacity", 0.5).attr("class", "st-group");
|
|
240
243
|
groupWrapper.append("text").attr("x", gx + 8).attr("y", gy + sGroupLabelFontSize + 4).attr("fill", strokeColor).attr("font-size", sGroupLabelFontSize).attr("font-weight", "bold").attr("opacity", 0.7).attr("class", "st-group-label").text(group.label);
|
|
244
|
+
renderCollapseBar(groupWrapper, {
|
|
245
|
+
expanded: true,
|
|
246
|
+
x: gx,
|
|
247
|
+
y: gy,
|
|
248
|
+
width: gw,
|
|
249
|
+
height: gh,
|
|
250
|
+
rx: 6,
|
|
251
|
+
fill: strokeColor,
|
|
252
|
+
clipId: `st-group-clip-${group.id.replace(/[[\]:\s]/g, "")}`,
|
|
253
|
+
prefix: "state",
|
|
254
|
+
scale: ctx
|
|
255
|
+
});
|
|
241
256
|
}
|
|
242
257
|
const LABEL_PAD = 8;
|
|
243
258
|
const LABEL_H = 16;
|
|
@@ -354,11 +369,18 @@ function renderState(container, graph, layout, palette, isDark, onClickItem, exp
|
|
|
354
369
|
mode: fillMode
|
|
355
370
|
});
|
|
356
371
|
const strokeColor = groupColor;
|
|
357
|
-
const COLLAPSE_BAR_H = 6;
|
|
358
372
|
nodeG.append("rect").attr("x", -w / 2).attr("y", -h / 2).attr("width", w).attr("height", h).attr("rx", sStateCornerRadius).attr("ry", sStateCornerRadius).attr("fill", fillColor).attr("stroke", strokeColor).attr("stroke-width", sNodeStrokeWidth);
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
373
|
+
renderCollapseBar(nodeG, {
|
|
374
|
+
x: -w / 2,
|
|
375
|
+
y: -h / 2,
|
|
376
|
+
width: w,
|
|
377
|
+
height: h,
|
|
378
|
+
rx: sStateCornerRadius,
|
|
379
|
+
fill: strokeColor,
|
|
380
|
+
clipId: `st-clip-${node.id.replace(/[[\]:\s]/g, "")}`,
|
|
381
|
+
prefix: "state",
|
|
382
|
+
scale: ctx
|
|
383
|
+
});
|
|
362
384
|
nodeG.append("text").attr("x", 0).attr("y", 0).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr(
|
|
363
385
|
"fill",
|
|
364
386
|
contrastText(
|
|
@@ -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";
|
|
@@ -10,14 +10,17 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
ScaleContext
|
|
12
12
|
} from "./chunk-24YPR5EH.js";
|
|
13
|
+
import {
|
|
14
|
+
renderCollapseBar
|
|
15
|
+
} from "./chunk-LRTSTDJ6.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,21 @@ 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
42
|
NOTE_BADGE_RADIUS,
|
|
40
43
|
noteConnectorPoints,
|
|
41
44
|
renderNoteBadge,
|
|
42
45
|
renderNoteBox,
|
|
43
46
|
renderNoteConnector
|
|
44
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-CLW45YKE.js";
|
|
45
48
|
import {
|
|
46
49
|
wrapDescriptionLines
|
|
47
50
|
} from "./chunk-7WEYXYLC.js";
|
|
@@ -56,17 +59,17 @@ import {
|
|
|
56
59
|
resolveGroupTagColor,
|
|
57
60
|
resolveTagColor,
|
|
58
61
|
tagAttrKey
|
|
59
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-KW3CC7SB.js";
|
|
60
63
|
import {
|
|
61
64
|
fillModeFromOptions,
|
|
62
65
|
legendInlineRequested,
|
|
63
66
|
legendSuppressed
|
|
64
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-RFGQDIOI.js";
|
|
65
68
|
import {
|
|
66
69
|
CHAR_WIDTH_RATIO,
|
|
67
70
|
measureText,
|
|
68
71
|
truncateText
|
|
69
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-PU5X3P3T.js";
|
|
70
73
|
import {
|
|
71
74
|
contrastText,
|
|
72
75
|
groupFill,
|
|
@@ -89,7 +92,6 @@ var NODE_FONT_SIZE = 11;
|
|
|
89
92
|
var MIN_NODE_FONT_SIZE = 9;
|
|
90
93
|
var EDGE_LABEL_FONT_SIZE = 11;
|
|
91
94
|
var NODE_RX = CARD_RADIUS;
|
|
92
|
-
var COLLAPSE_BAR_HEIGHT = 4;
|
|
93
95
|
var DESC_FONT_SIZE = 10;
|
|
94
96
|
var DESC_LINE_HEIGHT = 1.4;
|
|
95
97
|
var MAX_DESC_LINES = 6;
|
|
@@ -287,7 +289,6 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
287
289
|
const sEdgeLabelFontSize = sctx.text(EDGE_LABEL_FONT_SIZE);
|
|
288
290
|
const sEdgeStrokeWidth = sctx.structural(EDGE_STROKE_WIDTH);
|
|
289
291
|
const sNodeStrokeWidth = sctx.structural(NODE_STROKE_WIDTH);
|
|
290
|
-
const sCollapseBarHeight = sctx.structural(COLLAPSE_BAR_HEIGHT);
|
|
291
292
|
const sDescFontSize = sctx.text(DESC_FONT_SIZE);
|
|
292
293
|
const sGroupLabelFontSize = sctx.text(GROUP_LABEL_FONT_SIZE);
|
|
293
294
|
const sGroupLabelZone = sctx.structural(GROUP_LABEL_ZONE);
|
|
@@ -457,14 +458,22 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
457
458
|
const groupG = diagramG.append("g").attr(
|
|
458
459
|
"class",
|
|
459
460
|
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");
|
|
461
|
+
).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
462
|
if (group.collapsed) {
|
|
462
463
|
const fillColor = groupTagColor ? groupFill(palette, isDark, groupTagColor) : themeBaseBg(palette, isDark);
|
|
463
464
|
const strokeColor = groupTagColor ?? palette.border;
|
|
464
465
|
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
|
-
|
|
466
|
+
renderCollapseBar(groupG, {
|
|
467
|
+
x: gx,
|
|
468
|
+
y: gy,
|
|
469
|
+
width: group.width,
|
|
470
|
+
height: group.height,
|
|
471
|
+
rx: NODE_RX,
|
|
472
|
+
fill: strokeColor,
|
|
473
|
+
clipId: `bl-clip-${group.label.replace(/[[\]\s]/g, "")}`,
|
|
474
|
+
prefix: "bl",
|
|
475
|
+
scale: sctx
|
|
476
|
+
});
|
|
468
477
|
const maxLabelLines = Math.max(
|
|
469
478
|
2,
|
|
470
479
|
Math.floor((group.height - 16) / (sMinNodeFontSize * 1.3))
|
|
@@ -490,6 +499,18 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
490
499
|
} else {
|
|
491
500
|
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
501
|
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);
|
|
502
|
+
renderCollapseBar(groupG, {
|
|
503
|
+
expanded: true,
|
|
504
|
+
x: gx,
|
|
505
|
+
y: gy,
|
|
506
|
+
width: group.width,
|
|
507
|
+
height: groupHeight,
|
|
508
|
+
rx: GROUP_RX,
|
|
509
|
+
fill: groupStroke(palette, groupTagColor),
|
|
510
|
+
clipId: `bl-clip-${group.label.replace(/[[\]\s]/g, "")}`,
|
|
511
|
+
prefix: "bl",
|
|
512
|
+
scale: sctx
|
|
513
|
+
});
|
|
493
514
|
}
|
|
494
515
|
}
|
|
495
516
|
for (let i = 0; i < layout.edges.length; i++) {
|
|
@@ -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,
|