vue-data-ui 3.0.0-next.9 → 3.0.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/README.md +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-DQoWnUfD.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-DEw6oieL.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-DEl03NUZ.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-CrivFZqC.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-ClgCsiJA.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-CMvJ6X5j.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-B2Wvbl3p.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CD5VH_Al.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3WRn-G2.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-Adi9i_-f.js} +43 -37
- package/dist/Slicer-t6e1t2iM.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-B8OnBSvk.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-xTWR-Vil.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-BH3CiANh.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-CKKPgDLV.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-C4hj491O.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-Vb4QHAHI.js} +1 -1
- package/dist/{index-CgShIRes.js → index-Dzc2Gi60.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-ddpqw-dt.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-CN_Jh8Hr.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-CjnS13nF.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DBRh8ZvS.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-B7ztqj9-.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-DUmYPtHl.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-CPk8wAuj.js} +3 -3
- package/dist/vue-ui-age-pyramid-Bv5HmeXj.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-KXWlIhtd.js} +12 -12
- package/dist/vue-ui-bullet-B4N4mBk9.js +571 -0
- package/dist/vue-ui-candlestick-DENvPnUO.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-vC2bHBaY.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-2nS0StrY.js} +664 -536
- package/dist/vue-ui-chord-CyfS6vNM.js +1038 -0
- package/dist/vue-ui-circle-pack-C4JR-0fx.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-BgeSDtQh.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-9DWUBJ-I.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-BQO7IBFA.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-C-ZJXJ74.js} +431 -422
- package/dist/vue-ui-donut-evolution-B870IrQA.js +1076 -0
- package/dist/vue-ui-dumbbell-Cfs2Uotx.js +1120 -0
- package/dist/vue-ui-flow-DnaUVVAD.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-B9s-H5ZG.js} +16 -16
- package/dist/vue-ui-galaxy-BoJOczdh.js +680 -0
- package/dist/vue-ui-gauge-qjm4BqZR.js +791 -0
- package/dist/vue-ui-gizmo-fn7ZaMTI.js +210 -0
- package/dist/vue-ui-heatmap-CIBDKhh8.js +1078 -0
- package/dist/vue-ui-history-plot-bbNxldYG.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-BX-2jhLx.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-Bn1Bb8-J.js} +2 -2
- package/dist/vue-ui-molecule-DQ3qFtBq.js +656 -0
- package/dist/vue-ui-mood-radar-Cf-ehIo1.js +785 -0
- package/dist/vue-ui-nested-donuts-CWg5BEi-.js +1284 -0
- package/dist/vue-ui-onion-sHgQTYfa.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-Ki3ITp_s.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-BIVqW7U7.js} +512 -459
- package/dist/vue-ui-quick-chart-C_hvHc1b.js +1762 -0
- package/dist/vue-ui-radar-RZUPyPwB.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-BI8Vk7dO.js} +2 -2
- package/dist/vue-ui-relation-circle-TVMUEtxK.js +598 -0
- package/dist/vue-ui-ridgeline-DQeXHQG4.js +1157 -0
- package/dist/vue-ui-rings-BH81WmMS.js +728 -0
- package/dist/vue-ui-scatter-Cy7Tz_An.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-CF50qQxr.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-CrFXEbJs.js} +46 -46
- package/dist/vue-ui-spark-trend-DtHArnot.js +315 -0
- package/dist/vue-ui-sparkbar-CIOwFFgA.js +351 -0
- package/dist/vue-ui-sparkgauge-E0DdGotz.js +232 -0
- package/dist/vue-ui-sparkhistogram-Dm7WoyjY.js +380 -0
- package/dist/vue-ui-sparkline-DoW6DDKT.js +513 -0
- package/dist/vue-ui-sparkstackbar-BJnPUWY4.js +421 -0
- package/dist/vue-ui-stackbar-Du42smPs.js +1371 -0
- package/dist/vue-ui-strip-plot-DnenGI-d.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BQOQVlHr.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-BzK4_gsP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-B-IwcT8I.js} +19 -16
- package/dist/vue-ui-thermometer-06ao_Pj5.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-CxQq4roK.js} +5 -5
- package/dist/vue-ui-tiremarks-CuTxkByj.js +406 -0
- package/dist/vue-ui-treemap-BgHhRpiV.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-CAcsUUCo.js} +104 -102
- package/dist/vue-ui-waffle-Ct3Upw3m.js +910 -0
- package/dist/vue-ui-wheel-oz06Kt-p.js +379 -0
- package/dist/vue-ui-word-cloud-BRy7fg4S.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-CTV-YfFN.js} +364 -327
- package/dist/vue-ui-xy-DqCy9dpa.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-BZdhKUIp.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,30 +1,31 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
1
|
+
import { defineAsyncComponent as D, computed as g, ref as y, toRefs as gt, watch as Qe, shallowRef as Je, onMounted as mt, onBeforeUnmount as xt, createElementBlock as n, openBlock as s, unref as i, normalizeStyle as _, normalizeClass as T, createBlock as R, createCommentVNode as c, createElementVNode as h, createVNode as he, createSlots as $t, withCtx as m, renderSlot as x, normalizeProps as U, guardReactiveProps as G, Fragment as C, renderList as X, toDisplayString as L, createTextVNode as kt, nextTick as Lt } from "vue";
|
|
2
|
+
import { u as wt, c as je, t as _t, a as qt, p as ye, b as Ct, o as St, f as Q, d as zt, e as Tt, Y as At, k as F, i as B, X as Xt, s as ue, x as Wt, Z as Yt, I as Mt, F as Nt, v as Ot, w as Rt, y as Ft, z as Bt } from "./index-Dzc2Gi60.js";
|
|
3
|
+
import { t as Vt, u as Pt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ht } from "./usePrinter-DBRh8ZvS.js";
|
|
5
|
+
import { u as Ze } from "./useNestedProp-CjnS13nF.js";
|
|
6
|
+
import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Et } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Dt from "./img-Vb4QHAHI.js";
|
|
9
|
+
import Ut from "./Title-xTWR-Vil.js";
|
|
10
|
+
import { _ as Ke } from "./Shape-Adi9i_-f.js";
|
|
11
|
+
import Gt from "./Legend-CMvJ6X5j.js";
|
|
12
|
+
import { u as Qt, B as Jt } from "./useLoading-D7YHNtLX.js";
|
|
13
|
+
import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Zt = ["id"], Kt = ["xmlns", "viewBox", "id"], el = ["x", "y", "width", "height"], tl = ["id"], ll = ["stop-color"], al = ["stop-color"], ul = { key: 1 }, ol = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], sl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], rl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], nl = { key: 2 }, il = ["points", "fill"], vl = ["points", "fill"], dl = ["points", "fill"], cl = ["points", "fill"], hl = { key: 3 }, yl = ["y", "fill", "font-size"], bl = ["x", "y", "fill", "font-size"], fl = ["x", "y", "fill", "font-size"], pl = ["y", "fill", "font-size"], gl = { key: 4 }, ml = ["x", "y", "font-size", "fill"], xl = ["x", "y", "font-size", "fill"], $l = ["x", "y", "font-size", "fill"], kl = ["id", "font-size", "transform", "fill"], Ll = ["id", "font-size", "transform", "fill"], wl = ["id", "font-size", "transform", "fill"], _l = { key: 5 }, ql = ["fill", "points"], Cl = ["x", "y", "width", "height"], Sl = ["x", "y", "width", "height"], zl = ["x", "y", "width", "height"], Tl = ["x", "y", "width", "height"], Al = {
|
|
14
15
|
key: 0,
|
|
15
16
|
style: { "pointer-events": "none" }
|
|
16
|
-
},
|
|
17
|
+
}, Xl = ["x", "y", "font-size", "fill"], Wl = ["x", "y", "font-size", "fill", "innerHTML"], Yl = { key: 0 }, Ml = ["x", "y", "onMouseover", "onMouseleave", "onClick"], Nl = {
|
|
17
18
|
key: 8,
|
|
18
19
|
class: "vue-ui-dna"
|
|
19
|
-
},
|
|
20
|
-
key:
|
|
20
|
+
}, Ol = ["points", "fill"], Rl = ["points", "fill"], Fl = ["points", "fill"], Bl = ["points", "fill"], Vl = { key: 9 }, Pl = ["x", "y", "font-size", "fill", "font-weight"], Hl = { key: 10 }, Il = ["x", "y", "fill"], El = ["x", "y", "fill"], Dl = ["x", "y", "fill"], Ul = ["x", "y", "fill"], Gl = ["stroke", "d"], Ql = ["stroke", "d"], Jl = {
|
|
21
|
+
key: 4,
|
|
21
22
|
class: "vue-data-ui-watermark"
|
|
22
|
-
},
|
|
23
|
+
}, jl = ["onClick"], Zl = {
|
|
23
24
|
key: 0,
|
|
24
25
|
height: "14",
|
|
25
26
|
width: "14",
|
|
26
27
|
viewBox: "0 0 20 20"
|
|
27
|
-
},
|
|
28
|
+
}, Kl = ["innerHTML"], ea = {
|
|
28
29
|
__name: "vue-ui-quadrant",
|
|
29
30
|
props: {
|
|
30
31
|
config: {
|
|
@@ -41,78 +42,143 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
emits: ["selectPlot", "selectSide", "selectLegend"],
|
|
44
|
-
setup(
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
45
|
+
setup(et, { expose: tt, emit: lt }) {
|
|
46
|
+
const at = D(() => import("./Tooltip-BH3CiANh.js")), ut = D(() => import("./vue-ui-accordion-CPk8wAuj.js")), ot = D(() => import("./DataTable-ClgCsiJA.js")), st = D(() => import("./PenAndPaper-D3WRn-G2.js")), rt = D(() => import("./UserOptions-CKKPgDLV.js")), nt = D(() => import("./PackageVersion-CD5VH_Al.js")), { vue_ui_quadrant: it } = wt(), W = et, be = g(() => !!W.dataset && W.dataset.length), z = y(je()), oe = lt, vt = y(null), se = y(!1), re = y(""), fe = y(0), p = y(!1), Y = y(null), pe = y(null), ge = y(null), me = y(null), xe = y(null), $e = y(0), ke = y(0), Le = y(0), t = y(ie()), { loading: we, FINAL_DATASET: _e } = Qt({
|
|
47
|
+
...gt(W),
|
|
48
|
+
FINAL_CONFIG: t,
|
|
49
|
+
prepareConfig: ie,
|
|
50
|
+
skeletonDataset: [
|
|
51
|
+
{
|
|
52
|
+
name: "_",
|
|
53
|
+
shape: "circle",
|
|
54
|
+
color: "#CACACA",
|
|
55
|
+
series: [
|
|
56
|
+
{ name: "_", x: -6, y: -4 },
|
|
57
|
+
{ name: "_", x: -5, y: -2 },
|
|
58
|
+
{ name: "_", x: -4, y: -1 },
|
|
59
|
+
{ name: "_", x: -3, y: -0.5 },
|
|
60
|
+
{ name: "_", x: -2, y: -0.25 },
|
|
61
|
+
{ name: "_", x: -1, y: -0.135 },
|
|
62
|
+
{ name: "_", x: 0, y: 0 },
|
|
63
|
+
{ name: "_", x: 1, y: 0.135 },
|
|
64
|
+
{ name: "_", x: 2, y: 0.25 },
|
|
65
|
+
{ name: "_", x: 3, y: 0.5 },
|
|
66
|
+
{ name: "_", x: 4, y: 1 },
|
|
67
|
+
{ name: "_", x: 5, y: 2 },
|
|
68
|
+
{ name: "_", x: 6, y: 4 }
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
skeletonConfig: _t({
|
|
73
|
+
defaultConfig: t.value,
|
|
74
|
+
userConfig: {
|
|
75
|
+
userOptions: { show: !1 },
|
|
76
|
+
table: { show: !1 },
|
|
77
|
+
style: {
|
|
78
|
+
chart: {
|
|
79
|
+
backgroundColor: "#99999930",
|
|
80
|
+
layout: {
|
|
81
|
+
grid: {
|
|
82
|
+
stroke: "#6A6A6A",
|
|
83
|
+
graduations: {
|
|
84
|
+
stroke: "#6A6A6A",
|
|
85
|
+
color: "#6A6A6A90"
|
|
86
|
+
},
|
|
87
|
+
xAxis: {
|
|
88
|
+
auto: !0
|
|
89
|
+
},
|
|
90
|
+
yAxis: {
|
|
91
|
+
auto: !0
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
labels: {
|
|
95
|
+
quadrantLabels: { show: !1 },
|
|
96
|
+
plotLabels: { show: !1 },
|
|
97
|
+
axisLabels: { show: !1 }
|
|
98
|
+
},
|
|
99
|
+
plots: {
|
|
100
|
+
outlineColor: "#6A6A6A"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
legend: {
|
|
104
|
+
backgroundColor: "transparent"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: qe, keepUserOptionState: Ce } = It({ config: t.value }), { svgRef: Se } = Et({ config: t.value.style.chart.title });
|
|
111
|
+
function ie() {
|
|
112
|
+
const l = Ze({
|
|
113
|
+
userConfig: W.config,
|
|
114
|
+
defaultConfig: it
|
|
53
115
|
});
|
|
54
116
|
return l.theme ? {
|
|
55
|
-
...
|
|
56
|
-
userConfig:
|
|
117
|
+
...Ze({
|
|
118
|
+
userConfig: Ct.vue_ui_quadrant[l.theme] || W.config,
|
|
57
119
|
defaultConfig: l
|
|
58
120
|
}),
|
|
59
|
-
customPalette:
|
|
121
|
+
customPalette: qt[l.theme] || ye
|
|
60
122
|
} : l;
|
|
61
123
|
}
|
|
62
|
-
|
|
63
|
-
t.value =
|
|
124
|
+
Qe(() => W.config, (l) => {
|
|
125
|
+
t.value = ie(), ne.value = !t.value.userOptions.showOnChartHover, ze(), $e.value += 1, ke.value += 1, Le.value += 1, $.value.plotLabels.show = t.value.style.chart.layout.labels.plotLabels.show, $.value.showTable = t.value.table.show, $.value.showTooltip = t.value.style.chart.tooltip.show;
|
|
64
126
|
}, { deep: !0 });
|
|
65
|
-
const M =
|
|
66
|
-
function
|
|
67
|
-
if (
|
|
127
|
+
const M = Je(null), P = Je(null), H = g(() => t.value.debug);
|
|
128
|
+
function ze() {
|
|
129
|
+
if (St(W.dataset) ? Q({
|
|
68
130
|
componentName: "VueUiQuadrant",
|
|
69
|
-
type: "dataset"
|
|
70
|
-
|
|
71
|
-
|
|
131
|
+
type: "dataset",
|
|
132
|
+
debug: H.value
|
|
133
|
+
}) : W.dataset.forEach((l, u) => {
|
|
134
|
+
[null, void 0].includes(l.name) && Q({
|
|
72
135
|
componentName: "VueUiQuadrant",
|
|
73
136
|
type: "datasetSerieAttribute",
|
|
74
137
|
property: "name",
|
|
75
|
-
index: u
|
|
76
|
-
|
|
138
|
+
index: u,
|
|
139
|
+
debug: H.value
|
|
140
|
+
}), [null, void 0].includes(l.series) ? Q({
|
|
77
141
|
componentName: "VueUiQuadrant",
|
|
78
142
|
type: "datasetSerieAttribute",
|
|
79
143
|
property: "series",
|
|
80
|
-
index: u
|
|
144
|
+
index: u,
|
|
145
|
+
debug: H.value
|
|
81
146
|
}) : l.series.forEach((a, o) => {
|
|
82
|
-
[null, void 0].includes(a.name) &&
|
|
147
|
+
[null, void 0].includes(a.name) && Q({
|
|
83
148
|
componentName: "VueUiQuadrant",
|
|
84
149
|
type: "datasetSerieAttribute",
|
|
85
150
|
property: "name",
|
|
86
151
|
key: "series",
|
|
87
|
-
index: o
|
|
152
|
+
index: o,
|
|
153
|
+
debug: H.value
|
|
88
154
|
});
|
|
89
155
|
});
|
|
90
156
|
}), t.value.responsive) {
|
|
91
|
-
const l =
|
|
92
|
-
const { width: u, height: a } =
|
|
93
|
-
chart:
|
|
94
|
-
title: t.value.style.chart.title.text ?
|
|
95
|
-
legend: t.value.style.chart.legend.show ?
|
|
96
|
-
source:
|
|
97
|
-
noTitle:
|
|
157
|
+
const l = Vt(() => {
|
|
158
|
+
const { width: u, height: a } = Pt({
|
|
159
|
+
chart: Y.value,
|
|
160
|
+
title: t.value.style.chart.title.text ? pe.value : null,
|
|
161
|
+
legend: t.value.style.chart.legend.show ? ge.value : null,
|
|
162
|
+
source: me.value,
|
|
163
|
+
noTitle: xe.value
|
|
98
164
|
});
|
|
99
165
|
k.value = 48, requestAnimationFrame(() => {
|
|
100
166
|
e.value.height = a, e.value.usableHeight = a - k.value * 2, e.value.width = u, e.value.usableWidth = u - k.value * 2, e.value.top = k.value, e.value.left = k.value, e.value.right = u - k.value, e.value.bottom = a - k.value, e.value.centerX = u / 2, e.value.centerY = a - a / 2, e.value.padding = k.value;
|
|
101
167
|
});
|
|
102
168
|
});
|
|
103
|
-
M.value && (
|
|
169
|
+
M.value && (P.value && M.value.unobserve(P.value), M.value.disconnect()), M.value = new ResizeObserver(l), P.value = Y.value.parentNode, M.value.observe(P.value);
|
|
104
170
|
}
|
|
105
171
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}),
|
|
109
|
-
M.value && (
|
|
172
|
+
mt(() => {
|
|
173
|
+
ze();
|
|
174
|
+
}), xt(() => {
|
|
175
|
+
M.value && (P.value && M.value.unobserve(P.value), M.value.disconnect());
|
|
110
176
|
});
|
|
111
|
-
const { isPrinting:
|
|
177
|
+
const { isPrinting: Te, isImaging: Ae, generatePdf: Xe, generateImage: We } = Ht({
|
|
112
178
|
elementId: `vue-ui-quadrant_${z.value}`,
|
|
113
179
|
fileName: t.value.style.chart.title.text || "vue-ui-quadrant",
|
|
114
180
|
options: t.value.userOptions.print
|
|
115
|
-
}),
|
|
181
|
+
}), dt = g(() => t.value.userOptions.show && !t.value.style.chart.title.text), Ye = g(() => zt(t.value.customPalette)), $ = y({
|
|
116
182
|
plotLabels: {
|
|
117
183
|
show: t.value.style.chart.layout.labels.plotLabels.show
|
|
118
184
|
},
|
|
@@ -135,15 +201,15 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
135
201
|
startX: 0,
|
|
136
202
|
startY: 0
|
|
137
203
|
});
|
|
138
|
-
|
|
204
|
+
Qe(() => e.value, (l) => {
|
|
139
205
|
l && (v.value = {
|
|
140
206
|
...JSON.parse(JSON.stringify(e.value)),
|
|
141
207
|
startX: 0,
|
|
142
208
|
startY: 0
|
|
143
209
|
});
|
|
144
210
|
}, { deep: !0 });
|
|
145
|
-
const
|
|
146
|
-
switch (
|
|
211
|
+
const d = y(null), V = g(() => {
|
|
212
|
+
switch (d.value) {
|
|
147
213
|
case "TL":
|
|
148
214
|
return {
|
|
149
215
|
x: v.value.startX + v.value.width / 2,
|
|
@@ -183,34 +249,34 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
183
249
|
default:
|
|
184
250
|
return { x: 0, y: 0, text: "", fontSize: 0, fill: "none", bold: !1 };
|
|
185
251
|
}
|
|
186
|
-
}),
|
|
187
|
-
function
|
|
188
|
-
|
|
252
|
+
}), ct = y(null), Z = y(!1);
|
|
253
|
+
function J({ targetX: l, targetY: u, targetW: a, targetH: o, side: r }) {
|
|
254
|
+
d.value && j(r);
|
|
189
255
|
const b = {
|
|
190
256
|
x: l - v.value.startX,
|
|
191
257
|
y: u - v.value.startY,
|
|
192
258
|
w: a - v.value.width,
|
|
193
259
|
h: o - v.value.height
|
|
194
|
-
},
|
|
195
|
-
let
|
|
196
|
-
function
|
|
197
|
-
|
|
260
|
+
}, f = t.value.zoomAnimationFrames;
|
|
261
|
+
let A = 0;
|
|
262
|
+
function Ge() {
|
|
263
|
+
Z.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, A += 1, A < f ? ct.value = requestAnimationFrame(Ge) : Z.value = !1;
|
|
198
264
|
}
|
|
199
|
-
|
|
265
|
+
Ge();
|
|
200
266
|
}
|
|
201
267
|
function N(l) {
|
|
202
|
-
if (!
|
|
203
|
-
if (
|
|
204
|
-
|
|
268
|
+
if (!Z.value)
|
|
269
|
+
if (p.value && d.value === l)
|
|
270
|
+
J({
|
|
205
271
|
targetX: 0,
|
|
206
272
|
targetY: 0,
|
|
207
273
|
targetW: e.value.width,
|
|
208
274
|
targetH: e.value.height
|
|
209
|
-
}),
|
|
275
|
+
}), d.value = null, p.value = !1;
|
|
210
276
|
else {
|
|
211
|
-
switch (
|
|
277
|
+
switch (d.value = l, l) {
|
|
212
278
|
case "TL":
|
|
213
|
-
|
|
279
|
+
J({
|
|
214
280
|
targetX: 0,
|
|
215
281
|
targetY: 0,
|
|
216
282
|
targetW: e.value.width / 2 + e.value.left,
|
|
@@ -219,7 +285,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
219
285
|
});
|
|
220
286
|
break;
|
|
221
287
|
case "TR":
|
|
222
|
-
|
|
288
|
+
J({
|
|
223
289
|
targetX: e.value.width / 2 - e.value.left,
|
|
224
290
|
targetY: 0,
|
|
225
291
|
targetW: e.value.width / 2 + e.value.left,
|
|
@@ -228,7 +294,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
228
294
|
});
|
|
229
295
|
break;
|
|
230
296
|
case "BR":
|
|
231
|
-
|
|
297
|
+
J({
|
|
232
298
|
targetX: e.value.width / 2 - e.value.left,
|
|
233
299
|
targetY: e.value.height / 2 - e.value.top,
|
|
234
300
|
targetW: e.value.width / 2 + e.value.left,
|
|
@@ -237,7 +303,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
237
303
|
});
|
|
238
304
|
break;
|
|
239
305
|
case "BL":
|
|
240
|
-
|
|
306
|
+
J({
|
|
241
307
|
targetX: 0,
|
|
242
308
|
targetY: e.value.height / 2 - e.value.top,
|
|
243
309
|
targetW: e.value.width / 2 + e.value.left,
|
|
@@ -249,10 +315,10 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
249
315
|
v.value.startX = 0, v.value.startY = 0, v.value.width = e.value.width, v.value.height = e.value.height;
|
|
250
316
|
break;
|
|
251
317
|
}
|
|
252
|
-
|
|
318
|
+
p.value = !0;
|
|
253
319
|
}
|
|
254
320
|
}
|
|
255
|
-
const
|
|
321
|
+
const ht = g(() => {
|
|
256
322
|
const l = t.value.style.chart.layout.grid.graduations.steps, u = e.value.usableWidth / (l * 2), a = e.value.top, o = [];
|
|
257
323
|
for (let r = 0; r < l; r += 1)
|
|
258
324
|
o.push({
|
|
@@ -263,7 +329,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
263
329
|
opacity: Math.round((r + 1) / l * 20)
|
|
264
330
|
});
|
|
265
331
|
return o;
|
|
266
|
-
}),
|
|
332
|
+
}), q = g(() => {
|
|
267
333
|
let l = t.value.style.chart.layout.grid.xAxis.max, u = t.value.style.chart.layout.grid.xAxis.min, a = t.value.style.chart.layout.grid.yAxis.max, o = t.value.style.chart.layout.grid.yAxis.min;
|
|
268
334
|
return t.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...I.value.flatMap((r) => r.series.map((b) => b.x))), u = Math.min(...I.value.flatMap((r) => r.series.map((b) => b.x)))), t.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...I.value.flatMap((r) => r.series.map((b) => b.y))), o = Math.min(...I.value.flatMap((r) => r.series.map((b) => b.y)))), {
|
|
269
335
|
x: {
|
|
@@ -275,103 +341,105 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
275
341
|
min: o
|
|
276
342
|
}
|
|
277
343
|
};
|
|
278
|
-
}), O = y([]), I = g(() =>
|
|
344
|
+
}), O = y([]), I = g(() => _e.value.map((l, u) => ({
|
|
279
345
|
...l,
|
|
280
|
-
series:
|
|
346
|
+
series: At({
|
|
281
347
|
data: l.series,
|
|
282
348
|
threshold: t.value.downsample.threshold
|
|
283
349
|
}),
|
|
284
350
|
id: `cat_${u}_${z.value}`,
|
|
285
|
-
color:
|
|
286
|
-
}))),
|
|
351
|
+
color: Tt(l.color) || Ye.value[u] || ye[u]
|
|
352
|
+
}))), yt = g(() => I.value.filter((l) => !O.value.includes(l.id))), bt = g(() => I.value.map((l, u) => ({
|
|
287
353
|
...l,
|
|
288
354
|
shape: l.shape || "circle",
|
|
289
355
|
series: l.series.map((a) => ({
|
|
290
356
|
...a,
|
|
291
|
-
x:
|
|
292
|
-
y:
|
|
357
|
+
x: Me(a.x),
|
|
358
|
+
y: Ne(a.y),
|
|
293
359
|
xValue: a.x,
|
|
294
360
|
yValue: a.y,
|
|
295
|
-
quadrantSide:
|
|
361
|
+
quadrantSide: Re({ x: a.x, y: a.y }),
|
|
296
362
|
categoryName: l.name,
|
|
297
363
|
shape: l.shape,
|
|
298
364
|
color: l.color
|
|
299
365
|
}))
|
|
300
|
-
}))),
|
|
366
|
+
}))), S = g(() => (_e.value.forEach((l, u) => {
|
|
301
367
|
l.series.forEach((a, o) => {
|
|
302
|
-
[null, void 0].includes(a.x) &&
|
|
368
|
+
[null, void 0].includes(a.x) && Q({
|
|
303
369
|
componentName: "VueUiQuadrant",
|
|
304
370
|
type: "datasetSerieAttribute",
|
|
305
371
|
property: "x",
|
|
306
372
|
key: "series",
|
|
307
|
-
index: o
|
|
308
|
-
|
|
373
|
+
index: o,
|
|
374
|
+
debug: H.value
|
|
375
|
+
}), [null, void 0].includes(a.y) && Q({
|
|
309
376
|
componentName: "VueUiQuadrant",
|
|
310
377
|
type: "datasetSerieAttribute",
|
|
311
378
|
property: "y",
|
|
312
379
|
key: "series",
|
|
313
|
-
index: o
|
|
380
|
+
index: o,
|
|
381
|
+
debug: H.value
|
|
314
382
|
});
|
|
315
383
|
});
|
|
316
|
-
}),
|
|
384
|
+
}), yt.value.map((l, u) => ({
|
|
317
385
|
...l,
|
|
318
386
|
shape: l.shape || "circle",
|
|
319
|
-
color: l.color ||
|
|
387
|
+
color: l.color || Ye.value[u] || ye[u],
|
|
320
388
|
series: l.series.map((a) => ({
|
|
321
389
|
...a,
|
|
322
|
-
x:
|
|
323
|
-
y:
|
|
390
|
+
x: Me(a.x),
|
|
391
|
+
y: Ne(a.y),
|
|
324
392
|
xValue: a.x,
|
|
325
393
|
yValue: a.y,
|
|
326
|
-
quadrantSide:
|
|
394
|
+
quadrantSide: Re({ x: a.x, y: a.y }),
|
|
327
395
|
categoryName: l.name,
|
|
328
396
|
shape: l.shape,
|
|
329
397
|
color: l.color,
|
|
330
|
-
uid:
|
|
398
|
+
uid: je()
|
|
331
399
|
}))
|
|
332
400
|
}))));
|
|
333
|
-
function
|
|
401
|
+
function Me(l) {
|
|
334
402
|
if (l >= 0) {
|
|
335
|
-
const u = l /
|
|
403
|
+
const u = l / q.value.x.max;
|
|
336
404
|
return e.value.centerX + e.value.usableWidth / 2 * u;
|
|
337
405
|
} else {
|
|
338
|
-
const u = Math.abs(l) / Math.abs(
|
|
406
|
+
const u = Math.abs(l) / Math.abs(q.value.x.min);
|
|
339
407
|
return e.value.centerX - e.value.usableWidth / 2 * u;
|
|
340
408
|
}
|
|
341
409
|
}
|
|
342
|
-
function
|
|
410
|
+
function Ne(l) {
|
|
343
411
|
if (l >= 0) {
|
|
344
|
-
const u = l /
|
|
412
|
+
const u = l / q.value.y.max;
|
|
345
413
|
return e.value.centerY + (1 - e.value.usableHeight / 2 * u);
|
|
346
414
|
} else {
|
|
347
|
-
const u = Math.abs(l) / Math.abs(
|
|
415
|
+
const u = Math.abs(l) / Math.abs(q.value.y.min);
|
|
348
416
|
return e.value.centerY - (1 - e.value.usableHeight / 2 * u);
|
|
349
417
|
}
|
|
350
418
|
}
|
|
351
|
-
const
|
|
352
|
-
const l =
|
|
353
|
-
x:
|
|
354
|
-
y:
|
|
355
|
-
name:
|
|
356
|
-
category:
|
|
357
|
-
quadrantSide:
|
|
358
|
-
sideName: t.value.style.chart.layout.labels.quadrantLabels[
|
|
359
|
-
color:
|
|
360
|
-
shape:
|
|
361
|
-
}))), u = t.value.style.chart.layout.grid.xAxis.name || "x", a = t.value.style.chart.layout.grid.yAxis.name || "y", o = [t.value.translations.category, t.value.translations.item, u, a, t.value.translations.side], r = l.map((
|
|
362
|
-
shape:
|
|
363
|
-
color:
|
|
419
|
+
const K = g(() => {
|
|
420
|
+
const l = S.value.flatMap((f) => f.series.map((A) => ({
|
|
421
|
+
x: A.xValue,
|
|
422
|
+
y: A.yValue,
|
|
423
|
+
name: A.name,
|
|
424
|
+
category: A.categoryName,
|
|
425
|
+
quadrantSide: A.quadrantSide,
|
|
426
|
+
sideName: t.value.style.chart.layout.labels.quadrantLabels[A.quadrantSide].text,
|
|
427
|
+
color: f.color,
|
|
428
|
+
shape: f.shape
|
|
429
|
+
}))), u = t.value.style.chart.layout.grid.xAxis.name || "x", a = t.value.style.chart.layout.grid.yAxis.name || "y", o = [t.value.translations.category, t.value.translations.item, u, a, t.value.translations.side], r = l.map((f) => [f.category, f.name, f.x, f.y, f.sideName || f.quadrantSide]), b = l.map((f) => ({
|
|
430
|
+
shape: f.shape,
|
|
431
|
+
color: f.color
|
|
364
432
|
}));
|
|
365
433
|
return { head: o, body: r, itsShapes: b, tableData: l };
|
|
366
|
-
}),
|
|
367
|
-
const l =
|
|
434
|
+
}), ee = g(() => {
|
|
435
|
+
const l = K.value.head, u = K.value.tableData.map((o) => [
|
|
368
436
|
{
|
|
369
437
|
shape: o.shape,
|
|
370
438
|
color: o.color,
|
|
371
439
|
name: o.category
|
|
372
440
|
},
|
|
373
441
|
o.name,
|
|
374
|
-
|
|
442
|
+
F(
|
|
375
443
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
376
444
|
o.x,
|
|
377
445
|
B({
|
|
@@ -379,7 +447,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
379
447
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
380
448
|
})
|
|
381
449
|
),
|
|
382
|
-
|
|
450
|
+
F(
|
|
383
451
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
384
452
|
o.y,
|
|
385
453
|
B({
|
|
@@ -403,20 +471,20 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
403
471
|
};
|
|
404
472
|
return { head: l, body: u, config: a, colNames: l };
|
|
405
473
|
});
|
|
406
|
-
function
|
|
474
|
+
function ve(l) {
|
|
407
475
|
O.value.includes(l) ? O.value = O.value.filter((a) => a !== l) : O.value.push(l);
|
|
408
|
-
const u =
|
|
409
|
-
|
|
476
|
+
const u = Pe();
|
|
477
|
+
oe("selectLegend", u);
|
|
410
478
|
}
|
|
411
|
-
const
|
|
479
|
+
const Oe = g(() => bt.value.map((l) => ({
|
|
412
480
|
name: l.name,
|
|
413
481
|
shape: l.shape,
|
|
414
482
|
color: l.color,
|
|
415
483
|
id: l.id,
|
|
416
484
|
opacity: O.value.includes(l.id) ? 0.5 : 1,
|
|
417
|
-
segregate: () =>
|
|
485
|
+
segregate: () => ve(l.id),
|
|
418
486
|
isSegregated: O.value.includes(l.id)
|
|
419
|
-
}))),
|
|
487
|
+
}))), ft = g(() => ({
|
|
420
488
|
cy: "quadrant-div-legend",
|
|
421
489
|
backgroundColor: t.value.style.chart.legend.backgroundColor,
|
|
422
490
|
color: t.value.style.chart.legend.color,
|
|
@@ -424,7 +492,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
424
492
|
paddingBottom: 12,
|
|
425
493
|
fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
|
|
426
494
|
}));
|
|
427
|
-
function
|
|
495
|
+
function Re(l) {
|
|
428
496
|
switch (!0) {
|
|
429
497
|
case (l.x >= 0 && l.y >= 0):
|
|
430
498
|
return "tr";
|
|
@@ -438,33 +506,33 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
438
506
|
return "";
|
|
439
507
|
}
|
|
440
508
|
}
|
|
441
|
-
const
|
|
442
|
-
function
|
|
443
|
-
|
|
509
|
+
const te = y(null), le = y(null), de = y(null);
|
|
510
|
+
function Fe(l, u, a) {
|
|
511
|
+
t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: u, seriesIndex: a }), te.value = u.uid, le.value = {
|
|
444
512
|
color: l.color,
|
|
445
513
|
shape: l.shape
|
|
446
|
-
},
|
|
514
|
+
}, de.value = {
|
|
447
515
|
datapoint: u,
|
|
448
516
|
seriesIndex: a,
|
|
449
|
-
series:
|
|
517
|
+
series: S.value,
|
|
450
518
|
config: t.value
|
|
451
|
-
},
|
|
519
|
+
}, se.value = !0;
|
|
452
520
|
const o = t.value.style.chart.tooltip.customFormat;
|
|
453
|
-
if (
|
|
521
|
+
if (Ft(o) && Bt(() => o({
|
|
454
522
|
seriesIndex: a,
|
|
455
523
|
datapoint: u,
|
|
456
|
-
series:
|
|
524
|
+
series: S.value,
|
|
457
525
|
config: t.value
|
|
458
526
|
})))
|
|
459
527
|
re.value = o({
|
|
460
528
|
seriesIndex: a,
|
|
461
529
|
datapoint: u,
|
|
462
|
-
series:
|
|
530
|
+
series: S.value,
|
|
463
531
|
config: t.value
|
|
464
532
|
});
|
|
465
533
|
else {
|
|
466
534
|
let r = "";
|
|
467
|
-
u.quadrantSide && (r += `<div style="color:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].color};font-weight:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].bold ? "bold" : "400"}">${t.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 ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px">${u.name}</div>`, r += `<div>${t.value.style.chart.layout.grid.xAxis.name ? t.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${
|
|
535
|
+
u.quadrantSide && (r += `<div style="color:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].color};font-weight:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].bold ? "bold" : "400"}">${t.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 ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px">${u.name}</div>`, r += `<div>${t.value.style.chart.layout.grid.xAxis.name ? t.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${F(
|
|
468
536
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
469
537
|
u.xValue,
|
|
470
538
|
B({
|
|
@@ -472,7 +540,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
472
540
|
r: t.value.style.chart.tooltip.roundingValue
|
|
473
541
|
}),
|
|
474
542
|
{ datapoint: u, category: l, categoryIndex: a }
|
|
475
|
-
)}</b></div>`, r += `<div>${t.value.style.chart.layout.grid.yAxis.name ? t.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${
|
|
543
|
+
)}</b></div>`, r += `<div>${t.value.style.chart.layout.grid.yAxis.name ? t.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${F(
|
|
476
544
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
477
545
|
u.yValue,
|
|
478
546
|
B({
|
|
@@ -483,8 +551,12 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
483
551
|
)}</b></div>`, re.value = `<div style="text-align:left;font-size:${t.value.style.chart.tooltip.fontSize}px">${r}</div>`;
|
|
484
552
|
}
|
|
485
553
|
}
|
|
486
|
-
function
|
|
487
|
-
|
|
554
|
+
function Be(l, u) {
|
|
555
|
+
se.value = !1, te.value = null, le.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: l, seriesIndex: u });
|
|
556
|
+
}
|
|
557
|
+
function Ve(l, u, a) {
|
|
558
|
+
t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: u, seriesIndex: a });
|
|
559
|
+
const o = {
|
|
488
560
|
category: l.name,
|
|
489
561
|
shape: l.shape,
|
|
490
562
|
itemName: u.name,
|
|
@@ -493,11 +565,11 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
493
565
|
quadrantSide: u.quadrantSide,
|
|
494
566
|
sideName: t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text
|
|
495
567
|
};
|
|
496
|
-
|
|
568
|
+
oe("selectPlot", o);
|
|
497
569
|
}
|
|
498
|
-
function
|
|
570
|
+
function j(l) {
|
|
499
571
|
if (!l) return;
|
|
500
|
-
const u =
|
|
572
|
+
const u = S.value.flatMap((o) => o.series.filter((r) => r.quadrantSide === l).map((r) => ({
|
|
501
573
|
category: r.categoryName,
|
|
502
574
|
itemName: r.name,
|
|
503
575
|
x: r.xValue,
|
|
@@ -507,7 +579,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
507
579
|
sideName: t.value.style.chart.layout.labels.quadrantLabels[l].text,
|
|
508
580
|
items: [...u]
|
|
509
581
|
};
|
|
510
|
-
|
|
582
|
+
oe("selectSide", a);
|
|
511
583
|
}
|
|
512
584
|
const w = g(() => ({
|
|
513
585
|
TL: {
|
|
@@ -615,8 +687,8 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
615
687
|
}
|
|
616
688
|
}
|
|
617
689
|
}));
|
|
618
|
-
function
|
|
619
|
-
return
|
|
690
|
+
function Pe() {
|
|
691
|
+
return S.value.map((l) => ({
|
|
620
692
|
color: l.color,
|
|
621
693
|
name: l.name,
|
|
622
694
|
shape: l.shape,
|
|
@@ -629,32 +701,32 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
629
701
|
}))
|
|
630
702
|
}));
|
|
631
703
|
}
|
|
632
|
-
function
|
|
633
|
-
|
|
634
|
-
const u = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], a =
|
|
635
|
-
l ? l(b) :
|
|
704
|
+
function He(l = null) {
|
|
705
|
+
Lt(() => {
|
|
706
|
+
const u = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], a = K.value.head, o = K.value.body, r = u.concat([a]).concat(o), b = Ot(r);
|
|
707
|
+
l ? l(b) : Rt({ csvContent: b, title: t.value.style.chart.title.text || "vue-ui-quadrant" });
|
|
636
708
|
});
|
|
637
709
|
}
|
|
638
710
|
const E = y(!1);
|
|
639
|
-
function
|
|
640
|
-
E.value = l,
|
|
711
|
+
function Ie(l) {
|
|
712
|
+
E.value = l, fe.value += 1;
|
|
641
713
|
}
|
|
642
|
-
function
|
|
714
|
+
function Ee() {
|
|
643
715
|
$.value.showTable = !$.value.showTable;
|
|
644
716
|
}
|
|
645
|
-
function
|
|
717
|
+
function De() {
|
|
646
718
|
$.value.plotLabels.show = !$.value.plotLabels.show;
|
|
647
719
|
}
|
|
648
|
-
function
|
|
720
|
+
function Ue() {
|
|
649
721
|
$.value.showTooltip = !$.value.showTooltip;
|
|
650
722
|
}
|
|
651
|
-
const
|
|
723
|
+
const ae = y(!1);
|
|
652
724
|
function ce() {
|
|
653
|
-
|
|
725
|
+
ae.value = !ae.value;
|
|
654
726
|
}
|
|
655
|
-
async function
|
|
656
|
-
if (!
|
|
657
|
-
const { width: u, height: a } =
|
|
727
|
+
async function pt({ scale: l = 2 } = {}) {
|
|
728
|
+
if (!Y.value) return;
|
|
729
|
+
const { width: u, height: a } = Y.value.getBoundingClientRect(), o = u / a, { imageUri: r, base64: b } = await Dt({ domElement: Y.value, base64: !0, img: !0, scale: l });
|
|
658
730
|
return {
|
|
659
731
|
imageUri: r,
|
|
660
732
|
base64: b,
|
|
@@ -664,49 +736,49 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
664
736
|
aspectRatio: o
|
|
665
737
|
};
|
|
666
738
|
}
|
|
667
|
-
return
|
|
668
|
-
getData:
|
|
669
|
-
getImage:
|
|
670
|
-
generatePdf:
|
|
671
|
-
generateCsv:
|
|
672
|
-
generateImage:
|
|
673
|
-
toggleTable:
|
|
674
|
-
toggleLabels:
|
|
675
|
-
toggleTooltip:
|
|
739
|
+
return tt({
|
|
740
|
+
getData: Pe,
|
|
741
|
+
getImage: pt,
|
|
742
|
+
generatePdf: Xe,
|
|
743
|
+
generateCsv: He,
|
|
744
|
+
generateImage: We,
|
|
745
|
+
toggleTable: Ee,
|
|
746
|
+
toggleLabels: De,
|
|
747
|
+
toggleTooltip: Ue,
|
|
676
748
|
toggleAnnotator: ce,
|
|
677
|
-
toggleFullscreen:
|
|
749
|
+
toggleFullscreen: Ie
|
|
678
750
|
}), (l, u) => (s(), n("div", {
|
|
679
751
|
class: T(`vue-ui-quadrant ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
680
752
|
ref_key: "quadrantChart",
|
|
681
|
-
ref:
|
|
753
|
+
ref: Y,
|
|
682
754
|
id: `vue-ui-quadrant_${z.value}`,
|
|
683
|
-
style:
|
|
684
|
-
onMouseenter: u[
|
|
685
|
-
onMouseleave: u[
|
|
755
|
+
style: _(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive ? "height: 100%" : ""}`),
|
|
756
|
+
onMouseenter: u[14] || (u[14] = () => i(qe)(!0)),
|
|
757
|
+
onMouseleave: u[15] || (u[15] = () => i(qe)(!1))
|
|
686
758
|
}, [
|
|
687
|
-
t.value.userOptions.buttons.annotator ? (s(), R(i(
|
|
759
|
+
t.value.userOptions.buttons.annotator ? (s(), R(i(st), {
|
|
688
760
|
key: 0,
|
|
689
|
-
svgRef: i(
|
|
761
|
+
svgRef: i(Se),
|
|
690
762
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
691
763
|
color: t.value.style.chart.color,
|
|
692
|
-
active:
|
|
764
|
+
active: ae.value,
|
|
693
765
|
onClose: ce
|
|
694
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
695
|
-
|
|
766
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
767
|
+
dt.value ? (s(), n("div", {
|
|
696
768
|
key: 1,
|
|
697
769
|
ref_key: "noTitle",
|
|
698
|
-
ref:
|
|
770
|
+
ref: xe,
|
|
699
771
|
class: "vue-data-ui-no-title-space",
|
|
700
772
|
style: "height:36px; width: 100%;background:transparent"
|
|
701
|
-
}, null, 512)) :
|
|
773
|
+
}, null, 512)) : c("", !0),
|
|
702
774
|
t.value.style.chart.title.text ? (s(), n("div", {
|
|
703
775
|
key: 2,
|
|
704
776
|
ref_key: "chartTitle",
|
|
705
|
-
ref:
|
|
777
|
+
ref: pe,
|
|
706
778
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
707
779
|
}, [
|
|
708
|
-
(s(), R(
|
|
709
|
-
key: `table_${
|
|
780
|
+
(s(), R(Ut, {
|
|
781
|
+
key: `table_${$e.value}`,
|
|
710
782
|
config: {
|
|
711
783
|
title: {
|
|
712
784
|
cy: "quadrant-title",
|
|
@@ -718,15 +790,15 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
718
790
|
}
|
|
719
791
|
}
|
|
720
792
|
}, null, 8, ["config"]))
|
|
721
|
-
], 512)) :
|
|
722
|
-
t.value.userOptions.show &&
|
|
793
|
+
], 512)) : c("", !0),
|
|
794
|
+
t.value.userOptions.show && be.value && (i(Ce) || i(ne)) ? (s(), R(i(rt), {
|
|
723
795
|
ref_key: "details",
|
|
724
|
-
ref:
|
|
725
|
-
key: `user_options_${
|
|
796
|
+
ref: vt,
|
|
797
|
+
key: `user_options_${fe.value}`,
|
|
726
798
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
727
799
|
color: t.value.style.chart.color,
|
|
728
|
-
isImaging: i(
|
|
729
|
-
isPrinting: i(
|
|
800
|
+
isImaging: i(Ae),
|
|
801
|
+
isPrinting: i(Te),
|
|
730
802
|
uid: z.value,
|
|
731
803
|
hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
|
|
732
804
|
hasPdf: t.value.userOptions.buttons.pdf,
|
|
@@ -738,28 +810,28 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
738
810
|
isFullscreen: E.value,
|
|
739
811
|
isTooltip: $.value.showTooltip,
|
|
740
812
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
741
|
-
chartElement:
|
|
813
|
+
chartElement: Y.value,
|
|
742
814
|
position: t.value.userOptions.position,
|
|
743
815
|
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
744
|
-
isAnnotation:
|
|
816
|
+
isAnnotation: ae.value,
|
|
745
817
|
callbacks: t.value.userOptions.callbacks,
|
|
746
818
|
printScale: t.value.userOptions.print.scale,
|
|
747
|
-
onToggleFullscreen:
|
|
748
|
-
onGeneratePdf: i(
|
|
749
|
-
onGenerateCsv:
|
|
750
|
-
onGenerateImage: i(
|
|
751
|
-
onToggleTable:
|
|
752
|
-
onToggleLabels:
|
|
753
|
-
onToggleTooltip:
|
|
819
|
+
onToggleFullscreen: Ie,
|
|
820
|
+
onGeneratePdf: i(Xe),
|
|
821
|
+
onGenerateCsv: He,
|
|
822
|
+
onGenerateImage: i(We),
|
|
823
|
+
onToggleTable: Ee,
|
|
824
|
+
onToggleLabels: De,
|
|
825
|
+
onToggleTooltip: Ue,
|
|
754
826
|
onToggleAnnotator: ce,
|
|
755
|
-
style:
|
|
756
|
-
visibility: i(
|
|
827
|
+
style: _({
|
|
828
|
+
visibility: i(Ce) ? i(ne) ? "visible" : "hidden" : "visible"
|
|
757
829
|
})
|
|
758
|
-
},
|
|
830
|
+
}, $t({ _: 2 }, [
|
|
759
831
|
l.$slots.menuIcon ? {
|
|
760
832
|
name: "menuIcon",
|
|
761
833
|
fn: m(({ isOpen: a, color: o }) => [
|
|
762
|
-
x(l.$slots, "menuIcon", U(
|
|
834
|
+
x(l.$slots, "menuIcon", U(G({ isOpen: a, color: o })), void 0, !0)
|
|
763
835
|
]),
|
|
764
836
|
key: "0"
|
|
765
837
|
} : void 0,
|
|
@@ -808,29 +880,28 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
808
880
|
l.$slots.optionFullscreen ? {
|
|
809
881
|
name: "optionFullscreen",
|
|
810
882
|
fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
811
|
-
x(l.$slots, "optionFullscreen", U(
|
|
883
|
+
x(l.$slots, "optionFullscreen", U(G({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
812
884
|
]),
|
|
813
885
|
key: "7"
|
|
814
886
|
} : void 0,
|
|
815
887
|
l.$slots.optionAnnotator ? {
|
|
816
888
|
name: "optionAnnotator",
|
|
817
889
|
fn: m(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
818
|
-
x(l.$slots, "optionAnnotator", U(
|
|
890
|
+
x(l.$slots, "optionAnnotator", U(G({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
819
891
|
]),
|
|
820
892
|
key: "8"
|
|
821
893
|
} : void 0
|
|
822
|
-
]), 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"])) :
|
|
823
|
-
|
|
824
|
-
key: 4,
|
|
894
|
+
]), 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"])) : c("", !0),
|
|
895
|
+
(s(), n("svg", {
|
|
825
896
|
ref_key: "svgRef",
|
|
826
|
-
ref:
|
|
827
|
-
xmlns: i(
|
|
897
|
+
ref: Se,
|
|
898
|
+
xmlns: i(Xt),
|
|
828
899
|
class: T({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
829
900
|
viewBox: `${v.value.startX} ${v.value.startY} ${v.value.width} ${v.value.height}`,
|
|
830
|
-
style:
|
|
901
|
+
style: _(`max-width:100%;overflow:hidden;background:transparent;color:${t.value.style.chart.color}`),
|
|
831
902
|
id: `svg_${z.value}`
|
|
832
903
|
}, [
|
|
833
|
-
|
|
904
|
+
he(i(nt)),
|
|
834
905
|
l.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
835
906
|
key: 0,
|
|
836
907
|
x: v.value.startX,
|
|
@@ -842,9 +913,9 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
842
913
|
}
|
|
843
914
|
}, [
|
|
844
915
|
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
845
|
-
], 8,
|
|
846
|
-
|
|
847
|
-
(s(!0), n(
|
|
916
|
+
], 8, el)) : c("", !0),
|
|
917
|
+
h("defs", null, [
|
|
918
|
+
(s(!0), n(C, null, X(S.value, (a, o) => (s(), n("radialGradient", {
|
|
848
919
|
cx: "50%",
|
|
849
920
|
cy: "50%",
|
|
850
921
|
r: "50%",
|
|
@@ -852,19 +923,19 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
852
923
|
fy: "50%",
|
|
853
924
|
id: `quadrant_gradient_${z.value}_${o}`
|
|
854
925
|
}, [
|
|
855
|
-
|
|
926
|
+
h("stop", {
|
|
856
927
|
offset: "0%",
|
|
857
|
-
"stop-color": i(
|
|
858
|
-
}, null, 8,
|
|
859
|
-
|
|
928
|
+
"stop-color": i(ue)(i(Wt)(a.color, 0.05), t.value.style.chart.layout.areas.opacity)
|
|
929
|
+
}, null, 8, ll),
|
|
930
|
+
h("stop", {
|
|
860
931
|
offset: "100%",
|
|
861
|
-
"stop-color": i(
|
|
862
|
-
}, null, 8,
|
|
863
|
-
], 8,
|
|
932
|
+
"stop-color": i(ue)(a.color, t.value.style.chart.layout.areas.opacity)
|
|
933
|
+
}, null, 8, al)
|
|
934
|
+
], 8, tl))), 256))
|
|
864
935
|
]),
|
|
865
|
-
t.value.style.chart.layout.grid.graduations.show ? (s(), n("g",
|
|
866
|
-
(s(!0), n(
|
|
867
|
-
fill: t.value.style.chart.layout.grid.graduations.fill ? i(
|
|
936
|
+
t.value.style.chart.layout.grid.graduations.show ? (s(), n("g", ul, [
|
|
937
|
+
(s(!0), n(C, null, X(ht.value, (a) => (s(), n("rect", {
|
|
938
|
+
fill: t.value.style.chart.layout.grid.graduations.fill ? i(ue)(t.value.style.chart.layout.grid.graduations.color, a.opacity) : "none",
|
|
868
939
|
x: a.x,
|
|
869
940
|
y: a.y,
|
|
870
941
|
height: a.height <= 0 ? 1e-3 : a.height,
|
|
@@ -872,47 +943,47 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
872
943
|
"stroke-width": t.value.style.chart.layout.grid.graduations.strokeWidth,
|
|
873
944
|
stroke: t.value.style.chart.layout.grid.graduations.stroke,
|
|
874
945
|
rx: t.value.style.chart.layout.grid.graduations.roundingForce
|
|
875
|
-
}, null, 8,
|
|
876
|
-
])) :
|
|
877
|
-
|
|
946
|
+
}, null, 8, ol))), 256))
|
|
947
|
+
])) : c("", !0),
|
|
948
|
+
h("line", {
|
|
878
949
|
x1: e.value.left,
|
|
879
950
|
y1: e.value.centerY,
|
|
880
951
|
x2: e.value.right,
|
|
881
952
|
y2: e.value.centerY,
|
|
882
953
|
stroke: t.value.style.chart.layout.grid.stroke,
|
|
883
954
|
"stroke-width": t.value.style.chart.layout.grid.strokeWidth
|
|
884
|
-
}, null, 8,
|
|
885
|
-
|
|
955
|
+
}, null, 8, sl),
|
|
956
|
+
h("line", {
|
|
886
957
|
x1: e.value.centerX,
|
|
887
958
|
y1: e.value.top,
|
|
888
959
|
x2: e.value.centerX,
|
|
889
960
|
y2: e.value.bottom,
|
|
890
961
|
stroke: t.value.style.chart.layout.grid.stroke,
|
|
891
962
|
"stroke-width": t.value.style.chart.layout.grid.strokeWidth
|
|
892
|
-
}, null, 8,
|
|
893
|
-
t.value.style.chart.layout.grid.showArrows ? (s(), n("g",
|
|
894
|
-
|
|
963
|
+
}, null, 8, rl),
|
|
964
|
+
t.value.style.chart.layout.grid.showArrows ? (s(), n("g", nl, [
|
|
965
|
+
h("polygon", {
|
|
895
966
|
points: `${e.value.right - 8},${e.value.centerY - 6} ${e.value.right},${e.value.centerY} ${e.value.right - 8},${e.value.centerY + 6}`,
|
|
896
967
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
897
968
|
stroke: "none"
|
|
898
|
-
}, null, 8,
|
|
899
|
-
|
|
969
|
+
}, null, 8, il),
|
|
970
|
+
h("polygon", {
|
|
900
971
|
points: `${e.value.left + 8},${e.value.centerY - 6} ${e.value.left},${e.value.centerY} ${e.value.left + 8},${e.value.centerY + 6}`,
|
|
901
972
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
902
973
|
stroke: "none"
|
|
903
|
-
}, null, 8,
|
|
904
|
-
|
|
974
|
+
}, null, 8, vl),
|
|
975
|
+
h("polygon", {
|
|
905
976
|
points: `${e.value.centerX - 6},${e.value.top + 8} ${e.value.centerX},${e.value.top} ${e.value.centerX + 6},${e.value.top + 8}`,
|
|
906
977
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
907
978
|
stroke: "none"
|
|
908
|
-
}, null, 8,
|
|
909
|
-
|
|
979
|
+
}, null, 8, dl),
|
|
980
|
+
h("polygon", {
|
|
910
981
|
points: `${e.value.centerX - 6},${e.value.bottom - 8} ${e.value.centerX},${e.value.bottom} ${e.value.centerX + 6},${e.value.bottom - 8}`,
|
|
911
982
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
912
983
|
stroke: "none"
|
|
913
|
-
}, null, 8,
|
|
914
|
-
])) :
|
|
915
|
-
t.value.style.chart.layout.labels.quadrantLabels.show && !
|
|
984
|
+
}, null, 8, cl)
|
|
985
|
+
])) : c("", !0),
|
|
986
|
+
t.value.style.chart.layout.labels.quadrantLabels.show && !p.value ? (s(), n("g", hl, [
|
|
916
987
|
t.value.style.chart.layout.labels.quadrantLabels.tl.text ? (s(), n("text", {
|
|
917
988
|
key: 0,
|
|
918
989
|
x: 0,
|
|
@@ -920,9 +991,9 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
920
991
|
"text-anchor": "start",
|
|
921
992
|
fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
922
993
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
923
|
-
style:
|
|
924
|
-
onClick: u[0] || (u[0] = (a) =>
|
|
925
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.tl.text), 13,
|
|
994
|
+
style: _(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
|
|
995
|
+
onClick: u[0] || (u[0] = (a) => j("tl"))
|
|
996
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, yl)) : c("", !0),
|
|
926
997
|
t.value.style.chart.layout.labels.quadrantLabels.tr.text ? (s(), n("text", {
|
|
927
998
|
key: 1,
|
|
928
999
|
x: e.value.width,
|
|
@@ -930,9 +1001,9 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
930
1001
|
"text-anchor": "end",
|
|
931
1002
|
fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
932
1003
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
933
|
-
style:
|
|
934
|
-
onClick: u[1] || (u[1] = (a) =>
|
|
935
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.tr.text), 13,
|
|
1004
|
+
style: _(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
|
|
1005
|
+
onClick: u[1] || (u[1] = (a) => j("tr"))
|
|
1006
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, bl)) : c("", !0),
|
|
936
1007
|
t.value.style.chart.layout.labels.quadrantLabels.br.text ? (s(), n("text", {
|
|
937
1008
|
key: 2,
|
|
938
1009
|
x: e.value.width,
|
|
@@ -940,9 +1011,9 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
940
1011
|
"text-anchor": "end",
|
|
941
1012
|
fill: t.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
942
1013
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
943
|
-
style:
|
|
944
|
-
onClick: u[2] || (u[2] = (a) =>
|
|
945
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.br.text), 13,
|
|
1014
|
+
style: _(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
|
|
1015
|
+
onClick: u[2] || (u[2] = (a) => j("br"))
|
|
1016
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.br.text), 13, fl)) : c("", !0),
|
|
946
1017
|
t.value.style.chart.layout.labels.quadrantLabels.bl.text ? (s(), n("text", {
|
|
947
1018
|
key: 3,
|
|
948
1019
|
x: 0,
|
|
@@ -950,343 +1021,322 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
950
1021
|
"text-anchor": "start",
|
|
951
1022
|
fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
952
1023
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
953
|
-
style:
|
|
954
|
-
onClick: u[3] || (u[3] = (a) =>
|
|
955
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.bl.text), 13,
|
|
956
|
-
])) :
|
|
957
|
-
t.value.style.chart.layout.labels.axisLabels.show ? (s(), n("g",
|
|
958
|
-
|
|
1024
|
+
style: _(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
|
|
1025
|
+
onClick: u[3] || (u[3] = (a) => j("bl"))
|
|
1026
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, pl)) : c("", !0)
|
|
1027
|
+
])) : c("", !0),
|
|
1028
|
+
t.value.style.chart.layout.labels.axisLabels.show ? (s(), n("g", gl, [
|
|
1029
|
+
h("text", {
|
|
959
1030
|
x: e.value.centerX,
|
|
960
1031
|
y: e.value.top - e.value.padding / 6,
|
|
961
1032
|
"text-anchor": "middle",
|
|
962
1033
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
963
1034
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
964
|
-
}, L(i(
|
|
1035
|
+
}, L(i(F)(
|
|
965
1036
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
966
|
-
|
|
1037
|
+
q.value.y.max,
|
|
967
1038
|
i(B)({
|
|
968
|
-
v:
|
|
1039
|
+
v: q.value.y.max,
|
|
969
1040
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
970
1041
|
})
|
|
971
|
-
)), 9,
|
|
972
|
-
|
|
1042
|
+
)), 9, ml),
|
|
1043
|
+
h("text", {
|
|
973
1044
|
x: e.value.centerX,
|
|
974
1045
|
y: e.value.top - e.value.padding / 2,
|
|
975
1046
|
"text-anchor": "middle",
|
|
976
1047
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
977
1048
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
978
|
-
}, L(t.value.style.chart.layout.grid.yAxis.name), 9,
|
|
979
|
-
|
|
1049
|
+
}, L(t.value.style.chart.layout.grid.yAxis.name), 9, xl),
|
|
1050
|
+
h("text", {
|
|
980
1051
|
x: e.value.centerX,
|
|
981
1052
|
y: e.value.bottom + e.value.padding * 0.35,
|
|
982
1053
|
"text-anchor": "middle",
|
|
983
1054
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
984
1055
|
fill: t.value.style.chart.layout.labels.axisLabels.color.negative
|
|
985
|
-
}, L(i(
|
|
1056
|
+
}, L(i(F)(
|
|
986
1057
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
987
|
-
|
|
1058
|
+
q.value.y.min,
|
|
988
1059
|
i(B)({
|
|
989
|
-
v:
|
|
1060
|
+
v: q.value.y.min,
|
|
990
1061
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
991
1062
|
})
|
|
992
|
-
)), 9,
|
|
993
|
-
|
|
1063
|
+
)), 9, $l),
|
|
1064
|
+
h("text", {
|
|
994
1065
|
id: `xLabelMin_${z.value}`,
|
|
995
1066
|
"text-anchor": "middle",
|
|
996
1067
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
997
1068
|
transform: `translate(${e.value.padding - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(-90)`,
|
|
998
1069
|
fill: t.value.style.chart.layout.labels.axisLabels.color.negative
|
|
999
|
-
}, L(i(
|
|
1070
|
+
}, L(i(F)(
|
|
1000
1071
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
1001
|
-
|
|
1072
|
+
q.value.x.min,
|
|
1002
1073
|
i(B)({
|
|
1003
|
-
v:
|
|
1074
|
+
v: q.value.x.min,
|
|
1004
1075
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
1005
1076
|
})
|
|
1006
|
-
)), 9,
|
|
1007
|
-
|
|
1077
|
+
)), 9, kl),
|
|
1078
|
+
h("text", {
|
|
1008
1079
|
id: `xLabelMax_${z.value}`,
|
|
1009
1080
|
"text-anchor": "middle",
|
|
1010
1081
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1011
1082
|
transform: `translate(${e.value.width - e.value.padding + t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
|
|
1012
1083
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1013
|
-
}, L(i(
|
|
1084
|
+
}, L(i(F)(
|
|
1014
1085
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
1015
|
-
|
|
1086
|
+
q.value.x.max,
|
|
1016
1087
|
i(B)({
|
|
1017
|
-
v:
|
|
1088
|
+
v: q.value.x.max,
|
|
1018
1089
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
1019
1090
|
})
|
|
1020
|
-
)), 9,
|
|
1021
|
-
|
|
1091
|
+
)), 9, Ll),
|
|
1092
|
+
h("text", {
|
|
1022
1093
|
id: `xLabelMaxName_${z.value}`,
|
|
1023
1094
|
"text-anchor": "middle",
|
|
1024
1095
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1025
1096
|
transform: `translate(${e.value.width - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
|
|
1026
1097
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1027
|
-
}, L(t.value.style.chart.layout.grid.xAxis.name), 9,
|
|
1028
|
-
])) :
|
|
1029
|
-
t.value.style.chart.layout.areas.show ? (s(), n("g",
|
|
1030
|
-
(s(!0), n(
|
|
1098
|
+
}, L(t.value.style.chart.layout.grid.xAxis.name), 9, wl)
|
|
1099
|
+
])) : c("", !0),
|
|
1100
|
+
t.value.style.chart.layout.areas.show ? (s(), n("g", _l, [
|
|
1101
|
+
(s(!0), n(C, null, X(S.value, (a, o) => (s(), n("g", null, [
|
|
1031
1102
|
a.series.length > 2 ? (s(), n("polygon", {
|
|
1032
1103
|
key: 0,
|
|
1033
1104
|
"data-cy-quadrant-area": "",
|
|
1034
|
-
fill: t.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${z.value}_${o})` : i(
|
|
1035
|
-
points: i(
|
|
1036
|
-
}, null, 8,
|
|
1105
|
+
fill: t.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${z.value}_${o})` : i(ue)(a.color, t.value.style.chart.layout.areas.opacity),
|
|
1106
|
+
points: i(Yt)(a)
|
|
1107
|
+
}, null, 8, ql)) : c("", !0)
|
|
1037
1108
|
]))), 256))
|
|
1038
|
-
])) :
|
|
1039
|
-
|
|
1040
|
-
|
|
1109
|
+
])) : c("", !0),
|
|
1110
|
+
h("g", null, [
|
|
1111
|
+
h("rect", {
|
|
1041
1112
|
onClick: u[4] || (u[4] = (a) => N("TL")),
|
|
1042
1113
|
x: e.value.left,
|
|
1043
1114
|
y: e.value.top,
|
|
1044
1115
|
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
1045
1116
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1046
1117
|
fill: "transparent",
|
|
1047
|
-
class: T({ "vue-data-ui-zoom-plus": !
|
|
1048
|
-
}, null, 10,
|
|
1049
|
-
|
|
1118
|
+
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1119
|
+
}, null, 10, Cl),
|
|
1120
|
+
h("rect", {
|
|
1050
1121
|
onClick: u[5] || (u[5] = (a) => N("TR")),
|
|
1051
1122
|
x: e.value.centerX,
|
|
1052
1123
|
y: e.value.top,
|
|
1053
1124
|
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
1054
1125
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1055
1126
|
fill: "transparent",
|
|
1056
|
-
class: T({ "vue-data-ui-zoom-plus": !
|
|
1057
|
-
}, null, 10,
|
|
1058
|
-
|
|
1127
|
+
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1128
|
+
}, null, 10, Sl),
|
|
1129
|
+
h("rect", {
|
|
1059
1130
|
onClick: u[6] || (u[6] = (a) => N("BR")),
|
|
1060
1131
|
x: e.value.centerX,
|
|
1061
1132
|
y: e.value.centerY,
|
|
1062
1133
|
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
1063
1134
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1064
1135
|
fill: "transparent",
|
|
1065
|
-
class: T({ "vue-data-ui-zoom-plus": !
|
|
1066
|
-
}, null, 10,
|
|
1067
|
-
|
|
1136
|
+
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1137
|
+
}, null, 10, zl),
|
|
1138
|
+
h("rect", {
|
|
1068
1139
|
onClick: u[7] || (u[7] = (a) => N("BL")),
|
|
1069
1140
|
x: e.value.left,
|
|
1070
1141
|
y: e.value.centerY,
|
|
1071
1142
|
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
1072
1143
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1073
1144
|
fill: "transparent",
|
|
1074
|
-
class: T({ "vue-data-ui-zoom-plus": !
|
|
1075
|
-
}, null, 10,
|
|
1145
|
+
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1146
|
+
}, null, 10, Tl)
|
|
1076
1147
|
]),
|
|
1077
|
-
t.value.style.chart.layout.labels.plotLabels.showAsTag ? (s(), n(
|
|
1078
|
-
$.value.plotLabels.show ? (s(), n("g",
|
|
1079
|
-
(s(!0), n(
|
|
1080
|
-
(s(!0), n(
|
|
1148
|
+
t.value.style.chart.layout.labels.plotLabels.showAsTag ? (s(), n(C, { key: 7 }, [
|
|
1149
|
+
$.value.plotLabels.show ? (s(), n("g", Yl, [
|
|
1150
|
+
(s(!0), n(C, null, X(S.value, (a, o) => (s(), n(C, null, [
|
|
1151
|
+
(s(!0), n(C, null, X(a.series, (r) => (s(), n("foreignObject", {
|
|
1081
1152
|
style: { overflow: "visible" },
|
|
1082
1153
|
height: "10",
|
|
1083
1154
|
width: "100",
|
|
1084
1155
|
x: r.x - 50,
|
|
1085
1156
|
y: r.y - t.value.style.chart.layout.labels.plotLabels.fontSize,
|
|
1086
|
-
onMouseover: (b) =>
|
|
1087
|
-
onMouseleave:
|
|
1088
|
-
|
|
1089
|
-
}),
|
|
1090
|
-
onClick: (b) => Oe(a, r)
|
|
1157
|
+
onMouseover: (b) => Fe(a, r, o),
|
|
1158
|
+
onMouseleave: (b) => Be(r, o),
|
|
1159
|
+
onClick: (b) => Ve(a, r, o)
|
|
1091
1160
|
}, [
|
|
1092
|
-
|
|
1093
|
-
style:
|
|
1161
|
+
h("div", {
|
|
1162
|
+
style: _(`color:${i(Nt)(a.color)};margin: 0 auto; font-size:${t.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${a.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`)
|
|
1094
1163
|
}, L(r.name), 5)
|
|
1095
|
-
], 40,
|
|
1164
|
+
], 40, Ml))), 256))
|
|
1096
1165
|
], 64))), 256))
|
|
1097
|
-
])) :
|
|
1098
|
-
], 64)) : (s(), n(
|
|
1099
|
-
(s(!0), n(
|
|
1100
|
-
(s(!0), n(
|
|
1166
|
+
])) : c("", !0)
|
|
1167
|
+
], 64)) : (s(), n(C, { key: 6 }, [
|
|
1168
|
+
(s(!0), n(C, null, X(S.value, (a, o) => (s(), n("g", null, [
|
|
1169
|
+
(s(!0), n(C, null, X(a.series, (r) => (s(), R(Ke, {
|
|
1101
1170
|
color: a.color,
|
|
1102
|
-
isSelected:
|
|
1171
|
+
isSelected: te.value && r.uid === te.value,
|
|
1103
1172
|
plot: r,
|
|
1104
|
-
radius: t.value.style.chart.layout.plots.radius / (
|
|
1173
|
+
radius: t.value.style.chart.layout.plots.radius / (p.value ? 1.5 : 1),
|
|
1105
1174
|
shape: a.shape,
|
|
1106
1175
|
stroke: t.value.style.chart.layout.plots.outline ? t.value.style.chart.layout.plots.outlineColor : "none",
|
|
1107
1176
|
strokeWidth: t.value.style.chart.layout.plots.outlineWidth,
|
|
1108
|
-
onMouseenter: (b) =>
|
|
1109
|
-
onMouseleave:
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
onClick: (b) => Oe(a, r)
|
|
1113
|
-
}, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseenter", "onClick"]))), 256))
|
|
1177
|
+
onMouseenter: (b) => Fe(a, r, o),
|
|
1178
|
+
onMouseleave: (b) => Be(r, o),
|
|
1179
|
+
onClick: (b) => Ve(a, r, o)
|
|
1180
|
+
}, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseenter", "onMouseleave", "onClick"]))), 256))
|
|
1114
1181
|
]))), 256)),
|
|
1115
|
-
$.value.plotLabels.show ? (s(), n("g",
|
|
1116
|
-
(s(!0), n(
|
|
1117
|
-
(s(!0), n(
|
|
1182
|
+
$.value.plotLabels.show ? (s(), n("g", Al, [
|
|
1183
|
+
(s(!0), n(C, null, X(S.value, (a) => (s(), n("g", null, [
|
|
1184
|
+
(s(!0), n(C, null, X(a.series, (o) => (s(), n("g", null, [
|
|
1118
1185
|
String(o.name).includes(`
|
|
1119
1186
|
`) ? (s(), n("text", {
|
|
1120
1187
|
key: 1,
|
|
1121
1188
|
x: o.x,
|
|
1122
1189
|
y: o.y + t.value.style.chart.layout.labels.plotLabels.offsetY + t.value.style.chart.layout.plots.radius,
|
|
1123
1190
|
"text-anchor": "middle",
|
|
1124
|
-
"font-size": t.value.style.chart.layout.labels.plotLabels.fontSize / (
|
|
1191
|
+
"font-size": t.value.style.chart.layout.labels.plotLabels.fontSize / (p.value ? 1.5 : 1),
|
|
1125
1192
|
fill: t.value.style.chart.layout.labels.plotLabels.color,
|
|
1126
|
-
innerHTML: i(
|
|
1193
|
+
innerHTML: i(Mt)({
|
|
1127
1194
|
content: String(o.name),
|
|
1128
|
-
fontSize: t.value.style.chart.layout.labels.plotLabels.fontSize / (
|
|
1195
|
+
fontSize: t.value.style.chart.layout.labels.plotLabels.fontSize / (p.value ? 1.5 : 1),
|
|
1129
1196
|
fill: t.value.style.chart.layout.labels.plotLabels.color,
|
|
1130
1197
|
x: o.x,
|
|
1131
1198
|
y: o.y + t.value.style.chart.layout.labels.plotLabels.offsetY + t.value.style.chart.layout.plots.radius
|
|
1132
1199
|
})
|
|
1133
|
-
}, null, 8,
|
|
1200
|
+
}, null, 8, Wl)) : (s(), n("text", {
|
|
1134
1201
|
key: 0,
|
|
1135
1202
|
x: o.x,
|
|
1136
1203
|
y: o.y + t.value.style.chart.layout.labels.plotLabels.offsetY + t.value.style.chart.layout.plots.radius,
|
|
1137
1204
|
"text-anchor": "middle",
|
|
1138
|
-
"font-size": t.value.style.chart.layout.labels.plotLabels.fontSize / (
|
|
1205
|
+
"font-size": t.value.style.chart.layout.labels.plotLabels.fontSize / (p.value ? 1.5 : 1),
|
|
1139
1206
|
fill: t.value.style.chart.layout.labels.plotLabels.color
|
|
1140
|
-
}, L(o.name), 9,
|
|
1207
|
+
}, L(o.name), 9, Xl))
|
|
1141
1208
|
]))), 256))
|
|
1142
1209
|
]))), 256))
|
|
1143
|
-
])) :
|
|
1210
|
+
])) : c("", !0)
|
|
1144
1211
|
], 64)),
|
|
1145
|
-
|
|
1146
|
-
|
|
1212
|
+
p.value ? (s(), n("g", Nl, [
|
|
1213
|
+
d.value === "TL" ? (s(), n("polygon", {
|
|
1147
1214
|
key: 0,
|
|
1148
1215
|
points: `${e.value.left - 1},${e.value.centerY} ${e.value.centerX},${e.value.centerY} ${e.value.centerX},${e.value.top - 1} ${e.value.right},${e.value.top - 1} ${e.value.right},${e.value.bottom} ${e.value.left - 1},${e.value.bottom} ${e.value.left - 1},${e.value.centerY}`,
|
|
1149
1216
|
fill: t.value.style.chart.backgroundColor,
|
|
1150
1217
|
style: { opacity: "1" }
|
|
1151
|
-
}, null, 8,
|
|
1152
|
-
|
|
1218
|
+
}, null, 8, Ol)) : c("", !0),
|
|
1219
|
+
d.value === "TR" ? (s(), n("polygon", {
|
|
1153
1220
|
key: 1,
|
|
1154
1221
|
points: `${e.value.left},${e.value.top - 1} ${e.value.centerX},${e.value.top - 1} ${e.value.centerX},${e.value.centerY} ${e.value.right + 1},${e.value.centerY} ${e.value.right + 1},${e.value.bottom} ${e.value.left},${e.value.bottom} ${e.value.left},${e.value.top - 1}`,
|
|
1155
1222
|
fill: t.value.style.chart.backgroundColor,
|
|
1156
1223
|
style: { opacity: "1" }
|
|
1157
|
-
}, null, 8,
|
|
1158
|
-
|
|
1224
|
+
}, null, 8, Rl)) : c("", !0),
|
|
1225
|
+
d.value === "BR" ? (s(), n("polygon", {
|
|
1159
1226
|
key: 2,
|
|
1160
1227
|
points: `${e.value.left},${e.value.top} ${e.value.right + 1},${e.value.top} ${e.value.right + 1},${e.value.centerY} ${e.value.centerX},${e.value.centerY} ${e.value.centerX},${e.value.bottom + 1} ${e.value.left},${e.value.bottom + 1} ${e.value.left},${e.value.top}`,
|
|
1161
1228
|
fill: t.value.style.chart.backgroundColor,
|
|
1162
1229
|
style: { opacity: "1" }
|
|
1163
|
-
}, null, 8,
|
|
1164
|
-
|
|
1230
|
+
}, null, 8, Fl)) : c("", !0),
|
|
1231
|
+
d.value === "BL" ? (s(), n("polygon", {
|
|
1165
1232
|
key: 3,
|
|
1166
1233
|
points: `${e.value.left - 1},${e.value.top} ${e.value.right},${e.value.top} ${e.value.right},${e.value.bottom + 1} ${e.value.centerX},${e.value.bottom + 1} ${e.value.centerX},${e.value.centerY} ${e.value.left - 1},${e.value.centerY} ${e.value.left - 1},${e.value.top}`,
|
|
1167
1234
|
fill: t.value.style.chart.backgroundColor,
|
|
1168
1235
|
style: { opacity: "1" }
|
|
1169
|
-
}, null, 8,
|
|
1170
|
-
])) :
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
x:
|
|
1174
|
-
y:
|
|
1175
|
-
"font-size":
|
|
1176
|
-
fill:
|
|
1236
|
+
}, null, 8, Bl)) : c("", !0)
|
|
1237
|
+
])) : c("", !0),
|
|
1238
|
+
d.value && !Z.value ? (s(), n("g", Vl, [
|
|
1239
|
+
h("text", {
|
|
1240
|
+
x: V.value.x,
|
|
1241
|
+
y: V.value.y - V.value.fontSize / 1.5,
|
|
1242
|
+
"font-size": V.value.fontSize / 1.5,
|
|
1243
|
+
fill: V.value.fill,
|
|
1177
1244
|
"text-anchor": "middle",
|
|
1178
|
-
"font-weight":
|
|
1179
|
-
}, L(
|
|
1180
|
-
])) :
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
x: w.value[
|
|
1184
|
-
y: w.value[
|
|
1245
|
+
"font-weight": V.value.bold ? "bold" : "normal"
|
|
1246
|
+
}, L(V.value.text), 9, Pl)
|
|
1247
|
+
])) : c("", !0),
|
|
1248
|
+
p.value && d.value ? (s(), n("g", Hl, [
|
|
1249
|
+
h("rect", {
|
|
1250
|
+
x: w.value[d.value].tl.x,
|
|
1251
|
+
y: w.value[d.value].tl.y,
|
|
1185
1252
|
height: "20",
|
|
1186
1253
|
width: "20",
|
|
1187
|
-
fill: w.value[
|
|
1188
|
-
style:
|
|
1189
|
-
onClick: u[
|
|
1190
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1191
|
-
}, null, 14,
|
|
1192
|
-
|
|
1193
|
-
x: w.value[
|
|
1194
|
-
y: w.value[
|
|
1254
|
+
fill: w.value[d.value].tl.fill,
|
|
1255
|
+
style: _(`cursor: pointer; opacity: ${d.value === "TL" ? 1 : 0.2}`),
|
|
1256
|
+
onClick: u[8] || (u[8] = (a) => N("TL")),
|
|
1257
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "TL" })
|
|
1258
|
+
}, null, 14, Il),
|
|
1259
|
+
h("rect", {
|
|
1260
|
+
x: w.value[d.value].tr.x,
|
|
1261
|
+
y: w.value[d.value].tr.y,
|
|
1195
1262
|
height: "20",
|
|
1196
1263
|
width: "20",
|
|
1197
|
-
fill: w.value[
|
|
1198
|
-
style:
|
|
1199
|
-
onClick: u[
|
|
1200
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1201
|
-
}, null, 14,
|
|
1202
|
-
|
|
1203
|
-
x: w.value[
|
|
1204
|
-
y: w.value[
|
|
1264
|
+
fill: w.value[d.value].tr.fill,
|
|
1265
|
+
style: _(`cursor: pointer; opacity: ${d.value === "TR" ? 1 : 0.2}`),
|
|
1266
|
+
onClick: u[9] || (u[9] = (a) => N("TR")),
|
|
1267
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "TR" })
|
|
1268
|
+
}, null, 14, El),
|
|
1269
|
+
h("rect", {
|
|
1270
|
+
x: w.value[d.value].br.x,
|
|
1271
|
+
y: w.value[d.value].br.y,
|
|
1205
1272
|
height: "20",
|
|
1206
1273
|
width: "20",
|
|
1207
|
-
fill: w.value[
|
|
1208
|
-
style:
|
|
1209
|
-
onClick: u[
|
|
1210
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1211
|
-
}, null, 14,
|
|
1212
|
-
|
|
1213
|
-
x: w.value[
|
|
1214
|
-
y: w.value[
|
|
1274
|
+
fill: w.value[d.value].br.fill,
|
|
1275
|
+
style: _(`cursor: pointer; opacity: ${d.value === "BR" ? 1 : 0.2}`),
|
|
1276
|
+
onClick: u[10] || (u[10] = (a) => N("BR")),
|
|
1277
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "BR" })
|
|
1278
|
+
}, null, 14, Dl),
|
|
1279
|
+
h("rect", {
|
|
1280
|
+
x: w.value[d.value].bl.x,
|
|
1281
|
+
y: w.value[d.value].bl.y,
|
|
1215
1282
|
height: "20",
|
|
1216
1283
|
width: "20",
|
|
1217
|
-
fill: w.value[
|
|
1218
|
-
style:
|
|
1219
|
-
onClick: u[
|
|
1220
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1221
|
-
}, null, 14,
|
|
1222
|
-
|
|
1284
|
+
fill: w.value[d.value].bl.fill,
|
|
1285
|
+
style: _(`cursor: pointer; opacity: ${d.value === "BL" ? 1 : 0.2}`),
|
|
1286
|
+
onClick: u[11] || (u[11] = (a) => N("BL")),
|
|
1287
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "BL" })
|
|
1288
|
+
}, null, 14, Ul),
|
|
1289
|
+
h("path", {
|
|
1223
1290
|
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1224
1291
|
stroke: t.value.style.chart.backgroundColor,
|
|
1225
1292
|
"stroke-width": 1,
|
|
1226
|
-
d: w.value[
|
|
1227
|
-
}, null, 8,
|
|
1228
|
-
|
|
1293
|
+
d: w.value[d.value].crosshairs.horizontal
|
|
1294
|
+
}, null, 8, Gl),
|
|
1295
|
+
h("path", {
|
|
1229
1296
|
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1230
1297
|
stroke: t.value.style.chart.backgroundColor,
|
|
1231
1298
|
"stroke-width": 1,
|
|
1232
|
-
d: w.value[
|
|
1233
|
-
}, null, 8,
|
|
1234
|
-
])) :
|
|
1299
|
+
d: w.value[d.value].crosshairs.vertical
|
|
1300
|
+
}, null, 8, Ql)
|
|
1301
|
+
])) : c("", !0),
|
|
1235
1302
|
x(l.$slots, "svg", { svg: e.value }, void 0, !0)
|
|
1236
|
-
], 14,
|
|
1237
|
-
l.$slots.watermark ? (s(), n("div",
|
|
1238
|
-
x(l.$slots, "watermark", U(
|
|
1239
|
-
])) :
|
|
1240
|
-
|
|
1241
|
-
key: 6,
|
|
1242
|
-
config: {
|
|
1243
|
-
type: "quadrant",
|
|
1244
|
-
style: {
|
|
1245
|
-
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1246
|
-
quadrant: {
|
|
1247
|
-
grid: {
|
|
1248
|
-
color: t.value.style.chart.layout.grid.stroke
|
|
1249
|
-
},
|
|
1250
|
-
plots: {
|
|
1251
|
-
color: t.value.style.chart.layout.grid.stroke,
|
|
1252
|
-
radius: 1
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
}, null, 8, ["config"])),
|
|
1258
|
-
d("div", {
|
|
1303
|
+
], 14, Kt)),
|
|
1304
|
+
l.$slots.watermark ? (s(), n("div", Jl, [
|
|
1305
|
+
x(l.$slots, "watermark", U(G({ isPrinting: i(Te) || i(Ae) })), void 0, !0)
|
|
1306
|
+
])) : c("", !0),
|
|
1307
|
+
h("div", {
|
|
1259
1308
|
ref_key: "chartLegend",
|
|
1260
|
-
ref:
|
|
1309
|
+
ref: ge
|
|
1261
1310
|
}, [
|
|
1262
|
-
t.value.style.chart.legend.show ? (s(), R(
|
|
1263
|
-
key: `legend_${
|
|
1264
|
-
legendSet:
|
|
1265
|
-
config:
|
|
1266
|
-
onClickMarker: u[
|
|
1311
|
+
t.value.style.chart.legend.show ? (s(), R(Gt, {
|
|
1312
|
+
key: `legend_${Le.value}`,
|
|
1313
|
+
legendSet: Oe.value,
|
|
1314
|
+
config: ft.value,
|
|
1315
|
+
onClickMarker: u[12] || (u[12] = ({ legend: a }) => ve(a.id))
|
|
1267
1316
|
}, {
|
|
1268
1317
|
item: m(({ legend: a }) => [
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1318
|
+
i(we) ? c("", !0) : (s(), n("div", {
|
|
1319
|
+
key: 0,
|
|
1320
|
+
onClick: (o) => ve(a.id),
|
|
1321
|
+
style: _(`opacity:${O.value.includes(a.id) ? 0.5 : 1}`)
|
|
1322
|
+
}, L(a.name), 13, jl))
|
|
1273
1323
|
]),
|
|
1274
1324
|
_: 1
|
|
1275
1325
|
}, 8, ["legendSet", "config"])) : x(l.$slots, "legend", {
|
|
1276
1326
|
key: 1,
|
|
1277
|
-
legend:
|
|
1327
|
+
legend: Oe.value
|
|
1278
1328
|
}, void 0, !0)
|
|
1279
1329
|
], 512),
|
|
1280
1330
|
l.$slots.source ? (s(), n("div", {
|
|
1281
|
-
key:
|
|
1331
|
+
key: 5,
|
|
1282
1332
|
ref_key: "source",
|
|
1283
|
-
ref:
|
|
1333
|
+
ref: me,
|
|
1284
1334
|
dir: "auto"
|
|
1285
1335
|
}, [
|
|
1286
1336
|
x(l.$slots, "source", {}, void 0, !0)
|
|
1287
|
-
], 512)) :
|
|
1288
|
-
|
|
1289
|
-
show: $.value.showTooltip &&
|
|
1337
|
+
], 512)) : c("", !0),
|
|
1338
|
+
he(i(at), {
|
|
1339
|
+
show: $.value.showTooltip && se.value,
|
|
1290
1340
|
backgroundColor: t.value.style.chart.tooltip.backgroundColor,
|
|
1291
1341
|
color: t.value.style.chart.tooltip.color,
|
|
1292
1342
|
borderRadius: t.value.style.chart.tooltip.borderRadius,
|
|
@@ -1296,33 +1346,35 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
1296
1346
|
backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
|
|
1297
1347
|
position: t.value.style.chart.tooltip.position,
|
|
1298
1348
|
offsetY: t.value.style.chart.tooltip.offsetY,
|
|
1299
|
-
parent:
|
|
1349
|
+
parent: Y.value,
|
|
1300
1350
|
content: re.value,
|
|
1301
1351
|
isFullscreen: E.value,
|
|
1302
|
-
isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function"
|
|
1352
|
+
isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function",
|
|
1353
|
+
smooth: t.value.style.chart.tooltip.smooth,
|
|
1354
|
+
backdropFilter: t.value.style.chart.tooltip.backdropFilter
|
|
1303
1355
|
}, {
|
|
1304
1356
|
"tooltip-before": m(() => [
|
|
1305
|
-
x(l.$slots, "tooltip-before", U(
|
|
1357
|
+
x(l.$slots, "tooltip-before", U(G({ ...de.value })), void 0, !0)
|
|
1306
1358
|
]),
|
|
1307
1359
|
"tooltip-after": m(() => [
|
|
1308
|
-
x(l.$slots, "tooltip-after", U(
|
|
1360
|
+
x(l.$slots, "tooltip-after", U(G({ ...de.value })), void 0, !0)
|
|
1309
1361
|
]),
|
|
1310
1362
|
default: m(() => [
|
|
1311
|
-
t.value.style.chart.tooltip.showShape ? (s(), n("svg",
|
|
1312
|
-
|
|
1363
|
+
t.value.style.chart.tooltip.showShape ? (s(), n("svg", Zl, [
|
|
1364
|
+
he(Ke, {
|
|
1313
1365
|
plot: { x: 10, y: 10 },
|
|
1314
|
-
shape:
|
|
1315
|
-
color:
|
|
1366
|
+
shape: le.value.shape,
|
|
1367
|
+
color: le.value.color,
|
|
1316
1368
|
radius: 8,
|
|
1317
1369
|
stroke: t.value.style.chart.layout.plots.outline ? t.value.style.chart.layout.plots.outlineColor : "none",
|
|
1318
1370
|
"stroke-width": t.value.style.chart.layout.plots.outlineWidth
|
|
1319
1371
|
}, null, 8, ["shape", "color", "stroke", "stroke-width"])
|
|
1320
|
-
])) :
|
|
1372
|
+
])) : c("", !0)
|
|
1321
1373
|
]),
|
|
1322
1374
|
_: 3
|
|
1323
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1324
|
-
|
|
1325
|
-
key:
|
|
1375
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1376
|
+
be.value ? (s(), R(i(ut), {
|
|
1377
|
+
key: 6,
|
|
1326
1378
|
hideDetails: "",
|
|
1327
1379
|
config: {
|
|
1328
1380
|
open: $.value.showTable,
|
|
@@ -1338,31 +1390,32 @@ const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "he
|
|
|
1338
1390
|
}
|
|
1339
1391
|
}, {
|
|
1340
1392
|
content: m(() => [
|
|
1341
|
-
(s(), R(i(
|
|
1342
|
-
key: `table_${
|
|
1343
|
-
colNames:
|
|
1344
|
-
head:
|
|
1345
|
-
body:
|
|
1346
|
-
config:
|
|
1393
|
+
(s(), R(i(ot), {
|
|
1394
|
+
key: `table_${ke.value}`,
|
|
1395
|
+
colNames: ee.value.colNames,
|
|
1396
|
+
head: ee.value.head,
|
|
1397
|
+
body: ee.value.body,
|
|
1398
|
+
config: ee.value.config,
|
|
1347
1399
|
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1348
|
-
onClose: u[
|
|
1400
|
+
onClose: u[13] || (u[13] = (a) => $.value.showTable = !1)
|
|
1349
1401
|
}, {
|
|
1350
1402
|
th: m(({ th: a }) => [
|
|
1351
|
-
|
|
1403
|
+
kt(L(a), 1)
|
|
1352
1404
|
]),
|
|
1353
1405
|
td: m(({ td: a }) => [
|
|
1354
|
-
|
|
1406
|
+
h("div", {
|
|
1355
1407
|
innerHTML: a.name || a
|
|
1356
|
-
}, null, 8,
|
|
1408
|
+
}, null, 8, Kl)
|
|
1357
1409
|
]),
|
|
1358
1410
|
_: 1
|
|
1359
1411
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1360
1412
|
]),
|
|
1361
1413
|
_: 1
|
|
1362
|
-
}, 8, ["config"])) :
|
|
1363
|
-
|
|
1414
|
+
}, 8, ["config"])) : c("", !0),
|
|
1415
|
+
i(we) ? (s(), R(Jt, { key: 7 })) : c("", !0)
|
|
1416
|
+
], 46, Zt));
|
|
1364
1417
|
}
|
|
1365
|
-
},
|
|
1418
|
+
}, ya = /* @__PURE__ */ jt(ea, [["__scopeId", "data-v-d487f824"]]);
|
|
1366
1419
|
export {
|
|
1367
|
-
|
|
1420
|
+
ya as default
|
|
1368
1421
|
};
|