@marimo-team/islands 0.13.16-dev2 → 0.13.16-dev4
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/{ConnectedDataExplorerComponent-BizAnuDQ.js → ConnectedDataExplorerComponent-W-BOfG8M.js} +1495 -1496
- package/dist/{VegaLite-BvtjUHLS.js → VegaLite-C9hsmU75.js} +12483 -12485
- package/dist/{_baseUniq-C1K8a5jF.js → _baseUniq-JsDeIdvj.js} +13 -13
- package/dist/{any-language-editor-D3C2KiQW.js → any-language-editor-BzZqDQm_.js} +2 -2
- package/dist/{architectureDiagram-IEHRJDOE-DhrFWr1a.js → architectureDiagram-IEHRJDOE-DnNsdc8e.js} +1800 -1800
- package/dist/asn1-jKiBa2Ya.js +10 -10
- package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-DwN_qfSx.js} +695 -702
- package/dist/assets/{worker-BGGm0KYZ.js → worker-BzMPE1Lq.js} +732 -739
- package/dist/assets/{worker-BNsqBj5w.js → worker-ISYYr8IB.js} +726 -732
- package/dist/blockDiagram-JOT3LUYC-C_KEbscf.js +2249 -0
- package/dist/{c4Diagram-VJAJSXHY-DKSU0_Zg.js → c4Diagram-VJAJSXHY-B7trZ6_H.js} +401 -400
- package/dist/{channel-DMiLp-mI.js → channel-CwUzkjN9.js} +1 -1
- package/dist/chunk-4BMEZGHF-C4_0qa8X.js +9 -0
- package/dist/chunk-A2AXSNBT-DApfdN4z.js +1373 -0
- package/dist/chunk-AEK57VVT-D_rUaIu3.js +1416 -0
- package/dist/{chunk-D6G4REZN-BZV3ukOi.js → chunk-D6G4REZN-BJurAONC.js} +2 -2
- package/dist/{chunk-RZ5BOZE2-B4rOVQD8.js → chunk-RZ5BOZE2-ChOs68Hz.js} +8 -8
- package/dist/chunk-XZIHB7SX-CGbScEEe.js +16 -0
- package/dist/{classDiagram-GIVACNV2-DLRT4_A4.js → classDiagram-GIVACNV2-CqVjeibK.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DLRT4_A4.js → classDiagram-v2-COTLJTTW-CqVjeibK.js} +2 -2
- package/dist/clojure-CCKyeQKf.js +2 -2
- package/dist/{clone-CPwu6xRn.js → clone-BPHB9gtw.js} +1 -1
- package/dist/css-bIlmDBTK.js +19 -19
- package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
- package/dist/dagre-OKDRZEBW-EJUR9APO.js +447 -0
- package/dist/{data-editor-CYvUeKhw.js → data-editor-CvujN_l-.js} +5785 -5795
- package/dist/{diagram-SSKATNLV-D8WhiY2q.js → diagram-SSKATNLV-Bs-Zy3OO.js} +13 -13
- package/dist/{diagram-VNBRO52H-Bil9sOsr.js → diagram-VNBRO52H-rhV7IJ0T.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-J-Jm-DD7.js → erDiagram-Q7BY3M3F-DwuCpdOL.js} +263 -262
- package/dist/flowDiagram-4HSFHLVR-CpbGvx3R.js +1623 -0
- package/dist/{ganttDiagram-APWFNJXF-C2G0-fOq.js → ganttDiagram-APWFNJXF-B9ih7Ggj.js} +45 -45
- package/dist/gitGraphDiagram-7IBYFJ6S-tTFS2NlF.js +712 -0
- package/dist/{graph-BFerxzEi.js → graph-DiSBbvS5.js} +9 -9
- package/dist/{index-DfpR00QG.js → index-BZo5-DOE.js} +99 -98
- package/dist/{index-j8M50mVa.js → index-CmU7bpCv.js} +4 -4
- package/dist/{index-DkuVwdVm.js → index-KrnLhU30.js} +9 -9
- package/dist/{index-BhtvwOag.js → index-TeAlNqJE.js} +28 -28
- package/dist/{infoDiagram-PH2N3AL5-AYtb1_Lz.js → infoDiagram-PH2N3AL5-COt3b362.js} +3 -3
- package/dist/javascript-WMWNx-Vj.js +47 -47
- package/dist/{journeyDiagram-U35MCT3I-Bdz9gIBI.js → journeyDiagram-U35MCT3I-Civ2cUVg.js} +18 -18
- package/dist/kanban-definition-NDS4AKOZ-QxhTc8lo.js +719 -0
- package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
- package/dist/{layout-Qs-BVu8V.js → layout-B0SQ1LdD.js} +27 -27
- package/dist/{linear-SIbCb7yI.js → linear-Bn_UtFyT.js} +2 -2
- package/dist/main-ClxYr2BI.js +169878 -0
- package/dist/main.js +1 -1
- package/dist/mermaid-M3c3q4Qd.js +14517 -0
- package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
- package/dist/{min-BTA1UVkn.js → min-C0Jzc_ko.js} +2 -2
- package/dist/{mindmap-definition-ALO5MXBD-CdrD5BzZ.js → mindmap-definition-ALO5MXBD-BW8IbhiG.js} +359 -359
- package/dist/mllike-BSnXJBGA.js +7 -7
- package/dist/{pieDiagram-IB7DONF6-BbbxWeqU.js → pieDiagram-IB7DONF6-DIa7m5Au.js} +34 -34
- package/dist/pug-BqUR2bBq.js +35 -35
- package/dist/python-B5QdSKoL.js +18 -18
- package/dist/quadrantDiagram-7GDLP6J5-D1HtkiJK.js +1025 -0
- package/dist/{radar-MK3ICKWK-Z5R0bt0z.js → radar-MK3ICKWK-Dm3jRuoE.js} +2555 -2554
- package/dist/{react-plotly-DqDxe4Uh.js → react-plotly-CJ3A7ju0.js} +6595 -6597
- package/dist/{requirementDiagram-KVF5MWMF-DMnvzAxX.js → requirementDiagram-KVF5MWMF-b-q1aUEu.js} +251 -250
- package/dist/rpm-IznJm2Xc.js +9 -9
- package/dist/{sankeyDiagram-QLVOVGJD-DbUWg3a4.js → sankeyDiagram-QLVOVGJD-Bo4y0LBQ.js} +339 -338
- package/dist/{sequenceDiagram-X6HHIX6F-JltcBwLF.js → sequenceDiagram-X6HHIX6F-DMq4wla5.js} +822 -821
- package/dist/{slides-component-DVr5mf9p.js → slides-component-Cyh202Vq.js} +280 -280
- package/dist/sql-mMre1Bo3.js +9 -9
- package/dist/{stateDiagram-DGXRK772-qbXtyoS6.js → stateDiagram-DGXRK772-D_y0WAcv.js} +17 -17
- package/dist/{stateDiagram-v2-YXO3MK2T-Ba7q5pMK.js → stateDiagram-v2-YXO3MK2T-CHK5LNw7.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DHD8Fix8.js → time-YVQKuiUR.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-q4gOCBRq.js → timeline-definition-BDJGKUSR-DH63_P4w.js} +261 -261
- package/dist/timer-BYwnU4DF.js +378 -378
- package/dist/ttcn-cfg-Bac_acMi.js +9 -9
- package/dist/{vega-component-D2NZFVvw.js → vega-component-CUFBFMjm.js} +82 -82
- package/dist/{xychartDiagram-VJFVF3MP-BZs9xPvU.js → xychartDiagram-VJFVF3MP-3NU7tduZ.js} +472 -471
- package/package.json +1 -1
- package/dist/blockDiagram-JOT3LUYC-COVagShg.js +0 -2248
- package/dist/chunk-4BMEZGHF-CeMSohVe.js +0 -9
- package/dist/chunk-A2AXSNBT-mQ3fXQfx.js +0 -1372
- package/dist/chunk-AEK57VVT-B7kw2yt6.js +0 -1415
- package/dist/chunk-XZIHB7SX-C3-5SkZh.js +0 -15
- package/dist/dagre-OKDRZEBW-yEQf6TwX.js +0 -447
- package/dist/flowDiagram-4HSFHLVR-Dhymtq1g.js +0 -1622
- package/dist/gitGraphDiagram-7IBYFJ6S-DCZAwPro.js +0 -712
- package/dist/kanban-definition-NDS4AKOZ-ByLpDX9Y.js +0 -719
- package/dist/main-Cx3zrED9.js +0 -156521
- package/dist/mermaid-DAi_EtLa.js +0 -11991
- package/dist/quadrantDiagram-7GDLP6J5-1UQgbW9Z.js +0 -1024
package/dist/{timeline-definition-BDJGKUSR-q4gOCBRq.js → timeline-definition-BDJGKUSR-DH63_P4w.js}
RENAMED
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
import { _ as s, c as xt, l as
|
|
1
|
+
import { _ as s, c as xt, l as E, d as j, T as kt, V as vt, W as _t, X as bt, D as wt, Y as St, z as Et } from "./mermaid-M3c3q4Qd.js";
|
|
2
2
|
import { d as nt } from "./arc-BXrety1g.js";
|
|
3
|
-
var
|
|
4
|
-
var n = /* @__PURE__ */ s(function(
|
|
5
|
-
for (a = a || {},
|
|
3
|
+
var Q = function() {
|
|
4
|
+
var n = /* @__PURE__ */ s(function(x, i, a, c) {
|
|
5
|
+
for (a = a || {}, c = x.length; c--; a[x[c]] = i) ;
|
|
6
6
|
return a;
|
|
7
|
-
}, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], r = [1, 11],
|
|
7
|
+
}, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], r = [1, 11], d = [1, 12], h = [1, 13], f = [1, 16], m = [1, 17], u = {
|
|
8
8
|
trace: /* @__PURE__ */ s(function() {
|
|
9
9
|
}, "trace"),
|
|
10
10
|
yy: {},
|
|
11
11
|
symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
|
|
12
12
|
terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
|
|
13
13
|
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
|
|
14
|
-
performAction: /* @__PURE__ */ s(function(i, a,
|
|
15
|
-
var
|
|
14
|
+
performAction: /* @__PURE__ */ s(function(i, a, c, p, y, o, w) {
|
|
15
|
+
var v = o.length - 1;
|
|
16
16
|
switch (y) {
|
|
17
17
|
case 1:
|
|
18
|
-
return o[
|
|
18
|
+
return o[v - 1];
|
|
19
19
|
case 2:
|
|
20
20
|
this.$ = [];
|
|
21
21
|
break;
|
|
22
22
|
case 3:
|
|
23
|
-
o[
|
|
23
|
+
o[v - 1].push(o[v]), this.$ = o[v - 1];
|
|
24
24
|
break;
|
|
25
25
|
case 4:
|
|
26
26
|
case 5:
|
|
27
|
-
this.$ = o[
|
|
27
|
+
this.$ = o[v];
|
|
28
28
|
break;
|
|
29
29
|
case 6:
|
|
30
30
|
case 7:
|
|
31
31
|
this.$ = [];
|
|
32
32
|
break;
|
|
33
33
|
case 8:
|
|
34
|
-
|
|
34
|
+
p.getCommonDb().setDiagramTitle(o[v].substr(6)), this.$ = o[v].substr(6);
|
|
35
35
|
break;
|
|
36
36
|
case 9:
|
|
37
|
-
this.$ = o[
|
|
37
|
+
this.$ = o[v].trim(), p.getCommonDb().setAccTitle(this.$);
|
|
38
38
|
break;
|
|
39
39
|
case 10:
|
|
40
40
|
case 11:
|
|
41
|
-
this.$ = o[
|
|
41
|
+
this.$ = o[v].trim(), p.getCommonDb().setAccDescription(this.$);
|
|
42
42
|
break;
|
|
43
43
|
case 12:
|
|
44
|
-
|
|
44
|
+
p.addSection(o[v].substr(8)), this.$ = o[v].substr(8);
|
|
45
45
|
break;
|
|
46
46
|
case 15:
|
|
47
|
-
|
|
47
|
+
p.addTask(o[v], 0, ""), this.$ = o[v];
|
|
48
48
|
break;
|
|
49
49
|
case 16:
|
|
50
|
-
|
|
50
|
+
p.addEvent(o[v].substr(2)), this.$ = o[v];
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
}, "anonymous"),
|
|
54
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: r, 16:
|
|
54
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: r, 16: d, 17: h, 18: 14, 19: 15, 20: f, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: r, 16: d, 17: h, 18: 14, 19: 15, 20: f, 21: m }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
|
|
55
55
|
defaultActions: {},
|
|
56
56
|
parseError: /* @__PURE__ */ s(function(i, a) {
|
|
57
57
|
if (a.recoverable)
|
|
58
58
|
this.trace(i);
|
|
59
59
|
else {
|
|
60
|
-
var
|
|
61
|
-
throw
|
|
60
|
+
var c = new Error(i);
|
|
61
|
+
throw c.hash = a, c;
|
|
62
62
|
}
|
|
63
63
|
}, "parseError"),
|
|
64
64
|
parse: /* @__PURE__ */ s(function(i) {
|
|
65
|
-
var a = this,
|
|
66
|
-
for (var
|
|
67
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
68
|
-
|
|
69
|
-
var
|
|
70
|
-
o.push(
|
|
71
|
-
var
|
|
72
|
-
typeof
|
|
73
|
-
function
|
|
74
|
-
|
|
65
|
+
var a = this, c = [0], p = [], y = [null], o = [], w = this.table, v = "", N = 0, A = 0, V = 2, U = 1, $ = o.slice.call(arguments, 1), g = Object.create(this.lexer), b = { yy: {} };
|
|
66
|
+
for (var L in this.yy)
|
|
67
|
+
Object.prototype.hasOwnProperty.call(this.yy, L) && (b.yy[L] = this.yy[L]);
|
|
68
|
+
g.setInput(i, b.yy), b.yy.lexer = g, b.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
|
|
69
|
+
var P = g.yylloc;
|
|
70
|
+
o.push(P);
|
|
71
|
+
var W = g.options && g.options.ranges;
|
|
72
|
+
typeof b.yy.parseError == "function" ? this.parseError = b.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
73
|
+
function Z(T) {
|
|
74
|
+
c.length = c.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
|
|
75
75
|
}
|
|
76
|
-
s(
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
return
|
|
76
|
+
s(Z, "popStack");
|
|
77
|
+
function tt() {
|
|
78
|
+
var T;
|
|
79
|
+
return T = p.pop() || g.lex() || U, typeof T != "number" && (T instanceof Array && (p = T, T = p.pop()), T = a.symbols_[T] || T), T;
|
|
80
80
|
}
|
|
81
|
-
s(
|
|
82
|
-
for (var
|
|
83
|
-
if (C =
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
-
for (
|
|
87
|
-
this.terminals_[
|
|
88
|
-
|
|
89
|
-
` +
|
|
90
|
-
Expecting ` +
|
|
91
|
-
text:
|
|
92
|
-
token: this.terminals_[
|
|
93
|
-
line:
|
|
94
|
-
loc:
|
|
95
|
-
expected:
|
|
81
|
+
s(tt, "lex");
|
|
82
|
+
for (var S, C, I, J, R = {}, B, M, et, O; ; ) {
|
|
83
|
+
if (C = c[c.length - 1], this.defaultActions[C] ? I = this.defaultActions[C] : ((S === null || typeof S > "u") && (S = tt()), I = w[C] && w[C][S]), typeof I > "u" || !I.length || !I[0]) {
|
|
84
|
+
var K = "";
|
|
85
|
+
O = [];
|
|
86
|
+
for (B in w[C])
|
|
87
|
+
this.terminals_[B] && B > V && O.push("'" + this.terminals_[B] + "'");
|
|
88
|
+
g.showPosition ? K = "Parse error on line " + (N + 1) + `:
|
|
89
|
+
` + g.showPosition() + `
|
|
90
|
+
Expecting ` + O.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : K = "Parse error on line " + (N + 1) + ": Unexpected " + (S == U ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(K, {
|
|
91
|
+
text: g.match,
|
|
92
|
+
token: this.terminals_[S] || S,
|
|
93
|
+
line: g.yylineno,
|
|
94
|
+
loc: P,
|
|
95
|
+
expected: O
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
if (
|
|
99
|
-
throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " +
|
|
100
|
-
switch (
|
|
98
|
+
if (I[0] instanceof Array && I.length > 1)
|
|
99
|
+
throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " + S);
|
|
100
|
+
switch (I[0]) {
|
|
101
101
|
case 1:
|
|
102
|
-
|
|
102
|
+
c.push(S), y.push(g.yytext), o.push(g.yylloc), c.push(I[1]), S = null, A = g.yyleng, v = g.yytext, N = g.yylineno, P = g.yylloc;
|
|
103
103
|
break;
|
|
104
104
|
case 2:
|
|
105
|
-
if (
|
|
106
|
-
first_line: o[o.length - (
|
|
105
|
+
if (M = this.productions_[I[1]][1], R.$ = y[y.length - M], R._$ = {
|
|
106
|
+
first_line: o[o.length - (M || 1)].first_line,
|
|
107
107
|
last_line: o[o.length - 1].last_line,
|
|
108
|
-
first_column: o[o.length - (
|
|
108
|
+
first_column: o[o.length - (M || 1)].first_column,
|
|
109
109
|
last_column: o[o.length - 1].last_column
|
|
110
|
-
},
|
|
111
|
-
o[o.length - (
|
|
110
|
+
}, W && (R._$.range = [
|
|
111
|
+
o[o.length - (M || 1)].range[0],
|
|
112
112
|
o[o.length - 1].range[1]
|
|
113
|
-
]),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
113
|
+
]), J = this.performAction.apply(R, [
|
|
114
|
+
v,
|
|
115
|
+
A,
|
|
116
|
+
N,
|
|
117
|
+
b.yy,
|
|
118
|
+
I[1],
|
|
119
119
|
y,
|
|
120
120
|
o
|
|
121
|
-
].concat(
|
|
122
|
-
return
|
|
123
|
-
|
|
121
|
+
].concat($)), typeof J < "u")
|
|
122
|
+
return J;
|
|
123
|
+
M && (c = c.slice(0, -1 * M * 2), y = y.slice(0, -1 * M), o = o.slice(0, -1 * M)), c.push(this.productions_[I[1]][0]), y.push(R.$), o.push(R._$), et = w[c[c.length - 2]][c[c.length - 1]], c.push(et);
|
|
124
124
|
break;
|
|
125
125
|
case 3:
|
|
126
|
-
return
|
|
126
|
+
return true;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
return
|
|
129
|
+
return true;
|
|
130
130
|
}, "parse")
|
|
131
|
-
},
|
|
132
|
-
var
|
|
131
|
+
}, k = /* @__PURE__ */ function() {
|
|
132
|
+
var x = {
|
|
133
133
|
EOF: 1,
|
|
134
|
-
parseError: /* @__PURE__ */ s(function(a,
|
|
134
|
+
parseError: /* @__PURE__ */ s(function(a, c) {
|
|
135
135
|
if (this.yy.parser)
|
|
136
|
-
this.yy.parser.parseError(a,
|
|
136
|
+
this.yy.parser.parseError(a, c);
|
|
137
137
|
else
|
|
138
138
|
throw new Error(a);
|
|
139
139
|
}, "parseError"),
|
|
140
140
|
// resets the lexer, sets new input
|
|
141
141
|
setInput: /* @__PURE__ */ s(function(i, a) {
|
|
142
|
-
return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done =
|
|
142
|
+
return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
143
143
|
first_line: 1,
|
|
144
144
|
first_column: 0,
|
|
145
145
|
last_line: 1,
|
|
@@ -155,26 +155,26 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
155
155
|
}, "input"),
|
|
156
156
|
// unshifts one char (or a string) into the input
|
|
157
157
|
unput: /* @__PURE__ */ s(function(i) {
|
|
158
|
-
var a = i.length,
|
|
158
|
+
var a = i.length, c = i.split(/(?:\r\n?|\n)/g);
|
|
159
159
|
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
160
|
-
var
|
|
161
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
160
|
+
var p = this.match.split(/(?:\r\n?|\n)/g);
|
|
161
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
|
|
162
162
|
var y = this.yylloc.range;
|
|
163
163
|
return this.yylloc = {
|
|
164
164
|
first_line: this.yylloc.first_line,
|
|
165
165
|
last_line: this.yylineno + 1,
|
|
166
166
|
first_column: this.yylloc.first_column,
|
|
167
|
-
last_column:
|
|
167
|
+
last_column: c ? (c.length === p.length ? this.yylloc.first_column : 0) + p[p.length - c.length].length - c[0].length : this.yylloc.first_column - a
|
|
168
168
|
}, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
169
169
|
}, "unput"),
|
|
170
170
|
// When called from action, caches matched text and appends it on next action
|
|
171
171
|
more: /* @__PURE__ */ s(function() {
|
|
172
|
-
return this._more =
|
|
172
|
+
return this._more = true, this;
|
|
173
173
|
}, "more"),
|
|
174
174
|
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
175
175
|
reject: /* @__PURE__ */ s(function() {
|
|
176
176
|
if (this.options.backtrack_lexer)
|
|
177
|
-
this._backtrack =
|
|
177
|
+
this._backtrack = true;
|
|
178
178
|
else
|
|
179
179
|
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
180
180
|
` + this.showPosition(), {
|
|
@@ -206,7 +206,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
206
206
|
}, "showPosition"),
|
|
207
207
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
208
208
|
test_match: /* @__PURE__ */ s(function(i, a) {
|
|
209
|
-
var
|
|
209
|
+
var c, p, y;
|
|
210
210
|
if (this.options.backtrack_lexer && (y = {
|
|
211
211
|
yylineno: this.yylineno,
|
|
212
212
|
yylloc: {
|
|
@@ -226,41 +226,41 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
226
226
|
yy: this.yy,
|
|
227
227
|
conditionStack: this.conditionStack.slice(0),
|
|
228
228
|
done: this.done
|
|
229
|
-
}, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))),
|
|
229
|
+
}, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), p = i[0].match(/(?:\r\n?|\n).*/g), p && (this.yylineno += p.length), this.yylloc = {
|
|
230
230
|
first_line: this.yylloc.last_line,
|
|
231
231
|
last_line: this.yylineno + 1,
|
|
232
232
|
first_column: this.yylloc.last_column,
|
|
233
|
-
last_column:
|
|
234
|
-
}, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more =
|
|
235
|
-
return
|
|
233
|
+
last_column: p ? p[p.length - 1].length - p[p.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
234
|
+
}, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(i[0].length), this.matched += i[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), c)
|
|
235
|
+
return c;
|
|
236
236
|
if (this._backtrack) {
|
|
237
237
|
for (var o in y)
|
|
238
238
|
this[o] = y[o];
|
|
239
|
-
return
|
|
239
|
+
return false;
|
|
240
240
|
}
|
|
241
|
-
return
|
|
241
|
+
return false;
|
|
242
242
|
}, "test_match"),
|
|
243
243
|
// return next match in input
|
|
244
244
|
next: /* @__PURE__ */ s(function() {
|
|
245
245
|
if (this.done)
|
|
246
246
|
return this.EOF;
|
|
247
|
-
this._input || (this.done =
|
|
248
|
-
var i, a,
|
|
247
|
+
this._input || (this.done = true);
|
|
248
|
+
var i, a, c, p;
|
|
249
249
|
this._more || (this.yytext = "", this.match = "");
|
|
250
250
|
for (var y = this._currentRules(), o = 0; o < y.length; o++)
|
|
251
|
-
if (
|
|
252
|
-
if (a =
|
|
253
|
-
if (i = this.test_match(
|
|
251
|
+
if (c = this._input.match(this.rules[y[o]]), c && (!a || c[0].length > a[0].length)) {
|
|
252
|
+
if (a = c, p = o, this.options.backtrack_lexer) {
|
|
253
|
+
if (i = this.test_match(c, y[o]), i !== false)
|
|
254
254
|
return i;
|
|
255
255
|
if (this._backtrack) {
|
|
256
|
-
a =
|
|
256
|
+
a = false;
|
|
257
257
|
continue;
|
|
258
258
|
} else
|
|
259
|
-
return
|
|
259
|
+
return false;
|
|
260
260
|
} else if (!this.options.flex)
|
|
261
261
|
break;
|
|
262
262
|
}
|
|
263
|
-
return a ? (i = this.test_match(a, y[
|
|
263
|
+
return a ? (i = this.test_match(a, y[p]), i !== false ? i : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
264
264
|
` + this.showPosition(), {
|
|
265
265
|
text: "",
|
|
266
266
|
token: null,
|
|
@@ -297,9 +297,9 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
297
297
|
stateStackSize: /* @__PURE__ */ s(function() {
|
|
298
298
|
return this.conditionStack.length;
|
|
299
299
|
}, "stateStackSize"),
|
|
300
|
-
options: { "case-insensitive":
|
|
301
|
-
performAction: /* @__PURE__ */ s(function(a,
|
|
302
|
-
switch (
|
|
300
|
+
options: { "case-insensitive": true },
|
|
301
|
+
performAction: /* @__PURE__ */ s(function(a, c, p, y) {
|
|
302
|
+
switch (p) {
|
|
303
303
|
case 0:
|
|
304
304
|
break;
|
|
305
305
|
case 1:
|
|
@@ -343,18 +343,18 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
|
|
|
343
343
|
}
|
|
344
344
|
}, "anonymous"),
|
|
345
345
|
rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s[^:\n]+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
|
|
346
|
-
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive:
|
|
346
|
+
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: false }, acc_descr: { rules: [10], inclusive: false }, acc_title: { rules: [8], inclusive: false }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: true } }
|
|
347
347
|
};
|
|
348
|
-
return
|
|
348
|
+
return x;
|
|
349
349
|
}();
|
|
350
|
-
|
|
350
|
+
u.lexer = k;
|
|
351
351
|
function _() {
|
|
352
352
|
this.yy = {};
|
|
353
353
|
}
|
|
354
|
-
return s(_, "Parser"), _.prototype =
|
|
354
|
+
return s(_, "Parser"), _.prototype = u, u.Parser = _, new _();
|
|
355
355
|
}();
|
|
356
|
-
|
|
357
|
-
var Tt =
|
|
356
|
+
Q.parser = Q;
|
|
357
|
+
var Tt = Q, at = {};
|
|
358
358
|
wt(at, {
|
|
359
359
|
addEvent: () => yt,
|
|
360
360
|
addSection: () => ht,
|
|
@@ -366,47 +366,47 @@ wt(at, {
|
|
|
366
366
|
getSections: () => dt,
|
|
367
367
|
getTasks: () => ut
|
|
368
368
|
});
|
|
369
|
-
var
|
|
370
|
-
|
|
369
|
+
var z = "", lt = 0, X = [], G = [], F = [], ot = /* @__PURE__ */ s(() => St, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
|
|
370
|
+
X.length = 0, G.length = 0, z = "", F.length = 0, Et();
|
|
371
371
|
}, "clear"), ht = /* @__PURE__ */ s(function(n) {
|
|
372
|
-
|
|
372
|
+
z = n, X.push(n);
|
|
373
373
|
}, "addSection"), dt = /* @__PURE__ */ s(function() {
|
|
374
|
-
return
|
|
374
|
+
return X;
|
|
375
375
|
}, "getSections"), ut = /* @__PURE__ */ s(function() {
|
|
376
376
|
let n = rt();
|
|
377
377
|
const t = 100;
|
|
378
378
|
let e = 0;
|
|
379
379
|
for (; !n && e < t; )
|
|
380
380
|
n = rt(), e++;
|
|
381
|
-
return
|
|
381
|
+
return G.push(...F), G;
|
|
382
382
|
}, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
|
|
383
383
|
const l = {
|
|
384
384
|
id: lt++,
|
|
385
|
-
section:
|
|
386
|
-
type:
|
|
385
|
+
section: z,
|
|
386
|
+
type: z,
|
|
387
387
|
task: n,
|
|
388
388
|
score: t || 0,
|
|
389
389
|
//if event is defined, then add it the events array
|
|
390
390
|
events: e ? [e] : []
|
|
391
391
|
};
|
|
392
|
-
|
|
392
|
+
F.push(l);
|
|
393
393
|
}, "addTask"), yt = /* @__PURE__ */ s(function(n) {
|
|
394
|
-
|
|
394
|
+
F.find((e) => e.id === lt - 1).events.push(n);
|
|
395
395
|
}, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
|
|
396
396
|
const t = {
|
|
397
|
-
section:
|
|
398
|
-
type:
|
|
397
|
+
section: z,
|
|
398
|
+
type: z,
|
|
399
399
|
description: n,
|
|
400
400
|
task: n,
|
|
401
401
|
classes: []
|
|
402
402
|
};
|
|
403
|
-
|
|
403
|
+
G.push(t);
|
|
404
404
|
}, "addTaskOrg"), rt = /* @__PURE__ */ s(function() {
|
|
405
405
|
const n = /* @__PURE__ */ s(function(e) {
|
|
406
|
-
return
|
|
406
|
+
return F[e].processed;
|
|
407
407
|
}, "compileTask");
|
|
408
|
-
let t =
|
|
409
|
-
for (const [e, l] of
|
|
408
|
+
let t = true;
|
|
409
|
+
for (const [e, l] of F.entries())
|
|
410
410
|
n(e), t = t && l.processed;
|
|
411
411
|
return t;
|
|
412
412
|
}, "compileTasks"), It = {
|
|
@@ -418,26 +418,26 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
418
418
|
addTask: pt,
|
|
419
419
|
addTaskOrg: gt,
|
|
420
420
|
addEvent: yt
|
|
421
|
-
}, Nt = 12,
|
|
421
|
+
}, Nt = 12, q = /* @__PURE__ */ s(function(n, t) {
|
|
422
422
|
const e = n.append("rect");
|
|
423
423
|
return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
|
|
424
424
|
}, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
|
|
425
425
|
const l = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = n.append("g");
|
|
426
426
|
r.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
427
|
-
function
|
|
428
|
-
const
|
|
429
|
-
m.append("path").attr("class", "mouth").attr("d",
|
|
427
|
+
function d(m) {
|
|
428
|
+
const u = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
429
|
+
m.append("path").attr("class", "mouth").attr("d", u).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
430
430
|
}
|
|
431
|
-
s(
|
|
432
|
-
function
|
|
433
|
-
const
|
|
434
|
-
m.append("path").attr("class", "mouth").attr("d",
|
|
431
|
+
s(d, "smile");
|
|
432
|
+
function h(m) {
|
|
433
|
+
const u = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
434
|
+
m.append("path").attr("class", "mouth").attr("d", u).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
435
435
|
}
|
|
436
|
-
s(
|
|
437
|
-
function
|
|
436
|
+
s(h, "sad");
|
|
437
|
+
function f(m) {
|
|
438
438
|
m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
439
439
|
}
|
|
440
|
-
return s(
|
|
440
|
+
return s(f, "ambivalent"), t.score > 3 ? d(r) : t.score < 3 ? h(r) : f(r), l;
|
|
441
441
|
}, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
|
|
442
442
|
const e = n.append("circle");
|
|
443
443
|
return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
|
|
@@ -447,15 +447,15 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
447
447
|
const r = l.append("tspan");
|
|
448
448
|
return r.attr("x", t.x + t.textMargin * 2), r.text(e), l;
|
|
449
449
|
}, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
|
|
450
|
-
function e(r,
|
|
451
|
-
return r + "," +
|
|
450
|
+
function e(r, d, h, f, m) {
|
|
451
|
+
return r + "," + d + " " + (r + h) + "," + d + " " + (r + h) + "," + (d + f - m) + " " + (r + h - m * 1.2) + "," + (d + f) + " " + r + "," + (d + f);
|
|
452
452
|
}
|
|
453
453
|
s(e, "genPoints");
|
|
454
454
|
const l = n.append("polygon");
|
|
455
455
|
l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
|
|
456
456
|
}, "drawLabel"), Pt = /* @__PURE__ */ s(function(n, t, e) {
|
|
457
|
-
const l = n.append("g"), r =
|
|
458
|
-
r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = e.width, r.height = e.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3,
|
|
457
|
+
const l = n.append("g"), r = Y();
|
|
458
|
+
r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = e.width, r.height = e.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, q(l, r), mt(e)(
|
|
459
459
|
t.text,
|
|
460
460
|
l,
|
|
461
461
|
r.x,
|
|
@@ -469,26 +469,26 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
469
469
|
}, "drawSection"), it = -1, At = /* @__PURE__ */ s(function(n, t, e) {
|
|
470
470
|
const l = t.x + e.width / 2, r = n.append("g");
|
|
471
471
|
it++;
|
|
472
|
-
const
|
|
473
|
-
r.append("line").attr("id", "task" + it).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2",
|
|
472
|
+
const d = 300 + 5 * 30;
|
|
473
|
+
r.append("line").attr("id", "task" + it).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", d).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(r, {
|
|
474
474
|
cx: l,
|
|
475
475
|
cy: 300 + (5 - t.score) * 30,
|
|
476
476
|
score: t.score
|
|
477
477
|
});
|
|
478
|
-
const
|
|
479
|
-
|
|
478
|
+
const h = Y();
|
|
479
|
+
h.x = t.x, h.y = t.y, h.fill = t.fill, h.width = e.width, h.height = e.height, h.class = "task task-type-" + t.num, h.rx = 3, h.ry = 3, q(r, h), mt(e)(
|
|
480
480
|
t.task,
|
|
481
481
|
r,
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
482
|
+
h.x,
|
|
483
|
+
h.y,
|
|
484
|
+
h.width,
|
|
485
|
+
h.height,
|
|
486
486
|
{ class: "task" },
|
|
487
487
|
e,
|
|
488
488
|
t.colour
|
|
489
489
|
);
|
|
490
490
|
}, "drawTask"), Ct = /* @__PURE__ */ s(function(n, t) {
|
|
491
|
-
|
|
491
|
+
q(n, {
|
|
492
492
|
x: t.startx,
|
|
493
493
|
y: t.starty,
|
|
494
494
|
width: t.stopx - t.startx,
|
|
@@ -508,7 +508,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
508
508
|
rx: 0,
|
|
509
509
|
ry: 0
|
|
510
510
|
};
|
|
511
|
-
}, "getTextObj"),
|
|
511
|
+
}, "getTextObj"), Y = /* @__PURE__ */ s(function() {
|
|
512
512
|
return {
|
|
513
513
|
x: 0,
|
|
514
514
|
y: 0,
|
|
@@ -519,27 +519,27 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
519
519
|
ry: 0
|
|
520
520
|
};
|
|
521
521
|
}, "getNoteRect"), mt = /* @__PURE__ */ function() {
|
|
522
|
-
function n(r,
|
|
523
|
-
const
|
|
524
|
-
l(
|
|
522
|
+
function n(r, d, h, f, m, u, k, _) {
|
|
523
|
+
const x = d.append("text").attr("x", h + m / 2).attr("y", f + u / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(r);
|
|
524
|
+
l(x, k);
|
|
525
525
|
}
|
|
526
526
|
s(n, "byText");
|
|
527
|
-
function t(r,
|
|
528
|
-
const { taskFontSize: i, taskFontFamily: a } = _,
|
|
529
|
-
for (let
|
|
530
|
-
const y =
|
|
531
|
-
o.append("tspan").attr("x",
|
|
527
|
+
function t(r, d, h, f, m, u, k, _, x) {
|
|
528
|
+
const { taskFontSize: i, taskFontFamily: a } = _, c = r.split(/<br\s*\/?>/gi);
|
|
529
|
+
for (let p = 0; p < c.length; p++) {
|
|
530
|
+
const y = p * i - i * (c.length - 1) / 2, o = d.append("text").attr("x", h + m / 2).attr("y", f).attr("fill", x).style("text-anchor", "middle").style("font-size", i).style("font-family", a);
|
|
531
|
+
o.append("tspan").attr("x", h + m / 2).attr("dy", y).text(c[p]), o.attr("y", f + u / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, k);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
s(t, "byTspan");
|
|
535
|
-
function e(r,
|
|
536
|
-
const
|
|
537
|
-
a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r,
|
|
535
|
+
function e(r, d, h, f, m, u, k, _) {
|
|
536
|
+
const x = d.append("switch"), a = x.append("foreignObject").attr("x", h).attr("y", f).attr("width", m).attr("height", u).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
537
|
+
a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, x, h, f, m, u, k, _), l(a, k);
|
|
538
538
|
}
|
|
539
539
|
s(e, "byFo");
|
|
540
|
-
function l(r,
|
|
541
|
-
for (const
|
|
542
|
-
|
|
540
|
+
function l(r, d) {
|
|
541
|
+
for (const h in d)
|
|
542
|
+
h in d && r.attr(h, d[h]);
|
|
543
543
|
}
|
|
544
544
|
return s(l, "_setTextAttrs"), function(r) {
|
|
545
545
|
return r.textPlacement === "fo" ? e : r.textPlacement === "old" ? n : t;
|
|
@@ -547,34 +547,34 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
|
|
|
547
547
|
}(), Rt = /* @__PURE__ */ s(function(n) {
|
|
548
548
|
n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
|
|
549
549
|
}, "initGraphics");
|
|
550
|
-
function
|
|
550
|
+
function D(n, t) {
|
|
551
551
|
n.each(function() {
|
|
552
|
-
var e =
|
|
553
|
-
for (let
|
|
554
|
-
r = l[l.length - 1 -
|
|
552
|
+
var e = j(this), l = e.text().split(/(\s+|<br>)/).reverse(), r, d = [], h = 1.1, f = e.attr("y"), m = parseFloat(e.attr("dy")), u = e.text(null).append("tspan").attr("x", 0).attr("y", f).attr("dy", m + "em");
|
|
553
|
+
for (let k = 0; k < l.length; k++)
|
|
554
|
+
r = l[l.length - 1 - k], d.push(r), u.text(d.join(" ").trim()), (u.node().getComputedTextLength() > t || r === "<br>") && (d.pop(), u.text(d.join(" ").trim()), r === "<br>" ? d = [""] : d = [r], u = e.append("tspan").attr("x", 0).attr("y", f).attr("dy", h + "em").text(r));
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
|
-
s(
|
|
557
|
+
s(D, "wrap");
|
|
558
558
|
var zt = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
559
|
-
var
|
|
560
|
-
const r = e % Nt - 1,
|
|
561
|
-
t.section = r,
|
|
559
|
+
var _a;
|
|
560
|
+
const r = e % Nt - 1, d = n.append("g");
|
|
561
|
+
t.section = r, d.attr(
|
|
562
562
|
"class",
|
|
563
563
|
(t.class ? t.class + " " : "") + "timeline-node " + ("section-" + r)
|
|
564
564
|
);
|
|
565
|
-
const
|
|
566
|
-
return t.height =
|
|
565
|
+
const h = d.append("g"), f = d.append("g"), u = f.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(D, t.width).node().getBBox(), k = ((_a = l.fontSize) == null ? void 0 : _a.replace) ? l.fontSize.replace("px", "") : l.fontSize;
|
|
566
|
+
return t.height = u.height + k * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, f.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(h, t, r, l), t;
|
|
567
567
|
}, "drawNode"), Ft = /* @__PURE__ */ s(function(n, t, e) {
|
|
568
|
-
var
|
|
569
|
-
const l = n.append("g"),
|
|
570
|
-
return l.remove(),
|
|
568
|
+
var _a;
|
|
569
|
+
const l = n.append("g"), d = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(D, t.width).node().getBBox(), h = ((_a = e.fontSize) == null ? void 0 : _a.replace) ? e.fontSize.replace("px", "") : e.fontSize;
|
|
570
|
+
return l.remove(), d.height + h * 1.1 * 0.5 + t.padding;
|
|
571
571
|
}, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
|
|
572
572
|
n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
|
|
573
573
|
"d",
|
|
574
574
|
`M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
|
|
575
575
|
), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
576
576
|
}, "defaultBkg"), H = {
|
|
577
|
-
drawRect:
|
|
577
|
+
drawRect: q,
|
|
578
578
|
drawCircle: Mt,
|
|
579
579
|
drawSection: Pt,
|
|
580
580
|
drawText: ft,
|
|
@@ -582,137 +582,137 @@ var zt = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
582
582
|
drawTask: At,
|
|
583
583
|
drawBackgroundRect: Ct,
|
|
584
584
|
getTextObj: Ht,
|
|
585
|
-
getNoteRect:
|
|
585
|
+
getNoteRect: Y,
|
|
586
586
|
initGraphics: Rt,
|
|
587
587
|
drawNode: zt,
|
|
588
588
|
getVirtualNodeHeight: Ft
|
|
589
589
|
}, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
590
|
-
var
|
|
591
|
-
const r = xt(),
|
|
592
|
-
|
|
593
|
-
const
|
|
594
|
-
let
|
|
595
|
-
|
|
596
|
-
const
|
|
597
|
-
|
|
598
|
-
const
|
|
599
|
-
|
|
600
|
-
const
|
|
601
|
-
|
|
602
|
-
let i = 0, a = 0,
|
|
603
|
-
|
|
604
|
-
let
|
|
605
|
-
|
|
606
|
-
const
|
|
607
|
-
number:
|
|
608
|
-
descr:
|
|
609
|
-
section:
|
|
590
|
+
var _a, _b;
|
|
591
|
+
const r = xt(), d = r.leftMargin ?? 50;
|
|
592
|
+
E.debug("timeline", l.db);
|
|
593
|
+
const h = r.securityLevel;
|
|
594
|
+
let f;
|
|
595
|
+
h === "sandbox" && (f = j("#i" + t));
|
|
596
|
+
const u = (h === "sandbox" ? j(f.nodes()[0].contentDocument.body) : j("body")).select("#" + t);
|
|
597
|
+
u.append("g");
|
|
598
|
+
const k = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
|
|
599
|
+
E.debug("task", k), H.initGraphics(u);
|
|
600
|
+
const x = l.db.getSections();
|
|
601
|
+
E.debug("sections", x);
|
|
602
|
+
let i = 0, a = 0, c = 0, p = 0, y = 50 + d, o = 50;
|
|
603
|
+
p = 50;
|
|
604
|
+
let w = 0, v = true;
|
|
605
|
+
x.forEach(function($) {
|
|
606
|
+
const g = {
|
|
607
|
+
number: w,
|
|
608
|
+
descr: $,
|
|
609
|
+
section: w,
|
|
610
610
|
width: 150,
|
|
611
611
|
padding: 20,
|
|
612
612
|
maxHeight: i
|
|
613
|
-
},
|
|
614
|
-
|
|
613
|
+
}, b = H.getVirtualNodeHeight(u, g, r);
|
|
614
|
+
E.debug("sectionHeight before draw", b), i = Math.max(i, b + 20);
|
|
615
615
|
});
|
|
616
|
-
let
|
|
617
|
-
|
|
618
|
-
for (const [
|
|
619
|
-
const
|
|
620
|
-
number:
|
|
621
|
-
descr:
|
|
622
|
-
section:
|
|
616
|
+
let N = 0, A = 0;
|
|
617
|
+
E.debug("tasks.length", k.length);
|
|
618
|
+
for (const [$, g] of k.entries()) {
|
|
619
|
+
const b = {
|
|
620
|
+
number: $,
|
|
621
|
+
descr: g,
|
|
622
|
+
section: g.section,
|
|
623
623
|
width: 150,
|
|
624
624
|
padding: 20,
|
|
625
625
|
maxHeight: a
|
|
626
|
-
},
|
|
627
|
-
|
|
628
|
-
let
|
|
629
|
-
for (const
|
|
630
|
-
const
|
|
631
|
-
descr:
|
|
632
|
-
section:
|
|
633
|
-
number:
|
|
626
|
+
}, L = H.getVirtualNodeHeight(u, b, r);
|
|
627
|
+
E.debug("taskHeight before draw", L), a = Math.max(a, L + 20), N = Math.max(N, g.events.length);
|
|
628
|
+
let P = 0;
|
|
629
|
+
for (const W of g.events) {
|
|
630
|
+
const Z = {
|
|
631
|
+
descr: W,
|
|
632
|
+
section: g.section,
|
|
633
|
+
number: g.section,
|
|
634
634
|
width: 150,
|
|
635
635
|
padding: 20,
|
|
636
636
|
maxHeight: 50
|
|
637
637
|
};
|
|
638
|
-
|
|
638
|
+
P += H.getVirtualNodeHeight(u, Z, r);
|
|
639
639
|
}
|
|
640
|
-
|
|
640
|
+
A = Math.max(A, P);
|
|
641
641
|
}
|
|
642
|
-
|
|
643
|
-
const
|
|
644
|
-
number:
|
|
645
|
-
descr:
|
|
646
|
-
section:
|
|
647
|
-
width: 200 * Math.max(
|
|
642
|
+
E.debug("maxSectionHeight before draw", i), E.debug("maxTaskHeight before draw", a), x && x.length > 0 ? x.forEach(($) => {
|
|
643
|
+
const g = k.filter((W) => W.section === $), b = {
|
|
644
|
+
number: w,
|
|
645
|
+
descr: $,
|
|
646
|
+
section: w,
|
|
647
|
+
width: 200 * Math.max(g.length, 1) - 50,
|
|
648
648
|
padding: 20,
|
|
649
649
|
maxHeight: i
|
|
650
650
|
};
|
|
651
|
-
|
|
652
|
-
const
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
651
|
+
E.debug("sectionNode", b);
|
|
652
|
+
const L = u.append("g"), P = H.drawNode(L, b, w, r);
|
|
653
|
+
E.debug("sectionNode output", P), L.attr("transform", `translate(${y}, ${p})`), o += i + 50, g.length > 0 && st(
|
|
654
|
+
u,
|
|
655
|
+
g,
|
|
656
|
+
w,
|
|
657
657
|
y,
|
|
658
658
|
o,
|
|
659
659
|
a,
|
|
660
660
|
r,
|
|
661
|
-
|
|
662
|
-
|
|
661
|
+
N,
|
|
662
|
+
A,
|
|
663
663
|
i,
|
|
664
|
-
|
|
665
|
-
), y += 200 * Math.max(
|
|
666
|
-
}) : (
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
664
|
+
false
|
|
665
|
+
), y += 200 * Math.max(g.length, 1), o = p, w++;
|
|
666
|
+
}) : (v = false, st(
|
|
667
|
+
u,
|
|
668
|
+
k,
|
|
669
|
+
w,
|
|
670
670
|
y,
|
|
671
671
|
o,
|
|
672
672
|
a,
|
|
673
673
|
r,
|
|
674
|
-
|
|
675
|
-
|
|
674
|
+
N,
|
|
675
|
+
A,
|
|
676
676
|
i,
|
|
677
|
-
|
|
677
|
+
true
|
|
678
678
|
));
|
|
679
|
-
const
|
|
680
|
-
|
|
679
|
+
const V = u.node().getBBox();
|
|
680
|
+
E.debug("bounds", V), _ && u.append("text").text(_).attr("x", V.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), c = v ? i + a + 150 : a + 100, u.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", c).attr("x2", V.width + 3 * d).attr("y2", c).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), kt(
|
|
681
681
|
void 0,
|
|
682
|
-
|
|
683
|
-
((
|
|
684
|
-
((
|
|
682
|
+
u,
|
|
683
|
+
((_a = r.timeline) == null ? void 0 : _a.padding) ?? 50,
|
|
684
|
+
((_b = r.timeline) == null ? void 0 : _b.useMaxWidth) ?? false
|
|
685
685
|
);
|
|
686
|
-
}, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, r,
|
|
687
|
-
var
|
|
688
|
-
for (const
|
|
689
|
-
const
|
|
690
|
-
descr:
|
|
686
|
+
}, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, r, d, h, f, m, u, k) {
|
|
687
|
+
var _a;
|
|
688
|
+
for (const _ of t) {
|
|
689
|
+
const x = {
|
|
690
|
+
descr: _.task,
|
|
691
691
|
section: e,
|
|
692
692
|
number: e,
|
|
693
693
|
width: 150,
|
|
694
694
|
padding: 20,
|
|
695
|
-
maxHeight:
|
|
695
|
+
maxHeight: d
|
|
696
696
|
};
|
|
697
|
-
|
|
698
|
-
const
|
|
699
|
-
if (
|
|
700
|
-
const
|
|
701
|
-
let
|
|
702
|
-
r += 100,
|
|
697
|
+
E.debug("taskNode", x);
|
|
698
|
+
const i = n.append("g").attr("class", "taskWrapper"), c = H.drawNode(i, x, e, h).height;
|
|
699
|
+
if (E.debug("taskHeight after draw", c), i.attr("transform", `translate(${l}, ${r})`), d = Math.max(d, c), _.events) {
|
|
700
|
+
const p = n.append("g").attr("class", "lineWrapper");
|
|
701
|
+
let y = d;
|
|
702
|
+
r += 100, y = y + Bt(n, _.events, e, l, r, h), r -= 100, p.append("line").attr("x1", l + 190 / 2).attr("y1", r + d).attr("x2", l + 190 / 2).attr(
|
|
703
703
|
"y2",
|
|
704
|
-
r +
|
|
704
|
+
r + d + (k ? d : u) + m + 120
|
|
705
705
|
).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
706
706
|
}
|
|
707
|
-
l = l + 200,
|
|
707
|
+
l = l + 200, k && !((_a = h.timeline) == null ? void 0 : _a.disableMulticolor) && e++;
|
|
708
708
|
}
|
|
709
709
|
r = r - 10;
|
|
710
|
-
}, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, r,
|
|
711
|
-
let
|
|
712
|
-
const
|
|
710
|
+
}, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, r, d) {
|
|
711
|
+
let h = 0;
|
|
712
|
+
const f = r;
|
|
713
713
|
r = r + 100;
|
|
714
714
|
for (const m of t) {
|
|
715
|
-
const
|
|
715
|
+
const u = {
|
|
716
716
|
descr: m,
|
|
717
717
|
section: e,
|
|
718
718
|
number: e,
|
|
@@ -720,11 +720,11 @@ var zt = /* @__PURE__ */ s(function(n, t, e, l) {
|
|
|
720
720
|
padding: 20,
|
|
721
721
|
maxHeight: 50
|
|
722
722
|
};
|
|
723
|
-
|
|
724
|
-
const
|
|
725
|
-
|
|
723
|
+
E.debug("eventNode", u);
|
|
724
|
+
const k = n.append("g").attr("class", "eventWrapper"), x = H.drawNode(k, u, e, d).height;
|
|
725
|
+
h = h + x, k.attr("transform", `translate(${l}, ${r})`), r = r + 10 + x;
|
|
726
726
|
}
|
|
727
|
-
return r =
|
|
727
|
+
return r = f, h;
|
|
728
728
|
}, "drawEvents"), Ot = {
|
|
729
729
|
setConf: /* @__PURE__ */ s(() => {
|
|
730
730
|
}, "setConf"),
|