vue-data-ui 3.22.8 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
- 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 +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { B as e,
|
|
1
|
+
import { B as e, Bt as t, F as n, Gt as r, H as i, I as a, K as o, M as s, N as c, Nt as l, O as u, Rt as d, V as f, W as p, Y as m, _ as h, _t as g, a as _, c as v, g as y, i as b, k as x, qt as S, s as ee, t as C, tt as te, x as w, z as T, zt as E } from "./lib-CnHx5WfV.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-DJXFRGhU.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 = [] } = {}) {
|
|
9
|
-
let n = e ?? {},
|
|
9
|
+
let n = e ?? {}, i = S({
|
|
10
10
|
userConfig: n,
|
|
11
11
|
defaultConfig: z
|
|
12
12
|
});
|
|
13
|
-
|
|
13
|
+
g(n, "chart.highlightArea") && (Array.isArray(n.chart.highlightArea) ? i.chart.highlightArea = n.chart.highlightArea.map((e) => S({
|
|
14
14
|
defaultConfig: z.chart.highlightArea,
|
|
15
15
|
userConfig: e
|
|
16
|
-
})) :
|
|
16
|
+
})) : i.chart.highlightArea = [S({
|
|
17
17
|
defaultConfig: z.chart.highlightArea,
|
|
18
18
|
userConfig: n.chart.highlightArea
|
|
19
|
-
})]),
|
|
19
|
+
})]), g(n, "chart.annotations") && Array.isArray(n.chart.annotations) && n.chart.annotations.length ? i.chart.annotations = n.chart.annotations.map((e) => S({
|
|
20
20
|
defaultConfig: z.chart.annotations[0],
|
|
21
21
|
userConfig: e
|
|
22
|
-
})) :
|
|
23
|
-
let
|
|
24
|
-
if (!
|
|
25
|
-
...
|
|
26
|
-
customPalette:
|
|
22
|
+
})) : i.chart.annotations = [], g(n, "chart.grid.position") && n.chart.grid.position === "start" && t.some((e) => e.type === "bar") && (i.chart.grid.position = "middle");
|
|
23
|
+
let a = i.theme;
|
|
24
|
+
if (!a) return {
|
|
25
|
+
...i,
|
|
26
|
+
customPalette: i.customPalette?.length ? i.customPalette : l
|
|
27
27
|
};
|
|
28
|
-
let o =
|
|
28
|
+
let o = S({
|
|
29
29
|
userConfig: n,
|
|
30
|
-
defaultConfig:
|
|
31
|
-
userConfig: ne[
|
|
32
|
-
defaultConfig:
|
|
30
|
+
defaultConfig: S({
|
|
31
|
+
userConfig: ne[a] || {},
|
|
32
|
+
defaultConfig: i
|
|
33
33
|
})
|
|
34
34
|
});
|
|
35
35
|
return {
|
|
36
36
|
...o,
|
|
37
|
-
customPalette: o.customPalette?.length ? o.customPalette :
|
|
37
|
+
customPalette: o.customPalette?.length ? o.customPalette : r[a] || l
|
|
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 y(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
|
+
}), c = {
|
|
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 u = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), d =
|
|
73
|
+
c.width = c.right - c.left, c.height = c.bottom - c.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 = y(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, m = Math.max(0, ...e.map((e) => e.series?.length || 0)), h = (e) => m <= 1 ?
|
|
77
|
+
}) : null, m = Math.max(0, ...e.map((e) => e.series?.length || 0)), h = (e) => m <= 1 ? c.left + c.width / 2 : c.left + e / (m - 1) * c.width, g = (e, t) => f ? B(e) ? se({
|
|
78
78
|
xValue: e.x,
|
|
79
79
|
xScale: p,
|
|
80
|
-
drawingArea:
|
|
80
|
+
drawingArea: c,
|
|
81
81
|
config: s
|
|
82
|
-
}) : null : h(t),
|
|
82
|
+
}) : null : h(t), _ = (e) => {
|
|
83
83
|
let t = (Number(e) - d.min) / (d.max - d.min || 1);
|
|
84
|
-
return
|
|
85
|
-
},
|
|
84
|
+
return c.bottom - t * c.height;
|
|
85
|
+
}, v = Array.isArray(s.customPalette) ? s.customPalette : [], b = v.length ? v : l;
|
|
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:
|
|
92
|
+
drawingArea: c,
|
|
93
93
|
scale: d,
|
|
94
94
|
xScale: p,
|
|
95
95
|
isContinuous: f,
|
|
96
96
|
series: e.map((e, t) => {
|
|
97
|
-
let n = (e.color ?
|
|
97
|
+
let n = (e.color ? w(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
100
|
x: g(e, t),
|
|
101
|
-
y: n === null || !Number.isFinite(Number(n)) ? null :
|
|
101
|
+
y: n === null || !Number.isFinite(Number(n)) ? null : _(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 = o();
|
|
187
187
|
function W(e) {
|
|
188
188
|
return ve;
|
|
189
189
|
}
|
|
@@ -208,52 +208,52 @@ 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)})` : E(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;
|
|
215
215
|
}
|
|
216
|
-
function Te(e,
|
|
217
|
-
let { config:
|
|
218
|
-
return I(
|
|
219
|
-
|
|
220
|
-
id: G(e,
|
|
216
|
+
function Te(e, n) {
|
|
217
|
+
let { config: r } = e, i = [];
|
|
218
|
+
return I(r, "bar.useGradient", !1) && n.filter((e) => e.type === "bar").forEach((n, r) => {
|
|
219
|
+
i.push(L("linearGradient", {
|
|
220
|
+
id: G(e, r, "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": w(n.color)
|
|
227
227
|
}),
|
|
228
228
|
A("stop", {
|
|
229
229
|
offset: "62%",
|
|
230
|
-
"stop-color":
|
|
230
|
+
"stop-color": t(w(n.color), .02)
|
|
231
231
|
}),
|
|
232
232
|
A("stop", {
|
|
233
233
|
offset: "100%",
|
|
234
|
-
"stop-color":
|
|
234
|
+
"stop-color": t(w(n.color), .05)
|
|
235
235
|
})
|
|
236
|
-
].join(""))),
|
|
237
|
-
id: G(e,
|
|
236
|
+
].join(""))), i.push(L("linearGradient", {
|
|
237
|
+
id: G(e, r, "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": t(w(n.color), .05)
|
|
244
244
|
}),
|
|
245
245
|
A("stop", {
|
|
246
246
|
offset: "38%",
|
|
247
|
-
"stop-color":
|
|
247
|
+
"stop-color": t(w(n.color), .02)
|
|
248
248
|
}),
|
|
249
249
|
A("stop", {
|
|
250
250
|
offset: "100%",
|
|
251
|
-
"stop-color":
|
|
251
|
+
"stop-color": w(n.color)
|
|
252
252
|
})
|
|
253
253
|
].join("")));
|
|
254
|
-
}),
|
|
255
|
-
I(
|
|
256
|
-
id: ye(e,
|
|
254
|
+
}), n.filter((e) => e.type === "line").forEach((n, a) => {
|
|
255
|
+
I(r, "line.useGradient", !1) && i.push(L("radialGradient", {
|
|
256
|
+
id: ye(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": t(w(n.color), .05)
|
|
265
265
|
}), A("stop", {
|
|
266
266
|
offset: "100%",
|
|
267
|
-
"stop-color":
|
|
268
|
-
})].join(""))),
|
|
269
|
-
id: be(e,
|
|
267
|
+
"stop-color": w(n.color)
|
|
268
|
+
})].join(""))), n.temperatureColors && !n.isFlatTemperatureLine && i.push(L("linearGradient", {
|
|
269
|
+
id: be(e, a),
|
|
270
270
|
gradientTransform: "rotate(90)"
|
|
271
|
-
},
|
|
272
|
-
offset:
|
|
273
|
-
"stop-color":
|
|
271
|
+
}, n.temperatureColors.map((e, t) => A("stop", {
|
|
272
|
+
offset: d(t, n.temperatureColors.length),
|
|
273
|
+
"stop-color": w(e)
|
|
274
274
|
})).join("")));
|
|
275
|
-
}),
|
|
276
|
-
I(
|
|
277
|
-
id: Se(e,
|
|
275
|
+
}), n.filter((e) => e.type === "plot").forEach((n, a) => {
|
|
276
|
+
I(r, "plot.useGradient", !1) && i.push(L("radialGradient", {
|
|
277
|
+
id: Se(e, a),
|
|
278
278
|
cx: "50%",
|
|
279
279
|
cy: "50%",
|
|
280
280
|
r: "50%",
|
|
@@ -282,12 +282,12 @@ function Te(e, t) {
|
|
|
282
282
|
fy: "50%"
|
|
283
283
|
}, [A("stop", {
|
|
284
284
|
offset: "0%",
|
|
285
|
-
"stop-color":
|
|
285
|
+
"stop-color": t(w(n.color), .05)
|
|
286
286
|
}), A("stop", {
|
|
287
287
|
offset: "100%",
|
|
288
|
-
"stop-color":
|
|
288
|
+
"stop-color": w(n.color)
|
|
289
289
|
})].join("")));
|
|
290
|
-
}),
|
|
290
|
+
}), i.length ? L("defs", { "data-layer": "gradients" }, i.join("")) : "";
|
|
291
291
|
}
|
|
292
292
|
function Ee(e) {
|
|
293
293
|
let t = I(e.config, "chart.backgroundColor", "#FFFFFF");
|
|
@@ -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 = m({
|
|
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 b(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) ? y(t, n, r) : h(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,21 +361,21 @@ 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,
|
|
365
|
-
top: v +
|
|
366
|
-
right:
|
|
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, g = 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), ee = k(I(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left, te = s.right, w = i - C - te - 6 - x - y, T = {
|
|
365
|
+
top: v + g + d,
|
|
366
|
+
right: C + (J(n) ? 0 : ee) + x + w,
|
|
367
367
|
bottom: a - h - b - S - f,
|
|
368
|
-
left:
|
|
369
|
-
width: Math.max(1,
|
|
368
|
+
left: C + (J(n) ? 0 : ee) + x,
|
|
369
|
+
width: Math.max(1, w),
|
|
370
370
|
height: 1,
|
|
371
|
-
scaleLabelX:
|
|
372
|
-
rightScaleLabelX:
|
|
371
|
+
scaleLabelX: C,
|
|
372
|
+
rightScaleLabelX: te,
|
|
373
373
|
scaleLabelsOffset: s.scaleLabelsOffset,
|
|
374
374
|
yAxisLabelWidth: s.yAxisLabelWidth,
|
|
375
375
|
individualOffsetX: 36
|
|
376
376
|
};
|
|
377
377
|
T.height = Math.max(1, T.bottom - T.top);
|
|
378
|
-
let E = Y(n), D = E ?
|
|
378
|
+
let E = Y(n), D = E ? _(t) : t, O = Math.max(1, D.length), ne = E ? k(I(n, "chart.grid.labels.yAxis.gap", 12), 12) : 0, A = ne * Math.max(0, O - 1), j = Math.max(1, T.height - A), N = V(n), P = me(n, t), F = Math.max(1, ...t.map((e) => M(e.plots).length));
|
|
379
379
|
function L(t, n) {
|
|
380
380
|
if (Z(e)) {
|
|
381
381
|
let n = Number(t.rawX);
|
|
@@ -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, i = m({
|
|
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 b(I(r, "chart.grid.labels.xAxis.formatter", null), t, i, {
|
|
718
718
|
datapoint: t,
|
|
719
719
|
seriesIndex: null
|
|
720
720
|
});
|
|
@@ -761,7 +761,7 @@ function Xe(e, t, n, r) {
|
|
|
761
761
|
return Z(e) ? t.x : Q(e, n, r);
|
|
762
762
|
}
|
|
763
763
|
function Ze(e) {
|
|
764
|
-
return
|
|
764
|
+
return g(e.userConfig ?? e.sourceConfig ?? e.props?.config ?? {}, "chart.grid.labels.xAxisLabels.rotation") ? k(I(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0) : I(e.config, "chart.grid.labels.xAxisLabels.autoRotate.enable", !1) ? k(I(e.config, "chart.grid.labels.xAxisLabels.autoRotate.angle", 0), 0) : k(I(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0);
|
|
765
765
|
}
|
|
766
766
|
async function Qe(e, t) {
|
|
767
767
|
let { config: n, drawingArea: r } = e;
|
|
@@ -884,50 +884,50 @@ function nt(e, t) {
|
|
|
884
884
|
function rt(e, t) {
|
|
885
885
|
return `areaGradient_${t}_${W()}`;
|
|
886
886
|
}
|
|
887
|
-
function it(e,
|
|
888
|
-
let { config:
|
|
889
|
-
if (!I(
|
|
890
|
-
let
|
|
891
|
-
id: rt(e,
|
|
887
|
+
function it(e, n) {
|
|
888
|
+
let { config: r } = e;
|
|
889
|
+
if (!I(r, "line.area.useGradient", !1)) return "";
|
|
890
|
+
let i = k(I(r, "line.area.opacity", 30), 30), a = n.filter((e) => e.type === "line" && e.useArea).map((n, r) => L("linearGradient", {
|
|
891
|
+
id: rt(e, r),
|
|
892
892
|
x1: "0%",
|
|
893
893
|
x2: "0%",
|
|
894
894
|
y1: "0%",
|
|
895
895
|
y2: "100%"
|
|
896
896
|
}, [A("stop", {
|
|
897
897
|
offset: "0%",
|
|
898
|
-
"stop-color":
|
|
898
|
+
"stop-color": E(t(w(n.color), .03), i),
|
|
899
899
|
"stop-opacity": 1
|
|
900
900
|
}), A("stop", {
|
|
901
901
|
offset: "100%",
|
|
902
|
-
"stop-color":
|
|
902
|
+
"stop-color": n.color,
|
|
903
903
|
"stop-opacity": 0
|
|
904
904
|
})].join(""))).join("");
|
|
905
|
-
return
|
|
906
|
-
}
|
|
907
|
-
function at(e,
|
|
908
|
-
let { config:
|
|
909
|
-
return
|
|
910
|
-
let
|
|
911
|
-
if (
|
|
912
|
-
let c = Number.isFinite(Number(
|
|
913
|
-
if (
|
|
914
|
-
|
|
915
|
-
e &&
|
|
905
|
+
return a ? L("defs", {}, a) : "";
|
|
906
|
+
}
|
|
907
|
+
function at(e, t) {
|
|
908
|
+
let { config: n } = e, r = !!I(n, "line.cutNullValues", !1), i = [];
|
|
909
|
+
return t.filter((e) => e.type === "line" && e.useArea).forEach((t, n) => {
|
|
910
|
+
let a = M(t.plots), o = a.filter((e) => e && e.value !== null);
|
|
911
|
+
if (o.length < 2) return;
|
|
912
|
+
let c = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e), l = we(e, t, n);
|
|
913
|
+
if (t.smooth && !t.useStepper) {
|
|
914
|
+
s(r ? a : o, c, r).forEach((e) => {
|
|
915
|
+
e && i.push(A("path", {
|
|
916
916
|
d: e,
|
|
917
|
-
fill:
|
|
917
|
+
fill: l,
|
|
918
918
|
"data-cy": "datapoint-line-area-smooth"
|
|
919
919
|
}));
|
|
920
920
|
});
|
|
921
921
|
return;
|
|
922
922
|
}
|
|
923
|
-
(
|
|
924
|
-
|
|
923
|
+
(t.useStepper ? T(r ? a : o, c) : r ? x(a, c) : u(o, c)).split(";").filter(Boolean).forEach((e) => {
|
|
924
|
+
i.push(A("path", {
|
|
925
925
|
d: `M${e}Z`,
|
|
926
|
-
fill:
|
|
926
|
+
fill: l,
|
|
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" }, i.join(""));
|
|
931
931
|
}
|
|
932
932
|
function ot(e, t) {
|
|
933
933
|
let n = k(t.slotStartIndex ?? t.startAbs, 0);
|
|
@@ -946,22 +946,22 @@ function st(e, t, n, r, i) {
|
|
|
946
946
|
});
|
|
947
947
|
}
|
|
948
948
|
function ct(t, r) {
|
|
949
|
-
let { config:
|
|
950
|
-
return
|
|
951
|
-
let
|
|
952
|
-
if (!(
|
|
949
|
+
let { config: o } = t, s = r.filter((e) => e.type === "line"), l = !!I(o, "line.cutNullValues", !1), u = [];
|
|
950
|
+
return s.forEach((r, s) => {
|
|
951
|
+
let d = l ? M(r.plots) : M(r.plots).filter((e) => e.value !== null), p = d.filter((e) => e.value !== null);
|
|
952
|
+
if (!(p.length < 2)) {
|
|
953
953
|
if (M(r.dashIndices).length > 0 && !r.useStepper) {
|
|
954
954
|
let e = ot(r, t);
|
|
955
|
-
(r.smooth || I(
|
|
956
|
-
e?.path &&
|
|
955
|
+
(r.smooth || I(o, "line.smooth", !1) ? a(d, e) : i(d, e)).forEach((e) => {
|
|
956
|
+
e?.path && u.push(st(t, r, s, e.path, !!e.dashed));
|
|
957
957
|
});
|
|
958
958
|
return;
|
|
959
959
|
}
|
|
960
|
-
(r.useStepper ? d
|
|
961
|
-
e &&
|
|
960
|
+
(r.useStepper ? T(d).split(";").filter(Boolean) : [r.smooth || I(o, "line.smooth", !1) ? l ? n(d) : c(p) : l ? f(d) : e(p, !1, !0)]).forEach((e) => {
|
|
961
|
+
e && u.push(st(t, r, s, e, !!r.dashed));
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
|
-
}), L("g", { "data-layer": "lines" },
|
|
964
|
+
}), L("g", { "data-layer": "lines" }, u.join(""));
|
|
965
965
|
}
|
|
966
966
|
function lt(e, t, n) {
|
|
967
967
|
let { config: r } = e;
|
|
@@ -1095,22 +1095,22 @@ 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: i } = e, a = k(I(i, `${r}.labels.fontSize`, I(i, "chart.labels.fontSize", 12)), 12), o = I(i, `${r}.labels.color`, I(i, "chart.color", "#2A2A2A")), s = m({
|
|
1099
|
+
p: t.prefix || I(i, "chart.labels.prefix", ""),
|
|
1100
1100
|
v: n.value,
|
|
1101
|
-
s: t.suffix || I(
|
|
1102
|
-
r: I(
|
|
1101
|
+
s: t.suffix || I(i, "chart.labels.suffix", ""),
|
|
1102
|
+
r: I(i, `${r}.labels.rounding`, 0)
|
|
1103
1103
|
});
|
|
1104
1104
|
return p({
|
|
1105
|
-
content: Z(e) && Number.isFinite(Number(n.x)) ? `x: ${
|
|
1105
|
+
content: Z(e) && Number.isFinite(Number(n.x)) ? `x: ${m({
|
|
1106
1106
|
v: n.x,
|
|
1107
|
-
r: I(
|
|
1108
|
-
})}\ny: ${
|
|
1107
|
+
r: I(i, "chart.grid.labels.xAxis.rounding", 0)
|
|
1108
|
+
})}\ny: ${s}` : b(I(i, `${r}.labels.formatter`, null), n.value, s, {
|
|
1109
1109
|
datapoint: n,
|
|
1110
1110
|
serie: t
|
|
1111
1111
|
}),
|
|
1112
|
-
fontSize:
|
|
1113
|
-
fill:
|
|
1112
|
+
fontSize: a,
|
|
1113
|
+
fill: o,
|
|
1114
1114
|
x: 0,
|
|
1115
1115
|
y: 0
|
|
1116
1116
|
});
|
|
@@ -1187,7 +1187,7 @@ function At(e, t, n, r, i, a) {
|
|
|
1187
1187
|
`color:${s.color || "#2A2A2A"}`,
|
|
1188
1188
|
`font-weight:${s.bold ? "bold" : "normal"}`
|
|
1189
1189
|
].join(";")
|
|
1190
|
-
},
|
|
1190
|
+
}, te(s.text)));
|
|
1191
1191
|
}
|
|
1192
1192
|
function jt(e, t) {
|
|
1193
1193
|
let { config: n, drawingArea: r } = e, i = M(I(n, "chart.highlightArea", []));
|
|
@@ -1207,7 +1207,7 @@ function jt(e, t) {
|
|
|
1207
1207
|
y: r.top,
|
|
1208
1208
|
width: kt(e, a),
|
|
1209
1209
|
height: Math.max(1, r.height),
|
|
1210
|
-
fill:
|
|
1210
|
+
fill: E(t.color, k(t.opacity, 20)),
|
|
1211
1211
|
"pointer-events": "none"
|
|
1212
1212
|
}));
|
|
1213
1213
|
}
|
|
@@ -1244,44 +1244,44 @@ 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 ?? {}, l = a.yTop, u = a.yBottom, d = l != null && u != null && l !== u,
|
|
1248
|
-
if (!
|
|
1249
|
-
let
|
|
1250
|
-
if (
|
|
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, f = Mt(e, l), p = Mt(e, u), m = Number.isFinite(f), h = Number.isFinite(p);
|
|
1248
|
+
if (!m && !h) return;
|
|
1249
|
+
let g = [];
|
|
1250
|
+
if (m && g.push(A("line", {
|
|
1251
1251
|
x1: n.left,
|
|
1252
|
-
y1:
|
|
1252
|
+
y1: f,
|
|
1253
1253
|
x2: n.right,
|
|
1254
|
-
y2:
|
|
1254
|
+
y2: f,
|
|
1255
1255
|
stroke: s.stroke,
|
|
1256
1256
|
"stroke-width": s.strokeWidth,
|
|
1257
1257
|
"stroke-dasharray": s.strokeDasharray,
|
|
1258
1258
|
"stroke-linecap": "round",
|
|
1259
1259
|
"data-cy": "xy-annotation-y-top-line"
|
|
1260
|
-
})),
|
|
1260
|
+
})), h && g.push(A("line", {
|
|
1261
1261
|
x1: n.left,
|
|
1262
|
-
y1:
|
|
1262
|
+
y1: p,
|
|
1263
1263
|
x2: n.right,
|
|
1264
|
-
y2:
|
|
1264
|
+
y2: p,
|
|
1265
1265
|
stroke: s.stroke,
|
|
1266
1266
|
"stroke-width": s.strokeWidth,
|
|
1267
1267
|
"stroke-dasharray": s.strokeDasharray,
|
|
1268
1268
|
"stroke-linecap": "round",
|
|
1269
1269
|
"data-cy": "xy-annotation-y-bottom-line"
|
|
1270
|
-
})), d &&
|
|
1270
|
+
})), d && m && h && g.push(A("rect", {
|
|
1271
1271
|
x: n.left,
|
|
1272
|
-
y: Math.min(
|
|
1272
|
+
y: Math.min(f, p),
|
|
1273
1273
|
width: n.width,
|
|
1274
|
-
height: Math.abs(
|
|
1275
|
-
fill:
|
|
1274
|
+
height: Math.abs(f - p),
|
|
1275
|
+
fill: E(c.fill, k(c.opacity, 20)),
|
|
1276
1276
|
"data-cy": "xy-annotation-y-area",
|
|
1277
1277
|
"pointer-events": "none"
|
|
1278
1278
|
})), o.text) {
|
|
1279
|
-
let e = o.padding ?? {}, t =
|
|
1280
|
-
Number.isFinite(a.y) && Number.isFinite(i) && (
|
|
1279
|
+
let e = o.padding ?? {}, t = m && h ? Math.min(f, p) : m ? f : p, 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 = Pt(o, r, i);
|
|
1280
|
+
Number.isFinite(a.y) && Number.isFinite(i) && (g.push(A("rect", {
|
|
1281
1281
|
class: "vue-ui-xy-annotation-label-box",
|
|
1282
1282
|
...a,
|
|
1283
1283
|
"data-cy": "xy-annotation-label-box"
|
|
1284
|
-
})),
|
|
1284
|
+
})), g.push(R(o.text, {
|
|
1285
1285
|
class: "vue-ui-xy-annotation-label",
|
|
1286
1286
|
x: r,
|
|
1287
1287
|
y: i,
|
|
@@ -1294,7 +1294,7 @@ function Ft(e) {
|
|
|
1294
1294
|
i.push(L("g", {
|
|
1295
1295
|
"data-layer": "annotation",
|
|
1296
1296
|
"data-key": `annotation_y_${r}`
|
|
1297
|
-
},
|
|
1297
|
+
}, g.join("")));
|
|
1298
1298
|
}), i.length ? L("g", { "data-layer": "annotations" }, i.join("")) : "";
|
|
1299
1299
|
}
|
|
1300
1300
|
function It(e, t) {
|
|
@@ -1326,7 +1326,7 @@ async function Lt(e) {
|
|
|
1326
1326
|
}, i), o = a.series;
|
|
1327
1327
|
return `
|
|
1328
1328
|
<svg
|
|
1329
|
-
xmlns="${
|
|
1329
|
+
xmlns="${C}"
|
|
1330
1330
|
width="100%"
|
|
1331
1331
|
viewBox="0 0 ${n} ${r}"
|
|
1332
1332
|
role="img"
|