Skip to content

Commit 571f959

Browse files
committed
v10.8.0.0
1 parent bd037b8 commit 571f959

File tree

126 files changed

+507677
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+507677
-5
lines changed

MermaidEditor/LivePreview/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<!--<script src="mermaid.js"></script>-->
9595
<script type="module">
9696
/*import mermaid from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm'*/
97-
import mermaid from 'http://mermaideditor.example/mermaid.10.7.0/mermaid.esm.mjs'
97+
import mermaid from 'http://mermaideditor.example/mermaid.10.8.0/mermaid.esm.mjs'
9898
mermaid.initialize({ startOnLoad: false });
9999

100100
const sendMessage = function (msg)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
function colors(specifier) {
2+
var n = specifier.length / 6 | 0, colors2 = new Array(n), i = 0;
3+
while (i < n)
4+
colors2[i] = "#" + specifier.slice(i * 6, ++i * 6);
5+
return colors2;
6+
}
7+
const d3schemeTableau10 = colors("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
8+
export {
9+
d3schemeTableau10 as d
10+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
function o(e) {
2+
for (var c = e.length / 6 | 0, n = new Array(c), a = 0; a < c; )
3+
n[a] = "#" + e.slice(a * 6, ++a * 6);
4+
return n;
5+
}
6+
const r = o("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
7+
export {
8+
r as d
9+
};
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
import { w as withPath, c as constant } from "./path-39bad7e2.js";
2+
import { at as pi, au as cos, av as sin, aw as halfPi, ax as epsilon, U as tau, ay as sqrt, az as min, aA as abs, aB as atan2, aC as asin, aD as acos, aE as max } from "./mermaid-4f066ae1.js";
3+
function arcInnerRadius(d) {
4+
return d.innerRadius;
5+
}
6+
function arcOuterRadius(d) {
7+
return d.outerRadius;
8+
}
9+
function arcStartAngle(d) {
10+
return d.startAngle;
11+
}
12+
function arcEndAngle(d) {
13+
return d.endAngle;
14+
}
15+
function arcPadAngle(d) {
16+
return d && d.padAngle;
17+
}
18+
function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
19+
var x10 = x1 - x0, y10 = y1 - y0, x32 = x3 - x2, y32 = y3 - y2, t = y32 * x10 - x32 * y10;
20+
if (t * t < epsilon)
21+
return;
22+
t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;
23+
return [x0 + t * x10, y0 + t * y10];
24+
}
25+
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
26+
var x01 = x0 - x1, y01 = y0 - y1, lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x11 = x0 + ox, y11 = y0 + oy, x10 = x1 + ox, y10 = y1 + oy, x00 = (x11 + x10) / 2, y00 = (y11 + y10) / 2, dx = x10 - x11, dy = y10 - y11, d2 = dx * dx + dy * dy, r = r1 - rc, D = x11 * y10 - x10 * y11, d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x00, dy0 = cy0 - y00, dx1 = cx1 - x00, dy1 = cy1 - y00;
27+
if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1)
28+
cx0 = cx1, cy0 = cy1;
29+
return {
30+
cx: cx0,
31+
cy: cy0,
32+
x01: -ox,
33+
y01: -oy,
34+
x11: cx0 * (r1 / r - 1),
35+
y11: cy0 * (r1 / r - 1)
36+
};
37+
}
38+
function d3arc() {
39+
var innerRadius = arcInnerRadius, outerRadius = arcOuterRadius, cornerRadius = constant(0), padRadius = null, startAngle = arcStartAngle, endAngle = arcEndAngle, padAngle = arcPadAngle, context = null, path = withPath(arc);
40+
function arc() {
41+
var buffer, r, r0 = +innerRadius.apply(this, arguments), r1 = +outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) - halfPi, a1 = endAngle.apply(this, arguments) - halfPi, da = abs(a1 - a0), cw = a1 > a0;
42+
if (!context)
43+
context = buffer = path();
44+
if (r1 < r0)
45+
r = r1, r1 = r0, r0 = r;
46+
if (!(r1 > epsilon))
47+
context.moveTo(0, 0);
48+
else if (da > tau - epsilon) {
49+
context.moveTo(r1 * cos(a0), r1 * sin(a0));
50+
context.arc(0, 0, r1, a0, a1, !cw);
51+
if (r0 > epsilon) {
52+
context.moveTo(r0 * cos(a1), r0 * sin(a1));
53+
context.arc(0, 0, r0, a1, a0, cw);
54+
}
55+
} else {
56+
var a01 = a0, a11 = a1, a00 = a0, a10 = a1, da0 = da, da1 = da, ap = padAngle.apply(this, arguments) / 2, rp = ap > epsilon && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)), rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)), rc0 = rc, rc1 = rc, t0, t1;
57+
if (rp > epsilon) {
58+
var p0 = asin(rp / r0 * sin(ap)), p1 = asin(rp / r1 * sin(ap));
59+
if ((da0 -= p0 * 2) > epsilon)
60+
p0 *= cw ? 1 : -1, a00 += p0, a10 -= p0;
61+
else
62+
da0 = 0, a00 = a10 = (a0 + a1) / 2;
63+
if ((da1 -= p1 * 2) > epsilon)
64+
p1 *= cw ? 1 : -1, a01 += p1, a11 -= p1;
65+
else
66+
da1 = 0, a01 = a11 = (a0 + a1) / 2;
67+
}
68+
var x01 = r1 * cos(a01), y01 = r1 * sin(a01), x10 = r0 * cos(a10), y10 = r0 * sin(a10);
69+
if (rc > epsilon) {
70+
var x11 = r1 * cos(a11), y11 = r1 * sin(a11), x00 = r0 * cos(a00), y00 = r0 * sin(a00), oc;
71+
if (da < pi) {
72+
if (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10)) {
73+
var ax = x01 - oc[0], ay = y01 - oc[1], bx = x11 - oc[0], by = y11 - oc[1], kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2), lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);
74+
rc0 = min(rc, (r0 - lc) / (kc - 1));
75+
rc1 = min(rc, (r1 - lc) / (kc + 1));
76+
} else {
77+
rc0 = rc1 = 0;
78+
}
79+
}
80+
}
81+
if (!(da1 > epsilon))
82+
context.moveTo(x01, y01);
83+
else if (rc1 > epsilon) {
84+
t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
85+
t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
86+
context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
87+
if (rc1 < rc)
88+
context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);
89+
else {
90+
context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);
91+
context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
92+
context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);
93+
}
94+
} else
95+
context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);
96+
if (!(r0 > epsilon) || !(da0 > epsilon))
97+
context.lineTo(x10, y10);
98+
else if (rc0 > epsilon) {
99+
t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
100+
t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
101+
context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
102+
if (rc0 < rc)
103+
context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);
104+
else {
105+
context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);
106+
context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);
107+
context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);
108+
}
109+
} else
110+
context.arc(0, 0, r0, a10, a00, cw);
111+
}
112+
context.closePath();
113+
if (buffer)
114+
return context = null, buffer + "" || null;
115+
}
116+
arc.centroid = function() {
117+
var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;
118+
return [cos(a) * r, sin(a) * r];
119+
};
120+
arc.innerRadius = function(_) {
121+
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant(+_), arc) : innerRadius;
122+
};
123+
arc.outerRadius = function(_) {
124+
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant(+_), arc) : outerRadius;
125+
};
126+
arc.cornerRadius = function(_) {
127+
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant(+_), arc) : cornerRadius;
128+
};
129+
arc.padRadius = function(_) {
130+
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant(+_), arc) : padRadius;
131+
};
132+
arc.startAngle = function(_) {
133+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant(+_), arc) : startAngle;
134+
};
135+
arc.endAngle = function(_) {
136+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant(+_), arc) : endAngle;
137+
};
138+
arc.padAngle = function(_) {
139+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant(+_), arc) : padAngle;
140+
};
141+
arc.context = function(_) {
142+
return arguments.length ? (context = _ == null ? null : _, arc) : context;
143+
};
144+
return arc;
145+
}
146+
export {
147+
d3arc as d
148+
};
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
import { w as ln, c as S } from "./path-428ebac9.js";
2+
import { at as an, au as G, av as D, aw as rn, ax as y, U as tn, ay as K, az as _, aA as un, aB as o, aC as sn, aD as on, aE as fn } from "./mermaid-a09fe7cd.js";
3+
function cn(l) {
4+
return l.innerRadius;
5+
}
6+
function yn(l) {
7+
return l.outerRadius;
8+
}
9+
function gn(l) {
10+
return l.startAngle;
11+
}
12+
function mn(l) {
13+
return l.endAngle;
14+
}
15+
function pn(l) {
16+
return l && l.padAngle;
17+
}
18+
function dn(l, h, z, E, v, A, U, a) {
19+
var B = z - l, i = E - h, n = U - v, m = a - A, r = m * B - n * i;
20+
if (!(r * r < y))
21+
return r = (n * (h - A) - m * (l - v)) / r, [l + r * B, h + r * i];
22+
}
23+
function W(l, h, z, E, v, A, U) {
24+
var a = l - z, B = h - E, i = (U ? A : -A) / K(a * a + B * B), n = i * B, m = -i * a, r = l + n, s = h + m, f = z + n, c = E + m, j = (r + f) / 2, t = (s + c) / 2, p = f - r, g = c - s, R = p * p + g * g, T = v - A, w = r * c - f * s, C = (g < 0 ? -1 : 1) * K(fn(0, T * T * R - w * w)), I = (w * g - p * C) / R, O = (-w * p - g * C) / R, P = (w * g + p * C) / R, d = (-w * p + g * C) / R, x = I - j, e = O - t, u = P - j, F = d - t;
25+
return x * x + e * e > u * u + F * F && (I = P, O = d), {
26+
cx: I,
27+
cy: O,
28+
x01: -n,
29+
y01: -m,
30+
x11: I * (v / T - 1),
31+
y11: O * (v / T - 1)
32+
};
33+
}
34+
function vn() {
35+
var l = cn, h = yn, z = S(0), E = null, v = gn, A = mn, U = pn, a = null, B = ln(i);
36+
function i() {
37+
var n, m, r = +l.apply(this, arguments), s = +h.apply(this, arguments), f = v.apply(this, arguments) - rn, c = A.apply(this, arguments) - rn, j = un(c - f), t = c > f;
38+
if (a || (a = n = B()), s < r && (m = s, s = r, r = m), !(s > y))
39+
a.moveTo(0, 0);
40+
else if (j > tn - y)
41+
a.moveTo(s * G(f), s * D(f)), a.arc(0, 0, s, f, c, !t), r > y && (a.moveTo(r * G(c), r * D(c)), a.arc(0, 0, r, c, f, t));
42+
else {
43+
var p = f, g = c, R = f, T = c, w = j, C = j, I = U.apply(this, arguments) / 2, O = I > y && (E ? +E.apply(this, arguments) : K(r * r + s * s)), P = _(un(s - r) / 2, +z.apply(this, arguments)), d = P, x = P, e, u;
44+
if (O > y) {
45+
var F = sn(O / r * D(I)), L = sn(O / s * D(I));
46+
(w -= F * 2) > y ? (F *= t ? 1 : -1, R += F, T -= F) : (w = 0, R = T = (f + c) / 2), (C -= L * 2) > y ? (L *= t ? 1 : -1, p += L, g -= L) : (C = 0, p = g = (f + c) / 2);
47+
}
48+
var H = s * G(p), J = s * D(p), M = r * G(T), N = r * D(T);
49+
if (P > y) {
50+
var Q = s * G(g), V = s * D(g), X = r * G(R), Y = r * D(R), q;
51+
if (j < an)
52+
if (q = dn(H, J, X, Y, Q, V, M, N)) {
53+
var Z = H - q[0], $ = J - q[1], k = Q - q[0], b = V - q[1], nn = 1 / D(on((Z * k + $ * b) / (K(Z * Z + $ * $) * K(k * k + b * b))) / 2), en = K(q[0] * q[0] + q[1] * q[1]);
54+
d = _(P, (r - en) / (nn - 1)), x = _(P, (s - en) / (nn + 1));
55+
} else
56+
d = x = 0;
57+
}
58+
C > y ? x > y ? (e = W(X, Y, H, J, s, x, t), u = W(Q, V, M, N, s, x, t), a.moveTo(e.cx + e.x01, e.cy + e.y01), x < P ? a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(u.y01, u.x01), !t) : (a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, s, o(e.cy + e.y11, e.cx + e.x11), o(u.cy + u.y11, u.cx + u.x11), !t), a.arc(u.cx, u.cy, x, o(u.y11, u.x11), o(u.y01, u.x01), !t))) : (a.moveTo(H, J), a.arc(0, 0, s, p, g, !t)) : a.moveTo(H, J), !(r > y) || !(w > y) ? a.lineTo(M, N) : d > y ? (e = W(M, N, Q, V, r, -d, t), u = W(H, J, X, Y, r, -d, t), a.lineTo(e.cx + e.x01, e.cy + e.y01), d < P ? a.arc(e.cx, e.cy, d, o(e.y01, e.x01), o(u.y01, u.x01), !t) : (a.arc(e.cx, e.cy, d, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, r, o(e.cy + e.y11, e.cx + e.x11), o(u.cy + u.y11, u.cx + u.x11), t), a.arc(u.cx, u.cy, d, o(u.y11, u.x11), o(u.y01, u.x01), !t))) : a.arc(0, 0, r, T, R, t);
59+
}
60+
if (a.closePath(), n)
61+
return a = null, n + "" || null;
62+
}
63+
return i.centroid = function() {
64+
var n = (+l.apply(this, arguments) + +h.apply(this, arguments)) / 2, m = (+v.apply(this, arguments) + +A.apply(this, arguments)) / 2 - an / 2;
65+
return [G(m) * n, D(m) * n];
66+
}, i.innerRadius = function(n) {
67+
return arguments.length ? (l = typeof n == "function" ? n : S(+n), i) : l;
68+
}, i.outerRadius = function(n) {
69+
return arguments.length ? (h = typeof n == "function" ? n : S(+n), i) : h;
70+
}, i.cornerRadius = function(n) {
71+
return arguments.length ? (z = typeof n == "function" ? n : S(+n), i) : z;
72+
}, i.padRadius = function(n) {
73+
return arguments.length ? (E = n == null ? null : typeof n == "function" ? n : S(+n), i) : E;
74+
}, i.startAngle = function(n) {
75+
return arguments.length ? (v = typeof n == "function" ? n : S(+n), i) : v;
76+
}, i.endAngle = function(n) {
77+
return arguments.length ? (A = typeof n == "function" ? n : S(+n), i) : A;
78+
}, i.padAngle = function(n) {
79+
return arguments.length ? (U = typeof n == "function" ? n : S(+n), i) : U;
80+
}, i.context = function(n) {
81+
return arguments.length ? (a = n ?? null, i) : a;
82+
}, i;
83+
}
84+
export {
85+
vn as d
86+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function t(r) {
2+
return typeof r == "object" && "length" in r ? r : Array.from(r);
3+
}
4+
export {
5+
t as a
6+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function array(x) {
2+
return typeof x === "object" && "length" in x ? x : Array.from(x);
3+
}
4+
export {
5+
array as a
6+
};

0 commit comments

Comments
 (0)