@ucap-llm/ai-ui 1.1.20 → 1.1.22
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/_basePickBy-49aBLVXj.mjs +151 -0
- package/_baseUniq-Duw-LCxN.mjs +418 -0
- package/ai-ui.es.js +5 -5
- package/ai-ui.umd.js +441 -398
- package/{arc-e33cf4bd.mjs → arc-CxnBoKcf.mjs} +3 -5
- package/architecture-4AB2E3PP-DpATI33S.mjs +5 -0
- package/{architectureDiagram-IEHRJDOE-8c0644d3.mjs → architectureDiagram-IEHRJDOE-CaoKd3s2.mjs} +774 -781
- package/{blockDiagram-JOT3LUYC-2e03b1f8.mjs → blockDiagram-JOT3LUYC-Dno4VG8f.mjs} +17 -21
- package/{c4Diagram-VJAJSXHY-0d7e02b1.mjs → c4Diagram-VJAJSXHY-D5HK6aXG.mjs} +45 -47
- package/channel-CjgQSUhn.mjs +5 -0
- package/{chunk-4BMEZGHF-c55a79e8.mjs → chunk-4BMEZGHF-B5q96F5j.mjs} +1 -1
- package/{chunk-A2AXSNBT-72cb8e03.mjs → chunk-A2AXSNBT-CwIw1dro.mjs} +31 -32
- package/{chunk-AEK57VVT-103a8016.mjs → chunk-AEK57VVT-CgqpfRdv.mjs} +29 -30
- package/{chunk-D6G4REZN-eb0c0a03.mjs → chunk-D6G4REZN-BuQQgKKf.mjs} +24 -24
- package/chunk-RZ5BOZE2-nBulgjak.mjs +24 -0
- package/{chunk-XZIHB7SX-697eddab.mjs → chunk-XZIHB7SX-ChfFX5tX.mjs} +1 -1
- package/classDiagram-GIVACNV2-DW4s6Pgr.mjs +16 -0
- package/classDiagram-v2-COTLJTTW-DW4s6Pgr.mjs +16 -0
- package/{clone-e06e1908.mjs → clone-BWxZJOIB.mjs} +1 -1
- package/{cytoscape.esm-9ffb4bbe.mjs → cytoscape.esm-D1A2YP3J.mjs} +133 -240
- package/{dagre-OKDRZEBW-1380cf0d.mjs → dagre-OKDRZEBW-BF7VSsgY.mjs} +25 -26
- package/{diagram-SSKATNLV-1e22cab7.mjs → diagram-SSKATNLV-BHV-tmQz.mjs} +48 -52
- package/{diagram-VNBRO52H-63b9b854.mjs → diagram-VNBRO52H-DhnmXzVl.mjs} +31 -35
- package/{erDiagram-Q7BY3M3F-6f4f40c6.mjs → erDiagram-Q7BY3M3F-yoOr4S3e.mjs} +32 -34
- package/{flowDiagram-4HSFHLVR-217f422a.mjs → flowDiagram-4HSFHLVR-Dypn-7OY.mjs} +21 -23
- package/{ganttDiagram-APWFNJXF-b1c138fc.mjs → ganttDiagram-APWFNJXF-Bpg6PwzQ.mjs} +933 -961
- package/gitGraph-O2Q2CXLX-B57Ivesv.mjs +5 -0
- package/{gitGraphDiagram-7IBYFJ6S-a40cd00c.mjs → gitGraphDiagram-7IBYFJ6S-C2SKSevj.mjs} +27 -31
- package/{graph-c2e1b9d5.mjs → graph-BqoU6xY2.mjs} +7 -9
- package/{index-4283477e.mjs → index-LXAHF7dZ.mjs} +56792 -32545
- package/info-4N47QTOZ-rUYWBWKH.mjs +5 -0
- package/infoDiagram-PH2N3AL5-Dwh9BN3B.mjs +22 -0
- package/{journeyDiagram-U35MCT3I-ea34e89d.mjs → journeyDiagram-U35MCT3I-BuJo6oNZ.mjs} +26 -28
- package/{kanban-definition-NDS4AKOZ-3dc1bdfc.mjs → kanban-definition-NDS4AKOZ-3bBL0X_A.mjs} +22 -23
- package/{layout-b7402112.mjs → layout-UCl5QdSx.mjs} +288 -308
- package/{linear-6028b26a.mjs → linear-5kjmVbWx.mjs} +136 -160
- package/{mermaid-parser.core-89f41f6f.mjs → mermaid-parser.core-BTQeWTCL.mjs} +2510 -2520
- package/{mindmap-definition-ALO5MXBD-cf0036bd.mjs → mindmap-definition-ALO5MXBD-pyGAc115.mjs} +309 -311
- package/{ordinal-980380c7.mjs → ordinal-C0oynhte.mjs} +4 -8
- package/package.json +2 -2
- package/packet-KVYON367-B0aEJOd2.mjs +5 -0
- package/pie-R6RNRRYF-mat_xgAT.mjs +5 -0
- package/pieDiagram-IB7DONF6-Dfr5jCmu.mjs +161 -0
- package/{quadrantDiagram-7GDLP6J5-4e41575d.mjs → quadrantDiagram-7GDLP6J5-CUP0tYJI.mjs} +28 -31
- package/radar-MK3ICKWK-ae8hsHN1.mjs +5 -0
- package/{requirementDiagram-KVF5MWMF-edfb0543.mjs → requirementDiagram-KVF5MWMF-O1db62rc.mjs} +47 -49
- package/{sankeyDiagram-QLVOVGJD-c0853822.mjs → sankeyDiagram-QLVOVGJD-CCf-MSR0.mjs} +113 -131
- package/{sequenceDiagram-X6HHIX6F-96ff1e7c.mjs → sequenceDiagram-X6HHIX6F-CrB4QPFZ.mjs} +40 -42
- package/{stateDiagram-DGXRK772-7c6ceb1c.mjs → stateDiagram-DGXRK772-DWFrvHEL.mjs} +8 -12
- package/stateDiagram-v2-YXO3MK2T-BuEm2W4g.mjs +16 -0
- package/style.css +10 -1
- package/{timeline-definition-BDJGKUSR-23f3d39c.mjs → timeline-definition-BDJGKUSR-ThsfvZPa.mjs} +11 -13
- package/{xychartDiagram-VJFVF3MP-9b2268b5.mjs → xychartDiagram-VJFVF3MP-D7Ns77UK.mjs} +161 -163
- package/_basePickBy-576eaf6e.mjs +0 -153
- package/_baseUniq-83e8b0cb.mjs +0 -440
- package/architecture-4AB2E3PP-1faad353.mjs +0 -10
- package/channel-283b31f1.mjs +0 -5
- package/chunk-RZ5BOZE2-97e0c31b.mjs +0 -24
- package/classDiagram-GIVACNV2-306a98b6.mjs +0 -18
- package/classDiagram-v2-COTLJTTW-306a98b6.mjs +0 -18
- package/gitGraph-O2Q2CXLX-804a8ebe.mjs +0 -10
- package/info-4N47QTOZ-6f3c3677.mjs +0 -10
- package/infoDiagram-PH2N3AL5-4c0f80b6.mjs +0 -26
- package/packet-KVYON367-3ead67ef.mjs +0 -10
- package/pie-R6RNRRYF-41122910.mjs +0 -10
- package/pieDiagram-IB7DONF6-9b4a5b06.mjs +0 -167
- package/radar-MK3ICKWK-0d996d37.mjs +0 -10
- package/stateDiagram-v2-YXO3MK2T-012aec41.mjs +0 -18
- /package/{init-f9637058.mjs → init-DjUOC4st.mjs} +0 -0
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { _ as a,
|
|
2
|
-
import { i as Si } from "./init-
|
|
3
|
-
import { o as _i } from "./ordinal-
|
|
4
|
-
import { l as Wt } from "./linear-
|
|
5
|
-
import "vue";
|
|
1
|
+
import { _ as a, s as ui, g as gi, q as zt, p as xi, a as di, b as pi, l as Xt, H as fi, e as mi, y as yi, E as At, D as Nt, F as bi, K as Ai, i as wi, aF as Ci, Q as Bt } from "./index-LXAHF7dZ.mjs";
|
|
2
|
+
import { i as Si } from "./init-DjUOC4st.mjs";
|
|
3
|
+
import { o as _i } from "./ordinal-C0oynhte.mjs";
|
|
4
|
+
import { l as Wt } from "./linear-5kjmVbWx.mjs";
|
|
6
5
|
function ki(e, t, i) {
|
|
7
6
|
e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
|
|
8
|
-
for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0,
|
|
9
|
-
|
|
10
|
-
return
|
|
7
|
+
for (var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n; )
|
|
8
|
+
o[s] = e + s * i;
|
|
9
|
+
return o;
|
|
11
10
|
}
|
|
12
11
|
function pt() {
|
|
13
|
-
var e = _i().unknown(void 0), t = e.domain, i = e.range, s = 0, n = 1,
|
|
12
|
+
var e = _i().unknown(void 0), t = e.domain, i = e.range, s = 0, n = 1, o, u, f = !1, p = 0, k = 0, R = 0.5;
|
|
14
13
|
delete e.unknown;
|
|
15
14
|
function w() {
|
|
16
15
|
var y = t().length, D = n < s, S = D ? n : s, v = D ? s : n;
|
|
17
|
-
|
|
16
|
+
o = (v - S) / Math.max(1, y - p + k * 2), f && (o = Math.floor(o)), S += (v - S - o * (y - p)) * R, u = o * (1 - p), f && (S = Math.round(S), u = Math.round(u));
|
|
18
17
|
var m = ki(y).map(function(_) {
|
|
19
|
-
return S +
|
|
18
|
+
return S + o * _;
|
|
20
19
|
});
|
|
21
20
|
return i(D ? m.reverse() : m);
|
|
22
21
|
}
|
|
@@ -29,7 +28,7 @@ function pt() {
|
|
|
29
28
|
}, e.bandwidth = function() {
|
|
30
29
|
return u;
|
|
31
30
|
}, e.step = function() {
|
|
32
|
-
return
|
|
31
|
+
return o;
|
|
33
32
|
}, e.round = function(y) {
|
|
34
33
|
return arguments.length ? (f = !!y, w()) : f;
|
|
35
34
|
}, e.padding = function(y) {
|
|
@@ -46,107 +45,106 @@ function pt() {
|
|
|
46
45
|
}
|
|
47
46
|
var ft = function() {
|
|
48
47
|
var e = /* @__PURE__ */ a(function(B, h, c, g) {
|
|
49
|
-
for (c = c || {}, g = B.length; g--; c[B[g]] = h)
|
|
50
|
-
;
|
|
48
|
+
for (c = c || {}, g = B.length; g--; c[B[g]] = h) ;
|
|
51
49
|
return c;
|
|
52
|
-
}, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], s = [1, 3], n = [1, 5],
|
|
50
|
+
}, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], s = [1, 3], n = [1, 5], o = [1, 6], u = [1, 7], f = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], p = [1, 25], k = [1, 26], R = [1, 28], w = [1, 29], y = [1, 30], D = [1, 31], S = [1, 32], v = [1, 33], m = [1, 34], _ = [1, 35], l = [1, 36], E = [1, 37], K = [1, 43], vt = [1, 42], Pt = [1, 47], et = [1, 50], C = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], lt = [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], Lt = [1, 64], ct = {
|
|
53
51
|
trace: /* @__PURE__ */ a(function() {
|
|
54
52
|
}, "trace"),
|
|
55
53
|
yy: {},
|
|
56
54
|
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 },
|
|
57
55
|
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" },
|
|
58
56
|
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]],
|
|
59
|
-
performAction: /* @__PURE__ */ a(function(h, c, g, x, A,
|
|
60
|
-
var d =
|
|
57
|
+
performAction: /* @__PURE__ */ a(function(h, c, g, x, A, r, Z) {
|
|
58
|
+
var d = r.length - 1;
|
|
61
59
|
switch (A) {
|
|
62
60
|
case 5:
|
|
63
|
-
x.setOrientation(
|
|
61
|
+
x.setOrientation(r[d]);
|
|
64
62
|
break;
|
|
65
63
|
case 9:
|
|
66
|
-
x.setDiagramTitle(
|
|
64
|
+
x.setDiagramTitle(r[d].text.trim());
|
|
67
65
|
break;
|
|
68
66
|
case 12:
|
|
69
|
-
x.setLineData({ text: "", type: "text" },
|
|
67
|
+
x.setLineData({ text: "", type: "text" }, r[d]);
|
|
70
68
|
break;
|
|
71
69
|
case 13:
|
|
72
|
-
x.setLineData(
|
|
70
|
+
x.setLineData(r[d - 1], r[d]);
|
|
73
71
|
break;
|
|
74
72
|
case 14:
|
|
75
|
-
x.setBarData({ text: "", type: "text" },
|
|
73
|
+
x.setBarData({ text: "", type: "text" }, r[d]);
|
|
76
74
|
break;
|
|
77
75
|
case 15:
|
|
78
|
-
x.setBarData(
|
|
76
|
+
x.setBarData(r[d - 1], r[d]);
|
|
79
77
|
break;
|
|
80
78
|
case 16:
|
|
81
|
-
this.$ =
|
|
79
|
+
this.$ = r[d].trim(), x.setAccTitle(this.$);
|
|
82
80
|
break;
|
|
83
81
|
case 17:
|
|
84
82
|
case 18:
|
|
85
|
-
this.$ =
|
|
83
|
+
this.$ = r[d].trim(), x.setAccDescription(this.$);
|
|
86
84
|
break;
|
|
87
85
|
case 19:
|
|
88
|
-
this.$ =
|
|
86
|
+
this.$ = r[d - 1];
|
|
89
87
|
break;
|
|
90
88
|
case 20:
|
|
91
|
-
this.$ = [Number(
|
|
89
|
+
this.$ = [Number(r[d - 2]), ...r[d]];
|
|
92
90
|
break;
|
|
93
91
|
case 21:
|
|
94
|
-
this.$ = [Number(
|
|
92
|
+
this.$ = [Number(r[d])];
|
|
95
93
|
break;
|
|
96
94
|
case 22:
|
|
97
|
-
x.setXAxisTitle(
|
|
95
|
+
x.setXAxisTitle(r[d]);
|
|
98
96
|
break;
|
|
99
97
|
case 23:
|
|
100
|
-
x.setXAxisTitle(
|
|
98
|
+
x.setXAxisTitle(r[d - 1]);
|
|
101
99
|
break;
|
|
102
100
|
case 24:
|
|
103
101
|
x.setXAxisTitle({ type: "text", text: "" });
|
|
104
102
|
break;
|
|
105
103
|
case 25:
|
|
106
|
-
x.setXAxisBand(
|
|
104
|
+
x.setXAxisBand(r[d]);
|
|
107
105
|
break;
|
|
108
106
|
case 26:
|
|
109
|
-
x.setXAxisRangeData(Number(
|
|
107
|
+
x.setXAxisRangeData(Number(r[d - 2]), Number(r[d]));
|
|
110
108
|
break;
|
|
111
109
|
case 27:
|
|
112
|
-
this.$ =
|
|
110
|
+
this.$ = r[d - 1];
|
|
113
111
|
break;
|
|
114
112
|
case 28:
|
|
115
|
-
this.$ = [
|
|
113
|
+
this.$ = [r[d - 2], ...r[d]];
|
|
116
114
|
break;
|
|
117
115
|
case 29:
|
|
118
|
-
this.$ = [
|
|
116
|
+
this.$ = [r[d]];
|
|
119
117
|
break;
|
|
120
118
|
case 30:
|
|
121
|
-
x.setYAxisTitle(
|
|
119
|
+
x.setYAxisTitle(r[d]);
|
|
122
120
|
break;
|
|
123
121
|
case 31:
|
|
124
|
-
x.setYAxisTitle(
|
|
122
|
+
x.setYAxisTitle(r[d - 1]);
|
|
125
123
|
break;
|
|
126
124
|
case 32:
|
|
127
125
|
x.setYAxisTitle({ type: "text", text: "" });
|
|
128
126
|
break;
|
|
129
127
|
case 33:
|
|
130
|
-
x.setYAxisRangeData(Number(
|
|
128
|
+
x.setYAxisRangeData(Number(r[d - 2]), Number(r[d]));
|
|
131
129
|
break;
|
|
132
130
|
case 37:
|
|
133
|
-
this.$ = { text:
|
|
131
|
+
this.$ = { text: r[d], type: "text" };
|
|
134
132
|
break;
|
|
135
133
|
case 38:
|
|
136
|
-
this.$ = { text:
|
|
134
|
+
this.$ = { text: r[d], type: "text" };
|
|
137
135
|
break;
|
|
138
136
|
case 39:
|
|
139
|
-
this.$ = { text:
|
|
137
|
+
this.$ = { text: r[d], type: "markdown" };
|
|
140
138
|
break;
|
|
141
139
|
case 40:
|
|
142
|
-
this.$ =
|
|
140
|
+
this.$ = r[d];
|
|
143
141
|
break;
|
|
144
142
|
case 41:
|
|
145
|
-
this.$ =
|
|
143
|
+
this.$ = r[d - 1] + "" + r[d];
|
|
146
144
|
break;
|
|
147
145
|
}
|
|
148
146
|
}, "anonymous"),
|
|
149
|
-
table: [e(t, i, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35:
|
|
147
|
+
table: [e(t, i, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: o, 36: u }), { 1: [3] }, e(t, i, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: o, 36: u }), e(t, i, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: o, 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] }, e(f, [2, 34]), e(f, [2, 35]), e(f, [2, 36]), { 1: [2, 1] }, e(t, i, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: o, 36: u }), { 1: [2, 3] }, e(f, [2, 5]), e(t, [2, 7], { 4: 22, 34: n, 35: o, 36: u }), { 11: 23, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, { 11: 39, 13: 38, 24: K, 27: vt, 29: 40, 30: 41, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, { 11: 45, 15: 44, 27: Pt, 33: 46, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, { 11: 49, 17: 48, 24: et, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, { 11: 52, 17: 51, 24: et, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, { 20: [1, 53] }, { 22: [1, 54] }, e(C, [2, 18]), { 1: [2, 2] }, e(C, [2, 8]), e(C, [2, 9]), e(lt, [2, 37], { 40: 55, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }), e(lt, [2, 38]), e(lt, [2, 39]), e(I, [2, 40]), e(I, [2, 42]), e(I, [2, 43]), e(I, [2, 44]), e(I, [2, 45]), e(I, [2, 46]), e(I, [2, 47]), e(I, [2, 48]), e(I, [2, 49]), e(I, [2, 50]), e(I, [2, 51]), e(C, [2, 10]), e(C, [2, 22], { 30: 41, 29: 56, 24: K, 27: vt }), e(C, [2, 24]), e(C, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, e(C, [2, 11]), e(C, [2, 30], { 33: 60, 27: Pt }), e(C, [2, 32]), { 31: [1, 61] }, e(C, [2, 12]), { 17: 62, 24: et }, { 25: 63, 27: Lt }, e(C, [2, 14]), { 17: 65, 24: et }, e(C, [2, 16]), e(C, [2, 17]), e(I, [2, 41]), e(C, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, e(C, [2, 31]), { 27: [1, 69] }, e(C, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, e(C, [2, 15]), e(C, [2, 26]), e(C, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: p, 39: k, 40: 27, 41: R, 42: w, 43: y, 44: D, 45: S, 46: v, 47: m, 48: _, 49: l, 50: E }, e(C, [2, 33]), e(C, [2, 19]), { 25: 73, 27: Lt }, { 26: [2, 28] }, { 26: [2, 20] }],
|
|
150
148
|
defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
|
|
151
149
|
parseError: /* @__PURE__ */ a(function(h, c) {
|
|
152
150
|
if (c.recoverable)
|
|
@@ -157,16 +155,16 @@ var ft = function() {
|
|
|
157
155
|
}
|
|
158
156
|
}, "parseError"),
|
|
159
157
|
parse: /* @__PURE__ */ a(function(h) {
|
|
160
|
-
var c = this, g = [0], x = [], A = [null],
|
|
158
|
+
var c = this, g = [0], x = [], A = [null], r = [], Z = this.table, d = "", nt = 0, Et = 0, oi = 2, It = 1, hi = r.slice.call(arguments, 1), T = Object.create(this.lexer), W = { yy: {} };
|
|
161
159
|
for (var ut in this.yy)
|
|
162
160
|
Object.prototype.hasOwnProperty.call(this.yy, ut) && (W.yy[ut] = this.yy[ut]);
|
|
163
161
|
T.setInput(h, W.yy), W.yy.lexer = T, W.yy.parser = this, typeof T.yylloc > "u" && (T.yylloc = {});
|
|
164
162
|
var gt = T.yylloc;
|
|
165
|
-
|
|
163
|
+
r.push(gt);
|
|
166
164
|
var li = T.options && T.options.ranges;
|
|
167
165
|
typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
168
166
|
function ci(L) {
|
|
169
|
-
g.length = g.length - 2 * L, A.length = A.length - L,
|
|
167
|
+
g.length = g.length - 2 * L, A.length = A.length - L, r.length = r.length - L;
|
|
170
168
|
}
|
|
171
169
|
a(ci, "popStack");
|
|
172
170
|
function Mt() {
|
|
@@ -174,48 +172,48 @@ var ft = function() {
|
|
|
174
172
|
return L = x.pop() || T.lex() || It, typeof L != "number" && (L instanceof Array && (x = L, L = x.pop()), L = c.symbols_[L] || L), L;
|
|
175
173
|
}
|
|
176
174
|
a(Mt, "lex");
|
|
177
|
-
for (var P, O, M, xt,
|
|
178
|
-
if (O = g[g.length - 1], this.defaultActions[O] ? M = this.defaultActions[O] : ((P === null || typeof P > "u") && (P = Mt()), M =
|
|
175
|
+
for (var P, O, M, xt, F = {}, at, V, Vt, rt; ; ) {
|
|
176
|
+
if (O = g[g.length - 1], this.defaultActions[O] ? M = this.defaultActions[O] : ((P === null || typeof P > "u") && (P = Mt()), M = Z[O] && Z[O][P]), typeof M > "u" || !M.length || !M[0]) {
|
|
179
177
|
var dt = "";
|
|
180
|
-
|
|
181
|
-
for (at in
|
|
182
|
-
this.terminals_[at] && at >
|
|
178
|
+
rt = [];
|
|
179
|
+
for (at in Z[O])
|
|
180
|
+
this.terminals_[at] && at > oi && rt.push("'" + this.terminals_[at] + "'");
|
|
183
181
|
T.showPosition ? dt = "Parse error on line " + (nt + 1) + `:
|
|
184
182
|
` + T.showPosition() + `
|
|
185
|
-
Expecting ` +
|
|
183
|
+
Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt = "Parse error on line " + (nt + 1) + ": Unexpected " + (P == It ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(dt, {
|
|
186
184
|
text: T.match,
|
|
187
185
|
token: this.terminals_[P] || P,
|
|
188
186
|
line: T.yylineno,
|
|
189
187
|
loc: gt,
|
|
190
|
-
expected:
|
|
188
|
+
expected: rt
|
|
191
189
|
});
|
|
192
190
|
}
|
|
193
191
|
if (M[0] instanceof Array && M.length > 1)
|
|
194
192
|
throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + P);
|
|
195
193
|
switch (M[0]) {
|
|
196
194
|
case 1:
|
|
197
|
-
g.push(P), A.push(T.yytext),
|
|
195
|
+
g.push(P), A.push(T.yytext), r.push(T.yylloc), g.push(M[1]), P = null, Et = T.yyleng, d = T.yytext, nt = T.yylineno, gt = T.yylloc;
|
|
198
196
|
break;
|
|
199
197
|
case 2:
|
|
200
|
-
if (V = this.productions_[M[1]][1],
|
|
201
|
-
first_line:
|
|
202
|
-
last_line:
|
|
203
|
-
first_column:
|
|
204
|
-
last_column:
|
|
205
|
-
}, li && (
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
]), xt = this.performAction.apply(
|
|
198
|
+
if (V = this.productions_[M[1]][1], F.$ = A[A.length - V], F._$ = {
|
|
199
|
+
first_line: r[r.length - (V || 1)].first_line,
|
|
200
|
+
last_line: r[r.length - 1].last_line,
|
|
201
|
+
first_column: r[r.length - (V || 1)].first_column,
|
|
202
|
+
last_column: r[r.length - 1].last_column
|
|
203
|
+
}, li && (F._$.range = [
|
|
204
|
+
r[r.length - (V || 1)].range[0],
|
|
205
|
+
r[r.length - 1].range[1]
|
|
206
|
+
]), xt = this.performAction.apply(F, [
|
|
209
207
|
d,
|
|
210
208
|
Et,
|
|
211
209
|
nt,
|
|
212
210
|
W.yy,
|
|
213
211
|
M[1],
|
|
214
212
|
A,
|
|
215
|
-
|
|
213
|
+
r
|
|
216
214
|
].concat(hi)), typeof xt < "u")
|
|
217
215
|
return xt;
|
|
218
|
-
V && (g = g.slice(0, -1 * V * 2), A = A.slice(0, -1 * V),
|
|
216
|
+
V && (g = g.slice(0, -1 * V * 2), A = A.slice(0, -1 * V), r = r.slice(0, -1 * V)), g.push(this.productions_[M[1]][0]), A.push(F.$), r.push(F._$), Vt = Z[g[g.length - 2]][g[g.length - 1]], g.push(Vt);
|
|
219
217
|
break;
|
|
220
218
|
case 3:
|
|
221
219
|
return !0;
|
|
@@ -223,7 +221,7 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
|
|
|
223
221
|
}
|
|
224
222
|
return !0;
|
|
225
223
|
}, "parse")
|
|
226
|
-
},
|
|
224
|
+
}, ri = /* @__PURE__ */ function() {
|
|
227
225
|
var B = {
|
|
228
226
|
EOF: 1,
|
|
229
227
|
parseError: /* @__PURE__ */ a(function(c, g) {
|
|
@@ -329,8 +327,8 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
|
|
|
329
327
|
}, this.yytext += h[0], this.match += h[0], this.matches = h, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(h[0].length), this.matched += h[0], g = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
|
|
330
328
|
return g;
|
|
331
329
|
if (this._backtrack) {
|
|
332
|
-
for (var
|
|
333
|
-
this[
|
|
330
|
+
for (var r in A)
|
|
331
|
+
this[r] = A[r];
|
|
334
332
|
return !1;
|
|
335
333
|
}
|
|
336
334
|
return !1;
|
|
@@ -342,10 +340,10 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
|
|
|
342
340
|
this._input || (this.done = !0);
|
|
343
341
|
var h, c, g, x;
|
|
344
342
|
this._more || (this.yytext = "", this.match = "");
|
|
345
|
-
for (var A = this._currentRules(),
|
|
346
|
-
if (g = this._input.match(this.rules[A[
|
|
347
|
-
if (c = g, x =
|
|
348
|
-
if (h = this.test_match(g, A[
|
|
343
|
+
for (var A = this._currentRules(), r = 0; r < A.length; r++)
|
|
344
|
+
if (g = this._input.match(this.rules[A[r]]), g && (!c || g[0].length > c[0].length)) {
|
|
345
|
+
if (c = g, x = r, this.options.backtrack_lexer) {
|
|
346
|
+
if (h = this.test_match(g, A[r]), h !== !1)
|
|
349
347
|
return h;
|
|
350
348
|
if (this._backtrack) {
|
|
351
349
|
c = !1;
|
|
@@ -499,7 +497,7 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : dt =
|
|
|
499
497
|
};
|
|
500
498
|
return B;
|
|
501
499
|
}();
|
|
502
|
-
ct.lexer =
|
|
500
|
+
ct.lexer = ri;
|
|
503
501
|
function st() {
|
|
504
502
|
this.yy = {};
|
|
505
503
|
}
|
|
@@ -515,31 +513,31 @@ function wt(e) {
|
|
|
515
513
|
return e.type === "band";
|
|
516
514
|
}
|
|
517
515
|
a(wt, "isBandAxisData");
|
|
518
|
-
function
|
|
516
|
+
function z(e) {
|
|
519
517
|
return e.type === "linear";
|
|
520
518
|
}
|
|
521
|
-
a(
|
|
522
|
-
var
|
|
519
|
+
a(z, "isLinearAxisData");
|
|
520
|
+
var X, Yt = (X = class {
|
|
523
521
|
constructor(t) {
|
|
524
522
|
this.parentGroup = t;
|
|
525
523
|
}
|
|
526
524
|
getMaxDimension(t, i) {
|
|
527
525
|
if (!this.parentGroup)
|
|
528
526
|
return {
|
|
529
|
-
width: t.reduce((
|
|
527
|
+
width: t.reduce((o, u) => Math.max(u.length, o), 0) * i,
|
|
530
528
|
height: i
|
|
531
529
|
};
|
|
532
530
|
const s = {
|
|
533
531
|
width: 0,
|
|
534
532
|
height: 0
|
|
535
533
|
}, n = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
|
|
536
|
-
for (const
|
|
537
|
-
const u =
|
|
534
|
+
for (const o of t) {
|
|
535
|
+
const u = Ci(n, 1, o), f = u ? u.width : o.length * i, p = u ? u.height : i;
|
|
538
536
|
s.width = Math.max(s.width, f), s.height = Math.max(s.height, p);
|
|
539
537
|
}
|
|
540
538
|
return n.remove(), s;
|
|
541
539
|
}
|
|
542
|
-
}, a(
|
|
540
|
+
}, a(X, "TextDimensionCalculatorWithFont"), X), Ot = 0.7, Ft = 0.2, N, Ht = (N = class {
|
|
543
541
|
constructor(t, i, s, n) {
|
|
544
542
|
this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = n, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, 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";
|
|
545
543
|
}
|
|
@@ -571,10 +569,10 @@ var $, Yt = ($ = class {
|
|
|
571
569
|
calculateSpaceIfDrawnHorizontally(t) {
|
|
572
570
|
let i = t.height;
|
|
573
571
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
574
|
-
const s = this.getLabelDimension(), n =
|
|
572
|
+
const s = this.getLabelDimension(), n = Ft * t.width;
|
|
575
573
|
this.outerPadding = Math.min(s.width / 2, n);
|
|
576
|
-
const
|
|
577
|
-
this.labelTextHeight = s.height,
|
|
574
|
+
const o = s.height + this.axisConfig.labelPadding * 2;
|
|
575
|
+
this.labelTextHeight = s.height, o <= i && (i -= o, this.showLabel = !0);
|
|
578
576
|
}
|
|
579
577
|
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
580
578
|
const s = this.textDimensionCalculator.getMaxDimension(
|
|
@@ -588,10 +586,10 @@ var $, Yt = ($ = class {
|
|
|
588
586
|
calculateSpaceIfDrawnVertical(t) {
|
|
589
587
|
let i = t.width;
|
|
590
588
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
591
|
-
const s = this.getLabelDimension(), n =
|
|
589
|
+
const s = this.getLabelDimension(), n = Ft * t.height;
|
|
592
590
|
this.outerPadding = Math.min(s.height / 2, n);
|
|
593
|
-
const
|
|
594
|
-
|
|
591
|
+
const o = s.width + this.axisConfig.labelPadding * 2;
|
|
592
|
+
o <= i && (i -= o, this.showLabel = !0);
|
|
595
593
|
}
|
|
596
594
|
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
597
595
|
const s = this.textDimensionCalculator.getMaxDimension(
|
|
@@ -792,15 +790,15 @@ var $, Yt = ($ = class {
|
|
|
792
790
|
throw Error("Drawing of right axis is not implemented");
|
|
793
791
|
return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
|
|
794
792
|
}
|
|
795
|
-
}, a(
|
|
796
|
-
constructor(t, i, s, n,
|
|
797
|
-
super(t, n,
|
|
793
|
+
}, a(N, "BaseAxis"), N), Y, Ti = (Y = class extends Ht {
|
|
794
|
+
constructor(t, i, s, n, o) {
|
|
795
|
+
super(t, n, o, i), this.categories = s, this.scale = pt().domain(this.categories).range(this.getRange());
|
|
798
796
|
}
|
|
799
797
|
setRange(t) {
|
|
800
798
|
super.setRange(t);
|
|
801
799
|
}
|
|
802
800
|
recalculateScale() {
|
|
803
|
-
this.scale = pt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5),
|
|
801
|
+
this.scale = pt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Xt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
|
|
804
802
|
}
|
|
805
803
|
getTickValues() {
|
|
806
804
|
return this.categories;
|
|
@@ -808,9 +806,9 @@ var $, Yt = ($ = class {
|
|
|
808
806
|
getScaleValue(t) {
|
|
809
807
|
return this.scale(t) ?? this.getRange()[0];
|
|
810
808
|
}
|
|
811
|
-
}, a(
|
|
812
|
-
constructor(t, i, s, n,
|
|
813
|
-
super(t, n,
|
|
809
|
+
}, a(Y, "BandAxis"), Y), H, Di = (H = class extends Ht {
|
|
810
|
+
constructor(t, i, s, n, o) {
|
|
811
|
+
super(t, n, o, i), this.domain = s, this.scale = Wt().domain(this.domain).range(this.getRange());
|
|
814
812
|
}
|
|
815
813
|
getTickValues() {
|
|
816
814
|
return this.scale.ticks();
|
|
@@ -822,7 +820,7 @@ var $, Yt = ($ = class {
|
|
|
822
820
|
getScaleValue(t) {
|
|
823
821
|
return this.scale(t);
|
|
824
822
|
}
|
|
825
|
-
}, a(
|
|
823
|
+
}, a(H, "LinearAxis"), H);
|
|
826
824
|
function yt(e, t, i, s) {
|
|
827
825
|
const n = new Yt(s);
|
|
828
826
|
return wt(e) ? new Ti(
|
|
@@ -840,7 +838,7 @@ function yt(e, t, i, s) {
|
|
|
840
838
|
);
|
|
841
839
|
}
|
|
842
840
|
a(yt, "getAxis");
|
|
843
|
-
var
|
|
841
|
+
var U, vi = (U = class {
|
|
844
842
|
constructor(t, i, s, n) {
|
|
845
843
|
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = n, this.boundingRect = {
|
|
846
844
|
x: 0,
|
|
@@ -881,15 +879,15 @@ var Q, vi = (Q = class {
|
|
|
881
879
|
]
|
|
882
880
|
}), t;
|
|
883
881
|
}
|
|
884
|
-
}, a(
|
|
882
|
+
}, a(U, "ChartTitle"), U);
|
|
885
883
|
function Ut(e, t, i, s) {
|
|
886
884
|
const n = new Yt(s);
|
|
887
885
|
return new vi(n, e, t, i);
|
|
888
886
|
}
|
|
889
887
|
a(Ut, "getChartTitleComponent");
|
|
890
|
-
var
|
|
891
|
-
constructor(t, i, s, n,
|
|
892
|
-
this.plotData = t, this.xAxis = i, this.yAxis = s, this.orientation = n, this.plotIndex =
|
|
888
|
+
var $, Pi = ($ = class {
|
|
889
|
+
constructor(t, i, s, n, o) {
|
|
890
|
+
this.plotData = t, this.xAxis = i, this.yAxis = s, this.orientation = n, this.plotIndex = o;
|
|
893
891
|
}
|
|
894
892
|
getDrawableElement() {
|
|
895
893
|
const t = this.plotData.data.map((s) => [
|
|
@@ -911,24 +909,24 @@ var K, Pi = (K = class {
|
|
|
911
909
|
}
|
|
912
910
|
] : [];
|
|
913
911
|
}
|
|
914
|
-
}, a(
|
|
915
|
-
constructor(t, i, s, n,
|
|
916
|
-
this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = n, this.orientation =
|
|
912
|
+
}, a($, "LinePlot"), $), q, Li = (q = class {
|
|
913
|
+
constructor(t, i, s, n, o, u) {
|
|
914
|
+
this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = n, this.orientation = o, this.plotIndex = u;
|
|
917
915
|
}
|
|
918
916
|
getDrawableElement() {
|
|
919
|
-
const t = this.barData.data.map((
|
|
920
|
-
this.xAxis.getScaleValue(
|
|
921
|
-
this.yAxis.getScaleValue(
|
|
922
|
-
]),
|
|
917
|
+
const t = this.barData.data.map((o) => [
|
|
918
|
+
this.xAxis.getScaleValue(o[0]),
|
|
919
|
+
this.yAxis.getScaleValue(o[1])
|
|
920
|
+
]), s = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), n = s / 2;
|
|
923
921
|
return this.orientation === "horizontal" ? [
|
|
924
922
|
{
|
|
925
923
|
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
926
924
|
type: "rect",
|
|
927
|
-
data: t.map((
|
|
925
|
+
data: t.map((o) => ({
|
|
928
926
|
x: this.boundingRect.x,
|
|
929
|
-
y:
|
|
927
|
+
y: o[0] - n,
|
|
930
928
|
height: s,
|
|
931
|
-
width:
|
|
929
|
+
width: o[1] - this.boundingRect.x,
|
|
932
930
|
fill: this.barData.fill,
|
|
933
931
|
strokeWidth: 0,
|
|
934
932
|
strokeFill: this.barData.fill
|
|
@@ -938,11 +936,11 @@ var K, Pi = (K = class {
|
|
|
938
936
|
{
|
|
939
937
|
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
940
938
|
type: "rect",
|
|
941
|
-
data: t.map((
|
|
942
|
-
x:
|
|
943
|
-
y:
|
|
939
|
+
data: t.map((o) => ({
|
|
940
|
+
x: o[0] - n,
|
|
941
|
+
y: o[1],
|
|
944
942
|
width: s,
|
|
945
|
-
height: this.boundingRect.y + this.boundingRect.height -
|
|
943
|
+
height: this.boundingRect.y + this.boundingRect.height - o[1],
|
|
946
944
|
fill: this.barData.fill,
|
|
947
945
|
strokeWidth: 0,
|
|
948
946
|
strokeFill: this.barData.fill
|
|
@@ -950,7 +948,7 @@ var K, Pi = (K = class {
|
|
|
950
948
|
}
|
|
951
949
|
];
|
|
952
950
|
}
|
|
953
|
-
}, a(
|
|
951
|
+
}, a(q, "BarPlot"), q), G, Ei = (G = class {
|
|
954
952
|
constructor(t, i, s) {
|
|
955
953
|
this.chartConfig = t, this.chartData = i, this.chartThemeConfig = s, this.boundingRect = {
|
|
956
954
|
x: 0,
|
|
@@ -1005,12 +1003,12 @@ var K, Pi = (K = class {
|
|
|
1005
1003
|
}
|
|
1006
1004
|
return t;
|
|
1007
1005
|
}
|
|
1008
|
-
}, a(
|
|
1006
|
+
}, a(G, "BasePlot"), G);
|
|
1009
1007
|
function $t(e, t, i) {
|
|
1010
1008
|
return new Ei(e, t, i);
|
|
1011
1009
|
}
|
|
1012
1010
|
a($t, "getPlotComponent");
|
|
1013
|
-
var
|
|
1011
|
+
var j, Ii = (j = class {
|
|
1014
1012
|
constructor(t, i, s, n) {
|
|
1015
1013
|
this.chartConfig = t, this.chartData = i, this.componentStore = {
|
|
1016
1014
|
title: Ut(t, i, s, n),
|
|
@@ -1040,10 +1038,10 @@ var tt, Ii = (tt = class {
|
|
|
1040
1038
|
};
|
|
1041
1039
|
}
|
|
1042
1040
|
calculateVerticalSpace() {
|
|
1043
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0,
|
|
1041
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), u = Math.floor(
|
|
1044
1042
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1045
1043
|
), f = this.componentStore.plot.calculateSpace({
|
|
1046
|
-
width:
|
|
1044
|
+
width: o,
|
|
1047
1045
|
height: u
|
|
1048
1046
|
});
|
|
1049
1047
|
t -= f.width, i -= f.height, f = this.componentStore.title.calculateSpace({
|
|
@@ -1055,13 +1053,13 @@ var tt, Ii = (tt = class {
|
|
|
1055
1053
|
}), i -= f.height, this.componentStore.yAxis.setAxisPosition("left"), f = this.componentStore.yAxis.calculateSpace({
|
|
1056
1054
|
width: t,
|
|
1057
1055
|
height: i
|
|
1058
|
-
}), s = f.width, t -= f.width, t > 0 && (
|
|
1059
|
-
width:
|
|
1056
|
+
}), s = f.width, t -= f.width, t > 0 && (o += t, t = 0), i > 0 && (u += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1057
|
+
width: o,
|
|
1060
1058
|
height: u
|
|
1061
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.xAxis.setRange([s, s +
|
|
1059
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.xAxis.setRange([s, s + o]), this.componentStore.xAxis.setBoundingBoxXY({ x: s, y: n + u }), this.componentStore.yAxis.setRange([n, n + u]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((p) => mt(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1062
1060
|
}
|
|
1063
1061
|
calculateHorizontalSpace() {
|
|
1064
|
-
let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0,
|
|
1062
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = 0, u = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), f = Math.floor(
|
|
1065
1063
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1066
1064
|
), p = this.componentStore.plot.calculateSpace({
|
|
1067
1065
|
width: u,
|
|
@@ -1076,10 +1074,10 @@ var tt, Ii = (tt = class {
|
|
|
1076
1074
|
}), t -= p.width, n = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
|
|
1077
1075
|
width: t,
|
|
1078
1076
|
height: i
|
|
1079
|
-
}), i -= p.height,
|
|
1077
|
+
}), i -= p.height, o = s + p.height, t > 0 && (u += t, t = 0), i > 0 && (f += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1080
1078
|
width: u,
|
|
1081
1079
|
height: f
|
|
1082
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x: n, y:
|
|
1080
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: n, y: o }), this.componentStore.yAxis.setRange([n, n + u]), this.componentStore.yAxis.setBoundingBoxXY({ x: n, y: s }), this.componentStore.xAxis.setRange([o, o + f]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: o }), this.chartData.plots.some((k) => mt(k)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1083
1081
|
}
|
|
1084
1082
|
calculateSpace() {
|
|
1085
1083
|
this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
|
|
@@ -1092,20 +1090,20 @@ var tt, Ii = (tt = class {
|
|
|
1092
1090
|
t.push(...i.getDrawableElements());
|
|
1093
1091
|
return t;
|
|
1094
1092
|
}
|
|
1095
|
-
}, a(
|
|
1093
|
+
}, a(j, "Orchestrator"), j), Q, Mi = (Q = class {
|
|
1096
1094
|
static build(t, i, s, n) {
|
|
1097
1095
|
return new Ii(t, i, s, n).getDrawableElement();
|
|
1098
1096
|
}
|
|
1099
|
-
}, a(
|
|
1097
|
+
}, a(Q, "XYChartBuilder"), Q), J = 0, qt, tt = _t(), it = St(), b = kt(), bt = it.plotColorPalette.split(",").map((e) => e.trim()), ot = !1, Ct = !1;
|
|
1100
1098
|
function St() {
|
|
1101
|
-
const e =
|
|
1102
|
-
return
|
|
1099
|
+
const e = Ai(), t = At();
|
|
1100
|
+
return Nt(e.xyChart, t.themeVariables.xyChart);
|
|
1103
1101
|
}
|
|
1104
1102
|
a(St, "getChartDefaultThemeConfig");
|
|
1105
1103
|
function _t() {
|
|
1106
1104
|
const e = At();
|
|
1107
|
-
return
|
|
1108
|
-
|
|
1105
|
+
return Nt(
|
|
1106
|
+
bi.xyChart,
|
|
1109
1107
|
e.xyChart
|
|
1110
1108
|
);
|
|
1111
1109
|
}
|
|
@@ -1130,7 +1128,7 @@ function kt() {
|
|
|
1130
1128
|
a(kt, "getChartDefaultData");
|
|
1131
1129
|
function ht(e) {
|
|
1132
1130
|
const t = At();
|
|
1133
|
-
return
|
|
1131
|
+
return wi(e.trim(), t);
|
|
1134
1132
|
}
|
|
1135
1133
|
a(ht, "textSanitizer");
|
|
1136
1134
|
function Gt(e) {
|
|
@@ -1138,7 +1136,7 @@ function Gt(e) {
|
|
|
1138
1136
|
}
|
|
1139
1137
|
a(Gt, "setTmpSVGG");
|
|
1140
1138
|
function jt(e) {
|
|
1141
|
-
e === "horizontal" ?
|
|
1139
|
+
e === "horizontal" ? tt.chartOrientation = "horizontal" : tt.chartOrientation = "vertical";
|
|
1142
1140
|
}
|
|
1143
1141
|
a(jt, "setOrientation");
|
|
1144
1142
|
function Qt(e) {
|
|
@@ -1146,7 +1144,7 @@ function Qt(e) {
|
|
|
1146
1144
|
}
|
|
1147
1145
|
a(Qt, "setXAxisTitle");
|
|
1148
1146
|
function Rt(e, t) {
|
|
1149
|
-
b.xAxis = { type: "linear", title: b.xAxis.title, min: e, max: t },
|
|
1147
|
+
b.xAxis = { type: "linear", title: b.xAxis.title, min: e, max: t }, ot = !0;
|
|
1150
1148
|
}
|
|
1151
1149
|
a(Rt, "setXAxisRangeData");
|
|
1152
1150
|
function Kt(e) {
|
|
@@ -1154,7 +1152,7 @@ function Kt(e) {
|
|
|
1154
1152
|
type: "band",
|
|
1155
1153
|
title: b.xAxis.title,
|
|
1156
1154
|
categories: e.map((t) => ht(t.text))
|
|
1157
|
-
},
|
|
1155
|
+
}, ot = !0;
|
|
1158
1156
|
}
|
|
1159
1157
|
a(Kt, "setXAxisBand");
|
|
1160
1158
|
function Zt(e) {
|
|
@@ -1166,7 +1164,7 @@ function Jt(e, t) {
|
|
|
1166
1164
|
}
|
|
1167
1165
|
a(Jt, "setYAxisRangeData");
|
|
1168
1166
|
function ti(e) {
|
|
1169
|
-
const t = Math.min(...e), i = Math.max(...e), s =
|
|
1167
|
+
const t = Math.min(...e), i = Math.max(...e), s = z(b.yAxis) ? b.yAxis.min : 1 / 0, n = z(b.yAxis) ? b.yAxis.max : -1 / 0;
|
|
1170
1168
|
b.yAxis = {
|
|
1171
1169
|
type: "linear",
|
|
1172
1170
|
title: b.yAxis.title,
|
|
@@ -1179,15 +1177,15 @@ function Tt(e) {
|
|
|
1179
1177
|
let t = [];
|
|
1180
1178
|
if (e.length === 0)
|
|
1181
1179
|
return t;
|
|
1182
|
-
if (!
|
|
1183
|
-
const i =
|
|
1180
|
+
if (!ot) {
|
|
1181
|
+
const i = z(b.xAxis) ? b.xAxis.min : 1 / 0, s = z(b.xAxis) ? b.xAxis.max : -1 / 0;
|
|
1184
1182
|
Rt(Math.min(i, 1), Math.max(s, e.length));
|
|
1185
1183
|
}
|
|
1186
|
-
if (Ct || ti(e), wt(b.xAxis) && (t = b.xAxis.categories.map((i, s) => [i, e[s]])),
|
|
1187
|
-
const i = b.xAxis.min, s = b.xAxis.max, n = (s - i) / (e.length - 1),
|
|
1184
|
+
if (Ct || ti(e), wt(b.xAxis) && (t = b.xAxis.categories.map((i, s) => [i, e[s]])), z(b.xAxis)) {
|
|
1185
|
+
const i = b.xAxis.min, s = b.xAxis.max, n = (s - i) / (e.length - 1), o = [];
|
|
1188
1186
|
for (let u = i; u <= s; u += n)
|
|
1189
|
-
|
|
1190
|
-
t =
|
|
1187
|
+
o.push(`${u}`);
|
|
1188
|
+
t = o.map((u, f) => [u, e[f]]);
|
|
1191
1189
|
}
|
|
1192
1190
|
return t;
|
|
1193
1191
|
}
|
|
@@ -1200,46 +1198,46 @@ function ii(e, t) {
|
|
|
1200
1198
|
const i = Tt(t);
|
|
1201
1199
|
b.plots.push({
|
|
1202
1200
|
type: "line",
|
|
1203
|
-
strokeFill: Dt(
|
|
1201
|
+
strokeFill: Dt(J),
|
|
1204
1202
|
strokeWidth: 2,
|
|
1205
1203
|
data: i
|
|
1206
|
-
}),
|
|
1204
|
+
}), J++;
|
|
1207
1205
|
}
|
|
1208
1206
|
a(ii, "setLineData");
|
|
1209
1207
|
function ei(e, t) {
|
|
1210
1208
|
const i = Tt(t);
|
|
1211
1209
|
b.plots.push({
|
|
1212
1210
|
type: "bar",
|
|
1213
|
-
fill: Dt(
|
|
1211
|
+
fill: Dt(J),
|
|
1214
1212
|
data: i
|
|
1215
|
-
}),
|
|
1213
|
+
}), J++;
|
|
1216
1214
|
}
|
|
1217
1215
|
a(ei, "setBarData");
|
|
1218
1216
|
function si() {
|
|
1219
1217
|
if (b.plots.length === 0)
|
|
1220
1218
|
throw Error("No Plot to render, please provide a plot with some data");
|
|
1221
|
-
return b.title =
|
|
1219
|
+
return b.title = zt(), Mi.build(tt, b, it, qt);
|
|
1222
1220
|
}
|
|
1223
1221
|
a(si, "getDrawableElem");
|
|
1224
1222
|
function ni() {
|
|
1225
|
-
return
|
|
1223
|
+
return it;
|
|
1226
1224
|
}
|
|
1227
1225
|
a(ni, "getChartThemeConfig");
|
|
1228
1226
|
function ai() {
|
|
1229
|
-
return
|
|
1227
|
+
return tt;
|
|
1230
1228
|
}
|
|
1231
1229
|
a(ai, "getChartConfig");
|
|
1232
1230
|
var Vi = /* @__PURE__ */ a(function() {
|
|
1233
|
-
|
|
1231
|
+
yi(), J = 0, tt = _t(), b = kt(), it = St(), bt = it.plotColorPalette.split(",").map((e) => e.trim()), ot = !1, Ct = !1;
|
|
1234
1232
|
}, "clear"), Bi = {
|
|
1235
1233
|
getDrawableElem: si,
|
|
1236
1234
|
clear: Vi,
|
|
1237
1235
|
setAccTitle: pi,
|
|
1238
|
-
getAccTitle:
|
|
1239
|
-
setDiagramTitle:
|
|
1240
|
-
getDiagramTitle:
|
|
1241
|
-
getAccDescription:
|
|
1242
|
-
setAccDescription:
|
|
1236
|
+
getAccTitle: di,
|
|
1237
|
+
setDiagramTitle: xi,
|
|
1238
|
+
getDiagramTitle: zt,
|
|
1239
|
+
getAccDescription: gi,
|
|
1240
|
+
setAccDescription: ui,
|
|
1243
1241
|
setOrientation: jt,
|
|
1244
1242
|
setXAxisTitle: Qt,
|
|
1245
1243
|
setXAxisRangeData: Rt,
|
|
@@ -1252,7 +1250,7 @@ var Vi = /* @__PURE__ */ a(function() {
|
|
|
1252
1250
|
getChartThemeConfig: ni,
|
|
1253
1251
|
getChartConfig: ai
|
|
1254
1252
|
}, Wi = /* @__PURE__ */ a((e, t, i, s) => {
|
|
1255
|
-
const n = s.db,
|
|
1253
|
+
const n = s.db, o = n.getChartThemeConfig(), u = n.getChartConfig();
|
|
1256
1254
|
function f(m) {
|
|
1257
1255
|
return m === "top" ? "text-before-edge" : "middle";
|
|
1258
1256
|
}
|
|
@@ -1264,16 +1262,16 @@ var Vi = /* @__PURE__ */ a(function() {
|
|
|
1264
1262
|
function k(m) {
|
|
1265
1263
|
return `translate(${m.x}, ${m.y}) rotate(${m.rotation || 0})`;
|
|
1266
1264
|
}
|
|
1267
|
-
a(k, "getTextTransformation"),
|
|
1265
|
+
a(k, "getTextTransformation"), Xt.debug(`Rendering xychart chart
|
|
1268
1266
|
` + e);
|
|
1269
|
-
const R =
|
|
1270
|
-
|
|
1267
|
+
const R = fi(t), w = R.append("g").attr("class", "main"), y = w.append("rect").attr("width", u.width).attr("height", u.height).attr("class", "background");
|
|
1268
|
+
mi(R, u.height, u.width, !0), R.attr("viewBox", `0 0 ${u.width} ${u.height}`), y.attr("fill", o.backgroundColor), n.setTmpSVGG(R.append("g").attr("class", "mermaid-tmp-group"));
|
|
1271
1269
|
const D = n.getDrawableElem(), S = {};
|
|
1272
1270
|
function v(m) {
|
|
1273
1271
|
let _ = w, l = "";
|
|
1274
1272
|
for (const [E] of m.entries()) {
|
|
1275
|
-
let
|
|
1276
|
-
E > 0 && S[l] && (
|
|
1273
|
+
let K = w;
|
|
1274
|
+
E > 0 && S[l] && (K = S[l]), l += m[E], _ = S[l], _ || (_ = S[l] = K.append("g").attr("class", m[E]));
|
|
1277
1275
|
}
|
|
1278
1276
|
return _;
|
|
1279
1277
|
}
|
|
@@ -1296,11 +1294,11 @@ var Vi = /* @__PURE__ */ a(function() {
|
|
|
1296
1294
|
}
|
|
1297
1295
|
}, "draw"), Oi = {
|
|
1298
1296
|
draw: Wi
|
|
1299
|
-
},
|
|
1297
|
+
}, Yi = {
|
|
1300
1298
|
parser: Ri,
|
|
1301
1299
|
db: Bi,
|
|
1302
1300
|
renderer: Oi
|
|
1303
1301
|
};
|
|
1304
1302
|
export {
|
|
1305
|
-
|
|
1303
|
+
Yi as diagram
|
|
1306
1304
|
};
|