@omg-dev/app 0.5.0 → 0.6.1
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-lib/{ChangelogPage-8lbvM9Pz.js → ChangelogPage-Cjj_DiYL.js} +57 -1
- package/dist-lib/{File-B-qYa2zY.js → File-DQRr5F_e.js} +1761 -1826
- package/dist-lib/FileEditor-BrI3dfcp.js +6895 -0
- package/dist-lib/FileTreePane-J8P-OiHb.js +8413 -0
- package/dist-lib/{FileViewer-Clmf04v1.js → FileViewer-DRrfus7c.js} +1 -1
- package/dist-lib/{SessionFilesPanel-BKcTU57t.js → SessionFilesPanel-DxVJ43fE.js} +69 -69
- package/dist-lib/{TermView-gazV6UMU.js → TermView-B4V-DyD-.js} +521 -530
- package/dist-lib/{abnfDiagram-VRR7QNED-Chn1Z_p9.js → abnfDiagram-VRR7QNED-CiXfOnAu.js} +4 -4
- package/dist-lib/{arc-B652oHQ-.js → arc-QOMNKQA5.js} +1 -1
- package/dist-lib/{architectureDiagram-ZJ3FMSHR-CMatArpz.js → architectureDiagram-ZJ3FMSHR-BcFBTmfD.js} +2059 -2064
- package/dist-lib/{blockDiagram-677ZJIJ3-CEOPfI9A.js → blockDiagram-677ZJIJ3-Qj8-RIV3.js} +920 -925
- package/dist-lib/{c4Diagram-LMCZKHZV-DcUHrESL.js → c4Diagram-LMCZKHZV-BpinEmj4.js} +598 -593
- package/dist-lib/{channel-B5lJFbed.js → channel-D6YHMmF7.js} +1 -1
- package/dist-lib/{chat-engine-83mwx0z2.js → chat-engine-CUiDTHFP.js} +1173 -1218
- package/dist-lib/chunk-2Q5K7J3B-CFSi414U.js +18 -0
- package/dist-lib/{chunk-32BRIVSS-IYmNSvH8.js → chunk-32BRIVSS-DvywQiCk.js} +1 -1
- package/dist-lib/{chunk-5VM5RSS4-DO2g-xIj.js → chunk-5VM5RSS4-xd6XuI9Q.js} +1 -1
- package/dist-lib/{chunk-BO2N2NFS-kYiI5SD9.js → chunk-BO2N2NFS-BbJdm-59.js} +4892 -4903
- package/dist-lib/{chunk-EX3LRPZG-N96wfks9.js → chunk-EX3LRPZG-BLDKx-Yg.js} +507 -514
- package/dist-lib/chunk-JWPE2WC7-DnwG7Xzp.js +8 -0
- package/dist-lib/chunk-MOJQB5TN-BrENeFT5.js +670 -0
- package/dist-lib/chunk-RYQCIY6F-I-J4fVFd.js +313 -0
- package/dist-lib/{chunk-V7JOEXUC-DQwf2vkP.js → chunk-V7JOEXUC-Bkakcs1-.js} +458 -453
- package/dist-lib/chunk-VR4S4FIN-BDq3jZ0m.js +19 -0
- package/dist-lib/{chunk-XXDRQBXY-Ccv4aRcn.js → chunk-XXDRQBXY-DRKeYnrF.js} +1 -1
- package/dist-lib/{classDiagram-v2-EOCWNBFH-DOn-rhuL.js → classDiagram-OUVF2IWQ-DISUfvR5.js} +2 -2
- package/dist-lib/{classDiagram-OUVF2IWQ-DOn-rhuL.js → classDiagram-v2-EOCWNBFH-DISUfvR5.js} +2 -2
- package/dist-lib/{coding-agents-page-8Nf-IuE2.js → coding-agents-page-DtxZ0nbQ.js} +152 -131
- package/dist-lib/computer-page-DIJeFOZz.js +8860 -0
- package/dist-lib/{cose-bilkent-JH36ORCC-C-tACTrT.js → cose-bilkent-JH36ORCC-DCfmoChv.js} +281 -281
- package/dist-lib/{create-BrnHvSDE.js → create-CBk9uwJH.js} +2 -2
- package/dist-lib/cynefin-VYW2F7L2-XAY3mHv8.js +24430 -0
- package/dist-lib/{cynefinDiagram-TSTJHNR4-Be7CamD2.js → cynefinDiagram-TSTJHNR4-CrgvPEr1.js} +3 -3
- package/dist-lib/{cytoscape.esm-B0ledd6M.js → cytoscape.esm-BB6Ga9He.js} +3 -3
- package/dist-lib/dagre-VKFMJZFB-CE5k06mJ.js +343 -0
- package/dist-lib/{diagram-FQU43EPY-Jg12ow4Z.js → diagram-FQU43EPY-gOcCiJEN.js} +136 -139
- package/dist-lib/diagram-G47NLZAW-BVJLfRsd.js +531 -0
- package/dist-lib/diagram-NH7WQ7WH-u6QnHasL.js +145 -0
- package/dist-lib/diagram-OA4YK3LP-D4Kcl3uM.js +350 -0
- package/dist-lib/{diagram-WEI45ONY-D1kKPOc_.js → diagram-WEI45ONY-6a__oIb0.js} +38 -42
- package/dist-lib/{ebnfDiagram-CCIWWBDH-BhQWrGMc.js → ebnfDiagram-CCIWWBDH-PXSrB6lG.js} +4 -4
- package/dist-lib/{embedded-BmrQsEvQ.js → embedded-PUsgcSTE.js} +13043 -13082
- package/dist-lib/{engine-compile-BeDRSL6Y.js → engine-compile-D_stzVMa.js} +2939 -2991
- package/dist-lib/{erDiagram-Q63AITRT-D2q6Nmwa.js → erDiagram-Q63AITRT-BbsttUCs.js} +286 -284
- package/dist-lib/flowDiagram-23GEKE2U-CX5x3zVA.js +1641 -0
- package/dist-lib/{ganttDiagram-NO4QXBWP-C_Lj-cJB.js → ganttDiagram-NO4QXBWP-Bq0aSPs8.js} +2 -2
- package/dist-lib/gitGraphDiagram-IHSO6WYX-BjAezjIv.js +815 -0
- package/dist-lib/{graph-B68L3K2T.js → graph-DAHC4kPm.js} +2 -2
- package/dist-lib/{highlighted-body-OFNGDK62-C2DGVKV8.js → highlighted-body-OFNGDK62-DWhG_ijx.js} +1 -1
- package/dist-lib/index-B0neMIbR.js +16520 -0
- package/dist-lib/index-BBC0E3Qg.js +4994 -0
- package/dist-lib/{index-Dtkd4mEk.js → index-CE7H8LiZ.js} +2 -2
- package/dist-lib/{index-DWkBvb-9.js → index-FgVvPpIY.js} +2 -2
- package/dist-lib/index.js +1 -1
- package/dist-lib/{infoDiagram-FWYZ7A6U-BbUkT0KS.js → infoDiagram-FWYZ7A6U-Bo_FNR91.js} +2 -2
- package/dist-lib/ishikawaDiagram-FXEZZL3T-C5bGD-Eb.js +624 -0
- package/dist-lib/{journeyDiagram-5HDEW3XC-CgykmVSC.js → journeyDiagram-5HDEW3XC-C8qM7SxF.js} +4 -4
- package/dist-lib/kanban-definition-HUTT4EX6-C-EK5Puz.js +724 -0
- package/dist-lib/{katex-jHfnQmlp.js → katex-DoRnZ_sp.js} +1 -1
- package/dist-lib/{layout-BGrtsiRL.js → layout-DBbo_M5I.js} +2 -2
- package/dist-lib/{linear-B5ZSwawJ.js → linear-zGzX0-I0.js} +1 -1
- package/dist-lib/{map-hbfFlSln.js → map-DRdzG8Ho.js} +1 -1
- package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +4 -0
- package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js} +310 -311
- package/dist-lib/{pegDiagram-2B236MQR-CYDAJHPF.js → pegDiagram-2B236MQR-DrKNikeG.js} +4 -4
- package/dist-lib/{pieDiagram-ENE6RG2P-udKxQm4p.js → pieDiagram-ENE6RG2P-Fm_jc0HL.js} +83 -84
- package/dist-lib/quadrantDiagram-ABIIQ3AL-zDRY0VtB.js +1029 -0
- package/dist-lib/{railroadDiagram-RFXS5EU6-q0Svkmuy.js → railroadDiagram-RFXS5EU6-BQuFX39y.js} +4 -4
- package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js} +269 -268
- package/dist-lib/{resume-session-sheet-Dr_81Gfm.js → resume-session-sheet-DTe_2QtJ.js} +2 -3
- package/dist-lib/sankeyDiagram-HTMAVEWB-BjRyuB6L.js +859 -0
- package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js} +892 -899
- package/dist-lib/{session-token-usage-CGhHZ3lT.js → session-token-usage-DY4vFlfs.js} +82 -83
- package/dist-lib/{shadow-text-size-CBCTdbYU.js → shadow-text-size-smWA4wIU.js} +1 -2
- package/dist-lib/{shipped-page-p3oulUiM.js → shipped-page-B-ruG8li.js} +233 -236
- package/dist-lib/sizeCapture-X5ZJPWSS-DqkV8s1N.js +46 -0
- package/dist-lib/{stateDiagram-2N3HPSRC-CnWB7HvU.js → stateDiagram-2N3HPSRC-0vE3REl_.js} +4 -4
- package/dist-lib/{stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js → stateDiagram-v2-6OUMAXLB-u_56Obsh.js} +2 -2
- package/dist-lib/{streamdown-response-Dbn0PKUH.js → streamdown-response-BQy3geXs.js} +290 -297
- package/dist-lib/styles.css +1 -1
- package/dist-lib/swimlanes-5IMT3BWC-H0raIBd1.js +5332 -0
- package/dist-lib/{swimlanesDiagram-G3AALYLV-CKyOeqF_.js → swimlanesDiagram-G3AALYLV-By52HaDu.js} +2 -2
- package/dist-lib/timeline-definition-FHXFAJF6-h1LLYUQk.js +1055 -0
- package/dist-lib/vennDiagram-L72KCM5P-B4wDw_Kh.js +1578 -0
- package/dist-lib/wardleyDiagram-EHGQE667-DLMBGiwD.js +678 -0
- package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js} +526 -496
- package/package.json +4 -3
- package/dist-lib/FileEditor-BIz0qCyW.js +0 -6892
- package/dist-lib/FileTreePane-BG2k7gTc.js +0 -8422
- package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +0 -15
- package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +0 -9
- package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +0 -664
- package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +0 -315
- package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +0 -20
- package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +0 -23853
- package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +0 -346
- package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +0 -530
- package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +0 -143
- package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +0 -353
- package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +0 -1645
- package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +0 -828
- package/dist-lib/index-DcwavxA1.js +0 -5062
- package/dist-lib/index-JkCQXUYs.js +0 -16566
- package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +0 -622
- package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +0 -726
- package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +0 -4
- package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +0 -1025
- package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +0 -847
- package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +0 -47
- package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +0 -5353
- package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +0 -1066
- package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +0 -1585
- package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +0 -684
package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js}
RENAMED
|
@@ -1,221 +1,221 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { i as
|
|
3
|
-
import { o as
|
|
4
|
-
import { l as
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
for (var s = -1, a = Math.max(0, Math.ceil((
|
|
8
|
-
|
|
9
|
-
return
|
|
1
|
+
import { s as si, g as ai, p as Et, o as ni, a as oi, b as ri, _ as n, l as It, F as hi, e as li, q as ci, z as pt, i as ui, B as Mt, D as gi, W as xi, az as di, a7 as Dt } from "./index-B0neMIbR.js";
|
|
2
|
+
import { i as fi } from "./init-DjUOC4st.js";
|
|
3
|
+
import { o as pi } from "./ordinal-DfAQgscy.js";
|
|
4
|
+
import { l as vt } from "./linear-zGzX0-I0.js";
|
|
5
|
+
function mi(t, i, e) {
|
|
6
|
+
t = +t, i = +i, e = (a = arguments.length) < 2 ? (i = t, t = 0, 1) : a < 3 ? 1 : +e;
|
|
7
|
+
for (var s = -1, a = Math.max(0, Math.ceil((i - t) / e)) | 0, c = new Array(a); ++s < a; )
|
|
8
|
+
c[s] = t + s * e;
|
|
9
|
+
return c;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
var
|
|
13
|
-
delete
|
|
11
|
+
function ut() {
|
|
12
|
+
var t = pi().unknown(void 0), i = t.domain, e = t.range, s = 0, a = 1, c, l, f = !1, S = 0, k = 0, L = 0.5;
|
|
13
|
+
delete t.unknown;
|
|
14
14
|
function _() {
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
var I =
|
|
18
|
-
return
|
|
15
|
+
var y = i().length, E = a < s, v = E ? a : s, P = E ? s : a;
|
|
16
|
+
c = (P - v) / Math.max(1, y - S + k * 2), f && (c = Math.floor(c)), v += (P - v - c * (y - S)) * L, l = c * (1 - S), f && (v = Math.round(v), l = Math.round(l));
|
|
17
|
+
var I = mi(y).map(function(p) {
|
|
18
|
+
return v + c * p;
|
|
19
19
|
});
|
|
20
|
-
return
|
|
21
|
-
}
|
|
22
|
-
return
|
|
23
|
-
return arguments.length ? (
|
|
24
|
-
},
|
|
25
|
-
return arguments.length ? ([s, a] =
|
|
26
|
-
},
|
|
27
|
-
return [s, a] =
|
|
28
|
-
},
|
|
20
|
+
return e(E ? I.reverse() : I);
|
|
21
|
+
}
|
|
22
|
+
return t.domain = function(y) {
|
|
23
|
+
return arguments.length ? (i(y), _()) : i();
|
|
24
|
+
}, t.range = function(y) {
|
|
25
|
+
return arguments.length ? ([s, a] = y, s = +s, a = +a, _()) : [s, a];
|
|
26
|
+
}, t.rangeRound = function(y) {
|
|
27
|
+
return [s, a] = y, s = +s, a = +a, f = !0, _();
|
|
28
|
+
}, t.bandwidth = function() {
|
|
29
29
|
return l;
|
|
30
|
-
},
|
|
31
|
-
return
|
|
32
|
-
},
|
|
33
|
-
return arguments.length ? (f = !!
|
|
34
|
-
},
|
|
35
|
-
return arguments.length ? (
|
|
36
|
-
},
|
|
37
|
-
return arguments.length ? (
|
|
38
|
-
},
|
|
39
|
-
return arguments.length ? (k = +
|
|
40
|
-
},
|
|
41
|
-
return arguments.length ? (
|
|
42
|
-
},
|
|
43
|
-
return
|
|
44
|
-
},
|
|
30
|
+
}, t.step = function() {
|
|
31
|
+
return c;
|
|
32
|
+
}, t.round = function(y) {
|
|
33
|
+
return arguments.length ? (f = !!y, _()) : f;
|
|
34
|
+
}, t.padding = function(y) {
|
|
35
|
+
return arguments.length ? (S = Math.min(1, k = +y), _()) : S;
|
|
36
|
+
}, t.paddingInner = function(y) {
|
|
37
|
+
return arguments.length ? (S = Math.min(1, y), _()) : S;
|
|
38
|
+
}, t.paddingOuter = function(y) {
|
|
39
|
+
return arguments.length ? (k = +y, _()) : k;
|
|
40
|
+
}, t.align = function(y) {
|
|
41
|
+
return arguments.length ? (L = Math.max(0, Math.min(1, y)), _()) : L;
|
|
42
|
+
}, t.copy = function() {
|
|
43
|
+
return ut(i(), [s, a]).round(f).paddingInner(S).paddingOuter(k).align(L);
|
|
44
|
+
}, fi.apply(_(), arguments);
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
for (u = u || {}, g = F.length; g--; u[F[g]] =
|
|
46
|
+
var gt = (function() {
|
|
47
|
+
var t = /* @__PURE__ */ n(function(F, r, u, g) {
|
|
48
|
+
for (u = u || {}, g = F.length; g--; u[F[g]] = r) ;
|
|
49
49
|
return u;
|
|
50
|
-
}, "o"),
|
|
50
|
+
}, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], a = [1, 5], c = [1, 6], l = [1, 7], f = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 36, 37, 38], S = [1, 25], k = [1, 26], L = [1, 28], _ = [1, 29], y = [1, 30], E = [1, 31], v = [1, 32], P = [1, 33], I = [1, 34], p = [1, 35], T = [1, 36], h = [1, 37], B = [1, 43], W = [1, 42], X = [1, 47], Y = [1, 50], C = [1, 10, 12, 14, 16, 18, 19, 21, 23, 36, 37, 38], H = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 28, 29, 36, 37, 38], b = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 28, 29, 36, 37, 38, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], A = [1, 65], V = [26, 28], R = {
|
|
51
51
|
trace: /* @__PURE__ */ n(function() {
|
|
52
52
|
}, "trace"),
|
|
53
53
|
yy: {},
|
|
54
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, dataPoints: 25, SQUARE_BRACES_END: 26, dataPoint: 27, COMMA: 28, NUMBER_WITH_DECIMAL: 29, STR: 30, xAxisData: 31, bandData: 32, ARROW_DELIMITER: 33, commaSeparatedTexts: 34, yAxisData: 35, NEWLINE: 36, SEMI: 37, EOF: 38, alphaNum: 39, MD_STR: 40, alphaNumToken: 41, AMP: 42, NUM: 43, ALPHA: 44, PLUS: 45, EQUALS: 46, MULT: 47, DOT: 48, BRKT: 49, MINUS: 50, UNDERSCORE: 51, $accept: 0, $end: 1 },
|
|
55
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", 28: "COMMA", 29: "NUMBER_WITH_DECIMAL", 30: "STR", 33: "ARROW_DELIMITER", 36: "NEWLINE", 37: "SEMI", 38: "EOF", 40: "MD_STR", 42: "AMP", 43: "NUM", 44: "ALPHA", 45: "PLUS", 46: "EQUALS", 47: "MULT", 48: "DOT", 49: "BRKT", 50: "MINUS", 51: "UNDERSCORE" },
|
|
56
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], [27, 2], [27, 1], [13, 1], [13, 2], [13, 1], [31, 1], [31, 3], [32, 3], [34, 3], [34, 1], [15, 1], [15, 2], [15, 1], [35, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [39, 1], [39, 2], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1], [41, 1]],
|
|
57
|
-
performAction: /* @__PURE__ */ n(function(
|
|
58
|
-
var
|
|
59
|
-
switch (
|
|
57
|
+
performAction: /* @__PURE__ */ n(function(r, u, g, x, w, o, K) {
|
|
58
|
+
var d = o.length - 1;
|
|
59
|
+
switch (w) {
|
|
60
60
|
case 5:
|
|
61
|
-
x.setOrientation(
|
|
61
|
+
x.setOrientation(o[d]);
|
|
62
62
|
break;
|
|
63
63
|
case 9:
|
|
64
|
-
x.setDiagramTitle(
|
|
64
|
+
x.setDiagramTitle(o[d].text.trim());
|
|
65
65
|
break;
|
|
66
66
|
case 12:
|
|
67
|
-
x.setLineData({ text: "", type: "text" },
|
|
67
|
+
x.setLineData({ text: "", type: "text" }, o[d]);
|
|
68
68
|
break;
|
|
69
69
|
case 13:
|
|
70
|
-
x.setLineData(
|
|
70
|
+
x.setLineData(o[d - 1], o[d]);
|
|
71
71
|
break;
|
|
72
72
|
case 14:
|
|
73
|
-
x.setBarData({ text: "", type: "text" },
|
|
73
|
+
x.setBarData({ text: "", type: "text" }, o[d]);
|
|
74
74
|
break;
|
|
75
75
|
case 15:
|
|
76
|
-
x.setBarData(
|
|
76
|
+
x.setBarData(o[d - 1], o[d]);
|
|
77
77
|
break;
|
|
78
78
|
case 16:
|
|
79
|
-
this.$ =
|
|
79
|
+
this.$ = o[d].trim(), x.setAccTitle(this.$);
|
|
80
80
|
break;
|
|
81
81
|
case 17:
|
|
82
82
|
case 18:
|
|
83
|
-
this.$ =
|
|
83
|
+
this.$ = o[d].trim(), x.setAccDescription(this.$);
|
|
84
84
|
break;
|
|
85
85
|
case 19:
|
|
86
|
-
this.$ =
|
|
86
|
+
this.$ = o[d - 1];
|
|
87
87
|
break;
|
|
88
88
|
case 20:
|
|
89
89
|
case 30:
|
|
90
|
-
this.$ = [
|
|
90
|
+
this.$ = [o[d - 2], ...o[d]];
|
|
91
91
|
break;
|
|
92
92
|
case 21:
|
|
93
93
|
case 31:
|
|
94
|
-
this.$ = [
|
|
94
|
+
this.$ = [o[d]];
|
|
95
95
|
break;
|
|
96
96
|
case 22:
|
|
97
|
-
this.$ = { value: Number(
|
|
97
|
+
this.$ = { value: Number(o[d - 1]), label: o[d] };
|
|
98
98
|
break;
|
|
99
99
|
case 23:
|
|
100
|
-
this.$ = { value: Number(
|
|
100
|
+
this.$ = { value: Number(o[d]), label: "" };
|
|
101
101
|
break;
|
|
102
102
|
case 24:
|
|
103
|
-
x.setXAxisTitle(
|
|
103
|
+
x.setXAxisTitle(o[d]);
|
|
104
104
|
break;
|
|
105
105
|
case 25:
|
|
106
|
-
x.setXAxisTitle(
|
|
106
|
+
x.setXAxisTitle(o[d - 1]);
|
|
107
107
|
break;
|
|
108
108
|
case 26:
|
|
109
109
|
x.setXAxisTitle({ type: "text", text: "" });
|
|
110
110
|
break;
|
|
111
111
|
case 27:
|
|
112
|
-
x.setXAxisBand(
|
|
112
|
+
x.setXAxisBand(o[d]);
|
|
113
113
|
break;
|
|
114
114
|
case 28:
|
|
115
|
-
x.setXAxisRangeData(Number(
|
|
115
|
+
x.setXAxisRangeData(Number(o[d - 2]), Number(o[d]));
|
|
116
116
|
break;
|
|
117
117
|
case 29:
|
|
118
|
-
this.$ =
|
|
118
|
+
this.$ = o[d - 1];
|
|
119
119
|
break;
|
|
120
120
|
case 32:
|
|
121
|
-
x.setYAxisTitle(
|
|
121
|
+
x.setYAxisTitle(o[d]);
|
|
122
122
|
break;
|
|
123
123
|
case 33:
|
|
124
|
-
x.setYAxisTitle(
|
|
124
|
+
x.setYAxisTitle(o[d - 1]);
|
|
125
125
|
break;
|
|
126
126
|
case 34:
|
|
127
127
|
x.setYAxisTitle({ type: "text", text: "" });
|
|
128
128
|
break;
|
|
129
129
|
case 35:
|
|
130
|
-
x.setYAxisRangeData(Number(
|
|
130
|
+
x.setYAxisRangeData(Number(o[d - 2]), Number(o[d]));
|
|
131
131
|
break;
|
|
132
132
|
case 39:
|
|
133
|
-
this.$ = { text:
|
|
133
|
+
this.$ = { text: o[d], type: "text" };
|
|
134
134
|
break;
|
|
135
135
|
case 40:
|
|
136
|
-
this.$ = { text:
|
|
136
|
+
this.$ = { text: o[d], type: "text" };
|
|
137
137
|
break;
|
|
138
138
|
case 41:
|
|
139
|
-
this.$ = { text:
|
|
139
|
+
this.$ = { text: o[d], type: "markdown" };
|
|
140
140
|
break;
|
|
141
141
|
case 42:
|
|
142
|
-
this.$ =
|
|
142
|
+
this.$ = o[d];
|
|
143
143
|
break;
|
|
144
144
|
case 43:
|
|
145
|
-
this.$ =
|
|
145
|
+
this.$ = o[d - 1] + "" + o[d];
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
148
148
|
}, "anonymous"),
|
|
149
|
-
table: [
|
|
149
|
+
table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 36: a, 37: c, 38: l }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 36: a, 37: c, 38: l }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 36: a, 37: c, 38: l }), { 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(f, [2, 36]), t(f, [2, 37]), t(f, [2, 38]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 36: a, 37: c, 38: l }), { 1: [2, 3] }, t(f, [2, 5]), t(i, [2, 7], { 4: 22, 36: a, 37: c, 38: l }), { 11: 23, 30: S, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, { 11: 39, 13: 38, 24: B, 29: W, 30: S, 31: 40, 32: 41, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, { 11: 45, 15: 44, 29: X, 30: S, 35: 46, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, { 11: 49, 17: 48, 24: Y, 30: S, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, { 11: 52, 17: 51, 24: Y, 30: S, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, { 20: [1, 53] }, { 22: [1, 54] }, t(C, [2, 18]), { 1: [2, 2] }, t(C, [2, 8]), t(C, [2, 9]), t(H, [2, 39], { 41: 55, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }), t(H, [2, 40]), t(H, [2, 41]), t(b, [2, 42]), t(b, [2, 44]), t(b, [2, 45]), t(b, [2, 46]), t(b, [2, 47]), t(b, [2, 48]), t(b, [2, 49]), t(b, [2, 50]), t(b, [2, 51]), t(b, [2, 52]), t(b, [2, 53]), t(C, [2, 10]), t(C, [2, 24], { 32: 41, 31: 56, 24: B, 29: W }), t(C, [2, 26]), t(C, [2, 27]), { 33: [1, 57] }, { 11: 59, 30: S, 34: 58, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, t(C, [2, 11]), t(C, [2, 32], { 35: 60, 29: X }), t(C, [2, 34]), { 33: [1, 61] }, t(C, [2, 12]), { 17: 62, 24: Y }, { 25: 63, 27: 64, 29: A }, t(C, [2, 14]), { 17: 66, 24: Y }, t(C, [2, 16]), t(C, [2, 17]), t(b, [2, 43]), t(C, [2, 25]), { 29: [1, 67] }, { 26: [1, 68] }, { 26: [2, 31], 28: [1, 69] }, t(C, [2, 33]), { 29: [1, 70] }, t(C, [2, 13]), { 26: [1, 71] }, { 26: [2, 21], 28: [1, 72] }, t(V, [2, 23], { 30: [1, 73] }), t(C, [2, 15]), t(C, [2, 28]), t(C, [2, 29]), { 11: 59, 30: S, 34: 74, 39: 24, 40: k, 41: 27, 42: L, 43: _, 44: y, 45: E, 46: v, 47: P, 48: I, 49: p, 50: T, 51: h }, t(C, [2, 35]), t(C, [2, 19]), { 25: 75, 27: 64, 29: A }, t(V, [2, 22]), { 26: [2, 30] }, { 26: [2, 20] }],
|
|
150
150
|
defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 74: [2, 30], 75: [2, 20] },
|
|
151
|
-
parseError: /* @__PURE__ */ n(function(
|
|
151
|
+
parseError: /* @__PURE__ */ n(function(r, u) {
|
|
152
152
|
if (u.recoverable)
|
|
153
|
-
this.trace(
|
|
153
|
+
this.trace(r);
|
|
154
154
|
else {
|
|
155
|
-
var g = new Error(
|
|
155
|
+
var g = new Error(r);
|
|
156
156
|
throw g.hash = u, g;
|
|
157
157
|
}
|
|
158
158
|
}, "parseError"),
|
|
159
|
-
parse: /* @__PURE__ */ n(function(
|
|
160
|
-
var u = this, g = [0], x = [],
|
|
161
|
-
for (var
|
|
162
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
163
|
-
|
|
164
|
-
var
|
|
165
|
-
|
|
166
|
-
var
|
|
159
|
+
parse: /* @__PURE__ */ n(function(r) {
|
|
160
|
+
var u = this, g = [0], x = [], w = [null], o = [], K = this.table, d = "", et = 0, Rt = 0, Jt = 2, _t = 1, ti = o.slice.call(arguments, 1), D = Object.create(this.lexer), U = { yy: {} };
|
|
161
|
+
for (var rt in this.yy)
|
|
162
|
+
Object.prototype.hasOwnProperty.call(this.yy, rt) && (U.yy[rt] = this.yy[rt]);
|
|
163
|
+
D.setInput(r, U.yy), U.yy.lexer = D, U.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
|
|
164
|
+
var ht = D.yylloc;
|
|
165
|
+
o.push(ht);
|
|
166
|
+
var ii = D.options && D.options.ranges;
|
|
167
167
|
typeof U.yy.parseError == "function" ? this.parseError = U.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
168
|
-
function
|
|
169
|
-
g.length = g.length - 2 * z,
|
|
168
|
+
function ei(z) {
|
|
169
|
+
g.length = g.length - 2 * z, w.length = w.length - z, o.length = o.length - z;
|
|
170
170
|
}
|
|
171
|
-
n(
|
|
172
|
-
function
|
|
171
|
+
n(ei, "popStack");
|
|
172
|
+
function kt() {
|
|
173
173
|
var z;
|
|
174
|
-
return z = x.pop() ||
|
|
174
|
+
return z = x.pop() || D.lex() || _t, typeof z != "number" && (z instanceof Array && (x = z, z = x.pop()), z = u.symbols_[z] || z), z;
|
|
175
175
|
}
|
|
176
|
-
n(
|
|
177
|
-
for (var M, $, O,
|
|
178
|
-
if ($ = g[g.length - 1], this.defaultActions[$] ? O = this.defaultActions[$] : ((M === null || typeof M > "u") && (M =
|
|
179
|
-
var
|
|
180
|
-
|
|
181
|
-
for (
|
|
182
|
-
this.terminals_[
|
|
183
|
-
|
|
184
|
-
` +
|
|
185
|
-
Expecting ` +
|
|
186
|
-
text:
|
|
176
|
+
n(kt, "lex");
|
|
177
|
+
for (var M, $, O, lt, G = {}, st, N, Tt, at; ; ) {
|
|
178
|
+
if ($ = g[g.length - 1], this.defaultActions[$] ? O = this.defaultActions[$] : ((M === null || typeof M > "u") && (M = kt()), O = K[$] && K[$][M]), typeof O > "u" || !O.length || !O[0]) {
|
|
179
|
+
var ct = "";
|
|
180
|
+
at = [];
|
|
181
|
+
for (st in K[$])
|
|
182
|
+
this.terminals_[st] && st > Jt && at.push("'" + this.terminals_[st] + "'");
|
|
183
|
+
D.showPosition ? ct = "Parse error on line " + (et + 1) + `:
|
|
184
|
+
` + D.showPosition() + `
|
|
185
|
+
Expecting ` + at.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ct = "Parse error on line " + (et + 1) + ": Unexpected " + (M == _t ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(ct, {
|
|
186
|
+
text: D.match,
|
|
187
187
|
token: this.terminals_[M] || M,
|
|
188
|
-
line:
|
|
189
|
-
loc:
|
|
190
|
-
expected:
|
|
188
|
+
line: D.yylineno,
|
|
189
|
+
loc: ht,
|
|
190
|
+
expected: at
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
if (O[0] instanceof Array && O.length > 1)
|
|
194
194
|
throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + M);
|
|
195
195
|
switch (O[0]) {
|
|
196
196
|
case 1:
|
|
197
|
-
g.push(M),
|
|
197
|
+
g.push(M), w.push(D.yytext), o.push(D.yylloc), g.push(O[1]), M = null, Rt = D.yyleng, d = D.yytext, et = D.yylineno, ht = D.yylloc;
|
|
198
198
|
break;
|
|
199
199
|
case 2:
|
|
200
|
-
if (N = this.productions_[O[1]][1], G.$ =
|
|
201
|
-
first_line:
|
|
202
|
-
last_line:
|
|
203
|
-
first_column:
|
|
204
|
-
last_column:
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
]),
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
200
|
+
if (N = this.productions_[O[1]][1], G.$ = w[w.length - N], G._$ = {
|
|
201
|
+
first_line: o[o.length - (N || 1)].first_line,
|
|
202
|
+
last_line: o[o.length - 1].last_line,
|
|
203
|
+
first_column: o[o.length - (N || 1)].first_column,
|
|
204
|
+
last_column: o[o.length - 1].last_column
|
|
205
|
+
}, ii && (G._$.range = [
|
|
206
|
+
o[o.length - (N || 1)].range[0],
|
|
207
|
+
o[o.length - 1].range[1]
|
|
208
|
+
]), lt = this.performAction.apply(G, [
|
|
209
|
+
d,
|
|
210
|
+
Rt,
|
|
211
|
+
et,
|
|
212
212
|
U.yy,
|
|
213
213
|
O[1],
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
].concat(
|
|
217
|
-
return
|
|
218
|
-
N && (g = g.slice(0, -1 * N * 2),
|
|
214
|
+
w,
|
|
215
|
+
o
|
|
216
|
+
].concat(ti)), typeof lt < "u")
|
|
217
|
+
return lt;
|
|
218
|
+
N && (g = g.slice(0, -1 * N * 2), w = w.slice(0, -1 * N), o = o.slice(0, -1 * N)), g.push(this.productions_[O[1]][0]), w.push(G.$), o.push(G._$), Tt = K[g[g.length - 2]][g[g.length - 1]], g.push(Tt);
|
|
219
219
|
break;
|
|
220
220
|
case 3:
|
|
221
221
|
return !0;
|
|
@@ -223,7 +223,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
|
|
|
223
223
|
}
|
|
224
224
|
return !0;
|
|
225
225
|
}, "parse")
|
|
226
|
-
},
|
|
226
|
+
}, Q = /* @__PURE__ */ (function() {
|
|
227
227
|
var F = {
|
|
228
228
|
EOF: 1,
|
|
229
229
|
parseError: /* @__PURE__ */ n(function(u, g) {
|
|
@@ -233,8 +233,8 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
|
|
|
233
233
|
throw new Error(u);
|
|
234
234
|
}, "parseError"),
|
|
235
235
|
// resets the lexer, sets new input
|
|
236
|
-
setInput: /* @__PURE__ */ n(function(
|
|
237
|
-
return this.yy = u || this.yy || {}, this._input =
|
|
236
|
+
setInput: /* @__PURE__ */ n(function(r, u) {
|
|
237
|
+
return this.yy = u || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
238
238
|
first_line: 1,
|
|
239
239
|
first_column: 0,
|
|
240
240
|
last_line: 1,
|
|
@@ -243,24 +243,24 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
|
|
|
243
243
|
}, "setInput"),
|
|
244
244
|
// consumes and returns one char from the input
|
|
245
245
|
input: /* @__PURE__ */ n(function() {
|
|
246
|
-
var
|
|
247
|
-
this.yytext +=
|
|
248
|
-
var u =
|
|
249
|
-
return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1),
|
|
246
|
+
var r = this._input[0];
|
|
247
|
+
this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
|
|
248
|
+
var u = r.match(/(?:\r\n?|\n).*/g);
|
|
249
|
+
return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
|
|
250
250
|
}, "input"),
|
|
251
251
|
// unshifts one char (or a string) into the input
|
|
252
|
-
unput: /* @__PURE__ */ n(function(
|
|
253
|
-
var u =
|
|
254
|
-
this._input =
|
|
252
|
+
unput: /* @__PURE__ */ n(function(r) {
|
|
253
|
+
var u = r.length, g = r.split(/(?:\r\n?|\n)/g);
|
|
254
|
+
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
|
|
255
255
|
var x = this.match.split(/(?:\r\n?|\n)/g);
|
|
256
256
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
|
|
257
|
-
var
|
|
257
|
+
var w = this.yylloc.range;
|
|
258
258
|
return this.yylloc = {
|
|
259
259
|
first_line: this.yylloc.first_line,
|
|
260
260
|
last_line: this.yylineno + 1,
|
|
261
261
|
first_column: this.yylloc.first_column,
|
|
262
262
|
last_column: g ? (g.length === x.length ? this.yylloc.first_column : 0) + x[x.length - g.length].length - g[0].length : this.yylloc.first_column - u
|
|
263
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
263
|
+
}, this.options.ranges && (this.yylloc.range = [w[0], w[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
|
|
264
264
|
}, "unput"),
|
|
265
265
|
// When called from action, caches matched text and appends it on next action
|
|
266
266
|
more: /* @__PURE__ */ n(function() {
|
|
@@ -280,29 +280,29 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
|
|
|
280
280
|
return this;
|
|
281
281
|
}, "reject"),
|
|
282
282
|
// retain first n characters of the match
|
|
283
|
-
less: /* @__PURE__ */ n(function(
|
|
284
|
-
this.unput(this.match.slice(
|
|
283
|
+
less: /* @__PURE__ */ n(function(r) {
|
|
284
|
+
this.unput(this.match.slice(r));
|
|
285
285
|
}, "less"),
|
|
286
286
|
// displays already matched input, i.e. for error messages
|
|
287
287
|
pastInput: /* @__PURE__ */ n(function() {
|
|
288
|
-
var
|
|
289
|
-
return (
|
|
288
|
+
var r = this.matched.substr(0, this.matched.length - this.match.length);
|
|
289
|
+
return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
|
|
290
290
|
}, "pastInput"),
|
|
291
291
|
// displays upcoming input, i.e. for error messages
|
|
292
292
|
upcomingInput: /* @__PURE__ */ n(function() {
|
|
293
|
-
var
|
|
294
|
-
return
|
|
293
|
+
var r = this.match;
|
|
294
|
+
return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
295
295
|
}, "upcomingInput"),
|
|
296
296
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
297
297
|
showPosition: /* @__PURE__ */ n(function() {
|
|
298
|
-
var
|
|
299
|
-
return
|
|
298
|
+
var r = this.pastInput(), u = new Array(r.length + 1).join("-");
|
|
299
|
+
return r + this.upcomingInput() + `
|
|
300
300
|
` + u + "^";
|
|
301
301
|
}, "showPosition"),
|
|
302
302
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
303
|
-
test_match: /* @__PURE__ */ n(function(
|
|
304
|
-
var g, x,
|
|
305
|
-
if (this.options.backtrack_lexer && (
|
|
303
|
+
test_match: /* @__PURE__ */ n(function(r, u) {
|
|
304
|
+
var g, x, w;
|
|
305
|
+
if (this.options.backtrack_lexer && (w = {
|
|
306
306
|
yylineno: this.yylineno,
|
|
307
307
|
yylloc: {
|
|
308
308
|
first_line: this.yylloc.first_line,
|
|
@@ -321,16 +321,16 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
|
|
|
321
321
|
yy: this.yy,
|
|
322
322
|
conditionStack: this.conditionStack.slice(0),
|
|
323
323
|
done: this.done
|
|
324
|
-
}, this.options.ranges && (
|
|
324
|
+
}, this.options.ranges && (w.yylloc.range = this.yylloc.range.slice(0))), x = r[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
|
|
325
325
|
first_line: this.yylloc.last_line,
|
|
326
326
|
last_line: this.yylineno + 1,
|
|
327
327
|
first_column: this.yylloc.last_column,
|
|
328
|
-
last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column +
|
|
329
|
-
}, this.yytext +=
|
|
328
|
+
last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
329
|
+
}, 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 = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], g = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
|
|
330
330
|
return g;
|
|
331
331
|
if (this._backtrack) {
|
|
332
|
-
for (var
|
|
333
|
-
this[
|
|
332
|
+
for (var o in w)
|
|
333
|
+
this[o] = w[o];
|
|
334
334
|
return !1;
|
|
335
335
|
}
|
|
336
336
|
return !1;
|
|
@@ -340,13 +340,13 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
|
|
|
340
340
|
if (this.done)
|
|
341
341
|
return this.EOF;
|
|
342
342
|
this._input || (this.done = !0);
|
|
343
|
-
var
|
|
343
|
+
var r, u, g, x;
|
|
344
344
|
this._more || (this.yytext = "", this.match = "");
|
|
345
|
-
for (var
|
|
346
|
-
if (g = this._input.match(this.rules[
|
|
347
|
-
if (u = g, x =
|
|
348
|
-
if (
|
|
349
|
-
return
|
|
345
|
+
for (var w = this._currentRules(), o = 0; o < w.length; o++)
|
|
346
|
+
if (g = this._input.match(this.rules[w[o]]), g && (!u || g[0].length > u[0].length)) {
|
|
347
|
+
if (u = g, x = o, this.options.backtrack_lexer) {
|
|
348
|
+
if (r = this.test_match(g, w[o]), r !== !1)
|
|
349
|
+
return r;
|
|
350
350
|
if (this._backtrack) {
|
|
351
351
|
u = !1;
|
|
352
352
|
continue;
|
|
@@ -355,7 +355,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
|
|
|
355
355
|
} else if (!this.options.flex)
|
|
356
356
|
break;
|
|
357
357
|
}
|
|
358
|
-
return u ? (
|
|
358
|
+
return u ? (r = this.test_match(u, w[x]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
359
359
|
` + this.showPosition(), {
|
|
360
360
|
text: "",
|
|
361
361
|
token: null,
|
|
@@ -393,7 +393,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
|
|
|
393
393
|
return this.conditionStack.length;
|
|
394
394
|
}, "stateStackSize"),
|
|
395
395
|
options: { "case-insensitive": !0 },
|
|
396
|
-
performAction: /* @__PURE__ */ n(function(u, g, x,
|
|
396
|
+
performAction: /* @__PURE__ */ n(function(u, g, x, w) {
|
|
397
397
|
switch (x) {
|
|
398
398
|
case 0:
|
|
399
399
|
break;
|
|
@@ -501,49 +501,55 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : At =
|
|
|
501
501
|
};
|
|
502
502
|
return F;
|
|
503
503
|
})();
|
|
504
|
-
R.lexer =
|
|
504
|
+
R.lexer = Q;
|
|
505
505
|
function q() {
|
|
506
506
|
this.yy = {};
|
|
507
507
|
}
|
|
508
508
|
return n(q, "Parser"), q.prototype = R, R.Parser = q, new q();
|
|
509
509
|
})();
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
function
|
|
513
|
-
return
|
|
510
|
+
gt.parser = gt;
|
|
511
|
+
var yi = gt;
|
|
512
|
+
function xt(t) {
|
|
513
|
+
return t.type === "bar";
|
|
514
514
|
}
|
|
515
|
-
n(
|
|
516
|
-
function
|
|
517
|
-
return
|
|
515
|
+
n(xt, "isBarPlot");
|
|
516
|
+
function nt(t) {
|
|
517
|
+
return t.type === "band";
|
|
518
518
|
}
|
|
519
|
-
n(
|
|
520
|
-
function j(
|
|
521
|
-
return
|
|
519
|
+
n(nt, "isBandAxisData");
|
|
520
|
+
function j(t) {
|
|
521
|
+
return t.type === "linear";
|
|
522
522
|
}
|
|
523
523
|
n(j, "isLinearAxisData");
|
|
524
|
-
var
|
|
524
|
+
var zt = class {
|
|
525
525
|
constructor(t) {
|
|
526
526
|
this.parentGroup = t;
|
|
527
527
|
}
|
|
528
|
+
static {
|
|
529
|
+
n(this, "TextDimensionCalculatorWithFont");
|
|
530
|
+
}
|
|
528
531
|
getMaxDimension(t, i) {
|
|
529
532
|
if (!this.parentGroup)
|
|
530
533
|
return {
|
|
531
|
-
width: t.reduce((
|
|
534
|
+
width: t.reduce((a, c) => Math.max(c.length, a), 0) * i,
|
|
532
535
|
height: i
|
|
533
536
|
};
|
|
534
|
-
const
|
|
537
|
+
const e = {
|
|
535
538
|
width: 0,
|
|
536
539
|
height: 0
|
|
537
|
-
},
|
|
538
|
-
for (const
|
|
539
|
-
const
|
|
540
|
-
|
|
540
|
+
}, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
|
|
541
|
+
for (const a of t) {
|
|
542
|
+
const c = di(s, 1, a), l = c ? c.width : a.length * i, f = c ? c.height : i;
|
|
543
|
+
e.width = Math.max(e.width, l), e.height = Math.max(e.height, f);
|
|
541
544
|
}
|
|
542
|
-
return
|
|
545
|
+
return s.remove(), e;
|
|
543
546
|
}
|
|
544
|
-
},
|
|
545
|
-
constructor(t, i,
|
|
546
|
-
this.axisConfig = t, this.title = i, this.textDimensionCalculator =
|
|
547
|
+
}, Lt = 0.7, Pt = 0.2, Bt = class {
|
|
548
|
+
constructor(t, i, e, s) {
|
|
549
|
+
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 = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.normalizedLabelRotationInRad = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.normalizedLabelRotationInRad = this.axisConfig.labelRotation >= -90 && this.axisConfig.labelRotation <= 90 ? this.axisConfig.labelRotation * Math.PI / 180 : 0;
|
|
550
|
+
}
|
|
551
|
+
static {
|
|
552
|
+
n(this, "BaseAxis");
|
|
547
553
|
}
|
|
548
554
|
setRange(t) {
|
|
549
555
|
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();
|
|
@@ -568,42 +574,42 @@ var Q, Ut = (Q = class {
|
|
|
568
574
|
);
|
|
569
575
|
}
|
|
570
576
|
recalculateOuterPaddingToDrawBar() {
|
|
571
|
-
|
|
577
|
+
Lt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Lt * this.getTickDistance() / 2)), this.recalculateScale();
|
|
572
578
|
}
|
|
573
579
|
calculateSpaceIfDrawnHorizontally(t) {
|
|
574
580
|
let i = t.height;
|
|
575
581
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
576
|
-
const
|
|
577
|
-
this.outerPadding = Math.min(
|
|
578
|
-
let
|
|
579
|
-
this.axisPosition === "bottom" && this.normalizedLabelRotationInRad !== 0 && (
|
|
580
|
-
|
|
581
|
-
Math.abs(Math.sin(this.normalizedLabelRotationInRad) *
|
|
582
|
-
)),
|
|
582
|
+
const e = this.getLabelDimension(), s = Pt * t.width;
|
|
583
|
+
this.outerPadding = Math.min(e.width / 2, s);
|
|
584
|
+
let a = e.height;
|
|
585
|
+
this.axisPosition === "bottom" && this.normalizedLabelRotationInRad !== 0 && (a = Math.max(
|
|
586
|
+
a,
|
|
587
|
+
Math.abs(Math.sin(this.normalizedLabelRotationInRad) * e.width) + Math.abs(Math.cos(this.normalizedLabelRotationInRad) * e.height)
|
|
588
|
+
)), a += this.axisConfig.labelPadding * 2, this.labelTextHeight = e.height, a <= i && (i -= a, this.showLabel = !0);
|
|
583
589
|
}
|
|
584
590
|
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
585
|
-
const
|
|
591
|
+
const e = this.textDimensionCalculator.getMaxDimension(
|
|
586
592
|
[this.title],
|
|
587
593
|
this.axisConfig.titleFontSize
|
|
588
|
-
),
|
|
589
|
-
this.titleTextHeight =
|
|
594
|
+
), s = e.height + this.axisConfig.titlePadding * 2;
|
|
595
|
+
this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = !0);
|
|
590
596
|
}
|
|
591
597
|
this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
|
|
592
598
|
}
|
|
593
599
|
calculateSpaceIfDrawnVertical(t) {
|
|
594
600
|
let i = t.width;
|
|
595
601
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
596
|
-
const
|
|
597
|
-
this.outerPadding = Math.min(
|
|
598
|
-
const
|
|
599
|
-
|
|
602
|
+
const e = this.getLabelDimension(), s = Pt * t.height;
|
|
603
|
+
this.outerPadding = Math.min(e.height / 2, s);
|
|
604
|
+
const a = e.width + this.axisConfig.labelPadding * 2;
|
|
605
|
+
a <= i && (i -= a, this.showLabel = !0);
|
|
600
606
|
}
|
|
601
607
|
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
602
|
-
const
|
|
608
|
+
const e = this.textDimensionCalculator.getMaxDimension(
|
|
603
609
|
[this.title],
|
|
604
610
|
this.axisConfig.titleFontSize
|
|
605
|
-
),
|
|
606
|
-
this.titleTextHeight =
|
|
611
|
+
), s = e.height + this.axisConfig.titlePadding * 2;
|
|
612
|
+
this.titleTextHeight = e.height, s <= i && (i -= s, this.showTitle = !0);
|
|
607
613
|
}
|
|
608
614
|
this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
|
|
609
615
|
}
|
|
@@ -654,8 +660,8 @@ var Q, Ut = (Q = class {
|
|
|
654
660
|
t.push({
|
|
655
661
|
type: "path",
|
|
656
662
|
groupTexts: ["left-axis", "ticks"],
|
|
657
|
-
data: this.getTickValues().map((
|
|
658
|
-
path: `M ${i},${this.getScaleValue(
|
|
663
|
+
data: this.getTickValues().map((e) => ({
|
|
664
|
+
path: `M ${i},${this.getScaleValue(e)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
|
|
659
665
|
strokeFill: this.axisThemeConfig.tickColor,
|
|
660
666
|
strokeWidth: this.axisConfig.tickWidth
|
|
661
667
|
}))
|
|
@@ -712,8 +718,8 @@ var Q, Ut = (Q = class {
|
|
|
712
718
|
t.push({
|
|
713
719
|
type: "path",
|
|
714
720
|
groupTexts: ["bottom-axis", "ticks"],
|
|
715
|
-
data: this.getTickValues().map((
|
|
716
|
-
path: `M ${this.getScaleValue(
|
|
721
|
+
data: this.getTickValues().map((e) => ({
|
|
722
|
+
path: `M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i + this.axisConfig.tickLength}`,
|
|
717
723
|
strokeFill: this.axisThemeConfig.tickColor,
|
|
718
724
|
strokeWidth: this.axisConfig.tickWidth
|
|
719
725
|
}))
|
|
@@ -770,8 +776,8 @@ var Q, Ut = (Q = class {
|
|
|
770
776
|
t.push({
|
|
771
777
|
type: "path",
|
|
772
778
|
groupTexts: ["top-axis", "ticks"],
|
|
773
|
-
data: this.getTickValues().map((
|
|
774
|
-
path: `M ${this.getScaleValue(
|
|
779
|
+
data: this.getTickValues().map((e) => ({
|
|
780
|
+
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)}`,
|
|
775
781
|
strokeFill: this.axisThemeConfig.tickColor,
|
|
776
782
|
strokeWidth: this.axisConfig.tickWidth
|
|
777
783
|
}))
|
|
@@ -801,15 +807,18 @@ var Q, Ut = (Q = class {
|
|
|
801
807
|
throw Error("Drawing of right axis is not implemented");
|
|
802
808
|
return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
|
|
803
809
|
}
|
|
804
|
-
},
|
|
805
|
-
|
|
806
|
-
|
|
810
|
+
}, bi = class extends Bt {
|
|
811
|
+
static {
|
|
812
|
+
n(this, "BandAxis");
|
|
813
|
+
}
|
|
814
|
+
constructor(t, i, e, s, a) {
|
|
815
|
+
super(t, s, a, i), this.categories = e, this.scale = ut().domain(this.categories).range(this.getRange());
|
|
807
816
|
}
|
|
808
817
|
setRange(t) {
|
|
809
818
|
super.setRange(t);
|
|
810
819
|
}
|
|
811
820
|
recalculateScale() {
|
|
812
|
-
this.scale =
|
|
821
|
+
this.scale = ut().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), It.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
|
|
813
822
|
}
|
|
814
823
|
getTickValues() {
|
|
815
824
|
return this.categories;
|
|
@@ -817,47 +826,53 @@ var Q, Ut = (Q = class {
|
|
|
817
826
|
getScaleValue(t) {
|
|
818
827
|
return this.scale(t) ?? this.getRange()[0];
|
|
819
828
|
}
|
|
820
|
-
},
|
|
821
|
-
|
|
822
|
-
|
|
829
|
+
}, Ai = class extends Bt {
|
|
830
|
+
static {
|
|
831
|
+
n(this, "LinearAxis");
|
|
832
|
+
}
|
|
833
|
+
constructor(t, i, e, s, a) {
|
|
834
|
+
super(t, s, a, i), this.domain = e, this.scale = vt().domain(this.domain).range(this.getRange());
|
|
823
835
|
}
|
|
824
836
|
getTickValues() {
|
|
825
837
|
return this.scale.ticks();
|
|
826
838
|
}
|
|
827
839
|
recalculateScale() {
|
|
828
840
|
const t = [...this.domain];
|
|
829
|
-
this.axisPosition === "left" && t.reverse(), this.scale =
|
|
841
|
+
this.axisPosition === "left" && t.reverse(), this.scale = vt().domain(t).range(this.getRange());
|
|
830
842
|
}
|
|
831
843
|
getScaleValue(t) {
|
|
832
844
|
return this.scale(t);
|
|
833
845
|
}
|
|
834
|
-
}
|
|
835
|
-
function
|
|
836
|
-
const a = new
|
|
837
|
-
return
|
|
838
|
-
t,
|
|
846
|
+
};
|
|
847
|
+
function dt(t, i, e, s) {
|
|
848
|
+
const a = new zt(s);
|
|
849
|
+
return nt(t) ? new bi(
|
|
839
850
|
i,
|
|
840
|
-
e
|
|
841
|
-
|
|
851
|
+
e,
|
|
852
|
+
t.categories,
|
|
853
|
+
t.title,
|
|
842
854
|
a
|
|
843
|
-
) : new
|
|
844
|
-
t,
|
|
855
|
+
) : new Ai(
|
|
845
856
|
i,
|
|
846
|
-
|
|
847
|
-
|
|
857
|
+
e,
|
|
858
|
+
[t.min, t.max],
|
|
859
|
+
t.title,
|
|
848
860
|
a
|
|
849
861
|
);
|
|
850
862
|
}
|
|
851
|
-
n(
|
|
852
|
-
var
|
|
853
|
-
constructor(t, i,
|
|
854
|
-
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData =
|
|
863
|
+
n(dt, "getAxis");
|
|
864
|
+
var wi = class {
|
|
865
|
+
constructor(t, i, e, s) {
|
|
866
|
+
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = s, this.boundingRect = {
|
|
855
867
|
x: 0,
|
|
856
868
|
y: 0,
|
|
857
869
|
width: 0,
|
|
858
870
|
height: 0
|
|
859
871
|
}, this.showChartTitle = !1;
|
|
860
872
|
}
|
|
873
|
+
static {
|
|
874
|
+
n(this, "ChartTitle");
|
|
875
|
+
}
|
|
861
876
|
setBoundingBoxXY(t) {
|
|
862
877
|
this.boundingRect.x = t.x, this.boundingRect.y = t.y;
|
|
863
878
|
}
|
|
@@ -865,8 +880,8 @@ var tt, Pi = (tt = class {
|
|
|
865
880
|
const i = this.textDimensionCalculator.getMaxDimension(
|
|
866
881
|
[this.chartData.title],
|
|
867
882
|
this.chartConfig.titleFontSize
|
|
868
|
-
),
|
|
869
|
-
return i.width <=
|
|
883
|
+
), e = Math.max(i.width, t.width), s = i.height + 2 * this.chartConfig.titlePadding;
|
|
884
|
+
return i.width <= e && i.height <= s && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = e, this.boundingRect.height = s, this.showChartTitle = !0), {
|
|
870
885
|
width: this.boundingRect.width,
|
|
871
886
|
height: this.boundingRect.height
|
|
872
887
|
};
|
|
@@ -890,25 +905,28 @@ var tt, Pi = (tt = class {
|
|
|
890
905
|
]
|
|
891
906
|
}), t;
|
|
892
907
|
}
|
|
893
|
-
}
|
|
894
|
-
function
|
|
895
|
-
const a = new
|
|
896
|
-
return new
|
|
908
|
+
};
|
|
909
|
+
function Vt(t, i, e, s) {
|
|
910
|
+
const a = new zt(s);
|
|
911
|
+
return new wi(a, t, i, e);
|
|
897
912
|
}
|
|
898
|
-
n(
|
|
899
|
-
var
|
|
900
|
-
constructor(t, i, s, a
|
|
901
|
-
this.plotData = t, this.xAxis = i, this.yAxis =
|
|
913
|
+
n(Vt, "getChartTitleComponent");
|
|
914
|
+
var Ci = class {
|
|
915
|
+
constructor(t, i, e, s, a) {
|
|
916
|
+
this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = a;
|
|
917
|
+
}
|
|
918
|
+
static {
|
|
919
|
+
n(this, "LinePlot");
|
|
902
920
|
}
|
|
903
921
|
getDrawableElement() {
|
|
904
|
-
const t = this.plotData.data.map((
|
|
905
|
-
this.xAxis.getScaleValue(
|
|
906
|
-
this.yAxis.getScaleValue(
|
|
922
|
+
const t = this.plotData.data.map((s) => [
|
|
923
|
+
this.xAxis.getScaleValue(s[0]),
|
|
924
|
+
this.yAxis.getScaleValue(s[1])
|
|
907
925
|
]);
|
|
908
926
|
let i;
|
|
909
|
-
if (this.orientation === "horizontal" ? i =
|
|
927
|
+
if (this.orientation === "horizontal" ? i = Dt().y((s) => s[0]).x((s) => s[1])(t) : i = Dt().x((s) => s[0]).y((s) => s[1])(t), !i)
|
|
910
928
|
return [];
|
|
911
|
-
const
|
|
929
|
+
const e = [
|
|
912
930
|
{
|
|
913
931
|
groupTexts: ["plot", `line-plot-${this.plotIndex}`],
|
|
914
932
|
type: "path",
|
|
@@ -922,22 +940,22 @@ var it, Ei = (it = class {
|
|
|
922
940
|
}
|
|
923
941
|
];
|
|
924
942
|
if (this.plotData.pointLabels && this.plotData.pointLabels.length > 0) {
|
|
925
|
-
const
|
|
926
|
-
for (const [
|
|
927
|
-
const
|
|
928
|
-
|
|
929
|
-
x:
|
|
930
|
-
y:
|
|
931
|
-
text:
|
|
943
|
+
const c = [];
|
|
944
|
+
for (const [l, [f, S]] of t.entries()) {
|
|
945
|
+
const k = this.plotData.pointLabels[l];
|
|
946
|
+
k && (this.orientation === "horizontal" ? c.push({
|
|
947
|
+
x: S + 10,
|
|
948
|
+
y: f,
|
|
949
|
+
text: k,
|
|
932
950
|
fill: this.plotData.strokeFill,
|
|
933
951
|
verticalPos: "middle",
|
|
934
952
|
horizontalPos: "left",
|
|
935
953
|
fontSize: 12,
|
|
936
954
|
rotation: 0
|
|
937
|
-
}) :
|
|
938
|
-
x:
|
|
939
|
-
y:
|
|
940
|
-
text:
|
|
955
|
+
}) : c.push({
|
|
956
|
+
x: f,
|
|
957
|
+
y: S - 10,
|
|
958
|
+
text: k,
|
|
941
959
|
fill: this.plotData.strokeFill,
|
|
942
960
|
verticalPos: "middle",
|
|
943
961
|
horizontalPos: "center",
|
|
@@ -945,32 +963,35 @@ var it, Ei = (it = class {
|
|
|
945
963
|
rotation: 0
|
|
946
964
|
}));
|
|
947
965
|
}
|
|
948
|
-
|
|
966
|
+
c.length > 0 && e.push({
|
|
949
967
|
groupTexts: ["plot", `line-plot-${this.plotIndex}`, "labels"],
|
|
950
968
|
type: "text",
|
|
951
|
-
data:
|
|
969
|
+
data: c
|
|
952
970
|
});
|
|
953
971
|
}
|
|
954
|
-
return
|
|
972
|
+
return e;
|
|
973
|
+
}
|
|
974
|
+
}, Si = class {
|
|
975
|
+
constructor(t, i, e, s, a, c) {
|
|
976
|
+
this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = a, this.plotIndex = c;
|
|
955
977
|
}
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = a, this.orientation = o, this.plotIndex = l;
|
|
978
|
+
static {
|
|
979
|
+
n(this, "BarPlot");
|
|
959
980
|
}
|
|
960
981
|
getDrawableElement() {
|
|
961
|
-
const t = this.barData.data.map((
|
|
962
|
-
this.xAxis.getScaleValue(
|
|
963
|
-
this.yAxis.getScaleValue(
|
|
964
|
-
]),
|
|
982
|
+
const t = this.barData.data.map((a) => [
|
|
983
|
+
this.xAxis.getScaleValue(a[0]),
|
|
984
|
+
this.yAxis.getScaleValue(a[1])
|
|
985
|
+
]), e = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), s = e / 2;
|
|
965
986
|
return this.orientation === "horizontal" ? [
|
|
966
987
|
{
|
|
967
988
|
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
968
989
|
type: "rect",
|
|
969
|
-
data: t.map((
|
|
990
|
+
data: t.map((a) => ({
|
|
970
991
|
x: this.boundingRect.x,
|
|
971
|
-
y:
|
|
972
|
-
height:
|
|
973
|
-
width:
|
|
992
|
+
y: a[0] - s,
|
|
993
|
+
height: e,
|
|
994
|
+
width: a[1] - this.boundingRect.x,
|
|
974
995
|
fill: this.barData.fill,
|
|
975
996
|
strokeWidth: 0,
|
|
976
997
|
strokeFill: this.barData.fill
|
|
@@ -980,11 +1001,11 @@ var it, Ei = (it = class {
|
|
|
980
1001
|
{
|
|
981
1002
|
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
982
1003
|
type: "rect",
|
|
983
|
-
data: t.map((
|
|
984
|
-
x:
|
|
985
|
-
y:
|
|
986
|
-
width:
|
|
987
|
-
height: this.boundingRect.y + this.boundingRect.height -
|
|
1004
|
+
data: t.map((a) => ({
|
|
1005
|
+
x: a[0] - s,
|
|
1006
|
+
y: a[1],
|
|
1007
|
+
width: e,
|
|
1008
|
+
height: this.boundingRect.y + this.boundingRect.height - a[1],
|
|
988
1009
|
fill: this.barData.fill,
|
|
989
1010
|
strokeWidth: 0,
|
|
990
1011
|
strokeFill: this.barData.fill
|
|
@@ -992,15 +1013,18 @@ var it, Ei = (it = class {
|
|
|
992
1013
|
}
|
|
993
1014
|
];
|
|
994
1015
|
}
|
|
995
|
-
},
|
|
996
|
-
constructor(t, i,
|
|
997
|
-
this.chartConfig = t, this.chartData = i, this.chartThemeConfig =
|
|
1016
|
+
}, Ri = class {
|
|
1017
|
+
constructor(t, i, e) {
|
|
1018
|
+
this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
|
|
998
1019
|
x: 0,
|
|
999
1020
|
y: 0,
|
|
1000
1021
|
width: 0,
|
|
1001
1022
|
height: 0
|
|
1002
1023
|
};
|
|
1003
1024
|
}
|
|
1025
|
+
static {
|
|
1026
|
+
n(this, "BasePlot");
|
|
1027
|
+
}
|
|
1004
1028
|
setAxes(t, i) {
|
|
1005
1029
|
this.xAxis = t, this.yAxis = i;
|
|
1006
1030
|
}
|
|
@@ -1017,111 +1041,114 @@ var it, Ei = (it = class {
|
|
|
1017
1041
|
if (!(this.xAxis && this.yAxis))
|
|
1018
1042
|
throw Error("Axes must be passed to render Plots");
|
|
1019
1043
|
const t = [];
|
|
1020
|
-
for (const [i,
|
|
1021
|
-
switch (
|
|
1044
|
+
for (const [i, e] of this.chartData.plots.entries())
|
|
1045
|
+
switch (e.type) {
|
|
1022
1046
|
case "line":
|
|
1023
1047
|
{
|
|
1024
|
-
const
|
|
1025
|
-
|
|
1048
|
+
const s = new Ci(
|
|
1049
|
+
e,
|
|
1026
1050
|
this.xAxis,
|
|
1027
1051
|
this.yAxis,
|
|
1028
1052
|
this.chartConfig.chartOrientation,
|
|
1029
1053
|
i
|
|
1030
1054
|
);
|
|
1031
|
-
t.push(...
|
|
1055
|
+
t.push(...s.getDrawableElement());
|
|
1032
1056
|
}
|
|
1033
1057
|
break;
|
|
1034
1058
|
case "bar":
|
|
1035
1059
|
{
|
|
1036
|
-
const
|
|
1037
|
-
|
|
1060
|
+
const s = new Si(
|
|
1061
|
+
e,
|
|
1038
1062
|
this.boundingRect,
|
|
1039
1063
|
this.xAxis,
|
|
1040
1064
|
this.yAxis,
|
|
1041
1065
|
this.chartConfig.chartOrientation,
|
|
1042
1066
|
i
|
|
1043
1067
|
);
|
|
1044
|
-
t.push(...
|
|
1068
|
+
t.push(...s.getDrawableElement());
|
|
1045
1069
|
}
|
|
1046
1070
|
break;
|
|
1047
1071
|
}
|
|
1048
1072
|
return t;
|
|
1049
1073
|
}
|
|
1050
|
-
}
|
|
1051
|
-
function
|
|
1052
|
-
return new
|
|
1074
|
+
};
|
|
1075
|
+
function Ot(t, i, e) {
|
|
1076
|
+
return new Ri(t, i, e);
|
|
1053
1077
|
}
|
|
1054
|
-
n(
|
|
1055
|
-
var
|
|
1056
|
-
constructor(t, i,
|
|
1078
|
+
n(Ot, "getPlotComponent");
|
|
1079
|
+
var _i = class {
|
|
1080
|
+
constructor(t, i, e, s) {
|
|
1057
1081
|
this.chartConfig = t, this.chartData = i, this.componentStore = {
|
|
1058
|
-
title:
|
|
1059
|
-
plot:
|
|
1060
|
-
xAxis:
|
|
1082
|
+
title: Vt(t, i, e, s),
|
|
1083
|
+
plot: Ot(t, i, e),
|
|
1084
|
+
xAxis: dt(
|
|
1061
1085
|
i.xAxis,
|
|
1062
1086
|
t.xAxis,
|
|
1063
1087
|
{
|
|
1064
|
-
titleColor:
|
|
1065
|
-
labelColor:
|
|
1066
|
-
tickColor:
|
|
1067
|
-
axisLineColor:
|
|
1088
|
+
titleColor: e.xAxisTitleColor,
|
|
1089
|
+
labelColor: e.xAxisLabelColor,
|
|
1090
|
+
tickColor: e.xAxisTickColor,
|
|
1091
|
+
axisLineColor: e.xAxisLineColor
|
|
1068
1092
|
},
|
|
1069
|
-
|
|
1093
|
+
s
|
|
1070
1094
|
),
|
|
1071
|
-
yAxis:
|
|
1095
|
+
yAxis: dt(
|
|
1072
1096
|
i.yAxis,
|
|
1073
1097
|
t.yAxis,
|
|
1074
1098
|
{
|
|
1075
|
-
titleColor:
|
|
1076
|
-
labelColor:
|
|
1077
|
-
tickColor:
|
|
1078
|
-
axisLineColor:
|
|
1099
|
+
titleColor: e.yAxisTitleColor,
|
|
1100
|
+
labelColor: e.yAxisLabelColor,
|
|
1101
|
+
tickColor: e.yAxisTickColor,
|
|
1102
|
+
axisLineColor: e.yAxisLineColor
|
|
1079
1103
|
},
|
|
1080
|
-
|
|
1104
|
+
s
|
|
1081
1105
|
)
|
|
1082
1106
|
};
|
|
1083
1107
|
}
|
|
1108
|
+
static {
|
|
1109
|
+
n(this, "Orchestrator");
|
|
1110
|
+
}
|
|
1084
1111
|
calculateVerticalSpace() {
|
|
1085
|
-
let t = this.chartConfig.width, i = this.chartConfig.height,
|
|
1112
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, a = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), c = Math.floor(
|
|
1086
1113
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1087
|
-
),
|
|
1088
|
-
width:
|
|
1089
|
-
height:
|
|
1114
|
+
), l = this.componentStore.plot.calculateSpace({
|
|
1115
|
+
width: a,
|
|
1116
|
+
height: c
|
|
1090
1117
|
});
|
|
1091
|
-
t -=
|
|
1118
|
+
t -= l.width, i -= l.height, l = this.componentStore.title.calculateSpace({
|
|
1092
1119
|
width: this.chartConfig.width,
|
|
1093
1120
|
height: i
|
|
1094
|
-
}),
|
|
1121
|
+
}), s = l.height, i -= l.height, this.componentStore.xAxis.setAxisPosition("bottom"), l = this.componentStore.xAxis.calculateSpace({
|
|
1095
1122
|
width: t,
|
|
1096
1123
|
height: i
|
|
1097
|
-
}), i -=
|
|
1124
|
+
}), i -= l.height, this.componentStore.yAxis.setAxisPosition("left"), l = this.componentStore.yAxis.calculateSpace({
|
|
1098
1125
|
width: t,
|
|
1099
1126
|
height: i
|
|
1100
|
-
}),
|
|
1101
|
-
width:
|
|
1102
|
-
height:
|
|
1103
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x:
|
|
1127
|
+
}), e = l.width, t -= l.width, t > 0 && (a += t, t = 0), i > 0 && (c += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1128
|
+
width: a,
|
|
1129
|
+
height: c
|
|
1130
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + a]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + c }), this.componentStore.yAxis.setRange([s, s + c]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((f) => xt(f)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1104
1131
|
}
|
|
1105
1132
|
calculateHorizontalSpace() {
|
|
1106
|
-
let t = this.chartConfig.width, i = this.chartConfig.height,
|
|
1133
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, a = 0, c = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), l = Math.floor(
|
|
1107
1134
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1108
|
-
),
|
|
1109
|
-
width:
|
|
1110
|
-
height:
|
|
1135
|
+
), f = this.componentStore.plot.calculateSpace({
|
|
1136
|
+
width: c,
|
|
1137
|
+
height: l
|
|
1111
1138
|
});
|
|
1112
|
-
t -=
|
|
1139
|
+
t -= f.width, i -= f.height, f = this.componentStore.title.calculateSpace({
|
|
1113
1140
|
width: this.chartConfig.width,
|
|
1114
1141
|
height: i
|
|
1115
|
-
}),
|
|
1142
|
+
}), e = f.height, i -= f.height, this.componentStore.xAxis.setAxisPosition("left"), f = this.componentStore.xAxis.calculateSpace({
|
|
1116
1143
|
width: t,
|
|
1117
1144
|
height: i
|
|
1118
|
-
}), t -=
|
|
1145
|
+
}), t -= f.width, s = f.width, this.componentStore.yAxis.setAxisPosition("top"), f = this.componentStore.yAxis.calculateSpace({
|
|
1119
1146
|
width: t,
|
|
1120
1147
|
height: i
|
|
1121
|
-
}), i -=
|
|
1122
|
-
width:
|
|
1123
|
-
height:
|
|
1124
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x:
|
|
1148
|
+
}), i -= f.height, a = e + f.height, t > 0 && (c += t, t = 0), i > 0 && (l += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1149
|
+
width: c,
|
|
1150
|
+
height: l
|
|
1151
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: s, y: a }), this.componentStore.yAxis.setRange([s, s + c]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([a, a + l]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: a }), this.chartData.plots.some((S) => xt(S)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1125
1152
|
}
|
|
1126
1153
|
calculateSpace() {
|
|
1127
1154
|
this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
|
|
@@ -1134,25 +1161,28 @@ var at, zi = (at = class {
|
|
|
1134
1161
|
t.push(...i.getDrawableElements());
|
|
1135
1162
|
return t;
|
|
1136
1163
|
}
|
|
1137
|
-
},
|
|
1138
|
-
static
|
|
1139
|
-
|
|
1164
|
+
}, ki = class {
|
|
1165
|
+
static {
|
|
1166
|
+
n(this, "XYChartBuilder");
|
|
1167
|
+
}
|
|
1168
|
+
static build(t, i, e, s) {
|
|
1169
|
+
return new _i(t, i, e, s).getDrawableElement();
|
|
1140
1170
|
}
|
|
1141
|
-
},
|
|
1142
|
-
function
|
|
1143
|
-
const
|
|
1144
|
-
return
|
|
1171
|
+
}, Z = 0, Wt, J = bt(), tt = yt(), m = At(), ft = tt.plotColorPalette.split(",").map((t) => t.trim()), ot = !1, mt = !1;
|
|
1172
|
+
function yt() {
|
|
1173
|
+
const t = xi(), i = pt();
|
|
1174
|
+
return Mt(t.xyChart, i.themeVariables.xyChart);
|
|
1145
1175
|
}
|
|
1146
|
-
n(
|
|
1147
|
-
function
|
|
1148
|
-
const
|
|
1149
|
-
return
|
|
1150
|
-
|
|
1151
|
-
|
|
1176
|
+
n(yt, "getChartDefaultThemeConfig");
|
|
1177
|
+
function bt() {
|
|
1178
|
+
const t = pt();
|
|
1179
|
+
return Mt(
|
|
1180
|
+
gi.xyChart,
|
|
1181
|
+
t.xyChart
|
|
1152
1182
|
);
|
|
1153
1183
|
}
|
|
1154
|
-
n(
|
|
1155
|
-
function
|
|
1184
|
+
n(bt, "getChartDefaultConfig");
|
|
1185
|
+
function At() {
|
|
1156
1186
|
return {
|
|
1157
1187
|
yAxis: {
|
|
1158
1188
|
type: "linear",
|
|
@@ -1169,217 +1199,217 @@ function Lt() {
|
|
|
1169
1199
|
plots: []
|
|
1170
1200
|
};
|
|
1171
1201
|
}
|
|
1172
|
-
n(
|
|
1173
|
-
function
|
|
1174
|
-
const
|
|
1175
|
-
return
|
|
1202
|
+
n(At, "getChartDefaultData");
|
|
1203
|
+
function it(t) {
|
|
1204
|
+
const i = pt();
|
|
1205
|
+
return ui(t.trim(), i);
|
|
1176
1206
|
}
|
|
1177
|
-
n(
|
|
1178
|
-
function
|
|
1179
|
-
|
|
1207
|
+
n(it, "textSanitizer");
|
|
1208
|
+
function Ft(t) {
|
|
1209
|
+
Wt = t;
|
|
1180
1210
|
}
|
|
1181
|
-
n(
|
|
1182
|
-
function
|
|
1183
|
-
|
|
1211
|
+
n(Ft, "setTmpSVGG");
|
|
1212
|
+
function Xt(t) {
|
|
1213
|
+
t === "horizontal" ? J.chartOrientation = "horizontal" : J.chartOrientation = "vertical";
|
|
1184
1214
|
}
|
|
1185
|
-
n(
|
|
1186
|
-
function
|
|
1187
|
-
|
|
1215
|
+
n(Xt, "setOrientation");
|
|
1216
|
+
function Yt(t) {
|
|
1217
|
+
m.xAxis.title = it(t.text);
|
|
1188
1218
|
}
|
|
1189
|
-
n(
|
|
1190
|
-
function
|
|
1191
|
-
|
|
1219
|
+
n(Yt, "setXAxisTitle");
|
|
1220
|
+
function wt(t, i) {
|
|
1221
|
+
m.xAxis = { type: "linear", title: m.xAxis.title, min: t, max: i }, ot = !0;
|
|
1192
1222
|
}
|
|
1193
|
-
n(
|
|
1194
|
-
function
|
|
1195
|
-
|
|
1223
|
+
n(wt, "setXAxisRangeData");
|
|
1224
|
+
function Nt(t) {
|
|
1225
|
+
m.xAxis = {
|
|
1196
1226
|
type: "band",
|
|
1197
|
-
title:
|
|
1198
|
-
categories:
|
|
1199
|
-
},
|
|
1227
|
+
title: m.xAxis.title,
|
|
1228
|
+
categories: t.map((i) => it(i.text))
|
|
1229
|
+
}, ot = !0;
|
|
1200
1230
|
}
|
|
1201
|
-
n(
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1231
|
+
n(Nt, "setXAxisBand");
|
|
1232
|
+
function Ht(t) {
|
|
1233
|
+
m.yAxis.title = it(t.text);
|
|
1204
1234
|
}
|
|
1205
|
-
n(
|
|
1206
|
-
function
|
|
1207
|
-
|
|
1235
|
+
n(Ht, "setYAxisTitle");
|
|
1236
|
+
function Ut(t, i) {
|
|
1237
|
+
m.yAxis = { type: "linear", title: m.yAxis.title, min: t, max: i }, mt = !0;
|
|
1208
1238
|
}
|
|
1209
|
-
n(
|
|
1210
|
-
function
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1239
|
+
n(Ut, "setYAxisRangeData");
|
|
1240
|
+
function $t(t) {
|
|
1241
|
+
const i = Math.min(...t), e = Math.max(...t), s = j(m.yAxis) ? m.yAxis.min : 1 / 0, a = j(m.yAxis) ? m.yAxis.max : -1 / 0;
|
|
1242
|
+
m.yAxis = {
|
|
1213
1243
|
type: "linear",
|
|
1214
|
-
title:
|
|
1215
|
-
min: Math.min(s,
|
|
1216
|
-
max: Math.max(a,
|
|
1244
|
+
title: m.yAxis.title,
|
|
1245
|
+
min: Math.min(s, i),
|
|
1246
|
+
max: Math.max(a, e)
|
|
1217
1247
|
};
|
|
1218
1248
|
}
|
|
1219
|
-
n(
|
|
1220
|
-
function
|
|
1221
|
-
let
|
|
1222
|
-
if (
|
|
1223
|
-
return
|
|
1224
|
-
if (!
|
|
1225
|
-
const
|
|
1226
|
-
|
|
1249
|
+
n($t, "setYAxisRangeFromPlotData");
|
|
1250
|
+
function Ct(t) {
|
|
1251
|
+
let i = [];
|
|
1252
|
+
if (t.length === 0)
|
|
1253
|
+
return i;
|
|
1254
|
+
if (!ot) {
|
|
1255
|
+
const e = j(m.xAxis) ? m.xAxis.min : 1 / 0, s = j(m.xAxis) ? m.xAxis.max : -1 / 0;
|
|
1256
|
+
wt(Math.min(e, 1), Math.max(s, t.length));
|
|
1227
1257
|
}
|
|
1228
|
-
if (
|
|
1229
|
-
const
|
|
1230
|
-
for (let l =
|
|
1231
|
-
|
|
1232
|
-
|
|
1258
|
+
if (nt(m.xAxis) && t.length > m.xAxis.categories.length && (t = t.slice(0, m.xAxis.categories.length)), mt || $t(t), nt(m.xAxis) && (i = m.xAxis.categories.map((e, s) => [e, t[s]])), j(m.xAxis)) {
|
|
1259
|
+
const e = m.xAxis.min, s = m.xAxis.max, a = (s - e) / (t.length - 1), c = [];
|
|
1260
|
+
for (let l = e; l <= s; l += a)
|
|
1261
|
+
c.push(`${l}`);
|
|
1262
|
+
i = c.map((l, f) => [l, t[f]]);
|
|
1233
1263
|
}
|
|
1234
|
-
return
|
|
1264
|
+
return i;
|
|
1235
1265
|
}
|
|
1236
|
-
n(
|
|
1237
|
-
function
|
|
1238
|
-
return
|
|
1266
|
+
n(Ct, "transformDataWithoutCategory");
|
|
1267
|
+
function St(t) {
|
|
1268
|
+
return ft[t === 0 ? 0 : t % ft.length];
|
|
1239
1269
|
}
|
|
1240
|
-
n(
|
|
1241
|
-
function
|
|
1242
|
-
const
|
|
1243
|
-
|
|
1270
|
+
n(St, "getPlotColorFromPalette");
|
|
1271
|
+
function qt(t, i) {
|
|
1272
|
+
const e = i.map((l) => l.value), s = i.map((l) => l.label ? it(l.label) : ""), a = Ct(e), c = s.some((l) => l !== "");
|
|
1273
|
+
m.plots.push({
|
|
1244
1274
|
type: "line",
|
|
1245
|
-
strokeFill:
|
|
1275
|
+
strokeFill: St(Z),
|
|
1246
1276
|
strokeWidth: 2,
|
|
1247
1277
|
data: a,
|
|
1248
|
-
...
|
|
1249
|
-
}),
|
|
1278
|
+
...c ? { pointLabels: s } : {}
|
|
1279
|
+
}), Z++;
|
|
1250
1280
|
}
|
|
1251
|
-
n(
|
|
1252
|
-
function
|
|
1253
|
-
const
|
|
1254
|
-
|
|
1281
|
+
n(qt, "setLineData");
|
|
1282
|
+
function Gt(t, i) {
|
|
1283
|
+
const e = i.map((a) => a.value), s = Ct(e);
|
|
1284
|
+
m.plots.push({
|
|
1255
1285
|
type: "bar",
|
|
1256
|
-
fill:
|
|
1286
|
+
fill: St(Z),
|
|
1257
1287
|
data: s
|
|
1258
|
-
}),
|
|
1288
|
+
}), Z++;
|
|
1259
1289
|
}
|
|
1260
|
-
n(
|
|
1261
|
-
function
|
|
1262
|
-
if (
|
|
1290
|
+
n(Gt, "setBarData");
|
|
1291
|
+
function jt() {
|
|
1292
|
+
if (m.plots.length === 0)
|
|
1263
1293
|
throw Error("No Plot to render, please provide a plot with some data");
|
|
1264
|
-
return
|
|
1294
|
+
return m.title = Et(), ki.build(J, m, tt, Wt);
|
|
1265
1295
|
}
|
|
1266
|
-
n(
|
|
1267
|
-
function
|
|
1268
|
-
return
|
|
1296
|
+
n(jt, "getDrawableElem");
|
|
1297
|
+
function Qt() {
|
|
1298
|
+
return tt;
|
|
1269
1299
|
}
|
|
1270
|
-
n(
|
|
1271
|
-
function
|
|
1272
|
-
return
|
|
1300
|
+
n(Qt, "getChartThemeConfig");
|
|
1301
|
+
function Kt() {
|
|
1302
|
+
return J;
|
|
1273
1303
|
}
|
|
1274
|
-
n(
|
|
1275
|
-
function
|
|
1276
|
-
return
|
|
1304
|
+
n(Kt, "getChartConfig");
|
|
1305
|
+
function Zt() {
|
|
1306
|
+
return m;
|
|
1277
1307
|
}
|
|
1278
|
-
n(
|
|
1279
|
-
var
|
|
1280
|
-
|
|
1281
|
-
}, "clear"),
|
|
1282
|
-
getDrawableElem:
|
|
1283
|
-
clear:
|
|
1284
|
-
setAccTitle:
|
|
1285
|
-
getAccTitle:
|
|
1286
|
-
setDiagramTitle:
|
|
1287
|
-
getDiagramTitle:
|
|
1288
|
-
getAccDescription:
|
|
1289
|
-
setAccDescription:
|
|
1290
|
-
setOrientation:
|
|
1291
|
-
setXAxisTitle:
|
|
1292
|
-
setXAxisRangeData:
|
|
1293
|
-
setXAxisBand:
|
|
1294
|
-
setYAxisTitle:
|
|
1295
|
-
setYAxisRangeData:
|
|
1296
|
-
setLineData:
|
|
1297
|
-
setBarData:
|
|
1298
|
-
setTmpSVGG:
|
|
1299
|
-
getChartThemeConfig:
|
|
1300
|
-
getChartConfig:
|
|
1301
|
-
getXYChartData:
|
|
1302
|
-
},
|
|
1303
|
-
const a = s.db,
|
|
1304
|
-
function
|
|
1305
|
-
return
|
|
1306
|
-
}
|
|
1307
|
-
n(
|
|
1308
|
-
function k(
|
|
1309
|
-
return
|
|
1308
|
+
n(Zt, "getXYChartData");
|
|
1309
|
+
var Ti = /* @__PURE__ */ n(function() {
|
|
1310
|
+
ci(), Z = 0, J = bt(), m = At(), tt = yt(), ft = tt.plotColorPalette.split(",").map((t) => t.trim()), ot = !1, mt = !1;
|
|
1311
|
+
}, "clear"), Di = {
|
|
1312
|
+
getDrawableElem: jt,
|
|
1313
|
+
clear: Ti,
|
|
1314
|
+
setAccTitle: ri,
|
|
1315
|
+
getAccTitle: oi,
|
|
1316
|
+
setDiagramTitle: ni,
|
|
1317
|
+
getDiagramTitle: Et,
|
|
1318
|
+
getAccDescription: ai,
|
|
1319
|
+
setAccDescription: si,
|
|
1320
|
+
setOrientation: Xt,
|
|
1321
|
+
setXAxisTitle: Yt,
|
|
1322
|
+
setXAxisRangeData: wt,
|
|
1323
|
+
setXAxisBand: Nt,
|
|
1324
|
+
setYAxisTitle: Ht,
|
|
1325
|
+
setYAxisRangeData: Ut,
|
|
1326
|
+
setLineData: qt,
|
|
1327
|
+
setBarData: Gt,
|
|
1328
|
+
setTmpSVGG: Ft,
|
|
1329
|
+
getChartThemeConfig: Qt,
|
|
1330
|
+
getChartConfig: Kt,
|
|
1331
|
+
getXYChartData: Zt
|
|
1332
|
+
}, vi = /* @__PURE__ */ n((t, i, e, s) => {
|
|
1333
|
+
const a = s.db, c = a.getChartThemeConfig(), l = a.getChartConfig(), f = a.getXYChartData().plots[0].data.map((p) => p[1]);
|
|
1334
|
+
function S(p) {
|
|
1335
|
+
return p === "top" ? "text-before-edge" : "middle";
|
|
1336
|
+
}
|
|
1337
|
+
n(S, "getDominantBaseLine");
|
|
1338
|
+
function k(p) {
|
|
1339
|
+
return p === "left" ? "start" : p === "right" ? "end" : "middle";
|
|
1310
1340
|
}
|
|
1311
1341
|
n(k, "getTextAnchor");
|
|
1312
|
-
function
|
|
1313
|
-
return `translate(${
|
|
1314
|
-
}
|
|
1315
|
-
n(
|
|
1316
|
-
` +
|
|
1317
|
-
const _ =
|
|
1318
|
-
|
|
1319
|
-
const
|
|
1320
|
-
function I(
|
|
1321
|
-
let
|
|
1322
|
-
for (const [B] of
|
|
1323
|
-
let W =
|
|
1324
|
-
B > 0 && P[
|
|
1342
|
+
function L(p) {
|
|
1343
|
+
return `translate(${p.x}, ${p.y}) rotate(${p.rotation || 0})`;
|
|
1344
|
+
}
|
|
1345
|
+
n(L, "getTextTransformation"), It.debug(`Rendering xychart chart
|
|
1346
|
+
` + t);
|
|
1347
|
+
const _ = hi(i), y = _.append("g").attr("class", "main"), E = y.append("rect").attr("width", l.width).attr("height", l.height).attr("class", "background");
|
|
1348
|
+
li(_, l.height, l.width, !0), _.attr("viewBox", `0 0 ${l.width} ${l.height}`), E.attr("fill", c.backgroundColor), a.setTmpSVGG(_.append("g").attr("class", "mermaid-tmp-group"));
|
|
1349
|
+
const v = a.getDrawableElem(), P = {};
|
|
1350
|
+
function I(p) {
|
|
1351
|
+
let T = y, h = "";
|
|
1352
|
+
for (const [B] of p.entries()) {
|
|
1353
|
+
let W = y;
|
|
1354
|
+
B > 0 && P[h] && (W = P[h]), h += p[B], T = P[h], T || (T = P[h] = W.append("g").attr("class", p[B]));
|
|
1325
1355
|
}
|
|
1326
|
-
return
|
|
1356
|
+
return T;
|
|
1327
1357
|
}
|
|
1328
1358
|
n(I, "getGroup");
|
|
1329
|
-
for (const
|
|
1330
|
-
if (
|
|
1359
|
+
for (const p of v) {
|
|
1360
|
+
if (p.data.length === 0)
|
|
1331
1361
|
continue;
|
|
1332
|
-
const
|
|
1333
|
-
switch (
|
|
1362
|
+
const T = I(p.groupTexts);
|
|
1363
|
+
switch (p.type) {
|
|
1334
1364
|
case "rect":
|
|
1335
|
-
if (
|
|
1336
|
-
const
|
|
1365
|
+
if (T.selectAll("rect").data(p.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), l.showDataLabel) {
|
|
1366
|
+
const h = l.showDataLabelOutsideBar;
|
|
1337
1367
|
if (l.chartOrientation === "horizontal") {
|
|
1338
|
-
let B = function(
|
|
1339
|
-
const { data: R, label:
|
|
1340
|
-
return V *
|
|
1368
|
+
let B = function(A, V) {
|
|
1369
|
+
const { data: R, label: Q } = A;
|
|
1370
|
+
return V * Q.length * W <= R.width - X;
|
|
1341
1371
|
};
|
|
1342
1372
|
n(B, "fitsHorizontally");
|
|
1343
|
-
const W = 0.7, X = 10, Y =
|
|
1344
|
-
const { data: V } =
|
|
1373
|
+
const W = 0.7, X = 10, Y = p.data.map((A, V) => ({ data: A, label: f[V].toString() })).filter((A) => A.data.width > 0 && A.data.height > 0), C = Y.map((A) => {
|
|
1374
|
+
const { data: V } = A;
|
|
1345
1375
|
let R = V.height * 0.7;
|
|
1346
|
-
for (; !B(
|
|
1376
|
+
for (; !B(A, R) && R > 0; )
|
|
1347
1377
|
R -= 1;
|
|
1348
1378
|
return R;
|
|
1349
|
-
}), H = Math.floor(Math.min(...
|
|
1350
|
-
|
|
1379
|
+
}), H = Math.floor(Math.min(...C)), b = /* @__PURE__ */ n((A) => h ? A.data.x + A.data.width + X : A.data.x + A.data.width - X, "determineLabelXPosition");
|
|
1380
|
+
T.selectAll("text").data(Y).enter().append("text").attr("x", b).attr("y", (A) => A.data.y + A.data.height / 2).attr("text-anchor", h ? "start" : "end").attr("dominant-baseline", "middle").attr("fill", c.dataLabelColor).attr("font-size", `${H}px`).text((A) => A.label);
|
|
1351
1381
|
} else {
|
|
1352
|
-
let B = function(
|
|
1353
|
-
const { data: R, label:
|
|
1354
|
-
return x &&
|
|
1382
|
+
let B = function(b, A, V) {
|
|
1383
|
+
const { data: R, label: Q } = b, F = A * Q.length * 0.7, r = R.x + R.width / 2, u = r - F / 2, g = r + F / 2, x = u >= R.x && g <= R.x + R.width, w = R.y + V + A <= R.y + R.height;
|
|
1384
|
+
return x && w;
|
|
1355
1385
|
};
|
|
1356
1386
|
n(B, "fitsInBar");
|
|
1357
|
-
const W = 10, X =
|
|
1358
|
-
const { data:
|
|
1359
|
-
let R =
|
|
1360
|
-
for (; !B(
|
|
1387
|
+
const W = 10, X = p.data.map((b, A) => ({ data: b, label: f[A].toString() })).filter((b) => b.data.width > 0 && b.data.height > 0), Y = X.map((b) => {
|
|
1388
|
+
const { data: A, label: V } = b;
|
|
1389
|
+
let R = A.width / (V.length * 0.7);
|
|
1390
|
+
for (; !B(b, R, W) && R > 0; )
|
|
1361
1391
|
R -= 1;
|
|
1362
1392
|
return R;
|
|
1363
|
-
}),
|
|
1364
|
-
|
|
1393
|
+
}), C = Math.floor(Math.min(...Y)), H = /* @__PURE__ */ n((b) => h ? b.data.y - W : b.data.y + W, "determineLabelYPosition");
|
|
1394
|
+
T.selectAll("text").data(X).enter().append("text").attr("x", (b) => b.data.x + b.data.width / 2).attr("y", H).attr("text-anchor", "middle").attr("dominant-baseline", h ? "auto" : "hanging").attr("fill", c.dataLabelColor).attr("font-size", `${C}px`).text((b) => b.label);
|
|
1365
1395
|
}
|
|
1366
1396
|
}
|
|
1367
1397
|
break;
|
|
1368
1398
|
case "text":
|
|
1369
|
-
|
|
1399
|
+
T.selectAll("text").data(p.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) => S(h.verticalPos)).attr("text-anchor", (h) => k(h.horizontalPos)).attr("transform", (h) => L(h)).text((h) => h.text);
|
|
1370
1400
|
break;
|
|
1371
1401
|
case "path":
|
|
1372
|
-
|
|
1402
|
+
T.selectAll("path").data(p.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);
|
|
1373
1403
|
break;
|
|
1374
1404
|
}
|
|
1375
1405
|
}
|
|
1376
|
-
}, "draw"),
|
|
1377
|
-
draw:
|
|
1378
|
-
},
|
|
1379
|
-
parser:
|
|
1380
|
-
db:
|
|
1381
|
-
renderer:
|
|
1406
|
+
}, "draw"), Li = {
|
|
1407
|
+
draw: vi
|
|
1408
|
+
}, zi = {
|
|
1409
|
+
parser: yi,
|
|
1410
|
+
db: Di,
|
|
1411
|
+
renderer: Li
|
|
1382
1412
|
};
|
|
1383
1413
|
export {
|
|
1384
|
-
|
|
1414
|
+
zi as diagram
|
|
1385
1415
|
};
|