@kong-ui-public/documentation 0.7.2 → 0.7.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/arc-BOwQG9_0-DleiJ5MN.js +86 -0
- package/dist/{blockDiagram-9f4a6865-IUliCiDO-CB0IBm1m.js → blockDiagram-6b2b5046-Nxmf6ECX-CjmiHCoc.js} +106 -106
- package/dist/{c4Diagram-ae766693-CraPSkgX-CsP6MA7_.js → c4Diagram-b947cdbb-Cqv3kxuJ-BXRu2bPz.js} +132 -133
- package/dist/{channel-BN6QTnj4-CfiMWXq0.js → channel-b8lMD3zZ-Ds1AntZz.js} +1 -1
- package/dist/{classDiagram-fb54d2a0-DXWl4-1y-CoIPJ9Tf.js → classDiagram-35230388-cNSawuF--DF1WKJvq.js} +7 -8
- package/dist/{classDiagram-v2-a2b738ad-CuRy1r-r-SMHLTRcJ.js → classDiagram-v2-412acd34-DL9yPzEL-1zjaSugS.js} +8 -8
- package/dist/{clone-DPlFlx1_-B6OhGku3.js → clone-DA9j_md9-DOEHuNxk.js} +1 -1
- package/dist/{createText-ca0c5216-BJXIFjUv-B9Xp5z9K.js → createText-423428c9-Bi8tqKOA-BAeSkls4.js} +1 -2
- package/dist/documentation.es.js +2 -2
- package/dist/documentation.umd.js +724 -995
- package/dist/{edges-066a5561-DyIiUH3I-B88mxBJO.js → edges-d417c7a0-CyiospL7-DxH-v6Cl.js} +27 -28
- package/dist/{erDiagram-09d1c15f-DaNxb97t-DI2sOo4s.js → erDiagram-0ea73325-BWWWgAmd-aPslvlbz.js} +38 -38
- package/dist/{flowDb-c1833063-4TreIkwu-DLOEDd2f.js → flowDb-d35e309a-BQRCRAKf-Cf6biv5M.js} +4 -4
- package/dist/{flowDiagram-b222e15a-Bz6kEL6X-B4McfssH.js → flowDiagram-d949d7c1-D_OK65PK-DS0CyGIC.js} +329 -337
- package/dist/{flowDiagram-v2-13329dc7-BSJVxEBD-CR0v6C6O.js → flowDiagram-v2-49332944-CYs4MQAb-C9m-G3JY.js} +5 -5
- package/dist/{flowchart-elk-definition-ae0efee6-D_SQlTEw-DHjq3NxL.js → flowchart-elk-definition-27cc417a-OqMBrUum-CbH3NCkB.js} +12750 -12752
- package/dist/{ganttDiagram-b62c793e-w82uNNex-OPrei_7k.js → ganttDiagram-5c869e3b-Cu9aCqHh-De0u-Oas.js} +477 -488
- package/dist/gitGraphDiagram-b9d81de9-DVB2N99Y-C2np-enA.js +1262 -0
- package/dist/go-BEtjQGEI-BEtjQGEI.js +7 -0
- package/dist/{graph-Bb1vku7A-CjMAyaMV.js → graph-Ctghcdhb-CqAdUKOZ.js} +3 -3
- package/dist/{index-01f381cb-DFAckdb4-DP_D7ZMM.js → index-8fae9850-CdUaE101-uMPVRleJ.js} +11 -11
- package/dist/{index-74HaIrFw.js → index-BRYBB2aM.js} +6920 -6981
- package/dist/{infoDiagram-94cd232f-iYUDXeae-DbxyZ1YG.js → infoDiagram-db7b18fc-MHPWI9K2-Cy6tzigE.js} +16 -16
- package/dist/{journeyDiagram-6625b456-D9SzlG49-D9WC6928.js → journeyDiagram-d5636530-O6dkdrZq-BghpQv6u.js} +42 -42
- package/dist/{latex-CoJDAuLL-lJGSmtOO.js → latex-BOFs-Cxs-XUibdaju.js} +1 -1
- package/dist/{layout-BXWpVE1y-Dpdx9MjN.js → layout-Bf4siL6f-B27qrAUf.js} +110 -110
- package/dist/{line-cygqshb4-ChLkD5zh.js → line-Bs4J8z8n-kq8RtDQA.js} +1 -1
- package/dist/{linear-c7VKFbmv-Bcl7PKrY.js → linear-DG5qhwMV-BSSd8kt2.js} +21 -21
- package/dist/{mindmap-definition-307c710a-Dtax51Qo-DiTPR9DS.js → mindmap-definition-377f8f1f-BJZNhhv8-Cinm-UDt.js} +6496 -6729
- package/dist/{pieDiagram-bb1d19e5-MIBQswLW-DwEeDM9B.js → pieDiagram-b0208e96-12B2qtCQ-Bl-9vJIA.js} +68 -68
- package/dist/{quadrantDiagram-c759a472-CUBvKLS1-BFYNBXmR.js → quadrantDiagram-0332be45-B77W50pM-bQiH7XpR.js} +2 -2
- package/dist/{requirementDiagram-87253d64-BZrSGm9j-BTMRMufk.js → requirementDiagram-bf7890df-BfPNYjQ5-CGF46ifn.js} +30 -30
- package/dist/{sankeyDiagram-707fac0f-BMrqHGsv-B27LQLYG.js → sankeyDiagram-0acdec17-D5aZuYoJ-DIWEEtuf.js} +22 -22
- package/dist/{sequenceDiagram-6894f283-CKZurmNK-kn3T54cJ.js → sequenceDiagram-c18d009d-DE6VyN7w-6UaAYk4p.js} +808 -841
- package/dist/{stateDiagram-5dee940d-uylU1OS0-DApYcfZ7.js → stateDiagram-43596fc0-CfGH1LmM-km5kjci0.js} +54 -54
- package/dist/{stateDiagram-v2-1992cada-JYJWGRv5-C-8aN2Zs.js → stateDiagram-v2-2ead4f9c-CvDoRhMn-CkUl-Lcu.js} +12 -12
- package/dist/style.css +1 -1
- package/dist/{styles-b83b31c9-BkcEKpp1-AMZ_2CDs.js → styles-6860f46c-CJplL-uW-BFTTeCMF.js} +19 -19
- package/dist/{styles-483fbfea-_Tntk7zw-BMvdfSW3.js → styles-7383a064-N1ljH9gq-D7Iipjtf.js} +137 -140
- package/dist/{styles-0784dbeb-CN_Kv1lZ-BqcZ7Gdy.js → styles-b2c874b6-CKJLyUE4-2C22cylE.js} +24 -24
- package/dist/{svgDrawCommon-5e1cfd1d--PZSQhO7-VrjnCid8.js → svgDrawCommon-0ee1b4e9-Dc25Bs_w-QhIkJ1Xp.js} +4 -4
- package/dist/{timeline-definition-bf702344-DVMY6q6d-BYAHqkvN.js → timeline-definition-d977decf-8C3XuDC--DAD2knZY.js} +2 -2
- package/dist/{vue-Djs4WzmL-BDWKKO52.js → vue-DoU_Nr9K-Cj2gXb1y.js} +2 -2
- package/dist/{vue-html-CdlOxrsR-C0P0LsFn.js → vue-html-iC7i5f9n-Cfh5ktA3.js} +1 -1
- package/dist/{xychartDiagram-f11f50a6-CfFXg3YO-BJuC_16u.js → xychartDiagram-e50adddc-BRQAut2i-DBHY1QQ6.js} +22 -22
- package/package.json +5 -5
- package/dist/arc-Db-G4La6-9oHI8HT5.js +0 -86
- package/dist/gitGraphDiagram-942e62fe-DN0JwANo-r5Axb-YL.js +0 -1264
- package/dist/go-DYNyFS5n-DYNyFS5n.js +0 -7
- package/dist/katex-BQC_klMa-CaeA20wX.js +0 -11636
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Y as
|
|
2
|
-
import { o as
|
|
3
|
-
import { b as
|
|
4
|
-
import { t as
|
|
5
|
-
function
|
|
6
|
-
return typeof e == "string" ? new
|
|
1
|
+
import { Y as P } from "./graph-Ctghcdhb-CqAdUKOZ.js";
|
|
2
|
+
import { o as A, l as g, p as F, c as _, j as D, q as $, r as C, h as T, y as G, t as V, af as j, ag as M, ah as R, ai as Y, aj as U, J } from "./index-BRYBB2aM.js";
|
|
3
|
+
import { b as Q } from "./index-8fae9850-CdUaE101-uMPVRleJ.js";
|
|
4
|
+
import { t as W } from "./channel-b8lMD3zZ-Ds1AntZz.js";
|
|
5
|
+
function X(e) {
|
|
6
|
+
return typeof e == "string" ? new j([document.querySelectorAll(e)], [document.documentElement]) : new j([R(e)], M);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function ce(e, o) {
|
|
9
9
|
return !!e.children(o).length;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
return
|
|
11
|
+
function de(e) {
|
|
12
|
+
return E(e.v) + ":" + E(e.w) + ":" + E(e.name);
|
|
13
13
|
}
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
return e ? String(e).replace(
|
|
14
|
+
var Z = /:/g;
|
|
15
|
+
function E(e) {
|
|
16
|
+
return e ? String(e).replace(Z, "\\:") : "";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function H(e, o) {
|
|
19
19
|
o && e.attr("style", o);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function pe(e, o, c) {
|
|
22
22
|
o && e.attr("class", o).attr("class", c + " " + e.attr("class"));
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function be(e, o) {
|
|
25
25
|
var c = o.graph();
|
|
26
|
-
if (
|
|
26
|
+
if (U(c)) {
|
|
27
27
|
var a = c.transition;
|
|
28
|
-
if (
|
|
28
|
+
if (J(a))
|
|
29
29
|
return a(e);
|
|
30
30
|
}
|
|
31
31
|
return e;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function K(e, o) {
|
|
34
34
|
var c = e.append("foreignObject").attr("width", "100000"), a = c.append("xhtml:div");
|
|
35
35
|
a.attr("xmlns", "http://www.w3.org/1999/xhtml");
|
|
36
36
|
var i = o.label;
|
|
@@ -46,42 +46,46 @@ function ee(e, o) {
|
|
|
46
46
|
default:
|
|
47
47
|
a.html(i);
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
var
|
|
51
|
-
return c.attr("width",
|
|
49
|
+
H(a, o.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
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const z = {}, ee = function(e) {
|
|
54
54
|
const o = Object.keys(e);
|
|
55
55
|
for (const c of o)
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
const r = e[
|
|
61
|
-
let
|
|
62
|
-
r.classes.length > 0 && (
|
|
63
|
-
const
|
|
64
|
-
let
|
|
56
|
+
z[c] = e[c];
|
|
57
|
+
}, I = function(e, o, c, a, i, d) {
|
|
58
|
+
const b = a.select(`[id="${c}"]`);
|
|
59
|
+
Object.keys(e).forEach(function(n) {
|
|
60
|
+
const r = e[n];
|
|
61
|
+
let u = "default";
|
|
62
|
+
r.classes.length > 0 && (u = r.classes.join(" ")), u = u + " flowchart-label";
|
|
63
|
+
const h = A(r.styles);
|
|
64
|
+
let y = r.text !== void 0 ? r.text : r.id, t;
|
|
65
65
|
if (g.info("vertex", r, r.labelType), r.labelType === "markdown")
|
|
66
66
|
g.info("vertex", r, r.labelType);
|
|
67
|
-
else if (
|
|
68
|
-
|
|
69
|
-
label:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
else if (F(_().flowchart.htmlLabels)) {
|
|
68
|
+
const w = {
|
|
69
|
+
label: y.replace(
|
|
70
|
+
/fa[blrs]?:fa-[\w-]+/g,
|
|
71
|
+
(S) => `<i class='${S.replace(":", " ")}'></i>`
|
|
72
|
+
)
|
|
73
|
+
};
|
|
74
|
+
t = K(b, w).node(), t.parentNode.removeChild(t);
|
|
75
|
+
} else {
|
|
76
|
+
const w = i.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
77
|
+
w.setAttribute("style", h.labelStyle.replace("color:", "fill:"));
|
|
78
|
+
const S = y.split(D.lineBreakRegex);
|
|
79
|
+
for (const m of S) {
|
|
80
|
+
const x = i.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
81
|
+
x.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), x.setAttribute("dy", "1em"), x.setAttribute("x", "1"), x.textContent = m, w.appendChild(x);
|
|
78
82
|
}
|
|
79
|
-
|
|
83
|
+
t = w;
|
|
80
84
|
}
|
|
81
|
-
let
|
|
85
|
+
let s = 0, l = "";
|
|
82
86
|
switch (r.type) {
|
|
83
87
|
case "round":
|
|
84
|
-
|
|
88
|
+
s = 5, l = "rect";
|
|
85
89
|
break;
|
|
86
90
|
case "square":
|
|
87
91
|
l = "rect";
|
|
@@ -134,59 +138,58 @@ const O = {}, te = function(e) {
|
|
|
134
138
|
default:
|
|
135
139
|
l = "rect";
|
|
136
140
|
}
|
|
137
|
-
const S = await I(t, v());
|
|
138
141
|
o.setNode(r.id, {
|
|
139
|
-
labelStyle:
|
|
142
|
+
labelStyle: h.labelStyle,
|
|
140
143
|
shape: l,
|
|
141
|
-
labelText:
|
|
144
|
+
labelText: y,
|
|
142
145
|
labelType: r.labelType,
|
|
143
|
-
rx:
|
|
144
|
-
ry:
|
|
145
|
-
class:
|
|
146
|
-
style:
|
|
146
|
+
rx: s,
|
|
147
|
+
ry: s,
|
|
148
|
+
class: u,
|
|
149
|
+
style: h.style,
|
|
147
150
|
id: r.id,
|
|
148
151
|
link: r.link,
|
|
149
152
|
linkTarget: r.linkTarget,
|
|
150
|
-
tooltip:
|
|
151
|
-
domId:
|
|
153
|
+
tooltip: d.db.getTooltip(r.id) || "",
|
|
154
|
+
domId: d.db.lookUpDomId(r.id),
|
|
152
155
|
haveCallback: r.haveCallback,
|
|
153
156
|
width: r.type === "group" ? 500 : void 0,
|
|
154
157
|
dir: r.dir,
|
|
155
158
|
type: r.type,
|
|
156
159
|
props: r.props,
|
|
157
|
-
padding:
|
|
160
|
+
padding: _().flowchart.padding
|
|
158
161
|
}), g.info("setNode", {
|
|
159
|
-
labelStyle:
|
|
162
|
+
labelStyle: h.labelStyle,
|
|
160
163
|
labelType: r.labelType,
|
|
161
164
|
shape: l,
|
|
162
|
-
labelText:
|
|
163
|
-
rx:
|
|
164
|
-
ry:
|
|
165
|
-
class:
|
|
166
|
-
style:
|
|
165
|
+
labelText: y,
|
|
166
|
+
rx: s,
|
|
167
|
+
ry: s,
|
|
168
|
+
class: u,
|
|
169
|
+
style: h.style,
|
|
167
170
|
id: r.id,
|
|
168
|
-
domId:
|
|
171
|
+
domId: d.db.lookUpDomId(r.id),
|
|
169
172
|
width: r.type === "group" ? 500 : void 0,
|
|
170
173
|
type: r.type,
|
|
171
174
|
dir: r.dir,
|
|
172
175
|
props: r.props,
|
|
173
|
-
padding:
|
|
176
|
+
padding: _().flowchart.padding
|
|
174
177
|
});
|
|
175
|
-
}
|
|
176
|
-
}, q =
|
|
178
|
+
});
|
|
179
|
+
}, q = function(e, o, c) {
|
|
177
180
|
g.info("abc78 edges = ", e);
|
|
178
|
-
let a = 0, i = {},
|
|
181
|
+
let a = 0, i = {}, d, b;
|
|
179
182
|
if (e.defaultStyle !== void 0) {
|
|
180
|
-
const n =
|
|
181
|
-
|
|
183
|
+
const n = A(e.defaultStyle);
|
|
184
|
+
d = n.style, b = n.labelStyle;
|
|
182
185
|
}
|
|
183
|
-
|
|
186
|
+
e.forEach(function(n) {
|
|
184
187
|
a++;
|
|
185
|
-
const
|
|
186
|
-
i[
|
|
187
|
-
let
|
|
188
|
-
g.info("abc78 new link id to be used is",
|
|
189
|
-
const
|
|
188
|
+
const r = "L-" + n.start + "-" + n.end;
|
|
189
|
+
i[r] === void 0 ? (i[r] = 0, g.info("abc78 new entry", r, i[r])) : (i[r]++, g.info("abc78 new entry", r, i[r]));
|
|
190
|
+
let u = r + "-" + i[r];
|
|
191
|
+
g.info("abc78 new link id to be used is", r, u, i[r]);
|
|
192
|
+
const h = "LS-" + n.start, y = "LE-" + n.end, t = { style: "", labelStyle: "" };
|
|
190
193
|
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
194
|
case "double_arrow_cross":
|
|
192
195
|
t.arrowTypeStart = "arrow_cross";
|
|
@@ -204,10 +207,10 @@ const O = {}, te = function(e) {
|
|
|
204
207
|
t.arrowTypeEnd = "arrow_circle";
|
|
205
208
|
break;
|
|
206
209
|
}
|
|
207
|
-
let s = "",
|
|
210
|
+
let s = "", l = "";
|
|
208
211
|
switch (n.stroke) {
|
|
209
212
|
case "normal":
|
|
210
|
-
s = "fill:none;",
|
|
213
|
+
s = "fill:none;", d !== void 0 && (s = d), b !== void 0 && (l = b), t.thickness = "normal", t.pattern = "solid";
|
|
211
214
|
break;
|
|
212
215
|
case "dotted":
|
|
213
216
|
t.thickness = "normal", t.pattern = "dotted", t.style = "fill:none;stroke-width:2px;stroke-dasharray:3;";
|
|
@@ -220,38 +223,38 @@ const O = {}, te = function(e) {
|
|
|
220
223
|
break;
|
|
221
224
|
}
|
|
222
225
|
if (n.style !== void 0) {
|
|
223
|
-
const
|
|
224
|
-
s =
|
|
226
|
+
const w = A(n.style);
|
|
227
|
+
s = w.style, l = w.labelStyle;
|
|
225
228
|
}
|
|
226
|
-
t.style = t.style += s, t.labelStyle = t.labelStyle +=
|
|
227
|
-
`),
|
|
228
|
-
}
|
|
229
|
-
},
|
|
229
|
+
t.style = t.style += s, t.labelStyle = t.labelStyle += l, n.interpolate !== void 0 ? t.curve = $(n.interpolate, C) : e.defaultInterpolate !== void 0 ? t.curve = $(e.defaultInterpolate, C) : t.curve = $(z.curve, C), 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 = n.text.replace(D.lineBreakRegex, `
|
|
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 = u, t.classes = "flowchart-link " + h + " " + y, o.setEdge(n.start, n.end, t, a);
|
|
231
|
+
});
|
|
232
|
+
}, te = function(e, o) {
|
|
230
233
|
return o.db.getClasses();
|
|
231
|
-
},
|
|
234
|
+
}, re = async function(e, o, c, a) {
|
|
232
235
|
g.info("Drawing flowchart");
|
|
233
236
|
let i = a.db.getDirection();
|
|
234
237
|
i === void 0 && (i = "TD");
|
|
235
|
-
const { securityLevel:
|
|
236
|
-
let
|
|
237
|
-
|
|
238
|
-
const
|
|
238
|
+
const { securityLevel: d, flowchart: b } = _(), n = b.nodeSpacing || 50, r = b.rankSpacing || 50;
|
|
239
|
+
let u;
|
|
240
|
+
d === "sandbox" && (u = T("#i" + o));
|
|
241
|
+
const h = d === "sandbox" ? T(u.nodes()[0].contentDocument.body) : T("body"), y = d === "sandbox" ? u.nodes()[0].contentDocument : document, t = new P({
|
|
239
242
|
multigraph: !0,
|
|
240
243
|
compound: !0
|
|
241
244
|
}).setGraph({
|
|
242
245
|
rankdir: i,
|
|
243
246
|
nodesep: n,
|
|
244
|
-
ranksep:
|
|
247
|
+
ranksep: r,
|
|
245
248
|
marginx: 0,
|
|
246
249
|
marginy: 0
|
|
247
250
|
}).setDefaultEdgeLabel(function() {
|
|
248
251
|
return {};
|
|
249
252
|
});
|
|
250
253
|
let s;
|
|
251
|
-
const
|
|
252
|
-
g.info("Subgraphs - ",
|
|
253
|
-
for (let
|
|
254
|
-
s =
|
|
254
|
+
const l = a.db.getSubGraphs();
|
|
255
|
+
g.info("Subgraphs - ", l);
|
|
256
|
+
for (let p = l.length - 1; p >= 0; p--)
|
|
257
|
+
s = l[p], g.info("Subgraph - ", s), a.db.addVertex(
|
|
255
258
|
s.id,
|
|
256
259
|
{ text: s.title, type: s.labelType },
|
|
257
260
|
"group",
|
|
@@ -259,52 +262,52 @@ const O = {}, te = function(e) {
|
|
|
259
262
|
s.classes,
|
|
260
263
|
s.dir
|
|
261
264
|
);
|
|
262
|
-
const
|
|
265
|
+
const w = a.db.getVertices(), S = a.db.getEdges();
|
|
263
266
|
g.info("Edges", S);
|
|
264
|
-
let
|
|
265
|
-
for (
|
|
266
|
-
s =
|
|
267
|
-
for (let
|
|
268
|
-
g.info("Setting up subgraphs", s.nodes[
|
|
267
|
+
let m = 0;
|
|
268
|
+
for (m = l.length - 1; m >= 0; m--) {
|
|
269
|
+
s = l[m], X("cluster").append("text");
|
|
270
|
+
for (let p = 0; p < s.nodes.length; p++)
|
|
271
|
+
g.info("Setting up subgraphs", s.nodes[p], s.id), t.setParent(s.nodes[p], s.id);
|
|
269
272
|
}
|
|
270
|
-
|
|
271
|
-
const
|
|
272
|
-
if (await
|
|
273
|
-
const
|
|
274
|
-
for (const
|
|
275
|
-
const
|
|
276
|
-
|
|
273
|
+
I(w, t, o, h, y, a), q(S, t);
|
|
274
|
+
const x = h.select(`[id="${o}"]`), O = h.select("#" + o + " g");
|
|
275
|
+
if (await Q(O, t, ["point", "circle", "cross"], "flowchart", o), G.insertTitle(x, "flowchartTitleText", b.titleTopMargin, a.db.getDiagramTitle()), V(t, x, b.diagramPadding, b.useMaxWidth), a.db.indexNodes("subGraph" + m), !b.htmlLabels) {
|
|
276
|
+
const p = y.querySelectorAll('[id="' + o + '"] .edgeLabel .label');
|
|
277
|
+
for (const k of p) {
|
|
278
|
+
const v = k.getBBox(), f = y.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
279
|
+
f.setAttribute("rx", 0), f.setAttribute("ry", 0), f.setAttribute("width", v.width), f.setAttribute("height", v.height), k.insertBefore(f, k.firstChild);
|
|
277
280
|
}
|
|
278
281
|
}
|
|
279
|
-
Object.keys(
|
|
280
|
-
const
|
|
281
|
-
if (
|
|
282
|
-
const
|
|
283
|
-
if (
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
const
|
|
287
|
-
return
|
|
288
|
-
}, ":first-child"),
|
|
289
|
-
|
|
290
|
-
return
|
|
282
|
+
Object.keys(w).forEach(function(p) {
|
|
283
|
+
const k = w[p];
|
|
284
|
+
if (k.link) {
|
|
285
|
+
const v = T("#" + o + ' [id="' + p + '"]');
|
|
286
|
+
if (v) {
|
|
287
|
+
const f = y.createElementNS("http://www.w3.org/2000/svg", "a");
|
|
288
|
+
f.setAttributeNS("http://www.w3.org/2000/svg", "class", k.classes.join(" ")), f.setAttributeNS("http://www.w3.org/2000/svg", "href", k.link), f.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), d === "sandbox" ? f.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : k.linkTarget && f.setAttributeNS("http://www.w3.org/2000/svg", "target", k.linkTarget);
|
|
289
|
+
const B = v.insert(function() {
|
|
290
|
+
return f;
|
|
291
|
+
}, ":first-child"), L = v.select(".label-container");
|
|
292
|
+
L && B.append(function() {
|
|
293
|
+
return L.node();
|
|
291
294
|
});
|
|
292
|
-
const
|
|
293
|
-
|
|
294
|
-
return
|
|
295
|
+
const N = v.select(".label");
|
|
296
|
+
N && B.append(function() {
|
|
297
|
+
return N.node();
|
|
295
298
|
});
|
|
296
299
|
}
|
|
297
300
|
}
|
|
298
301
|
});
|
|
299
302
|
}, ue = {
|
|
300
|
-
setConf:
|
|
301
|
-
addVertices:
|
|
303
|
+
setConf: ee,
|
|
304
|
+
addVertices: I,
|
|
302
305
|
addEdges: q,
|
|
303
|
-
getClasses:
|
|
304
|
-
draw:
|
|
305
|
-
},
|
|
306
|
-
const c =
|
|
307
|
-
return
|
|
306
|
+
getClasses: te,
|
|
307
|
+
draw: re
|
|
308
|
+
}, oe = (e, o) => {
|
|
309
|
+
const c = W, a = c(e, "r"), i = c(e, "g"), d = c(e, "b");
|
|
310
|
+
return Y(a, i, d, o);
|
|
308
311
|
}, le = (e) => `.label {
|
|
309
312
|
font-family: ${e.fontFamily};
|
|
310
313
|
color: ${e.nodeTextColor || e.textColor};
|
|
@@ -340,12 +343,6 @@ const O = {}, te = function(e) {
|
|
|
340
343
|
// text-anchor: start;
|
|
341
344
|
// }
|
|
342
345
|
|
|
343
|
-
.node .katex path {
|
|
344
|
-
fill: #000;
|
|
345
|
-
stroke: #000;
|
|
346
|
-
stroke-width: 1px;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
346
|
.node .label {
|
|
350
347
|
text-align: center;
|
|
351
348
|
}
|
|
@@ -379,7 +376,7 @@ const O = {}, te = function(e) {
|
|
|
379
376
|
|
|
380
377
|
/* For html labels only */
|
|
381
378
|
.labelBkg {
|
|
382
|
-
background-color: ${
|
|
379
|
+
background-color: ${oe(e.edgeLabelBackground, 0.5)};
|
|
383
380
|
// background-color:
|
|
384
381
|
}
|
|
385
382
|
|
|
@@ -419,15 +416,15 @@ const O = {}, te = function(e) {
|
|
|
419
416
|
font-size: 18px;
|
|
420
417
|
fill: ${e.textColor};
|
|
421
418
|
}
|
|
422
|
-
`,
|
|
419
|
+
`, we = le;
|
|
423
420
|
export {
|
|
421
|
+
K as O,
|
|
422
|
+
X as Q,
|
|
424
423
|
H as Z,
|
|
425
424
|
pe as b,
|
|
426
|
-
|
|
425
|
+
ce as d,
|
|
427
426
|
be as f,
|
|
428
|
-
fe as h,
|
|
429
427
|
de as p,
|
|
430
|
-
|
|
431
|
-
we as
|
|
432
|
-
ue as w
|
|
428
|
+
ue as u,
|
|
429
|
+
we as w
|
|
433
430
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as F, g as
|
|
1
|
+
import { c as F, g as zt, s as Ut, a as Ht, b as Mt, v as Xt, x as Jt, l as $, j as ct, z as Kt, b1 as Vt } from "./index-BRYBB2aM.js";
|
|
2
2
|
var gt = function() {
|
|
3
3
|
var t = function(T, i, r, o) {
|
|
4
4
|
for (r = r || {}, o = T.length; o--; r[T[o]] = i)
|
|
5
5
|
;
|
|
6
6
|
return r;
|
|
7
|
-
}, s = [1, 2], n = [1, 3], l = [1, 4], p = [2, 4], d = [1, 9], y = [1, 11], b = [1, 15], u = [1, 16], _ = [1, 17], G = [1, 18], O = [1, 30], j = [1, 19], Y = [1, 20],
|
|
7
|
+
}, s = [1, 2], n = [1, 3], l = [1, 4], p = [2, 4], d = [1, 9], y = [1, 11], b = [1, 15], u = [1, 16], _ = [1, 17], G = [1, 18], O = [1, 30], j = [1, 19], Y = [1, 20], z = [1, 21], U = [1, 22], H = [1, 23], M = [1, 25], X = [1, 26], J = [1, 27], K = [1, 28], V = [1, 29], W = [1, 32], q = [1, 33], Q = [1, 34], Z = [1, 35], R = [1, 31], c = [1, 4, 5, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], tt = [1, 4, 5, 13, 14, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], xt = [4, 5, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], lt = {
|
|
8
8
|
trace: function() {
|
|
9
9
|
},
|
|
10
10
|
yy: {},
|
|
@@ -47,12 +47,12 @@ var gt = function() {
|
|
|
47
47
|
this.$ = { stmt: "state", id: e[a - 3], type: "default", description: "", doc: e[a - 1] };
|
|
48
48
|
break;
|
|
49
49
|
case 19:
|
|
50
|
-
var
|
|
50
|
+
var C = e[a], I = e[a - 2].trim();
|
|
51
51
|
if (e[a].match(":")) {
|
|
52
52
|
var et = e[a].split(":");
|
|
53
|
-
|
|
53
|
+
C = et[0], I = [I, et[1]];
|
|
54
54
|
}
|
|
55
|
-
this.$ = { stmt: "state", id:
|
|
55
|
+
this.$ = { stmt: "state", id: C, type: "default", description: I };
|
|
56
56
|
break;
|
|
57
57
|
case 20:
|
|
58
58
|
this.$ = { stmt: "state", id: e[a - 3], type: "default", description: e[a - 5], doc: e[a - 1] };
|
|
@@ -110,7 +110,7 @@ var gt = function() {
|
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
table: [{ 3: 1, 4: s, 5: n, 6: l }, { 1: [3] }, { 3: 5, 4: s, 5: n, 6: l }, { 3: 6, 4: s, 5: n, 6: l }, t([1, 4, 5, 15, 16, 18, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], p, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: b, 16: u, 18: _, 21: G, 23: O, 24: j, 25: Y, 26:
|
|
113
|
+
table: [{ 3: 1, 4: s, 5: n, 6: l }, { 1: [3] }, { 3: 5, 4: s, 5: n, 6: l }, { 3: 6, 4: s, 5: n, 6: l }, t([1, 4, 5, 15, 16, 18, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], p, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: b, 16: u, 18: _, 21: G, 23: O, 24: j, 25: Y, 26: z, 27: U, 28: H, 31: 24, 32: M, 34: X, 36: J, 37: K, 41: V, 44: W, 45: q, 46: Q, 47: Z, 50: R }, t(c, [2, 5]), { 9: 36, 10: 12, 11: 13, 12: 14, 15: b, 16: u, 18: _, 21: G, 23: O, 24: j, 25: Y, 26: z, 27: U, 28: H, 31: 24, 32: M, 34: X, 36: J, 37: K, 41: V, 44: W, 45: q, 46: Q, 47: Z, 50: R }, t(c, [2, 7]), t(c, [2, 8]), t(c, [2, 9]), t(c, [2, 10]), t(c, [2, 11], { 13: [1, 37], 14: [1, 38] }), t(c, [2, 15]), { 17: [1, 39] }, t(c, [2, 17], { 19: [1, 40] }), { 22: [1, 41] }, t(c, [2, 21]), t(c, [2, 22]), t(c, [2, 23]), t(c, [2, 24]), { 29: 42, 30: [1, 43], 52: [1, 44], 53: [1, 45] }, t(c, [2, 27]), { 33: [1, 46] }, { 35: [1, 47] }, t(c, [2, 30]), { 38: [1, 48], 40: [1, 49] }, { 42: [1, 50] }, t(tt, [2, 40], { 51: [1, 51] }), t(tt, [2, 41], { 51: [1, 52] }), t(c, [2, 34]), t(c, [2, 35]), t(c, [2, 36]), t(c, [2, 37]), t(c, [2, 6]), t(c, [2, 12]), { 12: 53, 23: O, 50: R }, t(c, [2, 16]), t(xt, p, { 7: 54 }), { 23: [1, 55] }, { 23: [1, 56] }, { 22: [1, 57] }, { 23: [2, 44] }, { 23: [2, 45] }, t(c, [2, 28]), t(c, [2, 29]), { 39: [1, 58] }, { 39: [1, 59] }, { 43: [1, 60] }, { 23: [1, 61] }, { 23: [1, 62] }, t(c, [2, 13], { 13: [1, 63] }), { 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: b, 16: u, 18: _, 20: [1, 64], 21: G, 23: O, 24: j, 25: Y, 26: z, 27: U, 28: H, 31: 24, 32: M, 34: X, 36: J, 37: K, 41: V, 44: W, 45: q, 46: Q, 47: Z, 50: R }, t(c, [2, 19], { 19: [1, 65] }), { 30: [1, 66] }, { 23: [1, 67] }, t(c, [2, 31]), t(c, [2, 32]), t(c, [2, 33]), t(tt, [2, 42]), t(tt, [2, 43]), t(c, [2, 14]), t(c, [2, 18]), t(xt, p, { 7: 68 }), t(c, [2, 25]), t(c, [2, 26]), { 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: b, 16: u, 18: _, 20: [1, 69], 21: G, 23: O, 24: j, 25: Y, 26: z, 27: U, 28: H, 31: 24, 32: M, 34: X, 36: J, 37: K, 41: V, 44: W, 45: q, 46: Q, 47: Z, 50: R }, t(c, [2, 20])],
|
|
114
114
|
defaultActions: { 5: [2, 1], 6: [2, 2], 44: [2, 44], 45: [2, 45] },
|
|
115
115
|
parseError: function(T, i) {
|
|
116
116
|
if (i.recoverable)
|
|
@@ -121,14 +121,14 @@ var gt = function() {
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
parse: function(T) {
|
|
124
|
-
var i = this, r = [0], o = [], h = [null], e = [], m = this.table, a = "",
|
|
124
|
+
var i = this, r = [0], o = [], h = [null], e = [], m = this.table, a = "", C = 0, I = 0, et = 2, B = 1, ut = e.slice.call(arguments, 1), f = Object.create(this.lexer), A = { yy: {} };
|
|
125
125
|
for (var dt in this.yy)
|
|
126
|
-
Object.prototype.hasOwnProperty.call(this.yy, dt) && (
|
|
127
|
-
f.setInput(T,
|
|
126
|
+
Object.prototype.hasOwnProperty.call(this.yy, dt) && (A.yy[dt] = this.yy[dt]);
|
|
127
|
+
f.setInput(T, A.yy), A.yy.lexer = f, A.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
|
|
128
128
|
var pt = f.yylloc;
|
|
129
129
|
e.push(pt);
|
|
130
130
|
var jt = f.options && f.options.ranges;
|
|
131
|
-
typeof
|
|
131
|
+
typeof A.yy.parseError == "function" ? this.parseError = A.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
132
132
|
function Yt() {
|
|
133
133
|
var x;
|
|
134
134
|
return x = o.pop() || f.lex() || B, typeof x != "number" && (x instanceof Array && (o = x, x = o.pop()), x = i.symbols_[x] || x), x;
|
|
@@ -139,9 +139,9 @@ var gt = function() {
|
|
|
139
139
|
it = [];
|
|
140
140
|
for (st in m[D])
|
|
141
141
|
this.terminals_[st] && st > et && it.push("'" + this.terminals_[st] + "'");
|
|
142
|
-
f.showPosition ? ft = "Parse error on line " + (
|
|
142
|
+
f.showPosition ? ft = "Parse error on line " + (C + 1) + `:
|
|
143
143
|
` + f.showPosition() + `
|
|
144
|
-
Expecting ` + it.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : ft = "Parse error on line " + (
|
|
144
|
+
Expecting ` + it.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : ft = "Parse error on line " + (C + 1) + ": Unexpected " + (S == B ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(ft, {
|
|
145
145
|
text: f.match,
|
|
146
146
|
token: this.terminals_[S] || S,
|
|
147
147
|
line: f.yylineno,
|
|
@@ -153,7 +153,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : ft =
|
|
|
153
153
|
throw new Error("Parse Error: multiple actions possible at state: " + D + ", token: " + S);
|
|
154
154
|
switch (k[0]) {
|
|
155
155
|
case 1:
|
|
156
|
-
r.push(S), h.push(f.yytext), e.push(f.yylloc), r.push(k[1]), S = null, I = f.yyleng, a = f.yytext,
|
|
156
|
+
r.push(S), h.push(f.yytext), e.push(f.yylloc), r.push(k[1]), S = null, I = f.yyleng, a = f.yytext, C = f.yylineno, pt = f.yylloc;
|
|
157
157
|
break;
|
|
158
158
|
case 2:
|
|
159
159
|
if (E = this.productions_[k[1]][1], L.$ = h[h.length - E], L._$ = {
|
|
@@ -167,8 +167,8 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : ft =
|
|
|
167
167
|
]), yt = this.performAction.apply(L, [
|
|
168
168
|
a,
|
|
169
169
|
I,
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
C,
|
|
171
|
+
A.yy,
|
|
172
172
|
k[1],
|
|
173
173
|
h,
|
|
174
174
|
e
|
|
@@ -529,7 +529,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : ft =
|
|
|
529
529
|
return ht.prototype = lt, lt.Parser = ht, new ht();
|
|
530
530
|
}();
|
|
531
531
|
gt.parser = gt;
|
|
532
|
-
const xe = gt, Wt = "LR", $e = "TB", mt = "state", vt = "relation", qt = "classDef", Qt = "applyClass", Tt = "default", Zt = "divider", bt = "[*]", It = "start", Lt = bt, Ot = "end",
|
|
532
|
+
const xe = gt, Wt = "LR", $e = "TB", mt = "state", vt = "relation", qt = "classDef", Qt = "applyClass", Tt = "default", Zt = "divider", bt = "[*]", It = "start", Lt = bt, Ot = "end", Ct = "color", At = "fill", te = "bgFill", ee = ",";
|
|
533
533
|
function Rt() {
|
|
534
534
|
return {};
|
|
535
535
|
}
|
|
@@ -691,8 +691,8 @@ const Pt = function(t, s, n) {
|
|
|
691
691
|
const n = N[t];
|
|
692
692
|
s != null && s.split(ee).forEach((l) => {
|
|
693
693
|
const p = l.replace(/([^;]*);/, "$1").trim();
|
|
694
|
-
if (l.match(
|
|
695
|
-
const d = p.replace(
|
|
694
|
+
if (l.match(Ct)) {
|
|
695
|
+
const d = p.replace(At, te).replace(Ct, At);
|
|
696
696
|
n.textStyles.push(d);
|
|
697
697
|
}
|
|
698
698
|
n.styles.push(p);
|
|
@@ -716,7 +716,7 @@ const Pt = function(t, s, n) {
|
|
|
716
716
|
n !== void 0 && n.textStyles.push(s);
|
|
717
717
|
}, _e = () => Bt, ke = (t) => {
|
|
718
718
|
Bt = t;
|
|
719
|
-
}, Te = (t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(),
|
|
719
|
+
}, Te = (t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), Ce = {
|
|
720
720
|
getConfig: () => F().state,
|
|
721
721
|
addState: v,
|
|
722
722
|
clear: wt,
|
|
@@ -737,8 +737,8 @@ const Pt = function(t, s, n) {
|
|
|
737
737
|
getRootDocV2: ae,
|
|
738
738
|
extract: oe,
|
|
739
739
|
trimColon: Te,
|
|
740
|
-
getAccTitle:
|
|
741
|
-
setAccTitle:
|
|
740
|
+
getAccTitle: zt,
|
|
741
|
+
setAccTitle: Ut,
|
|
742
742
|
getAccDescription: Ht,
|
|
743
743
|
setAccDescription: Mt,
|
|
744
744
|
addStyleClass: Ft,
|
|
@@ -947,14 +947,14 @@ g.stateGroup line {
|
|
|
947
947
|
font-size: 18px;
|
|
948
948
|
fill: ${t.textColor};
|
|
949
949
|
}
|
|
950
|
-
`,
|
|
950
|
+
`, Ae = be;
|
|
951
951
|
export {
|
|
952
|
-
|
|
952
|
+
Ae as A,
|
|
953
953
|
$e as C,
|
|
954
954
|
xe as D,
|
|
955
955
|
Tt as E,
|
|
956
956
|
vt as I,
|
|
957
957
|
mt as _,
|
|
958
958
|
Zt as t,
|
|
959
|
-
|
|
959
|
+
Ce as v
|
|
960
960
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as i, n as o } from "./index-
|
|
1
|
+
import { m as i, n as o } from "./index-BRYBB2aM.js";
|
|
2
2
|
const x = (e, t) => {
|
|
3
3
|
const r = e.append("rect");
|
|
4
|
-
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.
|
|
4
|
+
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.rx !== void 0 && r.attr("rx", t.rx), t.ry !== void 0 && r.attr("ry", t.ry), t.attrs !== void 0)
|
|
5
5
|
for (const a in t.attrs)
|
|
6
6
|
r.attr(a, t.attrs[a]);
|
|
7
7
|
return t.class !== void 0 && r.attr("class", t.class), r;
|
|
@@ -54,11 +54,11 @@ const x = (e, t) => {
|
|
|
54
54
|
tspan: !0
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
|
+
x as c,
|
|
57
58
|
h as d,
|
|
58
59
|
p as g,
|
|
59
60
|
y as h,
|
|
60
|
-
|
|
61
|
-
g as m,
|
|
61
|
+
g as p,
|
|
62
62
|
c as x,
|
|
63
63
|
d as y
|
|
64
64
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { v as Z } from "./arc-
|
|
1
|
+
import { b3 as yt, z as gt, c as ft, l as w, h as V, t as mt, b4 as xt, b5 as _t, b6 as bt } from "./index-BRYBB2aM.js";
|
|
2
|
+
import { v as Z } from "./arc-BOwQG9_0-DleiJ5MN.js";
|
|
3
3
|
var X = function() {
|
|
4
4
|
var n = function(m, i, a, l) {
|
|
5
5
|
for (a = a || {}, l = m.length; l--; a[m[l]] = i)
|