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