vue-data-ui 2.16.5 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -1,29 +1,30 @@
|
|
|
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
|
-
|
|
1
|
+
import { defineAsyncComponent as F, computed as g, ref as y, watch as Ee, shallowRef as Ue, onMounted as bt, onBeforeUnmount as ft, createElementBlock as r, openBlock as s, unref as i, normalizeStyle as q, normalizeClass as T, createBlock as O, createCommentVNode as h, createElementVNode as d, createVNode as de, createSlots as pt, withCtx as m, renderSlot as x, normalizeProps as U, guardReactiveProps as D, Fragment as S, renderList as Y, toDisplayString as L, createTextVNode as gt, nextTick as mt } from "vue";
|
|
2
|
+
import { u as xt, c as De, t as $t, p as he, a as kt, o as Lt, e as G, b as wt, d as qt, Y as _t, i as R, f as V, X as St, s as oe, w as Ct, Z as zt, I as Tt, F as Xt, q as Wt, r as Yt, x as At, y as Mt } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { t as Nt, u as Ot } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ge } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as Rt } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Pt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Bt from "./Title-B-2bV0SW.js";
|
|
9
|
+
import Ft from "./Legend-Bxlv67uY.js";
|
|
10
|
+
import { _ as Qe } from "./Shape-DtFT5EJa.js";
|
|
11
|
+
import Ht from "./img-Y_hYz-ZC.js";
|
|
12
|
+
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Et = ["id"], Ut = ["xmlns", "viewBox", "id"], Dt = ["x", "y", "width", "height"], Gt = ["id"], Qt = ["stop-color"], Jt = ["stop-color"], jt = { key: 1 }, Zt = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], Kt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], el = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], tl = { key: 2 }, ll = ["points", "fill"], al = ["points", "fill"], ul = ["points", "fill"], ol = ["points", "fill"], sl = { key: 3 }, rl = ["y", "fill", "font-size"], nl = ["x", "y", "fill", "font-size"], il = ["x", "y", "fill", "font-size"], vl = ["y", "fill", "font-size"], cl = { key: 4 }, dl = ["x", "y", "font-size", "fill"], hl = ["x", "y", "font-size", "fill"], yl = ["x", "y", "font-size", "fill"], bl = ["id", "font-size", "transform", "fill"], fl = ["id", "font-size", "transform", "fill"], pl = ["id", "font-size", "transform", "fill"], gl = { key: 5 }, ml = ["fill", "points"], xl = ["x", "y", "width", "height"], $l = ["x", "y", "width", "height"], kl = ["x", "y", "width", "height"], Ll = ["x", "y", "width", "height"], wl = {
|
|
13
14
|
key: 0,
|
|
14
15
|
style: { "pointer-events": "none" }
|
|
15
|
-
},
|
|
16
|
+
}, ql = ["x", "y", "font-size", "fill"], _l = ["x", "y", "font-size", "fill", "innerHTML"], Sl = { key: 0 }, Cl = ["x", "y", "onMouseover", "onClick"], zl = {
|
|
16
17
|
key: 8,
|
|
17
18
|
class: "vue-ui-dna"
|
|
18
|
-
},
|
|
19
|
+
}, Tl = ["points", "fill"], Xl = ["points", "fill"], Wl = ["points", "fill"], Yl = ["points", "fill"], Al = { key: 9 }, Ml = ["x", "y", "font-size", "fill", "font-weight"], Nl = { key: 10 }, Ol = ["x", "y", "fill"], Rl = ["x", "y", "fill"], Vl = ["x", "y", "fill"], Pl = ["x", "y", "fill"], Bl = ["stroke", "d"], Fl = ["stroke", "d"], Hl = {
|
|
19
20
|
key: 5,
|
|
20
21
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
22
|
+
}, Il = ["onClick"], El = {
|
|
22
23
|
key: 0,
|
|
23
24
|
height: "14",
|
|
24
25
|
width: "14",
|
|
25
26
|
viewBox: "0 0 20 20"
|
|
26
|
-
},
|
|
27
|
+
}, Ul = ["innerHTML"], Dl = {
|
|
27
28
|
__name: "vue-ui-quadrant",
|
|
28
29
|
props: {
|
|
29
30
|
config: {
|
|
@@ -40,45 +41,45 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
43
|
emits: ["selectPlot", "selectSide", "selectLegend"],
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
44
|
+
setup(Je, { expose: je, emit: Ze }) {
|
|
45
|
+
const Ke = F(() => import("./DataTable-D0VYDhfx.js")), et = F(() => import("./PenAndPaper-D6AqipIO.js")), tt = F(() => import("./vue-ui-accordion-CVnA550V.js")), lt = F(() => import("./vue-ui-skeleton-DJPjyNYn.js")), at = F(() => import("./Tooltip-CoQnTnr-.js")), ut = F(() => import("./UserOptions-Dd34lEKb.js")), ot = F(() => import("./PackageVersion-5TR4ocqp.js")), { vue_ui_quadrant: st } = xt(), X = Je, K = g(() => !!X.dataset && X.dataset.length), z = y(De()), se = Ze, rt = y(null), ee = y(!1), re = y(""), ye = y(0), f = y(!1), P = y(null), be = y(null), fe = y(null), pe = y(null), ge = y(null), me = y(0), xe = y(0), $e = y(0), t = g({
|
|
45
46
|
get: () => qe(),
|
|
46
47
|
set: (l) => l
|
|
47
|
-
}), { userOptionsVisible: ne, setUserOptionsVisibility: ke, keepUserOptionState: Le } =
|
|
48
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: ke, keepUserOptionState: Le } = Vt({ config: t.value }), { svgRef: we } = Pt({ config: t.value.style.chart.title });
|
|
48
49
|
function qe() {
|
|
49
|
-
const l =
|
|
50
|
+
const l = Ge({
|
|
50
51
|
userConfig: X.config,
|
|
51
|
-
defaultConfig:
|
|
52
|
+
defaultConfig: st
|
|
52
53
|
});
|
|
53
54
|
return l.theme ? {
|
|
54
|
-
...
|
|
55
|
-
userConfig:
|
|
55
|
+
...Ge({
|
|
56
|
+
userConfig: kt.vue_ui_quadrant[l.theme] || X.config,
|
|
56
57
|
defaultConfig: l
|
|
57
58
|
}),
|
|
58
|
-
customPalette:
|
|
59
|
+
customPalette: $t[l.theme] || he
|
|
59
60
|
} : l;
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
+
Ee(() => X.config, (l) => {
|
|
62
63
|
t.value = qe(), ne.value = !t.value.userOptions.showOnChartHover, _e(), me.value += 1, xe.value += 1, $e.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;
|
|
63
64
|
}, { deep: !0 });
|
|
64
|
-
const A =
|
|
65
|
+
const A = Ue(null), H = Ue(null);
|
|
65
66
|
function _e() {
|
|
66
|
-
if (
|
|
67
|
+
if (Lt(X.dataset) ? G({
|
|
67
68
|
componentName: "VueUiQuadrant",
|
|
68
69
|
type: "dataset"
|
|
69
70
|
}) : X.dataset.forEach((l, u) => {
|
|
70
|
-
[null, void 0].includes(l.name) &&
|
|
71
|
+
[null, void 0].includes(l.name) && G({
|
|
71
72
|
componentName: "VueUiQuadrant",
|
|
72
73
|
type: "datasetSerieAttribute",
|
|
73
74
|
property: "name",
|
|
74
75
|
index: u
|
|
75
|
-
}), [null, void 0].includes(l.series) ?
|
|
76
|
+
}), [null, void 0].includes(l.series) ? G({
|
|
76
77
|
componentName: "VueUiQuadrant",
|
|
77
78
|
type: "datasetSerieAttribute",
|
|
78
79
|
property: "series",
|
|
79
80
|
index: u
|
|
80
81
|
}) : l.series.forEach((a, o) => {
|
|
81
|
-
[null, void 0].includes(a.name) &&
|
|
82
|
+
[null, void 0].includes(a.name) && G({
|
|
82
83
|
componentName: "VueUiQuadrant",
|
|
83
84
|
type: "datasetSerieAttribute",
|
|
84
85
|
property: "name",
|
|
@@ -87,9 +88,9 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
87
88
|
});
|
|
88
89
|
});
|
|
89
90
|
}), t.value.responsive) {
|
|
90
|
-
const l =
|
|
91
|
-
const { width: u, height: a } =
|
|
92
|
-
chart:
|
|
91
|
+
const l = Nt(() => {
|
|
92
|
+
const { width: u, height: a } = Ot({
|
|
93
|
+
chart: P.value,
|
|
93
94
|
title: t.value.style.chart.title.text ? be.value : null,
|
|
94
95
|
legend: t.value.style.chart.legend.show ? fe.value : null,
|
|
95
96
|
source: pe.value,
|
|
@@ -99,19 +100,19 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
99
100
|
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;
|
|
100
101
|
});
|
|
101
102
|
});
|
|
102
|
-
A.value && (
|
|
103
|
+
A.value && (H.value && A.value.unobserve(H.value), A.value.disconnect()), A.value = new ResizeObserver(l), H.value = P.value.parentNode, A.value.observe(H.value);
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
|
-
|
|
106
|
+
bt(() => {
|
|
106
107
|
_e();
|
|
107
|
-
}),
|
|
108
|
-
A.value && (
|
|
108
|
+
}), ft(() => {
|
|
109
|
+
A.value && (H.value && A.value.unobserve(H.value), A.value.disconnect());
|
|
109
110
|
});
|
|
110
|
-
const { isPrinting: Se, isImaging: Ce, generatePdf: ze, generateImage: Te } =
|
|
111
|
+
const { isPrinting: Se, isImaging: Ce, generatePdf: ze, generateImage: Te } = Rt({
|
|
111
112
|
elementId: `vue-ui-quadrant_${z.value}`,
|
|
112
113
|
fileName: t.value.style.chart.title.text || "vue-ui-quadrant",
|
|
113
114
|
options: t.value.userOptions.print
|
|
114
|
-
}),
|
|
115
|
+
}), nt = g(() => t.value.userOptions.show && !t.value.style.chart.title.text), Xe = g(() => wt(t.value.customPalette)), $ = y({
|
|
115
116
|
plotLabels: {
|
|
116
117
|
show: t.value.style.chart.layout.labels.plotLabels.show
|
|
117
118
|
},
|
|
@@ -134,15 +135,15 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
134
135
|
startX: 0,
|
|
135
136
|
startY: 0
|
|
136
137
|
});
|
|
137
|
-
|
|
138
|
+
Ee(() => e.value, (l) => {
|
|
138
139
|
l && (v.value = {
|
|
139
140
|
...JSON.parse(JSON.stringify(e.value)),
|
|
140
141
|
startX: 0,
|
|
141
142
|
startY: 0
|
|
142
143
|
});
|
|
143
144
|
}, { deep: !0 });
|
|
144
|
-
const
|
|
145
|
-
switch (
|
|
145
|
+
const c = y(null), B = g(() => {
|
|
146
|
+
switch (c.value) {
|
|
146
147
|
case "TL":
|
|
147
148
|
return {
|
|
148
149
|
x: v.value.startX + v.value.width / 2,
|
|
@@ -182,9 +183,9 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
182
183
|
default:
|
|
183
184
|
return { x: 0, y: 0, text: "", fontSize: 0, fill: "none", bold: !1 };
|
|
184
185
|
}
|
|
185
|
-
}),
|
|
186
|
+
}), it = y(null), te = y(!1);
|
|
186
187
|
function Q({ targetX: l, targetY: u, targetW: a, targetH: o, side: n }) {
|
|
187
|
-
|
|
188
|
+
c.value && Z(n);
|
|
188
189
|
const b = {
|
|
189
190
|
x: l - v.value.startX,
|
|
190
191
|
y: u - v.value.startY,
|
|
@@ -192,22 +193,22 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
192
193
|
h: o - v.value.height
|
|
193
194
|
}, p = t.value.zoomAnimationFrames;
|
|
194
195
|
let W = 0;
|
|
195
|
-
function
|
|
196
|
-
te.value = !0, v.value.startX += b.x / p, v.value.startY += b.y / p, v.value.width += b.w / p, v.value.height += b.h / p, W += 1, W < p ?
|
|
196
|
+
function Ie() {
|
|
197
|
+
te.value = !0, v.value.startX += b.x / p, v.value.startY += b.y / p, v.value.width += b.w / p, v.value.height += b.h / p, W += 1, W < p ? it.value = requestAnimationFrame(Ie) : te.value = !1;
|
|
197
198
|
}
|
|
198
|
-
|
|
199
|
+
Ie();
|
|
199
200
|
}
|
|
200
201
|
function M(l) {
|
|
201
202
|
if (!te.value)
|
|
202
|
-
if (f.value &&
|
|
203
|
+
if (f.value && c.value === l)
|
|
203
204
|
Q({
|
|
204
205
|
targetX: 0,
|
|
205
206
|
targetY: 0,
|
|
206
207
|
targetW: e.value.width,
|
|
207
208
|
targetH: e.value.height
|
|
208
|
-
}),
|
|
209
|
+
}), c.value = null, f.value = !1;
|
|
209
210
|
else {
|
|
210
|
-
switch (
|
|
211
|
+
switch (c.value = l, l) {
|
|
211
212
|
case "TL":
|
|
212
213
|
Q({
|
|
213
214
|
targetX: 0,
|
|
@@ -251,7 +252,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
251
252
|
f.value = !0;
|
|
252
253
|
}
|
|
253
254
|
}
|
|
254
|
-
const
|
|
255
|
+
const vt = g(() => {
|
|
255
256
|
const l = t.value.style.chart.layout.grid.graduations.steps, u = e.value.usableWidth / (l * 2), a = e.value.top, o = [];
|
|
256
257
|
for (let n = 0; n < l; n += 1)
|
|
257
258
|
o.push({
|
|
@@ -264,7 +265,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
264
265
|
return o;
|
|
265
266
|
}), _ = g(() => {
|
|
266
267
|
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;
|
|
267
|
-
return t.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...
|
|
268
|
+
return t.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...I.value.flatMap((n) => n.series.map((b) => b.x))), u = Math.min(...I.value.flatMap((n) => n.series.map((b) => b.x)))), t.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...I.value.flatMap((n) => n.series.map((b) => b.y))), o = Math.min(...I.value.flatMap((n) => n.series.map((b) => b.y)))), {
|
|
268
269
|
x: {
|
|
269
270
|
max: l,
|
|
270
271
|
min: u
|
|
@@ -274,15 +275,15 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
274
275
|
min: o
|
|
275
276
|
}
|
|
276
277
|
};
|
|
277
|
-
}), N = y([]),
|
|
278
|
+
}), N = y([]), I = g(() => X.dataset.map((l, u) => ({
|
|
278
279
|
...l,
|
|
279
|
-
series:
|
|
280
|
+
series: _t({
|
|
280
281
|
data: l.series,
|
|
281
282
|
threshold: t.value.downsample.threshold
|
|
282
283
|
}),
|
|
283
284
|
id: `cat_${u}_${z.value}`,
|
|
284
|
-
color:
|
|
285
|
-
}))),
|
|
285
|
+
color: qt(l.color) || Xe.value[u] || he[u]
|
|
286
|
+
}))), ct = g(() => I.value.filter((l) => !N.value.includes(l.id))), dt = g(() => I.value.map((l, u) => ({
|
|
286
287
|
...l,
|
|
287
288
|
shape: l.shape || "circle",
|
|
288
289
|
series: l.series.map((a) => ({
|
|
@@ -298,13 +299,13 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
298
299
|
}))
|
|
299
300
|
}))), C = g(() => (X.dataset.forEach((l, u) => {
|
|
300
301
|
l.series.forEach((a, o) => {
|
|
301
|
-
[null, void 0].includes(a.x) &&
|
|
302
|
+
[null, void 0].includes(a.x) && G({
|
|
302
303
|
componentName: "VueUiQuadrant",
|
|
303
304
|
type: "datasetSerieAttribute",
|
|
304
305
|
property: "x",
|
|
305
306
|
key: "series",
|
|
306
307
|
index: o
|
|
307
|
-
}), [null, void 0].includes(a.y) &&
|
|
308
|
+
}), [null, void 0].includes(a.y) && G({
|
|
308
309
|
componentName: "VueUiQuadrant",
|
|
309
310
|
type: "datasetSerieAttribute",
|
|
310
311
|
property: "y",
|
|
@@ -312,7 +313,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
312
313
|
index: o
|
|
313
314
|
});
|
|
314
315
|
});
|
|
315
|
-
}),
|
|
316
|
+
}), ct.value.map((l, u) => ({
|
|
316
317
|
...l,
|
|
317
318
|
shape: l.shape || "circle",
|
|
318
319
|
color: l.color || Xe.value[u] || he[u],
|
|
@@ -326,7 +327,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
326
327
|
categoryName: l.name,
|
|
327
328
|
shape: l.shape,
|
|
328
329
|
color: l.color,
|
|
329
|
-
uid:
|
|
330
|
+
uid: De()
|
|
330
331
|
}))
|
|
331
332
|
}))));
|
|
332
333
|
function We(l) {
|
|
@@ -415,7 +416,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
415
416
|
opacity: N.value.includes(l.id) ? 0.5 : 1,
|
|
416
417
|
segregate: () => ie(l.id),
|
|
417
418
|
isSegregated: N.value.includes(l.id)
|
|
418
|
-
}))),
|
|
419
|
+
}))), ht = g(() => ({
|
|
419
420
|
cy: "quadrant-div-legend",
|
|
420
421
|
backgroundColor: t.value.style.chart.legend.backgroundColor,
|
|
421
422
|
color: t.value.style.chart.legend.color,
|
|
@@ -449,7 +450,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
449
450
|
config: t.value
|
|
450
451
|
}, ee.value = !0;
|
|
451
452
|
const o = t.value.style.chart.tooltip.customFormat;
|
|
452
|
-
if (
|
|
453
|
+
if (At(o) && Mt(() => o({
|
|
453
454
|
seriesIndex: a,
|
|
454
455
|
datapoint: u,
|
|
455
456
|
series: C.value,
|
|
@@ -629,55 +630,62 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
629
630
|
}));
|
|
630
631
|
}
|
|
631
632
|
function Ve(l = null) {
|
|
632
|
-
|
|
633
|
-
const u = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], a = le.value.head, o = le.value.body, n = u.concat([a]).concat(o), b =
|
|
634
|
-
l ? l(b) :
|
|
633
|
+
mt(() => {
|
|
634
|
+
const u = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], a = le.value.head, o = le.value.body, n = u.concat([a]).concat(o), b = Wt(n);
|
|
635
|
+
l ? l(b) : Yt({ csvContent: b, title: t.value.style.chart.title.text || "vue-ui-quadrant" });
|
|
635
636
|
});
|
|
636
637
|
}
|
|
637
|
-
const
|
|
638
|
-
function
|
|
639
|
-
|
|
638
|
+
const E = y(!1);
|
|
639
|
+
function Pe(l) {
|
|
640
|
+
E.value = l, ye.value += 1;
|
|
640
641
|
}
|
|
641
|
-
function
|
|
642
|
+
function Be() {
|
|
642
643
|
$.value.showTable = !$.value.showTable;
|
|
643
644
|
}
|
|
644
|
-
function
|
|
645
|
+
function Fe() {
|
|
645
646
|
$.value.plotLabels.show = !$.value.plotLabels.show;
|
|
646
647
|
}
|
|
647
|
-
function
|
|
648
|
+
function He() {
|
|
648
649
|
$.value.showTooltip = !$.value.showTooltip;
|
|
649
650
|
}
|
|
650
651
|
const ue = y(!1);
|
|
651
|
-
function
|
|
652
|
+
function ce() {
|
|
652
653
|
ue.value = !ue.value;
|
|
653
654
|
}
|
|
654
|
-
|
|
655
|
+
async function yt({ scale: l = 2 } = {}) {
|
|
656
|
+
if (!P.value) return;
|
|
657
|
+
const { imageUri: u, base64: a } = await Ht({ domElement: P.value, base64: !0, img: !0, scale: l });
|
|
658
|
+
return { imageUri: u, base64: a };
|
|
659
|
+
}
|
|
660
|
+
return je({
|
|
655
661
|
getData: Re,
|
|
662
|
+
getImage: yt,
|
|
656
663
|
generatePdf: ze,
|
|
657
664
|
generateCsv: Ve,
|
|
658
665
|
generateImage: Te,
|
|
659
|
-
toggleTable:
|
|
660
|
-
toggleLabels:
|
|
661
|
-
toggleTooltip:
|
|
662
|
-
toggleAnnotator:
|
|
666
|
+
toggleTable: Be,
|
|
667
|
+
toggleLabels: Fe,
|
|
668
|
+
toggleTooltip: He,
|
|
669
|
+
toggleAnnotator: ce,
|
|
670
|
+
toggleFullscreen: Pe
|
|
663
671
|
}), (l, u) => (s(), r("div", {
|
|
664
|
-
class: T(`vue-ui-quadrant ${
|
|
672
|
+
class: T(`vue-ui-quadrant ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
665
673
|
ref_key: "quadrantChart",
|
|
666
|
-
ref:
|
|
674
|
+
ref: P,
|
|
667
675
|
id: `vue-ui-quadrant_${z.value}`,
|
|
668
676
|
style: q(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive ? "height: 100%" : ""}`),
|
|
669
677
|
onMouseenter: u[16] || (u[16] = () => i(ke)(!0)),
|
|
670
678
|
onMouseleave: u[17] || (u[17] = () => i(ke)(!1))
|
|
671
679
|
}, [
|
|
672
|
-
t.value.userOptions.buttons.annotator ? (s(), O(i(
|
|
680
|
+
t.value.userOptions.buttons.annotator ? (s(), O(i(et), {
|
|
673
681
|
key: 0,
|
|
674
682
|
svgRef: i(we),
|
|
675
683
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
676
684
|
color: t.value.style.chart.color,
|
|
677
685
|
active: ue.value,
|
|
678
|
-
onClose:
|
|
686
|
+
onClose: ce
|
|
679
687
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
680
|
-
|
|
688
|
+
nt.value ? (s(), r("div", {
|
|
681
689
|
key: 1,
|
|
682
690
|
ref_key: "noTitle",
|
|
683
691
|
ref: ge,
|
|
@@ -690,7 +698,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
690
698
|
ref: be,
|
|
691
699
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
692
700
|
}, [
|
|
693
|
-
(s(), O(
|
|
701
|
+
(s(), O(Bt, {
|
|
694
702
|
key: `table_${me.value}`,
|
|
695
703
|
config: {
|
|
696
704
|
title: {
|
|
@@ -704,9 +712,9 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
704
712
|
}
|
|
705
713
|
}, null, 8, ["config"]))
|
|
706
714
|
], 512)) : h("", !0),
|
|
707
|
-
t.value.userOptions.show && K.value && (i(Le) || i(ne)) ? (s(), O(i(
|
|
715
|
+
t.value.userOptions.show && K.value && (i(Le) || i(ne)) ? (s(), O(i(ut), {
|
|
708
716
|
ref_key: "details",
|
|
709
|
-
ref:
|
|
717
|
+
ref: rt,
|
|
710
718
|
key: `user_options_${ye.value}`,
|
|
711
719
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
712
720
|
color: t.value.style.chart.color,
|
|
@@ -720,30 +728,31 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
720
728
|
hasTable: t.value.userOptions.buttons.table,
|
|
721
729
|
hasLabel: t.value.userOptions.buttons.labels,
|
|
722
730
|
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
723
|
-
isFullscreen:
|
|
731
|
+
isFullscreen: E.value,
|
|
724
732
|
isTooltip: $.value.showTooltip,
|
|
725
733
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
726
|
-
chartElement:
|
|
734
|
+
chartElement: P.value,
|
|
727
735
|
position: t.value.userOptions.position,
|
|
728
736
|
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
729
737
|
isAnnotation: ue.value,
|
|
730
738
|
callbacks: t.value.userOptions.callbacks,
|
|
731
|
-
|
|
739
|
+
printScale: t.value.userOptions.print.scale,
|
|
740
|
+
onToggleFullscreen: Pe,
|
|
732
741
|
onGeneratePdf: i(ze),
|
|
733
742
|
onGenerateCsv: Ve,
|
|
734
743
|
onGenerateImage: i(Te),
|
|
735
|
-
onToggleTable:
|
|
736
|
-
onToggleLabels:
|
|
737
|
-
onToggleTooltip:
|
|
738
|
-
onToggleAnnotator:
|
|
744
|
+
onToggleTable: Be,
|
|
745
|
+
onToggleLabels: Fe,
|
|
746
|
+
onToggleTooltip: He,
|
|
747
|
+
onToggleAnnotator: ce,
|
|
739
748
|
style: q({
|
|
740
749
|
visibility: i(Le) ? i(ne) ? "visible" : "hidden" : "visible"
|
|
741
750
|
})
|
|
742
|
-
},
|
|
751
|
+
}, pt({ _: 2 }, [
|
|
743
752
|
l.$slots.menuIcon ? {
|
|
744
753
|
name: "menuIcon",
|
|
745
754
|
fn: m(({ isOpen: a, color: o }) => [
|
|
746
|
-
x(l.$slots, "menuIcon",
|
|
755
|
+
x(l.$slots, "menuIcon", U(D({ isOpen: a, color: o })), void 0, !0)
|
|
747
756
|
]),
|
|
748
757
|
key: "0"
|
|
749
758
|
} : void 0,
|
|
@@ -792,29 +801,29 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
792
801
|
l.$slots.optionFullscreen ? {
|
|
793
802
|
name: "optionFullscreen",
|
|
794
803
|
fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
795
|
-
x(l.$slots, "optionFullscreen",
|
|
804
|
+
x(l.$slots, "optionFullscreen", U(D({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
796
805
|
]),
|
|
797
806
|
key: "7"
|
|
798
807
|
} : void 0,
|
|
799
808
|
l.$slots.optionAnnotator ? {
|
|
800
809
|
name: "optionAnnotator",
|
|
801
810
|
fn: m(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
802
|
-
x(l.$slots, "optionAnnotator",
|
|
811
|
+
x(l.$slots, "optionAnnotator", U(D({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
803
812
|
]),
|
|
804
813
|
key: "8"
|
|
805
814
|
} : void 0
|
|
806
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
815
|
+
]), 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),
|
|
807
816
|
K.value ? (s(), r("svg", {
|
|
808
817
|
key: 4,
|
|
809
818
|
ref_key: "svgRef",
|
|
810
819
|
ref: we,
|
|
811
|
-
xmlns: i(
|
|
812
|
-
class: T({ "vue-data-ui-fullscreen--on":
|
|
820
|
+
xmlns: i(St),
|
|
821
|
+
class: T({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
813
822
|
viewBox: `${v.value.startX} ${v.value.startY} ${v.value.width} ${v.value.height}`,
|
|
814
823
|
style: q(`max-width:100%;overflow:${f.value ? "hidden" : "visible"};background:transparent;color:${t.value.style.chart.color}`),
|
|
815
824
|
id: `svg_${z.value}`
|
|
816
825
|
}, [
|
|
817
|
-
|
|
826
|
+
de(i(ot)),
|
|
818
827
|
l.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
819
828
|
key: 0,
|
|
820
829
|
x: v.value.startX,
|
|
@@ -826,8 +835,8 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
826
835
|
}
|
|
827
836
|
}, [
|
|
828
837
|
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
829
|
-
], 8,
|
|
830
|
-
|
|
838
|
+
], 8, Dt)) : h("", !0),
|
|
839
|
+
d("defs", null, [
|
|
831
840
|
(s(!0), r(S, null, Y(C.value, (a, o) => (s(), r("radialGradient", {
|
|
832
841
|
cx: "50%",
|
|
833
842
|
cy: "50%",
|
|
@@ -836,18 +845,18 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
836
845
|
fy: "50%",
|
|
837
846
|
id: `quadrant_gradient_${z.value}_${o}`
|
|
838
847
|
}, [
|
|
839
|
-
|
|
848
|
+
d("stop", {
|
|
840
849
|
offset: "0%",
|
|
841
|
-
"stop-color": i(oe)(i(
|
|
842
|
-
}, null, 8,
|
|
843
|
-
|
|
850
|
+
"stop-color": i(oe)(i(Ct)(a.color, 0.05), t.value.style.chart.layout.areas.opacity)
|
|
851
|
+
}, null, 8, Qt),
|
|
852
|
+
d("stop", {
|
|
844
853
|
offset: "100%",
|
|
845
854
|
"stop-color": i(oe)(a.color, t.value.style.chart.layout.areas.opacity)
|
|
846
|
-
}, null, 8,
|
|
847
|
-
], 8,
|
|
855
|
+
}, null, 8, Jt)
|
|
856
|
+
], 8, Gt))), 256))
|
|
848
857
|
]),
|
|
849
|
-
t.value.style.chart.layout.grid.graduations.show ? (s(), r("g",
|
|
850
|
-
(s(!0), r(S, null, Y(
|
|
858
|
+
t.value.style.chart.layout.grid.graduations.show ? (s(), r("g", jt, [
|
|
859
|
+
(s(!0), r(S, null, Y(vt.value, (a) => (s(), r("rect", {
|
|
851
860
|
fill: t.value.style.chart.layout.grid.graduations.fill ? i(oe)(t.value.style.chart.layout.grid.graduations.color, a.opacity) : "none",
|
|
852
861
|
x: a.x,
|
|
853
862
|
y: a.y,
|
|
@@ -856,47 +865,47 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
856
865
|
"stroke-width": t.value.style.chart.layout.grid.graduations.strokeWidth,
|
|
857
866
|
stroke: t.value.style.chart.layout.grid.graduations.stroke,
|
|
858
867
|
rx: t.value.style.chart.layout.grid.graduations.roundingForce
|
|
859
|
-
}, null, 8,
|
|
868
|
+
}, null, 8, Zt))), 256))
|
|
860
869
|
])) : h("", !0),
|
|
861
|
-
|
|
870
|
+
d("line", {
|
|
862
871
|
x1: e.value.left,
|
|
863
872
|
y1: e.value.centerY,
|
|
864
873
|
x2: e.value.right,
|
|
865
874
|
y2: e.value.centerY,
|
|
866
875
|
stroke: t.value.style.chart.layout.grid.stroke,
|
|
867
876
|
"stroke-width": t.value.style.chart.layout.grid.strokeWidth
|
|
868
|
-
}, null, 8,
|
|
869
|
-
|
|
877
|
+
}, null, 8, Kt),
|
|
878
|
+
d("line", {
|
|
870
879
|
x1: e.value.centerX,
|
|
871
880
|
y1: e.value.top,
|
|
872
881
|
x2: e.value.centerX,
|
|
873
882
|
y2: e.value.bottom,
|
|
874
883
|
stroke: t.value.style.chart.layout.grid.stroke,
|
|
875
884
|
"stroke-width": t.value.style.chart.layout.grid.strokeWidth
|
|
876
|
-
}, null, 8,
|
|
877
|
-
t.value.style.chart.layout.grid.showArrows ? (s(), r("g",
|
|
878
|
-
|
|
885
|
+
}, null, 8, el),
|
|
886
|
+
t.value.style.chart.layout.grid.showArrows ? (s(), r("g", tl, [
|
|
887
|
+
d("polygon", {
|
|
879
888
|
points: `${e.value.right - 8},${e.value.centerY - 6} ${e.value.right},${e.value.centerY} ${e.value.right - 8},${e.value.centerY + 6}`,
|
|
880
889
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
881
890
|
stroke: "none"
|
|
882
|
-
}, null, 8,
|
|
883
|
-
|
|
891
|
+
}, null, 8, ll),
|
|
892
|
+
d("polygon", {
|
|
884
893
|
points: `${e.value.left + 8},${e.value.centerY - 6} ${e.value.left},${e.value.centerY} ${e.value.left + 8},${e.value.centerY + 6}`,
|
|
885
894
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
886
895
|
stroke: "none"
|
|
887
|
-
}, null, 8,
|
|
888
|
-
|
|
896
|
+
}, null, 8, al),
|
|
897
|
+
d("polygon", {
|
|
889
898
|
points: `${e.value.centerX - 6},${e.value.top + 8} ${e.value.centerX},${e.value.top} ${e.value.centerX + 6},${e.value.top + 8}`,
|
|
890
899
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
891
900
|
stroke: "none"
|
|
892
|
-
}, null, 8,
|
|
893
|
-
|
|
901
|
+
}, null, 8, ul),
|
|
902
|
+
d("polygon", {
|
|
894
903
|
points: `${e.value.centerX - 6},${e.value.bottom - 8} ${e.value.centerX},${e.value.bottom} ${e.value.centerX + 6},${e.value.bottom - 8}`,
|
|
895
904
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
896
905
|
stroke: "none"
|
|
897
|
-
}, null, 8,
|
|
906
|
+
}, null, 8, ol)
|
|
898
907
|
])) : h("", !0),
|
|
899
|
-
t.value.style.chart.layout.labels.quadrantLabels.show && !f.value ? (s(), r("g",
|
|
908
|
+
t.value.style.chart.layout.labels.quadrantLabels.show && !f.value ? (s(), r("g", sl, [
|
|
900
909
|
t.value.style.chart.layout.labels.quadrantLabels.tl.text ? (s(), r("text", {
|
|
901
910
|
key: 0,
|
|
902
911
|
x: 0,
|
|
@@ -906,7 +915,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
906
915
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
907
916
|
style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
|
|
908
917
|
onClick: u[0] || (u[0] = (a) => Z("tl"))
|
|
909
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.tl.text), 13,
|
|
918
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, rl)) : h("", !0),
|
|
910
919
|
t.value.style.chart.layout.labels.quadrantLabels.tr.text ? (s(), r("text", {
|
|
911
920
|
key: 1,
|
|
912
921
|
x: e.value.width,
|
|
@@ -916,7 +925,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
916
925
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
917
926
|
style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
|
|
918
927
|
onClick: u[1] || (u[1] = (a) => Z("tr"))
|
|
919
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.tr.text), 13,
|
|
928
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, nl)) : h("", !0),
|
|
920
929
|
t.value.style.chart.layout.labels.quadrantLabels.br.text ? (s(), r("text", {
|
|
921
930
|
key: 2,
|
|
922
931
|
x: e.value.width,
|
|
@@ -926,7 +935,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
926
935
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
927
936
|
style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
|
|
928
937
|
onClick: u[2] || (u[2] = (a) => Z("br"))
|
|
929
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.br.text), 13,
|
|
938
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.br.text), 13, il)) : h("", !0),
|
|
930
939
|
t.value.style.chart.layout.labels.quadrantLabels.bl.text ? (s(), r("text", {
|
|
931
940
|
key: 3,
|
|
932
941
|
x: 0,
|
|
@@ -936,10 +945,10 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
936
945
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
937
946
|
style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
|
|
938
947
|
onClick: u[3] || (u[3] = (a) => Z("bl"))
|
|
939
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.bl.text), 13,
|
|
948
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, vl)) : h("", !0)
|
|
940
949
|
])) : h("", !0),
|
|
941
|
-
t.value.style.chart.layout.labels.axisLabels.show ? (s(), r("g",
|
|
942
|
-
|
|
950
|
+
t.value.style.chart.layout.labels.axisLabels.show ? (s(), r("g", cl, [
|
|
951
|
+
d("text", {
|
|
943
952
|
x: e.value.centerX,
|
|
944
953
|
y: e.value.top - e.value.padding / 6,
|
|
945
954
|
"text-anchor": "middle",
|
|
@@ -952,15 +961,15 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
952
961
|
v: _.value.y.max,
|
|
953
962
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
954
963
|
})
|
|
955
|
-
)), 9,
|
|
956
|
-
|
|
964
|
+
)), 9, dl),
|
|
965
|
+
d("text", {
|
|
957
966
|
x: e.value.centerX,
|
|
958
967
|
y: e.value.top - e.value.padding / 2,
|
|
959
968
|
"text-anchor": "middle",
|
|
960
969
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
961
970
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
962
|
-
}, L(t.value.style.chart.layout.grid.yAxis.name), 9,
|
|
963
|
-
|
|
971
|
+
}, L(t.value.style.chart.layout.grid.yAxis.name), 9, hl),
|
|
972
|
+
d("text", {
|
|
964
973
|
x: e.value.centerX,
|
|
965
974
|
y: e.value.bottom + e.value.padding * 0.35,
|
|
966
975
|
"text-anchor": "middle",
|
|
@@ -973,8 +982,8 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
973
982
|
v: _.value.y.min,
|
|
974
983
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
975
984
|
})
|
|
976
|
-
)), 9,
|
|
977
|
-
|
|
985
|
+
)), 9, yl),
|
|
986
|
+
d("text", {
|
|
978
987
|
id: `xLabelMin_${z.value}`,
|
|
979
988
|
"text-anchor": "middle",
|
|
980
989
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
@@ -987,8 +996,8 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
987
996
|
v: _.value.x.min,
|
|
988
997
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
989
998
|
})
|
|
990
|
-
)), 9,
|
|
991
|
-
|
|
999
|
+
)), 9, bl),
|
|
1000
|
+
d("text", {
|
|
992
1001
|
id: `xLabelMax_${z.value}`,
|
|
993
1002
|
"text-anchor": "middle",
|
|
994
1003
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
@@ -1001,27 +1010,27 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1001
1010
|
v: _.value.x.max,
|
|
1002
1011
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
1003
1012
|
})
|
|
1004
|
-
)), 9,
|
|
1005
|
-
|
|
1013
|
+
)), 9, fl),
|
|
1014
|
+
d("text", {
|
|
1006
1015
|
id: `xLabelMaxName_${z.value}`,
|
|
1007
1016
|
"text-anchor": "middle",
|
|
1008
1017
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1009
1018
|
transform: `translate(${e.value.width - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
|
|
1010
1019
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1011
|
-
}, L(t.value.style.chart.layout.grid.xAxis.name), 9,
|
|
1020
|
+
}, L(t.value.style.chart.layout.grid.xAxis.name), 9, pl)
|
|
1012
1021
|
])) : h("", !0),
|
|
1013
|
-
t.value.style.chart.layout.areas.show ? (s(), r("g",
|
|
1022
|
+
t.value.style.chart.layout.areas.show ? (s(), r("g", gl, [
|
|
1014
1023
|
(s(!0), r(S, null, Y(C.value, (a, o) => (s(), r("g", null, [
|
|
1015
1024
|
a.series.length > 2 ? (s(), r("polygon", {
|
|
1016
1025
|
key: 0,
|
|
1017
1026
|
"data-cy-quadrant-area": "",
|
|
1018
1027
|
fill: t.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${z.value}_${o})` : i(oe)(a.color, t.value.style.chart.layout.areas.opacity),
|
|
1019
|
-
points: i(
|
|
1020
|
-
}, null, 8,
|
|
1028
|
+
points: i(zt)(a)
|
|
1029
|
+
}, null, 8, ml)) : h("", !0)
|
|
1021
1030
|
]))), 256))
|
|
1022
1031
|
])) : h("", !0),
|
|
1023
|
-
|
|
1024
|
-
|
|
1032
|
+
d("g", null, [
|
|
1033
|
+
d("rect", {
|
|
1025
1034
|
onClick: u[4] || (u[4] = (a) => M("TL")),
|
|
1026
1035
|
x: e.value.left,
|
|
1027
1036
|
y: e.value.top,
|
|
@@ -1029,8 +1038,8 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1029
1038
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1030
1039
|
fill: "transparent",
|
|
1031
1040
|
class: T({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
|
|
1032
|
-
}, null, 10,
|
|
1033
|
-
|
|
1041
|
+
}, null, 10, xl),
|
|
1042
|
+
d("rect", {
|
|
1034
1043
|
onClick: u[5] || (u[5] = (a) => M("TR")),
|
|
1035
1044
|
x: e.value.centerX,
|
|
1036
1045
|
y: e.value.top,
|
|
@@ -1038,8 +1047,8 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1038
1047
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1039
1048
|
fill: "transparent",
|
|
1040
1049
|
class: T({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
|
|
1041
|
-
}, null, 10,
|
|
1042
|
-
|
|
1050
|
+
}, null, 10, $l),
|
|
1051
|
+
d("rect", {
|
|
1043
1052
|
onClick: u[6] || (u[6] = (a) => M("BR")),
|
|
1044
1053
|
x: e.value.centerX,
|
|
1045
1054
|
y: e.value.centerY,
|
|
@@ -1047,8 +1056,8 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1047
1056
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1048
1057
|
fill: "transparent",
|
|
1049
1058
|
class: T({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
|
|
1050
|
-
}, null, 10,
|
|
1051
|
-
|
|
1059
|
+
}, null, 10, kl),
|
|
1060
|
+
d("rect", {
|
|
1052
1061
|
onClick: u[7] || (u[7] = (a) => M("BL")),
|
|
1053
1062
|
x: e.value.left,
|
|
1054
1063
|
y: e.value.centerY,
|
|
@@ -1056,10 +1065,10 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1056
1065
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1057
1066
|
fill: "transparent",
|
|
1058
1067
|
class: T({ "vue-data-ui-zoom-plus": !f.value, "vue-data-ui-zoom-minus": f.value })
|
|
1059
|
-
}, null, 10,
|
|
1068
|
+
}, null, 10, Ll)
|
|
1060
1069
|
]),
|
|
1061
1070
|
t.value.style.chart.layout.labels.plotLabels.showAsTag ? (s(), r(S, { key: 7 }, [
|
|
1062
|
-
$.value.plotLabels.show ? (s(), r("g",
|
|
1071
|
+
$.value.plotLabels.show ? (s(), r("g", Sl, [
|
|
1063
1072
|
(s(!0), r(S, null, Y(C.value, (a, o) => (s(), r(S, null, [
|
|
1064
1073
|
(s(!0), r(S, null, Y(a.series, (n) => (s(), r("foreignObject", {
|
|
1065
1074
|
style: { overflow: "visible" },
|
|
@@ -1073,15 +1082,15 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1073
1082
|
}),
|
|
1074
1083
|
onClick: (b) => Oe(a, n)
|
|
1075
1084
|
}, [
|
|
1076
|
-
|
|
1077
|
-
style: q(`color:${i(
|
|
1085
|
+
d("div", {
|
|
1086
|
+
style: q(`color:${i(Xt)(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;`)
|
|
1078
1087
|
}, L(n.name), 5)
|
|
1079
|
-
], 40,
|
|
1088
|
+
], 40, Cl))), 256))
|
|
1080
1089
|
], 64))), 256))
|
|
1081
1090
|
])) : h("", !0)
|
|
1082
1091
|
], 64)) : (s(), r(S, { key: 6 }, [
|
|
1083
1092
|
(s(!0), r(S, null, Y(C.value, (a, o) => (s(), r("g", null, [
|
|
1084
|
-
(s(!0), r(S, null, Y(a.series, (n) => (s(), O(
|
|
1093
|
+
(s(!0), r(S, null, Y(a.series, (n) => (s(), O(Qe, {
|
|
1085
1094
|
color: a.color,
|
|
1086
1095
|
isSelected: J.value && n.uid === J.value,
|
|
1087
1096
|
plot: n,
|
|
@@ -1096,7 +1105,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1096
1105
|
onClick: (b) => Oe(a, n)
|
|
1097
1106
|
}, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseenter", "onClick"]))), 256))
|
|
1098
1107
|
]))), 256)),
|
|
1099
|
-
$.value.plotLabels.show ? (s(), r("g",
|
|
1108
|
+
$.value.plotLabels.show ? (s(), r("g", wl, [
|
|
1100
1109
|
(s(!0), r(S, null, Y(C.value, (a) => (s(), r("g", null, [
|
|
1101
1110
|
(s(!0), r(S, null, Y(a.series, (o) => (s(), r("g", null, [
|
|
1102
1111
|
String(o.name).includes(`
|
|
@@ -1107,121 +1116,121 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1107
1116
|
"text-anchor": "middle",
|
|
1108
1117
|
"font-size": t.value.style.chart.layout.labels.plotLabels.fontSize / (f.value ? 1.5 : 1),
|
|
1109
1118
|
fill: t.value.style.chart.layout.labels.plotLabels.color,
|
|
1110
|
-
innerHTML: i(
|
|
1119
|
+
innerHTML: i(Tt)({
|
|
1111
1120
|
content: String(o.name),
|
|
1112
1121
|
fontSize: t.value.style.chart.layout.labels.plotLabels.fontSize / (f.value ? 1.5 : 1),
|
|
1113
1122
|
fill: t.value.style.chart.layout.labels.plotLabels.color,
|
|
1114
1123
|
x: o.x,
|
|
1115
1124
|
y: o.y + t.value.style.chart.layout.labels.plotLabels.offsetY + t.value.style.chart.layout.plots.radius
|
|
1116
1125
|
})
|
|
1117
|
-
}, null, 8,
|
|
1126
|
+
}, null, 8, _l)) : (s(), r("text", {
|
|
1118
1127
|
key: 0,
|
|
1119
1128
|
x: o.x,
|
|
1120
1129
|
y: o.y + t.value.style.chart.layout.labels.plotLabels.offsetY + t.value.style.chart.layout.plots.radius,
|
|
1121
1130
|
"text-anchor": "middle",
|
|
1122
1131
|
"font-size": t.value.style.chart.layout.labels.plotLabels.fontSize / (f.value ? 1.5 : 1),
|
|
1123
1132
|
fill: t.value.style.chart.layout.labels.plotLabels.color
|
|
1124
|
-
}, L(o.name), 9,
|
|
1133
|
+
}, L(o.name), 9, ql))
|
|
1125
1134
|
]))), 256))
|
|
1126
1135
|
]))), 256))
|
|
1127
1136
|
])) : h("", !0)
|
|
1128
1137
|
], 64)),
|
|
1129
|
-
f.value ? (s(), r("g",
|
|
1130
|
-
|
|
1138
|
+
f.value ? (s(), r("g", zl, [
|
|
1139
|
+
c.value === "TL" ? (s(), r("polygon", {
|
|
1131
1140
|
key: 0,
|
|
1132
1141
|
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}`,
|
|
1133
1142
|
fill: t.value.style.chart.backgroundColor,
|
|
1134
1143
|
style: { opacity: "1" }
|
|
1135
|
-
}, null, 8,
|
|
1136
|
-
|
|
1144
|
+
}, null, 8, Tl)) : h("", !0),
|
|
1145
|
+
c.value === "TR" ? (s(), r("polygon", {
|
|
1137
1146
|
key: 1,
|
|
1138
1147
|
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}`,
|
|
1139
1148
|
fill: t.value.style.chart.backgroundColor,
|
|
1140
1149
|
style: { opacity: "1" }
|
|
1141
|
-
}, null, 8,
|
|
1142
|
-
|
|
1150
|
+
}, null, 8, Xl)) : h("", !0),
|
|
1151
|
+
c.value === "BR" ? (s(), r("polygon", {
|
|
1143
1152
|
key: 2,
|
|
1144
1153
|
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}`,
|
|
1145
1154
|
fill: t.value.style.chart.backgroundColor,
|
|
1146
1155
|
style: { opacity: "1" }
|
|
1147
|
-
}, null, 8,
|
|
1148
|
-
|
|
1156
|
+
}, null, 8, Wl)) : h("", !0),
|
|
1157
|
+
c.value === "BL" ? (s(), r("polygon", {
|
|
1149
1158
|
key: 3,
|
|
1150
1159
|
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}`,
|
|
1151
1160
|
fill: t.value.style.chart.backgroundColor,
|
|
1152
1161
|
style: { opacity: "1" }
|
|
1153
|
-
}, null, 8,
|
|
1162
|
+
}, null, 8, Yl)) : h("", !0)
|
|
1154
1163
|
])) : h("", !0),
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
x:
|
|
1158
|
-
y:
|
|
1159
|
-
"font-size":
|
|
1160
|
-
fill:
|
|
1164
|
+
c.value && !te.value ? (s(), r("g", Al, [
|
|
1165
|
+
d("text", {
|
|
1166
|
+
x: B.value.x,
|
|
1167
|
+
y: B.value.y - B.value.fontSize / 1.5,
|
|
1168
|
+
"font-size": B.value.fontSize / 1.5,
|
|
1169
|
+
fill: B.value.fill,
|
|
1161
1170
|
"text-anchor": "middle",
|
|
1162
|
-
"font-weight":
|
|
1163
|
-
}, L(
|
|
1171
|
+
"font-weight": B.value.bold ? "bold" : "normal"
|
|
1172
|
+
}, L(B.value.text), 9, Ml)
|
|
1164
1173
|
])) : h("", !0),
|
|
1165
|
-
f.value &&
|
|
1166
|
-
|
|
1167
|
-
x: w.value[
|
|
1168
|
-
y: w.value[
|
|
1174
|
+
f.value && c.value ? (s(), r("g", Nl, [
|
|
1175
|
+
d("rect", {
|
|
1176
|
+
x: w.value[c.value].tl.x,
|
|
1177
|
+
y: w.value[c.value].tl.y,
|
|
1169
1178
|
height: "20",
|
|
1170
1179
|
width: "20",
|
|
1171
|
-
fill: w.value[
|
|
1172
|
-
style: q(`cursor: pointer; opacity: ${
|
|
1180
|
+
fill: w.value[c.value].tl.fill,
|
|
1181
|
+
style: q(`cursor: pointer; opacity: ${c.value === "TL" ? 1 : 0.2}`),
|
|
1173
1182
|
onClick: u[10] || (u[10] = (a) => M("TL")),
|
|
1174
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1175
|
-
}, null, 14,
|
|
1176
|
-
|
|
1177
|
-
x: w.value[
|
|
1178
|
-
y: w.value[
|
|
1183
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": c.value !== "TL" })
|
|
1184
|
+
}, null, 14, Ol),
|
|
1185
|
+
d("rect", {
|
|
1186
|
+
x: w.value[c.value].tr.x,
|
|
1187
|
+
y: w.value[c.value].tr.y,
|
|
1179
1188
|
height: "20",
|
|
1180
1189
|
width: "20",
|
|
1181
|
-
fill: w.value[
|
|
1182
|
-
style: q(`cursor: pointer; opacity: ${
|
|
1190
|
+
fill: w.value[c.value].tr.fill,
|
|
1191
|
+
style: q(`cursor: pointer; opacity: ${c.value === "TR" ? 1 : 0.2}`),
|
|
1183
1192
|
onClick: u[11] || (u[11] = (a) => M("TR")),
|
|
1184
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1185
|
-
}, null, 14,
|
|
1186
|
-
|
|
1187
|
-
x: w.value[
|
|
1188
|
-
y: w.value[
|
|
1193
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": c.value !== "TR" })
|
|
1194
|
+
}, null, 14, Rl),
|
|
1195
|
+
d("rect", {
|
|
1196
|
+
x: w.value[c.value].br.x,
|
|
1197
|
+
y: w.value[c.value].br.y,
|
|
1189
1198
|
height: "20",
|
|
1190
1199
|
width: "20",
|
|
1191
|
-
fill: w.value[
|
|
1192
|
-
style: q(`cursor: pointer; opacity: ${
|
|
1200
|
+
fill: w.value[c.value].br.fill,
|
|
1201
|
+
style: q(`cursor: pointer; opacity: ${c.value === "BR" ? 1 : 0.2}`),
|
|
1193
1202
|
onClick: u[12] || (u[12] = (a) => M("BR")),
|
|
1194
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1195
|
-
}, null, 14,
|
|
1196
|
-
|
|
1197
|
-
x: w.value[
|
|
1198
|
-
y: w.value[
|
|
1203
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": c.value !== "BR" })
|
|
1204
|
+
}, null, 14, Vl),
|
|
1205
|
+
d("rect", {
|
|
1206
|
+
x: w.value[c.value].bl.x,
|
|
1207
|
+
y: w.value[c.value].bl.y,
|
|
1199
1208
|
height: "20",
|
|
1200
1209
|
width: "20",
|
|
1201
|
-
fill: w.value[
|
|
1202
|
-
style: q(`cursor: pointer; opacity: ${
|
|
1210
|
+
fill: w.value[c.value].bl.fill,
|
|
1211
|
+
style: q(`cursor: pointer; opacity: ${c.value === "BL" ? 1 : 0.2}`),
|
|
1203
1212
|
onClick: u[13] || (u[13] = (a) => M("BL")),
|
|
1204
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1205
|
-
}, null, 14,
|
|
1206
|
-
|
|
1213
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": c.value !== "BL" })
|
|
1214
|
+
}, null, 14, Pl),
|
|
1215
|
+
d("path", {
|
|
1207
1216
|
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1208
1217
|
stroke: t.value.style.chart.backgroundColor,
|
|
1209
1218
|
"stroke-width": 1,
|
|
1210
|
-
d: w.value[
|
|
1211
|
-
}, null, 8,
|
|
1212
|
-
|
|
1219
|
+
d: w.value[c.value].crosshairs.horizontal
|
|
1220
|
+
}, null, 8, Bl),
|
|
1221
|
+
d("path", {
|
|
1213
1222
|
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1214
1223
|
stroke: t.value.style.chart.backgroundColor,
|
|
1215
1224
|
"stroke-width": 1,
|
|
1216
|
-
d: w.value[
|
|
1217
|
-
}, null, 8,
|
|
1225
|
+
d: w.value[c.value].crosshairs.vertical
|
|
1226
|
+
}, null, 8, Fl)
|
|
1218
1227
|
])) : h("", !0),
|
|
1219
1228
|
x(l.$slots, "svg", { svg: e.value }, void 0, !0)
|
|
1220
|
-
], 14,
|
|
1221
|
-
l.$slots.watermark ? (s(), r("div",
|
|
1222
|
-
x(l.$slots, "watermark",
|
|
1229
|
+
], 14, Ut)) : h("", !0),
|
|
1230
|
+
l.$slots.watermark ? (s(), r("div", Hl, [
|
|
1231
|
+
x(l.$slots, "watermark", U(D({ isPrinting: i(Se) || i(Ce) })), void 0, !0)
|
|
1223
1232
|
])) : h("", !0),
|
|
1224
|
-
K.value ? h("", !0) : (s(), O(i(
|
|
1233
|
+
K.value ? h("", !0) : (s(), O(i(lt), {
|
|
1225
1234
|
key: 6,
|
|
1226
1235
|
config: {
|
|
1227
1236
|
type: "quadrant",
|
|
@@ -1239,21 +1248,21 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1239
1248
|
}
|
|
1240
1249
|
}
|
|
1241
1250
|
}, null, 8, ["config"])),
|
|
1242
|
-
|
|
1251
|
+
d("div", {
|
|
1243
1252
|
ref_key: "chartLegend",
|
|
1244
1253
|
ref: fe
|
|
1245
1254
|
}, [
|
|
1246
|
-
t.value.style.chart.legend.show ? (s(), O(
|
|
1255
|
+
t.value.style.chart.legend.show ? (s(), O(Ft, {
|
|
1247
1256
|
key: `legend_${$e.value}`,
|
|
1248
1257
|
legendSet: Ae.value,
|
|
1249
|
-
config:
|
|
1258
|
+
config: ht.value,
|
|
1250
1259
|
onClickMarker: u[14] || (u[14] = ({ legend: a }) => ie(a.id))
|
|
1251
1260
|
}, {
|
|
1252
1261
|
item: m(({ legend: a }) => [
|
|
1253
|
-
|
|
1262
|
+
d("div", {
|
|
1254
1263
|
onClick: (o) => ie(a.id),
|
|
1255
1264
|
style: q(`opacity:${N.value.includes(a.id) ? 0.5 : 1}`)
|
|
1256
|
-
}, L(a.name), 13,
|
|
1265
|
+
}, L(a.name), 13, Il)
|
|
1257
1266
|
]),
|
|
1258
1267
|
_: 1
|
|
1259
1268
|
}, 8, ["legendSet", "config"])) : x(l.$slots, "legend", {
|
|
@@ -1269,7 +1278,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1269
1278
|
}, [
|
|
1270
1279
|
x(l.$slots, "source", {}, void 0, !0)
|
|
1271
1280
|
], 512)) : h("", !0),
|
|
1272
|
-
|
|
1281
|
+
de(i(at), {
|
|
1273
1282
|
show: $.value.showTooltip && ee.value,
|
|
1274
1283
|
backgroundColor: t.value.style.chart.tooltip.backgroundColor,
|
|
1275
1284
|
color: t.value.style.chart.tooltip.color,
|
|
@@ -1280,20 +1289,20 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1280
1289
|
backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
|
|
1281
1290
|
position: t.value.style.chart.tooltip.position,
|
|
1282
1291
|
offsetY: t.value.style.chart.tooltip.offsetY,
|
|
1283
|
-
parent:
|
|
1292
|
+
parent: P.value,
|
|
1284
1293
|
content: re.value,
|
|
1285
|
-
isFullscreen:
|
|
1294
|
+
isFullscreen: E.value,
|
|
1286
1295
|
isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function"
|
|
1287
1296
|
}, {
|
|
1288
1297
|
"tooltip-before": m(() => [
|
|
1289
|
-
x(l.$slots, "tooltip-before",
|
|
1298
|
+
x(l.$slots, "tooltip-before", U(D({ ...ve.value })), void 0, !0)
|
|
1290
1299
|
]),
|
|
1291
1300
|
"tooltip-after": m(() => [
|
|
1292
|
-
x(l.$slots, "tooltip-after",
|
|
1301
|
+
x(l.$slots, "tooltip-after", U(D({ ...ve.value })), void 0, !0)
|
|
1293
1302
|
]),
|
|
1294
1303
|
default: m(() => [
|
|
1295
|
-
t.value.style.chart.tooltip.showShape ? (s(), r("svg",
|
|
1296
|
-
|
|
1304
|
+
t.value.style.chart.tooltip.showShape ? (s(), r("svg", El, [
|
|
1305
|
+
de(Qe, {
|
|
1297
1306
|
plot: { x: 10, y: 10 },
|
|
1298
1307
|
shape: j.value.shape,
|
|
1299
1308
|
color: j.value.color,
|
|
@@ -1305,7 +1314,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1305
1314
|
]),
|
|
1306
1315
|
_: 3
|
|
1307
1316
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1308
|
-
K.value ? (s(), O(i(
|
|
1317
|
+
K.value ? (s(), O(i(tt), {
|
|
1309
1318
|
key: 8,
|
|
1310
1319
|
hideDetails: "",
|
|
1311
1320
|
config: {
|
|
@@ -1322,7 +1331,7 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1322
1331
|
}
|
|
1323
1332
|
}, {
|
|
1324
1333
|
content: m(() => [
|
|
1325
|
-
(s(), O(i(
|
|
1334
|
+
(s(), O(i(Ke), {
|
|
1326
1335
|
key: `table_${xe.value}`,
|
|
1327
1336
|
colNames: ae.value.colNames,
|
|
1328
1337
|
head: ae.value.head,
|
|
@@ -1332,21 +1341,21 @@ const Ht = ["id"], It = ["xmlns", "viewBox", "id"], Et = ["x", "y", "width", "he
|
|
|
1332
1341
|
onClose: u[15] || (u[15] = (a) => $.value.showTable = !1)
|
|
1333
1342
|
}, {
|
|
1334
1343
|
th: m(({ th: a }) => [
|
|
1335
|
-
|
|
1344
|
+
gt(L(a), 1)
|
|
1336
1345
|
]),
|
|
1337
1346
|
td: m(({ td: a }) => [
|
|
1338
|
-
|
|
1347
|
+
d("div", {
|
|
1339
1348
|
innerHTML: a.name || a
|
|
1340
|
-
}, null, 8,
|
|
1349
|
+
}, null, 8, Ul)
|
|
1341
1350
|
]),
|
|
1342
1351
|
_: 1
|
|
1343
1352
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1344
1353
|
]),
|
|
1345
1354
|
_: 1
|
|
1346
1355
|
}, 8, ["config"])) : h("", !0)
|
|
1347
|
-
], 46,
|
|
1356
|
+
], 46, Et));
|
|
1348
1357
|
}
|
|
1349
|
-
},
|
|
1358
|
+
}, sa = /* @__PURE__ */ It(Dl, [["__scopeId", "data-v-25644c48"]]);
|
|
1350
1359
|
export {
|
|
1351
|
-
|
|
1360
|
+
sa as default
|
|
1352
1361
|
};
|