@layers-app/editor 0.7.16 → 0.7.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -77
- package/dist/index.js +9 -15
- package/dist/layers.94hwidA2.js +198 -0
- package/dist/layers.B4l6ta1Q.js +1 -0
- package/dist/layers.BMrOAD_P.js +1 -0
- package/dist/{layers.CfISeAkt.js → layers.D99OBX9u.js} +86 -88
- package/dist/layers.DOzLBYZr.js +304 -0
- package/dist/layers.YRyXopy_.js +151 -0
- package/dist/layers.usKC_Id5.js +1 -0
- package/dist/layers.zu-IYGYU.js +47463 -0
- package/package.json +1 -1
- package/dist/layers.-fM6L_z3.js +0 -1
- package/dist/layers.0KANPDnB.js +0 -9
- package/dist/layers.1Nv-nANB.js +0 -271
- package/dist/layers.1bdyQGVP.js +0 -8
- package/dist/layers.49H_5LNr.js +0 -41
- package/dist/layers.4HZb3jXk.js +0 -9
- package/dist/layers.4RmaHEsu.js +0 -36
- package/dist/layers.52famHy6.js +0 -1
- package/dist/layers.5WzirB7G.js +0 -960
- package/dist/layers.5bSjIKfg.js +0 -8
- package/dist/layers.7JqFgE4-.js +0 -15
- package/dist/layers.7oLFJZ8l.js +0 -36
- package/dist/layers.7xkZRnuM.js +0 -40
- package/dist/layers.9pNaFvaX.js +0 -1
- package/dist/layers.ABhWEnmQ.js +0 -37
- package/dist/layers.B-8gEV_E.js +0 -373
- package/dist/layers.B-9QQMGw.js +0 -9
- package/dist/layers.B0sBopW9.js +0 -10
- package/dist/layers.B19hGmey.js +0 -1
- package/dist/layers.B1ySJNCM.js +0 -40
- package/dist/layers.B2BhJZ0D.js +0 -42
- package/dist/layers.B2iVWMcm.js +0 -9
- package/dist/layers.B3D4g2HH.js +0 -1
- package/dist/layers.B6Va7v9s.js +0 -207
- package/dist/layers.B7K7JjK6.js +0 -1510
- package/dist/layers.B82wcYq0.js +0 -271
- package/dist/layers.BAU0IeY7.js +0 -1
- package/dist/layers.BAtv1CM7.js +0 -1
- package/dist/layers.BCD7sjs8.js +0 -1
- package/dist/layers.BEUJQJGq.js +0 -35
- package/dist/layers.BGDCJs-p.js +0 -1
- package/dist/layers.BHz2k1im.js +0 -7
- package/dist/layers.BIM8NeWS.js +0 -40
- package/dist/layers.BIbdMSbX.js +0 -772
- package/dist/layers.BIeVwYKL.js +0 -1
- package/dist/layers.BJDrjORS.js +0 -244
- package/dist/layers.BJhjIY5r.js +0 -37
- package/dist/layers.BJmaj5SY.js +0 -39
- package/dist/layers.BKy18lBk.js +0 -10
- package/dist/layers.BL3wEq7M.js +0 -32
- package/dist/layers.BLKD1Tiy.js +0 -39
- package/dist/layers.BLd2spTm.js +0 -1
- package/dist/layers.BNR6f37h.js +0 -160
- package/dist/layers.BNkwxNgt.js +0 -39
- package/dist/layers.BOMC5c1j.js +0 -2
- package/dist/layers.BQL01Vq6.js +0 -4
- package/dist/layers.BQm21WlP.js +0 -4
- package/dist/layers.BRGRJfuK.js +0 -41
- package/dist/layers.BSTBZrFn.js +0 -1
- package/dist/layers.BXDV2XaW.js +0 -425
- package/dist/layers.B_Vwa8Hx.js +0 -42
- package/dist/layers.B_jUVHTe.js +0 -32
- package/dist/layers.BakV9gnD.js +0 -42
- package/dist/layers.BbCfEXyj.js +0 -55
- package/dist/layers.BbbyE_Pc.js +0 -9
- package/dist/layers.Bd6ptC9U.js +0 -84
- package/dist/layers.BeCuix4V.js +0 -10
- package/dist/layers.BeFEsW5q.js +0 -1
- package/dist/layers.BfVGjstp.js +0 -42
- package/dist/layers.BgEbqAdb.js +0 -4
- package/dist/layers.Bk40urId.js +0 -1126
- package/dist/layers.Blc4R7F2.js +0 -41
- package/dist/layers.Bny7BWT9.js +0 -41
- package/dist/layers.BpilXLfW.js +0 -6
- package/dist/layers.Bpnbfq-r.js +0 -1
- package/dist/layers.BrbcqGdA.js +0 -48149
- package/dist/layers.BvGgfImM.js +0 -52
- package/dist/layers.BywviGiP.js +0 -11
- package/dist/layers.C-_ynqvr.js +0 -1
- package/dist/layers.C1actZbK.js +0 -11
- package/dist/layers.C3DRx9On.js +0 -10
- package/dist/layers.C3SAUwXb.js +0 -8
- package/dist/layers.C3yLkCio.js +0 -7
- package/dist/layers.C6fD5O8g.js +0 -6
- package/dist/layers.C8YD8pwl.js +0 -11
- package/dist/layers.C8_lu5UH.js +0 -23
- package/dist/layers.C92R-ENv.js +0 -39
- package/dist/layers.C9QCrDzm.js +0 -1
- package/dist/layers.C9_vX7IO.js +0 -139
- package/dist/layers.CA_fw2Dw.js +0 -32
- package/dist/layers.CB61rfHO.js +0 -1225
- package/dist/layers.CCur6VEj.js +0 -65
- package/dist/layers.CFLfRAu0.js +0 -14
- package/dist/layers.CFcHk-z5.js +0 -1268
- package/dist/layers.CFmNZSAJ.js +0 -1
- package/dist/layers.CGajZ1Yz.js +0 -42
- package/dist/layers.CHZsXQcr.js +0 -1
- package/dist/layers.CHhFVTiW.js +0 -10
- package/dist/layers.CJ1YRhUh.js +0 -6
- package/dist/layers.CJtE2LxP.js +0 -2482
- package/dist/layers.CJyO2xrs.js +0 -5
- package/dist/layers.CMyb9_FE.js +0 -40
- package/dist/layers.COjckA33.js +0 -10
- package/dist/layers.CPJSmpbw.js +0 -1
- package/dist/layers.CQvaw3yb.js +0 -5
- package/dist/layers.CRht5Nqq.js +0 -907
- package/dist/layers.CSXAHvGG.js +0 -33
- package/dist/layers.CTaitOnb.js +0 -11
- package/dist/layers.CV8UgwCq.js +0 -198
- package/dist/layers.CVJOismf.js +0 -6
- package/dist/layers.CXWtqfTe.js +0 -794
- package/dist/layers.CYPfnKfS.js +0 -96
- package/dist/layers.CYdP1IhC.js +0 -38
- package/dist/layers.CYneLciB.js +0 -1286
- package/dist/layers.CZLVHOh5.js +0 -8
- package/dist/layers.C_IvrzZ3.js +0 -7
- package/dist/layers.CbBTbZIx.js +0 -5
- package/dist/layers.CcP6Z-gZ.js +0 -118
- package/dist/layers.CcTyCqqv.js +0 -3
- package/dist/layers.Cd3kGFCJ.js +0 -32
- package/dist/layers.Ce7-wBOK.js +0 -11
- package/dist/layers.Cf5sVqJX.js +0 -39
- package/dist/layers.Cg3Hqyp6.js +0 -35
- package/dist/layers.Cg60w1Fn.js +0 -806
- package/dist/layers.Chd1p2rt.js +0 -26645
- package/dist/layers.CiTNX3uh.js +0 -32
- package/dist/layers.CkwenT1M.js +0 -8
- package/dist/layers.CnN8JfiX.js +0 -805
- package/dist/layers.Coh6z7rV.js +0 -8
- package/dist/layers.CpJSdiMb.js +0 -1
- package/dist/layers.CqVTtuYm.js +0 -6
- package/dist/layers.Cryqj610.js +0 -2238
- package/dist/layers.Cs-83js7.js +0 -1089
- package/dist/layers.CsivQuv1.js +0 -9
- package/dist/layers.Cud-IArB.js +0 -8
- package/dist/layers.CwL02t3J.js +0 -41
- package/dist/layers.CwsNJfmi.js +0 -10
- package/dist/layers.CxIhyFb7.js +0 -2966
- package/dist/layers.Cxh-oez0.js +0 -437
- package/dist/layers.Cyzu9PKQ.js +0 -1
- package/dist/layers.D-uio-rN.js +0 -423
- package/dist/layers.D0RX234F.js +0 -84
- package/dist/layers.D0zn4_Mx.js +0 -1
- package/dist/layers.D176Ljko.js +0 -116
- package/dist/layers.D2cVaX5z.js +0 -205
- package/dist/layers.D4Bw_BrO.js +0 -1
- package/dist/layers.D4T8fTcj.js +0 -1223
- package/dist/layers.D7jGxypv.js +0 -8
- package/dist/layers.D8fFj0P_.js +0 -34
- package/dist/layers.D9N3lSue.js +0 -7
- package/dist/layers.DAmxkO9p.js +0 -41
- package/dist/layers.DBwG7x-W.js +0 -8
- package/dist/layers.DDFbkCJT.js +0 -39
- package/dist/layers.DDnI7-13.js +0 -41
- package/dist/layers.DE6w34F3.js +0 -1
- package/dist/layers.DEaAvR_W.js +0 -189
- package/dist/layers.DEtMl_i3.js +0 -1034
- package/dist/layers.DHNIckw6.js +0 -39
- package/dist/layers.DHVcgZzL.js +0 -257
- package/dist/layers.DHcbExrH.js +0 -35
- package/dist/layers.DIpDvY-A.js +0 -40
- package/dist/layers.DJM_OF_R.js +0 -32
- package/dist/layers.DLJtS0JJ.js +0 -7
- package/dist/layers.DLwuMfdd.js +0 -84
- package/dist/layers.DMkBISW1.js +0 -1
- package/dist/layers.DN9HoVxI.js +0 -18
- package/dist/layers.DNJtYtN1.js +0 -9
- package/dist/layers.DOrgOHBr.js +0 -1
- package/dist/layers.DUlTmlus.js +0 -213
- package/dist/layers.DUutOP8h.js +0 -37
- package/dist/layers.DVWaIKgr.js +0 -21941
- package/dist/layers.D_WwW4Fn.js +0 -1
- package/dist/layers.D_fPGQ6i.js +0 -139
- package/dist/layers.D_faABvp.js +0 -21620
- package/dist/layers.DaIprEGs.js +0 -39
- package/dist/layers.Db0NyGA-.js +0 -1619
- package/dist/layers.DbaKVP5e.js +0 -1
- package/dist/layers.DdMy9cRx.js +0 -1088
- package/dist/layers.De35CioU.js +0 -44
- package/dist/layers.DgO3Q5mW.js +0 -4
- package/dist/layers.Di-PcJK6.js +0 -6
- package/dist/layers.DjCXWv2m.js +0 -38
- package/dist/layers.DjUOC4st.js +0 -16
- package/dist/layers.Dk2S8boy.js +0 -33
- package/dist/layers.DkBjWcDH.js +0 -504
- package/dist/layers.DnRaD217.js +0 -8583
- package/dist/layers.DnvnGxUC.js +0 -10
- package/dist/layers.DrarpmaN.js +0 -323
- package/dist/layers.DukGouVT.js +0 -39
- package/dist/layers.DvYYNhUp.js +0 -1
- package/dist/layers.Dv_6xN7s.js +0 -2
- package/dist/layers.DwWUZK6s.js +0 -129
- package/dist/layers.DwzO2zcv.js +0 -40
- package/dist/layers.DxA6ocdw.js +0 -70
- package/dist/layers.Dy1naDTQ.js +0 -14
- package/dist/layers.DzD-lWXV.js +0 -934
- package/dist/layers.E0TLXdrR.js +0 -40
- package/dist/layers.EcqLW9Mh.js +0 -1
- package/dist/layers.F4d4ILBH.js +0 -796
- package/dist/layers.G3enfHRT.js +0 -13
- package/dist/layers.HFONz6O9.js +0 -61
- package/dist/layers.IUqwmZRd.js +0 -122
- package/dist/layers.IbJq0D6U.js +0 -10
- package/dist/layers.Ic3KgoPg.js +0 -9
- package/dist/layers.JNgL8WWu.js +0 -10
- package/dist/layers.JWCLFILJ.js +0 -1
- package/dist/layers.KT-QFgdb.js +0 -7
- package/dist/layers.LCfVvo3T.js +0 -7
- package/dist/layers.LR-nMBU_.js +0 -1583
- package/dist/layers.Qt2qr0-t.js +0 -76
- package/dist/layers.R8mPlCA0.js +0 -261
- package/dist/layers.SCsPWeXb.js +0 -7
- package/dist/layers.U4NCf2-l.js +0 -70
- package/dist/layers.UewvnK33.js +0 -6
- package/dist/layers.VfVZmEbK.js +0 -8
- package/dist/layers.Vh-KvhZg.js +0 -1
- package/dist/layers.Y3D9xjCC.js +0 -9
- package/dist/layers.YT6D6D2x.js +0 -36
- package/dist/layers._y8hExIw.js +0 -223
- package/dist/layers.a8-4vDzD.js +0 -22
- package/dist/layers.aGzHUJ1W.js +0 -7
- package/dist/layers.b0h5ZBmD.js +0 -61
- package/dist/layers.b9B2NY7n.js +0 -11690
- package/dist/layers.ck9pUJ0W.js +0 -51
- package/dist/layers.d3HoUueQ.js +0 -2
- package/dist/layers.dWB4bggP.js +0 -1
- package/dist/layers.dh8xLSwh.js +0 -40
- package/dist/layers.eT_ZPmHS.js +0 -1
- package/dist/layers.fumrrA0i.js +0 -295
- package/dist/layers.gVfRcFrJ.js +0 -5
- package/dist/layers.js7-Kn9p.js +0 -36
- package/dist/layers.kW7XFPN_.js +0 -5
- package/dist/layers.lCpg7dOn.js +0 -21
- package/dist/layers.mobYTQXI.js +0 -1
- package/dist/layers.mvotlTNZ.js +0 -40
- package/dist/layers.n1dibO8I.js +0 -8
- package/dist/layers.nRPZ1e3g.js +0 -1
- package/dist/layers.o2u1uDM3.js +0 -1
- package/dist/layers.oJ31-KOl.js +0 -6
- package/dist/layers.ojcNGNgi.js +0 -1
- package/dist/layers.otxU0wtq.js +0 -40
- package/dist/layers.rE9xnPLC.js +0 -1
- package/dist/layers.s0KLXd5N.js +0 -41
- package/dist/layers.sqH5TpK8.js +0 -1
- package/dist/layers.t_MFWlU6.js +0 -9
- package/dist/layers.xrt74v23.js +0 -38
- package/dist/layers.zNb0110W.js +0 -37
package/dist/layers.DkBjWcDH.js
DELETED
|
@@ -1,504 +0,0 @@
|
|
|
1
|
-
import { H as J, a as rt, s as at, b as lt, c as ot, n as ct, o as ht, l as et, g as it, a7 as ut, A as yt, T as ft, e as pt, i as gt, q as dt, P as mt } from "./layers.DnRaD217.js";
|
|
2
|
-
import "./layers.D_faABvp.js";
|
|
3
|
-
import "lodash-es/memoize.js";
|
|
4
|
-
import "lodash-es/merge.js";
|
|
5
|
-
import "lodash-es/isEmpty.js";
|
|
6
|
-
import { a as tt } from "./layers.D0RX234F.js";
|
|
7
|
-
import { o as _t } from "./layers.b0h5ZBmD.js";
|
|
8
|
-
import { a as xt } from "./layers.CqVTtuYm.js";
|
|
9
|
-
import { c as F } from "./layers.DLwuMfdd.js";
|
|
10
|
-
function kt(e, u) {
|
|
11
|
-
return u < e ? -1 : u > e ? 1 : u >= e ? 0 : NaN;
|
|
12
|
-
}
|
|
13
|
-
function vt(e) {
|
|
14
|
-
return e;
|
|
15
|
-
}
|
|
16
|
-
function bt() {
|
|
17
|
-
var e = vt, u = kt, $ = null, p = F(0), g = F(J), A = F(0);
|
|
18
|
-
function y(a) {
|
|
19
|
-
var l, d = (a = xt(a)).length, k, I, T = 0, m = new Array(d), v = new Array(d), c = +p.apply(this, arguments), E = Math.min(J, Math.max(-J, g.apply(this, arguments) - c)), O, w = Math.min(Math.abs(E) / d, A.apply(this, arguments)), b = w * (E < 0 ? -1 : 1), t;
|
|
20
|
-
for (l = 0; l < d; ++l)
|
|
21
|
-
(t = v[m[l] = l] = +e(a[l], l, a)) > 0 && (T += t);
|
|
22
|
-
for (u != null ? m.sort(function(i, n) {
|
|
23
|
-
return u(v[i], v[n]);
|
|
24
|
-
}) : $ != null && m.sort(function(i, n) {
|
|
25
|
-
return $(a[i], a[n]);
|
|
26
|
-
}), l = 0, I = T ? (E - d * b) / T : 0; l < d; ++l, c = O)
|
|
27
|
-
k = m[l], t = v[k], O = c + (t > 0 ? t * I : 0) + b, v[k] = {
|
|
28
|
-
data: a[k],
|
|
29
|
-
index: l,
|
|
30
|
-
value: t,
|
|
31
|
-
startAngle: c,
|
|
32
|
-
endAngle: O,
|
|
33
|
-
padAngle: w
|
|
34
|
-
};
|
|
35
|
-
return v;
|
|
36
|
-
}
|
|
37
|
-
return y.value = function(a) {
|
|
38
|
-
return arguments.length ? (e = typeof a == "function" ? a : F(+a), y) : e;
|
|
39
|
-
}, y.sortValues = function(a) {
|
|
40
|
-
return arguments.length ? (u = a, $ = null, y) : u;
|
|
41
|
-
}, y.sort = function(a) {
|
|
42
|
-
return arguments.length ? ($ = a, u = null, y) : $;
|
|
43
|
-
}, y.startAngle = function(a) {
|
|
44
|
-
return arguments.length ? (p = typeof a == "function" ? a : F(+a), y) : p;
|
|
45
|
-
}, y.endAngle = function(a) {
|
|
46
|
-
return arguments.length ? (g = typeof a == "function" ? a : F(+a), y) : g;
|
|
47
|
-
}, y.padAngle = function(a) {
|
|
48
|
-
return arguments.length ? (A = typeof a == "function" ? a : F(+a), y) : A;
|
|
49
|
-
}, y;
|
|
50
|
-
}
|
|
51
|
-
var K = (function() {
|
|
52
|
-
var e = function(b, t, i, n) {
|
|
53
|
-
for (i = i || {}, n = b.length; n--; i[b[n]] = t)
|
|
54
|
-
;
|
|
55
|
-
return i;
|
|
56
|
-
}, u = [1, 3], $ = [1, 4], p = [1, 5], g = [1, 6], A = [1, 10, 12, 14, 16, 18, 19, 20, 21, 22], y = [2, 4], a = [1, 5, 10, 12, 14, 16, 18, 19, 20, 21, 22], l = [20, 21, 22], d = [2, 7], k = [1, 12], I = [1, 13], T = [1, 14], m = [1, 15], v = [1, 16], c = [1, 17], E = {
|
|
57
|
-
trace: function() {
|
|
58
|
-
},
|
|
59
|
-
yy: {},
|
|
60
|
-
symbols_: { error: 2, start: 3, eol: 4, PIE: 5, document: 6, showData: 7, line: 8, statement: 9, txt: 10, value: 11, title: 12, title_value: 13, acc_title: 14, acc_title_value: 15, acc_descr: 16, acc_descr_value: 17, acc_descr_multiline_value: 18, section: 19, NEWLINE: 20, ";": 21, EOF: 22, $accept: 0, $end: 1 },
|
|
61
|
-
terminals_: { 2: "error", 5: "PIE", 7: "showData", 10: "txt", 11: "value", 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: "NEWLINE", 21: ";", 22: "EOF" },
|
|
62
|
-
productions_: [0, [3, 2], [3, 2], [3, 3], [6, 0], [6, 2], [8, 2], [9, 0], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [4, 1], [4, 1], [4, 1]],
|
|
63
|
-
performAction: function(t, i, n, r, o, s, P) {
|
|
64
|
-
var _ = s.length - 1;
|
|
65
|
-
switch (o) {
|
|
66
|
-
case 3:
|
|
67
|
-
r.setShowData(!0);
|
|
68
|
-
break;
|
|
69
|
-
case 6:
|
|
70
|
-
this.$ = s[_ - 1];
|
|
71
|
-
break;
|
|
72
|
-
case 8:
|
|
73
|
-
r.addSection(s[_ - 1], r.cleanupValue(s[_]));
|
|
74
|
-
break;
|
|
75
|
-
case 9:
|
|
76
|
-
this.$ = s[_].trim(), r.setDiagramTitle(this.$);
|
|
77
|
-
break;
|
|
78
|
-
case 10:
|
|
79
|
-
this.$ = s[_].trim(), r.setAccTitle(this.$);
|
|
80
|
-
break;
|
|
81
|
-
case 11:
|
|
82
|
-
case 12:
|
|
83
|
-
this.$ = s[_].trim(), r.setAccDescription(this.$);
|
|
84
|
-
break;
|
|
85
|
-
case 13:
|
|
86
|
-
r.addSection(s[_].substr(8)), this.$ = s[_].substr(8);
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
table: [{ 3: 1, 4: 2, 5: u, 20: $, 21: p, 22: g }, { 1: [3] }, { 3: 7, 4: 2, 5: u, 20: $, 21: p, 22: g }, e(A, y, { 6: 8, 7: [1, 9] }), e(a, [2, 14]), e(a, [2, 15]), e(a, [2, 16]), { 1: [2, 1] }, e(l, d, { 8: 10, 9: 11, 1: [2, 2], 10: k, 12: I, 14: T, 16: m, 18: v, 19: c }), e(A, y, { 6: 18 }), e(A, [2, 5]), { 4: 19, 20: $, 21: p, 22: g }, { 11: [1, 20] }, { 13: [1, 21] }, { 15: [1, 22] }, { 17: [1, 23] }, e(l, [2, 12]), e(l, [2, 13]), e(l, d, { 8: 10, 9: 11, 1: [2, 3], 10: k, 12: I, 14: T, 16: m, 18: v, 19: c }), e(A, [2, 6]), e(l, [2, 8]), e(l, [2, 9]), e(l, [2, 10]), e(l, [2, 11])],
|
|
91
|
-
defaultActions: { 7: [2, 1] },
|
|
92
|
-
parseError: function(t, i) {
|
|
93
|
-
if (i.recoverable)
|
|
94
|
-
this.trace(t);
|
|
95
|
-
else {
|
|
96
|
-
var n = new Error(t);
|
|
97
|
-
throw n.hash = i, n;
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
parse: function(t) {
|
|
101
|
-
var i = this, n = [0], r = [], o = [null], s = [], P = this.table, _ = "", f = 0, V = 0, R = 2, M = 1, B = s.slice.call(arguments, 1), h = Object.create(this.lexer), N = { yy: {} };
|
|
102
|
-
for (var Y in this.yy)
|
|
103
|
-
Object.prototype.hasOwnProperty.call(this.yy, Y) && (N.yy[Y] = this.yy[Y]);
|
|
104
|
-
h.setInput(t, N.yy), N.yy.lexer = h, N.yy.parser = this, typeof h.yylloc > "u" && (h.yylloc = {});
|
|
105
|
-
var q = h.yylloc;
|
|
106
|
-
s.push(q);
|
|
107
|
-
var nt = h.options && h.options.ranges;
|
|
108
|
-
typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
109
|
-
function st() {
|
|
110
|
-
var C;
|
|
111
|
-
return C = r.pop() || h.lex() || M, typeof C != "number" && (C instanceof Array && (r = C, C = r.pop()), C = i.symbols_[C] || C), C;
|
|
112
|
-
}
|
|
113
|
-
for (var x, L, S, H, z = {}, j, D, X, W; ; ) {
|
|
114
|
-
if (L = n[n.length - 1], this.defaultActions[L] ? S = this.defaultActions[L] : ((x === null || typeof x > "u") && (x = st()), S = P[L] && P[L][x]), typeof S > "u" || !S.length || !S[0]) {
|
|
115
|
-
var Z = "";
|
|
116
|
-
W = [];
|
|
117
|
-
for (j in P[L])
|
|
118
|
-
this.terminals_[j] && j > R && W.push("'" + this.terminals_[j] + "'");
|
|
119
|
-
h.showPosition ? Z = "Parse error on line " + (f + 1) + `:
|
|
120
|
-
` + h.showPosition() + `
|
|
121
|
-
Expecting ` + W.join(", ") + ", got '" + (this.terminals_[x] || x) + "'" : Z = "Parse error on line " + (f + 1) + ": Unexpected " + (x == M ? "end of input" : "'" + (this.terminals_[x] || x) + "'"), this.parseError(Z, {
|
|
122
|
-
text: h.match,
|
|
123
|
-
token: this.terminals_[x] || x,
|
|
124
|
-
line: h.yylineno,
|
|
125
|
-
loc: q,
|
|
126
|
-
expected: W
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
if (S[0] instanceof Array && S.length > 1)
|
|
130
|
-
throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + x);
|
|
131
|
-
switch (S[0]) {
|
|
132
|
-
case 1:
|
|
133
|
-
n.push(x), o.push(h.yytext), s.push(h.yylloc), n.push(S[1]), x = null, V = h.yyleng, _ = h.yytext, f = h.yylineno, q = h.yylloc;
|
|
134
|
-
break;
|
|
135
|
-
case 2:
|
|
136
|
-
if (D = this.productions_[S[1]][1], z.$ = o[o.length - D], z._$ = {
|
|
137
|
-
first_line: s[s.length - (D || 1)].first_line,
|
|
138
|
-
last_line: s[s.length - 1].last_line,
|
|
139
|
-
first_column: s[s.length - (D || 1)].first_column,
|
|
140
|
-
last_column: s[s.length - 1].last_column
|
|
141
|
-
}, nt && (z._$.range = [
|
|
142
|
-
s[s.length - (D || 1)].range[0],
|
|
143
|
-
s[s.length - 1].range[1]
|
|
144
|
-
]), H = this.performAction.apply(z, [
|
|
145
|
-
_,
|
|
146
|
-
V,
|
|
147
|
-
f,
|
|
148
|
-
N.yy,
|
|
149
|
-
S[1],
|
|
150
|
-
o,
|
|
151
|
-
s
|
|
152
|
-
].concat(B)), typeof H < "u")
|
|
153
|
-
return H;
|
|
154
|
-
D && (n = n.slice(0, -1 * D * 2), o = o.slice(0, -1 * D), s = s.slice(0, -1 * D)), n.push(this.productions_[S[1]][0]), o.push(z.$), s.push(z._$), X = P[n[n.length - 2]][n[n.length - 1]], n.push(X);
|
|
155
|
-
break;
|
|
156
|
-
case 3:
|
|
157
|
-
return !0;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
return !0;
|
|
161
|
-
}
|
|
162
|
-
}, O = /* @__PURE__ */ (function() {
|
|
163
|
-
var b = {
|
|
164
|
-
EOF: 1,
|
|
165
|
-
parseError: function(i, n) {
|
|
166
|
-
if (this.yy.parser)
|
|
167
|
-
this.yy.parser.parseError(i, n);
|
|
168
|
-
else
|
|
169
|
-
throw new Error(i);
|
|
170
|
-
},
|
|
171
|
-
// resets the lexer, sets new input
|
|
172
|
-
setInput: function(t, i) {
|
|
173
|
-
return this.yy = i || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
174
|
-
first_line: 1,
|
|
175
|
-
first_column: 0,
|
|
176
|
-
last_line: 1,
|
|
177
|
-
last_column: 0
|
|
178
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
179
|
-
},
|
|
180
|
-
// consumes and returns one char from the input
|
|
181
|
-
input: function() {
|
|
182
|
-
var t = this._input[0];
|
|
183
|
-
this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
|
|
184
|
-
var i = t.match(/(?:\r\n?|\n).*/g);
|
|
185
|
-
return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
|
|
186
|
-
},
|
|
187
|
-
// unshifts one char (or a string) into the input
|
|
188
|
-
unput: function(t) {
|
|
189
|
-
var i = t.length, n = t.split(/(?:\r\n?|\n)/g);
|
|
190
|
-
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
191
|
-
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
192
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
|
193
|
-
var o = this.yylloc.range;
|
|
194
|
-
return this.yylloc = {
|
|
195
|
-
first_line: this.yylloc.first_line,
|
|
196
|
-
last_line: this.yylineno + 1,
|
|
197
|
-
first_column: this.yylloc.first_column,
|
|
198
|
-
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - i
|
|
199
|
-
}, this.options.ranges && (this.yylloc.range = [o[0], o[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
|
|
200
|
-
},
|
|
201
|
-
// When called from action, caches matched text and appends it on next action
|
|
202
|
-
more: function() {
|
|
203
|
-
return this._more = !0, this;
|
|
204
|
-
},
|
|
205
|
-
// 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.
|
|
206
|
-
reject: function() {
|
|
207
|
-
if (this.options.backtrack_lexer)
|
|
208
|
-
this._backtrack = !0;
|
|
209
|
-
else
|
|
210
|
-
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).
|
|
211
|
-
` + this.showPosition(), {
|
|
212
|
-
text: "",
|
|
213
|
-
token: null,
|
|
214
|
-
line: this.yylineno
|
|
215
|
-
});
|
|
216
|
-
return this;
|
|
217
|
-
},
|
|
218
|
-
// retain first n characters of the match
|
|
219
|
-
less: function(t) {
|
|
220
|
-
this.unput(this.match.slice(t));
|
|
221
|
-
},
|
|
222
|
-
// displays already matched input, i.e. for error messages
|
|
223
|
-
pastInput: function() {
|
|
224
|
-
var t = this.matched.substr(0, this.matched.length - this.match.length);
|
|
225
|
-
return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
|
|
226
|
-
},
|
|
227
|
-
// displays upcoming input, i.e. for error messages
|
|
228
|
-
upcomingInput: function() {
|
|
229
|
-
var t = this.match;
|
|
230
|
-
return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
231
|
-
},
|
|
232
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
233
|
-
showPosition: function() {
|
|
234
|
-
var t = this.pastInput(), i = new Array(t.length + 1).join("-");
|
|
235
|
-
return t + this.upcomingInput() + `
|
|
236
|
-
` + i + "^";
|
|
237
|
-
},
|
|
238
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
239
|
-
test_match: function(t, i) {
|
|
240
|
-
var n, r, o;
|
|
241
|
-
if (this.options.backtrack_lexer && (o = {
|
|
242
|
-
yylineno: this.yylineno,
|
|
243
|
-
yylloc: {
|
|
244
|
-
first_line: this.yylloc.first_line,
|
|
245
|
-
last_line: this.last_line,
|
|
246
|
-
first_column: this.yylloc.first_column,
|
|
247
|
-
last_column: this.yylloc.last_column
|
|
248
|
-
},
|
|
249
|
-
yytext: this.yytext,
|
|
250
|
-
match: this.match,
|
|
251
|
-
matches: this.matches,
|
|
252
|
-
matched: this.matched,
|
|
253
|
-
yyleng: this.yyleng,
|
|
254
|
-
offset: this.offset,
|
|
255
|
-
_more: this._more,
|
|
256
|
-
_input: this._input,
|
|
257
|
-
yy: this.yy,
|
|
258
|
-
conditionStack: this.conditionStack.slice(0),
|
|
259
|
-
done: this.done
|
|
260
|
-
}, this.options.ranges && (o.yylloc.range = this.yylloc.range.slice(0))), r = t[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
|
261
|
-
first_line: this.yylloc.last_line,
|
|
262
|
-
last_line: this.yylineno + 1,
|
|
263
|
-
first_column: this.yylloc.last_column,
|
|
264
|
-
last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
|
265
|
-
}, this.yytext += t[0], this.match += t[0], this.matches = t, 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(t[0].length), this.matched += t[0], n = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
|
|
266
|
-
return n;
|
|
267
|
-
if (this._backtrack) {
|
|
268
|
-
for (var s in o)
|
|
269
|
-
this[s] = o[s];
|
|
270
|
-
return !1;
|
|
271
|
-
}
|
|
272
|
-
return !1;
|
|
273
|
-
},
|
|
274
|
-
// return next match in input
|
|
275
|
-
next: function() {
|
|
276
|
-
if (this.done)
|
|
277
|
-
return this.EOF;
|
|
278
|
-
this._input || (this.done = !0);
|
|
279
|
-
var t, i, n, r;
|
|
280
|
-
this._more || (this.yytext = "", this.match = "");
|
|
281
|
-
for (var o = this._currentRules(), s = 0; s < o.length; s++)
|
|
282
|
-
if (n = this._input.match(this.rules[o[s]]), n && (!i || n[0].length > i[0].length)) {
|
|
283
|
-
if (i = n, r = s, this.options.backtrack_lexer) {
|
|
284
|
-
if (t = this.test_match(n, o[s]), t !== !1)
|
|
285
|
-
return t;
|
|
286
|
-
if (this._backtrack) {
|
|
287
|
-
i = !1;
|
|
288
|
-
continue;
|
|
289
|
-
} else
|
|
290
|
-
return !1;
|
|
291
|
-
} else if (!this.options.flex)
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
return i ? (t = this.test_match(i, o[r]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
295
|
-
` + this.showPosition(), {
|
|
296
|
-
text: "",
|
|
297
|
-
token: null,
|
|
298
|
-
line: this.yylineno
|
|
299
|
-
});
|
|
300
|
-
},
|
|
301
|
-
// return next match that has a token
|
|
302
|
-
lex: function() {
|
|
303
|
-
var i = this.next();
|
|
304
|
-
return i || this.lex();
|
|
305
|
-
},
|
|
306
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
307
|
-
begin: function(i) {
|
|
308
|
-
this.conditionStack.push(i);
|
|
309
|
-
},
|
|
310
|
-
// pop the previously active lexer condition state off the condition stack
|
|
311
|
-
popState: function() {
|
|
312
|
-
var i = this.conditionStack.length - 1;
|
|
313
|
-
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
314
|
-
},
|
|
315
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
316
|
-
_currentRules: function() {
|
|
317
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
318
|
-
},
|
|
319
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
320
|
-
topState: function(i) {
|
|
321
|
-
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
322
|
-
},
|
|
323
|
-
// alias for begin(condition)
|
|
324
|
-
pushState: function(i) {
|
|
325
|
-
this.begin(i);
|
|
326
|
-
},
|
|
327
|
-
// return the number of states currently on the stack
|
|
328
|
-
stateStackSize: function() {
|
|
329
|
-
return this.conditionStack.length;
|
|
330
|
-
},
|
|
331
|
-
options: { "case-insensitive": !0 },
|
|
332
|
-
performAction: function(i, n, r, o) {
|
|
333
|
-
switch (r) {
|
|
334
|
-
case 0:
|
|
335
|
-
break;
|
|
336
|
-
case 1:
|
|
337
|
-
break;
|
|
338
|
-
case 2:
|
|
339
|
-
return 20;
|
|
340
|
-
case 3:
|
|
341
|
-
break;
|
|
342
|
-
case 4:
|
|
343
|
-
break;
|
|
344
|
-
case 5:
|
|
345
|
-
return this.begin("title"), 12;
|
|
346
|
-
case 6:
|
|
347
|
-
return this.popState(), "title_value";
|
|
348
|
-
case 7:
|
|
349
|
-
return this.begin("acc_title"), 14;
|
|
350
|
-
case 8:
|
|
351
|
-
return this.popState(), "acc_title_value";
|
|
352
|
-
case 9:
|
|
353
|
-
return this.begin("acc_descr"), 16;
|
|
354
|
-
case 10:
|
|
355
|
-
return this.popState(), "acc_descr_value";
|
|
356
|
-
case 11:
|
|
357
|
-
this.begin("acc_descr_multiline");
|
|
358
|
-
break;
|
|
359
|
-
case 12:
|
|
360
|
-
this.popState();
|
|
361
|
-
break;
|
|
362
|
-
case 13:
|
|
363
|
-
return "acc_descr_multiline_value";
|
|
364
|
-
case 14:
|
|
365
|
-
this.begin("string");
|
|
366
|
-
break;
|
|
367
|
-
case 15:
|
|
368
|
-
this.popState();
|
|
369
|
-
break;
|
|
370
|
-
case 16:
|
|
371
|
-
return "txt";
|
|
372
|
-
case 17:
|
|
373
|
-
return 5;
|
|
374
|
-
case 18:
|
|
375
|
-
return 7;
|
|
376
|
-
case 19:
|
|
377
|
-
return "value";
|
|
378
|
-
case 20:
|
|
379
|
-
return 22;
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:[\s]+)/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, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:pie\b)/i, /^(?:showData\b)/i, /^(?::[\s]*[\d]+(?:\.[\d]+)?)/i, /^(?:$)/i],
|
|
383
|
-
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [6], inclusive: !1 }, string: { rules: [15, 16], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 7, 9, 11, 14, 17, 18, 19, 20], inclusive: !0 } }
|
|
384
|
-
};
|
|
385
|
-
return b;
|
|
386
|
-
})();
|
|
387
|
-
E.lexer = O;
|
|
388
|
-
function w() {
|
|
389
|
-
this.yy = {};
|
|
390
|
-
}
|
|
391
|
-
return w.prototype = E, E.Parser = w, new w();
|
|
392
|
-
})();
|
|
393
|
-
K.parser = K;
|
|
394
|
-
const St = K, $t = mt.pie, G = {
|
|
395
|
-
sections: {},
|
|
396
|
-
showData: !1
|
|
397
|
-
};
|
|
398
|
-
let U = G.sections, Q = G.showData;
|
|
399
|
-
const At = structuredClone($t), Et = () => structuredClone(At), wt = () => {
|
|
400
|
-
U = structuredClone(G.sections), Q = G.showData, dt();
|
|
401
|
-
}, Tt = (e, u) => {
|
|
402
|
-
e = gt(e, it()), U[e] === void 0 && (U[e] = u, et.debug(`added new section: ${e}, with value: ${u}`));
|
|
403
|
-
}, It = () => U, Dt = (e) => (e.substring(0, 1) === ":" && (e = e.substring(1).trim()), Number(e.trim())), Ct = (e) => {
|
|
404
|
-
Q = e;
|
|
405
|
-
}, Ot = () => Q, Pt = {
|
|
406
|
-
getConfig: Et,
|
|
407
|
-
clear: wt,
|
|
408
|
-
setDiagramTitle: ht,
|
|
409
|
-
getDiagramTitle: ct,
|
|
410
|
-
setAccTitle: ot,
|
|
411
|
-
getAccTitle: lt,
|
|
412
|
-
setAccDescription: at,
|
|
413
|
-
getAccDescription: rt,
|
|
414
|
-
addSection: Tt,
|
|
415
|
-
getSections: It,
|
|
416
|
-
cleanupValue: Dt,
|
|
417
|
-
setShowData: Ct,
|
|
418
|
-
getShowData: Ot
|
|
419
|
-
}, Vt = (e) => `
|
|
420
|
-
.pieCircle{
|
|
421
|
-
stroke: ${e.pieStrokeColor};
|
|
422
|
-
stroke-width : ${e.pieStrokeWidth};
|
|
423
|
-
opacity : ${e.pieOpacity};
|
|
424
|
-
}
|
|
425
|
-
.pieOuterCircle{
|
|
426
|
-
stroke: ${e.pieOuterStrokeColor};
|
|
427
|
-
stroke-width: ${e.pieOuterStrokeWidth};
|
|
428
|
-
fill: none;
|
|
429
|
-
}
|
|
430
|
-
.pieTitleText {
|
|
431
|
-
text-anchor: middle;
|
|
432
|
-
font-size: ${e.pieTitleTextSize};
|
|
433
|
-
fill: ${e.pieTitleTextColor};
|
|
434
|
-
font-family: ${e.fontFamily};
|
|
435
|
-
}
|
|
436
|
-
.slice {
|
|
437
|
-
font-family: ${e.fontFamily};
|
|
438
|
-
fill: ${e.pieSectionTextColor};
|
|
439
|
-
font-size:${e.pieSectionTextSize};
|
|
440
|
-
// fill: white;
|
|
441
|
-
}
|
|
442
|
-
.legend text {
|
|
443
|
-
fill: ${e.pieLegendTextColor};
|
|
444
|
-
font-family: ${e.fontFamily};
|
|
445
|
-
font-size: ${e.pieLegendTextSize};
|
|
446
|
-
}
|
|
447
|
-
`, Nt = Vt, Lt = (e) => {
|
|
448
|
-
const u = Object.entries(e).map((p) => ({
|
|
449
|
-
label: p[0],
|
|
450
|
-
value: p[1]
|
|
451
|
-
})).sort((p, g) => g.value - p.value);
|
|
452
|
-
return bt().value(
|
|
453
|
-
(p) => p.value
|
|
454
|
-
)(u);
|
|
455
|
-
}, Ft = (e, u, $, p) => {
|
|
456
|
-
et.debug(`rendering pie chart
|
|
457
|
-
` + e);
|
|
458
|
-
const g = p.db, A = it(), y = ut(g.getConfig(), A.pie), a = 40, l = 18, d = 4, k = 450, I = k, T = yt(u), m = T.append("g"), v = g.getSections();
|
|
459
|
-
m.attr("transform", "translate(" + I / 2 + "," + k / 2 + ")");
|
|
460
|
-
const { themeVariables: c } = A;
|
|
461
|
-
let [E] = ft(c.pieOuterStrokeWidth);
|
|
462
|
-
E ?? (E = 2);
|
|
463
|
-
const O = y.textPosition, w = Math.min(I, k) / 2 - a, b = tt().innerRadius(0).outerRadius(w), t = tt().innerRadius(w * O).outerRadius(w * O);
|
|
464
|
-
m.append("circle").attr("cx", 0).attr("cy", 0).attr("r", w + E / 2).attr("class", "pieOuterCircle");
|
|
465
|
-
const i = Lt(v), n = [
|
|
466
|
-
c.pie1,
|
|
467
|
-
c.pie2,
|
|
468
|
-
c.pie3,
|
|
469
|
-
c.pie4,
|
|
470
|
-
c.pie5,
|
|
471
|
-
c.pie6,
|
|
472
|
-
c.pie7,
|
|
473
|
-
c.pie8,
|
|
474
|
-
c.pie9,
|
|
475
|
-
c.pie10,
|
|
476
|
-
c.pie11,
|
|
477
|
-
c.pie12
|
|
478
|
-
], r = _t(n);
|
|
479
|
-
m.selectAll("mySlices").data(i).enter().append("path").attr("d", b).attr("fill", (f) => r(f.data.label)).attr("class", "pieCircle");
|
|
480
|
-
let o = 0;
|
|
481
|
-
Object.keys(v).forEach((f) => {
|
|
482
|
-
o += v[f];
|
|
483
|
-
}), m.selectAll("mySlices").data(i).enter().append("text").text((f) => (f.data.value / o * 100).toFixed(0) + "%").attr("transform", (f) => "translate(" + t.centroid(f) + ")").style("text-anchor", "middle").attr("class", "slice"), m.append("text").text(g.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText");
|
|
484
|
-
const s = m.selectAll(".legend").data(r.domain()).enter().append("g").attr("class", "legend").attr("transform", (f, V) => {
|
|
485
|
-
const R = l + d, M = R * r.domain().length / 2, B = 12 * l, h = V * R - M;
|
|
486
|
-
return "translate(" + B + "," + h + ")";
|
|
487
|
-
});
|
|
488
|
-
s.append("rect").attr("width", l).attr("height", l).style("fill", r).style("stroke", r), s.data(i).append("text").attr("x", l + d).attr("y", l - d).text((f) => {
|
|
489
|
-
const { label: V, value: R } = f.data;
|
|
490
|
-
return g.getShowData() ? `${V} [${R}]` : V;
|
|
491
|
-
});
|
|
492
|
-
const P = Math.max(
|
|
493
|
-
...s.selectAll("text").nodes().map((f) => (f == null ? void 0 : f.getBoundingClientRect().width) ?? 0)
|
|
494
|
-
), _ = I + a + l + d + P;
|
|
495
|
-
T.attr("viewBox", `0 0 ${_} ${k}`), pt(T, k, _, y.useMaxWidth);
|
|
496
|
-
}, Rt = { draw: Ft }, Ht = {
|
|
497
|
-
parser: St,
|
|
498
|
-
db: Pt,
|
|
499
|
-
renderer: Rt,
|
|
500
|
-
styles: Nt
|
|
501
|
-
};
|
|
502
|
-
export {
|
|
503
|
-
Ht as diagram
|
|
504
|
-
};
|