vue-data-ui 3.25.2 → 3.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
- package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
- package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
- package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
- package/dist/vue-ui-donut-BfehCl28.js +0 -2413
- package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
- package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
- package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
- package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
- package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
- package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
- package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
- package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
- package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
- package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
- package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
- package/dist/vue-ui-table-CftOhYTO.js +0 -1352
- package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { A as e, B as t, G as n, H as r, Ht as i, I as a,
|
|
1
|
+
import { A as e, B as t, G as n, H as r, Ht as i, I as a, L as o, Lt as s, N as c, P as l, S as u, U as d, Ut as f, V as p, Wt as m, X as h, Yt as g, Zt as _, _ as v, bt as y, c as b, ft as x, i as S, k as C, l as ee, o as te, q as ne, rt as w, t as T, v as E } from "./lib-Dql7cqyA.js";
|
|
2
2
|
import { t as D } from "./useTimeLabels-d2f-W1L4.js";
|
|
3
3
|
import { t as O } from "./useConfig-CyCVHo81.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import { _ as k, d as A, f as j, g as M, h as N, l as
|
|
4
|
+
import { t as re } from "./vue_ui_xy-BA3-_LCx.js";
|
|
5
|
+
import { _ as k, d as A, f as j, g as M, h as N, l as ie, m as ae, p as P, u as F, v as I } from "./render-common-zoPh9a78.js";
|
|
6
6
|
//#region src/svg/vue-ui-xy/create.js
|
|
7
|
-
var { vue_ui_xy:
|
|
8
|
-
function
|
|
7
|
+
var { vue_ui_xy: L } = O();
|
|
8
|
+
function oe({ config: e = {}, dataset: t = [] } = {}) {
|
|
9
9
|
let n = e ?? {}, r = _({
|
|
10
10
|
userConfig: n,
|
|
11
|
-
defaultConfig:
|
|
11
|
+
defaultConfig: L
|
|
12
12
|
});
|
|
13
|
-
|
|
14
|
-
defaultConfig:
|
|
13
|
+
y(n, "chart.highlightArea") && (Array.isArray(n.chart.highlightArea) ? r.chart.highlightArea = n.chart.highlightArea.map((e) => _({
|
|
14
|
+
defaultConfig: L.chart.highlightArea,
|
|
15
15
|
userConfig: e
|
|
16
16
|
})) : r.chart.highlightArea = [_({
|
|
17
|
-
defaultConfig:
|
|
17
|
+
defaultConfig: L.chart.highlightArea,
|
|
18
18
|
userConfig: n.chart.highlightArea
|
|
19
|
-
})]),
|
|
20
|
-
defaultConfig:
|
|
19
|
+
})]), y(n, "chart.annotations") && Array.isArray(n.chart.annotations) && n.chart.annotations.length ? r.chart.annotations = n.chart.annotations.map((e) => _({
|
|
20
|
+
defaultConfig: L.chart.annotations[0],
|
|
21
21
|
userConfig: e
|
|
22
|
-
})) : r.chart.annotations = [],
|
|
22
|
+
})) : r.chart.annotations = [], y(n, "chart.grid.position") && n.chart.grid.position === "start" && t.some((e) => e.type === "bar") && (r.chart.grid.position = "middle");
|
|
23
23
|
let i = r.theme;
|
|
24
24
|
if (!i) return {
|
|
25
25
|
...r,
|
|
26
|
-
customPalette: r.customPalette?.length ? r.customPalette :
|
|
26
|
+
customPalette: r.customPalette?.length ? r.customPalette : s
|
|
27
27
|
};
|
|
28
28
|
let a = _({
|
|
29
|
-
userConfig:
|
|
29
|
+
userConfig: re[i] || {},
|
|
30
30
|
defaultConfig: r
|
|
31
|
-
}),
|
|
31
|
+
}), o = _({
|
|
32
32
|
userConfig: n,
|
|
33
33
|
defaultConfig: a
|
|
34
34
|
});
|
|
35
35
|
return {
|
|
36
|
-
...
|
|
37
|
-
customPalette:
|
|
36
|
+
...o,
|
|
37
|
+
customPalette: o.customPalette?.length ? o.customPalette : g[i] || s
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function R(e) {
|
|
41
41
|
return e && typeof e == "object" && Number.isFinite(Number(e.x)) && Number.isFinite(Number(e.y));
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function se(e) {
|
|
44
44
|
return e != null && Number.isFinite(Number(e));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return e.flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(
|
|
46
|
+
function ce(e) {
|
|
47
|
+
return e.flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(R).map((e) => Number(e.x));
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let n =
|
|
49
|
+
function le({ dataset: e, config: t }) {
|
|
50
|
+
let n = ce(e);
|
|
51
51
|
if (!n.length) return {
|
|
52
52
|
min: 0,
|
|
53
53
|
max: 1,
|
|
54
54
|
ticks: [0, 1]
|
|
55
55
|
};
|
|
56
|
-
let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a =
|
|
56
|
+
let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a = se(r) ? Number(r) : Math.min(...n), o = se(i) ? Number(i) : Math.max(...n), s = a === o ? a - 1 : a, c = a === o ? o + 1 : o, l = Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps)) ? Number(t.chart.grid.labels.xAxis.scaleSteps) : 6;
|
|
57
57
|
return v(s, c, l);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function ue({ xValue: e, xScale: t, drawingArea: n, config: r }) {
|
|
60
60
|
let i = (Number(e) - t.min) / (t.max - t.min || 1), a = r?.chart?.grid?.labels?.xAxis?.reverse ? 1 - i : i;
|
|
61
61
|
return n.left + n.width * a;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
let c =
|
|
63
|
+
function de({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600, selectedXIndex: i, additionalSvgContent: a = "", svgTitle: o = "" } = {}) {
|
|
64
|
+
let c = oe({
|
|
65
65
|
config: t,
|
|
66
66
|
dataset: e
|
|
67
67
|
}), l = {
|
|
@@ -71,10 +71,10 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
|
|
|
71
71
|
bottom: r - c.chart.padding.bottom
|
|
72
72
|
};
|
|
73
73
|
l.width = l.right - l.left, l.height = l.bottom - l.top;
|
|
74
|
-
let
|
|
74
|
+
let d = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), f = Math.min(0, ...d), p = Math.max(1, ...d), m = v(f, p, 6), h = e.some((e) => Array.isArray(e.series) ? e.series.some(R) : !1), g = h ? le({
|
|
75
75
|
dataset: e,
|
|
76
76
|
config: c
|
|
77
|
-
}) : null, _ = Math.max(0, ...e.map((e) => e.series?.length || 0)), y = (e) => _ <= 1 ? l.left + l.width / 2 : l.left + e / (_ - 1) * l.width, b = (e, t) => h ?
|
|
77
|
+
}) : null, _ = Math.max(0, ...e.map((e) => e.series?.length || 0)), y = (e) => _ <= 1 ? l.left + l.width / 2 : l.left + e / (_ - 1) * l.width, b = (e, t) => h ? R(e) ? ue({
|
|
78
78
|
xValue: e.x,
|
|
79
79
|
xScale: g,
|
|
80
80
|
drawingArea: l,
|
|
@@ -82,7 +82,7 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
|
|
|
82
82
|
}) : null : y(t), x = (e) => {
|
|
83
83
|
let t = (Number(e) - m.min) / (m.max - m.min || 1);
|
|
84
84
|
return l.bottom - t * l.height;
|
|
85
|
-
}, S = Array.isArray(c.customPalette) ? c.customPalette : [], C = S.length ? S :
|
|
85
|
+
}, S = Array.isArray(c.customPalette) ? c.customPalette : [], C = S.length ? S : s;
|
|
86
86
|
return {
|
|
87
87
|
width: n,
|
|
88
88
|
height: r,
|
|
@@ -94,14 +94,14 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
|
|
|
94
94
|
xScale: g,
|
|
95
95
|
isContinuous: h,
|
|
96
96
|
series: e.map((e, t) => {
|
|
97
|
-
let n = (e.color ?
|
|
97
|
+
let n = (e.color ? u(e.color) : "") || C[t % C.length], r = (e.series || []).map((e, t) => {
|
|
98
98
|
let n = e == null ? null : typeof e == "object" ? e.y ?? null : Number(e);
|
|
99
99
|
return {
|
|
100
100
|
x: b(e, t),
|
|
101
101
|
y: n === null || !Number.isFinite(Number(n)) ? null : x(n),
|
|
102
102
|
value: n,
|
|
103
103
|
index: t,
|
|
104
|
-
rawX:
|
|
104
|
+
rawX: R(e) ? Number(e.x) : null,
|
|
105
105
|
label: e?.name ?? e?.x ?? String(t)
|
|
106
106
|
};
|
|
107
107
|
});
|
|
@@ -113,28 +113,28 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
|
|
|
113
113
|
};
|
|
114
114
|
}),
|
|
115
115
|
additionalSvgContent: a,
|
|
116
|
-
svgTitle:
|
|
116
|
+
svgTitle: o
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
//#endregion
|
|
120
120
|
//#region src/svg/vue-ui-xy/render.js
|
|
121
|
-
function
|
|
122
|
-
return !!
|
|
121
|
+
function z(e) {
|
|
122
|
+
return !!P(e, "chart.grid.labels.yAxis.useIndividualScale", !1);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function B(e) {
|
|
125
125
|
return String(e.scaleLabel ?? e.id ?? e.name ?? "");
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
return k(
|
|
127
|
+
function V(e) {
|
|
128
|
+
return k(P(e, "chart.grid.labels.yAxis.labelWidth", 40), 40) + 36;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function fe(e) {
|
|
131
131
|
return M(e).flatMap((e) => M(e.plots)).map((e) => e?.value === null || e?.value === void 0 ? null : Number(e.value)).filter(Number.isFinite);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
let r =
|
|
135
|
-
return !r.length && !X(i) && !X(a) ? t :
|
|
133
|
+
function pe(e, t, n) {
|
|
134
|
+
let r = fe(n), i = P(e, "chart.grid.labels.yAxis.scaleMin", null), a = P(e, "chart.grid.labels.yAxis.scaleMax", null), o = X(i) ? Number(i) : Math.min(0, ...r), s = X(a) ? Number(a) : Math.max(1, ...r), c = k(P(e, "chart.grid.labels.yAxis.commonScaleSteps", 6), 6);
|
|
135
|
+
return !r.length && !X(i) && !X(a) ? t : ke(e, o, s === o ? o + 1 : s, c);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function me(e, t) {
|
|
138
138
|
let { drawingArea: n } = e, r = k(t.__yOffset, 0), i = k(t.__individualHeight, n.height);
|
|
139
139
|
return {
|
|
140
140
|
top: n.bottom - r - i,
|
|
@@ -142,118 +142,118 @@ function pe(e, t) {
|
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
function H(e, t, n, r) {
|
|
145
|
-
let i =
|
|
145
|
+
let i = me(e, t), a = Math.min(n.y, r), o = Math.max(n.y, r), s = Math.max(i.top, a), c = Math.min(i.bottom, o);
|
|
146
146
|
return {
|
|
147
147
|
y: s,
|
|
148
148
|
height: Math.max(1e-5, c - s)
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function he(e, t) {
|
|
152
152
|
let n = {};
|
|
153
153
|
return M(t).forEach((t, r) => {
|
|
154
|
-
let i =
|
|
154
|
+
let i = B(t) || `serie_${r}`, a = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite);
|
|
155
155
|
n[i] || (n[i] = {
|
|
156
156
|
scaleLabel: i,
|
|
157
157
|
name: t.name ?? i,
|
|
158
|
-
color:
|
|
158
|
+
color: P(e, "chart.grid.labels.yAxis.groupColor", null) || t.color,
|
|
159
159
|
series: [],
|
|
160
160
|
values: []
|
|
161
161
|
}), n[i].series.push(t), n[i].values.push(...a);
|
|
162
162
|
}), Object.values(n).forEach((t) => {
|
|
163
|
-
t.scale =
|
|
163
|
+
t.scale = Ae(e, {
|
|
164
164
|
...t.series[0],
|
|
165
165
|
plots: t.series.flatMap((e) => M(e.plots))
|
|
166
166
|
});
|
|
167
167
|
}), n;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
return !i && !a ? r : n[
|
|
169
|
+
function ge(e, t, n, r, i, a) {
|
|
170
|
+
return !i && !a ? r : n[B(t)]?.scale ?? Ae(e, t);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function _e(e) {
|
|
173
173
|
return e === "bar" || e === "line" || e === "plot" ? e : "line";
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function ve(e) {
|
|
176
176
|
return M(e.series).map((e) => ({
|
|
177
177
|
...e,
|
|
178
|
-
type:
|
|
179
|
-
plots: M(e.plots).filter((e) => e &&
|
|
178
|
+
type: _e(e.type),
|
|
179
|
+
plots: M(e.plots).filter((e) => e && ae(e.x))
|
|
180
180
|
}));
|
|
181
181
|
}
|
|
182
182
|
function U(e) {
|
|
183
183
|
let { drawingArea: t, scale: n } = e, r = (0 - n.min) / (n.max - n.min || 1);
|
|
184
184
|
return t.bottom - r * t.height;
|
|
185
185
|
}
|
|
186
|
-
var
|
|
186
|
+
var ye = ne();
|
|
187
187
|
function W(e) {
|
|
188
|
-
return
|
|
188
|
+
return ye;
|
|
189
189
|
}
|
|
190
190
|
function G(e, t, n) {
|
|
191
191
|
return `rectGradient_${n}_${t}_${W(e)}`;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function be(e, t) {
|
|
194
194
|
return `lineGradient_${t}_${W(e)}`;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function xe(e, t) {
|
|
197
197
|
return `temperature_grad_line_${t}_${W(e)}`;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
return t.temperatureColors && !t.isFlatTemperatureLine ? `url(#${
|
|
199
|
+
function Se(e, t, n) {
|
|
200
|
+
return t.temperatureColors && !t.isFlatTemperatureLine ? `url(#${xe(e, n)})` : t.color;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Ce(e, t) {
|
|
203
203
|
return `plotGradient_${t}_${W(e)}`;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function we(e, t, n) {
|
|
206
206
|
let { config: r } = e;
|
|
207
|
-
return
|
|
207
|
+
return P(r, "line.useGradient", !1) ? `url(#${be(e, n)})` : P(r, "line.dot.useSerieColor", !0) ? t.color : P(r, "line.dot.fill", "#FFFFFF");
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Te(e, t, n) {
|
|
210
210
|
let { config: r } = e;
|
|
211
|
-
return
|
|
211
|
+
return P(r, "line.area.useGradient", !1) ? `url(#${it(e, n)})` : f(t.color, k(P(r, "line.area.opacity", 30), 30));
|
|
212
212
|
}
|
|
213
213
|
function K(e, t, n, r) {
|
|
214
|
-
return
|
|
214
|
+
return P(e.config, "bar.useGradient", !1) ? r >= 0 ? `url(#${G(e, n, "pos")})` : `url(#${G(e, n, "neg")})` : t.color;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Ee(e, t) {
|
|
217
217
|
let { config: n } = e, r = [];
|
|
218
|
-
return
|
|
219
|
-
r.push(
|
|
218
|
+
return P(n, "bar.useGradient", !1) && t.filter((e) => e.type === "bar").forEach((t, n) => {
|
|
219
|
+
r.push(F("linearGradient", {
|
|
220
220
|
id: G(e, n, "pos"),
|
|
221
221
|
x2: "0%",
|
|
222
222
|
y2: "100%"
|
|
223
223
|
}, [
|
|
224
224
|
A("stop", {
|
|
225
225
|
offset: "0%",
|
|
226
|
-
"stop-color":
|
|
226
|
+
"stop-color": u(t.color)
|
|
227
227
|
}),
|
|
228
228
|
A("stop", {
|
|
229
229
|
offset: "62%",
|
|
230
|
-
"stop-color":
|
|
230
|
+
"stop-color": m(u(t.color), .02)
|
|
231
231
|
}),
|
|
232
232
|
A("stop", {
|
|
233
233
|
offset: "100%",
|
|
234
|
-
"stop-color":
|
|
234
|
+
"stop-color": m(u(t.color), .05)
|
|
235
235
|
})
|
|
236
|
-
].join(""))), r.push(
|
|
236
|
+
].join(""))), r.push(F("linearGradient", {
|
|
237
237
|
id: G(e, n, "neg"),
|
|
238
238
|
x2: "0%",
|
|
239
239
|
y2: "100%"
|
|
240
240
|
}, [
|
|
241
241
|
A("stop", {
|
|
242
242
|
offset: "0%",
|
|
243
|
-
"stop-color":
|
|
243
|
+
"stop-color": m(u(t.color), .05)
|
|
244
244
|
}),
|
|
245
245
|
A("stop", {
|
|
246
246
|
offset: "38%",
|
|
247
|
-
"stop-color":
|
|
247
|
+
"stop-color": m(u(t.color), .02)
|
|
248
248
|
}),
|
|
249
249
|
A("stop", {
|
|
250
250
|
offset: "100%",
|
|
251
|
-
"stop-color":
|
|
251
|
+
"stop-color": u(t.color)
|
|
252
252
|
})
|
|
253
253
|
].join("")));
|
|
254
|
-
}), t.filter((e) => e.type === "line").forEach((t,
|
|
255
|
-
|
|
256
|
-
id:
|
|
254
|
+
}), t.filter((e) => e.type === "line").forEach((t, a) => {
|
|
255
|
+
P(n, "line.useGradient", !1) && r.push(F("radialGradient", {
|
|
256
|
+
id: be(e, a),
|
|
257
257
|
cx: "50%",
|
|
258
258
|
cy: "50%",
|
|
259
259
|
r: "50%",
|
|
@@ -261,20 +261,20 @@ function Te(e, t) {
|
|
|
261
261
|
fy: "50%"
|
|
262
262
|
}, [A("stop", {
|
|
263
263
|
offset: "0%",
|
|
264
|
-
"stop-color":
|
|
264
|
+
"stop-color": m(u(t.color), .05)
|
|
265
265
|
}), A("stop", {
|
|
266
266
|
offset: "100%",
|
|
267
|
-
"stop-color":
|
|
268
|
-
})].join(""))), t.temperatureColors && !t.isFlatTemperatureLine && r.push(
|
|
269
|
-
id:
|
|
267
|
+
"stop-color": u(t.color)
|
|
268
|
+
})].join(""))), t.temperatureColors && !t.isFlatTemperatureLine && r.push(F("linearGradient", {
|
|
269
|
+
id: xe(e, a),
|
|
270
270
|
gradientTransform: "rotate(90)"
|
|
271
271
|
}, t.temperatureColors.map((e, n) => A("stop", {
|
|
272
|
-
offset:
|
|
273
|
-
"stop-color":
|
|
272
|
+
offset: i(n, t.temperatureColors.length),
|
|
273
|
+
"stop-color": u(e)
|
|
274
274
|
})).join("")));
|
|
275
275
|
}), t.filter((e) => e.type === "plot").forEach((t, i) => {
|
|
276
|
-
|
|
277
|
-
id:
|
|
276
|
+
P(n, "plot.useGradient", !1) && r.push(F("radialGradient", {
|
|
277
|
+
id: Ce(e, i),
|
|
278
278
|
cx: "50%",
|
|
279
279
|
cy: "50%",
|
|
280
280
|
r: "50%",
|
|
@@ -282,15 +282,15 @@ function Te(e, t) {
|
|
|
282
282
|
fy: "50%"
|
|
283
283
|
}, [A("stop", {
|
|
284
284
|
offset: "0%",
|
|
285
|
-
"stop-color":
|
|
285
|
+
"stop-color": m(u(t.color), .05)
|
|
286
286
|
}), A("stop", {
|
|
287
287
|
offset: "100%",
|
|
288
|
-
"stop-color":
|
|
288
|
+
"stop-color": u(t.color)
|
|
289
289
|
})].join("")));
|
|
290
|
-
}), r.length ?
|
|
290
|
+
}), r.length ? F("defs", { "data-layer": "gradients" }, r.join("")) : "";
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
let t =
|
|
292
|
+
function De(e) {
|
|
293
|
+
let t = P(e.config, "chart.backgroundColor", "#FFFFFF");
|
|
294
294
|
return A("rect", {
|
|
295
295
|
width: e.width,
|
|
296
296
|
height: e.height,
|
|
@@ -299,40 +299,40 @@ function Ee(e) {
|
|
|
299
299
|
}
|
|
300
300
|
function q(e) {
|
|
301
301
|
return {
|
|
302
|
-
dataLabels: k(
|
|
303
|
-
xAxis: k(
|
|
304
|
-
yAxis: k(
|
|
302
|
+
dataLabels: k(P(e, "chart.grid.labels.fontSize", 12), 12),
|
|
303
|
+
xAxis: k(P(e, "chart.grid.labels.xAxisLabels.fontSize", 12), 12),
|
|
304
|
+
yAxis: k(P(e, "chart.grid.labels.axis.fontSize", 12), 12)
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
307
|
function J(e) {
|
|
308
|
-
return
|
|
308
|
+
return P(e, "chart.grid.labels.yAxis.position", "left") === "right";
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
let n =
|
|
312
|
-
p:
|
|
310
|
+
function Oe(e, t) {
|
|
311
|
+
let n = h({
|
|
312
|
+
p: P(t, "chart.labels.prefix", ""),
|
|
313
313
|
v: e,
|
|
314
|
-
s:
|
|
315
|
-
r:
|
|
314
|
+
s: P(t, "chart.labels.suffix", ""),
|
|
315
|
+
r: P(t, "chart.grid.labels.yAxis.rounding", 0)
|
|
316
316
|
});
|
|
317
|
-
return
|
|
317
|
+
return S(P(t, "chart.grid.labels.yAxis.formatter", null), e, n, t);
|
|
318
318
|
}
|
|
319
319
|
function Y(e) {
|
|
320
|
-
return !!
|
|
320
|
+
return !!P(e, "chart.grid.labels.yAxis.stacked", !1);
|
|
321
321
|
}
|
|
322
322
|
function X(e) {
|
|
323
323
|
return e != null && Number.isFinite(Number(e));
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
return
|
|
325
|
+
function ke(e, t, n, r) {
|
|
326
|
+
return P(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? v(t, n, r) : E(t, n, r);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
let n = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite), r =
|
|
330
|
-
return
|
|
328
|
+
function Ae(e, t) {
|
|
329
|
+
let n = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite), r = P(e, "chart.grid.labels.yAxis.scaleMin", null), i = P(e, "chart.grid.labels.yAxis.scaleMax", null), a = X(r) ? Number(r) : X(t.scaleMin) ? Number(t.scaleMin) : Math.min(0, ...n), o = X(i) ? Number(i) : X(t.scaleMax) ? Number(t.scaleMax) : Math.max(1, ...n);
|
|
330
|
+
return ke(e, a, o === a ? a + 1 : o, k(t.scaleSteps ?? P(e, "chart.grid.labels.yAxis.commonScaleSteps", 6), 6));
|
|
331
331
|
}
|
|
332
|
-
function
|
|
333
|
-
let r = q(e), i = Y(e), a =
|
|
332
|
+
function je(e, t, n = []) {
|
|
333
|
+
let r = q(e), i = Y(e), a = z(e), o = V(e);
|
|
334
334
|
if (a && !i) {
|
|
335
|
-
let t = Object.keys(
|
|
335
|
+
let t = Object.keys(he(e, n)).length;
|
|
336
336
|
return {
|
|
337
337
|
left: J(e) ? 0 : t * o,
|
|
338
338
|
right: J(e) ? t * o : 0,
|
|
@@ -346,7 +346,7 @@ function Ae(e, t, n = []) {
|
|
|
346
346
|
scaleLabelsOffset: o,
|
|
347
347
|
yAxisLabelWidth: 0
|
|
348
348
|
};
|
|
349
|
-
let s = (i ? n.flatMap((t) =>
|
|
349
|
+
let s = (i ? n.flatMap((t) => Ae(e, t).ticks) : M(t.ticks)).reduce((t, n) => Math.max(t, j(Oe(n, e), r.dataLabels)), 0), c = P(e, "chart.grid.labels.axis.yLabel", "") ? r.yAxis * 2 + 24 + k(P(e, "chart.grid.labels.axis.yLabelOffsetX", 0), 0) + r.yAxis : 0, l = s + k(P(e, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0) + k(P(e, "chart.grid.labels.yAxis.crosshairSize", 0), 0);
|
|
350
350
|
return {
|
|
351
351
|
left: J(e) ? 0 : l + c,
|
|
352
352
|
right: J(e) ? l + c : 0,
|
|
@@ -354,46 +354,46 @@ function Ae(e, t, n = []) {
|
|
|
354
354
|
yAxisLabelWidth: c
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Me(e, t) {
|
|
358
358
|
let { config: n, scale: r, width: i, height: a } = e, o = q(n);
|
|
359
359
|
e.drawingArea;
|
|
360
|
-
let s =
|
|
360
|
+
let s = je(n, r, t), c = P(n, "chart.legend.position", "bottom"), l = P(n, "chart.legend.show", !0), u = l ? nt({
|
|
361
361
|
...e,
|
|
362
362
|
width: i,
|
|
363
363
|
height: a
|
|
364
|
-
}, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p =
|
|
364
|
+
}, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = P(n, "chart.grid.labels.axis.xLabel", ""), m = P(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, g = _t(n) + k(P(n, "chart.labels.fontSize", 12), 12) * 1.1, _ = k(P(n, "chart.padding.top", 12), 12), v = k(P(n, "chart.padding.right", 12), 12), y = k(P(n, "chart.padding.bottom", 12), 12), b = k(P(n, "chart.padding.left", 12), 12), x = k(P(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), S = k(P(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left, ee = s.right, ne = i - C - ee - 6 - b - v, w = {
|
|
365
365
|
top: _ + g + d,
|
|
366
|
-
right:
|
|
366
|
+
right: C + (J(n) ? 0 : S) + b + ne,
|
|
367
367
|
bottom: a - h - y - x - f,
|
|
368
|
-
left:
|
|
369
|
-
width: Math.max(1,
|
|
368
|
+
left: C + (J(n) ? 0 : S) + b,
|
|
369
|
+
width: Math.max(1, ne),
|
|
370
370
|
height: 1,
|
|
371
|
-
scaleLabelX:
|
|
371
|
+
scaleLabelX: C,
|
|
372
372
|
rightScaleLabelX: ee,
|
|
373
373
|
scaleLabelsOffset: s.scaleLabelsOffset,
|
|
374
374
|
yAxisLabelWidth: s.yAxisLabelWidth,
|
|
375
375
|
individualOffsetX: 36
|
|
376
376
|
};
|
|
377
|
-
|
|
378
|
-
let
|
|
379
|
-
function
|
|
377
|
+
w.height = Math.max(1, w.bottom - w.top);
|
|
378
|
+
let T = Y(n), E = T ? te(t) : t, D = Math.max(1, E.length), O = T ? k(P(n, "chart.grid.labels.yAxis.gap", 12), 12) : 0, re = O * Math.max(0, D - 1), A = Math.max(1, w.height - re), j = z(n), N = he(n, t), ie = Math.max(1, ...t.map((e) => M(e.plots).length));
|
|
379
|
+
function ae(t, n) {
|
|
380
380
|
if (Z(e)) {
|
|
381
381
|
let n = Number(t.rawX);
|
|
382
|
-
return Number.isFinite(n) ?
|
|
382
|
+
return Number.isFinite(n) ? Ge({
|
|
383
383
|
...e,
|
|
384
|
-
drawingArea:
|
|
384
|
+
drawingArea: w
|
|
385
385
|
}, n) : null;
|
|
386
386
|
}
|
|
387
387
|
return Q({
|
|
388
388
|
...e,
|
|
389
|
-
drawingArea:
|
|
390
|
-
}, t.index ?? n,
|
|
389
|
+
drawingArea: w
|
|
390
|
+
}, t.index ?? n, ie);
|
|
391
391
|
}
|
|
392
|
-
let
|
|
393
|
-
let i = e.id !== void 0 && e.id !== null ?
|
|
392
|
+
let F = t.map((e, t) => {
|
|
393
|
+
let i = e.id !== void 0 && e.id !== null ? E.find((t) => t.id === e.id) ?? E[t] ?? e : E[t] ?? e, a = ge(n, e, N, r, j, T), o = k(i.stackIndex, t), s = k(i.stackRatio, 1 / D), c = k(i.cumulatedStackRatio, s * (o + 1)), l = D - 1 - o, u = T ? 1 - c : 0, d = T ? A * u + O * l : 0, f = T ? A * s : w.height;
|
|
394
394
|
function p(e) {
|
|
395
395
|
let t = (e - a.min) / (a.max - a.min || 1);
|
|
396
|
-
return
|
|
396
|
+
return w.bottom - d - t * f;
|
|
397
397
|
}
|
|
398
398
|
let m = p(0);
|
|
399
399
|
return {
|
|
@@ -412,7 +412,7 @@ function je(e, t) {
|
|
|
412
412
|
return {
|
|
413
413
|
...e,
|
|
414
414
|
value: n,
|
|
415
|
-
x:
|
|
415
|
+
x: ae(e, t),
|
|
416
416
|
y: n === null || !Number.isFinite(n) ? null : p(n)
|
|
417
417
|
};
|
|
418
418
|
})
|
|
@@ -420,18 +420,18 @@ function je(e, t) {
|
|
|
420
420
|
});
|
|
421
421
|
return {
|
|
422
422
|
...e,
|
|
423
|
-
drawingArea:
|
|
424
|
-
series:
|
|
425
|
-
__scaleGroups:
|
|
426
|
-
__useIndividualScale:
|
|
423
|
+
drawingArea: w,
|
|
424
|
+
series: F,
|
|
425
|
+
__scaleGroups: N,
|
|
426
|
+
__useIndividualScale: j
|
|
427
427
|
};
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Ne(e) {
|
|
430
430
|
let { config: t, drawingArea: n, scale: r, series: i } = e;
|
|
431
|
-
if (!
|
|
432
|
-
let a =
|
|
433
|
-
if (a) return
|
|
434
|
-
let s = q(t), c = J(t), l =
|
|
431
|
+
if (!P(t, "chart.grid.labels.show", !0) || !P(t, "chart.grid.labels.yAxis.show", !0)) return "";
|
|
432
|
+
let a = z(t), o = Y(t);
|
|
433
|
+
if (a) return Pe(e);
|
|
434
|
+
let s = q(t), c = J(t), l = P(t, "chart.grid.labels.yAxis.showCrosshairs", !1), u = k(P(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = k(P(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = P(t, "chart.grid.labels.color", "#2A2A2A"), p = P(t, "chart.grid.stroke", "#CCCCCC"), m = o ? i.flatMap((e) => M(e.__scaleYLabels)) : M(r.ticks).map((e) => {
|
|
435
435
|
let t = (e - r.min) / (r.max - r.min || 1);
|
|
436
436
|
return {
|
|
437
437
|
value: e,
|
|
@@ -448,32 +448,32 @@ function Me(e) {
|
|
|
448
448
|
stroke: p,
|
|
449
449
|
"stroke-width": 1,
|
|
450
450
|
"stroke-linecap": "round"
|
|
451
|
-
})), h.push(
|
|
451
|
+
})), h.push(I(Oe(e.value, t), {
|
|
452
452
|
"data-cy": "axis-y-label",
|
|
453
453
|
transform: `translate(${c ? n.right + u + d + 5 : n.scaleLabelX - u}, ${e.y + s.dataLabels / 3})`,
|
|
454
454
|
"font-size": s.dataLabels,
|
|
455
455
|
"text-anchor": c ? "start" : "end",
|
|
456
|
-
fill: o && e.serie?.color ?
|
|
456
|
+
fill: o && e.serie?.color ? P(t, "chart.grid.labels.yAxis.groupColor", null) || e.serie.color : f
|
|
457
457
|
})));
|
|
458
|
-
}),
|
|
458
|
+
}), F("g", { "data-layer": "scale-labels" }, h.join(""));
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
let { config: t, drawingArea: n, series: r } = e, i = q(t), a = J(t), o = Y(t), s = e.__scaleGroups ??
|
|
460
|
+
function Pe(e) {
|
|
461
|
+
let { config: t, drawingArea: n, series: r } = e, i = q(t), a = J(t), o = Y(t), s = e.__scaleGroups ?? he(t, r), c = P(t, "chart.grid.labels.yAxis.showCrosshairs", !1), l = k(P(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), u = k(P(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), d = k(P(t, "chart.grid.labels.yAxis.labelWidth", 40), 40), f = k(n.individualOffsetX, 36), p = [], m = Object.values(s);
|
|
462
462
|
return m.forEach((e, s) => {
|
|
463
|
-
let h = r.find((t) =>
|
|
463
|
+
let h = r.find((t) => B(t) === e.scaleLabel) ?? r[s];
|
|
464
464
|
if (!h) return;
|
|
465
|
-
let g = o ? a ? n.right : n.left : a ? n.right +
|
|
465
|
+
let g = o ? a ? n.right : n.left : a ? n.right + V(t) * s : n.left - V(t) * (m.length - s - 1), _ = k(h.__yOffset, 0), v = k(h.__individualHeight, n.height), y = o ? n.bottom - _ - v : n.top, b = o ? n.bottom - _ : n.bottom;
|
|
466
466
|
p.push(A("line", {
|
|
467
467
|
x1: o || a ? g : g - f,
|
|
468
468
|
x2: o || a ? g : g - f,
|
|
469
469
|
y1: y,
|
|
470
470
|
y2: b,
|
|
471
471
|
stroke: e.color,
|
|
472
|
-
"stroke-width":
|
|
472
|
+
"stroke-width": P(t, "chart.grid.strokeWidth", 1),
|
|
473
473
|
"stroke-linecap": "round"
|
|
474
474
|
}));
|
|
475
475
|
let x = o ? a ? n.right + l + u + 5 + d + f : n.left - l - u - d : a ? g + l + u + 5 + d : g - i.dataLabels / 2;
|
|
476
|
-
p.push(
|
|
476
|
+
p.push(I(e.name, {
|
|
477
477
|
transform: `translate(${x}, ${y + (b - y) / 2}) rotate(-90)`,
|
|
478
478
|
"font-size": i.dataLabels * .8,
|
|
479
479
|
"text-anchor": "middle",
|
|
@@ -489,7 +489,7 @@ function Ne(e) {
|
|
|
489
489
|
stroke: e.color,
|
|
490
490
|
"stroke-width": 1,
|
|
491
491
|
"stroke-linecap": "round"
|
|
492
|
-
})), p.push(
|
|
492
|
+
})), p.push(I(Oe(r, t), {
|
|
493
493
|
"data-cy": "axis-y-label",
|
|
494
494
|
transform: `translate(${o ? a ? n.right + l + u + 5 : n.left - l - u - 5 : a ? g + l + u + 5 : g - 5 - f}, ${d + i.dataLabels / 3})`,
|
|
495
495
|
"font-size": i.dataLabels,
|
|
@@ -497,24 +497,24 @@ function Ne(e) {
|
|
|
497
497
|
fill: e.color
|
|
498
498
|
})));
|
|
499
499
|
});
|
|
500
|
-
}),
|
|
500
|
+
}), F("g", { "data-layer": "individual-scale-labels" }, p.join(""));
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Fe(e) {
|
|
503
503
|
return [...new Set(e.flatMap((e) => M(e.plots)).map((e) => Number(e.x)).filter(Number.isFinite))].sort((e, t) => e - t);
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
let { drawingArea: r, config: i } = e, a =
|
|
505
|
+
function Ie(e, t, n = 1) {
|
|
506
|
+
let { drawingArea: r, config: i } = e, a = Fe(t), o = r.width * .05;
|
|
507
507
|
if (a.length < 2) return Math.max(1e-5, o / Math.max(1, n));
|
|
508
508
|
let s = a.slice(1).reduce((e, t, n) => {
|
|
509
509
|
let r = a[n], i = Math.abs(t - r);
|
|
510
510
|
return i > 0 ? Math.min(e, i) : e;
|
|
511
|
-
}, Infinity), c = k(
|
|
511
|
+
}, Infinity), c = k(P(i, "bar.periodGap", .2), .2), l = Number.isFinite(s) && s > 0 ? s * (1 - c) : o;
|
|
512
512
|
return Math.max(1e-5, l / Math.max(1, n));
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
let { config: r } = e, i = k(
|
|
514
|
+
function Le(e, t, n) {
|
|
515
|
+
let { config: r } = e, i = k(P(r, "bar.innerGap", .05), .05), a = P(r, "bar.borderRadius", 0), o = [];
|
|
516
516
|
if (n) {
|
|
517
|
-
let n =
|
|
517
|
+
let n = Ie(e, t, 1), r = n * Math.min(Math.abs(i), .95), s = Math.max(1e-5, n - r);
|
|
518
518
|
return t.forEach((t, n) => {
|
|
519
519
|
let r = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e);
|
|
520
520
|
M(t.plots).forEach((i) => {
|
|
@@ -531,9 +531,9 @@ function Ie(e, t, n) {
|
|
|
531
531
|
...$(e, t)
|
|
532
532
|
}));
|
|
533
533
|
});
|
|
534
|
-
}),
|
|
534
|
+
}), F("g", { "data-layer": "bars" }, o.join(""));
|
|
535
535
|
}
|
|
536
|
-
let s = Math.max(1, t.length), c =
|
|
536
|
+
let s = Math.max(1, t.length), c = Ie(e, t, s), l = c * Math.min(Math.abs(i), .95), u = Math.max(1e-5, c - l), d = c * s;
|
|
537
537
|
return t.forEach((t, n) => {
|
|
538
538
|
let r = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e);
|
|
539
539
|
M(t.plots).forEach((i) => {
|
|
@@ -550,13 +550,13 @@ function Ie(e, t, n) {
|
|
|
550
550
|
...$(e, t)
|
|
551
551
|
}));
|
|
552
552
|
});
|
|
553
|
-
}),
|
|
553
|
+
}), F("g", { "data-layer": "bars" }, o.join(""));
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function Re(e, t) {
|
|
556
556
|
let { config: n, drawingArea: r } = e, i = Y(n), a = t.filter((e) => e.type === "bar");
|
|
557
557
|
if (!a.length) return "";
|
|
558
|
-
if (Z(e)) return
|
|
559
|
-
let o = Math.max(1, ...t.map((e) => M(e.plots).length)), s = r.width / o, c = k(
|
|
558
|
+
if (Z(e)) return Le(e, a, i);
|
|
559
|
+
let o = Math.max(1, ...t.map((e) => M(e.plots).length)), s = r.width / o, c = k(P(n, "bar.periodGap", .2), .2), l = k(P(n, "bar.innerGap", .05), .05), u = P(n, "bar.borderRadius", 0), d = [];
|
|
560
560
|
if (i) {
|
|
561
561
|
let t = Math.max(1e-5, s * .9), n = t * Math.min(Math.abs(l), .95);
|
|
562
562
|
return a.forEach((i, a) => {
|
|
@@ -575,7 +575,7 @@ function Le(e, t) {
|
|
|
575
575
|
...$(e, i)
|
|
576
576
|
}));
|
|
577
577
|
});
|
|
578
|
-
}),
|
|
578
|
+
}), F("g", { "data-layer": "bars" }, d.join(""));
|
|
579
579
|
}
|
|
580
580
|
let f = s * (1 - c), p = f / Math.max(1, a.length), m = p * Math.min(Math.abs(l), .95);
|
|
581
581
|
return U(e), a.forEach((t, n) => {
|
|
@@ -594,11 +594,11 @@ function Le(e, t) {
|
|
|
594
594
|
...$(e, t)
|
|
595
595
|
}));
|
|
596
596
|
});
|
|
597
|
-
}),
|
|
597
|
+
}), F("g", { "data-layer": "bars" }, d.join(""));
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function ze(e) {
|
|
600
600
|
let { config: t, drawingArea: n, scale: r, series: i } = e;
|
|
601
|
-
return
|
|
601
|
+
return z(t) || Y(t) ? i.flatMap((e) => M(e.__scaleYLabels)) : M(r.ticks).map((e) => {
|
|
602
602
|
let t = (e - r.min) / (r.max - r.min || 1);
|
|
603
603
|
return {
|
|
604
604
|
value: e,
|
|
@@ -606,29 +606,29 @@ function Re(e) {
|
|
|
606
606
|
};
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Be(e, t, n) {
|
|
610
610
|
let { drawingArea: r } = e, i = r.width / Math.max(1, n);
|
|
611
611
|
return r.left + i * t;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Ve(e, t) {
|
|
614
614
|
let { config: n, drawingArea: r } = e, i = Math.max(1, ...t.map((e) => M(e.plots).length)), a = r.top, o = r.bottom;
|
|
615
615
|
if (Z(e)) {
|
|
616
616
|
let e = [...new Set(t.flatMap((e) => M(e.plots)).map((e) => Number(e.x)).filter(Number.isFinite))].sort((e, t) => e - t);
|
|
617
|
-
return e.length ?
|
|
617
|
+
return e.length ? P(n, "chart.grid.position", "middle") === "middle" ? e.map((e, t, n) => {
|
|
618
618
|
if (t === 0) return null;
|
|
619
619
|
let r = n[t - 1], i = r + (e - r) / 2;
|
|
620
620
|
return `M${i},${a} L${i},${o}`;
|
|
621
621
|
}).filter(Boolean).join(" ") : e.map((e) => `M${e},${a} L${e},${o}`).join(" ") : "";
|
|
622
622
|
}
|
|
623
|
-
let s = i + +(
|
|
623
|
+
let s = i + +(P(n, "chart.grid.position", "middle") === "middle");
|
|
624
624
|
return Array.from({ length: s }).map((t, r) => {
|
|
625
|
-
let s =
|
|
625
|
+
let s = P(n, "chart.grid.position", "middle") === "middle" ? Be(e, r, i) : Q(e, r, i);
|
|
626
626
|
return `M${s},${a} L${s},${o}`;
|
|
627
627
|
}).join(" ");
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
let { config: t, drawingArea: n, scale: r, series: i } = e, a =
|
|
631
|
-
if (a && o &&
|
|
629
|
+
function He(e) {
|
|
630
|
+
let { config: t, drawingArea: n, scale: r, series: i } = e, a = P(t, "chart.grid.show", !0), o = P(t, "chart.grid.showHorizontalLines", !0), s = P(t, "chart.grid.showVerticalLines", !1), c = P(t, "chart.grid.stroke", "#CCCCCC"), l = k(P(t, "chart.grid.strokeWidth", .5), .5), u = [];
|
|
631
|
+
if (a && o && ze(e).forEach((e) => {
|
|
632
632
|
Number.isFinite(Number(e.y)) && u.push(A("line", {
|
|
633
633
|
"data-cy": "xy-grid-horizontal-line",
|
|
634
634
|
x1: n.left,
|
|
@@ -640,7 +640,7 @@ function Ve(e) {
|
|
|
640
640
|
"stroke-linecap": "round"
|
|
641
641
|
}));
|
|
642
642
|
}), a && s) {
|
|
643
|
-
let t =
|
|
643
|
+
let t = Ve(e, i);
|
|
644
644
|
t && u.push(A("path", {
|
|
645
645
|
"data-cy": "xy-grid-vertical-line",
|
|
646
646
|
d: t,
|
|
@@ -676,20 +676,20 @@ function Ve(e) {
|
|
|
676
676
|
"stroke-width": l,
|
|
677
677
|
"stroke-dasharray": 4,
|
|
678
678
|
"stroke-linecap": "round"
|
|
679
|
-
})),
|
|
679
|
+
})), F("g", { "data-layer": "grid" }, u.join(""));
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function Ue(e) {
|
|
682
682
|
return e && typeof e == "object" && Number.isFinite(Number(e.x)) && Number.isFinite(Number(e.y));
|
|
683
683
|
}
|
|
684
684
|
function Z(e) {
|
|
685
|
-
return e.isContinuous ? !0 : M(e.series).some((e) => M(e.series).some(
|
|
685
|
+
return e.isContinuous ? !0 : M(e.series).some((e) => M(e.series).some(Ue));
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function We(e) {
|
|
688
688
|
if (e.xScale && Number.isFinite(Number(e.xScale.min)) && Number.isFinite(Number(e.xScale.max))) return {
|
|
689
689
|
min: Number(e.xScale.min),
|
|
690
690
|
max: Number(e.xScale.max)
|
|
691
691
|
};
|
|
692
|
-
let t = M(e.series).flatMap((e) => M(e.series)).filter(
|
|
692
|
+
let t = M(e.series).flatMap((e) => M(e.series)).filter(Ue).map((e) => Number(e.x));
|
|
693
693
|
if (!t.length) return {
|
|
694
694
|
min: 0,
|
|
695
695
|
max: 1
|
|
@@ -703,91 +703,92 @@ function Ue(e) {
|
|
|
703
703
|
max: r
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
let { drawingArea: n, config: r } = e, i =
|
|
706
|
+
function Ge(e, t) {
|
|
707
|
+
let { drawingArea: n, config: r } = e, i = We(e), a = (Number(t) - i.min) / (i.max - i.min || 1), o = P(r, "chart.grid.labels.xAxis.reverse", !1) ? 1 - a : a;
|
|
708
708
|
return n.left + n.width * o;
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
let { config: r } = e, i =
|
|
710
|
+
function Ke(e, t, n) {
|
|
711
|
+
let { config: r } = e, i = h({
|
|
712
712
|
v: t,
|
|
713
|
-
p:
|
|
714
|
-
s:
|
|
715
|
-
r:
|
|
713
|
+
p: P(r, "chart.labels.prefix", ""),
|
|
714
|
+
s: P(r, "chart.labels.suffix", ""),
|
|
715
|
+
r: P(r, "chart.grid.labels.xAxis.rounding", 0)
|
|
716
716
|
});
|
|
717
|
-
return
|
|
717
|
+
return S(P(r, "chart.grid.labels.xAxis.formatter", null), t, i, {
|
|
718
718
|
datapoint: t,
|
|
719
719
|
seriesIndex: null
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function qe(e) {
|
|
723
723
|
let { xScale: t, config: n } = e, r = M(t?.ticks);
|
|
724
|
-
return (
|
|
724
|
+
return (P(n, "chart.grid.labels.xAxis.reverse", !1) ? [...r].reverse() : r).map((t, n) => ({
|
|
725
725
|
id: `continuous_x_label_${n}`,
|
|
726
|
-
text:
|
|
726
|
+
text: Ke(e, t, n),
|
|
727
727
|
value: t,
|
|
728
|
-
x:
|
|
728
|
+
x: Ge(e, t),
|
|
729
729
|
index: n,
|
|
730
730
|
absoluteIndex: n
|
|
731
731
|
}));
|
|
732
732
|
}
|
|
733
733
|
function Q(e, t, n) {
|
|
734
|
-
let { drawingArea: r, config: i } = e, a =
|
|
734
|
+
let { drawingArea: r, config: i } = e, a = P(i, "chart.grid.position", "middle"), o = r.width, s = a === "middle" ? o / Math.max(1, n) : o / Math.max(1, n - 1);
|
|
735
735
|
return a === "middle" ? r.left + s / 2 + s * t : r.left + s * t;
|
|
736
736
|
}
|
|
737
|
-
async function
|
|
737
|
+
async function Je(e, t) {
|
|
738
738
|
let { config: n } = e, r = Math.max(0, ...t.map((e) => M(e.plots).length));
|
|
739
739
|
return await D({
|
|
740
|
-
values:
|
|
740
|
+
values: P(n, "chart.grid.labels.xAxisLabels.values", []),
|
|
741
741
|
maxDatapoints: r,
|
|
742
|
-
formatter:
|
|
742
|
+
formatter: P(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
|
|
743
743
|
start: k(e.slotStartIndex ?? e.startAbs, 0),
|
|
744
744
|
end: k(e.slotEndIndex ?? e.endAbs, r)
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
|
-
async function
|
|
748
|
-
let { config: n } = e, r =
|
|
747
|
+
async function Ye(e, t) {
|
|
748
|
+
let { config: n } = e, r = P(n, "chart.grid.labels.xAxisLabels", {}), i = M(P(n, "chart.grid.labels.xAxisLabels.values", [])), a = Math.max(0, ...t.map((e) => M(e.plots).length)), o = e.slotStartIndex !== void 0 || e.startAbs !== void 0, s = e.slotEndIndex !== void 0 || e.endAbs !== void 0, c = o || s, l = Math.max(0, Math.floor(k(e.slotStartIndex ?? e.startAbs, 0))), u = Math.max(l, Math.floor(k(e.slotEndIndex ?? e.endAbs, l + a))), d = await Je(e, t), f = c ? Math.max(a, i.length, u) : a, p = await D({
|
|
749
749
|
values: i,
|
|
750
750
|
maxDatapoints: f,
|
|
751
|
-
formatter:
|
|
751
|
+
formatter: P(n, "chart.grid.labels.xAxisLabels.datetimeFormatter", null),
|
|
752
752
|
start: 0,
|
|
753
753
|
end: f
|
|
754
|
-
}), m = Math.max(1, Math.floor(k(r.modulo, 1))),
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
754
|
+
}), m = d.map((e) => e?.text ?? ""), h = p.map((e) => e?.text ?? ""), g = Math.max(1, Math.floor(k(r.modulo, 1))), _ = p.length || f, v = x({
|
|
755
|
+
configuredModulo: g,
|
|
756
|
+
visibleTexts: m,
|
|
757
|
+
allTexts: h,
|
|
758
|
+
startAbs: l,
|
|
759
|
+
isZoomed: c && _ > 0 && (l > 0 || u < _)
|
|
760
|
+
}), y = b(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, v, m, h, l, e.selectedXIndex ?? null, m.length);
|
|
761
|
+
if (!r.showFirstAndLast || r.showOnlyFirstAndLast || !y.length) return y;
|
|
762
|
+
let S = y.length - 1;
|
|
763
|
+
return y.map((e, t) => t !== 0 && t !== S ? e : {
|
|
763
764
|
...e,
|
|
764
|
-
text:
|
|
765
|
+
text: m[t] ?? ""
|
|
765
766
|
});
|
|
766
767
|
}
|
|
767
|
-
async function
|
|
768
|
-
return Z(e) ?
|
|
768
|
+
async function Xe(e, t) {
|
|
769
|
+
return Z(e) ? qe(e) : await Ye(e, t);
|
|
769
770
|
}
|
|
770
|
-
function
|
|
771
|
+
function Ze(e, t, n, r) {
|
|
771
772
|
return Z(e) ? t.x : Q(e, n, r);
|
|
772
773
|
}
|
|
773
|
-
function
|
|
774
|
+
function Qe(e) {
|
|
774
775
|
let t = e.userConfig ?? e.sourceConfig ?? e.props?.config ?? {};
|
|
775
|
-
return
|
|
776
|
+
return y(t, "chart.grid.labels.xAxisLabels.rotation") ? k(P(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0) : P(e.config, "chart.grid.labels.xAxisLabels.autoRotate.enable", !1) ? k(P(e.config, "chart.grid.labels.xAxisLabels.autoRotate.angle", 0), 0) : k(P(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0);
|
|
776
777
|
}
|
|
777
|
-
async function
|
|
778
|
+
async function $e(e, t) {
|
|
778
779
|
let { config: r, drawingArea: i } = e;
|
|
779
|
-
if (!t[0] || !
|
|
780
|
-
|
|
781
|
-
let a = k(
|
|
780
|
+
if (!t[0] || !P(r, "chart.grid.labels.xAxisLabels.show", !0)) return "";
|
|
781
|
+
P(r, "chart.grid.labels.xAxisLabels", {});
|
|
782
|
+
let a = k(P(r, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), o = P(r, "chart.grid.labels.xAxisLabels.color", P(r, "chart.grid.labels.color", "#2A2A2A")), s = Qe(e), c = Math.max(1, t[0].plots.length), l = await Xe(e, t), u = s > 0 ? "start" : s < 0 ? "end" : "middle", d = l.map((t, l) => {
|
|
782
783
|
let d = typeof t == "string" ? t : t?.text;
|
|
783
784
|
if (!d) return "";
|
|
784
|
-
let f = `translate(${
|
|
785
|
-
return String(d).includes("\n") ?
|
|
785
|
+
let f = `translate(${Ze(e, t, l, c)}, ${i.bottom + a * 1.5}), rotate(${s})`;
|
|
786
|
+
return String(d).includes("\n") ? F("text", {
|
|
786
787
|
class: "vue-data-ui-time-label",
|
|
787
788
|
"data-cy": "time-label",
|
|
788
789
|
"text-anchor": u,
|
|
789
790
|
"font-size": a,
|
|
790
|
-
stroke:
|
|
791
|
+
stroke: P(r, "chart.backgroundColor", "#FFFFFF"),
|
|
791
792
|
"stroke-linecap": "round",
|
|
792
793
|
"stroke-linejoin": "round",
|
|
793
794
|
"paint-order": "stroke fill",
|
|
@@ -797,15 +798,15 @@ async function Qe(e, t) {
|
|
|
797
798
|
content: String(d),
|
|
798
799
|
fontSize: a,
|
|
799
800
|
fill: o,
|
|
800
|
-
stroke:
|
|
801
|
+
stroke: P(r, "chart.backgroundColor", "#FFFFFF"),
|
|
801
802
|
x: 0,
|
|
802
803
|
y: 0
|
|
803
|
-
})) :
|
|
804
|
+
})) : I(d, {
|
|
804
805
|
class: "vue-data-ui-time-label",
|
|
805
806
|
"data-cy": "time-label",
|
|
806
807
|
"text-anchor": u,
|
|
807
808
|
"font-size": a,
|
|
808
|
-
stroke:
|
|
809
|
+
stroke: P(r, "chart.backgroundColor", "#FFFFFF"),
|
|
809
810
|
"stroke-linecap": "round",
|
|
810
811
|
"stroke-linejoin": "round",
|
|
811
812
|
"paint-order": "stroke fill",
|
|
@@ -813,11 +814,11 @@ async function Qe(e, t) {
|
|
|
813
814
|
transform: f
|
|
814
815
|
});
|
|
815
816
|
}).join("");
|
|
816
|
-
return
|
|
817
|
+
return F("g", { "data-layer": "x-axis-labels" }, d);
|
|
817
818
|
}
|
|
818
|
-
function
|
|
819
|
-
let { config: t, drawingArea: n, height: r } = e, i = q(t), a =
|
|
820
|
-
if (a && m.push(
|
|
819
|
+
function et(e) {
|
|
820
|
+
let { config: t, drawingArea: n, height: r } = e, i = q(t), a = P(t, "chart.grid.labels.axis.xLabel", ""), o = P(t, "chart.grid.labels.axis.yLabel", ""), s = P(t, "chart.grid.labels.axis.color", P(t, "chart.grid.labels.color", "#2A2A2A")), c = k(P(t, "chart.grid.labels.axis.yLabelOffsetX", 0), 0), l = k(P(t, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), u = k(P(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = k(P(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = k(P(t, "chart.grid.labels.yAxis.labelWidth", 0), 0), p = J(t), m = [];
|
|
821
|
+
if (a && m.push(I(a, {
|
|
821
822
|
x: n.left + n.width / 2,
|
|
822
823
|
y: Math.min(r - 4, n.bottom + i.xAxis * 3 + l),
|
|
823
824
|
"font-size": i.yAxis,
|
|
@@ -825,7 +826,7 @@ function $e(e) {
|
|
|
825
826
|
fill: s
|
|
826
827
|
})), o) {
|
|
827
828
|
let e = p ? n.right + u + d + 5 + f + c : n.scaleLabelX - u - d - f - c, t = n.top + n.height / 2;
|
|
828
|
-
m.push(
|
|
829
|
+
m.push(I(o, {
|
|
829
830
|
x: e,
|
|
830
831
|
y: t,
|
|
831
832
|
transform: `rotate(-90 ${e} ${t})`,
|
|
@@ -834,26 +835,26 @@ function $e(e) {
|
|
|
834
835
|
fill: s
|
|
835
836
|
}));
|
|
836
837
|
}
|
|
837
|
-
return
|
|
838
|
+
return F("g", { "data-layer": "axis-labels" }, m.join(""));
|
|
838
839
|
}
|
|
839
|
-
async function
|
|
840
|
-
let { config: n, drawingArea: r } = e, i =
|
|
840
|
+
async function tt(e, t) {
|
|
841
|
+
let { config: n, drawingArea: r } = e, i = P(n, "chart.grid.labels.xAxisLabels.show", !0), a = P(n, "chart.grid.labels.xAxis.showCrosshairs", !1);
|
|
841
842
|
if (!i || !a || !t[0]) return "";
|
|
842
|
-
let o = k(
|
|
843
|
+
let o = k(P(n, "chart.grid.labels.xAxis.crosshairSize", 6), 6), s = !!P(n, "chart.grid.labels.xAxis.crosshairsAlwaysAtZero", !1), c = Math.max(1, t[0].plots.length), l = await Xe(e, t), u = U(e), d = l.map((t, n) => {
|
|
843
844
|
if (!(typeof t == "string" ? t : t?.text)) return "";
|
|
844
845
|
let i = Z(e) ? t.x : Q(e, n, c);
|
|
845
846
|
return `M${i},${s ? u - (u === r.bottom ? 0 : o / 2) : r.bottom} L${i},${s ? u + o / (u === r.bottom ? 1 : 2) : r.bottom + o}`;
|
|
846
847
|
}).filter(Boolean).join(" ");
|
|
847
|
-
return d ?
|
|
848
|
+
return d ? F("g", { "data-layer": "x-axis-ticks" }, A("path", {
|
|
848
849
|
d,
|
|
849
|
-
stroke:
|
|
850
|
+
stroke: P(n, "chart.grid.stroke", "#CCCCCC"),
|
|
850
851
|
"stroke-width": 1,
|
|
851
852
|
"stroke-linecap": "round",
|
|
852
853
|
"data-cy": "axis-x-tick"
|
|
853
854
|
})) : "";
|
|
854
855
|
}
|
|
855
|
-
function
|
|
856
|
-
let { config: n, width: r } = e, i =
|
|
856
|
+
function nt(e, t) {
|
|
857
|
+
let { config: n, width: r } = e, i = P(n, "chart.legend", {}), a = k(i.fontSize, 12), o = k(i.markerSize, 10), s = k(i.itemGap, 16), c = k(i.rowGap, 8), l = k(i.padding, 8), u = Math.max(1, r - l * 2), d = [], f = [], p = 0;
|
|
857
858
|
return t.forEach((e) => {
|
|
858
859
|
let t = String(e.name ?? ""), n = o + 6 + j(t, a) + s;
|
|
859
860
|
f.length && p + n > u && (d.push({
|
|
@@ -877,10 +878,10 @@ function tt(e, t) {
|
|
|
877
878
|
height: d.length * Math.max(o, a) + Math.max(0, d.length - 1) * c + l * 2
|
|
878
879
|
};
|
|
879
880
|
}
|
|
880
|
-
function
|
|
881
|
+
function rt(e, t) {
|
|
881
882
|
let { config: n, width: r, height: i } = e;
|
|
882
|
-
if (!
|
|
883
|
-
let a =
|
|
883
|
+
if (!P(n, "chart.legend.show", !0) || !t.length) return "";
|
|
884
|
+
let a = P(n, "chart.legend", {}), o = a.position || "bottom", s = a.color || P(n, "chart.color", "#2A2A2A"), c = nt(e, t), l = Math.max(c.markerSize, c.fontSize), u = o === "top" ? c.padding + l : i - c.height + c.padding + l, d = [];
|
|
884
885
|
return c.rows.forEach((e, t) => {
|
|
885
886
|
let n = Math.max(c.padding, r / 2 - e.width / 2), i = u + t * (l + c.rowGap);
|
|
886
887
|
e.items.forEach(({ serie: e, label: t, itemWidth: r }) => {
|
|
@@ -891,7 +892,7 @@ function nt(e, t) {
|
|
|
891
892
|
height: c.markerSize,
|
|
892
893
|
rx: 2,
|
|
893
894
|
fill: e.color
|
|
894
|
-
})), d.push(
|
|
895
|
+
})), d.push(I(t, {
|
|
895
896
|
x: n + c.markerSize + 6,
|
|
896
897
|
y: i + 2,
|
|
897
898
|
"font-size": c.fontSize,
|
|
@@ -899,39 +900,39 @@ function nt(e, t) {
|
|
|
899
900
|
fill: s
|
|
900
901
|
})), n += r;
|
|
901
902
|
});
|
|
902
|
-
}),
|
|
903
|
+
}), F("g", { "data-layer": "legend" }, d.join(""));
|
|
903
904
|
}
|
|
904
|
-
function
|
|
905
|
+
function it(e, t) {
|
|
905
906
|
return `areaGradient_${t}_${W()}`;
|
|
906
907
|
}
|
|
907
|
-
function
|
|
908
|
+
function at(e, t) {
|
|
908
909
|
let { config: n } = e;
|
|
909
|
-
if (!
|
|
910
|
-
let r = k(
|
|
911
|
-
id:
|
|
910
|
+
if (!P(n, "line.area.useGradient", !1)) return "";
|
|
911
|
+
let r = k(P(n, "line.area.opacity", 30), 30), i = t.filter((e) => e.type === "line" && e.useArea).map((t, n) => F("linearGradient", {
|
|
912
|
+
id: it(e, n),
|
|
912
913
|
x1: "0%",
|
|
913
914
|
x2: "0%",
|
|
914
915
|
y1: "0%",
|
|
915
916
|
y2: "100%"
|
|
916
917
|
}, [A("stop", {
|
|
917
918
|
offset: "0%",
|
|
918
|
-
"stop-color":
|
|
919
|
+
"stop-color": f(m(u(t.color), .03), r),
|
|
919
920
|
"stop-opacity": 1
|
|
920
921
|
}), A("stop", {
|
|
921
922
|
offset: "100%",
|
|
922
923
|
"stop-color": t.color,
|
|
923
924
|
"stop-opacity": 0
|
|
924
925
|
})].join(""))).join("");
|
|
925
|
-
return
|
|
926
|
+
return i ? F("defs", {}, i) : "";
|
|
926
927
|
}
|
|
927
|
-
function
|
|
928
|
-
let { config: i } = n, a = !!
|
|
928
|
+
function ot(n, r) {
|
|
929
|
+
let { config: i } = n, a = !!P(i, "line.cutNullValues", !1), o = [];
|
|
929
930
|
return r.filter((e) => e.type === "line" && e.useArea).forEach((r, i) => {
|
|
930
|
-
let s = M(r.plots),
|
|
931
|
-
if (
|
|
932
|
-
let u = Number.isFinite(Number(r.__zeroY)) ? Number(r.__zeroY) : U(n), d =
|
|
931
|
+
let s = M(r.plots), l = s.filter((e) => e && e.value !== null);
|
|
932
|
+
if (l.length < 2) return;
|
|
933
|
+
let u = Number.isFinite(Number(r.__zeroY)) ? Number(r.__zeroY) : U(n), d = Te(n, r, i);
|
|
933
934
|
if (r.smooth && !r.useStepper) {
|
|
934
|
-
|
|
935
|
+
c(a ? s : l, u, a).forEach((e) => {
|
|
935
936
|
e && o.push(A("path", {
|
|
936
937
|
d: e,
|
|
937
938
|
fill: d,
|
|
@@ -940,77 +941,77 @@ function at(n, r) {
|
|
|
940
941
|
});
|
|
941
942
|
return;
|
|
942
943
|
}
|
|
943
|
-
(r.useStepper ? t(a ? s :
|
|
944
|
+
(r.useStepper ? t(a ? s : l, u) : a ? e(s, u) : C(l, u)).split(";").filter(Boolean).forEach((e) => {
|
|
944
945
|
o.push(A("path", {
|
|
945
946
|
d: `M${e}Z`,
|
|
946
947
|
fill: d,
|
|
947
948
|
"data-cy": "datapoint-line-area-straight"
|
|
948
949
|
}));
|
|
949
950
|
});
|
|
950
|
-
}),
|
|
951
|
+
}), F("g", { "data-layer": "line-areas" }, o.join(""));
|
|
951
952
|
}
|
|
952
|
-
function
|
|
953
|
+
function st(e, t) {
|
|
953
954
|
let n = k(t.slotStartIndex ?? t.startAbs, 0);
|
|
954
955
|
return M(e.dashIndices).map((e) => Number(e) - n).filter(Number.isFinite);
|
|
955
956
|
}
|
|
956
|
-
function
|
|
957
|
-
let { config: a } = e, o = k(t.strokeWidth ||
|
|
957
|
+
function ct(e, t, n, r, i) {
|
|
958
|
+
let { config: a } = e, o = k(t.strokeWidth || P(a, "line.strokeWidth", 2), 2);
|
|
958
959
|
return A("path", {
|
|
959
960
|
d: `M${r}`,
|
|
960
961
|
fill: "none",
|
|
961
|
-
stroke:
|
|
962
|
+
stroke: Se(e, t, n),
|
|
962
963
|
"stroke-width": o,
|
|
963
964
|
"stroke-linecap": "round",
|
|
964
965
|
"stroke-linejoin": "round",
|
|
965
966
|
"stroke-dasharray": i ? o * 2 : 0
|
|
966
967
|
});
|
|
967
968
|
}
|
|
968
|
-
function
|
|
969
|
-
let { config: i } = e,
|
|
970
|
-
return
|
|
971
|
-
let
|
|
972
|
-
if (!(
|
|
969
|
+
function lt(e, n) {
|
|
970
|
+
let { config: i } = e, s = n.filter((e) => e.type === "line"), c = !!P(i, "line.cutNullValues", !1), u = [];
|
|
971
|
+
return s.forEach((n, s) => {
|
|
972
|
+
let f = c ? M(n.plots) : M(n.plots).filter((e) => e.value !== null), m = f.filter((e) => e.value !== null);
|
|
973
|
+
if (!(m.length < 2)) {
|
|
973
974
|
if (M(n.dashIndices).length > 0 && !n.useStepper) {
|
|
974
|
-
let t =
|
|
975
|
-
(n.smooth ||
|
|
976
|
-
t?.path &&
|
|
975
|
+
let t = st(n, e);
|
|
976
|
+
(n.smooth || P(i, "line.smooth", !1) ? o(f, t) : d(f, t)).forEach((t) => {
|
|
977
|
+
t?.path && u.push(ct(e, n, s, t.path, !!t.dashed));
|
|
977
978
|
});
|
|
978
979
|
return;
|
|
979
980
|
}
|
|
980
|
-
(n.useStepper ? t(
|
|
981
|
-
t &&
|
|
981
|
+
(n.useStepper ? t(f).split(";").filter(Boolean) : [n.smooth || P(i, "line.smooth", !1) ? c ? a(f) : l(m) : c ? r(f) : p(m, !1, !0)]).forEach((t) => {
|
|
982
|
+
t && u.push(ct(e, n, s, t, !!n.dashed));
|
|
982
983
|
});
|
|
983
984
|
}
|
|
984
|
-
}),
|
|
985
|
+
}), F("g", { "data-layer": "lines" }, u.join(""));
|
|
985
986
|
}
|
|
986
|
-
function
|
|
987
|
+
function ut(e, t, n) {
|
|
987
988
|
let { config: r } = e;
|
|
988
|
-
return
|
|
989
|
+
return P(r, "plot.useGradient", !1) ? `url(#${Ce(e, n)})` : P(r, "plot.dot.useSerieColor", !0) ? t.color : P(r, "plot.dot.fill", t.color);
|
|
989
990
|
}
|
|
990
991
|
function $(e, t) {
|
|
991
|
-
let n =
|
|
992
|
+
let n = P(e.config, "bar.border", {});
|
|
992
993
|
return {
|
|
993
994
|
stroke: n.useSerieColor ? t.color : n.stroke,
|
|
994
995
|
"stroke-width": k(n.strokeWidth, 0)
|
|
995
996
|
};
|
|
996
997
|
}
|
|
997
|
-
function
|
|
998
|
-
let { config: n } = e, r = t.filter((e) => e.type === "plot"), i =
|
|
998
|
+
function dt(e, t) {
|
|
999
|
+
let { config: n } = e, r = t.filter((e) => e.type === "plot"), i = P(n, "plot.radius", 4), a = P(n, "plot.dot.strokeWidth", 2), o = P(n, "chart.backgroundColor", "#FFFFFF"), s = [];
|
|
999
1000
|
return r.forEach((t, r) => {
|
|
1000
1001
|
t.plots.forEach((c, l) => {
|
|
1001
|
-
|
|
1002
|
+
ae(c.value) && s.push(N({
|
|
1002
1003
|
dataCy: `xy-plot-${r}-${l}`,
|
|
1003
1004
|
shape: t.shape,
|
|
1004
1005
|
plot: c,
|
|
1005
1006
|
radius: t.radius || i,
|
|
1006
|
-
fill:
|
|
1007
|
-
stroke:
|
|
1007
|
+
fill: ut(e, t, r),
|
|
1008
|
+
stroke: P(n, "plot.dot.useSerieColor", !0) ? o : t.color,
|
|
1008
1009
|
strokeWidth: a
|
|
1009
1010
|
}));
|
|
1010
1011
|
});
|
|
1011
|
-
}),
|
|
1012
|
+
}), F("g", { "data-layer": "plots" }, s.join(""));
|
|
1012
1013
|
}
|
|
1013
|
-
function
|
|
1014
|
+
function ft(e) {
|
|
1014
1015
|
return ![
|
|
1015
1016
|
null,
|
|
1016
1017
|
void 0,
|
|
@@ -1019,46 +1020,46 @@ function dt(e) {
|
|
|
1019
1020
|
-Infinity
|
|
1020
1021
|
].includes(e);
|
|
1021
1022
|
}
|
|
1022
|
-
function
|
|
1023
|
+
function pt(e, t, n) {
|
|
1023
1024
|
let r = e[t - 1], i = e[t + 1], a = !!r && !!i && r.value == null && i.value == null || !r && !!i && i.value == null || !!r && !i && r.value == null;
|
|
1024
|
-
return
|
|
1025
|
+
return ft(e[t]?.value) && a && !!P(n, "line.cutNullValues", !1);
|
|
1025
1026
|
}
|
|
1026
|
-
function
|
|
1027
|
+
function mt(e, t, n, r, i) {
|
|
1027
1028
|
let { config: a } = e;
|
|
1028
|
-
if (!n || !
|
|
1029
|
-
if (!(i > k(
|
|
1029
|
+
if (!n || !ft(n.value)) return !1;
|
|
1030
|
+
if (!(i > k(P(a, "line.dot.hideAboveMaxSerieLength", Infinity), Infinity))) return !0;
|
|
1030
1031
|
let o = e.selectedSerieIndex ?? null, s = e.selectedMinimapIndex ?? null;
|
|
1031
|
-
return o !== null && o === r || s !== null && s === r ||
|
|
1032
|
+
return o !== null && o === r || s !== null && s === r || pt(t.plots, r, a);
|
|
1032
1033
|
}
|
|
1033
|
-
function
|
|
1034
|
-
let { config: n } = e, r = t.filter((e) => e.type === "line"), i = Math.max(0, ...r.map((e) => M(e.plots).length)), a =
|
|
1034
|
+
function ht(e, t) {
|
|
1035
|
+
let { config: n } = e, r = t.filter((e) => e.type === "line"), i = Math.max(0, ...r.map((e) => M(e.plots).length)), a = P(n, "line.radius", 4), o = P(n, "line.dot.strokeWidth", 2), s = P(n, "chart.backgroundColor", "#FFFFFF"), c = [];
|
|
1035
1036
|
return r.forEach((t, r) => {
|
|
1036
1037
|
t.plots.forEach((l, u) => {
|
|
1037
|
-
|
|
1038
|
+
mt(e, t, l, u, i) && c.push(N({
|
|
1038
1039
|
dataCy: "datapoint-line-plot",
|
|
1039
1040
|
shape: t.shape,
|
|
1040
1041
|
plot: l,
|
|
1041
1042
|
radius: t.radius || a,
|
|
1042
|
-
fill:
|
|
1043
|
-
stroke:
|
|
1043
|
+
fill: we(e, t, r),
|
|
1044
|
+
stroke: P(n, "line.dot.useSerieColor", !0) ? s : t.color,
|
|
1044
1045
|
strokeWidth: o
|
|
1045
1046
|
}));
|
|
1046
1047
|
});
|
|
1047
|
-
}),
|
|
1048
|
+
}), F("g", { "data-layer": "line-dots" }, c.join(""));
|
|
1048
1049
|
}
|
|
1049
|
-
function
|
|
1050
|
+
function gt(e, t) {
|
|
1050
1051
|
let { config: n } = e;
|
|
1051
1052
|
if (Y(n)) return "";
|
|
1052
|
-
let r =
|
|
1053
|
+
let r = P(n, "line.interLine", {}), i = M(r.pairs), a = M(r.colors);
|
|
1053
1054
|
if (!i.length) return "";
|
|
1054
|
-
let o = t.filter((e) => e.type === "line"), s = k(r.fillOpacity, .2), c = !!
|
|
1055
|
+
let o = t.filter((e) => e.type === "line"), s = k(r.fillOpacity, .2), c = !!P(n, "line.cutNullValues", !1), l = [];
|
|
1055
1056
|
return i.forEach((e, t) => {
|
|
1056
1057
|
let [n, r] = Array.isArray(e) ? e : [e?.a, e?.b];
|
|
1057
1058
|
if (!n || !r) return;
|
|
1058
1059
|
let i = o.find((e) => e.name === n), u = o.find((e) => e.name === r);
|
|
1059
1060
|
if (!i || !u) return;
|
|
1060
1061
|
let d = a?.[t]?.[0] ?? i.color, f = a?.[t]?.[1] ?? u.color;
|
|
1061
|
-
|
|
1062
|
+
ee({
|
|
1062
1063
|
lineA: M(i.plots),
|
|
1063
1064
|
lineB: M(u.plots),
|
|
1064
1065
|
smoothA: !!i.smooth,
|
|
@@ -1078,54 +1079,54 @@ function ht(e, t) {
|
|
|
1078
1079
|
"data-key": `inter_${n}_${r}_${t}_${i}`
|
|
1079
1080
|
}));
|
|
1080
1081
|
});
|
|
1081
|
-
}), l.length ?
|
|
1082
|
+
}), l.length ? F("g", { "data-layer": "interline-areas" }, l.join("")) : "";
|
|
1082
1083
|
}
|
|
1083
|
-
function
|
|
1084
|
-
let t =
|
|
1084
|
+
function _t(e) {
|
|
1085
|
+
let t = P(e, "chart.title", {}), n = P(t, "subtitle", {});
|
|
1085
1086
|
if (!t.show) return 0;
|
|
1086
1087
|
let r = k(t.fontSize, 20), i = n.text ? k(n.fontSize, 14) : 0, a = k(t.paddingTop, 12), o = k(t.paddingBottom, 6);
|
|
1087
1088
|
return a + r + (n.text ? i + 4 : 0) + o;
|
|
1088
1089
|
}
|
|
1089
|
-
function
|
|
1090
|
-
let { config: t, width: n } = e, r =
|
|
1090
|
+
function vt(e) {
|
|
1091
|
+
let { config: t, width: n } = e, r = P(t, "chart.title", {}), i = P(r, "subtitle", {});
|
|
1091
1092
|
if (!r.show || !r.text) return "";
|
|
1092
|
-
let a = r.textAlign || "center", o = a === "left" ? k(r.paddingLeft, 12) : a === "right" ? n - k(r.paddingRight, 12) : n / 2, s = a === "left" ? "start" : a === "right" ? "end" : "middle", c = k(r.fontSize, 20), l = k(i.fontSize, 14), u = k(r.paddingTop, 12) + c, d = [
|
|
1093
|
+
let a = r.textAlign || "center", o = a === "left" ? k(r.paddingLeft, 12) : a === "right" ? n - k(r.paddingRight, 12) : n / 2, s = a === "left" ? "start" : a === "right" ? "end" : "middle", c = k(r.fontSize, 20), l = k(i.fontSize, 14), u = k(r.paddingTop, 12) + c, d = [I(r.text, {
|
|
1093
1094
|
"data-cy": "xy-div-title",
|
|
1094
1095
|
x: o,
|
|
1095
1096
|
y: u,
|
|
1096
1097
|
"font-size": c,
|
|
1097
1098
|
"font-weight": r.bold ? "700" : "400",
|
|
1098
1099
|
"text-anchor": s,
|
|
1099
|
-
fill: r.color ||
|
|
1100
|
+
fill: r.color || P(t, "chart.color", "#2A2A2A")
|
|
1100
1101
|
})];
|
|
1101
|
-
return i.text && d.push(
|
|
1102
|
+
return i.text && d.push(I(i.text, {
|
|
1102
1103
|
"data-cy": "xy-div-subtitle",
|
|
1103
1104
|
x: o,
|
|
1104
1105
|
y: u + l + 4,
|
|
1105
1106
|
"font-size": l,
|
|
1106
1107
|
"font-weight": i.bold ? "700" : "400",
|
|
1107
1108
|
"text-anchor": s,
|
|
1108
|
-
fill: i.color || r.color ||
|
|
1109
|
-
})),
|
|
1109
|
+
fill: i.color || r.color || P(t, "chart.color", "#2A2A2A")
|
|
1110
|
+
})), F("g", { "data-layer": "title" }, d.join(""));
|
|
1110
1111
|
}
|
|
1111
|
-
function
|
|
1112
|
+
function yt(e) {
|
|
1112
1113
|
if (!e.svgTitle) return "";
|
|
1113
1114
|
let t = [e.svgTitle];
|
|
1114
|
-
return
|
|
1115
|
+
return F("desc", { "aria-hidden": "true" }, t.join(""));
|
|
1115
1116
|
}
|
|
1116
|
-
function
|
|
1117
|
-
return !n || n.value === null || n.value === void 0 || !Number.isFinite(Number(n.value)) || !
|
|
1117
|
+
function bt(e, t, n, r, i) {
|
|
1118
|
+
return !n || n.value === null || n.value === void 0 || !Number.isFinite(Number(n.value)) || !P(e.config, "dataLabels.show", !0) || !P(e.config, `${i}.labels.show`, !1) ? !1 : !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || e.selectedSerieIndex === r || e.selectedMinimapIndex === r;
|
|
1118
1119
|
}
|
|
1119
|
-
function
|
|
1120
|
-
let { config: a } = e, o = k(
|
|
1121
|
-
p: t.prefix ||
|
|
1120
|
+
function xt(e, t, r, i) {
|
|
1121
|
+
let { config: a } = e, o = k(P(a, `${i}.labels.fontSize`, P(a, "chart.labels.fontSize", 12)), 12), s = P(a, `${i}.labels.color`, P(a, "chart.color", "#2A2A2A")), c = h({
|
|
1122
|
+
p: t.prefix || P(a, "chart.labels.prefix", ""),
|
|
1122
1123
|
v: r.value,
|
|
1123
|
-
s: t.suffix ||
|
|
1124
|
-
r:
|
|
1125
|
-
}), l = Z(e) && Number.isFinite(Number(r.x)) ? `x: ${
|
|
1124
|
+
s: t.suffix || P(a, "chart.labels.suffix", ""),
|
|
1125
|
+
r: P(a, `${i}.labels.rounding`, 0)
|
|
1126
|
+
}), l = Z(e) && Number.isFinite(Number(r.x)) ? `x: ${h({
|
|
1126
1127
|
v: r.x,
|
|
1127
|
-
r:
|
|
1128
|
-
})}\ny: ${c}` :
|
|
1128
|
+
r: P(a, "chart.grid.labels.xAxis.rounding", 0)
|
|
1129
|
+
})}\ny: ${c}` : S(P(a, `${i}.labels.formatter`, null), r.value, c, {
|
|
1129
1130
|
datapoint: r,
|
|
1130
1131
|
serie: t
|
|
1131
1132
|
});
|
|
@@ -1137,20 +1138,20 @@ function bt(e, t, r, i) {
|
|
|
1137
1138
|
y: 0
|
|
1138
1139
|
});
|
|
1139
1140
|
}
|
|
1140
|
-
function xt(e, t, n) {
|
|
1141
|
-
let r = I(e.config, `${n}.labels.textAnchor`, null);
|
|
1142
|
-
return r === null ? k(I(e.config, `${n}.labels.rotation`, 0), 0) === 0 ? "middle" : I(e.config, `${n}.labels.alwaysOnTop`, !1) || t.value >= 0 ? "start" : "end" : r;
|
|
1143
|
-
}
|
|
1144
1141
|
function St(e, t, n) {
|
|
1145
|
-
let r =
|
|
1146
|
-
return
|
|
1142
|
+
let r = P(e.config, `${n}.labels.textAnchor`, null);
|
|
1143
|
+
return r === null ? k(P(e.config, `${n}.labels.rotation`, 0), 0) === 0 ? "middle" : P(e.config, `${n}.labels.alwaysOnTop`, !1) || t.value >= 0 ? "start" : "end" : r;
|
|
1147
1144
|
}
|
|
1148
1145
|
function Ct(e, t, n) {
|
|
1149
|
-
let r = k(
|
|
1146
|
+
let r = k(P(e.config, `${n}.labels.offsetX`, 0), 0), i = k(P(e.config, `${n}.labels.offsetY`, -12), -12), a = k(P(e.config, `${n}.labels.rotation`, 0), 0), o = !!P(e.config, `${n}.labels.alwaysOnTop`, !1);
|
|
1147
|
+
return `translate(${t.x + r}, ${t.y + (o || t.value >= 0 ? i : -i * 3)}) rotate(${a})`;
|
|
1148
|
+
}
|
|
1149
|
+
function wt(e, t, n) {
|
|
1150
|
+
let r = k(P(e.config, "bar.labels.offsetX", 0), 0), i = k(P(e.config, "bar.labels.offsetY", -6), -6), a = k(P(e.config, "bar.labels.rotation", 0), 0), o = !!P(e.config, "bar.labels.alwaysOnTop", !1), s = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e), c = Math.abs(s - n.y), l = n.__barLabelX ?? n.x, u = n.y + (o ? i - (n.value < 0 ? c : 0) : n.value >= 0 ? i : -i * 3);
|
|
1150
1151
|
return `translate(${l + r}, ${u}) rotate(${a})`;
|
|
1151
1152
|
}
|
|
1152
|
-
function
|
|
1153
|
-
let { config: n } = e, r = k(
|
|
1153
|
+
function Tt(e, t) {
|
|
1154
|
+
let { config: n } = e, r = k(P(n, "chart.labels.fontSize", 12), 12), i = P(n, "chart.backgroundColor", "#FFFFFF"), a = [];
|
|
1154
1155
|
return t.forEach((t) => {
|
|
1155
1156
|
M(t.plots).forEach((o, s) => {
|
|
1156
1157
|
let c = t.type;
|
|
@@ -1158,48 +1159,48 @@ function wt(e, t) {
|
|
|
1158
1159
|
"line",
|
|
1159
1160
|
"bar",
|
|
1160
1161
|
"plot"
|
|
1161
|
-
].includes(c) &&
|
|
1162
|
+
].includes(c) && bt(e, t, o, s, c) && a.push(F("text", {
|
|
1162
1163
|
"data-cy": `datapoint-${c}-label`,
|
|
1163
|
-
transform: c === "bar" ?
|
|
1164
|
-
"text-anchor":
|
|
1165
|
-
"font-size":
|
|
1166
|
-
fill:
|
|
1164
|
+
transform: c === "bar" ? wt(e, t, o) : Ct(e, o, c),
|
|
1165
|
+
"text-anchor": St(e, o, c),
|
|
1166
|
+
"font-size": P(n, `${c}.labels.fontSize`, r),
|
|
1167
|
+
fill: P(n, `${c}.labels.color`, P(n, "chart.color", "#2A2A2A")),
|
|
1167
1168
|
stroke: i,
|
|
1168
1169
|
"paint-order": "stroke"
|
|
1169
|
-
},
|
|
1170
|
+
}, xt(e, t, o, c)));
|
|
1170
1171
|
});
|
|
1171
|
-
}),
|
|
1172
|
+
}), F("g", { "data-layer": "datapoint-labels" }, a.join(""));
|
|
1172
1173
|
}
|
|
1173
|
-
function
|
|
1174
|
+
function Et(e) {
|
|
1174
1175
|
return k(e.slotStartIndex ?? e.startAbs, 0);
|
|
1175
1176
|
}
|
|
1176
|
-
function
|
|
1177
|
+
function Dt(e, t) {
|
|
1177
1178
|
let n = Math.max(0, ...t.map((e) => M(e.plots).length));
|
|
1178
1179
|
return k(e.slotEndIndex ?? e.endAbs, n);
|
|
1179
1180
|
}
|
|
1180
|
-
function
|
|
1181
|
+
function Ot(e, t) {
|
|
1181
1182
|
let { drawingArea: n, config: r } = e;
|
|
1182
|
-
return
|
|
1183
|
+
return P(r, "chart.grid.position", "middle") === "middle" ? n.width / Math.max(1, t) : n.width / Math.max(1, t - 1);
|
|
1183
1184
|
}
|
|
1184
|
-
function
|
|
1185
|
-
let { drawingArea: r, config: i } = e, a =
|
|
1186
|
-
return
|
|
1185
|
+
function kt(e, t, n) {
|
|
1186
|
+
let { drawingArea: r, config: i } = e, a = Ot(e, n);
|
|
1187
|
+
return P(i, "chart.grid.position", "middle") === "middle" ? r.left + a * t : r.left + a * t - a / 2;
|
|
1187
1188
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
1189
|
+
function At(e, t) {
|
|
1190
|
+
return Ot(e, t);
|
|
1190
1191
|
}
|
|
1191
|
-
function
|
|
1192
|
+
function jt(e, t, n, r, i, a) {
|
|
1192
1193
|
let { drawingArea: o } = e, s = t.caption ?? {};
|
|
1193
1194
|
if (!s.text) return "";
|
|
1194
|
-
let c =
|
|
1195
|
-
return
|
|
1195
|
+
let c = At(e, a) * i, l = s.width === "auto" ? c : k(s.width, c), u = kt(e, r, a) - (s.width === "auto" ? 0 : l / 2 - c / 2), d = o.top + k(s.offsetY, 0);
|
|
1196
|
+
return F("foreignObject", {
|
|
1196
1197
|
"data-key": `highlight_area_caption_${n}`,
|
|
1197
1198
|
x: u,
|
|
1198
1199
|
y: d,
|
|
1199
1200
|
width: l,
|
|
1200
1201
|
height: 1,
|
|
1201
1202
|
overflow: "visible"
|
|
1202
|
-
},
|
|
1203
|
+
}, F("div", {
|
|
1203
1204
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
1204
1205
|
"data-cy": "highlight-area-caption",
|
|
1205
1206
|
style: [
|
|
@@ -1209,44 +1210,44 @@ function At(e, t, n, r, i, a) {
|
|
|
1209
1210
|
`color:${s.color || "#2A2A2A"}`,
|
|
1210
1211
|
`font-weight:${s.bold ? "bold" : "normal"}`
|
|
1211
1212
|
].join(";")
|
|
1212
|
-
},
|
|
1213
|
+
}, w(s.text)));
|
|
1213
1214
|
}
|
|
1214
|
-
function
|
|
1215
|
-
let { config: n, drawingArea: r } = e,
|
|
1216
|
-
if (!
|
|
1217
|
-
let
|
|
1218
|
-
return
|
|
1215
|
+
function Mt(e, t) {
|
|
1216
|
+
let { config: n, drawingArea: r } = e, i = M(P(n, "chart.highlightArea", []));
|
|
1217
|
+
if (!i.length) return "";
|
|
1218
|
+
let a = Math.max(1, ...t.map((e) => M(e.plots).length)), o = Et(e), s = Dt(e, t), c = [];
|
|
1219
|
+
return i.forEach((t, n) => {
|
|
1219
1220
|
if (!t?.show) return;
|
|
1220
|
-
let
|
|
1221
|
-
if (
|
|
1222
|
-
for (let
|
|
1223
|
-
if (
|
|
1224
|
-
let
|
|
1225
|
-
|
|
1221
|
+
let i = k(t.from, 0), l = Math.min(k(t.to, i), a - 1);
|
|
1222
|
+
if (l < i) return;
|
|
1223
|
+
for (let u = i; u <= l; u += 1) {
|
|
1224
|
+
if (u < o || u > s - 1) continue;
|
|
1225
|
+
let i = u - o;
|
|
1226
|
+
c.push(A("rect", {
|
|
1226
1227
|
"data-cy": "highlight-area",
|
|
1227
|
-
"data-key": `highlight_area_${n}_${
|
|
1228
|
-
x:
|
|
1228
|
+
"data-key": `highlight_area_${n}_${u}`,
|
|
1229
|
+
x: kt(e, i, a),
|
|
1229
1230
|
y: r.top,
|
|
1230
|
-
width:
|
|
1231
|
+
width: At(e, a),
|
|
1231
1232
|
height: Math.max(1, r.height),
|
|
1232
|
-
fill:
|
|
1233
|
+
fill: f(t.color, k(t.opacity, 20)),
|
|
1233
1234
|
"pointer-events": "none"
|
|
1234
1235
|
}));
|
|
1235
1236
|
}
|
|
1236
|
-
let
|
|
1237
|
-
|
|
1238
|
-
}),
|
|
1237
|
+
let u = Math.max(i, o);
|
|
1238
|
+
u <= Math.min(l, s - 1) && c.push(jt(e, t, n, u - o, l - i + 1, a));
|
|
1239
|
+
}), c.length ? F("g", { "data-layer": "highlight-areas" }, c.join("")) : "";
|
|
1239
1240
|
}
|
|
1240
|
-
function
|
|
1241
|
+
function Nt(e, t) {
|
|
1241
1242
|
if (t == null) return null;
|
|
1242
1243
|
let { drawingArea: n, scale: r } = e, i = U(e), a = r.max - r.min || 1;
|
|
1243
1244
|
return i - (Number(t) - 0) / a * n.height;
|
|
1244
1245
|
}
|
|
1245
|
-
function
|
|
1246
|
+
function Pt(e) {
|
|
1246
1247
|
return j(e.text, k(e.fontSize, 12));
|
|
1247
1248
|
}
|
|
1248
|
-
function
|
|
1249
|
-
let r = k(e.fontSize, 12), i = e.padding ?? {}, a = e.border ?? {}, o =
|
|
1249
|
+
function Ft(e, t, n) {
|
|
1250
|
+
let r = k(e.fontSize, 12), i = e.padding ?? {}, a = e.border ?? {}, o = Pt(e), s = r, c;
|
|
1250
1251
|
return c = e.textAnchor === "middle" ? t - o / 2 - k(i.left, 0) : e.textAnchor === "end" ? t - o - k(i.right, 0) : t - k(i.left, 0), {
|
|
1251
1252
|
x: c,
|
|
1252
1253
|
y: n - s * .75 - k(i.top, 0),
|
|
@@ -1259,14 +1260,14 @@ function Pt(e, t, n) {
|
|
|
1259
1260
|
"stroke-width": a.strokeWidth
|
|
1260
1261
|
};
|
|
1261
1262
|
}
|
|
1262
|
-
function
|
|
1263
|
+
function It(e) {
|
|
1263
1264
|
let { config: t, drawingArea: n } = e;
|
|
1264
1265
|
if (Y(t)) return "";
|
|
1265
|
-
let r = M(
|
|
1266
|
+
let r = M(P(t, "chart.annotations", [])).filter((e) => e?.show && (e.yAxis?.yTop !== null || e.yAxis?.yBottom !== null) && (e.yAxis?.yTop !== void 0 || e.yAxis?.yBottom !== void 0));
|
|
1266
1267
|
if (!r.length) return "";
|
|
1267
|
-
let
|
|
1268
|
+
let i = [];
|
|
1268
1269
|
return r.forEach((t, r) => {
|
|
1269
|
-
let
|
|
1270
|
+
let a = t.yAxis ?? {}, o = a.label ?? {}, s = a.line ?? {}, c = a.area ?? {}, l = a.yTop, u = a.yBottom, d = l != null && u != null && l !== u, p = Nt(e, l), m = Nt(e, u), h = Number.isFinite(p), g = Number.isFinite(m);
|
|
1270
1271
|
if (!h && !g) return;
|
|
1271
1272
|
let _ = [];
|
|
1272
1273
|
if (h && _.push(A("line", {
|
|
@@ -1274,9 +1275,9 @@ function Ft(e) {
|
|
|
1274
1275
|
y1: p,
|
|
1275
1276
|
x2: n.right,
|
|
1276
1277
|
y2: p,
|
|
1277
|
-
stroke:
|
|
1278
|
-
"stroke-width":
|
|
1279
|
-
"stroke-dasharray":
|
|
1278
|
+
stroke: s.stroke,
|
|
1279
|
+
"stroke-width": s.strokeWidth,
|
|
1280
|
+
"stroke-dasharray": s.strokeDasharray,
|
|
1280
1281
|
"stroke-linecap": "round",
|
|
1281
1282
|
"data-cy": "xy-annotation-y-top-line"
|
|
1282
1283
|
})), g && _.push(A("line", {
|
|
@@ -1284,42 +1285,42 @@ function Ft(e) {
|
|
|
1284
1285
|
y1: m,
|
|
1285
1286
|
x2: n.right,
|
|
1286
1287
|
y2: m,
|
|
1287
|
-
stroke:
|
|
1288
|
-
"stroke-width":
|
|
1289
|
-
"stroke-dasharray":
|
|
1288
|
+
stroke: s.stroke,
|
|
1289
|
+
"stroke-width": s.strokeWidth,
|
|
1290
|
+
"stroke-dasharray": s.strokeDasharray,
|
|
1290
1291
|
"stroke-linecap": "round",
|
|
1291
1292
|
"data-cy": "xy-annotation-y-bottom-line"
|
|
1292
|
-
})),
|
|
1293
|
+
})), d && h && g && _.push(A("rect", {
|
|
1293
1294
|
x: n.left,
|
|
1294
1295
|
y: Math.min(p, m),
|
|
1295
1296
|
width: n.width,
|
|
1296
1297
|
height: Math.abs(p - m),
|
|
1297
|
-
fill:
|
|
1298
|
+
fill: f(c.fill, k(c.opacity, 20)),
|
|
1298
1299
|
"data-cy": "xy-annotation-y-area",
|
|
1299
1300
|
"pointer-events": "none"
|
|
1300
|
-
})),
|
|
1301
|
-
let e =
|
|
1301
|
+
})), o.text) {
|
|
1302
|
+
let e = o.padding ?? {}, t = h && g ? Math.min(p, m) : h ? p : m, r = (o.position === "start" ? n.left + k(e.left, 0) : n.right - k(e.right, 0)) + k(o.offsetX, 0), i = t - k(o.fontSize, 12) / 3 + k(o.offsetY, 0) - k(e.top, 0), a = Ft(o, r, i);
|
|
1302
1303
|
Number.isFinite(a.y) && Number.isFinite(i) && (_.push(A("rect", {
|
|
1303
1304
|
class: "vue-ui-xy-annotation-label-box",
|
|
1304
1305
|
...a,
|
|
1305
1306
|
"data-cy": "xy-annotation-label-box"
|
|
1306
|
-
})), _.push(
|
|
1307
|
+
})), _.push(I(o.text, {
|
|
1307
1308
|
class: "vue-ui-xy-annotation-label",
|
|
1308
1309
|
x: r,
|
|
1309
1310
|
y: i,
|
|
1310
|
-
"font-size":
|
|
1311
|
-
fill:
|
|
1312
|
-
"text-anchor":
|
|
1311
|
+
"font-size": o.fontSize,
|
|
1312
|
+
fill: o.color,
|
|
1313
|
+
"text-anchor": o.textAnchor,
|
|
1313
1314
|
"data-cy": "xy-annotation-label"
|
|
1314
1315
|
})));
|
|
1315
1316
|
}
|
|
1316
|
-
|
|
1317
|
+
i.push(F("g", {
|
|
1317
1318
|
"data-layer": "annotation",
|
|
1318
1319
|
"data-key": `annotation_y_${r}`
|
|
1319
1320
|
}, _.join("")));
|
|
1320
|
-
}),
|
|
1321
|
+
}), i.length ? F("g", { "data-layer": "annotations" }, i.join("")) : "";
|
|
1321
1322
|
}
|
|
1322
|
-
function
|
|
1323
|
+
function Lt(e, t) {
|
|
1323
1324
|
let n = e.additionalSvgContent;
|
|
1324
1325
|
return typeof n == "function" ? n({
|
|
1325
1326
|
width: e.width,
|
|
@@ -1333,54 +1334,54 @@ function It(e, t) {
|
|
|
1333
1334
|
}))
|
|
1334
1335
|
}) ?? "" : n ?? "";
|
|
1335
1336
|
}
|
|
1336
|
-
async function
|
|
1337
|
-
let t = e.config, n = k(e.width, t.chart.width ?? 1e3), r = k(e.height, t.chart.height ?? 600), i =
|
|
1337
|
+
async function Rt(e) {
|
|
1338
|
+
let t = e.config, n = k(e.width, t.chart.width ?? 1e3), r = k(e.height, t.chart.height ?? 600), i = ve({
|
|
1338
1339
|
...e,
|
|
1339
1340
|
config: t,
|
|
1340
1341
|
width: n,
|
|
1341
1342
|
height: r
|
|
1342
|
-
}), a =
|
|
1343
|
+
}), a = Me({
|
|
1343
1344
|
...e,
|
|
1344
1345
|
config: t,
|
|
1345
1346
|
width: n,
|
|
1346
1347
|
height: r,
|
|
1347
|
-
scale:
|
|
1348
|
+
scale: pe(t, e.scale, i)
|
|
1348
1349
|
}, i), o = a.series;
|
|
1349
1350
|
return `
|
|
1350
1351
|
<svg
|
|
1351
|
-
xmlns="${
|
|
1352
|
+
xmlns="${T}"
|
|
1352
1353
|
width="100%"
|
|
1353
1354
|
viewBox="0 0 ${n} ${r}"
|
|
1354
1355
|
role="img"
|
|
1355
1356
|
>
|
|
1356
|
-
${
|
|
1357
|
+
${ie()}
|
|
1358
|
+
${yt(a)}
|
|
1359
|
+
${at(a, o)}
|
|
1360
|
+
${Ee(a, o)}
|
|
1361
|
+
${De(a)}
|
|
1357
1362
|
${vt(a)}
|
|
1358
|
-
${
|
|
1359
|
-
${
|
|
1360
|
-
${
|
|
1361
|
-
${
|
|
1362
|
-
${
|
|
1363
|
-
${
|
|
1364
|
-
${
|
|
1365
|
-
${
|
|
1366
|
-
${
|
|
1367
|
-
${
|
|
1368
|
-
${
|
|
1363
|
+
${Mt(a, o)}
|
|
1364
|
+
${He(a)}
|
|
1365
|
+
${await tt(a, o)}
|
|
1366
|
+
${Ne(a)}
|
|
1367
|
+
${et(a)}
|
|
1368
|
+
${await $e(a, o)}
|
|
1369
|
+
${Re(a, o)}
|
|
1370
|
+
${gt(a, o)}
|
|
1371
|
+
${ot(a, o)}
|
|
1372
|
+
${lt(a, o)}
|
|
1373
|
+
${dt(a, o)}
|
|
1369
1374
|
${ht(a, o)}
|
|
1370
|
-
${
|
|
1371
|
-
${
|
|
1372
|
-
${
|
|
1373
|
-
${
|
|
1374
|
-
${wt(a, o)}
|
|
1375
|
-
${nt(a, o)}
|
|
1376
|
-
${Ft(a)}
|
|
1377
|
-
${It(a, o)}
|
|
1375
|
+
${Tt(a, o)}
|
|
1376
|
+
${rt(a, o)}
|
|
1377
|
+
${It(a)}
|
|
1378
|
+
${Lt(a, o)}
|
|
1378
1379
|
</svg>`.trim();
|
|
1379
1380
|
}
|
|
1380
1381
|
//#endregion
|
|
1381
1382
|
//#region src/svg/vue-ui-xy/index.js
|
|
1382
|
-
async function
|
|
1383
|
-
return await
|
|
1383
|
+
async function zt(e = {}) {
|
|
1384
|
+
return await Rt(de(e));
|
|
1384
1385
|
}
|
|
1385
1386
|
//#endregion
|
|
1386
|
-
export {
|
|
1387
|
+
export { zt as t };
|