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