@zjlab-frontier/markdown 1.0.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/README.md +148 -0
- package/dist/Tableau10-D7jGxypv.mjs +8 -0
- package/dist/arc-BkFOiLi7.mjs +84 -0
- package/dist/array-CqVTtuYm.mjs +6 -0
- package/dist/blockDiagram-c4efeb88-CngVNufX.mjs +1221 -0
- package/dist/c4Diagram-c83219d4-CvSWXhSV.mjs +1579 -0
- package/dist/channel-BCTzeqLo.mjs +5 -0
- package/dist/classDiagram-beda092f-8UkpWDgI.mjs +218 -0
- package/dist/classDiagram-v2-2358418a-D3LsBhTm.mjs +200 -0
- package/dist/clone-DZgGXtyK.mjs +8 -0
- package/dist/createText-1719965b-DMv-Bu7A.mjs +155 -0
- package/dist/edges-96097737-BeVwLt3S.mjs +1088 -0
- package/dist/erDiagram-0228fc6a-GXXkRZ8r.mjs +929 -0
- package/dist/flowDb-c6c81e3f-CrOg5i55.mjs +1126 -0
- package/dist/flowDiagram-50d868cf-sXe_oFAW.mjs +788 -0
- package/dist/flowDiagram-v2-4f6560a1-CoKYvZkH.mjs +17 -0
- package/dist/flowchart-elk-definition-6af322e1-SuvGsuBl.mjs +48146 -0
- package/dist/ganttDiagram-a2739b55-BbWq9bqY.mjs +2477 -0
- package/dist/gitGraphDiagram-82fe8481-C6-e4UmK.mjs +1264 -0
- package/dist/graph-CoIGCRFf.mjs +847 -0
- package/dist/index-5325376f-BENBY8aO.mjs +373 -0
- package/dist/index-5_ujiRGo.mjs +46276 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +8 -0
- package/dist/index.umd.js +2421 -0
- package/dist/infoDiagram-8eee0895-BEAb2pCD.mjs +319 -0
- package/dist/init-DjUOC4st.mjs +16 -0
- package/dist/journeyDiagram-c64418c1-CERjyYnA.mjs +801 -0
- package/dist/layout-aCAVHR2T.mjs +1472 -0
- package/dist/line-BGunMwE-.mjs +33 -0
- package/dist/linear-DciWi0hE.mjs +423 -0
- package/dist/markdown.d.ts +25 -0
- package/dist/mindmap-definition-8da855dc-Cc8_U7zD.mjs +21936 -0
- package/dist/ordinal-C0oynhte.mjs +61 -0
- package/dist/path-DLwuMfdd.mjs +84 -0
- package/dist/pieDiagram-a8764435-B00hy7Ez.mjs +500 -0
- package/dist/quadrantDiagram-1e28029f-DR7IGAoM.mjs +903 -0
- package/dist/requirementDiagram-08caed73-o6N3X3-m.mjs +767 -0
- package/dist/sankeyDiagram-a04cb91d-CYF9Ro1W.mjs +802 -0
- package/dist/sequenceDiagram-c5b8d532-vz_R7xBU.mjs +2234 -0
- package/dist/stateDiagram-1ecb1508-B0YUHnuE.mjs +266 -0
- package/dist/stateDiagram-v2-c2b004d7-CDTm1Jfb.mjs +184 -0
- package/dist/styles/highlight.scss +115 -0
- package/dist/styles/markdown.scss +1163 -0
- package/dist/styles-b4e223ce-C_-huVuQ.mjs +1089 -0
- package/dist/styles-ca3715f6-soe07Bnw.mjs +960 -0
- package/dist/styles-d45a18b0-0ZXwJp5P.mjs +436 -0
- package/dist/svgDrawCommon-b86b1483-UCLksviB.mjs +64 -0
- package/dist/timeline-definition-faaaa080-Dt5unv7p.mjs +792 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/xychartDiagram-f5964ef8-BZWS0E_9.mjs +1282 -0
- package/package.json +66 -0
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
import { S as z, v as R, x as F, y as U, z as j, A as H, l as g, g as S, d as C, B as K, o as W, p as N, q as E, n as L, t as G, k as q, r as X } from "./index-5_ujiRGo.mjs";
|
|
2
|
+
import { G as J } from "./graph-CoIGCRFf.mjs";
|
|
3
|
+
import { r as Q } from "./index-5325376f-BENBY8aO.mjs";
|
|
4
|
+
import { c as Y } from "./channel-BCTzeqLo.mjs";
|
|
5
|
+
function Z(e) {
|
|
6
|
+
return typeof e == "string" ? new z([document.querySelectorAll(e)], [document.documentElement]) : new z([F(e)], R);
|
|
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 (j(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 (X(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(q.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 G(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 G(
|
|
227
|
+
n.text.replace(q.lineBreakRegex, `
|
|
228
|
+
`),
|
|
229
|
+
S()
|
|
230
|
+
), 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);
|
|
231
|
+
}
|
|
232
|
+
}, le = function(e, l) {
|
|
233
|
+
return l.db.getClasses();
|
|
234
|
+
}, ae = async function(e, l, c, a) {
|
|
235
|
+
g.info("Drawing flowchart");
|
|
236
|
+
let i = a.db.getDirection();
|
|
237
|
+
i === void 0 && (i = "TD");
|
|
238
|
+
const { securityLevel: d, flowchart: u } = S(), n = u.nodeSpacing || 50, p = u.rankSpacing || 50;
|
|
239
|
+
let r;
|
|
240
|
+
d === "sandbox" && (r = C("#i" + l));
|
|
241
|
+
const y = d === "sandbox" ? C(r.nodes()[0].contentDocument.body) : C("body"), w = d === "sandbox" ? r.nodes()[0].contentDocument : document, t = new J({
|
|
242
|
+
multigraph: !0,
|
|
243
|
+
compound: !0
|
|
244
|
+
}).setGraph({
|
|
245
|
+
rankdir: i,
|
|
246
|
+
nodesep: n,
|
|
247
|
+
ranksep: p,
|
|
248
|
+
marginx: 0,
|
|
249
|
+
marginy: 0
|
|
250
|
+
}).setDefaultEdgeLabel(function() {
|
|
251
|
+
return {};
|
|
252
|
+
});
|
|
253
|
+
let s;
|
|
254
|
+
const b = a.db.getSubGraphs();
|
|
255
|
+
g.info("Subgraphs - ", b);
|
|
256
|
+
for (let f = b.length - 1; f >= 0; f--)
|
|
257
|
+
s = b[f], g.info("Subgraph - ", s), a.db.addVertex(
|
|
258
|
+
s.id,
|
|
259
|
+
{ text: s.title, type: s.labelType },
|
|
260
|
+
"group",
|
|
261
|
+
void 0,
|
|
262
|
+
s.classes,
|
|
263
|
+
s.dir
|
|
264
|
+
);
|
|
265
|
+
const o = a.db.getVertices(), T = a.db.getEdges();
|
|
266
|
+
g.info("Edges", T);
|
|
267
|
+
let k = 0;
|
|
268
|
+
for (k = b.length - 1; k >= 0; k--) {
|
|
269
|
+
s = b[k], Z("cluster").append("text");
|
|
270
|
+
for (let f = 0; f < s.nodes.length; f++)
|
|
271
|
+
g.info("Setting up subgraphs", s.nodes[f], s.id), t.setParent(s.nodes[f], s.id);
|
|
272
|
+
}
|
|
273
|
+
await V(o, t, l, y, w, a), await M(T, t);
|
|
274
|
+
const _ = y.select(`[id="${l}"]`), $ = y.select("#" + l + " g");
|
|
275
|
+
if (await Q($, t, ["point", "circle", "cross"], "flowchart", l), K.insertTitle(_, "flowchartTitleText", u.titleTopMargin, a.db.getDiagramTitle()), W(t, _, u.diagramPadding, u.useMaxWidth), a.db.indexNodes("subGraph" + k), !u.htmlLabels) {
|
|
276
|
+
const f = w.querySelectorAll('[id="' + l + '"] .edgeLabel .label');
|
|
277
|
+
for (const x of f) {
|
|
278
|
+
const m = x.getBBox(), h = w.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
279
|
+
h.setAttribute("rx", 0), h.setAttribute("ry", 0), h.setAttribute("width", m.width), h.setAttribute("height", m.height), x.insertBefore(h, x.firstChild);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
Object.keys(o).forEach(function(f) {
|
|
283
|
+
const x = o[f];
|
|
284
|
+
if (x.link) {
|
|
285
|
+
const m = C("#" + l + ' [id="' + f + '"]');
|
|
286
|
+
if (m) {
|
|
287
|
+
const h = w.createElementNS("http://www.w3.org/2000/svg", "a");
|
|
288
|
+
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);
|
|
289
|
+
const B = m.insert(function() {
|
|
290
|
+
return h;
|
|
291
|
+
}, ":first-child"), I = m.select(".label-container");
|
|
292
|
+
I && B.append(function() {
|
|
293
|
+
return I.node();
|
|
294
|
+
});
|
|
295
|
+
const D = m.select(".label");
|
|
296
|
+
D && B.append(function() {
|
|
297
|
+
return D.node();
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
}, we = {
|
|
303
|
+
setConf: re,
|
|
304
|
+
addVertices: V,
|
|
305
|
+
addEdges: M,
|
|
306
|
+
getClasses: le,
|
|
307
|
+
draw: ae
|
|
308
|
+
}, oe = (e, l) => {
|
|
309
|
+
const c = Y, a = c(e, "r"), i = c(e, "g"), d = c(e, "b");
|
|
310
|
+
return H(a, i, d, l);
|
|
311
|
+
}, ne = (e) => `.label {
|
|
312
|
+
font-family: ${e.fontFamily};
|
|
313
|
+
color: ${e.nodeTextColor || e.textColor};
|
|
314
|
+
}
|
|
315
|
+
.cluster-label text {
|
|
316
|
+
fill: ${e.titleColor};
|
|
317
|
+
}
|
|
318
|
+
.cluster-label span,p {
|
|
319
|
+
color: ${e.titleColor};
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.label text,span,p {
|
|
323
|
+
fill: ${e.nodeTextColor || e.textColor};
|
|
324
|
+
color: ${e.nodeTextColor || e.textColor};
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.node rect,
|
|
328
|
+
.node circle,
|
|
329
|
+
.node ellipse,
|
|
330
|
+
.node polygon,
|
|
331
|
+
.node path {
|
|
332
|
+
fill: ${e.mainBkg};
|
|
333
|
+
stroke: ${e.nodeBorder};
|
|
334
|
+
stroke-width: 1px;
|
|
335
|
+
}
|
|
336
|
+
.flowchart-label text {
|
|
337
|
+
text-anchor: middle;
|
|
338
|
+
}
|
|
339
|
+
// .flowchart-label .text-outer-tspan {
|
|
340
|
+
// text-anchor: middle;
|
|
341
|
+
// }
|
|
342
|
+
// .flowchart-label .text-inner-tspan {
|
|
343
|
+
// text-anchor: start;
|
|
344
|
+
// }
|
|
345
|
+
|
|
346
|
+
.node .katex path {
|
|
347
|
+
fill: #000;
|
|
348
|
+
stroke: #000;
|
|
349
|
+
stroke-width: 1px;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.node .label {
|
|
353
|
+
text-align: center;
|
|
354
|
+
}
|
|
355
|
+
.node.clickable {
|
|
356
|
+
cursor: pointer;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.arrowheadPath {
|
|
360
|
+
fill: ${e.arrowheadColor};
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.edgePath .path {
|
|
364
|
+
stroke: ${e.lineColor};
|
|
365
|
+
stroke-width: 2.0px;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.flowchart-link {
|
|
369
|
+
stroke: ${e.lineColor};
|
|
370
|
+
fill: none;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.edgeLabel {
|
|
374
|
+
background-color: ${e.edgeLabelBackground};
|
|
375
|
+
rect {
|
|
376
|
+
opacity: 0.5;
|
|
377
|
+
background-color: ${e.edgeLabelBackground};
|
|
378
|
+
fill: ${e.edgeLabelBackground};
|
|
379
|
+
}
|
|
380
|
+
text-align: center;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* For html labels only */
|
|
384
|
+
.labelBkg {
|
|
385
|
+
background-color: ${oe(e.edgeLabelBackground, 0.5)};
|
|
386
|
+
// background-color:
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.cluster rect {
|
|
390
|
+
fill: ${e.clusterBkg};
|
|
391
|
+
stroke: ${e.clusterBorder};
|
|
392
|
+
stroke-width: 1px;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.cluster text {
|
|
396
|
+
fill: ${e.titleColor};
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.cluster span,p {
|
|
400
|
+
color: ${e.titleColor};
|
|
401
|
+
}
|
|
402
|
+
/* .cluster div {
|
|
403
|
+
color: ${e.titleColor};
|
|
404
|
+
} */
|
|
405
|
+
|
|
406
|
+
div.mermaidTooltip {
|
|
407
|
+
position: absolute;
|
|
408
|
+
text-align: center;
|
|
409
|
+
max-width: 200px;
|
|
410
|
+
padding: 2px;
|
|
411
|
+
font-family: ${e.fontFamily};
|
|
412
|
+
font-size: 12px;
|
|
413
|
+
background: ${e.tertiaryColor};
|
|
414
|
+
border: 1px solid ${e.border2};
|
|
415
|
+
border-radius: 2px;
|
|
416
|
+
pointer-events: none;
|
|
417
|
+
z-index: 100;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.flowchartTitleText {
|
|
421
|
+
text-anchor: middle;
|
|
422
|
+
font-size: 18px;
|
|
423
|
+
fill: ${e.textColor};
|
|
424
|
+
}
|
|
425
|
+
`, he = ne;
|
|
426
|
+
export {
|
|
427
|
+
ee as a,
|
|
428
|
+
te as b,
|
|
429
|
+
ue as c,
|
|
430
|
+
fe as d,
|
|
431
|
+
be as e,
|
|
432
|
+
he as f,
|
|
433
|
+
we as g,
|
|
434
|
+
pe as i,
|
|
435
|
+
Z as s
|
|
436
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ao as o, j as i } from "./index-5_ujiRGo.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
|
+
}, p = () => ({
|
|
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
|
+
}), g = () => ({
|
|
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
|
+
g as b,
|
|
59
|
+
y as c,
|
|
60
|
+
l as d,
|
|
61
|
+
h as e,
|
|
62
|
+
d as f,
|
|
63
|
+
p as g
|
|
64
|
+
};
|