@kong-ui-public/documentation 0.3.42 → 0.4.0
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-GLA_9iAD-BMurskAd.js +9 -0
- package/dist/arc-BSRpyMf3-C5dasNo_.js +86 -0
- package/dist/array-CqVTtuYm-fKLgkG2b.js +6 -0
- package/dist/astro-mwoSwJnq-CNh-xuM0.js +27 -0
- package/dist/blockDiagram-6b2b5046-D02VCbQO-CPmGy0xX.js +1224 -0
- package/dist/c-eDnjw9rh-eDnjw9rh.js +87 -0
- package/dist/c4Diagram-b947cdbb-gYcL5VzP-DIDY83e1.js +1578 -0
- package/dist/channel-DHTQ8Ynn-7OPGex2S.js +5 -0
- package/dist/classDiagram-35230388-JdSKLSZv-D2crBRy-.js +217 -0
- package/dist/classDiagram-v2-412acd34-DFFRHXE_-B6aCxlD1.js +200 -0
- package/dist/clone-p6h9XXNm-3JQ-HRC6.js +8 -0
- package/dist/coffee-CRlSxcc3-CY091_1T.js +108 -0
- package/dist/cpp-DizfY48B-CA38N4Mn.js +208 -0
- package/dist/createText-423428c9-LivTKT7b-BXNfjcdp.js +2964 -0
- package/dist/csharp-uGDiXTZn-uGDiXTZn.js +762 -0
- package/dist/css-CAzixsid-CEpuX1HY.js +511 -0
- package/dist/csv-D4BoHddH-D4BoHddH.js +7 -0
- package/dist/diff-Bo5iyMQ2-Bo5iyMQ2.js +7 -0
- package/dist/docker-B10O2enb-B10O2enb.js +7 -0
- package/dist/documentation.es.js +5 -3130
- package/dist/documentation.umd.js +10152 -50
- package/dist/edges-d417c7a0-C1ggiwWz-Aj0OUf7e.js +1082 -0
- package/dist/erDiagram-0ea73325-mz0Z_-DA-Dr01LsTB.js +924 -0
- package/dist/flowDb-d35e309a-CPyxEMIt-lofeyUuw.js +1126 -0
- package/dist/flowDiagram-d949d7c1-DqCa0HNN-BK5wNO9Z.js +782 -0
- package/dist/flowDiagram-v2-49332944-UMosz1sZ-BG39AuNP.js +17 -0
- package/dist/flowchart-elk-definition-27cc417a-D2UKpS6N-r2p34307.js +48387 -0
- package/dist/ganttDiagram-5c869e3b-CVBHw4pG-CaG9QXQM.js +2490 -0
- package/dist/git-commit-CWf81VOF-DtOZSoIU.js +9 -0
- package/dist/git-rebase-sR-yVH_J-D5M2oE9O.js +9 -0
- package/dist/gitGraphDiagram-b9d81de9-BGm3fU0n-CbCpf-4j.js +1262 -0
- package/dist/go-BCCWZWY1-BCCWZWY1.js +7 -0
- package/dist/graph-4FyIWFHN-774TpNLL.js +870 -0
- package/dist/graphql-CT32SSoq-1pBWfpcR.js +18 -0
- package/dist/haml-8RvrfhLO-Bbc4xoLP.js +19 -0
- package/dist/handlebars-Cr5ro0bH-CLcCNLtV.js +15 -0
- package/dist/haskell-BfFu8DD8-BmkPJdLL.js +565 -0
- package/dist/html-BZB5lEhh-B74zAnWx.js +84 -0
- package/dist/html-derivative-0y7sV5Qc-D8-muTWn.js +9 -0
- package/dist/index-8fae9850-_CN7MNjP-Cq-s0PmS.js +373 -0
- package/dist/index-B-5DuDrq.js +29996 -0
- package/dist/infoDiagram-db7b18fc-V446j9uR-GSa8bniv.js +319 -0
- package/dist/ini-BsUFIxsI-BsUFIxsI.js +7 -0
- package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
- package/dist/java-Bk2JzfKB-Bk2JzfKB.js +74 -0
- package/dist/javascript-DqVBMyXe-DqVBMyXe.js +705 -0
- package/dist/journeyDiagram-d5636530-CFiu7dnV-DJMu6A22.js +803 -0
- package/dist/json-B12k4-6m-B12k4-6m.js +31 -0
- package/dist/json5-CvqQZK9I-CvqQZK9I.js +23 -0
- package/dist/jsonc-v2qGKRJY-v2qGKRJY.js +31 -0
- package/dist/jsonl-izxnMeZX-izxnMeZX.js +31 -0
- package/dist/jsx-aDp7j9_Z-aDp7j9_Z.js +705 -0
- package/dist/kotlin-NOMOielb-NOMOielb.js +7 -0
- package/dist/latex-Bw_ghldO-BlUAi6pB.js +339 -0
- package/dist/layout-2-aEcfuw-BqqWy5wB.js +1524 -0
- package/dist/less-CW2GmQHL-CW2GmQHL.js +165 -0
- package/dist/line-nVq5kEiy-DtZd3PHZ.js +34 -0
- package/dist/linear-Bz4oRFvQ-C869GXbm.js +447 -0
- package/dist/liquid-DJ2rh7oT-FwZwa67Y.js +28 -0
- package/dist/lua-5TZ-G8Be-CogscVHC.js +9 -0
- package/dist/make-whncTQWE-whncTQWE.js +7 -0
- package/dist/markdown-DYKdIx5--DYKdIx5-.js +135 -0
- package/dist/material-theme-lighter-BRE1Bis3-BRE1Bis3.js +769 -0
- package/dist/material-theme-palenight-Dhz61Tee-Dhz61Tee.js +769 -0
- package/dist/mdc-D0DPLwil-BfE3hy8_.js +88 -0
- package/dist/mdx-CKDMxEaL-CKDMxEaL.js +7 -0
- package/dist/mermaid-BxNM-z-u-BxNM-z-u.js +7 -0
- package/dist/mindmap-definition-377f8f1f-C2vFYDMs-B71SGbvx.js +19078 -0
- package/dist/nginx-C082G13W-vryM9k1W.js +9 -0
- package/dist/objective-c-BVtzkNiv-BVtzkNiv.js +115 -0
- package/dist/onig-BonMD2gC-BonMD2gC.js +4 -0
- package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
- package/dist/pascal-CrvtytWS-CrvtytWS.js +7 -0
- package/dist/path-Crsf9Nsj-SiSjwXsf.js +91 -0
- package/dist/perl-D29UPKP6-Dez6-HRy.js +17 -0
- package/dist/php-D7Tl-iS7-BtPFrDEt.js +789 -0
- package/dist/pieDiagram-b0208e96-DhA_SoTh-CfDd9YdA.js +501 -0
- package/dist/plsql-8SPzZKaa-8SPzZKaa.js +7 -0
- package/dist/postcss-Cz2vjx_4-Cz2vjx_4.js +7 -0
- package/dist/powershell-B0buHCuS-B0buHCuS.js +7 -0
- package/dist/proto-6YaU_lta-6YaU_lta.js +7 -0
- package/dist/pug-DbFO7359-duYD8LVa.js +21 -0
- package/dist/python-BQXev0_W-BQXev0_W.js +524 -0
- package/dist/quadrantDiagram-0332be45-C8q96Ohm-DMblaqnx.js +903 -0
- package/dist/r-DU7Q70f1-DU7Q70f1.js +7 -0
- package/dist/reg-DoGLEyFr-DoGLEyFr.js +7 -0
- package/dist/requirementDiagram-bf7890df-D30zCZjB-B_JBC9RM.js +767 -0
- package/dist/rst-Bm1i8IkK-C9EaDq6g.js +26 -0
- package/dist/ruby-CZZKXaz8-BxaDEkRP.js +102 -0
- package/dist/rust-CIl6NRUt-CIl6NRUt.js +7 -0
- package/dist/sankeyDiagram-0acdec17-B4vNjMaS-Bauvtonp.js +816 -0
- package/dist/sass-LqXmC1Fh-LqXmC1Fh.js +8 -0
- package/dist/scss-DjxgF7f7-DGTzny6p.js +98 -0
- package/dist/sequenceDiagram-c18d009d-BniqGSPK-DuYYUmiZ.js +2201 -0
- package/dist/shellscript-CUUTQKn5-CUUTQKn5.js +7 -0
- package/dist/shellsession-BIPXtZci-D6avbCwN.js +9 -0
- package/dist/splunk-C0K00wNV-C0K00wNV.js +7 -0
- package/dist/sql-DkzN59UV-DkzN59UV.js +27 -0
- package/dist/ssh-config-BbWAW6SY-BbWAW6SY.js +7 -0
- package/dist/stateDiagram-43596fc0-F0V9suMd-L2Ywe-J_.js +266 -0
- package/dist/stateDiagram-v2-2ead4f9c-DUgJH8tF-BVo1q2i1.js +184 -0
- package/dist/style.css +1 -1
- package/dist/styles-6860f46c-Dflmq0ac-BRNSwis6.js +1089 -0
- package/dist/styles-7383a064-Dg7mXkpq-C4bItohl.js +430 -0
- package/dist/styles-b2c874b6-HpcOhE4Y-Bj0upXzO.js +960 -0
- package/dist/stylus-CAHdVuhm-CAHdVuhm.js +21 -0
- package/dist/svelte-DAxjO8Sh-D0e501jC.js +29 -0
- package/dist/svgDrawCommon-0ee1b4e9-CNkCfzsJ-Bz_doYLk.js +64 -0
- package/dist/swift-x2DVyVjN-Bz5PC9YM.js +550 -0
- package/dist/timeline-definition-d977decf-Cl38e_0g-D_Dlqa-R.js +794 -0
- package/dist/toml-Dbtbfmwk-Dbtbfmwk.js +75 -0
- package/dist/tsx-BmwsDeeh-BmwsDeeh.js +705 -0
- package/dist/twig-B_Gr-ODl-Cl9Q0GWo.js +58 -0
- package/dist/types/components/DocumentationContent.vue.d.ts +8 -1
- package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts +5 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -1
- package/dist/types/components/ProductDocumentModal.vue.d.ts +1 -1
- package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -1
- package/dist/types/composables/useI18n.d.ts +4 -0
- package/dist/types/composables/useI18n.d.ts.map +1 -1
- package/dist/typescript-AEg-ehu7-AEg-ehu7.js +672 -0
- package/dist/v-BuvBsUKm-BuvBsUKm.js +7 -0
- package/dist/vb-cqjo5dul-cqjo5dul.js +7 -0
- package/dist/viml-h3ATW6He-h3ATW6He.js +7 -0
- package/dist/vue-Dz-azHaT-B9qBHMZi.js +71 -0
- package/dist/vue-html-DIGKAAs4-BeHSIJcx.js +11 -0
- package/dist/wasm-xOGcJ9Ts-xOGcJ9Ts.js +7 -0
- package/dist/wgsl-hGLOfCya-hGLOfCya.js +7 -0
- package/dist/xml-CfRpfi_B-BH3JRQfc.js +9 -0
- package/dist/xsl-BAqhSCYL-BTKPZRNQ.js +9 -0
- package/dist/xychartDiagram-e50adddc-JdLmRUgg-HmDalTeo.js +1282 -0
- package/dist/yaml-PGla5xPP-HJurM_FJ.js +206 -0
- package/package.json +13 -13
- package/dist/prism-bash.min-DDo5CyRs-DihCfXgx.js +0 -7
- package/dist/prism-css.min-BrrzZC7b-BrrzZC7b.js +0 -7
- package/dist/prism-docker.min-DnIEokC3-D0v8IWN_.js +0 -22
- package/dist/prism-go.min-C7UmK6TW-C7UmK6TW.js +0 -1
- package/dist/prism-http.min-CsU3-jB8-CQ8PCDXl.js +0 -23
- package/dist/prism-javascript.min-CEqHqgbm-CEqHqgbm.js +0 -8
- package/dist/prism-jq.min-Q555vXZm-Q555vXZm.js +0 -8
- package/dist/prism-json.min-B1GJqK1k-B1GJqK1k.js +0 -1
- package/dist/prism-log.min-SDopTpKN-SDopTpKN.js +0 -1
- package/dist/prism-lua.min-DwRnUVfS-DwRnUVfS.js +0 -1
- package/dist/prism-makefile.min-DyutknhE-DyutknhE.js +0 -1
- package/dist/prism-markdown.min-B7US-xc7-DB9aF_ZA.js +0 -63
- package/dist/prism-python.min-BIfpAh5K-BIfpAh5K.js +0 -1
- package/dist/prism-regex.min-f8DNqi8X-f8DNqi8X.js +0 -4
- package/dist/prism-rest.min-B6veHRJF-B6veHRJF.js +0 -1
- package/dist/prism-rust.min-Cb-Mi-h0-Cb-Mi-h0.js +0 -9
- package/dist/prism-scss.min-B0csyGJo-B0csyGJo.js +0 -1
- package/dist/prism-sql.min-BHXzX-c_-BHXzX-c_.js +0 -1
- package/dist/prism-typescript.min-oSVeWCAd-oSVeWCAd.js +0 -5
- package/dist/prism-xml-doc.min-yj0YzRGe-KgTQx-dc.js +0 -7
- package/dist/prism-yaml.min-CTetcdKA-C1YzP_OY.js +0 -28
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
import { Z as P } from "./graph-4FyIWFHN-774TpNLL.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, ag as j, ah as M, ai as R, aj as Z, ak as U, J } from "./index-B-5DuDrq.js";
|
|
3
|
+
import { b as Q } from "./index-8fae9850-_CN7MNjP-Cq-s0PmS.js";
|
|
4
|
+
import { t as W } from "./channel-DHTQ8Ynn-7OPGex2S.js";
|
|
5
|
+
function X(e) {
|
|
6
|
+
return typeof e == "string" ? new j([document.querySelectorAll(e)], [document.documentElement]) : new j([R(e)], M);
|
|
7
|
+
}
|
|
8
|
+
function ce(e, o) {
|
|
9
|
+
return !!e.children(o).length;
|
|
10
|
+
}
|
|
11
|
+
function de(e) {
|
|
12
|
+
return E(e.v) + ":" + E(e.w) + ":" + E(e.name);
|
|
13
|
+
}
|
|
14
|
+
var Y = /:/g;
|
|
15
|
+
function E(e) {
|
|
16
|
+
return e ? String(e).replace(Y, "\\:") : "";
|
|
17
|
+
}
|
|
18
|
+
function H(e, o) {
|
|
19
|
+
o && e.attr("style", o);
|
|
20
|
+
}
|
|
21
|
+
function pe(e, o, c) {
|
|
22
|
+
o && e.attr("class", o).attr("class", c + " " + e.attr("class"));
|
|
23
|
+
}
|
|
24
|
+
function be(e, o) {
|
|
25
|
+
var c = o.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 K(e, o) {
|
|
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 = o.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
|
+
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
|
+
}
|
|
53
|
+
const z = {}, ee = function(e) {
|
|
54
|
+
const o = Object.keys(e);
|
|
55
|
+
for (const c of o)
|
|
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
|
+
if (g.info("vertex", r, r.labelType), r.labelType === "markdown")
|
|
66
|
+
g.info("vertex", r, r.labelType);
|
|
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);
|
|
82
|
+
}
|
|
83
|
+
t = w;
|
|
84
|
+
}
|
|
85
|
+
let s = 0, l = "";
|
|
86
|
+
switch (r.type) {
|
|
87
|
+
case "round":
|
|
88
|
+
s = 5, l = "rect";
|
|
89
|
+
break;
|
|
90
|
+
case "square":
|
|
91
|
+
l = "rect";
|
|
92
|
+
break;
|
|
93
|
+
case "diamond":
|
|
94
|
+
l = "question";
|
|
95
|
+
break;
|
|
96
|
+
case "hexagon":
|
|
97
|
+
l = "hexagon";
|
|
98
|
+
break;
|
|
99
|
+
case "odd":
|
|
100
|
+
l = "rect_left_inv_arrow";
|
|
101
|
+
break;
|
|
102
|
+
case "lean_right":
|
|
103
|
+
l = "lean_right";
|
|
104
|
+
break;
|
|
105
|
+
case "lean_left":
|
|
106
|
+
l = "lean_left";
|
|
107
|
+
break;
|
|
108
|
+
case "trapezoid":
|
|
109
|
+
l = "trapezoid";
|
|
110
|
+
break;
|
|
111
|
+
case "inv_trapezoid":
|
|
112
|
+
l = "inv_trapezoid";
|
|
113
|
+
break;
|
|
114
|
+
case "odd_right":
|
|
115
|
+
l = "rect_left_inv_arrow";
|
|
116
|
+
break;
|
|
117
|
+
case "circle":
|
|
118
|
+
l = "circle";
|
|
119
|
+
break;
|
|
120
|
+
case "ellipse":
|
|
121
|
+
l = "ellipse";
|
|
122
|
+
break;
|
|
123
|
+
case "stadium":
|
|
124
|
+
l = "stadium";
|
|
125
|
+
break;
|
|
126
|
+
case "subroutine":
|
|
127
|
+
l = "subroutine";
|
|
128
|
+
break;
|
|
129
|
+
case "cylinder":
|
|
130
|
+
l = "cylinder";
|
|
131
|
+
break;
|
|
132
|
+
case "group":
|
|
133
|
+
l = "rect";
|
|
134
|
+
break;
|
|
135
|
+
case "doublecircle":
|
|
136
|
+
l = "doublecircle";
|
|
137
|
+
break;
|
|
138
|
+
default:
|
|
139
|
+
l = "rect";
|
|
140
|
+
}
|
|
141
|
+
o.setNode(r.id, {
|
|
142
|
+
labelStyle: h.labelStyle,
|
|
143
|
+
shape: l,
|
|
144
|
+
labelText: y,
|
|
145
|
+
labelType: r.labelType,
|
|
146
|
+
rx: s,
|
|
147
|
+
ry: s,
|
|
148
|
+
class: u,
|
|
149
|
+
style: h.style,
|
|
150
|
+
id: r.id,
|
|
151
|
+
link: r.link,
|
|
152
|
+
linkTarget: r.linkTarget,
|
|
153
|
+
tooltip: d.db.getTooltip(r.id) || "",
|
|
154
|
+
domId: d.db.lookUpDomId(r.id),
|
|
155
|
+
haveCallback: r.haveCallback,
|
|
156
|
+
width: r.type === "group" ? 500 : void 0,
|
|
157
|
+
dir: r.dir,
|
|
158
|
+
type: r.type,
|
|
159
|
+
props: r.props,
|
|
160
|
+
padding: _().flowchart.padding
|
|
161
|
+
}), g.info("setNode", {
|
|
162
|
+
labelStyle: h.labelStyle,
|
|
163
|
+
labelType: r.labelType,
|
|
164
|
+
shape: l,
|
|
165
|
+
labelText: y,
|
|
166
|
+
rx: s,
|
|
167
|
+
ry: s,
|
|
168
|
+
class: u,
|
|
169
|
+
style: h.style,
|
|
170
|
+
id: r.id,
|
|
171
|
+
domId: d.db.lookUpDomId(r.id),
|
|
172
|
+
width: r.type === "group" ? 500 : void 0,
|
|
173
|
+
type: r.type,
|
|
174
|
+
dir: r.dir,
|
|
175
|
+
props: r.props,
|
|
176
|
+
padding: _().flowchart.padding
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
}, q = function(e, o, c) {
|
|
180
|
+
g.info("abc78 edges = ", e);
|
|
181
|
+
let a = 0, i = {}, d, b;
|
|
182
|
+
if (e.defaultStyle !== void 0) {
|
|
183
|
+
const n = A(e.defaultStyle);
|
|
184
|
+
d = n.style, b = n.labelStyle;
|
|
185
|
+
}
|
|
186
|
+
e.forEach(function(n) {
|
|
187
|
+
a++;
|
|
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: "" };
|
|
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) {
|
|
194
|
+
case "double_arrow_cross":
|
|
195
|
+
t.arrowTypeStart = "arrow_cross";
|
|
196
|
+
case "arrow_cross":
|
|
197
|
+
t.arrowTypeEnd = "arrow_cross";
|
|
198
|
+
break;
|
|
199
|
+
case "double_arrow_point":
|
|
200
|
+
t.arrowTypeStart = "arrow_point";
|
|
201
|
+
case "arrow_point":
|
|
202
|
+
t.arrowTypeEnd = "arrow_point";
|
|
203
|
+
break;
|
|
204
|
+
case "double_arrow_circle":
|
|
205
|
+
t.arrowTypeStart = "arrow_circle";
|
|
206
|
+
case "arrow_circle":
|
|
207
|
+
t.arrowTypeEnd = "arrow_circle";
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
let s = "", l = "";
|
|
211
|
+
switch (n.stroke) {
|
|
212
|
+
case "normal":
|
|
213
|
+
s = "fill:none;", d !== void 0 && (s = d), b !== void 0 && (l = b), t.thickness = "normal", t.pattern = "solid";
|
|
214
|
+
break;
|
|
215
|
+
case "dotted":
|
|
216
|
+
t.thickness = "normal", t.pattern = "dotted", t.style = "fill:none;stroke-width:2px;stroke-dasharray:3;";
|
|
217
|
+
break;
|
|
218
|
+
case "thick":
|
|
219
|
+
t.thickness = "thick", t.pattern = "solid", t.style = "stroke-width: 3.5px;fill:none;";
|
|
220
|
+
break;
|
|
221
|
+
case "invisible":
|
|
222
|
+
t.thickness = "invisible", t.pattern = "solid", t.style = "stroke-width: 0;fill:none;";
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
if (n.style !== void 0) {
|
|
226
|
+
const w = A(n.style);
|
|
227
|
+
s = w.style, l = w.labelStyle;
|
|
228
|
+
}
|
|
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) {
|
|
233
|
+
return o.db.getClasses();
|
|
234
|
+
}, re = async function(e, o, c, a) {
|
|
235
|
+
g.info("Drawing flowchart");
|
|
236
|
+
let i = a.db.getDirection();
|
|
237
|
+
i === void 0 && (i = "TD");
|
|
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({
|
|
242
|
+
multigraph: !0,
|
|
243
|
+
compound: !0
|
|
244
|
+
}).setGraph({
|
|
245
|
+
rankdir: i,
|
|
246
|
+
nodesep: n,
|
|
247
|
+
ranksep: r,
|
|
248
|
+
marginx: 0,
|
|
249
|
+
marginy: 0
|
|
250
|
+
}).setDefaultEdgeLabel(function() {
|
|
251
|
+
return {};
|
|
252
|
+
});
|
|
253
|
+
let 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(
|
|
258
|
+
s.id,
|
|
259
|
+
{ text: s.title, type: s.labelType },
|
|
260
|
+
"group",
|
|
261
|
+
void 0,
|
|
262
|
+
s.classes,
|
|
263
|
+
s.dir
|
|
264
|
+
);
|
|
265
|
+
const w = a.db.getVertices(), S = a.db.getEdges();
|
|
266
|
+
g.info("Edges", S);
|
|
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);
|
|
272
|
+
}
|
|
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);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
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();
|
|
294
|
+
});
|
|
295
|
+
const N = v.select(".label");
|
|
296
|
+
N && B.append(function() {
|
|
297
|
+
return N.node();
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
}, ue = {
|
|
303
|
+
setConf: ee,
|
|
304
|
+
addVertices: I,
|
|
305
|
+
addEdges: q,
|
|
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 Z(a, i, d, o);
|
|
311
|
+
}, le = (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 .label {
|
|
347
|
+
text-align: center;
|
|
348
|
+
}
|
|
349
|
+
.node.clickable {
|
|
350
|
+
cursor: pointer;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.arrowheadPath {
|
|
354
|
+
fill: ${e.arrowheadColor};
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.edgePath .path {
|
|
358
|
+
stroke: ${e.lineColor};
|
|
359
|
+
stroke-width: 2.0px;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.flowchart-link {
|
|
363
|
+
stroke: ${e.lineColor};
|
|
364
|
+
fill: none;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.edgeLabel {
|
|
368
|
+
background-color: ${e.edgeLabelBackground};
|
|
369
|
+
rect {
|
|
370
|
+
opacity: 0.5;
|
|
371
|
+
background-color: ${e.edgeLabelBackground};
|
|
372
|
+
fill: ${e.edgeLabelBackground};
|
|
373
|
+
}
|
|
374
|
+
text-align: center;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/* For html labels only */
|
|
378
|
+
.labelBkg {
|
|
379
|
+
background-color: ${oe(e.edgeLabelBackground, 0.5)};
|
|
380
|
+
// background-color:
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.cluster rect {
|
|
384
|
+
fill: ${e.clusterBkg};
|
|
385
|
+
stroke: ${e.clusterBorder};
|
|
386
|
+
stroke-width: 1px;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.cluster text {
|
|
390
|
+
fill: ${e.titleColor};
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.cluster span,p {
|
|
394
|
+
color: ${e.titleColor};
|
|
395
|
+
}
|
|
396
|
+
/* .cluster div {
|
|
397
|
+
color: ${e.titleColor};
|
|
398
|
+
} */
|
|
399
|
+
|
|
400
|
+
div.mermaidTooltip {
|
|
401
|
+
position: absolute;
|
|
402
|
+
text-align: center;
|
|
403
|
+
max-width: 200px;
|
|
404
|
+
padding: 2px;
|
|
405
|
+
font-family: ${e.fontFamily};
|
|
406
|
+
font-size: 12px;
|
|
407
|
+
background: ${e.tertiaryColor};
|
|
408
|
+
border: 1px solid ${e.border2};
|
|
409
|
+
border-radius: 2px;
|
|
410
|
+
pointer-events: none;
|
|
411
|
+
z-index: 100;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.flowchartTitleText {
|
|
415
|
+
text-anchor: middle;
|
|
416
|
+
font-size: 18px;
|
|
417
|
+
fill: ${e.textColor};
|
|
418
|
+
}
|
|
419
|
+
`, we = le;
|
|
420
|
+
export {
|
|
421
|
+
K as O,
|
|
422
|
+
X as Q,
|
|
423
|
+
H as Z,
|
|
424
|
+
pe as b,
|
|
425
|
+
ce as d,
|
|
426
|
+
be as f,
|
|
427
|
+
de as p,
|
|
428
|
+
ue as u,
|
|
429
|
+
we as w
|
|
430
|
+
};
|