@kong-ui-public/documentation 1.5.78 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{arc-DZdQjcG8-C_2Dx6GQ.js → arc-DZdQjcG8-CduayE88.js} +2 -2
- package/dist/{architectureDiagram-3BPJPVTR-By_DXDyu-DTj86bUZ.js → architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js} +1506 -1513
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +3268 -0
- package/dist/{c4Diagram-AAUBKEIU-ftdwlfdB-CYiERTWJ.js → c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js} +11 -12
- package/dist/{channel-DM9j7IFL-CjNPz4Hd.js → channel-DM9j7IFL-DxqBUxfY.js} +1 -1
- package/dist/{chunk-2J33WTMH-CBbjVzWb-BAAd-TK5.js → chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js} +7 -8
- package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +8 -0
- package/dist/{chunk-55IACEB6-DZn1aNO0-_bs5ibIB.js → chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js} +1 -1
- package/dist/{chunk-727SXJPM-B2_6_WLv-CzbzsbtK.js → chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js} +548 -549
- package/dist/{chunk-AQP2D5EJ-DEAEiJjW-BPr5JvkB.js → chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js} +446 -458
- package/dist/{chunk-FMBD7UC4-D_tZ4Dxg-BUygZnCT.js → chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js} +1 -1
- package/dist/{chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js → chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DN6nBdn0-DxWE5zsM.js → chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js} +1 -1
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +17 -0
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +17 -0
- package/dist/{cose-bilkent-S5V4N54A-0ZumbVgj-BKcFQWbE.js → cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js} +465 -465
- package/dist/{cytoscape.esm-BDIiOYYO-BbddfVIJ.js → cytoscape.esm-BDIiOYYO-C1jMBhD8.js} +356 -371
- package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +288 -0
- package/dist/{dagre-DJxg_nfI-BzVw7cNP.js → dagre-DJxg_nfI-hVOVexz-.js} +9 -9
- package/dist/{diagram-2AECGRRQ-B2gF_dHe-DCRSlKG-.js → diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js} +10 -14
- package/dist/{diagram-5GNKFQAL-DJ9WwRrD-DtSWJY6-.js → diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js} +4 -4
- package/dist/{diagram-KO2AKTUF-RfkqD-VW-ZR9mxccc.js → diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js} +153 -156
- package/dist/{diagram-LMA3HP47-Ct7s9hIt-DXtPBRn4.js → diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js} +21 -22
- package/dist/{diagram-OG6HWLK6-BSYJ2CoI-DX1BfXw6.js → diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js} +79 -81
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +374 -374
- package/dist/{erDiagram-TEJ5UH35-BudwiSYX-BPA5-1u6.js → erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js} +134 -135
- package/dist/{flowDiagram-I6XJVG4X-B23Smlxp-Cb24VZnb.js → flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js} +842 -849
- package/dist/{ganttDiagram-6RSMTGT7-C-i89z_P-DEdTFlTH.js → ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js} +46 -46
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +734 -0
- package/dist/{graphlib-D2YdGpuK-CM8PX5pf.js → graphlib-D2YdGpuK-CnQPmzkS.js} +17 -17
- package/dist/{index-Dpyqhws4.js → index-DfVKdDwj.js} +16258 -16515
- package/dist/{infoDiagram-5YYISTIA-CDUwzFql-BsbTK2Me.js → infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js} +2 -2
- package/dist/{ishikawaDiagram-YF4QCWOH-MfYdx0rK-DsWP0O6d.js → ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js} +137 -138
- package/dist/{journeyDiagram-JHISSGLW-C_udOPtJ-BkIf9B4Q.js → journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js} +13 -13
- package/dist/{kanban-definition-UN3LZRKU-C1Su-UOY-6sw-wDwK.js → kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js} +334 -336
- package/dist/{katex-D7tFlpqA-B7yKriH4.js → katex-D7tFlpqA-BOSQxXe1.js} +254 -256
- package/dist/{linear-1MXhYum8-CfR5ywK4.js → linear-1MXhYum8-9C1jno9G.js} +5 -5
- package/dist/{mindmap-definition-RKZ34NQL-MuSV765K-Cv2rDIFS.js → mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js} +94 -97
- package/dist/{ordinal-D9ksOc8y-CrGveXkB.js → ordinal-D9ksOc8y-2hZwLyEk.js} +1 -1
- package/dist/{pieDiagram-4H26LBE5-TgFp7J6_-C8m2xJbj.js → pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js} +43 -44
- package/dist/{quadrantDiagram-W4KKPZXB-DKPne3o_-D0Tfl8NQ.js → quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js} +351 -353
- package/dist/{requirementDiagram-4Y6WPE33-vh8uUAp_-C5zLx-_o.js → requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js} +384 -386
- package/dist/{sankeyDiagram-5OEKKPKP-Cgs6W_El-DBrv4QL_.js → sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js} +178 -178
- package/dist/{sequenceDiagram-3UESZ5HK-C5F57Dkt-D6DqZiJP.js → sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js} +643 -653
- package/dist/{stateDiagram-AJRCARHV-09dUKG6Y-9QhAIhCk.js → stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js} +5 -5
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +16 -0
- package/dist/style.css +1 -1
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +1095 -0
- package/dist/{vennDiagram-CIIHVFJN-DQfKxM3L-086u82L3.js → vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js} +596 -603
- package/dist/{wardley-L42UT6IY-BjAkE_cs-li1xYed9.js → wardley-L42UT6IY-BjAkE_cs-C-giFqos.js} +5760 -5809
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +639 -0
- package/dist/{xychartDiagram-2RQKCTM6-ChNH3q1U--vbcTXH5.js → xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js} +10 -10
- package/package.json +7 -7
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CSQRWfog.js +0 -3278
- package/dist/chunk-4BX2VUAB-C_NnimAy-B-8x_g6K.js +0 -9
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-DLmqgbj1.js +0 -17
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-DLmqgbj1.js +0 -17
- package/dist/dagre-BM42HDAG-qMWMsyLb-BzK2-5zM.js +0 -291
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-BtfdBLxW.js +0 -747
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-Br5eF-5b.js +0 -16
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-CkhwKYjQ.js +0 -1106
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-CCMCDU5F.js +0 -647
|
@@ -1,1106 +0,0 @@
|
|
|
1
|
-
import { p as o, o as pt, ar as Dt, as as Ot, at as Bt, Z as gt, g as k, a0 as Rt, a1 as Pt, au as ft, q as X, n as Wt, av as jt, H as Ft } from "./index-Dpyqhws4.js";
|
|
2
|
-
import { x as ot } from "./arc-DZdQjcG8-C_2Dx6GQ.js";
|
|
3
|
-
var tt = function() {
|
|
4
|
-
var e = /* @__PURE__ */ o(function(n, p, c, d) {
|
|
5
|
-
for (c || (c = {}), d = n.length; d--; c[n[d]] = p) ;
|
|
6
|
-
return c;
|
|
7
|
-
}, "o"), t = [
|
|
8
|
-
6,
|
|
9
|
-
11,
|
|
10
|
-
13,
|
|
11
|
-
14,
|
|
12
|
-
15,
|
|
13
|
-
17,
|
|
14
|
-
19,
|
|
15
|
-
20,
|
|
16
|
-
23,
|
|
17
|
-
24
|
|
18
|
-
], r = [1, 12], a = [1, 13], i = [1, 14], l = [1, 15], s = [1, 16], u = [1, 19], g = [1, 20], x = {
|
|
19
|
-
trace: /* @__PURE__ */ o(function() {
|
|
20
|
-
}, "trace"),
|
|
21
|
-
yy: {},
|
|
22
|
-
symbols_: {
|
|
23
|
-
error: 2,
|
|
24
|
-
start: 3,
|
|
25
|
-
timeline_header: 4,
|
|
26
|
-
document: 5,
|
|
27
|
-
EOF: 6,
|
|
28
|
-
timeline: 7,
|
|
29
|
-
timeline_lr: 8,
|
|
30
|
-
timeline_td: 9,
|
|
31
|
-
line: 10,
|
|
32
|
-
SPACE: 11,
|
|
33
|
-
statement: 12,
|
|
34
|
-
NEWLINE: 13,
|
|
35
|
-
title: 14,
|
|
36
|
-
acc_title: 15,
|
|
37
|
-
acc_title_value: 16,
|
|
38
|
-
acc_descr: 17,
|
|
39
|
-
acc_descr_value: 18,
|
|
40
|
-
acc_descr_multiline_value: 19,
|
|
41
|
-
section: 20,
|
|
42
|
-
period_statement: 21,
|
|
43
|
-
event_statement: 22,
|
|
44
|
-
period: 23,
|
|
45
|
-
event: 24,
|
|
46
|
-
$accept: 0,
|
|
47
|
-
$end: 1
|
|
48
|
-
},
|
|
49
|
-
terminals_: {
|
|
50
|
-
2: "error",
|
|
51
|
-
6: "EOF",
|
|
52
|
-
7: "timeline",
|
|
53
|
-
8: "timeline_lr",
|
|
54
|
-
9: "timeline_td",
|
|
55
|
-
11: "SPACE",
|
|
56
|
-
13: "NEWLINE",
|
|
57
|
-
14: "title",
|
|
58
|
-
15: "acc_title",
|
|
59
|
-
16: "acc_title_value",
|
|
60
|
-
17: "acc_descr",
|
|
61
|
-
18: "acc_descr_value",
|
|
62
|
-
19: "acc_descr_multiline_value",
|
|
63
|
-
20: "section",
|
|
64
|
-
23: "period",
|
|
65
|
-
24: "event"
|
|
66
|
-
},
|
|
67
|
-
productions_: [
|
|
68
|
-
0,
|
|
69
|
-
[3, 3],
|
|
70
|
-
[4, 1],
|
|
71
|
-
[4, 1],
|
|
72
|
-
[4, 1],
|
|
73
|
-
[5, 0],
|
|
74
|
-
[5, 2],
|
|
75
|
-
[10, 2],
|
|
76
|
-
[10, 1],
|
|
77
|
-
[10, 1],
|
|
78
|
-
[10, 1],
|
|
79
|
-
[12, 1],
|
|
80
|
-
[12, 2],
|
|
81
|
-
[12, 2],
|
|
82
|
-
[12, 1],
|
|
83
|
-
[12, 1],
|
|
84
|
-
[12, 1],
|
|
85
|
-
[12, 1],
|
|
86
|
-
[21, 1],
|
|
87
|
-
[22, 1]
|
|
88
|
-
],
|
|
89
|
-
performAction: /* @__PURE__ */ o(function(n, p, c, d, y, h, E) {
|
|
90
|
-
var m = h.length - 1;
|
|
91
|
-
switch (y) {
|
|
92
|
-
case 1:
|
|
93
|
-
return h[m - 1];
|
|
94
|
-
case 3:
|
|
95
|
-
d.setDirection("LR");
|
|
96
|
-
break;
|
|
97
|
-
case 4:
|
|
98
|
-
d.setDirection("TD");
|
|
99
|
-
break;
|
|
100
|
-
case 5:
|
|
101
|
-
this.$ = [];
|
|
102
|
-
break;
|
|
103
|
-
case 6:
|
|
104
|
-
h[m - 1].push(h[m]), this.$ = h[m - 1];
|
|
105
|
-
break;
|
|
106
|
-
case 7:
|
|
107
|
-
case 8:
|
|
108
|
-
this.$ = h[m];
|
|
109
|
-
break;
|
|
110
|
-
case 9:
|
|
111
|
-
case 10:
|
|
112
|
-
this.$ = [];
|
|
113
|
-
break;
|
|
114
|
-
case 11:
|
|
115
|
-
d.getCommonDb().setDiagramTitle(h[m].substr(6)), this.$ = h[m].substr(6);
|
|
116
|
-
break;
|
|
117
|
-
case 12:
|
|
118
|
-
this.$ = h[m].trim(), d.getCommonDb().setAccTitle(this.$);
|
|
119
|
-
break;
|
|
120
|
-
case 13:
|
|
121
|
-
case 14:
|
|
122
|
-
this.$ = h[m].trim(), d.getCommonDb().setAccDescription(this.$);
|
|
123
|
-
break;
|
|
124
|
-
case 15:
|
|
125
|
-
d.addSection(h[m].substr(8)), this.$ = h[m].substr(8);
|
|
126
|
-
break;
|
|
127
|
-
case 18:
|
|
128
|
-
d.addTask(h[m], 0, ""), this.$ = h[m];
|
|
129
|
-
break;
|
|
130
|
-
case 19:
|
|
131
|
-
d.addEvent(h[m].substr(2)), this.$ = h[m];
|
|
132
|
-
break;
|
|
133
|
-
}
|
|
134
|
-
}, "anonymous"),
|
|
135
|
-
table: [
|
|
136
|
-
{
|
|
137
|
-
3: 1,
|
|
138
|
-
4: 2,
|
|
139
|
-
7: [1, 3],
|
|
140
|
-
8: [1, 4],
|
|
141
|
-
9: [1, 5]
|
|
142
|
-
},
|
|
143
|
-
{ 1: [3] },
|
|
144
|
-
e(t, [2, 5], { 5: 6 }),
|
|
145
|
-
e(t, [2, 2]),
|
|
146
|
-
e(t, [2, 3]),
|
|
147
|
-
e(t, [2, 4]),
|
|
148
|
-
{
|
|
149
|
-
6: [1, 7],
|
|
150
|
-
10: 8,
|
|
151
|
-
11: [1, 9],
|
|
152
|
-
12: 10,
|
|
153
|
-
13: [1, 11],
|
|
154
|
-
14: r,
|
|
155
|
-
15: a,
|
|
156
|
-
17: i,
|
|
157
|
-
19: l,
|
|
158
|
-
20: s,
|
|
159
|
-
21: 17,
|
|
160
|
-
22: 18,
|
|
161
|
-
23: u,
|
|
162
|
-
24: g
|
|
163
|
-
},
|
|
164
|
-
e(t, [2, 10], { 1: [2, 1] }),
|
|
165
|
-
e(t, [2, 6]),
|
|
166
|
-
{
|
|
167
|
-
12: 21,
|
|
168
|
-
14: r,
|
|
169
|
-
15: a,
|
|
170
|
-
17: i,
|
|
171
|
-
19: l,
|
|
172
|
-
20: s,
|
|
173
|
-
21: 17,
|
|
174
|
-
22: 18,
|
|
175
|
-
23: u,
|
|
176
|
-
24: g
|
|
177
|
-
},
|
|
178
|
-
e(t, [2, 8]),
|
|
179
|
-
e(t, [2, 9]),
|
|
180
|
-
e(t, [2, 11]),
|
|
181
|
-
{ 16: [1, 22] },
|
|
182
|
-
{ 18: [1, 23] },
|
|
183
|
-
e(t, [2, 14]),
|
|
184
|
-
e(t, [2, 15]),
|
|
185
|
-
e(t, [2, 16]),
|
|
186
|
-
e(t, [2, 17]),
|
|
187
|
-
e(t, [2, 18]),
|
|
188
|
-
e(t, [2, 19]),
|
|
189
|
-
e(t, [2, 7]),
|
|
190
|
-
e(t, [2, 12]),
|
|
191
|
-
e(t, [2, 13])
|
|
192
|
-
],
|
|
193
|
-
defaultActions: {},
|
|
194
|
-
parseError: /* @__PURE__ */ o(function(n, p) {
|
|
195
|
-
if (p.recoverable) this.trace(n);
|
|
196
|
-
else {
|
|
197
|
-
var c = Error(n);
|
|
198
|
-
throw c.hash = p, c;
|
|
199
|
-
}
|
|
200
|
-
}, "parseError"),
|
|
201
|
-
parse: /* @__PURE__ */ o(function(n) {
|
|
202
|
-
var p = this, c = [0], d = [], y = [null], h = [], E = this.table, m = "", _ = 0, D = 0, L = 0, O = 2, R = 1, N = h.slice.call(arguments, 1), b = Object.create(this.lexer), H = { yy: {} };
|
|
203
|
-
for (var P in this.yy) Object.prototype.hasOwnProperty.call(this.yy, P) && (H.yy[P] = this.yy[P]);
|
|
204
|
-
b.setInput(n, H.yy), H.yy.lexer = b, H.yy.parser = this, b.yylloc === void 0 && (b.yylloc = {});
|
|
205
|
-
var W = b.yylloc;
|
|
206
|
-
h.push(W);
|
|
207
|
-
var V = b.options && b.options.ranges;
|
|
208
|
-
typeof H.yy.parseError == "function" ? this.parseError = H.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
209
|
-
function G(C) {
|
|
210
|
-
c.length -= 2 * C, y.length -= C, h.length -= C;
|
|
211
|
-
}
|
|
212
|
-
o(G, "popStack");
|
|
213
|
-
function F() {
|
|
214
|
-
var C = d.pop() || b.lex() || R;
|
|
215
|
-
return typeof C != "number" && (C instanceof Array && (d = C, C = d.pop()), C = p.symbols_[C] || C), C;
|
|
216
|
-
}
|
|
217
|
-
o(F, "lex");
|
|
218
|
-
for (var w, $, I, v, S, M = {}, B, T, Z, z; ; ) {
|
|
219
|
-
if (I = c[c.length - 1], this.defaultActions[I] ? v = this.defaultActions[I] : (w ?? (w = F()), v = E[I] && E[I][w]), v === void 0 || !v.length || !v[0]) {
|
|
220
|
-
var Y = "";
|
|
221
|
-
for (B in z = [], E[I]) this.terminals_[B] && B > O && z.push("'" + this.terminals_[B] + "'");
|
|
222
|
-
Y = b.showPosition ? "Parse error on line " + (_ + 1) + `:
|
|
223
|
-
` + b.showPosition() + `
|
|
224
|
-
Expecting ` + z.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : "Parse error on line " + (_ + 1) + ": Unexpected " + (w == R ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Y, {
|
|
225
|
-
text: b.match,
|
|
226
|
-
token: this.terminals_[w] || w,
|
|
227
|
-
line: b.yylineno,
|
|
228
|
-
loc: W,
|
|
229
|
-
expected: z
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
if (v[0] instanceof Array && v.length > 1) throw Error("Parse Error: multiple actions possible at state: " + I + ", token: " + w);
|
|
233
|
-
switch (v[0]) {
|
|
234
|
-
case 1:
|
|
235
|
-
c.push(w), y.push(b.yytext), h.push(b.yylloc), c.push(v[1]), w = null, $ ? (w = $, $ = null) : (D = b.yyleng, m = b.yytext, _ = b.yylineno, W = b.yylloc, L > 0);
|
|
236
|
-
break;
|
|
237
|
-
case 2:
|
|
238
|
-
if (T = this.productions_[v[1]][1], M.$ = y[y.length - T], M._$ = {
|
|
239
|
-
first_line: h[h.length - (T || 1)].first_line,
|
|
240
|
-
last_line: h[h.length - 1].last_line,
|
|
241
|
-
first_column: h[h.length - (T || 1)].first_column,
|
|
242
|
-
last_column: h[h.length - 1].last_column
|
|
243
|
-
}, V && (M._$.range = [h[h.length - (T || 1)].range[0], h[h.length - 1].range[1]]), S = this.performAction.apply(M, [
|
|
244
|
-
m,
|
|
245
|
-
D,
|
|
246
|
-
_,
|
|
247
|
-
H.yy,
|
|
248
|
-
v[1],
|
|
249
|
-
y,
|
|
250
|
-
h
|
|
251
|
-
].concat(N)), S !== void 0) return S;
|
|
252
|
-
T && (c = c.slice(0, -1 * T * 2), y = y.slice(0, -1 * T), h = h.slice(0, -1 * T)), c.push(this.productions_[v[1]][0]), y.push(M.$), h.push(M._$), Z = E[c[c.length - 2]][c[c.length - 1]], c.push(Z);
|
|
253
|
-
break;
|
|
254
|
-
case 3:
|
|
255
|
-
return !0;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
return !0;
|
|
259
|
-
}, "parse")
|
|
260
|
-
};
|
|
261
|
-
x.lexer = /* @__PURE__ */ function() {
|
|
262
|
-
return {
|
|
263
|
-
EOF: 1,
|
|
264
|
-
parseError: /* @__PURE__ */ o(function(n, p) {
|
|
265
|
-
if (this.yy.parser) this.yy.parser.parseError(n, p);
|
|
266
|
-
else throw Error(n);
|
|
267
|
-
}, "parseError"),
|
|
268
|
-
setInput: /* @__PURE__ */ o(function(n, p) {
|
|
269
|
-
return this.yy = p || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
270
|
-
first_line: 1,
|
|
271
|
-
first_column: 0,
|
|
272
|
-
last_line: 1,
|
|
273
|
-
last_column: 0
|
|
274
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
275
|
-
}, "setInput"),
|
|
276
|
-
input: /* @__PURE__ */ o(function() {
|
|
277
|
-
var n = this._input[0];
|
|
278
|
-
return this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n, n.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
|
|
279
|
-
}, "input"),
|
|
280
|
-
unput: /* @__PURE__ */ o(function(n) {
|
|
281
|
-
var p = n.length, c = n.split(/(?:\r\n?|\n)/g);
|
|
282
|
-
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - p), this.offset -= p;
|
|
283
|
-
var d = this.match.split(/(?:\r\n?|\n)/g);
|
|
284
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
|
|
285
|
-
var y = this.yylloc.range;
|
|
286
|
-
return this.yylloc = {
|
|
287
|
-
first_line: this.yylloc.first_line,
|
|
288
|
-
last_line: this.yylineno + 1,
|
|
289
|
-
first_column: this.yylloc.first_column,
|
|
290
|
-
last_column: c ? (c.length === d.length ? this.yylloc.first_column : 0) + d[d.length - c.length].length - c[0].length : this.yylloc.first_column - p
|
|
291
|
-
}, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - p]), this.yyleng = this.yytext.length, this;
|
|
292
|
-
}, "unput"),
|
|
293
|
-
more: /* @__PURE__ */ o(function() {
|
|
294
|
-
return this._more = !0, this;
|
|
295
|
-
}, "more"),
|
|
296
|
-
reject: /* @__PURE__ */ o(function() {
|
|
297
|
-
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
298
|
-
else 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).
|
|
299
|
-
` + this.showPosition(), {
|
|
300
|
-
text: "",
|
|
301
|
-
token: null,
|
|
302
|
-
line: this.yylineno
|
|
303
|
-
});
|
|
304
|
-
return this;
|
|
305
|
-
}, "reject"),
|
|
306
|
-
less: /* @__PURE__ */ o(function(n) {
|
|
307
|
-
this.unput(this.match.slice(n));
|
|
308
|
-
}, "less"),
|
|
309
|
-
pastInput: /* @__PURE__ */ o(function() {
|
|
310
|
-
var n = this.matched.substr(0, this.matched.length - this.match.length);
|
|
311
|
-
return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
|
|
312
|
-
}, "pastInput"),
|
|
313
|
-
upcomingInput: /* @__PURE__ */ o(function() {
|
|
314
|
-
var n = this.match;
|
|
315
|
-
return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
316
|
-
}, "upcomingInput"),
|
|
317
|
-
showPosition: /* @__PURE__ */ o(function() {
|
|
318
|
-
var n = this.pastInput(), p = Array(n.length + 1).join("-");
|
|
319
|
-
return n + this.upcomingInput() + `
|
|
320
|
-
` + p + "^";
|
|
321
|
-
}, "showPosition"),
|
|
322
|
-
test_match: /* @__PURE__ */ o(function(n, p) {
|
|
323
|
-
var c, d, y;
|
|
324
|
-
if (this.options.backtrack_lexer && (y = {
|
|
325
|
-
yylineno: this.yylineno,
|
|
326
|
-
yylloc: {
|
|
327
|
-
first_line: this.yylloc.first_line,
|
|
328
|
-
last_line: this.last_line,
|
|
329
|
-
first_column: this.yylloc.first_column,
|
|
330
|
-
last_column: this.yylloc.last_column
|
|
331
|
-
},
|
|
332
|
-
yytext: this.yytext,
|
|
333
|
-
match: this.match,
|
|
334
|
-
matches: this.matches,
|
|
335
|
-
matched: this.matched,
|
|
336
|
-
yyleng: this.yyleng,
|
|
337
|
-
offset: this.offset,
|
|
338
|
-
_more: this._more,
|
|
339
|
-
_input: this._input,
|
|
340
|
-
yy: this.yy,
|
|
341
|
-
conditionStack: this.conditionStack.slice(0),
|
|
342
|
-
done: this.done
|
|
343
|
-
}, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), d = n[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
|
|
344
|
-
first_line: this.yylloc.last_line,
|
|
345
|
-
last_line: this.yylineno + 1,
|
|
346
|
-
first_column: this.yylloc.last_column,
|
|
347
|
-
last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
|
|
348
|
-
}, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, p, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c) return c;
|
|
349
|
-
if (this._backtrack) {
|
|
350
|
-
for (var h in y) this[h] = y[h];
|
|
351
|
-
return !1;
|
|
352
|
-
}
|
|
353
|
-
return !1;
|
|
354
|
-
}, "test_match"),
|
|
355
|
-
next: /* @__PURE__ */ o(function() {
|
|
356
|
-
if (this.done) return this.EOF;
|
|
357
|
-
this._input || (this.done = !0);
|
|
358
|
-
var n, p, c, d;
|
|
359
|
-
this._more || (this.yytext = "", this.match = "");
|
|
360
|
-
for (var y = this._currentRules(), h = 0; h < y.length; h++) if (c = this._input.match(this.rules[y[h]]), c && (!p || c[0].length > p[0].length)) {
|
|
361
|
-
if (p = c, d = h, this.options.backtrack_lexer) {
|
|
362
|
-
if (n = this.test_match(c, y[h]), n !== !1) return n;
|
|
363
|
-
if (this._backtrack) {
|
|
364
|
-
p = !1;
|
|
365
|
-
continue;
|
|
366
|
-
} else return !1;
|
|
367
|
-
} else if (!this.options.flex) break;
|
|
368
|
-
}
|
|
369
|
-
return p ? (n = this.test_match(p, y[d]), n === !1 ? !1 : n) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
370
|
-
` + this.showPosition(), {
|
|
371
|
-
text: "",
|
|
372
|
-
token: null,
|
|
373
|
-
line: this.yylineno
|
|
374
|
-
});
|
|
375
|
-
}, "next"),
|
|
376
|
-
lex: /* @__PURE__ */ o(function() {
|
|
377
|
-
return this.next() || this.lex();
|
|
378
|
-
}, "lex"),
|
|
379
|
-
begin: /* @__PURE__ */ o(function(n) {
|
|
380
|
-
this.conditionStack.push(n);
|
|
381
|
-
}, "begin"),
|
|
382
|
-
popState: /* @__PURE__ */ o(function() {
|
|
383
|
-
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
384
|
-
}, "popState"),
|
|
385
|
-
_currentRules: /* @__PURE__ */ o(function() {
|
|
386
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
387
|
-
}, "_currentRules"),
|
|
388
|
-
topState: /* @__PURE__ */ o(function(n) {
|
|
389
|
-
return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
|
|
390
|
-
}, "topState"),
|
|
391
|
-
pushState: /* @__PURE__ */ o(function(n) {
|
|
392
|
-
this.begin(n);
|
|
393
|
-
}, "pushState"),
|
|
394
|
-
stateStackSize: /* @__PURE__ */ o(function() {
|
|
395
|
-
return this.conditionStack.length;
|
|
396
|
-
}, "stateStackSize"),
|
|
397
|
-
options: { "case-insensitive": !0 },
|
|
398
|
-
performAction: /* @__PURE__ */ o(function(n, p, c, d) {
|
|
399
|
-
switch (c) {
|
|
400
|
-
case 0:
|
|
401
|
-
break;
|
|
402
|
-
case 1:
|
|
403
|
-
break;
|
|
404
|
-
case 2:
|
|
405
|
-
return 13;
|
|
406
|
-
case 3:
|
|
407
|
-
break;
|
|
408
|
-
case 4:
|
|
409
|
-
break;
|
|
410
|
-
case 5:
|
|
411
|
-
return 8;
|
|
412
|
-
case 6:
|
|
413
|
-
return 9;
|
|
414
|
-
case 7:
|
|
415
|
-
return 7;
|
|
416
|
-
case 8:
|
|
417
|
-
return 14;
|
|
418
|
-
case 9:
|
|
419
|
-
return this.begin("acc_title"), 15;
|
|
420
|
-
case 10:
|
|
421
|
-
return this.popState(), "acc_title_value";
|
|
422
|
-
case 11:
|
|
423
|
-
return this.begin("acc_descr"), 17;
|
|
424
|
-
case 12:
|
|
425
|
-
return this.popState(), "acc_descr_value";
|
|
426
|
-
case 13:
|
|
427
|
-
this.begin("acc_descr_multiline");
|
|
428
|
-
break;
|
|
429
|
-
case 14:
|
|
430
|
-
this.popState();
|
|
431
|
-
break;
|
|
432
|
-
case 15:
|
|
433
|
-
return "acc_descr_multiline_value";
|
|
434
|
-
case 16:
|
|
435
|
-
return 20;
|
|
436
|
-
case 17:
|
|
437
|
-
return 24;
|
|
438
|
-
case 18:
|
|
439
|
-
return 23;
|
|
440
|
-
case 19:
|
|
441
|
-
return 6;
|
|
442
|
-
case 20:
|
|
443
|
-
return "INVALID";
|
|
444
|
-
}
|
|
445
|
-
}, "anonymous"),
|
|
446
|
-
rules: [
|
|
447
|
-
/^(?:%(?!\{)[^\n]*)/i,
|
|
448
|
-
/^(?:[^\}]%%[^\n]*)/i,
|
|
449
|
-
/^(?:[\n]+)/i,
|
|
450
|
-
/^(?:\s+)/i,
|
|
451
|
-
/^(?:#[^\n]*)/i,
|
|
452
|
-
/^(?:timeline[ \t]+LR\b)/i,
|
|
453
|
-
/^(?:timeline[ \t]+TD\b)/i,
|
|
454
|
-
/^(?:timeline\b)/i,
|
|
455
|
-
/^(?:title\s[^\n]+)/i,
|
|
456
|
-
/^(?:accTitle\s*:\s*)/i,
|
|
457
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
458
|
-
/^(?:accDescr\s*:\s*)/i,
|
|
459
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
460
|
-
/^(?:accDescr\s*\{\s*)/i,
|
|
461
|
-
/^(?:[\}])/i,
|
|
462
|
-
/^(?:[^\}]*)/i,
|
|
463
|
-
/^(?:section\s[^:\n]+)/i,
|
|
464
|
-
/^(?::\s(?:[^:\n]|:(?!\s))+)/i,
|
|
465
|
-
/^(?:[^#:\n]+)/i,
|
|
466
|
-
/^(?:$)/i,
|
|
467
|
-
/^(?:.)/i
|
|
468
|
-
],
|
|
469
|
-
conditions: {
|
|
470
|
-
acc_descr_multiline: {
|
|
471
|
-
rules: [14, 15],
|
|
472
|
-
inclusive: !1
|
|
473
|
-
},
|
|
474
|
-
acc_descr: {
|
|
475
|
-
rules: [12],
|
|
476
|
-
inclusive: !1
|
|
477
|
-
},
|
|
478
|
-
acc_title: {
|
|
479
|
-
rules: [10],
|
|
480
|
-
inclusive: !1
|
|
481
|
-
},
|
|
482
|
-
INITIAL: {
|
|
483
|
-
rules: [
|
|
484
|
-
0,
|
|
485
|
-
1,
|
|
486
|
-
2,
|
|
487
|
-
3,
|
|
488
|
-
4,
|
|
489
|
-
5,
|
|
490
|
-
6,
|
|
491
|
-
7,
|
|
492
|
-
8,
|
|
493
|
-
9,
|
|
494
|
-
11,
|
|
495
|
-
13,
|
|
496
|
-
16,
|
|
497
|
-
17,
|
|
498
|
-
18,
|
|
499
|
-
19,
|
|
500
|
-
20
|
|
501
|
-
],
|
|
502
|
-
inclusive: !0
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
}();
|
|
507
|
-
function f() {
|
|
508
|
-
this.yy = {};
|
|
509
|
-
}
|
|
510
|
-
return o(f, "Parser"), f.prototype = x, x.Parser = f, new f();
|
|
511
|
-
}();
|
|
512
|
-
tt.parser = tt;
|
|
513
|
-
var zt = tt, yt = {};
|
|
514
|
-
Wt(yt, {
|
|
515
|
-
addEvent: () => Et,
|
|
516
|
-
addSection: () => wt,
|
|
517
|
-
addTask: () => St,
|
|
518
|
-
addTaskOrg: () => It,
|
|
519
|
-
clear: () => bt,
|
|
520
|
-
default: () => Vt,
|
|
521
|
-
getCommonDb: () => xt,
|
|
522
|
-
getDirection: () => _t,
|
|
523
|
-
getSections: () => $t,
|
|
524
|
-
getTasks: () => vt,
|
|
525
|
-
setDirection: () => kt
|
|
526
|
-
});
|
|
527
|
-
var q = "", mt = 0, rt = "LR", it = [], J = [], U = [], xt = /* @__PURE__ */ o(() => jt, "getCommonDb"), bt = /* @__PURE__ */ o(function() {
|
|
528
|
-
it.length = 0, J.length = 0, q = "", U.length = 0, rt = "LR", Ft();
|
|
529
|
-
}, "clear"), kt = /* @__PURE__ */ o(function(e) {
|
|
530
|
-
rt = e;
|
|
531
|
-
}, "setDirection"), _t = /* @__PURE__ */ o(function() {
|
|
532
|
-
return rt;
|
|
533
|
-
}, "getDirection"), wt = /* @__PURE__ */ o(function(e) {
|
|
534
|
-
q = e, it.push(e);
|
|
535
|
-
}, "addSection"), $t = /* @__PURE__ */ o(function() {
|
|
536
|
-
return it;
|
|
537
|
-
}, "getSections"), vt = /* @__PURE__ */ o(function() {
|
|
538
|
-
let e = lt(), t = 0;
|
|
539
|
-
for (; !e && t < 100; ) e = lt(), t++;
|
|
540
|
-
return J.push(...U), J;
|
|
541
|
-
}, "getTasks"), St = /* @__PURE__ */ o(function(e, t, r) {
|
|
542
|
-
let a = {
|
|
543
|
-
id: mt++,
|
|
544
|
-
section: q,
|
|
545
|
-
type: q,
|
|
546
|
-
task: e,
|
|
547
|
-
score: t || 0,
|
|
548
|
-
events: r ? [r] : []
|
|
549
|
-
};
|
|
550
|
-
U.push(a);
|
|
551
|
-
}, "addTask"), Et = /* @__PURE__ */ o(function(e) {
|
|
552
|
-
U.find((t) => t.id === mt - 1).events.push(e);
|
|
553
|
-
}, "addEvent"), It = /* @__PURE__ */ o(function(e) {
|
|
554
|
-
let t = {
|
|
555
|
-
section: q,
|
|
556
|
-
type: q,
|
|
557
|
-
description: e,
|
|
558
|
-
task: e,
|
|
559
|
-
classes: []
|
|
560
|
-
};
|
|
561
|
-
J.push(t);
|
|
562
|
-
}, "addTaskOrg"), lt = /* @__PURE__ */ o(function() {
|
|
563
|
-
let e = /* @__PURE__ */ o(function(r) {
|
|
564
|
-
return U[r].processed;
|
|
565
|
-
}, "compileTask"), t = !0;
|
|
566
|
-
for (let [r, a] of U.entries()) e(r), t && (t = a.processed);
|
|
567
|
-
return t;
|
|
568
|
-
}, "compileTasks"), Vt = {
|
|
569
|
-
clear: bt,
|
|
570
|
-
getCommonDb: xt,
|
|
571
|
-
getDirection: _t,
|
|
572
|
-
setDirection: kt,
|
|
573
|
-
addSection: wt,
|
|
574
|
-
getSections: $t,
|
|
575
|
-
getTasks: vt,
|
|
576
|
-
addTask: St,
|
|
577
|
-
addTaskOrg: It,
|
|
578
|
-
addEvent: Et
|
|
579
|
-
}, Mt = 0, K = /* @__PURE__ */ o(function(e, t) {
|
|
580
|
-
let r = e.append("rect");
|
|
581
|
-
return r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), r.attr("rx", t.rx), r.attr("ry", t.ry), t.class !== void 0 && r.attr("class", t.class), r;
|
|
582
|
-
}, "drawRect"), Gt = /* @__PURE__ */ o(function(e, t) {
|
|
583
|
-
let r = 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");
|
|
584
|
-
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");
|
|
585
|
-
function i(u) {
|
|
586
|
-
let g = ot().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
587
|
-
u.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
588
|
-
}
|
|
589
|
-
o(i, "smile");
|
|
590
|
-
function l(u) {
|
|
591
|
-
let g = ot().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
592
|
-
u.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
593
|
-
}
|
|
594
|
-
o(l, "sad");
|
|
595
|
-
function s(u) {
|
|
596
|
-
u.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");
|
|
597
|
-
}
|
|
598
|
-
return o(s, "ambivalent"), t.score > 3 ? i(a) : t.score < 3 ? l(a) : s(a), r;
|
|
599
|
-
}, "drawFace"), Zt = /* @__PURE__ */ o(function(e, t) {
|
|
600
|
-
let r = e.append("circle");
|
|
601
|
-
return r.attr("cx", t.cx), r.attr("cy", t.cy), r.attr("class", "actor-" + t.pos), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("r", t.r), r.class !== void 0 && r.attr("class", r.class), t.title !== void 0 && r.append("title").text(t.title), r;
|
|
602
|
-
}, "drawCircle"), Tt = /* @__PURE__ */ o(function(e, t) {
|
|
603
|
-
let r = t.text.replace(/<br\s*\/?>/gi, " "), a = e.append("text");
|
|
604
|
-
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);
|
|
605
|
-
let i = a.append("tspan");
|
|
606
|
-
return i.attr("x", t.x + t.textMargin * 2), i.text(r), a;
|
|
607
|
-
}, "drawText"), qt = /* @__PURE__ */ o(function(e, t) {
|
|
608
|
-
function r(i, l, s, u, g) {
|
|
609
|
-
return i + "," + l + " " + (i + s) + "," + l + " " + (i + s) + "," + (l + u - g) + " " + (i + s - g * 1.2) + "," + (l + u) + " " + i + "," + (l + u);
|
|
610
|
-
}
|
|
611
|
-
o(r, "genPoints");
|
|
612
|
-
let a = e.append("polygon");
|
|
613
|
-
a.attr("points", r(t.x, t.y, 50, 20, 7)), a.attr("class", "labelBox"), t.y += t.labelMargin, t.x += 0.5 * t.labelMargin, Tt(e, t);
|
|
614
|
-
}, "drawLabel"), Ut = /* @__PURE__ */ o(function(e, t, r) {
|
|
615
|
-
let a = e.append("g"), i = nt();
|
|
616
|
-
i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = r.width, i.height = r.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, K(a, i), Ht(r)(t.text, a, i.x, i.y, i.width, i.height, { class: "journey-section section-type-" + t.num }, r, t.colour);
|
|
617
|
-
}, "drawSection"), et = -1, Yt = /* @__PURE__ */ o(function(e, t, r, a) {
|
|
618
|
-
let i = t.x + r.width / 2, l = e.append("g");
|
|
619
|
-
et++, l.append("line").attr("id", a + "-task" + et).attr("x1", i).attr("y1", t.y).attr("x2", i).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Gt(l, {
|
|
620
|
-
cx: i,
|
|
621
|
-
cy: 300 + (5 - t.score) * 30,
|
|
622
|
-
score: t.score
|
|
623
|
-
});
|
|
624
|
-
let s = nt();
|
|
625
|
-
s.x = t.x, s.y = t.y, s.fill = t.fill, s.width = r.width, s.height = r.height, s.class = "task task-type-" + t.num, s.rx = 3, s.ry = 3, K(l, s), Ht(r)(t.task, l, s.x, s.y, s.width, s.height, { class: "task" }, r, t.colour);
|
|
626
|
-
}, "drawTask"), Xt = /* @__PURE__ */ o(function(e, t) {
|
|
627
|
-
K(e, {
|
|
628
|
-
x: t.startx,
|
|
629
|
-
y: t.starty,
|
|
630
|
-
width: t.stopx - t.startx,
|
|
631
|
-
height: t.stopy - t.starty,
|
|
632
|
-
fill: t.fill,
|
|
633
|
-
class: "rect"
|
|
634
|
-
}).lower();
|
|
635
|
-
}, "drawBackgroundRect"), Jt = /* @__PURE__ */ o(function() {
|
|
636
|
-
return {
|
|
637
|
-
x: 0,
|
|
638
|
-
y: 0,
|
|
639
|
-
fill: void 0,
|
|
640
|
-
"text-anchor": "start",
|
|
641
|
-
width: 100,
|
|
642
|
-
height: 100,
|
|
643
|
-
textMargin: 0,
|
|
644
|
-
rx: 0,
|
|
645
|
-
ry: 0
|
|
646
|
-
};
|
|
647
|
-
}, "getTextObj"), nt = /* @__PURE__ */ o(function() {
|
|
648
|
-
return {
|
|
649
|
-
x: 0,
|
|
650
|
-
y: 0,
|
|
651
|
-
width: 100,
|
|
652
|
-
anchor: "start",
|
|
653
|
-
height: 100,
|
|
654
|
-
rx: 0,
|
|
655
|
-
ry: 0
|
|
656
|
-
};
|
|
657
|
-
}, "getNoteRect"), Ht = /* @__PURE__ */ function() {
|
|
658
|
-
function e(i, l, s, u, g, x, f, n) {
|
|
659
|
-
a(l.append("text").attr("x", s + g / 2).attr("y", u + x / 2 + 5).style("font-color", n).style("text-anchor", "middle").text(i), f);
|
|
660
|
-
}
|
|
661
|
-
o(e, "byText");
|
|
662
|
-
function t(i, l, s, u, g, x, f, n, p) {
|
|
663
|
-
let { taskFontSize: c, taskFontFamily: d } = n, y = i.split(/<br\s*\/?>/gi);
|
|
664
|
-
for (let h = 0; h < y.length; h++) {
|
|
665
|
-
let E = h * c - c * (y.length - 1) / 2, m = l.append("text").attr("x", s + g / 2).attr("y", u).attr("fill", p).style("text-anchor", "middle").style("font-size", c).style("font-family", d);
|
|
666
|
-
m.append("tspan").attr("x", s + g / 2).attr("dy", E).text(y[h]), m.attr("y", u + x / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(m, f);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
o(t, "byTspan");
|
|
670
|
-
function r(i, l, s, u, g, x, f, n) {
|
|
671
|
-
let p = l.append("switch"), c = p.append("foreignObject").attr("x", s).attr("y", u).attr("width", g).attr("height", x).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
672
|
-
c.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, p, s, u, g, x, f, n), a(c, f);
|
|
673
|
-
}
|
|
674
|
-
o(r, "byFo");
|
|
675
|
-
function a(i, l) {
|
|
676
|
-
for (let s in l) s in l && i.attr(s, l[s]);
|
|
677
|
-
}
|
|
678
|
-
return o(a, "_setTextAttrs"), function(i) {
|
|
679
|
-
return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? e : t;
|
|
680
|
-
};
|
|
681
|
-
}(), Kt = /* @__PURE__ */ o(function(e, t) {
|
|
682
|
-
Mt = 0, et = -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");
|
|
683
|
-
}, "initGraphics");
|
|
684
|
-
function at(e, t) {
|
|
685
|
-
e.each(function() {
|
|
686
|
-
var r = X(this), a = r.text().split(/(\s+|<br>)/).reverse(), i, l = [], s = 1.1, u = r.attr("y"), g = parseFloat(r.attr("dy")), x = r.text(null).append("tspan").attr("x", 0).attr("y", u).attr("dy", g + "em");
|
|
687
|
-
for (let f = 0; f < a.length; f++) i = a[a.length - 1 - f], l.push(i), x.text(l.join(" ").trim()), (x.node().getComputedTextLength() > t || i === "<br>") && (l.pop(), x.text(l.join(" ").trim()), l = i === "<br>" ? [""] : [i], x = r.append("tspan").attr("x", 0).attr("y", u).attr("dy", s + "em").text(i));
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
o(at, "wrap");
|
|
691
|
-
var Qt = /* @__PURE__ */ o(function(e, t, r, a, i, l = !1) {
|
|
692
|
-
var y, h, E;
|
|
693
|
-
let { theme: s, look: u } = a, g = s == null ? void 0 : s.includes("redux"), x = r % (((y = a == null ? void 0 : a.themeVariables) == null ? void 0 : y.THEME_COLOR_LIMIT) ?? 12) - 1, f = e.append("g");
|
|
694
|
-
t.section = x, f.attr("class", (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + x));
|
|
695
|
-
let n = f.append("g"), p = f.append("g"), c = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(at, t.width).node().getBBox(), d = (h = a.fontSize) != null && h.replace ? a.fontSize.replace("px", "") : a.fontSize;
|
|
696
|
-
if (t.height = c.height + d * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width += 2 * t.padding, p.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), g && p.attr("transform", `translate(${t.width / 2}, ${l ? t.padding / 2 + 3 : t.padding})`), ee(n, t, x, i, a), u === "neo" && (f.attr("data-look", "neo"), g)) {
|
|
697
|
-
let m = s.includes("dark"), _ = X(((E = e.node()) == null ? void 0 : E.ownerSVGElement) ?? e.node()), D = _.attr("id") ?? "", L = D ? `${D}-drop-shadow` : "drop-shadow";
|
|
698
|
-
if (_.select(`#${L}`).empty()) {
|
|
699
|
-
let O = _.select("defs");
|
|
700
|
-
(O.empty() ? _.append("defs") : O).append("filter").attr("id", L).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", m ? "0.2" : "0.06").attr("flood-color", m ? "#FFFFFF" : "#000000");
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
return t;
|
|
704
|
-
}, "drawNode"), te = /* @__PURE__ */ o(function(e, t, r) {
|
|
705
|
-
var s;
|
|
706
|
-
let a = e.append("g"), i = a.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(at, t.width).node().getBBox(), l = (s = r.fontSize) != null && s.replace ? r.fontSize.replace("px", "") : r.fontSize;
|
|
707
|
-
return a.remove(), i.height + l * 1.1 * 0.5 + t.padding;
|
|
708
|
-
}, "getVirtualNodeHeight"), ee = /* @__PURE__ */ o(function(e, t, r, a, i) {
|
|
709
|
-
let { theme: l } = i, s = l != null && l.includes("redux") ? 0 : 5, u = s > 0 ? `M0 ${t.height - 5} v${-t.height + 10} q0,-${s},${s},-${s} h${t.width - 10} q${s},0,${s},${s} v${t.height - 5} H0 Z` : `M0 ${t.height - 5} v${-(t.height - 5)} h${t.width} v${t.height} H0 Z`;
|
|
710
|
-
e.append("path").attr("id", a + "-node-" + Mt++).attr("class", "node-bkg node-" + t.type).attr("d", u), l != null && l.includes("redux") || e.append("line").attr("class", "node-line-" + r).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
711
|
-
}, "defaultBkg"), A = {
|
|
712
|
-
drawRect: K,
|
|
713
|
-
drawCircle: Zt,
|
|
714
|
-
drawSection: Ut,
|
|
715
|
-
drawText: Tt,
|
|
716
|
-
drawLabel: qt,
|
|
717
|
-
drawTask: Yt,
|
|
718
|
-
drawBackgroundRect: Xt,
|
|
719
|
-
getTextObj: Jt,
|
|
720
|
-
getNoteRect: nt,
|
|
721
|
-
initGraphics: Kt,
|
|
722
|
-
drawNode: Qt,
|
|
723
|
-
getVirtualNodeHeight: te
|
|
724
|
-
}, re = /* @__PURE__ */ o(function(e, t, r, a) {
|
|
725
|
-
var V, G, F;
|
|
726
|
-
let i = gt(), { look: l, theme: s, themeVariables: u } = i, { useGradient: g, gradientStart: x, gradientStop: f } = u, n = ((V = i.timeline) == null ? void 0 : V.leftMargin) ?? 50;
|
|
727
|
-
k.debug("timeline", a.db);
|
|
728
|
-
let p = i.securityLevel, c;
|
|
729
|
-
p === "sandbox" && (c = X("#i" + t));
|
|
730
|
-
let d = X(p === "sandbox" ? c.nodes()[0].contentDocument.body : "body").select("#" + t);
|
|
731
|
-
d.append("g");
|
|
732
|
-
let y = a.db.getTasks(), h = a.db.getCommonDb().getDiagramTitle();
|
|
733
|
-
k.debug("task", y), A.initGraphics(d, t);
|
|
734
|
-
let E = a.db.getSections();
|
|
735
|
-
k.debug("sections", E);
|
|
736
|
-
let m = 0, _ = 0, D = 0, L = 0, O = 50 + n, R = 50;
|
|
737
|
-
L = 50;
|
|
738
|
-
let N = 0, b = !0;
|
|
739
|
-
E.forEach(function(w) {
|
|
740
|
-
let $ = {
|
|
741
|
-
number: N,
|
|
742
|
-
descr: w,
|
|
743
|
-
section: N,
|
|
744
|
-
width: 150,
|
|
745
|
-
padding: 20,
|
|
746
|
-
maxHeight: m
|
|
747
|
-
}, I = A.getVirtualNodeHeight(d, $, i);
|
|
748
|
-
k.debug("sectionHeight before draw", I), m = Math.max(m, I + 20);
|
|
749
|
-
});
|
|
750
|
-
let H = 0, P = 0;
|
|
751
|
-
k.debug("tasks.length", y.length);
|
|
752
|
-
for (let [w, $] of y.entries()) {
|
|
753
|
-
let I = {
|
|
754
|
-
number: w,
|
|
755
|
-
descr: $,
|
|
756
|
-
section: $.section,
|
|
757
|
-
width: 150,
|
|
758
|
-
padding: 20,
|
|
759
|
-
maxHeight: _
|
|
760
|
-
}, v = A.getVirtualNodeHeight(d, I, i);
|
|
761
|
-
k.debug("taskHeight before draw", v), _ = Math.max(_, v + 20), H = Math.max(H, $.events.length);
|
|
762
|
-
let S = 0;
|
|
763
|
-
for (let M of $.events) {
|
|
764
|
-
let B = {
|
|
765
|
-
descr: M,
|
|
766
|
-
section: $.section,
|
|
767
|
-
number: $.section,
|
|
768
|
-
width: 150,
|
|
769
|
-
padding: 20,
|
|
770
|
-
maxHeight: 50
|
|
771
|
-
};
|
|
772
|
-
S += A.getVirtualNodeHeight(d, B, i);
|
|
773
|
-
}
|
|
774
|
-
$.events.length > 0 && (S += ($.events.length - 1) * 10), P = Math.max(P, S);
|
|
775
|
-
}
|
|
776
|
-
k.debug("maxSectionHeight before draw", m), k.debug("maxTaskHeight before draw", _), E && E.length > 0 ? E.forEach((w) => {
|
|
777
|
-
let $ = y.filter((M) => M.section === w), I = {
|
|
778
|
-
number: N,
|
|
779
|
-
descr: w,
|
|
780
|
-
section: N,
|
|
781
|
-
width: 200 * Math.max($.length, 1) - 50,
|
|
782
|
-
padding: 20,
|
|
783
|
-
maxHeight: m
|
|
784
|
-
};
|
|
785
|
-
k.debug("sectionNode", I);
|
|
786
|
-
let v = d.append("g"), S = A.drawNode(v, I, N, i, t);
|
|
787
|
-
k.debug("sectionNode output", S), v.attr("transform", `translate(${O}, ${L})`), R += m + 50, $.length > 0 && ct(d, $, N, O, R, _, i, H, P, m, !1, t), O += 200 * Math.max($.length, 1), R = L, N++;
|
|
788
|
-
}) : (b = !1, ct(d, y, N, O, R, _, i, H, P, m, !0, t));
|
|
789
|
-
let W = d.node().getBBox();
|
|
790
|
-
if (k.debug("bounds", W), h && d.append("text").text(h).attr("x", l === "neo" ? W.x * 2 + n : W.width / 2 - n).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), D = b ? m + _ + 150 : _ + 100, d.append("g").attr("class", "lineWrapper").append("line").attr("x1", n).attr("y1", D).attr("x2", W.width + 3 * n).attr("y2", D).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${t}-arrowhead)`), l === "neo" && g && s !== "neutral") {
|
|
791
|
-
let w = d.select("defs"), $ = (w.empty() ? d.append("defs") : w).append("linearGradient").attr("id", d.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
792
|
-
$.append("stop").attr("offset", "0%").attr("stop-color", x).attr("stop-opacity", 1), $.append("stop").attr("offset", "100%").attr("stop-color", f).attr("stop-opacity", 1);
|
|
793
|
-
}
|
|
794
|
-
ft(void 0, d, ((G = i.timeline) == null ? void 0 : G.padding) ?? 50, ((F = i.timeline) == null ? void 0 : F.useMaxWidth) ?? !1);
|
|
795
|
-
}, "draw"), ct = /* @__PURE__ */ o(function(e, t, r, a, i, l, s, u, g, x, f, n) {
|
|
796
|
-
var p;
|
|
797
|
-
for (let c of t) {
|
|
798
|
-
let d = {
|
|
799
|
-
descr: c.task,
|
|
800
|
-
section: r,
|
|
801
|
-
number: r,
|
|
802
|
-
width: 150,
|
|
803
|
-
padding: 20,
|
|
804
|
-
maxHeight: l
|
|
805
|
-
};
|
|
806
|
-
k.debug("taskNode", d);
|
|
807
|
-
let y = e.append("g").attr("class", "taskWrapper"), h = A.drawNode(y, d, r, s, n).height;
|
|
808
|
-
if (k.debug("taskHeight after draw", h), y.attr("transform", `translate(${a}, ${i})`), l = Math.max(l, h), c.events) {
|
|
809
|
-
let E = e.append("g").attr("class", "lineWrapper"), m = l;
|
|
810
|
-
i += 100, m += ie(e, c.events, r, a, i, s, n), i -= 100, E.append("line").attr("x1", a + 190 / 2).attr("y1", i + l).attr("x2", a + 190 / 2).attr("y2", i + l + 100 + g + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${n}-arrowhead)`).attr("stroke-dasharray", "5,5");
|
|
811
|
-
}
|
|
812
|
-
a += 200, f && !((p = s.timeline) != null && p.disableMulticolor) && r++;
|
|
813
|
-
}
|
|
814
|
-
i -= 10;
|
|
815
|
-
}, "drawTasks"), ie = /* @__PURE__ */ o(function(e, t, r, a, i, l, s) {
|
|
816
|
-
let u = 0, g = i;
|
|
817
|
-
i += 100;
|
|
818
|
-
for (let x of t) {
|
|
819
|
-
let f = {
|
|
820
|
-
descr: x,
|
|
821
|
-
section: r,
|
|
822
|
-
number: r,
|
|
823
|
-
width: 150,
|
|
824
|
-
padding: 20,
|
|
825
|
-
maxHeight: 50
|
|
826
|
-
};
|
|
827
|
-
k.debug("eventNode", f);
|
|
828
|
-
let n = e.append("g").attr("class", "eventWrapper"), p = A.drawNode(n, f, r, l, s, !0).height;
|
|
829
|
-
u += p, n.attr("transform", `translate(${a}, ${i})`), i = i + 10 + p;
|
|
830
|
-
}
|
|
831
|
-
return i = g, u;
|
|
832
|
-
}, "drawEvents"), ne = {
|
|
833
|
-
setConf: /* @__PURE__ */ o(() => {
|
|
834
|
-
}, "setConf"),
|
|
835
|
-
draw: re
|
|
836
|
-
}, Q = 200, j = 5, ae = Q + j * 2, st = Q + 100, se = st + j * 2, Lt = 10, oe = 0, ht = 20, Nt = 20, dt = 30, Ct = 50, le = /* @__PURE__ */ o(function(e, t, r, a) {
|
|
837
|
-
var G, F, w, $, I;
|
|
838
|
-
let i = gt(), l = ((G = i.timeline) == null ? void 0 : G.leftMargin) ?? 50;
|
|
839
|
-
k.debug("timeline", a.db);
|
|
840
|
-
let s = Rt(t);
|
|
841
|
-
s.append("g");
|
|
842
|
-
let u = a.db.getTasks(), g = a.db.getCommonDb().getDiagramTitle();
|
|
843
|
-
k.debug("task", u), A.initGraphics(s);
|
|
844
|
-
let x = a.db.getSections();
|
|
845
|
-
k.debug("sections", x);
|
|
846
|
-
let f = 0, n = 0, p = 50 + l, c = 50, d = c, y = p, h = ae + Nt, E = se + Ct, m = y + h, _ = 0, D = x && x.length > 0, L = D ? m : p + h, O = Math.max(50, h + E - j * 2);
|
|
847
|
-
x.forEach(function(v) {
|
|
848
|
-
let S = {
|
|
849
|
-
number: _,
|
|
850
|
-
descr: v,
|
|
851
|
-
section: _,
|
|
852
|
-
width: O,
|
|
853
|
-
padding: j,
|
|
854
|
-
maxHeight: f
|
|
855
|
-
}, M = A.getVirtualNodeHeight(s, S, i);
|
|
856
|
-
k.debug("sectionHeight before draw", M), f = Math.max(f, M);
|
|
857
|
-
});
|
|
858
|
-
let R = 0;
|
|
859
|
-
k.debug("tasks.length", u.length);
|
|
860
|
-
for (let [v, S] of u.entries()) {
|
|
861
|
-
let M = {
|
|
862
|
-
number: v,
|
|
863
|
-
descr: S,
|
|
864
|
-
section: S.section,
|
|
865
|
-
width: Q,
|
|
866
|
-
padding: j,
|
|
867
|
-
maxHeight: n
|
|
868
|
-
}, B = A.getVirtualNodeHeight(s, M, i);
|
|
869
|
-
k.debug("taskHeight before draw", B), n = Math.max(n, B);
|
|
870
|
-
let T = 0;
|
|
871
|
-
for (let Z of S.events) {
|
|
872
|
-
let z = {
|
|
873
|
-
descr: Z,
|
|
874
|
-
section: S.section,
|
|
875
|
-
number: S.section,
|
|
876
|
-
width: st,
|
|
877
|
-
padding: j,
|
|
878
|
-
maxHeight: 50
|
|
879
|
-
};
|
|
880
|
-
T += A.getVirtualNodeHeight(s, z, i);
|
|
881
|
-
}
|
|
882
|
-
S.events.length > 0 && (T += (S.events.length - 1) * Lt), R = Math.max(R, T) + oe;
|
|
883
|
-
}
|
|
884
|
-
k.debug("maxSectionHeight before draw", f), k.debug("maxTaskHeight before draw", n);
|
|
885
|
-
let N = Math.max(n, R) + dt;
|
|
886
|
-
D ? x.forEach((v) => {
|
|
887
|
-
let S = u.filter((At) => At.section === v), M = {
|
|
888
|
-
number: _,
|
|
889
|
-
descr: v,
|
|
890
|
-
section: _,
|
|
891
|
-
width: O,
|
|
892
|
-
padding: j,
|
|
893
|
-
maxHeight: f
|
|
894
|
-
};
|
|
895
|
-
k.debug("sectionNode", M);
|
|
896
|
-
let B = s.append("g"), T = A.drawNode(B, M, _, i);
|
|
897
|
-
k.debug("sectionNode output", T);
|
|
898
|
-
let Z = L - h;
|
|
899
|
-
B.attr("transform", `translate(${Z}, ${c})`);
|
|
900
|
-
let z = c + T.height + ht;
|
|
901
|
-
S.length > 0 && ut(s, S, _, L, z, n, i, N, !1);
|
|
902
|
-
let Y = S.length, C = T.height + ht + N * Math.max(Y, 1) - (Y > 0 ? dt * 2 : 0);
|
|
903
|
-
c += C, _++;
|
|
904
|
-
}) : ut(s, u, _, L, c, n, i, N, !0);
|
|
905
|
-
let b = (F = s.node()) == null ? void 0 : F.getBBox();
|
|
906
|
-
if (!b) throw Error("bbox not found");
|
|
907
|
-
if (k.debug("bounds", b), g) {
|
|
908
|
-
if (s.append("text").text(g).attr("x", b.width / 2 - l).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), b = (w = s.node()) == null ? void 0 : w.getBBox(), !b) throw Error("bbox not found");
|
|
909
|
-
k.debug("bounds after title", b);
|
|
910
|
-
}
|
|
911
|
-
let [H] = Pt(i.fontSize), P = (H ?? 16) * 2, W = (H ?? 16) * 0.5 + 20, V = s.append("g").attr("class", "lineWrapper");
|
|
912
|
-
V.append("line").attr("x1", L).attr("y1", d - P).attr("x2", L).attr("y2", b.y + b.height + W).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), V.lower(), ft(void 0, s, (($ = i.timeline) == null ? void 0 : $.padding) ?? 50, ((I = i.timeline) == null ? void 0 : I.useMaxWidth) ?? !1);
|
|
913
|
-
}, "draw"), ut = /* @__PURE__ */ o(function(e, t, r, a, i, l, s, u, g) {
|
|
914
|
-
var x;
|
|
915
|
-
for (let f of t) {
|
|
916
|
-
let n = {
|
|
917
|
-
descr: f.task,
|
|
918
|
-
section: r,
|
|
919
|
-
number: r,
|
|
920
|
-
width: Q,
|
|
921
|
-
padding: j,
|
|
922
|
-
maxHeight: l
|
|
923
|
-
};
|
|
924
|
-
k.debug("taskNode", n);
|
|
925
|
-
let p = e.append("g").attr("class", "taskWrapper"), c = A.drawNode(p, n, r, s), d = c.height;
|
|
926
|
-
k.debug("taskHeight after draw", d);
|
|
927
|
-
let y = a - Nt - c.width;
|
|
928
|
-
if (p.attr("transform", `translate(${y}, ${i})`), l = Math.max(l, d), f.events && f.events.length > 0) {
|
|
929
|
-
let h = i, E = a + Ct;
|
|
930
|
-
ce(e, f.events, r, a, E, h, s);
|
|
931
|
-
}
|
|
932
|
-
i += u, g && !((x = s.timeline) != null && x.disableMulticolor) && r++;
|
|
933
|
-
}
|
|
934
|
-
}, "drawTasks"), ce = /* @__PURE__ */ o(function(e, t, r, a, i, l, s) {
|
|
935
|
-
let u = l;
|
|
936
|
-
for (let g of t) {
|
|
937
|
-
let x = {
|
|
938
|
-
descr: g,
|
|
939
|
-
section: r,
|
|
940
|
-
number: r,
|
|
941
|
-
width: st,
|
|
942
|
-
padding: j,
|
|
943
|
-
maxHeight: 0
|
|
944
|
-
};
|
|
945
|
-
k.debug("eventNode", x);
|
|
946
|
-
let f = e.append("g").attr("class", "eventWrapper"), n = A.drawNode(f, x, r, s).height;
|
|
947
|
-
f.attr("transform", `translate(${i}, ${u})`);
|
|
948
|
-
let p = e.append("g").attr("class", "lineWrapper"), c = u + n / 2;
|
|
949
|
-
p.append("line").attr("x1", a).attr("y1", c).attr("x2", i).attr("y2", c).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), u = u + n + Lt;
|
|
950
|
-
}
|
|
951
|
-
return u - l;
|
|
952
|
-
}, "drawEvents"), he = {
|
|
953
|
-
setConf: /* @__PURE__ */ o(() => {
|
|
954
|
-
}, "setConf"),
|
|
955
|
-
draw: le
|
|
956
|
-
}, de = /* @__PURE__ */ o((e) => {
|
|
957
|
-
var u;
|
|
958
|
-
let { theme: t } = pt(), r = t == null ? void 0 : t.includes("dark"), a = t == null ? void 0 : t.includes("color"), i = ((u = e.svgId) == null ? void 0 : u.replace(/^#/, "")) ?? "", l = i ? `url(#${i}-drop-shadow)` : e.dropShadow ?? "none", s = "";
|
|
959
|
-
for (let g = 0; g < e.THEME_COLOR_LIMIT; g++) {
|
|
960
|
-
let x = `${17 - 3 * g}`, f = a ? e.borderColorArray[g] : e.mainBkg, n = a ? e.borderColorArray[g] : e.nodeBorder;
|
|
961
|
-
s += `
|
|
962
|
-
.section-${g - 1} rect,
|
|
963
|
-
.section-${g - 1} path,
|
|
964
|
-
.section-${g - 1} circle {
|
|
965
|
-
fill: ${r && a ? e.mainBkg : f};
|
|
966
|
-
stroke: ${n};
|
|
967
|
-
stroke-width: ${e.strokeWidth};
|
|
968
|
-
filter: ${l};
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
.section-${g - 1} text {
|
|
972
|
-
fill: ${e.nodeBorder};
|
|
973
|
-
font-weight: ${e.fontWeight}
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
.node-icon-${g - 1} {
|
|
977
|
-
font-size: 40px;
|
|
978
|
-
color: ${e["cScaleLabel" + g]};
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
.section-edge-${g - 1} {
|
|
982
|
-
stroke: ${e["cScale" + g]};
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
.edge-depth-${g - 1} {
|
|
986
|
-
stroke-width: ${x};
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
.section-${g - 1} line {
|
|
990
|
-
stroke: ${e["cScaleInv" + g]};
|
|
991
|
-
stroke-width: 3;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
.lineWrapper line {
|
|
995
|
-
stroke: ${e.nodeBorder};
|
|
996
|
-
stroke-width:${e.strokeWidth}
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
.disabled,
|
|
1000
|
-
.disabled circle,
|
|
1001
|
-
.disabled text {
|
|
1002
|
-
fill: ${e.tertiaryColor ?? "lightgray"};
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
.disabled text {
|
|
1006
|
-
fill: ${e.clusterBorder ?? "#efefef"};
|
|
1007
|
-
}
|
|
1008
|
-
`;
|
|
1009
|
-
}
|
|
1010
|
-
return s;
|
|
1011
|
-
}, "genReduxSections"), ue = /* @__PURE__ */ o((e) => {
|
|
1012
|
-
let t = "";
|
|
1013
|
-
for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) e["lineColor" + r] = e["lineColor" + r] || e["cScaleInv" + r], Dt(e["lineColor" + r]) ? e["lineColor" + r] = Ot(e["lineColor" + r], 20) : e["lineColor" + r] = Bt(e["lineColor" + r], 20);
|
|
1014
|
-
for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) {
|
|
1015
|
-
let a = "" + (17 - 3 * r);
|
|
1016
|
-
t += `
|
|
1017
|
-
.section-${r - 1} rect, .section-${r - 1} path, .section-${r - 1} circle, .section-${r - 1} path {
|
|
1018
|
-
fill: ${e["cScale" + r]};
|
|
1019
|
-
}
|
|
1020
|
-
.section-${r - 1} text {
|
|
1021
|
-
fill: ${e["cScaleLabel" + r]};
|
|
1022
|
-
}
|
|
1023
|
-
.node-icon-${r - 1} {
|
|
1024
|
-
font-size: 40px;
|
|
1025
|
-
color: ${e["cScaleLabel" + r]};
|
|
1026
|
-
}
|
|
1027
|
-
.section-edge-${r - 1}{
|
|
1028
|
-
stroke: ${e["cScale" + r]};
|
|
1029
|
-
}
|
|
1030
|
-
.edge-depth-${r - 1}{
|
|
1031
|
-
stroke-width: ${a};
|
|
1032
|
-
}
|
|
1033
|
-
.section-${r - 1} line {
|
|
1034
|
-
stroke: ${e["cScaleInv" + r]} ;
|
|
1035
|
-
stroke-width: 3;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
.lineWrapper line{
|
|
1039
|
-
stroke: ${e["cScaleLabel" + r]} ;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
.disabled, .disabled circle, .disabled text {
|
|
1043
|
-
fill: ${e.tertiaryColor ?? "lightgray"};
|
|
1044
|
-
}
|
|
1045
|
-
.disabled text {
|
|
1046
|
-
fill: ${e.clusterBorder ?? "#efefef"};
|
|
1047
|
-
}
|
|
1048
|
-
`;
|
|
1049
|
-
}
|
|
1050
|
-
return t;
|
|
1051
|
-
}, "genSections"), fe = {
|
|
1052
|
-
db: yt,
|
|
1053
|
-
renderer: {
|
|
1054
|
-
setConf: /* @__PURE__ */ o(() => {
|
|
1055
|
-
}, "setConf"),
|
|
1056
|
-
draw: /* @__PURE__ */ o((e, t, r, a) => {
|
|
1057
|
-
var i, l;
|
|
1058
|
-
return (((l = (i = a == null ? void 0 : a.db) == null ? void 0 : i.getDirection) == null ? void 0 : l.call(i)) ?? "LR") === "TD" ? he.draw(e, t, r, a) : ne.draw(e, t, r, a);
|
|
1059
|
-
}, "draw")
|
|
1060
|
-
},
|
|
1061
|
-
parser: zt,
|
|
1062
|
-
styles: /* @__PURE__ */ o((e) => {
|
|
1063
|
-
var s;
|
|
1064
|
-
let { theme: t } = pt(), r = t == null ? void 0 : t.includes("redux"), a = t === "neutral", i = ((s = e.svgId) == null ? void 0 : s.replace(/^#/, "")) ?? "", l = "";
|
|
1065
|
-
if (e.useGradient && i && e.THEME_COLOR_LIMIT && !a) for (let u = 0; u < e.THEME_COLOR_LIMIT; u++) l += `
|
|
1066
|
-
.section-${u - 1}[data-look="neo"] rect,
|
|
1067
|
-
.section-${u - 1}[data-look="neo"] path,
|
|
1068
|
-
.section-${u - 1}[data-look="neo"] circle {
|
|
1069
|
-
fill: ${e.mainBkg};
|
|
1070
|
-
stroke: url(#${i}-gradient);
|
|
1071
|
-
stroke-width: 2;
|
|
1072
|
-
}
|
|
1073
|
-
.section-${u - 1}[data-look="neo"] line {
|
|
1074
|
-
stroke: url(#${i}-gradient);
|
|
1075
|
-
stroke-width: 2;
|
|
1076
|
-
}`;
|
|
1077
|
-
return `
|
|
1078
|
-
.edge {
|
|
1079
|
-
stroke-width: 3;
|
|
1080
|
-
}
|
|
1081
|
-
${r ? de(e) : ue(e)}
|
|
1082
|
-
${l}
|
|
1083
|
-
.section-root rect, .section-root path, .section-root circle {
|
|
1084
|
-
fill: ${e.git0};
|
|
1085
|
-
}
|
|
1086
|
-
.section-root text {
|
|
1087
|
-
fill: ${e.gitBranchLabel0};
|
|
1088
|
-
}
|
|
1089
|
-
.icon-container {
|
|
1090
|
-
height:100%;
|
|
1091
|
-
display: flex;
|
|
1092
|
-
justify-content: center;
|
|
1093
|
-
align-items: center;
|
|
1094
|
-
}
|
|
1095
|
-
.edge {
|
|
1096
|
-
fill: none;
|
|
1097
|
-
}
|
|
1098
|
-
.eventWrapper {
|
|
1099
|
-
filter: brightness(120%);
|
|
1100
|
-
}
|
|
1101
|
-
`;
|
|
1102
|
-
}, "getStyles")
|
|
1103
|
-
};
|
|
1104
|
-
export {
|
|
1105
|
-
fe as diagram
|
|
1106
|
-
};
|