@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
|
@@ -1,82 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
import { i as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { l as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i2, _j;
|
|
2
|
+
import { _ as a, s as ii, g as ei, t as Pt, q as si, a as ni, b as ai, l as Lt, K as oi, e as ri, z as hi, G as ct, F as Et, H as li, M as ci, i as ui, a9 as gi } from "./mermaid-M3c3q4Qd.js";
|
|
3
|
+
import { i as xi } from "./init-DxzjmxYy.js";
|
|
4
|
+
import { o as di } from "./ordinal-CYN5qNoq.js";
|
|
5
|
+
import { r as pi } from "./range-DdOGybNB.js";
|
|
6
|
+
import { l as Rt } from "./linear-Bn_UtFyT.js";
|
|
7
|
+
import { l as Tt } from "./timer-BYwnU4DF.js";
|
|
8
|
+
function at() {
|
|
9
|
+
var t = di().unknown(void 0), i = t.domain, e = t.range, s = 0, n = 1, x, u, p = false, C = 0, T = 0, k = 0.5;
|
|
10
|
+
delete t.unknown;
|
|
11
|
+
function A() {
|
|
12
|
+
var m = i().length, D = n < s, S = D ? n : s, v = D ? s : n;
|
|
13
|
+
x = (v - S) / Math.max(1, m - C + T * 2), p && (x = Math.floor(x)), S += (v - S - x * (m - C)) * k, u = x * (1 - C), p && (S = Math.round(S), u = Math.round(u));
|
|
14
|
+
var f = pi(m).map(function(_) {
|
|
15
|
+
return S + x * _;
|
|
15
16
|
});
|
|
16
|
-
return
|
|
17
|
+
return e(D ? f.reverse() : f);
|
|
17
18
|
}
|
|
18
|
-
return
|
|
19
|
-
return arguments.length ? (
|
|
20
|
-
},
|
|
21
|
-
return arguments.length ? ([s, n] =
|
|
22
|
-
},
|
|
23
|
-
return [s, n] =
|
|
24
|
-
},
|
|
19
|
+
return t.domain = function(m) {
|
|
20
|
+
return arguments.length ? (i(m), A()) : i();
|
|
21
|
+
}, t.range = function(m) {
|
|
22
|
+
return arguments.length ? ([s, n] = m, s = +s, n = +n, A()) : [s, n];
|
|
23
|
+
}, t.rangeRound = function(m) {
|
|
24
|
+
return [s, n] = m, s = +s, n = +n, p = true, A();
|
|
25
|
+
}, t.bandwidth = function() {
|
|
25
26
|
return u;
|
|
26
|
-
},
|
|
27
|
-
return
|
|
28
|
-
},
|
|
29
|
-
return arguments.length ? (
|
|
30
|
-
},
|
|
31
|
-
return arguments.length ? (
|
|
32
|
-
},
|
|
33
|
-
return arguments.length ? (
|
|
34
|
-
},
|
|
35
|
-
return arguments.length ? (
|
|
36
|
-
},
|
|
37
|
-
return arguments.length ? (
|
|
38
|
-
},
|
|
39
|
-
return
|
|
40
|
-
},
|
|
27
|
+
}, t.step = function() {
|
|
28
|
+
return x;
|
|
29
|
+
}, t.round = function(m) {
|
|
30
|
+
return arguments.length ? (p = !!m, A()) : p;
|
|
31
|
+
}, t.padding = function(m) {
|
|
32
|
+
return arguments.length ? (C = Math.min(1, T = +m), A()) : C;
|
|
33
|
+
}, t.paddingInner = function(m) {
|
|
34
|
+
return arguments.length ? (C = Math.min(1, m), A()) : C;
|
|
35
|
+
}, t.paddingOuter = function(m) {
|
|
36
|
+
return arguments.length ? (T = +m, A()) : T;
|
|
37
|
+
}, t.align = function(m) {
|
|
38
|
+
return arguments.length ? (k = Math.max(0, Math.min(1, m)), A()) : k;
|
|
39
|
+
}, t.copy = function() {
|
|
40
|
+
return at(i(), [s, n]).round(p).paddingInner(C).paddingOuter(T).align(k);
|
|
41
|
+
}, xi.apply(A(), arguments);
|
|
41
42
|
}
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
for (
|
|
45
|
-
return
|
|
46
|
-
}, "o"),
|
|
43
|
+
var ot = function() {
|
|
44
|
+
var t = /* @__PURE__ */ a(function(B, r, l, c) {
|
|
45
|
+
for (l = l || {}, c = B.length; c--; l[B[c]] = r) ;
|
|
46
|
+
return l;
|
|
47
|
+
}, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5], x = [1, 6], u = [1, 7], p = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], C = [1, 25], T = [1, 26], k = [1, 28], A = [1, 29], m = [1, 30], D = [1, 31], S = [1, 32], v = [1, 33], f = [1, 34], _ = [1, 35], h = [1, 36], E = [1, 37], X = [1, 43], bt = [1, 42], At = [1, 47], $ = [1, 50], w = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], J = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], I = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], wt = [1, 64], tt = {
|
|
47
48
|
trace: /* @__PURE__ */ a(function() {
|
|
48
49
|
}, "trace"),
|
|
49
50
|
yy: {},
|
|
50
51
|
symbols_: { error: 2, start: 3, eol: 4, XYCHART: 5, chartConfig: 6, document: 7, CHART_ORIENTATION: 8, statement: 9, title: 10, text: 11, X_AXIS: 12, parseXAxis: 13, Y_AXIS: 14, parseYAxis: 15, LINE: 16, plotData: 17, BAR: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, SQUARE_BRACES_START: 24, commaSeparatedNumbers: 25, SQUARE_BRACES_END: 26, NUMBER_WITH_DECIMAL: 27, COMMA: 28, xAxisData: 29, bandData: 30, ARROW_DELIMITER: 31, commaSeparatedTexts: 32, yAxisData: 33, NEWLINE: 34, SEMI: 35, EOF: 36, alphaNum: 37, STR: 38, MD_STR: 39, alphaNumToken: 40, AMP: 41, NUM: 42, ALPHA: 43, PLUS: 44, EQUALS: 45, MULT: 46, DOT: 47, BRKT: 48, MINUS: 49, UNDERSCORE: 50, $accept: 0, $end: 1 },
|
|
51
52
|
terminals_: { 2: "error", 5: "XYCHART", 8: "CHART_ORIENTATION", 10: "title", 12: "X_AXIS", 14: "Y_AXIS", 16: "LINE", 18: "BAR", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "SQUARE_BRACES_START", 26: "SQUARE_BRACES_END", 27: "NUMBER_WITH_DECIMAL", 28: "COMMA", 31: "ARROW_DELIMITER", 34: "NEWLINE", 35: "SEMI", 36: "EOF", 38: "STR", 39: "MD_STR", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "PLUS", 45: "EQUALS", 46: "MULT", 47: "DOT", 48: "BRKT", 49: "MINUS", 50: "UNDERSCORE" },
|
|
52
53
|
productions_: [0, [3, 2], [3, 3], [3, 2], [3, 1], [6, 1], [7, 0], [7, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 3], [9, 2], [9, 3], [9, 2], [9, 2], [9, 1], [17, 3], [25, 3], [25, 1], [13, 1], [13, 2], [13, 1], [29, 1], [29, 3], [30, 3], [32, 3], [32, 1], [15, 1], [15, 2], [15, 1], [33, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [37, 1], [37, 2], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1]],
|
|
53
|
-
performAction: /* @__PURE__ */ a(function(
|
|
54
|
+
performAction: /* @__PURE__ */ a(function(r, l, c, g, b, o, N) {
|
|
54
55
|
var d = o.length - 1;
|
|
55
|
-
switch (
|
|
56
|
+
switch (b) {
|
|
56
57
|
case 5:
|
|
57
|
-
|
|
58
|
+
g.setOrientation(o[d]);
|
|
58
59
|
break;
|
|
59
60
|
case 9:
|
|
60
|
-
|
|
61
|
+
g.setDiagramTitle(o[d].text.trim());
|
|
61
62
|
break;
|
|
62
63
|
case 12:
|
|
63
|
-
|
|
64
|
+
g.setLineData({ text: "", type: "text" }, o[d]);
|
|
64
65
|
break;
|
|
65
66
|
case 13:
|
|
66
|
-
|
|
67
|
+
g.setLineData(o[d - 1], o[d]);
|
|
67
68
|
break;
|
|
68
69
|
case 14:
|
|
69
|
-
|
|
70
|
+
g.setBarData({ text: "", type: "text" }, o[d]);
|
|
70
71
|
break;
|
|
71
72
|
case 15:
|
|
72
|
-
|
|
73
|
+
g.setBarData(o[d - 1], o[d]);
|
|
73
74
|
break;
|
|
74
75
|
case 16:
|
|
75
|
-
this.$ = o[d].trim(),
|
|
76
|
+
this.$ = o[d].trim(), g.setAccTitle(this.$);
|
|
76
77
|
break;
|
|
77
78
|
case 17:
|
|
78
79
|
case 18:
|
|
79
|
-
this.$ = o[d].trim(),
|
|
80
|
+
this.$ = o[d].trim(), g.setAccDescription(this.$);
|
|
80
81
|
break;
|
|
81
82
|
case 19:
|
|
82
83
|
this.$ = o[d - 1];
|
|
@@ -88,19 +89,19 @@ var ft = function() {
|
|
|
88
89
|
this.$ = [Number(o[d])];
|
|
89
90
|
break;
|
|
90
91
|
case 22:
|
|
91
|
-
|
|
92
|
+
g.setXAxisTitle(o[d]);
|
|
92
93
|
break;
|
|
93
94
|
case 23:
|
|
94
|
-
|
|
95
|
+
g.setXAxisTitle(o[d - 1]);
|
|
95
96
|
break;
|
|
96
97
|
case 24:
|
|
97
|
-
|
|
98
|
+
g.setXAxisTitle({ type: "text", text: "" });
|
|
98
99
|
break;
|
|
99
100
|
case 25:
|
|
100
|
-
|
|
101
|
+
g.setXAxisBand(o[d]);
|
|
101
102
|
break;
|
|
102
103
|
case 26:
|
|
103
|
-
|
|
104
|
+
g.setXAxisRangeData(Number(o[d - 2]), Number(o[d]));
|
|
104
105
|
break;
|
|
105
106
|
case 27:
|
|
106
107
|
this.$ = o[d - 1];
|
|
@@ -112,16 +113,16 @@ var ft = function() {
|
|
|
112
113
|
this.$ = [o[d]];
|
|
113
114
|
break;
|
|
114
115
|
case 30:
|
|
115
|
-
|
|
116
|
+
g.setYAxisTitle(o[d]);
|
|
116
117
|
break;
|
|
117
118
|
case 31:
|
|
118
|
-
|
|
119
|
+
g.setYAxisTitle(o[d - 1]);
|
|
119
120
|
break;
|
|
120
121
|
case 32:
|
|
121
|
-
|
|
122
|
+
g.setYAxisTitle({ type: "text", text: "" });
|
|
122
123
|
break;
|
|
123
124
|
case 33:
|
|
124
|
-
|
|
125
|
+
g.setYAxisRangeData(Number(o[d - 2]), Number(o[d]));
|
|
125
126
|
break;
|
|
126
127
|
case 37:
|
|
127
128
|
this.$ = { text: o[d], type: "text" };
|
|
@@ -140,95 +141,95 @@ var ft = function() {
|
|
|
140
141
|
break;
|
|
141
142
|
}
|
|
142
143
|
}, "anonymous"),
|
|
143
|
-
table: [
|
|
144
|
+
table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: x, 36: u }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: x, 36: u }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: x, 36: u }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: x, 36: u }), { 1: [2, 3] }, t(p, [2, 5]), t(i, [2, 7], { 4: 22, 34: n, 35: x, 36: u }), { 11: 23, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 39, 13: 38, 24: X, 27: bt, 29: 40, 30: 41, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 45, 15: 44, 27: At, 33: 46, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 49, 17: 48, 24: $, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 52, 17: 51, 24: $, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 20: [1, 53] }, { 22: [1, 54] }, t(w, [2, 18]), { 1: [2, 2] }, t(w, [2, 8]), t(w, [2, 9]), t(J, [2, 37], { 40: 55, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }), t(J, [2, 38]), t(J, [2, 39]), t(I, [2, 40]), t(I, [2, 42]), t(I, [2, 43]), t(I, [2, 44]), t(I, [2, 45]), t(I, [2, 46]), t(I, [2, 47]), t(I, [2, 48]), t(I, [2, 49]), t(I, [2, 50]), t(I, [2, 51]), t(w, [2, 10]), t(w, [2, 22], { 30: 41, 29: 56, 24: X, 27: bt }), t(w, [2, 24]), t(w, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, t(w, [2, 11]), t(w, [2, 30], { 33: 60, 27: At }), t(w, [2, 32]), { 31: [1, 61] }, t(w, [2, 12]), { 17: 62, 24: $ }, { 25: 63, 27: wt }, t(w, [2, 14]), { 17: 65, 24: $ }, t(w, [2, 16]), t(w, [2, 17]), t(I, [2, 41]), t(w, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(w, [2, 31]), { 27: [1, 69] }, t(w, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(w, [2, 15]), t(w, [2, 26]), t(w, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, t(w, [2, 33]), t(w, [2, 19]), { 25: 73, 27: wt }, { 26: [2, 28] }, { 26: [2, 20] }],
|
|
144
145
|
defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
|
|
145
|
-
parseError: /* @__PURE__ */ a(function(
|
|
146
|
-
if (
|
|
147
|
-
this.trace(
|
|
146
|
+
parseError: /* @__PURE__ */ a(function(r, l) {
|
|
147
|
+
if (l.recoverable)
|
|
148
|
+
this.trace(r);
|
|
148
149
|
else {
|
|
149
|
-
var
|
|
150
|
-
throw
|
|
150
|
+
var c = new Error(r);
|
|
151
|
+
throw c.hash = l, c;
|
|
151
152
|
}
|
|
152
153
|
}, "parseError"),
|
|
153
|
-
parse: /* @__PURE__ */ a(function(
|
|
154
|
-
var
|
|
155
|
-
for (var
|
|
156
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
157
|
-
|
|
158
|
-
var
|
|
159
|
-
o.push(
|
|
160
|
-
var
|
|
154
|
+
parse: /* @__PURE__ */ a(function(r) {
|
|
155
|
+
var l = this, c = [0], g = [], b = [null], o = [], N = this.table, d = "", G = 0, Ct = 0, Kt = 2, St = 1, Zt = o.slice.call(arguments, 1), R = Object.create(this.lexer), W = { yy: {} };
|
|
156
|
+
for (var it in this.yy)
|
|
157
|
+
Object.prototype.hasOwnProperty.call(this.yy, it) && (W.yy[it] = this.yy[it]);
|
|
158
|
+
R.setInput(r, W.yy), W.yy.lexer = R, W.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
|
|
159
|
+
var et = R.yylloc;
|
|
160
|
+
o.push(et);
|
|
161
|
+
var Jt = R.options && R.options.ranges;
|
|
161
162
|
typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
162
|
-
function
|
|
163
|
-
|
|
163
|
+
function ti(L) {
|
|
164
|
+
c.length = c.length - 2 * L, b.length = b.length - L, o.length = o.length - L;
|
|
164
165
|
}
|
|
165
|
-
a(
|
|
166
|
-
function
|
|
166
|
+
a(ti, "popStack");
|
|
167
|
+
function _t() {
|
|
167
168
|
var L;
|
|
168
|
-
return L =
|
|
169
|
+
return L = g.pop() || R.lex() || St, typeof L != "number" && (L instanceof Array && (g = L, L = g.pop()), L = l.symbols_[L] || L), L;
|
|
169
170
|
}
|
|
170
|
-
a(
|
|
171
|
-
for (var P, O, M,
|
|
172
|
-
if (O =
|
|
173
|
-
var
|
|
174
|
-
|
|
175
|
-
for (
|
|
176
|
-
this.terminals_[
|
|
177
|
-
|
|
178
|
-
` +
|
|
179
|
-
Expecting ` +
|
|
180
|
-
text:
|
|
171
|
+
a(_t, "lex");
|
|
172
|
+
for (var P, O, M, st, z = {}, j, V, kt, Q; ; ) {
|
|
173
|
+
if (O = c[c.length - 1], this.defaultActions[O] ? M = this.defaultActions[O] : ((P === null || typeof P > "u") && (P = _t()), M = N[O] && N[O][P]), typeof M > "u" || !M.length || !M[0]) {
|
|
174
|
+
var nt = "";
|
|
175
|
+
Q = [];
|
|
176
|
+
for (j in N[O])
|
|
177
|
+
this.terminals_[j] && j > Kt && Q.push("'" + this.terminals_[j] + "'");
|
|
178
|
+
R.showPosition ? nt = "Parse error on line " + (G + 1) + `:
|
|
179
|
+
` + R.showPosition() + `
|
|
180
|
+
Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt = "Parse error on line " + (G + 1) + ": Unexpected " + (P == St ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(nt, {
|
|
181
|
+
text: R.match,
|
|
181
182
|
token: this.terminals_[P] || P,
|
|
182
|
-
line:
|
|
183
|
-
loc:
|
|
184
|
-
expected:
|
|
183
|
+
line: R.yylineno,
|
|
184
|
+
loc: et,
|
|
185
|
+
expected: Q
|
|
185
186
|
});
|
|
186
187
|
}
|
|
187
188
|
if (M[0] instanceof Array && M.length > 1)
|
|
188
189
|
throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + P);
|
|
189
190
|
switch (M[0]) {
|
|
190
191
|
case 1:
|
|
191
|
-
|
|
192
|
+
c.push(P), b.push(R.yytext), o.push(R.yylloc), c.push(M[1]), P = null, Ct = R.yyleng, d = R.yytext, G = R.yylineno, et = R.yylloc;
|
|
192
193
|
break;
|
|
193
194
|
case 2:
|
|
194
|
-
if (V = this.productions_[M[1]][1], z.$ =
|
|
195
|
+
if (V = this.productions_[M[1]][1], z.$ = b[b.length - V], z._$ = {
|
|
195
196
|
first_line: o[o.length - (V || 1)].first_line,
|
|
196
197
|
last_line: o[o.length - 1].last_line,
|
|
197
198
|
first_column: o[o.length - (V || 1)].first_column,
|
|
198
199
|
last_column: o[o.length - 1].last_column
|
|
199
|
-
},
|
|
200
|
+
}, Jt && (z._$.range = [
|
|
200
201
|
o[o.length - (V || 1)].range[0],
|
|
201
202
|
o[o.length - 1].range[1]
|
|
202
|
-
]),
|
|
203
|
+
]), st = this.performAction.apply(z, [
|
|
203
204
|
d,
|
|
204
|
-
|
|
205
|
-
|
|
205
|
+
Ct,
|
|
206
|
+
G,
|
|
206
207
|
W.yy,
|
|
207
208
|
M[1],
|
|
208
|
-
|
|
209
|
+
b,
|
|
209
210
|
o
|
|
210
|
-
].concat(
|
|
211
|
-
return
|
|
212
|
-
V && (
|
|
211
|
+
].concat(Zt)), typeof st < "u")
|
|
212
|
+
return st;
|
|
213
|
+
V && (c = c.slice(0, -1 * V * 2), b = b.slice(0, -1 * V), o = o.slice(0, -1 * V)), c.push(this.productions_[M[1]][0]), b.push(z.$), o.push(z._$), kt = N[c[c.length - 2]][c[c.length - 1]], c.push(kt);
|
|
213
214
|
break;
|
|
214
215
|
case 3:
|
|
215
|
-
return
|
|
216
|
+
return true;
|
|
216
217
|
}
|
|
217
218
|
}
|
|
218
|
-
return
|
|
219
|
+
return true;
|
|
219
220
|
}, "parse")
|
|
220
|
-
},
|
|
221
|
+
}, Qt = /* @__PURE__ */ function() {
|
|
221
222
|
var B = {
|
|
222
223
|
EOF: 1,
|
|
223
|
-
parseError: /* @__PURE__ */ a(function(
|
|
224
|
+
parseError: /* @__PURE__ */ a(function(l, c) {
|
|
224
225
|
if (this.yy.parser)
|
|
225
|
-
this.yy.parser.parseError(
|
|
226
|
+
this.yy.parser.parseError(l, c);
|
|
226
227
|
else
|
|
227
|
-
throw new Error(
|
|
228
|
+
throw new Error(l);
|
|
228
229
|
}, "parseError"),
|
|
229
230
|
// resets the lexer, sets new input
|
|
230
|
-
setInput: /* @__PURE__ */ a(function(
|
|
231
|
-
return this.yy =
|
|
231
|
+
setInput: /* @__PURE__ */ a(function(r, l) {
|
|
232
|
+
return this.yy = l || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
232
233
|
first_line: 1,
|
|
233
234
|
first_column: 0,
|
|
234
235
|
last_line: 1,
|
|
@@ -237,33 +238,33 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
|
|
|
237
238
|
}, "setInput"),
|
|
238
239
|
// consumes and returns one char from the input
|
|
239
240
|
input: /* @__PURE__ */ a(function() {
|
|
240
|
-
var
|
|
241
|
-
this.yytext +=
|
|
242
|
-
var
|
|
243
|
-
return
|
|
241
|
+
var r = this._input[0];
|
|
242
|
+
this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
|
|
243
|
+
var l = r.match(/(?:\r\n?|\n).*/g);
|
|
244
|
+
return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
|
|
244
245
|
}, "input"),
|
|
245
246
|
// unshifts one char (or a string) into the input
|
|
246
|
-
unput: /* @__PURE__ */ a(function(
|
|
247
|
-
var
|
|
248
|
-
this._input =
|
|
249
|
-
var
|
|
250
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
251
|
-
var
|
|
247
|
+
unput: /* @__PURE__ */ a(function(r) {
|
|
248
|
+
var l = r.length, c = r.split(/(?:\r\n?|\n)/g);
|
|
249
|
+
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
|
|
250
|
+
var g = this.match.split(/(?:\r\n?|\n)/g);
|
|
251
|
+
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);
|
|
252
|
+
var b = this.yylloc.range;
|
|
252
253
|
return this.yylloc = {
|
|
253
254
|
first_line: this.yylloc.first_line,
|
|
254
255
|
last_line: this.yylineno + 1,
|
|
255
256
|
first_column: this.yylloc.first_column,
|
|
256
|
-
last_column:
|
|
257
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
257
|
+
last_column: c ? (c.length === g.length ? this.yylloc.first_column : 0) + g[g.length - c.length].length - c[0].length : this.yylloc.first_column - l
|
|
258
|
+
}, this.options.ranges && (this.yylloc.range = [b[0], b[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
|
|
258
259
|
}, "unput"),
|
|
259
260
|
// When called from action, caches matched text and appends it on next action
|
|
260
261
|
more: /* @__PURE__ */ a(function() {
|
|
261
|
-
return this._more =
|
|
262
|
+
return this._more = true, this;
|
|
262
263
|
}, "more"),
|
|
263
264
|
// 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.
|
|
264
265
|
reject: /* @__PURE__ */ a(function() {
|
|
265
266
|
if (this.options.backtrack_lexer)
|
|
266
|
-
this._backtrack =
|
|
267
|
+
this._backtrack = true;
|
|
267
268
|
else
|
|
268
269
|
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).
|
|
269
270
|
` + this.showPosition(), {
|
|
@@ -274,29 +275,29 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
|
|
|
274
275
|
return this;
|
|
275
276
|
}, "reject"),
|
|
276
277
|
// retain first n characters of the match
|
|
277
|
-
less: /* @__PURE__ */ a(function(
|
|
278
|
-
this.unput(this.match.slice(
|
|
278
|
+
less: /* @__PURE__ */ a(function(r) {
|
|
279
|
+
this.unput(this.match.slice(r));
|
|
279
280
|
}, "less"),
|
|
280
281
|
// displays already matched input, i.e. for error messages
|
|
281
282
|
pastInput: /* @__PURE__ */ a(function() {
|
|
282
|
-
var
|
|
283
|
-
return (
|
|
283
|
+
var r = this.matched.substr(0, this.matched.length - this.match.length);
|
|
284
|
+
return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
|
|
284
285
|
}, "pastInput"),
|
|
285
286
|
// displays upcoming input, i.e. for error messages
|
|
286
287
|
upcomingInput: /* @__PURE__ */ a(function() {
|
|
287
|
-
var
|
|
288
|
-
return
|
|
288
|
+
var r = this.match;
|
|
289
|
+
return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
289
290
|
}, "upcomingInput"),
|
|
290
291
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
291
292
|
showPosition: /* @__PURE__ */ a(function() {
|
|
292
|
-
var
|
|
293
|
-
return
|
|
294
|
-
` +
|
|
293
|
+
var r = this.pastInput(), l = new Array(r.length + 1).join("-");
|
|
294
|
+
return r + this.upcomingInput() + `
|
|
295
|
+
` + l + "^";
|
|
295
296
|
}, "showPosition"),
|
|
296
297
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
297
|
-
test_match: /* @__PURE__ */ a(function(
|
|
298
|
-
var
|
|
299
|
-
if (this.options.backtrack_lexer && (
|
|
298
|
+
test_match: /* @__PURE__ */ a(function(r, l) {
|
|
299
|
+
var c, g, b;
|
|
300
|
+
if (this.options.backtrack_lexer && (b = {
|
|
300
301
|
yylineno: this.yylineno,
|
|
301
302
|
yylloc: {
|
|
302
303
|
first_line: this.yylloc.first_line,
|
|
@@ -315,41 +316,41 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
|
|
|
315
316
|
yy: this.yy,
|
|
316
317
|
conditionStack: this.conditionStack.slice(0),
|
|
317
318
|
done: this.done
|
|
318
|
-
}, this.options.ranges && (
|
|
319
|
+
}, this.options.ranges && (b.yylloc.range = this.yylloc.range.slice(0))), g = r[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
|
|
319
320
|
first_line: this.yylloc.last_line,
|
|
320
321
|
last_line: this.yylineno + 1,
|
|
321
322
|
first_column: this.yylloc.last_column,
|
|
322
|
-
last_column:
|
|
323
|
-
}, this.yytext +=
|
|
324
|
-
return
|
|
323
|
+
last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
324
|
+
}, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], c = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), c)
|
|
325
|
+
return c;
|
|
325
326
|
if (this._backtrack) {
|
|
326
|
-
for (var o in
|
|
327
|
-
this[o] =
|
|
328
|
-
return
|
|
327
|
+
for (var o in b)
|
|
328
|
+
this[o] = b[o];
|
|
329
|
+
return false;
|
|
329
330
|
}
|
|
330
|
-
return
|
|
331
|
+
return false;
|
|
331
332
|
}, "test_match"),
|
|
332
333
|
// return next match in input
|
|
333
334
|
next: /* @__PURE__ */ a(function() {
|
|
334
335
|
if (this.done)
|
|
335
336
|
return this.EOF;
|
|
336
|
-
this._input || (this.done =
|
|
337
|
-
var
|
|
337
|
+
this._input || (this.done = true);
|
|
338
|
+
var r, l, c, g;
|
|
338
339
|
this._more || (this.yytext = "", this.match = "");
|
|
339
|
-
for (var
|
|
340
|
-
if (
|
|
341
|
-
if (
|
|
342
|
-
if (
|
|
343
|
-
return
|
|
340
|
+
for (var b = this._currentRules(), o = 0; o < b.length; o++)
|
|
341
|
+
if (c = this._input.match(this.rules[b[o]]), c && (!l || c[0].length > l[0].length)) {
|
|
342
|
+
if (l = c, g = o, this.options.backtrack_lexer) {
|
|
343
|
+
if (r = this.test_match(c, b[o]), r !== false)
|
|
344
|
+
return r;
|
|
344
345
|
if (this._backtrack) {
|
|
345
|
-
|
|
346
|
+
l = false;
|
|
346
347
|
continue;
|
|
347
348
|
} else
|
|
348
|
-
return
|
|
349
|
+
return false;
|
|
349
350
|
} else if (!this.options.flex)
|
|
350
351
|
break;
|
|
351
352
|
}
|
|
352
|
-
return
|
|
353
|
+
return l ? (r = this.test_match(l, b[g]), r !== false ? r : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
353
354
|
` + this.showPosition(), {
|
|
354
355
|
text: "",
|
|
355
356
|
token: null,
|
|
@@ -358,37 +359,37 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
|
|
|
358
359
|
}, "next"),
|
|
359
360
|
// return next match that has a token
|
|
360
361
|
lex: /* @__PURE__ */ a(function() {
|
|
361
|
-
var
|
|
362
|
-
return
|
|
362
|
+
var l = this.next();
|
|
363
|
+
return l || this.lex();
|
|
363
364
|
}, "lex"),
|
|
364
365
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
365
|
-
begin: /* @__PURE__ */ a(function(
|
|
366
|
-
this.conditionStack.push(
|
|
366
|
+
begin: /* @__PURE__ */ a(function(l) {
|
|
367
|
+
this.conditionStack.push(l);
|
|
367
368
|
}, "begin"),
|
|
368
369
|
// pop the previously active lexer condition state off the condition stack
|
|
369
370
|
popState: /* @__PURE__ */ a(function() {
|
|
370
|
-
var
|
|
371
|
-
return
|
|
371
|
+
var l = this.conditionStack.length - 1;
|
|
372
|
+
return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
372
373
|
}, "popState"),
|
|
373
374
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
374
375
|
_currentRules: /* @__PURE__ */ a(function() {
|
|
375
376
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
376
377
|
}, "_currentRules"),
|
|
377
378
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
378
|
-
topState: /* @__PURE__ */ a(function(
|
|
379
|
-
return
|
|
379
|
+
topState: /* @__PURE__ */ a(function(l) {
|
|
380
|
+
return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
|
|
380
381
|
}, "topState"),
|
|
381
382
|
// alias for begin(condition)
|
|
382
|
-
pushState: /* @__PURE__ */ a(function(
|
|
383
|
-
this.begin(
|
|
383
|
+
pushState: /* @__PURE__ */ a(function(l) {
|
|
384
|
+
this.begin(l);
|
|
384
385
|
}, "pushState"),
|
|
385
386
|
// return the number of states currently on the stack
|
|
386
387
|
stateStackSize: /* @__PURE__ */ a(function() {
|
|
387
388
|
return this.conditionStack.length;
|
|
388
389
|
}, "stateStackSize"),
|
|
389
|
-
options: { "case-insensitive":
|
|
390
|
-
performAction: /* @__PURE__ */ a(function(c, g,
|
|
391
|
-
switch (
|
|
390
|
+
options: { "case-insensitive": true },
|
|
391
|
+
performAction: /* @__PURE__ */ a(function(l, c, g, b) {
|
|
392
|
+
switch (g) {
|
|
392
393
|
case 0:
|
|
393
394
|
break;
|
|
394
395
|
case 1:
|
|
@@ -489,53 +490,53 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
|
|
|
489
490
|
}
|
|
490
491
|
}, "anonymous"),
|
|
491
492
|
rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
|
|
492
|
-
conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive:
|
|
493
|
+
conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 22, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, acc_descr_multiline: { rules: [12, 13], inclusive: false }, acc_descr: { rules: [10], inclusive: false }, acc_title: { rules: [8], inclusive: false }, title: { rules: [], inclusive: false }, md_string: { rules: [], inclusive: false }, string: { rules: [27, 28], inclusive: false }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true } }
|
|
493
494
|
};
|
|
494
495
|
return B;
|
|
495
496
|
}();
|
|
496
|
-
|
|
497
|
-
function
|
|
497
|
+
tt.lexer = Qt;
|
|
498
|
+
function q() {
|
|
498
499
|
this.yy = {};
|
|
499
500
|
}
|
|
500
|
-
return a(
|
|
501
|
+
return a(q, "Parser"), q.prototype = tt, tt.Parser = q, new q();
|
|
501
502
|
}();
|
|
502
|
-
|
|
503
|
-
var
|
|
504
|
-
function
|
|
505
|
-
return
|
|
503
|
+
ot.parser = ot;
|
|
504
|
+
var fi = ot;
|
|
505
|
+
function rt(t) {
|
|
506
|
+
return t.type === "bar";
|
|
506
507
|
}
|
|
507
|
-
a(
|
|
508
|
-
function
|
|
509
|
-
return
|
|
508
|
+
a(rt, "isBarPlot");
|
|
509
|
+
function ut(t) {
|
|
510
|
+
return t.type === "band";
|
|
510
511
|
}
|
|
511
|
-
a(
|
|
512
|
-
function F(
|
|
513
|
-
return
|
|
512
|
+
a(ut, "isBandAxisData");
|
|
513
|
+
function F(t) {
|
|
514
|
+
return t.type === "linear";
|
|
514
515
|
}
|
|
515
516
|
a(F, "isLinearAxisData");
|
|
516
|
-
var
|
|
517
|
+
var It = (_a = class {
|
|
517
518
|
constructor(t) {
|
|
518
519
|
this.parentGroup = t;
|
|
519
520
|
}
|
|
520
521
|
getMaxDimension(t, i) {
|
|
521
522
|
if (!this.parentGroup)
|
|
522
523
|
return {
|
|
523
|
-
width: t.reduce((
|
|
524
|
+
width: t.reduce((n, x) => Math.max(x.length, n), 0) * i,
|
|
524
525
|
height: i
|
|
525
526
|
};
|
|
526
|
-
const
|
|
527
|
+
const e = {
|
|
527
528
|
width: 0,
|
|
528
529
|
height: 0
|
|
529
|
-
},
|
|
530
|
-
for (const
|
|
531
|
-
const
|
|
532
|
-
|
|
530
|
+
}, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
|
|
531
|
+
for (const n of t) {
|
|
532
|
+
const x = gi(s, 1, n), u = x ? x.width : n.length * i, p = x ? x.height : i;
|
|
533
|
+
e.width = Math.max(e.width, u), e.height = Math.max(e.height, p);
|
|
533
534
|
}
|
|
534
|
-
return
|
|
535
|
+
return s.remove(), e;
|
|
535
536
|
}
|
|
536
|
-
}, a(
|
|
537
|
-
constructor(t, i,
|
|
538
|
-
this.axisConfig = t, this.title = i, this.textDimensionCalculator =
|
|
537
|
+
}, a(_a, "TextDimensionCalculatorWithFont"), _a), Dt = 0.7, vt = 0.2, Mt = (_b = class {
|
|
538
|
+
constructor(t, i, e, s) {
|
|
539
|
+
this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = s, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = false, this.showLabel = false, this.showTick = false, this.showAxisLine = false, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
|
|
539
540
|
}
|
|
540
541
|
setRange(t) {
|
|
541
542
|
this.range = t, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = t[1] - t[0] : this.boundingRect.width = t[1] - t[0], this.recalculateScale();
|
|
@@ -560,39 +561,39 @@ var X, Yt = (X = class {
|
|
|
560
561
|
);
|
|
561
562
|
}
|
|
562
563
|
recalculateOuterPaddingToDrawBar() {
|
|
563
|
-
|
|
564
|
+
Dt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Dt * this.getTickDistance() / 2)), this.recalculateScale();
|
|
564
565
|
}
|
|
565
566
|
calculateSpaceIfDrawnHorizontally(t) {
|
|
566
567
|
let i = t.height;
|
|
567
|
-
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine =
|
|
568
|
-
const
|
|
569
|
-
this.outerPadding = Math.min(
|
|
570
|
-
const
|
|
571
|
-
this.labelTextHeight =
|
|
568
|
+
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = true), this.axisConfig.showLabel) {
|
|
569
|
+
const e = this.getLabelDimension(), s = vt * t.width;
|
|
570
|
+
this.outerPadding = Math.min(e.width / 2, s);
|
|
571
|
+
const n = e.height + this.axisConfig.labelPadding * 2;
|
|
572
|
+
this.labelTextHeight = e.height, n <= i && (i -= n, this.showLabel = true);
|
|
572
573
|
}
|
|
573
|
-
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick =
|
|
574
|
-
const
|
|
574
|
+
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = true, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
575
|
+
const e = this.textDimensionCalculator.getMaxDimension(
|
|
575
576
|
[this.title],
|
|
576
577
|
this.axisConfig.titleFontSize
|
|
577
|
-
),
|
|
578
|
-
this.titleTextHeight =
|
|
578
|
+
), s = e.height + this.axisConfig.titlePadding * 2;
|
|
579
|
+
this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = true);
|
|
579
580
|
}
|
|
580
581
|
this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
|
|
581
582
|
}
|
|
582
583
|
calculateSpaceIfDrawnVertical(t) {
|
|
583
584
|
let i = t.width;
|
|
584
|
-
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine =
|
|
585
|
-
const
|
|
586
|
-
this.outerPadding = Math.min(
|
|
587
|
-
const
|
|
588
|
-
|
|
585
|
+
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = true), this.axisConfig.showLabel) {
|
|
586
|
+
const e = this.getLabelDimension(), s = vt * t.height;
|
|
587
|
+
this.outerPadding = Math.min(e.height / 2, s);
|
|
588
|
+
const n = e.width + this.axisConfig.labelPadding * 2;
|
|
589
|
+
n <= i && (i -= n, this.showLabel = true);
|
|
589
590
|
}
|
|
590
|
-
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick =
|
|
591
|
-
const
|
|
591
|
+
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = true, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
592
|
+
const e = this.textDimensionCalculator.getMaxDimension(
|
|
592
593
|
[this.title],
|
|
593
594
|
this.axisConfig.titleFontSize
|
|
594
|
-
),
|
|
595
|
-
this.titleTextHeight =
|
|
595
|
+
), s = e.height + this.axisConfig.titlePadding * 2;
|
|
596
|
+
this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = true);
|
|
596
597
|
}
|
|
597
598
|
this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
|
|
598
599
|
}
|
|
@@ -639,8 +640,8 @@ var X, Yt = (X = class {
|
|
|
639
640
|
t.push({
|
|
640
641
|
type: "path",
|
|
641
642
|
groupTexts: ["left-axis", "ticks"],
|
|
642
|
-
data: this.getTickValues().map((
|
|
643
|
-
path: `M ${i},${this.getScaleValue(
|
|
643
|
+
data: this.getTickValues().map((e) => ({
|
|
644
|
+
path: `M ${i},${this.getScaleValue(e)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
|
|
644
645
|
strokeFill: this.axisThemeConfig.tickColor,
|
|
645
646
|
strokeWidth: this.axisConfig.tickWidth
|
|
646
647
|
}))
|
|
@@ -697,8 +698,8 @@ var X, Yt = (X = class {
|
|
|
697
698
|
t.push({
|
|
698
699
|
type: "path",
|
|
699
700
|
groupTexts: ["bottom-axis", "ticks"],
|
|
700
|
-
data: this.getTickValues().map((
|
|
701
|
-
path: `M ${this.getScaleValue(
|
|
701
|
+
data: this.getTickValues().map((e) => ({
|
|
702
|
+
path: `M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i + this.axisConfig.tickLength}`,
|
|
702
703
|
strokeFill: this.axisThemeConfig.tickColor,
|
|
703
704
|
strokeWidth: this.axisConfig.tickWidth
|
|
704
705
|
}))
|
|
@@ -755,8 +756,8 @@ var X, Yt = (X = class {
|
|
|
755
756
|
t.push({
|
|
756
757
|
type: "path",
|
|
757
758
|
groupTexts: ["top-axis", "ticks"],
|
|
758
|
-
data: this.getTickValues().map((
|
|
759
|
-
path: `M ${this.getScaleValue(
|
|
759
|
+
data: this.getTickValues().map((e) => ({
|
|
760
|
+
path: `M ${this.getScaleValue(e)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(e)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
|
|
760
761
|
strokeFill: this.axisThemeConfig.tickColor,
|
|
761
762
|
strokeWidth: this.axisConfig.tickWidth
|
|
762
763
|
}))
|
|
@@ -786,15 +787,15 @@ var X, Yt = (X = class {
|
|
|
786
787
|
throw Error("Drawing of right axis is not implemented");
|
|
787
788
|
return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
|
|
788
789
|
}
|
|
789
|
-
}, a(
|
|
790
|
-
constructor(t, i, s, n
|
|
791
|
-
super(t,
|
|
790
|
+
}, a(_b, "BaseAxis"), _b), mi = (_c = class extends Mt {
|
|
791
|
+
constructor(t, i, e, s, n) {
|
|
792
|
+
super(t, s, n, i), this.categories = e, this.scale = at().domain(this.categories).range(this.getRange());
|
|
792
793
|
}
|
|
793
794
|
setRange(t) {
|
|
794
795
|
super.setRange(t);
|
|
795
796
|
}
|
|
796
797
|
recalculateScale() {
|
|
797
|
-
this.scale =
|
|
798
|
+
this.scale = at().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Lt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
|
|
798
799
|
}
|
|
799
800
|
getTickValues() {
|
|
800
801
|
return this.categories;
|
|
@@ -802,46 +803,46 @@ var X, Yt = (X = class {
|
|
|
802
803
|
getScaleValue(t) {
|
|
803
804
|
return this.scale(t) ?? this.getRange()[0];
|
|
804
805
|
}
|
|
805
|
-
}, a(
|
|
806
|
-
constructor(t, i, s, n
|
|
807
|
-
super(t,
|
|
806
|
+
}, a(_c, "BandAxis"), _c), yi = (_d = class extends Mt {
|
|
807
|
+
constructor(t, i, e, s, n) {
|
|
808
|
+
super(t, s, n, i), this.domain = e, this.scale = Rt().domain(this.domain).range(this.getRange());
|
|
808
809
|
}
|
|
809
810
|
getTickValues() {
|
|
810
811
|
return this.scale.ticks();
|
|
811
812
|
}
|
|
812
813
|
recalculateScale() {
|
|
813
814
|
const t = [...this.domain];
|
|
814
|
-
this.axisPosition === "left" && t.reverse(), this.scale =
|
|
815
|
+
this.axisPosition === "left" && t.reverse(), this.scale = Rt().domain(t).range(this.getRange());
|
|
815
816
|
}
|
|
816
817
|
getScaleValue(t) {
|
|
817
818
|
return this.scale(t);
|
|
818
819
|
}
|
|
819
|
-
}, a(
|
|
820
|
-
function
|
|
821
|
-
const n = new
|
|
822
|
-
return
|
|
823
|
-
t,
|
|
820
|
+
}, a(_d, "LinearAxis"), _d);
|
|
821
|
+
function ht(t, i, e, s) {
|
|
822
|
+
const n = new It(s);
|
|
823
|
+
return ut(t) ? new mi(
|
|
824
824
|
i,
|
|
825
|
-
e
|
|
826
|
-
|
|
825
|
+
e,
|
|
826
|
+
t.categories,
|
|
827
|
+
t.title,
|
|
827
828
|
n
|
|
828
|
-
) : new
|
|
829
|
-
t,
|
|
829
|
+
) : new yi(
|
|
830
830
|
i,
|
|
831
|
-
|
|
832
|
-
|
|
831
|
+
e,
|
|
832
|
+
[t.min, t.max],
|
|
833
|
+
t.title,
|
|
833
834
|
n
|
|
834
835
|
);
|
|
835
836
|
}
|
|
836
|
-
a(
|
|
837
|
-
var
|
|
838
|
-
constructor(t, i,
|
|
839
|
-
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData =
|
|
837
|
+
a(ht, "getAxis");
|
|
838
|
+
var bi = (_e = class {
|
|
839
|
+
constructor(t, i, e, s) {
|
|
840
|
+
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = s, this.boundingRect = {
|
|
840
841
|
x: 0,
|
|
841
842
|
y: 0,
|
|
842
843
|
width: 0,
|
|
843
844
|
height: 0
|
|
844
|
-
}, this.showChartTitle =
|
|
845
|
+
}, this.showChartTitle = false;
|
|
845
846
|
}
|
|
846
847
|
setBoundingBoxXY(t) {
|
|
847
848
|
this.boundingRect.x = t.x, this.boundingRect.y = t.y;
|
|
@@ -850,8 +851,8 @@ var U, vi = (U = class {
|
|
|
850
851
|
const i = this.textDimensionCalculator.getMaxDimension(
|
|
851
852
|
[this.chartData.title],
|
|
852
853
|
this.chartConfig.titleFontSize
|
|
853
|
-
),
|
|
854
|
-
return i.width <=
|
|
854
|
+
), e = Math.max(i.width, t.width), s = i.height + 2 * this.chartConfig.titlePadding;
|
|
855
|
+
return i.width <= e && i.height <= s && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = e, this.boundingRect.height = s, this.showChartTitle = true), {
|
|
855
856
|
width: this.boundingRect.width,
|
|
856
857
|
height: this.boundingRect.height
|
|
857
858
|
};
|
|
@@ -875,23 +876,23 @@ var U, vi = (U = class {
|
|
|
875
876
|
]
|
|
876
877
|
}), t;
|
|
877
878
|
}
|
|
878
|
-
}, a(
|
|
879
|
-
function
|
|
880
|
-
const n = new
|
|
881
|
-
return new
|
|
879
|
+
}, a(_e, "ChartTitle"), _e);
|
|
880
|
+
function Vt(t, i, e, s) {
|
|
881
|
+
const n = new It(s);
|
|
882
|
+
return new bi(n, t, i, e);
|
|
882
883
|
}
|
|
883
|
-
a(
|
|
884
|
-
var
|
|
885
|
-
constructor(t, i, s, n
|
|
886
|
-
this.plotData = t, this.xAxis = i, this.yAxis =
|
|
884
|
+
a(Vt, "getChartTitleComponent");
|
|
885
|
+
var Ai = (_f = class {
|
|
886
|
+
constructor(t, i, e, s, n) {
|
|
887
|
+
this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = n;
|
|
887
888
|
}
|
|
888
889
|
getDrawableElement() {
|
|
889
|
-
const t = this.plotData.data.map((
|
|
890
|
-
this.xAxis.getScaleValue(
|
|
891
|
-
this.yAxis.getScaleValue(
|
|
890
|
+
const t = this.plotData.data.map((e) => [
|
|
891
|
+
this.xAxis.getScaleValue(e[0]),
|
|
892
|
+
this.yAxis.getScaleValue(e[1])
|
|
892
893
|
]);
|
|
893
894
|
let i;
|
|
894
|
-
return this.orientation === "horizontal" ? i =
|
|
895
|
+
return this.orientation === "horizontal" ? i = Tt().y((e) => e[0]).x((e) => e[1])(t) : i = Tt().x((e) => e[0]).y((e) => e[1])(t), i ? [
|
|
895
896
|
{
|
|
896
897
|
groupTexts: ["plot", `line-plot-${this.plotIndex}`],
|
|
897
898
|
type: "path",
|
|
@@ -905,24 +906,24 @@ var $, Pi = ($ = class {
|
|
|
905
906
|
}
|
|
906
907
|
] : [];
|
|
907
908
|
}
|
|
908
|
-
}, a(
|
|
909
|
-
constructor(t, i, s, n,
|
|
910
|
-
this.barData = t, this.boundingRect = i, this.xAxis =
|
|
909
|
+
}, a(_f, "LinePlot"), _f), wi = (_g = class {
|
|
910
|
+
constructor(t, i, e, s, n, x) {
|
|
911
|
+
this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = n, this.plotIndex = x;
|
|
911
912
|
}
|
|
912
913
|
getDrawableElement() {
|
|
913
|
-
const t = this.barData.data.map((
|
|
914
|
-
this.xAxis.getScaleValue(
|
|
915
|
-
this.yAxis.getScaleValue(
|
|
916
|
-
]),
|
|
914
|
+
const t = this.barData.data.map((n) => [
|
|
915
|
+
this.xAxis.getScaleValue(n[0]),
|
|
916
|
+
this.yAxis.getScaleValue(n[1])
|
|
917
|
+
]), e = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), s = e / 2;
|
|
917
918
|
return this.orientation === "horizontal" ? [
|
|
918
919
|
{
|
|
919
920
|
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
920
921
|
type: "rect",
|
|
921
|
-
data: t.map((
|
|
922
|
+
data: t.map((n) => ({
|
|
922
923
|
x: this.boundingRect.x,
|
|
923
|
-
y:
|
|
924
|
-
height:
|
|
925
|
-
width:
|
|
924
|
+
y: n[0] - s,
|
|
925
|
+
height: e,
|
|
926
|
+
width: n[1] - this.boundingRect.x,
|
|
926
927
|
fill: this.barData.fill,
|
|
927
928
|
strokeWidth: 0,
|
|
928
929
|
strokeFill: this.barData.fill
|
|
@@ -932,11 +933,11 @@ var $, Pi = ($ = class {
|
|
|
932
933
|
{
|
|
933
934
|
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
934
935
|
type: "rect",
|
|
935
|
-
data: t.map((
|
|
936
|
-
x:
|
|
937
|
-
y:
|
|
938
|
-
width:
|
|
939
|
-
height: this.boundingRect.y + this.boundingRect.height -
|
|
936
|
+
data: t.map((n) => ({
|
|
937
|
+
x: n[0] - s,
|
|
938
|
+
y: n[1],
|
|
939
|
+
width: e,
|
|
940
|
+
height: this.boundingRect.y + this.boundingRect.height - n[1],
|
|
940
941
|
fill: this.barData.fill,
|
|
941
942
|
strokeWidth: 0,
|
|
942
943
|
strokeFill: this.barData.fill
|
|
@@ -944,9 +945,9 @@ var $, Pi = ($ = class {
|
|
|
944
945
|
}
|
|
945
946
|
];
|
|
946
947
|
}
|
|
947
|
-
}, a(
|
|
948
|
-
constructor(t, i,
|
|
949
|
-
this.chartConfig = t, this.chartData = i, this.chartThemeConfig =
|
|
948
|
+
}, a(_g, "BarPlot"), _g), Ci = (_h = class {
|
|
949
|
+
constructor(t, i, e) {
|
|
950
|
+
this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
|
|
950
951
|
x: 0,
|
|
951
952
|
y: 0,
|
|
952
953
|
width: 0,
|
|
@@ -969,111 +970,111 @@ var $, Pi = ($ = class {
|
|
|
969
970
|
if (!(this.xAxis && this.yAxis))
|
|
970
971
|
throw Error("Axes must be passed to render Plots");
|
|
971
972
|
const t = [];
|
|
972
|
-
for (const [i,
|
|
973
|
-
switch (
|
|
973
|
+
for (const [i, e] of this.chartData.plots.entries())
|
|
974
|
+
switch (e.type) {
|
|
974
975
|
case "line":
|
|
975
976
|
{
|
|
976
|
-
const
|
|
977
|
-
|
|
977
|
+
const s = new Ai(
|
|
978
|
+
e,
|
|
978
979
|
this.xAxis,
|
|
979
980
|
this.yAxis,
|
|
980
981
|
this.chartConfig.chartOrientation,
|
|
981
982
|
i
|
|
982
983
|
);
|
|
983
|
-
t.push(...
|
|
984
|
+
t.push(...s.getDrawableElement());
|
|
984
985
|
}
|
|
985
986
|
break;
|
|
986
987
|
case "bar":
|
|
987
988
|
{
|
|
988
|
-
const
|
|
989
|
-
|
|
989
|
+
const s = new wi(
|
|
990
|
+
e,
|
|
990
991
|
this.boundingRect,
|
|
991
992
|
this.xAxis,
|
|
992
993
|
this.yAxis,
|
|
993
994
|
this.chartConfig.chartOrientation,
|
|
994
995
|
i
|
|
995
996
|
);
|
|
996
|
-
t.push(...
|
|
997
|
+
t.push(...s.getDrawableElement());
|
|
997
998
|
}
|
|
998
999
|
break;
|
|
999
1000
|
}
|
|
1000
1001
|
return t;
|
|
1001
1002
|
}
|
|
1002
|
-
}, a(
|
|
1003
|
-
function
|
|
1004
|
-
return new
|
|
1003
|
+
}, a(_h, "BasePlot"), _h);
|
|
1004
|
+
function Bt(t, i, e) {
|
|
1005
|
+
return new Ci(t, i, e);
|
|
1005
1006
|
}
|
|
1006
|
-
a(
|
|
1007
|
-
var
|
|
1008
|
-
constructor(t, i,
|
|
1007
|
+
a(Bt, "getPlotComponent");
|
|
1008
|
+
var Si = (_i2 = class {
|
|
1009
|
+
constructor(t, i, e, s) {
|
|
1009
1010
|
this.chartConfig = t, this.chartData = i, this.componentStore = {
|
|
1010
|
-
title:
|
|
1011
|
-
plot:
|
|
1012
|
-
xAxis:
|
|
1011
|
+
title: Vt(t, i, e, s),
|
|
1012
|
+
plot: Bt(t, i, e),
|
|
1013
|
+
xAxis: ht(
|
|
1013
1014
|
i.xAxis,
|
|
1014
1015
|
t.xAxis,
|
|
1015
1016
|
{
|
|
1016
|
-
titleColor:
|
|
1017
|
-
labelColor:
|
|
1018
|
-
tickColor:
|
|
1019
|
-
axisLineColor:
|
|
1017
|
+
titleColor: e.xAxisTitleColor,
|
|
1018
|
+
labelColor: e.xAxisLabelColor,
|
|
1019
|
+
tickColor: e.xAxisTickColor,
|
|
1020
|
+
axisLineColor: e.xAxisLineColor
|
|
1020
1021
|
},
|
|
1021
|
-
|
|
1022
|
+
s
|
|
1022
1023
|
),
|
|
1023
|
-
yAxis:
|
|
1024
|
+
yAxis: ht(
|
|
1024
1025
|
i.yAxis,
|
|
1025
1026
|
t.yAxis,
|
|
1026
1027
|
{
|
|
1027
|
-
titleColor:
|
|
1028
|
-
labelColor:
|
|
1029
|
-
tickColor:
|
|
1030
|
-
axisLineColor:
|
|
1028
|
+
titleColor: e.yAxisTitleColor,
|
|
1029
|
+
labelColor: e.yAxisLabelColor,
|
|
1030
|
+
tickColor: e.yAxisTickColor,
|
|
1031
|
+
axisLineColor: e.yAxisLineColor
|
|
1031
1032
|
},
|
|
1032
|
-
|
|
1033
|
+
s
|
|
1033
1034
|
)
|
|
1034
1035
|
};
|
|
1035
1036
|
}
|
|
1036
1037
|
calculateVerticalSpace() {
|
|
1037
|
-
let t = this.chartConfig.width, i = this.chartConfig.height,
|
|
1038
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), x = Math.floor(
|
|
1038
1039
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1039
|
-
),
|
|
1040
|
-
width:
|
|
1041
|
-
height:
|
|
1040
|
+
), u = this.componentStore.plot.calculateSpace({
|
|
1041
|
+
width: n,
|
|
1042
|
+
height: x
|
|
1042
1043
|
});
|
|
1043
|
-
t -=
|
|
1044
|
+
t -= u.width, i -= u.height, u = this.componentStore.title.calculateSpace({
|
|
1044
1045
|
width: this.chartConfig.width,
|
|
1045
1046
|
height: i
|
|
1046
|
-
}),
|
|
1047
|
+
}), s = u.height, i -= u.height, this.componentStore.xAxis.setAxisPosition("bottom"), u = this.componentStore.xAxis.calculateSpace({
|
|
1047
1048
|
width: t,
|
|
1048
1049
|
height: i
|
|
1049
|
-
}), i -=
|
|
1050
|
+
}), i -= u.height, this.componentStore.yAxis.setAxisPosition("left"), u = this.componentStore.yAxis.calculateSpace({
|
|
1050
1051
|
width: t,
|
|
1051
1052
|
height: i
|
|
1052
|
-
}),
|
|
1053
|
-
width:
|
|
1054
|
-
height:
|
|
1055
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x:
|
|
1053
|
+
}), e = u.width, t -= u.width, t > 0 && (n += t, t = 0), i > 0 && (x += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1054
|
+
width: n,
|
|
1055
|
+
height: x
|
|
1056
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + n]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + x }), this.componentStore.yAxis.setRange([s, s + x]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((p) => rt(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1056
1057
|
}
|
|
1057
1058
|
calculateHorizontalSpace() {
|
|
1058
|
-
let t = this.chartConfig.width, i = this.chartConfig.height,
|
|
1059
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = 0, x = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), u = Math.floor(
|
|
1059
1060
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1060
1061
|
), p = this.componentStore.plot.calculateSpace({
|
|
1061
|
-
width:
|
|
1062
|
-
height:
|
|
1062
|
+
width: x,
|
|
1063
|
+
height: u
|
|
1063
1064
|
});
|
|
1064
1065
|
t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
|
|
1065
1066
|
width: this.chartConfig.width,
|
|
1066
1067
|
height: i
|
|
1067
|
-
}),
|
|
1068
|
+
}), e = p.height, i -= p.height, this.componentStore.xAxis.setAxisPosition("left"), p = this.componentStore.xAxis.calculateSpace({
|
|
1068
1069
|
width: t,
|
|
1069
1070
|
height: i
|
|
1070
|
-
}), t -= p.width,
|
|
1071
|
+
}), t -= p.width, s = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
|
|
1071
1072
|
width: t,
|
|
1072
1073
|
height: i
|
|
1073
|
-
}), i -= p.height,
|
|
1074
|
-
width:
|
|
1075
|
-
height:
|
|
1076
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x:
|
|
1074
|
+
}), i -= p.height, n = e + p.height, t > 0 && (x += t, t = 0), i > 0 && (u += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1075
|
+
width: x,
|
|
1076
|
+
height: u
|
|
1077
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.yAxis.setRange([s, s + x]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([n, n + u]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((C) => rt(C)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1077
1078
|
}
|
|
1078
1079
|
calculateSpace() {
|
|
1079
1080
|
this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
|
|
@@ -1086,25 +1087,25 @@ var j, Ii = (j = class {
|
|
|
1086
1087
|
t.push(...i.getDrawableElements());
|
|
1087
1088
|
return t;
|
|
1088
1089
|
}
|
|
1089
|
-
}, a(
|
|
1090
|
-
static build(t, i,
|
|
1091
|
-
return new
|
|
1090
|
+
}, a(_i2, "Orchestrator"), _i2), _i = (_j = class {
|
|
1091
|
+
static build(t, i, e, s) {
|
|
1092
|
+
return new Si(t, i, e, s).getDrawableElement();
|
|
1092
1093
|
}
|
|
1093
|
-
}, a(
|
|
1094
|
-
function
|
|
1095
|
-
const
|
|
1096
|
-
return
|
|
1094
|
+
}, a(_j, "XYChartBuilder"), _j), Y = 0, Wt, H = dt(), U = xt(), y = pt(), lt = U.plotColorPalette.split(",").map((t) => t.trim()), K = false, gt = false;
|
|
1095
|
+
function xt() {
|
|
1096
|
+
const t = ci(), i = ct();
|
|
1097
|
+
return Et(t.xyChart, i.themeVariables.xyChart);
|
|
1097
1098
|
}
|
|
1098
|
-
a(
|
|
1099
|
-
function
|
|
1100
|
-
const
|
|
1101
|
-
return
|
|
1102
|
-
|
|
1103
|
-
|
|
1099
|
+
a(xt, "getChartDefaultThemeConfig");
|
|
1100
|
+
function dt() {
|
|
1101
|
+
const t = ct();
|
|
1102
|
+
return Et(
|
|
1103
|
+
li.xyChart,
|
|
1104
|
+
t.xyChart
|
|
1104
1105
|
);
|
|
1105
1106
|
}
|
|
1106
|
-
a(
|
|
1107
|
-
function
|
|
1107
|
+
a(dt, "getChartDefaultConfig");
|
|
1108
|
+
function pt() {
|
|
1108
1109
|
return {
|
|
1109
1110
|
yAxis: {
|
|
1110
1111
|
type: "linear",
|
|
@@ -1121,180 +1122,180 @@ function kt() {
|
|
|
1121
1122
|
plots: []
|
|
1122
1123
|
};
|
|
1123
1124
|
}
|
|
1124
|
-
a(
|
|
1125
|
-
function
|
|
1126
|
-
const
|
|
1127
|
-
return
|
|
1125
|
+
a(pt, "getChartDefaultData");
|
|
1126
|
+
function Z(t) {
|
|
1127
|
+
const i = ct();
|
|
1128
|
+
return ui(t.trim(), i);
|
|
1128
1129
|
}
|
|
1129
|
-
a(
|
|
1130
|
-
function
|
|
1131
|
-
|
|
1130
|
+
a(Z, "textSanitizer");
|
|
1131
|
+
function Ot(t) {
|
|
1132
|
+
Wt = t;
|
|
1132
1133
|
}
|
|
1133
|
-
a(
|
|
1134
|
-
function
|
|
1135
|
-
|
|
1134
|
+
a(Ot, "setTmpSVGG");
|
|
1135
|
+
function zt(t) {
|
|
1136
|
+
t === "horizontal" ? H.chartOrientation = "horizontal" : H.chartOrientation = "vertical";
|
|
1136
1137
|
}
|
|
1137
|
-
a(
|
|
1138
|
-
function
|
|
1139
|
-
|
|
1138
|
+
a(zt, "setOrientation");
|
|
1139
|
+
function Ft(t) {
|
|
1140
|
+
y.xAxis.title = Z(t.text);
|
|
1140
1141
|
}
|
|
1141
|
-
a(
|
|
1142
|
-
function
|
|
1143
|
-
|
|
1142
|
+
a(Ft, "setXAxisTitle");
|
|
1143
|
+
function ft(t, i) {
|
|
1144
|
+
y.xAxis = { type: "linear", title: y.xAxis.title, min: t, max: i }, K = true;
|
|
1144
1145
|
}
|
|
1145
|
-
a(
|
|
1146
|
-
function
|
|
1147
|
-
|
|
1146
|
+
a(ft, "setXAxisRangeData");
|
|
1147
|
+
function Xt(t) {
|
|
1148
|
+
y.xAxis = {
|
|
1148
1149
|
type: "band",
|
|
1149
|
-
title:
|
|
1150
|
-
categories:
|
|
1151
|
-
},
|
|
1150
|
+
title: y.xAxis.title,
|
|
1151
|
+
categories: t.map((i) => Z(i.text))
|
|
1152
|
+
}, K = true;
|
|
1152
1153
|
}
|
|
1153
|
-
a(
|
|
1154
|
-
function
|
|
1155
|
-
|
|
1154
|
+
a(Xt, "setXAxisBand");
|
|
1155
|
+
function Nt(t) {
|
|
1156
|
+
y.yAxis.title = Z(t.text);
|
|
1156
1157
|
}
|
|
1157
|
-
a(
|
|
1158
|
-
function
|
|
1159
|
-
|
|
1158
|
+
a(Nt, "setYAxisTitle");
|
|
1159
|
+
function Yt(t, i) {
|
|
1160
|
+
y.yAxis = { type: "linear", title: y.yAxis.title, min: t, max: i }, gt = true;
|
|
1160
1161
|
}
|
|
1161
|
-
a(
|
|
1162
|
-
function
|
|
1163
|
-
const
|
|
1164
|
-
|
|
1162
|
+
a(Yt, "setYAxisRangeData");
|
|
1163
|
+
function Ht(t) {
|
|
1164
|
+
const i = Math.min(...t), e = Math.max(...t), s = F(y.yAxis) ? y.yAxis.min : 1 / 0, n = F(y.yAxis) ? y.yAxis.max : -1 / 0;
|
|
1165
|
+
y.yAxis = {
|
|
1165
1166
|
type: "linear",
|
|
1166
|
-
title:
|
|
1167
|
-
min: Math.min(s,
|
|
1168
|
-
max: Math.max(n,
|
|
1167
|
+
title: y.yAxis.title,
|
|
1168
|
+
min: Math.min(s, i),
|
|
1169
|
+
max: Math.max(n, e)
|
|
1169
1170
|
};
|
|
1170
1171
|
}
|
|
1171
|
-
a(
|
|
1172
|
-
function
|
|
1173
|
-
let
|
|
1174
|
-
if (
|
|
1175
|
-
return
|
|
1176
|
-
if (!
|
|
1177
|
-
const
|
|
1178
|
-
|
|
1172
|
+
a(Ht, "setYAxisRangeFromPlotData");
|
|
1173
|
+
function mt(t) {
|
|
1174
|
+
let i = [];
|
|
1175
|
+
if (t.length === 0)
|
|
1176
|
+
return i;
|
|
1177
|
+
if (!K) {
|
|
1178
|
+
const e = F(y.xAxis) ? y.xAxis.min : 1 / 0, s = F(y.xAxis) ? y.xAxis.max : -1 / 0;
|
|
1179
|
+
ft(Math.min(e, 1), Math.max(s, t.length));
|
|
1179
1180
|
}
|
|
1180
|
-
if (
|
|
1181
|
-
const
|
|
1182
|
-
for (let u =
|
|
1183
|
-
|
|
1184
|
-
|
|
1181
|
+
if (gt || Ht(t), ut(y.xAxis) && (i = y.xAxis.categories.map((e, s) => [e, t[s]])), F(y.xAxis)) {
|
|
1182
|
+
const e = y.xAxis.min, s = y.xAxis.max, n = (s - e) / (t.length - 1), x = [];
|
|
1183
|
+
for (let u = e; u <= s; u += n)
|
|
1184
|
+
x.push(`${u}`);
|
|
1185
|
+
i = x.map((u, p) => [u, t[p]]);
|
|
1185
1186
|
}
|
|
1186
|
-
return
|
|
1187
|
+
return i;
|
|
1187
1188
|
}
|
|
1188
|
-
a(
|
|
1189
|
-
function
|
|
1190
|
-
return
|
|
1189
|
+
a(mt, "transformDataWithoutCategory");
|
|
1190
|
+
function yt(t) {
|
|
1191
|
+
return lt[t === 0 ? 0 : t % lt.length];
|
|
1191
1192
|
}
|
|
1192
|
-
a(
|
|
1193
|
-
function
|
|
1194
|
-
const
|
|
1195
|
-
|
|
1193
|
+
a(yt, "getPlotColorFromPalette");
|
|
1194
|
+
function Ut(t, i) {
|
|
1195
|
+
const e = mt(i);
|
|
1196
|
+
y.plots.push({
|
|
1196
1197
|
type: "line",
|
|
1197
|
-
strokeFill:
|
|
1198
|
+
strokeFill: yt(Y),
|
|
1198
1199
|
strokeWidth: 2,
|
|
1199
|
-
data:
|
|
1200
|
-
}),
|
|
1200
|
+
data: e
|
|
1201
|
+
}), Y++;
|
|
1201
1202
|
}
|
|
1202
|
-
a(
|
|
1203
|
-
function
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1203
|
+
a(Ut, "setLineData");
|
|
1204
|
+
function $t(t, i) {
|
|
1205
|
+
const e = mt(i);
|
|
1206
|
+
y.plots.push({
|
|
1206
1207
|
type: "bar",
|
|
1207
|
-
fill:
|
|
1208
|
-
data:
|
|
1209
|
-
}),
|
|
1208
|
+
fill: yt(Y),
|
|
1209
|
+
data: e
|
|
1210
|
+
}), Y++;
|
|
1210
1211
|
}
|
|
1211
|
-
a(
|
|
1212
|
-
function
|
|
1213
|
-
if (
|
|
1212
|
+
a($t, "setBarData");
|
|
1213
|
+
function qt() {
|
|
1214
|
+
if (y.plots.length === 0)
|
|
1214
1215
|
throw Error("No Plot to render, please provide a plot with some data");
|
|
1215
|
-
return
|
|
1216
|
+
return y.title = Pt(), _i.build(H, y, U, Wt);
|
|
1216
1217
|
}
|
|
1217
|
-
a(
|
|
1218
|
-
function
|
|
1219
|
-
return
|
|
1218
|
+
a(qt, "getDrawableElem");
|
|
1219
|
+
function Gt() {
|
|
1220
|
+
return U;
|
|
1220
1221
|
}
|
|
1221
|
-
a(
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1222
|
+
a(Gt, "getChartThemeConfig");
|
|
1223
|
+
function jt() {
|
|
1224
|
+
return H;
|
|
1224
1225
|
}
|
|
1225
|
-
a(
|
|
1226
|
-
var
|
|
1227
|
-
|
|
1228
|
-
}, "clear"),
|
|
1229
|
-
getDrawableElem:
|
|
1230
|
-
clear:
|
|
1231
|
-
setAccTitle:
|
|
1232
|
-
getAccTitle:
|
|
1233
|
-
setDiagramTitle:
|
|
1234
|
-
getDiagramTitle:
|
|
1235
|
-
getAccDescription:
|
|
1236
|
-
setAccDescription:
|
|
1237
|
-
setOrientation:
|
|
1238
|
-
setXAxisTitle:
|
|
1239
|
-
setXAxisRangeData:
|
|
1240
|
-
setXAxisBand:
|
|
1241
|
-
setYAxisTitle:
|
|
1242
|
-
setYAxisRangeData:
|
|
1243
|
-
setLineData:
|
|
1244
|
-
setBarData:
|
|
1245
|
-
setTmpSVGG:
|
|
1246
|
-
getChartThemeConfig:
|
|
1247
|
-
getChartConfig:
|
|
1248
|
-
},
|
|
1249
|
-
const n = s.db,
|
|
1250
|
-
function f
|
|
1251
|
-
return
|
|
1226
|
+
a(jt, "getChartConfig");
|
|
1227
|
+
var ki = /* @__PURE__ */ a(function() {
|
|
1228
|
+
hi(), Y = 0, H = dt(), y = pt(), U = xt(), lt = U.plotColorPalette.split(",").map((t) => t.trim()), K = false, gt = false;
|
|
1229
|
+
}, "clear"), Ri = {
|
|
1230
|
+
getDrawableElem: qt,
|
|
1231
|
+
clear: ki,
|
|
1232
|
+
setAccTitle: ai,
|
|
1233
|
+
getAccTitle: ni,
|
|
1234
|
+
setDiagramTitle: si,
|
|
1235
|
+
getDiagramTitle: Pt,
|
|
1236
|
+
getAccDescription: ei,
|
|
1237
|
+
setAccDescription: ii,
|
|
1238
|
+
setOrientation: zt,
|
|
1239
|
+
setXAxisTitle: Ft,
|
|
1240
|
+
setXAxisRangeData: ft,
|
|
1241
|
+
setXAxisBand: Xt,
|
|
1242
|
+
setYAxisTitle: Nt,
|
|
1243
|
+
setYAxisRangeData: Yt,
|
|
1244
|
+
setLineData: Ut,
|
|
1245
|
+
setBarData: $t,
|
|
1246
|
+
setTmpSVGG: Ot,
|
|
1247
|
+
getChartThemeConfig: Gt,
|
|
1248
|
+
getChartConfig: jt
|
|
1249
|
+
}, Ti = /* @__PURE__ */ a((t, i, e, s) => {
|
|
1250
|
+
const n = s.db, x = n.getChartThemeConfig(), u = n.getChartConfig();
|
|
1251
|
+
function p(f) {
|
|
1252
|
+
return f === "top" ? "text-before-edge" : "middle";
|
|
1252
1253
|
}
|
|
1253
|
-
a(
|
|
1254
|
-
function
|
|
1255
|
-
return
|
|
1254
|
+
a(p, "getDominantBaseLine");
|
|
1255
|
+
function C(f) {
|
|
1256
|
+
return f === "left" ? "start" : f === "right" ? "end" : "middle";
|
|
1256
1257
|
}
|
|
1257
|
-
a(
|
|
1258
|
-
function
|
|
1259
|
-
return `translate(${
|
|
1258
|
+
a(C, "getTextAnchor");
|
|
1259
|
+
function T(f) {
|
|
1260
|
+
return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
|
|
1260
1261
|
}
|
|
1261
|
-
a(
|
|
1262
|
-
` +
|
|
1263
|
-
const
|
|
1264
|
-
|
|
1262
|
+
a(T, "getTextTransformation"), Lt.debug(`Rendering xychart chart
|
|
1263
|
+
` + t);
|
|
1264
|
+
const k = oi(i), A = k.append("g").attr("class", "main"), m = A.append("rect").attr("width", u.width).attr("height", u.height).attr("class", "background");
|
|
1265
|
+
ri(k, u.height, u.width, true), k.attr("viewBox", `0 0 ${u.width} ${u.height}`), m.attr("fill", x.backgroundColor), n.setTmpSVGG(k.append("g").attr("class", "mermaid-tmp-group"));
|
|
1265
1266
|
const D = n.getDrawableElem(), S = {};
|
|
1266
|
-
function v(
|
|
1267
|
-
let _ =
|
|
1268
|
-
for (const [E] of
|
|
1269
|
-
let
|
|
1270
|
-
E > 0 && S[
|
|
1267
|
+
function v(f) {
|
|
1268
|
+
let _ = A, h = "";
|
|
1269
|
+
for (const [E] of f.entries()) {
|
|
1270
|
+
let X = A;
|
|
1271
|
+
E > 0 && S[h] && (X = S[h]), h += f[E], _ = S[h], _ || (_ = S[h] = X.append("g").attr("class", f[E]));
|
|
1271
1272
|
}
|
|
1272
1273
|
return _;
|
|
1273
1274
|
}
|
|
1274
1275
|
a(v, "getGroup");
|
|
1275
|
-
for (const
|
|
1276
|
-
if (
|
|
1276
|
+
for (const f of D) {
|
|
1277
|
+
if (f.data.length === 0)
|
|
1277
1278
|
continue;
|
|
1278
|
-
const _ = v(
|
|
1279
|
-
switch (
|
|
1279
|
+
const _ = v(f.groupTexts);
|
|
1280
|
+
switch (f.type) {
|
|
1280
1281
|
case "rect":
|
|
1281
|
-
_.selectAll("rect").data(
|
|
1282
|
+
_.selectAll("rect").data(f.data).enter().append("rect").attr("x", (h) => h.x).attr("y", (h) => h.y).attr("width", (h) => h.width).attr("height", (h) => h.height).attr("fill", (h) => h.fill).attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth);
|
|
1282
1283
|
break;
|
|
1283
1284
|
case "text":
|
|
1284
|
-
_.selectAll("text").data(
|
|
1285
|
+
_.selectAll("text").data(f.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (h) => h.fill).attr("font-size", (h) => h.fontSize).attr("dominant-baseline", (h) => p(h.verticalPos)).attr("text-anchor", (h) => C(h.horizontalPos)).attr("transform", (h) => T(h)).text((h) => h.text);
|
|
1285
1286
|
break;
|
|
1286
1287
|
case "path":
|
|
1287
|
-
_.selectAll("path").data(
|
|
1288
|
+
_.selectAll("path").data(f.data).enter().append("path").attr("d", (h) => h.path).attr("fill", (h) => h.fill ? h.fill : "none").attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth);
|
|
1288
1289
|
break;
|
|
1289
1290
|
}
|
|
1290
1291
|
}
|
|
1291
|
-
}, "draw"),
|
|
1292
|
-
draw:
|
|
1293
|
-
},
|
|
1294
|
-
parser:
|
|
1295
|
-
db:
|
|
1296
|
-
renderer:
|
|
1292
|
+
}, "draw"), Di = {
|
|
1293
|
+
draw: Ti
|
|
1294
|
+
}, Vi = {
|
|
1295
|
+
parser: fi,
|
|
1296
|
+
db: Ri,
|
|
1297
|
+
renderer: Di
|
|
1297
1298
|
};
|
|
1298
1299
|
export {
|
|
1299
|
-
|
|
1300
|
+
Vi as diagram
|
|
1300
1301
|
};
|