@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
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
META_FONT_SIZE,
|
|
5
5
|
META_LINE_HEIGHT,
|
|
6
6
|
SEPARATOR_GAP
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WH6E6SHC.js";
|
|
8
8
|
import {
|
|
9
9
|
injectDefaultTagMetadata,
|
|
10
10
|
resolveTagColor,
|
|
11
11
|
tagAttrKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KW3CC7SB.js";
|
|
13
13
|
import {
|
|
14
14
|
LEGEND_CAPSULE_PAD,
|
|
15
15
|
LEGEND_DOT_R,
|
|
@@ -23,14 +23,17 @@ import {
|
|
|
23
23
|
LEGEND_PILL_FONT_SIZE,
|
|
24
24
|
LEGEND_PILL_PAD,
|
|
25
25
|
measureLegendText
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-OZXKW5NA.js";
|
|
27
27
|
import {
|
|
28
28
|
measureText
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-PU5X3P3T.js";
|
|
30
30
|
|
|
31
31
|
// src/sitemap/layout.ts
|
|
32
32
|
import dagre from "@dagrejs/dagre";
|
|
33
33
|
var CONTAINER_LABEL_FONT_SIZE = 13;
|
|
34
|
+
function layoutInPlace(g) {
|
|
35
|
+
dagre.layout(g);
|
|
36
|
+
}
|
|
34
37
|
function clipToRectBorder(cx, cy, w, h, tx, ty) {
|
|
35
38
|
const dx = tx - cx;
|
|
36
39
|
const dy = ty - cy;
|
|
@@ -205,7 +208,12 @@ function layoutSitemap(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, e
|
|
|
205
208
|
for (const flat of flatNodes) {
|
|
206
209
|
nodeMap.set(flat.sitemapNode.id, flat);
|
|
207
210
|
}
|
|
208
|
-
const g = new dagre.graphlib.Graph(
|
|
211
|
+
const g = new dagre.graphlib.Graph(
|
|
212
|
+
{
|
|
213
|
+
compound: true,
|
|
214
|
+
multigraph: true
|
|
215
|
+
}
|
|
216
|
+
);
|
|
209
217
|
g.setGraph({
|
|
210
218
|
rankdir: parsed.direction,
|
|
211
219
|
nodesep: 50,
|
|
@@ -294,7 +302,7 @@ function layoutSitemap(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, e
|
|
|
294
302
|
`e${i}`
|
|
295
303
|
);
|
|
296
304
|
}
|
|
297
|
-
|
|
305
|
+
layoutInPlace(g);
|
|
298
306
|
const layoutNodes = [];
|
|
299
307
|
const layoutContainers = [];
|
|
300
308
|
for (const flat of flatNodes) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/journey-map/collapse.ts
|
|
2
|
+
function collapsedJourneyPhasesFromSource(parsed, interactive) {
|
|
3
|
+
const names = new Set(interactive ?? []);
|
|
4
|
+
for (const phase of parsed.phases) {
|
|
5
|
+
if (phase.collapsed) names.add(phase.name);
|
|
6
|
+
}
|
|
7
|
+
return names;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
collapsedJourneyPhasesFromSource
|
|
12
|
+
};
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getFigure,
|
|
3
3
|
getPartGeom,
|
|
4
4
|
resolvePartKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-453IWXZ3.js";
|
|
6
6
|
import {
|
|
7
7
|
renderIntegratedLegend
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DFEVFLEG.js";
|
|
9
9
|
import {
|
|
10
10
|
FONT_FAMILY
|
|
11
11
|
} from "./chunk-ICLB27PZ.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveActiveTagGroup,
|
|
14
14
|
resolveTagColor,
|
|
15
15
|
tagAttrKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KW3CC7SB.js";
|
|
17
17
|
import {
|
|
18
18
|
getSeriesColors,
|
|
19
19
|
mix,
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TITLE_FONT_SIZE,
|
|
3
|
+
TITLE_FONT_WEIGHT
|
|
4
|
+
} from "./chunk-GULGSH2Z.js";
|
|
5
|
+
import {
|
|
6
|
+
renderIntegratedLegend
|
|
7
|
+
} from "./chunk-DFEVFLEG.js";
|
|
8
|
+
import {
|
|
9
|
+
getMaxLegendReservedHeight
|
|
10
|
+
} from "./chunk-VVL2KKG4.js";
|
|
11
|
+
import {
|
|
12
|
+
FONT_FAMILY
|
|
13
|
+
} from "./chunk-ICLB27PZ.js";
|
|
14
|
+
import {
|
|
15
|
+
tagAttrKey
|
|
16
|
+
} from "./chunk-KW3CC7SB.js";
|
|
17
|
+
import {
|
|
18
|
+
legendSuppressed
|
|
19
|
+
} from "./chunk-RFGQDIOI.js";
|
|
20
|
+
import {
|
|
21
|
+
measureText,
|
|
22
|
+
wrapTextToWidth
|
|
23
|
+
} from "./chunk-PU5X3P3T.js";
|
|
24
|
+
import {
|
|
25
|
+
contrastText,
|
|
26
|
+
mix
|
|
27
|
+
} from "./chunk-6GXLAKUH.js";
|
|
28
|
+
|
|
29
|
+
// src/swot/renderer.ts
|
|
30
|
+
import * as d3Selection from "d3-selection";
|
|
31
|
+
var DIAGRAM_PADDING = 20;
|
|
32
|
+
var TITLE_HEIGHT = 30;
|
|
33
|
+
var LEGEND_GAP = 8;
|
|
34
|
+
var PANEL_WIDTH = 300;
|
|
35
|
+
var PANEL_GAP = 12;
|
|
36
|
+
var PANEL_RADIUS = 8;
|
|
37
|
+
var PANEL_PADDING = 12;
|
|
38
|
+
var HEADER_HEIGHT = 34;
|
|
39
|
+
var HEADER_FONT_SIZE = 13;
|
|
40
|
+
var HEADER_LINE_HEIGHT = 16;
|
|
41
|
+
var HEADER_COLOR_PCT = 38;
|
|
42
|
+
var ITEM_FONT_SIZE = 13;
|
|
43
|
+
var ITEM_LINE_HEIGHT = 18;
|
|
44
|
+
var ITEM_GAP = 8;
|
|
45
|
+
var DOT_RADIUS = 3.5;
|
|
46
|
+
var DOT_GAP = 8;
|
|
47
|
+
var DETAIL_FONT_SIZE = 11;
|
|
48
|
+
var DETAIL_LINE_HEIGHT = 15;
|
|
49
|
+
var AXIS_FONT_SIZE = 10.5;
|
|
50
|
+
var AXIS_FONT_WEIGHT = 600;
|
|
51
|
+
var AXIS_LETTER_SPACING = 1.2;
|
|
52
|
+
var AXIS_HEADER_SIZE = 22;
|
|
53
|
+
var AXIS_HEADER_GAP = 6;
|
|
54
|
+
var AXIS_HEADER_RADIUS = 5;
|
|
55
|
+
var AXIS_BAND = AXIS_HEADER_SIZE + AXIS_HEADER_GAP;
|
|
56
|
+
var EMPTY_TEXT = "None listed";
|
|
57
|
+
var ROW_TINT_PCT = 12;
|
|
58
|
+
var TINT_INSET = 5;
|
|
59
|
+
var TINT_PAD_Y = 3;
|
|
60
|
+
var TINT_RADIUS = 4;
|
|
61
|
+
var ITEM_TEXT_WIDTH = PANEL_WIDTH - 2 * PANEL_PADDING - 2 * DOT_RADIUS - DOT_GAP;
|
|
62
|
+
function layoutItem(item) {
|
|
63
|
+
const wrapOpts = { hardBreak: true };
|
|
64
|
+
const titleLines = wrapTextToWidth(
|
|
65
|
+
item.title,
|
|
66
|
+
ITEM_FONT_SIZE,
|
|
67
|
+
ITEM_TEXT_WIDTH,
|
|
68
|
+
wrapOpts
|
|
69
|
+
);
|
|
70
|
+
const detailLines = item.details.flatMap(
|
|
71
|
+
(detail) => wrapTextToWidth(detail, DETAIL_FONT_SIZE, ITEM_TEXT_WIDTH, wrapOpts)
|
|
72
|
+
);
|
|
73
|
+
return {
|
|
74
|
+
item,
|
|
75
|
+
titleLines,
|
|
76
|
+
detailLines,
|
|
77
|
+
height: titleLines.length * ITEM_LINE_HEIGHT + detailLines.length * DETAIL_LINE_HEIGHT
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function layoutPanel(section) {
|
|
81
|
+
const headerLines = wrapTextToWidth(
|
|
82
|
+
section.label,
|
|
83
|
+
HEADER_FONT_SIZE,
|
|
84
|
+
PANEL_WIDTH - 2 * PANEL_PADDING,
|
|
85
|
+
{ bold: true, hardBreak: true }
|
|
86
|
+
);
|
|
87
|
+
const headerHeight = HEADER_HEIGHT + (headerLines.length - 1) * HEADER_LINE_HEIGHT;
|
|
88
|
+
const items = section.items.map(layoutItem);
|
|
89
|
+
const body = items.length === 0 ? ITEM_LINE_HEIGHT : items.reduce((sum, item) => sum + item.height, 0) + (items.length - 1) * ITEM_GAP;
|
|
90
|
+
return {
|
|
91
|
+
section,
|
|
92
|
+
headerLines,
|
|
93
|
+
headerHeight,
|
|
94
|
+
items,
|
|
95
|
+
height: headerHeight + 2 * PANEL_PADDING + body
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function itemColor(item, section, parsed, activeTagGroup) {
|
|
99
|
+
if (!activeTagGroup) return section.color;
|
|
100
|
+
const key = tagAttrKey(activeTagGroup);
|
|
101
|
+
const value = item.tags[key];
|
|
102
|
+
if (!value) return section.color;
|
|
103
|
+
const group = parsed.tagGroups.find((g) => tagAttrKey(g.name) === key);
|
|
104
|
+
const entry = group?.entries.find(
|
|
105
|
+
(e) => e.value.toLowerCase() === value.toLowerCase()
|
|
106
|
+
);
|
|
107
|
+
return entry?.color ?? section.color;
|
|
108
|
+
}
|
|
109
|
+
function renderSwot(container, parsed, palette, isDark, options) {
|
|
110
|
+
const activeTagGroup = options?.activeTagGroup ?? null;
|
|
111
|
+
const showAxes = parsed.options["no-axes"] !== "on";
|
|
112
|
+
const tintItems = parsed.options["no-tint-items"] !== "on";
|
|
113
|
+
const showTitle = !!parsed.title && parsed.options["no-title"] !== "on";
|
|
114
|
+
const showLegend = parsed.tagGroups.length > 0 && !legendSuppressed(parsed.options);
|
|
115
|
+
const axisBand = showAxes ? AXIS_BAND : 0;
|
|
116
|
+
const gridWidth = 2 * PANEL_WIDTH + PANEL_GAP;
|
|
117
|
+
const titleWidth = showTitle ? measureText(parsed.title, TITLE_FONT_SIZE, { bold: true }) : 0;
|
|
118
|
+
const width = Math.ceil(
|
|
119
|
+
2 * DIAGRAM_PADDING + Math.max(axisBand + gridWidth, titleWidth)
|
|
120
|
+
);
|
|
121
|
+
const legendX = DIAGRAM_PADDING + (showTitle ? titleWidth + 16 : 0);
|
|
122
|
+
const legendWidth = Math.max(
|
|
123
|
+
gridWidth / 2,
|
|
124
|
+
width - legendX - DIAGRAM_PADDING
|
|
125
|
+
);
|
|
126
|
+
const legendConfig = {
|
|
127
|
+
groups: parsed.tagGroups,
|
|
128
|
+
position: { placement: "top-center", titleRelation: "inline-with-title" },
|
|
129
|
+
mode: options?.exportMode ? "export" : "preview",
|
|
130
|
+
// Every other group as a pill beside the active capsule, so a click can
|
|
131
|
+
// switch to it — as family and c4 do. Export still shows only the active
|
|
132
|
+
// group (legend-layout drops the rest before consulting this).
|
|
133
|
+
showInactivePills: true
|
|
134
|
+
};
|
|
135
|
+
const legendHeight = showLegend ? getMaxLegendReservedHeight(legendConfig, legendWidth) : 0;
|
|
136
|
+
const legendY = DIAGRAM_PADDING + (TITLE_FONT_SIZE - legendHeight) / 2;
|
|
137
|
+
const headerBottom = Math.max(
|
|
138
|
+
showTitle || showLegend ? DIAGRAM_PADDING + TITLE_HEIGHT : DIAGRAM_PADDING,
|
|
139
|
+
showLegend ? legendY + legendHeight + LEGEND_GAP : 0
|
|
140
|
+
);
|
|
141
|
+
const gridTop = headerBottom + axisBand;
|
|
142
|
+
const gridLeft = DIAGRAM_PADDING + axisBand;
|
|
143
|
+
const panels = parsed.sections.map(layoutPanel);
|
|
144
|
+
const topHeight = Math.max(panels[0].height, panels[1].height);
|
|
145
|
+
const bottomHeight = Math.max(panels[2].height, panels[3].height);
|
|
146
|
+
const height = Math.ceil(
|
|
147
|
+
gridTop + topHeight + PANEL_GAP + bottomHeight + DIAGRAM_PADDING
|
|
148
|
+
);
|
|
149
|
+
container.innerHTML = "";
|
|
150
|
+
const svg = d3Selection.select(container).append("svg").attr("xmlns", "http://www.w3.org/2000/svg").attr("width", width).attr("height", height).attr("viewBox", `0 0 ${width} ${height}`).attr("preserveAspectRatio", "xMidYMin meet").attr("font-family", FONT_FAMILY).style("background", palette.bg);
|
|
151
|
+
const containerWidth = container.getBoundingClientRect().width;
|
|
152
|
+
if (containerWidth > 0 && containerWidth < width) {
|
|
153
|
+
svg.attr("width", "100%").attr("height", null);
|
|
154
|
+
}
|
|
155
|
+
if (showTitle) {
|
|
156
|
+
svg.append("text").attr("class", "chart-title").attr("data-line-number", parsed.titleLineNumber ?? 0).attr("x", DIAGRAM_PADDING).attr("y", DIAGRAM_PADDING + TITLE_FONT_SIZE).attr("font-size", TITLE_FONT_SIZE).attr("font-weight", TITLE_FONT_WEIGHT).attr("fill", palette.text).text(parsed.title);
|
|
157
|
+
}
|
|
158
|
+
if (showLegend) {
|
|
159
|
+
const legendG = svg.append("g").attr("class", "swot-legend").attr("transform", `translate(${legendX},${legendY})`);
|
|
160
|
+
renderIntegratedLegend(legendG, {
|
|
161
|
+
...legendConfig,
|
|
162
|
+
palette,
|
|
163
|
+
isDark,
|
|
164
|
+
width: legendWidth,
|
|
165
|
+
activeGroup: activeTagGroup
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
const columnX = [gridLeft, gridLeft + PANEL_WIDTH + PANEL_GAP];
|
|
169
|
+
const rowY = [gridTop, gridTop + topHeight + PANEL_GAP];
|
|
170
|
+
const rowHeight = [topHeight, bottomHeight];
|
|
171
|
+
const panelFill = isDark ? mix(palette.surface, palette.bg, 50) : mix(palette.surface, palette.bg, 30);
|
|
172
|
+
if (showAxes) {
|
|
173
|
+
const axes = svg.append("g").attr("class", "swot-axes");
|
|
174
|
+
const headerFill = mix(palette.textMuted, panelFill, 12);
|
|
175
|
+
const header = (x, y, w, h, label, rotate, key) => {
|
|
176
|
+
const cell = axes.append("g").attr("class", "swot-axis").attr("data-swot-axis", key);
|
|
177
|
+
cell.append("rect").attr("class", "swot-axis-header").attr("x", x).attr("y", y).attr("width", w).attr("height", h).attr("rx", AXIS_HEADER_RADIUS).attr("fill", headerFill);
|
|
178
|
+
const cx = x + w / 2;
|
|
179
|
+
const cy = y + h / 2;
|
|
180
|
+
const text = cell.append("text").attr("class", "swot-axis-label").attr("x", cx).attr("y", cy).attr("font-size", AXIS_FONT_SIZE).attr("font-weight", AXIS_FONT_WEIGHT).attr("letter-spacing", AXIS_LETTER_SPACING).attr("fill", palette.textMuted).attr("text-anchor", "middle").attr("dominant-baseline", "central").text(label.toUpperCase());
|
|
181
|
+
if (rotate) text.attr("transform", `rotate(-90 ${cx} ${cy})`);
|
|
182
|
+
};
|
|
183
|
+
for (const column of [0, 1]) {
|
|
184
|
+
header(
|
|
185
|
+
columnX[column],
|
|
186
|
+
gridTop - AXIS_BAND,
|
|
187
|
+
PANEL_WIDTH,
|
|
188
|
+
AXIS_HEADER_SIZE,
|
|
189
|
+
parsed.xLabels[column],
|
|
190
|
+
false,
|
|
191
|
+
`col-${column}`
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
for (const row of [0, 1]) {
|
|
195
|
+
header(
|
|
196
|
+
gridLeft - AXIS_BAND,
|
|
197
|
+
rowY[row],
|
|
198
|
+
AXIS_HEADER_SIZE,
|
|
199
|
+
rowHeight[row],
|
|
200
|
+
parsed.yLabels[row],
|
|
201
|
+
true,
|
|
202
|
+
`row-${row}`
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
panels.forEach((panel, index) => {
|
|
207
|
+
const section = panel.section;
|
|
208
|
+
const column = index % 2;
|
|
209
|
+
const row = index < 2 ? 0 : 1;
|
|
210
|
+
const x = columnX[column];
|
|
211
|
+
const y = rowY[row];
|
|
212
|
+
const g = svg.append("g").attr("class", "swot-panel").attr("data-section", section.key).attr("data-swot-col", column).attr("data-swot-row", row);
|
|
213
|
+
if (section.lineNumber > 0) {
|
|
214
|
+
g.attr("data-line-number", section.lineNumber);
|
|
215
|
+
}
|
|
216
|
+
g.append("rect").attr("x", x).attr("y", y).attr("width", PANEL_WIDTH).attr("height", rowHeight[row]).attr("rx", PANEL_RADIUS).attr("fill", panelFill);
|
|
217
|
+
const bandFill = mix(section.color, panelFill, HEADER_COLOR_PCT);
|
|
218
|
+
const r = PANEL_RADIUS;
|
|
219
|
+
const right = x + PANEL_WIDTH;
|
|
220
|
+
const bottom = y + panel.headerHeight;
|
|
221
|
+
g.append("path").attr("class", "swot-header").attr(
|
|
222
|
+
"d",
|
|
223
|
+
`M${x},${bottom}V${y + r}Q${x},${y} ${x + r},${y}H${right - r}Q${right},${y} ${right},${y + r}V${bottom}Z`
|
|
224
|
+
).attr("fill", bandFill);
|
|
225
|
+
const labelColor = contrastText(
|
|
226
|
+
bandFill,
|
|
227
|
+
palette.textOnFillLight,
|
|
228
|
+
palette.textOnFillDark
|
|
229
|
+
);
|
|
230
|
+
panel.headerLines.forEach((line, lineIndex) => {
|
|
231
|
+
g.append("text").attr("x", x + PANEL_PADDING).attr("y", y + HEADER_HEIGHT / 2 + lineIndex * HEADER_LINE_HEIGHT).attr("dominant-baseline", "central").attr("font-size", HEADER_FONT_SIZE).attr("font-weight", "bold").attr("fill", labelColor).text(line);
|
|
232
|
+
});
|
|
233
|
+
const dotX = x + PANEL_PADDING + DOT_RADIUS;
|
|
234
|
+
const textX = dotX + DOT_RADIUS + DOT_GAP;
|
|
235
|
+
let cursorY = y + panel.headerHeight + PANEL_PADDING;
|
|
236
|
+
if (panel.items.length === 0) {
|
|
237
|
+
g.append("text").attr("class", "swot-empty").attr("x", x + PANEL_PADDING).attr("y", cursorY + ITEM_LINE_HEIGHT / 2).attr("dominant-baseline", "central").attr("font-size", ITEM_FONT_SIZE).attr("font-style", "italic").attr("fill", palette.textMuted).text(EMPTY_TEXT);
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
for (const itemLayout of panel.items) {
|
|
241
|
+
const item = itemLayout.item;
|
|
242
|
+
const itemG = g.append("g").attr("class", "swot-item").attr("data-line-number", item.lineNumber);
|
|
243
|
+
if (activeTagGroup) {
|
|
244
|
+
const key = tagAttrKey(activeTagGroup);
|
|
245
|
+
const value = item.tags[key];
|
|
246
|
+
if (value) itemG.attr(`data-tag-${key}`, value.toLowerCase());
|
|
247
|
+
}
|
|
248
|
+
const fill = itemColor(item, section, parsed, activeTagGroup);
|
|
249
|
+
const tagged = !!activeTagGroup && !!item.tags[tagAttrKey(activeTagGroup)];
|
|
250
|
+
if (tagged && tintItems) {
|
|
251
|
+
itemG.append("rect").attr("class", "swot-item-tint").attr("x", x + TINT_INSET).attr("y", cursorY - TINT_PAD_Y).attr("width", PANEL_WIDTH - 2 * TINT_INSET).attr(
|
|
252
|
+
"height",
|
|
253
|
+
itemLayout.titleLines.length * ITEM_LINE_HEIGHT + itemLayout.detailLines.length * DETAIL_LINE_HEIGHT + 2 * TINT_PAD_Y
|
|
254
|
+
).attr("rx", TINT_RADIUS).attr("fill", mix(fill, panelFill, ROW_TINT_PCT));
|
|
255
|
+
}
|
|
256
|
+
itemG.append("circle").attr("cx", dotX).attr("cy", cursorY + ITEM_LINE_HEIGHT / 2).attr("r", DOT_RADIUS).attr("fill", fill);
|
|
257
|
+
for (const line of itemLayout.titleLines) {
|
|
258
|
+
itemG.append("text").attr("x", textX).attr("y", cursorY + ITEM_LINE_HEIGHT / 2).attr("dominant-baseline", "central").attr("font-size", ITEM_FONT_SIZE).attr("fill", palette.text).text(line);
|
|
259
|
+
cursorY += ITEM_LINE_HEIGHT;
|
|
260
|
+
}
|
|
261
|
+
for (const line of itemLayout.detailLines) {
|
|
262
|
+
itemG.append("text").attr("class", "swot-detail").attr("x", textX).attr("y", cursorY + DETAIL_LINE_HEIGHT / 2).attr("dominant-baseline", "central").attr("font-size", DETAIL_FONT_SIZE).attr("fill", palette.textMuted).text(line);
|
|
263
|
+
cursorY += DETAIL_LINE_HEIGHT;
|
|
264
|
+
}
|
|
265
|
+
cursorY += ITEM_GAP;
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export {
|
|
271
|
+
renderSwot
|
|
272
|
+
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
resolveNotes,
|
|
6
6
|
tryCollectNote
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4TK26YHH.js";
|
|
8
8
|
import {
|
|
9
9
|
displayName,
|
|
10
10
|
normalizeName
|
|
@@ -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
|
ER_REGISTRY,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
tryParseSharedOption,
|
|
33
33
|
warnUnknownMetaKeys,
|
|
34
34
|
withTagAliases
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RFGQDIOI.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveColorWithDiagnostic
|
|
38
38
|
} from "./chunk-3J7O3CU6.js";
|
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isBlockNode
|
|
3
3
|
} from "./chunk-XSVWUOUZ.js";
|
|
4
|
+
import {
|
|
5
|
+
renderCollapseBar
|
|
6
|
+
} from "./chunk-LRTSTDJ6.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();
|
|
@@ -428,6 +428,7 @@ var INTER_BOLD_W = {
|
|
|
428
428
|
var INTER_DEFAULT_W = 0.603;
|
|
429
429
|
|
|
430
430
|
// src/utils/script-metrics.ts
|
|
431
|
+
var ARABIC_W = 0.66;
|
|
431
432
|
var SCRIPT_W = [
|
|
432
433
|
// Greek and Greek Extended — Inter has these glyphs, but the generated
|
|
433
434
|
// table stops at Latin-1, so they arrive here.
|
|
@@ -437,11 +438,11 @@ var SCRIPT_W = [
|
|
|
437
438
|
[1024, 1327, 0.604],
|
|
438
439
|
[1424, 1535, 0.499],
|
|
439
440
|
// Hebrew
|
|
440
|
-
[1536, 1791,
|
|
441
|
+
[1536, 1791, ARABIC_W],
|
|
441
442
|
// Arabic
|
|
442
|
-
[1872, 1919,
|
|
443
|
+
[1872, 1919, ARABIC_W],
|
|
443
444
|
// Arabic Supplement
|
|
444
|
-
[2208, 2303,
|
|
445
|
+
[2208, 2303, ARABIC_W],
|
|
445
446
|
// Arabic Extended-A
|
|
446
447
|
[2304, 2431, 0.553],
|
|
447
448
|
// Devanagari
|
|
@@ -475,9 +476,9 @@ var SCRIPT_W = [
|
|
|
475
476
|
// Hangul syllables, and extended letters B
|
|
476
477
|
[63744, 64255, 1],
|
|
477
478
|
// CJK Compatibility Ideographs
|
|
478
|
-
[64336, 65023,
|
|
479
|
+
[64336, 65023, ARABIC_W],
|
|
479
480
|
// Arabic Presentation Forms-A
|
|
480
|
-
[65136, 65279,
|
|
481
|
+
[65136, 65279, ARABIC_W],
|
|
481
482
|
// Arabic Presentation Forms-B
|
|
482
483
|
// Full-width forms only. The half-width tail (U+FF61 onward) is half an em
|
|
483
484
|
// and is left to the default rather than given a wrong full-width ratio.
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
matchTagBlockHeading,
|
|
5
5
|
stripDefaultModifier,
|
|
6
6
|
tagAttrKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KW3CC7SB.js";
|
|
8
8
|
import {
|
|
9
9
|
FILL_FAMILY_TOKENS,
|
|
10
10
|
extractColor,
|
|
11
11
|
measureIndent,
|
|
12
12
|
parseFirstLine
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RFGQDIOI.js";
|
|
14
14
|
import {
|
|
15
15
|
emit
|
|
16
16
|
} from "./chunk-BYU54C3S.js";
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ScaleContext
|
|
3
3
|
} from "./chunk-24YPR5EH.js";
|
|
4
|
+
import {
|
|
5
|
+
renderCollapseBar
|
|
6
|
+
} from "./chunk-LRTSTDJ6.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;
|
|
@@ -55,8 +59,9 @@ function renderWireframe(container, parsed, layout, palette, isDark, _onClickIte
|
|
|
55
59
|
if (isExport) {
|
|
56
60
|
svg.attr("width", width).attr("height", height);
|
|
57
61
|
} else {
|
|
58
|
-
svg.attr("width", "100%").
|
|
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")) {
|