vue-data-ui 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
1
|
+
import { defineAsyncComponent as P, computed as g, ref as y, toRefs as Ot, watch as xe, shallowRef as at, onMounted as Nt, onBeforeUnmount as Bt, createElementBlock as r, openBlock as s, unref as i, normalizeStyle as _, normalizeClass as X, createBlock as O, createCommentVNode as h, createElementVNode as c, createVNode as re, withCtx as f, renderSlot as p, normalizeProps as z, guardReactiveProps as A, createSlots as ot, Fragment as q, renderList as N, toDisplayString as k, Teleport as Ft, resolveDynamicComponent as Rt, mergeProps as Pt, createTextVNode as ut, nextTick as st } from "vue";
|
|
2
|
+
import { c as nt, t as Vt, b as Dt, p as $e, o as Ht, f as G, e as It, h as Ut, aa as Et, a as V, d as D, X as Qt, s as ie, i as Gt, ab as Jt, M as jt, J as Zt, P as Kt, Q as el, G as tl, H as ll } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as al, u as ol } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ul, a as
|
|
4
|
+
import { u as ul, a as rt } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as sl } from "./usePrinter-DTzqpYKF.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
6
|
+
import { u as nl } from "./useSvgExport-DrjCWun4.js";
|
|
7
|
+
import { u as rl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as il } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
9
|
import vl from "./img-BecE5qXd.js";
|
|
10
|
-
import
|
|
10
|
+
import dl from "./Title-isbiM8i8.js";
|
|
11
11
|
import { _ as it } from "./Shape-CNXKB8O0.js";
|
|
12
|
-
import { t as
|
|
12
|
+
import { t as cl } from "./themes-AUNCOb2G.js";
|
|
13
13
|
import hl from "./Legend-G6GMcdAc.js";
|
|
14
14
|
import { u as yl, B as bl } from "./BaseScanner-BgWxam9d.js";
|
|
15
15
|
import { _ as fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y", "width", "height"], $l = ["id"], kl = ["stop-color"], Ll = ["stop-color"], wl = { key: 1 },
|
|
16
|
+
const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y", "width", "height"], $l = ["id"], kl = ["stop-color"], Ll = ["stop-color"], wl = { key: 1 }, Sl = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], _l = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Cl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ql = { key: 2 }, Tl = ["points", "fill"], zl = ["points", "fill"], Al = ["points", "fill"], Wl = ["points", "fill"], Xl = { key: 3 }, Yl = ["y", "fill", "font-size"], Ml = ["x", "y", "fill", "font-size"], Ol = ["x", "y", "fill", "font-size"], Nl = ["y", "fill", "font-size"], Bl = { key: 4 }, Fl = ["x", "y", "font-size", "fill"], Rl = ["x", "y", "font-size", "fill"], Pl = ["x", "y", "font-size", "fill"], Vl = ["id", "font-size", "transform", "fill"], Dl = ["id", "font-size", "transform", "fill"], Hl = ["id", "font-size", "transform", "fill"], Il = { key: 5 }, Ul = ["fill", "points"], El = ["x", "y", "width", "height"], Ql = ["x", "y", "width", "height"], Gl = ["x", "y", "width", "height"], Jl = ["x", "y", "width", "height"], jl = {
|
|
17
17
|
key: 0,
|
|
18
18
|
style: { "pointer-events": "none" }
|
|
19
19
|
}, Zl = ["x", "y", "font-size", "fill"], Kl = ["x", "y", "font-size", "fill", "innerHTML"], ea = { key: 0 }, ta = ["x", "y", "onMouseover", "onMouseleave", "onClick"], la = {
|
|
20
20
|
key: 8,
|
|
21
21
|
class: "vue-ui-dna"
|
|
22
|
-
}, aa = ["points", "fill"], oa = ["points", "fill"], ua = ["points", "fill"], sa = ["points", "fill"],
|
|
22
|
+
}, aa = ["points", "fill"], oa = ["points", "fill"], ua = ["points", "fill"], sa = ["points", "fill"], na = { key: 9 }, ra = ["x", "y", "font-size", "fill", "font-weight"], ia = { key: 10 }, va = ["x", "y", "fill"], da = ["x", "y", "fill"], ca = ["x", "y", "fill"], ha = ["x", "y", "fill"], ya = ["stroke", "d"], ba = ["stroke", "d"], fa = {
|
|
23
23
|
key: 4,
|
|
24
24
|
class: "vue-data-ui-watermark"
|
|
25
25
|
}, pa = ["id"], ga = ["onClick"], ma = {
|
|
@@ -44,14 +44,14 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
emits: ["selectPlot", "selectSide", "selectLegend"],
|
|
47
|
-
setup(vt, { expose:
|
|
48
|
-
const ht =
|
|
49
|
-
...Ot(
|
|
47
|
+
setup(vt, { expose: dt, emit: ct }) {
|
|
48
|
+
const ht = P(() => import("./Tooltip-oWCO1HKy.js")), yt = P(() => import("./BaseIcon-BmMbm4d0.js")), bt = P(() => import("./vue-ui-accordion-CqhVCfc2.js")), ft = P(() => import("./DataTable-BT7VF2ua.js")), pt = P(() => import("./PenAndPaper-SZQIAgkg.js")), gt = P(() => import("./UserOptions-CGnQt6Fd.js")), mt = P(() => import("./PackageVersion-DQvyATVa.js")), xt = P(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_quadrant: $t } = ul(), B = vt, ke = g(() => !!B.dataset && B.dataset.length), w = y(nt()), ve = ct, de = y(!1), ce = y(""), Le = y(0), x = y(!1), Y = y(null), we = y(null), Se = y(null), _e = y(null), Ce = y(null), qe = y(0), Te = y(0), ze = y(0), Ae = y(!1), J = y(null), he = y(null), e = y(fe()), { loading: We, FINAL_DATASET: Xe } = yl({
|
|
49
|
+
...Ot(B),
|
|
50
50
|
FINAL_CONFIG: e,
|
|
51
51
|
prepareConfig: fe,
|
|
52
52
|
callback: () => {
|
|
53
53
|
Promise.resolve().then(async () => {
|
|
54
|
-
await st(),
|
|
54
|
+
await st(), $.value.showTable = e.value.table.show;
|
|
55
55
|
});
|
|
56
56
|
},
|
|
57
57
|
skeletonDataset: [
|
|
@@ -114,78 +114,78 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
})
|
|
117
|
-
}), { userOptionsVisible: ye, setUserOptionsVisibility: Ye, keepUserOptionState: Me } =
|
|
117
|
+
}), { userOptionsVisible: ye, setUserOptionsVisibility: Ye, keepUserOptionState: Me } = rl({ config: e.value }), { svgRef: be } = il({ config: e.value.style.chart.title });
|
|
118
118
|
function fe() {
|
|
119
|
-
const l =
|
|
120
|
-
userConfig:
|
|
119
|
+
const l = rt({
|
|
120
|
+
userConfig: B.config,
|
|
121
121
|
defaultConfig: $t
|
|
122
122
|
});
|
|
123
123
|
return l.theme ? {
|
|
124
|
-
...
|
|
125
|
-
userConfig:
|
|
124
|
+
...rt({
|
|
125
|
+
userConfig: cl.vue_ui_quadrant[l.theme] || B.config,
|
|
126
126
|
defaultConfig: l
|
|
127
127
|
}),
|
|
128
128
|
customPalette: Dt[l.theme] || $e
|
|
129
129
|
} : l;
|
|
130
130
|
}
|
|
131
|
-
xe(() =>
|
|
132
|
-
e.value = fe(), ye.value = !e.value.userOptions.showOnChartHover, Oe(), qe.value += 1, Te.value += 1, ze.value += 1,
|
|
131
|
+
xe(() => B.config, (l) => {
|
|
132
|
+
e.value = fe(), ye.value = !e.value.userOptions.showOnChartHover, Oe(), qe.value += 1, Te.value += 1, ze.value += 1, $.value.plotLabels.show = e.value.style.chart.layout.labels.plotLabels.show, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
133
133
|
}, { deep: !0 });
|
|
134
|
-
const
|
|
134
|
+
const F = at(null), U = at(null), E = g(() => e.value.debug);
|
|
135
135
|
function Oe() {
|
|
136
|
-
if (Ht(
|
|
136
|
+
if (Ht(B.dataset) ? G({
|
|
137
137
|
componentName: "VueUiQuadrant",
|
|
138
138
|
type: "dataset",
|
|
139
|
-
debug:
|
|
140
|
-
}) :
|
|
139
|
+
debug: E.value
|
|
140
|
+
}) : B.dataset.forEach((l, o) => {
|
|
141
141
|
[null, void 0].includes(l.name) && G({
|
|
142
142
|
componentName: "VueUiQuadrant",
|
|
143
143
|
type: "datasetSerieAttribute",
|
|
144
144
|
property: "name",
|
|
145
|
-
index:
|
|
146
|
-
debug:
|
|
145
|
+
index: o,
|
|
146
|
+
debug: E.value
|
|
147
147
|
}), [null, void 0].includes(l.series) ? G({
|
|
148
148
|
componentName: "VueUiQuadrant",
|
|
149
149
|
type: "datasetSerieAttribute",
|
|
150
150
|
property: "series",
|
|
151
|
-
index:
|
|
152
|
-
debug:
|
|
153
|
-
}) : l.series.forEach((
|
|
154
|
-
[null, void 0].includes(
|
|
151
|
+
index: o,
|
|
152
|
+
debug: E.value
|
|
153
|
+
}) : l.series.forEach((a, u) => {
|
|
154
|
+
[null, void 0].includes(a.name) && G({
|
|
155
155
|
componentName: "VueUiQuadrant",
|
|
156
156
|
type: "datasetSerieAttribute",
|
|
157
157
|
property: "name",
|
|
158
158
|
key: "series",
|
|
159
159
|
index: u,
|
|
160
|
-
debug:
|
|
160
|
+
debug: E.value
|
|
161
161
|
});
|
|
162
162
|
});
|
|
163
163
|
}), e.value.responsive) {
|
|
164
164
|
const l = al(() => {
|
|
165
|
-
const { width:
|
|
166
|
-
chart:
|
|
165
|
+
const { width: o, height: a } = ol({
|
|
166
|
+
chart: Y.value,
|
|
167
167
|
title: e.value.style.chart.title.text ? we.value : null,
|
|
168
|
-
legend: e.value.style.chart.legend.show ?
|
|
169
|
-
source:
|
|
168
|
+
legend: e.value.style.chart.legend.show ? Se.value : null,
|
|
169
|
+
source: _e.value,
|
|
170
170
|
noTitle: Ce.value
|
|
171
171
|
});
|
|
172
172
|
L.value = 48, requestAnimationFrame(() => {
|
|
173
|
-
t.value.height =
|
|
173
|
+
t.value.height = a, t.value.usableHeight = a - L.value * 2, t.value.width = o, t.value.usableWidth = o - L.value * 2, t.value.top = L.value, t.value.left = L.value, t.value.right = o - L.value, t.value.bottom = a - L.value, t.value.centerX = o / 2, t.value.centerY = a - a / 2, t.value.padding = L.value;
|
|
174
174
|
});
|
|
175
175
|
});
|
|
176
|
-
|
|
176
|
+
F.value && (U.value && F.value.unobserve(U.value), F.value.disconnect()), F.value = new ResizeObserver(l), U.value = Y.value.parentNode, F.value.observe(U.value);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
Nt(() => {
|
|
180
180
|
Ae.value = !0, Oe();
|
|
181
181
|
}), Bt(() => {
|
|
182
|
-
|
|
182
|
+
F.value && (U.value && F.value.unobserve(U.value), F.value.disconnect());
|
|
183
183
|
});
|
|
184
184
|
const { isPrinting: Ne, isImaging: Be, generatePdf: Fe, generateImage: Re } = sl({
|
|
185
185
|
elementId: `vue-ui-quadrant_${w.value}`,
|
|
186
186
|
fileName: e.value.style.chart.title.text || "vue-ui-quadrant",
|
|
187
187
|
options: e.value.userOptions.print
|
|
188
|
-
}), kt =
|
|
188
|
+
}), kt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = g(() => It(e.value.customPalette)), $ = y({
|
|
189
189
|
plotLabels: {
|
|
190
190
|
show: e.value.style.chart.layout.labels.plotLabels.show
|
|
191
191
|
},
|
|
@@ -215,8 +215,8 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
215
215
|
startY: 0
|
|
216
216
|
});
|
|
217
217
|
}, { deep: !0 });
|
|
218
|
-
const
|
|
219
|
-
switch (
|
|
218
|
+
const d = y(null), H = g(() => {
|
|
219
|
+
switch (d.value) {
|
|
220
220
|
case "TL":
|
|
221
221
|
return {
|
|
222
222
|
x: v.value.startX + v.value.width / 2,
|
|
@@ -257,31 +257,31 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
257
257
|
return { x: 0, y: 0, text: "", fontSize: 0, fill: "none", bold: !1 };
|
|
258
258
|
}
|
|
259
259
|
}), Lt = y(null), le = y(!1);
|
|
260
|
-
function j({ targetX: l, targetY:
|
|
261
|
-
|
|
260
|
+
function j({ targetX: l, targetY: o, targetW: a, targetH: u, side: n }) {
|
|
261
|
+
d.value && ee(n);
|
|
262
262
|
const b = {
|
|
263
263
|
x: l - v.value.startX,
|
|
264
|
-
y:
|
|
265
|
-
w:
|
|
264
|
+
y: o - v.value.startY,
|
|
265
|
+
w: a - v.value.width,
|
|
266
266
|
h: u - v.value.height
|
|
267
|
-
},
|
|
268
|
-
let
|
|
267
|
+
}, m = e.value.zoomAnimationFrames;
|
|
268
|
+
let M = 0;
|
|
269
269
|
function lt() {
|
|
270
|
-
le.value = !0, v.value.startX += b.x /
|
|
270
|
+
le.value = !0, v.value.startX += b.x / m, v.value.startY += b.y / m, v.value.width += b.w / m, v.value.height += b.h / m, M += 1, M < m ? Lt.value = requestAnimationFrame(lt) : le.value = !1;
|
|
271
271
|
}
|
|
272
272
|
lt();
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function R(l) {
|
|
275
275
|
if (!le.value)
|
|
276
|
-
if (
|
|
276
|
+
if (x.value && d.value === l)
|
|
277
277
|
j({
|
|
278
278
|
targetX: 0,
|
|
279
279
|
targetY: 0,
|
|
280
280
|
targetW: t.value.width,
|
|
281
281
|
targetH: t.value.height
|
|
282
|
-
}),
|
|
282
|
+
}), d.value = null, x.value = !1;
|
|
283
283
|
else {
|
|
284
|
-
switch (
|
|
284
|
+
switch (d.value = l, l) {
|
|
285
285
|
case "TL":
|
|
286
286
|
j({
|
|
287
287
|
targetX: 0,
|
|
@@ -322,148 +322,148 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
322
322
|
v.value.startX = 0, v.value.startY = 0, v.value.width = t.value.width, v.value.height = t.value.height;
|
|
323
323
|
break;
|
|
324
324
|
}
|
|
325
|
-
|
|
325
|
+
x.value = !0;
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
const wt =
|
|
329
|
-
const l = e.value.style.chart.layout.grid.graduations.steps,
|
|
330
|
-
for (let
|
|
328
|
+
const wt = g(() => {
|
|
329
|
+
const l = e.value.style.chart.layout.grid.graduations.steps, o = t.value.usableWidth / (l * 2), a = t.value.top, u = [];
|
|
330
|
+
for (let n = 0; n < l; n += 1)
|
|
331
331
|
u.push({
|
|
332
|
-
x: t.value.padding +
|
|
333
|
-
y:
|
|
334
|
-
height: t.value.usableHeight * (1 -
|
|
335
|
-
width: t.value.usableWidth * (1 -
|
|
336
|
-
opacity: Math.round((
|
|
332
|
+
x: t.value.padding + o * n,
|
|
333
|
+
y: a + t.value.usableHeight * (n / l / 2),
|
|
334
|
+
height: t.value.usableHeight * (1 - n / l),
|
|
335
|
+
width: t.value.usableWidth * (1 - n / l),
|
|
336
|
+
opacity: Math.round((n + 1) / l * 20)
|
|
337
337
|
});
|
|
338
338
|
return u;
|
|
339
|
-
}), C =
|
|
340
|
-
let l = e.value.style.chart.layout.grid.xAxis.max,
|
|
341
|
-
return e.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...
|
|
339
|
+
}), C = g(() => {
|
|
340
|
+
let l = e.value.style.chart.layout.grid.xAxis.max, o = e.value.style.chart.layout.grid.xAxis.min, a = e.value.style.chart.layout.grid.yAxis.max, u = e.value.style.chart.layout.grid.yAxis.min;
|
|
341
|
+
return e.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...Q.value.flatMap((n) => n.series.map((b) => b.x))), o = Math.min(...Q.value.flatMap((n) => n.series.map((b) => b.x)))), e.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...Q.value.flatMap((n) => n.series.map((b) => b.y))), u = Math.min(...Q.value.flatMap((n) => n.series.map((b) => b.y)))), {
|
|
342
342
|
x: {
|
|
343
343
|
max: l,
|
|
344
|
-
min:
|
|
344
|
+
min: o
|
|
345
345
|
},
|
|
346
346
|
y: {
|
|
347
|
-
max:
|
|
347
|
+
max: a,
|
|
348
348
|
min: u
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
|
-
}),
|
|
351
|
+
}), W = y([]), Q = g(() => Xe.value.map((l, o) => ({
|
|
352
352
|
...l,
|
|
353
353
|
series: Et({
|
|
354
354
|
data: l.series,
|
|
355
355
|
threshold: e.value.downsample.threshold
|
|
356
356
|
}),
|
|
357
|
-
id: `cat_${
|
|
358
|
-
color: Ut(l.color) || Pe.value[
|
|
359
|
-
}))),
|
|
357
|
+
id: `cat_${o}_${w.value}`,
|
|
358
|
+
color: Ut(l.color) || Pe.value[o] || $e[o]
|
|
359
|
+
}))), St = g(() => Q.value.filter((l) => !W.value.includes(l.id))), _t = g(() => Q.value.map((l, o) => ({
|
|
360
360
|
...l,
|
|
361
361
|
shape: l.shape || "circle",
|
|
362
|
-
series: l.series.map((
|
|
363
|
-
...
|
|
364
|
-
x: Ve(
|
|
365
|
-
y: De(
|
|
366
|
-
xValue:
|
|
367
|
-
yValue:
|
|
368
|
-
quadrantSide: Ie({ x:
|
|
362
|
+
series: l.series.map((a) => ({
|
|
363
|
+
...a,
|
|
364
|
+
x: Ve(a.x),
|
|
365
|
+
y: De(a.y),
|
|
366
|
+
xValue: a.x,
|
|
367
|
+
yValue: a.y,
|
|
368
|
+
quadrantSide: Ie({ x: a.x, y: a.y }),
|
|
369
369
|
categoryName: l.name,
|
|
370
370
|
shape: l.shape,
|
|
371
371
|
color: l.color
|
|
372
372
|
}))
|
|
373
|
-
}))), T =
|
|
374
|
-
l.series.forEach((
|
|
375
|
-
[null, void 0].includes(
|
|
373
|
+
}))), T = g(() => (Xe.value.forEach((l, o) => {
|
|
374
|
+
l.series.forEach((a, u) => {
|
|
375
|
+
[null, void 0].includes(a.x) && G({
|
|
376
376
|
componentName: "VueUiQuadrant",
|
|
377
377
|
type: "datasetSerieAttribute",
|
|
378
378
|
property: "x",
|
|
379
379
|
key: "series",
|
|
380
380
|
index: u,
|
|
381
|
-
debug:
|
|
382
|
-
}), [null, void 0].includes(
|
|
381
|
+
debug: E.value
|
|
382
|
+
}), [null, void 0].includes(a.y) && G({
|
|
383
383
|
componentName: "VueUiQuadrant",
|
|
384
384
|
type: "datasetSerieAttribute",
|
|
385
385
|
property: "y",
|
|
386
386
|
key: "series",
|
|
387
387
|
index: u,
|
|
388
|
-
debug:
|
|
388
|
+
debug: E.value
|
|
389
389
|
});
|
|
390
390
|
});
|
|
391
|
-
}),
|
|
391
|
+
}), St.value.map((l, o) => ({
|
|
392
392
|
...l,
|
|
393
393
|
shape: l.shape || "circle",
|
|
394
|
-
color: l.color || Pe.value[
|
|
395
|
-
series: l.series.map((
|
|
396
|
-
...
|
|
397
|
-
x: Ve(
|
|
398
|
-
y: De(
|
|
399
|
-
xValue:
|
|
400
|
-
yValue:
|
|
401
|
-
quadrantSide: Ie({ x:
|
|
394
|
+
color: l.color || Pe.value[o] || $e[o],
|
|
395
|
+
series: l.series.map((a) => ({
|
|
396
|
+
...a,
|
|
397
|
+
x: Ve(a.x),
|
|
398
|
+
y: De(a.y),
|
|
399
|
+
xValue: a.x,
|
|
400
|
+
yValue: a.y,
|
|
401
|
+
quadrantSide: Ie({ x: a.x, y: a.y }),
|
|
402
402
|
categoryName: l.name,
|
|
403
403
|
shape: l.shape,
|
|
404
404
|
color: l.color,
|
|
405
|
-
uid:
|
|
405
|
+
uid: nt()
|
|
406
406
|
}))
|
|
407
407
|
}))));
|
|
408
408
|
function Ve(l) {
|
|
409
409
|
if (l >= 0) {
|
|
410
|
-
const
|
|
411
|
-
return t.value.centerX + t.value.usableWidth / 2 *
|
|
410
|
+
const o = l / C.value.x.max;
|
|
411
|
+
return t.value.centerX + t.value.usableWidth / 2 * o;
|
|
412
412
|
} else {
|
|
413
|
-
const
|
|
414
|
-
return t.value.centerX - t.value.usableWidth / 2 *
|
|
413
|
+
const o = Math.abs(l) / Math.abs(C.value.x.min);
|
|
414
|
+
return t.value.centerX - t.value.usableWidth / 2 * o;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
function De(l) {
|
|
418
418
|
if (l >= 0) {
|
|
419
|
-
const
|
|
420
|
-
return t.value.centerY + (1 - t.value.usableHeight / 2 *
|
|
419
|
+
const o = l / C.value.y.max;
|
|
420
|
+
return t.value.centerY + (1 - t.value.usableHeight / 2 * o);
|
|
421
421
|
} else {
|
|
422
|
-
const
|
|
423
|
-
return t.value.centerY - (1 - t.value.usableHeight / 2 *
|
|
422
|
+
const o = Math.abs(l) / Math.abs(C.value.y.min);
|
|
423
|
+
return t.value.centerY - (1 - t.value.usableHeight / 2 * o);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
const ae =
|
|
427
|
-
const l = T.value.flatMap((
|
|
428
|
-
x:
|
|
429
|
-
y:
|
|
430
|
-
name:
|
|
431
|
-
category:
|
|
432
|
-
quadrantSide:
|
|
433
|
-
sideName: e.value.style.chart.layout.labels.quadrantLabels[
|
|
434
|
-
color:
|
|
435
|
-
shape:
|
|
436
|
-
}))),
|
|
437
|
-
shape:
|
|
438
|
-
color:
|
|
426
|
+
const ae = g(() => {
|
|
427
|
+
const l = T.value.flatMap((m) => m.series.map((M) => ({
|
|
428
|
+
x: M.xValue,
|
|
429
|
+
y: M.yValue,
|
|
430
|
+
name: M.name,
|
|
431
|
+
category: M.categoryName,
|
|
432
|
+
quadrantSide: M.quadrantSide,
|
|
433
|
+
sideName: e.value.style.chart.layout.labels.quadrantLabels[M.quadrantSide].text,
|
|
434
|
+
color: m.color,
|
|
435
|
+
shape: m.shape
|
|
436
|
+
}))), o = e.value.style.chart.layout.grid.xAxis.name || "x", a = e.value.style.chart.layout.grid.yAxis.name || "y", u = [e.value.translations.category, e.value.translations.item, o, a, e.value.translations.side], n = l.map((m) => [m.category, m.name, m.x, m.y, m.sideName || m.quadrantSide]), b = l.map((m) => ({
|
|
437
|
+
shape: m.shape,
|
|
438
|
+
color: m.color
|
|
439
439
|
}));
|
|
440
|
-
return { head: u, body:
|
|
441
|
-
}), oe =
|
|
442
|
-
const l = ae.value.head,
|
|
440
|
+
return { head: u, body: n, itsShapes: b, tableData: l };
|
|
441
|
+
}), oe = g(() => {
|
|
442
|
+
const l = ae.value.head, o = ae.value.tableData.map((u) => [
|
|
443
443
|
{
|
|
444
444
|
shape: u.shape,
|
|
445
445
|
color: u.color,
|
|
446
446
|
name: u.category
|
|
447
447
|
},
|
|
448
448
|
u.name,
|
|
449
|
-
|
|
449
|
+
V(
|
|
450
450
|
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
451
451
|
u.x,
|
|
452
|
-
|
|
452
|
+
D({
|
|
453
453
|
v: u.x,
|
|
454
454
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
455
455
|
})
|
|
456
456
|
),
|
|
457
|
-
|
|
457
|
+
V(
|
|
458
458
|
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
459
459
|
u.y,
|
|
460
|
-
|
|
460
|
+
D({
|
|
461
461
|
v: u.y,
|
|
462
462
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
463
463
|
})
|
|
464
464
|
),
|
|
465
465
|
u.sideName || u.quadrantSide
|
|
466
|
-
]),
|
|
466
|
+
]), a = {
|
|
467
467
|
th: {
|
|
468
468
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
469
469
|
color: e.value.table.th.color,
|
|
@@ -476,37 +476,37 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
476
476
|
},
|
|
477
477
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
478
478
|
};
|
|
479
|
-
return { head: l, body:
|
|
479
|
+
return { head: l, body: o, config: a, colNames: l };
|
|
480
480
|
});
|
|
481
481
|
function Z(l) {
|
|
482
|
-
|
|
483
|
-
const
|
|
484
|
-
ve("selectLegend",
|
|
482
|
+
W.value.includes(l) ? W.value = W.value.filter((a) => a !== l) : W.value.push(l);
|
|
483
|
+
const o = Ge();
|
|
484
|
+
ve("selectLegend", o);
|
|
485
485
|
}
|
|
486
|
-
const K =
|
|
486
|
+
const K = g(() => _t.value.map((l) => ({
|
|
487
487
|
name: l.name,
|
|
488
488
|
shape: l.shape,
|
|
489
489
|
color: l.color,
|
|
490
490
|
id: l.id,
|
|
491
|
-
opacity:
|
|
491
|
+
opacity: W.value.includes(l.id) ? 0.5 : 1,
|
|
492
492
|
segregate: () => Z(l.id),
|
|
493
|
-
isSegregated:
|
|
493
|
+
isSegregated: W.value.includes(l.id)
|
|
494
494
|
})));
|
|
495
495
|
function He(l) {
|
|
496
496
|
if (!K.value.length)
|
|
497
497
|
return e.value.debug && console.warn("VueUiQuadrant - There are no series to show."), null;
|
|
498
|
-
const
|
|
499
|
-
return
|
|
498
|
+
const o = K.value.find((a) => a.name === l);
|
|
499
|
+
return o || (e.value.debug && console.warn(`VueUiQuadrant - Series name not found "${l}"`), null);
|
|
500
500
|
}
|
|
501
501
|
function Ct(l) {
|
|
502
|
-
const
|
|
503
|
-
|
|
502
|
+
const o = He(l);
|
|
503
|
+
o !== null && W.value.includes(o.id) && Z(o.id);
|
|
504
504
|
}
|
|
505
505
|
function qt(l) {
|
|
506
|
-
const
|
|
507
|
-
|
|
506
|
+
const o = He(l);
|
|
507
|
+
o !== null && (W.value.includes(o.id) || Z(o.id));
|
|
508
508
|
}
|
|
509
|
-
const Tt =
|
|
509
|
+
const Tt = g(() => ({
|
|
510
510
|
cy: "quadrant-div-legend",
|
|
511
511
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
512
512
|
color: e.value.style.chart.legend.color,
|
|
@@ -529,81 +529,81 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
const ue = y(null), se = y(null), pe = y(null);
|
|
532
|
-
function Ue(l,
|
|
533
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
532
|
+
function Ue(l, o, a) {
|
|
533
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: a }), ue.value = o.uid, se.value = {
|
|
534
534
|
color: l.color,
|
|
535
535
|
shape: l.shape
|
|
536
536
|
}, pe.value = {
|
|
537
|
-
datapoint:
|
|
538
|
-
seriesIndex:
|
|
537
|
+
datapoint: o,
|
|
538
|
+
seriesIndex: a,
|
|
539
539
|
series: T.value,
|
|
540
540
|
config: e.value
|
|
541
|
-
},
|
|
541
|
+
}, de.value = !0;
|
|
542
542
|
const u = e.value.style.chart.tooltip.customFormat;
|
|
543
543
|
if (tl(u) && ll(() => u({
|
|
544
|
-
seriesIndex:
|
|
545
|
-
datapoint:
|
|
544
|
+
seriesIndex: a,
|
|
545
|
+
datapoint: o,
|
|
546
546
|
series: T.value,
|
|
547
547
|
config: e.value
|
|
548
548
|
})))
|
|
549
|
-
|
|
550
|
-
seriesIndex:
|
|
551
|
-
datapoint:
|
|
549
|
+
ce.value = u({
|
|
550
|
+
seriesIndex: a,
|
|
551
|
+
datapoint: o,
|
|
552
552
|
series: T.value,
|
|
553
553
|
config: e.value
|
|
554
554
|
});
|
|
555
555
|
else {
|
|
556
|
-
let
|
|
557
|
-
|
|
556
|
+
let n = "";
|
|
557
|
+
o.quadrantSide && (n += `<div style="color:${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].color};font-weight:${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].bold ? "bold" : "400"}">${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].text}</div>`), n += `<div>${l.name}</div>`, n += `<div style="padding-bottom:6px;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px">${o.name}</div>`, n += `<div>${e.value.style.chart.layout.grid.xAxis.name ? e.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${V(
|
|
558
558
|
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
v:
|
|
559
|
+
o.xValue,
|
|
560
|
+
D({
|
|
561
|
+
v: o.xValue,
|
|
562
562
|
r: e.value.style.chart.tooltip.roundingValue
|
|
563
563
|
}),
|
|
564
|
-
{ datapoint:
|
|
565
|
-
)}</b></div>`,
|
|
564
|
+
{ datapoint: o, category: l, categoryIndex: a }
|
|
565
|
+
)}</b></div>`, n += `<div>${e.value.style.chart.layout.grid.yAxis.name ? e.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${V(
|
|
566
566
|
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
v:
|
|
567
|
+
o.yValue,
|
|
568
|
+
D({
|
|
569
|
+
v: o.yValue,
|
|
570
570
|
r: e.value.style.chart.tooltip.roundingValue
|
|
571
571
|
}),
|
|
572
|
-
{ datapoint:
|
|
573
|
-
)}</b></div>`,
|
|
572
|
+
{ datapoint: o, category: l, categoryIndex: a }
|
|
573
|
+
)}</b></div>`, ce.value = `<div style="text-align:left;font-size:${e.value.style.chart.tooltip.fontSize}px">${n}</div>`;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
function Ee(l,
|
|
577
|
-
|
|
576
|
+
function Ee(l, o) {
|
|
577
|
+
de.value = !1, ue.value = null, se.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o });
|
|
578
578
|
}
|
|
579
|
-
function Qe(l,
|
|
580
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint:
|
|
579
|
+
function Qe(l, o, a) {
|
|
580
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: a });
|
|
581
581
|
const u = {
|
|
582
582
|
category: l.name,
|
|
583
583
|
shape: l.shape,
|
|
584
|
-
itemName:
|
|
585
|
-
x:
|
|
586
|
-
y:
|
|
587
|
-
quadrantSide:
|
|
588
|
-
sideName: e.value.style.chart.layout.labels.quadrantLabels[
|
|
584
|
+
itemName: o.name,
|
|
585
|
+
x: o.xValue,
|
|
586
|
+
y: o.yValue,
|
|
587
|
+
quadrantSide: o.quadrantSide,
|
|
588
|
+
sideName: e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].text
|
|
589
589
|
};
|
|
590
590
|
ve("selectPlot", u);
|
|
591
591
|
}
|
|
592
592
|
function ee(l) {
|
|
593
593
|
if (!l) return;
|
|
594
|
-
const
|
|
595
|
-
category:
|
|
596
|
-
itemName:
|
|
597
|
-
x:
|
|
598
|
-
y:
|
|
599
|
-
}))),
|
|
594
|
+
const o = T.value.flatMap((u) => u.series.filter((n) => n.quadrantSide === l).map((n) => ({
|
|
595
|
+
category: n.categoryName,
|
|
596
|
+
itemName: n.name,
|
|
597
|
+
x: n.xValue,
|
|
598
|
+
y: n.yValue
|
|
599
|
+
}))), a = {
|
|
600
600
|
quadrantSide: l,
|
|
601
601
|
sideName: e.value.style.chart.layout.labels.quadrantLabels[l].text,
|
|
602
|
-
items: [...
|
|
602
|
+
items: [...o]
|
|
603
603
|
};
|
|
604
|
-
ve("selectSide",
|
|
604
|
+
ve("selectSide", a);
|
|
605
605
|
}
|
|
606
|
-
const
|
|
606
|
+
const S = g(() => ({
|
|
607
607
|
TL: {
|
|
608
608
|
tl: {
|
|
609
609
|
x: t.value.left + t.value.usableWidth / 4 - 20,
|
|
@@ -714,52 +714,52 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
714
714
|
color: l.color,
|
|
715
715
|
name: l.name,
|
|
716
716
|
shape: l.shape,
|
|
717
|
-
series: l.series.map((
|
|
718
|
-
name:
|
|
719
|
-
x:
|
|
720
|
-
y:
|
|
721
|
-
quadrantSide:
|
|
722
|
-
sideName: e.value.style.chart.layout.labels.quadrantLabels[
|
|
717
|
+
series: l.series.map((o) => ({
|
|
718
|
+
name: o.name,
|
|
719
|
+
x: o.xValue,
|
|
720
|
+
y: o.yValue,
|
|
721
|
+
quadrantSide: o.quadrantSide,
|
|
722
|
+
sideName: e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].text
|
|
723
723
|
}))
|
|
724
724
|
}));
|
|
725
725
|
}
|
|
726
726
|
function ge(l = null) {
|
|
727
727
|
st(() => {
|
|
728
|
-
const
|
|
728
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ae.value.head, u = ae.value.body, n = o.concat([a]).concat(u), b = Kt(n);
|
|
729
729
|
l ? l(b) : el({ csvContent: b, title: e.value.style.chart.title.text || "vue-ui-quadrant" });
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
|
-
const
|
|
732
|
+
const I = y(!1);
|
|
733
733
|
function Je(l) {
|
|
734
|
-
|
|
734
|
+
I.value = l, Le.value += 1;
|
|
735
735
|
}
|
|
736
736
|
function je() {
|
|
737
|
-
|
|
737
|
+
$.value.showTable = !$.value.showTable;
|
|
738
738
|
}
|
|
739
739
|
function Ze() {
|
|
740
|
-
|
|
740
|
+
$.value.plotLabels.show = !$.value.plotLabels.show;
|
|
741
741
|
}
|
|
742
742
|
function Ke() {
|
|
743
|
-
|
|
743
|
+
$.value.showTooltip = !$.value.showTooltip;
|
|
744
744
|
}
|
|
745
|
-
const
|
|
745
|
+
const ne = y(!1);
|
|
746
746
|
function me() {
|
|
747
|
-
|
|
747
|
+
ne.value = !ne.value;
|
|
748
748
|
}
|
|
749
749
|
async function zt({ scale: l = 2 } = {}) {
|
|
750
|
-
if (!
|
|
751
|
-
const { width:
|
|
750
|
+
if (!Y.value) return;
|
|
751
|
+
const { width: o, height: a } = Y.value.getBoundingClientRect(), u = o / a, { imageUri: n, base64: b } = await vl({ domElement: Y.value, base64: !0, img: !0, scale: l });
|
|
752
752
|
return {
|
|
753
|
-
imageUri:
|
|
753
|
+
imageUri: n,
|
|
754
754
|
base64: b,
|
|
755
755
|
title: e.value.style.chart.title.text,
|
|
756
|
-
width:
|
|
757
|
-
height:
|
|
756
|
+
width: o,
|
|
757
|
+
height: a,
|
|
758
758
|
aspectRatio: u
|
|
759
759
|
};
|
|
760
760
|
}
|
|
761
|
-
const te =
|
|
762
|
-
const l = e.value.table.useDialog && !e.value.table.show,
|
|
761
|
+
const te = g(() => {
|
|
762
|
+
const l = e.value.table.useDialog && !e.value.table.show, o = $.value.showTable;
|
|
763
763
|
return {
|
|
764
764
|
component: l ? xt : bt,
|
|
765
765
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -768,13 +768,13 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
768
768
|
color: e.value.table.th.color,
|
|
769
769
|
headerColor: e.value.table.th.color,
|
|
770
770
|
headerBg: e.value.table.th.backgroundColor,
|
|
771
|
-
isFullscreen:
|
|
772
|
-
fullscreenParent:
|
|
771
|
+
isFullscreen: I.value,
|
|
772
|
+
fullscreenParent: Y.value,
|
|
773
773
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
774
774
|
} : {
|
|
775
775
|
hideDetails: !0,
|
|
776
776
|
config: {
|
|
777
|
-
open:
|
|
777
|
+
open: o,
|
|
778
778
|
maxHeight: 1e4,
|
|
779
779
|
body: {
|
|
780
780
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -788,13 +788,13 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
790
|
});
|
|
791
|
-
xe(() =>
|
|
791
|
+
xe(() => $.value.showTable, (l) => {
|
|
792
792
|
e.value.table.show || (l && e.value.table.useDialog && J.value ? J.value.open() : "close" in J.value && J.value.close());
|
|
793
793
|
});
|
|
794
794
|
function et() {
|
|
795
|
-
|
|
795
|
+
$.value.showTable = !1, he.value && he.value.setTableIconState(!1);
|
|
796
796
|
}
|
|
797
|
-
const At =
|
|
797
|
+
const At = g(() => e.value.style.chart.backgroundColor), Wt = g(() => e.value.style.chart.legend), Xt = g(() => e.value.style.chart.title), { exportSvg: Yt, getSvg: Mt } = nl({
|
|
798
798
|
svg: be,
|
|
799
799
|
title: Xt,
|
|
800
800
|
legend: Wt,
|
|
@@ -803,12 +803,12 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
803
803
|
});
|
|
804
804
|
async function tt({ isCb: l }) {
|
|
805
805
|
if (l) {
|
|
806
|
-
const { blob:
|
|
807
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
806
|
+
const { blob: o, url: a, text: u, dataUrl: n } = await Mt();
|
|
807
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: a, text: u, dataUrl: n });
|
|
808
808
|
} else
|
|
809
809
|
Yt();
|
|
810
810
|
}
|
|
811
|
-
return
|
|
811
|
+
return dt({
|
|
812
812
|
getData: Ge,
|
|
813
813
|
getImage: zt,
|
|
814
814
|
generatePdf: Fe,
|
|
@@ -822,37 +822,57 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
822
822
|
toggleTooltip: Ke,
|
|
823
823
|
toggleAnnotator: me,
|
|
824
824
|
toggleFullscreen: Je
|
|
825
|
-
}), (l,
|
|
826
|
-
class:
|
|
825
|
+
}), (l, o) => (s(), r("div", {
|
|
826
|
+
class: X(`vue-data-ui-component vue-ui-quadrant ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
827
827
|
ref_key: "quadrantChart",
|
|
828
|
-
ref:
|
|
828
|
+
ref: Y,
|
|
829
829
|
id: `vue-ui-quadrant_${w.value}`,
|
|
830
|
-
style:
|
|
831
|
-
onMouseenter:
|
|
832
|
-
onMouseleave:
|
|
830
|
+
style: _(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
831
|
+
onMouseenter: o[14] || (o[14] = () => i(Ye)(!0)),
|
|
832
|
+
onMouseleave: o[15] || (o[15] = () => i(Ye)(!1))
|
|
833
833
|
}, [
|
|
834
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
834
|
+
e.value.userOptions.buttons.annotator ? (s(), O(i(pt), {
|
|
835
835
|
key: 0,
|
|
836
836
|
svgRef: i(be),
|
|
837
837
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
838
838
|
color: e.value.style.chart.color,
|
|
839
|
-
active:
|
|
839
|
+
active: ne.value,
|
|
840
840
|
onClose: me
|
|
841
|
-
},
|
|
842
|
-
|
|
841
|
+
}, {
|
|
842
|
+
"annotator-action-close": f(() => [
|
|
843
|
+
p(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
844
|
+
]),
|
|
845
|
+
"annotator-action-color": f(({ color: a }) => [
|
|
846
|
+
p(l.$slots, "annotator-action-color", z(A({ color: a })), void 0, !0)
|
|
847
|
+
]),
|
|
848
|
+
"annotator-action-draw": f(({ mode: a }) => [
|
|
849
|
+
p(l.$slots, "annotator-action-draw", z(A({ mode: a })), void 0, !0)
|
|
850
|
+
]),
|
|
851
|
+
"annotator-action-undo": f(({ disabled: a }) => [
|
|
852
|
+
p(l.$slots, "annotator-action-undo", z(A({ disabled: a })), void 0, !0)
|
|
853
|
+
]),
|
|
854
|
+
"annotator-action-redo": f(({ disabled: a }) => [
|
|
855
|
+
p(l.$slots, "annotator-action-redo", z(A({ disabled: a })), void 0, !0)
|
|
856
|
+
]),
|
|
857
|
+
"annotator-action-delete": f(({ disabled: a }) => [
|
|
858
|
+
p(l.$slots, "annotator-action-delete", z(A({ disabled: a })), void 0, !0)
|
|
859
|
+
]),
|
|
860
|
+
_: 3
|
|
861
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
862
|
+
kt.value ? (s(), r("div", {
|
|
843
863
|
key: 1,
|
|
844
864
|
ref_key: "noTitle",
|
|
845
865
|
ref: Ce,
|
|
846
866
|
class: "vue-data-ui-no-title-space",
|
|
847
867
|
style: "height:36px; width: 100%;background:transparent"
|
|
848
868
|
}, null, 512)) : h("", !0),
|
|
849
|
-
e.value.style.chart.title.text ? (s(),
|
|
869
|
+
e.value.style.chart.title.text ? (s(), r("div", {
|
|
850
870
|
key: 2,
|
|
851
871
|
ref_key: "chartTitle",
|
|
852
872
|
ref: we,
|
|
853
873
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
854
874
|
}, [
|
|
855
|
-
(s(),
|
|
875
|
+
(s(), O(dl, {
|
|
856
876
|
key: `table_${qe.value}`,
|
|
857
877
|
config: {
|
|
858
878
|
title: {
|
|
@@ -866,10 +886,10 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
866
886
|
}
|
|
867
887
|
}, null, 8, ["config"]))
|
|
868
888
|
], 512)) : h("", !0),
|
|
869
|
-
|
|
889
|
+
c("div", {
|
|
870
890
|
id: `legend-top-${w.value}`
|
|
871
891
|
}, null, 8, gl),
|
|
872
|
-
e.value.userOptions.show && ke.value && (i(Me) || i(ye)) ? (s(),
|
|
892
|
+
e.value.userOptions.show && ke.value && (i(Me) || i(ye)) ? (s(), O(i(gt), {
|
|
873
893
|
ref_key: "userOptionsRef",
|
|
874
894
|
ref: he,
|
|
875
895
|
key: `user_options_${Le.value}`,
|
|
@@ -886,13 +906,13 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
886
906
|
hasTable: e.value.userOptions.buttons.table,
|
|
887
907
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
888
908
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
889
|
-
isFullscreen:
|
|
890
|
-
isTooltip:
|
|
909
|
+
isFullscreen: I.value,
|
|
910
|
+
isTooltip: $.value.showTooltip,
|
|
891
911
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
892
|
-
chartElement:
|
|
912
|
+
chartElement: Y.value,
|
|
893
913
|
position: e.value.userOptions.position,
|
|
894
914
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
895
|
-
isAnnotation:
|
|
915
|
+
isAnnotation: ne.value,
|
|
896
916
|
callbacks: e.value.userOptions.callbacks,
|
|
897
917
|
printScale: e.value.userOptions.print.scale,
|
|
898
918
|
tableDialog: e.value.table.useDialog,
|
|
@@ -905,92 +925,92 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
905
925
|
onToggleLabels: Ze,
|
|
906
926
|
onToggleTooltip: Ke,
|
|
907
927
|
onToggleAnnotator: me,
|
|
908
|
-
style:
|
|
928
|
+
style: _({
|
|
909
929
|
visibility: i(Me) ? i(ye) ? "visible" : "hidden" : "visible"
|
|
910
930
|
})
|
|
911
931
|
}, ot({ _: 2 }, [
|
|
912
932
|
l.$slots.menuIcon ? {
|
|
913
933
|
name: "menuIcon",
|
|
914
|
-
fn:
|
|
915
|
-
|
|
934
|
+
fn: f(({ isOpen: a, color: u }) => [
|
|
935
|
+
p(l.$slots, "menuIcon", z(A({ isOpen: a, color: u })), void 0, !0)
|
|
916
936
|
]),
|
|
917
937
|
key: "0"
|
|
918
938
|
} : void 0,
|
|
919
939
|
l.$slots.optionTooltip ? {
|
|
920
940
|
name: "optionTooltip",
|
|
921
|
-
fn:
|
|
922
|
-
|
|
941
|
+
fn: f(() => [
|
|
942
|
+
p(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
923
943
|
]),
|
|
924
944
|
key: "1"
|
|
925
945
|
} : void 0,
|
|
926
946
|
l.$slots.optionPdf ? {
|
|
927
947
|
name: "optionPdf",
|
|
928
|
-
fn:
|
|
929
|
-
|
|
948
|
+
fn: f(() => [
|
|
949
|
+
p(l.$slots, "optionPdf", {}, void 0, !0)
|
|
930
950
|
]),
|
|
931
951
|
key: "2"
|
|
932
952
|
} : void 0,
|
|
933
953
|
l.$slots.optionCsv ? {
|
|
934
954
|
name: "optionCsv",
|
|
935
|
-
fn:
|
|
936
|
-
|
|
955
|
+
fn: f(() => [
|
|
956
|
+
p(l.$slots, "optionCsv", {}, void 0, !0)
|
|
937
957
|
]),
|
|
938
958
|
key: "3"
|
|
939
959
|
} : void 0,
|
|
940
960
|
l.$slots.optionImg ? {
|
|
941
961
|
name: "optionImg",
|
|
942
|
-
fn:
|
|
943
|
-
|
|
962
|
+
fn: f(() => [
|
|
963
|
+
p(l.$slots, "optionImg", {}, void 0, !0)
|
|
944
964
|
]),
|
|
945
965
|
key: "4"
|
|
946
966
|
} : void 0,
|
|
947
967
|
l.$slots.optionSvg ? {
|
|
948
968
|
name: "optionSvg",
|
|
949
|
-
fn:
|
|
950
|
-
|
|
969
|
+
fn: f(() => [
|
|
970
|
+
p(l.$slots, "optionSvg", {}, void 0, !0)
|
|
951
971
|
]),
|
|
952
972
|
key: "5"
|
|
953
973
|
} : void 0,
|
|
954
974
|
l.$slots.optionTable ? {
|
|
955
975
|
name: "optionTable",
|
|
956
|
-
fn:
|
|
957
|
-
|
|
976
|
+
fn: f(() => [
|
|
977
|
+
p(l.$slots, "optionTable", {}, void 0, !0)
|
|
958
978
|
]),
|
|
959
979
|
key: "6"
|
|
960
980
|
} : void 0,
|
|
961
981
|
l.$slots.optionLabels ? {
|
|
962
982
|
name: "optionLabels",
|
|
963
|
-
fn:
|
|
964
|
-
|
|
983
|
+
fn: f(() => [
|
|
984
|
+
p(l.$slots, "optionLabels", {}, void 0, !0)
|
|
965
985
|
]),
|
|
966
986
|
key: "7"
|
|
967
987
|
} : void 0,
|
|
968
988
|
l.$slots.optionFullscreen ? {
|
|
969
989
|
name: "optionFullscreen",
|
|
970
|
-
fn:
|
|
971
|
-
|
|
990
|
+
fn: f(({ toggleFullscreen: a, isFullscreen: u }) => [
|
|
991
|
+
p(l.$slots, "optionFullscreen", z(A({ toggleFullscreen: a, isFullscreen: u })), void 0, !0)
|
|
972
992
|
]),
|
|
973
993
|
key: "8"
|
|
974
994
|
} : void 0,
|
|
975
995
|
l.$slots.optionAnnotator ? {
|
|
976
996
|
name: "optionAnnotator",
|
|
977
|
-
fn:
|
|
978
|
-
|
|
997
|
+
fn: f(({ toggleAnnotator: a, isAnnotator: u }) => [
|
|
998
|
+
p(l.$slots, "optionAnnotator", z(A({ toggleAnnotator: a, isAnnotator: u })), void 0, !0)
|
|
979
999
|
]),
|
|
980
1000
|
key: "9"
|
|
981
1001
|
} : void 0
|
|
982
1002
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
983
|
-
(s(),
|
|
1003
|
+
(s(), r("svg", {
|
|
984
1004
|
ref_key: "svgRef",
|
|
985
1005
|
ref: be,
|
|
986
1006
|
xmlns: i(Qt),
|
|
987
|
-
class:
|
|
1007
|
+
class: X({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
988
1008
|
viewBox: `${v.value.startX} ${v.value.startY} ${v.value.width} ${v.value.height}`,
|
|
989
|
-
style:
|
|
1009
|
+
style: _(`max-width:100%;overflow:hidden;background:transparent;color:${e.value.style.chart.color}`),
|
|
990
1010
|
id: `svg_${w.value}`
|
|
991
1011
|
}, [
|
|
992
|
-
|
|
993
|
-
l.$slots["chart-background"] ? (s(),
|
|
1012
|
+
re(i(mt)),
|
|
1013
|
+
l.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
994
1014
|
key: 0,
|
|
995
1015
|
x: v.value.startX,
|
|
996
1016
|
y: v.value.startY,
|
|
@@ -1000,10 +1020,10 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
1000
1020
|
pointerEvents: "none"
|
|
1001
1021
|
}
|
|
1002
1022
|
}, [
|
|
1003
|
-
|
|
1023
|
+
p(l.$slots, "chart-background", {}, void 0, !0)
|
|
1004
1024
|
], 8, xl)) : h("", !0),
|
|
1005
|
-
|
|
1006
|
-
(s(!0),
|
|
1025
|
+
c("defs", null, [
|
|
1026
|
+
(s(!0), r(q, null, N(T.value, (a, u) => (s(), r("radialGradient", {
|
|
1007
1027
|
cx: "50%",
|
|
1008
1028
|
cy: "50%",
|
|
1009
1029
|
r: "50%",
|
|
@@ -1011,37 +1031,37 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
1011
1031
|
fy: "50%",
|
|
1012
1032
|
id: `quadrant_gradient_${w.value}_${u}`
|
|
1013
1033
|
}, [
|
|
1014
|
-
|
|
1034
|
+
c("stop", {
|
|
1015
1035
|
offset: "0%",
|
|
1016
|
-
"stop-color": i(ie)(i(Gt)(
|
|
1036
|
+
"stop-color": i(ie)(i(Gt)(a.color, 0.05), e.value.style.chart.layout.areas.opacity)
|
|
1017
1037
|
}, null, 8, kl),
|
|
1018
|
-
|
|
1038
|
+
c("stop", {
|
|
1019
1039
|
offset: "100%",
|
|
1020
|
-
"stop-color": i(ie)(
|
|
1040
|
+
"stop-color": i(ie)(a.color, e.value.style.chart.layout.areas.opacity)
|
|
1021
1041
|
}, null, 8, Ll)
|
|
1022
1042
|
], 8, $l))), 256))
|
|
1023
1043
|
]),
|
|
1024
|
-
e.value.style.chart.layout.grid.graduations.show ? (s(),
|
|
1025
|
-
(s(!0),
|
|
1026
|
-
fill: e.value.style.chart.layout.grid.graduations.fill ? i(ie)(e.value.style.chart.layout.grid.graduations.color,
|
|
1027
|
-
x:
|
|
1028
|
-
y:
|
|
1029
|
-
height:
|
|
1030
|
-
width:
|
|
1044
|
+
e.value.style.chart.layout.grid.graduations.show ? (s(), r("g", wl, [
|
|
1045
|
+
(s(!0), r(q, null, N(wt.value, (a) => (s(), r("rect", {
|
|
1046
|
+
fill: e.value.style.chart.layout.grid.graduations.fill ? i(ie)(e.value.style.chart.layout.grid.graduations.color, a.opacity) : "none",
|
|
1047
|
+
x: a.x,
|
|
1048
|
+
y: a.y,
|
|
1049
|
+
height: a.height <= 0 ? 1e-3 : a.height,
|
|
1050
|
+
width: a.width <= 0 ? 1e-3 : a.width,
|
|
1031
1051
|
"stroke-width": e.value.style.chart.layout.grid.graduations.strokeWidth,
|
|
1032
1052
|
stroke: e.value.style.chart.layout.grid.graduations.stroke,
|
|
1033
1053
|
rx: e.value.style.chart.layout.grid.graduations.roundingForce
|
|
1034
|
-
}, null, 8,
|
|
1054
|
+
}, null, 8, Sl))), 256))
|
|
1035
1055
|
])) : h("", !0),
|
|
1036
|
-
|
|
1056
|
+
c("line", {
|
|
1037
1057
|
x1: t.value.left,
|
|
1038
1058
|
y1: t.value.centerY,
|
|
1039
1059
|
x2: t.value.right,
|
|
1040
1060
|
y2: t.value.centerY,
|
|
1041
1061
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
1042
1062
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
1043
|
-
}, null, 8,
|
|
1044
|
-
|
|
1063
|
+
}, null, 8, _l),
|
|
1064
|
+
c("line", {
|
|
1045
1065
|
x1: t.value.centerX,
|
|
1046
1066
|
y1: t.value.top,
|
|
1047
1067
|
x2: t.value.centerX,
|
|
@@ -1049,135 +1069,135 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
1049
1069
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
1050
1070
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
1051
1071
|
}, null, 8, Cl),
|
|
1052
|
-
e.value.style.chart.layout.grid.showArrows ? (s(),
|
|
1053
|
-
|
|
1072
|
+
e.value.style.chart.layout.grid.showArrows ? (s(), r("g", ql, [
|
|
1073
|
+
c("polygon", {
|
|
1054
1074
|
points: `${t.value.right - 8},${t.value.centerY - 6} ${t.value.right},${t.value.centerY} ${t.value.right - 8},${t.value.centerY + 6}`,
|
|
1055
1075
|
fill: e.value.style.chart.layout.grid.stroke,
|
|
1056
1076
|
stroke: "none"
|
|
1057
1077
|
}, null, 8, Tl),
|
|
1058
|
-
|
|
1078
|
+
c("polygon", {
|
|
1059
1079
|
points: `${t.value.left + 8},${t.value.centerY - 6} ${t.value.left},${t.value.centerY} ${t.value.left + 8},${t.value.centerY + 6}`,
|
|
1060
1080
|
fill: e.value.style.chart.layout.grid.stroke,
|
|
1061
1081
|
stroke: "none"
|
|
1062
1082
|
}, null, 8, zl),
|
|
1063
|
-
|
|
1083
|
+
c("polygon", {
|
|
1064
1084
|
points: `${t.value.centerX - 6},${t.value.top + 8} ${t.value.centerX},${t.value.top} ${t.value.centerX + 6},${t.value.top + 8}`,
|
|
1065
1085
|
fill: e.value.style.chart.layout.grid.stroke,
|
|
1066
1086
|
stroke: "none"
|
|
1067
1087
|
}, null, 8, Al),
|
|
1068
|
-
|
|
1088
|
+
c("polygon", {
|
|
1069
1089
|
points: `${t.value.centerX - 6},${t.value.bottom - 8} ${t.value.centerX},${t.value.bottom} ${t.value.centerX + 6},${t.value.bottom - 8}`,
|
|
1070
1090
|
fill: e.value.style.chart.layout.grid.stroke,
|
|
1071
1091
|
stroke: "none"
|
|
1072
1092
|
}, null, 8, Wl)
|
|
1073
1093
|
])) : h("", !0),
|
|
1074
|
-
e.value.style.chart.layout.labels.quadrantLabels.show && !
|
|
1075
|
-
e.value.style.chart.layout.labels.quadrantLabels.tl.text ? (s(),
|
|
1094
|
+
e.value.style.chart.layout.labels.quadrantLabels.show && !x.value ? (s(), r("g", Xl, [
|
|
1095
|
+
e.value.style.chart.layout.labels.quadrantLabels.tl.text ? (s(), r("text", {
|
|
1076
1096
|
key: 0,
|
|
1077
1097
|
x: 0,
|
|
1078
1098
|
y: t.value.top - t.value.padding / 2,
|
|
1079
1099
|
"text-anchor": "start",
|
|
1080
1100
|
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
1081
1101
|
"font-size": e.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
1082
|
-
style:
|
|
1083
|
-
onClick:
|
|
1102
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
|
|
1103
|
+
onClick: o[0] || (o[0] = (a) => ee("tl"))
|
|
1084
1104
|
}, k(e.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, Yl)) : h("", !0),
|
|
1085
|
-
e.value.style.chart.layout.labels.quadrantLabels.tr.text ? (s(),
|
|
1105
|
+
e.value.style.chart.layout.labels.quadrantLabels.tr.text ? (s(), r("text", {
|
|
1086
1106
|
key: 1,
|
|
1087
1107
|
x: t.value.width,
|
|
1088
1108
|
y: t.value.top - t.value.padding / 2,
|
|
1089
1109
|
"text-anchor": "end",
|
|
1090
1110
|
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
1091
1111
|
"font-size": e.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
1092
|
-
style:
|
|
1093
|
-
onClick:
|
|
1112
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
|
|
1113
|
+
onClick: o[1] || (o[1] = (a) => ee("tr"))
|
|
1094
1114
|
}, k(e.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, Ml)) : h("", !0),
|
|
1095
|
-
e.value.style.chart.layout.labels.quadrantLabels.br.text ? (s(),
|
|
1115
|
+
e.value.style.chart.layout.labels.quadrantLabels.br.text ? (s(), r("text", {
|
|
1096
1116
|
key: 2,
|
|
1097
1117
|
x: t.value.width,
|
|
1098
1118
|
y: t.value.bottom + t.value.padding * 0.7,
|
|
1099
1119
|
"text-anchor": "end",
|
|
1100
1120
|
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
1101
1121
|
"font-size": e.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
1102
|
-
style:
|
|
1103
|
-
onClick:
|
|
1122
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
|
|
1123
|
+
onClick: o[2] || (o[2] = (a) => ee("br"))
|
|
1104
1124
|
}, k(e.value.style.chart.layout.labels.quadrantLabels.br.text), 13, Ol)) : h("", !0),
|
|
1105
|
-
e.value.style.chart.layout.labels.quadrantLabels.bl.text ? (s(),
|
|
1125
|
+
e.value.style.chart.layout.labels.quadrantLabels.bl.text ? (s(), r("text", {
|
|
1106
1126
|
key: 3,
|
|
1107
1127
|
x: 0,
|
|
1108
1128
|
y: t.value.bottom + t.value.padding * 0.7,
|
|
1109
1129
|
"text-anchor": "start",
|
|
1110
1130
|
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
1111
1131
|
"font-size": e.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
1112
|
-
style:
|
|
1113
|
-
onClick:
|
|
1132
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
|
|
1133
|
+
onClick: o[3] || (o[3] = (a) => ee("bl"))
|
|
1114
1134
|
}, k(e.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, Nl)) : h("", !0)
|
|
1115
1135
|
])) : h("", !0),
|
|
1116
|
-
e.value.style.chart.layout.labels.axisLabels.show ? (s(),
|
|
1117
|
-
|
|
1136
|
+
e.value.style.chart.layout.labels.axisLabels.show ? (s(), r("g", Bl, [
|
|
1137
|
+
c("text", {
|
|
1118
1138
|
x: t.value.centerX,
|
|
1119
1139
|
y: t.value.top - t.value.padding / 6,
|
|
1120
1140
|
"text-anchor": "middle",
|
|
1121
1141
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1122
1142
|
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1123
|
-
}, k(i(
|
|
1143
|
+
}, k(i(V)(
|
|
1124
1144
|
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
1125
1145
|
C.value.y.max,
|
|
1126
|
-
i(
|
|
1146
|
+
i(D)({
|
|
1127
1147
|
v: C.value.y.max,
|
|
1128
1148
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1129
1149
|
})
|
|
1130
1150
|
)), 9, Fl),
|
|
1131
|
-
|
|
1151
|
+
c("text", {
|
|
1132
1152
|
x: t.value.centerX,
|
|
1133
1153
|
y: t.value.top - t.value.padding / 2,
|
|
1134
1154
|
"text-anchor": "middle",
|
|
1135
1155
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1136
1156
|
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1137
1157
|
}, k(e.value.style.chart.layout.grid.yAxis.name), 9, Rl),
|
|
1138
|
-
|
|
1158
|
+
c("text", {
|
|
1139
1159
|
x: t.value.centerX,
|
|
1140
1160
|
y: t.value.bottom + t.value.padding * 0.35,
|
|
1141
1161
|
"text-anchor": "middle",
|
|
1142
1162
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1143
1163
|
fill: e.value.style.chart.layout.labels.axisLabels.color.negative
|
|
1144
|
-
}, k(i(
|
|
1164
|
+
}, k(i(V)(
|
|
1145
1165
|
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
1146
1166
|
C.value.y.min,
|
|
1147
|
-
i(
|
|
1167
|
+
i(D)({
|
|
1148
1168
|
v: C.value.y.min,
|
|
1149
1169
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1150
1170
|
})
|
|
1151
1171
|
)), 9, Pl),
|
|
1152
|
-
|
|
1172
|
+
c("text", {
|
|
1153
1173
|
id: `xLabelMin_${w.value}`,
|
|
1154
1174
|
"text-anchor": "middle",
|
|
1155
1175
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1156
1176
|
transform: `translate(${t.value.padding - e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(-90)`,
|
|
1157
1177
|
fill: e.value.style.chart.layout.labels.axisLabels.color.negative
|
|
1158
|
-
}, k(i(
|
|
1178
|
+
}, k(i(V)(
|
|
1159
1179
|
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
1160
1180
|
C.value.x.min,
|
|
1161
|
-
i(
|
|
1181
|
+
i(D)({
|
|
1162
1182
|
v: C.value.x.min,
|
|
1163
1183
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1164
1184
|
})
|
|
1165
1185
|
)), 9, Vl),
|
|
1166
|
-
|
|
1186
|
+
c("text", {
|
|
1167
1187
|
id: `xLabelMax_${w.value}`,
|
|
1168
1188
|
"text-anchor": "middle",
|
|
1169
1189
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1170
1190
|
transform: `translate(${t.value.width - t.value.padding + e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(90)`,
|
|
1171
1191
|
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1172
|
-
}, k(i(
|
|
1192
|
+
}, k(i(V)(
|
|
1173
1193
|
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
1174
1194
|
C.value.x.max,
|
|
1175
|
-
i(
|
|
1195
|
+
i(D)({
|
|
1176
1196
|
v: C.value.x.max,
|
|
1177
1197
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1178
1198
|
})
|
|
1179
1199
|
)), 9, Dl),
|
|
1180
|
-
|
|
1200
|
+
c("text", {
|
|
1181
1201
|
id: `xLabelMaxName_${w.value}`,
|
|
1182
1202
|
"text-anchor": "middle",
|
|
1183
1203
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
@@ -1185,254 +1205,254 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
1185
1205
|
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1186
1206
|
}, k(e.value.style.chart.layout.grid.xAxis.name), 9, Hl)
|
|
1187
1207
|
])) : h("", !0),
|
|
1188
|
-
e.value.style.chart.layout.areas.show ? (s(),
|
|
1189
|
-
(s(!0),
|
|
1190
|
-
|
|
1208
|
+
e.value.style.chart.layout.areas.show ? (s(), r("g", Il, [
|
|
1209
|
+
(s(!0), r(q, null, N(T.value, (a, u) => (s(), r("g", null, [
|
|
1210
|
+
a.series.length > 2 ? (s(), r("polygon", {
|
|
1191
1211
|
key: 0,
|
|
1192
1212
|
"data-cy-quadrant-area": "",
|
|
1193
|
-
fill: e.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${w.value}_${u})` : i(ie)(
|
|
1194
|
-
points: i(Jt)(
|
|
1213
|
+
fill: e.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${w.value}_${u})` : i(ie)(a.color, e.value.style.chart.layout.areas.opacity),
|
|
1214
|
+
points: i(Jt)(a)
|
|
1195
1215
|
}, null, 8, Ul)) : h("", !0)
|
|
1196
1216
|
]))), 256))
|
|
1197
1217
|
])) : h("", !0),
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
onClick:
|
|
1218
|
+
c("g", null, [
|
|
1219
|
+
c("rect", {
|
|
1220
|
+
onClick: o[4] || (o[4] = (a) => R("TL")),
|
|
1201
1221
|
x: t.value.left,
|
|
1202
1222
|
y: t.value.top,
|
|
1203
1223
|
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1204
1224
|
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1205
1225
|
fill: "transparent",
|
|
1206
|
-
class:
|
|
1226
|
+
class: X({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1207
1227
|
}, null, 10, El),
|
|
1208
|
-
|
|
1209
|
-
onClick:
|
|
1228
|
+
c("rect", {
|
|
1229
|
+
onClick: o[5] || (o[5] = (a) => R("TR")),
|
|
1210
1230
|
x: t.value.centerX,
|
|
1211
1231
|
y: t.value.top,
|
|
1212
1232
|
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1213
1233
|
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1214
1234
|
fill: "transparent",
|
|
1215
|
-
class:
|
|
1235
|
+
class: X({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1216
1236
|
}, null, 10, Ql),
|
|
1217
|
-
|
|
1218
|
-
onClick:
|
|
1237
|
+
c("rect", {
|
|
1238
|
+
onClick: o[6] || (o[6] = (a) => R("BR")),
|
|
1219
1239
|
x: t.value.centerX,
|
|
1220
1240
|
y: t.value.centerY,
|
|
1221
1241
|
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1222
1242
|
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1223
1243
|
fill: "transparent",
|
|
1224
|
-
class:
|
|
1244
|
+
class: X({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1225
1245
|
}, null, 10, Gl),
|
|
1226
|
-
|
|
1227
|
-
onClick:
|
|
1246
|
+
c("rect", {
|
|
1247
|
+
onClick: o[7] || (o[7] = (a) => R("BL")),
|
|
1228
1248
|
x: t.value.left,
|
|
1229
1249
|
y: t.value.centerY,
|
|
1230
1250
|
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1231
1251
|
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1232
1252
|
fill: "transparent",
|
|
1233
|
-
class:
|
|
1253
|
+
class: X({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1234
1254
|
}, null, 10, Jl)
|
|
1235
1255
|
]),
|
|
1236
|
-
e.value.style.chart.layout.labels.plotLabels.showAsTag ? (s(),
|
|
1237
|
-
|
|
1238
|
-
(s(!0),
|
|
1239
|
-
(s(!0),
|
|
1256
|
+
e.value.style.chart.layout.labels.plotLabels.showAsTag ? (s(), r(q, { key: 7 }, [
|
|
1257
|
+
$.value.plotLabels.show ? (s(), r("g", ea, [
|
|
1258
|
+
(s(!0), r(q, null, N(T.value, (a, u) => (s(), r(q, null, [
|
|
1259
|
+
(s(!0), r(q, null, N(a.series, (n) => (s(), r("foreignObject", {
|
|
1240
1260
|
style: { overflow: "visible" },
|
|
1241
1261
|
height: "10",
|
|
1242
1262
|
width: "100",
|
|
1243
|
-
x:
|
|
1244
|
-
y:
|
|
1245
|
-
onMouseover: (b) => Ue(
|
|
1246
|
-
onMouseleave: (b) => Ee(
|
|
1247
|
-
onClick: (b) => Qe(
|
|
1263
|
+
x: n.x - 50,
|
|
1264
|
+
y: n.y - e.value.style.chart.layout.labels.plotLabels.fontSize,
|
|
1265
|
+
onMouseover: (b) => Ue(a, n, u),
|
|
1266
|
+
onMouseleave: (b) => Ee(n, u),
|
|
1267
|
+
onClick: (b) => Qe(a, n, u)
|
|
1248
1268
|
}, [
|
|
1249
|
-
|
|
1250
|
-
style:
|
|
1251
|
-
}, k(
|
|
1269
|
+
c("div", {
|
|
1270
|
+
style: _(`color:${i(Zt)(a.color)};margin: 0 auto; font-size:${e.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${a.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`)
|
|
1271
|
+
}, k(n.name), 5)
|
|
1252
1272
|
], 40, ta))), 256))
|
|
1253
1273
|
], 64))), 256))
|
|
1254
1274
|
])) : h("", !0)
|
|
1255
|
-
], 64)) : (s(),
|
|
1256
|
-
(s(!0),
|
|
1257
|
-
(s(!0),
|
|
1258
|
-
color:
|
|
1259
|
-
isSelected: ue.value &&
|
|
1260
|
-
plot:
|
|
1261
|
-
radius: e.value.style.chart.layout.plots.radius / (
|
|
1262
|
-
shape:
|
|
1275
|
+
], 64)) : (s(), r(q, { key: 6 }, [
|
|
1276
|
+
(s(!0), r(q, null, N(T.value, (a, u) => (s(), r("g", null, [
|
|
1277
|
+
(s(!0), r(q, null, N(a.series, (n) => (s(), O(it, {
|
|
1278
|
+
color: a.color,
|
|
1279
|
+
isSelected: ue.value && n.uid === ue.value,
|
|
1280
|
+
plot: n,
|
|
1281
|
+
radius: e.value.style.chart.layout.plots.radius / (x.value ? 1.5 : 1),
|
|
1282
|
+
shape: a.shape,
|
|
1263
1283
|
stroke: e.value.style.chart.layout.plots.outline ? e.value.style.chart.layout.plots.outlineColor : "none",
|
|
1264
1284
|
strokeWidth: e.value.style.chart.layout.plots.outlineWidth,
|
|
1265
|
-
onMouseenter: (b) => Ue(
|
|
1266
|
-
onMouseleave: (b) => Ee(
|
|
1267
|
-
onClick: (b) => Qe(
|
|
1285
|
+
onMouseenter: (b) => Ue(a, n, u),
|
|
1286
|
+
onMouseleave: (b) => Ee(n, u),
|
|
1287
|
+
onClick: (b) => Qe(a, n, u)
|
|
1268
1288
|
}, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseenter", "onMouseleave", "onClick"]))), 256))
|
|
1269
1289
|
]))), 256)),
|
|
1270
|
-
|
|
1271
|
-
(s(!0),
|
|
1272
|
-
(s(!0),
|
|
1290
|
+
$.value.plotLabels.show ? (s(), r("g", jl, [
|
|
1291
|
+
(s(!0), r(q, null, N(T.value, (a) => (s(), r("g", null, [
|
|
1292
|
+
(s(!0), r(q, null, N(a.series, (u) => (s(), r("g", null, [
|
|
1273
1293
|
String(u.name).includes(`
|
|
1274
|
-
`) ? (s(),
|
|
1294
|
+
`) ? (s(), r("text", {
|
|
1275
1295
|
key: 1,
|
|
1276
1296
|
x: u.x,
|
|
1277
1297
|
y: u.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius,
|
|
1278
1298
|
"text-anchor": "middle",
|
|
1279
|
-
"font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (
|
|
1299
|
+
"font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
|
|
1280
1300
|
fill: e.value.style.chart.layout.labels.plotLabels.color,
|
|
1281
1301
|
innerHTML: i(jt)({
|
|
1282
1302
|
content: String(u.name),
|
|
1283
|
-
fontSize: e.value.style.chart.layout.labels.plotLabels.fontSize / (
|
|
1303
|
+
fontSize: e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
|
|
1284
1304
|
fill: e.value.style.chart.layout.labels.plotLabels.color,
|
|
1285
1305
|
x: u.x,
|
|
1286
1306
|
y: u.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius
|
|
1287
1307
|
})
|
|
1288
|
-
}, null, 8, Kl)) : (s(),
|
|
1308
|
+
}, null, 8, Kl)) : (s(), r("text", {
|
|
1289
1309
|
key: 0,
|
|
1290
1310
|
x: u.x,
|
|
1291
1311
|
y: u.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius,
|
|
1292
1312
|
"text-anchor": "middle",
|
|
1293
|
-
"font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (
|
|
1313
|
+
"font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
|
|
1294
1314
|
fill: e.value.style.chart.layout.labels.plotLabels.color
|
|
1295
1315
|
}, k(u.name), 9, Zl))
|
|
1296
1316
|
]))), 256))
|
|
1297
1317
|
]))), 256))
|
|
1298
1318
|
])) : h("", !0)
|
|
1299
1319
|
], 64)),
|
|
1300
|
-
|
|
1301
|
-
|
|
1320
|
+
x.value ? (s(), r("g", la, [
|
|
1321
|
+
d.value === "TL" ? (s(), r("polygon", {
|
|
1302
1322
|
key: 0,
|
|
1303
1323
|
points: `${t.value.left - 1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.top - 1} ${t.value.right},${t.value.top - 1} ${t.value.right},${t.value.bottom} ${t.value.left - 1},${t.value.bottom} ${t.value.left - 1},${t.value.centerY}`,
|
|
1304
1324
|
fill: e.value.style.chart.backgroundColor,
|
|
1305
1325
|
style: { opacity: "1" }
|
|
1306
1326
|
}, null, 8, aa)) : h("", !0),
|
|
1307
|
-
|
|
1327
|
+
d.value === "TR" ? (s(), r("polygon", {
|
|
1308
1328
|
key: 1,
|
|
1309
1329
|
points: `${t.value.left},${t.value.top - 1} ${t.value.centerX},${t.value.top - 1} ${t.value.centerX},${t.value.centerY} ${t.value.right + 1},${t.value.centerY} ${t.value.right + 1},${t.value.bottom} ${t.value.left},${t.value.bottom} ${t.value.left},${t.value.top - 1}`,
|
|
1310
1330
|
fill: e.value.style.chart.backgroundColor,
|
|
1311
1331
|
style: { opacity: "1" }
|
|
1312
1332
|
}, null, 8, oa)) : h("", !0),
|
|
1313
|
-
|
|
1333
|
+
d.value === "BR" ? (s(), r("polygon", {
|
|
1314
1334
|
key: 2,
|
|
1315
1335
|
points: `${t.value.left},${t.value.top} ${t.value.right + 1},${t.value.top} ${t.value.right + 1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.bottom + 1} ${t.value.left},${t.value.bottom + 1} ${t.value.left},${t.value.top}`,
|
|
1316
1336
|
fill: e.value.style.chart.backgroundColor,
|
|
1317
1337
|
style: { opacity: "1" }
|
|
1318
1338
|
}, null, 8, ua)) : h("", !0),
|
|
1319
|
-
|
|
1339
|
+
d.value === "BL" ? (s(), r("polygon", {
|
|
1320
1340
|
key: 3,
|
|
1321
1341
|
points: `${t.value.left - 1},${t.value.top} ${t.value.right},${t.value.top} ${t.value.right},${t.value.bottom + 1} ${t.value.centerX},${t.value.bottom + 1} ${t.value.centerX},${t.value.centerY} ${t.value.left - 1},${t.value.centerY} ${t.value.left - 1},${t.value.top}`,
|
|
1322
1342
|
fill: e.value.style.chart.backgroundColor,
|
|
1323
1343
|
style: { opacity: "1" }
|
|
1324
1344
|
}, null, 8, sa)) : h("", !0)
|
|
1325
1345
|
])) : h("", !0),
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
x:
|
|
1329
|
-
y:
|
|
1330
|
-
"font-size":
|
|
1331
|
-
fill:
|
|
1346
|
+
d.value && !le.value ? (s(), r("g", na, [
|
|
1347
|
+
c("text", {
|
|
1348
|
+
x: H.value.x,
|
|
1349
|
+
y: H.value.y - H.value.fontSize / 1.5,
|
|
1350
|
+
"font-size": H.value.fontSize / 1.5,
|
|
1351
|
+
fill: H.value.fill,
|
|
1332
1352
|
"text-anchor": "middle",
|
|
1333
|
-
"font-weight":
|
|
1334
|
-
}, k(
|
|
1353
|
+
"font-weight": H.value.bold ? "bold" : "normal"
|
|
1354
|
+
}, k(H.value.text), 9, ra)
|
|
1335
1355
|
])) : h("", !0),
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
x:
|
|
1339
|
-
y:
|
|
1356
|
+
x.value && d.value ? (s(), r("g", ia, [
|
|
1357
|
+
c("rect", {
|
|
1358
|
+
x: S.value[d.value].tl.x,
|
|
1359
|
+
y: S.value[d.value].tl.y,
|
|
1340
1360
|
height: "20",
|
|
1341
1361
|
width: "20",
|
|
1342
|
-
fill:
|
|
1343
|
-
style:
|
|
1344
|
-
onClick:
|
|
1345
|
-
class:
|
|
1362
|
+
fill: S.value[d.value].tl.fill,
|
|
1363
|
+
style: _(`cursor: pointer; opacity: ${d.value === "TL" ? 1 : 0.2}`),
|
|
1364
|
+
onClick: o[8] || (o[8] = (a) => R("TL")),
|
|
1365
|
+
class: X({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "TL" })
|
|
1346
1366
|
}, null, 14, va),
|
|
1347
|
-
|
|
1348
|
-
x:
|
|
1349
|
-
y:
|
|
1367
|
+
c("rect", {
|
|
1368
|
+
x: S.value[d.value].tr.x,
|
|
1369
|
+
y: S.value[d.value].tr.y,
|
|
1350
1370
|
height: "20",
|
|
1351
1371
|
width: "20",
|
|
1352
|
-
fill:
|
|
1353
|
-
style:
|
|
1354
|
-
onClick:
|
|
1355
|
-
class:
|
|
1356
|
-
}, null, 14,
|
|
1357
|
-
|
|
1358
|
-
x:
|
|
1359
|
-
y:
|
|
1372
|
+
fill: S.value[d.value].tr.fill,
|
|
1373
|
+
style: _(`cursor: pointer; opacity: ${d.value === "TR" ? 1 : 0.2}`),
|
|
1374
|
+
onClick: o[9] || (o[9] = (a) => R("TR")),
|
|
1375
|
+
class: X({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "TR" })
|
|
1376
|
+
}, null, 14, da),
|
|
1377
|
+
c("rect", {
|
|
1378
|
+
x: S.value[d.value].br.x,
|
|
1379
|
+
y: S.value[d.value].br.y,
|
|
1360
1380
|
height: "20",
|
|
1361
1381
|
width: "20",
|
|
1362
|
-
fill:
|
|
1363
|
-
style:
|
|
1364
|
-
onClick:
|
|
1365
|
-
class:
|
|
1366
|
-
}, null, 14,
|
|
1367
|
-
|
|
1368
|
-
x:
|
|
1369
|
-
y:
|
|
1382
|
+
fill: S.value[d.value].br.fill,
|
|
1383
|
+
style: _(`cursor: pointer; opacity: ${d.value === "BR" ? 1 : 0.2}`),
|
|
1384
|
+
onClick: o[10] || (o[10] = (a) => R("BR")),
|
|
1385
|
+
class: X({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "BR" })
|
|
1386
|
+
}, null, 14, ca),
|
|
1387
|
+
c("rect", {
|
|
1388
|
+
x: S.value[d.value].bl.x,
|
|
1389
|
+
y: S.value[d.value].bl.y,
|
|
1370
1390
|
height: "20",
|
|
1371
1391
|
width: "20",
|
|
1372
|
-
fill:
|
|
1373
|
-
style:
|
|
1374
|
-
onClick:
|
|
1375
|
-
class:
|
|
1392
|
+
fill: S.value[d.value].bl.fill,
|
|
1393
|
+
style: _(`cursor: pointer; opacity: ${d.value === "BL" ? 1 : 0.2}`),
|
|
1394
|
+
onClick: o[11] || (o[11] = (a) => R("BL")),
|
|
1395
|
+
class: X({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "BL" })
|
|
1376
1396
|
}, null, 14, ha),
|
|
1377
|
-
|
|
1397
|
+
c("path", {
|
|
1378
1398
|
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1379
1399
|
stroke: e.value.style.chart.backgroundColor,
|
|
1380
1400
|
"stroke-width": 1,
|
|
1381
|
-
d:
|
|
1401
|
+
d: S.value[d.value].crosshairs.horizontal
|
|
1382
1402
|
}, null, 8, ya),
|
|
1383
|
-
|
|
1403
|
+
c("path", {
|
|
1384
1404
|
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1385
1405
|
stroke: e.value.style.chart.backgroundColor,
|
|
1386
1406
|
"stroke-width": 1,
|
|
1387
|
-
d:
|
|
1407
|
+
d: S.value[d.value].crosshairs.vertical
|
|
1388
1408
|
}, null, 8, ba)
|
|
1389
1409
|
])) : h("", !0),
|
|
1390
|
-
|
|
1410
|
+
p(l.$slots, "svg", { svg: t.value }, void 0, !0)
|
|
1391
1411
|
], 14, ml)),
|
|
1392
|
-
l.$slots.watermark ? (s(),
|
|
1393
|
-
|
|
1412
|
+
l.$slots.watermark ? (s(), r("div", fa, [
|
|
1413
|
+
p(l.$slots, "watermark", z(A({ isPrinting: i(Ne) || i(Be) })), void 0, !0)
|
|
1394
1414
|
])) : h("", !0),
|
|
1395
|
-
|
|
1415
|
+
c("div", {
|
|
1396
1416
|
id: `legend-bottom-${w.value}`
|
|
1397
1417
|
}, null, 8, pa),
|
|
1398
|
-
Ae.value ? (s(),
|
|
1418
|
+
Ae.value ? (s(), O(Ft, {
|
|
1399
1419
|
key: 5,
|
|
1400
1420
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
|
|
1401
1421
|
}, [
|
|
1402
|
-
|
|
1422
|
+
c("div", {
|
|
1403
1423
|
ref_key: "chartLegend",
|
|
1404
|
-
ref:
|
|
1424
|
+
ref: Se
|
|
1405
1425
|
}, [
|
|
1406
|
-
e.value.style.chart.legend.show ? (s(),
|
|
1426
|
+
e.value.style.chart.legend.show ? (s(), O(hl, {
|
|
1407
1427
|
key: `legend_${ze.value}`,
|
|
1408
1428
|
legendSet: K.value,
|
|
1409
1429
|
config: Tt.value,
|
|
1410
|
-
onClickMarker:
|
|
1430
|
+
onClickMarker: o[12] || (o[12] = ({ legend: a }) => Z(a.id))
|
|
1411
1431
|
}, {
|
|
1412
|
-
item:
|
|
1413
|
-
i(We) ? h("", !0) : (s(),
|
|
1432
|
+
item: f(({ legend: a }) => [
|
|
1433
|
+
i(We) ? h("", !0) : (s(), r("div", {
|
|
1414
1434
|
key: 0,
|
|
1415
|
-
onClick: (u) => Z(
|
|
1416
|
-
style:
|
|
1417
|
-
}, k(
|
|
1435
|
+
onClick: (u) => Z(a.id),
|
|
1436
|
+
style: _(`opacity:${W.value.includes(a.id) ? 0.5 : 1}`)
|
|
1437
|
+
}, k(a.name), 13, ga))
|
|
1418
1438
|
]),
|
|
1419
1439
|
_: 1
|
|
1420
|
-
}, 8, ["legendSet", "config"])) :
|
|
1440
|
+
}, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
|
|
1421
1441
|
key: 1,
|
|
1422
1442
|
legend: K.value
|
|
1423
1443
|
}, void 0, !0)
|
|
1424
1444
|
], 512)
|
|
1425
1445
|
], 8, ["to"])) : h("", !0),
|
|
1426
|
-
l.$slots.source ? (s(),
|
|
1446
|
+
l.$slots.source ? (s(), r("div", {
|
|
1427
1447
|
key: 6,
|
|
1428
1448
|
ref_key: "source",
|
|
1429
|
-
ref:
|
|
1449
|
+
ref: _e,
|
|
1430
1450
|
dir: "auto"
|
|
1431
1451
|
}, [
|
|
1432
|
-
|
|
1452
|
+
p(l.$slots, "source", {}, void 0, !0)
|
|
1433
1453
|
], 512)) : h("", !0),
|
|
1434
|
-
|
|
1435
|
-
show:
|
|
1454
|
+
re(i(ht), {
|
|
1455
|
+
show: $.value.showTooltip && de.value,
|
|
1436
1456
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1437
1457
|
color: e.value.style.chart.tooltip.color,
|
|
1438
1458
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1442,24 +1462,24 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
1442
1462
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1443
1463
|
position: e.value.style.chart.tooltip.position,
|
|
1444
1464
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1445
|
-
parent:
|
|
1446
|
-
content:
|
|
1447
|
-
isFullscreen:
|
|
1465
|
+
parent: Y.value,
|
|
1466
|
+
content: ce.value,
|
|
1467
|
+
isFullscreen: I.value,
|
|
1448
1468
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
1449
1469
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1450
1470
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1451
1471
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1452
1472
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1453
1473
|
}, {
|
|
1454
|
-
"tooltip-before":
|
|
1455
|
-
|
|
1474
|
+
"tooltip-before": f(() => [
|
|
1475
|
+
p(l.$slots, "tooltip-before", z(A({ ...pe.value })), void 0, !0)
|
|
1456
1476
|
]),
|
|
1457
|
-
"tooltip-after":
|
|
1458
|
-
|
|
1477
|
+
"tooltip-after": f(() => [
|
|
1478
|
+
p(l.$slots, "tooltip-after", z(A({ ...pe.value })), void 0, !0)
|
|
1459
1479
|
]),
|
|
1460
|
-
default:
|
|
1461
|
-
e.value.style.chart.tooltip.showShape ? (s(),
|
|
1462
|
-
|
|
1480
|
+
default: f(() => [
|
|
1481
|
+
e.value.style.chart.tooltip.showShape ? (s(), r("svg", ma, [
|
|
1482
|
+
re(it, {
|
|
1463
1483
|
plot: { x: 10, y: 10 },
|
|
1464
1484
|
shape: se.value.shape,
|
|
1465
1485
|
color: se.value.color,
|
|
@@ -1471,13 +1491,13 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
1471
1491
|
]),
|
|
1472
1492
|
_: 3
|
|
1473
1493
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1474
|
-
ke.value && e.value.userOptions.buttons.table ? (s(),
|
|
1494
|
+
ke.value && e.value.userOptions.buttons.table ? (s(), O(Rt(te.value.component), Pt({ key: 7 }, te.value.props, {
|
|
1475
1495
|
ref_key: "tableUnit",
|
|
1476
1496
|
ref: J,
|
|
1477
1497
|
onClose: et
|
|
1478
1498
|
}), ot({
|
|
1479
|
-
content:
|
|
1480
|
-
(s(),
|
|
1499
|
+
content: f(() => [
|
|
1500
|
+
(s(), O(i(ft), {
|
|
1481
1501
|
key: `table_${Te.value}`,
|
|
1482
1502
|
colNames: oe.value.colNames,
|
|
1483
1503
|
head: oe.value.head,
|
|
@@ -1487,12 +1507,12 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
1487
1507
|
withCloseButton: !e.value.table.useDialog,
|
|
1488
1508
|
onClose: et
|
|
1489
1509
|
}, {
|
|
1490
|
-
th:
|
|
1491
|
-
ut(k(
|
|
1510
|
+
th: f(({ th: a }) => [
|
|
1511
|
+
ut(k(a), 1)
|
|
1492
1512
|
]),
|
|
1493
|
-
td:
|
|
1494
|
-
|
|
1495
|
-
innerHTML:
|
|
1513
|
+
td: f(({ td: a }) => [
|
|
1514
|
+
c("div", {
|
|
1515
|
+
innerHTML: a.name || a
|
|
1496
1516
|
}, null, 8, xa)
|
|
1497
1517
|
]),
|
|
1498
1518
|
_: 1
|
|
@@ -1502,20 +1522,20 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
1502
1522
|
}, [
|
|
1503
1523
|
e.value.table.useDialog ? {
|
|
1504
1524
|
name: "title",
|
|
1505
|
-
fn:
|
|
1525
|
+
fn: f(() => [
|
|
1506
1526
|
ut(k(te.value.title), 1)
|
|
1507
1527
|
]),
|
|
1508
1528
|
key: "0"
|
|
1509
1529
|
} : void 0,
|
|
1510
1530
|
e.value.table.useDialog ? {
|
|
1511
1531
|
name: "actions",
|
|
1512
|
-
fn:
|
|
1513
|
-
|
|
1532
|
+
fn: f(() => [
|
|
1533
|
+
c("button", {
|
|
1514
1534
|
tabindex: "0",
|
|
1515
1535
|
class: "vue-ui-user-options-button",
|
|
1516
|
-
onClick:
|
|
1536
|
+
onClick: o[13] || (o[13] = (a) => ge(e.value.userOptions.callbacks.csv))
|
|
1517
1537
|
}, [
|
|
1518
|
-
|
|
1538
|
+
re(i(yt), {
|
|
1519
1539
|
name: "excel",
|
|
1520
1540
|
stroke: te.value.props.color
|
|
1521
1541
|
}, null, 8, ["stroke"])
|
|
@@ -1524,10 +1544,10 @@ const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox", "id"], xl = ["x", "y",
|
|
|
1524
1544
|
key: "1"
|
|
1525
1545
|
} : void 0
|
|
1526
1546
|
]), 1040)) : h("", !0),
|
|
1527
|
-
i(We) ? (s(),
|
|
1547
|
+
i(We) ? (s(), O(bl, { key: 8 })) : h("", !0)
|
|
1528
1548
|
], 46, pl));
|
|
1529
1549
|
}
|
|
1530
|
-
}, Na = /* @__PURE__ */ fl($a, [["__scopeId", "data-v-
|
|
1550
|
+
}, Na = /* @__PURE__ */ fl($a, [["__scopeId", "data-v-b5b8f18b"]]);
|
|
1531
1551
|
export {
|
|
1532
1552
|
Na as default
|
|
1533
1553
|
};
|