smart-chat-asp 2.11.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/README.md +364 -0
- package/README.zh.md +367 -0
- package/lib/Tableau10-2ff7471d.mjs +9 -0
- package/lib/arc-33fcfaff.mjs +86 -0
- package/lib/array-2ff2c7a6.mjs +6 -0
- package/lib/blockDiagram-38ab4fdb-3c912e88.mjs +1230 -0
- package/lib/c4Diagram-3d4e48cf-49908d37.mjs +1580 -0
- package/lib/channel-890a888a.mjs +5 -0
- package/lib/classDiagram-70f12bd4-ace7b178.mjs +221 -0
- package/lib/classDiagram-v2-f2320105-5848085d.mjs +207 -0
- package/lib/clone-59a3b16a.mjs +8 -0
- package/lib/createText-2e5e7dd3-898a4de3.mjs +2966 -0
- package/lib/edges-e0da2a9e-91b210e9.mjs +1083 -0
- package/lib/erDiagram-9861fffd-c13b7611.mjs +933 -0
- package/lib/favicon.ico +0 -0
- package/lib/favicon.svg +1 -0
- package/lib/flowDb-956e92f1-56fdcb20.mjs +1126 -0
- package/lib/flowDiagram-66a62f08-4023035a.mjs +798 -0
- package/lib/flowDiagram-v2-96b9c2cf-d28d8b17.mjs +26 -0
- package/lib/flowchart-elk-definition-4a651766-ab5b1391.mjs +48407 -0
- package/lib/ganttDiagram-c361ad54-ae59a5e3.mjs +2504 -0
- package/lib/gitGraphDiagram-72cf32ee-5bdf46bb.mjs +1265 -0
- package/lib/graph-9ea4e80a.mjs +512 -0
- package/lib/index-3862675e-b7177fa1.mjs +373 -0
- package/lib/index-958a220b.mjs +1470 -0
- package/lib/index-c42b0ff4.mjs +40 -0
- package/lib/index-f76d9453.mjs +28 -0
- package/lib/infoDiagram-f8f76790-5f3835f9.mjs +320 -0
- package/lib/init-f9637058.mjs +16 -0
- package/lib/journeyDiagram-49397b02-df06b21d.mjs +805 -0
- package/lib/layout-d3bc02b9.mjs +1495 -0
- package/lib/line-b044df13.mjs +34 -0
- package/lib/linear-e60140ad.mjs +447 -0
- package/lib/main-740da2e1.mjs +117801 -0
- package/lib/mindmap-definition-fc14e90a-3bfaf2a6.mjs +19384 -0
- package/lib/ordinal-980380c7.mjs +65 -0
- package/lib/path-428ebac9.mjs +91 -0
- package/lib/pieDiagram-8a3498a8-a8359c54.mjs +503 -0
- package/lib/pwa-192x192.png +0 -0
- package/lib/pwa-512x512.png +0 -0
- package/lib/quadrantDiagram-120e2f19-367eeae7.mjs +905 -0
- package/lib/requirementDiagram-deff3bca-27d1e96b.mjs +770 -0
- package/lib/sankeyDiagram-04a897e0-a9e993ee.mjs +818 -0
- package/lib/sequenceDiagram-704730f1-05f9d7b1.mjs +2235 -0
- package/lib/smart-chat.es.js +5 -0
- package/lib/smart-chat.umd.js +5444 -0
- package/lib/stateDiagram-587899a1-f3e4a81e.mjs +269 -0
- package/lib/stateDiagram-v2-d93cdb3a-763ad0ff.mjs +191 -0
- package/lib/style.css +1 -0
- package/lib/styles-6aaf32cf-e32ec570.mjs +960 -0
- package/lib/styles-9a916d00-18b5fd0d.mjs +1089 -0
- package/lib/styles-c10674c1-134300a0.mjs +433 -0
- package/lib/svgDrawCommon-08f97a94-f04d54dc.mjs +64 -0
- package/lib/timeline-definition-85554ec2-1989252c.mjs +796 -0
- package/lib/xychartDiagram-e933f94c-f7d5a550.mjs +1285 -0
- package/license +21 -0
- package/package.json +79 -0
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { G as R } from "./graph-9ea4e80a.mjs";
|
|
2
|
+
import { af as G, ag as F, ah as j, ai as U, aj as H, a9 as A, a2 as g, aa as K, Y as S, a5 as z, ab as P, ac as E, a8 as L, a1 as C, ak as W, ad as X, al as Y } from "./main-740da2e1.mjs";
|
|
3
|
+
import { r as J } from "./index-3862675e-b7177fa1.mjs";
|
|
4
|
+
import { c as Q } from "./channel-890a888a.mjs";
|
|
5
|
+
function Z(e) {
|
|
6
|
+
return typeof e == "string" ? new G([document.querySelectorAll(e)], [document.documentElement]) : new G([j(e)], F);
|
|
7
|
+
}
|
|
8
|
+
function pe(e, l) {
|
|
9
|
+
return !!e.children(l).length;
|
|
10
|
+
}
|
|
11
|
+
function be(e) {
|
|
12
|
+
return N(e.v) + ":" + N(e.w) + ":" + N(e.name);
|
|
13
|
+
}
|
|
14
|
+
var O = /:/g;
|
|
15
|
+
function N(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 V = {}, re = function(e) {
|
|
54
|
+
const l = Object.keys(e);
|
|
55
|
+
for (const c of l)
|
|
56
|
+
V[c] = e[c];
|
|
57
|
+
}, q = 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 = A(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(z.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 P(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 = A(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 = A(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(V.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 P(n.text.replace(z.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 q(o, t, l, y, w, a), await M(T, t);
|
|
271
|
+
const _ = y.select(`[id="${l}"]`), $ = y.select("#" + l + " g");
|
|
272
|
+
if (await J($, 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"), I = m.select(".label-container");
|
|
289
|
+
I && B.append(function() {
|
|
290
|
+
return I.node();
|
|
291
|
+
});
|
|
292
|
+
const D = m.select(".label");
|
|
293
|
+
D && B.append(function() {
|
|
294
|
+
return D.node();
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
}, we = {
|
|
300
|
+
setConf: re,
|
|
301
|
+
addVertices: q,
|
|
302
|
+
addEdges: M,
|
|
303
|
+
getClasses: le,
|
|
304
|
+
draw: ae
|
|
305
|
+
}, oe = (e, l) => {
|
|
306
|
+
const c = Q, a = c(e, "r"), i = c(e, "g"), d = c(e, "b");
|
|
307
|
+
return Y(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
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { bm as o, a7 as i } from "./main-740da2e1.mjs";
|
|
2
|
+
const l = (s, t) => {
|
|
3
|
+
const e = s.append("rect");
|
|
4
|
+
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx !== void 0 && e.attr("rx", t.rx), t.ry !== void 0 && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
5
|
+
for (const r in t.attrs)
|
|
6
|
+
e.attr(r, t.attrs[r]);
|
|
7
|
+
return t.class !== void 0 && e.attr("class", t.class), e;
|
|
8
|
+
}, x = (s, t) => {
|
|
9
|
+
const e = {
|
|
10
|
+
x: t.startx,
|
|
11
|
+
y: t.starty,
|
|
12
|
+
width: t.stopx - t.startx,
|
|
13
|
+
height: t.stopy - t.starty,
|
|
14
|
+
fill: t.fill,
|
|
15
|
+
stroke: t.stroke,
|
|
16
|
+
class: "rect"
|
|
17
|
+
};
|
|
18
|
+
l(s, e).lower();
|
|
19
|
+
}, d = (s, t) => {
|
|
20
|
+
const e = t.text.replace(o, " "), r = s.append("text");
|
|
21
|
+
r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class !== void 0 && r.attr("class", t.class);
|
|
22
|
+
const n = r.append("tspan");
|
|
23
|
+
return n.attr("x", t.x + t.textMargin * 2), n.text(e), r;
|
|
24
|
+
}, h = (s, t, e, r) => {
|
|
25
|
+
const n = s.append("image");
|
|
26
|
+
n.attr("x", t), n.attr("y", e);
|
|
27
|
+
const a = i.sanitizeUrl(r);
|
|
28
|
+
n.attr("xlink:href", a);
|
|
29
|
+
}, y = (s, t, e, r) => {
|
|
30
|
+
const n = s.append("use");
|
|
31
|
+
n.attr("x", t), n.attr("y", e);
|
|
32
|
+
const a = i.sanitizeUrl(r);
|
|
33
|
+
n.attr("xlink:href", `#${a}`);
|
|
34
|
+
}, g = () => ({
|
|
35
|
+
x: 0,
|
|
36
|
+
y: 0,
|
|
37
|
+
width: 100,
|
|
38
|
+
height: 100,
|
|
39
|
+
fill: "#EDF2AE",
|
|
40
|
+
stroke: "#666",
|
|
41
|
+
anchor: "start",
|
|
42
|
+
rx: 0,
|
|
43
|
+
ry: 0
|
|
44
|
+
}), m = () => ({
|
|
45
|
+
x: 0,
|
|
46
|
+
y: 0,
|
|
47
|
+
width: 100,
|
|
48
|
+
height: 100,
|
|
49
|
+
"text-anchor": "start",
|
|
50
|
+
style: "#666",
|
|
51
|
+
textMargin: 0,
|
|
52
|
+
rx: 0,
|
|
53
|
+
ry: 0,
|
|
54
|
+
tspan: !0
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
x as a,
|
|
58
|
+
m as b,
|
|
59
|
+
y as c,
|
|
60
|
+
l as d,
|
|
61
|
+
h as e,
|
|
62
|
+
d as f,
|
|
63
|
+
g
|
|
64
|
+
};
|