vue-data-ui 3.0.23 → 3.1.0

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.
Files changed (108) hide show
  1. package/dist/{Arrow-B1Op9F3x.js → Arrow-DvG07exK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-O7900pGp.js} +72 -59
  3. package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DHtro8us.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-CpWzNn4r.js} +2 -2
  6. package/dist/DataTable-DJjA2_wf.js +140 -0
  7. package/dist/{Legend-CyYXMSsW.js → Legend-2-dC7DVb.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
  9. package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-DU12WH3O.js} +1 -1
  10. package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B7QEDgx4.js} +3 -3
  11. package/dist/{Shape-CYVs2kYz.js → Shape-Dj2Hl33H.js} +1 -1
  12. package/dist/{Slicer-BTIFUO4x.js → Slicer-D99HytqX.js} +2 -2
  13. package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-B-wL07rI.js} +1 -1
  14. package/dist/{Title-D_e0SFWS.js → Title-Dq2_Z9kR.js} +1 -1
  15. package/dist/{Tooltip-DjVoFYj1.js → Tooltip-Y219DXZO.js} +1 -1
  16. package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-BuGfCdAY.js} +2 -2
  17. package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BhciAKaM.js} +1 -1
  18. package/dist/{img-z5p1gGfY.js → img-JOqdlnUs.js} +1 -1
  19. package/dist/{index-BEuUtONc.js → index-CDQbCd41.js} +37 -2
  20. package/dist/{pdf-BmUjVBni.js → pdf-Dd-LIJqz.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
  25. package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-BPEHGiYX.js} +1 -1
  26. package/dist/{usePrinter-DiB0_UNt.js → usePrinter-Bnl1YeUU.js} +2 -2
  27. package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-DcNYz3cZ.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
  30. package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
  32. package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
  33. package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
  34. package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
  35. package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
  36. package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
  37. package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
  38. package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
  39. package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-DIXb2S93.js} +2 -2
  40. package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
  41. package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-CLAIo9gW.js} +2 -2
  42. package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-C8h_tCSO.js} +477 -431
  43. package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
  44. package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
  45. package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
  46. package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
  47. package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
  48. package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
  49. package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
  50. package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
  51. package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
  52. package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CKg2i71M.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
  54. package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
  55. package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
  56. package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
  57. package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-ZgsErXis.js} +363 -317
  58. package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
  59. package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
  60. package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
  61. package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
  62. package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
  64. package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
  65. package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
  66. package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
  67. package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
  68. package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
  70. package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
  71. package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
  72. package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
  73. package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
  74. package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
  75. package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
  76. package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
  77. package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dn6H98rP.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
  81. package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-CXng51v5.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
  83. package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
  84. package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
  85. package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
  86. package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
  87. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
  88. package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-DYz6zw3x.js} +512 -466
  89. package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-B1nqNbzw.js} +1551 -1500
  90. package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
  91. package/package.json +1 -1
  92. package/dist/DataTable-nO6ydJO2.js +0 -133
  93. package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
  94. package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
  95. package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
  96. package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
  97. package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
  98. package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
  99. package/dist/vue-ui-heatmap-BHq6hBaL.js +0 -1078
  100. package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
  101. package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
  102. package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
  103. package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
  104. package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
  105. package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
  106. package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
  107. package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
  108. package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
@@ -1,1432 +0,0 @@
1
- import { defineAsyncComponent as D, computed as g, ref as y, toRefs as mt, watch as Je, shallowRef as je, onMounted as xt, onBeforeUnmount as $t, createElementBlock as n, openBlock as s, unref as i, normalizeStyle as q, normalizeClass as T, createBlock as X, createCommentVNode as h, createElementVNode as c, createVNode as he, createSlots as kt, withCtx as m, renderSlot as x, normalizeProps as U, guardReactiveProps as G, Fragment as S, renderList as W, toDisplayString as L, Teleport as Lt, createTextVNode as wt, nextTick as _t } from "vue";
2
- import { u as qt, c as Ze, t as Ct, a as St, p as ye, b as zt, o as Tt, f as Q, d as At, e as Xt, Y as Wt, k as F, i as B, X as Yt, s as ue, x as Mt, Z as Nt, I as Ot, F as Rt, v as Ft, w as Bt, y as Vt, z as Pt } from "./index-BEuUtONc.js";
3
- import { t as Ht, u as It } from "./useResponsive-DfdjqQps.js";
4
- import { u as Et } from "./usePrinter-DiB0_UNt.js";
5
- import { u as Ke } from "./useNestedProp-DhLFhguL.js";
6
- import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
8
- import Gt from "./img-z5p1gGfY.js";
9
- import Qt from "./Title-D_e0SFWS.js";
10
- import { _ as et } from "./Shape-CYVs2kYz.js";
11
- import Jt from "./Legend-CyYXMSsW.js";
12
- import { u as jt, B as Zt } from "./useLoading-D7YHNtLX.js";
13
- import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox", "id"], al = ["x", "y", "width", "height"], ul = ["id"], ol = ["stop-color"], sl = ["stop-color"], rl = { key: 1 }, nl = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], il = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], vl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], dl = { key: 2 }, cl = ["points", "fill"], hl = ["points", "fill"], yl = ["points", "fill"], bl = ["points", "fill"], fl = { key: 3 }, pl = ["y", "fill", "font-size"], gl = ["x", "y", "fill", "font-size"], ml = ["x", "y", "fill", "font-size"], xl = ["y", "fill", "font-size"], $l = { key: 4 }, kl = ["x", "y", "font-size", "fill"], Ll = ["x", "y", "font-size", "fill"], wl = ["x", "y", "font-size", "fill"], _l = ["id", "font-size", "transform", "fill"], ql = ["id", "font-size", "transform", "fill"], Cl = ["id", "font-size", "transform", "fill"], Sl = { key: 5 }, zl = ["fill", "points"], Tl = ["x", "y", "width", "height"], Al = ["x", "y", "width", "height"], Xl = ["x", "y", "width", "height"], Wl = ["x", "y", "width", "height"], Yl = {
15
- key: 0,
16
- style: { "pointer-events": "none" }
17
- }, Ml = ["x", "y", "font-size", "fill"], Nl = ["x", "y", "font-size", "fill", "innerHTML"], Ol = { key: 0 }, Rl = ["x", "y", "onMouseover", "onMouseleave", "onClick"], Fl = {
18
- key: 8,
19
- class: "vue-ui-dna"
20
- }, Bl = ["points", "fill"], Vl = ["points", "fill"], Pl = ["points", "fill"], Hl = ["points", "fill"], Il = { key: 9 }, El = ["x", "y", "font-size", "fill", "font-weight"], Dl = { key: 10 }, Ul = ["x", "y", "fill"], Gl = ["x", "y", "fill"], Ql = ["x", "y", "fill"], Jl = ["x", "y", "fill"], jl = ["stroke", "d"], Zl = ["stroke", "d"], Kl = {
21
- key: 4,
22
- class: "vue-data-ui-watermark"
23
- }, ea = ["id"], ta = ["onClick"], la = {
24
- key: 0,
25
- height: "14",
26
- width: "14",
27
- viewBox: "0 0 20 20"
28
- }, aa = ["innerHTML"], ua = {
29
- __name: "vue-ui-quadrant",
30
- props: {
31
- config: {
32
- type: Object,
33
- default() {
34
- return {};
35
- }
36
- },
37
- dataset: {
38
- type: Array,
39
- default() {
40
- return [];
41
- }
42
- }
43
- },
44
- emits: ["selectPlot", "selectSide", "selectLegend"],
45
- setup(tt, { expose: lt, emit: at }) {
46
- const ut = D(() => import("./Tooltip-DjVoFYj1.js")), ot = D(() => import("./vue-ui-accordion-B4YfUjZ5.js")), st = D(() => import("./DataTable-nO6ydJO2.js")), rt = D(() => import("./PenAndPaper-zym5uEeN.js")), nt = D(() => import("./UserOptions-z0NWZ7aQ.js")), it = D(() => import("./PackageVersion-B6M-3jRt.js")), { vue_ui_quadrant: vt } = qt(), Y = tt, be = g(() => !!Y.dataset && Y.dataset.length), w = y(Ze()), oe = at, dt = y(null), se = y(!1), re = y(""), fe = y(0), p = y(!1), M = y(null), pe = y(null), ge = y(null), me = y(null), xe = y(null), $e = y(0), ke = y(0), Le = y(0), we = y(!1), t = y(ie()), { loading: _e, FINAL_DATASET: qe } = jt({
47
- ...mt(Y),
48
- FINAL_CONFIG: t,
49
- prepareConfig: ie,
50
- skeletonDataset: [
51
- {
52
- name: "_",
53
- shape: "circle",
54
- color: "#CACACA",
55
- series: [
56
- { name: "_", x: -6, y: -4 },
57
- { name: "_", x: -5, y: -2 },
58
- { name: "_", x: -4, y: -1 },
59
- { name: "_", x: -3, y: -0.5 },
60
- { name: "_", x: -2, y: -0.25 },
61
- { name: "_", x: -1, y: -0.135 },
62
- { name: "_", x: 0, y: 0 },
63
- { name: "_", x: 1, y: 0.135 },
64
- { name: "_", x: 2, y: 0.25 },
65
- { name: "_", x: 3, y: 0.5 },
66
- { name: "_", x: 4, y: 1 },
67
- { name: "_", x: 5, y: 2 },
68
- { name: "_", x: 6, y: 4 }
69
- ]
70
- }
71
- ],
72
- skeletonConfig: Ct({
73
- defaultConfig: t.value,
74
- userConfig: {
75
- userOptions: { show: !1 },
76
- table: { show: !1 },
77
- style: {
78
- chart: {
79
- backgroundColor: "#99999930",
80
- layout: {
81
- grid: {
82
- stroke: "#6A6A6A",
83
- graduations: {
84
- stroke: "#6A6A6A",
85
- color: "#6A6A6A90"
86
- },
87
- xAxis: {
88
- auto: !0
89
- },
90
- yAxis: {
91
- auto: !0
92
- }
93
- },
94
- labels: {
95
- quadrantLabels: { show: !1 },
96
- plotLabels: { show: !1 },
97
- axisLabels: { show: !1 }
98
- },
99
- plots: {
100
- outlineColor: "#6A6A6A"
101
- }
102
- },
103
- legend: {
104
- backgroundColor: "transparent"
105
- }
106
- }
107
- }
108
- }
109
- })
110
- }), { userOptionsVisible: ne, setUserOptionsVisibility: Ce, keepUserOptionState: Se } = Dt({ config: t.value }), { svgRef: ze } = Ut({ config: t.value.style.chart.title });
111
- function ie() {
112
- const l = Ke({
113
- userConfig: Y.config,
114
- defaultConfig: vt
115
- });
116
- return l.theme ? {
117
- ...Ke({
118
- userConfig: zt.vue_ui_quadrant[l.theme] || Y.config,
119
- defaultConfig: l
120
- }),
121
- customPalette: St[l.theme] || ye
122
- } : l;
123
- }
124
- Je(() => Y.config, (l) => {
125
- t.value = ie(), ne.value = !t.value.userOptions.showOnChartHover, Te(), $e.value += 1, ke.value += 1, Le.value += 1, $.value.plotLabels.show = t.value.style.chart.layout.labels.plotLabels.show, $.value.showTable = t.value.table.show, $.value.showTooltip = t.value.style.chart.tooltip.show;
126
- }, { deep: !0 });
127
- const N = je(null), P = je(null), H = g(() => t.value.debug);
128
- function Te() {
129
- if (Tt(Y.dataset) ? Q({
130
- componentName: "VueUiQuadrant",
131
- type: "dataset",
132
- debug: H.value
133
- }) : Y.dataset.forEach((l, u) => {
134
- [null, void 0].includes(l.name) && Q({
135
- componentName: "VueUiQuadrant",
136
- type: "datasetSerieAttribute",
137
- property: "name",
138
- index: u,
139
- debug: H.value
140
- }), [null, void 0].includes(l.series) ? Q({
141
- componentName: "VueUiQuadrant",
142
- type: "datasetSerieAttribute",
143
- property: "series",
144
- index: u,
145
- debug: H.value
146
- }) : l.series.forEach((a, o) => {
147
- [null, void 0].includes(a.name) && Q({
148
- componentName: "VueUiQuadrant",
149
- type: "datasetSerieAttribute",
150
- property: "name",
151
- key: "series",
152
- index: o,
153
- debug: H.value
154
- });
155
- });
156
- }), t.value.responsive) {
157
- const l = Ht(() => {
158
- const { width: u, height: a } = It({
159
- chart: M.value,
160
- title: t.value.style.chart.title.text ? pe.value : null,
161
- legend: t.value.style.chart.legend.show ? ge.value : null,
162
- source: me.value,
163
- noTitle: xe.value
164
- });
165
- k.value = 48, requestAnimationFrame(() => {
166
- e.value.height = a, e.value.usableHeight = a - k.value * 2, e.value.width = u, e.value.usableWidth = u - k.value * 2, e.value.top = k.value, e.value.left = k.value, e.value.right = u - k.value, e.value.bottom = a - k.value, e.value.centerX = u / 2, e.value.centerY = a - a / 2, e.value.padding = k.value;
167
- });
168
- });
169
- N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect()), N.value = new ResizeObserver(l), P.value = M.value.parentNode, N.value.observe(P.value);
170
- }
171
- }
172
- xt(() => {
173
- we.value = !0, Te();
174
- }), $t(() => {
175
- N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect());
176
- });
177
- const { isPrinting: Ae, isImaging: Xe, generatePdf: We, generateImage: Ye } = Et({
178
- elementId: `vue-ui-quadrant_${w.value}`,
179
- fileName: t.value.style.chart.title.text || "vue-ui-quadrant",
180
- options: t.value.userOptions.print
181
- }), ct = g(() => t.value.userOptions.show && !t.value.style.chart.title.text), Me = g(() => At(t.value.customPalette)), $ = y({
182
- plotLabels: {
183
- show: t.value.style.chart.layout.labels.plotLabels.show
184
- },
185
- showTable: t.value.table.show,
186
- showTooltip: t.value.style.chart.tooltip.show
187
- }), k = y(48), e = y({
188
- height: t.value.style.chart.height,
189
- usableHeight: t.value.style.chart.height - k.value * 2,
190
- width: t.value.style.chart.width,
191
- usableWidth: t.value.style.chart.width - k.value * 2,
192
- top: k.value,
193
- left: k.value,
194
- right: t.value.style.chart.width - k.value,
195
- bottom: t.value.style.chart.height - k.value,
196
- centerX: t.value.style.chart.width / 2,
197
- centerY: t.value.style.chart.height - t.value.style.chart.height / 2,
198
- padding: k.value
199
- }), v = y({
200
- ...JSON.parse(JSON.stringify(e.value)),
201
- startX: 0,
202
- startY: 0
203
- });
204
- Je(() => e.value, (l) => {
205
- l && (v.value = {
206
- ...JSON.parse(JSON.stringify(e.value)),
207
- startX: 0,
208
- startY: 0
209
- });
210
- }, { deep: !0 });
211
- const d = y(null), V = g(() => {
212
- switch (d.value) {
213
- case "TL":
214
- return {
215
- x: v.value.startX + v.value.width / 2,
216
- y: v.value.height,
217
- text: t.value.style.chart.layout.labels.quadrantLabels.tl.text || "Top Left",
218
- fontSize: t.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
219
- fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color,
220
- bold: t.value.style.chart.layout.labels.quadrantLabels.tl.bold
221
- };
222
- case "TR":
223
- return {
224
- x: v.value.startX + v.value.width / 2,
225
- y: v.value.height,
226
- text: t.value.style.chart.layout.labels.quadrantLabels.tr.text || "Top Right",
227
- fontSize: t.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
228
- fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color,
229
- bold: t.value.style.chart.layout.labels.quadrantLabels.tr.bold
230
- };
231
- case "BR":
232
- return {
233
- x: v.value.startX + v.value.width / 2,
234
- y: v.value.height * 1.678,
235
- text: t.value.style.chart.layout.labels.quadrantLabels.br.text || "Bottom Right",
236
- fontSize: t.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
237
- fill: t.value.style.chart.layout.labels.quadrantLabels.br.color,
238
- bold: t.value.style.chart.layout.labels.quadrantLabels.br.bold
239
- };
240
- case "BL":
241
- return {
242
- x: v.value.startX + v.value.width / 2,
243
- y: v.value.height * 1.678,
244
- text: t.value.style.chart.layout.labels.quadrantLabels.bl.text || "Bottom Left",
245
- fontSize: t.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
246
- fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color,
247
- bold: t.value.style.chart.layout.labels.quadrantLabels.bl.bold
248
- };
249
- default:
250
- return { x: 0, y: 0, text: "", fontSize: 0, fill: "none", bold: !1 };
251
- }
252
- }), ht = y(null), Z = y(!1);
253
- function J({ targetX: l, targetY: u, targetW: a, targetH: o, side: r }) {
254
- d.value && j(r);
255
- const b = {
256
- x: l - v.value.startX,
257
- y: u - v.value.startY,
258
- w: a - v.value.width,
259
- h: o - v.value.height
260
- }, f = t.value.zoomAnimationFrames;
261
- let A = 0;
262
- function Qe() {
263
- Z.value = !0, v.value.startX += b.x / f, v.value.startY += b.y / f, v.value.width += b.w / f, v.value.height += b.h / f, A += 1, A < f ? ht.value = requestAnimationFrame(Qe) : Z.value = !1;
264
- }
265
- Qe();
266
- }
267
- function O(l) {
268
- if (!Z.value)
269
- if (p.value && d.value === l)
270
- J({
271
- targetX: 0,
272
- targetY: 0,
273
- targetW: e.value.width,
274
- targetH: e.value.height
275
- }), d.value = null, p.value = !1;
276
- else {
277
- switch (d.value = l, l) {
278
- case "TL":
279
- J({
280
- targetX: 0,
281
- targetY: 0,
282
- targetW: e.value.width / 2 + e.value.left,
283
- targetH: e.value.height / 2 + e.value.top,
284
- side: "tl"
285
- });
286
- break;
287
- case "TR":
288
- J({
289
- targetX: e.value.width / 2 - e.value.left,
290
- targetY: 0,
291
- targetW: e.value.width / 2 + e.value.left,
292
- targetH: e.value.height / 2 + e.value.top,
293
- side: "tr"
294
- });
295
- break;
296
- case "BR":
297
- J({
298
- targetX: e.value.width / 2 - e.value.left,
299
- targetY: e.value.height / 2 - e.value.top,
300
- targetW: e.value.width / 2 + e.value.left,
301
- targetH: e.value.height / 2 + e.value.top,
302
- side: "br"
303
- });
304
- break;
305
- case "BL":
306
- J({
307
- targetX: 0,
308
- targetY: e.value.height / 2 - e.value.top,
309
- targetW: e.value.width / 2 + e.value.left,
310
- targetH: e.value.height / 2 + e.value.top,
311
- side: "bl"
312
- });
313
- break;
314
- default:
315
- v.value.startX = 0, v.value.startY = 0, v.value.width = e.value.width, v.value.height = e.value.height;
316
- break;
317
- }
318
- p.value = !0;
319
- }
320
- }
321
- const yt = g(() => {
322
- const l = t.value.style.chart.layout.grid.graduations.steps, u = e.value.usableWidth / (l * 2), a = e.value.top, o = [];
323
- for (let r = 0; r < l; r += 1)
324
- o.push({
325
- x: e.value.padding + u * r,
326
- y: a + e.value.usableHeight * (r / l / 2),
327
- height: e.value.usableHeight * (1 - r / l),
328
- width: e.value.usableWidth * (1 - r / l),
329
- opacity: Math.round((r + 1) / l * 20)
330
- });
331
- return o;
332
- }), C = g(() => {
333
- let l = t.value.style.chart.layout.grid.xAxis.max, u = t.value.style.chart.layout.grid.xAxis.min, a = t.value.style.chart.layout.grid.yAxis.max, o = t.value.style.chart.layout.grid.yAxis.min;
334
- return t.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...I.value.flatMap((r) => r.series.map((b) => b.x))), u = Math.min(...I.value.flatMap((r) => r.series.map((b) => b.x)))), t.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...I.value.flatMap((r) => r.series.map((b) => b.y))), o = Math.min(...I.value.flatMap((r) => r.series.map((b) => b.y)))), {
335
- x: {
336
- max: l,
337
- min: u
338
- },
339
- y: {
340
- max: a,
341
- min: o
342
- }
343
- };
344
- }), R = y([]), I = g(() => qe.value.map((l, u) => ({
345
- ...l,
346
- series: Wt({
347
- data: l.series,
348
- threshold: t.value.downsample.threshold
349
- }),
350
- id: `cat_${u}_${w.value}`,
351
- color: Xt(l.color) || Me.value[u] || ye[u]
352
- }))), bt = g(() => I.value.filter((l) => !R.value.includes(l.id))), ft = g(() => I.value.map((l, u) => ({
353
- ...l,
354
- shape: l.shape || "circle",
355
- series: l.series.map((a) => ({
356
- ...a,
357
- x: Ne(a.x),
358
- y: Oe(a.y),
359
- xValue: a.x,
360
- yValue: a.y,
361
- quadrantSide: Fe({ x: a.x, y: a.y }),
362
- categoryName: l.name,
363
- shape: l.shape,
364
- color: l.color
365
- }))
366
- }))), z = g(() => (qe.value.forEach((l, u) => {
367
- l.series.forEach((a, o) => {
368
- [null, void 0].includes(a.x) && Q({
369
- componentName: "VueUiQuadrant",
370
- type: "datasetSerieAttribute",
371
- property: "x",
372
- key: "series",
373
- index: o,
374
- debug: H.value
375
- }), [null, void 0].includes(a.y) && Q({
376
- componentName: "VueUiQuadrant",
377
- type: "datasetSerieAttribute",
378
- property: "y",
379
- key: "series",
380
- index: o,
381
- debug: H.value
382
- });
383
- });
384
- }), bt.value.map((l, u) => ({
385
- ...l,
386
- shape: l.shape || "circle",
387
- color: l.color || Me.value[u] || ye[u],
388
- series: l.series.map((a) => ({
389
- ...a,
390
- x: Ne(a.x),
391
- y: Oe(a.y),
392
- xValue: a.x,
393
- yValue: a.y,
394
- quadrantSide: Fe({ x: a.x, y: a.y }),
395
- categoryName: l.name,
396
- shape: l.shape,
397
- color: l.color,
398
- uid: Ze()
399
- }))
400
- }))));
401
- function Ne(l) {
402
- if (l >= 0) {
403
- const u = l / C.value.x.max;
404
- return e.value.centerX + e.value.usableWidth / 2 * u;
405
- } else {
406
- const u = Math.abs(l) / Math.abs(C.value.x.min);
407
- return e.value.centerX - e.value.usableWidth / 2 * u;
408
- }
409
- }
410
- function Oe(l) {
411
- if (l >= 0) {
412
- const u = l / C.value.y.max;
413
- return e.value.centerY + (1 - e.value.usableHeight / 2 * u);
414
- } else {
415
- const u = Math.abs(l) / Math.abs(C.value.y.min);
416
- return e.value.centerY - (1 - e.value.usableHeight / 2 * u);
417
- }
418
- }
419
- const K = g(() => {
420
- const l = z.value.flatMap((f) => f.series.map((A) => ({
421
- x: A.xValue,
422
- y: A.yValue,
423
- name: A.name,
424
- category: A.categoryName,
425
- quadrantSide: A.quadrantSide,
426
- sideName: t.value.style.chart.layout.labels.quadrantLabels[A.quadrantSide].text,
427
- color: f.color,
428
- shape: f.shape
429
- }))), u = t.value.style.chart.layout.grid.xAxis.name || "x", a = t.value.style.chart.layout.grid.yAxis.name || "y", o = [t.value.translations.category, t.value.translations.item, u, a, t.value.translations.side], r = l.map((f) => [f.category, f.name, f.x, f.y, f.sideName || f.quadrantSide]), b = l.map((f) => ({
430
- shape: f.shape,
431
- color: f.color
432
- }));
433
- return { head: o, body: r, itsShapes: b, tableData: l };
434
- }), ee = g(() => {
435
- const l = K.value.head, u = K.value.tableData.map((o) => [
436
- {
437
- shape: o.shape,
438
- color: o.color,
439
- name: o.category
440
- },
441
- o.name,
442
- F(
443
- t.value.style.chart.layout.labels.plotLabels.x.formatter,
444
- o.x,
445
- B({
446
- v: o.x,
447
- r: t.value.style.chart.layout.labels.plotLabels.rounding
448
- })
449
- ),
450
- F(
451
- t.value.style.chart.layout.labels.plotLabels.y.formatter,
452
- o.y,
453
- B({
454
- v: o.y,
455
- r: t.value.style.chart.layout.labels.plotLabels.rounding
456
- })
457
- ),
458
- o.sideName || o.quadrantSide
459
- ]), a = {
460
- th: {
461
- backgroundColor: t.value.table.th.backgroundColor,
462
- color: t.value.table.th.color,
463
- outline: t.value.table.th.outline
464
- },
465
- td: {
466
- backgroundColor: t.value.table.td.backgroundColor,
467
- color: t.value.table.td.color,
468
- outline: t.value.table.td.outline
469
- },
470
- breakpoint: t.value.table.responsiveBreakpoint
471
- };
472
- return { head: l, body: u, config: a, colNames: l };
473
- });
474
- function ve(l) {
475
- R.value.includes(l) ? R.value = R.value.filter((a) => a !== l) : R.value.push(l);
476
- const u = He();
477
- oe("selectLegend", u);
478
- }
479
- const Re = g(() => ft.value.map((l) => ({
480
- name: l.name,
481
- shape: l.shape,
482
- color: l.color,
483
- id: l.id,
484
- opacity: R.value.includes(l.id) ? 0.5 : 1,
485
- segregate: () => ve(l.id),
486
- isSegregated: R.value.includes(l.id)
487
- }))), pt = g(() => ({
488
- cy: "quadrant-div-legend",
489
- backgroundColor: t.value.style.chart.legend.backgroundColor,
490
- color: t.value.style.chart.legend.color,
491
- fontSize: t.value.style.chart.legend.fontSize,
492
- paddingBottom: 12,
493
- fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
494
- }));
495
- function Fe(l) {
496
- switch (!0) {
497
- case (l.x >= 0 && l.y >= 0):
498
- return "tr";
499
- case (l.x >= 0 && l.y < 0):
500
- return "br";
501
- case (l.x < 0 && l.y < 0):
502
- return "bl";
503
- case (l.x < 0 && l.y >= 0):
504
- return "tl";
505
- default:
506
- return "";
507
- }
508
- }
509
- const te = y(null), le = y(null), de = y(null);
510
- function Be(l, u, a) {
511
- t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: u, seriesIndex: a }), te.value = u.uid, le.value = {
512
- color: l.color,
513
- shape: l.shape
514
- }, de.value = {
515
- datapoint: u,
516
- seriesIndex: a,
517
- series: z.value,
518
- config: t.value
519
- }, se.value = !0;
520
- const o = t.value.style.chart.tooltip.customFormat;
521
- if (Vt(o) && Pt(() => o({
522
- seriesIndex: a,
523
- datapoint: u,
524
- series: z.value,
525
- config: t.value
526
- })))
527
- re.value = o({
528
- seriesIndex: a,
529
- datapoint: u,
530
- series: z.value,
531
- config: t.value
532
- });
533
- else {
534
- let r = "";
535
- u.quadrantSide && (r += `<div style="color:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].color};font-weight:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].bold ? "bold" : "400"}">${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text}</div>`), r += `<div>${l.name}</div>`, r += `<div style="padding-bottom:6px;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px">${u.name}</div>`, r += `<div>${t.value.style.chart.layout.grid.xAxis.name ? t.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${F(
536
- t.value.style.chart.layout.labels.plotLabels.x.formatter,
537
- u.xValue,
538
- B({
539
- v: u.xValue,
540
- r: t.value.style.chart.tooltip.roundingValue
541
- }),
542
- { datapoint: u, category: l, categoryIndex: a }
543
- )}</b></div>`, r += `<div>${t.value.style.chart.layout.grid.yAxis.name ? t.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${F(
544
- t.value.style.chart.layout.labels.plotLabels.y.formatter,
545
- u.yValue,
546
- B({
547
- v: u.yValue,
548
- r: t.value.style.chart.tooltip.roundingValue
549
- }),
550
- { datapoint: u, category: l, categoryIndex: a }
551
- )}</b></div>`, re.value = `<div style="text-align:left;font-size:${t.value.style.chart.tooltip.fontSize}px">${r}</div>`;
552
- }
553
- }
554
- function Ve(l, u) {
555
- se.value = !1, te.value = null, le.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: l, seriesIndex: u });
556
- }
557
- function Pe(l, u, a) {
558
- t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: u, seriesIndex: a });
559
- const o = {
560
- category: l.name,
561
- shape: l.shape,
562
- itemName: u.name,
563
- x: u.xValue,
564
- y: u.yValue,
565
- quadrantSide: u.quadrantSide,
566
- sideName: t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text
567
- };
568
- oe("selectPlot", o);
569
- }
570
- function j(l) {
571
- if (!l) return;
572
- const u = z.value.flatMap((o) => o.series.filter((r) => r.quadrantSide === l).map((r) => ({
573
- category: r.categoryName,
574
- itemName: r.name,
575
- x: r.xValue,
576
- y: r.yValue
577
- }))), a = {
578
- quadrantSide: l,
579
- sideName: t.value.style.chart.layout.labels.quadrantLabels[l].text,
580
- items: [...u]
581
- };
582
- oe("selectSide", a);
583
- }
584
- const _ = g(() => ({
585
- TL: {
586
- tl: {
587
- x: e.value.left + e.value.usableWidth / 4 - 20,
588
- y: 0,
589
- fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
590
- },
591
- tr: {
592
- x: e.value.left + e.value.usableWidth / 4,
593
- y: 0,
594
- fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
595
- },
596
- br: {
597
- x: e.value.left + e.value.usableWidth / 4,
598
- y: 20,
599
- fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
600
- },
601
- bl: {
602
- x: e.value.left + e.value.usableWidth / 4 - 20,
603
- y: 20,
604
- fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
605
- },
606
- crosshairs: {
607
- horizontal: `M ${e.value.left + e.value.usableWidth / 4 - 20},20 ${e.value.left + e.value.usableWidth / 4 + 20},20`,
608
- vertical: `M ${e.value.left + e.value.usableWidth / 4},0 ${e.value.left + e.value.usableWidth / 4},40`
609
- }
610
- },
611
- TR: {
612
- tl: {
613
- x: e.value.centerX + e.value.usableWidth / 4 - 20,
614
- y: 0,
615
- fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
616
- },
617
- tr: {
618
- x: e.value.centerX + e.value.usableWidth / 4,
619
- y: 0,
620
- fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
621
- },
622
- br: {
623
- x: e.value.centerX + e.value.usableWidth / 4,
624
- y: 20,
625
- fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
626
- },
627
- bl: {
628
- x: e.value.centerX + e.value.usableWidth / 4 - 20,
629
- y: 20,
630
- fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
631
- },
632
- crosshairs: {
633
- horizontal: `M ${e.value.centerX + e.value.usableWidth / 4 - 20},20 ${e.value.centerX + e.value.usableWidth / 4 + 20},20`,
634
- vertical: `M ${e.value.centerX + e.value.usableWidth / 4},0 ${e.value.centerX + e.value.usableWidth / 4},40`
635
- }
636
- },
637
- BR: {
638
- tl: {
639
- x: e.value.centerX + e.value.usableWidth / 4 - 20,
640
- y: e.value.centerY - 48,
641
- fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
642
- },
643
- tr: {
644
- x: e.value.centerX + e.value.usableWidth / 4,
645
- y: e.value.centerY - 48,
646
- fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
647
- },
648
- br: {
649
- x: e.value.centerX + e.value.usableWidth / 4,
650
- y: e.value.centerY - 28,
651
- fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
652
- },
653
- bl: {
654
- x: e.value.centerX + e.value.usableWidth / 4 - 20,
655
- y: e.value.centerY - 28,
656
- fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
657
- },
658
- crosshairs: {
659
- horizontal: `M ${e.value.centerX + e.value.usableWidth / 4 - 20},${e.value.centerY - 28} ${e.value.centerX + e.value.usableWidth / 4 + 20},${e.value.centerY - 28}`,
660
- vertical: `M ${e.value.centerX + e.value.usableWidth / 4},${e.value.centerY - 48} ${e.value.centerX + e.value.usableWidth / 4},${e.value.centerY - 8}`
661
- }
662
- },
663
- BL: {
664
- tl: {
665
- x: e.value.left + e.value.usableWidth / 4 - 20,
666
- y: e.value.centerY - 48,
667
- fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color
668
- },
669
- tr: {
670
- x: e.value.left + e.value.usableWidth / 4,
671
- y: e.value.centerY - 48,
672
- fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color
673
- },
674
- br: {
675
- x: e.value.left + e.value.usableWidth / 4,
676
- y: e.value.centerY - 28,
677
- fill: t.value.style.chart.layout.labels.quadrantLabels.br.color
678
- },
679
- bl: {
680
- x: e.value.left + e.value.usableWidth / 4 - 20,
681
- y: e.value.centerY - 28,
682
- fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color
683
- },
684
- crosshairs: {
685
- horizontal: `M ${e.value.left + e.value.usableWidth / 4 - 20},${e.value.centerY - 28} ${e.value.left + e.value.usableWidth / 4 + 20},${e.value.centerY - 28}`,
686
- vertical: `M ${e.value.left + e.value.usableWidth / 4},${e.value.centerY - 48} ${e.value.left + e.value.usableWidth / 4},${e.value.centerY - 8}`
687
- }
688
- }
689
- }));
690
- function He() {
691
- return z.value.map((l) => ({
692
- color: l.color,
693
- name: l.name,
694
- shape: l.shape,
695
- series: l.series.map((u) => ({
696
- name: u.name,
697
- x: u.xValue,
698
- y: u.yValue,
699
- quadrantSide: u.quadrantSide,
700
- sideName: t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text
701
- }))
702
- }));
703
- }
704
- function Ie(l = null) {
705
- _t(() => {
706
- const u = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], a = K.value.head, o = K.value.body, r = u.concat([a]).concat(o), b = Ft(r);
707
- l ? l(b) : Bt({ csvContent: b, title: t.value.style.chart.title.text || "vue-ui-quadrant" });
708
- });
709
- }
710
- const E = y(!1);
711
- function Ee(l) {
712
- E.value = l, fe.value += 1;
713
- }
714
- function De() {
715
- $.value.showTable = !$.value.showTable;
716
- }
717
- function Ue() {
718
- $.value.plotLabels.show = !$.value.plotLabels.show;
719
- }
720
- function Ge() {
721
- $.value.showTooltip = !$.value.showTooltip;
722
- }
723
- const ae = y(!1);
724
- function ce() {
725
- ae.value = !ae.value;
726
- }
727
- async function gt({ scale: l = 2 } = {}) {
728
- if (!M.value) return;
729
- const { width: u, height: a } = M.value.getBoundingClientRect(), o = u / a, { imageUri: r, base64: b } = await Gt({ domElement: M.value, base64: !0, img: !0, scale: l });
730
- return {
731
- imageUri: r,
732
- base64: b,
733
- title: t.value.style.chart.title.text,
734
- width: u,
735
- height: a,
736
- aspectRatio: o
737
- };
738
- }
739
- return lt({
740
- getData: He,
741
- getImage: gt,
742
- generatePdf: We,
743
- generateCsv: Ie,
744
- generateImage: Ye,
745
- toggleTable: De,
746
- toggleLabels: Ue,
747
- toggleTooltip: Ge,
748
- toggleAnnotator: ce,
749
- toggleFullscreen: Ee
750
- }), (l, u) => (s(), n("div", {
751
- class: T(`vue-ui-quadrant ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
752
- ref_key: "quadrantChart",
753
- ref: M,
754
- id: `vue-ui-quadrant_${w.value}`,
755
- style: q(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive ? "height: 100%" : ""}`),
756
- onMouseenter: u[14] || (u[14] = () => i(Ce)(!0)),
757
- onMouseleave: u[15] || (u[15] = () => i(Ce)(!1))
758
- }, [
759
- t.value.userOptions.buttons.annotator ? (s(), X(i(rt), {
760
- key: 0,
761
- svgRef: i(ze),
762
- backgroundColor: t.value.style.chart.backgroundColor,
763
- color: t.value.style.chart.color,
764
- active: ae.value,
765
- onClose: ce
766
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
767
- ct.value ? (s(), n("div", {
768
- key: 1,
769
- ref_key: "noTitle",
770
- ref: xe,
771
- class: "vue-data-ui-no-title-space",
772
- style: "height:36px; width: 100%;background:transparent"
773
- }, null, 512)) : h("", !0),
774
- t.value.style.chart.title.text ? (s(), n("div", {
775
- key: 2,
776
- ref_key: "chartTitle",
777
- ref: pe,
778
- style: "width:100%;background:transparent;padding-bottom:12px"
779
- }, [
780
- (s(), X(Qt, {
781
- key: `table_${$e.value}`,
782
- config: {
783
- title: {
784
- cy: "quadrant-title",
785
- ...t.value.style.chart.title
786
- },
787
- subtitle: {
788
- cy: "quadrant-subtitle",
789
- ...t.value.style.chart.title.subtitle
790
- }
791
- }
792
- }, null, 8, ["config"]))
793
- ], 512)) : h("", !0),
794
- c("div", {
795
- id: `legend-top-${w.value}`
796
- }, null, 8, tl),
797
- t.value.userOptions.show && be.value && (i(Se) || i(ne)) ? (s(), X(i(nt), {
798
- ref_key: "details",
799
- ref: dt,
800
- key: `user_options_${fe.value}`,
801
- backgroundColor: t.value.style.chart.backgroundColor,
802
- color: t.value.style.chart.color,
803
- isImaging: i(Xe),
804
- isPrinting: i(Ae),
805
- uid: w.value,
806
- hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
807
- hasPdf: t.value.userOptions.buttons.pdf,
808
- hasImg: t.value.userOptions.buttons.img,
809
- hasXls: t.value.userOptions.buttons.csv,
810
- hasTable: t.value.userOptions.buttons.table,
811
- hasLabel: t.value.userOptions.buttons.labels,
812
- hasFullscreen: t.value.userOptions.buttons.fullscreen,
813
- isFullscreen: E.value,
814
- isTooltip: $.value.showTooltip,
815
- titles: { ...t.value.userOptions.buttonTitles },
816
- chartElement: M.value,
817
- position: t.value.userOptions.position,
818
- hasAnnotator: t.value.userOptions.buttons.annotator,
819
- isAnnotation: ae.value,
820
- callbacks: t.value.userOptions.callbacks,
821
- printScale: t.value.userOptions.print.scale,
822
- onToggleFullscreen: Ee,
823
- onGeneratePdf: i(We),
824
- onGenerateCsv: Ie,
825
- onGenerateImage: i(Ye),
826
- onToggleTable: De,
827
- onToggleLabels: Ue,
828
- onToggleTooltip: Ge,
829
- onToggleAnnotator: ce,
830
- style: q({
831
- visibility: i(Se) ? i(ne) ? "visible" : "hidden" : "visible"
832
- })
833
- }, kt({ _: 2 }, [
834
- l.$slots.menuIcon ? {
835
- name: "menuIcon",
836
- fn: m(({ isOpen: a, color: o }) => [
837
- x(l.$slots, "menuIcon", U(G({ isOpen: a, color: o })), void 0, !0)
838
- ]),
839
- key: "0"
840
- } : void 0,
841
- l.$slots.optionTooltip ? {
842
- name: "optionTooltip",
843
- fn: m(() => [
844
- x(l.$slots, "optionTooltip", {}, void 0, !0)
845
- ]),
846
- key: "1"
847
- } : void 0,
848
- l.$slots.optionPdf ? {
849
- name: "optionPdf",
850
- fn: m(() => [
851
- x(l.$slots, "optionPdf", {}, void 0, !0)
852
- ]),
853
- key: "2"
854
- } : void 0,
855
- l.$slots.optionCsv ? {
856
- name: "optionCsv",
857
- fn: m(() => [
858
- x(l.$slots, "optionCsv", {}, void 0, !0)
859
- ]),
860
- key: "3"
861
- } : void 0,
862
- l.$slots.optionImg ? {
863
- name: "optionImg",
864
- fn: m(() => [
865
- x(l.$slots, "optionImg", {}, void 0, !0)
866
- ]),
867
- key: "4"
868
- } : void 0,
869
- l.$slots.optionTable ? {
870
- name: "optionTable",
871
- fn: m(() => [
872
- x(l.$slots, "optionTable", {}, void 0, !0)
873
- ]),
874
- key: "5"
875
- } : void 0,
876
- l.$slots.optionLabels ? {
877
- name: "optionLabels",
878
- fn: m(() => [
879
- x(l.$slots, "optionLabels", {}, void 0, !0)
880
- ]),
881
- key: "6"
882
- } : void 0,
883
- l.$slots.optionFullscreen ? {
884
- name: "optionFullscreen",
885
- fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
886
- x(l.$slots, "optionFullscreen", U(G({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
887
- ]),
888
- key: "7"
889
- } : void 0,
890
- l.$slots.optionAnnotator ? {
891
- name: "optionAnnotator",
892
- fn: m(({ toggleAnnotator: a, isAnnotator: o }) => [
893
- x(l.$slots, "optionAnnotator", U(G({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
894
- ]),
895
- key: "8"
896
- } : void 0
897
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
898
- (s(), n("svg", {
899
- ref_key: "svgRef",
900
- ref: ze,
901
- xmlns: i(Yt),
902
- class: T({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
903
- viewBox: `${v.value.startX} ${v.value.startY} ${v.value.width} ${v.value.height}`,
904
- style: q(`max-width:100%;overflow:hidden;background:transparent;color:${t.value.style.chart.color}`),
905
- id: `svg_${w.value}`
906
- }, [
907
- he(i(it)),
908
- l.$slots["chart-background"] ? (s(), n("foreignObject", {
909
- key: 0,
910
- x: v.value.startX,
911
- y: v.value.startY,
912
- width: v.value.width,
913
- height: v.value.height,
914
- style: {
915
- pointerEvents: "none"
916
- }
917
- }, [
918
- x(l.$slots, "chart-background", {}, void 0, !0)
919
- ], 8, al)) : h("", !0),
920
- c("defs", null, [
921
- (s(!0), n(S, null, W(z.value, (a, o) => (s(), n("radialGradient", {
922
- cx: "50%",
923
- cy: "50%",
924
- r: "50%",
925
- fx: "50%",
926
- fy: "50%",
927
- id: `quadrant_gradient_${w.value}_${o}`
928
- }, [
929
- c("stop", {
930
- offset: "0%",
931
- "stop-color": i(ue)(i(Mt)(a.color, 0.05), t.value.style.chart.layout.areas.opacity)
932
- }, null, 8, ol),
933
- c("stop", {
934
- offset: "100%",
935
- "stop-color": i(ue)(a.color, t.value.style.chart.layout.areas.opacity)
936
- }, null, 8, sl)
937
- ], 8, ul))), 256))
938
- ]),
939
- t.value.style.chart.layout.grid.graduations.show ? (s(), n("g", rl, [
940
- (s(!0), n(S, null, W(yt.value, (a) => (s(), n("rect", {
941
- fill: t.value.style.chart.layout.grid.graduations.fill ? i(ue)(t.value.style.chart.layout.grid.graduations.color, a.opacity) : "none",
942
- x: a.x,
943
- y: a.y,
944
- height: a.height <= 0 ? 1e-3 : a.height,
945
- width: a.width <= 0 ? 1e-3 : a.width,
946
- "stroke-width": t.value.style.chart.layout.grid.graduations.strokeWidth,
947
- stroke: t.value.style.chart.layout.grid.graduations.stroke,
948
- rx: t.value.style.chart.layout.grid.graduations.roundingForce
949
- }, null, 8, nl))), 256))
950
- ])) : h("", !0),
951
- c("line", {
952
- x1: e.value.left,
953
- y1: e.value.centerY,
954
- x2: e.value.right,
955
- y2: e.value.centerY,
956
- stroke: t.value.style.chart.layout.grid.stroke,
957
- "stroke-width": t.value.style.chart.layout.grid.strokeWidth
958
- }, null, 8, il),
959
- c("line", {
960
- x1: e.value.centerX,
961
- y1: e.value.top,
962
- x2: e.value.centerX,
963
- y2: e.value.bottom,
964
- stroke: t.value.style.chart.layout.grid.stroke,
965
- "stroke-width": t.value.style.chart.layout.grid.strokeWidth
966
- }, null, 8, vl),
967
- t.value.style.chart.layout.grid.showArrows ? (s(), n("g", dl, [
968
- c("polygon", {
969
- points: `${e.value.right - 8},${e.value.centerY - 6} ${e.value.right},${e.value.centerY} ${e.value.right - 8},${e.value.centerY + 6}`,
970
- fill: t.value.style.chart.layout.grid.stroke,
971
- stroke: "none"
972
- }, null, 8, cl),
973
- c("polygon", {
974
- points: `${e.value.left + 8},${e.value.centerY - 6} ${e.value.left},${e.value.centerY} ${e.value.left + 8},${e.value.centerY + 6}`,
975
- fill: t.value.style.chart.layout.grid.stroke,
976
- stroke: "none"
977
- }, null, 8, hl),
978
- c("polygon", {
979
- points: `${e.value.centerX - 6},${e.value.top + 8} ${e.value.centerX},${e.value.top} ${e.value.centerX + 6},${e.value.top + 8}`,
980
- fill: t.value.style.chart.layout.grid.stroke,
981
- stroke: "none"
982
- }, null, 8, yl),
983
- c("polygon", {
984
- points: `${e.value.centerX - 6},${e.value.bottom - 8} ${e.value.centerX},${e.value.bottom} ${e.value.centerX + 6},${e.value.bottom - 8}`,
985
- fill: t.value.style.chart.layout.grid.stroke,
986
- stroke: "none"
987
- }, null, 8, bl)
988
- ])) : h("", !0),
989
- t.value.style.chart.layout.labels.quadrantLabels.show && !p.value ? (s(), n("g", fl, [
990
- t.value.style.chart.layout.labels.quadrantLabels.tl.text ? (s(), n("text", {
991
- key: 0,
992
- x: 0,
993
- y: e.value.top - e.value.padding / 2,
994
- "text-anchor": "start",
995
- fill: t.value.style.chart.layout.labels.quadrantLabels.tl.color,
996
- "font-size": t.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
997
- style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
998
- onClick: u[0] || (u[0] = (a) => j("tl"))
999
- }, L(t.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, pl)) : h("", !0),
1000
- t.value.style.chart.layout.labels.quadrantLabels.tr.text ? (s(), n("text", {
1001
- key: 1,
1002
- x: e.value.width,
1003
- y: e.value.top - e.value.padding / 2,
1004
- "text-anchor": "end",
1005
- fill: t.value.style.chart.layout.labels.quadrantLabels.tr.color,
1006
- "font-size": t.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
1007
- style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
1008
- onClick: u[1] || (u[1] = (a) => j("tr"))
1009
- }, L(t.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, gl)) : h("", !0),
1010
- t.value.style.chart.layout.labels.quadrantLabels.br.text ? (s(), n("text", {
1011
- key: 2,
1012
- x: e.value.width,
1013
- y: e.value.bottom + e.value.padding * 0.7,
1014
- "text-anchor": "end",
1015
- fill: t.value.style.chart.layout.labels.quadrantLabels.br.color,
1016
- "font-size": t.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
1017
- style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
1018
- onClick: u[2] || (u[2] = (a) => j("br"))
1019
- }, L(t.value.style.chart.layout.labels.quadrantLabels.br.text), 13, ml)) : h("", !0),
1020
- t.value.style.chart.layout.labels.quadrantLabels.bl.text ? (s(), n("text", {
1021
- key: 3,
1022
- x: 0,
1023
- y: e.value.bottom + e.value.padding * 0.7,
1024
- "text-anchor": "start",
1025
- fill: t.value.style.chart.layout.labels.quadrantLabels.bl.color,
1026
- "font-size": t.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
1027
- style: q(`font-weight:${t.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
1028
- onClick: u[3] || (u[3] = (a) => j("bl"))
1029
- }, L(t.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, xl)) : h("", !0)
1030
- ])) : h("", !0),
1031
- t.value.style.chart.layout.labels.axisLabels.show ? (s(), n("g", $l, [
1032
- c("text", {
1033
- x: e.value.centerX,
1034
- y: e.value.top - e.value.padding / 6,
1035
- "text-anchor": "middle",
1036
- "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
1037
- fill: t.value.style.chart.layout.labels.axisLabels.color.positive
1038
- }, L(i(F)(
1039
- t.value.style.chart.layout.labels.plotLabels.y.formatter,
1040
- C.value.y.max,
1041
- i(B)({
1042
- v: C.value.y.max,
1043
- r: t.value.style.chart.layout.labels.plotLabels.rounding
1044
- })
1045
- )), 9, kl),
1046
- c("text", {
1047
- x: e.value.centerX,
1048
- y: e.value.top - e.value.padding / 2,
1049
- "text-anchor": "middle",
1050
- "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
1051
- fill: t.value.style.chart.layout.labels.axisLabels.color.positive
1052
- }, L(t.value.style.chart.layout.grid.yAxis.name), 9, Ll),
1053
- c("text", {
1054
- x: e.value.centerX,
1055
- y: e.value.bottom + e.value.padding * 0.35,
1056
- "text-anchor": "middle",
1057
- "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
1058
- fill: t.value.style.chart.layout.labels.axisLabels.color.negative
1059
- }, L(i(F)(
1060
- t.value.style.chart.layout.labels.plotLabels.y.formatter,
1061
- C.value.y.min,
1062
- i(B)({
1063
- v: C.value.y.min,
1064
- r: t.value.style.chart.layout.labels.plotLabels.rounding
1065
- })
1066
- )), 9, wl),
1067
- c("text", {
1068
- id: `xLabelMin_${w.value}`,
1069
- "text-anchor": "middle",
1070
- "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
1071
- transform: `translate(${e.value.padding - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(-90)`,
1072
- fill: t.value.style.chart.layout.labels.axisLabels.color.negative
1073
- }, L(i(F)(
1074
- t.value.style.chart.layout.labels.plotLabels.x.formatter,
1075
- C.value.x.min,
1076
- i(B)({
1077
- v: C.value.x.min,
1078
- r: t.value.style.chart.layout.labels.plotLabels.rounding
1079
- })
1080
- )), 9, _l),
1081
- c("text", {
1082
- id: `xLabelMax_${w.value}`,
1083
- "text-anchor": "middle",
1084
- "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
1085
- transform: `translate(${e.value.width - e.value.padding + t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
1086
- fill: t.value.style.chart.layout.labels.axisLabels.color.positive
1087
- }, L(i(F)(
1088
- t.value.style.chart.layout.labels.plotLabels.x.formatter,
1089
- C.value.x.max,
1090
- i(B)({
1091
- v: C.value.x.max,
1092
- r: t.value.style.chart.layout.labels.plotLabels.rounding
1093
- })
1094
- )), 9, ql),
1095
- c("text", {
1096
- id: `xLabelMaxName_${w.value}`,
1097
- "text-anchor": "middle",
1098
- "font-size": t.value.style.chart.layout.labels.axisLabels.fontSize,
1099
- transform: `translate(${e.value.width - t.value.style.chart.layout.labels.axisLabels.fontSize}, ${e.value.height / 2}), rotate(90)`,
1100
- fill: t.value.style.chart.layout.labels.axisLabels.color.positive
1101
- }, L(t.value.style.chart.layout.grid.xAxis.name), 9, Cl)
1102
- ])) : h("", !0),
1103
- t.value.style.chart.layout.areas.show ? (s(), n("g", Sl, [
1104
- (s(!0), n(S, null, W(z.value, (a, o) => (s(), n("g", null, [
1105
- a.series.length > 2 ? (s(), n("polygon", {
1106
- key: 0,
1107
- "data-cy-quadrant-area": "",
1108
- fill: t.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${w.value}_${o})` : i(ue)(a.color, t.value.style.chart.layout.areas.opacity),
1109
- points: i(Nt)(a)
1110
- }, null, 8, zl)) : h("", !0)
1111
- ]))), 256))
1112
- ])) : h("", !0),
1113
- c("g", null, [
1114
- c("rect", {
1115
- onClick: u[4] || (u[4] = (a) => O("TL")),
1116
- x: e.value.left,
1117
- y: e.value.top,
1118
- width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
1119
- height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
1120
- fill: "transparent",
1121
- class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
1122
- }, null, 10, Tl),
1123
- c("rect", {
1124
- onClick: u[5] || (u[5] = (a) => O("TR")),
1125
- x: e.value.centerX,
1126
- y: e.value.top,
1127
- width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
1128
- height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
1129
- fill: "transparent",
1130
- class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
1131
- }, null, 10, Al),
1132
- c("rect", {
1133
- onClick: u[6] || (u[6] = (a) => O("BR")),
1134
- x: e.value.centerX,
1135
- y: e.value.centerY,
1136
- width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
1137
- height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
1138
- fill: "transparent",
1139
- class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
1140
- }, null, 10, Xl),
1141
- c("rect", {
1142
- onClick: u[7] || (u[7] = (a) => O("BL")),
1143
- x: e.value.left,
1144
- y: e.value.centerY,
1145
- width: e.value.usableWidth / 2 <= 0 ? 1e-3 : e.value.usableWidth / 2,
1146
- height: e.value.usableHeight / 2 <= 0 ? 1e-3 : e.value.usableHeight / 2,
1147
- fill: "transparent",
1148
- class: T({ "vue-data-ui-zoom-plus": !p.value, "vue-data-ui-zoom-minus": p.value })
1149
- }, null, 10, Wl)
1150
- ]),
1151
- t.value.style.chart.layout.labels.plotLabels.showAsTag ? (s(), n(S, { key: 7 }, [
1152
- $.value.plotLabels.show ? (s(), n("g", Ol, [
1153
- (s(!0), n(S, null, W(z.value, (a, o) => (s(), n(S, null, [
1154
- (s(!0), n(S, null, W(a.series, (r) => (s(), n("foreignObject", {
1155
- style: { overflow: "visible" },
1156
- height: "10",
1157
- width: "100",
1158
- x: r.x - 50,
1159
- y: r.y - t.value.style.chart.layout.labels.plotLabels.fontSize,
1160
- onMouseover: (b) => Be(a, r, o),
1161
- onMouseleave: (b) => Ve(r, o),
1162
- onClick: (b) => Pe(a, r, o)
1163
- }, [
1164
- c("div", {
1165
- style: q(`color:${i(Rt)(a.color)};margin: 0 auto; font-size:${t.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${a.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`)
1166
- }, L(r.name), 5)
1167
- ], 40, Rl))), 256))
1168
- ], 64))), 256))
1169
- ])) : h("", !0)
1170
- ], 64)) : (s(), n(S, { key: 6 }, [
1171
- (s(!0), n(S, null, W(z.value, (a, o) => (s(), n("g", null, [
1172
- (s(!0), n(S, null, W(a.series, (r) => (s(), X(et, {
1173
- color: a.color,
1174
- isSelected: te.value && r.uid === te.value,
1175
- plot: r,
1176
- radius: t.value.style.chart.layout.plots.radius / (p.value ? 1.5 : 1),
1177
- shape: a.shape,
1178
- stroke: t.value.style.chart.layout.plots.outline ? t.value.style.chart.layout.plots.outlineColor : "none",
1179
- strokeWidth: t.value.style.chart.layout.plots.outlineWidth,
1180
- onMouseenter: (b) => Be(a, r, o),
1181
- onMouseleave: (b) => Ve(r, o),
1182
- onClick: (b) => Pe(a, r, o)
1183
- }, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseenter", "onMouseleave", "onClick"]))), 256))
1184
- ]))), 256)),
1185
- $.value.plotLabels.show ? (s(), n("g", Yl, [
1186
- (s(!0), n(S, null, W(z.value, (a) => (s(), n("g", null, [
1187
- (s(!0), n(S, null, W(a.series, (o) => (s(), n("g", null, [
1188
- String(o.name).includes(`
1189
- `) ? (s(), n("text", {
1190
- key: 1,
1191
- x: o.x,
1192
- y: o.y + t.value.style.chart.layout.labels.plotLabels.offsetY + t.value.style.chart.layout.plots.radius,
1193
- "text-anchor": "middle",
1194
- "font-size": t.value.style.chart.layout.labels.plotLabels.fontSize / (p.value ? 1.5 : 1),
1195
- fill: t.value.style.chart.layout.labels.plotLabels.color,
1196
- innerHTML: i(Ot)({
1197
- content: String(o.name),
1198
- fontSize: t.value.style.chart.layout.labels.plotLabels.fontSize / (p.value ? 1.5 : 1),
1199
- fill: t.value.style.chart.layout.labels.plotLabels.color,
1200
- x: o.x,
1201
- y: o.y + t.value.style.chart.layout.labels.plotLabels.offsetY + t.value.style.chart.layout.plots.radius
1202
- })
1203
- }, null, 8, Nl)) : (s(), n("text", {
1204
- key: 0,
1205
- x: o.x,
1206
- y: o.y + t.value.style.chart.layout.labels.plotLabels.offsetY + t.value.style.chart.layout.plots.radius,
1207
- "text-anchor": "middle",
1208
- "font-size": t.value.style.chart.layout.labels.plotLabels.fontSize / (p.value ? 1.5 : 1),
1209
- fill: t.value.style.chart.layout.labels.plotLabels.color
1210
- }, L(o.name), 9, Ml))
1211
- ]))), 256))
1212
- ]))), 256))
1213
- ])) : h("", !0)
1214
- ], 64)),
1215
- p.value ? (s(), n("g", Fl, [
1216
- d.value === "TL" ? (s(), n("polygon", {
1217
- key: 0,
1218
- points: `${e.value.left - 1},${e.value.centerY} ${e.value.centerX},${e.value.centerY} ${e.value.centerX},${e.value.top - 1} ${e.value.right},${e.value.top - 1} ${e.value.right},${e.value.bottom} ${e.value.left - 1},${e.value.bottom} ${e.value.left - 1},${e.value.centerY}`,
1219
- fill: t.value.style.chart.backgroundColor,
1220
- style: { opacity: "1" }
1221
- }, null, 8, Bl)) : h("", !0),
1222
- d.value === "TR" ? (s(), n("polygon", {
1223
- key: 1,
1224
- points: `${e.value.left},${e.value.top - 1} ${e.value.centerX},${e.value.top - 1} ${e.value.centerX},${e.value.centerY} ${e.value.right + 1},${e.value.centerY} ${e.value.right + 1},${e.value.bottom} ${e.value.left},${e.value.bottom} ${e.value.left},${e.value.top - 1}`,
1225
- fill: t.value.style.chart.backgroundColor,
1226
- style: { opacity: "1" }
1227
- }, null, 8, Vl)) : h("", !0),
1228
- d.value === "BR" ? (s(), n("polygon", {
1229
- key: 2,
1230
- points: `${e.value.left},${e.value.top} ${e.value.right + 1},${e.value.top} ${e.value.right + 1},${e.value.centerY} ${e.value.centerX},${e.value.centerY} ${e.value.centerX},${e.value.bottom + 1} ${e.value.left},${e.value.bottom + 1} ${e.value.left},${e.value.top}`,
1231
- fill: t.value.style.chart.backgroundColor,
1232
- style: { opacity: "1" }
1233
- }, null, 8, Pl)) : h("", !0),
1234
- d.value === "BL" ? (s(), n("polygon", {
1235
- key: 3,
1236
- points: `${e.value.left - 1},${e.value.top} ${e.value.right},${e.value.top} ${e.value.right},${e.value.bottom + 1} ${e.value.centerX},${e.value.bottom + 1} ${e.value.centerX},${e.value.centerY} ${e.value.left - 1},${e.value.centerY} ${e.value.left - 1},${e.value.top}`,
1237
- fill: t.value.style.chart.backgroundColor,
1238
- style: { opacity: "1" }
1239
- }, null, 8, Hl)) : h("", !0)
1240
- ])) : h("", !0),
1241
- d.value && !Z.value ? (s(), n("g", Il, [
1242
- c("text", {
1243
- x: V.value.x,
1244
- y: V.value.y - V.value.fontSize / 1.5,
1245
- "font-size": V.value.fontSize / 1.5,
1246
- fill: V.value.fill,
1247
- "text-anchor": "middle",
1248
- "font-weight": V.value.bold ? "bold" : "normal"
1249
- }, L(V.value.text), 9, El)
1250
- ])) : h("", !0),
1251
- p.value && d.value ? (s(), n("g", Dl, [
1252
- c("rect", {
1253
- x: _.value[d.value].tl.x,
1254
- y: _.value[d.value].tl.y,
1255
- height: "20",
1256
- width: "20",
1257
- fill: _.value[d.value].tl.fill,
1258
- style: q(`cursor: pointer; opacity: ${d.value === "TL" ? 1 : 0.2}`),
1259
- onClick: u[8] || (u[8] = (a) => O("TL")),
1260
- class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "TL" })
1261
- }, null, 14, Ul),
1262
- c("rect", {
1263
- x: _.value[d.value].tr.x,
1264
- y: _.value[d.value].tr.y,
1265
- height: "20",
1266
- width: "20",
1267
- fill: _.value[d.value].tr.fill,
1268
- style: q(`cursor: pointer; opacity: ${d.value === "TR" ? 1 : 0.2}`),
1269
- onClick: u[9] || (u[9] = (a) => O("TR")),
1270
- class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "TR" })
1271
- }, null, 14, Gl),
1272
- c("rect", {
1273
- x: _.value[d.value].br.x,
1274
- y: _.value[d.value].br.y,
1275
- height: "20",
1276
- width: "20",
1277
- fill: _.value[d.value].br.fill,
1278
- style: q(`cursor: pointer; opacity: ${d.value === "BR" ? 1 : 0.2}`),
1279
- onClick: u[10] || (u[10] = (a) => O("BR")),
1280
- class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "BR" })
1281
- }, null, 14, Ql),
1282
- c("rect", {
1283
- x: _.value[d.value].bl.x,
1284
- y: _.value[d.value].bl.y,
1285
- height: "20",
1286
- width: "20",
1287
- fill: _.value[d.value].bl.fill,
1288
- style: q(`cursor: pointer; opacity: ${d.value === "BL" ? 1 : 0.2}`),
1289
- onClick: u[11] || (u[11] = (a) => O("BL")),
1290
- class: T({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": d.value !== "BL" })
1291
- }, null, 14, Jl),
1292
- c("path", {
1293
- class: "vue-ui-quadrant-minimap-crosshairs",
1294
- stroke: t.value.style.chart.backgroundColor,
1295
- "stroke-width": 1,
1296
- d: _.value[d.value].crosshairs.horizontal
1297
- }, null, 8, jl),
1298
- c("path", {
1299
- class: "vue-ui-quadrant-minimap-crosshairs",
1300
- stroke: t.value.style.chart.backgroundColor,
1301
- "stroke-width": 1,
1302
- d: _.value[d.value].crosshairs.vertical
1303
- }, null, 8, Zl)
1304
- ])) : h("", !0),
1305
- x(l.$slots, "svg", { svg: e.value }, void 0, !0)
1306
- ], 14, ll)),
1307
- l.$slots.watermark ? (s(), n("div", Kl, [
1308
- x(l.$slots, "watermark", U(G({ isPrinting: i(Ae) || i(Xe) })), void 0, !0)
1309
- ])) : h("", !0),
1310
- c("div", {
1311
- id: `legend-bottom-${w.value}`
1312
- }, null, 8, ea),
1313
- we.value ? (s(), X(Lt, {
1314
- key: 5,
1315
- to: t.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
1316
- }, [
1317
- c("div", {
1318
- ref_key: "chartLegend",
1319
- ref: ge
1320
- }, [
1321
- t.value.style.chart.legend.show ? (s(), X(Jt, {
1322
- key: `legend_${Le.value}`,
1323
- legendSet: Re.value,
1324
- config: pt.value,
1325
- onClickMarker: u[12] || (u[12] = ({ legend: a }) => ve(a.id))
1326
- }, {
1327
- item: m(({ legend: a }) => [
1328
- i(_e) ? h("", !0) : (s(), n("div", {
1329
- key: 0,
1330
- onClick: (o) => ve(a.id),
1331
- style: q(`opacity:${R.value.includes(a.id) ? 0.5 : 1}`)
1332
- }, L(a.name), 13, ta))
1333
- ]),
1334
- _: 1
1335
- }, 8, ["legendSet", "config"])) : x(l.$slots, "legend", {
1336
- key: 1,
1337
- legend: Re.value
1338
- }, void 0, !0)
1339
- ], 512)
1340
- ], 8, ["to"])) : h("", !0),
1341
- l.$slots.source ? (s(), n("div", {
1342
- key: 6,
1343
- ref_key: "source",
1344
- ref: me,
1345
- dir: "auto"
1346
- }, [
1347
- x(l.$slots, "source", {}, void 0, !0)
1348
- ], 512)) : h("", !0),
1349
- he(i(ut), {
1350
- show: $.value.showTooltip && se.value,
1351
- backgroundColor: t.value.style.chart.tooltip.backgroundColor,
1352
- color: t.value.style.chart.tooltip.color,
1353
- borderRadius: t.value.style.chart.tooltip.borderRadius,
1354
- borderColor: t.value.style.chart.tooltip.borderColor,
1355
- borderWidth: t.value.style.chart.tooltip.borderWidth,
1356
- fontSize: t.value.style.chart.tooltip.fontSize,
1357
- backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
1358
- position: t.value.style.chart.tooltip.position,
1359
- offsetY: t.value.style.chart.tooltip.offsetY,
1360
- parent: M.value,
1361
- content: re.value,
1362
- isFullscreen: E.value,
1363
- isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function",
1364
- smooth: t.value.style.chart.tooltip.smooth,
1365
- backdropFilter: t.value.style.chart.tooltip.backdropFilter
1366
- }, {
1367
- "tooltip-before": m(() => [
1368
- x(l.$slots, "tooltip-before", U(G({ ...de.value })), void 0, !0)
1369
- ]),
1370
- "tooltip-after": m(() => [
1371
- x(l.$slots, "tooltip-after", U(G({ ...de.value })), void 0, !0)
1372
- ]),
1373
- default: m(() => [
1374
- t.value.style.chart.tooltip.showShape ? (s(), n("svg", la, [
1375
- he(et, {
1376
- plot: { x: 10, y: 10 },
1377
- shape: le.value.shape,
1378
- color: le.value.color,
1379
- radius: 8,
1380
- stroke: t.value.style.chart.layout.plots.outline ? t.value.style.chart.layout.plots.outlineColor : "none",
1381
- "stroke-width": t.value.style.chart.layout.plots.outlineWidth
1382
- }, null, 8, ["shape", "color", "stroke", "stroke-width"])
1383
- ])) : h("", !0)
1384
- ]),
1385
- _: 3
1386
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1387
- be.value ? (s(), X(i(ot), {
1388
- key: 7,
1389
- hideDetails: "",
1390
- config: {
1391
- open: $.value.showTable,
1392
- maxHeight: 1e4,
1393
- body: {
1394
- backgroundColor: t.value.style.chart.backgroundColor,
1395
- color: t.value.style.chart.color
1396
- },
1397
- head: {
1398
- backgroundColor: t.value.style.chart.backgroundColor,
1399
- color: t.value.style.chart.color
1400
- }
1401
- }
1402
- }, {
1403
- content: m(() => [
1404
- (s(), X(i(st), {
1405
- key: `table_${ke.value}`,
1406
- colNames: ee.value.colNames,
1407
- head: ee.value.head,
1408
- body: ee.value.body,
1409
- config: ee.value.config,
1410
- title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
1411
- onClose: u[13] || (u[13] = (a) => $.value.showTable = !1)
1412
- }, {
1413
- th: m(({ th: a }) => [
1414
- wt(L(a), 1)
1415
- ]),
1416
- td: m(({ td: a }) => [
1417
- c("div", {
1418
- innerHTML: a.name || a
1419
- }, null, 8, aa)
1420
- ]),
1421
- _: 1
1422
- }, 8, ["colNames", "head", "body", "config", "title"]))
1423
- ]),
1424
- _: 1
1425
- }, 8, ["config"])) : h("", !0),
1426
- i(_e) ? (s(), X(Zt, { key: 8 })) : h("", !0)
1427
- ], 46, el));
1428
- }
1429
- }, ga = /* @__PURE__ */ Kt(ua, [["__scopeId", "data-v-a675d946"]]);
1430
- export {
1431
- ga as default
1432
- };