vue-data-ui 3.0.0-next.9 → 3.0.0
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/README.md +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
- package/dist/Slicer-MID8pgT3.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
- package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-f2H3m6Yj.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
- package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
- package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
- package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
- package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
- package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
- package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
- package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
- package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
- package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
- package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
- package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
- package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
- package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
- package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
- package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
- package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
- package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
- package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
- package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
- package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
- package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
- package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
- package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
- package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
- package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
- package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
- package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
- package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
- package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
- package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
- package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
- package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
- package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
- package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
- package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
- package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
- package/dist/vue-ui-wheel-waZf462K.js +379 -0
- package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
- package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-3t0HimeE.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-BC4Ciblw.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
- package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
- package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
- package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
- package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
- package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
- package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
- package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
- package/dist/vue-ui-flow-MvORTthN.js +0 -765
- package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
- package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
- package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
- package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
- package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
- package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
- package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
- package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
- package/dist/vue-ui-onion-DXLokGec.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
- package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
- package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
- package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
- package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
- package/dist/vue-ui-rings-Duay-EmS.js +0 -685
- package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
- package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
- package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
- package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
- package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
- package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
- package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
- package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
- package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
- package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
- package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
- package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
- package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
- package/dist/vue-ui-wheel-tydUATi8.js +0 -352
- package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
- package/dist/vue-ui-xy--HToGdle.js +0 -2982
|
@@ -1,807 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as N, computed as x, ref as h, watch as ot, shallowRef as Ie, onMounted as st, onBeforeUnmount as nt, createElementBlock as u, openBlock as i, unref as d, normalizeStyle as z, normalizeClass as W, createBlock as I, createCommentVNode as m, createElementVNode as E, createVNode as _e, createSlots as it, withCtx as w, renderSlot as g, normalizeProps as B, guardReactiveProps as U, Fragment as C, renderList as _, toDisplayString as V, createTextVNode as ut } from "vue";
|
|
2
|
-
import { u as rt, c as ae, t as ct, p as G, a as vt, o as dt, e as Ne, g as ht, b as pt, d as yt, D as mt, U as ft, V as gt, W as bt, X as xt, I as kt, x as Pe, E as Y, q as wt, r as Ct, i as Oe, f as Le, y as $t } from "./index-CgShIRes.js";
|
|
3
|
-
import { t as At, u as zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as De } from "./useNestedProp-BC4Ciblw.js";
|
|
5
|
-
import { u as Tt } from "./usePrinter-rIrqBbbm.js";
|
|
6
|
-
import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as Ft } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import St from "./Title-B2dA6-uH.js";
|
|
9
|
-
import It from "./Legend-BZ06qU55.js";
|
|
10
|
-
import { _ as _t } from "./Shape-Mr1eIp_G.js";
|
|
11
|
-
import Nt from "./img-C_9wps3s.js";
|
|
12
|
-
import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const Ot = ["id"], Lt = ["xmlns", "viewBox"], Dt = ["x", "y", "width", "height"], Rt = { style: { "pointer-events": "none" } }, Et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["x", "y", "fill", "font-size", "font-weight"], Ut = ["x", "y", "fill", "font-size", "font-weight", "innerHTML"], Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x", "y", "fill", "font-size", "font-weight"], Ht = { key: 0 }, jt = ["x", "y", "font-size", "fill"], Xt = ["width", "x", "y"], Gt = { style: { width: "100%" } }, Yt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], qt = ["d", "stroke", "stroke-width", "onMouseenter"], Jt = ["d", "onMouseenter"], Kt = {
|
|
14
|
-
key: 5,
|
|
15
|
-
class: "vue-data-ui-watermark"
|
|
16
|
-
}, Qt = ["onClick"], Zt = ["innerHTML"], ea = {
|
|
17
|
-
__name: "vue-ui-parallel-coordinate-plot",
|
|
18
|
-
props: {
|
|
19
|
-
config: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default() {
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
dataset: {
|
|
26
|
-
type: Array,
|
|
27
|
-
default() {
|
|
28
|
-
return [];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
emits: ["selectLegend", "selectDatapoint"],
|
|
33
|
-
setup(Re, { expose: Ee, emit: Be }) {
|
|
34
|
-
const Ue = N(() => import("./vue-ui-accordion-hlzscmAS.js")), Ve = N(() => import("./DataTable--paavNqF.js")), We = N(() => import("./PackageVersion-2QvaZf9_.js")), He = N(() => import("./PenAndPaper-hGgW0EHz.js")), je = N(() => import("./vue-ui-skeleton-BsBaCvoE.js")), Xe = N(() => import("./Tooltip-O_hCvqgF.js")), Ge = N(() => import("./UserOptions-Bk03FRqW.js")), { vue_ui_parallel_coordinate_plot: Ye } = rt(), T = Re, P = x({
|
|
35
|
-
get() {
|
|
36
|
-
return !!T.dataset && T.dataset.length;
|
|
37
|
-
},
|
|
38
|
-
set(t) {
|
|
39
|
-
return t;
|
|
40
|
-
}
|
|
41
|
-
}), le = h(0), M = h(null), oe = h(null), se = h(null), ne = h(null), ie = h(null), ue = h(0), re = h(0), ce = h(0), q = h(ae()), O = h(!1);
|
|
42
|
-
function ve(t) {
|
|
43
|
-
O.value = t, le.value += 1;
|
|
44
|
-
}
|
|
45
|
-
const e = x({
|
|
46
|
-
get: () => ye(),
|
|
47
|
-
set: (t) => t
|
|
48
|
-
}), { userOptionsVisible: J, setUserOptionsVisibility: de, keepUserOptionState: he } = Mt({ config: e.value }), { svgRef: pe } = Ft({ config: e.value.style.chart.title });
|
|
49
|
-
function ye() {
|
|
50
|
-
const t = De({
|
|
51
|
-
userConfig: T.config,
|
|
52
|
-
defaultConfig: Ye
|
|
53
|
-
});
|
|
54
|
-
return t.theme ? {
|
|
55
|
-
...De({
|
|
56
|
-
userConfig: vt.vue_ui_parallel_coordinate_plot[t.theme] || T.config,
|
|
57
|
-
defaultConfig: t
|
|
58
|
-
}),
|
|
59
|
-
customPalette: ct[t.theme] || G
|
|
60
|
-
} : t;
|
|
61
|
-
}
|
|
62
|
-
ot(() => T.config, (t) => {
|
|
63
|
-
e.value = ye(), J.value = !e.value.userOptions.showOnChartHover, me(), ue.value += 1, ce.value += 1, re.value += 1, p.value.dataLabels.show = e.value.style.chart.yAxis.labels.datapoints.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
64
|
-
}, { deep: !0 });
|
|
65
|
-
const F = Ie(null), L = Ie(null);
|
|
66
|
-
st(() => {
|
|
67
|
-
me();
|
|
68
|
-
});
|
|
69
|
-
function me() {
|
|
70
|
-
if (dt(T.dataset) ? Ne({
|
|
71
|
-
componentName: "VueUiParallelCoordinatePlot",
|
|
72
|
-
type: "dataset"
|
|
73
|
-
}) : T.dataset.forEach((t, l) => {
|
|
74
|
-
ht({
|
|
75
|
-
datasetObject: t,
|
|
76
|
-
requiredAttributes: ["name", "series"]
|
|
77
|
-
}).forEach((a) => {
|
|
78
|
-
P.value = !1, Ne({
|
|
79
|
-
componentName: "VueUiParallelCoordinatePlot",
|
|
80
|
-
type: "datasetSerieAttribute",
|
|
81
|
-
property: a,
|
|
82
|
-
index: l
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
}), e.value.responsive) {
|
|
86
|
-
const t = At(() => {
|
|
87
|
-
const { width: l, height: a } = zt({
|
|
88
|
-
chart: M.value,
|
|
89
|
-
title: e.value.style.chart.title.text ? oe.value : null,
|
|
90
|
-
legend: e.value.style.chart.legend.show ? se.value : null,
|
|
91
|
-
source: ne.value,
|
|
92
|
-
noTitle: ie.value
|
|
93
|
-
});
|
|
94
|
-
requestAnimationFrame(() => {
|
|
95
|
-
c.value.width = l, c.value.height = a, e.value.responsiveProportionalSizing ? (c.value.plotSize = Y({
|
|
96
|
-
relator: Math.min(l, a),
|
|
97
|
-
adjuster: 600,
|
|
98
|
-
source: e.value.style.chart.plots.radius,
|
|
99
|
-
threshold: 2,
|
|
100
|
-
fallback: 2
|
|
101
|
-
}), c.value.ticksFontSize = Y({
|
|
102
|
-
relator: Math.min(l, a),
|
|
103
|
-
adjuster: 600,
|
|
104
|
-
source: e.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
105
|
-
threshold: 10,
|
|
106
|
-
fallback: 10
|
|
107
|
-
}), c.value.datapointFontSize = Y({
|
|
108
|
-
relator: Math.min(l, a),
|
|
109
|
-
adjuster: 600,
|
|
110
|
-
source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
111
|
-
threshold: 10,
|
|
112
|
-
fallback: 10
|
|
113
|
-
}), c.value.axisNameFontSize = Y({
|
|
114
|
-
relator: Math.min(l, a),
|
|
115
|
-
adjuster: 600,
|
|
116
|
-
source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
|
|
117
|
-
threshold: 12,
|
|
118
|
-
fallback: 12
|
|
119
|
-
})) : (c.value.plotSize = e.value.style.chart.plots.radius, c.value.ticksFontSize = e.value.style.chart.yAxis.labels.ticks.fontSize, c.value.datapointFontSize = e.value.style.chart.yAxis.labels.datapoints.fontSize, c.value.axisNameFontSize = e.value.style.chart.yAxis.labels.axisNamesFontSize);
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
F.value && (L.value && F.value.unobserve(L.value), F.value.disconnect()), F.value = new ResizeObserver(t), L.value = M.value.parentNode, F.value.observe(L.value);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
nt(() => {
|
|
126
|
-
F.value && (L.value && F.value.unobserve(L.value), F.value.disconnect());
|
|
127
|
-
});
|
|
128
|
-
const { isPrinting: fe, isImaging: ge, generatePdf: be, generateImage: xe } = Tt({
|
|
129
|
-
elementId: `pcp_${q.value}`,
|
|
130
|
-
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
131
|
-
options: e.value.userOptions.print
|
|
132
|
-
}), qe = x(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = h({
|
|
133
|
-
height: e.value.style.chart.height,
|
|
134
|
-
width: e.value.style.chart.width,
|
|
135
|
-
plotSize: e.value.style.chart.plots.radius,
|
|
136
|
-
// ratio 100
|
|
137
|
-
ticksFontSize: e.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
138
|
-
// ratio 42.85
|
|
139
|
-
datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
140
|
-
axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
141
|
-
}), r = x(() => {
|
|
142
|
-
const { top: t, right: l, bottom: a, left: o } = e.value.style.chart.padding, n = c.value.height, s = c.value.width;
|
|
143
|
-
return {
|
|
144
|
-
chartHeight: n,
|
|
145
|
-
chartWidth: s,
|
|
146
|
-
height: n - t - a,
|
|
147
|
-
width: s - o - l,
|
|
148
|
-
top: t,
|
|
149
|
-
left: o,
|
|
150
|
-
right: s - l,
|
|
151
|
-
bottom: n - a
|
|
152
|
-
};
|
|
153
|
-
}), Je = x(() => pt(e.value.customPalette)), p = h({
|
|
154
|
-
dataLabels: {
|
|
155
|
-
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
156
|
-
},
|
|
157
|
-
showTable: e.value.table.show,
|
|
158
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
159
|
-
}), $ = h([]);
|
|
160
|
-
function ke(t) {
|
|
161
|
-
$.value.includes(t) ? $.value = $.value.filter((l) => l !== t) : $.value.push(t);
|
|
162
|
-
}
|
|
163
|
-
const S = x(() => T.dataset.map((t, l) => {
|
|
164
|
-
const a = yt(t.color) || Je.value[l] || G[l] || G[l % G.length];
|
|
165
|
-
return {
|
|
166
|
-
...t,
|
|
167
|
-
series: t.series.map((o) => ({
|
|
168
|
-
...o,
|
|
169
|
-
id: ae(),
|
|
170
|
-
color: a
|
|
171
|
-
})),
|
|
172
|
-
seriesIndex: l,
|
|
173
|
-
color: a,
|
|
174
|
-
id: ae(),
|
|
175
|
-
shape: t.shape || "circle"
|
|
176
|
-
};
|
|
177
|
-
})), Ke = x(() => S.value.map((t) => ({
|
|
178
|
-
...t,
|
|
179
|
-
opacity: $.value.includes(t.id) ? 0.5 : 1,
|
|
180
|
-
segregate: () => ke(t.id),
|
|
181
|
-
isSegregated: $.value.includes(t.id)
|
|
182
|
-
}))), Qe = x(() => ({
|
|
183
|
-
cy: "pcp-div-legend",
|
|
184
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
185
|
-
color: e.value.style.chart.legend.color,
|
|
186
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
187
|
-
paddingBottom: 12,
|
|
188
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
189
|
-
})), we = x(() => Math.max(
|
|
190
|
-
...S.value.filter((t) => !$.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((l) => l.values.length)))
|
|
191
|
-
)), k = x(() => r.value.width / we.value), K = x(() => S.value.filter((t) => !$.value.includes(t.id))), b = x(() => {
|
|
192
|
-
let t = [];
|
|
193
|
-
for (let l = 0; l < we.value; l += 1) {
|
|
194
|
-
const a = Math.min(...K.value.flatMap((y) => y.series.map((X) => X.values[l] || 0) || 0)), o = Math.max(...K.value.flatMap((y) => y.series.map((X) => X.values[l] || 0) || 0)), n = o === a ? a / 4 : a, s = o === a ? o * 2 : o, v = mt(n, s, e.value.style.chart.yAxis.scaleTicks), A = v.ticks.map((y, X) => {
|
|
195
|
-
const at = v.min < 0 ? y + Math.abs(v.min) : y - Math.abs(v.min), lt = v.min < 0 ? v.max + Math.abs(v.min) : v.max - Math.abs(v.min);
|
|
196
|
-
return {
|
|
197
|
-
y: r.value.bottom - r.value.height * (at / lt),
|
|
198
|
-
x: r.value.left + k.value * l + k.value / 2,
|
|
199
|
-
value: y
|
|
200
|
-
};
|
|
201
|
-
});
|
|
202
|
-
t.push({
|
|
203
|
-
scale: v,
|
|
204
|
-
ticks: A,
|
|
205
|
-
name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
return t;
|
|
209
|
-
}), Q = x(() => K.value.map((t, l) => ({
|
|
210
|
-
...t,
|
|
211
|
-
series: t.series.map((a, o) => ({
|
|
212
|
-
...a,
|
|
213
|
-
datapoints: a.values.map((n, s) => {
|
|
214
|
-
const v = b.value[s].scale.min < 0 ? (n || 0) + Math.abs(b.value[s].scale.min) : (n || 0) - Math.abs(b.value[s].scale.min), A = b.value[s].scale.min < 0 ? b.value[s].scale.max + Math.abs(b.value[s].scale.min) : b.value[s].scale.max - Math.abs(b.value[s].scale.min);
|
|
215
|
-
return {
|
|
216
|
-
name: a.name,
|
|
217
|
-
seriesName: t.name,
|
|
218
|
-
axisIndex: s,
|
|
219
|
-
datapointIndex: o,
|
|
220
|
-
seriesIndex: l,
|
|
221
|
-
value: n || 0,
|
|
222
|
-
x: r.value.left + k.value * s + k.value / 2,
|
|
223
|
-
y: r.value.bottom - r.value.height * (v / A),
|
|
224
|
-
comment: a.comments && a.comments[s] || ""
|
|
225
|
-
};
|
|
226
|
-
})
|
|
227
|
-
}))
|
|
228
|
-
})).map((t) => ({
|
|
229
|
-
...t,
|
|
230
|
-
series: t.series.map((l) => {
|
|
231
|
-
const a = ft(l.datapoints), o = gt(l.datapoints), n = bt(e.value.style.chart.lines.smooth ? `M ${o}` : `M ${a}`);
|
|
232
|
-
return {
|
|
233
|
-
...l,
|
|
234
|
-
smoothPath: o,
|
|
235
|
-
straightPath: a,
|
|
236
|
-
pathLength: n
|
|
237
|
-
};
|
|
238
|
-
})
|
|
239
|
-
})));
|
|
240
|
-
function Ce({ value: t, index: l, datapoint: a }) {
|
|
241
|
-
return Oe(
|
|
242
|
-
e.value.style.chart.yAxis.labels.formatters[l] || null,
|
|
243
|
-
t,
|
|
244
|
-
Le({
|
|
245
|
-
p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
|
|
246
|
-
v: t,
|
|
247
|
-
s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
|
|
248
|
-
r: e.value.style.chart.yAxis.labels.roundings[l] || 0
|
|
249
|
-
}),
|
|
250
|
-
{ datapoint: a, seriesIndex: l }
|
|
251
|
-
);
|
|
252
|
-
}
|
|
253
|
-
const f = h(null), Z = h(null), D = h(!1), ee = h("");
|
|
254
|
-
function H({ shape: t, serieName: l, serie: a, relativeIndex: o, seriesIndex: n }) {
|
|
255
|
-
Z.value = { serie: a, relativeIndex: o, seriesIndex: n, series: S.value, scales: b.value }, D.value = !0, f.value = a.id;
|
|
256
|
-
let s = "";
|
|
257
|
-
const v = e.value.style.chart.tooltip.customFormat;
|
|
258
|
-
Pe(v) && $t(() => v({
|
|
259
|
-
serie: a,
|
|
260
|
-
seriesIndex: a.seriesIndex,
|
|
261
|
-
series: S.value,
|
|
262
|
-
config: e.value,
|
|
263
|
-
scales: b.value
|
|
264
|
-
})) ? ee.value = v({
|
|
265
|
-
serie: a,
|
|
266
|
-
seriesIndex: a.seriesIndex,
|
|
267
|
-
series: S.value,
|
|
268
|
-
config: e.value,
|
|
269
|
-
scales: b.value
|
|
270
|
-
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l ? l + " - " : ""}${a.name}</div>`, b.value.map((A) => A.name).forEach((A, y) => {
|
|
271
|
-
s += `
|
|
272
|
-
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
273
|
-
<span>${A}: </span>
|
|
274
|
-
<span>
|
|
275
|
-
${Oe(
|
|
276
|
-
e.value.style.chart.yAxis.labels.formatters[y] || null,
|
|
277
|
-
a.datapoints[y].value,
|
|
278
|
-
Le({
|
|
279
|
-
p: e.value.style.chart.yAxis.labels.prefixes[y] || "",
|
|
280
|
-
v: a.datapoints[y].value,
|
|
281
|
-
s: e.value.style.chart.yAxis.labels.suffixes[y] || "",
|
|
282
|
-
r: e.value.style.chart.yAxis.labels.roundings[y] || ""
|
|
283
|
-
}),
|
|
284
|
-
{ datapoint: a.datapoints[y], seriesIndex: y }
|
|
285
|
-
)}
|
|
286
|
-
</span>
|
|
287
|
-
</div>
|
|
288
|
-
`, e.value.style.chart.comments.showInTooltip && a.datapoints[y].comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.datapoints[y].comment}</div>`);
|
|
289
|
-
}), ee.value = `<div>${s}</div>`);
|
|
290
|
-
}
|
|
291
|
-
function Ze() {
|
|
292
|
-
return S.value;
|
|
293
|
-
}
|
|
294
|
-
const R = x(() => {
|
|
295
|
-
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((n) => n.name)), l = Q.value.flatMap((n, s) => n.series.map((v) => [n.name].concat([v.name]).concat(v.values))), a = {
|
|
296
|
-
th: {
|
|
297
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
298
|
-
color: e.value.table.th.color,
|
|
299
|
-
outline: e.value.table.th.outline
|
|
300
|
-
},
|
|
301
|
-
td: {
|
|
302
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
303
|
-
color: e.value.table.td.color,
|
|
304
|
-
outline: e.value.table.td.outline
|
|
305
|
-
},
|
|
306
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
307
|
-
}, o = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((n) => n.name));
|
|
308
|
-
return {
|
|
309
|
-
body: l,
|
|
310
|
-
head: t,
|
|
311
|
-
config: a,
|
|
312
|
-
colNames: o
|
|
313
|
-
};
|
|
314
|
-
}), $e = x(() => Q.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
|
|
315
|
-
head: R.value.head,
|
|
316
|
-
body: R.value.body
|
|
317
|
-
});
|
|
318
|
-
function Ae(t = null) {
|
|
319
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = $e.value.head, o = $e.value.body, n = l.concat([a]).concat(o), s = wt(n);
|
|
320
|
-
t ? t(s) : Ct({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
|
|
321
|
-
}
|
|
322
|
-
const ze = Be;
|
|
323
|
-
function et(t) {
|
|
324
|
-
ze("selectDatapoint", t);
|
|
325
|
-
}
|
|
326
|
-
function Te(t) {
|
|
327
|
-
ze("selectLegend", {
|
|
328
|
-
...t,
|
|
329
|
-
isSegregated: !t.isSegregated,
|
|
330
|
-
opacity: t.isSegregated ? 1 : 0.5
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
function Me() {
|
|
334
|
-
p.value.showTable = !p.value.showTable;
|
|
335
|
-
}
|
|
336
|
-
function Fe() {
|
|
337
|
-
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
338
|
-
}
|
|
339
|
-
function Se() {
|
|
340
|
-
p.value.showTooltip = !p.value.showTooltip;
|
|
341
|
-
}
|
|
342
|
-
const j = h(!1);
|
|
343
|
-
function te() {
|
|
344
|
-
j.value = !j.value;
|
|
345
|
-
}
|
|
346
|
-
async function tt({ scale: t = 2 } = {}) {
|
|
347
|
-
if (!M.value) return;
|
|
348
|
-
const { width: l, height: a } = M.value.getBoundingClientRect(), o = l / a, { imageUri: n, base64: s } = await Nt({ domElement: M.value, base64: !0, img: !0, scale: t });
|
|
349
|
-
return {
|
|
350
|
-
imageUri: n,
|
|
351
|
-
base64: s,
|
|
352
|
-
title: e.value.style.chart.title.text,
|
|
353
|
-
width: l,
|
|
354
|
-
height: a,
|
|
355
|
-
aspectRatio: o
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
return Ee({
|
|
359
|
-
getData: Ze,
|
|
360
|
-
getImage: tt,
|
|
361
|
-
generateCsv: Ae,
|
|
362
|
-
generatePdf: be,
|
|
363
|
-
generateImage: xe,
|
|
364
|
-
toggleTable: Me,
|
|
365
|
-
toggleLabels: Fe,
|
|
366
|
-
toggleTooltip: Se,
|
|
367
|
-
toggleAnnotator: te,
|
|
368
|
-
toggleFullscreen: ve
|
|
369
|
-
}), (t, l) => (i(), u("div", {
|
|
370
|
-
ref_key: "pcpChart",
|
|
371
|
-
ref: M,
|
|
372
|
-
class: W(`vue-ui-pcp ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
373
|
-
style: z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
374
|
-
id: `pcp_${q.value}`,
|
|
375
|
-
onMouseenter: l[6] || (l[6] = () => d(de)(!0)),
|
|
376
|
-
onMouseleave: l[7] || (l[7] = () => d(de)(!1))
|
|
377
|
-
}, [
|
|
378
|
-
e.value.userOptions.buttons.annotator ? (i(), I(d(He), {
|
|
379
|
-
key: 0,
|
|
380
|
-
svgRef: d(pe),
|
|
381
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
382
|
-
color: e.value.style.chart.color,
|
|
383
|
-
active: j.value,
|
|
384
|
-
onClose: te
|
|
385
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
386
|
-
qe.value ? (i(), u("div", {
|
|
387
|
-
key: 1,
|
|
388
|
-
ref_key: "noTitle",
|
|
389
|
-
ref: ie,
|
|
390
|
-
class: "vue-data-ui-no-title-space",
|
|
391
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
392
|
-
}, null, 512)) : m("", !0),
|
|
393
|
-
e.value.style.chart.title.text ? (i(), u("div", {
|
|
394
|
-
key: 2,
|
|
395
|
-
ref_key: "chartTitle",
|
|
396
|
-
ref: oe,
|
|
397
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
398
|
-
}, [
|
|
399
|
-
(i(), I(St, {
|
|
400
|
-
key: `title_${ue.value}`,
|
|
401
|
-
config: {
|
|
402
|
-
title: {
|
|
403
|
-
cy: "pcp-div-title",
|
|
404
|
-
...e.value.style.chart.title
|
|
405
|
-
},
|
|
406
|
-
subtitle: {
|
|
407
|
-
cy: "pcp-div-subtitle",
|
|
408
|
-
...e.value.style.chart.title.subtitle
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}, null, 8, ["config"]))
|
|
412
|
-
], 512)) : m("", !0),
|
|
413
|
-
e.value.userOptions.show && P.value && (d(he) || d(J)) ? (i(), I(d(Ge), {
|
|
414
|
-
ref: "details",
|
|
415
|
-
key: `user_options_${le.value}`,
|
|
416
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
417
|
-
color: e.value.style.chart.color,
|
|
418
|
-
isPrinting: d(fe),
|
|
419
|
-
isImaging: d(ge),
|
|
420
|
-
uid: q.value,
|
|
421
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
422
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
423
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
424
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
425
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
426
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
427
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
428
|
-
isFullscreen: O.value,
|
|
429
|
-
isTooltip: p.value.showTooltip,
|
|
430
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
431
|
-
chartElement: M.value,
|
|
432
|
-
position: e.value.userOptions.position,
|
|
433
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
434
|
-
isAnnotation: j.value,
|
|
435
|
-
callbacks: e.value.userOptions.callbacks,
|
|
436
|
-
printScale: e.value.userOptions.print.scale,
|
|
437
|
-
onToggleFullscreen: ve,
|
|
438
|
-
onGeneratePdf: d(be),
|
|
439
|
-
onGenerateCsv: Ae,
|
|
440
|
-
onGenerateImage: d(xe),
|
|
441
|
-
onToggleTable: Me,
|
|
442
|
-
onToggleLabels: Fe,
|
|
443
|
-
onToggleTooltip: Se,
|
|
444
|
-
onToggleAnnotator: te,
|
|
445
|
-
style: z({
|
|
446
|
-
visibility: d(he) ? d(J) ? "visible" : "hidden" : "visible"
|
|
447
|
-
})
|
|
448
|
-
}, it({ _: 2 }, [
|
|
449
|
-
t.$slots.menuIcon ? {
|
|
450
|
-
name: "menuIcon",
|
|
451
|
-
fn: w(({ isOpen: a, color: o }) => [
|
|
452
|
-
g(t.$slots, "menuIcon", B(U({ isOpen: a, color: o })), void 0, !0)
|
|
453
|
-
]),
|
|
454
|
-
key: "0"
|
|
455
|
-
} : void 0,
|
|
456
|
-
t.$slots.optionPdf ? {
|
|
457
|
-
name: "optionPdf",
|
|
458
|
-
fn: w(() => [
|
|
459
|
-
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
460
|
-
]),
|
|
461
|
-
key: "1"
|
|
462
|
-
} : void 0,
|
|
463
|
-
t.$slots.optionCsv ? {
|
|
464
|
-
name: "optionCsv",
|
|
465
|
-
fn: w(() => [
|
|
466
|
-
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
467
|
-
]),
|
|
468
|
-
key: "2"
|
|
469
|
-
} : void 0,
|
|
470
|
-
t.$slots.optionImg ? {
|
|
471
|
-
name: "optionImg",
|
|
472
|
-
fn: w(() => [
|
|
473
|
-
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
474
|
-
]),
|
|
475
|
-
key: "3"
|
|
476
|
-
} : void 0,
|
|
477
|
-
t.$slots.optionTable ? {
|
|
478
|
-
name: "optionTable",
|
|
479
|
-
fn: w(() => [
|
|
480
|
-
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
481
|
-
]),
|
|
482
|
-
key: "4"
|
|
483
|
-
} : void 0,
|
|
484
|
-
t.$slots.optionLabels ? {
|
|
485
|
-
name: "optionLabels",
|
|
486
|
-
fn: w(() => [
|
|
487
|
-
g(t.$slots, "optionLabels", {}, void 0, !0)
|
|
488
|
-
]),
|
|
489
|
-
key: "5"
|
|
490
|
-
} : void 0,
|
|
491
|
-
t.$slots.optionFullscreen ? {
|
|
492
|
-
name: "optionFullscreen",
|
|
493
|
-
fn: w(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
494
|
-
g(t.$slots, "optionFullscreen", B(U({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
495
|
-
]),
|
|
496
|
-
key: "6"
|
|
497
|
-
} : void 0,
|
|
498
|
-
t.$slots.optionAnnotator ? {
|
|
499
|
-
name: "optionAnnotator",
|
|
500
|
-
fn: w(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
501
|
-
g(t.$slots, "optionAnnotator", B(U({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
502
|
-
]),
|
|
503
|
-
key: "7"
|
|
504
|
-
} : void 0
|
|
505
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
506
|
-
P.value ? (i(), u("svg", {
|
|
507
|
-
key: 4,
|
|
508
|
-
ref_key: "svgRef",
|
|
509
|
-
ref: pe,
|
|
510
|
-
xmlns: d(xt),
|
|
511
|
-
class: W({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
512
|
-
viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
|
|
513
|
-
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
514
|
-
}, [
|
|
515
|
-
_e(d(We)),
|
|
516
|
-
t.$slots["chart-background"] ? (i(), u("foreignObject", {
|
|
517
|
-
key: 0,
|
|
518
|
-
x: r.value.left,
|
|
519
|
-
y: r.value.top,
|
|
520
|
-
width: r.value.width,
|
|
521
|
-
height: r.value.height,
|
|
522
|
-
style: {
|
|
523
|
-
pointerEvents: "none"
|
|
524
|
-
}
|
|
525
|
-
}, [
|
|
526
|
-
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
527
|
-
], 8, Dt)) : m("", !0),
|
|
528
|
-
(i(!0), u(C, null, _(b.value, (a, o) => (i(), u("g", Rt, [
|
|
529
|
-
E("line", {
|
|
530
|
-
x1: r.value.left + k.value * o + k.value / 2,
|
|
531
|
-
x2: r.value.left + k.value * o + k.value / 2,
|
|
532
|
-
y1: r.value.top,
|
|
533
|
-
y2: r.value.bottom,
|
|
534
|
-
stroke: e.value.style.chart.yAxis.stroke,
|
|
535
|
-
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
536
|
-
}, null, 8, Et),
|
|
537
|
-
String(a.name).includes(`
|
|
538
|
-
`) ? (i(), u("text", {
|
|
539
|
-
key: 1,
|
|
540
|
-
x: r.value.left + k.value * o + k.value / 2,
|
|
541
|
-
y: r.value.top - 24,
|
|
542
|
-
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
543
|
-
"font-size": c.value.axisNameFontSize,
|
|
544
|
-
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
545
|
-
"text-anchor": "middle",
|
|
546
|
-
innerHTML: d(kt)({
|
|
547
|
-
content: String(a.name),
|
|
548
|
-
fontSize: c.value.axisNameFontSize,
|
|
549
|
-
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
550
|
-
x: r.value.left + k.value * o + k.value / 2,
|
|
551
|
-
y: r.value.top - 24
|
|
552
|
-
})
|
|
553
|
-
}, null, 8, Ut)) : (i(), u("text", {
|
|
554
|
-
key: 0,
|
|
555
|
-
x: r.value.left + k.value * o + k.value / 2,
|
|
556
|
-
y: r.value.top - 24,
|
|
557
|
-
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
558
|
-
"font-size": c.value.axisNameFontSize,
|
|
559
|
-
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
560
|
-
"text-anchor": "middle"
|
|
561
|
-
}, V(a.name), 9, Bt)),
|
|
562
|
-
e.value.style.chart.yAxis.labels.ticks.show ? (i(), u(C, { key: 2 }, [
|
|
563
|
-
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("line", {
|
|
564
|
-
x1: n.x,
|
|
565
|
-
x2: n.x - 10,
|
|
566
|
-
y1: n.y,
|
|
567
|
-
y2: n.y,
|
|
568
|
-
stroke: e.value.style.chart.yAxis.stroke,
|
|
569
|
-
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
570
|
-
style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
571
|
-
}, null, 12, Vt))), 256)),
|
|
572
|
-
(i(!0), u(C, null, _(a.ticks, (n) => (i(), u("text", {
|
|
573
|
-
x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
574
|
-
y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
575
|
-
fill: e.value.style.chart.yAxis.labels.ticks.color,
|
|
576
|
-
"text-anchor": "end",
|
|
577
|
-
"font-size": c.value.ticksFontSize,
|
|
578
|
-
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
579
|
-
style: z(`opacity:${f.value && !p.value.showTooltip ? 0.2 : 1}`)
|
|
580
|
-
}, V(Ce({ value: n.value, index: o, datapoint: n })), 13, Wt))), 256))
|
|
581
|
-
], 64)) : m("", !0)
|
|
582
|
-
]))), 256)),
|
|
583
|
-
(i(!0), u(C, null, _(Q.value, (a) => (i(), u("g", null, [
|
|
584
|
-
(i(!0), u(C, null, _(a.series, (o, n) => (i(), u("g", null, [
|
|
585
|
-
e.value.style.chart.plots.show ? (i(), u("g", Ht, [
|
|
586
|
-
(i(!0), u(C, null, _(o.datapoints, (s) => (i(), I(_t, {
|
|
587
|
-
plot: { x: s.x, y: s.y },
|
|
588
|
-
color: a.color,
|
|
589
|
-
shape: a.shape,
|
|
590
|
-
radius: a.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
|
|
591
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
592
|
-
strokeWidth: 0.5,
|
|
593
|
-
onMouseenter: (v) => H({
|
|
594
|
-
shape: a.shape,
|
|
595
|
-
serieName: a.name,
|
|
596
|
-
serie: o,
|
|
597
|
-
relativeIndex: n,
|
|
598
|
-
seriesIndex: o.seriesIndex
|
|
599
|
-
}),
|
|
600
|
-
onMouseleave: l[0] || (l[0] = (v) => {
|
|
601
|
-
f.value = null, D.value = !1;
|
|
602
|
-
}),
|
|
603
|
-
style: z(`opacity:${f.value ? f.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
604
|
-
onClick: () => et(s)
|
|
605
|
-
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
|
|
606
|
-
p.value.showTooltip ? m("", !0) : (i(), u(C, { key: 0 }, [
|
|
607
|
-
f.value && f.value === o.id && o.datapoints.length ? (i(), u("text", {
|
|
608
|
-
key: 0,
|
|
609
|
-
x: o.datapoints[0].x - c.value.ticksFontSize,
|
|
610
|
-
y: o.datapoints[0].y + c.value.ticksFontSize / 3,
|
|
611
|
-
"text-anchor": "end",
|
|
612
|
-
"font-size": c.value.ticksFontSize,
|
|
613
|
-
fill: a.color,
|
|
614
|
-
"font-weight": "bold"
|
|
615
|
-
}, V(o.name), 9, jt)) : m("", !0)
|
|
616
|
-
], 64)),
|
|
617
|
-
e.value.style.chart.comments.show ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s) => (i(), u("g", null, [
|
|
618
|
-
s.comment ? (i(), u("foreignObject", {
|
|
619
|
-
key: 0,
|
|
620
|
-
style: { overflow: "visible" },
|
|
621
|
-
height: "12",
|
|
622
|
-
width: e.value.style.chart.comments.width,
|
|
623
|
-
x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
624
|
-
y: s.y + e.value.style.chart.comments.offsetY + 6
|
|
625
|
-
}, [
|
|
626
|
-
E("div", Gt, [
|
|
627
|
-
g(t.$slots, "plot-comment", {
|
|
628
|
-
plot: { ...s, color: a.color }
|
|
629
|
-
}, void 0, !0)
|
|
630
|
-
])
|
|
631
|
-
], 8, Xt)) : m("", !0)
|
|
632
|
-
]))), 256)) : m("", !0)
|
|
633
|
-
])) : m("", !0),
|
|
634
|
-
p.value.dataLabels.show || f.value && f.value === o.id ? (i(!0), u(C, { key: 1 }, _(o.datapoints, (s, v) => (i(), u("text", {
|
|
635
|
-
x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
636
|
-
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
637
|
-
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
638
|
-
"text-anchor": "start",
|
|
639
|
-
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
640
|
-
class: W({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
|
|
641
|
-
"font-size": c.value.datapointFontSize,
|
|
642
|
-
onMouseenter: (A) => H({
|
|
643
|
-
shape: a.shape,
|
|
644
|
-
serieName: a.name,
|
|
645
|
-
serie: o,
|
|
646
|
-
relativeIndex: n,
|
|
647
|
-
seriesIndex: o.seriesIndex
|
|
648
|
-
}),
|
|
649
|
-
onMouseleave: l[1] || (l[1] = (A) => {
|
|
650
|
-
f.value = null, D.value = !1;
|
|
651
|
-
}),
|
|
652
|
-
style: z(`opacity:${f.value ? f.value === o.id ? 1 : 0.2 : 1}`)
|
|
653
|
-
}, V(Ce({ value: s.value, index: v, datapoint: s })), 45, Yt))), 256)) : m("", !0),
|
|
654
|
-
E("path", {
|
|
655
|
-
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
656
|
-
stroke: a.color,
|
|
657
|
-
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
658
|
-
fill: "none",
|
|
659
|
-
class: W({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
660
|
-
onMouseenter: (s) => H({
|
|
661
|
-
shape: a.shape,
|
|
662
|
-
serieName: a.name,
|
|
663
|
-
serie: o,
|
|
664
|
-
relativeIndex: n,
|
|
665
|
-
seriesIndex: o.seriesIndex
|
|
666
|
-
}),
|
|
667
|
-
onMouseleave: l[2] || (l[2] = (s) => {
|
|
668
|
-
f.value = null, D.value = !1;
|
|
669
|
-
}),
|
|
670
|
-
style: z(`opacity:${f.value ? f.value === o.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${o.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? o.pathLength : 0}`)
|
|
671
|
-
}, null, 46, qt),
|
|
672
|
-
p.value.showTooltip ? (i(), u("path", {
|
|
673
|
-
key: 2,
|
|
674
|
-
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
675
|
-
stroke: "transparent",
|
|
676
|
-
"stroke-width": 12,
|
|
677
|
-
fill: "none",
|
|
678
|
-
class: W({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
679
|
-
onMouseenter: (s) => H({
|
|
680
|
-
shape: a.shape,
|
|
681
|
-
serieName: a.name,
|
|
682
|
-
serie: o,
|
|
683
|
-
relativeIndex: n,
|
|
684
|
-
seriesIndex: o.seriesIndex
|
|
685
|
-
}),
|
|
686
|
-
onMouseleave: l[3] || (l[3] = (s) => {
|
|
687
|
-
f.value = null, D.value = !1;
|
|
688
|
-
}),
|
|
689
|
-
style: { opacity: "0" }
|
|
690
|
-
}, null, 42, Jt)) : m("", !0)
|
|
691
|
-
]))), 256))
|
|
692
|
-
]))), 256)),
|
|
693
|
-
g(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
694
|
-
], 14, Lt)) : m("", !0),
|
|
695
|
-
t.$slots.watermark ? (i(), u("div", Kt, [
|
|
696
|
-
g(t.$slots, "watermark", B(U({ isPrinting: d(fe) || d(ge) })), void 0, !0)
|
|
697
|
-
])) : m("", !0),
|
|
698
|
-
P.value ? m("", !0) : (i(), I(d(je), {
|
|
699
|
-
key: 6,
|
|
700
|
-
config: {
|
|
701
|
-
type: "parallelCoordinatePlot",
|
|
702
|
-
style: {
|
|
703
|
-
backgroundColor: e.value.style.chart.backgroundColor
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
}, null, 8, ["config"])),
|
|
707
|
-
E("div", {
|
|
708
|
-
ref_key: "chartLegend",
|
|
709
|
-
ref: se
|
|
710
|
-
}, [
|
|
711
|
-
e.value.style.chart.legend.show && P.value ? (i(), I(It, {
|
|
712
|
-
key: `legend_${re.value}`,
|
|
713
|
-
legendSet: Ke.value,
|
|
714
|
-
config: Qe.value,
|
|
715
|
-
onClickMarker: l[4] || (l[4] = ({ legend: a }) => {
|
|
716
|
-
ke(a.id), Te(a);
|
|
717
|
-
})
|
|
718
|
-
}, {
|
|
719
|
-
item: w(({ legend: a, index: o }) => [
|
|
720
|
-
E("div", {
|
|
721
|
-
onClick: (n) => {
|
|
722
|
-
a.segregate(), Te(a);
|
|
723
|
-
},
|
|
724
|
-
style: z(`opacity:${$.value.includes(a.id) ? 0.5 : 1}`)
|
|
725
|
-
}, V(a.name), 13, Qt)
|
|
726
|
-
]),
|
|
727
|
-
_: 1
|
|
728
|
-
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
729
|
-
key: 1,
|
|
730
|
-
legend: S.value
|
|
731
|
-
}, void 0, !0)
|
|
732
|
-
], 512),
|
|
733
|
-
t.$slots.source ? (i(), u("div", {
|
|
734
|
-
key: 7,
|
|
735
|
-
ref_key: "source",
|
|
736
|
-
ref: ne,
|
|
737
|
-
dir: "auto"
|
|
738
|
-
}, [
|
|
739
|
-
g(t.$slots, "source", {}, void 0, !0)
|
|
740
|
-
], 512)) : m("", !0),
|
|
741
|
-
_e(d(Xe), {
|
|
742
|
-
show: p.value.showTooltip && D.value,
|
|
743
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
744
|
-
color: e.value.style.chart.tooltip.color,
|
|
745
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
746
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
747
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
748
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
749
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
750
|
-
position: e.value.style.chart.tooltip.position,
|
|
751
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
752
|
-
parent: M.value,
|
|
753
|
-
content: ee.value,
|
|
754
|
-
isFullscreen: O.value,
|
|
755
|
-
isCustom: d(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
756
|
-
}, {
|
|
757
|
-
"tooltip-before": w(() => [
|
|
758
|
-
g(t.$slots, "tooltip-before", B(U({ ...Z.value })), void 0, !0)
|
|
759
|
-
]),
|
|
760
|
-
"tooltip-after": w(() => [
|
|
761
|
-
g(t.$slots, "tooltip-after", B(U({ ...Z.value })), void 0, !0)
|
|
762
|
-
]),
|
|
763
|
-
_: 3
|
|
764
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
765
|
-
P.value ? (i(), I(d(Ue), {
|
|
766
|
-
key: 8,
|
|
767
|
-
hideDetails: "",
|
|
768
|
-
config: {
|
|
769
|
-
open: p.value.showTable,
|
|
770
|
-
maxHeight: 1e4,
|
|
771
|
-
body: {
|
|
772
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
773
|
-
color: e.value.style.chart.color
|
|
774
|
-
},
|
|
775
|
-
head: {
|
|
776
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
777
|
-
color: e.value.style.chart.color
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
}, {
|
|
781
|
-
content: w(() => [
|
|
782
|
-
(i(), I(d(Ve), {
|
|
783
|
-
key: `table_${ce.value}`,
|
|
784
|
-
colNames: R.value.colNames,
|
|
785
|
-
head: R.value.head,
|
|
786
|
-
body: R.value.body,
|
|
787
|
-
config: R.value.config,
|
|
788
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
789
|
-
onClose: l[5] || (l[5] = (a) => p.value.showTable = !1)
|
|
790
|
-
}, {
|
|
791
|
-
th: w(({ th: a }) => [
|
|
792
|
-
E("div", { innerHTML: a }, null, 8, Zt)
|
|
793
|
-
]),
|
|
794
|
-
td: w(({ td: a }) => [
|
|
795
|
-
ut(V(a), 1)
|
|
796
|
-
]),
|
|
797
|
-
_: 1
|
|
798
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
799
|
-
]),
|
|
800
|
-
_: 1
|
|
801
|
-
}, 8, ["config"])) : m("", !0)
|
|
802
|
-
], 46, Ot));
|
|
803
|
-
}
|
|
804
|
-
}, ha = /* @__PURE__ */ Pt(ea, [["__scopeId", "data-v-0e1743f3"]]);
|
|
805
|
-
export {
|
|
806
|
-
ha as default
|
|
807
|
-
};
|