vue-data-ui 3.0.23 → 3.1.1
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-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -0,0 +1,1483 @@
|
|
|
1
|
+
import { defineAsyncComponent as F, computed as x, ref as y, toRefs as Ct, watch as pe, shallowRef as Ke, onMounted as qt, onBeforeUnmount as St, createElementBlock as n, openBlock as s, unref as i, normalizeStyle as C, normalizeClass as T, createBlock as X, createCommentVNode as h, createElementVNode as c, createVNode as se, createSlots as et, withCtx as m, renderSlot as $, normalizeProps as U, guardReactiveProps as G, Fragment as S, renderList as Y, toDisplayString as k, Teleport as zt, resolveDynamicComponent as Tt, mergeProps as At, createTextVNode as tt, nextTick as lt } from "vue";
|
|
2
|
+
import { u as Wt, c as at, t as Xt, a as Yt, p as ge, b as Mt, o as Ot, f as Q, d as Nt, e as Bt, Y as Ft, k as R, i as P, X as Rt, s as re, x as Pt, Z as Vt, I as Ht, F as It, v as Dt, w as Et, y as Ut, z as Gt } from "./index-BKQqb9lF.js";
|
|
3
|
+
import { t as Qt, u as Jt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as jt } from "./usePrinter-BzuXiubT.js";
|
|
5
|
+
import { u as ut } from "./useNestedProp-aBOhgs4U.js";
|
|
6
|
+
import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Kt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import el from "./img-gBDz7xQQ.js";
|
|
9
|
+
import tl from "./Title-Dz-j6ERs.js";
|
|
10
|
+
import { _ as ot } from "./Shape-Cjca5zta.js";
|
|
11
|
+
import ll from "./Legend-8_V5egWW.js";
|
|
12
|
+
import { u as al, B as ul } from "./BaseScanner-BgWxam9d.js";
|
|
13
|
+
import { _ as ol } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const sl = ["id"], rl = ["id"], nl = ["xmlns", "viewBox", "id"], il = ["x", "y", "width", "height"], vl = ["id"], dl = ["stop-color"], cl = ["stop-color"], hl = { key: 1 }, yl = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], bl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], fl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], pl = { key: 2 }, gl = ["points", "fill"], ml = ["points", "fill"], xl = ["points", "fill"], $l = ["points", "fill"], kl = { key: 3 }, Ll = ["y", "fill", "font-size"], wl = ["x", "y", "fill", "font-size"], _l = ["x", "y", "fill", "font-size"], Cl = ["y", "fill", "font-size"], ql = { key: 4 }, Sl = ["x", "y", "font-size", "fill"], zl = ["x", "y", "font-size", "fill"], Tl = ["x", "y", "font-size", "fill"], Al = ["id", "font-size", "transform", "fill"], Wl = ["id", "font-size", "transform", "fill"], Xl = ["id", "font-size", "transform", "fill"], Yl = { key: 5 }, Ml = ["fill", "points"], Ol = ["x", "y", "width", "height"], Nl = ["x", "y", "width", "height"], Bl = ["x", "y", "width", "height"], Fl = ["x", "y", "width", "height"], Rl = {
|
|
15
|
+
key: 0,
|
|
16
|
+
style: { "pointer-events": "none" }
|
|
17
|
+
}, Pl = ["x", "y", "font-size", "fill"], Vl = ["x", "y", "font-size", "fill", "innerHTML"], Hl = { key: 0 }, Il = ["x", "y", "onMouseover", "onMouseleave", "onClick"], Dl = {
|
|
18
|
+
key: 8,
|
|
19
|
+
class: "vue-ui-dna"
|
|
20
|
+
}, El = ["points", "fill"], Ul = ["points", "fill"], Gl = ["points", "fill"], Ql = ["points", "fill"], Jl = { key: 9 }, jl = ["x", "y", "font-size", "fill", "font-weight"], Zl = { key: 10 }, Kl = ["x", "y", "fill"], ea = ["x", "y", "fill"], ta = ["x", "y", "fill"], la = ["x", "y", "fill"], aa = ["stroke", "d"], ua = ["stroke", "d"], oa = {
|
|
21
|
+
key: 4,
|
|
22
|
+
class: "vue-data-ui-watermark"
|
|
23
|
+
}, sa = ["id"], ra = ["onClick"], na = {
|
|
24
|
+
key: 0,
|
|
25
|
+
height: "14",
|
|
26
|
+
width: "14",
|
|
27
|
+
viewBox: "0 0 20 20"
|
|
28
|
+
}, ia = ["innerHTML"], va = {
|
|
29
|
+
__name: "vue-ui-quadrant",
|
|
30
|
+
props: {
|
|
31
|
+
config: {
|
|
32
|
+
type: Object,
|
|
33
|
+
default() {
|
|
34
|
+
return {};
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
dataset: {
|
|
38
|
+
type: Array,
|
|
39
|
+
default() {
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
emits: ["selectPlot", "selectSide", "selectLegend"],
|
|
45
|
+
setup(st, { expose: rt, emit: nt }) {
|
|
46
|
+
const it = F(() => import("./Tooltip-BTGOEC7w.js")), vt = F(() => import("./BaseIcon-DLesaZpW.js")), dt = F(() => import("./vue-ui-accordion-B5QeV3BK.js")), ct = F(() => import("./DataTable-BAf4Obr9.js")), ht = F(() => import("./PenAndPaper-B6OvfyHH.js")), yt = F(() => import("./UserOptions-CsDlFB0L.js")), bt = F(() => import("./PackageVersion-Cv_ypT0N.js")), ft = F(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_quadrant: pt } = Wt(), M = st, me = x(() => !!M.dataset && M.dataset.length), w = y(at()), ne = nt, gt = y(null), ie = y(!1), ve = y(""), xe = y(0), p = y(!1), A = y(null), $e = y(null), ke = y(null), Le = y(null), we = y(null), _e = y(0), Ce = y(0), qe = y(0), Se = y(!1), J = y(null), e = y(ce()), { loading: ze, FINAL_DATASET: Te } = al({
|
|
47
|
+
...Ct(M),
|
|
48
|
+
FINAL_CONFIG: e,
|
|
49
|
+
prepareConfig: ce,
|
|
50
|
+
callback: () => {
|
|
51
|
+
Promise.resolve().then(async () => {
|
|
52
|
+
await lt(), g.value.showTable = e.value.table.show;
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
skeletonDataset: [
|
|
56
|
+
{
|
|
57
|
+
name: "_",
|
|
58
|
+
shape: "circle",
|
|
59
|
+
color: "#CACACA",
|
|
60
|
+
series: [
|
|
61
|
+
{ name: "_", x: -6, y: -4 },
|
|
62
|
+
{ name: "_", x: -5, y: -2 },
|
|
63
|
+
{ name: "_", x: -4, y: -1 },
|
|
64
|
+
{ name: "_", x: -3, y: -0.5 },
|
|
65
|
+
{ name: "_", x: -2, y: -0.25 },
|
|
66
|
+
{ name: "_", x: -1, y: -0.135 },
|
|
67
|
+
{ name: "_", x: 0, y: 0 },
|
|
68
|
+
{ name: "_", x: 1, y: 0.135 },
|
|
69
|
+
{ name: "_", x: 2, y: 0.25 },
|
|
70
|
+
{ name: "_", x: 3, y: 0.5 },
|
|
71
|
+
{ name: "_", x: 4, y: 1 },
|
|
72
|
+
{ name: "_", x: 5, y: 2 },
|
|
73
|
+
{ name: "_", x: 6, y: 4 }
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
skeletonConfig: Xt({
|
|
78
|
+
defaultConfig: e.value,
|
|
79
|
+
userConfig: {
|
|
80
|
+
userOptions: { show: !1 },
|
|
81
|
+
table: { show: !1 },
|
|
82
|
+
style: {
|
|
83
|
+
chart: {
|
|
84
|
+
backgroundColor: "#99999930",
|
|
85
|
+
layout: {
|
|
86
|
+
grid: {
|
|
87
|
+
stroke: "#6A6A6A",
|
|
88
|
+
graduations: {
|
|
89
|
+
stroke: "#6A6A6A",
|
|
90
|
+
color: "#6A6A6A90"
|
|
91
|
+
},
|
|
92
|
+
xAxis: {
|
|
93
|
+
auto: !0
|
|
94
|
+
},
|
|
95
|
+
yAxis: {
|
|
96
|
+
auto: !0
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
labels: {
|
|
100
|
+
quadrantLabels: { show: !1 },
|
|
101
|
+
plotLabels: { show: !1 },
|
|
102
|
+
axisLabels: { show: !1 }
|
|
103
|
+
},
|
|
104
|
+
plots: {
|
|
105
|
+
outlineColor: "#6A6A6A"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
legend: {
|
|
109
|
+
backgroundColor: "transparent"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
}), { userOptionsVisible: de, setUserOptionsVisibility: Ae, keepUserOptionState: We } = Zt({ config: e.value }), { svgRef: Xe } = Kt({ config: e.value.style.chart.title });
|
|
116
|
+
function ce() {
|
|
117
|
+
const l = ut({
|
|
118
|
+
userConfig: M.config,
|
|
119
|
+
defaultConfig: pt
|
|
120
|
+
});
|
|
121
|
+
return l.theme ? {
|
|
122
|
+
...ut({
|
|
123
|
+
userConfig: Mt.vue_ui_quadrant[l.theme] || M.config,
|
|
124
|
+
defaultConfig: l
|
|
125
|
+
}),
|
|
126
|
+
customPalette: Yt[l.theme] || ge
|
|
127
|
+
} : l;
|
|
128
|
+
}
|
|
129
|
+
pe(() => M.config, (l) => {
|
|
130
|
+
e.value = ce(), de.value = !e.value.userOptions.showOnChartHover, Ye(), _e.value += 1, Ce.value += 1, qe.value += 1, g.value.plotLabels.show = e.value.style.chart.layout.labels.plotLabels.show, g.value.showTable = e.value.table.show, g.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
131
|
+
}, { deep: !0 });
|
|
132
|
+
const O = Ke(null), I = Ke(null), D = x(() => e.value.debug);
|
|
133
|
+
function Ye() {
|
|
134
|
+
if (Ot(M.dataset) ? Q({
|
|
135
|
+
componentName: "VueUiQuadrant",
|
|
136
|
+
type: "dataset",
|
|
137
|
+
debug: D.value
|
|
138
|
+
}) : M.dataset.forEach((l, u) => {
|
|
139
|
+
[null, void 0].includes(l.name) && Q({
|
|
140
|
+
componentName: "VueUiQuadrant",
|
|
141
|
+
type: "datasetSerieAttribute",
|
|
142
|
+
property: "name",
|
|
143
|
+
index: u,
|
|
144
|
+
debug: D.value
|
|
145
|
+
}), [null, void 0].includes(l.series) ? Q({
|
|
146
|
+
componentName: "VueUiQuadrant",
|
|
147
|
+
type: "datasetSerieAttribute",
|
|
148
|
+
property: "series",
|
|
149
|
+
index: u,
|
|
150
|
+
debug: D.value
|
|
151
|
+
}) : l.series.forEach((a, o) => {
|
|
152
|
+
[null, void 0].includes(a.name) && Q({
|
|
153
|
+
componentName: "VueUiQuadrant",
|
|
154
|
+
type: "datasetSerieAttribute",
|
|
155
|
+
property: "name",
|
|
156
|
+
key: "series",
|
|
157
|
+
index: o,
|
|
158
|
+
debug: D.value
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
}), e.value.responsive) {
|
|
162
|
+
const l = Qt(() => {
|
|
163
|
+
const { width: u, height: a } = Jt({
|
|
164
|
+
chart: A.value,
|
|
165
|
+
title: e.value.style.chart.title.text ? $e.value : null,
|
|
166
|
+
legend: e.value.style.chart.legend.show ? ke.value : null,
|
|
167
|
+
source: Le.value,
|
|
168
|
+
noTitle: we.value
|
|
169
|
+
});
|
|
170
|
+
L.value = 48, requestAnimationFrame(() => {
|
|
171
|
+
t.value.height = a, t.value.usableHeight = a - L.value * 2, t.value.width = u, t.value.usableWidth = u - L.value * 2, t.value.top = L.value, t.value.left = L.value, t.value.right = u - L.value, t.value.bottom = a - L.value, t.value.centerX = u / 2, t.value.centerY = a - a / 2, t.value.padding = L.value;
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
O.value && (I.value && O.value.unobserve(I.value), O.value.disconnect()), O.value = new ResizeObserver(l), I.value = A.value.parentNode, O.value.observe(I.value);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
qt(() => {
|
|
178
|
+
Se.value = !0, Ye();
|
|
179
|
+
}), St(() => {
|
|
180
|
+
O.value && (I.value && O.value.unobserve(I.value), O.value.disconnect());
|
|
181
|
+
});
|
|
182
|
+
const { isPrinting: Me, isImaging: Oe, generatePdf: Ne, generateImage: Be } = jt({
|
|
183
|
+
elementId: `vue-ui-quadrant_${w.value}`,
|
|
184
|
+
fileName: e.value.style.chart.title.text || "vue-ui-quadrant",
|
|
185
|
+
options: e.value.userOptions.print
|
|
186
|
+
}), mt = x(() => e.value.userOptions.show && !e.value.style.chart.title.text), Fe = x(() => Nt(e.value.customPalette)), g = y({
|
|
187
|
+
plotLabels: {
|
|
188
|
+
show: e.value.style.chart.layout.labels.plotLabels.show
|
|
189
|
+
},
|
|
190
|
+
showTable: e.value.table.show,
|
|
191
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
192
|
+
}), L = y(48), t = y({
|
|
193
|
+
height: e.value.style.chart.height,
|
|
194
|
+
usableHeight: e.value.style.chart.height - L.value * 2,
|
|
195
|
+
width: e.value.style.chart.width,
|
|
196
|
+
usableWidth: e.value.style.chart.width - L.value * 2,
|
|
197
|
+
top: L.value,
|
|
198
|
+
left: L.value,
|
|
199
|
+
right: e.value.style.chart.width - L.value,
|
|
200
|
+
bottom: e.value.style.chart.height - L.value,
|
|
201
|
+
centerX: e.value.style.chart.width / 2,
|
|
202
|
+
centerY: e.value.style.chart.height - e.value.style.chart.height / 2,
|
|
203
|
+
padding: L.value
|
|
204
|
+
}), v = y({
|
|
205
|
+
...JSON.parse(JSON.stringify(t.value)),
|
|
206
|
+
startX: 0,
|
|
207
|
+
startY: 0
|
|
208
|
+
});
|
|
209
|
+
pe(() => t.value, (l) => {
|
|
210
|
+
l && (v.value = {
|
|
211
|
+
...JSON.parse(JSON.stringify(t.value)),
|
|
212
|
+
startX: 0,
|
|
213
|
+
startY: 0
|
|
214
|
+
});
|
|
215
|
+
}, { deep: !0 });
|
|
216
|
+
const d = y(null), V = x(() => {
|
|
217
|
+
switch (d.value) {
|
|
218
|
+
case "TL":
|
|
219
|
+
return {
|
|
220
|
+
x: v.value.startX + v.value.width / 2,
|
|
221
|
+
y: v.value.height,
|
|
222
|
+
text: e.value.style.chart.layout.labels.quadrantLabels.tl.text || "Top Left",
|
|
223
|
+
fontSize: e.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
224
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
225
|
+
bold: e.value.style.chart.layout.labels.quadrantLabels.tl.bold
|
|
226
|
+
};
|
|
227
|
+
case "TR":
|
|
228
|
+
return {
|
|
229
|
+
x: v.value.startX + v.value.width / 2,
|
|
230
|
+
y: v.value.height,
|
|
231
|
+
text: e.value.style.chart.layout.labels.quadrantLabels.tr.text || "Top Right",
|
|
232
|
+
fontSize: e.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
233
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
234
|
+
bold: e.value.style.chart.layout.labels.quadrantLabels.tr.bold
|
|
235
|
+
};
|
|
236
|
+
case "BR":
|
|
237
|
+
return {
|
|
238
|
+
x: v.value.startX + v.value.width / 2,
|
|
239
|
+
y: v.value.height * 1.678,
|
|
240
|
+
text: e.value.style.chart.layout.labels.quadrantLabels.br.text || "Bottom Right",
|
|
241
|
+
fontSize: e.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
242
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
243
|
+
bold: e.value.style.chart.layout.labels.quadrantLabels.br.bold
|
|
244
|
+
};
|
|
245
|
+
case "BL":
|
|
246
|
+
return {
|
|
247
|
+
x: v.value.startX + v.value.width / 2,
|
|
248
|
+
y: v.value.height * 1.678,
|
|
249
|
+
text: e.value.style.chart.layout.labels.quadrantLabels.bl.text || "Bottom Left",
|
|
250
|
+
fontSize: e.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
251
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
252
|
+
bold: e.value.style.chart.layout.labels.quadrantLabels.bl.bold
|
|
253
|
+
};
|
|
254
|
+
default:
|
|
255
|
+
return { x: 0, y: 0, text: "", fontSize: 0, fill: "none", bold: !1 };
|
|
256
|
+
}
|
|
257
|
+
}), xt = y(null), ee = y(!1);
|
|
258
|
+
function j({ targetX: l, targetY: u, targetW: a, targetH: o, side: r }) {
|
|
259
|
+
d.value && Z(r);
|
|
260
|
+
const b = {
|
|
261
|
+
x: l - v.value.startX,
|
|
262
|
+
y: u - v.value.startY,
|
|
263
|
+
w: a - v.value.width,
|
|
264
|
+
h: o - v.value.height
|
|
265
|
+
}, f = e.value.zoomAnimationFrames;
|
|
266
|
+
let W = 0;
|
|
267
|
+
function Ze() {
|
|
268
|
+
ee.value = !0, v.value.startX += b.x / f, v.value.startY += b.y / f, v.value.width += b.w / f, v.value.height += b.h / f, W += 1, W < f ? xt.value = requestAnimationFrame(Ze) : ee.value = !1;
|
|
269
|
+
}
|
|
270
|
+
Ze();
|
|
271
|
+
}
|
|
272
|
+
function N(l) {
|
|
273
|
+
if (!ee.value)
|
|
274
|
+
if (p.value && d.value === l)
|
|
275
|
+
j({
|
|
276
|
+
targetX: 0,
|
|
277
|
+
targetY: 0,
|
|
278
|
+
targetW: t.value.width,
|
|
279
|
+
targetH: t.value.height
|
|
280
|
+
}), d.value = null, p.value = !1;
|
|
281
|
+
else {
|
|
282
|
+
switch (d.value = l, l) {
|
|
283
|
+
case "TL":
|
|
284
|
+
j({
|
|
285
|
+
targetX: 0,
|
|
286
|
+
targetY: 0,
|
|
287
|
+
targetW: t.value.width / 2 + t.value.left,
|
|
288
|
+
targetH: t.value.height / 2 + t.value.top,
|
|
289
|
+
side: "tl"
|
|
290
|
+
});
|
|
291
|
+
break;
|
|
292
|
+
case "TR":
|
|
293
|
+
j({
|
|
294
|
+
targetX: t.value.width / 2 - t.value.left,
|
|
295
|
+
targetY: 0,
|
|
296
|
+
targetW: t.value.width / 2 + t.value.left,
|
|
297
|
+
targetH: t.value.height / 2 + t.value.top,
|
|
298
|
+
side: "tr"
|
|
299
|
+
});
|
|
300
|
+
break;
|
|
301
|
+
case "BR":
|
|
302
|
+
j({
|
|
303
|
+
targetX: t.value.width / 2 - t.value.left,
|
|
304
|
+
targetY: t.value.height / 2 - t.value.top,
|
|
305
|
+
targetW: t.value.width / 2 + t.value.left,
|
|
306
|
+
targetH: t.value.height / 2 + t.value.top,
|
|
307
|
+
side: "br"
|
|
308
|
+
});
|
|
309
|
+
break;
|
|
310
|
+
case "BL":
|
|
311
|
+
j({
|
|
312
|
+
targetX: 0,
|
|
313
|
+
targetY: t.value.height / 2 - t.value.top,
|
|
314
|
+
targetW: t.value.width / 2 + t.value.left,
|
|
315
|
+
targetH: t.value.height / 2 + t.value.top,
|
|
316
|
+
side: "bl"
|
|
317
|
+
});
|
|
318
|
+
break;
|
|
319
|
+
default:
|
|
320
|
+
v.value.startX = 0, v.value.startY = 0, v.value.width = t.value.width, v.value.height = t.value.height;
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
p.value = !0;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
const $t = x(() => {
|
|
327
|
+
const l = e.value.style.chart.layout.grid.graduations.steps, u = t.value.usableWidth / (l * 2), a = t.value.top, o = [];
|
|
328
|
+
for (let r = 0; r < l; r += 1)
|
|
329
|
+
o.push({
|
|
330
|
+
x: t.value.padding + u * r,
|
|
331
|
+
y: a + t.value.usableHeight * (r / l / 2),
|
|
332
|
+
height: t.value.usableHeight * (1 - r / l),
|
|
333
|
+
width: t.value.usableWidth * (1 - r / l),
|
|
334
|
+
opacity: Math.round((r + 1) / l * 20)
|
|
335
|
+
});
|
|
336
|
+
return o;
|
|
337
|
+
}), q = x(() => {
|
|
338
|
+
let l = e.value.style.chart.layout.grid.xAxis.max, u = e.value.style.chart.layout.grid.xAxis.min, a = e.value.style.chart.layout.grid.yAxis.max, o = e.value.style.chart.layout.grid.yAxis.min;
|
|
339
|
+
return e.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...E.value.flatMap((r) => r.series.map((b) => b.x))), u = Math.min(...E.value.flatMap((r) => r.series.map((b) => b.x)))), e.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...E.value.flatMap((r) => r.series.map((b) => b.y))), o = Math.min(...E.value.flatMap((r) => r.series.map((b) => b.y)))), {
|
|
340
|
+
x: {
|
|
341
|
+
max: l,
|
|
342
|
+
min: u
|
|
343
|
+
},
|
|
344
|
+
y: {
|
|
345
|
+
max: a,
|
|
346
|
+
min: o
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
}), B = y([]), E = x(() => Te.value.map((l, u) => ({
|
|
350
|
+
...l,
|
|
351
|
+
series: Ft({
|
|
352
|
+
data: l.series,
|
|
353
|
+
threshold: e.value.downsample.threshold
|
|
354
|
+
}),
|
|
355
|
+
id: `cat_${u}_${w.value}`,
|
|
356
|
+
color: Bt(l.color) || Fe.value[u] || ge[u]
|
|
357
|
+
}))), kt = x(() => E.value.filter((l) => !B.value.includes(l.id))), Lt = x(() => E.value.map((l, u) => ({
|
|
358
|
+
...l,
|
|
359
|
+
shape: l.shape || "circle",
|
|
360
|
+
series: l.series.map((a) => ({
|
|
361
|
+
...a,
|
|
362
|
+
x: Re(a.x),
|
|
363
|
+
y: Pe(a.y),
|
|
364
|
+
xValue: a.x,
|
|
365
|
+
yValue: a.y,
|
|
366
|
+
quadrantSide: He({ x: a.x, y: a.y }),
|
|
367
|
+
categoryName: l.name,
|
|
368
|
+
shape: l.shape,
|
|
369
|
+
color: l.color
|
|
370
|
+
}))
|
|
371
|
+
}))), z = x(() => (Te.value.forEach((l, u) => {
|
|
372
|
+
l.series.forEach((a, o) => {
|
|
373
|
+
[null, void 0].includes(a.x) && Q({
|
|
374
|
+
componentName: "VueUiQuadrant",
|
|
375
|
+
type: "datasetSerieAttribute",
|
|
376
|
+
property: "x",
|
|
377
|
+
key: "series",
|
|
378
|
+
index: o,
|
|
379
|
+
debug: D.value
|
|
380
|
+
}), [null, void 0].includes(a.y) && Q({
|
|
381
|
+
componentName: "VueUiQuadrant",
|
|
382
|
+
type: "datasetSerieAttribute",
|
|
383
|
+
property: "y",
|
|
384
|
+
key: "series",
|
|
385
|
+
index: o,
|
|
386
|
+
debug: D.value
|
|
387
|
+
});
|
|
388
|
+
});
|
|
389
|
+
}), kt.value.map((l, u) => ({
|
|
390
|
+
...l,
|
|
391
|
+
shape: l.shape || "circle",
|
|
392
|
+
color: l.color || Fe.value[u] || ge[u],
|
|
393
|
+
series: l.series.map((a) => ({
|
|
394
|
+
...a,
|
|
395
|
+
x: Re(a.x),
|
|
396
|
+
y: Pe(a.y),
|
|
397
|
+
xValue: a.x,
|
|
398
|
+
yValue: a.y,
|
|
399
|
+
quadrantSide: He({ x: a.x, y: a.y }),
|
|
400
|
+
categoryName: l.name,
|
|
401
|
+
shape: l.shape,
|
|
402
|
+
color: l.color,
|
|
403
|
+
uid: at()
|
|
404
|
+
}))
|
|
405
|
+
}))));
|
|
406
|
+
function Re(l) {
|
|
407
|
+
if (l >= 0) {
|
|
408
|
+
const u = l / q.value.x.max;
|
|
409
|
+
return t.value.centerX + t.value.usableWidth / 2 * u;
|
|
410
|
+
} else {
|
|
411
|
+
const u = Math.abs(l) / Math.abs(q.value.x.min);
|
|
412
|
+
return t.value.centerX - t.value.usableWidth / 2 * u;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
function Pe(l) {
|
|
416
|
+
if (l >= 0) {
|
|
417
|
+
const u = l / q.value.y.max;
|
|
418
|
+
return t.value.centerY + (1 - t.value.usableHeight / 2 * u);
|
|
419
|
+
} else {
|
|
420
|
+
const u = Math.abs(l) / Math.abs(q.value.y.min);
|
|
421
|
+
return t.value.centerY - (1 - t.value.usableHeight / 2 * u);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
const te = x(() => {
|
|
425
|
+
const l = z.value.flatMap((f) => f.series.map((W) => ({
|
|
426
|
+
x: W.xValue,
|
|
427
|
+
y: W.yValue,
|
|
428
|
+
name: W.name,
|
|
429
|
+
category: W.categoryName,
|
|
430
|
+
quadrantSide: W.quadrantSide,
|
|
431
|
+
sideName: e.value.style.chart.layout.labels.quadrantLabels[W.quadrantSide].text,
|
|
432
|
+
color: f.color,
|
|
433
|
+
shape: f.shape
|
|
434
|
+
}))), u = e.value.style.chart.layout.grid.xAxis.name || "x", a = e.value.style.chart.layout.grid.yAxis.name || "y", o = [e.value.translations.category, e.value.translations.item, u, a, e.value.translations.side], r = l.map((f) => [f.category, f.name, f.x, f.y, f.sideName || f.quadrantSide]), b = l.map((f) => ({
|
|
435
|
+
shape: f.shape,
|
|
436
|
+
color: f.color
|
|
437
|
+
}));
|
|
438
|
+
return { head: o, body: r, itsShapes: b, tableData: l };
|
|
439
|
+
}), le = x(() => {
|
|
440
|
+
const l = te.value.head, u = te.value.tableData.map((o) => [
|
|
441
|
+
{
|
|
442
|
+
shape: o.shape,
|
|
443
|
+
color: o.color,
|
|
444
|
+
name: o.category
|
|
445
|
+
},
|
|
446
|
+
o.name,
|
|
447
|
+
R(
|
|
448
|
+
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
449
|
+
o.x,
|
|
450
|
+
P({
|
|
451
|
+
v: o.x,
|
|
452
|
+
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
453
|
+
})
|
|
454
|
+
),
|
|
455
|
+
R(
|
|
456
|
+
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
457
|
+
o.y,
|
|
458
|
+
P({
|
|
459
|
+
v: o.y,
|
|
460
|
+
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
461
|
+
})
|
|
462
|
+
),
|
|
463
|
+
o.sideName || o.quadrantSide
|
|
464
|
+
]), a = {
|
|
465
|
+
th: {
|
|
466
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
467
|
+
color: e.value.table.th.color,
|
|
468
|
+
outline: e.value.table.th.outline
|
|
469
|
+
},
|
|
470
|
+
td: {
|
|
471
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
472
|
+
color: e.value.table.td.color,
|
|
473
|
+
outline: e.value.table.td.outline
|
|
474
|
+
},
|
|
475
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
476
|
+
};
|
|
477
|
+
return { head: l, body: u, config: a, colNames: l };
|
|
478
|
+
});
|
|
479
|
+
function he(l) {
|
|
480
|
+
B.value.includes(l) ? B.value = B.value.filter((a) => a !== l) : B.value.push(l);
|
|
481
|
+
const u = Ue();
|
|
482
|
+
ne("selectLegend", u);
|
|
483
|
+
}
|
|
484
|
+
const Ve = x(() => Lt.value.map((l) => ({
|
|
485
|
+
name: l.name,
|
|
486
|
+
shape: l.shape,
|
|
487
|
+
color: l.color,
|
|
488
|
+
id: l.id,
|
|
489
|
+
opacity: B.value.includes(l.id) ? 0.5 : 1,
|
|
490
|
+
segregate: () => he(l.id),
|
|
491
|
+
isSegregated: B.value.includes(l.id)
|
|
492
|
+
}))), wt = x(() => ({
|
|
493
|
+
cy: "quadrant-div-legend",
|
|
494
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
495
|
+
color: e.value.style.chart.legend.color,
|
|
496
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
497
|
+
paddingBottom: 12,
|
|
498
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
499
|
+
}));
|
|
500
|
+
function He(l) {
|
|
501
|
+
switch (!0) {
|
|
502
|
+
case (l.x >= 0 && l.y >= 0):
|
|
503
|
+
return "tr";
|
|
504
|
+
case (l.x >= 0 && l.y < 0):
|
|
505
|
+
return "br";
|
|
506
|
+
case (l.x < 0 && l.y < 0):
|
|
507
|
+
return "bl";
|
|
508
|
+
case (l.x < 0 && l.y >= 0):
|
|
509
|
+
return "tl";
|
|
510
|
+
default:
|
|
511
|
+
return "";
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
const ae = y(null), ue = y(null), ye = y(null);
|
|
515
|
+
function Ie(l, u, a) {
|
|
516
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: u, seriesIndex: a }), ae.value = u.uid, ue.value = {
|
|
517
|
+
color: l.color,
|
|
518
|
+
shape: l.shape
|
|
519
|
+
}, ye.value = {
|
|
520
|
+
datapoint: u,
|
|
521
|
+
seriesIndex: a,
|
|
522
|
+
series: z.value,
|
|
523
|
+
config: e.value
|
|
524
|
+
}, ie.value = !0;
|
|
525
|
+
const o = e.value.style.chart.tooltip.customFormat;
|
|
526
|
+
if (Ut(o) && Gt(() => o({
|
|
527
|
+
seriesIndex: a,
|
|
528
|
+
datapoint: u,
|
|
529
|
+
series: z.value,
|
|
530
|
+
config: e.value
|
|
531
|
+
})))
|
|
532
|
+
ve.value = o({
|
|
533
|
+
seriesIndex: a,
|
|
534
|
+
datapoint: u,
|
|
535
|
+
series: z.value,
|
|
536
|
+
config: e.value
|
|
537
|
+
});
|
|
538
|
+
else {
|
|
539
|
+
let r = "";
|
|
540
|
+
u.quadrantSide && (r += `<div style="color:${e.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].color};font-weight:${e.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].bold ? "bold" : "400"}">${e.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text}</div>`), r += `<div>${l.name}</div>`, r += `<div style="padding-bottom:6px;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px">${u.name}</div>`, r += `<div>${e.value.style.chart.layout.grid.xAxis.name ? e.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${R(
|
|
541
|
+
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
542
|
+
u.xValue,
|
|
543
|
+
P({
|
|
544
|
+
v: u.xValue,
|
|
545
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
546
|
+
}),
|
|
547
|
+
{ datapoint: u, category: l, categoryIndex: a }
|
|
548
|
+
)}</b></div>`, r += `<div>${e.value.style.chart.layout.grid.yAxis.name ? e.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${R(
|
|
549
|
+
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
550
|
+
u.yValue,
|
|
551
|
+
P({
|
|
552
|
+
v: u.yValue,
|
|
553
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
554
|
+
}),
|
|
555
|
+
{ datapoint: u, category: l, categoryIndex: a }
|
|
556
|
+
)}</b></div>`, ve.value = `<div style="text-align:left;font-size:${e.value.style.chart.tooltip.fontSize}px">${r}</div>`;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function De(l, u) {
|
|
560
|
+
ie.value = !1, ae.value = null, ue.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: u });
|
|
561
|
+
}
|
|
562
|
+
function Ee(l, u, a) {
|
|
563
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: u, seriesIndex: a });
|
|
564
|
+
const o = {
|
|
565
|
+
category: l.name,
|
|
566
|
+
shape: l.shape,
|
|
567
|
+
itemName: u.name,
|
|
568
|
+
x: u.xValue,
|
|
569
|
+
y: u.yValue,
|
|
570
|
+
quadrantSide: u.quadrantSide,
|
|
571
|
+
sideName: e.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text
|
|
572
|
+
};
|
|
573
|
+
ne("selectPlot", o);
|
|
574
|
+
}
|
|
575
|
+
function Z(l) {
|
|
576
|
+
if (!l) return;
|
|
577
|
+
const u = z.value.flatMap((o) => o.series.filter((r) => r.quadrantSide === l).map((r) => ({
|
|
578
|
+
category: r.categoryName,
|
|
579
|
+
itemName: r.name,
|
|
580
|
+
x: r.xValue,
|
|
581
|
+
y: r.yValue
|
|
582
|
+
}))), a = {
|
|
583
|
+
quadrantSide: l,
|
|
584
|
+
sideName: e.value.style.chart.layout.labels.quadrantLabels[l].text,
|
|
585
|
+
items: [...u]
|
|
586
|
+
};
|
|
587
|
+
ne("selectSide", a);
|
|
588
|
+
}
|
|
589
|
+
const _ = x(() => ({
|
|
590
|
+
TL: {
|
|
591
|
+
tl: {
|
|
592
|
+
x: t.value.left + t.value.usableWidth / 4 - 20,
|
|
593
|
+
y: 0,
|
|
594
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
595
|
+
},
|
|
596
|
+
tr: {
|
|
597
|
+
x: t.value.left + t.value.usableWidth / 4,
|
|
598
|
+
y: 0,
|
|
599
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
600
|
+
},
|
|
601
|
+
br: {
|
|
602
|
+
x: t.value.left + t.value.usableWidth / 4,
|
|
603
|
+
y: 20,
|
|
604
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
605
|
+
},
|
|
606
|
+
bl: {
|
|
607
|
+
x: t.value.left + t.value.usableWidth / 4 - 20,
|
|
608
|
+
y: 20,
|
|
609
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
610
|
+
},
|
|
611
|
+
crosshairs: {
|
|
612
|
+
horizontal: `M ${t.value.left + t.value.usableWidth / 4 - 20},20 ${t.value.left + t.value.usableWidth / 4 + 20},20`,
|
|
613
|
+
vertical: `M ${t.value.left + t.value.usableWidth / 4},0 ${t.value.left + t.value.usableWidth / 4},40`
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
TR: {
|
|
617
|
+
tl: {
|
|
618
|
+
x: t.value.centerX + t.value.usableWidth / 4 - 20,
|
|
619
|
+
y: 0,
|
|
620
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
621
|
+
},
|
|
622
|
+
tr: {
|
|
623
|
+
x: t.value.centerX + t.value.usableWidth / 4,
|
|
624
|
+
y: 0,
|
|
625
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
626
|
+
},
|
|
627
|
+
br: {
|
|
628
|
+
x: t.value.centerX + t.value.usableWidth / 4,
|
|
629
|
+
y: 20,
|
|
630
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
631
|
+
},
|
|
632
|
+
bl: {
|
|
633
|
+
x: t.value.centerX + t.value.usableWidth / 4 - 20,
|
|
634
|
+
y: 20,
|
|
635
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
636
|
+
},
|
|
637
|
+
crosshairs: {
|
|
638
|
+
horizontal: `M ${t.value.centerX + t.value.usableWidth / 4 - 20},20 ${t.value.centerX + t.value.usableWidth / 4 + 20},20`,
|
|
639
|
+
vertical: `M ${t.value.centerX + t.value.usableWidth / 4},0 ${t.value.centerX + t.value.usableWidth / 4},40`
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
BR: {
|
|
643
|
+
tl: {
|
|
644
|
+
x: t.value.centerX + t.value.usableWidth / 4 - 20,
|
|
645
|
+
y: t.value.centerY - 48,
|
|
646
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
647
|
+
},
|
|
648
|
+
tr: {
|
|
649
|
+
x: t.value.centerX + t.value.usableWidth / 4,
|
|
650
|
+
y: t.value.centerY - 48,
|
|
651
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
652
|
+
},
|
|
653
|
+
br: {
|
|
654
|
+
x: t.value.centerX + t.value.usableWidth / 4,
|
|
655
|
+
y: t.value.centerY - 28,
|
|
656
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
657
|
+
},
|
|
658
|
+
bl: {
|
|
659
|
+
x: t.value.centerX + t.value.usableWidth / 4 - 20,
|
|
660
|
+
y: t.value.centerY - 28,
|
|
661
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
662
|
+
},
|
|
663
|
+
crosshairs: {
|
|
664
|
+
horizontal: `M ${t.value.centerX + t.value.usableWidth / 4 - 20},${t.value.centerY - 28} ${t.value.centerX + t.value.usableWidth / 4 + 20},${t.value.centerY - 28}`,
|
|
665
|
+
vertical: `M ${t.value.centerX + t.value.usableWidth / 4},${t.value.centerY - 48} ${t.value.centerX + t.value.usableWidth / 4},${t.value.centerY - 8}`
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
BL: {
|
|
669
|
+
tl: {
|
|
670
|
+
x: t.value.left + t.value.usableWidth / 4 - 20,
|
|
671
|
+
y: t.value.centerY - 48,
|
|
672
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
673
|
+
},
|
|
674
|
+
tr: {
|
|
675
|
+
x: t.value.left + t.value.usableWidth / 4,
|
|
676
|
+
y: t.value.centerY - 48,
|
|
677
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
678
|
+
},
|
|
679
|
+
br: {
|
|
680
|
+
x: t.value.left + t.value.usableWidth / 4,
|
|
681
|
+
y: t.value.centerY - 28,
|
|
682
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
683
|
+
},
|
|
684
|
+
bl: {
|
|
685
|
+
x: t.value.left + t.value.usableWidth / 4 - 20,
|
|
686
|
+
y: t.value.centerY - 28,
|
|
687
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
688
|
+
},
|
|
689
|
+
crosshairs: {
|
|
690
|
+
horizontal: `M ${t.value.left + t.value.usableWidth / 4 - 20},${t.value.centerY - 28} ${t.value.left + t.value.usableWidth / 4 + 20},${t.value.centerY - 28}`,
|
|
691
|
+
vertical: `M ${t.value.left + t.value.usableWidth / 4},${t.value.centerY - 48} ${t.value.left + t.value.usableWidth / 4},${t.value.centerY - 8}`
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}));
|
|
695
|
+
function Ue() {
|
|
696
|
+
return z.value.map((l) => ({
|
|
697
|
+
color: l.color,
|
|
698
|
+
name: l.name,
|
|
699
|
+
shape: l.shape,
|
|
700
|
+
series: l.series.map((u) => ({
|
|
701
|
+
name: u.name,
|
|
702
|
+
x: u.xValue,
|
|
703
|
+
y: u.yValue,
|
|
704
|
+
quadrantSide: u.quadrantSide,
|
|
705
|
+
sideName: e.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text
|
|
706
|
+
}))
|
|
707
|
+
}));
|
|
708
|
+
}
|
|
709
|
+
function be(l = null) {
|
|
710
|
+
lt(() => {
|
|
711
|
+
const u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = te.value.head, o = te.value.body, r = u.concat([a]).concat(o), b = Dt(r);
|
|
712
|
+
l ? l(b) : Et({ csvContent: b, title: e.value.style.chart.title.text || "vue-ui-quadrant" });
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
const H = y(!1);
|
|
716
|
+
function Ge(l) {
|
|
717
|
+
H.value = l, xe.value += 1;
|
|
718
|
+
}
|
|
719
|
+
function Qe() {
|
|
720
|
+
g.value.showTable = !g.value.showTable;
|
|
721
|
+
}
|
|
722
|
+
function Je() {
|
|
723
|
+
g.value.plotLabels.show = !g.value.plotLabels.show;
|
|
724
|
+
}
|
|
725
|
+
function je() {
|
|
726
|
+
g.value.showTooltip = !g.value.showTooltip;
|
|
727
|
+
}
|
|
728
|
+
const oe = y(!1);
|
|
729
|
+
function fe() {
|
|
730
|
+
oe.value = !oe.value;
|
|
731
|
+
}
|
|
732
|
+
async function _t({ scale: l = 2 } = {}) {
|
|
733
|
+
if (!A.value) return;
|
|
734
|
+
const { width: u, height: a } = A.value.getBoundingClientRect(), o = u / a, { imageUri: r, base64: b } = await el({ domElement: A.value, base64: !0, img: !0, scale: l });
|
|
735
|
+
return {
|
|
736
|
+
imageUri: r,
|
|
737
|
+
base64: b,
|
|
738
|
+
title: e.value.style.chart.title.text,
|
|
739
|
+
width: u,
|
|
740
|
+
height: a,
|
|
741
|
+
aspectRatio: o
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
const K = x(() => {
|
|
745
|
+
const l = e.value.table.useDialog && !e.value.table.show, u = g.value.showTable;
|
|
746
|
+
return {
|
|
747
|
+
component: l ? ft : dt,
|
|
748
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
749
|
+
props: l ? {
|
|
750
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
751
|
+
color: e.value.table.th.color,
|
|
752
|
+
headerColor: e.value.table.th.color,
|
|
753
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
754
|
+
isFullscreen: H.value,
|
|
755
|
+
fullscreenParent: A.value,
|
|
756
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
757
|
+
} : {
|
|
758
|
+
hideDetails: !0,
|
|
759
|
+
config: {
|
|
760
|
+
open: u,
|
|
761
|
+
maxHeight: 1e4,
|
|
762
|
+
body: {
|
|
763
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
764
|
+
color: e.value.style.chart.color
|
|
765
|
+
},
|
|
766
|
+
head: {
|
|
767
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
768
|
+
color: e.value.style.chart.color
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
});
|
|
774
|
+
return pe(() => g.value.showTable, (l) => {
|
|
775
|
+
e.value.table.show || (l && e.value.table.useDialog && J.value ? J.value.open() : "close" in J.value && J.value.close());
|
|
776
|
+
}), rt({
|
|
777
|
+
getData: Ue,
|
|
778
|
+
getImage: _t,
|
|
779
|
+
generatePdf: Ne,
|
|
780
|
+
generateCsv: be,
|
|
781
|
+
generateImage: Be,
|
|
782
|
+
toggleTable: Qe,
|
|
783
|
+
toggleLabels: Je,
|
|
784
|
+
toggleTooltip: je,
|
|
785
|
+
toggleAnnotator: fe,
|
|
786
|
+
toggleFullscreen: Ge
|
|
787
|
+
}), (l, u) => (s(), n("div", {
|
|
788
|
+
class: T(`vue-ui-quadrant ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
789
|
+
ref_key: "quadrantChart",
|
|
790
|
+
ref: A,
|
|
791
|
+
id: `vue-ui-quadrant_${w.value}`,
|
|
792
|
+
style: C(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
793
|
+
onMouseenter: u[16] || (u[16] = () => i(Ae)(!0)),
|
|
794
|
+
onMouseleave: u[17] || (u[17] = () => i(Ae)(!1))
|
|
795
|
+
}, [
|
|
796
|
+
e.value.userOptions.buttons.annotator ? (s(), X(i(ht), {
|
|
797
|
+
key: 0,
|
|
798
|
+
svgRef: i(Xe),
|
|
799
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
800
|
+
color: e.value.style.chart.color,
|
|
801
|
+
active: oe.value,
|
|
802
|
+
onClose: fe
|
|
803
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
804
|
+
mt.value ? (s(), n("div", {
|
|
805
|
+
key: 1,
|
|
806
|
+
ref_key: "noTitle",
|
|
807
|
+
ref: we,
|
|
808
|
+
class: "vue-data-ui-no-title-space",
|
|
809
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
810
|
+
}, null, 512)) : h("", !0),
|
|
811
|
+
e.value.style.chart.title.text ? (s(), n("div", {
|
|
812
|
+
key: 2,
|
|
813
|
+
ref_key: "chartTitle",
|
|
814
|
+
ref: $e,
|
|
815
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
816
|
+
}, [
|
|
817
|
+
(s(), X(tl, {
|
|
818
|
+
key: `table_${_e.value}`,
|
|
819
|
+
config: {
|
|
820
|
+
title: {
|
|
821
|
+
cy: "quadrant-title",
|
|
822
|
+
...e.value.style.chart.title
|
|
823
|
+
},
|
|
824
|
+
subtitle: {
|
|
825
|
+
cy: "quadrant-subtitle",
|
|
826
|
+
...e.value.style.chart.title.subtitle
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}, null, 8, ["config"]))
|
|
830
|
+
], 512)) : h("", !0),
|
|
831
|
+
c("div", {
|
|
832
|
+
id: `legend-top-${w.value}`
|
|
833
|
+
}, null, 8, rl),
|
|
834
|
+
e.value.userOptions.show && me.value && (i(We) || i(de)) ? (s(), X(i(yt), {
|
|
835
|
+
ref_key: "details",
|
|
836
|
+
ref: gt,
|
|
837
|
+
key: `user_options_${xe.value}`,
|
|
838
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
839
|
+
color: e.value.style.chart.color,
|
|
840
|
+
isImaging: i(Oe),
|
|
841
|
+
isPrinting: i(Me),
|
|
842
|
+
uid: w.value,
|
|
843
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
844
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
845
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
846
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
847
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
848
|
+
hasLabel: e.value.userOptions.buttons.labels,
|
|
849
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
850
|
+
isFullscreen: H.value,
|
|
851
|
+
isTooltip: g.value.showTooltip,
|
|
852
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
853
|
+
chartElement: A.value,
|
|
854
|
+
position: e.value.userOptions.position,
|
|
855
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
856
|
+
isAnnotation: oe.value,
|
|
857
|
+
callbacks: e.value.userOptions.callbacks,
|
|
858
|
+
printScale: e.value.userOptions.print.scale,
|
|
859
|
+
onToggleFullscreen: Ge,
|
|
860
|
+
onGeneratePdf: i(Ne),
|
|
861
|
+
onGenerateCsv: be,
|
|
862
|
+
onGenerateImage: i(Be),
|
|
863
|
+
onToggleTable: Qe,
|
|
864
|
+
onToggleLabels: Je,
|
|
865
|
+
onToggleTooltip: je,
|
|
866
|
+
onToggleAnnotator: fe,
|
|
867
|
+
style: C({
|
|
868
|
+
visibility: i(We) ? i(de) ? "visible" : "hidden" : "visible"
|
|
869
|
+
})
|
|
870
|
+
}, et({ _: 2 }, [
|
|
871
|
+
l.$slots.menuIcon ? {
|
|
872
|
+
name: "menuIcon",
|
|
873
|
+
fn: m(({ isOpen: a, color: o }) => [
|
|
874
|
+
$(l.$slots, "menuIcon", U(G({ isOpen: a, color: o })), void 0, !0)
|
|
875
|
+
]),
|
|
876
|
+
key: "0"
|
|
877
|
+
} : void 0,
|
|
878
|
+
l.$slots.optionTooltip ? {
|
|
879
|
+
name: "optionTooltip",
|
|
880
|
+
fn: m(() => [
|
|
881
|
+
$(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
882
|
+
]),
|
|
883
|
+
key: "1"
|
|
884
|
+
} : void 0,
|
|
885
|
+
l.$slots.optionPdf ? {
|
|
886
|
+
name: "optionPdf",
|
|
887
|
+
fn: m(() => [
|
|
888
|
+
$(l.$slots, "optionPdf", {}, void 0, !0)
|
|
889
|
+
]),
|
|
890
|
+
key: "2"
|
|
891
|
+
} : void 0,
|
|
892
|
+
l.$slots.optionCsv ? {
|
|
893
|
+
name: "optionCsv",
|
|
894
|
+
fn: m(() => [
|
|
895
|
+
$(l.$slots, "optionCsv", {}, void 0, !0)
|
|
896
|
+
]),
|
|
897
|
+
key: "3"
|
|
898
|
+
} : void 0,
|
|
899
|
+
l.$slots.optionImg ? {
|
|
900
|
+
name: "optionImg",
|
|
901
|
+
fn: m(() => [
|
|
902
|
+
$(l.$slots, "optionImg", {}, void 0, !0)
|
|
903
|
+
]),
|
|
904
|
+
key: "4"
|
|
905
|
+
} : void 0,
|
|
906
|
+
l.$slots.optionTable ? {
|
|
907
|
+
name: "optionTable",
|
|
908
|
+
fn: m(() => [
|
|
909
|
+
$(l.$slots, "optionTable", {}, void 0, !0)
|
|
910
|
+
]),
|
|
911
|
+
key: "5"
|
|
912
|
+
} : void 0,
|
|
913
|
+
l.$slots.optionLabels ? {
|
|
914
|
+
name: "optionLabels",
|
|
915
|
+
fn: m(() => [
|
|
916
|
+
$(l.$slots, "optionLabels", {}, void 0, !0)
|
|
917
|
+
]),
|
|
918
|
+
key: "6"
|
|
919
|
+
} : void 0,
|
|
920
|
+
l.$slots.optionFullscreen ? {
|
|
921
|
+
name: "optionFullscreen",
|
|
922
|
+
fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
923
|
+
$(l.$slots, "optionFullscreen", U(G({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
924
|
+
]),
|
|
925
|
+
key: "7"
|
|
926
|
+
} : void 0,
|
|
927
|
+
l.$slots.optionAnnotator ? {
|
|
928
|
+
name: "optionAnnotator",
|
|
929
|
+
fn: m(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
930
|
+
$(l.$slots, "optionAnnotator", U(G({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
931
|
+
]),
|
|
932
|
+
key: "8"
|
|
933
|
+
} : void 0
|
|
934
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
935
|
+
(s(), n("svg", {
|
|
936
|
+
ref_key: "svgRef",
|
|
937
|
+
ref: Xe,
|
|
938
|
+
xmlns: i(Rt),
|
|
939
|
+
class: T({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
940
|
+
viewBox: `${v.value.startX} ${v.value.startY} ${v.value.width} ${v.value.height}`,
|
|
941
|
+
style: C(`max-width:100%;overflow:hidden;background:transparent;color:${e.value.style.chart.color}`),
|
|
942
|
+
id: `svg_${w.value}`
|
|
943
|
+
}, [
|
|
944
|
+
se(i(bt)),
|
|
945
|
+
l.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
946
|
+
key: 0,
|
|
947
|
+
x: v.value.startX,
|
|
948
|
+
y: v.value.startY,
|
|
949
|
+
width: v.value.width,
|
|
950
|
+
height: v.value.height,
|
|
951
|
+
style: {
|
|
952
|
+
pointerEvents: "none"
|
|
953
|
+
}
|
|
954
|
+
}, [
|
|
955
|
+
$(l.$slots, "chart-background", {}, void 0, !0)
|
|
956
|
+
], 8, il)) : h("", !0),
|
|
957
|
+
c("defs", null, [
|
|
958
|
+
(s(!0), n(S, null, Y(z.value, (a, o) => (s(), n("radialGradient", {
|
|
959
|
+
cx: "50%",
|
|
960
|
+
cy: "50%",
|
|
961
|
+
r: "50%",
|
|
962
|
+
fx: "50%",
|
|
963
|
+
fy: "50%",
|
|
964
|
+
id: `quadrant_gradient_${w.value}_${o}`
|
|
965
|
+
}, [
|
|
966
|
+
c("stop", {
|
|
967
|
+
offset: "0%",
|
|
968
|
+
"stop-color": i(re)(i(Pt)(a.color, 0.05), e.value.style.chart.layout.areas.opacity)
|
|
969
|
+
}, null, 8, dl),
|
|
970
|
+
c("stop", {
|
|
971
|
+
offset: "100%",
|
|
972
|
+
"stop-color": i(re)(a.color, e.value.style.chart.layout.areas.opacity)
|
|
973
|
+
}, null, 8, cl)
|
|
974
|
+
], 8, vl))), 256))
|
|
975
|
+
]),
|
|
976
|
+
e.value.style.chart.layout.grid.graduations.show ? (s(), n("g", hl, [
|
|
977
|
+
(s(!0), n(S, null, Y($t.value, (a) => (s(), n("rect", {
|
|
978
|
+
fill: e.value.style.chart.layout.grid.graduations.fill ? i(re)(e.value.style.chart.layout.grid.graduations.color, a.opacity) : "none",
|
|
979
|
+
x: a.x,
|
|
980
|
+
y: a.y,
|
|
981
|
+
height: a.height <= 0 ? 1e-3 : a.height,
|
|
982
|
+
width: a.width <= 0 ? 1e-3 : a.width,
|
|
983
|
+
"stroke-width": e.value.style.chart.layout.grid.graduations.strokeWidth,
|
|
984
|
+
stroke: e.value.style.chart.layout.grid.graduations.stroke,
|
|
985
|
+
rx: e.value.style.chart.layout.grid.graduations.roundingForce
|
|
986
|
+
}, null, 8, yl))), 256))
|
|
987
|
+
])) : h("", !0),
|
|
988
|
+
c("line", {
|
|
989
|
+
x1: t.value.left,
|
|
990
|
+
y1: t.value.centerY,
|
|
991
|
+
x2: t.value.right,
|
|
992
|
+
y2: t.value.centerY,
|
|
993
|
+
stroke: e.value.style.chart.layout.grid.stroke,
|
|
994
|
+
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
995
|
+
}, null, 8, bl),
|
|
996
|
+
c("line", {
|
|
997
|
+
x1: t.value.centerX,
|
|
998
|
+
y1: t.value.top,
|
|
999
|
+
x2: t.value.centerX,
|
|
1000
|
+
y2: t.value.bottom,
|
|
1001
|
+
stroke: e.value.style.chart.layout.grid.stroke,
|
|
1002
|
+
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
1003
|
+
}, null, 8, fl),
|
|
1004
|
+
e.value.style.chart.layout.grid.showArrows ? (s(), n("g", pl, [
|
|
1005
|
+
c("polygon", {
|
|
1006
|
+
points: `${t.value.right - 8},${t.value.centerY - 6} ${t.value.right},${t.value.centerY} ${t.value.right - 8},${t.value.centerY + 6}`,
|
|
1007
|
+
fill: e.value.style.chart.layout.grid.stroke,
|
|
1008
|
+
stroke: "none"
|
|
1009
|
+
}, null, 8, gl),
|
|
1010
|
+
c("polygon", {
|
|
1011
|
+
points: `${t.value.left + 8},${t.value.centerY - 6} ${t.value.left},${t.value.centerY} ${t.value.left + 8},${t.value.centerY + 6}`,
|
|
1012
|
+
fill: e.value.style.chart.layout.grid.stroke,
|
|
1013
|
+
stroke: "none"
|
|
1014
|
+
}, null, 8, ml),
|
|
1015
|
+
c("polygon", {
|
|
1016
|
+
points: `${t.value.centerX - 6},${t.value.top + 8} ${t.value.centerX},${t.value.top} ${t.value.centerX + 6},${t.value.top + 8}`,
|
|
1017
|
+
fill: e.value.style.chart.layout.grid.stroke,
|
|
1018
|
+
stroke: "none"
|
|
1019
|
+
}, null, 8, xl),
|
|
1020
|
+
c("polygon", {
|
|
1021
|
+
points: `${t.value.centerX - 6},${t.value.bottom - 8} ${t.value.centerX},${t.value.bottom} ${t.value.centerX + 6},${t.value.bottom - 8}`,
|
|
1022
|
+
fill: e.value.style.chart.layout.grid.stroke,
|
|
1023
|
+
stroke: "none"
|
|
1024
|
+
}, null, 8, $l)
|
|
1025
|
+
])) : h("", !0),
|
|
1026
|
+
e.value.style.chart.layout.labels.quadrantLabels.show && !p.value ? (s(), n("g", kl, [
|
|
1027
|
+
e.value.style.chart.layout.labels.quadrantLabels.tl.text ? (s(), n("text", {
|
|
1028
|
+
key: 0,
|
|
1029
|
+
x: 0,
|
|
1030
|
+
y: t.value.top - t.value.padding / 2,
|
|
1031
|
+
"text-anchor": "start",
|
|
1032
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
1033
|
+
"font-size": e.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
1034
|
+
style: C(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
|
|
1035
|
+
onClick: u[0] || (u[0] = (a) => Z("tl"))
|
|
1036
|
+
}, k(e.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, Ll)) : h("", !0),
|
|
1037
|
+
e.value.style.chart.layout.labels.quadrantLabels.tr.text ? (s(), n("text", {
|
|
1038
|
+
key: 1,
|
|
1039
|
+
x: t.value.width,
|
|
1040
|
+
y: t.value.top - t.value.padding / 2,
|
|
1041
|
+
"text-anchor": "end",
|
|
1042
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
1043
|
+
"font-size": e.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
1044
|
+
style: C(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
|
|
1045
|
+
onClick: u[1] || (u[1] = (a) => Z("tr"))
|
|
1046
|
+
}, k(e.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, wl)) : h("", !0),
|
|
1047
|
+
e.value.style.chart.layout.labels.quadrantLabels.br.text ? (s(), n("text", {
|
|
1048
|
+
key: 2,
|
|
1049
|
+
x: t.value.width,
|
|
1050
|
+
y: t.value.bottom + t.value.padding * 0.7,
|
|
1051
|
+
"text-anchor": "end",
|
|
1052
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
1053
|
+
"font-size": e.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
1054
|
+
style: C(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
|
|
1055
|
+
onClick: u[2] || (u[2] = (a) => Z("br"))
|
|
1056
|
+
}, k(e.value.style.chart.layout.labels.quadrantLabels.br.text), 13, _l)) : h("", !0),
|
|
1057
|
+
e.value.style.chart.layout.labels.quadrantLabels.bl.text ? (s(), n("text", {
|
|
1058
|
+
key: 3,
|
|
1059
|
+
x: 0,
|
|
1060
|
+
y: t.value.bottom + t.value.padding * 0.7,
|
|
1061
|
+
"text-anchor": "start",
|
|
1062
|
+
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
1063
|
+
"font-size": e.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
1064
|
+
style: C(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
|
|
1065
|
+
onClick: u[3] || (u[3] = (a) => Z("bl"))
|
|
1066
|
+
}, k(e.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, Cl)) : h("", !0)
|
|
1067
|
+
])) : h("", !0),
|
|
1068
|
+
e.value.style.chart.layout.labels.axisLabels.show ? (s(), n("g", ql, [
|
|
1069
|
+
c("text", {
|
|
1070
|
+
x: t.value.centerX,
|
|
1071
|
+
y: t.value.top - t.value.padding / 6,
|
|
1072
|
+
"text-anchor": "middle",
|
|
1073
|
+
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1074
|
+
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1075
|
+
}, k(i(R)(
|
|
1076
|
+
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
1077
|
+
q.value.y.max,
|
|
1078
|
+
i(P)({
|
|
1079
|
+
v: q.value.y.max,
|
|
1080
|
+
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1081
|
+
})
|
|
1082
|
+
)), 9, Sl),
|
|
1083
|
+
c("text", {
|
|
1084
|
+
x: t.value.centerX,
|
|
1085
|
+
y: t.value.top - t.value.padding / 2,
|
|
1086
|
+
"text-anchor": "middle",
|
|
1087
|
+
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1088
|
+
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1089
|
+
}, k(e.value.style.chart.layout.grid.yAxis.name), 9, zl),
|
|
1090
|
+
c("text", {
|
|
1091
|
+
x: t.value.centerX,
|
|
1092
|
+
y: t.value.bottom + t.value.padding * 0.35,
|
|
1093
|
+
"text-anchor": "middle",
|
|
1094
|
+
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1095
|
+
fill: e.value.style.chart.layout.labels.axisLabels.color.negative
|
|
1096
|
+
}, k(i(R)(
|
|
1097
|
+
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
1098
|
+
q.value.y.min,
|
|
1099
|
+
i(P)({
|
|
1100
|
+
v: q.value.y.min,
|
|
1101
|
+
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1102
|
+
})
|
|
1103
|
+
)), 9, Tl),
|
|
1104
|
+
c("text", {
|
|
1105
|
+
id: `xLabelMin_${w.value}`,
|
|
1106
|
+
"text-anchor": "middle",
|
|
1107
|
+
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1108
|
+
transform: `translate(${t.value.padding - e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(-90)`,
|
|
1109
|
+
fill: e.value.style.chart.layout.labels.axisLabels.color.negative
|
|
1110
|
+
}, k(i(R)(
|
|
1111
|
+
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
1112
|
+
q.value.x.min,
|
|
1113
|
+
i(P)({
|
|
1114
|
+
v: q.value.x.min,
|
|
1115
|
+
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1116
|
+
})
|
|
1117
|
+
)), 9, Al),
|
|
1118
|
+
c("text", {
|
|
1119
|
+
id: `xLabelMax_${w.value}`,
|
|
1120
|
+
"text-anchor": "middle",
|
|
1121
|
+
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1122
|
+
transform: `translate(${t.value.width - t.value.padding + e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(90)`,
|
|
1123
|
+
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1124
|
+
}, k(i(R)(
|
|
1125
|
+
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
1126
|
+
q.value.x.max,
|
|
1127
|
+
i(P)({
|
|
1128
|
+
v: q.value.x.max,
|
|
1129
|
+
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1130
|
+
})
|
|
1131
|
+
)), 9, Wl),
|
|
1132
|
+
c("text", {
|
|
1133
|
+
id: `xLabelMaxName_${w.value}`,
|
|
1134
|
+
"text-anchor": "middle",
|
|
1135
|
+
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1136
|
+
transform: `translate(${t.value.width - e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(90)`,
|
|
1137
|
+
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1138
|
+
}, k(e.value.style.chart.layout.grid.xAxis.name), 9, Xl)
|
|
1139
|
+
])) : h("", !0),
|
|
1140
|
+
e.value.style.chart.layout.areas.show ? (s(), n("g", Yl, [
|
|
1141
|
+
(s(!0), n(S, null, Y(z.value, (a, o) => (s(), n("g", null, [
|
|
1142
|
+
a.series.length > 2 ? (s(), n("polygon", {
|
|
1143
|
+
key: 0,
|
|
1144
|
+
"data-cy-quadrant-area": "",
|
|
1145
|
+
fill: e.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${w.value}_${o})` : i(re)(a.color, e.value.style.chart.layout.areas.opacity),
|
|
1146
|
+
points: i(Vt)(a)
|
|
1147
|
+
}, null, 8, Ml)) : h("", !0)
|
|
1148
|
+
]))), 256))
|
|
1149
|
+
])) : h("", !0),
|
|
1150
|
+
c("g", null, [
|
|
1151
|
+
c("rect", {
|
|
1152
|
+
onClick: u[4] || (u[4] = (a) => N("TL")),
|
|
1153
|
+
x: t.value.left,
|
|
1154
|
+
y: t.value.top,
|
|
1155
|
+
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1156
|
+
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1157
|
+
fill: "transparent",
|
|
1158
|
+
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1159
|
+
}, null, 10, Ol),
|
|
1160
|
+
c("rect", {
|
|
1161
|
+
onClick: u[5] || (u[5] = (a) => N("TR")),
|
|
1162
|
+
x: t.value.centerX,
|
|
1163
|
+
y: t.value.top,
|
|
1164
|
+
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1165
|
+
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1166
|
+
fill: "transparent",
|
|
1167
|
+
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1168
|
+
}, null, 10, Nl),
|
|
1169
|
+
c("rect", {
|
|
1170
|
+
onClick: u[6] || (u[6] = (a) => N("BR")),
|
|
1171
|
+
x: t.value.centerX,
|
|
1172
|
+
y: t.value.centerY,
|
|
1173
|
+
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1174
|
+
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1175
|
+
fill: "transparent",
|
|
1176
|
+
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1177
|
+
}, null, 10, Bl),
|
|
1178
|
+
c("rect", {
|
|
1179
|
+
onClick: u[7] || (u[7] = (a) => N("BL")),
|
|
1180
|
+
x: t.value.left,
|
|
1181
|
+
y: t.value.centerY,
|
|
1182
|
+
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1183
|
+
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1184
|
+
fill: "transparent",
|
|
1185
|
+
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1186
|
+
}, null, 10, Fl)
|
|
1187
|
+
]),
|
|
1188
|
+
e.value.style.chart.layout.labels.plotLabels.showAsTag ? (s(), n(S, { key: 7 }, [
|
|
1189
|
+
g.value.plotLabels.show ? (s(), n("g", Hl, [
|
|
1190
|
+
(s(!0), n(S, null, Y(z.value, (a, o) => (s(), n(S, null, [
|
|
1191
|
+
(s(!0), n(S, null, Y(a.series, (r) => (s(), n("foreignObject", {
|
|
1192
|
+
style: { overflow: "visible" },
|
|
1193
|
+
height: "10",
|
|
1194
|
+
width: "100",
|
|
1195
|
+
x: r.x - 50,
|
|
1196
|
+
y: r.y - e.value.style.chart.layout.labels.plotLabels.fontSize,
|
|
1197
|
+
onMouseover: (b) => Ie(a, r, o),
|
|
1198
|
+
onMouseleave: (b) => De(r, o),
|
|
1199
|
+
onClick: (b) => Ee(a, r, o)
|
|
1200
|
+
}, [
|
|
1201
|
+
c("div", {
|
|
1202
|
+
style: C(`color:${i(It)(a.color)};margin: 0 auto; font-size:${e.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${a.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`)
|
|
1203
|
+
}, k(r.name), 5)
|
|
1204
|
+
], 40, Il))), 256))
|
|
1205
|
+
], 64))), 256))
|
|
1206
|
+
])) : h("", !0)
|
|
1207
|
+
], 64)) : (s(), n(S, { key: 6 }, [
|
|
1208
|
+
(s(!0), n(S, null, Y(z.value, (a, o) => (s(), n("g", null, [
|
|
1209
|
+
(s(!0), n(S, null, Y(a.series, (r) => (s(), X(ot, {
|
|
1210
|
+
color: a.color,
|
|
1211
|
+
isSelected: ae.value && r.uid === ae.value,
|
|
1212
|
+
plot: r,
|
|
1213
|
+
radius: e.value.style.chart.layout.plots.radius / (p.value ? 1.5 : 1),
|
|
1214
|
+
shape: a.shape,
|
|
1215
|
+
stroke: e.value.style.chart.layout.plots.outline ? e.value.style.chart.layout.plots.outlineColor : "none",
|
|
1216
|
+
strokeWidth: e.value.style.chart.layout.plots.outlineWidth,
|
|
1217
|
+
onMouseenter: (b) => Ie(a, r, o),
|
|
1218
|
+
onMouseleave: (b) => De(r, o),
|
|
1219
|
+
onClick: (b) => Ee(a, r, o)
|
|
1220
|
+
}, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseenter", "onMouseleave", "onClick"]))), 256))
|
|
1221
|
+
]))), 256)),
|
|
1222
|
+
g.value.plotLabels.show ? (s(), n("g", Rl, [
|
|
1223
|
+
(s(!0), n(S, null, Y(z.value, (a) => (s(), n("g", null, [
|
|
1224
|
+
(s(!0), n(S, null, Y(a.series, (o) => (s(), n("g", null, [
|
|
1225
|
+
String(o.name).includes(`
|
|
1226
|
+
`) ? (s(), n("text", {
|
|
1227
|
+
key: 1,
|
|
1228
|
+
x: o.x,
|
|
1229
|
+
y: o.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius,
|
|
1230
|
+
"text-anchor": "middle",
|
|
1231
|
+
"font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (p.value ? 1.5 : 1),
|
|
1232
|
+
fill: e.value.style.chart.layout.labels.plotLabels.color,
|
|
1233
|
+
innerHTML: i(Ht)({
|
|
1234
|
+
content: String(o.name),
|
|
1235
|
+
fontSize: e.value.style.chart.layout.labels.plotLabels.fontSize / (p.value ? 1.5 : 1),
|
|
1236
|
+
fill: e.value.style.chart.layout.labels.plotLabels.color,
|
|
1237
|
+
x: o.x,
|
|
1238
|
+
y: o.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius
|
|
1239
|
+
})
|
|
1240
|
+
}, null, 8, Vl)) : (s(), n("text", {
|
|
1241
|
+
key: 0,
|
|
1242
|
+
x: o.x,
|
|
1243
|
+
y: o.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius,
|
|
1244
|
+
"text-anchor": "middle",
|
|
1245
|
+
"font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (p.value ? 1.5 : 1),
|
|
1246
|
+
fill: e.value.style.chart.layout.labels.plotLabels.color
|
|
1247
|
+
}, k(o.name), 9, Pl))
|
|
1248
|
+
]))), 256))
|
|
1249
|
+
]))), 256))
|
|
1250
|
+
])) : h("", !0)
|
|
1251
|
+
], 64)),
|
|
1252
|
+
p.value ? (s(), n("g", Dl, [
|
|
1253
|
+
d.value === "TL" ? (s(), n("polygon", {
|
|
1254
|
+
key: 0,
|
|
1255
|
+
points: `${t.value.left - 1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.top - 1} ${t.value.right},${t.value.top - 1} ${t.value.right},${t.value.bottom} ${t.value.left - 1},${t.value.bottom} ${t.value.left - 1},${t.value.centerY}`,
|
|
1256
|
+
fill: e.value.style.chart.backgroundColor,
|
|
1257
|
+
style: { opacity: "1" }
|
|
1258
|
+
}, null, 8, El)) : h("", !0),
|
|
1259
|
+
d.value === "TR" ? (s(), n("polygon", {
|
|
1260
|
+
key: 1,
|
|
1261
|
+
points: `${t.value.left},${t.value.top - 1} ${t.value.centerX},${t.value.top - 1} ${t.value.centerX},${t.value.centerY} ${t.value.right + 1},${t.value.centerY} ${t.value.right + 1},${t.value.bottom} ${t.value.left},${t.value.bottom} ${t.value.left},${t.value.top - 1}`,
|
|
1262
|
+
fill: e.value.style.chart.backgroundColor,
|
|
1263
|
+
style: { opacity: "1" }
|
|
1264
|
+
}, null, 8, Ul)) : h("", !0),
|
|
1265
|
+
d.value === "BR" ? (s(), n("polygon", {
|
|
1266
|
+
key: 2,
|
|
1267
|
+
points: `${t.value.left},${t.value.top} ${t.value.right + 1},${t.value.top} ${t.value.right + 1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.bottom + 1} ${t.value.left},${t.value.bottom + 1} ${t.value.left},${t.value.top}`,
|
|
1268
|
+
fill: e.value.style.chart.backgroundColor,
|
|
1269
|
+
style: { opacity: "1" }
|
|
1270
|
+
}, null, 8, Gl)) : h("", !0),
|
|
1271
|
+
d.value === "BL" ? (s(), n("polygon", {
|
|
1272
|
+
key: 3,
|
|
1273
|
+
points: `${t.value.left - 1},${t.value.top} ${t.value.right},${t.value.top} ${t.value.right},${t.value.bottom + 1} ${t.value.centerX},${t.value.bottom + 1} ${t.value.centerX},${t.value.centerY} ${t.value.left - 1},${t.value.centerY} ${t.value.left - 1},${t.value.top}`,
|
|
1274
|
+
fill: e.value.style.chart.backgroundColor,
|
|
1275
|
+
style: { opacity: "1" }
|
|
1276
|
+
}, null, 8, Ql)) : h("", !0)
|
|
1277
|
+
])) : h("", !0),
|
|
1278
|
+
d.value && !ee.value ? (s(), n("g", Jl, [
|
|
1279
|
+
c("text", {
|
|
1280
|
+
x: V.value.x,
|
|
1281
|
+
y: V.value.y - V.value.fontSize / 1.5,
|
|
1282
|
+
"font-size": V.value.fontSize / 1.5,
|
|
1283
|
+
fill: V.value.fill,
|
|
1284
|
+
"text-anchor": "middle",
|
|
1285
|
+
"font-weight": V.value.bold ? "bold" : "normal"
|
|
1286
|
+
}, k(V.value.text), 9, jl)
|
|
1287
|
+
])) : h("", !0),
|
|
1288
|
+
p.value && d.value ? (s(), n("g", Zl, [
|
|
1289
|
+
c("rect", {
|
|
1290
|
+
x: _.value[d.value].tl.x,
|
|
1291
|
+
y: _.value[d.value].tl.y,
|
|
1292
|
+
height: "20",
|
|
1293
|
+
width: "20",
|
|
1294
|
+
fill: _.value[d.value].tl.fill,
|
|
1295
|
+
style: C(`cursor: pointer; opacity: ${d.value === "TL" ? 1 : 0.2}`),
|
|
1296
|
+
onClick: u[8] || (u[8] = (a) => N("TL")),
|
|
1297
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "TL" })
|
|
1298
|
+
}, null, 14, Kl),
|
|
1299
|
+
c("rect", {
|
|
1300
|
+
x: _.value[d.value].tr.x,
|
|
1301
|
+
y: _.value[d.value].tr.y,
|
|
1302
|
+
height: "20",
|
|
1303
|
+
width: "20",
|
|
1304
|
+
fill: _.value[d.value].tr.fill,
|
|
1305
|
+
style: C(`cursor: pointer; opacity: ${d.value === "TR" ? 1 : 0.2}`),
|
|
1306
|
+
onClick: u[9] || (u[9] = (a) => N("TR")),
|
|
1307
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "TR" })
|
|
1308
|
+
}, null, 14, ea),
|
|
1309
|
+
c("rect", {
|
|
1310
|
+
x: _.value[d.value].br.x,
|
|
1311
|
+
y: _.value[d.value].br.y,
|
|
1312
|
+
height: "20",
|
|
1313
|
+
width: "20",
|
|
1314
|
+
fill: _.value[d.value].br.fill,
|
|
1315
|
+
style: C(`cursor: pointer; opacity: ${d.value === "BR" ? 1 : 0.2}`),
|
|
1316
|
+
onClick: u[10] || (u[10] = (a) => N("BR")),
|
|
1317
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "BR" })
|
|
1318
|
+
}, null, 14, ta),
|
|
1319
|
+
c("rect", {
|
|
1320
|
+
x: _.value[d.value].bl.x,
|
|
1321
|
+
y: _.value[d.value].bl.y,
|
|
1322
|
+
height: "20",
|
|
1323
|
+
width: "20",
|
|
1324
|
+
fill: _.value[d.value].bl.fill,
|
|
1325
|
+
style: C(`cursor: pointer; opacity: ${d.value === "BL" ? 1 : 0.2}`),
|
|
1326
|
+
onClick: u[11] || (u[11] = (a) => N("BL")),
|
|
1327
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "BL" })
|
|
1328
|
+
}, null, 14, la),
|
|
1329
|
+
c("path", {
|
|
1330
|
+
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1331
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
1332
|
+
"stroke-width": 1,
|
|
1333
|
+
d: _.value[d.value].crosshairs.horizontal
|
|
1334
|
+
}, null, 8, aa),
|
|
1335
|
+
c("path", {
|
|
1336
|
+
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1337
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
1338
|
+
"stroke-width": 1,
|
|
1339
|
+
d: _.value[d.value].crosshairs.vertical
|
|
1340
|
+
}, null, 8, ua)
|
|
1341
|
+
])) : h("", !0),
|
|
1342
|
+
$(l.$slots, "svg", { svg: t.value }, void 0, !0)
|
|
1343
|
+
], 14, nl)),
|
|
1344
|
+
l.$slots.watermark ? (s(), n("div", oa, [
|
|
1345
|
+
$(l.$slots, "watermark", U(G({ isPrinting: i(Me) || i(Oe) })), void 0, !0)
|
|
1346
|
+
])) : h("", !0),
|
|
1347
|
+
c("div", {
|
|
1348
|
+
id: `legend-bottom-${w.value}`
|
|
1349
|
+
}, null, 8, sa),
|
|
1350
|
+
Se.value ? (s(), X(zt, {
|
|
1351
|
+
key: 5,
|
|
1352
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
|
|
1353
|
+
}, [
|
|
1354
|
+
c("div", {
|
|
1355
|
+
ref_key: "chartLegend",
|
|
1356
|
+
ref: ke
|
|
1357
|
+
}, [
|
|
1358
|
+
e.value.style.chart.legend.show ? (s(), X(ll, {
|
|
1359
|
+
key: `legend_${qe.value}`,
|
|
1360
|
+
legendSet: Ve.value,
|
|
1361
|
+
config: wt.value,
|
|
1362
|
+
onClickMarker: u[12] || (u[12] = ({ legend: a }) => he(a.id))
|
|
1363
|
+
}, {
|
|
1364
|
+
item: m(({ legend: a }) => [
|
|
1365
|
+
i(ze) ? h("", !0) : (s(), n("div", {
|
|
1366
|
+
key: 0,
|
|
1367
|
+
onClick: (o) => he(a.id),
|
|
1368
|
+
style: C(`opacity:${B.value.includes(a.id) ? 0.5 : 1}`)
|
|
1369
|
+
}, k(a.name), 13, ra))
|
|
1370
|
+
]),
|
|
1371
|
+
_: 1
|
|
1372
|
+
}, 8, ["legendSet", "config"])) : $(l.$slots, "legend", {
|
|
1373
|
+
key: 1,
|
|
1374
|
+
legend: Ve.value
|
|
1375
|
+
}, void 0, !0)
|
|
1376
|
+
], 512)
|
|
1377
|
+
], 8, ["to"])) : h("", !0),
|
|
1378
|
+
l.$slots.source ? (s(), n("div", {
|
|
1379
|
+
key: 6,
|
|
1380
|
+
ref_key: "source",
|
|
1381
|
+
ref: Le,
|
|
1382
|
+
dir: "auto"
|
|
1383
|
+
}, [
|
|
1384
|
+
$(l.$slots, "source", {}, void 0, !0)
|
|
1385
|
+
], 512)) : h("", !0),
|
|
1386
|
+
se(i(it), {
|
|
1387
|
+
show: g.value.showTooltip && ie.value,
|
|
1388
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1389
|
+
color: e.value.style.chart.tooltip.color,
|
|
1390
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
1391
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
1392
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
1393
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
1394
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1395
|
+
position: e.value.style.chart.tooltip.position,
|
|
1396
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1397
|
+
parent: A.value,
|
|
1398
|
+
content: ve.value,
|
|
1399
|
+
isFullscreen: H.value,
|
|
1400
|
+
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
1401
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
1402
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1403
|
+
}, {
|
|
1404
|
+
"tooltip-before": m(() => [
|
|
1405
|
+
$(l.$slots, "tooltip-before", U(G({ ...ye.value })), void 0, !0)
|
|
1406
|
+
]),
|
|
1407
|
+
"tooltip-after": m(() => [
|
|
1408
|
+
$(l.$slots, "tooltip-after", U(G({ ...ye.value })), void 0, !0)
|
|
1409
|
+
]),
|
|
1410
|
+
default: m(() => [
|
|
1411
|
+
e.value.style.chart.tooltip.showShape ? (s(), n("svg", na, [
|
|
1412
|
+
se(ot, {
|
|
1413
|
+
plot: { x: 10, y: 10 },
|
|
1414
|
+
shape: ue.value.shape,
|
|
1415
|
+
color: ue.value.color,
|
|
1416
|
+
radius: 8,
|
|
1417
|
+
stroke: e.value.style.chart.layout.plots.outline ? e.value.style.chart.layout.plots.outlineColor : "none",
|
|
1418
|
+
"stroke-width": e.value.style.chart.layout.plots.outlineWidth
|
|
1419
|
+
}, null, 8, ["shape", "color", "stroke", "stroke-width"])
|
|
1420
|
+
])) : h("", !0)
|
|
1421
|
+
]),
|
|
1422
|
+
_: 3
|
|
1423
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1424
|
+
me.value ? (s(), X(Tt(K.value.component), At({ key: 7 }, K.value.props, {
|
|
1425
|
+
ref_key: "tableUnit",
|
|
1426
|
+
ref: J,
|
|
1427
|
+
onClose: u[15] || (u[15] = (a) => g.value.showTable = !1)
|
|
1428
|
+
}), et({
|
|
1429
|
+
content: m(() => [
|
|
1430
|
+
(s(), X(i(ct), {
|
|
1431
|
+
key: `table_${Ce.value}`,
|
|
1432
|
+
colNames: le.value.colNames,
|
|
1433
|
+
head: le.value.head,
|
|
1434
|
+
body: le.value.body,
|
|
1435
|
+
config: le.value.config,
|
|
1436
|
+
title: e.value.table.useDialog ? "" : K.value.title,
|
|
1437
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1438
|
+
onClose: u[14] || (u[14] = (a) => g.value.showTable = !1)
|
|
1439
|
+
}, {
|
|
1440
|
+
th: m(({ th: a }) => [
|
|
1441
|
+
tt(k(a), 1)
|
|
1442
|
+
]),
|
|
1443
|
+
td: m(({ td: a }) => [
|
|
1444
|
+
c("div", {
|
|
1445
|
+
innerHTML: a.name || a
|
|
1446
|
+
}, null, 8, ia)
|
|
1447
|
+
]),
|
|
1448
|
+
_: 1
|
|
1449
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
1450
|
+
]),
|
|
1451
|
+
_: 2
|
|
1452
|
+
}, [
|
|
1453
|
+
e.value.table.useDialog ? {
|
|
1454
|
+
name: "title",
|
|
1455
|
+
fn: m(() => [
|
|
1456
|
+
tt(k(K.value.title), 1)
|
|
1457
|
+
]),
|
|
1458
|
+
key: "0"
|
|
1459
|
+
} : void 0,
|
|
1460
|
+
e.value.table.useDialog ? {
|
|
1461
|
+
name: "actions",
|
|
1462
|
+
fn: m(() => [
|
|
1463
|
+
c("button", {
|
|
1464
|
+
tabindex: "0",
|
|
1465
|
+
class: "vue-ui-user-options-button",
|
|
1466
|
+
onClick: u[13] || (u[13] = (a) => be(e.value.userOptions.callbacks.csv))
|
|
1467
|
+
}, [
|
|
1468
|
+
se(i(vt), {
|
|
1469
|
+
name: "excel",
|
|
1470
|
+
stroke: K.value.props.color
|
|
1471
|
+
}, null, 8, ["stroke"])
|
|
1472
|
+
])
|
|
1473
|
+
]),
|
|
1474
|
+
key: "1"
|
|
1475
|
+
} : void 0
|
|
1476
|
+
]), 1040)) : h("", !0),
|
|
1477
|
+
i(ze) ? (s(), X(ul, { key: 8 })) : h("", !0)
|
|
1478
|
+
], 46, sl));
|
|
1479
|
+
}
|
|
1480
|
+
}, wa = /* @__PURE__ */ ol(va, [["__scopeId", "data-v-bdd60f91"]]);
|
|
1481
|
+
export {
|
|
1482
|
+
wa as default
|
|
1483
|
+
};
|