vue-data-ui 3.22.7 → 3.22.8
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-16uF1ayB.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-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-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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-CLn1VXJ9.js} +20 -20
- 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/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +1757 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/vue-ui-chestnut-RfWMGUD-.js +2010 -0
- package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
- package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
- package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
- package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
- package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
- package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
- package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
- package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
- package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
- package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
- package/package.json +1 -1
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
- package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as e, D as t, F as n, G as r, J as i, Kt as a, Lt as o, M as s, Mt as c, O as l, P as u, R as d, Rt as f, U as p, V as m, Wt as h, a as g, b as _, c as v, et as y, g as b, gt as x, h as S, i as C, j as w, s as ee, t as te, z as T, zt as E } from "./lib-JqW18y5I.js";
|
|
2
2
|
import { t as D } from "./useTimeLabels-BmBRv27Y.js";
|
|
3
3
|
import { t as O } from "./useConfig-DYM3f6EI.js";
|
|
4
4
|
import { t as ne } 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 P, m as F, p as I, u as L, v as R } from "./render-common-
|
|
5
|
+
import { _ as k, d as A, f as j, g as M, h as N, l as P, m as F, p as I, u as L, v as R } from "./render-common-CLn1VXJ9.js";
|
|
6
6
|
//#region src/svg/vue-ui-xy/create.js
|
|
7
7
|
var { vue_ui_xy: z } = O();
|
|
8
8
|
function re({ config: e = {}, dataset: t = [] } = {}) {
|
|
@@ -23,7 +23,7 @@ function re({ config: e = {}, dataset: t = [] } = {}) {
|
|
|
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 : c
|
|
27
27
|
};
|
|
28
28
|
let o = a({
|
|
29
29
|
userConfig: n,
|
|
@@ -34,7 +34,7 @@ function re({ config: e = {}, dataset: t = [] } = {}) {
|
|
|
34
34
|
});
|
|
35
35
|
return {
|
|
36
36
|
...o,
|
|
37
|
-
customPalette: o.customPalette?.length ? o.customPalette :
|
|
37
|
+
customPalette: o.customPalette?.length ? o.customPalette : h[i] || c
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
function B(e) {
|
|
@@ -54,7 +54,7 @@ function oe({ dataset: e, config: t }) {
|
|
|
54
54
|
ticks: [0, 1]
|
|
55
55
|
};
|
|
56
56
|
let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a = ie(r) ? Number(r) : Math.min(...n), o = ie(i) ? Number(i) : Math.max(...n);
|
|
57
|
-
return
|
|
57
|
+
return S(a === o ? a - 1 : a, a === o ? o + 1 : o, Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps)) ? Number(t.chart.grid.labels.xAxis.scaleSteps) : 6);
|
|
58
58
|
}
|
|
59
59
|
function se({ 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;
|
|
@@ -64,41 +64,41 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
|
|
|
64
64
|
let s = re({
|
|
65
65
|
config: t,
|
|
66
66
|
dataset: e
|
|
67
|
-
}),
|
|
67
|
+
}), l = {
|
|
68
68
|
top: s.chart.padding.top,
|
|
69
69
|
left: s.chart.padding.left,
|
|
70
70
|
right: n - s.chart.padding.right,
|
|
71
71
|
bottom: r - s.chart.padding.bottom
|
|
72
72
|
};
|
|
73
|
-
|
|
74
|
-
let
|
|
73
|
+
l.width = l.right - l.left, l.height = l.bottom - l.top;
|
|
74
|
+
let u = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), d = S(Math.min(0, ...u), Math.max(1, ...u), 6), f = e.some((e) => Array.isArray(e.series) ? e.series.some(B) : !1), p = f ? oe({
|
|
75
75
|
dataset: e,
|
|
76
76
|
config: s
|
|
77
|
-
}) : null,
|
|
77
|
+
}) : null, m = Math.max(0, ...e.map((e) => e.series?.length || 0)), h = (e) => m <= 1 ? l.left + l.width / 2 : l.left + e / (m - 1) * l.width, g = (e, t) => f ? B(e) ? se({
|
|
78
78
|
xValue: e.x,
|
|
79
|
-
xScale:
|
|
80
|
-
drawingArea:
|
|
79
|
+
xScale: p,
|
|
80
|
+
drawingArea: l,
|
|
81
81
|
config: s
|
|
82
|
-
}) : null :
|
|
83
|
-
let t = (Number(e) -
|
|
84
|
-
return
|
|
85
|
-
},
|
|
82
|
+
}) : null : h(t), v = (e) => {
|
|
83
|
+
let t = (Number(e) - d.min) / (d.max - d.min || 1);
|
|
84
|
+
return l.bottom - t * l.height;
|
|
85
|
+
}, y = Array.isArray(s.customPalette) ? s.customPalette : [], b = y.length ? y : c;
|
|
86
86
|
return {
|
|
87
87
|
width: n,
|
|
88
88
|
height: r,
|
|
89
89
|
selectedXIndex: i,
|
|
90
90
|
dataset: e,
|
|
91
91
|
config: s,
|
|
92
|
-
drawingArea:
|
|
93
|
-
scale:
|
|
94
|
-
xScale:
|
|
95
|
-
isContinuous:
|
|
92
|
+
drawingArea: l,
|
|
93
|
+
scale: d,
|
|
94
|
+
xScale: p,
|
|
95
|
+
isContinuous: f,
|
|
96
96
|
series: e.map((e, t) => {
|
|
97
|
-
let n = (e.color ? _(e.color) : "") ||
|
|
97
|
+
let n = (e.color ? _(e.color) : "") || b[t % b.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
|
-
x:
|
|
101
|
-
y: n === null || !Number.isFinite(Number(n)) ? null :
|
|
100
|
+
x: g(e, t),
|
|
101
|
+
y: n === null || !Number.isFinite(Number(n)) ? null : v(n),
|
|
102
102
|
value: n,
|
|
103
103
|
index: t,
|
|
104
104
|
rawX: B(e) ? Number(e.x) : null,
|
|
@@ -183,7 +183,7 @@ 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 ve =
|
|
186
|
+
var ve = r();
|
|
187
187
|
function W(e) {
|
|
188
188
|
return ve;
|
|
189
189
|
}
|
|
@@ -208,7 +208,7 @@ function Ce(e, t, n) {
|
|
|
208
208
|
}
|
|
209
209
|
function we(e, t, n) {
|
|
210
210
|
let { config: r } = e;
|
|
211
|
-
return I(r, "line.area.useGradient", !1) ? `url(#${rt(e, n)})` :
|
|
211
|
+
return I(r, "line.area.useGradient", !1) ? `url(#${rt(e, n)})` : f(t.color, k(I(r, "line.area.opacity", 30), 30));
|
|
212
212
|
}
|
|
213
213
|
function K(e, t, n, r) {
|
|
214
214
|
return I(e.config, "bar.useGradient", !1) ? r >= 0 ? `url(#${G(e, n, "pos")})` : `url(#${G(e, n, "neg")})` : t.color;
|
|
@@ -227,11 +227,11 @@ function Te(e, t) {
|
|
|
227
227
|
}),
|
|
228
228
|
A("stop", {
|
|
229
229
|
offset: "62%",
|
|
230
|
-
"stop-color":
|
|
230
|
+
"stop-color": E(_(t.color), .02)
|
|
231
231
|
}),
|
|
232
232
|
A("stop", {
|
|
233
233
|
offset: "100%",
|
|
234
|
-
"stop-color":
|
|
234
|
+
"stop-color": E(_(t.color), .05)
|
|
235
235
|
})
|
|
236
236
|
].join(""))), r.push(L("linearGradient", {
|
|
237
237
|
id: G(e, n, "neg"),
|
|
@@ -240,11 +240,11 @@ function Te(e, t) {
|
|
|
240
240
|
}, [
|
|
241
241
|
A("stop", {
|
|
242
242
|
offset: "0%",
|
|
243
|
-
"stop-color":
|
|
243
|
+
"stop-color": E(_(t.color), .05)
|
|
244
244
|
}),
|
|
245
245
|
A("stop", {
|
|
246
246
|
offset: "38%",
|
|
247
|
-
"stop-color":
|
|
247
|
+
"stop-color": E(_(t.color), .02)
|
|
248
248
|
}),
|
|
249
249
|
A("stop", {
|
|
250
250
|
offset: "100%",
|
|
@@ -261,7 +261,7 @@ function Te(e, t) {
|
|
|
261
261
|
fy: "50%"
|
|
262
262
|
}, [A("stop", {
|
|
263
263
|
offset: "0%",
|
|
264
|
-
"stop-color":
|
|
264
|
+
"stop-color": E(_(t.color), .05)
|
|
265
265
|
}), A("stop", {
|
|
266
266
|
offset: "100%",
|
|
267
267
|
"stop-color": _(t.color)
|
|
@@ -269,7 +269,7 @@ function Te(e, t) {
|
|
|
269
269
|
id: be(e, i),
|
|
270
270
|
gradientTransform: "rotate(90)"
|
|
271
271
|
}, t.temperatureColors.map((e, n) => A("stop", {
|
|
272
|
-
offset:
|
|
272
|
+
offset: o(n, t.temperatureColors.length),
|
|
273
273
|
"stop-color": _(e)
|
|
274
274
|
})).join("")));
|
|
275
275
|
}), t.filter((e) => e.type === "plot").forEach((t, i) => {
|
|
@@ -282,7 +282,7 @@ function Te(e, t) {
|
|
|
282
282
|
fy: "50%"
|
|
283
283
|
}, [A("stop", {
|
|
284
284
|
offset: "0%",
|
|
285
|
-
"stop-color":
|
|
285
|
+
"stop-color": E(_(t.color), .05)
|
|
286
286
|
}), A("stop", {
|
|
287
287
|
offset: "100%",
|
|
288
288
|
"stop-color": _(t.color)
|
|
@@ -308,13 +308,13 @@ function J(e) {
|
|
|
308
308
|
return I(e, "chart.grid.labels.yAxis.position", "left") === "right";
|
|
309
309
|
}
|
|
310
310
|
function De(e, t) {
|
|
311
|
-
let n =
|
|
311
|
+
let n = i({
|
|
312
312
|
p: I(t, "chart.labels.prefix", ""),
|
|
313
313
|
v: e,
|
|
314
314
|
s: I(t, "chart.labels.suffix", ""),
|
|
315
315
|
r: I(t, "chart.grid.labels.yAxis.rounding", 0)
|
|
316
316
|
});
|
|
317
|
-
return
|
|
317
|
+
return C(I(t, "chart.grid.labels.yAxis.formatter", null), e, n, t);
|
|
318
318
|
}
|
|
319
319
|
function Y(e) {
|
|
320
320
|
return !!I(e, "chart.grid.labels.yAxis.stacked", !1);
|
|
@@ -323,7 +323,7 @@ function X(e) {
|
|
|
323
323
|
return e != null && Number.isFinite(Number(e));
|
|
324
324
|
}
|
|
325
325
|
function Oe(e, t, n, r) {
|
|
326
|
-
return I(e, "chart.grid.labels.yAxis.useNiceScale", !0) ?
|
|
326
|
+
return I(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? S(t, n, r) : b(t, n, r);
|
|
327
327
|
}
|
|
328
328
|
function ke(e, t) {
|
|
329
329
|
let n = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite), r = I(e, "chart.grid.labels.yAxis.scaleMin", null), i = I(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);
|
|
@@ -361,15 +361,15 @@ function je(e, t) {
|
|
|
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 = I(n, "chart.grid.labels.axis.xLabel", ""), m = I(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, _ = gt(n) + k(I(n, "chart.labels.fontSize", 12), 12) * 1.1, v = k(I(n, "chart.padding.top", 12), 12), y = k(I(n, "chart.padding.right", 12), 12), b = k(I(n, "chart.padding.bottom", 12), 12), x = k(I(n, "chart.padding.left", 12), 12), S = k(I(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0),
|
|
364
|
+
}, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = I(n, "chart.grid.labels.axis.xLabel", ""), m = I(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, _ = gt(n) + k(I(n, "chart.labels.fontSize", 12), 12) * 1.1, v = k(I(n, "chart.padding.top", 12), 12), y = k(I(n, "chart.padding.right", 12), 12), b = k(I(n, "chart.padding.bottom", 12), 12), x = k(I(n, "chart.padding.left", 12), 12), S = k(I(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), C = k(I(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), w = s.left, ee = s.right, te = i - w - ee - 6 - x - y, T = {
|
|
365
365
|
top: v + _ + d,
|
|
366
|
-
right:
|
|
366
|
+
right: w + (J(n) ? 0 : C) + x + te,
|
|
367
367
|
bottom: a - h - b - S - f,
|
|
368
|
-
left:
|
|
368
|
+
left: w + (J(n) ? 0 : C) + x,
|
|
369
369
|
width: Math.max(1, te),
|
|
370
370
|
height: 1,
|
|
371
|
-
scaleLabelX:
|
|
372
|
-
rightScaleLabelX:
|
|
371
|
+
scaleLabelX: w,
|
|
372
|
+
rightScaleLabelX: ee,
|
|
373
373
|
scaleLabelsOffset: s.scaleLabelsOffset,
|
|
374
374
|
yAxisLabelWidth: s.yAxisLabelWidth,
|
|
375
375
|
individualOffsetX: 36
|
|
@@ -708,13 +708,13 @@ function We(e, t) {
|
|
|
708
708
|
return n.left + n.width * o;
|
|
709
709
|
}
|
|
710
710
|
function Ge(e, t, n) {
|
|
711
|
-
let { config: r } = e,
|
|
711
|
+
let { config: r } = e, a = i({
|
|
712
712
|
v: t,
|
|
713
713
|
p: I(r, "chart.labels.prefix", ""),
|
|
714
714
|
s: I(r, "chart.labels.suffix", ""),
|
|
715
715
|
r: I(r, "chart.grid.labels.xAxis.rounding", 0)
|
|
716
716
|
});
|
|
717
|
-
return
|
|
717
|
+
return C(I(r, "chart.grid.labels.xAxis.formatter", null), t, a, {
|
|
718
718
|
datapoint: t,
|
|
719
719
|
seriesIndex: null
|
|
720
720
|
});
|
|
@@ -752,7 +752,7 @@ async function Je(e, t) {
|
|
|
752
752
|
start: 0,
|
|
753
753
|
end: i
|
|
754
754
|
}), s = a.map((e) => e?.text ?? ""), c = o.map((e) => e?.text ?? ""), l = Math.min(k(r.modulo, 1), Math.max(1, new Set(s).size));
|
|
755
|
-
return
|
|
755
|
+
return ee(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, Math.max(1, l || 1), s, c, k(e.slotStartIndex ?? e.startAbs, 0), e.selectedXIndex ?? null, i);
|
|
756
756
|
}
|
|
757
757
|
async function Ye(e, t) {
|
|
758
758
|
return Z(e) ? Ke(e) : await Je(e, t);
|
|
@@ -767,31 +767,31 @@ async function Qe(e, t) {
|
|
|
767
767
|
let { config: n, drawingArea: r } = e;
|
|
768
768
|
if (!t[0] || !I(n, "chart.grid.labels.xAxisLabels.show", !0)) return "";
|
|
769
769
|
I(n, "chart.grid.labels.xAxisLabels", {});
|
|
770
|
-
let i = k(I(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), a = I(n, "chart.grid.labels.xAxisLabels.color", I(n, "chart.grid.labels.color", "#2A2A2A")),
|
|
771
|
-
return L("g", { "data-layer": "x-axis-labels" },
|
|
772
|
-
let
|
|
773
|
-
if (!
|
|
774
|
-
let
|
|
775
|
-
return String(
|
|
770
|
+
let i = k(I(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), a = I(n, "chart.grid.labels.xAxisLabels.color", I(n, "chart.grid.labels.color", "#2A2A2A")), o = Ze(e), s = Math.max(1, t[0].plots.length), c = await Ye(e, t), l = o > 0 ? "start" : o < 0 ? "end" : "middle";
|
|
771
|
+
return L("g", { "data-layer": "x-axis-labels" }, c.map((t, n) => {
|
|
772
|
+
let c = typeof t == "string" ? t : t?.text;
|
|
773
|
+
if (!c) return "";
|
|
774
|
+
let u = `translate(${Xe(e, t, n, s)}, ${r.bottom + i * 1.5}), rotate(${o})`;
|
|
775
|
+
return String(c).includes("\n") ? L("text", {
|
|
776
776
|
class: "vue-data-ui-time-label",
|
|
777
777
|
"data-cy": "time-label",
|
|
778
|
-
"text-anchor":
|
|
778
|
+
"text-anchor": l,
|
|
779
779
|
"font-size": i,
|
|
780
780
|
fill: a,
|
|
781
|
-
transform:
|
|
782
|
-
},
|
|
783
|
-
content: String(
|
|
781
|
+
transform: u
|
|
782
|
+
}, p({
|
|
783
|
+
content: String(c),
|
|
784
784
|
fontSize: i,
|
|
785
785
|
fill: a,
|
|
786
786
|
x: 0,
|
|
787
787
|
y: 0
|
|
788
|
-
})) : R(
|
|
788
|
+
})) : R(c, {
|
|
789
789
|
class: "vue-data-ui-time-label",
|
|
790
790
|
"data-cy": "time-label",
|
|
791
|
-
"text-anchor":
|
|
791
|
+
"text-anchor": l,
|
|
792
792
|
"font-size": i,
|
|
793
793
|
fill: a,
|
|
794
|
-
transform:
|
|
794
|
+
transform: u
|
|
795
795
|
});
|
|
796
796
|
}).join(""));
|
|
797
797
|
}
|
|
@@ -895,7 +895,7 @@ function it(e, t) {
|
|
|
895
895
|
y2: "100%"
|
|
896
896
|
}, [A("stop", {
|
|
897
897
|
offset: "0%",
|
|
898
|
-
"stop-color":
|
|
898
|
+
"stop-color": f(E(_(t.color), .03), r),
|
|
899
899
|
"stop-opacity": 1
|
|
900
900
|
}), A("stop", {
|
|
901
901
|
offset: "100%",
|
|
@@ -905,29 +905,29 @@ function it(e, t) {
|
|
|
905
905
|
return i ? L("defs", {}, i) : "";
|
|
906
906
|
}
|
|
907
907
|
function at(e, n) {
|
|
908
|
-
let { config:
|
|
909
|
-
return n.filter((e) => e.type === "line" && e.useArea).forEach((n,
|
|
910
|
-
let
|
|
911
|
-
if (
|
|
912
|
-
let
|
|
908
|
+
let { config: r } = e, i = !!I(r, "line.cutNullValues", !1), a = [];
|
|
909
|
+
return n.filter((e) => e.type === "line" && e.useArea).forEach((n, r) => {
|
|
910
|
+
let o = M(n.plots), s = o.filter((e) => e && e.value !== null);
|
|
911
|
+
if (s.length < 2) return;
|
|
912
|
+
let c = Number.isFinite(Number(n.__zeroY)) ? Number(n.__zeroY) : U(e), u = we(e, n, r);
|
|
913
913
|
if (n.smooth && !n.useStepper) {
|
|
914
|
-
|
|
915
|
-
e &&
|
|
914
|
+
w(i ? o : s, c, i).forEach((e) => {
|
|
915
|
+
e && a.push(A("path", {
|
|
916
916
|
d: e,
|
|
917
|
-
fill:
|
|
917
|
+
fill: u,
|
|
918
918
|
"data-cy": "datapoint-line-area-smooth"
|
|
919
919
|
}));
|
|
920
920
|
});
|
|
921
921
|
return;
|
|
922
922
|
}
|
|
923
|
-
(n.useStepper ?
|
|
924
|
-
|
|
923
|
+
(n.useStepper ? d(i ? o : s, c) : i ? l(o, c) : t(s, c)).split(";").filter(Boolean).forEach((e) => {
|
|
924
|
+
a.push(A("path", {
|
|
925
925
|
d: `M${e}Z`,
|
|
926
|
-
fill:
|
|
926
|
+
fill: u,
|
|
927
927
|
"data-cy": "datapoint-line-area-straight"
|
|
928
928
|
}));
|
|
929
929
|
});
|
|
930
|
-
}), L("g", { "data-layer": "line-areas" },
|
|
930
|
+
}), L("g", { "data-layer": "line-areas" }, a.join(""));
|
|
931
931
|
}
|
|
932
932
|
function ot(e, t) {
|
|
933
933
|
let n = k(t.slotStartIndex ?? t.startAbs, 0);
|
|
@@ -945,23 +945,23 @@ function st(e, t, n, r, i) {
|
|
|
945
945
|
"stroke-dasharray": i ? o * 2 : 0
|
|
946
946
|
});
|
|
947
947
|
}
|
|
948
|
-
function ct(
|
|
949
|
-
let { config:
|
|
950
|
-
return
|
|
951
|
-
let
|
|
952
|
-
if (!(
|
|
953
|
-
if (M(
|
|
954
|
-
let
|
|
955
|
-
(
|
|
956
|
-
|
|
948
|
+
function ct(t, r) {
|
|
949
|
+
let { config: i } = t, a = r.filter((e) => e.type === "line"), o = !!I(i, "line.cutNullValues", !1), c = [];
|
|
950
|
+
return a.forEach((r, a) => {
|
|
951
|
+
let l = o ? M(r.plots) : M(r.plots).filter((e) => e.value !== null), f = l.filter((e) => e.value !== null);
|
|
952
|
+
if (!(f.length < 2)) {
|
|
953
|
+
if (M(r.dashIndices).length > 0 && !r.useStepper) {
|
|
954
|
+
let e = ot(r, t);
|
|
955
|
+
(r.smooth || I(i, "line.smooth", !1) ? n(l, e) : m(l, e)).forEach((e) => {
|
|
956
|
+
e?.path && c.push(st(t, r, a, e.path, !!e.dashed));
|
|
957
957
|
});
|
|
958
958
|
return;
|
|
959
959
|
}
|
|
960
|
-
(
|
|
961
|
-
|
|
960
|
+
(r.useStepper ? d(l).split(";").filter(Boolean) : [r.smooth || I(i, "line.smooth", !1) ? o ? u(l) : s(f) : o ? e(l) : T(f, !1, !0)]).forEach((e) => {
|
|
961
|
+
e && c.push(st(t, r, a, e, !!r.dashed));
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
|
-
}), L("g", { "data-layer": "lines" },
|
|
964
|
+
}), L("g", { "data-layer": "lines" }, c.join(""));
|
|
965
965
|
}
|
|
966
966
|
function lt(e, t, n) {
|
|
967
967
|
let { config: r } = e;
|
|
@@ -1095,21 +1095,21 @@ function yt(e, t, n, r, i) {
|
|
|
1095
1095
|
return !n || n.value === null || n.value === void 0 || !Number.isFinite(Number(n.value)) || !I(e.config, "dataLabels.show", !0) || !I(e.config, `${i}.labels.show`, !1) ? !1 : !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || e.selectedSerieIndex === r || e.selectedMinimapIndex === r;
|
|
1096
1096
|
}
|
|
1097
1097
|
function bt(e, t, n, r) {
|
|
1098
|
-
let { config:
|
|
1099
|
-
p: t.prefix || I(
|
|
1098
|
+
let { config: a } = e, o = k(I(a, `${r}.labels.fontSize`, I(a, "chart.labels.fontSize", 12)), 12), s = I(a, `${r}.labels.color`, I(a, "chart.color", "#2A2A2A")), c = i({
|
|
1099
|
+
p: t.prefix || I(a, "chart.labels.prefix", ""),
|
|
1100
1100
|
v: n.value,
|
|
1101
|
-
s: t.suffix || I(
|
|
1102
|
-
r: I(
|
|
1101
|
+
s: t.suffix || I(a, "chart.labels.suffix", ""),
|
|
1102
|
+
r: I(a, `${r}.labels.rounding`, 0)
|
|
1103
1103
|
});
|
|
1104
|
-
return
|
|
1105
|
-
content: Z(e) && Number.isFinite(Number(n.x)) ? `x: ${
|
|
1104
|
+
return p({
|
|
1105
|
+
content: Z(e) && Number.isFinite(Number(n.x)) ? `x: ${i({
|
|
1106
1106
|
v: n.x,
|
|
1107
|
-
r: I(
|
|
1108
|
-
})}\ny: ${c}` :
|
|
1107
|
+
r: I(a, "chart.grid.labels.xAxis.rounding", 0)
|
|
1108
|
+
})}\ny: ${c}` : C(I(a, `${r}.labels.formatter`, null), n.value, c, {
|
|
1109
1109
|
datapoint: n,
|
|
1110
1110
|
serie: t
|
|
1111
1111
|
}),
|
|
1112
|
-
fontSize:
|
|
1112
|
+
fontSize: o,
|
|
1113
1113
|
fill: s,
|
|
1114
1114
|
x: 0,
|
|
1115
1115
|
y: 0
|
|
@@ -1166,28 +1166,28 @@ function Ot(e, t, n) {
|
|
|
1166
1166
|
function kt(e, t) {
|
|
1167
1167
|
return Dt(e, t);
|
|
1168
1168
|
}
|
|
1169
|
-
function At(t, n, r, i, a
|
|
1170
|
-
let { drawingArea:
|
|
1171
|
-
if (!
|
|
1172
|
-
let
|
|
1169
|
+
function At(e, t, n, r, i, a) {
|
|
1170
|
+
let { drawingArea: o } = e, s = t.caption ?? {};
|
|
1171
|
+
if (!s.text) return "";
|
|
1172
|
+
let c = kt(e, a) * i, l = s.width === "auto" ? c : k(s.width, c), u = Ot(e, r, a) - (s.width === "auto" ? 0 : l / 2 - c / 2), d = o.top + k(s.offsetY, 0);
|
|
1173
1173
|
return L("foreignObject", {
|
|
1174
|
-
"data-key": `highlight_area_caption_${
|
|
1175
|
-
x:
|
|
1176
|
-
y:
|
|
1177
|
-
width:
|
|
1174
|
+
"data-key": `highlight_area_caption_${n}`,
|
|
1175
|
+
x: u,
|
|
1176
|
+
y: d,
|
|
1177
|
+
width: l,
|
|
1178
1178
|
height: 1,
|
|
1179
1179
|
overflow: "visible"
|
|
1180
1180
|
}, L("div", {
|
|
1181
1181
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
1182
1182
|
"data-cy": "highlight-area-caption",
|
|
1183
1183
|
style: [
|
|
1184
|
-
`padding:${k(
|
|
1185
|
-
`text-align:${
|
|
1186
|
-
`font-size:${k(
|
|
1187
|
-
`color:${
|
|
1188
|
-
`font-weight:${
|
|
1184
|
+
`padding:${k(s.padding, 0)}px`,
|
|
1185
|
+
`text-align:${s.textAlign || "center"}`,
|
|
1186
|
+
`font-size:${k(s.fontSize, 12)}px`,
|
|
1187
|
+
`color:${s.color || "#2A2A2A"}`,
|
|
1188
|
+
`font-weight:${s.bold ? "bold" : "normal"}`
|
|
1189
1189
|
].join(";")
|
|
1190
|
-
},
|
|
1190
|
+
}, y(s.text)));
|
|
1191
1191
|
}
|
|
1192
1192
|
function jt(e, t) {
|
|
1193
1193
|
let { config: n, drawingArea: r } = e, i = M(I(n, "chart.highlightArea", []));
|
|
@@ -1195,24 +1195,24 @@ function jt(e, t) {
|
|
|
1195
1195
|
let a = Math.max(1, ...t.map((e) => M(e.plots).length)), o = Tt(e), s = Et(e, t), c = [];
|
|
1196
1196
|
return i.forEach((t, n) => {
|
|
1197
1197
|
if (!t?.show) return;
|
|
1198
|
-
let i = k(t.from, 0),
|
|
1199
|
-
if (
|
|
1200
|
-
for (let
|
|
1201
|
-
if (
|
|
1202
|
-
let i =
|
|
1198
|
+
let i = k(t.from, 0), l = Math.min(k(t.to, i), a - 1);
|
|
1199
|
+
if (l < i) return;
|
|
1200
|
+
for (let u = i; u <= l; u += 1) {
|
|
1201
|
+
if (u < o || u > s - 1) continue;
|
|
1202
|
+
let i = u - o;
|
|
1203
1203
|
c.push(A("rect", {
|
|
1204
1204
|
"data-cy": "highlight-area",
|
|
1205
|
-
"data-key": `highlight_area_${n}_${
|
|
1205
|
+
"data-key": `highlight_area_${n}_${u}`,
|
|
1206
1206
|
x: Ot(e, i, a),
|
|
1207
1207
|
y: r.top,
|
|
1208
1208
|
width: kt(e, a),
|
|
1209
1209
|
height: Math.max(1, r.height),
|
|
1210
|
-
fill:
|
|
1210
|
+
fill: f(t.color, k(t.opacity, 20)),
|
|
1211
1211
|
"pointer-events": "none"
|
|
1212
1212
|
}));
|
|
1213
1213
|
}
|
|
1214
|
-
let
|
|
1215
|
-
|
|
1214
|
+
let u = Math.max(i, o);
|
|
1215
|
+
u <= Math.min(l, s - 1) && c.push(At(e, t, n, u - o, l - i + 1, a));
|
|
1216
1216
|
}), c.length ? L("g", { "data-layer": "highlight-areas" }, c.join("")) : "";
|
|
1217
1217
|
}
|
|
1218
1218
|
function Mt(e, t) {
|
|
@@ -1244,7 +1244,7 @@ function Ft(e) {
|
|
|
1244
1244
|
if (!r.length) return "";
|
|
1245
1245
|
let i = [];
|
|
1246
1246
|
return r.forEach((t, r) => {
|
|
1247
|
-
let a = t.yAxis ?? {}, o = a.label ?? {}, s = a.line ?? {}, c = a.area ?? {},
|
|
1247
|
+
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 = Mt(e, l), m = Mt(e, u), h = Number.isFinite(p), g = Number.isFinite(m);
|
|
1248
1248
|
if (!h && !g) return;
|
|
1249
1249
|
let _ = [];
|
|
1250
1250
|
if (h && _.push(A("line", {
|
|
@@ -1267,12 +1267,12 @@ function Ft(e) {
|
|
|
1267
1267
|
"stroke-dasharray": s.strokeDasharray,
|
|
1268
1268
|
"stroke-linecap": "round",
|
|
1269
1269
|
"data-cy": "xy-annotation-y-bottom-line"
|
|
1270
|
-
})),
|
|
1270
|
+
})), d && h && g && _.push(A("rect", {
|
|
1271
1271
|
x: n.left,
|
|
1272
1272
|
y: Math.min(p, m),
|
|
1273
1273
|
width: n.width,
|
|
1274
1274
|
height: Math.abs(p - m),
|
|
1275
|
-
fill:
|
|
1275
|
+
fill: f(c.fill, k(c.opacity, 20)),
|
|
1276
1276
|
"data-cy": "xy-annotation-y-area",
|
|
1277
1277
|
"pointer-events": "none"
|
|
1278
1278
|
})), o.text) {
|
|
@@ -1326,7 +1326,7 @@ async function Lt(e) {
|
|
|
1326
1326
|
}, i), o = a.series;
|
|
1327
1327
|
return `
|
|
1328
1328
|
<svg
|
|
1329
|
-
xmlns="${
|
|
1329
|
+
xmlns="${te}"
|
|
1330
1330
|
width="100%"
|
|
1331
1331
|
viewBox="0 0 ${n} ${r}"
|
|
1332
1332
|
role="img"
|