@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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CATEGORICAL_COLOR_ORDER
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XOGQY4EC.js";
|
|
4
4
|
|
|
5
5
|
// src/palettes/color-utils.ts
|
|
6
6
|
var HEX_TO_HSL_CACHE = /* @__PURE__ */ new Map();
|
|
@@ -266,4 +266,4 @@ export {
|
|
|
266
266
|
getSegmentColors,
|
|
267
267
|
politicalTints
|
|
268
268
|
};
|
|
269
|
-
//# sourceMappingURL=chunk-
|
|
269
|
+
//# sourceMappingURL=chunk-GLREDNBA.js.map
|
|
@@ -4,12 +4,15 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
renderInlineText
|
|
6
6
|
} from "./chunk-WGC42WJU.js";
|
|
7
|
+
import {
|
|
8
|
+
COLLAPSE_BAR_HEIGHT
|
|
9
|
+
} from "./chunk-FJ57274M.js";
|
|
7
10
|
import {
|
|
8
11
|
ScaleContext
|
|
9
12
|
} from "./chunk-24YPR5EH.js";
|
|
10
13
|
import {
|
|
11
14
|
layoutInlineHeader
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YJMWEZOB.js";
|
|
13
16
|
import {
|
|
14
17
|
TITLE_FONT_SIZE,
|
|
15
18
|
TITLE_FONT_WEIGHT,
|
|
@@ -17,17 +20,17 @@ import {
|
|
|
17
20
|
} from "./chunk-A4GOY3PE.js";
|
|
18
21
|
import {
|
|
19
22
|
renderIntegratedLegend
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QT5UMFPE.js";
|
|
21
24
|
import {
|
|
22
25
|
getLegendExtent,
|
|
23
26
|
getMaxLegendReservedHeight
|
|
24
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4SXHMFFP.js";
|
|
25
28
|
import {
|
|
26
29
|
FONT_FAMILY
|
|
27
30
|
} from "./chunk-UTCPNJND.js";
|
|
28
31
|
import {
|
|
29
32
|
legendChromeColors
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-YT5ICQ4R.js";
|
|
31
34
|
import {
|
|
32
35
|
measureText,
|
|
33
36
|
truncateText
|
|
@@ -36,22 +39,22 @@ import {
|
|
|
36
39
|
isSequenceBlock,
|
|
37
40
|
isSequenceNote,
|
|
38
41
|
isSequenceSection
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7NSNE52V.js";
|
|
40
43
|
import {
|
|
41
44
|
resolveActiveTagGroup,
|
|
42
45
|
tagAttrKey
|
|
43
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-76LHNLGX.js";
|
|
44
47
|
import {
|
|
45
48
|
fillModeFromOptions,
|
|
46
49
|
legendInlineRequested,
|
|
47
50
|
legendSuppressed
|
|
48
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-M5OOAP65.js";
|
|
49
52
|
import {
|
|
50
53
|
contrastText,
|
|
51
54
|
mix,
|
|
52
55
|
shapeFill,
|
|
53
56
|
themeBaseBg
|
|
54
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-GLREDNBA.js";
|
|
55
58
|
|
|
56
59
|
// src/sequence/renderer.ts
|
|
57
60
|
import * as d3Selection from "d3-selection";
|
|
@@ -415,6 +418,7 @@ var SECTION_LABEL_CLEARANCE_ABOVE = 12;
|
|
|
415
418
|
var SECTION_LABEL_CLEARANCE_BELOW = 5;
|
|
416
419
|
function summarizeSectionParticipation(messages, msgIndices) {
|
|
417
420
|
const summary = /* @__PURE__ */ new Map();
|
|
421
|
+
const sendLine = /* @__PURE__ */ new Map();
|
|
418
422
|
const bump = (id, key, lineNumber) => {
|
|
419
423
|
const entry = summary.get(id) ?? {
|
|
420
424
|
sends: 0,
|
|
@@ -422,6 +426,10 @@ function summarizeSectionParticipation(messages, msgIndices) {
|
|
|
422
426
|
firstLine: lineNumber
|
|
423
427
|
};
|
|
424
428
|
entry[key] += 1;
|
|
429
|
+
if (key === "sends" && !sendLine.has(id)) {
|
|
430
|
+
sendLine.set(id, lineNumber);
|
|
431
|
+
entry.firstLine = lineNumber;
|
|
432
|
+
}
|
|
425
433
|
summary.set(id, entry);
|
|
426
434
|
};
|
|
427
435
|
for (const idx of msgIndices) {
|
|
@@ -432,17 +440,6 @@ function summarizeSectionParticipation(messages, msgIndices) {
|
|
|
432
440
|
}
|
|
433
441
|
return summary;
|
|
434
442
|
}
|
|
435
|
-
function collapsedGroupMemberLine(labels, maxWidth, fontSize) {
|
|
436
|
-
if (labels.length === 0) return "";
|
|
437
|
-
const full = labels.join(" \xB7 ");
|
|
438
|
-
if (measureText(full, fontSize) <= maxWidth) return full;
|
|
439
|
-
for (let keep = labels.length - 1; keep >= 1; keep--) {
|
|
440
|
-
const line = `${labels.slice(0, keep).join(" \xB7 ")} +${labels.length - keep}`;
|
|
441
|
-
if (measureText(line, fontSize) <= maxWidth) return line;
|
|
442
|
-
}
|
|
443
|
-
const count = labels.length === 1 ? "1 member" : `${labels.length} members`;
|
|
444
|
-
return measureText(count, fontSize) <= maxWidth ? count : "";
|
|
445
|
-
}
|
|
446
443
|
function sectionMarkRadius(touches) {
|
|
447
444
|
if (touches >= 4) return 6;
|
|
448
445
|
if (touches >= 2) return 4.5;
|
|
@@ -649,6 +646,20 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
649
646
|
const elements = collapsed ? collapsed.elements : parsed.elements;
|
|
650
647
|
const groups = collapsed ? collapsed.groups : parsed.groups;
|
|
651
648
|
const collapsedSections = options?.collapsedSections;
|
|
649
|
+
const autonumber = parsedOptions["autonumber"]?.toLowerCase() === "on";
|
|
650
|
+
const sourceMessageNumberByLine = new Map(
|
|
651
|
+
parsed.messages.map((message, index) => [message.lineNumber, index + 1])
|
|
652
|
+
);
|
|
653
|
+
const displayMessageLabel = (step) => {
|
|
654
|
+
if (!autonumber) return step.label;
|
|
655
|
+
const message = messages[step.messageIndex];
|
|
656
|
+
if (!message) return step.label;
|
|
657
|
+
if (step.type === "return" && !step.label && (step.from !== message.from || step.to !== message.to))
|
|
658
|
+
return "";
|
|
659
|
+
const number = sourceMessageNumberByLine.get(message.lineNumber);
|
|
660
|
+
if (number === void 0) return step.label;
|
|
661
|
+
return step.label ? `${number}. ${step.label}` : String(number);
|
|
662
|
+
};
|
|
652
663
|
const sourceParticipants = collapsed ? collapsed.participants : parsed.participants;
|
|
653
664
|
const participants = applyPositionOverrides(
|
|
654
665
|
applyGroupOrdering(sourceParticipants, groups, messages)
|
|
@@ -770,7 +781,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
770
781
|
}
|
|
771
782
|
}
|
|
772
783
|
const allRenderSteps = buildRenderSequence(messages);
|
|
773
|
-
const stepSurvives = (s) => (hiddenMsgIndices.size === 0 || !hiddenMsgIndices.has(s.messageIndex)) && (s.type === "call" || !!s
|
|
784
|
+
const stepSurvives = (s) => (hiddenMsgIndices.size === 0 || !hiddenMsgIndices.has(s.messageIndex)) && (s.type === "call" || !!displayMessageLabel(s));
|
|
774
785
|
const renderSteps = [];
|
|
775
786
|
const allToFiltered = new Array(allRenderSteps.length);
|
|
776
787
|
for (let j = 0; j < allRenderSteps.length; j++) {
|
|
@@ -1009,7 +1020,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1009
1020
|
let fi = 0;
|
|
1010
1021
|
for (let oi = 0; oi < allRenderSteps.length; oi++) {
|
|
1011
1022
|
const step = allRenderSteps[oi];
|
|
1012
|
-
if (!hiddenMsgIndices.has(step.messageIndex) && (step.type === "call" || step
|
|
1023
|
+
if (!hiddenMsgIndices.has(step.messageIndex) && (step.type === "call" || displayMessageLabel(step))) {
|
|
1013
1024
|
originalToFiltered.set(oi, fi);
|
|
1014
1025
|
fi++;
|
|
1015
1026
|
}
|
|
@@ -1054,10 +1065,6 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1054
1065
|
const GROUP_LABEL_SIZE = 11;
|
|
1055
1066
|
const sGroupLabelSize = ctx.text(GROUP_LABEL_SIZE);
|
|
1056
1067
|
const GROUP_LABEL_WEIGHT = "bold";
|
|
1057
|
-
const GROUP_MEMBER_SIZE = 9;
|
|
1058
|
-
const sGroupMemberSize = ctx.text(GROUP_MEMBER_SIZE);
|
|
1059
|
-
const GROUP_MEMBER_GAP = 3;
|
|
1060
|
-
const GROUP_MEMBER_PADDING_X = 6;
|
|
1061
1068
|
const showTitle = !!title && parsedOptions["no-title"] !== "on";
|
|
1062
1069
|
const titleOffset = showTitle ? sTitleHeight : 0;
|
|
1063
1070
|
const LEGEND_FIXED_GAP = 8;
|
|
@@ -1219,7 +1226,8 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1219
1226
|
if (step.from === step.to && step.from === rightmostId) {
|
|
1220
1227
|
const selfProj = sActivationWidth + sSelfCallWidth;
|
|
1221
1228
|
let labelProj = 0;
|
|
1222
|
-
|
|
1229
|
+
const label = displayMessageLabel(step);
|
|
1230
|
+
if (label) labelProj = measureText(label, 12) + 15;
|
|
1223
1231
|
rightProjection = Math.max(rightProjection, selfProj + labelProj);
|
|
1224
1232
|
}
|
|
1225
1233
|
}
|
|
@@ -1293,8 +1301,9 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1293
1301
|
let contentLeft = 0;
|
|
1294
1302
|
let contentRight = svgWidth;
|
|
1295
1303
|
for (const step of renderSteps) {
|
|
1296
|
-
|
|
1297
|
-
|
|
1304
|
+
const displayLabel = displayMessageLabel(step);
|
|
1305
|
+
if (!displayLabel) continue;
|
|
1306
|
+
const labelW = measureText(displayLabel, 12);
|
|
1298
1307
|
if (step.from === step.to) {
|
|
1299
1308
|
const px = participantX.get(step.from);
|
|
1300
1309
|
if (px !== void 0) {
|
|
@@ -1404,6 +1413,9 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1404
1413
|
const meta = collapsedGroupMeta.get(id);
|
|
1405
1414
|
return meta?.metadata ? getTagColor(meta.metadata[tagKey]) : void 0;
|
|
1406
1415
|
};
|
|
1416
|
+
const hasExpandedGroup = groups.some(
|
|
1417
|
+
(g) => g.participantIds.some((id) => participantX.has(id))
|
|
1418
|
+
);
|
|
1407
1419
|
for (const group of groups) {
|
|
1408
1420
|
if (group.participantIds.length === 0) continue;
|
|
1409
1421
|
const memberXs = group.participantIds.map((id) => participantX.get(id)).filter((x) => x !== void 0);
|
|
@@ -1482,10 +1494,12 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1482
1494
|
);
|
|
1483
1495
|
if (isCollapsedGroup) {
|
|
1484
1496
|
const meta = collapsedGroupMeta.get(participant.id);
|
|
1485
|
-
const drillColor = effectiveTagColor
|
|
1486
|
-
const drillBarH =
|
|
1497
|
+
const drillColor = effectiveTagColor ?? mix(palette.textMuted, themeBaseBg(palette, isDark), 55);
|
|
1498
|
+
const drillBarH = ctx.structural(COLLAPSE_BAR_HEIGHT);
|
|
1487
1499
|
const boxW = sBoxW;
|
|
1488
|
-
const
|
|
1500
|
+
const padTop = hasExpandedGroup ? GROUP_PADDING_TOP : 0;
|
|
1501
|
+
const padBottom = hasExpandedGroup ? GROUP_PADDING_BOTTOM : 0;
|
|
1502
|
+
const fullH = sBoxH + padTop + padBottom;
|
|
1489
1503
|
const clipId = `clip-drill-group-${participant.id.replace(/[^a-zA-Z0-9-]/g, "-")}`;
|
|
1490
1504
|
const participantG = svg.select(
|
|
1491
1505
|
`.participant[data-participant-id="${participant.id}"]`
|
|
@@ -1496,22 +1510,13 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1496
1510
|
).attr("cursor", "pointer");
|
|
1497
1511
|
const pFill = effectiveTagColor ? mix(effectiveTagColor, themeBaseBg(palette, isDark), isDark ? 30 : 40) : isDark ? mix(palette.overlay, palette.surface, 50) : mix(palette.bg, palette.surface, 50);
|
|
1498
1512
|
const pStroke = effectiveTagColor || palette.border;
|
|
1499
|
-
participantG.append("rect").attr("x", -boxW / 2).attr("y", -
|
|
1500
|
-
const
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
);
|
|
1505
|
-
const boxMidY = -GROUP_PADDING_TOP + fullH / 2;
|
|
1506
|
-
const nameY = memberLine ? boxMidY - (sGroupMemberSize + GROUP_MEMBER_GAP) / 2 : boxMidY;
|
|
1507
|
-
participantG.append("text").attr("x", 0).attr("y", nameY).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("fill", palette.text).attr("font-size", sGroupLabelSize).attr("font-weight", GROUP_LABEL_WEIGHT).attr("class", "collapsed-group-label").text(participant.label);
|
|
1508
|
-
if (memberLine) {
|
|
1509
|
-
participantG.append("text").attr("x", 0).attr("y", boxMidY + (sGroupLabelSize + GROUP_MEMBER_GAP) / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("fill", palette.textMuted).attr("font-size", sGroupMemberSize).attr("class", "collapsed-group-members").text(memberLine);
|
|
1510
|
-
}
|
|
1511
|
-
participantG.append("clipPath").attr("id", clipId).append("rect").attr("x", -boxW / 2).attr("y", -GROUP_PADDING_TOP).attr("width", boxW).attr("height", fullH).attr("rx", 6);
|
|
1512
|
-
participantG.append("rect").attr("class", "sequence-drill-bar").attr("x", -boxW / 2).attr("y", -GROUP_PADDING_TOP + fullH - drillBarH).attr("width", boxW).attr("height", drillBarH).attr("fill", drillColor).attr("clip-path", `url(#${clipId})`);
|
|
1513
|
+
participantG.append("rect").attr("x", -boxW / 2).attr("y", -padTop).attr("width", boxW).attr("height", fullH).attr("rx", 6).attr("fill", pFill).attr("stroke", pStroke).attr("stroke-width", 1.5);
|
|
1514
|
+
const nameY = -padTop + (fullH - drillBarH) / 2;
|
|
1515
|
+
participantG.append("text").attr("x", 0).attr("y", nameY).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("fill", palette.text).attr("font-size", sLabelFontSize).attr("font-weight", 500).attr("class", "collapsed-group-label").text(truncateText(participant.label, sLabelFontSize, sLabelTextWidth));
|
|
1516
|
+
participantG.append("clipPath").attr("id", clipId).append("rect").attr("x", -boxW / 2).attr("y", -padTop).attr("width", boxW).attr("height", fullH).attr("rx", 6);
|
|
1517
|
+
participantG.append("rect").attr("class", "sequence-drill-bar").attr("x", -boxW / 2).attr("y", -padTop + fullH - drillBarH).attr("width", boxW).attr("height", drillBarH).attr("fill", drillColor).attr("clip-path", `url(#${clipId})`);
|
|
1513
1518
|
}
|
|
1514
|
-
const llY = isCollapsedGroup ? lifelineStartY + GROUP_PADDING_BOTTOM : participant.type === "actor" ? lifelineStartY + ACTOR_LABEL_CLEARANCE : lifelineStartY;
|
|
1519
|
+
const llY = isCollapsedGroup ? lifelineStartY + (hasExpandedGroup ? GROUP_PADDING_BOTTOM : 0) : participant.type === "actor" ? lifelineStartY + ACTOR_LABEL_CLEARANCE : lifelineStartY;
|
|
1515
1520
|
const llColor = effectiveTagColor || palette.textMuted;
|
|
1516
1521
|
for (const [segTop, segBottom] of lifelineSegments(
|
|
1517
1522
|
cx,
|
|
@@ -1825,12 +1830,13 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1825
1830
|
if (tagKey && msgTagValue) {
|
|
1826
1831
|
selfCallEl.attr(`data-tag-${tagKey}`, msgTagValue.toLowerCase());
|
|
1827
1832
|
}
|
|
1828
|
-
|
|
1833
|
+
const displayLabel = displayMessageLabel(step);
|
|
1834
|
+
if (displayLabel) {
|
|
1829
1835
|
const labelEl = svg.append("text").attr("x", loopX + 5).attr("y", y + sSelfCallHeight / 2 + 4).attr("text-anchor", "start").attr("fill", arrowColor).attr("paint-order", "stroke fill").attr("stroke", palette.bg).attr("stroke-width", 4).attr("stroke-linejoin", "round").attr("font-size", 12).attr("class", "message-label").attr("data-line-number", String(msg.lineNumber)).attr("data-msg-index", String(step.messageIndex)).attr("data-step-index", String(i));
|
|
1830
1836
|
if (tagKey && msgTagValue) {
|
|
1831
1837
|
labelEl.attr(`data-tag-${tagKey}`, msgTagValue.toLowerCase());
|
|
1832
1838
|
}
|
|
1833
|
-
labelEl.text(
|
|
1839
|
+
labelEl.text(displayLabel);
|
|
1834
1840
|
}
|
|
1835
1841
|
} else {
|
|
1836
1842
|
const goingRight = fromX < toX;
|
|
@@ -1842,13 +1848,14 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1842
1848
|
if (tagKey && msgTagValue) {
|
|
1843
1849
|
arrowEl.attr(`data-tag-${tagKey}`, msgTagValue.toLowerCase());
|
|
1844
1850
|
}
|
|
1845
|
-
|
|
1851
|
+
const displayLabel = displayMessageLabel(step);
|
|
1852
|
+
if (displayLabel) {
|
|
1846
1853
|
const midX = (x1 + x2) / 2;
|
|
1847
1854
|
const labelEl = svg.append("text").attr("x", midX).attr("y", y - 8).attr("text-anchor", "middle").attr("fill", arrowColor).attr("paint-order", "stroke fill").attr("stroke", palette.bg).attr("stroke-width", 4).attr("stroke-linejoin", "round").attr("font-size", 12).attr("class", "message-label").attr("data-line-number", String(msg.lineNumber)).attr("data-msg-index", String(step.messageIndex)).attr("data-step-index", String(i));
|
|
1848
1855
|
if (tagKey && msgTagValue) {
|
|
1849
1856
|
labelEl.attr(`data-tag-${tagKey}`, msgTagValue.toLowerCase());
|
|
1850
1857
|
}
|
|
1851
|
-
labelEl.text(
|
|
1858
|
+
labelEl.text(displayLabel);
|
|
1852
1859
|
}
|
|
1853
1860
|
}
|
|
1854
1861
|
} else {
|
|
@@ -1864,13 +1871,14 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1864
1871
|
if (tagKey && msgTagValue) {
|
|
1865
1872
|
returnEl.attr(`data-tag-${tagKey}`, msgTagValue.toLowerCase());
|
|
1866
1873
|
}
|
|
1867
|
-
|
|
1874
|
+
const displayLabel = displayMessageLabel(step);
|
|
1875
|
+
if (displayLabel) {
|
|
1868
1876
|
const midX = (x1 + x2) / 2;
|
|
1869
1877
|
const labelEl = svg.append("text").attr("x", midX).attr("y", y - 6).attr("text-anchor", "middle").attr("fill", returnColor).attr("paint-order", "stroke fill").attr("stroke", palette.bg).attr("stroke-width", 4).attr("stroke-linejoin", "round").attr("font-size", 11).attr("class", "message-label").attr("data-line-number", String(msg.lineNumber)).attr("data-msg-index", String(step.messageIndex)).attr("data-step-index", String(i));
|
|
1870
1878
|
if (tagKey && msgTagValue) {
|
|
1871
1879
|
labelEl.attr(`data-tag-${tagKey}`, msgTagValue.toLowerCase());
|
|
1872
1880
|
}
|
|
1873
|
-
labelEl.text(
|
|
1881
|
+
labelEl.text(displayLabel);
|
|
1874
1882
|
}
|
|
1875
1883
|
}
|
|
1876
1884
|
});
|
|
@@ -2057,7 +2065,6 @@ export {
|
|
|
2057
2065
|
applyCollapseProjection,
|
|
2058
2066
|
groupMessagesBySection,
|
|
2059
2067
|
summarizeSectionParticipation,
|
|
2060
|
-
collapsedGroupMemberLine,
|
|
2061
2068
|
buildRenderSequence,
|
|
2062
2069
|
computeActivations,
|
|
2063
2070
|
applyPositionOverrides,
|
|
@@ -2065,4 +2072,4 @@ export {
|
|
|
2065
2072
|
renderSequenceDiagram,
|
|
2066
2073
|
buildNoteMessageMap
|
|
2067
2074
|
};
|
|
2068
|
-
//# sourceMappingURL=chunk-
|
|
2075
|
+
//# sourceMappingURL=chunk-GQJ35I2I.js.map
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from "./chunk-NOTA6TEI.js";
|
|
9
9
|
import {
|
|
10
10
|
peelQuotedName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-M5OOAP65.js";
|
|
12
12
|
import {
|
|
13
13
|
makeDgmoError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5SI6T5A5.js";
|
|
15
15
|
|
|
16
16
|
// src/gantt/resolver.ts
|
|
17
17
|
function isResolverError(r) {
|
|
@@ -787,4 +787,4 @@ export {
|
|
|
787
787
|
resolveTaskName,
|
|
788
788
|
calculateSchedule
|
|
789
789
|
};
|
|
790
|
-
//# sourceMappingURL=chunk-
|
|
790
|
+
//# sourceMappingURL=chunk-GRN44Z6A.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
layoutJourneyMap,
|
|
4
4
|
scoreToColor,
|
|
5
5
|
scoreToCurveY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-F4V67JXG.js";
|
|
7
7
|
import {
|
|
8
8
|
wrapNoteBody
|
|
9
9
|
} from "./chunk-MU3CJPJF.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-RU2HHHYA.js";
|
|
25
25
|
import {
|
|
26
26
|
renderIntegratedLegend
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QT5UMFPE.js";
|
|
28
28
|
import {
|
|
29
29
|
FONT_FAMILY
|
|
30
30
|
} from "./chunk-UTCPNJND.js";
|
|
@@ -35,20 +35,20 @@ import {
|
|
|
35
35
|
} from "./chunk-MTGGOCND.js";
|
|
36
36
|
import {
|
|
37
37
|
parseJourneyMap
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-2QRIMMIH.js";
|
|
39
39
|
import {
|
|
40
40
|
resolveActiveTagGroup,
|
|
41
41
|
tagAttrKey
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-76LHNLGX.js";
|
|
43
43
|
import {
|
|
44
44
|
fillModeFromOptions
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-M5OOAP65.js";
|
|
46
46
|
import {
|
|
47
47
|
contrastText,
|
|
48
48
|
mix,
|
|
49
49
|
shapeFill,
|
|
50
50
|
themeBaseBg
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-GLREDNBA.js";
|
|
52
52
|
|
|
53
53
|
// src/journey-map/renderer.ts
|
|
54
54
|
import * as d3 from "d3-selection";
|
|
@@ -877,4 +877,4 @@ export {
|
|
|
877
877
|
renderJourneyMap,
|
|
878
878
|
renderJourneyMapForExport
|
|
879
879
|
};
|
|
880
|
-
//# sourceMappingURL=chunk-
|
|
880
|
+
//# sourceMappingURL=chunk-HFCKU73Y.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
|
validateLabelCharacters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IHOFUR74.js";
|
|
10
10
|
import {
|
|
11
11
|
displayName,
|
|
12
12
|
normalizeName
|
|
@@ -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
|
ER_REGISTRY,
|
|
26
27
|
OPTION_NOCOLON_RE,
|
|
27
28
|
extractColor,
|
|
@@ -33,17 +34,17 @@ import {
|
|
|
33
34
|
tryParseSharedOption,
|
|
34
35
|
warnUnknownMetaKeys,
|
|
35
36
|
withTagAliases
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-M5OOAP65.js";
|
|
37
38
|
import {
|
|
38
39
|
resolveColorWithDiagnostic
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-XOGQY4EC.js";
|
|
40
41
|
import {
|
|
41
42
|
NAME_DIAGNOSTIC_CODES,
|
|
42
43
|
formatDgmoError,
|
|
43
44
|
makeDgmoError,
|
|
44
45
|
nameMergedMessage,
|
|
45
46
|
suggest
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5SI6T5A5.js";
|
|
47
48
|
|
|
48
49
|
// src/er/parser.ts
|
|
49
50
|
function tableId(name) {
|
|
@@ -159,7 +160,7 @@ function parseERDiagram(content, palette) {
|
|
|
159
160
|
let activeTagRaw;
|
|
160
161
|
let currentTagGroup = null;
|
|
161
162
|
const metaAliasMap = /* @__PURE__ */ new Map();
|
|
162
|
-
const nameAliasMap =
|
|
163
|
+
const nameAliasMap = new AliasRegistry();
|
|
163
164
|
function peelAlias(label) {
|
|
164
165
|
const trimmed = label.trim();
|
|
165
166
|
const m = trimmed.match(/^(.*?)\s+as\s+([A-Za-z][A-Za-z0-9_]{0,11})\s*$/);
|
|
@@ -167,7 +168,7 @@ function parseERDiagram(content, palette) {
|
|
|
167
168
|
return { label: m[1].trim(), alias: m[2] };
|
|
168
169
|
}
|
|
169
170
|
function resolveAliasName(token) {
|
|
170
|
-
return nameAliasMap.
|
|
171
|
+
return nameAliasMap.resolve(token.trim()) ?? token;
|
|
171
172
|
}
|
|
172
173
|
let firstLineParsed = false;
|
|
173
174
|
function getOrCreateTable(name, lineNumber) {
|
|
@@ -210,6 +211,7 @@ function parseERDiagram(content, palette) {
|
|
|
210
211
|
const raw = lines[i];
|
|
211
212
|
const trimmed = raw.trim();
|
|
212
213
|
const lineNumber = i + 1;
|
|
214
|
+
nameAliasMap.at(lineNumber);
|
|
213
215
|
const indent = measureIndent(raw);
|
|
214
216
|
if (!trimmed) {
|
|
215
217
|
if (indent === 0) currentTable = null;
|
|
@@ -389,7 +391,9 @@ function parseERDiagram(content, palette) {
|
|
|
389
391
|
const rawName = (tableDecl[1] ?? tableDecl[2] ?? "").trim();
|
|
390
392
|
const peeled = peelAlias(rawName);
|
|
391
393
|
const name = peeled.label;
|
|
392
|
-
|
|
394
|
+
const declaredAlias = peeled.alias ?? split.alias;
|
|
395
|
+
if (declaredAlias) nameAliasMap.declare(declaredAlias, name, lineNumber);
|
|
396
|
+
nameAliasMap.noteCanonical(name, lineNumber);
|
|
393
397
|
const colorName = split.color ?? tableDecl[3]?.trim();
|
|
394
398
|
const color = colorName ? resolveColorWithDiagnostic(
|
|
395
399
|
colorName,
|
|
@@ -490,6 +494,7 @@ function parseERDiagram(content, palette) {
|
|
|
490
494
|
)
|
|
491
495
|
);
|
|
492
496
|
}
|
|
497
|
+
result.diagnostics.push(...nameAliasMap.finish());
|
|
493
498
|
return result;
|
|
494
499
|
}
|
|
495
500
|
var CONSTRAINT_KEYWORD_RE = /\b(pk|fk)\b/i;
|
|
@@ -554,4 +559,4 @@ export {
|
|
|
554
559
|
looksLikeERDiagram,
|
|
555
560
|
extractSymbols
|
|
556
561
|
};
|
|
557
|
-
//# sourceMappingURL=chunk-
|
|
562
|
+
//# sourceMappingURL=chunk-ICVIJLBA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeDgmoError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5SI6T5A5.js";
|
|
4
4
|
|
|
5
5
|
// src/utils/arrows.ts
|
|
6
6
|
var ARROW_DIAGNOSTIC_CODES = {
|
|
@@ -94,4 +94,4 @@ export {
|
|
|
94
94
|
parseInArrowLabel,
|
|
95
95
|
parseArrow
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=chunk-
|
|
97
|
+
//# sourceMappingURL=chunk-IHOFUR74.js.map
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
matchTagBlockHeading,
|
|
10
10
|
stripDefaultModifier,
|
|
11
11
|
tagAttrKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-76LHNLGX.js";
|
|
13
13
|
import {
|
|
14
14
|
extractColor,
|
|
15
15
|
fillModeFromToken,
|
|
16
16
|
measureIndent,
|
|
17
17
|
parseFirstLine
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-M5OOAP65.js";
|
|
19
19
|
import {
|
|
20
20
|
emit
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5SI6T5A5.js";
|
|
22
22
|
|
|
23
23
|
// src/body/diagnostics.ts
|
|
24
24
|
var BODY_DX = {
|
|
@@ -264,4 +264,4 @@ export {
|
|
|
264
264
|
parseBody,
|
|
265
265
|
extractSymbols
|
|
266
266
|
};
|
|
267
|
-
//# sourceMappingURL=chunk-
|
|
267
|
+
//# sourceMappingURL=chunk-JLODGGN2.js.map
|
|
@@ -21,15 +21,15 @@ import {
|
|
|
21
21
|
} from "./chunk-MTGGOCND.js";
|
|
22
22
|
import {
|
|
23
23
|
fillModeFromOptions
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-M5OOAP65.js";
|
|
25
25
|
import {
|
|
26
26
|
contrastText,
|
|
27
27
|
getSeriesColors,
|
|
28
28
|
shapeFill
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GLREDNBA.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveColor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XOGQY4EC.js";
|
|
33
33
|
|
|
34
34
|
// src/ring/renderer.ts
|
|
35
35
|
import * as d3Selection from "d3-selection";
|
|
@@ -296,4 +296,4 @@ export {
|
|
|
296
296
|
renderRing,
|
|
297
297
|
renderRingForExport
|
|
298
298
|
};
|
|
299
|
-
//# sourceMappingURL=chunk-
|
|
299
|
+
//# sourceMappingURL=chunk-JSYAH7KR.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutClassDiagram
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LM3HY3VG.js";
|
|
4
4
|
import {
|
|
5
5
|
NOTE_BADGE_RADIUS,
|
|
6
6
|
noteConnectorPoints,
|
|
7
7
|
renderNoteBadge,
|
|
8
8
|
renderNoteBox,
|
|
9
9
|
renderNoteConnector
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Q74GP3GK.js";
|
|
11
11
|
import {
|
|
12
12
|
extractExportSvg,
|
|
13
13
|
runInExportContainer
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-24YPR5EH.js";
|
|
22
22
|
import {
|
|
23
23
|
layoutInlineHeader
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YJMWEZOB.js";
|
|
25
25
|
import {
|
|
26
26
|
TITLE_FONT_SIZE,
|
|
27
27
|
TITLE_FONT_WEIGHT,
|
|
@@ -29,31 +29,31 @@ import {
|
|
|
29
29
|
} from "./chunk-A4GOY3PE.js";
|
|
30
30
|
import {
|
|
31
31
|
renderIntegratedLegend
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QT5UMFPE.js";
|
|
33
33
|
import {
|
|
34
34
|
getLegendExtent
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-4SXHMFFP.js";
|
|
36
36
|
import {
|
|
37
37
|
FONT_FAMILY
|
|
38
38
|
} from "./chunk-UTCPNJND.js";
|
|
39
39
|
import {
|
|
40
40
|
LEGEND_HEIGHT
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YT5ICQ4R.js";
|
|
42
42
|
import {
|
|
43
43
|
measureText
|
|
44
44
|
} from "./chunk-MTGGOCND.js";
|
|
45
45
|
import {
|
|
46
46
|
parseClassDiagram
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SUA56ZSB.js";
|
|
48
48
|
import {
|
|
49
49
|
fillModeFromOptions,
|
|
50
50
|
legendInlineRequested,
|
|
51
51
|
legendSuppressed
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-M5OOAP65.js";
|
|
53
53
|
import {
|
|
54
54
|
contrastText,
|
|
55
55
|
shapeFill
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-GLREDNBA.js";
|
|
57
57
|
|
|
58
58
|
// src/class/renderer.ts
|
|
59
59
|
import * as d3Selection from "d3-selection";
|
|
@@ -448,4 +448,4 @@ export {
|
|
|
448
448
|
renderClassDiagram,
|
|
449
449
|
renderClassDiagramForExport
|
|
450
450
|
};
|
|
451
|
-
//# sourceMappingURL=chunk-
|
|
451
|
+
//# sourceMappingURL=chunk-KR432TCU.js.map
|