vue-data-ui 3.22.4 → 3.22.6
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-CgzmXCW_.js → Arrow-Ds4xmpiQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-VbypEaAa.js} +2 -2
- package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-DcUvOfxf.js} +1 -1
- package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-DFwIY5bE.js} +1 -1
- package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-DwolSINF.js} +2 -2
- package/dist/{ColorPicker-Usv7badH.js → ColorPicker-UVDPcrjE.js} +2 -2
- package/dist/{DataTable-PidUPOit.js → DataTable-CXfvIulC.js} +2 -2
- package/dist/{Legend-DXOzbXb-.js → Legend-D-635Kag.js} +2 -2
- package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-pR_1qp3s.js} +29 -29
- package/dist/{PackageVersion-Cm-3hwIF.js → PackageVersion-Da7hl-34.js} +1 -1
- package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-Bk2-E7V4.js} +18 -18
- package/dist/{Shape-BnF9aMPX.js → Shape-BSetplwm.js} +1 -1
- package/dist/{Slicer-hEvKOLw3.js → Slicer-ClIGOuoX.js} +2 -2
- package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-D1n9AW39.js} +4 -4
- package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-CjDAyolg.js} +1 -1
- package/dist/{Title-DDEEO-Nr.js → Title-C-p0ilWB.js} +1 -1
- package/dist/{Tooltip-BhKov422.js → Tooltip-YabpoXo1.js} +1 -1
- package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BO4VFL8O.js} +2 -2
- package/dist/components/arrow.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-bump.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-dag.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-geo.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-icon.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-stackline.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/{dom-to-png-ZOysoMwu.js → dom-to-png-CVJfsfwL.js} +1 -1
- package/dist/exposedLib-CjwriUaG.js +19 -0
- package/dist/{img-B29J8tV5.js → img-B_y5qDdm.js} +1 -1
- package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CyVwqXSh.js} +1 -1
- package/dist/{lib-CuwHGt1j.js → lib-DRBJCmHW.js} +6 -9
- package/dist/{package-CRlwXCDr.js → package-DyQ_PQis.js} +1 -1
- package/dist/{pdf-ymYt9Lee.js → pdf-CG02qhAH.js} +1 -1
- package/dist/{render-common-D6ny-Fwu.js → render-common-CUAlQvAQ.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +14 -0
- package/dist/types/vue-ui-treemap.d.ts +3 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-DPMOys9n.js} +1 -1
- package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
- package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-BEo2N1Db.js} +1 -1
- package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
- package/dist/{usePrinter-C0wAS8yc.js → usePrinter-CRp5IW3v.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-DTWqd0R2.js → vue-data-ui-Bpu4kxlm.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +1757 -0
- package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-CfMrbDoq.js} +4 -4
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +1238 -0
- package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-CG6rhFpy.js} +68 -68
- package/dist/{vue-ui-bullet-tlj5_z_z.js → vue-ui-bullet-C_oBS1cr.js} +18 -18
- package/dist/{vue-ui-bump-BD0Uq3As.js → vue-ui-bump-BZB1Na8h.js} +243 -243
- package/dist/{vue-ui-candlestick-CZxsNGKS.js → vue-ui-candlestick-8d_1xO8X.js} +27 -27
- package/dist/{vue-ui-carousel-table-ycbcmBKt.js → vue-ui-carousel-table-BfZNcwmY.js} +43 -43
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +2010 -0
- package/dist/vue-ui-chord-B-sauvLo.js +1391 -0
- package/dist/{vue-ui-circle-pack-BPC6zUis.js → vue-ui-circle-pack-BLh8HnGK.js} +32 -32
- package/dist/{vue-ui-cursor-DF_e5k1s.js → vue-ui-cursor-DVsEm_4l.js} +4 -4
- package/dist/{vue-ui-dag-BIo4-Oa8.js → vue-ui-dag-Cfi0b9qm.js} +24 -24
- package/dist/{vue-ui-dashboard-BEtF6UX2.js → vue-ui-dashboard-F_NZ1xoQ.js} +70 -70
- package/dist/{vue-ui-digits-07IxTlNO.js → vue-ui-digits-BfP1kbj3.js} +4 -4
- package/dist/vue-ui-donut-BwAyvV3-.js +2410 -0
- package/dist/{vue-ui-donut-C5oRCxAO.js → vue-ui-donut-DlVRnVr_.js} +120 -120
- package/dist/{vue-ui-donut-evolution-BSeyPC9k.js → vue-ui-donut-evolution-D1k4u6cA.js} +419 -419
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +1530 -0
- package/dist/{vue-ui-flow-R_dLE1WS.js → vue-ui-flow-D_7Idmmw.js} +84 -84
- package/dist/vue-ui-funnel-BYCFV5TD.js +777 -0
- package/dist/vue-ui-galaxy-Bjxbg5_B.js +1077 -0
- package/dist/{vue-ui-gauge-AbzY-7Gg.js → vue-ui-gauge-Dt0H7DgC.js} +217 -217
- package/dist/{vue-ui-geo-DVT9XEC3.js → vue-ui-geo-89DEQb5l.js} +18 -18
- package/dist/{vue-ui-gizmo-DJTRXao8.js → vue-ui-gizmo-CQyLK18v.js} +62 -62
- package/dist/{vue-ui-heatmap-BCFId15K.js → vue-ui-heatmap-o6MvoxBK.js} +247 -247
- package/dist/vue-ui-history-plot-B7zuCfdg.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-j3jszojt.js → vue-ui-horizontal-bar-CwB4sc6M.js} +275 -275
- package/dist/{vue-ui-kpi-DJjF6tcf.js → vue-ui-kpi-4C-j92D-.js} +4 -4
- package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-Bj4Wv-i8.js} +3 -3
- package/dist/vue-ui-molecule-BDrRmwmm.js +925 -0
- package/dist/{vue-ui-mood-radar-DP_4LHfZ.js → vue-ui-mood-radar-B5W35Fvp.js} +30 -30
- package/dist/{vue-ui-nested-donuts-DFsLZEqx.js → vue-ui-nested-donuts-wfesrzle.js} +105 -105
- package/dist/{vue-ui-onion-CzXx3Rme.js → vue-ui-onion-B8-psLbF.js} +40 -40
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +1416 -0
- package/dist/vue-ui-quadrant-BzyGOJR2.js +1978 -0
- package/dist/{vue-ui-quick-chart-CnIFPFPv.js → vue-ui-quick-chart-so_8PzvS.js} +663 -663
- package/dist/{vue-ui-radar-CNwKFbHc.js → vue-ui-radar-5fQ5AAWD.js} +63 -63
- package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-CKWHDKOT.js} +34 -34
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +924 -0
- package/dist/{vue-ui-ridgeline-Kw50zROq.js → vue-ui-ridgeline-DVbYznRz.js} +102 -102
- package/dist/vue-ui-rings-c-yLWFHr.js +1246 -0
- package/dist/{vue-ui-scatter-DoL5Kh1Y.js → vue-ui-scatter-QhmE7n1H.js} +87 -87
- package/dist/{vue-ui-skeleton-BOHwJSdz.js → vue-ui-skeleton-BkxB6Dik.js} +4 -4
- package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-C4g0iaF7.js} +10 -10
- package/dist/{vue-ui-spark-trend-OgSFIFh0.js → vue-ui-spark-trend-0FELlq4x.js} +98 -98
- package/dist/{vue-ui-sparkbar-D8FdqMB_.js → vue-ui-sparkbar-D-i_VLO6.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CBpPbVkw.js → vue-ui-sparkgauge-CWw6w_ng.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-BQjbLa2k.js → vue-ui-sparkhistogram-DuGpkfma.js} +105 -105
- package/dist/{vue-ui-sparkline-BJfh5Lje.js → vue-ui-sparkline-Bi06lHQd.js} +252 -252
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +662 -0
- package/dist/{vue-ui-stackbar-Dqs7_g8D.js → vue-ui-stackbar-DDvuDGQ_.js} +85 -85
- package/dist/vue-ui-stackline-C0NHBUaE.js +2416 -0
- package/dist/{vue-ui-strip-plot-B7D6Hk8R.js → vue-ui-strip-plot-_6LL45i9.js} +369 -369
- package/dist/{vue-ui-table-Bqi9XNvY.js → vue-ui-table-DBlZswRi.js} +26 -26
- package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-3xYIDKcP.js} +6 -6
- package/dist/{vue-ui-table-sparkline-0Ffb2jdf.js → vue-ui-table-sparkline-BH5PzEnJ.js} +201 -201
- package/dist/{vue-ui-thermometer-Di5PXtEO.js → vue-ui-thermometer-BxMzAqoT.js} +119 -119
- package/dist/{vue-ui-timer-9CDcd-gP.js → vue-ui-timer-ONSitYDm.js} +30 -30
- package/dist/{vue-ui-tiremarks-BAQ-cCSq.js → vue-ui-tiremarks-DWXM-9nR.js} +15 -15
- package/dist/vue-ui-treemap-B03c4RIy.js +1713 -0
- package/dist/{vue-ui-waffle-DG2IfACo.js → vue-ui-waffle-afa8HSxz.js} +160 -160
- package/dist/{vue-ui-wheel-BfXJFCjv.js → vue-ui-wheel-DRP7X8S2.js} +37 -37
- package/dist/{vue-ui-word-cloud-3NJy1z6d.js → vue-ui-word-cloud-AKpMO97a.js} +38 -38
- package/dist/{vue-ui-world-vrGT5g1H.js → vue-ui-world-CqS-HhZl.js} +400 -400
- package/dist/{vue-ui-xy-Dg0wxSeC.js → vue-ui-xy-Bmd11BxR.js} +656 -656
- package/dist/{vue-ui-xy-Cb7u46JN.js → vue-ui-xy-DJ8YKPgs.js} +244 -244
- package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DO_PDGKf.js} +47 -47
- package/package.json +1 -1
- package/dist/exposedLib-C2U48XK7.js +0 -19
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +0 -1757
- package/dist/vue-ui-age-pyramid-e09oK-Fp.js +0 -1238
- package/dist/vue-ui-chestnut-CnEsjvh4.js +0 -2010
- package/dist/vue-ui-chord-BZhXsZXp.js +0 -1391
- package/dist/vue-ui-donut-C4FcvXm3.js +0 -2410
- package/dist/vue-ui-dumbbell-Cykw4WYn.js +0 -1530
- package/dist/vue-ui-funnel-Ct5xQdak.js +0 -777
- package/dist/vue-ui-galaxy-B5BkdIt5.js +0 -1077
- package/dist/vue-ui-history-plot-DCeroetw.js +0 -1700
- package/dist/vue-ui-molecule-2pfoR63d.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +0 -1416
- package/dist/vue-ui-quadrant-Br_iZmcw.js +0 -1978
- package/dist/vue-ui-relation-circle-BVDIikGi.js +0 -924
- package/dist/vue-ui-rings-BDJyoWvT.js +0 -1246
- package/dist/vue-ui-sparkstackbar-1WUQrqd7.js +0 -662
- package/dist/vue-ui-stackline-IRjugedp.js +0 -2416
- package/dist/vue-ui-treemap-CLOlWiDE.js +0 -1587
|
@@ -0,0 +1,1978 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { At as t, Dt as n, H as r, Ht as i, It as a, Lt as o, Q as s, S as ee, W as c, Wt as te, X as ne, _t as re, at as ie, b as ae, i as l, pt as oe, q as u, r as se, t as ce, w as le, xt as ue } from "./lib-DRBJCmHW.js";
|
|
3
|
+
import { t as de } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as fe } from "./usePrinter-CRp5IW3v.js";
|
|
5
|
+
import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as he } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as ge } from "./useNestedProp-BEo2N1Db.js";
|
|
8
|
+
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ve } from "./img-B_y5qDdm.js";
|
|
10
|
+
import { n as ye } from "./Title-C-p0ilWB.js";
|
|
11
|
+
import { t as be } from "./Shape-BSetplwm.js";
|
|
12
|
+
import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { c as Se } from "./canvas-lib-BOP_HS11.js";
|
|
14
|
+
import { t as Ce } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
+
import { t as we } from "./BaseLegendToggle-DFwIY5bE.js";
|
|
16
|
+
import { t as Te } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as Ee } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as De } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as Oe } from "./Legend-D-635Kag.js";
|
|
20
|
+
import { t as ke } from "./vue_ui_quadrant-CDSTKTJz.js";
|
|
21
|
+
import { Fragment as d, Teleport as Ae, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Pe, nextTick as Fe, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ie, onMounted as Le, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Re, shallowRef as ze, toDisplayString as E, toRefs as Be, unref as D, watch as Ve, withCtx as O } from "vue";
|
|
22
|
+
//#region src/components/vue-ui-quadrant.vue
|
|
23
|
+
var He = /* @__PURE__ */ e({ default: () => $t }), Ue = ["id"], We = ["id"], Ge = ["id"], Ke = { style: { position: "relative" } }, qe = [
|
|
24
|
+
"xmlns",
|
|
25
|
+
"aria-describedby",
|
|
26
|
+
"viewBox",
|
|
27
|
+
"id"
|
|
28
|
+
], Je = [
|
|
29
|
+
"x",
|
|
30
|
+
"y",
|
|
31
|
+
"width",
|
|
32
|
+
"height"
|
|
33
|
+
], Ye = ["id"], Xe = ["stop-color"], Ze = ["stop-color"], Qe = { key: 1 }, $e = [
|
|
34
|
+
"fill",
|
|
35
|
+
"x",
|
|
36
|
+
"y",
|
|
37
|
+
"height",
|
|
38
|
+
"width",
|
|
39
|
+
"stroke-width",
|
|
40
|
+
"stroke",
|
|
41
|
+
"rx"
|
|
42
|
+
], et = [
|
|
43
|
+
"x1",
|
|
44
|
+
"y1",
|
|
45
|
+
"x2",
|
|
46
|
+
"y2",
|
|
47
|
+
"stroke",
|
|
48
|
+
"stroke-width"
|
|
49
|
+
], tt = [
|
|
50
|
+
"x1",
|
|
51
|
+
"y1",
|
|
52
|
+
"x2",
|
|
53
|
+
"y2",
|
|
54
|
+
"stroke",
|
|
55
|
+
"stroke-width"
|
|
56
|
+
], nt = { key: 2 }, rt = ["points", "fill"], it = ["points", "fill"], at = ["points", "fill"], ot = ["points", "fill"], st = { key: 3 }, ct = [
|
|
57
|
+
"y",
|
|
58
|
+
"fill",
|
|
59
|
+
"font-size"
|
|
60
|
+
], lt = [
|
|
61
|
+
"x",
|
|
62
|
+
"y",
|
|
63
|
+
"fill",
|
|
64
|
+
"font-size"
|
|
65
|
+
], ut = [
|
|
66
|
+
"x",
|
|
67
|
+
"y",
|
|
68
|
+
"fill",
|
|
69
|
+
"font-size"
|
|
70
|
+
], dt = [
|
|
71
|
+
"y",
|
|
72
|
+
"fill",
|
|
73
|
+
"font-size"
|
|
74
|
+
], ft = { key: 4 }, pt = [
|
|
75
|
+
"x",
|
|
76
|
+
"y",
|
|
77
|
+
"font-size",
|
|
78
|
+
"fill"
|
|
79
|
+
], mt = [
|
|
80
|
+
"x",
|
|
81
|
+
"y",
|
|
82
|
+
"font-size",
|
|
83
|
+
"fill"
|
|
84
|
+
], ht = [
|
|
85
|
+
"x",
|
|
86
|
+
"y",
|
|
87
|
+
"font-size",
|
|
88
|
+
"fill"
|
|
89
|
+
], gt = [
|
|
90
|
+
"id",
|
|
91
|
+
"font-size",
|
|
92
|
+
"transform",
|
|
93
|
+
"fill"
|
|
94
|
+
], _t = [
|
|
95
|
+
"id",
|
|
96
|
+
"font-size",
|
|
97
|
+
"transform",
|
|
98
|
+
"fill"
|
|
99
|
+
], vt = [
|
|
100
|
+
"id",
|
|
101
|
+
"font-size",
|
|
102
|
+
"transform",
|
|
103
|
+
"fill"
|
|
104
|
+
], yt = { key: 5 }, bt = ["fill", "points"], xt = [
|
|
105
|
+
"x",
|
|
106
|
+
"y",
|
|
107
|
+
"width",
|
|
108
|
+
"height"
|
|
109
|
+
], St = [
|
|
110
|
+
"x",
|
|
111
|
+
"y",
|
|
112
|
+
"width",
|
|
113
|
+
"height"
|
|
114
|
+
], Ct = [
|
|
115
|
+
"x",
|
|
116
|
+
"y",
|
|
117
|
+
"width",
|
|
118
|
+
"height"
|
|
119
|
+
], wt = [
|
|
120
|
+
"x",
|
|
121
|
+
"y",
|
|
122
|
+
"width",
|
|
123
|
+
"height"
|
|
124
|
+
], Tt = [
|
|
125
|
+
"x",
|
|
126
|
+
"y",
|
|
127
|
+
"onMouseenter",
|
|
128
|
+
"onMouseleave",
|
|
129
|
+
"onClick"
|
|
130
|
+
], Et = [
|
|
131
|
+
"data-a11y-plot-id",
|
|
132
|
+
"cx",
|
|
133
|
+
"cy",
|
|
134
|
+
"r"
|
|
135
|
+
], Dt = [
|
|
136
|
+
"data-a11y-plot-id",
|
|
137
|
+
"cx",
|
|
138
|
+
"cy",
|
|
139
|
+
"r"
|
|
140
|
+
], Ot = {
|
|
141
|
+
key: 0,
|
|
142
|
+
style: { "pointer-events": "none" }
|
|
143
|
+
}, kt = [
|
|
144
|
+
"x",
|
|
145
|
+
"y",
|
|
146
|
+
"font-size",
|
|
147
|
+
"fill"
|
|
148
|
+
], At = [
|
|
149
|
+
"x",
|
|
150
|
+
"y",
|
|
151
|
+
"font-size",
|
|
152
|
+
"fill",
|
|
153
|
+
"innerHTML"
|
|
154
|
+
], jt = { key: 0 }, Mt = [
|
|
155
|
+
"x",
|
|
156
|
+
"y",
|
|
157
|
+
"onMouseover",
|
|
158
|
+
"onMouseleave",
|
|
159
|
+
"onClick"
|
|
160
|
+
], Nt = {
|
|
161
|
+
key: 8,
|
|
162
|
+
class: "vue-ui-dna"
|
|
163
|
+
}, Pt = ["points", "fill"], Ft = ["points", "fill"], It = ["points", "fill"], Lt = ["points", "fill"], Rt = { key: 9 }, zt = [
|
|
164
|
+
"x",
|
|
165
|
+
"y",
|
|
166
|
+
"font-size",
|
|
167
|
+
"fill",
|
|
168
|
+
"font-weight"
|
|
169
|
+
], Bt = { key: 10 }, Vt = [
|
|
170
|
+
"x",
|
|
171
|
+
"y",
|
|
172
|
+
"fill"
|
|
173
|
+
], Ht = [
|
|
174
|
+
"x",
|
|
175
|
+
"y",
|
|
176
|
+
"fill"
|
|
177
|
+
], Ut = [
|
|
178
|
+
"x",
|
|
179
|
+
"y",
|
|
180
|
+
"fill"
|
|
181
|
+
], Wt = [
|
|
182
|
+
"x",
|
|
183
|
+
"y",
|
|
184
|
+
"fill"
|
|
185
|
+
], Gt = ["stroke", "d"], Kt = ["stroke", "d"], qt = {
|
|
186
|
+
key: 0,
|
|
187
|
+
style: {
|
|
188
|
+
position: "absolute",
|
|
189
|
+
top: "100%",
|
|
190
|
+
left: "0",
|
|
191
|
+
width: "100%"
|
|
192
|
+
},
|
|
193
|
+
"data-dom-to-png-ignore": "",
|
|
194
|
+
"aria-hidden": "true"
|
|
195
|
+
}, Jt = {
|
|
196
|
+
key: 5,
|
|
197
|
+
class: "vue-data-ui-watermark"
|
|
198
|
+
}, Yt = ["id"], Xt = ["onClick"], Zt = {
|
|
199
|
+
key: 0,
|
|
200
|
+
height: "14",
|
|
201
|
+
width: "14",
|
|
202
|
+
viewBox: "0 0 20 20"
|
|
203
|
+
}, Qt = ["innerHTML"], $t = /*#__PURE__*/ xe({
|
|
204
|
+
__name: "vue-ui-quadrant",
|
|
205
|
+
props: {
|
|
206
|
+
config: {
|
|
207
|
+
type: Object,
|
|
208
|
+
default() {
|
|
209
|
+
return {};
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
dataset: {
|
|
213
|
+
type: Array,
|
|
214
|
+
default() {
|
|
215
|
+
return [];
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
emits: [
|
|
220
|
+
"selectPlot",
|
|
221
|
+
"selectSide",
|
|
222
|
+
"selectLegend",
|
|
223
|
+
"copyAlt"
|
|
224
|
+
],
|
|
225
|
+
setup(e, { expose: xe, emit: He }) {
|
|
226
|
+
let $t = _(() => import("./Tooltip-YabpoXo1.js")), en = _(() => import("./BaseIcon-DcUvOfxf.js").then((e) => e.n)), tn = _(() => import("./vue-ui-accordion-CfMrbDoq.js").then((e) => e.n)), nn = _(() => import("./DataTable-CXfvIulC.js")), rn = _(() => import("./PenAndPaper-Bk2-E7V4.js").then((e) => e.t)), an = _(() => import("./UserOptions-BO4VFL8O.js").then((e) => e.n)), on = _(() => import("./PackageVersion-Da7hl-34.js").then((e) => e.t)), sn = _(() => import("./BaseDraggableDialog-VbypEaAa.js").then((e) => e.n)), { vue_ui_quadrant: cn } = de(), { isThemeValid: ln, warnInvalidTheme: un } = _e(), k = e, dn = f(() => !!k.dataset && k.dataset.length), A = C(c()), fn = He, pn = C(!1), mn = C(""), hn = C(0), j = C(!1), M = C(null), gn = C(null), _n = C(null), vn = C(null), yn = C(null), bn = C(0), xn = C(0), Sn = C(0), Cn = C(!1), wn = C(null), Tn = C(null), En = C(!1), Dn = C(!1), On = C(null), kn = C(null), An = C({
|
|
227
|
+
x: 0,
|
|
228
|
+
y: 0
|
|
229
|
+
}), jn = C("pointer"), Mn = C(!1), N = C(zn()), P = f(() => N.value.userOptions.useCursorPointer), Nn = f(() => ({
|
|
230
|
+
defaultConfig: {
|
|
231
|
+
userOptions: { show: !1 },
|
|
232
|
+
table: { show: !1 },
|
|
233
|
+
style: { chart: {
|
|
234
|
+
backgroundColor: "#99999930",
|
|
235
|
+
layout: {
|
|
236
|
+
grid: {
|
|
237
|
+
stroke: "#6A6A6A",
|
|
238
|
+
graduations: {
|
|
239
|
+
stroke: "#6A6A6A",
|
|
240
|
+
color: "#6A6A6A90"
|
|
241
|
+
},
|
|
242
|
+
xAxis: { auto: !0 },
|
|
243
|
+
yAxis: { auto: !0 }
|
|
244
|
+
},
|
|
245
|
+
labels: {
|
|
246
|
+
quadrantLabels: { show: !1 },
|
|
247
|
+
plotLabels: { show: !1 },
|
|
248
|
+
axisLabels: { show: !1 }
|
|
249
|
+
},
|
|
250
|
+
plots: { outlineColor: "#6A6A6A" }
|
|
251
|
+
},
|
|
252
|
+
legend: { backgroundColor: "transparent" }
|
|
253
|
+
} }
|
|
254
|
+
},
|
|
255
|
+
userConfig: N.value.skeletonConfig ?? {}
|
|
256
|
+
})), { loading: Pn, FINAL_DATASET: Fn } = pe({
|
|
257
|
+
...Be(k),
|
|
258
|
+
FINAL_CONFIG: N,
|
|
259
|
+
prepareConfig: zn,
|
|
260
|
+
callback: () => {
|
|
261
|
+
Promise.resolve().then(async () => {
|
|
262
|
+
await Fe(), R.value.showTable = N.value.table.show;
|
|
263
|
+
});
|
|
264
|
+
},
|
|
265
|
+
skeletonDataset: k.config?.skeletonDataset ?? [{
|
|
266
|
+
name: "_",
|
|
267
|
+
shape: "circle",
|
|
268
|
+
color: "#CACACA",
|
|
269
|
+
series: [
|
|
270
|
+
{
|
|
271
|
+
name: "_",
|
|
272
|
+
x: -6,
|
|
273
|
+
y: -4
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
name: "_",
|
|
277
|
+
x: -5,
|
|
278
|
+
y: -2
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: "_",
|
|
282
|
+
x: -4,
|
|
283
|
+
y: -1
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
name: "_",
|
|
287
|
+
x: -3,
|
|
288
|
+
y: -.5
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: "_",
|
|
292
|
+
x: -2,
|
|
293
|
+
y: -.25
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: "_",
|
|
297
|
+
x: -1,
|
|
298
|
+
y: -.135
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: "_",
|
|
302
|
+
x: 0,
|
|
303
|
+
y: 0
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
name: "_",
|
|
307
|
+
x: 1,
|
|
308
|
+
y: .135
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
name: "_",
|
|
312
|
+
x: 2,
|
|
313
|
+
y: .25
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "_",
|
|
317
|
+
x: 3,
|
|
318
|
+
y: .5
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
name: "_",
|
|
322
|
+
x: 4,
|
|
323
|
+
y: 1
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
name: "_",
|
|
327
|
+
x: 5,
|
|
328
|
+
y: 2
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
name: "_",
|
|
332
|
+
x: 6,
|
|
333
|
+
y: 4
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
}],
|
|
337
|
+
skeletonConfig: te({
|
|
338
|
+
defaultConfig: N.value,
|
|
339
|
+
userConfig: Nn.value
|
|
340
|
+
})
|
|
341
|
+
}), { userOptionsVisible: In, setUserOptionsVisibility: Ln, keepUserOptionState: Rn } = Ee({ config: N.value }), { svgRef: F } = De({ config: N.value.style.chart.title });
|
|
342
|
+
function zn() {
|
|
343
|
+
let e = ge({
|
|
344
|
+
userConfig: k.config,
|
|
345
|
+
defaultConfig: cn
|
|
346
|
+
}), n = e.theme;
|
|
347
|
+
if (!n) return e;
|
|
348
|
+
if (!ln.value(e)) return un(e), e;
|
|
349
|
+
let r = ge({
|
|
350
|
+
userConfig: ke[n] || k.config,
|
|
351
|
+
defaultConfig: e
|
|
352
|
+
}), a = ge({
|
|
353
|
+
userConfig: k.config,
|
|
354
|
+
defaultConfig: r
|
|
355
|
+
});
|
|
356
|
+
return {
|
|
357
|
+
...a,
|
|
358
|
+
customPalette: a.customPalette.length ? a.customPalette : i[n] || t
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
Ve(() => k.config, (e) => {
|
|
362
|
+
N.value = zn(), In.value = !N.value.userOptions.showOnChartHover, Vn(), bn.value += 1, xn.value += 1, Sn.value += 1, R.value.plotLabels.show = N.value.style.chart.layout.labels.plotLabels.show, R.value.showTable = N.value.table.show, R.value.showTooltip = N.value.style.chart.tooltip.show;
|
|
363
|
+
}, { deep: !0 });
|
|
364
|
+
let I = ze(null), Bn = ze(null), L = f(() => N.value.debug);
|
|
365
|
+
function Vn() {
|
|
366
|
+
if (n(k.dataset) ? s({
|
|
367
|
+
componentName: "VueUiQuadrant",
|
|
368
|
+
type: "dataset",
|
|
369
|
+
debug: L.value
|
|
370
|
+
}) : k.dataset.forEach((e, t) => {
|
|
371
|
+
[null, void 0].includes(e.name) && s({
|
|
372
|
+
componentName: "VueUiQuadrant",
|
|
373
|
+
type: "datasetSerieAttribute",
|
|
374
|
+
property: "name",
|
|
375
|
+
index: t,
|
|
376
|
+
debug: L.value
|
|
377
|
+
}), [null, void 0].includes(e.series) ? s({
|
|
378
|
+
componentName: "VueUiQuadrant",
|
|
379
|
+
type: "datasetSerieAttribute",
|
|
380
|
+
property: "series",
|
|
381
|
+
index: t,
|
|
382
|
+
debug: L.value
|
|
383
|
+
}) : e.series.forEach((e, t) => {
|
|
384
|
+
[null, void 0].includes(e.name) && s({
|
|
385
|
+
componentName: "VueUiQuadrant",
|
|
386
|
+
type: "datasetSerieAttribute",
|
|
387
|
+
property: "name",
|
|
388
|
+
key: "series",
|
|
389
|
+
index: t,
|
|
390
|
+
debug: L.value
|
|
391
|
+
});
|
|
392
|
+
});
|
|
393
|
+
}), N.value.responsive) {
|
|
394
|
+
let e = Se(() => {
|
|
395
|
+
let { width: e, height: t } = Ce({
|
|
396
|
+
chart: M.value,
|
|
397
|
+
title: N.value.style.chart.title.text ? gn.value : null,
|
|
398
|
+
legend: N.value.style.chart.legend.show ? _n.value : null,
|
|
399
|
+
source: vn.value,
|
|
400
|
+
noTitle: yn.value
|
|
401
|
+
});
|
|
402
|
+
z.value = 48, requestAnimationFrame(() => {
|
|
403
|
+
B.value.height = t, B.value.usableHeight = t - z.value * 2, B.value.width = e, B.value.usableWidth = e - z.value * 2, B.value.top = z.value, B.value.left = z.value, B.value.right = e - z.value, B.value.bottom = t - z.value, B.value.centerX = e / 2, B.value.centerY = t - t / 2, B.value.padding = z.value;
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
I.value && (Bn.value && I.value.unobserve(Bn.value), I.value.disconnect()), I.value = new ResizeObserver(e), Bn.value = M.value.parentNode, I.value.observe(Bn.value);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
Le(() => {
|
|
410
|
+
Cn.value = !0, Vn();
|
|
411
|
+
}), Ie(() => {
|
|
412
|
+
I.value && (Bn.value && I.value.unobserve(Bn.value), I.value.disconnect());
|
|
413
|
+
});
|
|
414
|
+
let { isPrinting: Hn, isImaging: Un, generatePdf: Wn, generateImage: Gn } = fe({
|
|
415
|
+
elementId: `vue-ui-quadrant_${A.value}`,
|
|
416
|
+
fileName: N.value.style.chart.title.text || "vue-ui-quadrant",
|
|
417
|
+
options: N.value.userOptions.print
|
|
418
|
+
}), Kn = f(() => N.value.userOptions.show && !N.value.style.chart.title.text), qn = f(() => ee(N.value.customPalette)), R = C({
|
|
419
|
+
plotLabels: { show: N.value.style.chart.layout.labels.plotLabels.show },
|
|
420
|
+
showTable: N.value.table.show,
|
|
421
|
+
showTooltip: N.value.style.chart.tooltip.show
|
|
422
|
+
}), z = C(48), B = C({
|
|
423
|
+
height: N.value.style.chart.height,
|
|
424
|
+
usableHeight: N.value.style.chart.height - z.value * 2,
|
|
425
|
+
width: N.value.style.chart.width,
|
|
426
|
+
usableWidth: N.value.style.chart.width - z.value * 2,
|
|
427
|
+
top: z.value,
|
|
428
|
+
left: z.value,
|
|
429
|
+
right: N.value.style.chart.width - z.value,
|
|
430
|
+
bottom: N.value.style.chart.height - z.value,
|
|
431
|
+
centerX: N.value.style.chart.width / 2,
|
|
432
|
+
centerY: N.value.style.chart.height - N.value.style.chart.height / 2,
|
|
433
|
+
padding: z.value
|
|
434
|
+
}), V = C({
|
|
435
|
+
...JSON.parse(JSON.stringify(B.value)),
|
|
436
|
+
startX: 0,
|
|
437
|
+
startY: 0
|
|
438
|
+
});
|
|
439
|
+
Ve(() => B.value, (e) => {
|
|
440
|
+
e && (V.value = {
|
|
441
|
+
...JSON.parse(JSON.stringify(B.value)),
|
|
442
|
+
startX: 0,
|
|
443
|
+
startY: 0
|
|
444
|
+
});
|
|
445
|
+
}, { deep: !0 });
|
|
446
|
+
let H = C(null), U = f(() => {
|
|
447
|
+
switch (H.value) {
|
|
448
|
+
case "TL": return {
|
|
449
|
+
x: V.value.startX + V.value.width / 2,
|
|
450
|
+
y: V.value.height,
|
|
451
|
+
text: N.value.style.chart.layout.labels.quadrantLabels.tl.text || "Top Left",
|
|
452
|
+
fontSize: N.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
453
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
454
|
+
bold: N.value.style.chart.layout.labels.quadrantLabels.tl.bold
|
|
455
|
+
};
|
|
456
|
+
case "TR": return {
|
|
457
|
+
x: V.value.startX + V.value.width / 2,
|
|
458
|
+
y: V.value.height,
|
|
459
|
+
text: N.value.style.chart.layout.labels.quadrantLabels.tr.text || "Top Right",
|
|
460
|
+
fontSize: N.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
461
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
462
|
+
bold: N.value.style.chart.layout.labels.quadrantLabels.tr.bold
|
|
463
|
+
};
|
|
464
|
+
case "BR": return {
|
|
465
|
+
x: V.value.startX + V.value.width / 2,
|
|
466
|
+
y: V.value.height * 1.678,
|
|
467
|
+
text: N.value.style.chart.layout.labels.quadrantLabels.br.text || "Bottom Right",
|
|
468
|
+
fontSize: N.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
469
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
470
|
+
bold: N.value.style.chart.layout.labels.quadrantLabels.br.bold
|
|
471
|
+
};
|
|
472
|
+
case "BL": return {
|
|
473
|
+
x: V.value.startX + V.value.width / 2,
|
|
474
|
+
y: V.value.height * 1.678,
|
|
475
|
+
text: N.value.style.chart.layout.labels.quadrantLabels.bl.text || "Bottom Left",
|
|
476
|
+
fontSize: N.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
477
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
478
|
+
bold: N.value.style.chart.layout.labels.quadrantLabels.bl.bold
|
|
479
|
+
};
|
|
480
|
+
default: return {
|
|
481
|
+
x: 0,
|
|
482
|
+
y: 0,
|
|
483
|
+
text: "",
|
|
484
|
+
fontSize: 0,
|
|
485
|
+
fill: "none",
|
|
486
|
+
bold: !1
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
}), Jn = C(null), Yn = C(!1);
|
|
490
|
+
function Xn({ targetX: e, targetY: t, targetW: n, targetH: r, side: i }) {
|
|
491
|
+
H.value && yr(i);
|
|
492
|
+
let a = {
|
|
493
|
+
x: e - V.value.startX,
|
|
494
|
+
y: t - V.value.startY,
|
|
495
|
+
w: n - V.value.width,
|
|
496
|
+
h: r - V.value.height
|
|
497
|
+
}, o = N.value.zoomAnimationFrames, s = 0;
|
|
498
|
+
function ee() {
|
|
499
|
+
Yn.value = !0, V.value.startX += a.x / o, V.value.startY += a.y / o, V.value.width += a.w / o, V.value.height += a.h / o, s += 1, s < o ? Jn.value = requestAnimationFrame(ee) : Yn.value = !1;
|
|
500
|
+
}
|
|
501
|
+
ee();
|
|
502
|
+
}
|
|
503
|
+
let W = f(() => N.value.zoomEnabled);
|
|
504
|
+
function G(e) {
|
|
505
|
+
if (W.value && !Yn.value) if (j.value && H.value === e) Xn({
|
|
506
|
+
targetX: 0,
|
|
507
|
+
targetY: 0,
|
|
508
|
+
targetW: B.value.width,
|
|
509
|
+
targetH: B.value.height
|
|
510
|
+
}), H.value = null, j.value = !1;
|
|
511
|
+
else {
|
|
512
|
+
switch (H.value = e, e) {
|
|
513
|
+
case "TL":
|
|
514
|
+
Xn({
|
|
515
|
+
targetX: 0,
|
|
516
|
+
targetY: 0,
|
|
517
|
+
targetW: B.value.width / 2 + B.value.left,
|
|
518
|
+
targetH: B.value.height / 2 + B.value.top,
|
|
519
|
+
side: "tl"
|
|
520
|
+
});
|
|
521
|
+
break;
|
|
522
|
+
case "TR":
|
|
523
|
+
Xn({
|
|
524
|
+
targetX: B.value.width / 2 - B.value.left,
|
|
525
|
+
targetY: 0,
|
|
526
|
+
targetW: B.value.width / 2 + B.value.left,
|
|
527
|
+
targetH: B.value.height / 2 + B.value.top,
|
|
528
|
+
side: "tr"
|
|
529
|
+
});
|
|
530
|
+
break;
|
|
531
|
+
case "BR":
|
|
532
|
+
Xn({
|
|
533
|
+
targetX: B.value.width / 2 - B.value.left,
|
|
534
|
+
targetY: B.value.height / 2 - B.value.top,
|
|
535
|
+
targetW: B.value.width / 2 + B.value.left,
|
|
536
|
+
targetH: B.value.height / 2 + B.value.top,
|
|
537
|
+
side: "br"
|
|
538
|
+
});
|
|
539
|
+
break;
|
|
540
|
+
case "BL":
|
|
541
|
+
Xn({
|
|
542
|
+
targetX: 0,
|
|
543
|
+
targetY: B.value.height / 2 - B.value.top,
|
|
544
|
+
targetW: B.value.width / 2 + B.value.left,
|
|
545
|
+
targetH: B.value.height / 2 + B.value.top,
|
|
546
|
+
side: "bl"
|
|
547
|
+
});
|
|
548
|
+
break;
|
|
549
|
+
default:
|
|
550
|
+
V.value.startX = 0, V.value.startY = 0, V.value.width = B.value.width, V.value.height = B.value.height;
|
|
551
|
+
break;
|
|
552
|
+
}
|
|
553
|
+
j.value = !0;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
let Zn = f(() => {
|
|
557
|
+
let e = N.value.style.chart.layout.grid.graduations.steps, t = B.value.usableWidth / (e * 2), n = B.value.top, r = [];
|
|
558
|
+
for (let i = 0; i < e; i += 1) r.push({
|
|
559
|
+
x: B.value.padding + t * i,
|
|
560
|
+
y: n + B.value.usableHeight * (i / e / 2),
|
|
561
|
+
height: B.value.usableHeight * (1 - i / e),
|
|
562
|
+
width: B.value.usableWidth * (1 - i / e),
|
|
563
|
+
opacity: Math.round((i + 1) / e * 20)
|
|
564
|
+
});
|
|
565
|
+
return r;
|
|
566
|
+
}), K = f(() => {
|
|
567
|
+
let e = N.value.style.chart.layout.grid.xAxis.max, t = N.value.style.chart.layout.grid.xAxis.min, n = N.value.style.chart.layout.grid.yAxis.max, r = N.value.style.chart.layout.grid.yAxis.min;
|
|
568
|
+
return N.value.style.chart.layout.grid.xAxis.auto && (e = Math.max(...Qn.value.flatMap((e) => e.series.map((e) => e.x))), t = Math.min(...Qn.value.flatMap((e) => e.series.map((e) => e.x)))), N.value.style.chart.layout.grid.yAxis.auto && (n = Math.max(...Qn.value.flatMap((e) => e.series.map((e) => e.y))), r = Math.min(...Qn.value.flatMap((e) => e.series.map((e) => e.y)))), {
|
|
569
|
+
x: {
|
|
570
|
+
max: e,
|
|
571
|
+
min: t
|
|
572
|
+
},
|
|
573
|
+
y: {
|
|
574
|
+
max: n,
|
|
575
|
+
min: r
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
}), q = C([]), Qn = f(() => Fn.value.map((e, n) => ({
|
|
579
|
+
...e,
|
|
580
|
+
series: ue({
|
|
581
|
+
data: e.series,
|
|
582
|
+
threshold: N.value.downsample.threshold
|
|
583
|
+
}),
|
|
584
|
+
id: `cat_${n}_${A.value}`,
|
|
585
|
+
color: ae(e.color) || qn.value[n] || t[n]
|
|
586
|
+
}))), $n = f(() => Qn.value.filter((e) => !q.value.includes(e.id))), er = f(() => Qn.value.map((e, t) => ({
|
|
587
|
+
...e,
|
|
588
|
+
shape: e.shape || "circle",
|
|
589
|
+
series: e.series.map((t) => ({
|
|
590
|
+
...t,
|
|
591
|
+
x: tr(t.x),
|
|
592
|
+
y: nr(t.y),
|
|
593
|
+
xValue: t.x,
|
|
594
|
+
yValue: t.y,
|
|
595
|
+
quadrantSide: dr({
|
|
596
|
+
x: t.x,
|
|
597
|
+
y: t.y
|
|
598
|
+
}),
|
|
599
|
+
categoryName: e.name,
|
|
600
|
+
category: e,
|
|
601
|
+
shape: e.shape,
|
|
602
|
+
color: e.color
|
|
603
|
+
}))
|
|
604
|
+
}))), J = f(() => (Fn.value.forEach((e, t) => {
|
|
605
|
+
e.series.forEach((e, t) => {
|
|
606
|
+
[null, void 0].includes(e.x) && s({
|
|
607
|
+
componentName: "VueUiQuadrant",
|
|
608
|
+
type: "datasetSerieAttribute",
|
|
609
|
+
property: "x",
|
|
610
|
+
key: "series",
|
|
611
|
+
index: t,
|
|
612
|
+
debug: L.value
|
|
613
|
+
}), [null, void 0].includes(e.y) && s({
|
|
614
|
+
componentName: "VueUiQuadrant",
|
|
615
|
+
type: "datasetSerieAttribute",
|
|
616
|
+
property: "y",
|
|
617
|
+
key: "series",
|
|
618
|
+
index: t,
|
|
619
|
+
debug: L.value
|
|
620
|
+
});
|
|
621
|
+
});
|
|
622
|
+
}), $n.value.map((e, n) => ({
|
|
623
|
+
...e,
|
|
624
|
+
shape: e.shape || "circle",
|
|
625
|
+
color: e.color || qn.value[n] || t[n],
|
|
626
|
+
series: e.series.map((t) => ({
|
|
627
|
+
...t,
|
|
628
|
+
category: e,
|
|
629
|
+
x: tr(t.x),
|
|
630
|
+
y: nr(t.y),
|
|
631
|
+
xValue: t.x,
|
|
632
|
+
yValue: t.y,
|
|
633
|
+
quadrantSide: dr({
|
|
634
|
+
x: t.x,
|
|
635
|
+
y: t.y
|
|
636
|
+
}),
|
|
637
|
+
categoryName: e.name,
|
|
638
|
+
shape: e.shape,
|
|
639
|
+
color: e.color,
|
|
640
|
+
uid: c()
|
|
641
|
+
}))
|
|
642
|
+
}))));
|
|
643
|
+
function tr(e) {
|
|
644
|
+
if (e >= 0) {
|
|
645
|
+
let t = e / K.value.x.max;
|
|
646
|
+
return B.value.centerX + B.value.usableWidth / 2 * t;
|
|
647
|
+
} else {
|
|
648
|
+
let t = Math.abs(e) / Math.abs(K.value.x.min);
|
|
649
|
+
return B.value.centerX - B.value.usableWidth / 2 * t;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
function nr(e) {
|
|
653
|
+
if (e >= 0) {
|
|
654
|
+
let t = e / K.value.y.max;
|
|
655
|
+
return B.value.centerY + (1 - B.value.usableHeight / 2 * t);
|
|
656
|
+
} else {
|
|
657
|
+
let t = Math.abs(e) / Math.abs(K.value.y.min);
|
|
658
|
+
return B.value.centerY - (1 - B.value.usableHeight / 2 * t);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
let rr = f(() => {
|
|
662
|
+
let e = J.value.flatMap((e) => e.series.map((t) => ({
|
|
663
|
+
x: t.xValue,
|
|
664
|
+
y: t.yValue,
|
|
665
|
+
name: t.name,
|
|
666
|
+
category: t.categoryName,
|
|
667
|
+
quadrantSide: t.quadrantSide,
|
|
668
|
+
sideName: N.value.style.chart.layout.labels.quadrantLabels[t.quadrantSide].text,
|
|
669
|
+
color: e.color,
|
|
670
|
+
shape: e.shape
|
|
671
|
+
}))), t = N.value.style.chart.layout.grid.xAxis.name || "x", n = N.value.style.chart.layout.grid.yAxis.name || "y";
|
|
672
|
+
return {
|
|
673
|
+
head: [
|
|
674
|
+
N.value.translations.category,
|
|
675
|
+
N.value.translations.item,
|
|
676
|
+
t,
|
|
677
|
+
n,
|
|
678
|
+
N.value.translations.side
|
|
679
|
+
],
|
|
680
|
+
body: e.map((e) => [
|
|
681
|
+
e.category,
|
|
682
|
+
e.name,
|
|
683
|
+
e.x,
|
|
684
|
+
e.y,
|
|
685
|
+
e.sideName || e.quadrantSide
|
|
686
|
+
]),
|
|
687
|
+
itsShapes: e.map((e) => ({
|
|
688
|
+
shape: e.shape,
|
|
689
|
+
color: e.color
|
|
690
|
+
})),
|
|
691
|
+
tableData: e
|
|
692
|
+
};
|
|
693
|
+
}), ir = f(() => {
|
|
694
|
+
let e = rr.value.head, t = rr.value.tableData.map((e) => [
|
|
695
|
+
{
|
|
696
|
+
shape: e.shape,
|
|
697
|
+
color: e.color,
|
|
698
|
+
name: e.category
|
|
699
|
+
},
|
|
700
|
+
e.name,
|
|
701
|
+
l(N.value.style.chart.layout.labels.plotLabels.x.formatter, e.x, u({
|
|
702
|
+
v: e.x,
|
|
703
|
+
r: N.value.style.chart.layout.labels.plotLabels.rounding
|
|
704
|
+
})),
|
|
705
|
+
l(N.value.style.chart.layout.labels.plotLabels.y.formatter, e.y, u({
|
|
706
|
+
v: e.y,
|
|
707
|
+
r: N.value.style.chart.layout.labels.plotLabels.rounding
|
|
708
|
+
})),
|
|
709
|
+
e.sideName || e.quadrantSide
|
|
710
|
+
]);
|
|
711
|
+
return {
|
|
712
|
+
head: e,
|
|
713
|
+
body: t,
|
|
714
|
+
a11yBody: t.map((e) => e.map((e, t) => t === 0 ? e.name ?? "" : e)),
|
|
715
|
+
config: {
|
|
716
|
+
th: {
|
|
717
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
718
|
+
color: N.value.table.th.color,
|
|
719
|
+
outline: N.value.table.th.outline
|
|
720
|
+
},
|
|
721
|
+
td: {
|
|
722
|
+
backgroundColor: N.value.table.td.backgroundColor,
|
|
723
|
+
color: N.value.table.td.color,
|
|
724
|
+
outline: N.value.table.td.outline
|
|
725
|
+
},
|
|
726
|
+
breakpoint: N.value.table.responsiveBreakpoint
|
|
727
|
+
},
|
|
728
|
+
colNames: e
|
|
729
|
+
};
|
|
730
|
+
});
|
|
731
|
+
function ar() {
|
|
732
|
+
q.value.length ? q.value = [] : Y.value.forEach((e) => {
|
|
733
|
+
q.value.push(e.id);
|
|
734
|
+
}), fn("selectLegend", br());
|
|
735
|
+
}
|
|
736
|
+
function or(e) {
|
|
737
|
+
q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.push(e), fn("selectLegend", br());
|
|
738
|
+
}
|
|
739
|
+
let Y = f(() => er.value.map((e) => ({
|
|
740
|
+
name: e.name,
|
|
741
|
+
shape: e.shape,
|
|
742
|
+
color: e.color,
|
|
743
|
+
id: e.id,
|
|
744
|
+
opacity: q.value.includes(e.id) ? .5 : 1,
|
|
745
|
+
segregate: () => or(e.id),
|
|
746
|
+
isSegregated: q.value.includes(e.id)
|
|
747
|
+
})));
|
|
748
|
+
function sr(e) {
|
|
749
|
+
return Y.value.length ? Y.value.find((t) => t.name === e) || (N.value.debug && console.warn(`VueUiQuadrant - Series name not found "${e}"`), null) : (N.value.debug && console.warn("VueUiQuadrant - There are no series to show."), null);
|
|
750
|
+
}
|
|
751
|
+
function cr(e) {
|
|
752
|
+
let t = sr(e);
|
|
753
|
+
t !== null && q.value.includes(t.id) && or(t.id);
|
|
754
|
+
}
|
|
755
|
+
function lr(e) {
|
|
756
|
+
let t = sr(e);
|
|
757
|
+
t !== null && (q.value.includes(t.id) || or(t.id));
|
|
758
|
+
}
|
|
759
|
+
let ur = f(() => ({
|
|
760
|
+
cy: "quadrant-div-legend",
|
|
761
|
+
backgroundColor: N.value.style.chart.legend.backgroundColor,
|
|
762
|
+
color: N.value.style.chart.legend.color,
|
|
763
|
+
fontSize: N.value.style.chart.legend.fontSize,
|
|
764
|
+
paddingBottom: 12,
|
|
765
|
+
fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
|
|
766
|
+
}));
|
|
767
|
+
function dr(e) {
|
|
768
|
+
switch (!0) {
|
|
769
|
+
case e.x >= 0 && e.y >= 0: return "tr";
|
|
770
|
+
case e.x >= 0 && e.y < 0: return "br";
|
|
771
|
+
case e.x < 0 && e.y < 0: return "bl";
|
|
772
|
+
case e.x < 0 && e.y >= 0: return "tl";
|
|
773
|
+
default: return "";
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
let X = C(null), fr = C(null), pr = C(null);
|
|
777
|
+
function mr() {
|
|
778
|
+
X.value = null, fr.value = null, On.value = null, kn.value = null, pn.value = !1;
|
|
779
|
+
}
|
|
780
|
+
function hr(e) {
|
|
781
|
+
if (!F.value || !e) return;
|
|
782
|
+
let t = `[data-a11y-plot-id="${e}"]`, n = F.value.querySelector(t);
|
|
783
|
+
if (!n) return;
|
|
784
|
+
let r = n.getBoundingClientRect();
|
|
785
|
+
An.value = {
|
|
786
|
+
x: r.left + r.width / 2,
|
|
787
|
+
y: r.top + r.height / 2
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
function gr(e, t, n, r = "pointer", i = null) {
|
|
791
|
+
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
792
|
+
datapoint: t,
|
|
793
|
+
seriesIndex: n
|
|
794
|
+
}), X.value = t.uid, fr.value = {
|
|
795
|
+
color: e.color,
|
|
796
|
+
shape: e.shape
|
|
797
|
+
}, jn.value = r, On.value = i, kn.value = t.uid, pr.value = {
|
|
798
|
+
datapoint: t,
|
|
799
|
+
seriesIndex: n,
|
|
800
|
+
series: J.value,
|
|
801
|
+
config: N.value
|
|
802
|
+
};
|
|
803
|
+
let a = N.value.style.chart.tooltip.customFormat;
|
|
804
|
+
if (re(a) && ie(() => a({
|
|
805
|
+
seriesIndex: n,
|
|
806
|
+
datapoint: t,
|
|
807
|
+
series: J.value,
|
|
808
|
+
config: N.value
|
|
809
|
+
}))) mn.value = a({
|
|
810
|
+
seriesIndex: n,
|
|
811
|
+
datapoint: t,
|
|
812
|
+
series: J.value,
|
|
813
|
+
config: N.value
|
|
814
|
+
});
|
|
815
|
+
else {
|
|
816
|
+
let r = "";
|
|
817
|
+
t.quadrantSide && (r += `<div style="color:${N.value.style.chart.layout.labels.quadrantLabels[t.quadrantSide].color};font-weight:${N.value.style.chart.layout.labels.quadrantLabels[t.quadrantSide].bold ? "bold" : "400"}">${N.value.style.chart.layout.labels.quadrantLabels[t.quadrantSide].text}</div>`), r += `<div>${e.name}</div>`, r += `<div style="padding-bottom:6px;border-bottom:1px solid ${N.value.style.chart.tooltip.borderColor};margin-bottom:3px">${t.name}</div>`, r += `<div>${N.value.style.chart.layout.grid.xAxis.name ? N.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${l(N.value.style.chart.layout.labels.plotLabels.x.formatter, t.xValue, u({
|
|
818
|
+
v: t.xValue,
|
|
819
|
+
r: N.value.style.chart.tooltip.roundingValue
|
|
820
|
+
}), {
|
|
821
|
+
datapoint: t,
|
|
822
|
+
category: e,
|
|
823
|
+
categoryIndex: n
|
|
824
|
+
})}</b></div>`, r += `<div>${N.value.style.chart.layout.grid.yAxis.name ? N.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${l(N.value.style.chart.layout.labels.plotLabels.y.formatter, t.yValue, u({
|
|
825
|
+
v: t.yValue,
|
|
826
|
+
r: N.value.style.chart.tooltip.roundingValue
|
|
827
|
+
}), {
|
|
828
|
+
datapoint: t,
|
|
829
|
+
category: e,
|
|
830
|
+
categoryIndex: n
|
|
831
|
+
})}</b></div>`, mn.value = `<div style="text-align:left;font-size:${N.value.style.chart.tooltip.fontSize}px">${r}</div>`;
|
|
832
|
+
}
|
|
833
|
+
r === "keyboard" && Fe(() => {
|
|
834
|
+
hr(t.uid);
|
|
835
|
+
}), pn.value = !0;
|
|
836
|
+
}
|
|
837
|
+
function _r(e, t) {
|
|
838
|
+
N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
839
|
+
datapoint: e,
|
|
840
|
+
seriesIndex: t
|
|
841
|
+
}), !(kn.value === e.uid && jn.value === "keyboard") && (pn.value = !1, X.value = null, fr.value = null);
|
|
842
|
+
}
|
|
843
|
+
function vr(e, t, n) {
|
|
844
|
+
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
845
|
+
datapoint: t,
|
|
846
|
+
seriesIndex: n
|
|
847
|
+
}), fn("selectPlot", {
|
|
848
|
+
category: e.name,
|
|
849
|
+
shape: e.shape,
|
|
850
|
+
itemName: t.name,
|
|
851
|
+
x: t.xValue,
|
|
852
|
+
y: t.yValue,
|
|
853
|
+
quadrantSide: t.quadrantSide,
|
|
854
|
+
sideName: N.value.style.chart.layout.labels.quadrantLabels[t.quadrantSide].text
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
function yr(e) {
|
|
858
|
+
if (!e) return;
|
|
859
|
+
let t = J.value.flatMap((t) => t.series.filter((t) => t.quadrantSide === e).map((e) => ({
|
|
860
|
+
category: e.categoryName,
|
|
861
|
+
itemName: e.name,
|
|
862
|
+
x: e.xValue,
|
|
863
|
+
y: e.yValue
|
|
864
|
+
})));
|
|
865
|
+
fn("selectSide", {
|
|
866
|
+
quadrantSide: e,
|
|
867
|
+
sideName: N.value.style.chart.layout.labels.quadrantLabels[e].text,
|
|
868
|
+
items: [...t]
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
let Z = f(() => ({
|
|
872
|
+
TL: {
|
|
873
|
+
tl: {
|
|
874
|
+
x: B.value.left + B.value.usableWidth / 4 - 20,
|
|
875
|
+
y: 0,
|
|
876
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
877
|
+
},
|
|
878
|
+
tr: {
|
|
879
|
+
x: B.value.left + B.value.usableWidth / 4,
|
|
880
|
+
y: 0,
|
|
881
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
882
|
+
},
|
|
883
|
+
br: {
|
|
884
|
+
x: B.value.left + B.value.usableWidth / 4,
|
|
885
|
+
y: 20,
|
|
886
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
887
|
+
},
|
|
888
|
+
bl: {
|
|
889
|
+
x: B.value.left + B.value.usableWidth / 4 - 20,
|
|
890
|
+
y: 20,
|
|
891
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
892
|
+
},
|
|
893
|
+
crosshairs: {
|
|
894
|
+
horizontal: `M ${B.value.left + B.value.usableWidth / 4 - 20},20 ${B.value.left + B.value.usableWidth / 4 + 20},20`,
|
|
895
|
+
vertical: `M ${B.value.left + B.value.usableWidth / 4},0 ${B.value.left + B.value.usableWidth / 4},40`
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
TR: {
|
|
899
|
+
tl: {
|
|
900
|
+
x: B.value.centerX + B.value.usableWidth / 4 - 20,
|
|
901
|
+
y: 0,
|
|
902
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
903
|
+
},
|
|
904
|
+
tr: {
|
|
905
|
+
x: B.value.centerX + B.value.usableWidth / 4,
|
|
906
|
+
y: 0,
|
|
907
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
908
|
+
},
|
|
909
|
+
br: {
|
|
910
|
+
x: B.value.centerX + B.value.usableWidth / 4,
|
|
911
|
+
y: 20,
|
|
912
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
913
|
+
},
|
|
914
|
+
bl: {
|
|
915
|
+
x: B.value.centerX + B.value.usableWidth / 4 - 20,
|
|
916
|
+
y: 20,
|
|
917
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
918
|
+
},
|
|
919
|
+
crosshairs: {
|
|
920
|
+
horizontal: `M ${B.value.centerX + B.value.usableWidth / 4 - 20},20 ${B.value.centerX + B.value.usableWidth / 4 + 20},20`,
|
|
921
|
+
vertical: `M ${B.value.centerX + B.value.usableWidth / 4},0 ${B.value.centerX + B.value.usableWidth / 4},40`
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
BR: {
|
|
925
|
+
tl: {
|
|
926
|
+
x: B.value.centerX + B.value.usableWidth / 4 - 20,
|
|
927
|
+
y: B.value.centerY - 48,
|
|
928
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
929
|
+
},
|
|
930
|
+
tr: {
|
|
931
|
+
x: B.value.centerX + B.value.usableWidth / 4,
|
|
932
|
+
y: B.value.centerY - 48,
|
|
933
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
934
|
+
},
|
|
935
|
+
br: {
|
|
936
|
+
x: B.value.centerX + B.value.usableWidth / 4,
|
|
937
|
+
y: B.value.centerY - 28,
|
|
938
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
939
|
+
},
|
|
940
|
+
bl: {
|
|
941
|
+
x: B.value.centerX + B.value.usableWidth / 4 - 20,
|
|
942
|
+
y: B.value.centerY - 28,
|
|
943
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
944
|
+
},
|
|
945
|
+
crosshairs: {
|
|
946
|
+
horizontal: `M ${B.value.centerX + B.value.usableWidth / 4 - 20},${B.value.centerY - 28} ${B.value.centerX + B.value.usableWidth / 4 + 20},${B.value.centerY - 28}`,
|
|
947
|
+
vertical: `M ${B.value.centerX + B.value.usableWidth / 4},${B.value.centerY - 48} ${B.value.centerX + B.value.usableWidth / 4},${B.value.centerY - 8}`
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
BL: {
|
|
951
|
+
tl: {
|
|
952
|
+
x: B.value.left + B.value.usableWidth / 4 - 20,
|
|
953
|
+
y: B.value.centerY - 48,
|
|
954
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
955
|
+
},
|
|
956
|
+
tr: {
|
|
957
|
+
x: B.value.left + B.value.usableWidth / 4,
|
|
958
|
+
y: B.value.centerY - 48,
|
|
959
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
960
|
+
},
|
|
961
|
+
br: {
|
|
962
|
+
x: B.value.left + B.value.usableWidth / 4,
|
|
963
|
+
y: B.value.centerY - 28,
|
|
964
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
965
|
+
},
|
|
966
|
+
bl: {
|
|
967
|
+
x: B.value.left + B.value.usableWidth / 4 - 20,
|
|
968
|
+
y: B.value.centerY - 28,
|
|
969
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
970
|
+
},
|
|
971
|
+
crosshairs: {
|
|
972
|
+
horizontal: `M ${B.value.left + B.value.usableWidth / 4 - 20},${B.value.centerY - 28} ${B.value.left + B.value.usableWidth / 4 + 20},${B.value.centerY - 28}`,
|
|
973
|
+
vertical: `M ${B.value.left + B.value.usableWidth / 4},${B.value.centerY - 48} ${B.value.left + B.value.usableWidth / 4},${B.value.centerY - 8}`
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}));
|
|
977
|
+
function br() {
|
|
978
|
+
return J.value.map((e) => ({
|
|
979
|
+
color: e.color,
|
|
980
|
+
name: e.name,
|
|
981
|
+
shape: e.shape,
|
|
982
|
+
series: e.series.map((e) => ({
|
|
983
|
+
name: e.name,
|
|
984
|
+
x: e.xValue,
|
|
985
|
+
y: e.yValue,
|
|
986
|
+
quadrantSide: e.quadrantSide,
|
|
987
|
+
sideName: N.value.style.chart.layout.labels.quadrantLabels[e.quadrantSide].text
|
|
988
|
+
}))
|
|
989
|
+
}));
|
|
990
|
+
}
|
|
991
|
+
function xr(e = null) {
|
|
992
|
+
Fe(() => {
|
|
993
|
+
let t = [
|
|
994
|
+
[N.value.style.chart.title.text],
|
|
995
|
+
[N.value.style.chart.title.subtitle.text],
|
|
996
|
+
[""]
|
|
997
|
+
], n = rr.value.head, r = rr.value.body, i = le(t.concat([n]).concat(r));
|
|
998
|
+
e ? e(i) : ne({
|
|
999
|
+
csvContent: i,
|
|
1000
|
+
title: N.value.style.chart.title.text || "vue-ui-quadrant"
|
|
1001
|
+
});
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
let Q = C(!1);
|
|
1005
|
+
function Sr(e) {
|
|
1006
|
+
Q.value = e, hn.value += 1;
|
|
1007
|
+
}
|
|
1008
|
+
function Cr() {
|
|
1009
|
+
R.value.showTable = !R.value.showTable;
|
|
1010
|
+
}
|
|
1011
|
+
function wr() {
|
|
1012
|
+
R.value.plotLabels.show = !R.value.plotLabels.show;
|
|
1013
|
+
}
|
|
1014
|
+
function Tr() {
|
|
1015
|
+
R.value.showTooltip = !R.value.showTooltip;
|
|
1016
|
+
}
|
|
1017
|
+
let Er = C(!1);
|
|
1018
|
+
function Dr() {
|
|
1019
|
+
Er.value = !Er.value;
|
|
1020
|
+
}
|
|
1021
|
+
async function Or({ scale: e = 2 } = {}) {
|
|
1022
|
+
if (!M.value) return;
|
|
1023
|
+
let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
|
|
1024
|
+
domElement: M.value,
|
|
1025
|
+
base64: !0,
|
|
1026
|
+
img: !0,
|
|
1027
|
+
scale: e
|
|
1028
|
+
});
|
|
1029
|
+
return {
|
|
1030
|
+
imageUri: i,
|
|
1031
|
+
base64: a,
|
|
1032
|
+
title: N.value.style.chart.title.text,
|
|
1033
|
+
width: t,
|
|
1034
|
+
height: n,
|
|
1035
|
+
aspectRatio: r
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
let kr = f(() => {
|
|
1039
|
+
let e = N.value.table.useDialog && !N.value.table.show, t = R.value.showTable;
|
|
1040
|
+
return {
|
|
1041
|
+
component: e ? sn : tn,
|
|
1042
|
+
title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1043
|
+
props: e ? {
|
|
1044
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
1045
|
+
color: N.value.table.th.color,
|
|
1046
|
+
headerColor: N.value.table.th.color,
|
|
1047
|
+
headerBg: N.value.table.th.backgroundColor,
|
|
1048
|
+
isFullscreen: Q.value,
|
|
1049
|
+
fullscreenParent: M.value,
|
|
1050
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1051
|
+
isCursorPointer: P.value
|
|
1052
|
+
} : {
|
|
1053
|
+
hideDetails: !0,
|
|
1054
|
+
config: {
|
|
1055
|
+
open: t,
|
|
1056
|
+
maxHeight: 1e4,
|
|
1057
|
+
body: {
|
|
1058
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1059
|
+
color: N.value.style.chart.color
|
|
1060
|
+
},
|
|
1061
|
+
head: {
|
|
1062
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1063
|
+
color: N.value.style.chart.color
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
1068
|
+
});
|
|
1069
|
+
Ve(() => R.value.showTable, (e) => {
|
|
1070
|
+
N.value.table.show || (e && N.value.table.useDialog && wn.value ? wn.value.open() : "close" in wn.value && wn.value.close());
|
|
1071
|
+
});
|
|
1072
|
+
function Ar() {
|
|
1073
|
+
R.value.showTable = !1, Tn.value && Tn.value.setTableIconState(!1);
|
|
1074
|
+
}
|
|
1075
|
+
let jr = f(() => N.value.style.chart.backgroundColor), Mr = f(() => N.value.style.chart.legend), { exportSvg: Nr, getSvg: Pr } = he({
|
|
1076
|
+
svg: F,
|
|
1077
|
+
title: f(() => N.value.style.chart.title),
|
|
1078
|
+
legend: Mr,
|
|
1079
|
+
legendItems: Y,
|
|
1080
|
+
backgroundColor: jr
|
|
1081
|
+
});
|
|
1082
|
+
async function Fr({ isCb: e }) {
|
|
1083
|
+
Dn.value = !0, await Fe();
|
|
1084
|
+
try {
|
|
1085
|
+
if (e) {
|
|
1086
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Pr();
|
|
1087
|
+
await Promise.resolve(N.value.userOptions.callbacks.svg({
|
|
1088
|
+
blob: e,
|
|
1089
|
+
url: t,
|
|
1090
|
+
text: n,
|
|
1091
|
+
dataUrl: r
|
|
1092
|
+
}));
|
|
1093
|
+
} else await Promise.resolve(Nr());
|
|
1094
|
+
} finally {
|
|
1095
|
+
Dn.value = !1;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
function Ir(e) {
|
|
1099
|
+
if (e?.stage === "start") {
|
|
1100
|
+
En.value = !0;
|
|
1101
|
+
return;
|
|
1102
|
+
}
|
|
1103
|
+
if (e?.stage === "end") {
|
|
1104
|
+
En.value = !1;
|
|
1105
|
+
return;
|
|
1106
|
+
}
|
|
1107
|
+
Gn();
|
|
1108
|
+
}
|
|
1109
|
+
async function Lr() {
|
|
1110
|
+
if (fn("copyAlt", {
|
|
1111
|
+
config: N.value,
|
|
1112
|
+
dataset: $n.value
|
|
1113
|
+
}), !N.value.userOptions.callbacks.altCopy) {
|
|
1114
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1117
|
+
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
1118
|
+
config: N.value,
|
|
1119
|
+
dataset: $n.value
|
|
1120
|
+
}));
|
|
1121
|
+
}
|
|
1122
|
+
function Rr() {
|
|
1123
|
+
On.value = null, kn.value = null, Mn.value = !0;
|
|
1124
|
+
}
|
|
1125
|
+
function zr() {
|
|
1126
|
+
mr(), Mn.value = !1;
|
|
1127
|
+
}
|
|
1128
|
+
function Br(e) {
|
|
1129
|
+
if (!F.value || Er.value || document.activeElement !== F.value || !$.value.length) return;
|
|
1130
|
+
let t = e.key === "ArrowLeft" || e.key === "ArrowUp", n = e.key === "ArrowRight" || e.key === "ArrowDown", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1131
|
+
if (!t && !n && !r && !i) return;
|
|
1132
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1133
|
+
mr();
|
|
1134
|
+
return;
|
|
1135
|
+
}
|
|
1136
|
+
if (r) {
|
|
1137
|
+
if (On.value === null) return;
|
|
1138
|
+
let e = $.value[On.value];
|
|
1139
|
+
if (!e) return;
|
|
1140
|
+
vr(e.category, e.plot, e.categoryIndex);
|
|
1141
|
+
return;
|
|
1142
|
+
}
|
|
1143
|
+
let a = On.value, o = X.value ? $.value.findIndex((e) => e.plot.uid === X.value) : null, s = a !== null && a >= 0 && a < $.value.length, ee = o !== null && o >= 0 && o < $.value.length;
|
|
1144
|
+
s ? (a += n ? 1 : -1, a < 0 && (a = $.value.length - 1), a >= $.value.length && (a = 0)) : ee ? (a = n ? o + 1 : o - 1, a >= $.value.length && (a = 0), a < 0 && (a = $.value.length - 1)) : a = n ? 0 : $.value.length - 1;
|
|
1145
|
+
let c = $.value[a];
|
|
1146
|
+
c && gr(c.category, c.plot, c.categoryIndex, "keyboard", a);
|
|
1147
|
+
}
|
|
1148
|
+
let Vr = f(() => ({
|
|
1149
|
+
headers: ir.value?.colNames ?? [],
|
|
1150
|
+
rows: ir.value?.a11yBody ?? []
|
|
1151
|
+
})), $ = f(() => J.value.flatMap((e, t) => e.series.map((n) => ({
|
|
1152
|
+
category: e,
|
|
1153
|
+
plot: n,
|
|
1154
|
+
categoryIndex: t
|
|
1155
|
+
}))));
|
|
1156
|
+
return xe({
|
|
1157
|
+
getData: br,
|
|
1158
|
+
getImage: Or,
|
|
1159
|
+
generatePdf: Wn,
|
|
1160
|
+
generateCsv: xr,
|
|
1161
|
+
generateImage: Gn,
|
|
1162
|
+
generateSvg: Fr,
|
|
1163
|
+
hideSeries: lr,
|
|
1164
|
+
showSeries: cr,
|
|
1165
|
+
toggleTable: Cr,
|
|
1166
|
+
toggleLabels: wr,
|
|
1167
|
+
toggleTooltip: Tr,
|
|
1168
|
+
toggleAnnotator: Dr,
|
|
1169
|
+
toggleFullscreen: Sr,
|
|
1170
|
+
copyAlt: Lr
|
|
1171
|
+
}), (e, t) => (S(), h("div", {
|
|
1172
|
+
class: y(`vue-data-ui-component vue-ui-quadrant ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1173
|
+
ref_key: "quadrantChart",
|
|
1174
|
+
ref: M,
|
|
1175
|
+
id: `vue-ui-quadrant_${A.value}`,
|
|
1176
|
+
style: x(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height: 100%" : ""}`),
|
|
1177
|
+
onMouseenter: t[14] ||= () => D(Ln)(!0),
|
|
1178
|
+
onMouseleave: t[15] ||= () => {
|
|
1179
|
+
D(Ln)(!1), Mn.value || mr();
|
|
1180
|
+
}
|
|
1181
|
+
}, [
|
|
1182
|
+
g("div", {
|
|
1183
|
+
id: `chart-instructions-${A.value}`,
|
|
1184
|
+
class: "sr-only"
|
|
1185
|
+
}, [g("p", null, E(N.value.a11y.translations.keyboardNavigation), 1)], 8, We),
|
|
1186
|
+
Vr.value?.rows?.length ? (S(), p(Te, {
|
|
1187
|
+
key: 0,
|
|
1188
|
+
uid: A.value,
|
|
1189
|
+
head: Vr.value.headers,
|
|
1190
|
+
body: Vr.value.rows,
|
|
1191
|
+
notice: N.value.a11y.translations.tableAvailable,
|
|
1192
|
+
caption: N.value.a11y.translations.tableCaption
|
|
1193
|
+
}, null, 8, [
|
|
1194
|
+
"uid",
|
|
1195
|
+
"head",
|
|
1196
|
+
"body",
|
|
1197
|
+
"notice",
|
|
1198
|
+
"caption"
|
|
1199
|
+
])) : m("", !0),
|
|
1200
|
+
N.value.userOptions.buttons.annotator ? (S(), p(D(rn), {
|
|
1201
|
+
key: 1,
|
|
1202
|
+
svgRef: D(F),
|
|
1203
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1204
|
+
color: N.value.style.chart.color,
|
|
1205
|
+
active: Er.value,
|
|
1206
|
+
isCursorPointer: P.value,
|
|
1207
|
+
onClose: Dr
|
|
1208
|
+
}, {
|
|
1209
|
+
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1210
|
+
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
1211
|
+
"annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
|
|
1212
|
+
"annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
|
|
1213
|
+
"annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
|
|
1214
|
+
"annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
|
|
1215
|
+
_: 3
|
|
1216
|
+
}, 8, [
|
|
1217
|
+
"svgRef",
|
|
1218
|
+
"backgroundColor",
|
|
1219
|
+
"color",
|
|
1220
|
+
"active",
|
|
1221
|
+
"isCursorPointer"
|
|
1222
|
+
])) : m("", !0),
|
|
1223
|
+
Kn.value ? (S(), h("div", {
|
|
1224
|
+
key: 2,
|
|
1225
|
+
ref_key: "noTitle",
|
|
1226
|
+
ref: yn,
|
|
1227
|
+
class: "vue-data-ui-no-title-space",
|
|
1228
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1229
|
+
}, null, 512)) : m("", !0),
|
|
1230
|
+
N.value.style.chart.title.text ? (S(), h("div", {
|
|
1231
|
+
key: 3,
|
|
1232
|
+
ref_key: "chartTitle",
|
|
1233
|
+
ref: gn,
|
|
1234
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1235
|
+
}, [(S(), p(ye, {
|
|
1236
|
+
key: `table_${bn.value}`,
|
|
1237
|
+
config: {
|
|
1238
|
+
title: {
|
|
1239
|
+
cy: "quadrant-title",
|
|
1240
|
+
...N.value.style.chart.title
|
|
1241
|
+
},
|
|
1242
|
+
subtitle: {
|
|
1243
|
+
cy: "quadrant-subtitle",
|
|
1244
|
+
...N.value.style.chart.title.subtitle
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
1248
|
+
g("div", { id: `legend-top-${A.value}` }, null, 8, Ge),
|
|
1249
|
+
N.value.userOptions.show && dn.value && (D(Rn) || D(In)) ? (S(), p(D(an), {
|
|
1250
|
+
ref_key: "userOptionsRef",
|
|
1251
|
+
ref: Tn,
|
|
1252
|
+
key: `user_options_${hn.value}`,
|
|
1253
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1254
|
+
color: N.value.style.chart.color,
|
|
1255
|
+
isImaging: D(Un),
|
|
1256
|
+
isPrinting: D(Hn),
|
|
1257
|
+
uid: A.value,
|
|
1258
|
+
hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
|
|
1259
|
+
hasPdf: N.value.userOptions.buttons.pdf,
|
|
1260
|
+
hasImg: N.value.userOptions.buttons.img,
|
|
1261
|
+
hasSvg: N.value.userOptions.buttons.svg,
|
|
1262
|
+
hasXls: N.value.userOptions.buttons.csv,
|
|
1263
|
+
hasTable: N.value.userOptions.buttons.table,
|
|
1264
|
+
hasLabel: N.value.userOptions.buttons.labels,
|
|
1265
|
+
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
1266
|
+
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
1267
|
+
isFullscreen: Q.value,
|
|
1268
|
+
isTooltip: R.value.showTooltip,
|
|
1269
|
+
titles: { ...N.value.userOptions.buttonTitles },
|
|
1270
|
+
chartElement: M.value,
|
|
1271
|
+
position: N.value.userOptions.position,
|
|
1272
|
+
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
1273
|
+
isAnnotation: Er.value,
|
|
1274
|
+
callbacks: N.value.userOptions.callbacks,
|
|
1275
|
+
printScale: N.value.userOptions.print.scale,
|
|
1276
|
+
tableDialog: N.value.table.useDialog,
|
|
1277
|
+
isCursorPointer: P.value,
|
|
1278
|
+
onToggleFullscreen: Sr,
|
|
1279
|
+
onGeneratePdf: D(Wn),
|
|
1280
|
+
onGenerateCsv: xr,
|
|
1281
|
+
onGenerateImage: Ir,
|
|
1282
|
+
onGenerateSvg: Fr,
|
|
1283
|
+
onToggleTable: Cr,
|
|
1284
|
+
onToggleLabels: wr,
|
|
1285
|
+
onToggleTooltip: Tr,
|
|
1286
|
+
onToggleAnnotator: Dr,
|
|
1287
|
+
onCopyAlt: Lr,
|
|
1288
|
+
style: x({ visibility: D(Rn) ? D(In) ? "visible" : "hidden" : "visible" })
|
|
1289
|
+
}, je({ _: 2 }, [
|
|
1290
|
+
e.$slots.menuIcon ? {
|
|
1291
|
+
name: "menuIcon",
|
|
1292
|
+
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
|
|
1293
|
+
isOpen: t,
|
|
1294
|
+
color: n
|
|
1295
|
+
})), void 0, !0)]),
|
|
1296
|
+
key: "0"
|
|
1297
|
+
} : void 0,
|
|
1298
|
+
e.$slots.optionTooltip ? {
|
|
1299
|
+
name: "optionTooltip",
|
|
1300
|
+
fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1301
|
+
key: "1"
|
|
1302
|
+
} : void 0,
|
|
1303
|
+
e.$slots.optionPdf ? {
|
|
1304
|
+
name: "optionPdf",
|
|
1305
|
+
fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1306
|
+
key: "2"
|
|
1307
|
+
} : void 0,
|
|
1308
|
+
e.$slots.optionCsv ? {
|
|
1309
|
+
name: "optionCsv",
|
|
1310
|
+
fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1311
|
+
key: "3"
|
|
1312
|
+
} : void 0,
|
|
1313
|
+
e.$slots.optionImg ? {
|
|
1314
|
+
name: "optionImg",
|
|
1315
|
+
fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1316
|
+
key: "4"
|
|
1317
|
+
} : void 0,
|
|
1318
|
+
e.$slots.optionSvg ? {
|
|
1319
|
+
name: "optionSvg",
|
|
1320
|
+
fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1321
|
+
key: "5"
|
|
1322
|
+
} : void 0,
|
|
1323
|
+
e.$slots.optionTable ? {
|
|
1324
|
+
name: "optionTable",
|
|
1325
|
+
fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1326
|
+
key: "6"
|
|
1327
|
+
} : void 0,
|
|
1328
|
+
e.$slots.optionLabels ? {
|
|
1329
|
+
name: "optionLabels",
|
|
1330
|
+
fn: O(() => [T(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1331
|
+
key: "7"
|
|
1332
|
+
} : void 0,
|
|
1333
|
+
e.$slots.optionFullscreen ? {
|
|
1334
|
+
name: "optionFullscreen",
|
|
1335
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
|
|
1336
|
+
toggleFullscreen: t,
|
|
1337
|
+
isFullscreen: n
|
|
1338
|
+
})), void 0, !0)]),
|
|
1339
|
+
key: "8"
|
|
1340
|
+
} : void 0,
|
|
1341
|
+
e.$slots.optionAnnotator ? {
|
|
1342
|
+
name: "optionAnnotator",
|
|
1343
|
+
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
|
|
1344
|
+
toggleAnnotator: t,
|
|
1345
|
+
isAnnotator: n
|
|
1346
|
+
})), void 0, !0)]),
|
|
1347
|
+
key: "9"
|
|
1348
|
+
} : void 0,
|
|
1349
|
+
e.$slots.optionAltCopy ? {
|
|
1350
|
+
name: "optionAltCopy",
|
|
1351
|
+
fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
|
|
1352
|
+
key: "10"
|
|
1353
|
+
} : void 0,
|
|
1354
|
+
e.$slots["custom-menu-before"] ? {
|
|
1355
|
+
name: "custom-menu-before",
|
|
1356
|
+
fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1357
|
+
key: "11"
|
|
1358
|
+
} : void 0,
|
|
1359
|
+
e.$slots["custom-menu-after"] ? {
|
|
1360
|
+
name: "custom-menu-after",
|
|
1361
|
+
fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1362
|
+
key: "12"
|
|
1363
|
+
} : void 0
|
|
1364
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : m("", !0),
|
|
1365
|
+
g("div", Ke, [(S(), h("svg", {
|
|
1366
|
+
ref_key: "svgRef",
|
|
1367
|
+
ref: F,
|
|
1368
|
+
xmlns: D(ce),
|
|
1369
|
+
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1370
|
+
class: y({
|
|
1371
|
+
"vue-data-ui-fullscreen--on": Q.value,
|
|
1372
|
+
"vue-data-ui-fulscreen--off": !Q.value
|
|
1373
|
+
}),
|
|
1374
|
+
viewBox: `${V.value.startX} ${V.value.startY} ${V.value.width} ${V.value.height}`,
|
|
1375
|
+
style: x(`max-width:100%;overflow:hidden;background:transparent;color:${N.value.style.chart.color}`),
|
|
1376
|
+
id: `svg_${A.value}`,
|
|
1377
|
+
tabindex: "0",
|
|
1378
|
+
onFocus: Rr,
|
|
1379
|
+
onBlur: zr,
|
|
1380
|
+
onKeydown: Br
|
|
1381
|
+
}, [
|
|
1382
|
+
Ne(D(on)),
|
|
1383
|
+
e.$slots["chart-background"] ? (S(), h("foreignObject", {
|
|
1384
|
+
key: 0,
|
|
1385
|
+
x: V.value.startX,
|
|
1386
|
+
y: V.value.startY,
|
|
1387
|
+
width: V.value.width,
|
|
1388
|
+
height: V.value.height,
|
|
1389
|
+
style: { pointerEvents: "none" }
|
|
1390
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : m("", !0),
|
|
1391
|
+
g("defs", null, [(S(!0), h(d, null, w(J.value, (e, t) => (S(), h("radialGradient", {
|
|
1392
|
+
cx: "50%",
|
|
1393
|
+
cy: "50%",
|
|
1394
|
+
r: "50%",
|
|
1395
|
+
fx: "50%",
|
|
1396
|
+
fy: "50%",
|
|
1397
|
+
id: `quadrant_gradient_${A.value}_${t}`
|
|
1398
|
+
}, [g("stop", {
|
|
1399
|
+
offset: "0%",
|
|
1400
|
+
"stop-color": D(a)(D(o)(e.color, .05), N.value.style.chart.layout.areas.opacity)
|
|
1401
|
+
}, null, 8, Xe), g("stop", {
|
|
1402
|
+
offset: "100%",
|
|
1403
|
+
"stop-color": D(a)(e.color, N.value.style.chart.layout.areas.opacity)
|
|
1404
|
+
}, null, 8, Ze)], 8, Ye))), 256))]),
|
|
1405
|
+
N.value.style.chart.layout.grid.graduations.show ? (S(), h("g", Qe, [(S(!0), h(d, null, w(Zn.value, (e) => (S(), h("rect", {
|
|
1406
|
+
fill: N.value.style.chart.layout.grid.graduations.fill ? D(a)(N.value.style.chart.layout.grid.graduations.color, e.opacity) : "none",
|
|
1407
|
+
x: e.x,
|
|
1408
|
+
y: e.y,
|
|
1409
|
+
height: e.height <= 0 ? .001 : e.height,
|
|
1410
|
+
width: e.width <= 0 ? .001 : e.width,
|
|
1411
|
+
"stroke-width": N.value.style.chart.layout.grid.graduations.strokeWidth,
|
|
1412
|
+
stroke: N.value.style.chart.layout.grid.graduations.stroke,
|
|
1413
|
+
rx: N.value.style.chart.layout.grid.graduations.roundingForce
|
|
1414
|
+
}, null, 8, $e))), 256))])) : m("", !0),
|
|
1415
|
+
g("line", {
|
|
1416
|
+
x1: B.value.left,
|
|
1417
|
+
y1: B.value.centerY,
|
|
1418
|
+
x2: B.value.right,
|
|
1419
|
+
y2: B.value.centerY,
|
|
1420
|
+
stroke: N.value.style.chart.layout.grid.stroke,
|
|
1421
|
+
"stroke-width": N.value.style.chart.layout.grid.strokeWidth
|
|
1422
|
+
}, null, 8, et),
|
|
1423
|
+
g("line", {
|
|
1424
|
+
x1: B.value.centerX,
|
|
1425
|
+
y1: B.value.top,
|
|
1426
|
+
x2: B.value.centerX,
|
|
1427
|
+
y2: B.value.bottom,
|
|
1428
|
+
stroke: N.value.style.chart.layout.grid.stroke,
|
|
1429
|
+
"stroke-width": N.value.style.chart.layout.grid.strokeWidth
|
|
1430
|
+
}, null, 8, tt),
|
|
1431
|
+
N.value.style.chart.layout.grid.showArrows ? (S(), h("g", nt, [
|
|
1432
|
+
g("polygon", {
|
|
1433
|
+
points: `${B.value.right - 8},${B.value.centerY - 6} ${B.value.right},${B.value.centerY} ${B.value.right - 8},${B.value.centerY + 6}`,
|
|
1434
|
+
fill: N.value.style.chart.layout.grid.stroke,
|
|
1435
|
+
stroke: "none"
|
|
1436
|
+
}, null, 8, rt),
|
|
1437
|
+
g("polygon", {
|
|
1438
|
+
points: `${B.value.left + 8},${B.value.centerY - 6} ${B.value.left},${B.value.centerY} ${B.value.left + 8},${B.value.centerY + 6}`,
|
|
1439
|
+
fill: N.value.style.chart.layout.grid.stroke,
|
|
1440
|
+
stroke: "none"
|
|
1441
|
+
}, null, 8, it),
|
|
1442
|
+
g("polygon", {
|
|
1443
|
+
points: `${B.value.centerX - 6},${B.value.top + 8} ${B.value.centerX},${B.value.top} ${B.value.centerX + 6},${B.value.top + 8}`,
|
|
1444
|
+
fill: N.value.style.chart.layout.grid.stroke,
|
|
1445
|
+
stroke: "none"
|
|
1446
|
+
}, null, 8, at),
|
|
1447
|
+
g("polygon", {
|
|
1448
|
+
points: `${B.value.centerX - 6},${B.value.bottom - 8} ${B.value.centerX},${B.value.bottom} ${B.value.centerX + 6},${B.value.bottom - 8}`,
|
|
1449
|
+
fill: N.value.style.chart.layout.grid.stroke,
|
|
1450
|
+
stroke: "none"
|
|
1451
|
+
}, null, 8, ot)
|
|
1452
|
+
])) : m("", !0),
|
|
1453
|
+
N.value.style.chart.layout.labels.quadrantLabels.show && !j.value ? (S(), h("g", st, [
|
|
1454
|
+
N.value.style.chart.layout.labels.quadrantLabels.tl.text ? (S(), h("text", {
|
|
1455
|
+
key: 0,
|
|
1456
|
+
x: 0,
|
|
1457
|
+
y: B.value.top - B.value.padding / 2,
|
|
1458
|
+
"text-anchor": "start",
|
|
1459
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
1460
|
+
"font-size": N.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
1461
|
+
style: x(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
|
|
1462
|
+
onClick: t[0] ||= (e) => yr("tl")
|
|
1463
|
+
}, E(N.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, ct)) : m("", !0),
|
|
1464
|
+
N.value.style.chart.layout.labels.quadrantLabels.tr.text ? (S(), h("text", {
|
|
1465
|
+
key: 1,
|
|
1466
|
+
x: B.value.width,
|
|
1467
|
+
y: B.value.top - B.value.padding / 2,
|
|
1468
|
+
"text-anchor": "end",
|
|
1469
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
1470
|
+
"font-size": N.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
1471
|
+
style: x(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
|
|
1472
|
+
onClick: t[1] ||= (e) => yr("tr")
|
|
1473
|
+
}, E(N.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, lt)) : m("", !0),
|
|
1474
|
+
N.value.style.chart.layout.labels.quadrantLabels.br.text ? (S(), h("text", {
|
|
1475
|
+
key: 2,
|
|
1476
|
+
x: B.value.width,
|
|
1477
|
+
y: B.value.bottom + B.value.padding * .7,
|
|
1478
|
+
"text-anchor": "end",
|
|
1479
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
1480
|
+
"font-size": N.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
1481
|
+
style: x(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
|
|
1482
|
+
onClick: t[2] ||= (e) => yr("br")
|
|
1483
|
+
}, E(N.value.style.chart.layout.labels.quadrantLabels.br.text), 13, ut)) : m("", !0),
|
|
1484
|
+
N.value.style.chart.layout.labels.quadrantLabels.bl.text ? (S(), h("text", {
|
|
1485
|
+
key: 3,
|
|
1486
|
+
x: 0,
|
|
1487
|
+
y: B.value.bottom + B.value.padding * .7,
|
|
1488
|
+
"text-anchor": "start",
|
|
1489
|
+
fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
1490
|
+
"font-size": N.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
1491
|
+
style: x(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
|
|
1492
|
+
onClick: t[3] ||= (e) => yr("bl")
|
|
1493
|
+
}, E(N.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, dt)) : m("", !0)
|
|
1494
|
+
])) : m("", !0),
|
|
1495
|
+
N.value.style.chart.layout.labels.axisLabels.show ? (S(), h("g", ft, [
|
|
1496
|
+
N.value.style.chart.layout.grid.yAxis.show ? (S(), h("text", {
|
|
1497
|
+
key: 0,
|
|
1498
|
+
x: B.value.centerX,
|
|
1499
|
+
y: B.value.top - B.value.padding / 6,
|
|
1500
|
+
"text-anchor": "middle",
|
|
1501
|
+
"font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1502
|
+
fill: N.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1503
|
+
}, E(D(l)(N.value.style.chart.layout.labels.plotLabels.y.formatter, K.value.y.max, D(u)({
|
|
1504
|
+
v: K.value.y.max,
|
|
1505
|
+
r: N.value.style.chart.layout.labels.plotLabels.rounding
|
|
1506
|
+
}))), 9, pt)) : m("", !0),
|
|
1507
|
+
g("text", {
|
|
1508
|
+
x: B.value.centerX,
|
|
1509
|
+
y: B.value.top - B.value.padding / 2,
|
|
1510
|
+
"text-anchor": "middle",
|
|
1511
|
+
"font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1512
|
+
fill: N.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1513
|
+
}, E(N.value.style.chart.layout.grid.yAxis.name), 9, mt),
|
|
1514
|
+
N.value.style.chart.layout.grid.yAxis.show ? (S(), h("text", {
|
|
1515
|
+
key: 1,
|
|
1516
|
+
x: B.value.centerX,
|
|
1517
|
+
y: B.value.bottom + B.value.padding * .35,
|
|
1518
|
+
"text-anchor": "middle",
|
|
1519
|
+
"font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1520
|
+
fill: N.value.style.chart.layout.labels.axisLabels.color.negative
|
|
1521
|
+
}, E(D(l)(N.value.style.chart.layout.labels.plotLabels.y.formatter, K.value.y.min, D(u)({
|
|
1522
|
+
v: K.value.y.min,
|
|
1523
|
+
r: N.value.style.chart.layout.labels.plotLabels.rounding
|
|
1524
|
+
}))), 9, ht)) : m("", !0),
|
|
1525
|
+
N.value.style.chart.layout.grid.xAxis.show ? (S(), h("text", {
|
|
1526
|
+
key: 2,
|
|
1527
|
+
id: `xLabelMin_${A.value}`,
|
|
1528
|
+
"text-anchor": "middle",
|
|
1529
|
+
"font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1530
|
+
transform: `translate(${B.value.padding - N.value.style.chart.layout.labels.axisLabels.fontSize}, ${B.value.height / 2}), rotate(-90)`,
|
|
1531
|
+
fill: N.value.style.chart.layout.labels.axisLabels.color.negative
|
|
1532
|
+
}, E(D(l)(N.value.style.chart.layout.labels.plotLabels.x.formatter, K.value.x.min, D(u)({
|
|
1533
|
+
v: K.value.x.min,
|
|
1534
|
+
r: N.value.style.chart.layout.labels.plotLabels.rounding
|
|
1535
|
+
}))), 9, gt)) : m("", !0),
|
|
1536
|
+
N.value.style.chart.layout.grid.xAxis.show ? (S(), h("text", {
|
|
1537
|
+
key: 3,
|
|
1538
|
+
id: `xLabelMax_${A.value}`,
|
|
1539
|
+
"text-anchor": "middle",
|
|
1540
|
+
"font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1541
|
+
transform: `translate(${B.value.width - B.value.padding + N.value.style.chart.layout.labels.axisLabels.fontSize}, ${B.value.height / 2}), rotate(90)`,
|
|
1542
|
+
fill: N.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1543
|
+
}, E(D(l)(N.value.style.chart.layout.labels.plotLabels.x.formatter, K.value.x.max, D(u)({
|
|
1544
|
+
v: K.value.x.max,
|
|
1545
|
+
r: N.value.style.chart.layout.labels.plotLabels.rounding
|
|
1546
|
+
}))), 9, _t)) : m("", !0),
|
|
1547
|
+
g("text", {
|
|
1548
|
+
id: `xLabelMaxName_${A.value}`,
|
|
1549
|
+
"text-anchor": "middle",
|
|
1550
|
+
"font-size": N.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1551
|
+
transform: `translate(${B.value.width - N.value.style.chart.layout.labels.axisLabels.fontSize}, ${B.value.height / 2}), rotate(90)`,
|
|
1552
|
+
fill: N.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1553
|
+
}, E(N.value.style.chart.layout.grid.xAxis.name), 9, vt)
|
|
1554
|
+
])) : m("", !0),
|
|
1555
|
+
N.value.style.chart.layout.areas.show ? (S(), h("g", yt, [(S(!0), h(d, null, w(J.value, (e, t) => (S(), h("g", null, [e.series.length > 2 ? (S(), h("polygon", {
|
|
1556
|
+
key: 0,
|
|
1557
|
+
"data-cy-quadrant-area": "",
|
|
1558
|
+
fill: N.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${A.value}_${t})` : D(a)(e.color, N.value.style.chart.layout.areas.opacity),
|
|
1559
|
+
points: D(oe)(e)
|
|
1560
|
+
}, null, 8, bt)) : m("", !0)]))), 256))])) : m("", !0),
|
|
1561
|
+
g("g", null, [
|
|
1562
|
+
g("rect", {
|
|
1563
|
+
onClick: t[4] ||= (e) => G("TL"),
|
|
1564
|
+
x: B.value.left,
|
|
1565
|
+
y: B.value.top,
|
|
1566
|
+
width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
|
|
1567
|
+
height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
|
|
1568
|
+
fill: "transparent",
|
|
1569
|
+
class: y({
|
|
1570
|
+
"vue-data-ui-zoom-plus": !j.value && W.value,
|
|
1571
|
+
"vue-data-ui-zoom-minus": j.value && W.value
|
|
1572
|
+
})
|
|
1573
|
+
}, null, 10, xt),
|
|
1574
|
+
g("rect", {
|
|
1575
|
+
onClick: t[5] ||= (e) => G("TR"),
|
|
1576
|
+
x: B.value.centerX,
|
|
1577
|
+
y: B.value.top,
|
|
1578
|
+
width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
|
|
1579
|
+
height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
|
|
1580
|
+
fill: "transparent",
|
|
1581
|
+
class: y({
|
|
1582
|
+
"vue-data-ui-zoom-plus": !j.value && W.value,
|
|
1583
|
+
"vue-data-ui-zoom-minus": j.value && W.value
|
|
1584
|
+
})
|
|
1585
|
+
}, null, 10, St),
|
|
1586
|
+
g("rect", {
|
|
1587
|
+
onClick: t[6] ||= (e) => G("BR"),
|
|
1588
|
+
x: B.value.centerX,
|
|
1589
|
+
y: B.value.centerY,
|
|
1590
|
+
width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
|
|
1591
|
+
height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
|
|
1592
|
+
fill: "transparent",
|
|
1593
|
+
class: y({
|
|
1594
|
+
"vue-data-ui-zoom-plus": !j.value && W.value,
|
|
1595
|
+
"vue-data-ui-zoom-minus": j.value && W.value
|
|
1596
|
+
})
|
|
1597
|
+
}, null, 10, Ct),
|
|
1598
|
+
g("rect", {
|
|
1599
|
+
onClick: t[7] ||= (e) => G("BL"),
|
|
1600
|
+
x: B.value.left,
|
|
1601
|
+
y: B.value.centerY,
|
|
1602
|
+
width: B.value.usableWidth / 2 <= 0 ? .001 : B.value.usableWidth / 2,
|
|
1603
|
+
height: B.value.usableHeight / 2 <= 0 ? .001 : B.value.usableHeight / 2,
|
|
1604
|
+
fill: "transparent",
|
|
1605
|
+
class: y({
|
|
1606
|
+
"vue-data-ui-zoom-plus": !j.value && W.value,
|
|
1607
|
+
"vue-data-ui-zoom-minus": j.value && W.value
|
|
1608
|
+
})
|
|
1609
|
+
}, null, 10, wt)
|
|
1610
|
+
]),
|
|
1611
|
+
N.value.style.chart.layout.labels.plotLabels.showAsTag ? (S(), h(d, { key: 7 }, [R.value.plotLabels.show ? (S(), h("g", jt, [(S(!0), h(d, null, w(J.value, (e, t) => (S(), h(d, null, [(S(!0), h(d, null, w(e.series, (n) => (S(), h("foreignObject", {
|
|
1612
|
+
style: { overflow: "visible" },
|
|
1613
|
+
height: "10",
|
|
1614
|
+
width: "100",
|
|
1615
|
+
x: n.x - 50,
|
|
1616
|
+
y: n.y - N.value.style.chart.layout.labels.plotLabels.fontSize,
|
|
1617
|
+
onMouseover: (r) => gr(e, n, t),
|
|
1618
|
+
onMouseleave: (e) => _r(n, t),
|
|
1619
|
+
onClick: (r) => vr(e, n, t)
|
|
1620
|
+
}, [g("div", { style: x(`color:${D(se)(e.color)};margin: 0 auto; font-size:${N.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${e.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`) }, E(n.name), 5)], 40, Mt))), 256))], 64))), 256))])) : m("", !0)], 64)) : (S(), h(d, { key: 6 }, [(S(!0), h(d, null, w(J.value, (t, n) => (S(), h("g", null, [e.$slots.datapoint && !D(Pn) ? (S(!0), h(d, { key: 0 }, w(t.series, (r) => (S(), h("g", { key: r.uid }, [(S(), h("foreignObject", {
|
|
1621
|
+
x: r.x - 1,
|
|
1622
|
+
y: r.y - 1,
|
|
1623
|
+
width: "2",
|
|
1624
|
+
height: "2",
|
|
1625
|
+
style: {
|
|
1626
|
+
overflow: "visible",
|
|
1627
|
+
"pointer-events": "none"
|
|
1628
|
+
},
|
|
1629
|
+
onMouseenter: (e) => gr(t, r, n),
|
|
1630
|
+
onMouseleave: (e) => _r(r, n),
|
|
1631
|
+
onClick: (e) => vr(t, r, n)
|
|
1632
|
+
}, [T(e.$slots, "datapoint", Pe({ ref_for: !0 }, { datapoint: {
|
|
1633
|
+
...r,
|
|
1634
|
+
onEnter: () => gr(t, r, n),
|
|
1635
|
+
onLeave: () => _r(r, n),
|
|
1636
|
+
onClick: () => vr(t, r, n),
|
|
1637
|
+
isSelected: X.value && r.uid === X.value
|
|
1638
|
+
} }), void 0, !0)], 40, Tt)), g("circle", {
|
|
1639
|
+
"data-a11y-plot-id": r.uid,
|
|
1640
|
+
cx: r.x,
|
|
1641
|
+
cy: r.y,
|
|
1642
|
+
r: Math.max(N.value.style.chart.layout.plots.radius / (j.value ? 1.5 : 1), 10),
|
|
1643
|
+
fill: "transparent",
|
|
1644
|
+
style: { "pointer-events": "none" }
|
|
1645
|
+
}, null, 8, Et)]))), 128)) : e.$slots.datapointSvg && !D(Pn) ? (S(!0), h(d, { key: 1 }, w(t.series, (r) => (S(), h("g", { key: r.uid }, [T(e.$slots, "datapointSvg", Pe({ ref_for: !0 }, { datapoint: {
|
|
1646
|
+
...r,
|
|
1647
|
+
onEnter: () => gr(t, r, n),
|
|
1648
|
+
onLeave: () => _r(r, n),
|
|
1649
|
+
onClick: () => vr(t, r, n),
|
|
1650
|
+
isSelected: X.value && r.uid === X.value
|
|
1651
|
+
} }), void 0, !0)]))), 128)) : (S(!0), h(d, { key: 2 }, w(t.series, (e, r) => (S(), h("g", { key: e.uid }, [Ne(be, {
|
|
1652
|
+
color: t.color,
|
|
1653
|
+
isSelected: X.value && e.uid === X.value,
|
|
1654
|
+
plot: e,
|
|
1655
|
+
radius: N.value.style.chart.layout.plots.radius / (j.value ? 1.5 : 1),
|
|
1656
|
+
shape: t.shape,
|
|
1657
|
+
stroke: N.value.style.chart.layout.plots.outline ? N.value.style.chart.layout.plots.outlineColor : "none",
|
|
1658
|
+
strokeWidth: N.value.style.chart.layout.plots.outlineWidth,
|
|
1659
|
+
onMouseenter: (r) => gr(t, e, n, "pointer"),
|
|
1660
|
+
onMouseleave: (t) => _r(e, n),
|
|
1661
|
+
onClick: (r) => vr(t, e, n)
|
|
1662
|
+
}, null, 8, [
|
|
1663
|
+
"color",
|
|
1664
|
+
"isSelected",
|
|
1665
|
+
"plot",
|
|
1666
|
+
"radius",
|
|
1667
|
+
"shape",
|
|
1668
|
+
"stroke",
|
|
1669
|
+
"strokeWidth",
|
|
1670
|
+
"onMouseenter",
|
|
1671
|
+
"onMouseleave",
|
|
1672
|
+
"onClick"
|
|
1673
|
+
]), g("circle", {
|
|
1674
|
+
"data-dom-to-png-ignore": "",
|
|
1675
|
+
"data-a11y-plot-id": e.uid,
|
|
1676
|
+
cx: e.x,
|
|
1677
|
+
cy: e.y,
|
|
1678
|
+
r: Math.max(N.value.style.chart.layout.plots.radius / (j.value ? 1.5 : 1), 10),
|
|
1679
|
+
fill: "transparent",
|
|
1680
|
+
style: { "pointer-events": "none" }
|
|
1681
|
+
}, null, 8, Dt)]))), 128))]))), 256)), R.value.plotLabels.show ? (S(), h("g", Ot, [(S(!0), h(d, null, w(J.value, (e) => (S(), h("g", null, [(S(!0), h(d, null, w(e.series, (e) => (S(), h("g", null, [String(e.name).includes("\n") ? (S(), h("text", {
|
|
1682
|
+
key: 1,
|
|
1683
|
+
x: e.x,
|
|
1684
|
+
y: e.y + N.value.style.chart.layout.labels.plotLabels.offsetY + N.value.style.chart.layout.plots.radius,
|
|
1685
|
+
"text-anchor": "middle",
|
|
1686
|
+
"font-size": N.value.style.chart.layout.labels.plotLabels.fontSize / (j.value ? 1.5 : 1),
|
|
1687
|
+
fill: N.value.style.chart.layout.labels.plotLabels.color,
|
|
1688
|
+
innerHTML: D(r)({
|
|
1689
|
+
content: String(e.name),
|
|
1690
|
+
fontSize: N.value.style.chart.layout.labels.plotLabels.fontSize / (j.value ? 1.5 : 1),
|
|
1691
|
+
fill: N.value.style.chart.layout.labels.plotLabels.color,
|
|
1692
|
+
x: e.x,
|
|
1693
|
+
y: e.y + N.value.style.chart.layout.labels.plotLabels.offsetY + N.value.style.chart.layout.plots.radius
|
|
1694
|
+
})
|
|
1695
|
+
}, null, 8, At)) : (S(), h("text", {
|
|
1696
|
+
key: 0,
|
|
1697
|
+
x: e.x,
|
|
1698
|
+
y: e.y + N.value.style.chart.layout.labels.plotLabels.offsetY + N.value.style.chart.layout.plots.radius,
|
|
1699
|
+
"text-anchor": "middle",
|
|
1700
|
+
"font-size": N.value.style.chart.layout.labels.plotLabels.fontSize / (j.value ? 1.5 : 1),
|
|
1701
|
+
fill: N.value.style.chart.layout.labels.plotLabels.color
|
|
1702
|
+
}, E(e.name), 9, kt))]))), 256))]))), 256))])) : m("", !0)], 64)),
|
|
1703
|
+
j.value ? (S(), h("g", Nt, [
|
|
1704
|
+
H.value === "TL" ? (S(), h("polygon", {
|
|
1705
|
+
key: 0,
|
|
1706
|
+
points: `${B.value.left - 1},${B.value.centerY} ${B.value.centerX},${B.value.centerY} ${B.value.centerX},${B.value.top - 1} ${B.value.right},${B.value.top - 1} ${B.value.right},${B.value.bottom} ${B.value.left - 1},${B.value.bottom} ${B.value.left - 1},${B.value.centerY}`,
|
|
1707
|
+
fill: N.value.style.chart.backgroundColor,
|
|
1708
|
+
style: { opacity: "1" }
|
|
1709
|
+
}, null, 8, Pt)) : m("", !0),
|
|
1710
|
+
H.value === "TR" ? (S(), h("polygon", {
|
|
1711
|
+
key: 1,
|
|
1712
|
+
points: `${B.value.left},${B.value.top - 1} ${B.value.centerX},${B.value.top - 1} ${B.value.centerX},${B.value.centerY} ${B.value.right + 1},${B.value.centerY} ${B.value.right + 1},${B.value.bottom} ${B.value.left},${B.value.bottom} ${B.value.left},${B.value.top - 1}`,
|
|
1713
|
+
fill: N.value.style.chart.backgroundColor,
|
|
1714
|
+
style: { opacity: "1" }
|
|
1715
|
+
}, null, 8, Ft)) : m("", !0),
|
|
1716
|
+
H.value === "BR" ? (S(), h("polygon", {
|
|
1717
|
+
key: 2,
|
|
1718
|
+
points: `${B.value.left},${B.value.top} ${B.value.right + 1},${B.value.top} ${B.value.right + 1},${B.value.centerY} ${B.value.centerX},${B.value.centerY} ${B.value.centerX},${B.value.bottom + 1} ${B.value.left},${B.value.bottom + 1} ${B.value.left},${B.value.top}`,
|
|
1719
|
+
fill: N.value.style.chart.backgroundColor,
|
|
1720
|
+
style: { opacity: "1" }
|
|
1721
|
+
}, null, 8, It)) : m("", !0),
|
|
1722
|
+
H.value === "BL" ? (S(), h("polygon", {
|
|
1723
|
+
key: 3,
|
|
1724
|
+
points: `${B.value.left - 1},${B.value.top} ${B.value.right},${B.value.top} ${B.value.right},${B.value.bottom + 1} ${B.value.centerX},${B.value.bottom + 1} ${B.value.centerX},${B.value.centerY} ${B.value.left - 1},${B.value.centerY} ${B.value.left - 1},${B.value.top}`,
|
|
1725
|
+
fill: N.value.style.chart.backgroundColor,
|
|
1726
|
+
style: { opacity: "1" }
|
|
1727
|
+
}, null, 8, Lt)) : m("", !0)
|
|
1728
|
+
])) : m("", !0),
|
|
1729
|
+
H.value && !Yn.value ? (S(), h("g", Rt, [g("text", {
|
|
1730
|
+
x: U.value.x,
|
|
1731
|
+
y: U.value.y - U.value.fontSize / 1.5,
|
|
1732
|
+
"font-size": U.value.fontSize / 1.5,
|
|
1733
|
+
fill: U.value.fill,
|
|
1734
|
+
"text-anchor": "middle",
|
|
1735
|
+
"font-weight": U.value.bold ? "bold" : "normal"
|
|
1736
|
+
}, E(U.value.text), 9, zt)])) : m("", !0),
|
|
1737
|
+
j.value && H.value ? (S(), h("g", Bt, [
|
|
1738
|
+
g("rect", {
|
|
1739
|
+
x: Z.value[H.value].tl.x,
|
|
1740
|
+
y: Z.value[H.value].tl.y,
|
|
1741
|
+
height: "20",
|
|
1742
|
+
width: "20",
|
|
1743
|
+
fill: Z.value[H.value].tl.fill,
|
|
1744
|
+
style: x(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "TL" ? 1 : .2}`),
|
|
1745
|
+
onClick: t[8] ||= (e) => G("TL"),
|
|
1746
|
+
class: y({
|
|
1747
|
+
"vue-ui-quadrant-mini-map-cell": !0,
|
|
1748
|
+
"vue-ui-quadrant-mini-map-cell-selectable": H.value !== "TL"
|
|
1749
|
+
})
|
|
1750
|
+
}, null, 14, Vt),
|
|
1751
|
+
g("rect", {
|
|
1752
|
+
x: Z.value[H.value].tr.x,
|
|
1753
|
+
y: Z.value[H.value].tr.y,
|
|
1754
|
+
height: "20",
|
|
1755
|
+
width: "20",
|
|
1756
|
+
fill: Z.value[H.value].tr.fill,
|
|
1757
|
+
style: x(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "TR" ? 1 : .2}`),
|
|
1758
|
+
onClick: t[9] ||= (e) => G("TR"),
|
|
1759
|
+
class: y({
|
|
1760
|
+
"vue-ui-quadrant-mini-map-cell": !0,
|
|
1761
|
+
"vue-ui-quadrant-mini-map-cell-selectable": H.value !== "TR"
|
|
1762
|
+
})
|
|
1763
|
+
}, null, 14, Ht),
|
|
1764
|
+
g("rect", {
|
|
1765
|
+
x: Z.value[H.value].br.x,
|
|
1766
|
+
y: Z.value[H.value].br.y,
|
|
1767
|
+
height: "20",
|
|
1768
|
+
width: "20",
|
|
1769
|
+
fill: Z.value[H.value].br.fill,
|
|
1770
|
+
style: x(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "BR" ? 1 : .2}`),
|
|
1771
|
+
onClick: t[10] ||= (e) => G("BR"),
|
|
1772
|
+
class: y({
|
|
1773
|
+
"vue-ui-quadrant-mini-map-cell": !0,
|
|
1774
|
+
"vue-ui-quadrant-mini-map-cell-selectable": H.value !== "BR"
|
|
1775
|
+
})
|
|
1776
|
+
}, null, 14, Ut),
|
|
1777
|
+
g("rect", {
|
|
1778
|
+
x: Z.value[H.value].bl.x,
|
|
1779
|
+
y: Z.value[H.value].bl.y,
|
|
1780
|
+
height: "20",
|
|
1781
|
+
width: "20",
|
|
1782
|
+
fill: Z.value[H.value].bl.fill,
|
|
1783
|
+
style: x(`cursor: ${P.value ? "pointer" : "default"}; opacity: ${H.value === "BL" ? 1 : .2}`),
|
|
1784
|
+
onClick: t[11] ||= (e) => G("BL"),
|
|
1785
|
+
class: y({
|
|
1786
|
+
"vue-ui-quadrant-mini-map-cell": !0,
|
|
1787
|
+
"vue-ui-quadrant-mini-map-cell-selectable": H.value !== "BL"
|
|
1788
|
+
})
|
|
1789
|
+
}, null, 14, Wt),
|
|
1790
|
+
g("path", {
|
|
1791
|
+
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1792
|
+
stroke: N.value.style.chart.backgroundColor,
|
|
1793
|
+
"stroke-width": 1,
|
|
1794
|
+
d: Z.value[H.value].crosshairs.horizontal
|
|
1795
|
+
}, null, 8, Gt),
|
|
1796
|
+
g("path", {
|
|
1797
|
+
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1798
|
+
stroke: N.value.style.chart.backgroundColor,
|
|
1799
|
+
"stroke-width": 1,
|
|
1800
|
+
d: Z.value[H.value].crosshairs.vertical
|
|
1801
|
+
}, null, 8, Kt)
|
|
1802
|
+
])) : m("", !0),
|
|
1803
|
+
T(e.$slots, "svg", { svg: {
|
|
1804
|
+
...B.value,
|
|
1805
|
+
isPrintingImg: D(Hn) || D(Un) || En.value,
|
|
1806
|
+
isPrintingSvg: Dn.value
|
|
1807
|
+
} }, void 0, !0)
|
|
1808
|
+
], 46, qe)), e.$slots.hint ? (S(), h("div", qt, [T(e.$slots, "hint", b(v({
|
|
1809
|
+
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1810
|
+
isVisible: Mn.value
|
|
1811
|
+
})), void 0, !0)])) : m("", !0)]),
|
|
1812
|
+
e.$slots.watermark ? (S(), h("div", Jt, [T(e.$slots, "watermark", b(v({ isPrinting: D(Hn) || D(Un) || En.value || Dn.value })), void 0, !0)])) : m("", !0),
|
|
1813
|
+
g("div", { id: `legend-bottom-${A.value}` }, null, 8, Yt),
|
|
1814
|
+
Cn.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(Ae, {
|
|
1815
|
+
key: 6,
|
|
1816
|
+
to: N.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
1817
|
+
}, [g("div", {
|
|
1818
|
+
ref_key: "chartLegend",
|
|
1819
|
+
ref: _n
|
|
1820
|
+
}, [T(e.$slots, "legend", { legend: Y.value }, () => [N.value.style.chart.legend.show ? (S(), p(Oe, {
|
|
1821
|
+
key: `legend_${Sn.value}`,
|
|
1822
|
+
legendSet: Y.value,
|
|
1823
|
+
config: ur.value,
|
|
1824
|
+
isCursorPointer: P.value,
|
|
1825
|
+
onClickMarker: t[12] ||= ({ legend: e }) => or(e.id)
|
|
1826
|
+
}, {
|
|
1827
|
+
item: O(({ legend: e }) => [D(Pn) ? m("", !0) : (S(), h("div", {
|
|
1828
|
+
key: 0,
|
|
1829
|
+
onClick: (t) => or(e.id),
|
|
1830
|
+
style: x(`opacity:${q.value.includes(e.id) ? .5 : 1}`)
|
|
1831
|
+
}, E(e.name), 13, Xt))]),
|
|
1832
|
+
legendToggle: O(() => [Y.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !D(Pn) ? (S(), p(we, {
|
|
1833
|
+
key: 0,
|
|
1834
|
+
backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1835
|
+
color: N.value.style.chart.legend.selectAllToggle.color,
|
|
1836
|
+
fontSize: N.value.style.chart.legend.fontSize,
|
|
1837
|
+
checked: q.value.length > 0,
|
|
1838
|
+
isCursorPointer: P.value,
|
|
1839
|
+
onToggle: ar
|
|
1840
|
+
}, null, 8, [
|
|
1841
|
+
"backgroundColor",
|
|
1842
|
+
"color",
|
|
1843
|
+
"fontSize",
|
|
1844
|
+
"checked",
|
|
1845
|
+
"isCursorPointer"
|
|
1846
|
+
])) : m("", !0)]),
|
|
1847
|
+
_: 1
|
|
1848
|
+
}, 8, [
|
|
1849
|
+
"legendSet",
|
|
1850
|
+
"config",
|
|
1851
|
+
"isCursorPointer"
|
|
1852
|
+
])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
|
|
1853
|
+
e.$slots.source ? (S(), h("div", {
|
|
1854
|
+
key: 7,
|
|
1855
|
+
ref_key: "source",
|
|
1856
|
+
ref: vn,
|
|
1857
|
+
dir: "auto"
|
|
1858
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1859
|
+
Ne(D($t), {
|
|
1860
|
+
teleportTo: N.value.style.chart.tooltip.teleportTo,
|
|
1861
|
+
show: R.value.showTooltip && pn.value,
|
|
1862
|
+
backgroundColor: N.value.style.chart.tooltip.backgroundColor,
|
|
1863
|
+
color: N.value.style.chart.tooltip.color,
|
|
1864
|
+
borderRadius: N.value.style.chart.tooltip.borderRadius,
|
|
1865
|
+
borderColor: N.value.style.chart.tooltip.borderColor,
|
|
1866
|
+
borderWidth: N.value.style.chart.tooltip.borderWidth,
|
|
1867
|
+
fontSize: N.value.style.chart.tooltip.fontSize,
|
|
1868
|
+
backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
|
|
1869
|
+
position: N.value.style.chart.tooltip.position,
|
|
1870
|
+
offsetX: N.value.style.chart.tooltip.offsetX,
|
|
1871
|
+
offsetY: N.value.style.chart.tooltip.offsetY,
|
|
1872
|
+
parent: M.value,
|
|
1873
|
+
content: mn.value,
|
|
1874
|
+
isFullscreen: Q.value,
|
|
1875
|
+
isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
|
|
1876
|
+
smooth: N.value.style.chart.tooltip.smooth,
|
|
1877
|
+
backdropFilter: N.value.style.chart.tooltip.backdropFilter,
|
|
1878
|
+
smoothForce: N.value.style.chart.tooltip.smoothForce,
|
|
1879
|
+
smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1880
|
+
isA11yMode: jn.value === "keyboard",
|
|
1881
|
+
a11yPosition: An.value
|
|
1882
|
+
}, {
|
|
1883
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...pr.value })), void 0, !0)]),
|
|
1884
|
+
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...pr.value })), void 0, !0)]),
|
|
1885
|
+
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...pr.value })), void 0, !0)]),
|
|
1886
|
+
default: O(() => [N.value.style.chart.tooltip.showShape ? (S(), h("svg", Zt, [Ne(be, {
|
|
1887
|
+
plot: {
|
|
1888
|
+
x: 10,
|
|
1889
|
+
y: 10
|
|
1890
|
+
},
|
|
1891
|
+
shape: fr.value.shape,
|
|
1892
|
+
color: fr.value.color,
|
|
1893
|
+
radius: 8,
|
|
1894
|
+
stroke: N.value.style.chart.layout.plots.outline ? N.value.style.chart.layout.plots.outlineColor : "none",
|
|
1895
|
+
"stroke-width": N.value.style.chart.layout.plots.outlineWidth
|
|
1896
|
+
}, null, 8, [
|
|
1897
|
+
"shape",
|
|
1898
|
+
"color",
|
|
1899
|
+
"stroke",
|
|
1900
|
+
"stroke-width"
|
|
1901
|
+
])])) : m("", !0)]),
|
|
1902
|
+
_: 3
|
|
1903
|
+
}, 8, [
|
|
1904
|
+
"teleportTo",
|
|
1905
|
+
"show",
|
|
1906
|
+
"backgroundColor",
|
|
1907
|
+
"color",
|
|
1908
|
+
"borderRadius",
|
|
1909
|
+
"borderColor",
|
|
1910
|
+
"borderWidth",
|
|
1911
|
+
"fontSize",
|
|
1912
|
+
"backgroundOpacity",
|
|
1913
|
+
"position",
|
|
1914
|
+
"offsetX",
|
|
1915
|
+
"offsetY",
|
|
1916
|
+
"parent",
|
|
1917
|
+
"content",
|
|
1918
|
+
"isFullscreen",
|
|
1919
|
+
"isCustom",
|
|
1920
|
+
"smooth",
|
|
1921
|
+
"backdropFilter",
|
|
1922
|
+
"smoothForce",
|
|
1923
|
+
"smoothSnapThreshold",
|
|
1924
|
+
"isA11yMode",
|
|
1925
|
+
"a11yPosition"
|
|
1926
|
+
]),
|
|
1927
|
+
dn.value && N.value.userOptions.buttons.table ? (S(), p(Re(kr.value.component), Pe({ key: 8 }, kr.value.props, {
|
|
1928
|
+
ref_key: "tableUnit",
|
|
1929
|
+
ref: wn,
|
|
1930
|
+
onClose: Ar
|
|
1931
|
+
}), je({
|
|
1932
|
+
content: O(() => [(S(), p(D(nn), {
|
|
1933
|
+
key: `table_${xn.value}`,
|
|
1934
|
+
colNames: ir.value.colNames,
|
|
1935
|
+
head: ir.value.head,
|
|
1936
|
+
body: ir.value.body,
|
|
1937
|
+
config: ir.value.config,
|
|
1938
|
+
title: N.value.table.useDialog ? "" : kr.value.title,
|
|
1939
|
+
withCloseButton: !N.value.table.useDialog,
|
|
1940
|
+
isCursorPointer: P.value,
|
|
1941
|
+
onClose: Ar
|
|
1942
|
+
}, {
|
|
1943
|
+
th: O(({ th: e }) => [Me(E(e), 1)]),
|
|
1944
|
+
td: O(({ td: e }) => [g("div", { innerHTML: e.name || e }, null, 8, Qt)]),
|
|
1945
|
+
_: 1
|
|
1946
|
+
}, 8, [
|
|
1947
|
+
"colNames",
|
|
1948
|
+
"head",
|
|
1949
|
+
"body",
|
|
1950
|
+
"config",
|
|
1951
|
+
"title",
|
|
1952
|
+
"withCloseButton",
|
|
1953
|
+
"isCursorPointer"
|
|
1954
|
+
]))]),
|
|
1955
|
+
_: 2
|
|
1956
|
+
}, [N.value.table.useDialog ? {
|
|
1957
|
+
name: "title",
|
|
1958
|
+
fn: O(() => [Me(E(kr.value.title), 1)]),
|
|
1959
|
+
key: "0"
|
|
1960
|
+
} : void 0, N.value.table.useDialog ? {
|
|
1961
|
+
name: "actions",
|
|
1962
|
+
fn: O(() => [g("button", {
|
|
1963
|
+
tabindex: "0",
|
|
1964
|
+
class: "vue-ui-user-options-button",
|
|
1965
|
+
onClick: t[13] ||= (e) => xr(N.value.userOptions.callbacks.csv),
|
|
1966
|
+
style: x({ cursor: P.value ? "pointer" : "default" })
|
|
1967
|
+
}, [Ne(D(en), {
|
|
1968
|
+
name: "fileCsv",
|
|
1969
|
+
stroke: kr.value.props.color
|
|
1970
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1971
|
+
key: "1"
|
|
1972
|
+
} : void 0]), 1040)) : m("", !0),
|
|
1973
|
+
T(e.$slots, "skeleton", {}, () => [D(Pn) ? (S(), p(me, { key: 0 })) : m("", !0)], !0)
|
|
1974
|
+
], 46, Ue));
|
|
1975
|
+
}
|
|
1976
|
+
}, [["__scopeId", "data-v-0dde82f9"]]);
|
|
1977
|
+
//#endregion
|
|
1978
|
+
export { He as n, $t as t };
|