dynamic-mui 2.2.0 → 2.3.0
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/README.md +142 -5
- package/dist/accordion-DqBdGRim.mjs +23 -0
- package/dist/accordion-lvbD_BpX.js +1 -0
- package/dist/addressfield-CGX3UppE.mjs +152 -0
- package/dist/addressfield-DDG15fqJ.js +1 -0
- package/dist/asyncautocomplete-BAfBR9P7.mjs +89 -0
- package/dist/asyncautocomplete-w9q_1DWt.js +1 -0
- package/dist/bar-BzO7tvYJ.mjs +20 -0
- package/dist/bar-DEVxyUVS.js +1 -0
- package/dist/cascadeselect-C3QVfoig.mjs +64 -0
- package/dist/cascadeselect-DzbhK9en.js +1 -0
- package/dist/colorpicker-5qmEq7ZI.js +1 -0
- package/dist/colorpicker-DhNZulJY.mjs +98 -0
- package/dist/components/DynamicComponent.d.ts +2 -0
- package/dist/components/FormGenerator.d.ts +99 -10
- package/dist/components/controls/index.d.ts +45 -79
- package/dist/consentfield-B7Rm8d3U.js +1 -0
- package/dist/consentfield-CBQUR4J5.mjs +78 -0
- package/dist/datatable-BIQznwQe.mjs +20 -0
- package/dist/datatable-BWlcUP0M.js +1 -0
- package/dist/dynamic-mui.cjs +1 -0
- package/dist/dynamic-mui.mjs +32 -0
- package/dist/editabletable-DCoRmsEO.js +1 -0
- package/dist/editabletable-DRlBV8lk.mjs +126 -0
- package/dist/fileupload-ByBv1UjT.mjs +172 -0
- package/dist/fileupload-Cze3Oc_2.js +1 -0
- package/dist/formrepeater-BBkKGLFJ.mjs +71 -0
- package/dist/formrepeater-BxJzXoHx.js +1 -0
- package/dist/formwizard-BDZE1UDD.js +1 -0
- package/dist/formwizard-D2u1bMvK.mjs +83 -0
- package/dist/geofield-8WTeZk0Z.mjs +104 -0
- package/dist/geofield-Bw3p4NLJ.js +1 -0
- package/dist/group-B2mSylHd.mjs +23 -0
- package/dist/group-BlfO3ZZf.js +1 -0
- package/dist/imagelist-Bn9QhIv7.js +1 -0
- package/dist/imagelist-rqmJajHt.mjs +18 -0
- package/dist/index-CddjLTWF.mjs +12499 -0
- package/dist/index-D08GIfqF.js +43 -0
- package/dist/index.d.ts +9 -1
- package/dist/intlphone-B_Xn98pU.js +1 -0
- package/dist/intlphone-DtQZ12xk.mjs +140 -0
- package/dist/keyvaluefield-B_1NeGuP.mjs +125 -0
- package/dist/keyvaluefield-DyKCGd32.js +1 -0
- package/dist/line-B-DwR1hm.mjs +20 -0
- package/dist/line-BkymZu31.js +1 -0
- package/dist/lineitemlist-DGo8UOZC.js +1 -0
- package/dist/lineitemlist-vGKzJlQx.mjs +166 -0
- package/dist/list-7uNWrepS.mjs +20 -0
- package/dist/list-C0FgmtQw.js +1 -0
- package/dist/locationfield-CeUgxLkQ.mjs +119 -0
- package/dist/locationfield-Duyw1ZEz.js +1 -0
- package/dist/markdowneditor-B1y-hfny.mjs +90 -0
- package/dist/markdowneditor-Db0Un1_Z.js +2 -0
- package/dist/matrixfield-C7Sc-YpI.mjs +117 -0
- package/dist/matrixfield-CckODuPn.js +1 -0
- package/dist/mixChart-C3o184UT.js +1 -0
- package/dist/mixChart-ISf3Kbr-.mjs +75 -0
- package/dist/multitextbox-BYazIAeG.js +1 -0
- package/dist/multitextbox-ide2lvJ6.mjs +78 -0
- package/dist/npsscale-C2e88qk_.js +1 -0
- package/dist/npsscale-lndz7GEq.mjs +87 -0
- package/dist/numberstepper-DitbcvV9.mjs +128 -0
- package/dist/numberstepper-DyRjQM_K.js +1 -0
- package/dist/pie-CJSL8Sv5.js +1 -0
- package/dist/pie-CL29dlh5.mjs +20 -0
- package/dist/richtexteditor-CVg-MnKp.js +1 -0
- package/dist/richtexteditor-DsC1XC7h.mjs +141 -0
- package/dist/s3Upload-B0JeoLkS.js +1 -0
- package/dist/s3Upload-dpioZ2c8.mjs +51 -0
- package/dist/signature-14OrZriO.mjs +1225 -0
- package/dist/signature-D582X6tB.js +2 -0
- package/dist/stepper-B-FpcZvT.js +1 -0
- package/dist/stepper-CDfEy_C6.mjs +140 -0
- package/dist/summaryfield-B08ZmVHh.js +1 -0
- package/dist/summaryfield-CTpPlZBG.mjs +96 -0
- package/dist/tabs-BIliqFOs.js +1 -0
- package/dist/tabs-DDeJCFt8.mjs +39 -0
- package/dist/tagsinput-D-q6rRZS.mjs +58 -0
- package/dist/tagsinput-qh_lhdFb.js +1 -0
- package/dist/util/registry.d.ts +29 -0
- package/dist/util/resolvers.d.ts +45 -0
- package/dist/util/useFormEngine.d.ts +74 -0
- package/dist/util/validateSchema.d.ts +23 -0
- package/dist/v4-BysszJq8.mjs +30 -0
- package/dist/v4-CqdK_b8Y.js +1 -0
- package/package.json +36 -11
- package/dist/AxisSharedComponents-BbsKw1BT.js +0 -3
- package/dist/AxisSharedComponents-xLtpOLH_.mjs +0 -605
- package/dist/ChartsAxis-CANvBdY9.mjs +0 -47
- package/dist/ChartsAxis-EZ7m_KrU.js +0 -1
- package/dist/ChartsGrid-BCRTvNTr.js +0 -3
- package/dist/ChartsGrid-C_HT7qpL.mjs +0 -381
- package/dist/ChartsWrapper-CM7EDyAK.js +0 -5
- package/dist/ChartsWrapper-CO5_Z6BD.mjs +0 -1878
- package/dist/ChartsXAxis-CPmuCRhq.mjs +0 -487
- package/dist/ChartsXAxis-DFFY1sPg.js +0 -3
- package/dist/ChartsYAxis-DLUMr9vG.mjs +0 -392
- package/dist/ChartsYAxis-fpevi1sP.js +0 -1
- package/dist/XmlShapeDeserializer-3yQdm0b0.mjs +0 -237
- package/dist/XmlShapeDeserializer-XKJAoqLc.js +0 -1
- package/dist/clampAngle-BvZjnf53.mjs +0 -11
- package/dist/clampAngle-DpAsDoeT.js +0 -1
- package/dist/createSelector-B-9FwV16.mjs +0 -430
- package/dist/createSelector-f0oqn8Lr.js +0 -7
- package/dist/date-utils-CFUUt6NL.js +0 -4
- package/dist/date-utils-pGzaKb0p.mjs +0 -477
- package/dist/dynamic-mui.cjs.js +0 -1
- package/dist/dynamic-mui.es.js +0 -22
- package/dist/index--8Zky9Oh.js +0 -299
- package/dist/index-6WTs1Xy_.js +0 -1
- package/dist/index-B1R1akM2.js +0 -1
- package/dist/index-BW8_rRff.js +0 -7
- package/dist/index-BXFVK_GX.js +0 -1
- package/dist/index-B_KNUTjy.js +0 -1
- package/dist/index-BhaKvHkU.mjs +0 -62051
- package/dist/index-Bif92ima.js +0 -1
- package/dist/index-BnZOu8CL.js +0 -1
- package/dist/index-CDxpgRlR.mjs +0 -7
- package/dist/index-CThMfvtJ.mjs +0 -2555
- package/dist/index-CVqLvm8B.js +0 -1
- package/dist/index-CodJBIn6.mjs +0 -1665
- package/dist/index-Cr6Wp_S-.mjs +0 -3141
- package/dist/index-CslPwsrf.mjs +0 -4
- package/dist/index-CuV0MQzZ.mjs +0 -1173
- package/dist/index-DA0XouZs.mjs +0 -153
- package/dist/index-DKS5Sz9e.js +0 -14
- package/dist/index-DSkYYZuW.mjs +0 -4
- package/dist/index-DU78_FiA.js +0 -1
- package/dist/index-D_mYhgJ0.js +0 -10
- package/dist/index-DcWfyXJp.mjs +0 -92
- package/dist/index-Dlimbnxj.mjs +0 -2965
- package/dist/index-MllWgTJ5.mjs +0 -9372
- package/dist/index-in5z9hUb.js +0 -133
- package/dist/index-qUW7FnZ-.mjs +0 -20540
- package/dist/index.browser-BSu11T_q.mjs +0 -363
- package/dist/index.browser-By7-GABP.js +0 -4
- package/dist/isDeepEqual-BHfPvf9U.mjs +0 -393
- package/dist/isDeepEqual-CqxZGVRk.js +0 -1
- package/dist/loadCognitoIdentity-DtYTy-DW.js +0 -1
- package/dist/loadCognitoIdentity-DzdR91GB.mjs +0 -872
- package/dist/loadSts-Cic6UToN.mjs +0 -593
- package/dist/loadSts-csbFP6zX.js +0 -1
- package/dist/main.d.ts +0 -1
- package/dist/noAuth-B8ui2kBg.mjs +0 -71
- package/dist/noAuth-JPA2o4dt.js +0 -1
- package/dist/playground/AIContext.d.ts +0 -18
- package/dist/playground/AIPanel.d.ts +0 -10
- package/dist/playground/Builder.d.ts +0 -1
- package/dist/playground/Canvas.d.ts +0 -9
- package/dist/playground/DemoGallery.d.ts +0 -6
- package/dist/playground/PropertiesEditor.d.ts +0 -10
- package/dist/playground/Sidebar.d.ts +0 -9
- package/dist/playground/demoForms.d.ts +0 -3
- package/dist/playground/demoRecipes.d.ts +0 -15
- package/dist/playground/demoVariants.d.ts +0 -11
- package/dist/playground/documentation.d.ts +0 -6
- package/dist/playground/templates.d.ts +0 -7
- package/dist/playground/testData.d.ts +0 -2
- package/dist/test/setup.d.ts +0 -0
- package/dist/theme/theme.d.ts +0 -6
- package/dist/useAxis-DSbfEtO7.js +0 -3
- package/dist/useAxis-SiNBMMWq.mjs +0 -3010
- package/dist/useChartContainerProps-Bl3hO-r1.mjs +0 -5418
- package/dist/useChartContainerProps-C_C_PZoi.js +0 -12
- package/dist/useItemHighlightedGetter-9CIwqsGj.js +0 -1
- package/dist/useItemHighlightedGetter-CTISrNdV.mjs +0 -88
package/dist/index-Dlimbnxj.mjs
DELETED
|
@@ -1,2965 +0,0 @@
|
|
|
1
|
-
import { j as y, s as W, h as B, a as F, _ as T, P as e, e as Se, c as se, g as re, w as Rn, b as Ie, m as qn, u as jn } from "./index-BhaKvHkU.mjs";
|
|
2
|
-
import * as U from "react";
|
|
3
|
-
import { u as Pn, b as Le, d as Z, A as J, c as ae, g as Ae, f as he, e as vn, C as Sn, h as In, i as Ln, j as An } from "./ChartsWrapper-CO5_Z6BD.mjs";
|
|
4
|
-
import { o as we, c as wn, u as K, a as X, i as Ce, d as me, b as Cn } from "./useAxis-SiNBMMWq.mjs";
|
|
5
|
-
import { r as j, T as De, t as le, o as z, p as pe, l as ie, k as Me, j as _e, J as Ne, U as Ee, H as Q, V as $e, Q as Dn, R as Mn, z as Nn, A as En, S as $n, B as Hn, D as Fn, E as Gn, u as zn, C as Vn, a as Un } from "./useChartContainerProps-Bl3hO-r1.mjs";
|
|
6
|
-
import { g as ce, u as ye, s as He, C as Kn, a as Xn, b as Yn } from "./ChartsGrid-C_HT7qpL.mjs";
|
|
7
|
-
import { w as Oe, u as Wn } from "./useItemHighlightedGetter-CTISrNdV.mjs";
|
|
8
|
-
import { C as Bn } from "./ChartsAxis-CANvBdY9.mjs";
|
|
9
|
-
import { r as Zn } from "./isDeepEqual-BHfPvf9U.mjs";
|
|
10
|
-
function Fe(n) {
|
|
11
|
-
this._context = n;
|
|
12
|
-
}
|
|
13
|
-
Fe.prototype = {
|
|
14
|
-
areaStart: function() {
|
|
15
|
-
this._line = 0;
|
|
16
|
-
},
|
|
17
|
-
areaEnd: function() {
|
|
18
|
-
this._line = NaN;
|
|
19
|
-
},
|
|
20
|
-
lineStart: function() {
|
|
21
|
-
this._point = 0;
|
|
22
|
-
},
|
|
23
|
-
lineEnd: function() {
|
|
24
|
-
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
25
|
-
},
|
|
26
|
-
point: function(n, t) {
|
|
27
|
-
switch (n = +n, t = +t, this._point) {
|
|
28
|
-
case 0:
|
|
29
|
-
this._point = 1, this._line ? this._context.lineTo(n, t) : this._context.moveTo(n, t);
|
|
30
|
-
break;
|
|
31
|
-
case 1:
|
|
32
|
-
this._point = 2;
|
|
33
|
-
// falls through
|
|
34
|
-
default:
|
|
35
|
-
this._context.lineTo(n, t);
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
function ge(n) {
|
|
41
|
-
return new Fe(n);
|
|
42
|
-
}
|
|
43
|
-
function Ge(n) {
|
|
44
|
-
return n[0];
|
|
45
|
-
}
|
|
46
|
-
function ze(n) {
|
|
47
|
-
return n[1];
|
|
48
|
-
}
|
|
49
|
-
function Ve(n, t) {
|
|
50
|
-
var i = j(!0), o = null, r = ge, s = null, c = Oe(a);
|
|
51
|
-
n = typeof n == "function" ? n : n === void 0 ? Ge : j(n), t = typeof t == "function" ? t : t === void 0 ? ze : j(t);
|
|
52
|
-
function a(u) {
|
|
53
|
-
var f, m = (u = De(u)).length, l, d = !1, p;
|
|
54
|
-
for (o == null && (s = r(p = c())), f = 0; f <= m; ++f)
|
|
55
|
-
!(f < m && i(l = u[f], f, u)) === d && ((d = !d) ? s.lineStart() : s.lineEnd()), d && s.point(+n(l, f, u), +t(l, f, u));
|
|
56
|
-
if (p) return s = null, p + "" || null;
|
|
57
|
-
}
|
|
58
|
-
return a.x = function(u) {
|
|
59
|
-
return arguments.length ? (n = typeof u == "function" ? u : j(+u), a) : n;
|
|
60
|
-
}, a.y = function(u) {
|
|
61
|
-
return arguments.length ? (t = typeof u == "function" ? u : j(+u), a) : t;
|
|
62
|
-
}, a.defined = function(u) {
|
|
63
|
-
return arguments.length ? (i = typeof u == "function" ? u : j(!!u), a) : i;
|
|
64
|
-
}, a.curve = function(u) {
|
|
65
|
-
return arguments.length ? (r = u, o != null && (s = r(o)), a) : r;
|
|
66
|
-
}, a.context = function(u) {
|
|
67
|
-
return arguments.length ? (u == null ? o = s = null : s = r(o = u), a) : o;
|
|
68
|
-
}, a;
|
|
69
|
-
}
|
|
70
|
-
function Jn(n, t, i) {
|
|
71
|
-
var o = null, r = j(!0), s = null, c = ge, a = null, u = Oe(f);
|
|
72
|
-
n = typeof n == "function" ? n : n === void 0 ? Ge : j(+n), t = typeof t == "function" ? t : t === void 0 ? j(0) : j(+t), i = typeof i == "function" ? i : i === void 0 ? ze : j(+i);
|
|
73
|
-
function f(l) {
|
|
74
|
-
var d, p, b, k = (l = De(l)).length, h, O = !1, g, S = new Array(k), q = new Array(k);
|
|
75
|
-
for (s == null && (a = c(g = u())), d = 0; d <= k; ++d) {
|
|
76
|
-
if (!(d < k && r(h = l[d], d, l)) === O)
|
|
77
|
-
if (O = !O)
|
|
78
|
-
p = d, a.areaStart(), a.lineStart();
|
|
79
|
-
else {
|
|
80
|
-
for (a.lineEnd(), a.lineStart(), b = d - 1; b >= p; --b)
|
|
81
|
-
a.point(S[b], q[b]);
|
|
82
|
-
a.lineEnd(), a.areaEnd();
|
|
83
|
-
}
|
|
84
|
-
O && (S[d] = +n(h, d, l), q[d] = +t(h, d, l), a.point(o ? +o(h, d, l) : S[d], i ? +i(h, d, l) : q[d]));
|
|
85
|
-
}
|
|
86
|
-
if (g) return a = null, g + "" || null;
|
|
87
|
-
}
|
|
88
|
-
function m() {
|
|
89
|
-
return Ve().defined(r).curve(c).context(s);
|
|
90
|
-
}
|
|
91
|
-
return f.x = function(l) {
|
|
92
|
-
return arguments.length ? (n = typeof l == "function" ? l : j(+l), o = null, f) : n;
|
|
93
|
-
}, f.x0 = function(l) {
|
|
94
|
-
return arguments.length ? (n = typeof l == "function" ? l : j(+l), f) : n;
|
|
95
|
-
}, f.x1 = function(l) {
|
|
96
|
-
return arguments.length ? (o = l == null ? null : typeof l == "function" ? l : j(+l), f) : o;
|
|
97
|
-
}, f.y = function(l) {
|
|
98
|
-
return arguments.length ? (t = typeof l == "function" ? l : j(+l), i = null, f) : t;
|
|
99
|
-
}, f.y0 = function(l) {
|
|
100
|
-
return arguments.length ? (t = typeof l == "function" ? l : j(+l), f) : t;
|
|
101
|
-
}, f.y1 = function(l) {
|
|
102
|
-
return arguments.length ? (i = l == null ? null : typeof l == "function" ? l : j(+l), f) : i;
|
|
103
|
-
}, f.lineX0 = f.lineY0 = function() {
|
|
104
|
-
return m().x(n).y(t);
|
|
105
|
-
}, f.lineY1 = function() {
|
|
106
|
-
return m().x(n).y(i);
|
|
107
|
-
}, f.lineX1 = function() {
|
|
108
|
-
return m().x(o).y(t);
|
|
109
|
-
}, f.defined = function(l) {
|
|
110
|
-
return arguments.length ? (r = typeof l == "function" ? l : j(!!l), f) : r;
|
|
111
|
-
}, f.curve = function(l) {
|
|
112
|
-
return arguments.length ? (c = l, s != null && (a = c(s)), f) : c;
|
|
113
|
-
}, f.context = function(l) {
|
|
114
|
-
return arguments.length ? (l == null ? s = a = null : a = c(s = l), f) : s;
|
|
115
|
-
}, f;
|
|
116
|
-
}
|
|
117
|
-
class Ue {
|
|
118
|
-
constructor(t, i) {
|
|
119
|
-
this._context = t, this._x = i;
|
|
120
|
-
}
|
|
121
|
-
areaStart() {
|
|
122
|
-
this._line = 0;
|
|
123
|
-
}
|
|
124
|
-
areaEnd() {
|
|
125
|
-
this._line = NaN;
|
|
126
|
-
}
|
|
127
|
-
lineStart() {
|
|
128
|
-
this._point = 0;
|
|
129
|
-
}
|
|
130
|
-
lineEnd() {
|
|
131
|
-
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
132
|
-
}
|
|
133
|
-
point(t, i) {
|
|
134
|
-
switch (t = +t, i = +i, this._point) {
|
|
135
|
-
case 0: {
|
|
136
|
-
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
case 1:
|
|
140
|
-
this._point = 2;
|
|
141
|
-
// falls through
|
|
142
|
-
default: {
|
|
143
|
-
this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + t) / 2, this._y0, this._x0, i, t, i) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + i) / 2, t, this._y0, t, i);
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
this._x0 = t, this._y0 = i;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
function Qn(n) {
|
|
151
|
-
return new Ue(n, !0);
|
|
152
|
-
}
|
|
153
|
-
function et(n) {
|
|
154
|
-
return new Ue(n, !1);
|
|
155
|
-
}
|
|
156
|
-
const Ke = {
|
|
157
|
-
draw(n, t) {
|
|
158
|
-
const i = z(t / pe);
|
|
159
|
-
n.moveTo(i, 0), n.arc(0, 0, i, 0, le);
|
|
160
|
-
}
|
|
161
|
-
}, nt = {
|
|
162
|
-
draw(n, t) {
|
|
163
|
-
const i = z(t / 5) / 2;
|
|
164
|
-
n.moveTo(-3 * i, -i), n.lineTo(-i, -i), n.lineTo(-i, -3 * i), n.lineTo(i, -3 * i), n.lineTo(i, -i), n.lineTo(3 * i, -i), n.lineTo(3 * i, i), n.lineTo(i, i), n.lineTo(i, 3 * i), n.lineTo(-i, 3 * i), n.lineTo(-i, i), n.lineTo(-3 * i, i), n.closePath();
|
|
165
|
-
}
|
|
166
|
-
}, Xe = z(1 / 3), tt = Xe * 2, it = {
|
|
167
|
-
draw(n, t) {
|
|
168
|
-
const i = z(t / tt), o = i * Xe;
|
|
169
|
-
n.moveTo(0, -i), n.lineTo(o, 0), n.lineTo(0, i), n.lineTo(-o, 0), n.closePath();
|
|
170
|
-
}
|
|
171
|
-
}, ot = {
|
|
172
|
-
draw(n, t) {
|
|
173
|
-
const i = z(t), o = -i / 2;
|
|
174
|
-
n.rect(o, o, i, i);
|
|
175
|
-
}
|
|
176
|
-
}, st = 0.8908130915292852, Ye = ie(pe / 10) / ie(7 * pe / 10), rt = ie(le / 10) * Ye, at = -Me(le / 10) * Ye, lt = {
|
|
177
|
-
draw(n, t) {
|
|
178
|
-
const i = z(t * st), o = rt * i, r = at * i;
|
|
179
|
-
n.moveTo(0, -i), n.lineTo(o, r);
|
|
180
|
-
for (let s = 1; s < 5; ++s) {
|
|
181
|
-
const c = le * s / 5, a = Me(c), u = ie(c);
|
|
182
|
-
n.lineTo(u * i, -a * i), n.lineTo(a * o - u * r, u * o + a * r);
|
|
183
|
-
}
|
|
184
|
-
n.closePath();
|
|
185
|
-
}
|
|
186
|
-
}, fe = z(3), ct = {
|
|
187
|
-
draw(n, t) {
|
|
188
|
-
const i = -z(t / (fe * 3));
|
|
189
|
-
n.moveTo(0, i * 2), n.lineTo(-fe * i, -i), n.lineTo(fe * i, -i), n.closePath();
|
|
190
|
-
}
|
|
191
|
-
}, $ = -0.5, H = z(3) / 2, be = 1 / z(12), ut = (be / 2 + 1) * 3, ft = {
|
|
192
|
-
draw(n, t) {
|
|
193
|
-
const i = z(t / ut), o = i / 2, r = i * be, s = o, c = i * be + i, a = -s, u = c;
|
|
194
|
-
n.moveTo(o, r), n.lineTo(s, c), n.lineTo(a, u), n.lineTo($ * o - H * r, H * o + $ * r), n.lineTo($ * s - H * c, H * s + $ * c), n.lineTo($ * a - H * u, H * a + $ * u), n.lineTo($ * o + H * r, $ * r - H * o), n.lineTo($ * s + H * c, $ * c - H * s), n.lineTo($ * a + H * u, $ * u - H * a), n.closePath();
|
|
195
|
-
}
|
|
196
|
-
}, We = [
|
|
197
|
-
Ke,
|
|
198
|
-
nt,
|
|
199
|
-
it,
|
|
200
|
-
ot,
|
|
201
|
-
lt,
|
|
202
|
-
ct,
|
|
203
|
-
ft
|
|
204
|
-
];
|
|
205
|
-
function Be(n, t) {
|
|
206
|
-
let i = null, o = Oe(r);
|
|
207
|
-
n = typeof n == "function" ? n : j(n || Ke), t = typeof t == "function" ? t : j(t === void 0 ? 64 : +t);
|
|
208
|
-
function r() {
|
|
209
|
-
let s;
|
|
210
|
-
if (i || (i = s = o()), n.apply(this, arguments).draw(i, +t.apply(this, arguments)), s) return i = null, s + "" || null;
|
|
211
|
-
}
|
|
212
|
-
return r.type = function(s) {
|
|
213
|
-
return arguments.length ? (n = typeof s == "function" ? s : j(s), r) : n;
|
|
214
|
-
}, r.size = function(s) {
|
|
215
|
-
return arguments.length ? (t = typeof s == "function" ? s : j(+s), r) : t;
|
|
216
|
-
}, r.context = function(s) {
|
|
217
|
-
return arguments.length ? (i = s ?? null, r) : i;
|
|
218
|
-
}, r;
|
|
219
|
-
}
|
|
220
|
-
function xe(n, t, i) {
|
|
221
|
-
n._context.bezierCurveTo(
|
|
222
|
-
n._x1 + n._k * (n._x2 - n._x0),
|
|
223
|
-
n._y1 + n._k * (n._y2 - n._y0),
|
|
224
|
-
n._x2 + n._k * (n._x1 - t),
|
|
225
|
-
n._y2 + n._k * (n._y1 - i),
|
|
226
|
-
n._x2,
|
|
227
|
-
n._y2
|
|
228
|
-
);
|
|
229
|
-
}
|
|
230
|
-
function Te(n, t) {
|
|
231
|
-
this._context = n, this._k = (1 - t) / 6;
|
|
232
|
-
}
|
|
233
|
-
Te.prototype = {
|
|
234
|
-
areaStart: function() {
|
|
235
|
-
this._line = 0;
|
|
236
|
-
},
|
|
237
|
-
areaEnd: function() {
|
|
238
|
-
this._line = NaN;
|
|
239
|
-
},
|
|
240
|
-
lineStart: function() {
|
|
241
|
-
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
242
|
-
},
|
|
243
|
-
lineEnd: function() {
|
|
244
|
-
switch (this._point) {
|
|
245
|
-
case 2:
|
|
246
|
-
this._context.lineTo(this._x2, this._y2);
|
|
247
|
-
break;
|
|
248
|
-
case 3:
|
|
249
|
-
xe(this, this._x1, this._y1);
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
253
|
-
},
|
|
254
|
-
point: function(n, t) {
|
|
255
|
-
switch (n = +n, t = +t, this._point) {
|
|
256
|
-
case 0:
|
|
257
|
-
this._point = 1, this._line ? this._context.lineTo(n, t) : this._context.moveTo(n, t);
|
|
258
|
-
break;
|
|
259
|
-
case 1:
|
|
260
|
-
this._point = 2, this._x1 = n, this._y1 = t;
|
|
261
|
-
break;
|
|
262
|
-
case 2:
|
|
263
|
-
this._point = 3;
|
|
264
|
-
// falls through
|
|
265
|
-
default:
|
|
266
|
-
xe(this, n, t);
|
|
267
|
-
break;
|
|
268
|
-
}
|
|
269
|
-
this._x0 = this._x1, this._x1 = this._x2, this._x2 = n, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
(function n(t) {
|
|
273
|
-
function i(o) {
|
|
274
|
-
return new Te(o, t);
|
|
275
|
-
}
|
|
276
|
-
return i.tension = function(o) {
|
|
277
|
-
return n(+o);
|
|
278
|
-
}, i;
|
|
279
|
-
})(0);
|
|
280
|
-
function dt(n, t, i) {
|
|
281
|
-
var o = n._x1, r = n._y1, s = n._x2, c = n._y2;
|
|
282
|
-
if (n._l01_a > _e) {
|
|
283
|
-
var a = 2 * n._l01_2a + 3 * n._l01_a * n._l12_a + n._l12_2a, u = 3 * n._l01_a * (n._l01_a + n._l12_a);
|
|
284
|
-
o = (o * a - n._x0 * n._l12_2a + n._x2 * n._l01_2a) / u, r = (r * a - n._y0 * n._l12_2a + n._y2 * n._l01_2a) / u;
|
|
285
|
-
}
|
|
286
|
-
if (n._l23_a > _e) {
|
|
287
|
-
var f = 2 * n._l23_2a + 3 * n._l23_a * n._l12_a + n._l12_2a, m = 3 * n._l23_a * (n._l23_a + n._l12_a);
|
|
288
|
-
s = (s * f + n._x1 * n._l23_2a - t * n._l12_2a) / m, c = (c * f + n._y1 * n._l23_2a - i * n._l12_2a) / m;
|
|
289
|
-
}
|
|
290
|
-
n._context.bezierCurveTo(o, r, s, c, n._x2, n._y2);
|
|
291
|
-
}
|
|
292
|
-
function Ze(n, t) {
|
|
293
|
-
this._context = n, this._alpha = t;
|
|
294
|
-
}
|
|
295
|
-
Ze.prototype = {
|
|
296
|
-
areaStart: function() {
|
|
297
|
-
this._line = 0;
|
|
298
|
-
},
|
|
299
|
-
areaEnd: function() {
|
|
300
|
-
this._line = NaN;
|
|
301
|
-
},
|
|
302
|
-
lineStart: function() {
|
|
303
|
-
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
304
|
-
},
|
|
305
|
-
lineEnd: function() {
|
|
306
|
-
switch (this._point) {
|
|
307
|
-
case 2:
|
|
308
|
-
this._context.lineTo(this._x2, this._y2);
|
|
309
|
-
break;
|
|
310
|
-
case 3:
|
|
311
|
-
this.point(this._x2, this._y2);
|
|
312
|
-
break;
|
|
313
|
-
}
|
|
314
|
-
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
315
|
-
},
|
|
316
|
-
point: function(n, t) {
|
|
317
|
-
if (n = +n, t = +t, this._point) {
|
|
318
|
-
var i = this._x2 - n, o = this._y2 - t;
|
|
319
|
-
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(i * i + o * o, this._alpha));
|
|
320
|
-
}
|
|
321
|
-
switch (this._point) {
|
|
322
|
-
case 0:
|
|
323
|
-
this._point = 1, this._line ? this._context.lineTo(n, t) : this._context.moveTo(n, t);
|
|
324
|
-
break;
|
|
325
|
-
case 1:
|
|
326
|
-
this._point = 2;
|
|
327
|
-
break;
|
|
328
|
-
case 2:
|
|
329
|
-
this._point = 3;
|
|
330
|
-
// falls through
|
|
331
|
-
default:
|
|
332
|
-
dt(this, n, t);
|
|
333
|
-
break;
|
|
334
|
-
}
|
|
335
|
-
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = n, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
336
|
-
}
|
|
337
|
-
};
|
|
338
|
-
const pt = (function n(t) {
|
|
339
|
-
function i(o) {
|
|
340
|
-
return t ? new Ze(o, t) : new Te(o, 0);
|
|
341
|
-
}
|
|
342
|
-
return i.alpha = function(o) {
|
|
343
|
-
return n(+o);
|
|
344
|
-
}, i;
|
|
345
|
-
})(0.5);
|
|
346
|
-
function Re(n) {
|
|
347
|
-
return n < 0 ? -1 : 1;
|
|
348
|
-
}
|
|
349
|
-
function qe(n, t, i) {
|
|
350
|
-
var o = n._x1 - n._x0, r = t - n._x1, s = (n._y1 - n._y0) / (o || r < 0 && -0), c = (i - n._y1) / (r || o < 0 && -0), a = (s * r + c * o) / (o + r);
|
|
351
|
-
return (Re(s) + Re(c)) * Math.min(Math.abs(s), Math.abs(c), 0.5 * Math.abs(a)) || 0;
|
|
352
|
-
}
|
|
353
|
-
function je(n, t) {
|
|
354
|
-
var i = n._x1 - n._x0;
|
|
355
|
-
return i ? (3 * (n._y1 - n._y0) / i - t) / 2 : t;
|
|
356
|
-
}
|
|
357
|
-
function de(n, t, i) {
|
|
358
|
-
var o = n._x0, r = n._y0, s = n._x1, c = n._y1, a = (s - o) / 3;
|
|
359
|
-
n._context.bezierCurveTo(o + a, r + a * t, s - a, c - a * i, s, c);
|
|
360
|
-
}
|
|
361
|
-
function oe(n) {
|
|
362
|
-
this._context = n;
|
|
363
|
-
}
|
|
364
|
-
oe.prototype = {
|
|
365
|
-
areaStart: function() {
|
|
366
|
-
this._line = 0;
|
|
367
|
-
},
|
|
368
|
-
areaEnd: function() {
|
|
369
|
-
this._line = NaN;
|
|
370
|
-
},
|
|
371
|
-
lineStart: function() {
|
|
372
|
-
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
|
|
373
|
-
},
|
|
374
|
-
lineEnd: function() {
|
|
375
|
-
switch (this._point) {
|
|
376
|
-
case 2:
|
|
377
|
-
this._context.lineTo(this._x1, this._y1);
|
|
378
|
-
break;
|
|
379
|
-
case 3:
|
|
380
|
-
de(this, this._t0, je(this, this._t0));
|
|
381
|
-
break;
|
|
382
|
-
}
|
|
383
|
-
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
384
|
-
},
|
|
385
|
-
point: function(n, t) {
|
|
386
|
-
var i = NaN;
|
|
387
|
-
if (n = +n, t = +t, !(n === this._x1 && t === this._y1)) {
|
|
388
|
-
switch (this._point) {
|
|
389
|
-
case 0:
|
|
390
|
-
this._point = 1, this._line ? this._context.lineTo(n, t) : this._context.moveTo(n, t);
|
|
391
|
-
break;
|
|
392
|
-
case 1:
|
|
393
|
-
this._point = 2;
|
|
394
|
-
break;
|
|
395
|
-
case 2:
|
|
396
|
-
this._point = 3, de(this, je(this, i = qe(this, n, t)), i);
|
|
397
|
-
break;
|
|
398
|
-
default:
|
|
399
|
-
de(this, this._t0, i = qe(this, n, t));
|
|
400
|
-
break;
|
|
401
|
-
}
|
|
402
|
-
this._x0 = this._x1, this._x1 = n, this._y0 = this._y1, this._y1 = t, this._t0 = i;
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
function Je(n) {
|
|
407
|
-
this._context = new Qe(n);
|
|
408
|
-
}
|
|
409
|
-
(Je.prototype = Object.create(oe.prototype)).point = function(n, t) {
|
|
410
|
-
oe.prototype.point.call(this, t, n);
|
|
411
|
-
};
|
|
412
|
-
function Qe(n) {
|
|
413
|
-
this._context = n;
|
|
414
|
-
}
|
|
415
|
-
Qe.prototype = {
|
|
416
|
-
moveTo: function(n, t) {
|
|
417
|
-
this._context.moveTo(t, n);
|
|
418
|
-
},
|
|
419
|
-
closePath: function() {
|
|
420
|
-
this._context.closePath();
|
|
421
|
-
},
|
|
422
|
-
lineTo: function(n, t) {
|
|
423
|
-
this._context.lineTo(t, n);
|
|
424
|
-
},
|
|
425
|
-
bezierCurveTo: function(n, t, i, o, r, s) {
|
|
426
|
-
this._context.bezierCurveTo(t, n, o, i, s, r);
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
function Pe(n) {
|
|
430
|
-
return new oe(n);
|
|
431
|
-
}
|
|
432
|
-
function bt(n) {
|
|
433
|
-
return new Je(n);
|
|
434
|
-
}
|
|
435
|
-
function en(n) {
|
|
436
|
-
this._context = n;
|
|
437
|
-
}
|
|
438
|
-
en.prototype = {
|
|
439
|
-
areaStart: function() {
|
|
440
|
-
this._line = 0;
|
|
441
|
-
},
|
|
442
|
-
areaEnd: function() {
|
|
443
|
-
this._line = NaN;
|
|
444
|
-
},
|
|
445
|
-
lineStart: function() {
|
|
446
|
-
this._x = [], this._y = [];
|
|
447
|
-
},
|
|
448
|
-
lineEnd: function() {
|
|
449
|
-
var n = this._x, t = this._y, i = n.length;
|
|
450
|
-
if (i)
|
|
451
|
-
if (this._line ? this._context.lineTo(n[0], t[0]) : this._context.moveTo(n[0], t[0]), i === 2)
|
|
452
|
-
this._context.lineTo(n[1], t[1]);
|
|
453
|
-
else
|
|
454
|
-
for (var o = ve(n), r = ve(t), s = 0, c = 1; c < i; ++s, ++c)
|
|
455
|
-
this._context.bezierCurveTo(o[0][s], r[0][s], o[1][s], r[1][s], n[c], t[c]);
|
|
456
|
-
(this._line || this._line !== 0 && i === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
|
|
457
|
-
},
|
|
458
|
-
point: function(n, t) {
|
|
459
|
-
this._x.push(+n), this._y.push(+t);
|
|
460
|
-
}
|
|
461
|
-
};
|
|
462
|
-
function ve(n) {
|
|
463
|
-
var t, i = n.length - 1, o, r = new Array(i), s = new Array(i), c = new Array(i);
|
|
464
|
-
for (r[0] = 0, s[0] = 2, c[0] = n[0] + 2 * n[1], t = 1; t < i - 1; ++t) r[t] = 1, s[t] = 4, c[t] = 4 * n[t] + 2 * n[t + 1];
|
|
465
|
-
for (r[i - 1] = 2, s[i - 1] = 7, c[i - 1] = 8 * n[i - 1] + n[i], t = 1; t < i; ++t) o = r[t] / s[t - 1], s[t] -= o, c[t] -= o * c[t - 1];
|
|
466
|
-
for (r[i - 1] = c[i - 1] / s[i - 1], t = i - 2; t >= 0; --t) r[t] = (c[t] - r[t + 1]) / s[t];
|
|
467
|
-
for (s[i - 1] = (n[i] + r[i - 1]) / 2, t = 0; t < i - 1; ++t) s[t] = 2 * n[t + 1] - r[t + 1];
|
|
468
|
-
return [r, s];
|
|
469
|
-
}
|
|
470
|
-
function ht(n) {
|
|
471
|
-
return new en(n);
|
|
472
|
-
}
|
|
473
|
-
function ue(n, t) {
|
|
474
|
-
this._context = n, this._t = t;
|
|
475
|
-
}
|
|
476
|
-
ue.prototype = {
|
|
477
|
-
areaStart: function() {
|
|
478
|
-
this._line = 0;
|
|
479
|
-
},
|
|
480
|
-
areaEnd: function() {
|
|
481
|
-
this._line = NaN;
|
|
482
|
-
},
|
|
483
|
-
lineStart: function() {
|
|
484
|
-
this._x = this._y = NaN, this._point = 0;
|
|
485
|
-
},
|
|
486
|
-
lineEnd: function() {
|
|
487
|
-
0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
|
|
488
|
-
},
|
|
489
|
-
point: function(n, t) {
|
|
490
|
-
switch (n = +n, t = +t, this._point) {
|
|
491
|
-
case 0:
|
|
492
|
-
this._point = 1, this._line ? this._context.lineTo(n, t) : this._context.moveTo(n, t);
|
|
493
|
-
break;
|
|
494
|
-
case 1:
|
|
495
|
-
this._point = 2;
|
|
496
|
-
// falls through
|
|
497
|
-
default: {
|
|
498
|
-
if (this._t <= 0)
|
|
499
|
-
this._context.lineTo(this._x, t), this._context.lineTo(n, t);
|
|
500
|
-
else {
|
|
501
|
-
var i = this._x * (1 - this._t) + n * this._t;
|
|
502
|
-
this._context.lineTo(i, this._y), this._context.lineTo(i, t);
|
|
503
|
-
}
|
|
504
|
-
break;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
this._x = n, this._y = t;
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
function mt(n) {
|
|
511
|
-
return new ue(n, 0.5);
|
|
512
|
-
}
|
|
513
|
-
function yt(n) {
|
|
514
|
-
return new ue(n, 0);
|
|
515
|
-
}
|
|
516
|
-
function Ot(n) {
|
|
517
|
-
return new ue(n, 1);
|
|
518
|
-
}
|
|
519
|
-
function ee() {
|
|
520
|
-
return Pn("line");
|
|
521
|
-
}
|
|
522
|
-
function gt(n) {
|
|
523
|
-
return Le({
|
|
524
|
-
d: n.d
|
|
525
|
-
}, {
|
|
526
|
-
createInterpolator: (t, i) => {
|
|
527
|
-
const o = we(t.d, i.d);
|
|
528
|
-
return (r) => ({
|
|
529
|
-
d: o(r)
|
|
530
|
-
});
|
|
531
|
-
},
|
|
532
|
-
applyProps: (t, {
|
|
533
|
-
d: i
|
|
534
|
-
}) => t.setAttribute("d", i),
|
|
535
|
-
transformProps: (t) => t,
|
|
536
|
-
skip: n.skipAnimation,
|
|
537
|
-
ref: n.ref
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
function Tt(n) {
|
|
541
|
-
return Le({
|
|
542
|
-
d: n.d
|
|
543
|
-
}, {
|
|
544
|
-
createInterpolator: (t, i) => {
|
|
545
|
-
const o = we(t.d, i.d);
|
|
546
|
-
return (r) => ({
|
|
547
|
-
d: o(r)
|
|
548
|
-
});
|
|
549
|
-
},
|
|
550
|
-
applyProps: (t, {
|
|
551
|
-
d: i
|
|
552
|
-
}) => t.setAttribute("d", i),
|
|
553
|
-
skip: n.skipAnimation,
|
|
554
|
-
transformProps: (t) => t,
|
|
555
|
-
ref: n.ref
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
function nn(n) {
|
|
559
|
-
return n.replace(" ", "_");
|
|
560
|
-
}
|
|
561
|
-
const tn = B("MuiAppearingMask", ["animate"]), kt = W("rect", {
|
|
562
|
-
slot: "internal",
|
|
563
|
-
shouldForwardProp: void 0
|
|
564
|
-
})({
|
|
565
|
-
animationName: "animate-width",
|
|
566
|
-
animationTimingFunction: J,
|
|
567
|
-
animationDuration: "0s",
|
|
568
|
-
[`&.${tn.animate}`]: {
|
|
569
|
-
animationDuration: `${Z}ms`
|
|
570
|
-
},
|
|
571
|
-
"@keyframes animate-width": {
|
|
572
|
-
from: {
|
|
573
|
-
width: 0
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
});
|
|
577
|
-
function on(n) {
|
|
578
|
-
const t = wn(), i = Ne(), o = nn(`${i}-${n.id}`);
|
|
579
|
-
return /* @__PURE__ */ y.jsxs(U.Fragment, {
|
|
580
|
-
children: [/* @__PURE__ */ y.jsx("clipPath", {
|
|
581
|
-
id: o,
|
|
582
|
-
children: /* @__PURE__ */ y.jsx(kt, {
|
|
583
|
-
className: n.skipAnimation ? "" : tn.animate,
|
|
584
|
-
x: 0,
|
|
585
|
-
y: 0,
|
|
586
|
-
width: t.left + t.width + t.right,
|
|
587
|
-
height: t.top + t.height + t.bottom
|
|
588
|
-
})
|
|
589
|
-
}), /* @__PURE__ */ y.jsx("g", {
|
|
590
|
-
clipPath: `url(#${o})`,
|
|
591
|
-
children: n.children
|
|
592
|
-
})]
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
const _t = ["skipAnimation", "ownerState"];
|
|
596
|
-
function sn(n) {
|
|
597
|
-
const {
|
|
598
|
-
skipAnimation: t,
|
|
599
|
-
ownerState: i
|
|
600
|
-
} = n, o = F(n, _t), r = gt(n);
|
|
601
|
-
return /* @__PURE__ */ y.jsx(on, {
|
|
602
|
-
skipAnimation: t,
|
|
603
|
-
id: `${i.id}-area-clip`,
|
|
604
|
-
children: /* @__PURE__ */ y.jsx("path", T({
|
|
605
|
-
fill: i.gradientId ? `url(#${i.gradientId})` : i.color,
|
|
606
|
-
filter: (
|
|
607
|
-
// eslint-disable-next-line no-nested-ternary
|
|
608
|
-
i.isHighlighted ? "brightness(140%)" : i.gradientId ? void 0 : "brightness(120%)"
|
|
609
|
-
),
|
|
610
|
-
opacity: i.isFaded ? 0.3 : 1,
|
|
611
|
-
stroke: "none",
|
|
612
|
-
"data-series": i.id,
|
|
613
|
-
"data-highlighted": i.isHighlighted || void 0,
|
|
614
|
-
"data-faded": i.isFaded || void 0
|
|
615
|
-
}, o, r))
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
process.env.NODE_ENV !== "production" && (sn.propTypes = {
|
|
619
|
-
// ----------------------------- Warning --------------------------------
|
|
620
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
621
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
622
|
-
// ----------------------------------------------------------------------
|
|
623
|
-
d: e.string.isRequired,
|
|
624
|
-
ownerState: e.shape({
|
|
625
|
-
classes: e.object,
|
|
626
|
-
color: e.string.isRequired,
|
|
627
|
-
gradientId: e.string,
|
|
628
|
-
id: e.oneOfType([e.number, e.string]).isRequired,
|
|
629
|
-
isFaded: e.bool.isRequired,
|
|
630
|
-
isHighlighted: e.bool.isRequired
|
|
631
|
-
}).isRequired,
|
|
632
|
-
/**
|
|
633
|
-
* If `true`, animations are skipped.
|
|
634
|
-
* @default false
|
|
635
|
-
*/
|
|
636
|
-
skipAnimation: e.bool
|
|
637
|
-
});
|
|
638
|
-
const xt = ["id", "classes", "color", "gradientId", "slots", "slotProps", "onClick"];
|
|
639
|
-
function Rt(n) {
|
|
640
|
-
return re("MuiAreaElement", n);
|
|
641
|
-
}
|
|
642
|
-
const qt = B("MuiAreaElement", ["root", "highlighted", "faded", "series"]), jt = (n) => {
|
|
643
|
-
const {
|
|
644
|
-
classes: t,
|
|
645
|
-
id: i,
|
|
646
|
-
isFaded: o,
|
|
647
|
-
isHighlighted: r
|
|
648
|
-
} = n, s = {
|
|
649
|
-
root: ["root", `series-${i}`, r && "highlighted", o && "faded"]
|
|
650
|
-
};
|
|
651
|
-
return se(s, Rt, t);
|
|
652
|
-
};
|
|
653
|
-
function rn(n) {
|
|
654
|
-
const {
|
|
655
|
-
id: t,
|
|
656
|
-
classes: i,
|
|
657
|
-
color: o,
|
|
658
|
-
gradientId: r,
|
|
659
|
-
slots: s,
|
|
660
|
-
slotProps: c,
|
|
661
|
-
onClick: a
|
|
662
|
-
} = n, u = F(n, xt), f = ae({
|
|
663
|
-
type: "line",
|
|
664
|
-
seriesId: t
|
|
665
|
-
}), {
|
|
666
|
-
isFaded: m,
|
|
667
|
-
isHighlighted: l
|
|
668
|
-
} = Ae({
|
|
669
|
-
seriesId: t
|
|
670
|
-
}), d = {
|
|
671
|
-
id: t,
|
|
672
|
-
classes: i,
|
|
673
|
-
color: o,
|
|
674
|
-
gradientId: r,
|
|
675
|
-
isFaded: m,
|
|
676
|
-
isHighlighted: l
|
|
677
|
-
}, p = jt(d), b = s?.area ?? sn, k = Se({
|
|
678
|
-
elementType: b,
|
|
679
|
-
externalSlotProps: c?.area,
|
|
680
|
-
additionalProps: T({}, f, {
|
|
681
|
-
onClick: a,
|
|
682
|
-
cursor: a ? "pointer" : "unset"
|
|
683
|
-
}),
|
|
684
|
-
className: p.root,
|
|
685
|
-
ownerState: d
|
|
686
|
-
});
|
|
687
|
-
return /* @__PURE__ */ y.jsx(b, T({}, u, k));
|
|
688
|
-
}
|
|
689
|
-
process.env.NODE_ENV !== "production" && (rn.propTypes = {
|
|
690
|
-
// ----------------------------- Warning --------------------------------
|
|
691
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
692
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
693
|
-
// ----------------------------------------------------------------------
|
|
694
|
-
classes: e.object,
|
|
695
|
-
color: e.string.isRequired,
|
|
696
|
-
d: e.string.isRequired,
|
|
697
|
-
gradientId: e.string,
|
|
698
|
-
id: e.oneOfType([e.number, e.string]).isRequired,
|
|
699
|
-
/**
|
|
700
|
-
* If `true`, animations are skipped.
|
|
701
|
-
* @default false
|
|
702
|
-
*/
|
|
703
|
-
skipAnimation: e.bool,
|
|
704
|
-
/**
|
|
705
|
-
* The props used for each component slot.
|
|
706
|
-
* @default {}
|
|
707
|
-
*/
|
|
708
|
-
slotProps: e.object,
|
|
709
|
-
/**
|
|
710
|
-
* Overridable component slots.
|
|
711
|
-
* @default {}
|
|
712
|
-
*/
|
|
713
|
-
slots: e.object
|
|
714
|
-
});
|
|
715
|
-
function an(n) {
|
|
716
|
-
switch (n) {
|
|
717
|
-
case "catmullRom":
|
|
718
|
-
return pt.alpha(0.5);
|
|
719
|
-
case "linear":
|
|
720
|
-
return ge;
|
|
721
|
-
case "monotoneX":
|
|
722
|
-
return Pe;
|
|
723
|
-
case "monotoneY":
|
|
724
|
-
return bt;
|
|
725
|
-
case "natural":
|
|
726
|
-
return ht;
|
|
727
|
-
case "step":
|
|
728
|
-
return mt;
|
|
729
|
-
case "stepBefore":
|
|
730
|
-
return yt;
|
|
731
|
-
case "stepAfter":
|
|
732
|
-
return Ot;
|
|
733
|
-
case "bumpY":
|
|
734
|
-
return et;
|
|
735
|
-
case "bumpX":
|
|
736
|
-
return Qn;
|
|
737
|
-
default:
|
|
738
|
-
return Pe;
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
function Pt(n, t) {
|
|
742
|
-
const i = ee(), o = K().xAxisIds[0], r = X().yAxisIds[0], s = Ee();
|
|
743
|
-
return U.useMemo(() => {
|
|
744
|
-
if (i === void 0)
|
|
745
|
-
return [];
|
|
746
|
-
const {
|
|
747
|
-
series: a,
|
|
748
|
-
stackingGroups: u
|
|
749
|
-
} = i, f = [];
|
|
750
|
-
for (const m of u) {
|
|
751
|
-
const l = m.ids;
|
|
752
|
-
for (let d = l.length - 1; d >= 0; d -= 1) {
|
|
753
|
-
const p = l[d], {
|
|
754
|
-
xAxisId: b = o,
|
|
755
|
-
yAxisId: k = r,
|
|
756
|
-
visibleStackedData: h,
|
|
757
|
-
stackedData: O,
|
|
758
|
-
data: g,
|
|
759
|
-
connectNulls: S,
|
|
760
|
-
baseline: q,
|
|
761
|
-
curve: x,
|
|
762
|
-
strictStepCurve: C,
|
|
763
|
-
area: L
|
|
764
|
-
} = a[p];
|
|
765
|
-
if (!L || !(b in n) || !(k in t))
|
|
766
|
-
continue;
|
|
767
|
-
const P = n[b].scale, G = ce(P), A = t[k].scale, R = n[b].data, M = t[k].colorScale && s(k) || n[b].colorScale && s(b) || void 0;
|
|
768
|
-
if (process.env.NODE_ENV !== "production") {
|
|
769
|
-
if (R === void 0)
|
|
770
|
-
throw new Error(`MUI X Charts: ${b === Q ? "The first `xAxis`" : `The x-axis with id "${b}"`} should have data property to be able to display a line plot.`);
|
|
771
|
-
if (R.length < O.length)
|
|
772
|
-
throw new Error(`MUI X Charts: The data length of the x axis (${R.length} items) is lower than the length of series (${O.length} items).`);
|
|
773
|
-
}
|
|
774
|
-
const w = x?.includes("step") && !C && Ce(P), N = R?.flatMap((_, I) => {
|
|
775
|
-
const V = g[I] == null;
|
|
776
|
-
if (w) {
|
|
777
|
-
const Y = [{
|
|
778
|
-
x: _,
|
|
779
|
-
y: h[I],
|
|
780
|
-
nullData: V,
|
|
781
|
-
isExtension: !1
|
|
782
|
-
}];
|
|
783
|
-
return !V && (I === 0 || g[I - 1] == null) && Y.unshift({
|
|
784
|
-
x: (P(_) ?? 0) - (P.step() - P.bandwidth()) / 2,
|
|
785
|
-
y: h[I],
|
|
786
|
-
nullData: V,
|
|
787
|
-
isExtension: !0
|
|
788
|
-
}), !V && (I === g.length - 1 || g[I + 1] == null) && Y.push({
|
|
789
|
-
x: (P(_) ?? 0) + (P.step() + P.bandwidth()) / 2,
|
|
790
|
-
y: h[I],
|
|
791
|
-
nullData: V,
|
|
792
|
-
isExtension: !0
|
|
793
|
-
}), Y;
|
|
794
|
-
}
|
|
795
|
-
return {
|
|
796
|
-
x: _,
|
|
797
|
-
y: h[I],
|
|
798
|
-
nullData: V
|
|
799
|
-
};
|
|
800
|
-
}) ?? [], E = S ? N.filter((_) => !_.nullData) : N, D = Jn().x((_) => _.isExtension ? _.x : G(_.x)).defined((_) => S || !_.nullData || !!_.isExtension).y0((_) => {
|
|
801
|
-
if (typeof q == "number")
|
|
802
|
-
return A(q);
|
|
803
|
-
if (q === "max")
|
|
804
|
-
return A.range()[1];
|
|
805
|
-
if (q === "min")
|
|
806
|
-
return A.range()[0];
|
|
807
|
-
const I = _.y && A(_.y[0]);
|
|
808
|
-
return Number.isNaN(I) ? A.range()[0] : I;
|
|
809
|
-
}).y1((_) => _.y && A(_.y[1])).curve(an(x))(E) || "";
|
|
810
|
-
f.push({
|
|
811
|
-
area: a[p].area,
|
|
812
|
-
color: a[p].color,
|
|
813
|
-
gradientId: M,
|
|
814
|
-
d: D,
|
|
815
|
-
seriesId: p
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
return f;
|
|
820
|
-
}, [i, o, r, n, t, s]);
|
|
821
|
-
}
|
|
822
|
-
const vt = ["slots", "slotProps", "onItemClick", "skipAnimation"], St = W("g", {
|
|
823
|
-
name: "MuiAreaPlot",
|
|
824
|
-
slot: "Root"
|
|
825
|
-
})({
|
|
826
|
-
[`& .${qt.root}`]: {
|
|
827
|
-
transitionProperty: "opacity, fill",
|
|
828
|
-
transitionDuration: `${Z}ms`,
|
|
829
|
-
transitionTimingFunction: J
|
|
830
|
-
}
|
|
831
|
-
}), It = () => {
|
|
832
|
-
const {
|
|
833
|
-
xAxis: n
|
|
834
|
-
} = K(), {
|
|
835
|
-
yAxis: t
|
|
836
|
-
} = X();
|
|
837
|
-
return Pt(n, t);
|
|
838
|
-
};
|
|
839
|
-
function ln(n) {
|
|
840
|
-
const {
|
|
841
|
-
slots: t,
|
|
842
|
-
slotProps: i,
|
|
843
|
-
onItemClick: o,
|
|
844
|
-
skipAnimation: r
|
|
845
|
-
} = n, s = F(n, vt), c = ye(), a = he(c || r), u = It();
|
|
846
|
-
return /* @__PURE__ */ y.jsx(St, T({}, s, {
|
|
847
|
-
children: u.map(({
|
|
848
|
-
d: f,
|
|
849
|
-
seriesId: m,
|
|
850
|
-
color: l,
|
|
851
|
-
area: d,
|
|
852
|
-
gradientId: p
|
|
853
|
-
}) => !!d && /* @__PURE__ */ y.jsx(rn, {
|
|
854
|
-
id: m,
|
|
855
|
-
d: f,
|
|
856
|
-
color: l,
|
|
857
|
-
gradientId: p,
|
|
858
|
-
slots: t,
|
|
859
|
-
slotProps: i,
|
|
860
|
-
onClick: o && ((b) => o(b, {
|
|
861
|
-
type: "line",
|
|
862
|
-
seriesId: m
|
|
863
|
-
})),
|
|
864
|
-
skipAnimation: a
|
|
865
|
-
}, m))
|
|
866
|
-
}));
|
|
867
|
-
}
|
|
868
|
-
process.env.NODE_ENV !== "production" && (ln.propTypes = {
|
|
869
|
-
// ----------------------------- Warning --------------------------------
|
|
870
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
871
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
872
|
-
// ----------------------------------------------------------------------
|
|
873
|
-
/**
|
|
874
|
-
* Callback fired when a line area item is clicked.
|
|
875
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
876
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line item identifier.
|
|
877
|
-
*/
|
|
878
|
-
onItemClick: e.func,
|
|
879
|
-
/**
|
|
880
|
-
* If `true`, animations are skipped.
|
|
881
|
-
* @default false
|
|
882
|
-
*/
|
|
883
|
-
skipAnimation: e.bool,
|
|
884
|
-
/**
|
|
885
|
-
* The props used for each component slot.
|
|
886
|
-
* @default {}
|
|
887
|
-
*/
|
|
888
|
-
slotProps: e.object,
|
|
889
|
-
/**
|
|
890
|
-
* Overridable component slots.
|
|
891
|
-
* @default {}
|
|
892
|
-
*/
|
|
893
|
-
slots: e.object
|
|
894
|
-
});
|
|
895
|
-
const Lt = ["skipAnimation", "ownerState"], ke = /* @__PURE__ */ U.forwardRef(function(t, i) {
|
|
896
|
-
const {
|
|
897
|
-
skipAnimation: o,
|
|
898
|
-
ownerState: r
|
|
899
|
-
} = t, s = F(t, Lt), c = Tt({
|
|
900
|
-
d: t.d,
|
|
901
|
-
skipAnimation: o,
|
|
902
|
-
ref: i
|
|
903
|
-
}), a = r.isFaded ? 0.3 : 1;
|
|
904
|
-
return /* @__PURE__ */ y.jsx(on, {
|
|
905
|
-
skipAnimation: o,
|
|
906
|
-
id: `${r.id}-line-clip`,
|
|
907
|
-
children: /* @__PURE__ */ y.jsx("path", T({
|
|
908
|
-
stroke: r.gradientId ? `url(#${r.gradientId})` : r.color,
|
|
909
|
-
strokeWidth: 2,
|
|
910
|
-
strokeLinejoin: "round",
|
|
911
|
-
fill: "none",
|
|
912
|
-
filter: r.isHighlighted ? "brightness(120%)" : void 0,
|
|
913
|
-
opacity: r.hidden ? 0 : a,
|
|
914
|
-
"data-series": r.id,
|
|
915
|
-
"data-highlighted": r.isHighlighted || void 0,
|
|
916
|
-
"data-faded": r.isFaded || void 0
|
|
917
|
-
}, s, c))
|
|
918
|
-
});
|
|
919
|
-
});
|
|
920
|
-
process.env.NODE_ENV !== "production" && (ke.displayName = "AnimatedLine");
|
|
921
|
-
process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
922
|
-
// ----------------------------- Warning --------------------------------
|
|
923
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
924
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
925
|
-
// ----------------------------------------------------------------------
|
|
926
|
-
d: e.string.isRequired,
|
|
927
|
-
ownerState: e.shape({
|
|
928
|
-
classes: e.object,
|
|
929
|
-
color: e.string.isRequired,
|
|
930
|
-
gradientId: e.string,
|
|
931
|
-
hidden: e.bool,
|
|
932
|
-
id: e.oneOfType([e.number, e.string]).isRequired,
|
|
933
|
-
isFaded: e.bool.isRequired,
|
|
934
|
-
isHighlighted: e.bool.isRequired
|
|
935
|
-
}).isRequired,
|
|
936
|
-
/**
|
|
937
|
-
* If `true`, animations are skipped.
|
|
938
|
-
* @default false
|
|
939
|
-
*/
|
|
940
|
-
skipAnimation: e.bool
|
|
941
|
-
});
|
|
942
|
-
const At = ["id", "classes", "color", "gradientId", "slots", "slotProps", "onClick", "hidden"];
|
|
943
|
-
function wt(n) {
|
|
944
|
-
return re("MuiLineElement", n);
|
|
945
|
-
}
|
|
946
|
-
const Ct = B("MuiLineElement", ["root", "highlighted", "faded", "series"]), Dt = (n) => {
|
|
947
|
-
const {
|
|
948
|
-
classes: t,
|
|
949
|
-
id: i,
|
|
950
|
-
isFaded: o,
|
|
951
|
-
isHighlighted: r
|
|
952
|
-
} = n, s = {
|
|
953
|
-
root: ["root", `series-${i}`, r && "highlighted", o && "faded"]
|
|
954
|
-
};
|
|
955
|
-
return se(s, wt, t);
|
|
956
|
-
};
|
|
957
|
-
function cn(n) {
|
|
958
|
-
const {
|
|
959
|
-
id: t,
|
|
960
|
-
classes: i,
|
|
961
|
-
color: o,
|
|
962
|
-
gradientId: r,
|
|
963
|
-
slots: s,
|
|
964
|
-
slotProps: c,
|
|
965
|
-
onClick: a,
|
|
966
|
-
hidden: u
|
|
967
|
-
} = n, f = F(n, At), m = ae({
|
|
968
|
-
type: "line",
|
|
969
|
-
seriesId: t
|
|
970
|
-
}), {
|
|
971
|
-
isFaded: l,
|
|
972
|
-
isHighlighted: d
|
|
973
|
-
} = Ae({
|
|
974
|
-
seriesId: t
|
|
975
|
-
}), p = {
|
|
976
|
-
id: t,
|
|
977
|
-
classes: i,
|
|
978
|
-
color: o,
|
|
979
|
-
gradientId: r,
|
|
980
|
-
isFaded: l,
|
|
981
|
-
isHighlighted: d,
|
|
982
|
-
hidden: u
|
|
983
|
-
}, b = Dt(p), k = s?.line ?? ke, h = Se({
|
|
984
|
-
elementType: k,
|
|
985
|
-
externalSlotProps: c?.line,
|
|
986
|
-
additionalProps: T({}, m, {
|
|
987
|
-
onClick: a,
|
|
988
|
-
cursor: a ? "pointer" : "unset"
|
|
989
|
-
}),
|
|
990
|
-
className: b.root,
|
|
991
|
-
ownerState: p
|
|
992
|
-
});
|
|
993
|
-
return /* @__PURE__ */ y.jsx(k, T({}, f, h));
|
|
994
|
-
}
|
|
995
|
-
process.env.NODE_ENV !== "production" && (cn.propTypes = {
|
|
996
|
-
// ----------------------------- Warning --------------------------------
|
|
997
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
998
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
999
|
-
// ----------------------------------------------------------------------
|
|
1000
|
-
classes: e.object,
|
|
1001
|
-
color: e.string.isRequired,
|
|
1002
|
-
d: e.string.isRequired,
|
|
1003
|
-
gradientId: e.string,
|
|
1004
|
-
/** If `true`, the line is hidden. */
|
|
1005
|
-
hidden: e.bool,
|
|
1006
|
-
id: e.oneOfType([e.number, e.string]).isRequired,
|
|
1007
|
-
/**
|
|
1008
|
-
* If `true`, animations are skipped.
|
|
1009
|
-
* @default false
|
|
1010
|
-
*/
|
|
1011
|
-
skipAnimation: e.bool,
|
|
1012
|
-
/**
|
|
1013
|
-
* The props used for each component slot.
|
|
1014
|
-
* @default {}
|
|
1015
|
-
*/
|
|
1016
|
-
slotProps: e.object,
|
|
1017
|
-
/**
|
|
1018
|
-
* Overridable component slots.
|
|
1019
|
-
* @default {}
|
|
1020
|
-
*/
|
|
1021
|
-
slots: e.object
|
|
1022
|
-
});
|
|
1023
|
-
function Mt(n, t) {
|
|
1024
|
-
const i = ee(), o = K().xAxisIds[0], r = X().yAxisIds[0], s = Ee();
|
|
1025
|
-
return U.useMemo(() => {
|
|
1026
|
-
if (i === void 0)
|
|
1027
|
-
return [];
|
|
1028
|
-
const {
|
|
1029
|
-
series: a,
|
|
1030
|
-
stackingGroups: u
|
|
1031
|
-
} = i, f = [];
|
|
1032
|
-
for (const m of u) {
|
|
1033
|
-
const l = m.ids;
|
|
1034
|
-
for (const d of l) {
|
|
1035
|
-
const {
|
|
1036
|
-
xAxisId: p = o,
|
|
1037
|
-
yAxisId: b = r,
|
|
1038
|
-
stackedData: k,
|
|
1039
|
-
visibleStackedData: h,
|
|
1040
|
-
data: O,
|
|
1041
|
-
connectNulls: g,
|
|
1042
|
-
curve: S,
|
|
1043
|
-
strictStepCurve: q
|
|
1044
|
-
} = a[d];
|
|
1045
|
-
if (!(p in n) || !(b in t))
|
|
1046
|
-
continue;
|
|
1047
|
-
const x = n[p].scale, C = ce(x), L = t[b].scale, P = n[p].data, G = t[b].colorScale && s(b) || n[p].colorScale && s(p) || void 0;
|
|
1048
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1049
|
-
if (P === void 0)
|
|
1050
|
-
throw new Error(`MUI X Charts: ${p === Q ? "The first `xAxis`" : `The x-axis with id "${p}"`} should have data property to be able to display a line plot.`);
|
|
1051
|
-
P.length < k.length && Rn(`MUI X Charts: The data length of the x axis (${P.length} items) is lower than the length of series (${k.length} items).`, "error");
|
|
1052
|
-
}
|
|
1053
|
-
const A = S?.includes("step") && !q && Ce(x), R = P?.flatMap((v, D) => {
|
|
1054
|
-
const _ = O[D] == null;
|
|
1055
|
-
if (A) {
|
|
1056
|
-
const I = [{
|
|
1057
|
-
x: v,
|
|
1058
|
-
y: h[D],
|
|
1059
|
-
nullData: _,
|
|
1060
|
-
isExtension: !1
|
|
1061
|
-
}];
|
|
1062
|
-
return !_ && (D === 0 || O[D - 1] == null) && I.unshift({
|
|
1063
|
-
x: (x(v) ?? 0) - (x.step() - x.bandwidth()) / 2,
|
|
1064
|
-
y: h[D],
|
|
1065
|
-
nullData: _,
|
|
1066
|
-
isExtension: !0
|
|
1067
|
-
}), !_ && (D === O.length - 1 || O[D + 1] == null) && I.push({
|
|
1068
|
-
x: (x(v) ?? 0) + (x.step() + x.bandwidth()) / 2,
|
|
1069
|
-
y: h[D],
|
|
1070
|
-
nullData: _,
|
|
1071
|
-
isExtension: !0
|
|
1072
|
-
}), I;
|
|
1073
|
-
}
|
|
1074
|
-
return {
|
|
1075
|
-
x: v,
|
|
1076
|
-
y: h[D],
|
|
1077
|
-
nullData: _
|
|
1078
|
-
};
|
|
1079
|
-
}) ?? [], M = g ? R.filter((v) => !v.nullData) : R, w = a[d].hidden, E = Ve().x((v) => v.isExtension ? v.x : C(v.x)).defined((v) => g || !v.nullData || !!v.isExtension).y((v) => L(w ? L.domain()[0] : v.y[1])).curve(an(S))(M) || "";
|
|
1080
|
-
f.push({
|
|
1081
|
-
color: a[d].color,
|
|
1082
|
-
gradientId: G,
|
|
1083
|
-
d: E,
|
|
1084
|
-
seriesId: d,
|
|
1085
|
-
hidden: a[d].hidden
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1089
|
-
return f;
|
|
1090
|
-
}, [i, o, r, n, t, s]);
|
|
1091
|
-
}
|
|
1092
|
-
const Nt = ["slots", "slotProps", "skipAnimation", "onItemClick"], Et = W("g", {
|
|
1093
|
-
name: "MuiAreaPlot",
|
|
1094
|
-
slot: "Root"
|
|
1095
|
-
})({
|
|
1096
|
-
[`& .${Ct.root}`]: {
|
|
1097
|
-
transitionProperty: "opacity, fill",
|
|
1098
|
-
transitionDuration: `${Z}ms`,
|
|
1099
|
-
transitionTimingFunction: J
|
|
1100
|
-
}
|
|
1101
|
-
}), $t = () => {
|
|
1102
|
-
const {
|
|
1103
|
-
xAxis: n
|
|
1104
|
-
} = K(), {
|
|
1105
|
-
yAxis: t
|
|
1106
|
-
} = X();
|
|
1107
|
-
return Mt(n, t);
|
|
1108
|
-
};
|
|
1109
|
-
function un(n) {
|
|
1110
|
-
const {
|
|
1111
|
-
slots: t,
|
|
1112
|
-
slotProps: i,
|
|
1113
|
-
skipAnimation: o,
|
|
1114
|
-
onItemClick: r
|
|
1115
|
-
} = n, s = F(n, Nt), c = ye(), a = he(c || o), u = $t();
|
|
1116
|
-
return /* @__PURE__ */ y.jsx(Et, T({}, s, {
|
|
1117
|
-
children: u.map(({
|
|
1118
|
-
d: f,
|
|
1119
|
-
seriesId: m,
|
|
1120
|
-
color: l,
|
|
1121
|
-
gradientId: d,
|
|
1122
|
-
hidden: p
|
|
1123
|
-
}) => /* @__PURE__ */ y.jsx(cn, {
|
|
1124
|
-
id: m,
|
|
1125
|
-
d: f,
|
|
1126
|
-
color: l,
|
|
1127
|
-
gradientId: d,
|
|
1128
|
-
hidden: p,
|
|
1129
|
-
skipAnimation: a,
|
|
1130
|
-
slots: t,
|
|
1131
|
-
slotProps: i,
|
|
1132
|
-
onClick: r && ((b) => r(b, {
|
|
1133
|
-
type: "line",
|
|
1134
|
-
seriesId: m
|
|
1135
|
-
}))
|
|
1136
|
-
}, m))
|
|
1137
|
-
}));
|
|
1138
|
-
}
|
|
1139
|
-
process.env.NODE_ENV !== "production" && (un.propTypes = {
|
|
1140
|
-
// ----------------------------- Warning --------------------------------
|
|
1141
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1142
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
1143
|
-
// ----------------------------------------------------------------------
|
|
1144
|
-
/**
|
|
1145
|
-
* Callback fired when a line item is clicked.
|
|
1146
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
1147
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line item identifier.
|
|
1148
|
-
*/
|
|
1149
|
-
onItemClick: e.func,
|
|
1150
|
-
/**
|
|
1151
|
-
* If `true`, animations are skipped.
|
|
1152
|
-
* @default false
|
|
1153
|
-
*/
|
|
1154
|
-
skipAnimation: e.bool,
|
|
1155
|
-
/**
|
|
1156
|
-
* The props used for each component slot.
|
|
1157
|
-
* @default {}
|
|
1158
|
-
*/
|
|
1159
|
-
slotProps: e.object,
|
|
1160
|
-
/**
|
|
1161
|
-
* Overridable component slots.
|
|
1162
|
-
* @default {}
|
|
1163
|
-
*/
|
|
1164
|
-
slots: e.object
|
|
1165
|
-
});
|
|
1166
|
-
function Ht(n) {
|
|
1167
|
-
return re("MuiMarkElement", n);
|
|
1168
|
-
}
|
|
1169
|
-
const fn = B("MuiMarkElement", ["root", "highlighted", "faded", "animate", "series"]), dn = (n) => {
|
|
1170
|
-
const {
|
|
1171
|
-
classes: t,
|
|
1172
|
-
id: i,
|
|
1173
|
-
isFaded: o,
|
|
1174
|
-
isHighlighted: r,
|
|
1175
|
-
skipAnimation: s
|
|
1176
|
-
} = n, c = {
|
|
1177
|
-
root: ["root", `series-${i}`, r && "highlighted", o && "faded", s ? void 0 : "animate"]
|
|
1178
|
-
};
|
|
1179
|
-
return se(c, Ht, t);
|
|
1180
|
-
}, Ft = ["x", "y", "id", "classes", "color", "dataIndex", "onClick", "skipAnimation", "isFaded", "isHighlighted", "shape", "hidden"], Gt = W("circle", {
|
|
1181
|
-
slot: "internal",
|
|
1182
|
-
shouldForwardProp: void 0
|
|
1183
|
-
})({
|
|
1184
|
-
[`&.${fn.animate}`]: {
|
|
1185
|
-
transitionDuration: `${Z}ms`,
|
|
1186
|
-
transitionProperty: "cx, cy, opacity",
|
|
1187
|
-
transitionTimingFunction: J
|
|
1188
|
-
}
|
|
1189
|
-
});
|
|
1190
|
-
function pn(n) {
|
|
1191
|
-
const {
|
|
1192
|
-
x: t,
|
|
1193
|
-
y: i,
|
|
1194
|
-
id: o,
|
|
1195
|
-
classes: r,
|
|
1196
|
-
color: s,
|
|
1197
|
-
dataIndex: c,
|
|
1198
|
-
onClick: a,
|
|
1199
|
-
skipAnimation: u,
|
|
1200
|
-
isFaded: f = !1,
|
|
1201
|
-
isHighlighted: m = !1,
|
|
1202
|
-
hidden: l
|
|
1203
|
-
} = n, d = F(n, Ft), p = Ie(), b = ae({
|
|
1204
|
-
type: "line",
|
|
1205
|
-
seriesId: o,
|
|
1206
|
-
dataIndex: c
|
|
1207
|
-
}), h = dn({
|
|
1208
|
-
id: o,
|
|
1209
|
-
classes: r,
|
|
1210
|
-
isHighlighted: m,
|
|
1211
|
-
isFaded: f,
|
|
1212
|
-
skipAnimation: u
|
|
1213
|
-
});
|
|
1214
|
-
return /* @__PURE__ */ y.jsx(Gt, T({}, d, {
|
|
1215
|
-
cx: t,
|
|
1216
|
-
cy: i,
|
|
1217
|
-
r: 5,
|
|
1218
|
-
fill: (p.vars || p).palette.background.paper,
|
|
1219
|
-
stroke: s,
|
|
1220
|
-
strokeWidth: 2,
|
|
1221
|
-
className: h.root,
|
|
1222
|
-
onClick: a,
|
|
1223
|
-
cursor: a ? "pointer" : "unset",
|
|
1224
|
-
pointerEvents: l ? "none" : void 0
|
|
1225
|
-
}, b, {
|
|
1226
|
-
"data-highlighted": m || void 0,
|
|
1227
|
-
"data-faded": f || void 0,
|
|
1228
|
-
opacity: l ? 0 : 1
|
|
1229
|
-
}));
|
|
1230
|
-
}
|
|
1231
|
-
process.env.NODE_ENV !== "production" && (pn.propTypes = {
|
|
1232
|
-
// ----------------------------- Warning --------------------------------
|
|
1233
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1234
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
1235
|
-
// ----------------------------------------------------------------------
|
|
1236
|
-
classes: e.object,
|
|
1237
|
-
/**
|
|
1238
|
-
* The index to the element in the series' data array.
|
|
1239
|
-
*/
|
|
1240
|
-
dataIndex: e.number.isRequired,
|
|
1241
|
-
id: e.oneOfType([e.number, e.string]).isRequired,
|
|
1242
|
-
/**
|
|
1243
|
-
* The shape of the marker.
|
|
1244
|
-
*/
|
|
1245
|
-
shape: e.oneOf(["circle", "cross", "diamond", "square", "star", "triangle", "wye"]).isRequired,
|
|
1246
|
-
/**
|
|
1247
|
-
* If `true`, animations are skipped.
|
|
1248
|
-
* @default false
|
|
1249
|
-
*/
|
|
1250
|
-
skipAnimation: e.bool
|
|
1251
|
-
});
|
|
1252
|
-
function bn(n) {
|
|
1253
|
-
switch (n) {
|
|
1254
|
-
case "circle":
|
|
1255
|
-
return 0;
|
|
1256
|
-
case "cross":
|
|
1257
|
-
return 1;
|
|
1258
|
-
case "diamond":
|
|
1259
|
-
return 2;
|
|
1260
|
-
case "square":
|
|
1261
|
-
return 3;
|
|
1262
|
-
case "star":
|
|
1263
|
-
return 4;
|
|
1264
|
-
case "triangle":
|
|
1265
|
-
return 5;
|
|
1266
|
-
case "wye":
|
|
1267
|
-
return 6;
|
|
1268
|
-
default:
|
|
1269
|
-
return 0;
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
const zt = ["x", "y", "id", "classes", "color", "shape", "dataIndex", "onClick", "skipAnimation", "isFaded", "isHighlighted", "hidden", "style"], Vt = W("path", {
|
|
1273
|
-
name: "MuiMarkElement",
|
|
1274
|
-
slot: "Root"
|
|
1275
|
-
})(({
|
|
1276
|
-
theme: n
|
|
1277
|
-
}) => ({
|
|
1278
|
-
fill: (n.vars || n).palette.background.paper,
|
|
1279
|
-
[`&.${fn.animate}`]: {
|
|
1280
|
-
transitionDuration: `${Z}ms`,
|
|
1281
|
-
transitionProperty: "transform, transform-origin, opacity",
|
|
1282
|
-
transitionTimingFunction: J
|
|
1283
|
-
}
|
|
1284
|
-
}));
|
|
1285
|
-
function hn(n) {
|
|
1286
|
-
const {
|
|
1287
|
-
x: t,
|
|
1288
|
-
y: i,
|
|
1289
|
-
id: o,
|
|
1290
|
-
classes: r,
|
|
1291
|
-
color: s,
|
|
1292
|
-
shape: c,
|
|
1293
|
-
dataIndex: a,
|
|
1294
|
-
onClick: u,
|
|
1295
|
-
skipAnimation: f,
|
|
1296
|
-
isFaded: m = !1,
|
|
1297
|
-
isHighlighted: l = !1,
|
|
1298
|
-
hidden: d,
|
|
1299
|
-
style: p
|
|
1300
|
-
} = n, b = F(n, zt), k = ae({
|
|
1301
|
-
type: "line",
|
|
1302
|
-
seriesId: o,
|
|
1303
|
-
dataIndex: a
|
|
1304
|
-
}), h = {
|
|
1305
|
-
id: o,
|
|
1306
|
-
classes: r,
|
|
1307
|
-
isHighlighted: l,
|
|
1308
|
-
isFaded: m,
|
|
1309
|
-
skipAnimation: f
|
|
1310
|
-
}, O = dn(h);
|
|
1311
|
-
return /* @__PURE__ */ y.jsx(Vt, T({}, b, {
|
|
1312
|
-
style: T({}, p, {
|
|
1313
|
-
transform: `translate(${t}px, ${i}px)`,
|
|
1314
|
-
transformOrigin: `${t}px ${i}px`
|
|
1315
|
-
}),
|
|
1316
|
-
ownerState: h,
|
|
1317
|
-
className: O.root,
|
|
1318
|
-
d: Be(We[bn(c)])(),
|
|
1319
|
-
onClick: u,
|
|
1320
|
-
cursor: u ? "pointer" : "unset",
|
|
1321
|
-
pointerEvents: d ? "none" : void 0
|
|
1322
|
-
}, k, {
|
|
1323
|
-
"data-highlighted": l || void 0,
|
|
1324
|
-
"data-faded": m || void 0,
|
|
1325
|
-
opacity: d ? 0 : 1,
|
|
1326
|
-
strokeWidth: 2,
|
|
1327
|
-
stroke: s
|
|
1328
|
-
}));
|
|
1329
|
-
}
|
|
1330
|
-
process.env.NODE_ENV !== "production" && (hn.propTypes = {
|
|
1331
|
-
// ----------------------------- Warning --------------------------------
|
|
1332
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1333
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
1334
|
-
// ----------------------------------------------------------------------
|
|
1335
|
-
classes: e.object,
|
|
1336
|
-
/**
|
|
1337
|
-
* The index to the element in the series' data array.
|
|
1338
|
-
*/
|
|
1339
|
-
dataIndex: e.number.isRequired,
|
|
1340
|
-
/**
|
|
1341
|
-
* If `true`, the marker is hidden.
|
|
1342
|
-
* @default false
|
|
1343
|
-
*/
|
|
1344
|
-
hidden: e.bool,
|
|
1345
|
-
id: e.oneOfType([e.number, e.string]).isRequired,
|
|
1346
|
-
/**
|
|
1347
|
-
* If `true`, the marker is faded.
|
|
1348
|
-
* @default false
|
|
1349
|
-
*/
|
|
1350
|
-
isFaded: e.bool,
|
|
1351
|
-
/**
|
|
1352
|
-
* If `true`, the marker is highlighted.
|
|
1353
|
-
* @default false
|
|
1354
|
-
*/
|
|
1355
|
-
isHighlighted: e.bool,
|
|
1356
|
-
/**
|
|
1357
|
-
* The shape of the marker.
|
|
1358
|
-
*/
|
|
1359
|
-
shape: e.oneOf(["circle", "cross", "diamond", "square", "star", "triangle", "wye"]).isRequired,
|
|
1360
|
-
/**
|
|
1361
|
-
* If `true`, animations are skipped.
|
|
1362
|
-
*/
|
|
1363
|
-
skipAnimation: e.bool
|
|
1364
|
-
});
|
|
1365
|
-
function Ut(n, t) {
|
|
1366
|
-
const i = ee(), o = K().xAxisIds[0], r = X().yAxisIds[0], s = Ne(), {
|
|
1367
|
-
instance: c
|
|
1368
|
-
} = me();
|
|
1369
|
-
return U.useMemo(() => {
|
|
1370
|
-
if (i === void 0)
|
|
1371
|
-
return [];
|
|
1372
|
-
const {
|
|
1373
|
-
series: u,
|
|
1374
|
-
stackingGroups: f
|
|
1375
|
-
} = i, m = [];
|
|
1376
|
-
for (const l of f) {
|
|
1377
|
-
const d = l.ids;
|
|
1378
|
-
for (const p of d) {
|
|
1379
|
-
const {
|
|
1380
|
-
xAxisId: b = o,
|
|
1381
|
-
yAxisId: k = r,
|
|
1382
|
-
visibleStackedData: h,
|
|
1383
|
-
data: O,
|
|
1384
|
-
showMark: g = !0,
|
|
1385
|
-
shape: S = "circle",
|
|
1386
|
-
hidden: q
|
|
1387
|
-
} = u[p];
|
|
1388
|
-
if (g === !1 || !(b in n) || !(k in t))
|
|
1389
|
-
continue;
|
|
1390
|
-
const x = ce(n[b].scale), C = t[k].scale, L = n[b].data;
|
|
1391
|
-
if (process.env.NODE_ENV !== "production" && L === void 0)
|
|
1392
|
-
throw new Error(`MUI X Charts: ${b === Q ? "The first `xAxis`" : `The x-axis with id "${b}"`} should have data property to be able to display a line plot.`);
|
|
1393
|
-
const P = nn(`${s}-${p}-line-clip`), G = $e(u[p], n[b], t[k]), A = [];
|
|
1394
|
-
if (L)
|
|
1395
|
-
for (let R = 0; R < L.length; R += 1) {
|
|
1396
|
-
const M = L[R], w = O[R] == null ? null : h[R][1];
|
|
1397
|
-
if (w === null)
|
|
1398
|
-
continue;
|
|
1399
|
-
const N = C(q ? C.domain()[0] : w), E = x(M);
|
|
1400
|
-
c.isPointInside(E, N) && (g !== !0 && !g({
|
|
1401
|
-
x: E,
|
|
1402
|
-
y: N,
|
|
1403
|
-
index: R,
|
|
1404
|
-
position: M,
|
|
1405
|
-
value: w
|
|
1406
|
-
}) || A.push({
|
|
1407
|
-
x: E,
|
|
1408
|
-
y: N,
|
|
1409
|
-
index: R,
|
|
1410
|
-
color: G(R)
|
|
1411
|
-
}));
|
|
1412
|
-
}
|
|
1413
|
-
m.push({
|
|
1414
|
-
seriesId: p,
|
|
1415
|
-
clipId: P,
|
|
1416
|
-
shape: S,
|
|
1417
|
-
xAxisId: b,
|
|
1418
|
-
marks: A,
|
|
1419
|
-
hidden: q
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
return m;
|
|
1424
|
-
}, [i, o, r, s, n, t, c]);
|
|
1425
|
-
}
|
|
1426
|
-
const Kt = ["slots", "slotProps", "skipAnimation", "onItemClick"];
|
|
1427
|
-
function mn(n) {
|
|
1428
|
-
const {
|
|
1429
|
-
slots: t,
|
|
1430
|
-
slotProps: i,
|
|
1431
|
-
skipAnimation: o,
|
|
1432
|
-
onItemClick: r
|
|
1433
|
-
} = n, s = F(n, Kt), c = ye(), a = he(c || o), {
|
|
1434
|
-
xAxis: u
|
|
1435
|
-
} = K(), {
|
|
1436
|
-
yAxis: f
|
|
1437
|
-
} = X(), {
|
|
1438
|
-
store: m
|
|
1439
|
-
} = me(), {
|
|
1440
|
-
isFaded: l,
|
|
1441
|
-
isHighlighted: d
|
|
1442
|
-
} = Wn(), p = m.use(He), b = U.useMemo(() => {
|
|
1443
|
-
const h = {};
|
|
1444
|
-
for (const {
|
|
1445
|
-
dataIndex: O,
|
|
1446
|
-
axisId: g
|
|
1447
|
-
} of p)
|
|
1448
|
-
h[g] === void 0 ? h[g] = /* @__PURE__ */ new Set([O]) : h[g].add(O);
|
|
1449
|
-
return h;
|
|
1450
|
-
}, [p]), k = Ut(u, f);
|
|
1451
|
-
return /* @__PURE__ */ y.jsx("g", T({}, s, {
|
|
1452
|
-
children: k.map(({
|
|
1453
|
-
seriesId: h,
|
|
1454
|
-
clipId: O,
|
|
1455
|
-
shape: g,
|
|
1456
|
-
xAxisId: S,
|
|
1457
|
-
marks: q,
|
|
1458
|
-
hidden: x
|
|
1459
|
-
}) => {
|
|
1460
|
-
const C = t?.mark ?? (g === "circle" ? pn : hn), L = d({
|
|
1461
|
-
seriesId: h
|
|
1462
|
-
}), P = !L && l({
|
|
1463
|
-
seriesId: h
|
|
1464
|
-
});
|
|
1465
|
-
return /* @__PURE__ */ y.jsx("g", {
|
|
1466
|
-
clipPath: `url(#${O})`,
|
|
1467
|
-
"data-series": h,
|
|
1468
|
-
children: q.map(({
|
|
1469
|
-
x: G,
|
|
1470
|
-
y: A,
|
|
1471
|
-
index: R,
|
|
1472
|
-
color: M
|
|
1473
|
-
}) => /* @__PURE__ */ y.jsx(C, T({
|
|
1474
|
-
id: h,
|
|
1475
|
-
dataIndex: R,
|
|
1476
|
-
shape: g,
|
|
1477
|
-
color: M,
|
|
1478
|
-
x: G,
|
|
1479
|
-
y: A,
|
|
1480
|
-
skipAnimation: a,
|
|
1481
|
-
onClick: r && ((w) => r(w, {
|
|
1482
|
-
type: "line",
|
|
1483
|
-
seriesId: h,
|
|
1484
|
-
dataIndex: R
|
|
1485
|
-
})),
|
|
1486
|
-
isHighlighted: b[S]?.has(R) || L,
|
|
1487
|
-
isFaded: P,
|
|
1488
|
-
hidden: x
|
|
1489
|
-
}, i?.mark), `${h}-${R}`))
|
|
1490
|
-
}, h);
|
|
1491
|
-
})
|
|
1492
|
-
}));
|
|
1493
|
-
}
|
|
1494
|
-
process.env.NODE_ENV !== "production" && (mn.propTypes = {
|
|
1495
|
-
// ----------------------------- Warning --------------------------------
|
|
1496
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1497
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
1498
|
-
// ----------------------------------------------------------------------
|
|
1499
|
-
/**
|
|
1500
|
-
* Callback fired when a line mark item is clicked.
|
|
1501
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
1502
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line mark item identifier.
|
|
1503
|
-
*/
|
|
1504
|
-
onItemClick: e.func,
|
|
1505
|
-
/**
|
|
1506
|
-
* If `true`, animations are skipped.
|
|
1507
|
-
*/
|
|
1508
|
-
skipAnimation: e.bool,
|
|
1509
|
-
/**
|
|
1510
|
-
* The props used for each component slot.
|
|
1511
|
-
* @default {}
|
|
1512
|
-
*/
|
|
1513
|
-
slotProps: e.object,
|
|
1514
|
-
/**
|
|
1515
|
-
* Overridable component slots.
|
|
1516
|
-
* @default {}
|
|
1517
|
-
*/
|
|
1518
|
-
slots: e.object
|
|
1519
|
-
});
|
|
1520
|
-
const Xt = ["x", "y", "id", "classes", "color", "shape"];
|
|
1521
|
-
function Yt(n) {
|
|
1522
|
-
return re("MuiHighlightElement", n);
|
|
1523
|
-
}
|
|
1524
|
-
const ui = B("MuiHighlightElement", ["root"]), Wt = (n) => {
|
|
1525
|
-
const {
|
|
1526
|
-
classes: t,
|
|
1527
|
-
id: i
|
|
1528
|
-
} = n, o = {
|
|
1529
|
-
root: ["root", `series-${i}`]
|
|
1530
|
-
};
|
|
1531
|
-
return se(o, Yt, t);
|
|
1532
|
-
};
|
|
1533
|
-
function yn(n) {
|
|
1534
|
-
const {
|
|
1535
|
-
x: t,
|
|
1536
|
-
y: i,
|
|
1537
|
-
color: o,
|
|
1538
|
-
shape: r
|
|
1539
|
-
} = n, s = F(n, Xt), c = Wt(n), a = r === "circle" ? "circle" : "path", u = r === "circle" ? {
|
|
1540
|
-
cx: 0,
|
|
1541
|
-
cy: 0,
|
|
1542
|
-
r: s.r === void 0 ? 5 : s.r
|
|
1543
|
-
} : {
|
|
1544
|
-
d: Be(We[bn(r)])()
|
|
1545
|
-
}, f = Zn > 18 ? {
|
|
1546
|
-
transformOrigin: `${t} ${i}`
|
|
1547
|
-
} : {
|
|
1548
|
-
"transform-origin": `${t} ${i}`
|
|
1549
|
-
};
|
|
1550
|
-
return /* @__PURE__ */ y.jsx(a, T({
|
|
1551
|
-
pointerEvents: "none",
|
|
1552
|
-
className: c.root,
|
|
1553
|
-
transform: `translate(${t} ${i})`,
|
|
1554
|
-
fill: o
|
|
1555
|
-
}, f, u, s));
|
|
1556
|
-
}
|
|
1557
|
-
process.env.NODE_ENV !== "production" && (yn.propTypes = {
|
|
1558
|
-
// ----------------------------- Warning --------------------------------
|
|
1559
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1560
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
1561
|
-
// ----------------------------------------------------------------------
|
|
1562
|
-
classes: e.object,
|
|
1563
|
-
id: e.oneOfType([e.number, e.string]).isRequired,
|
|
1564
|
-
shape: e.oneOf(["circle", "cross", "diamond", "square", "star", "triangle", "wye"]).isRequired
|
|
1565
|
-
});
|
|
1566
|
-
const Bt = ["slots", "slotProps"];
|
|
1567
|
-
function On(n) {
|
|
1568
|
-
const {
|
|
1569
|
-
slots: t,
|
|
1570
|
-
slotProps: i
|
|
1571
|
-
} = n, o = F(n, Bt), r = ee(), {
|
|
1572
|
-
xAxis: s,
|
|
1573
|
-
xAxisIds: c
|
|
1574
|
-
} = K(), {
|
|
1575
|
-
yAxis: a,
|
|
1576
|
-
yAxisIds: u
|
|
1577
|
-
} = X(), {
|
|
1578
|
-
instance: f
|
|
1579
|
-
} = me(), l = Cn().use(He);
|
|
1580
|
-
if (l.length === 0 || r === void 0)
|
|
1581
|
-
return null;
|
|
1582
|
-
const {
|
|
1583
|
-
series: d,
|
|
1584
|
-
stackingGroups: p
|
|
1585
|
-
} = r, b = c[0], k = u[0], h = t?.lineHighlight ?? yn;
|
|
1586
|
-
return /* @__PURE__ */ y.jsx("g", T({}, o, {
|
|
1587
|
-
children: l.flatMap(({
|
|
1588
|
-
dataIndex: O,
|
|
1589
|
-
axisId: g
|
|
1590
|
-
}) => p.flatMap(({
|
|
1591
|
-
ids: S
|
|
1592
|
-
}) => S.flatMap((q) => {
|
|
1593
|
-
const {
|
|
1594
|
-
xAxisId: x = b,
|
|
1595
|
-
yAxisId: C = k,
|
|
1596
|
-
visibleStackedData: L,
|
|
1597
|
-
data: P,
|
|
1598
|
-
disableHighlight: G,
|
|
1599
|
-
shape: A = "circle"
|
|
1600
|
-
} = d[q];
|
|
1601
|
-
if (G || P[O] == null || g !== x)
|
|
1602
|
-
return null;
|
|
1603
|
-
const R = ce(s[x].scale), M = a[C].scale, w = s[x].data;
|
|
1604
|
-
if (w === void 0)
|
|
1605
|
-
throw new Error(`MUI X Charts: ${x === Q ? "The first `xAxis`" : `The x-axis with id "${x}"`} should have data property to be able to display a line plot.`);
|
|
1606
|
-
const N = R(w[O]), E = M(L[O][1]);
|
|
1607
|
-
if (!f.isPointInside(N, E))
|
|
1608
|
-
return null;
|
|
1609
|
-
const v = $e(d[q], s[x], a[C]);
|
|
1610
|
-
return /* @__PURE__ */ y.jsx(h, T({
|
|
1611
|
-
id: q,
|
|
1612
|
-
color: v(O),
|
|
1613
|
-
x: N,
|
|
1614
|
-
y: E,
|
|
1615
|
-
shape: A
|
|
1616
|
-
}, i?.lineHighlight), `${q}`);
|
|
1617
|
-
})))
|
|
1618
|
-
}));
|
|
1619
|
-
}
|
|
1620
|
-
process.env.NODE_ENV !== "production" && (On.propTypes = {
|
|
1621
|
-
// ----------------------------- Warning --------------------------------
|
|
1622
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1623
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
1624
|
-
// ----------------------------------------------------------------------
|
|
1625
|
-
/**
|
|
1626
|
-
* The props used for each component slot.
|
|
1627
|
-
* @default {}
|
|
1628
|
-
*/
|
|
1629
|
-
slotProps: e.object,
|
|
1630
|
-
/**
|
|
1631
|
-
* Overridable component slots.
|
|
1632
|
-
* @default {}
|
|
1633
|
-
*/
|
|
1634
|
-
slots: e.object
|
|
1635
|
-
});
|
|
1636
|
-
const Zt = [Dn, Mn, Nn, En, $n, Hn, Fn, Gn], Jt = ["xAxis", "yAxis", "series", "width", "height", "margin", "colors", "dataset", "sx", "onAreaClick", "onLineClick", "onMarkClick", "axisHighlight", "disableLineItemHighlight", "hideLegend", "grid", "children", "slots", "slotProps", "skipAnimation", "loading", "highlightedItem", "onHighlightChange", "className", "showToolbar", "brushConfig"], Qt = (n) => {
|
|
1637
|
-
const {
|
|
1638
|
-
xAxis: t,
|
|
1639
|
-
yAxis: i,
|
|
1640
|
-
series: o,
|
|
1641
|
-
width: r,
|
|
1642
|
-
height: s,
|
|
1643
|
-
margin: c,
|
|
1644
|
-
colors: a,
|
|
1645
|
-
dataset: u,
|
|
1646
|
-
sx: f,
|
|
1647
|
-
onAreaClick: m,
|
|
1648
|
-
onLineClick: l,
|
|
1649
|
-
onMarkClick: d,
|
|
1650
|
-
axisHighlight: p,
|
|
1651
|
-
disableLineItemHighlight: b,
|
|
1652
|
-
grid: k,
|
|
1653
|
-
children: h,
|
|
1654
|
-
slots: O,
|
|
1655
|
-
slotProps: g,
|
|
1656
|
-
skipAnimation: S,
|
|
1657
|
-
loading: q,
|
|
1658
|
-
highlightedItem: x,
|
|
1659
|
-
onHighlightChange: C,
|
|
1660
|
-
className: L,
|
|
1661
|
-
brushConfig: P
|
|
1662
|
-
} = n, G = F(n, Jt), R = `${qn()}-clip-path`, M = U.useMemo(() => o.map((ne) => T({
|
|
1663
|
-
disableHighlight: !!b,
|
|
1664
|
-
type: "line"
|
|
1665
|
-
}, ne)), [b, o]), w = T({}, G, {
|
|
1666
|
-
series: M,
|
|
1667
|
-
width: r,
|
|
1668
|
-
height: s,
|
|
1669
|
-
margin: c,
|
|
1670
|
-
colors: a,
|
|
1671
|
-
dataset: u,
|
|
1672
|
-
xAxis: t ?? [{
|
|
1673
|
-
id: Q,
|
|
1674
|
-
scaleType: "point",
|
|
1675
|
-
data: Array.from({
|
|
1676
|
-
length: Math.max(...o.map((ne) => (ne.data ?? u ?? []).length))
|
|
1677
|
-
}, (ne, xn) => xn)
|
|
1678
|
-
}],
|
|
1679
|
-
yAxis: i,
|
|
1680
|
-
highlightedItem: x,
|
|
1681
|
-
onHighlightChange: C,
|
|
1682
|
-
disableAxisListener: g?.tooltip?.trigger !== "axis" && p?.x === "none" && p?.y === "none",
|
|
1683
|
-
className: L,
|
|
1684
|
-
skipAnimation: S,
|
|
1685
|
-
brushConfig: P,
|
|
1686
|
-
plugins: Zt
|
|
1687
|
-
}), N = {
|
|
1688
|
-
vertical: k?.vertical,
|
|
1689
|
-
horizontal: k?.horizontal
|
|
1690
|
-
}, E = {
|
|
1691
|
-
clipPath: `url(#${R})`
|
|
1692
|
-
}, v = {
|
|
1693
|
-
id: R
|
|
1694
|
-
}, D = {
|
|
1695
|
-
slots: O,
|
|
1696
|
-
slotProps: g,
|
|
1697
|
-
onItemClick: m
|
|
1698
|
-
}, _ = {
|
|
1699
|
-
slots: O,
|
|
1700
|
-
slotProps: g,
|
|
1701
|
-
onItemClick: l
|
|
1702
|
-
}, I = {
|
|
1703
|
-
slots: O,
|
|
1704
|
-
slotProps: g,
|
|
1705
|
-
onItemClick: d,
|
|
1706
|
-
skipAnimation: S
|
|
1707
|
-
}, V = {
|
|
1708
|
-
slots: O,
|
|
1709
|
-
slotProps: g,
|
|
1710
|
-
loading: q
|
|
1711
|
-
}, Y = {
|
|
1712
|
-
slots: O,
|
|
1713
|
-
slotProps: g
|
|
1714
|
-
}, Tn = T({
|
|
1715
|
-
x: "line"
|
|
1716
|
-
}, p), kn = {
|
|
1717
|
-
slots: O,
|
|
1718
|
-
slotProps: g
|
|
1719
|
-
}, _n = {
|
|
1720
|
-
slots: O,
|
|
1721
|
-
slotProps: g
|
|
1722
|
-
};
|
|
1723
|
-
return {
|
|
1724
|
-
chartsWrapperProps: {
|
|
1725
|
-
sx: f,
|
|
1726
|
-
legendPosition: n.slotProps?.legend?.position,
|
|
1727
|
-
legendDirection: n.slotProps?.legend?.direction,
|
|
1728
|
-
hideLegend: n.hideLegend ?? !1
|
|
1729
|
-
},
|
|
1730
|
-
chartContainerProps: w,
|
|
1731
|
-
gridProps: N,
|
|
1732
|
-
clipPathProps: v,
|
|
1733
|
-
clipPathGroupProps: E,
|
|
1734
|
-
areaPlotProps: D,
|
|
1735
|
-
linePlotProps: _,
|
|
1736
|
-
markPlotProps: I,
|
|
1737
|
-
overlayProps: V,
|
|
1738
|
-
chartsAxisProps: Y,
|
|
1739
|
-
axisHighlightProps: Tn,
|
|
1740
|
-
lineHighlightPlotProps: kn,
|
|
1741
|
-
legendProps: _n,
|
|
1742
|
-
children: h
|
|
1743
|
-
};
|
|
1744
|
-
}, te = 6;
|
|
1745
|
-
function ei() {
|
|
1746
|
-
const n = Ie(), t = vn(), i = ee(), {
|
|
1747
|
-
xAxis: o,
|
|
1748
|
-
xAxisIds: r
|
|
1749
|
-
} = K(), {
|
|
1750
|
-
yAxis: s,
|
|
1751
|
-
yAxisIds: c
|
|
1752
|
-
} = X();
|
|
1753
|
-
if (t === null || t.type !== "line" || !i)
|
|
1754
|
-
return null;
|
|
1755
|
-
const a = i.series[t.seriesId];
|
|
1756
|
-
if (a.data[t.dataIndex] == null)
|
|
1757
|
-
return null;
|
|
1758
|
-
const u = a.xAxisId ?? r[0], f = a.yAxisId ?? c[0];
|
|
1759
|
-
return /* @__PURE__ */ y.jsx("rect", {
|
|
1760
|
-
fill: "none",
|
|
1761
|
-
stroke: (n.vars ?? n).palette.text.primary,
|
|
1762
|
-
strokeWidth: 2,
|
|
1763
|
-
x: o[u].scale(o[u].data[t.dataIndex]) - te,
|
|
1764
|
-
y: s[f].scale(a.visibleStackedData[t.dataIndex][1]) - te,
|
|
1765
|
-
width: 2 * te,
|
|
1766
|
-
height: 2 * te,
|
|
1767
|
-
rx: 3,
|
|
1768
|
-
ry: 3
|
|
1769
|
-
});
|
|
1770
|
-
}
|
|
1771
|
-
const gn = /* @__PURE__ */ U.forwardRef(function(t, i) {
|
|
1772
|
-
const o = jn({
|
|
1773
|
-
props: t,
|
|
1774
|
-
name: "MuiLineChart"
|
|
1775
|
-
}), {
|
|
1776
|
-
chartsWrapperProps: r,
|
|
1777
|
-
chartContainerProps: s,
|
|
1778
|
-
gridProps: c,
|
|
1779
|
-
clipPathProps: a,
|
|
1780
|
-
clipPathGroupProps: u,
|
|
1781
|
-
areaPlotProps: f,
|
|
1782
|
-
linePlotProps: m,
|
|
1783
|
-
markPlotProps: l,
|
|
1784
|
-
overlayProps: d,
|
|
1785
|
-
chartsAxisProps: p,
|
|
1786
|
-
axisHighlightProps: b,
|
|
1787
|
-
lineHighlightPlotProps: k,
|
|
1788
|
-
legendProps: h,
|
|
1789
|
-
children: O
|
|
1790
|
-
} = Qt(o), {
|
|
1791
|
-
chartDataProviderProps: g,
|
|
1792
|
-
chartsSurfaceProps: S
|
|
1793
|
-
} = zn(s, i), q = o.slots?.tooltip ?? Sn, x = o.slots?.toolbar;
|
|
1794
|
-
return /* @__PURE__ */ y.jsx(Vn, T({}, g, {
|
|
1795
|
-
children: /* @__PURE__ */ y.jsxs(In, T({}, r, {
|
|
1796
|
-
children: [o.showToolbar && x ? /* @__PURE__ */ y.jsx(x, T({}, o.slotProps?.toolbar)) : null, !o.hideLegend && /* @__PURE__ */ y.jsx(Ln, T({}, h)), /* @__PURE__ */ y.jsxs(Un, T({}, S, {
|
|
1797
|
-
children: [/* @__PURE__ */ y.jsx(Kn, T({}, c)), /* @__PURE__ */ y.jsxs("g", T({}, u, {
|
|
1798
|
-
children: [/* @__PURE__ */ y.jsx(ln, T({}, f)), /* @__PURE__ */ y.jsx(un, T({}, m)), /* @__PURE__ */ y.jsx(An, T({}, d)), /* @__PURE__ */ y.jsx(Xn, T({}, b))]
|
|
1799
|
-
})), /* @__PURE__ */ y.jsx(ei, {}), /* @__PURE__ */ y.jsx(Bn, T({}, p)), /* @__PURE__ */ y.jsx("g", {
|
|
1800
|
-
"data-drawing-container": !0,
|
|
1801
|
-
children: /* @__PURE__ */ y.jsx(mn, T({}, l))
|
|
1802
|
-
}), /* @__PURE__ */ y.jsx(On, T({}, k)), /* @__PURE__ */ y.jsx(Yn, T({}, a)), O]
|
|
1803
|
-
})), !o.loading && /* @__PURE__ */ y.jsx(q, T({}, o.slotProps?.tooltip))]
|
|
1804
|
-
}))
|
|
1805
|
-
}));
|
|
1806
|
-
});
|
|
1807
|
-
process.env.NODE_ENV !== "production" && (gn.displayName = "LineChart");
|
|
1808
|
-
process.env.NODE_ENV !== "production" && (gn.propTypes = {
|
|
1809
|
-
// ----------------------------- Warning --------------------------------
|
|
1810
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1811
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
1812
|
-
// ----------------------------------------------------------------------
|
|
1813
|
-
apiRef: e.shape({
|
|
1814
|
-
current: e.object
|
|
1815
|
-
}),
|
|
1816
|
-
/**
|
|
1817
|
-
* The configuration of axes highlight.
|
|
1818
|
-
* @see See {@link https://mui.com/x/react-charts/highlighting/ highlighting docs} for more details.
|
|
1819
|
-
* @default { x: 'line' }
|
|
1820
|
-
*/
|
|
1821
|
-
axisHighlight: e.shape({
|
|
1822
|
-
x: e.oneOf(["band", "line", "none"]),
|
|
1823
|
-
y: e.oneOf(["band", "line", "none"])
|
|
1824
|
-
}),
|
|
1825
|
-
/**
|
|
1826
|
-
* Configuration for the brush interaction.
|
|
1827
|
-
*/
|
|
1828
|
-
brushConfig: e.shape({
|
|
1829
|
-
enabled: e.bool,
|
|
1830
|
-
preventHighlight: e.bool,
|
|
1831
|
-
preventTooltip: e.bool
|
|
1832
|
-
}),
|
|
1833
|
-
children: e.node,
|
|
1834
|
-
className: e.string,
|
|
1835
|
-
/**
|
|
1836
|
-
* Color palette used to colorize multiple series.
|
|
1837
|
-
* @default rainbowSurgePalette
|
|
1838
|
-
*/
|
|
1839
|
-
colors: e.oneOfType([e.arrayOf(e.string), e.func]),
|
|
1840
|
-
/**
|
|
1841
|
-
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
1842
|
-
*/
|
|
1843
|
-
dataset: e.arrayOf(e.object),
|
|
1844
|
-
desc: e.string,
|
|
1845
|
-
/**
|
|
1846
|
-
* If `true`, the charts will not listen to the mouse move event.
|
|
1847
|
-
* It might break interactive features, but will improve performance.
|
|
1848
|
-
* @default false
|
|
1849
|
-
*/
|
|
1850
|
-
disableAxisListener: e.bool,
|
|
1851
|
-
/**
|
|
1852
|
-
* If `true`, render the line highlight item.
|
|
1853
|
-
*/
|
|
1854
|
-
disableLineItemHighlight: e.bool,
|
|
1855
|
-
enableKeyboardNavigation: e.bool,
|
|
1856
|
-
/**
|
|
1857
|
-
* Options to enable features planned for the next major.
|
|
1858
|
-
*/
|
|
1859
|
-
experimentalFeatures: e.shape({
|
|
1860
|
-
preferStrictDomainInLineCharts: e.bool
|
|
1861
|
-
}),
|
|
1862
|
-
/**
|
|
1863
|
-
* Option to display a cartesian grid in the background.
|
|
1864
|
-
*/
|
|
1865
|
-
grid: e.shape({
|
|
1866
|
-
horizontal: e.bool,
|
|
1867
|
-
vertical: e.bool
|
|
1868
|
-
}),
|
|
1869
|
-
/**
|
|
1870
|
-
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
1871
|
-
*/
|
|
1872
|
-
height: e.number,
|
|
1873
|
-
/**
|
|
1874
|
-
* List of hidden series and/or items.
|
|
1875
|
-
*
|
|
1876
|
-
* Different chart types use different keys.
|
|
1877
|
-
*
|
|
1878
|
-
* @example
|
|
1879
|
-
* ```ts
|
|
1880
|
-
* [
|
|
1881
|
-
* {
|
|
1882
|
-
* type: 'pie',
|
|
1883
|
-
* seriesId: 'series-1',
|
|
1884
|
-
* dataIndex: 3,
|
|
1885
|
-
* },
|
|
1886
|
-
* {
|
|
1887
|
-
* type: 'line',
|
|
1888
|
-
* seriesId: 'series-2',
|
|
1889
|
-
* }
|
|
1890
|
-
* ]
|
|
1891
|
-
* ```
|
|
1892
|
-
*/
|
|
1893
|
-
hiddenItems: e.arrayOf(e.shape({
|
|
1894
|
-
dataIndex: e.number,
|
|
1895
|
-
seriesId: e.oneOfType([e.number, e.string]),
|
|
1896
|
-
type: e.oneOf(["line"]).isRequired
|
|
1897
|
-
})),
|
|
1898
|
-
/**
|
|
1899
|
-
* If `true`, the legend is not rendered.
|
|
1900
|
-
*/
|
|
1901
|
-
hideLegend: e.bool,
|
|
1902
|
-
/**
|
|
1903
|
-
* The controlled axis highlight.
|
|
1904
|
-
* Identified by the axis id, and data index.
|
|
1905
|
-
*/
|
|
1906
|
-
highlightedAxis: e.arrayOf(e.shape({
|
|
1907
|
-
axisId: e.oneOfType([e.number, e.string]).isRequired,
|
|
1908
|
-
dataIndex: e.number.isRequired
|
|
1909
|
-
})),
|
|
1910
|
-
/**
|
|
1911
|
-
* The highlighted item.
|
|
1912
|
-
* Used when the highlight is controlled.
|
|
1913
|
-
*/
|
|
1914
|
-
highlightedItem: e.shape({
|
|
1915
|
-
dataIndex: e.number,
|
|
1916
|
-
seriesId: e.oneOfType([e.number, e.string]).isRequired
|
|
1917
|
-
}),
|
|
1918
|
-
/**
|
|
1919
|
-
* This prop is used to help implement the accessibility logic.
|
|
1920
|
-
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
1921
|
-
*/
|
|
1922
|
-
id: e.string,
|
|
1923
|
-
/**
|
|
1924
|
-
* List of initially hidden series and/or items.
|
|
1925
|
-
* Used for uncontrolled state.
|
|
1926
|
-
*
|
|
1927
|
-
* Different chart types use different keys.
|
|
1928
|
-
*
|
|
1929
|
-
* @example
|
|
1930
|
-
* ```ts
|
|
1931
|
-
* [
|
|
1932
|
-
* {
|
|
1933
|
-
* type: 'pie',
|
|
1934
|
-
* seriesId: 'series-1',
|
|
1935
|
-
* dataIndex: 3,
|
|
1936
|
-
* },
|
|
1937
|
-
* {
|
|
1938
|
-
* type: 'line',
|
|
1939
|
-
* seriesId: 'series-2',
|
|
1940
|
-
* }
|
|
1941
|
-
* ]
|
|
1942
|
-
* ```
|
|
1943
|
-
*/
|
|
1944
|
-
initialHiddenItems: e.arrayOf(e.shape({
|
|
1945
|
-
dataIndex: e.number,
|
|
1946
|
-
seriesId: e.oneOfType([e.number, e.string]),
|
|
1947
|
-
type: e.oneOf(["line"]).isRequired
|
|
1948
|
-
})),
|
|
1949
|
-
/**
|
|
1950
|
-
* If `true`, a loading overlay is displayed.
|
|
1951
|
-
* @default false
|
|
1952
|
-
*/
|
|
1953
|
-
loading: e.bool,
|
|
1954
|
-
/**
|
|
1955
|
-
* Localized text for chart components.
|
|
1956
|
-
*/
|
|
1957
|
-
localeText: e.object,
|
|
1958
|
-
/**
|
|
1959
|
-
* The margin between the SVG and the drawing area.
|
|
1960
|
-
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
1961
|
-
*
|
|
1962
|
-
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
1963
|
-
*/
|
|
1964
|
-
margin: e.oneOfType([e.number, e.shape({
|
|
1965
|
-
bottom: e.number,
|
|
1966
|
-
left: e.number,
|
|
1967
|
-
right: e.number,
|
|
1968
|
-
top: e.number
|
|
1969
|
-
})]),
|
|
1970
|
-
/**
|
|
1971
|
-
* Callback fired when an area element is clicked.
|
|
1972
|
-
*/
|
|
1973
|
-
onAreaClick: e.func,
|
|
1974
|
-
/**
|
|
1975
|
-
* The function called for onClick events.
|
|
1976
|
-
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
1977
|
-
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
1978
|
-
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
1979
|
-
*/
|
|
1980
|
-
onAxisClick: e.func,
|
|
1981
|
-
/**
|
|
1982
|
-
* Callback fired when any hidden identifiers change.
|
|
1983
|
-
* @param {VisibilityIdentifier[]} hiddenItems The new list of hidden identifiers.
|
|
1984
|
-
*/
|
|
1985
|
-
onHiddenItemsChange: e.func,
|
|
1986
|
-
/**
|
|
1987
|
-
* The callback fired when the highlighted item changes.
|
|
1988
|
-
*
|
|
1989
|
-
* @param {HighlightItemData | null} highlightedItem The newly highlighted item.
|
|
1990
|
-
*/
|
|
1991
|
-
onHighlightChange: e.func,
|
|
1992
|
-
/**
|
|
1993
|
-
* The function called when the pointer position corresponds to a new axis data item.
|
|
1994
|
-
* This update can either be caused by a pointer movement, or an axis update.
|
|
1995
|
-
* In case of multiple axes, the function is called if at least one axis is updated.
|
|
1996
|
-
* The argument contains the identifier for all axes with a `data` property.
|
|
1997
|
-
* @param {AxisItemIdentifier[]} axisItems The array of axes item identifiers.
|
|
1998
|
-
*/
|
|
1999
|
-
onHighlightedAxisChange: e.func,
|
|
2000
|
-
/**
|
|
2001
|
-
* Callback fired when a line element is clicked.
|
|
2002
|
-
*/
|
|
2003
|
-
onLineClick: e.func,
|
|
2004
|
-
/**
|
|
2005
|
-
* Callback fired when a mark element is clicked.
|
|
2006
|
-
*/
|
|
2007
|
-
onMarkClick: e.func,
|
|
2008
|
-
/**
|
|
2009
|
-
* The callback fired when the tooltip item changes.
|
|
2010
|
-
*
|
|
2011
|
-
* @param {SeriesItemIdentifier<TSeries> | null} tooltipItem The newly highlighted item.
|
|
2012
|
-
*/
|
|
2013
|
-
onTooltipItemChange: e.func,
|
|
2014
|
-
/**
|
|
2015
|
-
* The series to display in the line chart.
|
|
2016
|
-
* An array of [[LineSeries]] objects.
|
|
2017
|
-
*/
|
|
2018
|
-
series: e.arrayOf(e.object).isRequired,
|
|
2019
|
-
/**
|
|
2020
|
-
* If true, shows the default chart toolbar.
|
|
2021
|
-
* @default false
|
|
2022
|
-
*/
|
|
2023
|
-
showToolbar: e.bool,
|
|
2024
|
-
/**
|
|
2025
|
-
* If `true`, animations are skipped.
|
|
2026
|
-
* @default false
|
|
2027
|
-
*/
|
|
2028
|
-
skipAnimation: e.bool,
|
|
2029
|
-
/**
|
|
2030
|
-
* The props used for each component slot.
|
|
2031
|
-
* @default {}
|
|
2032
|
-
*/
|
|
2033
|
-
slotProps: e.object,
|
|
2034
|
-
/**
|
|
2035
|
-
* Overridable component slots.
|
|
2036
|
-
* @default {}
|
|
2037
|
-
*/
|
|
2038
|
-
slots: e.object,
|
|
2039
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2040
|
-
theme: e.oneOf(["dark", "light"]),
|
|
2041
|
-
title: e.string,
|
|
2042
|
-
/**
|
|
2043
|
-
* The tooltip item.
|
|
2044
|
-
* Used when the tooltip is controlled.
|
|
2045
|
-
*/
|
|
2046
|
-
tooltipItem: e.shape({
|
|
2047
|
-
dataIndex: e.number,
|
|
2048
|
-
seriesId: e.oneOfType([e.number, e.string]).isRequired,
|
|
2049
|
-
type: e.oneOf(["line"]).isRequired
|
|
2050
|
-
}),
|
|
2051
|
-
/**
|
|
2052
|
-
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
2053
|
-
*/
|
|
2054
|
-
width: e.number,
|
|
2055
|
-
/**
|
|
2056
|
-
* The configuration of the x-axes.
|
|
2057
|
-
* If not provided, a default axis config is used.
|
|
2058
|
-
* An array of [[AxisConfig]] objects.
|
|
2059
|
-
*/
|
|
2060
|
-
xAxis: e.arrayOf(e.oneOfType([e.shape({
|
|
2061
|
-
axis: e.oneOf(["x"]),
|
|
2062
|
-
barGapRatio: e.number,
|
|
2063
|
-
categoryGapRatio: e.number,
|
|
2064
|
-
classes: e.object,
|
|
2065
|
-
colorMap: e.oneOfType([e.shape({
|
|
2066
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2067
|
-
type: e.oneOf(["ordinal"]).isRequired,
|
|
2068
|
-
unknownColor: e.string,
|
|
2069
|
-
values: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number, e.string]).isRequired)
|
|
2070
|
-
}), e.shape({
|
|
2071
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2072
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2073
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2074
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2075
|
-
}), e.shape({
|
|
2076
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2077
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2078
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2079
|
-
})]),
|
|
2080
|
-
data: e.array,
|
|
2081
|
-
dataKey: e.string,
|
|
2082
|
-
disableLine: e.bool,
|
|
2083
|
-
disableTicks: e.bool,
|
|
2084
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2085
|
-
groups: e.arrayOf(e.shape({
|
|
2086
|
-
getValue: e.func.isRequired,
|
|
2087
|
-
tickLabelStyle: e.object,
|
|
2088
|
-
tickSize: e.number
|
|
2089
|
-
})),
|
|
2090
|
-
height: e.number,
|
|
2091
|
-
hideTooltip: e.bool,
|
|
2092
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2093
|
-
ignoreTooltip: e.bool,
|
|
2094
|
-
label: e.string,
|
|
2095
|
-
labelStyle: e.object,
|
|
2096
|
-
offset: e.number,
|
|
2097
|
-
ordinalTimeTicks: e.arrayOf(e.oneOfType([e.oneOf(["biweekly", "days", "hours", "months", "quarterly", "weeks", "years"]), e.shape({
|
|
2098
|
-
format: e.func.isRequired,
|
|
2099
|
-
getTickNumber: e.func.isRequired,
|
|
2100
|
-
isTick: e.func.isRequired
|
|
2101
|
-
})]).isRequired),
|
|
2102
|
-
position: e.oneOf(["bottom", "none", "top"]),
|
|
2103
|
-
reverse: e.bool,
|
|
2104
|
-
scaleType: e.oneOf(["band"]),
|
|
2105
|
-
slotProps: e.object,
|
|
2106
|
-
slots: e.object,
|
|
2107
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2108
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2109
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2110
|
-
tickLabelMinGap: e.number,
|
|
2111
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2112
|
-
tickLabelStyle: e.object,
|
|
2113
|
-
tickMaxStep: e.number,
|
|
2114
|
-
tickMinStep: e.number,
|
|
2115
|
-
tickNumber: e.number,
|
|
2116
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2117
|
-
tickSize: e.number,
|
|
2118
|
-
tickSpacing: e.number,
|
|
2119
|
-
valueFormatter: e.func
|
|
2120
|
-
}), e.shape({
|
|
2121
|
-
axis: e.oneOf(["x"]),
|
|
2122
|
-
classes: e.object,
|
|
2123
|
-
colorMap: e.oneOfType([e.shape({
|
|
2124
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2125
|
-
type: e.oneOf(["ordinal"]).isRequired,
|
|
2126
|
-
unknownColor: e.string,
|
|
2127
|
-
values: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number, e.string]).isRequired)
|
|
2128
|
-
}), e.shape({
|
|
2129
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2130
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2131
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2132
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2133
|
-
}), e.shape({
|
|
2134
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2135
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2136
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2137
|
-
})]),
|
|
2138
|
-
data: e.array,
|
|
2139
|
-
dataKey: e.string,
|
|
2140
|
-
disableLine: e.bool,
|
|
2141
|
-
disableTicks: e.bool,
|
|
2142
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2143
|
-
groups: e.arrayOf(e.shape({
|
|
2144
|
-
getValue: e.func.isRequired,
|
|
2145
|
-
tickLabelStyle: e.object,
|
|
2146
|
-
tickSize: e.number
|
|
2147
|
-
})),
|
|
2148
|
-
height: e.number,
|
|
2149
|
-
hideTooltip: e.bool,
|
|
2150
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2151
|
-
ignoreTooltip: e.bool,
|
|
2152
|
-
label: e.string,
|
|
2153
|
-
labelStyle: e.object,
|
|
2154
|
-
offset: e.number,
|
|
2155
|
-
ordinalTimeTicks: e.arrayOf(e.oneOfType([e.oneOf(["biweekly", "days", "hours", "months", "quarterly", "weeks", "years"]), e.shape({
|
|
2156
|
-
format: e.func.isRequired,
|
|
2157
|
-
getTickNumber: e.func.isRequired,
|
|
2158
|
-
isTick: e.func.isRequired
|
|
2159
|
-
})]).isRequired),
|
|
2160
|
-
position: e.oneOf(["bottom", "none", "top"]),
|
|
2161
|
-
reverse: e.bool,
|
|
2162
|
-
scaleType: e.oneOf(["point"]),
|
|
2163
|
-
slotProps: e.object,
|
|
2164
|
-
slots: e.object,
|
|
2165
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2166
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2167
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2168
|
-
tickLabelMinGap: e.number,
|
|
2169
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2170
|
-
tickLabelStyle: e.object,
|
|
2171
|
-
tickMaxStep: e.number,
|
|
2172
|
-
tickMinStep: e.number,
|
|
2173
|
-
tickNumber: e.number,
|
|
2174
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2175
|
-
tickSize: e.number,
|
|
2176
|
-
tickSpacing: e.number,
|
|
2177
|
-
valueFormatter: e.func
|
|
2178
|
-
}), e.shape({
|
|
2179
|
-
axis: e.oneOf(["x"]),
|
|
2180
|
-
classes: e.object,
|
|
2181
|
-
colorMap: e.oneOfType([e.shape({
|
|
2182
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2183
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2184
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2185
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2186
|
-
}), e.shape({
|
|
2187
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2188
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2189
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2190
|
-
})]),
|
|
2191
|
-
data: e.array,
|
|
2192
|
-
dataKey: e.string,
|
|
2193
|
-
disableLine: e.bool,
|
|
2194
|
-
disableTicks: e.bool,
|
|
2195
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2196
|
-
height: e.number,
|
|
2197
|
-
hideTooltip: e.bool,
|
|
2198
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2199
|
-
ignoreTooltip: e.bool,
|
|
2200
|
-
label: e.string,
|
|
2201
|
-
labelStyle: e.object,
|
|
2202
|
-
max: e.number,
|
|
2203
|
-
min: e.number,
|
|
2204
|
-
offset: e.number,
|
|
2205
|
-
position: e.oneOf(["bottom", "none", "top"]),
|
|
2206
|
-
reverse: e.bool,
|
|
2207
|
-
scaleType: e.oneOf(["log"]),
|
|
2208
|
-
slotProps: e.object,
|
|
2209
|
-
slots: e.object,
|
|
2210
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2211
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2212
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2213
|
-
tickLabelMinGap: e.number,
|
|
2214
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2215
|
-
tickLabelStyle: e.object,
|
|
2216
|
-
tickMaxStep: e.number,
|
|
2217
|
-
tickMinStep: e.number,
|
|
2218
|
-
tickNumber: e.number,
|
|
2219
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2220
|
-
tickSize: e.number,
|
|
2221
|
-
tickSpacing: e.number,
|
|
2222
|
-
valueFormatter: e.func
|
|
2223
|
-
}), e.shape({
|
|
2224
|
-
axis: e.oneOf(["x"]),
|
|
2225
|
-
classes: e.object,
|
|
2226
|
-
colorMap: e.oneOfType([e.shape({
|
|
2227
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2228
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2229
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2230
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2231
|
-
}), e.shape({
|
|
2232
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2233
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2234
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2235
|
-
})]),
|
|
2236
|
-
constant: e.number,
|
|
2237
|
-
data: e.array,
|
|
2238
|
-
dataKey: e.string,
|
|
2239
|
-
disableLine: e.bool,
|
|
2240
|
-
disableTicks: e.bool,
|
|
2241
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2242
|
-
height: e.number,
|
|
2243
|
-
hideTooltip: e.bool,
|
|
2244
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2245
|
-
ignoreTooltip: e.bool,
|
|
2246
|
-
label: e.string,
|
|
2247
|
-
labelStyle: e.object,
|
|
2248
|
-
max: e.number,
|
|
2249
|
-
min: e.number,
|
|
2250
|
-
offset: e.number,
|
|
2251
|
-
position: e.oneOf(["bottom", "none", "top"]),
|
|
2252
|
-
reverse: e.bool,
|
|
2253
|
-
scaleType: e.oneOf(["symlog"]),
|
|
2254
|
-
slotProps: e.object,
|
|
2255
|
-
slots: e.object,
|
|
2256
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2257
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2258
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2259
|
-
tickLabelMinGap: e.number,
|
|
2260
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2261
|
-
tickLabelStyle: e.object,
|
|
2262
|
-
tickMaxStep: e.number,
|
|
2263
|
-
tickMinStep: e.number,
|
|
2264
|
-
tickNumber: e.number,
|
|
2265
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2266
|
-
tickSize: e.number,
|
|
2267
|
-
tickSpacing: e.number,
|
|
2268
|
-
valueFormatter: e.func
|
|
2269
|
-
}), e.shape({
|
|
2270
|
-
axis: e.oneOf(["x"]),
|
|
2271
|
-
classes: e.object,
|
|
2272
|
-
colorMap: e.oneOfType([e.shape({
|
|
2273
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2274
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2275
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2276
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2277
|
-
}), e.shape({
|
|
2278
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2279
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2280
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2281
|
-
})]),
|
|
2282
|
-
data: e.array,
|
|
2283
|
-
dataKey: e.string,
|
|
2284
|
-
disableLine: e.bool,
|
|
2285
|
-
disableTicks: e.bool,
|
|
2286
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2287
|
-
height: e.number,
|
|
2288
|
-
hideTooltip: e.bool,
|
|
2289
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2290
|
-
ignoreTooltip: e.bool,
|
|
2291
|
-
label: e.string,
|
|
2292
|
-
labelStyle: e.object,
|
|
2293
|
-
max: e.number,
|
|
2294
|
-
min: e.number,
|
|
2295
|
-
offset: e.number,
|
|
2296
|
-
position: e.oneOf(["bottom", "none", "top"]),
|
|
2297
|
-
reverse: e.bool,
|
|
2298
|
-
scaleType: e.oneOf(["pow"]),
|
|
2299
|
-
slotProps: e.object,
|
|
2300
|
-
slots: e.object,
|
|
2301
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2302
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2303
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2304
|
-
tickLabelMinGap: e.number,
|
|
2305
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2306
|
-
tickLabelStyle: e.object,
|
|
2307
|
-
tickMaxStep: e.number,
|
|
2308
|
-
tickMinStep: e.number,
|
|
2309
|
-
tickNumber: e.number,
|
|
2310
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2311
|
-
tickSize: e.number,
|
|
2312
|
-
tickSpacing: e.number,
|
|
2313
|
-
valueFormatter: e.func
|
|
2314
|
-
}), e.shape({
|
|
2315
|
-
axis: e.oneOf(["x"]),
|
|
2316
|
-
classes: e.object,
|
|
2317
|
-
colorMap: e.oneOfType([e.shape({
|
|
2318
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2319
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2320
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2321
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2322
|
-
}), e.shape({
|
|
2323
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2324
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2325
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2326
|
-
})]),
|
|
2327
|
-
data: e.array,
|
|
2328
|
-
dataKey: e.string,
|
|
2329
|
-
disableLine: e.bool,
|
|
2330
|
-
disableTicks: e.bool,
|
|
2331
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2332
|
-
height: e.number,
|
|
2333
|
-
hideTooltip: e.bool,
|
|
2334
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2335
|
-
ignoreTooltip: e.bool,
|
|
2336
|
-
label: e.string,
|
|
2337
|
-
labelStyle: e.object,
|
|
2338
|
-
max: e.number,
|
|
2339
|
-
min: e.number,
|
|
2340
|
-
offset: e.number,
|
|
2341
|
-
position: e.oneOf(["bottom", "none", "top"]),
|
|
2342
|
-
reverse: e.bool,
|
|
2343
|
-
scaleType: e.oneOf(["sqrt"]),
|
|
2344
|
-
slotProps: e.object,
|
|
2345
|
-
slots: e.object,
|
|
2346
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2347
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2348
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2349
|
-
tickLabelMinGap: e.number,
|
|
2350
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2351
|
-
tickLabelStyle: e.object,
|
|
2352
|
-
tickMaxStep: e.number,
|
|
2353
|
-
tickMinStep: e.number,
|
|
2354
|
-
tickNumber: e.number,
|
|
2355
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2356
|
-
tickSize: e.number,
|
|
2357
|
-
tickSpacing: e.number,
|
|
2358
|
-
valueFormatter: e.func
|
|
2359
|
-
}), e.shape({
|
|
2360
|
-
axis: e.oneOf(["x"]),
|
|
2361
|
-
classes: e.object,
|
|
2362
|
-
colorMap: e.oneOfType([e.shape({
|
|
2363
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2364
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2365
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2366
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2367
|
-
}), e.shape({
|
|
2368
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2369
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2370
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2371
|
-
})]),
|
|
2372
|
-
data: e.array,
|
|
2373
|
-
dataKey: e.string,
|
|
2374
|
-
disableLine: e.bool,
|
|
2375
|
-
disableTicks: e.bool,
|
|
2376
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2377
|
-
height: e.number,
|
|
2378
|
-
hideTooltip: e.bool,
|
|
2379
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2380
|
-
ignoreTooltip: e.bool,
|
|
2381
|
-
label: e.string,
|
|
2382
|
-
labelStyle: e.object,
|
|
2383
|
-
max: e.oneOfType([e.number, e.shape({
|
|
2384
|
-
valueOf: e.func.isRequired
|
|
2385
|
-
})]),
|
|
2386
|
-
min: e.oneOfType([e.number, e.shape({
|
|
2387
|
-
valueOf: e.func.isRequired
|
|
2388
|
-
})]),
|
|
2389
|
-
offset: e.number,
|
|
2390
|
-
position: e.oneOf(["bottom", "none", "top"]),
|
|
2391
|
-
reverse: e.bool,
|
|
2392
|
-
scaleType: e.oneOf(["time"]),
|
|
2393
|
-
slotProps: e.object,
|
|
2394
|
-
slots: e.object,
|
|
2395
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2396
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2397
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2398
|
-
tickLabelMinGap: e.number,
|
|
2399
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2400
|
-
tickLabelStyle: e.object,
|
|
2401
|
-
tickMaxStep: e.number,
|
|
2402
|
-
tickMinStep: e.number,
|
|
2403
|
-
tickNumber: e.number,
|
|
2404
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2405
|
-
tickSize: e.number,
|
|
2406
|
-
tickSpacing: e.number,
|
|
2407
|
-
valueFormatter: e.func
|
|
2408
|
-
}), e.shape({
|
|
2409
|
-
axis: e.oneOf(["x"]),
|
|
2410
|
-
classes: e.object,
|
|
2411
|
-
colorMap: e.oneOfType([e.shape({
|
|
2412
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2413
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2414
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2415
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2416
|
-
}), e.shape({
|
|
2417
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2418
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2419
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2420
|
-
})]),
|
|
2421
|
-
data: e.array,
|
|
2422
|
-
dataKey: e.string,
|
|
2423
|
-
disableLine: e.bool,
|
|
2424
|
-
disableTicks: e.bool,
|
|
2425
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2426
|
-
height: e.number,
|
|
2427
|
-
hideTooltip: e.bool,
|
|
2428
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2429
|
-
ignoreTooltip: e.bool,
|
|
2430
|
-
label: e.string,
|
|
2431
|
-
labelStyle: e.object,
|
|
2432
|
-
max: e.oneOfType([e.number, e.shape({
|
|
2433
|
-
valueOf: e.func.isRequired
|
|
2434
|
-
})]),
|
|
2435
|
-
min: e.oneOfType([e.number, e.shape({
|
|
2436
|
-
valueOf: e.func.isRequired
|
|
2437
|
-
})]),
|
|
2438
|
-
offset: e.number,
|
|
2439
|
-
position: e.oneOf(["bottom", "none", "top"]),
|
|
2440
|
-
reverse: e.bool,
|
|
2441
|
-
scaleType: e.oneOf(["utc"]),
|
|
2442
|
-
slotProps: e.object,
|
|
2443
|
-
slots: e.object,
|
|
2444
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2445
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2446
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2447
|
-
tickLabelMinGap: e.number,
|
|
2448
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2449
|
-
tickLabelStyle: e.object,
|
|
2450
|
-
tickMaxStep: e.number,
|
|
2451
|
-
tickMinStep: e.number,
|
|
2452
|
-
tickNumber: e.number,
|
|
2453
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2454
|
-
tickSize: e.number,
|
|
2455
|
-
tickSpacing: e.number,
|
|
2456
|
-
valueFormatter: e.func
|
|
2457
|
-
}), e.shape({
|
|
2458
|
-
axis: e.oneOf(["x"]),
|
|
2459
|
-
classes: e.object,
|
|
2460
|
-
colorMap: e.oneOfType([e.shape({
|
|
2461
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2462
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2463
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2464
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2465
|
-
}), e.shape({
|
|
2466
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2467
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2468
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2469
|
-
})]),
|
|
2470
|
-
data: e.array,
|
|
2471
|
-
dataKey: e.string,
|
|
2472
|
-
disableLine: e.bool,
|
|
2473
|
-
disableTicks: e.bool,
|
|
2474
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2475
|
-
height: e.number,
|
|
2476
|
-
hideTooltip: e.bool,
|
|
2477
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2478
|
-
ignoreTooltip: e.bool,
|
|
2479
|
-
label: e.string,
|
|
2480
|
-
labelStyle: e.object,
|
|
2481
|
-
max: e.number,
|
|
2482
|
-
min: e.number,
|
|
2483
|
-
offset: e.number,
|
|
2484
|
-
position: e.oneOf(["bottom", "none", "top"]),
|
|
2485
|
-
reverse: e.bool,
|
|
2486
|
-
scaleType: e.oneOf(["linear"]),
|
|
2487
|
-
slotProps: e.object,
|
|
2488
|
-
slots: e.object,
|
|
2489
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2490
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2491
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2492
|
-
tickLabelMinGap: e.number,
|
|
2493
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2494
|
-
tickLabelStyle: e.object,
|
|
2495
|
-
tickMaxStep: e.number,
|
|
2496
|
-
tickMinStep: e.number,
|
|
2497
|
-
tickNumber: e.number,
|
|
2498
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2499
|
-
tickSize: e.number,
|
|
2500
|
-
tickSpacing: e.number,
|
|
2501
|
-
valueFormatter: e.func
|
|
2502
|
-
})]).isRequired),
|
|
2503
|
-
/**
|
|
2504
|
-
* The configuration of the y-axes.
|
|
2505
|
-
* If not provided, a default axis config is used.
|
|
2506
|
-
* An array of [[AxisConfig]] objects.
|
|
2507
|
-
*/
|
|
2508
|
-
yAxis: e.arrayOf(e.oneOfType([e.shape({
|
|
2509
|
-
axis: e.oneOf(["y"]),
|
|
2510
|
-
barGapRatio: e.number,
|
|
2511
|
-
categoryGapRatio: e.number,
|
|
2512
|
-
classes: e.object,
|
|
2513
|
-
colorMap: e.oneOfType([e.shape({
|
|
2514
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2515
|
-
type: e.oneOf(["ordinal"]).isRequired,
|
|
2516
|
-
unknownColor: e.string,
|
|
2517
|
-
values: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number, e.string]).isRequired)
|
|
2518
|
-
}), e.shape({
|
|
2519
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2520
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2521
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2522
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2523
|
-
}), e.shape({
|
|
2524
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2525
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2526
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2527
|
-
})]),
|
|
2528
|
-
data: e.array,
|
|
2529
|
-
dataKey: e.string,
|
|
2530
|
-
disableLine: e.bool,
|
|
2531
|
-
disableTicks: e.bool,
|
|
2532
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2533
|
-
groups: e.arrayOf(e.shape({
|
|
2534
|
-
getValue: e.func.isRequired,
|
|
2535
|
-
tickLabelStyle: e.object,
|
|
2536
|
-
tickSize: e.number
|
|
2537
|
-
})),
|
|
2538
|
-
hideTooltip: e.bool,
|
|
2539
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2540
|
-
ignoreTooltip: e.bool,
|
|
2541
|
-
label: e.string,
|
|
2542
|
-
labelStyle: e.object,
|
|
2543
|
-
offset: e.number,
|
|
2544
|
-
ordinalTimeTicks: e.arrayOf(e.oneOfType([e.oneOf(["biweekly", "days", "hours", "months", "quarterly", "weeks", "years"]), e.shape({
|
|
2545
|
-
format: e.func.isRequired,
|
|
2546
|
-
getTickNumber: e.func.isRequired,
|
|
2547
|
-
isTick: e.func.isRequired
|
|
2548
|
-
})]).isRequired),
|
|
2549
|
-
position: e.oneOf(["left", "none", "right"]),
|
|
2550
|
-
reverse: e.bool,
|
|
2551
|
-
scaleType: e.oneOf(["band"]),
|
|
2552
|
-
slotProps: e.object,
|
|
2553
|
-
slots: e.object,
|
|
2554
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2555
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2556
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2557
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2558
|
-
tickLabelStyle: e.object,
|
|
2559
|
-
tickMaxStep: e.number,
|
|
2560
|
-
tickMinStep: e.number,
|
|
2561
|
-
tickNumber: e.number,
|
|
2562
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2563
|
-
tickSize: e.number,
|
|
2564
|
-
tickSpacing: e.number,
|
|
2565
|
-
valueFormatter: e.func,
|
|
2566
|
-
width: e.number
|
|
2567
|
-
}), e.shape({
|
|
2568
|
-
axis: e.oneOf(["y"]),
|
|
2569
|
-
classes: e.object,
|
|
2570
|
-
colorMap: e.oneOfType([e.shape({
|
|
2571
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2572
|
-
type: e.oneOf(["ordinal"]).isRequired,
|
|
2573
|
-
unknownColor: e.string,
|
|
2574
|
-
values: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number, e.string]).isRequired)
|
|
2575
|
-
}), e.shape({
|
|
2576
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2577
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2578
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2579
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2580
|
-
}), e.shape({
|
|
2581
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2582
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2583
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2584
|
-
})]),
|
|
2585
|
-
data: e.array,
|
|
2586
|
-
dataKey: e.string,
|
|
2587
|
-
disableLine: e.bool,
|
|
2588
|
-
disableTicks: e.bool,
|
|
2589
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2590
|
-
groups: e.arrayOf(e.shape({
|
|
2591
|
-
getValue: e.func.isRequired,
|
|
2592
|
-
tickLabelStyle: e.object,
|
|
2593
|
-
tickSize: e.number
|
|
2594
|
-
})),
|
|
2595
|
-
hideTooltip: e.bool,
|
|
2596
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2597
|
-
ignoreTooltip: e.bool,
|
|
2598
|
-
label: e.string,
|
|
2599
|
-
labelStyle: e.object,
|
|
2600
|
-
offset: e.number,
|
|
2601
|
-
ordinalTimeTicks: e.arrayOf(e.oneOfType([e.oneOf(["biweekly", "days", "hours", "months", "quarterly", "weeks", "years"]), e.shape({
|
|
2602
|
-
format: e.func.isRequired,
|
|
2603
|
-
getTickNumber: e.func.isRequired,
|
|
2604
|
-
isTick: e.func.isRequired
|
|
2605
|
-
})]).isRequired),
|
|
2606
|
-
position: e.oneOf(["left", "none", "right"]),
|
|
2607
|
-
reverse: e.bool,
|
|
2608
|
-
scaleType: e.oneOf(["point"]),
|
|
2609
|
-
slotProps: e.object,
|
|
2610
|
-
slots: e.object,
|
|
2611
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2612
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2613
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2614
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2615
|
-
tickLabelStyle: e.object,
|
|
2616
|
-
tickMaxStep: e.number,
|
|
2617
|
-
tickMinStep: e.number,
|
|
2618
|
-
tickNumber: e.number,
|
|
2619
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2620
|
-
tickSize: e.number,
|
|
2621
|
-
tickSpacing: e.number,
|
|
2622
|
-
valueFormatter: e.func,
|
|
2623
|
-
width: e.number
|
|
2624
|
-
}), e.shape({
|
|
2625
|
-
axis: e.oneOf(["y"]),
|
|
2626
|
-
classes: e.object,
|
|
2627
|
-
colorMap: e.oneOfType([e.shape({
|
|
2628
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2629
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2630
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2631
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2632
|
-
}), e.shape({
|
|
2633
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2634
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2635
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2636
|
-
})]),
|
|
2637
|
-
data: e.array,
|
|
2638
|
-
dataKey: e.string,
|
|
2639
|
-
disableLine: e.bool,
|
|
2640
|
-
disableTicks: e.bool,
|
|
2641
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2642
|
-
hideTooltip: e.bool,
|
|
2643
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2644
|
-
ignoreTooltip: e.bool,
|
|
2645
|
-
label: e.string,
|
|
2646
|
-
labelStyle: e.object,
|
|
2647
|
-
max: e.number,
|
|
2648
|
-
min: e.number,
|
|
2649
|
-
offset: e.number,
|
|
2650
|
-
position: e.oneOf(["left", "none", "right"]),
|
|
2651
|
-
reverse: e.bool,
|
|
2652
|
-
scaleType: e.oneOf(["log"]),
|
|
2653
|
-
slotProps: e.object,
|
|
2654
|
-
slots: e.object,
|
|
2655
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2656
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2657
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2658
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2659
|
-
tickLabelStyle: e.object,
|
|
2660
|
-
tickMaxStep: e.number,
|
|
2661
|
-
tickMinStep: e.number,
|
|
2662
|
-
tickNumber: e.number,
|
|
2663
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2664
|
-
tickSize: e.number,
|
|
2665
|
-
tickSpacing: e.number,
|
|
2666
|
-
valueFormatter: e.func,
|
|
2667
|
-
width: e.number
|
|
2668
|
-
}), e.shape({
|
|
2669
|
-
axis: e.oneOf(["y"]),
|
|
2670
|
-
classes: e.object,
|
|
2671
|
-
colorMap: e.oneOfType([e.shape({
|
|
2672
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2673
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2674
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2675
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2676
|
-
}), e.shape({
|
|
2677
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2678
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2679
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2680
|
-
})]),
|
|
2681
|
-
constant: e.number,
|
|
2682
|
-
data: e.array,
|
|
2683
|
-
dataKey: e.string,
|
|
2684
|
-
disableLine: e.bool,
|
|
2685
|
-
disableTicks: e.bool,
|
|
2686
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2687
|
-
hideTooltip: e.bool,
|
|
2688
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2689
|
-
ignoreTooltip: e.bool,
|
|
2690
|
-
label: e.string,
|
|
2691
|
-
labelStyle: e.object,
|
|
2692
|
-
max: e.number,
|
|
2693
|
-
min: e.number,
|
|
2694
|
-
offset: e.number,
|
|
2695
|
-
position: e.oneOf(["left", "none", "right"]),
|
|
2696
|
-
reverse: e.bool,
|
|
2697
|
-
scaleType: e.oneOf(["symlog"]),
|
|
2698
|
-
slotProps: e.object,
|
|
2699
|
-
slots: e.object,
|
|
2700
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2701
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2702
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2703
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2704
|
-
tickLabelStyle: e.object,
|
|
2705
|
-
tickMaxStep: e.number,
|
|
2706
|
-
tickMinStep: e.number,
|
|
2707
|
-
tickNumber: e.number,
|
|
2708
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2709
|
-
tickSize: e.number,
|
|
2710
|
-
tickSpacing: e.number,
|
|
2711
|
-
valueFormatter: e.func,
|
|
2712
|
-
width: e.number
|
|
2713
|
-
}), e.shape({
|
|
2714
|
-
axis: e.oneOf(["y"]),
|
|
2715
|
-
classes: e.object,
|
|
2716
|
-
colorMap: e.oneOfType([e.shape({
|
|
2717
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2718
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2719
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2720
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2721
|
-
}), e.shape({
|
|
2722
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2723
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2724
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2725
|
-
})]),
|
|
2726
|
-
data: e.array,
|
|
2727
|
-
dataKey: e.string,
|
|
2728
|
-
disableLine: e.bool,
|
|
2729
|
-
disableTicks: e.bool,
|
|
2730
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2731
|
-
hideTooltip: e.bool,
|
|
2732
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2733
|
-
ignoreTooltip: e.bool,
|
|
2734
|
-
label: e.string,
|
|
2735
|
-
labelStyle: e.object,
|
|
2736
|
-
max: e.number,
|
|
2737
|
-
min: e.number,
|
|
2738
|
-
offset: e.number,
|
|
2739
|
-
position: e.oneOf(["left", "none", "right"]),
|
|
2740
|
-
reverse: e.bool,
|
|
2741
|
-
scaleType: e.oneOf(["pow"]),
|
|
2742
|
-
slotProps: e.object,
|
|
2743
|
-
slots: e.object,
|
|
2744
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2745
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2746
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2747
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2748
|
-
tickLabelStyle: e.object,
|
|
2749
|
-
tickMaxStep: e.number,
|
|
2750
|
-
tickMinStep: e.number,
|
|
2751
|
-
tickNumber: e.number,
|
|
2752
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2753
|
-
tickSize: e.number,
|
|
2754
|
-
tickSpacing: e.number,
|
|
2755
|
-
valueFormatter: e.func,
|
|
2756
|
-
width: e.number
|
|
2757
|
-
}), e.shape({
|
|
2758
|
-
axis: e.oneOf(["y"]),
|
|
2759
|
-
classes: e.object,
|
|
2760
|
-
colorMap: e.oneOfType([e.shape({
|
|
2761
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2762
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2763
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2764
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2765
|
-
}), e.shape({
|
|
2766
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2767
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2768
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2769
|
-
})]),
|
|
2770
|
-
data: e.array,
|
|
2771
|
-
dataKey: e.string,
|
|
2772
|
-
disableLine: e.bool,
|
|
2773
|
-
disableTicks: e.bool,
|
|
2774
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2775
|
-
hideTooltip: e.bool,
|
|
2776
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2777
|
-
ignoreTooltip: e.bool,
|
|
2778
|
-
label: e.string,
|
|
2779
|
-
labelStyle: e.object,
|
|
2780
|
-
max: e.number,
|
|
2781
|
-
min: e.number,
|
|
2782
|
-
offset: e.number,
|
|
2783
|
-
position: e.oneOf(["left", "none", "right"]),
|
|
2784
|
-
reverse: e.bool,
|
|
2785
|
-
scaleType: e.oneOf(["sqrt"]),
|
|
2786
|
-
slotProps: e.object,
|
|
2787
|
-
slots: e.object,
|
|
2788
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2789
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2790
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2791
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2792
|
-
tickLabelStyle: e.object,
|
|
2793
|
-
tickMaxStep: e.number,
|
|
2794
|
-
tickMinStep: e.number,
|
|
2795
|
-
tickNumber: e.number,
|
|
2796
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2797
|
-
tickSize: e.number,
|
|
2798
|
-
tickSpacing: e.number,
|
|
2799
|
-
valueFormatter: e.func,
|
|
2800
|
-
width: e.number
|
|
2801
|
-
}), e.shape({
|
|
2802
|
-
axis: e.oneOf(["y"]),
|
|
2803
|
-
classes: e.object,
|
|
2804
|
-
colorMap: e.oneOfType([e.shape({
|
|
2805
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2806
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2807
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2808
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2809
|
-
}), e.shape({
|
|
2810
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2811
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2812
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2813
|
-
})]),
|
|
2814
|
-
data: e.array,
|
|
2815
|
-
dataKey: e.string,
|
|
2816
|
-
disableLine: e.bool,
|
|
2817
|
-
disableTicks: e.bool,
|
|
2818
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2819
|
-
hideTooltip: e.bool,
|
|
2820
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2821
|
-
ignoreTooltip: e.bool,
|
|
2822
|
-
label: e.string,
|
|
2823
|
-
labelStyle: e.object,
|
|
2824
|
-
max: e.oneOfType([e.number, e.shape({
|
|
2825
|
-
valueOf: e.func.isRequired
|
|
2826
|
-
})]),
|
|
2827
|
-
min: e.oneOfType([e.number, e.shape({
|
|
2828
|
-
valueOf: e.func.isRequired
|
|
2829
|
-
})]),
|
|
2830
|
-
offset: e.number,
|
|
2831
|
-
position: e.oneOf(["left", "none", "right"]),
|
|
2832
|
-
reverse: e.bool,
|
|
2833
|
-
scaleType: e.oneOf(["time"]),
|
|
2834
|
-
slotProps: e.object,
|
|
2835
|
-
slots: e.object,
|
|
2836
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2837
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2838
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2839
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2840
|
-
tickLabelStyle: e.object,
|
|
2841
|
-
tickMaxStep: e.number,
|
|
2842
|
-
tickMinStep: e.number,
|
|
2843
|
-
tickNumber: e.number,
|
|
2844
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2845
|
-
tickSize: e.number,
|
|
2846
|
-
tickSpacing: e.number,
|
|
2847
|
-
valueFormatter: e.func,
|
|
2848
|
-
width: e.number
|
|
2849
|
-
}), e.shape({
|
|
2850
|
-
axis: e.oneOf(["y"]),
|
|
2851
|
-
classes: e.object,
|
|
2852
|
-
colorMap: e.oneOfType([e.shape({
|
|
2853
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2854
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2855
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2856
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2857
|
-
}), e.shape({
|
|
2858
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2859
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2860
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2861
|
-
})]),
|
|
2862
|
-
data: e.array,
|
|
2863
|
-
dataKey: e.string,
|
|
2864
|
-
disableLine: e.bool,
|
|
2865
|
-
disableTicks: e.bool,
|
|
2866
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2867
|
-
hideTooltip: e.bool,
|
|
2868
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2869
|
-
ignoreTooltip: e.bool,
|
|
2870
|
-
label: e.string,
|
|
2871
|
-
labelStyle: e.object,
|
|
2872
|
-
max: e.oneOfType([e.number, e.shape({
|
|
2873
|
-
valueOf: e.func.isRequired
|
|
2874
|
-
})]),
|
|
2875
|
-
min: e.oneOfType([e.number, e.shape({
|
|
2876
|
-
valueOf: e.func.isRequired
|
|
2877
|
-
})]),
|
|
2878
|
-
offset: e.number,
|
|
2879
|
-
position: e.oneOf(["left", "none", "right"]),
|
|
2880
|
-
reverse: e.bool,
|
|
2881
|
-
scaleType: e.oneOf(["utc"]),
|
|
2882
|
-
slotProps: e.object,
|
|
2883
|
-
slots: e.object,
|
|
2884
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2885
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2886
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2887
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2888
|
-
tickLabelStyle: e.object,
|
|
2889
|
-
tickMaxStep: e.number,
|
|
2890
|
-
tickMinStep: e.number,
|
|
2891
|
-
tickNumber: e.number,
|
|
2892
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2893
|
-
tickSize: e.number,
|
|
2894
|
-
tickSpacing: e.number,
|
|
2895
|
-
valueFormatter: e.func,
|
|
2896
|
-
width: e.number
|
|
2897
|
-
}), e.shape({
|
|
2898
|
-
axis: e.oneOf(["y"]),
|
|
2899
|
-
classes: e.object,
|
|
2900
|
-
colorMap: e.oneOfType([e.shape({
|
|
2901
|
-
color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
|
|
2902
|
-
max: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2903
|
-
min: e.oneOfType([e.instanceOf(Date), e.number]),
|
|
2904
|
-
type: e.oneOf(["continuous"]).isRequired
|
|
2905
|
-
}), e.shape({
|
|
2906
|
-
colors: e.arrayOf(e.string).isRequired,
|
|
2907
|
-
thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
|
|
2908
|
-
type: e.oneOf(["piecewise"]).isRequired
|
|
2909
|
-
})]),
|
|
2910
|
-
data: e.array,
|
|
2911
|
-
dataKey: e.string,
|
|
2912
|
-
disableLine: e.bool,
|
|
2913
|
-
disableTicks: e.bool,
|
|
2914
|
-
domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
|
|
2915
|
-
hideTooltip: e.bool,
|
|
2916
|
-
id: e.oneOfType([e.number, e.string]),
|
|
2917
|
-
ignoreTooltip: e.bool,
|
|
2918
|
-
label: e.string,
|
|
2919
|
-
labelStyle: e.object,
|
|
2920
|
-
max: e.number,
|
|
2921
|
-
min: e.number,
|
|
2922
|
-
offset: e.number,
|
|
2923
|
-
position: e.oneOf(["left", "none", "right"]),
|
|
2924
|
-
reverse: e.bool,
|
|
2925
|
-
scaleType: e.oneOf(["linear"]),
|
|
2926
|
-
slotProps: e.object,
|
|
2927
|
-
slots: e.object,
|
|
2928
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2929
|
-
tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
|
|
2930
|
-
tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
|
|
2931
|
-
tickLabelPlacement: e.oneOf(["middle", "tick"]),
|
|
2932
|
-
tickLabelStyle: e.object,
|
|
2933
|
-
tickMaxStep: e.number,
|
|
2934
|
-
tickMinStep: e.number,
|
|
2935
|
-
tickNumber: e.number,
|
|
2936
|
-
tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
|
|
2937
|
-
tickSize: e.number,
|
|
2938
|
-
tickSpacing: e.number,
|
|
2939
|
-
valueFormatter: e.func,
|
|
2940
|
-
width: e.number
|
|
2941
|
-
})]).isRequired)
|
|
2942
|
-
});
|
|
2943
|
-
export {
|
|
2944
|
-
sn as AnimatedArea,
|
|
2945
|
-
ke as AnimatedLine,
|
|
2946
|
-
rn as AreaElement,
|
|
2947
|
-
ln as AreaPlot,
|
|
2948
|
-
ei as FocusedLineMark,
|
|
2949
|
-
Zt as LINE_CHART_PLUGINS,
|
|
2950
|
-
gn as LineChart,
|
|
2951
|
-
cn as LineElement,
|
|
2952
|
-
yn as LineHighlightElement,
|
|
2953
|
-
On as LineHighlightPlot,
|
|
2954
|
-
un as LinePlot,
|
|
2955
|
-
hn as MarkElement,
|
|
2956
|
-
mn as MarkPlot,
|
|
2957
|
-
qt as areaElementClasses,
|
|
2958
|
-
Rt as getAreaElementUtilityClass,
|
|
2959
|
-
Yt as getHighlightElementUtilityClass,
|
|
2960
|
-
wt as getLineElementUtilityClass,
|
|
2961
|
-
Ht as getMarkElementUtilityClass,
|
|
2962
|
-
Ct as lineElementClasses,
|
|
2963
|
-
ui as lineHighlightElementClasses,
|
|
2964
|
-
fn as markElementClasses
|
|
2965
|
-
};
|