lowcoder-comps 2.4.13 → 2.4.15
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/{0fa873f8.js → 0bb0c92e.js} +4 -4
- package/{1d0578cc.js → 0cc36377.js} +919 -969
- package/{4ee1107f.js → 0fa86771.js} +411 -451
- package/{7ceb1a86.js → 19a2ee87.js} +1067 -1085
- package/{62a4e802.js → 1b41afb7.js} +6 -6
- package/{140d1965.js → 1e5b4466.js} +1 -1
- package/21ce624b.js +433 -0
- package/247d363c.js +797 -0
- package/{66d40f47.js → 2dc10e5c.js} +96 -99
- package/{48262065.js → 3a91cb5c.js} +8 -8
- package/{bfff0c9e.js → 3ebe8123.js} +26 -27
- package/{e60eb1d6.js → 3f2bde45.js} +1 -1
- package/{08ce8965.js → 4046c39a.js} +247 -258
- package/{256b619e.js → 428ebac9.js} +14 -15
- package/{f85b9955.js → 4b8936b0.js} +68 -69
- package/{722d14f3.js → 4d48e6df.js} +6 -6
- package/{93e77b54.js → 558e8ee5.js} +4 -4
- package/{d2b89014.js → 56f6e990.js} +92 -92
- package/{6c5168e9.js → 5a31cef7.js} +2 -2
- package/{7873457c.js → 5d41cf38.js} +6 -6
- package/{5d259708.js → 5fd9a898.js} +4 -5
- package/{2c7a98c7.js → 63a771ab.js} +8 -8
- package/6a32f1c1.js +206 -0
- package/{e7717e30.js → 7035666f.js} +7 -7
- package/{c840f94c.js → 74ef17ae.js} +140 -141
- package/{eeeac330.js → 7cc252e4.js} +65540 -59868
- package/81d6ce63.js +817 -0
- package/{c8211b18.js → 832e744b.js} +1 -1
- package/{81a0d6f1.js → 8718dc59.js} +12 -12
- package/{7a22ada0.js → 88953f96.js} +18 -18
- package/a8d4a50e.js +373 -0
- package/aa88392e.js +190 -0
- package/b0862b2f.js +1083 -0
- package/{62c4dc6e.js → c1b710aa.js} +5 -5
- package/{4cf9b6b3.js → d72b57c8.js} +12713 -12735
- package/{629dfdca.js → e441921a.js} +4 -4
- package/{47848c42.js → e5b014a9.js} +5 -5
- package/{b7fefb34.js → eb3bf879.js} +2 -2
- package/{febae45b.js → eb5cf40c.js} +2 -2
- package/{ddee0e99.js → edc74d11.js} +3 -3
- package/f0f41787.js +1264 -0
- package/index.js +2 -2
- package/package.json +1 -1
- package/1de1a3c9.js +0 -1102
- package/2510669f.js +0 -237
- package/68ee7280.js +0 -1276
- package/89baa2e6.js +0 -391
- package/9dc6adcd.js +0 -819
- package/ab55adad.js +0 -818
- package/c459c043.js +0 -208
- package/e47dc9ca.js +0 -455
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as Y, a as Ut, s as zt, b as Mt, d as Ht, F as Xt, G as Kt, l as D, m as ot, H as Wt, a7 as Jt } from "./
|
|
1
|
+
import { e as Y, a as Ut, s as zt, b as Mt, d as Ht, F as Xt, G as Kt, l as D, m as ot, H as Wt, a7 as Jt } from "./7cc252e4.js";
|
|
2
2
|
var gt = function() {
|
|
3
3
|
var t = function(C, r, n, i) {
|
|
4
4
|
for (n = n || {}, i = C.length; i--; n[C[i]] = r)
|
|
@@ -124,7 +124,7 @@ var gt = function() {
|
|
|
124
124
|
var n = this, i = [0], o = [], p = [null], e = [], $ = this.table, l = "", v = 0, O = 0, st = 2, B = 1, ft = e.slice.call(arguments, 1), S = Object.create(this.lexer), A = { yy: {} };
|
|
125
125
|
for (var dt in this.yy)
|
|
126
126
|
Object.prototype.hasOwnProperty.call(this.yy, dt) && (A.yy[dt] = this.yy[dt]);
|
|
127
|
-
S.setInput(r, A.yy), A.yy.lexer = S, A.yy.parser = this, typeof S.yylloc
|
|
127
|
+
S.setInput(r, A.yy), A.yy.lexer = S, A.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
|
|
128
128
|
var yt = S.yylloc;
|
|
129
129
|
e.push(yt);
|
|
130
130
|
var Gt = S.options && S.options.ranges;
|
|
@@ -134,7 +134,7 @@ var gt = function() {
|
|
|
134
134
|
return x = o.pop() || S.lex() || B, typeof x != "number" && (x instanceof Array && (o = x, x = o.pop()), x = n.symbols_[x] || x), x;
|
|
135
135
|
}
|
|
136
136
|
for (var _, L, m, pt, N = {}, it, b, Ct, rt; ; ) {
|
|
137
|
-
if (L = i[i.length - 1], this.defaultActions[L] ? m = this.defaultActions[L] : ((_ === null || typeof _
|
|
137
|
+
if (L = i[i.length - 1], this.defaultActions[L] ? m = this.defaultActions[L] : ((_ === null || typeof _ > "u") && (_ = jt()), m = $[L] && $[L][_]), typeof m > "u" || !m.length || !m[0]) {
|
|
138
138
|
var St = "";
|
|
139
139
|
rt = [];
|
|
140
140
|
for (it in $[L])
|
|
@@ -172,7 +172,7 @@ Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : St =
|
|
|
172
172
|
m[1],
|
|
173
173
|
p,
|
|
174
174
|
e
|
|
175
|
-
].concat(ft)), typeof pt
|
|
175
|
+
].concat(ft)), typeof pt < "u")
|
|
176
176
|
return pt;
|
|
177
177
|
b && (i = i.slice(0, -1 * b * 2), p = p.slice(0, -1 * b), e = e.slice(0, -1 * b)), i.push(this.productions_[m[1]][0]), p.push(N.$), e.push(N._$), Ct = $[i[i.length - 2]][i[i.length - 1]], i.push(Ct);
|
|
178
178
|
break;
|
|
@@ -603,7 +603,7 @@ const ie = {
|
|
|
603
603
|
}
|
|
604
604
|
});
|
|
605
605
|
}, I = function(t, s = Et, a = null, h = null, f = null, d = null, y = null, k = null) {
|
|
606
|
-
const u = t
|
|
606
|
+
const u = t?.trim();
|
|
607
607
|
g.states[u] === void 0 ? (D.info("Adding state ", u, h), g.states[u] = {
|
|
608
608
|
id: u,
|
|
609
609
|
descriptions: [],
|
|
@@ -689,7 +689,7 @@ const Ft = function(t, s, a) {
|
|
|
689
689
|
}, Se = () => (Lt++, "divider-id-" + Lt), Vt = function(t, s = "") {
|
|
690
690
|
P[t] === void 0 && (P[t] = { id: t, styles: [], textStyles: [] });
|
|
691
691
|
const a = P[t];
|
|
692
|
-
s
|
|
692
|
+
s?.split(se).forEach((h) => {
|
|
693
693
|
const f = h.replace(/([^;]*);/, "$1").trim();
|
|
694
694
|
if (h.match(vt)) {
|
|
695
695
|
const y = f.replace(At, ee).replace(vt, At);
|
package/21ce624b.js
ADDED
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { G as R } from "./eb3bf879.js";
|
|
2
|
+
import { S as z, y as F, z as j, A as U, B as H, q as N, l as g, r as K, e as S, m as G, t as q, u as E, p as L, j as C, C as W, v as X, D as J } from "./7cc252e4.js";
|
|
3
|
+
import { r as Q } from "./a8d4a50e.js";
|
|
4
|
+
import { c as Y } from "./1e5b4466.js";
|
|
5
|
+
function Z(e) {
|
|
6
|
+
return typeof e == "string" ? new z([document.querySelectorAll(e)], [document.documentElement]) : new z([j(e)], F);
|
|
7
|
+
}
|
|
8
|
+
function pe(e, l) {
|
|
9
|
+
return !!e.children(l).length;
|
|
10
|
+
}
|
|
11
|
+
function be(e) {
|
|
12
|
+
return A(e.v) + ":" + A(e.w) + ":" + A(e.name);
|
|
13
|
+
}
|
|
14
|
+
var O = /:/g;
|
|
15
|
+
function A(e) {
|
|
16
|
+
return e ? String(e).replace(O, "\\:") : "";
|
|
17
|
+
}
|
|
18
|
+
function ee(e, l) {
|
|
19
|
+
l && e.attr("style", l);
|
|
20
|
+
}
|
|
21
|
+
function fe(e, l, c) {
|
|
22
|
+
l && e.attr("class", l).attr("class", c + " " + e.attr("class"));
|
|
23
|
+
}
|
|
24
|
+
function ue(e, l) {
|
|
25
|
+
var c = l.graph();
|
|
26
|
+
if (U(c)) {
|
|
27
|
+
var a = c.transition;
|
|
28
|
+
if (H(a))
|
|
29
|
+
return a(e);
|
|
30
|
+
}
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
function te(e, l) {
|
|
34
|
+
var c = e.append("foreignObject").attr("width", "100000"), a = c.append("xhtml:div");
|
|
35
|
+
a.attr("xmlns", "http://www.w3.org/1999/xhtml");
|
|
36
|
+
var i = l.label;
|
|
37
|
+
switch (typeof i) {
|
|
38
|
+
case "function":
|
|
39
|
+
a.insert(i);
|
|
40
|
+
break;
|
|
41
|
+
case "object":
|
|
42
|
+
a.insert(function() {
|
|
43
|
+
return i;
|
|
44
|
+
});
|
|
45
|
+
break;
|
|
46
|
+
default:
|
|
47
|
+
a.html(i);
|
|
48
|
+
}
|
|
49
|
+
ee(a, l.labelStyle), a.style("display", "inline-block"), a.style("white-space", "nowrap");
|
|
50
|
+
var d = a.node().getBoundingClientRect();
|
|
51
|
+
return c.attr("width", d.width).attr("height", d.height), c;
|
|
52
|
+
}
|
|
53
|
+
const P = {}, re = function(e) {
|
|
54
|
+
const l = Object.keys(e);
|
|
55
|
+
for (const c of l)
|
|
56
|
+
P[c] = e[c];
|
|
57
|
+
}, V = async function(e, l, c, a, i, d) {
|
|
58
|
+
const u = a.select(`[id="${c}"]`), n = Object.keys(e);
|
|
59
|
+
for (const p of n) {
|
|
60
|
+
const r = e[p];
|
|
61
|
+
let y = "default";
|
|
62
|
+
r.classes.length > 0 && (y = r.classes.join(" ")), y = y + " flowchart-label";
|
|
63
|
+
const w = N(r.styles);
|
|
64
|
+
let t = r.text !== void 0 ? r.text : r.id, s;
|
|
65
|
+
if (g.info("vertex", r, r.labelType), r.labelType === "markdown")
|
|
66
|
+
g.info("vertex", r, r.labelType);
|
|
67
|
+
else if (K(S().flowchart.htmlLabels))
|
|
68
|
+
s = te(u, {
|
|
69
|
+
label: t
|
|
70
|
+
}).node(), s.parentNode.removeChild(s);
|
|
71
|
+
else {
|
|
72
|
+
const k = i.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
73
|
+
k.setAttribute("style", w.labelStyle.replace("color:", "fill:"));
|
|
74
|
+
const _ = t.split(G.lineBreakRegex);
|
|
75
|
+
for (const $ of _) {
|
|
76
|
+
const v = i.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
77
|
+
v.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), v.setAttribute("dy", "1em"), v.setAttribute("x", "1"), v.textContent = $, k.appendChild(v);
|
|
78
|
+
}
|
|
79
|
+
s = k;
|
|
80
|
+
}
|
|
81
|
+
let b = 0, o = "";
|
|
82
|
+
switch (r.type) {
|
|
83
|
+
case "round":
|
|
84
|
+
b = 5, o = "rect";
|
|
85
|
+
break;
|
|
86
|
+
case "square":
|
|
87
|
+
o = "rect";
|
|
88
|
+
break;
|
|
89
|
+
case "diamond":
|
|
90
|
+
o = "question";
|
|
91
|
+
break;
|
|
92
|
+
case "hexagon":
|
|
93
|
+
o = "hexagon";
|
|
94
|
+
break;
|
|
95
|
+
case "odd":
|
|
96
|
+
o = "rect_left_inv_arrow";
|
|
97
|
+
break;
|
|
98
|
+
case "lean_right":
|
|
99
|
+
o = "lean_right";
|
|
100
|
+
break;
|
|
101
|
+
case "lean_left":
|
|
102
|
+
o = "lean_left";
|
|
103
|
+
break;
|
|
104
|
+
case "trapezoid":
|
|
105
|
+
o = "trapezoid";
|
|
106
|
+
break;
|
|
107
|
+
case "inv_trapezoid":
|
|
108
|
+
o = "inv_trapezoid";
|
|
109
|
+
break;
|
|
110
|
+
case "odd_right":
|
|
111
|
+
o = "rect_left_inv_arrow";
|
|
112
|
+
break;
|
|
113
|
+
case "circle":
|
|
114
|
+
o = "circle";
|
|
115
|
+
break;
|
|
116
|
+
case "ellipse":
|
|
117
|
+
o = "ellipse";
|
|
118
|
+
break;
|
|
119
|
+
case "stadium":
|
|
120
|
+
o = "stadium";
|
|
121
|
+
break;
|
|
122
|
+
case "subroutine":
|
|
123
|
+
o = "subroutine";
|
|
124
|
+
break;
|
|
125
|
+
case "cylinder":
|
|
126
|
+
o = "cylinder";
|
|
127
|
+
break;
|
|
128
|
+
case "group":
|
|
129
|
+
o = "rect";
|
|
130
|
+
break;
|
|
131
|
+
case "doublecircle":
|
|
132
|
+
o = "doublecircle";
|
|
133
|
+
break;
|
|
134
|
+
default:
|
|
135
|
+
o = "rect";
|
|
136
|
+
}
|
|
137
|
+
const T = await q(t, S());
|
|
138
|
+
l.setNode(r.id, {
|
|
139
|
+
labelStyle: w.labelStyle,
|
|
140
|
+
shape: o,
|
|
141
|
+
labelText: T,
|
|
142
|
+
labelType: r.labelType,
|
|
143
|
+
rx: b,
|
|
144
|
+
ry: b,
|
|
145
|
+
class: y,
|
|
146
|
+
style: w.style,
|
|
147
|
+
id: r.id,
|
|
148
|
+
link: r.link,
|
|
149
|
+
linkTarget: r.linkTarget,
|
|
150
|
+
tooltip: d.db.getTooltip(r.id) || "",
|
|
151
|
+
domId: d.db.lookUpDomId(r.id),
|
|
152
|
+
haveCallback: r.haveCallback,
|
|
153
|
+
width: r.type === "group" ? 500 : void 0,
|
|
154
|
+
dir: r.dir,
|
|
155
|
+
type: r.type,
|
|
156
|
+
props: r.props,
|
|
157
|
+
padding: S().flowchart.padding
|
|
158
|
+
}), g.info("setNode", {
|
|
159
|
+
labelStyle: w.labelStyle,
|
|
160
|
+
labelType: r.labelType,
|
|
161
|
+
shape: o,
|
|
162
|
+
labelText: T,
|
|
163
|
+
rx: b,
|
|
164
|
+
ry: b,
|
|
165
|
+
class: y,
|
|
166
|
+
style: w.style,
|
|
167
|
+
id: r.id,
|
|
168
|
+
domId: d.db.lookUpDomId(r.id),
|
|
169
|
+
width: r.type === "group" ? 500 : void 0,
|
|
170
|
+
type: r.type,
|
|
171
|
+
dir: r.dir,
|
|
172
|
+
props: r.props,
|
|
173
|
+
padding: S().flowchart.padding
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}, M = async function(e, l, c) {
|
|
177
|
+
g.info("abc78 edges = ", e);
|
|
178
|
+
let a = 0, i = {}, d, u;
|
|
179
|
+
if (e.defaultStyle !== void 0) {
|
|
180
|
+
const n = N(e.defaultStyle);
|
|
181
|
+
d = n.style, u = n.labelStyle;
|
|
182
|
+
}
|
|
183
|
+
for (const n of e) {
|
|
184
|
+
a++;
|
|
185
|
+
const p = "L-" + n.start + "-" + n.end;
|
|
186
|
+
i[p] === void 0 ? (i[p] = 0, g.info("abc78 new entry", p, i[p])) : (i[p]++, g.info("abc78 new entry", p, i[p]));
|
|
187
|
+
let r = p + "-" + i[p];
|
|
188
|
+
g.info("abc78 new link id to be used is", p, r, i[p]);
|
|
189
|
+
const y = "LS-" + n.start, w = "LE-" + n.end, t = { style: "", labelStyle: "" };
|
|
190
|
+
switch (t.minlen = n.length || 1, n.type === "arrow_open" ? t.arrowhead = "none" : t.arrowhead = "normal", t.arrowTypeStart = "arrow_open", t.arrowTypeEnd = "arrow_open", n.type) {
|
|
191
|
+
case "double_arrow_cross":
|
|
192
|
+
t.arrowTypeStart = "arrow_cross";
|
|
193
|
+
case "arrow_cross":
|
|
194
|
+
t.arrowTypeEnd = "arrow_cross";
|
|
195
|
+
break;
|
|
196
|
+
case "double_arrow_point":
|
|
197
|
+
t.arrowTypeStart = "arrow_point";
|
|
198
|
+
case "arrow_point":
|
|
199
|
+
t.arrowTypeEnd = "arrow_point";
|
|
200
|
+
break;
|
|
201
|
+
case "double_arrow_circle":
|
|
202
|
+
t.arrowTypeStart = "arrow_circle";
|
|
203
|
+
case "arrow_circle":
|
|
204
|
+
t.arrowTypeEnd = "arrow_circle";
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
let s = "", b = "";
|
|
208
|
+
switch (n.stroke) {
|
|
209
|
+
case "normal":
|
|
210
|
+
s = "fill:none;", d !== void 0 && (s = d), u !== void 0 && (b = u), t.thickness = "normal", t.pattern = "solid";
|
|
211
|
+
break;
|
|
212
|
+
case "dotted":
|
|
213
|
+
t.thickness = "normal", t.pattern = "dotted", t.style = "fill:none;stroke-width:2px;stroke-dasharray:3;";
|
|
214
|
+
break;
|
|
215
|
+
case "thick":
|
|
216
|
+
t.thickness = "thick", t.pattern = "solid", t.style = "stroke-width: 3.5px;fill:none;";
|
|
217
|
+
break;
|
|
218
|
+
case "invisible":
|
|
219
|
+
t.thickness = "invisible", t.pattern = "solid", t.style = "stroke-width: 0;fill:none;";
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
if (n.style !== void 0) {
|
|
223
|
+
const o = N(n.style);
|
|
224
|
+
s = o.style, b = o.labelStyle;
|
|
225
|
+
}
|
|
226
|
+
t.style = t.style += s, t.labelStyle = t.labelStyle += b, n.interpolate !== void 0 ? t.curve = E(n.interpolate, L) : e.defaultInterpolate !== void 0 ? t.curve = E(e.defaultInterpolate, L) : t.curve = E(P.curve, L), n.text === void 0 ? n.style !== void 0 && (t.arrowheadStyle = "fill: #333") : (t.arrowheadStyle = "fill: #333", t.labelpos = "c"), t.labelType = n.labelType, t.label = await q(n.text.replace(G.lineBreakRegex, `
|
|
227
|
+
`), S()), n.style === void 0 && (t.style = t.style || "stroke: #333; stroke-width: 1.5px;fill:none;"), t.labelStyle = t.labelStyle.replace("color:", "fill:"), t.id = r, t.classes = "flowchart-link " + y + " " + w, l.setEdge(n.start, n.end, t, a);
|
|
228
|
+
}
|
|
229
|
+
}, le = function(e, l) {
|
|
230
|
+
return l.db.getClasses();
|
|
231
|
+
}, ae = async function(e, l, c, a) {
|
|
232
|
+
g.info("Drawing flowchart");
|
|
233
|
+
let i = a.db.getDirection();
|
|
234
|
+
i === void 0 && (i = "TD");
|
|
235
|
+
const { securityLevel: d, flowchart: u } = S(), n = u.nodeSpacing || 50, p = u.rankSpacing || 50;
|
|
236
|
+
let r;
|
|
237
|
+
d === "sandbox" && (r = C("#i" + l));
|
|
238
|
+
const y = d === "sandbox" ? C(r.nodes()[0].contentDocument.body) : C("body"), w = d === "sandbox" ? r.nodes()[0].contentDocument : document, t = new R({
|
|
239
|
+
multigraph: !0,
|
|
240
|
+
compound: !0
|
|
241
|
+
}).setGraph({
|
|
242
|
+
rankdir: i,
|
|
243
|
+
nodesep: n,
|
|
244
|
+
ranksep: p,
|
|
245
|
+
marginx: 0,
|
|
246
|
+
marginy: 0
|
|
247
|
+
}).setDefaultEdgeLabel(function() {
|
|
248
|
+
return {};
|
|
249
|
+
});
|
|
250
|
+
let s;
|
|
251
|
+
const b = a.db.getSubGraphs();
|
|
252
|
+
g.info("Subgraphs - ", b);
|
|
253
|
+
for (let f = b.length - 1; f >= 0; f--)
|
|
254
|
+
s = b[f], g.info("Subgraph - ", s), a.db.addVertex(
|
|
255
|
+
s.id,
|
|
256
|
+
{ text: s.title, type: s.labelType },
|
|
257
|
+
"group",
|
|
258
|
+
void 0,
|
|
259
|
+
s.classes,
|
|
260
|
+
s.dir
|
|
261
|
+
);
|
|
262
|
+
const o = a.db.getVertices(), T = a.db.getEdges();
|
|
263
|
+
g.info("Edges", T);
|
|
264
|
+
let k = 0;
|
|
265
|
+
for (k = b.length - 1; k >= 0; k--) {
|
|
266
|
+
s = b[k], Z("cluster").append("text");
|
|
267
|
+
for (let f = 0; f < s.nodes.length; f++)
|
|
268
|
+
g.info("Setting up subgraphs", s.nodes[f], s.id), t.setParent(s.nodes[f], s.id);
|
|
269
|
+
}
|
|
270
|
+
await V(o, t, l, y, w, a), await M(T, t);
|
|
271
|
+
const _ = y.select(`[id="${l}"]`), $ = y.select("#" + l + " g");
|
|
272
|
+
if (await Q($, t, ["point", "circle", "cross"], "flowchart", l), W.insertTitle(_, "flowchartTitleText", u.titleTopMargin, a.db.getDiagramTitle()), X(t, _, u.diagramPadding, u.useMaxWidth), a.db.indexNodes("subGraph" + k), !u.htmlLabels) {
|
|
273
|
+
const f = w.querySelectorAll('[id="' + l + '"] .edgeLabel .label');
|
|
274
|
+
for (const x of f) {
|
|
275
|
+
const m = x.getBBox(), h = w.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
276
|
+
h.setAttribute("rx", 0), h.setAttribute("ry", 0), h.setAttribute("width", m.width), h.setAttribute("height", m.height), x.insertBefore(h, x.firstChild);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
Object.keys(o).forEach(function(f) {
|
|
280
|
+
const x = o[f];
|
|
281
|
+
if (x.link) {
|
|
282
|
+
const m = C("#" + l + ' [id="' + f + '"]');
|
|
283
|
+
if (m) {
|
|
284
|
+
const h = w.createElementNS("http://www.w3.org/2000/svg", "a");
|
|
285
|
+
h.setAttributeNS("http://www.w3.org/2000/svg", "class", x.classes.join(" ")), h.setAttributeNS("http://www.w3.org/2000/svg", "href", x.link), h.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), d === "sandbox" ? h.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : x.linkTarget && h.setAttributeNS("http://www.w3.org/2000/svg", "target", x.linkTarget);
|
|
286
|
+
const B = m.insert(function() {
|
|
287
|
+
return h;
|
|
288
|
+
}, ":first-child"), D = m.select(".label-container");
|
|
289
|
+
D && B.append(function() {
|
|
290
|
+
return D.node();
|
|
291
|
+
});
|
|
292
|
+
const I = m.select(".label");
|
|
293
|
+
I && B.append(function() {
|
|
294
|
+
return I.node();
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
}, we = {
|
|
300
|
+
setConf: re,
|
|
301
|
+
addVertices: V,
|
|
302
|
+
addEdges: M,
|
|
303
|
+
getClasses: le,
|
|
304
|
+
draw: ae
|
|
305
|
+
}, oe = (e, l) => {
|
|
306
|
+
const c = Y, a = c(e, "r"), i = c(e, "g"), d = c(e, "b");
|
|
307
|
+
return J(a, i, d, l);
|
|
308
|
+
}, ne = (e) => `.label {
|
|
309
|
+
font-family: ${e.fontFamily};
|
|
310
|
+
color: ${e.nodeTextColor || e.textColor};
|
|
311
|
+
}
|
|
312
|
+
.cluster-label text {
|
|
313
|
+
fill: ${e.titleColor};
|
|
314
|
+
}
|
|
315
|
+
.cluster-label span,p {
|
|
316
|
+
color: ${e.titleColor};
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.label text,span,p {
|
|
320
|
+
fill: ${e.nodeTextColor || e.textColor};
|
|
321
|
+
color: ${e.nodeTextColor || e.textColor};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.node rect,
|
|
325
|
+
.node circle,
|
|
326
|
+
.node ellipse,
|
|
327
|
+
.node polygon,
|
|
328
|
+
.node path {
|
|
329
|
+
fill: ${e.mainBkg};
|
|
330
|
+
stroke: ${e.nodeBorder};
|
|
331
|
+
stroke-width: 1px;
|
|
332
|
+
}
|
|
333
|
+
.flowchart-label text {
|
|
334
|
+
text-anchor: middle;
|
|
335
|
+
}
|
|
336
|
+
// .flowchart-label .text-outer-tspan {
|
|
337
|
+
// text-anchor: middle;
|
|
338
|
+
// }
|
|
339
|
+
// .flowchart-label .text-inner-tspan {
|
|
340
|
+
// text-anchor: start;
|
|
341
|
+
// }
|
|
342
|
+
|
|
343
|
+
.node .katex path {
|
|
344
|
+
fill: #000;
|
|
345
|
+
stroke: #000;
|
|
346
|
+
stroke-width: 1px;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.node .label {
|
|
350
|
+
text-align: center;
|
|
351
|
+
}
|
|
352
|
+
.node.clickable {
|
|
353
|
+
cursor: pointer;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.arrowheadPath {
|
|
357
|
+
fill: ${e.arrowheadColor};
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.edgePath .path {
|
|
361
|
+
stroke: ${e.lineColor};
|
|
362
|
+
stroke-width: 2.0px;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.flowchart-link {
|
|
366
|
+
stroke: ${e.lineColor};
|
|
367
|
+
fill: none;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.edgeLabel {
|
|
371
|
+
background-color: ${e.edgeLabelBackground};
|
|
372
|
+
rect {
|
|
373
|
+
opacity: 0.5;
|
|
374
|
+
background-color: ${e.edgeLabelBackground};
|
|
375
|
+
fill: ${e.edgeLabelBackground};
|
|
376
|
+
}
|
|
377
|
+
text-align: center;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* For html labels only */
|
|
381
|
+
.labelBkg {
|
|
382
|
+
background-color: ${oe(e.edgeLabelBackground, 0.5)};
|
|
383
|
+
// background-color:
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.cluster rect {
|
|
387
|
+
fill: ${e.clusterBkg};
|
|
388
|
+
stroke: ${e.clusterBorder};
|
|
389
|
+
stroke-width: 1px;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.cluster text {
|
|
393
|
+
fill: ${e.titleColor};
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.cluster span,p {
|
|
397
|
+
color: ${e.titleColor};
|
|
398
|
+
}
|
|
399
|
+
/* .cluster div {
|
|
400
|
+
color: ${e.titleColor};
|
|
401
|
+
} */
|
|
402
|
+
|
|
403
|
+
div.mermaidTooltip {
|
|
404
|
+
position: absolute;
|
|
405
|
+
text-align: center;
|
|
406
|
+
max-width: 200px;
|
|
407
|
+
padding: 2px;
|
|
408
|
+
font-family: ${e.fontFamily};
|
|
409
|
+
font-size: 12px;
|
|
410
|
+
background: ${e.tertiaryColor};
|
|
411
|
+
border: 1px solid ${e.border2};
|
|
412
|
+
border-radius: 2px;
|
|
413
|
+
pointer-events: none;
|
|
414
|
+
z-index: 100;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.flowchartTitleText {
|
|
418
|
+
text-anchor: middle;
|
|
419
|
+
font-size: 18px;
|
|
420
|
+
fill: ${e.textColor};
|
|
421
|
+
}
|
|
422
|
+
`, he = ne;
|
|
423
|
+
export {
|
|
424
|
+
ee as a,
|
|
425
|
+
te as b,
|
|
426
|
+
ue as c,
|
|
427
|
+
fe as d,
|
|
428
|
+
be as e,
|
|
429
|
+
we as f,
|
|
430
|
+
he as g,
|
|
431
|
+
pe as i,
|
|
432
|
+
Z as s
|
|
433
|
+
};
|