@layers-app/editor 0.5.0 → 0.5.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/package.json +5 -4
- package/dist/index.cjs +0 -2
- package/dist/index.d.ts +0 -315
- package/dist/index.js +0 -13
- package/dist/layers.0GV8bqI4.js +0 -186
- package/dist/layers.2-v72gXD.js +0 -1
- package/dist/layers.271NUg7u.js +0 -39
- package/dist/layers.2YgiancJ.js +0 -116
- package/dist/layers.3DEO2eFX.js +0 -38
- package/dist/layers.3PKeLS62.js +0 -48146
- package/dist/layers.52famHy6.js +0 -1
- package/dist/layers.6M02Y2O6.js +0 -6
- package/dist/layers.7DTJccah.js +0 -10
- package/dist/layers.7JqFgE4-.js +0 -15
- package/dist/layers.7geZ_Z3x.js +0 -36
- package/dist/layers.88aO_Zsd.js +0 -14
- package/dist/layers.8hFVbiPY.js +0 -59
- package/dist/layers.9KaBpXFA.js +0 -1283
- package/dist/layers.9pNaFvaX.js +0 -1
- package/dist/layers.AIKsYMqL.js +0 -8
- package/dist/layers.B-0J3b5U.js +0 -40
- package/dist/layers.B19hGmey.js +0 -1
- package/dist/layers.B3D4g2HH.js +0 -1
- package/dist/layers.B4yEsxVs.js +0 -10
- package/dist/layers.B5Xhxhbr.js +0 -39
- package/dist/layers.B6jgTP72.js +0 -1
- package/dist/layers.B8a2ydDI.js +0 -1265
- package/dist/layers.B9EoV4pJ.js +0 -1
- package/dist/layers.BAI7Z-Wd.js +0 -40
- package/dist/layers.BAtv1CM7.js +0 -1
- package/dist/layers.BB24KMYM.js +0 -19
- package/dist/layers.BBWAKePM.js +0 -7
- package/dist/layers.BBWcXYuR.js +0 -5
- package/dist/layers.BC3JkNtz.js +0 -21938
- package/dist/layers.BFKY-mk1.js +0 -8
- package/dist/layers.BGnHNrIw.js +0 -38
- package/dist/layers.BIF7gnlw.js +0 -6
- package/dist/layers.BIeVwYKL.js +0 -1
- package/dist/layers.BJDrjORS.js +0 -244
- package/dist/layers.BJtqK_fc.js +0 -40
- package/dist/layers.BLMsv5-v.js +0 -295
- package/dist/layers.BLd2spTm.js +0 -1
- package/dist/layers.BLj5XN2k.js +0 -802
- package/dist/layers.BMzZVoyQ.js +0 -5
- package/dist/layers.BN0X-mKK.js +0 -41
- package/dist/layers.BNP0J0MG.js +0 -4
- package/dist/layers.BQgrfzZU.js +0 -7
- package/dist/layers.BRFujA4d.js +0 -8
- package/dist/layers.BSTBZrFn.js +0 -1
- package/dist/layers.BSXvhEG5.js +0 -5
- package/dist/layers.BSzdascH.js +0 -42
- package/dist/layers.BTsJAbTY.js +0 -37
- package/dist/layers.BUpmCmqT.js +0 -36
- package/dist/layers.BVAnEpZl.js +0 -10
- package/dist/layers.BW84v3Ox.js +0 -2
- package/dist/layers.B_Lan92M.js +0 -1
- package/dist/layers.BaW-t_Zc.js +0 -8
- package/dist/layers.BapT0txt.js +0 -425
- package/dist/layers.BbCfEXyj.js +0 -55
- package/dist/layers.BdqQLuaK.js +0 -40
- package/dist/layers.Bdwk_Ggl.js +0 -33
- package/dist/layers.Bg7-KHZC.js +0 -2235
- package/dist/layers.BgOa2ZQq.js +0 -7
- package/dist/layers.BiJ8hfRt.js +0 -1510
- package/dist/layers.BkFD_pHb.js +0 -40
- package/dist/layers.BlN6GnRT.js +0 -7
- package/dist/layers.Bm84E1I5.js +0 -39
- package/dist/layers.Bo3tMbEB.js +0 -42
- package/dist/layers.BoOcWXFs.js +0 -10
- package/dist/layers.BpilXLfW.js +0 -6
- package/dist/layers.BrHN_kMd.js +0 -41
- package/dist/layers.BruMG2wy.js +0 -160
- package/dist/layers.BsWPnWD1.js +0 -40
- package/dist/layers.Bu9ZoRYM.js +0 -40
- package/dist/layers.BvjpCDHj.js +0 -9
- package/dist/layers.Bwb7QBBL.js +0 -10
- package/dist/layers.Bx0DgrIz.js +0 -84
- package/dist/layers.By8wynAO.js +0 -40
- package/dist/layers.C0Lgw_Sx.js +0 -11688
- package/dist/layers.C3me1AOA.js +0 -904
- package/dist/layers.C5XL_KJW.js +0 -44
- package/dist/layers.C65tYhLf.js +0 -5
- package/dist/layers.C67fBVg3.js +0 -3
- package/dist/layers.C6HmVi2T.js +0 -39
- package/dist/layers.C8_lu5UH.js +0 -23
- package/dist/layers.C8oO_BiQ.js +0 -40
- package/dist/layers.C9AvvTRV.js +0 -32
- package/dist/layers.CA3DQGmO.js +0 -11
- package/dist/layers.CCoWlQxf.js +0 -70
- package/dist/layers.CCy49ah1.js +0 -37
- package/dist/layers.CDftR5Kg.js +0 -320
- package/dist/layers.CDw-iNbj.js +0 -9
- package/dist/layers.CEDfv2oj.js +0 -423
- package/dist/layers.CGeTu6ph.js +0 -1
- package/dist/layers.CHZsXQcr.js +0 -1
- package/dist/layers.CJlWYRtk.js +0 -41
- package/dist/layers.CKy_DRKv.js +0 -42
- package/dist/layers.COEorZbZ.js +0 -257
- package/dist/layers.CP2_7vUR.js +0 -32
- package/dist/layers.CPEzOey-.js +0 -84
- package/dist/layers.CSY_lOK0.js +0 -268
- package/dist/layers.CT_bvOgC.js +0 -1
- package/dist/layers.CUWVPrVU.js +0 -40
- package/dist/layers.CVCC2rNb.js +0 -139
- package/dist/layers.CXbK6Z0C.js +0 -8
- package/dist/layers.CXzpm8-U.js +0 -41
- package/dist/layers.CYwLZCUi.js +0 -1088
- package/dist/layers.CZ6FLSh1.js +0 -1
- package/dist/layers.CZzvHupu.js +0 -36
- package/dist/layers.CaZJgSbm.js +0 -4
- package/dist/layers.CcX1e4Cb.js +0 -6
- package/dist/layers.CgHCxAKJ.js +0 -35
- package/dist/layers.CgyRf-4B.js +0 -41
- package/dist/layers.ChtNiFGR.js +0 -11
- package/dist/layers.CiYt11kd.js +0 -7
- package/dist/layers.Cik9ty7R.js +0 -34
- package/dist/layers.Cizp88rb.js +0 -32
- package/dist/layers.Cjxg13wd.js +0 -47029
- package/dist/layers.Cl6-9OBf.js +0 -39
- package/dist/layers.ClExSsZJ.js +0 -36
- package/dist/layers.CqE1nYk3.js +0 -8
- package/dist/layers.CqVTtuYm.js +0 -6
- package/dist/layers.CsNI3f74.js +0 -7
- package/dist/layers.CuAECIsO.js +0 -39
- package/dist/layers.CuVNrIcW.js +0 -52
- package/dist/layers.Cv-z4RwC.js +0 -1089
- package/dist/layers.CvPdAUZN.js +0 -37
- package/dist/layers.CvQiknH6.js +0 -1
- package/dist/layers.Cwn1D7F6.js +0 -1619
- package/dist/layers.CyOP0v_-.js +0 -8
- package/dist/layers.CyvQNQUj.js +0 -139
- package/dist/layers.Cyzu9PKQ.js +0 -1
- package/dist/layers.Cz4E3Gls.js +0 -21763
- package/dist/layers.D-rCo5dz.js +0 -207
- package/dist/layers.D0zn4_Mx.js +0 -1
- package/dist/layers.D11yimAp.js +0 -230
- package/dist/layers.D1sBwAcX.js +0 -1
- package/dist/layers.D22AIgry.js +0 -1
- package/dist/layers.D2Y56Lcj.js +0 -1
- package/dist/layers.D2sjiqI3.js +0 -41
- package/dist/layers.D3OtVkCp.js +0 -38
- package/dist/layers.D3pymTps.js +0 -6
- package/dist/layers.D44d_6CD.js +0 -437
- package/dist/layers.D4T8fTcj.js +0 -1223
- package/dist/layers.D7jGxypv.js +0 -8
- package/dist/layers.D9umovmT.js +0 -10
- package/dist/layers.DE-6jvOp.js +0 -10
- package/dist/layers.DFWypiYS.js +0 -4
- package/dist/layers.DFZcoBfL.js +0 -42
- package/dist/layers.DGHPyPPP.js +0 -37
- package/dist/layers.DL_hhIIR.js +0 -793
- package/dist/layers.DLwuMfdd.js +0 -84
- package/dist/layers.DMkBISW1.js +0 -1
- package/dist/layers.DMkqdBNu.js +0 -1
- package/dist/layers.DN9HoVxI.js +0 -18
- package/dist/layers.DNpGJLyQ.js +0 -65
- package/dist/layers.DOrgOHBr.js +0 -1
- package/dist/layers.DPumOFMF.js +0 -51
- package/dist/layers.DQ9duwtV.js +0 -1359
- package/dist/layers.DQSx2qqb.js +0 -11
- package/dist/layers.DRj2t11p.js +0 -9
- package/dist/layers.DWvD3vql.js +0 -220
- package/dist/layers.DXVNKM5t.js +0 -33
- package/dist/layers.DXg_yjAg.js +0 -10
- package/dist/layers.DYXNu8ur.js +0 -6
- package/dist/layers.Da3-MQaS.js +0 -315
- package/dist/layers.DbEYtfVc.js +0 -9166
- package/dist/layers.DbaKVP5e.js +0 -1
- package/dist/layers.Dc79Ci3K.js +0 -501
- package/dist/layers.DdaAmsdK.js +0 -1
- package/dist/layers.DeGb7buU.js +0 -9
- package/dist/layers.DeUrAJLR.js +0 -2479
- package/dist/layers.DfLG2r9J.js +0 -1
- package/dist/layers.DfVTedYs.js +0 -1
- package/dist/layers.DgM9vwax.js +0 -1
- package/dist/layers.Dhzc98B1.js +0 -1
- package/dist/layers.Dit1Y-a1.js +0 -9
- package/dist/layers.Dj4g5Vb5.js +0 -10
- package/dist/layers.DjUOC4st.js +0 -16
- package/dist/layers.DkOYepgq.js +0 -10
- package/dist/layers.Dld8CjhI.js +0 -8
- package/dist/layers.Dlp-dPD8.js +0 -96
- package/dist/layers.DlrAk6DA.js +0 -9
- package/dist/layers.Dm5fcqXE.js +0 -5
- package/dist/layers.DpuQVg48.js +0 -2966
- package/dist/layers.DqT5Jouj.js +0 -11
- package/dist/layers.DrlOZ3DT.js +0 -9
- package/dist/layers.DsSMSFyE.js +0 -9
- package/dist/layers.DtcuZ6vs.js +0 -187
- package/dist/layers.DuGoIpLS.js +0 -769
- package/dist/layers.DxA6ocdw.js +0 -70
- package/dist/layers.DxS_nrN5.js +0 -32
- package/dist/layers.DxhSwb8B.js +0 -791
- package/dist/layers.DxwOJMY_.js +0 -2
- package/dist/layers.Dy1naDTQ.js +0 -14
- package/dist/layers.DyPFKCS6.js +0 -1580
- package/dist/layers.DyydDZDU.js +0 -41
- package/dist/layers.GaSOetZx.js +0 -7
- package/dist/layers.IAZiYFRK.js +0 -35
- package/dist/layers.JWCLFILJ.js +0 -1
- package/dist/layers.JgqeK3h7.js +0 -1
- package/dist/layers.K2rcpzhY.js +0 -4
- package/dist/layers.KIWs25tZ.js +0 -1
- package/dist/layers.LLke4z7b.js +0 -13
- package/dist/layers.Marfmnqs.js +0 -61
- package/dist/layers.OFho5MbN.js +0 -118
- package/dist/layers.R8QN7W65.js +0 -1
- package/dist/layers.RT_eBoD-.js +0 -35
- package/dist/layers.SbloXQp4.js +0 -9
- package/dist/layers.SvUN62A9.js +0 -11
- package/dist/layers.TGEy1wS6.js +0 -32
- package/dist/layers.TdE-jeZL.js +0 -7
- package/dist/layers.UWRNxgT8.js +0 -8
- package/dist/layers.VA5efHzM.js +0 -39
- package/dist/layers._2_sfSMa.js +0 -1
- package/dist/layers.ajIRcGd4.js +0 -1126
- package/dist/layers.b0h5ZBmD.js +0 -61
- package/dist/layers.cjE12qw2.js +0 -9
- package/dist/layers.dJvyCZ1b.js +0 -2
- package/dist/layers.da887to_.js +0 -8
- package/dist/layers.dhxVHEDE.js +0 -1
- package/dist/layers.ejvu1U9t.js +0 -122
- package/dist/layers.epvyXTdV.js +0 -373
- package/dist/layers.fm_nJlxH.js +0 -6
- package/dist/layers.guGfRsPS.js +0 -39
- package/dist/layers.hweLqW3I.js +0 -261
- package/dist/layers.j04tfCKj.js +0 -39
- package/dist/layers.kzDq9Q-l.js +0 -1
- package/dist/layers.lCpg7dOn.js +0 -21
- package/dist/layers.ldz4asX5.js +0 -202
- package/dist/layers.ov1rbOW3.js +0 -1
- package/dist/layers.pHVqEwm3.js +0 -32
- package/dist/layers.rgYI6gus.js +0 -803
- package/dist/layers.sTUiyAuM.js +0 -41
- package/dist/layers.uMaAjCOP.js +0 -931
- package/dist/layers.vJ0fdhPp.js +0 -282
- package/dist/layers.vqKLXMfn.js +0 -1034
- package/dist/layers.wSBHMHgW.js +0 -42
- package/dist/layers.yquOOwF7.js +0 -7
- package/dist/layers.zJTwyIu5.js +0 -960
package/dist/layers.C3me1AOA.js
DELETED
|
@@ -1,904 +0,0 @@
|
|
|
1
|
-
import { s as vt, a as Lt, n as bt, o as Ct, b as zt, c as Et, g as yt, l as ot, d as gt, e as Dt, q as It, P as D, Q as Bt, i as wt } from "./layers.DbEYtfVc.js";
|
|
2
|
-
import "./layers.Cz4E3Gls.js";
|
|
3
|
-
import { l as mt } from "./layers.CEDfv2oj.js";
|
|
4
|
-
var pt = (function() {
|
|
5
|
-
var e = function(K, n, r, l) {
|
|
6
|
-
for (r = r || {}, l = K.length; l--; r[K[l]] = n)
|
|
7
|
-
;
|
|
8
|
-
return r;
|
|
9
|
-
}, s = [1, 3], h = [1, 4], x = [1, 5], f = [1, 6], d = [1, 7], c = [1, 5, 13, 15, 17, 19, 20, 25, 27, 28, 29, 30, 31, 32, 33, 34, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], g = [1, 5, 6, 13, 15, 17, 19, 20, 25, 27, 28, 29, 30, 31, 32, 33, 34, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], i = [32, 33, 34], y = [2, 7], p = [1, 13], B = [1, 17], N = [1, 18], V = [1, 19], I = [1, 20], b = [1, 21], M = [1, 22], X = [1, 23], C = [1, 24], it = [1, 25], at = [1, 26], nt = [1, 27], Q = [1, 30], U = [1, 31], T = [1, 32], m = [1, 33], _ = [1, 34], t = [1, 35], A = [1, 36], S = [1, 37], k = [1, 38], F = [1, 39], P = [1, 40], v = [1, 41], L = [1, 42], O = [1, 57], Y = [1, 58], z = [5, 22, 26, 32, 33, 34, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], ht = {
|
|
10
|
-
trace: function() {
|
|
11
|
-
},
|
|
12
|
-
yy: {},
|
|
13
|
-
symbols_: { error: 2, start: 3, eol: 4, SPACE: 5, QUADRANT: 6, document: 7, line: 8, statement: 9, axisDetails: 10, quadrantDetails: 11, points: 12, title: 13, title_value: 14, acc_title: 15, acc_title_value: 16, acc_descr: 17, acc_descr_value: 18, acc_descr_multiline_value: 19, section: 20, text: 21, point_start: 22, point_x: 23, point_y: 24, "X-AXIS": 25, "AXIS-TEXT-DELIMITER": 26, "Y-AXIS": 27, QUADRANT_1: 28, QUADRANT_2: 29, QUADRANT_3: 30, QUADRANT_4: 31, NEWLINE: 32, SEMI: 33, EOF: 34, alphaNumToken: 35, textNoTagsToken: 36, STR: 37, MD_STR: 38, alphaNum: 39, PUNCTUATION: 40, AMP: 41, NUM: 42, ALPHA: 43, COMMA: 44, PLUS: 45, EQUALS: 46, MULT: 47, DOT: 48, BRKT: 49, UNDERSCORE: 50, MINUS: 51, $accept: 0, $end: 1 },
|
|
14
|
-
terminals_: { 2: "error", 5: "SPACE", 6: "QUADRANT", 13: "title", 14: "title_value", 15: "acc_title", 16: "acc_title_value", 17: "acc_descr", 18: "acc_descr_value", 19: "acc_descr_multiline_value", 20: "section", 22: "point_start", 23: "point_x", 24: "point_y", 25: "X-AXIS", 26: "AXIS-TEXT-DELIMITER", 27: "Y-AXIS", 28: "QUADRANT_1", 29: "QUADRANT_2", 30: "QUADRANT_3", 31: "QUADRANT_4", 32: "NEWLINE", 33: "SEMI", 34: "EOF", 37: "STR", 38: "MD_STR", 40: "PUNCTUATION", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "COMMA", 45: "PLUS", 46: "EQUALS", 47: "MULT", 48: "DOT", 49: "BRKT", 50: "UNDERSCORE", 51: "MINUS" },
|
|
15
|
-
productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [9, 0], [9, 2], [9, 1], [9, 1], [9, 1], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [12, 4], [10, 4], [10, 3], [10, 2], [10, 4], [10, 3], [10, 2], [11, 2], [11, 2], [11, 2], [11, 2], [4, 1], [4, 1], [4, 1], [21, 1], [21, 2], [21, 1], [21, 1], [39, 1], [39, 2], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [36, 1], [36, 1], [36, 1]],
|
|
16
|
-
performAction: function(n, r, l, o, q, a, et) {
|
|
17
|
-
var u = a.length - 1;
|
|
18
|
-
switch (q) {
|
|
19
|
-
case 12:
|
|
20
|
-
this.$ = a[u].trim(), o.setDiagramTitle(this.$);
|
|
21
|
-
break;
|
|
22
|
-
case 13:
|
|
23
|
-
this.$ = a[u].trim(), o.setAccTitle(this.$);
|
|
24
|
-
break;
|
|
25
|
-
case 14:
|
|
26
|
-
case 15:
|
|
27
|
-
this.$ = a[u].trim(), o.setAccDescription(this.$);
|
|
28
|
-
break;
|
|
29
|
-
case 16:
|
|
30
|
-
o.addSection(a[u].substr(8)), this.$ = a[u].substr(8);
|
|
31
|
-
break;
|
|
32
|
-
case 17:
|
|
33
|
-
o.addPoint(a[u - 3], a[u - 1], a[u]);
|
|
34
|
-
break;
|
|
35
|
-
case 18:
|
|
36
|
-
o.setXAxisLeftText(a[u - 2]), o.setXAxisRightText(a[u]);
|
|
37
|
-
break;
|
|
38
|
-
case 19:
|
|
39
|
-
a[u - 1].text += " ⟶ ", o.setXAxisLeftText(a[u - 1]);
|
|
40
|
-
break;
|
|
41
|
-
case 20:
|
|
42
|
-
o.setXAxisLeftText(a[u]);
|
|
43
|
-
break;
|
|
44
|
-
case 21:
|
|
45
|
-
o.setYAxisBottomText(a[u - 2]), o.setYAxisTopText(a[u]);
|
|
46
|
-
break;
|
|
47
|
-
case 22:
|
|
48
|
-
a[u - 1].text += " ⟶ ", o.setYAxisBottomText(a[u - 1]);
|
|
49
|
-
break;
|
|
50
|
-
case 23:
|
|
51
|
-
o.setYAxisBottomText(a[u]);
|
|
52
|
-
break;
|
|
53
|
-
case 24:
|
|
54
|
-
o.setQuadrant1Text(a[u]);
|
|
55
|
-
break;
|
|
56
|
-
case 25:
|
|
57
|
-
o.setQuadrant2Text(a[u]);
|
|
58
|
-
break;
|
|
59
|
-
case 26:
|
|
60
|
-
o.setQuadrant3Text(a[u]);
|
|
61
|
-
break;
|
|
62
|
-
case 27:
|
|
63
|
-
o.setQuadrant4Text(a[u]);
|
|
64
|
-
break;
|
|
65
|
-
case 31:
|
|
66
|
-
this.$ = { text: a[u], type: "text" };
|
|
67
|
-
break;
|
|
68
|
-
case 32:
|
|
69
|
-
this.$ = { text: a[u - 1].text + "" + a[u], type: a[u - 1].type };
|
|
70
|
-
break;
|
|
71
|
-
case 33:
|
|
72
|
-
this.$ = { text: a[u], type: "text" };
|
|
73
|
-
break;
|
|
74
|
-
case 34:
|
|
75
|
-
this.$ = { text: a[u], type: "markdown" };
|
|
76
|
-
break;
|
|
77
|
-
case 35:
|
|
78
|
-
this.$ = a[u];
|
|
79
|
-
break;
|
|
80
|
-
case 36:
|
|
81
|
-
this.$ = a[u - 1] + "" + a[u];
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
table: [{ 3: 1, 4: 2, 5: s, 6: h, 32: x, 33: f, 34: d }, { 1: [3] }, { 3: 8, 4: 2, 5: s, 6: h, 32: x, 33: f, 34: d }, { 3: 9, 4: 2, 5: s, 6: h, 32: x, 33: f, 34: d }, e(c, [2, 4], { 7: 10 }), e(g, [2, 28]), e(g, [2, 29]), e(g, [2, 30]), { 1: [2, 1] }, { 1: [2, 2] }, e(i, y, { 8: 11, 9: 12, 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 1: [2, 3], 5: p, 13: B, 15: N, 17: V, 19: I, 20: b, 25: M, 27: X, 28: C, 29: it, 30: at, 31: nt, 37: Q, 38: U, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }), e(c, [2, 5]), { 4: 43, 32: x, 33: f, 34: d }, e(i, y, { 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 9: 44, 5: p, 13: B, 15: N, 17: V, 19: I, 20: b, 25: M, 27: X, 28: C, 29: it, 30: at, 31: nt, 37: Q, 38: U, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }), e(i, [2, 9]), e(i, [2, 10]), e(i, [2, 11]), { 14: [1, 45] }, { 16: [1, 46] }, { 18: [1, 47] }, e(i, [2, 15]), e(i, [2, 16]), { 21: 48, 35: 29, 37: Q, 38: U, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 21: 49, 35: 29, 37: Q, 38: U, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 21: 50, 35: 29, 37: Q, 38: U, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 21: 51, 35: 29, 37: Q, 38: U, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 21: 52, 35: 29, 37: Q, 38: U, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 21: 53, 35: 29, 37: Q, 38: U, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }, { 5: O, 22: [1, 54], 35: 56, 36: 55, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: Y }, e(z, [2, 31]), e(z, [2, 33]), e(z, [2, 34]), e(z, [2, 37]), e(z, [2, 38]), e(z, [2, 39]), e(z, [2, 40]), e(z, [2, 41]), e(z, [2, 42]), e(z, [2, 43]), e(z, [2, 44]), e(z, [2, 45]), e(z, [2, 46]), e(z, [2, 47]), e(c, [2, 6]), e(i, [2, 8]), e(i, [2, 12]), e(i, [2, 13]), e(i, [2, 14]), e(i, [2, 20], { 36: 55, 35: 56, 5: O, 26: [1, 59], 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: Y }), e(i, [2, 23], { 36: 55, 35: 56, 5: O, 26: [1, 60], 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: Y }), e(i, [2, 24], { 36: 55, 35: 56, 5: O, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: Y }), e(i, [2, 25], { 36: 55, 35: 56, 5: O, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: Y }), e(i, [2, 26], { 36: 55, 35: 56, 5: O, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: Y }), e(i, [2, 27], { 36: 55, 35: 56, 5: O, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: Y }), { 23: [1, 61] }, e(z, [2, 32]), e(z, [2, 48]), e(z, [2, 49]), e(z, [2, 50]), e(i, [2, 19], { 35: 29, 21: 62, 37: Q, 38: U, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }), e(i, [2, 22], { 35: 29, 21: 63, 37: Q, 38: U, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L }), { 24: [1, 64] }, e(i, [2, 18], { 36: 55, 35: 56, 5: O, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: Y }), e(i, [2, 21], { 36: 55, 35: 56, 5: O, 40: T, 41: m, 42: _, 43: t, 44: A, 45: S, 46: k, 47: F, 48: P, 49: v, 50: L, 51: Y }), e(i, [2, 17])],
|
|
86
|
-
defaultActions: { 8: [2, 1], 9: [2, 2] },
|
|
87
|
-
parseError: function(n, r) {
|
|
88
|
-
if (r.recoverable)
|
|
89
|
-
this.trace(n);
|
|
90
|
-
else {
|
|
91
|
-
var l = new Error(n);
|
|
92
|
-
throw l.hash = r, l;
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
parse: function(n) {
|
|
96
|
-
var r = this, l = [0], o = [], q = [null], a = [], et = this.table, u = "", st = 0, qt = 0, St = 2, Tt = 1, kt = a.slice.call(arguments, 1), E = Object.create(this.lexer), Z = { yy: {} };
|
|
97
|
-
for (var dt in this.yy)
|
|
98
|
-
Object.prototype.hasOwnProperty.call(this.yy, dt) && (Z.yy[dt] = this.yy[dt]);
|
|
99
|
-
E.setInput(n, Z.yy), Z.yy.lexer = E, Z.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
|
|
100
|
-
var ut = E.yylloc;
|
|
101
|
-
a.push(ut);
|
|
102
|
-
var Ft = E.options && E.options.ranges;
|
|
103
|
-
typeof Z.yy.parseError == "function" ? this.parseError = Z.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
104
|
-
function Pt() {
|
|
105
|
-
var j;
|
|
106
|
-
return j = o.pop() || E.lex() || Tt, typeof j != "number" && (j instanceof Array && (o = j, j = o.pop()), j = r.symbols_[j] || j), j;
|
|
107
|
-
}
|
|
108
|
-
for (var W, J, H, xt, tt = {}, rt, $, _t, lt; ; ) {
|
|
109
|
-
if (J = l[l.length - 1], this.defaultActions[J] ? H = this.defaultActions[J] : ((W === null || typeof W > "u") && (W = Pt()), H = et[J] && et[J][W]), typeof H > "u" || !H.length || !H[0]) {
|
|
110
|
-
var ft = "";
|
|
111
|
-
lt = [];
|
|
112
|
-
for (rt in et[J])
|
|
113
|
-
this.terminals_[rt] && rt > St && lt.push("'" + this.terminals_[rt] + "'");
|
|
114
|
-
E.showPosition ? ft = "Parse error on line " + (st + 1) + `:
|
|
115
|
-
` + E.showPosition() + `
|
|
116
|
-
Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ft = "Parse error on line " + (st + 1) + ": Unexpected " + (W == Tt ? "end of input" : "'" + (this.terminals_[W] || W) + "'"), this.parseError(ft, {
|
|
117
|
-
text: E.match,
|
|
118
|
-
token: this.terminals_[W] || W,
|
|
119
|
-
line: E.yylineno,
|
|
120
|
-
loc: ut,
|
|
121
|
-
expected: lt
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
if (H[0] instanceof Array && H.length > 1)
|
|
125
|
-
throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + W);
|
|
126
|
-
switch (H[0]) {
|
|
127
|
-
case 1:
|
|
128
|
-
l.push(W), q.push(E.yytext), a.push(E.yylloc), l.push(H[1]), W = null, qt = E.yyleng, u = E.yytext, st = E.yylineno, ut = E.yylloc;
|
|
129
|
-
break;
|
|
130
|
-
case 2:
|
|
131
|
-
if ($ = this.productions_[H[1]][1], tt.$ = q[q.length - $], tt._$ = {
|
|
132
|
-
first_line: a[a.length - ($ || 1)].first_line,
|
|
133
|
-
last_line: a[a.length - 1].last_line,
|
|
134
|
-
first_column: a[a.length - ($ || 1)].first_column,
|
|
135
|
-
last_column: a[a.length - 1].last_column
|
|
136
|
-
}, Ft && (tt._$.range = [
|
|
137
|
-
a[a.length - ($ || 1)].range[0],
|
|
138
|
-
a[a.length - 1].range[1]
|
|
139
|
-
]), xt = this.performAction.apply(tt, [
|
|
140
|
-
u,
|
|
141
|
-
qt,
|
|
142
|
-
st,
|
|
143
|
-
Z.yy,
|
|
144
|
-
H[1],
|
|
145
|
-
q,
|
|
146
|
-
a
|
|
147
|
-
].concat(kt)), typeof xt < "u")
|
|
148
|
-
return xt;
|
|
149
|
-
$ && (l = l.slice(0, -1 * $ * 2), q = q.slice(0, -1 * $), a = a.slice(0, -1 * $)), l.push(this.productions_[H[1]][0]), q.push(tt.$), a.push(tt._$), _t = et[l[l.length - 2]][l[l.length - 1]], l.push(_t);
|
|
150
|
-
break;
|
|
151
|
-
case 3:
|
|
152
|
-
return !0;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
return !0;
|
|
156
|
-
}
|
|
157
|
-
}, At = /* @__PURE__ */ (function() {
|
|
158
|
-
var K = {
|
|
159
|
-
EOF: 1,
|
|
160
|
-
parseError: function(r, l) {
|
|
161
|
-
if (this.yy.parser)
|
|
162
|
-
this.yy.parser.parseError(r, l);
|
|
163
|
-
else
|
|
164
|
-
throw new Error(r);
|
|
165
|
-
},
|
|
166
|
-
// resets the lexer, sets new input
|
|
167
|
-
setInput: function(n, r) {
|
|
168
|
-
return this.yy = r || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
169
|
-
first_line: 1,
|
|
170
|
-
first_column: 0,
|
|
171
|
-
last_line: 1,
|
|
172
|
-
last_column: 0
|
|
173
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
174
|
-
},
|
|
175
|
-
// consumes and returns one char from the input
|
|
176
|
-
input: function() {
|
|
177
|
-
var n = this._input[0];
|
|
178
|
-
this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
|
|
179
|
-
var r = n.match(/(?:\r\n?|\n).*/g);
|
|
180
|
-
return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
|
|
181
|
-
},
|
|
182
|
-
// unshifts one char (or a string) into the input
|
|
183
|
-
unput: function(n) {
|
|
184
|
-
var r = n.length, l = n.split(/(?:\r\n?|\n)/g);
|
|
185
|
-
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
|
|
186
|
-
var o = this.match.split(/(?:\r\n?|\n)/g);
|
|
187
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
|
|
188
|
-
var q = this.yylloc.range;
|
|
189
|
-
return this.yylloc = {
|
|
190
|
-
first_line: this.yylloc.first_line,
|
|
191
|
-
last_line: this.yylineno + 1,
|
|
192
|
-
first_column: this.yylloc.first_column,
|
|
193
|
-
last_column: l ? (l.length === o.length ? this.yylloc.first_column : 0) + o[o.length - l.length].length - l[0].length : this.yylloc.first_column - r
|
|
194
|
-
}, this.options.ranges && (this.yylloc.range = [q[0], q[0] + this.yyleng - r]), this.yyleng = this.yytext.length, this;
|
|
195
|
-
},
|
|
196
|
-
// When called from action, caches matched text and appends it on next action
|
|
197
|
-
more: function() {
|
|
198
|
-
return this._more = !0, this;
|
|
199
|
-
},
|
|
200
|
-
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
201
|
-
reject: function() {
|
|
202
|
-
if (this.options.backtrack_lexer)
|
|
203
|
-
this._backtrack = !0;
|
|
204
|
-
else
|
|
205
|
-
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
206
|
-
` + this.showPosition(), {
|
|
207
|
-
text: "",
|
|
208
|
-
token: null,
|
|
209
|
-
line: this.yylineno
|
|
210
|
-
});
|
|
211
|
-
return this;
|
|
212
|
-
},
|
|
213
|
-
// retain first n characters of the match
|
|
214
|
-
less: function(n) {
|
|
215
|
-
this.unput(this.match.slice(n));
|
|
216
|
-
},
|
|
217
|
-
// displays already matched input, i.e. for error messages
|
|
218
|
-
pastInput: function() {
|
|
219
|
-
var n = this.matched.substr(0, this.matched.length - this.match.length);
|
|
220
|
-
return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
|
|
221
|
-
},
|
|
222
|
-
// displays upcoming input, i.e. for error messages
|
|
223
|
-
upcomingInput: function() {
|
|
224
|
-
var n = this.match;
|
|
225
|
-
return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
226
|
-
},
|
|
227
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
228
|
-
showPosition: function() {
|
|
229
|
-
var n = this.pastInput(), r = new Array(n.length + 1).join("-");
|
|
230
|
-
return n + this.upcomingInput() + `
|
|
231
|
-
` + r + "^";
|
|
232
|
-
},
|
|
233
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
234
|
-
test_match: function(n, r) {
|
|
235
|
-
var l, o, q;
|
|
236
|
-
if (this.options.backtrack_lexer && (q = {
|
|
237
|
-
yylineno: this.yylineno,
|
|
238
|
-
yylloc: {
|
|
239
|
-
first_line: this.yylloc.first_line,
|
|
240
|
-
last_line: this.last_line,
|
|
241
|
-
first_column: this.yylloc.first_column,
|
|
242
|
-
last_column: this.yylloc.last_column
|
|
243
|
-
},
|
|
244
|
-
yytext: this.yytext,
|
|
245
|
-
match: this.match,
|
|
246
|
-
matches: this.matches,
|
|
247
|
-
matched: this.matched,
|
|
248
|
-
yyleng: this.yyleng,
|
|
249
|
-
offset: this.offset,
|
|
250
|
-
_more: this._more,
|
|
251
|
-
_input: this._input,
|
|
252
|
-
yy: this.yy,
|
|
253
|
-
conditionStack: this.conditionStack.slice(0),
|
|
254
|
-
done: this.done
|
|
255
|
-
}, this.options.ranges && (q.yylloc.range = this.yylloc.range.slice(0))), o = n[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
|
|
256
|
-
first_line: this.yylloc.last_line,
|
|
257
|
-
last_line: this.yylineno + 1,
|
|
258
|
-
first_column: this.yylloc.last_column,
|
|
259
|
-
last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
|
|
260
|
-
}, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], l = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
|
|
261
|
-
return l;
|
|
262
|
-
if (this._backtrack) {
|
|
263
|
-
for (var a in q)
|
|
264
|
-
this[a] = q[a];
|
|
265
|
-
return !1;
|
|
266
|
-
}
|
|
267
|
-
return !1;
|
|
268
|
-
},
|
|
269
|
-
// return next match in input
|
|
270
|
-
next: function() {
|
|
271
|
-
if (this.done)
|
|
272
|
-
return this.EOF;
|
|
273
|
-
this._input || (this.done = !0);
|
|
274
|
-
var n, r, l, o;
|
|
275
|
-
this._more || (this.yytext = "", this.match = "");
|
|
276
|
-
for (var q = this._currentRules(), a = 0; a < q.length; a++)
|
|
277
|
-
if (l = this._input.match(this.rules[q[a]]), l && (!r || l[0].length > r[0].length)) {
|
|
278
|
-
if (r = l, o = a, this.options.backtrack_lexer) {
|
|
279
|
-
if (n = this.test_match(l, q[a]), n !== !1)
|
|
280
|
-
return n;
|
|
281
|
-
if (this._backtrack) {
|
|
282
|
-
r = !1;
|
|
283
|
-
continue;
|
|
284
|
-
} else
|
|
285
|
-
return !1;
|
|
286
|
-
} else if (!this.options.flex)
|
|
287
|
-
break;
|
|
288
|
-
}
|
|
289
|
-
return r ? (n = this.test_match(r, q[o]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
290
|
-
` + this.showPosition(), {
|
|
291
|
-
text: "",
|
|
292
|
-
token: null,
|
|
293
|
-
line: this.yylineno
|
|
294
|
-
});
|
|
295
|
-
},
|
|
296
|
-
// return next match that has a token
|
|
297
|
-
lex: function() {
|
|
298
|
-
var r = this.next();
|
|
299
|
-
return r || this.lex();
|
|
300
|
-
},
|
|
301
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
302
|
-
begin: function(r) {
|
|
303
|
-
this.conditionStack.push(r);
|
|
304
|
-
},
|
|
305
|
-
// pop the previously active lexer condition state off the condition stack
|
|
306
|
-
popState: function() {
|
|
307
|
-
var r = this.conditionStack.length - 1;
|
|
308
|
-
return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
309
|
-
},
|
|
310
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
311
|
-
_currentRules: function() {
|
|
312
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
313
|
-
},
|
|
314
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
315
|
-
topState: function(r) {
|
|
316
|
-
return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
|
|
317
|
-
},
|
|
318
|
-
// alias for begin(condition)
|
|
319
|
-
pushState: function(r) {
|
|
320
|
-
this.begin(r);
|
|
321
|
-
},
|
|
322
|
-
// return the number of states currently on the stack
|
|
323
|
-
stateStackSize: function() {
|
|
324
|
-
return this.conditionStack.length;
|
|
325
|
-
},
|
|
326
|
-
options: { "case-insensitive": !0 },
|
|
327
|
-
performAction: function(r, l, o, q) {
|
|
328
|
-
switch (o) {
|
|
329
|
-
case 0:
|
|
330
|
-
break;
|
|
331
|
-
case 1:
|
|
332
|
-
break;
|
|
333
|
-
case 2:
|
|
334
|
-
return 32;
|
|
335
|
-
case 3:
|
|
336
|
-
break;
|
|
337
|
-
case 4:
|
|
338
|
-
return this.begin("title"), 13;
|
|
339
|
-
case 5:
|
|
340
|
-
return this.popState(), "title_value";
|
|
341
|
-
case 6:
|
|
342
|
-
return this.begin("acc_title"), 15;
|
|
343
|
-
case 7:
|
|
344
|
-
return this.popState(), "acc_title_value";
|
|
345
|
-
case 8:
|
|
346
|
-
return this.begin("acc_descr"), 17;
|
|
347
|
-
case 9:
|
|
348
|
-
return this.popState(), "acc_descr_value";
|
|
349
|
-
case 10:
|
|
350
|
-
this.begin("acc_descr_multiline");
|
|
351
|
-
break;
|
|
352
|
-
case 11:
|
|
353
|
-
this.popState();
|
|
354
|
-
break;
|
|
355
|
-
case 12:
|
|
356
|
-
return "acc_descr_multiline_value";
|
|
357
|
-
case 13:
|
|
358
|
-
return 25;
|
|
359
|
-
case 14:
|
|
360
|
-
return 27;
|
|
361
|
-
case 15:
|
|
362
|
-
return 26;
|
|
363
|
-
case 16:
|
|
364
|
-
return 28;
|
|
365
|
-
case 17:
|
|
366
|
-
return 29;
|
|
367
|
-
case 18:
|
|
368
|
-
return 30;
|
|
369
|
-
case 19:
|
|
370
|
-
return 31;
|
|
371
|
-
case 20:
|
|
372
|
-
this.begin("md_string");
|
|
373
|
-
break;
|
|
374
|
-
case 21:
|
|
375
|
-
return "MD_STR";
|
|
376
|
-
case 22:
|
|
377
|
-
this.popState();
|
|
378
|
-
break;
|
|
379
|
-
case 23:
|
|
380
|
-
this.begin("string");
|
|
381
|
-
break;
|
|
382
|
-
case 24:
|
|
383
|
-
this.popState();
|
|
384
|
-
break;
|
|
385
|
-
case 25:
|
|
386
|
-
return "STR";
|
|
387
|
-
case 26:
|
|
388
|
-
return this.begin("point_start"), 22;
|
|
389
|
-
case 27:
|
|
390
|
-
return this.begin("point_x"), 23;
|
|
391
|
-
case 28:
|
|
392
|
-
this.popState();
|
|
393
|
-
break;
|
|
394
|
-
case 29:
|
|
395
|
-
this.popState(), this.begin("point_y");
|
|
396
|
-
break;
|
|
397
|
-
case 30:
|
|
398
|
-
return this.popState(), 24;
|
|
399
|
-
case 31:
|
|
400
|
-
return 6;
|
|
401
|
-
case 32:
|
|
402
|
-
return 43;
|
|
403
|
-
case 33:
|
|
404
|
-
return "COLON";
|
|
405
|
-
case 34:
|
|
406
|
-
return 45;
|
|
407
|
-
case 35:
|
|
408
|
-
return 44;
|
|
409
|
-
case 36:
|
|
410
|
-
return 46;
|
|
411
|
-
case 37:
|
|
412
|
-
return 46;
|
|
413
|
-
case 38:
|
|
414
|
-
return 47;
|
|
415
|
-
case 39:
|
|
416
|
-
return 49;
|
|
417
|
-
case 40:
|
|
418
|
-
return 50;
|
|
419
|
-
case 41:
|
|
420
|
-
return 48;
|
|
421
|
-
case 42:
|
|
422
|
-
return 41;
|
|
423
|
-
case 43:
|
|
424
|
-
return 51;
|
|
425
|
-
case 44:
|
|
426
|
-
return 42;
|
|
427
|
-
case 45:
|
|
428
|
-
return 5;
|
|
429
|
-
case 46:
|
|
430
|
-
return 33;
|
|
431
|
-
case 47:
|
|
432
|
-
return 40;
|
|
433
|
-
case 48:
|
|
434
|
-
return 34;
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?: *x-axis *)/i, /^(?: *y-axis *)/i, /^(?: *--+> *)/i, /^(?: *quadrant-1 *)/i, /^(?: *quadrant-2 *)/i, /^(?: *quadrant-3 *)/i, /^(?: *quadrant-4 *)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\s*:\s*\[\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?:\s*\] *)/i, /^(?:\s*,\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?: *quadrantChart *)/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s)/i, /^(?:;)/i, /^(?:[!"#$%&'*+,-.`?\\_/])/i, /^(?:$)/i],
|
|
438
|
-
conditions: { point_y: { rules: [30], inclusive: !1 }, point_x: { rules: [29], inclusive: !1 }, point_start: { rules: [27, 28], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12], inclusive: !1 }, acc_descr: { rules: [9], inclusive: !1 }, acc_title: { rules: [7], inclusive: !1 }, title: { rules: [5], inclusive: !1 }, md_string: { rules: [21, 22], inclusive: !1 }, string: { rules: [24, 25], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 23, 26, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], inclusive: !0 } }
|
|
439
|
-
};
|
|
440
|
-
return K;
|
|
441
|
-
})();
|
|
442
|
-
ht.lexer = At;
|
|
443
|
-
function ct() {
|
|
444
|
-
this.yy = {};
|
|
445
|
-
}
|
|
446
|
-
return ct.prototype = ht, ht.Parser = ct, new ct();
|
|
447
|
-
})();
|
|
448
|
-
pt.parser = pt;
|
|
449
|
-
const Rt = pt, R = Bt();
|
|
450
|
-
class Vt {
|
|
451
|
-
constructor() {
|
|
452
|
-
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
|
|
453
|
-
}
|
|
454
|
-
getDefaultData() {
|
|
455
|
-
return {
|
|
456
|
-
titleText: "",
|
|
457
|
-
quadrant1Text: "",
|
|
458
|
-
quadrant2Text: "",
|
|
459
|
-
quadrant3Text: "",
|
|
460
|
-
quadrant4Text: "",
|
|
461
|
-
xAxisLeftText: "",
|
|
462
|
-
xAxisRightText: "",
|
|
463
|
-
yAxisBottomText: "",
|
|
464
|
-
yAxisTopText: "",
|
|
465
|
-
points: []
|
|
466
|
-
};
|
|
467
|
-
}
|
|
468
|
-
getDefaultConfig() {
|
|
469
|
-
var s, h, x, f, d, c, g, i, y, p, B, N, V, I, b, M, X, C;
|
|
470
|
-
return {
|
|
471
|
-
showXAxis: !0,
|
|
472
|
-
showYAxis: !0,
|
|
473
|
-
showTitle: !0,
|
|
474
|
-
chartHeight: ((s = D.quadrantChart) == null ? void 0 : s.chartWidth) || 500,
|
|
475
|
-
chartWidth: ((h = D.quadrantChart) == null ? void 0 : h.chartHeight) || 500,
|
|
476
|
-
titlePadding: ((x = D.quadrantChart) == null ? void 0 : x.titlePadding) || 10,
|
|
477
|
-
titleFontSize: ((f = D.quadrantChart) == null ? void 0 : f.titleFontSize) || 20,
|
|
478
|
-
quadrantPadding: ((d = D.quadrantChart) == null ? void 0 : d.quadrantPadding) || 5,
|
|
479
|
-
xAxisLabelPadding: ((c = D.quadrantChart) == null ? void 0 : c.xAxisLabelPadding) || 5,
|
|
480
|
-
yAxisLabelPadding: ((g = D.quadrantChart) == null ? void 0 : g.yAxisLabelPadding) || 5,
|
|
481
|
-
xAxisLabelFontSize: ((i = D.quadrantChart) == null ? void 0 : i.xAxisLabelFontSize) || 16,
|
|
482
|
-
yAxisLabelFontSize: ((y = D.quadrantChart) == null ? void 0 : y.yAxisLabelFontSize) || 16,
|
|
483
|
-
quadrantLabelFontSize: ((p = D.quadrantChart) == null ? void 0 : p.quadrantLabelFontSize) || 16,
|
|
484
|
-
quadrantTextTopPadding: ((B = D.quadrantChart) == null ? void 0 : B.quadrantTextTopPadding) || 5,
|
|
485
|
-
pointTextPadding: ((N = D.quadrantChart) == null ? void 0 : N.pointTextPadding) || 5,
|
|
486
|
-
pointLabelFontSize: ((V = D.quadrantChart) == null ? void 0 : V.pointLabelFontSize) || 12,
|
|
487
|
-
pointRadius: ((I = D.quadrantChart) == null ? void 0 : I.pointRadius) || 5,
|
|
488
|
-
xAxisPosition: ((b = D.quadrantChart) == null ? void 0 : b.xAxisPosition) || "top",
|
|
489
|
-
yAxisPosition: ((M = D.quadrantChart) == null ? void 0 : M.yAxisPosition) || "left",
|
|
490
|
-
quadrantInternalBorderStrokeWidth: ((X = D.quadrantChart) == null ? void 0 : X.quadrantInternalBorderStrokeWidth) || 1,
|
|
491
|
-
quadrantExternalBorderStrokeWidth: ((C = D.quadrantChart) == null ? void 0 : C.quadrantExternalBorderStrokeWidth) || 2
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
getDefaultThemeConfig() {
|
|
495
|
-
return {
|
|
496
|
-
quadrant1Fill: R.quadrant1Fill,
|
|
497
|
-
quadrant2Fill: R.quadrant2Fill,
|
|
498
|
-
quadrant3Fill: R.quadrant3Fill,
|
|
499
|
-
quadrant4Fill: R.quadrant4Fill,
|
|
500
|
-
quadrant1TextFill: R.quadrant1TextFill,
|
|
501
|
-
quadrant2TextFill: R.quadrant2TextFill,
|
|
502
|
-
quadrant3TextFill: R.quadrant3TextFill,
|
|
503
|
-
quadrant4TextFill: R.quadrant4TextFill,
|
|
504
|
-
quadrantPointFill: R.quadrantPointFill,
|
|
505
|
-
quadrantPointTextFill: R.quadrantPointTextFill,
|
|
506
|
-
quadrantXAxisTextFill: R.quadrantXAxisTextFill,
|
|
507
|
-
quadrantYAxisTextFill: R.quadrantYAxisTextFill,
|
|
508
|
-
quadrantTitleFill: R.quadrantTitleFill,
|
|
509
|
-
quadrantInternalBorderStrokeFill: R.quadrantInternalBorderStrokeFill,
|
|
510
|
-
quadrantExternalBorderStrokeFill: R.quadrantExternalBorderStrokeFill
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
clear() {
|
|
514
|
-
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), ot.info("clear called");
|
|
515
|
-
}
|
|
516
|
-
setData(s) {
|
|
517
|
-
this.data = { ...this.data, ...s };
|
|
518
|
-
}
|
|
519
|
-
addPoints(s) {
|
|
520
|
-
this.data.points = [...s, ...this.data.points];
|
|
521
|
-
}
|
|
522
|
-
setConfig(s) {
|
|
523
|
-
ot.trace("setConfig called with: ", s), this.config = { ...this.config, ...s };
|
|
524
|
-
}
|
|
525
|
-
setThemeConfig(s) {
|
|
526
|
-
ot.trace("setThemeConfig called with: ", s), this.themeConfig = { ...this.themeConfig, ...s };
|
|
527
|
-
}
|
|
528
|
-
calculateSpace(s, h, x, f) {
|
|
529
|
-
const d = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, c = {
|
|
530
|
-
top: s === "top" && h ? d : 0,
|
|
531
|
-
bottom: s === "bottom" && h ? d : 0
|
|
532
|
-
}, g = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, i = {
|
|
533
|
-
left: this.config.yAxisPosition === "left" && x ? g : 0,
|
|
534
|
-
right: this.config.yAxisPosition === "right" && x ? g : 0
|
|
535
|
-
}, y = this.config.titleFontSize + this.config.titlePadding * 2, p = {
|
|
536
|
-
top: f ? y : 0
|
|
537
|
-
}, B = this.config.quadrantPadding + i.left, N = this.config.quadrantPadding + c.top + p.top, V = this.config.chartWidth - this.config.quadrantPadding * 2 - i.left - i.right, I = this.config.chartHeight - this.config.quadrantPadding * 2 - c.top - c.bottom - p.top, b = V / 2, M = I / 2;
|
|
538
|
-
return {
|
|
539
|
-
xAxisSpace: c,
|
|
540
|
-
yAxisSpace: i,
|
|
541
|
-
titleSpace: p,
|
|
542
|
-
quadrantSpace: {
|
|
543
|
-
quadrantLeft: B,
|
|
544
|
-
quadrantTop: N,
|
|
545
|
-
quadrantWidth: V,
|
|
546
|
-
quadrantHalfWidth: b,
|
|
547
|
-
quadrantHeight: I,
|
|
548
|
-
quadrantHalfHeight: M
|
|
549
|
-
}
|
|
550
|
-
};
|
|
551
|
-
}
|
|
552
|
-
getAxisLabels(s, h, x, f) {
|
|
553
|
-
const { quadrantSpace: d, titleSpace: c } = f, {
|
|
554
|
-
quadrantHalfHeight: g,
|
|
555
|
-
quadrantHeight: i,
|
|
556
|
-
quadrantLeft: y,
|
|
557
|
-
quadrantHalfWidth: p,
|
|
558
|
-
quadrantTop: B,
|
|
559
|
-
quadrantWidth: N
|
|
560
|
-
} = d, V = !!this.data.xAxisRightText, I = !!this.data.yAxisTopText, b = [];
|
|
561
|
-
return this.data.xAxisLeftText && h && b.push({
|
|
562
|
-
text: this.data.xAxisLeftText,
|
|
563
|
-
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
564
|
-
x: y + (V ? p / 2 : 0),
|
|
565
|
-
y: s === "top" ? this.config.xAxisLabelPadding + c.top : this.config.xAxisLabelPadding + B + i + this.config.quadrantPadding,
|
|
566
|
-
fontSize: this.config.xAxisLabelFontSize,
|
|
567
|
-
verticalPos: V ? "center" : "left",
|
|
568
|
-
horizontalPos: "top",
|
|
569
|
-
rotation: 0
|
|
570
|
-
}), this.data.xAxisRightText && h && b.push({
|
|
571
|
-
text: this.data.xAxisRightText,
|
|
572
|
-
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
573
|
-
x: y + p + (V ? p / 2 : 0),
|
|
574
|
-
y: s === "top" ? this.config.xAxisLabelPadding + c.top : this.config.xAxisLabelPadding + B + i + this.config.quadrantPadding,
|
|
575
|
-
fontSize: this.config.xAxisLabelFontSize,
|
|
576
|
-
verticalPos: V ? "center" : "left",
|
|
577
|
-
horizontalPos: "top",
|
|
578
|
-
rotation: 0
|
|
579
|
-
}), this.data.yAxisBottomText && x && b.push({
|
|
580
|
-
text: this.data.yAxisBottomText,
|
|
581
|
-
fill: this.themeConfig.quadrantYAxisTextFill,
|
|
582
|
-
x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + y + N + this.config.quadrantPadding,
|
|
583
|
-
y: B + i - (I ? g / 2 : 0),
|
|
584
|
-
fontSize: this.config.yAxisLabelFontSize,
|
|
585
|
-
verticalPos: I ? "center" : "left",
|
|
586
|
-
horizontalPos: "top",
|
|
587
|
-
rotation: -90
|
|
588
|
-
}), this.data.yAxisTopText && x && b.push({
|
|
589
|
-
text: this.data.yAxisTopText,
|
|
590
|
-
fill: this.themeConfig.quadrantYAxisTextFill,
|
|
591
|
-
x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + y + N + this.config.quadrantPadding,
|
|
592
|
-
y: B + g - (I ? g / 2 : 0),
|
|
593
|
-
fontSize: this.config.yAxisLabelFontSize,
|
|
594
|
-
verticalPos: I ? "center" : "left",
|
|
595
|
-
horizontalPos: "top",
|
|
596
|
-
rotation: -90
|
|
597
|
-
}), b;
|
|
598
|
-
}
|
|
599
|
-
getQuadrants(s) {
|
|
600
|
-
const { quadrantSpace: h } = s, { quadrantHalfHeight: x, quadrantLeft: f, quadrantHalfWidth: d, quadrantTop: c } = h, g = [
|
|
601
|
-
{
|
|
602
|
-
text: {
|
|
603
|
-
text: this.data.quadrant1Text,
|
|
604
|
-
fill: this.themeConfig.quadrant1TextFill,
|
|
605
|
-
x: 0,
|
|
606
|
-
y: 0,
|
|
607
|
-
fontSize: this.config.quadrantLabelFontSize,
|
|
608
|
-
verticalPos: "center",
|
|
609
|
-
horizontalPos: "middle",
|
|
610
|
-
rotation: 0
|
|
611
|
-
},
|
|
612
|
-
x: f + d,
|
|
613
|
-
y: c,
|
|
614
|
-
width: d,
|
|
615
|
-
height: x,
|
|
616
|
-
fill: this.themeConfig.quadrant1Fill
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
text: {
|
|
620
|
-
text: this.data.quadrant2Text,
|
|
621
|
-
fill: this.themeConfig.quadrant2TextFill,
|
|
622
|
-
x: 0,
|
|
623
|
-
y: 0,
|
|
624
|
-
fontSize: this.config.quadrantLabelFontSize,
|
|
625
|
-
verticalPos: "center",
|
|
626
|
-
horizontalPos: "middle",
|
|
627
|
-
rotation: 0
|
|
628
|
-
},
|
|
629
|
-
x: f,
|
|
630
|
-
y: c,
|
|
631
|
-
width: d,
|
|
632
|
-
height: x,
|
|
633
|
-
fill: this.themeConfig.quadrant2Fill
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
text: {
|
|
637
|
-
text: this.data.quadrant3Text,
|
|
638
|
-
fill: this.themeConfig.quadrant3TextFill,
|
|
639
|
-
x: 0,
|
|
640
|
-
y: 0,
|
|
641
|
-
fontSize: this.config.quadrantLabelFontSize,
|
|
642
|
-
verticalPos: "center",
|
|
643
|
-
horizontalPos: "middle",
|
|
644
|
-
rotation: 0
|
|
645
|
-
},
|
|
646
|
-
x: f,
|
|
647
|
-
y: c + x,
|
|
648
|
-
width: d,
|
|
649
|
-
height: x,
|
|
650
|
-
fill: this.themeConfig.quadrant3Fill
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
text: {
|
|
654
|
-
text: this.data.quadrant4Text,
|
|
655
|
-
fill: this.themeConfig.quadrant4TextFill,
|
|
656
|
-
x: 0,
|
|
657
|
-
y: 0,
|
|
658
|
-
fontSize: this.config.quadrantLabelFontSize,
|
|
659
|
-
verticalPos: "center",
|
|
660
|
-
horizontalPos: "middle",
|
|
661
|
-
rotation: 0
|
|
662
|
-
},
|
|
663
|
-
x: f + d,
|
|
664
|
-
y: c + x,
|
|
665
|
-
width: d,
|
|
666
|
-
height: x,
|
|
667
|
-
fill: this.themeConfig.quadrant4Fill
|
|
668
|
-
}
|
|
669
|
-
];
|
|
670
|
-
for (const i of g)
|
|
671
|
-
i.text.x = i.x + i.width / 2, this.data.points.length === 0 ? (i.text.y = i.y + i.height / 2, i.text.horizontalPos = "middle") : (i.text.y = i.y + this.config.quadrantTextTopPadding, i.text.horizontalPos = "top");
|
|
672
|
-
return g;
|
|
673
|
-
}
|
|
674
|
-
getQuadrantPoints(s) {
|
|
675
|
-
const { quadrantSpace: h } = s, { quadrantHeight: x, quadrantLeft: f, quadrantTop: d, quadrantWidth: c } = h, g = mt().domain([0, 1]).range([f, c + f]), i = mt().domain([0, 1]).range([x + d, d]);
|
|
676
|
-
return this.data.points.map((p) => ({
|
|
677
|
-
x: g(p.x),
|
|
678
|
-
y: i(p.y),
|
|
679
|
-
fill: this.themeConfig.quadrantPointFill,
|
|
680
|
-
radius: this.config.pointRadius,
|
|
681
|
-
text: {
|
|
682
|
-
text: p.text,
|
|
683
|
-
fill: this.themeConfig.quadrantPointTextFill,
|
|
684
|
-
x: g(p.x),
|
|
685
|
-
y: i(p.y) + this.config.pointTextPadding,
|
|
686
|
-
verticalPos: "center",
|
|
687
|
-
horizontalPos: "top",
|
|
688
|
-
fontSize: this.config.pointLabelFontSize,
|
|
689
|
-
rotation: 0
|
|
690
|
-
}
|
|
691
|
-
}));
|
|
692
|
-
}
|
|
693
|
-
getBorders(s) {
|
|
694
|
-
const h = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: x } = s, {
|
|
695
|
-
quadrantHalfHeight: f,
|
|
696
|
-
quadrantHeight: d,
|
|
697
|
-
quadrantLeft: c,
|
|
698
|
-
quadrantHalfWidth: g,
|
|
699
|
-
quadrantTop: i,
|
|
700
|
-
quadrantWidth: y
|
|
701
|
-
} = x;
|
|
702
|
-
return [
|
|
703
|
-
// top border
|
|
704
|
-
{
|
|
705
|
-
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
706
|
-
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
707
|
-
x1: c - h,
|
|
708
|
-
y1: i,
|
|
709
|
-
x2: c + y + h,
|
|
710
|
-
y2: i
|
|
711
|
-
},
|
|
712
|
-
// right border
|
|
713
|
-
{
|
|
714
|
-
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
715
|
-
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
716
|
-
x1: c + y,
|
|
717
|
-
y1: i + h,
|
|
718
|
-
x2: c + y,
|
|
719
|
-
y2: i + d - h
|
|
720
|
-
},
|
|
721
|
-
// bottom border
|
|
722
|
-
{
|
|
723
|
-
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
724
|
-
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
725
|
-
x1: c - h,
|
|
726
|
-
y1: i + d,
|
|
727
|
-
x2: c + y + h,
|
|
728
|
-
y2: i + d
|
|
729
|
-
},
|
|
730
|
-
// left border
|
|
731
|
-
{
|
|
732
|
-
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
733
|
-
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
734
|
-
x1: c,
|
|
735
|
-
y1: i + h,
|
|
736
|
-
x2: c,
|
|
737
|
-
y2: i + d - h
|
|
738
|
-
},
|
|
739
|
-
// vertical inner border
|
|
740
|
-
{
|
|
741
|
-
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
742
|
-
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
743
|
-
x1: c + g,
|
|
744
|
-
y1: i + h,
|
|
745
|
-
x2: c + g,
|
|
746
|
-
y2: i + d - h
|
|
747
|
-
},
|
|
748
|
-
// horizontal inner border
|
|
749
|
-
{
|
|
750
|
-
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
751
|
-
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
752
|
-
x1: c + h,
|
|
753
|
-
y1: i + f,
|
|
754
|
-
x2: c + y - h,
|
|
755
|
-
y2: i + f
|
|
756
|
-
}
|
|
757
|
-
];
|
|
758
|
-
}
|
|
759
|
-
getTitle(s) {
|
|
760
|
-
if (s)
|
|
761
|
-
return {
|
|
762
|
-
text: this.data.titleText,
|
|
763
|
-
fill: this.themeConfig.quadrantTitleFill,
|
|
764
|
-
fontSize: this.config.titleFontSize,
|
|
765
|
-
horizontalPos: "top",
|
|
766
|
-
verticalPos: "center",
|
|
767
|
-
rotation: 0,
|
|
768
|
-
y: this.config.titlePadding,
|
|
769
|
-
x: this.config.chartWidth / 2
|
|
770
|
-
};
|
|
771
|
-
}
|
|
772
|
-
build() {
|
|
773
|
-
const s = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), h = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), x = this.config.showTitle && !!this.data.titleText, f = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, d = this.calculateSpace(f, s, h, x);
|
|
774
|
-
return {
|
|
775
|
-
points: this.getQuadrantPoints(d),
|
|
776
|
-
quadrants: this.getQuadrants(d),
|
|
777
|
-
axisLabels: this.getAxisLabels(f, s, h, d),
|
|
778
|
-
borderLines: this.getBorders(d),
|
|
779
|
-
title: this.getTitle(x)
|
|
780
|
-
};
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
const Wt = yt();
|
|
784
|
-
function G(e) {
|
|
785
|
-
return wt(e.trim(), Wt);
|
|
786
|
-
}
|
|
787
|
-
const w = new Vt();
|
|
788
|
-
function Nt(e) {
|
|
789
|
-
w.setData({ quadrant1Text: G(e.text) });
|
|
790
|
-
}
|
|
791
|
-
function Qt(e) {
|
|
792
|
-
w.setData({ quadrant2Text: G(e.text) });
|
|
793
|
-
}
|
|
794
|
-
function Ut(e) {
|
|
795
|
-
w.setData({ quadrant3Text: G(e.text) });
|
|
796
|
-
}
|
|
797
|
-
function Ht(e) {
|
|
798
|
-
w.setData({ quadrant4Text: G(e.text) });
|
|
799
|
-
}
|
|
800
|
-
function Mt(e) {
|
|
801
|
-
w.setData({ xAxisLeftText: G(e.text) });
|
|
802
|
-
}
|
|
803
|
-
function Xt(e) {
|
|
804
|
-
w.setData({ xAxisRightText: G(e.text) });
|
|
805
|
-
}
|
|
806
|
-
function Ot(e) {
|
|
807
|
-
w.setData({ yAxisTopText: G(e.text) });
|
|
808
|
-
}
|
|
809
|
-
function Yt(e) {
|
|
810
|
-
w.setData({ yAxisBottomText: G(e.text) });
|
|
811
|
-
}
|
|
812
|
-
function $t(e, s, h) {
|
|
813
|
-
w.addPoints([{ x: s, y: h, text: G(e.text) }]);
|
|
814
|
-
}
|
|
815
|
-
function jt(e) {
|
|
816
|
-
w.setConfig({ chartWidth: e });
|
|
817
|
-
}
|
|
818
|
-
function Gt(e) {
|
|
819
|
-
w.setConfig({ chartHeight: e });
|
|
820
|
-
}
|
|
821
|
-
function Kt() {
|
|
822
|
-
const e = yt(), { themeVariables: s, quadrantChart: h } = e;
|
|
823
|
-
return h && w.setConfig(h), w.setThemeConfig({
|
|
824
|
-
quadrant1Fill: s.quadrant1Fill,
|
|
825
|
-
quadrant2Fill: s.quadrant2Fill,
|
|
826
|
-
quadrant3Fill: s.quadrant3Fill,
|
|
827
|
-
quadrant4Fill: s.quadrant4Fill,
|
|
828
|
-
quadrant1TextFill: s.quadrant1TextFill,
|
|
829
|
-
quadrant2TextFill: s.quadrant2TextFill,
|
|
830
|
-
quadrant3TextFill: s.quadrant3TextFill,
|
|
831
|
-
quadrant4TextFill: s.quadrant4TextFill,
|
|
832
|
-
quadrantPointFill: s.quadrantPointFill,
|
|
833
|
-
quadrantPointTextFill: s.quadrantPointTextFill,
|
|
834
|
-
quadrantXAxisTextFill: s.quadrantXAxisTextFill,
|
|
835
|
-
quadrantYAxisTextFill: s.quadrantYAxisTextFill,
|
|
836
|
-
quadrantExternalBorderStrokeFill: s.quadrantExternalBorderStrokeFill,
|
|
837
|
-
quadrantInternalBorderStrokeFill: s.quadrantInternalBorderStrokeFill,
|
|
838
|
-
quadrantTitleFill: s.quadrantTitleFill
|
|
839
|
-
}), w.setData({ titleText: bt() }), w.build();
|
|
840
|
-
}
|
|
841
|
-
const Zt = function() {
|
|
842
|
-
w.clear(), It();
|
|
843
|
-
}, Jt = {
|
|
844
|
-
setWidth: jt,
|
|
845
|
-
setHeight: Gt,
|
|
846
|
-
setQuadrant1Text: Nt,
|
|
847
|
-
setQuadrant2Text: Qt,
|
|
848
|
-
setQuadrant3Text: Ut,
|
|
849
|
-
setQuadrant4Text: Ht,
|
|
850
|
-
setXAxisLeftText: Mt,
|
|
851
|
-
setXAxisRightText: Xt,
|
|
852
|
-
setYAxisTopText: Ot,
|
|
853
|
-
setYAxisBottomText: Yt,
|
|
854
|
-
addPoint: $t,
|
|
855
|
-
getQuadrantData: Kt,
|
|
856
|
-
clear: Zt,
|
|
857
|
-
setAccTitle: Et,
|
|
858
|
-
getAccTitle: zt,
|
|
859
|
-
setDiagramTitle: Ct,
|
|
860
|
-
getDiagramTitle: bt,
|
|
861
|
-
getAccDescription: Lt,
|
|
862
|
-
setAccDescription: vt
|
|
863
|
-
}, te = (e, s, h, x) => {
|
|
864
|
-
var f, d, c;
|
|
865
|
-
function g(t) {
|
|
866
|
-
return t === "top" ? "hanging" : "middle";
|
|
867
|
-
}
|
|
868
|
-
function i(t) {
|
|
869
|
-
return t === "left" ? "start" : "middle";
|
|
870
|
-
}
|
|
871
|
-
function y(t) {
|
|
872
|
-
return `translate(${t.x}, ${t.y}) rotate(${t.rotation || 0})`;
|
|
873
|
-
}
|
|
874
|
-
const p = yt();
|
|
875
|
-
ot.debug(`Rendering quadrant chart
|
|
876
|
-
` + e);
|
|
877
|
-
const B = p.securityLevel;
|
|
878
|
-
let N;
|
|
879
|
-
B === "sandbox" && (N = gt("#i" + s));
|
|
880
|
-
const I = (B === "sandbox" ? gt(N.nodes()[0].contentDocument.body) : gt("body")).select(`[id="${s}"]`), b = I.append("g").attr("class", "main"), M = ((f = p.quadrantChart) == null ? void 0 : f.chartWidth) || 500, X = ((d = p.quadrantChart) == null ? void 0 : d.chartHeight) || 500;
|
|
881
|
-
Dt(I, X, M, ((c = p.quadrantChart) == null ? void 0 : c.useMaxWidth) || !0), I.attr("viewBox", "0 0 " + M + " " + X), x.db.setHeight(X), x.db.setWidth(M);
|
|
882
|
-
const C = x.db.getQuadrantData(), it = b.append("g").attr("class", "quadrants"), at = b.append("g").attr("class", "border"), nt = b.append("g").attr("class", "data-points"), Q = b.append("g").attr("class", "labels"), U = b.append("g").attr("class", "title");
|
|
883
|
-
C.title && U.append("text").attr("x", 0).attr("y", 0).attr("fill", C.title.fill).attr("font-size", C.title.fontSize).attr("dominant-baseline", g(C.title.horizontalPos)).attr("text-anchor", i(C.title.verticalPos)).attr("transform", y(C.title)).text(C.title.text), C.borderLines && at.selectAll("line").data(C.borderLines).enter().append("line").attr("x1", (t) => t.x1).attr("y1", (t) => t.y1).attr("x2", (t) => t.x2).attr("y2", (t) => t.y2).style("stroke", (t) => t.strokeFill).style("stroke-width", (t) => t.strokeWidth);
|
|
884
|
-
const T = it.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class", "quadrant");
|
|
885
|
-
T.append("rect").attr("x", (t) => t.x).attr("y", (t) => t.y).attr("width", (t) => t.width).attr("height", (t) => t.height).attr("fill", (t) => t.fill), T.append("text").attr("x", 0).attr("y", 0).attr("fill", (t) => t.text.fill).attr("font-size", (t) => t.text.fontSize).attr(
|
|
886
|
-
"dominant-baseline",
|
|
887
|
-
(t) => g(t.text.horizontalPos)
|
|
888
|
-
).attr("text-anchor", (t) => i(t.text.verticalPos)).attr("transform", (t) => y(t.text)).text((t) => t.text.text), Q.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((t) => t.text).attr("fill", (t) => t.fill).attr("font-size", (t) => t.fontSize).attr("dominant-baseline", (t) => g(t.horizontalPos)).attr("text-anchor", (t) => i(t.verticalPos)).attr("transform", (t) => y(t));
|
|
889
|
-
const _ = nt.selectAll("g.data-point").data(C.points).enter().append("g").attr("class", "data-point");
|
|
890
|
-
_.append("circle").attr("cx", (t) => t.x).attr("cy", (t) => t.y).attr("r", (t) => t.radius).attr("fill", (t) => t.fill), _.append("text").attr("x", 0).attr("y", 0).text((t) => t.text.text).attr("fill", (t) => t.text.fill).attr("font-size", (t) => t.text.fontSize).attr(
|
|
891
|
-
"dominant-baseline",
|
|
892
|
-
(t) => g(t.text.horizontalPos)
|
|
893
|
-
).attr("text-anchor", (t) => i(t.text.verticalPos)).attr("transform", (t) => y(t.text));
|
|
894
|
-
}, ee = {
|
|
895
|
-
draw: te
|
|
896
|
-
}, se = {
|
|
897
|
-
parser: Rt,
|
|
898
|
-
db: Jt,
|
|
899
|
-
renderer: ee,
|
|
900
|
-
styles: () => ""
|
|
901
|
-
};
|
|
902
|
-
export {
|
|
903
|
-
se as diagram
|
|
904
|
-
};
|