mermaid 10.2.2 → 10.2.3
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-2c65c00d.js → arc-7150e654.js} +29 -29
- package/dist/{arc-56235257.js → arc-7eb198ee.js} +1 -1
- package/dist/{c4Diagram-30400ad0.js → c4Diagram-380bf510.js} +2 -2
- package/dist/{c4Diagram-4015ed94.js → c4Diagram-9cddb37f.js} +1 -1
- package/dist/{c4Diagram-c5f6cac5.js → c4Diagram-cfee614a.js} +2 -2
- package/dist/{classDiagram-a3547413.js → classDiagram-5d1b8e6f.js} +5 -5
- package/dist/{classDiagram-4adda95e.js → classDiagram-a96cd833.js} +5 -5
- package/dist/{classDiagram-f9088573.js → classDiagram-bc733c3b.js} +3 -3
- package/dist/{classDiagram-v2-0a70a412.js → classDiagram-v2-67cfdf13.js} +8 -8
- package/dist/{classDiagram-v2-56d00918.js → classDiagram-v2-8931bdaf.js} +6 -6
- package/dist/{classDiagram-v2-60cd73ae.js → classDiagram-v2-c07ab2ac.js} +8 -8
- package/dist/{createText-31812fd1.js → createText-3df630b5.js} +39 -18
- package/dist/{createText-2f2a343a.js → createText-d34e51c6.js} +39 -18
- package/dist/{createText-34ecf23e.js → createText-f4a1d776.js} +759 -741
- package/dist/{edges-06fe0e9b.js → edges-49ac43a2.js} +3 -3
- package/dist/{edges-8c2fb38e.js → edges-b5d62f50.js} +4 -4
- package/dist/{edges-84ec6f60.js → edges-e08b4480.js} +4 -4
- package/dist/{erDiagram-2034ab6f.js → erDiagram-67d49ee6.js} +3 -3
- package/dist/{erDiagram-79324bed.js → erDiagram-bd715e3e.js} +3 -3
- package/dist/{erDiagram-3f713c6a.js → erDiagram-f6946109.js} +1 -1
- package/dist/{flowDb-197cd6d1.js → flowDb-6a57c1b4.js} +1 -1
- package/dist/{flowDb-4e7c4aec.js → flowDb-b96f714d.js} +1 -1
- package/dist/{flowDb-7f7635cc.js → flowDb-e0e3fd7a.js} +1 -1
- package/dist/{flowDiagram-d3a638d5.js → flowDiagram-8fe09f21.js} +10 -10
- package/dist/{flowDiagram-a2b06433.js → flowDiagram-93327f21.js} +7 -7
- package/dist/{flowDiagram-7f2bb914.js → flowDiagram-98e6d0e8.js} +10 -10
- package/dist/{flowDiagram-v2-c75a17c2.js → flowDiagram-v2-3b8e6891.js} +10 -10
- package/dist/{flowDiagram-v2-9f8fab07.js → flowDiagram-v2-476db779.js} +7 -7
- package/dist/{flowDiagram-v2-d84f41d0.js → flowDiagram-v2-c3745723.js} +10 -10
- package/dist/{flowchart-elk-definition-73ae1d0b.js → flowchart-elk-definition-37f84cb6.js} +7 -7
- package/dist/{flowchart-elk-definition-5cf0e905.js → flowchart-elk-definition-5082a990.js} +6 -6
- package/dist/{flowchart-elk-definition-b299cff1.js → flowchart-elk-definition-9b5375b9.js} +223 -223
- package/dist/{ganttDiagram-1781195b.js → ganttDiagram-06967d3a.js} +2 -2
- package/dist/{ganttDiagram-4e00717f.js → ganttDiagram-7ce12d6b.js} +1 -1
- package/dist/{ganttDiagram-eddf2b5d.js → ganttDiagram-8a43e655.js} +2 -2
- package/dist/{gitGraphDiagram-ac8b1a85.js → gitGraphDiagram-1e960c50.js} +1 -1
- package/dist/{gitGraphDiagram-71d608d2.js → gitGraphDiagram-2e5972b2.js} +1 -1
- package/dist/{gitGraphDiagram-bd04333d.js → gitGraphDiagram-49074372.js} +1 -1
- package/dist/{index-ce156fd5.js → index-714fe675.js} +4 -4
- package/dist/{index-7484f147.js → index-a92ac404.js} +3 -3
- package/dist/{index-bf86b901.js → index-e1d945fd.js} +4 -4
- package/dist/{infoDiagram-bc0d5d92.js → infoDiagram-264bed3e.js} +1 -1
- package/dist/{infoDiagram-d8edadcf.js → infoDiagram-a3502c4f.js} +1 -1
- package/dist/{infoDiagram-e2ad1b58.js → infoDiagram-bb968efd.js} +1 -1
- package/dist/{journeyDiagram-eeb24d29.js → journeyDiagram-255a0ba0.js} +3 -3
- package/dist/{journeyDiagram-b5476ffb.js → journeyDiagram-31be0096.js} +1 -1
- package/dist/{journeyDiagram-1eb6fba0.js → journeyDiagram-b4ecc044.js} +3 -3
- package/dist/{layout-1171b506.js → layout-3ecfba7d.js} +1 -1
- package/dist/{layout-23ab7ebc.js → layout-db328a38.js} +1 -1
- package/dist/{line-47adbd5d.js → line-130fa1e5.js} +1 -1
- package/dist/{line-850ff9a1.js → line-9ed8ba8b.js} +1 -1
- package/dist/{linear-8f527e14.js → linear-6a545413.js} +1 -1
- package/dist/{linear-cedd28c4.js → linear-cfd7abf9.js} +1 -1
- package/dist/{mermaid-c66525a4.js → mermaid-34beccd0.js} +74 -72
- package/dist/{mermaid-08b2ff5f.js → mermaid-8ea29a40.js} +371 -370
- package/dist/{mermaid-ddfd1cde.js → mermaid-b0ad2de1.js} +23 -21
- package/dist/mermaid.core.mjs +1 -1
- package/dist/mermaid.esm.min.mjs +1 -1
- package/dist/mermaid.esm.mjs +2 -2
- package/dist/mermaid.js +47 -24
- package/dist/mermaid.min.js +122 -122
- package/dist/{mindmap-definition-7c7f5519.js → mindmap-definition-4fc2557c.js} +2 -2
- package/dist/{mindmap-definition-b35271d9.js → mindmap-definition-c274dca3.js} +2 -2
- package/dist/{mindmap-definition-825812a2.js → mindmap-definition-d99fa72b.js} +2 -2
- package/dist/{pieDiagram-c9e1e65d.js → pieDiagram-157505fe.js} +1 -1
- package/dist/{pieDiagram-9f52f3c8.js → pieDiagram-b14d6516.js} +2 -2
- package/dist/{pieDiagram-427d710c.js → pieDiagram-ca09f680.js} +2 -2
- package/dist/{quadrantDiagram-dbf8fc84.js → quadrantDiagram-4a0aa1c7.js} +4 -4
- package/dist/{quadrantDiagram-0bfe3602.js → quadrantDiagram-5b13e66e.js} +61 -61
- package/dist/{quadrantDiagram-1ee9b076.js → quadrantDiagram-fd70f2d0.js} +3 -3
- package/dist/{requirementDiagram-a1feb0ba.js → requirementDiagram-19c99588.js} +1 -1
- package/dist/{requirementDiagram-480c4b33.js → requirementDiagram-20d822e5.js} +3 -3
- package/dist/{requirementDiagram-f7bd47cb.js → requirementDiagram-3071de27.js} +3 -3
- package/dist/{selectAll-776a0c51.js → selectAll-92b901d1.js} +1 -1
- package/dist/{selectAll-378e90f0.js → selectAll-c295459b.js} +1 -1
- package/dist/{sequenceDiagram-5e6de89c.js → sequenceDiagram-1d99af4c.js} +216 -214
- package/dist/{sequenceDiagram-d370aecf.js → sequenceDiagram-317224a5.js} +6 -5
- package/dist/{sequenceDiagram-4a53e255.js → sequenceDiagram-5dfd0049.js} +4 -3
- package/dist/{stateDiagram-a0ac330a.js → stateDiagram-133e3642.js} +2 -2
- package/dist/{stateDiagram-eed21683.js → stateDiagram-4e50f1a0.js} +4 -4
- package/dist/{stateDiagram-f56100fa.js → stateDiagram-a9a9b756.js} +4 -4
- package/dist/{stateDiagram-v2-cfe94687.js → stateDiagram-v2-6371a76b.js} +6 -6
- package/dist/{stateDiagram-v2-2a8ef368.js → stateDiagram-v2-b34fad08.js} +8 -8
- package/dist/{stateDiagram-v2-7684bed5.js → stateDiagram-v2-ef99b8a4.js} +8 -8
- package/dist/{styles-2f9839dc.js → styles-29b137c7.js} +1 -1
- package/dist/{styles-1557db13.js → styles-313a4a41.js} +5 -5
- package/dist/{styles-aea5c17b.js → styles-5f89df53.js} +3 -3
- package/dist/{styles-b9045be1.js → styles-74f60bde.js} +1 -1
- package/dist/{styles-ad91cc54.js → styles-82a206d5.js} +5 -5
- package/dist/{styles-a40c3df8.js → styles-aae272b4.js} +1 -1
- package/dist/{styles-0a525a9a.js → styles-aefe6593.js} +1 -1
- package/dist/{styles-ed94903c.js → styles-bed8d31d.js} +1 -1
- package/dist/{styles-d9667b1f.js → styles-fa41df25.js} +1 -1
- package/dist/{svgDraw-14f13a51.js → svgDraw-0fcc813d.js} +1 -1
- package/dist/{svgDraw-d5bb5edb.js → svgDraw-591e3474.js} +2 -2
- package/dist/{svgDraw-39291d2f.js → svgDraw-b2141e90.js} +2 -2
- package/dist/{svgDrawCommon-b06ba884.js → svgDrawCommon-0bff53a1.js} +1 -1
- package/dist/{svgDrawCommon-87f2bfe2.js → svgDrawCommon-daf0bec5.js} +1 -1
- package/dist/{timeline-definition-4cdb07ca.js → timeline-definition-5ed366f4.js} +1 -1
- package/dist/{timeline-definition-927a93b1.js → timeline-definition-ee1cab63.js} +2 -2
- package/dist/{timeline-definition-afaf264f.js → timeline-definition-fff849c3.js} +2 -2
- package/dist/utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
1
|
+
import { c as J, p as sn } from "./constant-2fe7eae5.js";
|
|
2
|
+
import { aC as en, aD as y, Q as ln, aE as N, aF as D, aG as S, aH as b, aI as an, aJ as rn, aK as t, aL as un, aM as on, aN as tn } from "./mermaid-8ea29a40.js";
|
|
3
3
|
function fn(l) {
|
|
4
4
|
return l.innerRadius;
|
|
5
5
|
}
|
|
@@ -15,66 +15,66 @@ function gn(l) {
|
|
|
15
15
|
function mn(l) {
|
|
16
16
|
return l && l.padAngle;
|
|
17
17
|
}
|
|
18
|
-
function pn(l, x, q, E, h, v,
|
|
19
|
-
var s = q - l, n = E - x, m =
|
|
18
|
+
function pn(l, x, q, E, h, v, K, a) {
|
|
19
|
+
var s = q - l, n = E - x, m = K - h, i = a - v, r = i * s - m * n;
|
|
20
20
|
if (!(r * r < y))
|
|
21
21
|
return r = (m * (x - v) - i * (l - h)) / r, [l + r * s, x + r * n];
|
|
22
22
|
}
|
|
23
|
-
function V(l, x, q, E, h, v,
|
|
24
|
-
var a = l - q, s = x - E, n = (
|
|
25
|
-
return e * e + u * u >
|
|
26
|
-
cx:
|
|
23
|
+
function V(l, x, q, E, h, v, K) {
|
|
24
|
+
var a = l - q, s = x - E, n = (K ? v : -v) / S(a * a + s * s), m = n * s, i = -n * a, r = l + m, f = x + i, c = q + m, w = E + i, o = (r + c) / 2, C = (f + w) / 2, p = c - r, g = w - f, A = p * p + g * g, F = h - v, P = r * w - c * f, G = (g < 0 ? -1 : 1) * S(tn(0, F * F * A - P * P)), H = (P * g - p * G) / A, d = (-P * p - g * G) / A, R = (P * g + p * G) / A, T = (-P * p + g * G) / A, e = H - o, u = d - C, L = R - o, M = T - C;
|
|
25
|
+
return e * e + u * u > L * L + M * M && (H = R, d = T), {
|
|
26
|
+
cx: H,
|
|
27
27
|
cy: d,
|
|
28
28
|
x01: -m,
|
|
29
29
|
y01: -i,
|
|
30
|
-
x11:
|
|
31
|
-
y11: d * (h /
|
|
30
|
+
x11: H * (h / F - 1),
|
|
31
|
+
y11: d * (h / F - 1)
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
function hn() {
|
|
35
|
-
var l = fn, x = cn, q =
|
|
35
|
+
var l = fn, x = cn, q = J(0), E = null, h = yn, v = gn, K = mn, a = null;
|
|
36
36
|
function s() {
|
|
37
37
|
var n, m, i = +l.apply(this, arguments), r = +x.apply(this, arguments), f = h.apply(this, arguments) - en, c = v.apply(this, arguments) - en, w = an(c - f), o = c > f;
|
|
38
38
|
if (a || (a = n = sn()), r < i && (m = r, r = i, i = m), !(r > y))
|
|
39
39
|
a.moveTo(0, 0);
|
|
40
40
|
else if (w > ln - y)
|
|
41
|
-
a.moveTo(r *
|
|
41
|
+
a.moveTo(r * N(f), r * D(f)), a.arc(0, 0, r, f, c, !o), i > y && (a.moveTo(i * N(c), i * D(c)), a.arc(0, 0, i, c, f, o));
|
|
42
42
|
else {
|
|
43
|
-
var
|
|
44
|
-
if (
|
|
45
|
-
var
|
|
46
|
-
(
|
|
43
|
+
var C = f, p = c, g = f, A = c, F = w, P = w, G = K.apply(this, arguments) / 2, H = G > y && (E ? +E.apply(this, arguments) : S(i * i + r * r)), d = b(an(r - i) / 2, +q.apply(this, arguments)), R = d, T = d, e, u;
|
|
44
|
+
if (H > y) {
|
|
45
|
+
var L = un(H / i * D(G)), M = un(H / r * D(G));
|
|
46
|
+
(F -= L * 2) > y ? (L *= o ? 1 : -1, g += L, A -= L) : (F = 0, g = A = (f + c) / 2), (P -= M * 2) > y ? (M *= o ? 1 : -1, C += M, p -= M) : (P = 0, C = p = (f + c) / 2);
|
|
47
47
|
}
|
|
48
|
-
var O = r *
|
|
48
|
+
var O = r * N(C), Q = r * D(C), j = i * N(A), z = i * D(A);
|
|
49
49
|
if (d > y) {
|
|
50
|
-
var
|
|
51
|
-
if (w < rn && (I = pn(O, Q, W, X,
|
|
52
|
-
var Y = O - I[0], Z = Q - I[1], $ =
|
|
50
|
+
var B = r * N(p), U = r * D(p), W = i * N(g), X = i * D(g), I;
|
|
51
|
+
if (w < rn && (I = pn(O, Q, W, X, B, U, j, z))) {
|
|
52
|
+
var Y = O - I[0], Z = Q - I[1], $ = B - I[0], k = U - I[1], _ = 1 / D(on((Y * $ + Z * k) / (S(Y * Y + Z * Z) * S($ * $ + k * k))) / 2), nn = S(I[0] * I[0] + I[1] * I[1]);
|
|
53
53
|
R = b(d, (i - nn) / (_ - 1)), T = b(d, (r - nn) / (_ + 1));
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
P > y ? T > y ? (e = V(W, X, O, Q, r, T, o), u = V(
|
|
56
|
+
P > y ? T > y ? (e = V(W, X, O, Q, r, T, o), u = V(B, U, j, z, r, T, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), T < d ? a.arc(e.cx, e.cy, T, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, T, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, r, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), !o), a.arc(u.cx, u.cy, T, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : (a.moveTo(O, Q), a.arc(0, 0, r, C, p, !o)) : a.moveTo(O, Q), !(i > y) || !(F > y) ? a.lineTo(j, z) : R > y ? (e = V(j, z, B, U, i, -R, o), u = V(O, Q, W, X, i, -R, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), R < d ? a.arc(e.cx, e.cy, R, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, R, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, i, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), o), a.arc(u.cx, u.cy, R, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : a.arc(0, 0, i, A, g, o);
|
|
57
57
|
}
|
|
58
58
|
if (a.closePath(), n)
|
|
59
59
|
return a = null, n + "" || null;
|
|
60
60
|
}
|
|
61
61
|
return s.centroid = function() {
|
|
62
62
|
var n = (+l.apply(this, arguments) + +x.apply(this, arguments)) / 2, m = (+h.apply(this, arguments) + +v.apply(this, arguments)) / 2 - rn / 2;
|
|
63
|
-
return [
|
|
63
|
+
return [N(m) * n, D(m) * n];
|
|
64
64
|
}, s.innerRadius = function(n) {
|
|
65
|
-
return arguments.length ? (l = typeof n == "function" ? n :
|
|
65
|
+
return arguments.length ? (l = typeof n == "function" ? n : J(+n), s) : l;
|
|
66
66
|
}, s.outerRadius = function(n) {
|
|
67
|
-
return arguments.length ? (x = typeof n == "function" ? n :
|
|
67
|
+
return arguments.length ? (x = typeof n == "function" ? n : J(+n), s) : x;
|
|
68
68
|
}, s.cornerRadius = function(n) {
|
|
69
|
-
return arguments.length ? (q = typeof n == "function" ? n :
|
|
69
|
+
return arguments.length ? (q = typeof n == "function" ? n : J(+n), s) : q;
|
|
70
70
|
}, s.padRadius = function(n) {
|
|
71
|
-
return arguments.length ? (E = n == null ? null : typeof n == "function" ? n :
|
|
71
|
+
return arguments.length ? (E = n == null ? null : typeof n == "function" ? n : J(+n), s) : E;
|
|
72
72
|
}, s.startAngle = function(n) {
|
|
73
|
-
return arguments.length ? (h = typeof n == "function" ? n :
|
|
73
|
+
return arguments.length ? (h = typeof n == "function" ? n : J(+n), s) : h;
|
|
74
74
|
}, s.endAngle = function(n) {
|
|
75
|
-
return arguments.length ? (v = typeof n == "function" ? n :
|
|
75
|
+
return arguments.length ? (v = typeof n == "function" ? n : J(+n), s) : v;
|
|
76
76
|
}, s.padAngle = function(n) {
|
|
77
|
-
return arguments.length ? (
|
|
77
|
+
return arguments.length ? (K = typeof n == "function" ? n : J(+n), s) : K;
|
|
78
78
|
}, s.context = function(n) {
|
|
79
79
|
return arguments.length ? (a = n ?? null, s) : a;
|
|
80
80
|
}, s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as constant, p as path } from "./constant-b644328d.js";
|
|
2
|
-
import {
|
|
2
|
+
import { aC as halfPi, aD as epsilon, Q as tau, aE as cos, aF as sin, aG as sqrt, aH as min, aI as abs, aJ as pi, aK as atan2, aL as asin, aM as acos, aN as max } from "./mermaid-34beccd0.js";
|
|
3
3
|
function arcInnerRadius(d) {
|
|
4
4
|
return d.innerRadius;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as Ye, g as Ie, a as Ve, b as je, c as Ut, d as ve, m as Ue, e as Fe, f as le, h as Xe, i as Yt, j as Qt, l as _e, k as ze, w as We, n as xe } from "./mermaid-
|
|
2
|
-
import { d as Qe, g as He } from "./svgDrawCommon-
|
|
1
|
+
import { s as Ye, g as Ie, a as Ve, b as je, c as Ut, d as ve, m as Ue, e as Fe, f as le, h as Xe, i as Yt, j as Qt, l as _e, k as ze, w as We, n as xe } from "./mermaid-8ea29a40.js";
|
|
2
|
+
import { d as Qe, g as He } from "./svgDrawCommon-daf0bec5.js";
|
|
3
3
|
var qt = function() {
|
|
4
4
|
var e = function(Ot, _, x, m) {
|
|
5
5
|
for (x = x || {}, m = Ot.length; m--; x[Ot[m]] = _)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, m as mermaidAPI, 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, m as mermaidAPI, e as common, f as assignWithDepth, h as calculateTextWidth, l as log, i as configureSvgSize, w as wrapLabel, j as calculateTextHeight } from "./mermaid-b0ad2de1.js";
|
|
2
2
|
import { select } from "d3";
|
|
3
3
|
import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-f26cad39.js";
|
|
4
4
|
import { sanitizeUrl } from "@braintree/sanitize-url";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, m as mermaidAPI, e as sanitizeUrl_1, f as common, h as assignWithDepth, i as calculateTextWidth, j as select, l as log, k as configureSvgSize, w as wrapLabel, n 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, m as mermaidAPI, e as sanitizeUrl_1, f as common, h as assignWithDepth, i as calculateTextWidth, j as select, l as log, k as configureSvgSize, w as wrapLabel, n as calculateTextHeight } from "./mermaid-34beccd0.js";
|
|
2
|
+
import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-0bff53a1.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)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as W, d as M, s as H } from "./styles-
|
|
2
|
-
import { c as S, l as d, j as m, k as X } from "./mermaid-
|
|
3
|
-
import { G as Y, l as Z } from "./layout-
|
|
4
|
-
import { s as l } from "./svgDraw-
|
|
5
|
-
import "./line-
|
|
1
|
+
import { p as W, d as M, s as H } from "./styles-aae272b4.js";
|
|
2
|
+
import { c as S, l as d, j as m, k as X } from "./mermaid-8ea29a40.js";
|
|
3
|
+
import { G as Y, l as Z } from "./layout-3ecfba7d.js";
|
|
4
|
+
import { s as l } from "./svgDraw-b2141e90.js";
|
|
5
|
+
import "./line-130fa1e5.js";
|
|
6
6
|
import "./array-2ff2c7a6.js";
|
|
7
7
|
import "./constant-2fe7eae5.js";
|
|
8
8
|
let h = {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as parser, d as db, s as styles } from "./styles-
|
|
2
|
-
import { c as getConfig, l as log, j as select, k as configureSvgSize } from "./mermaid-
|
|
3
|
-
import { G as Graph, l as layout } from "./layout-
|
|
4
|
-
import { s as svgDraw } from "./svgDraw-
|
|
5
|
-
import "./line-
|
|
1
|
+
import { p as parser, d as db, s as styles } from "./styles-74f60bde.js";
|
|
2
|
+
import { c as getConfig, l as log, j as select, k as configureSvgSize } from "./mermaid-34beccd0.js";
|
|
3
|
+
import { G as Graph, l as layout } from "./layout-db328a38.js";
|
|
4
|
+
import { s as svgDraw } from "./svgDraw-591e3474.js";
|
|
5
|
+
import "./line-9ed8ba8b.js";
|
|
6
6
|
import "./array-b7dcf730.js";
|
|
7
7
|
import "./constant-b644328d.js";
|
|
8
8
|
let idCache = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as parser, d as db, s as styles } from "./styles-
|
|
1
|
+
import { p as parser, d as db, s as styles } from "./styles-aefe6593.js";
|
|
2
2
|
import { select } from "d3";
|
|
3
3
|
import { layout } from "dagre-d3-es/src/dagre/index.js";
|
|
4
4
|
import * as graphlib from "dagre-d3-es/src/graphlib/index.js";
|
|
5
|
-
import { c as getConfig, l as log, i as configureSvgSize } from "./mermaid-
|
|
6
|
-
import { s as svgDraw } from "./svgDraw-
|
|
5
|
+
import { c as getConfig, l as log, i as configureSvgSize } from "./mermaid-b0ad2de1.js";
|
|
6
|
+
import { s as svgDraw } from "./svgDraw-0fcc813d.js";
|
|
7
7
|
import "ts-dedent";
|
|
8
8
|
import "dayjs";
|
|
9
9
|
import "@braintree/sanitize-url";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as parser, d as db, s as styles } from "./styles-
|
|
2
|
-
import { l as log, c as getConfig, j as select, x as utils, t as setupGraphViewbox, r as interpolateToCurve, o as curveLinear, p as getStylesFromArray, f as common } from "./mermaid-
|
|
3
|
-
import { G as Graph } from "./layout-
|
|
4
|
-
import { r as render } from "./index-
|
|
5
|
-
import "./edges-
|
|
6
|
-
import "./createText-
|
|
7
|
-
import "./svgDraw-
|
|
8
|
-
import "./line-
|
|
1
|
+
import { p as parser, d as db, s as styles } from "./styles-74f60bde.js";
|
|
2
|
+
import { l as log, c as getConfig, j as select, x as utils, t as setupGraphViewbox, r as interpolateToCurve, o as curveLinear, p as getStylesFromArray, f as common } from "./mermaid-34beccd0.js";
|
|
3
|
+
import { G as Graph } from "./layout-db328a38.js";
|
|
4
|
+
import { r as render } from "./index-714fe675.js";
|
|
5
|
+
import "./edges-e08b4480.js";
|
|
6
|
+
import "./createText-d34e51c6.js";
|
|
7
|
+
import "./svgDraw-591e3474.js";
|
|
8
|
+
import "./line-9ed8ba8b.js";
|
|
9
9
|
import "./array-b7dcf730.js";
|
|
10
10
|
import "./constant-b644328d.js";
|
|
11
11
|
const sanitizeText = (txt) => common.sanitizeText(txt, getConfig());
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as parser, d as db, s as styles } from "./styles-
|
|
1
|
+
import { p as parser, d as db, s as styles } from "./styles-aefe6593.js";
|
|
2
2
|
import { select, curveLinear } from "d3";
|
|
3
3
|
import * as graphlib from "dagre-d3-es/src/graphlib/index.js";
|
|
4
|
-
import { l as log, c as getConfig, u as utils, p as setupGraphViewbox, o as interpolateToCurve, k as getStylesFromArray, e as common } from "./mermaid-
|
|
5
|
-
import { r as render } from "./index-
|
|
4
|
+
import { l as log, c as getConfig, u as utils, p as setupGraphViewbox, o as interpolateToCurve, k as getStylesFromArray, e as common } from "./mermaid-b0ad2de1.js";
|
|
5
|
+
import { r as render } from "./index-a92ac404.js";
|
|
6
6
|
import "ts-dedent";
|
|
7
7
|
import "dayjs";
|
|
8
8
|
import "@braintree/sanitize-url";
|
|
@@ -13,10 +13,10 @@ import "stylis";
|
|
|
13
13
|
import "lodash-es/isEmpty.js";
|
|
14
14
|
import "dagre-d3-es/src/dagre/index.js";
|
|
15
15
|
import "dagre-d3-es/src/graphlib/json.js";
|
|
16
|
-
import "./edges-
|
|
17
|
-
import "./createText-
|
|
16
|
+
import "./edges-49ac43a2.js";
|
|
17
|
+
import "./createText-3df630b5.js";
|
|
18
18
|
import "mdast-util-from-markdown";
|
|
19
|
-
import "./svgDraw-
|
|
19
|
+
import "./svgDraw-0fcc813d.js";
|
|
20
20
|
const sanitizeText = (txt) => common.sanitizeText(txt, getConfig());
|
|
21
21
|
let conf = {
|
|
22
22
|
dividerMargin: 10,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as R, d as N, s as B } from "./styles-
|
|
2
|
-
import { l as c, c as r, j as k, x as G, t as _, r as D, o as E, p as z, f as A } from "./mermaid-
|
|
3
|
-
import { G as P } from "./layout-
|
|
4
|
-
import { r as $ } from "./index-
|
|
5
|
-
import "./edges-
|
|
6
|
-
import "./createText-
|
|
7
|
-
import "./svgDraw-
|
|
8
|
-
import "./line-
|
|
1
|
+
import { p as R, d as N, s as B } from "./styles-aae272b4.js";
|
|
2
|
+
import { l as c, c as r, j as k, x as G, t as _, r as D, o as E, p as z, f as A } from "./mermaid-8ea29a40.js";
|
|
3
|
+
import { G as P } from "./layout-3ecfba7d.js";
|
|
4
|
+
import { r as $ } from "./index-e1d945fd.js";
|
|
5
|
+
import "./edges-b5d62f50.js";
|
|
6
|
+
import "./createText-f4a1d776.js";
|
|
7
|
+
import "./svgDraw-b2141e90.js";
|
|
8
|
+
import "./line-130fa1e5.js";
|
|
9
9
|
import "./array-2ff2c7a6.js";
|
|
10
10
|
import "./constant-2fe7eae5.js";
|
|
11
11
|
const S = (o) => A.sanitizeText(o, r());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as log, H as decodeEntities } from "./mermaid-
|
|
1
|
+
import { l as log, H as decodeEntities } from "./mermaid-b0ad2de1.js";
|
|
2
2
|
import { fromMarkdown } from "mdast-util-from-markdown";
|
|
3
3
|
import { dedent } from "ts-dedent";
|
|
4
4
|
function preprocessMarkdown(markdown) {
|
|
@@ -92,31 +92,52 @@ function addHtmlSpan(element, node, width, classes, addBackground = false) {
|
|
|
92
92
|
function createTspan(textElement, lineIndex, lineHeight) {
|
|
93
93
|
return textElement.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", lineIndex * lineHeight - 0.1 + "em").attr("dy", lineHeight + "em");
|
|
94
94
|
}
|
|
95
|
+
function computeWidthOfText(parentNode, lineHeight, text) {
|
|
96
|
+
const testElement = parentNode.append("text");
|
|
97
|
+
const testSpan = createTspan(testElement, 1, lineHeight);
|
|
98
|
+
updateTextContentAndStyles(testSpan, [{ content: text, type: "normal" }]);
|
|
99
|
+
const textLength = testSpan.node().getComputedTextLength();
|
|
100
|
+
testElement.remove();
|
|
101
|
+
return textLength;
|
|
102
|
+
}
|
|
95
103
|
function createFormattedText(width, g, structuredText, addBackground = false) {
|
|
96
104
|
const lineHeight = 1.1;
|
|
97
105
|
const labelGroup = g.append("g");
|
|
98
106
|
let bkg = labelGroup.insert("rect").attr("class", "background");
|
|
99
107
|
const textElement = labelGroup.append("text").attr("y", "-10.1");
|
|
100
|
-
let lineIndex =
|
|
108
|
+
let lineIndex = 0;
|
|
101
109
|
structuredText.forEach((line) => {
|
|
102
|
-
|
|
103
|
-
let
|
|
104
|
-
let
|
|
105
|
-
let
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
110
|
+
let fullStr = line.map((data) => data.content).join(" ");
|
|
111
|
+
let tempStr = "";
|
|
112
|
+
let linesUnderWidth = [];
|
|
113
|
+
let prevIndex = 0;
|
|
114
|
+
if (computeWidthOfText(labelGroup, lineHeight, fullStr) <= width) {
|
|
115
|
+
linesUnderWidth.push(fullStr);
|
|
116
|
+
} else {
|
|
117
|
+
for (let i = 0; i <= fullStr.length; i++) {
|
|
118
|
+
tempStr = fullStr.slice(prevIndex, i);
|
|
119
|
+
log.info(tempStr, prevIndex, i);
|
|
120
|
+
if (computeWidthOfText(labelGroup, lineHeight, tempStr) > width) {
|
|
121
|
+
const subStr = fullStr.slice(prevIndex, i);
|
|
122
|
+
const lastSpaceIndex = subStr.lastIndexOf(" ");
|
|
123
|
+
if (lastSpaceIndex > -1) {
|
|
124
|
+
i = prevIndex + lastSpaceIndex + 1;
|
|
125
|
+
}
|
|
126
|
+
linesUnderWidth.push(fullStr.slice(prevIndex, i).trim());
|
|
127
|
+
prevIndex = i;
|
|
128
|
+
tempStr = null;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (tempStr != null) {
|
|
132
|
+
linesUnderWidth.push(tempStr);
|
|
118
133
|
}
|
|
119
134
|
}
|
|
135
|
+
const preparedLines = linesUnderWidth.map((w) => ({ content: w, type: line.type }));
|
|
136
|
+
for (const preparedLine of preparedLines) {
|
|
137
|
+
let tspan = createTspan(textElement, lineIndex, lineHeight);
|
|
138
|
+
updateTextContentAndStyles(tspan, [preparedLine]);
|
|
139
|
+
lineIndex++;
|
|
140
|
+
}
|
|
120
141
|
});
|
|
121
142
|
if (addBackground) {
|
|
122
143
|
const bbox = textElement.node().getBBox();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aO as dedent, l as log, aw as decodeEntities } from "./mermaid-34beccd0.js";
|
|
2
2
|
function toString(node, options) {
|
|
3
3
|
var { includeImageAlt = true } = options || {};
|
|
4
4
|
return one(node, includeImageAlt);
|
|
@@ -4652,31 +4652,52 @@ function addHtmlSpan(element2, node, width, classes, addBackground = false) {
|
|
|
4652
4652
|
function createTspan(textElement, lineIndex, lineHeight) {
|
|
4653
4653
|
return textElement.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", lineIndex * lineHeight - 0.1 + "em").attr("dy", lineHeight + "em");
|
|
4654
4654
|
}
|
|
4655
|
+
function computeWidthOfText(parentNode, lineHeight, text2) {
|
|
4656
|
+
const testElement = parentNode.append("text");
|
|
4657
|
+
const testSpan = createTspan(testElement, 1, lineHeight);
|
|
4658
|
+
updateTextContentAndStyles(testSpan, [{ content: text2, type: "normal" }]);
|
|
4659
|
+
const textLength = testSpan.node().getComputedTextLength();
|
|
4660
|
+
testElement.remove();
|
|
4661
|
+
return textLength;
|
|
4662
|
+
}
|
|
4655
4663
|
function createFormattedText(width, g, structuredText, addBackground = false) {
|
|
4656
4664
|
const lineHeight = 1.1;
|
|
4657
4665
|
const labelGroup = g.append("g");
|
|
4658
4666
|
let bkg = labelGroup.insert("rect").attr("class", "background");
|
|
4659
4667
|
const textElement = labelGroup.append("text").attr("y", "-10.1");
|
|
4660
|
-
let lineIndex =
|
|
4668
|
+
let lineIndex = 0;
|
|
4661
4669
|
structuredText.forEach((line) => {
|
|
4662
|
-
|
|
4663
|
-
let
|
|
4664
|
-
let
|
|
4665
|
-
let
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4670
|
+
let fullStr = line.map((data) => data.content).join(" ");
|
|
4671
|
+
let tempStr = "";
|
|
4672
|
+
let linesUnderWidth = [];
|
|
4673
|
+
let prevIndex = 0;
|
|
4674
|
+
if (computeWidthOfText(labelGroup, lineHeight, fullStr) <= width) {
|
|
4675
|
+
linesUnderWidth.push(fullStr);
|
|
4676
|
+
} else {
|
|
4677
|
+
for (let i = 0; i <= fullStr.length; i++) {
|
|
4678
|
+
tempStr = fullStr.slice(prevIndex, i);
|
|
4679
|
+
log.info(tempStr, prevIndex, i);
|
|
4680
|
+
if (computeWidthOfText(labelGroup, lineHeight, tempStr) > width) {
|
|
4681
|
+
const subStr = fullStr.slice(prevIndex, i);
|
|
4682
|
+
const lastSpaceIndex = subStr.lastIndexOf(" ");
|
|
4683
|
+
if (lastSpaceIndex > -1) {
|
|
4684
|
+
i = prevIndex + lastSpaceIndex + 1;
|
|
4685
|
+
}
|
|
4686
|
+
linesUnderWidth.push(fullStr.slice(prevIndex, i).trim());
|
|
4687
|
+
prevIndex = i;
|
|
4688
|
+
tempStr = null;
|
|
4689
|
+
}
|
|
4690
|
+
}
|
|
4691
|
+
if (tempStr != null) {
|
|
4692
|
+
linesUnderWidth.push(tempStr);
|
|
4678
4693
|
}
|
|
4679
4694
|
}
|
|
4695
|
+
const preparedLines = linesUnderWidth.map((w) => ({ content: w, type: line.type }));
|
|
4696
|
+
for (const preparedLine of preparedLines) {
|
|
4697
|
+
let tspan = createTspan(textElement, lineIndex, lineHeight);
|
|
4698
|
+
updateTextContentAndStyles(tspan, [preparedLine]);
|
|
4699
|
+
lineIndex++;
|
|
4700
|
+
}
|
|
4680
4701
|
});
|
|
4681
4702
|
if (addBackground) {
|
|
4682
4703
|
const bbox = textElement.node().getBBox();
|