@silurus/ooxml 0.89.0 → 0.89.1
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/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/assets/render-worker-C5G_Nr_A.js +35 -0
- package/dist/assets/render-worker-DQfWdNsm.js +16 -0
- package/dist/assets/render-worker-Ds7LjwU-.js +15 -0
- package/dist/bounded-raw-part-cache-CsnNptAy.js +33925 -0
- package/dist/{canvas-viewer-mechanics-DfQqRKkD.js → canvas-viewer-mechanics-BZ8QCrRi.js} +2 -2
- package/dist/{cfb-guard-9QTRTg7f.js → cfb-guard-dNeUiANF.js} +1 -1
- package/dist/chart-ex.mjs +477 -477
- package/dist/{comment-overlay-controller-B5_zGgG5.js → comment-overlay-controller-CBvQx-En.js} +16 -16
- package/dist/{comment-ui-runtime-D_sb2K6s.js → comment-ui-runtime-BKidRH36.js} +3 -3
- package/dist/{comment-ui-runtime-Jy-3goA9.js → comment-ui-runtime-C47QoDUy.js} +3 -3
- package/dist/{document-model-source-BKNrXjAL.js → document-model-source-MzFPrxt0.js} +44 -44
- package/dist/{document-pull-client-CxONDGbk.js → document-pull-client-BoJeuURD.js} +6102 -7994
- package/dist/{document-pull-worker-AMyXYpPq.js → document-pull-worker-CaP8XESP.js} +18 -18
- package/dist/{docx-D91ER1_S.js → docx-BN70UhvX.js} +24 -24
- package/dist/{docx-DhDnKEI6.js → docx-BRRtSvk3.js} +556 -556
- package/dist/{docx-model-source-CdrSt3hF.js → docx-model-source-CTO9iw_W.js} +12 -12
- package/dist/docx.mjs +4 -4
- package/dist/{drawingml-shape-ChcGZNd8.js → drawingml-shape-CHmq8kpM.js} +55 -55
- package/dist/{duotone-ekYik4ix.js → duotone-DN8P4aXe.js} +1 -1
- package/dist/{emf-UT6I8rVi.js → emf-CGFQIz6c.js} +60 -60
- package/dist/{font-preload-demand-CdJZUMCT.js → font-preload-demand-Dmy31xt-.js} +2 -2
- package/dist/{grid-geometry-uQOgViJU.js → grid-geometry-C3IG20ut.js} +1 -1
- package/dist/{host-layout-measure-CCEgaC_v.js → host-layout-measure-DsuQ2UJs.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/internal-companion.mjs +2 -2
- package/dist/{line-distribute-CPOV6csk.js → line-distribute-Bu8psjGd.js} +153 -70
- package/dist/{model-source-DJGzDtGb.js → model-source-s5hRpk4w.js} +4 -4
- package/dist/{model-source-session-Bu9CHFHc.js → model-source-session-6fuaqbGs.js} +18 -18
- package/dist/{model-source-session-CDuijwv1.js → model-source-session-DqrR4XHR.js} +2 -2
- package/dist/{model-source-session-sKpNiIJI.js → model-source-session-cPJSF_Ak.js} +10 -10
- package/dist/node.mjs +5 -5
- package/dist/{bounded-raw-part-cache-B7JoC1CD.js → plot-area-frame-Bs_j4uu7.js} +15189 -37964
- package/dist/{pptx-C_uxLVKB.js → pptx-CaJ6ILnw.js} +9 -9
- package/dist/{pptx-CDP9dZHe.js → pptx-_BOGcBym.js} +58 -58
- package/dist/{pptx-model-source-O7LhpOjz.js → pptx-model-source-B_9afw9R.js} +5 -5
- package/dist/pptx.mjs +5 -5
- package/dist/{presentation-model-source-tmROzteR.js → presentation-model-source-CGHLyX32.js} +5 -5
- package/dist/region-map.mjs +53 -53
- package/dist/{render-CJVglUHl.js → render-CzbDzRKa.js} +2 -2
- package/dist/{render-worker-host-BseIaVvm.js → render-worker-host-B1u6BOUd.js} +1 -1
- package/dist/{render-worker-host-CyxPU4JU.js → render-worker-host-C-EECo68.js} +1 -1
- package/dist/{render-worker-host-aF6aWkC0.js → render-worker-host-DDqZTCVf.js} +1 -1
- package/dist/renderer-CD2cvVAF.js +5823 -0
- package/dist/{renderer-CkGLj0CC.js → renderer-DRoeb14O.js} +696 -696
- package/dist/{resource-measurement-mXw-WjMF.js → resource-measurement-Dhhm7P_l.js} +162 -161
- package/dist/{session-Csv9maad.js → session-XPmC0CUd.js} +176 -176
- package/dist/{slide-pull-client-DRZYwBTu.js → slide-pull-client-tq7U_fYg.js} +1454 -1484
- package/dist/{three-d-BK5siJgJ.js → three-d-BKwNPAP4.js} +107 -107
- package/dist/three-d.mjs +625 -625
- package/dist/{wasm-runtime-generation-DX4y0Ecl.js → wasm-runtime-generation-D6TKZdNb.js} +4 -4
- package/dist/{workbook-model-source-BTC4ISTS.js → workbook-model-source-BIGrfZy6.js} +6 -6
- package/dist/worker-source-DrwhR9fw.js +22 -0
- package/dist/{worksheet-pull-client-CkHgbtyM.js → worksheet-pull-client-ClvPO_Jf.js} +74 -74
- package/dist/{xlsx-CpSDPAEU.js → xlsx-CsmREBaZ.js} +430 -420
- package/dist/{xlsx-D5569TPf.js → xlsx-DmHfeNNp.js} +24 -24
- package/dist/{xlsx-model-source-DPSkjFic.js → xlsx-model-source-D1flORqy.js} +55 -55
- package/dist/xlsx.mjs +5 -5
- package/package.json +1 -1
- package/dist/assets/render-worker-CUOU6mL2.js +0 -16
- package/dist/assets/render-worker-DOqrFhSU.js +0 -15
- package/dist/assets/render-worker-DvWUdZUN.js +0 -35
- package/dist/plot-area-frame-CaJFvZ7p.js +0 -8502
- package/dist/renderer-Czw1cCC7.js +0 -5823
- package/dist/worker-source-I1cIYBel.js +0 -22
package/dist/three-d.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { a as Ce, c as we, i as Te, m as Ee, n as De, o as Oe, p as ke, r as Ae, s as je, t as Me, u as Ne, v as Pe, y as Fe } from "./three-d-
|
|
1
|
+
import { $a as e, Ba as t, Bi as n, Ca as r, Cn as i, Fi as a, Ga as o, Ha as s, Ii as c, Ja as l, Ji as u, Ka as d, Ki as f, Li as p, Ln as m, Nt as h, Ot as g, Pi as _, Ra as v, Ri as y, Rn as b, Rr as x, Sa as S, Si as C, Ui as w, Va as T, Vi as E, Wa as D, Wi as O, Xi as k, Yi as A, Zi as j, _a as M, bn as N, ca as P, da as F, ea as I, eo as L, fa as R, gi as z, ha as B, hi as V, ia as H, ja as U, ka as W, l as ee, la as G, ma as K, mi as te, n as q, na as ne, no as J, oa as Y, on as X, pa as re, qi as Z, qt as ie, sa as ae, sn as oe, sr as se, t as ce, ta as le, v as ue, va as de, vi as fe, vn as pe, xa as me, xn as he, xt as ge, ya as _e, yn as ve, za as ye, zi as be, zn as xe, zr as Se } from "./plot-area-frame-Bs_j4uu7.js";
|
|
2
|
+
import { a as Ce, c as we, i as Te, m as Ee, n as De, o as Oe, p as ke, r as Ae, s as je, t as Me, u as Ne, v as Pe, y as Fe } from "./three-d-BKwNPAP4.js";
|
|
3
3
|
import { t as Ie } from "./renderer-module-contract-CWM7jv6d.js";
|
|
4
4
|
//#region packages/core/src/chart/three-d-datum-style.ts
|
|
5
|
-
function Le(
|
|
6
|
-
return
|
|
7
|
-
}
|
|
8
|
-
function Re(e,
|
|
9
|
-
let
|
|
10
|
-
if (
|
|
11
|
-
if (
|
|
12
|
-
let e =
|
|
5
|
+
function Le(t, n, r, i) {
|
|
6
|
+
return e(t, i) ? r : n.chartexFormatIdx ?? i;
|
|
7
|
+
}
|
|
8
|
+
function Re(e, n, r, i, a) {
|
|
9
|
+
let o = Le(e, n, i, a), c = l(e, "dataPoint3D", a), u = J(e, "dataPoint3D"), d = v(r?.chartexStyle, u, i);
|
|
10
|
+
if (d !== void 0) return d;
|
|
11
|
+
if (r?.fillHidden === !0) {
|
|
12
|
+
let e = t(u);
|
|
13
13
|
if (e !== void 0) return e;
|
|
14
14
|
}
|
|
15
|
-
if (
|
|
16
|
-
if (
|
|
15
|
+
if (r?.color === "00000000") return null;
|
|
16
|
+
if (r?.color) return {
|
|
17
17
|
fillType: "solid",
|
|
18
|
-
color:
|
|
18
|
+
color: r.color
|
|
19
19
|
};
|
|
20
|
-
let
|
|
21
|
-
return
|
|
20
|
+
let f = v(n.chartexStyle, u, o);
|
|
21
|
+
return f === void 0 ? s(c, u, o, r?.chartexStyle, n.chartexStyle) : f;
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region packages/core/src/chart/three-d-mesh.ts
|
|
@@ -887,7 +887,7 @@ function yt(e) {
|
|
|
887
887
|
return t;
|
|
888
888
|
}
|
|
889
889
|
function bt(e, t, n) {
|
|
890
|
-
let r =
|
|
890
|
+
let r = H(t?.fontSizeHpt ?? e.legendFontSizeHpt, n) ?? 9 * n, i = t?.fontFace ?? e.legendFontFace, a = t?.fontBold ?? e.legendFontBold ?? !1;
|
|
891
891
|
return {
|
|
892
892
|
fontPx: r,
|
|
893
893
|
font: `${t?.fontItalic ?? e.legendFontItalic ?? !1 ? "italic " : ""}${a ? "bold " : ""}${r}px ${Lt(e, i)}`,
|
|
@@ -901,7 +901,7 @@ var xt = [
|
|
|
901
901
|
"A5A5A5",
|
|
902
902
|
"FFC000",
|
|
903
903
|
"5B9BD5"
|
|
904
|
-
], St =
|
|
904
|
+
], St = oe, Ct = X, wt = new Set([
|
|
905
905
|
"line",
|
|
906
906
|
"stackedLine",
|
|
907
907
|
"stackedLinePct",
|
|
@@ -916,7 +916,7 @@ var xt = [
|
|
|
916
916
|
"stackedBarHPct"
|
|
917
917
|
]);
|
|
918
918
|
function Tt(e, t) {
|
|
919
|
-
let n = Number.isFinite(t) && t > 0 ? t /
|
|
919
|
+
let n = Number.isFinite(t) && t > 0 ? t / U : 1, r = Number.isFinite(e) && e >= 0 ? e / W : 0;
|
|
920
920
|
return Math.max(.25, r) * n;
|
|
921
921
|
}
|
|
922
922
|
function Et(e, t) {
|
|
@@ -932,7 +932,7 @@ function Ot(e, t, n) {
|
|
|
932
932
|
let r = 0;
|
|
933
933
|
for (let i of e) for (let e of [t(i), n(i)]) {
|
|
934
934
|
if (e == null) continue;
|
|
935
|
-
let t =
|
|
935
|
+
let t = fe(e);
|
|
936
936
|
if (e.fillType === "gradient" && t > St || t > Ct - r) return !1;
|
|
937
937
|
r += t;
|
|
938
938
|
}
|
|
@@ -974,7 +974,7 @@ function Mt(e) {
|
|
|
974
974
|
[e.threeD?.sideWall, "wall"],
|
|
975
975
|
[e.threeD?.backWall, "wall"]
|
|
976
976
|
]) {
|
|
977
|
-
let i =
|
|
977
|
+
let i = d(e, n, r);
|
|
978
978
|
t.push({
|
|
979
979
|
fill: i.fill,
|
|
980
980
|
line: i.line
|
|
@@ -1066,36 +1066,36 @@ function Nt(e, t) {
|
|
|
1066
1066
|
fill: e
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
|
-
function $(
|
|
1070
|
-
let
|
|
1071
|
-
|
|
1072
|
-
let
|
|
1073
|
-
if (
|
|
1074
|
-
else if (r?.lineColor)
|
|
1069
|
+
function $(t, n, r, i, a, o = !0) {
|
|
1070
|
+
let s = o && n.dataPointColors?.[i] ? `#${n.dataPointColors[i]}` : Dt(a, n), c = e(t, a) ? i : n.chartexFormatIdx ?? a, u = n.seriesType ?? t.chartType, d = u === "line" || u === "stackedLine" || u === "stackedLinePct", f = l(t, "dataPoint3D", a), p = J(t, "dataPoint3D"), m, h = s, g = Re(t, n, r, i, a);
|
|
1071
|
+
g !== void 0 && ({color: h, fill: m} = Nt(g, h));
|
|
1072
|
+
let _, v = null, y = ye(r?.chartexStyle, p, i);
|
|
1073
|
+
if (y === void 0 && r?.lineHidden === !0 && (y = T(p)), y !== void 0) y?.fillType === "solid" ? v = `#${y.color}` : _ = y;
|
|
1074
|
+
else if (r?.lineColor) v = `#${r.lineColor}`;
|
|
1075
1075
|
else {
|
|
1076
|
-
let e =
|
|
1077
|
-
if (e === void 0 && n.lineHidden === !0 && (e =
|
|
1078
|
-
else if (n.lineColor)
|
|
1079
|
-
else if (
|
|
1076
|
+
let e = ye(n.chartexStyle, p, c);
|
|
1077
|
+
if (e === void 0 && n.lineHidden === !0 && (e = T(p)), e !== void 0) e?.fillType === "solid" ? v = `#${e.color}` : _ = e;
|
|
1078
|
+
else if (n.lineColor) v = `#${n.lineColor}`;
|
|
1079
|
+
else if (d) _ = m === null ? null : m;
|
|
1080
1080
|
else {
|
|
1081
|
-
let e =
|
|
1082
|
-
e !== void 0 && (e?.fillType === "solid" ?
|
|
1081
|
+
let e = D(f, p, c, r?.chartexStyle, n.chartexStyle);
|
|
1082
|
+
e !== void 0 && (e?.fillType === "solid" ? v = `#${e.color}` : _ = e);
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
|
-
let
|
|
1085
|
+
let b = d ? void 0 : f, x = r?.chartexStyle?.lineCap ?? n.chartexStyle?.lineCap ?? b?.lineCap, S = r?.chartexStyle?.lineJoin ?? n.chartexStyle?.lineJoin ?? b?.lineJoin, C = L(r?.lineDash == null ? r?.chartexStyle : {
|
|
1086
1086
|
lineDash: r.lineDash,
|
|
1087
1087
|
lineDashAuthored: !0
|
|
1088
|
-
}, n.chartexStyle,
|
|
1088
|
+
}, n.chartexStyle, b);
|
|
1089
1089
|
return {
|
|
1090
|
-
color:
|
|
1091
|
-
fill:
|
|
1092
|
-
lineColor:
|
|
1093
|
-
lineFill:
|
|
1094
|
-
lineWidthEmu: r?.lineWidthEmu ?? r?.chartexStyle?.lineWidthEmu ?? n.lineWidthEmu ?? n.chartexStyle?.lineWidthEmu ??
|
|
1095
|
-
lineDash:
|
|
1096
|
-
lineCustomDash:
|
|
1097
|
-
lineCap:
|
|
1098
|
-
lineJoin:
|
|
1090
|
+
color: h,
|
|
1091
|
+
fill: m,
|
|
1092
|
+
lineColor: v,
|
|
1093
|
+
lineFill: _,
|
|
1094
|
+
lineWidthEmu: r?.lineWidthEmu ?? r?.chartexStyle?.lineWidthEmu ?? n.lineWidthEmu ?? n.chartexStyle?.lineWidthEmu ?? b?.lineWidthEmu,
|
|
1095
|
+
lineDash: C?.lineDash,
|
|
1096
|
+
lineCustomDash: C?.lineCustomDash,
|
|
1097
|
+
lineCap: x === "rnd" ? "round" : x === "sq" ? "square" : "butt",
|
|
1098
|
+
lineJoin: S === "round" || S === "bevel" ? S : "miter"
|
|
1099
1099
|
};
|
|
1100
1100
|
}
|
|
1101
1101
|
function Pt(e) {
|
|
@@ -1113,7 +1113,7 @@ function Ft(e, t) {
|
|
|
1113
1113
|
}, i = Math.hypot(r.x, r.y, r.z), a = Math.max(0, (n.x * r.x + n.y * r.y + n.z * r.z) / i);
|
|
1114
1114
|
return Math.max(.78, Math.min(1, .78 + .24 * a));
|
|
1115
1115
|
}
|
|
1116
|
-
var It = (e) => `"${e && !e.startsWith("+") ? e.replace(/["\\]/g, "") : "Arial"}"`, Lt = (e, t) => It(
|
|
1116
|
+
var It = (e) => `"${e && !e.startsWith("+") ? e.replace(/["\\]/g, "") : "Arial"}"`, Lt = (e, t) => It(ge(e, t)), Rt = (e, t, n = "minor") => It((t?.startsWith("+mj-") ? e.themeMajorFontLatin : t?.startsWith("+mn-") ? e.themeMinorFontLatin : t) ?? (n === "major" ? e.themeMajorFontLatin : e.themeMinorFontLatin));
|
|
1117
1117
|
function zt(e, t) {
|
|
1118
1118
|
if (t.length) {
|
|
1119
1119
|
e.beginPath(), e.moveTo(t[0].x, t[0].y);
|
|
@@ -1385,7 +1385,7 @@ function Gt(e, t, n, r, i, a, o) {
|
|
|
1385
1385
|
return h;
|
|
1386
1386
|
}
|
|
1387
1387
|
function Kt(e, t) {
|
|
1388
|
-
t.paint !== null && (t.paint === void 0 ? Vt(e, t.points, t.color, t.shade) : (zt(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(
|
|
1388
|
+
t.paint !== null && (t.paint === void 0 ? Vt(e, t.points, t.color, t.shade) : (zt(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(Se(t.outlineDash ?? "solid", e.lineWidth)), e.lineCap = t.outlineCap ?? "butt", e.lineJoin = t.outlineJoin ?? "miter", t.outline && (zt(e, t.points), e.stroke()), e.setLineDash([])));
|
|
1389
1389
|
}
|
|
1390
1390
|
function qt(e, t) {
|
|
1391
1391
|
let n = t.filter((e) => e.paint !== null && e.points.length >= 3);
|
|
@@ -1407,7 +1407,7 @@ function Jt(e, t, n, r, i) {
|
|
|
1407
1407
|
for (let e of a) e.paint = null;
|
|
1408
1408
|
return;
|
|
1409
1409
|
}
|
|
1410
|
-
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 =
|
|
1410
|
+
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 = se(r, e, s, l, c - s, u - l, i);
|
|
1411
1411
|
for (let e of a) e.paint = d;
|
|
1412
1412
|
}
|
|
1413
1413
|
function Yt(e, t) {
|
|
@@ -1421,21 +1421,21 @@ function Zt(e) {
|
|
|
1421
1421
|
return Math.max(e * 1.2, 10);
|
|
1422
1422
|
}
|
|
1423
1423
|
function Qt(e, t) {
|
|
1424
|
-
let n = Math.max(1, ...e.map(
|
|
1424
|
+
let n = Math.max(1, ...e.map(R));
|
|
1425
1425
|
return n > 1 ? (n - 1) * Zt(t) : 0;
|
|
1426
1426
|
}
|
|
1427
1427
|
function $t(e, t, n, r, i, a = 1, o = 6, s = 0) {
|
|
1428
1428
|
if (i || r === 0) {
|
|
1429
|
-
e.textAlign = i ? "right" : "center", e.textBaseline = i ? "middle" : a < 0 ? "bottom" : "top",
|
|
1429
|
+
e.textAlign = i ? "right" : "center", e.textBaseline = i ? "middle" : a < 0 ? "bottom" : "top", B(e, t, n.x + (i ? -o : 0), n.y + (i ? 0 : a * o), s);
|
|
1430
1430
|
return;
|
|
1431
1431
|
}
|
|
1432
|
-
e.save(), e.translate(n.x, n.y + a * o), e.rotate(r), e.textAlign = a < 0 ? "left" : "right", e.textBaseline = "middle",
|
|
1432
|
+
e.save(), e.translate(n.x, n.y + a * o), e.rotate(r), e.textAlign = a < 0 ? "left" : "right", e.textBaseline = "middle", B(e, t, 0, 0, s), e.restore();
|
|
1433
1433
|
}
|
|
1434
|
-
function en(e, t, n, r, i, a, o, s = void 0, c = 0, l =
|
|
1434
|
+
function en(e, t, n, r, i, a, o, s = void 0, c = 0, l = U, u = void 0, d = void 0, f = 0, p = f, m = void 0, h = void 0, g = void 0, _ = void 0, v = void 0) {
|
|
1435
1435
|
if (!(r > 0) || !Number.isFinite(t.x) || !Number.isFinite(t.y)) return;
|
|
1436
1436
|
let y = r / 2;
|
|
1437
1437
|
if (u !== void 0 || d !== void 0) {
|
|
1438
|
-
|
|
1438
|
+
b(e, u, d, f, {
|
|
1439
1439
|
x: t.x - y,
|
|
1440
1440
|
y: t.y - y,
|
|
1441
1441
|
w: r,
|
|
@@ -1444,8 +1444,8 @@ function en(e, t, n, r, i, a, o, s = void 0, c = 0, l = D, u = void 0, d = void
|
|
|
1444
1444
|
return;
|
|
1445
1445
|
}
|
|
1446
1446
|
e.beginPath();
|
|
1447
|
-
let
|
|
1448
|
-
switch (
|
|
1447
|
+
let S = m === void 0 ? a : m == null ? null : m.fillType === "solid" ? `#${m.color}` : se(m, e, t.x - y, t.y - y, r, r, c);
|
|
1448
|
+
switch (S && (e.strokeStyle = S, e.lineWidth = o, e.setLineDash(x(g, h, o)), e.lineCap = _ === "rnd" ? "round" : _ === "sq" ? "square" : "butt", e.lineJoin = v === "round" || v === "bevel" ? v : "miter"), n) {
|
|
1449
1449
|
case "square":
|
|
1450
1450
|
e.rect(t.x - y, t.y - y, r, r);
|
|
1451
1451
|
break;
|
|
@@ -1458,7 +1458,7 @@ function en(e, t, n, r, i, a, o, s = void 0, c = 0, l = D, u = void 0, d = void
|
|
|
1458
1458
|
case "x":
|
|
1459
1459
|
case "plus": {
|
|
1460
1460
|
let r = n === "x";
|
|
1461
|
-
e.moveTo(t.x - y, t.y + (r ? -y : 0)), e.lineTo(t.x + y, t.y + (r ? y : 0)), e.moveTo(t.x + (r ? -y : 0), t.y + y), e.lineTo(t.x + (r ? y : 0), t.y - y),
|
|
1461
|
+
e.moveTo(t.x - y, t.y + (r ? -y : 0)), e.lineTo(t.x + y, t.y + (r ? y : 0)), e.moveTo(t.x + (r ? -y : 0), t.y + y), e.lineTo(t.x + (r ? y : 0), t.y - y), S && e.stroke();
|
|
1462
1462
|
return;
|
|
1463
1463
|
}
|
|
1464
1464
|
case "dash":
|
|
@@ -1475,207 +1475,207 @@ function en(e, t, n, r, i, a, o, s = void 0, c = 0, l = D, u = void 0, d = void
|
|
|
1475
1475
|
e.ellipse(t.x, t.y, r * .25, r * .1, 0, 0, Math.PI * 2);
|
|
1476
1476
|
break;
|
|
1477
1477
|
case "picture":
|
|
1478
|
-
s?.fillType === "image" &&
|
|
1478
|
+
s?.fillType === "image" && ue(e, s, t.x - y, t.y - y, r, r, l, c), S && e.strokeRect(t.x - y, t.y - y, r, r);
|
|
1479
1479
|
return;
|
|
1480
1480
|
default:
|
|
1481
1481
|
e.arc(t.x, t.y, y, 0, Math.PI * 2);
|
|
1482
1482
|
break;
|
|
1483
1483
|
}
|
|
1484
|
-
let
|
|
1485
|
-
|
|
1486
|
-
}
|
|
1487
|
-
function tn(e, t, r, i, s, l, u, d, f
|
|
1488
|
-
let T = h,
|
|
1489
|
-
if (
|
|
1490
|
-
let
|
|
1491
|
-
customText:
|
|
1492
|
-
showCategory:
|
|
1493
|
-
showSeries:
|
|
1494
|
-
showValue:
|
|
1484
|
+
let C = s?.fillType === "image" ? s : void 0, w = C ? null : s === void 0 ? i === "transparent" ? null : i : s == null ? null : se(s, e, t.x - y, t.y - y, r, r, c);
|
|
1485
|
+
w == null ? C && (e.save(), e.clip(), ue(e, C, t.x - y, t.y - y, r, r, l, c), e.restore()) : (e.fillStyle = w, e.fill()), S && e.stroke();
|
|
1486
|
+
}
|
|
1487
|
+
function tn(e, t, r, i, o, s, l, u, d, f = 0, m, h, g = "t", v = l, b = !0, x, S, C = s, w = 0) {
|
|
1488
|
+
let T = h, D = r.seriesDataLabels;
|
|
1489
|
+
if (p(D, T) || t.showDataLabelsOverMax !== !0 && S != null && Number.isFinite(S) && C > S) return;
|
|
1490
|
+
let k = T?.showVal ?? D?.showVal ?? t.showDataLabels, A = T?.showCatName ?? D?.showCatName ?? !1, j = T?.showSerName ?? D?.showSerName ?? !1, M = T?.showPercent ?? D?.showPercent ?? !1, P = T?.text, F = N({
|
|
1491
|
+
customText: P,
|
|
1492
|
+
showCategory: A,
|
|
1493
|
+
showSeries: j,
|
|
1494
|
+
showValue: k,
|
|
1495
1495
|
showPercent: M,
|
|
1496
|
-
category: r.categories?.[
|
|
1496
|
+
category: r.categories?.[o] ?? t.categories[o] ?? `${o + 1}`,
|
|
1497
1497
|
seriesName: r.name || `Series ${i + 1}`,
|
|
1498
|
-
sourceValue:
|
|
1499
|
-
valueDivisor:
|
|
1498
|
+
sourceValue: s,
|
|
1499
|
+
valueDivisor: x?.divisor,
|
|
1500
1500
|
percentRatio: m != null && Number.isFinite(m) ? m : void 0,
|
|
1501
|
-
formatCode: T?.formatCode ??
|
|
1502
|
-
percentFormatCode: T?.formatCode ??
|
|
1501
|
+
formatCode: T?.formatCode ?? D?.formatCode ?? t.dataLabelFormatCode ?? r.valFormatCode,
|
|
1502
|
+
percentFormatCode: T?.formatCode ?? D?.formatCode ?? t.dataLabelFormatCode ?? "0%",
|
|
1503
1503
|
date1904: t.date1904,
|
|
1504
|
-
separator: T?.separator ??
|
|
1504
|
+
separator: T?.separator ?? D?.separator
|
|
1505
1505
|
});
|
|
1506
|
-
if (!
|
|
1507
|
-
let
|
|
1508
|
-
e.font = `${
|
|
1509
|
-
let
|
|
1506
|
+
if (!F) return;
|
|
1507
|
+
let I = H(T?.fontSizeHpt ?? D?.fontSizeHpt ?? t.dataLabelFontSizeHpt, d) ?? 9 * d, L = T?.fontBold ?? D?.fontBold ?? t.dataLabelFontBold ?? !1, R = y(T, D), z = Rt(t, T?.fontFace ?? D?.fontFace ?? t.dataLabelFontFace);
|
|
1508
|
+
e.font = `${R.fontItalic ? "italic " : ""}${L ? "bold " : ""}${I}px ${z}`;
|
|
1509
|
+
let B = `#${T?.fontColor ?? D?.fontColor ?? r.labelColor ?? t.dataLabelFontColor ?? "111111"}`, V = P && T?.richRuns?.length ? Fe(e, {
|
|
1510
1510
|
runs: T.richRuns,
|
|
1511
|
-
ptToPx:
|
|
1512
|
-
fontFamily:
|
|
1513
|
-
fallbackBold:
|
|
1514
|
-
fallbackItalic:
|
|
1515
|
-
fallbackBaseline:
|
|
1516
|
-
fallbackColorHidden:
|
|
1511
|
+
ptToPx: d,
|
|
1512
|
+
fontFamily: z,
|
|
1513
|
+
fallbackBold: L,
|
|
1514
|
+
fallbackItalic: R.fontItalic,
|
|
1515
|
+
fallbackBaseline: R.fontBaseline,
|
|
1516
|
+
fallbackColorHidden: R.fontPaintAuthored === !0 && (R.fontHidden === !0 || R.fontColor == null),
|
|
1517
1517
|
fontFamilyForFace: (e) => Rt(t, e)
|
|
1518
|
-
},
|
|
1519
|
-
if (!
|
|
1520
|
-
let
|
|
1518
|
+
}, I, B) : null, U = V ? [] : be(F, Math.max(I, u.w * .45), Math.max(I * 1.2, u.h * .35), I * 1.2, (t) => e.measureText(t).width, R);
|
|
1519
|
+
if (!V && !U.length) return;
|
|
1520
|
+
let ee = V?.width ?? Math.max(...U.map((t) => e.measureText(t).width)), G = V?.height ?? U.length * I * 1.2, K = c(R, d), te = n(ee + K.left + K.right, G + K.top + K.bottom, R.textRotation, R.textVerticalMode), q = O({
|
|
1521
1521
|
kind: "point",
|
|
1522
|
-
x:
|
|
1523
|
-
y:
|
|
1524
|
-
position: T?.position ??
|
|
1525
|
-
markerGap:
|
|
1526
|
-
},
|
|
1527
|
-
w:
|
|
1528
|
-
h:
|
|
1529
|
-
},
|
|
1530
|
-
if (!
|
|
1531
|
-
let ne =
|
|
1532
|
-
|
|
1533
|
-
let
|
|
1534
|
-
if (
|
|
1535
|
-
Pe(e,
|
|
1522
|
+
x: l.x,
|
|
1523
|
+
y: l.y,
|
|
1524
|
+
position: T?.position ?? D?.position ?? t.dataLabelPosition ?? g,
|
|
1525
|
+
markerGap: f
|
|
1526
|
+
}, u, {
|
|
1527
|
+
w: te.w,
|
|
1528
|
+
h: te.h
|
|
1529
|
+
}, I, T?.manualLayout, u);
|
|
1530
|
+
if (!q) return;
|
|
1531
|
+
let ne = pe(T?.labelBox, D?.labelBox);
|
|
1532
|
+
D?.showLeaderLines && D.leaderLineHidden !== !0 && b && (e.beginPath(), e.moveTo(v.x, v.y), e.lineTo(Math.max(q.rect.x, Math.min(v.x, q.rect.x + q.rect.w)), Math.max(q.rect.y, Math.min(v.y, q.rect.y + q.rect.h))), e.strokeStyle = `#${D.leaderLineColor ?? "808080"}`, e.lineWidth = D.leaderLineWidthEmu == null ? .75 * d : Math.max(.25, D.leaderLineWidthEmu / W * d), e.setLineDash(Se(D.leaderLineDash ?? "solid", e.lineWidth)), e.stroke()), ve(e, ne, q.rect, d, w), e.save(), e.beginPath(), e.rect(q.clip.x, q.clip.y, q.clip.w, q.clip.h), e.clip();
|
|
1533
|
+
let J = a(R, q.textAlign), Y = _(q.x, q.y, q.rect, G + K.top + K.bottom, R, T?.manualLayout != null, J, q.textAlign, ee + K.left + K.right, te.radians), X = E(e, Y.x, Y.y, te.radians, J, q.textBaseline, K);
|
|
1534
|
+
if (V) {
|
|
1535
|
+
Pe(e, V, X.x, X.y, J, q.textBaseline, T?.manualLayout ? Math.max(0, q.rect.w - K.left - K.right) : V.width), e.restore();
|
|
1536
1536
|
return;
|
|
1537
1537
|
}
|
|
1538
|
-
if (!(
|
|
1539
|
-
e.fillStyle =
|
|
1540
|
-
let t =
|
|
1538
|
+
if (!(R.fontPaintAuthored === !0 && (R.fontHidden === !0 || R.fontColor == null))) {
|
|
1539
|
+
e.fillStyle = B, e.textAlign = J, e.textBaseline = "middle";
|
|
1540
|
+
let t = I * 1.2, n = (R.fontBaseline ?? 0) * I, r = X.y - (U.length - 1) * t / 2 - n;
|
|
1541
1541
|
U.forEach((n, i) => e.fillText(n, X.x, r + i * t));
|
|
1542
1542
|
}
|
|
1543
1543
|
e.restore();
|
|
1544
1544
|
}
|
|
1545
1545
|
function nn(e, t, n) {
|
|
1546
1546
|
let r = t.seriesDataLabels;
|
|
1547
|
-
return
|
|
1548
|
-
}
|
|
1549
|
-
function rn(t, n, r, i, a
|
|
1550
|
-
let
|
|
1551
|
-
...
|
|
1552
|
-
bandH:
|
|
1553
|
-
} :
|
|
1554
|
-
if (
|
|
1555
|
-
|
|
1556
|
-
let
|
|
1557
|
-
x:
|
|
1558
|
-
y:
|
|
1559
|
-
w:
|
|
1560
|
-
h: Math.max(1,
|
|
1561
|
-
},
|
|
1562
|
-
...
|
|
1547
|
+
return p(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);
|
|
1548
|
+
}
|
|
1549
|
+
function rn(e, t, n, r, i, a) {
|
|
1550
|
+
let o = j(t, n.h, r), s = t.titleRichRuns?.length ? {
|
|
1551
|
+
...o,
|
|
1552
|
+
bandH: o.bandH + G(t.title, o.fontPx)
|
|
1553
|
+
} : o;
|
|
1554
|
+
if (t.title) {
|
|
1555
|
+
e.font = `${t.titleFontBold === !1 ? "" : "bold "}${s.fontPx}px ${Lt(t, t.titleFontFace)}`, e.fillStyle = t.titleFontColor ? `#${t.titleFontColor}` : "#111111", e.textAlign = "center", e.textBaseline = "top";
|
|
1556
|
+
let r = M(e, t.title), i = {
|
|
1557
|
+
x: n.x + (n.w - r) / 2,
|
|
1558
|
+
y: n.y + s.topPad,
|
|
1559
|
+
w: r,
|
|
1560
|
+
h: Math.max(1, s.fontPx) + G(t.title, s.fontPx)
|
|
1561
|
+
}, a = t.titleManualLayout ? P({
|
|
1562
|
+
...t.titleManualLayout,
|
|
1563
1563
|
w: void 0,
|
|
1564
1564
|
h: void 0
|
|
1565
|
-
},
|
|
1566
|
-
|
|
1565
|
+
}, n, i) : null;
|
|
1566
|
+
B(e, t.title, a ? a.x + a.w / 2 : n.x + n.w / 2, a?.y ?? i.y, s.fontPx);
|
|
1567
1567
|
}
|
|
1568
|
-
let
|
|
1569
|
-
|
|
1570
|
-
let
|
|
1568
|
+
let c = yt(t);
|
|
1569
|
+
e.save();
|
|
1570
|
+
let l = (t.chartType === "pie" ? t.series[0]?.categories?.length ? t.series[0].categories : t.categories : t.series.map((e, t) => e.name || `Series ${t + 1}`)).flatMap((e, t) => c.get(t)?.deleted === !0 ? [] : [{
|
|
1571
1571
|
label: e,
|
|
1572
1572
|
index: t
|
|
1573
|
-
}]),
|
|
1574
|
-
itemWidths:
|
|
1575
|
-
rowHeight: Math.max(
|
|
1573
|
+
}]), d = l.map((e) => bt(t, c.get(e.index), r)), p = Math.max(0, ...d.map((e) => e.fontPx)), m = l.map((t, n) => (e.font = d[n].font, 7 * r + 4 + M(e, t.label))), h = ne(t, n.w, n.h, {
|
|
1574
|
+
itemWidths: m,
|
|
1575
|
+
rowHeight: Math.max(p * 1.45, 12) + Qt(l.map((e) => e.label), p),
|
|
1576
1576
|
itemGap: 12,
|
|
1577
1577
|
horizontalPadding: 8,
|
|
1578
1578
|
verticalPadding: 4
|
|
1579
1579
|
});
|
|
1580
|
-
|
|
1581
|
-
let
|
|
1582
|
-
titleBand:
|
|
1583
|
-
legendReserve:
|
|
1580
|
+
e.restore();
|
|
1581
|
+
let g = le(h, t.legendOverlay === !0), _ = I(t, n.w, n.h, r), v = k(t.catAxisTitleTextVerticalInsetEmu, r), y = k(t.valAxisTitleTextVerticalInsetEmu, r), b = i === "horizontal" ? t.catAxisTitle ? _.catFontPx + v + u(n.w) + 4 + f(t.catAxisTitle, _.catFontPx, "left", t.catAxisTitleRotation, t.catAxisTitleVerticalMode) : 0 : i === "vertical" ? _.valBandW : 0, x = i === "horizontal" ? t.valAxisTitle ? _.valFontPx + y + u(n.h) + 4 + f(t.valAxisTitle, _.valFontPx, "horizontal", t.valAxisTitleRotation, t.valAxisTitleVerticalMode) : 0 : i === "vertical" ? _.catBandH : 0, S = Y(t, n.x, n.y, n.w, n.h, r, {
|
|
1582
|
+
titleBand: s,
|
|
1583
|
+
legendReserve: h,
|
|
1584
1584
|
pad: {
|
|
1585
|
-
t:
|
|
1586
|
-
r:
|
|
1587
|
-
b:
|
|
1588
|
-
l:
|
|
1585
|
+
t: s.bandH + g.legTopH + n.h * .04,
|
|
1586
|
+
r: g.legRightW + n.w * .05,
|
|
1587
|
+
b: g.legBottomH + n.h * .19 + x,
|
|
1588
|
+
l: g.legLeftW + n.w * .13 + b
|
|
1589
1589
|
},
|
|
1590
1590
|
honorPlotAreaManualLayout: !0,
|
|
1591
1591
|
manualOuterInsets: {
|
|
1592
|
-
t:
|
|
1593
|
-
r:
|
|
1594
|
-
b:
|
|
1595
|
-
l:
|
|
1592
|
+
t: s.bandH,
|
|
1593
|
+
r: g.legRightW,
|
|
1594
|
+
b: g.legBottomH + x,
|
|
1595
|
+
l: g.legLeftW + b
|
|
1596
1596
|
}
|
|
1597
|
-
}),
|
|
1598
|
-
x:
|
|
1599
|
-
y:
|
|
1600
|
-
w: Math.max(1,
|
|
1601
|
-
h: Math.max(1,
|
|
1597
|
+
}), C = {
|
|
1598
|
+
x: S.plotRect.px0,
|
|
1599
|
+
y: S.plotRect.py0,
|
|
1600
|
+
w: Math.max(1, S.plotRect.pw),
|
|
1601
|
+
h: Math.max(1, S.plotRect.ph)
|
|
1602
1602
|
};
|
|
1603
|
-
|
|
1604
|
-
let
|
|
1605
|
-
x:
|
|
1606
|
-
y:
|
|
1607
|
-
w:
|
|
1608
|
-
h:
|
|
1609
|
-
} :
|
|
1610
|
-
x:
|
|
1611
|
-
y:
|
|
1612
|
-
w:
|
|
1613
|
-
h:
|
|
1614
|
-
} :
|
|
1615
|
-
x:
|
|
1616
|
-
y:
|
|
1617
|
-
w: Math.max(1,
|
|
1618
|
-
h:
|
|
1603
|
+
ce(e, t, C.x, C.y, C.w, C.h, r, a);
|
|
1604
|
+
let w = h ? h.side === "r" ? {
|
|
1605
|
+
x: n.x + n.w - h.reserveW,
|
|
1606
|
+
y: C.y,
|
|
1607
|
+
w: h.reserveW,
|
|
1608
|
+
h: C.h
|
|
1609
|
+
} : h.side === "l" ? {
|
|
1610
|
+
x: n.x,
|
|
1611
|
+
y: C.y,
|
|
1612
|
+
w: h.reserveW,
|
|
1613
|
+
h: C.h
|
|
1614
|
+
} : h.side === "t" ? {
|
|
1615
|
+
x: n.x + 4,
|
|
1616
|
+
y: n.y + s.bandH,
|
|
1617
|
+
w: Math.max(1, n.w - 8),
|
|
1618
|
+
h: h.reserveH
|
|
1619
1619
|
} : {
|
|
1620
|
-
x:
|
|
1621
|
-
y:
|
|
1622
|
-
w: Math.max(1,
|
|
1623
|
-
h:
|
|
1620
|
+
x: n.x + 4,
|
|
1621
|
+
y: n.y + n.h - h.reserveH,
|
|
1622
|
+
w: Math.max(1, n.w - 8),
|
|
1623
|
+
h: h.reserveH
|
|
1624
1624
|
} : null;
|
|
1625
1625
|
return {
|
|
1626
|
-
plot:
|
|
1627
|
-
legend: (
|
|
1626
|
+
plot: C,
|
|
1627
|
+
legend: (w && t.legendManualLayout ? P(t.legendManualLayout, n, w) : null) ?? w,
|
|
1628
1628
|
legendMeasure: {
|
|
1629
|
-
labels:
|
|
1630
|
-
styles:
|
|
1631
|
-
itemWidths:
|
|
1629
|
+
labels: l.map((e) => e.label),
|
|
1630
|
+
styles: d,
|
|
1631
|
+
itemWidths: m
|
|
1632
1632
|
}
|
|
1633
1633
|
};
|
|
1634
1634
|
}
|
|
1635
|
-
function an(t, n, i, a, o, s, c, l, u, d, f, p
|
|
1636
|
-
|
|
1637
|
-
let
|
|
1638
|
-
if (
|
|
1639
|
-
let
|
|
1640
|
-
x:
|
|
1641
|
-
y:
|
|
1642
|
-
w:
|
|
1643
|
-
h:
|
|
1644
|
-
},
|
|
1645
|
-
...
|
|
1635
|
+
function an(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
1636
|
+
e.save(), e.font = `${l ? "italic " : ""}${c ? "bold " : ""}${a}px ${o}`, e.fillStyle = s ? `#${s}` : "#555";
|
|
1637
|
+
let m = f ? t : on(e, t, p), h = A(i, u, d), g = r;
|
|
1638
|
+
if (f) {
|
|
1639
|
+
let t = M(e, m), i = a + G(m, a), o = Math.abs(Math.cos(h)), s = Math.abs(Math.sin(h)), c = {
|
|
1640
|
+
x: r.x - (t * o + i * s) / 2,
|
|
1641
|
+
y: r.y - (t * s + i * o) / 2,
|
|
1642
|
+
w: t * o + i * s,
|
|
1643
|
+
h: t * s + i * o
|
|
1644
|
+
}, l = P({
|
|
1645
|
+
...f,
|
|
1646
1646
|
w: void 0,
|
|
1647
1647
|
h: void 0
|
|
1648
|
-
},
|
|
1649
|
-
|
|
1650
|
-
x:
|
|
1651
|
-
y:
|
|
1648
|
+
}, n, c);
|
|
1649
|
+
l && (g = {
|
|
1650
|
+
x: l.x + l.w / 2,
|
|
1651
|
+
y: l.y + l.h / 2
|
|
1652
1652
|
});
|
|
1653
1653
|
}
|
|
1654
|
-
|
|
1654
|
+
e.translate(g.x, g.y), h && e.rotate(h), e.textAlign = "center", e.textBaseline = "middle", B(e, m, 0, 0, a), e.restore();
|
|
1655
1655
|
}
|
|
1656
1656
|
function on(e, t, n) {
|
|
1657
|
-
let r =
|
|
1658
|
-
return r.length === 1 ?
|
|
1657
|
+
let r = re(t);
|
|
1658
|
+
return r.length === 1 ? de(e, t, n) : r.map((t) => de(e, t, n)).join("\n");
|
|
1659
1659
|
}
|
|
1660
1660
|
function sn(e, t, n, r, i, a) {
|
|
1661
1661
|
if (t.valAxisTitle) {
|
|
1662
|
-
let o =
|
|
1662
|
+
let o = Z(t.valAxisTitleFontSizeHpt, a), s = i ? "horizontal" : "left", c = f(t.valAxisTitle, o, s, t.valAxisTitleRotation, t.valAxisTitleVerticalMode) / 2;
|
|
1663
1663
|
an(e, t.valAxisTitle, n, i ? {
|
|
1664
1664
|
x: r.x + r.w / 2,
|
|
1665
|
-
y: r.y + r.h +
|
|
1665
|
+
y: r.y + r.h + u(n.h) + o / 2 + c
|
|
1666
1666
|
} : {
|
|
1667
|
-
x: r.x -
|
|
1667
|
+
x: r.x - u(n.w) - o / 2 - c,
|
|
1668
1668
|
y: r.y + r.h / 2
|
|
1669
1669
|
}, s, o, Rt(t, t.valAxisTitleFontFace, "major"), t.valAxisTitleFontColor, t.valAxisTitleFontBold ?? !0, t.valAxisTitleFontItalic ?? !1, t.valAxisTitleRotation, t.valAxisTitleVerticalMode, t.valAxisTitleManualLayout, i ? r.w : r.h);
|
|
1670
1670
|
}
|
|
1671
1671
|
if (t.catAxisTitle) {
|
|
1672
|
-
let o =
|
|
1672
|
+
let o = Z(t.catAxisTitleFontSizeHpt, a), s = i ? "left" : "horizontal", c = f(t.catAxisTitle, o, s, t.catAxisTitleRotation, t.catAxisTitleVerticalMode) / 2;
|
|
1673
1673
|
an(e, t.catAxisTitle, n, i ? {
|
|
1674
|
-
x: r.x -
|
|
1674
|
+
x: r.x - u(n.w) - o / 2 - c,
|
|
1675
1675
|
y: r.y + r.h / 2
|
|
1676
1676
|
} : {
|
|
1677
1677
|
x: r.x + r.w / 2,
|
|
1678
|
-
y: r.y + r.h +
|
|
1678
|
+
y: r.y + r.h + u(n.h) + o / 2 + c
|
|
1679
1679
|
}, s, o, Rt(t, t.catAxisTitleFontFace, "major"), t.catAxisTitleFontColor, t.catAxisTitleFontBold ?? !0, t.catAxisTitleFontItalic ?? !1, t.catAxisTitleRotation, t.catAxisTitleVerticalMode, t.catAxisTitleManualLayout, i ? r.h : r.w);
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
@@ -1701,98 +1701,98 @@ function cn(e, t, n, r, i, a, o, s, c, l, u) {
|
|
|
1701
1701
|
x: -b.x,
|
|
1702
1702
|
y: -b.y
|
|
1703
1703
|
}), d.lineHidden || (yn(e, _n(d.lineColor, d.lineWidthEmu, d.lineDash, u)), e.beginPath(), e.moveTo(g.x, g.y), e.lineTo(_.x, _.y), e.stroke());
|
|
1704
|
-
let C = Math.max(1, Math.floor(d.tickMarkSkip ?? 1)), w = Math.max(1, Math.floor(d.tickLabelSkip ?? 1)),
|
|
1705
|
-
if (e.font = `${d.fontItalic ? "italic " : ""}${d.fontBold ? "bold " : ""}${
|
|
1704
|
+
let C = Math.max(1, Math.floor(d.tickMarkSkip ?? 1)), w = Math.max(1, Math.floor(d.tickLabelSkip ?? 1)), T = d.majorTickMark ?? "out", E = H(d.fontSizeHpt, u) ?? 9 * u;
|
|
1705
|
+
if (e.font = `${d.fontItalic ? "italic " : ""}${d.fontBold ? "bold " : ""}${E}px ${Rt(t, d.fontFace)}`, e.fillStyle = d.fontColor ? `#${d.fontColor}` : "#595959", e.textAlign = Math.abs(b.x) < .2 ? "center" : b.x < 0 ? "right" : "left", e.textBaseline = Math.abs(b.y) < .2 ? "middle" : b.y < 0 ? "bottom" : "top", l && !d.lineHidden && T !== "none") {
|
|
1706
1706
|
yn(e, vn(d.lineColor, d.lineWidthEmu, d.lineDash, u));
|
|
1707
1707
|
let n = t.series.length;
|
|
1708
1708
|
for (let t = 0; t <= n; t += C) {
|
|
1709
|
-
let i = t / n, a = d.orientation === "maxMin" ? 1 - i : i, o = r.project(m, h, a), s = 6 * u, c =
|
|
1709
|
+
let i = t / n, a = d.orientation === "maxMin" ? 1 - i : i, o = r.project(m, h, a), s = 6 * u, c = T === "cross" ? s / 2 : T === "out" ? s : 0, l = T === "cross" ? s / 2 : T === "in" ? s : 0;
|
|
1710
1710
|
e.beginPath(), e.moveTo(o.x + b.x * c, o.y + b.y * c), e.lineTo(o.x - b.x * l, o.y - b.y * l), e.stroke();
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
1713
1713
|
for (let n = 0; n < t.series.length; n++) {
|
|
1714
1714
|
let i = r.seriesDepth(n, t.series.length, !1), a = d.orientation === "maxMin" ? 1 - i : i, o = r.project(m, h, a);
|
|
1715
|
-
if (!l && !d.lineHidden && n % C === 0 &&
|
|
1716
|
-
let t = 6 * u, n =
|
|
1715
|
+
if (!l && !d.lineHidden && n % C === 0 && T !== "none") {
|
|
1716
|
+
let t = 6 * u, n = T === "cross" ? t / 2 : T === "out" ? t : 0, r = T === "cross" ? t / 2 : T === "in" ? t : 0;
|
|
1717
1717
|
e.beginPath(), e.moveTo(o.x + b.x * n, o.y + b.y * n), e.lineTo(o.x - b.x * r, o.y - b.y * r), e.stroke();
|
|
1718
1718
|
}
|
|
1719
|
-
d.tickLabelPos !== "none" && n % w === 0 &&
|
|
1719
|
+
d.tickLabelPos !== "none" && n % w === 0 && B(e, t.series[n].name || `Series ${n + 1}`, o.x + b.x * (6 * u + 3), o.y + b.y * (6 * u + 3), K(E));
|
|
1720
1720
|
}
|
|
1721
1721
|
if (e.setLineDash([]), d.title) {
|
|
1722
|
-
let i =
|
|
1722
|
+
let i = Z(d.titleFontSizeHpt, u), a = E + i + 12 + F(t.series.map((e, t) => e.name || `Series ${t + 1}`), K(E)) + G(d.title, i) / 2;
|
|
1723
1723
|
an(e, d.title, n, {
|
|
1724
1724
|
x: S.x + b.x * a,
|
|
1725
1725
|
y: S.y + b.y * a
|
|
1726
1726
|
}, "horizontal", i, Rt(t, d.titleFontFace, "major"), d.titleFontColor, d.titleFontBold ?? !0, d.titleFontItalic ?? !1, d.titleRotation, d.titleVerticalMode, d.titleManualLayout, Math.max(r.front.w, r.front.h));
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
1729
|
-
function ln(e, n, r, i, a,
|
|
1730
|
-
let
|
|
1729
|
+
function ln(e, t, n, r, i, a, c) {
|
|
1730
|
+
let u = l(e, "dataPointMarker", i), d = J(e, "dataPointMarker"), f = t.chartexFormatIdx ?? i, p = v(n?.markerStyle, d, r), h = v(t.markerStyle, d, f), g = p !== void 0 || n?.markerFillPaint !== void 0 || n?.markerFill != null || n?.color != null || n?.markerFillPaintAuthored === !0 && n.markerStyle?.fillHidden !== !0, _ = h !== void 0 || t.markerFillPaint !== void 0 || t.markerFill != null || t.markerFillPaintAuthored === !0 && t.markerStyle?.fillHidden !== !0, y = s(u, d, f), b = g ? p ?? n?.markerFillPaint : _ ? h ?? t.markerFillPaint : y, x = z(t, n, r, a), S = b;
|
|
1731
1731
|
b?.fillType === "solid" ? (x = b.color, S = void 0) : b === null && (x = "00000000");
|
|
1732
|
-
let C =
|
|
1732
|
+
let C = ye(n?.markerStyle, d, r), w = ye(t.markerStyle, d, f), T = C !== void 0 || n?.markerLine != null || n?.markerLinePaintAuthored === !0 && n.markerStyle?.lineHidden !== !0, E = w !== void 0 || t.markerLine != null || t.markerLinePaintAuthored === !0 && t.markerStyle?.lineHidden !== !0, D = o(u, f), O = T ? C ?? (n?.markerLinePaintAuthored === !0 ? null : void 0) : E ? w ?? (t.markerLinePaintAuthored === !0 ? null : void 0) : D, k = n?.markerLine ?? t.markerLine ?? t.lineColor ?? a, A = O;
|
|
1733
1733
|
O?.fillType === "solid" ? (k = O.color, A = void 0) : O === null && (k = "00000000");
|
|
1734
|
-
let j =
|
|
1734
|
+
let j = n?.markerStyle ?? t.markerStyle ?? u, M = L(n?.markerStyle, t.markerStyle, u);
|
|
1735
1735
|
return {
|
|
1736
1736
|
fill: x,
|
|
1737
1737
|
fillPaint: S,
|
|
1738
1738
|
line: k,
|
|
1739
1739
|
linePaint: A,
|
|
1740
|
-
lineWidth: (
|
|
1740
|
+
lineWidth: (n?.markerLineWidthEmu ?? t.markerLineWidthEmu ?? j?.lineWidthEmu) == null ? Math.max(.75, c) : Math.max(.25, (n?.markerLineWidthEmu ?? t.markerLineWidthEmu ?? j?.lineWidthEmu ?? 0) / W * c),
|
|
1741
1741
|
lineDash: M?.lineDash,
|
|
1742
1742
|
lineCustomDash: M?.lineCustomDash,
|
|
1743
1743
|
lineCap: j?.lineCap,
|
|
1744
1744
|
lineJoin: j?.lineJoin,
|
|
1745
|
-
effectDirect:
|
|
1746
|
-
effectFallback:
|
|
1747
|
-
effectIndex:
|
|
1748
|
-
effectFallbackIndex:
|
|
1745
|
+
effectDirect: m(n?.markerStyle, n?.chartexStyle, t.markerStyle),
|
|
1746
|
+
effectFallback: u,
|
|
1747
|
+
effectIndex: n?.markerStyle || n?.chartexStyle ? r : f,
|
|
1748
|
+
effectFallbackIndex: f
|
|
1749
1749
|
};
|
|
1750
1750
|
}
|
|
1751
|
-
function un(e, t, n, r, i, a, o, s, c,
|
|
1752
|
-
let
|
|
1751
|
+
function un(e, t, n, r, i, a, o, s, c, u, d, f) {
|
|
1752
|
+
let p = $(t, n, r, i, a, f), h = Le(t, n, i, a), g = {
|
|
1753
1753
|
x: o,
|
|
1754
1754
|
y: s - c / 2,
|
|
1755
1755
|
w: c,
|
|
1756
1756
|
h: c
|
|
1757
|
-
},
|
|
1758
|
-
if (
|
|
1759
|
-
let t =
|
|
1760
|
-
t && (e.fillStyle = t, e.fillRect(
|
|
1757
|
+
}, _ = (e) => {
|
|
1758
|
+
if (p.fill !== null) {
|
|
1759
|
+
let t = p.fill === void 0 ? p.color : p.fill.fillType === "image" ? null : se(p.fill, e, g.x, g.y, g.w, g.h, d);
|
|
1760
|
+
t && (e.fillStyle = t, e.fillRect(g.x, g.y, g.w, g.h));
|
|
1761
1761
|
}
|
|
1762
|
-
let t =
|
|
1763
|
-
t && (e.strokeStyle = t, e.lineWidth =
|
|
1764
|
-
},
|
|
1765
|
-
|
|
1762
|
+
let t = p.lineFill === void 0 ? p.lineColor : p.lineFill == null || p.lineFill.fillType === "image" ? null : se(p.lineFill, e, g.x, g.y, g.w, g.h, d);
|
|
1763
|
+
t && (e.strokeStyle = t, e.lineWidth = p.lineWidthEmu == null ? .75 * u : Math.max(.25, p.lineWidthEmu / W * u), e.setLineDash(x(p.lineCustomDash, p.lineDash, e.lineWidth)), e.lineCap = p.lineCap, e.lineJoin = p.lineJoin, e.strokeRect(g.x, g.y, g.w, g.h), e.setLineDash([]));
|
|
1764
|
+
}, v = m(r?.chartexStyle, n.chartexStyle);
|
|
1765
|
+
b(e, v, l(t, "dataPoint3D", a), v === r?.chartexStyle ? i : h, g, u, _, h);
|
|
1766
1766
|
}
|
|
1767
|
-
function dn(e, t, n, r, i, a, o, s, c,
|
|
1768
|
-
let
|
|
1767
|
+
function dn(e, t, n, r, i, a, o, s, c, u) {
|
|
1768
|
+
let d = $(t, n, void 0, r, r, !1), f = d.lineFill === void 0 ? d.lineColor == null ? d.fill : {
|
|
1769
1769
|
fillType: "solid",
|
|
1770
|
-
color:
|
|
1771
|
-
} :
|
|
1772
|
-
if (
|
|
1773
|
-
let i =
|
|
1770
|
+
color: d.lineColor.replace(/^#/, "")
|
|
1771
|
+
} : d.lineFill;
|
|
1772
|
+
if (f !== null) {
|
|
1773
|
+
let i = d.lineWidthEmu == null ? Math.max(1, 2 * c) : Math.max(.5, d.lineWidthEmu / W * c), p = {
|
|
1774
1774
|
x: a,
|
|
1775
1775
|
y: o - i / 2,
|
|
1776
1776
|
w: s,
|
|
1777
1777
|
h: i
|
|
1778
|
-
},
|
|
1779
|
-
if (
|
|
1780
|
-
let
|
|
1781
|
-
t.beginPath(), t.moveTo(a, o), t.lineTo(a + s, o), t.strokeStyle = t === e ?
|
|
1782
|
-
},
|
|
1783
|
-
|
|
1778
|
+
}, h = f === void 0 ? d.color : f.fillType === "image" ? null : f.fillType === "solid" ? `#${f.color}` : se(f, e, a, o - i / 2, s, i, u);
|
|
1779
|
+
if (h) {
|
|
1780
|
+
let g = (t) => {
|
|
1781
|
+
t.beginPath(), t.moveTo(a, o), t.lineTo(a + s, o), t.strokeStyle = t === e ? h : f === void 0 ? d.color : f.fillType === "image" ? "rgba(0,0,0,0)" : f.fillType === "solid" ? `#${f.color}` : se(f, t, a, o - i / 2, s, i, u) ?? "rgba(0,0,0,0)", t.lineWidth = i, t.setLineDash(x(d.lineCustomDash, d.lineDash, i)), t.stroke(), t.setLineDash([]);
|
|
1782
|
+
}, _ = Le(t, n, r, r);
|
|
1783
|
+
b(e, m(n.chartexStyle), l(t, "dataPoint3D", r), _, p, c, g, _);
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
1786
|
if (n.showMarker !== !0 || n.markerSymbol === "none") return;
|
|
1787
|
-
let
|
|
1787
|
+
let p = n.markerSymbol ?? "circle", h = ln(t, n, void 0, r, r, i.replace(/^#/, ""), c);
|
|
1788
1788
|
en(e, {
|
|
1789
1789
|
x: a + s / 2,
|
|
1790
1790
|
y: o
|
|
1791
|
-
},
|
|
1791
|
+
}, p, Math.min(s, Math.max(2, (n.markerSize ?? 5) * c)), h.fill === "00000000" ? "transparent" : `#${h.fill.replace(/^#/, "")}`, h.line === "00000000" ? "rgba(0,0,0,0)" : `#${h.line.replace(/^#/, "")}`, h.lineWidth, h.fillPaint, u, c, h.effectDirect, h.effectFallback, h.effectIndex, h.effectFallbackIndex, h.linePaint, h.lineDash, h.lineCustomDash, h.lineCap, h.lineJoin);
|
|
1792
1792
|
}
|
|
1793
1793
|
function fn(e, t, n, r, i = !1, a, o = 0) {
|
|
1794
1794
|
if (!n) return;
|
|
1795
|
-
|
|
1795
|
+
ie(e, t, n, r, o);
|
|
1796
1796
|
let s = new Map(t.series[0]?.dataPointOverrides?.map((e) => [e.idx, e]) ?? []), c = i ? (t.series[0]?.categories?.length ? t.series[0].categories : t.categories).map((e, n) => {
|
|
1797
1797
|
let r = t.series[0]?.dataPointColors?.[n];
|
|
1798
1798
|
return {
|
|
@@ -1814,14 +1814,14 @@ function fn(e, t, n, r, i = !1, a, o = 0) {
|
|
|
1814
1814
|
e.textAlign = "left", e.textBaseline = "middle";
|
|
1815
1815
|
let p = Math.max(0, ...f.map((e) => e.fontPx)), m = Math.max(p * 1.45, 12), h = Math.min(7 * r, m * .7), g = m + Qt(u.map((e) => e.label), p);
|
|
1816
1816
|
if (t.legendPos === "t" || t.legendPos === "b" || t.legendManualLayout != null && n.w >= n.h) {
|
|
1817
|
-
let s = d ? a.itemWidths : u.map((t, n) => (e.font = f[n].font, h + 4 +
|
|
1817
|
+
let s = d ? a.itemWidths : u.map((t, n) => (e.font = f[n].font, h + 4 + M(e, t.label))), c = ae(s, Math.max(1, n.w - 8), 12).slice(0, Math.max(0, Math.floor((n.h - 4 + 1e-6) / g))), l = n.y + 2 + g / 2;
|
|
1818
1818
|
for (let a of c) {
|
|
1819
1819
|
let c = a.map((e) => Math.min(n.w, s[e])), d = c.reduce((e, t) => e + t, 0) + Math.max(0, a.length - 1) * 12, p = n.x + Math.max(4, (n.w - d) / 2);
|
|
1820
1820
|
for (let n = 0; n < a.length; n++) {
|
|
1821
1821
|
let s = a[n], d = u[s], m = f[s];
|
|
1822
1822
|
e.font = m.font;
|
|
1823
1823
|
let g = Math.max(0, c[n] - h - 4);
|
|
1824
|
-
!i && t.chartType.toLowerCase().includes("line") && d.series ? dn(e, t, d.series, d.seriesIndex, d.color, p, l, h, r, o) : d.series && un(e, t, d.series, d.point, d.sourceIndex, d.seriesIndex, p, l, h, r, o, i), e.fillStyle = m.color,
|
|
1824
|
+
!i && t.chartType.toLowerCase().includes("line") && d.series ? dn(e, t, d.series, d.seriesIndex, d.color, p, l, h, r, o) : d.series && un(e, t, d.series, d.point, d.sourceIndex, d.seriesIndex, p, l, h, r, o, i), e.fillStyle = m.color, B(e, d.label, p + h + 4, l, Zt(m.fontPx), g), p += c[n] + 12;
|
|
1825
1825
|
}
|
|
1826
1826
|
l += g;
|
|
1827
1827
|
}
|
|
@@ -1831,7 +1831,7 @@ function fn(e, t, n, r, i = !1, a, o = 0) {
|
|
|
1831
1831
|
for (let a = 0; a < u.length; a++) {
|
|
1832
1832
|
let s = u[a], c = f[a];
|
|
1833
1833
|
e.font = c.font;
|
|
1834
|
-
let l = n.x + 8 + h, d = Math.max(0, n.x + n.w - 4 - l), p = Math.max(c.fontPx * 1.2, 10), g =
|
|
1834
|
+
let l = n.x + 8 + h, d = Math.max(0, n.x + n.w - 4 - l), p = Math.max(c.fontPx * 1.2, 10), g = re(s.label), v = (t) => w(t, d, p * (i ? 1 : 2), p, (t) => e.measureText(t).width), y = g.length === 1 ? v(s.label) : g.flatMap(v);
|
|
1835
1835
|
if (y.length === 0) continue;
|
|
1836
1836
|
let b = Math.max(m, y.length * p + 2);
|
|
1837
1837
|
if (_ + b > n.y + n.h + 1e-6) break;
|
|
@@ -1843,7 +1843,7 @@ function fn(e, t, n, r, i = !1, a, o = 0) {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
function pn(e, t, n, r, i, a) {
|
|
1845
1845
|
let o = i ? 100 : 1, s = e.valAxisMinorTickMark ?? "none";
|
|
1846
|
-
return
|
|
1846
|
+
return h({
|
|
1847
1847
|
dataMin: t,
|
|
1848
1848
|
dataMax: n,
|
|
1849
1849
|
explicitMin: e.valMin == null ? i ? t : null : e.valMin * o,
|
|
@@ -1896,23 +1896,23 @@ function hn(e) {
|
|
|
1896
1896
|
};
|
|
1897
1897
|
}
|
|
1898
1898
|
function gn(e, t, n, r, i = "A6A6A6", a = .75) {
|
|
1899
|
-
let o = t != null && Number.isFinite(t) && t >= 0 ? Math.max(.25, t /
|
|
1899
|
+
let o = t != null && Number.isFinite(t) && t >= 0 ? Math.max(.25, t / W * r) : a * r;
|
|
1900
1900
|
return {
|
|
1901
1901
|
color: `#${e ?? i}`,
|
|
1902
1902
|
width: o,
|
|
1903
|
-
dash:
|
|
1903
|
+
dash: Se(n ?? "solid", o)
|
|
1904
1904
|
};
|
|
1905
1905
|
}
|
|
1906
1906
|
function _n(e, t, n, r) {
|
|
1907
1907
|
let i = gn(e, t, n, r, "898989", 1);
|
|
1908
1908
|
if (t == null || !Number.isFinite(t) || t < 0) return i;
|
|
1909
|
-
let a = t /
|
|
1909
|
+
let a = t / W * r;
|
|
1910
1910
|
if (!(a > 0)) return i;
|
|
1911
1911
|
let o = a;
|
|
1912
1912
|
return {
|
|
1913
1913
|
...i,
|
|
1914
1914
|
width: o,
|
|
1915
|
-
dash:
|
|
1915
|
+
dash: Se(n ?? "solid", o)
|
|
1916
1916
|
};
|
|
1917
1917
|
}
|
|
1918
1918
|
function vn(e, t, n, r) {
|
|
@@ -1922,14 +1922,14 @@ function yn(e, t) {
|
|
|
1922
1922
|
e.strokeStyle = t.color, e.lineWidth = t.width, e.setLineDash(t.dash);
|
|
1923
1923
|
}
|
|
1924
1924
|
function bn(e, t, n, r, i, a, o, s, c) {
|
|
1925
|
-
let { front: l } = n, u = l.x,
|
|
1926
|
-
|
|
1927
|
-
let
|
|
1928
|
-
if (
|
|
1929
|
-
let e = i === "vertical" ?
|
|
1925
|
+
let { front: l } = n, u = l.x, f = l.x + l.w, p = hn(n), { sideX: m, floorY: h, oppositeFloorY: g, nearDepth: _, farDepth: v } = p, y = Dn(t, n, r, a, o, s, i), b = [], C = t.catAxisLinePaintAuthored === !0, w = t.valAxisLinePaintAuthored === !0, T = i === "vertical" ? C && !t.catAxisHidden && !t.catAxisLineHidden : w && !t.valAxisHidden && !t.valAxisLineHidden, E = i === "vertical" ? w && !t.valAxisHidden && !t.valAxisLineHidden : C && !t.catAxisHidden && !t.catAxisLineHidden;
|
|
1926
|
+
T && b.push([y.horizontalStart, y.horizontalEnd]), E && b.push([y.verticalStart, y.verticalEnd]);
|
|
1927
|
+
let D = t.threeD?.seriesAxis, O = D?.linePaintAuthored === !0;
|
|
1928
|
+
if (D && !D.hidden && !D.lineHidden && O && t.threeD?.barGrouping === "standard" && t.series.length > 0) {
|
|
1929
|
+
let e = i === "vertical" ? p.seriesAxisX : y.axisX, t = i === "horizontal" ? h === n.front.y ? n.front.y + n.front.h : n.front.y : h;
|
|
1930
1930
|
b.push([n.project(e, t, _), n.project(e, t, v)]);
|
|
1931
1931
|
}
|
|
1932
|
-
let
|
|
1932
|
+
let k = (e, t) => Math.hypot(e.x - t.x, e.y - t.y) <= 1e-6, A = (e, t) => b.some(([n, r]) => k(e, n) && k(t, r) || k(e, r) && k(t, n)), j = (e, t) => {
|
|
1933
1933
|
let r = Ce(n, e, t?.thicknessPercent), i = r.faces.map((e, t) => ({
|
|
1934
1934
|
scenePoints: e,
|
|
1935
1935
|
faceIndex: t
|
|
@@ -1944,19 +1944,19 @@ function bn(e, t, n, r, i, a, o, s, c) {
|
|
|
1944
1944
|
faces: i,
|
|
1945
1945
|
visibleFaceIndices: new Set(i.map((e) => e.faceIndex))
|
|
1946
1946
|
};
|
|
1947
|
-
},
|
|
1948
|
-
let l =
|
|
1947
|
+
}, M = j("floor", t.threeD?.floor), N = j("sideWall", t.threeD?.sideWall), P = j("backWall", t.threeD?.backWall), F = M.faces, I = N.faces, L = P.faces, R = (i, a, o, s) => {
|
|
1948
|
+
let l = d(t, a, o), u = i.faces;
|
|
1949
1949
|
if (!l.fill || !u.length) return;
|
|
1950
1950
|
if (l.fill.fillType === "image") {
|
|
1951
|
-
let t = l.fill, o = ke(i.slab, c), u =
|
|
1951
|
+
let t = l.fill, o = ke(i.slab, c), u = ee(l.fill, o ? q(l.fill, o.widthPt, o.heightPt) : void 0);
|
|
1952
1952
|
if (!u) return;
|
|
1953
|
-
Ee(e, l.fill, u, a, s, i.slab, i.faces.map((e) => e.faceIndex), (e) => n.projectUnbounded(e.x, e.y, e.depth), r.max - r.min, (e, n) =>
|
|
1953
|
+
Ee(e, l.fill, u, a, s, i.slab, i.faces.map((e) => e.faceIndex), (e) => n.projectUnbounded(e.x, e.y, e.depth), r.max - r.min, (e, n) => ee(t, q(t, e, n)), c);
|
|
1954
1954
|
return;
|
|
1955
1955
|
}
|
|
1956
|
-
let
|
|
1956
|
+
let f = u.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)), _ = l.fill.fillType === "solid" ? `#${l.fill.color}` : se(l.fill, e, p, h, m - p, g - h);
|
|
1957
1957
|
if (_) for (let t of u) t.points.length < 3 || (zt(e, t.points), e.fillStyle = _, e.fill());
|
|
1958
1958
|
};
|
|
1959
|
-
R(
|
|
1959
|
+
R(M, t.threeD?.floor, "floor", "floor"), R(N, t.threeD?.sideWall, "wall", "sideWall"), R(P, t.threeD?.backWall, "wall", "backWall");
|
|
1960
1960
|
let z = (t, r, i, a, o = !0) => {
|
|
1961
1961
|
for (let s of Oe(t.slab, r, i, a)) {
|
|
1962
1962
|
if (!o && s.faceIndex !== 0 || !t.visibleFaceIndices.has(s.faceIndex)) continue;
|
|
@@ -1968,14 +1968,14 @@ function bn(e, t, n, r, i, a, o, s, c) {
|
|
|
1968
1968
|
for (let a of t) {
|
|
1969
1969
|
let t = r.fraction(a);
|
|
1970
1970
|
if (o) {
|
|
1971
|
-
i === "horizontal" ? (z(
|
|
1971
|
+
i === "horizontal" ? (z(M, "floor", "x", t), z(P, "backWall", "x", t)) : (z(N, "sideWall", "y", t), z(P, "backWall", "y", t));
|
|
1972
1972
|
continue;
|
|
1973
1973
|
}
|
|
1974
1974
|
if (i === "horizontal") {
|
|
1975
1975
|
let r = l.x + t * l.w, i = n.project(r, h, v), a = n.project(r, g, v);
|
|
1976
1976
|
e.beginPath(), e.moveTo(i.x, i.y), e.lineTo(a.x, a.y), e.stroke();
|
|
1977
1977
|
} else {
|
|
1978
|
-
let r = l.y + l.h - t * l.h, i = n.project(
|
|
1978
|
+
let r = l.y + l.h - t * l.h, i = n.project(m, r, _), a = n.project(m, r, v), o = n.project(m === u ? f : u, r, v);
|
|
1979
1979
|
e.beginPath(), e.moveTo(i.x, i.y), e.lineTo(a.x, a.y), e.stroke(), e.beginPath(), e.moveTo(a.x, a.y), e.lineTo(o.x, o.y), e.stroke();
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
@@ -1983,28 +1983,28 @@ function bn(e, t, n, r, i, a, o, s, c) {
|
|
|
1983
1983
|
t.valAxisMinorGridlines === !0 && B(r.minorTicks, gn(t.valAxisMinorGridlineColor, t.valAxisMinorGridlineWidthEmu, t.valAxisMinorGridlineDash, c, "D9D9D9", .5), !0), t.valAxisMajorGridlines === !0 && B(r.majorTicks, gn(t.valAxisGridlineColor, t.valAxisGridlineWidthEmu, t.valAxisGridlineDash, c, "898989", 1), !0);
|
|
1984
1984
|
let V = (t, n) => {
|
|
1985
1985
|
yn(e, n);
|
|
1986
|
-
for (let e of t) i === "vertical" ? (z(
|
|
1986
|
+
for (let e of t) i === "vertical" ? (z(M, "floor", "x", e), z(P, "backWall", "x", e)) : (z(N, "sideWall", "y", e), z(P, "backWall", "y", e));
|
|
1987
1987
|
};
|
|
1988
|
-
t.catAxisMinorGridlines === !0 && V(
|
|
1988
|
+
t.catAxisMinorGridlines === !0 && V(S(a, o), gn(t.catAxisMinorGridlineColor, t.catAxisMinorGridlineWidthEmu, t.catAxisMinorGridlineDash, c, "E0E0E0", .5)), t.catAxisMajorGridlines === !0 && V(_e(a, o), gn(t.catAxisGridlineColor, t.catAxisGridlineWidthEmu, t.catAxisGridlineDash, c, "E0E0E0", .5));
|
|
1989
1989
|
let H = (n, r, i) => {
|
|
1990
1990
|
if (!n.length) return;
|
|
1991
|
-
let a =
|
|
1991
|
+
let a = d(t, r, i);
|
|
1992
1992
|
if (a.line === null) return;
|
|
1993
1993
|
let o = a.line ?? {
|
|
1994
1994
|
fillType: "solid",
|
|
1995
1995
|
color: "898989"
|
|
1996
|
-
}, s = n.flatMap((e) => e.points), l = Math.min(...s.map((e) => e.x)), u = Math.max(...s.map((e) => e.x)),
|
|
1997
|
-
if (!
|
|
1998
|
-
let h = a.lineWidthEmu == null ? c : Math.max(.25, a.lineWidthEmu /
|
|
1999
|
-
e.strokeStyle =
|
|
1996
|
+
}, s = n.flatMap((e) => e.points), l = Math.min(...s.map((e) => e.x)), u = 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}` : se(o, e, l, f, u - l, p - f);
|
|
1997
|
+
if (!m) return;
|
|
1998
|
+
let h = a.lineWidthEmu == null ? c : Math.max(.25, a.lineWidthEmu / W * c);
|
|
1999
|
+
e.strokeStyle = m, e.lineWidth = h, e.setLineDash(x(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";
|
|
2000
2000
|
for (let t of n) {
|
|
2001
2001
|
if (t.points.length < 2) continue;
|
|
2002
2002
|
let n = t.points.map((e, n) => ({
|
|
2003
2003
|
start: e,
|
|
2004
2004
|
end: t.points[(n + 1) % t.points.length]
|
|
2005
2005
|
}));
|
|
2006
|
-
if (n.some((e) =>
|
|
2007
|
-
for (let t of n)
|
|
2006
|
+
if (n.some((e) => A(e.start, e.end))) {
|
|
2007
|
+
for (let t of n) A(t.start, t.end) || (e.beginPath(), e.moveTo(t.start.x, t.start.y), e.lineTo(t.end.x, t.end.y), e.stroke());
|
|
2008
2008
|
continue;
|
|
2009
2009
|
}
|
|
2010
2010
|
e.beginPath(), e.moveTo(t.points[0].x, t.points[0].y);
|
|
@@ -2012,7 +2012,7 @@ function bn(e, t, n, r, i, a, o, s, c) {
|
|
|
2012
2012
|
e.lineTo(t.points[0].x, t.points[0].y), e.closePath(), e.stroke();
|
|
2013
2013
|
}
|
|
2014
2014
|
};
|
|
2015
|
-
H(
|
|
2015
|
+
H(F, t.threeD?.floor, "floor"), H(I, t.threeD?.sideWall, "wall"), H(L, t.threeD?.backWall, "wall"), e.setLineDash([]);
|
|
2016
2016
|
}
|
|
2017
2017
|
function xn(e, t, n, r, i, a, o, s, c) {
|
|
2018
2018
|
let l = Dn(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;
|
|
@@ -2049,189 +2049,189 @@ function En(e, t, n, r) {
|
|
|
2049
2049
|
let i = Tn(e, "major", n);
|
|
2050
2050
|
return Math.max(r, i + 3 * n);
|
|
2051
2051
|
}
|
|
2052
|
-
function Dn(e, t, n,
|
|
2053
|
-
let { front:
|
|
2052
|
+
function Dn(e, t, n, i, a, o, s) {
|
|
2053
|
+
let { front: c } = t, l = (e) => Math.max(0, Math.min(1, e)), u = t.topology.axisX === "min" ? c.x : c.x + c.w, d = t.topology.axisY === "min" ? c.y : c.y + c.h, f = () => {
|
|
2054
2054
|
if (e.catAxisCrossesAt != null && Number.isFinite(e.catAxisCrossesAt)) {
|
|
2055
2055
|
let t = e.chartType.endsWith("Pct") ? e.catAxisCrossesAt * 100 : e.catAxisCrossesAt;
|
|
2056
|
-
return
|
|
2056
|
+
return l(n.fraction(t));
|
|
2057
2057
|
}
|
|
2058
2058
|
let t = e.catAxisCrosses ?? "autoZero";
|
|
2059
|
-
return
|
|
2060
|
-
},
|
|
2059
|
+
return l(t === "min" ? n.fraction(n.min) : t === "max" ? n.fraction(n.max) : n.fraction(0));
|
|
2060
|
+
}, p = () => {
|
|
2061
2061
|
let t = e.valAxisCrossesAt;
|
|
2062
|
-
if (t != null && Number.isFinite(t)) return
|
|
2062
|
+
if (t != null && Number.isFinite(t)) return r(t - 1, i, a, o);
|
|
2063
2063
|
let n = e.valAxisCrosses;
|
|
2064
2064
|
if (n !== "min" && n !== "max") return null;
|
|
2065
|
-
let
|
|
2066
|
-
return
|
|
2067
|
-
},
|
|
2065
|
+
let s = +(n === "max");
|
|
2066
|
+
return o ? 1 - s : s;
|
|
2067
|
+
}, m = f(), h = p(), g = s === "horizontal" ? c.x + m * c.w : h == null ? u : c.x + h * c.w, _ = s === "vertical" ? c.y + c.h - m * c.h : h == null ? d : c.y + h * c.h, v = t.topology.nearDepth;
|
|
2068
2068
|
return {
|
|
2069
|
-
axisX:
|
|
2070
|
-
axisY:
|
|
2071
|
-
depth:
|
|
2072
|
-
horizontalStart: t.project(
|
|
2073
|
-
horizontalEnd: t.project(
|
|
2074
|
-
verticalStart: t.project(
|
|
2075
|
-
verticalEnd: t.project(
|
|
2069
|
+
axisX: g,
|
|
2070
|
+
axisY: _,
|
|
2071
|
+
depth: v,
|
|
2072
|
+
horizontalStart: t.project(c.x, _, v),
|
|
2073
|
+
horizontalEnd: t.project(c.x + c.w, _, v),
|
|
2074
|
+
verticalStart: t.project(g, c.y + c.h, v),
|
|
2075
|
+
verticalEnd: t.project(g, c.y, v)
|
|
2076
2076
|
};
|
|
2077
2077
|
}
|
|
2078
|
-
function On(e, t, n,
|
|
2079
|
-
let { front:
|
|
2078
|
+
function On(e, t, n, i, a, o, s, c, l, u) {
|
|
2079
|
+
let { front: d } = n, f = Dn(t, n, i, a, o, s, c), { axisX: p, axisY: m, depth: h } = f, g = n.project(d.x + d.w / 2, d.y + d.h / 2, h), _ = t.valAxisMinorTickMark ?? "none", v = l ? vn : _n;
|
|
2080
2080
|
if (!t.valAxisHidden && !t.valAxisLineHidden) {
|
|
2081
|
-
yn(e,
|
|
2082
|
-
let
|
|
2083
|
-
for (let n of
|
|
2084
|
-
for (let t of
|
|
2081
|
+
yn(e, v(t.valAxisLineColor, t.valAxisLineWidthEmu, t.valAxisLineDash, u));
|
|
2082
|
+
let r = (e) => c === "horizontal" ? n.project(d.x + i.fraction(e) * d.w, m, h) : n.project(p, d.y + d.h - i.fraction(e) * d.h, h), a = c === "horizontal" ? f.horizontalStart : f.verticalStart, o = c === "horizontal" ? f.horizontalEnd : f.verticalEnd;
|
|
2083
|
+
for (let n of i.majorTicks) Cn(e, t.valAxisMajorTickMark, r(n), a, o, g, c === "vertical" ? "horizontal" : "vertical", "major", u);
|
|
2084
|
+
for (let t of i.minorTicks) Cn(e, _, r(t), a, o, g, c === "vertical" ? "horizontal" : "vertical", "minor", u);
|
|
2085
2085
|
}
|
|
2086
2086
|
if (!t.catAxisHidden && !t.catAxisLineHidden) {
|
|
2087
|
-
yn(e,
|
|
2088
|
-
let
|
|
2089
|
-
let a =
|
|
2090
|
-
Cn(e, t.catAxisMajorTickMark, a,
|
|
2087
|
+
yn(e, v(t.catAxisLineColor, t.catAxisLineWidthEmu, t.catAxisLineDash, u));
|
|
2088
|
+
let i = c === "vertical" ? f.horizontalStart : f.verticalStart, _ = c === "vertical" ? f.horizontalEnd : f.verticalEnd, y = Math.max(1, Math.floor(t.catAxisTickMarkSkip ?? 1)), b = (r) => {
|
|
2089
|
+
let a = c === "vertical" ? n.project(d.x + r * d.w, m, h) : n.project(p, d.y + r * d.h, h);
|
|
2090
|
+
Cn(e, t.catAxisMajorTickMark, a, i, _, g, c === "vertical" ? "vertical" : "horizontal", "major", u);
|
|
2091
2091
|
};
|
|
2092
|
-
if (
|
|
2093
|
-
let e =
|
|
2094
|
-
for (let t = 0; t < e.length; t +=
|
|
2095
|
-
} else for (let e = 0; e <
|
|
2096
|
-
let
|
|
2097
|
-
if (t.catAxisMinorTickMark && t.catAxisMinorTickMark !== "none" &&
|
|
2098
|
-
let
|
|
2099
|
-
for (let
|
|
2100
|
-
let
|
|
2101
|
-
if (!(
|
|
2102
|
-
if (Math.abs(
|
|
2103
|
-
let
|
|
2104
|
-
Cn(e, t.catAxisMinorTickMark,
|
|
2092
|
+
if (l) {
|
|
2093
|
+
let e = _e(a, o);
|
|
2094
|
+
for (let t = 0; t < e.length; t += y) b(s ? 1 - e[t] : e[t]);
|
|
2095
|
+
} else for (let e = 0; e < a; e += y) b(r(e, a, o, s));
|
|
2096
|
+
let x = t.catAxisMinorUnit;
|
|
2097
|
+
if (t.catAxisMinorTickMark && t.catAxisMinorTickMark !== "none" && x != null && Number.isFinite(x) && x > 0) {
|
|
2098
|
+
let l = t.catAxisMajorUnit != null && Number.isFinite(t.catAxisMajorUnit) && t.catAxisMajorUnit > 0 ? t.catAxisMajorUnit : y, f = Math.min(512, Math.ceil(a / x));
|
|
2099
|
+
for (let v = 1; v < f; v++) {
|
|
2100
|
+
let f = v * x;
|
|
2101
|
+
if (!(f < a)) break;
|
|
2102
|
+
if (Math.abs(f / l - Math.round(f / l)) < 1e-9) continue;
|
|
2103
|
+
let y = r(f, a, o, s), b = c === "vertical" ? n.project(d.x + y * d.w, m, h) : n.project(p, d.y + y * d.h, h);
|
|
2104
|
+
Cn(e, t.catAxisMinorTickMark, b, i, _, g, c === "vertical" ? "vertical" : "horizontal", "minor", u);
|
|
2105
2105
|
}
|
|
2106
2106
|
}
|
|
2107
2107
|
}
|
|
2108
2108
|
e.setLineDash([]);
|
|
2109
2109
|
}
|
|
2110
|
-
function kn(e, t, n,
|
|
2110
|
+
function kn(e, t, n, a, o) {
|
|
2111
2111
|
if (!t.threeD) return !1;
|
|
2112
|
-
let
|
|
2113
|
-
sceneDepthScale:
|
|
2114
|
-
perspectiveTangentGain:
|
|
2115
|
-
sceneHeightScale: !
|
|
2112
|
+
let s = t.chartType === "clusteredBar" || t.chartType === "clusteredBarH" || t.chartType.startsWith("stackedBar"), c = t.chartType.endsWith("H") || t.chartType.includes("BarH"), u = t.chartType.startsWith("stacked"), d = s && !u && t.threeD.barGrouping === "standard", { plot: f, legend: p, legendMeasure: h } = rn(e, t, n, a, c ? "horizontal" : "vertical", o), _ = Te(t.threeD, f, {
|
|
2113
|
+
sceneDepthScale: s ? d ? .65 : .1 : .4,
|
|
2114
|
+
perspectiveTangentGain: d ? 1 : 2,
|
|
2115
|
+
sceneHeightScale: !s && !(t.threeD.heightPercentAuthored ?? t.threeD.heightPercent != null) ? 1 / 3 : void 0
|
|
2116
2116
|
});
|
|
2117
|
-
if (!
|
|
2118
|
-
|
|
2119
|
-
let
|
|
2117
|
+
if (!_) return !0;
|
|
2118
|
+
_ = De(_, t.threeD, f);
|
|
2119
|
+
let v = t.chartType.endsWith("Pct"), y = t.series.find((e) => (e.categories?.length ?? 0) > 0)?.categories ?? t.categories, b = Math.max(1, y.length, ...t.series.map((e) => e.values.length)), S = v ? kt(t, b) : void 0, w = t.catAxisOrientation === "maxMin", T = t.catAxisCrossBetween === "between", E = t.dispBlanksAs ?? "gap", D = t.valAxisLogBase != null && Number.isFinite(t.valAxisLogBase) && t.valAxisLogBase >= 2, O = (e, n) => {
|
|
2120
2120
|
let r = t.series[e]?.values[n];
|
|
2121
|
-
return r != null && Number.isFinite(r) && (!
|
|
2122
|
-
},
|
|
2123
|
-
if (
|
|
2124
|
-
for (let e = 0; e <
|
|
2121
|
+
return r != null && Number.isFinite(r) && (!D || r > 0) || r == null && (u || E === "zero");
|
|
2122
|
+
}, k = (e, n) => At(t, e, n, S), A = 0, j = 0;
|
|
2123
|
+
if (u) {
|
|
2124
|
+
for (let e = 0; e < b; e++) {
|
|
2125
2125
|
let n = 0, r = 0;
|
|
2126
2126
|
for (let i = 0; i < t.series.length; i++) {
|
|
2127
|
-
let t =
|
|
2127
|
+
let t = k(i, e);
|
|
2128
2128
|
t >= 0 ? n = jt(n, t) : r = jt(r, t);
|
|
2129
2129
|
}
|
|
2130
|
-
|
|
2130
|
+
A = Math.min(A, r), j = Math.max(j, n);
|
|
2131
2131
|
}
|
|
2132
|
-
|
|
2132
|
+
v && (A = A < 0 ? -100 : 0, j = j > 0 ? 100 : 0, A === 0 && j === 0 && (j = 1));
|
|
2133
2133
|
} else {
|
|
2134
|
-
let e =
|
|
2134
|
+
let e = g(t.series.flatMap((e) => e.values).filter((e) => e != null && Number.isFinite(e) && (!D || e > 0)), D ? {
|
|
2135
2135
|
min: 1,
|
|
2136
2136
|
max: 10
|
|
2137
2137
|
} : {
|
|
2138
2138
|
min: 0,
|
|
2139
2139
|
max: 1
|
|
2140
2140
|
});
|
|
2141
|
-
|
|
2141
|
+
A = D ? e.min : Math.min(0, e.min), j = D ? e.max : Math.max(0, e.max);
|
|
2142
2142
|
}
|
|
2143
|
-
let
|
|
2144
|
-
|
|
2145
|
-
let { front:
|
|
2146
|
-
if (
|
|
2147
|
-
let
|
|
2143
|
+
let N = c ? _.project(_.front.x, _.topology.axisY === "min" ? _.front.y : _.front.y + _.front.h, _.topology.nearDepth) : _.project(_.topology.axisX === "min" ? _.front.x : _.front.x + _.front.w, _.front.y, _.topology.nearDepth), P = c ? _.project(_.front.x + _.front.w, _.topology.axisY === "min" ? _.front.y : _.front.y + _.front.h, _.topology.nearDepth) : _.project(_.topology.axisX === "min" ? _.front.x : _.front.x + _.front.w, _.front.y + _.front.h, _.topology.nearDepth), F = Math.hypot(P.x - N.x, P.y - N.y) / a, I = pn(t, A, j, F, v, c ? "horizontal" : "vertical"), L = (e) => Number.isFinite(e) ? Math.max(I.min, Math.min(I.max, e)) : I.min;
|
|
2144
|
+
s || bn(e, t, _, I, c ? "horizontal" : "vertical", b, T, w, a);
|
|
2145
|
+
let { front: R } = _, z = Math.max(1, t.series.length), ee = [], G = t.series.map((e) => new Map(e.dataPointOverrides?.map((e) => [e.idx, e]) ?? [])), q = t.series.map((e) => new Map(e.dataLabelOverrides?.map((e) => [e.idx, e]) ?? []));
|
|
2146
|
+
if (s) {
|
|
2147
|
+
let r = _.prismInterval(0, 1, !0), i = [], s = Array(b).fill(0), f = Array(b).fill(0), p = (c ? R.h : R.w) / b, h = t.barGapWidth != null && Number.isFinite(t.barGapWidth) && t.barGapWidth >= 0 ? t.barGapWidth : 150;
|
|
2148
2148
|
for (let e = 0; e < t.series.length; e++) {
|
|
2149
|
-
let n = t.series[e],
|
|
2150
|
-
for (let
|
|
2151
|
-
if (!
|
|
2152
|
-
let
|
|
2153
|
-
|
|
2154
|
-
let
|
|
2155
|
-
if (!
|
|
2156
|
-
let t =
|
|
2149
|
+
let n = t.series[e], o = d ? _.prismInterval(e, z, !1) : r, l = je(p, h, d ? 0 : e, d ? 1 : z, u || d);
|
|
2150
|
+
for (let r = 0; r < b; r++) {
|
|
2151
|
+
if (!O(e, r)) continue;
|
|
2152
|
+
let d = k(e, r), m = $(t, n, G[e].get(r), r, e), h = m.fill === null ? "transparent" : m.color, g = m.lineFill !== null && (m.lineColor != null || m.lineFill !== void 0), _ = u ? d >= 0 ? s[r] : f[r] : 0, y = jt(_, d);
|
|
2153
|
+
u && (d >= 0 ? s[r] = y : f[r] = y);
|
|
2154
|
+
let x = L(_), S = L(y), C = n.threeDShape ?? t.threeD.shape ?? "box", T = C === "cone" || C === "pyramid", E = C === "coneToMax" || C === "pyramidToMax", A = (e) => {
|
|
2155
|
+
if (!T) return 1;
|
|
2156
|
+
let t = D && !(_ > 0) ? I.min : _, n = I.fraction(t), r = I.fraction(y), i = I.fraction(e), a = r - n;
|
|
2157
2157
|
return a === 0 || !Number.isFinite(a) || !Number.isFinite(i - n) ? +(e === t) : Math.max(0, Math.min(1, 1 - (i - n) / a));
|
|
2158
|
-
},
|
|
2159
|
-
if (!
|
|
2160
|
-
let t =
|
|
2158
|
+
}, j = (e) => {
|
|
2159
|
+
if (!E) return 1;
|
|
2160
|
+
let t = y >= _ ? I.max : I.min, n = D ? I.min : 0, r = I.fraction(t), i = I.fraction(n), a = I.fraction(e), o = Math.abs(r - i);
|
|
2161
2161
|
return !(o > 0) || ![
|
|
2162
2162
|
r,
|
|
2163
2163
|
i,
|
|
2164
2164
|
a
|
|
2165
2165
|
].every(Number.isFinite) ? we(e, I.min, I.max) : Math.max(0, Math.min(1, Math.abs(r - a) / o));
|
|
2166
|
-
},
|
|
2167
|
-
if (
|
|
2168
|
-
let t =
|
|
2169
|
-
|
|
2166
|
+
}, M = E ? j(x) : A(x), N = E ? j(S) : A(S);
|
|
2167
|
+
if (c) {
|
|
2168
|
+
let t = R.x + I.fraction(x) * R.w, n = R.x + I.fraction(S) * R.w, s = w ? b - 1 - r : r, c = R.y + s * p + l.offset;
|
|
2169
|
+
i.push({
|
|
2170
2170
|
x: Math.min(t, n),
|
|
2171
2171
|
y: c,
|
|
2172
2172
|
width: Math.abs(n - t),
|
|
2173
|
-
height:
|
|
2174
|
-
nearDepth:
|
|
2175
|
-
farDepth:
|
|
2176
|
-
categoryIndex:
|
|
2173
|
+
height: l.size,
|
|
2174
|
+
nearDepth: o.near,
|
|
2175
|
+
farDepth: o.far,
|
|
2176
|
+
categoryIndex: r,
|
|
2177
2177
|
seriesIndex: e,
|
|
2178
2178
|
color: h,
|
|
2179
|
-
fillPaint:
|
|
2180
|
-
lineFill:
|
|
2181
|
-
shape:
|
|
2179
|
+
fillPaint: m.fill,
|
|
2180
|
+
lineFill: m.lineFill,
|
|
2181
|
+
shape: C,
|
|
2182
2182
|
baseCoord: t,
|
|
2183
2183
|
endCoord: n,
|
|
2184
|
-
baseScale:
|
|
2185
|
-
endScale:
|
|
2184
|
+
baseScale: M,
|
|
2185
|
+
endScale: N,
|
|
2186
2186
|
omitBaseCap: !1,
|
|
2187
2187
|
omitEndCap: !1,
|
|
2188
|
-
outline:
|
|
2189
|
-
outlineColor:
|
|
2190
|
-
outlineWidth:
|
|
2191
|
-
outlineDash:
|
|
2192
|
-
outlineCustomDash:
|
|
2193
|
-
outlineCap:
|
|
2194
|
-
outlineJoin:
|
|
2195
|
-
labelValue:
|
|
2196
|
-
plottedLabelValue:
|
|
2188
|
+
outline: g,
|
|
2189
|
+
outlineColor: m.lineColor ?? "rgba(0,0,0,0.42)",
|
|
2190
|
+
outlineWidth: m.lineWidthEmu == null ? .75 * a / U : Tt(m.lineWidthEmu, a),
|
|
2191
|
+
outlineDash: m.lineDash ?? "solid",
|
|
2192
|
+
outlineCustomDash: m.lineCustomDash,
|
|
2193
|
+
outlineCap: m.lineCap,
|
|
2194
|
+
outlineJoin: m.lineJoin,
|
|
2195
|
+
labelValue: v ? d / 100 : d,
|
|
2196
|
+
plottedLabelValue: y
|
|
2197
2197
|
});
|
|
2198
2198
|
} else {
|
|
2199
|
-
let t =
|
|
2200
|
-
|
|
2199
|
+
let t = R.y + R.h - I.fraction(x) * R.h, n = R.y + R.h - I.fraction(S) * R.h, s = w ? b - 1 - r : r, c = R.x + s * p + l.offset;
|
|
2200
|
+
i.push({
|
|
2201
2201
|
x: c,
|
|
2202
2202
|
y: Math.min(t, n),
|
|
2203
|
-
width:
|
|
2203
|
+
width: l.size,
|
|
2204
2204
|
height: Math.abs(n - t),
|
|
2205
|
-
nearDepth:
|
|
2206
|
-
farDepth:
|
|
2207
|
-
categoryIndex:
|
|
2205
|
+
nearDepth: o.near,
|
|
2206
|
+
farDepth: o.far,
|
|
2207
|
+
categoryIndex: r,
|
|
2208
2208
|
seriesIndex: e,
|
|
2209
2209
|
color: h,
|
|
2210
|
-
fillPaint:
|
|
2211
|
-
lineFill:
|
|
2212
|
-
shape:
|
|
2210
|
+
fillPaint: m.fill,
|
|
2211
|
+
lineFill: m.lineFill,
|
|
2212
|
+
shape: C,
|
|
2213
2213
|
baseCoord: t,
|
|
2214
2214
|
endCoord: n,
|
|
2215
|
-
baseScale:
|
|
2216
|
-
endScale:
|
|
2215
|
+
baseScale: M,
|
|
2216
|
+
endScale: N,
|
|
2217
2217
|
omitBaseCap: !1,
|
|
2218
2218
|
omitEndCap: !1,
|
|
2219
|
-
outline:
|
|
2220
|
-
outlineColor:
|
|
2221
|
-
outlineWidth:
|
|
2222
|
-
outlineDash:
|
|
2223
|
-
outlineCustomDash:
|
|
2224
|
-
outlineCap:
|
|
2225
|
-
outlineJoin:
|
|
2226
|
-
labelValue:
|
|
2227
|
-
plottedLabelValue:
|
|
2219
|
+
outline: g,
|
|
2220
|
+
outlineColor: m.lineColor ?? "rgba(0,0,0,0.42)",
|
|
2221
|
+
outlineWidth: m.lineWidthEmu == null ? .75 * a / U : Tt(m.lineWidthEmu, a),
|
|
2222
|
+
outlineDash: m.lineDash ?? "solid",
|
|
2223
|
+
outlineCustomDash: m.lineCustomDash,
|
|
2224
|
+
outlineCap: m.lineCap,
|
|
2225
|
+
outlineJoin: m.lineJoin,
|
|
2226
|
+
labelValue: v ? d / 100 : d,
|
|
2227
|
+
plottedLabelValue: y
|
|
2228
2228
|
});
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
2232
|
-
if (
|
|
2233
|
-
let e = Et(
|
|
2234
|
-
for (let t = 0; t <
|
|
2232
|
+
if (u) {
|
|
2233
|
+
let e = Et(i, b);
|
|
2234
|
+
for (let t = 0; t < b; t++) {
|
|
2235
2235
|
let n = e[t];
|
|
2236
2236
|
for (let e of [-1, 1]) {
|
|
2237
2237
|
let t = n.filter((t) => Math.sign(t.labelValue) === e && !Bt(t.color) && Math.abs(t.endCoord - t.baseCoord) > 1e-9).sort((e, t) => e.seriesIndex - t.seriesIndex);
|
|
@@ -2247,70 +2247,70 @@ function kn(e, t, n, r, a) {
|
|
|
2247
2247
|
}
|
|
2248
2248
|
}
|
|
2249
2249
|
}
|
|
2250
|
-
bn(e, t,
|
|
2251
|
-
let
|
|
2250
|
+
bn(e, t, _, I, c ? "horizontal" : "vertical", b, T, w, a);
|
|
2251
|
+
let g = {
|
|
2252
2252
|
remaining: rt,
|
|
2253
2253
|
exceeded: !1
|
|
2254
|
-
},
|
|
2255
|
-
let n = Ut(
|
|
2254
|
+
}, y = i.map((t) => {
|
|
2255
|
+
let n = Ut(_, t.shape, c, 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 ? {
|
|
2256
2256
|
color: t.outlineColor,
|
|
2257
2257
|
width: t.outlineWidth,
|
|
2258
|
-
dash:
|
|
2258
|
+
dash: x(t.outlineCustomDash, t.outlineDash, t.outlineWidth),
|
|
2259
2259
|
cap: t.outlineCap,
|
|
2260
2260
|
join: t.outlineJoin
|
|
2261
|
-
} : void 0,
|
|
2262
|
-
return Jt(e, n, "fill", t.fillPaint,
|
|
2261
|
+
} : void 0, g);
|
|
2262
|
+
return Jt(e, n, "fill", t.fillPaint, o), Jt(e, n, "outline", t.lineFill, o), {
|
|
2263
2263
|
item: t,
|
|
2264
2264
|
faces: n
|
|
2265
2265
|
};
|
|
2266
|
-
}), S =
|
|
2267
|
-
if (
|
|
2266
|
+
}), S = y.flatMap((e) => e.faces);
|
|
2267
|
+
if (g.exceeded) return Yt(e, n), !0;
|
|
2268
2268
|
for (let t of nt(S)) Kt(e, t);
|
|
2269
|
-
for (let { item: n, faces:
|
|
2270
|
-
let
|
|
2271
|
-
|
|
2269
|
+
for (let { item: n, faces: r } of y) {
|
|
2270
|
+
let i = t.series[n.seriesIndex], o = G[n.seriesIndex].get(n.categoryIndex), s = Le(t, i, n.categoryIndex, n.seriesIndex), c = m(o?.chartexStyle), u = m(i.chartexStyle);
|
|
2271
|
+
xe(e, c ?? u, l(t, "dataPoint3D", n.seriesIndex), c ? n.categoryIndex : s, a, (e) => qt(e, r), s);
|
|
2272
2272
|
}
|
|
2273
|
-
for (let
|
|
2274
|
-
let
|
|
2275
|
-
nn(t,
|
|
2273
|
+
for (let r of i) {
|
|
2274
|
+
let i = t.series[r.seriesIndex], s = c ? _.project(r.endCoord, r.y + r.height / 2, (r.nearDepth + r.farDepth) / 2) : _.project(r.x + r.width / 2, r.endCoord, (r.nearDepth + r.farDepth) / 2), l = q[r.seriesIndex].get(r.categoryIndex);
|
|
2275
|
+
nn(t, i, l) && ee.push(() => tn(e, t, i, r.seriesIndex, r.categoryIndex, r.labelValue, s, n, a, 0, void 0, l, "t", s, !0, t.valAxisDisplayUnits, I.max, r.plottedLabelValue, o));
|
|
2276
2276
|
}
|
|
2277
2277
|
} else {
|
|
2278
|
-
let i = t.series.map(() => Array(
|
|
2279
|
-
if (
|
|
2280
|
-
let e = Array(
|
|
2281
|
-
for (let r = 0; r < t.series.length; r++) for (let t = 0; t <
|
|
2282
|
-
let a =
|
|
2283
|
-
i[r][t] =
|
|
2278
|
+
let i = t.series.map(() => Array(b).fill(0)), s = t.series.map(() => Array(b).fill(0));
|
|
2279
|
+
if (u) {
|
|
2280
|
+
let e = Array(b).fill(0), n = Array(b).fill(0);
|
|
2281
|
+
for (let r = 0; r < t.series.length; r++) for (let t = 0; t < b; t++) {
|
|
2282
|
+
let a = k(r, t), o = a >= 0 ? e[t] : n[t];
|
|
2283
|
+
i[r][t] = o, s[r][t] = jt(o, a), a >= 0 ? e[t] = jt(e[t], a) : n[t] = jt(n[t], a);
|
|
2284
2284
|
}
|
|
2285
2285
|
}
|
|
2286
|
-
let
|
|
2287
|
-
let t =
|
|
2288
|
-
for (let
|
|
2289
|
-
if (!
|
|
2290
|
-
let
|
|
2291
|
-
n +=
|
|
2286
|
+
let c = (e) => {
|
|
2287
|
+
let t = _.seriesDepth(e, z, u), n = 0, i = 0;
|
|
2288
|
+
for (let a = 0; a < b; a++) {
|
|
2289
|
+
if (!O(e, a)) continue;
|
|
2290
|
+
let o = u ? s[e][a] : k(e, a), c = R.x + r(a, b, T, w) * R.w, l = R.y + R.h - I.fraction(L(o)) * R.h;
|
|
2291
|
+
n += _.cameraDepth(c, l, t), i++;
|
|
2292
2292
|
}
|
|
2293
|
-
return
|
|
2294
|
-
}, l = t.series.map((e, t) => t).sort((e, t) =>
|
|
2295
|
-
for (let
|
|
2296
|
-
if (
|
|
2297
|
-
let l = t.series[
|
|
2298
|
-
for (let e = 0; e <
|
|
2299
|
-
if (!
|
|
2300
|
-
|
|
2293
|
+
return i > 0 ? n / i : -Infinity;
|
|
2294
|
+
}, l = t.series.map((e, t) => t).sort((e, t) => c(e) - c(t) || t - e), d = t.series.map((e, n) => $(t, e, void 0, n, n)), f = [], p = [], m = !1;
|
|
2295
|
+
for (let c of l) {
|
|
2296
|
+
if (m) break;
|
|
2297
|
+
let l = t.series[c], h = d[c], g = h.fill === null ? "transparent" : h.color, y = u ? _.prismInterval(0, 1, !0) : _.prismInterval(c, z, !1), S = R.x + R.w / 2, D = R.y + R.h / 2, A = _.cameraDepth(S, D, y.near) >= _.cameraDepth(S, D, y.far) ? y.near : y.far, j = [], M = [], N = [], P = [], F = [], L = [], B = [], H = [], U = [], K = [];
|
|
2298
|
+
for (let e = 0; e < b; e++) {
|
|
2299
|
+
if (!O(c, e)) {
|
|
2300
|
+
j.push(null), M.push(null), N.push(null), P.push(null), F.push(null), L.push(null), B.push(null), H.push(null), U.push(null), K.push(null);
|
|
2301
2301
|
continue;
|
|
2302
2302
|
}
|
|
2303
|
-
let n =
|
|
2304
|
-
|
|
2303
|
+
let n = u ? s[c][e] : k(c, e), a = u ? i[c][e] : 0, o = R.x + r(e, b, T, w) * R.w, l = I.fraction(n), d = I.fraction(a), f = Number.isFinite(d) ? d : a <= I.min ? 0 : 1, p = Number.isFinite(l) && l >= 0 && l <= 1, m = Number.isFinite(l) ? Math.max(0, Math.min(1, l)) : n <= I.min ? 0 : 1, h = R.y + R.h - m * R.h, g = R.y + R.h - Math.max(0, Math.min(1, f)) * R.h;
|
|
2304
|
+
j.push(t.chartType.toLowerCase().includes("area") || p ? _.project(o, h, A) : null), M.push(_.project(o, g, A)), N.push(p ? _.cameraDepth(o, h, A) : null), P.push(_.cameraDepth(o, g, A)), F.push(n), L.push(o), B.push(h), H.push(g), U.push(l), K.push(f);
|
|
2305
2305
|
}
|
|
2306
|
-
let
|
|
2307
|
-
for (let e = 0; e <
|
|
2308
|
-
let t =
|
|
2306
|
+
let ne = [], J = null;
|
|
2307
|
+
for (let e = 0; e < j.length; e++) {
|
|
2308
|
+
let t = j[e], n = M[e];
|
|
2309
2309
|
if (!t || !n) {
|
|
2310
|
-
|
|
2310
|
+
E === "gap" && (J && ne.push(J), J = null);
|
|
2311
2311
|
continue;
|
|
2312
2312
|
}
|
|
2313
|
-
|
|
2313
|
+
J ??= {
|
|
2314
2314
|
upper: [],
|
|
2315
2315
|
lower: [],
|
|
2316
2316
|
upperDepths: [],
|
|
@@ -2321,74 +2321,74 @@ function kn(e, t, n, r, a) {
|
|
|
2321
2321
|
lowerYs: [],
|
|
2322
2322
|
upperFractions: [],
|
|
2323
2323
|
lowerFractions: []
|
|
2324
|
-
},
|
|
2324
|
+
}, J.upper.push(t), J.lower.push(n), J.upperDepths.push(N[e] ?? 0), J.lowerDepths.push(P[e] ?? 0), J.indices.push(e), J.sceneXs.push(L[e] ?? 0), J.upperYs.push(B[e] ?? 0), J.lowerYs.push(H[e] ?? 0), J.upperFractions.push(U[e] ?? 0), J.lowerFractions.push(K[e] ?? 0);
|
|
2325
2325
|
}
|
|
2326
|
-
|
|
2327
|
-
let
|
|
2326
|
+
J && ne.push(J);
|
|
2327
|
+
let Y = [], X = [];
|
|
2328
2328
|
if (t.chartType.toLowerCase().includes("area")) {
|
|
2329
|
-
for (let t of
|
|
2329
|
+
for (let t of ne) {
|
|
2330
2330
|
let n = null;
|
|
2331
2331
|
for (let r = 0; r + 1 < t.upper.length; r++) {
|
|
2332
2332
|
let i = Xe(t.lowerFractions[r], t.lowerFractions[r + 1], t.upperFractions[r], t.upperFractions[r + 1]);
|
|
2333
2333
|
for (let a = 0; a < i.length; a++) {
|
|
2334
|
-
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 =
|
|
2335
|
-
...
|
|
2336
|
-
cameraDepth:
|
|
2337
|
-
cameraWeight:
|
|
2338
|
-
},
|
|
2339
|
-
...
|
|
2340
|
-
cameraDepth:
|
|
2341
|
-
cameraWeight:
|
|
2334
|
+
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 = R.y + R.h - o.lowerStart * R.h, u = R.y + R.h - o.lowerEnd * R.h, d = R.y + R.h - o.upperStart * R.h, p = R.y + R.h - o.upperEnd * R.h, h = {
|
|
2335
|
+
..._.project(s, d, A),
|
|
2336
|
+
cameraDepth: _.cameraDepth(s, d, A),
|
|
2337
|
+
cameraWeight: _.cameraProjectionWeight(s, d, A)
|
|
2338
|
+
}, v = {
|
|
2339
|
+
..._.project(c, p, A),
|
|
2340
|
+
cameraDepth: _.cameraDepth(c, p, A),
|
|
2341
|
+
cameraWeight: _.cameraProjectionWeight(c, p, A)
|
|
2342
2342
|
};
|
|
2343
|
-
n != null && Math.hypot(n.at(-1).x -
|
|
2344
|
-
let
|
|
2345
|
-
for (let t of
|
|
2346
|
-
if (
|
|
2347
|
-
|
|
2343
|
+
n != null && Math.hypot(n.at(-1).x - h.x, n.at(-1).y - h.y) <= 1e-8 ? n.push(v) : (n && n.length >= 2 && Y.push(n), n = [h, v]);
|
|
2344
|
+
let b = Ht(_, s, c, l, u, d, p, y.near, y.far, g, r === 0 && a === 0 && o.startT === 0, r + 2 === t.upper.length && a + 1 === i.length && o.endT === 1);
|
|
2345
|
+
for (let t of b) {
|
|
2346
|
+
if (f.length >= 1e4) {
|
|
2347
|
+
m = !0;
|
|
2348
2348
|
break;
|
|
2349
2349
|
}
|
|
2350
|
-
|
|
2350
|
+
f.push({
|
|
2351
2351
|
points: t.points,
|
|
2352
2352
|
cameraDepth: t.cameraDepth,
|
|
2353
2353
|
cameraDepths: t.cameraDepths,
|
|
2354
2354
|
cameraWeights: t.cameraWeights,
|
|
2355
2355
|
layer: 0,
|
|
2356
2356
|
paint: () => Kt(e, t)
|
|
2357
|
-
}),
|
|
2357
|
+
}), X.push(t);
|
|
2358
2358
|
}
|
|
2359
|
-
if (
|
|
2359
|
+
if (m) break;
|
|
2360
2360
|
}
|
|
2361
|
-
if (
|
|
2361
|
+
if (m) break;
|
|
2362
2362
|
}
|
|
2363
|
-
if (n && n.length >= 2 &&
|
|
2363
|
+
if (n && n.length >= 2 && Y.push(n), m) break;
|
|
2364
2364
|
}
|
|
2365
|
-
Jt(e,
|
|
2365
|
+
Jt(e, X, "fill", h.fill, o);
|
|
2366
2366
|
}
|
|
2367
|
-
let
|
|
2367
|
+
let re = [];
|
|
2368
2368
|
if (!t.chartType.toLowerCase().includes("area")) {
|
|
2369
2369
|
let e = [], t = null;
|
|
2370
|
-
for (let n = 0; n <
|
|
2371
|
-
let
|
|
2372
|
-
if (
|
|
2373
|
-
|
|
2370
|
+
for (let n = 0; n < b; n++) {
|
|
2371
|
+
let i = F[n], a = i == null ? NaN : I.fraction(i);
|
|
2372
|
+
if (i == null || !Number.isFinite(a)) {
|
|
2373
|
+
E === "gap" && t && (e.push(t), t = null);
|
|
2374
2374
|
continue;
|
|
2375
2375
|
}
|
|
2376
2376
|
t ??= [], t.push({
|
|
2377
|
-
x:
|
|
2378
|
-
fraction:
|
|
2377
|
+
x: R.x + r(n, b, T, w) * R.w,
|
|
2378
|
+
fraction: a,
|
|
2379
2379
|
ownerIndex: n
|
|
2380
2380
|
});
|
|
2381
2381
|
}
|
|
2382
2382
|
t && e.push(t);
|
|
2383
2383
|
let n = (e) => {
|
|
2384
|
-
let t = Math.max(0, Math.min(1, e.fraction)), n =
|
|
2384
|
+
let t = Math.max(0, Math.min(1, e.fraction)), n = R.y + R.h - t * R.h;
|
|
2385
2385
|
return {
|
|
2386
|
-
...
|
|
2387
|
-
cameraDepth:
|
|
2388
|
-
cameraWeight:
|
|
2386
|
+
..._.project(e.x, n, A),
|
|
2387
|
+
cameraDepth: _.cameraDepth(e.x, n, A),
|
|
2388
|
+
cameraWeight: _.cameraProjectionWeight(e.x, n, A)
|
|
2389
2389
|
};
|
|
2390
|
-
},
|
|
2391
|
-
e && e.path.length >= 2 &&
|
|
2390
|
+
}, i = (e) => {
|
|
2391
|
+
e && e.path.length >= 2 && re.push(e);
|
|
2392
2392
|
};
|
|
2393
2393
|
for (let t of e) {
|
|
2394
2394
|
if (t.length < 2) continue;
|
|
@@ -2415,82 +2415,82 @@ function kn(e, t, n, r, a) {
|
|
|
2415
2415
|
});
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
|
-
let
|
|
2418
|
+
let r = null, a = 0;
|
|
2419
2419
|
for (let t = 0; t + 1 < e.length; t++) {
|
|
2420
|
-
let o = e[t], s = e[t + 1], c = (e) =>
|
|
2421
|
-
if (!
|
|
2422
|
-
r
|
|
2420
|
+
let o = e[t], s = e[t + 1], c = (e) => _.project(e.x, R.y + R.h - e.fraction * R.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) * R.h), p = Ye(o.fraction, s.fraction);
|
|
2421
|
+
if (!p || p.endT - p.startT <= 1e-12) {
|
|
2422
|
+
i(r), r = null, a += f;
|
|
2423
2423
|
continue;
|
|
2424
2424
|
}
|
|
2425
|
-
let
|
|
2425
|
+
let m = (e) => ({
|
|
2426
2426
|
x: o.x + (s.x - o.x) * e,
|
|
2427
2427
|
fraction: o.fraction + (s.fraction - o.fraction) * e,
|
|
2428
2428
|
ownerIndex: s.ownerIndex
|
|
2429
|
-
}),
|
|
2429
|
+
}), h = c(m(p.startT)), g = Math.hypot(h.x - l.x, h.y - l.y), v = n(m(p.startT)), y = n(m(p.endT)), b = m(p.startT), x = m(p.endT), S = (e) => ({
|
|
2430
2430
|
x: e.x,
|
|
2431
|
-
y:
|
|
2431
|
+
y: R.y + R.h - Math.max(0, Math.min(1, e.fraction)) * R.h
|
|
2432
2432
|
});
|
|
2433
|
-
|
|
2433
|
+
r != null && Math.hypot(r.path.at(-1).x - v.x, r.path.at(-1).y - v.y) <= 1e-8 && r.ownerIndex === s.ownerIndex ? (r.path.push(y), r.modelPath.push(S(x)), r.endClipped = t + 1 < e.length - 1 || p.endT < 1) : (i(r), r = {
|
|
2434
2434
|
path: [v, y],
|
|
2435
2435
|
modelPath: [S(b), S(x)],
|
|
2436
2436
|
ownerIndex: s.ownerIndex,
|
|
2437
|
-
startClipped: t > 0 ||
|
|
2438
|
-
endClipped: t + 1 < e.length - 1 ||
|
|
2439
|
-
dashOffset: a + (Number.isFinite(
|
|
2437
|
+
startClipped: t > 0 || p.startT > 0,
|
|
2438
|
+
endClipped: t + 1 < e.length - 1 || p.endT < 1,
|
|
2439
|
+
dashOffset: a + (Number.isFinite(g) ? g : f * p.startT)
|
|
2440
2440
|
}), a += f;
|
|
2441
2441
|
}
|
|
2442
|
-
r
|
|
2442
|
+
i(r);
|
|
2443
2443
|
}
|
|
2444
2444
|
}
|
|
2445
|
-
let
|
|
2446
|
-
if (!
|
|
2447
|
-
let n = /* @__PURE__ */ new Map(),
|
|
2448
|
-
let r =
|
|
2449
|
-
if (!Pt(r)) return
|
|
2445
|
+
let Z = t.chartType.toLowerCase().includes("area"), ie = 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 || h.lineColor != null || h.lineFill !== void 0;
|
|
2446
|
+
if (!Z || h.lineFill !== null && ie) {
|
|
2447
|
+
let n = /* @__PURE__ */ new Map(), r = (e) => {
|
|
2448
|
+
let r = G[c].get(e);
|
|
2449
|
+
if (!Pt(r)) return h;
|
|
2450
2450
|
let i = n.get(e);
|
|
2451
|
-
return i || (i = $(t, l, r, e,
|
|
2452
|
-
},
|
|
2451
|
+
return i || (i = $(t, l, r, e, c), n.set(e, i)), i;
|
|
2452
|
+
}, i = /* @__PURE__ */ new Map(), s = {
|
|
2453
2453
|
remaining: rt,
|
|
2454
2454
|
exceeded: !1
|
|
2455
|
-
}, u = (t, n,
|
|
2455
|
+
}, u = (t, n, r, o = r, c = 0, l) => {
|
|
2456
2456
|
if (n.lineFill === null) return;
|
|
2457
|
-
let u = n ===
|
|
2458
|
-
width:
|
|
2459
|
-
dash:
|
|
2460
|
-
dashOffset:
|
|
2457
|
+
let u = n === h ? g : n.color, d = n.lineColor ?? Ne(u, .7), p = n.lineWidthEmu ? Math.max(.5, n.lineWidthEmu / W) * a : Z ? .75 * a : Math.max(1, 2 * a), v = {
|
|
2458
|
+
width: p,
|
|
2459
|
+
dash: x(n.lineCustomDash, n.lineDash, p),
|
|
2460
|
+
dashOffset: c,
|
|
2461
2461
|
lineCap: n.lineCap,
|
|
2462
|
-
startCap:
|
|
2463
|
-
endCap:
|
|
2462
|
+
startCap: r,
|
|
2463
|
+
endCap: o,
|
|
2464
2464
|
lineJoin: n.lineJoin
|
|
2465
2465
|
};
|
|
2466
|
-
if (!
|
|
2466
|
+
if (!Z && l && l.length >= 2) {
|
|
2467
2467
|
let t = dt(l.map((e) => ({
|
|
2468
2468
|
...e,
|
|
2469
2469
|
cameraDepth: 0,
|
|
2470
2470
|
cameraWeight: 1
|
|
2471
|
-
})),
|
|
2471
|
+
})), v);
|
|
2472
2472
|
if (t == null) {
|
|
2473
|
-
|
|
2473
|
+
m = !0;
|
|
2474
2474
|
return;
|
|
2475
2475
|
}
|
|
2476
|
-
let r =
|
|
2476
|
+
let r = i.get(n) ?? [];
|
|
2477
2477
|
for (let n of t) {
|
|
2478
2478
|
let t = qe({
|
|
2479
2479
|
outline: n.points,
|
|
2480
|
-
nearDepth:
|
|
2481
|
-
farDepth:
|
|
2480
|
+
nearDepth: y.near,
|
|
2481
|
+
farDepth: y.far
|
|
2482
2482
|
});
|
|
2483
2483
|
if (!t) continue;
|
|
2484
|
-
let i = Wt(
|
|
2484
|
+
let i = Wt(_, t, d, void 0, s).map((e) => ({
|
|
2485
2485
|
...e,
|
|
2486
2486
|
paintRole: "outline"
|
|
2487
2487
|
}));
|
|
2488
|
-
if (
|
|
2489
|
-
|
|
2488
|
+
if (s.exceeded) {
|
|
2489
|
+
m = !0;
|
|
2490
2490
|
return;
|
|
2491
2491
|
}
|
|
2492
2492
|
r.push(...i);
|
|
2493
|
-
for (let t of i)
|
|
2493
|
+
for (let t of i) f.push({
|
|
2494
2494
|
points: t.points,
|
|
2495
2495
|
cameraDepth: t.cameraDepth,
|
|
2496
2496
|
cameraDepths: t.cameraDepths,
|
|
@@ -2499,30 +2499,30 @@ function kn(e, t, n, r, a) {
|
|
|
2499
2499
|
paint: () => Kt(e, t)
|
|
2500
2500
|
});
|
|
2501
2501
|
}
|
|
2502
|
-
|
|
2502
|
+
i.set(n, r);
|
|
2503
2503
|
return;
|
|
2504
2504
|
}
|
|
2505
|
-
let
|
|
2506
|
-
if (
|
|
2507
|
-
|
|
2505
|
+
let b = dt(t, v);
|
|
2506
|
+
if (b == null) {
|
|
2507
|
+
m = !0;
|
|
2508
2508
|
return;
|
|
2509
2509
|
}
|
|
2510
|
-
if (
|
|
2511
|
-
|
|
2510
|
+
if (f.length + b.length > 1e4) {
|
|
2511
|
+
m = !0;
|
|
2512
2512
|
return;
|
|
2513
2513
|
}
|
|
2514
|
-
for (let t of
|
|
2514
|
+
for (let t of b) {
|
|
2515
2515
|
let r = {
|
|
2516
2516
|
points: t.points,
|
|
2517
|
-
color:
|
|
2517
|
+
color: d,
|
|
2518
2518
|
paintRole: "outline",
|
|
2519
2519
|
shade: 0,
|
|
2520
2520
|
cameraDepth: t.cameraDepth,
|
|
2521
2521
|
cameraDepths: t.cameraDepths,
|
|
2522
2522
|
cameraWeights: t.cameraWeights,
|
|
2523
2523
|
outline: !1
|
|
2524
|
-
},
|
|
2525
|
-
|
|
2524
|
+
}, a = i.get(n) ?? [];
|
|
2525
|
+
a.push(r), i.set(n, a), f.push({
|
|
2526
2526
|
points: t.points,
|
|
2527
2527
|
cameraDepth: t.cameraDepth,
|
|
2528
2528
|
cameraDepths: t.cameraDepths,
|
|
@@ -2532,89 +2532,89 @@ function kn(e, t, n, r, a) {
|
|
|
2532
2532
|
});
|
|
2533
2533
|
}
|
|
2534
2534
|
};
|
|
2535
|
-
if (
|
|
2536
|
-
else for (let e of
|
|
2537
|
-
let t =
|
|
2535
|
+
if (Z) for (let e of Y) u(e, h, h.lineCap);
|
|
2536
|
+
else for (let e of re) {
|
|
2537
|
+
let t = r(e.ownerIndex);
|
|
2538
2538
|
u(e.path, t, e.startClipped ? "butt" : t.lineCap, e.endClipped ? "butt" : t.lineCap, e.dashOffset, e.modelPath);
|
|
2539
2539
|
}
|
|
2540
|
-
for (let [t, n] of
|
|
2540
|
+
for (let [t, n] of i) Jt(e, n, "outline", t.lineFill, o);
|
|
2541
2541
|
}
|
|
2542
|
-
let
|
|
2543
|
-
if ((t.chartType.toLowerCase().includes("line") ||
|
|
2544
|
-
let
|
|
2545
|
-
if (!
|
|
2546
|
-
let
|
|
2547
|
-
if (
|
|
2548
|
-
let u =
|
|
2549
|
-
|
|
2542
|
+
let ae = (Z ? l.showMarker === !0 || C(l) : l.showMarker === !0) && l.markerSymbol !== "none";
|
|
2543
|
+
if ((t.chartType.toLowerCase().includes("line") || Z) && (ae || V(l))) for (let n = 0; n < j.length; n++) {
|
|
2544
|
+
let r = j[n];
|
|
2545
|
+
if (!r) continue;
|
|
2546
|
+
let i = G[c].get(n), s = te(l, i, "circle", ae);
|
|
2547
|
+
if (s === "none") continue;
|
|
2548
|
+
let u = i?.markerSize ?? l.markerSize ?? 5, d = ln(t, l, i, n, c, l.color ?? xt[c % xt.length], a);
|
|
2549
|
+
p.push(() => en(e, r, s, Math.max(2, u) * a, d.fill === "00000000" ? "transparent" : `#${d.fill.replace(/^#/, "")}`, d.line === "00000000" ? "rgba(0,0,0,0)" : `#${d.line.replace(/^#/, "")}`, d.lineWidth, d.fillPaint, o, a, d.effectDirect, d.effectFallback, d.effectIndex, d.effectFallbackIndex, d.linePaint, d.lineDash, d.lineCustomDash, d.lineCap, d.lineJoin));
|
|
2550
2550
|
}
|
|
2551
|
-
for (let
|
|
2552
|
-
let
|
|
2553
|
-
if (!
|
|
2554
|
-
let d =
|
|
2555
|
-
nn(t, l,
|
|
2551
|
+
for (let r = 0; r < j.length; r++) {
|
|
2552
|
+
let i = j[r];
|
|
2553
|
+
if (!i) continue;
|
|
2554
|
+
let d = k(c, r), f = G[c].get(r), p = f?.markerSize ?? l.markerSize ?? 5, m = q[c].get(r);
|
|
2555
|
+
nn(t, l, m) && ee.push(() => tn(e, t, l, c, r, v ? d / 100 : d, i, n, a, l.showMarker === !0 || f?.markerSymbol != null ? p * a / 2 : 0, void 0, m, "t", i, !0, t.valAxisDisplayUnits, I.max, u ? s[c][r] : d, o));
|
|
2556
2556
|
}
|
|
2557
2557
|
}
|
|
2558
|
-
if (
|
|
2559
|
-
for (let e of nt(
|
|
2560
|
-
for (let e of
|
|
2561
|
-
}
|
|
2562
|
-
xn(e, t,
|
|
2563
|
-
let
|
|
2564
|
-
if (t !== "low" && t !== "high") return
|
|
2565
|
-
let n =
|
|
2566
|
-
if (e === "value" ===
|
|
2567
|
-
let e =
|
|
2558
|
+
if (m) return Yt(e, n), !0;
|
|
2559
|
+
for (let e of nt(f)) e.paint();
|
|
2560
|
+
for (let e of p) e();
|
|
2561
|
+
}
|
|
2562
|
+
xn(e, t, _, I, b, T, w, a, c ? "horizontal" : "vertical"), On(e, t, _, I, b, T, w, c ? "horizontal" : "vertical", s, a), cn(e, t, n, _, I, b, T, w, c ? "horizontal" : "vertical", s, a);
|
|
2563
|
+
let ne = Dn(t, _, I, b, T, w, c ? "horizontal" : "vertical"), J = (e, t) => {
|
|
2564
|
+
if (t !== "low" && t !== "high") return ne;
|
|
2565
|
+
let n = _.topology.nearDepth, r = ne.axisX, i = ne.axisY;
|
|
2566
|
+
if (e === "value" === c) {
|
|
2567
|
+
let e = R.y, r = R.y + R.h, a = _.project(R.x + R.w / 2, e, n), o = _.project(R.x + R.w / 2, r, n), s = a.y >= o.y ? e : r;
|
|
2568
2568
|
i = t === "low" ? s : s === e ? r : e;
|
|
2569
2569
|
} else {
|
|
2570
|
-
let e =
|
|
2570
|
+
let e = R.x, i = R.x + R.w, a = _.project(e, R.y + R.h / 2, n), o = _.project(i, R.y + R.h / 2, n), s = a.x <= o.x ? e : i;
|
|
2571
2571
|
r = t === "low" ? s : s === e ? i : e;
|
|
2572
2572
|
}
|
|
2573
2573
|
return {
|
|
2574
2574
|
axisX: r,
|
|
2575
2575
|
axisY: i,
|
|
2576
2576
|
depth: n,
|
|
2577
|
-
horizontalStart:
|
|
2578
|
-
horizontalEnd:
|
|
2579
|
-
verticalStart:
|
|
2580
|
-
verticalEnd:
|
|
2577
|
+
horizontalStart: _.project(R.x, i, n),
|
|
2578
|
+
horizontalEnd: _.project(R.x + R.w, i, n),
|
|
2579
|
+
verticalStart: _.project(r, R.y + R.h, n),
|
|
2580
|
+
verticalEnd: _.project(r, R.y, n)
|
|
2581
2581
|
};
|
|
2582
|
-
},
|
|
2583
|
-
if (e.font = `${t.valAxisFontItalic ? "italic " : ""}${t.valAxisFontBold ? "bold " : ""}${
|
|
2584
|
-
let { axisX: n, axisY:
|
|
2582
|
+
}, Y = J("value", t.valAxisTickLabelPos), X = J("category", t.catAxisTickLabelPos), re = H(t.valAxisFontSizeHpt, a) ?? 9 * a;
|
|
2583
|
+
if (e.font = `${t.valAxisFontItalic ? "italic " : ""}${t.valAxisFontBold ? "bold " : ""}${re}px ${Lt(t, t.valAxisFontFace)}`, e.fillStyle = t.valAxisFontColor ? `#${t.valAxisFontColor}` : "#595959", e.textAlign = c ? "center" : "right", e.textBaseline = c ? "top" : "middle", !t.valAxisHidden && t.valAxisTickLabelPos !== "none") {
|
|
2584
|
+
let { axisX: n, axisY: r, depth: o } = Y, s = _.project(R.x + R.w / 2, R.y + R.h / 2, o), l = Sn(c ? Y.horizontalStart : Y.verticalStart, c ? Y.horizontalEnd : Y.verticalEnd, s, c ? "vertical" : "horizontal");
|
|
2585
2585
|
e.textAlign = Math.abs(l.x) < .2 ? "center" : l.x < 0 ? "right" : "left", e.textBaseline = Math.abs(l.y) < .2 ? "middle" : l.y < 0 ? "bottom" : "top";
|
|
2586
|
-
let u = En(t.valAxisMajorTickMark, t.valAxisLineHidden,
|
|
2587
|
-
for (let
|
|
2588
|
-
let
|
|
2589
|
-
|
|
2586
|
+
let u = En(t.valAxisMajorTickMark, t.valAxisLineHidden, a, 5), d = t.valAxisDisplayUnits?.divisor;
|
|
2587
|
+
for (let a of I.majorTicks) {
|
|
2588
|
+
let s = c ? _.project(R.x + I.fraction(a) * R.w, r, o) : _.project(n, R.y + R.h - I.fraction(a) * R.h, o);
|
|
2589
|
+
B(e, i(v ? a / 100 : d != null && Number.isFinite(d) && d > 0 ? a / d : a, v ? t.valAxisFormatCode ?? "0%" : t.valAxisFormatCode, t.date1904), s.x + l.x * u, s.y + l.y * u, K(re));
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
|
-
let
|
|
2593
|
-
if (e.font = `${t.catAxisFontItalic ? "italic " : ""}${t.catAxisFontBold ? "bold " : ""}${
|
|
2594
|
-
let n =
|
|
2595
|
-
if (
|
|
2596
|
-
let t = Infinity, n = null,
|
|
2597
|
-
for (let e = 0; e <
|
|
2598
|
-
let i =
|
|
2599
|
-
n && (t = Math.min(t, Math.hypot(
|
|
2592
|
+
let Z = H(t.catAxisFontSizeHpt, a) ?? 9 * a;
|
|
2593
|
+
if (e.font = `${t.catAxisFontItalic ? "italic " : ""}${t.catAxisFontBold ? "bold " : ""}${Z}px ${Lt(t, t.catAxisFontFace)}`, e.fillStyle = t.catAxisFontColor ? `#${t.catAxisFontColor}` : "#595959", !t.catAxisHidden && t.catAxisTickLabelPos !== "none") {
|
|
2594
|
+
let n = me(En(t.catAxisMajorTickMark, t.catAxisLineHidden, a, 6), t.catAxisLabelOffsetPercent), i = Array.from({ length: b }, (e, n) => he(String(y[n] ?? n + 1), t.catAxisFormatCode, t.date1904)), o = Xt(t);
|
|
2595
|
+
if (o == null && (o = 0, !c && b > 1)) {
|
|
2596
|
+
let t = Infinity, n = null, a = X.axisY;
|
|
2597
|
+
for (let e = 0; e < b; e++) {
|
|
2598
|
+
let i = r(e, b, T, w), o = _.project(R.x + i * R.w, a, _.topology.nearDepth);
|
|
2599
|
+
n && (t = Math.min(t, Math.hypot(o.x - n.x, o.y - n.y))), n = o;
|
|
2600
2600
|
}
|
|
2601
|
-
Math.max(0, ...i.map((t) =>
|
|
2601
|
+
Math.max(0, ...i.map((t) => M(e, t))) > t * .9 && (o = -Math.PI / 4);
|
|
2602
2602
|
}
|
|
2603
|
-
let
|
|
2604
|
-
for (let t = 0; t <
|
|
2605
|
-
let
|
|
2606
|
-
if (
|
|
2607
|
-
let r =
|
|
2608
|
-
e.textAlign =
|
|
2603
|
+
let s = Math.max(1, Math.floor(t.catAxisTickLabelSkip ?? 1));
|
|
2604
|
+
for (let t = 0; t < b; t += s) {
|
|
2605
|
+
let a = r(t, b, T, w), { axisX: s, axisY: l, depth: u } = X, d = c ? _.project(s, R.y + r(t, b, T, w) * R.h, u) : _.project(R.x + a * R.w, l, u);
|
|
2606
|
+
if (c) {
|
|
2607
|
+
let r = _.project(s, R.y + R.h / 2, u), a = _.project(R.x + R.w / 2, R.y + R.h / 2, u), o = r.x <= a.x;
|
|
2608
|
+
e.textAlign = o ? "right" : "left", e.textBaseline = "middle", B(e, i[t], d.x + (o ? -n : n), d.y, K(Z));
|
|
2609
2609
|
} else {
|
|
2610
|
-
let r =
|
|
2611
|
-
$t(e, i[t],
|
|
2610
|
+
let r = _.project(R.x + R.w / 2, R.y + R.h / 2, u), a = Sn(X.horizontalStart, X.horizontalEnd, r, "vertical");
|
|
2611
|
+
$t(e, i[t], d, o, c, a.y < 0 ? -1 : 1, n, K(Z));
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
2614
|
}
|
|
2615
|
-
sn(e, t, n,
|
|
2615
|
+
sn(e, t, n, f, c, a);
|
|
2616
2616
|
for (let e of ee) e();
|
|
2617
|
-
return fn(e, t,
|
|
2617
|
+
return fn(e, t, p, a, !1, h, o), !0;
|
|
2618
2618
|
}
|
|
2619
2619
|
function An(e, t, n, r, i) {
|
|
2620
2620
|
if (!t.threeD || t.chartType !== "pie") return !1;
|
|
@@ -2628,38 +2628,38 @@ function An(e, t, n, r, i) {
|
|
|
2628
2628
|
if (!(s > 0)) return !0;
|
|
2629
2629
|
let c = o.reduce((e, t) => e + t.value / s, 0);
|
|
2630
2630
|
if (!(c > 0) || !Number.isFinite(c)) return !0;
|
|
2631
|
-
let { plot:
|
|
2631
|
+
let { plot: u, legend: d, legendMeasure: f } = rn(e, t, n, r, "radial", i), p = Te({
|
|
2632
2632
|
...t.threeD,
|
|
2633
2633
|
rotationY: t.threeD.rotationY ?? 0,
|
|
2634
2634
|
heightPercent: void 0,
|
|
2635
2635
|
depthPercent: 100
|
|
2636
|
-
},
|
|
2636
|
+
}, u, {
|
|
2637
2637
|
sceneDepthScale: 1,
|
|
2638
2638
|
sceneHeightScale: .15
|
|
2639
2639
|
});
|
|
2640
|
-
if (!
|
|
2641
|
-
let
|
|
2642
|
-
for (let e of
|
|
2643
|
-
let { scene:
|
|
2644
|
-
if (!(
|
|
2645
|
-
let
|
|
2640
|
+
if (!p) return !0;
|
|
2641
|
+
let h = new Map(a.dataPointOverrides?.map((e) => [e.idx, e]) ?? []), g = 0;
|
|
2642
|
+
for (let e of h.values()) e.explosion != null && Number.isFinite(e.explosion) && (g = Math.max(g, Math.max(0, Math.min(100, e.explosion)) / 100));
|
|
2643
|
+
let { scene: _ } = p, v = Math.min(_.w * .45 / (1 + g), p.modelDepth * .45 / (1 + g), _.h / .45);
|
|
2644
|
+
if (!(v > 0)) return !0;
|
|
2645
|
+
let y = _.x + _.w / 2, b = _.y + _.h / 2, S = .5, C = v * .3 * Ae(t.threeD), w = 0, T = [], E = new Map(a.dataLabelOverrides?.map((e) => [e.idx, e]) ?? []), D = Math.max(48, Math.min(128, Math.ceil(Math.PI * 2 * v / 4)));
|
|
2646
2646
|
for (let e of o) {
|
|
2647
|
-
let n = e.value / s / c, r = mn(t.firstSliceAngle,
|
|
2647
|
+
let n = e.value / s / c, r = mn(t.firstSliceAngle, w, n), i = h.get(e.index), o = $(t, a, i, e.index, 0), l = r.middle, u = i?.explosion != null && Number.isFinite(i.explosion) ? Math.max(0, Math.min(100, i.explosion)) / 100 : 0, d = y + Math.cos(l) * v * u, f = S + Math.sin(l) * v * u / p.modelDepth, m = Math.max(2, Math.ceil(D * n)), g = Je({
|
|
2648
2648
|
centerX: d,
|
|
2649
|
-
centerY:
|
|
2650
|
-
centerDepth:
|
|
2651
|
-
radius:
|
|
2652
|
-
modelDepth:
|
|
2653
|
-
thickness:
|
|
2649
|
+
centerY: b,
|
|
2650
|
+
centerDepth: f,
|
|
2651
|
+
radius: v,
|
|
2652
|
+
modelDepth: p.modelDepth,
|
|
2653
|
+
thickness: C,
|
|
2654
2654
|
startAngle: r.start,
|
|
2655
2655
|
endAngle: r.end,
|
|
2656
|
-
segments:
|
|
2656
|
+
segments: m
|
|
2657
2657
|
});
|
|
2658
2658
|
if (!g) {
|
|
2659
|
-
|
|
2659
|
+
w += n;
|
|
2660
2660
|
continue;
|
|
2661
2661
|
}
|
|
2662
|
-
|
|
2662
|
+
T.push({
|
|
2663
2663
|
index: e.index,
|
|
2664
2664
|
start: r.start,
|
|
2665
2665
|
end: r.end,
|
|
@@ -2668,8 +2668,8 @@ function An(e, t, n, r, i) {
|
|
|
2668
2668
|
value: e.value,
|
|
2669
2669
|
percentValue: n,
|
|
2670
2670
|
centerX: d,
|
|
2671
|
-
centerDepth:
|
|
2672
|
-
segments:
|
|
2671
|
+
centerDepth: f,
|
|
2672
|
+
segments: m,
|
|
2673
2673
|
mesh: g,
|
|
2674
2674
|
lineColor: o.lineColor,
|
|
2675
2675
|
lineFill: o.lineFill,
|
|
@@ -2678,56 +2678,56 @@ function An(e, t, n, r, i) {
|
|
|
2678
2678
|
lineCustomDash: o.lineCustomDash,
|
|
2679
2679
|
lineCap: o.lineCap,
|
|
2680
2680
|
lineJoin: o.lineJoin
|
|
2681
|
-
}),
|
|
2681
|
+
}), w += n;
|
|
2682
2682
|
}
|
|
2683
|
-
|
|
2684
|
-
let
|
|
2683
|
+
p = Me(p, T.flatMap((e) => e.mesh.vertices), u, .08);
|
|
2684
|
+
let O = [], k = {
|
|
2685
2685
|
remaining: rt,
|
|
2686
2686
|
exceeded: !1
|
|
2687
|
-
},
|
|
2688
|
-
let t = e.lineWidthEmu == null ? .75 * r : Math.max(.25, e.lineWidthEmu /
|
|
2687
|
+
}, A = (e) => {
|
|
2688
|
+
let t = e.lineWidthEmu == null ? .75 * r : Math.max(.25, e.lineWidthEmu / W * r);
|
|
2689
2689
|
return e.lineFill !== null && (e.lineColor != null || e.lineFill !== void 0) ? {
|
|
2690
2690
|
color: e.lineColor ?? "rgba(0,0,0,0.42)",
|
|
2691
2691
|
width: t,
|
|
2692
|
-
dash:
|
|
2692
|
+
dash: x(e.lineCustomDash, e.lineDash, t),
|
|
2693
2693
|
cap: e.lineCap,
|
|
2694
2694
|
join: e.lineJoin
|
|
2695
2695
|
} : void 0;
|
|
2696
|
-
},
|
|
2697
|
-
let n = Wt(
|
|
2696
|
+
}, j = T.map((t) => {
|
|
2697
|
+
let n = Wt(p, t.mesh, t.color, void 0, k);
|
|
2698
2698
|
return Jt(e, n, "fill", t.fillPaint, i), {
|
|
2699
2699
|
slice: t,
|
|
2700
2700
|
faces: n
|
|
2701
2701
|
};
|
|
2702
|
-
}),
|
|
2702
|
+
}), M = j.flatMap((e) => e.faces), P = [], F = T.map(A), I = F[0], L = (e) => e == null ? null : [
|
|
2703
2703
|
e.color,
|
|
2704
2704
|
e.width,
|
|
2705
2705
|
e.dash.join(","),
|
|
2706
2706
|
e.cap,
|
|
2707
2707
|
e.join
|
|
2708
|
-
].join("|"),
|
|
2709
|
-
if (
|
|
2710
|
-
else for (let t = 0; t <
|
|
2711
|
-
let n =
|
|
2708
|
+
].join("|"), R = I != null && T.every((e) => e.lineFill === void 0) && F.every((e) => L(e) === L(I)) && T.every((e) => Math.abs(e.centerX - y) < 1e-9 && Math.abs(e.centerDepth - S) < 1e-9);
|
|
2709
|
+
if (R) P.push(...Gt(p, T, b, v, C, I, k));
|
|
2710
|
+
else for (let t = 0; t < T.length; t++) {
|
|
2711
|
+
let n = F[t];
|
|
2712
2712
|
if (!n) continue;
|
|
2713
|
-
let r = Wt(
|
|
2714
|
-
Jt(e, r, "outline",
|
|
2713
|
+
let r = Wt(p, T[t].mesh, "transparent", n, k, !0);
|
|
2714
|
+
Jt(e, r, "outline", T[t].lineFill, i), P.push(...r);
|
|
2715
2715
|
}
|
|
2716
|
-
if (
|
|
2717
|
-
if (
|
|
2718
|
-
for (let t of nt(A)) Kt(e, t);
|
|
2716
|
+
if (k.exceeded) return Yt(e, n), !0;
|
|
2717
|
+
if (R) {
|
|
2719
2718
|
for (let t of nt(M)) Kt(e, t);
|
|
2720
|
-
|
|
2721
|
-
for (let
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2719
|
+
for (let t of nt(P)) Kt(e, t);
|
|
2720
|
+
} else for (let t of nt([...M, ...P])) Kt(e, t);
|
|
2721
|
+
for (let { slice: n, faces: i } of j) {
|
|
2722
|
+
let o = h.get(n.index), s = Le(t, a, n.index, 0), c = m(o?.chartexStyle);
|
|
2723
|
+
xe(e, c ?? m(a.chartexStyle), l(t, "dataPoint3D", 0), c ? n.index : s, r, (e) => qt(e, i), s);
|
|
2724
|
+
}
|
|
2725
|
+
for (let n of T) {
|
|
2726
|
+
let o = (n.start + n.end) / 2, s = E.get(n.index);
|
|
2727
2727
|
if (nn(t, a, s)) {
|
|
2728
|
-
let c = a.seriesDataLabels,
|
|
2729
|
-
e.font = `${s?.fontBold ?? c?.fontBold ?? t.dataLabelFontBold ? "bold " : ""}${
|
|
2730
|
-
let d =
|
|
2728
|
+
let c = a.seriesDataLabels, l = H(s?.fontSizeHpt ?? c?.fontSizeHpt ?? t.dataLabelFontSizeHpt, r) ?? 9 * r;
|
|
2729
|
+
e.font = `${s?.fontBold ?? c?.fontBold ?? t.dataLabelFontBold ? "bold " : ""}${l}px ${Rt(t, s?.fontFace ?? c?.fontFace ?? t.dataLabelFontFace)}`;
|
|
2730
|
+
let d = N({
|
|
2731
2731
|
customText: s?.text,
|
|
2732
2732
|
showCategory: s?.showCatName ?? c?.showCatName ?? !1,
|
|
2733
2733
|
showSeries: s?.showSerName ?? c?.showSerName ?? !1,
|
|
@@ -2740,37 +2740,37 @@ function An(e, t, n, r, i) {
|
|
|
2740
2740
|
formatCode: s?.formatCode ?? c?.formatCode ?? t.dataLabelFormatCode ?? a.valFormatCode,
|
|
2741
2741
|
separator: s?.separator ?? c?.separator,
|
|
2742
2742
|
date1904: t.date1904
|
|
2743
|
-
}),
|
|
2743
|
+
}), f = Rt(t, s?.fontFace ?? c?.fontFace ?? t.dataLabelFontFace), m = s?.text && s.richRuns?.length ? Fe(e, {
|
|
2744
2744
|
runs: s.richRuns,
|
|
2745
2745
|
ptToPx: r,
|
|
2746
|
-
fontFamily:
|
|
2746
|
+
fontFamily: f,
|
|
2747
2747
|
fallbackBold: s.fontBold ?? c?.fontBold ?? t.dataLabelFontBold ?? !1,
|
|
2748
2748
|
fontFamilyForFace: (e) => Rt(t, e)
|
|
2749
|
-
},
|
|
2749
|
+
}, l, `#${s.fontColor ?? c?.fontColor ?? a.labelColor ?? t.dataLabelFontColor ?? "111111"}`) : null, h = s?.position ?? c?.position ?? t.dataLabelPosition, g = b - C / 2, _ = b + C / 2, y = p.cameraDepth(n.centerX, g, n.centerDepth) >= p.cameraDepth(n.centerX, _, n.centerDepth) ? g : _, x = 0, S = null;
|
|
2750
2750
|
for (let e = 0; e <= 12; e++) {
|
|
2751
|
-
let t = n.start + (n.end - n.start) * e / 12, r =
|
|
2752
|
-
|
|
2751
|
+
let t = n.start + (n.end - n.start) * e / 12, r = p.project(n.centerX + Math.cos(t) * v * .64, y, n.centerDepth + Math.sin(t) * v * .64 / p.modelDepth);
|
|
2752
|
+
S && (x += Math.hypot(r.x - S.x, r.y - S.y)), S = r;
|
|
2753
2753
|
}
|
|
2754
|
-
let w = (h == null || h === "bestFit") && (n.percentValue === 0 ||
|
|
2755
|
-
|
|
2754
|
+
let w = (h == null || h === "bestFit") && (n.percentValue === 0 || x < (m?.width ?? e.measureText(d).width)) || h === "outEnd", T = v * (w ? 1.12 : .64), E = p.project(n.centerX + Math.cos(o) * T, y, n.centerDepth + Math.sin(o) * T / p.modelDepth), D = p.project(n.centerX + Math.cos(o) * v, y, n.centerDepth + Math.sin(o) * v / p.modelDepth);
|
|
2755
|
+
O.push(() => tn(e, t, a, 0, n.index, n.value, E, u, r, 0, n.percentValue, s, "ctr", D, w, void 0, void 0, void 0, i));
|
|
2756
2756
|
}
|
|
2757
2757
|
}
|
|
2758
|
-
for (let e of
|
|
2759
|
-
let
|
|
2760
|
-
let r =
|
|
2758
|
+
for (let e of O) e();
|
|
2759
|
+
let z = a.categories?.length ? a.categories : t.categories, B = Array.from({ length: z.length }, (e, n) => {
|
|
2760
|
+
let r = h.get(n), i = Re(t, a, r, n, 0);
|
|
2761
2761
|
if (i === null) return "00000000";
|
|
2762
2762
|
let o = i?.fillType === "solid" ? i.color : r?.color ?? a.dataPointColors?.[n] ?? a.color;
|
|
2763
2763
|
return o === "00000000" ? "00000000" : Ne(o ? `#${o}` : Dt(n), .8).replace(/^#/, "");
|
|
2764
2764
|
});
|
|
2765
2765
|
return fn(e, {
|
|
2766
2766
|
...t,
|
|
2767
|
-
categories:
|
|
2767
|
+
categories: z,
|
|
2768
2768
|
series: [{
|
|
2769
2769
|
...a,
|
|
2770
|
-
categories:
|
|
2771
|
-
dataPointColors:
|
|
2770
|
+
categories: z,
|
|
2771
|
+
dataPointColors: B
|
|
2772
2772
|
}]
|
|
2773
|
-
},
|
|
2773
|
+
}, d, r, !0, f, i), !0;
|
|
2774
2774
|
}
|
|
2775
2775
|
function jn(e, t, n, r, i = 0) {
|
|
2776
2776
|
return !t.threeD || !(t.chartType === "pie" || wt.has(t.chartType)) ? !1 : Mt(t) ? An(e, t, n, r, i) ? !0 : kn(e, t, n, r, i) : (Yt(e, n), !0);
|