@kong-ui-public/documentation 1.5.10 → 1.5.11
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/_baseUniq-BM5nBlUE-Bqq-876b.js +477 -0
- package/dist/{arc-B-ukyQgl-BIkl0oly.js → arc-Da5qnJCa-D1fJq9Ga.js} +14 -14
- package/dist/architecture-YZFGNWBL-CvR_VbsD-i8qH434J.js +6 -0
- package/dist/architectureDiagram-Q4EWVU46-DqiP7Rm1-CBe5jt7q.js +4694 -0
- package/dist/blockDiagram-DXYQGD6D-Dqw9F2Am-BLtGZalg.js +2304 -0
- package/dist/{c4Diagram-AAMF2YG6-CKwlop6T-biDHxtgF.js → c4Diagram-AHTNJAMY-D1CqyEQ6-B0R-a6pf.js} +740 -743
- package/dist/{channel-Da4OyhNU-CjtA-gzv.js → channel-C0HsK-iS-D8tJdRzv.js} +1 -1
- package/dist/{chunk-ANTBXLJU-CgMY7K4E-BDFVHt4k.js → chunk-4BX2VUAB-CkAjNgA_-Bs9A5Kfv.js} +1 -1
- package/dist/{chunk-JBRWN2VN-DGZEDqQT-C_bgxQXb.js → chunk-4TB4RGXK-BahB65Eg-ChDwOMia.js} +483 -393
- package/dist/{chunk-WVR4S24B-CqqZpXpd-DYcapnmX.js → chunk-55IACEB6-FAGpaDxG-BTfPS-CU.js} +1 -1
- package/dist/{chunk-NRVI72HA-Bk2QoSU4-C8BLG4Nn.js → chunk-EDXVE4YY-JJVh1SXw-B-sKHFur.js} +1 -1
- package/dist/{chunk-GLLZNHP4-BfObQGbx-D2i6EGF4.js → chunk-FMBD7UC4-CAMVhC3j-oHcHavNU.js} +1 -1
- package/dist/{chunk-LXBSTHXV-DDrUAnPm-BhQORC-M.js → chunk-OYMX7WX6-CUYLPicN-BOih3xeZ.js} +219 -206
- package/dist/{chunk-FHKO5MBM--0hzbho5-CD7UphLJ.js → chunk-QZHKN3VN-DludCzyb-DYJGn0Nm.js} +1 -1
- package/dist/chunk-YZCP3GAM-D78rBxvk-E0y6EYmh.js +68 -0
- package/dist/{classDiagram-3BZAVTQC-BieGHK_n-DKk2Tasm.js → classDiagram-6PBFFD2Q-DImmr9bN-Ipdf4BlS.js} +2 -2
- package/dist/{classDiagram-v2-QTMF73CY-BieGHK_n-DKk2Tasm.js → classDiagram-v2-HSJHXN6E-DImmr9bN-Ipdf4BlS.js} +2 -2
- package/dist/{clone-BQ4BCIVX-BtVSQfya.js → clone-CxV-_MWN-BTBOrYIK.js} +1 -1
- package/dist/cose-bilkent-S5V4N54A-B5XQcR33-C16znhn9.js +2608 -0
- package/dist/{cytoscape.esm-CjI2IsL8-DYIumutE.js → cytoscape.esm-BjnMFxuP-CWlRmT1g.js} +16 -13
- package/dist/{dagre-2BBEFEWP-sc2upYy7-rNXSQFNY.js → dagre-KV5264BT-PBiSm4y3-BP7huLbw.js} +19 -20
- package/dist/diagram-5BDNPKRD-Um_ME5I2-DLUwrd96.js +123 -0
- package/dist/diagram-G4DWMVQ6-BsTsajjz-Uehh1WWi.js +530 -0
- package/dist/{diagram-RP2FKANI-DabtWDGU-FmJgjY_V.js → diagram-MMDJMWI5-C5oqUzF8-gcpf6PNh.js} +67 -67
- package/dist/{diagram-GUPCWM2R-RSzJRmP4-5_ml5U5U.js → diagram-TYMM5635-CQxFzu44-Dx5KCUXW.js} +23 -23
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +1748 -1228
- package/dist/erDiagram-SMLLAGMA-23hRKyIy-B-dChHLQ.js +898 -0
- package/dist/flowDiagram-DWJPFMVM-BeSa8cQn-B2__M71K.js +1635 -0
- package/dist/ganttDiagram-T4ZO3ILL-ZC4a8MdR-tE42RGcp.js +2700 -0
- package/dist/gitGraph-7Q5UKJZL-DlY-5kQ6-CLY7BmsA.js +6 -0
- package/dist/gitGraphDiagram-UUTBAWPF-DXVZeOtJ-CWWgOrKv.js +828 -0
- package/dist/graph-WBvyJJXo-BBnBDARn.js +738 -0
- package/dist/{index-DeBlJN4f.js → index-Bh-wTBlD.js} +16761 -15853
- package/dist/info-OMHHGYJF-RTXqsfQC-DrfqfklB.js +6 -0
- package/dist/infoDiagram-42DDH7IO-BZdpI3Rt-l8iFfMFP.js +24 -0
- package/dist/ishikawaDiagram-UXIWVN3A-DvYKV3c4-BPgCxTOl.js +622 -0
- package/dist/journeyDiagram-VCZTEJTY-C2ry_hWi-DI5GD7uG.js +834 -0
- package/dist/{kanban-definition-KOZQBZVT-BcgyR947-u-ThSWpr.js → kanban-definition-6JOO6SKY-CY_QsIlW-OqXNCY1p.js} +163 -158
- package/dist/{katex-C0Lgw_Sx-CbX2I1cQ.js → katex-CX_HYDAq-_-dpIk5k.js} +3261 -3333
- package/dist/layout-DzPx9mR5-CHbk03j2.js +1438 -0
- package/dist/{linear-Bkwca0xU-DC0DlB3Q.js → linear-h6L3lVRp-DOzK9CUG.js} +1 -1
- package/dist/mermaid-parser.core-DtLRLmJt-Bs8fzU82.js +18375 -0
- package/dist/min-hEQogXjh-DyJPZJjb.js +38 -0
- package/dist/mindmap-definition-QFDTVHPH-DtiyxxYL-DUl1WEb7.js +836 -0
- package/dist/packet-4T2RLAQJ-Di7zpGDk-UtQRvAVW.js +6 -0
- package/dist/pie-ZZUOXDRM-CXos-t2G-BFyC-RaB.js +6 -0
- package/dist/pieDiagram-DEJITSTG-D7gBkRMg-BBSz-kJB.js +164 -0
- package/dist/{quadrantDiagram-YPSRARAO-BQtyf3HP-D7rZGp1l.js → quadrantDiagram-34T5L4WZ-Cfwapd1Q-CS_lKY3k.js} +16 -16
- package/dist/radar-PYXPWWZC-D0dHj_5J-DO49D32P.js +6 -0
- package/dist/{requirementDiagram-EGVEC5DT-CnnVFZwh-D9sZFwwg.js → requirementDiagram-MS252O5E-Bimzbn3B-B-e5vK9F.js} +199 -167
- package/dist/{sankeyDiagram-HRAUVNP4-DnGkLEvt-DIAbJDNn.js → sankeyDiagram-XADWPNL6-B8rOSxDr-uYyl_iJz.js} +13 -13
- package/dist/sequenceDiagram-FGHM5R23-z1blPVFc-DxkfwOOg.js +2893 -0
- package/dist/stateDiagram-FHFEXIEX-Dvj2dUvd-CEjEPSzp.js +263 -0
- package/dist/{stateDiagram-v2-EYPG3UTE-CkraIkNs-DLA1w3a5.js → stateDiagram-v2-QKLJ7IA2-CEq8bJSN-BmK4dbQp.js} +2 -2
- package/dist/timeline-definition-GMOUNBTQ-CFbR3HDt-Dajv0gse.js +1066 -0
- package/dist/treeView-SZITEDCU-ZiyDRNdY-FcohlUhB.js +6 -0
- package/dist/treemap-W4RFUUIX-D-tfszYV-CkdYg79W.js +6 -0
- package/dist/vennDiagram-DHZGUBPP-DDPnvwIl-DLef8GZ-.js +1564 -0
- package/dist/wardley-RL74JXVD-CzW2PcVh-Bl64UM-9.js +6 -0
- package/dist/wardleyDiagram-NUSXRM2D-G2F05w5q-Dgb8afBt.js +603 -0
- package/dist/{xychartDiagram-FDP5SA34-C0od7xbm-JkA2XwsO.js → xychartDiagram-5P7HB3ND-DcvqnhIW-CQekuj1q.js} +286 -284
- package/package.json +2 -2
- package/dist/_basePickBy-By9oZA6R-C9Q3wZgc.js +0 -151
- package/dist/_baseUniq-aulxCrZg-DpgqVftQ.js +0 -614
- package/dist/architecture-U656AL7Q-D7FlR8mQ-CcoM0xmP.js +0 -6
- package/dist/architectureDiagram-KFL7JDKH-D2wQyXF3-DUIfKyBT.js +0 -4665
- package/dist/blockDiagram-ZYB65J3Q-BVrJ6Sru-CTSsbOHf.js +0 -2265
- package/dist/chunk-OMD6QJNC-Dw01cgI4-BX05x0MM.js +0 -64
- package/dist/diagram-4IRLE6MV-DhfS8dHC-BHYGYZis.js +0 -533
- package/dist/erDiagram-HZWUO2LU-DRB4Mbtv-CgU99FCL.js +0 -840
- package/dist/flowDiagram-THRYKUMA-Cca2217c-CyDxFUag.js +0 -1627
- package/dist/ganttDiagram-WV7ZQ7D5-T3W_JgZV-PlELdFB9.js +0 -2504
- package/dist/gitGraph-F6HP7TQM-CF97nS_M-Cds3-fO4.js +0 -6
- package/dist/gitGraphDiagram-OJR772UL-DxvQcvVZ-DsH5Tcqa.js +0 -712
- package/dist/graph-DM4yJZhA-Bbo6I0vd.js +0 -247
- package/dist/info-NVLQJR56-BIkzHNxa-PHtGLaWD.js +0 -6
- package/dist/infoDiagram-6WOFNB3A-rRqd7shu-DmCUCKD0.js +0 -24
- package/dist/journeyDiagram-FFXJYRFH-C9rjRycy-44BCKp7p.js +0 -834
- package/dist/layout-CDChcvw3-C4cdx174.js +0 -1321
- package/dist/mermaid-parser.core-DRkTy7co-D3k_lOFL.js +0 -12890
- package/dist/mindmap-definition-LNHGMQRG-Dzyqm5dG-BSHIrtY4.js +0 -3231
- package/dist/packet-BFZMPI3H-D2ECyuNX-BrLUxNwr.js +0 -6
- package/dist/pie-7BOR55EZ-DZrUX33b-DTRam8Zi.js +0 -6
- package/dist/pieDiagram-DBDJKBY4-Pbq0hYNc-BY63OUmy.js +0 -161
- package/dist/radar-NHE76QYJ-DRHdhW6w-DS2_BWvC.js +0 -6
- package/dist/sequenceDiagram-WFGC7UMF-ChsW9bN4-D52efQBS.js +0 -2283
- package/dist/stateDiagram-UUKSUZ4H-Cbf4sKeS-CW-kRLpc.js +0 -263
- package/dist/timeline-definition-3HZDQTIS-zCLLmQCc-B-r1pMne.js +0 -799
- package/dist/treemap-KMMF4GRG-BWdglwua-CKei-6bJ.js +0 -6
|
@@ -0,0 +1,1066 @@
|
|
|
1
|
+
import { _ as o, aB as ut, bl as Ot, bm as Rt, bn as At, g as pt, l as k, aU as Bt, aV as Pt, bo as gt, a5 as Z, aA as zt, bp as Wt, av as jt } from "./index-Bh-wTBlD.js";
|
|
2
|
+
import { h as st } from "./arc-Da5qnJCa-D1fJq9Ga.js";
|
|
3
|
+
var K = function() {
|
|
4
|
+
var e = /* @__PURE__ */ o(function(m, i, d, p) {
|
|
5
|
+
for (d = d || {}, p = m.length; p--; d[m[p]] = i) ;
|
|
6
|
+
return d;
|
|
7
|
+
}, "o"), t = [6, 11, 13, 14, 15, 17, 19, 20, 23, 24], n = [1, 12], a = [1, 13], r = [1, 14], l = [1, 15], c = [1, 16], h = [1, 19], u = [1, 20], y = {
|
|
8
|
+
trace: /* @__PURE__ */ o(function() {
|
|
9
|
+
}, "trace"),
|
|
10
|
+
yy: {},
|
|
11
|
+
symbols_: { error: 2, start: 3, timeline_header: 4, document: 5, EOF: 6, timeline: 7, timeline_lr: 8, timeline_td: 9, line: 10, SPACE: 11, statement: 12, NEWLINE: 13, title: 14, acc_title: 15, acc_title_value: 16, acc_descr: 17, acc_descr_value: 18, acc_descr_multiline_value: 19, section: 20, period_statement: 21, event_statement: 22, period: 23, event: 24, $accept: 0, $end: 1 },
|
|
12
|
+
terminals_: { 2: "error", 6: "EOF", 7: "timeline", 8: "timeline_lr", 9: "timeline_td", 11: "SPACE", 13: "NEWLINE", 14: "title", 15: "acc_title", 16: "acc_title_value", 17: "acc_descr", 18: "acc_descr_value", 19: "acc_descr_multiline_value", 20: "section", 23: "period", 24: "event" },
|
|
13
|
+
productions_: [0, [3, 3], [4, 1], [4, 1], [4, 1], [5, 0], [5, 2], [10, 2], [10, 1], [10, 1], [10, 1], [12, 1], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [21, 1], [22, 1]],
|
|
14
|
+
performAction: /* @__PURE__ */ o(function(m, i, d, p, g, s, x) {
|
|
15
|
+
var _ = s.length - 1;
|
|
16
|
+
switch (g) {
|
|
17
|
+
case 1:
|
|
18
|
+
return s[_ - 1];
|
|
19
|
+
case 3:
|
|
20
|
+
p.setDirection("LR");
|
|
21
|
+
break;
|
|
22
|
+
case 4:
|
|
23
|
+
p.setDirection("TD");
|
|
24
|
+
break;
|
|
25
|
+
case 5:
|
|
26
|
+
this.$ = [];
|
|
27
|
+
break;
|
|
28
|
+
case 6:
|
|
29
|
+
s[_ - 1].push(s[_]), this.$ = s[_ - 1];
|
|
30
|
+
break;
|
|
31
|
+
case 7:
|
|
32
|
+
case 8:
|
|
33
|
+
this.$ = s[_];
|
|
34
|
+
break;
|
|
35
|
+
case 9:
|
|
36
|
+
case 10:
|
|
37
|
+
this.$ = [];
|
|
38
|
+
break;
|
|
39
|
+
case 11:
|
|
40
|
+
p.getCommonDb().setDiagramTitle(s[_].substr(6)), this.$ = s[_].substr(6);
|
|
41
|
+
break;
|
|
42
|
+
case 12:
|
|
43
|
+
this.$ = s[_].trim(), p.getCommonDb().setAccTitle(this.$);
|
|
44
|
+
break;
|
|
45
|
+
case 13:
|
|
46
|
+
case 14:
|
|
47
|
+
this.$ = s[_].trim(), p.getCommonDb().setAccDescription(this.$);
|
|
48
|
+
break;
|
|
49
|
+
case 15:
|
|
50
|
+
p.addSection(s[_].substr(8)), this.$ = s[_].substr(8);
|
|
51
|
+
break;
|
|
52
|
+
case 18:
|
|
53
|
+
p.addTask(s[_], 0, ""), this.$ = s[_];
|
|
54
|
+
break;
|
|
55
|
+
case 19:
|
|
56
|
+
p.addEvent(s[_].substr(2)), this.$ = s[_];
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
}, "anonymous"),
|
|
60
|
+
table: [{ 3: 1, 4: 2, 7: [1, 3], 8: [1, 4], 9: [1, 5] }, { 1: [3] }, e(t, [2, 5], { 5: 6 }), e(t, [2, 2]), e(t, [2, 3]), e(t, [2, 4]), { 6: [1, 7], 10: 8, 11: [1, 9], 12: 10, 13: [1, 11], 14: n, 15: a, 17: r, 19: l, 20: c, 21: 17, 22: 18, 23: h, 24: u }, e(t, [2, 10], { 1: [2, 1] }), e(t, [2, 6]), { 12: 21, 14: n, 15: a, 17: r, 19: l, 20: c, 21: 17, 22: 18, 23: h, 24: u }, e(t, [2, 8]), e(t, [2, 9]), e(t, [2, 11]), { 16: [1, 22] }, { 18: [1, 23] }, e(t, [2, 14]), e(t, [2, 15]), e(t, [2, 16]), e(t, [2, 17]), e(t, [2, 18]), e(t, [2, 19]), e(t, [2, 7]), e(t, [2, 12]), e(t, [2, 13])],
|
|
61
|
+
defaultActions: {},
|
|
62
|
+
parseError: /* @__PURE__ */ o(function(m, i) {
|
|
63
|
+
if (i.recoverable)
|
|
64
|
+
this.trace(m);
|
|
65
|
+
else {
|
|
66
|
+
var d = new Error(m);
|
|
67
|
+
throw d.hash = i, d;
|
|
68
|
+
}
|
|
69
|
+
}, "parseError"),
|
|
70
|
+
parse: /* @__PURE__ */ o(function(m) {
|
|
71
|
+
var i = this, d = [0], p = [], g = [null], s = [], x = this.table, _ = "", A = 0, T = 0, N = 2, P = 1, H = s.slice.call(arguments, 1), v = Object.create(this.lexer), M = { yy: {} };
|
|
72
|
+
for (var O in this.yy)
|
|
73
|
+
Object.prototype.hasOwnProperty.call(this.yy, O) && (M.yy[O] = this.yy[O]);
|
|
74
|
+
v.setInput(m, M.yy), M.yy.lexer = v, M.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
|
|
75
|
+
var z = v.yylloc;
|
|
76
|
+
s.push(z);
|
|
77
|
+
var W = v.options && v.options.ranges;
|
|
78
|
+
typeof M.yy.parseError == "function" ? this.parseError = M.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
79
|
+
function R(D) {
|
|
80
|
+
d.length = d.length - 2 * D, g.length = g.length - D, s.length = s.length - D;
|
|
81
|
+
}
|
|
82
|
+
o(R, "popStack");
|
|
83
|
+
function j() {
|
|
84
|
+
var D;
|
|
85
|
+
return D = p.pop() || v.lex() || P, typeof D != "number" && (D instanceof Array && (p = D, D = p.pop()), D = i.symbols_[D] || D), D;
|
|
86
|
+
}
|
|
87
|
+
o(j, "lex");
|
|
88
|
+
for (var $, w, E, I, S = {}, L, C, F, G; ; ) {
|
|
89
|
+
if (w = d[d.length - 1], this.defaultActions[w] ? E = this.defaultActions[w] : (($ === null || typeof $ > "u") && ($ = j()), E = x[w] && x[w][$]), typeof E > "u" || !E.length || !E[0]) {
|
|
90
|
+
var U = "";
|
|
91
|
+
G = [];
|
|
92
|
+
for (L in x[w])
|
|
93
|
+
this.terminals_[L] && L > N && G.push("'" + this.terminals_[L] + "'");
|
|
94
|
+
v.showPosition ? U = "Parse error on line " + (A + 1) + `:
|
|
95
|
+
` + v.showPosition() + `
|
|
96
|
+
Expecting ` + G.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : U = "Parse error on line " + (A + 1) + ": Unexpected " + ($ == P ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(U, {
|
|
97
|
+
text: v.match,
|
|
98
|
+
token: this.terminals_[$] || $,
|
|
99
|
+
line: v.yylineno,
|
|
100
|
+
loc: z,
|
|
101
|
+
expected: G
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (E[0] instanceof Array && E.length > 1)
|
|
105
|
+
throw new Error("Parse Error: multiple actions possible at state: " + w + ", token: " + $);
|
|
106
|
+
switch (E[0]) {
|
|
107
|
+
case 1:
|
|
108
|
+
d.push($), g.push(v.yytext), s.push(v.yylloc), d.push(E[1]), $ = null, T = v.yyleng, _ = v.yytext, A = v.yylineno, z = v.yylloc;
|
|
109
|
+
break;
|
|
110
|
+
case 2:
|
|
111
|
+
if (C = this.productions_[E[1]][1], S.$ = g[g.length - C], S._$ = {
|
|
112
|
+
first_line: s[s.length - (C || 1)].first_line,
|
|
113
|
+
last_line: s[s.length - 1].last_line,
|
|
114
|
+
first_column: s[s.length - (C || 1)].first_column,
|
|
115
|
+
last_column: s[s.length - 1].last_column
|
|
116
|
+
}, W && (S._$.range = [
|
|
117
|
+
s[s.length - (C || 1)].range[0],
|
|
118
|
+
s[s.length - 1].range[1]
|
|
119
|
+
]), I = this.performAction.apply(S, [
|
|
120
|
+
_,
|
|
121
|
+
T,
|
|
122
|
+
A,
|
|
123
|
+
M.yy,
|
|
124
|
+
E[1],
|
|
125
|
+
g,
|
|
126
|
+
s
|
|
127
|
+
].concat(H)), typeof I < "u")
|
|
128
|
+
return I;
|
|
129
|
+
C && (d = d.slice(0, -1 * C * 2), g = g.slice(0, -1 * C), s = s.slice(0, -1 * C)), d.push(this.productions_[E[1]][0]), g.push(S.$), s.push(S._$), F = x[d[d.length - 2]][d[d.length - 1]], d.push(F);
|
|
130
|
+
break;
|
|
131
|
+
case 3:
|
|
132
|
+
return !0;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return !0;
|
|
136
|
+
}, "parse")
|
|
137
|
+
}, b = /* @__PURE__ */ function() {
|
|
138
|
+
var m = {
|
|
139
|
+
EOF: 1,
|
|
140
|
+
parseError: /* @__PURE__ */ o(function(i, d) {
|
|
141
|
+
if (this.yy.parser)
|
|
142
|
+
this.yy.parser.parseError(i, d);
|
|
143
|
+
else
|
|
144
|
+
throw new Error(i);
|
|
145
|
+
}, "parseError"),
|
|
146
|
+
// resets the lexer, sets new input
|
|
147
|
+
setInput: /* @__PURE__ */ o(function(i, d) {
|
|
148
|
+
return this.yy = d || 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 = {
|
|
149
|
+
first_line: 1,
|
|
150
|
+
first_column: 0,
|
|
151
|
+
last_line: 1,
|
|
152
|
+
last_column: 0
|
|
153
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
154
|
+
}, "setInput"),
|
|
155
|
+
// consumes and returns one char from the input
|
|
156
|
+
input: /* @__PURE__ */ o(function() {
|
|
157
|
+
var i = this._input[0];
|
|
158
|
+
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
159
|
+
var d = i.match(/(?:\r\n?|\n).*/g);
|
|
160
|
+
return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
161
|
+
}, "input"),
|
|
162
|
+
// unshifts one char (or a string) into the input
|
|
163
|
+
unput: /* @__PURE__ */ o(function(i) {
|
|
164
|
+
var d = i.length, p = i.split(/(?:\r\n?|\n)/g);
|
|
165
|
+
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
|
|
166
|
+
var g = this.match.split(/(?:\r\n?|\n)/g);
|
|
167
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
|
|
168
|
+
var s = this.yylloc.range;
|
|
169
|
+
return this.yylloc = {
|
|
170
|
+
first_line: this.yylloc.first_line,
|
|
171
|
+
last_line: this.yylineno + 1,
|
|
172
|
+
first_column: this.yylloc.first_column,
|
|
173
|
+
last_column: p ? (p.length === g.length ? this.yylloc.first_column : 0) + g[g.length - p.length].length - p[0].length : this.yylloc.first_column - d
|
|
174
|
+
}, this.options.ranges && (this.yylloc.range = [s[0], s[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
|
|
175
|
+
}, "unput"),
|
|
176
|
+
// When called from action, caches matched text and appends it on next action
|
|
177
|
+
more: /* @__PURE__ */ o(function() {
|
|
178
|
+
return this._more = !0, this;
|
|
179
|
+
}, "more"),
|
|
180
|
+
// 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.
|
|
181
|
+
reject: /* @__PURE__ */ o(function() {
|
|
182
|
+
if (this.options.backtrack_lexer)
|
|
183
|
+
this._backtrack = !0;
|
|
184
|
+
else
|
|
185
|
+
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).
|
|
186
|
+
` + this.showPosition(), {
|
|
187
|
+
text: "",
|
|
188
|
+
token: null,
|
|
189
|
+
line: this.yylineno
|
|
190
|
+
});
|
|
191
|
+
return this;
|
|
192
|
+
}, "reject"),
|
|
193
|
+
// retain first n characters of the match
|
|
194
|
+
less: /* @__PURE__ */ o(function(i) {
|
|
195
|
+
this.unput(this.match.slice(i));
|
|
196
|
+
}, "less"),
|
|
197
|
+
// displays already matched input, i.e. for error messages
|
|
198
|
+
pastInput: /* @__PURE__ */ o(function() {
|
|
199
|
+
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
200
|
+
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
201
|
+
}, "pastInput"),
|
|
202
|
+
// displays upcoming input, i.e. for error messages
|
|
203
|
+
upcomingInput: /* @__PURE__ */ o(function() {
|
|
204
|
+
var i = this.match;
|
|
205
|
+
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
206
|
+
}, "upcomingInput"),
|
|
207
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
208
|
+
showPosition: /* @__PURE__ */ o(function() {
|
|
209
|
+
var i = this.pastInput(), d = new Array(i.length + 1).join("-");
|
|
210
|
+
return i + this.upcomingInput() + `
|
|
211
|
+
` + d + "^";
|
|
212
|
+
}, "showPosition"),
|
|
213
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
214
|
+
test_match: /* @__PURE__ */ o(function(i, d) {
|
|
215
|
+
var p, g, s;
|
|
216
|
+
if (this.options.backtrack_lexer && (s = {
|
|
217
|
+
yylineno: this.yylineno,
|
|
218
|
+
yylloc: {
|
|
219
|
+
first_line: this.yylloc.first_line,
|
|
220
|
+
last_line: this.last_line,
|
|
221
|
+
first_column: this.yylloc.first_column,
|
|
222
|
+
last_column: this.yylloc.last_column
|
|
223
|
+
},
|
|
224
|
+
yytext: this.yytext,
|
|
225
|
+
match: this.match,
|
|
226
|
+
matches: this.matches,
|
|
227
|
+
matched: this.matched,
|
|
228
|
+
yyleng: this.yyleng,
|
|
229
|
+
offset: this.offset,
|
|
230
|
+
_more: this._more,
|
|
231
|
+
_input: this._input,
|
|
232
|
+
yy: this.yy,
|
|
233
|
+
conditionStack: this.conditionStack.slice(0),
|
|
234
|
+
done: this.done
|
|
235
|
+
}, this.options.ranges && (s.yylloc.range = this.yylloc.range.slice(0))), g = i[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
|
|
236
|
+
first_line: this.yylloc.last_line,
|
|
237
|
+
last_line: this.yylineno + 1,
|
|
238
|
+
first_column: this.yylloc.last_column,
|
|
239
|
+
last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
240
|
+
}, 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], p = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
|
|
241
|
+
return p;
|
|
242
|
+
if (this._backtrack) {
|
|
243
|
+
for (var x in s)
|
|
244
|
+
this[x] = s[x];
|
|
245
|
+
return !1;
|
|
246
|
+
}
|
|
247
|
+
return !1;
|
|
248
|
+
}, "test_match"),
|
|
249
|
+
// return next match in input
|
|
250
|
+
next: /* @__PURE__ */ o(function() {
|
|
251
|
+
if (this.done)
|
|
252
|
+
return this.EOF;
|
|
253
|
+
this._input || (this.done = !0);
|
|
254
|
+
var i, d, p, g;
|
|
255
|
+
this._more || (this.yytext = "", this.match = "");
|
|
256
|
+
for (var s = this._currentRules(), x = 0; x < s.length; x++)
|
|
257
|
+
if (p = this._input.match(this.rules[s[x]]), p && (!d || p[0].length > d[0].length)) {
|
|
258
|
+
if (d = p, g = x, this.options.backtrack_lexer) {
|
|
259
|
+
if (i = this.test_match(p, s[x]), i !== !1)
|
|
260
|
+
return i;
|
|
261
|
+
if (this._backtrack) {
|
|
262
|
+
d = !1;
|
|
263
|
+
continue;
|
|
264
|
+
} else
|
|
265
|
+
return !1;
|
|
266
|
+
} else if (!this.options.flex)
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
return d ? (i = this.test_match(d, s[g]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
270
|
+
` + this.showPosition(), {
|
|
271
|
+
text: "",
|
|
272
|
+
token: null,
|
|
273
|
+
line: this.yylineno
|
|
274
|
+
});
|
|
275
|
+
}, "next"),
|
|
276
|
+
// return next match that has a token
|
|
277
|
+
lex: /* @__PURE__ */ o(function() {
|
|
278
|
+
var i = this.next();
|
|
279
|
+
return i || this.lex();
|
|
280
|
+
}, "lex"),
|
|
281
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
282
|
+
begin: /* @__PURE__ */ o(function(i) {
|
|
283
|
+
this.conditionStack.push(i);
|
|
284
|
+
}, "begin"),
|
|
285
|
+
// pop the previously active lexer condition state off the condition stack
|
|
286
|
+
popState: /* @__PURE__ */ o(function() {
|
|
287
|
+
var i = this.conditionStack.length - 1;
|
|
288
|
+
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
289
|
+
}, "popState"),
|
|
290
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
291
|
+
_currentRules: /* @__PURE__ */ o(function() {
|
|
292
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
293
|
+
}, "_currentRules"),
|
|
294
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
295
|
+
topState: /* @__PURE__ */ o(function(i) {
|
|
296
|
+
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
297
|
+
}, "topState"),
|
|
298
|
+
// alias for begin(condition)
|
|
299
|
+
pushState: /* @__PURE__ */ o(function(i) {
|
|
300
|
+
this.begin(i);
|
|
301
|
+
}, "pushState"),
|
|
302
|
+
// return the number of states currently on the stack
|
|
303
|
+
stateStackSize: /* @__PURE__ */ o(function() {
|
|
304
|
+
return this.conditionStack.length;
|
|
305
|
+
}, "stateStackSize"),
|
|
306
|
+
options: { "case-insensitive": !0 },
|
|
307
|
+
performAction: /* @__PURE__ */ o(function(i, d, p, g) {
|
|
308
|
+
switch (p) {
|
|
309
|
+
case 0:
|
|
310
|
+
break;
|
|
311
|
+
case 1:
|
|
312
|
+
break;
|
|
313
|
+
case 2:
|
|
314
|
+
return 13;
|
|
315
|
+
case 3:
|
|
316
|
+
break;
|
|
317
|
+
case 4:
|
|
318
|
+
break;
|
|
319
|
+
case 5:
|
|
320
|
+
return 8;
|
|
321
|
+
case 6:
|
|
322
|
+
return 9;
|
|
323
|
+
case 7:
|
|
324
|
+
return 7;
|
|
325
|
+
case 8:
|
|
326
|
+
return 14;
|
|
327
|
+
case 9:
|
|
328
|
+
return this.begin("acc_title"), 15;
|
|
329
|
+
case 10:
|
|
330
|
+
return this.popState(), "acc_title_value";
|
|
331
|
+
case 11:
|
|
332
|
+
return this.begin("acc_descr"), 17;
|
|
333
|
+
case 12:
|
|
334
|
+
return this.popState(), "acc_descr_value";
|
|
335
|
+
case 13:
|
|
336
|
+
this.begin("acc_descr_multiline");
|
|
337
|
+
break;
|
|
338
|
+
case 14:
|
|
339
|
+
this.popState();
|
|
340
|
+
break;
|
|
341
|
+
case 15:
|
|
342
|
+
return "acc_descr_multiline_value";
|
|
343
|
+
case 16:
|
|
344
|
+
return 20;
|
|
345
|
+
case 17:
|
|
346
|
+
return 24;
|
|
347
|
+
case 18:
|
|
348
|
+
return 23;
|
|
349
|
+
case 19:
|
|
350
|
+
return 6;
|
|
351
|
+
case 20:
|
|
352
|
+
return "INVALID";
|
|
353
|
+
}
|
|
354
|
+
}, "anonymous"),
|
|
355
|
+
rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline[ \t]+LR\b)/i, /^(?:timeline[ \t]+TD\b)/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]|:(?!\s))+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
|
|
356
|
+
conditions: { acc_descr_multiline: { rules: [14, 15], inclusive: !1 }, acc_descr: { rules: [12], inclusive: !1 }, acc_title: { rules: [10], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 16, 17, 18, 19, 20], inclusive: !0 } }
|
|
357
|
+
};
|
|
358
|
+
return m;
|
|
359
|
+
}();
|
|
360
|
+
y.lexer = b;
|
|
361
|
+
function f() {
|
|
362
|
+
this.yy = {};
|
|
363
|
+
}
|
|
364
|
+
return o(f, "Parser"), f.prototype = y, y.Parser = f, new f();
|
|
365
|
+
}();
|
|
366
|
+
K.parser = K;
|
|
367
|
+
var Ft = K, ft = {};
|
|
368
|
+
zt(ft, {
|
|
369
|
+
addEvent: () => St,
|
|
370
|
+
addSection: () => wt,
|
|
371
|
+
addTask: () => $t,
|
|
372
|
+
addTaskOrg: () => Et,
|
|
373
|
+
clear: () => xt,
|
|
374
|
+
default: () => Vt,
|
|
375
|
+
getCommonDb: () => mt,
|
|
376
|
+
getDirection: () => kt,
|
|
377
|
+
getSections: () => _t,
|
|
378
|
+
getTasks: () => vt,
|
|
379
|
+
setDirection: () => bt
|
|
380
|
+
});
|
|
381
|
+
var q = "", yt = 0, et = "LR", nt = [], Y = [], X = [], mt = /* @__PURE__ */ o(() => Wt, "getCommonDb"), xt = /* @__PURE__ */ o(function() {
|
|
382
|
+
nt.length = 0, Y.length = 0, q = "", X.length = 0, et = "LR", jt();
|
|
383
|
+
}, "clear"), bt = /* @__PURE__ */ o(function(e) {
|
|
384
|
+
et = e;
|
|
385
|
+
}, "setDirection"), kt = /* @__PURE__ */ o(function() {
|
|
386
|
+
return et;
|
|
387
|
+
}, "getDirection"), wt = /* @__PURE__ */ o(function(e) {
|
|
388
|
+
q = e, nt.push(e);
|
|
389
|
+
}, "addSection"), _t = /* @__PURE__ */ o(function() {
|
|
390
|
+
return nt;
|
|
391
|
+
}, "getSections"), vt = /* @__PURE__ */ o(function() {
|
|
392
|
+
let e = ot();
|
|
393
|
+
const t = 100;
|
|
394
|
+
let n = 0;
|
|
395
|
+
for (; !e && n < t; )
|
|
396
|
+
e = ot(), n++;
|
|
397
|
+
return Y.push(...X), Y;
|
|
398
|
+
}, "getTasks"), $t = /* @__PURE__ */ o(function(e, t, n) {
|
|
399
|
+
const a = {
|
|
400
|
+
id: yt++,
|
|
401
|
+
section: q,
|
|
402
|
+
type: q,
|
|
403
|
+
task: e,
|
|
404
|
+
score: t || 0,
|
|
405
|
+
//if event is defined, then add it the events array
|
|
406
|
+
events: n ? [n] : []
|
|
407
|
+
};
|
|
408
|
+
X.push(a);
|
|
409
|
+
}, "addTask"), St = /* @__PURE__ */ o(function(e) {
|
|
410
|
+
X.find((t) => t.id === yt - 1).events.push(e);
|
|
411
|
+
}, "addEvent"), Et = /* @__PURE__ */ o(function(e) {
|
|
412
|
+
const t = {
|
|
413
|
+
section: q,
|
|
414
|
+
type: q,
|
|
415
|
+
description: e,
|
|
416
|
+
task: e,
|
|
417
|
+
classes: []
|
|
418
|
+
};
|
|
419
|
+
Y.push(t);
|
|
420
|
+
}, "addTaskOrg"), ot = /* @__PURE__ */ o(function() {
|
|
421
|
+
const e = /* @__PURE__ */ o(function(n) {
|
|
422
|
+
return X[n].processed;
|
|
423
|
+
}, "compileTask");
|
|
424
|
+
let t = !0;
|
|
425
|
+
for (const [n, a] of X.entries())
|
|
426
|
+
e(n), t = t && a.processed;
|
|
427
|
+
return t;
|
|
428
|
+
}, "compileTasks"), Vt = {
|
|
429
|
+
clear: xt,
|
|
430
|
+
getCommonDb: mt,
|
|
431
|
+
getDirection: kt,
|
|
432
|
+
setDirection: bt,
|
|
433
|
+
addSection: wt,
|
|
434
|
+
getSections: _t,
|
|
435
|
+
getTasks: vt,
|
|
436
|
+
addTask: $t,
|
|
437
|
+
addTaskOrg: Et,
|
|
438
|
+
addEvent: St
|
|
439
|
+
}, Tt = 0, Q = /* @__PURE__ */ o(function(e, t) {
|
|
440
|
+
const n = e.append("rect");
|
|
441
|
+
return n.attr("x", t.x), n.attr("y", t.y), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("width", t.width), n.attr("height", t.height), n.attr("rx", t.rx), n.attr("ry", t.ry), t.class !== void 0 && n.attr("class", t.class), n;
|
|
442
|
+
}, "drawRect"), Gt = /* @__PURE__ */ o(function(e, t) {
|
|
443
|
+
const n = e.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), a = e.append("g");
|
|
444
|
+
a.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"), a.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");
|
|
445
|
+
function r(h) {
|
|
446
|
+
const u = st().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
447
|
+
h.append("path").attr("class", "mouth").attr("d", u).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
448
|
+
}
|
|
449
|
+
o(r, "smile");
|
|
450
|
+
function l(h) {
|
|
451
|
+
const u = st().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
452
|
+
h.append("path").attr("class", "mouth").attr("d", u).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
453
|
+
}
|
|
454
|
+
o(l, "sad");
|
|
455
|
+
function c(h) {
|
|
456
|
+
h.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");
|
|
457
|
+
}
|
|
458
|
+
return o(c, "ambivalent"), t.score > 3 ? r(a) : t.score < 3 ? l(a) : c(a), n;
|
|
459
|
+
}, "drawFace"), Ut = /* @__PURE__ */ o(function(e, t) {
|
|
460
|
+
const n = e.append("circle");
|
|
461
|
+
return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
|
|
462
|
+
}, "drawCircle"), Mt = /* @__PURE__ */ o(function(e, t) {
|
|
463
|
+
const n = t.text.replace(/<br\s*\/?>/gi, " "), a = e.append("text");
|
|
464
|
+
a.attr("x", t.x), a.attr("y", t.y), a.attr("class", "legend"), a.style("text-anchor", t.anchor), t.class !== void 0 && a.attr("class", t.class);
|
|
465
|
+
const r = a.append("tspan");
|
|
466
|
+
return r.attr("x", t.x + t.textMargin * 2), r.text(n), a;
|
|
467
|
+
}, "drawText"), qt = /* @__PURE__ */ o(function(e, t) {
|
|
468
|
+
function n(r, l, c, h, u) {
|
|
469
|
+
return r + "," + l + " " + (r + c) + "," + l + " " + (r + c) + "," + (l + h - u) + " " + (r + c - u * 1.2) + "," + (l + h) + " " + r + "," + (l + h);
|
|
470
|
+
}
|
|
471
|
+
o(n, "genPoints");
|
|
472
|
+
const a = e.append("polygon");
|
|
473
|
+
a.attr("points", n(t.x, t.y, 50, 20, 7)), a.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, Mt(e, t);
|
|
474
|
+
}, "drawLabel"), Xt = /* @__PURE__ */ o(function(e, t, n) {
|
|
475
|
+
const a = e.append("g"), r = rt();
|
|
476
|
+
r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = n.width, r.height = n.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, Q(a, r), Ht(n)(
|
|
477
|
+
t.text,
|
|
478
|
+
a,
|
|
479
|
+
r.x,
|
|
480
|
+
r.y,
|
|
481
|
+
r.width,
|
|
482
|
+
r.height,
|
|
483
|
+
{ class: "journey-section section-type-" + t.num },
|
|
484
|
+
n,
|
|
485
|
+
t.colour
|
|
486
|
+
);
|
|
487
|
+
}, "drawSection"), tt = -1, Zt = /* @__PURE__ */ o(function(e, t, n, a) {
|
|
488
|
+
const r = t.x + n.width / 2, l = e.append("g");
|
|
489
|
+
tt++, l.append("line").attr("id", a + "-task" + tt).attr("x1", r).attr("y1", t.y).attr("x2", r).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Gt(l, {
|
|
490
|
+
cx: r,
|
|
491
|
+
cy: 300 + (5 - t.score) * 30,
|
|
492
|
+
score: t.score
|
|
493
|
+
});
|
|
494
|
+
const c = rt();
|
|
495
|
+
c.x = t.x, c.y = t.y, c.fill = t.fill, c.width = n.width, c.height = n.height, c.class = "task task-type-" + t.num, c.rx = 3, c.ry = 3, Q(l, c), Ht(n)(
|
|
496
|
+
t.task,
|
|
497
|
+
l,
|
|
498
|
+
c.x,
|
|
499
|
+
c.y,
|
|
500
|
+
c.width,
|
|
501
|
+
c.height,
|
|
502
|
+
{ class: "task" },
|
|
503
|
+
n,
|
|
504
|
+
t.colour
|
|
505
|
+
);
|
|
506
|
+
}, "drawTask"), Yt = /* @__PURE__ */ o(function(e, t) {
|
|
507
|
+
Q(e, {
|
|
508
|
+
x: t.startx,
|
|
509
|
+
y: t.starty,
|
|
510
|
+
width: t.stopx - t.startx,
|
|
511
|
+
height: t.stopy - t.starty,
|
|
512
|
+
fill: t.fill,
|
|
513
|
+
class: "rect"
|
|
514
|
+
}).lower();
|
|
515
|
+
}, "drawBackgroundRect"), Qt = /* @__PURE__ */ o(function() {
|
|
516
|
+
return {
|
|
517
|
+
x: 0,
|
|
518
|
+
y: 0,
|
|
519
|
+
fill: void 0,
|
|
520
|
+
"text-anchor": "start",
|
|
521
|
+
width: 100,
|
|
522
|
+
height: 100,
|
|
523
|
+
textMargin: 0,
|
|
524
|
+
rx: 0,
|
|
525
|
+
ry: 0
|
|
526
|
+
};
|
|
527
|
+
}, "getTextObj"), rt = /* @__PURE__ */ o(function() {
|
|
528
|
+
return {
|
|
529
|
+
x: 0,
|
|
530
|
+
y: 0,
|
|
531
|
+
width: 100,
|
|
532
|
+
anchor: "start",
|
|
533
|
+
height: 100,
|
|
534
|
+
rx: 0,
|
|
535
|
+
ry: 0
|
|
536
|
+
};
|
|
537
|
+
}, "getNoteRect"), Ht = /* @__PURE__ */ function() {
|
|
538
|
+
function e(r, l, c, h, u, y, b, f) {
|
|
539
|
+
const m = l.append("text").attr("x", c + u / 2).attr("y", h + y / 2 + 5).style("font-color", f).style("text-anchor", "middle").text(r);
|
|
540
|
+
a(m, b);
|
|
541
|
+
}
|
|
542
|
+
o(e, "byText");
|
|
543
|
+
function t(r, l, c, h, u, y, b, f, m) {
|
|
544
|
+
const { taskFontSize: i, taskFontFamily: d } = f, p = r.split(/<br\s*\/?>/gi);
|
|
545
|
+
for (let g = 0; g < p.length; g++) {
|
|
546
|
+
const s = g * i - i * (p.length - 1) / 2, x = l.append("text").attr("x", c + u / 2).attr("y", h).attr("fill", m).style("text-anchor", "middle").style("font-size", i).style("font-family", d);
|
|
547
|
+
x.append("tspan").attr("x", c + u / 2).attr("dy", s).text(p[g]), x.attr("y", h + y / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(x, b);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
o(t, "byTspan");
|
|
551
|
+
function n(r, l, c, h, u, y, b, f) {
|
|
552
|
+
const m = l.append("switch"), i = m.append("foreignObject").attr("x", c).attr("y", h).attr("width", u).attr("height", y).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
553
|
+
i.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, m, c, h, u, y, b, f), a(i, b);
|
|
554
|
+
}
|
|
555
|
+
o(n, "byFo");
|
|
556
|
+
function a(r, l) {
|
|
557
|
+
for (const c in l)
|
|
558
|
+
c in l && r.attr(c, l[c]);
|
|
559
|
+
}
|
|
560
|
+
return o(a, "_setTextAttrs"), function(r) {
|
|
561
|
+
return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
|
|
562
|
+
};
|
|
563
|
+
}(), Jt = /* @__PURE__ */ o(function(e, t) {
|
|
564
|
+
Tt = 0, tt = -1, e.append("defs").append("marker").attr("id", t + "-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");
|
|
565
|
+
}, "initGraphics");
|
|
566
|
+
function it(e, t) {
|
|
567
|
+
e.each(function() {
|
|
568
|
+
var n = Z(this), a = n.text().split(/(\s+|<br>)/).reverse(), r, l = [], c = 1.1, h = n.attr("y"), u = parseFloat(n.attr("dy")), y = n.text(null).append("tspan").attr("x", 0).attr("y", h).attr("dy", u + "em");
|
|
569
|
+
for (let b = 0; b < a.length; b++)
|
|
570
|
+
r = a[a.length - 1 - b], l.push(r), y.text(l.join(" ").trim()), (y.node().getComputedTextLength() > t || r === "<br>") && (l.pop(), y.text(l.join(" ").trim()), r === "<br>" ? l = [""] : l = [r], y = n.append("tspan").attr("x", 0).attr("y", h).attr("dy", c + "em").text(r));
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
o(it, "wrap");
|
|
574
|
+
var Kt = /* @__PURE__ */ o(function(e, t, n, a, r, l = !1) {
|
|
575
|
+
var c, h, u;
|
|
576
|
+
const { theme: y, look: b } = a, f = y == null ? void 0 : y.includes("redux"), m = ((c = a == null ? void 0 : a.themeVariables) == null ? void 0 : c.THEME_COLOR_LIMIT) ?? 12, i = n % m - 1, d = e.append("g");
|
|
577
|
+
t.section = i, d.attr(
|
|
578
|
+
"class",
|
|
579
|
+
(t.class ? t.class + " " : "") + "timeline-node " + ("section-" + i)
|
|
580
|
+
);
|
|
581
|
+
const p = d.append("g"), g = d.append("g"), s = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(it, t.width).node().getBBox(), x = (h = a.fontSize) != null && h.replace ? a.fontSize.replace("px", "") : a.fontSize;
|
|
582
|
+
if (t.height = s.height + x * 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 + ")"), f && g.attr(
|
|
583
|
+
"transform",
|
|
584
|
+
`translate(${t.width / 2}, ${l ? t.padding / 2 + 3 : t.padding})`
|
|
585
|
+
), ee(p, t, i, r, a), b === "neo" && (d.attr("data-look", "neo"), f)) {
|
|
586
|
+
const _ = y.includes("dark"), A = ((u = e.node()) == null ? void 0 : u.ownerSVGElement) ?? e.node(), T = Z(A), N = T.attr("id") ?? "", P = N ? `${N}-drop-shadow` : "drop-shadow";
|
|
587
|
+
if (T.select(`#${P}`).empty()) {
|
|
588
|
+
const H = T.select("defs");
|
|
589
|
+
(H.empty() ? T.append("defs") : H).append("filter").attr("id", P).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", _ ? "0.2" : "0.06").attr("flood-color", _ ? "#FFFFFF" : "#000000");
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
return t;
|
|
593
|
+
}, "drawNode"), te = /* @__PURE__ */ o(function(e, t, n) {
|
|
594
|
+
var a;
|
|
595
|
+
const r = e.append("g"), l = r.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(it, t.width).node().getBBox(), c = (a = n.fontSize) != null && a.replace ? n.fontSize.replace("px", "") : n.fontSize;
|
|
596
|
+
return r.remove(), l.height + c * 1.1 * 0.5 + t.padding;
|
|
597
|
+
}, "getVirtualNodeHeight"), ee = /* @__PURE__ */ o(function(e, t, n, a, r) {
|
|
598
|
+
const { theme: l } = r, c = l != null && l.includes("redux") ? 0 : 5, h = 5, u = c > 0 ? `M0 ${t.height - h} v${-t.height + 2 * h} q0,-${c},${c},-${c} h${t.width - 2 * h} q${c},0,${c},${c} v${t.height - h} H0 Z` : `M0 ${t.height - h} v${-(t.height - h)} h${t.width} v${t.height} H0 Z`;
|
|
599
|
+
e.append("path").attr("id", a + "-node-" + Tt++).attr("class", "node-bkg node-" + t.type).attr("d", u), l != null && l.includes("redux") || e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
600
|
+
}, "defaultBkg"), B = {
|
|
601
|
+
drawRect: Q,
|
|
602
|
+
drawCircle: Ut,
|
|
603
|
+
drawSection: Xt,
|
|
604
|
+
drawText: Mt,
|
|
605
|
+
drawLabel: qt,
|
|
606
|
+
drawTask: Zt,
|
|
607
|
+
drawBackgroundRect: Yt,
|
|
608
|
+
getTextObj: Qt,
|
|
609
|
+
getNoteRect: rt,
|
|
610
|
+
initGraphics: Jt,
|
|
611
|
+
drawNode: Kt,
|
|
612
|
+
getVirtualNodeHeight: te
|
|
613
|
+
}, ne = /* @__PURE__ */ o(function(e, t, n, a) {
|
|
614
|
+
var r, l, c;
|
|
615
|
+
const h = pt(), { look: u, theme: y, themeVariables: b } = h, { useGradient: f, gradientStart: m, gradientStop: i } = b, d = ((r = h.timeline) == null ? void 0 : r.leftMargin) ?? 50;
|
|
616
|
+
k.debug("timeline", a.db);
|
|
617
|
+
const p = h.securityLevel;
|
|
618
|
+
let g;
|
|
619
|
+
p === "sandbox" && (g = Z("#i" + t));
|
|
620
|
+
const s = (p === "sandbox" ? Z(g.nodes()[0].contentDocument.body) : Z("body")).select("#" + t);
|
|
621
|
+
s.append("g");
|
|
622
|
+
const x = a.db.getTasks(), _ = a.db.getCommonDb().getDiagramTitle();
|
|
623
|
+
k.debug("task", x), B.initGraphics(s, t);
|
|
624
|
+
const A = a.db.getSections();
|
|
625
|
+
k.debug("sections", A);
|
|
626
|
+
let T = 0, N = 0, P = 0, H = 0, v = 50 + d, M = 50;
|
|
627
|
+
H = 50;
|
|
628
|
+
let O = 0, z = !0;
|
|
629
|
+
A.forEach(function($) {
|
|
630
|
+
const w = {
|
|
631
|
+
number: O,
|
|
632
|
+
descr: $,
|
|
633
|
+
section: O,
|
|
634
|
+
width: 150,
|
|
635
|
+
padding: 20,
|
|
636
|
+
maxHeight: T
|
|
637
|
+
}, E = B.getVirtualNodeHeight(s, w, h);
|
|
638
|
+
k.debug("sectionHeight before draw", E), T = Math.max(T, E + 20);
|
|
639
|
+
});
|
|
640
|
+
let W = 0, R = 0;
|
|
641
|
+
k.debug("tasks.length", x.length);
|
|
642
|
+
for (const [$, w] of x.entries()) {
|
|
643
|
+
const E = {
|
|
644
|
+
number: $,
|
|
645
|
+
descr: w,
|
|
646
|
+
section: w.section,
|
|
647
|
+
width: 150,
|
|
648
|
+
padding: 20,
|
|
649
|
+
maxHeight: N
|
|
650
|
+
}, I = B.getVirtualNodeHeight(s, E, h);
|
|
651
|
+
k.debug("taskHeight before draw", I), N = Math.max(N, I + 20), W = Math.max(W, w.events.length);
|
|
652
|
+
let S = 0;
|
|
653
|
+
for (const L of w.events) {
|
|
654
|
+
const C = {
|
|
655
|
+
descr: L,
|
|
656
|
+
section: w.section,
|
|
657
|
+
number: w.section,
|
|
658
|
+
width: 150,
|
|
659
|
+
padding: 20,
|
|
660
|
+
maxHeight: 50
|
|
661
|
+
};
|
|
662
|
+
S += B.getVirtualNodeHeight(s, C, h);
|
|
663
|
+
}
|
|
664
|
+
w.events.length > 0 && (S += (w.events.length - 1) * 10), R = Math.max(R, S);
|
|
665
|
+
}
|
|
666
|
+
k.debug("maxSectionHeight before draw", T), k.debug("maxTaskHeight before draw", N), A && A.length > 0 ? A.forEach(($) => {
|
|
667
|
+
const w = x.filter((L) => L.section === $), E = {
|
|
668
|
+
number: O,
|
|
669
|
+
descr: $,
|
|
670
|
+
section: O,
|
|
671
|
+
width: 200 * Math.max(w.length, 1) - 50,
|
|
672
|
+
padding: 20,
|
|
673
|
+
maxHeight: T
|
|
674
|
+
};
|
|
675
|
+
k.debug("sectionNode", E);
|
|
676
|
+
const I = s.append("g"), S = B.drawNode(I, E, O, h, t);
|
|
677
|
+
k.debug("sectionNode output", S), I.attr("transform", `translate(${v}, ${H})`), M += T + 50, w.length > 0 && lt(
|
|
678
|
+
s,
|
|
679
|
+
w,
|
|
680
|
+
O,
|
|
681
|
+
v,
|
|
682
|
+
M,
|
|
683
|
+
N,
|
|
684
|
+
h,
|
|
685
|
+
W,
|
|
686
|
+
R,
|
|
687
|
+
T,
|
|
688
|
+
!1,
|
|
689
|
+
t
|
|
690
|
+
), v += 200 * Math.max(w.length, 1), M = H, O++;
|
|
691
|
+
}) : (z = !1, lt(
|
|
692
|
+
s,
|
|
693
|
+
x,
|
|
694
|
+
O,
|
|
695
|
+
v,
|
|
696
|
+
M,
|
|
697
|
+
N,
|
|
698
|
+
h,
|
|
699
|
+
W,
|
|
700
|
+
R,
|
|
701
|
+
T,
|
|
702
|
+
!0,
|
|
703
|
+
t
|
|
704
|
+
));
|
|
705
|
+
const j = s.node().getBBox();
|
|
706
|
+
if (k.debug("bounds", j), _ && s.append("text").text(_).attr("x", u === "neo" ? j.x * 2 + d : j.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), P = z ? T + N + 150 : N + 100, s.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", P).attr("x2", j.width + 3 * d).attr("y2", P).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${t}-arrowhead)`), u === "neo" && f && y !== "neutral") {
|
|
707
|
+
const $ = s.select("defs"), w = ($.empty() ? s.append("defs") : $).append("linearGradient").attr("id", s.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
708
|
+
w.append("stop").attr("offset", "0%").attr("stop-color", m).attr("stop-opacity", 1), w.append("stop").attr("offset", "100%").attr("stop-color", i).attr("stop-opacity", 1);
|
|
709
|
+
}
|
|
710
|
+
gt(
|
|
711
|
+
void 0,
|
|
712
|
+
s,
|
|
713
|
+
((l = h.timeline) == null ? void 0 : l.padding) ?? 50,
|
|
714
|
+
((c = h.timeline) == null ? void 0 : c.useMaxWidth) ?? !1
|
|
715
|
+
);
|
|
716
|
+
}, "draw"), lt = /* @__PURE__ */ o(function(e, t, n, a, r, l, c, h, u, y, b, f) {
|
|
717
|
+
var m;
|
|
718
|
+
for (const i of t) {
|
|
719
|
+
const d = {
|
|
720
|
+
descr: i.task,
|
|
721
|
+
section: n,
|
|
722
|
+
number: n,
|
|
723
|
+
width: 150,
|
|
724
|
+
padding: 20,
|
|
725
|
+
maxHeight: l
|
|
726
|
+
};
|
|
727
|
+
k.debug("taskNode", d);
|
|
728
|
+
const p = e.append("g").attr("class", "taskWrapper"), g = B.drawNode(p, d, n, c, f).height;
|
|
729
|
+
if (k.debug("taskHeight after draw", g), p.attr("transform", `translate(${a}, ${r})`), l = Math.max(l, g), i.events) {
|
|
730
|
+
const s = e.append("g").attr("class", "lineWrapper");
|
|
731
|
+
let x = l;
|
|
732
|
+
r += 100, x = x + re(e, i.events, n, a, r, c, f), r -= 100, s.append("line").attr("x1", a + 190 / 2).attr("y1", r + l).attr("x2", a + 190 / 2).attr("y2", r + l + 100 + u + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${f}-arrowhead)`).attr("stroke-dasharray", "5,5");
|
|
733
|
+
}
|
|
734
|
+
a = a + 200, b && !((m = c.timeline) != null && m.disableMulticolor) && n++;
|
|
735
|
+
}
|
|
736
|
+
r = r - 10;
|
|
737
|
+
}, "drawTasks"), re = /* @__PURE__ */ o(function(e, t, n, a, r, l, c) {
|
|
738
|
+
let h = 0;
|
|
739
|
+
const u = r;
|
|
740
|
+
r = r + 100;
|
|
741
|
+
for (const y of t) {
|
|
742
|
+
const b = {
|
|
743
|
+
descr: y,
|
|
744
|
+
section: n,
|
|
745
|
+
number: n,
|
|
746
|
+
width: 150,
|
|
747
|
+
padding: 20,
|
|
748
|
+
maxHeight: 50
|
|
749
|
+
};
|
|
750
|
+
k.debug("eventNode", b);
|
|
751
|
+
const f = e.append("g").attr("class", "eventWrapper"), m = B.drawNode(f, b, n, l, c, !0).height;
|
|
752
|
+
h = h + m, f.attr("transform", `translate(${a}, ${r})`), r = r + 10 + m;
|
|
753
|
+
}
|
|
754
|
+
return r = u, h;
|
|
755
|
+
}, "drawEvents"), ie = {
|
|
756
|
+
setConf: /* @__PURE__ */ o(() => {
|
|
757
|
+
}, "setConf"),
|
|
758
|
+
draw: ne
|
|
759
|
+
}, J = 200, V = 5, ae = J + V * 2, at = J + 100, se = at + V * 2, Ct = 10, oe = 0, ct = 20, It = 20, ht = 30, Lt = 50, le = /* @__PURE__ */ o(function(e, t, n, a) {
|
|
760
|
+
var r, l, c, h, u;
|
|
761
|
+
const y = pt(), b = ((r = y.timeline) == null ? void 0 : r.leftMargin) ?? 50;
|
|
762
|
+
k.debug("timeline", a.db);
|
|
763
|
+
const f = Bt(t);
|
|
764
|
+
f.append("g");
|
|
765
|
+
const m = a.db.getTasks(), i = a.db.getCommonDb().getDiagramTitle();
|
|
766
|
+
k.debug("task", m), B.initGraphics(f);
|
|
767
|
+
const d = a.db.getSections();
|
|
768
|
+
k.debug("sections", d);
|
|
769
|
+
let p = 0, g = 0;
|
|
770
|
+
const s = 50 + b;
|
|
771
|
+
let x = 50;
|
|
772
|
+
const _ = x, A = s, T = ae + It, N = se + Lt, P = A + T;
|
|
773
|
+
let H = 0;
|
|
774
|
+
const v = d && d.length > 0, M = v ? P : s + T, O = Math.max(50, T + N - V * 2);
|
|
775
|
+
d.forEach(function(I) {
|
|
776
|
+
const S = {
|
|
777
|
+
number: H,
|
|
778
|
+
descr: I,
|
|
779
|
+
section: H,
|
|
780
|
+
width: O,
|
|
781
|
+
padding: V,
|
|
782
|
+
maxHeight: p
|
|
783
|
+
}, L = B.getVirtualNodeHeight(f, S, y);
|
|
784
|
+
k.debug("sectionHeight before draw", L), p = Math.max(p, L);
|
|
785
|
+
});
|
|
786
|
+
let z = 0;
|
|
787
|
+
k.debug("tasks.length", m.length);
|
|
788
|
+
for (const [I, S] of m.entries()) {
|
|
789
|
+
const L = {
|
|
790
|
+
number: I,
|
|
791
|
+
descr: S,
|
|
792
|
+
section: S.section,
|
|
793
|
+
width: J,
|
|
794
|
+
padding: V,
|
|
795
|
+
maxHeight: g
|
|
796
|
+
}, C = B.getVirtualNodeHeight(f, L, y);
|
|
797
|
+
k.debug("taskHeight before draw", C), g = Math.max(g, C);
|
|
798
|
+
let F = 0;
|
|
799
|
+
for (const G of S.events) {
|
|
800
|
+
const U = {
|
|
801
|
+
descr: G,
|
|
802
|
+
section: S.section,
|
|
803
|
+
number: S.section,
|
|
804
|
+
width: at,
|
|
805
|
+
padding: V,
|
|
806
|
+
maxHeight: 50
|
|
807
|
+
};
|
|
808
|
+
F += B.getVirtualNodeHeight(f, U, y);
|
|
809
|
+
}
|
|
810
|
+
S.events.length > 0 && (F += (S.events.length - 1) * Ct), z = Math.max(z, F) + oe;
|
|
811
|
+
}
|
|
812
|
+
k.debug("maxSectionHeight before draw", p), k.debug("maxTaskHeight before draw", g);
|
|
813
|
+
const W = Math.max(g, z) + ht;
|
|
814
|
+
v ? d.forEach((I) => {
|
|
815
|
+
const S = m.filter((Nt) => Nt.section === I), L = {
|
|
816
|
+
number: H,
|
|
817
|
+
descr: I,
|
|
818
|
+
section: H,
|
|
819
|
+
width: O,
|
|
820
|
+
padding: V,
|
|
821
|
+
maxHeight: p
|
|
822
|
+
};
|
|
823
|
+
k.debug("sectionNode", L);
|
|
824
|
+
const C = f.append("g"), F = B.drawNode(C, L, H, y);
|
|
825
|
+
k.debug("sectionNode output", F);
|
|
826
|
+
const G = M - T;
|
|
827
|
+
C.attr("transform", `translate(${G}, ${x})`);
|
|
828
|
+
const U = x + F.height + ct;
|
|
829
|
+
S.length > 0 && dt(
|
|
830
|
+
f,
|
|
831
|
+
S,
|
|
832
|
+
H,
|
|
833
|
+
M,
|
|
834
|
+
U,
|
|
835
|
+
g,
|
|
836
|
+
y,
|
|
837
|
+
W,
|
|
838
|
+
!1
|
|
839
|
+
);
|
|
840
|
+
const D = S.length, Dt = F.height + ct + W * Math.max(D, 1) - (D > 0 ? ht * 2 : 0);
|
|
841
|
+
x += Dt, H++;
|
|
842
|
+
}) : dt(
|
|
843
|
+
f,
|
|
844
|
+
m,
|
|
845
|
+
H,
|
|
846
|
+
M,
|
|
847
|
+
x,
|
|
848
|
+
g,
|
|
849
|
+
y,
|
|
850
|
+
W,
|
|
851
|
+
!0
|
|
852
|
+
);
|
|
853
|
+
let R = (l = f.node()) == null ? void 0 : l.getBBox();
|
|
854
|
+
if (!R)
|
|
855
|
+
throw new Error("bbox not found");
|
|
856
|
+
if (k.debug("bounds", R), i) {
|
|
857
|
+
if (f.append("text").text(i).attr("x", R.width / 2 - b).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), R = (c = f.node()) == null ? void 0 : c.getBBox(), !R)
|
|
858
|
+
throw new Error("bbox not found");
|
|
859
|
+
k.debug("bounds after title", R);
|
|
860
|
+
}
|
|
861
|
+
const [j] = Pt(y.fontSize), $ = (j ?? 16) * 2, w = (j ?? 16) * 0.5 + 20, E = f.append("g").attr("class", "lineWrapper");
|
|
862
|
+
E.append("line").attr("x1", M).attr("y1", _ - $).attr("x2", M).attr("y2", R.y + R.height + w).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), E.lower(), gt(
|
|
863
|
+
void 0,
|
|
864
|
+
f,
|
|
865
|
+
((h = y.timeline) == null ? void 0 : h.padding) ?? 50,
|
|
866
|
+
((u = y.timeline) == null ? void 0 : u.useMaxWidth) ?? !1
|
|
867
|
+
);
|
|
868
|
+
}, "draw"), dt = /* @__PURE__ */ o(function(e, t, n, a, r, l, c, h, u) {
|
|
869
|
+
var y;
|
|
870
|
+
for (const b of t) {
|
|
871
|
+
const f = {
|
|
872
|
+
descr: b.task,
|
|
873
|
+
section: n,
|
|
874
|
+
number: n,
|
|
875
|
+
width: J,
|
|
876
|
+
padding: V,
|
|
877
|
+
maxHeight: l
|
|
878
|
+
};
|
|
879
|
+
k.debug("taskNode", f);
|
|
880
|
+
const m = e.append("g").attr("class", "taskWrapper"), i = B.drawNode(m, f, n, c), d = i.height;
|
|
881
|
+
k.debug("taskHeight after draw", d);
|
|
882
|
+
const p = a - It - i.width;
|
|
883
|
+
if (m.attr("transform", `translate(${p}, ${r})`), l = Math.max(l, d), b.events && b.events.length > 0) {
|
|
884
|
+
const g = r, s = a + Lt;
|
|
885
|
+
ce(e, b.events, n, a, s, g, c);
|
|
886
|
+
}
|
|
887
|
+
r = r + h, u && !((y = c.timeline) != null && y.disableMulticolor) && n++;
|
|
888
|
+
}
|
|
889
|
+
}, "drawTasks"), ce = /* @__PURE__ */ o(function(e, t, n, a, r, l, c) {
|
|
890
|
+
let h = l;
|
|
891
|
+
for (const u of t) {
|
|
892
|
+
const y = {
|
|
893
|
+
descr: u,
|
|
894
|
+
section: n,
|
|
895
|
+
number: n,
|
|
896
|
+
width: at,
|
|
897
|
+
padding: V,
|
|
898
|
+
maxHeight: 0
|
|
899
|
+
};
|
|
900
|
+
k.debug("eventNode", y);
|
|
901
|
+
const b = e.append("g").attr("class", "eventWrapper"), f = B.drawNode(b, y, n, c).height;
|
|
902
|
+
b.attr("transform", `translate(${r}, ${h})`);
|
|
903
|
+
const m = e.append("g").attr("class", "lineWrapper"), i = h + f / 2;
|
|
904
|
+
m.append("line").attr("x1", a).attr("y1", i).attr("x2", r).attr("y2", i).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), h = h + f + Ct;
|
|
905
|
+
}
|
|
906
|
+
return h - l;
|
|
907
|
+
}, "drawEvents"), he = {
|
|
908
|
+
setConf: /* @__PURE__ */ o(() => {
|
|
909
|
+
}, "setConf"),
|
|
910
|
+
draw: le
|
|
911
|
+
}, de = /* @__PURE__ */ o((e) => {
|
|
912
|
+
var t;
|
|
913
|
+
const { theme: n } = ut(), a = n == null ? void 0 : n.includes("dark"), r = n == null ? void 0 : n.includes("color"), l = ((t = e.svgId) == null ? void 0 : t.replace(/^#/, "")) ?? "", c = l ? `url(#${l}-drop-shadow)` : e.dropShadow ?? "none";
|
|
914
|
+
let h = "";
|
|
915
|
+
for (let u = 0; u < e.THEME_COLOR_LIMIT; u++) {
|
|
916
|
+
const y = `${17 - 3 * u}`, b = r ? e.borderColorArray[u] : e.mainBkg, f = r ? e.borderColorArray[u] : e.nodeBorder;
|
|
917
|
+
h += `
|
|
918
|
+
.section-${u - 1} rect,
|
|
919
|
+
.section-${u - 1} path,
|
|
920
|
+
.section-${u - 1} circle {
|
|
921
|
+
fill: ${a && r ? e.mainBkg : b};
|
|
922
|
+
stroke: ${f};
|
|
923
|
+
stroke-width: ${e.strokeWidth};
|
|
924
|
+
filter: ${c};
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.section-${u - 1} text {
|
|
928
|
+
fill: ${e.nodeBorder};
|
|
929
|
+
font-weight: ${e.fontWeight}
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.node-icon-${u - 1} {
|
|
933
|
+
font-size: 40px;
|
|
934
|
+
color: ${e["cScaleLabel" + u]};
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.section-edge-${u - 1} {
|
|
938
|
+
stroke: ${e["cScale" + u]};
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.edge-depth-${u - 1} {
|
|
942
|
+
stroke-width: ${y};
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
.section-${u - 1} line {
|
|
946
|
+
stroke: ${e["cScaleInv" + u]};
|
|
947
|
+
stroke-width: 3;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
.lineWrapper line {
|
|
951
|
+
stroke: ${e.nodeBorder};
|
|
952
|
+
stroke-width:${e.strokeWidth}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
.disabled,
|
|
956
|
+
.disabled circle,
|
|
957
|
+
.disabled text {
|
|
958
|
+
fill: ${e.tertiaryColor ?? "lightgray"};
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.disabled text {
|
|
962
|
+
fill: ${e.clusterBorder ?? "#efefef"};
|
|
963
|
+
}
|
|
964
|
+
`;
|
|
965
|
+
}
|
|
966
|
+
return h;
|
|
967
|
+
}, "genReduxSections"), ue = /* @__PURE__ */ o((e) => {
|
|
968
|
+
let t = "";
|
|
969
|
+
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++)
|
|
970
|
+
e["lineColor" + n] = e["lineColor" + n] || e["cScaleInv" + n], Ot(e["lineColor" + n]) ? e["lineColor" + n] = Rt(e["lineColor" + n], 20) : e["lineColor" + n] = At(e["lineColor" + n], 20);
|
|
971
|
+
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
|
|
972
|
+
const a = "" + (17 - 3 * n);
|
|
973
|
+
t += `
|
|
974
|
+
.section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} path {
|
|
975
|
+
fill: ${e["cScale" + n]};
|
|
976
|
+
}
|
|
977
|
+
.section-${n - 1} text {
|
|
978
|
+
fill: ${e["cScaleLabel" + n]};
|
|
979
|
+
}
|
|
980
|
+
.node-icon-${n - 1} {
|
|
981
|
+
font-size: 40px;
|
|
982
|
+
color: ${e["cScaleLabel" + n]};
|
|
983
|
+
}
|
|
984
|
+
.section-edge-${n - 1}{
|
|
985
|
+
stroke: ${e["cScale" + n]};
|
|
986
|
+
}
|
|
987
|
+
.edge-depth-${n - 1}{
|
|
988
|
+
stroke-width: ${a};
|
|
989
|
+
}
|
|
990
|
+
.section-${n - 1} line {
|
|
991
|
+
stroke: ${e["cScaleInv" + n]} ;
|
|
992
|
+
stroke-width: 3;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.lineWrapper line{
|
|
996
|
+
stroke: ${e["cScaleLabel" + n]} ;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.disabled, .disabled circle, .disabled text {
|
|
1000
|
+
fill: ${e.tertiaryColor ?? "lightgray"};
|
|
1001
|
+
}
|
|
1002
|
+
.disabled text {
|
|
1003
|
+
fill: ${e.clusterBorder ?? "#efefef"};
|
|
1004
|
+
}
|
|
1005
|
+
`;
|
|
1006
|
+
}
|
|
1007
|
+
return t;
|
|
1008
|
+
}, "genSections"), pe = /* @__PURE__ */ o((e) => {
|
|
1009
|
+
var t;
|
|
1010
|
+
const { theme: n } = ut(), a = n == null ? void 0 : n.includes("redux"), r = n === "neutral", l = ((t = e.svgId) == null ? void 0 : t.replace(/^#/, "")) ?? "";
|
|
1011
|
+
let c = "";
|
|
1012
|
+
if (e.useGradient && l && e.THEME_COLOR_LIMIT && !r)
|
|
1013
|
+
for (let h = 0; h < e.THEME_COLOR_LIMIT; h++)
|
|
1014
|
+
c += `
|
|
1015
|
+
.section-${h - 1}[data-look="neo"] rect,
|
|
1016
|
+
.section-${h - 1}[data-look="neo"] path,
|
|
1017
|
+
.section-${h - 1}[data-look="neo"] circle {
|
|
1018
|
+
fill: ${e.mainBkg};
|
|
1019
|
+
stroke: url(#${l}-gradient);
|
|
1020
|
+
stroke-width: 2;
|
|
1021
|
+
}
|
|
1022
|
+
.section-${h - 1}[data-look="neo"] line {
|
|
1023
|
+
stroke: url(#${l}-gradient);
|
|
1024
|
+
stroke-width: 2;
|
|
1025
|
+
}`;
|
|
1026
|
+
return `
|
|
1027
|
+
.edge {
|
|
1028
|
+
stroke-width: 3;
|
|
1029
|
+
}
|
|
1030
|
+
${a ? de(e) : ue(e)}
|
|
1031
|
+
${c}
|
|
1032
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
1033
|
+
fill: ${e.git0};
|
|
1034
|
+
}
|
|
1035
|
+
.section-root text {
|
|
1036
|
+
fill: ${e.gitBranchLabel0};
|
|
1037
|
+
}
|
|
1038
|
+
.icon-container {
|
|
1039
|
+
height:100%;
|
|
1040
|
+
display: flex;
|
|
1041
|
+
justify-content: center;
|
|
1042
|
+
align-items: center;
|
|
1043
|
+
}
|
|
1044
|
+
.edge {
|
|
1045
|
+
fill: none;
|
|
1046
|
+
}
|
|
1047
|
+
.eventWrapper {
|
|
1048
|
+
filter: brightness(120%);
|
|
1049
|
+
}
|
|
1050
|
+
`;
|
|
1051
|
+
}, "getStyles"), ge = pe, fe = {
|
|
1052
|
+
setConf: /* @__PURE__ */ o(() => {
|
|
1053
|
+
}, "setConf"),
|
|
1054
|
+
draw: /* @__PURE__ */ o((e, t, n, a) => {
|
|
1055
|
+
var r, l;
|
|
1056
|
+
return (((l = (r = a == null ? void 0 : a.db) == null ? void 0 : r.getDirection) == null ? void 0 : l.call(r)) ?? "LR") === "TD" ? he.draw(e, t, n, a) : ie.draw(e, t, n, a);
|
|
1057
|
+
}, "draw")
|
|
1058
|
+
}, xe = {
|
|
1059
|
+
db: ft,
|
|
1060
|
+
renderer: fe,
|
|
1061
|
+
parser: Ft,
|
|
1062
|
+
styles: ge
|
|
1063
|
+
};
|
|
1064
|
+
export {
|
|
1065
|
+
xe as diagram
|
|
1066
|
+
};
|