@diagrammo/dgmo 0.94.0 → 0.95.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 +72 -3
- package/dist/advanced.js +49 -32
- package/dist/block.d.ts +6 -0
- package/dist/block.js +17 -14
- package/dist/chart-meta.js +7 -7
- package/dist/{chunk-TDAGJJPZ.js → chunk-2J2CWWWK.js} +1 -1
- package/dist/{chunk-2XMTZ5JR.js → chunk-4UVCTLRH.js} +1 -1
- package/dist/{chunk-DLJJOCIT.js → chunk-5XBYLYYI.js} +1 -1
- package/dist/{chunk-XKCRKD2B.js → chunk-62GLKE6Q.js} +3 -3
- package/dist/{chunk-VDY2GR6U.js → chunk-67N26CER.js} +2 -2
- package/dist/{chunk-I37S3EZE.js → chunk-6EFCOES2.js} +366 -281
- package/dist/{chunk-HI6R27YA.js → chunk-7IALGIOI.js} +2 -2
- package/dist/{chunk-RESEJSCV.js → chunk-BCV2VJTM.js} +2 -2
- package/dist/{chunk-2HSHWPTO.js → chunk-BTP2BMWN.js} +4 -4
- package/dist/{chunk-KBHT5XEY.js → chunk-E7F76M3U.js} +138 -31
- package/dist/{chunk-JT2BG7LM.js → chunk-EXHXTMVR.js} +3 -3
- package/dist/{chunk-7IOZ6JE4.js → chunk-IQN2NGEU.js} +3 -3
- package/dist/{chunk-DNM3XZCK.js → chunk-IY62DXT2.js} +1 -1
- package/dist/{chunk-B25IWGDH.js → chunk-JJ7RGTAU.js} +2 -2
- package/dist/{chunk-7SXV7NUS.js → chunk-KLBTJEIK.js} +1 -1
- package/dist/{chunk-DDIOWNHS.js → chunk-L5S32VZJ.js} +3 -3
- package/dist/{chunk-AYUSD4Z6.js → chunk-LAXMUSGW.js} +3 -3
- package/dist/{chunk-2MS623GW.js → chunk-LJGE43SG.js} +1 -1
- package/dist/{chunk-5ZUZZDW5.js → chunk-P5XA627W.js} +7 -7
- package/dist/{chunk-DRQSB72S.js → chunk-PGBTUGDB.js} +2 -2
- package/dist/{chunk-P7TRFL4P.js → chunk-R46N5KR4.js} +2 -0
- package/dist/{chunk-4TEPDQHJ.js → chunk-RQTDUZUH.js} +1 -1
- package/dist/{chunk-CIHHTS5B.js → chunk-S4SJ4LLY.js} +1 -1
- package/dist/{chunk-5HAYT43L.js → chunk-U6VS3T2M.js} +19 -3
- package/dist/{chunk-4SP6OUO7.js → chunk-USE6HIOZ.js} +32 -32
- package/dist/{chunk-2FDQEQID.js → chunk-USZLHYEQ.js} +1 -1
- package/dist/{chunk-NOQB4KMV.js → chunk-V5D6GDNK.js} +1 -1
- package/dist/{chunk-6JCTW74W.js → chunk-VB4VMB2I.js} +1 -1
- package/dist/{chunk-G3HZ4PGE.js → chunk-VF7IKIRS.js} +1 -1
- package/dist/{chunk-3ZP3QC47.js → chunk-VTESGA5F.js} +2 -2
- package/dist/{chunk-3TWBMU7K.js → chunk-XOMIYMQ3.js} +5 -5
- package/dist/completion-registry.js +3 -0
- package/dist/copy-image.d.ts +34 -0
- package/dist/copy-image.js +96 -0
- package/dist/{dgmo-router-E5O7RJSW.js → dgmo-router-6YLKM6WU.js} +11 -11
- package/dist/{flowchart-parser-NZXASOZG.js → flowchart-parser-J3VWIFWB.js} +3 -3
- package/dist/{flowchart-renderer-PTCRIANF.js → flowchart-renderer-FECH5KK5.js} +8 -8
- package/dist/index.js +13 -13
- package/dist/{layout-IT4ZTV6C.js → layout-5SZ5A64I.js} +6 -6
- package/dist/{layout-VC3MXRB4.js → layout-EWXHEXNS.js} +6 -6
- package/dist/{layout-U3AH6M7J.js → layout-TIBRMWHL.js} +3 -3
- package/dist/{layout-ISSBWBH7.js → layout-YBMT74MG.js} +6 -6
- package/dist/{layout-search-BBX2BMEF.js → layout-search-AWPJWBKT.js} +4 -4
- package/dist/{parser-R3LPEQIT.js → parser-AR2GON37.js} +2 -2
- package/dist/{parser-4RFY7D52.js → parser-BTSTKY5G.js} +3 -3
- package/dist/{parser-TAYRTCPR.js → parser-MA7L3XND.js} +3 -3
- package/dist/{parser-7QKQ4P4P.js → parser-ZRIZFDZY.js} +3 -3
- package/dist/{renderer-LNP23NSM.js → renderer-2QPHDBZY.js} +2 -2
- package/dist/{renderer-J3GPDK73.js → renderer-4VGO27EE.js} +8 -8
- package/dist/{renderer-JJ4QW3SK.js → renderer-6BDK47V6.js} +1 -1
- package/dist/{renderer-FMTLSOCX.js → renderer-ACQQ2JXA.js} +1 -1
- package/dist/{renderer-M5DUMITP.js → renderer-IGSHD3OT.js} +2 -2
- package/dist/{renderer-53B523PM.js → renderer-IVHD7ENY.js} +2 -2
- package/dist/{renderer-OUDHH5MV.js → renderer-P3WR7TKD.js} +8 -8
- package/dist/{renderer-XOWDERU2.js → renderer-UGW4N2W5.js} +1 -1
- package/dist/{renderer-PHLCYVSN.js → renderer-XDX6S7OV.js} +1 -1
- package/dist/{renderer-J7ZSTJUE.js → renderer-Y47EM337.js} +1 -1
- package/dist/{renderer-4SE7R22T.js → renderer-ZV6KCLCL.js} +12 -12
- package/dist/{state-parser-KPVW5CRI.js → state-parser-PMNHLHLE.js} +3 -3
- package/dist/{state-renderer-ZVEI265C.js → state-renderer-JQ5DS66J.js} +8 -8
- package/docs/language-reference.md +2 -2
- package/package.json +5 -1
|
@@ -2080,7 +2080,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
2080
2080
|
if (collapsible) groupG.attr("data-group-toggle", "");
|
|
2081
2081
|
groupG.attr("data-group-line", String(group.lineNumber));
|
|
2082
2082
|
if (collapsible) {
|
|
2083
|
-
groupG.attr("
|
|
2083
|
+
groupG.attr("data-line-number", String(group.lineNumber)).attr("role", "button").attr("aria-expanded", "true").attr("aria-label", groupToggleName(group.name, group.participantIds)).attr("cursor", "pointer");
|
|
2084
2084
|
}
|
|
2085
2085
|
groupG.append("rect").attr("x", frame.x).attr("y", frame.y).attr("width", frame.width).attr("height", frame.height).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");
|
|
2086
2086
|
groupG.append("rect").attr("x", frame.x).attr("y", frame.y).attr("width", frame.width).attr("height", frame.headerHeight).attr("fill", "transparent").attr("class", "group-label-hit");
|
|
@@ -2118,7 +2118,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
2118
2118
|
const participantG = svg.select(
|
|
2119
2119
|
`.participant[data-participant-id="${participant.id}"]`
|
|
2120
2120
|
);
|
|
2121
|
-
participantG.attr("data-group-toggle", "").attr("data-group-line", String(meta.lineNumber)).attr("
|
|
2121
|
+
participantG.attr("data-group-toggle", "").attr("data-group-line", String(meta.lineNumber)).attr("data-line-number", String(meta.lineNumber)).attr("role", "button").attr("aria-expanded", "false").attr("aria-label", groupToggleName(meta.name, meta.participantIds)).attr("cursor", "pointer");
|
|
2122
2122
|
const pFill = effectiveTagColor ? mix(effectiveTagColor, themeBaseBg(palette, isDark), isDark ? 30 : 40) : isDark ? mix(palette.overlay, palette.surface, 50) : mix(palette.bg, palette.surface, 50);
|
|
2123
2123
|
const pStroke = effectiveTagColor ?? palette.border;
|
|
2124
2124
|
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);
|
|
@@ -2184,7 +2184,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
2184
2184
|
const secY = band.y;
|
|
2185
2185
|
const isCollapsed = band.collapsed;
|
|
2186
2186
|
const lineColor = palette.textMuted;
|
|
2187
|
-
const sectionG = svg.append("g").attr("data-section-toggle", "").attr("data-line-number", String(sec.lineNumber)).attr("data-section", "").attr("
|
|
2187
|
+
const sectionG = svg.append("g").attr("data-section-toggle", "").attr("data-line-number", String(sec.lineNumber)).attr("data-section", "").attr("role", "button").attr("aria-expanded", String(!isCollapsed));
|
|
2188
2188
|
const BAND_HEIGHT = band.height;
|
|
2189
2189
|
const bandFill = isCollapsed ? legendChromeColors(palette, isDark).groupBg : lineColor;
|
|
2190
2190
|
const bandOpacity = isCollapsed ? 1 : isDark ? 0.1 : 0.08;
|
|
@@ -98,7 +98,7 @@ function renderNoteBox(parent, rect, lines, palette, opts) {
|
|
|
98
98
|
noteG.attr("data-line-end", String(opts.endLineNumber));
|
|
99
99
|
}
|
|
100
100
|
if (interactive) {
|
|
101
|
-
noteG.style("cursor", "pointer").attr("role", "button").attr("
|
|
101
|
+
noteG.style("cursor", "pointer").attr("role", "button").attr("aria-expanded", "true").attr("aria-label", "Collapse note");
|
|
102
102
|
}
|
|
103
103
|
const boxPath = noteG.append("path").attr(
|
|
104
104
|
"d",
|
|
@@ -136,7 +136,7 @@ var NOTE_BADGE_OPACITY = 0.6;
|
|
|
136
136
|
function renderNoteBadge(parent, center, palette, opts) {
|
|
137
137
|
const fill = noteBoxFill(palette, opts.isDark, opts.color);
|
|
138
138
|
const accent = noteAccent(palette, opts.color);
|
|
139
|
-
const g = parent.append("g").attr("class", "note note-badge").attr("data-note-toggle", "").attr("transform", `translate(${center.x}, ${center.y})`).attr("opacity", NOTE_BADGE_OPACITY).style("cursor", "pointer").attr("role", "button").attr("
|
|
139
|
+
const g = parent.append("g").attr("class", "note note-badge").attr("data-note-toggle", "").attr("transform", `translate(${center.x}, ${center.y})`).attr("opacity", NOTE_BADGE_OPACITY).style("cursor", "pointer").attr("role", "button").attr("aria-expanded", "false").attr("aria-label", "Expand note");
|
|
140
140
|
if (opts.lineNumber !== void 0) {
|
|
141
141
|
g.attr("data-line-number", String(opts.lineNumber));
|
|
142
142
|
}
|