smart-chat-asp 1.0.10 → 1.0.11-alpha
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/lib/arc-82b5f84b.mjs +86 -0
- package/lib/{blockDiagram-38ab4fdb-449b8fdd.mjs → blockDiagram-68f4deed-105bd34d.mjs} +47 -47
- package/lib/{c4Diagram-3d4e48cf-43a0121a.mjs → c4Diagram-15b5d702-42b67bb9.mjs} +58 -58
- package/lib/channel-10e04cda.mjs +5 -0
- package/lib/{classDiagram-70f12bd4-d11f6b06.mjs → classDiagram-d40c83e7-362a6c94.mjs} +8 -8
- package/lib/{classDiagram-v2-f2320105-70b121f7.mjs → classDiagram-v2-d5a6b087-48362dbe.mjs} +19 -19
- package/lib/{clone-70f44b9f.mjs → clone-4b48de85.mjs} +1 -1
- package/lib/{createText-2e5e7dd3-6d3f1c3e.mjs → createText-d213de94-1789b472.mjs} +243 -240
- package/lib/{edges-e0da2a9e-5303f0b0.mjs → edges-332bd1c7-7aafddd3.mjs} +335 -330
- package/lib/{erDiagram-9861fffd-4b39b3f1.mjs → erDiagram-880f2ed8-fed7e4c8.mjs} +23 -23
- package/lib/{flowDb-956e92f1-f90bd8de.mjs → flowDb-7c981674-055e0d96.mjs} +154 -154
- package/lib/{flowDiagram-66a62f08-8aa711e1.mjs → flowDiagram-cbd28bf7-1ce62dc8.mjs} +42 -42
- package/lib/flowDiagram-v2-ffc7f31a-95dd2a99.mjs +26 -0
- package/lib/{flowchart-elk-definition-4a651766-40964a2e.mjs → flowchart-elk-definition-36e2d292-42946ba0.mjs} +5 -5
- package/lib/{ganttDiagram-c361ad54-97d2f194.mjs → ganttDiagram-04f9e578-e7e05fdb.mjs} +218 -218
- package/lib/{gitGraphDiagram-72cf32ee-14368b9d.mjs → gitGraphDiagram-21fc4d3e-74a61fef.mjs} +72 -72
- package/lib/{graph-5f0d8954.mjs → graph-75999f58.mjs} +31 -31
- package/lib/{index-3862675e-a13de8e2.mjs → index-6079d271-ea6c3891.mjs} +15 -15
- package/lib/{infoDiagram-f8f76790-057941ef.mjs → infoDiagram-4a4f5b27-0d7de167.mjs} +8 -8
- package/lib/{journeyDiagram-49397b02-7cf05a1a.mjs → journeyDiagram-29694f62-0e18b05d.mjs} +36 -36
- package/lib/layout-53df66fe.mjs +1525 -0
- package/lib/{lib-bd1f971f.mjs → lib-27e4b018.mjs} +30121 -40365
- package/lib/{line-8f4d5321.mjs → line-371a7c5d.mjs} +6 -6
- package/lib/{linear-6530fb22.mjs → linear-07b66961.mjs} +34 -34
- package/lib/{mindmap-definition-fc14e90a-73765745.mjs → mindmap-definition-ac74a2e8-f141b3e7.mjs} +7824 -7718
- package/lib/{pieDiagram-8a3498a8-d0e84895.mjs → pieDiagram-421022e6-d230f460.mjs} +30 -30
- package/lib/{quadrantDiagram-120e2f19-d8639de9.mjs → quadrantDiagram-0957ecba-d0cabed5.mjs} +20 -20
- package/lib/{requirementDiagram-deff3bca-e20e38d6.mjs → requirementDiagram-23d650b8-8d9a929b.mjs} +94 -94
- package/lib/{sankeyDiagram-04a897e0-606915c4.mjs → sankeyDiagram-23345273-82f8a55a.mjs} +75 -75
- package/lib/{sequenceDiagram-704730f1-11955f6d.mjs → sequenceDiagram-17ac3bff-266eddad.mjs} +223 -223
- package/lib/smart-chat.es.js +1 -1
- package/lib/{stateDiagram-587899a1-97051aae.mjs → stateDiagram-9c5f0230-59f0dd1a.mjs} +14 -14
- package/lib/{stateDiagram-v2-d93cdb3a-23e501dd.mjs → stateDiagram-v2-51a3dcff-32afdae9.mjs} +27 -27
- package/lib/style.css +1 -1
- package/lib/{styles-c10674c1-0f8db959.mjs → styles-2ab5d517-dce69c23.mjs} +26 -23
- package/lib/{styles-9a916d00-43460b57.mjs → styles-5f03d8d2-c250586e.mjs} +31 -31
- package/lib/{styles-6aaf32cf-a1dc6096.mjs → styles-edf9a4b0-bf19d3be.mjs} +10 -10
- package/lib/{svgDrawCommon-08f97a94-ab89f24a.mjs → svgDrawCommon-3ba9043b-459b72ab.mjs} +3 -3
- package/lib/{timeline-definition-85554ec2-2ab5c8ff.mjs → timeline-definition-7e6b55e7-9460f1c6.mjs} +110 -110
- package/lib/{xychartDiagram-e933f94c-263c39ad.mjs → xychartDiagram-b6496bcd-e1c7fd2d.mjs} +4 -4
- package/package.json +5 -2
- package/lib/arc-7f7c21f8.mjs +0 -86
- package/lib/channel-9ed698f2.mjs +0 -5
- package/lib/flowDiagram-v2-96b9c2cf-bc286193.mjs +0 -26
- package/lib/index-d269dd77.mjs +0 -1507
- package/lib/layout-08e639dc.mjs +0 -1495
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { w as ln, c as L } from "./path-428ebac9.mjs";
|
|
2
|
+
import { aI as an, aJ as V, aK as I, aL as rn, aM as y, V as on, aN as B, aO as _, aP as un, aQ as t, aR as sn, aS as tn, aT as fn } from "./lib-27e4b018.mjs";
|
|
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, q, O, v, R, M, a) {
|
|
19
|
+
var D = q - l, i = O - h, n = M - v, m = a - R, r = m * D - n * i;
|
|
20
|
+
if (!(r * r < y))
|
|
21
|
+
return r = (n * (h - R) - m * (l - v)) / r, [l + r * D, h + r * i];
|
|
22
|
+
}
|
|
23
|
+
function W(l, h, q, O, v, R, M) {
|
|
24
|
+
var a = l - q, D = h - O, i = (M ? R : -R) / B(a * a + D * D), n = i * D, m = -i * a, r = l + n, s = h + m, f = q + n, c = O + m, N = (r + f) / 2, o = (s + c) / 2, p = f - r, g = c - s, A = p * p + g * g, T = v - R, P = r * c - f * s, E = (g < 0 ? -1 : 1) * B(fn(0, T * T * A - P * P)), J = (P * g - p * E) / A, K = (-P * p - g * E) / A, w = (P * g + p * E) / A, d = (-P * p + g * E) / A, x = J - N, e = K - o, u = w - N, Q = d - o;
|
|
25
|
+
return x * x + e * e > u * u + Q * Q && (J = w, K = d), {
|
|
26
|
+
cx: J,
|
|
27
|
+
cy: K,
|
|
28
|
+
x01: -n,
|
|
29
|
+
y01: -m,
|
|
30
|
+
x11: J * (v / T - 1),
|
|
31
|
+
y11: K * (v / T - 1)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function vn() {
|
|
35
|
+
var l = cn, h = yn, q = L(0), O = null, v = gn, R = mn, M = pn, a = null, D = 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 = R.apply(this, arguments) - rn, N = un(c - f), o = c > f;
|
|
38
|
+
if (a || (a = n = D()), s < r && (m = s, s = r, r = m), !(s > y))
|
|
39
|
+
a.moveTo(0, 0);
|
|
40
|
+
else if (N > on - y)
|
|
41
|
+
a.moveTo(s * V(f), s * I(f)), a.arc(0, 0, s, f, c, !o), r > y && (a.moveTo(r * V(c), r * I(c)), a.arc(0, 0, r, c, f, o));
|
|
42
|
+
else {
|
|
43
|
+
var p = f, g = c, A = f, T = c, P = N, E = N, J = M.apply(this, arguments) / 2, K = J > y && (O ? +O.apply(this, arguments) : B(r * r + s * s)), w = _(un(s - r) / 2, +q.apply(this, arguments)), d = w, x = w, e, u;
|
|
44
|
+
if (K > y) {
|
|
45
|
+
var Q = sn(K / r * I(J)), C = sn(K / s * I(J));
|
|
46
|
+
(P -= Q * 2) > y ? (Q *= o ? 1 : -1, A += Q, T -= Q) : (P = 0, A = T = (f + c) / 2), (E -= C * 2) > y ? (C *= o ? 1 : -1, p += C, g -= C) : (E = 0, p = g = (f + c) / 2);
|
|
47
|
+
}
|
|
48
|
+
var j = s * V(p), z = s * I(p), F = r * V(T), G = r * I(T);
|
|
49
|
+
if (w > y) {
|
|
50
|
+
var H = s * V(g), U = s * I(g), X = r * V(A), Y = r * I(A), S;
|
|
51
|
+
if (N < an)
|
|
52
|
+
if (S = dn(j, z, X, Y, H, U, F, G)) {
|
|
53
|
+
var Z = j - S[0], $ = z - S[1], k = H - S[0], b = U - S[1], nn = 1 / I(tn((Z * k + $ * b) / (B(Z * Z + $ * $) * B(k * k + b * b))) / 2), en = B(S[0] * S[0] + S[1] * S[1]);
|
|
54
|
+
d = _(w, (r - en) / (nn - 1)), x = _(w, (s - en) / (nn + 1));
|
|
55
|
+
} else
|
|
56
|
+
d = x = 0;
|
|
57
|
+
}
|
|
58
|
+
E > y ? x > y ? (e = W(X, Y, j, z, s, x, o), u = W(H, U, F, G, s, x, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), x < w ? a.arc(e.cx, e.cy, x, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, x, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, s, 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, x, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : (a.moveTo(j, z), a.arc(0, 0, s, p, g, !o)) : a.moveTo(j, z), !(r > y) || !(P > y) ? a.lineTo(F, G) : d > y ? (e = W(F, G, H, U, r, -d, o), u = W(j, z, X, Y, r, -d, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), d < w ? a.arc(e.cx, e.cy, d, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, d, 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, d, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : a.arc(0, 0, r, T, A, o);
|
|
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) + +R.apply(this, arguments)) / 2 - an / 2;
|
|
65
|
+
return [V(m) * n, I(m) * n];
|
|
66
|
+
}, i.innerRadius = function(n) {
|
|
67
|
+
return arguments.length ? (l = typeof n == "function" ? n : L(+n), i) : l;
|
|
68
|
+
}, i.outerRadius = function(n) {
|
|
69
|
+
return arguments.length ? (h = typeof n == "function" ? n : L(+n), i) : h;
|
|
70
|
+
}, i.cornerRadius = function(n) {
|
|
71
|
+
return arguments.length ? (q = typeof n == "function" ? n : L(+n), i) : q;
|
|
72
|
+
}, i.padRadius = function(n) {
|
|
73
|
+
return arguments.length ? (O = n == null ? null : typeof n == "function" ? n : L(+n), i) : O;
|
|
74
|
+
}, i.startAngle = function(n) {
|
|
75
|
+
return arguments.length ? (v = typeof n == "function" ? n : L(+n), i) : v;
|
|
76
|
+
}, i.endAngle = function(n) {
|
|
77
|
+
return arguments.length ? (R = typeof n == "function" ? n : L(+n), i) : R;
|
|
78
|
+
}, i.padAngle = function(n) {
|
|
79
|
+
return arguments.length ? (M = typeof n == "function" ? n : L(+n), i) : M;
|
|
80
|
+
}, i.context = function(n) {
|
|
81
|
+
return arguments.length ? (a = n ?? null, i) : a;
|
|
82
|
+
}, i;
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
vn as a
|
|
86
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as Ne } from "./clone-
|
|
3
|
-
import { i as ke, c as Ie, b as Oe, d as Te, a as ge, p as ze } from "./edges-
|
|
4
|
-
import { G as Ce } from "./graph-
|
|
1
|
+
import { c as he, _ as se, h as H, i as Ee, l as S, E as ye, B as we, j as De, o as ve } from "./lib-27e4b018.mjs";
|
|
2
|
+
import { c as Ne } from "./clone-4b48de85.mjs";
|
|
3
|
+
import { i as ke, c as Ie, b as Oe, d as Te, a as ge, p as ze } from "./edges-332bd1c7-7aafddd3.mjs";
|
|
4
|
+
import { G as Ce } from "./graph-75999f58.mjs";
|
|
5
5
|
import { o as Ae } from "./ordinal-980380c7.mjs";
|
|
6
6
|
import { s as Re } from "./Tableau10-2ff7471d.mjs";
|
|
7
|
-
import { c as Be } from "./channel-
|
|
7
|
+
import { c as Be } from "./channel-10e04cda.mjs";
|
|
8
8
|
import "vue";
|
|
9
|
-
import "./createText-
|
|
10
|
-
import "./line-
|
|
9
|
+
import "./createText-d213de94-1789b472.mjs";
|
|
10
|
+
import "./line-371a7c5d.mjs";
|
|
11
11
|
import "./array-2ff2c7a6.mjs";
|
|
12
12
|
import "./path-428ebac9.mjs";
|
|
13
13
|
import "./init-f9637058.mjs";
|
|
@@ -16,7 +16,7 @@ var le, oe, ee = function() {
|
|
|
16
16
|
for (s = s || {}, i = D.length; i--; s[D[i]] = o)
|
|
17
17
|
;
|
|
18
18
|
return s;
|
|
19
|
-
}, a = [1, 7], d = [1, 13], c = [1, 14], n = [1, 15], g = [1, 19], l = [1, 16], f = [1, 17], b = [1, 18], p = [8, 30], x = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47],
|
|
19
|
+
}, a = [1, 7], d = [1, 13], c = [1, 14], n = [1, 15], g = [1, 19], l = [1, 16], f = [1, 17], b = [1, 18], p = [8, 30], x = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47], E = [1, 23], T = [1, 24], v = [8, 15, 16, 21, 28, 29, 30, 31, 32, 40, 44, 47], N = [8, 15, 16, 21, 27, 28, 29, 30, 31, 32, 40, 44, 47], y = [1, 49], L = {
|
|
20
20
|
trace: function() {
|
|
21
21
|
},
|
|
22
22
|
yy: {},
|
|
@@ -122,7 +122,7 @@ var le, oe, ee = function() {
|
|
|
122
122
|
break;
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
|
-
table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }, { 8: [1, 20] }, e(p, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: a, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }), e(x, [2, 16], { 14: 22, 15:
|
|
125
|
+
table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }, { 8: [1, 20] }, e(p, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: a, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }), e(x, [2, 16], { 14: 22, 15: E, 16: T }), e(x, [2, 17]), e(x, [2, 18]), e(x, [2, 19]), e(x, [2, 20]), e(x, [2, 21]), e(x, [2, 22]), e(v, [2, 25], { 27: [1, 25] }), e(x, [2, 26]), { 19: 26, 26: 12, 32: g }, { 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }, { 41: [1, 28], 43: [1, 29] }, { 45: [1, 30] }, { 48: [1, 31] }, e(N, [2, 29], { 33: 32, 36: [1, 33], 38: [1, 34] }), { 1: [2, 7] }, e(p, [2, 13]), { 26: 35, 32: g }, { 32: [2, 14] }, { 17: [1, 36] }, e(v, [2, 24]), { 11: 37, 13: 4, 14: 22, 15: E, 16: T, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: d, 29: c, 31: n, 32: g, 40: l, 44: f, 47: b }, { 30: [1, 38] }, { 42: [1, 39] }, { 42: [1, 40] }, { 46: [1, 41] }, { 49: [1, 42] }, e(N, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(v, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(x, [2, 28]), e(x, [2, 35]), e(x, [2, 36]), e(x, [2, 37]), e(x, [2, 38]), { 37: [1, 47] }, { 34: 48, 35: y }, { 15: [1, 50] }, e(x, [2, 27]), e(N, [2, 33]), { 39: [1, 51] }, { 34: 52, 35: y, 39: [2, 31] }, { 32: [2, 15] }, e(N, [2, 34]), { 39: [2, 32] }],
|
|
126
126
|
defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
|
|
127
127
|
parseError: function(o, s) {
|
|
128
128
|
if (s.recoverable)
|
|
@@ -609,12 +609,12 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : $ = "
|
|
|
609
609
|
}();
|
|
610
610
|
ee.parser = ee;
|
|
611
611
|
const Pe = ee;
|
|
612
|
-
let O = {}, ie = [],
|
|
612
|
+
let O = {}, ie = [], j = {};
|
|
613
613
|
const ce = "color", ue = "fill", Fe = "bgFill", pe = ",", Ke = he();
|
|
614
|
-
let
|
|
614
|
+
let V = {};
|
|
615
615
|
const Me = (e) => De.sanitizeText(e, Ke), Ye = function(e, a = "") {
|
|
616
|
-
|
|
617
|
-
const d =
|
|
616
|
+
V[e] === void 0 && (V[e] = { id: e, styles: [], textStyles: [] });
|
|
617
|
+
const d = V[e];
|
|
618
618
|
a != null && a.split(pe).forEach((c) => {
|
|
619
619
|
const n = c.replace(/([^;]*);/, "$1").trim();
|
|
620
620
|
if (c.match(ce)) {
|
|
@@ -626,7 +626,7 @@ const Me = (e) => De.sanitizeText(e, Ke), Ye = function(e, a = "") {
|
|
|
626
626
|
}, We = function(e, a = "") {
|
|
627
627
|
const d = O[e];
|
|
628
628
|
a != null && (d.styles = a.split(pe));
|
|
629
|
-
},
|
|
629
|
+
}, je = function(e, a) {
|
|
630
630
|
e.split(",").forEach(function(d) {
|
|
631
631
|
let c = O[d];
|
|
632
632
|
if (c === void 0) {
|
|
@@ -643,7 +643,7 @@ const Me = (e) => De.sanitizeText(e, Ke), Ye = function(e, a = "") {
|
|
|
643
643
|
continue;
|
|
644
644
|
}
|
|
645
645
|
if (n.type === "applyClass") {
|
|
646
|
-
|
|
646
|
+
je(n.id, (n == null ? void 0 : n.styleClass) || "");
|
|
647
647
|
continue;
|
|
648
648
|
}
|
|
649
649
|
if (n.type === "applyStyles") {
|
|
@@ -653,7 +653,7 @@ const Me = (e) => De.sanitizeText(e, Ke), Ye = function(e, a = "") {
|
|
|
653
653
|
if (n.type === "column-setting")
|
|
654
654
|
a.columns = n.columns || -1;
|
|
655
655
|
else if (n.type === "edge")
|
|
656
|
-
|
|
656
|
+
j[n.id] ? j[n.id]++ : j[n.id] = 1, n.id = j[n.id] + "-" + n.id, ie.push(n);
|
|
657
657
|
else {
|
|
658
658
|
n.label || (n.type === "composite" ? n.label = "" : n.label = n.id);
|
|
659
659
|
const g = !O[n.id];
|
|
@@ -670,8 +670,8 @@ const Me = (e) => De.sanitizeText(e, Ke), Ye = function(e, a = "") {
|
|
|
670
670
|
a.children = c;
|
|
671
671
|
};
|
|
672
672
|
let re = [], U = { id: "root", type: "composite", children: [], columns: -1 };
|
|
673
|
-
const
|
|
674
|
-
S.debug("Clear called"),
|
|
673
|
+
const Ve = () => {
|
|
674
|
+
S.debug("Clear called"), ye(), U = { id: "root", type: "composite", children: [], columns: -1 }, O = { root: U }, re = [], V = {}, ie = [], j = {};
|
|
675
675
|
};
|
|
676
676
|
function Ue(e) {
|
|
677
677
|
switch (S.debug("typeStr2Type", e), e) {
|
|
@@ -736,7 +736,7 @@ const He = () => (de++, "id-" + Math.random().toString(36).substr(2, 12) + "-" +
|
|
|
736
736
|
}, Je = () => [...Object.values(O)], Qe = () => re || [], $e = () => ie, et = (e) => O[e], tt = (e) => {
|
|
737
737
|
O[e.id] = e;
|
|
738
738
|
}, st = () => console, it = function() {
|
|
739
|
-
return
|
|
739
|
+
return V;
|
|
740
740
|
}, rt = {
|
|
741
741
|
getConfig: () => se().block,
|
|
742
742
|
typeStr2Type: Ue,
|
|
@@ -751,7 +751,7 @@ const He = () => (de++, "id-" + Math.random().toString(36).substr(2, 12) + "-" +
|
|
|
751
751
|
setBlock: tt,
|
|
752
752
|
getColumns: Ze,
|
|
753
753
|
getClasses: it,
|
|
754
|
-
clear:
|
|
754
|
+
clear: Ve,
|
|
755
755
|
generateId: He
|
|
756
756
|
}, nt = rt, q = (e, a) => {
|
|
757
757
|
const d = Be, c = d(e, "r"), n = d(e, "g"), g = d(e, "b");
|
|
@@ -936,15 +936,15 @@ function be(e, a, d = !1) {
|
|
|
936
936
|
default:
|
|
937
937
|
p = "rect";
|
|
938
938
|
}
|
|
939
|
-
const
|
|
939
|
+
const E = ve((l == null ? void 0 : l.styles) || []), T = l.label, v = l.size || { width: 0, height: 0, x: 0, y: 0 };
|
|
940
940
|
return {
|
|
941
|
-
labelStyle:
|
|
941
|
+
labelStyle: E.labelStyle,
|
|
942
942
|
shape: p,
|
|
943
943
|
labelText: T,
|
|
944
944
|
rx: b,
|
|
945
945
|
ry: b,
|
|
946
946
|
class: f,
|
|
947
|
-
style:
|
|
947
|
+
style: E.style,
|
|
948
948
|
id: l.id,
|
|
949
949
|
directions: l.directions,
|
|
950
950
|
width: v.width,
|
|
@@ -1000,7 +1000,7 @@ async function ht(e, a, d, c, n) {
|
|
|
1000
1000
|
if (l.start && l.end) {
|
|
1001
1001
|
const f = c.getBlock(l.start), b = c.getBlock(l.end);
|
|
1002
1002
|
if (f != null && f.size && (b != null && b.size)) {
|
|
1003
|
-
const p = f.size, x = b.size,
|
|
1003
|
+
const p = f.size, x = b.size, E = [
|
|
1004
1004
|
{ x: p.x, y: p.y },
|
|
1005
1005
|
{ x: p.x + (x.x - p.x) / 2, y: p.y + (x.y - p.y) / 2 },
|
|
1006
1006
|
{ x: x.x, y: x.y }
|
|
@@ -1012,7 +1012,7 @@ async function ht(e, a, d, c, n) {
|
|
|
1012
1012
|
...l,
|
|
1013
1013
|
arrowTypeEnd: l.arrowTypeEnd,
|
|
1014
1014
|
arrowTypeStart: l.arrowTypeStart,
|
|
1015
|
-
points:
|
|
1015
|
+
points: E,
|
|
1016
1016
|
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
1017
1017
|
},
|
|
1018
1018
|
void 0,
|
|
@@ -1025,12 +1025,12 @@ async function ht(e, a, d, c, n) {
|
|
|
1025
1025
|
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
1026
1026
|
arrowTypeEnd: l.arrowTypeEnd,
|
|
1027
1027
|
arrowTypeStart: l.arrowTypeStart,
|
|
1028
|
-
points:
|
|
1028
|
+
points: E,
|
|
1029
1029
|
classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
|
|
1030
1030
|
}), await Te(
|
|
1031
|
-
{ ...l, x:
|
|
1031
|
+
{ ...l, x: E[1].x, y: E[1].y },
|
|
1032
1032
|
{
|
|
1033
|
-
originalPath:
|
|
1033
|
+
originalPath: E
|
|
1034
1034
|
}
|
|
1035
1035
|
));
|
|
1036
1036
|
}
|
|
@@ -1070,7 +1070,7 @@ const pt = (e) => {
|
|
|
1070
1070
|
return { width: a, height: d };
|
|
1071
1071
|
};
|
|
1072
1072
|
function te(e, a, d = 0, c = 0) {
|
|
1073
|
-
var n, g, l, f, b, p, x,
|
|
1073
|
+
var n, g, l, f, b, p, x, E, T, v, N;
|
|
1074
1074
|
S.debug(
|
|
1075
1075
|
"setBlockSizes abc95 (start)",
|
|
1076
1076
|
e.id,
|
|
@@ -1085,20 +1085,20 @@ function te(e, a, d = 0, c = 0) {
|
|
|
1085
1085
|
x: 0,
|
|
1086
1086
|
y: 0
|
|
1087
1087
|
});
|
|
1088
|
-
let
|
|
1088
|
+
let y = 0, L = 0;
|
|
1089
1089
|
if (((l = e.children) == null ? void 0 : l.length) > 0) {
|
|
1090
1090
|
for (const h of e.children)
|
|
1091
1091
|
te(h, a);
|
|
1092
1092
|
const A = pt(e);
|
|
1093
|
-
|
|
1093
|
+
y = A.width, L = A.height, S.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", y, L);
|
|
1094
1094
|
for (const h of e.children)
|
|
1095
1095
|
h.size && (S.debug(
|
|
1096
|
-
`abc95 Setting size of children of ${e.id} id=${h.id} ${
|
|
1097
|
-
), h.size.width =
|
|
1098
|
-
`abc95 updating size of ${e.id} children child:${h.id} maxWidth:${
|
|
1096
|
+
`abc95 Setting size of children of ${e.id} id=${h.id} ${y} ${L} ${h.size}`
|
|
1097
|
+
), h.size.width = y * (h.widthInColumns || 1) + _ * ((h.widthInColumns || 1) - 1), h.size.height = L, h.size.x = 0, h.size.y = 0, S.debug(
|
|
1098
|
+
`abc95 updating size of ${e.id} children child:${h.id} maxWidth:${y} maxHeight:${L}`
|
|
1099
1099
|
));
|
|
1100
1100
|
for (const h of e.children)
|
|
1101
|
-
te(h, a,
|
|
1101
|
+
te(h, a, y, L);
|
|
1102
1102
|
const k = e.columns || -1;
|
|
1103
1103
|
let D = 0;
|
|
1104
1104
|
for (const h of e.children)
|
|
@@ -1106,13 +1106,13 @@ function te(e, a, d = 0, c = 0) {
|
|
|
1106
1106
|
let o = e.children.length;
|
|
1107
1107
|
k > 0 && k < D && (o = k), e.widthInColumns;
|
|
1108
1108
|
const s = Math.ceil(D / o);
|
|
1109
|
-
let i = o * (
|
|
1109
|
+
let i = o * (y + _) + _, u = s * (L + _) + _;
|
|
1110
1110
|
if (i < d) {
|
|
1111
1111
|
S.debug(
|
|
1112
1112
|
`Detected to small siebling: abc95 ${e.id} sieblingWidth ${d} sieblingHeight ${c} width ${i}`
|
|
1113
1113
|
), i = d, u = c;
|
|
1114
1114
|
const h = (d - o * _ - _) / o, t = (c - s * _ - _) / s;
|
|
1115
|
-
S.debug("Size indata abc88", e.id, "childWidth", h, "maxWidth",
|
|
1115
|
+
S.debug("Size indata abc88", e.id, "childWidth", h, "maxWidth", y), S.debug("Size indata abc88", e.id, "childHeight", t, "maxHeight", L), S.debug("Size indata abc88 xSize", o, "padding", _);
|
|
1116
1116
|
for (const m of e.children)
|
|
1117
1117
|
m.size && (m.size.width = h, m.size.height = t, m.size.x = 0, m.size.y = 0);
|
|
1118
1118
|
}
|
|
@@ -1138,14 +1138,14 @@ function te(e, a, d = 0, c = 0) {
|
|
|
1138
1138
|
S.debug(
|
|
1139
1139
|
"setBlockSizes abc94 (done)",
|
|
1140
1140
|
e.id,
|
|
1141
|
-
(
|
|
1141
|
+
(E = e == null ? void 0 : e.size) == null ? void 0 : E.x,
|
|
1142
1142
|
(T = e == null ? void 0 : e.size) == null ? void 0 : T.width,
|
|
1143
1143
|
(v = e == null ? void 0 : e.size) == null ? void 0 : v.y,
|
|
1144
1144
|
(N = e == null ? void 0 : e.size) == null ? void 0 : N.height
|
|
1145
1145
|
);
|
|
1146
1146
|
}
|
|
1147
1147
|
function xe(e, a) {
|
|
1148
|
-
var d, c, n, g, l, f, b, p, x,
|
|
1148
|
+
var d, c, n, g, l, f, b, p, x, E, T, v, N, y, L, A, k;
|
|
1149
1149
|
S.debug(
|
|
1150
1150
|
`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(d = e == null ? void 0 : e.size) == null ? void 0 : d.x} y: ${(c = e == null ? void 0 : e.size) == null ? void 0 : c.y} width: ${(n = e == null ? void 0 : e.size) == null ? void 0 : n.width}`
|
|
1151
1151
|
);
|
|
@@ -1162,8 +1162,8 @@ function xe(e, a) {
|
|
|
1162
1162
|
if (!t.size)
|
|
1163
1163
|
continue;
|
|
1164
1164
|
const { width: r, height: R } = t.size, { px: Y, py: F } = gt(D, i);
|
|
1165
|
-
if (F != h && (h = F, u = (
|
|
1166
|
-
`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${Y},${F} (${(N = m == null ? void 0 : m.size) == null ? void 0 : N.x},${(
|
|
1165
|
+
if (F != h && (h = F, u = (E = e == null ? void 0 : e.size) != null && E.x ? ((T = e == null ? void 0 : e.size) == null ? void 0 : T.x) + (-((v = e == null ? void 0 : e.size) == null ? void 0 : v.width) / 2 || 0) : -_, S.debug("New row in layout for block", e.id, " and child ", t.id, h)), S.debug(
|
|
1166
|
+
`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${Y},${F} (${(N = m == null ? void 0 : m.size) == null ? void 0 : N.x},${(y = m == null ? void 0 : m.size) == null ? void 0 : y.y}) parent: ${m.id} width: ${r}${_}`
|
|
1167
1167
|
), m.size) {
|
|
1168
1168
|
const C = r / 2;
|
|
1169
1169
|
t.size.x = u + _ + C, S.debug(
|
|
@@ -1205,12 +1205,12 @@ const bt = function(e, a) {
|
|
|
1205
1205
|
n === "sandbox" && (f = H("#i" + a));
|
|
1206
1206
|
const b = n === "sandbox" ? H(f.nodes()[0].contentDocument.body) : H("body"), p = n === "sandbox" ? b.select(`[id="${a}"]`) : H(`[id="${a}"]`);
|
|
1207
1207
|
ke(p, ["point", "circle", "cross"], c.type, a);
|
|
1208
|
-
const
|
|
1209
|
-
await ut(N,
|
|
1210
|
-
const
|
|
1211
|
-
if (await dt(N,
|
|
1212
|
-
const L =
|
|
1213
|
-
|
|
1208
|
+
const E = l.getBlocks(), T = l.getBlocksFlat(), v = l.getEdges(), N = p.insert("g").attr("class", "block");
|
|
1209
|
+
await ut(N, E, l);
|
|
1210
|
+
const y = ft(l);
|
|
1211
|
+
if (await dt(N, E, l), await ht(N, v, T, l, a), y) {
|
|
1212
|
+
const L = y, A = Math.max(1, Math.round(0.125 * (L.width / L.height))), k = L.height + A + 10, D = L.width + 10, { useMaxWidth: o } = g;
|
|
1213
|
+
Ee(p, k, D, !!o), S.debug("Here Bounds", y, L), p.attr(
|
|
1214
1214
|
"viewBox",
|
|
1215
1215
|
`${L.x - 5} ${L.y - 5} ${L.width + 10} ${L.height + 10}`
|
|
1216
1216
|
);
|