@diagrammo/dgmo 0.91.1 → 0.92.1
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 +21 -12
- package/dist/advanced.js +123 -122
- package/dist/{analyzer-7ZGAZIE6.js → analyzer-G7PGOT3V.js} +2 -2
- package/dist/block.d.ts +10 -3
- package/dist/block.js +67 -66
- 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-HSGWR2FL.js → chunk-4QLGGQNO.js} +55 -23
- 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-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-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-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-FJCYK4K3.js → chunk-O5WUZGPV.js} +50 -17
- 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-IWTUXGHN.js → chunk-QQPNCXAO.js} +15 -13
- 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-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-YRYKTYMQ.js → chunk-VSOZZYLK.js} +106 -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-KA5CSR44.js → chunk-Y2V5AEVG.js} +244 -181
- 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 +64 -64
- 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-DVNMCYHZ.js +40 -0
- 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-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-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-RUSFL7WU.js +27 -0
- 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/gallery/fixtures/map-undirected-edges.dgmo +5 -5
- package/package.json +5 -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-VNZTWATB.js +0 -27
- package/dist/renderer-YDOWBIUB.js +0 -40
- 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
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-24YPR5EH.js";
|
|
10
10
|
import {
|
|
11
11
|
renderIntegratedLegend
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NMS5XSLX.js";
|
|
13
13
|
import {
|
|
14
14
|
ARROWHEAD_HEIGHT,
|
|
15
15
|
ARROWHEAD_WIDTH,
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
} from "./chunk-XCKNFFKM.js";
|
|
32
32
|
import {
|
|
33
33
|
layoutInlineHeader
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-42UJ23H3.js";
|
|
35
35
|
import {
|
|
36
36
|
serializeSvg
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CYRB2JTN.js";
|
|
38
38
|
import {
|
|
39
39
|
getLegendExtent,
|
|
40
40
|
getMaxLegendReservedHeight
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-JILEYZ2V.js";
|
|
42
42
|
import {
|
|
43
43
|
TITLE_FONT_SIZE,
|
|
44
44
|
TITLE_FONT_WEIGHT
|
|
@@ -51,12 +51,12 @@ import {
|
|
|
51
51
|
} from "./chunk-IYULMRBE.js";
|
|
52
52
|
import {
|
|
53
53
|
tagAttrKey
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-4SACN2C5.js";
|
|
55
55
|
import {
|
|
56
56
|
fillModeFromOptions,
|
|
57
57
|
legendInlineRequested,
|
|
58
58
|
legendSuppressed
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-TIIZIAGS.js";
|
|
60
60
|
import {
|
|
61
61
|
EYE_CLOSED_PATH,
|
|
62
62
|
EYE_OPEN_PATH,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
LEGEND_EYE_SIZE,
|
|
65
65
|
LEGEND_GROUP_GAP,
|
|
66
66
|
LEGEND_HEIGHT
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-UOCWYLYT.js";
|
|
68
68
|
import {
|
|
69
69
|
measureText
|
|
70
70
|
} from "./chunk-KAO7JL4I.js";
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
mix,
|
|
74
74
|
shapeFill,
|
|
75
75
|
themeBaseBg
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-6GXLAKUH.js";
|
|
77
77
|
|
|
78
78
|
// src/sitemap/renderer.ts
|
|
79
79
|
import * as d3Selection from "d3-selection";
|
|
@@ -243,7 +243,8 @@ function renderSitemap(container, parsed, layout, palette, isDark, onClickItem,
|
|
|
243
243
|
if (activeTagGroup) {
|
|
244
244
|
const tagKey = tagAttrKey(activeTagGroup);
|
|
245
245
|
const tagVal = c.tagMetadata[tagKey];
|
|
246
|
-
if (tagVal)
|
|
246
|
+
if (tagVal)
|
|
247
|
+
cG.attr(`data-tag-${tagAttrKey(tagKey)}`, tagVal.toLowerCase());
|
|
247
248
|
}
|
|
248
249
|
const fill = containerFill(palette, isDark, c.color);
|
|
249
250
|
const stroke = containerStroke(palette, c.color);
|
|
@@ -305,7 +306,8 @@ function renderSitemap(container, parsed, layout, palette, isDark, onClickItem,
|
|
|
305
306
|
if (activeTagGroup) {
|
|
306
307
|
const tagKey = tagAttrKey(activeTagGroup);
|
|
307
308
|
const tagVal = node.tagMetadata[tagKey];
|
|
308
|
-
if (tagVal)
|
|
309
|
+
if (tagVal)
|
|
310
|
+
nodeG.attr(`data-tag-${tagAttrKey(tagKey)}`, tagVal.toLowerCase());
|
|
309
311
|
}
|
|
310
312
|
const fillMode = fillModeFromOptions(parsed.options);
|
|
311
313
|
const fill = nodeFill(palette, isDark, node.color, fillMode);
|
|
@@ -456,9 +458,9 @@ function renderLegend(parent, legendGroups, palette, isDark, activeTagGroup, fix
|
|
|
456
458
|
}
|
|
457
459
|
}
|
|
458
460
|
async function renderSitemapForExport(content, theme, palette) {
|
|
459
|
-
const { parseSitemap } = await import("./parser-
|
|
460
|
-
const { layoutSitemap } = await import("./layout-
|
|
461
|
-
const { getPalette, DEFAULT_PALETTE_ID } = await import("./palettes-
|
|
461
|
+
const { parseSitemap } = await import("./parser-6TDWUKM5.js");
|
|
462
|
+
const { layoutSitemap } = await import("./layout-ND26WVX2.js");
|
|
463
|
+
const { getPalette, DEFAULT_PALETTE_ID } = await import("./palettes-IN7ZFRJM.js");
|
|
462
464
|
const isDark = theme === "dark";
|
|
463
465
|
const defaultCfg = getPalette(DEFAULT_PALETTE_ID);
|
|
464
466
|
const effectivePalette = palette ?? (isDark ? defaultCfg.dark : defaultCfg.light);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MONTH_ABBR,
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
capLabelColumn,
|
|
4
|
+
computeTimeTicks,
|
|
5
|
+
showFullOnHover
|
|
6
|
+
} from "./chunk-VSOZZYLK.js";
|
|
5
7
|
import {
|
|
6
8
|
ScaleContext
|
|
7
9
|
} from "./chunk-24YPR5EH.js";
|
|
@@ -9,7 +11,7 @@ import {
|
|
|
9
11
|
keepSwimlaneToggleFocus,
|
|
10
12
|
renderIntegratedLegend,
|
|
11
13
|
wireSwimlaneToggle
|
|
12
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NMS5XSLX.js";
|
|
13
15
|
import {
|
|
14
16
|
EDGE_DASH,
|
|
15
17
|
GRID_DASH,
|
|
@@ -18,12 +20,12 @@ import {
|
|
|
18
20
|
import {
|
|
19
21
|
INLINE_HEADER_PAD,
|
|
20
22
|
layoutInlineHeader
|
|
21
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-42UJ23H3.js";
|
|
22
24
|
import {
|
|
23
25
|
controlsGroupCapsuleWidth,
|
|
24
26
|
getLegendExtent,
|
|
25
27
|
getMaxLegendReservedHeight
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JILEYZ2V.js";
|
|
27
29
|
import {
|
|
28
30
|
TITLE_FONT_SIZE,
|
|
29
31
|
TITLE_FONT_WEIGHT,
|
|
@@ -40,7 +42,7 @@ import {
|
|
|
40
42
|
resolveActiveTagGroup,
|
|
41
43
|
resolveTagColor,
|
|
42
44
|
tagAttrKey
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-4SACN2C5.js";
|
|
44
46
|
import {
|
|
45
47
|
LEGEND_CAPSULE_PAD,
|
|
46
48
|
LEGEND_DOT_R,
|
|
@@ -55,7 +57,7 @@ import {
|
|
|
55
57
|
LEGEND_PILL_PAD,
|
|
56
58
|
measureLegendText,
|
|
57
59
|
truncateLegendText
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-UOCWYLYT.js";
|
|
59
61
|
import {
|
|
60
62
|
CHAR_WIDTH_RATIO,
|
|
61
63
|
measureText,
|
|
@@ -67,7 +69,7 @@ import {
|
|
|
67
69
|
getSeriesColors,
|
|
68
70
|
mix,
|
|
69
71
|
shapeFill
|
|
70
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-6GXLAKUH.js";
|
|
71
73
|
|
|
72
74
|
// src/gantt/renderer.ts
|
|
73
75
|
import * as d3Scale from "d3-scale";
|
|
@@ -130,7 +132,7 @@ function renderLabelBand(svg, y, leftMargin, color, palette, isDark, cssPrefix,
|
|
|
130
132
|
function appendTaskIcon(textEl, label, isMilestone, iconColor, textColor) {
|
|
131
133
|
const icon = isMilestone ? "\u25C6" : "\u25CF";
|
|
132
134
|
textEl.append("tspan").attr("fill", iconColor).text(icon);
|
|
133
|
-
textEl.append("tspan").attr("fill", textColor).text(" " + label);
|
|
135
|
+
return textEl.append("tspan").attr("fill", textColor).text(" " + label);
|
|
134
136
|
}
|
|
135
137
|
function renderGantt(container, resolved, palette, isDark, options, exportDims) {
|
|
136
138
|
keepSwimlaneToggleFocus(
|
|
@@ -182,7 +184,14 @@ function drawGantt(container, resolved, palette, isDark, options, exportDims) {
|
|
|
182
184
|
...labelWidths,
|
|
183
185
|
measureText("0000000000", LABEL_FONT)
|
|
184
186
|
);
|
|
185
|
-
const
|
|
187
|
+
const containerWidth = exportDims?.width ?? (container.clientWidth || 800);
|
|
188
|
+
const labelColumn = capLabelColumn(
|
|
189
|
+
Math.max(MIN_LEFT_MARGIN, maxLabelWidth + 30),
|
|
190
|
+
containerWidth,
|
|
191
|
+
MIN_LEFT_MARGIN
|
|
192
|
+
);
|
|
193
|
+
const leftMargin = labelColumn.width;
|
|
194
|
+
const fitLabel = labelColumn.fit;
|
|
186
195
|
const totalRows = rows.length;
|
|
187
196
|
const hasCriticalPath = resolved.options.criticalPath && resolved.tasks.some((t) => t.isCriticalPath);
|
|
188
197
|
const hasDependencies = resolved.options.dependencies && resolved.tasks.some((t) => t.task.dependencies.length > 0);
|
|
@@ -196,7 +205,6 @@ function drawGantt(container, resolved, palette, isDark, options, exportDims) {
|
|
|
196
205
|
const title = resolved.options.title;
|
|
197
206
|
const showTitle = !!title && !resolved.options.noTitle;
|
|
198
207
|
const titleHeight = showTitle ? 50 : 20;
|
|
199
|
-
const containerWidth = exportDims?.width ?? (container.clientWidth || 800);
|
|
200
208
|
const hasTagLegend = !resolved.options.noLegend && (resolved.tagGroups.length > 0 || hasCriticalPath || hasDependencies);
|
|
201
209
|
const tagLegendReserve = hasTagLegend ? getMaxLegendReservedHeight(
|
|
202
210
|
{
|
|
@@ -474,7 +482,7 @@ function drawGantt(container, resolved, palette, isDark, options, exportDims) {
|
|
|
474
482
|
sBandRadius,
|
|
475
483
|
sBandAccentW
|
|
476
484
|
);
|
|
477
|
-
const labelG = svg.append("g").attr("class", "gantt-lane-header").attr(`data-tag-${row.tagKey}`, row.laneName.toLowerCase()).attr("data-lane", row.laneName).style("cursor", onToggleLane ? "pointer" : "default").on("click", () => {
|
|
485
|
+
const labelG = svg.append("g").attr("class", "gantt-lane-header").attr(`data-tag-${tagAttrKey(row.tagKey)}`, row.laneName.toLowerCase()).attr("data-lane", row.laneName).style("cursor", onToggleLane ? "pointer" : "default").on("click", () => {
|
|
478
486
|
if (onToggleLane) onToggleLane(row.laneName);
|
|
479
487
|
}).on("mouseenter", () => {
|
|
480
488
|
highlightLane(g, svg, row.tagKey, row.laneName);
|
|
@@ -492,8 +500,14 @@ function drawGantt(container, resolved, palette, isDark, options, exportDims) {
|
|
|
492
500
|
restoreHighlight();
|
|
493
501
|
hideGanttDateIndicators(g);
|
|
494
502
|
});
|
|
495
|
-
|
|
496
|
-
|
|
503
|
+
const laneFullText = toggleIcon + " " + row.laneName + (row.aggregateProgress !== null ? ` ${Math.round(row.aggregateProgress)}%` : "");
|
|
504
|
+
const laneText = labelG.append("text").attr("x", labelX).attr("y", sMarginTop + yOffset + sBarH / 2).attr("dy", "0.35em").attr("text-anchor", "start").attr("font-size", sFont11).attr("font-weight", "bold").attr("fill", laneColor);
|
|
505
|
+
showFullOnHover(
|
|
506
|
+
labelG,
|
|
507
|
+
laneText,
|
|
508
|
+
laneText,
|
|
509
|
+
laneFullText,
|
|
510
|
+
fitLabel(laneFullText, labelX, sFont11, true)
|
|
497
511
|
);
|
|
498
512
|
if (laneBarWidth > 0) {
|
|
499
513
|
const barFill = shapeFill(palette, laneColor, isDark, {
|
|
@@ -567,8 +581,14 @@ function drawGantt(container, resolved, palette, isDark, options, exportDims) {
|
|
|
567
581
|
});
|
|
568
582
|
const groupIndent = group.depth <= 2 ? group.depth * 14 : 2 * 14 + (group.depth - 2) * 8;
|
|
569
583
|
const labelX = 10 + groupIndent;
|
|
570
|
-
|
|
571
|
-
|
|
584
|
+
const groupFullText = toggleIcon + " " + group.name + (group.progress !== null ? ` ${Math.round(group.progress)}%` : "");
|
|
585
|
+
const groupText = labelG.append("text").attr("x", labelX).attr("y", sMarginTop + yOffset + sBarH / 2).attr("dy", "0.35em").attr("text-anchor", "start").attr("font-size", sFont11).attr("font-weight", "bold").attr("fill", palette.text);
|
|
586
|
+
showFullOnHover(
|
|
587
|
+
labelG,
|
|
588
|
+
groupText,
|
|
589
|
+
groupText,
|
|
590
|
+
groupFullText,
|
|
591
|
+
fitLabel(groupFullText, labelX, sFont11, true)
|
|
572
592
|
);
|
|
573
593
|
const gStart = dateToFractionalYear(group.startDate);
|
|
574
594
|
const gEnd = dateToFractionalYear(group.endDate);
|
|
@@ -696,15 +716,27 @@ function drawGantt(container, resolved, palette, isDark, options, exportDims) {
|
|
|
696
716
|
}).on("mouseleave", () => {
|
|
697
717
|
resetHighlight(g, svg);
|
|
698
718
|
});
|
|
699
|
-
appendTaskIcon(
|
|
719
|
+
const taskLabelText = appendTaskIcon(
|
|
700
720
|
taskLabel,
|
|
701
721
|
task.label,
|
|
702
722
|
rt.isMilestone,
|
|
703
723
|
barColor,
|
|
704
724
|
palette.text
|
|
705
725
|
);
|
|
726
|
+
const taskIconW = measureText(
|
|
727
|
+
(rt.isMilestone ? "\u25C6" : "\u25CF") + " ",
|
|
728
|
+
sFont11
|
|
729
|
+
);
|
|
730
|
+
showFullOnHover(
|
|
731
|
+
taskLabel,
|
|
732
|
+
taskLabel,
|
|
733
|
+
taskLabelText,
|
|
734
|
+
task.label,
|
|
735
|
+
fitLabel(task.label, taskLabelX + taskIconW, sFont11),
|
|
736
|
+
" "
|
|
737
|
+
);
|
|
706
738
|
for (const [key, value] of Object.entries(rt.effectiveMetadata)) {
|
|
707
|
-
taskLabel.attr(`data-tag-${key}`, value.toLowerCase());
|
|
739
|
+
taskLabel.attr(`data-tag-${tagAttrKey(key)}`, value.toLowerCase());
|
|
708
740
|
}
|
|
709
741
|
if (rt.isCriticalPath) {
|
|
710
742
|
taskLabel.attr("data-critical-path", "true");
|
|
@@ -763,7 +795,7 @@ function drawGantt(container, resolved, palette, isDark, options, exportDims) {
|
|
|
763
795
|
hideGanttDateIndicators(g);
|
|
764
796
|
});
|
|
765
797
|
for (const [key, value] of Object.entries(rt.effectiveMetadata)) {
|
|
766
|
-
taskG.attr(`data-tag-${key}`, value.toLowerCase());
|
|
798
|
+
taskG.attr(`data-tag-${tagAttrKey(key)}`, value.toLowerCase());
|
|
767
799
|
}
|
|
768
800
|
const showUncertainFade = rt.isUncertain && (task.progress === null || task.progress <= 80);
|
|
769
801
|
let barFill = fillColor;
|
|
@@ -1287,7 +1319,7 @@ function renderTagLegend(svg, chartG, tagGroups, activeGroupName, chartLeftMargi
|
|
|
1287
1319
|
const el = d3Selection.select(this);
|
|
1288
1320
|
el.attr(
|
|
1289
1321
|
"opacity",
|
|
1290
|
-
el.attr(`data-tag-${tagKey}`) === ev ? 1 : FADE_OPACITY
|
|
1322
|
+
el.attr(`data-tag-${tagAttrKey(tagKey)}`) === ev ? 1 : FADE_OPACITY
|
|
1291
1323
|
);
|
|
1292
1324
|
});
|
|
1293
1325
|
chartG.selectAll(".gantt-milestone").attr("opacity", FADE_OPACITY);
|
|
@@ -1296,7 +1328,7 @@ function renderTagLegend(svg, chartG, tagGroups, activeGroupName, chartLeftMargi
|
|
|
1296
1328
|
const el = d3Selection.select(this);
|
|
1297
1329
|
el.attr(
|
|
1298
1330
|
"opacity",
|
|
1299
|
-
el.attr(`data-tag-${tagKey}`) === ev ? 1 : FADE_OPACITY
|
|
1331
|
+
el.attr(`data-tag-${tagAttrKey(tagKey)}`) === ev ? 1 : FADE_OPACITY
|
|
1300
1332
|
);
|
|
1301
1333
|
});
|
|
1302
1334
|
svg.selectAll(".gantt-group-label").attr("opacity", FADE_OPACITY);
|
|
@@ -1304,7 +1336,7 @@ function renderTagLegend(svg, chartG, tagGroups, activeGroupName, chartLeftMargi
|
|
|
1304
1336
|
const el = d3Selection.select(this);
|
|
1305
1337
|
el.attr(
|
|
1306
1338
|
"opacity",
|
|
1307
|
-
el.attr(`data-tag-${tagKey}`) === ev ? 1 : FADE_OPACITY
|
|
1339
|
+
el.attr(`data-tag-${tagAttrKey(tagKey)}`) === ev ? 1 : FADE_OPACITY
|
|
1308
1340
|
);
|
|
1309
1341
|
});
|
|
1310
1342
|
chartG.selectAll(".gantt-lane-band, .gantt-lane-accent").attr("opacity", FADE_OPACITY);
|
|
@@ -1793,7 +1825,7 @@ function highlightGroup(g, svg, groupName) {
|
|
|
1793
1825
|
);
|
|
1794
1826
|
}
|
|
1795
1827
|
function highlightLane(g, svg, tagKey, laneName) {
|
|
1796
|
-
const tagAttr = `data-tag-${tagKey}`;
|
|
1828
|
+
const tagAttr = `data-tag-${tagAttrKey(tagKey)}`;
|
|
1797
1829
|
const laneValue = laneName.toLowerCase();
|
|
1798
1830
|
g.selectAll(".gantt-task").each(function() {
|
|
1799
1831
|
const el = d3Selection.select(this);
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
peelQuotedName,
|
|
3
3
|
stripQuotes,
|
|
4
4
|
tokenizeQuoteAware
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TIIZIAGS.js";
|
|
6
6
|
import {
|
|
7
7
|
CATEGORICAL_COLOR_ORDER,
|
|
8
8
|
RECOGNIZED_COLOR_NAMES,
|
|
9
9
|
resolveColor
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3J7O3CU6.js";
|
|
11
11
|
import {
|
|
12
12
|
suggest
|
|
13
13
|
} from "./chunk-BYU54C3S.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
injectDefaultTagMetadata,
|
|
10
10
|
resolveTagColor,
|
|
11
11
|
tagAttrKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4SACN2C5.js";
|
|
13
13
|
import {
|
|
14
14
|
LEGEND_CAPSULE_PAD,
|
|
15
15
|
LEGEND_DOT_R,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
LEGEND_PILL_FONT_SIZE,
|
|
24
24
|
LEGEND_PILL_PAD,
|
|
25
25
|
measureLegendText
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UOCWYLYT.js";
|
|
27
27
|
import {
|
|
28
28
|
measureText
|
|
29
29
|
} from "./chunk-KAO7JL4I.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchPlacement
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HXULJZA2.js";
|
|
4
4
|
import {
|
|
5
5
|
buildPlacedNotes,
|
|
6
6
|
noteCanvasShift
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FTUMRSGT.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveNotes
|
|
10
10
|
} from "./chunk-O753JUEZ.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
UNTAGGED_TAG_COLOR,
|
|
7
7
|
tagAttrKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4SACN2C5.js";
|
|
9
9
|
import {
|
|
10
10
|
legendSuppressed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TIIZIAGS.js";
|
|
12
12
|
import {
|
|
13
13
|
LEGEND_CAPSULE_PAD,
|
|
14
14
|
LEGEND_DOT_R,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
LEGEND_PILL_FONT_SIZE,
|
|
20
20
|
LEGEND_PILL_PAD,
|
|
21
21
|
measureLegendText
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UOCWYLYT.js";
|
|
23
23
|
import {
|
|
24
24
|
measureText,
|
|
25
25
|
wrapTextToWidth
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
tagAttrKey,
|
|
12
12
|
validateTagGroupNames,
|
|
13
13
|
validateTagValues
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4SACN2C5.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-TIIZIAGS.js";
|
|
27
27
|
import {
|
|
28
28
|
formatDgmoError,
|
|
29
29
|
makeDgmoError,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchPlacement
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HXULJZA2.js";
|
|
4
4
|
import {
|
|
5
5
|
noteCanvasShift,
|
|
6
6
|
placeNotes
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FTUMRSGT.js";
|
|
8
8
|
import {
|
|
9
9
|
noteBoxSize
|
|
10
10
|
} from "./chunk-RJNZHFNG.js";
|
|
@@ -15,15 +15,44 @@ import {
|
|
|
15
15
|
// src/graph/layout.ts
|
|
16
16
|
import dagre from "@dagrejs/dagre";
|
|
17
17
|
var GROUP_PADDING = 20;
|
|
18
|
-
|
|
18
|
+
var LABEL_WRAP_CHARS = 24;
|
|
19
|
+
var NODE_LABEL_LINE_HEIGHT = 16;
|
|
20
|
+
function wrapNodeLabel(label) {
|
|
21
|
+
const words = label.trim().split(/\s+/);
|
|
22
|
+
if (label.length <= LABEL_WRAP_CHARS || words.length < 2) return [label];
|
|
23
|
+
const greedy = (limit) => {
|
|
24
|
+
const lines = [];
|
|
25
|
+
let line = "";
|
|
26
|
+
for (const word of words) {
|
|
27
|
+
if (line && line.length + 1 + word.length > limit) {
|
|
28
|
+
lines.push(line);
|
|
29
|
+
line = word;
|
|
30
|
+
} else {
|
|
31
|
+
line = line ? `${line} ${word}` : word;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
lines.push(line);
|
|
35
|
+
return lines;
|
|
36
|
+
};
|
|
37
|
+
let best = greedy(LABEL_WRAP_CHARS);
|
|
38
|
+
for (let limit = LABEL_WRAP_CHARS - 1; limit > 0; limit--) {
|
|
39
|
+
const lines = greedy(limit);
|
|
40
|
+
if (lines.length > best.length) break;
|
|
41
|
+
best = lines;
|
|
42
|
+
}
|
|
43
|
+
return best;
|
|
44
|
+
}
|
|
45
|
+
function computeNodeWidth(lines, shape) {
|
|
19
46
|
if (shape === "pseudostate") return 24;
|
|
20
|
-
const
|
|
47
|
+
const longest = Math.max(...lines.map((l) => l.length));
|
|
48
|
+
const base = Math.max(120, longest * 9 + 40);
|
|
21
49
|
if (shape === "subroutine") return base + 10;
|
|
22
50
|
return base;
|
|
23
51
|
}
|
|
24
|
-
function computeNodeHeight(shape) {
|
|
52
|
+
function computeNodeHeight(lineCount, shape) {
|
|
25
53
|
if (shape === "pseudostate") return 24;
|
|
26
|
-
|
|
54
|
+
const extra = (lineCount - 1) * NODE_LABEL_LINE_HEIGHT;
|
|
55
|
+
return shape === "decision" ? 60 + extra * 2 : 50 + extra;
|
|
27
56
|
}
|
|
28
57
|
var newDagreGraph = () => new dagre.graphlib.Graph({ compound: true });
|
|
29
58
|
function layoutGraph(graph, options) {
|
|
@@ -107,8 +136,9 @@ function layoutGraph(graph, options) {
|
|
|
107
136
|
}
|
|
108
137
|
}
|
|
109
138
|
for (const node of ord(allNodes)) {
|
|
110
|
-
const
|
|
111
|
-
const
|
|
139
|
+
const lines = graph.type === "flowchart" ? wrapNodeLabel(node.label) : [node.label];
|
|
140
|
+
const width = computeNodeWidth(lines, node.shape);
|
|
141
|
+
const height = computeNodeHeight(lines.length, node.shape);
|
|
112
142
|
g2.setNode(node.id, { label: node.label, width, height });
|
|
113
143
|
if (node.group && graph.groups?.some((gr) => gr.id === node.group)) {
|
|
114
144
|
g2.setParent(node.id, node.group);
|
|
@@ -156,7 +186,10 @@ function layoutGraph(graph, options) {
|
|
|
156
186
|
height: p.height
|
|
157
187
|
})),
|
|
158
188
|
noteRequests,
|
|
159
|
-
graph.direction === "LR" ? "LR" : "TB"
|
|
189
|
+
graph.direction === "LR" ? "LR" : "TB",
|
|
190
|
+
graph.edges.map(
|
|
191
|
+
(e, i) => edgePoints?.[i] ?? g.edge(e.source, e.target)?.points ?? []
|
|
192
|
+
)
|
|
160
193
|
);
|
|
161
194
|
const layoutNodes = basePositioned.map((p) => {
|
|
162
195
|
const node = p.node;
|
|
@@ -338,5 +371,7 @@ function layoutGraph(graph, options) {
|
|
|
338
371
|
}
|
|
339
372
|
|
|
340
373
|
export {
|
|
374
|
+
NODE_LABEL_LINE_HEIGHT,
|
|
375
|
+
wrapNodeLabel,
|
|
341
376
|
layoutGraph
|
|
342
377
|
};
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-NOTA6TEI.js";
|
|
9
9
|
import {
|
|
10
10
|
peelQuotedName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TIIZIAGS.js";
|
|
12
12
|
import {
|
|
13
13
|
makeDgmoError
|
|
14
14
|
} from "./chunk-BYU54C3S.js";
|
|
@@ -382,9 +382,7 @@ function calculateSchedule(parsed) {
|
|
|
382
382
|
if (parsed.syntaxMode === "legacy") {
|
|
383
383
|
const topLevelGroups = parsed.nodes.filter((n) => n.kind === "group");
|
|
384
384
|
if (topLevelGroups.length >= 2) {
|
|
385
|
-
const names = topLevelGroups.map(
|
|
386
|
-
(g) => g.name
|
|
387
|
-
);
|
|
385
|
+
const names = topLevelGroups.map((g) => g.name);
|
|
388
386
|
warn(
|
|
389
387
|
topLevelGroups[0].lineNumber,
|
|
390
388
|
`${names.join(" and ")} are sequential. Wrap in \`parallel\` if they should run concurrently.`
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-2CW5ZTNH.js";
|
|
8
8
|
import {
|
|
9
9
|
renderIntegratedLegend
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NMS5XSLX.js";
|
|
11
11
|
import {
|
|
12
12
|
CARD_RADIUS,
|
|
13
13
|
EDGE_DASH,
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
} from "./chunk-XCKNFFKM.js";
|
|
22
22
|
import {
|
|
23
23
|
layoutInlineHeader
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-42UJ23H3.js";
|
|
25
25
|
import {
|
|
26
26
|
getLegendExtent,
|
|
27
27
|
getMaxLegendReservedHeight
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JILEYZ2V.js";
|
|
29
29
|
import {
|
|
30
30
|
TITLE_FONT_SIZE,
|
|
31
31
|
TITLE_FONT_WEIGHT,
|
|
@@ -38,15 +38,15 @@ import {
|
|
|
38
38
|
UNTAGGED_TAG_COLOR,
|
|
39
39
|
resolveTagColor,
|
|
40
40
|
tagAttrKey
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-4SACN2C5.js";
|
|
42
42
|
import {
|
|
43
43
|
fillModeFromOptions,
|
|
44
44
|
legendInlineRequested,
|
|
45
45
|
legendSuppressed
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-TIIZIAGS.js";
|
|
47
47
|
import {
|
|
48
48
|
LEGEND_GROUP_GAP
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-UOCWYLYT.js";
|
|
50
50
|
import {
|
|
51
51
|
measureText
|
|
52
52
|
} from "./chunk-KAO7JL4I.js";
|
|
@@ -55,10 +55,10 @@ import {
|
|
|
55
55
|
mix,
|
|
56
56
|
shapeFill,
|
|
57
57
|
themeBaseBg
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-6GXLAKUH.js";
|
|
59
59
|
import {
|
|
60
60
|
resolveColor
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-3J7O3CU6.js";
|
|
62
62
|
|
|
63
63
|
// src/family/renderer.ts
|
|
64
64
|
import * as d3Selection from "d3-selection";
|
|
@@ -259,7 +259,7 @@ function renderFamilyForExport(container, parsed, layout, palette, isDark, opts
|
|
|
259
259
|
if (activeTagGroup) {
|
|
260
260
|
const key = tagAttrKey(activeTagGroup);
|
|
261
261
|
const v = node.tagMetadata[key];
|
|
262
|
-
if (v) g.attr(`data-tag-${key}`, v.toLowerCase());
|
|
262
|
+
if (v) g.attr(`data-tag-${tagAttrKey(key)}`, v.toLowerCase());
|
|
263
263
|
}
|
|
264
264
|
g.append("rect").attr("x", 0).attr("y", 0).attr("width", node.width).attr("height", node.height).attr("rx", CARD_RADIUS).attr("fill", fill).attr("stroke", stroke).attr("stroke-width", NODE_STROKE_WIDTH);
|
|
265
265
|
g.append("text").attr("x", node.width / 2).attr("y", HEADER_HEIGHT / 2).attr("dominant-baseline", "central").attr("text-anchor", "middle").attr("fill", labelColor).attr("font-size", LABEL_FONT_SIZE).attr("font-weight", "bold").text(noDaggers ? node.label : familyDisplayLabel(node));
|