lowcoder-comps 2.4.13 → 2.4.15
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/{0fa873f8.js → 0bb0c92e.js} +4 -4
- package/{1d0578cc.js → 0cc36377.js} +919 -969
- package/{4ee1107f.js → 0fa86771.js} +411 -451
- package/{7ceb1a86.js → 19a2ee87.js} +1067 -1085
- package/{62a4e802.js → 1b41afb7.js} +6 -6
- package/{140d1965.js → 1e5b4466.js} +1 -1
- package/21ce624b.js +433 -0
- package/247d363c.js +797 -0
- package/{66d40f47.js → 2dc10e5c.js} +96 -99
- package/{48262065.js → 3a91cb5c.js} +8 -8
- package/{bfff0c9e.js → 3ebe8123.js} +26 -27
- package/{e60eb1d6.js → 3f2bde45.js} +1 -1
- package/{08ce8965.js → 4046c39a.js} +247 -258
- package/{256b619e.js → 428ebac9.js} +14 -15
- package/{f85b9955.js → 4b8936b0.js} +68 -69
- package/{722d14f3.js → 4d48e6df.js} +6 -6
- package/{93e77b54.js → 558e8ee5.js} +4 -4
- package/{d2b89014.js → 56f6e990.js} +92 -92
- package/{6c5168e9.js → 5a31cef7.js} +2 -2
- package/{7873457c.js → 5d41cf38.js} +6 -6
- package/{5d259708.js → 5fd9a898.js} +4 -5
- package/{2c7a98c7.js → 63a771ab.js} +8 -8
- package/6a32f1c1.js +206 -0
- package/{e7717e30.js → 7035666f.js} +7 -7
- package/{c840f94c.js → 74ef17ae.js} +140 -141
- package/{eeeac330.js → 7cc252e4.js} +65540 -59868
- package/81d6ce63.js +817 -0
- package/{c8211b18.js → 832e744b.js} +1 -1
- package/{81a0d6f1.js → 8718dc59.js} +12 -12
- package/{7a22ada0.js → 88953f96.js} +18 -18
- package/a8d4a50e.js +373 -0
- package/aa88392e.js +190 -0
- package/b0862b2f.js +1083 -0
- package/{62c4dc6e.js → c1b710aa.js} +5 -5
- package/{4cf9b6b3.js → d72b57c8.js} +12713 -12735
- package/{629dfdca.js → e441921a.js} +4 -4
- package/{47848c42.js → e5b014a9.js} +5 -5
- package/{b7fefb34.js → eb3bf879.js} +2 -2
- package/{febae45b.js → eb5cf40c.js} +2 -2
- package/{ddee0e99.js → edc74d11.js} +3 -3
- package/f0f41787.js +1264 -0
- package/index.js +2 -2
- package/package.json +1 -1
- package/1de1a3c9.js +0 -1102
- package/2510669f.js +0 -237
- package/68ee7280.js +0 -1276
- package/89baa2e6.js +0 -391
- package/9dc6adcd.js +0 -819
- package/ab55adad.js +0 -818
- package/c459c043.js +0 -208
- package/e47dc9ca.js +0 -455
|
@@ -1,163 +1,152 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var Et = Object.prototype.hasOwnProperty, Dt = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var At = (e, a, r) => a in e ? zt(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r, tt = (e, a) => {
|
|
5
|
-
for (var r in a || (a = {}))
|
|
6
|
-
Et.call(a, r) && At(e, r, a[r]);
|
|
7
|
-
if (bt)
|
|
8
|
-
for (var r of bt(a))
|
|
9
|
-
Dt.call(a, r) && At(e, r, a[r]);
|
|
10
|
-
return e;
|
|
11
|
-
};
|
|
12
|
-
import { Z as It, e as qt, W as D, l as ht, s as Bt, a as wt, F as Rt, G as kt, b as Vt, d as Wt, H as Nt, j as pt, k as Ut, f as Qt } from "./eeeac330.js";
|
|
13
|
-
import { l as St } from "./93e77b54.js";
|
|
1
|
+
import { Z as vt, e as yt, W as D, l as ot, s as Lt, a as Ct, F as zt, G as bt, b as Et, d as Dt, H as It, j as gt, k as Bt, f as wt } from "./7cc252e4.js";
|
|
2
|
+
import { l as mt } from "./558e8ee5.js";
|
|
14
3
|
import "./f9637058.js";
|
|
15
|
-
var
|
|
16
|
-
var e = function(K,
|
|
17
|
-
for (
|
|
4
|
+
var pt = function() {
|
|
5
|
+
var e = function(K, n, r, l) {
|
|
6
|
+
for (r = r || {}, l = K.length; l--; r[K[l]] = n)
|
|
18
7
|
;
|
|
19
|
-
return
|
|
20
|
-
},
|
|
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], U = [1, 30], Q = [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 = {
|
|
21
10
|
trace: function() {
|
|
22
11
|
},
|
|
23
12
|
yy: {},
|
|
24
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 },
|
|
25
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" },
|
|
26
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]],
|
|
27
|
-
performAction: function(
|
|
28
|
-
var u =
|
|
16
|
+
performAction: function(n, r, l, o, q, a, et) {
|
|
17
|
+
var u = a.length - 1;
|
|
29
18
|
switch (q) {
|
|
30
19
|
case 12:
|
|
31
|
-
this.$ =
|
|
20
|
+
this.$ = a[u].trim(), o.setDiagramTitle(this.$);
|
|
32
21
|
break;
|
|
33
22
|
case 13:
|
|
34
|
-
this.$ =
|
|
23
|
+
this.$ = a[u].trim(), o.setAccTitle(this.$);
|
|
35
24
|
break;
|
|
36
25
|
case 14:
|
|
37
26
|
case 15:
|
|
38
|
-
this.$ =
|
|
27
|
+
this.$ = a[u].trim(), o.setAccDescription(this.$);
|
|
39
28
|
break;
|
|
40
29
|
case 16:
|
|
41
|
-
|
|
30
|
+
o.addSection(a[u].substr(8)), this.$ = a[u].substr(8);
|
|
42
31
|
break;
|
|
43
32
|
case 17:
|
|
44
|
-
|
|
33
|
+
o.addPoint(a[u - 3], a[u - 1], a[u]);
|
|
45
34
|
break;
|
|
46
35
|
case 18:
|
|
47
|
-
|
|
36
|
+
o.setXAxisLeftText(a[u - 2]), o.setXAxisRightText(a[u]);
|
|
48
37
|
break;
|
|
49
38
|
case 19:
|
|
50
|
-
|
|
39
|
+
a[u - 1].text += " ⟶ ", o.setXAxisLeftText(a[u - 1]);
|
|
51
40
|
break;
|
|
52
41
|
case 20:
|
|
53
|
-
|
|
42
|
+
o.setXAxisLeftText(a[u]);
|
|
54
43
|
break;
|
|
55
44
|
case 21:
|
|
56
|
-
|
|
45
|
+
o.setYAxisBottomText(a[u - 2]), o.setYAxisTopText(a[u]);
|
|
57
46
|
break;
|
|
58
47
|
case 22:
|
|
59
|
-
|
|
48
|
+
a[u - 1].text += " ⟶ ", o.setYAxisBottomText(a[u - 1]);
|
|
60
49
|
break;
|
|
61
50
|
case 23:
|
|
62
|
-
|
|
51
|
+
o.setYAxisBottomText(a[u]);
|
|
63
52
|
break;
|
|
64
53
|
case 24:
|
|
65
|
-
|
|
54
|
+
o.setQuadrant1Text(a[u]);
|
|
66
55
|
break;
|
|
67
56
|
case 25:
|
|
68
|
-
|
|
57
|
+
o.setQuadrant2Text(a[u]);
|
|
69
58
|
break;
|
|
70
59
|
case 26:
|
|
71
|
-
|
|
60
|
+
o.setQuadrant3Text(a[u]);
|
|
72
61
|
break;
|
|
73
62
|
case 27:
|
|
74
|
-
|
|
63
|
+
o.setQuadrant4Text(a[u]);
|
|
75
64
|
break;
|
|
76
65
|
case 31:
|
|
77
|
-
this.$ = { text:
|
|
66
|
+
this.$ = { text: a[u], type: "text" };
|
|
78
67
|
break;
|
|
79
68
|
case 32:
|
|
80
|
-
this.$ = { text:
|
|
69
|
+
this.$ = { text: a[u - 1].text + "" + a[u], type: a[u - 1].type };
|
|
81
70
|
break;
|
|
82
71
|
case 33:
|
|
83
|
-
this.$ = { text:
|
|
72
|
+
this.$ = { text: a[u], type: "text" };
|
|
84
73
|
break;
|
|
85
74
|
case 34:
|
|
86
|
-
this.$ = { text:
|
|
75
|
+
this.$ = { text: a[u], type: "markdown" };
|
|
87
76
|
break;
|
|
88
77
|
case 35:
|
|
89
|
-
this.$ =
|
|
78
|
+
this.$ = a[u];
|
|
90
79
|
break;
|
|
91
80
|
case 36:
|
|
92
|
-
this.$ =
|
|
81
|
+
this.$ = a[u - 1] + "" + a[u];
|
|
93
82
|
break;
|
|
94
83
|
}
|
|
95
84
|
},
|
|
96
|
-
table: [{ 3: 1, 4: 2, 5:
|
|
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: U, 38: Q, 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: U, 38: Q, 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: U, 38: Q, 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: U, 38: Q, 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: U, 38: Q, 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: U, 38: Q, 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: U, 38: Q, 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: U, 38: Q, 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: U, 38: Q, 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: U, 38: Q, 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])],
|
|
97
86
|
defaultActions: { 8: [2, 1], 9: [2, 2] },
|
|
98
|
-
parseError: function(
|
|
99
|
-
if (
|
|
100
|
-
this.trace(
|
|
87
|
+
parseError: function(n, r) {
|
|
88
|
+
if (r.recoverable)
|
|
89
|
+
this.trace(n);
|
|
101
90
|
else {
|
|
102
|
-
var
|
|
103
|
-
throw
|
|
91
|
+
var l = new Error(n);
|
|
92
|
+
throw l.hash = r, l;
|
|
104
93
|
}
|
|
105
94
|
},
|
|
106
|
-
parse: function(
|
|
107
|
-
var
|
|
108
|
-
for (var
|
|
109
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
110
|
-
E.setInput(
|
|
111
|
-
var
|
|
112
|
-
|
|
113
|
-
var
|
|
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;
|
|
114
103
|
typeof Z.yy.parseError == "function" ? this.parseError = Z.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
115
|
-
function
|
|
104
|
+
function Pt() {
|
|
116
105
|
var j;
|
|
117
|
-
return 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;
|
|
118
107
|
}
|
|
119
|
-
for (var W, J, H,
|
|
120
|
-
if (J =
|
|
121
|
-
var
|
|
122
|
-
|
|
123
|
-
for (
|
|
124
|
-
this.terminals_[
|
|
125
|
-
E.showPosition ?
|
|
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) + `:
|
|
126
115
|
` + E.showPosition() + `
|
|
127
|
-
Expecting ` +
|
|
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, {
|
|
128
117
|
text: E.match,
|
|
129
118
|
token: this.terminals_[W] || W,
|
|
130
119
|
line: E.yylineno,
|
|
131
|
-
loc:
|
|
132
|
-
expected:
|
|
120
|
+
loc: ut,
|
|
121
|
+
expected: lt
|
|
133
122
|
});
|
|
134
123
|
}
|
|
135
124
|
if (H[0] instanceof Array && H.length > 1)
|
|
136
125
|
throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + W);
|
|
137
126
|
switch (H[0]) {
|
|
138
127
|
case 1:
|
|
139
|
-
|
|
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;
|
|
140
129
|
break;
|
|
141
130
|
case 2:
|
|
142
|
-
if ($ = this.productions_[H[1]][1],
|
|
143
|
-
first_line:
|
|
144
|
-
last_line:
|
|
145
|
-
first_column:
|
|
146
|
-
last_column:
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
]),
|
|
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, [
|
|
151
140
|
u,
|
|
152
|
-
|
|
153
|
-
|
|
141
|
+
qt,
|
|
142
|
+
st,
|
|
154
143
|
Z.yy,
|
|
155
144
|
H[1],
|
|
156
145
|
q,
|
|
157
|
-
|
|
158
|
-
].concat(
|
|
159
|
-
return
|
|
160
|
-
$ && (
|
|
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);
|
|
161
150
|
break;
|
|
162
151
|
case 3:
|
|
163
152
|
return !0;
|
|
@@ -165,18 +154,18 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : gt =
|
|
|
165
154
|
}
|
|
166
155
|
return !0;
|
|
167
156
|
}
|
|
168
|
-
},
|
|
157
|
+
}, At = function() {
|
|
169
158
|
var K = {
|
|
170
159
|
EOF: 1,
|
|
171
|
-
parseError: function(
|
|
160
|
+
parseError: function(r, l) {
|
|
172
161
|
if (this.yy.parser)
|
|
173
|
-
this.yy.parser.parseError(
|
|
162
|
+
this.yy.parser.parseError(r, l);
|
|
174
163
|
else
|
|
175
|
-
throw new Error(
|
|
164
|
+
throw new Error(r);
|
|
176
165
|
},
|
|
177
166
|
// resets the lexer, sets new input
|
|
178
|
-
setInput: function(
|
|
179
|
-
return this.yy =
|
|
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 = {
|
|
180
169
|
first_line: 1,
|
|
181
170
|
first_column: 0,
|
|
182
171
|
last_line: 1,
|
|
@@ -185,24 +174,24 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : gt =
|
|
|
185
174
|
},
|
|
186
175
|
// consumes and returns one char from the input
|
|
187
176
|
input: function() {
|
|
188
|
-
var
|
|
189
|
-
this.yytext +=
|
|
190
|
-
var
|
|
191
|
-
return
|
|
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;
|
|
192
181
|
},
|
|
193
182
|
// unshifts one char (or a string) into the input
|
|
194
|
-
unput: function(
|
|
195
|
-
var
|
|
196
|
-
this._input =
|
|
197
|
-
var
|
|
198
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
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);
|
|
199
188
|
var q = this.yylloc.range;
|
|
200
189
|
return this.yylloc = {
|
|
201
190
|
first_line: this.yylloc.first_line,
|
|
202
191
|
last_line: this.yylineno + 1,
|
|
203
192
|
first_column: this.yylloc.first_column,
|
|
204
|
-
last_column:
|
|
205
|
-
}, this.options.ranges && (this.yylloc.range = [q[0], q[0] + this.yyleng -
|
|
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;
|
|
206
195
|
},
|
|
207
196
|
// When called from action, caches matched text and appends it on next action
|
|
208
197
|
more: function() {
|
|
@@ -222,28 +211,28 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : gt =
|
|
|
222
211
|
return this;
|
|
223
212
|
},
|
|
224
213
|
// retain first n characters of the match
|
|
225
|
-
less: function(
|
|
226
|
-
this.unput(this.match.slice(
|
|
214
|
+
less: function(n) {
|
|
215
|
+
this.unput(this.match.slice(n));
|
|
227
216
|
},
|
|
228
217
|
// displays already matched input, i.e. for error messages
|
|
229
218
|
pastInput: function() {
|
|
230
|
-
var
|
|
231
|
-
return (
|
|
219
|
+
var n = this.matched.substr(0, this.matched.length - this.match.length);
|
|
220
|
+
return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
|
|
232
221
|
},
|
|
233
222
|
// displays upcoming input, i.e. for error messages
|
|
234
223
|
upcomingInput: function() {
|
|
235
|
-
var
|
|
236
|
-
return
|
|
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, "");
|
|
237
226
|
},
|
|
238
227
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
239
228
|
showPosition: function() {
|
|
240
|
-
var
|
|
241
|
-
return
|
|
242
|
-
` +
|
|
229
|
+
var n = this.pastInput(), r = new Array(n.length + 1).join("-");
|
|
230
|
+
return n + this.upcomingInput() + `
|
|
231
|
+
` + r + "^";
|
|
243
232
|
},
|
|
244
233
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
245
|
-
test_match: function(
|
|
246
|
-
var
|
|
234
|
+
test_match: function(n, r) {
|
|
235
|
+
var l, o, q;
|
|
247
236
|
if (this.options.backtrack_lexer && (q = {
|
|
248
237
|
yylineno: this.yylineno,
|
|
249
238
|
yylloc: {
|
|
@@ -263,16 +252,16 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : gt =
|
|
|
263
252
|
yy: this.yy,
|
|
264
253
|
conditionStack: this.conditionStack.slice(0),
|
|
265
254
|
done: this.done
|
|
266
|
-
}, this.options.ranges && (q.yylloc.range = this.yylloc.range.slice(0))),
|
|
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 = {
|
|
267
256
|
first_line: this.yylloc.last_line,
|
|
268
257
|
last_line: this.yylineno + 1,
|
|
269
258
|
first_column: this.yylloc.last_column,
|
|
270
|
-
last_column:
|
|
271
|
-
}, this.yytext +=
|
|
272
|
-
return
|
|
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;
|
|
273
262
|
if (this._backtrack) {
|
|
274
|
-
for (var
|
|
275
|
-
this[
|
|
263
|
+
for (var a in q)
|
|
264
|
+
this[a] = q[a];
|
|
276
265
|
return !1;
|
|
277
266
|
}
|
|
278
267
|
return !1;
|
|
@@ -282,22 +271,22 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : gt =
|
|
|
282
271
|
if (this.done)
|
|
283
272
|
return this.EOF;
|
|
284
273
|
this._input || (this.done = !0);
|
|
285
|
-
var
|
|
274
|
+
var n, r, l, o;
|
|
286
275
|
this._more || (this.yytext = "", this.match = "");
|
|
287
|
-
for (var q = this._currentRules(),
|
|
288
|
-
if (
|
|
289
|
-
if (
|
|
290
|
-
if (
|
|
291
|
-
return
|
|
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;
|
|
292
281
|
if (this._backtrack) {
|
|
293
|
-
|
|
282
|
+
r = !1;
|
|
294
283
|
continue;
|
|
295
284
|
} else
|
|
296
285
|
return !1;
|
|
297
286
|
} else if (!this.options.flex)
|
|
298
287
|
break;
|
|
299
288
|
}
|
|
300
|
-
return
|
|
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.
|
|
301
290
|
` + this.showPosition(), {
|
|
302
291
|
text: "",
|
|
303
292
|
token: null,
|
|
@@ -306,37 +295,37 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : gt =
|
|
|
306
295
|
},
|
|
307
296
|
// return next match that has a token
|
|
308
297
|
lex: function() {
|
|
309
|
-
var
|
|
310
|
-
return
|
|
298
|
+
var r = this.next();
|
|
299
|
+
return r || this.lex();
|
|
311
300
|
},
|
|
312
301
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
313
|
-
begin: function(
|
|
314
|
-
this.conditionStack.push(
|
|
302
|
+
begin: function(r) {
|
|
303
|
+
this.conditionStack.push(r);
|
|
315
304
|
},
|
|
316
305
|
// pop the previously active lexer condition state off the condition stack
|
|
317
306
|
popState: function() {
|
|
318
|
-
var
|
|
319
|
-
return
|
|
307
|
+
var r = this.conditionStack.length - 1;
|
|
308
|
+
return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
320
309
|
},
|
|
321
310
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
322
311
|
_currentRules: function() {
|
|
323
312
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
324
313
|
},
|
|
325
314
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
326
|
-
topState: function(
|
|
327
|
-
return
|
|
315
|
+
topState: function(r) {
|
|
316
|
+
return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
|
|
328
317
|
},
|
|
329
318
|
// alias for begin(condition)
|
|
330
|
-
pushState: function(
|
|
331
|
-
this.begin(
|
|
319
|
+
pushState: function(r) {
|
|
320
|
+
this.begin(r);
|
|
332
321
|
},
|
|
333
322
|
// return the number of states currently on the stack
|
|
334
323
|
stateStackSize: function() {
|
|
335
324
|
return this.conditionStack.length;
|
|
336
325
|
},
|
|
337
326
|
options: { "case-insensitive": !0 },
|
|
338
|
-
performAction: function(l, o,
|
|
339
|
-
switch (
|
|
327
|
+
performAction: function(r, l, o, q) {
|
|
328
|
+
switch (o) {
|
|
340
329
|
case 0:
|
|
341
330
|
break;
|
|
342
331
|
case 1:
|
|
@@ -450,15 +439,15 @@ Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : gt =
|
|
|
450
439
|
};
|
|
451
440
|
return K;
|
|
452
441
|
}();
|
|
453
|
-
|
|
454
|
-
function
|
|
442
|
+
ht.lexer = At;
|
|
443
|
+
function ct() {
|
|
455
444
|
this.yy = {};
|
|
456
445
|
}
|
|
457
|
-
return
|
|
446
|
+
return ct.prototype = ht, ht.Parser = ct, new ct();
|
|
458
447
|
}();
|
|
459
|
-
|
|
460
|
-
const
|
|
461
|
-
class
|
|
448
|
+
pt.parser = pt;
|
|
449
|
+
const Rt = pt, R = vt();
|
|
450
|
+
class Vt {
|
|
462
451
|
constructor() {
|
|
463
452
|
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
|
|
464
453
|
}
|
|
@@ -477,13 +466,13 @@ class Mt {
|
|
|
477
466
|
};
|
|
478
467
|
}
|
|
479
468
|
getDefaultConfig() {
|
|
480
|
-
var
|
|
469
|
+
var s, h, x, f, d, c, g, i, y, p, B, N, V, I, b, M, X, C;
|
|
481
470
|
return {
|
|
482
471
|
showXAxis: !0,
|
|
483
472
|
showYAxis: !0,
|
|
484
473
|
showTitle: !0,
|
|
485
|
-
chartHeight: ((
|
|
486
|
-
chartWidth: ((
|
|
474
|
+
chartHeight: ((s = D.quadrantChart) == null ? void 0 : s.chartWidth) || 500,
|
|
475
|
+
chartWidth: ((h = D.quadrantChart) == null ? void 0 : h.chartHeight) || 500,
|
|
487
476
|
titlePadding: ((x = D.quadrantChart) == null ? void 0 : x.titlePadding) || 10,
|
|
488
477
|
titleFontSize: ((f = D.quadrantChart) == null ? void 0 : f.titleFontSize) || 20,
|
|
489
478
|
quadrantPadding: ((d = D.quadrantChart) == null ? void 0 : d.quadrantPadding) || 5,
|
|
@@ -522,24 +511,24 @@ class Mt {
|
|
|
522
511
|
};
|
|
523
512
|
}
|
|
524
513
|
clear() {
|
|
525
|
-
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(),
|
|
514
|
+
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), ot.info("clear called");
|
|
526
515
|
}
|
|
527
|
-
setData(
|
|
528
|
-
this.data =
|
|
516
|
+
setData(s) {
|
|
517
|
+
this.data = { ...this.data, ...s };
|
|
529
518
|
}
|
|
530
|
-
addPoints(
|
|
531
|
-
this.data.points = [...
|
|
519
|
+
addPoints(s) {
|
|
520
|
+
this.data.points = [...s, ...this.data.points];
|
|
532
521
|
}
|
|
533
|
-
setConfig(
|
|
534
|
-
|
|
522
|
+
setConfig(s) {
|
|
523
|
+
ot.trace("setConfig called with: ", s), this.config = { ...this.config, ...s };
|
|
535
524
|
}
|
|
536
|
-
setThemeConfig(
|
|
537
|
-
|
|
525
|
+
setThemeConfig(s) {
|
|
526
|
+
ot.trace("setThemeConfig called with: ", s), this.themeConfig = { ...this.themeConfig, ...s };
|
|
538
527
|
}
|
|
539
|
-
calculateSpace(
|
|
528
|
+
calculateSpace(s, h, x, f) {
|
|
540
529
|
const d = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, c = {
|
|
541
|
-
top:
|
|
542
|
-
bottom:
|
|
530
|
+
top: s === "top" && h ? d : 0,
|
|
531
|
+
bottom: s === "bottom" && h ? d : 0
|
|
543
532
|
}, g = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, i = {
|
|
544
533
|
left: this.config.yAxisPosition === "left" && x ? g : 0,
|
|
545
534
|
right: this.config.yAxisPosition === "right" && x ? g : 0
|
|
@@ -560,7 +549,7 @@ class Mt {
|
|
|
560
549
|
}
|
|
561
550
|
};
|
|
562
551
|
}
|
|
563
|
-
getAxisLabels(
|
|
552
|
+
getAxisLabels(s, h, x, f) {
|
|
564
553
|
const { quadrantSpace: d, titleSpace: c } = f, {
|
|
565
554
|
quadrantHalfHeight: g,
|
|
566
555
|
quadrantHeight: i,
|
|
@@ -569,20 +558,20 @@ class Mt {
|
|
|
569
558
|
quadrantTop: B,
|
|
570
559
|
quadrantWidth: N
|
|
571
560
|
} = d, V = !!this.data.xAxisRightText, I = !!this.data.yAxisTopText, b = [];
|
|
572
|
-
return this.data.xAxisLeftText &&
|
|
561
|
+
return this.data.xAxisLeftText && h && b.push({
|
|
573
562
|
text: this.data.xAxisLeftText,
|
|
574
563
|
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
575
564
|
x: y + (V ? p / 2 : 0),
|
|
576
|
-
y:
|
|
565
|
+
y: s === "top" ? this.config.xAxisLabelPadding + c.top : this.config.xAxisLabelPadding + B + i + this.config.quadrantPadding,
|
|
577
566
|
fontSize: this.config.xAxisLabelFontSize,
|
|
578
567
|
verticalPos: V ? "center" : "left",
|
|
579
568
|
horizontalPos: "top",
|
|
580
569
|
rotation: 0
|
|
581
|
-
}), this.data.xAxisRightText &&
|
|
570
|
+
}), this.data.xAxisRightText && h && b.push({
|
|
582
571
|
text: this.data.xAxisRightText,
|
|
583
572
|
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
584
573
|
x: y + p + (V ? p / 2 : 0),
|
|
585
|
-
y:
|
|
574
|
+
y: s === "top" ? this.config.xAxisLabelPadding + c.top : this.config.xAxisLabelPadding + B + i + this.config.quadrantPadding,
|
|
586
575
|
fontSize: this.config.xAxisLabelFontSize,
|
|
587
576
|
verticalPos: V ? "center" : "left",
|
|
588
577
|
horizontalPos: "top",
|
|
@@ -607,8 +596,8 @@ class Mt {
|
|
|
607
596
|
rotation: -90
|
|
608
597
|
}), b;
|
|
609
598
|
}
|
|
610
|
-
getQuadrants(
|
|
611
|
-
const { quadrantSpace:
|
|
599
|
+
getQuadrants(s) {
|
|
600
|
+
const { quadrantSpace: h } = s, { quadrantHalfHeight: x, quadrantLeft: f, quadrantHalfWidth: d, quadrantTop: c } = h, g = [
|
|
612
601
|
{
|
|
613
602
|
text: {
|
|
614
603
|
text: this.data.quadrant1Text,
|
|
@@ -682,8 +671,8 @@ class Mt {
|
|
|
682
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");
|
|
683
672
|
return g;
|
|
684
673
|
}
|
|
685
|
-
getQuadrantPoints(
|
|
686
|
-
const { quadrantSpace:
|
|
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]);
|
|
687
676
|
return this.data.points.map((p) => ({
|
|
688
677
|
x: g(p.x),
|
|
689
678
|
y: i(p.y),
|
|
@@ -701,8 +690,8 @@ class Mt {
|
|
|
701
690
|
}
|
|
702
691
|
}));
|
|
703
692
|
}
|
|
704
|
-
getBorders(
|
|
705
|
-
const
|
|
693
|
+
getBorders(s) {
|
|
694
|
+
const h = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: x } = s, {
|
|
706
695
|
quadrantHalfHeight: f,
|
|
707
696
|
quadrantHeight: d,
|
|
708
697
|
quadrantLeft: c,
|
|
@@ -715,9 +704,9 @@ class Mt {
|
|
|
715
704
|
{
|
|
716
705
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
717
706
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
718
|
-
x1: c -
|
|
707
|
+
x1: c - h,
|
|
719
708
|
y1: i,
|
|
720
|
-
x2: c + y +
|
|
709
|
+
x2: c + y + h,
|
|
721
710
|
y2: i
|
|
722
711
|
},
|
|
723
712
|
// right border
|
|
@@ -725,17 +714,17 @@ class Mt {
|
|
|
725
714
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
726
715
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
727
716
|
x1: c + y,
|
|
728
|
-
y1: i +
|
|
717
|
+
y1: i + h,
|
|
729
718
|
x2: c + y,
|
|
730
|
-
y2: i + d -
|
|
719
|
+
y2: i + d - h
|
|
731
720
|
},
|
|
732
721
|
// bottom border
|
|
733
722
|
{
|
|
734
723
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
735
724
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
736
|
-
x1: c -
|
|
725
|
+
x1: c - h,
|
|
737
726
|
y1: i + d,
|
|
738
|
-
x2: c + y +
|
|
727
|
+
x2: c + y + h,
|
|
739
728
|
y2: i + d
|
|
740
729
|
},
|
|
741
730
|
// left border
|
|
@@ -743,32 +732,32 @@ class Mt {
|
|
|
743
732
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
744
733
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
745
734
|
x1: c,
|
|
746
|
-
y1: i +
|
|
735
|
+
y1: i + h,
|
|
747
736
|
x2: c,
|
|
748
|
-
y2: i + d -
|
|
737
|
+
y2: i + d - h
|
|
749
738
|
},
|
|
750
739
|
// vertical inner border
|
|
751
740
|
{
|
|
752
741
|
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
753
742
|
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
754
743
|
x1: c + g,
|
|
755
|
-
y1: i +
|
|
744
|
+
y1: i + h,
|
|
756
745
|
x2: c + g,
|
|
757
|
-
y2: i + d -
|
|
746
|
+
y2: i + d - h
|
|
758
747
|
},
|
|
759
748
|
// horizontal inner border
|
|
760
749
|
{
|
|
761
750
|
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
762
751
|
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
763
|
-
x1: c +
|
|
752
|
+
x1: c + h,
|
|
764
753
|
y1: i + f,
|
|
765
|
-
x2: c + y -
|
|
754
|
+
x2: c + y - h,
|
|
766
755
|
y2: i + f
|
|
767
756
|
}
|
|
768
757
|
];
|
|
769
758
|
}
|
|
770
|
-
getTitle(
|
|
771
|
-
if (
|
|
759
|
+
getTitle(s) {
|
|
760
|
+
if (s)
|
|
772
761
|
return {
|
|
773
762
|
text: this.data.titleText,
|
|
774
763
|
fill: this.themeConfig.quadrantTitleFill,
|
|
@@ -781,97 +770,97 @@ class Mt {
|
|
|
781
770
|
};
|
|
782
771
|
}
|
|
783
772
|
build() {
|
|
784
|
-
const
|
|
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);
|
|
785
774
|
return {
|
|
786
775
|
points: this.getQuadrantPoints(d),
|
|
787
776
|
quadrants: this.getQuadrants(d),
|
|
788
|
-
axisLabels: this.getAxisLabels(f,
|
|
777
|
+
axisLabels: this.getAxisLabels(f, s, h, d),
|
|
789
778
|
borderLines: this.getBorders(d),
|
|
790
779
|
title: this.getTitle(x)
|
|
791
780
|
};
|
|
792
781
|
}
|
|
793
782
|
}
|
|
794
|
-
const
|
|
783
|
+
const Wt = yt();
|
|
795
784
|
function G(e) {
|
|
796
|
-
return
|
|
785
|
+
return wt(e.trim(), Wt);
|
|
797
786
|
}
|
|
798
|
-
const w = new
|
|
799
|
-
function
|
|
787
|
+
const w = new Vt();
|
|
788
|
+
function Nt(e) {
|
|
800
789
|
w.setData({ quadrant1Text: G(e.text) });
|
|
801
790
|
}
|
|
802
|
-
function
|
|
791
|
+
function Ut(e) {
|
|
803
792
|
w.setData({ quadrant2Text: G(e.text) });
|
|
804
793
|
}
|
|
805
|
-
function
|
|
794
|
+
function Qt(e) {
|
|
806
795
|
w.setData({ quadrant3Text: G(e.text) });
|
|
807
796
|
}
|
|
808
|
-
function
|
|
797
|
+
function Ht(e) {
|
|
809
798
|
w.setData({ quadrant4Text: G(e.text) });
|
|
810
799
|
}
|
|
811
|
-
function
|
|
800
|
+
function Mt(e) {
|
|
812
801
|
w.setData({ xAxisLeftText: G(e.text) });
|
|
813
802
|
}
|
|
814
|
-
function
|
|
803
|
+
function Xt(e) {
|
|
815
804
|
w.setData({ xAxisRightText: G(e.text) });
|
|
816
805
|
}
|
|
817
|
-
function
|
|
806
|
+
function Ot(e) {
|
|
818
807
|
w.setData({ yAxisTopText: G(e.text) });
|
|
819
808
|
}
|
|
820
|
-
function
|
|
809
|
+
function Yt(e) {
|
|
821
810
|
w.setData({ yAxisBottomText: G(e.text) });
|
|
822
811
|
}
|
|
823
|
-
function
|
|
824
|
-
w.addPoints([{ x:
|
|
812
|
+
function $t(e, s, h) {
|
|
813
|
+
w.addPoints([{ x: s, y: h, text: G(e.text) }]);
|
|
825
814
|
}
|
|
826
|
-
function
|
|
815
|
+
function jt(e) {
|
|
827
816
|
w.setConfig({ chartWidth: e });
|
|
828
817
|
}
|
|
829
|
-
function
|
|
818
|
+
function Gt(e) {
|
|
830
819
|
w.setConfig({ chartHeight: e });
|
|
831
820
|
}
|
|
832
|
-
function
|
|
833
|
-
const e =
|
|
834
|
-
return
|
|
835
|
-
quadrant1Fill:
|
|
836
|
-
quadrant2Fill:
|
|
837
|
-
quadrant3Fill:
|
|
838
|
-
quadrant4Fill:
|
|
839
|
-
quadrant1TextFill:
|
|
840
|
-
quadrant2TextFill:
|
|
841
|
-
quadrant3TextFill:
|
|
842
|
-
quadrant4TextFill:
|
|
843
|
-
quadrantPointFill:
|
|
844
|
-
quadrantPointTextFill:
|
|
845
|
-
quadrantXAxisTextFill:
|
|
846
|
-
quadrantYAxisTextFill:
|
|
847
|
-
quadrantExternalBorderStrokeFill:
|
|
848
|
-
quadrantInternalBorderStrokeFill:
|
|
849
|
-
quadrantTitleFill:
|
|
850
|
-
}), w.setData({ titleText:
|
|
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();
|
|
851
840
|
}
|
|
852
|
-
const
|
|
853
|
-
w.clear(),
|
|
854
|
-
},
|
|
855
|
-
setWidth:
|
|
856
|
-
setHeight:
|
|
857
|
-
setQuadrant1Text:
|
|
858
|
-
setQuadrant2Text:
|
|
859
|
-
setQuadrant3Text:
|
|
860
|
-
setQuadrant4Text:
|
|
861
|
-
setXAxisLeftText:
|
|
862
|
-
setXAxisRightText:
|
|
863
|
-
setYAxisTopText:
|
|
864
|
-
setYAxisBottomText:
|
|
865
|
-
addPoint:
|
|
866
|
-
getQuadrantData:
|
|
867
|
-
clear:
|
|
868
|
-
setAccTitle:
|
|
869
|
-
getAccTitle:
|
|
870
|
-
setDiagramTitle:
|
|
871
|
-
getDiagramTitle:
|
|
872
|
-
getAccDescription:
|
|
873
|
-
setAccDescription:
|
|
874
|
-
},
|
|
841
|
+
const Zt = function() {
|
|
842
|
+
w.clear(), It();
|
|
843
|
+
}, Jt = {
|
|
844
|
+
setWidth: jt,
|
|
845
|
+
setHeight: Gt,
|
|
846
|
+
setQuadrant1Text: Nt,
|
|
847
|
+
setQuadrant2Text: Ut,
|
|
848
|
+
setQuadrant3Text: Qt,
|
|
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: Lt,
|
|
858
|
+
getAccTitle: Ct,
|
|
859
|
+
setDiagramTitle: zt,
|
|
860
|
+
getDiagramTitle: bt,
|
|
861
|
+
getAccDescription: Et,
|
|
862
|
+
setAccDescription: Dt
|
|
863
|
+
}, te = (e, s, h, x) => {
|
|
875
864
|
var f, d, c;
|
|
876
865
|
function g(t) {
|
|
877
866
|
return t === "top" ? "hanging" : "middle";
|
|
@@ -882,34 +871,34 @@ const ne = function() {
|
|
|
882
871
|
function y(t) {
|
|
883
872
|
return `translate(${t.x}, ${t.y}) rotate(${t.rotation || 0})`;
|
|
884
873
|
}
|
|
885
|
-
const p =
|
|
886
|
-
|
|
874
|
+
const p = yt();
|
|
875
|
+
ot.debug(`Rendering quadrant chart
|
|
887
876
|
` + e);
|
|
888
877
|
const B = p.securityLevel;
|
|
889
878
|
let N;
|
|
890
|
-
B === "sandbox" && (N =
|
|
891
|
-
const I = (B === "sandbox" ?
|
|
892
|
-
|
|
893
|
-
const C = x.db.getQuadrantData(),
|
|
894
|
-
C.title && Q.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 &&
|
|
895
|
-
const T =
|
|
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
|
+
Bt(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"), U = b.append("g").attr("class", "labels"), Q = b.append("g").attr("class", "title");
|
|
883
|
+
C.title && Q.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");
|
|
896
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(
|
|
897
886
|
"dominant-baseline",
|
|
898
887
|
(t) => g(t.text.horizontalPos)
|
|
899
888
|
).attr("text-anchor", (t) => i(t.text.verticalPos)).attr("transform", (t) => y(t.text)).text((t) => t.text.text), U.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));
|
|
900
|
-
const _ =
|
|
889
|
+
const _ = nt.selectAll("g.data-point").data(C.points).enter().append("g").attr("class", "data-point");
|
|
901
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(
|
|
902
891
|
"dominant-baseline",
|
|
903
892
|
(t) => g(t.text.horizontalPos)
|
|
904
893
|
).attr("text-anchor", (t) => i(t.text.verticalPos)).attr("transform", (t) => y(t.text));
|
|
905
|
-
},
|
|
906
|
-
draw:
|
|
907
|
-
},
|
|
908
|
-
parser:
|
|
909
|
-
db:
|
|
910
|
-
renderer:
|
|
894
|
+
}, ee = {
|
|
895
|
+
draw: te
|
|
896
|
+
}, se = {
|
|
897
|
+
parser: Rt,
|
|
898
|
+
db: Jt,
|
|
899
|
+
renderer: ee,
|
|
911
900
|
styles: () => ""
|
|
912
901
|
};
|
|
913
902
|
export {
|
|
914
|
-
|
|
903
|
+
se as diagram
|
|
915
904
|
};
|