@diagrammo/dgmo 0.70.0 → 0.72.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/README.md +2 -0
- package/dist/advanced.d.ts +37 -30
- package/dist/advanced.js +91 -91
- package/dist/block.js +47 -47
- package/dist/{calculator-GU4NVYE2.js → calculator-4CNL2GKU.js} +3 -3
- package/dist/{chart-meta-DNsYpNbh.d.ts → chart-meta-6JaOudSs.d.ts} +8 -1
- package/dist/chart-meta.d.ts +2 -2
- package/dist/chart-meta.js +42 -42
- package/dist/{charts-d3-HWKV46CS.js → charts-d3-6IHGTXBR.js} +5 -5
- package/dist/{chunk-YYVTBZZC.js → chunk-24YPR5EH.js} +1 -1
- package/dist/{chunk-USOLDMYO.js → chunk-2OTYNNHS.js} +6 -6
- package/dist/{chunk-SHS3O7ZZ.js → chunk-2VBJCTSG.js} +4 -4
- package/dist/{chunk-6WI76LHG.js → chunk-376ATV2Q.js} +19 -5
- package/dist/{chunk-PMDE3I53.js → chunk-3HN32MEK.js} +2 -2
- package/dist/{chunk-EHRME74D.js → chunk-3SNE4CLI.js} +3 -3
- package/dist/{chunk-V5VCGTS4.js → chunk-4VUFJ7UA.js} +3 -3
- package/dist/{chunk-7YCHRBD3.js → chunk-5DYDPP7K.js} +2 -2
- package/dist/{chunk-LK35AH5V.js → chunk-66VHK7PP.js} +5 -5
- package/dist/{chunk-R2VVBC52.js → chunk-6DGMS2WJ.js} +4 -4
- package/dist/{chunk-Z6G367CM.js → chunk-6OAKQTXQ.js} +3 -3
- package/dist/{chunk-IODPKTRZ.js → chunk-6PA32CUB.js} +2 -2
- package/dist/{chunk-VSZRPDIZ.js → chunk-6S53NO3M.js} +5 -2
- package/dist/{chunk-PP75ABA4.js → chunk-7BHM774H.js} +6 -6
- package/dist/{chunk-QRLNO6C7.js → chunk-7RAWNJI5.js} +192 -122
- package/dist/{chunk-YXW2ZYS3.js → chunk-7SEQPFBX.js} +38 -7
- package/dist/{chunk-VALNMR2Y.js → chunk-7TSBM4BV.js} +3 -3
- package/dist/{chunk-EDFUVEO6.js → chunk-7U3NDE7T.js} +7 -7
- package/dist/{chunk-3QLXP6QZ.js → chunk-AEYRSPVV.js} +2 -2
- package/dist/{chunk-BNJC5KVG.js → chunk-BYSRXYRW.js} +4 -4
- package/dist/{chunk-EC5USK74.js → chunk-DEVZWCD5.js} +17 -5
- package/dist/{chunk-FH3S7FDS.js → chunk-DHKVHP3Y.js} +5 -5
- package/dist/{chunk-PBXMUXBW.js → chunk-DPGI742S.js} +20 -2
- package/dist/{chunk-UFKFABSP.js → chunk-DZ34UUXC.js} +7 -7
- package/dist/{chunk-ASUFSCVV.js → chunk-E36Q5ABQ.js} +4 -4
- package/dist/{chunk-TJ5PDNGU.js → chunk-EETUTZ5C.js} +2 -2
- package/dist/{chunk-KVM4POFR.js → chunk-ELIGVSLE.js} +10 -3
- package/dist/{chunk-KSK6B35D.js → chunk-FFD6A3B2.js} +22 -5
- package/dist/{chunk-K3MUWASA.js → chunk-FLXDMH7B.js} +3 -3
- package/dist/{chunk-J3XFVPEU.js → chunk-FTPNAYL2.js} +18 -6
- package/dist/{chunk-UJ4FJLBF.js → chunk-FX2USYOU.js} +13 -1
- package/dist/{chunk-IOVJT4PE.js → chunk-GCTKJDLY.js} +5 -5
- package/dist/{chunk-WBPWR2CX.js → chunk-GK4AU57A.js} +4 -4
- package/dist/{chunk-5ECGBM5S.js → chunk-HKL66CKW.js} +25 -21
- package/dist/{chunk-Z4KRDDZC.js → chunk-HWNF22ZZ.js} +20 -15
- package/dist/{chunk-2QLYLYLN.js → chunk-HZQCKXPB.js} +70 -385
- package/dist/{chunk-ZCWEJ3VB.js → chunk-IXVK7XCN.js} +3 -3
- package/dist/{chunk-BQVCENFX.js → chunk-JIWDWOYA.js} +3 -3
- package/dist/{chunk-HAGHVHR7.js → chunk-K6MQJ5IV.js} +2 -2
- package/dist/{chunk-MOMPLSQI.js → chunk-KJWIU5AM.js} +2 -2
- package/dist/{chunk-65KNPZCC.js → chunk-KOVRFBGR.js} +25 -4
- package/dist/{chunk-B6MHT3A7.js → chunk-L3XB446I.js} +2 -2
- package/dist/{chunk-NZ2Z4ZEN.js → chunk-LSHROB27.js} +3 -3
- package/dist/{chunk-Q7UM3R3Y.js → chunk-LTGOPJUV.js} +2 -2
- package/dist/{chunk-MMYRNZRQ.js → chunk-MC2H32SM.js} +3 -3
- package/dist/{chunk-CE2Z3OXR.js → chunk-MFSTE3YG.js} +18 -4
- package/dist/{chunk-4FEPSBUH.js → chunk-MKNWMFZU.js} +15 -5
- package/dist/{chunk-FQ7OYKOS.js → chunk-MUVASOBD.js} +7 -7
- package/dist/{chunk-6NWCQCJV.js → chunk-MWWRIOEN.js} +2 -2
- package/dist/{chunk-HK3JTWG3.js → chunk-MX3BYU7V.js} +2 -2
- package/dist/{chunk-4CTCOHDS.js → chunk-N34OTOGH.js} +12 -3
- package/dist/{chunk-H4VRTBMS.js → chunk-N5247W2W.js} +59 -16
- package/dist/{chunk-76XAJN7L.js → chunk-NEC7R2CB.js} +2 -2
- package/dist/{chunk-56TCBKXP.js → chunk-NJKUTY4M.js} +3 -3
- package/dist/{chunk-D62K46CW.js → chunk-NNMNHE3J.js} +2 -2
- package/dist/{chunk-XDEVAAY4.js → chunk-NTBHGUXY.js} +13 -3
- package/dist/{chunk-YYFIZ3AO.js → chunk-NUF7YTHA.js} +2 -2
- package/dist/{chunk-TSY25V7W.js → chunk-O4OVVK6J.js} +4 -4
- package/dist/{chunk-R2UUKZ6R.js → chunk-P6RPHRX7.js} +4 -4
- package/dist/{chunk-AA6LBVBN.js → chunk-PBV2C3BW.js} +27 -6
- package/dist/{chunk-Y37EDBPR.js → chunk-PKTRDOBI.js} +3 -3
- package/dist/{chunk-CVMD5UWI.js → chunk-QAJFIXJE.js} +19 -5
- package/dist/{chunk-7LIDBQDO.js → chunk-QITH5XOX.js} +6 -6
- package/dist/{chunk-YA464EGR.js → chunk-QPG55HGH.js} +3 -3
- package/dist/{chunk-MUXI4Y6U.js → chunk-REBTZP3W.js} +2 -2
- package/dist/{chunk-H7LQGRM3.js → chunk-RJI6MHHK.js} +3 -3
- package/dist/{chunk-G5UTJZFR.js → chunk-T7W5LM4N.js} +11 -3
- package/dist/{chunk-GAK5UOKL.js → chunk-TF7CFAZ5.js} +3 -3
- package/dist/{chunk-XAPHRRQ4.js → chunk-U4NFAWQW.js} +5 -5
- package/dist/{chunk-HQBY3N3S.js → chunk-UCGEBFUC.js} +3 -3
- package/dist/{chunk-6KJMPC6H.js → chunk-UF3EALKC.js} +9 -9
- package/dist/{chunk-JCAINYVG.js → chunk-UKOOGXRF.js} +288 -26
- package/dist/{chunk-ZLPNK7U2.js → chunk-UNM2PX5D.js} +3 -3
- package/dist/{chunk-JR6H5MEF.js → chunk-UNTFANSM.js} +3 -3
- package/dist/{chunk-UG3MRJL6.js → chunk-UTVKOGFF.js} +2 -2
- package/dist/{chunk-MGAWLZQE.js → chunk-UY77QQWU.js} +2 -2
- package/dist/{chunk-7LMDJ3U7.js → chunk-VE7PPEU3.js} +105 -18
- package/dist/{chunk-MZBEPHFY.js → chunk-VGLSKDDI.js} +2 -2
- package/dist/{chunk-WN6V4ILM.js → chunk-VLXYWPPE.js} +5 -5
- package/dist/{chunk-5FBSYKPQ.js → chunk-VMXV2CL5.js} +4 -4
- package/dist/{chunk-FFI25S5O.js → chunk-W27BULCB.js} +4 -4
- package/dist/{chunk-NTXNVS47.js → chunk-W7SZKJR6.js} +3 -3
- package/dist/{chunk-MACY4WJ4.js → chunk-WEC3JPTN.js} +4 -4
- package/dist/{chunk-LQB3NKEA.js → chunk-WPXHTYET.js} +16 -11
- package/dist/{chunk-QQI4JTJB.js → chunk-WRWUZ2C4.js} +3 -3
- package/dist/{chunk-QQFO63AA.js → chunk-XIZCHGP7.js} +3 -3
- package/dist/{chunk-PYL2K5CE.js → chunk-YG35ZCNW.js} +20 -5
- package/dist/{chunk-6NEFSIL3.js → chunk-YH5KJIO5.js} +4 -4
- package/dist/{chunk-N5XT3OWL.js → chunk-YTFA4VTW.js} +2 -2
- package/dist/{chunk-SW36YNNE.js → chunk-YYBQ55V2.js} +35 -74
- package/dist/{chunk-M2QQQWM3.js → chunk-ZJJWON5O.js} +15 -5
- package/dist/collapse-JRGPUE67.js +13 -0
- package/dist/completion-registry.js +14 -9
- package/dist/{dgmo-router-EAW7XiBE.d.ts → dgmo-router-Lya7cs3R.d.ts} +28 -0
- package/dist/dgmo-router-O55I5UXN.js +89 -0
- package/dist/{dimensions-RIZPH26J.js → dimensions-EFEBIRS6.js} +5 -5
- package/dist/editor.js +6 -3
- package/dist/{flowchart-parser-A64T3OEL.js → flowchart-parser-LZF2GW2P.js} +4 -4
- package/dist/{flowchart-renderer-F6PDPKK7.js → flowchart-renderer-JMGOCLTQ.js} +6 -6
- package/dist/highlight.js +6 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +60 -47
- package/dist/{layout-2D6VKW6G.js → layout-2DVT24YY.js} +3 -3
- package/dist/{layout-COGPMCW5.js → layout-4D5JRUHX.js} +4 -4
- package/dist/{layout-FFCYSTW7.js → layout-AWPST2S3.js} +3 -3
- package/dist/{layout-CYNBG5EP.js → layout-BGXLVSXL.js} +4 -4
- package/dist/{layout-36Z4NU4W.js → layout-VMDNULKS.js} +5 -5
- package/dist/{layout-2DUQIJOI.js → layout-VVTXA3W2.js} +4 -4
- package/dist/{parser-LGDW543A.js → parser-2CXA7K5C.js} +4 -4
- package/dist/{parser-6OWUGHKY.js → parser-4E2TVMOK.js} +4 -4
- package/dist/{parser-2PN2WRYX.js → parser-52AZJ3BA.js} +4 -4
- package/dist/{parser-A3B5KVPK.js → parser-52BOCAVQ.js} +4 -4
- package/dist/{parser-FNOWLKC4.js → parser-5IPCYVXY.js} +4 -4
- package/dist/{parser-U3T76HY2.js → parser-6BF5TJQH.js} +4 -4
- package/dist/{parser-SEFSLUXW.js → parser-6VZISXFY.js} +3 -3
- package/dist/{parser-VDD3N5SC.js → parser-6Y5BMNNJ.js} +5 -5
- package/dist/{parser-LJZIQJRA.js → parser-7HUZBXKW.js} +3 -3
- package/dist/{parser-PXI5UCVR.js → parser-AEJ73QJS.js} +3 -3
- package/dist/{parser-M7HBD7V2.js → parser-AWNEAGMJ.js} +4 -4
- package/dist/{parser-53ALMRAE.js → parser-C2QRTZPJ.js} +4 -4
- package/dist/{parser-DLIBNGNQ.js → parser-CBSYFN6U.js} +3 -3
- package/dist/{parser-IL4T3HCM.js → parser-CDMP3UVH.js} +4 -4
- package/dist/{parser-CDA5DGXA.js → parser-CNKHKQKZ.js} +4 -4
- package/dist/{parser-VQKLDBS7.js → parser-EX3AGFT5.js} +4 -4
- package/dist/{parser-SOOR27MC.js → parser-GK3JWVHY.js} +5 -5
- package/dist/{parser-4VIMOING.js → parser-GZKR6BFA.js} +4 -4
- package/dist/{parser-YCRATNR6.js → parser-K26KDCZN.js} +3 -3
- package/dist/{parser-SZXKUTVE.js → parser-LTJ5AKY4.js} +4 -4
- package/dist/{parser-Q2K7TDEA.js → parser-NIGB4EYX.js} +3 -3
- package/dist/{parser-DAMYSBVY.js → parser-O7GTECFP.js} +3 -3
- package/dist/{parser-3QXKYLDG.js → parser-OHWDJGCP.js} +3 -3
- package/dist/{parser-RZIIZ3EW.js → parser-QCVEWLCO.js} +3 -3
- package/dist/{parser-E33LTBYE.js → parser-SUAOF72Y.js} +4 -4
- package/dist/{parser-CLDLYMDI.js → parser-TJ3SP2MJ.js} +4 -4
- package/dist/{parser-GEELVJ4X.js → parser-W2HXBHNC.js} +3 -3
- package/dist/{parser-2QQJFTMD.js → parser-WF4R7225.js} +4 -4
- package/dist/{parser-5ETIIQIM.js → parser-XM6JC3UK.js} +4 -4
- package/dist/{parser-D5EZ6Y5I.js → parser-XRZQ7SC7.js} +4 -4
- package/dist/{parser-ZXI4IQ5Y.js → parser-YRJAGBV7.js} +4 -4
- package/dist/{parser-4CEHZFZG.js → parser-Z3LN7P6G.js} +5 -5
- package/dist/{parser-52SRJNP4.js → parser-ZIEEBJMU.js} +4 -4
- package/dist/{renderer-PR3AGJ37.js → renderer-2MEPYGAP.js} +7 -7
- package/dist/{renderer-P2MICJH5.js → renderer-2T2RAFWX.js} +8 -8
- package/dist/{renderer-SDCMF5AF.js → renderer-4DFEFP4X.js} +6 -6
- package/dist/{renderer-WPGW6FTW.js → renderer-ACGZ5KJG.js} +8 -8
- package/dist/{renderer-F75AZ6HF.js → renderer-B4Q6LUW2.js} +6 -6
- package/dist/{renderer-WA5K5VWA.js → renderer-CB44E262.js} +8 -8
- package/dist/{renderer-3VPTEQBU.js → renderer-CL4X5S3T.js} +6 -6
- package/dist/{renderer-PUYQ5CDE.js → renderer-E3UQ24DE.js} +5 -5
- package/dist/{renderer-3EN7ZSXI.js → renderer-E42I44WZ.js} +7 -7
- package/dist/{renderer-VK6KVXFB.js → renderer-H5QR3LC3.js} +4 -4
- package/dist/{renderer-RY7RQQ37.js → renderer-IH5C7NQT.js} +4 -4
- package/dist/{renderer-AF6DVUZH.js → renderer-IZFO3G22.js} +8 -8
- package/dist/{renderer-EVHFS3PP.js → renderer-JHWGW4Q7.js} +5 -5
- package/dist/{renderer-U7INHN4J.js → renderer-K73COK5L.js} +5 -5
- package/dist/{renderer-MGYWZFFR.js → renderer-KQIJV5WD.js} +5 -5
- package/dist/{renderer-52YQ3EYR.js → renderer-MZ4N2SVV.js} +5 -5
- package/dist/{renderer-KLRBL45Z.js → renderer-QMSFXMAL.js} +5 -5
- package/dist/{renderer-YZMFPZGC.js → renderer-UPTO25OX.js} +8 -8
- package/dist/{renderer-REULT7UI.js → renderer-VEN6AIWW.js} +8 -8
- package/dist/{renderer-QOI2SEEA.js → renderer-VOXE7V6L.js} +7 -7
- package/dist/{renderer-BT6TOWBE.js → renderer-VP4DPLDY.js} +4 -4
- package/dist/{renderer-KVRTLE2D.js → renderer-W7JC2CTQ.js} +4 -4
- package/dist/{renderer-XOPHJWNZ.js → renderer-WBG576LB.js} +5 -5
- package/dist/{renderer-4LLJHGIQ.js → renderer-WLA3NQCC.js} +7 -7
- package/dist/{renderer-UC2ZZISO.js → renderer-XR4SVKNE.js} +6 -6
- package/dist/{renderer-Q24E7LBF.js → renderer-Y3D36RIT.js} +6 -6
- package/dist/{renderer-SFYFVKVN.js → renderer-Y4VC3VH4.js} +9 -7
- package/dist/renderer-YROML2KW.js +76 -0
- package/dist/{renderer-RJLAM6G5.js → renderer-YXYEP46H.js} +6 -6
- package/dist/{renderer-VTP3QCCP.js → renderer-ZRHTC24Q.js} +7 -7
- package/dist/{renderer-radial-AVHNPO2N.js → renderer-radial-KZ3W4WXI.js} +6 -6
- package/dist/{state-parser-GSU2ZDVR.js → state-parser-HJNCGIFT.js} +5 -5
- package/dist/{state-renderer-Q6XQDK3W.js → state-renderer-FJ2GT4MU.js} +8 -8
- package/docs/language-reference.md +22 -1
- package/package.json +2 -1
- package/dist/collapse-CLPJD2RL.js +0 -11
- package/dist/dgmo-router-YFNEFJST.js +0 -89
- package/dist/renderer-BQORZPWF.js +0 -76
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryCollectNote
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MX3BYU7V.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveNotes
|
|
6
6
|
} from "./chunk-7NK42OIB.js";
|
|
@@ -13,13 +13,14 @@ import {
|
|
|
13
13
|
} from "./chunk-NOTA6TEI.js";
|
|
14
14
|
import {
|
|
15
15
|
AUTO_TAG_COLOR_SENTINEL,
|
|
16
|
+
activeTagNoMatchMessage,
|
|
16
17
|
finalizeAutoTagColors,
|
|
17
18
|
matchTagBlockHeading,
|
|
18
19
|
stripDefaultModifier,
|
|
19
20
|
tagAttrKey,
|
|
20
21
|
validateTagGroupNames,
|
|
21
22
|
validateTagValues
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DPGI742S.js";
|
|
23
24
|
import {
|
|
24
25
|
ER_REGISTRY,
|
|
25
26
|
OPTION_NOCOLON_RE,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
tryParseSharedOption,
|
|
33
34
|
warnUnknownMetaKeys,
|
|
34
35
|
withTagAliases
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ZJJWON5O.js";
|
|
36
37
|
import {
|
|
37
38
|
resolveColorWithDiagnostic
|
|
38
39
|
} from "./chunk-EXNKNJ65.js";
|
|
@@ -154,6 +155,8 @@ function parseERDiagram(content, palette) {
|
|
|
154
155
|
let currentTable = null;
|
|
155
156
|
const notes = [];
|
|
156
157
|
let contentStarted = false;
|
|
158
|
+
let activeTagOptionLine = 0;
|
|
159
|
+
let activeTagRaw;
|
|
157
160
|
let currentTagGroup = null;
|
|
158
161
|
const metaAliasMap = /* @__PURE__ */ new Map();
|
|
159
162
|
const nameAliasMap = /* @__PURE__ */ new Map();
|
|
@@ -280,6 +283,10 @@ function parseERDiagram(content, palette) {
|
|
|
280
283
|
const value = optMatch[2].trim();
|
|
281
284
|
if (KNOWN_OPTIONS.has(key)) {
|
|
282
285
|
options[key] = value.toLowerCase();
|
|
286
|
+
if (key === "active-tag") {
|
|
287
|
+
activeTagRaw = value;
|
|
288
|
+
activeTagOptionLine = lineNumber;
|
|
289
|
+
}
|
|
283
290
|
continue;
|
|
284
291
|
}
|
|
285
292
|
}
|
|
@@ -469,6 +476,20 @@ function parseERDiagram(content, palette) {
|
|
|
469
476
|
}
|
|
470
477
|
}
|
|
471
478
|
}
|
|
479
|
+
const activeTagWarning = activeTagNoMatchMessage(
|
|
480
|
+
activeTagRaw,
|
|
481
|
+
result.tagGroups
|
|
482
|
+
);
|
|
483
|
+
if (activeTagWarning) {
|
|
484
|
+
result.diagnostics.push(
|
|
485
|
+
makeDgmoError(
|
|
486
|
+
activeTagOptionLine || 1,
|
|
487
|
+
activeTagWarning,
|
|
488
|
+
"warning",
|
|
489
|
+
"W_ACTIVE_TAG_NO_MATCH"
|
|
490
|
+
)
|
|
491
|
+
);
|
|
492
|
+
}
|
|
472
493
|
return result;
|
|
473
494
|
}
|
|
474
495
|
var CONSTRAINT_KEYWORD_RE = /\b(pk|fk)\b/i;
|
|
@@ -533,4 +554,4 @@ export {
|
|
|
533
554
|
looksLikeERDiagram,
|
|
534
555
|
extractSymbols
|
|
535
556
|
};
|
|
536
|
-
//# sourceMappingURL=chunk-
|
|
557
|
+
//# sourceMappingURL=chunk-KOVRFBGR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MONO_FAMILY
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6OAKQTXQ.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-L3XB446I.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderIntegratedLegend
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6S53NO3M.js";
|
|
4
4
|
import {
|
|
5
5
|
FONT_FAMILY
|
|
6
6
|
} from "./chunk-UTCPNJND.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveActiveTagGroup,
|
|
14
14
|
resolveTagColor,
|
|
15
15
|
tagAttrKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DPGI742S.js";
|
|
17
17
|
import {
|
|
18
18
|
getSeriesColors,
|
|
19
19
|
mix,
|
|
@@ -346,4 +346,4 @@ export {
|
|
|
346
346
|
renderBody,
|
|
347
347
|
renderBodyForExport
|
|
348
348
|
};
|
|
349
|
-
//# sourceMappingURL=chunk-
|
|
349
|
+
//# sourceMappingURL=chunk-LSHROB27.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
normalizeNumericToken,
|
|
6
6
|
parseFirstLine,
|
|
7
7
|
tryParseSharedOption
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZJJWON5O.js";
|
|
9
9
|
import {
|
|
10
10
|
makeDgmoError,
|
|
11
11
|
makeFail
|
|
@@ -158,4 +158,4 @@ function parseGoal(content, palette) {
|
|
|
158
158
|
export {
|
|
159
159
|
parseGoal
|
|
160
160
|
};
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
161
|
+
//# sourceMappingURL=chunk-LTGOPJUV.js.map
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
resolveActiveTagGroup,
|
|
9
9
|
stripDefaultModifier,
|
|
10
10
|
tagAttrKey
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DPGI742S.js";
|
|
12
12
|
import {
|
|
13
13
|
extractColor,
|
|
14
14
|
fillModeFromToken,
|
|
15
15
|
measureIndent,
|
|
16
16
|
parseFirstLine,
|
|
17
17
|
splitNameAndMeta
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZJJWON5O.js";
|
|
19
19
|
import {
|
|
20
20
|
makeDgmoError,
|
|
21
21
|
makeFail
|
|
@@ -392,4 +392,4 @@ function parseBracket(content, palette) {
|
|
|
392
392
|
export {
|
|
393
393
|
parseBracket
|
|
394
394
|
};
|
|
395
|
-
//# sourceMappingURL=chunk-
|
|
395
|
+
//# sourceMappingURL=chunk-MC2H32SM.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
stripDefaultModifier,
|
|
18
18
|
tagAttrKey,
|
|
19
19
|
validateTagGroupNames
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DPGI742S.js";
|
|
21
21
|
import {
|
|
22
22
|
INFRA_BEHAVIOR_KEY_SET,
|
|
23
23
|
INFRA_EDGE_ONLY_KEY_SET,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
tryParseSharedOption,
|
|
31
31
|
warnUnknownMetaKeys,
|
|
32
32
|
withTagAliases
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ZJJWON5O.js";
|
|
34
34
|
import {
|
|
35
35
|
isRecognizedColorName
|
|
36
36
|
} from "./chunk-EXNKNJ65.js";
|
|
@@ -822,9 +822,23 @@ function parseInfra(content) {
|
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
|
+
for (const tg of result.tagGroups) {
|
|
826
|
+
const groupKey = tagAttrKey(tg.name);
|
|
827
|
+
const applied = /* @__PURE__ */ new Set([groupKey]);
|
|
828
|
+
if (tg.alias) applied.add(tagAttrKey(tg.alias));
|
|
829
|
+
for (const node of result.nodes) {
|
|
830
|
+
const tags = nodeMutableTags.get(node.id);
|
|
831
|
+
if (!tags) continue;
|
|
832
|
+
for (const key of Object.keys(tags)) {
|
|
833
|
+
if (key === groupKey || !applied.has(tagAttrKey(key))) continue;
|
|
834
|
+
tags[groupKey] = tags[key];
|
|
835
|
+
delete tags[key];
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}
|
|
825
839
|
for (const tg of result.tagGroups) {
|
|
826
840
|
if (!tg.defaultValue) continue;
|
|
827
|
-
const key = tagAttrKey(tg.
|
|
841
|
+
const key = tagAttrKey(tg.name);
|
|
828
842
|
for (const node of result.nodes) {
|
|
829
843
|
if (node.isEdge) continue;
|
|
830
844
|
if (!(key in node.tags)) {
|
|
@@ -982,4 +996,4 @@ export {
|
|
|
982
996
|
parseInfra,
|
|
983
997
|
extractSymbols
|
|
984
998
|
};
|
|
985
|
-
//# sourceMappingURL=chunk-
|
|
999
|
+
//# sourceMappingURL=chunk-MFSTE3YG.js.map
|
|
@@ -3,12 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-NOTA6TEI.js";
|
|
4
4
|
import {
|
|
5
5
|
AUTO_TAG_COLOR_SENTINEL,
|
|
6
|
+
activeTagNoMatchMessage,
|
|
6
7
|
finalizeAutoTagColors,
|
|
7
8
|
matchTagBlockHeading,
|
|
8
9
|
stripDefaultModifier,
|
|
9
10
|
tagAttrKey,
|
|
10
11
|
validateTagGroupNames
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DPGI742S.js";
|
|
12
13
|
import {
|
|
13
14
|
KANBAN_REGISTRY,
|
|
14
15
|
OPTION_NOCOLON_RE,
|
|
@@ -20,7 +21,7 @@ import {
|
|
|
20
21
|
splitNameAndMeta,
|
|
21
22
|
warnUnknownMetaKeys,
|
|
22
23
|
withTagAliases
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZJJWON5O.js";
|
|
24
25
|
import {
|
|
25
26
|
resolveColorWithDiagnostic
|
|
26
27
|
} from "./chunk-EXNKNJ65.js";
|
|
@@ -57,14 +58,15 @@ function parseKanban(content, palette) {
|
|
|
57
58
|
error: null
|
|
58
59
|
};
|
|
59
60
|
const fail = makeFail(result);
|
|
60
|
-
const warn = (line, message) => {
|
|
61
|
-
result.diagnostics.push(makeDgmoError(line, message, "warning"));
|
|
61
|
+
const warn = (line, message, code) => {
|
|
62
|
+
result.diagnostics.push(makeDgmoError(line, message, "warning", code));
|
|
62
63
|
};
|
|
63
64
|
if (!content?.trim()) {
|
|
64
65
|
return fail(0, "No content provided");
|
|
65
66
|
}
|
|
66
67
|
const lines = content.split("\n");
|
|
67
68
|
let contentStarted = false;
|
|
69
|
+
let activeTagOptionLine = 0;
|
|
68
70
|
let currentTagGroup = null;
|
|
69
71
|
let currentColumn = null;
|
|
70
72
|
let currentCard = null;
|
|
@@ -141,6 +143,7 @@ function parseKanban(content, palette) {
|
|
|
141
143
|
const key = optMatch[1].trim().toLowerCase();
|
|
142
144
|
if (KNOWN_OPTIONS.has(key)) {
|
|
143
145
|
options[key] = optMatch[2].trim();
|
|
146
|
+
if (key === "active-tag") activeTagOptionLine = lineNumber;
|
|
144
147
|
continue;
|
|
145
148
|
}
|
|
146
149
|
}
|
|
@@ -349,6 +352,13 @@ function parseKanban(content, palette) {
|
|
|
349
352
|
result.diagnostics.push(diag);
|
|
350
353
|
if (!result.error) result.error = formatDgmoError(diag);
|
|
351
354
|
});
|
|
355
|
+
const activeTagWarning = activeTagNoMatchMessage(
|
|
356
|
+
options["active-tag"],
|
|
357
|
+
result.tagGroups
|
|
358
|
+
);
|
|
359
|
+
if (activeTagWarning) {
|
|
360
|
+
warn(activeTagOptionLine || 1, activeTagWarning, "W_ACTIVE_TAG_NO_MATCH");
|
|
361
|
+
}
|
|
352
362
|
return result;
|
|
353
363
|
}
|
|
354
364
|
function parseCardLine(trimmed, lineNumber, counter, metaAliasMap, _palette, diagnostics) {
|
|
@@ -386,4 +396,4 @@ function parseCardLine(trimmed, lineNumber, counter, metaAliasMap, _palette, dia
|
|
|
386
396
|
export {
|
|
387
397
|
parseKanban
|
|
388
398
|
};
|
|
389
|
-
//# sourceMappingURL=chunk-
|
|
399
|
+
//# sourceMappingURL=chunk-MKNWMFZU.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeNodeText,
|
|
3
3
|
layoutMindmap
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IXVK7XCN.js";
|
|
5
5
|
import {
|
|
6
6
|
extractExportSvg,
|
|
7
7
|
runInExportContainer
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-FJ57274M.js";
|
|
17
17
|
import {
|
|
18
18
|
ScaleContext
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-24YPR5EH.js";
|
|
20
20
|
import {
|
|
21
21
|
layoutInlineHeader
|
|
22
22
|
} from "./chunk-6CLC26GU.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-A4GOY3PE.js";
|
|
27
27
|
import {
|
|
28
28
|
renderIntegratedLegend
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6S53NO3M.js";
|
|
30
30
|
import {
|
|
31
31
|
getLegendExtent,
|
|
32
32
|
getMaxLegendReservedHeight
|
|
@@ -39,18 +39,18 @@ import {
|
|
|
39
39
|
} from "./chunk-QX53GOI7.js";
|
|
40
40
|
import {
|
|
41
41
|
parseMindmap
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-QAJFIXJE.js";
|
|
43
43
|
import {
|
|
44
44
|
preprocessDescriptionLine
|
|
45
45
|
} from "./chunk-IYULMRBE.js";
|
|
46
46
|
import {
|
|
47
47
|
tagAttrKey
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-DPGI742S.js";
|
|
49
49
|
import {
|
|
50
50
|
fillModeFromOptions,
|
|
51
51
|
legendInlineRequested,
|
|
52
52
|
legendSuppressed
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-ZJJWON5O.js";
|
|
54
54
|
import {
|
|
55
55
|
contrastText,
|
|
56
56
|
shapeFill
|
|
@@ -426,4 +426,4 @@ export {
|
|
|
426
426
|
renderMindmap,
|
|
427
427
|
renderMindmapForExport
|
|
428
428
|
};
|
|
429
|
-
//# sourceMappingURL=chunk-
|
|
429
|
+
//# sourceMappingURL=chunk-MUVASOBD.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-MTGGOCND.js";
|
|
5
5
|
import {
|
|
6
6
|
fillModeFromOptions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZJJWON5O.js";
|
|
8
8
|
import {
|
|
9
9
|
mix,
|
|
10
10
|
shapeFill
|
|
@@ -290,4 +290,4 @@ export {
|
|
|
290
290
|
scoreToCurveY,
|
|
291
291
|
layoutJourneyMap
|
|
292
292
|
};
|
|
293
|
-
//# sourceMappingURL=chunk-
|
|
293
|
+
//# sourceMappingURL=chunk-MWWRIOEN.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractColor,
|
|
3
3
|
measureIndent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZJJWON5O.js";
|
|
5
5
|
import {
|
|
6
6
|
makeDgmoError
|
|
7
7
|
} from "./chunk-OLMWTJVU.js";
|
|
@@ -73,4 +73,4 @@ function tryCollectNote(lines, index, indent, palette, diagnostics) {
|
|
|
73
73
|
export {
|
|
74
74
|
tryCollectNote
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-MX3BYU7V.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
injectDefaultTagMetadata,
|
|
20
20
|
resolveTagColor,
|
|
21
21
|
tagAttrKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DPGI742S.js";
|
|
23
23
|
|
|
24
24
|
// src/sitemap/layout.ts
|
|
25
25
|
import dagre from "@dagrejs/dagre";
|
|
@@ -595,7 +595,16 @@ function layoutSitemap(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, e
|
|
|
595
595
|
const legendShift = LEGEND_HEIGHT + LEGEND_GROUP_GAP;
|
|
596
596
|
const totalGroupsWidth = visibleGroups.reduce((s, g2) => s + effectiveW(g2), 0) + (visibleGroups.length - 1) * LEGEND_GROUP_GAP;
|
|
597
597
|
const neededWidth = totalGroupsWidth + MARGIN * 2;
|
|
598
|
-
if (neededWidth > totalWidth)
|
|
598
|
+
if (neededWidth > totalWidth) {
|
|
599
|
+
const shift = (neededWidth - totalWidth) / 2;
|
|
600
|
+
totalWidth = neededWidth;
|
|
601
|
+
for (const n of layoutNodes) n.x += shift;
|
|
602
|
+
for (const c of layoutContainers) c.x += shift;
|
|
603
|
+
for (const e of layoutEdges) {
|
|
604
|
+
for (const p of e.points)
|
|
605
|
+
p.x += shift;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
599
608
|
let cx = (totalWidth - totalGroupsWidth) / 2;
|
|
600
609
|
const legendY = totalHeight + LEGEND_GROUP_GAP;
|
|
601
610
|
for (const g2 of visibleGroups) {
|
|
@@ -618,4 +627,4 @@ function layoutSitemap(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, e
|
|
|
618
627
|
export {
|
|
619
628
|
layoutSitemap
|
|
620
629
|
};
|
|
621
|
-
//# sourceMappingURL=chunk-
|
|
630
|
+
//# sourceMappingURL=chunk-N34OTOGH.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-WGC42WJU.js";
|
|
7
7
|
import {
|
|
8
8
|
ScaleContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-24YPR5EH.js";
|
|
10
10
|
import {
|
|
11
11
|
layoutInlineHeader
|
|
12
12
|
} from "./chunk-6CLC26GU.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-A4GOY3PE.js";
|
|
18
18
|
import {
|
|
19
19
|
renderIntegratedLegend
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6S53NO3M.js";
|
|
21
21
|
import {
|
|
22
22
|
getLegendExtent,
|
|
23
23
|
getMaxLegendReservedHeight
|
|
@@ -36,16 +36,16 @@ import {
|
|
|
36
36
|
isSequenceBlock,
|
|
37
37
|
isSequenceNote,
|
|
38
38
|
isSequenceSection
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FFD6A3B2.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveActiveTagGroup,
|
|
42
42
|
tagAttrKey
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-DPGI742S.js";
|
|
44
44
|
import {
|
|
45
45
|
fillModeFromOptions,
|
|
46
46
|
legendInlineRequested,
|
|
47
47
|
legendSuppressed
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ZJJWON5O.js";
|
|
49
49
|
import {
|
|
50
50
|
contrastText,
|
|
51
51
|
mix,
|
|
@@ -415,24 +415,40 @@ var SECTION_LABEL_CLEARANCE_ABOVE = 12;
|
|
|
415
415
|
var SECTION_LABEL_CLEARANCE_BELOW = 5;
|
|
416
416
|
function summarizeSectionParticipation(messages, msgIndices) {
|
|
417
417
|
const summary = /* @__PURE__ */ new Map();
|
|
418
|
-
const bump = (id, key) => {
|
|
419
|
-
const entry = summary.get(id) ?? {
|
|
418
|
+
const bump = (id, key, lineNumber) => {
|
|
419
|
+
const entry = summary.get(id) ?? {
|
|
420
|
+
sends: 0,
|
|
421
|
+
receives: 0,
|
|
422
|
+
firstLine: lineNumber
|
|
423
|
+
};
|
|
420
424
|
entry[key] += 1;
|
|
421
425
|
summary.set(id, entry);
|
|
422
426
|
};
|
|
423
427
|
for (const idx of msgIndices) {
|
|
424
428
|
const msg = messages[idx];
|
|
425
429
|
if (!msg) continue;
|
|
426
|
-
bump(msg.from, "sends");
|
|
427
|
-
bump(msg.to, "receives");
|
|
430
|
+
bump(msg.from, "sends", msg.lineNumber);
|
|
431
|
+
bump(msg.to, "receives", msg.lineNumber);
|
|
428
432
|
}
|
|
429
433
|
return summary;
|
|
430
434
|
}
|
|
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
|
+
}
|
|
431
446
|
function sectionMarkRadius(touches) {
|
|
432
447
|
if (touches >= 4) return 6;
|
|
433
448
|
if (touches >= 2) return 4.5;
|
|
434
449
|
return 3.5;
|
|
435
450
|
}
|
|
451
|
+
var SECTION_MARK_HIT_RADIUS = 9;
|
|
436
452
|
function buildRenderSequence(messages) {
|
|
437
453
|
const steps = [];
|
|
438
454
|
const stack = [];
|
|
@@ -1036,6 +1052,12 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1036
1052
|
const GROUP_PADDING_TOP = 22;
|
|
1037
1053
|
const GROUP_PADDING_BOTTOM = 8;
|
|
1038
1054
|
const GROUP_LABEL_SIZE = 11;
|
|
1055
|
+
const sGroupLabelSize = ctx.text(GROUP_LABEL_SIZE);
|
|
1056
|
+
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;
|
|
1039
1061
|
const showTitle = !!title && parsedOptions["no-title"] !== "on";
|
|
1040
1062
|
const titleOffset = showTitle ? sTitleHeight : 0;
|
|
1041
1063
|
const LEGEND_FIXED_GAP = 8;
|
|
@@ -1363,10 +1385,18 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1363
1385
|
collapsedGroupNames.add(group.name);
|
|
1364
1386
|
collapsedGroupMeta.set(group.name, {
|
|
1365
1387
|
lineNumber: group.lineNumber,
|
|
1388
|
+
participantIds: group.participantIds,
|
|
1366
1389
|
...group.metadata !== void 0 && { metadata: group.metadata }
|
|
1367
1390
|
});
|
|
1368
1391
|
}
|
|
1369
1392
|
}
|
|
1393
|
+
const participantLabels = new Map(
|
|
1394
|
+
parsed.participants.map((p) => [String(p.id), p.label])
|
|
1395
|
+
);
|
|
1396
|
+
const groupToggleName = (groupName, memberIds) => {
|
|
1397
|
+
const labels = memberIds.map((id) => participantLabels.get(id) ?? id);
|
|
1398
|
+
return labels.length > 0 ? `${groupName}, ${labels.join(", ")}` : groupName;
|
|
1399
|
+
};
|
|
1370
1400
|
const participantTagColor = (id) => {
|
|
1371
1401
|
const direct = getTagColor(tagMap?.participants.get(id));
|
|
1372
1402
|
if (direct) return direct;
|
|
@@ -1386,11 +1416,10 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1386
1416
|
const groupTagColor = getTagColor(groupTagValue || void 0);
|
|
1387
1417
|
const fillColor = groupTagColor ? mix(groupTagColor, themeBaseBg(palette, isDark), isDark ? 15 : 20) : isDark ? palette.surface : palette.bg;
|
|
1388
1418
|
const strokeColor = groupTagColor || palette.textMuted;
|
|
1389
|
-
const groupG = svg.append("g").attr("class", "group-box-wrapper").attr("data-group-toggle", "").attr("data-group-line", String(group.lineNumber)).attr("tabindex", "0").attr("role", "button").attr("aria-expanded", "true").attr("cursor", "pointer");
|
|
1390
|
-
groupG.append("title").text("Click to collapse");
|
|
1419
|
+
const groupG = svg.append("g").attr("class", "group-box-wrapper").attr("data-group-toggle", "").attr("data-group-line", String(group.lineNumber)).attr("tabindex", "0").attr("role", "button").attr("aria-expanded", "true").attr("aria-label", groupToggleName(group.name, group.participantIds)).attr("cursor", "pointer");
|
|
1391
1420
|
groupG.append("rect").attr("x", minX).attr("y", boxY).attr("width", maxX - minX).attr("height", boxH).attr("rx", 6).attr("fill", fillColor).attr("stroke", strokeColor).attr("stroke-width", 1).attr("stroke-opacity", 0.5).attr("pointer-events", "none").attr("class", "group-box");
|
|
1392
1421
|
groupG.append("rect").attr("x", minX).attr("y", boxY).attr("width", maxX - minX).attr("height", participantStartY - boxY).attr("fill", "transparent").attr("class", "group-label-hit");
|
|
1393
|
-
groupG.append("text").attr("x", (minX + maxX) / 2).attr("y", boxY +
|
|
1422
|
+
groupG.append("text").attr("x", (minX + maxX) / 2).attr("y", boxY + sGroupLabelSize + 4).attr("text-anchor", "middle").attr("fill", strokeColor).attr("font-size", sGroupLabelSize).attr("font-weight", GROUP_LABEL_WEIGHT).attr("opacity", 0.7).attr("pointer-events", "none").attr("class", "group-label").text(group.name);
|
|
1394
1423
|
}
|
|
1395
1424
|
const bandLeftmostX = Math.min(...Array.from(participantX.values()));
|
|
1396
1425
|
const bandRightmostX = Math.max(...Array.from(participantX.values()));
|
|
@@ -1461,12 +1490,24 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1461
1490
|
const participantG = svg.select(
|
|
1462
1491
|
`.participant[data-participant-id="${participant.id}"]`
|
|
1463
1492
|
);
|
|
1464
|
-
participantG.attr("data-group-toggle", "").attr("data-group-line", String(meta.lineNumber)).attr("tabindex", "0").attr("role", "button").attr("aria-expanded", "false").attr(
|
|
1465
|
-
|
|
1493
|
+
participantG.attr("data-group-toggle", "").attr("data-group-line", String(meta.lineNumber)).attr("tabindex", "0").attr("role", "button").attr("aria-expanded", "false").attr(
|
|
1494
|
+
"aria-label",
|
|
1495
|
+
groupToggleName(participant.id, meta.participantIds)
|
|
1496
|
+
).attr("cursor", "pointer");
|
|
1466
1497
|
const pFill = effectiveTagColor ? mix(effectiveTagColor, themeBaseBg(palette, isDark), isDark ? 30 : 40) : isDark ? mix(palette.overlay, palette.surface, 50) : mix(palette.bg, palette.surface, 50);
|
|
1467
1498
|
const pStroke = effectiveTagColor || palette.border;
|
|
1468
1499
|
participantG.append("rect").attr("x", -boxW / 2).attr("y", -GROUP_PADDING_TOP).attr("width", boxW).attr("height", fullH).attr("rx", 6).attr("fill", pFill).attr("stroke", pStroke).attr("stroke-width", 1.5);
|
|
1469
|
-
|
|
1500
|
+
const memberLine = collapsedGroupMemberLine(
|
|
1501
|
+
meta.participantIds.map((id) => participantLabels.get(id) ?? id),
|
|
1502
|
+
boxW - GROUP_MEMBER_PADDING_X * 2,
|
|
1503
|
+
sGroupMemberSize
|
|
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
|
+
}
|
|
1470
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);
|
|
1471
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})`);
|
|
1472
1513
|
}
|
|
@@ -1752,6 +1793,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1752
1793
|
}
|
|
1753
1794
|
const markColor = participantTagColor(participant.id) ?? palette.text;
|
|
1754
1795
|
const radius = sectionMarkRadius(part.sends + part.receives);
|
|
1796
|
+
sectionG.append("circle").attr("cx", markX).attr("cy", markY).attr("r", Math.max(radius, SECTION_MARK_HIT_RADIUS)).attr("fill", "transparent").attr("class", "section-mark-hit").attr("data-participant-id", participant.id).attr("data-section-mark-line", String(part.firstLine)).attr("cursor", "pointer");
|
|
1755
1797
|
if (part.sends === 0) {
|
|
1756
1798
|
mark.attr("r", radius).attr("fill", bandFill).attr("stroke", markColor).attr("stroke-width", 1.6).attr("class", "section-mark section-mark-receives");
|
|
1757
1799
|
} else {
|
|
@@ -2015,6 +2057,7 @@ export {
|
|
|
2015
2057
|
applyCollapseProjection,
|
|
2016
2058
|
groupMessagesBySection,
|
|
2017
2059
|
summarizeSectionParticipation,
|
|
2060
|
+
collapsedGroupMemberLine,
|
|
2018
2061
|
buildRenderSequence,
|
|
2019
2062
|
computeActivations,
|
|
2020
2063
|
applyPositionOverrides,
|
|
@@ -2022,4 +2065,4 @@ export {
|
|
|
2022
2065
|
renderSequenceDiagram,
|
|
2023
2066
|
buildNoteMessageMap
|
|
2024
2067
|
};
|
|
2025
|
-
//# sourceMappingURL=chunk-
|
|
2068
|
+
//# sourceMappingURL=chunk-N5247W2W.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
extractColor,
|
|
8
8
|
fillModeFromToken,
|
|
9
9
|
parseFirstLine
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZJJWON5O.js";
|
|
11
11
|
import {
|
|
12
12
|
makeDgmoError,
|
|
13
13
|
makeFail
|
|
@@ -675,4 +675,4 @@ export {
|
|
|
675
675
|
searchZones,
|
|
676
676
|
parseClock
|
|
677
677
|
};
|
|
678
|
-
//# sourceMappingURL=chunk-
|
|
678
|
+
//# sourceMappingURL=chunk-NEC7R2CB.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
tagAttrKey,
|
|
17
17
|
validateTagGroupNames,
|
|
18
18
|
validateTagValues
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DPGI742S.js";
|
|
20
20
|
import {
|
|
21
21
|
SKETCH_REGISTRY,
|
|
22
22
|
extractColor,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
stripQuotes,
|
|
28
28
|
warnUnknownMetaKeys,
|
|
29
29
|
withTagAliases
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZJJWON5O.js";
|
|
31
31
|
import {
|
|
32
32
|
NAME_DIAGNOSTIC_CODES,
|
|
33
33
|
formatDgmoError,
|
|
@@ -632,4 +632,4 @@ export {
|
|
|
632
632
|
isSketchShapeKind,
|
|
633
633
|
parseSketch
|
|
634
634
|
};
|
|
635
|
-
//# sourceMappingURL=chunk-
|
|
635
|
+
//# sourceMappingURL=chunk-NJKUTY4M.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
splitNameAndMeta,
|
|
8
8
|
warnUnknownMetaKeys,
|
|
9
9
|
withTagAliases
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZJJWON5O.js";
|
|
11
11
|
import {
|
|
12
12
|
makeDgmoError
|
|
13
13
|
} from "./chunk-OLMWTJVU.js";
|
|
@@ -314,4 +314,4 @@ export {
|
|
|
314
314
|
parseTimelineDate,
|
|
315
315
|
parseTimelineEventLine
|
|
316
316
|
};
|
|
317
|
-
//# sourceMappingURL=chunk-
|
|
317
|
+
//# sourceMappingURL=chunk-NNMNHE3J.js.map
|