mermaid 10.9.0 → 10.9.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/{arc-5aa99581.js → arc-c0f908ab.js} +1 -1
- package/dist/{arc-5a3dc2ef.js → arc-d1f6357e.js} +1 -1
- package/dist/{blockDiagram-48276afd.js → blockDiagram-5dc23a45.js} +106 -106
- package/dist/{blockDiagram-91b80b7a.js → blockDiagram-9f4a6865.js} +12 -7
- package/dist/{blockDiagram-8beecd1f.js → blockDiagram-efe38566.js} +16 -11
- package/dist/{c4Diagram-e65f60cc.js → c4Diagram-1e775db3.js} +2 -2
- package/dist/{c4Diagram-b2a90758.js → c4Diagram-ae766693.js} +2 -2
- package/dist/{c4Diagram-e2511a7a.js → c4Diagram-af207393.js} +2 -2
- package/dist/{channel-7a9b7149.js → channel-ebbc4130.js} +1 -1
- package/dist/{channel-d3ac35ac.js → channel-f9001828.js} +1 -1
- package/dist/{classDiagram-3275847a.js → classDiagram-72b9c71d.js} +5 -5
- package/dist/{classDiagram-9faaf380.js → classDiagram-f52caa06.js} +5 -5
- package/dist/{classDiagram-30eddba6.js → classDiagram-fb54d2a0.js} +2 -2
- package/dist/{classDiagram-v2-8d50f991.js → classDiagram-v2-640c694e.js} +9 -9
- package/dist/{classDiagram-v2-f2df5561.js → classDiagram-v2-a2b738ad.js} +5 -5
- package/dist/{classDiagram-v2-2ed0a7d3.js → classDiagram-v2-fedb80f6.js} +9 -9
- package/dist/{clone-d2e37f8c.js → clone-9ea6bfeb.js} +1 -1
- package/dist/{clone-a4e35854.js → clone-afc2f047.js} +1 -1
- package/dist/{createText-0ee50ac4.js → createText-03b82060.js} +1 -1
- package/dist/{createText-f6615236.js → createText-b70fe78a.js} +1 -1
- package/dist/{createText-6b48ae7d.js → createText-ca0c5216.js} +1 -1
- package/dist/{edges-d32062c0.js → edges-066a5561.js} +2 -2
- package/dist/{edges-4734986e.js → edges-16357fde.js} +3 -3
- package/dist/{edges-1e1ebc73.js → edges-ce5cfb7c.js} +3 -3
- package/dist/{erDiagram-47591fe2.js → erDiagram-09d1c15f.js} +1 -1
- package/dist/{erDiagram-582bd92f.js → erDiagram-543717f2.js} +4 -4
- package/dist/{erDiagram-88ff80f2.js → erDiagram-c7ff1bec.js} +4 -4
- package/dist/{flowDb-c7526231.js → flowDb-9a89ea33.js} +1 -1
- package/dist/{flowDb-147da10a.js → flowDb-ba9bd7fa.js} +1 -1
- package/dist/{flowDb-4b19a42f.js → flowDb-c1833063.js} +1 -1
- package/dist/{flowDiagram-d3710025.js → flowDiagram-aadb13b0.js} +11 -11
- package/dist/{flowDiagram-5540d9b9.js → flowDiagram-b222e15a.js} +6 -6
- package/dist/{flowDiagram-e44a2353.js → flowDiagram-b5e7ba30.js} +11 -11
- package/dist/{flowDiagram-v2-3b53844e.js → flowDiagram-v2-13329dc7.js} +6 -6
- package/dist/{flowDiagram-v2-a8396bb5.js → flowDiagram-v2-54711e03.js} +11 -11
- package/dist/flowDiagram-v2-f2119625.js +25 -0
- package/dist/{flowchart-elk-definition-1a3aaf5d.js → flowchart-elk-definition-2d49707c.js} +5 -5
- package/dist/{flowchart-elk-definition-5fe447d6.js → flowchart-elk-definition-ae0efee6.js} +4 -4
- package/dist/{flowchart-elk-definition-34365f60.js → flowchart-elk-definition-cf813a97.js} +5 -5
- package/dist/{ganttDiagram-05e48839.js → ganttDiagram-12cf43db.js} +2 -2
- package/dist/{ganttDiagram-d5eca442.js → ganttDiagram-3c2fde2b.js} +2 -2
- package/dist/{ganttDiagram-9a3bba1f.js → ganttDiagram-b62c793e.js} +1 -1
- package/dist/{gitGraphDiagram-96e6b4ee.js → gitGraphDiagram-942e62fe.js} +1 -1
- package/dist/{gitGraphDiagram-d5d647e9.js → gitGraphDiagram-b9392a12.js} +1 -1
- package/dist/{gitGraphDiagram-e4279c54.js → gitGraphDiagram-c3a0619c.js} +1 -1
- package/dist/{graph-dee88f0d.js → graph-0ee63739.js} +1 -1
- package/dist/{graph-af3d5df6.js → graph-fe24fab6.js} +1 -1
- package/dist/{index-fc10efb0.js → index-01f381cb.js} +3 -3
- package/dist/{index-14a831a4.js → index-bb6d8841.js} +6 -6
- package/dist/{index-c8395ba2.js → index-fc479858.js} +6 -6
- package/dist/{infoDiagram-6f84184f.js → infoDiagram-2f5c50c0.js} +1 -1
- package/dist/{infoDiagram-bcd20f53.js → infoDiagram-94cd232f.js} +1 -1
- package/dist/{infoDiagram-00deb277.js → infoDiagram-d0d5c9bd.js} +1 -1
- package/dist/{journeyDiagram-b15fc9d2.js → journeyDiagram-14fe341a.js} +3 -3
- package/dist/{journeyDiagram-4fe6b3dc.js → journeyDiagram-6625b456.js} +2 -2
- package/dist/{journeyDiagram-a5efd2e1.js → journeyDiagram-b56e6921.js} +3 -3
- package/dist/{layout-6685625a.js → layout-163b9689.js} +2 -2
- package/dist/{layout-03086fc5.js → layout-fd473db2.js} +2 -2
- package/dist/{line-79437661.js → line-24d93f1b.js} +1 -1
- package/dist/{line-65d70945.js → line-87f517ef.js} +1 -1
- package/dist/{linear-d94cf28d.js → linear-0ad15847.js} +1 -1
- package/dist/{linear-d4d7f2b7.js → linear-9bcf74c4.js} +1 -1
- package/dist/{mermaid-f47111a7.js → mermaid-6dc72991.js} +23 -23
- package/dist/{mermaid-00886c59.js → mermaid-9f2aa176.js} +23 -23
- package/dist/{mermaid-c5809711.js → mermaid-dcacb631.js} +23 -23
- package/dist/mermaid.core.mjs +1 -1
- package/dist/mermaid.esm.min.mjs +1 -1
- package/dist/mermaid.esm.mjs +1 -1
- package/dist/mermaid.js +61 -56
- package/dist/mermaid.min.js +31 -31
- package/dist/{mindmap-definition-f354de21.js → mindmap-definition-307c710a.js} +2 -2
- package/dist/{mindmap-definition-74120bdd.js → mindmap-definition-696ddea4.js} +2 -2
- package/dist/{mindmap-definition-2aab62ef.js → mindmap-definition-9399c7e6.js} +2 -2
- package/dist/{pieDiagram-fdb04870.js → pieDiagram-828dae43.js} +2 -2
- package/dist/{pieDiagram-79897490.js → pieDiagram-bb1d19e5.js} +1 -1
- package/dist/{pieDiagram-35c7eafc.js → pieDiagram-e854eaf0.js} +2 -2
- package/dist/{quadrantDiagram-9c93c009.js → quadrantDiagram-25a9848b.js} +2 -2
- package/dist/{quadrantDiagram-acae359b.js → quadrantDiagram-5fa00455.js} +2 -2
- package/dist/{quadrantDiagram-62f64e94.js → quadrantDiagram-c759a472.js} +1 -1
- package/dist/{requirementDiagram-fc9445a3.js → requirementDiagram-03163dc4.js} +4 -4
- package/dist/{requirementDiagram-05bf5f74.js → requirementDiagram-87253d64.js} +1 -1
- package/dist/{requirementDiagram-e882bd67.js → requirementDiagram-a721e157.js} +4 -4
- package/dist/{sankeyDiagram-f5d051b7.js → sankeyDiagram-33525efb.js} +1 -1
- package/dist/{sankeyDiagram-9fcf3781.js → sankeyDiagram-52ec8976.js} +1 -1
- package/dist/{sankeyDiagram-97764748.js → sankeyDiagram-707fac0f.js} +1 -1
- package/dist/{sequenceDiagram-acc0e65c.js → sequenceDiagram-6894f283.js} +2 -2
- package/dist/{sequenceDiagram-1767341c.js → sequenceDiagram-9813c129.js} +2 -2
- package/dist/{sequenceDiagram-a3c91cc7.js → sequenceDiagram-b517d154.js} +2 -2
- package/dist/{stateDiagram-0ff1cf1a.js → stateDiagram-5dee940d.js} +2 -2
- package/dist/{stateDiagram-d2e6f24f.js → stateDiagram-5ec31577.js} +5 -5
- package/dist/{stateDiagram-654cced9.js → stateDiagram-fca82b5b.js} +5 -5
- package/dist/{stateDiagram-v2-9a9d610d.js → stateDiagram-v2-1992cada.js} +5 -5
- package/dist/{stateDiagram-v2-21d485ae.js → stateDiagram-v2-992e82a1.js} +9 -9
- package/dist/{stateDiagram-v2-140258dc.js → stateDiagram-v2-ed04200a.js} +9 -9
- package/dist/{styles-d20c7d72.js → styles-0784dbeb.js} +1 -1
- package/dist/{styles-4bdb8b48.js → styles-11e81fdd.js} +1 -1
- package/dist/{styles-d48462a7.js → styles-36a1a2e8.js} +1 -1
- package/dist/{styles-3ed67cfa.js → styles-483fbfea.js} +2 -2
- package/dist/{styles-c171666c.js → styles-727cdd61.js} +4 -4
- package/dist/{styles-991ebdfc.js → styles-b83b31c9.js} +1 -1
- package/dist/{styles-34055d00.js → styles-cacbff60.js} +1 -1
- package/dist/{styles-3cfb4cad.js → styles-e75131e4.js} +4 -4
- package/dist/{styles-15409a09.js → styles-f80da881.js} +1 -1
- package/dist/{svgDrawCommon-5ccd53ef.js → svgDrawCommon-5e1cfd1d.js} +1 -1
- package/dist/{svgDrawCommon-99ae2c94.js → svgDrawCommon-d6ab583c.js} +1 -1
- package/dist/{svgDrawCommon-a14ead8e.js → svgDrawCommon-ecc5f780.js} +1 -1
- package/dist/{timeline-definition-f8c5dfc0.js → timeline-definition-23ce0e2e.js} +2 -2
- package/dist/{timeline-definition-d879e019.js → timeline-definition-4ee9bff4.js} +2 -2
- package/dist/{timeline-definition-fea2a41d.js → timeline-definition-bf702344.js} +1 -1
- package/dist/{xychartDiagram-7b46ecfd.js → xychartDiagram-de2e5521.js} +4 -4
- package/dist/{xychartDiagram-2c3c3b85.js → xychartDiagram-e5e6b652.js} +4 -4
- package/dist/{xychartDiagram-ab372869.js → xychartDiagram-f11f50a6.js} +2 -2
- package/package.json +1 -1
- package/dist/flowDiagram-v2-8dd8b966.js +0 -25
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as withPath, c as constant } from "./path-39bad7e2.js";
|
|
2
|
-
import { aw as pi, ax as cos, ay as sin, az as halfPi, aA as epsilon, V as tau, aB as sqrt, aC as min, aD as abs, aE as atan2, aF as asin, aG as acos, aH as max } from "./mermaid-
|
|
2
|
+
import { aw as pi, ax as cos, ay as sin, az as halfPi, aA as epsilon, V as tau, aB as sqrt, aC as min, aD as abs, aE as atan2, aF as asin, aG as acos, aH as max } from "./mermaid-dcacb631.js";
|
|
3
3
|
function arcInnerRadius(d) {
|
|
4
4
|
return d.innerRadius;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as ln, c as H } from "./path-428ebac9.js";
|
|
2
|
-
import { aw as an, ax as V, ay as D, az as rn, aA as y, V as on, aB as K, aC as _, aD as un, aE as t, aF as sn, aG as tn, aH as fn } from "./mermaid-
|
|
2
|
+
import { aw as an, ax as V, ay as D, az as rn, aA as y, V as on, aB as K, aC as _, aD as un, aE as t, aF as sn, aG as tn, aH as fn } from "./mermaid-9f2aa176.js";
|
|
3
3
|
function cn(l) {
|
|
4
4
|
return l.innerRadius;
|
|
5
5
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as se, l as L, E as
|
|
2
|
-
import { c as
|
|
3
|
-
import { c as
|
|
4
|
-
import { h as
|
|
5
|
-
import { G as
|
|
6
|
-
import { o as
|
|
7
|
-
import { d as
|
|
8
|
-
import "./createText-
|
|
9
|
-
import "./line-
|
|
1
|
+
import { c as ge, _ as se, l as L, E as ye, f as _e, B as we, o as De, j as H, k as Ne } from "./mermaid-9f2aa176.js";
|
|
2
|
+
import { c as Ie } from "./clone-afc2f047.js";
|
|
3
|
+
import { c as Oe } from "./channel-ebbc4130.js";
|
|
4
|
+
import { h as Te, f as ze, j as Ce, e as de, p as Ae, a as Re } from "./edges-16357fde.js";
|
|
5
|
+
import { G as ve } from "./graph-0ee63739.js";
|
|
6
|
+
import { o as Be } from "./ordinal-5695958c.js";
|
|
7
|
+
import { d as ke } from "./Tableau10-558cc280.js";
|
|
8
|
+
import "./createText-03b82060.js";
|
|
9
|
+
import "./line-24d93f1b.js";
|
|
10
10
|
import "./array-2ff2c7a6.js";
|
|
11
11
|
import "./path-428ebac9.js";
|
|
12
12
|
import "./init-f9637058.js";
|
|
@@ -132,20 +132,20 @@ var ee = function() {
|
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
parse: function(l) {
|
|
135
|
-
var s = this, r = [0], h = [], d = [null], t = [], x = this.table, n = "", B = 0, Y = 0, F = 2, R = 1,
|
|
135
|
+
var s = this, r = [0], h = [], d = [null], t = [], x = this.table, n = "", B = 0, Y = 0, F = 2, R = 1, me = t.slice.call(arguments, 1), _ = Object.create(this.lexer), K = { yy: {} };
|
|
136
136
|
for (var Z in this.yy)
|
|
137
137
|
Object.prototype.hasOwnProperty.call(this.yy, Z) && (K.yy[Z] = this.yy[Z]);
|
|
138
138
|
_.setInput(l, K.yy), K.yy.lexer = _, K.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
|
|
139
139
|
var J = _.yylloc;
|
|
140
140
|
t.push(J);
|
|
141
|
-
var
|
|
141
|
+
var be = _.options && _.options.ranges;
|
|
142
142
|
typeof K.yy.parseError == "function" ? this.parseError = K.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
143
|
-
function
|
|
143
|
+
function Ee() {
|
|
144
144
|
var P;
|
|
145
145
|
return P = h.pop() || _.lex() || R, typeof P != "number" && (P instanceof Array && (h = P, P = h.pop()), P = s.symbols_[P] || P), P;
|
|
146
146
|
}
|
|
147
147
|
for (var O, M, A, Q, W = {}, X, k, ae, G; ; ) {
|
|
148
|
-
if (M = r[r.length - 1], this.defaultActions[M] ? A = this.defaultActions[M] : ((O === null || typeof O > "u") && (O =
|
|
148
|
+
if (M = r[r.length - 1], this.defaultActions[M] ? A = this.defaultActions[M] : ((O === null || typeof O > "u") && (O = Ee()), A = x[M] && x[M][O]), typeof A > "u" || !A.length || !A[0]) {
|
|
149
149
|
var $ = "";
|
|
150
150
|
G = [];
|
|
151
151
|
for (X in x[M])
|
|
@@ -172,7 +172,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[O] || O) + "'" : $ = "
|
|
|
172
172
|
last_line: t[t.length - 1].last_line,
|
|
173
173
|
first_column: t[t.length - (k || 1)].first_column,
|
|
174
174
|
last_column: t[t.length - 1].last_column
|
|
175
|
-
},
|
|
175
|
+
}, be && (W._$.range = [
|
|
176
176
|
t[t.length - (k || 1)].range[0],
|
|
177
177
|
t[t.length - 1].range[1]
|
|
178
178
|
]), Q = this.performAction.apply(W, [
|
|
@@ -183,7 +183,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[O] || O) + "'" : $ = "
|
|
|
183
183
|
A[1],
|
|
184
184
|
d,
|
|
185
185
|
t
|
|
186
|
-
].concat(
|
|
186
|
+
].concat(me)), typeof Q < "u")
|
|
187
187
|
return Q;
|
|
188
188
|
k && (r = r.slice(0, -1 * k * 2), d = d.slice(0, -1 * k), t = t.slice(0, -1 * k)), r.push(this.productions_[A[1]][0]), d.push(W.$), t.push(W._$), ae = x[r[r.length - 2]][r[r.length - 1]], r.push(ae);
|
|
189
189
|
break;
|
|
@@ -607,25 +607,25 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[O] || O) + "'" : $ = "
|
|
|
607
607
|
return N.prototype = E, E.Parser = N, new N();
|
|
608
608
|
}();
|
|
609
609
|
ee.parser = ee;
|
|
610
|
-
const
|
|
610
|
+
const Pe = ee;
|
|
611
611
|
let T = {}, ie = [], V = {};
|
|
612
|
-
const oe = "color", ce = "fill",
|
|
612
|
+
const oe = "color", ce = "fill", Fe = "bgFill", pe = ",", Ke = ge();
|
|
613
613
|
let j = {};
|
|
614
|
-
const
|
|
614
|
+
const Me = (e) => _e.sanitizeText(e, Ke), Ye = function(e, c = "") {
|
|
615
615
|
j[e] === void 0 && (j[e] = { id: e, styles: [], textStyles: [] });
|
|
616
616
|
const u = j[e];
|
|
617
|
-
c != null && c.split(
|
|
617
|
+
c != null && c.split(pe).forEach((a) => {
|
|
618
618
|
const i = a.replace(/([^;]*);/, "$1").trim();
|
|
619
619
|
if (a.match(oe)) {
|
|
620
|
-
const o = i.replace(ce,
|
|
620
|
+
const o = i.replace(ce, Fe).replace(oe, ce);
|
|
621
621
|
u.textStyles.push(o);
|
|
622
622
|
}
|
|
623
623
|
u.styles.push(i);
|
|
624
624
|
});
|
|
625
|
-
},
|
|
625
|
+
}, We = function(e, c = "") {
|
|
626
626
|
const u = T[e];
|
|
627
|
-
c != null && (u.styles = c.split(
|
|
628
|
-
},
|
|
627
|
+
c != null && (u.styles = c.split(pe));
|
|
628
|
+
}, Ve = function(e, c) {
|
|
629
629
|
e.split(",").forEach(function(u) {
|
|
630
630
|
let a = T[u];
|
|
631
631
|
if (a === void 0) {
|
|
@@ -634,19 +634,19 @@ const Fe = function(e, c = "") {
|
|
|
634
634
|
}
|
|
635
635
|
a.classes || (a.classes = []), a.classes.push(c);
|
|
636
636
|
});
|
|
637
|
-
},
|
|
637
|
+
}, fe = (e, c) => {
|
|
638
638
|
const u = e.flat(), a = [];
|
|
639
639
|
for (const i of u) {
|
|
640
|
-
if (i.type === "classDef") {
|
|
641
|
-
|
|
640
|
+
if (i.label && (i.label = Me(i.label)), i.type === "classDef") {
|
|
641
|
+
Ye(i.id, i.css);
|
|
642
642
|
continue;
|
|
643
643
|
}
|
|
644
644
|
if (i.type === "applyClass") {
|
|
645
|
-
|
|
645
|
+
Ve(i.id, (i == null ? void 0 : i.styleClass) || "");
|
|
646
646
|
continue;
|
|
647
647
|
}
|
|
648
648
|
if (i.type === "applyStyles") {
|
|
649
|
-
i != null && i.stylesStr &&
|
|
649
|
+
i != null && i.stylesStr && We(i.id, i == null ? void 0 : i.stylesStr);
|
|
650
650
|
continue;
|
|
651
651
|
}
|
|
652
652
|
if (i.type === "column-setting")
|
|
@@ -656,10 +656,10 @@ const Fe = function(e, c = "") {
|
|
|
656
656
|
else {
|
|
657
657
|
i.label || (i.type === "composite" ? i.label = "" : i.label = i.id);
|
|
658
658
|
const g = !T[i.id];
|
|
659
|
-
if (g ? T[i.id] = i : (i.type !== "na" && (T[i.id].type = i.type), i.label !== i.id && (T[i.id].label = i.label)), i.children &&
|
|
659
|
+
if (g ? T[i.id] = i : (i.type !== "na" && (T[i.id].type = i.type), i.label !== i.id && (T[i.id].label = i.label)), i.children && fe(i.children, i), i.type === "space") {
|
|
660
660
|
const o = i.width || 1;
|
|
661
661
|
for (let p = 0; p < o; p++) {
|
|
662
|
-
const f =
|
|
662
|
+
const f = Ie(i);
|
|
663
663
|
f.id = f.id + "-" + p, T[f.id] = f, a.push(f);
|
|
664
664
|
}
|
|
665
665
|
} else
|
|
@@ -669,10 +669,10 @@ const Fe = function(e, c = "") {
|
|
|
669
669
|
c.children = a;
|
|
670
670
|
};
|
|
671
671
|
let re = [], U = { id: "root", type: "composite", children: [], columns: -1 };
|
|
672
|
-
const
|
|
673
|
-
L.debug("Clear called"),
|
|
672
|
+
const je = () => {
|
|
673
|
+
L.debug("Clear called"), ye(), U = { id: "root", type: "composite", children: [], columns: -1 }, T = { root: U }, re = [], j = {}, ie = [], V = {};
|
|
674
674
|
};
|
|
675
|
-
function
|
|
675
|
+
function Ue(e) {
|
|
676
676
|
switch (L.debug("typeStr2Type", e), e) {
|
|
677
677
|
case "[]":
|
|
678
678
|
return "square";
|
|
@@ -708,7 +708,7 @@ function We(e) {
|
|
|
708
708
|
return "na";
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Xe(e) {
|
|
712
712
|
switch (L.debug("typeStr2Type", e), e) {
|
|
713
713
|
case "==":
|
|
714
714
|
return "thick";
|
|
@@ -716,7 +716,7 @@ function Ve(e) {
|
|
|
716
716
|
return "normal";
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Ge(e) {
|
|
720
720
|
switch (e.trim()) {
|
|
721
721
|
case "--x":
|
|
722
722
|
return "arrow_cross";
|
|
@@ -727,35 +727,35 @@ function je(e) {
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
let le = 0;
|
|
730
|
-
const
|
|
731
|
-
U.children = e,
|
|
732
|
-
},
|
|
730
|
+
const He = () => (le++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + le), qe = (e) => {
|
|
731
|
+
U.children = e, fe(e, U), re = U.children;
|
|
732
|
+
}, Ze = (e) => {
|
|
733
733
|
const c = T[e];
|
|
734
734
|
return c ? c.columns ? c.columns : c.children ? c.children.length : -1 : -1;
|
|
735
|
-
},
|
|
735
|
+
}, Je = () => [...Object.values(T)], Qe = () => re || [], $e = () => ie, et = (e) => T[e], tt = (e) => {
|
|
736
736
|
T[e.id] = e;
|
|
737
|
-
},
|
|
737
|
+
}, st = () => console, it = function() {
|
|
738
738
|
return j;
|
|
739
|
-
},
|
|
739
|
+
}, rt = {
|
|
740
740
|
getConfig: () => se().block,
|
|
741
|
-
typeStr2Type:
|
|
742
|
-
edgeTypeStr2Type:
|
|
743
|
-
edgeStrToEdgeData:
|
|
744
|
-
getLogger:
|
|
745
|
-
getBlocksFlat:
|
|
746
|
-
getBlocks:
|
|
747
|
-
getEdges:
|
|
748
|
-
setHierarchy:
|
|
749
|
-
getBlock:
|
|
750
|
-
setBlock:
|
|
751
|
-
getColumns:
|
|
752
|
-
getClasses:
|
|
753
|
-
clear:
|
|
754
|
-
generateId:
|
|
755
|
-
},
|
|
756
|
-
const u =
|
|
757
|
-
return
|
|
758
|
-
},
|
|
741
|
+
typeStr2Type: Ue,
|
|
742
|
+
edgeTypeStr2Type: Xe,
|
|
743
|
+
edgeStrToEdgeData: Ge,
|
|
744
|
+
getLogger: st,
|
|
745
|
+
getBlocksFlat: Je,
|
|
746
|
+
getBlocks: Qe,
|
|
747
|
+
getEdges: $e,
|
|
748
|
+
setHierarchy: qe,
|
|
749
|
+
getBlock: et,
|
|
750
|
+
setBlock: tt,
|
|
751
|
+
getColumns: Ze,
|
|
752
|
+
getClasses: it,
|
|
753
|
+
clear: je,
|
|
754
|
+
generateId: He
|
|
755
|
+
}, nt = rt, q = (e, c) => {
|
|
756
|
+
const u = Oe, a = u(e, "r"), i = u(e, "g"), g = u(e, "b");
|
|
757
|
+
return we(a, i, g, c);
|
|
758
|
+
}, at = (e) => `.label {
|
|
759
759
|
font-family: ${e.fontFamily};
|
|
760
760
|
color: ${e.nodeTextColor || e.textColor};
|
|
761
761
|
}
|
|
@@ -867,8 +867,8 @@ const Ue = () => (le++, "id-" + Math.random().toString(36).substr(2, 12) + "-" +
|
|
|
867
867
|
font-size: 18px;
|
|
868
868
|
fill: ${e.textColor};
|
|
869
869
|
}
|
|
870
|
-
`,
|
|
871
|
-
function
|
|
870
|
+
`, ot = at;
|
|
871
|
+
function Se(e, c, u = !1) {
|
|
872
872
|
var z, I, w;
|
|
873
873
|
const a = e;
|
|
874
874
|
let i = "default";
|
|
@@ -935,7 +935,7 @@ function fe(e, c, u = !1) {
|
|
|
935
935
|
default:
|
|
936
936
|
o = "rect";
|
|
937
937
|
}
|
|
938
|
-
const f =
|
|
938
|
+
const f = De((a == null ? void 0 : a.styles) || []), m = a.label, S = a.size || { width: 0, height: 0, x: 0, y: 0 };
|
|
939
939
|
return {
|
|
940
940
|
labelStyle: f.labelStyle,
|
|
941
941
|
shape: o,
|
|
@@ -956,29 +956,29 @@ function fe(e, c, u = !1) {
|
|
|
956
956
|
padding: p ?? (((w = (I = se()) == null ? void 0 : I.block) == null ? void 0 : w.padding) || 0)
|
|
957
957
|
};
|
|
958
958
|
}
|
|
959
|
-
async function
|
|
960
|
-
const a =
|
|
959
|
+
async function ct(e, c, u) {
|
|
960
|
+
const a = Se(c, u, !1);
|
|
961
961
|
if (a.type === "group")
|
|
962
962
|
return;
|
|
963
|
-
const i = await
|
|
963
|
+
const i = await de(e, a), g = i.node().getBBox(), o = u.getBlock(a.id);
|
|
964
964
|
o.size = { width: g.width, height: g.height, x: 0, y: 0, node: i }, u.setBlock(o), i.remove();
|
|
965
965
|
}
|
|
966
|
-
async function
|
|
967
|
-
const a =
|
|
968
|
-
u.getBlock(a.id).type !== "space" && (await
|
|
966
|
+
async function lt(e, c, u) {
|
|
967
|
+
const a = Se(c, u, !0);
|
|
968
|
+
u.getBlock(a.id).type !== "space" && (await de(e, a), c.intersect = a == null ? void 0 : a.intersect, Ae(a));
|
|
969
969
|
}
|
|
970
970
|
async function ne(e, c, u, a) {
|
|
971
971
|
for (const i of c)
|
|
972
972
|
await a(e, i, u), i.children && await ne(e, i.children, u, a);
|
|
973
973
|
}
|
|
974
|
-
async function
|
|
975
|
-
await ne(e, c, u,
|
|
974
|
+
async function ht(e, c, u) {
|
|
975
|
+
await ne(e, c, u, ct);
|
|
976
976
|
}
|
|
977
|
-
async function
|
|
978
|
-
await ne(e, c, u,
|
|
977
|
+
async function ut(e, c, u) {
|
|
978
|
+
await ne(e, c, u, lt);
|
|
979
979
|
}
|
|
980
|
-
async function
|
|
981
|
-
const g = new
|
|
980
|
+
async function gt(e, c, u, a, i) {
|
|
981
|
+
const g = new ve({
|
|
982
982
|
multigraph: !0,
|
|
983
983
|
compound: !0
|
|
984
984
|
});
|
|
@@ -1004,7 +1004,7 @@ async function lt(e, c, u, a, i) {
|
|
|
1004
1004
|
{ x: m.x + (S.x - m.x) / 2, y: m.y + (S.y - m.y) / 2 },
|
|
1005
1005
|
{ x: S.x, y: S.y }
|
|
1006
1006
|
];
|
|
1007
|
-
await
|
|
1007
|
+
await Te(
|
|
1008
1008
|
e,
|
|
1009
1009
|
{ v: o.start, w: o.end, name: o.id },
|
|
1010
1010
|
{
|
|
@@ -1018,7 +1018,7 @@ async function lt(e, c, u, a, i) {
|
|
|
1018
1018
|
"block",
|
|
1019
1019
|
g,
|
|
1020
1020
|
i
|
|
1021
|
-
), o.label && (await
|
|
1021
|
+
), o.label && (await ze(e, {
|
|
1022
1022
|
...o,
|
|
1023
1023
|
label: o.label,
|
|
1024
1024
|
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
@@ -1026,7 +1026,7 @@ async function lt(e, c, u, a, i) {
|
|
|
1026
1026
|
arrowTypeStart: o.arrowTypeStart,
|
|
1027
1027
|
points: y,
|
|
1028
1028
|
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
1029
|
-
}), await
|
|
1029
|
+
}), await Ce(
|
|
1030
1030
|
{ ...o, x: y[1].x, y: y[1].y },
|
|
1031
1031
|
{
|
|
1032
1032
|
originalPath: y
|
|
@@ -1036,8 +1036,8 @@ async function lt(e, c, u, a, i) {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
1038
|
var he, ue;
|
|
1039
|
-
const b = ((ue = (he =
|
|
1040
|
-
function
|
|
1039
|
+
const b = ((ue = (he = ge()) == null ? void 0 : he.block) == null ? void 0 : ue.padding) || 8;
|
|
1040
|
+
function dt(e, c) {
|
|
1041
1041
|
if (e === 0 || !Number.isInteger(e))
|
|
1042
1042
|
throw new Error("Columns must be an integer !== 0.");
|
|
1043
1043
|
if (c < 0 || !Number.isInteger(c))
|
|
@@ -1049,7 +1049,7 @@ function ht(e, c) {
|
|
|
1049
1049
|
const u = c % e, a = Math.floor(c / e);
|
|
1050
1050
|
return { px: u, py: a };
|
|
1051
1051
|
}
|
|
1052
|
-
const
|
|
1052
|
+
const pt = (e) => {
|
|
1053
1053
|
let c = 0, u = 0;
|
|
1054
1054
|
for (const a of e.children) {
|
|
1055
1055
|
const { width: i, height: g, x: o, y: p } = a.size || { width: 0, height: 0, x: 0, y: 0 };
|
|
@@ -1089,7 +1089,7 @@ function te(e, c, u = 0, a = 0) {
|
|
|
1089
1089
|
if (((f = e.children) == null ? void 0 : f.length) > 0) {
|
|
1090
1090
|
for (const d of e.children)
|
|
1091
1091
|
te(d, c);
|
|
1092
|
-
const v =
|
|
1092
|
+
const v = pt(e);
|
|
1093
1093
|
i = v.width, g = v.height, L.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", i, g);
|
|
1094
1094
|
for (const d of e.children)
|
|
1095
1095
|
d.size && (L.debug(
|
|
@@ -1144,7 +1144,7 @@ function te(e, c, u = 0, a = 0) {
|
|
|
1144
1144
|
(E = e == null ? void 0 : e.size) == null ? void 0 : E.height
|
|
1145
1145
|
);
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function Le(e, c) {
|
|
1148
1148
|
var a, i, g, o, p, f, m, S, y, z, I, w, C, E, v, N, D;
|
|
1149
1149
|
L.debug(
|
|
1150
1150
|
`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(a = e == null ? void 0 : e.size) == null ? void 0 : a.x} y: ${(i = e == null ? void 0 : e.size) == null ? void 0 : i.y} width: ${(g = e == null ? void 0 : e.size) == null ? void 0 : g.width}`
|
|
@@ -1161,7 +1161,7 @@ function Se(e, c) {
|
|
|
1161
1161
|
const x = e;
|
|
1162
1162
|
if (!t.size)
|
|
1163
1163
|
continue;
|
|
1164
|
-
const { width: n, height: B } = t.size, { px: Y, py: F } =
|
|
1164
|
+
const { width: n, height: B } = t.size, { px: Y, py: F } = dt(u, r);
|
|
1165
1165
|
if (F != d && (d = F, h = (z = e == null ? void 0 : e.size) != null && z.x ? ((I = e == null ? void 0 : e.size) == null ? void 0 : I.x) + (-((w = e == null ? void 0 : e.size) == null ? void 0 : w.width) / 2 || 0) : -b, L.debug("New row in layout for block", e.id, " and child ", t.id, d)), L.debug(
|
|
1166
1166
|
`abc89 layout blocks (child) id: ${t.id} Pos: ${r} (px, py) ${Y},${F} (${(C = x == null ? void 0 : x.size) == null ? void 0 : C.x},${(E = x == null ? void 0 : x.size) == null ? void 0 : E.y}) parent: ${x.id} width: ${n}${b}`
|
|
1167
1167
|
), x.size) {
|
|
@@ -1172,59 +1172,59 @@ function Se(e, c) {
|
|
|
1172
1172
|
`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${h}${b}${R}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${n * ((t == null ? void 0 : t.widthInColumns) || 1) / 2}`
|
|
1173
1173
|
);
|
|
1174
1174
|
}
|
|
1175
|
-
t.children &&
|
|
1175
|
+
t.children && Le(t), r += (t == null ? void 0 : t.widthInColumns) || 1, L.debug("abc88 columnsPos", t, r);
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
L.debug(
|
|
1179
1179
|
`layout blocks (<==layoutBlocks) ${e.id} x: ${(v = e == null ? void 0 : e.size) == null ? void 0 : v.x} y: ${(N = e == null ? void 0 : e.size) == null ? void 0 : N.y} width: ${(D = e == null ? void 0 : e.size) == null ? void 0 : D.width}`
|
|
1180
1180
|
);
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function xe(e, { minX: c, minY: u, maxX: a, maxY: i } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
|
|
1183
1183
|
if (e.size && e.id !== "root") {
|
|
1184
1184
|
const { x: g, y: o, width: p, height: f } = e.size;
|
|
1185
1185
|
g - p / 2 < c && (c = g - p / 2), o - f / 2 < u && (u = o - f / 2), g + p / 2 > a && (a = g + p / 2), o + f / 2 > i && (i = o + f / 2);
|
|
1186
1186
|
}
|
|
1187
1187
|
if (e.children)
|
|
1188
1188
|
for (const g of e.children)
|
|
1189
|
-
({ minX: c, minY: u, maxX: a, maxY: i } =
|
|
1189
|
+
({ minX: c, minY: u, maxX: a, maxY: i } = xe(g, { minX: c, minY: u, maxX: a, maxY: i }));
|
|
1190
1190
|
return { minX: c, minY: u, maxX: a, maxY: i };
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function ft(e) {
|
|
1193
1193
|
const c = e.getBlock("root");
|
|
1194
1194
|
if (!c)
|
|
1195
1195
|
return;
|
|
1196
|
-
te(c, e, 0, 0),
|
|
1197
|
-
const { minX: u, minY: a, maxX: i, maxY: g } =
|
|
1196
|
+
te(c, e, 0, 0), Le(c), L.debug("getBlocks", JSON.stringify(c, null, 2));
|
|
1197
|
+
const { minX: u, minY: a, maxX: i, maxY: g } = xe(c), o = g - a, p = i - u;
|
|
1198
1198
|
return { x: u, y: a, width: p, height: o };
|
|
1199
1199
|
}
|
|
1200
|
-
const
|
|
1200
|
+
const St = function(e, c) {
|
|
1201
1201
|
return c.db.getClasses();
|
|
1202
|
-
},
|
|
1202
|
+
}, Lt = async function(e, c, u, a) {
|
|
1203
1203
|
const { securityLevel: i, block: g } = se(), o = a.db;
|
|
1204
1204
|
let p;
|
|
1205
1205
|
i === "sandbox" && (p = H("#i" + c));
|
|
1206
1206
|
const f = i === "sandbox" ? H(p.nodes()[0].contentDocument.body) : H("body"), m = i === "sandbox" ? f.select(`[id="${c}"]`) : H(`[id="${c}"]`);
|
|
1207
|
-
|
|
1207
|
+
Re(m, ["point", "circle", "cross"], a.type, c);
|
|
1208
1208
|
const y = o.getBlocks(), z = o.getBlocksFlat(), I = o.getEdges(), w = m.insert("g").attr("class", "block");
|
|
1209
|
-
await
|
|
1210
|
-
const C =
|
|
1211
|
-
if (await
|
|
1209
|
+
await ht(w, y, o);
|
|
1210
|
+
const C = ft(o);
|
|
1211
|
+
if (await ut(w, y, o), await gt(w, I, z, o, c), C) {
|
|
1212
1212
|
const E = C, v = Math.max(1, Math.round(0.125 * (E.width / E.height))), N = E.height + v + 10, D = E.width + 10, { useMaxWidth: l } = g;
|
|
1213
|
-
|
|
1213
|
+
Ne(m, N, D, !!l), L.debug("Here Bounds", C, E), m.attr(
|
|
1214
1214
|
"viewBox",
|
|
1215
1215
|
`${E.x - 5} ${E.y - 5} ${E.width + 10} ${E.height + 10}`
|
|
1216
1216
|
);
|
|
1217
1217
|
}
|
|
1218
|
-
|
|
1219
|
-
},
|
|
1220
|
-
draw:
|
|
1221
|
-
getClasses:
|
|
1222
|
-
},
|
|
1223
|
-
parser:
|
|
1224
|
-
db:
|
|
1225
|
-
renderer:
|
|
1226
|
-
styles:
|
|
1218
|
+
Be(ke);
|
|
1219
|
+
}, xt = {
|
|
1220
|
+
draw: Lt,
|
|
1221
|
+
getClasses: St
|
|
1222
|
+
}, Ct = {
|
|
1223
|
+
parser: Pe,
|
|
1224
|
+
db: nt,
|
|
1225
|
+
renderer: xt,
|
|
1226
|
+
styles: ot
|
|
1227
1227
|
};
|
|
1228
1228
|
export {
|
|
1229
|
-
|
|
1229
|
+
Ct as diagram
|
|
1230
1230
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _a, _b;
|
|
2
|
-
import { F as getConfig, l as log, v as clear$1,
|
|
2
|
+
import { c as getConfig, F as getConfig$1, l as log, v as clear$1, e as common, k as getStylesFromArray, i as configureSvgSize } from "./mermaid-6dc72991.js";
|
|
3
3
|
import clone from "lodash-es/clone.js";
|
|
4
4
|
import * as khroma from "khroma";
|
|
5
|
-
import { h as insertEdge, f as insertEdgeLabel, j as positionEdgeLabel, e as insertNode, p as positionNode, a as insertMarkers } from "./edges-
|
|
5
|
+
import { h as insertEdge, f as insertEdgeLabel, j as positionEdgeLabel, e as insertNode, p as positionNode, a as insertMarkers } from "./edges-066a5561.js";
|
|
6
6
|
import * as graphlib from "dagre-d3-es/src/graphlib/index.js";
|
|
7
7
|
import { select, scaleOrdinal, schemeTableau10 } from "d3";
|
|
8
8
|
import "ts-dedent";
|
|
@@ -13,7 +13,7 @@ import "lodash-es/memoize.js";
|
|
|
13
13
|
import "lodash-es/merge.js";
|
|
14
14
|
import "stylis";
|
|
15
15
|
import "lodash-es/isEmpty.js";
|
|
16
|
-
import "./createText-
|
|
16
|
+
import "./createText-ca0c5216.js";
|
|
17
17
|
import "mdast-util-from-markdown";
|
|
18
18
|
var parser = function() {
|
|
19
19
|
var o = function(k, v, o2, l) {
|
|
@@ -960,7 +960,9 @@ const COLOR_KEYWORD = "color";
|
|
|
960
960
|
const FILL_KEYWORD = "fill";
|
|
961
961
|
const BG_FILL = "bgFill";
|
|
962
962
|
const STYLECLASS_SEP = ",";
|
|
963
|
+
const config = getConfig();
|
|
963
964
|
let classes = {};
|
|
965
|
+
const sanitizeText = (txt) => common.sanitizeText(txt, config);
|
|
964
966
|
const addStyleClass = function(id, styleAttributes = "") {
|
|
965
967
|
if (classes[id] === void 0) {
|
|
966
968
|
classes[id] = { id, styles: [], textStyles: [] };
|
|
@@ -1002,6 +1004,9 @@ const populateBlockDatabase = (_blockList, parent) => {
|
|
|
1002
1004
|
const blockList = _blockList.flat();
|
|
1003
1005
|
const children = [];
|
|
1004
1006
|
for (const block of blockList) {
|
|
1007
|
+
if (block.label) {
|
|
1008
|
+
block.label = sanitizeText(block.label);
|
|
1009
|
+
}
|
|
1005
1010
|
if (block.type === "classDef") {
|
|
1006
1011
|
addStyleClass(block.id, block.css);
|
|
1007
1012
|
continue;
|
|
@@ -1175,7 +1180,7 @@ const getClasses$1 = function() {
|
|
|
1175
1180
|
return classes;
|
|
1176
1181
|
};
|
|
1177
1182
|
const db = {
|
|
1178
|
-
getConfig: () => getConfig().block,
|
|
1183
|
+
getConfig: () => getConfig$1().block,
|
|
1179
1184
|
typeStr2Type,
|
|
1180
1185
|
edgeTypeStr2Type,
|
|
1181
1186
|
edgeStrToEdgeData,
|
|
@@ -1408,7 +1413,7 @@ function getNodeFromBlock(block, db2, positioned = false) {
|
|
|
1408
1413
|
positioned,
|
|
1409
1414
|
intersect: void 0,
|
|
1410
1415
|
type: vertex.type,
|
|
1411
|
-
padding: padding2 ?? (((_c = (_b2 = getConfig()) == null ? void 0 : _b2.block) == null ? void 0 : _c.padding) || 0)
|
|
1416
|
+
padding: padding2 ?? (((_c = (_b2 = getConfig$1()) == null ? void 0 : _b2.block) == null ? void 0 : _c.padding) || 0)
|
|
1412
1417
|
};
|
|
1413
1418
|
return node;
|
|
1414
1419
|
}
|
|
@@ -1516,7 +1521,7 @@ async function insertEdges(elem, edges, blocks2, db2, id) {
|
|
|
1516
1521
|
}
|
|
1517
1522
|
}
|
|
1518
1523
|
}
|
|
1519
|
-
const padding = ((_b = (_a = getConfig
|
|
1524
|
+
const padding = ((_b = (_a = getConfig()) == null ? void 0 : _a.block) == null ? void 0 : _b.padding) || 8;
|
|
1520
1525
|
function calculateBlockPosition(columns, position) {
|
|
1521
1526
|
if (columns === 0 || !Number.isInteger(columns)) {
|
|
1522
1527
|
throw new Error("Columns must be an integer !== 0.");
|
|
@@ -1769,7 +1774,7 @@ const getClasses = function(text, diagObj) {
|
|
|
1769
1774
|
return diagObj.db.getClasses();
|
|
1770
1775
|
};
|
|
1771
1776
|
const draw = async function(text, id, _version, diagObj) {
|
|
1772
|
-
const { securityLevel, block: conf } = getConfig();
|
|
1777
|
+
const { securityLevel, block: conf } = getConfig$1();
|
|
1773
1778
|
const db2 = diagObj.db;
|
|
1774
1779
|
let sandboxElement;
|
|
1775
1780
|
if (securityLevel === "sandbox") {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var _a, _b;
|
|
2
|
-
import { _ as getConfig, l as log, E as clear$1,
|
|
3
|
-
import { c as clone } from "./clone-
|
|
4
|
-
import { c as channel } from "./channel-
|
|
5
|
-
import { h as insertEdge, f as insertEdgeLabel, j as positionEdgeLabel, e as insertNode, p as positionNode, a as insertMarkers } from "./edges-
|
|
6
|
-
import { G as Graph } from "./graph-
|
|
2
|
+
import { c as getConfig, _ as getConfig$1, l as log, E as clear$1, f as common, B as rgba, o as getStylesFromArray, j as d3select, k as configureSvgSize } from "./mermaid-dcacb631.js";
|
|
3
|
+
import { c as clone } from "./clone-9ea6bfeb.js";
|
|
4
|
+
import { c as channel } from "./channel-f9001828.js";
|
|
5
|
+
import { h as insertEdge, f as insertEdgeLabel, j as positionEdgeLabel, e as insertNode, p as positionNode, a as insertMarkers } from "./edges-ce5cfb7c.js";
|
|
6
|
+
import { G as Graph } from "./graph-fe24fab6.js";
|
|
7
7
|
import { o as ordinal } from "./ordinal-475e0c0c.js";
|
|
8
8
|
import { d as d3schemeTableau10 } from "./Tableau10-31042135.js";
|
|
9
|
-
import "./createText-
|
|
10
|
-
import "./line-
|
|
9
|
+
import "./createText-b70fe78a.js";
|
|
10
|
+
import "./line-87f517ef.js";
|
|
11
11
|
import "./array-b7dcf730.js";
|
|
12
12
|
import "./path-39bad7e2.js";
|
|
13
13
|
import "./init-cc95ec8e.js";
|
|
@@ -956,7 +956,9 @@ const COLOR_KEYWORD = "color";
|
|
|
956
956
|
const FILL_KEYWORD = "fill";
|
|
957
957
|
const BG_FILL = "bgFill";
|
|
958
958
|
const STYLECLASS_SEP = ",";
|
|
959
|
+
const config = getConfig();
|
|
959
960
|
let classes = {};
|
|
961
|
+
const sanitizeText = (txt) => common.sanitizeText(txt, config);
|
|
960
962
|
const addStyleClass = function(id, styleAttributes = "") {
|
|
961
963
|
if (classes[id] === void 0) {
|
|
962
964
|
classes[id] = { id, styles: [], textStyles: [] };
|
|
@@ -998,6 +1000,9 @@ const populateBlockDatabase = (_blockList, parent) => {
|
|
|
998
1000
|
const blockList = _blockList.flat();
|
|
999
1001
|
const children = [];
|
|
1000
1002
|
for (const block of blockList) {
|
|
1003
|
+
if (block.label) {
|
|
1004
|
+
block.label = sanitizeText(block.label);
|
|
1005
|
+
}
|
|
1001
1006
|
if (block.type === "classDef") {
|
|
1002
1007
|
addStyleClass(block.id, block.css);
|
|
1003
1008
|
continue;
|
|
@@ -1171,7 +1176,7 @@ const getClasses$1 = function() {
|
|
|
1171
1176
|
return classes;
|
|
1172
1177
|
};
|
|
1173
1178
|
const db = {
|
|
1174
|
-
getConfig: () => getConfig().block,
|
|
1179
|
+
getConfig: () => getConfig$1().block,
|
|
1175
1180
|
typeStr2Type,
|
|
1176
1181
|
edgeTypeStr2Type,
|
|
1177
1182
|
edgeStrToEdgeData,
|
|
@@ -1404,7 +1409,7 @@ function getNodeFromBlock(block, db2, positioned = false) {
|
|
|
1404
1409
|
positioned,
|
|
1405
1410
|
intersect: void 0,
|
|
1406
1411
|
type: vertex.type,
|
|
1407
|
-
padding: padding2 ?? (((_c = (_b2 = getConfig()) == null ? void 0 : _b2.block) == null ? void 0 : _c.padding) || 0)
|
|
1412
|
+
padding: padding2 ?? (((_c = (_b2 = getConfig$1()) == null ? void 0 : _b2.block) == null ? void 0 : _c.padding) || 0)
|
|
1408
1413
|
};
|
|
1409
1414
|
return node;
|
|
1410
1415
|
}
|
|
@@ -1512,7 +1517,7 @@ async function insertEdges(elem, edges, blocks2, db2, id) {
|
|
|
1512
1517
|
}
|
|
1513
1518
|
}
|
|
1514
1519
|
}
|
|
1515
|
-
const padding = ((_b = (_a = getConfig
|
|
1520
|
+
const padding = ((_b = (_a = getConfig()) == null ? void 0 : _a.block) == null ? void 0 : _b.padding) || 8;
|
|
1516
1521
|
function calculateBlockPosition(columns, position) {
|
|
1517
1522
|
if (columns === 0 || !Number.isInteger(columns)) {
|
|
1518
1523
|
throw new Error("Columns must be an integer !== 0.");
|
|
@@ -1765,7 +1770,7 @@ const getClasses = function(text, diagObj) {
|
|
|
1765
1770
|
return diagObj.db.getClasses();
|
|
1766
1771
|
};
|
|
1767
1772
|
const draw = async function(text, id, _version, diagObj) {
|
|
1768
|
-
const { securityLevel, block: conf } = getConfig();
|
|
1773
|
+
const { securityLevel, block: conf } = getConfig$1();
|
|
1769
1774
|
const db2 = diagObj.db;
|
|
1770
1775
|
let sandboxElement;
|
|
1771
1776
|
if (securityLevel === "sandbox") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as we, g as Oe, a as Te, b as Re, c as Dt, d as ue, e as De, f as Kt, h as Se, i as wt, j as Nt, l as le, k as Pe, w as Me, m as oe } from "./mermaid-
|
|
2
|
-
import { d as Le, g as Ne } from "./svgDrawCommon-
|
|
1
|
+
import { s as we, g as Oe, a as Te, b as Re, c as Dt, d as ue, e as De, f as Kt, h as Se, i as wt, j as Nt, l as le, k as Pe, w as Me, m as oe } from "./mermaid-9f2aa176.js";
|
|
2
|
+
import { d as Le, g as Ne } from "./svgDrawCommon-ecc5f780.js";
|
|
3
3
|
var Yt = function() {
|
|
4
4
|
var e = function(bt, _, x, m) {
|
|
5
5
|
for (x = x || {}, m = bt.length; m--; x[bt[m]] = _)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, e as common, f as assignWithDepth, h as calculateTextWidth, l as log, i as configureSvgSize, w as wrapLabel, j as calculateTextHeight } from "./mermaid-
|
|
1
|
+
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, e as common, f as assignWithDepth, h as calculateTextWidth, l as log, i as configureSvgSize, w as wrapLabel, j as calculateTextHeight } from "./mermaid-6dc72991.js";
|
|
2
2
|
import { select } from "d3";
|
|
3
|
-
import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-
|
|
3
|
+
import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-5e1cfd1d.js";
|
|
4
4
|
import { sanitizeUrl } from "@braintree/sanitize-url";
|
|
5
5
|
import "ts-dedent";
|
|
6
6
|
import "dayjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, e as dist, f as common, h as assignWithDepth, i as calculateTextWidth, j as d3select, l as log, k as configureSvgSize, w as wrapLabel, m as calculateTextHeight } from "./mermaid-
|
|
2
|
-
import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-
|
|
1
|
+
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, e as dist, f as common, h as assignWithDepth, i as calculateTextWidth, j as d3select, l as log, k as configureSvgSize, w as wrapLabel, m as calculateTextHeight } from "./mermaid-dcacb631.js";
|
|
2
|
+
import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-d6ab583c.js";
|
|
3
3
|
var parser = function() {
|
|
4
4
|
var o = function(k, v, o2, l) {
|
|
5
5
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
|