@silurus/ooxml 0.81.0 → 0.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -8
- package/dist/assets/render-worker-7-Zr7fSw.js +10 -0
- package/dist/assets/{render-worker-C2ACcLes.js → render-worker-B5gsW6b5.js} +4 -4
- package/dist/assets/{render-worker-DtU8oQZ7.js → render-worker-Dw_wQRIh.js} +1 -1
- package/dist/{canvas-viewer-mechanics-CqxKRGCp.js → canvas-viewer-mechanics-CS_qbr6T.js} +1 -1
- package/dist/chart-ex.mjs +4 -4
- package/dist/comment-occurrence-C34fWs_F.js +6 -0
- package/dist/comment-ui-runtime-BAe30Ct9.js +112 -0
- package/dist/comment-ui-runtime-BUCj4hWn.js +171 -0
- package/dist/comment-ui-runtime-F4a3te6p.js +2 -0
- package/dist/comments-Cf9W7r3M.js +241 -0
- package/dist/{document-pull-client-Ux4a_ax8.js → document-pull-client-BCgmytqI.js} +2205 -2192
- package/dist/{docx-SEyQ4gS-.js → docx-wokGKYfi.js} +674 -249
- package/dist/docx.mjs +6 -5
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/dom-interaction-boundary-C8F6HO5x.js +119 -0
- package/dist/highlight-rect-MaCt0om0.js +13 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-BBGvvwLt.js → line-distribute-iXsUCIH-.js} +2 -2
- package/dist/{line-metrics-Baz31mML.js → line-metrics-B3syvDn2.js} +52 -52
- package/dist/math.mjs +2 -2
- package/dist/node.mjs +10 -10
- package/dist/{plot-area-frame-Dg1VIpUU.js → plot-area-frame-DHV02PJU.js} +591 -590
- package/dist/{pptx-5lQrMvMR.js → pptx-DU8L8I2T.js} +537 -243
- package/dist/pptx.mjs +6 -6
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/read-only-comment-decoration-DcFevX_Q.js +96 -0
- package/dist/read-only-comment-margin-Dn2y55W6.js +189 -0
- package/dist/region-map.mjs +2 -2
- package/dist/{render-DEHjijQD.js → render-CenWM4g1.js} +1 -1
- package/dist/{render-worker-host-Dg_74V64.js → render-worker-host-BNENN3qP.js} +1 -1
- package/dist/{render-worker-host-B1nbV_k7.js → render-worker-host-BmH3kGSj.js} +1 -1
- package/dist/{render-worker-host-Bze5M6k5.js → render-worker-host-CmPBviYJ.js} +1 -1
- package/dist/{renderer-DuopJE1K.js → renderer-CYr9YTXM.js} +436 -435
- package/dist/{resource-measurement-DRLp4nFt.js → resource-measurement-CsW4_eYt.js} +2 -2
- package/dist/{session-CNVc3VJ4.js → session-Cky_swUj.js} +3 -3
- package/dist/{slide-pull-client-CzutXnGc.js → slide-pull-client-CqTVFb3W.js} +490 -383
- package/dist/source-key-BklvnEyQ.js +42 -0
- package/dist/{three-d-BYiWCNlz.js → three-d-7MaVzQuZ.js} +48 -47
- package/dist/three-d.mjs +324 -323
- package/dist/types/chart-ex.d.ts +2 -2
- package/dist/types/docx.d.ts +181 -19
- package/dist/types/index.d.ts +337 -26
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +84 -10
- package/dist/types/pptx.d.ts +130 -11
- package/dist/types/region-map.d.ts +2 -2
- package/dist/types/three-d.d.ts +2 -2
- package/dist/types/xlsx.d.ts +76 -10
- package/dist/units-BzZ0gAxs.js +4 -0
- package/dist/{worksheet-pull-client-Cxj3Ej0s.js → worksheet-pull-client-CYtwXP5D.js} +3 -3
- package/dist/{xlsx-Bl3TIEVu.js → xlsx-DlV37-0j.js} +429 -218
- package/dist/xlsx.mjs +6 -6
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/assets/render-worker-Cx5uR77k.js +0 -10
- package/dist/highlight-rect-BqcZMHUE.js +0 -48
- /package/dist/{mathjax-DJa-Q93p.js → mathjax-DwIrafQ6.js} +0 -0
- /package/dist/{renderer-module-contract-0bO_5SC0.js → renderer-module-contract-DLbb7zY0.js} +0 -0
- /package/dist/{transfer-D0U6Uhn4.js → transfer-R6NjgBKD.js} +0 -0
- /package/dist/{visible-index-DbDuGMCE.js → visible-index-BFE3PWiY.js} +0 -0
package/dist/three-d.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { A as e, At as t, B as n, Bt as r, Ct as i, Dt as a, E as o, Et as s, H as c, Ht as l, It as u, J as d, Jt as f, Kt as p, Lt as m, Mt as h, Nt as g, R as _, Rt as v, St as y, Ut as b, Wt as x, Xt as S, Y as C, Yt as w, _t as T, a as E,
|
|
2
|
-
import {
|
|
3
|
-
import { t as _e } from "./
|
|
4
|
-
|
|
1
|
+
import { A as e, At as t, B as n, Bt as r, Ct as i, Dt as a, E as o, Et as s, H as c, Ht as l, It as u, J as d, Jt as f, Kt as p, Lt as m, Mt as h, Nt as g, R as _, Rt as v, St as y, Ut as b, Wt as x, Xt as S, Y as C, Yt as w, _t as T, a as E, at as D, b as O, bt as k, ct as A, ft as j, ht as M, it as N, jt as P, kt as F, mt as I, n as L, ot as R, r as z, st as ee, t as B, v as V, vt as te, wt as ne, x as H, xt as re, yt as ie } from "./plot-area-frame-DHV02PJU.js";
|
|
2
|
+
import { a as U, r as W } from "./units-BzZ0gAxs.js";
|
|
3
|
+
import { D as G, E as K, O as ae, _ as q, a as J, c as oe, d as Y, g as se, h as ce, i as le, k as ue, m as de, n as fe, o as pe, r as me, s as he, t as ge, x as _e } from "./three-d-7MaVzQuZ.js";
|
|
4
|
+
import { t as ve } from "./renderer-module-contract-DLbb7zY0.js";
|
|
5
|
+
function ye(e) {
|
|
5
6
|
switch (e) {
|
|
6
7
|
case "cylinder":
|
|
7
8
|
case "cone":
|
|
@@ -11,8 +12,8 @@ function ve(e) {
|
|
|
11
12
|
default: return "box";
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
var
|
|
15
|
-
function
|
|
15
|
+
var be = (e) => Math.max(0, Math.min(1, e));
|
|
16
|
+
function xe(e, t) {
|
|
16
17
|
if (t.length < 3) return null;
|
|
17
18
|
let n = e[t[0]];
|
|
18
19
|
for (let r = 1; r + 1 < t.length; r++) for (let i = r + 1; i < t.length; i++) {
|
|
@@ -37,7 +38,7 @@ function be(e, t) {
|
|
|
37
38
|
}
|
|
38
39
|
return null;
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function Se(e, t) {
|
|
41
42
|
let n = e.reduce((t, n) => ({
|
|
42
43
|
x: t.x + n.x / e.length,
|
|
43
44
|
y: t.y + n.y / e.length,
|
|
@@ -48,7 +49,7 @@ function xe(e, t) {
|
|
|
48
49
|
depth: 0
|
|
49
50
|
});
|
|
50
51
|
return t.map((t) => {
|
|
51
|
-
let r =
|
|
52
|
+
let r = xe(e, t.indices);
|
|
52
53
|
if (!r) return t;
|
|
53
54
|
let i = t.indices.reduce((n, r) => ({
|
|
54
55
|
x: n.x + e[r].x / t.indices.length,
|
|
@@ -69,7 +70,7 @@ function xe(e, t) {
|
|
|
69
70
|
};
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function Ce(e) {
|
|
73
74
|
let { horizontal: t, crossStart: n, crossSize: r, baseCoord: i, endCoord: a, nearDepth: o, farDepth: s } = e;
|
|
74
75
|
if (![
|
|
75
76
|
n,
|
|
@@ -79,7 +80,7 @@ function Se(e) {
|
|
|
79
80
|
o,
|
|
80
81
|
s
|
|
81
82
|
].every(Number.isFinite) || r <= 0 || i === a || o === s) return null;
|
|
82
|
-
let c =
|
|
83
|
+
let c = ye(e.shape), l = c === "cylinder" || c === "cone" || c === "coneToMax", u = c !== "box" && c !== "cylinder", d = c === "coneToMax" || c === "pyramidToMax", f = l ? Math.max(8, Math.min(64, Math.trunc(e.roundSegments ?? 32))) : 4, p = be(e.baseScale ?? (d ? e.toMaxBaseScale ?? 1 : 1)), m = be(e.endScale ?? (u ? d ? e.toMaxEndScale ?? 0 : 0 : 1));
|
|
83
84
|
if (p === 0 && m === 0) return null;
|
|
84
85
|
let h = n + r / 2, g = r / 2, _ = (o + s) / 2, v = Math.abs(s - o) / 2, y = [], b = (e, n) => {
|
|
85
86
|
if (n === 0) {
|
|
@@ -146,11 +147,11 @@ function Se(e) {
|
|
|
146
147
|
return {
|
|
147
148
|
shape: c,
|
|
148
149
|
vertices: y,
|
|
149
|
-
faces:
|
|
150
|
+
faces: Se(y, w),
|
|
150
151
|
silhouetteEdges: T
|
|
151
152
|
};
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
+
function we(e) {
|
|
154
155
|
let { x0: t, x1: n, lower0: r, lower1: i, upper0: a, upper1: o, nearDepth: s, farDepth: c, capStart: l, capEnd: u } = e;
|
|
155
156
|
if (![
|
|
156
157
|
t,
|
|
@@ -210,7 +211,7 @@ function Ce(e) {
|
|
|
210
211
|
return {
|
|
211
212
|
shape: "areaStrip",
|
|
212
213
|
vertices: _,
|
|
213
|
-
faces:
|
|
214
|
+
faces: Se(_, [
|
|
214
215
|
{
|
|
215
216
|
indices: [
|
|
216
217
|
0,
|
|
@@ -275,17 +276,17 @@ function Ce(e) {
|
|
|
275
276
|
silhouetteEdges: []
|
|
276
277
|
};
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
+
function Te(e) {
|
|
279
280
|
let t = e.upper0 - e.lower0, n = e.upper1 - e.lower1;
|
|
280
281
|
if (Number.isFinite(t) && Number.isFinite(n) && t * n < 0) {
|
|
281
282
|
let r = t / (t - n), i = e.x0 + (e.x1 - e.x0) * r, a = e.lower0 + (e.lower1 - e.lower0) * r;
|
|
282
|
-
return [
|
|
283
|
+
return [we({
|
|
283
284
|
...e,
|
|
284
285
|
x1: i,
|
|
285
286
|
lower1: a,
|
|
286
287
|
upper1: a,
|
|
287
288
|
capEnd: !1
|
|
288
|
-
}),
|
|
289
|
+
}), we({
|
|
289
290
|
...e,
|
|
290
291
|
x0: i,
|
|
291
292
|
lower0: a,
|
|
@@ -293,10 +294,10 @@ function we(e) {
|
|
|
293
294
|
capStart: !1
|
|
294
295
|
})].filter((e) => e != null);
|
|
295
296
|
}
|
|
296
|
-
let r =
|
|
297
|
+
let r = we(e);
|
|
297
298
|
return r ? [r] : [];
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
+
function Ee(e) {
|
|
300
301
|
let t = e.outline;
|
|
301
302
|
if (t.length < 3 || t.length > 64 || ![e.nearDepth, e.farDepth].every(Number.isFinite) || Math.abs(e.nearDepth - e.farDepth) < 1e-9 || !t.every((e) => Number.isFinite(e.x) && Number.isFinite(e.y))) return null;
|
|
302
303
|
let n = Math.min(e.nearDepth, e.farDepth), r = Math.max(e.nearDepth, e.farDepth), i = t.length, a = [...t.map((e) => ({
|
|
@@ -309,7 +310,7 @@ function Te(e) {
|
|
|
309
310
|
return {
|
|
310
311
|
shape: "lineRibbon",
|
|
311
312
|
vertices: a,
|
|
312
|
-
faces:
|
|
313
|
+
faces: Se(a, [
|
|
313
314
|
{
|
|
314
315
|
indices: o,
|
|
315
316
|
role: "side",
|
|
@@ -337,7 +338,7 @@ function Te(e) {
|
|
|
337
338
|
silhouetteEdges: []
|
|
338
339
|
};
|
|
339
340
|
}
|
|
340
|
-
function
|
|
341
|
+
function De(e) {
|
|
341
342
|
let { centerX: t, centerY: n, centerDepth: r, radius: i, modelDepth: a, thickness: o, startAngle: s, endAngle: c } = e;
|
|
342
343
|
if (![
|
|
343
344
|
t,
|
|
@@ -429,13 +430,13 @@ function Ee(e) {
|
|
|
429
430
|
return {
|
|
430
431
|
shape: "pieSector",
|
|
431
432
|
vertices: m,
|
|
432
|
-
faces:
|
|
433
|
+
faces: Se(m, v),
|
|
433
434
|
silhouetteEdges: h.slice(0, u ? void 0 : -1).map((e, t) => [e, g[t]])
|
|
434
435
|
};
|
|
435
436
|
}
|
|
436
437
|
//#endregion
|
|
437
438
|
//#region packages/core/src/chart/three-d-scene.ts
|
|
438
|
-
function
|
|
439
|
+
function Oe(e, t) {
|
|
439
440
|
if (![e, t].every(Number.isFinite)) return null;
|
|
440
441
|
let n = t - e;
|
|
441
442
|
if (n === 0) return e >= 0 && e <= 1 ? {
|
|
@@ -448,7 +449,7 @@ function De(e, t) {
|
|
|
448
449
|
endT: o
|
|
449
450
|
} : null;
|
|
450
451
|
}
|
|
451
|
-
function
|
|
452
|
+
function ke(e, t, n, r) {
|
|
452
453
|
if (![
|
|
453
454
|
e,
|
|
454
455
|
t,
|
|
@@ -477,12 +478,12 @@ function Oe(e, t, n, r) {
|
|
|
477
478
|
}
|
|
478
479
|
return l;
|
|
479
480
|
}
|
|
480
|
-
var
|
|
481
|
+
var Ae = (e) => ({
|
|
481
482
|
minX: Math.min(...e.map((e) => e.x)),
|
|
482
483
|
maxX: Math.max(...e.map((e) => e.x)),
|
|
483
484
|
minY: Math.min(...e.map((e) => e.y)),
|
|
484
485
|
maxY: Math.max(...e.map((e) => e.y))
|
|
485
|
-
}),
|
|
486
|
+
}), je = (e, t) => {
|
|
486
487
|
let n = !1;
|
|
487
488
|
for (let r = 0, i = e.length - 1; r < e.length; i = r++) {
|
|
488
489
|
let a = e[r], o = e[i], s = (a.x - t.x) * (o.y - t.y) - (a.y - t.y) * (o.x - t.x), c = Math.max(1, Math.abs(a.x), Math.abs(a.y), Math.abs(o.x), Math.abs(o.y));
|
|
@@ -490,7 +491,7 @@ var ke = (e) => ({
|
|
|
490
491
|
a.y > t.y != o.y > t.y && t.x < (o.x - a.x) * (t.y - a.y) / (o.y - a.y) + a.x && (n = !n);
|
|
491
492
|
}
|
|
492
493
|
return n;
|
|
493
|
-
},
|
|
494
|
+
}, Me = (e, t, n, r) => {
|
|
494
495
|
let i = {
|
|
495
496
|
x: t.x - e.x,
|
|
496
497
|
y: t.y - e.y
|
|
@@ -508,23 +509,23 @@ var ke = (e) => ({
|
|
|
508
509
|
y: e.y + i.y * c
|
|
509
510
|
};
|
|
510
511
|
};
|
|
511
|
-
function
|
|
512
|
+
function Ne(e, t, n, r) {
|
|
512
513
|
let i = [], a = (e) => {
|
|
513
514
|
i.length >= 12 || i.some((t) => Math.hypot(t.x - e.x, t.y - e.y) < 1e-7) || i.push(e);
|
|
514
515
|
}, o = {
|
|
515
516
|
x: (Math.max(n.minX, r.minX) + Math.min(n.maxX, r.maxX)) / 2,
|
|
516
517
|
y: (Math.max(n.minY, r.minY) + Math.min(n.maxY, r.maxY)) / 2
|
|
517
518
|
};
|
|
518
|
-
|
|
519
|
-
for (let n of e)
|
|
520
|
-
for (let n of t)
|
|
519
|
+
je(e, o) && je(t, o) && a(o);
|
|
520
|
+
for (let n of e) je(t, n) && a(n);
|
|
521
|
+
for (let n of t) je(e, n) && a(n);
|
|
521
522
|
for (let n = 0; n < e.length && i.length < 12; n++) for (let r = 0; r < t.length && i.length < 12; r++) {
|
|
522
|
-
let i =
|
|
523
|
+
let i = Me(e[n], e[(n + 1) % e.length], t[r], t[(r + 1) % t.length]);
|
|
523
524
|
i && a(i);
|
|
524
525
|
}
|
|
525
526
|
return i;
|
|
526
527
|
}
|
|
527
|
-
function
|
|
528
|
+
function Pe(e, t) {
|
|
528
529
|
let n = e.cameraDepths;
|
|
529
530
|
if (!n || n.length !== e.points.length || e.points.length < 3) return e.cameraDepth;
|
|
530
531
|
let r = e.cameraWeights?.length === e.points.length ? e.cameraWeights : e.points.map(() => 1), i = e.points[0];
|
|
@@ -538,17 +539,17 @@ function Ne(e, t) {
|
|
|
538
539
|
}
|
|
539
540
|
return e.cameraDepth;
|
|
540
541
|
}
|
|
541
|
-
function
|
|
542
|
+
function Fe(e) {
|
|
542
543
|
if (e.length < 2) return [...e];
|
|
543
|
-
let t = [...e.keys()].sort((t, n) => e[t].cameraDepth - e[n].cameraDepth || t - n), n = e.map((e) =>
|
|
544
|
+
let t = [...e.keys()].sort((t, n) => e[t].cameraDepth - e[n].cameraDepth || t - n), n = e.map((e) => Ae(e.points)), r = [...e.keys()].sort((e, t) => n[e].minX - n[t].minX || e - t), i = e.map(() => /* @__PURE__ */ new Set()), a = e.map(() => 0), o = [], s = 0;
|
|
544
545
|
for (let c of r) {
|
|
545
546
|
for (let e = o.length - 1; e >= 0; e--) n[o[e]].maxX < n[c].minX - 1e-9 && o.splice(e, 1);
|
|
546
547
|
for (let r of o) {
|
|
547
548
|
if (++s > 2e5) return t.map((t) => e[t]);
|
|
548
549
|
if (n[r].maxY < n[c].minY - 1e-9 || n[c].maxY < n[r].minY - 1e-9) continue;
|
|
549
|
-
let o =
|
|
550
|
+
let o = Ne(e[r].points, e[c].points, n[r], n[c]), l = 0;
|
|
550
551
|
for (let t of o) {
|
|
551
|
-
let n =
|
|
552
|
+
let n = Pe(e[r], t) - Pe(e[c], t), i = 1e-8 * Math.max(1, Math.abs(e[r].cameraDepth), Math.abs(e[c].cameraDepth));
|
|
552
553
|
if (Math.abs(n) <= i) continue;
|
|
553
554
|
let a = n < 0 ? -1 : 1;
|
|
554
555
|
if (l !== 0 && l !== a) {
|
|
@@ -574,29 +575,29 @@ function Pe(e) {
|
|
|
574
575
|
}
|
|
575
576
|
//#endregion
|
|
576
577
|
//#region packages/core/src/chart/three-d-stroke.ts
|
|
577
|
-
var
|
|
578
|
+
var X = 1e-9, Ie = 1e4, Le = (e, t, n) => ({
|
|
578
579
|
x: e.x + (t.x - e.x) * n,
|
|
579
580
|
y: e.y + (t.y - e.y) * n,
|
|
580
581
|
cameraDepth: e.cameraDepth + (t.cameraDepth - e.cameraDepth) * n,
|
|
581
582
|
cameraWeight: (e.cameraWeight ?? 1) + ((t.cameraWeight ?? 1) - (e.cameraWeight ?? 1)) * n
|
|
582
|
-
}),
|
|
583
|
-
function
|
|
584
|
-
let r = t.filter((e) => Number.isFinite(e) && e >
|
|
583
|
+
}), Re = (e, t) => Math.hypot(e.x - t.x, e.y - t.y) <= X;
|
|
584
|
+
function ze(e, t, n = 0) {
|
|
585
|
+
let r = t.filter((e) => Number.isFinite(e) && e > X);
|
|
585
586
|
if (r.length === 0) return e.length >= 2 ? [[...e]] : [];
|
|
586
587
|
r.length % 2 == 1 && r.push(...r);
|
|
587
|
-
let i = [], a = 0, o = r[0], s = !0, c = r.reduce((e, t) => e + t, 0), l = c >
|
|
588
|
-
for (; l >
|
|
588
|
+
let i = [], a = 0, o = r[0], s = !0, c = r.reduce((e, t) => e + t, 0), l = c > X && Number.isFinite(n) ? (n % c + c) % c : 0;
|
|
589
|
+
for (; l > X;) {
|
|
589
590
|
let e = Math.min(l, o);
|
|
590
|
-
l -= e, o -= e, o <=
|
|
591
|
+
l -= e, o -= e, o <= X && (a = (a + 1) % r.length, o = r[a], s = a % 2 == 0);
|
|
591
592
|
}
|
|
592
593
|
let u = null;
|
|
593
594
|
for (let t = 0; t + 1 < e.length; t++) {
|
|
594
595
|
let n = e[t], c = e[t + 1], l = Math.hypot(c.x - n.x, c.y - n.y);
|
|
595
|
-
if (!(l >
|
|
596
|
+
if (!(l > X)) continue;
|
|
596
597
|
let d = 0;
|
|
597
|
-
for (; d < l -
|
|
598
|
-
let e = Math.min(o, l - d), t =
|
|
599
|
-
if (s && (u ??= [], (u.length === 0 || !
|
|
598
|
+
for (; d < l - X;) {
|
|
599
|
+
let e = Math.min(o, l - d), t = Le(n, c, d / l), f = Le(n, c, (d + e) / l);
|
|
600
|
+
if (s && (u ??= [], (u.length === 0 || !Re(u.at(-1), t)) && u.push(t), u.push(f)), d += e, o -= e, o <= X) {
|
|
600
601
|
if (s && u && u.length >= 2) {
|
|
601
602
|
if (i.length >= 1e4) return null;
|
|
602
603
|
i.push(u);
|
|
@@ -609,13 +610,13 @@ function Re(e, t, n = 0) {
|
|
|
609
610
|
if (i.length >= 1e4) return null;
|
|
610
611
|
i.push(u);
|
|
611
612
|
}
|
|
612
|
-
if (i.length > 1 &&
|
|
613
|
+
if (i.length > 1 && Re(e[0], e.at(-1)) && Re(i[0][0], e[0]) && Re(i.at(-1).at(-1), e.at(-1))) {
|
|
613
614
|
let e = i.shift(), t = i.pop();
|
|
614
615
|
i.unshift([...t, ...e.slice(1)]);
|
|
615
616
|
}
|
|
616
617
|
return i;
|
|
617
618
|
}
|
|
618
|
-
var
|
|
619
|
+
var Be = (e, t) => ({
|
|
619
620
|
kind: e,
|
|
620
621
|
points: t.map(({ x: e, y: t }) => ({
|
|
621
622
|
x: e,
|
|
@@ -624,7 +625,7 @@ var ze = (e, t) => ({
|
|
|
624
625
|
cameraDepths: t.map((e) => e.cameraDepth),
|
|
625
626
|
cameraWeights: t.map((e) => e.cameraWeight ?? 1),
|
|
626
627
|
cameraDepth: t.reduce((e, t) => e + t.cameraDepth, 0) / t.length
|
|
627
|
-
}),
|
|
628
|
+
}), Ve = (e, t, n) => {
|
|
628
629
|
let r = [];
|
|
629
630
|
for (let n = 0; n < 12; n++) {
|
|
630
631
|
let i = Math.PI * 2 * n / 12;
|
|
@@ -634,17 +635,17 @@ var ze = (e, t) => ({
|
|
|
634
635
|
y: e.y + Math.sin(i) * t
|
|
635
636
|
});
|
|
636
637
|
}
|
|
637
|
-
return
|
|
638
|
+
return Be(n, r);
|
|
638
639
|
};
|
|
639
|
-
function
|
|
640
|
+
function He(e, t, n) {
|
|
640
641
|
let r = Number.isFinite(n.width) ? Math.max(0, n.width) : 0;
|
|
641
|
-
if (!(r >
|
|
642
|
+
if (!(r > X) || t.length < 3) return null;
|
|
642
643
|
let i = r / 2;
|
|
643
|
-
if ((n.lineJoin ?? "miter") === "round") return
|
|
644
|
+
if ((n.lineJoin ?? "miter") === "round") return Ve(e, i, "join");
|
|
644
645
|
let a = [];
|
|
645
646
|
for (let n of t) {
|
|
646
647
|
let t = n.x - e.x, r = n.y - e.y, o = Math.hypot(t, r);
|
|
647
|
-
if (!(o >
|
|
648
|
+
if (!(o > X)) continue;
|
|
648
649
|
let s = -r / o * i, c = t / o * i;
|
|
649
650
|
a.push({
|
|
650
651
|
...e,
|
|
@@ -660,20 +661,20 @@ function Ve(e, t, n) {
|
|
|
660
661
|
a.sort((e, t) => e.x - t.x || e.y - t.y);
|
|
661
662
|
let o = (e, t, n) => (t.x - e.x) * (n.y - e.y) - (t.y - e.y) * (n.x - e.x), s = [];
|
|
662
663
|
for (let e of a) {
|
|
663
|
-
for (; s.length >= 2 && o(s.at(-2), s.at(-1), e) <=
|
|
664
|
+
for (; s.length >= 2 && o(s.at(-2), s.at(-1), e) <= X;) s.pop();
|
|
664
665
|
s.push(e);
|
|
665
666
|
}
|
|
666
667
|
let c = [];
|
|
667
668
|
for (let e of [...a].reverse()) {
|
|
668
|
-
for (; c.length >= 2 && o(c.at(-2), c.at(-1), e) <=
|
|
669
|
+
for (; c.length >= 2 && o(c.at(-2), c.at(-1), e) <= X;) c.pop();
|
|
669
670
|
c.push(e);
|
|
670
671
|
}
|
|
671
672
|
let l = [...s.slice(0, -1), ...c.slice(0, -1)];
|
|
672
|
-
return l.length >= 3 ?
|
|
673
|
+
return l.length >= 3 ? Be("join", l) : null;
|
|
673
674
|
}
|
|
674
|
-
var
|
|
675
|
+
var Ue = (e, t, n, r) => {
|
|
675
676
|
let i = t.x * r.y - t.y * r.x;
|
|
676
|
-
if (Math.abs(i) <=
|
|
677
|
+
if (Math.abs(i) <= X) return null;
|
|
677
678
|
let a = {
|
|
678
679
|
x: n.x - e.x,
|
|
679
680
|
y: n.y - e.y
|
|
@@ -683,17 +684,17 @@ var He = (e, t, n, r) => {
|
|
|
683
684
|
y: e.y + t.y * o
|
|
684
685
|
};
|
|
685
686
|
};
|
|
686
|
-
function
|
|
687
|
+
function We(e, t) {
|
|
687
688
|
let n = Number.isFinite(t.width) ? Math.max(0, t.width) : 0;
|
|
688
|
-
if (!(n >
|
|
689
|
-
let r = n / 2, i = t.lineCap ?? "butt", a = t.lineJoin ?? "miter", o = Math.max(1, t.miterLimit ?? 10), s = [], c =
|
|
689
|
+
if (!(n > X) || e.length < 2) return [];
|
|
690
|
+
let r = n / 2, i = t.lineCap ?? "butt", a = t.lineJoin ?? "miter", o = Math.max(1, t.miterLimit ?? 10), s = [], c = ze(e, t.dash ?? [], t.dashOffset);
|
|
690
691
|
if (c == null) return null;
|
|
691
692
|
let l = (e) => s.length >= 1e4 ? !1 : (s.push(e), !0);
|
|
692
693
|
for (let n = 0; n < c.length; n++) {
|
|
693
|
-
let s = c[n], u = s.length > 2 &&
|
|
694
|
+
let s = c[n], u = s.length > 2 && Re(s[0], s.at(-1)), d = n === 0 && Re(s[0], e[0]) ? t.startCap ?? i : i, f = n + 1 === c.length && Re(s.at(-1), e.at(-1)) ? t.endCap ?? i : i, p = [];
|
|
694
695
|
for (let e = 0; e + 1 < s.length; e++) {
|
|
695
696
|
let t = s[e], n = s[e + 1], r = Math.hypot(n.x - t.x, n.y - t.y);
|
|
696
|
-
p.push(r >
|
|
697
|
+
p.push(r > X ? {
|
|
697
698
|
x: (n.x - t.x) / r,
|
|
698
699
|
y: (n.y - t.y) / r
|
|
699
700
|
} : null);
|
|
@@ -713,7 +714,7 @@ function Ue(e, t) {
|
|
|
713
714
|
x: s[e + 1].x + n.x * _,
|
|
714
715
|
y: s[e + 1].y + n.y * _
|
|
715
716
|
};
|
|
716
|
-
if (!l(
|
|
717
|
+
if (!l(Be("segment", [
|
|
717
718
|
{
|
|
718
719
|
...v,
|
|
719
720
|
x: v.x + i.x,
|
|
@@ -736,12 +737,12 @@ function Ue(e, t) {
|
|
|
736
737
|
}
|
|
737
738
|
]))) return null;
|
|
738
739
|
}
|
|
739
|
-
if (!u && d === "round" && !l(
|
|
740
|
+
if (!u && d === "round" && !l(Ve(s[0], r, "cap")) || !u && f === "round" && !l(Ve(s.at(-1), r, "cap"))) return null;
|
|
740
741
|
let m = (e, t, n) => {
|
|
741
742
|
if (!t || !n) return !0;
|
|
742
743
|
let i = t.x * n.y - t.y * n.x;
|
|
743
|
-
if (Math.abs(i) <=
|
|
744
|
-
if (a === "round") return l(
|
|
744
|
+
if (Math.abs(i) <= X) return !0;
|
|
745
|
+
if (a === "round") return l(Ve(e, r, "join"));
|
|
745
746
|
let s = i > 0 ? -1 : 1, c = {
|
|
746
747
|
...e,
|
|
747
748
|
x: e.x + -t.y * r * s,
|
|
@@ -752,8 +753,8 @@ function Ue(e, t) {
|
|
|
752
753
|
y: e.y + n.x * r * s
|
|
753
754
|
};
|
|
754
755
|
if (a === "miter") {
|
|
755
|
-
let i =
|
|
756
|
-
if (i && Math.hypot(i.x - e.x, i.y - e.y) <= r * o) return !!l(
|
|
756
|
+
let i = Ue(c, t, u, n);
|
|
757
|
+
if (i && Math.hypot(i.x - e.x, i.y - e.y) <= r * o) return !!l(Be("join", [
|
|
757
758
|
c,
|
|
758
759
|
{
|
|
759
760
|
...e,
|
|
@@ -762,7 +763,7 @@ function Ue(e, t) {
|
|
|
762
763
|
u
|
|
763
764
|
]));
|
|
764
765
|
}
|
|
765
|
-
return l(
|
|
766
|
+
return l(Be("join", [
|
|
766
767
|
c,
|
|
767
768
|
e,
|
|
768
769
|
u
|
|
@@ -775,30 +776,30 @@ function Ue(e, t) {
|
|
|
775
776
|
}
|
|
776
777
|
//#endregion
|
|
777
778
|
//#region packages/core/src/chart/three-d-outline.ts
|
|
778
|
-
var
|
|
779
|
+
var Ge = 1e-9, Ke = (e, t) => Math.hypot(e.x - t.x, e.y - t.y, e.depth - t.depth) <= Ge, qe = (e, t) => e.x - t.x || e.y - t.y || e.depth - t.depth, Je = (e, t) => {
|
|
779
780
|
let n = Math.min(e.length, t.length);
|
|
780
781
|
for (let r = 0; r < n; r++) {
|
|
781
|
-
let n =
|
|
782
|
+
let n = qe(e[r], t[r]);
|
|
782
783
|
if (n !== 0) return n;
|
|
783
784
|
}
|
|
784
785
|
return e.length - t.length;
|
|
785
786
|
};
|
|
786
|
-
function
|
|
787
|
+
function Ye(e) {
|
|
787
788
|
let t = [...e].reverse();
|
|
788
|
-
return
|
|
789
|
+
return Je(e, t) <= 0 ? e : t;
|
|
789
790
|
}
|
|
790
|
-
function
|
|
791
|
-
let t =
|
|
791
|
+
function Xe(e) {
|
|
792
|
+
let t = Ke(e[0], e.at(-1)) ? e.slice(0, -1) : [...e];
|
|
792
793
|
if (t.length === 0) return [];
|
|
793
794
|
let n = 0;
|
|
794
|
-
for (let e = 1; e < t.length; e++)
|
|
795
|
-
let r = t.map((e, r) => t[(n + r) % t.length]), i = t.map((e, r) => t[(n - r + t.length) % t.length]), a =
|
|
795
|
+
for (let e = 1; e < t.length; e++) qe(t[e], t[n]) < 0 && (n = e);
|
|
796
|
+
let r = t.map((e, r) => t[(n + r) % t.length]), i = t.map((e, r) => t[(n - r + t.length) % t.length]), a = Je(r, i) <= 0 ? r : i;
|
|
796
797
|
return [...a, a[0]];
|
|
797
798
|
}
|
|
798
|
-
function
|
|
799
|
+
function Ze(e) {
|
|
799
800
|
let t = [], n = (e) => {
|
|
800
|
-
let n = t.find((t) =>
|
|
801
|
-
if (n) return
|
|
801
|
+
let n = t.find((t) => Ke(t.point, e));
|
|
802
|
+
if (n) return qe(e, n.point) < 0 && (n.point = e), n;
|
|
802
803
|
let r = {
|
|
803
804
|
point: e,
|
|
804
805
|
edges: [],
|
|
@@ -807,11 +808,11 @@ function Xe(e) {
|
|
|
807
808
|
return t.push(r), r;
|
|
808
809
|
}, r = [];
|
|
809
810
|
for (let [t, i] of e) {
|
|
810
|
-
if (
|
|
811
|
+
if (Ke(t, i)) continue;
|
|
811
812
|
let e = n(t), a = n(i);
|
|
812
813
|
e !== a && r.push([e, a]);
|
|
813
814
|
}
|
|
814
|
-
t.sort((e, t) =>
|
|
815
|
+
t.sort((e, t) => qe(e.point, t.point)), t.forEach((e, t) => {
|
|
815
816
|
e.order = t;
|
|
816
817
|
});
|
|
817
818
|
let i = [], a = /* @__PURE__ */ new Set();
|
|
@@ -839,32 +840,32 @@ function Xe(e) {
|
|
|
839
840
|
}
|
|
840
841
|
return n;
|
|
841
842
|
}, c = [];
|
|
842
|
-
for (let e of t) if (e.edges.length !== 2) for (let t of e.edges) o.has(t) || c.push(
|
|
843
|
+
for (let e of t) if (e.edges.length !== 2) for (let t of e.edges) o.has(t) || c.push(Ye(s(e, t)));
|
|
843
844
|
for (let e = 0; e < i.length; e++) {
|
|
844
845
|
if (o.has(e)) continue;
|
|
845
846
|
let t = i[e], n = t.first.order <= t.second.order ? t.first : t.second;
|
|
846
|
-
c.push(
|
|
847
|
+
c.push(Xe(s(n, e)));
|
|
847
848
|
}
|
|
848
849
|
let l = t.filter((e) => e.edges.length > 2).map((e) => ({
|
|
849
850
|
point: e.point,
|
|
850
851
|
neighbours: e.edges.map((t) => {
|
|
851
852
|
let n = i[t];
|
|
852
853
|
return n.first === e ? n.second.point : n.first.point;
|
|
853
|
-
}).sort(
|
|
854
|
+
}).sort(qe)
|
|
854
855
|
}));
|
|
855
856
|
return {
|
|
856
|
-
paths: c.sort(
|
|
857
|
+
paths: c.sort(Je),
|
|
857
858
|
junctions: l
|
|
858
859
|
};
|
|
859
860
|
}
|
|
860
861
|
//#endregion
|
|
861
862
|
//#region packages/core/src/chart/three-d-renderer.ts
|
|
862
|
-
function
|
|
863
|
+
function Qe(e) {
|
|
863
864
|
let t = /* @__PURE__ */ new Map();
|
|
864
865
|
for (let n of e.legendEntries ?? []) t.set(n.idx, n);
|
|
865
866
|
return t;
|
|
866
867
|
}
|
|
867
|
-
function
|
|
868
|
+
function $e(e, t, n) {
|
|
868
869
|
let i = r(t?.fontSizeHpt ?? e.legendFontSizeHpt, n) ?? 9 * n, a = t?.fontFace ?? e.legendFontFace;
|
|
869
870
|
return {
|
|
870
871
|
fontPx: i,
|
|
@@ -872,14 +873,14 @@ function Qe(e, t, n) {
|
|
|
872
873
|
color: t?.fontColor ? `#${t.fontColor}` : e.legendFontColor ? `#${e.legendFontColor}` : "#595959"
|
|
873
874
|
};
|
|
874
875
|
}
|
|
875
|
-
var
|
|
876
|
+
var et = [
|
|
876
877
|
"4472C4",
|
|
877
878
|
"ED7D31",
|
|
878
879
|
"70AD47",
|
|
879
880
|
"A5A5A5",
|
|
880
881
|
"FFC000",
|
|
881
882
|
"5B9BD5"
|
|
882
|
-
],
|
|
883
|
+
], tt = C, nt = d, rt = new Set([
|
|
883
884
|
"line",
|
|
884
885
|
"stackedLine",
|
|
885
886
|
"stackedLinePct",
|
|
@@ -893,11 +894,11 @@ var $e = [
|
|
|
893
894
|
"stackedBarPct",
|
|
894
895
|
"stackedBarHPct"
|
|
895
896
|
]);
|
|
896
|
-
function
|
|
897
|
-
let n = Number.isFinite(t) && t > 0 ? t /
|
|
897
|
+
function it(e, t) {
|
|
898
|
+
let n = Number.isFinite(t) && t > 0 ? t / U : 1, r = Number.isFinite(e) && e >= 0 ? e / W : 0;
|
|
898
899
|
return Math.max(.25, r) * n;
|
|
899
900
|
}
|
|
900
|
-
function
|
|
901
|
+
function at(e, t) {
|
|
901
902
|
let n = Number.isSafeInteger(t) && t > 0 ? t : 0, r = Array.from({ length: n }, () => []);
|
|
902
903
|
for (let t of e) {
|
|
903
904
|
let e = t.categoryIndex;
|
|
@@ -905,18 +906,18 @@ function it(e, t) {
|
|
|
905
906
|
}
|
|
906
907
|
return r;
|
|
907
908
|
}
|
|
908
|
-
var
|
|
909
|
-
function
|
|
909
|
+
var ot = (e, t) => `#${t?.color ?? et[e % et.length]}`;
|
|
910
|
+
function st(e, t, n) {
|
|
910
911
|
let r = 0;
|
|
911
912
|
for (let i of e) for (let e of [t(i), n(i)]) {
|
|
912
913
|
if (e == null) continue;
|
|
913
|
-
let t =
|
|
914
|
-
if (e.fillType === "gradient" && t >
|
|
914
|
+
let t = A(e);
|
|
915
|
+
if (e.fillType === "gradient" && t > tt || t > nt - r) return !1;
|
|
915
916
|
r += t;
|
|
916
917
|
}
|
|
917
918
|
return !0;
|
|
918
919
|
}
|
|
919
|
-
function
|
|
920
|
+
function ct(e, t) {
|
|
920
921
|
let n = Array.from({ length: t }, () => ({
|
|
921
922
|
maxMagnitude: 0,
|
|
922
923
|
scaledTotal: 0
|
|
@@ -931,7 +932,7 @@ function st(e, t) {
|
|
|
931
932
|
}
|
|
932
933
|
return n;
|
|
933
934
|
}
|
|
934
|
-
function
|
|
935
|
+
function lt(e, t, n, r) {
|
|
935
936
|
let i = e.series[t]?.values[n] ?? 0;
|
|
936
937
|
if (!Number.isFinite(i)) return 0;
|
|
937
938
|
if (!r) return i;
|
|
@@ -941,11 +942,11 @@ function ct(e, t, n, r) {
|
|
|
941
942
|
};
|
|
942
943
|
return a > 0 && o > 0 ? i / a / o * 100 : 0;
|
|
943
944
|
}
|
|
944
|
-
function
|
|
945
|
+
function Z(e, t) {
|
|
945
946
|
let n = e + t;
|
|
946
947
|
return Number.isFinite(n) ? n : t < 0 ? -Number.MAX_VALUE : Number.MAX_VALUE;
|
|
947
948
|
}
|
|
948
|
-
function
|
|
949
|
+
function ut(e) {
|
|
949
950
|
let t = [];
|
|
950
951
|
for (let [n, r] of [
|
|
951
952
|
[e.threeD?.floor, "floor"],
|
|
@@ -965,7 +966,7 @@ function lt(e) {
|
|
|
965
966
|
for (let i = 0; i < n.values.length; i++) {
|
|
966
967
|
let a = n.values[i];
|
|
967
968
|
if (a == null || !Number.isFinite(a) || Math.abs(a) <= 0) continue;
|
|
968
|
-
let o =
|
|
969
|
+
let o = Q(e, n, r.get(i), i, 0);
|
|
969
970
|
t.push({
|
|
970
971
|
fill: o.fill,
|
|
971
972
|
line: o.lineFill
|
|
@@ -973,7 +974,7 @@ function lt(e) {
|
|
|
973
974
|
}
|
|
974
975
|
}
|
|
975
976
|
} else if (e.chartType === "clusteredBar" || e.chartType === "clusteredBarH" || e.chartType.startsWith("stackedBar")) {
|
|
976
|
-
let n = e.chartType.startsWith("stacked"), r = e.chartType.endsWith("Pct"), i = n || e.dispBlanksAs === "zero", a = e.valAxisLogBase != null && Number.isFinite(e.valAxisLogBase) && e.valAxisLogBase >= 2, o = Math.max(1, e.categories.length, ...e.series.map((e) => Math.max(e.values.length, e.categories?.length ?? 0))), s = r ?
|
|
977
|
+
let n = e.chartType.startsWith("stacked"), r = e.chartType.endsWith("Pct"), i = n || e.dispBlanksAs === "zero", a = e.valAxisLogBase != null && Number.isFinite(e.valAxisLogBase) && e.valAxisLogBase >= 2, o = Math.max(1, e.categories.length, ...e.series.map((e) => Math.max(e.values.length, e.categories?.length ?? 0))), s = r ? ct(e, o) : void 0, c = (t, n) => {
|
|
977
978
|
if (t === n) return !1;
|
|
978
979
|
let r = Math.min(t, n), i = Math.max(t, n), o = e.valMin, s = e.valMax;
|
|
979
980
|
return o != null && Number.isFinite(o) && i <= o || s != null && Number.isFinite(s) && r >= s ? !1 : !a || i > 0;
|
|
@@ -983,9 +984,9 @@ function lt(e) {
|
|
|
983
984
|
for (let p = 0; p < o; p++) {
|
|
984
985
|
let o = d.values[p];
|
|
985
986
|
if (!(o != null && Number.isFinite(o) && (!a || o > 0) || o == null && i)) continue;
|
|
986
|
-
let m =
|
|
987
|
+
let m = lt(e, r, p, s), h = n ? m >= 0 ? l[p] : u[p] : 0, g = Z(h, m);
|
|
987
988
|
if (n && (m >= 0 ? l[p] = g : u[p] = g), !c(h, g)) continue;
|
|
988
|
-
let _ =
|
|
989
|
+
let _ = Q(e, d, f.get(p), p, r);
|
|
989
990
|
t.push({
|
|
990
991
|
fill: _.fill,
|
|
991
992
|
line: _.lineFill
|
|
@@ -993,11 +994,11 @@ function lt(e) {
|
|
|
993
994
|
}
|
|
994
995
|
}
|
|
995
996
|
} else {
|
|
996
|
-
let n = e.chartType.toLowerCase().includes("area"), r = e.chartType.startsWith("stacked"), i = e.chartType.endsWith("Pct"), a = r || e.dispBlanksAs === "zero", o = e.valAxisLogBase != null && Number.isFinite(e.valAxisLogBase) && e.valAxisLogBase >= 2, s = Math.max(e.categories.length, ...e.series.map((e) => Math.max(e.categories?.length ?? 0, e.values.length))), c = i ?
|
|
997
|
+
let n = e.chartType.toLowerCase().includes("area"), r = e.chartType.startsWith("stacked"), i = e.chartType.endsWith("Pct"), a = r || e.dispBlanksAs === "zero", o = e.valAxisLogBase != null && Number.isFinite(e.valAxisLogBase) && e.valAxisLogBase >= 2, s = Math.max(e.categories.length, ...e.series.map((e) => Math.max(e.categories?.length ?? 0, e.values.length))), c = i ? ct(e, s) : void 0, l = e.series.map(() => Array(s).fill(0));
|
|
997
998
|
if (r) {
|
|
998
999
|
let t = Array(s).fill(0), n = Array(s).fill(0);
|
|
999
1000
|
for (let r = 0; r < e.series.length; r++) for (let i = 0; i < s; i++) {
|
|
1000
|
-
let a =
|
|
1001
|
+
let a = lt(e, r, i, c), o = Z(a >= 0 ? t[i] : n[i], a);
|
|
1001
1002
|
l[r][i] = o, a >= 0 ? t[i] = o : n[i] = o;
|
|
1002
1003
|
}
|
|
1003
1004
|
}
|
|
@@ -1007,12 +1008,12 @@ function lt(e) {
|
|
|
1007
1008
|
let f = u.values[s];
|
|
1008
1009
|
if (f != null && Number.isFinite(f) && (!o || f > 0) || f == null && a) {
|
|
1009
1010
|
p++;
|
|
1010
|
-
let a = r ? l[i][s] :
|
|
1011
|
+
let a = r ? l[i][s] : lt(e, i, s, c), o = m == null ? a : Math.min(m, a), f = m == null ? a : Math.max(m, a), _ = e.valMin != null && Number.isFinite(e.valMin) && f <= e.valMin || e.valMax != null && Number.isFinite(e.valMax) && o >= e.valMax;
|
|
1011
1012
|
if (p >= 2 && (n || u.smooth === !0 || !_)) {
|
|
1012
1013
|
if (h = !0, n) break;
|
|
1013
1014
|
let r = d.get(s);
|
|
1014
1015
|
if (ft(r)) {
|
|
1015
|
-
let n =
|
|
1016
|
+
let n = Q(e, u, r, s, i);
|
|
1016
1017
|
t.push({
|
|
1017
1018
|
fill: void 0,
|
|
1018
1019
|
line: n.lineFill
|
|
@@ -1023,7 +1024,7 @@ function lt(e) {
|
|
|
1023
1024
|
} else (e.dispBlanksAs ?? "gap") === "gap" && (p = 0, m = null);
|
|
1024
1025
|
}
|
|
1025
1026
|
if (!h) continue;
|
|
1026
|
-
let _ =
|
|
1027
|
+
let _ = Q(e, u, void 0, i, i);
|
|
1027
1028
|
n ? t.push({
|
|
1028
1029
|
fill: _.fill,
|
|
1029
1030
|
line: _.lineFill
|
|
@@ -1033,9 +1034,9 @@ function lt(e) {
|
|
|
1033
1034
|
});
|
|
1034
1035
|
}
|
|
1035
1036
|
}
|
|
1036
|
-
return
|
|
1037
|
+
return st(t, (e) => e.fill, (e) => e.line);
|
|
1037
1038
|
}
|
|
1038
|
-
function
|
|
1039
|
+
function dt(e, t) {
|
|
1039
1040
|
return e?.fillType === "solid" ? {
|
|
1040
1041
|
color: `#${e.color}`,
|
|
1041
1042
|
fill: void 0
|
|
@@ -1044,17 +1045,17 @@ function ut(e, t) {
|
|
|
1044
1045
|
fill: e
|
|
1045
1046
|
};
|
|
1046
1047
|
}
|
|
1047
|
-
function
|
|
1048
|
-
let o = t.dataPointColors?.[i] ? `#${t.dataPointColors[i]}` :
|
|
1049
|
-
if (u !== void 0) ({color: l, fill: c} =
|
|
1048
|
+
function Q(e, t, r, i, a) {
|
|
1049
|
+
let o = t.dataPointColors?.[i] ? `#${t.dataPointColors[i]}` : ot(a, t), s = e.chartType === "pie" || e.varyColors === !0 && e.series.length === 1 && e.chartType.includes("Bar") ? i : a, c, l = o, u = _(r?.chartexStyle, i);
|
|
1050
|
+
if (u !== void 0) ({color: l, fill: c} = dt(u, l));
|
|
1050
1051
|
else if (r?.fillHidden === !0 || r?.color === "00000000") c = null;
|
|
1051
1052
|
else if (r?.color) l = `#${r.color}`;
|
|
1052
1053
|
else {
|
|
1053
1054
|
let n = _(t.chartexStyle, s);
|
|
1054
|
-
if (n !== void 0) ({color: l, fill: c} =
|
|
1055
|
+
if (n !== void 0) ({color: l, fill: c} = dt(n, l));
|
|
1055
1056
|
else {
|
|
1056
1057
|
let t = _(e.chartStyleRoles?.dataPoint3D, s);
|
|
1057
|
-
t !== void 0 && ({color: l, fill: c} =
|
|
1058
|
+
t !== void 0 && ({color: l, fill: c} = dt(t, l));
|
|
1058
1059
|
}
|
|
1059
1060
|
}
|
|
1060
1061
|
let d, f = null, p = n(r?.chartexStyle, i);
|
|
@@ -1112,7 +1113,7 @@ function _t(e, t, n, r) {
|
|
|
1112
1113
|
gt(n) || (ht(e, t), e.fillStyle = n, e.fill(), r > 0 && (ht(e, t), e.fillStyle = `rgba(0,0,0,${r})`, e.fill()));
|
|
1113
1114
|
}
|
|
1114
1115
|
function vt(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
1115
|
-
return
|
|
1116
|
+
return Te({
|
|
1116
1117
|
x0: t,
|
|
1117
1118
|
x1: n,
|
|
1118
1119
|
lower0: r,
|
|
@@ -1140,7 +1141,7 @@ function yt(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m = !1, h = !1, g, _) {
|
|
|
1140
1141
|
l,
|
|
1141
1142
|
u
|
|
1142
1143
|
].every(Number.isFinite) || a <= 0 || o <= 0 || s === c) return [];
|
|
1143
|
-
let v =
|
|
1144
|
+
let v = Ce({
|
|
1144
1145
|
shape: t,
|
|
1145
1146
|
horizontal: n,
|
|
1146
1147
|
crossStart: n ? i : r,
|
|
@@ -1178,7 +1179,7 @@ function bt(e, t, n, r, i, a = !1) {
|
|
|
1178
1179
|
facing: a,
|
|
1179
1180
|
face: {
|
|
1180
1181
|
points: o,
|
|
1181
|
-
color:
|
|
1182
|
+
color: Y(n, pt(e, i)),
|
|
1182
1183
|
paintRole: "fill",
|
|
1183
1184
|
shade: 0,
|
|
1184
1185
|
cameraDepth: i.reduce((t, n) => t + e.cameraDepth(n.x, n.y, n.depth), 0) / i.length,
|
|
@@ -1215,11 +1216,11 @@ function bt(e, t, n, r, i, a = !1) {
|
|
|
1215
1216
|
let t = [d ? void 0 : e.meshFace.baseRimEdge, f ? void 0 : e.meshFace.endRimEdge].filter((e) => e != null);
|
|
1216
1217
|
for (let [e, n] of t) l(e, n);
|
|
1217
1218
|
}
|
|
1218
|
-
let p =
|
|
1219
|
+
let p = Ze([...c.values()].map(([e, n]) => [t.vertices[e], t.vertices[n]]));
|
|
1219
1220
|
if (!r) return s;
|
|
1220
1221
|
let m = (e, t) => Math.hypot(e.x - t.x, e.y - t.y, e.depth - t.depth) <= 1e-9, h = (e) => p.junctions.some((t) => m(t.point, e));
|
|
1221
1222
|
for (let t of p.paths) {
|
|
1222
|
-
let n = t.map((t) => e.project(t.x, t.y, t.depth)), a = t.map((t) => e.cameraDepth(t.x, t.y, t.depth)), o = t.map((t) => e.cameraProjectionWeight(t.x, t.y, t.depth)), c =
|
|
1223
|
+
let n = t.map((t) => e.project(t.x, t.y, t.depth)), a = t.map((t) => e.cameraDepth(t.x, t.y, t.depth)), o = t.map((t) => e.cameraProjectionWeight(t.x, t.y, t.depth)), c = We(n.map((e, t) => ({
|
|
1223
1224
|
...e,
|
|
1224
1225
|
cameraDepth: a[t],
|
|
1225
1226
|
cameraWeight: o[t]
|
|
@@ -1249,7 +1250,7 @@ function bt(e, t, n, r, i, a = !1) {
|
|
|
1249
1250
|
}));
|
|
1250
1251
|
}
|
|
1251
1252
|
for (let t of p.junctions) {
|
|
1252
|
-
let n =
|
|
1253
|
+
let n = He({
|
|
1253
1254
|
...e.project(t.point.x, t.point.y, t.point.depth),
|
|
1254
1255
|
cameraDepth: e.cameraDepth(t.point.x, t.point.y, t.point.depth),
|
|
1255
1256
|
cameraWeight: e.cameraProjectionWeight(t.point.x, t.point.y, t.point.depth)
|
|
@@ -1290,7 +1291,7 @@ function xt(e, t, n, r, i, a, o) {
|
|
|
1290
1291
|
depth: e.centerDepth
|
|
1291
1292
|
}), h = [], g = (t, n = !1) => {
|
|
1292
1293
|
if (t.length < 2 || o.exceeded) return;
|
|
1293
|
-
let r = t[0], i = t.at(-1), s = Math.hypot(r.x - i.x, r.y - i.y, r.depth - i.depth) <= 1e-9, c =
|
|
1294
|
+
let r = t[0], i = t.at(-1), s = Math.hypot(r.x - i.x, r.y - i.y, r.depth - i.depth) <= 1e-9, c = We((n && !s ? [...t, r] : [...t]).map((t) => ({
|
|
1294
1295
|
...e.project(t.x, t.y, t.depth),
|
|
1295
1296
|
cameraDepth: e.cameraDepth(t.x, t.y, t.depth),
|
|
1296
1297
|
cameraWeight: e.cameraProjectionWeight(t.x, t.y, t.depth)
|
|
@@ -1371,7 +1372,7 @@ function xt(e, t, n, r, i, a, o) {
|
|
|
1371
1372
|
return h;
|
|
1372
1373
|
}
|
|
1373
1374
|
function St(e, t) {
|
|
1374
|
-
t.paint !== null && (t.paint === void 0 ? _t(e, t.points, t.color, t.shade) : (ht(e, t.points), e.fillStyle = t.paint, e.fill()), t.outline && (e.strokeStyle = t.outlineColor ?? "rgba(0,0,0,0.42)", e.lineWidth = t.outlineWidth ?? .75, e.setLineDash(
|
|
1375
|
+
t.paint !== null && (t.paint === void 0 ? _t(e, t.points, t.color, t.shade) : (ht(e, t.points), e.fillStyle = t.paint, e.fill()), t.outline && (e.strokeStyle = t.outlineColor ?? "rgba(0,0,0,0.42)", e.lineWidth = t.outlineWidth ?? .75, e.setLineDash(H(t.outlineDash ?? "solid", e.lineWidth)), e.lineCap = t.outlineCap ?? "butt", e.lineJoin = t.outlineJoin ?? "miter", t.outline && (ht(e, t.points), e.stroke()), e.setLineDash([])));
|
|
1375
1376
|
}
|
|
1376
1377
|
function Ct(e, t, n, r, i) {
|
|
1377
1378
|
if (r === void 0) return;
|
|
@@ -1381,7 +1382,7 @@ function Ct(e, t, n, r, i) {
|
|
|
1381
1382
|
for (let e of a) e.paint = null;
|
|
1382
1383
|
return;
|
|
1383
1384
|
}
|
|
1384
|
-
let o = a.flatMap((e) => e.points), s = Math.min(...o.map((e) => e.x)), c = Math.max(...o.map((e) => e.x)), l = Math.min(...o.map((e) => e.y)), u = Math.max(...o.map((e) => e.y)), d =
|
|
1385
|
+
let o = a.flatMap((e) => e.points), s = Math.min(...o.map((e) => e.x)), c = Math.max(...o.map((e) => e.x)), l = Math.min(...o.map((e) => e.y)), u = Math.max(...o.map((e) => e.y)), d = V(r, e, s, l, c - s, u - l, i);
|
|
1385
1386
|
for (let e of a) e.paint = d;
|
|
1386
1387
|
}
|
|
1387
1388
|
function wt(e, t) {
|
|
@@ -1398,7 +1399,7 @@ function Et(e, t, n, r, i, a = 1, o = 6) {
|
|
|
1398
1399
|
}
|
|
1399
1400
|
e.save(), e.translate(n.x, n.y + a * o), e.rotate(r), e.textAlign = a < 0 ? "left" : "right", e.textBaseline = "middle", e.fillText(t, 0, 0), e.restore();
|
|
1400
1401
|
}
|
|
1401
|
-
function Dt(t, n, r, i, a, o, s, c = void 0, l = 0, u =
|
|
1402
|
+
function Dt(t, n, r, i, a, o, s, c = void 0, l = 0, u = U) {
|
|
1402
1403
|
if (!(i > 0) || !Number.isFinite(n.x) || !Number.isFinite(n.y)) return;
|
|
1403
1404
|
let d = i / 2;
|
|
1404
1405
|
switch (t.beginPath(), r) {
|
|
@@ -1437,18 +1438,18 @@ function Dt(t, n, r, i, a, o, s, c = void 0, l = 0, u = D) {
|
|
|
1437
1438
|
t.arc(n.x, n.y, d, 0, Math.PI * 2);
|
|
1438
1439
|
break;
|
|
1439
1440
|
}
|
|
1440
|
-
let f = c?.fillType === "image" ? c : void 0, p = f ? null : c === void 0 ? a === "transparent" ? null : a : c == null ? null :
|
|
1441
|
+
let f = c?.fillType === "image" ? c : void 0, p = f ? null : c === void 0 ? a === "transparent" ? null : a : c == null ? null : V(c, t, n.x - d, n.y - d, i, i, l);
|
|
1441
1442
|
p == null ? f && (t.save(), t.clip(), e(t, f, n.x - d, n.y - d, i, i, u, l), t.restore()) : (t.fillStyle = p, t.fill()), t.strokeStyle = o, t.lineWidth = s, t.stroke();
|
|
1442
1443
|
}
|
|
1443
1444
|
function Ot(e, t, n, o, s, c, l, u, d, f = 0, p, m, h = "t", g = l, _ = !0, v, b, x = c, S = 0) {
|
|
1444
1445
|
let C = m, w = n.seriesDataLabels;
|
|
1445
|
-
if (
|
|
1446
|
-
let E = C?.showVal ?? w?.showVal ?? t.showDataLabels, D = C?.showCatName ?? w?.showCatName ?? !1, O = C?.showSerName ?? w?.showSerName ?? !1,
|
|
1446
|
+
if (k(w, C) || t.showDataLabelsOverMax !== !0 && b != null && Number.isFinite(b) && x > b) return;
|
|
1447
|
+
let E = C?.showVal ?? w?.showVal ?? t.showDataLabels, D = C?.showCatName ?? w?.showCatName ?? !1, O = C?.showSerName ?? w?.showSerName ?? !1, A = C?.showPercent ?? w?.showPercent ?? !1, j = C?.text, M = de({
|
|
1447
1448
|
customText: j,
|
|
1448
1449
|
showCategory: D,
|
|
1449
1450
|
showSeries: O,
|
|
1450
1451
|
showValue: E,
|
|
1451
|
-
showPercent:
|
|
1452
|
+
showPercent: A,
|
|
1452
1453
|
category: n.categories?.[s] ?? t.categories[s] ?? `${s + 1}`,
|
|
1453
1454
|
seriesName: n.name || `Series ${o + 1}`,
|
|
1454
1455
|
sourceValue: c,
|
|
@@ -1460,9 +1461,9 @@ function Ot(e, t, n, o, s, c, l, u, d, f = 0, p, m, h = "t", g = l, _ = !0, v, b
|
|
|
1460
1461
|
separator: C?.separator ?? w?.separator
|
|
1461
1462
|
});
|
|
1462
1463
|
if (!M) return;
|
|
1463
|
-
let N = r(C?.fontSizeHpt ?? w?.fontSizeHpt ?? t.dataLabelFontSizeHpt, d) ?? 9 * d, P = C?.fontBold ?? w?.fontBold ?? t.dataLabelFontBold ?? !1, F =
|
|
1464
|
+
let N = r(C?.fontSizeHpt ?? w?.fontSizeHpt ?? t.dataLabelFontSizeHpt, d) ?? 9 * d, P = C?.fontBold ?? w?.fontBold ?? t.dataLabelFontBold ?? !1, F = re(C, w), I = $(t, C?.fontFace ?? w?.fontFace ?? t.dataLabelFontFace);
|
|
1464
1465
|
e.font = `${F.fontItalic ? "italic " : ""}${P ? "bold " : ""}${N}px ${I}`;
|
|
1465
|
-
let L = `#${C?.fontColor ?? w?.fontColor ?? n.labelColor ?? t.dataLabelFontColor ?? "111111"}`, R = j && C?.richRuns?.length ?
|
|
1466
|
+
let L = `#${C?.fontColor ?? w?.fontColor ?? n.labelColor ?? t.dataLabelFontColor ?? "111111"}`, R = j && C?.richRuns?.length ? se(e, {
|
|
1466
1467
|
runs: C.richRuns,
|
|
1467
1468
|
ptToPx: d,
|
|
1468
1469
|
fontFamily: I,
|
|
@@ -1471,9 +1472,9 @@ function Ot(e, t, n, o, s, c, l, u, d, f = 0, p, m, h = "t", g = l, _ = !0, v, b
|
|
|
1471
1472
|
fallbackBaseline: F.fontBaseline,
|
|
1472
1473
|
fallbackColorHidden: F.fontPaintAuthored === !0 && (F.fontHidden === !0 || F.fontColor == null),
|
|
1473
1474
|
fontFamilyForFace: (e) => $(t, e)
|
|
1474
|
-
}, N, L) : null,
|
|
1475
|
-
if (!R && !
|
|
1476
|
-
let
|
|
1475
|
+
}, N, L) : null, z = R ? [] : y(M, Math.max(N, u.w * .45), Math.max(N * 1.2, u.h * .35), N * 1.2, (t) => e.measureText(t).width, F);
|
|
1476
|
+
if (!R && !z.length) return;
|
|
1477
|
+
let ee = R?.width ?? Math.max(...z.map((t) => e.measureText(t).width)), B = R?.height ?? z.length * N * 1.2, V = ie(F, d), U = i(ee + V.left + V.right, B + V.top + V.bottom, F.textRotation, F.textVerticalMode), K = a({
|
|
1477
1478
|
kind: "point",
|
|
1478
1479
|
x: l.x,
|
|
1479
1480
|
y: l.y,
|
|
@@ -1483,24 +1484,24 @@ function Ot(e, t, n, o, s, c, l, u, d, f = 0, p, m, h = "t", g = l, _ = !0, v, b
|
|
|
1483
1484
|
w: U.w,
|
|
1484
1485
|
h: U.h
|
|
1485
1486
|
}, N, C?.manualLayout, u);
|
|
1486
|
-
if (!
|
|
1487
|
-
let
|
|
1488
|
-
w?.showLeaderLines && w.leaderLineHidden !== !0 && _ && (e.beginPath(), e.moveTo(g.x, g.y), e.lineTo(Math.max(
|
|
1489
|
-
let
|
|
1487
|
+
if (!K) return;
|
|
1488
|
+
let q = G(C?.labelBox, w?.labelBox);
|
|
1489
|
+
w?.showLeaderLines && w.leaderLineHidden !== !0 && _ && (e.beginPath(), e.moveTo(g.x, g.y), e.lineTo(Math.max(K.rect.x, Math.min(g.x, K.rect.x + K.rect.w)), Math.max(K.rect.y, Math.min(g.y, K.rect.y + K.rect.h))), e.strokeStyle = `#${w.leaderLineColor ?? "808080"}`, e.lineWidth = w.leaderLineWidthEmu == null ? .75 * d : Math.max(.25, w.leaderLineWidthEmu / W * d), e.setLineDash(H(w.leaderLineDash ?? "solid", e.lineWidth)), e.stroke()), ae(e, q, K.rect, d, S), e.save(), e.beginPath(), e.rect(K.clip.x, K.clip.y, K.clip.w, K.clip.h), e.clip();
|
|
1490
|
+
let J = te(F, K.textAlign), oe = T(K.x, K.y, K.rect, B + V.top + V.bottom, F, C?.manualLayout != null, J, K.textAlign, ee + V.left + V.right, U.radians), Y = ne(e, oe.x, oe.y, U.radians, J, K.textBaseline, V);
|
|
1490
1491
|
if (R) {
|
|
1491
|
-
|
|
1492
|
+
ce(e, R, Y.x, Y.y, J, K.textBaseline, C?.manualLayout ? Math.max(0, K.rect.w - V.left - V.right) : R.width), e.restore();
|
|
1492
1493
|
return;
|
|
1493
1494
|
}
|
|
1494
1495
|
if (!(F.fontPaintAuthored === !0 && (F.fontHidden === !0 || F.fontColor == null))) {
|
|
1495
|
-
e.fillStyle = L, e.textAlign =
|
|
1496
|
-
let t = N * 1.2, n = (F.fontBaseline ?? 0) * N, r =
|
|
1497
|
-
|
|
1496
|
+
e.fillStyle = L, e.textAlign = J, e.textBaseline = "middle";
|
|
1497
|
+
let t = N * 1.2, n = (F.fontBaseline ?? 0) * N, r = Y.y - (z.length - 1) * t / 2 - n;
|
|
1498
|
+
z.forEach((n, i) => e.fillText(n, Y.x, r + i * t));
|
|
1498
1499
|
}
|
|
1499
1500
|
e.restore();
|
|
1500
1501
|
}
|
|
1501
1502
|
function kt(e, t, n) {
|
|
1502
1503
|
let r = t.seriesDataLabels;
|
|
1503
|
-
return
|
|
1504
|
+
return k(r, n) ? !1 : n?.text ? !0 : (n?.showVal ?? r?.showVal ?? e.showDataLabels) || (n?.showCatName ?? r?.showCatName ?? !1) || (n?.showSerName ?? r?.showSerName ?? !1) || (n?.showPercent ?? r?.showPercent ?? !1);
|
|
1504
1505
|
}
|
|
1505
1506
|
function At(e, n, r, i, a, o) {
|
|
1506
1507
|
let s = g(n, r.h, i);
|
|
@@ -1518,12 +1519,12 @@ function At(e, n, r, i, a, o) {
|
|
|
1518
1519
|
}, r, i) : null;
|
|
1519
1520
|
e.fillText(n.title, a ? a.x + a.w / 2 : r.x + r.w / 2, a?.y ?? i.y);
|
|
1520
1521
|
}
|
|
1521
|
-
let c =
|
|
1522
|
+
let c = Qe(n);
|
|
1522
1523
|
e.save();
|
|
1523
1524
|
let d = (n.chartType === "pie" ? n.series[0]?.categories?.length ? n.series[0].categories : n.categories : n.series.map((e, t) => e.name || `Series ${t + 1}`)).flatMap((e, t) => c.get(t)?.deleted === !0 ? [] : [{
|
|
1524
1525
|
label: e,
|
|
1525
1526
|
index: t
|
|
1526
|
-
}]), f = d.map((e) =>
|
|
1527
|
+
}]), f = d.map((e) => $e(n, c.get(e.index), i)), p = Math.max(0, ...f.map((e) => e.fontPx)), _ = d.map((t, n) => (e.font = f[n].font, 7 * i + 4 + e.measureText(t.label).width)), y = v(n, r.w, r.h, .23, {
|
|
1527
1528
|
itemWidths: _,
|
|
1528
1529
|
rowHeight: Math.max(p * 1.45, 12),
|
|
1529
1530
|
itemGap: 12,
|
|
@@ -1554,7 +1555,7 @@ function At(e, n, r, i, a, o) {
|
|
|
1554
1555
|
w: Math.max(1, D.plotRect.pw),
|
|
1555
1556
|
h: Math.max(1, D.plotRect.ph)
|
|
1556
1557
|
};
|
|
1557
|
-
|
|
1558
|
+
B(e, n, O.x, O.y, O.w, O.h, i, o);
|
|
1558
1559
|
let k = y ? y.side === "r" ? {
|
|
1559
1560
|
x: r.x + r.w - y.reserveW,
|
|
1560
1561
|
y: O.y,
|
|
@@ -1588,7 +1589,7 @@ function At(e, n, r, i, a, o) {
|
|
|
1588
1589
|
}
|
|
1589
1590
|
function jt(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
1590
1591
|
e.save(), e.font = `${l ? "italic " : ""}${c ? "bold " : ""}${a}px ${o}`, e.fillStyle = s ? `#${s}` : "#555";
|
|
1591
|
-
let m = f ? t :
|
|
1592
|
+
let m = f ? t : q(e, t, p), h = P(i, u, d), g = r;
|
|
1592
1593
|
if (f) {
|
|
1593
1594
|
let t = e.measureText(m).width, i = Math.abs(Math.cos(h)), o = Math.abs(Math.sin(h)), s = {
|
|
1594
1595
|
x: r.x - (t * i + a * o) / 2,
|
|
@@ -1609,7 +1610,7 @@ function jt(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
|
1609
1610
|
}
|
|
1610
1611
|
function Mt(e, n, r, i, a, o) {
|
|
1611
1612
|
if (n.valAxisTitle) {
|
|
1612
|
-
let s =
|
|
1613
|
+
let s = F(n.valAxisTitleFontSizeHpt, o), c = a ? "horizontal" : "left";
|
|
1613
1614
|
jt(e, n.valAxisTitle, r, a ? {
|
|
1614
1615
|
x: i.x + i.w / 2,
|
|
1615
1616
|
y: i.y + i.h + t(r.h) + s / 2
|
|
@@ -1619,7 +1620,7 @@ function Mt(e, n, r, i, a, o) {
|
|
|
1619
1620
|
}, c, s, $(n, n.valAxisTitleFontFace, "major"), n.valAxisTitleFontColor, n.valAxisTitleFontBold ?? !0, n.valAxisTitleFontItalic ?? !1, n.valAxisTitleRotation, n.valAxisTitleVerticalMode, n.valAxisTitleManualLayout, a ? i.w : i.h);
|
|
1620
1621
|
}
|
|
1621
1622
|
if (n.catAxisTitle) {
|
|
1622
|
-
let s =
|
|
1623
|
+
let s = F(n.catAxisTitleFontSizeHpt, o), c = a ? "left" : "horizontal";
|
|
1623
1624
|
jt(e, n.catAxisTitle, r, a ? {
|
|
1624
1625
|
x: i.x - t(r.w) - s / 2,
|
|
1625
1626
|
y: i.y + i.h / 2
|
|
@@ -1669,7 +1670,7 @@ function Nt(e, t, n, i, a, o, s, c, l, u, d) {
|
|
|
1669
1670
|
f.tickLabelPos !== "none" && n % T === 0 && e.fillText(t.series[n].name || `Series ${n + 1}`, o.x + x.x * (6 * d + 3), o.y + x.y * (6 * d + 3));
|
|
1670
1671
|
}
|
|
1671
1672
|
if (e.setLineDash([]), f.title) {
|
|
1672
|
-
let r =
|
|
1673
|
+
let r = F(f.titleFontSizeHpt, d);
|
|
1673
1674
|
jt(e, f.title, n, {
|
|
1674
1675
|
x: C.x + x.x * (D + r + 12),
|
|
1675
1676
|
y: C.y + x.y * (D + r + 12)
|
|
@@ -1678,35 +1679,35 @@ function Nt(e, t, n, i, a, o, s, c, l, u, d) {
|
|
|
1678
1679
|
}
|
|
1679
1680
|
function Pt(e, t, n, r, i, a, o, s) {
|
|
1680
1681
|
if (t.lineHidden !== !0) {
|
|
1681
|
-
let s = t.lineWidthEmu == null ? Math.max(1, 2 * o) : Math.max(.5, t.lineWidthEmu /
|
|
1682
|
-
e.beginPath(), e.moveTo(r, i), e.lineTo(r + a, i), e.strokeStyle = t.lineColor ? `#${t.lineColor}` :
|
|
1682
|
+
let s = t.lineWidthEmu == null ? Math.max(1, 2 * o) : Math.max(.5, t.lineWidthEmu / W * o);
|
|
1683
|
+
e.beginPath(), e.moveTo(r, i), e.lineTo(r + a, i), e.strokeStyle = t.lineColor ? `#${t.lineColor}` : Y(n, .7), e.lineWidth = s, e.setLineDash(H(t.chartexStyle?.lineDash ?? "solid", s)), e.stroke(), e.setLineDash([]);
|
|
1683
1684
|
}
|
|
1684
1685
|
if (t.showMarker !== !0 || t.markerSymbol === "none") return;
|
|
1685
|
-
let c = t.markerSymbol ?? "circle", l =
|
|
1686
|
+
let c = t.markerSymbol ?? "circle", l = I(t, n.replace(/^#/, "")), u = l === "00000000" ? "transparent" : l.startsWith("#") ? l : `#${l}`, d = t.markerLine ?? t.lineColor ?? n.replace(/^#/, ""), f = d === "00000000" ? "rgba(0,0,0,0)" : d.startsWith("#") ? d : `#${d}`, p = t.markerLineWidthEmu == null ? Math.max(.75, o) : Math.max(.25, t.markerLineWidthEmu / W * o);
|
|
1686
1687
|
Dt(e, {
|
|
1687
1688
|
x: r + a / 2,
|
|
1688
1689
|
y: i
|
|
1689
|
-
}, c, Math.min(a, Math.max(2, (t.markerSize ?? 5) * o)), u, f, p,
|
|
1690
|
+
}, c, Math.min(a, Math.max(2, (t.markerSize ?? 5) * o)), u, f, p, M(t), s, o);
|
|
1690
1691
|
}
|
|
1691
1692
|
function Ft(e, t, n, r, i = !1, a, o = 0) {
|
|
1692
1693
|
if (!n) return;
|
|
1693
|
-
|
|
1694
|
+
L(e, t, n, r, o);
|
|
1694
1695
|
let c = new Map(t.series[0]?.dataPointOverrides?.map((e) => [e.idx, e]) ?? []), l = i ? (t.series[0]?.categories?.length ? t.series[0].categories : t.categories).map((e, n) => {
|
|
1695
1696
|
let r = t.series[0]?.dataPointColors?.[n];
|
|
1696
1697
|
return {
|
|
1697
1698
|
label: e,
|
|
1698
|
-
color: r === "00000000" ? "transparent" : r ? `#${r}` :
|
|
1699
|
+
color: r === "00000000" ? "transparent" : r ? `#${r}` : ot(n),
|
|
1699
1700
|
series: t.series[0],
|
|
1700
1701
|
point: c.get(n),
|
|
1701
1702
|
sourceIndex: n
|
|
1702
1703
|
};
|
|
1703
1704
|
}) : t.series.map((e, t) => ({
|
|
1704
1705
|
label: e.name || `Series ${t + 1}`,
|
|
1705
|
-
color:
|
|
1706
|
+
color: ot(t, e),
|
|
1706
1707
|
series: e,
|
|
1707
1708
|
point: void 0,
|
|
1708
1709
|
sourceIndex: t
|
|
1709
|
-
})), u =
|
|
1710
|
+
})), u = Qe(t), d = l.filter((e) => u.get(e.sourceIndex)?.deleted !== !0), f = a != null && a.labels.length === d.length && a.labels.every((e, t) => e === d[t].label), p = f ? a.styles : d.map((e) => $e(t, u.get(e.sourceIndex), r));
|
|
1710
1711
|
e.textAlign = "left", e.textBaseline = "middle";
|
|
1711
1712
|
let m = Math.max(Math.max(0, ...p.map((e) => e.fontPx)) * 1.45, 12), h = Math.min(7 * r, m * .7);
|
|
1712
1713
|
if (t.legendPos === "t" || t.legendPos === "b" || t.legendManualLayout != null && n.w >= n.h) {
|
|
@@ -1721,9 +1722,9 @@ function Ft(e, t, n, r, i = !1, a, o = 0) {
|
|
|
1721
1722
|
else {
|
|
1722
1723
|
u.color !== "transparent" && (e.fillStyle = u.color, e.fillRect(f, l - h / 2, h, h));
|
|
1723
1724
|
let t = u.point?.lineHidden ?? u.series?.lineHidden, n = u.point?.lineColor ?? u.series?.lineColor;
|
|
1724
|
-
t !== !0 && n && (e.strokeStyle = `#${n}`, e.lineWidth = (u.point?.lineWidthEmu ?? u.series?.lineWidthEmu) == null ? .75 * r : Math.max(.25, (u.point?.lineWidthEmu ?? u.series?.lineWidthEmu ?? 0) /
|
|
1725
|
+
t !== !0 && n && (e.strokeStyle = `#${n}`, e.lineWidth = (u.point?.lineWidthEmu ?? u.series?.lineWidthEmu) == null ? .75 * r : Math.max(.25, (u.point?.lineWidthEmu ?? u.series?.lineWidthEmu ?? 0) / W * r), e.setLineDash(H(u.point?.lineDash ?? u.series?.chartexStyle?.lineDash ?? "solid", e.lineWidth)), e.strokeRect(f, l - h / 2, h, h), e.setLineDash([]));
|
|
1725
1726
|
}
|
|
1726
|
-
e.fillStyle = m.color, e.fillText(
|
|
1727
|
+
e.fillStyle = m.color, e.fillText(q(e, u.label, g), f + h + 4, l), f += c[n] + 12;
|
|
1727
1728
|
}
|
|
1728
1729
|
l += m;
|
|
1729
1730
|
}
|
|
@@ -1742,7 +1743,7 @@ function Ft(e, t, n, r, i = !1, a, o = 0) {
|
|
|
1742
1743
|
else {
|
|
1743
1744
|
c.color !== "transparent" && (e.fillStyle = c.color, e.fillRect(n.x + 4, b - h / 2, h, h));
|
|
1744
1745
|
let t = c.point?.lineHidden ?? c.series?.lineHidden, i = c.point?.lineColor ?? c.series?.lineColor;
|
|
1745
|
-
t !== !0 && i && (e.strokeStyle = `#${i}`, e.lineWidth = (c.point?.lineWidthEmu ?? c.series?.lineWidthEmu) == null ? .75 * r : Math.max(.25, (c.point?.lineWidthEmu ?? c.series?.lineWidthEmu ?? 0) /
|
|
1746
|
+
t !== !0 && i && (e.strokeStyle = `#${i}`, e.lineWidth = (c.point?.lineWidthEmu ?? c.series?.lineWidthEmu) == null ? .75 * r : Math.max(.25, (c.point?.lineWidthEmu ?? c.series?.lineWidthEmu ?? 0) / W * r), e.setLineDash(H(c.point?.lineDash ?? c.series?.chartexStyle?.lineDash ?? "solid", e.lineWidth)), e.strokeRect(n.x + 4, b - h / 2, h, h), e.setLineDash([]));
|
|
1746
1747
|
}
|
|
1747
1748
|
e.fillStyle = l.color;
|
|
1748
1749
|
let x = b - (v.length - 1) * _ / 2;
|
|
@@ -1751,7 +1752,7 @@ function Ft(e, t, n, r, i = !1, a, o = 0) {
|
|
|
1751
1752
|
}
|
|
1752
1753
|
function It(e, t, n, r, i, a) {
|
|
1753
1754
|
let o = i ? 100 : 1, s = e.valAxisMinorTickMark ?? "none";
|
|
1754
|
-
return
|
|
1755
|
+
return K({
|
|
1755
1756
|
dataMin: t,
|
|
1756
1757
|
dataMax: n,
|
|
1757
1758
|
explicitMin: e.valMin == null ? i ? t : null : e.valMin * o,
|
|
@@ -1804,23 +1805,23 @@ function Rt(e) {
|
|
|
1804
1805
|
};
|
|
1805
1806
|
}
|
|
1806
1807
|
function zt(e, t, n, r, i = "A6A6A6", a = .75) {
|
|
1807
|
-
let o = t != null && Number.isFinite(t) && t >= 0 ? Math.max(.25, t /
|
|
1808
|
+
let o = t != null && Number.isFinite(t) && t >= 0 ? Math.max(.25, t / W * r) : a * r;
|
|
1808
1809
|
return {
|
|
1809
1810
|
color: `#${e ?? i}`,
|
|
1810
1811
|
width: o,
|
|
1811
|
-
dash:
|
|
1812
|
+
dash: H(n ?? "solid", o)
|
|
1812
1813
|
};
|
|
1813
1814
|
}
|
|
1814
1815
|
function Bt(e, t, n, r) {
|
|
1815
1816
|
let i = zt(e, t, n, r, "898989", 1);
|
|
1816
1817
|
if (t == null || !Number.isFinite(t) || t < 0) return i;
|
|
1817
|
-
let a = t /
|
|
1818
|
+
let a = t / W * r;
|
|
1818
1819
|
if (!(a > 0)) return i;
|
|
1819
1820
|
let o = a;
|
|
1820
1821
|
return {
|
|
1821
1822
|
...i,
|
|
1822
1823
|
width: o,
|
|
1823
|
-
dash:
|
|
1824
|
+
dash: H(n ?? "solid", o)
|
|
1824
1825
|
};
|
|
1825
1826
|
}
|
|
1826
1827
|
function Vt(e, t, n, r) {
|
|
@@ -1832,13 +1833,13 @@ function Ht(e, t) {
|
|
|
1832
1833
|
function Ut(e, t, n, r, i, a, s, l, u) {
|
|
1833
1834
|
let { front: d } = n, f = d.x, m = d.x + d.w, h = Rt(n), { sideX: g, floorY: _, oppositeFloorY: v, nearDepth: y, farDepth: b } = h, x = Xt(t, n, r, a, s, l, i), S = [], C = t.catAxisLinePaintAuthored === !0, T = t.valAxisLinePaintAuthored === !0, E = i === "vertical" ? C && !t.catAxisHidden && !t.catAxisLineHidden : T && !t.valAxisHidden && !t.valAxisLineHidden, D = i === "vertical" ? T && !t.valAxisHidden && !t.valAxisLineHidden : C && !t.catAxisHidden && !t.catAxisLineHidden;
|
|
1834
1835
|
E && S.push([x.horizontalStart, x.horizontalEnd]), D && S.push([x.verticalStart, x.verticalEnd]);
|
|
1835
|
-
let
|
|
1836
|
-
if (
|
|
1836
|
+
let k = t.threeD?.seriesAxis, A = k?.linePaintAuthored === !0;
|
|
1837
|
+
if (k && !k.hidden && !k.lineHidden && A && t.threeD?.barGrouping === "standard" && t.series.length > 0) {
|
|
1837
1838
|
let e = i === "vertical" ? h.seriesAxisX : x.axisX, t = i === "horizontal" ? _ === n.front.y ? n.front.y + n.front.h : n.front.y : _;
|
|
1838
1839
|
S.push([n.project(e, t, y), n.project(e, t, b)]);
|
|
1839
1840
|
}
|
|
1840
1841
|
let j = (e, t) => Math.hypot(e.x - t.x, e.y - t.y) <= 1e-6, M = (e, t) => S.some(([n, r]) => j(e, n) && j(t, r) || j(e, r) && j(t, n)), N = (e, t) => {
|
|
1841
|
-
let r =
|
|
1842
|
+
let r = J(n, e, t?.thicknessPercent), i = r.faces.map((e, t) => ({
|
|
1842
1843
|
scenePoints: e,
|
|
1843
1844
|
faceIndex: t
|
|
1844
1845
|
})).filter(({ scenePoints: e }) => r.thickness === 0 || n.cameraFacing(e)).map(({ scenePoints: e, faceIndex: t }) => ({
|
|
@@ -1852,31 +1853,31 @@ function Ut(e, t, n, r, i, a, s, l, u) {
|
|
|
1852
1853
|
faces: i,
|
|
1853
1854
|
visibleFaceIndices: new Set(i.map((e) => e.faceIndex))
|
|
1854
1855
|
};
|
|
1855
|
-
}, P = N("floor", t.threeD?.floor), F = N("sideWall", t.threeD?.sideWall), I = N("backWall", t.threeD?.backWall), L = P.faces, R = F.faces,
|
|
1856
|
+
}, P = N("floor", t.threeD?.floor), F = N("sideWall", t.threeD?.sideWall), I = N("backWall", t.threeD?.backWall), L = P.faces, R = F.faces, z = I.faces, ee = (i, a, s, l) => {
|
|
1856
1857
|
let u = c(t, a, s), d = i.faces;
|
|
1857
1858
|
if (!u.fill || !d.length) return;
|
|
1858
1859
|
if (u.fill.fillType === "image") {
|
|
1859
1860
|
let t = o(u.fill);
|
|
1860
1861
|
if (!t) return;
|
|
1861
|
-
|
|
1862
|
+
ue(e, u.fill, t, a, l, i.slab, i.faces.map((e) => e.faceIndex), (e) => n.projectUnbounded(e.x, e.y, e.depth), r.max - r.min);
|
|
1862
1863
|
return;
|
|
1863
1864
|
}
|
|
1864
|
-
let f = d.flatMap((e) => e.points), p = Math.min(...f.map((e) => e.x)), m = Math.max(...f.map((e) => e.x)), h = Math.min(...f.map((e) => e.y)), g = Math.max(...f.map((e) => e.y)), _ = u.fill.fillType === "solid" ? `#${u.fill.color}` :
|
|
1865
|
+
let f = d.flatMap((e) => e.points), p = Math.min(...f.map((e) => e.x)), m = Math.max(...f.map((e) => e.x)), h = Math.min(...f.map((e) => e.y)), g = Math.max(...f.map((e) => e.y)), _ = u.fill.fillType === "solid" ? `#${u.fill.color}` : V(u.fill, e, p, h, m - p, g - h);
|
|
1865
1866
|
if (_) for (let t of d) t.points.length < 3 || (ht(e, t.points), e.fillStyle = _, e.fill());
|
|
1866
1867
|
};
|
|
1867
|
-
|
|
1868
|
-
let
|
|
1869
|
-
for (let s of
|
|
1868
|
+
ee(P, t.threeD?.floor, "floor", "floor"), ee(F, t.threeD?.sideWall, "wall", "sideWall"), ee(I, t.threeD?.backWall, "wall", "backWall");
|
|
1869
|
+
let B = (t, r, i, a, o = !0) => {
|
|
1870
|
+
for (let s of pe(t.slab, r, i, a)) {
|
|
1870
1871
|
if (!o && s.faceIndex !== 0 || !t.visibleFaceIndices.has(s.faceIndex)) continue;
|
|
1871
1872
|
let [r, i] = s.scenePoints.map((e) => n.projectUnbounded(e.x, e.y, e.depth));
|
|
1872
1873
|
e.beginPath(), e.moveTo(r.x, r.y), e.lineTo(i.x, i.y), e.stroke();
|
|
1873
1874
|
}
|
|
1874
|
-
},
|
|
1875
|
+
}, te = (t, a, o) => {
|
|
1875
1876
|
Ht(e, a);
|
|
1876
1877
|
for (let a of t) {
|
|
1877
1878
|
let t = r.fraction(a);
|
|
1878
1879
|
if (o) {
|
|
1879
|
-
i === "horizontal" ? (
|
|
1880
|
+
i === "horizontal" ? (B(P, "floor", "x", t), B(I, "backWall", "x", t)) : (B(F, "sideWall", "y", t), B(I, "backWall", "y", t));
|
|
1880
1881
|
continue;
|
|
1881
1882
|
}
|
|
1882
1883
|
if (i === "horizontal") {
|
|
@@ -1888,23 +1889,23 @@ function Ut(e, t, n, r, i, a, s, l, u) {
|
|
|
1888
1889
|
}
|
|
1889
1890
|
}
|
|
1890
1891
|
};
|
|
1891
|
-
t.valAxisMinorGridlines === !0 &&
|
|
1892
|
-
let
|
|
1892
|
+
t.valAxisMinorGridlines === !0 && te(r.minorTicks, zt(t.valAxisMinorGridlineColor, t.valAxisMinorGridlineWidthEmu, t.valAxisMinorGridlineDash, u, "D9D9D9", .5), !0), t.valAxisMajorGridlines === !0 && te(r.majorTicks, zt(t.valAxisGridlineColor, t.valAxisGridlineWidthEmu, t.valAxisGridlineDash, u, "898989", 1), !0);
|
|
1893
|
+
let ne = (t, n) => {
|
|
1893
1894
|
Ht(e, n);
|
|
1894
|
-
for (let e of t) i === "vertical" ? (
|
|
1895
|
+
for (let e of t) i === "vertical" ? (B(P, "floor", "x", e), B(I, "backWall", "x", e)) : (B(F, "sideWall", "y", e), B(I, "backWall", "y", e));
|
|
1895
1896
|
};
|
|
1896
|
-
t.catAxisMinorGridlines === !0 &&
|
|
1897
|
-
let
|
|
1897
|
+
t.catAxisMinorGridlines === !0 && ne(w(a, s), zt(t.catAxisMinorGridlineColor, t.catAxisMinorGridlineWidthEmu, t.catAxisMinorGridlineDash, u, "E0E0E0", .5)), t.catAxisMajorGridlines === !0 && ne(p(a, s), zt(t.catAxisGridlineColor, t.catAxisGridlineWidthEmu, t.catAxisGridlineDash, u, "E0E0E0", .5));
|
|
1898
|
+
let H = (n, r, i) => {
|
|
1898
1899
|
if (!n.length) return;
|
|
1899
1900
|
let a = c(t, r, i);
|
|
1900
1901
|
if (a.line === null) return;
|
|
1901
1902
|
let o = a.line ?? {
|
|
1902
1903
|
fillType: "solid",
|
|
1903
1904
|
color: "898989"
|
|
1904
|
-
}, s = n.flatMap((e) => e.points), l = Math.min(...s.map((e) => e.x)), d = Math.max(...s.map((e) => e.x)), f = Math.min(...s.map((e) => e.y)), p = Math.max(...s.map((e) => e.y)), m = o.fillType === "solid" ? `#${o.color}` :
|
|
1905
|
+
}, s = n.flatMap((e) => e.points), l = Math.min(...s.map((e) => e.x)), d = Math.max(...s.map((e) => e.x)), f = Math.min(...s.map((e) => e.y)), p = Math.max(...s.map((e) => e.y)), m = o.fillType === "solid" ? `#${o.color}` : V(o, e, l, f, d - l, p - f);
|
|
1905
1906
|
if (!m) return;
|
|
1906
|
-
let h = a.lineWidthEmu == null ? u : Math.max(.25, a.lineWidthEmu /
|
|
1907
|
-
e.strokeStyle = m, e.lineWidth = h, e.setLineDash(
|
|
1907
|
+
let h = a.lineWidthEmu == null ? u : Math.max(.25, a.lineWidthEmu / W * u);
|
|
1908
|
+
e.strokeStyle = m, e.lineWidth = h, e.setLineDash(O(a.lineCustomDash, a.lineDash, h)), e.lineCap = a.lineCap === "rnd" ? "round" : a.lineCap === "sq" ? "square" : "butt", e.lineJoin = a.lineJoin === "round" || a.lineJoin === "bevel" ? a.lineJoin : "miter";
|
|
1908
1909
|
for (let t of n) {
|
|
1909
1910
|
if (t.points.length < 2) continue;
|
|
1910
1911
|
let n = t.points.map((e, n) => ({
|
|
@@ -1920,7 +1921,7 @@ function Ut(e, t, n, r, i, a, s, l, u) {
|
|
|
1920
1921
|
e.lineTo(t.points[0].x, t.points[0].y), e.closePath(), e.stroke();
|
|
1921
1922
|
}
|
|
1922
1923
|
};
|
|
1923
|
-
|
|
1924
|
+
H(L, t.threeD?.floor, "floor"), H(R, t.threeD?.sideWall, "wall"), H(z, t.threeD?.backWall, "wall"), e.setLineDash([]);
|
|
1924
1925
|
}
|
|
1925
1926
|
function Wt(e, t, n, r, i, a, o, s, c) {
|
|
1926
1927
|
let l = Xt(t, n, r, i, a, o, c), u = c === "vertical" ? !t.catAxisHidden && !t.catAxisLineHidden : !t.valAxisHidden && !t.valAxisLineHidden, d = c === "vertical" ? !t.valAxisHidden && !t.valAxisLineHidden : !t.catAxisHidden && !t.catAxisLineHidden;
|
|
@@ -2017,63 +2018,63 @@ function Zt(e, t, n, r, i, a, o, s, c, l) {
|
|
|
2017
2018
|
}
|
|
2018
2019
|
function Qt(e, t, n, i, a) {
|
|
2019
2020
|
if (!t.threeD) return !1;
|
|
2020
|
-
let o = t.chartType === "clusteredBar" || t.chartType === "clusteredBarH" || t.chartType.startsWith("stackedBar"), s = t.chartType.endsWith("H") || t.chartType.includes("BarH"), c = t.chartType.startsWith("stacked"), l = o && !c && t.threeD.barGrouping === "standard", { plot: u, legend: d, legendMeasure: p } = At(e, t, n, i, s ? "horizontal" : "vertical", a), m =
|
|
2021
|
+
let o = t.chartType === "clusteredBar" || t.chartType === "clusteredBarH" || t.chartType.startsWith("stackedBar"), s = t.chartType.endsWith("H") || t.chartType.includes("BarH"), c = t.chartType.startsWith("stacked"), l = o && !c && t.threeD.barGrouping === "standard", { plot: u, legend: d, legendMeasure: p } = At(e, t, n, i, s ? "horizontal" : "vertical", a), m = le(t.threeD, u, {
|
|
2021
2022
|
sceneDepthScale: o ? l ? .65 : .1 : .4,
|
|
2022
2023
|
perspectiveTangentGain: l ? 1 : 2,
|
|
2023
2024
|
sceneHeightScale: !o && !(t.threeD.heightPercentAuthored ?? t.threeD.heightPercent != null) ? 1 / 3 : void 0
|
|
2024
2025
|
});
|
|
2025
2026
|
if (!m) return !0;
|
|
2026
|
-
m =
|
|
2027
|
-
let h = t.chartType.endsWith("Pct"), g = t.series.find((e) => (e.categories?.length ?? 0) > 0)?.categories ?? t.categories, _ = Math.max(1, g.length, ...t.series.map((e) => e.values.length)), v = h ?
|
|
2027
|
+
m = fe(m, t.threeD, u);
|
|
2028
|
+
let h = t.chartType.endsWith("Pct"), g = t.series.find((e) => (e.categories?.length ?? 0) > 0)?.categories ?? t.categories, _ = Math.max(1, g.length, ...t.series.map((e) => e.values.length)), v = h ? ct(t, _) : void 0, y = t.catAxisOrientation === "maxMin", b = t.catAxisCrossBetween === "between", x = t.dispBlanksAs ?? "gap", C = t.valAxisLogBase != null && Number.isFinite(t.valAxisLogBase) && t.valAxisLogBase >= 2, w = (e, n) => {
|
|
2028
2029
|
let r = t.series[e]?.values[n];
|
|
2029
2030
|
return r != null && Number.isFinite(r) && (!C || r > 0) || r == null && (c || x === "zero");
|
|
2030
|
-
}, T = (e, n) =>
|
|
2031
|
+
}, T = (e, n) => lt(t, e, n, v), k = 0, A = 0;
|
|
2031
2032
|
if (c) {
|
|
2032
2033
|
for (let e = 0; e < _; e++) {
|
|
2033
2034
|
let n = 0, r = 0;
|
|
2034
2035
|
for (let i = 0; i < t.series.length; i++) {
|
|
2035
2036
|
let t = T(i, e);
|
|
2036
|
-
t >= 0 ? n =
|
|
2037
|
+
t >= 0 ? n = Z(n, t) : r = Z(r, t);
|
|
2037
2038
|
}
|
|
2038
|
-
|
|
2039
|
+
k = Math.min(k, r), A = Math.max(A, n);
|
|
2039
2040
|
}
|
|
2040
|
-
h && (
|
|
2041
|
+
h && (k = k < 0 ? -100 : 0, A = A > 0 ? 100 : 0, k === 0 && A === 0 && (A = 1));
|
|
2041
2042
|
} else {
|
|
2042
|
-
let e =
|
|
2043
|
+
let e = _e(t.series.flatMap((e) => e.values).filter((e) => e != null && Number.isFinite(e) && (!C || e > 0)), C ? {
|
|
2043
2044
|
min: 1,
|
|
2044
2045
|
max: 10
|
|
2045
2046
|
} : {
|
|
2046
2047
|
min: 0,
|
|
2047
2048
|
max: 1
|
|
2048
2049
|
});
|
|
2049
|
-
|
|
2050
|
+
k = C ? e.min : Math.min(0, e.min), A = C ? e.max : Math.max(0, e.max);
|
|
2050
2051
|
}
|
|
2051
|
-
let
|
|
2052
|
-
o || Ut(e, t, m,
|
|
2053
|
-
let { front:
|
|
2052
|
+
let M = s ? m.project(m.front.x, m.topology.axisY === "min" ? m.front.y : m.front.y + m.front.h, m.topology.nearDepth) : m.project(m.topology.axisX === "min" ? m.front.x : m.front.x + m.front.w, m.front.y, m.topology.nearDepth), P = s ? m.project(m.front.x + m.front.w, m.topology.axisY === "min" ? m.front.y : m.front.y + m.front.h, m.topology.nearDepth) : m.project(m.topology.axisX === "min" ? m.front.x : m.front.x + m.front.w, m.front.y + m.front.h, m.topology.nearDepth), F = Math.hypot(P.x - M.x, P.y - M.y) / i, I = It(t, k, A, F, h, s ? "horizontal" : "vertical"), L = (e) => Number.isFinite(e) ? Math.max(I.min, Math.min(I.max, e)) : I.min;
|
|
2053
|
+
o || Ut(e, t, m, I, s ? "horizontal" : "vertical", _, b, y, i);
|
|
2054
|
+
let { front: B } = m, V = Math.max(1, t.series.length), te = [], ne = t.series.map((e) => new Map(e.dataPointOverrides?.map((e) => [e.idx, e]) ?? [])), H = t.series.map((e) => new Map(e.dataLabelOverrides?.map((e) => [e.idx, e]) ?? []));
|
|
2054
2055
|
if (o) {
|
|
2055
|
-
let r = m.prismInterval(0, 1, !0), o = [], u = Array(_).fill(0), d = Array(_).fill(0), f = (s ?
|
|
2056
|
+
let r = m.prismInterval(0, 1, !0), o = [], u = Array(_).fill(0), d = Array(_).fill(0), f = (s ? B.h : B.w) / _, p = t.barGapWidth != null && Number.isFinite(t.barGapWidth) && t.barGapWidth >= 0 ? t.barGapWidth : 150;
|
|
2056
2057
|
for (let e = 0; e < t.series.length; e++) {
|
|
2057
|
-
let n = t.series[e], a = l ? m.prismInterval(e,
|
|
2058
|
+
let n = t.series[e], a = l ? m.prismInterval(e, V, !1) : r, g = he(f, p, l ? 0 : e, l ? 1 : V, c || l);
|
|
2058
2059
|
for (let r = 0; r < _; r++) {
|
|
2059
2060
|
if (!w(e, r)) continue;
|
|
2060
|
-
let l = T(e, r), p =
|
|
2061
|
+
let l = T(e, r), p = Q(t, n, ne[e].get(r), r, e), m = p.fill === null ? "transparent" : p.color, v = p.lineFill !== null && (p.lineColor != null || p.lineFill !== void 0), b = c ? l >= 0 ? u[r] : d[r] : 0, x = Z(b, l);
|
|
2061
2062
|
c && (l >= 0 ? u[r] = x : d[r] = x);
|
|
2062
|
-
let S =
|
|
2063
|
-
if (!
|
|
2064
|
-
let t = C && !(b > 0) ?
|
|
2063
|
+
let S = L(b), E = L(x), D = n.threeDShape ?? t.threeD.shape ?? "box", O = D === "cone" || D === "pyramid", k = D === "coneToMax" || D === "pyramidToMax", A = (e) => {
|
|
2064
|
+
if (!O) return 1;
|
|
2065
|
+
let t = C && !(b > 0) ? I.min : b, n = I.fraction(t), r = I.fraction(x), i = I.fraction(e), a = r - n;
|
|
2065
2066
|
return a === 0 || !Number.isFinite(a) || !Number.isFinite(i - n) ? +(e === t) : Math.max(0, Math.min(1, 1 - (i - n) / a));
|
|
2066
|
-
},
|
|
2067
|
-
if (!
|
|
2068
|
-
let t = x >= b ?
|
|
2067
|
+
}, j = (e) => {
|
|
2068
|
+
if (!k) return 1;
|
|
2069
|
+
let t = x >= b ? I.max : I.min, n = C ? I.min : 0, r = I.fraction(t), i = I.fraction(n), a = I.fraction(e), o = Math.abs(r - i);
|
|
2069
2070
|
return !(o > 0) || ![
|
|
2070
2071
|
r,
|
|
2071
2072
|
i,
|
|
2072
2073
|
a
|
|
2073
|
-
].every(Number.isFinite) ?
|
|
2074
|
-
},
|
|
2074
|
+
].every(Number.isFinite) ? oe(e, I.min, I.max) : Math.max(0, Math.min(1, Math.abs(r - a) / o));
|
|
2075
|
+
}, M = k ? j(S) : A(S), N = k ? j(E) : A(E);
|
|
2075
2076
|
if (s) {
|
|
2076
|
-
let t =
|
|
2077
|
+
let t = B.x + I.fraction(S) * B.w, n = B.x + I.fraction(E) * B.w, s = y ? _ - 1 - r : r, c = B.y + s * f + g.offset;
|
|
2077
2078
|
o.push({
|
|
2078
2079
|
x: Math.min(t, n),
|
|
2079
2080
|
y: c,
|
|
@@ -2086,16 +2087,16 @@ function Qt(e, t, n, i, a) {
|
|
|
2086
2087
|
color: m,
|
|
2087
2088
|
fillPaint: p.fill,
|
|
2088
2089
|
lineFill: p.lineFill,
|
|
2089
|
-
shape:
|
|
2090
|
+
shape: D,
|
|
2090
2091
|
baseCoord: t,
|
|
2091
2092
|
endCoord: n,
|
|
2092
|
-
baseScale:
|
|
2093
|
-
endScale:
|
|
2093
|
+
baseScale: M,
|
|
2094
|
+
endScale: N,
|
|
2094
2095
|
omitBaseCap: !1,
|
|
2095
2096
|
omitEndCap: !1,
|
|
2096
2097
|
outline: v,
|
|
2097
2098
|
outlineColor: p.lineColor ?? "rgba(0,0,0,0.42)",
|
|
2098
|
-
outlineWidth: p.lineWidthEmu == null ? .75 * i /
|
|
2099
|
+
outlineWidth: p.lineWidthEmu == null ? .75 * i / U : it(p.lineWidthEmu, i),
|
|
2099
2100
|
outlineDash: p.lineDash ?? "solid",
|
|
2100
2101
|
outlineCustomDash: p.lineCustomDash,
|
|
2101
2102
|
outlineCap: p.lineCap,
|
|
@@ -2104,7 +2105,7 @@ function Qt(e, t, n, i, a) {
|
|
|
2104
2105
|
plottedLabelValue: x
|
|
2105
2106
|
});
|
|
2106
2107
|
} else {
|
|
2107
|
-
let t =
|
|
2108
|
+
let t = B.y + B.h - I.fraction(S) * B.h, n = B.y + B.h - I.fraction(E) * B.h, s = y ? _ - 1 - r : r, c = B.x + s * f + g.offset;
|
|
2108
2109
|
o.push({
|
|
2109
2110
|
x: c,
|
|
2110
2111
|
y: Math.min(t, n),
|
|
@@ -2117,16 +2118,16 @@ function Qt(e, t, n, i, a) {
|
|
|
2117
2118
|
color: m,
|
|
2118
2119
|
fillPaint: p.fill,
|
|
2119
2120
|
lineFill: p.lineFill,
|
|
2120
|
-
shape:
|
|
2121
|
+
shape: D,
|
|
2121
2122
|
baseCoord: t,
|
|
2122
2123
|
endCoord: n,
|
|
2123
|
-
baseScale:
|
|
2124
|
-
endScale:
|
|
2124
|
+
baseScale: M,
|
|
2125
|
+
endScale: N,
|
|
2125
2126
|
omitBaseCap: !1,
|
|
2126
2127
|
omitEndCap: !1,
|
|
2127
2128
|
outline: v,
|
|
2128
2129
|
outlineColor: p.lineColor ?? "rgba(0,0,0,0.42)",
|
|
2129
|
-
outlineWidth: p.lineWidthEmu == null ? .75 * i /
|
|
2130
|
+
outlineWidth: p.lineWidthEmu == null ? .75 * i / U : it(p.lineWidthEmu, i),
|
|
2130
2131
|
outlineDash: p.lineDash ?? "solid",
|
|
2131
2132
|
outlineCustomDash: p.lineCustomDash,
|
|
2132
2133
|
outlineCap: p.lineCap,
|
|
@@ -2138,7 +2139,7 @@ function Qt(e, t, n, i, a) {
|
|
|
2138
2139
|
}
|
|
2139
2140
|
}
|
|
2140
2141
|
if (c) {
|
|
2141
|
-
let e =
|
|
2142
|
+
let e = at(o, _);
|
|
2142
2143
|
for (let t = 0; t < _; t++) {
|
|
2143
2144
|
let n = e[t];
|
|
2144
2145
|
for (let e of [-1, 1]) {
|
|
@@ -2155,25 +2156,25 @@ function Qt(e, t, n, i, a) {
|
|
|
2155
2156
|
}
|
|
2156
2157
|
}
|
|
2157
2158
|
}
|
|
2158
|
-
Ut(e, t, m,
|
|
2159
|
+
Ut(e, t, m, I, s ? "horizontal" : "vertical", _, b, y, i);
|
|
2159
2160
|
let g = {
|
|
2160
|
-
remaining:
|
|
2161
|
+
remaining: Ie,
|
|
2161
2162
|
exceeded: !1
|
|
2162
2163
|
}, v = o.flatMap((t) => {
|
|
2163
2164
|
let n = yt(m, t.shape, s, t.x, t.y, t.width, t.height, t.baseCoord, t.endCoord, t.nearDepth, t.farDepth, t.color, t.baseScale, t.endScale, t.omitBaseCap, t.omitEndCap, t.outline && t.outlineColor ? {
|
|
2164
2165
|
color: t.outlineColor,
|
|
2165
2166
|
width: t.outlineWidth,
|
|
2166
|
-
dash:
|
|
2167
|
+
dash: O(t.outlineCustomDash, t.outlineDash, t.outlineWidth),
|
|
2167
2168
|
cap: t.outlineCap,
|
|
2168
2169
|
join: t.outlineJoin
|
|
2169
2170
|
} : void 0, g);
|
|
2170
2171
|
return Ct(e, n, "fill", t.fillPaint, a), Ct(e, n, "outline", t.lineFill, a), n;
|
|
2171
2172
|
});
|
|
2172
2173
|
if (g.exceeded) return wt(e, n), !0;
|
|
2173
|
-
for (let t of
|
|
2174
|
+
for (let t of Fe(v)) St(e, t);
|
|
2174
2175
|
for (let r of o) {
|
|
2175
|
-
let o = t.series[r.seriesIndex], c = s ? m.project(r.endCoord, r.y + r.height / 2, (r.nearDepth + r.farDepth) / 2) : m.project(r.x + r.width / 2, r.endCoord, (r.nearDepth + r.farDepth) / 2), l =
|
|
2176
|
-
kt(t, o, l) && te.push(() => Ot(e, t, o, r.seriesIndex, r.categoryIndex, r.labelValue, c, n, i, 0, void 0, l, "t", c, !0, t.valAxisDisplayUnits,
|
|
2176
|
+
let o = t.series[r.seriesIndex], c = s ? m.project(r.endCoord, r.y + r.height / 2, (r.nearDepth + r.farDepth) / 2) : m.project(r.x + r.width / 2, r.endCoord, (r.nearDepth + r.farDepth) / 2), l = H[r.seriesIndex].get(r.categoryIndex);
|
|
2177
|
+
kt(t, o, l) && te.push(() => Ot(e, t, o, r.seriesIndex, r.categoryIndex, r.labelValue, c, n, i, 0, void 0, l, "t", c, !0, t.valAxisDisplayUnits, I.max, r.plottedLabelValue, a));
|
|
2177
2178
|
}
|
|
2178
2179
|
} else {
|
|
2179
2180
|
let r = t.series.map(() => Array(_).fill(0)), o = t.series.map(() => Array(_).fill(0));
|
|
@@ -2181,37 +2182,37 @@ function Qt(e, t, n, i, a) {
|
|
|
2181
2182
|
let e = Array(_).fill(0), n = Array(_).fill(0);
|
|
2182
2183
|
for (let i = 0; i < t.series.length; i++) for (let t = 0; t < _; t++) {
|
|
2183
2184
|
let a = T(i, t), s = a >= 0 ? e[t] : n[t];
|
|
2184
|
-
r[i][t] = s, o[i][t] =
|
|
2185
|
+
r[i][t] = s, o[i][t] = Z(s, a), a >= 0 ? e[t] = Z(e[t], a) : n[t] = Z(n[t], a);
|
|
2185
2186
|
}
|
|
2186
2187
|
}
|
|
2187
2188
|
let s = (e) => {
|
|
2188
|
-
let t = m.seriesDepth(e,
|
|
2189
|
+
let t = m.seriesDepth(e, V, c), n = 0, r = 0;
|
|
2189
2190
|
for (let i = 0; i < _; i++) {
|
|
2190
2191
|
if (!w(e, i)) continue;
|
|
2191
|
-
let a = c ? o[e][i] : T(e, i), s =
|
|
2192
|
+
let a = c ? o[e][i] : T(e, i), s = B.x + S(i, _, b, y) * B.w, l = B.y + B.h - I.fraction(L(a)) * B.h;
|
|
2192
2193
|
n += m.cameraDepth(s, l, t), r++;
|
|
2193
2194
|
}
|
|
2194
2195
|
return r > 0 ? n / r : -Infinity;
|
|
2195
|
-
}, l = t.series.map((e, t) => t).sort((e, t) => s(e) - s(t) || t - e), u = t.series.map((e, n) =>
|
|
2196
|
+
}, l = t.series.map((e, t) => t).sort((e, t) => s(e) - s(t) || t - e), u = t.series.map((e, n) => Q(t, e, void 0, n, n)), d = [], f = [], p = !1;
|
|
2196
2197
|
for (let s of l) {
|
|
2197
2198
|
if (p) break;
|
|
2198
|
-
let l = t.series[s], g = u[s], v = g.fill === null ? "transparent" : g.color, C = c ? m.prismInterval(0, 1, !0) : m.prismInterval(s,
|
|
2199
|
+
let l = t.series[s], g = u[s], v = g.fill === null ? "transparent" : g.color, C = c ? m.prismInterval(0, 1, !0) : m.prismInterval(s, V, !1), E = B.x + B.w / 2, k = B.y + B.h / 2, A = m.cameraDepth(E, k, C.near) >= m.cameraDepth(E, k, C.far) ? C.near : C.far, M = [], P = [], F = [], L = [], z = [], re = [], ie = [], U = [], G = [], K = [];
|
|
2199
2200
|
for (let e = 0; e < _; e++) {
|
|
2200
2201
|
if (!w(s, e)) {
|
|
2201
|
-
|
|
2202
|
+
M.push(null), P.push(null), F.push(null), L.push(null), z.push(null), re.push(null), ie.push(null), U.push(null), G.push(null), K.push(null);
|
|
2202
2203
|
continue;
|
|
2203
2204
|
}
|
|
2204
|
-
let n = c ? o[s][e] : T(s, e), i = c ? r[s][e] : 0, a =
|
|
2205
|
-
|
|
2205
|
+
let n = c ? o[s][e] : T(s, e), i = c ? r[s][e] : 0, a = B.x + S(e, _, b, y) * B.w, l = I.fraction(n), u = I.fraction(i), d = Number.isFinite(u) ? u : i <= I.min ? 0 : 1, f = Number.isFinite(l) && l >= 0 && l <= 1, p = Number.isFinite(l) ? Math.max(0, Math.min(1, l)) : n <= I.min ? 0 : 1, h = B.y + B.h - p * B.h, g = B.y + B.h - Math.max(0, Math.min(1, d)) * B.h;
|
|
2206
|
+
M.push(t.chartType.toLowerCase().includes("area") || f ? m.project(a, h, A) : null), P.push(m.project(a, g, A)), F.push(f ? m.cameraDepth(a, h, A) : null), L.push(m.cameraDepth(a, g, A)), z.push(n), re.push(a), ie.push(h), U.push(g), G.push(l), K.push(d);
|
|
2206
2207
|
}
|
|
2207
|
-
let
|
|
2208
|
-
for (let e = 0; e <
|
|
2209
|
-
let t =
|
|
2208
|
+
let ae = [], q = null;
|
|
2209
|
+
for (let e = 0; e < M.length; e++) {
|
|
2210
|
+
let t = M[e], n = P[e];
|
|
2210
2211
|
if (!t || !n) {
|
|
2211
|
-
x === "gap" && (
|
|
2212
|
+
x === "gap" && (q && ae.push(q), q = null);
|
|
2212
2213
|
continue;
|
|
2213
2214
|
}
|
|
2214
|
-
|
|
2215
|
+
q ??= {
|
|
2215
2216
|
upper: [],
|
|
2216
2217
|
lower: [],
|
|
2217
2218
|
upperDepths: [],
|
|
@@ -2222,17 +2223,17 @@ function Qt(e, t, n, i, a) {
|
|
|
2222
2223
|
lowerYs: [],
|
|
2223
2224
|
upperFractions: [],
|
|
2224
2225
|
lowerFractions: []
|
|
2225
|
-
},
|
|
2226
|
+
}, q.upper.push(t), q.lower.push(n), q.upperDepths.push(F[e] ?? 0), q.lowerDepths.push(L[e] ?? 0), q.indices.push(e), q.sceneXs.push(re[e] ?? 0), q.upperYs.push(ie[e] ?? 0), q.lowerYs.push(U[e] ?? 0), q.upperFractions.push(G[e] ?? 0), q.lowerFractions.push(K[e] ?? 0);
|
|
2226
2227
|
}
|
|
2227
|
-
|
|
2228
|
-
let
|
|
2228
|
+
q && ae.push(q);
|
|
2229
|
+
let J = [], oe = [];
|
|
2229
2230
|
if (t.chartType.toLowerCase().includes("area")) {
|
|
2230
|
-
for (let t of
|
|
2231
|
+
for (let t of ae) {
|
|
2231
2232
|
let n = null;
|
|
2232
2233
|
for (let r = 0; r + 1 < t.upper.length; r++) {
|
|
2233
|
-
let i =
|
|
2234
|
+
let i = ke(t.lowerFractions[r], t.lowerFractions[r + 1], t.upperFractions[r], t.upperFractions[r + 1]);
|
|
2234
2235
|
for (let a = 0; a < i.length; a++) {
|
|
2235
|
-
let o = i[a], s = t.sceneXs[r] + (t.sceneXs[r + 1] - t.sceneXs[r]) * o.startT, c = t.sceneXs[r] + (t.sceneXs[r + 1] - t.sceneXs[r]) * o.endT, l =
|
|
2236
|
+
let o = i[a], s = t.sceneXs[r] + (t.sceneXs[r + 1] - t.sceneXs[r]) * o.startT, c = t.sceneXs[r] + (t.sceneXs[r + 1] - t.sceneXs[r]) * o.endT, l = B.y + B.h - o.lowerStart * B.h, u = B.y + B.h - o.lowerEnd * B.h, f = B.y + B.h - o.upperStart * B.h, h = B.y + B.h - o.upperEnd * B.h, g = {
|
|
2236
2237
|
...m.project(s, f, A),
|
|
2237
2238
|
cameraDepth: m.cameraDepth(s, f, A),
|
|
2238
2239
|
cameraWeight: m.cameraProjectionWeight(s, f, A)
|
|
@@ -2241,7 +2242,7 @@ function Qt(e, t, n, i, a) {
|
|
|
2241
2242
|
cameraDepth: m.cameraDepth(c, h, A),
|
|
2242
2243
|
cameraWeight: m.cameraProjectionWeight(c, h, A)
|
|
2243
2244
|
};
|
|
2244
|
-
n != null && Math.hypot(n.at(-1).x - g.x, n.at(-1).y - g.y) <= 1e-8 ? n.push(_) : (n && n.length >= 2 &&
|
|
2245
|
+
n != null && Math.hypot(n.at(-1).x - g.x, n.at(-1).y - g.y) <= 1e-8 ? n.push(_) : (n && n.length >= 2 && J.push(n), n = [g, _]);
|
|
2245
2246
|
let y = vt(m, s, c, l, u, f, h, C.near, C.far, v, r === 0 && a === 0 && o.startT === 0, r + 2 === t.upper.length && a + 1 === i.length && o.endT === 1);
|
|
2246
2247
|
for (let t of y) {
|
|
2247
2248
|
if (d.length >= 1e4) {
|
|
@@ -2255,41 +2256,41 @@ function Qt(e, t, n, i, a) {
|
|
|
2255
2256
|
cameraWeights: t.cameraWeights,
|
|
2256
2257
|
layer: 0,
|
|
2257
2258
|
paint: () => St(e, t)
|
|
2258
|
-
}),
|
|
2259
|
+
}), oe.push(t);
|
|
2259
2260
|
}
|
|
2260
2261
|
if (p) break;
|
|
2261
2262
|
}
|
|
2262
2263
|
if (p) break;
|
|
2263
2264
|
}
|
|
2264
|
-
if (n && n.length >= 2 &&
|
|
2265
|
+
if (n && n.length >= 2 && J.push(n), p) break;
|
|
2265
2266
|
}
|
|
2266
|
-
Ct(e,
|
|
2267
|
+
Ct(e, oe, "fill", g.fill, a);
|
|
2267
2268
|
}
|
|
2268
|
-
let
|
|
2269
|
+
let se = [];
|
|
2269
2270
|
if (!t.chartType.toLowerCase().includes("area")) {
|
|
2270
2271
|
let e = [], t = null;
|
|
2271
2272
|
for (let n = 0; n < _; n++) {
|
|
2272
|
-
let r =
|
|
2273
|
+
let r = z[n], i = r == null ? NaN : I.fraction(r);
|
|
2273
2274
|
if (r == null || !Number.isFinite(i)) {
|
|
2274
2275
|
x === "gap" && t && (e.push(t), t = null);
|
|
2275
2276
|
continue;
|
|
2276
2277
|
}
|
|
2277
2278
|
t ??= [], t.push({
|
|
2278
|
-
x:
|
|
2279
|
+
x: B.x + S(n, _, b, y) * B.w,
|
|
2279
2280
|
fraction: i,
|
|
2280
2281
|
ownerIndex: n
|
|
2281
2282
|
});
|
|
2282
2283
|
}
|
|
2283
2284
|
t && e.push(t);
|
|
2284
2285
|
let n = (e) => {
|
|
2285
|
-
let t = Math.max(0, Math.min(1, e.fraction)), n =
|
|
2286
|
+
let t = Math.max(0, Math.min(1, e.fraction)), n = B.y + B.h - t * B.h;
|
|
2286
2287
|
return {
|
|
2287
2288
|
...m.project(e.x, n, A),
|
|
2288
2289
|
cameraDepth: m.cameraDepth(e.x, n, A),
|
|
2289
2290
|
cameraWeight: m.cameraProjectionWeight(e.x, n, A)
|
|
2290
2291
|
};
|
|
2291
2292
|
}, r = (e) => {
|
|
2292
|
-
e && e.path.length >= 2 &&
|
|
2293
|
+
e && e.path.length >= 2 && se.push(e);
|
|
2293
2294
|
};
|
|
2294
2295
|
for (let t of e) {
|
|
2295
2296
|
if (t.length < 2) continue;
|
|
@@ -2318,7 +2319,7 @@ function Qt(e, t, n, i, a) {
|
|
|
2318
2319
|
}
|
|
2319
2320
|
let i = null, a = 0;
|
|
2320
2321
|
for (let t = 0; t + 1 < e.length; t++) {
|
|
2321
|
-
let o = e[t], s = e[t + 1], c = (e) => m.project(e.x,
|
|
2322
|
+
let o = e[t], s = e[t + 1], c = (e) => m.project(e.x, B.y + B.h - e.fraction * B.h, A), l = c(o), u = c(s), d = Math.hypot(u.x - l.x, u.y - l.y), f = Number.isFinite(d) ? d : Math.hypot(s.x - o.x, (s.fraction - o.fraction) * B.h), p = Oe(o.fraction, s.fraction);
|
|
2322
2323
|
if (!p || p.endT - p.startT <= 1e-12) {
|
|
2323
2324
|
r(i), i = null, a += f;
|
|
2324
2325
|
continue;
|
|
@@ -2329,7 +2330,7 @@ function Qt(e, t, n, i, a) {
|
|
|
2329
2330
|
ownerIndex: s.ownerIndex
|
|
2330
2331
|
}), g = c(h(p.startT)), _ = Math.hypot(g.x - l.x, g.y - l.y), v = n(h(p.startT)), y = n(h(p.endT)), b = h(p.startT), x = h(p.endT), S = (e) => ({
|
|
2331
2332
|
x: e.x,
|
|
2332
|
-
y:
|
|
2333
|
+
y: B.y + B.h - Math.max(0, Math.min(1, e.fraction)) * B.h
|
|
2333
2334
|
});
|
|
2334
2335
|
i != null && Math.hypot(i.path.at(-1).x - v.x, i.path.at(-1).y - v.y) <= 1e-8 && i.ownerIndex === s.ownerIndex ? (i.path.push(y), i.modelPath.push(S(x)), i.endClipped = t + 1 < e.length - 1 || p.endT < 1) : (r(i), i = {
|
|
2335
2336
|
path: [v, y],
|
|
@@ -2343,29 +2344,29 @@ function Qt(e, t, n, i, a) {
|
|
|
2343
2344
|
r(i);
|
|
2344
2345
|
}
|
|
2345
2346
|
}
|
|
2346
|
-
let
|
|
2347
|
-
if (!
|
|
2347
|
+
let ce = t.chartType.toLowerCase().includes("area"), le = l.lineHidden != null || l.lineColor != null || l.lineWidthEmu != null || l.chartexStyle?.lineHidden != null || l.chartexStyle?.lineColors?.some(Boolean) || l.chartexStyle?.lineWidthEmu != null || l.chartexStyle?.lineDash != null || l.chartexStyle?.lineCap != null || l.chartexStyle?.lineJoin != null || g.lineColor != null || g.lineFill !== void 0;
|
|
2348
|
+
if (!ce || g.lineFill !== null && le) {
|
|
2348
2349
|
let n = /* @__PURE__ */ new Map(), r = (e) => {
|
|
2349
|
-
let r =
|
|
2350
|
+
let r = ne[s].get(e);
|
|
2350
2351
|
if (!ft(r)) return g;
|
|
2351
2352
|
let i = n.get(e);
|
|
2352
|
-
return i || (i =
|
|
2353
|
+
return i || (i = Q(t, l, r, e, s), n.set(e, i)), i;
|
|
2353
2354
|
}, o = /* @__PURE__ */ new Map(), c = {
|
|
2354
|
-
remaining:
|
|
2355
|
+
remaining: Ie,
|
|
2355
2356
|
exceeded: !1
|
|
2356
2357
|
}, u = (t, n, r, a = r, s = 0, l) => {
|
|
2357
2358
|
if (n.lineFill === null) return;
|
|
2358
|
-
let u = n === g ? v : n.color, f = n.lineColor ??
|
|
2359
|
+
let u = n === g ? v : n.color, f = n.lineColor ?? Y(u, .7), h = n.lineWidthEmu ? Math.max(.5, n.lineWidthEmu / W) * i : ce ? .75 * i : Math.max(1, 2 * i), _ = {
|
|
2359
2360
|
width: h,
|
|
2360
|
-
dash:
|
|
2361
|
+
dash: O(n.lineCustomDash, n.lineDash, h),
|
|
2361
2362
|
dashOffset: s,
|
|
2362
2363
|
lineCap: n.lineCap,
|
|
2363
2364
|
startCap: r,
|
|
2364
2365
|
endCap: a,
|
|
2365
2366
|
lineJoin: n.lineJoin
|
|
2366
2367
|
};
|
|
2367
|
-
if (!
|
|
2368
|
-
let t =
|
|
2368
|
+
if (!ce && l && l.length >= 2) {
|
|
2369
|
+
let t = We(l.map((e) => ({
|
|
2369
2370
|
...e,
|
|
2370
2371
|
cameraDepth: 0,
|
|
2371
2372
|
cameraWeight: 1
|
|
@@ -2376,7 +2377,7 @@ function Qt(e, t, n, i, a) {
|
|
|
2376
2377
|
}
|
|
2377
2378
|
let r = o.get(n) ?? [];
|
|
2378
2379
|
for (let n of t) {
|
|
2379
|
-
let t =
|
|
2380
|
+
let t = Ee({
|
|
2380
2381
|
outline: n.points,
|
|
2381
2382
|
nearDepth: C.near,
|
|
2382
2383
|
farDepth: C.far
|
|
@@ -2403,7 +2404,7 @@ function Qt(e, t, n, i, a) {
|
|
|
2403
2404
|
o.set(n, r);
|
|
2404
2405
|
return;
|
|
2405
2406
|
}
|
|
2406
|
-
let y =
|
|
2407
|
+
let y = We(t, _);
|
|
2407
2408
|
if (y == null) {
|
|
2408
2409
|
p = !0;
|
|
2409
2410
|
return;
|
|
@@ -2433,82 +2434,82 @@ function Qt(e, t, n, i, a) {
|
|
|
2433
2434
|
});
|
|
2434
2435
|
}
|
|
2435
2436
|
};
|
|
2436
|
-
if (
|
|
2437
|
-
else for (let e of
|
|
2437
|
+
if (ce) for (let e of J) u(e, g, g.lineCap);
|
|
2438
|
+
else for (let e of se) {
|
|
2438
2439
|
let t = r(e.ownerIndex);
|
|
2439
2440
|
u(e.path, t, e.startClipped ? "butt" : t.lineCap, e.endClipped ? "butt" : t.lineCap, e.dashOffset, e.modelPath);
|
|
2440
2441
|
}
|
|
2441
2442
|
for (let [t, n] of o) Ct(e, n, "outline", t.lineFill, a);
|
|
2442
2443
|
}
|
|
2443
|
-
let
|
|
2444
|
-
if ((t.chartType.toLowerCase().includes("line") ||
|
|
2445
|
-
let n =
|
|
2444
|
+
let ue = (ce ? l.showMarker === !0 || j(l) : l.showMarker === !0) && l.markerSymbol !== "none";
|
|
2445
|
+
if ((t.chartType.toLowerCase().includes("line") || ce) && (ue || D(l))) for (let t = 0; t < M.length; t++) {
|
|
2446
|
+
let n = M[t];
|
|
2446
2447
|
if (!n) continue;
|
|
2447
|
-
let r =
|
|
2448
|
+
let r = ne[s].get(t), o = N(l, r, "circle", ue);
|
|
2448
2449
|
if (o === "none") continue;
|
|
2449
|
-
let c = r?.markerSize ?? l.markerSize ?? 5, u =
|
|
2450
|
+
let c = r?.markerSize ?? l.markerSize ?? 5, u = R(l, r, t, l.color ?? et[s % et.length]), d = ee(l, r, t), p = r?.markerLine ?? l.markerLine ?? l.lineColor ?? l.color ?? et[s % et.length], m = (r?.markerLineWidthEmu ?? l.markerLineWidthEmu) == null ? Math.max(.75, l.lineWidthEmu == null ? i : l.lineWidthEmu / W * i) : Math.max(.25, (r?.markerLineWidthEmu ?? l.markerLineWidthEmu ?? 0) / W * i);
|
|
2450
2451
|
f.push(() => Dt(e, n, o, Math.max(2, c) * i, u === "00000000" ? "transparent" : `#${u}`, `#${p}`, m, d, a, i));
|
|
2451
2452
|
}
|
|
2452
|
-
for (let r = 0; r <
|
|
2453
|
-
let u =
|
|
2453
|
+
for (let r = 0; r < M.length; r++) {
|
|
2454
|
+
let u = M[r];
|
|
2454
2455
|
if (!u) continue;
|
|
2455
|
-
let d = T(s, r), f =
|
|
2456
|
-
kt(t, l, m) && te.push(() => Ot(e, t, l, s, r, h ? d / 100 : d, u, n, i, l.showMarker === !0 || f?.markerSymbol != null ? p * i / 2 : 0, void 0, m, "t", u, !0, t.valAxisDisplayUnits,
|
|
2456
|
+
let d = T(s, r), f = ne[s].get(r), p = f?.markerSize ?? l.markerSize ?? 5, m = H[s].get(r);
|
|
2457
|
+
kt(t, l, m) && te.push(() => Ot(e, t, l, s, r, h ? d / 100 : d, u, n, i, l.showMarker === !0 || f?.markerSymbol != null ? p * i / 2 : 0, void 0, m, "t", u, !0, t.valAxisDisplayUnits, I.max, c ? o[s][r] : d, a));
|
|
2457
2458
|
}
|
|
2458
2459
|
}
|
|
2459
2460
|
if (p) return wt(e, n), !0;
|
|
2460
|
-
for (let e of
|
|
2461
|
+
for (let e of Fe(d)) e.paint();
|
|
2461
2462
|
for (let e of f) e();
|
|
2462
2463
|
}
|
|
2463
|
-
Wt(e, t, m,
|
|
2464
|
-
let
|
|
2465
|
-
if (t !== "low" && t !== "high") return
|
|
2466
|
-
let n = m.topology.nearDepth, r =
|
|
2464
|
+
Wt(e, t, m, I, _, b, y, i, s ? "horizontal" : "vertical"), Zt(e, t, m, I, _, b, y, s ? "horizontal" : "vertical", o, i), Nt(e, t, n, m, I, _, b, y, s ? "horizontal" : "vertical", o, i);
|
|
2465
|
+
let re = Xt(t, m, I, _, b, y, s ? "horizontal" : "vertical"), ie = (e, t) => {
|
|
2466
|
+
if (t !== "low" && t !== "high") return re;
|
|
2467
|
+
let n = m.topology.nearDepth, r = re.axisX, i = re.axisY;
|
|
2467
2468
|
if (e === "value" === s) {
|
|
2468
|
-
let e =
|
|
2469
|
+
let e = B.y, r = B.y + B.h, a = m.project(B.x + B.w / 2, e, n), o = m.project(B.x + B.w / 2, r, n), s = a.y >= o.y ? e : r;
|
|
2469
2470
|
i = t === "low" ? s : s === e ? r : e;
|
|
2470
2471
|
} else {
|
|
2471
|
-
let e =
|
|
2472
|
+
let e = B.x, i = B.x + B.w, a = m.project(e, B.y + B.h / 2, n), o = m.project(i, B.y + B.h / 2, n), s = a.x <= o.x ? e : i;
|
|
2472
2473
|
r = t === "low" ? s : s === e ? i : e;
|
|
2473
2474
|
}
|
|
2474
2475
|
return {
|
|
2475
2476
|
axisX: r,
|
|
2476
2477
|
axisY: i,
|
|
2477
2478
|
depth: n,
|
|
2478
|
-
horizontalStart: m.project(
|
|
2479
|
-
horizontalEnd: m.project(
|
|
2480
|
-
verticalStart: m.project(r,
|
|
2481
|
-
verticalEnd: m.project(r,
|
|
2479
|
+
horizontalStart: m.project(B.x, i, n),
|
|
2480
|
+
horizontalEnd: m.project(B.x + B.w, i, n),
|
|
2481
|
+
verticalStart: m.project(r, B.y + B.h, n),
|
|
2482
|
+
verticalEnd: m.project(r, B.y, n)
|
|
2482
2483
|
};
|
|
2483
|
-
},
|
|
2484
|
-
if (e.font = `${t.valAxisFontItalic ? "italic " : ""}${t.valAxisFontBold ? "bold " : ""}${
|
|
2485
|
-
let { axisX: n, axisY: r, depth: a } =
|
|
2484
|
+
}, G = ie("value", t.valAxisTickLabelPos), K = ie("category", t.catAxisTickLabelPos), ae = r(t.valAxisFontSizeHpt, i) ?? 9 * i;
|
|
2485
|
+
if (e.font = `${t.valAxisFontItalic ? "italic " : ""}${t.valAxisFontBold ? "bold " : ""}${ae}px ${mt(t.valAxisFontFace)}`, e.fillStyle = t.valAxisFontColor ? `#${t.valAxisFontColor}` : "#595959", e.textAlign = s ? "center" : "right", e.textBaseline = s ? "top" : "middle", !t.valAxisHidden && t.valAxisTickLabelPos !== "none") {
|
|
2486
|
+
let { axisX: n, axisY: r, depth: a } = G, o = m.project(B.x + B.w / 2, B.y + B.h / 2, a), c = Gt(s ? G.horizontalStart : G.verticalStart, s ? G.horizontalEnd : G.verticalEnd, o, s ? "vertical" : "horizontal");
|
|
2486
2487
|
e.textAlign = Math.abs(c.x) < .2 ? "center" : c.x < 0 ? "right" : "left", e.textBaseline = Math.abs(c.y) < .2 ? "middle" : c.y < 0 ? "bottom" : "top";
|
|
2487
2488
|
let l = Yt(t.valAxisMajorTickMark, t.valAxisLineHidden, i, 5), u = t.valAxisDisplayUnits?.divisor;
|
|
2488
|
-
for (let i of
|
|
2489
|
-
let o = s ? m.project(
|
|
2489
|
+
for (let i of I.majorTicks) {
|
|
2490
|
+
let o = s ? m.project(B.x + I.fraction(i) * B.w, r, a) : m.project(n, B.y + B.h - I.fraction(i) * B.h, a);
|
|
2490
2491
|
e.fillText(E(h ? i / 100 : u != null && Number.isFinite(u) && u > 0 ? i / u : i, h ? t.valAxisFormatCode ?? "0%" : t.valAxisFormatCode, t.date1904), o.x + c.x * l, o.y + c.y * l);
|
|
2491
2492
|
}
|
|
2492
2493
|
}
|
|
2493
|
-
let
|
|
2494
|
-
if (e.font = `${t.catAxisFontItalic ? "italic " : ""}${t.catAxisFontBold ? "bold " : ""}${
|
|
2494
|
+
let q = r(t.catAxisFontSizeHpt, i) ?? 9 * i;
|
|
2495
|
+
if (e.font = `${t.catAxisFontItalic ? "italic " : ""}${t.catAxisFontBold ? "bold " : ""}${q}px ${mt(t.catAxisFontFace)}`, e.fillStyle = t.catAxisFontColor ? `#${t.catAxisFontColor}` : "#595959", !t.catAxisHidden && t.catAxisTickLabelPos !== "none") {
|
|
2495
2496
|
let n = f(Yt(t.catAxisMajorTickMark, t.catAxisLineHidden, i, 6), t.catAxisLabelOffsetPercent), r = Array.from({ length: _ }, (e, n) => z(String(g[n] ?? n + 1), t.catAxisFormatCode, t.date1904)), a = Tt(t);
|
|
2496
2497
|
if (a == null && (a = 0, !s && _ > 1)) {
|
|
2497
|
-
let t = Infinity, n = null, i =
|
|
2498
|
+
let t = Infinity, n = null, i = K.axisY;
|
|
2498
2499
|
for (let e = 0; e < _; e++) {
|
|
2499
|
-
let r = S(e, _, b, y), a = m.project(
|
|
2500
|
+
let r = S(e, _, b, y), a = m.project(B.x + r * B.w, i, m.topology.nearDepth);
|
|
2500
2501
|
n && (t = Math.min(t, Math.hypot(a.x - n.x, a.y - n.y))), n = a;
|
|
2501
2502
|
}
|
|
2502
2503
|
Math.max(0, ...r.map((t) => e.measureText(t).width)) > t * .9 && (a = -Math.PI / 4);
|
|
2503
2504
|
}
|
|
2504
2505
|
let o = Math.max(1, Math.floor(t.catAxisTickLabelSkip ?? 1));
|
|
2505
2506
|
for (let t = 0; t < _; t += o) {
|
|
2506
|
-
let i = S(t, _, b, y), { axisX: o, axisY: c, depth: l } =
|
|
2507
|
+
let i = S(t, _, b, y), { axisX: o, axisY: c, depth: l } = K, u = s ? m.project(o, B.y + S(t, _, b, y) * B.h, l) : m.project(B.x + i * B.w, c, l);
|
|
2507
2508
|
if (s) {
|
|
2508
|
-
let i = m.project(o,
|
|
2509
|
+
let i = m.project(o, B.y + B.h / 2, l), a = m.project(B.x + B.w / 2, B.y + B.h / 2, l), s = i.x <= a.x;
|
|
2509
2510
|
e.textAlign = s ? "right" : "left", e.textBaseline = "middle", e.fillText(r[t], u.x + (s ? -n : n), u.y);
|
|
2510
2511
|
} else {
|
|
2511
|
-
let i = m.project(
|
|
2512
|
+
let i = m.project(B.x + B.w / 2, B.y + B.h / 2, l), o = Gt(K.horizontalStart, K.horizontalEnd, i, "vertical");
|
|
2512
2513
|
Et(e, r[t], u, a, s, o.y < 0 ? -1 : 1, n);
|
|
2513
2514
|
}
|
|
2514
2515
|
}
|
|
@@ -2529,7 +2530,7 @@ function $t(e, t, n, i, a) {
|
|
|
2529
2530
|
if (!(c > 0)) return !0;
|
|
2530
2531
|
let l = s.reduce((e, t) => e + t.value / c, 0);
|
|
2531
2532
|
if (!(l > 0) || !Number.isFinite(l)) return !0;
|
|
2532
|
-
let { plot: u, legend: d, legendMeasure: f } = At(e, t, n, i, "radial", a), p =
|
|
2533
|
+
let { plot: u, legend: d, legendMeasure: f } = At(e, t, n, i, "radial", a), p = le({
|
|
2533
2534
|
...t.threeD,
|
|
2534
2535
|
rotationY: t.threeD.rotationY ?? 0,
|
|
2535
2536
|
heightPercent: void 0,
|
|
@@ -2543,9 +2544,9 @@ function $t(e, t, n, i, a) {
|
|
|
2543
2544
|
for (let e of m.values()) e.explosion != null && Number.isFinite(e.explosion) && (h = Math.max(h, Math.max(0, Math.min(100, e.explosion)) / 100));
|
|
2544
2545
|
let { scene: g } = p, _ = Math.min(g.w * .45 / (1 + h), p.modelDepth * .45 / (1 + h), g.h / .45);
|
|
2545
2546
|
if (!(_ > 0)) return !0;
|
|
2546
|
-
let v = g.x + g.w / 2, y = g.y + g.h / 2, b = .5, x = _ * .3 *
|
|
2547
|
+
let v = g.x + g.w / 2, y = g.y + g.h / 2, b = .5, x = _ * .3 * me(t.threeD), S = 0, C = [], w = new Map(o.dataLabelOverrides?.map((e) => [e.idx, e]) ?? []), T = Math.max(48, Math.min(128, Math.ceil(Math.PI * 2 * _ / 4)));
|
|
2547
2548
|
for (let e of s) {
|
|
2548
|
-
let n = e.value / c / l, r = Lt(t.firstSliceAngle, S, n), i = m.get(e.index), a =
|
|
2549
|
+
let n = e.value / c / l, r = Lt(t.firstSliceAngle, S, n), i = m.get(e.index), a = Q(t, o, i, e.index, 0), s = r.middle, u = i?.explosion != null && Number.isFinite(i.explosion) ? Math.max(0, Math.min(100, i.explosion)) / 100 : 0, d = v + Math.cos(s) * _ * u, f = b + Math.sin(s) * _ * u / p.modelDepth, h = Math.max(2, Math.ceil(T * n)), g = De({
|
|
2549
2550
|
centerX: d,
|
|
2550
2551
|
centerY: y,
|
|
2551
2552
|
centerDepth: f,
|
|
@@ -2581,23 +2582,23 @@ function $t(e, t, n, i, a) {
|
|
|
2581
2582
|
lineJoin: a.lineJoin
|
|
2582
2583
|
}), S += n;
|
|
2583
2584
|
}
|
|
2584
|
-
p =
|
|
2585
|
+
p = ge(p, C.flatMap((e) => e.mesh.vertices), u, .08);
|
|
2585
2586
|
let E = [], D = {
|
|
2586
|
-
remaining:
|
|
2587
|
+
remaining: Ie,
|
|
2587
2588
|
exceeded: !1
|
|
2588
|
-
},
|
|
2589
|
-
let t = e.lineWidthEmu == null ? .75 * i : Math.max(.25, e.lineWidthEmu /
|
|
2589
|
+
}, k = (e) => {
|
|
2590
|
+
let t = e.lineWidthEmu == null ? .75 * i : Math.max(.25, e.lineWidthEmu / W * i);
|
|
2590
2591
|
return e.lineFill !== null && (e.lineColor != null || e.lineFill !== void 0) ? {
|
|
2591
2592
|
color: e.lineColor ?? "rgba(0,0,0,0.42)",
|
|
2592
2593
|
width: t,
|
|
2593
|
-
dash:
|
|
2594
|
+
dash: O(e.lineCustomDash, e.lineDash, t),
|
|
2594
2595
|
cap: e.lineCap,
|
|
2595
2596
|
join: e.lineJoin
|
|
2596
2597
|
} : void 0;
|
|
2597
2598
|
}, A = C.flatMap((t) => {
|
|
2598
2599
|
let n = bt(p, t.mesh, t.color, void 0, D);
|
|
2599
2600
|
return Ct(e, n, "fill", t.fillPaint, a), n;
|
|
2600
|
-
}), j = [], M = C.map(
|
|
2601
|
+
}), j = [], M = C.map(k), N = M[0], P = (e) => e == null ? null : [
|
|
2601
2602
|
e.color,
|
|
2602
2603
|
e.width,
|
|
2603
2604
|
e.dash.join(","),
|
|
@@ -2613,15 +2614,15 @@ function $t(e, t, n, i, a) {
|
|
|
2613
2614
|
}
|
|
2614
2615
|
if (D.exceeded) return wt(e, n), !0;
|
|
2615
2616
|
if (F) {
|
|
2616
|
-
for (let t of
|
|
2617
|
-
for (let t of
|
|
2618
|
-
} else for (let t of
|
|
2617
|
+
for (let t of Fe(A)) St(e, t);
|
|
2618
|
+
for (let t of Fe(j)) St(e, t);
|
|
2619
|
+
} else for (let t of Fe([...A, ...j])) St(e, t);
|
|
2619
2620
|
for (let n of C) {
|
|
2620
2621
|
let s = (n.start + n.end) / 2, c = w.get(n.index);
|
|
2621
2622
|
if (kt(t, o, c)) {
|
|
2622
2623
|
let l = o.seriesDataLabels, d = r(c?.fontSizeHpt ?? l?.fontSizeHpt ?? t.dataLabelFontSizeHpt, i) ?? 9 * i;
|
|
2623
2624
|
e.font = `${c?.fontBold ?? l?.fontBold ?? t.dataLabelFontBold ? "bold " : ""}${d}px ${$(t, c?.fontFace ?? l?.fontFace ?? t.dataLabelFontFace)}`;
|
|
2624
|
-
let f =
|
|
2625
|
+
let f = de({
|
|
2625
2626
|
customText: c?.text,
|
|
2626
2627
|
showCategory: c?.showCatName ?? l?.showCatName ?? !1,
|
|
2627
2628
|
showSeries: c?.showSerName ?? l?.showSerName ?? !1,
|
|
@@ -2634,7 +2635,7 @@ function $t(e, t, n, i, a) {
|
|
|
2634
2635
|
formatCode: c?.formatCode ?? l?.formatCode ?? t.dataLabelFormatCode ?? o.valFormatCode,
|
|
2635
2636
|
separator: c?.separator ?? l?.separator,
|
|
2636
2637
|
date1904: t.date1904
|
|
2637
|
-
}), m = $(t, c?.fontFace ?? l?.fontFace ?? t.dataLabelFontFace), h = c?.text && c.richRuns?.length ?
|
|
2638
|
+
}), m = $(t, c?.fontFace ?? l?.fontFace ?? t.dataLabelFontFace), h = c?.text && c.richRuns?.length ? se(e, {
|
|
2638
2639
|
runs: c.richRuns,
|
|
2639
2640
|
ptToPx: i,
|
|
2640
2641
|
fontFamily: m,
|
|
@@ -2652,7 +2653,7 @@ function $t(e, t, n, i, a) {
|
|
|
2652
2653
|
for (let e of E) e();
|
|
2653
2654
|
let I = o.categories?.length ? o.categories : t.categories, L = Array.from({ length: I.length }, (e, t) => {
|
|
2654
2655
|
let n = m.get(t), r = n?.fillHidden === !0 ? "00000000" : n?.color ?? o.dataPointColors?.[t] ?? o.color;
|
|
2655
|
-
return r === "00000000" ? "00000000" :
|
|
2656
|
+
return r === "00000000" ? "00000000" : Y(r ? `#${r}` : ot(t), .8).replace(/^#/, "");
|
|
2656
2657
|
});
|
|
2657
2658
|
return Ft(e, {
|
|
2658
2659
|
...t,
|
|
@@ -2665,10 +2666,10 @@ function $t(e, t, n, i, a) {
|
|
|
2665
2666
|
}, d, i, !0, f, a), !0;
|
|
2666
2667
|
}
|
|
2667
2668
|
function en(e, t, n, r, i = 0) {
|
|
2668
|
-
return !t.threeD || !(t.chartType === "pie" ||
|
|
2669
|
+
return !t.threeD || !(t.chartType === "pie" || rt.has(t.chartType)) ? !1 : ut(t) ? $t(e, t, n, r, i) ? !0 : Qt(e, t, n, r, i) : (wt(e, n), !0);
|
|
2669
2670
|
}
|
|
2670
2671
|
//#endregion
|
|
2671
2672
|
//#region src/three-d.ts
|
|
2672
|
-
var tn =
|
|
2673
|
+
var tn = ve({ render: en }, "threeD");
|
|
2673
2674
|
//#endregion
|
|
2674
2675
|
export { tn as threeD };
|