@diagrammo/dgmo 0.51.0 → 0.53.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/.cursorrules +74 -77
- package/.github/copilot-instructions.md +74 -77
- package/.windsurfrules +74 -77
- package/SKILL.md +74 -77
- package/dist/advanced.d.ts +109 -246
- package/dist/advanced.js +296 -633
- package/dist/analyzer-TDN5KJFP.js +15 -0
- package/dist/auto.css +14 -6
- package/dist/auto.js +141 -129
- package/dist/auto.mjs +2062 -937
- package/dist/block.css +14 -6
- package/dist/block.js +123 -73
- package/dist/calculator-VBIT6GQF.js +11 -0
- package/dist/chart-meta-CPNVUZ5J.d.ts +232 -0
- package/dist/chart-meta.d.ts +2 -0
- package/dist/chart-meta.js +105 -0
- package/dist/charts-d3-DH2XA45I.js +26 -0
- package/dist/{chunk-RLFVAKEO.js → chunk-22OQWBWD.js} +25 -8
- package/dist/{chunk-I2QZFCS2.js → chunk-27STWBOK.js} +10 -8
- package/dist/{chunk-5PZT4DQG.js → chunk-2QC4HXCY.js} +41 -21
- package/dist/{chunk-HFMYN6N2.js → chunk-3B2GXZCX.js} +4 -3
- package/dist/{chunk-F3FYUFUH.js → chunk-3BEKKRH5.js} +18 -17
- package/dist/{chunk-2UJSV2VT.js → chunk-3CZLWOCI.js} +17 -7
- package/dist/{chunk-JEUJOX5X.js → chunk-3IUHKMJI.js} +2 -2
- package/dist/{chunk-7L4UJOY6.js → chunk-3TYUXC7D.js} +2 -2
- package/dist/{chunk-Y2ZE3MSG.js → chunk-43E26CDA.js} +2 -2
- package/dist/{chunk-ZO27FGJS.js → chunk-4ASVFYB2.js} +10 -7
- package/dist/{chunk-WCT3NYCV.js → chunk-4ASYQ347.js} +33 -8
- package/dist/{chunk-2ILHQOL3.js → chunk-4K42RUGC.js} +41 -13
- package/dist/{chunk-I5IGB56C.js → chunk-4QV26TEG.js} +41 -1
- package/dist/{chunk-QOOUC2J5.js → chunk-4RGZFA7H.js} +2 -2
- package/dist/{chunk-CXK4DZH3.js → chunk-4W2PE66Q.js} +12 -2
- package/dist/{chunk-EXOQP75F.js → chunk-4WGMGKCZ.js} +53 -33
- package/dist/{chunk-JED6ZDEE.js → chunk-5HWPEYWB.js} +2 -2
- package/dist/{chunk-3YSQZ75W.js → chunk-65V6IRFN.js} +46 -33
- package/dist/{chunk-TMACGPW5.js → chunk-6AUZPPAV.js} +4 -4
- package/dist/{chunk-6H7O2OPM.js → chunk-6DCOIN4W.js} +36 -6
- package/dist/{chunk-GTWKD3QT.js → chunk-6HTRCTAS.js} +7 -6
- package/dist/{chunk-VB4UJ3H2.js → chunk-6KY7OCZC.js} +21 -11
- package/dist/{chunk-YAA6IID3.js → chunk-774C2FF3.js} +2 -2
- package/dist/{chunk-WJ7RW65H.js → chunk-7GUF6SDR.js} +22 -20
- package/dist/{chunk-QYTPPDAO.js → chunk-7JDTNFAK.js} +3 -3
- package/dist/{chunk-U6EQI3U6.js → chunk-ADYKAKE3.js} +3 -3
- package/dist/{chunk-VNSXLA6G.js → chunk-AHXIMHDQ.js} +84 -20
- package/dist/chunk-AIMLCDAO.js +404 -0
- package/dist/{chunk-6MNGECP2.js → chunk-ALYZ3MAA.js} +4 -4
- package/dist/{chunk-5F5ELR3V.js → chunk-AN2DQB3G.js} +151 -20
- package/dist/{chunk-IEWG6J7C.js → chunk-AZNXGWDC.js} +91 -36
- package/dist/{chunk-4XFBQT5O.js → chunk-B4XS2AF2.js} +3 -3
- package/dist/{chunk-CC4YRBWV.js → chunk-BD3WGY4T.js} +18 -8
- package/dist/{chunk-RAHVMKBG.js → chunk-BFDVEO5R.js} +2 -2
- package/dist/{chunk-332ZR4QU.js → chunk-BR7AYN76.js} +8 -8
- package/dist/{chunk-P3NRSSUU.js → chunk-BULHGPHK.js} +3 -3
- package/dist/{chunk-PZDBOK2Q.js → chunk-CK2GMDXD.js} +11 -5
- package/dist/{chunk-467TVMQL.js → chunk-CMVZWP32.js} +3 -3
- package/dist/{chunk-GNSFLJAA.js → chunk-CQFNIIQN.js} +7 -7
- package/dist/{chunk-RBDIYLA5.js → chunk-DAOFNU6J.js} +17 -1
- package/dist/{chunk-AFIEPDLX.js → chunk-DWUMPMV2.js} +23 -11
- package/dist/{chunk-USZW2HHU.js → chunk-EQW6HOP4.js} +4 -3
- package/dist/{chunk-6BQFET7X.js → chunk-FFXCKZOU.js} +12 -4
- package/dist/{chunk-WRNFDFPU.js → chunk-FGDSTT3F.js} +2 -2
- package/dist/{chunk-6NFYEQDX.js → chunk-FLDC7ZAK.js} +34 -7
- package/dist/{chunk-IUJODQKX.js → chunk-FT7TPPZ5.js} +25 -23
- package/dist/{chunk-IEDMFNU7.js → chunk-FUKNRLIJ.js} +19 -7
- package/dist/{chunk-JJXGQIRV.js → chunk-FXCB7H5O.js} +4 -4
- package/dist/{chunk-GGHRAITI.js → chunk-GABSL6TH.js} +4 -4
- package/dist/{chunk-RXKTSFDL.js → chunk-GAWKIIPO.js} +35 -43
- package/dist/{chunk-ZJ3LS7DW.js → chunk-GMAH572Z.js} +6 -6
- package/dist/{chunk-TRM2J7ZN.js → chunk-GMIJ35PW.js} +28 -29
- package/dist/{chunk-AB7INMR5.js → chunk-GQ644SPD.js} +26 -25
- package/dist/{chunk-5QKQSSPO.js → chunk-GRM2A4BG.js} +4 -4
- package/dist/{chunk-3ODS2VGL.js → chunk-GWQJKTFS.js} +161 -704
- package/dist/{chunk-OTOHI4JO.js → chunk-H3HFC3SQ.js} +2 -2
- package/dist/{chunk-JSSX2SX4.js → chunk-HE5J53SZ.js} +4 -4
- package/dist/{chunk-2EQMXBBQ.js → chunk-HNBY6CNV.js} +3 -3
- package/dist/{chunk-J76PIKAT.js → chunk-HO3RCNF6.js} +3 -3
- package/dist/{chunk-OJTXTQA2.js → chunk-HORZ5H2L.js} +38 -31
- package/dist/{chunk-MX2EY5Y7.js → chunk-HOXKNRON.js} +2 -2
- package/dist/{chunk-E7Y3SYKW.js → chunk-I64ECJX3.js} +18 -8
- package/dist/{chunk-JM4LEPY3.js → chunk-IQJCVREL.js} +11 -8
- package/dist/{chunk-3JLKYGBQ.js → chunk-J7HI6G3G.js} +9 -6
- package/dist/{chunk-Q62FEYK3.js → chunk-JHOAH4TI.js} +3 -3
- package/dist/{chunk-OZPBJM5Q.js → chunk-JTMSWEIW.js} +11 -8
- package/dist/{chunk-P6T66CCZ.js → chunk-JYDMBWRP.js} +37 -19
- package/dist/{chunk-7DF4J4RL.js → chunk-KKHCNSKK.js} +17 -11
- package/dist/{chunk-ENRS56GC.js → chunk-KUSAVOWZ.js} +11 -8
- package/dist/{chunk-BYJBIALT.js → chunk-LC3FFD43.js} +23 -18
- package/dist/{chunk-65WJYYKJ.js → chunk-LHILKFDP.js} +16 -11
- package/dist/{chunk-NEQ6GJXB.js → chunk-LQHVDZYC.js} +52 -16
- package/dist/{chunk-5WPNFSXP.js → chunk-MA3HJZHB.js} +5 -5
- package/dist/{chunk-Z6XJQ6KO.js → chunk-MEQYZZFR.js} +3 -3
- package/dist/{chunk-MVN25IF6.js → chunk-NNUMX6WX.js} +42 -12
- package/dist/{chunk-7DYOELRK.js → chunk-NNYFQOTK.js} +78 -38
- package/dist/{chunk-NNAAJVBU.js → chunk-NR5HCAUD.js} +1 -1
- package/dist/{chunk-H6PI3KJT.js → chunk-ODUT5WMC.js} +2 -2
- package/dist/{chunk-5PDTIBLV.js → chunk-P3H7QVDH.js} +56 -19
- package/dist/{chunk-ND76YJCN.js → chunk-PIXZTCKH.js} +84 -117
- package/dist/{chunk-3LV2NCB6.js → chunk-PKNNHU7H.js} +22 -9
- package/dist/{chunk-TK2VQQX2.js → chunk-PT4SW76W.js} +20 -18
- package/dist/{chunk-AE7II3E3.js → chunk-PV2QO7QL.js} +4 -4
- package/dist/{chunk-FTBZV6NE.js → chunk-PYO4TJJ3.js} +34 -26
- package/dist/{chunk-QZPEGJOM.js → chunk-Q7AH665U.js} +28 -14
- package/dist/{chunk-QHI5XVUJ.js → chunk-QAALSCKI.js} +27 -26
- package/dist/{chunk-GD6L76WD.js → chunk-QI3BOLQB.js} +23 -11
- package/dist/{chunk-Y6GBQTBK.js → chunk-QWIBT6DS.js} +50 -28
- package/dist/{chunk-GU46PPT3.js → chunk-QXGACPS2.js} +5 -5
- package/dist/{chunk-FMDSF3OV.js → chunk-QZAW5SFH.js} +2 -2
- package/dist/{chunk-YGJZWZTY.js → chunk-R5NH5BZG.js} +12 -9
- package/dist/{chunk-U5SI5NIM.js → chunk-RJ5LBZ5U.js} +43 -26
- package/dist/{chunk-XHVV4NVW.js → chunk-RT7ACF77.js} +12 -2
- package/dist/{chunk-XEQXCIBC.js → chunk-RW5PEJ7D.js} +18 -6
- package/dist/{chunk-4VWJ4LW2.js → chunk-SG4PRYO3.js} +61 -49
- package/dist/{chunk-RBHWPDBB.js → chunk-SGPFVDUL.js} +18 -7
- package/dist/{chunk-KJGG2JKQ.js → chunk-SQCBSFT5.js} +84 -79
- package/dist/{chunk-5X6YQA2J.js → chunk-U7NKYLX2.js} +18 -16
- package/dist/chunk-U7VO6JAA.js +566 -0
- package/dist/{chunk-32XPAAET.js → chunk-UFQJMOVZ.js} +10 -10
- package/dist/{chunk-Z72XRXD4.js → chunk-UJRTPOHH.js} +3 -3
- package/dist/{chunk-EDA6C7MV.js → chunk-UK6DKJLD.js} +34 -14
- package/dist/{chunk-GROLTAWZ.js → chunk-UKP5HWB5.js} +149 -89
- package/dist/{chunk-DY7XLRHK.js → chunk-UQRIKAMH.js} +28 -27
- package/dist/{chunk-TYS6CSS5.js → chunk-UU6LUYUH.js} +2 -2
- package/dist/{chunk-NI3XQBPB.js → chunk-UVDCHR4E.js} +18 -6
- package/dist/{chunk-6K2M4VSR.js → chunk-VAO6ANGC.js} +23 -10
- package/dist/{chunk-6NYWYNBI.js → chunk-VGNIDAPQ.js} +4 -4
- package/dist/{chunk-VL2O2F3W.js → chunk-VHO3YBTB.js} +2 -2
- package/dist/{chunk-IUO34HKW.js → chunk-VIRANCNY.js} +36 -32
- package/dist/{chunk-4QZ43D7I.js → chunk-VJHBSPGF.js} +12 -14
- package/dist/{chunk-BGP54HVR.js → chunk-VKNCC2GX.js} +12 -8
- package/dist/{chunk-FC5I2KXV.js → chunk-VRRDUYOK.js} +7 -7
- package/dist/{chunk-G3PF3S7P.js → chunk-W2DINCHL.js} +15 -15
- package/dist/{chunk-OU7HLO7I.js → chunk-W5KMNC5U.js} +8 -8
- package/dist/{chunk-FFUN5D66.js → chunk-WF64MW5G.js} +2 -2
- package/dist/{chunk-X7EC3L2H.js → chunk-X3RXGSCZ.js} +48 -30
- package/dist/{chunk-KFNWFNAA.js → chunk-XEAQDIMF.js} +7 -6
- package/dist/{chunk-AXW3M6OQ.js → chunk-XG4NWFPY.js} +38 -27
- package/dist/{chunk-B63YB7X3.js → chunk-XQ4KN6JQ.js} +127 -65
- package/dist/{chunk-WBRZJOEC.js → chunk-XY3UDKKH.js} +4 -4
- package/dist/{chunk-IE477RQZ.js → chunk-YG2BEIQU.js} +14 -13
- package/dist/{chunk-LV4BETUU.js → chunk-YJVA3QUU.js} +55 -5
- package/dist/{chunk-5SVOCD5W.js → chunk-YR43LJT5.js} +20 -16
- package/dist/{chunk-TLVIHFRO.js → chunk-ZKPPI6BF.js} +2 -2
- package/dist/{chunk-WQLMU7VG.js → chunk-ZXUAPTCK.js} +3 -3
- package/dist/cli.cjs +158 -155
- package/dist/clock.js +25 -23
- package/dist/countdown.js +4 -3
- package/dist/dgmo-router-B4S23EBH.js +86 -0
- package/dist/dimensions-K6PGYYGT.js +22 -0
- package/dist/editor.js +36 -6
- package/dist/element.js +143 -131
- package/dist/element.mjs +2062 -937
- package/dist/flowchart-parser-LALR6J6F.js +21 -0
- package/dist/{flowchart-renderer-AQSMEMYF.js → flowchart-renderer-DXYB5YRF.js} +14 -14
- package/dist/highlight.d.ts +21 -1
- package/dist/highlight.js +129 -8
- package/dist/index.d.ts +4 -2
- package/dist/index.js +80 -75
- package/dist/layout-3BVDMKXI.js +15 -0
- package/dist/layout-3M5UYJHY.js +14 -0
- package/dist/{layout-JDJAEQ3P.js → layout-3V2A4MUE.js} +8 -8
- package/dist/layout-4IHCMWZN.js +19 -0
- package/dist/layout-5XGYNYVT.js +9 -0
- package/dist/layout-AZUPXWSK.js +15 -0
- package/dist/{layout-F4WO357A.js → layout-CAAKQX4W.js} +3 -3
- package/dist/layout-CB3XWCOI.js +10 -0
- package/dist/{layout-OAC4PEAC.js → layout-E6HR6PXH.js} +7 -7
- package/dist/{layout-7QXCNOVS.js → layout-HBWT2G23.js} +3 -3
- package/dist/layout-KPQWJNAG.js +14 -0
- package/dist/layout-OL2XFJXA.js +17 -0
- package/dist/layout-WCAIKGZG.js +19 -0
- package/dist/layout-WSMPBQ4Q.js +17 -0
- package/dist/layout-ZE5DRJWX.js +20 -0
- package/dist/{layout-search-55FU6HD3.js → layout-search-34DPZD43.js} +51 -35
- package/dist/legend-constants-P5EQWRQQ.js +49 -0
- package/dist/{palettes-PRJ2RI6D.js → palettes-FGTNFARW.js} +4 -4
- package/dist/{parser-KKTJ6M3Y.js → parser-275KP7JO.js} +8 -8
- package/dist/parser-27Z76SN3.js +22 -0
- package/dist/parser-3CODK6RG.js +15 -0
- package/dist/{parser-EH5VE7ZN.js → parser-3KIGEEJM.js} +6 -6
- package/dist/parser-3VSWEKBF.js +15 -0
- package/dist/parser-4E4I3GNT.js +13 -0
- package/dist/parser-5FGJSQNS.js +12 -0
- package/dist/parser-5HQXCNOS.js +12 -0
- package/dist/parser-5QPFOB5F.js +12 -0
- package/dist/parser-6B6SSZT7.js +11 -0
- package/dist/parser-6PPHAXXH.js +14 -0
- package/dist/parser-7JHWEWXM.js +13 -0
- package/dist/{parser-5PDYJGWA.js → parser-7JVIDLLR.js} +7 -7
- package/dist/parser-CKA3QMAG.js +18 -0
- package/dist/parser-CRKLXGW7.js +13 -0
- package/dist/parser-EXNBDNGY.js +11 -0
- package/dist/parser-FF4BMRSB.js +16 -0
- package/dist/parser-FOOFEJQU.js +13 -0
- package/dist/parser-G26MTBFS.js +11 -0
- package/dist/parser-GKP2MHHL.js +11 -0
- package/dist/parser-GN2MM5CC.js +11 -0
- package/dist/parser-IKWK2ZU3.js +18 -0
- package/dist/parser-IVGHXLZP.js +14 -0
- package/dist/parser-NNIL3HXU.js +11 -0
- package/dist/parser-RNLTBIJ6.js +19 -0
- package/dist/parser-UWRX52PC.js +16 -0
- package/dist/parser-VOERD6XR.js +14 -0
- package/dist/parser-XNKJCMMA.js +13 -0
- package/dist/parser-XVPTRWZ4.js +15 -0
- package/dist/parser-YSLNDFLV.js +22 -0
- package/dist/parser-ZGNXYFPS.js +15 -0
- package/dist/parser-ZQDQTB4X.js +20 -0
- package/dist/pert.d.ts +4 -2
- package/dist/registry-CaSw0PSH.d.ts +350 -0
- package/dist/renderer-2C6DJRYN.js +24 -0
- package/dist/renderer-5MPN7CXZ.js +19 -0
- package/dist/renderer-6EN5XXJZ.js +27 -0
- package/dist/renderer-6WRYVM5R.js +24 -0
- package/dist/renderer-7NQSTQMQ.js +16 -0
- package/dist/renderer-7ZNVOVFG.js +16 -0
- package/dist/{renderer-KQB7UGDS.js → renderer-AK2WO4EI.js} +7 -6
- package/dist/renderer-COLQFSFV.js +26 -0
- package/dist/renderer-CWEFGEIC.js +36 -0
- package/dist/renderer-D3BRNOMV.js +29 -0
- package/dist/renderer-HIFQVEJA.js +22 -0
- package/dist/renderer-JCZG6AYU.js +28 -0
- package/dist/{renderer-6RKQPNJI.js → renderer-JTCX6PCG.js} +13 -13
- package/dist/renderer-JWGQSTMR.js +37 -0
- package/dist/{renderer-3YPZHMOU.js → renderer-K7XLVPH5.js} +6 -6
- package/dist/renderer-KARQF3F3.js +22 -0
- package/dist/renderer-LVZAHRP6.js +34 -0
- package/dist/{renderer-QXGN5H3A.js → renderer-NE5W7CQP.js} +8 -8
- package/dist/renderer-QD2SJF2I.js +34 -0
- package/dist/renderer-RLMOTXZ6.js +37 -0
- package/dist/renderer-SQ54MDSA.js +26 -0
- package/dist/{renderer-UV6MI64M.js → renderer-TYHGXAVT.js} +7 -6
- package/dist/renderer-UKXW2QPE.js +23 -0
- package/dist/renderer-UPF7NRTI.js +28 -0
- package/dist/renderer-VMH6L6CP.js +24 -0
- package/dist/{renderer-GHPZMFU2.js → renderer-WCWI4I6A.js} +5 -5
- package/dist/renderer-WFSUBKUL.js +25 -0
- package/dist/renderer-WNFXYYGL.js +21 -0
- package/dist/{renderer-RGIYOTKJ.js → renderer-XTXSOK3L.js} +14 -14
- package/dist/renderer-YUKPS27O.js +24 -0
- package/dist/renderer-YUXGXGSW.js +27 -0
- package/dist/renderer-ZBTEX2JK.js +16 -0
- package/dist/renderer-radial-WF6VOUOD.js +21 -0
- package/dist/{resolver-EMTGNR3D.js → resolver-WFKZYBJ2.js} +4 -4
- package/dist/state-parser-L7DHZIQO.js +19 -0
- package/dist/state-renderer-TFEUOP4H.js +38 -0
- package/dist/{themes-32xj5ZTW.d.ts → themes-tbBkIVsn.d.ts} +2 -349
- package/docs/ai-integration.md +74 -77
- package/docs/language-reference.md +329 -290
- package/fonts/Inter-Bold.woff2 +0 -0
- package/fonts/Inter-Regular.woff2 +0 -0
- package/gallery/fixtures/boxes-and-lines-diverging.dgmo +1 -2
- package/gallery/fixtures/boxes-and-lines.dgmo +1 -1
- package/gallery/fixtures/clock.dgmo +1 -1
- package/gallery/fixtures/event-line.dgmo +1 -1
- package/gallery/fixtures/gantt-full.dgmo +1 -1
- package/gallery/fixtures/gantt-sprints.dgmo +9 -9
- package/gallery/fixtures/gantt.dgmo +1 -1
- package/gallery/fixtures/legacy-syntax-backcompat.dgmo +16 -0
- package/gallery/fixtures/state-tags.dgmo +40 -0
- package/gallery/fixtures/swimlane.dgmo +1 -1
- package/gallery/fixtures/timeline-intraday.dgmo +1 -1
- package/package.json +5 -1
- package/dist/analyzer-BJ54GIFB.js +0 -15
- package/dist/calculator-LDYQCDDY.js +0 -11
- package/dist/charts-d3-7E4B4IMW.js +0 -26
- package/dist/dgmo-router-Y2VEX46B.js +0 -86
- package/dist/dimensions-F7B5C4BJ.js +0 -22
- package/dist/flowchart-parser-MY53QWTZ.js +0 -21
- package/dist/layout-46366KBT.js +0 -10
- package/dist/layout-46N4JJYK.js +0 -17
- package/dist/layout-4DIUOX2T.js +0 -14
- package/dist/layout-AM2JWW3X.js +0 -15
- package/dist/layout-CBCLPMSG.js +0 -15
- package/dist/layout-EE6GE46Y.js +0 -17
- package/dist/layout-G23F7LDH.js +0 -9
- package/dist/layout-HYZPWAK5.js +0 -18
- package/dist/layout-MUPRALE5.js +0 -14
- package/dist/layout-YVTNOTN4.js +0 -20
- package/dist/layout-ZDOSXL5G.js +0 -19
- package/dist/parser-2Q2T4C3B.js +0 -22
- package/dist/parser-3A42DZ72.js +0 -11
- package/dist/parser-4RFTKAQX.js +0 -15
- package/dist/parser-57ILIFZ2.js +0 -20
- package/dist/parser-5A2UWU6B.js +0 -11
- package/dist/parser-6BJEXUFX.js +0 -13
- package/dist/parser-6ZKABF5S.js +0 -22
- package/dist/parser-AIMHGJRR.js +0 -19
- package/dist/parser-AZJ25OKK.js +0 -13
- package/dist/parser-B77S5SZM.js +0 -11
- package/dist/parser-BEPSWJAD.js +0 -11
- package/dist/parser-BKI42XBQ.js +0 -16
- package/dist/parser-C3D7MVXY.js +0 -11
- package/dist/parser-CDG7CHV5.js +0 -14
- package/dist/parser-CZOJ7XQ6.js +0 -15
- package/dist/parser-E2RL6JYF.js +0 -18
- package/dist/parser-FQ6GZFMR.js +0 -13
- package/dist/parser-GKLZKEIK.js +0 -13
- package/dist/parser-H6ABKHZZ.js +0 -12
- package/dist/parser-I6GGFKOQ.js +0 -12
- package/dist/parser-JA7JQ7NF.js +0 -15
- package/dist/parser-OK22AC6Y.js +0 -14
- package/dist/parser-OK2ILHRT.js +0 -16
- package/dist/parser-OUTPNJWC.js +0 -11
- package/dist/parser-PORDUX5E.js +0 -15
- package/dist/parser-SRVFR7PM.js +0 -13
- package/dist/parser-UKFFZCFJ.js +0 -14
- package/dist/parser-UMWPLORP.js +0 -18
- package/dist/parser-Z4TZV2CB.js +0 -12
- package/dist/renderer-2AUFT3E2.js +0 -24
- package/dist/renderer-2HTNBIF2.js +0 -34
- package/dist/renderer-3K3IB7D5.js +0 -22
- package/dist/renderer-3YNIWF5I.js +0 -16
- package/dist/renderer-4WR6WMVF.js +0 -26
- package/dist/renderer-66MERVQ2.js +0 -24
- package/dist/renderer-ARMJBP6C.js +0 -28
- package/dist/renderer-CO2DW7S7.js +0 -37
- package/dist/renderer-EDJ2O4S5.js +0 -34
- package/dist/renderer-F7U3MFCV.js +0 -22
- package/dist/renderer-GD2COXVL.js +0 -16
- package/dist/renderer-GQIESYEM.js +0 -25
- package/dist/renderer-HCKJDFXD.js +0 -37
- package/dist/renderer-HYGHO4SJ.js +0 -28
- package/dist/renderer-JC3RDUT7.js +0 -23
- package/dist/renderer-NKJ24TEA.js +0 -19
- package/dist/renderer-OYO67VZK.js +0 -26
- package/dist/renderer-QIWVHWZO.js +0 -15
- package/dist/renderer-QRWACQRI.js +0 -21
- package/dist/renderer-QXPP4TA2.js +0 -27
- package/dist/renderer-RHT4MHFU.js +0 -24
- package/dist/renderer-RYR3TJ46.js +0 -36
- package/dist/renderer-SRKDNDFB.js +0 -27
- package/dist/renderer-TGTUABCI.js +0 -24
- package/dist/renderer-TXJFKPOG.js +0 -29
- package/dist/renderer-radial-FWABAZHB.js +0 -21
- package/dist/state-parser-6T6CNMPX.js +0 -18
- package/dist/state-renderer-AWZ3ECAX.js +0 -34
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractDatePrefix,
|
|
3
3
|
parseTimelineDate
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6AUZPPAV.js";
|
|
5
5
|
import {
|
|
6
6
|
makeYearContext,
|
|
7
7
|
parseDateToken,
|
|
8
8
|
resolveTokenYear
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DAOFNU6J.js";
|
|
10
10
|
import {
|
|
11
11
|
AUTO_TAG_COLOR_SENTINEL,
|
|
12
12
|
finalizeAutoTagColors,
|
|
@@ -16,24 +16,25 @@ import {
|
|
|
16
16
|
tagAttrKey,
|
|
17
17
|
validateTagGroupNames,
|
|
18
18
|
validateTagValues
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CMVZWP32.js";
|
|
20
20
|
import {
|
|
21
21
|
EVENT_LINE_REGISTRY,
|
|
22
22
|
extractColor,
|
|
23
|
+
fillModeFromToken,
|
|
23
24
|
measureIndent,
|
|
24
25
|
parseFirstLine,
|
|
25
26
|
splitNameAndMeta,
|
|
26
27
|
tryParseSharedOption,
|
|
27
28
|
warnUnknownMetaKeys,
|
|
28
29
|
withTagAliases
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YJVA3QUU.js";
|
|
30
31
|
import {
|
|
31
32
|
emit,
|
|
32
33
|
formatDgmoError,
|
|
33
34
|
makeDgmoError,
|
|
34
35
|
makeFail,
|
|
35
36
|
suggest
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-4W2PE66Q.js";
|
|
37
38
|
|
|
38
39
|
// src/event-line/diagnostics.ts
|
|
39
40
|
var EVENT_LINE_DX = {
|
|
@@ -64,8 +65,9 @@ var EVENT_LINE_DX = {
|
|
|
64
65
|
},
|
|
65
66
|
// parser.ts emits three wordings under this one code (each passes the full
|
|
66
67
|
// wording as `reason`):
|
|
67
|
-
// directive handler: `event-line is horizontal-only in v1; \`direction
|
|
68
|
-
// (vertical orientation) is a fast-follow.`
|
|
68
|
+
// directive handler: `event-line is horizontal-only in v1; \`direction-tb\`
|
|
69
|
+
// (vertical orientation) is a fast-follow.` (the
|
|
70
|
+
// legacy key+value form words it as \`direction ${dir}\`)
|
|
69
71
|
// `section` seam: 'Group events with `[Name]` era brackets (§28.6a), not `section`.'
|
|
70
72
|
// parseEventHeader: 'event-line events are points; a date range (`->`) is not
|
|
71
73
|
// supported — using the start date.'
|
|
@@ -75,10 +77,10 @@ var EVENT_LINE_DX = {
|
|
|
75
77
|
severity: "warning",
|
|
76
78
|
chartType: "event-line",
|
|
77
79
|
title: "Unsupported construct",
|
|
78
|
-
message: (p) => typeof p.reason === "string" && p.reason ? p.reason : "event-line is horizontal-only in v1; `direction
|
|
79
|
-
hint: "Only horizontal (`direction
|
|
80
|
+
message: (p) => typeof p.reason === "string" && p.reason ? p.reason : "event-line is horizontal-only in v1; `direction-tb` (vertical orientation) is a fast-follow.",
|
|
81
|
+
hint: "Only horizontal (`direction-lr`) is supported; use `[Name]` era brackets (not `section`); events are single points, not date ranges (`->`).",
|
|
80
82
|
example: `event-line X
|
|
81
|
-
direction
|
|
83
|
+
direction-tb
|
|
82
84
|
|
|
83
85
|
2020 A
|
|
84
86
|
one`
|
|
@@ -140,7 +142,7 @@ function parseEventLine(content, palette) {
|
|
|
140
142
|
noTitle: false,
|
|
141
143
|
noBox: false,
|
|
142
144
|
noLegend: false,
|
|
143
|
-
|
|
145
|
+
fillMode: void 0
|
|
144
146
|
};
|
|
145
147
|
const result = {
|
|
146
148
|
type: "event-line",
|
|
@@ -296,6 +298,12 @@ function parseEventLine(content, palette) {
|
|
|
296
298
|
if (cm) {
|
|
297
299
|
collapsed = cm[1].toLowerCase() === "true";
|
|
298
300
|
rest = (rest.slice(0, cm.index) + rest.slice(cm.index + cm[0].length)).trim();
|
|
301
|
+
} else {
|
|
302
|
+
const bare = rest.match(/(?:^|\s)collapsed(?=\s|$)/);
|
|
303
|
+
if (bare) {
|
|
304
|
+
collapsed = true;
|
|
305
|
+
rest = (rest.slice(0, bare.index) + " " + rest.slice(bare.index + bare[0].length)).trim();
|
|
306
|
+
}
|
|
299
307
|
}
|
|
300
308
|
let color = null;
|
|
301
309
|
if (rest) {
|
|
@@ -336,8 +344,20 @@ function parseEventLine(content, palette) {
|
|
|
336
344
|
options.noLegend = true;
|
|
337
345
|
continue;
|
|
338
346
|
}
|
|
339
|
-
|
|
340
|
-
|
|
347
|
+
{
|
|
348
|
+
const fm = fillModeFromToken(trimmed);
|
|
349
|
+
if (fm !== null) {
|
|
350
|
+
options.fillMode = fm === "tint" ? void 0 : fm;
|
|
351
|
+
continue;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
if (/^direction-lr$/i.test(trimmed)) continue;
|
|
355
|
+
if (/^direction-tb$/i.test(trimmed)) {
|
|
356
|
+
result.diagnostics.push(
|
|
357
|
+
emit(EVENT_LINE_DX.UNSUPPORTED, lineNumber, {
|
|
358
|
+
reason: "event-line is horizontal-only in v1; `direction-tb` (vertical orientation) is a fast-follow."
|
|
359
|
+
})
|
|
360
|
+
);
|
|
341
361
|
continue;
|
|
342
362
|
}
|
|
343
363
|
const dirMatch = trimmed.match(DIRECTION_RE);
|
|
@@ -598,4 +618,4 @@ export {
|
|
|
598
618
|
EVENT_LINE_DIAGNOSTICS,
|
|
599
619
|
parseEventLine
|
|
600
620
|
};
|
|
601
|
-
//# sourceMappingURL=chunk-
|
|
621
|
+
//# sourceMappingURL=chunk-UK6DKJLD.js.map
|
|
@@ -11,15 +11,18 @@ import {
|
|
|
11
11
|
LEGEND_PILL_FONT_SIZE,
|
|
12
12
|
LEGEND_PILL_PAD,
|
|
13
13
|
measureLegendText
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4RGZFA7H.js";
|
|
15
15
|
import {
|
|
16
16
|
measureText
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4ASYQ347.js";
|
|
18
18
|
import {
|
|
19
19
|
injectDefaultTagMetadata,
|
|
20
20
|
resolveTagColor,
|
|
21
21
|
tagAttrKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CMVZWP32.js";
|
|
23
|
+
import {
|
|
24
|
+
legendSuppressed
|
|
25
|
+
} from "./chunk-YJVA3QUU.js";
|
|
23
26
|
|
|
24
27
|
// src/org/layout.ts
|
|
25
28
|
import { hierarchy, tree } from "d3-hierarchy";
|
|
@@ -183,7 +186,10 @@ function injectDefaultMetadata(roots, tagGroups) {
|
|
|
183
186
|
function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expandAllLegend) {
|
|
184
187
|
if (parsed.roots.length === 0) {
|
|
185
188
|
const showEyeIcons2 = hiddenAttributes !== void 0;
|
|
186
|
-
const legendGroups2 = computeLegendGroups(
|
|
189
|
+
const legendGroups2 = computeLegendGroups(
|
|
190
|
+
legendSuppressed(parsed.options) ? [] : parsed.tagGroups,
|
|
191
|
+
showEyeIcons2
|
|
192
|
+
);
|
|
187
193
|
if (legendGroups2.length === 0) {
|
|
188
194
|
return {
|
|
189
195
|
nodes: [],
|
|
@@ -211,6 +217,11 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
211
217
|
height: cy - LEGEND_GROUP_GAP + MARGIN
|
|
212
218
|
};
|
|
213
219
|
}
|
|
220
|
+
const isLR = parsed.direction === "LR";
|
|
221
|
+
const depthExtent = (tn) => isLR ? tn.width : tn.height;
|
|
222
|
+
const crossExtent = (tn) => isLR ? tn.height : tn.width;
|
|
223
|
+
const ptToScreen = (ax, ay) => isLR ? { x: ay, y: ax } : { x: ax, y: ay };
|
|
224
|
+
const screenTopLeft = (ax, ay, w, h2) => isLR ? { left: ay, top: ax - h2 / 2 } : { left: ax - w / 2, top: ay };
|
|
214
225
|
injectDefaultMetadata(parsed.roots, parsed.tagGroups);
|
|
215
226
|
const subNodeLabel = parsed.options["sub-node-label"] ?? void 0;
|
|
216
227
|
const showSubNodeCount = ["yes", "on"].includes(
|
|
@@ -257,6 +268,10 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
257
268
|
for (const tn of allTreeNodes) {
|
|
258
269
|
tn.width = maxWidth;
|
|
259
270
|
}
|
|
271
|
+
const maxDepthExtent = isLR ? maxWidth : maxHeight;
|
|
272
|
+
const maxCrossExtent = isLR ? maxHeight : maxWidth;
|
|
273
|
+
const depthGap = V_GAP;
|
|
274
|
+
const crossGap = H_GAP;
|
|
260
275
|
const leafStacks = /* @__PURE__ */ new Map();
|
|
261
276
|
const collapseLeafContainers = (tn) => {
|
|
262
277
|
for (const child of tn.children) collapseLeafContainers(child);
|
|
@@ -270,7 +285,8 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
270
285
|
for (const child of tn.children) {
|
|
271
286
|
child.width = maxW;
|
|
272
287
|
}
|
|
273
|
-
const
|
|
288
|
+
const stackDepth = tn.children.reduce((s, c) => s + depthExtent(c), 0) + (tn.children.length - 1) * STACK_V_GAP;
|
|
289
|
+
const stackCross = Math.max(...tn.children.map((c) => crossExtent(c)));
|
|
274
290
|
tn.children = [
|
|
275
291
|
{
|
|
276
292
|
orgNode: {
|
|
@@ -283,8 +299,8 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
283
299
|
lineNumber: 0
|
|
284
300
|
},
|
|
285
301
|
children: [],
|
|
286
|
-
width:
|
|
287
|
-
height:
|
|
302
|
+
width: isLR ? stackDepth : stackCross,
|
|
303
|
+
height: isLR ? stackCross : stackDepth
|
|
288
304
|
}
|
|
289
305
|
];
|
|
290
306
|
}
|
|
@@ -293,8 +309,8 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
293
309
|
centerHeavyChildren(root);
|
|
294
310
|
const h = hierarchy(root, (d) => d.children);
|
|
295
311
|
const treeLayout = tree().nodeSize([
|
|
296
|
-
|
|
297
|
-
|
|
312
|
+
maxCrossExtent + crossGap,
|
|
313
|
+
maxDepthExtent + depthGap
|
|
298
314
|
]);
|
|
299
315
|
treeLayout(h);
|
|
300
316
|
{
|
|
@@ -303,16 +319,17 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
303
319
|
for (const d of descendants) {
|
|
304
320
|
if (d.data.orgNode.id.startsWith("__stack_")) continue;
|
|
305
321
|
const cur = levelMaxHeight.get(d.depth) ?? 0;
|
|
306
|
-
|
|
322
|
+
const ext = depthExtent(d.data);
|
|
323
|
+
if (ext > cur) levelMaxHeight.set(d.depth, ext);
|
|
307
324
|
}
|
|
308
325
|
const maxDepth = Math.max(...levelMaxHeight.keys(), 0);
|
|
309
326
|
const compactedY = /* @__PURE__ */ new Map();
|
|
310
327
|
const rootDepth = treeNodes.length === 1 ? 0 : 1;
|
|
311
328
|
compactedY.set(rootDepth, 0);
|
|
312
329
|
for (let d = rootDepth + 1; d <= maxDepth; d++) {
|
|
313
|
-
const parentH = levelMaxHeight.get(d - 1) ??
|
|
330
|
+
const parentH = levelMaxHeight.get(d - 1) ?? maxDepthExtent;
|
|
314
331
|
const prevY = compactedY.get(d - 1) ?? 0;
|
|
315
|
-
compactedY.set(d, prevY + parentH +
|
|
332
|
+
compactedY.set(d, prevY + parentH + depthGap);
|
|
316
333
|
}
|
|
317
334
|
for (const d of h.descendants()) {
|
|
318
335
|
if (d.data.orgNode.id === "__virtual_root__") continue;
|
|
@@ -327,7 +344,7 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
327
344
|
const actualLevelGap = childY - d.y;
|
|
328
345
|
const metaCount = Object.keys(d.data.orgNode.metadata).length;
|
|
329
346
|
const headerHeight = CONTAINER_LABEL_HEIGHT + metaCount * CONTAINER_META_LINE_HEIGHT;
|
|
330
|
-
const desiredGap = headerHeight + 15;
|
|
347
|
+
const desiredGap = isLR ? CONTAINER_PAD_X : headerHeight + 15;
|
|
331
348
|
const shiftUp = actualLevelGap - desiredGap;
|
|
332
349
|
if (shiftUp <= 0) continue;
|
|
333
350
|
const shift = (node) => {
|
|
@@ -345,10 +362,10 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
345
362
|
if (d.data.orgNode.isContainer) continue;
|
|
346
363
|
if (!d.children || d.children.length === 0) continue;
|
|
347
364
|
if (!d.children.every((c) => c.data.orgNode.isContainer)) continue;
|
|
348
|
-
const parentBottomY = d.y + d.data
|
|
365
|
+
const parentBottomY = d.y + depthExtent(d.data);
|
|
349
366
|
const firstChildY = Math.min(...d.children.map((c) => c.y));
|
|
350
367
|
const currentGap = firstChildY - parentBottomY;
|
|
351
|
-
const desiredGap =
|
|
368
|
+
const desiredGap = depthGap * 0.6;
|
|
352
369
|
const shiftUp = currentGap - desiredGap;
|
|
353
370
|
if (shiftUp <= 0) continue;
|
|
354
371
|
const shiftDown = (node) => {
|
|
@@ -365,8 +382,8 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
365
382
|
}
|
|
366
383
|
{
|
|
367
384
|
const subtreeExtent = (node) => {
|
|
368
|
-
let min = node.x - node.data
|
|
369
|
-
let max = node.x + node.data
|
|
385
|
+
let min = node.x - crossExtent(node.data) / 2;
|
|
386
|
+
let max = node.x + crossExtent(node.data) / 2;
|
|
370
387
|
if (node.children) {
|
|
371
388
|
for (const child of node.children) {
|
|
372
389
|
const childExt = subtreeExtent(child);
|
|
@@ -377,6 +394,10 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
377
394
|
if (node.data.orgNode.isContainer) {
|
|
378
395
|
min -= CONTAINER_PAD_X;
|
|
379
396
|
max += CONTAINER_PAD_X;
|
|
397
|
+
if (isLR) {
|
|
398
|
+
const metaCount = Object.keys(node.data.orgNode.metadata).length;
|
|
399
|
+
min -= CONTAINER_LABEL_HEIGHT + metaCount * CONTAINER_META_LINE_HEIGHT;
|
|
400
|
+
}
|
|
380
401
|
}
|
|
381
402
|
return { minX: min, maxX: max };
|
|
382
403
|
};
|
|
@@ -398,7 +419,7 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
398
419
|
const positions = [0];
|
|
399
420
|
for (let i = 1; i < children.length; i++) {
|
|
400
421
|
const prevRight = positions[i - 1] + extents[i - 1].relRight;
|
|
401
|
-
positions[i] = prevRight +
|
|
422
|
+
positions[i] = prevRight + crossGap - extents[i].relLeft;
|
|
402
423
|
}
|
|
403
424
|
const newCenter = (positions[0] + positions[positions.length - 1]) / 2;
|
|
404
425
|
const centerShift = currentCenter - newCenter;
|
|
@@ -443,29 +464,33 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
443
464
|
cx: d.x,
|
|
444
465
|
cy: currentY
|
|
445
466
|
});
|
|
446
|
-
currentY += child
|
|
467
|
+
currentY += depthExtent(child) + STACK_V_GAP;
|
|
447
468
|
}
|
|
448
469
|
}
|
|
470
|
+
const screenRect = (ax, ay, w, h2) => {
|
|
471
|
+
const { left, top } = screenTopLeft(ax, ay, w, h2);
|
|
472
|
+
return { left, top, right: left + w, bottom: top + h2 };
|
|
473
|
+
};
|
|
474
|
+
const growBBox = (r) => {
|
|
475
|
+
if (r.left < minX) minX = r.left;
|
|
476
|
+
if (r.right > maxX) maxX = r.right;
|
|
477
|
+
if (r.top < minY) minY = r.top;
|
|
478
|
+
if (r.bottom > maxY) maxY = r.bottom;
|
|
479
|
+
};
|
|
449
480
|
for (const d of h.descendants()) {
|
|
450
481
|
if (d.data.orgNode.id === "__virtual_root__") continue;
|
|
451
482
|
if (d.data.orgNode.id.startsWith("__stack_")) continue;
|
|
452
|
-
|
|
453
|
-
const ht = d.data.height;
|
|
454
|
-
const cx = d.x;
|
|
455
|
-
const cy = d.y;
|
|
456
|
-
if (cx - w / 2 < minX) minX = cx - w / 2;
|
|
457
|
-
if (cx + w / 2 > maxX) maxX = cx + w / 2;
|
|
458
|
-
if (cy < minY) minY = cy;
|
|
459
|
-
if (cy + ht > maxY) maxY = cy + ht;
|
|
483
|
+
growBBox(screenRect(d.x, d.y, d.data.width, d.data.height));
|
|
460
484
|
}
|
|
461
485
|
for (const ec of expandedChildren) {
|
|
462
|
-
|
|
463
|
-
if (ec.cx + ec.width / 2 > maxX) maxX = ec.cx + ec.width / 2;
|
|
464
|
-
if (ec.cy < minY) minY = ec.cy;
|
|
465
|
-
if (ec.cy + ec.height > maxY) maxY = ec.cy + ec.height;
|
|
486
|
+
growBBox(screenRect(ec.cx, ec.cy, ec.width, ec.height));
|
|
466
487
|
}
|
|
467
488
|
const offsetX = -minX + MARGIN;
|
|
468
489
|
const offsetY = -minY + MARGIN;
|
|
490
|
+
const placeCard = (ax, ay, w, h2) => {
|
|
491
|
+
const r = screenRect(ax, ay, w, h2);
|
|
492
|
+
return { x: r.left + offsetX + w / 2, y: r.top + offsetY };
|
|
493
|
+
};
|
|
469
494
|
const subNodeKey = subNodeLabel ?? "Sub-node Count";
|
|
470
495
|
for (const ec of expandedChildren) {
|
|
471
496
|
const hc = hiddenCounts?.get(ec.orgNode.id);
|
|
@@ -488,14 +513,17 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
488
513
|
isContainer: ec.orgNode.isContainer,
|
|
489
514
|
lineNumber: ec.orgNode.lineNumber,
|
|
490
515
|
...ecColor !== void 0 && { color: ecColor },
|
|
491
|
-
|
|
492
|
-
y: ec.cy + offsetY,
|
|
516
|
+
...placeCard(ec.cx, ec.cy, ec.width, ec.height),
|
|
493
517
|
width: ec.width,
|
|
494
518
|
height: ec.height,
|
|
495
519
|
...hc !== void 0 && { hiddenCount: hc },
|
|
496
520
|
...ecHasChildren !== void 0 && { hasChildren: ecHasChildren }
|
|
497
521
|
});
|
|
498
522
|
}
|
|
523
|
+
const placePoint = (ax, ay) => {
|
|
524
|
+
const p = ptToScreen(ax, ay);
|
|
525
|
+
return { x: p.x + offsetX, y: p.y + offsetY };
|
|
526
|
+
};
|
|
499
527
|
const busGroups = /* @__PURE__ */ new Map();
|
|
500
528
|
for (const d of h.descendants()) {
|
|
501
529
|
if (d.data.orgNode.id === "__virtual_root__") continue;
|
|
@@ -503,8 +531,7 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
503
531
|
const orgNode = d.data.orgNode;
|
|
504
532
|
const w = d.data.width;
|
|
505
533
|
const ht = d.data.height;
|
|
506
|
-
const x = d.x
|
|
507
|
-
const y = d.y + offsetY;
|
|
534
|
+
const { x, y } = placeCard(d.x, d.y, w, ht);
|
|
508
535
|
const hc = hiddenCounts?.get(orgNode.id);
|
|
509
536
|
const nodeMeta = filterMetadata(orgNode.metadata, hiddenAttributes);
|
|
510
537
|
if (!orgNode.isContainer && showSubNodeCount && !(hc != null && hc > 0)) {
|
|
@@ -536,19 +563,16 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
536
563
|
if (d.parent && d.parent.data.orgNode.id !== "__virtual_root__" && !parentIsContainerBox) {
|
|
537
564
|
const parentId = d.parent.data.orgNode.id;
|
|
538
565
|
if (!busGroups.has(parentId)) {
|
|
539
|
-
const px = d.parent.x + offsetX;
|
|
540
|
-
const py = d.parent.y + offsetY;
|
|
541
|
-
const parentH = d.parent.data.height;
|
|
542
566
|
busGroups.set(parentId, {
|
|
543
|
-
parentX:
|
|
544
|
-
parentBottomY:
|
|
567
|
+
parentX: d.parent.x,
|
|
568
|
+
parentBottomY: d.parent.y + depthExtent(d.parent.data),
|
|
545
569
|
children: []
|
|
546
570
|
});
|
|
547
571
|
}
|
|
548
572
|
busGroups.get(parentId).children.push({
|
|
549
573
|
id: orgNode.id,
|
|
550
|
-
x,
|
|
551
|
-
topY: y
|
|
574
|
+
x: d.x,
|
|
575
|
+
topY: d.y
|
|
552
576
|
});
|
|
553
577
|
}
|
|
554
578
|
}
|
|
@@ -561,10 +585,10 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
561
585
|
sourceId: parentId,
|
|
562
586
|
targetId: child.id,
|
|
563
587
|
points: [
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
588
|
+
placePoint(parentX, parentBottomY),
|
|
589
|
+
placePoint(parentX, midY),
|
|
590
|
+
placePoint(child.x, midY),
|
|
591
|
+
placePoint(child.x, child.topY)
|
|
568
592
|
]
|
|
569
593
|
});
|
|
570
594
|
} else {
|
|
@@ -575,27 +599,18 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
575
599
|
layoutEdges.push({
|
|
576
600
|
sourceId: parentId,
|
|
577
601
|
targetId: parentId,
|
|
578
|
-
points: [
|
|
579
|
-
{ x: parentX, y: parentBottomY },
|
|
580
|
-
{ x: parentX, y: midY }
|
|
581
|
-
]
|
|
602
|
+
points: [placePoint(parentX, parentBottomY), placePoint(parentX, midY)]
|
|
582
603
|
});
|
|
583
604
|
layoutEdges.push({
|
|
584
605
|
sourceId: parentId,
|
|
585
606
|
targetId: parentId,
|
|
586
|
-
points: [
|
|
587
|
-
{ x: leftX, y: midY },
|
|
588
|
-
{ x: rightX, y: midY }
|
|
589
|
-
]
|
|
607
|
+
points: [placePoint(leftX, midY), placePoint(rightX, midY)]
|
|
590
608
|
});
|
|
591
609
|
for (const child of children) {
|
|
592
610
|
layoutEdges.push({
|
|
593
611
|
sourceId: parentId,
|
|
594
612
|
targetId: child.id,
|
|
595
|
-
points: [
|
|
596
|
-
{ x: child.x, y: midY },
|
|
597
|
-
{ x: child.x, y: child.topY }
|
|
598
|
-
]
|
|
613
|
+
points: [placePoint(child.x, midY), placePoint(child.x, child.topY)]
|
|
599
614
|
});
|
|
600
615
|
}
|
|
601
616
|
}
|
|
@@ -608,8 +623,6 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
608
623
|
const EMPTY_CONTAINER_MIN_HEIGHT = 60;
|
|
609
624
|
for (const d of allContainerNodes) {
|
|
610
625
|
if (d.children && d.children.length > 0) continue;
|
|
611
|
-
const cx = d.x + offsetX;
|
|
612
|
-
const cy = d.y + offsetY;
|
|
613
626
|
const metaCount = Object.keys(d.data.orgNode.metadata).length;
|
|
614
627
|
const labelHeight = CONTAINER_LABEL_HEIGHT + metaCount * CONTAINER_META_LINE_HEIGHT;
|
|
615
628
|
const boxWidth = d.data.width;
|
|
@@ -617,8 +630,9 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
617
630
|
labelHeight + CONTAINER_PAD_BOTTOM,
|
|
618
631
|
EMPTY_CONTAINER_MIN_HEIGHT
|
|
619
632
|
);
|
|
620
|
-
const
|
|
621
|
-
const
|
|
633
|
+
const emptyTL = screenTopLeft(d.x, d.y, boxWidth, boxHeight);
|
|
634
|
+
const boxX = emptyTL.left + offsetX;
|
|
635
|
+
const boxY = emptyTL.top + offsetY;
|
|
622
636
|
containerBoundsMap.set(d.data.orgNode.id, {
|
|
623
637
|
minX: boxX,
|
|
624
638
|
maxX: boxX + boxWidth,
|
|
@@ -667,46 +681,79 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
667
681
|
if (allDesc.length === 0) continue;
|
|
668
682
|
let descMinX = Infinity;
|
|
669
683
|
let descMaxX = -Infinity;
|
|
684
|
+
let descMinY = Infinity;
|
|
670
685
|
let descMaxY = -Infinity;
|
|
686
|
+
const growDesc = (left, top, right, bottom) => {
|
|
687
|
+
if (left < descMinX) descMinX = left;
|
|
688
|
+
if (right > descMaxX) descMaxX = right;
|
|
689
|
+
if (top < descMinY) descMinY = top;
|
|
690
|
+
if (bottom > descMaxY) descMaxY = bottom;
|
|
691
|
+
};
|
|
671
692
|
for (const desc of allDesc) {
|
|
672
693
|
const innerBounds = containerBoundsMap.get(desc.data.orgNode.id);
|
|
673
694
|
if (innerBounds) {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
695
|
+
growDesc(
|
|
696
|
+
innerBounds.minX,
|
|
697
|
+
innerBounds.minY,
|
|
698
|
+
innerBounds.maxX,
|
|
699
|
+
innerBounds.maxY
|
|
700
|
+
);
|
|
677
701
|
} else if (desc.data.orgNode.id.startsWith("__stack_")) {
|
|
678
702
|
const cid = desc.data.orgNode.id.replace("__stack_", "");
|
|
679
703
|
const stack = leafStacks.get(cid);
|
|
680
704
|
if (stack) {
|
|
681
705
|
for (const ec of expandedChildren) {
|
|
682
706
|
if (ec.orgNode.parentId !== cid) continue;
|
|
683
|
-
const
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
707
|
+
const r = screenRect(ec.cx, ec.cy, ec.width, ec.height);
|
|
708
|
+
growDesc(
|
|
709
|
+
r.left + offsetX,
|
|
710
|
+
r.top + offsetY,
|
|
711
|
+
r.right + offsetX,
|
|
712
|
+
r.bottom + offsetY
|
|
713
|
+
);
|
|
688
714
|
}
|
|
689
715
|
}
|
|
690
716
|
} else {
|
|
691
|
-
const
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
717
|
+
const r = screenRect(
|
|
718
|
+
desc.x,
|
|
719
|
+
desc.y,
|
|
720
|
+
desc.data.width,
|
|
721
|
+
desc.data.height
|
|
722
|
+
);
|
|
723
|
+
growDesc(
|
|
724
|
+
r.left + offsetX,
|
|
725
|
+
r.top + offsetY,
|
|
726
|
+
r.right + offsetX,
|
|
727
|
+
r.bottom + offsetY
|
|
728
|
+
);
|
|
698
729
|
}
|
|
699
730
|
}
|
|
700
|
-
const
|
|
701
|
-
const
|
|
731
|
+
const ownTL = screenTopLeft(d.x, d.y, d.data.width, d.data.height);
|
|
732
|
+
const containerCenterX = ownTL.left + d.data.width / 2 + offsetX;
|
|
733
|
+
const containerLeftX = ownTL.left + offsetX;
|
|
734
|
+
const containerY = ownTL.top + offsetY;
|
|
702
735
|
const metaCount = Object.keys(d.data.orgNode.metadata).length;
|
|
703
736
|
const labelHeight = CONTAINER_LABEL_HEIGHT + metaCount * CONTAINER_META_LINE_HEIGHT;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
737
|
+
let boxY;
|
|
738
|
+
let boxHeight;
|
|
739
|
+
let centeredBoxX;
|
|
740
|
+
let finalBoxWidth;
|
|
741
|
+
if (isLR) {
|
|
742
|
+
centeredBoxX = containerLeftX;
|
|
743
|
+
finalBoxWidth = Math.max(
|
|
744
|
+
descMaxX - containerLeftX + CONTAINER_PAD_X,
|
|
745
|
+
d.data.width
|
|
746
|
+
);
|
|
747
|
+
boxY = descMinY - labelHeight - CONTAINER_PAD_X;
|
|
748
|
+
boxHeight = descMaxY - boxY + CONTAINER_PAD_BOTTOM;
|
|
749
|
+
} else {
|
|
750
|
+
boxY = containerY;
|
|
751
|
+
boxHeight = descMaxY - containerY + CONTAINER_PAD_BOTTOM;
|
|
752
|
+
const boxX = descMinX - CONTAINER_PAD_X;
|
|
753
|
+
const contentWidth = descMaxX - descMinX + CONTAINER_PAD_X * 2;
|
|
754
|
+
finalBoxWidth = Math.max(contentWidth, d.data.width);
|
|
755
|
+
centeredBoxX = finalBoxWidth > contentWidth ? containerCenterX - finalBoxWidth / 2 : boxX;
|
|
756
|
+
}
|
|
710
757
|
containerBoundsMap.set(d.data.orgNode.id, {
|
|
711
758
|
minX: centeredBoxX,
|
|
712
759
|
maxX: centeredBoxX + finalBoxWidth,
|
|
@@ -739,17 +786,30 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
739
786
|
containers.reverse();
|
|
740
787
|
let finalMinX = minX;
|
|
741
788
|
let finalMaxX = maxX;
|
|
789
|
+
let finalMinY = minY;
|
|
742
790
|
let finalMaxY = maxY;
|
|
743
791
|
for (const c of containers) {
|
|
744
792
|
const cLeft = c.x - offsetX;
|
|
745
793
|
const cRight = cLeft + c.width;
|
|
746
|
-
const
|
|
794
|
+
const cTop = c.y - offsetY;
|
|
795
|
+
const cBottom = cTop + c.height;
|
|
747
796
|
if (cLeft < finalMinX) finalMinX = cLeft;
|
|
748
797
|
if (cRight > finalMaxX) finalMaxX = cRight;
|
|
798
|
+
if (cTop < finalMinY) finalMinY = cTop;
|
|
749
799
|
if (cBottom > finalMaxY) finalMaxY = cBottom;
|
|
750
800
|
}
|
|
801
|
+
const topOvershoot = minY - finalMinY;
|
|
802
|
+
if (topOvershoot > 0) {
|
|
803
|
+
for (const n of layoutNodes) n.y += topOvershoot;
|
|
804
|
+
for (const c of containers) c.y += topOvershoot;
|
|
805
|
+
for (const e of layoutEdges) {
|
|
806
|
+
for (const p of e.points) {
|
|
807
|
+
p.y += topOvershoot;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
}
|
|
751
811
|
const totalWidth = finalMaxX - finalMinX + MARGIN * 2;
|
|
752
|
-
const totalHeight = finalMaxY -
|
|
812
|
+
const totalHeight = finalMaxY - finalMinY + MARGIN * 2;
|
|
753
813
|
const usedValuesByGroup = /* @__PURE__ */ new Map();
|
|
754
814
|
for (const group of parsed.tagGroups) {
|
|
755
815
|
const key = tagAttrKey(group.name);
|
|
@@ -765,7 +825,7 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
765
825
|
}
|
|
766
826
|
const showEyeIcons = hiddenAttributes !== void 0;
|
|
767
827
|
const legendGroups = computeLegendGroups(
|
|
768
|
-
parsed.tagGroups,
|
|
828
|
+
legendSuppressed(parsed.options) ? [] : parsed.tagGroups,
|
|
769
829
|
showEyeIcons,
|
|
770
830
|
usedValuesByGroup
|
|
771
831
|
);
|
|
@@ -810,4 +870,4 @@ function layoutOrg(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, expan
|
|
|
810
870
|
export {
|
|
811
871
|
layoutOrg
|
|
812
872
|
};
|
|
813
|
-
//# sourceMappingURL=chunk-
|
|
873
|
+
//# sourceMappingURL=chunk-UKP5HWB5.js.map
|