@diagrammo/dgmo 0.48.0 → 0.48.1
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.js +11 -11
- package/dist/auto.js +16 -16
- package/dist/auto.mjs +41 -12
- package/dist/block.js +4 -4
- package/dist/{chunk-FNB3PNGF.js → chunk-7DTWEFUE.js} +3 -3
- package/dist/{chunk-2DXMZRWJ.js → chunk-B65G5DNL.js} +8 -1
- package/dist/{chunk-RZCF2VVM.js → chunk-B7JUCQUA.js} +3 -1
- package/dist/{chunk-DU7W62N5.js → chunk-FANX6UJR.js} +3 -3
- package/dist/{chunk-6FZYCKXB.js → chunk-HSH73DP6.js} +2 -2
- package/dist/{chunk-P4RH4OSP.js → chunk-ILKORZ3H.js} +2 -2
- package/dist/{chunk-Y5QGVTVC.js → chunk-JTSMEYIZ.js} +7 -3
- package/dist/{chunk-RCERWOJR.js → chunk-ODZVHU3R.js} +1 -2
- package/dist/{chunk-DZAQBW35.js → chunk-SGZYXELT.js} +3 -7
- package/dist/{chunk-CUVHQHZ7.js → chunk-THXCFRTU.js} +3 -3
- package/dist/{chunk-IH6ZMVQ5.js → chunk-UC7TFHUM.js} +29 -11
- package/dist/{chunk-EMS2SK26.js → chunk-ZBWMSD5N.js} +3 -1
- package/dist/cli.cjs +15 -15
- package/dist/{dgmo-router-DZCIDUO5.js → dgmo-router-X35VLZLM.js} +3 -3
- package/dist/element.js +16 -16
- package/dist/element.mjs +41 -12
- package/dist/{flowchart-renderer-ZAEOL4DX.js → flowchart-renderer-SNDSII4D.js} +2 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -4
- package/dist/{parser-FUSKFGZN.js → parser-2EWECDSA.js} +2 -2
- package/dist/{renderer-UWA5XS74.js → renderer-4JHRUBE6.js} +3 -3
- package/dist/{renderer-WZRREQ2P.js → renderer-5MYBMBYO.js} +2 -2
- package/dist/{renderer-TOCOVLHS.js → renderer-B2OMQIQG.js} +3 -3
- package/dist/{renderer-2XQQQ6QR.js → renderer-N43WR5GV.js} +3 -3
- package/dist/{renderer-T7YKC5VP.js → renderer-ZRNG54CW.js} +3 -3
- package/dist/{state-renderer-RFYHSP4K.js → state-renderer-B4DQBM6M.js} +2 -2
- package/package.json +5 -2
package/dist/auto.mjs
CHANGED
|
@@ -16260,6 +16260,13 @@ function parseC4(content, palette) {
|
|
|
16260
16260
|
}
|
|
16261
16261
|
namePart = namePart.substring(0, nameIsAMatch.index).trim();
|
|
16262
16262
|
}
|
|
16263
|
+
const bareTail = metaTail.trim();
|
|
16264
|
+
if (bareTail && !bareTail.includes(":")) {
|
|
16265
|
+
pushError(
|
|
16266
|
+
lineNumber,
|
|
16267
|
+
`text after 'is a ${rawType}' must be 'key: value' metadata \u2014 '${bareTail}' is not recognized (did you mean 'description: ${bareTail}'?)`
|
|
16268
|
+
);
|
|
16269
|
+
}
|
|
16263
16270
|
const metadata = parseC4MetaTail(metaTail, metaAliasMap);
|
|
16264
16271
|
const shape = explicitShape ?? inferC4Shape(namePart, metadata["tech"] ?? metadata["technology"]);
|
|
16265
16272
|
let isADescription;
|
|
@@ -29389,10 +29396,14 @@ function runInExportContainer(width, height, fn) {
|
|
|
29389
29396
|
document.body.removeChild(container);
|
|
29390
29397
|
}
|
|
29391
29398
|
}
|
|
29392
|
-
function extractExportSvg(container, theme) {
|
|
29399
|
+
function extractExportSvg(container, theme, palette) {
|
|
29393
29400
|
const svgEl = container.querySelector("svg");
|
|
29394
29401
|
if (!svgEl) return "";
|
|
29395
|
-
if (theme === "transparent")
|
|
29402
|
+
if (theme === "transparent") {
|
|
29403
|
+
svgEl.style.background = "none";
|
|
29404
|
+
} else if (palette && !svgEl.style.background) {
|
|
29405
|
+
svgEl.style.background = palette.bg;
|
|
29406
|
+
}
|
|
29396
29407
|
svgEl.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
29397
29408
|
svgEl.style.fontFamily = FONT_FAMILY;
|
|
29398
29409
|
svgEl.querySelectorAll("[data-export-ignore]").forEach((el) => el.remove());
|
|
@@ -29811,7 +29822,7 @@ function renderOrgForExport(content, theme, palette) {
|
|
|
29811
29822
|
width: exportWidth,
|
|
29812
29823
|
height: exportHeight
|
|
29813
29824
|
});
|
|
29814
|
-
return extractExportSvg(container, theme);
|
|
29825
|
+
return extractExportSvg(container, theme, palette);
|
|
29815
29826
|
});
|
|
29816
29827
|
}
|
|
29817
29828
|
var DIAGRAM_PADDING, MAX_SCALE, TITLE_HEIGHT, ANCESTOR_DOT_R, ANCESTOR_LABEL_FONT_SIZE, ANCESTOR_ROW_HEIGHT, ANCESTOR_TRAIL_BOTTOM_GAP, LEGEND_FIXED_GAP;
|
|
@@ -32314,7 +32325,7 @@ function renderClassDiagramForExport(content, theme, palette) {
|
|
|
32314
32325
|
true
|
|
32315
32326
|
// exportMode
|
|
32316
32327
|
);
|
|
32317
|
-
return extractExportSvg(container, theme);
|
|
32328
|
+
return extractExportSvg(container, theme, palette);
|
|
32318
32329
|
});
|
|
32319
32330
|
}
|
|
32320
32331
|
var DIAGRAM_PADDING4, MAX_SCALE3, CLASS_FONT_SIZE2, MEMBER_FONT_SIZE2, EDGE_LABEL_FONT_SIZE2, MEMBER_LINE_HEIGHT2, COMPARTMENT_PADDING_Y2, MEMBER_PADDING_X, CLASS_TYPE_MAP, CLASS_TYPE_ORDER, LEGEND_GROUP_NAME, lineGenerator2;
|
|
@@ -38493,7 +38504,7 @@ function renderMindmapForExport(content, theme, palette) {
|
|
|
38493
38504
|
void 0,
|
|
38494
38505
|
hideDescriptions
|
|
38495
38506
|
);
|
|
38496
|
-
return extractExportSvg(container, theme);
|
|
38507
|
+
return extractExportSvg(container, theme, palette);
|
|
38497
38508
|
});
|
|
38498
38509
|
}
|
|
38499
38510
|
var DIAGRAM_PADDING7, TITLE_HEIGHT4, SINGLE_LABEL_HEIGHT2, LABEL_LINE_HEIGHT4, DESC_LINE_HEIGHT4, NODE_RADIUS, ROOT_STROKE_WIDTH, DEPTH_COLOR_KEYS;
|
|
@@ -42876,6 +42887,8 @@ function renderFlowchartForExport(content, theme, palette) {
|
|
|
42876
42887
|
if (!svgEl) return "";
|
|
42877
42888
|
if (theme === "transparent") {
|
|
42878
42889
|
svgEl.style.background = "none";
|
|
42890
|
+
} else if (!svgEl.style.background) {
|
|
42891
|
+
svgEl.style.background = palette.bg;
|
|
42879
42892
|
}
|
|
42880
42893
|
svgEl.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
42881
42894
|
svgEl.style.fontFamily = FONT_FAMILY;
|
|
@@ -52521,6 +52534,8 @@ function renderStateForExport(content, theme, palette) {
|
|
|
52521
52534
|
if (!svgEl) return "";
|
|
52522
52535
|
if (theme === "transparent") {
|
|
52523
52536
|
svgEl.style.background = "none";
|
|
52537
|
+
} else if (!svgEl.style.background) {
|
|
52538
|
+
svgEl.style.background = palette.bg;
|
|
52524
52539
|
}
|
|
52525
52540
|
svgEl.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
52526
52541
|
svgEl.style.fontFamily = FONT_FAMILY;
|
|
@@ -63074,7 +63089,7 @@ function renderRaci(container, parsed, palette, isDark, handlers, exportDims) {
|
|
|
63074
63089
|
const colBottomY = cursorY + sColumnBottomPad;
|
|
63075
63090
|
const totalHeight = colBottomY + sVMargin;
|
|
63076
63091
|
const svgHeight = exportDims ? totalHeight : Math.max(height, totalHeight);
|
|
63077
|
-
const svg = d3Selection32.select(container).append("svg").attr("xmlns", "http://www.w3.org/2000/svg").attr("width", width).attr("height", svgHeight).attr("viewBox", `0 0 ${width} ${svgHeight}`).attr("preserveAspectRatio", "xMidYMin meet").attr("font-family", FONT_FAMILY)
|
|
63092
|
+
const svg = d3Selection32.select(container).append("svg").attr("xmlns", "http://www.w3.org/2000/svg").attr("width", width).attr("height", svgHeight).attr("viewBox", `0 0 ${width} ${svgHeight}`).attr("preserveAspectRatio", "xMidYMin meet").attr("font-family", FONT_FAMILY);
|
|
63078
63093
|
if (ctx.isBelowFloor) {
|
|
63079
63094
|
svg.attr("width", "100%");
|
|
63080
63095
|
}
|
|
@@ -63153,11 +63168,7 @@ function renderRaci(container, parsed, palette, isDark, handlers, exportDims) {
|
|
|
63153
63168
|
const cw = roleColW - 2 * sColumnInset;
|
|
63154
63169
|
const roleColor = parsed.roleColors[i] ?? autoAccent(i, palette);
|
|
63155
63170
|
const bodyFill = mix(roleColor, themeBaseBg(palette, isDark), 16);
|
|
63156
|
-
const headerFill = mix(
|
|
63157
|
-
roleColor,
|
|
63158
|
-
themeBaseBg(palette, isDark),
|
|
63159
|
-
30
|
|
63160
|
-
);
|
|
63171
|
+
const headerFill = mix(roleColor, themeBaseBg(palette, isDark), 30);
|
|
63161
63172
|
const colG = columnsG.append("g").attr("class", "raci-column").attr("data-role-id", roleId);
|
|
63162
63173
|
colG.append("rect").attr("class", "raci-column-body").attr("x", cx).attr("y", headerY).attr("width", cw).attr("height", colTotalHeight).attr("rx", sColumnRadius).attr("fill", bodyFill);
|
|
63163
63174
|
colG.append("path").attr("class", "raci-column-header").attr(
|
|
@@ -68752,34 +68763,50 @@ function buildHoverCss(spec, derived = {}, emphasisOverride) {
|
|
|
68752
68763
|
return parts.join("");
|
|
68753
68764
|
}
|
|
68754
68765
|
var HOVER_SPECS = {
|
|
68766
|
+
// Data-chart family (`.dgmo-datum`): `dim` at 0.18 to MIRROR the app's live
|
|
68767
|
+
// hover (charts-d3/interactions.ts `.dgmo-dim{opacity:.18}` — hover a mark →
|
|
68768
|
+
// every other emph-key drops out). `lift` (saturate/brightness) read as
|
|
68769
|
+
// "nothing happened" on muted fills. Safe to dim: these export renderers set
|
|
68770
|
+
// NO inline `style="opacity"` on datums (only presentation `*-opacity` attrs,
|
|
68771
|
+
// which a `<style>` rule outranks), so no RED-2 inline-defeat.
|
|
68755
68772
|
pie: {
|
|
68756
68773
|
markSelector: ".dgmo-datum",
|
|
68757
68774
|
strategy: "enumerated",
|
|
68758
68775
|
groupAttr: "data-emph-key",
|
|
68776
|
+
emphasis: "dim",
|
|
68777
|
+
dimOpacity: 0.18,
|
|
68759
68778
|
legend: true
|
|
68760
68779
|
},
|
|
68761
68780
|
bar: {
|
|
68762
68781
|
markSelector: ".dgmo-datum",
|
|
68763
68782
|
strategy: "enumerated",
|
|
68764
68783
|
groupAttr: "data-emph-key",
|
|
68784
|
+
emphasis: "dim",
|
|
68785
|
+
dimOpacity: 0.18,
|
|
68765
68786
|
legend: true
|
|
68766
68787
|
},
|
|
68767
68788
|
funnel: {
|
|
68768
68789
|
markSelector: ".dgmo-datum",
|
|
68769
68790
|
strategy: "enumerated",
|
|
68770
68791
|
groupAttr: "data-emph-key",
|
|
68792
|
+
emphasis: "dim",
|
|
68793
|
+
dimOpacity: 0.18,
|
|
68771
68794
|
legend: true
|
|
68772
68795
|
},
|
|
68773
68796
|
heatmap: {
|
|
68774
68797
|
markSelector: ".dgmo-datum",
|
|
68775
68798
|
strategy: "enumerated",
|
|
68776
68799
|
groupAttr: "data-emph-key",
|
|
68800
|
+
emphasis: "dim",
|
|
68801
|
+
dimOpacity: 0.18,
|
|
68777
68802
|
legend: true
|
|
68778
68803
|
},
|
|
68779
68804
|
"polar-area": {
|
|
68780
68805
|
markSelector: ".dgmo-datum",
|
|
68781
68806
|
strategy: "enumerated",
|
|
68782
68807
|
groupAttr: "data-emph-key",
|
|
68808
|
+
emphasis: "dim",
|
|
68809
|
+
dimOpacity: 0.18,
|
|
68783
68810
|
legend: true
|
|
68784
68811
|
},
|
|
68785
68812
|
// ── CROSS-FREE diagram charts — FIXED-attr keys, DOM-verified (Task 3) ──
|
|
@@ -68953,6 +68980,8 @@ var HOVER_SPECS = {
|
|
|
68953
68980
|
markSelector: ".dgmo-datum",
|
|
68954
68981
|
strategy: "enumerated",
|
|
68955
68982
|
groupAttr: "data-category",
|
|
68983
|
+
emphasis: "dim",
|
|
68984
|
+
dimOpacity: 0.18,
|
|
68956
68985
|
legend: true
|
|
68957
68986
|
},
|
|
68958
68987
|
quadrant: {
|
|
@@ -70072,7 +70101,7 @@ var CSS = AUTO_BASE_CSS + "\n" + BLOCK_CSS + "\n" + darkScopedBlockCss(BLOCK_CSS
|
|
|
70072
70101
|
|
|
70073
70102
|
// src/auto/shared.ts
|
|
70074
70103
|
init_safe_href();
|
|
70075
|
-
var VERSION = "0.48.
|
|
70104
|
+
var VERSION = "0.48.1";
|
|
70076
70105
|
var ARIA_LABEL_MAX = 200;
|
|
70077
70106
|
var COPIED_INTERACTION_MS = 1500;
|
|
70078
70107
|
var LOG_PREFIX = "[dgmo]";
|
package/dist/block.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeSvgForEmbed
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ODZVHU3R.js";
|
|
4
4
|
import {
|
|
5
5
|
encodeDiagramUrl,
|
|
6
6
|
render
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UC7TFHUM.js";
|
|
8
8
|
import "./chunk-PBAHEPLQ.js";
|
|
9
9
|
import "./chunk-OJR3MQYV.js";
|
|
10
10
|
import "./chunk-UWN33VNX.js";
|
|
@@ -17,7 +17,7 @@ import "./chunk-A4GOY3PE.js";
|
|
|
17
17
|
import "./chunk-6KFWC4CO.js";
|
|
18
18
|
import "./chunk-QOOUC2J5.js";
|
|
19
19
|
import "./chunk-WCT3NYCV.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-HSH73DP6.js";
|
|
21
21
|
import "./chunk-P235SVAH.js";
|
|
22
22
|
import "./chunk-6HO5ZTXK.js";
|
|
23
23
|
import "./chunk-44CM72SQ.js";
|
|
@@ -52,7 +52,7 @@ import "./chunk-5QXL4NYS.js";
|
|
|
52
52
|
import "./chunk-GMR5MFHJ.js";
|
|
53
53
|
import "./chunk-ERLBPDGU.js";
|
|
54
54
|
import "./chunk-AELOBFW5.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-B65G5DNL.js";
|
|
56
56
|
import "./chunk-IYULMRBE.js";
|
|
57
57
|
import {
|
|
58
58
|
resolvePaletteOrFallback
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
extractExportSvg,
|
|
13
13
|
runInExportContainer
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JTSMEYIZ.js";
|
|
15
15
|
import {
|
|
16
16
|
EDGE_STROKE_WIDTH,
|
|
17
17
|
NODE_STROKE_WIDTH
|
|
@@ -399,7 +399,7 @@ function renderClassDiagramForExport(content, theme, palette) {
|
|
|
399
399
|
true
|
|
400
400
|
// exportMode
|
|
401
401
|
);
|
|
402
|
-
return extractExportSvg(container, theme);
|
|
402
|
+
return extractExportSvg(container, theme, palette);
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
|
|
@@ -407,4 +407,4 @@ export {
|
|
|
407
407
|
renderClassDiagram,
|
|
408
408
|
renderClassDiagramForExport
|
|
409
409
|
};
|
|
410
|
-
//# sourceMappingURL=chunk-
|
|
410
|
+
//# sourceMappingURL=chunk-7DTWEFUE.js.map
|
|
@@ -542,6 +542,13 @@ function parseC4(content, palette) {
|
|
|
542
542
|
}
|
|
543
543
|
namePart = namePart.substring(0, nameIsAMatch.index).trim();
|
|
544
544
|
}
|
|
545
|
+
const bareTail = metaTail.trim();
|
|
546
|
+
if (bareTail && !bareTail.includes(":")) {
|
|
547
|
+
pushError(
|
|
548
|
+
lineNumber,
|
|
549
|
+
`text after 'is a ${rawType}' must be 'key: value' metadata \u2014 '${bareTail}' is not recognized (did you mean 'description: ${bareTail}'?)`
|
|
550
|
+
);
|
|
551
|
+
}
|
|
545
552
|
const metadata = parseC4MetaTail(metaTail, metaAliasMap);
|
|
546
553
|
const shape = explicitShape ?? inferC4Shape(namePart, metadata["tech"] ?? metadata["technology"]);
|
|
547
554
|
let isADescription;
|
|
@@ -797,4 +804,4 @@ function validateDeploymentRefs(result, knownNames, pushWarning) {
|
|
|
797
804
|
export {
|
|
798
805
|
parseC4
|
|
799
806
|
};
|
|
800
|
-
//# sourceMappingURL=chunk-
|
|
807
|
+
//# sourceMappingURL=chunk-B65G5DNL.js.map
|
|
@@ -512,6 +512,8 @@ function renderFlowchartForExport(content, theme, palette) {
|
|
|
512
512
|
if (!svgEl) return "";
|
|
513
513
|
if (theme === "transparent") {
|
|
514
514
|
svgEl.style.background = "none";
|
|
515
|
+
} else if (!svgEl.style.background) {
|
|
516
|
+
svgEl.style.background = palette.bg;
|
|
515
517
|
}
|
|
516
518
|
svgEl.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
517
519
|
svgEl.style.fontFamily = FONT_FAMILY;
|
|
@@ -525,4 +527,4 @@ export {
|
|
|
525
527
|
renderFlowchart,
|
|
526
528
|
renderFlowchartForExport
|
|
527
529
|
};
|
|
528
|
-
//# sourceMappingURL=chunk-
|
|
530
|
+
//# sourceMappingURL=chunk-B7JUCQUA.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractExportSvg,
|
|
3
3
|
runInExportContainer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JTSMEYIZ.js";
|
|
5
5
|
import {
|
|
6
6
|
renderCollapseBar,
|
|
7
7
|
renderNodeCard
|
|
@@ -476,7 +476,7 @@ function renderOrgForExport(content, theme, palette) {
|
|
|
476
476
|
width: exportWidth,
|
|
477
477
|
height: exportHeight
|
|
478
478
|
});
|
|
479
|
-
return extractExportSvg(container, theme);
|
|
479
|
+
return extractExportSvg(container, theme, palette);
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
482
|
|
|
@@ -484,4 +484,4 @@ export {
|
|
|
484
484
|
renderOrg,
|
|
485
485
|
renderOrgForExport
|
|
486
486
|
};
|
|
487
|
-
//# sourceMappingURL=chunk-
|
|
487
|
+
//# sourceMappingURL=chunk-FANX6UJR.js.map
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
} from "./chunk-AELOBFW5.js";
|
|
84
84
|
import {
|
|
85
85
|
parseC4
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-B65G5DNL.js";
|
|
87
87
|
import {
|
|
88
88
|
looksLikeSequence,
|
|
89
89
|
parseSequenceDgmo
|
|
@@ -2062,4 +2062,4 @@ export {
|
|
|
2062
2062
|
knownChartTypeIds,
|
|
2063
2063
|
parseDgmo
|
|
2064
2064
|
};
|
|
2065
|
-
//# sourceMappingURL=chunk-
|
|
2065
|
+
//# sourceMappingURL=chunk-HSH73DP6.js.map
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
} from "./chunk-WCT3NYCV.js";
|
|
35
35
|
import {
|
|
36
36
|
parseC4
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-B65G5DNL.js";
|
|
38
38
|
import {
|
|
39
39
|
preprocessDescriptionLine
|
|
40
40
|
} from "./chunk-IYULMRBE.js";
|
|
@@ -1035,4 +1035,4 @@ export {
|
|
|
1035
1035
|
renderC4Deployment,
|
|
1036
1036
|
renderC4DeploymentForExport
|
|
1037
1037
|
};
|
|
1038
|
-
//# sourceMappingURL=chunk-
|
|
1038
|
+
//# sourceMappingURL=chunk-ILKORZ3H.js.map
|
|
@@ -16,10 +16,14 @@ function runInExportContainer(width, height, fn) {
|
|
|
16
16
|
document.body.removeChild(container);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
function extractExportSvg(container, theme) {
|
|
19
|
+
function extractExportSvg(container, theme, palette) {
|
|
20
20
|
const svgEl = container.querySelector("svg");
|
|
21
21
|
if (!svgEl) return "";
|
|
22
|
-
if (theme === "transparent")
|
|
22
|
+
if (theme === "transparent") {
|
|
23
|
+
svgEl.style.background = "none";
|
|
24
|
+
} else if (palette && !svgEl.style.background) {
|
|
25
|
+
svgEl.style.background = palette.bg;
|
|
26
|
+
}
|
|
23
27
|
svgEl.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
24
28
|
svgEl.style.fontFamily = FONT_FAMILY;
|
|
25
29
|
svgEl.querySelectorAll("[data-export-ignore]").forEach((el) => el.remove());
|
|
@@ -30,4 +34,4 @@ export {
|
|
|
30
34
|
runInExportContainer,
|
|
31
35
|
extractExportSvg
|
|
32
36
|
};
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-JTSMEYIZ.js.map
|
|
@@ -27,7 +27,6 @@ function normalizeSvgForEmbed(input) {
|
|
|
27
27
|
}
|
|
28
28
|
svg = svg.replace(/(<svg[^>]*?) width="[^"]*"/g, "$1");
|
|
29
29
|
svg = svg.replace(/(<svg[^>]*?) height="[^"]*"/g, "$1");
|
|
30
|
-
svg = svg.replace(/(<svg[^>]*?style="[^"]*?)background:[^;"]*;?\s*/g, "$1");
|
|
31
30
|
svg = svg.replace(/<svg\s{2,}/g, "<svg ");
|
|
32
31
|
return svg;
|
|
33
32
|
}
|
|
@@ -151,4 +150,4 @@ export {
|
|
|
151
150
|
normalizeSvgForEmbed,
|
|
152
151
|
getEmbedSvgViewBox
|
|
153
152
|
};
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
153
|
+
//# sourceMappingURL=chunk-ODZVHU3R.js.map
|
|
@@ -259,7 +259,7 @@ function renderRaci(container, parsed, palette, isDark, handlers, exportDims) {
|
|
|
259
259
|
const colBottomY = cursorY + sColumnBottomPad;
|
|
260
260
|
const totalHeight = colBottomY + sVMargin;
|
|
261
261
|
const svgHeight = exportDims ? totalHeight : Math.max(height, totalHeight);
|
|
262
|
-
const svg = d3Selection.select(container).append("svg").attr("xmlns", "http://www.w3.org/2000/svg").attr("width", width).attr("height", svgHeight).attr("viewBox", `0 0 ${width} ${svgHeight}`).attr("preserveAspectRatio", "xMidYMin meet").attr("font-family", FONT_FAMILY)
|
|
262
|
+
const svg = d3Selection.select(container).append("svg").attr("xmlns", "http://www.w3.org/2000/svg").attr("width", width).attr("height", svgHeight).attr("viewBox", `0 0 ${width} ${svgHeight}`).attr("preserveAspectRatio", "xMidYMin meet").attr("font-family", FONT_FAMILY);
|
|
263
263
|
if (ctx.isBelowFloor) {
|
|
264
264
|
svg.attr("width", "100%");
|
|
265
265
|
}
|
|
@@ -338,11 +338,7 @@ function renderRaci(container, parsed, palette, isDark, handlers, exportDims) {
|
|
|
338
338
|
const cw = roleColW - 2 * sColumnInset;
|
|
339
339
|
const roleColor = parsed.roleColors[i] ?? autoAccent(i, palette);
|
|
340
340
|
const bodyFill = mix(roleColor, themeBaseBg(palette, isDark), 16);
|
|
341
|
-
const headerFill = mix(
|
|
342
|
-
roleColor,
|
|
343
|
-
themeBaseBg(palette, isDark),
|
|
344
|
-
30
|
|
345
|
-
);
|
|
341
|
+
const headerFill = mix(roleColor, themeBaseBg(palette, isDark), 30);
|
|
346
342
|
const colG = columnsG.append("g").attr("class", "raci-column").attr("data-role-id", roleId);
|
|
347
343
|
colG.append("rect").attr("class", "raci-column-body").attr("x", cx).attr("y", headerY).attr("width", cw).attr("height", colTotalHeight).attr("rx", sColumnRadius).attr("fill", bodyFill);
|
|
348
344
|
colG.append("path").attr("class", "raci-column-header").attr(
|
|
@@ -748,4 +744,4 @@ export {
|
|
|
748
744
|
renderRaci,
|
|
749
745
|
renderRaciForExport
|
|
750
746
|
};
|
|
751
|
-
//# sourceMappingURL=chunk-
|
|
747
|
+
//# sourceMappingURL=chunk-SGZYXELT.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
extractExportSvg,
|
|
10
10
|
runInExportContainer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JTSMEYIZ.js";
|
|
12
12
|
import {
|
|
13
13
|
COLLAPSE_BAR_HEIGHT,
|
|
14
14
|
EDGE_STROKE_WIDTH,
|
|
@@ -380,7 +380,7 @@ function renderMindmapForExport(content, theme, palette) {
|
|
|
380
380
|
void 0,
|
|
381
381
|
hideDescriptions
|
|
382
382
|
);
|
|
383
|
-
return extractExportSvg(container, theme);
|
|
383
|
+
return extractExportSvg(container, theme, palette);
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
|
|
@@ -388,4 +388,4 @@ export {
|
|
|
388
388
|
renderMindmap,
|
|
389
389
|
renderMindmapForExport
|
|
390
390
|
};
|
|
391
|
-
//# sourceMappingURL=chunk-
|
|
391
|
+
//# sourceMappingURL=chunk-THXCFRTU.js.map
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
parseVenn,
|
|
40
40
|
parseVisualization,
|
|
41
41
|
parseWordcloud
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-HSH73DP6.js";
|
|
43
43
|
import {
|
|
44
44
|
getPalette
|
|
45
45
|
} from "./chunk-R3XI2VC7.js";
|
|
@@ -2285,7 +2285,7 @@ function resolveArcChordOverride(content, detectedType, palette) {
|
|
|
2285
2285
|
}
|
|
2286
2286
|
async function renderForExport(content, theme, palette, viewState, options) {
|
|
2287
2287
|
const exportMode = options?.exportMode ?? false;
|
|
2288
|
-
const { parseDgmoChartType } = await import("./dgmo-router-
|
|
2288
|
+
const { parseDgmoChartType } = await import("./dgmo-router-X35VLZLM.js");
|
|
2289
2289
|
const detectedTypeRaw = parseDgmoChartType(content);
|
|
2290
2290
|
const override = resolveArcChordOverride(content, detectedTypeRaw, palette);
|
|
2291
2291
|
const renderContent = override?.content ?? content;
|
|
@@ -2359,7 +2359,7 @@ async function exportOrg(ctx) {
|
|
|
2359
2359
|
const { parseOrg } = await import("./parser-6BTRLKRZ.js");
|
|
2360
2360
|
const { layoutOrg } = await import("./layout-OB3RI63S.js");
|
|
2361
2361
|
const { collapseOrgTree } = await import("./collapse-CLPJD2RL.js");
|
|
2362
|
-
const { renderOrg } = await import("./renderer-
|
|
2362
|
+
const { renderOrg } = await import("./renderer-ZRNG54CW.js");
|
|
2363
2363
|
const isDark = ctx.isDark;
|
|
2364
2364
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2365
2365
|
const orgParsed = parseOrg(content, effectivePalette);
|
|
@@ -2486,7 +2486,7 @@ async function exportClass(ctx) {
|
|
|
2486
2486
|
const { content, theme, palette, exportMode } = ctx;
|
|
2487
2487
|
const { parseClassDiagram } = await import("./parser-NRAI6O25.js");
|
|
2488
2488
|
const { layoutClassDiagram } = await import("./layout-46N4JJYK.js");
|
|
2489
|
-
const { renderClassDiagram } = await import("./renderer-
|
|
2489
|
+
const { renderClassDiagram } = await import("./renderer-B2OMQIQG.js");
|
|
2490
2490
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2491
2491
|
const classParsed = parseClassDiagram(content, effectivePalette);
|
|
2492
2492
|
if (classParsed.error || classParsed.classes.length === 0) return "";
|
|
@@ -2621,7 +2621,7 @@ async function exportMindmap(ctx) {
|
|
|
2621
2621
|
const { parseMindmap } = await import("./parser-N5O4IHUN.js");
|
|
2622
2622
|
const { layoutMindmap } = await import("./layout-UM5F4DJB.js");
|
|
2623
2623
|
const { collapseMindmapTree } = await import("./collapse-SLINJQW6.js");
|
|
2624
|
-
const { renderMindmap } = await import("./renderer-
|
|
2624
|
+
const { renderMindmap } = await import("./renderer-N43WR5GV.js");
|
|
2625
2625
|
const isDark = ctx.isDark;
|
|
2626
2626
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2627
2627
|
const mmParsed = parseMindmap(content, effectivePalette);
|
|
@@ -2696,14 +2696,14 @@ async function exportWireframe(ctx) {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
async function exportC4(ctx) {
|
|
2698
2698
|
const { content, theme, palette, viewState, exportMode } = ctx;
|
|
2699
|
-
const { parseC4 } = await import("./parser-
|
|
2699
|
+
const { parseC4 } = await import("./parser-2EWECDSA.js");
|
|
2700
2700
|
const {
|
|
2701
2701
|
layoutC4Context,
|
|
2702
2702
|
layoutC4Containers,
|
|
2703
2703
|
layoutC4Components,
|
|
2704
2704
|
layoutC4Deployment
|
|
2705
2705
|
} = await import("./layout-5RA6QWR6.js");
|
|
2706
|
-
const { renderC4Context, renderC4Containers } = await import("./renderer-
|
|
2706
|
+
const { renderC4Context, renderC4Containers } = await import("./renderer-4JHRUBE6.js");
|
|
2707
2707
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2708
2708
|
const c4Parsed = parseC4(content, effectivePalette);
|
|
2709
2709
|
if (c4Parsed.error || c4Parsed.elements.length === 0) return "";
|
|
@@ -2739,7 +2739,7 @@ async function exportFlowchart(ctx) {
|
|
|
2739
2739
|
const { content, theme, palette } = ctx;
|
|
2740
2740
|
const { parseFlowchart } = await import("./flowchart-parser-ZNSKIBVR.js");
|
|
2741
2741
|
const { layoutGraph } = await import("./layout-HWDSRX5E.js");
|
|
2742
|
-
const { renderFlowchart } = await import("./flowchart-renderer-
|
|
2742
|
+
const { renderFlowchart } = await import("./flowchart-renderer-SNDSII4D.js");
|
|
2743
2743
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2744
2744
|
const fcParsed = parseFlowchart(content, effectivePalette);
|
|
2745
2745
|
if (fcParsed.error || fcParsed.nodes.length === 0) return "";
|
|
@@ -2894,7 +2894,7 @@ async function exportState(ctx) {
|
|
|
2894
2894
|
const { content, theme, palette, viewState } = ctx;
|
|
2895
2895
|
const { parseState } = await import("./state-parser-Z2V23ATR.js");
|
|
2896
2896
|
const { layoutGraph } = await import("./layout-HWDSRX5E.js");
|
|
2897
|
-
const { renderState } = await import("./state-renderer-
|
|
2897
|
+
const { renderState } = await import("./state-renderer-B4DQBM6M.js");
|
|
2898
2898
|
const { collapseStateGroups } = await import("./state-collapse-HCGD6IVJ.js");
|
|
2899
2899
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2900
2900
|
const stateParsed = parseState(content, effectivePalette);
|
|
@@ -3103,7 +3103,7 @@ async function exportBlock(ctx) {
|
|
|
3103
3103
|
async function exportRaci(ctx) {
|
|
3104
3104
|
const { content, theme, palette } = ctx;
|
|
3105
3105
|
const { parseRaci } = await import("./parser-Y6WTBU76.js");
|
|
3106
|
-
const { renderRaciForExport } = await import("./renderer-
|
|
3106
|
+
const { renderRaciForExport } = await import("./renderer-5MYBMBYO.js");
|
|
3107
3107
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
3108
3108
|
const raciParsed = parseRaci(content, effectivePalette);
|
|
3109
3109
|
if (raciParsed.error) return "";
|
|
@@ -3363,34 +3363,50 @@ function buildHoverCss(spec, derived = {}, emphasisOverride) {
|
|
|
3363
3363
|
return parts.join("");
|
|
3364
3364
|
}
|
|
3365
3365
|
var HOVER_SPECS = {
|
|
3366
|
+
// Data-chart family (`.dgmo-datum`): `dim` at 0.18 to MIRROR the app's live
|
|
3367
|
+
// hover (charts-d3/interactions.ts `.dgmo-dim{opacity:.18}` — hover a mark →
|
|
3368
|
+
// every other emph-key drops out). `lift` (saturate/brightness) read as
|
|
3369
|
+
// "nothing happened" on muted fills. Safe to dim: these export renderers set
|
|
3370
|
+
// NO inline `style="opacity"` on datums (only presentation `*-opacity` attrs,
|
|
3371
|
+
// which a `<style>` rule outranks), so no RED-2 inline-defeat.
|
|
3366
3372
|
pie: {
|
|
3367
3373
|
markSelector: ".dgmo-datum",
|
|
3368
3374
|
strategy: "enumerated",
|
|
3369
3375
|
groupAttr: "data-emph-key",
|
|
3376
|
+
emphasis: "dim",
|
|
3377
|
+
dimOpacity: 0.18,
|
|
3370
3378
|
legend: true
|
|
3371
3379
|
},
|
|
3372
3380
|
bar: {
|
|
3373
3381
|
markSelector: ".dgmo-datum",
|
|
3374
3382
|
strategy: "enumerated",
|
|
3375
3383
|
groupAttr: "data-emph-key",
|
|
3384
|
+
emphasis: "dim",
|
|
3385
|
+
dimOpacity: 0.18,
|
|
3376
3386
|
legend: true
|
|
3377
3387
|
},
|
|
3378
3388
|
funnel: {
|
|
3379
3389
|
markSelector: ".dgmo-datum",
|
|
3380
3390
|
strategy: "enumerated",
|
|
3381
3391
|
groupAttr: "data-emph-key",
|
|
3392
|
+
emphasis: "dim",
|
|
3393
|
+
dimOpacity: 0.18,
|
|
3382
3394
|
legend: true
|
|
3383
3395
|
},
|
|
3384
3396
|
heatmap: {
|
|
3385
3397
|
markSelector: ".dgmo-datum",
|
|
3386
3398
|
strategy: "enumerated",
|
|
3387
3399
|
groupAttr: "data-emph-key",
|
|
3400
|
+
emphasis: "dim",
|
|
3401
|
+
dimOpacity: 0.18,
|
|
3388
3402
|
legend: true
|
|
3389
3403
|
},
|
|
3390
3404
|
"polar-area": {
|
|
3391
3405
|
markSelector: ".dgmo-datum",
|
|
3392
3406
|
strategy: "enumerated",
|
|
3393
3407
|
groupAttr: "data-emph-key",
|
|
3408
|
+
emphasis: "dim",
|
|
3409
|
+
dimOpacity: 0.18,
|
|
3394
3410
|
legend: true
|
|
3395
3411
|
},
|
|
3396
3412
|
// ── CROSS-FREE diagram charts — FIXED-attr keys, DOM-verified (Task 3) ──
|
|
@@ -3564,6 +3580,8 @@ var HOVER_SPECS = {
|
|
|
3564
3580
|
markSelector: ".dgmo-datum",
|
|
3565
3581
|
strategy: "enumerated",
|
|
3566
3582
|
groupAttr: "data-category",
|
|
3583
|
+
emphasis: "dim",
|
|
3584
|
+
dimOpacity: 0.18,
|
|
3567
3585
|
legend: true
|
|
3568
3586
|
},
|
|
3569
3587
|
quadrant: {
|
|
@@ -3947,4 +3965,4 @@ export {
|
|
|
3947
3965
|
encodeDiagramUrl,
|
|
3948
3966
|
decodeDiagramUrl
|
|
3949
3967
|
};
|
|
3950
|
-
//# sourceMappingURL=chunk-
|
|
3968
|
+
//# sourceMappingURL=chunk-UC7TFHUM.js.map
|
|
@@ -360,6 +360,8 @@ function renderStateForExport(content, theme, palette) {
|
|
|
360
360
|
if (!svgEl) return "";
|
|
361
361
|
if (theme === "transparent") {
|
|
362
362
|
svgEl.style.background = "none";
|
|
363
|
+
} else if (!svgEl.style.background) {
|
|
364
|
+
svgEl.style.background = palette.bg;
|
|
363
365
|
}
|
|
364
366
|
svgEl.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
365
367
|
svgEl.style.fontFamily = FONT_FAMILY;
|
|
@@ -373,4 +375,4 @@ export {
|
|
|
373
375
|
renderState,
|
|
374
376
|
renderStateForExport
|
|
375
377
|
};
|
|
376
|
-
//# sourceMappingURL=chunk-
|
|
378
|
+
//# sourceMappingURL=chunk-ZBWMSD5N.js.map
|