@kong-ui-public/documentation 0.4.12 → 0.4.14
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-DI9wV-Mn-_GgJI37p.js +86 -0
- package/dist/{astro-D4FIwVxr-CovDYZfT.js → astro-U6b0KI4d-Bfq8RcMV.js} +1 -1
- package/dist/{blockDiagram-6b2b5046-BabM1eIl-C85stHtj.js → blockDiagram-91b80b7a-D3OZBNEF-BXra-uP1.js} +24 -24
- package/dist/{c4Diagram-b947cdbb-BBGJ9ivn-Dwz3JGTI.js → c4Diagram-b2a90758-wyqGQ69Q-3S5U0W2q.js} +133 -132
- package/dist/channel-Brhzsu_o-C42tcZPD.js +5 -0
- package/dist/{classDiagram-35230388-CRYNduH8-BOSSyxwU.js → classDiagram-30eddba6-0OAjss5X-DDloSHap.js} +8 -7
- package/dist/{classDiagram-v2-412acd34-5HbyJrnL-ST64CPx5.js → classDiagram-v2-f2df5561-Dn89kA5N-W6p27IrP.js} +7 -7
- package/dist/{clone-BoeTe_OS-CjGEkx_F.js → clone-Bsggwgls-BzwAVRKa.js} +1 -1
- package/dist/{createText-423428c9-Q0HfccbL-DBcIXsnc.js → createText-6b48ae7d-c5hzPIcj-DS42dDY6.js} +2 -1
- package/dist/documentation.es.js +5 -5
- package/dist/documentation.umd.js +991 -720
- package/dist/{edges-d417c7a0-DEJA2PwU-c5o-9uno.js → edges-d32062c0-CGbRbizB-BNCq9bff.js} +28 -27
- package/dist/{erDiagram-0ea73325-C3DQ6B1e-DjAGdzcu.js → erDiagram-47591fe2-CyCEEu9x-BoCVITkJ.js} +38 -38
- package/dist/{flowDb-d35e309a-RvFFqjek-pyC_lUzm.js → flowDb-4b19a42f-wIq43fe7-D6eWU8wc.js} +45 -45
- package/dist/{flowDiagram-d949d7c1-Boa20b_n-BKdBxRnq.js → flowDiagram-5540d9b9-D8Ak_JQc-66jM_qDv.js} +317 -309
- package/dist/{flowDiagram-v2-49332944-BJtijxhz-BfL0l3kS.js → flowDiagram-v2-3b53844e-DxkVnD_T-DVByZPqp.js} +5 -5
- package/dist/{flowchart-elk-definition-27cc417a-BBD3LS9k-DhfRKjaQ.js → flowchart-elk-definition-5fe447d6-CUIdb-2U-rw1sP1Nb.js} +10626 -10624
- package/dist/{ganttDiagram-5c869e3b-CRDFjzTp-C3-yl36r.js → ganttDiagram-9a3bba1f-U28Z8glu-okJ1HHdc.js} +488 -477
- package/dist/{git-rebase-sR-yVH_J-D5M2oE9O.js → git-rebase-B7sc3yJp-BPxHM_r2.js} +1 -1
- package/dist/gitGraphDiagram-96e6b4ee-DTO3lH8N-1qRg2G2i.js +1264 -0
- package/dist/{graph-BIq67vWs-B7ta0ZdY.js → graph-Bc1n6qSP-D5FVfre_.js} +64 -64
- package/dist/{haml-BT5dFrjs-CmYUmNQ_.js → haml-DsuMo-J7-DWhF2QrW.js} +1 -1
- package/dist/{http-DSIFYUfg-BZm1KGvb.js → http-ClrjZLFz-gNFfL9hE.js} +1 -1
- package/dist/{index-_NcqxG2P.js → index-3vhKKQrV.js} +2771 -2689
- package/dist/{index-8fae9850-CaUboB89-KhmQqIkN.js → index-fc10efb0-B2L-sBu4-xOwI5vt1.js} +11 -11
- package/dist/{infoDiagram-db7b18fc-DKsewKnu-nKlnfk12.js → infoDiagram-bcd20f53-DTO3TTbR-DxLIdeSc.js} +12 -12
- package/dist/{journeyDiagram-d5636530-ClddNDmR-DXRHq-4M.js → journeyDiagram-4fe6b3dc-qVhc1UAl-_d--6Ls9.js} +42 -42
- package/dist/katex-BQC_klMa-CaeA20wX.js +11636 -0
- package/dist/{latex-QX-FNvxY-DfqkUAVR.js → latex-9g43iAzl-B3VseW3K.js} +1 -1
- package/dist/{layout-Cz0dAJah-BTgthZsZ.js → layout-DcWyZN_J-vui7Gviz.js} +132 -132
- package/dist/{line-BCVITS7s-Ckay3mGw.js → line-BeML9Stu-Dy9lL6FR.js} +1 -1
- package/dist/{linear-CLHAbj67-CRi7BpMp.js → linear-S-ccJMdE-6xfCU5AQ.js} +35 -35
- package/dist/{mindmap-definition-377f8f1f-BwEJ-DVg-DWk6Jo2n.js → mindmap-definition-f354de21-DH1Q4t1U-DzFbmWqo.js} +6647 -6414
- package/dist/{pieDiagram-b0208e96-Cyz2Kcfu-BKQLF9sW.js → pieDiagram-79897490-BNP6ubu_-6WJB20-7.js} +68 -68
- package/dist/{quadrantDiagram-0332be45-CDMkEQj0-B8KMwkcO.js → quadrantDiagram-62f64e94-BwUp7akV-DvMoXd98.js} +2 -2
- package/dist/{requirementDiagram-bf7890df-Jk3SQ-Q1-ub7Z0GPl.js → requirementDiagram-05bf5f74-N_qzJROT-CrkeOa_P.js} +30 -30
- package/dist/{rst-Bm1i8IkK-C9EaDq6g.js → rst-iTJmEY_6-AgWIzPqn.js} +2 -2
- package/dist/{ruby-CZZKXaz8-BxaDEkRP.js → ruby-3Bt2I2On--AixRnjJ.js} +1 -1
- package/dist/{sankeyDiagram-0acdec17-BJuIUJd_-BnkIVf8S.js → sankeyDiagram-97764748-bwaduY7g-VneUYt0y.js} +22 -22
- package/dist/{sequenceDiagram-c18d009d-B4IxGCEM-B3uFgxU_.js → sequenceDiagram-acc0e65c-Bk-fBLta-CsMH0Cqo.js} +917 -884
- package/dist/shellscript-DQ1J75ow-DQ1J75ow.js +7 -0
- package/dist/{shellsession-BIPXtZci-D6avbCwN.js → shellsession-btSM7PAE-lMmUmCMx.js} +1 -1
- package/dist/{stateDiagram-43596fc0-0xEMkbt_-BALY6uIB.js → stateDiagram-0ff1cf1a-Bi3BTd4c-qFbxEDNM.js} +5 -5
- package/dist/{stateDiagram-v2-2ead4f9c-DS4afpcC-B7o3rR3l.js → stateDiagram-v2-9a9d610d-IejNE6-r-bIvS4iK_.js} +12 -12
- package/dist/{styles-7383a064-C7WyH3qz-C_v2lpXJ.js → styles-3ed67cfa-BaFO0Ztt-yz8KrlaH.js} +140 -137
- package/dist/{styles-6860f46c-ZdhsT5S9-obFqRkzA.js → styles-991ebdfc-D4EpkGAf-B-Xwx8uG.js} +19 -19
- package/dist/{styles-b2c874b6-BFg-Nblp-DDESTBsS.js → styles-d20c7d72-DqCTX9VL-CceYqMjq.js} +24 -24
- package/dist/{svgDrawCommon-0ee1b4e9-CpOZq9bS-Cw8Tr_3J.js → svgDrawCommon-5ccd53ef-C-vBitUh-C3LZR4L9.js} +4 -4
- package/dist/{timeline-definition-d977decf-BqZwyTB6-C3j7tbKa.js → timeline-definition-fea2a41d-Bd7A9rUe-DzZgbnY-.js} +2 -2
- package/dist/{twig-B_Gr-ODl-Cl9Q0GWo.js → twig-Dcp9VbaI-FN48_KCA.js} +1 -1
- package/dist/{xychartDiagram-e50adddc-C1fuuOEQ-CF13knJk.js → xychartDiagram-ab372869-3O-Pt-l7-P2dDKl4d.js} +30 -30
- package/package.json +3 -3
- package/dist/arc-C2t0ExPw-CR_0vqRg.js +0 -86
- package/dist/channel-DXyvEer2-OyVZq8Xo.js +0 -5
- package/dist/gitGraphDiagram-b9d81de9-D1rNIGL0-BG2n_b9U.js +0 -1262
- package/dist/shellscript-CUUTQKn5-CUUTQKn5.js +0 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as E, Z as j } from "./graph-
|
|
2
|
-
import { m as J, A } from "./layout-
|
|
3
|
-
import { a as U } from "./clone-
|
|
4
|
-
import { h as Z, m as H, y as W, o as q, d as z, t as B, f as O, u as K, g as Q, p as V, x as Y, R, E as T } from "./edges-
|
|
5
|
-
import { l as i, c as D, p as N, h as G } from "./index-
|
|
6
|
-
import { U as _ } from "./createText-
|
|
1
|
+
import { d as E, Z as j } from "./graph-Bc1n6qSP-D5FVfre_.js";
|
|
2
|
+
import { m as J, A } from "./layout-DcWyZN_J-vui7Gviz.js";
|
|
3
|
+
import { a as U } from "./clone-Bsggwgls-BzwAVRKa.js";
|
|
4
|
+
import { h as Z, m as H, y as W, o as q, d as z, t as B, f as O, u as K, g as Q, p as V, x as Y, R, E as T } from "./edges-d32062c0-CGbRbizB-BNCq9bff.js";
|
|
5
|
+
import { l as i, c as D, p as N, h as G } from "./index-3vhKKQrV.js";
|
|
6
|
+
import { U as _ } from "./createText-6b48ae7d-c5hzPIcj-DS42dDY6.js";
|
|
7
7
|
function y(r) {
|
|
8
8
|
var e = {
|
|
9
9
|
options: {
|
|
@@ -31,7 +31,7 @@ function te(r) {
|
|
|
31
31
|
let l = {}, u = {}, $ = {};
|
|
32
32
|
const re = () => {
|
|
33
33
|
u = {}, $ = {}, l = {};
|
|
34
|
-
}, S = (r, e) => (i.trace("In
|
|
34
|
+
}, S = (r, e) => (i.trace("In isDescendant", e, " ", r, " = ", u[e].includes(r)), !!u[e].includes(r)), ne = (r, e) => (i.info("Descendants of ", e, " is ", u[e]), i.info("Edge is ", r), r.v === e || r.w === e ? !1 : u[e] ? u[e].includes(r.v) || S(r.v, e) || S(r.w, e) || u[e].includes(r.w) : (i.debug("Tilt, ", e, ",not in descendants"), !1)), I = (r, e, t, a) => {
|
|
35
35
|
i.warn(
|
|
36
36
|
"Copying children of ",
|
|
37
37
|
r,
|
|
@@ -112,7 +112,7 @@ const re = () => {
|
|
|
112
112
|
a.length > 0 ? (i.debug("Cluster identified", t, u), n.forEach((o) => {
|
|
113
113
|
if (o.v !== t && o.w !== t) {
|
|
114
114
|
const c = S(o.v, t), g = S(o.w, t);
|
|
115
|
-
c ^ g && (i.warn("Edge: ", o, " leaves cluster ", t), i.warn("
|
|
115
|
+
c ^ g && (i.warn("Edge: ", o, " leaves cluster ", t), i.warn("Descendants of XXX ", t, ": ", u[t]), l[t].externalConnections = !0);
|
|
116
116
|
}
|
|
117
117
|
})) : i.debug("Not a cluster ", t, u);
|
|
118
118
|
});
|
|
@@ -256,11 +256,11 @@ const re = () => {
|
|
|
256
256
|
const { subGraphTitleTopMargin: x } = B(t);
|
|
257
257
|
o ? c.attr(
|
|
258
258
|
"transform",
|
|
259
|
-
// This puts the
|
|
259
|
+
// This puts the label on top of the box instead of inside it
|
|
260
260
|
`translate(${e.x - h.width / 2}, ${e.y - e.height / 2 + x})`
|
|
261
261
|
) : c.attr(
|
|
262
262
|
"transform",
|
|
263
|
-
// This puts the
|
|
263
|
+
// This puts the label on top of the box instead of inside it
|
|
264
264
|
`translate(${e.x}, ${e.y - e.height / 2 + x})`
|
|
265
265
|
);
|
|
266
266
|
const v = n.node().getBBox();
|
|
@@ -338,7 +338,7 @@ const ce = (r, e) => {
|
|
|
338
338
|
})
|
|
339
339
|
), e.edges().forEach(function(d) {
|
|
340
340
|
const s = e.edge(d.v, d.w, d.name);
|
|
341
|
-
i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(d)), i.info("Edge " + d.v + " -> " + d.w + ": ", d, " ", JSON.stringify(e.edge(d))), i.info("Fix", l, "ids:", d.v, d.w, "
|
|
341
|
+
i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(d)), i.info("Edge " + d.v + " -> " + d.w + ": ", d, " ", JSON.stringify(e.edge(d))), i.info("Fix", l, "ids:", d.v, d.w, "Translating: ", l[d.v], l[d.w]), z(w, s);
|
|
342
342
|
}), e.edges().forEach(function(d) {
|
|
343
343
|
i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(d));
|
|
344
344
|
}), i.info("#############################################"), i.info("### Layout ###"), i.info("#############################################"), i.info(e), A(e), i.info("Graph after layout:", y(e));
|
package/dist/{infoDiagram-db7b18fc-DKsewKnu-nKlnfk12.js → infoDiagram-bcd20f53-DTO3TTbR-DxLIdeSc.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as U,
|
|
1
|
+
import { l as U, aL as X, i as q } from "./index-3vhKKQrV.js";
|
|
2
2
|
var A = function() {
|
|
3
3
|
var a = function(c, t, n, e) {
|
|
4
4
|
for (n = n || {}, e = c.length; e--; n[c[e]] = t)
|
|
@@ -292,26 +292,26 @@ Expecting ` + b.join(", ") + ", got '" + (this.terminals_[h] || h) + "'" : E = "
|
|
|
292
292
|
return v.prototype = _, _.Parser = v, new v();
|
|
293
293
|
}();
|
|
294
294
|
A.parser = A;
|
|
295
|
-
const
|
|
295
|
+
const B = A, N = {
|
|
296
296
|
info: !1
|
|
297
297
|
};
|
|
298
298
|
let P = N.info;
|
|
299
|
-
const
|
|
299
|
+
const C = (a) => {
|
|
300
300
|
P = a;
|
|
301
|
-
},
|
|
301
|
+
}, G = () => P, H = () => {
|
|
302
302
|
P = N.info;
|
|
303
|
-
},
|
|
304
|
-
clear:
|
|
305
|
-
setInfo:
|
|
306
|
-
getInfo:
|
|
303
|
+
}, K = {
|
|
304
|
+
clear: H,
|
|
305
|
+
setInfo: C,
|
|
306
|
+
getInfo: G
|
|
307
307
|
}, M = (a, p, _) => {
|
|
308
308
|
U.debug(`rendering info diagram
|
|
309
309
|
` + a);
|
|
310
|
-
const d =
|
|
311
|
-
|
|
310
|
+
const d = X(p);
|
|
311
|
+
q(d, 100, 400, !0), d.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${_}`);
|
|
312
312
|
}, V = { draw: M }, D = {
|
|
313
|
-
parser:
|
|
314
|
-
db:
|
|
313
|
+
parser: B,
|
|
314
|
+
db: K,
|
|
315
315
|
renderer: V
|
|
316
316
|
};
|
|
317
317
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
3
|
-
import { v as J } from "./arc-
|
|
1
|
+
import { c as C, x as ut, y as yt, s as pt, g as dt, b as ft, a as gt, A as mt, h as z, i as xt } from "./index-3vhKKQrV.js";
|
|
2
|
+
import { l as kt, d as _t, x as bt, g as nt } from "./svgDrawCommon-5ccd53ef-C-vBitUh-C3LZR4L9.js";
|
|
3
|
+
import { v as J } from "./arc-DI9wV-Mn-_GgJI37p.js";
|
|
4
4
|
var W = function() {
|
|
5
5
|
var t = function(f, i, r, l) {
|
|
6
6
|
for (r = r || {}, l = f.length; l--; r[f[l]] = i)
|
|
@@ -73,15 +73,15 @@ var W = function() {
|
|
|
73
73
|
var $;
|
|
74
74
|
return $ = l.pop() || k.lex() || U, typeof $ != "number" && ($ instanceof Array && (l = $, $ = l.pop()), $ = i.symbols_[$] || $), $;
|
|
75
75
|
}
|
|
76
|
-
for (var _, S, b,
|
|
76
|
+
for (var _, S, b, B, I = {}, L, w, Z, F; ; ) {
|
|
77
77
|
if (S = r[r.length - 1], this.defaultActions[S] ? b = this.defaultActions[S] : ((_ === null || typeof _ > "u") && (_ = ht()), b = g[S] && g[S][_]), typeof b > "u" || !b.length || !b[0]) {
|
|
78
|
-
var
|
|
78
|
+
var Y = "";
|
|
79
79
|
F = [];
|
|
80
80
|
for (L in g[S])
|
|
81
81
|
this.terminals_[L] && L > ot && F.push("'" + this.terminals_[L] + "'");
|
|
82
|
-
k.showPosition ?
|
|
82
|
+
k.showPosition ? Y = "Parse error on line " + (V + 1) + `:
|
|
83
83
|
` + k.showPosition() + `
|
|
84
|
-
Expecting ` + F.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" :
|
|
84
|
+
Expecting ` + F.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "Parse error on line " + (V + 1) + ": Unexpected " + (_ == U ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(Y, {
|
|
85
85
|
text: k.match,
|
|
86
86
|
token: this.terminals_[_] || _,
|
|
87
87
|
line: k.yylineno,
|
|
@@ -96,15 +96,15 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : B = "
|
|
|
96
96
|
r.push(_), u.push(k.yytext), a.push(k.yylloc), r.push(b[1]), _ = null, H = k.yyleng, x = k.yytext, V = k.yylineno, R = k.yylloc;
|
|
97
97
|
break;
|
|
98
98
|
case 2:
|
|
99
|
-
if (w = this.productions_[b[1]][1],
|
|
99
|
+
if (w = this.productions_[b[1]][1], I.$ = u[u.length - w], I._$ = {
|
|
100
100
|
first_line: a[a.length - (w || 1)].first_line,
|
|
101
101
|
last_line: a[a.length - 1].last_line,
|
|
102
102
|
first_column: a[a.length - (w || 1)].first_column,
|
|
103
103
|
last_column: a[a.length - 1].last_column
|
|
104
|
-
}, lt && (
|
|
104
|
+
}, lt && (I._$.range = [
|
|
105
105
|
a[a.length - (w || 1)].range[0],
|
|
106
106
|
a[a.length - 1].range[1]
|
|
107
|
-
]),
|
|
107
|
+
]), B = this.performAction.apply(I, [
|
|
108
108
|
x,
|
|
109
109
|
H,
|
|
110
110
|
V,
|
|
@@ -112,9 +112,9 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : B = "
|
|
|
112
112
|
b[1],
|
|
113
113
|
u,
|
|
114
114
|
a
|
|
115
|
-
].concat(ct)), typeof
|
|
116
|
-
return
|
|
117
|
-
w && (r = r.slice(0, -1 * w * 2), u = u.slice(0, -1 * w), a = a.slice(0, -1 * w)), r.push(this.productions_[b[1]][0]), u.push(
|
|
115
|
+
].concat(ct)), typeof B < "u")
|
|
116
|
+
return B;
|
|
117
|
+
w && (r = r.slice(0, -1 * w * 2), u = u.slice(0, -1 * w), a = a.slice(0, -1 * w)), r.push(this.productions_[b[1]][0]), u.push(I.$), a.push(I._$), Z = g[r[r.length - 2]][r[r.length - 1]], r.push(Z);
|
|
118
118
|
break;
|
|
119
119
|
case 3:
|
|
120
120
|
return !0;
|
|
@@ -351,11 +351,11 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : B = "
|
|
|
351
351
|
}();
|
|
352
352
|
W.parser = W;
|
|
353
353
|
const vt = W;
|
|
354
|
-
let
|
|
355
|
-
const q = [],
|
|
356
|
-
q.length = 0,
|
|
354
|
+
let P = "";
|
|
355
|
+
const q = [], E = [], j = [], wt = function() {
|
|
356
|
+
q.length = 0, E.length = 0, P = "", j.length = 0, mt();
|
|
357
357
|
}, $t = function(t) {
|
|
358
|
-
|
|
358
|
+
P = t, q.push(t);
|
|
359
359
|
}, Mt = function() {
|
|
360
360
|
return q;
|
|
361
361
|
}, Tt = function() {
|
|
@@ -364,10 +364,10 @@ const q = [], I = [], j = [], wt = function() {
|
|
|
364
364
|
let s = 0;
|
|
365
365
|
for (; !t && s < e; )
|
|
366
366
|
t = Q(), s++;
|
|
367
|
-
return
|
|
367
|
+
return E.push(...j), E;
|
|
368
368
|
}, St = function() {
|
|
369
369
|
const t = [];
|
|
370
|
-
return
|
|
370
|
+
return E.forEach((e) => {
|
|
371
371
|
e.people && t.push(...e.people);
|
|
372
372
|
}), [...new Set(t)].sort();
|
|
373
373
|
}, At = function(t, e) {
|
|
@@ -375,22 +375,22 @@ const q = [], I = [], j = [], wt = function() {
|
|
|
375
375
|
let o = 0, n = [];
|
|
376
376
|
s.length === 1 ? (o = Number(s[0]), n = []) : (o = Number(s[0]), n = s[1].split(","));
|
|
377
377
|
const h = n.map((p) => p.trim()), c = {
|
|
378
|
-
section:
|
|
379
|
-
type:
|
|
378
|
+
section: P,
|
|
379
|
+
type: P,
|
|
380
380
|
people: h,
|
|
381
381
|
task: t,
|
|
382
382
|
score: o
|
|
383
383
|
};
|
|
384
384
|
j.push(c);
|
|
385
|
-
},
|
|
385
|
+
}, Ct = function(t) {
|
|
386
386
|
const e = {
|
|
387
|
-
section:
|
|
388
|
-
type:
|
|
387
|
+
section: P,
|
|
388
|
+
type: P,
|
|
389
389
|
description: t,
|
|
390
390
|
task: t,
|
|
391
391
|
classes: []
|
|
392
392
|
};
|
|
393
|
-
|
|
393
|
+
E.push(e);
|
|
394
394
|
}, Q = function() {
|
|
395
395
|
const t = function(s) {
|
|
396
396
|
return j[s].processed;
|
|
@@ -399,10 +399,10 @@ const q = [], I = [], j = [], wt = function() {
|
|
|
399
399
|
for (const [s, o] of j.entries())
|
|
400
400
|
t(s), e = e && o.processed;
|
|
401
401
|
return e;
|
|
402
|
-
},
|
|
402
|
+
}, It = function() {
|
|
403
403
|
return St();
|
|
404
404
|
}, K = {
|
|
405
|
-
getConfig: () =>
|
|
405
|
+
getConfig: () => C().journey,
|
|
406
406
|
clear: wt,
|
|
407
407
|
setDiagramTitle: ut,
|
|
408
408
|
getDiagramTitle: yt,
|
|
@@ -414,9 +414,9 @@ const q = [], I = [], j = [], wt = function() {
|
|
|
414
414
|
getSections: Mt,
|
|
415
415
|
getTasks: Tt,
|
|
416
416
|
addTask: At,
|
|
417
|
-
addTaskOrg:
|
|
418
|
-
getActors:
|
|
419
|
-
},
|
|
417
|
+
addTaskOrg: Ct,
|
|
418
|
+
getActors: It
|
|
419
|
+
}, Pt = (t) => `.label {
|
|
420
420
|
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
421
421
|
font-family: var(--mermaid-font-family);
|
|
422
422
|
color: ${t.textColor};
|
|
@@ -549,7 +549,7 @@ const q = [], I = [], j = [], wt = function() {
|
|
|
549
549
|
.actor-5 {
|
|
550
550
|
${t.actor5 ? `fill: ${t.actor5}` : ""};
|
|
551
551
|
}
|
|
552
|
-
`,
|
|
552
|
+
`, Et = Pt, G = function(t, e) {
|
|
553
553
|
return kt(t, e);
|
|
554
554
|
}, jt = function(t, e) {
|
|
555
555
|
const s = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), o = t.append("g");
|
|
@@ -669,7 +669,7 @@ const Lt = function(t, e, s) {
|
|
|
669
669
|
});
|
|
670
670
|
}, M = {};
|
|
671
671
|
function Rt(t) {
|
|
672
|
-
const e =
|
|
672
|
+
const e = C().journey;
|
|
673
673
|
let s = 60;
|
|
674
674
|
Object.keys(M).forEach((o) => {
|
|
675
675
|
const n = M[o].color, h = {
|
|
@@ -691,11 +691,11 @@ function Rt(t) {
|
|
|
691
691
|
D.drawText(t, c), s += 20;
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
-
const O =
|
|
695
|
-
const n =
|
|
694
|
+
const O = C().journey, A = O.leftMargin, Bt = function(t, e, s, o) {
|
|
695
|
+
const n = C().journey, h = C().securityLevel;
|
|
696
696
|
let c;
|
|
697
|
-
h === "sandbox" && (c =
|
|
698
|
-
const p = h === "sandbox" ?
|
|
697
|
+
h === "sandbox" && (c = z("#i" + e));
|
|
698
|
+
const p = h === "sandbox" ? z(c.nodes()[0].contentDocument.body) : z("body");
|
|
699
699
|
v.init();
|
|
700
700
|
const y = p.select("#" + e);
|
|
701
701
|
D.initGraphics(y);
|
|
@@ -708,7 +708,7 @@ const O = P().journey, A = O.leftMargin, zt = function(t, e, s, o) {
|
|
|
708
708
|
color: n.actorColours[i % n.actorColours.length],
|
|
709
709
|
position: i
|
|
710
710
|
}, i++;
|
|
711
|
-
}), Rt(y), v.insert(0, 0, A, Object.keys(M).length * 50),
|
|
711
|
+
}), Rt(y), v.insert(0, 0, A, Object.keys(M).length * 50), Yt(y, m, 0);
|
|
712
712
|
const r = v.getBounds();
|
|
713
713
|
d && y.append("text").text(d).attr("x", A).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 25);
|
|
714
714
|
const l = r.stopy - r.starty + 2 * n.diagramMarginY, u = A + r.stopx + 2 * n.diagramMarginX;
|
|
@@ -736,7 +736,7 @@ const O = P().journey, A = O.leftMargin, zt = function(t, e, s, o) {
|
|
|
736
736
|
t[e] === void 0 ? t[e] = s : t[e] = o(s, t[e]);
|
|
737
737
|
},
|
|
738
738
|
updateBounds: function(t, e, s, o) {
|
|
739
|
-
const n =
|
|
739
|
+
const n = C().journey, h = this;
|
|
740
740
|
let c = 0;
|
|
741
741
|
function p(y) {
|
|
742
742
|
return function(m) {
|
|
@@ -760,8 +760,8 @@ const O = P().journey, A = O.leftMargin, zt = function(t, e, s, o) {
|
|
|
760
760
|
getBounds: function() {
|
|
761
761
|
return this.data;
|
|
762
762
|
}
|
|
763
|
-
}, X = O.sectionFills, et = O.sectionColours,
|
|
764
|
-
const o =
|
|
763
|
+
}, X = O.sectionFills, et = O.sectionColours, Yt = function(t, e, s) {
|
|
764
|
+
const o = C().journey;
|
|
765
765
|
let n = "";
|
|
766
766
|
const h = o.height * 2 + o.diagramMarginY, c = s + h;
|
|
767
767
|
let p = 0, y = "#CCC", m = "black", d = 0;
|
|
@@ -788,12 +788,12 @@ const O = P().journey, A = O.leftMargin, zt = function(t, e, s, o) {
|
|
|
788
788
|
}
|
|
789
789
|
}, it = {
|
|
790
790
|
setConf: Nt,
|
|
791
|
-
draw:
|
|
791
|
+
draw: Bt
|
|
792
792
|
}, qt = {
|
|
793
793
|
parser: vt,
|
|
794
794
|
db: K,
|
|
795
795
|
renderer: it,
|
|
796
|
-
styles:
|
|
796
|
+
styles: Et,
|
|
797
797
|
init: (t) => {
|
|
798
798
|
it.setConf(t.journey), K.clear();
|
|
799
799
|
}
|