@dpuse/dpuse-tool-d3-visualiser 0.0.23 → 0.0.25
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/{billboardJs-BTW-G9h0.js → billboardJs-DJFb72FS.js} +860 -830
- package/dist/billboardJs-DJFb72FS.js.map +1 -0
- package/dist/dpuse-tool-d3-visualiser.es.js +4 -4
- package/dist/{erdDiagram-BWtgbL8q.js → erdDiagram-BDV0xo6a.js} +454 -475
- package/dist/erdDiagram-BDV0xo6a.js.map +1 -0
- package/dist/link-RZgae8Z2.js +98 -0
- package/dist/link-RZgae8Z2.js.map +1 -0
- package/dist/{sankeyDiagram-DDZfWF8l.js → sankeyDiagram-DlIuwzOl.js} +2 -2
- package/dist/{sankeyDiagram-DDZfWF8l.js.map → sankeyDiagram-DlIuwzOl.js.map} +1 -1
- package/dist/{treeDiagram-C8jl6ALp.js → treeDiagram-Bi5VXDVy.js} +2 -2
- package/dist/{treeDiagram-C8jl6ALp.js.map → treeDiagram-Bi5VXDVy.js.map} +1 -1
- package/dist/types/src/erdDiagram.d.ts +2 -1
- package/package.json +1 -1
- package/dist/billboardJs-BTW-G9h0.js.map +0 -1
- package/dist/erdDiagram-BWtgbL8q.js.map +0 -1
- package/dist/linear-J4iYa1Bf.js +0 -34
- package/dist/linear-J4iYa1Bf.js.map +0 -1
- package/dist/link-20hHJfDf.js +0 -65
- package/dist/link-20hHJfDf.js.map +0 -1
- package/dist/point-BwTGxj8U.js +0 -40
- package/dist/point-BwTGxj8U.js.map +0 -1
|
@@ -2,9 +2,8 @@ import { c as e, f as t, n, r, t as i } from "./select-BIuoFcZG.js";
|
|
|
2
2
|
import { O as a, t as o } from "./src-DnMaAyIP.js";
|
|
3
3
|
import { F as s, M as c, N as l, P as u, _ as d, f, h as p, i as m, k as h, m as g, n as _, p as v, r as y, t as b, y as x } from "./axis-B7xlWKkC.js";
|
|
4
4
|
import { t as S } from "./drag-B46QGUMq.js";
|
|
5
|
-
import { t as C } from "./linear-J4iYa1Bf.js";
|
|
6
5
|
//#region node_modules/billboard.js/dist-esm/config/const.js
|
|
7
|
-
var
|
|
6
|
+
var C = {
|
|
8
7
|
AREA: "area",
|
|
9
8
|
AREA_LINE_RANGE: "area-line-range",
|
|
10
9
|
AREA_SPLINE: "area-spline",
|
|
@@ -25,7 +24,7 @@ var w = {
|
|
|
25
24
|
SPLINE: "spline",
|
|
26
25
|
STEP: "step",
|
|
27
26
|
TREEMAP: "treemap"
|
|
28
|
-
},
|
|
27
|
+
}, w = {
|
|
29
28
|
AREA: "initArea",
|
|
30
29
|
AREA_LINE_RANGE: "initArea",
|
|
31
30
|
AREA_SPLINE: "initArea",
|
|
@@ -46,55 +45,55 @@ var w = {
|
|
|
46
45
|
SPLINE: "initLine",
|
|
47
46
|
STEP: "initLine",
|
|
48
47
|
TREEMAP: "initTreemap"
|
|
49
|
-
},
|
|
48
|
+
}, T = {
|
|
50
49
|
Area: [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
C.AREA,
|
|
51
|
+
C.AREA_SPLINE,
|
|
52
|
+
C.AREA_SPLINE_RANGE,
|
|
53
|
+
C.AREA_LINE_RANGE,
|
|
54
|
+
C.AREA_STEP,
|
|
55
|
+
C.AREA_STEP_RANGE
|
|
57
56
|
],
|
|
58
57
|
AreaRange: [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
C.AREA_SPLINE_RANGE,
|
|
59
|
+
C.AREA_LINE_RANGE,
|
|
60
|
+
C.AREA_STEP_RANGE
|
|
62
61
|
],
|
|
63
62
|
Arc: [
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
C.PIE,
|
|
64
|
+
C.DONUT,
|
|
65
|
+
C.GAUGE,
|
|
66
|
+
C.POLAR,
|
|
67
|
+
C.RADAR
|
|
69
68
|
],
|
|
70
69
|
Line: [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
C.LINE,
|
|
71
|
+
C.SPLINE,
|
|
72
|
+
C.AREA,
|
|
73
|
+
C.AREA_SPLINE,
|
|
74
|
+
C.AREA_SPLINE_RANGE,
|
|
75
|
+
C.AREA_LINE_RANGE,
|
|
76
|
+
C.STEP,
|
|
77
|
+
C.AREA_STEP,
|
|
78
|
+
C.AREA_STEP_RANGE
|
|
80
79
|
],
|
|
81
80
|
Step: [
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
C.STEP,
|
|
82
|
+
C.AREA_STEP,
|
|
83
|
+
C.AREA_STEP_RANGE
|
|
85
84
|
],
|
|
86
85
|
Spline: [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
C.SPLINE,
|
|
87
|
+
C.AREA_SPLINE,
|
|
88
|
+
C.AREA_SPLINE_RANGE
|
|
90
89
|
]
|
|
91
90
|
};
|
|
92
91
|
//#endregion
|
|
93
92
|
//#region node_modules/billboard.js/dist-esm/module/browser.js
|
|
94
|
-
function
|
|
93
|
+
function E() {
|
|
95
94
|
return typeof globalThis == "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof self == "object" && self !== null && self.Object === Object && self || Function("return this")();
|
|
96
95
|
}
|
|
97
|
-
function
|
|
96
|
+
function D(e) {
|
|
98
97
|
let t = typeof e?.requestAnimationFrame == "function" && typeof e?.cancelAnimationFrame == "function", n = typeof e?.requestIdleCallback == "function" && typeof e?.cancelIdleCallback == "function", r = (e) => setTimeout(e, 1), i = (e) => clearTimeout(e);
|
|
99
98
|
return [
|
|
100
99
|
t ? e.requestAnimationFrame : r,
|
|
@@ -103,22 +102,22 @@ function ee(e) {
|
|
|
103
102
|
n ? e.cancelIdleCallback : i
|
|
104
103
|
];
|
|
105
104
|
}
|
|
106
|
-
var O =
|
|
105
|
+
var O = E(), k = O?.document, [ee, te, ne, re] = D(O), A = (e) => e || e === 0, j = (e) => typeof e == "function", M = (e) => typeof e == "string", N = (e) => typeof e == "number", P = (e) => e === void 0, F = (e) => e !== void 0, ie = (e) => typeof e == "boolean", ae = (e) => Math.ceil(e / 10) * 10, oe = (e) => Math.ceil(e) + .5, se = (e) => e[1] - e[0], I = (e) => typeof e == "object", ce = (e) => {
|
|
107
106
|
for (let t in e) return !1;
|
|
108
107
|
return !0;
|
|
109
|
-
}, L = (e) => P(e) || e === null || M(e) && e.length === 0 || I(e) && !(e instanceof Date) &&
|
|
108
|
+
}, L = (e) => P(e) || e === null || M(e) && e.length === 0 || I(e) && !(e instanceof Date) && ce(e) || N(e) && isNaN(e), R = (e) => !L(e), z = (e) => Array.isArray(e), B = (e) => e && !e?.nodeType && I(e) && !z(e), le = /* @__PURE__ */ new Set(/* @__PURE__ */ "span.div.p.br.b.i.em.small.strong.mark.u.s.sub.sup.h1.h2.h3.h4.h5.h6.ul.ol.li.dl.dt.dd.table.thead.tbody.tfoot.tr.th.td.caption.colgroup.col.hr.pre.code.blockquote.abbr.ins.del.a.img.figure.figcaption.svg.g.path.circle.ellipse.rect.line.polyline.polygon.text.tspan.textPath.use.defs.symbol.clipPath.mask.linearGradient.radialGradient.stop.pattern.marker.title.desc".split(".")), ue = /* @__PURE__ */ new Set(/* @__PURE__ */ "class.id.style.title.lang.dir.href.src.alt.width.height.colspan.rowspan.scope.headers.d.points.x.y.x1.x2.y1.y2.cx.cy.r.rx.ry.dx.dy.viewBox.preserveAspectRatio.transform.fill.fill-opacity.fill-rule.stroke.stroke-width.stroke-opacity.stroke-linecap.stroke-linejoin.stroke-dasharray.stroke-dashoffset.opacity.clip-path.clip-rule.mask.font-family.font-size.font-weight.font-style.text-anchor.dominant-baseline.offset.stop-color.stop-opacity.gradientUnits.gradientTransform.spreadMethod.patternUnits.patternTransform.marker-start.marker-mid.marker-end.markerWidth.markerHeight.refX.refY.xlink:href".split(".")), de = /* @__PURE__ */ new Map();
|
|
109
|
+
le.forEach((e) => de.set(e.toLowerCase(), e));
|
|
110
|
+
var fe = /* @__PURE__ */ new Map();
|
|
110
111
|
ue.forEach((e) => fe.set(e.toLowerCase(), e));
|
|
111
|
-
var pe = /* @__PURE__ */ new
|
|
112
|
-
de.forEach((e) => pe.set(e.toLowerCase(), e));
|
|
113
|
-
var me = /* @__PURE__ */ new Set([
|
|
112
|
+
var pe = /* @__PURE__ */ new Set([
|
|
114
113
|
"http:",
|
|
115
114
|
"https:",
|
|
116
115
|
"mailto:"
|
|
117
|
-
]),
|
|
116
|
+
]), me = /* @__PURE__ */ new Set([
|
|
118
117
|
"href",
|
|
119
118
|
"src",
|
|
120
119
|
"xlink:href"
|
|
121
|
-
]),
|
|
120
|
+
]), he = /^<\/?([a-zA-Z][a-zA-Z0-9]*)/, ge = /^<\/([a-zA-Z][a-zA-Z0-9]*)\s*>$/, _e = /^<([a-zA-Z][a-zA-Z0-9]*)([\s\S]*?)(\/?)>$/, ve = /([a-zA-Z][\w:-]*)\s*(?:=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g, ye = /url\s*\(\s*["']?([^"')]+)["']?\s*\)/gi, be = [
|
|
122
121
|
"expression(",
|
|
123
122
|
"behavior:",
|
|
124
123
|
"binding:",
|
|
@@ -126,93 +125,93 @@ var me = /* @__PURE__ */ new Set([
|
|
|
126
125
|
"@charset",
|
|
127
126
|
"-moz-binding:"
|
|
128
127
|
];
|
|
129
|
-
function
|
|
128
|
+
function xe(e) {
|
|
130
129
|
return e.replace(/:/gi, ":").replace(/&newline;/gi, "\n").replace(/&tab;/gi, " ").replace(/ /gi, " ").replace(/</gi, "<").replace(/>/gi, ">").replace(/&/gi, "&").replace(/"/gi, "\"").replace(/'/gi, "'").replace(/&#(\d+);?/gi, (e, t) => String.fromCharCode(parseInt(t, 10))).replace(/&#x([0-9a-f]+);?/gi, (e, t) => String.fromCharCode(parseInt(t, 16)));
|
|
131
130
|
}
|
|
132
|
-
function
|
|
133
|
-
let t =
|
|
131
|
+
function Se(e) {
|
|
132
|
+
let t = xe(e).trim().replace(/[\s\u0000-\u001f]/g, "").toLowerCase();
|
|
134
133
|
if (!t || t.startsWith("#")) return !0;
|
|
135
134
|
let n = t.match(/^[^/?#]*:/);
|
|
136
|
-
return !n ||
|
|
135
|
+
return !n || pe.has(n[0]);
|
|
137
136
|
}
|
|
138
|
-
function
|
|
139
|
-
let t =
|
|
140
|
-
|
|
137
|
+
function Ce(e) {
|
|
138
|
+
let t = xe(e).replace(/[\u0000-\u001f]/g, "");
|
|
139
|
+
ye.lastIndex = 0;
|
|
141
140
|
let n;
|
|
142
|
-
for (; (n =
|
|
141
|
+
for (; (n = ye.exec(t)) !== null;) if (!Se(n[1])) return null;
|
|
143
142
|
let r = t.toLowerCase().replace(/\s/g, "");
|
|
144
|
-
for (let e of
|
|
143
|
+
for (let e of be) if (r.includes(e)) return null;
|
|
145
144
|
return e;
|
|
146
145
|
}
|
|
147
|
-
var
|
|
146
|
+
var we = {
|
|
148
147
|
"\"": """,
|
|
149
148
|
"'": "'",
|
|
150
149
|
"`": "`"
|
|
151
|
-
},
|
|
152
|
-
function
|
|
153
|
-
return e.replace(
|
|
150
|
+
}, Te = /["'`]/g;
|
|
151
|
+
function Ee(e) {
|
|
152
|
+
return e.replace(Te, (e) => we[e]);
|
|
154
153
|
}
|
|
155
|
-
function
|
|
156
|
-
if (
|
|
154
|
+
function De(e, t, n = !1) {
|
|
155
|
+
if (me.has(e)) return Se(t) ? n ? Ee(t) : t : null;
|
|
157
156
|
if (e === "style") {
|
|
158
|
-
let e =
|
|
159
|
-
return e === null ? null : n ?
|
|
157
|
+
let e = Ce(t);
|
|
158
|
+
return e === null ? null : n ? Ee(e) : e;
|
|
160
159
|
}
|
|
161
|
-
let r =
|
|
162
|
-
return /\bon\w+=/.test(r) ? null : n ?
|
|
160
|
+
let r = xe(t).toLowerCase().replace(/\s/g, "");
|
|
161
|
+
return /\bon\w+=/.test(r) ? null : n ? Ee(t) : t;
|
|
163
162
|
}
|
|
164
|
-
function
|
|
165
|
-
let t = e.match(
|
|
163
|
+
function Oe(e) {
|
|
164
|
+
let t = e.match(he);
|
|
166
165
|
return t ? t[1].toLowerCase() : null;
|
|
167
166
|
}
|
|
168
|
-
function
|
|
169
|
-
let t =
|
|
170
|
-
return t !== null &&
|
|
167
|
+
function ke(e) {
|
|
168
|
+
let t = Oe(e);
|
|
169
|
+
return t !== null && de.has(t);
|
|
171
170
|
}
|
|
172
|
-
function
|
|
173
|
-
let t = e.match(
|
|
171
|
+
function Ae(e) {
|
|
172
|
+
let t = e.match(ge);
|
|
174
173
|
if (t) {
|
|
175
174
|
let e = t[1].toLowerCase();
|
|
176
|
-
return `</${
|
|
175
|
+
return `</${de.get(e) ?? e}>`;
|
|
177
176
|
}
|
|
178
|
-
let n = e.match(
|
|
177
|
+
let n = e.match(_e);
|
|
179
178
|
if (!n) return "";
|
|
180
|
-
let [, r, i, a] = n, o = r.toLowerCase(), s =
|
|
181
|
-
|
|
179
|
+
let [, r, i, a] = n, o = r.toLowerCase(), s = de.get(o) ?? o, c = [];
|
|
180
|
+
ve.lastIndex = 0;
|
|
182
181
|
let l;
|
|
183
|
-
for (; (l =
|
|
182
|
+
for (; (l = ve.exec(i)) !== null;) {
|
|
184
183
|
let e = l[1].toLowerCase(), t = l[2], n = l[3], r = l[4];
|
|
185
184
|
if (e.startsWith("on")) continue;
|
|
186
|
-
let i =
|
|
185
|
+
let i = fe.get(e) ?? e, a, o;
|
|
187
186
|
if (t !== void 0) a = t, o = "\"";
|
|
188
187
|
else if (n !== void 0) a = n, o = "'";
|
|
189
188
|
else if (r !== void 0) a = r, o = "\"";
|
|
190
189
|
else {
|
|
191
|
-
|
|
190
|
+
fe.has(e) && c.push(i);
|
|
192
191
|
continue;
|
|
193
192
|
}
|
|
194
|
-
if (
|
|
195
|
-
let t =
|
|
193
|
+
if (fe.has(e)) {
|
|
194
|
+
let t = De(e, a, r !== void 0);
|
|
196
195
|
t !== null && c.push(`${i}=${o}${t}${o}`);
|
|
197
196
|
}
|
|
198
197
|
}
|
|
199
198
|
return `<${s}${c.length > 0 ? ` ${c.join(" ")}` : ""}${a ? "/>" : ">"}`;
|
|
200
199
|
}
|
|
201
|
-
function
|
|
202
|
-
return typeof e != "string" || !e || e.indexOf("<") === -1 ? e : e.replace(/<\/?[^>]*>|[^<>\s]+>/g, (e) => e.startsWith("<!--") ? "" : e.startsWith("<") ?
|
|
200
|
+
function je(e) {
|
|
201
|
+
return typeof e != "string" || !e || e.indexOf("<") === -1 ? e : e.replace(/<\/?[^>]*>|[^<>\s]+>/g, (e) => e.startsWith("<!--") ? "" : e.startsWith("<") ? ke(e) ? Ae(e) : e.replace(/</g, "<") : e.slice(0, -1) + ">");
|
|
203
202
|
}
|
|
204
203
|
//#endregion
|
|
205
204
|
//#region node_modules/billboard.js/dist-esm/module/util/object.js
|
|
206
|
-
function
|
|
205
|
+
function Me(e, t) {
|
|
207
206
|
for (let n = 0; n < e.length; n++) {
|
|
208
207
|
let r = e[n];
|
|
209
208
|
r !== null && F(r) && t(r, n);
|
|
210
209
|
}
|
|
211
210
|
}
|
|
212
|
-
function
|
|
211
|
+
function Ne(e, t, n) {
|
|
213
212
|
return F(e[t]) ? e[t] : n;
|
|
214
213
|
}
|
|
215
|
-
function
|
|
214
|
+
function Pe(e, t) {
|
|
216
215
|
for (let n in e) if (e[n] === t) return !0;
|
|
217
216
|
return !1;
|
|
218
217
|
}
|
|
@@ -220,18 +219,18 @@ function V(e, t, ...n) {
|
|
|
220
219
|
let r = j(e);
|
|
221
220
|
return r && e.call(t, ...n), r;
|
|
222
221
|
}
|
|
223
|
-
function
|
|
222
|
+
function Fe(e, t) {
|
|
224
223
|
let n = 0, r = function(...e) {
|
|
225
224
|
!--n && t.apply(this, e);
|
|
226
225
|
};
|
|
227
226
|
"duration" in e ? e.each(() => ++n).on("end", r) : (++n, e.call(r));
|
|
228
227
|
}
|
|
229
228
|
var H = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
230
|
-
function
|
|
229
|
+
function Ie(e, t = "-") {
|
|
231
230
|
return e.split(t).map((e, t) => t ? e.charAt(0).toUpperCase() + e.slice(1).toLowerCase() : e.toLowerCase()).join("");
|
|
232
231
|
}
|
|
233
|
-
var
|
|
234
|
-
function
|
|
232
|
+
var Le = (e) => [].slice.call(e);
|
|
233
|
+
function Re(...e) {
|
|
235
234
|
let t = (e) => {
|
|
236
235
|
if (z(e)) return e.map(t);
|
|
237
236
|
if (B(e) && e.constructor) {
|
|
@@ -246,56 +245,56 @@ function ze(...e) {
|
|
|
246
245
|
...t
|
|
247
246
|
}));
|
|
248
247
|
}
|
|
249
|
-
function
|
|
250
|
-
z(t) && t.forEach((t) =>
|
|
248
|
+
function ze(e = {}, t) {
|
|
249
|
+
z(t) && t.forEach((t) => ze(e, t));
|
|
251
250
|
for (let n in t) /^\d+$/.test(n) || n in e || (e[n] = t[n]);
|
|
252
251
|
return e;
|
|
253
252
|
}
|
|
254
|
-
function
|
|
253
|
+
function Be(e) {
|
|
255
254
|
let t = e[0] instanceof Date, n = Array.from(new Set(t ? e.map(Number) : e));
|
|
256
255
|
return t ? n.map((e) => new Date(e)) : n;
|
|
257
256
|
}
|
|
258
|
-
function
|
|
257
|
+
function Ve(e) {
|
|
259
258
|
return e && e.length ? e.reduce((e, t) => e.concat(t)) : [];
|
|
260
259
|
}
|
|
261
|
-
function
|
|
260
|
+
function He(e, ...t) {
|
|
262
261
|
if (!t.length || t.length === 1 && !t[0]) return e;
|
|
263
262
|
let n = t.shift();
|
|
264
263
|
return B(e) && B(n) && Object.keys(n).forEach((t) => {
|
|
265
264
|
if (!/^(__proto__|constructor|prototype)$/i.test(t)) {
|
|
266
265
|
let r = n[t];
|
|
267
|
-
r instanceof Date ? e[t] = new Date(r.getTime()) : B(r) ? (!e[t] && (e[t] = {}), e[t] =
|
|
266
|
+
r instanceof Date ? e[t] = new Date(r.getTime()) : B(r) ? (!e[t] && (e[t] = {}), e[t] = He(e[t], r)) : e[t] = z(r) ? r.concat() : r;
|
|
268
267
|
}
|
|
269
|
-
}),
|
|
268
|
+
}), He(e, ...t);
|
|
270
269
|
}
|
|
271
|
-
function
|
|
270
|
+
function Ue(e, t = !0) {
|
|
272
271
|
let n;
|
|
273
272
|
return e[0] instanceof Date ? n = t ? (e, t) => e - t : (e, t) => t - e : t && !e.every(isNaN) ? n = (e, t) => e - t : t || (n = (e, t) => e > t && -1 || e < t && 1 || e === t && 0), e.concat().sort(n);
|
|
274
273
|
}
|
|
275
|
-
function
|
|
274
|
+
function We(e, t) {
|
|
276
275
|
let n = t.filter((e) => R(e));
|
|
277
276
|
if (n.length) if (N(n[0])) {
|
|
278
277
|
let t = e === "min" ? Infinity : -Infinity;
|
|
279
278
|
for (let r of n) (e === "min" ? r < t : r > t) && (t = r);
|
|
280
279
|
n = t;
|
|
281
|
-
} else n[0] instanceof Date && (n =
|
|
280
|
+
} else n[0] instanceof Date && (n = Ue(n, e === "min")[0]);
|
|
282
281
|
else n = void 0;
|
|
283
282
|
return n;
|
|
284
283
|
}
|
|
285
|
-
var
|
|
286
|
-
function
|
|
287
|
-
let t = ++
|
|
284
|
+
var Ge = 0;
|
|
285
|
+
function Ke(e = !0) {
|
|
286
|
+
let t = ++Ge;
|
|
288
287
|
return e ? String(t) : t;
|
|
289
288
|
}
|
|
290
|
-
function
|
|
289
|
+
function qe(e, t, n, r, i) {
|
|
291
290
|
if (n > r) return -1;
|
|
292
291
|
let a = Math.floor((n + r) / 2), { x: o, w: s = 0 } = e[a];
|
|
293
|
-
return i && (o = e[a].y, s = e[a].h), t >= o && t <= o + s ? a : t < o ?
|
|
292
|
+
return i && (o = e[a].y, s = e[a].h), t >= o && t <= o + s ? a : t < o ? qe(e, t, n, a - 1, i) : qe(e, t, a + 1, r, i);
|
|
294
293
|
}
|
|
295
|
-
function
|
|
296
|
-
return
|
|
294
|
+
function Je(e, t) {
|
|
295
|
+
return je(e.replace(/\{=([^}]+)\}/g, (e, n) => t[n] ?? ""));
|
|
297
296
|
}
|
|
298
|
-
function
|
|
297
|
+
function Ye(e) {
|
|
299
298
|
let t;
|
|
300
299
|
if (e instanceof Date) t = e;
|
|
301
300
|
else if (M(e)) {
|
|
@@ -304,7 +303,7 @@ function Xe(e) {
|
|
|
304
303
|
} else N(e) && !isNaN(e) && (t = /* @__PURE__ */ new Date(+e));
|
|
305
304
|
return (!t || isNaN(+t)) && console && console.error && console.error(`Failed to parse x '${e}' to Date object`), t;
|
|
306
305
|
}
|
|
307
|
-
function
|
|
306
|
+
function Xe(e) {
|
|
308
307
|
if (B(e) && !M(e)) {
|
|
309
308
|
let t = e;
|
|
310
309
|
return {
|
|
@@ -322,37 +321,37 @@ function Ze(e) {
|
|
|
322
321
|
left: i
|
|
323
322
|
};
|
|
324
323
|
}
|
|
325
|
-
function
|
|
326
|
-
t() === !1 ?
|
|
324
|
+
function Ze(e, t) {
|
|
325
|
+
t() === !1 ? ee(() => Ze(e, t)) : e();
|
|
327
326
|
}
|
|
328
|
-
function
|
|
327
|
+
function Qe(e, t = ((e) => e)) {
|
|
329
328
|
let n = /* @__PURE__ */ new Set();
|
|
330
|
-
return
|
|
329
|
+
return Me(e, (e, r) => {
|
|
331
330
|
n.add(t(e, r));
|
|
332
331
|
}), n;
|
|
333
332
|
}
|
|
334
|
-
function
|
|
333
|
+
function $e(e, t, n = ((e) => e)) {
|
|
335
334
|
let r = /* @__PURE__ */ new Map();
|
|
336
|
-
return
|
|
335
|
+
return Me(e, (e, i) => {
|
|
337
336
|
r.set(t(e, i), n(e, i));
|
|
338
337
|
}), r;
|
|
339
338
|
}
|
|
340
339
|
//#endregion
|
|
341
340
|
//#region node_modules/billboard.js/dist-esm/module/error.js
|
|
342
|
-
var
|
|
343
|
-
function
|
|
341
|
+
var et = "https://github.com/naver/billboard.js/blob/master/MODULE_IMPORTS.md";
|
|
342
|
+
function tt(e) {
|
|
344
343
|
let t = e, { config: n } = t, r = "";
|
|
345
|
-
if (L(n.data_type || n.data_types) && !t[
|
|
346
|
-
else for (let e in
|
|
347
|
-
let n =
|
|
348
|
-
if (t.hasType(n) && !t[
|
|
344
|
+
if (L(n.data_type || n.data_types) && !t[w.LINE]) r = "line";
|
|
345
|
+
else for (let e in w) {
|
|
346
|
+
let n = C[e];
|
|
347
|
+
if (t.hasType(n) && !t[w[e]]) {
|
|
349
348
|
r = n;
|
|
350
349
|
break;
|
|
351
350
|
}
|
|
352
351
|
}
|
|
353
|
-
r &&
|
|
352
|
+
r && nt(`Please, make sure if %c${Ie(r)}`, "module has been imported and specified correctly.", et);
|
|
354
353
|
}
|
|
355
|
-
function
|
|
354
|
+
function nt(e, t, n) {
|
|
356
355
|
let r = "[billboard.js]";
|
|
357
356
|
if (O.console?.error) {
|
|
358
357
|
let i = ["background:red;color:white;display:block;font-size:15px", t];
|
|
@@ -362,7 +361,7 @@ function rt(e, t, n) {
|
|
|
362
361
|
}
|
|
363
362
|
//#endregion
|
|
364
363
|
//#region node_modules/d3-selection/src/selectAll.js
|
|
365
|
-
function
|
|
364
|
+
function rt(t) {
|
|
366
365
|
return typeof t == "string" ? new n([document.querySelectorAll(t)], [document.documentElement]) : new n([e(t)], r);
|
|
367
366
|
}
|
|
368
367
|
//#endregion
|
|
@@ -375,7 +374,7 @@ var U = {
|
|
|
375
374
|
target: "bb-target",
|
|
376
375
|
EXPANDED: "_expanded_",
|
|
377
376
|
dummy: "_dummy_"
|
|
378
|
-
},
|
|
377
|
+
}, it = {
|
|
379
378
|
arc: "bb-arc",
|
|
380
379
|
arcLabelLine: "bb-arc-label-line",
|
|
381
380
|
arcLabelLineText: "bb-arc-label-line-text",
|
|
@@ -386,7 +385,7 @@ var U = {
|
|
|
386
385
|
chartArcsBackground: "bb-chart-arcs-background",
|
|
387
386
|
chartArcsTitle: "bb-chart-arcs-title",
|
|
388
387
|
needle: "bb-needle"
|
|
389
|
-
},
|
|
388
|
+
}, at = {
|
|
390
389
|
area: "bb-area",
|
|
391
390
|
areas: "bb-areas"
|
|
392
391
|
}, W = {
|
|
@@ -408,29 +407,29 @@ var U = {
|
|
|
408
407
|
chartBar: "bb-chart-bar",
|
|
409
408
|
chartBars: "bb-chart-bars",
|
|
410
409
|
barConnectLine: "bb-bar-connectLine"
|
|
411
|
-
},
|
|
410
|
+
}, ot = {
|
|
412
411
|
candlestick: "bb-candlestick",
|
|
413
412
|
candlesticks: "bb-candlesticks",
|
|
414
413
|
chartCandlestick: "bb-chart-candlestick",
|
|
415
414
|
chartCandlesticks: "bb-chart-candlesticks",
|
|
416
415
|
valueDown: "bb-value-down",
|
|
417
416
|
valueUp: "bb-value-up"
|
|
418
|
-
},
|
|
417
|
+
}, st = {
|
|
419
418
|
chartCircles: "bb-chart-circles",
|
|
420
419
|
circle: "bb-circle",
|
|
421
420
|
circles: "bb-circles"
|
|
422
|
-
},
|
|
421
|
+
}, ct = {
|
|
423
422
|
colorPattern: "bb-color-pattern",
|
|
424
423
|
colorScale: "bb-colorscale"
|
|
425
|
-
},
|
|
424
|
+
}, lt = {
|
|
426
425
|
dragarea: "bb-dragarea",
|
|
427
426
|
INCLUDED: "_included_"
|
|
428
|
-
},
|
|
427
|
+
}, ut = {
|
|
429
428
|
funnel: "bb-funnel",
|
|
430
429
|
chartFunnel: "bb-chart-funnel",
|
|
431
430
|
chartFunnels: "bb-chart-funnels",
|
|
432
431
|
funnelBackground: "bb-funnel-background"
|
|
433
|
-
},
|
|
432
|
+
}, dt = {
|
|
434
433
|
chartArcsGaugeMax: "bb-chart-arcs-gauge-max",
|
|
435
434
|
chartArcsGaugeMin: "bb-chart-arcs-gauge-min",
|
|
436
435
|
chartArcsGaugeUnit: "bb-chart-arcs-gauge-unit",
|
|
@@ -444,12 +443,12 @@ var U = {
|
|
|
444
443
|
legendItemHidden: "bb-legend-item-hidden",
|
|
445
444
|
legendItemPoint: "bb-legend-item-point",
|
|
446
445
|
legendItemTile: "bb-legend-item-tile"
|
|
447
|
-
},
|
|
446
|
+
}, ft = {
|
|
448
447
|
chartLine: "bb-chart-line",
|
|
449
448
|
chartLines: "bb-chart-lines",
|
|
450
449
|
line: "bb-line",
|
|
451
450
|
lines: "bb-lines"
|
|
452
|
-
},
|
|
451
|
+
}, pt = {
|
|
453
452
|
eventRect: "bb-event-rect",
|
|
454
453
|
eventRects: "bb-event-rects",
|
|
455
454
|
eventRectsMultiple: "bb-event-rects-multiple",
|
|
@@ -471,23 +470,23 @@ var U = {
|
|
|
471
470
|
ygridLine: "bb-ygrid-line",
|
|
472
471
|
ygridLines: "bb-ygrid-lines",
|
|
473
472
|
ygrids: "bb-ygrids"
|
|
474
|
-
},
|
|
473
|
+
}, mt = {
|
|
475
474
|
level: "bb-level",
|
|
476
475
|
levels: "bb-levels"
|
|
477
|
-
},
|
|
476
|
+
}, ht = {
|
|
478
477
|
chartRadar: "bb-chart-radar",
|
|
479
478
|
chartRadars: "bb-chart-radars"
|
|
480
|
-
},
|
|
479
|
+
}, gt = {
|
|
481
480
|
region: "bb-region",
|
|
482
481
|
regions: "bb-regions"
|
|
483
|
-
},
|
|
482
|
+
}, _t = {
|
|
484
483
|
selectedCircle: "bb-selected-circle",
|
|
485
484
|
selectedCircles: "bb-selected-circles",
|
|
486
485
|
SELECTED: "_selected_"
|
|
487
486
|
}, Y = {
|
|
488
487
|
shape: "bb-shape",
|
|
489
488
|
shapes: "bb-shapes"
|
|
490
|
-
},
|
|
489
|
+
}, vt = {
|
|
491
490
|
brush: "bb-brush",
|
|
492
491
|
subchart: "bb-subchart"
|
|
493
492
|
}, X = {
|
|
@@ -499,53 +498,53 @@ var U = {
|
|
|
499
498
|
textBorderRect: "bb-text-border",
|
|
500
499
|
textLabelImage: "bb-text-label-image",
|
|
501
500
|
TextOverlapping: "text-overlapping"
|
|
502
|
-
},
|
|
501
|
+
}, yt = {
|
|
503
502
|
tooltip: "bb-tooltip",
|
|
504
503
|
tooltipContainer: "bb-tooltip-container",
|
|
505
504
|
tooltipName: "bb-tooltip-name"
|
|
506
|
-
},
|
|
505
|
+
}, bt = {
|
|
507
506
|
treemap: "bb-treemap",
|
|
508
507
|
chartTreemap: "bb-chart-treemap",
|
|
509
508
|
chartTreemaps: "bb-chart-treemaps"
|
|
510
|
-
},
|
|
509
|
+
}, xt = {
|
|
511
510
|
buttonZoomReset: "bb-zoom-reset",
|
|
512
511
|
zoomBrush: "bb-zoom-brush"
|
|
513
512
|
}, Z = {
|
|
514
513
|
...U,
|
|
514
|
+
...it,
|
|
515
515
|
...at,
|
|
516
|
-
...ot,
|
|
517
516
|
...W,
|
|
518
517
|
...G,
|
|
518
|
+
...ot,
|
|
519
519
|
...st,
|
|
520
520
|
...ct,
|
|
521
521
|
...lt,
|
|
522
|
-
...
|
|
523
|
-
...ft,
|
|
522
|
+
...dt,
|
|
524
523
|
...K,
|
|
524
|
+
...ft,
|
|
525
525
|
...pt,
|
|
526
|
-
...mt,
|
|
527
526
|
...q,
|
|
528
|
-
...
|
|
527
|
+
...ut,
|
|
529
528
|
...J,
|
|
529
|
+
...mt,
|
|
530
530
|
...ht,
|
|
531
531
|
...gt,
|
|
532
532
|
..._t,
|
|
533
|
-
...vt,
|
|
534
533
|
...Y,
|
|
535
|
-
...
|
|
534
|
+
...vt,
|
|
536
535
|
...X,
|
|
536
|
+
...yt,
|
|
537
537
|
...bt,
|
|
538
|
-
...xt
|
|
539
|
-
|
|
540
|
-
}, Ct = {
|
|
538
|
+
...xt
|
|
539
|
+
}, St = {
|
|
541
540
|
boost_useCssRule: !1,
|
|
542
541
|
boost_useWorker: !1
|
|
543
|
-
},
|
|
542
|
+
}, Ct = {
|
|
544
543
|
color_pattern: [],
|
|
545
544
|
color_tiles: void 0,
|
|
546
545
|
color_threshold: {},
|
|
547
546
|
color_onover: void 0
|
|
548
|
-
},
|
|
547
|
+
}, wt = {
|
|
549
548
|
legend_contents_bindto: void 0,
|
|
550
549
|
legend_contents_template: "<span style='color:#fff;padding:5px;background-color:{=COLOR}'>{=TITLE}</span>",
|
|
551
550
|
legend_equally: !1,
|
|
@@ -569,7 +568,7 @@ var U = {
|
|
|
569
568
|
legend_show: !0,
|
|
570
569
|
legend_tooltip: !1,
|
|
571
570
|
legend_usePoint: !1
|
|
572
|
-
},
|
|
571
|
+
}, Tt = {
|
|
573
572
|
bindto: "#chart",
|
|
574
573
|
background: {},
|
|
575
574
|
clipPath: !0,
|
|
@@ -599,7 +598,7 @@ var U = {
|
|
|
599
598
|
render_mode: "svg",
|
|
600
599
|
canvas_theme: {},
|
|
601
600
|
regions: []
|
|
602
|
-
},
|
|
601
|
+
}, Et = {
|
|
603
602
|
title_text: void 0,
|
|
604
603
|
title_padding: {
|
|
605
604
|
top: 0,
|
|
@@ -608,7 +607,7 @@ var U = {
|
|
|
608
607
|
left: 0
|
|
609
608
|
},
|
|
610
609
|
title_position: "center"
|
|
611
|
-
},
|
|
610
|
+
}, Dt = {
|
|
612
611
|
tooltip_show: !0,
|
|
613
612
|
tooltip_doNotHide: !1,
|
|
614
613
|
tooltip_grouped: !0,
|
|
@@ -627,7 +626,7 @@ var U = {
|
|
|
627
626
|
tooltip_onshown: () => {},
|
|
628
627
|
tooltip_onhidden: () => {},
|
|
629
628
|
tooltip_order: null
|
|
630
|
-
},
|
|
629
|
+
}, Ot = {
|
|
631
630
|
data_x: void 0,
|
|
632
631
|
data_idConverter: (e) => e,
|
|
633
632
|
data_names: {},
|
|
@@ -661,21 +660,21 @@ var U = {
|
|
|
661
660
|
data_mimeType: "csv",
|
|
662
661
|
data_keys: void 0,
|
|
663
662
|
data_empty_label_text: ""
|
|
664
|
-
},
|
|
663
|
+
}, kt = {
|
|
665
664
|
interaction_enabled: !0,
|
|
666
665
|
interaction_brighten: !0,
|
|
667
666
|
interaction_inputType_mouse: !0,
|
|
668
667
|
interaction_inputType_touch: {},
|
|
669
668
|
interaction_onout: !0
|
|
670
|
-
},
|
|
669
|
+
}, At = class e {
|
|
671
670
|
static data = {};
|
|
672
671
|
static setOptions(e) {
|
|
673
672
|
for (let t = 0; t < e.length; t++) Object.assign(this.data, e[t]);
|
|
674
673
|
}
|
|
675
674
|
constructor() {
|
|
676
|
-
return
|
|
675
|
+
return Re(Tt, St, Ot, Ct, kt, wt, Et, Dt, e.data);
|
|
677
676
|
}
|
|
678
|
-
},
|
|
677
|
+
}, jt = {
|
|
679
678
|
element: class {
|
|
680
679
|
constructor() {
|
|
681
680
|
return {
|
|
@@ -907,10 +906,10 @@ var U = {
|
|
|
907
906
|
};
|
|
908
907
|
}
|
|
909
908
|
}
|
|
910
|
-
},
|
|
909
|
+
}, Mt = class {
|
|
911
910
|
constructor() {
|
|
912
|
-
Object.keys(
|
|
913
|
-
this[e] = new
|
|
911
|
+
Object.keys(jt).forEach((e) => {
|
|
912
|
+
this[e] = new jt[e]();
|
|
914
913
|
});
|
|
915
914
|
}
|
|
916
915
|
getStore(e) {
|
|
@@ -938,7 +937,7 @@ var U = {
|
|
|
938
937
|
maxTickSize: "$maxTickSize",
|
|
939
938
|
maxDataCountTarget: "$maxDataCountTarget",
|
|
940
939
|
valuesXIndexMap: "$valuesXIndexMap"
|
|
941
|
-
},
|
|
940
|
+
}, Nt = class {
|
|
942
941
|
cache = /* @__PURE__ */ new Map();
|
|
943
942
|
add(e, t, n = !1) {
|
|
944
943
|
let r = n ? this.cloneTarget(t) : t;
|
|
@@ -978,15 +977,15 @@ var U = {
|
|
|
978
977
|
}))
|
|
979
978
|
};
|
|
980
979
|
}
|
|
981
|
-
},
|
|
982
|
-
function
|
|
983
|
-
return e.replace(
|
|
980
|
+
}, Pt = /\s?(bb-)/g, Ft = /\.+/g;
|
|
981
|
+
function It(e) {
|
|
982
|
+
return e.replace(Pt, ".$1").replace(Ft, ".");
|
|
984
983
|
}
|
|
985
|
-
function
|
|
984
|
+
function Lt(e, t, n = !1) {
|
|
986
985
|
let r = (t) => t[e ? "getBoundingClientRect" : "getBBox"](), i = e ? "rectClient" : "rectBBox";
|
|
987
986
|
return n ? r(t) : !(i in t) || t.hasAttribute("width") && t[i].width !== +(t.getAttribute("width") || 0) ? t[i] = r(t) : t[i];
|
|
988
987
|
}
|
|
989
|
-
function
|
|
988
|
+
function Rt(e, t, n = [-1, 1], r = !1) {
|
|
990
989
|
if (!(!e || !M(t))) if (t.indexOf("\n") === -1) e.text(t);
|
|
991
990
|
else {
|
|
992
991
|
let i = [e.text(), t].map((e) => e.replace(/[\s\n]/g, ""));
|
|
@@ -998,8 +997,8 @@ function zt(e, t, n = [-1, 1], r = !1) {
|
|
|
998
997
|
}
|
|
999
998
|
}
|
|
1000
999
|
}
|
|
1001
|
-
function
|
|
1002
|
-
let { x: t, y: n, width: r, height: i } =
|
|
1000
|
+
function zt(e) {
|
|
1001
|
+
let { x: t, y: n, width: r, height: i } = Vt(e, !0);
|
|
1003
1002
|
return [
|
|
1004
1003
|
{
|
|
1005
1004
|
x: t,
|
|
@@ -1019,7 +1018,7 @@ function Bt(e) {
|
|
|
1019
1018
|
}
|
|
1020
1019
|
];
|
|
1021
1020
|
}
|
|
1022
|
-
function
|
|
1021
|
+
function Bt(e, t) {
|
|
1023
1022
|
let n = e && (e.touches || e.sourceEvent && e.sourceEvent.touches)?.[0], r = [0, 0];
|
|
1024
1023
|
try {
|
|
1025
1024
|
r = a(n || e, t);
|
|
@@ -1027,22 +1026,22 @@ function Vt(e, t) {
|
|
|
1027
1026
|
return r.map((e) => isNaN(e) ? 0 : e);
|
|
1028
1027
|
}
|
|
1029
1028
|
function $(e, t = !1) {
|
|
1030
|
-
return
|
|
1029
|
+
return Lt(!0, e, t);
|
|
1031
1030
|
}
|
|
1032
|
-
function
|
|
1033
|
-
return
|
|
1031
|
+
function Vt(e, t = !1) {
|
|
1032
|
+
return Lt(!1, e, t);
|
|
1034
1033
|
}
|
|
1035
|
-
function
|
|
1036
|
-
let { rootSelector: r = "", sheet: i } = e, a = `${r} ${
|
|
1034
|
+
function Ht(e, t, n) {
|
|
1035
|
+
let { rootSelector: r = "", sheet: i } = e, a = `${r} ${It(t)} {${n.join(";")}}`;
|
|
1037
1036
|
return i[i.insertRule ? "insertRule" : "addRule"](a, i.cssRules.length);
|
|
1038
1037
|
}
|
|
1039
|
-
function
|
|
1038
|
+
function Ut(e) {
|
|
1040
1039
|
return {
|
|
1041
1040
|
x: (O.pageXOffset ?? O.scrollX ?? 0) + (e.scrollLeft ?? 0),
|
|
1042
1041
|
y: (O.pageYOffset ?? O.scrollY ?? 0) + (e.scrollTop ?? 0)
|
|
1043
1042
|
};
|
|
1044
1043
|
}
|
|
1045
|
-
function
|
|
1044
|
+
function Wt(e, t = 0, n = 0, r = !0) {
|
|
1046
1045
|
let i = new DOMPoint(t, n), a = e.getScreenCTM(), o = i.matrixTransform(r ? a?.inverse() : a);
|
|
1047
1046
|
if (r === !1) {
|
|
1048
1047
|
let t = $(e);
|
|
@@ -1050,7 +1049,7 @@ function Gt(e, t = 0, n = 0, r = !0) {
|
|
|
1050
1049
|
}
|
|
1051
1050
|
return o;
|
|
1052
1051
|
}
|
|
1053
|
-
function
|
|
1052
|
+
function Gt(e) {
|
|
1054
1053
|
let t = e ? e.transform : null, n = t && t.baseVal;
|
|
1055
1054
|
return n && n.numberOfItems ? n.getItem(0).matrix : {
|
|
1056
1055
|
a: 0,
|
|
@@ -1061,25 +1060,25 @@ function Kt(e) {
|
|
|
1061
1060
|
f: 0
|
|
1062
1061
|
};
|
|
1063
1062
|
}
|
|
1064
|
-
function
|
|
1063
|
+
function Kt(e, t) {
|
|
1065
1064
|
let n = e?.getAttribute?.(t);
|
|
1066
1065
|
if (n) return parseFloat(n);
|
|
1067
|
-
let r =
|
|
1066
|
+
let r = Gt(e);
|
|
1068
1067
|
return t === "x" ? r.e : r.f;
|
|
1069
1068
|
}
|
|
1070
|
-
function
|
|
1069
|
+
function qt(e) {
|
|
1071
1070
|
let t = e.attr("viewBox");
|
|
1072
1071
|
return t ? t.trim().split(/[\s,]+/).length === 4 : !1;
|
|
1073
1072
|
}
|
|
1074
|
-
function
|
|
1073
|
+
function Jt(e, t, n = !1) {
|
|
1075
1074
|
let r = !!e.node, i = !1;
|
|
1076
1075
|
for (let [a, o] of Object.entries(t)) if (i = r ? e.style(a) === o : e.style[a] === o, n ? !i : i) break;
|
|
1077
1076
|
return i;
|
|
1078
1077
|
}
|
|
1079
|
-
function
|
|
1078
|
+
function Yt() {
|
|
1080
1079
|
return k?.hidden === !1 || k?.visibilityState === "visible";
|
|
1081
1080
|
}
|
|
1082
|
-
function
|
|
1081
|
+
function Xt(e, t) {
|
|
1083
1082
|
let { DocumentTouch: n, matchMedia: r, navigator: i } = O, a = r?.("(pointer:coarse)").matches, o = !1;
|
|
1084
1083
|
if (t) if (i && "maxTouchPoints" in i) o = i.maxTouchPoints > 0;
|
|
1085
1084
|
else if ("ontouchmove" in O || n && k instanceof n) o = !0;
|
|
@@ -1090,7 +1089,7 @@ function Zt(e, t) {
|
|
|
1090
1089
|
}
|
|
1091
1090
|
return e && !a && r?.("(pointer:fine)").matches && "mouse" || o && "touch" || "mouse";
|
|
1092
1091
|
}
|
|
1093
|
-
var
|
|
1092
|
+
var Zt = {
|
|
1094
1093
|
mouse: (() => {
|
|
1095
1094
|
let e = () => ({
|
|
1096
1095
|
bubbles: !1,
|
|
@@ -1112,7 +1111,7 @@ var Qt = {
|
|
|
1112
1111
|
}
|
|
1113
1112
|
})(),
|
|
1114
1113
|
touch: (e, t, n) => {
|
|
1115
|
-
let r = new Touch(
|
|
1114
|
+
let r = new Touch(He({
|
|
1116
1115
|
identifier: Date.now(),
|
|
1117
1116
|
target: e,
|
|
1118
1117
|
radiusX: 2.5,
|
|
@@ -1129,23 +1128,23 @@ var Qt = {
|
|
|
1129
1128
|
changedTouches: [r]
|
|
1130
1129
|
}));
|
|
1131
1130
|
}
|
|
1132
|
-
}, { setTimeout:
|
|
1133
|
-
function
|
|
1131
|
+
}, { setTimeout: Qt, clearTimeout: $t } = O;
|
|
1132
|
+
function en(e) {
|
|
1134
1133
|
let t = [], n, r = function() {
|
|
1135
|
-
r.clear(), n = e === !1 ?
|
|
1134
|
+
r.clear(), n = e === !1 ? ne(() => {
|
|
1136
1135
|
n = null, t.forEach((e) => e());
|
|
1137
|
-
}, { timeout: 200 }) :
|
|
1136
|
+
}, { timeout: 200 }) : Qt(() => {
|
|
1138
1137
|
n = null, t.forEach((e) => e());
|
|
1139
1138
|
}, N(e) ? e : 200);
|
|
1140
1139
|
};
|
|
1141
1140
|
return r.clear = () => {
|
|
1142
|
-
n &&= ((e === !1 ?
|
|
1141
|
+
n &&= ((e === !1 ? re : $t)(n), null);
|
|
1143
1142
|
}, r.add = (e) => t.push(e), r.remove = (e) => {
|
|
1144
1143
|
let n = t.indexOf(e);
|
|
1145
1144
|
n !== -1 && t.splice(n, 1);
|
|
1146
1145
|
}, r;
|
|
1147
1146
|
}
|
|
1148
|
-
function
|
|
1147
|
+
function tn() {
|
|
1149
1148
|
let e = [], t = function(t, n) {
|
|
1150
1149
|
function r() {
|
|
1151
1150
|
let t = 0;
|
|
@@ -1154,7 +1153,7 @@ function nn() {
|
|
|
1154
1153
|
t++;
|
|
1155
1154
|
continue;
|
|
1156
1155
|
}
|
|
1157
|
-
if (
|
|
1156
|
+
if (Yt() === !1) {
|
|
1158
1157
|
t = e.length;
|
|
1159
1158
|
break;
|
|
1160
1159
|
}
|
|
@@ -1166,7 +1165,7 @@ function nn() {
|
|
|
1166
1165
|
}
|
|
1167
1166
|
return t === e.length;
|
|
1168
1167
|
}
|
|
1169
|
-
|
|
1168
|
+
Ze(() => {
|
|
1170
1169
|
n?.();
|
|
1171
1170
|
}, r);
|
|
1172
1171
|
};
|
|
@@ -1176,17 +1175,17 @@ function nn() {
|
|
|
1176
1175
|
}
|
|
1177
1176
|
//#endregion
|
|
1178
1177
|
//#region node_modules/billboard.js/dist-esm/module/worker.js
|
|
1179
|
-
var
|
|
1180
|
-
function
|
|
1178
|
+
var nn = {}, rn = 0;
|
|
1179
|
+
function an(e, t) {
|
|
1181
1180
|
let n = e.toString(), r = t?.map(String).join(";") ?? "", i = (n + r).replace(/(function|[\s\W\n])/g, "").substring(0, 30);
|
|
1182
|
-
if (!(i in
|
|
1181
|
+
if (!(i in nn)) try {
|
|
1183
1182
|
let e = new O.Blob([`${r}
|
|
1184
1183
|
|
|
1185
1184
|
self.onmessage=function({data}) {
|
|
1186
1185
|
const result = (${n}).apply(null, data.args);
|
|
1187
1186
|
self.postMessage({id: data.id, result});
|
|
1188
1187
|
};`], { type: "text/javascript" });
|
|
1189
|
-
|
|
1188
|
+
nn[i] = {
|
|
1190
1189
|
src: O.URL.createObjectURL(e),
|
|
1191
1190
|
worker: null
|
|
1192
1191
|
};
|
|
@@ -1195,11 +1194,11 @@ function on(e, t) {
|
|
|
1195
1194
|
}
|
|
1196
1195
|
return {
|
|
1197
1196
|
key: i,
|
|
1198
|
-
src:
|
|
1197
|
+
src: nn[i].src
|
|
1199
1198
|
};
|
|
1200
1199
|
}
|
|
1201
|
-
function
|
|
1202
|
-
let n =
|
|
1200
|
+
function on(e, t) {
|
|
1201
|
+
let n = nn[e];
|
|
1203
1202
|
if (!n) return null;
|
|
1204
1203
|
if (!n.worker) {
|
|
1205
1204
|
try {
|
|
@@ -1213,14 +1212,14 @@ function sn(e, t) {
|
|
|
1213
1212
|
}
|
|
1214
1213
|
return n.worker;
|
|
1215
1214
|
}
|
|
1216
|
-
function
|
|
1215
|
+
function sn(e = !0, t, n, r) {
|
|
1217
1216
|
let i = function(...e) {
|
|
1218
1217
|
n(t(...e));
|
|
1219
1218
|
};
|
|
1220
1219
|
if (O.Worker && e) {
|
|
1221
|
-
let e =
|
|
1220
|
+
let e = an(t, r), a = e && on(e.key, e.src);
|
|
1222
1221
|
a && (i = function(...e) {
|
|
1223
|
-
let t = ++
|
|
1222
|
+
let t = ++rn, r = function(e) {
|
|
1224
1223
|
e.data?.id === t && (a.removeEventListener("message", r), n(e.data.result));
|
|
1225
1224
|
};
|
|
1226
1225
|
a.addEventListener("message", r), a.postMessage({
|
|
@@ -1231,34 +1230,34 @@ function cn(e = !0, t, n, r) {
|
|
|
1231
1230
|
}
|
|
1232
1231
|
return i;
|
|
1233
1232
|
}
|
|
1234
|
-
function
|
|
1235
|
-
for (let e in
|
|
1236
|
-
let t =
|
|
1237
|
-
t.worker && t.worker.terminate(), t.src && O.URL.revokeObjectURL(t.src), delete
|
|
1233
|
+
function cn() {
|
|
1234
|
+
for (let e in nn) {
|
|
1235
|
+
let t = nn[e];
|
|
1236
|
+
t.worker && t.worker.terminate(), t.src && O.URL.revokeObjectURL(t.src), delete nn[e];
|
|
1238
1237
|
}
|
|
1239
1238
|
}
|
|
1240
1239
|
//#endregion
|
|
1241
1240
|
//#region node_modules/billboard.js/dist-esm/module/dsv.js
|
|
1242
|
-
var
|
|
1243
|
-
function
|
|
1241
|
+
var ln = 34, un = 10, dn = 13;
|
|
1242
|
+
function fn(e) {
|
|
1244
1243
|
let t = e.charCodeAt(0);
|
|
1245
1244
|
function n(e, n) {
|
|
1246
1245
|
let r = [], i = e.length, a = 0, o = 0, s = i <= 0, c = !1;
|
|
1247
|
-
e.charCodeAt(0) === 65279 && a++, e.charCodeAt(i - 1) ===
|
|
1246
|
+
e.charCodeAt(0) === 65279 && a++, e.charCodeAt(i - 1) === un && --i, e.charCodeAt(i - 1) === dn && --i;
|
|
1248
1247
|
function l() {
|
|
1249
1248
|
if (s) return null;
|
|
1250
1249
|
if (c) return c = !1, null;
|
|
1251
1250
|
let n = a, r, o;
|
|
1252
|
-
if (e.charCodeAt(n) ===
|
|
1253
|
-
for (; ++a < i;) if (e.charCodeAt(a) ===
|
|
1254
|
-
if (e.charCodeAt(a + 1) !==
|
|
1251
|
+
if (e.charCodeAt(n) === ln) {
|
|
1252
|
+
for (; ++a < i;) if (e.charCodeAt(a) === ln) {
|
|
1253
|
+
if (e.charCodeAt(a + 1) !== ln) break;
|
|
1255
1254
|
a++;
|
|
1256
1255
|
}
|
|
1257
|
-
return (o = a++) >= i ? s = !0 : (r = e.charCodeAt(a++)) ===
|
|
1256
|
+
return (o = a++) >= i ? s = !0 : (r = e.charCodeAt(a++)) === un ? c = !0 : r === dn && (c = !0, e.charCodeAt(a) === un && ++a), e.slice(n + 1, o).replace(/""/g, "\"");
|
|
1258
1257
|
}
|
|
1259
1258
|
for (; a < i;) {
|
|
1260
|
-
if ((r = e.charCodeAt(o = a++)) ===
|
|
1261
|
-
else if (r ===
|
|
1259
|
+
if ((r = e.charCodeAt(o = a++)) === un) c = !0;
|
|
1260
|
+
else if (r === dn) c = !0, e.charCodeAt(a) === un && ++a;
|
|
1262
1261
|
else if (r !== t) continue;
|
|
1263
1262
|
return e.slice(n, o);
|
|
1264
1263
|
}
|
|
@@ -1289,10 +1288,10 @@ function pn(e) {
|
|
|
1289
1288
|
parseRows: n
|
|
1290
1289
|
};
|
|
1291
1290
|
}
|
|
1292
|
-
var
|
|
1291
|
+
var pn = fn(","), mn = fn(" "), hn = pn.parse, gn = pn.parseRows, _n = mn.parse, vn = mn.parseRows;
|
|
1293
1292
|
//#endregion
|
|
1294
1293
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/data/convert.helper.js
|
|
1295
|
-
function
|
|
1294
|
+
function yn(e) {
|
|
1296
1295
|
let t = [];
|
|
1297
1296
|
return e.forEach(function(e, n) {
|
|
1298
1297
|
let r = e[0];
|
|
@@ -1304,7 +1303,7 @@ function bn(e) {
|
|
|
1304
1303
|
});
|
|
1305
1304
|
}), t;
|
|
1306
1305
|
}
|
|
1307
|
-
function
|
|
1306
|
+
function bn(e) {
|
|
1308
1307
|
let t = e[0], n = [];
|
|
1309
1308
|
return e.forEach(function(e, r) {
|
|
1310
1309
|
if (r > 0) {
|
|
@@ -1316,7 +1315,7 @@ function xn(e) {
|
|
|
1316
1315
|
}
|
|
1317
1316
|
}), n;
|
|
1318
1317
|
}
|
|
1319
|
-
function
|
|
1318
|
+
function xn(e, t) {
|
|
1320
1319
|
let n = [], r, i;
|
|
1321
1320
|
if (Array.isArray(e)) {
|
|
1322
1321
|
let a = function(e, t) {
|
|
@@ -1332,18 +1331,18 @@ function Sn(e, t) {
|
|
|
1332
1331
|
return n === void 0 && (n = null), n;
|
|
1333
1332
|
});
|
|
1334
1333
|
n.push(t);
|
|
1335
|
-
}), i =
|
|
1334
|
+
}), i = bn(n);
|
|
1336
1335
|
} else Object.keys(e).forEach(function(t) {
|
|
1337
1336
|
let r = [].concat(e[t]);
|
|
1338
1337
|
r.unshift?.(t), n.push(r);
|
|
1339
|
-
}), i =
|
|
1338
|
+
}), i = yn(n);
|
|
1340
1339
|
return i;
|
|
1341
1340
|
}
|
|
1342
|
-
function
|
|
1341
|
+
function Sn(e, t = "csv", n, r, i) {
|
|
1343
1342
|
let a = new XMLHttpRequest(), o = {
|
|
1344
|
-
csv:
|
|
1345
|
-
tsv:
|
|
1346
|
-
json:
|
|
1343
|
+
csv: wn,
|
|
1344
|
+
tsv: Tn,
|
|
1345
|
+
json: xn
|
|
1347
1346
|
};
|
|
1348
1347
|
a.open("GET", e), n && Object.keys(n).forEach(function(e) {
|
|
1349
1348
|
a.setRequestHeader(e, n[e]);
|
|
@@ -1354,31 +1353,31 @@ function Cn(e, t = "csv", n, r, i) {
|
|
|
1354
1353
|
} else throw Error(`${e}: Something went wrong loading!`);
|
|
1355
1354
|
}, a.send();
|
|
1356
1355
|
}
|
|
1357
|
-
function
|
|
1356
|
+
function Cn(e, t) {
|
|
1358
1357
|
let n = e.rows(t), r;
|
|
1359
1358
|
return n.length === 1 ? (r = [{}], n[0].forEach((e) => {
|
|
1360
1359
|
r[0][e] = null;
|
|
1361
1360
|
})) : r = e.parse(t), r;
|
|
1362
1361
|
}
|
|
1363
|
-
function
|
|
1364
|
-
return
|
|
1365
|
-
rows:
|
|
1366
|
-
parse:
|
|
1362
|
+
function wn(e) {
|
|
1363
|
+
return Cn({
|
|
1364
|
+
rows: gn,
|
|
1365
|
+
parse: hn
|
|
1367
1366
|
}, e);
|
|
1368
1367
|
}
|
|
1369
|
-
function
|
|
1370
|
-
return
|
|
1371
|
-
rows:
|
|
1372
|
-
parse:
|
|
1368
|
+
function Tn(e) {
|
|
1369
|
+
return Cn({
|
|
1370
|
+
rows: vn,
|
|
1371
|
+
parse: _n
|
|
1373
1372
|
}, e);
|
|
1374
1373
|
}
|
|
1375
1374
|
//#endregion
|
|
1376
1375
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/data/convert.js
|
|
1377
|
-
function
|
|
1376
|
+
function En(e, t) {
|
|
1378
1377
|
let n = e || t?.data_keys;
|
|
1379
1378
|
return n?.x && (t.data_x = n.x), n;
|
|
1380
1379
|
}
|
|
1381
|
-
function
|
|
1380
|
+
function Dn(e, t, n) {
|
|
1382
1381
|
let r = this, { config: i } = r, a;
|
|
1383
1382
|
e.forEach((e) => {
|
|
1384
1383
|
let o = r.getXKey(e);
|
|
@@ -1389,7 +1388,7 @@ function On(e, t, n) {
|
|
|
1389
1388
|
else throw Error(`x is not defined for id = "${e}".`);
|
|
1390
1389
|
});
|
|
1391
1390
|
}
|
|
1392
|
-
var
|
|
1391
|
+
var On = {
|
|
1393
1392
|
convertData(e, t) {
|
|
1394
1393
|
let { config: n } = this, r = (e) => e?.length && !L(e[0]) ? n.boost_useWorker : !1, i = e;
|
|
1395
1394
|
if (e.bindto && (i = {}, [
|
|
@@ -1403,10 +1402,10 @@ var kn = {
|
|
|
1403
1402
|
].forEach((t) => {
|
|
1404
1403
|
let n = `data_${t}`;
|
|
1405
1404
|
n in e && (i[t] = e[n]);
|
|
1406
|
-
})), i.url && t)
|
|
1407
|
-
else if (i.json)
|
|
1408
|
-
else if (i.rows)
|
|
1409
|
-
else if (i.columns)
|
|
1405
|
+
})), i.url && t) Sn(i.url, i.mimeType, i.headers, En(i.keys, n), t);
|
|
1406
|
+
else if (i.json) sn(r(i.json), xn, t, [yn, bn])(i.json, En(i.keys, n));
|
|
1407
|
+
else if (i.rows) sn(r(i.rows), bn, t)(i.rows);
|
|
1408
|
+
else if (i.columns) sn(r(i.columns), yn, t)(i.columns);
|
|
1410
1409
|
else if (e.bindto) throw Error("url or json or rows or columns is required.");
|
|
1411
1410
|
},
|
|
1412
1411
|
convertDataToTargets(e, t) {
|
|
@@ -1423,10 +1422,10 @@ var kn = {
|
|
|
1423
1422
|
timeSeries: r?.isTimeSeries(),
|
|
1424
1423
|
customX: r?.isCustomX()
|
|
1425
1424
|
};
|
|
1426
|
-
|
|
1425
|
+
Dn.bind(n)(c, e, u);
|
|
1427
1426
|
let d = u.customX && u.categorized && i.axis_x_categories.length ? new Map(i.axis_x_categories.map((e, t) => [e, t])) : null, f = i.data_idConverter.bind(n.api), p = c.map((t, r) => {
|
|
1428
1427
|
let o = f(t), s = n.getXKey(t), c = u.customX && u.categorized, l = c && r === 0 && (() => {
|
|
1429
|
-
let t =
|
|
1428
|
+
let t = Qe(i.axis_x_categories);
|
|
1430
1429
|
return e.every((e) => t.has(e[s]));
|
|
1431
1430
|
})(), p = e.__append__, m = s === null && p ? n.api.data.values(t).length : 0;
|
|
1432
1431
|
return {
|
|
@@ -1456,7 +1455,7 @@ var kn = {
|
|
|
1456
1455
|
}
|
|
1457
1456
|
return p.forEach((e) => n.cache.add(e.id_org, e, !0)), p;
|
|
1458
1457
|
}
|
|
1459
|
-
},
|
|
1458
|
+
}, kn = {
|
|
1460
1459
|
areaRange: {
|
|
1461
1460
|
high: 0,
|
|
1462
1461
|
mid: 1,
|
|
@@ -1470,12 +1469,12 @@ var kn = {
|
|
|
1470
1469
|
volume: 4
|
|
1471
1470
|
}
|
|
1472
1471
|
};
|
|
1473
|
-
function
|
|
1472
|
+
function An(e) {
|
|
1474
1473
|
return z(e) ? e : [e];
|
|
1475
1474
|
}
|
|
1476
|
-
var
|
|
1475
|
+
var jn = {
|
|
1477
1476
|
isX(e) {
|
|
1478
|
-
let { config: t } = this, n = t.data_x && e === t.data_x, r = R(t.data_xs) &&
|
|
1477
|
+
let { config: t } = this, n = t.data_x && e === t.data_x, r = R(t.data_xs) && Pe(t.data_xs, e);
|
|
1479
1478
|
return n || r;
|
|
1480
1479
|
},
|
|
1481
1480
|
isStackNormalized() {
|
|
@@ -1558,7 +1557,7 @@ var Mn = {
|
|
|
1558
1557
|
},
|
|
1559
1558
|
generateTargetX(e, t, n) {
|
|
1560
1559
|
let r = this, { axis: i } = r, a = i?.isCategorized() ? n : e || n;
|
|
1561
|
-
return i?.isTimeSeries() ? a =
|
|
1560
|
+
return i?.isTimeSeries() ? a = Ye.bind(r)(e || r.getXValue(t, n)) : i?.isCustomX() && !i?.isCategorized() && (a = A(e) ? +e : r.getXValue(t, n)), a;
|
|
1562
1561
|
},
|
|
1563
1562
|
updateXs(e) {
|
|
1564
1563
|
e.length && (this.axis.xs = e.map((e) => e.x));
|
|
@@ -1648,7 +1647,7 @@ var Mn = {
|
|
|
1648
1647
|
let n = i[t].values;
|
|
1649
1648
|
for (let t = 0; t < n.length; t++) e.push(n[t].x);
|
|
1650
1649
|
}
|
|
1651
|
-
i = e, i =
|
|
1650
|
+
i = e, i = Ue(Be(i)).map((e, t, n) => ({
|
|
1652
1651
|
x: e,
|
|
1653
1652
|
index: o ? n.length - t - 1 : t
|
|
1654
1653
|
}));
|
|
@@ -1695,15 +1694,15 @@ var Mn = {
|
|
|
1695
1694
|
},
|
|
1696
1695
|
mapTargetsToUniqueXs(e) {
|
|
1697
1696
|
let { axis: t } = this, n = [];
|
|
1698
|
-
return e?.length && (n = Ve(
|
|
1697
|
+
return e?.length && (n = Be(Ve(e.map((e) => e.values.map((e) => +e.x)))), n = t?.isTimeSeries() ? n.map((e) => /* @__PURE__ */ new Date(+e)) : n.map(Number)), Ue(n);
|
|
1699
1698
|
},
|
|
1700
1699
|
addTargetIds(e, t) {
|
|
1701
1700
|
let { state: n } = this;
|
|
1702
|
-
|
|
1701
|
+
An(t).forEach((t) => n[e].add(t));
|
|
1703
1702
|
},
|
|
1704
1703
|
removeTargetIds(e, t) {
|
|
1705
1704
|
let { state: n } = this;
|
|
1706
|
-
|
|
1705
|
+
An(t).forEach((t) => n[e].delete(t));
|
|
1707
1706
|
},
|
|
1708
1707
|
addHiddenTargetIds(e) {
|
|
1709
1708
|
this.addTargetIds("hiddenTargetIds", e);
|
|
@@ -1786,7 +1785,7 @@ var Mn = {
|
|
|
1786
1785
|
},
|
|
1787
1786
|
hasDataLabel() {
|
|
1788
1787
|
let e = this.config.data_labels;
|
|
1789
|
-
return
|
|
1788
|
+
return ie(e) && e || I(e) && R(e);
|
|
1790
1789
|
},
|
|
1791
1790
|
hasNullDataValue(e) {
|
|
1792
1791
|
return e.some(({ value: e }) => e === null);
|
|
@@ -1799,12 +1798,12 @@ var Mn = {
|
|
|
1799
1798
|
let n = i(t).datum();
|
|
1800
1799
|
c = n && Object.keys(n).length === 1 ? n.index : void 0;
|
|
1801
1800
|
} else {
|
|
1802
|
-
let r = n.axis_rotated, i =
|
|
1803
|
-
if (
|
|
1801
|
+
let r = n.axis_rotated, i = Ut(t.chart.node()), l = a === "touch" && e.changedTouches ? e.changedTouches[0] : e, u = r ? l.clientY + i.y : l.clientX + i.x;
|
|
1802
|
+
if (qt(t.svg)) {
|
|
1804
1803
|
let e = [u, 0];
|
|
1805
|
-
r && e.reverse(), u =
|
|
1804
|
+
r && e.reverse(), u = Wt(t.eventRect.node(), ...e)[r ? "y" : "x"];
|
|
1806
1805
|
} else u -= r ? s.top : s.left;
|
|
1807
|
-
c =
|
|
1806
|
+
c = qe(o, u, 0, o.length - 1, r);
|
|
1808
1807
|
}
|
|
1809
1808
|
return c;
|
|
1810
1809
|
},
|
|
@@ -1905,7 +1904,7 @@ var Mn = {
|
|
|
1905
1904
|
if (!n || !A(n.value)) continue;
|
|
1906
1905
|
let c = r.isBarType(n.id), l = r.isCandlestickType(n.id);
|
|
1907
1906
|
if (c || l) {
|
|
1908
|
-
let e = c ? `.${G.chartBar}.${U.target}${r.getTargetSelectorSuffix(n.id)} .${G.bar}-${n.index}` : `.${
|
|
1907
|
+
let e = c ? `.${G.chartBar}.${U.target}${r.getTargetSelectorSuffix(n.id)} .${G.bar}-${n.index}` : `.${ot.chartCandlestick}.${U.target}${r.getTargetSelectorSuffix(n.id)} .${ot.candlestick}-${n.index} path`;
|
|
1909
1908
|
!s && r.isWithinBar(i.select(e).node()) && (s = n);
|
|
1910
1909
|
} else {
|
|
1911
1910
|
let e = r.dist(n, t);
|
|
@@ -1969,7 +1968,7 @@ var Mn = {
|
|
|
1969
1968
|
if (z(r)) {
|
|
1970
1969
|
if (n === "bar") return r.reduce((e, t) => t - e);
|
|
1971
1970
|
{
|
|
1972
|
-
let e =
|
|
1971
|
+
let e = kn[n]?.[t] ?? -1;
|
|
1973
1972
|
return e >= 0 ? r[e] : void 0;
|
|
1974
1973
|
}
|
|
1975
1974
|
}
|
|
@@ -2037,11 +2036,11 @@ var Mn = {
|
|
|
2037
2036
|
};
|
|
2038
2037
|
//#endregion
|
|
2039
2038
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/data/load.js
|
|
2040
|
-
function
|
|
2039
|
+
function Mn(e, t = !1) {
|
|
2041
2040
|
let n = this, { api: r } = n;
|
|
2042
2041
|
t && n.api.flush(!0), e?.call(r);
|
|
2043
2042
|
}
|
|
2044
|
-
var
|
|
2043
|
+
var Nn = {
|
|
2045
2044
|
load(e, t) {
|
|
2046
2045
|
let n = this, { axis: r, data: i, org: a, scale: o } = n, { append: s } = t, c = {
|
|
2047
2046
|
domain: null,
|
|
@@ -2070,14 +2069,14 @@ var Pn = {
|
|
|
2070
2069
|
withUpdateOrgXDomain: !0,
|
|
2071
2070
|
withUpdateXDomain: !0,
|
|
2072
2071
|
withLegend: !0
|
|
2073
|
-
}), n.updateTypesElements(),
|
|
2072
|
+
}), n.updateTypesElements(), Mn.call(n, t.done, t.resizeAfter);
|
|
2074
2073
|
return;
|
|
2075
2074
|
}
|
|
2076
2075
|
n.updateTargets(i.targets), o.zoom && (c.x = r.isCategorized() ? o.x.orgScale() : (a.xScale || o.x).copy(), c.domain = n.getXDomain(i.targets), c.x.domain(c.domain), c.currentDomain = n.zoom.getDomain(), n.withinRange(c.currentDomain, void 0, c.domain) || (o.x.domain(c.domain), o.zoom = null, n.$el.eventRect.property("__zoom", null))), n.redraw({
|
|
2077
2076
|
withUpdateOrgXDomain: !0,
|
|
2078
2077
|
withUpdateXDomain: !0,
|
|
2079
2078
|
withLegend: !0
|
|
2080
|
-
}), o.zoom ? (a.xDomain = c.domain, a.xScale = c.x, r.isCategorized() && (c.currentDomain = n.getZoomDomainValue(c.currentDomain), a.xDomain = n.getZoomDomainValue(a.xDomain), a.xScale = c.x.domain(a.xDomain)), n.updateCurrentZoomTransform(c.x, c.currentDomain)) : a.xScale && a.xScale.domain(a.xDomain), n.updateTypesElements(),
|
|
2079
|
+
}), o.zoom ? (a.xDomain = c.domain, a.xScale = c.x, r.isCategorized() && (c.currentDomain = n.getZoomDomainValue(c.currentDomain), a.xDomain = n.getZoomDomainValue(a.xDomain), a.xScale = c.x.domain(a.xDomain)), n.updateCurrentZoomTransform(c.x, c.currentDomain)) : a.xScale && a.xScale.domain(a.xDomain), n.updateTypesElements(), Mn.call(n, t.done, t.resizeAfter);
|
|
2081
2080
|
},
|
|
2082
2081
|
loadFromArgs(e) {
|
|
2083
2082
|
let t = this;
|
|
@@ -2112,9 +2111,9 @@ var Pn = {
|
|
|
2112
2111
|
c.forEach((e) => {
|
|
2113
2112
|
let t = n.getTargetSelectorSuffix(e);
|
|
2114
2113
|
r.withoutFadeIn[e] = !1, i.legend && i.legend.selectAll(`.${K.legendItem}${t}`).remove(), o && i.defs?.select(`#${n.getDefsPointId(t)}`).remove();
|
|
2115
|
-
}), n.data.targets = n.data.targets.filter((e) => !l.has(e.id)), r.hasFunnel && n.updateFunnel(n.data.targets), r.hasTreemap && n.updateTargetsForTreemap(n.data.targets), n.updateTypesElements(), a(i.svg.selectAll(c.map((e) => n.selectorTarget(e)))).style("opacity", "0").remove().call(
|
|
2114
|
+
}), n.data.targets = n.data.targets.filter((e) => !l.has(e.id)), r.hasFunnel && n.updateFunnel(n.data.targets), r.hasTreemap && n.updateTargetsForTreemap(n.data.targets), n.updateTypesElements(), a(i.svg.selectAll(c.map((e) => n.selectorTarget(e)))).style("opacity", "0").remove().call(Fe, s);
|
|
2116
2115
|
}
|
|
2117
|
-
},
|
|
2116
|
+
}, Pn = {
|
|
2118
2117
|
setExpand(e, t, n) {
|
|
2119
2118
|
let r = this, { config: i, $el: { circle: a } } = r;
|
|
2120
2119
|
a && i.point_focus_expand_enabled && r.expandCircles(e, t, n), r.expandBarTypeShapes(!0, e, t, n);
|
|
@@ -2130,7 +2129,7 @@ var Pn = {
|
|
|
2130
2129
|
if (l || t !== -1) {
|
|
2131
2130
|
let u = r[e ? "data_onover" : "data_onout"].bind(n.api);
|
|
2132
2131
|
if (r.color_onover && n.setOverColor(e, t, l), l) {
|
|
2133
|
-
let e = n.getTargetSelectorSuffix(t.id), r = a || s ? `${U.target + e} .${Y.shape}` :
|
|
2132
|
+
let e = n.getTargetSelectorSuffix(t.id), r = a || s ? `${U.target + e} .${Y.shape}` : it.arc + e;
|
|
2134
2133
|
u(t, c.select(`.${r}`).node());
|
|
2135
2134
|
} else if (r.tooltip_grouped) e && (o && n.isPointFocusOnly() ? n.showCircleFocus(n.getAllValuesOnIndex(t, !0)) : n.setExpand(t, null, !0)), !n.isMultipleX() && c.selectAll(`.${Y.shape}-${t}`).each(function(e) {
|
|
2136
2135
|
u(e, this);
|
|
@@ -2158,9 +2157,9 @@ var Pn = {
|
|
|
2158
2157
|
getDraggableSelection() {
|
|
2159
2158
|
let e = this, { config: t, state: n } = e;
|
|
2160
2159
|
return t.interaction_enabled && t.data_selection_draggable && e.drag ? S().on("drag", function(t) {
|
|
2161
|
-
n.event = t, e.drag(
|
|
2160
|
+
n.event = t, e.drag(Bt(t, this));
|
|
2162
2161
|
}).on("start", function(t) {
|
|
2163
|
-
n.event = t, e.dragstart(
|
|
2162
|
+
n.event = t, e.dragstart(Bt(t, this));
|
|
2164
2163
|
}).on("end", (t) => {
|
|
2165
2164
|
n.event = t, e.dragend();
|
|
2166
2165
|
}) : () => {};
|
|
@@ -2174,8 +2173,8 @@ var Pn = {
|
|
|
2174
2173
|
e ? (g = e.w, _ += e.x, v += e.y) : (g = 0, _ = 0, v = 0);
|
|
2175
2174
|
}
|
|
2176
2175
|
let y = _ + (n ? n[0] : 0) + (u || f ? 0 : g / 2), b = v + (n ? n[1] : 0) + (f ? 4 : 0);
|
|
2177
|
-
if (
|
|
2178
|
-
let e =
|
|
2176
|
+
if (qt(p) && r.$el.eventRect) {
|
|
2177
|
+
let e = Wt(r.$el.eventRect.node(), y, b, !1);
|
|
2179
2178
|
y = e.x, b = e.y;
|
|
2180
2179
|
}
|
|
2181
2180
|
let x = {
|
|
@@ -2185,7 +2184,7 @@ var Pn = {
|
|
|
2185
2184
|
clientY: b,
|
|
2186
2185
|
bubbles: c
|
|
2187
2186
|
};
|
|
2188
|
-
(s || l) && (h = (d ?? m).node()),
|
|
2187
|
+
(s || l) && (h = (d ?? m).node()), Zt[/^(mouse|click)/.test(e) ? "mouse" : "touch"](h, e, x);
|
|
2189
2188
|
}
|
|
2190
2189
|
},
|
|
2191
2190
|
setDragStatus(e) {
|
|
@@ -2224,10 +2223,10 @@ var Pn = {
|
|
|
2224
2223
|
o
|
|
2225
2224
|
].forEach((e) => e?.on(c, null)), e.unbindZoomEvent?.();
|
|
2226
2225
|
}
|
|
2227
|
-
},
|
|
2226
|
+
}, Fn = { categoryName(e) {
|
|
2228
2227
|
let { axis_x_categories: t } = this.config;
|
|
2229
2228
|
return t?.[e] ?? e;
|
|
2230
|
-
} },
|
|
2229
|
+
} }, In = /[\x00-\x20\x7F-\xA0\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g, Ln = {
|
|
2231
2230
|
generateClass(e, t) {
|
|
2232
2231
|
let n = this.state.generateClassCache, r = `${e}\0${t}`, i = n.get(r);
|
|
2233
2232
|
return i || (i = ` ${e} ${e + this.getTargetSelectorSuffix(t)}`, n.set(r, i)), i;
|
|
@@ -2266,7 +2265,7 @@ var Pn = {
|
|
|
2266
2265
|
return ` ${this.state.defocusedTargetIds.has(e.id) ? Z.defocused : ""}`;
|
|
2267
2266
|
},
|
|
2268
2267
|
getTargetSelectorSuffix(e) {
|
|
2269
|
-
return (e || e === 0 ? `-${e}` : "").replace(
|
|
2268
|
+
return (e || e === 0 ? `-${e}` : "").replace(In, "-");
|
|
2270
2269
|
},
|
|
2271
2270
|
selectorTarget(e, t = "", n = "") {
|
|
2272
2271
|
let r = this.getTargetSelectorSuffix(e);
|
|
@@ -2282,22 +2281,22 @@ var Pn = {
|
|
|
2282
2281
|
selectorLegends(e) {
|
|
2283
2282
|
return e?.length ? e.map((e) => this.selectorLegend(e)) : null;
|
|
2284
2283
|
}
|
|
2285
|
-
},
|
|
2284
|
+
}, Rn = (e, t, n) => {
|
|
2286
2285
|
let r = i(e.cloneNode(!0));
|
|
2287
2286
|
return r.attr("id", n).insert("rect", ":first-child").attr("width", r.attr("width")).attr("height", r.attr("height")).style("fill", t), {
|
|
2288
2287
|
id: n,
|
|
2289
2288
|
node: r.node()
|
|
2290
2289
|
};
|
|
2291
2290
|
};
|
|
2292
|
-
function
|
|
2291
|
+
function zn(e) {
|
|
2293
2292
|
let t = Q.colorPattern, { body: n } = k, r = n[t];
|
|
2294
2293
|
if (!r) {
|
|
2295
|
-
let i = e.classed(
|
|
2296
|
-
e.classed(
|
|
2294
|
+
let i = e.classed(ct.colorPattern, !0).style("background-image");
|
|
2295
|
+
e.classed(ct.colorPattern, !1), i.indexOf(";") > -1 && (r = i.replace(/url[^#]*|["'()]|(\s|%20)/g, "").split(";").map((e) => e.trim().replace(/[\"'\s]/g, "")).filter(Boolean), n[t] = r);
|
|
2297
2296
|
}
|
|
2298
2297
|
return r;
|
|
2299
2298
|
}
|
|
2300
|
-
var
|
|
2299
|
+
var Bn = [
|
|
2301
2300
|
"#1f77b4",
|
|
2302
2301
|
"#ff7f0e",
|
|
2303
2302
|
"#2ca02c",
|
|
@@ -2308,13 +2307,13 @@ var Vn = [
|
|
|
2308
2307
|
"#7f7f7f",
|
|
2309
2308
|
"#bcbd22",
|
|
2310
2309
|
"#17becf"
|
|
2311
|
-
],
|
|
2310
|
+
], Vn = {
|
|
2312
2311
|
generateColor() {
|
|
2313
|
-
let e = this, { $el: t, config: n } = e, r = [], i = n.area_linearGradient || n.bar_linearGradient || n.point_radialGradient, a = R(n.color_pattern) ? n.color_pattern : h(
|
|
2312
|
+
let e = this, { $el: t, config: n } = e, r = [], i = n.area_linearGradient || n.bar_linearGradient || n.point_radialGradient, a = R(n.color_pattern) ? n.color_pattern : h(zn(t.chart) || Bn).range(), o = a;
|
|
2314
2313
|
if (j(n.color_tiles)) {
|
|
2315
2314
|
let t = n.color_tiles.bind(e.api)(), r = a.map((n, r) => {
|
|
2316
2315
|
let i = n.replace(/[#\(\)\s,]/g, ""), a = `${e.state.datetimeId}-pattern-${i}-${r}`;
|
|
2317
|
-
return
|
|
2316
|
+
return Rn(t[r % t.length], n, a);
|
|
2318
2317
|
});
|
|
2319
2318
|
a = r.map((e) => `url(#${e.id})`), e.patterns = r;
|
|
2320
2319
|
}
|
|
@@ -2360,7 +2359,7 @@ var Vn = [
|
|
|
2360
2359
|
if (e) {
|
|
2361
2360
|
let a = [];
|
|
2362
2361
|
M(e) ? a.push("") : B(e) ? a = Object.keys(e) : j(e) && (a = n.mapToTargetIds()), a.forEach((a) => {
|
|
2363
|
-
let o = `${i.datetimeId}-labels-bg${n.getTargetSelectorSuffix(a)}${M(e) ? n.getTargetSelectorSuffix(e) : ""}`, s =
|
|
2362
|
+
let o = `${i.datetimeId}-labels-bg${n.getTargetSelectorSuffix(a)}${M(e) ? n.getTargetSelectorSuffix(e) : ""}`, s = je(a === "" ? e : e?.[a] || "");
|
|
2364
2363
|
if (r.select(`#${o}`).empty()) {
|
|
2365
2364
|
let e = r.append("filter").attr("x", t.x).attr("y", t.y).attr("width", t.width).attr("height", t.height).attr("id", o);
|
|
2366
2365
|
e.append("feFlood").attr("flood-color", s), e.append("feComposite").attr("in", "SourceGraphic");
|
|
@@ -2412,28 +2411,28 @@ var Vn = [
|
|
|
2412
2411
|
},
|
|
2413
2412
|
setOverColor(e, t) {
|
|
2414
2413
|
let n = this, { config: r, $el: { main: i } } = n, a = r.color_onover, o = e ? a : n.color;
|
|
2415
|
-
B(o) ? o = ({ id: e }) => e in a ? a[e] : n.color(e) : M(o) ? o = () => a : j(a) && (o = o.bind(n.api)), i.selectAll(B(t) ? `.${
|
|
2414
|
+
B(o) ? o = ({ id: e }) => e in a ? a[e] : n.color(e) : M(o) ? o = () => a : j(a) && (o = o.bind(n.api)), i.selectAll(B(t) ? `.${it.arc}${n.getTargetSelectorSuffix(t.id)}` : `.${Y.shape}-${t}`).style("fill", o);
|
|
2416
2415
|
}
|
|
2417
2416
|
};
|
|
2418
2417
|
//#endregion
|
|
2419
2418
|
//#region node_modules/billboard.js/dist-esm/module/util/brush.js
|
|
2420
|
-
function
|
|
2419
|
+
function Hn(e) {
|
|
2421
2420
|
let { event: t, $el: n } = e, r = n.subchart.main || n.main, i;
|
|
2422
2421
|
return t && t.type === "brush" ? i = t.selection : r && (i = r.select(".bb-brush").node()) && (i = f(i)), i;
|
|
2423
2422
|
}
|
|
2424
|
-
function
|
|
2425
|
-
let t =
|
|
2423
|
+
function Un(e) {
|
|
2424
|
+
let t = Hn(e);
|
|
2426
2425
|
return !t || t[0] === t[1];
|
|
2427
2426
|
}
|
|
2428
2427
|
//#endregion
|
|
2429
2428
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/internals/domain.js
|
|
2430
|
-
function
|
|
2429
|
+
function Wn(e, t) {
|
|
2431
2430
|
return t.map((t) => {
|
|
2432
2431
|
let { values: n } = t, r = n[0], i = n[n.length - 1], a = r ? e.getXCacheKey?.(r.x) ?? r.x : "", o = i ? e.getXCacheKey?.(i.x) ?? i.x : "";
|
|
2433
2432
|
return `${t.id}:${n.length}:${a}:${o}`;
|
|
2434
2433
|
}).join("|");
|
|
2435
2434
|
}
|
|
2436
|
-
function
|
|
2435
|
+
function Gn(e, t) {
|
|
2437
2436
|
let n = e.data?.targets;
|
|
2438
2437
|
if (!n) return !1;
|
|
2439
2438
|
for (let e = 0; e < t.length; e++) {
|
|
@@ -2442,13 +2441,13 @@ function Kn(e, t) {
|
|
|
2442
2441
|
}
|
|
2443
2442
|
return !0;
|
|
2444
2443
|
}
|
|
2445
|
-
function
|
|
2444
|
+
function Kn(e, t) {
|
|
2446
2445
|
R(t) && ((e.min === void 0 || t < e.min) && (e.min = t), (e.max === void 0 || t > e.max) && (e.max = t));
|
|
2447
2446
|
}
|
|
2448
|
-
function
|
|
2449
|
-
for (let n = 0; n < t.length; n++)
|
|
2447
|
+
function qn(e, t) {
|
|
2448
|
+
for (let n = 0; n < t.length; n++) Kn(e, t[n]);
|
|
2450
2449
|
}
|
|
2451
|
-
function
|
|
2450
|
+
function Jn(e, t) {
|
|
2452
2451
|
let n = {
|
|
2453
2452
|
min: void 0,
|
|
2454
2453
|
max: void 0
|
|
@@ -2462,12 +2461,12 @@ function Yn(e, t) {
|
|
|
2462
2461
|
a.high,
|
|
2463
2462
|
a.low,
|
|
2464
2463
|
a.close
|
|
2465
|
-
]), Array.isArray(a) ?
|
|
2464
|
+
]), Array.isArray(a) ? qn(n, a) : B(a) && "high" in a ? qn(n, Object.values(a)) : e.isBubbleZType?.(i) ? Kn(n, r && e.getBubbleZData(a, "y")) : Kn(n, a));
|
|
2466
2465
|
}
|
|
2467
2466
|
}
|
|
2468
2467
|
return [n.min, n.max];
|
|
2469
2468
|
}
|
|
2470
|
-
function
|
|
2469
|
+
function Yn(e, t) {
|
|
2471
2470
|
let n;
|
|
2472
2471
|
for (let r = 0; r < e.length; r++) {
|
|
2473
2472
|
let { values: i } = e[r];
|
|
@@ -2478,11 +2477,11 @@ function Xn(e, t) {
|
|
|
2478
2477
|
}
|
|
2479
2478
|
return n;
|
|
2480
2479
|
}
|
|
2481
|
-
var
|
|
2480
|
+
var Xn = {
|
|
2482
2481
|
getYDomainMinMaxBoth(e) {
|
|
2483
|
-
let t = this, { axis: n, cache: r, config: i, state: a } = t, o =
|
|
2482
|
+
let t = this, { axis: n, cache: r, config: i, state: a } = t, o = Gn(t, e) ? `${Q.domainMinMax}_y_${Wn(t, e)}` : null, s = o && r.get(o);
|
|
2484
2483
|
if (s && s.generation === a.dataGeneration) return s.value;
|
|
2485
|
-
let c = i.data_groups, l = t.mapToIds(e), u =
|
|
2484
|
+
let c = i.data_groups, l = t.mapToIds(e), u = Qe(l), d;
|
|
2486
2485
|
if (c.length > 0) {
|
|
2487
2486
|
let r = t.getValuesAsIdKeyed(e), i = e.some((e) => e.values.some((e) => e.value < 0)), a = e.some((e) => e.values.some((e) => e.value > 0)), o = new Map(l.map((e) => [e, n.getId(e)])), s = {}, f = {};
|
|
2488
2487
|
for (let e in r) s[e] = r[e].slice(), f[e] = r[e].slice();
|
|
@@ -2509,9 +2508,9 @@ var Zn = {
|
|
|
2509
2508
|
}
|
|
2510
2509
|
});
|
|
2511
2510
|
let p = [], m = [];
|
|
2512
|
-
for (let e in s) p.push(
|
|
2513
|
-
d = [
|
|
2514
|
-
} else d =
|
|
2511
|
+
for (let e in s) p.push(We("min", s[e])), m.push(We("max", f[e]));
|
|
2512
|
+
d = [We("min", p), We("max", m)];
|
|
2513
|
+
} else d = Jn(t, e);
|
|
2515
2514
|
return o && r.add(o, {
|
|
2516
2515
|
generation: a.dataGeneration,
|
|
2517
2516
|
value: d
|
|
@@ -2528,58 +2527,58 @@ var Zn = {
|
|
|
2528
2527
|
let c = o?.[t] && o[t].type === "log", l = e.filter((e) => i.getId(e.id) === t), u = n ? r.filterByXDomain(l, n) : l;
|
|
2529
2528
|
if (u.length === 0) return r.isHiddenTargetWithYDomain(t) ? o[t].domain() : t === "y2" ? o.y.domain() : r.getYDomain(e, "y2", n);
|
|
2530
2529
|
let d = a[`${s}_min`], f = a[`${s}_max`], p = a[`${s}_center`], m = a[`${s}_inverted`], h = r.hasDataLabel() && a.axis_rotated, g = r.hasDataLabel() && !a.axis_rotated, [_, v] = r.getYDomainMinMaxBoth(u), y = _, b = v, x = [
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
...
|
|
2530
|
+
C.BAR,
|
|
2531
|
+
C.BUBBLE,
|
|
2532
|
+
C.SCATTER,
|
|
2533
|
+
...T.Line
|
|
2535
2534
|
].some((e) => {
|
|
2536
2535
|
let t = e.indexOf("area") > -1 ? "area" : e;
|
|
2537
2536
|
return r.hasType(e, u, !0) && a[`${t}_zerobased`];
|
|
2538
2537
|
});
|
|
2539
2538
|
y = A(d) ? d : A(f) ? y <= f ? y : f - 10 : y, b = A(f) ? f : A(d) ? d <= b ? b : d + 10 : b, isNaN(y) && (y = 0), isNaN(b) && (b = y), y === b && (y < 0 ? b = 0 : y = 0);
|
|
2540
|
-
let S = y >= 0 && b >= 0,
|
|
2541
|
-
(A(d) && S || A(f) &&
|
|
2542
|
-
let
|
|
2543
|
-
top:
|
|
2544
|
-
bottom:
|
|
2539
|
+
let S = y >= 0 && b >= 0, w = y <= 0 && b <= 0;
|
|
2540
|
+
(A(d) && S || A(f) && w) && (x = !1), x && (S && (y = 0), w && (b = 0));
|
|
2541
|
+
let E = Math.abs(b - y), D = {
|
|
2542
|
+
top: E * .1,
|
|
2543
|
+
bottom: E * .1
|
|
2545
2544
|
};
|
|
2546
2545
|
if (F(p)) {
|
|
2547
2546
|
let e = Math.max(Math.abs(y), Math.abs(b));
|
|
2548
2547
|
b = p + e, y = p - e;
|
|
2549
2548
|
}
|
|
2550
2549
|
if (h) {
|
|
2551
|
-
let e =
|
|
2550
|
+
let e = se(o.y.range()), t = r.getDataLabelLength(y, b, "width").map((t) => {
|
|
2552
2551
|
let n = t / e;
|
|
2553
2552
|
return isFinite(n) ? n : 0;
|
|
2554
2553
|
});
|
|
2555
2554
|
["bottom", "top"].forEach((e, n) => {
|
|
2556
|
-
D[e] +=
|
|
2555
|
+
D[e] += E * (t[n] / (1 - t[0] - t[1]));
|
|
2557
2556
|
});
|
|
2558
2557
|
} else if (g) {
|
|
2559
2558
|
let e = r.getDataLabelLength(y, b, "height");
|
|
2560
2559
|
["bottom", "top"].forEach((t, n) => {
|
|
2561
|
-
D[t] += r.convertPixelToScale("y", e[n],
|
|
2560
|
+
D[t] += r.convertPixelToScale("y", e[n], E);
|
|
2562
2561
|
});
|
|
2563
2562
|
}
|
|
2564
2563
|
D = r.getResettedPadding(D);
|
|
2565
|
-
let
|
|
2566
|
-
R(
|
|
2567
|
-
D[e] = i.getPadding(
|
|
2568
|
-
}), x && (S && (D.bottom = y),
|
|
2569
|
-
let
|
|
2570
|
-
return m ?
|
|
2564
|
+
let O = a[`${s}_padding`];
|
|
2565
|
+
R(O) && ["bottom", "top"].forEach((e) => {
|
|
2566
|
+
D[e] = i.getPadding(O, e, D[e], E);
|
|
2567
|
+
}), x && (S && (D.bottom = y), w && (D.top = -b));
|
|
2568
|
+
let k = c ? [y, b].map((e) => e < 0 ? 0 : e) : [y - D.bottom, b + D.top];
|
|
2569
|
+
return m ? k.reverse() : k;
|
|
2571
2570
|
},
|
|
2572
2571
|
getXDomainMinMax(e, t) {
|
|
2573
|
-
let n = this, { cache: r, state: i } = n, a = n.config[`axis_x_${t}`], o =
|
|
2574
|
-
c === void 0 && (c =
|
|
2572
|
+
let n = this, { cache: r, state: i } = n, a = n.config[`axis_x_${t}`], o = Gn(n, e) ? `${Q.domainMinMax}_x_${t}_${Wn(n, e)}` : null, s = o && r.get(o), c = s?.generation === i.dataGeneration ? s.value : void 0;
|
|
2573
|
+
c === void 0 && (c = Yn(e, t), o && r.add(o, {
|
|
2575
2574
|
generation: i.dataGeneration,
|
|
2576
2575
|
value: c
|
|
2577
2576
|
}));
|
|
2578
2577
|
let l = B(a) ? a.value : a;
|
|
2579
|
-
return l = F(l) && n.axis?.isTimeSeries() ?
|
|
2578
|
+
return l = F(l) && n.axis?.isTimeSeries() ? Ye.bind(this)(l) : l, B(a) && a.fit && (t === "min" && l < c || t === "max" && l > c) && (l = void 0), F(l) ? l : c;
|
|
2580
2579
|
},
|
|
2581
2580
|
getXDomainPadding(e, t) {
|
|
2582
|
-
let n = this, { axis: r, config: i } = n, a = i.axis_x_padding, o = r.isTimeSeries() && t, s =
|
|
2581
|
+
let n = this, { axis: r, config: i } = n, a = i.axis_x_padding, o = r.isTimeSeries() && t, s = se(e), c;
|
|
2583
2582
|
if (r.isCategorized() || o) c = 0;
|
|
2584
2583
|
else if (n.hasType("bar")) {
|
|
2585
2584
|
let e = n.getMaxDataCount();
|
|
@@ -2614,8 +2613,8 @@ var Zn = {
|
|
|
2614
2613
|
},
|
|
2615
2614
|
updateXDomain(e, t, n, r, i) {
|
|
2616
2615
|
let a = this, { config: o, org: s, scale: { x: c, subX: l } } = a, u = o.zoom_enabled;
|
|
2617
|
-
if (n && (c.domain(i ||
|
|
2618
|
-
let e = i || !a.brush ||
|
|
2616
|
+
if (n && (c.domain(i || Ue(a.getXDomain(e), !o.axis_x_inverted)), s.xDomain = c.domain(), l.domain(c.domain()), a.brush?.scale(l)), t) {
|
|
2617
|
+
let e = i || !a.brush || Un(a) ? s.xDomain : Hn(a).map(l.invert);
|
|
2619
2618
|
c.domain(e);
|
|
2620
2619
|
}
|
|
2621
2620
|
return (n || t) && u && a.zoom.updateScaleExtent(), r && c.domain(a.trimXDomain(c.orgDomain())), c.domain();
|
|
@@ -2626,7 +2625,7 @@ var Zn = {
|
|
|
2626
2625
|
},
|
|
2627
2626
|
getZoomDomain(e = "zoom", t = !1) {
|
|
2628
2627
|
let { config: n, scale: r, org: i } = this, [a, o] = t && r[e] ? r[e].domain() : i.xDomain;
|
|
2629
|
-
return e === "zoom" && (F(n.zoom_x_min) && (a =
|
|
2628
|
+
return e === "zoom" && (F(n.zoom_x_min) && (a = We("min", [a, n.zoom_x_min])), F(n.zoom_x_max) && (o = We("max", [o, n.zoom_x_max]))), [a, o];
|
|
2630
2629
|
},
|
|
2631
2630
|
getZoomDomainValue(e) {
|
|
2632
2631
|
let { config: t, axis: n } = this;
|
|
@@ -2647,16 +2646,16 @@ var Zn = {
|
|
|
2647
2646
|
};
|
|
2648
2647
|
//#endregion
|
|
2649
2648
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/internals/format.js
|
|
2650
|
-
function
|
|
2649
|
+
function Zn(e, t, n) {
|
|
2651
2650
|
let { config: r } = e, i = `axis_${t}_tick_format`;
|
|
2652
2651
|
return (r[i] ? r[i] : e.defaultValueFormat).call(e.api, n);
|
|
2653
2652
|
}
|
|
2654
|
-
var
|
|
2653
|
+
var Qn = {
|
|
2655
2654
|
yFormat(e) {
|
|
2656
|
-
return
|
|
2655
|
+
return Zn(this, "y", e);
|
|
2657
2656
|
},
|
|
2658
2657
|
y2Format(e) {
|
|
2659
|
-
return
|
|
2658
|
+
return Zn(this, "y2", e);
|
|
2660
2659
|
},
|
|
2661
2660
|
getDefaultValueFormat() {
|
|
2662
2661
|
let e = this, { defaultArcValueFormat: t, yFormat: n, y2Format: r } = e, i = e.hasArcType(null, [
|
|
@@ -2684,16 +2683,16 @@ var $n = {
|
|
|
2684
2683
|
}, i = r;
|
|
2685
2684
|
return j(n.format) ? i = n.format : I(n.format) && (i = n.format[e] ? n.format[e] === !0 ? r : n.format[e] : () => ""), i.bind(t.api);
|
|
2686
2685
|
}
|
|
2687
|
-
},
|
|
2688
|
-
function
|
|
2686
|
+
}, $n = 10, er = 750;
|
|
2687
|
+
function tr(e) {
|
|
2689
2688
|
let t = this, n = t.getDataById(e);
|
|
2690
2689
|
return t.levelColor ? t.levelColor(n.values[0].value) : t.color(n);
|
|
2691
2690
|
}
|
|
2692
|
-
function
|
|
2691
|
+
function nr(e, t = !0) {
|
|
2693
2692
|
let { config: n } = this, r = n.data_names[e] ?? e;
|
|
2694
2693
|
return t && j(n.legend_format) && (r = n.legend_format(r, e === r ? void 0 : e)), r;
|
|
2695
2694
|
}
|
|
2696
|
-
function
|
|
2695
|
+
function rr(e, t) {
|
|
2697
2696
|
if (!t || t.empty()) return;
|
|
2698
2697
|
let n = e.$el.legend?.selectAll(`.${K.legendItem}`);
|
|
2699
2698
|
n && !n.empty() && (t = n);
|
|
@@ -2704,14 +2703,14 @@ function ir(e, t) {
|
|
|
2704
2703
|
node: this
|
|
2705
2704
|
});
|
|
2706
2705
|
});
|
|
2707
|
-
let i =
|
|
2706
|
+
let i = $e(r, (e) => e.id, (e) => e.node);
|
|
2708
2707
|
e.cache.add(Q.legendItemMap, i);
|
|
2709
2708
|
}
|
|
2710
|
-
function
|
|
2709
|
+
function ir(e) {
|
|
2711
2710
|
return e.changedTouches?.[0] || e.touches?.[0];
|
|
2712
2711
|
}
|
|
2713
|
-
function
|
|
2714
|
-
let r =
|
|
2712
|
+
function ar(e, t, n) {
|
|
2713
|
+
let r = ir(n);
|
|
2715
2714
|
e.state.legendTouch = r ? {
|
|
2716
2715
|
id: t,
|
|
2717
2716
|
x: r.clientX,
|
|
@@ -2719,27 +2718,27 @@ function or(e, t, n) {
|
|
|
2719
2718
|
moved: !1
|
|
2720
2719
|
} : null;
|
|
2721
2720
|
}
|
|
2722
|
-
function
|
|
2723
|
-
let n = e.state.legendTouch, r = n &&
|
|
2724
|
-
r && (n.moved = n.moved || Math.abs(r.clientX - n.x) >
|
|
2721
|
+
function or(e, t) {
|
|
2722
|
+
let n = e.state.legendTouch, r = n && ir(t);
|
|
2723
|
+
r && (n.moved = n.moved || Math.abs(r.clientX - n.x) > $n || Math.abs(r.clientY - n.y) > $n);
|
|
2725
2724
|
}
|
|
2726
|
-
function
|
|
2727
|
-
|
|
2725
|
+
function sr(e, t, n) {
|
|
2726
|
+
or(e, n);
|
|
2728
2727
|
let r = e.state.legendTouch;
|
|
2729
2728
|
return e.state.legendTouch = null, !!r && r.id === t && !r.moved;
|
|
2730
2729
|
}
|
|
2731
|
-
function
|
|
2730
|
+
function cr(e, t) {
|
|
2732
2731
|
e.state.legendLastTouchClickId = t, e.state.legendLastTouchClickTime = Date.now();
|
|
2733
2732
|
}
|
|
2734
|
-
function
|
|
2735
|
-
let { state: n } = e, r = n.legendLastTouchClickId === t && Date.now() - (n.legendLastTouchClickTime || 0) <
|
|
2733
|
+
function lr(e, t) {
|
|
2734
|
+
let { state: n } = e, r = n.legendLastTouchClickId === t && Date.now() - (n.legendLastTouchClickTime || 0) < er;
|
|
2736
2735
|
return r && (n.legendLastTouchClickId = null, n.legendLastTouchClickTime = 0), r;
|
|
2737
2736
|
}
|
|
2738
|
-
function
|
|
2737
|
+
function ur(e) {
|
|
2739
2738
|
let t = e.config.interaction_inputType_touch?.preventDefault;
|
|
2740
|
-
return { passive: !(
|
|
2739
|
+
return { passive: !(ie(t) && t) && (!isNaN(t) && t || null) === null };
|
|
2741
2740
|
}
|
|
2742
|
-
var
|
|
2741
|
+
var dr = {
|
|
2743
2742
|
initLegend() {
|
|
2744
2743
|
let e = this, { config: t, $el: n } = e;
|
|
2745
2744
|
if (e.legendItemTextBox = {}, e.state.legendHasRendered = !1, e.state.isCanvasMode) {
|
|
@@ -2754,7 +2753,7 @@ var fr = {
|
|
|
2754
2753
|
withTransitionForTransform: !1,
|
|
2755
2754
|
withTransition: !1
|
|
2756
2755
|
};
|
|
2757
|
-
c.withTransition =
|
|
2756
|
+
c.withTransition = Ne(c, "withTransition", !0), c.withTransitionForTransform = Ne(c, "withTransitionForTransform", !0), i.legend_contents_bindto && i.legend_contents_template ? r.updateLegendTemplate() : a.hasTreemap || r.updateLegendElement(e || r.mapToIds(r.data.targets), c), s.legend?.selectAll(`.${K.legendItem}`).classed(K.legendItemHidden, function(e) {
|
|
2758
2757
|
let t = !r.isTargetToShow(e);
|
|
2759
2758
|
return t && (this.style.opacity = null), t;
|
|
2760
2759
|
}), r.updateScales(!1, !o.zoom), r.updateSvgSize(), r.transformAll(c.withTransitionForTransform, n), a.legendHasRendered = !0;
|
|
@@ -2764,7 +2763,7 @@ var fr = {
|
|
|
2764
2763
|
if (!r.empty()) {
|
|
2765
2764
|
let t = e.mapToIds(e.data.targets), i = [], o = "";
|
|
2766
2765
|
t.forEach((t) => {
|
|
2767
|
-
let n = j(a) ?
|
|
2766
|
+
let n = j(a) ? je(a.call(e.api, t, e.color(t), e.api.data(t)[0].values)) : Je(a, {
|
|
2768
2767
|
COLOR: e.color(t),
|
|
2769
2768
|
TITLE: t
|
|
2770
2769
|
});
|
|
@@ -2833,7 +2832,7 @@ var fr = {
|
|
|
2833
2832
|
return e && (a = !i.redrawing && r.get(o) || {}, a[e] || (a[e] = n.getTextRect(t, K.legendItem), r.add(o, a)), a = a[e]), a;
|
|
2834
2833
|
},
|
|
2835
2834
|
setLegendItem(e) {
|
|
2836
|
-
let t = this, { $el: n, api: r, config: a, state: o } = t, s = o.inputType === "touch", c = t.hasType("gauge"), l = a.boost_useCssRule, u = a.legend_item_interaction, d = u.dblclick ? "dblclick" : "click", f = u || j(a.legend_item_onclick), p = s ?
|
|
2835
|
+
let t = this, { $el: n, api: r, config: a, state: o } = t, s = o.inputType === "touch", c = t.hasType("gauge"), l = a.boost_useCssRule, u = a.legend_item_interaction, d = u.dblclick ? "dblclick" : "click", f = u || j(a.legend_item_onclick), p = s ? ur(t) : void 0, m = function(e, n) {
|
|
2837
2836
|
if (!V(a.legend_item_onclick, r, n, !o.hiddenTargetIds.has(n))) {
|
|
2838
2837
|
let { altKey: t, type: a } = e, s = i(this);
|
|
2839
2838
|
a === "dblclick" || t ? o.hiddenTargetIds.size && !s.classed(K.legendItemHidden) ? r.show() : (r.hide(), r.show(n)) : (r.toggle(n), s.classed(q.legendItemFocused, !1));
|
|
@@ -2853,18 +2852,18 @@ var fr = {
|
|
|
2853
2852
|
let [r, i] = e;
|
|
2854
2853
|
t.setCssRule(!1, r, [i])(n.legend);
|
|
2855
2854
|
}), e.on(d, f ? function(e, n) {
|
|
2856
|
-
s && e.type === "click" &&
|
|
2855
|
+
s && e.type === "click" && lr(t, n) || m.call(this, e, n);
|
|
2857
2856
|
} : null), s && d === "click" && f && e.on("touchstart", function(e, n) {
|
|
2858
|
-
|
|
2857
|
+
ar(t, n, e);
|
|
2859
2858
|
}, p).on("touchmove", (e) => {
|
|
2860
|
-
|
|
2859
|
+
or(t, e);
|
|
2861
2860
|
}, p).on("touchend", function(e, n) {
|
|
2862
|
-
|
|
2861
|
+
sr(t, n, e) && (cr(t, n), m.call(this, e, n));
|
|
2863
2862
|
}, p), !s && e.on("mouseout", u || j(a.legend_item_onout) ? function(e, n) {
|
|
2864
|
-
V(a.legend_item_onout, r, n, !o.hiddenTargetIds.has(n)) || (i(this).classed(q.legendItemFocused, !1), c && t.undoMarkOverlapped(t, `.${
|
|
2863
|
+
V(a.legend_item_onout, r, n, !o.hiddenTargetIds.has(n)) || (i(this).classed(q.legendItemFocused, !1), c && t.undoMarkOverlapped(t, `.${dt.gaugeValue}`), t.api.revert());
|
|
2865
2864
|
} : null).on("mouseover", u || j(a.legend_item_onover) ? function(e, n) {
|
|
2866
|
-
V(a.legend_item_onover, r, n, !o.hiddenTargetIds.has(n)) || (i(this).classed(q.legendItemFocused, !0), c && t.markOverlapped(n, t, `.${
|
|
2867
|
-
} : null), !e.empty() && e.on("click mouseout mouseover") && e.style("cursor", t.getStylePropValue("pointer"))),
|
|
2865
|
+
V(a.legend_item_onover, r, n, !o.hiddenTargetIds.has(n)) || (i(this).classed(q.legendItemFocused, !0), c && t.markOverlapped(n, t, `.${dt.gaugeValue}`), !o.transiting && t.isTargetToShow(n) && r.focus(n));
|
|
2866
|
+
} : null), !e.empty() && e.on("click mouseout mouseover") && e.style("cursor", t.getStylePropValue("pointer"))), rr(t, e);
|
|
2868
2867
|
},
|
|
2869
2868
|
getLegendItemById(e) {
|
|
2870
2869
|
let t = this, n = t.cache.get(Q.legendItemMap);
|
|
@@ -2893,7 +2892,7 @@ var fr = {
|
|
|
2893
2892
|
heights: {},
|
|
2894
2893
|
margins: [0],
|
|
2895
2894
|
steps: {}
|
|
2896
|
-
}, f, p, m, h = e.filter((e) => !F(r.data_names[e]) || r.data_names[e] !== null), g = t.withTransition, _ = i.isLegendRight || i.isLegendInset, v =
|
|
2895
|
+
}, f, p, m, h = e.filter((e) => !F(r.data_names[e]) || r.data_names[e] !== null), g = t.withTransition, _ = i.isLegendRight || i.isLegendInset, v = nr.bind(n), y = n.getUpdateLegendPositions(h, u, d, _);
|
|
2897
2896
|
i.isLegendInset && (u.step = r.legend_inset_step ? r.legend_inset_step : h.length, i.legendStep = u.step), i.isLegendRight ? (f = (e) => u.max.width * d.steps[e], p = (e) => d.margins[d.steps[e]] + d.offsets[e]) : i.isLegendInset ? (f = (e) => u.max.width * d.steps[e] + 10, p = (e) => d.margins[d.steps[e]] + d.offsets[e]) : (f = (e) => d.margins[d.steps[e]] + d.offsets[e], p = (e) => u.max.height * d.steps[e]);
|
|
2898
2897
|
let b = {
|
|
2899
2898
|
xText: (e, t) => f(e, t) + 4 + l.width,
|
|
@@ -2937,12 +2936,12 @@ var fr = {
|
|
|
2937
2936
|
e.indexOf(r) === -1 && e.push(r);
|
|
2938
2937
|
let i = n[e.indexOf(r) % n.length];
|
|
2939
2938
|
return i === "rectangle" && (i = "rect"), k.createElementNS(t.svg, "hasValidPointType" in s && s.hasValidPointType(i) ? i : "use");
|
|
2940
|
-
}).attr("class", K.legendItemPoint).style("fill",
|
|
2939
|
+
}).attr("class", K.legendItemPoint).style("fill", tr.bind(s)).style("pointer-events", s.getStylePropValue("none")).attr("href", (e, t, n) => {
|
|
2941
2940
|
let r = n[t].nodeName.toLowerCase(), i = s.getTargetSelectorSuffix(e);
|
|
2942
2941
|
return r === "use" ? `#${l.datetimeId}-point${i}` : void 0;
|
|
2943
2942
|
});
|
|
2944
|
-
} else g.append(m ? "line" : p).attr("class", K.legendItemTile).style("stroke",
|
|
2945
|
-
p === "circle" ? e.attr("r", f).style("fill",
|
|
2943
|
+
} else g.append(m ? "line" : p).attr("class", K.legendItemTile).style("stroke", tr.bind(s)).style("pointer-events", s.getStylePropValue("none")).call((e) => {
|
|
2944
|
+
p === "circle" ? e.attr("r", f).style("fill", tr.bind(s)).attr("cx", a ? i.x2Tile : h).attr("cy", a ? h : i.yTile) : m && e.attr("stroke-width", n.height).attr("x1", a ? i.x1Tile : h).attr("y1", a ? h : i.yTile).attr("x2", a ? i.x2Tile : h).attr("y2", a ? h : i.yTile);
|
|
2946
2945
|
});
|
|
2947
2946
|
},
|
|
2948
2947
|
updateLegendItemPos(e, t, n) {
|
|
@@ -2955,14 +2954,14 @@ var fr = {
|
|
|
2955
2954
|
let c = i(this).attr("transform", null).attr("x", null).attr("y", null).attr("cx", null).attr("cy", null).attr("r", a).attr("width", o).attr("height", s);
|
|
2956
2955
|
e === "use" ? c.attr("transform", (e) => `translate(${n.x1Tile(e)} ${n.yTile(e) - u / 2}) scale(${p} ${m})`) : c.attr(t, (e) => n.x1Tile(e) + (l - (o || 0)) / 2).attr(r, (e) => n.yTile(e) - (s || 0) / 2);
|
|
2957
2956
|
});
|
|
2958
|
-
} else s(o.selectAll(`.${K.legendItemTile}`).data(e), t).style("stroke",
|
|
2957
|
+
} else s(o.selectAll(`.${K.legendItemTile}`).data(e), t).style("stroke", tr.bind(r)).call((e) => {
|
|
2959
2958
|
l === "circle" ? e.attr("cx", (e) => {
|
|
2960
2959
|
let t = n.x2Tile(e);
|
|
2961
2960
|
return t - (t - n.x1Tile(e)) / 2;
|
|
2962
2961
|
}).attr("cy", n.yTile) : u && e.attr("x1", n.x1Tile).attr("y1", n.yTile).attr("x2", n.x2Tile).attr("y2", n.yTile);
|
|
2963
2962
|
});
|
|
2964
2963
|
}
|
|
2965
|
-
},
|
|
2964
|
+
}, fr = {
|
|
2966
2965
|
redraw(e = {}) {
|
|
2967
2966
|
let t = this, { config: n, state: r, $el: i } = t, { main: a, treemap: o } = i;
|
|
2968
2967
|
r.redrawing = !0, r.redrawGeneration++, (r.dirty.data || r.dirty.visibility || e.initializing) && r.dataGeneration++, (e.initializing || r.dirty.size || r.dirty.data || !r.rendered) && t.cache.remove([Q.svgLeft]);
|
|
@@ -2991,7 +2990,7 @@ var fr = {
|
|
|
2991
2990
|
].forEach((e) => {
|
|
2992
2991
|
let n = H(e);
|
|
2993
2992
|
(/^(line|area)$/.test(e) && t.hasTypeOf(n) || t.hasType(e)) && g && t[`update${n}`](d.TransitionForExit);
|
|
2994
|
-
}), i.text && a.selectAll(`.${
|
|
2993
|
+
}), i.text && a.selectAll(`.${_t.selectedCircles}`).filter(t.isBarType.bind(t)).selectAll("circle").remove(), n.interaction_enabled && !l && d.EventRect && (t.redrawEventRect(), t.bindZoomEvent?.())) : (i.arcs && t.redrawArc(f, p, d.Transform), i.radar && t.redrawRadar(), i.polar && t.redrawPolar(), i.funnel && t.redrawFunnel(), o && t.updateTreemap(p)), !r.resizing && !o && (t.hasPointType() || r.hasRadar) ? g && t.updateCircle() : t.hasLegendDefsPoint?.() && t.data.targets.forEach(t.point("create", this)), t.hasDataLabel() && !t.hasArcType(null, ["radar"]) && g && t.updateText(), u && t.updateTypesElements(), t.generateRedrawList(s, l, f, d.Subchart, g), t.updateTooltipOnRedraw(), t.callPluginHook("$redraw", e, f);
|
|
2995
2994
|
},
|
|
2996
2995
|
generateRedrawList(e, t, n, r, i = !0) {
|
|
2997
2996
|
let a = this, { config: s, state: c } = a, l = i ? a.getDrawShape() : c._cachedDrawShape || a.getDrawShape();
|
|
@@ -3002,11 +3001,11 @@ var fr = {
|
|
|
3002
3001
|
duration: t.duration,
|
|
3003
3002
|
shape: l,
|
|
3004
3003
|
xv: a.xv.bind(a)
|
|
3005
|
-
}), d = (n || u) &&
|
|
3004
|
+
}), d = (n || u) && Yt(), f = a.getRedrawList(l, t, u, d), p = () => {
|
|
3006
3005
|
u && u(), c.redrawing = !1, c._targetsToShow = null, c._cachedDrawShape = null, V(s.onrendered, a.api);
|
|
3007
3006
|
};
|
|
3008
3007
|
if (d && f.length) {
|
|
3009
|
-
let e =
|
|
3008
|
+
let e = tn();
|
|
3010
3009
|
o().duration(n).each(() => {
|
|
3011
3010
|
f.flatMap((e) => e).forEach((t) => e.add(t));
|
|
3012
3011
|
}).call(e, p);
|
|
@@ -3029,12 +3028,12 @@ var fr = {
|
|
|
3029
3028
|
},
|
|
3030
3029
|
updateAndRedraw(e = {}) {
|
|
3031
3030
|
let t = this, { config: n, state: r } = t, i;
|
|
3032
|
-
e.withTransition =
|
|
3031
|
+
e.withTransition = Ne(e, "withTransition", !0), e.withTransform = Ne(e, "withTransform", !1), e.withLegend = Ne(e, "withLegend", !1), e.withUpdateXDomain = !0, e.withUpdateOrgXDomain = !0, e.withTransitionForExit = !1, e.withTransitionForTransform = Ne(e, "withTransitionForTransform", e.withTransition), e.withLegend && n.legend_show || (r.hasAxis && (i = t.axis.generateTransitions(e.withTransitionForAxis ? n.transition_duration : 0)), t.updateScales(), t.updateSvgSize(), t.transformAll(e.withTransitionForTransform, i)), t.redraw(e);
|
|
3033
3032
|
}
|
|
3034
3033
|
};
|
|
3035
3034
|
//#endregion
|
|
3036
3035
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/internals/scale.js
|
|
3037
|
-
function
|
|
3036
|
+
function pr(e = "linear", t, n) {
|
|
3038
3037
|
let r = {
|
|
3039
3038
|
linear: x,
|
|
3040
3039
|
log: p,
|
|
@@ -3044,15 +3043,15 @@ function mr(e = "linear", t, n) {
|
|
|
3044
3043
|
}[e]();
|
|
3045
3044
|
return r.type = e, /_?log/.test(e) && r.clamp(!0), r.range([t ?? 0, n ?? 1]);
|
|
3046
3045
|
}
|
|
3047
|
-
var
|
|
3046
|
+
var mr = {
|
|
3048
3047
|
getXScale(e, t, n, r) {
|
|
3049
|
-
let i = this, a = i.state.loading !== "append" && i.scale.zoom ||
|
|
3048
|
+
let i = this, a = i.state.loading !== "append" && i.scale.zoom || pr(i.axis.getAxisType("x"), e, t);
|
|
3050
3049
|
return i.getCustomizedXScale(n ? a.domain(n) : a, r);
|
|
3051
3050
|
},
|
|
3052
3051
|
getYScale(e, t, n, r, i) {
|
|
3053
3052
|
let a = this.axis.getAxisType(e);
|
|
3054
3053
|
if (i && i.type === a) return i.range([t, n]), r && i.domain(r), i;
|
|
3055
|
-
let o =
|
|
3054
|
+
let o = pr(a, t, n);
|
|
3056
3055
|
return r && o.domain(r), o;
|
|
3057
3056
|
},
|
|
3058
3057
|
getYScaleById(e, t = !1) {
|
|
@@ -3093,7 +3092,7 @@ var hr = {
|
|
|
3093
3092
|
},
|
|
3094
3093
|
xv(e) {
|
|
3095
3094
|
let t = this, { axis: n, config: r, scale: { x: i, zoom: a } } = t, o = r.zoom_enabled && a ? a : i, s = t.getBaseValue(e);
|
|
3096
|
-
return n.isTimeSeries() ? s =
|
|
3095
|
+
return n.isTimeSeries() ? s = Ye.call(t, s) : n.isCategorized() && M(s) && (s = r.axis_x_categories.indexOf(s)), o(s);
|
|
3097
3096
|
},
|
|
3098
3097
|
yv(e) {
|
|
3099
3098
|
let t = this, { scale: { y: n, y2: r } } = t;
|
|
@@ -3102,7 +3101,7 @@ var hr = {
|
|
|
3102
3101
|
subxx(e) {
|
|
3103
3102
|
return e ? this.scale.subX(e.x) : null;
|
|
3104
3103
|
}
|
|
3105
|
-
},
|
|
3104
|
+
}, hr = {
|
|
3106
3105
|
setContainerSize() {
|
|
3107
3106
|
let e = this, { state: t } = e;
|
|
3108
3107
|
t.current.width = e.getCurrentWidth(), t.current.height = e.getCurrentHeight();
|
|
@@ -3160,7 +3159,7 @@ var hr = {
|
|
|
3160
3159
|
return;
|
|
3161
3160
|
}
|
|
3162
3161
|
if (t.resize_auto === "viewBox" ? s.attr("viewBox", `0 0 ${r.width} ${r.height}`) : s.attr("width", r.width).attr("height", r.height), i) {
|
|
3163
|
-
let t = s.select(`.${
|
|
3162
|
+
let t = s.select(`.${vt.brush} .overlay`), r = {
|
|
3164
3163
|
width: 0,
|
|
3165
3164
|
height: 0
|
|
3166
3165
|
};
|
|
@@ -3174,7 +3173,7 @@ var hr = {
|
|
|
3174
3173
|
left: c ? "x" : "y",
|
|
3175
3174
|
right: c ? null : "y2"
|
|
3176
3175
|
}[e] : null, f = /^(left|right)$/.test(e), p = d && i[`axis_${d}_inner`], m = d && i[`axis_${d}_show`], h = d ? i[`axis_${d}_axes`].length : 0, g = d ? f ? r.getAxisWidthByAxisId(d, t) : r.getHorizontalAxisHeight(d) : 0, _ = 0;
|
|
3177
|
-
!l && f && (g =
|
|
3176
|
+
!l && f && (g = ae(g));
|
|
3178
3177
|
let v = o && f && (p || P(u) && !m) ? 0 : l ? (m ? g : 0) + (u ?? 0) : P(u) ? g : u;
|
|
3179
3178
|
return f && o ? (d && (l || p) && i[`axis_${d}_label`].text && (v += r.axis.getAxisLabelPosition(d).isOuter ? 20 : 0), e === "right" ? (v += c ? !l && P(u) ? 10 : 2 : !m || p ? l ? 2 : 1 : 0, v += n ? r.axis.getXAxisTickTextY2Overflow(20) : 0) : e === "left" && c && P(u) && (v = i.axis_x_show ? l ? g : Math.max(g, 40) : 1)) : e === "top" ? ((a.title && a.title.node() || s && i.title_text) && (v += r.getTitlePadding()), _ = c && !p ? h : 0) : e === "bottom" && o && c && !m && (v += 1), v + g * h - _;
|
|
3180
3179
|
},
|
|
@@ -3241,13 +3240,13 @@ var hr = {
|
|
|
3241
3240
|
}
|
|
3242
3241
|
r.isLegendRight && o && (r.margin3.left = r.arcWidth / 2 + r.radiusExpanded * 1.1);
|
|
3243
3242
|
}
|
|
3244
|
-
},
|
|
3243
|
+
}, gr = {
|
|
3245
3244
|
setCssRule(e, t, n, r) {
|
|
3246
3245
|
let i = this, { config: a, state: { cssRule: o, style: s } } = i;
|
|
3247
3246
|
return a.boost_useCssRule ? (a) => {
|
|
3248
3247
|
a.each((a) => {
|
|
3249
3248
|
let c = r && r?.call(i, a), l = `${e ? `.${Y.shapes + i.getTargetSelectorSuffix(a.id)}` : ""}${t}`;
|
|
3250
|
-
t in o && s.sheet.deleteRule(o[l]), i.state.cssRule[l] =
|
|
3249
|
+
t in o && s.sheet.deleteRule(o[l]), i.state.cssRule[l] = Ht(s, l, n.filter(Boolean).map((e) => M(c) && e.indexOf(":") === -1 ? `${e}: ${c}` : e || ""));
|
|
3251
3250
|
});
|
|
3252
3251
|
} : () => {};
|
|
3253
3252
|
},
|
|
@@ -3258,42 +3257,42 @@ var hr = {
|
|
|
3258
3257
|
};
|
|
3259
3258
|
//#endregion
|
|
3260
3259
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/internals/text.util.js
|
|
3261
|
-
function
|
|
3260
|
+
function _r(e) {
|
|
3262
3261
|
let t = "middle";
|
|
3263
3262
|
return e > 0 && e <= 170 ? t = "end" : e > 190 && e <= 360 && (t = "start"), t;
|
|
3264
3263
|
}
|
|
3265
|
-
function
|
|
3264
|
+
function vr(e, t, n, r, i) {
|
|
3266
3265
|
let a = this, { value: o } = e, s = a.isCandlestickType(e), c = N(o) && o < 0 || s && !a.getCandlestickData(e)?._isUp, { x: l, y: u } = t;
|
|
3267
3266
|
return r ? n === "start" ? (l += c ? 0 : 8, u += 4) : n === "middle" ? (l += 8, u -= 8) : n === "end" && (c && (l -= 8), u += 4) : (n === "start" ? (l += 4, c && (u += 16)) : n === "middle" ? u -= 8 : n === "end" && (l -= 4, c && (u += 16)), i && (u += c ? -17 : s ? 13 : 7)), {
|
|
3268
3267
|
x: l,
|
|
3269
3268
|
y: u
|
|
3270
3269
|
};
|
|
3271
3270
|
}
|
|
3272
|
-
function
|
|
3271
|
+
function yr(e, t) {
|
|
3273
3272
|
let n = this.config.data_labels_position, { id: r, index: i, value: a } = e;
|
|
3274
3273
|
return (j(n) ? n.bind(this.api)(t, a, r, i, this.$el.text) : (r in n ? n[r] : n)[t]) ?? 0;
|
|
3275
3274
|
}
|
|
3276
|
-
function
|
|
3277
|
-
let { config: r, $T: a } = this, o = r.axis_rotated, { border: { padding: s = "3 5", radius: c = 10, stroke: l = "#000", strokeWidth: u = 1, fill: d = "none" } } = r.data_labels, f =
|
|
3275
|
+
function br(e, t, n) {
|
|
3276
|
+
let { config: r, $T: a } = this, o = r.axis_rotated, { border: { padding: s = "3 5", radius: c = 10, stroke: l = "#000", strokeWidth: u = 1, fill: d = "none" } } = r.data_labels, f = Xe(s), p = r.data_labels.border !== !0, m = Vt(e), h = i(e.previousElementSibling);
|
|
3278
3277
|
(h.empty() || h.node()?.tagName !== "rect" || !h.attr("class")?.includes(n)) && (h = i(e.parentNode).insert("rect", () => e).attr("class", `${X.textBorderRect} ${n}`).attr("width", m.width + (p ? f.left + f.right : 0)).attr("height", m.height + (p ? f.top + f.bottom : 0)), p && h.style("fill", d).style("stroke", l).style("stroke-width", `${u}px`).attr("rx", c).attr("ry", c)), a(h).attr("x", t.x - (p ? f.left : 0) - (o ? 0 : m.width / 2)).attr("y", t.y - (p ? f.top : 0) - m.height / 4 * 3.2);
|
|
3279
3278
|
}
|
|
3280
|
-
function
|
|
3279
|
+
function xr(e = 0, t) {
|
|
3281
3280
|
let { config: n } = this;
|
|
3282
3281
|
return e >= (n[`${t}_label_threshold`] || 0);
|
|
3283
3282
|
}
|
|
3284
|
-
function
|
|
3283
|
+
function Sr() {
|
|
3285
3284
|
let e = this, { $el: { text: t }, config: n } = e;
|
|
3286
3285
|
(e.state.arcWidth ? e.getArcLabelConfig("image") : n.data_labels.image) && t.filter(function() {
|
|
3287
3286
|
let e = this.previousElementSibling;
|
|
3288
3287
|
return !e || e.tagName !== "image" || !e.classList.contains(X.textLabelImage);
|
|
3289
3288
|
}).each(function(t) {
|
|
3290
|
-
let n =
|
|
3289
|
+
let n = Cr.call(e, t);
|
|
3291
3290
|
if (!n) return;
|
|
3292
3291
|
let { url: r, width: a, height: o, pos: s } = n;
|
|
3293
|
-
r && i(this.parentNode)?.insert("image", `${this.getAttribute("class")?.replace(/(?:^(.)|\s)/g, ".$1") ?? "text"}`).style("opacity", "0").attr("href", (e) =>
|
|
3292
|
+
r && i(this.parentNode)?.insert("image", `${this.getAttribute("class")?.replace(/(?:^(.)|\s)/g, ".$1") ?? "text"}`).style("opacity", "0").attr("href", (e) => Je(r, { ID: "id" in e ? e.id : e.data.id })).attr("class", X.textLabelImage).style("pointer-events", "none").attr("width", a).attr("height", o).attr("transform", s ? `translate(${s.x ?? 0} ${s.y ?? 0})` : null);
|
|
3294
3293
|
});
|
|
3295
3294
|
}
|
|
3296
|
-
function
|
|
3295
|
+
function Cr(e) {
|
|
3297
3296
|
let t = this, { config: n, state: r } = t, i = r.arcWidth ? t.getArcLabelConfig("image") : n.data_labels.image;
|
|
3298
3297
|
if (j(i)) return i.call(t.api, e.value, e.id, e.index) ?? {
|
|
3299
3298
|
url: "",
|
|
@@ -3315,7 +3314,7 @@ function wr(e) {
|
|
|
3315
3314
|
}
|
|
3316
3315
|
return null;
|
|
3317
3316
|
}
|
|
3318
|
-
function
|
|
3317
|
+
function wr(e, t, n) {
|
|
3319
3318
|
let r = this, { config: a, state: { arcWidth: o, hasTreemap: s } } = r, c = a.axis_rotated, l = i(e.previousElementSibling), u = (e) => {
|
|
3320
3319
|
let t = e.style.opacity !== "0" && e.style.fillOpacity !== "0";
|
|
3321
3320
|
return (o ? e.textContent : t) && this.previousElementSibling?.tagName !== "image";
|
|
@@ -3325,15 +3324,15 @@ function Tr(e, t, n) {
|
|
|
3325
3324
|
c ? t.x += a : (s && (d = -a, f = -(o * 2 + i.height)), r.hasType("pie") || r.hasType("polar") || (t.y += o)), r.$T(l).style("opacity", u(e) ? null : "0").attr("x", d).attr("y", f);
|
|
3326
3325
|
}
|
|
3327
3326
|
}
|
|
3328
|
-
function
|
|
3329
|
-
return
|
|
3327
|
+
function Tr(e) {
|
|
3328
|
+
return $e(e, (e) => e, (e) => Vt(e, !0));
|
|
3330
3329
|
}
|
|
3331
3330
|
//#endregion
|
|
3332
3331
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/internals/text.js
|
|
3333
|
-
var
|
|
3332
|
+
var Er = {
|
|
3334
3333
|
opacityForText(e) {
|
|
3335
3334
|
let t = this;
|
|
3336
|
-
return t.isBarType(e) && !
|
|
3335
|
+
return t.isBarType(e) && !xr.call(t, Math.abs(t.getRatio("bar", e)), "bar") ? "0" : t.hasDataLabel() ? null : "0";
|
|
3337
3336
|
},
|
|
3338
3337
|
initText() {
|
|
3339
3338
|
let { $el: e } = this;
|
|
@@ -3357,8 +3356,8 @@ var Dr = {
|
|
|
3357
3356
|
let n = e.getCandlestickData(t);
|
|
3358
3357
|
n && (o = n.close);
|
|
3359
3358
|
}
|
|
3360
|
-
o = e.isTreemapType(t) ? e.treemapDataLabelFormat(t)(a) : e.dataLabelFormat(t.id)(o, t.id, t.index, r), N(o) ? this.textContent = o :
|
|
3361
|
-
}),
|
|
3359
|
+
o = e.isTreemapType(t) ? e.treemapDataLabelFormat(t)(a) : e.dataLabelFormat(t.id)(o, t.id, t.index, r), N(o) ? this.textContent = o : Rt(a, o, void 0, !0);
|
|
3360
|
+
}), Sr.call(e);
|
|
3362
3361
|
},
|
|
3363
3362
|
updateTextColor(e) {
|
|
3364
3363
|
let t = this, { config: n } = t, r = n.data_labels_colors, i = t.isArcType(e) && !t.isRadarType(e) || t.isFunnelType(e) || t.isTreemapType(e) ? null : t.color(e), a;
|
|
@@ -3386,11 +3385,11 @@ var Dr = {
|
|
|
3386
3385
|
return i || null;
|
|
3387
3386
|
},
|
|
3388
3387
|
redrawText(e, t, n, r) {
|
|
3389
|
-
let i = this, { $T: a, axis: o, config: s, state: { hasTreemap: c } } = i, l =
|
|
3388
|
+
let i = this, { $T: a, axis: o, config: s, state: { hasTreemap: c } } = i, l = Ke(!0), u = s.axis_rotated, d = s.data_labels.rotate, f = _r(d), p = d ? `rotate(${d})` : "", m = i.$el.text.style("fill", i.getStylePropValue(i.updateTextColor)).attr("filter", (e) => i.updateTextBGColor.bind(i)(e, s.data_labels_backgroundColors)).style("fill-opacity", n ? 0 : i.opacityForText.bind(i)), h = /* @__PURE__ */ new Map(), g = [];
|
|
3390
3389
|
return m.each(function(e) {
|
|
3391
3390
|
let t = this;
|
|
3392
3391
|
h.set(t, { rect: $(t) }), s.data_labels.centered && (i.isBarType(e) || i.isTreemapType(e)) && g.push(t);
|
|
3393
|
-
}), g.length > 0 &&
|
|
3392
|
+
}), g.length > 0 && Tr(g).forEach((e, t) => {
|
|
3394
3393
|
let n = h.get(t);
|
|
3395
3394
|
n && (n.bbox = e);
|
|
3396
3395
|
}), m.each(function(n, m) {
|
|
@@ -3398,7 +3397,7 @@ var Dr = {
|
|
|
3398
3397
|
x: e.call(this, n, m, g),
|
|
3399
3398
|
y: t.call(this, n, m, g)
|
|
3400
3399
|
};
|
|
3401
|
-
d && (y =
|
|
3400
|
+
d && (y = vr.bind(i)(n, y, f, u, v), _.attr("text-anchor", f)), wr.call(i, this, y, g?.rect), this.childElementCount || d ? _.attr("transform", `translate(${y.x} ${y.y}) ${p}`) : _.attr("x", y.x).attr("y", y.y), s.data_labels.border && br.call(i, _.node(), y, `${X.textBorderRect}-${m}`);
|
|
3402
3401
|
}), !0;
|
|
3403
3402
|
},
|
|
3404
3403
|
getTextRect(e, t) {
|
|
@@ -3421,7 +3420,7 @@ var Dr = {
|
|
|
3421
3420
|
getCenteredTextPos(e, t, n, r, i) {
|
|
3422
3421
|
let a = this, { config: o } = a, s = o.axis_rotated, c = a.isBarType(e), l = a.isTreemapType(e);
|
|
3423
3422
|
if (o.data_labels.centered && (c || l)) {
|
|
3424
|
-
let o = i?.bbox ||
|
|
3423
|
+
let o = i?.bbox || Vt(n);
|
|
3425
3424
|
if (c) {
|
|
3426
3425
|
let n = a.getRangedData(e, null, "bar") >= 0;
|
|
3427
3426
|
if (s) {
|
|
@@ -3441,19 +3440,19 @@ var Dr = {
|
|
|
3441
3440
|
let i = this, { config: a } = i, o = a.axis_rotated, s = i.isFunnelType(t), c = i.isTreemapType(t), l = e ? e[0][0] : 0;
|
|
3442
3441
|
if (i.isCandlestickType(t)) o ? l = i.getCandlestickData(t)?._isUp ? e[2][2] + 4 : e[2][1] - 4 : l += (e[1][0] - l) / 2;
|
|
3443
3442
|
else if (s) if (e) l = e[2]?.[0] ?? l;
|
|
3444
|
-
else return
|
|
3443
|
+
else return Kt(n, "x");
|
|
3445
3444
|
else if (c) l += a.data_labels.centered ? 0 : 5;
|
|
3446
3445
|
else if (o) {
|
|
3447
3446
|
let n = a[`axis_${i.axis.getId(t.id)}_inverted`], r = i.isBarType(t) ? 4 : 6, o = t.value;
|
|
3448
3447
|
l = e[2][1], l += r * ((n ? o > 0 : o < 0) ? -1 : 1);
|
|
3449
3448
|
} else l = i.hasType("bar") ? (e[2][0] + e[0][0]) / 2 : l;
|
|
3450
|
-
return (o || c || s) && (l += i.getCenteredTextPos(t, e, n, "x", r)), l +
|
|
3449
|
+
return (o || c || s) && (l += i.getCenteredTextPos(t, e, n, "x", r)), l + yr.call(this, t, "x");
|
|
3451
3450
|
},
|
|
3452
3451
|
getYForText(e, t, n, r) {
|
|
3453
3452
|
let i = this, { axis: a, config: o, state: s } = i, c = o.axis_rotated, l = o[`axis_${a?.getId(t.id)}_inverted`], u = i.isBarType(t), d = i.isFunnelType(t), f = i.isTreemapType(t), p = o.point_r, m = r?.rect || $(n), { value: h } = t, g = 3, _;
|
|
3454
3453
|
if (i.isCandlestickType(t)) h = i.getCandlestickData(t), c ? (_ = e[0][0], _ += (e[1][0] - _) / 2 + g) : (_ = h && h._isUp ? e[2][2] - g : e[2][1] + g * 4, l && (_ += 15 * (h._isUp ? 1 : -1)));
|
|
3455
3454
|
else if (d) if (e) _ = (e[2]?.[1] ?? e[0][1]) + m.height / 2 - 3;
|
|
3456
|
-
else return
|
|
3455
|
+
else return Kt(n, "y");
|
|
3457
3456
|
else if (f) _ = e[0][1] + (o.data_labels.centered ? 0 : m.height + 5);
|
|
3458
3457
|
else if (c) _ = (e[0][0] + e[2][0] + m.height * .6) / 2;
|
|
3459
3458
|
else if (_ = e[2][1], N(p) && p > 5 && (i.isLineType(t) || i.isScatterType(t)) && (g += o.point_r / 2.3), h < 0 || h === 0 && !s.hasPositiveValue && s.hasNegativeValue) _ += l ? u ? -3 : -5 : m.height + (u ? -g : g);
|
|
@@ -3461,28 +3460,28 @@ var Dr = {
|
|
|
3461
3460
|
let e = -g * 2;
|
|
3462
3461
|
u ? e = -g : i.isBubbleType(t) && (e = g), l && (e = u ? 10 : 15), _ += e;
|
|
3463
3462
|
}
|
|
3464
|
-
return (!c || f) && (_ += i.getCenteredTextPos(t, e, n, "y", r)), _ +
|
|
3463
|
+
return (!c || f) && (_ += i.getCenteredTextPos(t, e, n, "y", r)), _ + yr.call(this, t, "y");
|
|
3465
3464
|
},
|
|
3466
3465
|
markOverlapped(e, t, n) {
|
|
3467
|
-
let r = t.$el.arcs.selectAll(n), a = r.filter((t) => t.data.id !== e), o = r.filter((t) => t.data.id === e), s =
|
|
3466
|
+
let r = t.$el.arcs.selectAll(n), a = r.filter((t) => t.data.id !== e), o = r.filter((t) => t.data.id === e), s = Gt(o.node()), c = (e, t) => Math.sqrt(e * e + t * t);
|
|
3468
3467
|
o.node() && a.each(function() {
|
|
3469
|
-
let e =
|
|
3468
|
+
let e = Gt(this), t = i(this), n = c(s.e, s.f) > c(e.e, e.f) ? o : t, r = Math.ceil(Math.abs(s.e - e.e)) < Math.ceil(n.node().getComputedTextLength()), a = Math.ceil(Math.abs(s.f - e.f)) < parseInt(o.style("font-size"), 10);
|
|
3470
3469
|
t.classed(X.TextOverlapping, r && a);
|
|
3471
3470
|
});
|
|
3472
3471
|
},
|
|
3473
3472
|
undoMarkOverlapped(e, t) {
|
|
3474
3473
|
e.$el.arcs.selectAll(t).each(function() {
|
|
3475
|
-
|
|
3474
|
+
rt([this, this.previousSibling]).classed(X.TextOverlapping, !1);
|
|
3476
3475
|
});
|
|
3477
3476
|
}
|
|
3478
3477
|
};
|
|
3479
3478
|
//#endregion
|
|
3480
3479
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/internals/title.js
|
|
3481
|
-
function
|
|
3480
|
+
function Dr(e = "left", t) {
|
|
3482
3481
|
let n = N(t);
|
|
3483
3482
|
return e.includes("center") ? n ? t / 2 : "middle" : e.includes("right") ? n ? t : "end" : n ? 0 : "start";
|
|
3484
3483
|
}
|
|
3485
|
-
function
|
|
3484
|
+
function Or(e) {
|
|
3486
3485
|
let { config: t, $el: n } = e, r = e.canvasTheme?.style?.title?.font || e.canvasTheme?.style?.label?.font || "14px sans-serif", i = n.chart?.node?.(), a = i?.ownerDocument;
|
|
3487
3486
|
if (i && a && t.title_text) {
|
|
3488
3487
|
let e = a.createElementNS("http://www.w3.org/2000/svg", "svg"), n = a.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
@@ -3492,42 +3491,42 @@ function kr(e) {
|
|
|
3492
3491
|
}
|
|
3493
3492
|
return t.title_text ? parseFloat(r) || 14 : 0;
|
|
3494
3493
|
}
|
|
3495
|
-
var
|
|
3494
|
+
var kr = {
|
|
3496
3495
|
initTitle() {
|
|
3497
3496
|
let { config: e, $el: t } = this;
|
|
3498
|
-
e.title_text && (t.title = t.svg.append("g"),
|
|
3497
|
+
e.title_text && (t.title = t.svg.append("g"), Rt(t.title.append("text").style("text-anchor", Dr(e.title_position)).attr("class", X.title), e.title_text, [.3, 1.5]));
|
|
3499
3498
|
},
|
|
3500
3499
|
redrawTitle() {
|
|
3501
3500
|
let e = this, { config: t, state: { current: n }, $el: { title: r } } = e;
|
|
3502
3501
|
if (r) {
|
|
3503
|
-
let i =
|
|
3502
|
+
let i = Dr(t.title_position, n.width), a = (t.title_padding.top || 0) + e.getTextRect(e.$el.title, X.title).height;
|
|
3504
3503
|
r.attr("transform", `translate(${i}, ${a})`);
|
|
3505
3504
|
}
|
|
3506
3505
|
},
|
|
3507
3506
|
getCanvasTitleHeight() {
|
|
3508
|
-
return
|
|
3507
|
+
return Or(this);
|
|
3509
3508
|
},
|
|
3510
3509
|
getTitlePadding() {
|
|
3511
3510
|
let e = this, { $el: { title: t }, config: n, state: r } = e, i = n.title_padding.top || 0, a = n.title_padding.bottom || 0;
|
|
3512
3511
|
if (r.isCanvasMode && n.title_text) return i + e.getCanvasTitleHeight() + a;
|
|
3513
3512
|
if (!t?.node()) return i + a;
|
|
3514
|
-
let o = t.node(), s =
|
|
3513
|
+
let o = t.node(), s = Kt(o, "y");
|
|
3515
3514
|
if (s) {
|
|
3516
|
-
let e =
|
|
3515
|
+
let e = Vt(o);
|
|
3517
3516
|
return s + e.y + e.height + a;
|
|
3518
3517
|
}
|
|
3519
3518
|
return i + e.getTextRect(t, X.title).height + a;
|
|
3520
3519
|
}
|
|
3521
|
-
},
|
|
3520
|
+
}, Ar = /(\r?\n|\t)/g, jr = /{{(.*)}}/, Mr = {
|
|
3522
3521
|
initTooltip() {
|
|
3523
3522
|
let e = this, { config: t, $el: n } = e;
|
|
3524
|
-
n.tooltip = i(t.tooltip_contents.bindto), n.tooltip.empty() && (n.tooltip = n.chart.append("div").attr("class",
|
|
3523
|
+
n.tooltip = i(t.tooltip_contents.bindto), n.tooltip.empty() && (n.tooltip = n.chart.append("div").attr("class", yt.tooltipContainer).style("position", "absolute").style("pointer-events", "none").style("display", "none")), e.bindTooltipResizePos();
|
|
3525
3524
|
},
|
|
3526
3525
|
initShowTooltip() {
|
|
3527
3526
|
let e = this, { config: t, $el: n, state: { hasAxis: r, hasRadar: i } } = e;
|
|
3528
3527
|
if (t.tooltip_init_show) {
|
|
3529
3528
|
let a = !(r || i);
|
|
3530
|
-
e.axis?.isTimeSeries() && M(t.tooltip_init_x) && (t.tooltip_init_x =
|
|
3529
|
+
e.axis?.isTimeSeries() && M(t.tooltip_init_x) && (t.tooltip_init_x = Ye.call(e, t.tooltip_init_x)), e.api.tooltip.show({ data: { [a ? "index" : "x"]: t.tooltip_init_x } });
|
|
3531
3530
|
let o = t.tooltip_init_position;
|
|
3532
3531
|
if (!t.tooltip_contents.bindto && !L(o)) {
|
|
3533
3532
|
let { top: e = 0, left: t = 50 } = o;
|
|
@@ -3537,7 +3536,7 @@ var Ar = {
|
|
|
3537
3536
|
},
|
|
3538
3537
|
getTooltipHTML(...e) {
|
|
3539
3538
|
let t = this, { api: n, config: r } = t;
|
|
3540
|
-
return
|
|
3539
|
+
return je(j(r.tooltip_contents) ? r.tooltip_contents.bind(n)(...e) : t.getTooltipContent(...e));
|
|
3541
3540
|
},
|
|
3542
3541
|
getTooltipContent(e, t, n, r) {
|
|
3543
3542
|
let i = this, { api: a, config: o, state: s, $el: c } = i, l = o.tooltip_format_title, u = o.tooltip_format_name, d = o.tooltip_format_value, f = j(l) ? l.bind(a) : t, p = j(u) ? u.bind(a) : ((e) => e), m = j(d) ? d.bind(a) : null, h = (e, t, r, a) => {
|
|
@@ -3557,19 +3556,19 @@ var Ar = {
|
|
|
3557
3556
|
return t ? r - i : i - r;
|
|
3558
3557
|
});
|
|
3559
3558
|
} else j(g) && e.sort(g.bind(a));
|
|
3560
|
-
let S = i.getTooltipContentTemplate(b), C = e.length, w, T, E, D,
|
|
3561
|
-
for (
|
|
3562
|
-
T = e[
|
|
3559
|
+
let S = i.getTooltipContentTemplate(b), C = e.length, w, T, E, D, O;
|
|
3560
|
+
for (O = 0; O < C; O++) {
|
|
3561
|
+
T = e[O];
|
|
3563
3562
|
let t = T && _(T);
|
|
3564
3563
|
if (!(!T || !(t || t === 0))) {
|
|
3565
3564
|
if (P(w)) {
|
|
3566
3565
|
let e = (s.hasAxis || s.hasRadar) && f(T.x);
|
|
3567
|
-
w =
|
|
3568
|
-
CLASS_TOOLTIP:
|
|
3566
|
+
w = Je(S[0], {
|
|
3567
|
+
CLASS_TOOLTIP: yt.tooltip,
|
|
3569
3568
|
TITLE: A(e) ? b ? e : `<tr><th colspan="2">${e}</th></tr>` : ""
|
|
3570
3569
|
});
|
|
3571
3570
|
}
|
|
3572
|
-
if (!T.ratio && c.arcs && (E = ["arc", i.$el.arcs.select(`path.${
|
|
3571
|
+
if (!T.ratio && c.arcs && (E = ["arc", i.$el.arcs.select(`path.${it.arc}-${T.id}`).data()[0]], T.ratio = i.getRatio(...E)), E = [
|
|
3573
3572
|
T.ratio,
|
|
3574
3573
|
T.id,
|
|
3575
3574
|
T.index
|
|
@@ -3592,7 +3591,7 @@ var Ar = {
|
|
|
3592
3591
|
if (D !== void 0) {
|
|
3593
3592
|
if (T.name === null) continue;
|
|
3594
3593
|
let e = p(T.name ?? T.id, ...E), t = v(T), n = {
|
|
3595
|
-
CLASS_TOOLTIP_NAME:
|
|
3594
|
+
CLASS_TOOLTIP_NAME: yt.tooltipName + i.getTargetSelectorSuffix(T.id),
|
|
3596
3595
|
COLOR: b || !i.patterns ? t : `<svg><rect style="fill:${t}" width="10" height="10"></rect></svg>`,
|
|
3597
3596
|
NAME: e,
|
|
3598
3597
|
VALUE: D
|
|
@@ -3603,7 +3602,7 @@ var Ar = {
|
|
|
3603
3602
|
n[t] = y.text[t][e];
|
|
3604
3603
|
});
|
|
3605
3604
|
}
|
|
3606
|
-
w +=
|
|
3605
|
+
w += Je(S[1], n);
|
|
3607
3606
|
}
|
|
3608
3607
|
}
|
|
3609
3608
|
}
|
|
@@ -3616,12 +3615,12 @@ var Ar = {
|
|
|
3616
3615
|
<td class="name">${this.patterns ? "{=COLOR}" : "<span style=\"background-color:{=COLOR}\"></span>"}{=NAME}</td>
|
|
3617
3616
|
<td class="value">{=VALUE}</td>
|
|
3618
3617
|
</tr>}}
|
|
3619
|
-
</tbody></table>`).replace(
|
|
3618
|
+
</tbody></table>`).replace(Ar, "").split(jr);
|
|
3620
3619
|
},
|
|
3621
3620
|
setTooltipPosition(e, t) {
|
|
3622
3621
|
let n = this, { config: r, scale: i, state: a, $el: { eventRect: o, tooltip: s, svg: c } } = n, { bindto: l } = r.tooltip_contents, u = r.axis_rotated, d = s?.datum();
|
|
3623
3622
|
if (!l && d) {
|
|
3624
|
-
let l = e ?? d.data, [f, p] =
|
|
3623
|
+
let l = e ?? d.data, [f, p] = Bt(a.event, t ?? o?.node()), m = {
|
|
3625
3624
|
x: f,
|
|
3626
3625
|
y: p
|
|
3627
3626
|
};
|
|
@@ -3632,7 +3631,7 @@ var Ar = {
|
|
|
3632
3631
|
};
|
|
3633
3632
|
m.xAxis = i.x(d.x) + (r.tooltip_position ? u ? a.margin.top : a.margin.left : 0), m.yAxis = l.length === 1 ? e(l[0].value, l[0].id) : e;
|
|
3634
3633
|
}
|
|
3635
|
-
let { width: h = 0, height: g = 0 } = d, _ = r.tooltip_position?.bind(n.api)(l, h, g, o?.node(), m) ?? (c &&
|
|
3634
|
+
let { width: h = 0, height: g = 0 } = d, _ = r.tooltip_position?.bind(n.api)(l, h, g, o?.node(), m) ?? (c && qt(c) ? n.getTooltipPositionViewBox.bind(n)(h, g, m) : n.getTooltipPosition.bind(n)(h, g, m));
|
|
3636
3635
|
["top", "left"].forEach((e) => {
|
|
3637
3636
|
let t = _[e];
|
|
3638
3637
|
s.style(e, `${t}px`), e === "left" && !d.xPosInPercent && (d.xPosInPercent = t / a.current.width * 100);
|
|
@@ -3642,7 +3641,7 @@ var Ar = {
|
|
|
3642
3641
|
getTooltipPositionViewBox(e, t, n) {
|
|
3643
3642
|
let r = this, { $el: { eventRect: i, svg: a }, config: o, state: s } = r, c = o.axis_rotated, l = r.hasArcType() || s.hasFunnel || s.hasTreemap, u = (l ? a : i)?.node() ?? s.event.target, { x: d, y: f } = n;
|
|
3644
3643
|
s.hasAxis && (d = c ? d : n.xAxis, f = c ? n.xAxis : f);
|
|
3645
|
-
let p =
|
|
3644
|
+
let p = Wt(u, d, f, !1), m = $(u), h = Wt(u, 20, 0, !1).x, g = p.y, _ = p.x + e / 2 + h;
|
|
3646
3645
|
return l && (s.hasFunnel || s.hasTreemap || s.hasRadar ? (_ -= e / 2 + h, g += t) : (g += m.height / 2, _ += m.width / 2 - (e - h))), _ + e > m.width && (_ = m.width - e - h), g + t > m.height && (g -= t * 2), {
|
|
3647
3646
|
top: g,
|
|
3648
3647
|
left: _
|
|
@@ -3749,11 +3748,11 @@ var Ar = {
|
|
|
3749
3748
|
}
|
|
3750
3749
|
}
|
|
3751
3750
|
}
|
|
3752
|
-
},
|
|
3751
|
+
}, Nr = {
|
|
3753
3752
|
getTranslate(e, t = 0) {
|
|
3754
3753
|
let n = this, { config: r, state: i } = n, a = r.axis_rotated, o = 0, s, c;
|
|
3755
|
-
if (t && /^(x|y2?)$/.test(e) && (o = n.getAxisSize(e) * t), e === "main") s =
|
|
3756
|
-
else if (e === "context") s =
|
|
3754
|
+
if (t && /^(x|y2?)$/.test(e) && (o = n.getAxisSize(e) * t), e === "main") s = oe(i.margin.left), c = oe(i.margin.top);
|
|
3755
|
+
else if (e === "context") s = oe(i.margin2.left), c = oe(i.margin2.top);
|
|
3757
3756
|
else if (e === "legend") s = i.margin3.left, c = i.margin3.top;
|
|
3758
3757
|
else if (e === "x") s = a ? -o : 0, c = a ? 0 : i.height + o;
|
|
3759
3758
|
else if (e === "y") s = a ? 0 : -o, c = a ? i.height + o : 0;
|
|
@@ -3769,13 +3768,13 @@ var Ar = {
|
|
|
3769
3768
|
},
|
|
3770
3769
|
transformMain(e, t) {
|
|
3771
3770
|
let n = this, { $el: { main: r }, $T: i } = n, a = t?.axisX ? t.axisX : i(r.select(`.${W.axisX}`), e), o = t?.axisY ? t.axisY : i(r.select(`.${W.axisY}`), e), s = t?.axisY2 ? t.axisY2 : i(r.select(`.${W.axisY2}`), e);
|
|
3772
|
-
i(r, e).attr("transform", n.getTranslate("main")), a.attr("transform", n.getTranslate("x")), o.attr("transform", n.getTranslate("y")), s.attr("transform", n.getTranslate("y2")), r.select(`.${
|
|
3771
|
+
i(r, e).attr("transform", n.getTranslate("main")), a.attr("transform", n.getTranslate("x")), o.attr("transform", n.getTranslate("y")), s.attr("transform", n.getTranslate("y2")), r.select(`.${it.chartArcs}`).attr("transform", n.getTranslate("arc"));
|
|
3773
3772
|
},
|
|
3774
3773
|
transformAll(e, t) {
|
|
3775
3774
|
let n = this, { config: r, state: { hasAxis: i, hasFunnel: a, hasTreemap: o, isCanvasMode: s }, $el: c } = n;
|
|
3776
3775
|
s || (!a && !o && n.transformMain(e, t), i && r.subchart_show && n.transformContext(e, t), c.legend && n.transformLegend(e));
|
|
3777
3776
|
}
|
|
3778
|
-
},
|
|
3777
|
+
}, Pr = /* @__PURE__ */ new Set([
|
|
3779
3778
|
"basis",
|
|
3780
3779
|
"basis-closed",
|
|
3781
3780
|
"basis-open",
|
|
@@ -3791,9 +3790,9 @@ var Ar = {
|
|
|
3791
3790
|
"monotone-x",
|
|
3792
3791
|
"monotone-y",
|
|
3793
3792
|
"natural"
|
|
3794
|
-
]),
|
|
3793
|
+
]), Fr = {
|
|
3795
3794
|
isValidChartType(e) {
|
|
3796
|
-
return !!(e && Object.values(
|
|
3795
|
+
return !!(e && Object.values(C).indexOf(e) > -1);
|
|
3797
3796
|
},
|
|
3798
3797
|
setTargetType(e, t) {
|
|
3799
3798
|
let n = this, { config: r, state: { withoutFadeIn: i } } = n;
|
|
@@ -3803,8 +3802,8 @@ var Ar = {
|
|
|
3803
3802
|
},
|
|
3804
3803
|
updateTypesElements() {
|
|
3805
3804
|
let e = this, { state: { current: t } } = e;
|
|
3806
|
-
Object.keys(
|
|
3807
|
-
let r =
|
|
3805
|
+
Object.keys(C).forEach((n) => {
|
|
3806
|
+
let r = C[n], i = e.hasType(r, null, !0), a = t.types.indexOf(r);
|
|
3808
3807
|
a === -1 && i ? t.types.push(r) : a > -1 && !i && t.types.splice(a, 1);
|
|
3809
3808
|
}), e.setChartElements();
|
|
3810
3809
|
},
|
|
@@ -3816,7 +3815,7 @@ var Ar = {
|
|
|
3816
3815
|
}) : Object.keys(o).length ? Object.values(o).some((t) => t === e) : i.data_type === e;
|
|
3817
3816
|
},
|
|
3818
3817
|
hasTypeOf(e, t, n = []) {
|
|
3819
|
-
return e in
|
|
3818
|
+
return e in T && !T[e].filter((e) => n.indexOf(e) === -1).every((e) => !this.hasType(e, t));
|
|
3820
3819
|
},
|
|
3821
3820
|
isTypeOf(e, t) {
|
|
3822
3821
|
let n = M(e) ? e : e.id, r = this.config && (this.config.data_types?.[n] || this.config.data_type);
|
|
@@ -3834,19 +3833,19 @@ var Ar = {
|
|
|
3834
3833
|
},
|
|
3835
3834
|
isLineType(e) {
|
|
3836
3835
|
let t = M(e) ? e : e.id;
|
|
3837
|
-
return !this.config.data_types[t] || this.isTypeOf(t,
|
|
3836
|
+
return !this.config.data_types[t] || this.isTypeOf(t, T.Line);
|
|
3838
3837
|
},
|
|
3839
3838
|
isStepType(e) {
|
|
3840
|
-
return this.isTypeOf(e,
|
|
3839
|
+
return this.isTypeOf(e, T.Step);
|
|
3841
3840
|
},
|
|
3842
3841
|
isSplineType(e) {
|
|
3843
|
-
return this.isTypeOf(e,
|
|
3842
|
+
return this.isTypeOf(e, T.Spline);
|
|
3844
3843
|
},
|
|
3845
3844
|
isAreaType(e) {
|
|
3846
|
-
return this.isTypeOf(e,
|
|
3845
|
+
return this.isTypeOf(e, T.Area);
|
|
3847
3846
|
},
|
|
3848
3847
|
isAreaRangeType(e) {
|
|
3849
|
-
return this.isTypeOf(e,
|
|
3848
|
+
return this.isTypeOf(e, T.AreaRange);
|
|
3850
3849
|
},
|
|
3851
3850
|
isBarType(e) {
|
|
3852
3851
|
return this.isTypeOf(e, "bar");
|
|
@@ -3901,21 +3900,52 @@ var Ar = {
|
|
|
3901
3900
|
return this.isBarType(e) || this.isLineType(e) || this.isBubbleType(e) ? e.values : [];
|
|
3902
3901
|
},
|
|
3903
3902
|
isInterpolationType(e) {
|
|
3904
|
-
return
|
|
3903
|
+
return Pr.has(e);
|
|
3905
3904
|
}
|
|
3906
3905
|
};
|
|
3907
3906
|
//#endregion
|
|
3907
|
+
//#region node_modules/d3-shape/src/curve/linear.js
|
|
3908
|
+
function Ir(e) {
|
|
3909
|
+
this._context = e;
|
|
3910
|
+
}
|
|
3911
|
+
Ir.prototype = {
|
|
3912
|
+
areaStart: function() {
|
|
3913
|
+
this._line = 0;
|
|
3914
|
+
},
|
|
3915
|
+
areaEnd: function() {
|
|
3916
|
+
this._line = NaN;
|
|
3917
|
+
},
|
|
3918
|
+
lineStart: function() {
|
|
3919
|
+
this._point = 0;
|
|
3920
|
+
},
|
|
3921
|
+
lineEnd: function() {
|
|
3922
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
3923
|
+
},
|
|
3924
|
+
point: function(e, t) {
|
|
3925
|
+
switch (e = +e, t = +t, this._point) {
|
|
3926
|
+
case 0:
|
|
3927
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
3928
|
+
break;
|
|
3929
|
+
case 1: this._point = 2;
|
|
3930
|
+
default: this._context.lineTo(e, t);
|
|
3931
|
+
}
|
|
3932
|
+
}
|
|
3933
|
+
};
|
|
3934
|
+
function Lr(e) {
|
|
3935
|
+
return new Ir(e);
|
|
3936
|
+
}
|
|
3937
|
+
//#endregion
|
|
3908
3938
|
//#region node_modules/d3-shape/src/noop.js
|
|
3909
|
-
function
|
|
3939
|
+
function Rr() {}
|
|
3910
3940
|
//#endregion
|
|
3911
3941
|
//#region node_modules/d3-shape/src/curve/basis.js
|
|
3912
|
-
function
|
|
3942
|
+
function zr(e, t, n) {
|
|
3913
3943
|
e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
|
|
3914
3944
|
}
|
|
3915
|
-
function
|
|
3945
|
+
function Br(e) {
|
|
3916
3946
|
this._context = e;
|
|
3917
3947
|
}
|
|
3918
|
-
|
|
3948
|
+
Br.prototype = {
|
|
3919
3949
|
areaStart: function() {
|
|
3920
3950
|
this._line = 0;
|
|
3921
3951
|
},
|
|
@@ -3927,7 +3957,7 @@ zr.prototype = {
|
|
|
3927
3957
|
},
|
|
3928
3958
|
lineEnd: function() {
|
|
3929
3959
|
switch (this._point) {
|
|
3930
|
-
case 3:
|
|
3960
|
+
case 3: zr(this, this._x1, this._y1);
|
|
3931
3961
|
case 2: this._context.lineTo(this._x1, this._y1);
|
|
3932
3962
|
}
|
|
3933
3963
|
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
@@ -3941,22 +3971,22 @@ zr.prototype = {
|
|
|
3941
3971
|
this._point = 2;
|
|
3942
3972
|
break;
|
|
3943
3973
|
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
|
|
3944
|
-
default:
|
|
3974
|
+
default: zr(this, e, t);
|
|
3945
3975
|
}
|
|
3946
3976
|
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
3947
3977
|
}
|
|
3948
3978
|
};
|
|
3949
|
-
function
|
|
3950
|
-
return new
|
|
3979
|
+
function Vr(e) {
|
|
3980
|
+
return new Br(e);
|
|
3951
3981
|
}
|
|
3952
3982
|
//#endregion
|
|
3953
3983
|
//#region node_modules/d3-shape/src/curve/basisClosed.js
|
|
3954
|
-
function
|
|
3984
|
+
function Hr(e) {
|
|
3955
3985
|
this._context = e;
|
|
3956
3986
|
}
|
|
3957
|
-
|
|
3958
|
-
areaStart:
|
|
3959
|
-
areaEnd:
|
|
3987
|
+
Hr.prototype = {
|
|
3988
|
+
areaStart: Rr,
|
|
3989
|
+
areaEnd: Rr,
|
|
3960
3990
|
lineStart: function() {
|
|
3961
3991
|
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
|
|
3962
3992
|
},
|
|
@@ -3982,20 +4012,20 @@ Vr.prototype = {
|
|
|
3982
4012
|
case 2:
|
|
3983
4013
|
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
|
|
3984
4014
|
break;
|
|
3985
|
-
default:
|
|
4015
|
+
default: zr(this, e, t);
|
|
3986
4016
|
}
|
|
3987
4017
|
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
3988
4018
|
}
|
|
3989
4019
|
};
|
|
3990
|
-
function
|
|
3991
|
-
return new
|
|
4020
|
+
function Ur(e) {
|
|
4021
|
+
return new Hr(e);
|
|
3992
4022
|
}
|
|
3993
4023
|
//#endregion
|
|
3994
4024
|
//#region node_modules/d3-shape/src/curve/basisOpen.js
|
|
3995
|
-
function
|
|
4025
|
+
function Wr(e) {
|
|
3996
4026
|
this._context = e;
|
|
3997
4027
|
}
|
|
3998
|
-
|
|
4028
|
+
Wr.prototype = {
|
|
3999
4029
|
areaStart: function() {
|
|
4000
4030
|
this._line = 0;
|
|
4001
4031
|
},
|
|
@@ -4022,20 +4052,20 @@ Ur.prototype = {
|
|
|
4022
4052
|
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
|
|
4023
4053
|
break;
|
|
4024
4054
|
case 3: this._point = 4;
|
|
4025
|
-
default:
|
|
4055
|
+
default: zr(this, e, t);
|
|
4026
4056
|
}
|
|
4027
4057
|
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
4028
4058
|
}
|
|
4029
4059
|
};
|
|
4030
|
-
function
|
|
4031
|
-
return new
|
|
4060
|
+
function Gr(e) {
|
|
4061
|
+
return new Wr(e);
|
|
4032
4062
|
}
|
|
4033
4063
|
//#endregion
|
|
4034
4064
|
//#region node_modules/d3-shape/src/curve/bundle.js
|
|
4035
|
-
function
|
|
4036
|
-
this._basis = new
|
|
4065
|
+
function Kr(e, t) {
|
|
4066
|
+
this._basis = new Br(e), this._beta = t;
|
|
4037
4067
|
}
|
|
4038
|
-
|
|
4068
|
+
Kr.prototype = {
|
|
4039
4069
|
lineStart: function() {
|
|
4040
4070
|
this._x = [], this._y = [], this._basis.lineStart();
|
|
4041
4071
|
},
|
|
@@ -4048,9 +4078,9 @@ Gr.prototype = {
|
|
|
4048
4078
|
this._x.push(+e), this._y.push(+t);
|
|
4049
4079
|
}
|
|
4050
4080
|
};
|
|
4051
|
-
var
|
|
4081
|
+
var qr = (function e(t) {
|
|
4052
4082
|
function n(e) {
|
|
4053
|
-
return t === 1 ? new
|
|
4083
|
+
return t === 1 ? new Br(e) : new Kr(e, t);
|
|
4054
4084
|
}
|
|
4055
4085
|
return n.beta = function(t) {
|
|
4056
4086
|
return e(+t);
|
|
@@ -4058,13 +4088,13 @@ var Kr = (function e(t) {
|
|
|
4058
4088
|
})(.85);
|
|
4059
4089
|
//#endregion
|
|
4060
4090
|
//#region node_modules/d3-shape/src/curve/cardinal.js
|
|
4061
|
-
function
|
|
4091
|
+
function Jr(e, t, n) {
|
|
4062
4092
|
e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
|
|
4063
4093
|
}
|
|
4064
|
-
function
|
|
4094
|
+
function Yr(e, t) {
|
|
4065
4095
|
this._context = e, this._k = (1 - t) / 6;
|
|
4066
4096
|
}
|
|
4067
|
-
|
|
4097
|
+
Yr.prototype = {
|
|
4068
4098
|
areaStart: function() {
|
|
4069
4099
|
this._line = 0;
|
|
4070
4100
|
},
|
|
@@ -4079,7 +4109,7 @@ Jr.prototype = {
|
|
|
4079
4109
|
case 2:
|
|
4080
4110
|
this._context.lineTo(this._x2, this._y2);
|
|
4081
4111
|
break;
|
|
4082
|
-
case 3:
|
|
4112
|
+
case 3: Jr(this, this._x1, this._y1);
|
|
4083
4113
|
}
|
|
4084
4114
|
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
4085
4115
|
},
|
|
@@ -4092,14 +4122,14 @@ Jr.prototype = {
|
|
|
4092
4122
|
this._point = 2, this._x1 = e, this._y1 = t;
|
|
4093
4123
|
break;
|
|
4094
4124
|
case 2: this._point = 3;
|
|
4095
|
-
default:
|
|
4125
|
+
default: Jr(this, e, t);
|
|
4096
4126
|
}
|
|
4097
4127
|
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
4098
4128
|
}
|
|
4099
4129
|
};
|
|
4100
|
-
var
|
|
4130
|
+
var Xr = (function e(t) {
|
|
4101
4131
|
function n(e) {
|
|
4102
|
-
return new
|
|
4132
|
+
return new Yr(e, t);
|
|
4103
4133
|
}
|
|
4104
4134
|
return n.tension = function(t) {
|
|
4105
4135
|
return e(+t);
|
|
@@ -4107,12 +4137,12 @@ var Yr = (function e(t) {
|
|
|
4107
4137
|
})(0);
|
|
4108
4138
|
//#endregion
|
|
4109
4139
|
//#region node_modules/d3-shape/src/curve/cardinalClosed.js
|
|
4110
|
-
function
|
|
4140
|
+
function Zr(e, t) {
|
|
4111
4141
|
this._context = e, this._k = (1 - t) / 6;
|
|
4112
4142
|
}
|
|
4113
|
-
|
|
4114
|
-
areaStart:
|
|
4115
|
-
areaEnd:
|
|
4143
|
+
Zr.prototype = {
|
|
4144
|
+
areaStart: Rr,
|
|
4145
|
+
areaEnd: Rr,
|
|
4116
4146
|
lineStart: function() {
|
|
4117
4147
|
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
|
|
4118
4148
|
},
|
|
@@ -4138,14 +4168,14 @@ Xr.prototype = {
|
|
|
4138
4168
|
case 2:
|
|
4139
4169
|
this._point = 3, this._x5 = e, this._y5 = t;
|
|
4140
4170
|
break;
|
|
4141
|
-
default:
|
|
4171
|
+
default: Jr(this, e, t);
|
|
4142
4172
|
}
|
|
4143
4173
|
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
4144
4174
|
}
|
|
4145
4175
|
};
|
|
4146
|
-
var
|
|
4176
|
+
var Qr = (function e(t) {
|
|
4147
4177
|
function n(e) {
|
|
4148
|
-
return new
|
|
4178
|
+
return new Zr(e, t);
|
|
4149
4179
|
}
|
|
4150
4180
|
return n.tension = function(t) {
|
|
4151
4181
|
return e(+t);
|
|
@@ -4153,10 +4183,10 @@ var Zr = (function e(t) {
|
|
|
4153
4183
|
})(0);
|
|
4154
4184
|
//#endregion
|
|
4155
4185
|
//#region node_modules/d3-shape/src/curve/cardinalOpen.js
|
|
4156
|
-
function
|
|
4186
|
+
function $r(e, t) {
|
|
4157
4187
|
this._context = e, this._k = (1 - t) / 6;
|
|
4158
4188
|
}
|
|
4159
|
-
|
|
4189
|
+
$r.prototype = {
|
|
4160
4190
|
areaStart: function() {
|
|
4161
4191
|
this._line = 0;
|
|
4162
4192
|
},
|
|
@@ -4181,14 +4211,14 @@ Qr.prototype = {
|
|
|
4181
4211
|
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
4182
4212
|
break;
|
|
4183
4213
|
case 3: this._point = 4;
|
|
4184
|
-
default:
|
|
4214
|
+
default: Jr(this, e, t);
|
|
4185
4215
|
}
|
|
4186
4216
|
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
4187
4217
|
}
|
|
4188
4218
|
};
|
|
4189
|
-
var
|
|
4219
|
+
var ei = (function e(t) {
|
|
4190
4220
|
function n(e) {
|
|
4191
|
-
return new
|
|
4221
|
+
return new $r(e, t);
|
|
4192
4222
|
}
|
|
4193
4223
|
return n.tension = function(t) {
|
|
4194
4224
|
return e(+t);
|
|
@@ -4196,7 +4226,7 @@ var $r = (function e(t) {
|
|
|
4196
4226
|
})(0);
|
|
4197
4227
|
//#endregion
|
|
4198
4228
|
//#region node_modules/d3-shape/src/curve/catmullRom.js
|
|
4199
|
-
function
|
|
4229
|
+
function ti(e, t, n) {
|
|
4200
4230
|
var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
|
|
4201
4231
|
if (e._l01_a > 1e-12) {
|
|
4202
4232
|
var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
|
|
@@ -4208,10 +4238,10 @@ function ei(e, t, n) {
|
|
|
4208
4238
|
}
|
|
4209
4239
|
e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
|
|
4210
4240
|
}
|
|
4211
|
-
function
|
|
4241
|
+
function ni(e, t) {
|
|
4212
4242
|
this._context = e, this._alpha = t;
|
|
4213
4243
|
}
|
|
4214
|
-
|
|
4244
|
+
ni.prototype = {
|
|
4215
4245
|
areaStart: function() {
|
|
4216
4246
|
this._line = 0;
|
|
4217
4247
|
},
|
|
@@ -4243,14 +4273,14 @@ ti.prototype = {
|
|
|
4243
4273
|
this._point = 2;
|
|
4244
4274
|
break;
|
|
4245
4275
|
case 2: this._point = 3;
|
|
4246
|
-
default:
|
|
4276
|
+
default: ti(this, e, t);
|
|
4247
4277
|
}
|
|
4248
4278
|
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 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
4249
4279
|
}
|
|
4250
4280
|
};
|
|
4251
|
-
var
|
|
4281
|
+
var ri = (function e(t) {
|
|
4252
4282
|
function n(e) {
|
|
4253
|
-
return t ? new
|
|
4283
|
+
return t ? new ni(e, t) : new Yr(e, 0);
|
|
4254
4284
|
}
|
|
4255
4285
|
return n.alpha = function(t) {
|
|
4256
4286
|
return e(+t);
|
|
@@ -4258,12 +4288,12 @@ var ni = (function e(t) {
|
|
|
4258
4288
|
})(.5);
|
|
4259
4289
|
//#endregion
|
|
4260
4290
|
//#region node_modules/d3-shape/src/curve/catmullRomClosed.js
|
|
4261
|
-
function
|
|
4291
|
+
function ii(e, t) {
|
|
4262
4292
|
this._context = e, this._alpha = t;
|
|
4263
4293
|
}
|
|
4264
|
-
|
|
4265
|
-
areaStart:
|
|
4266
|
-
areaEnd:
|
|
4294
|
+
ii.prototype = {
|
|
4295
|
+
areaStart: Rr,
|
|
4296
|
+
areaEnd: Rr,
|
|
4267
4297
|
lineStart: function() {
|
|
4268
4298
|
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
4269
4299
|
},
|
|
@@ -4293,14 +4323,14 @@ ri.prototype = {
|
|
|
4293
4323
|
case 2:
|
|
4294
4324
|
this._point = 3, this._x5 = e, this._y5 = t;
|
|
4295
4325
|
break;
|
|
4296
|
-
default:
|
|
4326
|
+
default: ti(this, e, t);
|
|
4297
4327
|
}
|
|
4298
4328
|
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 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
4299
4329
|
}
|
|
4300
4330
|
};
|
|
4301
|
-
var
|
|
4331
|
+
var ai = (function e(t) {
|
|
4302
4332
|
function n(e) {
|
|
4303
|
-
return t ? new
|
|
4333
|
+
return t ? new ii(e, t) : new Zr(e, 0);
|
|
4304
4334
|
}
|
|
4305
4335
|
return n.alpha = function(t) {
|
|
4306
4336
|
return e(+t);
|
|
@@ -4308,10 +4338,10 @@ var ii = (function e(t) {
|
|
|
4308
4338
|
})(.5);
|
|
4309
4339
|
//#endregion
|
|
4310
4340
|
//#region node_modules/d3-shape/src/curve/catmullRomOpen.js
|
|
4311
|
-
function
|
|
4341
|
+
function oi(e, t) {
|
|
4312
4342
|
this._context = e, this._alpha = t;
|
|
4313
4343
|
}
|
|
4314
|
-
|
|
4344
|
+
oi.prototype = {
|
|
4315
4345
|
areaStart: function() {
|
|
4316
4346
|
this._line = 0;
|
|
4317
4347
|
},
|
|
@@ -4340,14 +4370,14 @@ ai.prototype = {
|
|
|
4340
4370
|
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
4341
4371
|
break;
|
|
4342
4372
|
case 3: this._point = 4;
|
|
4343
|
-
default:
|
|
4373
|
+
default: ti(this, e, t);
|
|
4344
4374
|
}
|
|
4345
4375
|
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 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
4346
4376
|
}
|
|
4347
4377
|
};
|
|
4348
|
-
var
|
|
4378
|
+
var si = (function e(t) {
|
|
4349
4379
|
function n(e) {
|
|
4350
|
-
return t ? new
|
|
4380
|
+
return t ? new oi(e, t) : new $r(e, 0);
|
|
4351
4381
|
}
|
|
4352
4382
|
return n.alpha = function(t) {
|
|
4353
4383
|
return e(+t);
|
|
@@ -4355,12 +4385,12 @@ var oi = (function e(t) {
|
|
|
4355
4385
|
})(.5);
|
|
4356
4386
|
//#endregion
|
|
4357
4387
|
//#region node_modules/d3-shape/src/curve/linearClosed.js
|
|
4358
|
-
function
|
|
4388
|
+
function ci(e) {
|
|
4359
4389
|
this._context = e;
|
|
4360
4390
|
}
|
|
4361
|
-
|
|
4362
|
-
areaStart:
|
|
4363
|
-
areaEnd:
|
|
4391
|
+
ci.prototype = {
|
|
4392
|
+
areaStart: Rr,
|
|
4393
|
+
areaEnd: Rr,
|
|
4364
4394
|
lineStart: function() {
|
|
4365
4395
|
this._point = 0;
|
|
4366
4396
|
},
|
|
@@ -4371,30 +4401,30 @@ si.prototype = {
|
|
|
4371
4401
|
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
|
|
4372
4402
|
}
|
|
4373
4403
|
};
|
|
4374
|
-
function
|
|
4375
|
-
return new
|
|
4404
|
+
function li(e) {
|
|
4405
|
+
return new ci(e);
|
|
4376
4406
|
}
|
|
4377
4407
|
//#endregion
|
|
4378
4408
|
//#region node_modules/d3-shape/src/curve/monotone.js
|
|
4379
|
-
function
|
|
4409
|
+
function ui(e) {
|
|
4380
4410
|
return e < 0 ? -1 : 1;
|
|
4381
4411
|
}
|
|
4382
|
-
function
|
|
4412
|
+
function di(e, t, n) {
|
|
4383
4413
|
var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
|
|
4384
|
-
return (
|
|
4414
|
+
return (ui(a) + ui(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
|
|
4385
4415
|
}
|
|
4386
|
-
function
|
|
4416
|
+
function fi(e, t) {
|
|
4387
4417
|
var n = e._x1 - e._x0;
|
|
4388
4418
|
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
|
|
4389
4419
|
}
|
|
4390
|
-
function
|
|
4420
|
+
function pi(e, t, n) {
|
|
4391
4421
|
var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
|
|
4392
4422
|
e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
|
|
4393
4423
|
}
|
|
4394
|
-
function
|
|
4424
|
+
function mi(e) {
|
|
4395
4425
|
this._context = e;
|
|
4396
4426
|
}
|
|
4397
|
-
|
|
4427
|
+
mi.prototype = {
|
|
4398
4428
|
areaStart: function() {
|
|
4399
4429
|
this._line = 0;
|
|
4400
4430
|
},
|
|
@@ -4409,7 +4439,7 @@ pi.prototype = {
|
|
|
4409
4439
|
case 2:
|
|
4410
4440
|
this._context.lineTo(this._x1, this._y1);
|
|
4411
4441
|
break;
|
|
4412
|
-
case 3:
|
|
4442
|
+
case 3: pi(this, this._t0, fi(this, this._t0));
|
|
4413
4443
|
}
|
|
4414
4444
|
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
4415
4445
|
},
|
|
@@ -4424,24 +4454,24 @@ pi.prototype = {
|
|
|
4424
4454
|
this._point = 2;
|
|
4425
4455
|
break;
|
|
4426
4456
|
case 2:
|
|
4427
|
-
this._point = 3,
|
|
4457
|
+
this._point = 3, pi(this, fi(this, n = di(this, e, t)), n);
|
|
4428
4458
|
break;
|
|
4429
|
-
default:
|
|
4459
|
+
default: pi(this, this._t0, n = di(this, e, t));
|
|
4430
4460
|
}
|
|
4431
4461
|
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
|
|
4432
4462
|
}
|
|
4433
4463
|
}
|
|
4434
4464
|
};
|
|
4435
|
-
function
|
|
4436
|
-
this._context = new
|
|
4465
|
+
function hi(e) {
|
|
4466
|
+
this._context = new gi(e);
|
|
4437
4467
|
}
|
|
4438
|
-
(
|
|
4439
|
-
|
|
4468
|
+
(hi.prototype = Object.create(mi.prototype)).point = function(e, t) {
|
|
4469
|
+
mi.prototype.point.call(this, t, e);
|
|
4440
4470
|
};
|
|
4441
|
-
function
|
|
4471
|
+
function gi(e) {
|
|
4442
4472
|
this._context = e;
|
|
4443
4473
|
}
|
|
4444
|
-
|
|
4474
|
+
gi.prototype = {
|
|
4445
4475
|
moveTo: function(e, t) {
|
|
4446
4476
|
this._context.moveTo(t, e);
|
|
4447
4477
|
},
|
|
@@ -4455,18 +4485,18 @@ hi.prototype = {
|
|
|
4455
4485
|
this._context.bezierCurveTo(t, e, r, n, a, i);
|
|
4456
4486
|
}
|
|
4457
4487
|
};
|
|
4458
|
-
function gi(e) {
|
|
4459
|
-
return new pi(e);
|
|
4460
|
-
}
|
|
4461
4488
|
function _i(e) {
|
|
4462
4489
|
return new mi(e);
|
|
4463
4490
|
}
|
|
4491
|
+
function vi(e) {
|
|
4492
|
+
return new hi(e);
|
|
4493
|
+
}
|
|
4464
4494
|
//#endregion
|
|
4465
4495
|
//#region node_modules/d3-shape/src/curve/natural.js
|
|
4466
|
-
function
|
|
4496
|
+
function yi(e) {
|
|
4467
4497
|
this._context = e;
|
|
4468
4498
|
}
|
|
4469
|
-
|
|
4499
|
+
yi.prototype = {
|
|
4470
4500
|
areaStart: function() {
|
|
4471
4501
|
this._line = 0;
|
|
4472
4502
|
},
|
|
@@ -4479,14 +4509,14 @@ vi.prototype = {
|
|
|
4479
4509
|
lineEnd: function() {
|
|
4480
4510
|
var e = this._x, t = this._y, n = e.length;
|
|
4481
4511
|
if (n) if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
|
|
4482
|
-
else for (var r =
|
|
4512
|
+
else for (var r = bi(e), i = bi(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
|
|
4483
4513
|
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
|
|
4484
4514
|
},
|
|
4485
4515
|
point: function(e, t) {
|
|
4486
4516
|
this._x.push(+e), this._y.push(+t);
|
|
4487
4517
|
}
|
|
4488
4518
|
};
|
|
4489
|
-
function
|
|
4519
|
+
function bi(e) {
|
|
4490
4520
|
var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
|
|
4491
4521
|
for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
|
|
4492
4522
|
for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
|
|
@@ -4494,15 +4524,15 @@ function yi(e) {
|
|
|
4494
4524
|
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
|
|
4495
4525
|
return [i, a];
|
|
4496
4526
|
}
|
|
4497
|
-
function
|
|
4498
|
-
return new
|
|
4527
|
+
function xi(e) {
|
|
4528
|
+
return new yi(e);
|
|
4499
4529
|
}
|
|
4500
4530
|
//#endregion
|
|
4501
4531
|
//#region node_modules/d3-shape/src/curve/step.js
|
|
4502
|
-
function
|
|
4532
|
+
function Si(e, t) {
|
|
4503
4533
|
this._context = e, this._t = t;
|
|
4504
4534
|
}
|
|
4505
|
-
|
|
4535
|
+
Si.prototype = {
|
|
4506
4536
|
areaStart: function() {
|
|
4507
4537
|
this._line = 0;
|
|
4508
4538
|
},
|
|
@@ -4530,64 +4560,64 @@ xi.prototype = {
|
|
|
4530
4560
|
this._x = e, this._y = t;
|
|
4531
4561
|
}
|
|
4532
4562
|
};
|
|
4533
|
-
function Si(e) {
|
|
4534
|
-
return new xi(e, .5);
|
|
4535
|
-
}
|
|
4536
4563
|
function Ci(e) {
|
|
4537
|
-
return new
|
|
4564
|
+
return new Si(e, .5);
|
|
4538
4565
|
}
|
|
4539
4566
|
function wi(e) {
|
|
4540
|
-
return new
|
|
4567
|
+
return new Si(e, 0);
|
|
4568
|
+
}
|
|
4569
|
+
function Ti(e) {
|
|
4570
|
+
return new Si(e, 1);
|
|
4541
4571
|
}
|
|
4542
4572
|
//#endregion
|
|
4543
4573
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/shape/shape.js
|
|
4544
|
-
var
|
|
4545
|
-
basis:
|
|
4546
|
-
"basis-closed":
|
|
4547
|
-
"basis-open":
|
|
4548
|
-
bundle:
|
|
4549
|
-
cardinal:
|
|
4550
|
-
"cardinal-closed":
|
|
4551
|
-
"cardinal-open":
|
|
4552
|
-
"catmull-rom":
|
|
4553
|
-
"catmull-rom-closed":
|
|
4554
|
-
"catmull-rom-open":
|
|
4555
|
-
"monotone-x":
|
|
4556
|
-
"monotone-y":
|
|
4557
|
-
natural:
|
|
4558
|
-
"linear-closed":
|
|
4559
|
-
linear:
|
|
4560
|
-
step:
|
|
4561
|
-
"step-after":
|
|
4562
|
-
"step-before":
|
|
4574
|
+
var Ei = {
|
|
4575
|
+
basis: Vr,
|
|
4576
|
+
"basis-closed": Ur,
|
|
4577
|
+
"basis-open": Gr,
|
|
4578
|
+
bundle: qr,
|
|
4579
|
+
cardinal: Xr,
|
|
4580
|
+
"cardinal-closed": Qr,
|
|
4581
|
+
"cardinal-open": ei,
|
|
4582
|
+
"catmull-rom": ri,
|
|
4583
|
+
"catmull-rom-closed": ai,
|
|
4584
|
+
"catmull-rom-open": si,
|
|
4585
|
+
"monotone-x": _i,
|
|
4586
|
+
"monotone-y": vi,
|
|
4587
|
+
natural: xi,
|
|
4588
|
+
"linear-closed": li,
|
|
4589
|
+
linear: Lr,
|
|
4590
|
+
step: Ci,
|
|
4591
|
+
"step-after": Ti,
|
|
4592
|
+
"step-before": wi
|
|
4563
4593
|
};
|
|
4564
|
-
function
|
|
4594
|
+
function Di(e, t) {
|
|
4565
4595
|
return e.isLineType(t) || e.isScatterType?.(t) || e.isBubbleType?.(t);
|
|
4566
4596
|
}
|
|
4567
|
-
function
|
|
4568
|
-
return (t) =>
|
|
4597
|
+
function Oi(e) {
|
|
4598
|
+
return (t) => Di(e, t);
|
|
4569
4599
|
}
|
|
4570
|
-
function
|
|
4600
|
+
function ki(e, t) {
|
|
4571
4601
|
return e.isCandlestickType?.(t) ? e.getCandlestickData?.(t)?.close : e.getBaseValue(t);
|
|
4572
4602
|
}
|
|
4573
|
-
function
|
|
4603
|
+
function Ai(e) {
|
|
4574
4604
|
let t = this, n;
|
|
4575
|
-
if (
|
|
4576
|
-
let e =
|
|
4605
|
+
if (Di(t, e)) {
|
|
4606
|
+
let e = Oi(t);
|
|
4577
4607
|
n = t.generateGetLinePoints(t.getShapeIndices(e), !1, e);
|
|
4578
4608
|
} else t.isBarType(e) ? n = t.generateGetBarPoints(t.getShapeIndices(t.isBarType)) : t.isCandlestickType?.(e) && (n = t.generateGetCandlestickPoints?.(t.getShapeIndices(t.isCandlestickType)));
|
|
4579
4609
|
return n;
|
|
4580
4610
|
}
|
|
4581
|
-
function
|
|
4611
|
+
function ji(e, t, n) {
|
|
4582
4612
|
return this.config[t] ? this.getGradienColortUrl(e.id) : n(e);
|
|
4583
4613
|
}
|
|
4584
|
-
function
|
|
4614
|
+
function Mi(e, t) {
|
|
4585
4615
|
let n = this, { $el: r } = n, { type: i, elKey: a, containerClass: o, itemClass: s, initFn: c, withFocus: l = !0, withStyles: u = !0 } = t;
|
|
4586
4616
|
r[a] || c.call(n);
|
|
4587
4617
|
let d = n.getChartClass(i), f = l ? n.classFocus.bind(n) : () => "", p = r.main.select(`.${o}`).selectAll(`.${s}`).data(n.filterNullish(e)).attr("class", (e) => d(e) + f(e)).enter().append("g").attr("class", d);
|
|
4588
4618
|
return u && p.style("opacity", "0").style("pointer-events", n.getStylePropValue("none")), p;
|
|
4589
4619
|
}
|
|
4590
|
-
var
|
|
4620
|
+
var Ni = {
|
|
4591
4621
|
getDrawShape() {
|
|
4592
4622
|
let e = this, t = e.config.axis_rotated, { hasRadar: n, hasTreemap: r } = e.state, i = {
|
|
4593
4623
|
type: {},
|
|
@@ -4618,7 +4648,7 @@ var Mi = {
|
|
|
4618
4648
|
},
|
|
4619
4649
|
getShapeIndices(e) {
|
|
4620
4650
|
let t = this, { config: n } = t, r = n.data_xs, i = R(r), a = {}, o = i ? {} : 0;
|
|
4621
|
-
return i &&
|
|
4651
|
+
return i && Be(Object.keys(r).map((e) => r[e])).forEach((e) => {
|
|
4622
4652
|
o[e] = 0, a[e] = {};
|
|
4623
4653
|
}), t.filterTargetsToShow(t.data.targets.filter(e, t)).forEach((e) => {
|
|
4624
4654
|
let t = e.id in r ? r[e.id] : "", i = t ? a[t] : a;
|
|
@@ -4684,7 +4714,7 @@ var Mi = {
|
|
|
4684
4714
|
let n = e.values, r = {};
|
|
4685
4715
|
t.isStepType(e) && (n = t.convertValuesToStep(n));
|
|
4686
4716
|
let i = n.reduce((e, n) => {
|
|
4687
|
-
let i = Number(n.x), a =
|
|
4717
|
+
let i = Number(n.x), a = ki(t, n);
|
|
4688
4718
|
return e[i] = n, r[i] = s ? t.getRatio("index", n, !0) : a, e;
|
|
4689
4719
|
}, {});
|
|
4690
4720
|
return {
|
|
@@ -4713,7 +4743,7 @@ var Mi = {
|
|
|
4713
4743
|
}
|
|
4714
4744
|
}
|
|
4715
4745
|
return (e, c) => {
|
|
4716
|
-
let { id: l, value: u, x: d } = e, f =
|
|
4746
|
+
let { id: l, value: u, x: d } = e, f = ki(r, e), p = r.getIndices(t, e), m = r.getYScaleById(l, n);
|
|
4717
4747
|
if (r.isBarRangeType(e)) return m(u[0]);
|
|
4718
4748
|
let h = Number(d), g = m(o === "zero" ? 0 : r.getShapeYMin(l)), _ = g, v = s?.get(l) ?? i.filter((e) => e.id !== l && p[e.id] === p[l]);
|
|
4719
4749
|
for (let e of v) {
|
|
@@ -4721,7 +4751,7 @@ var Mi = {
|
|
|
4721
4751
|
if (a[t] < a[l]) {
|
|
4722
4752
|
let e = s[h], t = i[c];
|
|
4723
4753
|
(!t || Number(t.x) !== h) && (t = n[h]);
|
|
4724
|
-
let a = t &&
|
|
4754
|
+
let a = t && ki(r, t);
|
|
4725
4755
|
N(a) && N(f) && a * f >= 0 && N(e) && (f !== 0 || o === "positive" && e > 0 || o === "negative" && e < 0) && (_ += m(e) - g);
|
|
4726
4756
|
}
|
|
4727
4757
|
}
|
|
@@ -4777,16 +4807,16 @@ var Mi = {
|
|
|
4777
4807
|
},
|
|
4778
4808
|
circleY(e, t) {
|
|
4779
4809
|
let n = this, r = e.id, i;
|
|
4780
|
-
return n.isGrouped(r) && (i =
|
|
4810
|
+
return n.isGrouped(r) && (i = Ai.bind(n)(e)), i ? i(e, t)[0][1] : n.getYScaleById(r)(n.getBaseValue(e));
|
|
4781
4811
|
},
|
|
4782
4812
|
circleX(e) {
|
|
4783
4813
|
return this.xx(e);
|
|
4784
4814
|
},
|
|
4785
4815
|
updateCircleY(e = !1) {
|
|
4786
|
-
let t = this, n =
|
|
4816
|
+
let t = this, n = Oi(t), r = t.generateGetLinePoints(t.getShapeIndices(n), e, n);
|
|
4787
4817
|
return (n, i) => {
|
|
4788
4818
|
let a = n.id;
|
|
4789
|
-
return t.isGrouped(a) &&
|
|
4819
|
+
return t.isGrouped(a) && Di(t, n) ? r(n, i)[0][1] : t.getYScaleById(a, e)(t.getBaseValue(n));
|
|
4790
4820
|
};
|
|
4791
4821
|
},
|
|
4792
4822
|
pointR(e) {
|
|
@@ -4812,7 +4842,7 @@ var Mi = {
|
|
|
4812
4842
|
return n;
|
|
4813
4843
|
},
|
|
4814
4844
|
getBarW(e, t, n) {
|
|
4815
|
-
let r = this, { config: i, org: a, scale: o, state: s } = r, c = r.getMaxDataCount(), l = e === "bar" && i.data_groups?.length, u = `${e}_width`, { k: d } = r.getZoomTransform?.() ?? { k: 1 }, f = [i.axis_x_min ?? a.xDomain[0], i.axis_x_max ?? a.xDomain[1]].map((e) => r.axis.isTimeSeries() ?
|
|
4845
|
+
let r = this, { config: i, org: a, scale: o, state: s } = r, c = r.getMaxDataCount(), l = e === "bar" && i.data_groups?.length, u = `${e}_width`, { k: d } = r.getZoomTransform?.() ?? { k: 1 }, f = [i.axis_x_min ?? a.xDomain[0], i.axis_x_max ?? a.xDomain[1]].map((e) => r.axis.isTimeSeries() ? Ye.call(r, e) : Number(e)), p = t.tickInterval(c);
|
|
4816
4846
|
if (o.zoom && !r.axis.isCategorized() && d > 1) {
|
|
4817
4847
|
let e = f.every((e, t) => e === a.xDomain[t]);
|
|
4818
4848
|
p = a.xDomain.map((t, n) => {
|
|
@@ -4840,7 +4870,7 @@ var Mi = {
|
|
|
4840
4870
|
return n.isTargetToShow(t.id) ? n.hasValidPointType?.(e.nodeName) ? a = n.isStepType(t) ? n.isWithinStep(e, n.getYScaleById(t.id)(n.getBaseValue(t))) : n.isWithinCircle(e, n.isBubbleType(t) ? n.pointSelectR(t) * 1.5 : 0) : e.nodeName === "path" && (a = !r.classed(Z.bar) || n.isWithinBar(e)) : a = !1, a;
|
|
4841
4871
|
},
|
|
4842
4872
|
getInterpolate(e) {
|
|
4843
|
-
return
|
|
4873
|
+
return Ei[this.getInterpolateType(e)];
|
|
4844
4874
|
},
|
|
4845
4875
|
getCurve(e) {
|
|
4846
4876
|
let t = this;
|
|
@@ -4860,20 +4890,20 @@ var Mi = {
|
|
|
4860
4890
|
return t.isSplineType(e) ? i : t.isStepType(e) ? n.line_step_type : "linear";
|
|
4861
4891
|
},
|
|
4862
4892
|
isWithinBar(e) {
|
|
4863
|
-
let t =
|
|
4893
|
+
let t = Bt(this.state.event, e), [n, r, i] = zt(e), a = Math.min(n.x, r.x), o = Math.min(n.y, r.y), s = this.config.bar_sensitivity, c = Math.abs(i.x - r.x), l = Math.abs(n.y - r.y), u = a - s, d = a + c + s, f = o + l + s, p = o - s;
|
|
4864
4894
|
return u < t[0] && t[0] < d && p < t[1] && t[1] < f;
|
|
4865
4895
|
}
|
|
4866
4896
|
};
|
|
4867
4897
|
//#endregion
|
|
4868
4898
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/ChartInternal.js
|
|
4869
|
-
function
|
|
4899
|
+
function Pi(e) {
|
|
4870
4900
|
return e.hasArcType() ? "arc charts" : e.hasType("funnel") ? "funnel chart" : null;
|
|
4871
4901
|
}
|
|
4872
|
-
function
|
|
4873
|
-
let { config: t } = e, n = t.render_mode === "canvas" ?
|
|
4902
|
+
function Fi(e) {
|
|
4903
|
+
let { config: t } = e, n = t.render_mode === "canvas" ? Pi(e) : null;
|
|
4874
4904
|
n && (O.console?.warn?.(`[billboard.js] render.mode='canvas' is ignored for ${n}; falling back to SVG.`), t.render_mode = "svg");
|
|
4875
4905
|
}
|
|
4876
|
-
var
|
|
4906
|
+
var Ii = class {
|
|
4877
4907
|
api;
|
|
4878
4908
|
config;
|
|
4879
4909
|
cache;
|
|
@@ -4912,8 +4942,8 @@ var Fi = class {
|
|
|
4912
4942
|
};
|
|
4913
4943
|
constructor(e) {
|
|
4914
4944
|
let t = this;
|
|
4915
|
-
t.api = e, t.config = new
|
|
4916
|
-
let n = new
|
|
4945
|
+
t.api = e, t.config = new At(), t.cache = new Nt();
|
|
4946
|
+
let n = new Mt();
|
|
4917
4947
|
t.$el = n.getStore("element"), t.state = n.getStore("state"), t.$T = t.$T.bind(t);
|
|
4918
4948
|
}
|
|
4919
4949
|
$T(e, t, n) {
|
|
@@ -4930,9 +4960,9 @@ var Fi = class {
|
|
|
4930
4960
|
}
|
|
4931
4961
|
init() {
|
|
4932
4962
|
let e = this, { config: t, state: n, $el: r } = e, { boost_useCssRule: a, bindto: o } = t;
|
|
4933
|
-
|
|
4963
|
+
tt(e), Fi(e);
|
|
4934
4964
|
let s = e.hasArcType();
|
|
4935
|
-
if (n.hasRadar = !n.hasAxis && e.hasType("radar"), n.hasFunnel = !n.hasAxis && e.hasType("funnel"), n.hasTreemap = !n.hasAxis && e.hasType("treemap"), n.hasAxis = !s && !n.hasFunnel && !n.hasTreemap, n.datetimeId = `bb-${+/* @__PURE__ */ new Date() *
|
|
4965
|
+
if (n.hasRadar = !n.hasAxis && e.hasType("radar"), n.hasFunnel = !n.hasAxis && e.hasType("funnel"), n.hasTreemap = !n.hasAxis && e.hasType("treemap"), n.hasAxis = !s && !n.hasFunnel && !n.hasTreemap, n.datetimeId = `bb-${+/* @__PURE__ */ new Date() * Ke()}`, a) {
|
|
4936
4966
|
let e = k.createElement("style");
|
|
4937
4967
|
e.type = "text/css", k.head.appendChild(e), n.style = {
|
|
4938
4968
|
rootSelector: `.${n.datetimeId}`,
|
|
@@ -4946,7 +4976,7 @@ var Fi = class {
|
|
|
4946
4976
|
B(o) && (c.element = o.element || "#chart", c.classname = o.classname || c.classname), r.chart = j(c.element.node) ? o.element : i(c.element || []), r.chart.empty() && (r.chart = i(k.body.appendChild(k.createElement("div")))), r.chart.html("").classed(c.classname, !0).classed(n.datetimeId, a).style("position", "relative"), e.initParams(), e.initToRender();
|
|
4947
4977
|
}
|
|
4948
4978
|
initToRender(e) {
|
|
4949
|
-
let t = this, { config: n, state: r, $el: { chart: i } } = t, a = () =>
|
|
4979
|
+
let t = this, { config: n, state: r, $el: { chart: i } } = t, a = () => Jt(i, {
|
|
4950
4980
|
display: "none",
|
|
4951
4981
|
visibility: "hidden"
|
|
4952
4982
|
}), o = n.render.lazy === !1 ? !1 : n.render.lazy || a(), s = O.MutationObserver;
|
|
@@ -4970,13 +5000,13 @@ var Fi = class {
|
|
|
4970
5000
|
};
|
|
4971
5001
|
}
|
|
4972
5002
|
let { legend_position: i, legend_inset_anchor: a, axis_rotated: o } = t;
|
|
4973
|
-
r.isLegendRight = i === "right", r.isLegendInset = i === "inset", r.isLegendTop = a === "top-left" || a === "top-right", r.isLegendLeft = a === "top-left" || a === "bottom-left", r.rotatedPadding.top = e.getResettedPadding(r.rotatedPadding.top), r.rotatedPadding.right = o && !t.axis_x_show ? 0 : 30, r.inputType =
|
|
5003
|
+
r.isLegendRight = i === "right", r.isLegendInset = i === "inset", r.isLegendTop = a === "top-left" || a === "top-right", r.isLegendLeft = a === "top-left" || a === "bottom-left", r.rotatedPadding.top = e.getResettedPadding(r.rotatedPadding.top), r.rotatedPadding.right = o && !t.axis_x_show ? 0 : 30, r.inputType = Xt(t.interaction_inputType_mouse, t.interaction_inputType_touch);
|
|
4974
5004
|
}
|
|
4975
5005
|
initWithData(e) {
|
|
4976
5006
|
let t = this, { config: n, scale: r, state: i, $el: a, org: o } = t, { hasAxis: s, hasFunnel: c, hasTreemap: l } = i, u = n.interaction_enabled, d = t.hasType("polar"), f = n.data_labels_backgroundColors;
|
|
4977
5007
|
if (s && (t.axis = t.getAxisInstance(), n.zoom_enabled && t.initZoom()), t.data.xs = {}, t.data.targets = t.convertDataToTargets(e), n.data_filter && (t.data.targets = t.data.targets.filter(n.data_filter.bind(t.api))), n.data_hide && t.addHiddenTargetIds(n.data_hide === !0 ? t.mapToIds(t.data.targets) : n.data_hide), n.legend_hide && t.addHiddenLegendIds(n.legend_hide === !0 ? t.mapToIds(t.data.targets) : n.legend_hide), t.updateSizes(), t.updateScales(!0), s) {
|
|
4978
5008
|
let { x: e, y: i, y2: a, subX: s, subY: c, subY2: l } = r;
|
|
4979
|
-
e && (e.domain(
|
|
5009
|
+
e && (e.domain(Ue(t.getXDomain(t.data.targets), !n.axis_x_inverted)), s.domain(e.domain()), o.xDomain = e.domain()), i && (i.domain(t.getYDomain(t.data.targets, "y")), c.domain(i.domain())), a && (a.domain(t.getYDomain(t.data.targets, "y2")), l && l.domain(a.domain()));
|
|
4980
5010
|
}
|
|
4981
5011
|
if (n.render_mode === "canvas") {
|
|
4982
5012
|
if (!t.initCanvas) throw Error("[billboard.js] Please import and call canvas() to use render.mode='canvas'.");
|
|
@@ -4995,7 +5025,7 @@ var Fi = class {
|
|
|
4995
5025
|
return;
|
|
4996
5026
|
}
|
|
4997
5027
|
if (a.svg = a.chart.append("svg").style("overflow", "hidden").style("display", "block"), u && i.inputType) {
|
|
4998
|
-
let e = i.inputType === "touch", { onclick: r, onover: o, onout: s } = n, c = n.interaction_inputType_touch?.preventDefault, l =
|
|
5028
|
+
let e = i.inputType === "touch", { onclick: r, onover: o, onout: s } = n, c = n.interaction_inputType_touch?.preventDefault, l = ie(c) && c || !1, u = e ? { passive: !l && (!isNaN(c) && c || null) === null } : void 0;
|
|
4999
5029
|
a.svg.on("click", r?.bind(t.api) || null).on(e ? "touchstart" : "mouseenter", o?.bind(t.api) || null, u).on(e ? "touchend" : "mouseleave", s?.bind(t.api) || null);
|
|
5000
5030
|
}
|
|
5001
5031
|
n.svg_classname && a.svg.attr("class", n.svg_classname);
|
|
@@ -5098,7 +5128,7 @@ var Fi = class {
|
|
|
5098
5128
|
}
|
|
5099
5129
|
filterTargetsToShowAtInit(e = !1) {
|
|
5100
5130
|
let t = this, { $el: { svg: n }, $T: r } = t, i = `.${U.target}`;
|
|
5101
|
-
e && (i += `, .${
|
|
5131
|
+
e && (i += `, .${st.chartCircles} > .${st.circles}`), r(n.selectAll(i).filter((e) => t.isTargetToShow(e.id))).style("opacity", null);
|
|
5102
5132
|
}
|
|
5103
5133
|
getWithOption(e) {
|
|
5104
5134
|
let t = {
|
|
@@ -5118,7 +5148,7 @@ var Fi = class {
|
|
|
5118
5148
|
};
|
|
5119
5149
|
for (let [n, r] of Object.entries(t)) {
|
|
5120
5150
|
let i = M(r) ? t[r] : r;
|
|
5121
|
-
t[n] =
|
|
5151
|
+
t[n] = Ne(e, `with${n}`, i);
|
|
5122
5152
|
}
|
|
5123
5153
|
return t;
|
|
5124
5154
|
}
|
|
@@ -5127,7 +5157,7 @@ var Fi = class {
|
|
|
5127
5157
|
return t.getBaseValue(e) !== null && n[e.id] ? null : "0";
|
|
5128
5158
|
}
|
|
5129
5159
|
bindResize() {
|
|
5130
|
-
let e = this, { $el: t, config: n, state: r } = e, i =
|
|
5160
|
+
let e = this, { $el: t, config: n, state: r } = e, i = en(n.resize_timer), { resize_auto: a } = n, o = [];
|
|
5131
5161
|
o.push(() => V(n.onresize, e.api)), /^(true|parent)$/.test(a) && o.push(() => {
|
|
5132
5162
|
let t = r.current.width, i = r.current.height;
|
|
5133
5163
|
e.setContainerSize(), (t !== r.current.width || i !== r.current.height) && (r.resizing = !0, n.legend_show && (e.updateSizes(), r.isCanvasMode ? e.updateHtmlLegend?.() : e.updateLegend()), e.api.flush(!1));
|
|
@@ -5141,31 +5171,31 @@ var Fi = class {
|
|
|
5141
5171
|
});
|
|
5142
5172
|
}
|
|
5143
5173
|
};
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
In,
|
|
5149
|
-
Rn,
|
|
5150
|
-
Hn,
|
|
5151
|
-
Zn,
|
|
5174
|
+
ze(Ii.prototype, [
|
|
5175
|
+
On,
|
|
5176
|
+
jn,
|
|
5177
|
+
Nn,
|
|
5152
5178
|
Fn,
|
|
5153
|
-
|
|
5179
|
+
Ln,
|
|
5180
|
+
Vn,
|
|
5181
|
+
Xn,
|
|
5182
|
+
Pn,
|
|
5183
|
+
Qn,
|
|
5184
|
+
dr,
|
|
5154
5185
|
fr,
|
|
5155
|
-
|
|
5186
|
+
mr,
|
|
5187
|
+
Ni,
|
|
5156
5188
|
hr,
|
|
5157
|
-
Mi,
|
|
5158
5189
|
gr,
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5190
|
+
Er,
|
|
5191
|
+
kr,
|
|
5192
|
+
Mr,
|
|
5162
5193
|
Nr,
|
|
5163
|
-
|
|
5164
|
-
Ir
|
|
5194
|
+
Fr
|
|
5165
5195
|
]);
|
|
5166
5196
|
//#endregion
|
|
5167
5197
|
//#region node_modules/billboard.js/dist-esm/config/config.js
|
|
5168
|
-
function
|
|
5198
|
+
function Li(e) {
|
|
5169
5199
|
let t = this.config, n, r, i, a = () => {
|
|
5170
5200
|
let e = r.shift();
|
|
5171
5201
|
if (e && n && I(n) && e in n) return n = n[e], a();
|
|
@@ -5177,7 +5207,7 @@ function Ii(e) {
|
|
|
5177
5207
|
}
|
|
5178
5208
|
//#endregion
|
|
5179
5209
|
//#region node_modules/billboard.js/dist-esm/Chart/api/chart.js
|
|
5180
|
-
var
|
|
5210
|
+
var Ri = {
|
|
5181
5211
|
resize(e) {
|
|
5182
5212
|
let t = this.internal, { config: n, state: r } = t;
|
|
5183
5213
|
r.rendered && (n.size_width = e ? e.width : null, n.size_height = e ? e.height : null, r.resizing = !0, r.dirty.size = !0, this.flush(!1), t.resizeFunction());
|
|
@@ -5198,7 +5228,7 @@ var Li = {
|
|
|
5198
5228
|
destroy() {
|
|
5199
5229
|
let e = this.internal, { state: t, $el: { chart: n, style: r, svg: i } } = e;
|
|
5200
5230
|
if (R(e)) {
|
|
5201
|
-
e.callPluginHook("$willDestroy"), e.cache?.remove(["setOverOut", "callOverOutForTouch"]), e.charts.splice(e.charts.indexOf(this), 1), e.charts.length === 0 &&
|
|
5231
|
+
e.callPluginHook("$willDestroy"), e.cache?.remove(["setOverOut", "callOverOutForTouch"]), e.charts.splice(e.charts.indexOf(this), 1), e.charts.length === 0 && cn(), e.unbindAllEvents(), i?.select("*").interrupt(), t.canvasFlowFrame !== null && O.cancelAnimationFrame?.(t.canvasFlowFrame), t.canvasFlowFrame = null, t.canvasFlowFinish = null, t.pendingRaf !== null && O.cancelAnimationFrame?.(t.pendingRaf), t.pendingRaf = null, e.canvasRenderer?.destroy(), e.canvasEngine?.destroy(), e.resizeFunction?.clear(), e.resizeFunction?.resizeObserver?.disconnect(), e.resizeFunction && O.removeEventListener("resize", e.resizeFunction), n.classed("bb", !1).style("position", null), t.isCanvasMode && n.style("min-height", t.canvasInlineStyle.minHeight || null), n.selectChildren().remove(), r && r.parentNode.removeChild(r), Object.keys(this).forEach((t) => {
|
|
5202
5232
|
t === "internal" && Object.keys(e).forEach((t) => {
|
|
5203
5233
|
e[t] = null;
|
|
5204
5234
|
}), this[t] = null, delete this[t];
|
|
@@ -5211,9 +5241,9 @@ var Li = {
|
|
|
5211
5241
|
let { config: r, state: i } = this.internal, a = e?.replace(/\./g, "_"), o;
|
|
5212
5242
|
return e && a in r ? F(t) ? (r[a] = t, o = t, n && this.flush()) : o = r[a] : (arguments.length === 0 || L(e)) && (o = i.orgConfig), o;
|
|
5213
5243
|
}
|
|
5214
|
-
},
|
|
5244
|
+
}, zi = { color(e) {
|
|
5215
5245
|
return this.internal.color(e);
|
|
5216
|
-
} },
|
|
5246
|
+
} }, Bi = function(e) {
|
|
5217
5247
|
let { targets: t } = this.internal.data;
|
|
5218
5248
|
if (!P(e)) {
|
|
5219
5249
|
let n = z(e) ? e : [e];
|
|
@@ -5221,7 +5251,7 @@ var Li = {
|
|
|
5221
5251
|
}
|
|
5222
5252
|
return t;
|
|
5223
5253
|
};
|
|
5224
|
-
|
|
5254
|
+
ze(Bi, {
|
|
5225
5255
|
shown: function(e) {
|
|
5226
5256
|
return this.internal.filterTargetsToShow(this.data(e));
|
|
5227
5257
|
},
|
|
@@ -5252,7 +5282,7 @@ Be(zi, {
|
|
|
5252
5282
|
return this.internal.getMinMaxData().max;
|
|
5253
5283
|
}
|
|
5254
5284
|
});
|
|
5255
|
-
var
|
|
5285
|
+
var Vi = { data: Bi }, Hi = {
|
|
5256
5286
|
focus(e) {
|
|
5257
5287
|
let t = this.internal, { state: n } = t, r = t.mapToTargetIds(e);
|
|
5258
5288
|
if (n.isCanvasMode) {
|
|
@@ -5261,7 +5291,7 @@ var Bi = { data: zi }, Vi = {
|
|
|
5261
5291
|
return;
|
|
5262
5292
|
}
|
|
5263
5293
|
let i = t.$el.svg.selectAll(t.selectorTargets(r.filter(t.isTargetToShow, t)));
|
|
5264
|
-
this.revert(), this.defocus(), i.classed(q.focused, !0).classed(q.defocused, !1), t.hasArcType() && !n.hasRadar && (t.expandArc(r), t.hasType("gauge") && t.markOverlapped(e, t, `.${
|
|
5294
|
+
this.revert(), this.defocus(), i.classed(q.focused, !0).classed(q.defocused, !1), t.hasArcType() && !n.hasRadar && (t.expandArc(r), t.hasType("gauge") && t.markOverlapped(e, t, `.${dt.gaugeValue}`)), t.toggleFocusLegend(r, !0), n.focusedTargetIds = new Set(r), r.forEach((e) => n.defocusedTargetIds.delete(e));
|
|
5265
5295
|
},
|
|
5266
5296
|
defocus(e) {
|
|
5267
5297
|
let t = this.internal, { state: n } = t, r = t.mapToTargetIds(e);
|
|
@@ -5270,7 +5300,7 @@ var Bi = { data: zi }, Vi = {
|
|
|
5270
5300
|
t.toggleFocusLegend(e, !1), e.forEach((e) => n.focusedTargetIds.delete(e)), n.defocusedTargetIds = new Set(e), t.renderCanvasFrame?.(void 0, null, !1);
|
|
5271
5301
|
return;
|
|
5272
5302
|
}
|
|
5273
|
-
t.$el.svg.selectAll(t.selectorTargets(r.filter(t.isTargetToShow, t))).classed(q.focused, !1).classed(q.defocused, !0), t.hasArcType(null, ["polar"]) && (t.unexpandArc(r), t.hasType("gauge") && t.undoMarkOverlapped(t, `.${
|
|
5303
|
+
t.$el.svg.selectAll(t.selectorTargets(r.filter(t.isTargetToShow, t))).classed(q.focused, !1).classed(q.defocused, !0), t.hasArcType(null, ["polar"]) && (t.unexpandArc(r), t.hasType("gauge") && t.undoMarkOverlapped(t, `.${dt.gaugeValue}`)), t.toggleFocusLegend(r, !1), r.forEach((e) => n.focusedTargetIds.delete(e)), n.defocusedTargetIds = new Set(r);
|
|
5274
5304
|
},
|
|
5275
5305
|
revert(e) {
|
|
5276
5306
|
let t = this.internal, { config: n, state: r, $el: a } = t, o = t.mapToTargetIds(e), s = () => {
|
|
@@ -5285,7 +5315,7 @@ var Bi = { data: zi }, Vi = {
|
|
|
5285
5315
|
}
|
|
5286
5316
|
a.svg.selectAll(t.selectorTargets(o)).classed(q.focused, !1).classed(q.defocused, !1), t.hasArcType(null, ["polar"]) && t.unexpandArc(o), s(), r.focusedTargetIds = /* @__PURE__ */ new Set(), r.defocusedTargetIds = /* @__PURE__ */ new Set();
|
|
5287
5317
|
}
|
|
5288
|
-
},
|
|
5318
|
+
}, Ui = { legend: {
|
|
5289
5319
|
show: function(e) {
|
|
5290
5320
|
let t = this.internal;
|
|
5291
5321
|
t.showLegend(t.mapToTargetIds(e)), t.updateAndRedraw({ withLegend: !0 });
|
|
@@ -5294,7 +5324,7 @@ var Bi = { data: zi }, Vi = {
|
|
|
5294
5324
|
let t = this.internal;
|
|
5295
5325
|
t.hideLegend(t.mapToTargetIds(e)), t.updateAndRedraw({ withLegend: !0 });
|
|
5296
5326
|
}
|
|
5297
|
-
} },
|
|
5327
|
+
} }, Wi = {
|
|
5298
5328
|
load(e) {
|
|
5299
5329
|
let t = this.internal, { config: n } = t;
|
|
5300
5330
|
t.state.dirty.data = !0, t.state._eventRectFingerprint = null, e.xs && t.addXs(e.xs), "names" in e && this.data.names(e.names), "classes" in e && Object.keys(e.classes).forEach((t) => {
|
|
@@ -5316,13 +5346,13 @@ var Bi = { data: zi }, Vi = {
|
|
|
5316
5346
|
withUpdateOrgXDomain: !0,
|
|
5317
5347
|
withUpdateXDomain: !0,
|
|
5318
5348
|
withLegend: !0
|
|
5319
|
-
}),
|
|
5349
|
+
}), Mn.call(t, e.done, e.resizeAfter);
|
|
5320
5350
|
return;
|
|
5321
5351
|
}
|
|
5322
5352
|
if (i) {
|
|
5323
5353
|
let n = t.mapToTargetIds(e.unload === !0 ? null : e.unload);
|
|
5324
5354
|
t.unload(n, () => {
|
|
5325
|
-
!t.config || !t.cache || (t.cache.remove(n),
|
|
5355
|
+
!t.config || !t.cache || (t.cache.remove(n), ne(() => t.loadFromArgs(e)));
|
|
5326
5356
|
});
|
|
5327
5357
|
} else t.loadFromArgs(e);
|
|
5328
5358
|
},
|
|
@@ -5335,13 +5365,13 @@ var Bi = { data: zi }, Vi = {
|
|
|
5335
5365
|
withUpdateOrgXDomain: !0,
|
|
5336
5366
|
withUpdateXDomain: !0,
|
|
5337
5367
|
withLegend: !0
|
|
5338
|
-
}), t.cache.remove(r),
|
|
5368
|
+
}), t.cache.remove(r), Mn.call(t, n.done, n.resizeAfter));
|
|
5339
5369
|
});
|
|
5340
5370
|
}
|
|
5341
5371
|
};
|
|
5342
5372
|
//#endregion
|
|
5343
5373
|
//#region node_modules/billboard.js/dist-esm/Chart/api/show.js
|
|
5344
|
-
function
|
|
5374
|
+
function Gi(e, t, n, r = !1) {
|
|
5345
5375
|
let i = this.internal, a = i.mapToTargetIds(t), o = new Set(a), s = [...i.state.hiddenTargetIds].filter((e) => o.has(e));
|
|
5346
5376
|
if (i.state.toggling = !0, i.state.dirty.visibility = !0, i[`${e ? "remove" : "add"}HiddenTargetIds`](a), i.state.isCanvasMode) {
|
|
5347
5377
|
e && s.length ? V(i.config.data_onshown, this, s) : !e && s.length === 0 && V(i.config?.data_onhidden, this, a), r || i.redraw({
|
|
@@ -5352,7 +5382,7 @@ function Wi(e, t, n, r = !1) {
|
|
|
5352
5382
|
return;
|
|
5353
5383
|
}
|
|
5354
5384
|
let c = i.$el.svg.selectAll(i.selectorTargets(a)), l = e ? null : "0";
|
|
5355
|
-
e && s.length && (c.style("display", null), V(i.config.data_onshown, this, s)), i.$T(c).style("opacity", l, "important").call(
|
|
5385
|
+
e && s.length && (c.style("display", null), V(i.config.data_onshown, this, s)), i.$T(c).style("opacity", l, "important").call(Fe, () => {
|
|
5356
5386
|
!e && s.length === 0 && (c.style("display", "none"), V(i.config?.data_onhidden, this, a)), c.style("opacity", l);
|
|
5357
5387
|
}), n.withLegend && i[`${e ? "show" : "hide"}Legend`](a), r || i.redraw({
|
|
5358
5388
|
withUpdateOrgXDomain: !0,
|
|
@@ -5360,21 +5390,21 @@ function Wi(e, t, n, r = !1) {
|
|
|
5360
5390
|
withLegend: !0
|
|
5361
5391
|
}), i.state.toggling = !1;
|
|
5362
5392
|
}
|
|
5363
|
-
var
|
|
5393
|
+
var Ki = {
|
|
5364
5394
|
show(e, t = {}) {
|
|
5365
|
-
|
|
5395
|
+
Gi.call(this, !0, e, t);
|
|
5366
5396
|
},
|
|
5367
5397
|
hide(e, t = {}) {
|
|
5368
|
-
|
|
5398
|
+
Gi.call(this, !1, e, t);
|
|
5369
5399
|
},
|
|
5370
5400
|
toggle(e, t = {}) {
|
|
5371
5401
|
let n = this.internal, r = {
|
|
5372
5402
|
show: [],
|
|
5373
5403
|
hide: []
|
|
5374
5404
|
};
|
|
5375
|
-
n.mapToTargetIds(e).forEach((e) => r[n.isTargetToShow(e) ? "hide" : "show"].push(e)), r.show.length && r.hide.length ? (
|
|
5405
|
+
n.mapToTargetIds(e).forEach((e) => r[n.isTargetToShow(e) ? "hide" : "show"].push(e)), r.show.length && r.hide.length ? (Gi.call(this, !0, r.show, t, !0), Gi.call(this, !1, r.hide, t)) : (r.show.length && this.show(r.show, t), r.hide.length && this.hide(r.hide, t));
|
|
5376
5406
|
}
|
|
5377
|
-
},
|
|
5407
|
+
}, qi = { tooltip: {
|
|
5378
5408
|
show: function(e) {
|
|
5379
5409
|
let t = this.internal, { $el: n, config: r, state: { eventReceiver: i, hasFunnel: a, hasTreemap: o, inputType: s } } = t, c, l;
|
|
5380
5410
|
if (e.mouse && (l = e.mouse), e.data) {
|
|
@@ -5408,91 +5438,91 @@ var Gi = {
|
|
|
5408
5438
|
}
|
|
5409
5439
|
t === "touch" && e.callOverOutForTouch(), e.hideTooltip(!0), e.hideGridFocus?.(), e.unexpandCircles?.(), e.expandBarTypeShapes?.(!1);
|
|
5410
5440
|
}
|
|
5411
|
-
} },
|
|
5441
|
+
} }, Ji = class e {
|
|
5412
5442
|
plugins = [];
|
|
5413
5443
|
internal;
|
|
5414
5444
|
constructor(t) {
|
|
5415
|
-
let n = new
|
|
5445
|
+
let n = new Ii(this);
|
|
5416
5446
|
this.internal = n, (function e(t, n, r) {
|
|
5417
5447
|
Object.keys(t).forEach((i) => {
|
|
5418
5448
|
let a = j(t[i]), o = n !== r, s = R(t[i]), c = s && Object.keys(t[i]).length > 0;
|
|
5419
5449
|
n[i] = a && (!o && c || o) ? t[i].bind(r) : s && !a ? {} : t[i], c && e(t[i], n[i], r);
|
|
5420
5450
|
});
|
|
5421
|
-
})(e.prototype, this, this),
|
|
5451
|
+
})(e.prototype, this, this), Li.call(n, t), n.beforeInit(), n.init();
|
|
5422
5452
|
}
|
|
5423
5453
|
};
|
|
5424
|
-
|
|
5425
|
-
Li,
|
|
5454
|
+
ze(Ji.prototype, [
|
|
5426
5455
|
Ri,
|
|
5427
|
-
|
|
5456
|
+
zi,
|
|
5428
5457
|
Vi,
|
|
5429
5458
|
Hi,
|
|
5430
5459
|
Ui,
|
|
5431
|
-
|
|
5432
|
-
Ki
|
|
5460
|
+
Wi,
|
|
5461
|
+
Ki,
|
|
5462
|
+
qi
|
|
5433
5463
|
]);
|
|
5434
5464
|
//#endregion
|
|
5435
5465
|
//#region node_modules/billboard.js/dist-esm/Chart/api/grid.js
|
|
5436
|
-
function
|
|
5466
|
+
function Yi(e) {
|
|
5437
5467
|
return Array.isArray(e) ? e : [e];
|
|
5438
5468
|
}
|
|
5439
|
-
function
|
|
5469
|
+
function Xi(e) {
|
|
5440
5470
|
e.state.canvasShape = null, e.renderCanvasFrame?.(void 0, null, !1);
|
|
5441
5471
|
}
|
|
5442
|
-
function Xi(e, t) {
|
|
5443
|
-
let n = this.internal, { config: r } = n, i = r.transition_duration && Xt(), a = `grid_${t}_lines`;
|
|
5444
|
-
return e ? (r[a] = Ji(e), n.state.isCanvasMode ? (Yi(n), r[a]) : (n.updateGrid(), n.redrawGrid(i), r[a])) : r[a];
|
|
5445
|
-
}
|
|
5446
5472
|
function Zi(e, t) {
|
|
5447
|
-
let n = `grid_${t}_lines`;
|
|
5448
|
-
return
|
|
5473
|
+
let n = this.internal, { config: r } = n, i = r.transition_duration && Yt(), a = `grid_${t}_lines`;
|
|
5474
|
+
return e ? (r[a] = Yi(e), n.state.isCanvasMode ? (Xi(n), r[a]) : (n.updateGrid(), n.redrawGrid(i), r[a])) : r[a];
|
|
5449
5475
|
}
|
|
5450
5476
|
function Qi(e, t) {
|
|
5477
|
+
let n = `grid_${t}_lines`;
|
|
5478
|
+
return Zi.bind(this)(this.internal.config[n].concat(e ? Yi(e) : []), t);
|
|
5479
|
+
}
|
|
5480
|
+
function $i(e, t) {
|
|
5451
5481
|
let n = this.internal;
|
|
5452
5482
|
if (n.state.isCanvasMode) {
|
|
5453
5483
|
let r = n.getGridFilterToRemove?.(e) || (() => !0), i = `grid_${t ? "x" : "y"}_lines`;
|
|
5454
|
-
n.config[i] = n.config[i].filter((e) => !r(e)),
|
|
5484
|
+
n.config[i] = n.config[i].filter((e) => !r(e)), Xi(n);
|
|
5455
5485
|
return;
|
|
5456
5486
|
}
|
|
5457
5487
|
n.removeGridLines(e, t);
|
|
5458
5488
|
}
|
|
5459
|
-
var
|
|
5460
|
-
return
|
|
5489
|
+
var ea = function(e) {
|
|
5490
|
+
return Zi.bind(this)(e, "x");
|
|
5461
5491
|
};
|
|
5462
|
-
|
|
5492
|
+
ze(ea, {
|
|
5463
5493
|
add(e) {
|
|
5464
|
-
return
|
|
5494
|
+
return Qi.bind(this)(e, "x");
|
|
5465
5495
|
},
|
|
5466
5496
|
remove(e) {
|
|
5467
|
-
return
|
|
5497
|
+
return $i.bind(this)(e, !0);
|
|
5468
5498
|
}
|
|
5469
5499
|
});
|
|
5470
|
-
var
|
|
5471
|
-
return
|
|
5500
|
+
var ta = function(e) {
|
|
5501
|
+
return Zi.bind(this)(e, "y");
|
|
5472
5502
|
};
|
|
5473
|
-
|
|
5503
|
+
ze(ta, {
|
|
5474
5504
|
add(e) {
|
|
5475
|
-
return
|
|
5505
|
+
return Qi.bind(this)(e, "y");
|
|
5476
5506
|
},
|
|
5477
5507
|
remove(e) {
|
|
5478
|
-
return
|
|
5508
|
+
return $i.bind(this)(e, !1);
|
|
5479
5509
|
}
|
|
5480
5510
|
});
|
|
5481
|
-
var
|
|
5482
|
-
xgrids:
|
|
5483
|
-
ygrids:
|
|
5484
|
-
},
|
|
5485
|
-
function
|
|
5511
|
+
var na = {
|
|
5512
|
+
xgrids: ea,
|
|
5513
|
+
ygrids: ta
|
|
5514
|
+
}, ra = `line.${q.xgridFocus}, line.${q.ygridFocus}`, ia = (e) => A(e.position) || "end", aa = (e) => e.position === "start" ? 4 : e.position === "middle" ? 0 : -4;
|
|
5515
|
+
function oa(e) {
|
|
5486
5516
|
let { state: t, $el: { main: n } } = e, r = t._gridFocusEl, i = n.node(), a = r?.nodes?.() || [];
|
|
5487
|
-
return a.length && a.every((e) => i?.contains(e)) ? r : t._gridFocusEl = n.selectAll(
|
|
5517
|
+
return a.length && a.every((e) => i?.contains(e)) ? r : t._gridFocusEl = n.selectAll(ra);
|
|
5488
5518
|
}
|
|
5489
|
-
function
|
|
5519
|
+
function sa(e, t, n) {
|
|
5490
5520
|
return (r) => {
|
|
5491
5521
|
let i = e ? 0 : t;
|
|
5492
5522
|
return r.position === "start" ? i = e ? -n : 0 : r.position === "middle" && (i = (e ? -n : t) / 2), i;
|
|
5493
5523
|
};
|
|
5494
5524
|
}
|
|
5495
|
-
function
|
|
5525
|
+
function ca(e, t) {
|
|
5496
5526
|
e.each(function() {
|
|
5497
5527
|
let e = i(this);
|
|
5498
5528
|
[
|
|
@@ -5503,7 +5533,7 @@ function sa(e, t) {
|
|
|
5503
5533
|
].forEach((t) => e.attr(t, +e.attr(t)));
|
|
5504
5534
|
});
|
|
5505
5535
|
}
|
|
5506
|
-
var
|
|
5536
|
+
var la = {
|
|
5507
5537
|
hasGrid() {
|
|
5508
5538
|
let { config: e } = this;
|
|
5509
5539
|
return ["x", "y"].some((t) => e[`grid_${t}_show`] || e[`grid_${t}_lines`].length);
|
|
@@ -5514,7 +5544,7 @@ var ca = {
|
|
|
5514
5544
|
},
|
|
5515
5545
|
initGridLines() {
|
|
5516
5546
|
let { config: e, state: { clip: t }, $el: n } = this;
|
|
5517
|
-
(e.grid_x_lines.length || e.grid_y_lines.length) && (n.gridLines.main = n.main.insert("g", `.${U.chart}${e.grid_lines_front ? " + *" : ""}`).attr("clip-path", t.pathGrid).attr("class", `${J.grid} ${J.gridLines}`), n.gridLines.main.append("g").attr("class", J.xgridLines), n.gridLines.main.append("g").attr("class", J.ygridLines), n.gridLines.x =
|
|
5547
|
+
(e.grid_x_lines.length || e.grid_y_lines.length) && (n.gridLines.main = n.main.insert("g", `.${U.chart}${e.grid_lines_front ? " + *" : ""}`).attr("clip-path", t.pathGrid).attr("class", `${J.grid} ${J.gridLines}`), n.gridLines.main.append("g").attr("class", J.xgridLines), n.gridLines.main.append("g").attr("class", J.ygridLines), n.gridLines.x = rt([]));
|
|
5518
5548
|
},
|
|
5519
5549
|
updateXGrid(e) {
|
|
5520
5550
|
let t = this, { config: n, scale: r, state: a, $el: { main: o, grid: s } } = t, c = n.axis_rotated, l = t.generateGridData(n.grid_x_type, r.x), u = t.axis.isCategorized() ? t.axis.x.tickOffset() : 0, d = (e) => (r.zoom || r.x)(e) + u * (c ? -1 : 1);
|
|
@@ -5537,7 +5567,7 @@ var ca = {
|
|
|
5537
5567
|
},
|
|
5538
5568
|
updateYGrid() {
|
|
5539
5569
|
let e = this, { axis: t, config: n, scale: r, state: i, $el: { grid: a, main: o } } = e, s = n.axis_rotated, c = (e) => r.y(e), l = t.y.getGeneratedTicks(n.grid_y_ticks) || e.scale.y.ticks(n.grid_y_ticks);
|
|
5540
|
-
a.y = o.select(`.${J.ygrids}`).selectAll(`.${J.ygrid}`).data(l), a.y.exit().remove(), a.y = a.y.enter().append("line").attr("class", J.ygrid).merge(a.y), a.y.attr("x1", s ? c : 0).attr("x2", s ? c : i.width).attr("y1", s ? 0 : c).attr("y2", s ? i.height : c),
|
|
5570
|
+
a.y = o.select(`.${J.ygrids}`).selectAll(`.${J.ygrid}`).data(l), a.y.exit().remove(), a.y = a.y.enter().append("line").attr("class", J.ygrid).merge(a.y), a.y.attr("x1", s ? c : 0).attr("x2", s ? c : i.width).attr("y1", s ? 0 : c).attr("y2", s ? i.height : c), ca(a.y);
|
|
5541
5571
|
},
|
|
5542
5572
|
updateGrid() {
|
|
5543
5573
|
let e = this, { $el: { grid: t, gridLines: n } } = e;
|
|
@@ -5552,13 +5582,13 @@ var ca = {
|
|
|
5552
5582
|
u.append("line").style("opacity", "0"), l = u.merge(l), l.each(function(e) {
|
|
5553
5583
|
let t = i(this);
|
|
5554
5584
|
t.select("text").empty() && e.text && t.append("text").style("opacity", "0");
|
|
5555
|
-
}), o(l.attr("class", (t) => `${J[`${e}gridLine`]} ${t.class || ""}`.trim()).select("text").attr("text-anchor",
|
|
5585
|
+
}), o(l.attr("class", (t) => `${J[`${e}gridLine`]} ${t.class || ""}`.trim()).select("text").attr("text-anchor", ia).attr("transform", () => c ? s ? null : "rotate(-90)" : s ? "rotate(-90)" : null).attr("dx", aa).attr("dy", -5)).text(function(e) {
|
|
5556
5586
|
return e.text ?? this.remove();
|
|
5557
5587
|
}), r[e] = l;
|
|
5558
5588
|
},
|
|
5559
5589
|
redrawGrid(e) {
|
|
5560
5590
|
let t = this, { config: { axis_rotated: n }, state: { width: r, height: i }, $el: { gridLines: a }, $T: o } = t, s = t.xv.bind(t), c = t.yv.bind(t), l = a.x.select("line"), u = a.x.select("text"), d = a.y.select("line"), f = a.y.select("text");
|
|
5561
|
-
return l = o(l, e).attr("x1", n ? 0 : s).attr("x2", n ? r : s).attr("y1", n ? s : 0).attr("y2", n ? s : i), u = o(u, e).attr("x",
|
|
5591
|
+
return l = o(l, e).attr("x1", n ? 0 : s).attr("x2", n ? r : s).attr("y1", n ? s : 0).attr("y2", n ? s : i), u = o(u, e).attr("x", sa(!n, r, i)).attr("y", s), d = o(d, e).attr("x1", n ? c : 0).attr("x2", n ? c : r).attr("y1", n ? 0 : c).attr("y2", n ? i : c), f = o(f, e).attr("x", sa(n, r, i)).attr("y", c), [
|
|
5562
5592
|
l.style("opacity", null),
|
|
5563
5593
|
u.style("opacity", null),
|
|
5564
5594
|
d.style("opacity", null),
|
|
@@ -5576,7 +5606,7 @@ var ca = {
|
|
|
5576
5606
|
e.interaction_enabled && e.grid_focus_show && !e.axis_tooltip && (o.append("g").attr("class", q.xgridFocus).append("line").attr("class", q.xgridFocus), e.grid_focus_y && !e.tooltip_grouped && o.append("g").attr("class", q.ygridFocus).append("line").attr("class", q.ygridFocus));
|
|
5577
5607
|
},
|
|
5578
5608
|
showAxisGridFocus() {
|
|
5579
|
-
let e = this, { config: t, format: n, state: { event: r, width: a, height: o } } = e, s = t.axis_rotated, [c, l] =
|
|
5609
|
+
let e = this, { config: t, format: n, state: { event: r, width: a, height: o } } = e, s = t.axis_rotated, [c, l] = Bt(r, e.$el.eventRect?.node()), u = {
|
|
5580
5610
|
x: c,
|
|
5581
5611
|
y: l
|
|
5582
5612
|
};
|
|
@@ -5594,7 +5624,7 @@ var ca = {
|
|
|
5594
5624
|
e.$el.main.selectAll(`line.${W.axisTooltipX}, line.${W.axisTooltipY}`).style("visibility", "hidden"), Object.values(e.$el.axisTooltip).forEach((e) => e?.style("display", "none"));
|
|
5595
5625
|
},
|
|
5596
5626
|
showGridFocus(e) {
|
|
5597
|
-
let t = this, { config: n, state: { width: r, height: a } } = t, o = n.axis_rotated, s =
|
|
5627
|
+
let t = this, { config: n, state: { width: r, height: a } } = t, o = n.axis_rotated, s = oa(t), c = (e || [s.datum()]).filter((e) => e && A(t.getBaseValue(e)));
|
|
5598
5628
|
if (!n.tooltip_show || c.length === 0 || !n.axis_x_forceAsSingle && t.hasType("bubble") || t.hasArcType()) return;
|
|
5599
5629
|
let l = n.grid_focus_edge && !n.tooltip_grouped, u = t.xx.bind(t);
|
|
5600
5630
|
s.style("visibility", null).data(c.concat(c)).each(function(e) {
|
|
@@ -5633,11 +5663,11 @@ var ca = {
|
|
|
5633
5663
|
"x2",
|
|
5634
5664
|
"y2"
|
|
5635
5665
|
].forEach((e, t) => n.attr(e, c[t]));
|
|
5636
|
-
}),
|
|
5666
|
+
}), ca(s), t.showCircleFocus?.(e);
|
|
5637
5667
|
},
|
|
5638
5668
|
hideGridFocus(e = !1) {
|
|
5639
5669
|
let t = this, { state: { inputType: n, resizing: r } } = t;
|
|
5640
|
-
(e || n === "mouse" || !r) && (
|
|
5670
|
+
(e || n === "mouse" || !r) && (oa(t).style("visibility", "hidden"), t.hideCircleFocus?.());
|
|
5641
5671
|
},
|
|
5642
5672
|
updateGridFocus() {
|
|
5643
5673
|
let e = this, { state: { inputType: t, width: n, height: r, resizing: i }, $el: { grid: a } } = e, o = a.main.select(`line.${q.xgridFocus}`);
|
|
@@ -5670,7 +5700,7 @@ var ca = {
|
|
|
5670
5700
|
let l = `grid_${t ? "x" : "y"}_lines`;
|
|
5671
5701
|
r[l] = r[l].filter(o);
|
|
5672
5702
|
}
|
|
5673
|
-
},
|
|
5703
|
+
}, ua = {
|
|
5674
5704
|
grid_x_show: !1,
|
|
5675
5705
|
grid_x_type: "tick",
|
|
5676
5706
|
grid_x_lines: [],
|
|
@@ -5682,37 +5712,37 @@ var ca = {
|
|
|
5682
5712
|
grid_focus_y: !1,
|
|
5683
5713
|
grid_front: !1,
|
|
5684
5714
|
grid_lines_front: !0
|
|
5685
|
-
},
|
|
5715
|
+
}, da = () => (ze(Ii.prototype, la), Ji.prototype.xgrids = na.xgrids, Ji.prototype.ygrids = na.ygrids, At.setOptions([ua]), (da = () => ({}))()), fa = Object.create(null), pa = {
|
|
5686
5716
|
version: "4.0.3",
|
|
5687
5717
|
generate(e) {
|
|
5688
|
-
let t = new
|
|
5718
|
+
let t = new Ji(He(Object.create(null), fa, e));
|
|
5689
5719
|
return t.internal.charts = this.instance, this.instance.push(t), t;
|
|
5690
5720
|
},
|
|
5691
5721
|
defaults(e) {
|
|
5692
|
-
return B(e) && (
|
|
5722
|
+
return B(e) && (fa = e), fa;
|
|
5693
5723
|
},
|
|
5694
5724
|
instance: [],
|
|
5695
5725
|
plugin: {}
|
|
5696
5726
|
};
|
|
5697
5727
|
//#endregion
|
|
5698
5728
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/shape/core/point.js
|
|
5699
|
-
function
|
|
5729
|
+
function ma(e) {
|
|
5700
5730
|
return I(e) && j(e.create) && j(e.update);
|
|
5701
5731
|
}
|
|
5702
|
-
function
|
|
5732
|
+
function ha(e, n) {
|
|
5703
5733
|
let r = this, a = (e, t) => {
|
|
5704
5734
|
let n = e.attributes;
|
|
5705
5735
|
for (let r = 0, i; i = n[r]; r++) i = i.name, t.setAttribute(i, e.getAttribute(i));
|
|
5706
|
-
}, o = new DOMParser().parseFromString(
|
|
5736
|
+
}, o = new DOMParser().parseFromString(je(e), "image/svg+xml").documentElement, s = k.createElementNS(t.svg, o.nodeName.toLowerCase());
|
|
5707
5737
|
if (s.id = n, s.style.fill = "inherit", s.style.stroke = "inherit", a(o, s), o.childNodes?.length) {
|
|
5708
5738
|
let e = i(s);
|
|
5709
|
-
"innerHTML" in s ? e.html(
|
|
5739
|
+
"innerHTML" in s ? e.html(je(o.innerHTML)) : Le(o.childNodes).forEach((t) => {
|
|
5710
5740
|
a(t, e.append(t.tagName).node());
|
|
5711
5741
|
});
|
|
5712
5742
|
}
|
|
5713
5743
|
r.$el.defs.node().appendChild(s);
|
|
5714
5744
|
}
|
|
5715
|
-
var
|
|
5745
|
+
var ga = {
|
|
5716
5746
|
hasValidPointType(e) {
|
|
5717
5747
|
return /^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(e || this.config.point_type);
|
|
5718
5748
|
},
|
|
@@ -5736,16 +5766,16 @@ var ha = {
|
|
|
5736
5766
|
r.indexOf(u) < 0 && r.push(u);
|
|
5737
5767
|
let f = a[r.indexOf(u) % a.length];
|
|
5738
5768
|
if (e.hasValidPointType(f)) f = e[f];
|
|
5739
|
-
else if (!
|
|
5769
|
+
else if (!ma(f || n.point_type)) {
|
|
5740
5770
|
let n = e.getDefsPointId(u);
|
|
5741
|
-
if (t.defs.select(`#${n}`).size() < 1 &&
|
|
5771
|
+
if (t.defs.select(`#${n}`).size() < 1 && ha.call(e, f, n), o === "create") return e.custom?.create.bind(s)(d, n, ...c);
|
|
5742
5772
|
if (o === "update") return e.custom?.update.bind(s)(d, ...c);
|
|
5743
5773
|
}
|
|
5744
5774
|
return f[o]?.bind(s)(d, ...c);
|
|
5745
5775
|
};
|
|
5746
5776
|
};
|
|
5747
5777
|
}
|
|
5748
|
-
},
|
|
5778
|
+
}, _a = {
|
|
5749
5779
|
point_show: !0,
|
|
5750
5780
|
point_r: 2.5,
|
|
5751
5781
|
point_radialGradient: !1,
|
|
@@ -5760,7 +5790,7 @@ var ha = {
|
|
|
5760
5790
|
};
|
|
5761
5791
|
//#endregion
|
|
5762
5792
|
//#region node_modules/billboard.js/dist-esm/Chart/api/axis.js
|
|
5763
|
-
function
|
|
5793
|
+
function va(e, t, n) {
|
|
5764
5794
|
let { config: r } = e, i = (e, n) => {
|
|
5765
5795
|
let i = N(n) ? n : n === !1 ? void 0 : null;
|
|
5766
5796
|
i !== null && (r[`axis_${e}_${t}`] = i);
|
|
@@ -5774,7 +5804,7 @@ function _a(e, t, n) {
|
|
|
5774
5804
|
withUpdateXDomain: !0
|
|
5775
5805
|
}));
|
|
5776
5806
|
}
|
|
5777
|
-
function
|
|
5807
|
+
function ya(e, t) {
|
|
5778
5808
|
let { config: n } = e;
|
|
5779
5809
|
return {
|
|
5780
5810
|
x: n[`axis_x_${t}`],
|
|
@@ -5782,7 +5812,7 @@ function va(e, t) {
|
|
|
5782
5812
|
y2: n[`axis_y2_${t}`]
|
|
5783
5813
|
};
|
|
5784
5814
|
}
|
|
5785
|
-
var
|
|
5815
|
+
var ba = { axis: {
|
|
5786
5816
|
labels: function(e) {
|
|
5787
5817
|
let t = this.internal, n;
|
|
5788
5818
|
return e && (Object.keys(e).forEach((n) => {
|
|
@@ -5798,11 +5828,11 @@ var ya = { axis: {
|
|
|
5798
5828
|
},
|
|
5799
5829
|
min: function(e) {
|
|
5800
5830
|
let t = this.internal;
|
|
5801
|
-
return A(e) || e === !1 ?
|
|
5831
|
+
return A(e) || e === !1 ? va(t, "min", e) : ya(t, "min");
|
|
5802
5832
|
},
|
|
5803
5833
|
max: function(e) {
|
|
5804
5834
|
let t = this.internal;
|
|
5805
|
-
return A(e) || e === !1 ?
|
|
5835
|
+
return A(e) || e === !1 ? va(t, "max", e) : ya(t, "max");
|
|
5806
5836
|
},
|
|
5807
5837
|
range: function(e) {
|
|
5808
5838
|
let { axis: t } = this;
|
|
@@ -5814,10 +5844,10 @@ var ya = { axis: {
|
|
|
5814
5844
|
min: t.min()
|
|
5815
5845
|
};
|
|
5816
5846
|
}
|
|
5817
|
-
} },
|
|
5847
|
+
} }, xa = { groups(e) {
|
|
5818
5848
|
let t = this.internal, { config: n } = t;
|
|
5819
5849
|
return P(e) ? n.data_groups : (n.data_groups = e, t.state.dirty.data = !0, t.redraw(), n.data_groups);
|
|
5820
|
-
} },
|
|
5850
|
+
} }, Sa = {
|
|
5821
5851
|
x(e) {
|
|
5822
5852
|
let t = this.internal, { axis: n, data: r } = t, i = n.isCustomX() && n.isCategorized();
|
|
5823
5853
|
return z(e) && (i ? this.categories(e) : (t.updateTargetX(r.targets, e), t.state.dirty.data = !0, t.redraw({
|
|
@@ -5832,13 +5862,13 @@ var ya = { axis: {
|
|
|
5832
5862
|
withUpdateXDomain: !0
|
|
5833
5863
|
})), t.data.xs;
|
|
5834
5864
|
}
|
|
5835
|
-
},
|
|
5865
|
+
}, Ca = class {
|
|
5836
5866
|
owner;
|
|
5837
5867
|
config;
|
|
5838
5868
|
scale;
|
|
5839
5869
|
charSize = {};
|
|
5840
5870
|
constructor(e) {
|
|
5841
|
-
let t =
|
|
5871
|
+
let t = pr(), { config: n, params: r } = e;
|
|
5842
5872
|
this.owner = e, this.config = n, this.scale = t, (n.noTransition || !r.config.transition_duration) && (n.withoutTransition = !0), n.range = this.scaleExtent((r.orgXScale || t).range());
|
|
5843
5873
|
}
|
|
5844
5874
|
getSizeFor1Char(e, t, n = !0) {
|
|
@@ -5848,7 +5878,7 @@ var ya = { axis: {
|
|
|
5848
5878
|
};
|
|
5849
5879
|
return this.charSize[e] && n ? this.charSize[e] : (!t.empty() && t.text("0").call((e) => {
|
|
5850
5880
|
try {
|
|
5851
|
-
let { width: t, height: n } =
|
|
5881
|
+
let { width: t, height: n } = Vt(e.node(), !0);
|
|
5852
5882
|
t && n && (r.w = t, r.h = n);
|
|
5853
5883
|
} finally {
|
|
5854
5884
|
e.text("");
|
|
@@ -5876,7 +5906,7 @@ var ya = { axis: {
|
|
|
5876
5906
|
} else if (e.ticks) {
|
|
5877
5907
|
let { tickArguments: t } = this.config;
|
|
5878
5908
|
if (e.type === "log" && !t) {
|
|
5879
|
-
let t =
|
|
5909
|
+
let t = pr("_log").domain([r > 0 ? r : 1, i]).range(e.range());
|
|
5880
5910
|
a = t.ticks();
|
|
5881
5911
|
for (let e = i.toFixed().length; a.length > 15; e--) a = t.ticks(e);
|
|
5882
5912
|
a.splice(0, 1, r), a.splice(a.length - 1, 1, i);
|
|
@@ -5900,7 +5930,7 @@ var ya = { axis: {
|
|
|
5900
5930
|
} catch {}
|
|
5901
5931
|
return n;
|
|
5902
5932
|
}
|
|
5903
|
-
},
|
|
5933
|
+
}, wa = class {
|
|
5904
5934
|
helper;
|
|
5905
5935
|
config;
|
|
5906
5936
|
params;
|
|
@@ -5938,7 +5968,7 @@ var ya = { axis: {
|
|
|
5938
5968
|
transition: null,
|
|
5939
5969
|
noTransition: e.noTransition
|
|
5940
5970
|
};
|
|
5941
|
-
t.tickLength = Math.max(t.innerTickSize, 0) + t.tickPadding, this.config = t, this.params = e, this.helper = new
|
|
5971
|
+
t.tickLength = Math.max(t.innerTickSize, 0) + t.tickPadding, this.config = t, this.params = e, this.helper = new Ca(this);
|
|
5942
5972
|
}
|
|
5943
5973
|
create(e) {
|
|
5944
5974
|
let t = this, { config: n, helper: r, params: a } = t, { scale: o } = r, { orient: s } = n, c = this.splitTickText.bind(t), l = /^(left|right)$/.test(s), u = /^(top|bottom)$/.test(s), d = r.getTickTransformSetter(u ? "x" : "y"), f = d === r.axisX ? "y" : "x", p = /^(top|left)$/.test(s) ? -1 : 1, m = a.tickTextRotate;
|
|
@@ -6098,7 +6128,7 @@ var ya = { axis: {
|
|
|
6098
6128
|
}
|
|
6099
6129
|
ticks(...e) {
|
|
6100
6130
|
let { config: t } = this;
|
|
6101
|
-
return e.length ? (t.tickArguments =
|
|
6131
|
+
return e.length ? (t.tickArguments = Le(e), this) : t.tickArguments;
|
|
6102
6132
|
}
|
|
6103
6133
|
tickCulling(e) {
|
|
6104
6134
|
let { config: t } = this;
|
|
@@ -6119,7 +6149,7 @@ var ya = { axis: {
|
|
|
6119
6149
|
};
|
|
6120
6150
|
//#endregion
|
|
6121
6151
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/Axis/Axis.js
|
|
6122
|
-
function
|
|
6152
|
+
function Ta(e) {
|
|
6123
6153
|
let t = [e[0], e[e.length - 1]], n = 0, r = null;
|
|
6124
6154
|
for (let t of e) {
|
|
6125
6155
|
let e = t.textContent?.length ?? 0;
|
|
@@ -6129,12 +6159,12 @@ function wa(e) {
|
|
|
6129
6159
|
let i = e[Math.floor(e.length / 2)];
|
|
6130
6160
|
return t.includes(i) || t.push(i), t;
|
|
6131
6161
|
}
|
|
6132
|
-
var
|
|
6133
|
-
function
|
|
6162
|
+
var Ea = 50, Da = Symbol("tickWidthFallback");
|
|
6163
|
+
function Oa(e) {
|
|
6134
6164
|
let t = e.select("line").node(), n = t?.ownerDocument?.defaultView?.getComputedStyle ? parseFloat(t.ownerDocument.defaultView.getComputedStyle(t).strokeWidth) : parseFloat(t?.getAttribute?.("stroke-width"));
|
|
6135
6165
|
return Number.isFinite(n) && n > 0 ? n : 1;
|
|
6136
6166
|
}
|
|
6137
|
-
function
|
|
6167
|
+
function ka(e, t, n) {
|
|
6138
6168
|
let r = e?.scale?.();
|
|
6139
6169
|
if (!r || t.length < 2) return !1;
|
|
6140
6170
|
let i = Math.max(1, n) / 2, a = t.map((e) => +r(e)).filter(Number.isFinite).sort((e, t) => e - t);
|
|
@@ -6147,8 +6177,8 @@ function Oa(e, t, n) {
|
|
|
6147
6177
|
}
|
|
6148
6178
|
return !1;
|
|
6149
6179
|
}
|
|
6150
|
-
function
|
|
6151
|
-
if (e.length <=
|
|
6180
|
+
function Aa(e, t) {
|
|
6181
|
+
if (e.length <= Ea) return e;
|
|
6152
6182
|
let n = /* @__PURE__ */ new Map(), r = (t) => {
|
|
6153
6183
|
t >= 0 && t < e.length && n.set(t, e[t]);
|
|
6154
6184
|
};
|
|
@@ -6161,76 +6191,76 @@ function ka(e, t) {
|
|
|
6161
6191
|
}
|
|
6162
6192
|
return r(o), Array.from(n.keys()).sort((e, t) => e - t).map((e) => n.get(e));
|
|
6163
6193
|
}
|
|
6164
|
-
function
|
|
6165
|
-
return j(e) ?
|
|
6194
|
+
function ja(e) {
|
|
6195
|
+
return j(e) ? Va(e) : !Array.isArray(e) || e.length <= Ea ? e : {
|
|
6166
6196
|
length: e.length,
|
|
6167
6197
|
first: e[0],
|
|
6168
6198
|
middle: e[Math.floor(e.length / 2)],
|
|
6169
6199
|
last: e[e.length - 1]
|
|
6170
6200
|
};
|
|
6171
6201
|
}
|
|
6172
|
-
function
|
|
6173
|
-
return e[
|
|
6202
|
+
function Ma(e) {
|
|
6203
|
+
return e[Da];
|
|
6174
6204
|
}
|
|
6175
|
-
function
|
|
6176
|
-
N(t) ? Object.defineProperty(e,
|
|
6205
|
+
function Na(e, t) {
|
|
6206
|
+
N(t) ? Object.defineProperty(e, Da, {
|
|
6177
6207
|
configurable: !0,
|
|
6178
6208
|
value: t,
|
|
6179
6209
|
writable: !0
|
|
6180
|
-
}) : delete e[
|
|
6210
|
+
}) : delete e[Da];
|
|
6181
6211
|
}
|
|
6182
|
-
function
|
|
6183
|
-
e.length = 0,
|
|
6212
|
+
function Pa(e) {
|
|
6213
|
+
e.length = 0, Na(e);
|
|
6184
6214
|
}
|
|
6185
|
-
function
|
|
6186
|
-
|
|
6215
|
+
function Fa(e, t, n) {
|
|
6216
|
+
Pa(e), e.length = t, Na(e, n);
|
|
6187
6217
|
}
|
|
6188
|
-
function
|
|
6218
|
+
function Ia(e) {
|
|
6189
6219
|
let t = [];
|
|
6190
6220
|
return t.length = e.length, Object.keys(e).forEach((n) => {
|
|
6191
6221
|
let r = +n;
|
|
6192
6222
|
t[r] = e[r];
|
|
6193
|
-
}),
|
|
6223
|
+
}), Na(t, Ma(e)), t;
|
|
6194
6224
|
}
|
|
6195
|
-
function
|
|
6196
|
-
|
|
6225
|
+
function La(e, t) {
|
|
6226
|
+
Pa(e), e.length = t.length, Object.keys(t).forEach((n) => {
|
|
6197
6227
|
let r = +n;
|
|
6198
6228
|
e[r] = t[r];
|
|
6199
|
-
}),
|
|
6229
|
+
}), Na(e, Ma(t));
|
|
6200
6230
|
}
|
|
6201
|
-
function
|
|
6231
|
+
function Ra(e, t, n) {
|
|
6202
6232
|
let r = e[t];
|
|
6203
6233
|
if (N(r)) return r;
|
|
6204
6234
|
let i = Number(r);
|
|
6205
6235
|
return Number.isFinite(i) ? i : n;
|
|
6206
6236
|
}
|
|
6207
|
-
var
|
|
6208
|
-
function Ba(e) {
|
|
6209
|
-
if (!e || !/^(function|object)$/.test(typeof e)) return `${typeof e}:${String(e)}`;
|
|
6210
|
-
let t = Ra.get(e);
|
|
6211
|
-
return t || (t = ++za, Ra.set(e, t)), `${typeof e}:${t}`;
|
|
6212
|
-
}
|
|
6237
|
+
var za = /* @__PURE__ */ new WeakMap(), Ba = 0;
|
|
6213
6238
|
function Va(e) {
|
|
6214
|
-
|
|
6239
|
+
if (!e || !/^(function|object)$/.test(typeof e)) return `${typeof e}:${String(e)}`;
|
|
6240
|
+
let t = za.get(e);
|
|
6241
|
+
return t || (t = ++Ba, za.set(e, t)), `${typeof e}:${t}`;
|
|
6215
6242
|
}
|
|
6216
6243
|
function Ha(e) {
|
|
6217
|
-
return e instanceof Date ?
|
|
6244
|
+
return e instanceof Date ? `date:${+e}` : Array.isArray(e) ? `[${e.map((e) => Ha(e)).join(",")}]` : e && typeof e == "object" ? `{${Object.keys(e).sort().map((t) => `${t}:${Ha(e[t])}`).join(",")}}` : typeof e == "function" ? Va(e) : `${typeof e}:${String(e)}`;
|
|
6218
6245
|
}
|
|
6219
6246
|
function Ua(e) {
|
|
6247
|
+
return e instanceof Date ? /* @__PURE__ */ new Date(+e) : Array.isArray(e) ? e.map((e) => Ua(e)) : e;
|
|
6248
|
+
}
|
|
6249
|
+
function Wa(e) {
|
|
6220
6250
|
return {
|
|
6221
6251
|
width: e.width,
|
|
6222
6252
|
height: e.height,
|
|
6223
|
-
ticks: e.ticks &&
|
|
6253
|
+
ticks: e.ticks && Ia(e.ticks),
|
|
6224
6254
|
clipPath: e.clipPath,
|
|
6225
|
-
domain:
|
|
6255
|
+
domain: Ua(e.domain)
|
|
6226
6256
|
};
|
|
6227
6257
|
}
|
|
6228
|
-
function
|
|
6229
|
-
return e.width = t.width, e.height = t.height, e.clipPath = t.clipPath, e.domain =
|
|
6258
|
+
function Ga(e, t) {
|
|
6259
|
+
return e.width = t.width, e.height = t.height, e.clipPath = t.clipPath, e.domain = Ua(t.domain), e.ticks && t.ticks && La(e.ticks, t.ticks), e;
|
|
6230
6260
|
}
|
|
6231
|
-
var
|
|
6232
|
-
return this.axis || new
|
|
6233
|
-
} },
|
|
6261
|
+
var Ka = { getAxisInstance: function() {
|
|
6262
|
+
return this.axis || new qa(this);
|
|
6263
|
+
} }, qa = class {
|
|
6234
6264
|
owner;
|
|
6235
6265
|
x;
|
|
6236
6266
|
subX;
|
|
@@ -6285,7 +6315,7 @@ var Ga = { getAxisInstance: function() {
|
|
|
6285
6315
|
if (r) {
|
|
6286
6316
|
if (j(r)) r = r.bind(e.api)(e.getXDomain(e.data.targets), n.subX);
|
|
6287
6317
|
else if (this.isTimeSeries() && r.every(isNaN)) {
|
|
6288
|
-
let t =
|
|
6318
|
+
let t = Ye.bind(e);
|
|
6289
6319
|
r = r.map((e) => n.subX(t(e)));
|
|
6290
6320
|
}
|
|
6291
6321
|
}
|
|
@@ -6340,7 +6370,7 @@ var Ga = { getAxisInstance: function() {
|
|
|
6340
6370
|
let t = o[`axis_${e}_tick_format`];
|
|
6341
6371
|
j(t) && (f = t.bind(a.api));
|
|
6342
6372
|
}
|
|
6343
|
-
let p = this.tick[c], m =
|
|
6373
|
+
let p = this.tick[c], m = He({
|
|
6344
6374
|
outerTick: n,
|
|
6345
6375
|
noTransition: r,
|
|
6346
6376
|
config: o,
|
|
@@ -6356,9 +6386,9 @@ var Ga = { getAxisInstance: function() {
|
|
|
6356
6386
|
orgXScale: a.scale.x
|
|
6357
6387
|
});
|
|
6358
6388
|
s || (m.tickStepSize = o[`axis_${c}_tick_stepSize`]);
|
|
6359
|
-
let h = new
|
|
6389
|
+
let h = new wa(m).scale(s && a.scale.zoom || t).orient(u);
|
|
6360
6390
|
if (s && this.isTimeSeries() && p && !j(p)) {
|
|
6361
|
-
let e =
|
|
6391
|
+
let e = Ye.bind(a);
|
|
6362
6392
|
p = p.map((t) => e(t));
|
|
6363
6393
|
} else !s && this.isTimeSeriesY() && (h.ticks(o.axis_y_tick_time_value), p = null);
|
|
6364
6394
|
p && h.tickValues(p), h.tickFormat(f || !s && a.isStackNormalized() && a.hasAxisGroupedData(e) && ((e) => `${e}%`)), l && (h.tickCentered(o.axis_x_tick_centered), L(o.axis_x_tick_culling) && (o.axis_x_tick_culling = !1));
|
|
@@ -6459,7 +6489,7 @@ var Ga = { getAxisInstance: function() {
|
|
|
6459
6489
|
}
|
|
6460
6490
|
getMaxTickSizeFingerprint(e, t, n, r, i, a) {
|
|
6461
6491
|
let { config: o, state: s } = this.owner, c = e === "x", l = c ? "axis_x" : `axis_${e}`, u = r.tickValues();
|
|
6462
|
-
return
|
|
6492
|
+
return Ha({
|
|
6463
6493
|
id: e,
|
|
6464
6494
|
withoutRecompute: !!a,
|
|
6465
6495
|
dataGeneration: s.dataGeneration,
|
|
@@ -6472,7 +6502,7 @@ var Ga = { getAxisInstance: function() {
|
|
|
6472
6502
|
evalTextSize: o.axis_evalTextSize,
|
|
6473
6503
|
format: this.getTickFormatCacheValue(e),
|
|
6474
6504
|
ticks: {
|
|
6475
|
-
values:
|
|
6505
|
+
values: ja(u),
|
|
6476
6506
|
rawValues: o[`${l}_tick_values`],
|
|
6477
6507
|
arguments: r.ticks(),
|
|
6478
6508
|
count: o[`${l}_tick_count`],
|
|
@@ -6507,14 +6537,14 @@ var Ga = { getAxisInstance: function() {
|
|
|
6507
6537
|
if ((a || r.render_mode === "canvas") && n.scale[e]?.copy) {
|
|
6508
6538
|
let a = /^y2?$/.test(e), s = n.getTargetsToShow(), c = n.scale[e].copy().domain(n[`get${a ? "Y" : "X"}Domain`](s, e)), h = c.domain(), g = h[0] === h[1] && h.every((e) => e > 0), _ = z(l.domain) && l.domain[0] === l.domain[1] && l.domain.every((e) => e > 0);
|
|
6509
6539
|
if (g || _) return l;
|
|
6510
|
-
l.domain = h, a ||
|
|
6540
|
+
l.domain = h, a || Pa(l.ticks);
|
|
6511
6541
|
let v = this.getAxis(e, c, !1, !1, !0), y = r[`${f}_tick_rotate`], b = r[`${f}_tick_count`];
|
|
6512
6542
|
if (!r[`${f}_tick_values`] && b && v.tickValues(this.generateTickValues(h, b, a ? this.isTimeSeriesY() : this.isTimeSeries())), !a && this.updateXAxisTickValues(s, v), m = this.getMaxTickSizeFingerprint(e, c, h, v, y, t), d?.fingerprint === m) return n.cache.add(u, {
|
|
6513
6543
|
...d,
|
|
6514
6544
|
generation: i.redrawGeneration
|
|
6515
|
-
}),
|
|
6516
|
-
let x = v.tickValues(), S = !a && Array.isArray(x) && x.length >
|
|
6517
|
-
S && v.tickValues(
|
|
6545
|
+
}), Ga(l, d.value);
|
|
6546
|
+
let x = v.tickValues(), S = !a && Array.isArray(x) && x.length > Ea;
|
|
6547
|
+
S && v.tickValues(Aa(x, v.tickFormat()));
|
|
6518
6548
|
let C = o.append("svg").style("visibility", "hidden").style("position", "fixed").style("top", "0").style("left", "0"), w = C.append("g").attr("class", `${W[`axis${H(e)}`]} ${U.dummy}`);
|
|
6519
6549
|
v.create(w);
|
|
6520
6550
|
let { sizeFor1Char: T } = w.node(), E = C.selectAll("text").attr("transform", N(y) ? `rotate(${y})` : null), D = S ? x.length : E.size();
|
|
@@ -6526,18 +6556,18 @@ var Ga = { getAxisInstance: function() {
|
|
|
6526
6556
|
let e = [];
|
|
6527
6557
|
if (E.each(function() {
|
|
6528
6558
|
e.push(this);
|
|
6529
|
-
}), (e.length <= 5 ? e :
|
|
6559
|
+
}), (e.length <= 5 ? e : Ta(e)).map((e) => $(e, !0)).forEach((e) => {
|
|
6530
6560
|
p.width = Math.max(p.width, e.width), p.height = Math.max(p.height, e.height);
|
|
6531
6561
|
}), !a) for (let t = 0; t < e.length; t++) l.ticks[t] = p.width;
|
|
6532
6562
|
}
|
|
6533
|
-
!a && S &&
|
|
6563
|
+
!a && S && Fa(l.ticks, D, p.width), C.remove();
|
|
6534
6564
|
}
|
|
6535
6565
|
return Object.keys(p).forEach((e) => {
|
|
6536
6566
|
p[e] > 0 && (l[e] = p[e]);
|
|
6537
6567
|
}), n.cache.add(u, {
|
|
6538
6568
|
fingerprint: m,
|
|
6539
6569
|
generation: i.redrawGeneration,
|
|
6540
|
-
value:
|
|
6570
|
+
value: Wa(l)
|
|
6541
6571
|
}), l;
|
|
6542
6572
|
}
|
|
6543
6573
|
getXAxisTickTextY2Overflow(e) {
|
|
@@ -6549,16 +6579,16 @@ var Ga = { getAxisInstance: function() {
|
|
|
6549
6579
|
return 0;
|
|
6550
6580
|
}
|
|
6551
6581
|
getXAxisTickMaxOverflow(e, t) {
|
|
6552
|
-
let n = this.owner, { axis: r, config: i, state: a } = n, o = r.isTimeSeries(), s = a.current.maxTickSize.x.ticks, c = s.length, l =
|
|
6582
|
+
let n = this.owner, { axis: r, config: i, state: a } = n, o = r.isTimeSeries(), s = a.current.maxTickSize.x.ticks, c = s.length, l = Ma(s) ?? a.current.maxTickSize.x.width, { left: u, right: d } = a.axis.x.padding, f = 0, p = c - (o && i.axis_x_tick_fit ? .5 : 0);
|
|
6553
6583
|
for (let n = 0; n < c; n++) {
|
|
6554
|
-
let r = n + 1, i = Math.cos(Math.PI * e / 180) *
|
|
6584
|
+
let r = n + 1, i = Math.cos(Math.PI * e / 180) * Ra(s, n, l), a = r - (o ? 1 : .5) + u;
|
|
6555
6585
|
if (a <= 0) continue;
|
|
6556
6586
|
let c = (t - i) / a, m = p - r, h = d * c, g = m * c + h, _ = i - c / 2 - g;
|
|
6557
6587
|
f = Math.max(f, _);
|
|
6558
6588
|
}
|
|
6559
6589
|
let m = n.getTargetsToShow(), h = 0;
|
|
6560
6590
|
if (!o && i.axis_x_tick_count <= m.length && m[0].values.length) {
|
|
6561
|
-
let e =
|
|
6591
|
+
let e = pr(n.axis.getAxisType("x"), 0, t - f).domain([u * -1, n.getXDomainMax(n.data.targets) + 1 + d]);
|
|
6562
6592
|
h = (e(1) - e(0)) / 2;
|
|
6563
6593
|
}
|
|
6564
6594
|
return f + h;
|
|
@@ -6649,7 +6679,7 @@ var Ga = { getAxisInstance: function() {
|
|
|
6649
6679
|
].forEach((i) => {
|
|
6650
6680
|
let a = r.axis[i], o = `axis_${i === "subX" ? "x" : i}_tick_culling`, s = e[o];
|
|
6651
6681
|
if (a && s) {
|
|
6652
|
-
let s = a.selectAll(".tick"), c =
|
|
6682
|
+
let s = a.selectAll(".tick"), c = Ue(s.data(), !e[`${o}_reverse`]), l = c.length, u = e[`${o}_max`], d = !e[`${o}_lines`] || ka(this[i], c, Oa(s)), f;
|
|
6653
6683
|
if (l) {
|
|
6654
6684
|
for (let e = 1; e < l; e++) if (l / e < u) {
|
|
6655
6685
|
f = e;
|
|
@@ -6691,15 +6721,15 @@ var Ga = { getAxisInstance: function() {
|
|
|
6691
6721
|
}
|
|
6692
6722
|
});
|
|
6693
6723
|
}
|
|
6694
|
-
},
|
|
6724
|
+
}, Ja = {
|
|
6695
6725
|
initEventRect() {
|
|
6696
|
-
this.$el.main.select(`.${U.chart}`).append("g").attr("class",
|
|
6726
|
+
this.$el.main.select(`.${U.chart}`).append("g").attr("class", pt.eventRects).style("fill-opacity", "0");
|
|
6697
6727
|
},
|
|
6698
6728
|
redrawEventRect() {
|
|
6699
6729
|
let e = this, { config: t, state: n, $el: r } = e, i = e.isMultipleX(), a = t.axis_x_inverted;
|
|
6700
6730
|
if (r.eventRect) e.updateEventRect(r.eventRect, !0);
|
|
6701
6731
|
else if (e.data.targets.length) {
|
|
6702
|
-
let a = e.$el.main.select(`.${
|
|
6732
|
+
let a = e.$el.main.select(`.${pt.eventRects}`).style("cursor", t.zoom_enabled && t.zoom_type !== "drag" ? t.axis_rotated ? "ns-resize" : "ew-resize" : null).classed(pt.eventRectsMultiple, i).classed(pt.eventRectsSingle, !i).selectAll(`.${pt.eventRect}`).data([0]).enter().append("rect");
|
|
6703
6733
|
e.updateEventRect(a), e.updateEventType(a), a.call(e.getDraggableSelection()), r.eventRect = a, e.state.inputType === "touch" && !r.svg.on("touchstart.eventRect") && !e.hasArcType() && e.bindTouchOnEventRect(), n.rendered && e.updateEventRect(r.eventRect, !0);
|
|
6704
6734
|
}
|
|
6705
6735
|
if (!i) {
|
|
@@ -6717,19 +6747,19 @@ var Ga = { getAxisInstance: function() {
|
|
|
6717
6747
|
}
|
|
6718
6748
|
}, o = () => {
|
|
6719
6749
|
e.unselectRect(), e.callOverOutForTouch();
|
|
6720
|
-
}, s = t.interaction_inputType_touch.preventDefault, c =
|
|
6750
|
+
}, s = t.interaction_inputType_touch.preventDefault, c = ie(s) && s || !1, l = !isNaN(s) && s || null, u, d = !c && l === null, f = (e) => {
|
|
6721
6751
|
let n = e.type, r = e.changedTouches[0][`client${t.axis_rotated ? "Y" : "X"}`];
|
|
6722
6752
|
n === "touchstart" ? c ? e.preventDefault() : l !== null && (u = r) : n === "touchmove" && (c || u === !0 || l !== null && Math.abs(u - r) >= l) && (u = !0, e.preventDefault());
|
|
6723
6753
|
};
|
|
6724
6754
|
r.on("touchstart", (t) => {
|
|
6725
6755
|
n.event = t, e.updateEventRect();
|
|
6726
6756
|
}, { passive: d }).on("touchstart.eventRect touchmove.eventRect", (t) => {
|
|
6727
|
-
if (n.event = t, !r.empty() && r.classed(
|
|
6757
|
+
if (n.event = t, !r.empty() && r.classed(pt.eventRect)) {
|
|
6728
6758
|
if (n.dragging || n.flowing || e.hasArcType() || t.touches.length > 1) return;
|
|
6729
6759
|
f(t), a(r.node());
|
|
6730
6760
|
} else o();
|
|
6731
6761
|
}, { passive: d }).on("touchend.eventRect", (t) => {
|
|
6732
|
-
n.event = t, !r.empty() && r.classed(
|
|
6762
|
+
n.event = t, !r.empty() && r.classed(pt.eventRect) && (e.hasArcType() || !e.toggleShape || n.cancelClick) && (n.cancelClick &&= !1);
|
|
6733
6763
|
}, { passive: d }), i.on("touchstart", (e) => {
|
|
6734
6764
|
n.event = e;
|
|
6735
6765
|
let { target: t } = e;
|
|
@@ -6738,15 +6768,15 @@ var Ga = { getAxisInstance: function() {
|
|
|
6738
6768
|
},
|
|
6739
6769
|
updateEventRect(e, t = !1) {
|
|
6740
6770
|
let { state: n, $el: r } = this, { eventReceiver: i, width: a, height: o, rendered: s, resizing: c } = n, l = e || r.eventRect;
|
|
6741
|
-
(!s || c || t) && (l.attr("x", 0).attr("y", 0).attr("width", a).attr("height", o), (!s || t) && l.classed(
|
|
6771
|
+
(!s || c || t) && (l.attr("x", 0).attr("y", 0).attr("width", a).attr("height", o), (!s || t) && l.classed(pt.eventRect, !0)), (() => {
|
|
6742
6772
|
if (i) {
|
|
6743
|
-
let e =
|
|
6773
|
+
let e = Ut(r.chart.node());
|
|
6744
6774
|
i.rect = $(l.node(), !0).toJSON(), i.rect.top += e.y, i.rect.left += e.x;
|
|
6745
6775
|
}
|
|
6746
6776
|
})();
|
|
6747
6777
|
},
|
|
6748
6778
|
updateEventType(e) {
|
|
6749
|
-
let t = this, n =
|
|
6779
|
+
let t = this, n = ie(e), r = n ? t.$el.eventRect : e, i = n ? e !== r?.datum().multipleX : !1;
|
|
6750
6780
|
r && (i && r?.on("mouseover mousemove mouseout click", null), t.isMultipleX() ? t.generateEventRectsForMultipleXs(r) : t.generateEventRectsForSingleX(r));
|
|
6751
6781
|
},
|
|
6752
6782
|
updateEventRectData() {
|
|
@@ -6794,7 +6824,7 @@ var Ga = { getAxisInstance: function() {
|
|
|
6794
6824
|
let i = r.data();
|
|
6795
6825
|
s && (c || l?.bind(n.api)(i)) && (e.style.cursor = "pointer"), u || (n.showTooltip(i, e), n.showGridFocus?.(i), n.unexpandCircles?.(), r.each((e) => n.setExpand(t, e.id)));
|
|
6796
6826
|
}), !u && f.empty()) {
|
|
6797
|
-
let a =
|
|
6827
|
+
let a = Bt(i.event, e), o = d.filter((e) => n.isTargetToShow(e.id) ? n.dist(e, a) < n.getPointSensitivity(e) : !1);
|
|
6798
6828
|
if (o.length > 0) {
|
|
6799
6829
|
let r = o[0], i = n.dist(r, a);
|
|
6800
6830
|
for (let e = 1; e < o.length; e++) {
|
|
@@ -6808,7 +6838,7 @@ var Ga = { getAxisInstance: function() {
|
|
|
6808
6838
|
selectRectForMultipleXs(e, t = !0) {
|
|
6809
6839
|
let n = this, { config: r, state: i } = n, a = n.getTargetsToShow();
|
|
6810
6840
|
if (i.dragging || n.hasArcType(a)) return;
|
|
6811
|
-
let o =
|
|
6841
|
+
let o = Bt(i.event, e), s = n.findClosestFromTargets(a, o);
|
|
6812
6842
|
if (t && i.mouseover && (!s || s.id !== i.mouseover.id) && (r.data_onout.call(n.api, i.mouseover), i.mouseover = void 0), !s) {
|
|
6813
6843
|
n.unselectRect();
|
|
6814
6844
|
return;
|
|
@@ -6844,14 +6874,14 @@ var Ga = { getAxisInstance: function() {
|
|
|
6844
6874
|
if (r.event = a, !o) return;
|
|
6845
6875
|
let { index: s } = o, c = n.line_step_type;
|
|
6846
6876
|
if (n.line_step_tooltipMatch && t.hasType("step") && /^step\-(before|after)$/.test(c)) {
|
|
6847
|
-
let e = t.scale.zoom || t.scale.x, n = t.axis.xs[s], r = e.invert(
|
|
6877
|
+
let e = t.scale.zoom || t.scale.x, n = t.axis.xs[s], r = e.invert(Bt(a, this)[0]);
|
|
6848
6878
|
c === "step-after" && r < n ? --s : c === "step-before" && r > n && (s += 1);
|
|
6849
6879
|
}
|
|
6850
6880
|
t.showAxisGridFocus();
|
|
6851
6881
|
let l = n.tooltip_grouped && s === i.currentIdx;
|
|
6852
6882
|
if (r.dragging || r.flowing || t.hasArcType() || l) {
|
|
6853
6883
|
if (n.tooltip_show && l) {
|
|
6854
|
-
let [e, n] =
|
|
6884
|
+
let [e, n] = Bt(a, this), i = r._lastTooltipMouse;
|
|
6855
6885
|
(!i || (e - i[0]) ** 2 + (n - i[1]) ** 2 >= 9) && (r._lastTooltipMouse = [e, n], t.setTooltipPosition());
|
|
6856
6886
|
}
|
|
6857
6887
|
return;
|
|
@@ -6887,14 +6917,14 @@ var Ga = { getAxisInstance: function() {
|
|
|
6887
6917
|
clickHandlerForMultipleXS(e) {
|
|
6888
6918
|
let t = e, { config: n, state: r } = t, i = t.getTargetsToShow();
|
|
6889
6919
|
if (t.hasArcType(i)) return;
|
|
6890
|
-
let a =
|
|
6920
|
+
let a = Bt(r.event, this), o = t.findClosestFromTargets(i, a);
|
|
6891
6921
|
if (!o) return;
|
|
6892
6922
|
let s = t.getPointSensitivity(o);
|
|
6893
6923
|
(t.isBarType(o.id) || t.dist(o, a) < s) && t.$el.main.selectAll(`.${Y.shapes}${t.getTargetSelectorSuffix(o.id)}`).selectAll(`.${Y.shape}-${o.index}`).each(function() {
|
|
6894
6924
|
(n.data_selection_grouped || t.isWithinShape(this, o)) && (t.toggleShape?.(this, o, o.index), n.data_onclick.bind(t.api)(o, this));
|
|
6895
6925
|
});
|
|
6896
6926
|
}
|
|
6897
|
-
},
|
|
6927
|
+
}, Ya = {
|
|
6898
6928
|
initClip() {
|
|
6899
6929
|
let e = this, { clip: t, datetimeId: n } = e.state;
|
|
6900
6930
|
t.id = `${n}-clip`, t.idXAxis = `${t.id}-xaxis`, t.idYAxis = `${t.id}-yaxis`, t.idGrid = `${t.id}-grid`, t.path = e.getClipPath(t.id), t.pathXAxis = e.getClipPath(t.idXAxis), t.pathYAxis = e.getClipPath(t.idYAxis), t.pathGrid = e.getClipPath(t.idGrid);
|
|
@@ -6933,7 +6963,7 @@ var Ga = { getAxisInstance: function() {
|
|
|
6933
6963
|
let { state: { clip: e, current: t }, $el: { svg: n } } = this;
|
|
6934
6964
|
n && n.select(`#${e.idXAxisTickTexts} rect`).attr("width", t.maxTickSize.x.clipPath).attr("height", 30);
|
|
6935
6965
|
}
|
|
6936
|
-
},
|
|
6966
|
+
}, Xa = {
|
|
6937
6967
|
getAxisSize(e) {
|
|
6938
6968
|
let t = this, n = t.config.axis_rotated;
|
|
6939
6969
|
return n && e === "x" || !n && /y2?/.test(e) ? t.getAxisWidthByAxisId(e, !0) : t.getHorizontalAxisHeight(e);
|
|
@@ -6979,7 +7009,7 @@ var Ga = { getAxisInstance: function() {
|
|
|
6979
7009
|
let e = this, { state: { axis: t, current: n, isLegendRight: r, legendItemWidth: i } } = e, a = r && i, o = n.width - a - e.getCurrentPaddingByDirection("left") - e.getCurrentPaddingByDirection("right"), s = t.x.tickCount + t.x.padding.left + t.x.padding.right, { width: c } = e.axis.getMaxTickSize("x");
|
|
6980
7010
|
return c > (s ? o / s : 0);
|
|
6981
7011
|
}
|
|
6982
|
-
},
|
|
7012
|
+
}, Za = {
|
|
6983
7013
|
axis_x_clipPath: !0,
|
|
6984
7014
|
axis_x_show: !0,
|
|
6985
7015
|
axis_x_forceAsSingle: !1,
|
|
@@ -7017,7 +7047,7 @@ var Ga = { getAxisInstance: function() {
|
|
|
7017
7047
|
axis_x_extent: void 0,
|
|
7018
7048
|
axis_x_label: {},
|
|
7019
7049
|
axis_x_axes: []
|
|
7020
|
-
},
|
|
7050
|
+
}, Qa = {
|
|
7021
7051
|
axis_y_clipPath: !0,
|
|
7022
7052
|
axis_y_show: !0,
|
|
7023
7053
|
axis_y_type: "indexed",
|
|
@@ -7048,7 +7078,7 @@ var Ga = { getAxisInstance: function() {
|
|
|
7048
7078
|
axis_y_padding: {},
|
|
7049
7079
|
axis_y_default: void 0,
|
|
7050
7080
|
axis_y_axes: []
|
|
7051
|
-
},
|
|
7081
|
+
}, $a = {
|
|
7052
7082
|
axis_y2_show: !1,
|
|
7053
7083
|
axis_y2_type: "indexed",
|
|
7054
7084
|
axis_y2_max: void 0,
|
|
@@ -7077,14 +7107,14 @@ var Ga = { getAxisInstance: function() {
|
|
|
7077
7107
|
axis_y2_padding: {},
|
|
7078
7108
|
axis_y2_default: void 0,
|
|
7079
7109
|
axis_y2_axes: []
|
|
7080
|
-
},
|
|
7110
|
+
}, eo = {
|
|
7081
7111
|
axis_evalTextSize: !0,
|
|
7082
7112
|
axis_rotated: !1,
|
|
7083
7113
|
axis_tooltip: !1,
|
|
7084
|
-
...Xa,
|
|
7085
7114
|
...Za,
|
|
7086
|
-
...Qa
|
|
7087
|
-
|
|
7115
|
+
...Qa,
|
|
7116
|
+
...$a
|
|
7117
|
+
}, to = {
|
|
7088
7118
|
data_xs: {},
|
|
7089
7119
|
data_xFormat: "%Y-%m-%d",
|
|
7090
7120
|
data_xLocaltime: !0,
|
|
@@ -7092,39 +7122,39 @@ var Ga = { getAxisInstance: function() {
|
|
|
7092
7122
|
data_axes: {},
|
|
7093
7123
|
data_regions: {},
|
|
7094
7124
|
data_stack_normalize: !1
|
|
7095
|
-
},
|
|
7096
|
-
ya,
|
|
7125
|
+
}, no = [
|
|
7097
7126
|
ba,
|
|
7098
|
-
xa
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7127
|
+
xa,
|
|
7128
|
+
Sa
|
|
7129
|
+
], ro = {
|
|
7130
|
+
axis: Ka,
|
|
7131
|
+
clip: Ya,
|
|
7132
|
+
eventrect: Ja,
|
|
7133
|
+
sizeAxis: Xa
|
|
7134
|
+
}, io = {
|
|
7135
|
+
optDataAxis: to,
|
|
7136
|
+
optAxis: eo
|
|
7107
7137
|
};
|
|
7108
7138
|
//#endregion
|
|
7109
7139
|
//#region node_modules/billboard.js/dist-esm/config/resolver/axis.core.js
|
|
7110
|
-
function
|
|
7140
|
+
function ao(e) {
|
|
7111
7141
|
return Object.keys(e).map((t) => e[t]);
|
|
7112
7142
|
}
|
|
7113
|
-
function
|
|
7114
|
-
|
|
7143
|
+
function oo(e = [], t = []) {
|
|
7144
|
+
ze(Ii.prototype, ao(ro).concat(e)), ze(Ji.prototype, no), At.setOptions(ao(io).concat(t));
|
|
7115
7145
|
}
|
|
7116
7146
|
//#endregion
|
|
7117
7147
|
//#region node_modules/billboard.js/dist-esm/config/resolver/shape/axis.helpers.js
|
|
7118
|
-
function
|
|
7119
|
-
|
|
7148
|
+
function so(e = [], t = []) {
|
|
7149
|
+
oo(e, t);
|
|
7120
7150
|
}
|
|
7121
7151
|
//#endregion
|
|
7122
7152
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/shape/core/barRadius.js
|
|
7123
|
-
function
|
|
7153
|
+
function co(e) {
|
|
7124
7154
|
let { bar_radius: t, bar_radius_ratio: n } = e.config;
|
|
7125
7155
|
return N(t) && t > 0 ? () => t : N(n) ? (e) => e * n : null;
|
|
7126
7156
|
}
|
|
7127
|
-
function
|
|
7157
|
+
function lo(e) {
|
|
7128
7158
|
let { config: t, data: n } = e, r = /* @__PURE__ */ new Set();
|
|
7129
7159
|
if (!t.data_groups.length) return r;
|
|
7130
7160
|
let i = e.orderTargets(e.filterTargetsToShow(n.targets.filter(e.isBarType, e)));
|
|
@@ -7136,7 +7166,7 @@ function co(e) {
|
|
|
7136
7166
|
}
|
|
7137
7167
|
return r;
|
|
7138
7168
|
}
|
|
7139
|
-
function
|
|
7169
|
+
function uo(e, t, n) {
|
|
7140
7170
|
return n ? e ? t ? {
|
|
7141
7171
|
tl: n,
|
|
7142
7172
|
bl: n
|
|
@@ -7151,11 +7181,11 @@ function lo(e, t, n) {
|
|
|
7151
7181
|
tr: n
|
|
7152
7182
|
} : 0;
|
|
7153
7183
|
}
|
|
7154
|
-
function
|
|
7184
|
+
function fo(e, t, n, r) {
|
|
7155
7185
|
let i = "";
|
|
7156
7186
|
return n ? r && e[0] < t ? i = `0 ${t - e[0]}px 0 0` : !r && e[0] > t && (i = `0 0 0 ${e[0] - t}px`) : r && e[1] > t ? i = `${e[1] - t}px 0 0 0` : !r && e[1] < t && (i = `0 0 ${t - e[1]}px 0`), i ? `inset(${i})` : null;
|
|
7157
7187
|
}
|
|
7158
|
-
function
|
|
7188
|
+
function po(e, t, n, r, i, a) {
|
|
7159
7189
|
let { config: o, state: s } = e, c = o.axis_rotated, l = +c, u = +!l, d = t.value < 0, f = o[`axis_${e.axis.getId(t.id)}_inverted`], p = !f && d || f && !d, m = e.isGrouped(t.id), h = r && m && t.value !== 0 ? s.hiddenTargetIds.has(t.id) && a ? a(t) : i.has(`${t.id}:${t.index}`) : !1, g = [n[0][l], n[0][u]], _ = 0;
|
|
7160
7190
|
if (r) {
|
|
7161
7191
|
let e = c ? u : l, t = Math.abs(n[2][e] - n[0][e]);
|
|
@@ -7164,8 +7194,8 @@ function fo(e, t, n, r, i, a) {
|
|
|
7164
7194
|
let v = c ? n[1][l] + (p ? _ : -_) : n[1][u] + (p ? -_ : _);
|
|
7165
7195
|
return {
|
|
7166
7196
|
radius: _,
|
|
7167
|
-
corners:
|
|
7168
|
-
clipPath: _ ?
|
|
7197
|
+
corners: uo(c, p, _),
|
|
7198
|
+
clipPath: _ ? fo(g, v, c, p) : null,
|
|
7169
7199
|
indexX: l,
|
|
7170
7200
|
indexY: u,
|
|
7171
7201
|
isNegative: p,
|
|
@@ -7174,18 +7204,18 @@ function fo(e, t, n, r, i, a) {
|
|
|
7174
7204
|
}
|
|
7175
7205
|
//#endregion
|
|
7176
7206
|
//#region node_modules/billboard.js/dist-esm/ChartInternal/shape/bar.js
|
|
7177
|
-
function
|
|
7207
|
+
function mo(e) {
|
|
7178
7208
|
let t = this.config.bar_connectLine, n = t?.[e] || t;
|
|
7179
7209
|
return /^(start|end)\-(start|end)$/.test(n) ? n : null;
|
|
7180
7210
|
}
|
|
7181
|
-
var
|
|
7211
|
+
var ho = {
|
|
7182
7212
|
initBar() {
|
|
7183
7213
|
let { $el: e, config: t, state: { clip: n } } = this;
|
|
7184
7214
|
e.bar = e.main.select(`.${U.chart}`), e.bar = t.bar_front ? e.bar.append("g") : e.bar.insert("g", ":first-child"), e.bar.attr("class", G.chartBars).call(this.setCssRule(!1, `.${G.chartBars}`, ["pointer-events:none"])), t.clipPath === !1 && (t.bar_radius || t.bar_radius_ratio) && e.bar.attr("clip-path", n.pathXAxis.replace(/#[^)]*/, `#${n.id}`));
|
|
7185
7215
|
},
|
|
7186
7216
|
updateTargetsForBar(e) {
|
|
7187
7217
|
let t = this, { config: n } = t, r = t.getClass("bars", !0), a = n.interaction_enabled && n.data_selection_isselectable;
|
|
7188
|
-
|
|
7218
|
+
Mi.call(t, e, {
|
|
7189
7219
|
type: "Bar",
|
|
7190
7220
|
elKey: "bar",
|
|
7191
7221
|
containerClass: G.chartBars,
|
|
@@ -7193,7 +7223,7 @@ var mo = {
|
|
|
7193
7223
|
initFn: t.initBar
|
|
7194
7224
|
}).append("g").attr("class", r).style("cursor", (e) => a?.bind?.(t.api)(e) ? "pointer" : null).call((e) => {
|
|
7195
7225
|
t.setCssRule(!0, ` .${G.bar}`, ["fill"], t.color)(e), e.each(function(e) {
|
|
7196
|
-
|
|
7226
|
+
mo.call(t, e.id) && i(this).append("path").attr("class", G.barConnectLine);
|
|
7197
7227
|
});
|
|
7198
7228
|
});
|
|
7199
7229
|
},
|
|
@@ -7207,7 +7237,7 @@ var mo = {
|
|
|
7207
7237
|
},
|
|
7208
7238
|
generateUpdateBarColor() {
|
|
7209
7239
|
let e = this, t = e.getStylePropValue(e.color) || (() => null);
|
|
7210
|
-
return (n) =>
|
|
7240
|
+
return (n) => ji.call(e, n, "bar_linearGradient", t);
|
|
7211
7241
|
},
|
|
7212
7242
|
updateBarColor(e) {
|
|
7213
7243
|
return this.generateUpdateBarColor()(e);
|
|
@@ -7216,25 +7246,25 @@ var mo = {
|
|
|
7216
7246
|
let r = this;
|
|
7217
7247
|
if (r.state.isCanvasMode) return [];
|
|
7218
7248
|
let { bar: a } = n ? r.$el.subchart : r.$el, o = [], s = /* @__PURE__ */ new Map();
|
|
7219
|
-
return [r.$T(a, t,
|
|
7249
|
+
return [r.$T(a, t, Ke()).attr("d", function(n, a, c) {
|
|
7220
7250
|
let l = (N(n.value) || r.isBarRangeType(n)) && e(n, a), u = s.get(n.id);
|
|
7221
|
-
if (u === void 0 && (u =
|
|
7222
|
-
let e = r.$T(i(this.parentNode.querySelector(`.${G.barConnectLine}`)), t,
|
|
7251
|
+
if (u === void 0 && (u = mo.call(r, n.id), s.set(n.id, u)), l.length > 1 && o.push(l[1]), a === c.length - 1 && o.length) {
|
|
7252
|
+
let e = r.$T(i(this.parentNode.querySelector(`.${G.barConnectLine}`)), t, Ke());
|
|
7223
7253
|
r.updateConnectLine(e, u, o), o.splice(0);
|
|
7224
7254
|
}
|
|
7225
7255
|
return l[0];
|
|
7226
7256
|
}).style("fill", r.generateUpdateBarColor()).style("clip-path", (e) => e.clipPath).style("opacity", null)];
|
|
7227
7257
|
},
|
|
7228
7258
|
generateDrawBar(e, t) {
|
|
7229
|
-
let n = this, { config: r } = n, i = n.generateGetBarPoints(e, t), a =
|
|
7259
|
+
let n = this, { config: r } = n, i = n.generateGetBarPoints(e, t), a = co(n), o = a ? lo(n) : /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
|
|
7230
7260
|
return (e, t) => {
|
|
7231
|
-
let c = i(e, t), { indexX: l, indexY: u, isNegative: d, pos: f, radius: p, clipPath: m } =
|
|
7261
|
+
let c = i(e, t), { indexX: l, indexY: u, isNegative: d, pos: f, radius: p, clipPath: m } = po(n, e, c, a, o, n.isStackingRadiusData.bind(n)), h = ["", ""];
|
|
7232
7262
|
if (e.clipPath = m, a) {
|
|
7233
7263
|
let e = `a${p} ${p} ${d ? "1 0 0" : "0 0 1"} `;
|
|
7234
7264
|
h[u] = `${e}${p},${p}`, h[l] = `${e}${[-p, p][r.axis_rotated ? "sort" : "reverse"]()}`, d && h.reverse();
|
|
7235
7265
|
}
|
|
7236
7266
|
let g = r.axis_rotated ? `H${f} ${h[0]}V${c[2][u] - p} ${h[1]}H${c[3][l]}` : `V${f} ${h[0]}H${c[2][l] - p} ${h[1]}V${c[3][u]}`, _ = [`M${c[0][l]},${c[0][u]}${g}z`], v = s.get(e.id);
|
|
7237
|
-
return v === void 0 && (v =
|
|
7267
|
+
return v === void 0 && (v = mo.call(n, e.id), s.set(e.id, v)), v && _.push(r.axis_rotated ? {
|
|
7238
7268
|
x: c[0][l],
|
|
7239
7269
|
y: c[0][u],
|
|
7240
7270
|
width: c[0][l] - f,
|
|
@@ -7266,7 +7296,7 @@ var mo = {
|
|
|
7266
7296
|
});
|
|
7267
7297
|
e.attr("d", `M${r.join("")}z`);
|
|
7268
7298
|
}
|
|
7269
|
-
},
|
|
7299
|
+
}, go = {
|
|
7270
7300
|
bar_connectLine: !1,
|
|
7271
7301
|
bar_front: !1,
|
|
7272
7302
|
bar_indices_removeNull: !1,
|
|
@@ -7281,12 +7311,12 @@ var mo = {
|
|
|
7281
7311
|
bar_width_ratio: .6,
|
|
7282
7312
|
bar_width_max: void 0,
|
|
7283
7313
|
bar_zerobased: !0
|
|
7284
|
-
},
|
|
7314
|
+
}, _o = () => (so([ho, ga], [go, _a]), (_o = () => C.BAR)());
|
|
7285
7315
|
//#endregion
|
|
7286
7316
|
//#region src/billboardJs.ts
|
|
7287
|
-
function
|
|
7288
|
-
let n = e.series.map((e) => [e.name, ...e.values]), r =
|
|
7289
|
-
...
|
|
7317
|
+
function vo(e, t) {
|
|
7318
|
+
let n = e.series.map((e) => [e.name, ...e.values]), r = pa.generate({
|
|
7319
|
+
...da(),
|
|
7290
7320
|
axis: { x: {
|
|
7291
7321
|
categories: e.categories,
|
|
7292
7322
|
type: "category"
|
|
@@ -7294,7 +7324,7 @@ function _o(e, t) {
|
|
|
7294
7324
|
bindto: t,
|
|
7295
7325
|
data: {
|
|
7296
7326
|
columns: n,
|
|
7297
|
-
type:
|
|
7327
|
+
type: _o()
|
|
7298
7328
|
}
|
|
7299
7329
|
});
|
|
7300
7330
|
return {
|
|
@@ -7308,6 +7338,6 @@ function _o(e, t) {
|
|
|
7308
7338
|
};
|
|
7309
7339
|
}
|
|
7310
7340
|
//#endregion
|
|
7311
|
-
export {
|
|
7341
|
+
export { vo as renderBillboardJS };
|
|
7312
7342
|
|
|
7313
|
-
//# sourceMappingURL=billboardJs-
|
|
7343
|
+
//# sourceMappingURL=billboardJs-DJFb72FS.js.map
|