@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,25 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutOrg
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
renderCollapseBar,
|
|
6
|
-
renderNodeCard
|
|
7
|
-
} from "./chunk-R2K5L4UA.js";
|
|
3
|
+
} from "./chunk-ZTKO2RD4.js";
|
|
8
4
|
import {
|
|
9
5
|
extractExportSvg,
|
|
10
6
|
runInExportContainer
|
|
11
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Q5Q5JLRT.js";
|
|
12
8
|
import {
|
|
13
9
|
ScaleContext
|
|
14
10
|
} from "./chunk-24YPR5EH.js";
|
|
11
|
+
import {
|
|
12
|
+
renderCollapseBar,
|
|
13
|
+
renderNodeCard
|
|
14
|
+
} from "./chunk-LRTSTDJ6.js";
|
|
15
15
|
import {
|
|
16
16
|
TITLE_FONT_SIZE,
|
|
17
17
|
TITLE_FONT_WEIGHT
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GULGSH2Z.js";
|
|
19
19
|
import {
|
|
20
20
|
CARD_RADIUS,
|
|
21
|
-
COLLAPSE_BAR_HEIGHT,
|
|
22
|
-
COLLAPSE_BAR_INSET,
|
|
23
21
|
CONTAINER_HEADER_HEIGHT,
|
|
24
22
|
CONTAINER_LABEL_FONT_SIZE,
|
|
25
23
|
CONTAINER_META_FONT_SIZE,
|
|
@@ -32,36 +30,36 @@ import {
|
|
|
32
30
|
META_LINE_HEIGHT,
|
|
33
31
|
NODE_STROKE_WIDTH,
|
|
34
32
|
SEPARATOR_GAP
|
|
35
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-WH6E6SHC.js";
|
|
36
34
|
import {
|
|
37
35
|
renderIntegratedLegend
|
|
38
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-DFEVFLEG.js";
|
|
39
37
|
import {
|
|
40
38
|
getMaxLegendReservedHeight
|
|
41
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-VVL2KKG4.js";
|
|
42
40
|
import {
|
|
43
41
|
parseOrg
|
|
44
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-YCIBBVI2.js";
|
|
45
43
|
import {
|
|
46
44
|
FONT_FAMILY
|
|
47
45
|
} from "./chunk-ICLB27PZ.js";
|
|
48
46
|
import {
|
|
49
47
|
resolveTagColor,
|
|
50
48
|
tagAttrKey
|
|
51
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-KW3CC7SB.js";
|
|
52
50
|
import {
|
|
53
51
|
fillModeFromOptions
|
|
54
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-RFGQDIOI.js";
|
|
55
53
|
import {
|
|
56
54
|
EYE_CLOSED_PATH,
|
|
57
55
|
EYE_OPEN_PATH,
|
|
58
56
|
LEGEND_EYE_GAP,
|
|
59
57
|
LEGEND_EYE_SIZE,
|
|
60
58
|
LEGEND_HEIGHT
|
|
61
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-OZXKW5NA.js";
|
|
62
60
|
import {
|
|
63
61
|
measureText
|
|
64
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-PU5X3P3T.js";
|
|
65
63
|
import {
|
|
66
64
|
contrastText,
|
|
67
65
|
groupFill,
|
|
@@ -119,8 +117,6 @@ function renderOrg(container, parsed, layout, palette, isDark, onClickItem, expo
|
|
|
119
117
|
const sContainerMetaFontSize = ctx.text(CONTAINER_META_FONT_SIZE);
|
|
120
118
|
const sContainerMetaLineHeight = ctx.structural(CONTAINER_META_LINE_HEIGHT);
|
|
121
119
|
const sContainerHeaderHeight = ctx.structural(CONTAINER_HEADER_HEIGHT);
|
|
122
|
-
const sCollapseBarHeight = ctx.structural(COLLAPSE_BAR_HEIGHT);
|
|
123
|
-
const sCollapseBarInset = ctx.structural(COLLAPSE_BAR_INSET);
|
|
124
120
|
const sAncestorDotR = ctx.structural(ANCESTOR_DOT_R);
|
|
125
121
|
const sAncestorLabelFontSize = ctx.text(ANCESTOR_LABEL_FONT_SIZE);
|
|
126
122
|
const sAncestorRowHeight = ctx.structural(ANCESTOR_ROW_HEIGHT);
|
|
@@ -236,16 +232,16 @@ function renderOrg(container, parsed, layout, palette, isDark, onClickItem, expo
|
|
|
236
232
|
cG.append("text").attr("x", valueX).attr("y", rowY).attr("fill", palette.text).attr("font-size", sContainerMetaFontSize).text(value);
|
|
237
233
|
}
|
|
238
234
|
}
|
|
239
|
-
if (
|
|
235
|
+
if (c.hasChildren) {
|
|
240
236
|
renderCollapseBar(cG, {
|
|
237
|
+
expanded: !c.hiddenCount,
|
|
241
238
|
width: c.width,
|
|
242
239
|
height: c.height,
|
|
243
|
-
barHeight: sCollapseBarHeight,
|
|
244
|
-
inset: sCollapseBarInset,
|
|
245
240
|
rx: sContainerRadius,
|
|
246
241
|
fill: containerStroke(palette, colorOff ? void 0 : c.color),
|
|
247
242
|
clipId: `clip-${c.nodeId}`,
|
|
248
|
-
|
|
243
|
+
prefix: "org",
|
|
244
|
+
scale: ctx
|
|
249
245
|
});
|
|
250
246
|
}
|
|
251
247
|
if (!exportDims && c.hasChildren && !rootNodeIds.has(c.nodeId)) {
|
|
@@ -333,16 +329,16 @@ function renderOrg(container, parsed, layout, palette, isDark, onClickItem, expo
|
|
|
333
329
|
}
|
|
334
330
|
}
|
|
335
331
|
});
|
|
336
|
-
if (
|
|
332
|
+
if (node.hasChildren) {
|
|
337
333
|
renderCollapseBar(nodeG, {
|
|
334
|
+
expanded: !node.hiddenCount,
|
|
338
335
|
width: node.width,
|
|
339
336
|
height: node.height,
|
|
340
|
-
barHeight: sCollapseBarHeight,
|
|
341
|
-
inset: sCollapseBarInset,
|
|
342
337
|
rx: sCardRadius,
|
|
343
338
|
fill: fillMode === "solid" ? labelColor : nodeStroke(palette, colorOff ? void 0 : node.color),
|
|
344
339
|
clipId: `clip-${node.id}`,
|
|
345
|
-
|
|
340
|
+
prefix: "org",
|
|
341
|
+
scale: ctx
|
|
346
342
|
});
|
|
347
343
|
}
|
|
348
344
|
if (!exportDims && node.hasChildren && !rootNodeIds.has(node.id)) {
|
|
@@ -3,7 +3,7 @@ var NODE_STROKE_WIDTH = 1.5;
|
|
|
3
3
|
var EDGE_STROKE_WIDTH = 1.5;
|
|
4
4
|
var CARD_RADIUS = 6;
|
|
5
5
|
var CONTAINER_RADIUS = 8;
|
|
6
|
-
var
|
|
6
|
+
var COLLAPSE_BAR_HEIGHT = 4;
|
|
7
7
|
var EDGE_LABEL_KNOCKOUT_OPACITY = 0.9;
|
|
8
8
|
var EDGE_LABEL_UNRESOLVED_KNOCKOUT_OPACITY = 1;
|
|
9
9
|
var ARROWHEAD_WIDTH = 10;
|
|
@@ -19,7 +19,6 @@ var LABEL_FONT_SIZE = 13;
|
|
|
19
19
|
var META_FONT_SIZE = 11;
|
|
20
20
|
var META_LINE_HEIGHT = 16;
|
|
21
21
|
var SEPARATOR_GAP = 6;
|
|
22
|
-
var COLLAPSE_BAR_HEIGHT = 6;
|
|
23
22
|
var CONTAINER_HEADER_HEIGHT = 28;
|
|
24
23
|
var CONTAINER_LABEL_FONT_SIZE = 13;
|
|
25
24
|
var CONTAINER_META_FONT_SIZE = 11;
|
|
@@ -30,7 +29,7 @@ export {
|
|
|
30
29
|
EDGE_STROKE_WIDTH,
|
|
31
30
|
CARD_RADIUS,
|
|
32
31
|
CONTAINER_RADIUS,
|
|
33
|
-
|
|
32
|
+
COLLAPSE_BAR_HEIGHT,
|
|
34
33
|
EDGE_LABEL_KNOCKOUT_OPACITY,
|
|
35
34
|
EDGE_LABEL_UNRESOLVED_KNOCKOUT_OPACITY,
|
|
36
35
|
ARROWHEAD_WIDTH,
|
|
@@ -44,7 +43,6 @@ export {
|
|
|
44
43
|
META_FONT_SIZE,
|
|
45
44
|
META_LINE_HEIGHT,
|
|
46
45
|
SEPARATOR_GAP,
|
|
47
|
-
COLLAPSE_BAR_HEIGHT,
|
|
48
46
|
CONTAINER_HEADER_HEIGHT,
|
|
49
47
|
CONTAINER_LABEL_FONT_SIZE,
|
|
50
48
|
CONTAINER_META_FONT_SIZE,
|
|
@@ -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
|
|
@@ -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";
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computeQuadrantPointLabels,
|
|
3
|
+
rectCircleOverlap,
|
|
4
|
+
rectsOverlap
|
|
5
|
+
} from "./chunk-YSDSFXQD.js";
|
|
1
6
|
import {
|
|
2
7
|
getExtendedChartLegendGroups,
|
|
3
8
|
getSimpleChartLegendGroups,
|
|
4
9
|
parseChart,
|
|
5
10
|
parseExtendedChart
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
computeQuadrantPointLabels,
|
|
9
|
-
rectCircleOverlap,
|
|
10
|
-
rectsOverlap
|
|
11
|
-
} from "./chunk-KMU65FYM.js";
|
|
11
|
+
} from "./chunk-WPYJAHRP.js";
|
|
12
12
|
import {
|
|
13
13
|
MIN_CANVAS_WIDTH
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K7RRXZHS.js";
|
|
15
15
|
import {
|
|
16
16
|
EXPORT_HEIGHT,
|
|
17
17
|
EXPORT_WIDTH,
|
|
18
18
|
createExportContainer,
|
|
19
|
+
drawnTitleExtraHeight,
|
|
19
20
|
finalizeSvgExport,
|
|
20
21
|
initD3Chart,
|
|
21
22
|
renderChartTitle,
|
|
22
23
|
resolveExportPalette
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YIHRLY55.js";
|
|
24
25
|
import {
|
|
25
26
|
EMPHASIS_DIM_OPACITY,
|
|
26
27
|
EMPHASIS_DIM_TEXT_OPACITY,
|
|
@@ -28,33 +29,33 @@ import {
|
|
|
28
29
|
} from "./chunk-2CW5ZTNH.js";
|
|
29
30
|
import {
|
|
30
31
|
layoutInlineHeader
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-REKLKGR6.js";
|
|
32
33
|
import {
|
|
33
34
|
TITLE_FONT_SIZE,
|
|
34
35
|
TITLE_FONT_WEIGHT,
|
|
35
36
|
TITLE_OFFSET,
|
|
36
37
|
TITLE_Y
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-GULGSH2Z.js";
|
|
38
39
|
import {
|
|
39
40
|
computeLegendLayout
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-VVL2KKG4.js";
|
|
41
42
|
import {
|
|
42
43
|
FONT_FAMILY
|
|
43
44
|
} from "./chunk-ICLB27PZ.js";
|
|
44
45
|
import {
|
|
45
46
|
tagAttrKey
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-KW3CC7SB.js";
|
|
47
48
|
import {
|
|
48
49
|
LEGEND_DOT_R,
|
|
49
50
|
LEGEND_ENTRY_FONT_SIZE,
|
|
50
51
|
LEGEND_HEIGHT,
|
|
51
52
|
LEGEND_PILL_FONT_SIZE,
|
|
52
53
|
legendChromeColors
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-OZXKW5NA.js";
|
|
54
55
|
import {
|
|
55
56
|
measureText,
|
|
56
57
|
truncateText
|
|
57
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-PU5X3P3T.js";
|
|
58
59
|
import {
|
|
59
60
|
contrastText,
|
|
60
61
|
getSegmentColors,
|
|
@@ -321,10 +322,12 @@ function injectLegendGroups(svg, groups, palette, isDark, hasTitle, width, inlin
|
|
|
321
322
|
inlineTitle.title,
|
|
322
323
|
inlineTitle.titleLineNumber,
|
|
323
324
|
width,
|
|
324
|
-
inlineTitle.textColor
|
|
325
|
+
inlineTitle.textColor,
|
|
326
|
+
void 0,
|
|
327
|
+
2
|
|
325
328
|
);
|
|
326
329
|
}
|
|
327
|
-
const titleH = hasTitle ? 40 : 0;
|
|
330
|
+
const titleH = hasTitle ? 40 + drawnTitleExtraHeight(svg) : 0;
|
|
328
331
|
if (groups.length === 0) return hasTitle ? titleH + 12 : 24;
|
|
329
332
|
const legendY = 8 + titleH;
|
|
330
333
|
const { svg: legendSvg, height: legendH } = renderLegendSvg(groups, {
|
|
@@ -376,6 +379,8 @@ var LABEL_ROTATE_DEG = 40;
|
|
|
376
379
|
var NEVER_THIN_MAX = 12;
|
|
377
380
|
var LABEL_GAP = 8;
|
|
378
381
|
var LABEL_LINE_HEIGHT = 1.25;
|
|
382
|
+
var ROTATED_LABEL_PAD = 12;
|
|
383
|
+
var MIN_CAPPED_LABEL_W = 40;
|
|
379
384
|
function spreadIndices(total, count) {
|
|
380
385
|
if (total <= 0) return /* @__PURE__ */ new Set();
|
|
381
386
|
if (total === 1 || count <= 1) return /* @__PURE__ */ new Set([0]);
|
|
@@ -416,7 +421,7 @@ function planCategoryLabels(labels, slot, font = TICK_FONT) {
|
|
|
416
421
|
return {
|
|
417
422
|
rotate: true,
|
|
418
423
|
stride,
|
|
419
|
-
height: Math.round(widest * Math.sin(rad)) +
|
|
424
|
+
height: Math.round(widest * Math.sin(rad)) + ROTATED_LABEL_PAD,
|
|
420
425
|
keep: all(stride)
|
|
421
426
|
};
|
|
422
427
|
}
|
|
@@ -425,29 +430,41 @@ function rotatedLeftReach(first, plan, font) {
|
|
|
425
430
|
const rad = LABEL_ROTATE_DEG * Math.PI / 180;
|
|
426
431
|
return measureText(first, font) * Math.cos(rad) + font * 0.8 * Math.sin(rad);
|
|
427
432
|
}
|
|
428
|
-
function planLabelsFitLeft(labels, mLeft0, plotWFor, slotFor, firstOffset, font = TICK_FONT) {
|
|
433
|
+
function planLabelsFitLeft(labels, mLeft0, plotWFor, slotFor, firstOffset, font = TICK_FONT, maxHeight = Infinity) {
|
|
429
434
|
const EDGE = 4;
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
435
|
+
const settle = (shown) => {
|
|
436
|
+
let mLeft = mLeft0;
|
|
437
|
+
let plotW = plotWFor(mLeft);
|
|
438
|
+
let plan = planCategoryLabels(shown, slotFor(plotW), font);
|
|
439
|
+
for (let i = 0; i < 6; i++) {
|
|
440
|
+
const reach = rotatedLeftReach(shown[0], plan, font);
|
|
441
|
+
const need = Math.ceil(reach + EDGE - firstOffset(plotW));
|
|
442
|
+
const next = Math.max(mLeft0, need);
|
|
443
|
+
if (next === mLeft) break;
|
|
444
|
+
mLeft = next;
|
|
445
|
+
plotW = plotWFor(mLeft);
|
|
446
|
+
plan = planCategoryLabels(shown, slotFor(plotW), font);
|
|
447
|
+
}
|
|
448
|
+
return { mLeft, plotW, plan, shown };
|
|
449
|
+
};
|
|
450
|
+
const fit = settle(labels);
|
|
451
|
+
if (!fit.plan.rotate || fit.plan.height <= maxHeight) return fit;
|
|
452
|
+
const rad = LABEL_ROTATE_DEG * Math.PI / 180;
|
|
453
|
+
const maxW = Math.max(
|
|
454
|
+
MIN_CAPPED_LABEL_W,
|
|
455
|
+
Math.floor((maxHeight - ROTATED_LABEL_PAD) / Math.sin(rad))
|
|
456
|
+
);
|
|
457
|
+
return settle(labels.map((t) => truncateText(t, font, maxW)));
|
|
443
458
|
}
|
|
444
459
|
function labelSurvives(plan, i) {
|
|
445
460
|
return plan.keep.has(i);
|
|
446
461
|
}
|
|
447
|
-
function drawCategoryLabels(svg, labels, plan, xFor, baseline, textColor, font = TICK_FONT) {
|
|
462
|
+
function drawCategoryLabels(svg, labels, plan, xFor, baseline, textColor, font = TICK_FONT, full = labels) {
|
|
448
463
|
labels.forEach((label, i) => {
|
|
449
464
|
if (!labelSurvives(plan, i)) return;
|
|
450
465
|
const t = svg.append("text").attr("class", "dgmo-tick").attr("fill", textColor).attr("font-size", font).attr("font-family", FONT_FAMILY).text(label);
|
|
466
|
+
const whole = full[i];
|
|
467
|
+
if (whole !== void 0 && whole !== label) t.append("title").text(whole);
|
|
451
468
|
if (plan.rotate) {
|
|
452
469
|
t.attr(
|
|
453
470
|
"transform",
|
|
@@ -462,6 +479,8 @@ function drawCategoryLabels(svg, labels, plan, xFor, baseline, textColor, font =
|
|
|
462
479
|
// src/charts-d3/bar.ts
|
|
463
480
|
import { scaleBand, scaleLinear } from "d3-scale";
|
|
464
481
|
import { max as d3max, min as d3min } from "d3-array";
|
|
482
|
+
var LABEL_REGION_SHARE = 0.35;
|
|
483
|
+
var PLOT_MIN_SHARE = 0.6;
|
|
465
484
|
function seriesValues(pt, seriesCount) {
|
|
466
485
|
const out = [pt.value];
|
|
467
486
|
for (let s = 1; s < seriesCount; s++) out.push(pt.extraValues?.[s - 1] ?? 0);
|
|
@@ -507,24 +526,38 @@ function renderBar(svg, chart, width, height, colors, palette, isDark, textColor
|
|
|
507
526
|
const hiVal = Math.max(0, maxVal);
|
|
508
527
|
const loVal = Math.min(0, minVal);
|
|
509
528
|
const niceMax = hiVal === 0 && loVal === 0 ? 1 : hiVal;
|
|
510
|
-
const leftLabels = horizontal ? data.map((d) => d.label) : [fmtNum(niceMax), fmtNum(niceMax / 2), fmtNum(loVal), fmtNum(loVal / 2)];
|
|
511
|
-
const mLeft0 = computeLeftMargin(chart.ylabel, leftLabels);
|
|
512
529
|
const catLabels = data.map((d) => d.label);
|
|
530
|
+
const sideShown = horizontal ? catLabels.map(
|
|
531
|
+
(t) => truncateText(t, TICK_FONT, width * LABEL_REGION_SHARE)
|
|
532
|
+
) : catLabels;
|
|
533
|
+
const leftLabels = horizontal ? sideShown : [fmtNum(niceMax), fmtNum(niceMax / 2), fmtNum(loVal), fmtNum(loVal / 2)];
|
|
534
|
+
const mLeft0 = computeLeftMargin(chart.ylabel, leftLabels);
|
|
535
|
+
const mTop = top + 8;
|
|
536
|
+
const xTitleBand = chart.xlabel ? 40 : 18;
|
|
537
|
+
const labelCap = Math.floor(
|
|
538
|
+
Math.min(
|
|
539
|
+
height * LABEL_REGION_SHARE,
|
|
540
|
+
height * (1 - PLOT_MIN_SHARE) - mTop - xTitleBand
|
|
541
|
+
)
|
|
542
|
+
);
|
|
513
543
|
const fit = horizontal ? null : planLabelsFitLeft(
|
|
514
544
|
catLabels,
|
|
515
545
|
mLeft0,
|
|
516
546
|
(ml) => width - ml - 32,
|
|
517
547
|
(pw) => data.length === 0 ? Infinity : pw / data.length,
|
|
518
548
|
// scaleBand padding 0.3: first centre sits 0.65 steps in
|
|
519
|
-
(pw) => pw / (data.length + 0.3) * 0.65
|
|
549
|
+
(pw) => pw / (data.length + 0.3) * 0.65,
|
|
550
|
+
TICK_FONT,
|
|
551
|
+
labelCap
|
|
520
552
|
);
|
|
521
553
|
const mLeft = fit ? fit.mLeft : mLeft0;
|
|
522
554
|
const plotW = fit ? fit.plotW : width - mLeft - 32;
|
|
523
555
|
const labelPlan = fit?.plan ?? planCategoryLabels(catLabels, Infinity);
|
|
556
|
+
const shown = fit?.shown ?? sideShown;
|
|
524
557
|
const m = {
|
|
525
|
-
top:
|
|
558
|
+
top: mTop,
|
|
526
559
|
right: 32,
|
|
527
|
-
bottom: horizontal ? 64 : Math.max(64, labelPlan.height +
|
|
560
|
+
bottom: horizontal ? 64 : Math.max(64, labelPlan.height + xTitleBand),
|
|
528
561
|
left: mLeft
|
|
529
562
|
};
|
|
530
563
|
const plotH = height - m.top - m.bottom;
|
|
@@ -545,18 +578,21 @@ function renderBar(svg, chart, width, height, colors, palette, isDark, textColor
|
|
|
545
578
|
}
|
|
546
579
|
}
|
|
547
580
|
if (horiz) {
|
|
548
|
-
|
|
581
|
+
data.forEach((d, i) => {
|
|
549
582
|
const c = (cat(d.label) ?? 0) + cat.bandwidth() / 2;
|
|
550
|
-
svg.append("text").attr("x", m.left - 10).attr("y", c + 4).attr("text-anchor", "end").attr("fill", textColor).attr("font-size", TICK_FONT).attr("font-family", FONT_FAMILY).text(
|
|
551
|
-
|
|
583
|
+
const t = svg.append("text").attr("x", m.left - 10).attr("y", c + 4).attr("text-anchor", "end").attr("fill", textColor).attr("font-size", TICK_FONT).attr("font-family", FONT_FAMILY).text(shown[i]);
|
|
584
|
+
if (shown[i] !== d.label) t.append("title").text(d.label);
|
|
585
|
+
});
|
|
552
586
|
} else {
|
|
553
587
|
drawCategoryLabels(
|
|
554
588
|
svg,
|
|
555
|
-
|
|
589
|
+
shown,
|
|
556
590
|
labelPlan,
|
|
557
591
|
(i) => (cat(data[i].label) ?? 0) + cat.bandwidth() / 2,
|
|
558
592
|
m.top + plotH,
|
|
559
|
-
textColor
|
|
593
|
+
textColor,
|
|
594
|
+
TICK_FONT,
|
|
595
|
+
catLabels
|
|
560
596
|
);
|
|
561
597
|
}
|
|
562
598
|
const zero = val(0);
|
|
@@ -2229,8 +2265,15 @@ function renderInto(s, content, palette, isDark, width, height, textColor, muted
|
|
|
2229
2265
|
if (std && !std.error && std.data.length > 0 && STANDARD.has(std.type)) {
|
|
2230
2266
|
const hasTitle2 = !std.noTitle && !!std.title;
|
|
2231
2267
|
const inlineTitle2 = inlineTitleFor(std, hasTitle2, textColor);
|
|
2232
|
-
|
|
2233
|
-
|
|
2268
|
+
const titleExtra2 = hasTitle2 && !inlineTitle2 ? renderChartTitle(
|
|
2269
|
+
s,
|
|
2270
|
+
std.title,
|
|
2271
|
+
std.titleLineNumber,
|
|
2272
|
+
width,
|
|
2273
|
+
textColor,
|
|
2274
|
+
void 0,
|
|
2275
|
+
2
|
|
2276
|
+
) : 0;
|
|
2234
2277
|
switch (std.type) {
|
|
2235
2278
|
case "bar":
|
|
2236
2279
|
renderBar(
|
|
@@ -2272,7 +2315,7 @@ function renderInto(s, content, palette, isDark, width, height, textColor, muted
|
|
|
2272
2315
|
palette,
|
|
2273
2316
|
isDark,
|
|
2274
2317
|
textColor,
|
|
2275
|
-
hasTitle2 ? 52 : 24
|
|
2318
|
+
(hasTitle2 ? 52 : 24) + titleExtra2
|
|
2276
2319
|
);
|
|
2277
2320
|
return true;
|
|
2278
2321
|
case "radar": {
|
|
@@ -2309,7 +2352,7 @@ function renderInto(s, content, palette, isDark, width, height, textColor, muted
|
|
|
2309
2352
|
palette,
|
|
2310
2353
|
isDark,
|
|
2311
2354
|
textColor,
|
|
2312
|
-
hasTitle2 ? 52 : 24
|
|
2355
|
+
(hasTitle2 ? 52 : 24) + titleExtra2
|
|
2313
2356
|
);
|
|
2314
2357
|
return true;
|
|
2315
2358
|
}
|
|
@@ -2319,8 +2362,15 @@ function renderInto(s, content, palette, isDark, width, height, textColor, muted
|
|
|
2319
2362
|
const seriesColors = getSeriesColors(palette);
|
|
2320
2363
|
const hasTitle = !ext.noTitle && !!ext.title;
|
|
2321
2364
|
const inlineTitle = inlineTitleFor(ext, hasTitle, textColor);
|
|
2322
|
-
|
|
2323
|
-
|
|
2365
|
+
const titleExtra = hasTitle && !inlineTitle ? renderChartTitle(
|
|
2366
|
+
s,
|
|
2367
|
+
ext.title,
|
|
2368
|
+
ext.titleLineNumber,
|
|
2369
|
+
width,
|
|
2370
|
+
textColor,
|
|
2371
|
+
void 0,
|
|
2372
|
+
2
|
|
2373
|
+
) : 0;
|
|
2324
2374
|
switch (ext.type) {
|
|
2325
2375
|
case "funnel":
|
|
2326
2376
|
renderFunnel(
|
|
@@ -2331,7 +2381,7 @@ function renderInto(s, content, palette, isDark, width, height, textColor, muted
|
|
|
2331
2381
|
seriesColors,
|
|
2332
2382
|
palette,
|
|
2333
2383
|
isDark,
|
|
2334
|
-
hasTitle ? 52 : 24
|
|
2384
|
+
(hasTitle ? 52 : 24) + titleExtra
|
|
2335
2385
|
);
|
|
2336
2386
|
return true;
|
|
2337
2387
|
case "heatmap":
|
|
@@ -2344,7 +2394,7 @@ function renderInto(s, content, palette, isDark, width, height, textColor, muted
|
|
|
2344
2394
|
isDark,
|
|
2345
2395
|
textColor,
|
|
2346
2396
|
bgColor,
|
|
2347
|
-
hasTitle ? 52 : 24
|
|
2397
|
+
(hasTitle ? 52 : 24) + titleExtra
|
|
2348
2398
|
);
|
|
2349
2399
|
return true;
|
|
2350
2400
|
case "scatter": {
|
|
@@ -2381,7 +2431,7 @@ function renderInto(s, content, palette, isDark, width, height, textColor, muted
|
|
|
2381
2431
|
seriesColors,
|
|
2382
2432
|
bgColor,
|
|
2383
2433
|
textColor,
|
|
2384
|
-
hasTitle ? 52 : 24
|
|
2434
|
+
(hasTitle ? 52 : 24) + titleExtra
|
|
2385
2435
|
);
|
|
2386
2436
|
return true;
|
|
2387
2437
|
case "chord":
|
|
@@ -2394,7 +2444,7 @@ function renderInto(s, content, palette, isDark, width, height, textColor, muted
|
|
|
2394
2444
|
palette,
|
|
2395
2445
|
isDark,
|
|
2396
2446
|
textColor,
|
|
2397
|
-
hasTitle ? 52 : 24
|
|
2447
|
+
(hasTitle ? 52 : 24) + titleExtra
|
|
2398
2448
|
);
|
|
2399
2449
|
return true;
|
|
2400
2450
|
case "function": {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
looksLikeSitemap
|
|
3
|
+
} from "./chunk-KMB754DO.js";
|
|
4
|
+
import {
|
|
5
|
+
looksLikePert
|
|
6
|
+
} from "./chunk-CUTEHGXO.js";
|
|
1
7
|
import {
|
|
2
8
|
isLiveLinkLine
|
|
3
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-65JFUANT.js";
|
|
4
10
|
import {
|
|
5
11
|
looksLikeSequence
|
|
6
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ROH4LYBL.js";
|
|
7
13
|
import {
|
|
8
14
|
looksLikeOrg
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
looksLikeSitemap
|
|
12
|
-
} from "./chunk-ZECJ7Q6C.js";
|
|
15
|
+
} from "./chunk-YCIBBVI2.js";
|
|
13
16
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
17
|
+
looksLikeState
|
|
18
|
+
} from "./chunk-WXGFB2O2.js";
|
|
16
19
|
import {
|
|
17
20
|
looksLikeFlowchart
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
looksLikeState
|
|
21
|
-
} from "./chunk-LJGE43SG.js";
|
|
21
|
+
} from "./chunk-IAM3IDL4.js";
|
|
22
22
|
import {
|
|
23
23
|
looksLikeERDiagram
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PSNRB75I.js";
|
|
25
25
|
import {
|
|
26
26
|
looksLikeClassDiagram
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-H7DZYHQF.js";
|
|
28
28
|
import {
|
|
29
29
|
parseFirstLine
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-RFGQDIOI.js";
|
|
31
31
|
|
|
32
32
|
// src/chart-type-detect.ts
|
|
33
33
|
var GANTT_DURATION_RE = /^\d+(?:\.\d+)?(?:min|bd|sp|d|w|m|q|y|h)(?:\?)?\s+/;
|
|
@@ -7,25 +7,25 @@ import {
|
|
|
7
7
|
mutedFill,
|
|
8
8
|
resolveCellColor,
|
|
9
9
|
resolveColorMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5TGZBHEJ.js";
|
|
11
11
|
import {
|
|
12
12
|
renderIntegratedLegend
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DFEVFLEG.js";
|
|
14
14
|
import {
|
|
15
15
|
getMaxLegendReservedHeight
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VVL2KKG4.js";
|
|
17
17
|
import {
|
|
18
18
|
FONT_FAMILY
|
|
19
19
|
} from "./chunk-ICLB27PZ.js";
|
|
20
20
|
import {
|
|
21
21
|
tagAttrKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KW3CC7SB.js";
|
|
23
23
|
import {
|
|
24
24
|
LEGEND_GROUP_GAP
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OZXKW5NA.js";
|
|
26
26
|
import {
|
|
27
27
|
measureText
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PU5X3P3T.js";
|
|
29
29
|
import {
|
|
30
30
|
contrastRatio,
|
|
31
31
|
contrastText,
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
rectCircleOverlap,
|
|
9
9
|
rectsOverlap,
|
|
10
10
|
segmentRectOverlap
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YSDSFXQD.js";
|
|
12
12
|
import {
|
|
13
13
|
TITLE_FONT_SIZE,
|
|
14
14
|
TITLE_Y
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GULGSH2Z.js";
|
|
16
16
|
import {
|
|
17
17
|
compactNumber,
|
|
18
18
|
computeLegendLayout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VVL2KKG4.js";
|
|
20
20
|
import {
|
|
21
21
|
tagAttrKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KW3CC7SB.js";
|
|
23
23
|
import {
|
|
24
24
|
measureLegendText
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OZXKW5NA.js";
|
|
26
26
|
import {
|
|
27
27
|
contrastRatio,
|
|
28
28
|
mix,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
tagAttrKey,
|
|
12
12
|
validateTagGroupNames,
|
|
13
13
|
validateTagValues
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KW3CC7SB.js";
|
|
15
15
|
import {
|
|
16
16
|
AliasRegistry,
|
|
17
17
|
OPTION_NOCOLON_RE,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
splitNameAndMeta,
|
|
24
24
|
warnUnknownMetaKeys,
|
|
25
25
|
withTagAliases
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RFGQDIOI.js";
|
|
27
27
|
import {
|
|
28
28
|
formatDgmoError,
|
|
29
29
|
makeDgmoError,
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
TITLE_FONT_SIZE,
|
|
3
3
|
TITLE_FONT_WEIGHT,
|
|
4
4
|
TITLE_Y
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GULGSH2Z.js";
|
|
6
6
|
import {
|
|
7
7
|
EDGE_DASH,
|
|
8
8
|
HAIRLINE_DASH
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WH6E6SHC.js";
|
|
10
10
|
import {
|
|
11
11
|
FONT_FAMILY
|
|
12
12
|
} from "./chunk-ICLB27PZ.js";
|