vue-data-ui 3.0.2 → 3.0.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-uNlT54JX.js → Arrow-YUJc3FQi.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DdXLTRiK.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-CCivwZUq.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-CWed-s-E.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-rj9-mAwF.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-DcDSkq99.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-W2N17kLY.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-5ZjKSIei.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-BJ0hcgsa.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-DHIaJs9G.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BarTZZDU.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-Diyt3BTN.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-B55R8CAZ.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-BMOddG-M.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-DVzyjG-W.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-BNHsLwF7.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-Ctts6JQb.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-q-LPw2IT.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-BfwnBQtY.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-bEAG5sD1.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-04aFeUYu.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-DX7efa1s.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-DJTYiV9o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-DGu87lcK.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-D46i_gkB.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-DeS1T-Bw.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-CrqM9fa9.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-0TypghaZ.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-n8koDNMv.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BeUapat0.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-HbK7CLPq.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-DdNd8wIQ.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-HrpJA3B3.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-Dl_Gep_y.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-B0clnW3D.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BapPpCcj.js} +2 -2
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-CdLAu_O5.js} +345 -334
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-DHYtqqYZ.js} +388 -377
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-SgiIfwyE.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-D7dra0Tp.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-CfhMmeX5.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BnPiyPdD.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-B6BeYUW3.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-DoTyGRKN.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-Di-qNaDB.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-D_ax0e1n.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-nZXBg4tm.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-NoQltPUC.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-kZceITfL.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-DtoNCs1x.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-BXZ2WcBF.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-DNP-X1Kr.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-BaMmD1DR.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-qQkLdaFk.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CR-rtVnh.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BMAqVZty.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-NQHqua4r.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-uYPKJzRP.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-Wesfuq0m.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-C8ofrNp2.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-l4Q3KmVI.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-DS0KyQM7.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-Dvz9CJOH.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CZEFnuFC.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-BNoRSCo7.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Dlq3vjoo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-CfcpDn_W.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-ClRCVth4.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-XpDLFtos.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-B_2xrLjj.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot-DoRnEXsU.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-Cr8fNe8Z.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-ClCYuGAL.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-BUzu6v2P.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-BsJ_z0Nw.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-0x5nZPEp.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-qT3POAeD.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-B4ezfcLU.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-Bwpe58hH.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-CSKAC_dQ.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-CVg1L12p.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-DY88UMDD.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-UaCxKRrk.js} +343 -329
- package/dist/vue-ui-xy-Bsh6AmS0.js +3846 -0
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-D7VaVkKk.js} +305 -294
- package/package.json +1 -1
- package/dist/vue-ui-xy-BoT_c9bU.js +0 -3808
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as R, ref as v, shallowRef as Xe, computed as d, onMounted as wt, onBeforeUnmount as At, toRefs as Ct, watch as ie, watchEffect as _t, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as _, normalizeClass as P, renderSlot as p, createBlock as N, createCommentVNode as h, createElementVNode as L, createVNode as Re, createSlots as Lt, withCtx as m, normalizeProps as Y, guardReactiveProps as D, Fragment as g, renderList as b, toDisplayString as O, Teleport as $t, createTextVNode as St, nextTick as Tt } from "vue";
|
|
2
|
+
import { u as Mt, c as Ye, o as De, f as Be, g as zt, t as Nt, d as Ot, e as It, p as Z, D as Ee, k as B, i as E, X as Pt, l as Ft, j as Xt, I as Rt, F as Yt, E as F, a as Dt, b as Bt, C as J, v as Et, w as Ht, y as jt } from "./index-q-LPw2IT.js";
|
|
3
|
+
import { t as He, u as Wt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ut, B as Gt } from "./useLoading-D7YHNtLX.js";
|
|
5
|
+
import { u as Vt } from "./usePrinter-DX7efa1s.js";
|
|
6
|
+
import { u as je } from "./useNestedProp-04aFeUYu.js";
|
|
7
|
+
import { u as qt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as Jt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
+
import Kt from "./Legend-DcDSkq99.js";
|
|
11
|
+
import Qt from "./Title-B55R8CAZ.js";
|
|
12
|
+
import el from "./img-Ctts6JQb.js";
|
|
13
|
+
import { _ as tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "width", "height"], rl = { key: 1 }, nl = ["id"], il = ["stop-color"], ul = ["stop-color"], cl = ["stop-color"], vl = { key: 2 }, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yl = { key: 3 }, dl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], fl = ["x", "y", "fill", "font-size"], xl = ["transform", "font-size", "fill", "font-weight"], pl = { key: 6 }, ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gl = { key: 7 }, bl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], kl = ["transform", "fill", "font-size", "text-anchor"], wl = ["x", "y", "font-size", "fill", "font-weight"], Al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["d", "stroke", "stroke-width"], Ll = ["d", "stroke", "stroke-width"], $l = ["cx", "cy", "fill", "r"], Sl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Tl = { key: 1 }, Ml = ["x", "y", "font-size", "fill", "font-weight"], zl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Nl = { key: 2 }, Ol = ["x", "y", "font-size", "font-weight", "fill"], Il = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Pl = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Fl = ["id"], Xl = ["onClick"], Rl = ["innerHTML"], Yl = {
|
|
18
18
|
__name: "vue-ui-history-plot",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,78 +31,80 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
34
|
+
setup(We, { expose: Ue, emit: Ge }) {
|
|
35
|
+
const Ve = R(() => import("./vue-ui-accordion-D46i_gkB.js")), qe = R(() => import("./DataTable-rj9-mAwF.js")), Ze = R(() => import("./PackageVersion-5ZjKSIei.js")), Je = R(() => import("./PenAndPaper-BJ0hcgsa.js")), Ke = R(() => import("./Tooltip-BMOddG-M.js")), Qe = R(() => import("./UserOptions-DVzyjG-W.js")), { vue_ui_history_plot: et } = Mt(), y = We, S = v(null), ue = v(null), ce = v(0), ve = v(null), he = v(0), ye = v(0), de = v(0), T = Xe(null), X = Xe(null), fe = v(null), $ = v(Ye()), K = v(!1), Q = v(""), w = v([]), j = v(!1), A = v(null), H = v(!1), xe = v(null), pe = v(!1), ee = v(null), te = v(null), W = v(null), le = v(null), U = d({
|
|
36
36
|
get: () => !!y.dataset && y.dataset.length,
|
|
37
37
|
set: (t) => t
|
|
38
|
-
}),
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
}), me = Ge;
|
|
39
|
+
wt(() => {
|
|
40
|
+
pe.value = !0, be();
|
|
41
|
+
});
|
|
42
|
+
const ge = d(() => !!e.value.debug);
|
|
41
43
|
function be() {
|
|
42
|
-
if (
|
|
44
|
+
if (De(y.dataset) ? (Be({
|
|
43
45
|
componentName: "VueUiHistoryPlot",
|
|
44
46
|
type: "dataset",
|
|
45
|
-
debug:
|
|
47
|
+
debug: ge.value
|
|
46
48
|
}), se.value = !0) : y.dataset.forEach((t, a) => {
|
|
47
|
-
|
|
49
|
+
zt({
|
|
48
50
|
datasetObject: t,
|
|
49
51
|
requiredAttributes: ["name", "values"]
|
|
50
52
|
}).forEach((l) => {
|
|
51
|
-
U.value = !1,
|
|
53
|
+
U.value = !1, Be({
|
|
52
54
|
componentName: "VueUiHistoryPlot",
|
|
53
55
|
type: "datasetSerieAttribute",
|
|
54
56
|
property: l,
|
|
55
57
|
index: a,
|
|
56
|
-
debug:
|
|
58
|
+
debug: ge.value
|
|
57
59
|
});
|
|
58
60
|
});
|
|
59
|
-
}),
|
|
60
|
-
const t =
|
|
61
|
-
const { width: a, height: l } =
|
|
62
|
-
chart:
|
|
61
|
+
}), De(y.dataset) || (se.value = e.value.loading), e.value.responsive) {
|
|
62
|
+
const t = He(() => {
|
|
63
|
+
const { width: a, height: l } = Wt({
|
|
64
|
+
chart: S.value,
|
|
63
65
|
title: e.value.style.chart.title.text ? ue.value : null,
|
|
64
66
|
noTitle: fe.value,
|
|
65
67
|
legend: e.value.style.chart.legend.show ? ve.value : null,
|
|
66
68
|
source: xe.value
|
|
67
69
|
});
|
|
68
70
|
requestAnimationFrame(() => {
|
|
69
|
-
f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots =
|
|
71
|
+
f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = F({
|
|
70
72
|
relator: Math.min(a, l),
|
|
71
73
|
adjuster: 600,
|
|
72
74
|
source: e.value.style.chart.plots.radius,
|
|
73
75
|
threshold: 3,
|
|
74
76
|
fallback: 3
|
|
75
|
-
}), n.value.indexLabels =
|
|
77
|
+
}), n.value.indexLabels = F({
|
|
76
78
|
relator: Math.min(a, l),
|
|
77
79
|
adjuster: 600,
|
|
78
80
|
source: e.value.style.chart.plots.indexLabels.fontSize,
|
|
79
81
|
threshold: 6,
|
|
80
82
|
fallback: 6
|
|
81
|
-
}), n.value.labels =
|
|
83
|
+
}), n.value.labels = F({
|
|
82
84
|
relator: Math.min(a, l),
|
|
83
85
|
adjuster: 600,
|
|
84
86
|
source: e.value.style.chart.plots.labels.fontSize,
|
|
85
87
|
threshold: 6,
|
|
86
88
|
fallback: 6
|
|
87
|
-
}), n.value.xAxisLabels =
|
|
89
|
+
}), n.value.xAxisLabels = F({
|
|
88
90
|
relator: Math.min(a, l),
|
|
89
91
|
adjuster: 600,
|
|
90
92
|
source: e.value.style.chart.axes.x.labels.fontSize,
|
|
91
93
|
threshold: 6,
|
|
92
94
|
fallback: 6
|
|
93
|
-
}), n.value.xAxisName =
|
|
95
|
+
}), n.value.xAxisName = F({
|
|
94
96
|
relator: Math.min(a, l),
|
|
95
97
|
adjuster: 600,
|
|
96
98
|
source: e.value.style.chart.axes.x.name.fontSize,
|
|
97
99
|
threshold: 6,
|
|
98
100
|
fallback: 6
|
|
99
|
-
}), n.value.yAxisLabels =
|
|
101
|
+
}), n.value.yAxisLabels = F({
|
|
100
102
|
relator: Math.min(a, l),
|
|
101
103
|
adjuster: 600,
|
|
102
104
|
source: e.value.style.chart.axes.y.labels.fontSize,
|
|
103
105
|
threshold: 6,
|
|
104
106
|
fallback: 6
|
|
105
|
-
}), n.value.yAxisName =
|
|
107
|
+
}), n.value.yAxisName = F({
|
|
106
108
|
relator: Math.min(a, l),
|
|
107
109
|
adjuster: 600,
|
|
108
110
|
source: e.value.style.chart.axes.y.name.fontSize,
|
|
@@ -111,28 +113,28 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
111
113
|
})) : (n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
|
|
112
114
|
});
|
|
113
115
|
});
|
|
114
|
-
|
|
116
|
+
T.value && (X.value && T.value.unobserve(X.value), T.value.disconnect()), T.value = new ResizeObserver(t), X.value = S.value.parentNode, T.value.observe(X.value);
|
|
115
117
|
}
|
|
116
118
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
+
At(() => {
|
|
120
|
+
T.value && (X.value && T.value.unobserve(X.value), T.value.disconnect());
|
|
119
121
|
});
|
|
120
122
|
function ae() {
|
|
121
|
-
const t =
|
|
123
|
+
const t = je({
|
|
122
124
|
userConfig: y.config,
|
|
123
|
-
defaultConfig:
|
|
125
|
+
defaultConfig: et
|
|
124
126
|
});
|
|
125
127
|
let a = {};
|
|
126
128
|
return t.theme ? a = {
|
|
127
|
-
...
|
|
128
|
-
userConfig:
|
|
129
|
+
...je({
|
|
130
|
+
userConfig: Bt.vue_ui_history_plot[t.theme] || y.config,
|
|
129
131
|
defaultConfig: t
|
|
130
132
|
}),
|
|
131
|
-
customPalette:
|
|
133
|
+
customPalette: Dt[t.theme] || Z
|
|
132
134
|
} : a = t, y.config && J(y.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = y.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, y.config && J(y.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = y.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, y.config && J(y.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = y.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, y.config && J(y.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = y.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
|
|
133
135
|
}
|
|
134
|
-
const e = v(ae()), { loading:
|
|
135
|
-
...
|
|
136
|
+
const e = v(ae()), { loading: M, FINAL_DATASET: tt, manualLoading: se } = Ut({
|
|
137
|
+
...Ct(y),
|
|
136
138
|
FINAL_CONFIG: e,
|
|
137
139
|
prepareConfig: ae,
|
|
138
140
|
skeletonDataset: [
|
|
@@ -147,7 +149,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
147
149
|
]
|
|
148
150
|
}
|
|
149
151
|
],
|
|
150
|
-
skeletonConfig:
|
|
152
|
+
skeletonConfig: Nt({
|
|
151
153
|
defaultConfig: e.value,
|
|
152
154
|
userConfig: {
|
|
153
155
|
userOptions: { show: !1 },
|
|
@@ -199,17 +201,17 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
199
201
|
}
|
|
200
202
|
}
|
|
201
203
|
})
|
|
202
|
-
}), { userOptionsVisible: oe, setUserOptionsVisibility:
|
|
204
|
+
}), { userOptionsVisible: oe, setUserOptionsVisibility: ke, keepUserOptionState: we } = qt({ config: e.value }), { svgRef: Ae } = Zt({ config: e.value.style.chart.title });
|
|
203
205
|
ie(() => y.config, (t) => {
|
|
204
|
-
|
|
206
|
+
M.value || (e.value = ae()), oe.value = !e.value.userOptions.showOnChartHover, be(), ce.value += 1, ye.value += 1, he.value += 1, f.value.height = e.value.style.chart.height, f.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
205
207
|
}, { deep: !0 }), ie(() => y.dataset, (t) => {
|
|
206
208
|
Array.isArray(t) && t.length > 0 && (se.value = !1);
|
|
207
209
|
}, { deep: !0 });
|
|
208
|
-
const { isPrinting:
|
|
209
|
-
elementId: `history_plot_${
|
|
210
|
+
const { isPrinting: Ce, isImaging: _e, generatePdf: Le, generateImage: $e } = Vt({
|
|
211
|
+
elementId: `history_plot_${$.value}`,
|
|
210
212
|
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
211
213
|
options: e.value.userOptions.print
|
|
212
|
-
}),
|
|
214
|
+
}), lt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), at = d(() => Ot(e.value.customPalette)), C = v({
|
|
213
215
|
showTable: e.value.table.show,
|
|
214
216
|
showTooltip: e.value.style.chart.tooltip.show
|
|
215
217
|
});
|
|
@@ -222,8 +224,8 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
222
224
|
const f = v({
|
|
223
225
|
height: e.value.style.chart.height,
|
|
224
226
|
width: e.value.style.chart.width
|
|
225
|
-
}),
|
|
226
|
-
function
|
|
227
|
+
}), st = d(() => f.value.width), ot = d(() => f.value.height);
|
|
228
|
+
function rt() {
|
|
227
229
|
let t = 0;
|
|
228
230
|
le.value && (t = Array.from(le.value.querySelectorAll("text")).reduce((i, s) => {
|
|
229
231
|
const k = s.getComputedTextLength();
|
|
@@ -232,31 +234,31 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
232
234
|
const a = te.value ? te.value.getBoundingClientRect().width : 0;
|
|
233
235
|
return t + a + (a ? 24 : 0);
|
|
234
236
|
}
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
+
const Se = v(0), nt = He((t) => {
|
|
238
|
+
Se.value = t;
|
|
237
239
|
});
|
|
238
|
-
|
|
240
|
+
_t((t) => {
|
|
239
241
|
const a = W.value;
|
|
240
242
|
if (!a) return;
|
|
241
243
|
const l = new ResizeObserver((i) => {
|
|
242
|
-
|
|
244
|
+
nt(i[0].contentRect.height);
|
|
243
245
|
});
|
|
244
246
|
l.observe(a), t(() => l.disconnect());
|
|
245
247
|
});
|
|
246
|
-
const
|
|
248
|
+
const Te = d(() => {
|
|
247
249
|
let t = 0;
|
|
248
250
|
ee.value && (t = ee.value.getBBox().height + n.value.xAxisName / 2);
|
|
249
251
|
let a = 0;
|
|
250
|
-
return W.value && (a =
|
|
252
|
+
return W.value && (a = Se.value), t + a;
|
|
251
253
|
}), c = d(() => {
|
|
252
|
-
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l =
|
|
254
|
+
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = rt(), i = e.value.style.chart.plots.radius;
|
|
253
255
|
return {
|
|
254
256
|
left: t + l + e.value.style.chart.axes.y.name.offsetX,
|
|
255
257
|
top: a + i,
|
|
256
258
|
right: f.value.width - e.value.style.chart.padding.right - i - e.value.style.chart.axes.y.name.offsetX,
|
|
257
|
-
bottom: f.value.height - e.value.style.chart.padding.bottom -
|
|
259
|
+
bottom: f.value.height - e.value.style.chart.padding.bottom - Te.value - i - e.value.style.chart.axes.x.name.offsetY,
|
|
258
260
|
width: f.value.width - t - e.value.style.chart.padding.right - l - i - e.value.style.chart.axes.y.name.offsetX,
|
|
259
|
-
height: f.value.height - a - e.value.style.chart.padding.bottom -
|
|
261
|
+
height: f.value.height - a - e.value.style.chart.padding.bottom - Te.value - i * 2 - e.value.style.chart.axes.x.name.offsetY
|
|
260
262
|
};
|
|
261
263
|
}), n = v({
|
|
262
264
|
plots: e.value.style.chart.plots.radius,
|
|
@@ -266,24 +268,24 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
266
268
|
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
267
269
|
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
268
270
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
269
|
-
}),
|
|
271
|
+
}), z = d(() => tt.value.map((t, a) => ({
|
|
270
272
|
...t,
|
|
271
|
-
color: t.color ?
|
|
273
|
+
color: t.color ? It(t.color) : at.value[a] || Z[a] || Z[a % Z.length],
|
|
272
274
|
seriesIndex: a
|
|
273
|
-
}))),
|
|
274
|
-
const t = Math.min(...
|
|
275
|
+
}))), it = d(() => Math.max(...z.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), ut = d(() => {
|
|
276
|
+
const t = Math.min(...z.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
275
277
|
return t < 0 ? t : 0;
|
|
276
|
-
}),
|
|
277
|
-
const t = Math.min(...
|
|
278
|
+
}), ct = d(() => Math.max(...z.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), vt = d(() => {
|
|
279
|
+
const t = Math.min(...z.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
278
280
|
return t < 0 ? t : 0;
|
|
279
281
|
}), x = d(() => {
|
|
280
|
-
const t =
|
|
281
|
-
e.value.style.chart.axes.x.scaleMin === null ?
|
|
282
|
-
e.value.style.chart.axes.x.scaleMax === null ?
|
|
282
|
+
const t = Ee(
|
|
283
|
+
e.value.style.chart.axes.x.scaleMin === null ? ut.value : e.value.style.chart.axes.x.scaleMin,
|
|
284
|
+
e.value.style.chart.axes.x.scaleMax === null ? it.value : e.value.style.chart.axes.x.scaleMax,
|
|
283
285
|
e.value.style.chart.axes.x.ticks
|
|
284
|
-
), a =
|
|
285
|
-
e.value.style.chart.axes.y.scaleMin === null ?
|
|
286
|
-
e.value.style.chart.axes.y.scaleMax === null ?
|
|
286
|
+
), a = Ee(
|
|
287
|
+
e.value.style.chart.axes.y.scaleMin === null ? vt.value : e.value.style.chart.axes.y.scaleMin,
|
|
288
|
+
e.value.style.chart.axes.y.scaleMax === null ? ct.value : e.value.style.chart.axes.y.scaleMax,
|
|
287
289
|
e.value.style.chart.axes.y.ticks
|
|
288
290
|
);
|
|
289
291
|
return {
|
|
@@ -303,24 +305,24 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
303
305
|
}))
|
|
304
306
|
};
|
|
305
307
|
});
|
|
306
|
-
function
|
|
308
|
+
function ht(t) {
|
|
307
309
|
const a = x.value.x.min < 0 ? Math.abs(x.value.x.min) : x.value.x.min > 0 ? -x.value.x.min : 0;
|
|
308
310
|
return c.value.left + ((t || 0) + a) / (x.value.x.max + a) * c.value.width;
|
|
309
311
|
}
|
|
310
|
-
function
|
|
312
|
+
function yt(t) {
|
|
311
313
|
const a = x.value.y.min < 0 ? Math.abs(x.value.y.min) : x.value.y.min > 0 ? -x.value.y.min : 0;
|
|
312
314
|
return c.value.bottom - ((t || 0) + a) / (x.value.y.max + a) * c.value.height;
|
|
313
315
|
}
|
|
314
|
-
const
|
|
316
|
+
const I = d(() => z.value.filter((t) => !w.value.includes(t.seriesIndex)).map((t, a) => {
|
|
315
317
|
const l = t.values.map((s, k) => ({
|
|
316
318
|
valueX: s.x,
|
|
317
319
|
valueY: s.y,
|
|
318
320
|
label: s.label,
|
|
319
|
-
x:
|
|
320
|
-
y:
|
|
321
|
+
x: ht(s.x),
|
|
322
|
+
y: yt(s.y),
|
|
321
323
|
color: t.color,
|
|
322
324
|
seriesName: t.name,
|
|
323
|
-
id:
|
|
325
|
+
id: Ye()
|
|
324
326
|
})), i = l.map((s) => `${s.x},${s.y} `).join("").trim();
|
|
325
327
|
return {
|
|
326
328
|
...t,
|
|
@@ -328,16 +330,16 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
328
330
|
path: `M${i}`
|
|
329
331
|
};
|
|
330
332
|
}));
|
|
331
|
-
function
|
|
333
|
+
function Me(t) {
|
|
332
334
|
w.value.includes(t) ? w.value = w.value.filter((a) => a !== t) : w.value.push(t);
|
|
333
335
|
}
|
|
334
|
-
const
|
|
336
|
+
const ze = d(() => z.value.map((t) => ({
|
|
335
337
|
...t,
|
|
336
338
|
opacity: w.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
337
|
-
segregate: () =>
|
|
339
|
+
segregate: () => Me(t.seriesIndex),
|
|
338
340
|
isSegregated: w.value.includes(t.seriesIndex),
|
|
339
341
|
shape: "circle"
|
|
340
|
-
}))),
|
|
342
|
+
}))), dt = d(() => ({
|
|
341
343
|
cy: "history-plot-div-legend",
|
|
342
344
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
343
345
|
color: e.value.style.chart.legend.color,
|
|
@@ -345,33 +347,33 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
345
347
|
paddingBottom: 12,
|
|
346
348
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
347
349
|
}));
|
|
348
|
-
function
|
|
349
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }),
|
|
350
|
+
function ft({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
351
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), me("selectDatapoint", t);
|
|
350
352
|
}
|
|
351
|
-
function
|
|
352
|
-
|
|
353
|
+
function Ne(t) {
|
|
354
|
+
me("selectLegend", {
|
|
353
355
|
...t,
|
|
354
356
|
isSegregated: !t.isSegregated,
|
|
355
357
|
opacity: t.isSegregated ? 1 : 0.5
|
|
356
358
|
});
|
|
357
359
|
}
|
|
358
|
-
function
|
|
360
|
+
function Oe(t) {
|
|
359
361
|
j.value = t, de.value += 1;
|
|
360
362
|
}
|
|
361
363
|
const re = v(null);
|
|
362
|
-
function
|
|
364
|
+
function xt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
363
365
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), K.value = !1, A.value = null;
|
|
364
366
|
}
|
|
365
|
-
function
|
|
366
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), re.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series:
|
|
367
|
+
function pt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
368
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), re.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: z.value }, A.value = t;
|
|
367
369
|
const i = e.value.style.chart.tooltip.customFormat;
|
|
368
|
-
if (H.value = !1,
|
|
370
|
+
if (H.value = !1, jt(i))
|
|
369
371
|
try {
|
|
370
372
|
const s = i({
|
|
371
373
|
seriesIndex: l,
|
|
372
374
|
datapoint: t,
|
|
373
375
|
plotIndex: a,
|
|
374
|
-
series:
|
|
376
|
+
series: z.value,
|
|
375
377
|
config: e.value
|
|
376
378
|
});
|
|
377
379
|
typeof s == "string" && (Q.value = s, H.value = !0);
|
|
@@ -380,19 +382,19 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
380
382
|
}
|
|
381
383
|
if (!H.value) {
|
|
382
384
|
let s = "";
|
|
383
|
-
s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span>${t.seriesName}</span></div>`, s += `<div>${t.label}</div>`, s += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${
|
|
385
|
+
s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span>${t.seriesName}</span></div>`, s += `<div>${t.label}</div>`, s += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${B(
|
|
384
386
|
e.value.style.chart.axes.x.labels.formatter,
|
|
385
387
|
t.valueX,
|
|
386
|
-
|
|
388
|
+
E({
|
|
387
389
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
388
390
|
v: t.valueX,
|
|
389
391
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
390
392
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
391
393
|
})
|
|
392
|
-
)}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${
|
|
394
|
+
)}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${B(
|
|
393
395
|
e.value.style.chart.axes.y.labels.formatter,
|
|
394
396
|
t.valueY,
|
|
395
|
-
|
|
397
|
+
E({
|
|
396
398
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
397
399
|
v: t.valueY,
|
|
398
400
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
@@ -402,7 +404,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
402
404
|
}
|
|
403
405
|
K.value = !0;
|
|
404
406
|
}
|
|
405
|
-
d(() => ({ head:
|
|
407
|
+
d(() => ({ head: I.value.map((a) => ({
|
|
406
408
|
name: a.name,
|
|
407
409
|
color: a.color
|
|
408
410
|
})) }));
|
|
@@ -412,26 +414,26 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
412
414
|
e.value.table.columnNames.datapoint,
|
|
413
415
|
e.value.table.columnNames.x,
|
|
414
416
|
e.value.table.columnNames.y
|
|
415
|
-
], a =
|
|
417
|
+
], a = I.value.flatMap((i) => i.plots.map((s) => [
|
|
416
418
|
{
|
|
417
419
|
color: s.color,
|
|
418
420
|
name: s.seriesName
|
|
419
421
|
},
|
|
420
422
|
s.label,
|
|
421
|
-
|
|
423
|
+
B(
|
|
422
424
|
e.value.style.chart.axes.x.labels.formatter,
|
|
423
425
|
s.valueX,
|
|
424
|
-
|
|
426
|
+
E({
|
|
425
427
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
426
428
|
v: s.valueX,
|
|
427
429
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
428
430
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
429
431
|
})
|
|
430
432
|
),
|
|
431
|
-
|
|
433
|
+
B(
|
|
432
434
|
e.value.style.chart.axes.y.labels.formatter,
|
|
433
435
|
s.valueY,
|
|
434
|
-
|
|
436
|
+
E({
|
|
435
437
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
436
438
|
v: s.valueY,
|
|
437
439
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
@@ -458,14 +460,14 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
458
460
|
colNames: t
|
|
459
461
|
};
|
|
460
462
|
});
|
|
461
|
-
function
|
|
462
|
-
|
|
463
|
+
function Ie(t = null) {
|
|
464
|
+
Tt(() => {
|
|
463
465
|
const a = [
|
|
464
466
|
[e.value.table.columnNames.series],
|
|
465
467
|
[e.value.table.columnNames.datapoint],
|
|
466
468
|
[e.value.table.columnNames.x],
|
|
467
469
|
[e.value.table.columnNames.y]
|
|
468
|
-
], l =
|
|
470
|
+
], l = I.value.flatMap((k) => k.plots.map((q) => [
|
|
469
471
|
[q.seriesName],
|
|
470
472
|
[q.label],
|
|
471
473
|
[q.valueX],
|
|
@@ -474,8 +476,8 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
474
476
|
[e.value.style.chart.title.text],
|
|
475
477
|
[e.value.style.chart.title.subtitle.text],
|
|
476
478
|
a
|
|
477
|
-
].concat(l), s =
|
|
478
|
-
t ? t(s) :
|
|
479
|
+
].concat(l), s = Et(i);
|
|
480
|
+
t ? t(s) : Ht({
|
|
479
481
|
csvContent: s,
|
|
480
482
|
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
481
483
|
});
|
|
@@ -485,18 +487,18 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
485
487
|
function ne() {
|
|
486
488
|
V.value = !V.value;
|
|
487
489
|
}
|
|
488
|
-
function
|
|
490
|
+
function Pe() {
|
|
489
491
|
C.value.showTable = !C.value.showTable;
|
|
490
492
|
}
|
|
491
|
-
function
|
|
493
|
+
function Fe() {
|
|
492
494
|
C.value.showTooltip = !C.value.showTooltip;
|
|
493
495
|
}
|
|
494
|
-
function
|
|
495
|
-
return
|
|
496
|
+
function mt() {
|
|
497
|
+
return I.value;
|
|
496
498
|
}
|
|
497
|
-
async function
|
|
498
|
-
if (!
|
|
499
|
-
const { width: a, height: l } =
|
|
499
|
+
async function gt({ scale: t = 2 } = {}) {
|
|
500
|
+
if (!S.value) return;
|
|
501
|
+
const { width: a, height: l } = S.value.getBoundingClientRect(), i = a / l, { imageUri: s, base64: k } = await el({ domElement: S.value, base64: !0, img: !0, scale: t });
|
|
500
502
|
return {
|
|
501
503
|
imageUri: s,
|
|
502
504
|
base64: k,
|
|
@@ -506,48 +508,48 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
506
508
|
aspectRatio: i
|
|
507
509
|
};
|
|
508
510
|
}
|
|
509
|
-
const bt = d(() => x.value.tickX),
|
|
510
|
-
return
|
|
511
|
+
const bt = d(() => x.value.tickX), kt = d(() => ({ start: 0, end: x.value.tickX.length }));
|
|
512
|
+
return Jt({
|
|
511
513
|
timeLabelsEls: W,
|
|
512
514
|
timeLabels: bt,
|
|
513
|
-
slicer:
|
|
515
|
+
slicer: kt,
|
|
514
516
|
configRef: e,
|
|
515
517
|
rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
|
|
516
518
|
autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate", "enable"],
|
|
517
519
|
isAutoSize: !1,
|
|
518
|
-
width:
|
|
519
|
-
height:
|
|
520
|
+
width: st,
|
|
521
|
+
height: ot,
|
|
520
522
|
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
521
523
|
rotation: e.value.style.chart.axes.x.labels.autoRotate.angle
|
|
522
|
-
}),
|
|
523
|
-
getData:
|
|
524
|
-
getImage:
|
|
525
|
-
generatePdf:
|
|
526
|
-
generateCsv:
|
|
527
|
-
generateImage:
|
|
528
|
-
toggleTable:
|
|
529
|
-
toggleTooltip:
|
|
524
|
+
}), Ue({
|
|
525
|
+
getData: mt,
|
|
526
|
+
getImage: gt,
|
|
527
|
+
generatePdf: Le,
|
|
528
|
+
generateCsv: Ie,
|
|
529
|
+
generateImage: $e,
|
|
530
|
+
toggleTable: Pe,
|
|
531
|
+
toggleTooltip: Fe,
|
|
530
532
|
toggleAnnotator: ne,
|
|
531
|
-
toggleFullscreen:
|
|
533
|
+
toggleFullscreen: Oe
|
|
532
534
|
}), (t, a) => (o(), r("div", {
|
|
533
|
-
id: `history_plot_${
|
|
535
|
+
id: `history_plot_${$.value}`,
|
|
534
536
|
ref_key: "historyPlotChart",
|
|
535
|
-
ref:
|
|
536
|
-
class:
|
|
537
|
+
ref: S,
|
|
538
|
+
class: P({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": j.value }),
|
|
537
539
|
style: _(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
538
|
-
onMouseenter: a[2] || (a[2] = () => u(
|
|
539
|
-
onMouseleave: a[3] || (a[3] = () => u(
|
|
540
|
+
onMouseenter: a[2] || (a[2] = () => u(ke)(!0)),
|
|
541
|
+
onMouseleave: a[3] || (a[3] = () => u(ke)(!1))
|
|
540
542
|
}, [
|
|
541
543
|
p(t.$slots, "userConfig", {}, void 0, !0),
|
|
542
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
544
|
+
e.value.userOptions.buttons.annotator ? (o(), N(u(Je), {
|
|
543
545
|
key: 0,
|
|
544
|
-
svgRef: u(
|
|
546
|
+
svgRef: u(Ae),
|
|
545
547
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
546
548
|
color: e.value.style.chart.color,
|
|
547
549
|
active: V.value,
|
|
548
550
|
onClose: ne
|
|
549
551
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
550
|
-
|
|
552
|
+
lt.value ? (o(), r("div", {
|
|
551
553
|
key: 1,
|
|
552
554
|
ref_key: "noTitle",
|
|
553
555
|
ref: fe,
|
|
@@ -561,7 +563,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
561
563
|
class: "vue-ui-xy-title",
|
|
562
564
|
style: _(`font-family:${e.value.style.fontFamily}`)
|
|
563
565
|
}, [
|
|
564
|
-
(o(),
|
|
566
|
+
(o(), N(Qt, {
|
|
565
567
|
key: `title_${ce.value}`,
|
|
566
568
|
config: {
|
|
567
569
|
title: {
|
|
@@ -575,14 +577,17 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
575
577
|
}
|
|
576
578
|
}, null, 8, ["config"]))
|
|
577
579
|
], 4)) : h("", !0),
|
|
578
|
-
|
|
580
|
+
L("div", {
|
|
581
|
+
id: `legend-top-${$.value}`
|
|
582
|
+
}, null, 8, al),
|
|
583
|
+
e.value.userOptions.show && U.value && (u(we) || u(oe)) ? (o(), N(u(Qe), {
|
|
579
584
|
ref: "details",
|
|
580
585
|
key: `user_option_${de.value}`,
|
|
581
586
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
582
587
|
color: e.value.style.chart.color,
|
|
583
|
-
isPrinting: u(
|
|
584
|
-
isImaging: u(
|
|
585
|
-
uid:
|
|
588
|
+
isPrinting: u(Ce),
|
|
589
|
+
isImaging: u(_e),
|
|
590
|
+
uid: $.value,
|
|
586
591
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
587
592
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
588
593
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -591,7 +596,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
591
596
|
hasLabel: !1,
|
|
592
597
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
593
598
|
isFullscreen: j.value,
|
|
594
|
-
chartElement:
|
|
599
|
+
chartElement: S.value,
|
|
595
600
|
position: e.value.userOptions.position,
|
|
596
601
|
isTooltip: C.value.showTooltip,
|
|
597
602
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
@@ -599,21 +604,21 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
599
604
|
isAnnotation: V.value,
|
|
600
605
|
callbacks: e.value.userOptions.callbacks,
|
|
601
606
|
printScale: e.value.userOptions.print.scale,
|
|
602
|
-
onToggleFullscreen:
|
|
603
|
-
onGeneratePdf: u(
|
|
604
|
-
onGenerateCsv:
|
|
605
|
-
onGenerateImage: u(
|
|
606
|
-
onToggleTable:
|
|
607
|
-
onToggleTooltip:
|
|
607
|
+
onToggleFullscreen: Oe,
|
|
608
|
+
onGeneratePdf: u(Le),
|
|
609
|
+
onGenerateCsv: Ie,
|
|
610
|
+
onGenerateImage: u($e),
|
|
611
|
+
onToggleTable: Pe,
|
|
612
|
+
onToggleTooltip: Fe,
|
|
608
613
|
onToggleAnnotator: ne,
|
|
609
614
|
style: _({
|
|
610
|
-
visibility: u(
|
|
615
|
+
visibility: u(we) ? u(oe) ? "visible" : "hidden" : "visible"
|
|
611
616
|
})
|
|
612
|
-
},
|
|
617
|
+
}, Lt({ _: 2 }, [
|
|
613
618
|
t.$slots.menuIcon ? {
|
|
614
619
|
name: "menuIcon",
|
|
615
620
|
fn: m(({ isOpen: l, color: i }) => [
|
|
616
|
-
p(t.$slots, "menuIcon",
|
|
621
|
+
p(t.$slots, "menuIcon", Y(D({ isOpen: l, color: i })), void 0, !0)
|
|
617
622
|
]),
|
|
618
623
|
key: "0"
|
|
619
624
|
} : void 0,
|
|
@@ -655,26 +660,26 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
655
660
|
t.$slots.optionFullscreen ? {
|
|
656
661
|
name: "optionFullscreen",
|
|
657
662
|
fn: m(({ toggleFullscreen: l, isFullscreen: i }) => [
|
|
658
|
-
p(t.$slots, "optionFullscreen",
|
|
663
|
+
p(t.$slots, "optionFullscreen", Y(D({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
|
|
659
664
|
]),
|
|
660
665
|
key: "6"
|
|
661
666
|
} : void 0,
|
|
662
667
|
t.$slots.optionAnnotator ? {
|
|
663
668
|
name: "optionAnnotator",
|
|
664
669
|
fn: m(({ toggleAnnotator: l, isAnnotator: i }) => [
|
|
665
|
-
p(t.$slots, "optionAnnotator",
|
|
670
|
+
p(t.$slots, "optionAnnotator", Y(D({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
|
|
666
671
|
]),
|
|
667
672
|
key: "7"
|
|
668
673
|
} : void 0
|
|
669
674
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
670
675
|
(o(), r("svg", {
|
|
671
676
|
ref_key: "svgRef",
|
|
672
|
-
ref:
|
|
673
|
-
xmlns: u(
|
|
677
|
+
ref: Ae,
|
|
678
|
+
xmlns: u(Pt),
|
|
674
679
|
viewBox: `0 0 ${f.value.width < 0 ? 0.1 : f.value.width} ${f.value.height < 0 ? 0.1 : f.value.height}`,
|
|
675
680
|
style: _(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
676
681
|
}, [
|
|
677
|
-
|
|
682
|
+
Re(u(Ze)),
|
|
678
683
|
t.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
679
684
|
key: 0,
|
|
680
685
|
x: c.value.left,
|
|
@@ -686,28 +691,28 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
686
691
|
}
|
|
687
692
|
}, [
|
|
688
693
|
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
689
|
-
], 8,
|
|
690
|
-
e.value.style.chart.plots.gradient.show ? (o(), r("defs",
|
|
691
|
-
(o(!0), r(
|
|
692
|
-
id: `gradient_${i}_${
|
|
694
|
+
], 8, ol)) : h("", !0),
|
|
695
|
+
e.value.style.chart.plots.gradient.show ? (o(), r("defs", rl, [
|
|
696
|
+
(o(!0), r(g, null, b(I.value, (l, i) => (o(), r("radialGradient", {
|
|
697
|
+
id: `gradient_${i}_${$.value}`,
|
|
693
698
|
fy: "30%"
|
|
694
699
|
}, [
|
|
695
|
-
|
|
700
|
+
L("stop", {
|
|
696
701
|
offset: "10%",
|
|
697
|
-
"stop-color": u(
|
|
698
|
-
}, null, 8,
|
|
699
|
-
|
|
702
|
+
"stop-color": u(Ft)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
703
|
+
}, null, 8, il),
|
|
704
|
+
L("stop", {
|
|
700
705
|
offset: "90%",
|
|
701
|
-
"stop-color": u(
|
|
702
|
-
}, null, 8,
|
|
703
|
-
|
|
706
|
+
"stop-color": u(Xt)(l.color, 0.1)
|
|
707
|
+
}, null, 8, ul),
|
|
708
|
+
L("stop", {
|
|
704
709
|
offset: "100%",
|
|
705
710
|
"stop-color": l.color
|
|
706
|
-
}, null, 8,
|
|
707
|
-
], 8,
|
|
711
|
+
}, null, 8, cl)
|
|
712
|
+
], 8, nl))), 256))
|
|
708
713
|
])) : h("", !0),
|
|
709
|
-
e.value.style.chart.grid.verticalLines.show ? (o(), r("g",
|
|
710
|
-
(o(!0), r(
|
|
714
|
+
e.value.style.chart.grid.verticalLines.show ? (o(), r("g", vl, [
|
|
715
|
+
(o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("line", {
|
|
711
716
|
x1: l.x,
|
|
712
717
|
x2: l.x,
|
|
713
718
|
y1: l.y1,
|
|
@@ -715,10 +720,10 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
715
720
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
716
721
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
717
722
|
"stroke-linecap": "round"
|
|
718
|
-
}, null, 8,
|
|
723
|
+
}, null, 8, hl))), 256))
|
|
719
724
|
])) : h("", !0),
|
|
720
|
-
e.value.style.chart.axes.y.labels.show ? (o(), r("g",
|
|
721
|
-
(o(!0), r(
|
|
725
|
+
e.value.style.chart.axes.y.labels.show ? (o(), r("g", yl, [
|
|
726
|
+
(o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("line", {
|
|
722
727
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
723
728
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
724
729
|
"stroke-linecap": "round",
|
|
@@ -726,29 +731,29 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
726
731
|
x2: c.value.left,
|
|
727
732
|
y1: l.y,
|
|
728
733
|
y2: l.y
|
|
729
|
-
}, null, 8,
|
|
734
|
+
}, null, 8, dl))), 256))
|
|
730
735
|
])) : h("", !0),
|
|
731
736
|
e.value.style.chart.axes.y.labels.show ? (o(), r("g", {
|
|
732
737
|
key: 4,
|
|
733
738
|
ref_key: "yAxisScales",
|
|
734
739
|
ref: le
|
|
735
740
|
}, [
|
|
736
|
-
(o(!0), r(
|
|
741
|
+
(o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("text", {
|
|
737
742
|
x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
|
|
738
743
|
y: l.y + n.value.yAxisLabels / 3,
|
|
739
744
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
740
745
|
"font-size": n.value.yAxisLabels,
|
|
741
746
|
"text-anchor": "end"
|
|
742
|
-
},
|
|
747
|
+
}, O(u(B)(
|
|
743
748
|
e.value.style.chart.axes.y.labels.formatter,
|
|
744
749
|
l.value,
|
|
745
|
-
u(
|
|
750
|
+
u(E)({
|
|
746
751
|
p: e.value.style.chart.axes.y.labels.prefix,
|
|
747
752
|
v: l.value,
|
|
748
753
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
749
754
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
750
755
|
})
|
|
751
|
-
)), 9,
|
|
756
|
+
)), 9, fl))), 256))
|
|
752
757
|
], 512)) : h("", !0),
|
|
753
758
|
e.value.style.chart.axes.y.name.text ? (o(), r("text", {
|
|
754
759
|
key: 5,
|
|
@@ -759,9 +764,9 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
759
764
|
fill: e.value.style.chart.axes.y.name.color,
|
|
760
765
|
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
761
766
|
"text-anchor": "middle"
|
|
762
|
-
},
|
|
763
|
-
e.value.style.chart.grid.horizontalLines.show ? (o(), r("g",
|
|
764
|
-
(o(!0), r(
|
|
767
|
+
}, O(e.value.style.chart.axes.y.name.text), 9, xl)) : h("", !0),
|
|
768
|
+
e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", pl, [
|
|
769
|
+
(o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("line", {
|
|
765
770
|
x1: l.x1,
|
|
766
771
|
x2: l.x2,
|
|
767
772
|
y1: l.y,
|
|
@@ -769,10 +774,10 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
769
774
|
stroke: e.value.style.chart.grid.horizontalLines.stroke,
|
|
770
775
|
"stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
771
776
|
"stroke-linecap": "round"
|
|
772
|
-
}, null, 8,
|
|
777
|
+
}, null, 8, ml))), 256))
|
|
773
778
|
])) : h("", !0),
|
|
774
|
-
e.value.style.chart.axes.x.labels.show ? (o(), r("g",
|
|
775
|
-
(o(!0), r(
|
|
779
|
+
e.value.style.chart.axes.x.labels.show ? (o(), r("g", gl, [
|
|
780
|
+
(o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("line", {
|
|
776
781
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
777
782
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
778
783
|
"stroke-linecap": "round",
|
|
@@ -780,29 +785,29 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
780
785
|
x2: l.x,
|
|
781
786
|
y1: c.value.bottom,
|
|
782
787
|
y2: c.value.bottom + 5
|
|
783
|
-
}, null, 8,
|
|
788
|
+
}, null, 8, bl))), 256))
|
|
784
789
|
])) : h("", !0),
|
|
785
790
|
e.value.style.chart.axes.x.labels.show ? (o(), r("g", {
|
|
786
791
|
key: 8,
|
|
787
792
|
ref_key: "xAxisScales",
|
|
788
793
|
ref: W
|
|
789
794
|
}, [
|
|
790
|
-
(o(!0), r(
|
|
795
|
+
(o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("text", {
|
|
791
796
|
class: "vue-ui-history-plot-x-axis-scale",
|
|
792
797
|
transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
793
798
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
794
799
|
"font-size": n.value.xAxisLabels,
|
|
795
800
|
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
796
|
-
},
|
|
801
|
+
}, O(u(B)(
|
|
797
802
|
e.value.style.chart.axes.x.labels.formatter,
|
|
798
803
|
l.value,
|
|
799
|
-
u(
|
|
804
|
+
u(E)({
|
|
800
805
|
p: e.value.style.chart.axes.x.labels.prefix,
|
|
801
806
|
v: l.value,
|
|
802
807
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
803
808
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
804
809
|
})
|
|
805
|
-
)), 9,
|
|
810
|
+
)), 9, kl))), 256))
|
|
806
811
|
], 512)) : h("", !0),
|
|
807
812
|
e.value.style.chart.axes.x.name.text ? (o(), r("text", {
|
|
808
813
|
key: 9,
|
|
@@ -814,7 +819,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
814
819
|
fill: e.value.style.chart.axes.x.name.color,
|
|
815
820
|
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
816
821
|
"text-anchor": "middle"
|
|
817
|
-
},
|
|
822
|
+
}, O(e.value.style.chart.axes.x.name.text), 9, wl)) : h("", !0),
|
|
818
823
|
e.value.style.chart.grid.xAxis.show ? (o(), r("line", {
|
|
819
824
|
key: 10,
|
|
820
825
|
x1: c.value.left,
|
|
@@ -824,7 +829,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
824
829
|
stroke: e.value.style.chart.grid.xAxis.stroke,
|
|
825
830
|
"stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
|
|
826
831
|
"stroke-linecap": "round"
|
|
827
|
-
}, null, 8,
|
|
832
|
+
}, null, 8, Al)) : h("", !0),
|
|
828
833
|
e.value.style.chart.grid.yAxis.show ? (o(), r("line", {
|
|
829
834
|
key: 11,
|
|
830
835
|
x1: c.value.left,
|
|
@@ -834,55 +839,55 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
834
839
|
stroke: e.value.style.chart.grid.yAxis.stroke,
|
|
835
840
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
836
841
|
"stroke-linecap": "round"
|
|
837
|
-
}, null, 8,
|
|
838
|
-
(o(!0), r(
|
|
842
|
+
}, null, 8, Cl)) : h("", !0),
|
|
843
|
+
(o(!0), r(g, null, b(I.value, (l, i) => (o(), r("g", null, [
|
|
839
844
|
e.value.style.chart.paths.show ? (o(), r("g", {
|
|
840
845
|
key: 0,
|
|
841
846
|
style: _({
|
|
842
847
|
opacity: A.value === null ? 1 : 0.3
|
|
843
848
|
})
|
|
844
849
|
}, [
|
|
845
|
-
|
|
850
|
+
L("path", {
|
|
846
851
|
d: l.path,
|
|
847
852
|
stroke: e.value.style.chart.backgroundColor,
|
|
848
853
|
"stroke-width": e.value.style.chart.paths.strokeWidth + 4,
|
|
849
854
|
fill: "none",
|
|
850
855
|
"stroke-linecap": "round",
|
|
851
856
|
"stroke-linejoin": "round",
|
|
852
|
-
class:
|
|
853
|
-
}, null, 10,
|
|
854
|
-
|
|
857
|
+
class: P({ animated: e.value.useCssAnimation && !u(M) })
|
|
858
|
+
}, null, 10, _l),
|
|
859
|
+
L("path", {
|
|
855
860
|
d: l.path,
|
|
856
861
|
stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
|
|
857
862
|
"stroke-width": e.value.style.chart.paths.strokeWidth,
|
|
858
863
|
fill: "none",
|
|
859
864
|
"stroke-linecap": "round",
|
|
860
865
|
"stroke-linejoin": "round",
|
|
861
|
-
class:
|
|
862
|
-
}, null, 10,
|
|
866
|
+
class: P({ animated: e.value.useCssAnimation && !u(M) })
|
|
867
|
+
}, null, 10, Ll)
|
|
863
868
|
], 4)) : h("", !0),
|
|
864
|
-
(o(!0), r(
|
|
869
|
+
(o(!0), r(g, null, b(l.plots, (s) => (o(), r("circle", {
|
|
865
870
|
cx: s.x,
|
|
866
871
|
cy: s.y,
|
|
867
872
|
fill: e.value.style.chart.backgroundColor,
|
|
868
873
|
r: n.value.plots,
|
|
869
874
|
stroke: "none"
|
|
870
|
-
}, null, 8,
|
|
871
|
-
(o(!0), r(
|
|
875
|
+
}, null, 8, $l))), 256)),
|
|
876
|
+
(o(!0), r(g, null, b(l.plots, (s) => (o(), r("circle", {
|
|
872
877
|
cx: s.x,
|
|
873
878
|
cy: s.y,
|
|
874
|
-
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${
|
|
879
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${$.value})` : s.color,
|
|
875
880
|
r: n.value.plots,
|
|
876
881
|
stroke: e.value.style.chart.plots.stroke,
|
|
877
882
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
878
|
-
class:
|
|
883
|
+
class: P({ animated: e.value.useCssAnimation && !u(M) }),
|
|
879
884
|
style: _({
|
|
880
885
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
881
886
|
transition: "opacity 0.2s ease-in-out"
|
|
882
887
|
})
|
|
883
|
-
}, null, 14,
|
|
884
|
-
e.value.style.chart.plots.labels.show ? (o(), r("g",
|
|
885
|
-
(o(!0), r(
|
|
888
|
+
}, null, 14, Sl))), 256)),
|
|
889
|
+
e.value.style.chart.plots.labels.show ? (o(), r("g", Tl, [
|
|
890
|
+
(o(!0), r(g, null, b(l.plots, (s) => (o(), r("g", null, [
|
|
886
891
|
String(s.label).includes(`
|
|
887
892
|
`) ? (o(), r("text", {
|
|
888
893
|
key: 1,
|
|
@@ -892,19 +897,19 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
892
897
|
fill: e.value.style.chart.plots.labels.color,
|
|
893
898
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
894
899
|
"text-anchor": "middle",
|
|
895
|
-
class:
|
|
900
|
+
class: P({ animated: e.value.useCssAnimation && !u(M) }),
|
|
896
901
|
style: _({
|
|
897
902
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
898
903
|
transition: "opacity 0.2s ease-in-out"
|
|
899
904
|
}),
|
|
900
|
-
innerHTML: u(
|
|
905
|
+
innerHTML: u(Rt)({
|
|
901
906
|
content: String(s.label),
|
|
902
907
|
fontSize: n.value.labels,
|
|
903
908
|
fill: e.value.style.chart.plots.labels.color,
|
|
904
909
|
x: s.x + e.value.style.chart.plots.labels.offsetX,
|
|
905
910
|
y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels
|
|
906
911
|
})
|
|
907
|
-
}, null, 14,
|
|
912
|
+
}, null, 14, zl)) : (o(), r("text", {
|
|
908
913
|
key: 0,
|
|
909
914
|
x: s.x + e.value.style.chart.plots.labels.offsetX,
|
|
910
915
|
y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
|
|
@@ -912,94 +917,102 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
912
917
|
fill: e.value.style.chart.plots.labels.color,
|
|
913
918
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
914
919
|
"text-anchor": "middle",
|
|
915
|
-
class:
|
|
920
|
+
class: P({ animated: e.value.useCssAnimation && !u(M) }),
|
|
916
921
|
style: _({
|
|
917
922
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
918
923
|
transition: "opacity 0.2s ease-in-out"
|
|
919
924
|
})
|
|
920
|
-
},
|
|
925
|
+
}, O(s.label), 15, Ml))
|
|
921
926
|
]))), 256))
|
|
922
927
|
])) : h("", !0),
|
|
923
|
-
e.value.style.chart.plots.indexLabels.show ? (o(), r("g",
|
|
924
|
-
(o(!0), r(
|
|
928
|
+
e.value.style.chart.plots.indexLabels.show ? (o(), r("g", Nl, [
|
|
929
|
+
(o(!0), r(g, null, b(l.plots, (s, k) => (o(), r("text", {
|
|
925
930
|
x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
926
931
|
y: s.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
|
|
927
932
|
"font-size": n.value.indexLabels,
|
|
928
933
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
929
|
-
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(
|
|
934
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(Yt)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
930
935
|
"text-anchor": "middle",
|
|
931
|
-
class:
|
|
936
|
+
class: P({ animated: e.value.useCssAnimation && !u(M) }),
|
|
932
937
|
style: _({
|
|
933
938
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
934
939
|
transition: "opacity 0.2s ease-in-out"
|
|
935
940
|
})
|
|
936
|
-
},
|
|
941
|
+
}, O(e.value.style.chart.plots.indexLabels.startAtZero ? k : k + 1), 15, Ol))), 256))
|
|
937
942
|
])) : h("", !0)
|
|
938
943
|
]))), 256)),
|
|
939
|
-
(o(!0), r(
|
|
940
|
-
(o(!0), r(
|
|
944
|
+
(o(!0), r(g, null, b(I.value, (l) => (o(), r("g", null, [
|
|
945
|
+
(o(!0), r(g, null, b(l.plots, (i, s) => (o(), r("circle", {
|
|
941
946
|
cx: i.x,
|
|
942
947
|
cy: i.y,
|
|
943
948
|
fill: "transparent",
|
|
944
949
|
r: n.value.plots,
|
|
945
950
|
stroke: "none",
|
|
946
|
-
onMouseenter: (k) =>
|
|
951
|
+
onMouseenter: (k) => pt({
|
|
947
952
|
datapoint: i,
|
|
948
953
|
plotIndex: s,
|
|
949
954
|
seriesIndex: l.seriesIndex
|
|
950
955
|
}),
|
|
951
|
-
onMouseleave: (k) =>
|
|
956
|
+
onMouseleave: (k) => xt({
|
|
952
957
|
datapoint: i,
|
|
953
958
|
plotIndex: s,
|
|
954
959
|
seriesIndex: l.seriesIndex
|
|
955
960
|
}),
|
|
956
|
-
onClick: (k) =>
|
|
961
|
+
onClick: (k) => ft({
|
|
957
962
|
datapoint: i,
|
|
958
963
|
plotIndex: s,
|
|
959
964
|
seriesIndex: l.seriesIndex
|
|
960
965
|
})
|
|
961
|
-
}, null, 40,
|
|
966
|
+
}, null, 40, Il))), 256))
|
|
962
967
|
]))), 256)),
|
|
963
968
|
p(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
964
|
-
], 12,
|
|
965
|
-
t.$slots.watermark ? (o(), r("div",
|
|
966
|
-
p(t.$slots, "watermark",
|
|
969
|
+
], 12, sl)),
|
|
970
|
+
t.$slots.watermark ? (o(), r("div", Pl, [
|
|
971
|
+
p(t.$slots, "watermark", Y(D({ isPrinting: u(Ce) || u(_e) })), void 0, !0)
|
|
967
972
|
])) : h("", !0),
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
973
|
+
L("div", {
|
|
974
|
+
id: `legend-bottom-${$.value}`
|
|
975
|
+
}, null, 8, Fl),
|
|
976
|
+
pe.value ? (o(), N($t, {
|
|
977
|
+
key: 5,
|
|
978
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
|
|
971
979
|
}, [
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
980
|
+
L("div", {
|
|
981
|
+
ref_key: "chartLegend",
|
|
982
|
+
ref: ve
|
|
983
|
+
}, [
|
|
984
|
+
e.value.style.chart.legend.show && U.value ? (o(), N(Kt, {
|
|
985
|
+
key: `legend_${he.value}`,
|
|
986
|
+
legendSet: ze.value,
|
|
987
|
+
config: dt.value,
|
|
988
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
|
|
989
|
+
Me(l.seriesIndex), Ne(l);
|
|
990
|
+
})
|
|
991
|
+
}, {
|
|
992
|
+
item: m(({ legend: l, index: i }) => [
|
|
993
|
+
L("div", {
|
|
994
|
+
onClick: (s) => {
|
|
995
|
+
l.segregate(), Ne(l);
|
|
996
|
+
},
|
|
997
|
+
style: _(`opacity:${w.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
998
|
+
}, O(l.name), 13, Xl)
|
|
999
|
+
]),
|
|
1000
|
+
_: 1
|
|
1001
|
+
}, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
1002
|
+
key: 1,
|
|
1003
|
+
legend: ze.value
|
|
1004
|
+
}, void 0, !0)
|
|
1005
|
+
], 512)
|
|
1006
|
+
], 8, ["to"])) : h("", !0),
|
|
994
1007
|
t.$slots.source ? (o(), r("div", {
|
|
995
|
-
key:
|
|
1008
|
+
key: 6,
|
|
996
1009
|
ref_key: "source",
|
|
997
1010
|
ref: xe,
|
|
998
1011
|
dir: "auto"
|
|
999
1012
|
}, [
|
|
1000
1013
|
p(t.$slots, "source", {}, void 0, !0)
|
|
1001
1014
|
], 512)) : h("", !0),
|
|
1002
|
-
|
|
1015
|
+
Re(u(Ke), {
|
|
1003
1016
|
show: C.value.showTooltip && K.value,
|
|
1004
1017
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1005
1018
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1010,7 +1023,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
1010
1023
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1011
1024
|
position: e.value.style.chart.tooltip.position,
|
|
1012
1025
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1013
|
-
parent:
|
|
1026
|
+
parent: S.value,
|
|
1014
1027
|
content: Q.value,
|
|
1015
1028
|
isCustom: H.value,
|
|
1016
1029
|
isFullscreen: j.value,
|
|
@@ -1018,15 +1031,15 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
1018
1031
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1019
1032
|
}, {
|
|
1020
1033
|
"tooltip-before": m(() => [
|
|
1021
|
-
p(t.$slots, "tooltip-before",
|
|
1034
|
+
p(t.$slots, "tooltip-before", Y(D({ ...re.value })), void 0, !0)
|
|
1022
1035
|
]),
|
|
1023
1036
|
"tooltip-after": m(() => [
|
|
1024
|
-
p(t.$slots, "tooltip-after",
|
|
1037
|
+
p(t.$slots, "tooltip-after", Y(D({ ...re.value })), void 0, !0)
|
|
1025
1038
|
]),
|
|
1026
1039
|
_: 3
|
|
1027
1040
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
|
|
1028
|
-
U.value ? (o(),
|
|
1029
|
-
key:
|
|
1041
|
+
U.value ? (o(), N(u(Ve), {
|
|
1042
|
+
key: 7,
|
|
1030
1043
|
hideDetails: "",
|
|
1031
1044
|
config: {
|
|
1032
1045
|
open: C.value.showTable,
|
|
@@ -1042,7 +1055,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
1042
1055
|
}
|
|
1043
1056
|
}, {
|
|
1044
1057
|
content: m(() => [
|
|
1045
|
-
(o(),
|
|
1058
|
+
(o(), N(u(qe), {
|
|
1046
1059
|
key: `table_${ye.value}`,
|
|
1047
1060
|
colNames: G.value.colNames,
|
|
1048
1061
|
head: G.value.head,
|
|
@@ -1052,23 +1065,23 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
|
|
|
1052
1065
|
onClose: a[1] || (a[1] = (l) => C.value.showTable = !1)
|
|
1053
1066
|
}, {
|
|
1054
1067
|
th: m(({ th: l }) => [
|
|
1055
|
-
|
|
1068
|
+
L("div", {
|
|
1056
1069
|
innerHTML: l,
|
|
1057
1070
|
style: { display: "flex", "align-items": "center" }
|
|
1058
|
-
}, null, 8,
|
|
1071
|
+
}, null, 8, Rl)
|
|
1059
1072
|
]),
|
|
1060
1073
|
td: m(({ td: l }) => [
|
|
1061
|
-
|
|
1074
|
+
St(O(l.name || l), 1)
|
|
1062
1075
|
]),
|
|
1063
1076
|
_: 1
|
|
1064
1077
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1065
1078
|
]),
|
|
1066
1079
|
_: 1
|
|
1067
1080
|
}, 8, ["config"])) : h("", !0),
|
|
1068
|
-
u(
|
|
1069
|
-
], 46,
|
|
1081
|
+
u(M) ? (o(), N(Gt, { key: 8 })) : h("", !0)
|
|
1082
|
+
], 46, ll));
|
|
1070
1083
|
}
|
|
1071
|
-
},
|
|
1084
|
+
}, Ql = /* @__PURE__ */ tl(Yl, [["__scopeId", "data-v-88bdea2f"]]);
|
|
1072
1085
|
export {
|
|
1073
|
-
|
|
1086
|
+
Ql as default
|
|
1074
1087
|
};
|