@kong-ui-public/documentation 1.4.17-pr.2640.fb8bab909.0 → 1.4.17
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/_basePickBy-BCsiP0lE-DJBdvZNn.js +151 -0
- package/dist/{_baseUniq-SAfYgIkf-buEvGj9H.js → _baseUniq-CsvgMmt0-CCBG5z_B.js} +165 -165
- package/dist/arc-DYb5Ak6k-js8YHzj6.js +83 -0
- package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +5 -0
- package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +4665 -0
- package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +2265 -0
- package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DzlUmurv.js → c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js} +4 -4
- package/dist/{channel-bVcNKbrJ-NqcPkfCx.js → channel-3QVQMCTA-BwyrTaJi.js} +1 -1
- package/dist/{chunk-TMUBEWPD-BRIzn5gH-alZ9Sg3f.js → chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js} +1 -1
- package/dist/{chunk-KFBOBJHC-nixdujtH-CrTZo7r-.js → chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js} +1 -1
- package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +19 -0
- package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +1374 -0
- package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +1382 -0
- package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +20 -0
- package/dist/{chunk-ASOPGD6M-B5bA_saK-BiT875Ve.js → chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js} +1 -1
- package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +8 -0
- package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +16 -0
- package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +16 -0
- package/dist/{clone-_5SW34SG-DOuhA6mG.js → clone-C0dvnYv6-BozdSvey.js} +1 -1
- package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +18721 -0
- package/dist/{dagre-4EVJKHTY-CcAruc30-B3UMlKNl.js → dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js} +53 -53
- package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +171 -0
- package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +533 -0
- package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +143 -0
- package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +221 -0
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +860 -399
- package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +840 -0
- package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +1627 -0
- package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +2504 -0
- package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +5 -0
- package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-BkGPAEnk.js → gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js} +103 -103
- package/dist/{graph-BYZMvqpu-BXRs5843.js → graph-B_1gOUDz-Dm6REFzZ.js} +2 -2
- package/dist/{index-CMZig9xg.js → index-BDD0CD9m.js} +9834 -9540
- package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +5 -0
- package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +24 -0
- package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-y6YegUqL.js → journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js} +357 -333
- package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-BOYYKTAB.js → kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js} +75 -73
- package/dist/{katex-Qk2jHgyB-_qyJ_37x.js → katex-C0Lgw_Sx-CbX2I1cQ.js} +1864 -1814
- package/dist/{layout-BHI4imdk-CESYC-il.js → layout-9vIfpCf3-FfABA43y.js} +81 -81
- package/dist/linear-C-k9vokG-Md9dfBfB.js +259 -0
- package/dist/{mermaid-parser.core-Ce96PX3Q-CV9ue_xr.js → mermaid-parser.core-DHL9WXVx-DeKF3RZx.js} +4080 -3590
- package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DUWC1UH5.js → mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js} +1112 -1100
- package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +5 -0
- package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +5 -0
- package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +161 -0
- package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-BRx-dMGe.js → quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js} +2 -2
- package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +5 -0
- package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +850 -0
- package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-D2Qzxmhx.js → sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js} +198 -193
- package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-KCpoI-Ck.js → sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js} +1001 -992
- package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +263 -0
- package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +16 -0
- package/dist/style.css +1 -1
- package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +799 -0
- package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +5 -0
- package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CUbJ50KT.js → xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js} +459 -423
- package/package.json +4 -4
- package/dist/_basePickBy-zlkqRmFy-D6w9JBLu.js +0 -151
- package/dist/arc-CK9P6CkJ-DVgfRhzX.js +0 -83
- package/dist/architecture-I3QFYML2-DJzmbE4M-C3v7Cpg0.js +0 -5
- package/dist/architectureDiagram-UYN6MBPD-DkZdgpXi-BTThTJ0F.js +0 -4592
- package/dist/blockDiagram-ZHA2E4KO-DnCMGCMN-DBXa-baO.js +0 -2247
- package/dist/chunk-5HRBRIJM-BjQ8go1b-CJmT3AYe.js +0 -24
- package/dist/chunk-7U56Z5CX-awhAxjZ0-Cs_UWlwk.js +0 -1213
- package/dist/chunk-T2TOU4HS-DqOVhIzl-O3PUl7Qp.js +0 -1301
- package/dist/classDiagram-LNE6IOMH-fQzyXfo--DYLd8UQH.js +0 -14
- package/dist/classDiagram-v2-MQ7JQ4JX-fQzyXfo--DYLd8UQH.js +0 -14
- package/dist/cytoscape.esm-DAyNQ0qu-i5PnoWfE.js +0 -16110
- package/dist/diagram-QW4FP2JN-DZT_0aFO-SYzM51ke.js +0 -126
- package/dist/erDiagram-6RL3IURR-BfgUC5jv-BrebVho-.js +0 -937
- package/dist/flowDiagram-7ASYPVHJ-Bo9CnsE7-Ds2vln_y.js +0 -1484
- package/dist/ganttDiagram-NTVNEXSI-8E9hjd6N-fR_cmeDc.js +0 -2491
- package/dist/gitGraph-YCYPL57B-BnErPIwo-DXUTceC1.js +0 -5
- package/dist/info-46DW6VJ7-DPpbx_vA-omPXKuBd.js +0 -5
- package/dist/infoDiagram-A4XQUW5V-Bo9uoOcA-CnlgI27B.js +0 -22
- package/dist/linear-C2PheBya-BHVXLcru.js +0 -423
- package/dist/packet-W2GHVCYJ-BLiQbm7T-BD1xX8XM.js +0 -5
- package/dist/pie-BEWT4RHE-D3Mbo3mT-B4n38n6N.js +0 -5
- package/dist/pieDiagram-YF2LJOPJ-BJV27s9B-DA7hy5wG.js +0 -161
- package/dist/requirementDiagram-MIRIMTAZ-D0KDg7rf-CRMUyo68.js +0 -768
- package/dist/stateDiagram-MAYHULR4-D7FUnT9_-aCApnrI4.js +0 -268
- package/dist/stateDiagram-v2-4JROLMXI-Cyc74STT-D-7hwTRo.js +0 -14
- package/dist/timeline-definition-U7ZMHBDA-Bw-dp1yf-C01CsNUU.js +0 -804
|
@@ -1,804 +0,0 @@
|
|
|
1
|
-
import { _ as a, g as mt, l as S, a9 as V, bk as xt, bl as bt, bm as kt, bn as _t, bo as vt, bp as wt, aq as St } from "./index-CMZig9xg.js";
|
|
2
|
-
import { h as et } from "./arc-CK9P6CkJ-DVgfRhzX.js";
|
|
3
|
-
var J = function() {
|
|
4
|
-
var n = /* @__PURE__ */ a(function(x, i, c, d) {
|
|
5
|
-
for (c = c || {}, d = x.length; d--; c[x[d]] = i) ;
|
|
6
|
-
return c;
|
|
7
|
-
}, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], r = [1, 10], s = [1, 11], h = [1, 12], o = [1, 13], p = [1, 16], g = [1, 17], f = {
|
|
8
|
-
trace: /* @__PURE__ */ a(function() {
|
|
9
|
-
}, "trace"),
|
|
10
|
-
yy: {},
|
|
11
|
-
symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
|
|
12
|
-
terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
|
|
13
|
-
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
|
|
14
|
-
performAction: /* @__PURE__ */ a(function(x, i, c, d, u, l, b) {
|
|
15
|
-
var k = l.length - 1;
|
|
16
|
-
switch (u) {
|
|
17
|
-
case 1:
|
|
18
|
-
return l[k - 1];
|
|
19
|
-
case 2:
|
|
20
|
-
this.$ = [];
|
|
21
|
-
break;
|
|
22
|
-
case 3:
|
|
23
|
-
l[k - 1].push(l[k]), this.$ = l[k - 1];
|
|
24
|
-
break;
|
|
25
|
-
case 4:
|
|
26
|
-
case 5:
|
|
27
|
-
this.$ = l[k];
|
|
28
|
-
break;
|
|
29
|
-
case 6:
|
|
30
|
-
case 7:
|
|
31
|
-
this.$ = [];
|
|
32
|
-
break;
|
|
33
|
-
case 8:
|
|
34
|
-
d.getCommonDb().setDiagramTitle(l[k].substr(6)), this.$ = l[k].substr(6);
|
|
35
|
-
break;
|
|
36
|
-
case 9:
|
|
37
|
-
this.$ = l[k].trim(), d.getCommonDb().setAccTitle(this.$);
|
|
38
|
-
break;
|
|
39
|
-
case 10:
|
|
40
|
-
case 11:
|
|
41
|
-
this.$ = l[k].trim(), d.getCommonDb().setAccDescription(this.$);
|
|
42
|
-
break;
|
|
43
|
-
case 12:
|
|
44
|
-
d.addSection(l[k].substr(8)), this.$ = l[k].substr(8);
|
|
45
|
-
break;
|
|
46
|
-
case 15:
|
|
47
|
-
d.addTask(l[k], 0, ""), this.$ = l[k];
|
|
48
|
-
break;
|
|
49
|
-
case 16:
|
|
50
|
-
d.addEvent(l[k].substr(2)), this.$ = l[k];
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
}, "anonymous"),
|
|
54
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: r, 14: s, 16: h, 17: o, 18: 14, 19: 15, 20: p, 21: g }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: r, 14: s, 16: h, 17: o, 18: 14, 19: 15, 20: p, 21: g }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
|
|
55
|
-
defaultActions: {},
|
|
56
|
-
parseError: /* @__PURE__ */ a(function(x, i) {
|
|
57
|
-
if (i.recoverable)
|
|
58
|
-
this.trace(x);
|
|
59
|
-
else {
|
|
60
|
-
var c = new Error(x);
|
|
61
|
-
throw c.hash = i, c;
|
|
62
|
-
}
|
|
63
|
-
}, "parseError"),
|
|
64
|
-
parse: /* @__PURE__ */ a(function(x) {
|
|
65
|
-
var i = this, c = [0], d = [], u = [null], l = [], b = this.table, k = "", $ = 0, N = 0, O = 2, L = 1, j = l.slice.call(arguments, 1), m = Object.create(this.lexer), v = { yy: {} };
|
|
66
|
-
for (var I in this.yy)
|
|
67
|
-
Object.prototype.hasOwnProperty.call(this.yy, I) && (v.yy[I] = this.yy[I]);
|
|
68
|
-
m.setInput(x, v.yy), v.yy.lexer = m, v.yy.parser = this, typeof m.yylloc > "u" && (m.yylloc = {});
|
|
69
|
-
var M = m.yylloc;
|
|
70
|
-
l.push(M);
|
|
71
|
-
var C = m.options && m.options.ranges;
|
|
72
|
-
typeof v.yy.parseError == "function" ? this.parseError = v.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
73
|
-
function B(E) {
|
|
74
|
-
c.length = c.length - 2 * E, u.length = u.length - E, l.length = l.length - E;
|
|
75
|
-
}
|
|
76
|
-
a(B, "popStack");
|
|
77
|
-
function F() {
|
|
78
|
-
var E;
|
|
79
|
-
return E = d.pop() || m.lex() || L, typeof E != "number" && (E instanceof Array && (d = E, E = d.pop()), E = i.symbols_[E] || E), E;
|
|
80
|
-
}
|
|
81
|
-
a(F, "lex");
|
|
82
|
-
for (var w, P, T, Z, R = {}, W, A, tt, q; ; ) {
|
|
83
|
-
if (P = c[c.length - 1], this.defaultActions[P] ? T = this.defaultActions[P] : ((w === null || typeof w > "u") && (w = F()), T = b[P] && b[P][w]), typeof T > "u" || !T.length || !T[0]) {
|
|
84
|
-
var G = "";
|
|
85
|
-
q = [];
|
|
86
|
-
for (W in b[P])
|
|
87
|
-
this.terminals_[W] && W > O && q.push("'" + this.terminals_[W] + "'");
|
|
88
|
-
m.showPosition ? G = "Parse error on line " + ($ + 1) + `:
|
|
89
|
-
` + m.showPosition() + `
|
|
90
|
-
Expecting ` + q.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : G = "Parse error on line " + ($ + 1) + ": Unexpected " + (w == L ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(G, {
|
|
91
|
-
text: m.match,
|
|
92
|
-
token: this.terminals_[w] || w,
|
|
93
|
-
line: m.yylineno,
|
|
94
|
-
loc: M,
|
|
95
|
-
expected: q
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
if (T[0] instanceof Array && T.length > 1)
|
|
99
|
-
throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + w);
|
|
100
|
-
switch (T[0]) {
|
|
101
|
-
case 1:
|
|
102
|
-
c.push(w), u.push(m.yytext), l.push(m.yylloc), c.push(T[1]), w = null, N = m.yyleng, k = m.yytext, $ = m.yylineno, M = m.yylloc;
|
|
103
|
-
break;
|
|
104
|
-
case 2:
|
|
105
|
-
if (A = this.productions_[T[1]][1], R.$ = u[u.length - A], R._$ = {
|
|
106
|
-
first_line: l[l.length - (A || 1)].first_line,
|
|
107
|
-
last_line: l[l.length - 1].last_line,
|
|
108
|
-
first_column: l[l.length - (A || 1)].first_column,
|
|
109
|
-
last_column: l[l.length - 1].last_column
|
|
110
|
-
}, C && (R._$.range = [
|
|
111
|
-
l[l.length - (A || 1)].range[0],
|
|
112
|
-
l[l.length - 1].range[1]
|
|
113
|
-
]), Z = this.performAction.apply(R, [
|
|
114
|
-
k,
|
|
115
|
-
N,
|
|
116
|
-
$,
|
|
117
|
-
v.yy,
|
|
118
|
-
T[1],
|
|
119
|
-
u,
|
|
120
|
-
l
|
|
121
|
-
].concat(j)), typeof Z < "u")
|
|
122
|
-
return Z;
|
|
123
|
-
A && (c = c.slice(0, -1 * A * 2), u = u.slice(0, -1 * A), l = l.slice(0, -1 * A)), c.push(this.productions_[T[1]][0]), u.push(R.$), l.push(R._$), tt = b[c[c.length - 2]][c[c.length - 1]], c.push(tt);
|
|
124
|
-
break;
|
|
125
|
-
case 3:
|
|
126
|
-
return !0;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
return !0;
|
|
130
|
-
}, "parse")
|
|
131
|
-
}, y = /* @__PURE__ */ function() {
|
|
132
|
-
var x = {
|
|
133
|
-
EOF: 1,
|
|
134
|
-
parseError: /* @__PURE__ */ a(function(i, c) {
|
|
135
|
-
if (this.yy.parser)
|
|
136
|
-
this.yy.parser.parseError(i, c);
|
|
137
|
-
else
|
|
138
|
-
throw new Error(i);
|
|
139
|
-
}, "parseError"),
|
|
140
|
-
// resets the lexer, sets new input
|
|
141
|
-
setInput: /* @__PURE__ */ a(function(i, c) {
|
|
142
|
-
return this.yy = c || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
143
|
-
first_line: 1,
|
|
144
|
-
first_column: 0,
|
|
145
|
-
last_line: 1,
|
|
146
|
-
last_column: 0
|
|
147
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
148
|
-
}, "setInput"),
|
|
149
|
-
// consumes and returns one char from the input
|
|
150
|
-
input: /* @__PURE__ */ a(function() {
|
|
151
|
-
var i = this._input[0];
|
|
152
|
-
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
153
|
-
var c = i.match(/(?:\r\n?|\n).*/g);
|
|
154
|
-
return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
155
|
-
}, "input"),
|
|
156
|
-
// unshifts one char (or a string) into the input
|
|
157
|
-
unput: /* @__PURE__ */ a(function(i) {
|
|
158
|
-
var c = i.length, d = i.split(/(?:\r\n?|\n)/g);
|
|
159
|
-
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
|
|
160
|
-
var u = this.match.split(/(?:\r\n?|\n)/g);
|
|
161
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.length - 1);
|
|
162
|
-
var l = this.yylloc.range;
|
|
163
|
-
return this.yylloc = {
|
|
164
|
-
first_line: this.yylloc.first_line,
|
|
165
|
-
last_line: this.yylineno + 1,
|
|
166
|
-
first_column: this.yylloc.first_column,
|
|
167
|
-
last_column: d ? (d.length === u.length ? this.yylloc.first_column : 0) + u[u.length - d.length].length - d[0].length : this.yylloc.first_column - c
|
|
168
|
-
}, this.options.ranges && (this.yylloc.range = [l[0], l[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
|
|
169
|
-
}, "unput"),
|
|
170
|
-
// When called from action, caches matched text and appends it on next action
|
|
171
|
-
more: /* @__PURE__ */ a(function() {
|
|
172
|
-
return this._more = !0, this;
|
|
173
|
-
}, "more"),
|
|
174
|
-
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
175
|
-
reject: /* @__PURE__ */ a(function() {
|
|
176
|
-
if (this.options.backtrack_lexer)
|
|
177
|
-
this._backtrack = !0;
|
|
178
|
-
else
|
|
179
|
-
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
180
|
-
` + this.showPosition(), {
|
|
181
|
-
text: "",
|
|
182
|
-
token: null,
|
|
183
|
-
line: this.yylineno
|
|
184
|
-
});
|
|
185
|
-
return this;
|
|
186
|
-
}, "reject"),
|
|
187
|
-
// retain first n characters of the match
|
|
188
|
-
less: /* @__PURE__ */ a(function(i) {
|
|
189
|
-
this.unput(this.match.slice(i));
|
|
190
|
-
}, "less"),
|
|
191
|
-
// displays already matched input, i.e. for error messages
|
|
192
|
-
pastInput: /* @__PURE__ */ a(function() {
|
|
193
|
-
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
194
|
-
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
195
|
-
}, "pastInput"),
|
|
196
|
-
// displays upcoming input, i.e. for error messages
|
|
197
|
-
upcomingInput: /* @__PURE__ */ a(function() {
|
|
198
|
-
var i = this.match;
|
|
199
|
-
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
200
|
-
}, "upcomingInput"),
|
|
201
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
202
|
-
showPosition: /* @__PURE__ */ a(function() {
|
|
203
|
-
var i = this.pastInput(), c = new Array(i.length + 1).join("-");
|
|
204
|
-
return i + this.upcomingInput() + `
|
|
205
|
-
` + c + "^";
|
|
206
|
-
}, "showPosition"),
|
|
207
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
208
|
-
test_match: /* @__PURE__ */ a(function(i, c) {
|
|
209
|
-
var d, u, l;
|
|
210
|
-
if (this.options.backtrack_lexer && (l = {
|
|
211
|
-
yylineno: this.yylineno,
|
|
212
|
-
yylloc: {
|
|
213
|
-
first_line: this.yylloc.first_line,
|
|
214
|
-
last_line: this.last_line,
|
|
215
|
-
first_column: this.yylloc.first_column,
|
|
216
|
-
last_column: this.yylloc.last_column
|
|
217
|
-
},
|
|
218
|
-
yytext: this.yytext,
|
|
219
|
-
match: this.match,
|
|
220
|
-
matches: this.matches,
|
|
221
|
-
matched: this.matched,
|
|
222
|
-
yyleng: this.yyleng,
|
|
223
|
-
offset: this.offset,
|
|
224
|
-
_more: this._more,
|
|
225
|
-
_input: this._input,
|
|
226
|
-
yy: this.yy,
|
|
227
|
-
conditionStack: this.conditionStack.slice(0),
|
|
228
|
-
done: this.done
|
|
229
|
-
}, this.options.ranges && (l.yylloc.range = this.yylloc.range.slice(0))), u = i[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
|
|
230
|
-
first_line: this.yylloc.last_line,
|
|
231
|
-
last_line: this.yylineno + 1,
|
|
232
|
-
first_column: this.yylloc.last_column,
|
|
233
|
-
last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
234
|
-
}, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], d = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d)
|
|
235
|
-
return d;
|
|
236
|
-
if (this._backtrack) {
|
|
237
|
-
for (var b in l)
|
|
238
|
-
this[b] = l[b];
|
|
239
|
-
return !1;
|
|
240
|
-
}
|
|
241
|
-
return !1;
|
|
242
|
-
}, "test_match"),
|
|
243
|
-
// return next match in input
|
|
244
|
-
next: /* @__PURE__ */ a(function() {
|
|
245
|
-
if (this.done)
|
|
246
|
-
return this.EOF;
|
|
247
|
-
this._input || (this.done = !0);
|
|
248
|
-
var i, c, d, u;
|
|
249
|
-
this._more || (this.yytext = "", this.match = "");
|
|
250
|
-
for (var l = this._currentRules(), b = 0; b < l.length; b++)
|
|
251
|
-
if (d = this._input.match(this.rules[l[b]]), d && (!c || d[0].length > c[0].length)) {
|
|
252
|
-
if (c = d, u = b, this.options.backtrack_lexer) {
|
|
253
|
-
if (i = this.test_match(d, l[b]), i !== !1)
|
|
254
|
-
return i;
|
|
255
|
-
if (this._backtrack) {
|
|
256
|
-
c = !1;
|
|
257
|
-
continue;
|
|
258
|
-
} else
|
|
259
|
-
return !1;
|
|
260
|
-
} else if (!this.options.flex)
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
return c ? (i = this.test_match(c, l[u]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
264
|
-
` + this.showPosition(), {
|
|
265
|
-
text: "",
|
|
266
|
-
token: null,
|
|
267
|
-
line: this.yylineno
|
|
268
|
-
});
|
|
269
|
-
}, "next"),
|
|
270
|
-
// return next match that has a token
|
|
271
|
-
lex: /* @__PURE__ */ a(function() {
|
|
272
|
-
var i = this.next();
|
|
273
|
-
return i || this.lex();
|
|
274
|
-
}, "lex"),
|
|
275
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
276
|
-
begin: /* @__PURE__ */ a(function(i) {
|
|
277
|
-
this.conditionStack.push(i);
|
|
278
|
-
}, "begin"),
|
|
279
|
-
// pop the previously active lexer condition state off the condition stack
|
|
280
|
-
popState: /* @__PURE__ */ a(function() {
|
|
281
|
-
var i = this.conditionStack.length - 1;
|
|
282
|
-
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
283
|
-
}, "popState"),
|
|
284
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
285
|
-
_currentRules: /* @__PURE__ */ a(function() {
|
|
286
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
287
|
-
}, "_currentRules"),
|
|
288
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
289
|
-
topState: /* @__PURE__ */ a(function(i) {
|
|
290
|
-
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
291
|
-
}, "topState"),
|
|
292
|
-
// alias for begin(condition)
|
|
293
|
-
pushState: /* @__PURE__ */ a(function(i) {
|
|
294
|
-
this.begin(i);
|
|
295
|
-
}, "pushState"),
|
|
296
|
-
// return the number of states currently on the stack
|
|
297
|
-
stateStackSize: /* @__PURE__ */ a(function() {
|
|
298
|
-
return this.conditionStack.length;
|
|
299
|
-
}, "stateStackSize"),
|
|
300
|
-
options: { "case-insensitive": !0 },
|
|
301
|
-
performAction: /* @__PURE__ */ a(function(i, c, d, u) {
|
|
302
|
-
switch (d) {
|
|
303
|
-
case 0:
|
|
304
|
-
break;
|
|
305
|
-
case 1:
|
|
306
|
-
break;
|
|
307
|
-
case 2:
|
|
308
|
-
return 10;
|
|
309
|
-
case 3:
|
|
310
|
-
break;
|
|
311
|
-
case 4:
|
|
312
|
-
break;
|
|
313
|
-
case 5:
|
|
314
|
-
return 4;
|
|
315
|
-
case 6:
|
|
316
|
-
return 11;
|
|
317
|
-
case 7:
|
|
318
|
-
return this.begin("acc_title"), 12;
|
|
319
|
-
case 8:
|
|
320
|
-
return this.popState(), "acc_title_value";
|
|
321
|
-
case 9:
|
|
322
|
-
return this.begin("acc_descr"), 14;
|
|
323
|
-
case 10:
|
|
324
|
-
return this.popState(), "acc_descr_value";
|
|
325
|
-
case 11:
|
|
326
|
-
this.begin("acc_descr_multiline");
|
|
327
|
-
break;
|
|
328
|
-
case 12:
|
|
329
|
-
this.popState();
|
|
330
|
-
break;
|
|
331
|
-
case 13:
|
|
332
|
-
return "acc_descr_multiline_value";
|
|
333
|
-
case 14:
|
|
334
|
-
return 17;
|
|
335
|
-
case 15:
|
|
336
|
-
return 21;
|
|
337
|
-
case 16:
|
|
338
|
-
return 20;
|
|
339
|
-
case 17:
|
|
340
|
-
return 6;
|
|
341
|
-
case 18:
|
|
342
|
-
return "INVALID";
|
|
343
|
-
}
|
|
344
|
-
}, "anonymous"),
|
|
345
|
-
rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s[^:\n]+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
|
|
346
|
-
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: !0 } }
|
|
347
|
-
};
|
|
348
|
-
return x;
|
|
349
|
-
}();
|
|
350
|
-
f.lexer = y;
|
|
351
|
-
function _() {
|
|
352
|
-
this.yy = {};
|
|
353
|
-
}
|
|
354
|
-
return a(_, "Parser"), _.prototype = f, f.Parser = _, new _();
|
|
355
|
-
}();
|
|
356
|
-
J.parser = J;
|
|
357
|
-
var $t = J, at = {};
|
|
358
|
-
vt(at, {
|
|
359
|
-
addEvent: () => pt,
|
|
360
|
-
addSection: () => lt,
|
|
361
|
-
addTask: () => ut,
|
|
362
|
-
addTaskOrg: () => yt,
|
|
363
|
-
clear: () => ct,
|
|
364
|
-
default: () => Et,
|
|
365
|
-
getCommonDb: () => ot,
|
|
366
|
-
getSections: () => ht,
|
|
367
|
-
getTasks: () => dt
|
|
368
|
-
});
|
|
369
|
-
var D = "", rt = 0, X = [], U = [], z = [], ot = /* @__PURE__ */ a(() => wt, "getCommonDb"), ct = /* @__PURE__ */ a(function() {
|
|
370
|
-
X.length = 0, U.length = 0, D = "", z.length = 0, St();
|
|
371
|
-
}, "clear"), lt = /* @__PURE__ */ a(function(n) {
|
|
372
|
-
D = n, X.push(n);
|
|
373
|
-
}, "addSection"), ht = /* @__PURE__ */ a(function() {
|
|
374
|
-
return X;
|
|
375
|
-
}, "getSections"), dt = /* @__PURE__ */ a(function() {
|
|
376
|
-
let n = nt();
|
|
377
|
-
const t = 100;
|
|
378
|
-
let e = 0;
|
|
379
|
-
for (; !n && e < t; )
|
|
380
|
-
n = nt(), e++;
|
|
381
|
-
return U.push(...z), U;
|
|
382
|
-
}, "getTasks"), ut = /* @__PURE__ */ a(function(n, t, e) {
|
|
383
|
-
const r = {
|
|
384
|
-
id: rt++,
|
|
385
|
-
section: D,
|
|
386
|
-
type: D,
|
|
387
|
-
task: n,
|
|
388
|
-
score: t || 0,
|
|
389
|
-
//if event is defined, then add it the events array
|
|
390
|
-
events: e ? [e] : []
|
|
391
|
-
};
|
|
392
|
-
z.push(r);
|
|
393
|
-
}, "addTask"), pt = /* @__PURE__ */ a(function(n) {
|
|
394
|
-
z.find((t) => t.id === rt - 1).events.push(n);
|
|
395
|
-
}, "addEvent"), yt = /* @__PURE__ */ a(function(n) {
|
|
396
|
-
const t = {
|
|
397
|
-
section: D,
|
|
398
|
-
type: D,
|
|
399
|
-
description: n,
|
|
400
|
-
task: n,
|
|
401
|
-
classes: []
|
|
402
|
-
};
|
|
403
|
-
U.push(t);
|
|
404
|
-
}, "addTaskOrg"), nt = /* @__PURE__ */ a(function() {
|
|
405
|
-
const n = /* @__PURE__ */ a(function(e) {
|
|
406
|
-
return z[e].processed;
|
|
407
|
-
}, "compileTask");
|
|
408
|
-
let t = !0;
|
|
409
|
-
for (const [e, r] of z.entries())
|
|
410
|
-
n(e), t = t && r.processed;
|
|
411
|
-
return t;
|
|
412
|
-
}, "compileTasks"), Et = {
|
|
413
|
-
clear: ct,
|
|
414
|
-
getCommonDb: ot,
|
|
415
|
-
addSection: lt,
|
|
416
|
-
getSections: ht,
|
|
417
|
-
getTasks: dt,
|
|
418
|
-
addTask: ut,
|
|
419
|
-
addTaskOrg: yt,
|
|
420
|
-
addEvent: pt
|
|
421
|
-
}, Tt = 12, Y = /* @__PURE__ */ a(function(n, t) {
|
|
422
|
-
const e = n.append("rect");
|
|
423
|
-
return 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), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
|
|
424
|
-
}, "drawRect"), It = /* @__PURE__ */ a(function(n, t) {
|
|
425
|
-
const e = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = n.append("g");
|
|
426
|
-
r.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
427
|
-
function s(p) {
|
|
428
|
-
const g = et().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
429
|
-
p.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
430
|
-
}
|
|
431
|
-
a(s, "smile");
|
|
432
|
-
function h(p) {
|
|
433
|
-
const g = et().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
434
|
-
p.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
435
|
-
}
|
|
436
|
-
a(h, "sad");
|
|
437
|
-
function o(p) {
|
|
438
|
-
p.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
439
|
-
}
|
|
440
|
-
return a(o, "ambivalent"), t.score > 3 ? s(r) : t.score < 3 ? h(r) : o(r), e;
|
|
441
|
-
}, "drawFace"), Mt = /* @__PURE__ */ a(function(n, t) {
|
|
442
|
-
const e = n.append("circle");
|
|
443
|
-
return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
|
|
444
|
-
}, "drawCircle"), gt = /* @__PURE__ */ a(function(n, t) {
|
|
445
|
-
const e = t.text.replace(/<br\s*\/?>/gi, " "), r = n.append("text");
|
|
446
|
-
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);
|
|
447
|
-
const s = r.append("tspan");
|
|
448
|
-
return s.attr("x", t.x + t.textMargin * 2), s.text(e), r;
|
|
449
|
-
}, "drawText"), At = /* @__PURE__ */ a(function(n, t) {
|
|
450
|
-
function e(s, h, o, p, g) {
|
|
451
|
-
return s + "," + h + " " + (s + o) + "," + h + " " + (s + o) + "," + (h + p - g) + " " + (s + o - g * 1.2) + "," + (h + p) + " " + s + "," + (h + p);
|
|
452
|
-
}
|
|
453
|
-
a(e, "genPoints");
|
|
454
|
-
const r = n.append("polygon");
|
|
455
|
-
r.attr("points", e(t.x, t.y, 50, 20, 7)), r.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, gt(n, t);
|
|
456
|
-
}, "drawLabel"), Lt = /* @__PURE__ */ a(function(n, t, e) {
|
|
457
|
-
const r = n.append("g"), s = K();
|
|
458
|
-
s.x = t.x, s.y = t.y, s.fill = t.fill, s.width = e.width, s.height = e.height, s.class = "journey-section section-type-" + t.num, s.rx = 3, s.ry = 3, Y(r, s), ft(e)(
|
|
459
|
-
t.text,
|
|
460
|
-
r,
|
|
461
|
-
s.x,
|
|
462
|
-
s.y,
|
|
463
|
-
s.width,
|
|
464
|
-
s.height,
|
|
465
|
-
{ class: "journey-section section-type-" + t.num },
|
|
466
|
-
e,
|
|
467
|
-
t.colour
|
|
468
|
-
);
|
|
469
|
-
}, "drawSection"), it = -1, Pt = /* @__PURE__ */ a(function(n, t, e) {
|
|
470
|
-
const r = t.x + e.width / 2, s = n.append("g");
|
|
471
|
-
it++;
|
|
472
|
-
const h = 300 + 5 * 30;
|
|
473
|
-
s.append("line").attr("id", "task" + it).attr("x1", r).attr("y1", t.y).attr("x2", r).attr("y2", h).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), It(s, {
|
|
474
|
-
cx: r,
|
|
475
|
-
cy: 300 + (5 - t.score) * 30,
|
|
476
|
-
score: t.score
|
|
477
|
-
});
|
|
478
|
-
const o = K();
|
|
479
|
-
o.x = t.x, o.y = t.y, o.fill = t.fill, o.width = e.width, o.height = e.height, o.class = "task task-type-" + t.num, o.rx = 3, o.ry = 3, Y(s, o), ft(e)(
|
|
480
|
-
t.task,
|
|
481
|
-
s,
|
|
482
|
-
o.x,
|
|
483
|
-
o.y,
|
|
484
|
-
o.width,
|
|
485
|
-
o.height,
|
|
486
|
-
{ class: "task" },
|
|
487
|
-
e,
|
|
488
|
-
t.colour
|
|
489
|
-
);
|
|
490
|
-
}, "drawTask"), Ht = /* @__PURE__ */ a(function(n, t) {
|
|
491
|
-
Y(n, {
|
|
492
|
-
x: t.startx,
|
|
493
|
-
y: t.starty,
|
|
494
|
-
width: t.stopx - t.startx,
|
|
495
|
-
height: t.stopy - t.starty,
|
|
496
|
-
fill: t.fill,
|
|
497
|
-
class: "rect"
|
|
498
|
-
}).lower();
|
|
499
|
-
}, "drawBackgroundRect"), Ot = /* @__PURE__ */ a(function() {
|
|
500
|
-
return {
|
|
501
|
-
x: 0,
|
|
502
|
-
y: 0,
|
|
503
|
-
fill: void 0,
|
|
504
|
-
"text-anchor": "start",
|
|
505
|
-
width: 100,
|
|
506
|
-
height: 100,
|
|
507
|
-
textMargin: 0,
|
|
508
|
-
rx: 0,
|
|
509
|
-
ry: 0
|
|
510
|
-
};
|
|
511
|
-
}, "getTextObj"), K = /* @__PURE__ */ a(function() {
|
|
512
|
-
return {
|
|
513
|
-
x: 0,
|
|
514
|
-
y: 0,
|
|
515
|
-
width: 100,
|
|
516
|
-
anchor: "start",
|
|
517
|
-
height: 100,
|
|
518
|
-
rx: 0,
|
|
519
|
-
ry: 0
|
|
520
|
-
};
|
|
521
|
-
}, "getNoteRect"), ft = /* @__PURE__ */ function() {
|
|
522
|
-
function n(s, h, o, p, g, f, y, _) {
|
|
523
|
-
const x = h.append("text").attr("x", o + g / 2).attr("y", p + f / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(s);
|
|
524
|
-
r(x, y);
|
|
525
|
-
}
|
|
526
|
-
a(n, "byText");
|
|
527
|
-
function t(s, h, o, p, g, f, y, _, x) {
|
|
528
|
-
const { taskFontSize: i, taskFontFamily: c } = _, d = s.split(/<br\s*\/?>/gi);
|
|
529
|
-
for (let u = 0; u < d.length; u++) {
|
|
530
|
-
const l = u * i - i * (d.length - 1) / 2, b = h.append("text").attr("x", o + g / 2).attr("y", p).attr("fill", x).style("text-anchor", "middle").style("font-size", i).style("font-family", c);
|
|
531
|
-
b.append("tspan").attr("x", o + g / 2).attr("dy", l).text(d[u]), b.attr("y", p + f / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(b, y);
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
a(t, "byTspan");
|
|
535
|
-
function e(s, h, o, p, g, f, y, _) {
|
|
536
|
-
const x = h.append("switch"), i = x.append("foreignObject").attr("x", o).attr("y", p).attr("width", g).attr("height", f).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
537
|
-
i.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), t(s, x, o, p, g, f, y, _), r(i, y);
|
|
538
|
-
}
|
|
539
|
-
a(e, "byFo");
|
|
540
|
-
function r(s, h) {
|
|
541
|
-
for (const o in h)
|
|
542
|
-
o in h && s.attr(o, h[o]);
|
|
543
|
-
}
|
|
544
|
-
return a(r, "_setTextAttrs"), function(s) {
|
|
545
|
-
return s.textPlacement === "fo" ? e : s.textPlacement === "old" ? n : t;
|
|
546
|
-
};
|
|
547
|
-
}(), Ct = /* @__PURE__ */ a(function(n) {
|
|
548
|
-
n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
|
|
549
|
-
}, "initGraphics");
|
|
550
|
-
function Q(n, t) {
|
|
551
|
-
n.each(function() {
|
|
552
|
-
var e = V(this), r = e.text().split(/(\s+|<br>)/).reverse(), s, h = [], o = 1.1, p = e.attr("y"), g = parseFloat(e.attr("dy")), f = e.text(null).append("tspan").attr("x", 0).attr("y", p).attr("dy", g + "em");
|
|
553
|
-
for (let y = 0; y < r.length; y++)
|
|
554
|
-
s = r[r.length - 1 - y], h.push(s), f.text(h.join(" ").trim()), (f.node().getComputedTextLength() > t || s === "<br>") && (h.pop(), f.text(h.join(" ").trim()), s === "<br>" ? h = [""] : h = [s], f = e.append("tspan").attr("x", 0).attr("y", p).attr("dy", o + "em").text(s));
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
a(Q, "wrap");
|
|
558
|
-
var Rt = /* @__PURE__ */ a(function(n, t, e, r) {
|
|
559
|
-
var s;
|
|
560
|
-
const h = e % Tt - 1, o = n.append("g");
|
|
561
|
-
t.section = h, o.attr(
|
|
562
|
-
"class",
|
|
563
|
-
(t.class ? t.class + " " : "") + "timeline-node " + ("section-" + h)
|
|
564
|
-
);
|
|
565
|
-
const p = o.append("g"), g = o.append("g"), f = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(Q, t.width).node().getBBox(), y = (s = r.fontSize) != null && s.replace ? r.fontSize.replace("px", "") : r.fontSize;
|
|
566
|
-
return t.height = f.height + y * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), zt(p, t, h, r), t;
|
|
567
|
-
}, "drawNode"), Dt = /* @__PURE__ */ a(function(n, t, e) {
|
|
568
|
-
var r;
|
|
569
|
-
const s = n.append("g"), h = s.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(Q, t.width).node().getBBox(), o = (r = e.fontSize) != null && r.replace ? e.fontSize.replace("px", "") : e.fontSize;
|
|
570
|
-
return s.remove(), h.height + o * 1.1 * 0.5 + t.padding;
|
|
571
|
-
}, "getVirtualNodeHeight"), zt = /* @__PURE__ */ a(function(n, t, e) {
|
|
572
|
-
n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
|
|
573
|
-
"d",
|
|
574
|
-
`M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
|
|
575
|
-
), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
576
|
-
}, "defaultBkg"), H = {
|
|
577
|
-
drawRect: Y,
|
|
578
|
-
drawCircle: Mt,
|
|
579
|
-
drawSection: Lt,
|
|
580
|
-
drawText: gt,
|
|
581
|
-
drawLabel: At,
|
|
582
|
-
drawTask: Pt,
|
|
583
|
-
drawBackgroundRect: Ht,
|
|
584
|
-
getTextObj: Ot,
|
|
585
|
-
getNoteRect: K,
|
|
586
|
-
initGraphics: Ct,
|
|
587
|
-
drawNode: Rt,
|
|
588
|
-
getVirtualNodeHeight: Dt
|
|
589
|
-
}, Nt = /* @__PURE__ */ a(function(n, t, e, r) {
|
|
590
|
-
var s, h;
|
|
591
|
-
const o = mt(), p = o.leftMargin ?? 50;
|
|
592
|
-
S.debug("timeline", r.db);
|
|
593
|
-
const g = o.securityLevel;
|
|
594
|
-
let f;
|
|
595
|
-
g === "sandbox" && (f = V("#i" + t));
|
|
596
|
-
const y = (g === "sandbox" ? V(f.nodes()[0].contentDocument.body) : V("body")).select("#" + t);
|
|
597
|
-
y.append("g");
|
|
598
|
-
const _ = r.db.getTasks(), x = r.db.getCommonDb().getDiagramTitle();
|
|
599
|
-
S.debug("task", _), H.initGraphics(y);
|
|
600
|
-
const i = r.db.getSections();
|
|
601
|
-
S.debug("sections", i);
|
|
602
|
-
let c = 0, d = 0, u = 0, l = 0, b = 50 + p, k = 50;
|
|
603
|
-
l = 50;
|
|
604
|
-
let $ = 0, N = !0;
|
|
605
|
-
i.forEach(function(m) {
|
|
606
|
-
const v = {
|
|
607
|
-
number: $,
|
|
608
|
-
descr: m,
|
|
609
|
-
section: $,
|
|
610
|
-
width: 150,
|
|
611
|
-
padding: 20,
|
|
612
|
-
maxHeight: c
|
|
613
|
-
}, I = H.getVirtualNodeHeight(y, v, o);
|
|
614
|
-
S.debug("sectionHeight before draw", I), c = Math.max(c, I + 20);
|
|
615
|
-
});
|
|
616
|
-
let O = 0, L = 0;
|
|
617
|
-
S.debug("tasks.length", _.length);
|
|
618
|
-
for (const [m, v] of _.entries()) {
|
|
619
|
-
const I = {
|
|
620
|
-
number: m,
|
|
621
|
-
descr: v,
|
|
622
|
-
section: v.section,
|
|
623
|
-
width: 150,
|
|
624
|
-
padding: 20,
|
|
625
|
-
maxHeight: d
|
|
626
|
-
}, M = H.getVirtualNodeHeight(y, I, o);
|
|
627
|
-
S.debug("taskHeight before draw", M), d = Math.max(d, M + 20), O = Math.max(O, v.events.length);
|
|
628
|
-
let C = 0;
|
|
629
|
-
for (const B of v.events) {
|
|
630
|
-
const F = {
|
|
631
|
-
descr: B,
|
|
632
|
-
section: v.section,
|
|
633
|
-
number: v.section,
|
|
634
|
-
width: 150,
|
|
635
|
-
padding: 20,
|
|
636
|
-
maxHeight: 50
|
|
637
|
-
};
|
|
638
|
-
C += H.getVirtualNodeHeight(y, F, o);
|
|
639
|
-
}
|
|
640
|
-
L = Math.max(L, C);
|
|
641
|
-
}
|
|
642
|
-
S.debug("maxSectionHeight before draw", c), S.debug("maxTaskHeight before draw", d), i && i.length > 0 ? i.forEach((m) => {
|
|
643
|
-
const v = _.filter((B) => B.section === m), I = {
|
|
644
|
-
number: $,
|
|
645
|
-
descr: m,
|
|
646
|
-
section: $,
|
|
647
|
-
width: 200 * Math.max(v.length, 1) - 50,
|
|
648
|
-
padding: 20,
|
|
649
|
-
maxHeight: c
|
|
650
|
-
};
|
|
651
|
-
S.debug("sectionNode", I);
|
|
652
|
-
const M = y.append("g"), C = H.drawNode(M, I, $, o);
|
|
653
|
-
S.debug("sectionNode output", C), M.attr("transform", `translate(${b}, ${l})`), k += c + 50, v.length > 0 && st(
|
|
654
|
-
y,
|
|
655
|
-
v,
|
|
656
|
-
$,
|
|
657
|
-
b,
|
|
658
|
-
k,
|
|
659
|
-
d,
|
|
660
|
-
o,
|
|
661
|
-
O,
|
|
662
|
-
L,
|
|
663
|
-
c,
|
|
664
|
-
!1
|
|
665
|
-
), b += 200 * Math.max(v.length, 1), k = l, $++;
|
|
666
|
-
}) : (N = !1, st(
|
|
667
|
-
y,
|
|
668
|
-
_,
|
|
669
|
-
$,
|
|
670
|
-
b,
|
|
671
|
-
k,
|
|
672
|
-
d,
|
|
673
|
-
o,
|
|
674
|
-
O,
|
|
675
|
-
L,
|
|
676
|
-
c,
|
|
677
|
-
!0
|
|
678
|
-
));
|
|
679
|
-
const j = y.node().getBBox();
|
|
680
|
-
S.debug("bounds", j), x && y.append("text").text(x).attr("x", j.width / 2 - p).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), u = N ? c + d + 150 : d + 100, y.append("g").attr("class", "lineWrapper").append("line").attr("x1", p).attr("y1", u).attr("x2", j.width + 3 * p).attr("y2", u).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), xt(
|
|
681
|
-
void 0,
|
|
682
|
-
y,
|
|
683
|
-
((s = o.timeline) == null ? void 0 : s.padding) ?? 50,
|
|
684
|
-
((h = o.timeline) == null ? void 0 : h.useMaxWidth) ?? !1
|
|
685
|
-
);
|
|
686
|
-
}, "draw"), st = /* @__PURE__ */ a(function(n, t, e, r, s, h, o, p, g, f, y) {
|
|
687
|
-
var _;
|
|
688
|
-
for (const x of t) {
|
|
689
|
-
const i = {
|
|
690
|
-
descr: x.task,
|
|
691
|
-
section: e,
|
|
692
|
-
number: e,
|
|
693
|
-
width: 150,
|
|
694
|
-
padding: 20,
|
|
695
|
-
maxHeight: h
|
|
696
|
-
};
|
|
697
|
-
S.debug("taskNode", i);
|
|
698
|
-
const c = n.append("g").attr("class", "taskWrapper"), d = H.drawNode(c, i, e, o).height;
|
|
699
|
-
if (S.debug("taskHeight after draw", d), c.attr("transform", `translate(${r}, ${s})`), h = Math.max(h, d), x.events) {
|
|
700
|
-
const u = n.append("g").attr("class", "lineWrapper");
|
|
701
|
-
let l = h;
|
|
702
|
-
s += 100, l = l + jt(n, x.events, e, r, s, o), s -= 100, u.append("line").attr("x1", r + 190 / 2).attr("y1", s + h).attr("x2", r + 190 / 2).attr(
|
|
703
|
-
"y2",
|
|
704
|
-
s + h + (y ? h : f) + g + 120
|
|
705
|
-
).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
706
|
-
}
|
|
707
|
-
r = r + 200, y && !((_ = o.timeline) != null && _.disableMulticolor) && e++;
|
|
708
|
-
}
|
|
709
|
-
s = s - 10;
|
|
710
|
-
}, "drawTasks"), jt = /* @__PURE__ */ a(function(n, t, e, r, s, h) {
|
|
711
|
-
let o = 0;
|
|
712
|
-
const p = s;
|
|
713
|
-
s = s + 100;
|
|
714
|
-
for (const g of t) {
|
|
715
|
-
const f = {
|
|
716
|
-
descr: g,
|
|
717
|
-
section: e,
|
|
718
|
-
number: e,
|
|
719
|
-
width: 150,
|
|
720
|
-
padding: 20,
|
|
721
|
-
maxHeight: 50
|
|
722
|
-
};
|
|
723
|
-
S.debug("eventNode", f);
|
|
724
|
-
const y = n.append("g").attr("class", "eventWrapper"), _ = H.drawNode(y, f, e, h).height;
|
|
725
|
-
o = o + _, y.attr("transform", `translate(${r}, ${s})`), s = s + 10 + _;
|
|
726
|
-
}
|
|
727
|
-
return s = p, o;
|
|
728
|
-
}, "drawEvents"), Bt = {
|
|
729
|
-
setConf: /* @__PURE__ */ a(() => {
|
|
730
|
-
}, "setConf"),
|
|
731
|
-
draw: Nt
|
|
732
|
-
}, Ft = /* @__PURE__ */ a((n) => {
|
|
733
|
-
let t = "";
|
|
734
|
-
for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
|
|
735
|
-
n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], bt(n["lineColor" + e]) ? n["lineColor" + e] = kt(n["lineColor" + e], 20) : n["lineColor" + e] = _t(n["lineColor" + e], 20);
|
|
736
|
-
for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
|
|
737
|
-
const r = "" + (17 - 3 * e);
|
|
738
|
-
t += `
|
|
739
|
-
.section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
|
|
740
|
-
fill: ${n["cScale" + e]};
|
|
741
|
-
}
|
|
742
|
-
.section-${e - 1} text {
|
|
743
|
-
fill: ${n["cScaleLabel" + e]};
|
|
744
|
-
}
|
|
745
|
-
.node-icon-${e - 1} {
|
|
746
|
-
font-size: 40px;
|
|
747
|
-
color: ${n["cScaleLabel" + e]};
|
|
748
|
-
}
|
|
749
|
-
.section-edge-${e - 1}{
|
|
750
|
-
stroke: ${n["cScale" + e]};
|
|
751
|
-
}
|
|
752
|
-
.edge-depth-${e - 1}{
|
|
753
|
-
stroke-width: ${r};
|
|
754
|
-
}
|
|
755
|
-
.section-${e - 1} line {
|
|
756
|
-
stroke: ${n["cScaleInv" + e]} ;
|
|
757
|
-
stroke-width: 3;
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
.lineWrapper line{
|
|
761
|
-
stroke: ${n["cScaleLabel" + e]} ;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
.disabled, .disabled circle, .disabled text {
|
|
765
|
-
fill: lightgray;
|
|
766
|
-
}
|
|
767
|
-
.disabled text {
|
|
768
|
-
fill: #efefef;
|
|
769
|
-
}
|
|
770
|
-
`;
|
|
771
|
-
}
|
|
772
|
-
return t;
|
|
773
|
-
}, "genSections"), Wt = /* @__PURE__ */ a((n) => `
|
|
774
|
-
.edge {
|
|
775
|
-
stroke-width: 3;
|
|
776
|
-
}
|
|
777
|
-
${Ft(n)}
|
|
778
|
-
.section-root rect, .section-root path, .section-root circle {
|
|
779
|
-
fill: ${n.git0};
|
|
780
|
-
}
|
|
781
|
-
.section-root text {
|
|
782
|
-
fill: ${n.gitBranchLabel0};
|
|
783
|
-
}
|
|
784
|
-
.icon-container {
|
|
785
|
-
height:100%;
|
|
786
|
-
display: flex;
|
|
787
|
-
justify-content: center;
|
|
788
|
-
align-items: center;
|
|
789
|
-
}
|
|
790
|
-
.edge {
|
|
791
|
-
fill: none;
|
|
792
|
-
}
|
|
793
|
-
.eventWrapper {
|
|
794
|
-
filter: brightness(120%);
|
|
795
|
-
}
|
|
796
|
-
`, "getStyles"), qt = Wt, Yt = {
|
|
797
|
-
db: at,
|
|
798
|
-
renderer: Bt,
|
|
799
|
-
parser: $t,
|
|
800
|
-
styles: qt
|
|
801
|
-
};
|
|
802
|
-
export {
|
|
803
|
-
Yt as diagram
|
|
804
|
-
};
|