vue-data-ui 2.12.6 → 2.12.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
- package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
- package/dist/PackageVersion-DaWGaZxE.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/SparkTooltip-DcdMxgqn.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
- package/dist/Tooltip-B07vY6jm.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-C8URL2IU.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
- package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
- package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
- package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
- package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
- package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
- package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
- package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
- package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
import { computed as g, ref as y, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import { _ as At } from "./PackageVersion-BjrblLPQ.js";
|
|
14
|
-
import { _ as Mt } from "./PenAndPaper-BkP3J-Ft.js";
|
|
15
|
-
import { u as Nt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
|
-
import { u as Ot } from "./useChartAccessibility-BWojgys7.js";
|
|
17
|
-
import { _ as Rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "height"], Pt = ["id"], Ht = ["stop-color"], It = ["stop-color"], Ut = { key: 1 }, Dt = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], Et = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Gt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qt = { key: 2 }, Jt = ["points", "fill"], jt = ["points", "fill"], Zt = ["points", "fill"], Kt = ["points", "fill"], el = { key: 3 }, tl = ["y", "fill", "font-size"], ll = ["x", "y", "fill", "font-size"], al = ["x", "y", "fill", "font-size"], ul = ["y", "fill", "font-size"], ol = { key: 4 }, sl = ["x", "y", "font-size", "fill"], rl = ["x", "y", "font-size", "fill"], nl = ["x", "y", "font-size", "fill"], il = ["id", "font-size", "transform", "fill"], vl = ["id", "font-size", "transform", "fill"], dl = ["id", "font-size", "transform", "fill"], cl = { key: 5 }, hl = ["fill", "points"], yl = ["x", "y", "width", "height"], bl = ["x", "y", "width", "height"], fl = ["x", "y", "width", "height"], pl = ["x", "y", "width", "height"], gl = {
|
|
1
|
+
import { defineAsyncComponent as B, computed as g, ref as y, watch as Ie, shallowRef as Ee, onMounted as yt, onBeforeUnmount as bt, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as q, normalizeClass as T, createBlock as O, createCommentVNode as h, createElementVNode as c, createVNode as ce, createSlots as ft, withCtx as m, renderSlot as x, normalizeProps as E, guardReactiveProps as U, Fragment as C, renderList as Y, toDisplayString as L, createTextVNode as pt, nextTick as gt } from "vue";
|
|
2
|
+
import { u as mt, c as Ue, t as xt, p as he, a as $t, o as kt, e as D, b as Lt, d as wt, W as qt, i as R, f as V, X as _t, s as oe, w as Ct, Y as St, G as zt, q as Tt, r as Wt, x as Xt, y as Yt } from "./index-BHEd2dgu.js";
|
|
3
|
+
import { t as At, u as Mt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as De } from "./useNestedProp-CZztHZIm.js";
|
|
5
|
+
import { u as Nt } from "./usePrinter-C8URL2IU.js";
|
|
6
|
+
import { u as Ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Vt from "./Title-Bc66VstS.js";
|
|
9
|
+
import Pt from "./Legend-DtTYopxf.js";
|
|
10
|
+
import Ge from "./Shape-B6kIkp2s.js";
|
|
11
|
+
import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Ft = ["id"], Ht = ["xmlns", "viewBox", "id"], It = ["x", "y", "width", "height"], Et = ["id"], Ut = ["stop-color"], Dt = ["stop-color"], Gt = { key: 1 }, Qt = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], Jt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], jt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Zt = { key: 2 }, Kt = ["points", "fill"], el = ["points", "fill"], tl = ["points", "fill"], ll = ["points", "fill"], al = { key: 3 }, ul = ["y", "fill", "font-size"], ol = ["x", "y", "fill", "font-size"], sl = ["x", "y", "fill", "font-size"], rl = ["y", "fill", "font-size"], nl = { key: 4 }, il = ["x", "y", "font-size", "fill"], vl = ["x", "y", "font-size", "fill"], dl = ["x", "y", "font-size", "fill"], cl = ["id", "font-size", "transform", "fill"], hl = ["id", "font-size", "transform", "fill"], yl = ["id", "font-size", "transform", "fill"], bl = { key: 5 }, fl = ["fill", "points"], pl = ["x", "y", "width", "height"], gl = ["x", "y", "width", "height"], ml = ["x", "y", "width", "height"], xl = ["x", "y", "width", "height"], $l = {
|
|
19
13
|
key: 0,
|
|
20
14
|
style: { "pointer-events": "none" }
|
|
21
|
-
},
|
|
15
|
+
}, kl = ["x", "y", "font-size", "fill"], Ll = { key: 0 }, wl = ["x", "y", "onMouseover", "onClick"], ql = {
|
|
22
16
|
key: 8,
|
|
23
17
|
class: "vue-ui-dna"
|
|
24
|
-
},
|
|
18
|
+
}, _l = ["points", "fill"], Cl = ["points", "fill"], Sl = ["points", "fill"], zl = ["points", "fill"], Tl = { key: 9 }, Wl = ["x", "y", "font-size", "fill", "font-weight"], Xl = { key: 10 }, Yl = ["x", "y", "fill"], Al = ["x", "y", "fill"], Ml = ["x", "y", "fill"], Nl = ["x", "y", "fill"], Ol = ["stroke", "d"], Rl = ["stroke", "d"], Vl = {
|
|
25
19
|
key: 5,
|
|
26
20
|
class: "vue-data-ui-watermark"
|
|
27
|
-
},
|
|
21
|
+
}, Pl = ["onClick"], Bl = {
|
|
28
22
|
key: 0,
|
|
29
23
|
height: "14",
|
|
30
24
|
width: "14",
|
|
31
25
|
viewBox: "0 0 20 20"
|
|
32
|
-
},
|
|
26
|
+
}, Fl = ["innerHTML"], Hl = {
|
|
33
27
|
__name: "vue-ui-quadrant",
|
|
34
28
|
props: {
|
|
35
29
|
config: {
|
|
@@ -46,45 +40,45 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
46
40
|
}
|
|
47
41
|
},
|
|
48
42
|
emits: ["selectPlot", "selectSide", "selectLegend"],
|
|
49
|
-
setup(
|
|
50
|
-
const { vue_ui_quadrant:
|
|
51
|
-
get: () =>
|
|
43
|
+
setup(Qe, { expose: Je, emit: je }) {
|
|
44
|
+
const Ze = B(() => import("./DataTable-Y5HbiUZU.js")), Ke = B(() => import("./PenAndPaper-C-CpE0NC.js")), et = B(() => import("./vue-ui-accordion-DntThSTF.js")), tt = B(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), lt = B(() => import("./Tooltip-B07vY6jm.js")), at = B(() => import("./UserOptions-C8X2STEg.js")), ut = B(() => import("./PackageVersion-DaWGaZxE.js")), { vue_ui_quadrant: ot } = mt(), W = Qe, K = g(() => !!W.dataset && W.dataset.length), z = y(Ue()), se = je, st = y(null), ee = y(!1), re = y(""), ye = y(0), p = y(!1), G = 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
|
+
get: () => qe(),
|
|
52
46
|
set: (l) => l
|
|
53
|
-
}), { userOptionsVisible:
|
|
54
|
-
function
|
|
55
|
-
const l =
|
|
47
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: ke, keepUserOptionState: Le } = Ot({ config: t.value }), { svgRef: we } = Rt({ config: t.value.style.chart.title });
|
|
48
|
+
function qe() {
|
|
49
|
+
const l = De({
|
|
56
50
|
userConfig: W.config,
|
|
57
|
-
defaultConfig:
|
|
51
|
+
defaultConfig: ot
|
|
58
52
|
});
|
|
59
53
|
return l.theme ? {
|
|
60
|
-
...
|
|
61
|
-
userConfig:
|
|
54
|
+
...De({
|
|
55
|
+
userConfig: $t.vue_ui_quadrant[l.theme] || W.config,
|
|
62
56
|
defaultConfig: l
|
|
63
57
|
}),
|
|
64
|
-
customPalette:
|
|
58
|
+
customPalette: xt[l.theme] || he
|
|
65
59
|
} : l;
|
|
66
60
|
}
|
|
67
|
-
|
|
68
|
-
t.value =
|
|
61
|
+
Ie(() => W.config, (l) => {
|
|
62
|
+
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;
|
|
69
63
|
}, { deep: !0 });
|
|
70
|
-
const
|
|
71
|
-
function
|
|
72
|
-
if (
|
|
64
|
+
const A = Ee(null), F = Ee(null);
|
|
65
|
+
function _e() {
|
|
66
|
+
if (kt(W.dataset) ? D({
|
|
73
67
|
componentName: "VueUiQuadrant",
|
|
74
68
|
type: "dataset"
|
|
75
69
|
}) : W.dataset.forEach((l, u) => {
|
|
76
|
-
[null, void 0].includes(l.name) &&
|
|
70
|
+
[null, void 0].includes(l.name) && D({
|
|
77
71
|
componentName: "VueUiQuadrant",
|
|
78
72
|
type: "datasetSerieAttribute",
|
|
79
73
|
property: "name",
|
|
80
74
|
index: u
|
|
81
|
-
}), [null, void 0].includes(l.series) ?
|
|
75
|
+
}), [null, void 0].includes(l.series) ? D({
|
|
82
76
|
componentName: "VueUiQuadrant",
|
|
83
77
|
type: "datasetSerieAttribute",
|
|
84
78
|
property: "series",
|
|
85
79
|
index: u
|
|
86
80
|
}) : l.series.forEach((a, s) => {
|
|
87
|
-
[null, void 0].includes(a.name) &&
|
|
81
|
+
[null, void 0].includes(a.name) && D({
|
|
88
82
|
componentName: "VueUiQuadrant",
|
|
89
83
|
type: "datasetSerieAttribute",
|
|
90
84
|
property: "name",
|
|
@@ -93,31 +87,31 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
93
87
|
});
|
|
94
88
|
});
|
|
95
89
|
}), t.value.responsive) {
|
|
96
|
-
const l =
|
|
97
|
-
const { width: u, height: a } =
|
|
98
|
-
chart:
|
|
99
|
-
title: t.value.style.chart.title.text ?
|
|
100
|
-
legend: t.value.style.chart.legend.show ?
|
|
101
|
-
source:
|
|
102
|
-
noTitle:
|
|
90
|
+
const l = At(() => {
|
|
91
|
+
const { width: u, height: a } = Mt({
|
|
92
|
+
chart: G.value,
|
|
93
|
+
title: t.value.style.chart.title.text ? be.value : null,
|
|
94
|
+
legend: t.value.style.chart.legend.show ? fe.value : null,
|
|
95
|
+
source: pe.value,
|
|
96
|
+
noTitle: ge.value
|
|
103
97
|
});
|
|
104
98
|
k.value = 48, requestAnimationFrame(() => {
|
|
105
99
|
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;
|
|
106
100
|
});
|
|
107
101
|
});
|
|
108
|
-
|
|
102
|
+
A.value && (F.value && A.value.unobserve(F.value), A.value.disconnect()), A.value = new ResizeObserver(l), F.value = G.value.parentNode, A.value.observe(F.value);
|
|
109
103
|
}
|
|
110
104
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}),
|
|
114
|
-
|
|
105
|
+
yt(() => {
|
|
106
|
+
_e();
|
|
107
|
+
}), bt(() => {
|
|
108
|
+
A.value && (F.value && A.value.unobserve(F.value), A.value.disconnect());
|
|
115
109
|
});
|
|
116
|
-
const { isPrinting:
|
|
110
|
+
const { isPrinting: Ce, isImaging: Se, generatePdf: ze, generateImage: Te } = Nt({
|
|
117
111
|
elementId: `vue-ui-quadrant_${z.value}`,
|
|
118
112
|
fileName: t.value.style.chart.title.text || "vue-ui-quadrant",
|
|
119
113
|
options: t.value.userOptions.print
|
|
120
|
-
}),
|
|
114
|
+
}), rt = g(() => t.value.userOptions.show && !t.value.style.chart.title.text), We = g(() => Lt(t.value.customPalette)), $ = y({
|
|
121
115
|
plotLabels: {
|
|
122
116
|
show: t.value.style.chart.layout.labels.plotLabels.show
|
|
123
117
|
},
|
|
@@ -135,24 +129,24 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
135
129
|
centerX: t.value.style.chart.width / 2,
|
|
136
130
|
centerY: t.value.style.chart.height - t.value.style.chart.height / 2,
|
|
137
131
|
padding: k.value
|
|
138
|
-
}),
|
|
132
|
+
}), v = y({
|
|
139
133
|
...JSON.parse(JSON.stringify(e.value)),
|
|
140
134
|
startX: 0,
|
|
141
135
|
startY: 0
|
|
142
136
|
});
|
|
143
|
-
|
|
144
|
-
l && (
|
|
137
|
+
Ie(() => e.value, (l) => {
|
|
138
|
+
l && (v.value = {
|
|
145
139
|
...JSON.parse(JSON.stringify(e.value)),
|
|
146
140
|
startX: 0,
|
|
147
141
|
startY: 0
|
|
148
142
|
});
|
|
149
143
|
}, { deep: !0 });
|
|
150
|
-
const
|
|
151
|
-
switch (
|
|
144
|
+
const d = y(null), P = g(() => {
|
|
145
|
+
switch (d.value) {
|
|
152
146
|
case "TL":
|
|
153
147
|
return {
|
|
154
|
-
x:
|
|
155
|
-
y:
|
|
148
|
+
x: v.value.startX + v.value.width / 2,
|
|
149
|
+
y: v.value.height,
|
|
156
150
|
text: t.value.style.chart.layout.labels.quadrantLabels.tl.text || "Top Left",
|
|
157
151
|
fontSize: t.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
158
152
|
fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
@@ -160,8 +154,8 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
160
154
|
};
|
|
161
155
|
case "TR":
|
|
162
156
|
return {
|
|
163
|
-
x:
|
|
164
|
-
y:
|
|
157
|
+
x: v.value.startX + v.value.width / 2,
|
|
158
|
+
y: v.value.height,
|
|
165
159
|
text: t.value.style.chart.layout.labels.quadrantLabels.tr.text || "Top Right",
|
|
166
160
|
fontSize: t.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
167
161
|
fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
@@ -169,8 +163,8 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
169
163
|
};
|
|
170
164
|
case "BR":
|
|
171
165
|
return {
|
|
172
|
-
x:
|
|
173
|
-
y:
|
|
166
|
+
x: v.value.startX + v.value.width / 2,
|
|
167
|
+
y: v.value.height * 1.678,
|
|
174
168
|
text: t.value.style.chart.layout.labels.quadrantLabels.br.text || "Bottom Right",
|
|
175
169
|
fontSize: t.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
176
170
|
fill: t.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
@@ -178,8 +172,8 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
178
172
|
};
|
|
179
173
|
case "BL":
|
|
180
174
|
return {
|
|
181
|
-
x:
|
|
182
|
-
y:
|
|
175
|
+
x: v.value.startX + v.value.width / 2,
|
|
176
|
+
y: v.value.height * 1.678,
|
|
183
177
|
text: t.value.style.chart.layout.labels.quadrantLabels.bl.text || "Bottom Left",
|
|
184
178
|
fontSize: t.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
185
179
|
fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
@@ -188,34 +182,34 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
188
182
|
default:
|
|
189
183
|
return { x: 0, y: 0, text: "", fontSize: 0, fill: "none", bold: !1 };
|
|
190
184
|
}
|
|
191
|
-
}),
|
|
192
|
-
function
|
|
193
|
-
|
|
185
|
+
}), nt = y(null), te = y(!1);
|
|
186
|
+
function Q({ targetX: l, targetY: u, targetW: a, targetH: s, side: r }) {
|
|
187
|
+
d.value && Z(r);
|
|
194
188
|
const b = {
|
|
195
|
-
x: l -
|
|
196
|
-
y: u -
|
|
197
|
-
w: a -
|
|
198
|
-
h: s -
|
|
189
|
+
x: l - v.value.startX,
|
|
190
|
+
y: u - v.value.startY,
|
|
191
|
+
w: a - v.value.width,
|
|
192
|
+
h: s - v.value.height
|
|
199
193
|
}, f = t.value.zoomAnimationFrames;
|
|
200
194
|
let X = 0;
|
|
201
|
-
function
|
|
202
|
-
|
|
195
|
+
function He() {
|
|
196
|
+
te.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, X += 1, X < f ? nt.value = requestAnimationFrame(He) : te.value = !1;
|
|
203
197
|
}
|
|
204
|
-
|
|
198
|
+
He();
|
|
205
199
|
}
|
|
206
|
-
function
|
|
207
|
-
if (!
|
|
208
|
-
if (p.value &&
|
|
209
|
-
|
|
200
|
+
function M(l) {
|
|
201
|
+
if (!te.value)
|
|
202
|
+
if (p.value && d.value === l)
|
|
203
|
+
Q({
|
|
210
204
|
targetX: 0,
|
|
211
205
|
targetY: 0,
|
|
212
206
|
targetW: e.value.width,
|
|
213
207
|
targetH: e.value.height
|
|
214
|
-
}),
|
|
208
|
+
}), d.value = null, p.value = !1;
|
|
215
209
|
else {
|
|
216
|
-
switch (
|
|
210
|
+
switch (d.value = l, l) {
|
|
217
211
|
case "TL":
|
|
218
|
-
|
|
212
|
+
Q({
|
|
219
213
|
targetX: 0,
|
|
220
214
|
targetY: 0,
|
|
221
215
|
targetW: e.value.width / 2 + e.value.left,
|
|
@@ -224,7 +218,7 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
224
218
|
});
|
|
225
219
|
break;
|
|
226
220
|
case "TR":
|
|
227
|
-
|
|
221
|
+
Q({
|
|
228
222
|
targetX: e.value.width / 2 - e.value.left,
|
|
229
223
|
targetY: 0,
|
|
230
224
|
targetW: e.value.width / 2 + e.value.left,
|
|
@@ -233,7 +227,7 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
233
227
|
});
|
|
234
228
|
break;
|
|
235
229
|
case "BR":
|
|
236
|
-
|
|
230
|
+
Q({
|
|
237
231
|
targetX: e.value.width / 2 - e.value.left,
|
|
238
232
|
targetY: e.value.height / 2 - e.value.top,
|
|
239
233
|
targetW: e.value.width / 2 + e.value.left,
|
|
@@ -242,7 +236,7 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
242
236
|
});
|
|
243
237
|
break;
|
|
244
238
|
case "BL":
|
|
245
|
-
|
|
239
|
+
Q({
|
|
246
240
|
targetX: 0,
|
|
247
241
|
targetY: e.value.height / 2 - e.value.top,
|
|
248
242
|
targetW: e.value.width / 2 + e.value.left,
|
|
@@ -251,13 +245,13 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
251
245
|
});
|
|
252
246
|
break;
|
|
253
247
|
default:
|
|
254
|
-
|
|
248
|
+
v.value.startX = 0, v.value.startY = 0, v.value.width = e.value.width, v.value.height = e.value.height;
|
|
255
249
|
break;
|
|
256
250
|
}
|
|
257
251
|
p.value = !0;
|
|
258
252
|
}
|
|
259
253
|
}
|
|
260
|
-
const
|
|
254
|
+
const it = g(() => {
|
|
261
255
|
const l = t.value.style.chart.layout.grid.graduations.steps, u = e.value.usableWidth / (l * 2), a = e.value.top, s = [];
|
|
262
256
|
for (let r = 0; r < l; r += 1)
|
|
263
257
|
s.push({
|
|
@@ -270,7 +264,7 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
270
264
|
return s;
|
|
271
265
|
}), _ = g(() => {
|
|
272
266
|
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, s = t.value.style.chart.layout.grid.yAxis.min;
|
|
273
|
-
return t.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...
|
|
267
|
+
return t.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...H.value.flatMap((r) => r.series.map((b) => b.x))), u = Math.min(...H.value.flatMap((r) => r.series.map((b) => b.x)))), t.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...H.value.flatMap((r) => r.series.map((b) => b.y))), s = Math.min(...H.value.flatMap((r) => r.series.map((b) => b.y)))), {
|
|
274
268
|
x: {
|
|
275
269
|
max: l,
|
|
276
270
|
min: u
|
|
@@ -280,37 +274,37 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
280
274
|
min: s
|
|
281
275
|
}
|
|
282
276
|
};
|
|
283
|
-
}),
|
|
277
|
+
}), N = y([]), H = g(() => W.dataset.map((l, u) => ({
|
|
284
278
|
...l,
|
|
285
|
-
series:
|
|
279
|
+
series: qt({
|
|
286
280
|
data: l.series,
|
|
287
281
|
threshold: t.value.downsample.threshold
|
|
288
282
|
}),
|
|
289
283
|
id: `cat_${u}_${z.value}`,
|
|
290
|
-
color:
|
|
291
|
-
}))),
|
|
284
|
+
color: wt(l.color) || We.value[u] || he[u]
|
|
285
|
+
}))), vt = g(() => H.value.filter((l) => !N.value.includes(l.id))), dt = g(() => H.value.map((l, u) => ({
|
|
292
286
|
...l,
|
|
293
287
|
shape: l.shape || "circle",
|
|
294
288
|
series: l.series.map((a) => ({
|
|
295
289
|
...a,
|
|
296
|
-
x:
|
|
297
|
-
y:
|
|
290
|
+
x: Xe(a.x),
|
|
291
|
+
y: Ye(a.y),
|
|
298
292
|
xValue: a.x,
|
|
299
293
|
yValue: a.y,
|
|
300
|
-
quadrantSide:
|
|
294
|
+
quadrantSide: Me({ x: a.x, y: a.y }),
|
|
301
295
|
categoryName: l.name,
|
|
302
296
|
shape: l.shape,
|
|
303
297
|
color: l.color
|
|
304
298
|
}))
|
|
305
299
|
}))), S = g(() => (W.dataset.forEach((l, u) => {
|
|
306
300
|
l.series.forEach((a, s) => {
|
|
307
|
-
[null, void 0].includes(a.x) &&
|
|
301
|
+
[null, void 0].includes(a.x) && D({
|
|
308
302
|
componentName: "VueUiQuadrant",
|
|
309
303
|
type: "datasetSerieAttribute",
|
|
310
304
|
property: "x",
|
|
311
305
|
key: "series",
|
|
312
306
|
index: s
|
|
313
|
-
}), [null, void 0].includes(a.y) &&
|
|
307
|
+
}), [null, void 0].includes(a.y) && D({
|
|
314
308
|
componentName: "VueUiQuadrant",
|
|
315
309
|
type: "datasetSerieAttribute",
|
|
316
310
|
property: "y",
|
|
@@ -318,24 +312,24 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
318
312
|
index: s
|
|
319
313
|
});
|
|
320
314
|
});
|
|
321
|
-
}),
|
|
315
|
+
}), vt.value.map((l, u) => ({
|
|
322
316
|
...l,
|
|
323
317
|
shape: l.shape || "circle",
|
|
324
|
-
color: l.color ||
|
|
318
|
+
color: l.color || We.value[u] || he[u],
|
|
325
319
|
series: l.series.map((a) => ({
|
|
326
320
|
...a,
|
|
327
|
-
x:
|
|
328
|
-
y:
|
|
321
|
+
x: Xe(a.x),
|
|
322
|
+
y: Ye(a.y),
|
|
329
323
|
xValue: a.x,
|
|
330
324
|
yValue: a.y,
|
|
331
|
-
quadrantSide:
|
|
325
|
+
quadrantSide: Me({ x: a.x, y: a.y }),
|
|
332
326
|
categoryName: l.name,
|
|
333
327
|
shape: l.shape,
|
|
334
328
|
color: l.color,
|
|
335
|
-
uid:
|
|
329
|
+
uid: Ue()
|
|
336
330
|
}))
|
|
337
331
|
}))));
|
|
338
|
-
function
|
|
332
|
+
function Xe(l) {
|
|
339
333
|
if (l >= 0) {
|
|
340
334
|
const u = l / _.value.x.max;
|
|
341
335
|
return e.value.centerX + e.value.usableWidth / 2 * u;
|
|
@@ -344,7 +338,7 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
344
338
|
return e.value.centerX - e.value.usableWidth / 2 * u;
|
|
345
339
|
}
|
|
346
340
|
}
|
|
347
|
-
function
|
|
341
|
+
function Ye(l) {
|
|
348
342
|
if (l >= 0) {
|
|
349
343
|
const u = l / _.value.y.max;
|
|
350
344
|
return e.value.centerY + (1 - e.value.usableHeight / 2 * u);
|
|
@@ -353,7 +347,7 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
353
347
|
return e.value.centerY - (1 - e.value.usableHeight / 2 * u);
|
|
354
348
|
}
|
|
355
349
|
}
|
|
356
|
-
const
|
|
350
|
+
const le = g(() => {
|
|
357
351
|
const l = S.value.flatMap((f) => f.series.map((X) => ({
|
|
358
352
|
x: X.xValue,
|
|
359
353
|
y: X.yValue,
|
|
@@ -368,26 +362,26 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
368
362
|
color: f.color
|
|
369
363
|
}));
|
|
370
364
|
return { head: s, body: r, itsShapes: b, tableData: l };
|
|
371
|
-
}),
|
|
372
|
-
const l =
|
|
365
|
+
}), ae = g(() => {
|
|
366
|
+
const l = le.value.head, u = le.value.tableData.map((s) => [
|
|
373
367
|
{
|
|
374
368
|
shape: s.shape,
|
|
375
369
|
color: s.color,
|
|
376
370
|
name: s.category
|
|
377
371
|
},
|
|
378
372
|
s.name,
|
|
379
|
-
|
|
373
|
+
R(
|
|
380
374
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
381
375
|
s.x,
|
|
382
|
-
|
|
376
|
+
V({
|
|
383
377
|
v: s.x,
|
|
384
378
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
385
379
|
})
|
|
386
380
|
),
|
|
387
|
-
|
|
381
|
+
R(
|
|
388
382
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
389
383
|
s.y,
|
|
390
|
-
|
|
384
|
+
V({
|
|
391
385
|
v: s.y,
|
|
392
386
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
393
387
|
})
|
|
@@ -408,20 +402,20 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
408
402
|
};
|
|
409
403
|
return { head: l, body: u, config: a, colNames: l };
|
|
410
404
|
});
|
|
411
|
-
function
|
|
412
|
-
|
|
413
|
-
const u =
|
|
414
|
-
|
|
405
|
+
function ie(l) {
|
|
406
|
+
N.value.includes(l) ? N.value = N.value.filter((a) => a !== l) : N.value.push(l);
|
|
407
|
+
const u = Re();
|
|
408
|
+
se("selectLegend", u);
|
|
415
409
|
}
|
|
416
|
-
const
|
|
410
|
+
const Ae = g(() => dt.value.map((l) => ({
|
|
417
411
|
name: l.name,
|
|
418
412
|
shape: l.shape,
|
|
419
413
|
color: l.color,
|
|
420
414
|
id: l.id,
|
|
421
|
-
opacity:
|
|
422
|
-
segregate: () =>
|
|
423
|
-
isSegregated:
|
|
424
|
-
}))),
|
|
415
|
+
opacity: N.value.includes(l.id) ? 0.5 : 1,
|
|
416
|
+
segregate: () => ie(l.id),
|
|
417
|
+
isSegregated: N.value.includes(l.id)
|
|
418
|
+
}))), ct = g(() => ({
|
|
425
419
|
cy: "quadrant-div-legend",
|
|
426
420
|
backgroundColor: t.value.style.chart.legend.backgroundColor,
|
|
427
421
|
color: t.value.style.chart.legend.color,
|
|
@@ -429,7 +423,7 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
429
423
|
paddingBottom: 12,
|
|
430
424
|
fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
|
|
431
425
|
}));
|
|
432
|
-
function
|
|
426
|
+
function Me(l) {
|
|
433
427
|
switch (!0) {
|
|
434
428
|
case (l.x >= 0 && l.y >= 0):
|
|
435
429
|
return "tr";
|
|
@@ -443,25 +437,25 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
443
437
|
return "";
|
|
444
438
|
}
|
|
445
439
|
}
|
|
446
|
-
const
|
|
447
|
-
function
|
|
448
|
-
|
|
440
|
+
const J = y(null), j = y(null), ve = y(null);
|
|
441
|
+
function Ne(l, u, a) {
|
|
442
|
+
J.value = u.uid, j.value = {
|
|
449
443
|
color: l.color,
|
|
450
444
|
shape: l.shape
|
|
451
|
-
},
|
|
445
|
+
}, ve.value = {
|
|
452
446
|
datapoint: u,
|
|
453
447
|
seriesIndex: a,
|
|
454
448
|
series: S.value,
|
|
455
449
|
config: t.value
|
|
456
|
-
},
|
|
450
|
+
}, ee.value = !0;
|
|
457
451
|
const s = t.value.style.chart.tooltip.customFormat;
|
|
458
|
-
if (
|
|
452
|
+
if (Xt(s) && Yt(() => s({
|
|
459
453
|
seriesIndex: a,
|
|
460
454
|
datapoint: u,
|
|
461
455
|
series: S.value,
|
|
462
456
|
config: t.value
|
|
463
457
|
})))
|
|
464
|
-
|
|
458
|
+
re.value = s({
|
|
465
459
|
seriesIndex: a,
|
|
466
460
|
datapoint: u,
|
|
467
461
|
series: S.value,
|
|
@@ -469,26 +463,26 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
469
463
|
});
|
|
470
464
|
else {
|
|
471
465
|
let r = "";
|
|
472
|
-
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>${
|
|
466
|
+
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>${R(
|
|
473
467
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
474
468
|
u.xValue,
|
|
475
|
-
|
|
469
|
+
V({
|
|
476
470
|
v: u.xValue,
|
|
477
471
|
r: t.value.style.chart.tooltip.roundingValue
|
|
478
472
|
}),
|
|
479
473
|
{ datapoint: u, category: l, categoryIndex: a }
|
|
480
|
-
)}</b></div>`, r += `<div>${t.value.style.chart.layout.grid.yAxis.name ? t.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${
|
|
474
|
+
)}</b></div>`, r += `<div>${t.value.style.chart.layout.grid.yAxis.name ? t.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${R(
|
|
481
475
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
482
476
|
u.yValue,
|
|
483
|
-
|
|
477
|
+
V({
|
|
484
478
|
v: u.yValue,
|
|
485
479
|
r: t.value.style.chart.tooltip.roundingValue
|
|
486
480
|
}),
|
|
487
481
|
{ datapoint: u, category: l, categoryIndex: a }
|
|
488
|
-
)}</b></div>`,
|
|
482
|
+
)}</b></div>`, re.value = `<div style="text-align:left;font-size:${t.value.style.chart.tooltip.fontSize}px">${r}</div>`;
|
|
489
483
|
}
|
|
490
484
|
}
|
|
491
|
-
function
|
|
485
|
+
function Oe(l, u) {
|
|
492
486
|
const a = {
|
|
493
487
|
category: l.name,
|
|
494
488
|
shape: l.shape,
|
|
@@ -498,9 +492,9 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
498
492
|
quadrantSide: u.quadrantSide,
|
|
499
493
|
sideName: t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text
|
|
500
494
|
};
|
|
501
|
-
|
|
495
|
+
se("selectPlot", a);
|
|
502
496
|
}
|
|
503
|
-
function
|
|
497
|
+
function Z(l) {
|
|
504
498
|
if (!l) return;
|
|
505
499
|
const u = S.value.flatMap((s) => s.series.filter((r) => r.quadrantSide === l).map((r) => ({
|
|
506
500
|
category: r.categoryName,
|
|
@@ -512,7 +506,7 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
512
506
|
sideName: t.value.style.chart.layout.labels.quadrantLabels[l].text,
|
|
513
507
|
items: [...u]
|
|
514
508
|
};
|
|
515
|
-
|
|
509
|
+
se("selectSide", a);
|
|
516
510
|
}
|
|
517
511
|
const w = g(() => ({
|
|
518
512
|
TL: {
|
|
@@ -620,7 +614,7 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
620
614
|
}
|
|
621
615
|
}
|
|
622
616
|
}));
|
|
623
|
-
function
|
|
617
|
+
function Re() {
|
|
624
618
|
return S.value.map((l) => ({
|
|
625
619
|
color: l.color,
|
|
626
620
|
name: l.name,
|
|
@@ -634,70 +628,70 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
634
628
|
}))
|
|
635
629
|
}));
|
|
636
630
|
}
|
|
637
|
-
function
|
|
638
|
-
|
|
639
|
-
const l = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], u =
|
|
640
|
-
|
|
631
|
+
function Ve() {
|
|
632
|
+
gt(() => {
|
|
633
|
+
const l = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], u = le.value.head, a = le.value.body, s = l.concat([u]).concat(a), r = Tt(s);
|
|
634
|
+
Wt({ csvContent: r, title: t.value.style.chart.title.text || "vue-ui-quadrant" });
|
|
641
635
|
});
|
|
642
636
|
}
|
|
643
|
-
const
|
|
644
|
-
function
|
|
645
|
-
|
|
637
|
+
const I = y(!1);
|
|
638
|
+
function ht(l) {
|
|
639
|
+
I.value = l, ye.value += 1;
|
|
646
640
|
}
|
|
647
|
-
function
|
|
641
|
+
function Pe() {
|
|
648
642
|
$.value.showTable = !$.value.showTable;
|
|
649
643
|
}
|
|
650
|
-
function
|
|
644
|
+
function Be() {
|
|
651
645
|
$.value.plotLabels.show = !$.value.plotLabels.show;
|
|
652
646
|
}
|
|
653
|
-
function
|
|
647
|
+
function Fe() {
|
|
654
648
|
$.value.showTooltip = !$.value.showTooltip;
|
|
655
649
|
}
|
|
656
|
-
const
|
|
657
|
-
function
|
|
658
|
-
|
|
650
|
+
const ue = y(!1);
|
|
651
|
+
function de() {
|
|
652
|
+
ue.value = !ue.value;
|
|
659
653
|
}
|
|
660
|
-
return
|
|
661
|
-
getData:
|
|
662
|
-
generatePdf:
|
|
663
|
-
generateCsv:
|
|
664
|
-
generateImage:
|
|
665
|
-
toggleTable:
|
|
666
|
-
toggleLabels:
|
|
667
|
-
toggleTooltip:
|
|
668
|
-
toggleAnnotator:
|
|
654
|
+
return Je({
|
|
655
|
+
getData: Re,
|
|
656
|
+
generatePdf: ze,
|
|
657
|
+
generateCsv: Ve,
|
|
658
|
+
generateImage: Te,
|
|
659
|
+
toggleTable: Pe,
|
|
660
|
+
toggleLabels: Be,
|
|
661
|
+
toggleTooltip: Fe,
|
|
662
|
+
toggleAnnotator: de
|
|
669
663
|
}), (l, u) => (o(), n("div", {
|
|
670
|
-
class: T(`vue-ui-quadrant ${
|
|
664
|
+
class: T(`vue-ui-quadrant ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
671
665
|
ref_key: "quadrantChart",
|
|
672
|
-
ref:
|
|
666
|
+
ref: G,
|
|
673
667
|
id: `vue-ui-quadrant_${z.value}`,
|
|
674
668
|
style: q(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive ? "height: 100%" : ""}`),
|
|
675
|
-
onMouseenter: u[16] || (u[16] = () =>
|
|
676
|
-
onMouseleave: u[17] || (u[17] = () =>
|
|
669
|
+
onMouseenter: u[16] || (u[16] = () => i(ke)(!0)),
|
|
670
|
+
onMouseleave: u[17] || (u[17] = () => i(ke)(!1))
|
|
677
671
|
}, [
|
|
678
|
-
t.value.userOptions.buttons.annotator ? (o(),
|
|
672
|
+
t.value.userOptions.buttons.annotator ? (o(), O(i(Ke), {
|
|
679
673
|
key: 0,
|
|
680
|
-
svgRef:
|
|
674
|
+
svgRef: i(we),
|
|
681
675
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
682
676
|
color: t.value.style.chart.color,
|
|
683
|
-
active:
|
|
684
|
-
onClose:
|
|
685
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
686
|
-
|
|
677
|
+
active: ue.value,
|
|
678
|
+
onClose: de
|
|
679
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
680
|
+
rt.value ? (o(), n("div", {
|
|
687
681
|
key: 1,
|
|
688
682
|
ref_key: "noTitle",
|
|
689
|
-
ref:
|
|
683
|
+
ref: ge,
|
|
690
684
|
class: "vue-data-ui-no-title-space",
|
|
691
685
|
style: "height:36px; width: 100%;background:transparent"
|
|
692
|
-
}, null, 512)) :
|
|
686
|
+
}, null, 512)) : h("", !0),
|
|
693
687
|
t.value.style.chart.title.text ? (o(), n("div", {
|
|
694
688
|
key: 2,
|
|
695
689
|
ref_key: "chartTitle",
|
|
696
|
-
ref:
|
|
690
|
+
ref: be,
|
|
697
691
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
698
692
|
}, [
|
|
699
|
-
(o(),
|
|
700
|
-
key: `table_${
|
|
693
|
+
(o(), O(Vt, {
|
|
694
|
+
key: `table_${me.value}`,
|
|
701
695
|
config: {
|
|
702
696
|
title: {
|
|
703
697
|
cy: "quadrant-title",
|
|
@@ -709,15 +703,15 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
709
703
|
}
|
|
710
704
|
}
|
|
711
705
|
}, null, 8, ["config"]))
|
|
712
|
-
], 512)) :
|
|
713
|
-
t.value.userOptions.show &&
|
|
706
|
+
], 512)) : h("", !0),
|
|
707
|
+
t.value.userOptions.show && K.value && (i(Le) || i(ne)) ? (o(), O(i(at), {
|
|
714
708
|
ref_key: "details",
|
|
715
|
-
ref:
|
|
716
|
-
key: `user_options_${
|
|
709
|
+
ref: st,
|
|
710
|
+
key: `user_options_${ye.value}`,
|
|
717
711
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
718
712
|
color: t.value.style.chart.color,
|
|
719
|
-
isImaging:
|
|
720
|
-
isPrinting:
|
|
713
|
+
isImaging: i(Se),
|
|
714
|
+
isPrinting: i(Ce),
|
|
721
715
|
uid: z.value,
|
|
722
716
|
hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
|
|
723
717
|
hasPdf: t.value.userOptions.buttons.pdf,
|
|
@@ -726,29 +720,29 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
726
720
|
hasTable: t.value.userOptions.buttons.table,
|
|
727
721
|
hasLabel: t.value.userOptions.buttons.labels,
|
|
728
722
|
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
729
|
-
isFullscreen:
|
|
723
|
+
isFullscreen: I.value,
|
|
730
724
|
isTooltip: $.value.showTooltip,
|
|
731
725
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
732
|
-
chartElement:
|
|
726
|
+
chartElement: G.value,
|
|
733
727
|
position: t.value.userOptions.position,
|
|
734
728
|
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
735
|
-
isAnnotation:
|
|
736
|
-
onToggleFullscreen:
|
|
737
|
-
onGeneratePdf:
|
|
738
|
-
onGenerateCsv:
|
|
739
|
-
onGenerateImage:
|
|
740
|
-
onToggleTable:
|
|
741
|
-
onToggleLabels:
|
|
742
|
-
onToggleTooltip:
|
|
743
|
-
onToggleAnnotator:
|
|
729
|
+
isAnnotation: ue.value,
|
|
730
|
+
onToggleFullscreen: ht,
|
|
731
|
+
onGeneratePdf: i(ze),
|
|
732
|
+
onGenerateCsv: Ve,
|
|
733
|
+
onGenerateImage: i(Te),
|
|
734
|
+
onToggleTable: Pe,
|
|
735
|
+
onToggleLabels: Be,
|
|
736
|
+
onToggleTooltip: Fe,
|
|
737
|
+
onToggleAnnotator: de,
|
|
744
738
|
style: q({
|
|
745
|
-
visibility:
|
|
739
|
+
visibility: i(Le) ? i(ne) ? "visible" : "hidden" : "visible"
|
|
746
740
|
})
|
|
747
|
-
},
|
|
741
|
+
}, ft({ _: 2 }, [
|
|
748
742
|
l.$slots.menuIcon ? {
|
|
749
743
|
name: "menuIcon",
|
|
750
744
|
fn: m(({ isOpen: a, color: s }) => [
|
|
751
|
-
x(l.$slots, "menuIcon",
|
|
745
|
+
x(l.$slots, "menuIcon", E(U({ isOpen: a, color: s })), void 0, !0)
|
|
752
746
|
]),
|
|
753
747
|
key: "0"
|
|
754
748
|
} : void 0,
|
|
@@ -797,42 +791,42 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
797
791
|
l.$slots.optionFullscreen ? {
|
|
798
792
|
name: "optionFullscreen",
|
|
799
793
|
fn: m(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
800
|
-
x(l.$slots, "optionFullscreen",
|
|
794
|
+
x(l.$slots, "optionFullscreen", E(U({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
801
795
|
]),
|
|
802
796
|
key: "7"
|
|
803
797
|
} : void 0,
|
|
804
798
|
l.$slots.optionAnnotator ? {
|
|
805
799
|
name: "optionAnnotator",
|
|
806
800
|
fn: m(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
807
|
-
x(l.$slots, "optionAnnotator",
|
|
801
|
+
x(l.$slots, "optionAnnotator", E(U({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
808
802
|
]),
|
|
809
803
|
key: "8"
|
|
810
804
|
} : void 0
|
|
811
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
812
|
-
|
|
805
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
806
|
+
K.value ? (o(), n("svg", {
|
|
813
807
|
key: 4,
|
|
814
808
|
ref_key: "svgRef",
|
|
815
|
-
ref:
|
|
816
|
-
xmlns:
|
|
817
|
-
class: T({ "vue-data-ui-fullscreen--on":
|
|
818
|
-
viewBox: `${
|
|
809
|
+
ref: we,
|
|
810
|
+
xmlns: i(_t),
|
|
811
|
+
class: T({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
812
|
+
viewBox: `${v.value.startX} ${v.value.startY} ${v.value.width} ${v.value.height}`,
|
|
819
813
|
style: q(`max-width:100%;overflow:${p.value ? "hidden" : "visible"};background:transparent;color:${t.value.style.chart.color}`),
|
|
820
814
|
id: `svg_${z.value}`
|
|
821
815
|
}, [
|
|
822
|
-
|
|
816
|
+
ce(i(ut)),
|
|
823
817
|
l.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
824
818
|
key: 0,
|
|
825
|
-
x:
|
|
826
|
-
y:
|
|
827
|
-
width:
|
|
828
|
-
height:
|
|
819
|
+
x: v.value.startX,
|
|
820
|
+
y: v.value.startY,
|
|
821
|
+
width: v.value.width,
|
|
822
|
+
height: v.value.height,
|
|
829
823
|
style: {
|
|
830
824
|
pointerEvents: "none"
|
|
831
825
|
}
|
|
832
826
|
}, [
|
|
833
827
|
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
834
|
-
], 8,
|
|
835
|
-
|
|
828
|
+
], 8, It)) : h("", !0),
|
|
829
|
+
c("defs", null, [
|
|
836
830
|
(o(!0), n(C, null, Y(S.value, (a, s) => (o(), n("radialGradient", {
|
|
837
831
|
cx: "50%",
|
|
838
832
|
cy: "50%",
|
|
@@ -841,19 +835,19 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
841
835
|
fy: "50%",
|
|
842
836
|
id: `quadrant_gradient_${z.value}_${s}`
|
|
843
837
|
}, [
|
|
844
|
-
|
|
838
|
+
c("stop", {
|
|
845
839
|
offset: "0%",
|
|
846
|
-
"stop-color":
|
|
847
|
-
}, null, 8,
|
|
848
|
-
|
|
840
|
+
"stop-color": i(oe)(i(Ct)(a.color, 0.05), t.value.style.chart.layout.areas.opacity)
|
|
841
|
+
}, null, 8, Ut),
|
|
842
|
+
c("stop", {
|
|
849
843
|
offset: "100%",
|
|
850
|
-
"stop-color":
|
|
851
|
-
}, null, 8,
|
|
852
|
-
], 8,
|
|
844
|
+
"stop-color": i(oe)(a.color, t.value.style.chart.layout.areas.opacity)
|
|
845
|
+
}, null, 8, Dt)
|
|
846
|
+
], 8, Et))), 256))
|
|
853
847
|
]),
|
|
854
|
-
t.value.style.chart.layout.grid.graduations.show ? (o(), n("g",
|
|
855
|
-
(o(!0), n(C, null, Y(
|
|
856
|
-
fill: t.value.style.chart.layout.grid.graduations.fill ?
|
|
848
|
+
t.value.style.chart.layout.grid.graduations.show ? (o(), n("g", Gt, [
|
|
849
|
+
(o(!0), n(C, null, Y(it.value, (a) => (o(), n("rect", {
|
|
850
|
+
fill: t.value.style.chart.layout.grid.graduations.fill ? i(oe)(t.value.style.chart.layout.grid.graduations.color, a.opacity) : "none",
|
|
857
851
|
x: a.x,
|
|
858
852
|
y: a.y,
|
|
859
853
|
height: a.height <= 0 ? 1e-3 : a.height,
|
|
@@ -861,47 +855,47 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
861
855
|
"stroke-width": t.value.style.chart.layout.grid.graduations.strokeWidth,
|
|
862
856
|
stroke: t.value.style.chart.layout.grid.graduations.stroke,
|
|
863
857
|
rx: t.value.style.chart.layout.grid.graduations.roundingForce
|
|
864
|
-
}, null, 8,
|
|
865
|
-
])) :
|
|
866
|
-
|
|
858
|
+
}, null, 8, Qt))), 256))
|
|
859
|
+
])) : h("", !0),
|
|
860
|
+
c("line", {
|
|
867
861
|
x1: e.value.left,
|
|
868
862
|
y1: e.value.centerY,
|
|
869
863
|
x2: e.value.right,
|
|
870
864
|
y2: e.value.centerY,
|
|
871
865
|
stroke: t.value.style.chart.layout.grid.stroke,
|
|
872
866
|
"stroke-width": t.value.style.chart.layout.grid.strokeWidth
|
|
873
|
-
}, null, 8,
|
|
874
|
-
|
|
867
|
+
}, null, 8, Jt),
|
|
868
|
+
c("line", {
|
|
875
869
|
x1: e.value.centerX,
|
|
876
870
|
y1: e.value.top,
|
|
877
871
|
x2: e.value.centerX,
|
|
878
872
|
y2: e.value.bottom,
|
|
879
873
|
stroke: t.value.style.chart.layout.grid.stroke,
|
|
880
874
|
"stroke-width": t.value.style.chart.layout.grid.strokeWidth
|
|
881
|
-
}, null, 8,
|
|
882
|
-
t.value.style.chart.layout.grid.showArrows ? (o(), n("g",
|
|
883
|
-
|
|
875
|
+
}, null, 8, jt),
|
|
876
|
+
t.value.style.chart.layout.grid.showArrows ? (o(), n("g", Zt, [
|
|
877
|
+
c("polygon", {
|
|
884
878
|
points: `${e.value.right - 8},${e.value.centerY - 6} ${e.value.right},${e.value.centerY} ${e.value.right - 8},${e.value.centerY + 6}`,
|
|
885
879
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
886
880
|
stroke: "none"
|
|
887
|
-
}, null, 8,
|
|
888
|
-
|
|
881
|
+
}, null, 8, Kt),
|
|
882
|
+
c("polygon", {
|
|
889
883
|
points: `${e.value.left + 8},${e.value.centerY - 6} ${e.value.left},${e.value.centerY} ${e.value.left + 8},${e.value.centerY + 6}`,
|
|
890
884
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
891
885
|
stroke: "none"
|
|
892
|
-
}, null, 8,
|
|
893
|
-
|
|
886
|
+
}, null, 8, el),
|
|
887
|
+
c("polygon", {
|
|
894
888
|
points: `${e.value.centerX - 6},${e.value.top + 8} ${e.value.centerX},${e.value.top} ${e.value.centerX + 6},${e.value.top + 8}`,
|
|
895
889
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
896
890
|
stroke: "none"
|
|
897
|
-
}, null, 8,
|
|
898
|
-
|
|
891
|
+
}, null, 8, tl),
|
|
892
|
+
c("polygon", {
|
|
899
893
|
points: `${e.value.centerX - 6},${e.value.bottom - 8} ${e.value.centerX},${e.value.bottom} ${e.value.centerX + 6},${e.value.bottom - 8}`,
|
|
900
894
|
fill: t.value.style.chart.layout.grid.stroke,
|
|
901
895
|
stroke: "none"
|
|
902
|
-
}, null, 8,
|
|
903
|
-
])) :
|
|
904
|
-
t.value.style.chart.layout.labels.quadrantLabels.show && !p.value ? (o(), n("g",
|
|
896
|
+
}, null, 8, ll)
|
|
897
|
+
])) : h("", !0),
|
|
898
|
+
t.value.style.chart.layout.labels.quadrantLabels.show && !p.value ? (o(), n("g", al, [
|
|
905
899
|
t.value.style.chart.layout.labels.quadrantLabels.tl.text ? (o(), n("text", {
|
|
906
900
|
key: 0,
|
|
907
901
|
x: 0,
|
|
@@ -910,8 +904,8 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
910
904
|
fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
911
905
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
912
906
|
style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
|
|
913
|
-
onClick: u[0] || (u[0] = (a) =>
|
|
914
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.tl.text), 13,
|
|
907
|
+
onClick: u[0] || (u[0] = (a) => Z("tl"))
|
|
908
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, ul)) : h("", !0),
|
|
915
909
|
t.value.style.chart.layout.labels.quadrantLabels.tr.text ? (o(), n("text", {
|
|
916
910
|
key: 1,
|
|
917
911
|
x: e.value.width,
|
|
@@ -920,8 +914,8 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
920
914
|
fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
921
915
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
922
916
|
style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
|
|
923
|
-
onClick: u[1] || (u[1] = (a) =>
|
|
924
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.tr.text), 13,
|
|
917
|
+
onClick: u[1] || (u[1] = (a) => Z("tr"))
|
|
918
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, ol)) : h("", !0),
|
|
925
919
|
t.value.style.chart.layout.labels.quadrantLabels.br.text ? (o(), n("text", {
|
|
926
920
|
key: 2,
|
|
927
921
|
x: e.value.width,
|
|
@@ -930,8 +924,8 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
930
924
|
fill: t.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
931
925
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
932
926
|
style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
|
|
933
|
-
onClick: u[2] || (u[2] = (a) =>
|
|
934
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.br.text), 13,
|
|
927
|
+
onClick: u[2] || (u[2] = (a) => Z("br"))
|
|
928
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.br.text), 13, sl)) : h("", !0),
|
|
935
929
|
t.value.style.chart.layout.labels.quadrantLabels.bl.text ? (o(), n("text", {
|
|
936
930
|
key: 3,
|
|
937
931
|
x: 0,
|
|
@@ -940,131 +934,131 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
940
934
|
fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
941
935
|
"font-size": t.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
942
936
|
style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
|
|
943
|
-
onClick: u[3] || (u[3] = (a) =>
|
|
944
|
-
}, L(t.value.style.chart.layout.labels.quadrantLabels.bl.text), 13,
|
|
945
|
-
])) :
|
|
946
|
-
t.value.style.chart.layout.labels.axisLabels.show ? (o(), n("g",
|
|
947
|
-
|
|
937
|
+
onClick: u[3] || (u[3] = (a) => Z("bl"))
|
|
938
|
+
}, L(t.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, rl)) : h("", !0)
|
|
939
|
+
])) : h("", !0),
|
|
940
|
+
t.value.style.chart.layout.labels.axisLabels.show ? (o(), n("g", nl, [
|
|
941
|
+
c("text", {
|
|
948
942
|
x: e.value.centerX,
|
|
949
943
|
y: e.value.top - e.value.padding / 6,
|
|
950
944
|
"text-anchor": "middle",
|
|
951
945
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
952
946
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
953
|
-
}, L(
|
|
947
|
+
}, L(i(R)(
|
|
954
948
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
955
949
|
_.value.y.max,
|
|
956
|
-
|
|
950
|
+
i(V)({
|
|
957
951
|
v: _.value.y.max,
|
|
958
952
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
959
953
|
})
|
|
960
|
-
)), 9,
|
|
961
|
-
|
|
954
|
+
)), 9, il),
|
|
955
|
+
c("text", {
|
|
962
956
|
x: e.value.centerX,
|
|
963
957
|
y: e.value.top - e.value.padding / 2,
|
|
964
958
|
"text-anchor": "middle",
|
|
965
959
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
966
960
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
967
|
-
}, L(t.value.style.chart.layout.grid.yAxis.name), 9,
|
|
968
|
-
|
|
961
|
+
}, L(t.value.style.chart.layout.grid.yAxis.name), 9, vl),
|
|
962
|
+
c("text", {
|
|
969
963
|
x: e.value.centerX,
|
|
970
964
|
y: e.value.bottom + e.value.padding * 0.35,
|
|
971
965
|
"text-anchor": "middle",
|
|
972
966
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
973
967
|
fill: t.value.style.chart.layout.labels.axisLabels.color.negative
|
|
974
|
-
}, L(
|
|
968
|
+
}, L(i(R)(
|
|
975
969
|
t.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
976
970
|
_.value.y.min,
|
|
977
|
-
|
|
971
|
+
i(V)({
|
|
978
972
|
v: _.value.y.min,
|
|
979
973
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
980
974
|
})
|
|
981
|
-
)), 9,
|
|
982
|
-
|
|
975
|
+
)), 9, dl),
|
|
976
|
+
c("text", {
|
|
983
977
|
id: `xLabelMin_${z.value}`,
|
|
984
978
|
"text-anchor": "middle",
|
|
985
979
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
986
980
|
transform: `translate(${e.value.padding - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(-90)`,
|
|
987
981
|
fill: t.value.style.chart.layout.labels.axisLabels.color.negative
|
|
988
|
-
}, L(
|
|
982
|
+
}, L(i(R)(
|
|
989
983
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
990
984
|
_.value.x.min,
|
|
991
|
-
|
|
985
|
+
i(V)({
|
|
992
986
|
v: _.value.x.min,
|
|
993
987
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
994
988
|
})
|
|
995
|
-
)), 9,
|
|
996
|
-
|
|
989
|
+
)), 9, cl),
|
|
990
|
+
c("text", {
|
|
997
991
|
id: `xLabelMax_${z.value}`,
|
|
998
992
|
"text-anchor": "middle",
|
|
999
993
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1000
994
|
transform: `translate(${e.value.width - e.value.padding + t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
|
|
1001
995
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1002
|
-
}, L(
|
|
996
|
+
}, L(i(R)(
|
|
1003
997
|
t.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
1004
998
|
_.value.x.max,
|
|
1005
|
-
|
|
999
|
+
i(V)({
|
|
1006
1000
|
v: _.value.x.max,
|
|
1007
1001
|
r: t.value.style.chart.layout.labels.plotLabels.rounding
|
|
1008
1002
|
})
|
|
1009
|
-
)), 9,
|
|
1010
|
-
|
|
1003
|
+
)), 9, hl),
|
|
1004
|
+
c("text", {
|
|
1011
1005
|
id: `xLabelMaxName_${z.value}`,
|
|
1012
1006
|
"text-anchor": "middle",
|
|
1013
1007
|
"font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1014
1008
|
transform: `translate(${e.value.width - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
|
|
1015
1009
|
fill: t.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1016
|
-
}, L(t.value.style.chart.layout.grid.xAxis.name), 9,
|
|
1017
|
-
])) :
|
|
1018
|
-
t.value.style.chart.layout.areas.show ? (o(), n("g",
|
|
1010
|
+
}, L(t.value.style.chart.layout.grid.xAxis.name), 9, yl)
|
|
1011
|
+
])) : h("", !0),
|
|
1012
|
+
t.value.style.chart.layout.areas.show ? (o(), n("g", bl, [
|
|
1019
1013
|
(o(!0), n(C, null, Y(S.value, (a, s) => (o(), n("g", null, [
|
|
1020
1014
|
a.series.length > 2 ? (o(), n("polygon", {
|
|
1021
1015
|
key: 0,
|
|
1022
1016
|
"data-cy-quadrant-area": "",
|
|
1023
|
-
fill: t.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${z.value}_${s})` :
|
|
1024
|
-
points:
|
|
1025
|
-
}, null, 8,
|
|
1017
|
+
fill: t.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${z.value}_${s})` : i(oe)(a.color, t.value.style.chart.layout.areas.opacity),
|
|
1018
|
+
points: i(St)(a)
|
|
1019
|
+
}, null, 8, fl)) : h("", !0)
|
|
1026
1020
|
]))), 256))
|
|
1027
|
-
])) :
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
onClick: u[4] || (u[4] = (a) =>
|
|
1021
|
+
])) : h("", !0),
|
|
1022
|
+
c("g", null, [
|
|
1023
|
+
c("rect", {
|
|
1024
|
+
onClick: u[4] || (u[4] = (a) => M("TL")),
|
|
1031
1025
|
x: e.value.left,
|
|
1032
1026
|
y: e.value.top,
|
|
1033
1027
|
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
1034
1028
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1035
1029
|
fill: "transparent",
|
|
1036
1030
|
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1037
|
-
}, null, 10,
|
|
1038
|
-
|
|
1039
|
-
onClick: u[5] || (u[5] = (a) =>
|
|
1031
|
+
}, null, 10, pl),
|
|
1032
|
+
c("rect", {
|
|
1033
|
+
onClick: u[5] || (u[5] = (a) => M("TR")),
|
|
1040
1034
|
x: e.value.centerX,
|
|
1041
1035
|
y: e.value.top,
|
|
1042
1036
|
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
1043
1037
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1044
1038
|
fill: "transparent",
|
|
1045
1039
|
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1046
|
-
}, null, 10,
|
|
1047
|
-
|
|
1048
|
-
onClick: u[6] || (u[6] = (a) =>
|
|
1040
|
+
}, null, 10, gl),
|
|
1041
|
+
c("rect", {
|
|
1042
|
+
onClick: u[6] || (u[6] = (a) => M("BR")),
|
|
1049
1043
|
x: e.value.centerX,
|
|
1050
1044
|
y: e.value.centerY,
|
|
1051
1045
|
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
1052
1046
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1053
1047
|
fill: "transparent",
|
|
1054
1048
|
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1055
|
-
}, null, 10,
|
|
1056
|
-
|
|
1057
|
-
onClick: u[7] || (u[7] = (a) =>
|
|
1049
|
+
}, null, 10, ml),
|
|
1050
|
+
c("rect", {
|
|
1051
|
+
onClick: u[7] || (u[7] = (a) => M("BL")),
|
|
1058
1052
|
x: e.value.left,
|
|
1059
1053
|
y: e.value.centerY,
|
|
1060
1054
|
width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
|
|
1061
1055
|
height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
|
|
1062
1056
|
fill: "transparent",
|
|
1063
1057
|
class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
|
|
1064
|
-
}, null, 10,
|
|
1058
|
+
}, null, 10, xl)
|
|
1065
1059
|
]),
|
|
1066
1060
|
t.value.style.chart.layout.labels.plotLabels.showAsTag ? (o(), n(C, { key: 7 }, [
|
|
1067
|
-
$.value.plotLabels.show ? (o(), n("g",
|
|
1061
|
+
$.value.plotLabels.show ? (o(), n("g", Ll, [
|
|
1068
1062
|
(o(!0), n(C, null, Y(S.value, (a, s) => (o(), n(C, null, [
|
|
1069
1063
|
(o(!0), n(C, null, Y(a.series, (r) => (o(), n("foreignObject", {
|
|
1070
1064
|
style: { overflow: "visible" },
|
|
@@ -1072,36 +1066,36 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
1072
1066
|
width: "100",
|
|
1073
1067
|
x: r.x - 50,
|
|
1074
1068
|
y: r.y - t.value.style.chart.layout.labels.plotLabels.fontSize,
|
|
1075
|
-
onMouseover: (b) =>
|
|
1069
|
+
onMouseover: (b) => Ne(a, r, s),
|
|
1076
1070
|
onMouseleave: u[9] || (u[9] = (b) => {
|
|
1077
|
-
|
|
1071
|
+
ee.value = !1, J.value = null, j.value = null;
|
|
1078
1072
|
}),
|
|
1079
|
-
onClick: (b) =>
|
|
1073
|
+
onClick: (b) => Oe(a, r)
|
|
1080
1074
|
}, [
|
|
1081
|
-
|
|
1082
|
-
style: q(`color:${
|
|
1075
|
+
c("div", {
|
|
1076
|
+
style: q(`color:${i(zt)(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: ${t.value.style.chart.layout.labels.plotLabels.fontSize * 1.5}px`)
|
|
1083
1077
|
}, L(r.name), 5)
|
|
1084
|
-
], 40,
|
|
1078
|
+
], 40, wl))), 256))
|
|
1085
1079
|
], 64))), 256))
|
|
1086
|
-
])) :
|
|
1080
|
+
])) : h("", !0)
|
|
1087
1081
|
], 64)) : (o(), n(C, { key: 6 }, [
|
|
1088
1082
|
(o(!0), n(C, null, Y(S.value, (a, s) => (o(), n("g", null, [
|
|
1089
|
-
(o(!0), n(C, null, Y(a.series, (r) => (o(),
|
|
1083
|
+
(o(!0), n(C, null, Y(a.series, (r) => (o(), O(Ge, {
|
|
1090
1084
|
color: a.color,
|
|
1091
|
-
isSelected:
|
|
1085
|
+
isSelected: J.value && r.uid === J.value,
|
|
1092
1086
|
plot: r,
|
|
1093
1087
|
radius: t.value.style.chart.layout.plots.radius / (p.value ? 1.5 : 1),
|
|
1094
1088
|
shape: a.shape,
|
|
1095
1089
|
stroke: t.value.style.chart.layout.plots.outline ? t.value.style.chart.layout.plots.outlineColor : "none",
|
|
1096
1090
|
strokeWidth: t.value.style.chart.layout.plots.outlineWidth,
|
|
1097
|
-
onMouseenter: (b) =>
|
|
1091
|
+
onMouseenter: (b) => Ne(a, r, s),
|
|
1098
1092
|
onMouseleave: u[8] || (u[8] = (b) => {
|
|
1099
|
-
|
|
1093
|
+
ee.value = !1, J.value = null, j.value = null;
|
|
1100
1094
|
}),
|
|
1101
|
-
onClick: (b) =>
|
|
1095
|
+
onClick: (b) => Oe(a, r)
|
|
1102
1096
|
}, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseenter", "onClick"]))), 256))
|
|
1103
1097
|
]))), 256)),
|
|
1104
|
-
$.value.plotLabels.show ? (o(), n("g",
|
|
1098
|
+
$.value.plotLabels.show ? (o(), n("g", $l, [
|
|
1105
1099
|
(o(!0), n(C, null, Y(S.value, (a) => (o(), n("g", null, [
|
|
1106
1100
|
(o(!0), n(C, null, Y(a.series, (s) => (o(), n("text", {
|
|
1107
1101
|
x: s.x,
|
|
@@ -1109,106 +1103,106 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
1109
1103
|
"text-anchor": "middle",
|
|
1110
1104
|
"font-size": t.value.style.chart.layout.labels.plotLabels.fontSize / (p.value ? 1.5 : 1),
|
|
1111
1105
|
fill: t.value.style.chart.layout.labels.plotLabels.color
|
|
1112
|
-
}, L(s.name), 9,
|
|
1106
|
+
}, L(s.name), 9, kl))), 256))
|
|
1113
1107
|
]))), 256))
|
|
1114
|
-
])) :
|
|
1108
|
+
])) : h("", !0)
|
|
1115
1109
|
], 64)),
|
|
1116
|
-
p.value ? (o(), n("g",
|
|
1117
|
-
|
|
1110
|
+
p.value ? (o(), n("g", ql, [
|
|
1111
|
+
d.value === "TL" ? (o(), n("polygon", {
|
|
1118
1112
|
key: 0,
|
|
1119
1113
|
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}`,
|
|
1120
1114
|
fill: t.value.style.chart.backgroundColor,
|
|
1121
1115
|
style: { opacity: "1" }
|
|
1122
|
-
}, null, 8,
|
|
1123
|
-
|
|
1116
|
+
}, null, 8, _l)) : h("", !0),
|
|
1117
|
+
d.value === "TR" ? (o(), n("polygon", {
|
|
1124
1118
|
key: 1,
|
|
1125
1119
|
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}`,
|
|
1126
1120
|
fill: t.value.style.chart.backgroundColor,
|
|
1127
1121
|
style: { opacity: "1" }
|
|
1128
|
-
}, null, 8,
|
|
1129
|
-
|
|
1122
|
+
}, null, 8, Cl)) : h("", !0),
|
|
1123
|
+
d.value === "BR" ? (o(), n("polygon", {
|
|
1130
1124
|
key: 2,
|
|
1131
1125
|
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}`,
|
|
1132
1126
|
fill: t.value.style.chart.backgroundColor,
|
|
1133
1127
|
style: { opacity: "1" }
|
|
1134
|
-
}, null, 8,
|
|
1135
|
-
|
|
1128
|
+
}, null, 8, Sl)) : h("", !0),
|
|
1129
|
+
d.value === "BL" ? (o(), n("polygon", {
|
|
1136
1130
|
key: 3,
|
|
1137
1131
|
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}`,
|
|
1138
1132
|
fill: t.value.style.chart.backgroundColor,
|
|
1139
1133
|
style: { opacity: "1" }
|
|
1140
|
-
}, null, 8,
|
|
1141
|
-
])) :
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
x:
|
|
1145
|
-
y:
|
|
1146
|
-
"font-size":
|
|
1147
|
-
fill:
|
|
1134
|
+
}, null, 8, zl)) : h("", !0)
|
|
1135
|
+
])) : h("", !0),
|
|
1136
|
+
d.value && !te.value ? (o(), n("g", Tl, [
|
|
1137
|
+
c("text", {
|
|
1138
|
+
x: P.value.x,
|
|
1139
|
+
y: P.value.y - P.value.fontSize / 1.5,
|
|
1140
|
+
"font-size": P.value.fontSize / 1.5,
|
|
1141
|
+
fill: P.value.fill,
|
|
1148
1142
|
"text-anchor": "middle",
|
|
1149
|
-
"font-weight":
|
|
1150
|
-
}, L(
|
|
1151
|
-
])) :
|
|
1152
|
-
p.value &&
|
|
1153
|
-
|
|
1154
|
-
x: w.value[
|
|
1155
|
-
y: w.value[
|
|
1143
|
+
"font-weight": P.value.bold ? "bold" : "normal"
|
|
1144
|
+
}, L(P.value.text), 9, Wl)
|
|
1145
|
+
])) : h("", !0),
|
|
1146
|
+
p.value && d.value ? (o(), n("g", Xl, [
|
|
1147
|
+
c("rect", {
|
|
1148
|
+
x: w.value[d.value].tl.x,
|
|
1149
|
+
y: w.value[d.value].tl.y,
|
|
1156
1150
|
height: "20",
|
|
1157
1151
|
width: "20",
|
|
1158
|
-
fill: w.value[
|
|
1159
|
-
style: q(`cursor: pointer; opacity: ${
|
|
1160
|
-
onClick: u[10] || (u[10] = (a) =>
|
|
1161
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1162
|
-
}, null, 14,
|
|
1163
|
-
|
|
1164
|
-
x: w.value[
|
|
1165
|
-
y: w.value[
|
|
1152
|
+
fill: w.value[d.value].tl.fill,
|
|
1153
|
+
style: q(`cursor: pointer; opacity: ${d.value === "TL" ? 1 : 0.2}`),
|
|
1154
|
+
onClick: u[10] || (u[10] = (a) => M("TL")),
|
|
1155
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "TL" })
|
|
1156
|
+
}, null, 14, Yl),
|
|
1157
|
+
c("rect", {
|
|
1158
|
+
x: w.value[d.value].tr.x,
|
|
1159
|
+
y: w.value[d.value].tr.y,
|
|
1166
1160
|
height: "20",
|
|
1167
1161
|
width: "20",
|
|
1168
|
-
fill: w.value[
|
|
1169
|
-
style: q(`cursor: pointer; opacity: ${
|
|
1170
|
-
onClick: u[11] || (u[11] = (a) =>
|
|
1171
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1172
|
-
}, null, 14,
|
|
1173
|
-
|
|
1174
|
-
x: w.value[
|
|
1175
|
-
y: w.value[
|
|
1162
|
+
fill: w.value[d.value].tr.fill,
|
|
1163
|
+
style: q(`cursor: pointer; opacity: ${d.value === "TR" ? 1 : 0.2}`),
|
|
1164
|
+
onClick: u[11] || (u[11] = (a) => M("TR")),
|
|
1165
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "TR" })
|
|
1166
|
+
}, null, 14, Al),
|
|
1167
|
+
c("rect", {
|
|
1168
|
+
x: w.value[d.value].br.x,
|
|
1169
|
+
y: w.value[d.value].br.y,
|
|
1176
1170
|
height: "20",
|
|
1177
1171
|
width: "20",
|
|
1178
|
-
fill: w.value[
|
|
1179
|
-
style: q(`cursor: pointer; opacity: ${
|
|
1180
|
-
onClick: u[12] || (u[12] = (a) =>
|
|
1181
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1182
|
-
}, null, 14,
|
|
1183
|
-
|
|
1184
|
-
x: w.value[
|
|
1185
|
-
y: w.value[
|
|
1172
|
+
fill: w.value[d.value].br.fill,
|
|
1173
|
+
style: q(`cursor: pointer; opacity: ${d.value === "BR" ? 1 : 0.2}`),
|
|
1174
|
+
onClick: u[12] || (u[12] = (a) => M("BR")),
|
|
1175
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "BR" })
|
|
1176
|
+
}, null, 14, Ml),
|
|
1177
|
+
c("rect", {
|
|
1178
|
+
x: w.value[d.value].bl.x,
|
|
1179
|
+
y: w.value[d.value].bl.y,
|
|
1186
1180
|
height: "20",
|
|
1187
1181
|
width: "20",
|
|
1188
|
-
fill: w.value[
|
|
1189
|
-
style: q(`cursor: pointer; opacity: ${
|
|
1190
|
-
onClick: u[13] || (u[13] = (a) =>
|
|
1191
|
-
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable":
|
|
1192
|
-
}, null, 14,
|
|
1193
|
-
|
|
1182
|
+
fill: w.value[d.value].bl.fill,
|
|
1183
|
+
style: q(`cursor: pointer; opacity: ${d.value === "BL" ? 1 : 0.2}`),
|
|
1184
|
+
onClick: u[13] || (u[13] = (a) => M("BL")),
|
|
1185
|
+
class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "BL" })
|
|
1186
|
+
}, null, 14, Nl),
|
|
1187
|
+
c("path", {
|
|
1194
1188
|
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1195
1189
|
stroke: t.value.style.chart.backgroundColor,
|
|
1196
1190
|
"stroke-width": 1,
|
|
1197
|
-
d: w.value[
|
|
1198
|
-
}, null, 8,
|
|
1199
|
-
|
|
1191
|
+
d: w.value[d.value].crosshairs.horizontal
|
|
1192
|
+
}, null, 8, Ol),
|
|
1193
|
+
c("path", {
|
|
1200
1194
|
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1201
1195
|
stroke: t.value.style.chart.backgroundColor,
|
|
1202
1196
|
"stroke-width": 1,
|
|
1203
|
-
d: w.value[
|
|
1204
|
-
}, null, 8,
|
|
1205
|
-
])) :
|
|
1197
|
+
d: w.value[d.value].crosshairs.vertical
|
|
1198
|
+
}, null, 8, Rl)
|
|
1199
|
+
])) : h("", !0),
|
|
1206
1200
|
x(l.$slots, "svg", { svg: e.value }, void 0, !0)
|
|
1207
|
-
], 14,
|
|
1208
|
-
l.$slots.watermark ? (o(), n("div",
|
|
1209
|
-
x(l.$slots, "watermark",
|
|
1210
|
-
])) :
|
|
1211
|
-
|
|
1201
|
+
], 14, Ht)) : h("", !0),
|
|
1202
|
+
l.$slots.watermark ? (o(), n("div", Vl, [
|
|
1203
|
+
x(l.$slots, "watermark", E(U({ isPrinting: i(Ce) || i(Se) })), void 0, !0)
|
|
1204
|
+
])) : h("", !0),
|
|
1205
|
+
K.value ? h("", !0) : (o(), O(i(tt), {
|
|
1212
1206
|
key: 6,
|
|
1213
1207
|
config: {
|
|
1214
1208
|
type: "quadrant",
|
|
@@ -1226,38 +1220,38 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
1226
1220
|
}
|
|
1227
1221
|
}
|
|
1228
1222
|
}, null, 8, ["config"])),
|
|
1229
|
-
|
|
1223
|
+
c("div", {
|
|
1230
1224
|
ref_key: "chartLegend",
|
|
1231
|
-
ref:
|
|
1225
|
+
ref: fe
|
|
1232
1226
|
}, [
|
|
1233
|
-
t.value.style.chart.legend.show ? (o(),
|
|
1234
|
-
key: `legend_${
|
|
1235
|
-
legendSet:
|
|
1236
|
-
config:
|
|
1237
|
-
onClickMarker: u[14] || (u[14] = ({ legend: a }) =>
|
|
1227
|
+
t.value.style.chart.legend.show ? (o(), O(Pt, {
|
|
1228
|
+
key: `legend_${$e.value}`,
|
|
1229
|
+
legendSet: Ae.value,
|
|
1230
|
+
config: ct.value,
|
|
1231
|
+
onClickMarker: u[14] || (u[14] = ({ legend: a }) => ie(a.id))
|
|
1238
1232
|
}, {
|
|
1239
1233
|
item: m(({ legend: a }) => [
|
|
1240
|
-
|
|
1241
|
-
onClick: (s) =>
|
|
1242
|
-
style: q(`opacity:${
|
|
1243
|
-
}, L(a.name), 13,
|
|
1234
|
+
c("div", {
|
|
1235
|
+
onClick: (s) => ie(a.id),
|
|
1236
|
+
style: q(`opacity:${N.value.includes(a.id) ? 0.5 : 1}`)
|
|
1237
|
+
}, L(a.name), 13, Pl)
|
|
1244
1238
|
]),
|
|
1245
1239
|
_: 1
|
|
1246
1240
|
}, 8, ["legendSet", "config"])) : x(l.$slots, "legend", {
|
|
1247
1241
|
key: 1,
|
|
1248
|
-
legend:
|
|
1242
|
+
legend: Ae.value
|
|
1249
1243
|
}, void 0, !0)
|
|
1250
1244
|
], 512),
|
|
1251
1245
|
l.$slots.source ? (o(), n("div", {
|
|
1252
1246
|
key: 7,
|
|
1253
1247
|
ref_key: "source",
|
|
1254
|
-
ref:
|
|
1248
|
+
ref: pe,
|
|
1255
1249
|
dir: "auto"
|
|
1256
1250
|
}, [
|
|
1257
1251
|
x(l.$slots, "source", {}, void 0, !0)
|
|
1258
|
-
], 512)) :
|
|
1259
|
-
|
|
1260
|
-
show: $.value.showTooltip &&
|
|
1252
|
+
], 512)) : h("", !0),
|
|
1253
|
+
ce(i(lt), {
|
|
1254
|
+
show: $.value.showTooltip && ee.value,
|
|
1261
1255
|
backgroundColor: t.value.style.chart.tooltip.backgroundColor,
|
|
1262
1256
|
color: t.value.style.chart.tooltip.color,
|
|
1263
1257
|
borderRadius: t.value.style.chart.tooltip.borderRadius,
|
|
@@ -1267,32 +1261,32 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
1267
1261
|
backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
|
|
1268
1262
|
position: t.value.style.chart.tooltip.position,
|
|
1269
1263
|
offsetY: t.value.style.chart.tooltip.offsetY,
|
|
1270
|
-
parent:
|
|
1271
|
-
content:
|
|
1272
|
-
isFullscreen:
|
|
1264
|
+
parent: G.value,
|
|
1265
|
+
content: re.value,
|
|
1266
|
+
isFullscreen: I.value,
|
|
1273
1267
|
isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function"
|
|
1274
1268
|
}, {
|
|
1275
1269
|
"tooltip-before": m(() => [
|
|
1276
|
-
x(l.$slots, "tooltip-before",
|
|
1270
|
+
x(l.$slots, "tooltip-before", E(U({ ...ve.value })), void 0, !0)
|
|
1277
1271
|
]),
|
|
1278
1272
|
"tooltip-after": m(() => [
|
|
1279
|
-
x(l.$slots, "tooltip-after",
|
|
1273
|
+
x(l.$slots, "tooltip-after", E(U({ ...ve.value })), void 0, !0)
|
|
1280
1274
|
]),
|
|
1281
1275
|
default: m(() => [
|
|
1282
|
-
t.value.style.chart.tooltip.showShape ? (o(), n("svg",
|
|
1283
|
-
|
|
1276
|
+
t.value.style.chart.tooltip.showShape ? (o(), n("svg", Bl, [
|
|
1277
|
+
ce(Ge, {
|
|
1284
1278
|
plot: { x: 10, y: 10 },
|
|
1285
|
-
shape:
|
|
1286
|
-
color:
|
|
1279
|
+
shape: j.value.shape,
|
|
1280
|
+
color: j.value.color,
|
|
1287
1281
|
radius: 8,
|
|
1288
1282
|
stroke: t.value.style.chart.layout.plots.outline ? t.value.style.chart.layout.plots.outlineColor : "none",
|
|
1289
1283
|
"stroke-width": t.value.style.chart.layout.plots.outlineWidth
|
|
1290
1284
|
}, null, 8, ["shape", "color", "stroke", "stroke-width"])
|
|
1291
|
-
])) :
|
|
1285
|
+
])) : h("", !0)
|
|
1292
1286
|
]),
|
|
1293
1287
|
_: 3
|
|
1294
1288
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1295
|
-
|
|
1289
|
+
K.value ? (o(), O(i(et), {
|
|
1296
1290
|
key: 8,
|
|
1297
1291
|
hideDetails: "",
|
|
1298
1292
|
config: {
|
|
@@ -1309,31 +1303,31 @@ const Vt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "he
|
|
|
1309
1303
|
}
|
|
1310
1304
|
}, {
|
|
1311
1305
|
content: m(() => [
|
|
1312
|
-
(o(),
|
|
1313
|
-
key: `table_${
|
|
1314
|
-
colNames:
|
|
1315
|
-
head:
|
|
1316
|
-
body:
|
|
1317
|
-
config:
|
|
1306
|
+
(o(), O(i(Ze), {
|
|
1307
|
+
key: `table_${xe.value}`,
|
|
1308
|
+
colNames: ae.value.colNames,
|
|
1309
|
+
head: ae.value.head,
|
|
1310
|
+
body: ae.value.body,
|
|
1311
|
+
config: ae.value.config,
|
|
1318
1312
|
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1319
1313
|
onClose: u[15] || (u[15] = (a) => $.value.showTable = !1)
|
|
1320
1314
|
}, {
|
|
1321
1315
|
th: m(({ th: a }) => [
|
|
1322
|
-
|
|
1316
|
+
pt(L(a), 1)
|
|
1323
1317
|
]),
|
|
1324
1318
|
td: m(({ td: a }) => [
|
|
1325
|
-
|
|
1319
|
+
c("div", {
|
|
1326
1320
|
innerHTML: a.name || a
|
|
1327
|
-
}, null, 8,
|
|
1321
|
+
}, null, 8, Fl)
|
|
1328
1322
|
]),
|
|
1329
1323
|
_: 1
|
|
1330
1324
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1331
1325
|
]),
|
|
1332
1326
|
_: 1
|
|
1333
|
-
}, 8, ["config"])) :
|
|
1334
|
-
], 46,
|
|
1327
|
+
}, 8, ["config"])) : h("", !0)
|
|
1328
|
+
], 46, Ft));
|
|
1335
1329
|
}
|
|
1336
|
-
},
|
|
1330
|
+
}, ta = /* @__PURE__ */ Bt(Hl, [["__scopeId", "data-v-4b9d5e51"]]);
|
|
1337
1331
|
export {
|
|
1338
|
-
|
|
1332
|
+
ta as default
|
|
1339
1333
|
};
|