@burdenoff/microfe-mybodyshield 2026.820.1 → 2026.821.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mybodyshield/MyBodyShieldRoot.d.ts.map +1 -1
- package/dist/mybodyshield/MyBodyShieldRoot.js +68 -44
- package/dist/mybodyshield/MyBodyShieldRoot.js.map +1 -1
- package/dist/mybodyshield/MyBodyShieldRoutes.d.ts.map +1 -1
- package/dist/mybodyshield/MyBodyShieldRoutes.js +37 -16
- package/dist/mybodyshield/MyBodyShieldRoutes.js.map +1 -1
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.d.ts +11 -1
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.d.ts.map +1 -1
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js +113 -46
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js.map +1 -1
- package/dist/mybodyshield/pages/SettingsPage.d.ts +10 -0
- package/dist/mybodyshield/pages/SettingsPage.d.ts.map +1 -0
- package/dist/mybodyshield/pages/SettingsPage.js +104 -0
- package/dist/mybodyshield/pages/SettingsPage.js.map +1 -0
- package/dist/mybodyshield/pages/ai/AiControlsPage.d.ts +10 -0
- package/dist/mybodyshield/pages/ai/AiControlsPage.d.ts.map +1 -0
- package/dist/mybodyshield/pages/ai/AiControlsPage.js +378 -0
- package/dist/mybodyshield/pages/ai/AiControlsPage.js.map +1 -0
- package/dist/mybodyshield/pages/insights/InsightsCharts.d.ts +18 -0
- package/dist/mybodyshield/pages/insights/InsightsCharts.d.ts.map +1 -0
- package/dist/mybodyshield/pages/insights/InsightsCharts.js +549 -0
- package/dist/mybodyshield/pages/insights/InsightsCharts.js.map +1 -0
- package/dist/mybodyshield/pages/insights/InsightsPage.d.ts +12 -0
- package/dist/mybodyshield/pages/insights/InsightsPage.d.ts.map +1 -0
- package/dist/mybodyshield/pages/insights/InsightsPage.js +317 -0
- package/dist/mybodyshield/pages/insights/InsightsPage.js.map +1 -0
- package/dist/mybodyshield/types/index.d.ts +75 -0
- package/dist/mybodyshield/types/index.d.ts.map +1 -1
- package/dist/mybodyshield/utils/pageContext.d.ts.map +1 -1
- package/dist/mybodyshield/utils/pageContext.js +4 -1
- package/dist/mybodyshield/utils/pageContext.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Line.js +473 -0
- package/dist/node_modules/recharts/es6/cartesian/Line.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/Scatter.js +368 -0
- package/dist/node_modules/recharts/es6/cartesian/Scatter.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/ZAxis.js +103 -0
- package/dist/node_modules/recharts/es6/cartesian/ZAxis.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/BarChart.js +24 -0
- package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/ComposedChart.js +38 -0
- package/dist/node_modules/recharts/es6/chart/ComposedChart.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/DataUtils.js +12 -2
- package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ScatterUtils.js +48 -0
- package/dist/node_modules/recharts/es6/util/ScatterUtils.js.map +1 -0
- package/dist/stories/InsightsCharts.stories.d.ts +15 -0
- package/dist/stories/InsightsCharts.stories.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import t from "../../../clsx/dist/clsx.js";
|
|
3
|
+
import { require_isFunction as n } from "../../../lodash/isFunction.js";
|
|
4
|
+
import { require_isNil as r } from "../../../lodash/isNil.js";
|
|
5
|
+
import { getLinearRegression as i, interpolateNumber as a, uniqueId as o } from "../util/DataUtils.js";
|
|
6
|
+
import { adaptEventsOfChild as s } from "../util/types.js";
|
|
7
|
+
import { filterProps as c, findAllByType as l } from "../util/ReactUtils.js";
|
|
8
|
+
import { Layer as u } from "../container/Layer.js";
|
|
9
|
+
import { Global as d } from "../util/Global.js";
|
|
10
|
+
import { Cell as f } from "../component/Cell.js";
|
|
11
|
+
import { require_isEqual as p } from "../../../lodash/isEqual.js";
|
|
12
|
+
import { ErrorBar as m } from "./ErrorBar.js";
|
|
13
|
+
import { getCateCoordinateOfLine as h, getValueByDataKey as g } from "../util/ChartUtils.js";
|
|
14
|
+
import { LabelList as _ } from "../component/LabelList.js";
|
|
15
|
+
import { Curve as v } from "../shape/Curve.js";
|
|
16
|
+
import y from "../../../react-smooth/es6/index.js";
|
|
17
|
+
import { ZAxis as b } from "./ZAxis.js";
|
|
18
|
+
import { ScatterSymbol as x } from "../util/ScatterUtils.js";
|
|
19
|
+
import S, { PureComponent as C } from "react";
|
|
20
|
+
//#region node_modules/recharts/es6/cartesian/Scatter.js
|
|
21
|
+
var w = /* @__PURE__ */ e(r()), T = /* @__PURE__ */ e(p()), E = /* @__PURE__ */ e(n());
|
|
22
|
+
function D(e) {
|
|
23
|
+
"@babel/helpers - typeof";
|
|
24
|
+
return D = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
25
|
+
return typeof e;
|
|
26
|
+
} : function(e) {
|
|
27
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
28
|
+
}, D(e);
|
|
29
|
+
}
|
|
30
|
+
function O() {
|
|
31
|
+
return O = Object.assign ? Object.assign.bind() : function(e) {
|
|
32
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
33
|
+
var n = arguments[t];
|
|
34
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
35
|
+
}
|
|
36
|
+
return e;
|
|
37
|
+
}, O.apply(this, arguments);
|
|
38
|
+
}
|
|
39
|
+
function k(e, t) {
|
|
40
|
+
var n = Object.keys(e);
|
|
41
|
+
if (Object.getOwnPropertySymbols) {
|
|
42
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
43
|
+
t && (r = r.filter(function(t) {
|
|
44
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
45
|
+
})), n.push.apply(n, r);
|
|
46
|
+
}
|
|
47
|
+
return n;
|
|
48
|
+
}
|
|
49
|
+
function A(e) {
|
|
50
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
51
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
52
|
+
t % 2 ? k(Object(n), !0).forEach(function(t) {
|
|
53
|
+
V(e, t, n[t]);
|
|
54
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k(Object(n)).forEach(function(t) {
|
|
55
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return e;
|
|
59
|
+
}
|
|
60
|
+
function j(e, t) {
|
|
61
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
62
|
+
}
|
|
63
|
+
function M(e, t) {
|
|
64
|
+
for (var n = 0; n < t.length; n++) {
|
|
65
|
+
var r = t[n];
|
|
66
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, H(r.key), r);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function N(e, t, n) {
|
|
70
|
+
return t && M(e.prototype, t), n && M(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
71
|
+
}
|
|
72
|
+
function P(e, t, n) {
|
|
73
|
+
return t = R(t), F(e, L() ? Reflect.construct(t, n || [], R(e).constructor) : t.apply(e, n));
|
|
74
|
+
}
|
|
75
|
+
function F(e, t) {
|
|
76
|
+
if (t && (D(t) === "object" || typeof t == "function")) return t;
|
|
77
|
+
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
78
|
+
return I(e);
|
|
79
|
+
}
|
|
80
|
+
function I(e) {
|
|
81
|
+
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
82
|
+
return e;
|
|
83
|
+
}
|
|
84
|
+
function L() {
|
|
85
|
+
try {
|
|
86
|
+
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
87
|
+
} catch {}
|
|
88
|
+
return (L = function() {
|
|
89
|
+
return !!e;
|
|
90
|
+
})();
|
|
91
|
+
}
|
|
92
|
+
function R(e) {
|
|
93
|
+
return R = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
94
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
95
|
+
}, R(e);
|
|
96
|
+
}
|
|
97
|
+
function z(e, t) {
|
|
98
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
99
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
100
|
+
value: e,
|
|
101
|
+
writable: !0,
|
|
102
|
+
configurable: !0
|
|
103
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && B(e, t);
|
|
104
|
+
}
|
|
105
|
+
function B(e, t) {
|
|
106
|
+
return B = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
107
|
+
return e.__proto__ = t, e;
|
|
108
|
+
}, B(e, t);
|
|
109
|
+
}
|
|
110
|
+
function V(e, t, n) {
|
|
111
|
+
return t = H(t), t in e ? Object.defineProperty(e, t, {
|
|
112
|
+
value: n,
|
|
113
|
+
enumerable: !0,
|
|
114
|
+
configurable: !0,
|
|
115
|
+
writable: !0
|
|
116
|
+
}) : e[t] = n, e;
|
|
117
|
+
}
|
|
118
|
+
function H(e) {
|
|
119
|
+
var t = U(e, "string");
|
|
120
|
+
return D(t) == "symbol" ? t : t + "";
|
|
121
|
+
}
|
|
122
|
+
function U(e, t) {
|
|
123
|
+
if (D(e) != "object" || !e) return e;
|
|
124
|
+
var n = e[Symbol.toPrimitive];
|
|
125
|
+
if (n !== void 0) {
|
|
126
|
+
var r = n.call(e, t || "default");
|
|
127
|
+
if (D(r) != "object") return r;
|
|
128
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
129
|
+
}
|
|
130
|
+
return (t === "string" ? String : Number)(e);
|
|
131
|
+
}
|
|
132
|
+
var W = /* @__PURE__ */ function(e) {
|
|
133
|
+
function n() {
|
|
134
|
+
var e;
|
|
135
|
+
j(this, n);
|
|
136
|
+
var t = [...arguments];
|
|
137
|
+
return e = P(this, n, [].concat(t)), V(e, "state", { isAnimationFinished: !1 }), V(e, "handleAnimationEnd", function() {
|
|
138
|
+
e.setState({ isAnimationFinished: !0 });
|
|
139
|
+
}), V(e, "handleAnimationStart", function() {
|
|
140
|
+
e.setState({ isAnimationFinished: !1 });
|
|
141
|
+
}), V(e, "id", o("recharts-scatter-")), e;
|
|
142
|
+
}
|
|
143
|
+
return z(n, e), N(n, [
|
|
144
|
+
{
|
|
145
|
+
key: "renderSymbolsStatically",
|
|
146
|
+
value: function(e) {
|
|
147
|
+
var t = this, n = this.props, r = n.shape, i = n.activeShape, a = n.activeIndex, o = c(this.props, !1);
|
|
148
|
+
return e.map(function(e, n) {
|
|
149
|
+
var c = a === n, l = c ? i : r, d = A(A({}, o), e);
|
|
150
|
+
return /* @__PURE__ */ S.createElement(u, O({
|
|
151
|
+
className: "recharts-scatter-symbol",
|
|
152
|
+
key: `symbol-${e?.cx}-${e?.cy}-${e?.size}-${n}`
|
|
153
|
+
}, s(t.props, e, n), { role: "img" }), /* @__PURE__ */ S.createElement(x, O({
|
|
154
|
+
option: l,
|
|
155
|
+
isActive: c,
|
|
156
|
+
key: `symbol-${n}`
|
|
157
|
+
}, d)));
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
key: "renderSymbolsWithAnimation",
|
|
163
|
+
value: function() {
|
|
164
|
+
var e = this, t = this.props, n = t.points, r = t.isAnimationActive, i = t.animationBegin, o = t.animationDuration, s = t.animationEasing, c = t.animationId, l = this.state.prevPoints;
|
|
165
|
+
return /* @__PURE__ */ S.createElement(y, {
|
|
166
|
+
begin: i,
|
|
167
|
+
duration: o,
|
|
168
|
+
isActive: r,
|
|
169
|
+
easing: s,
|
|
170
|
+
from: { t: 0 },
|
|
171
|
+
to: { t: 1 },
|
|
172
|
+
key: `pie-${c}`,
|
|
173
|
+
onAnimationEnd: this.handleAnimationEnd,
|
|
174
|
+
onAnimationStart: this.handleAnimationStart
|
|
175
|
+
}, function(t) {
|
|
176
|
+
var r = t.t, i = n.map(function(e, t) {
|
|
177
|
+
var n = l && l[t];
|
|
178
|
+
if (n) {
|
|
179
|
+
var i = a(n.cx, e.cx), o = a(n.cy, e.cy), s = a(n.size, e.size);
|
|
180
|
+
return A(A({}, e), {}, {
|
|
181
|
+
cx: i(r),
|
|
182
|
+
cy: o(r),
|
|
183
|
+
size: s(r)
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
var c = a(0, e.size);
|
|
187
|
+
return A(A({}, e), {}, { size: c(r) });
|
|
188
|
+
});
|
|
189
|
+
return /* @__PURE__ */ S.createElement(u, null, e.renderSymbolsStatically(i));
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
key: "renderSymbols",
|
|
195
|
+
value: function() {
|
|
196
|
+
var e = this.props, t = e.points, n = e.isAnimationActive, r = this.state.prevPoints;
|
|
197
|
+
return n && t && t.length && (!r || !(0, T.default)(r, t)) ? this.renderSymbolsWithAnimation() : this.renderSymbolsStatically(t);
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
key: "renderErrorBar",
|
|
202
|
+
value: function() {
|
|
203
|
+
if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null;
|
|
204
|
+
var e = this.props, t = e.points, n = e.xAxis, r = e.yAxis, i = e.children, a = l(i, m);
|
|
205
|
+
return a ? a.map(function(e, i) {
|
|
206
|
+
var a = e.props, o = a.direction, s = a.dataKey;
|
|
207
|
+
return /* @__PURE__ */ S.cloneElement(e, {
|
|
208
|
+
key: `${o}-${s}-${t[i]}`,
|
|
209
|
+
data: t,
|
|
210
|
+
xAxis: n,
|
|
211
|
+
yAxis: r,
|
|
212
|
+
layout: o === "x" ? "vertical" : "horizontal",
|
|
213
|
+
dataPointFormatter: function(e, t) {
|
|
214
|
+
return {
|
|
215
|
+
x: e.cx,
|
|
216
|
+
y: e.cy,
|
|
217
|
+
value: o === "x" ? +e.node.x : +e.node.y,
|
|
218
|
+
errorVal: g(e, t)
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}) : null;
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
key: "renderLine",
|
|
227
|
+
value: function() {
|
|
228
|
+
var e = this.props, t = e.points, n = e.line, r = e.lineType, a = e.lineJointType, o = c(this.props, !1), s = c(n, !1), l, d;
|
|
229
|
+
if (r === "joint") l = t.map(function(e) {
|
|
230
|
+
return {
|
|
231
|
+
x: e.cx,
|
|
232
|
+
y: e.cy
|
|
233
|
+
};
|
|
234
|
+
});
|
|
235
|
+
else if (r === "fitting") {
|
|
236
|
+
var f = i(t), p = f.xmin, m = f.xmax, h = f.a, g = f.b, _ = function(e) {
|
|
237
|
+
return h * e + g;
|
|
238
|
+
};
|
|
239
|
+
l = [{
|
|
240
|
+
x: p,
|
|
241
|
+
y: _(p)
|
|
242
|
+
}, {
|
|
243
|
+
x: m,
|
|
244
|
+
y: _(m)
|
|
245
|
+
}];
|
|
246
|
+
}
|
|
247
|
+
var y = A(A(A({}, o), {}, {
|
|
248
|
+
fill: "none",
|
|
249
|
+
stroke: o && o.fill
|
|
250
|
+
}, s), {}, { points: l });
|
|
251
|
+
return d = /* @__PURE__ */ S.isValidElement(n) ? /* @__PURE__ */ S.cloneElement(n, y) : (0, E.default)(n) ? n(y) : /* @__PURE__ */ S.createElement(v, O({}, y, { type: a })), /* @__PURE__ */ S.createElement(u, {
|
|
252
|
+
className: "recharts-scatter-line",
|
|
253
|
+
key: "recharts-scatter-line"
|
|
254
|
+
}, d);
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
key: "render",
|
|
259
|
+
value: function() {
|
|
260
|
+
var e = this.props, n = e.hide, r = e.points, i = e.line, a = e.className, o = e.xAxis, s = e.yAxis, c = e.left, l = e.top, d = e.width, f = e.height, p = e.id, m = e.isAnimationActive;
|
|
261
|
+
if (n || !r || !r.length) return null;
|
|
262
|
+
var h = this.state.isAnimationFinished, g = t("recharts-scatter", a), v = o && o.allowDataOverflow, y = s && s.allowDataOverflow, b = v || y, x = (0, w.default)(p) ? this.id : p;
|
|
263
|
+
return /* @__PURE__ */ S.createElement(u, {
|
|
264
|
+
className: g,
|
|
265
|
+
clipPath: b ? `url(#clipPath-${x})` : null
|
|
266
|
+
}, v || y ? /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: `clipPath-${x}` }, /* @__PURE__ */ S.createElement("rect", {
|
|
267
|
+
x: v ? c : c - d / 2,
|
|
268
|
+
y: y ? l : l - f / 2,
|
|
269
|
+
width: v ? d : d * 2,
|
|
270
|
+
height: y ? f : f * 2
|
|
271
|
+
}))) : null, i && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ S.createElement(u, { key: "recharts-scatter-symbols" }, this.renderSymbols()), (!m || h) && _.renderCallByParent(this.props, r));
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
], [{
|
|
275
|
+
key: "getDerivedStateFromProps",
|
|
276
|
+
value: function(e, t) {
|
|
277
|
+
return e.animationId === t.prevAnimationId ? e.points === t.curPoints ? null : { curPoints: e.points } : {
|
|
278
|
+
prevAnimationId: e.animationId,
|
|
279
|
+
curPoints: e.points,
|
|
280
|
+
prevPoints: t.curPoints
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
}]);
|
|
284
|
+
}(C);
|
|
285
|
+
V(W, "displayName", "Scatter"), V(W, "defaultProps", {
|
|
286
|
+
xAxisId: 0,
|
|
287
|
+
yAxisId: 0,
|
|
288
|
+
zAxisId: 0,
|
|
289
|
+
legendType: "circle",
|
|
290
|
+
lineType: "joint",
|
|
291
|
+
lineJointType: "linear",
|
|
292
|
+
data: [],
|
|
293
|
+
shape: "circle",
|
|
294
|
+
hide: !1,
|
|
295
|
+
isAnimationActive: !d.isSsr,
|
|
296
|
+
animationBegin: 0,
|
|
297
|
+
animationDuration: 400,
|
|
298
|
+
animationEasing: "linear"
|
|
299
|
+
}), V(W, "getComposedData", function(e) {
|
|
300
|
+
var t = e.xAxis, n = e.yAxis, r = e.zAxis, i = e.item, a = e.displayedData, o = e.xAxisTicks, s = e.yAxisTicks, c = e.offset, u = i.props.tooltipType, d = l(i.props.children, f), p = (0, w.default)(t.dataKey) ? i.props.dataKey : t.dataKey, m = (0, w.default)(n.dataKey) ? i.props.dataKey : n.dataKey, _ = r && r.dataKey, v = r ? r.range : b.defaultProps.range, y = v && v[0], x = t.scale.bandwidth ? t.scale.bandwidth() : 0, S = n.scale.bandwidth ? n.scale.bandwidth() : 0;
|
|
301
|
+
return A({ points: a.map(function(e, a) {
|
|
302
|
+
var c = g(e, p), l = g(e, m), f = !(0, w.default)(_) && g(e, _) || "-", v = [{
|
|
303
|
+
name: (0, w.default)(t.dataKey) ? i.props.name : t.name || t.dataKey,
|
|
304
|
+
unit: t.unit || "",
|
|
305
|
+
value: c,
|
|
306
|
+
payload: e,
|
|
307
|
+
dataKey: p,
|
|
308
|
+
type: u
|
|
309
|
+
}, {
|
|
310
|
+
name: (0, w.default)(n.dataKey) ? i.props.name : n.name || n.dataKey,
|
|
311
|
+
unit: n.unit || "",
|
|
312
|
+
value: l,
|
|
313
|
+
payload: e,
|
|
314
|
+
dataKey: m,
|
|
315
|
+
type: u
|
|
316
|
+
}];
|
|
317
|
+
f !== "-" && v.push({
|
|
318
|
+
name: r.name || r.dataKey,
|
|
319
|
+
unit: r.unit || "",
|
|
320
|
+
value: f,
|
|
321
|
+
payload: e,
|
|
322
|
+
dataKey: _,
|
|
323
|
+
type: u
|
|
324
|
+
});
|
|
325
|
+
var b = h({
|
|
326
|
+
axis: t,
|
|
327
|
+
ticks: o,
|
|
328
|
+
bandSize: x,
|
|
329
|
+
entry: e,
|
|
330
|
+
index: a,
|
|
331
|
+
dataKey: p
|
|
332
|
+
}), C = h({
|
|
333
|
+
axis: n,
|
|
334
|
+
ticks: s,
|
|
335
|
+
bandSize: S,
|
|
336
|
+
entry: e,
|
|
337
|
+
index: a,
|
|
338
|
+
dataKey: m
|
|
339
|
+
}), T = f === "-" ? y : r.scale(f), E = Math.sqrt(Math.max(T, 0) / Math.PI);
|
|
340
|
+
return A(A({}, e), {}, {
|
|
341
|
+
cx: b,
|
|
342
|
+
cy: C,
|
|
343
|
+
x: b - E,
|
|
344
|
+
y: C - E,
|
|
345
|
+
xAxis: t,
|
|
346
|
+
yAxis: n,
|
|
347
|
+
zAxis: r,
|
|
348
|
+
width: 2 * E,
|
|
349
|
+
height: 2 * E,
|
|
350
|
+
size: T,
|
|
351
|
+
node: {
|
|
352
|
+
x: c,
|
|
353
|
+
y: l,
|
|
354
|
+
z: f
|
|
355
|
+
},
|
|
356
|
+
tooltipPayload: v,
|
|
357
|
+
tooltipPosition: {
|
|
358
|
+
x: b,
|
|
359
|
+
y: C
|
|
360
|
+
},
|
|
361
|
+
payload: e
|
|
362
|
+
}, d && d[a] && d[a].props);
|
|
363
|
+
}) }, c);
|
|
364
|
+
});
|
|
365
|
+
//#endregion
|
|
366
|
+
export { W as Scatter };
|
|
367
|
+
|
|
368
|
+
//# sourceMappingURL=Scatter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Scatter.js","names":["Animate"],"sources":["../../../../../node_modules/recharts/es6/cartesian/Scatter.js"],"sourcesContent":["var _Scatter;\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * @fileOverview Render a group of scatters\n */\nimport React, { PureComponent } from 'react';\nimport Animate from 'react-smooth';\nimport isNil from 'lodash/isNil';\nimport isEqual from 'lodash/isEqual';\nimport isFunction from 'lodash/isFunction';\nimport clsx from 'clsx';\nimport { Layer } from '../container/Layer';\nimport { LabelList } from '../component/LabelList';\nimport { findAllByType, filterProps } from '../util/ReactUtils';\nimport { Global } from '../util/Global';\nimport { ZAxis } from './ZAxis';\nimport { Curve } from '../shape/Curve';\nimport { ErrorBar } from './ErrorBar';\nimport { Cell } from '../component/Cell';\nimport { uniqueId, interpolateNumber, getLinearRegression } from '../util/DataUtils';\nimport { getValueByDataKey, getCateCoordinateOfLine } from '../util/ChartUtils';\nimport { adaptEventsOfChild } from '../util/types';\nimport { ScatterSymbol } from '../util/ScatterUtils';\nexport var Scatter = /*#__PURE__*/function (_PureComponent) {\n function Scatter() {\n var _this;\n _classCallCheck(this, Scatter);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, Scatter, [].concat(args));\n _defineProperty(_this, \"state\", {\n isAnimationFinished: false\n });\n _defineProperty(_this, \"handleAnimationEnd\", function () {\n _this.setState({\n isAnimationFinished: true\n });\n });\n _defineProperty(_this, \"handleAnimationStart\", function () {\n _this.setState({\n isAnimationFinished: false\n });\n });\n _defineProperty(_this, \"id\", uniqueId('recharts-scatter-'));\n return _this;\n }\n _inherits(Scatter, _PureComponent);\n return _createClass(Scatter, [{\n key: \"renderSymbolsStatically\",\n value: function renderSymbolsStatically(points) {\n var _this2 = this;\n var _this$props = this.props,\n shape = _this$props.shape,\n activeShape = _this$props.activeShape,\n activeIndex = _this$props.activeIndex;\n var baseProps = filterProps(this.props, false);\n return points.map(function (entry, i) {\n var isActive = activeIndex === i;\n var option = isActive ? activeShape : shape;\n var props = _objectSpread(_objectSpread({}, baseProps), entry);\n return /*#__PURE__*/React.createElement(Layer, _extends({\n className: \"recharts-scatter-symbol\"\n // eslint-disable-next-line react/no-array-index-key\n ,\n key: \"symbol-\".concat(entry === null || entry === void 0 ? void 0 : entry.cx, \"-\").concat(entry === null || entry === void 0 ? void 0 : entry.cy, \"-\").concat(entry === null || entry === void 0 ? void 0 : entry.size, \"-\").concat(i)\n }, adaptEventsOfChild(_this2.props, entry, i), {\n role: \"img\"\n }), /*#__PURE__*/React.createElement(ScatterSymbol, _extends({\n option: option,\n isActive: isActive\n // eslint-disable-next-line react/no-array-index-key\n ,\n key: \"symbol-\".concat(i)\n }, props)));\n });\n }\n }, {\n key: \"renderSymbolsWithAnimation\",\n value: function renderSymbolsWithAnimation() {\n var _this3 = this;\n var _this$props2 = this.props,\n points = _this$props2.points,\n isAnimationActive = _this$props2.isAnimationActive,\n animationBegin = _this$props2.animationBegin,\n animationDuration = _this$props2.animationDuration,\n animationEasing = _this$props2.animationEasing,\n animationId = _this$props2.animationId;\n var prevPoints = this.state.prevPoints;\n return /*#__PURE__*/React.createElement(Animate, {\n begin: animationBegin,\n duration: animationDuration,\n isActive: isAnimationActive,\n easing: animationEasing,\n from: {\n t: 0\n },\n to: {\n t: 1\n },\n key: \"pie-\".concat(animationId),\n onAnimationEnd: this.handleAnimationEnd,\n onAnimationStart: this.handleAnimationStart\n }, function (_ref) {\n var t = _ref.t;\n var stepData = points.map(function (entry, index) {\n var prev = prevPoints && prevPoints[index];\n if (prev) {\n var interpolatorCx = interpolateNumber(prev.cx, entry.cx);\n var interpolatorCy = interpolateNumber(prev.cy, entry.cy);\n var interpolatorSize = interpolateNumber(prev.size, entry.size);\n return _objectSpread(_objectSpread({}, entry), {}, {\n cx: interpolatorCx(t),\n cy: interpolatorCy(t),\n size: interpolatorSize(t)\n });\n }\n var interpolator = interpolateNumber(0, entry.size);\n return _objectSpread(_objectSpread({}, entry), {}, {\n size: interpolator(t)\n });\n });\n return /*#__PURE__*/React.createElement(Layer, null, _this3.renderSymbolsStatically(stepData));\n });\n }\n }, {\n key: \"renderSymbols\",\n value: function renderSymbols() {\n var _this$props3 = this.props,\n points = _this$props3.points,\n isAnimationActive = _this$props3.isAnimationActive;\n var prevPoints = this.state.prevPoints;\n if (isAnimationActive && points && points.length && (!prevPoints || !isEqual(prevPoints, points))) {\n return this.renderSymbolsWithAnimation();\n }\n return this.renderSymbolsStatically(points);\n }\n }, {\n key: \"renderErrorBar\",\n value: function renderErrorBar() {\n var isAnimationActive = this.props.isAnimationActive;\n if (isAnimationActive && !this.state.isAnimationFinished) {\n return null;\n }\n var _this$props4 = this.props,\n points = _this$props4.points,\n xAxis = _this$props4.xAxis,\n yAxis = _this$props4.yAxis,\n children = _this$props4.children;\n var errorBarItems = findAllByType(children, ErrorBar);\n if (!errorBarItems) {\n return null;\n }\n return errorBarItems.map(function (item, i) {\n var _item$props = item.props,\n direction = _item$props.direction,\n errorDataKey = _item$props.dataKey;\n return /*#__PURE__*/React.cloneElement(item, {\n key: \"\".concat(direction, \"-\").concat(errorDataKey, \"-\").concat(points[i]),\n data: points,\n xAxis: xAxis,\n yAxis: yAxis,\n layout: direction === 'x' ? 'vertical' : 'horizontal',\n dataPointFormatter: function dataPointFormatter(dataPoint, dataKey) {\n return {\n x: dataPoint.cx,\n y: dataPoint.cy,\n value: direction === 'x' ? +dataPoint.node.x : +dataPoint.node.y,\n errorVal: getValueByDataKey(dataPoint, dataKey)\n };\n }\n });\n });\n }\n }, {\n key: \"renderLine\",\n value: function renderLine() {\n var _this$props5 = this.props,\n points = _this$props5.points,\n line = _this$props5.line,\n lineType = _this$props5.lineType,\n lineJointType = _this$props5.lineJointType;\n var scatterProps = filterProps(this.props, false);\n var customLineProps = filterProps(line, false);\n var linePoints, lineItem;\n if (lineType === 'joint') {\n linePoints = points.map(function (entry) {\n return {\n x: entry.cx,\n y: entry.cy\n };\n });\n } else if (lineType === 'fitting') {\n var _getLinearRegression = getLinearRegression(points),\n xmin = _getLinearRegression.xmin,\n xmax = _getLinearRegression.xmax,\n a = _getLinearRegression.a,\n b = _getLinearRegression.b;\n var linearExp = function linearExp(x) {\n return a * x + b;\n };\n linePoints = [{\n x: xmin,\n y: linearExp(xmin)\n }, {\n x: xmax,\n y: linearExp(xmax)\n }];\n }\n var lineProps = _objectSpread(_objectSpread(_objectSpread({}, scatterProps), {}, {\n fill: 'none',\n stroke: scatterProps && scatterProps.fill\n }, customLineProps), {}, {\n points: linePoints\n });\n if ( /*#__PURE__*/React.isValidElement(line)) {\n lineItem = /*#__PURE__*/React.cloneElement(line, lineProps);\n } else if (isFunction(line)) {\n lineItem = line(lineProps);\n } else {\n lineItem = /*#__PURE__*/React.createElement(Curve, _extends({}, lineProps, {\n type: lineJointType\n }));\n }\n return /*#__PURE__*/React.createElement(Layer, {\n className: \"recharts-scatter-line\",\n key: \"recharts-scatter-line\"\n }, lineItem);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props6 = this.props,\n hide = _this$props6.hide,\n points = _this$props6.points,\n line = _this$props6.line,\n className = _this$props6.className,\n xAxis = _this$props6.xAxis,\n yAxis = _this$props6.yAxis,\n left = _this$props6.left,\n top = _this$props6.top,\n width = _this$props6.width,\n height = _this$props6.height,\n id = _this$props6.id,\n isAnimationActive = _this$props6.isAnimationActive;\n if (hide || !points || !points.length) {\n return null;\n }\n var isAnimationFinished = this.state.isAnimationFinished;\n var layerClass = clsx('recharts-scatter', className);\n var needClipX = xAxis && xAxis.allowDataOverflow;\n var needClipY = yAxis && yAxis.allowDataOverflow;\n var needClip = needClipX || needClipY;\n var clipPathId = isNil(id) ? this.id : id;\n return /*#__PURE__*/React.createElement(Layer, {\n className: layerClass,\n clipPath: needClip ? \"url(#clipPath-\".concat(clipPathId, \")\") : null\n }, needClipX || needClipY ? /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clipPath-\".concat(clipPathId)\n }, /*#__PURE__*/React.createElement(\"rect\", {\n x: needClipX ? left : left - width / 2,\n y: needClipY ? top : top - height / 2,\n width: needClipX ? width : width * 2,\n height: needClipY ? height : height * 2\n }))) : null, line && this.renderLine(), this.renderErrorBar(), /*#__PURE__*/React.createElement(Layer, {\n key: \"recharts-scatter-symbols\"\n }, this.renderSymbols()), (!isAnimationActive || isAnimationFinished) && LabelList.renderCallByParent(this.props, points));\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.animationId !== prevState.prevAnimationId) {\n return {\n prevAnimationId: nextProps.animationId,\n curPoints: nextProps.points,\n prevPoints: prevState.curPoints\n };\n }\n if (nextProps.points !== prevState.curPoints) {\n return {\n curPoints: nextProps.points\n };\n }\n return null;\n }\n }]);\n}(PureComponent);\n_Scatter = Scatter;\n_defineProperty(Scatter, \"displayName\", 'Scatter');\n_defineProperty(Scatter, \"defaultProps\", {\n xAxisId: 0,\n yAxisId: 0,\n zAxisId: 0,\n legendType: 'circle',\n lineType: 'joint',\n lineJointType: 'linear',\n data: [],\n shape: 'circle',\n hide: false,\n isAnimationActive: !Global.isSsr,\n animationBegin: 0,\n animationDuration: 400,\n animationEasing: 'linear'\n});\n/**\n * Compose the data of each group\n * @param {Object} xAxis The configuration of x-axis\n * @param {Object} yAxis The configuration of y-axis\n * @param {String} dataKey The unique key of a group\n * @return {Array} Composed data\n */\n_defineProperty(Scatter, \"getComposedData\", function (_ref2) {\n var xAxis = _ref2.xAxis,\n yAxis = _ref2.yAxis,\n zAxis = _ref2.zAxis,\n item = _ref2.item,\n displayedData = _ref2.displayedData,\n xAxisTicks = _ref2.xAxisTicks,\n yAxisTicks = _ref2.yAxisTicks,\n offset = _ref2.offset;\n var tooltipType = item.props.tooltipType;\n var cells = findAllByType(item.props.children, Cell);\n var xAxisDataKey = isNil(xAxis.dataKey) ? item.props.dataKey : xAxis.dataKey;\n var yAxisDataKey = isNil(yAxis.dataKey) ? item.props.dataKey : yAxis.dataKey;\n var zAxisDataKey = zAxis && zAxis.dataKey;\n var defaultRangeZ = zAxis ? zAxis.range : ZAxis.defaultProps.range;\n var defaultZ = defaultRangeZ && defaultRangeZ[0];\n var xBandSize = xAxis.scale.bandwidth ? xAxis.scale.bandwidth() : 0;\n var yBandSize = yAxis.scale.bandwidth ? yAxis.scale.bandwidth() : 0;\n var points = displayedData.map(function (entry, index) {\n var x = getValueByDataKey(entry, xAxisDataKey);\n var y = getValueByDataKey(entry, yAxisDataKey);\n var z = !isNil(zAxisDataKey) && getValueByDataKey(entry, zAxisDataKey) || '-';\n var tooltipPayload = [{\n name: isNil(xAxis.dataKey) ? item.props.name : xAxis.name || xAxis.dataKey,\n unit: xAxis.unit || '',\n value: x,\n payload: entry,\n dataKey: xAxisDataKey,\n type: tooltipType\n }, {\n name: isNil(yAxis.dataKey) ? item.props.name : yAxis.name || yAxis.dataKey,\n unit: yAxis.unit || '',\n value: y,\n payload: entry,\n dataKey: yAxisDataKey,\n type: tooltipType\n }];\n if (z !== '-') {\n tooltipPayload.push({\n name: zAxis.name || zAxis.dataKey,\n unit: zAxis.unit || '',\n value: z,\n payload: entry,\n dataKey: zAxisDataKey,\n type: tooltipType\n });\n }\n var cx = getCateCoordinateOfLine({\n axis: xAxis,\n ticks: xAxisTicks,\n bandSize: xBandSize,\n entry: entry,\n index: index,\n dataKey: xAxisDataKey\n });\n var cy = getCateCoordinateOfLine({\n axis: yAxis,\n ticks: yAxisTicks,\n bandSize: yBandSize,\n entry: entry,\n index: index,\n dataKey: yAxisDataKey\n });\n var size = z !== '-' ? zAxis.scale(z) : defaultZ;\n var radius = Math.sqrt(Math.max(size, 0) / Math.PI);\n return _objectSpread(_objectSpread({}, entry), {}, {\n cx: cx,\n cy: cy,\n x: cx - radius,\n y: cy - radius,\n xAxis: xAxis,\n yAxis: yAxis,\n zAxis: zAxis,\n width: 2 * radius,\n height: 2 * radius,\n size: size,\n node: {\n x: x,\n y: y,\n z: z\n },\n tooltipPayload: tooltipPayload,\n tooltipPosition: {\n x: cx,\n y: cy\n },\n payload: entry\n }, cells && cells[index] && cells[index].props);\n });\n return _objectSpread({\n points: points\n }, offset);\n});"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,SAAS,EAAQ,GAAG;AAAE;AAA2B,QAAO,IAAwB,OAAO,UAArB,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AE,EAAE,EAAE;GAC7C;GACA;GACJ,GAAG,IAAK;GACR,GAAG,IAAK;GACD;GACA;GACA;GACP,OAAO,IAAI;GACX,QAAQ,IAAI;GACN;GACN,MAAM;IACD;IACA;IACA;IACJ;GACe;GAChB,iBAAiB;IACf,GAAG;IACH,GAAG;IACJ;GACD,SAAS;GACV,EAAE,KAAS,EAAM,MAAU,EAAM,GAAO,MAAM;GAC/C,EAGD,EAAE,EAAO;EACV"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region node_modules/recharts/es6/cartesian/ZAxis.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
6
|
+
return typeof e;
|
|
7
|
+
} : function(e) {
|
|
8
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9
|
+
}, t(e);
|
|
10
|
+
}
|
|
11
|
+
function n(e, t) {
|
|
12
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
13
|
+
}
|
|
14
|
+
function r(e, t) {
|
|
15
|
+
for (var n = 0; n < t.length; n++) {
|
|
16
|
+
var r = t[n];
|
|
17
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, p(r.key), r);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function i(e, t, n) {
|
|
21
|
+
return t && r(e.prototype, t), n && r(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
22
|
+
}
|
|
23
|
+
function a(e, t, n) {
|
|
24
|
+
return t = l(t), o(e, c() ? Reflect.construct(t, n || [], l(e).constructor) : t.apply(e, n));
|
|
25
|
+
}
|
|
26
|
+
function o(e, n) {
|
|
27
|
+
if (n && (t(n) === "object" || typeof n == "function")) return n;
|
|
28
|
+
if (n !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
29
|
+
return s(e);
|
|
30
|
+
}
|
|
31
|
+
function s(e) {
|
|
32
|
+
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
33
|
+
return e;
|
|
34
|
+
}
|
|
35
|
+
function c() {
|
|
36
|
+
try {
|
|
37
|
+
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
38
|
+
} catch {}
|
|
39
|
+
return (c = function() {
|
|
40
|
+
return !!e;
|
|
41
|
+
})();
|
|
42
|
+
}
|
|
43
|
+
function l(e) {
|
|
44
|
+
return l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
45
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
46
|
+
}, l(e);
|
|
47
|
+
}
|
|
48
|
+
function u(e, t) {
|
|
49
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
50
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
51
|
+
value: e,
|
|
52
|
+
writable: !0,
|
|
53
|
+
configurable: !0
|
|
54
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && d(e, t);
|
|
55
|
+
}
|
|
56
|
+
function d(e, t) {
|
|
57
|
+
return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
58
|
+
return e.__proto__ = t, e;
|
|
59
|
+
}, d(e, t);
|
|
60
|
+
}
|
|
61
|
+
function f(e, t, n) {
|
|
62
|
+
return t = p(t), t in e ? Object.defineProperty(e, t, {
|
|
63
|
+
value: n,
|
|
64
|
+
enumerable: !0,
|
|
65
|
+
configurable: !0,
|
|
66
|
+
writable: !0
|
|
67
|
+
}) : e[t] = n, e;
|
|
68
|
+
}
|
|
69
|
+
function p(e) {
|
|
70
|
+
var n = m(e, "string");
|
|
71
|
+
return t(n) == "symbol" ? n : n + "";
|
|
72
|
+
}
|
|
73
|
+
function m(e, n) {
|
|
74
|
+
if (t(e) != "object" || !e) return e;
|
|
75
|
+
var r = e[Symbol.toPrimitive];
|
|
76
|
+
if (r !== void 0) {
|
|
77
|
+
var i = r.call(e, n || "default");
|
|
78
|
+
if (t(i) != "object") return i;
|
|
79
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
80
|
+
}
|
|
81
|
+
return (n === "string" ? String : Number)(e);
|
|
82
|
+
}
|
|
83
|
+
var h = /* @__PURE__ */ function(e) {
|
|
84
|
+
function t() {
|
|
85
|
+
return n(this, t), a(this, t, arguments);
|
|
86
|
+
}
|
|
87
|
+
return u(t, e), i(t, [{
|
|
88
|
+
key: "render",
|
|
89
|
+
value: function() {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
}]);
|
|
93
|
+
}(e.Component);
|
|
94
|
+
f(h, "displayName", "ZAxis"), f(h, "defaultProps", {
|
|
95
|
+
zAxisId: 0,
|
|
96
|
+
range: [64, 64],
|
|
97
|
+
scale: "auto",
|
|
98
|
+
type: "number"
|
|
99
|
+
});
|
|
100
|
+
//#endregion
|
|
101
|
+
export { h as ZAxis };
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=ZAxis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZAxis.js","names":["React"],"sources":["../../../../../node_modules/recharts/es6/cartesian/ZAxis.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/**\n * @fileOverview Z Axis\n */\nimport * as React from 'react';\n// eslint-disable-next-line react/prefer-stateless-function -- requires static defaultProps\nexport var ZAxis = /*#__PURE__*/function (_React$Component) {\n function ZAxis() {\n _classCallCheck(this, ZAxis);\n return _callSuper(this, ZAxis, arguments);\n }\n _inherits(ZAxis, _React$Component);\n return _createClass(ZAxis, [{\n key: \"render\",\n value: function render() {\n return null;\n }\n }]);\n}(React.Component);\n_defineProperty(ZAxis, \"displayName\", 'ZAxis');\n_defineProperty(ZAxis, \"defaultProps\", {\n zAxisId: 0,\n range: [64, 64],\n scale: 'auto',\n type: 'number'\n});"],"x_google_ignoreList":[0],"mappings":";;AAAA,SAAS,EAAQ,GAAG;AAAE;AAA2B,QAAO,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAU,GAAG;AAAE,SAAO,OAAO;KAAO,SAAU,GAAG;AAAE,SAAO,KAAmB,OAAO,UAArB,cAA+B,EAAE,gBAAgB,UAAU,MAAM,OAAO,YAAY,WAAW,OAAO;IAAM,EAAQ,EAAE;;AAC3T,SAAS,EAAgB,GAAU,GAAa;AAAE,KAAI,EAAE,aAAoB,GAAgB,OAAU,UAAU,oCAAoC;;AACpJ,SAAS,EAAkB,GAAQ,GAAO;AAAE,MAAK,IAAI,IAAI,GAAG,IAAI,EAAM,QAAQ,KAAK;EAAE,IAAI,IAAa,EAAM;AAAmJ,EAA/I,EAAW,aAAa,EAAW,cAAc,IAAO,EAAW,eAAe,IAAU,WAAW,MAAY,EAAW,WAAW,KAAM,OAAO,eAAe,GAAQ,EAA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C,IAAI,GAAG;CACf,OAAO;CACP,MAAM;CACP,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Bar as e } from "../cartesian/Bar.js";
|
|
2
|
+
import { formatAxisMap as t } from "../util/CartesianUtils.js";
|
|
3
|
+
import { XAxis as n } from "../cartesian/XAxis.js";
|
|
4
|
+
import { YAxis as r } from "../cartesian/YAxis.js";
|
|
5
|
+
import { generateCategoricalChart as i } from "./generateCategoricalChart.js";
|
|
6
|
+
//#region node_modules/recharts/es6/chart/BarChart.js
|
|
7
|
+
var a = i({
|
|
8
|
+
chartName: "BarChart",
|
|
9
|
+
GraphicalChild: e,
|
|
10
|
+
defaultTooltipEventType: "axis",
|
|
11
|
+
validateTooltipEventTypes: ["axis", "item"],
|
|
12
|
+
axisComponents: [{
|
|
13
|
+
axisType: "xAxis",
|
|
14
|
+
AxisComp: n
|
|
15
|
+
}, {
|
|
16
|
+
axisType: "yAxis",
|
|
17
|
+
AxisComp: r
|
|
18
|
+
}],
|
|
19
|
+
formatAxisMap: t
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as BarChart };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=BarChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BarChart.js","names":[],"sources":["../../../../../node_modules/recharts/es6/chart/BarChart.js"],"sourcesContent":["/**\n * @fileOverview Bar Chart\n */\nimport { generateCategoricalChart } from './generateCategoricalChart';\nimport { Bar } from '../cartesian/Bar';\nimport { XAxis } from '../cartesian/XAxis';\nimport { YAxis } from '../cartesian/YAxis';\nimport { formatAxisMap } from '../util/CartesianUtils';\nexport var BarChart = generateCategoricalChart({\n chartName: 'BarChart',\n GraphicalChild: Bar,\n defaultTooltipEventType: 'axis',\n validateTooltipEventTypes: ['axis', 'item'],\n axisComponents: [{\n axisType: 'xAxis',\n AxisComp: XAxis\n }, {\n axisType: 'yAxis',\n AxisComp: YAxis\n }],\n formatAxisMap: formatAxisMap\n});"],"x_google_ignoreList":[0],"mappings":";;;;;;AAQA,IAAW,IAAW,EAAyB;CAC7C,WAAW;CACX,gBAAgB;CAChB,yBAAyB;CACzB,2BAA2B,CAAC,QAAQ,OAAO;CAC3C,gBAAgB,CAAC;EACf,UAAU;EACV,UAAU;EACX,EAAE;EACD,UAAU;EACV,UAAU;EACX,CAAC;CACa;CAChB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Bar as e } from "../cartesian/Bar.js";
|
|
2
|
+
import { formatAxisMap as t } from "../util/CartesianUtils.js";
|
|
3
|
+
import { Line as n } from "../cartesian/Line.js";
|
|
4
|
+
import { Area as r } from "../cartesian/Area.js";
|
|
5
|
+
import { ZAxis as i } from "../cartesian/ZAxis.js";
|
|
6
|
+
import { Scatter as a } from "../cartesian/Scatter.js";
|
|
7
|
+
import { XAxis as o } from "../cartesian/XAxis.js";
|
|
8
|
+
import { YAxis as s } from "../cartesian/YAxis.js";
|
|
9
|
+
import { generateCategoricalChart as c } from "./generateCategoricalChart.js";
|
|
10
|
+
//#region node_modules/recharts/es6/chart/ComposedChart.js
|
|
11
|
+
var l = c({
|
|
12
|
+
chartName: "ComposedChart",
|
|
13
|
+
GraphicalChild: [
|
|
14
|
+
n,
|
|
15
|
+
r,
|
|
16
|
+
e,
|
|
17
|
+
a
|
|
18
|
+
],
|
|
19
|
+
axisComponents: [
|
|
20
|
+
{
|
|
21
|
+
axisType: "xAxis",
|
|
22
|
+
AxisComp: o
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
axisType: "yAxis",
|
|
26
|
+
AxisComp: s
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
axisType: "zAxis",
|
|
30
|
+
AxisComp: i
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
formatAxisMap: t
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { l as ComposedChart };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=ComposedChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComposedChart.js","names":[],"sources":["../../../../../node_modules/recharts/es6/chart/ComposedChart.js"],"sourcesContent":["/**\n * @fileOverview Composed Chart\n */\nimport { generateCategoricalChart } from './generateCategoricalChart';\nimport { Area } from '../cartesian/Area';\nimport { Bar } from '../cartesian/Bar';\nimport { Line } from '../cartesian/Line';\nimport { Scatter } from '../cartesian/Scatter';\nimport { XAxis } from '../cartesian/XAxis';\nimport { YAxis } from '../cartesian/YAxis';\nimport { ZAxis } from '../cartesian/ZAxis';\nimport { formatAxisMap } from '../util/CartesianUtils';\nexport var ComposedChart = generateCategoricalChart({\n chartName: 'ComposedChart',\n GraphicalChild: [Line, Area, Bar, Scatter],\n axisComponents: [{\n axisType: 'xAxis',\n AxisComp: XAxis\n }, {\n axisType: 'yAxis',\n AxisComp: YAxis\n }, {\n axisType: 'zAxis',\n AxisComp: ZAxis\n }],\n formatAxisMap: formatAxisMap\n});"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAYA,IAAW,IAAgB,EAAyB;CAClD,WAAW;CACX,gBAAgB;EAAC;EAAM;EAAM;EAAK;EAAQ;CAC1C,gBAAgB;EAAC;GACf,UAAU;GACV,UAAU;GACX;EAAE;GACD,UAAU;GACV,UAAU;GACX;EAAE;GACD,UAAU;GACV,UAAU;GACX;EAAC;CACa;CAChB,CAAC"}
|
|
@@ -48,10 +48,20 @@ function S(e, t, n) {
|
|
|
48
48
|
return e && (typeof t == "function" ? t(e) : (0, c.default)(e, t)) === n;
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
var C = function(e
|
|
51
|
+
var C = function(e) {
|
|
52
|
+
if (!e || !e.length) return null;
|
|
53
|
+
for (var t = e.length, n = 0, r = 0, i = 0, a = 0, o = Infinity, s = -Infinity, c = 0, l = 0, u = 0; u < t; u++) c = e[u].cx || 0, l = e[u].cy || 0, n += c, r += l, i += c * l, a += c * c, o = Math.min(o, c), s = Math.max(s, c);
|
|
54
|
+
var d = t * a === n * n ? 0 : (t * i - n * r) / (t * a - n * n);
|
|
55
|
+
return {
|
|
56
|
+
xmin: o,
|
|
57
|
+
xmax: s,
|
|
58
|
+
a: d,
|
|
59
|
+
b: (r - d * n) / t
|
|
60
|
+
};
|
|
61
|
+
}, w = function(e, t) {
|
|
52
62
|
return p(e) && p(t) ? e - t : (0, o.default)(e) && (0, o.default)(t) ? e.localeCompare(t) : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : String(e).localeCompare(String(t));
|
|
53
63
|
};
|
|
54
64
|
//#endregion
|
|
55
|
-
export {
|
|
65
|
+
export { w as compareValues, S as findEntryInArray, y as getAnyElementOfObject, C as getLinearRegression, v as getPercentValue, b as hasDuplicate, x as interpolateNumber, m as isNullish, h as isNumOrStr, p as isNumber, f as isPercent, d as mathSign, _ as uniqueId };
|
|
56
66
|
|
|
57
67
|
//# sourceMappingURL=DataUtils.js.map
|