@schmitech/chatbot-widget 0.5.3 → 0.5.4
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/Tableau10-D7jGxypv-BNlEL2G_.js +9 -0
- package/dist/arc-D-ZI5fuh-CvDHBzlN.js +84 -0
- package/dist/blockDiagram-c4efeb88-DUnNxfIR-Bhh-x1q6.js +1221 -0
- package/dist/c4Diagram-c83219d4-cC4OxfBG-DRTO_jy5.js +1580 -0
- package/dist/channel-hcYozyrT-BSOc2Hp-.js +6 -0
- package/dist/chatbot-widget.bundle.js +3881 -1586
- package/dist/chatbot-widget.css +1 -1
- package/dist/chatbot-widget.es.js +12 -63659
- package/dist/chatbot-widget.umd.js +3880 -1585
- package/dist/classDiagram-beda092f-BLYhf5Mr-vk4Ko58U.js +218 -0
- package/dist/classDiagram-v2-2358418a-VBkbF8mr-Ca0l1fEs.js +201 -0
- package/dist/clone-BZIkCMuw-B9owNq6E.js +9 -0
- package/dist/config/index.d.ts +2 -2
- package/dist/createText-1719965b-UejsQ47k-B1DYw0WW.js +2955 -0
- package/dist/edges-96097737-1M5QvjOd-BpQVVoQN.js +1088 -0
- package/dist/erDiagram-0228fc6a-CjBNxHoC-DXDVlH55.js +929 -0
- package/dist/flowDb-c6c81e3f-Q2aoOxdz-DfrfI3H1.js +1127 -0
- package/dist/flowDiagram-50d868cf-zizL6ppE-BAH-_juu.js +788 -0
- package/dist/flowDiagram-v2-4f6560a1-DVx_vlO5-bkcRE0UW.js +18 -0
- package/dist/flowchart-elk-definition-6af322e1-Eyez36go-B_lk3oHt.js +48132 -0
- package/dist/ganttDiagram-a2739b55-C82Jv-TO-DoS-s1Yu.js +1743 -0
- package/dist/gitGraphDiagram-82fe8481-D9o_9-U8-DJF-ZeR8.js +1265 -0
- package/dist/graph-BjmGDpTe-DgbYS1Ie.js +848 -0
- package/dist/index-5325376f-CJL5w-Sw-BXp44Ej5.js +374 -0
- package/dist/index-s6Yb6o1D.js +116386 -0
- package/dist/infoDiagram-8eee0895-FpS-TLK_-BnvO_wUe.js +320 -0
- package/dist/journeyDiagram-c64418c1-CMj1efQ9-CshcRDhm.js +802 -0
- package/dist/layout-D_6hdlf3-B7guhEBN.js +1470 -0
- package/dist/mindmap-definition-8da855dc-D4SxHjUd-jFZFomnk.js +21924 -0
- package/dist/pieDiagram-a8764435-BF5ZqOjB-Mqzg2J4Q.js +498 -0
- package/dist/quadrantDiagram-1e28029f-GtQb80VU-DCy1QjzW.js +903 -0
- package/dist/requirementDiagram-08caed73-CHtPj3FO-AHEP0cIt.js +767 -0
- package/dist/sankeyDiagram-a04cb91d-CBlXzOgd-CWJTc5AX.js +802 -0
- package/dist/sequenceDiagram-c5b8d532-Cs1iyw97-oayOJE8v.js +2235 -0
- package/dist/shared/styles.d.ts +1 -1
- package/dist/stateDiagram-1ecb1508-CpRKICMQ-C5OFJeRZ.js +266 -0
- package/dist/stateDiagram-v2-c2b004d7-BtkhFyQ5-DxzE8Je5.js +185 -0
- package/dist/styles-b4e223ce-D0oeHeKH-BmNvk4NR.js +1090 -0
- package/dist/styles-ca3715f6-BouNgl-L-_qXsPDP3.js +961 -0
- package/dist/styles-d45a18b0-Cvhb8Ltu-43I3Cd_I.js +437 -0
- package/dist/svgDrawCommon-b86b1483-mg-1NjZY-DrmnILcc.js +65 -0
- package/dist/timeline-definition-faaaa080-3olbep_P-BqKpgsPZ.js +793 -0
- package/dist/ui/Message.d.ts +1 -5
- package/dist/ui/MessagesList.d.ts +1 -5
- package/dist/xychartDiagram-f5964ef8-BN6HXpmW-C-g_F1w2.js +1238 -0
- package/package.json +3 -3
- package/dist/ui/TypingEffect.d.ts +0 -18
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import { e as q, O as h, g as v, P as _, i as M, d as V, R as A, _ as C, Y as E, r as z, l as I, f as F, E as j, j as G, L as K, u as U, t as Y } from "./index-s6Yb6o1D.js";
|
|
2
|
+
import { K as W } from "./graph-BjmGDpTe-DgbYS1Ie.js";
|
|
3
|
+
import { b as X } from "./index-5325376f-CJL5w-Sw-BXp44Ej5.js";
|
|
4
|
+
import { t as Z } from "./channel-hcYozyrT-BSOc2Hp-.js";
|
|
5
|
+
typeof window < "u" && (window.global = window);
|
|
6
|
+
function H(e) {
|
|
7
|
+
return typeof e == "string" ? new j([document.querySelectorAll(e)], [document.documentElement]) : new j([K(e)], G);
|
|
8
|
+
}
|
|
9
|
+
function de(e, o) {
|
|
10
|
+
return !!e.children(o).length;
|
|
11
|
+
}
|
|
12
|
+
function pe(e) {
|
|
13
|
+
return B(e.v) + ":" + B(e.w) + ":" + B(e.name);
|
|
14
|
+
}
|
|
15
|
+
var J = /:/g;
|
|
16
|
+
function B(e) {
|
|
17
|
+
return e ? String(e).replace(J, "\\:") : "";
|
|
18
|
+
}
|
|
19
|
+
function Q(e, o) {
|
|
20
|
+
o && e.attr("style", o);
|
|
21
|
+
}
|
|
22
|
+
function be(e, o, c) {
|
|
23
|
+
o && e.attr("class", o).attr("class", c + " " + e.attr("class"));
|
|
24
|
+
}
|
|
25
|
+
function we(e, o) {
|
|
26
|
+
var c = o.graph();
|
|
27
|
+
if (U(c)) {
|
|
28
|
+
var l = c.transition;
|
|
29
|
+
if (Y(l))
|
|
30
|
+
return l(e);
|
|
31
|
+
}
|
|
32
|
+
return e;
|
|
33
|
+
}
|
|
34
|
+
function ee(e, o) {
|
|
35
|
+
var c = e.append("foreignObject").attr("width", "100000"), l = c.append("xhtml:div");
|
|
36
|
+
l.attr("xmlns", "http://www.w3.org/1999/xhtml");
|
|
37
|
+
var i = o.label;
|
|
38
|
+
switch (typeof i) {
|
|
39
|
+
case "function":
|
|
40
|
+
l.insert(i);
|
|
41
|
+
break;
|
|
42
|
+
case "object":
|
|
43
|
+
l.insert(function() {
|
|
44
|
+
return i;
|
|
45
|
+
});
|
|
46
|
+
break;
|
|
47
|
+
default:
|
|
48
|
+
l.html(i);
|
|
49
|
+
}
|
|
50
|
+
Q(l, o.labelStyle), l.style("display", "inline-block"), l.style("white-space", "nowrap");
|
|
51
|
+
var p = l.node().getBoundingClientRect();
|
|
52
|
+
return c.attr("width", p.width).attr("height", p.height), c;
|
|
53
|
+
}
|
|
54
|
+
const O = {}, te = function(e) {
|
|
55
|
+
const o = Object.keys(e);
|
|
56
|
+
for (const c of o)
|
|
57
|
+
O[c] = e[c];
|
|
58
|
+
}, P = async function(e, o, c, l, i, p) {
|
|
59
|
+
const u = l.select(`[id="${c}"]`), n = Object.keys(e);
|
|
60
|
+
for (const b of n) {
|
|
61
|
+
const r = e[b];
|
|
62
|
+
let y = "default";
|
|
63
|
+
r.classes.length > 0 && (y = r.classes.join(" ")), y = y + " flowchart-label";
|
|
64
|
+
const f = A(r.styles);
|
|
65
|
+
let t = r.text !== void 0 ? r.text : r.id, s;
|
|
66
|
+
if (h.info("vertex", r, r.labelType), r.labelType === "markdown")
|
|
67
|
+
h.info("vertex", r, r.labelType);
|
|
68
|
+
else if (F(v().flowchart.htmlLabels))
|
|
69
|
+
s = ee(u, {
|
|
70
|
+
label: t
|
|
71
|
+
}).node(), s.parentNode.removeChild(s);
|
|
72
|
+
else {
|
|
73
|
+
const k = i.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
74
|
+
k.setAttribute("style", f.labelStyle.replace("color:", "fill:"));
|
|
75
|
+
const T = t.split(I.lineBreakRegex);
|
|
76
|
+
for (const $ of T) {
|
|
77
|
+
const d = i.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
78
|
+
d.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), d.setAttribute("dy", "1em"), d.setAttribute("x", "1"), d.textContent = $, k.appendChild(d);
|
|
79
|
+
}
|
|
80
|
+
s = k;
|
|
81
|
+
}
|
|
82
|
+
let w = 0, a = "";
|
|
83
|
+
switch (r.type) {
|
|
84
|
+
case "round":
|
|
85
|
+
w = 5, a = "rect";
|
|
86
|
+
break;
|
|
87
|
+
case "square":
|
|
88
|
+
a = "rect";
|
|
89
|
+
break;
|
|
90
|
+
case "diamond":
|
|
91
|
+
a = "question";
|
|
92
|
+
break;
|
|
93
|
+
case "hexagon":
|
|
94
|
+
a = "hexagon";
|
|
95
|
+
break;
|
|
96
|
+
case "odd":
|
|
97
|
+
a = "rect_left_inv_arrow";
|
|
98
|
+
break;
|
|
99
|
+
case "lean_right":
|
|
100
|
+
a = "lean_right";
|
|
101
|
+
break;
|
|
102
|
+
case "lean_left":
|
|
103
|
+
a = "lean_left";
|
|
104
|
+
break;
|
|
105
|
+
case "trapezoid":
|
|
106
|
+
a = "trapezoid";
|
|
107
|
+
break;
|
|
108
|
+
case "inv_trapezoid":
|
|
109
|
+
a = "inv_trapezoid";
|
|
110
|
+
break;
|
|
111
|
+
case "odd_right":
|
|
112
|
+
a = "rect_left_inv_arrow";
|
|
113
|
+
break;
|
|
114
|
+
case "circle":
|
|
115
|
+
a = "circle";
|
|
116
|
+
break;
|
|
117
|
+
case "ellipse":
|
|
118
|
+
a = "ellipse";
|
|
119
|
+
break;
|
|
120
|
+
case "stadium":
|
|
121
|
+
a = "stadium";
|
|
122
|
+
break;
|
|
123
|
+
case "subroutine":
|
|
124
|
+
a = "subroutine";
|
|
125
|
+
break;
|
|
126
|
+
case "cylinder":
|
|
127
|
+
a = "cylinder";
|
|
128
|
+
break;
|
|
129
|
+
case "group":
|
|
130
|
+
a = "rect";
|
|
131
|
+
break;
|
|
132
|
+
case "doublecircle":
|
|
133
|
+
a = "doublecircle";
|
|
134
|
+
break;
|
|
135
|
+
default:
|
|
136
|
+
a = "rect";
|
|
137
|
+
}
|
|
138
|
+
const S = await z(t, v());
|
|
139
|
+
o.setNode(r.id, {
|
|
140
|
+
labelStyle: f.labelStyle,
|
|
141
|
+
shape: a,
|
|
142
|
+
labelText: S,
|
|
143
|
+
labelType: r.labelType,
|
|
144
|
+
rx: w,
|
|
145
|
+
ry: w,
|
|
146
|
+
class: y,
|
|
147
|
+
style: f.style,
|
|
148
|
+
id: r.id,
|
|
149
|
+
link: r.link,
|
|
150
|
+
linkTarget: r.linkTarget,
|
|
151
|
+
tooltip: p.db.getTooltip(r.id) || "",
|
|
152
|
+
domId: p.db.lookUpDomId(r.id),
|
|
153
|
+
haveCallback: r.haveCallback,
|
|
154
|
+
width: r.type === "group" ? 500 : void 0,
|
|
155
|
+
dir: r.dir,
|
|
156
|
+
type: r.type,
|
|
157
|
+
props: r.props,
|
|
158
|
+
padding: v().flowchart.padding
|
|
159
|
+
}), h.info("setNode", {
|
|
160
|
+
labelStyle: f.labelStyle,
|
|
161
|
+
labelType: r.labelType,
|
|
162
|
+
shape: a,
|
|
163
|
+
labelText: S,
|
|
164
|
+
rx: w,
|
|
165
|
+
ry: w,
|
|
166
|
+
class: y,
|
|
167
|
+
style: f.style,
|
|
168
|
+
id: r.id,
|
|
169
|
+
domId: p.db.lookUpDomId(r.id),
|
|
170
|
+
width: r.type === "group" ? 500 : void 0,
|
|
171
|
+
type: r.type,
|
|
172
|
+
dir: r.dir,
|
|
173
|
+
props: r.props,
|
|
174
|
+
padding: v().flowchart.padding
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}, R = async function(e, o, c) {
|
|
178
|
+
h.info("abc78 edges = ", e);
|
|
179
|
+
let l = 0, i = {}, p, u;
|
|
180
|
+
if (e.defaultStyle !== void 0) {
|
|
181
|
+
const n = A(e.defaultStyle);
|
|
182
|
+
p = n.style, u = n.labelStyle;
|
|
183
|
+
}
|
|
184
|
+
for (const n of e) {
|
|
185
|
+
l++;
|
|
186
|
+
const b = "L-" + n.start + "-" + n.end;
|
|
187
|
+
i[b] === void 0 ? (i[b] = 0, h.info("abc78 new entry", b, i[b])) : (i[b]++, h.info("abc78 new entry", b, i[b]));
|
|
188
|
+
let r = b + "-" + i[b];
|
|
189
|
+
h.info("abc78 new link id to be used is", b, r, i[b]);
|
|
190
|
+
const y = "LS-" + n.start, f = "LE-" + n.end, t = { style: "", labelStyle: "" };
|
|
191
|
+
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) {
|
|
192
|
+
case "double_arrow_cross":
|
|
193
|
+
t.arrowTypeStart = "arrow_cross";
|
|
194
|
+
case "arrow_cross":
|
|
195
|
+
t.arrowTypeEnd = "arrow_cross";
|
|
196
|
+
break;
|
|
197
|
+
case "double_arrow_point":
|
|
198
|
+
t.arrowTypeStart = "arrow_point";
|
|
199
|
+
case "arrow_point":
|
|
200
|
+
t.arrowTypeEnd = "arrow_point";
|
|
201
|
+
break;
|
|
202
|
+
case "double_arrow_circle":
|
|
203
|
+
t.arrowTypeStart = "arrow_circle";
|
|
204
|
+
case "arrow_circle":
|
|
205
|
+
t.arrowTypeEnd = "arrow_circle";
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
let s = "", w = "";
|
|
209
|
+
switch (n.stroke) {
|
|
210
|
+
case "normal":
|
|
211
|
+
s = "fill:none;", p !== void 0 && (s = p), u !== void 0 && (w = u), t.thickness = "normal", t.pattern = "solid";
|
|
212
|
+
break;
|
|
213
|
+
case "dotted":
|
|
214
|
+
t.thickness = "normal", t.pattern = "dotted", t.style = "fill:none;stroke-width:2px;stroke-dasharray:3;";
|
|
215
|
+
break;
|
|
216
|
+
case "thick":
|
|
217
|
+
t.thickness = "thick", t.pattern = "solid", t.style = "stroke-width: 3.5px;fill:none;";
|
|
218
|
+
break;
|
|
219
|
+
case "invisible":
|
|
220
|
+
t.thickness = "invisible", t.pattern = "solid", t.style = "stroke-width: 0;fill:none;";
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
if (n.style !== void 0) {
|
|
224
|
+
const a = A(n.style);
|
|
225
|
+
s = a.style, w = a.labelStyle;
|
|
226
|
+
}
|
|
227
|
+
t.style = t.style += s, t.labelStyle = t.labelStyle += w, n.interpolate !== void 0 ? t.curve = C(n.interpolate, E) : e.defaultInterpolate !== void 0 ? t.curve = C(e.defaultInterpolate, E) : t.curve = C(O.curve, E), 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 z(
|
|
228
|
+
n.text.replace(I.lineBreakRegex, `
|
|
229
|
+
`),
|
|
230
|
+
v()
|
|
231
|
+
), 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 + " " + f, o.setEdge(n.start, n.end, t, l);
|
|
232
|
+
}
|
|
233
|
+
}, re = function(e, o) {
|
|
234
|
+
return o.db.getClasses();
|
|
235
|
+
}, oe = async function(e, o, c, l) {
|
|
236
|
+
h.info("Drawing flowchart");
|
|
237
|
+
let i = l.db.getDirection();
|
|
238
|
+
i === void 0 && (i = "TD");
|
|
239
|
+
const { securityLevel: p, flowchart: u } = v(), n = u.nodeSpacing || 50, b = u.rankSpacing || 50;
|
|
240
|
+
let r;
|
|
241
|
+
p === "sandbox" && (r = _("#i" + o));
|
|
242
|
+
const y = p === "sandbox" ? _(r.nodes()[0].contentDocument.body) : _("body"), f = p === "sandbox" ? r.nodes()[0].contentDocument : document, t = new W({
|
|
243
|
+
multigraph: !0,
|
|
244
|
+
compound: !0
|
|
245
|
+
}).setGraph({
|
|
246
|
+
rankdir: i,
|
|
247
|
+
nodesep: n,
|
|
248
|
+
ranksep: b,
|
|
249
|
+
marginx: 0,
|
|
250
|
+
marginy: 0
|
|
251
|
+
}).setDefaultEdgeLabel(function() {
|
|
252
|
+
return {};
|
|
253
|
+
});
|
|
254
|
+
let s;
|
|
255
|
+
const w = l.db.getSubGraphs();
|
|
256
|
+
h.info("Subgraphs - ", w);
|
|
257
|
+
for (let d = w.length - 1; d >= 0; d--)
|
|
258
|
+
s = w[d], h.info("Subgraph - ", s), l.db.addVertex(
|
|
259
|
+
s.id,
|
|
260
|
+
{ text: s.title, type: s.labelType },
|
|
261
|
+
"group",
|
|
262
|
+
void 0,
|
|
263
|
+
s.classes,
|
|
264
|
+
s.dir
|
|
265
|
+
);
|
|
266
|
+
const a = l.db.getVertices(), S = l.db.getEdges();
|
|
267
|
+
h.info("Edges", S);
|
|
268
|
+
let k = 0;
|
|
269
|
+
for (k = w.length - 1; k >= 0; k--) {
|
|
270
|
+
s = w[k], H("cluster").append("text");
|
|
271
|
+
for (let d = 0; d < s.nodes.length; d++)
|
|
272
|
+
h.info("Setting up subgraphs", s.nodes[d], s.id), t.setParent(s.nodes[d], s.id);
|
|
273
|
+
}
|
|
274
|
+
await P(a, t, o, y, f, l), await R(S, t);
|
|
275
|
+
const T = y.select(`[id="${o}"]`), $ = y.select("#" + o + " g");
|
|
276
|
+
if (await X($, t, ["point", "circle", "cross"], "flowchart", o), M.insertTitle(T, "flowchartTitleText", u.titleTopMargin, l.db.getDiagramTitle()), V(t, T, u.diagramPadding, u.useMaxWidth), l.db.indexNodes("subGraph" + k), !u.htmlLabels) {
|
|
277
|
+
const d = f.querySelectorAll('[id="' + o + '"] .edgeLabel .label');
|
|
278
|
+
for (const x of d) {
|
|
279
|
+
const m = x.getBBox(), g = f.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
280
|
+
g.setAttribute("rx", 0), g.setAttribute("ry", 0), g.setAttribute("width", m.width), g.setAttribute("height", m.height), x.insertBefore(g, x.firstChild);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
Object.keys(a).forEach(function(d) {
|
|
284
|
+
const x = a[d];
|
|
285
|
+
if (x.link) {
|
|
286
|
+
const m = _("#" + o + ' [id="' + d + '"]');
|
|
287
|
+
if (m) {
|
|
288
|
+
const g = f.createElementNS("http://www.w3.org/2000/svg", "a");
|
|
289
|
+
g.setAttributeNS("http://www.w3.org/2000/svg", "class", x.classes.join(" ")), g.setAttributeNS("http://www.w3.org/2000/svg", "href", x.link), g.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), p === "sandbox" ? g.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : x.linkTarget && g.setAttributeNS("http://www.w3.org/2000/svg", "target", x.linkTarget);
|
|
290
|
+
const L = m.insert(function() {
|
|
291
|
+
return g;
|
|
292
|
+
}, ":first-child"), N = m.select(".label-container");
|
|
293
|
+
N && L.append(function() {
|
|
294
|
+
return N.node();
|
|
295
|
+
});
|
|
296
|
+
const D = m.select(".label");
|
|
297
|
+
D && L.append(function() {
|
|
298
|
+
return D.node();
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
}, ue = {
|
|
304
|
+
setConf: te,
|
|
305
|
+
addVertices: P,
|
|
306
|
+
addEdges: R,
|
|
307
|
+
getClasses: re,
|
|
308
|
+
draw: oe
|
|
309
|
+
}, le = (e, o) => {
|
|
310
|
+
const c = Z, l = c(e, "r"), i = c(e, "g"), p = c(e, "b");
|
|
311
|
+
return q(l, i, p, o);
|
|
312
|
+
}, ae = (e) => `.label {
|
|
313
|
+
font-family: ${e.fontFamily};
|
|
314
|
+
color: ${e.nodeTextColor || e.textColor};
|
|
315
|
+
}
|
|
316
|
+
.cluster-label text {
|
|
317
|
+
fill: ${e.titleColor};
|
|
318
|
+
}
|
|
319
|
+
.cluster-label span,p {
|
|
320
|
+
color: ${e.titleColor};
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.label text,span,p {
|
|
324
|
+
fill: ${e.nodeTextColor || e.textColor};
|
|
325
|
+
color: ${e.nodeTextColor || e.textColor};
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.node rect,
|
|
329
|
+
.node circle,
|
|
330
|
+
.node ellipse,
|
|
331
|
+
.node polygon,
|
|
332
|
+
.node path {
|
|
333
|
+
fill: ${e.mainBkg};
|
|
334
|
+
stroke: ${e.nodeBorder};
|
|
335
|
+
stroke-width: 1px;
|
|
336
|
+
}
|
|
337
|
+
.flowchart-label text {
|
|
338
|
+
text-anchor: middle;
|
|
339
|
+
}
|
|
340
|
+
// .flowchart-label .text-outer-tspan {
|
|
341
|
+
// text-anchor: middle;
|
|
342
|
+
// }
|
|
343
|
+
// .flowchart-label .text-inner-tspan {
|
|
344
|
+
// text-anchor: start;
|
|
345
|
+
// }
|
|
346
|
+
|
|
347
|
+
.node .katex path {
|
|
348
|
+
fill: #000;
|
|
349
|
+
stroke: #000;
|
|
350
|
+
stroke-width: 1px;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.node .label {
|
|
354
|
+
text-align: center;
|
|
355
|
+
}
|
|
356
|
+
.node.clickable {
|
|
357
|
+
cursor: pointer;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.arrowheadPath {
|
|
361
|
+
fill: ${e.arrowheadColor};
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.edgePath .path {
|
|
365
|
+
stroke: ${e.lineColor};
|
|
366
|
+
stroke-width: 2.0px;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.flowchart-link {
|
|
370
|
+
stroke: ${e.lineColor};
|
|
371
|
+
fill: none;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.edgeLabel {
|
|
375
|
+
background-color: ${e.edgeLabelBackground};
|
|
376
|
+
rect {
|
|
377
|
+
opacity: 0.5;
|
|
378
|
+
background-color: ${e.edgeLabelBackground};
|
|
379
|
+
fill: ${e.edgeLabelBackground};
|
|
380
|
+
}
|
|
381
|
+
text-align: center;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* For html labels only */
|
|
385
|
+
.labelBkg {
|
|
386
|
+
background-color: ${le(e.edgeLabelBackground, 0.5)};
|
|
387
|
+
// background-color:
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.cluster rect {
|
|
391
|
+
fill: ${e.clusterBkg};
|
|
392
|
+
stroke: ${e.clusterBorder};
|
|
393
|
+
stroke-width: 1px;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.cluster text {
|
|
397
|
+
fill: ${e.titleColor};
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.cluster span,p {
|
|
401
|
+
color: ${e.titleColor};
|
|
402
|
+
}
|
|
403
|
+
/* .cluster div {
|
|
404
|
+
color: ${e.titleColor};
|
|
405
|
+
} */
|
|
406
|
+
|
|
407
|
+
div.mermaidTooltip {
|
|
408
|
+
position: absolute;
|
|
409
|
+
text-align: center;
|
|
410
|
+
max-width: 200px;
|
|
411
|
+
padding: 2px;
|
|
412
|
+
font-family: ${e.fontFamily};
|
|
413
|
+
font-size: 12px;
|
|
414
|
+
background: ${e.tertiaryColor};
|
|
415
|
+
border: 1px solid ${e.border2};
|
|
416
|
+
border-radius: 2px;
|
|
417
|
+
pointer-events: none;
|
|
418
|
+
z-index: 100;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.flowchartTitleText {
|
|
422
|
+
text-anchor: middle;
|
|
423
|
+
font-size: 18px;
|
|
424
|
+
fill: ${e.textColor};
|
|
425
|
+
}
|
|
426
|
+
`, fe = ae;
|
|
427
|
+
export {
|
|
428
|
+
H as Z,
|
|
429
|
+
pe as b,
|
|
430
|
+
Q as e,
|
|
431
|
+
be as f,
|
|
432
|
+
fe as h,
|
|
433
|
+
de as p,
|
|
434
|
+
ee as t,
|
|
435
|
+
we as u,
|
|
436
|
+
ue as w
|
|
437
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { aG as o, h as i } from "./index-s6Yb6o1D.js";
|
|
2
|
+
typeof window < "u" && (window.global = window);
|
|
3
|
+
const l = (s, t) => {
|
|
4
|
+
const r = s.append("rect");
|
|
5
|
+
if (r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), t.name && r.attr("name", t.name), t.rx !== void 0 && r.attr("rx", t.rx), t.ry !== void 0 && r.attr("ry", t.ry), t.attrs !== void 0)
|
|
6
|
+
for (const a in t.attrs)
|
|
7
|
+
r.attr(a, t.attrs[a]);
|
|
8
|
+
return t.class !== void 0 && r.attr("class", t.class), r;
|
|
9
|
+
}, c = (s, t) => {
|
|
10
|
+
const r = {
|
|
11
|
+
x: t.startx,
|
|
12
|
+
y: t.starty,
|
|
13
|
+
width: t.stopx - t.startx,
|
|
14
|
+
height: t.stopy - t.starty,
|
|
15
|
+
fill: t.fill,
|
|
16
|
+
stroke: t.stroke,
|
|
17
|
+
class: "rect"
|
|
18
|
+
};
|
|
19
|
+
l(s, r).lower();
|
|
20
|
+
}, h = (s, t) => {
|
|
21
|
+
const r = t.text.replace(o, " "), a = s.append("text");
|
|
22
|
+
a.attr("x", t.x), a.attr("y", t.y), a.attr("class", "legend"), a.style("text-anchor", t.anchor), t.class !== void 0 && a.attr("class", t.class);
|
|
23
|
+
const e = a.append("tspan");
|
|
24
|
+
return e.attr("x", t.x + t.textMargin * 2), e.text(r), a;
|
|
25
|
+
}, d = (s, t, r, a) => {
|
|
26
|
+
const e = s.append("image");
|
|
27
|
+
e.attr("x", t), e.attr("y", r);
|
|
28
|
+
const n = i.sanitizeUrl(a);
|
|
29
|
+
e.attr("xlink:href", n);
|
|
30
|
+
}, y = (s, t, r, a) => {
|
|
31
|
+
const e = s.append("use");
|
|
32
|
+
e.attr("x", t), e.attr("y", r);
|
|
33
|
+
const n = i.sanitizeUrl(a);
|
|
34
|
+
e.attr("xlink:href", `#${n}`);
|
|
35
|
+
}, p = () => ({
|
|
36
|
+
x: 0,
|
|
37
|
+
y: 0,
|
|
38
|
+
width: 100,
|
|
39
|
+
height: 100,
|
|
40
|
+
fill: "#EDF2AE",
|
|
41
|
+
stroke: "#666",
|
|
42
|
+
anchor: "start",
|
|
43
|
+
rx: 0,
|
|
44
|
+
ry: 0
|
|
45
|
+
}), f = () => ({
|
|
46
|
+
x: 0,
|
|
47
|
+
y: 0,
|
|
48
|
+
width: 100,
|
|
49
|
+
height: 100,
|
|
50
|
+
"text-anchor": "start",
|
|
51
|
+
style: "#666",
|
|
52
|
+
textMargin: 0,
|
|
53
|
+
rx: 0,
|
|
54
|
+
ry: 0,
|
|
55
|
+
tspan: !0
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
h as d,
|
|
59
|
+
f as g,
|
|
60
|
+
d as h,
|
|
61
|
+
l,
|
|
62
|
+
p,
|
|
63
|
+
c as x,
|
|
64
|
+
y
|
|
65
|
+
};
|