@diagrammo/dgmo 0.72.0 → 0.74.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 +20 -11
- package/dist/advanced.js +115 -116
- package/dist/{analyzer-HQUXKZ5J.js → analyzer-FHRJUIMW.js} +3 -3
- package/dist/block.d.ts +2 -2
- package/dist/block.js +63 -75
- package/dist/calculator-CVQ54JNE.js +13 -0
- package/dist/{chart-meta-6JaOudSs.d.ts → chart-meta-lP8Rl19E.d.ts} +4 -3
- package/dist/chart-meta.d.ts +3 -3
- package/dist/chart-meta.js +49 -49
- package/dist/{charts-d3-6IHGTXBR.js → charts-d3-LWHTOVX7.js} +12 -12
- package/dist/{chunk-HKL66CKW.js → chunk-2MJSSDK5.js} +9 -9
- package/dist/{chunk-MFSTE3YG.js → chunk-2NRIGEHZ.js} +26 -18
- package/dist/{chunk-376ATV2Q.js → chunk-2QRIMMIH.js} +5 -5
- package/dist/{chunk-JIWDWOYA.js → chunk-3H4PDNP4.js} +4 -4
- package/dist/{chunk-MKNWMFZU.js → chunk-3SP6G4LN.js} +31 -27
- package/dist/{chunk-VE7PPEU3.js → chunk-474D3IUN.js} +8 -8
- package/dist/{chunk-MTPKBSTR.js → chunk-4SXHMFFP.js} +2 -2
- package/dist/{chunk-WPXHTYET.js → chunk-4YER7UCV.js} +4 -4
- package/dist/{chunk-P6RPHRX7.js → chunk-57Z2WXJ2.js} +6 -6
- package/dist/{chunk-7TSBM4BV.js → chunk-5KE6KHY6.js} +5 -5
- package/dist/{chunk-DZ34UUXC.js → chunk-5NAOTRLN.js} +11 -11
- package/dist/{chunk-MC2H32SM.js → chunk-5PFNUDXR.js} +4 -4
- package/dist/{chunk-OLMWTJVU.js → chunk-5SI6T5A5.js} +1 -1
- package/dist/{chunk-UJXCDF4E.js → chunk-5VMUVJO4.js} +2 -2
- package/dist/{chunk-ZGVVPILJ.js → chunk-6DYZ2JM6.js} +2 -2
- package/dist/{chunk-DPGI742S.js → chunk-76LHNLGX.js} +4 -4
- package/dist/{chunk-MX3BYU7V.js → chunk-76NHL5UG.js} +3 -3
- package/dist/{chunk-AEYRSPVV.js → chunk-7BMX2M3F.js} +3 -3
- package/dist/{chunk-FFD6A3B2.js → chunk-7NSNE52V.js} +18 -11
- package/dist/{chunk-2OTYNNHS.js → chunk-ALBVWTU4.js} +10 -10
- package/dist/{chunk-UF3EALKC.js → chunk-ALDU62VN.js} +10 -10
- package/dist/{chunk-W27BULCB.js → chunk-BBH5IAAR.js} +9 -9
- package/dist/{chunk-HWNF22ZZ.js → chunk-BWJLLNUX.js} +5 -5
- package/dist/{chunk-3HN32MEK.js → chunk-C2WH3BMS.js} +4 -4
- package/dist/{chunk-QITH5XOX.js → chunk-CDFIZHVD.js} +11 -11
- package/dist/{chunk-66VHK7PP.js → chunk-CMQJP5L4.js} +9 -9
- package/dist/{chunk-GK4AU57A.js → chunk-CQKD6GOC.js} +5 -5
- package/dist/{chunk-NUF7YTHA.js → chunk-CRLVJZWX.js} +3 -3
- package/dist/{chunk-WMHHNK44.js → chunk-DGPFFRLS.js} +2 -2
- package/dist/{chunk-UTVKOGFF.js → chunk-DJL5PO27.js} +94 -40
- package/dist/{chunk-RJI6MHHK.js → chunk-DU3OIBQE.js} +6 -6
- package/dist/{chunk-YYBQ55V2.js → chunk-DY7KDZUF.js} +4 -4
- package/dist/{chunk-BSI5EOAX.js → chunk-E3BJVEMZ.js} +7 -11
- package/dist/{chunk-7NK42OIB.js → chunk-E6PNTYRK.js} +2 -2
- package/dist/{chunk-VLXYWPPE.js → chunk-EPH4UMUE.js} +7 -7
- package/dist/{chunk-MUVASOBD.js → chunk-EV6BZMBZ.js} +10 -10
- package/dist/{chunk-MWWRIOEN.js → chunk-F4V67JXG.js} +3 -3
- package/dist/{chunk-HBVKOYZD.js → chunk-FGXBIOVK.js} +3 -3
- package/dist/{chunk-ELIGVSLE.js → chunk-FL5IKZQA.js} +12 -6
- package/dist/{chunk-W7SZKJR6.js → chunk-FPRMP6YA.js} +4 -4
- package/dist/{chunk-IKHV5IJB.js → chunk-GE5RO4BS.js} +2 -2
- package/dist/{chunk-CGLBK5Q4.js → chunk-GJQQCI63.js} +5 -4
- package/dist/{chunk-KWRW6BLG.js → chunk-GLREDNBA.js} +2 -2
- package/dist/{chunk-N5247W2W.js → chunk-GQJ35I2I.js} +61 -54
- package/dist/{chunk-VGLSKDDI.js → chunk-GRN44Z6A.js} +3 -3
- package/dist/{chunk-7U3NDE7T.js → chunk-HFCKU73Y.js} +7 -7
- package/dist/{chunk-KOVRFBGR.js → chunk-ICVIJLBA.js} +16 -11
- package/dist/{chunk-RRX4Z4TH.js → chunk-IHOFUR74.js} +2 -2
- package/dist/{chunk-UNM2PX5D.js → chunk-JLODGGN2.js} +4 -4
- package/dist/{chunk-UCGEBFUC.js → chunk-JSYAH7KR.js} +4 -4
- package/dist/{chunk-GCTKJDLY.js → chunk-KR432TCU.js} +10 -10
- package/dist/{chunk-PBV2C3BW.js → chunk-KRTLS3G6.js} +24 -20
- package/dist/{chunk-LTGOPJUV.js → chunk-KWSBNLSC.js} +3 -3
- package/dist/{chunk-XIZCHGP7.js → chunk-L2EA5YLO.js} +9 -9
- package/dist/{chunk-KJWIU5AM.js → chunk-LKS56RDT.js} +3 -3
- package/dist/{chunk-ET4R3AU5.js → chunk-LM3HY3VG.js} +2 -2
- package/dist/{chunk-O4OVVK6J.js → chunk-LSHMDQZQ.js} +7 -7
- package/dist/{chunk-FLXDMH7B.js → chunk-LXXVHLTH.js} +30 -24
- package/dist/{chunk-L3XB446I.js → chunk-LYLRNAX2.js} +2 -2
- package/dist/{chunk-UY77QQWU.js → chunk-M526IKKH.js} +11 -7
- package/dist/{chunk-YH5KJIO5.js → chunk-M5JT2AU7.js} +8 -8
- package/dist/{chunk-ZJJWON5O.js → chunk-M5OOAP65.js} +271 -5
- package/dist/{chunk-3SNE4CLI.js → chunk-MDEG62W7.js} +7 -7
- package/dist/{chunk-RTTELOOP.js → chunk-MS5574I7.js} +3 -3
- package/dist/{chunk-I55PVEIX.js → chunk-MSVQ2YCY.js} +2 -2
- package/dist/{chunk-FTPNAYL2.js → chunk-NHQ7HUAS.js} +4 -4
- package/dist/{chunk-2VBJCTSG.js → chunk-NW3VXCXR.js} +5 -5
- package/dist/{chunk-6PA32CUB.js → chunk-OKXWPKUC.js} +4 -4
- package/dist/{chunk-UKOOGXRF.js → chunk-PHRBLJ3K.js} +8 -8
- package/dist/{chunk-LSHROB27.js → chunk-Q6BAFS7I.js} +5 -5
- package/dist/{chunk-WRWUZ2C4.js → chunk-Q6LP67RP.js} +4 -4
- package/dist/{chunk-IW6N2JJL.js → chunk-Q74GP3GK.js} +2 -2
- package/dist/{chunk-IXVK7XCN.js → chunk-QMFIZQTB.js} +2 -2
- package/dist/{chunk-QAJFIXJE.js → chunk-QOVM5VRC.js} +28 -28
- package/dist/{chunk-6S53NO3M.js → chunk-QT5UMFPE.js} +5 -5
- package/dist/{chunk-HZQCKXPB.js → chunk-R5JPMW2F.js} +42 -42
- package/dist/{chunk-SPA7DCB3.js → chunk-RN3PAL4E.js} +3 -3
- package/dist/{chunk-REBTZP3W.js → chunk-RQ6SEQOT.js} +6 -6
- package/dist/{chunk-NTBHGUXY.js → chunk-RWFMOVHG.js} +4 -4
- package/dist/{chunk-QPG55HGH.js → chunk-S5P5Z5Y5.js} +5 -5
- package/dist/{chunk-WF2HDQPG.js → chunk-S6OXNZBM.js} +3 -3
- package/dist/{chunk-NEC7R2CB.js → chunk-SH4PPRU7.js} +3 -3
- package/dist/{chunk-UNTFANSM.js → chunk-SUA56ZSB.js} +15 -10
- package/dist/{chunk-7SEQPFBX.js → chunk-SWEKCK34.js} +33 -28
- package/dist/{chunk-BYSRXYRW.js → chunk-SXZS56YM.js} +6 -6
- package/dist/{chunk-7BHM774H.js → chunk-T6BO4VO6.js} +8 -8
- package/dist/{chunk-DHKVHP3Y.js → chunk-TC63QU4M.js} +18 -16
- package/dist/{chunk-NJKUTY4M.js → chunk-TDHD3HNO.js} +5 -5
- package/dist/{chunk-T7W5LM4N.js → chunk-TN754B3R.js} +5 -5
- package/dist/{chunk-DEVZWCD5.js → chunk-TPN7RJOM.js} +21 -12
- package/dist/{chunk-4VUFJ7UA.js → chunk-TTCXHFFB.js} +6 -6
- package/dist/{chunk-E36Q5ABQ.js → chunk-U74EGVOA.js} +7 -7
- package/dist/{chunk-NNMNHE3J.js → chunk-UCZBRGJN.js} +3 -3
- package/dist/{chunk-VMXV2CL5.js → chunk-UJBP57UJ.js} +29 -12
- package/dist/{chunk-PKTRDOBI.js → chunk-ULEWCCBN.js} +3 -3
- package/dist/{chunk-YTFA4VTW.js → chunk-VBJCGGNF.js} +3 -3
- package/dist/{chunk-TF7CFAZ5.js → chunk-W7UBPARG.js} +4 -4
- package/dist/{chunk-OQKP2X3D.js → chunk-WFA6IULY.js} +57 -3
- package/dist/{chunk-N34OTOGH.js → chunk-WQXD3IIN.js} +3 -3
- package/dist/{chunk-EETUTZ5C.js → chunk-WWQ6TUVK.js} +2 -2
- package/dist/{chunk-6OAKQTXQ.js → chunk-XCAEHWQB.js} +3 -3
- package/dist/{chunk-WEC3JPTN.js → chunk-XJLNQEQS.js} +8 -8
- package/dist/{chunk-EXNKNJ65.js → chunk-XOGQY4EC.js} +2 -2
- package/dist/{chunk-K6MQJ5IV.js → chunk-Y2CYNRL7.js} +3 -3
- package/dist/{chunk-PZVYUQJA.js → chunk-YDA46XHI.js} +4 -4
- package/dist/{chunk-U4NFAWQW.js → chunk-YJ5G2WRU.js} +9 -9
- package/dist/{chunk-6CLC26GU.js → chunk-YJMWEZOB.js} +2 -2
- package/dist/{chunk-6DGMS2WJ.js → chunk-YSMI6TNZ.js} +6 -6
- package/dist/{chunk-QX53GOI7.js → chunk-YT5ICQ4R.js} +2 -2
- package/dist/{chunk-7RAWNJI5.js → chunk-YXY6V2YN.js} +114 -107
- package/dist/{chunk-5DYDPP7K.js → chunk-Z7KVOVE4.js} +115 -240
- package/dist/{chunk-YG35ZCNW.js → chunk-ZM27UI5O.js} +36 -32
- package/dist/completion-registry.js +25 -21
- package/dist/countdown.js +26 -6
- package/dist/{d3-Bfhj-XBX.d.ts → d3--y67plmW.d.ts} +1 -1
- package/dist/{dgmo-router-Lya7cs3R.d.ts → dgmo-router-CY5j16Pl.d.ts} +1 -1
- package/dist/dgmo-router-KYNLRE7S.js +89 -0
- package/dist/dimensions-Q5SFPATB.js +22 -0
- package/dist/editor.js +1 -0
- package/dist/flowchart-parser-LY5GGQL2.js +21 -0
- package/dist/{flowchart-renderer-JMGOCLTQ.js → flowchart-renderer-TTUSBBQI.js} +12 -12
- package/dist/highlight.js +7 -18
- package/dist/index.d.ts +7 -7
- package/dist/index.js +60 -58
- package/dist/layout-5ILNODTP.js +15 -0
- package/dist/{layout-RD7GDM4I.js → layout-B5GQVXXY.js} +4 -4
- package/dist/{layout-5RUQ5FBZ.js → layout-DAYQ46PS.js} +3 -3
- package/dist/{layout-2DVT24YY.js → layout-EM4DLMAX.js} +6 -6
- package/dist/{layout-LVMWK4QY.js → layout-KQUSB45X.js} +4 -4
- package/dist/{layout-WIMQIHBU.js → layout-ROORJQ4X.js} +4 -4
- package/dist/layout-RV2T2YTT.js +15 -0
- package/dist/{layout-AWPST2S3.js → layout-UJ62RQQ3.js} +7 -7
- package/dist/layout-VUZ3MLOI.js +15 -0
- package/dist/{layout-BGXLVSXL.js → layout-ZAGUFT2G.js} +8 -8
- package/dist/{layout-search-C44CJQOB.js → layout-search-UOKEMER5.js} +4 -4
- package/dist/{legend-constants-FP5MFDD4.js → legend-constants-PLN2YHGM.js} +5 -5
- package/dist/{palettes-WQZ2TPVZ.js → palettes-54YSI3IX.js} +4 -4
- package/dist/parser-2GMHFSTS.js +16 -0
- package/dist/parser-3AOMUX5D.js +14 -0
- package/dist/parser-3KQONLXZ.js +11 -0
- package/dist/parser-4DLU4SNG.js +11 -0
- package/dist/parser-4KFJKLP2.js +11 -0
- package/dist/{parser-CDMP3UVH.js → parser-5XFGK5C5.js} +7 -7
- package/dist/parser-6FUESG4N.js +13 -0
- package/dist/parser-B2XQNHZM.js +11 -0
- package/dist/parser-CJNP7RKR.js +13 -0
- package/dist/parser-E3OHNNTH.js +12 -0
- package/dist/parser-EQ4I3TSH.js +20 -0
- package/dist/parser-F4ZKDGUZ.js +12 -0
- package/dist/parser-GCVSRQPY.js +17 -0
- package/dist/parser-H4ZUNLX4.js +15 -0
- package/dist/parser-JYIZEKAS.js +19 -0
- package/dist/{parser-ZIEEBJMU.js → parser-L7RXUKYN.js} +7 -7
- package/dist/{parser-TJ3SP2MJ.js → parser-L7T7FY3H.js} +7 -7
- package/dist/parser-LUOINP6H.js +15 -0
- package/dist/parser-LV7PQBUG.js +13 -0
- package/dist/parser-ML3LVNDV.js +13 -0
- package/dist/parser-PR3OR3LO.js +14 -0
- package/dist/parser-QOIZGW7I.js +17 -0
- package/dist/parser-RDBXEVI4.js +12 -0
- package/dist/parser-TA5TYZNL.js +18 -0
- package/dist/parser-UTR5WE4O.js +13 -0
- package/dist/parser-WCFG3DZA.js +11 -0
- package/dist/{parser-XM6JC3UK.js → parser-WMJEPZDC.js} +6 -6
- package/dist/{parser-O7GTECFP.js → parser-WQNT7T2P.js} +5 -5
- package/dist/parser-WWRRG2DV.js +15 -0
- package/dist/parser-XVSDFO56.js +11 -0
- package/dist/parser-YWQCC33R.js +16 -0
- package/dist/{parser-EX3AGFT5.js → parser-ZT3PU2HT.js} +6 -6
- package/dist/parser-ZXQZZK6W.js +15 -0
- package/dist/pert.d.ts +10 -0
- package/dist/{renderer-WLA3NQCC.js → renderer-227JWWHX.js} +13 -13
- package/dist/renderer-2WW35ZIW.js +23 -0
- package/dist/renderer-3FB56573.js +22 -0
- package/dist/renderer-3LD3ANCP.js +25 -0
- package/dist/renderer-46QQH33X.js +27 -0
- package/dist/{renderer-2T2RAFWX.js → renderer-4K6KR3U3.js} +14 -14
- package/dist/{renderer-UPTO25OX.js → renderer-55JP6AO4.js} +12 -12
- package/dist/renderer-6HRDO635.js +26 -0
- package/dist/renderer-6IGQEVTE.js +20 -0
- package/dist/renderer-6SSIELBC.js +16 -0
- package/dist/{renderer-IH5C7NQT.js → renderer-AA5CC4VJ.js} +6 -6
- package/dist/renderer-BUEFD2IF.js +21 -0
- package/dist/{renderer-VP4DPLDY.js → renderer-CF5TYQT4.js} +6 -6
- package/dist/{renderer-W7JC2CTQ.js → renderer-E5BYZTVH.js} +6 -6
- package/dist/renderer-EJXFEA5C.js +25 -0
- package/dist/{renderer-FAD65M5Z.js → renderer-EP4GRCDX.js} +6 -6
- package/dist/renderer-IPNSOM5J.js +26 -0
- package/dist/{renderer-ACGZ5KJG.js → renderer-N2X3WYBY.js} +17 -17
- package/dist/{renderer-Y3D36RIT.js → renderer-NECP7G4X.js} +11 -11
- package/dist/renderer-OTHBTGBN.js +16 -0
- package/dist/{renderer-ZRHTC24Q.js → renderer-OWBIWBMK.js} +11 -11
- package/dist/{renderer-IZFO3G22.js → renderer-P55KPBIX.js} +17 -17
- package/dist/{renderer-K73COK5L.js → renderer-QLZVE45Z.js} +8 -8
- package/dist/{renderer-QZRM6H4S.js → renderer-SCIHPARI.js} +5 -5
- package/dist/{renderer-Y4VC3VH4.js → renderer-TI7QABY7.js} +14 -15
- package/dist/renderer-U6PK5ZKD.js +24 -0
- package/dist/renderer-UUPNOGO5.js +25 -0
- package/dist/{renderer-CB44E262.js → renderer-UXZEYV2X.js} +13 -13
- package/dist/renderer-UYYBJ7OB.js +76 -0
- package/dist/{renderer-CL4X5S3T.js → renderer-W7RKBG6C.js} +12 -12
- package/dist/{renderer-VEN6AIWW.js → renderer-XBL6CLN2.js} +12 -12
- package/dist/{renderer-E42I44WZ.js → renderer-YM7PLDBF.js} +13 -13
- package/dist/{renderer-2MEPYGAP.js → renderer-YQI5U6KJ.js} +13 -13
- package/dist/renderer-radial-MZP3SVTZ.js +21 -0
- package/dist/{resolver-B3TXWNWF.js → resolver-H5E6V7LJ.js} +3 -3
- package/dist/state-parser-TPA67IXM.js +19 -0
- package/dist/{state-renderer-FJ2GT4MU.js → state-renderer-OPP6YOJI.js} +17 -17
- package/dist/{tag-groups-NUA2F1I5.d.ts → tag-groups-DrHT2tEc.d.ts} +10 -0
- package/dist/{themes-Dem5xalq.d.ts → themes-GWhsabnx.d.ts} +2 -2
- package/docs/language-reference.md +52 -13
- package/gallery/fixtures/countdown.dgmo +1 -1
- package/package.json +1 -1
- package/dist/calculator-4CNL2GKU.js +0 -13
- package/dist/dgmo-router-O55I5UXN.js +0 -89
- package/dist/dimensions-EFEBIRS6.js +0 -22
- package/dist/flowchart-parser-LZF2GW2P.js +0 -21
- package/dist/layout-4D5JRUHX.js +0 -15
- package/dist/layout-VMDNULKS.js +0 -15
- package/dist/layout-VVTXA3W2.js +0 -15
- package/dist/parser-2CXA7K5C.js +0 -13
- package/dist/parser-4E2TVMOK.js +0 -13
- package/dist/parser-52AZJ3BA.js +0 -17
- package/dist/parser-52BOCAVQ.js +0 -15
- package/dist/parser-5IPCYVXY.js +0 -12
- package/dist/parser-6BF5TJQH.js +0 -16
- package/dist/parser-6VZISXFY.js +0 -11
- package/dist/parser-6Y5BMNNJ.js +0 -14
- package/dist/parser-7HUZBXKW.js +0 -11
- package/dist/parser-AEJ73QJS.js +0 -11
- package/dist/parser-AWNEAGMJ.js +0 -12
- package/dist/parser-C2QRTZPJ.js +0 -13
- package/dist/parser-CBSYFN6U.js +0 -11
- package/dist/parser-CNKHKQKZ.js +0 -17
- package/dist/parser-GK3JWVHY.js +0 -18
- package/dist/parser-GZKR6BFA.js +0 -14
- package/dist/parser-K26KDCZN.js +0 -11
- package/dist/parser-LTJ5AKY4.js +0 -16
- package/dist/parser-NIGB4EYX.js +0 -12
- package/dist/parser-OHWDJGCP.js +0 -15
- package/dist/parser-QCVEWLCO.js +0 -15
- package/dist/parser-SUAOF72Y.js +0 -13
- package/dist/parser-W2HXBHNC.js +0 -11
- package/dist/parser-WF4R7225.js +0 -15
- package/dist/parser-XRZQ7SC7.js +0 -13
- package/dist/parser-YRJAGBV7.js +0 -19
- package/dist/parser-Z3LN7P6G.js +0 -20
- package/dist/renderer-4DFEFP4X.js +0 -26
- package/dist/renderer-52KYFTNZ.js +0 -16
- package/dist/renderer-B4Q6LUW2.js +0 -24
- package/dist/renderer-E3UQ24DE.js +0 -25
- package/dist/renderer-H5QR3LC3.js +0 -16
- package/dist/renderer-JHWGW4Q7.js +0 -25
- package/dist/renderer-KQIJV5WD.js +0 -19
- package/dist/renderer-MZ4N2SVV.js +0 -25
- package/dist/renderer-QMSFXMAL.js +0 -21
- package/dist/renderer-VOXE7V6L.js +0 -27
- package/dist/renderer-WBG576LB.js +0 -26
- package/dist/renderer-XR4SVKNE.js +0 -22
- package/dist/renderer-YROML2KW.js +0 -76
- package/dist/renderer-YXYEP46H.js +0 -23
- package/dist/renderer-radial-KZ3W4WXI.js +0 -21
- package/dist/state-parser-HJNCGIFT.js +0 -19
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryCollectNote
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-76NHL5UG.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveNotes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E6PNTYRK.js";
|
|
7
7
|
import {
|
|
8
8
|
parseInArrowLabel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IHOFUR74.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeName
|
|
12
12
|
} from "./chunk-NOTA6TEI.js";
|
|
@@ -20,8 +20,9 @@ import {
|
|
|
20
20
|
tagAttrKey,
|
|
21
21
|
validateTagGroupNames,
|
|
22
22
|
validateTagValues
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-76LHNLGX.js";
|
|
24
24
|
import {
|
|
25
|
+
AliasRegistry,
|
|
25
26
|
BOXES_AND_LINES_REGISTRY,
|
|
26
27
|
OPTION_NOCOLON_RE,
|
|
27
28
|
extractColor,
|
|
@@ -32,11 +33,11 @@ import {
|
|
|
32
33
|
tryParseSharedOption,
|
|
33
34
|
warnUnknownMetaKeys,
|
|
34
35
|
withTagAliases
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-M5OOAP65.js";
|
|
36
37
|
import {
|
|
37
38
|
makeDgmoError,
|
|
38
39
|
suggest
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-5SI6T5A5.js";
|
|
40
41
|
|
|
41
42
|
// src/boxes-and-lines/parser.ts
|
|
42
43
|
var MAX_GROUP_DEPTH = 2;
|
|
@@ -120,7 +121,7 @@ function parseBoxesAndLines(content, palette) {
|
|
|
120
121
|
let activeTagOptionLine = 0;
|
|
121
122
|
let currentTagGroup = null;
|
|
122
123
|
const metaAliasMap = /* @__PURE__ */ new Map();
|
|
123
|
-
const nameAliasMap =
|
|
124
|
+
const nameAliasMap = new AliasRegistry();
|
|
124
125
|
function peelAlias(label) {
|
|
125
126
|
const trimmed = label.trim();
|
|
126
127
|
const m = trimmed.match(/^(.*?)\s+as\s+([A-Za-z][A-Za-z0-9_]{0,11})\s*$/);
|
|
@@ -414,7 +415,8 @@ function parseBoxesAndLines(content, palette) {
|
|
|
414
415
|
const groupPeeled = peelAlias(groupMatch[1]);
|
|
415
416
|
const label = groupPeeled.label;
|
|
416
417
|
if (groupPeeled.alias)
|
|
417
|
-
nameAliasMap.
|
|
418
|
+
nameAliasMap.declare(groupPeeled.alias, groupId(label), lineNum);
|
|
419
|
+
nameAliasMap.noteCanonical(groupId(label), lineNum);
|
|
418
420
|
const currentDepth = groupStack.length + 1;
|
|
419
421
|
if (currentDepth > MAX_GROUP_DEPTH) {
|
|
420
422
|
result.diagnostics.push(
|
|
@@ -602,6 +604,7 @@ function parseBoxesAndLines(content, palette) {
|
|
|
602
604
|
"W_ACTIVE_TAG_NO_MATCH"
|
|
603
605
|
);
|
|
604
606
|
}
|
|
607
|
+
result.diagnostics.push(...nameAliasMap.finish());
|
|
605
608
|
return result;
|
|
606
609
|
}
|
|
607
610
|
function parseNodeLine(trimmed, lineNum, metaAliasMap, diagnostics, nameAliasMap) {
|
|
@@ -647,8 +650,9 @@ function parseNodeLine(trimmed, lineNum, metaAliasMap, diagnostics, nameAliasMap
|
|
|
647
650
|
delete metadata["heat"];
|
|
648
651
|
}
|
|
649
652
|
if (split.alias) {
|
|
650
|
-
nameAliasMap?.
|
|
653
|
+
nameAliasMap?.declare(normalizeName(split.alias), label, lineNum);
|
|
651
654
|
}
|
|
655
|
+
nameAliasMap?.noteCanonical(label, lineNum);
|
|
652
656
|
if (!label) return null;
|
|
653
657
|
return {
|
|
654
658
|
label,
|
|
@@ -670,11 +674,11 @@ function splitTargetAndMeta(rest, metaAliasMap) {
|
|
|
670
674
|
}
|
|
671
675
|
return { target, metadata: split.meta };
|
|
672
676
|
}
|
|
673
|
-
function resolveEndpoint(name, nameAliasMap) {
|
|
677
|
+
function resolveEndpoint(name, lineNum, nameAliasMap) {
|
|
674
678
|
const m = name.match(/^\[(.+)\]$/);
|
|
675
679
|
if (m) return groupId(m[1].trim());
|
|
676
680
|
if (nameAliasMap) {
|
|
677
|
-
const aliased = nameAliasMap.
|
|
681
|
+
const aliased = nameAliasMap.resolve(name, lineNum);
|
|
678
682
|
if (aliased !== void 0) return aliased;
|
|
679
683
|
}
|
|
680
684
|
return peelQuotedName(name);
|
|
@@ -687,7 +691,7 @@ function parseEdgeLine(trimmed, lineNum, metaAliasMap, diagnostics, nameAliasMap
|
|
|
687
691
|
const biLabeledMatch = trimmed.match(/^(.+?)\s*<-(.+)->\s*(.+)$/);
|
|
688
692
|
if (biLabeledMatch) {
|
|
689
693
|
const rawSource2 = biLabeledMatch[1].trim();
|
|
690
|
-
const source2 = resolveEndpoint(rawSource2, nameAliasMap);
|
|
694
|
+
const source2 = resolveEndpoint(rawSource2, lineNum, nameAliasMap);
|
|
691
695
|
const labelResult = parseInArrowLabel(biLabeledMatch[2], lineNum);
|
|
692
696
|
diagnostics.push(...labelResult.diagnostics);
|
|
693
697
|
const label = labelResult.label;
|
|
@@ -719,7 +723,7 @@ function parseEdgeLine(trimmed, lineNum, metaAliasMap, diagnostics, nameAliasMap
|
|
|
719
723
|
}
|
|
720
724
|
return {
|
|
721
725
|
source: source2,
|
|
722
|
-
target: resolveEndpoint(rest2, nameAliasMap),
|
|
726
|
+
target: resolveEndpoint(rest2, lineNum, nameAliasMap),
|
|
723
727
|
...label !== void 0 && { label },
|
|
724
728
|
bidirectional: true,
|
|
725
729
|
lineNumber: lineNum,
|
|
@@ -729,7 +733,7 @@ function parseEdgeLine(trimmed, lineNum, metaAliasMap, diagnostics, nameAliasMap
|
|
|
729
733
|
const biIdx = trimmed.indexOf("<->");
|
|
730
734
|
if (biIdx >= 0) {
|
|
731
735
|
const rawSource2 = trimmed.slice(0, biIdx).trim();
|
|
732
|
-
const source2 = resolveEndpoint(rawSource2, nameAliasMap);
|
|
736
|
+
const source2 = resolveEndpoint(rawSource2, lineNum, nameAliasMap);
|
|
733
737
|
let rest2 = trimmed.slice(biIdx + 3).trim();
|
|
734
738
|
const { target: plainTarget2, metadata: metadata2 } = splitTargetAndMeta(
|
|
735
739
|
rest2,
|
|
@@ -758,7 +762,7 @@ function parseEdgeLine(trimmed, lineNum, metaAliasMap, diagnostics, nameAliasMap
|
|
|
758
762
|
}
|
|
759
763
|
return {
|
|
760
764
|
source: source2,
|
|
761
|
-
target: resolveEndpoint(rest2, nameAliasMap),
|
|
765
|
+
target: resolveEndpoint(rest2, lineNum, nameAliasMap),
|
|
762
766
|
bidirectional: true,
|
|
763
767
|
lineNumber: lineNum,
|
|
764
768
|
metadata: metadata2
|
|
@@ -767,7 +771,7 @@ function parseEdgeLine(trimmed, lineNum, metaAliasMap, diagnostics, nameAliasMap
|
|
|
767
771
|
const labeledMatch = trimmed.match(/^(.+?)\s+-(.+?)->\s*(.+)$/);
|
|
768
772
|
if (labeledMatch) {
|
|
769
773
|
const rawSource2 = labeledMatch[1].trim();
|
|
770
|
-
const source2 = resolveEndpoint(rawSource2, nameAliasMap);
|
|
774
|
+
const source2 = resolveEndpoint(rawSource2, lineNum, nameAliasMap);
|
|
771
775
|
const labelResult = parseInArrowLabel(labeledMatch[2], lineNum);
|
|
772
776
|
diagnostics.push(...labelResult.diagnostics);
|
|
773
777
|
const label = labelResult.label;
|
|
@@ -800,7 +804,7 @@ function parseEdgeLine(trimmed, lineNum, metaAliasMap, diagnostics, nameAliasMap
|
|
|
800
804
|
}
|
|
801
805
|
return {
|
|
802
806
|
source: source2,
|
|
803
|
-
target: resolveEndpoint(rest2, nameAliasMap),
|
|
807
|
+
target: resolveEndpoint(rest2, lineNum, nameAliasMap),
|
|
804
808
|
label,
|
|
805
809
|
bidirectional: false,
|
|
806
810
|
lineNumber: lineNum,
|
|
@@ -811,7 +815,7 @@ function parseEdgeLine(trimmed, lineNum, metaAliasMap, diagnostics, nameAliasMap
|
|
|
811
815
|
const arrowIdx = trimmed.indexOf("->");
|
|
812
816
|
if (arrowIdx < 0) return null;
|
|
813
817
|
const rawSource = trimmed.slice(0, arrowIdx).trim();
|
|
814
|
-
const source = resolveEndpoint(rawSource, nameAliasMap);
|
|
818
|
+
const source = resolveEndpoint(rawSource, lineNum, nameAliasMap);
|
|
815
819
|
let rest = trimmed.slice(arrowIdx + 2).trim();
|
|
816
820
|
if (!source || !rest) {
|
|
817
821
|
diagnostics.push(
|
|
@@ -844,7 +848,7 @@ function parseEdgeLine(trimmed, lineNum, metaAliasMap, diagnostics, nameAliasMap
|
|
|
844
848
|
}
|
|
845
849
|
return {
|
|
846
850
|
source,
|
|
847
|
-
target: resolveEndpoint(rest, nameAliasMap),
|
|
851
|
+
target: resolveEndpoint(rest, lineNum, nameAliasMap),
|
|
848
852
|
bidirectional: false,
|
|
849
853
|
lineNumber: lineNum,
|
|
850
854
|
metadata
|
|
@@ -855,4 +859,4 @@ export {
|
|
|
855
859
|
looksLikeBoxesAndLines,
|
|
856
860
|
parseBoxesAndLines
|
|
857
861
|
};
|
|
858
|
-
//# sourceMappingURL=chunk-
|
|
862
|
+
//# sourceMappingURL=chunk-KRTLS3G6.js.map
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
normalizeNumericToken,
|
|
6
6
|
parseFirstLine,
|
|
7
7
|
tryParseSharedOption
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M5OOAP65.js";
|
|
9
9
|
import {
|
|
10
10
|
makeDgmoError,
|
|
11
11
|
makeFail
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5SI6T5A5.js";
|
|
13
13
|
|
|
14
14
|
// src/goal/parser.ts
|
|
15
15
|
function parseGoalNumber(token) {
|
|
@@ -158,4 +158,4 @@ function parseGoal(content, palette) {
|
|
|
158
158
|
export {
|
|
159
159
|
parseGoal
|
|
160
160
|
};
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
161
|
+
//# sourceMappingURL=chunk-KWSBNLSC.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-WGC42WJU.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutInlineHeader
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YJMWEZOB.js";
|
|
7
7
|
import {
|
|
8
8
|
TITLE_FONT_SIZE,
|
|
9
9
|
TITLE_FONT_WEIGHT,
|
|
@@ -11,37 +11,37 @@ import {
|
|
|
11
11
|
} from "./chunk-A4GOY3PE.js";
|
|
12
12
|
import {
|
|
13
13
|
renderIntegratedLegend
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QT5UMFPE.js";
|
|
15
15
|
import {
|
|
16
16
|
getLegendExtent,
|
|
17
17
|
getMaxLegendReservedHeight
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4SXHMFFP.js";
|
|
19
19
|
import {
|
|
20
20
|
FONT_FAMILY
|
|
21
21
|
} from "./chunk-UTCPNJND.js";
|
|
22
22
|
import {
|
|
23
23
|
LEGEND_GROUP_GAP
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YT5ICQ4R.js";
|
|
25
25
|
import {
|
|
26
26
|
measureText
|
|
27
27
|
} from "./chunk-MTGGOCND.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveTagColor,
|
|
30
30
|
tagAttrKey
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-76LHNLGX.js";
|
|
32
32
|
import {
|
|
33
33
|
contrastText,
|
|
34
34
|
getSeriesColors,
|
|
35
35
|
mix,
|
|
36
36
|
shapeFill,
|
|
37
37
|
themeBaseBg
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-GLREDNBA.js";
|
|
39
39
|
import {
|
|
40
40
|
resolveColor
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XOGQY4EC.js";
|
|
42
42
|
import {
|
|
43
43
|
makeDgmoError
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-5SI6T5A5.js";
|
|
45
45
|
|
|
46
46
|
// src/bracket/renderer.ts
|
|
47
47
|
import * as d3Selection from "d3-selection";
|
|
@@ -1001,4 +1001,4 @@ export {
|
|
|
1001
1001
|
renderBracket,
|
|
1002
1002
|
renderBracketForExport
|
|
1003
1003
|
};
|
|
1004
|
-
//# sourceMappingURL=chunk-
|
|
1004
|
+
//# sourceMappingURL=chunk-L2EA5YLO.js.map
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
splitNameAndMeta,
|
|
6
6
|
tryParseSharedOption,
|
|
7
7
|
warnUnknownMetaKeys
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M5OOAP65.js";
|
|
9
9
|
import {
|
|
10
10
|
makeDgmoError,
|
|
11
11
|
makeFail
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5SI6T5A5.js";
|
|
13
13
|
|
|
14
14
|
// src/pyramid/parser.ts
|
|
15
15
|
var MAX_LAYERS = 15;
|
|
@@ -127,4 +127,4 @@ function parsePyramid(content) {
|
|
|
127
127
|
export {
|
|
128
128
|
parsePyramid
|
|
129
129
|
};
|
|
130
|
-
//# sourceMappingURL=chunk-
|
|
130
|
+
//# sourceMappingURL=chunk-LKS56RDT.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-MTGGOCND.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveNotes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E6PNTYRK.js";
|
|
13
13
|
|
|
14
14
|
// src/class/layout.ts
|
|
15
15
|
import dagre from "@dagrejs/dagre";
|
|
@@ -201,4 +201,4 @@ function layoutClassDiagram(parsed, options) {
|
|
|
201
201
|
export {
|
|
202
202
|
layoutClassDiagram
|
|
203
203
|
};
|
|
204
|
-
//# sourceMappingURL=chunk-
|
|
204
|
+
//# sourceMappingURL=chunk-LM3HY3VG.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
INLINE_HEADER_PAD,
|
|
10
10
|
layoutInlineHeader
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YJMWEZOB.js";
|
|
12
12
|
import {
|
|
13
13
|
TITLE_FONT_SIZE,
|
|
14
14
|
TITLE_FONT_WEIGHT,
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
} from "./chunk-A4GOY3PE.js";
|
|
17
17
|
import {
|
|
18
18
|
renderIntegratedLegend
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QT5UMFPE.js";
|
|
20
20
|
import {
|
|
21
21
|
controlsGroupCapsuleWidth,
|
|
22
22
|
getLegendExtent,
|
|
23
23
|
getMaxLegendReservedHeight
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4SXHMFFP.js";
|
|
25
25
|
import {
|
|
26
26
|
FONT_FAMILY
|
|
27
27
|
} from "./chunk-UTCPNJND.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
LEGEND_PILL_PAD,
|
|
40
40
|
measureLegendText,
|
|
41
41
|
truncateLegendText
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-YT5ICQ4R.js";
|
|
43
43
|
import {
|
|
44
44
|
CHAR_WIDTH_RATIO,
|
|
45
45
|
measureText,
|
|
@@ -52,13 +52,13 @@ import {
|
|
|
52
52
|
resolveActiveTagGroup,
|
|
53
53
|
resolveTagColor,
|
|
54
54
|
tagAttrKey
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-76LHNLGX.js";
|
|
56
56
|
import {
|
|
57
57
|
contrastText,
|
|
58
58
|
getSeriesColors,
|
|
59
59
|
mix,
|
|
60
60
|
shapeFill
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-GLREDNBA.js";
|
|
62
62
|
|
|
63
63
|
// src/gantt/renderer.ts
|
|
64
64
|
import * as d3Scale from "d3-scale";
|
|
@@ -2152,4 +2152,4 @@ export {
|
|
|
2152
2152
|
renderGantt,
|
|
2153
2153
|
buildTagLaneRowList
|
|
2154
2154
|
};
|
|
2155
|
-
//# sourceMappingURL=chunk-
|
|
2155
|
+
//# sourceMappingURL=chunk-LSHMDQZQ.js.map
|
|
@@ -13,9 +13,10 @@ import {
|
|
|
13
13
|
tagAttrKey,
|
|
14
14
|
validateTagGroupNames,
|
|
15
15
|
validateTagValues
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-76LHNLGX.js";
|
|
17
17
|
import {
|
|
18
18
|
ALL_CHART_TYPES,
|
|
19
|
+
AliasRegistry,
|
|
19
20
|
OPTION_NOCOLON_RE,
|
|
20
21
|
SITEMAP_REGISTRY,
|
|
21
22
|
extractColor,
|
|
@@ -26,13 +27,13 @@ import {
|
|
|
26
27
|
tryParseSharedOption,
|
|
27
28
|
warnUnknownMetaKeys,
|
|
28
29
|
withTagAliases
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-M5OOAP65.js";
|
|
30
31
|
import {
|
|
31
32
|
formatDgmoError,
|
|
32
33
|
makeDgmoError,
|
|
33
34
|
makeFail,
|
|
34
35
|
suggest
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-5SI6T5A5.js";
|
|
36
37
|
|
|
37
38
|
// src/sitemap/parser.ts
|
|
38
39
|
var CONTAINER_RE = /^\[([^\]]+)\]\s*(.*)$/;
|
|
@@ -114,7 +115,7 @@ function parseSitemap(content, palette) {
|
|
|
114
115
|
let firstLineParsed = false;
|
|
115
116
|
let currentTagGroup = null;
|
|
116
117
|
const metaAliasMap = /* @__PURE__ */ new Map();
|
|
117
|
-
const nameAliasMap =
|
|
118
|
+
const nameAliasMap = new AliasRegistry();
|
|
118
119
|
const indentStack = [];
|
|
119
120
|
const labelToNode = /* @__PURE__ */ new Map();
|
|
120
121
|
const labelToContainer = /* @__PURE__ */ new Map();
|
|
@@ -122,6 +123,7 @@ function parseSitemap(content, palette) {
|
|
|
122
123
|
for (let i = 0; i < lines.length; i++) {
|
|
123
124
|
const line = lines[i];
|
|
124
125
|
const lineNumber = i + 1;
|
|
126
|
+
nameAliasMap.at(lineNumber);
|
|
125
127
|
const trimmed = line.trim();
|
|
126
128
|
if (!trimmed) {
|
|
127
129
|
if (currentTagGroup) {
|
|
@@ -176,22 +178,6 @@ function parseSitemap(content, palette) {
|
|
|
176
178
|
result.tagGroups.push(newTagGroup);
|
|
177
179
|
continue;
|
|
178
180
|
}
|
|
179
|
-
if (!contentStarted && !currentTagGroup && measureIndent(line) === 0 && !trimmed.includes("|") && !trimmed.includes("->") && !trimmed.includes(":")) {
|
|
180
|
-
const dirBool = trimmed.match(/^direction-(lr|tb)$/i);
|
|
181
|
-
if (dirBool) {
|
|
182
|
-
result.direction = dirBool[1].toUpperCase();
|
|
183
|
-
continue;
|
|
184
|
-
}
|
|
185
|
-
if (tryParseSharedOption(trimmed, options)) {
|
|
186
|
-
continue;
|
|
187
|
-
}
|
|
188
|
-
const optMatch = trimmed.match(OPTION_NOCOLON_RE);
|
|
189
|
-
if (optMatch) {
|
|
190
|
-
const key = optMatch[1].trim().toLowerCase();
|
|
191
|
-
options[key] = optMatch[2].trim();
|
|
192
|
-
continue;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
181
|
if (currentTagGroup && !contentStarted) {
|
|
196
182
|
const indent2 = measureIndent(line);
|
|
197
183
|
if (indent2 > 0) {
|
|
@@ -216,6 +202,22 @@ function parseSitemap(content, palette) {
|
|
|
216
202
|
}
|
|
217
203
|
currentTagGroup = null;
|
|
218
204
|
}
|
|
205
|
+
if (!contentStarted && !currentTagGroup && measureIndent(line) === 0 && !trimmed.includes("|") && !trimmed.includes("->") && !trimmed.includes(":")) {
|
|
206
|
+
const dirBool = trimmed.match(/^direction-(lr|tb)$/i);
|
|
207
|
+
if (dirBool) {
|
|
208
|
+
result.direction = dirBool[1].toUpperCase();
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
if (tryParseSharedOption(trimmed, options)) {
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
214
|
+
const optMatch = trimmed.match(OPTION_NOCOLON_RE);
|
|
215
|
+
if (optMatch) {
|
|
216
|
+
const key = optMatch[1].trim().toLowerCase();
|
|
217
|
+
options[key] = optMatch[2].trim();
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
219
221
|
contentStarted = true;
|
|
220
222
|
currentTagGroup = null;
|
|
221
223
|
const indent = measureIndent(line);
|
|
@@ -268,7 +270,8 @@ function parseSitemap(content, palette) {
|
|
|
268
270
|
}
|
|
269
271
|
containerCounter++;
|
|
270
272
|
const containerId = `container-${containerCounter}`;
|
|
271
|
-
if (asMatch) nameAliasMap.
|
|
273
|
+
if (asMatch) nameAliasMap.declare(asMatch[2], containerId, lineNumber);
|
|
274
|
+
nameAliasMap.noteCanonical(containerId, lineNumber);
|
|
272
275
|
const node = {
|
|
273
276
|
id: containerId,
|
|
274
277
|
label,
|
|
@@ -351,7 +354,7 @@ function parseSitemap(content, palette) {
|
|
|
351
354
|
}
|
|
352
355
|
}
|
|
353
356
|
for (const arrow of deferredArrows) {
|
|
354
|
-
const aliasHit = nameAliasMap.
|
|
357
|
+
const aliasHit = nameAliasMap.resolve(arrow.targetLabel.trim());
|
|
355
358
|
if (aliasHit !== void 0) {
|
|
356
359
|
result.edges.push({
|
|
357
360
|
sourceId: arrow.sourceNode.id,
|
|
@@ -414,6 +417,7 @@ function parseSitemap(content, palette) {
|
|
|
414
417
|
result.diagnostics.push(diag);
|
|
415
418
|
result.error = formatDgmoError(diag);
|
|
416
419
|
}
|
|
420
|
+
result.diagnostics.push(...nameAliasMap.finish());
|
|
417
421
|
return result;
|
|
418
422
|
}
|
|
419
423
|
function parseNodeLabel(trimmed, lineNumber, _palette, counter, metaAliasMap = /* @__PURE__ */ new Map(), warnFn, _diagnostics, nameAliasMap) {
|
|
@@ -439,7 +443,9 @@ function parseNodeLabel(trimmed, lineNumber, _palette, counter, metaAliasMap = /
|
|
|
439
443
|
);
|
|
440
444
|
}
|
|
441
445
|
const label = peelQuotedName(split.name);
|
|
442
|
-
if (split.alias)
|
|
446
|
+
if (split.alias)
|
|
447
|
+
nameAliasMap?.declare(normalizeName(split.alias), id, lineNumber);
|
|
448
|
+
nameAliasMap?.noteCanonical(id, lineNumber);
|
|
443
449
|
const metadata = { ...split.meta };
|
|
444
450
|
if (split.color !== void 0) metadata["color"] = split.color;
|
|
445
451
|
let description;
|
|
@@ -521,4 +527,4 @@ export {
|
|
|
521
527
|
looksLikeSitemap,
|
|
522
528
|
parseSitemap
|
|
523
529
|
};
|
|
524
|
-
//# sourceMappingURL=chunk-
|
|
530
|
+
//# sourceMappingURL=chunk-LXXVHLTH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MONO_FAMILY
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XCAEHWQB.js";
|
|
4
4
|
import {
|
|
5
5
|
FONT_FAMILY
|
|
6
6
|
} from "./chunk-UTCPNJND.js";
|
|
@@ -62,4 +62,4 @@ function escapeXml(s) {
|
|
|
62
62
|
export {
|
|
63
63
|
renderLiveLinkCard
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-LYLRNAX2.js.map
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
parseEmphasisDirective
|
|
4
4
|
} from "./chunk-2CW5ZTNH.js";
|
|
5
5
|
import {
|
|
6
|
+
AliasRegistry,
|
|
6
7
|
GLOBAL_BOOLEANS,
|
|
7
8
|
collectIndentedValues,
|
|
8
9
|
detectBadChartTypeDeclaration,
|
|
@@ -12,11 +13,11 @@ import {
|
|
|
12
13
|
normalizeNumericToken,
|
|
13
14
|
parseFirstLine,
|
|
14
15
|
parseSeriesNames
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-M5OOAP65.js";
|
|
16
17
|
import {
|
|
17
18
|
RECOGNIZED_COLOR_NAMES,
|
|
18
19
|
resolveColorWithDiagnostic
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XOGQY4EC.js";
|
|
20
21
|
import {
|
|
21
22
|
NEGATIVE_VALUE_DX,
|
|
22
23
|
TITLE_DIRECTIVE_DX,
|
|
@@ -24,7 +25,7 @@ import {
|
|
|
24
25
|
formatDgmoError,
|
|
25
26
|
makeDgmoError,
|
|
26
27
|
suggest
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5SI6T5A5.js";
|
|
28
29
|
|
|
29
30
|
// src/chart.ts
|
|
30
31
|
var CHANNEL_NAME = {
|
|
@@ -623,21 +624,23 @@ function parseExtendedChartFull(content, palette) {
|
|
|
623
624
|
let currentCategory = "Default";
|
|
624
625
|
const sankeyStack = [];
|
|
625
626
|
let firstLineParsed = false;
|
|
626
|
-
const nameAliasMap =
|
|
627
|
+
const nameAliasMap = new AliasRegistry();
|
|
627
628
|
function resolveSlot(raw) {
|
|
628
629
|
const trimmed = raw.trim();
|
|
629
630
|
const m = trimmed.match(/^(.*?)\s+as\s+([A-Za-z][A-Za-z0-9_]{0,11})\s*$/);
|
|
630
631
|
if (m) {
|
|
631
632
|
const canonical = m[1].trim();
|
|
632
|
-
nameAliasMap.
|
|
633
|
+
nameAliasMap.declare(m[2], canonical);
|
|
634
|
+
nameAliasMap.noteCanonical(canonical);
|
|
633
635
|
return canonical;
|
|
634
636
|
}
|
|
635
|
-
const aliased = nameAliasMap.
|
|
637
|
+
const aliased = nameAliasMap.resolve(trimmed);
|
|
636
638
|
return aliased !== void 0 ? aliased : trimmed;
|
|
637
639
|
}
|
|
638
640
|
for (let i = 0; i < lines.length; i++) {
|
|
639
641
|
const trimmed = lines[i].trim();
|
|
640
642
|
const lineNumber = i + 1;
|
|
643
|
+
nameAliasMap.at(lineNumber);
|
|
641
644
|
if (!trimmed) continue;
|
|
642
645
|
if (/^#{2,}\s+/.test(trimmed)) {
|
|
643
646
|
const name = trimmed.replace(/^#{2,}\s+/, "").replace(/\s*\([^)]*\)\s*$/, "").trim();
|
|
@@ -1141,6 +1144,7 @@ function parseExtendedChartFull(content, palette) {
|
|
|
1141
1144
|
}
|
|
1142
1145
|
}
|
|
1143
1146
|
}
|
|
1147
|
+
result.diagnostics.push(...nameAliasMap.finish());
|
|
1144
1148
|
return result;
|
|
1145
1149
|
}
|
|
1146
1150
|
function getSimpleChartLegendGroups(parsed, colors) {
|
|
@@ -1204,4 +1208,4 @@ export {
|
|
|
1204
1208
|
getSimpleChartLegendGroups,
|
|
1205
1209
|
getExtendedChartLegendGroups
|
|
1206
1210
|
};
|
|
1207
|
-
//# sourceMappingURL=chunk-
|
|
1211
|
+
//# sourceMappingURL=chunk-M526IKKH.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryCollectNote
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-76NHL5UG.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveNotes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E6PNTYRK.js";
|
|
7
7
|
import {
|
|
8
8
|
parseInArrowLabel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IHOFUR74.js";
|
|
10
10
|
import {
|
|
11
11
|
displayName,
|
|
12
12
|
normalizeName
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
tagAttrKey,
|
|
20
20
|
validateTagGroupNames,
|
|
21
21
|
validateTagValues
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-76LHNLGX.js";
|
|
23
23
|
import {
|
|
24
24
|
ALL_CHART_TYPES,
|
|
25
25
|
FILL_FAMILY_TOKENS,
|
|
@@ -32,17 +32,17 @@ import {
|
|
|
32
32
|
parseMetadataRegion,
|
|
33
33
|
tryParseSharedOption,
|
|
34
34
|
withTagAliases
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-M5OOAP65.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveColorWithDiagnostic
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XOGQY4EC.js";
|
|
39
39
|
import {
|
|
40
40
|
NAME_DIAGNOSTIC_CODES,
|
|
41
41
|
formatDgmoError,
|
|
42
42
|
makeDgmoError,
|
|
43
43
|
nameMergedMessage,
|
|
44
44
|
suggest
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-5SI6T5A5.js";
|
|
46
46
|
|
|
47
47
|
// src/graph/state-parser.ts
|
|
48
48
|
var PSEUDOSTATE_ID = "pseudostate:[*]";
|
|
@@ -543,4 +543,4 @@ export {
|
|
|
543
543
|
parseState,
|
|
544
544
|
looksLikeState
|
|
545
545
|
};
|
|
546
|
-
//# sourceMappingURL=chunk-
|
|
546
|
+
//# sourceMappingURL=chunk-M5JT2AU7.js.map
|