@diagrammo/dgmo 0.91.1 → 0.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.d.ts +13 -11
- package/dist/advanced.js +122 -121
- package/dist/{analyzer-7ZGAZIE6.js → analyzer-G7PGOT3V.js} +2 -2
- package/dist/block.d.ts +10 -3
- package/dist/block.js +66 -65
- package/dist/{calculator-3LZUWOBK.js → calculator-BNH3GSJE.js} +4 -4
- package/dist/{chart-meta-B_WTMP0y.d.ts → chart-meta-BBqLnv5q.d.ts} +4 -3
- package/dist/chart-meta.d.ts +3 -3
- package/dist/chart-meta.js +22 -22
- package/dist/{chart-types-V2NcgN5O.d.ts → chart-types-CbXlZFLd.d.ts} +3 -2
- package/dist/charts-d3-QUUDVETP.js +31 -0
- package/dist/{chunk-634LDSN6.js → chunk-26BBJUBW.js} +2 -2
- package/dist/{chunk-ZJ4PYTCK.js → chunk-2BJW7FSF.js} +2 -2
- package/dist/{chunk-3YTAOMMN.js → chunk-2WQ3YZMN.js} +2 -2
- package/dist/{chunk-XLPJJ35N.js → chunk-2YAFDND3.js} +4 -4
- package/dist/{chunk-HLVGZXM5.js → chunk-2ZW4NBYX.js} +1 -1
- package/dist/{chunk-VGSSAMLA.js → chunk-3GUEYQGL.js} +8 -5
- package/dist/{chunk-HWXUQCDY.js → chunk-3KVUFHUJ.js} +2 -2
- package/dist/{chunk-2A4OFZ2Z.js → chunk-3PFMGNOM.js} +12 -9
- package/dist/{chunk-KSZHIAI2.js → chunk-3Y63RFJL.js} +1 -1
- package/dist/{chunk-CNUN5GO6.js → chunk-42UJ23H3.js} +1 -1
- package/dist/{chunk-TPEYEOXA.js → chunk-45QUTYPD.js} +15 -13
- package/dist/{chunk-QKJ6MQXW.js → chunk-4SACN2C5.js} +2 -2
- package/dist/{chunk-D7PP35BA.js → chunk-4XYZJTFO.js} +2 -2
- package/dist/{chunk-5U6DXIMV.js → chunk-5EBYPETE.js} +2 -2
- package/dist/{chunk-K3BYD3WU.js → chunk-5KKZXA44.js} +3 -3
- package/dist/{chunk-UWJP4JSZ.js → chunk-5OTA2PUH.js} +2 -2
- package/dist/{chunk-CU2PZLZP.js → chunk-5SSTVFPX.js} +44 -9
- package/dist/{chunk-IWTUXGHN.js → chunk-62BP7AJU.js} +15 -13
- package/dist/{chunk-LKR4FACF.js → chunk-66JTY4AN.js} +2 -4
- package/dist/{chunk-AR4QVMWG.js → chunk-6BNNLVAR.js} +1 -1
- package/dist/{chunk-L24LESXF.js → chunk-6GXLAKUH.js} +1 -1
- package/dist/{chunk-XLAREWBK.js → chunk-6OIMUSDX.js} +9 -9
- package/dist/{chunk-RE27AX7O.js → chunk-6OSGENN5.js} +1 -1
- package/dist/{chunk-VMD2CYVP.js → chunk-6WVX4KNP.js} +44 -44
- package/dist/{chunk-IMHNZITR.js → chunk-6ZL2XYM7.js} +3 -3
- package/dist/{chunk-RMTOZALT.js → chunk-73EYNV4O.js} +3 -3
- package/dist/{chunk-4HG4PYHM.js → chunk-7ENDOHAA.js} +1 -1
- package/dist/{chunk-4YO7VJTP.js → chunk-7PJBJ2DU.js} +1 -1
- package/dist/{chunk-MI6SJJQU.js → chunk-A2A2I4Z4.js} +3 -3
- package/dist/{chunk-PSGSFRRE.js → chunk-A4PNWAUW.js} +3 -3
- package/dist/{chunk-7BBRSOKS.js → chunk-ADNIO3XY.js} +3 -3
- package/dist/{chunk-R7BSF7Z7.js → chunk-AQQUJEDN.js} +1 -1
- package/dist/{chunk-HYV6GSXM.js → chunk-AULZD45V.js} +2 -2
- package/dist/chunk-B5DHFFZP.js +15 -0
- package/dist/{chunk-ZB2Q67NO.js → chunk-B5PEKSRH.js} +2 -2
- package/dist/{chunk-EP7BT3HU.js → chunk-BEA4D7OS.js} +2 -2
- package/dist/{chunk-CVZBLHHW.js → chunk-BQMHJ6OW.js} +1 -1
- package/dist/{chunk-OYKNMFUY.js → chunk-BQO24BDM.js} +2 -2
- package/dist/{chunk-V3KHZQPK.js → chunk-BRGRIZQB.js} +2 -2
- package/dist/{chunk-IMKPFW67.js → chunk-BRSM6Z34.js} +10 -10
- package/dist/{chunk-PUZ63XZM.js → chunk-BZX7QCXJ.js} +21 -32
- package/dist/{chunk-37QQXKFV.js → chunk-CDM6XMOT.js} +3 -3
- package/dist/{chunk-53BJIOLF.js → chunk-CN4RDJDV.js} +3 -3
- package/dist/{chunk-OOCVGX4W.js → chunk-CYRB2JTN.js} +1 -1
- package/dist/{chunk-IHK3Y2HG.js → chunk-DEFBUZWV.js} +1 -1
- package/dist/{chunk-NTJ5HVV6.js → chunk-DGUGE67L.js} +3 -3
- package/dist/{chunk-3SLRZKLB.js → chunk-DRFGIOZ6.js} +4 -4
- package/dist/{chunk-EDPDAUBL.js → chunk-DUPZ2BBY.js} +17 -5
- package/dist/{chunk-HLE5QGZJ.js → chunk-EBIDNRSR.js} +2 -2
- package/dist/{chunk-N254IJM2.js → chunk-EBSFSOJC.js} +26 -10
- package/dist/{chunk-MKFQ5E7J.js → chunk-EBVVMUAA.js} +1 -1
- package/dist/{chunk-FJCYK4K3.js → chunk-F7326NVM.js} +9 -9
- package/dist/{chunk-F2436VRR.js → chunk-FSJ3ZA6N.js} +5 -5
- package/dist/{chunk-Q3N7PI3B.js → chunk-FTUMRSGT.js} +115 -10
- package/dist/{chunk-57L2JPP2.js → chunk-GE7ICBX6.js} +6 -6
- package/dist/{chunk-ROCBGUJN.js → chunk-GI5R5B3S.js} +2 -2
- package/dist/{chunk-D7DXNQW5.js → chunk-H5UEVW6Q.js} +16 -10
- package/dist/{chunk-HFG7KQOY.js → chunk-H6BT45SN.js} +2 -2
- package/dist/{chunk-BDXC7MDK.js → chunk-H7AXCRO7.js} +1 -1
- package/dist/{chunk-GCDW3WAY.js → chunk-HIWHIYLD.js} +20 -11
- package/dist/{chunk-JJUDOR4I.js → chunk-HXULJZA2.js} +1 -1
- package/dist/{chunk-MJKQ5ZYY.js → chunk-IGKFOHBG.js} +5 -5
- package/dist/{chunk-WTE27AJT.js → chunk-J2E7EUER.js} +19 -10
- package/dist/{chunk-J2SQNZ6D.js → chunk-J7Q4AB23.js} +6 -3
- package/dist/{chunk-NS7L7YKH.js → chunk-JILEYZ2V.js} +2 -4
- package/dist/{chunk-5MDQMB6A.js → chunk-JKST4RTT.js} +3 -3
- package/dist/{chunk-RVTYIGWZ.js → chunk-JLU52ZDT.js} +9 -9
- package/dist/{chunk-KATED53P.js → chunk-JRWUHLRP.js} +1 -1
- package/dist/{chunk-IUBCDNT2.js → chunk-JXGSTBW6.js} +3 -3
- package/dist/{chunk-2ZVLI6GQ.js → chunk-KBDMEOLI.js} +2 -2
- package/dist/{chunk-TLPY4ZBI.js → chunk-KTGZDMDX.js} +38 -17
- package/dist/{chunk-II4XJETG.js → chunk-L5NW3PVL.js} +1 -1
- package/dist/{chunk-JJQWCI35.js → chunk-LKZCUFOW.js} +3 -3
- package/dist/{chunk-HSGWR2FL.js → chunk-LMP6Y7QO.js} +13 -13
- package/dist/{chunk-27KA4VV6.js → chunk-LRP5FXST.js} +7 -7
- package/dist/{chunk-JA2S7PHR.js → chunk-MDVJYRJT.js} +12 -16
- package/dist/{chunk-SWBHH2UW.js → chunk-MX4SZLSV.js} +4 -14
- package/dist/{chunk-5DIBB2QG.js → chunk-MXAP37W6.js} +2 -2
- package/dist/{chunk-273GB7WK.js → chunk-NBAAIRFP.js} +1 -3
- package/dist/{chunk-QVKTAU7P.js → chunk-NMS5XSLX.js} +4 -4
- package/dist/{chunk-BQVTV4LB.js → chunk-NO3UX6AP.js} +2 -2
- package/dist/{chunk-RHXIUUWB.js → chunk-NREU4JFE.js} +4 -4
- package/dist/{chunk-CXIPV2FY.js → chunk-NVZ7R4EK.js} +8 -8
- package/dist/{chunk-TCX5PMEY.js → chunk-NXU4N5WT.js} +1 -1
- package/dist/{chunk-G22UV5AF.js → chunk-ONYO5WJW.js} +18 -15
- package/dist/{chunk-EWERNTOX.js → chunk-OQW4ETJX.js} +3 -6
- package/dist/{chunk-6QEXWMBP.js → chunk-PVWIBKV2.js} +4 -4
- package/dist/{chunk-YZG37S7L.js → chunk-Q2UFOKPB.js} +10 -10
- package/dist/{chunk-X6IZP2BD.js → chunk-Q6W2K33N.js} +4 -4
- package/dist/{chunk-WNTPJZU7.js → chunk-Q6ZQX2HX.js} +4 -4
- package/dist/{chunk-CPGKRI7H.js → chunk-QKY6W4NA.js} +17 -15
- package/dist/{chunk-2AM6VA3A.js → chunk-QUGC7GWB.js} +10 -10
- package/dist/{chunk-IS6WFBX7.js → chunk-R6EGUTIV.js} +3 -3
- package/dist/{chunk-CDT33RHG.js → chunk-RBFJT23E.js} +3 -3
- package/dist/{chunk-KA5CSR44.js → chunk-RJ2JW3FG.js} +244 -181
- package/dist/{chunk-G3EUQMV4.js → chunk-SOHZDW6N.js} +3 -3
- package/dist/{chunk-SPQVER4T.js → chunk-STFWGASB.js} +1 -1
- package/dist/{chunk-G2KHLANR.js → chunk-T7NWBVSC.js} +2 -2
- package/dist/{chunk-MPJQMMBZ.js → chunk-TIIZIAGS.js} +1 -1
- package/dist/{chunk-B6EUFLRP.js → chunk-TKAB3FTK.js} +11 -11
- package/dist/{chunk-SEKNYIMO.js → chunk-TOHTKLKE.js} +1 -1
- package/dist/{chunk-I6GGMCTV.js → chunk-UOCWYLYT.js} +1 -1
- package/dist/{chunk-6NO3MNBC.js → chunk-URQIWIKX.js} +3 -3
- package/dist/{chunk-I74AQRVD.js → chunk-V4D2ZQBE.js} +2 -2
- package/dist/{chunk-2UV627GG.js → chunk-VOR32OHN.js} +12 -12
- package/dist/{chunk-MNL547RV.js → chunk-WLLO3PZ3.js} +23 -9
- package/dist/{chunk-SKF7XLCM.js → chunk-WZBZXZ6T.js} +3 -6
- package/dist/{chunk-NWPMLX2V.js → chunk-X5BUX2GK.js} +79 -10
- package/dist/{chunk-XQTRGKQ3.js → chunk-XIUGSUE4.js} +2 -2
- package/dist/{chunk-SMTWQ66K.js → chunk-Y3SIQN4J.js} +2 -2
- package/dist/{chunk-5VPWIC6T.js → chunk-YITHYQCL.js} +9 -9
- package/dist/{chunk-5WRI5ZAA.js → chunk-YLJ4XMA6.js} +5 -1
- package/dist/{chunk-PZVTFQI2.js → chunk-YO6AQU4A.js} +7 -7
- package/dist/{chunk-5NU7NII2.js → chunk-Z6QFHH4D.js} +3 -1
- package/dist/{chunk-F26ZPBSF.js → chunk-ZECJ7Q6C.js} +2 -2
- package/dist/{chunk-M6J25PAZ.js → chunk-ZJAK6C7Y.js} +1 -1
- package/dist/{chunk-DLX7MEN4.js → chunk-ZKP77MB3.js} +4 -4
- package/dist/cloud-reference.d.ts +5 -3
- package/dist/cloud-reference.js +2 -2
- package/dist/{collapse-SLINJQW6.js → collapse-BSPH3BFM.js} +1 -1
- package/dist/{collapse-ZWUFFCK2.js → collapse-TCVK3RPO.js} +1 -1
- package/dist/{collapse-JRGPUE67.js → collapse-VNYYXMUI.js} +1 -1
- package/dist/completion-registry.d.ts +2 -1
- package/dist/completion-registry.js +5 -5
- package/dist/{compute-2XWFVO7K.js → compute-II4G44IK.js} +1 -1
- package/dist/{d3-2S3PrXik.d.ts → d3-BThYBTQk.d.ts} +3 -2
- package/dist/dgmo-router-4UAPPIKN.js +94 -0
- package/dist/dimensions-SCNVYLRF.js +21 -0
- package/dist/{flowchart-parser-BLJ6RA53.js → flowchart-parser-NA75YQ77.js} +5 -5
- package/dist/{flowchart-renderer-FXRQKXAK.js → flowchart-renderer-6MGGX4RC.js} +14 -14
- package/dist/highlight.d.ts +2 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.js +63 -63
- package/dist/{layout-ROAVGBUC.js → layout-2WESJYRE.js} +1 -1
- package/dist/{layout-RBLD5EGX.js → layout-5USEVQBY.js} +8 -5
- package/dist/{layout-YKGQRFDM.js → layout-BNLFQHSB.js} +5 -2
- package/dist/{layout-UPQGIT3N.js → layout-D4L44NRG.js} +1 -1
- package/dist/{layout-B7PQRAMB.js → layout-HF3PMI4H.js} +1 -1
- package/dist/{layout-VRJ5YFUE.js → layout-HFBK5UEG.js} +5 -5
- package/dist/{layout-RANVNAKI.js → layout-J3AGFZZ7.js} +1 -1
- package/dist/{layout-G42FDCF3.js → layout-JTIRCKAW.js} +7 -7
- package/dist/{layout-CCVCLZ6S.js → layout-KV27UW25.js} +2 -2
- package/dist/{layout-5HCEF7VO.js → layout-MBVBAMPA.js} +1 -1
- package/dist/layout-MXHR3P35.js +15 -0
- package/dist/layout-ND26WVX2.js +15 -0
- package/dist/{layout-CRUAP7JG.js → layout-RH3N46HP.js} +5 -5
- package/dist/{layout-JTNRSGOS.js → layout-S3RLVPH4.js} +8 -5
- package/dist/layout-WRG4APSJ.js +32 -0
- package/dist/{layout-search-L75YOBME.js → layout-search-PMYL3VWS.js} +8 -3
- package/dist/{legend-constants-HE7FVDJP.js → legend-constants-55MFBXYF.js} +4 -4
- package/dist/live-link-resolve.d.ts +2 -1
- package/dist/live-link-resolve.js +2 -2
- package/dist/{palettes-WQHELGVQ.js → palettes-IN7ZFRJM.js} +4 -4
- package/dist/{parser-YWZGIU3C.js → parser-2IKPQVKX.js} +6 -6
- package/dist/{parser-4QNRCGU5.js → parser-2NWH5JUS.js} +8 -8
- package/dist/parser-3LT3ZUUC.js +10 -0
- package/dist/{parser-6NSQLPTS.js → parser-3MK56JZC.js} +5 -5
- package/dist/parser-3QIFY5IN.js +10 -0
- package/dist/{parser-YVHO2NRM.js → parser-4TBSWULQ.js} +5 -5
- package/dist/parser-5LW5JDYG.js +12 -0
- package/dist/parser-5UZV32ZI.js +10 -0
- package/dist/{parser-XO5IAXMT.js → parser-6TDWUKM5.js} +5 -5
- package/dist/{parser-6LMB7BQQ.js → parser-BES6LV3G.js} +4 -4
- package/dist/{parser-H2DJEAPG.js → parser-BJ7RJNUM.js} +5 -5
- package/dist/parser-EAQPZX2B.js +13 -0
- package/dist/{parser-UEDPLM46.js → parser-EFF22GYO.js} +5 -5
- package/dist/{parser-QL4DEPVA.js → parser-FXDS4JDK.js} +5 -5
- package/dist/{parser-R6OETHWM.js → parser-GMQJISZ6.js} +5 -5
- package/dist/{parser-6X4GGH2R.js → parser-GX5YLRIP.js} +6 -6
- package/dist/parser-H5OODY5N.js +11 -0
- package/dist/parser-K2DI26SC.js +11 -0
- package/dist/parser-KKF6Y5MM.js +12 -0
- package/dist/parser-KLCSFQ3J.js +12 -0
- package/dist/{parser-MDSVVCJP.js → parser-L6RWDXQN.js} +6 -6
- package/dist/{parser-EYF4ZSZO.js → parser-LCJ76UXS.js} +5 -5
- package/dist/parser-LTRQASGB.js +11 -0
- package/dist/parser-PEZ7RN43.js +14 -0
- package/dist/{parser-ULSUK36C.js → parser-QYISOAGR.js} +6 -6
- package/dist/parser-RTWPFKXG.js +12 -0
- package/dist/{parser-Q3UAOLEZ.js → parser-SEUTXN6U.js} +5 -5
- package/dist/parser-SIKL4PLF.js +10 -0
- package/dist/parser-TUAEX6ML.js +12 -0
- package/dist/parser-VA7ZQQTA.js +10 -0
- package/dist/parser-X23GRTQJ.js +10 -0
- package/dist/{parser-AL6YL7KM.js → parser-XZUKNZPB.js} +4 -4
- package/dist/parser-YG625J5H.js +13 -0
- package/dist/{parser-UL6WN6W5.js → parser-YHDGKPZI.js} +5 -5
- package/dist/pert.d.ts +2 -1
- package/dist/renderer-2FVUPBGV.js +20 -0
- package/dist/{renderer-YDNWK6RI.js → renderer-36446HSH.js} +5 -5
- package/dist/{renderer-OPA4JJKX.js → renderer-3IHQI4A4.js} +12 -12
- package/dist/{renderer-43IVPARP.js → renderer-3JY6JAQJ.js} +9 -9
- package/dist/{renderer-SD4ZHHAR.js → renderer-3QAFDXEY.js} +11 -11
- package/dist/{renderer-7EAWN7MC.js → renderer-5TZVFQ7K.js} +11 -11
- package/dist/renderer-5VKPB4LL.js +28 -0
- package/dist/{renderer-B7B7BQM3.js → renderer-7ZZG5HR3.js} +12 -11
- package/dist/renderer-ALWVK3EJ.js +30 -0
- package/dist/{renderer-R7RK7FKI.js → renderer-DC7C5Q3G.js} +4 -4
- package/dist/renderer-ISSDGK54.js +22 -0
- package/dist/{renderer-IPDCAACY.js → renderer-J5FKF423.js} +6 -6
- package/dist/{renderer-SE7Z5AOL.js → renderer-J666LZXJ.js} +11 -11
- package/dist/{renderer-YDOWBIUB.js → renderer-J67LMOD5.js} +17 -17
- package/dist/{renderer-I2LYSQBV.js → renderer-JEJT3YET.js} +7 -7
- package/dist/{renderer-TWKEZ3DD.js → renderer-LM4ICK6I.js} +11 -11
- package/dist/{renderer-3N64GVNM.js → renderer-LQP3AGEJ.js} +5 -5
- package/dist/{renderer-7SEXPBGM.js → renderer-MM27BSBO.js} +9 -9
- package/dist/{renderer-U5PD72G7.js → renderer-NDA2FFYB.js} +10 -10
- package/dist/{renderer-YQPZ7O2C.js → renderer-NHTR7IRR.js} +4 -4
- package/dist/{renderer-VNZTWATB.js → renderer-NIE5IW24.js} +11 -11
- package/dist/{renderer-T2WUA7MC.js → renderer-O6DY46AV.js} +15 -15
- package/dist/{renderer-4MEZYGU6.js → renderer-OAR5VPH4.js} +6 -6
- package/dist/renderer-QGIHLZOJ.js +31 -0
- package/dist/{renderer-ZQ77CM6Y.js → renderer-RSK6QFWN.js} +12 -11
- package/dist/{renderer-S3NFBJCY.js → renderer-S3YCLJKL.js} +19 -19
- package/dist/renderer-TO2NVJP3.js +80 -0
- package/dist/{renderer-54GXA3UO.js → renderer-VPIELEE5.js} +12 -12
- package/dist/{renderer-R7OYCJEA.js → renderer-WIU5BJUK.js} +5 -5
- package/dist/{renderer-MRMFYYZT.js → renderer-XGG2UNXT.js} +5 -5
- package/dist/{renderer-QQNPJGAP.js → renderer-XO57LTU4.js} +10 -10
- package/dist/{renderer-RFP55AW7.js → renderer-ZGY7P4BM.js} +19 -19
- package/dist/{renderer-JUH6M3XF.js → renderer-ZHGHTSNG.js} +16 -16
- package/dist/{renderer-LWL3IJOF.js → renderer-ZZ6MWVB7.js} +10 -10
- package/dist/renderer-radial-WFUX3Z3C.js +20 -0
- package/dist/{resolver-6DJLZF6Y.js → resolver-33K6MBCT.js} +3 -3
- package/dist/{state-collapse-HCGD6IVJ.js → state-collapse-SE2G4K4I.js} +1 -1
- package/dist/{state-parser-NIIVOU2Y.js → state-parser-TIR2ORJY.js} +6 -6
- package/dist/{state-renderer-TVLEG32M.js → state-renderer-G6SUXU4J.js} +18 -18
- package/dist/{tag-groups-fgxWTyyB.d.ts → tag-groups-DsoVpAY-.d.ts} +2 -1
- package/dist/{themes-Cm2YBcT8.d.ts → themes-DRNjxX7Q.d.ts} +4 -3
- package/docs/language-reference.md +9 -3
- package/package.json +3 -3
- package/dist/charts-d3-KSA5UKVJ.js +0 -31
- package/dist/dgmo-router-YHBMKTXY.js +0 -94
- package/dist/dimensions-QMGWJQTR.js +0 -21
- package/dist/layout-6PLSBB5X.js +0 -15
- package/dist/layout-IV4H2FLB.js +0 -15
- package/dist/layout-T2DQ4M77.js +0 -26
- package/dist/parser-2XCDVLSN.js +0 -11
- package/dist/parser-3MGA2MTM.js +0 -10
- package/dist/parser-4AR25MAS.js +0 -10
- package/dist/parser-D6YRVV75.js +0 -12
- package/dist/parser-EY3VJWBE.js +0 -12
- package/dist/parser-FDXUQ5TI.js +0 -11
- package/dist/parser-ILWAA3QJ.js +0 -14
- package/dist/parser-KMFMNZYI.js +0 -11
- package/dist/parser-OFTMA36M.js +0 -10
- package/dist/parser-UY3K4ROB.js +0 -10
- package/dist/parser-UYQNNQKT.js +0 -13
- package/dist/parser-VG747VR6.js +0 -12
- package/dist/parser-VK4PNDX4.js +0 -12
- package/dist/parser-WSONWDFN.js +0 -10
- package/dist/parser-X5FQ36KJ.js +0 -13
- package/dist/parser-ZFLSULFC.js +0 -12
- package/dist/parser-ZR7JAKSW.js +0 -10
- package/dist/renderer-J2LOMTBC.js +0 -20
- package/dist/renderer-KY6O5JTX.js +0 -80
- package/dist/renderer-LHTDI5RV.js +0 -28
- package/dist/renderer-NCIDGJ2R.js +0 -30
- package/dist/renderer-QMNC7TGN.js +0 -22
- package/dist/renderer-VCTKBUTR.js +0 -30
- package/dist/renderer-radial-TNNEL3YN.js +0 -20
- /package/dist/{chunk-2M4IGSCY.js → chunk-3J7O3CU6.js} +0 -0
- /package/dist/{chunk-4QV26TEG.js → chunk-AXLF3KRE.js} +0 -0
- /package/dist/{chunk-EDXGEQW3.js → chunk-FOTH2WWP.js} +0 -0
- /package/dist/{chunk-DAOFNU6J.js → chunk-MKSTL6DR.js} +0 -0
- /package/dist/{chunk-ABP5BUD6.js → chunk-ZI6WC24V.js} +0 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
noteBoxSize
|
|
3
3
|
} from "./chunk-RJNZHFNG.js";
|
|
4
|
+
import {
|
|
5
|
+
noteConnectorPoints
|
|
6
|
+
} from "./chunk-JRWUHLRP.js";
|
|
4
7
|
import {
|
|
5
8
|
NOTE_GAP
|
|
6
9
|
} from "./chunk-5DH3KYFH.js";
|
|
@@ -21,7 +24,31 @@ import {
|
|
|
21
24
|
// src/utils/notes/place.ts
|
|
22
25
|
var NOTE_CLEAR = 14;
|
|
23
26
|
var intersects = (a, b, pad) => !(a.right + pad <= b.left || b.right + pad <= a.left || a.bottom + pad <= b.top || b.bottom + pad <= a.top);
|
|
24
|
-
|
|
27
|
+
var CONNECTOR_CLEAR = 4;
|
|
28
|
+
var EDGE_CLEAR = 6;
|
|
29
|
+
var SLIDE_STEP = 10;
|
|
30
|
+
var SEARCH_REACH = 480;
|
|
31
|
+
var segmentCrosses = (x1, y1, x2, y2, r) => {
|
|
32
|
+
const dx = x2 - x1;
|
|
33
|
+
const dy = y2 - y1;
|
|
34
|
+
const p = [-dx, dx, -dy, dy];
|
|
35
|
+
const q = [x1 - r.left, r.right - x1, y1 - r.top, r.bottom - y1];
|
|
36
|
+
let t0 = 0;
|
|
37
|
+
let t1 = 1;
|
|
38
|
+
for (let i = 0; i < 4; i++) {
|
|
39
|
+
const pi = p[i];
|
|
40
|
+
const qi = q[i];
|
|
41
|
+
if (pi === 0) {
|
|
42
|
+
if (qi <= 0) return false;
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
const t = qi / pi;
|
|
46
|
+
if (pi < 0) t0 = Math.max(t0, t);
|
|
47
|
+
else t1 = Math.min(t1, t);
|
|
48
|
+
}
|
|
49
|
+
return t0 < t1;
|
|
50
|
+
};
|
|
51
|
+
function placeNotes(obstacles, requests, direction, edges = []) {
|
|
25
52
|
const placements = /* @__PURE__ */ new Map();
|
|
26
53
|
const occupied = obstacles.map((p) => ({
|
|
27
54
|
left: p.x - p.width / 2,
|
|
@@ -72,15 +99,93 @@ function placeNotes(obstacles, requests, direction) {
|
|
|
72
99
|
}
|
|
73
100
|
}
|
|
74
101
|
};
|
|
75
|
-
const order = direction === "LR" ? ["below", "above"] : ["right", "left"];
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
102
|
+
const order = direction === "LR" ? ["below", "above", "right", "left"] : ["right", "left", "below", "above"];
|
|
103
|
+
const anchor = {
|
|
104
|
+
left: nodeLeft,
|
|
105
|
+
top: nodeTop,
|
|
106
|
+
right: nodeRight,
|
|
107
|
+
bottom: nodeBottom
|
|
108
|
+
};
|
|
109
|
+
const isAnchor = (o) => o.left === anchor.left && o.top === anchor.top && o.right === anchor.right && o.bottom === anchor.bottom;
|
|
110
|
+
const connector = (rect, side) => {
|
|
111
|
+
const [x1, y1, x2, y2] = noteConnectorPoints(p, {
|
|
112
|
+
x: rect.left - cx,
|
|
113
|
+
y: rect.top - cy,
|
|
114
|
+
width: noteW,
|
|
115
|
+
height: noteH,
|
|
116
|
+
side
|
|
117
|
+
});
|
|
118
|
+
return [cx + x1, cy + y1, cx + x2, cy + y2];
|
|
119
|
+
};
|
|
120
|
+
const onEdge = (rect) => {
|
|
121
|
+
const padded = {
|
|
122
|
+
left: rect.left - EDGE_CLEAR,
|
|
123
|
+
top: rect.top - EDGE_CLEAR,
|
|
124
|
+
right: rect.right + EDGE_CLEAR,
|
|
125
|
+
bottom: rect.bottom + EDGE_CLEAR
|
|
126
|
+
};
|
|
127
|
+
return edges.some(
|
|
128
|
+
(path) => path.some(
|
|
129
|
+
(pt, i) => i > 0 && segmentCrosses(path[i - 1].x, path[i - 1].y, pt.x, pt.y, padded)
|
|
130
|
+
)
|
|
131
|
+
);
|
|
132
|
+
};
|
|
133
|
+
const isClear = (rect, side, avoidEdges) => {
|
|
134
|
+
if (occupied.some((o) => intersects(rect, o, NOTE_CLEAR))) return false;
|
|
135
|
+
if (avoidEdges && onEdge(rect)) return false;
|
|
136
|
+
const [x1, y1, x2, y2] = connector(rect, side);
|
|
137
|
+
return !occupied.some(
|
|
138
|
+
(o) => !isAnchor(o) && segmentCrosses(x1, y1, x2, y2, {
|
|
139
|
+
left: o.left - CONNECTOR_CLEAR,
|
|
140
|
+
top: o.top - CONNECTOR_CLEAR,
|
|
141
|
+
right: o.right + CONNECTOR_CLEAR,
|
|
142
|
+
bottom: o.bottom + CONNECTOR_CLEAR
|
|
143
|
+
})
|
|
144
|
+
);
|
|
145
|
+
};
|
|
146
|
+
const search = (avoidEdges) => {
|
|
147
|
+
let chosen2 = null;
|
|
148
|
+
for (const side of order.slice(0, 2)) {
|
|
149
|
+
const rect = rectFor(side);
|
|
150
|
+
if (isClear(rect, side, avoidEdges)) {
|
|
151
|
+
chosen2 = { rect, side };
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
82
154
|
}
|
|
83
|
-
|
|
155
|
+
if (chosen2) return chosen2;
|
|
156
|
+
let bestLen = Infinity;
|
|
157
|
+
for (const side of order) {
|
|
158
|
+
const axisIsY = side === "above" || side === "below";
|
|
159
|
+
const outward = side === "below" || side === "right" ? 1 : -1;
|
|
160
|
+
const reach = axisIsY ? noteW / 2 : SEARCH_REACH;
|
|
161
|
+
const slides = [0];
|
|
162
|
+
for (let s = SLIDE_STEP; s <= reach; s += SLIDE_STEP) {
|
|
163
|
+
slides.push(s, -s);
|
|
164
|
+
}
|
|
165
|
+
const base = rectFor(side);
|
|
166
|
+
for (let out = 0; out <= SEARCH_REACH; out += NOTE_CLEAR) {
|
|
167
|
+
for (const slide of slides) {
|
|
168
|
+
const dx = axisIsY ? slide : out * outward;
|
|
169
|
+
const dy = axisIsY ? out * outward : slide;
|
|
170
|
+
const rect = {
|
|
171
|
+
left: base.left + dx,
|
|
172
|
+
top: base.top + dy,
|
|
173
|
+
right: base.right + dx,
|
|
174
|
+
bottom: base.bottom + dy
|
|
175
|
+
};
|
|
176
|
+
if (!isClear(rect, side, avoidEdges)) continue;
|
|
177
|
+
const [x1, y1, x2, y2] = connector(rect, side);
|
|
178
|
+
const len = Math.hypot(x2 - x1, y2 - y1);
|
|
179
|
+
if (len < bestLen) {
|
|
180
|
+
bestLen = len;
|
|
181
|
+
chosen2 = { rect, side };
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return chosen2;
|
|
187
|
+
};
|
|
188
|
+
let chosen = search(true) ?? search(false);
|
|
84
189
|
if (!chosen) {
|
|
85
190
|
const side = order[0];
|
|
86
191
|
let rect = rectFor(side);
|
|
@@ -277,7 +382,7 @@ function computeNodeSize(node, reserveValueRow) {
|
|
|
277
382
|
return { width: w, height: Math.max(NODE_HEIGHT, totalHeight) };
|
|
278
383
|
}
|
|
279
384
|
async function layoutBoxesAndLines(parsed, collapseInfo, layoutOptions) {
|
|
280
|
-
const { layoutBoxesAndLinesSearch } = await import("./layout-search-
|
|
385
|
+
const { layoutBoxesAndLinesSearch } = await import("./layout-search-PMYL3VWS.js");
|
|
281
386
|
const searchOpts = {
|
|
282
387
|
...layoutOptions?.hideDescriptions !== void 0 && {
|
|
283
388
|
hideDescriptions: layoutOptions.hideDescriptions
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
buildAdjacency,
|
|
3
3
|
featureBboxPrimary,
|
|
4
4
|
pointInGeometry
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AXLF3KRE.js";
|
|
6
6
|
import {
|
|
7
7
|
createLabelPlacement,
|
|
8
8
|
rectCircleOverlap,
|
|
@@ -12,27 +12,27 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
compactNumber,
|
|
14
14
|
computeLegendLayout
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JILEYZ2V.js";
|
|
16
16
|
import {
|
|
17
17
|
TITLE_FONT_SIZE,
|
|
18
18
|
TITLE_Y
|
|
19
19
|
} from "./chunk-VLC6WNRD.js";
|
|
20
20
|
import {
|
|
21
21
|
tagAttrKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4SACN2C5.js";
|
|
23
23
|
import {
|
|
24
24
|
measureLegendText
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UOCWYLYT.js";
|
|
26
26
|
import {
|
|
27
27
|
contrastRatio,
|
|
28
28
|
mix,
|
|
29
29
|
politicalTints,
|
|
30
30
|
relativeLuminance,
|
|
31
31
|
valueRampColor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6GXLAKUH.js";
|
|
33
33
|
import {
|
|
34
34
|
resolveColor
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-3J7O3CU6.js";
|
|
36
36
|
|
|
37
37
|
// src/map/legend-band.ts
|
|
38
38
|
var LEGEND_TOP_GAP = 8;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTagBlockHeading
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4SACN2C5.js";
|
|
4
4
|
import {
|
|
5
5
|
OPTION_NOCOLON_RE,
|
|
6
6
|
measureIndent,
|
|
7
7
|
parseFirstLine,
|
|
8
8
|
tryParseSharedOption
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TIIZIAGS.js";
|
|
10
10
|
import {
|
|
11
11
|
formatDgmoError,
|
|
12
12
|
makeDgmoError
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getFigure,
|
|
3
3
|
getPartGeom,
|
|
4
4
|
resolvePartKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H7AXCRO7.js";
|
|
6
6
|
import {
|
|
7
7
|
renderIntegratedLegend
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NMS5XSLX.js";
|
|
9
9
|
import {
|
|
10
10
|
FONT_FAMILY
|
|
11
11
|
} from "./chunk-ICLB27PZ.js";
|
|
@@ -13,19 +13,23 @@ import {
|
|
|
13
13
|
resolveActiveTagGroup,
|
|
14
14
|
resolveTagColor,
|
|
15
15
|
tagAttrKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4SACN2C5.js";
|
|
17
17
|
import {
|
|
18
18
|
getSeriesColors,
|
|
19
19
|
mix,
|
|
20
20
|
themeBaseBg
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6GXLAKUH.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveColor
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3J7O3CU6.js";
|
|
25
25
|
|
|
26
26
|
// src/body/renderer.ts
|
|
27
27
|
import * as d3Selection from "d3-selection";
|
|
28
28
|
var esc = (s) => s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
29
|
+
function partAttrs(line, emph, tagAttr) {
|
|
30
|
+
const tag = tagAttr && emph ? ` ${tagAttr}="${esc(emph)}"` : "";
|
|
31
|
+
return ` class="dgmo-body-part" data-line-number="${line}" data-emph-key="${esc(emph)}"${tag}`;
|
|
32
|
+
}
|
|
29
33
|
var TITLE_H = 60;
|
|
30
34
|
var LEGEND_SCALE = 2.4;
|
|
31
35
|
var LEGEND_BAND = 76;
|
|
@@ -52,7 +56,7 @@ function sideCenter(centers, side, view) {
|
|
|
52
56
|
(best, c) => wantScreenRight ? c.x > best.x ? c : best : c.x < best.x ? c : best
|
|
53
57
|
);
|
|
54
58
|
}
|
|
55
|
-
function renderFigureBody(fig, view, parts, partColor, emphKey, form, palette, isDark, fillMode, defs) {
|
|
59
|
+
function renderFigureBody(fig, view, parts, partColor, emphKey, tagAttr, form, palette, isDark, fillMode, defs) {
|
|
56
60
|
const [vx, vy, vw, vh] = fig.viewBox.split(" ").map(Number);
|
|
57
61
|
const muscleFill = mix(palette.bg, palette.border, 0.7);
|
|
58
62
|
const seam = palette.bg;
|
|
@@ -95,7 +99,7 @@ function renderFigureBody(fig, view, parts, partColor, emphKey, form, palette, i
|
|
|
95
99
|
const geom = getPartGeom(fig, key);
|
|
96
100
|
const color = partColor(part);
|
|
97
101
|
const emph = emphKey(part).toLowerCase();
|
|
98
|
-
const dataLine =
|
|
102
|
+
const dataLine = partAttrs(part.lineNumber, emph, tagAttr);
|
|
99
103
|
let paths = geom.paths;
|
|
100
104
|
if (part.side) {
|
|
101
105
|
const wantScreenRight = view === "front" ? part.side === "left" : part.side === "right";
|
|
@@ -135,7 +139,7 @@ function renderFigureBody(fig, view, parts, partColor, emphKey, form, palette, i
|
|
|
135
139
|
});
|
|
136
140
|
}
|
|
137
141
|
out += `<path d="${fig.outline}" fill="none" stroke="${outlineStroke}" stroke-width="2.5"/>`;
|
|
138
|
-
return { fig, body: out, anchors, vx, vy, vw, vh };
|
|
142
|
+
return { fig, body: out, anchors, vx, vy, vw, vh, tagAttr };
|
|
139
143
|
}
|
|
140
144
|
function nearestCenter(a, targetX) {
|
|
141
145
|
let best = a.centers[0] ?? { x: a.x, y: a.y };
|
|
@@ -170,7 +174,7 @@ function gutterLabels(r, palette) {
|
|
|
170
174
|
const ly = Math.max(tgt.y, prevY + minGap);
|
|
171
175
|
prevY = ly;
|
|
172
176
|
const note = a.part.notes.length ? a.part.notes[0] : "";
|
|
173
|
-
const dl =
|
|
177
|
+
const dl = partAttrs(a.part.lineNumber, a.emph, r.tagAttr);
|
|
174
178
|
labels += `<path${dl} d="M${sx} ${ly} L${tgt.x} ${tgt.y}" stroke="${a.color}" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke" fill="none" opacity="0.85"/><circle${dl} cx="${tgt.x}" cy="${tgt.y}" r="5.5" fill="${a.color}" stroke="${palette.bg}" stroke-width="2" vector-effect="non-scaling-stroke"/><text${dl} x="${gx}" y="${ly + (note ? -2 : 7)}" text-anchor="${anchorX}" font-size="${LABEL_FONT}" font-weight="bold" fill="${palette.text}">${esc(partLabel(a.part))}</text>`;
|
|
175
179
|
if (note) {
|
|
176
180
|
labels += `<text${dl} x="${gx}" y="${ly + 22}" text-anchor="${anchorX}" font-size="${NOTE_FONT}" fill="${palette.textMuted}">${esc(note)}</text>`;
|
|
@@ -190,6 +194,7 @@ function renderBody(container, parsed, palette, _isDark, _onClickItem, exportDim
|
|
|
190
194
|
);
|
|
191
195
|
const partColor = (part) => resolveTagColor(part.metadata, parsed.tagGroups, activeGroup) ?? accent;
|
|
192
196
|
const emphKey = (part) => activeGroup ? part.metadata[tagAttrKey(activeGroup)] ?? "" : "";
|
|
197
|
+
const tagAttr = activeGroup ? `data-tag-${tagAttrKey(activeGroup)}` : null;
|
|
193
198
|
const defs = [];
|
|
194
199
|
const rendered = parsed.options.views.map(
|
|
195
200
|
(view) => renderFigureBody(
|
|
@@ -198,6 +203,7 @@ function renderBody(container, parsed, palette, _isDark, _onClickItem, exportDim
|
|
|
198
203
|
parsed.parts,
|
|
199
204
|
partColor,
|
|
200
205
|
emphKey,
|
|
206
|
+
tagAttr,
|
|
201
207
|
parsed.options.form,
|
|
202
208
|
palette,
|
|
203
209
|
_isDark,
|
|
@@ -273,7 +279,7 @@ function renderBody(container, parsed, palette, _isDark, _onClickItem, exportDim
|
|
|
273
279
|
let labels = "";
|
|
274
280
|
const stub = 96;
|
|
275
281
|
for (const it of items) {
|
|
276
|
-
const dl =
|
|
282
|
+
const dl = partAttrs(it.line, it.emph, tagAttr);
|
|
277
283
|
if (it.left) {
|
|
278
284
|
labels += `<path${dl} d="M${(centerX - stub).toFixed(1)} ${it.y.toFixed(1)} L${it.left.x.toFixed(1)} ${it.left.y.toFixed(1)}" stroke="${it.color}" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke" fill="none" opacity="0.85"/><circle${dl} cx="${it.left.x.toFixed(1)}" cy="${it.left.y.toFixed(1)}" r="5.5" fill="${it.color}" stroke="${palette.bg}" stroke-width="2" vector-effect="non-scaling-stroke"/>`;
|
|
279
285
|
}
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
normalizeNumericToken,
|
|
14
14
|
parseFirstLine,
|
|
15
15
|
parseSeriesNames
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TIIZIAGS.js";
|
|
17
17
|
import {
|
|
18
18
|
RECOGNIZED_COLOR_NAMES,
|
|
19
19
|
resolveColorWithDiagnostic
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3J7O3CU6.js";
|
|
21
21
|
import {
|
|
22
22
|
NEGATIVE_VALUE_DX,
|
|
23
23
|
TITLE_DIRECTIVE_DX,
|
|
@@ -2365,7 +2365,7 @@ function resolvePartKey(figure, name) {
|
|
|
2365
2365
|
if (anat && has(anat)) return anat;
|
|
2366
2366
|
const al = ALIAS[n];
|
|
2367
2367
|
if (al) {
|
|
2368
|
-
for (const cand of
|
|
2368
|
+
for (const cand of typeof al === "string" ? [al] : al) {
|
|
2369
2369
|
if (has(cand)) return cand;
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeNodeText,
|
|
3
3
|
layoutMindmap
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BQMHJ6OW.js";
|
|
5
|
+
import {
|
|
6
|
+
FULL_TEXT_ATTR,
|
|
7
|
+
fullNodeText,
|
|
8
|
+
isCutShort
|
|
9
|
+
} from "./chunk-B5DHFFZP.js";
|
|
5
10
|
import {
|
|
6
11
|
renderInlineText
|
|
7
12
|
} from "./chunk-S7W75MIM.js";
|
|
@@ -10,7 +15,7 @@ import {
|
|
|
10
15
|
} from "./chunk-24YPR5EH.js";
|
|
11
16
|
import {
|
|
12
17
|
renderIntegratedLegend
|
|
13
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NMS5XSLX.js";
|
|
14
19
|
import {
|
|
15
20
|
CARD_RADIUS,
|
|
16
21
|
COLLAPSE_BAR_HEIGHT,
|
|
@@ -21,14 +26,14 @@ import {
|
|
|
21
26
|
import {
|
|
22
27
|
extractExportSvg,
|
|
23
28
|
runInExportContainer
|
|
24
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-TOHTKLKE.js";
|
|
25
30
|
import {
|
|
26
31
|
layoutInlineHeader
|
|
27
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-42UJ23H3.js";
|
|
28
33
|
import {
|
|
29
34
|
getLegendExtent,
|
|
30
35
|
getMaxLegendReservedHeight
|
|
31
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-JILEYZ2V.js";
|
|
32
37
|
import {
|
|
33
38
|
TITLE_FONT_SIZE,
|
|
34
39
|
TITLE_FONT_WEIGHT
|
|
@@ -38,25 +43,25 @@ import {
|
|
|
38
43
|
} from "./chunk-ICLB27PZ.js";
|
|
39
44
|
import {
|
|
40
45
|
parseMindmap
|
|
41
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XIUGSUE4.js";
|
|
42
47
|
import {
|
|
43
48
|
preprocessDescriptionLine
|
|
44
49
|
} from "./chunk-IYULMRBE.js";
|
|
45
50
|
import {
|
|
46
51
|
tagAttrKey
|
|
47
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-4SACN2C5.js";
|
|
48
53
|
import {
|
|
49
54
|
fillModeFromOptions,
|
|
50
55
|
legendInlineRequested,
|
|
51
56
|
legendSuppressed
|
|
52
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-TIIZIAGS.js";
|
|
53
58
|
import {
|
|
54
59
|
LEGEND_GROUP_GAP
|
|
55
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-UOCWYLYT.js";
|
|
56
61
|
import {
|
|
57
62
|
contrastText,
|
|
58
63
|
shapeFill
|
|
59
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-6GXLAKUH.js";
|
|
60
65
|
|
|
61
66
|
// src/mindmap/renderer.ts
|
|
62
67
|
import * as d3Selection from "d3-selection";
|
|
@@ -309,7 +314,7 @@ function renderMindmap(container, parsed, layout, palette, isDark, onClickItem,
|
|
|
309
314
|
const tagKey = tagAttrKey(activeTagGroup);
|
|
310
315
|
const metaValue = node.metadata[tagKey];
|
|
311
316
|
if (metaValue) {
|
|
312
|
-
nodeG.attr(`data-tag-${tagKey}`, metaValue.toLowerCase());
|
|
317
|
+
nodeG.attr(`data-tag-${tagAttrKey(tagKey)}`, metaValue.toLowerCase());
|
|
313
318
|
}
|
|
314
319
|
}
|
|
315
320
|
if (node.hasChildren) {
|
|
@@ -352,6 +357,10 @@ function renderMindmap(container, parsed, layout, palette, isDark, onClickItem,
|
|
|
352
357
|
if (labelLines.length > 1 || labelLines[0] !== node.label) {
|
|
353
358
|
nodeG.append("title").text(node.label);
|
|
354
359
|
}
|
|
360
|
+
const drawnDesc = showDesc ? node.description ?? [] : [];
|
|
361
|
+
if (isCutShort(labelLines, [node.label]) || isCutShort(descLines, drawnDesc.map(preprocessDescriptionLine))) {
|
|
362
|
+
nodeG.attr(FULL_TEXT_ATTR, fullNodeText(node.label, drawnDesc));
|
|
363
|
+
}
|
|
355
364
|
if (showDesc && descLines.length > 0) {
|
|
356
365
|
const separatorY = node.y + labelZoneH;
|
|
357
366
|
nodeG.append("line").attr("x1", node.x).attr("y1", separatorY).attr("x2", node.x + node.width).attr("y2", separatorY).attr("stroke", stroke).attr("stroke-opacity", 0.3).attr("stroke-width", 1);
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-24YPR5EH.js";
|
|
12
12
|
import {
|
|
13
13
|
renderIntegratedLegend
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NMS5XSLX.js";
|
|
15
15
|
import {
|
|
16
16
|
ARROWHEAD_HEIGHT,
|
|
17
17
|
ARROWHEAD_WIDTH,
|
|
@@ -29,11 +29,11 @@ import {
|
|
|
29
29
|
} from "./chunk-XCKNFFKM.js";
|
|
30
30
|
import {
|
|
31
31
|
layoutInlineHeader
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-42UJ23H3.js";
|
|
33
33
|
import {
|
|
34
34
|
getLegendExtent,
|
|
35
35
|
getMaxLegendReservedHeight
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-JILEYZ2V.js";
|
|
37
37
|
import {
|
|
38
38
|
TITLE_FONT_SIZE,
|
|
39
39
|
TITLE_FONT_WEIGHT,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
resolveGroupTagColor,
|
|
49
49
|
resolveTagColor,
|
|
50
50
|
tagAttrKey
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-4SACN2C5.js";
|
|
52
52
|
import {
|
|
53
53
|
fitWrapped,
|
|
54
54
|
measureText
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
mix,
|
|
61
61
|
shapeFill,
|
|
62
62
|
themeBaseBg
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-6GXLAKUH.js";
|
|
64
64
|
|
|
65
65
|
// src/sketch/renderer.ts
|
|
66
66
|
import * as d3 from "d3-selection";
|
|
@@ -4,6 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
layoutInfra
|
|
6
6
|
} from "./chunk-5P2L5QXE.js";
|
|
7
|
+
import {
|
|
8
|
+
FULL_TEXT_ATTR,
|
|
9
|
+
fullNodeText
|
|
10
|
+
} from "./chunk-B5DHFFZP.js";
|
|
7
11
|
import {
|
|
8
12
|
appendArrowheadMarkers
|
|
9
13
|
} from "./chunk-XBJJP2HN.js";
|
|
@@ -15,7 +19,7 @@ import {
|
|
|
15
19
|
} from "./chunk-24YPR5EH.js";
|
|
16
20
|
import {
|
|
17
21
|
renderIntegratedLegend
|
|
18
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NMS5XSLX.js";
|
|
19
23
|
import {
|
|
20
24
|
ARROWHEAD_HEIGHT,
|
|
21
25
|
ARROWHEAD_WIDTH,
|
|
@@ -28,11 +32,11 @@ import {
|
|
|
28
32
|
} from "./chunk-XCKNFFKM.js";
|
|
29
33
|
import {
|
|
30
34
|
layoutInlineHeader
|
|
31
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-42UJ23H3.js";
|
|
32
36
|
import {
|
|
33
37
|
getLegendExtent,
|
|
34
38
|
getMaxLegendReservedHeight
|
|
35
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-JILEYZ2V.js";
|
|
36
40
|
import {
|
|
37
41
|
TITLE_FONT_SIZE,
|
|
38
42
|
TITLE_FONT_WEIGHT,
|
|
@@ -44,17 +48,17 @@ import {
|
|
|
44
48
|
} from "./chunk-ICLB27PZ.js";
|
|
45
49
|
import {
|
|
46
50
|
parseInfra
|
|
47
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-SOHZDW6N.js";
|
|
48
52
|
import {
|
|
49
53
|
preprocessDescriptionLine
|
|
50
54
|
} from "./chunk-IYULMRBE.js";
|
|
51
55
|
import {
|
|
52
56
|
tagAttrKey
|
|
53
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-4SACN2C5.js";
|
|
54
58
|
import {
|
|
55
59
|
legendInlineRequested,
|
|
56
60
|
legendSuppressed
|
|
57
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-TIIZIAGS.js";
|
|
58
62
|
import {
|
|
59
63
|
LEGEND_CAPSULE_PAD,
|
|
60
64
|
LEGEND_DOT_R,
|
|
@@ -65,7 +69,7 @@ import {
|
|
|
65
69
|
LEGEND_PILL_FONT_SIZE,
|
|
66
70
|
LEGEND_PILL_PAD,
|
|
67
71
|
measureLegendText
|
|
68
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-UOCWYLYT.js";
|
|
69
73
|
import {
|
|
70
74
|
CHAR_WIDTH_RATIO,
|
|
71
75
|
measureText,
|
|
@@ -77,10 +81,10 @@ import {
|
|
|
77
81
|
groupStroke,
|
|
78
82
|
mix,
|
|
79
83
|
shapeFill
|
|
80
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-6GXLAKUH.js";
|
|
81
85
|
import {
|
|
82
86
|
resolveColor
|
|
83
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-3J7O3CU6.js";
|
|
84
88
|
|
|
85
89
|
// src/infra/renderer.ts
|
|
86
90
|
import * as d3Selection from "d3-selection";
|
|
@@ -1073,6 +1077,7 @@ function renderNodes(svg, nodes, palette, isDark, animate, expandedNodeIds, acti
|
|
|
1073
1077
|
const expanded = expandedNodeIds?.has(node.id) ?? false;
|
|
1074
1078
|
const descLines = expanded && node.description && !node.isEdge ? node.description : [];
|
|
1075
1079
|
const descH = descLines.length * META_LINE_HEIGHT;
|
|
1080
|
+
let descCut = false;
|
|
1076
1081
|
for (let di = 0; di < descLines.length; di++) {
|
|
1077
1082
|
const rawLine = descLines[di];
|
|
1078
1083
|
const processed = preprocessDescriptionLine(rawLine);
|
|
@@ -1083,8 +1088,12 @@ function renderNodes(svg, nodes, palette, isDark, animate, expandedNodeIds, acti
|
|
|
1083
1088
|
y + NODE_HEADER_HEIGHT + di * META_LINE_HEIGHT + META_LINE_HEIGHT / 2 + sc.sMetaFontSize * 0.35
|
|
1084
1089
|
).attr("text-anchor", "middle").attr("font-family", FONT_FAMILY).attr("font-size", sc.sMetaFontSize).attr("fill", textFill);
|
|
1085
1090
|
renderInlineText(textEl, descTruncated, palette, sc.sMetaFontSize);
|
|
1086
|
-
if (isTruncated)
|
|
1091
|
+
if (isTruncated) {
|
|
1092
|
+
textEl.append("title").text(rawLine);
|
|
1093
|
+
descCut = true;
|
|
1094
|
+
}
|
|
1087
1095
|
}
|
|
1096
|
+
if (descCut) g.attr(FULL_TEXT_ATTR, fullNodeText(node.label, descLines));
|
|
1088
1097
|
const displayProps = !node.isEdge && expanded ? getDisplayProps(node, expanded, diagramOptions) : [];
|
|
1089
1098
|
const computedRows = getComputedRows(node, expanded, slo);
|
|
1090
1099
|
const hasContent = displayProps.length > 0 || computedRows.length > 0 || node.computedRps > 0;
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
matchTagBlockHeading,
|
|
5
5
|
stripDefaultModifier,
|
|
6
6
|
tagAttrKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4SACN2C5.js";
|
|
8
8
|
import {
|
|
9
9
|
FILL_FAMILY_TOKENS,
|
|
10
10
|
extractColor,
|
|
11
11
|
measureIndent,
|
|
12
12
|
parseFirstLine
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TIIZIAGS.js";
|
|
14
14
|
import {
|
|
15
15
|
emit
|
|
16
16
|
} from "./chunk-BYU54C3S.js";
|
|
@@ -86,7 +86,10 @@ lane L
|
|
|
86
86
|
severity: "error",
|
|
87
87
|
chartType: "swimlane",
|
|
88
88
|
title: "Unsupported construct",
|
|
89
|
-
message: (p) =>
|
|
89
|
+
message: (p) => {
|
|
90
|
+
const reason = p.reason;
|
|
91
|
+
return typeof reason === "string" && reason ? reason : "inclusive gateway (<o \u2026>) is not supported";
|
|
92
|
+
},
|
|
90
93
|
hint: "Remove it, or use a supported shape, event, or flow.",
|
|
91
94
|
example: `swimlane T
|
|
92
95
|
lane L
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
LEGEND_TOGGLE_DOT_R,
|
|
14
14
|
measureLegendText,
|
|
15
15
|
truncateLegendText
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UOCWYLYT.js";
|
|
17
17
|
|
|
18
18
|
// src/utils/number-format.ts
|
|
19
19
|
function compactNumber(n) {
|
|
@@ -500,9 +500,7 @@ function layoutRows(activeCapsule, pills, controls, groupAvailW, containerWidth,
|
|
|
500
500
|
}
|
|
501
501
|
if (controlsGroup) {
|
|
502
502
|
const row0Items = rows[0]?.items ?? [];
|
|
503
|
-
const groupItemsInRow0 = row0Items.filter(
|
|
504
|
-
(it) => "groupName" in it
|
|
505
|
-
);
|
|
503
|
+
const groupItemsInRow0 = row0Items.filter((it) => "groupName" in it);
|
|
506
504
|
if (groupItemsInRow0.length > 0) {
|
|
507
505
|
const last = groupItemsInRow0[groupItemsInRow0.length - 1];
|
|
508
506
|
controlsGroup.x = last.x + last.width + LEGEND_GROUP_GAP;
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-ICLB27PZ.js";
|
|
18
18
|
import {
|
|
19
19
|
fillModeFromOptions
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TIIZIAGS.js";
|
|
21
21
|
import {
|
|
22
22
|
CHAR_WIDTH_RATIO,
|
|
23
23
|
measureText
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
contrastText,
|
|
27
27
|
getSeriesColors,
|
|
28
28
|
shapeFill
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6GXLAKUH.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveColor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3J7O3CU6.js";
|
|
33
33
|
|
|
34
34
|
// src/pyramid/renderer.ts
|
|
35
35
|
import * as d3Selection from "d3-selection";
|