vue-data-ui 3.1.13 → 3.1.15

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 (92) hide show
  1. package/dist/{Arrow-CVLA4XvK.js → Arrow-BwVAy_Jw.js} +1 -1
  2. package/dist/{BaseDraggableDialog-R8VpARJu.js → BaseDraggableDialog-TS2ANP8W.js} +2 -2
  3. package/dist/{BaseIcon-CBGEVS_a.js → BaseIcon-Dj9csjZa.js} +1 -1
  4. package/dist/{ColorPicker-YzV_LGZx.js → ColorPicker-BKecww2B.js} +2 -2
  5. package/dist/{DataTable-DQRJv8EE.js → DataTable-DAc2s9Wi.js} +2 -2
  6. package/dist/{Legend-CC3LegoH.js → Legend-C3Kvktr3.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-CmIOGkib.js → NonSvgPenAndPaper-yA6HCA0i.js} +3 -3
  8. package/dist/{PackageVersion-bFI66Iee.js → PackageVersion-DL0EOwRR.js} +1 -1
  9. package/dist/{PenAndPaper-CHT5QaP8.js → PenAndPaper-CcoAkH79.js} +3 -3
  10. package/dist/{Shape-BWIW_Vmn.js → Shape-CziAQ1KL.js} +1 -1
  11. package/dist/Slicer-BMgEyKMg.js +995 -0
  12. package/dist/{SparkTooltip-BP53cKq5.js → SparkTooltip-BGqC2VSH.js} +1 -1
  13. package/dist/{Title-BKsDkvCV.js → Title-DRhv9bCG.js} +1 -1
  14. package/dist/{Tooltip-BA5KTZ2e.js → Tooltip-B46L8jx5.js} +1 -1
  15. package/dist/{UserOptions-usqWO4wC.js → UserOptions-CmhyvH7T.js} +2 -2
  16. package/dist/{dom-to-png-BnO878iN.js → dom-to-png-B2G1VN03.js} +1 -1
  17. package/dist/{img-CVbbqgGH.js → img-CRdZ0dzP.js} +1 -1
  18. package/dist/{index-CdN9MkL7.js → index-BS0jZusk.js} +871 -835
  19. package/dist/{pdf-D8ryJvtA.js → pdf-Gz1SfU0n.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +4 -0
  22. package/dist/types/vue-data-ui.d.ts +4 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-CXgpnPOp.js → useAutoSizeLabelsInsideViewbox-BPbMPvCk.js} +1 -1
  24. package/dist/{useNestedProp-oNhYagej.js → useNestedProp-BMfS1Wmb.js} +1 -1
  25. package/dist/{usePrinter-CLVErK_G.js → usePrinter-CsKq2kgt.js} +2 -2
  26. package/dist/{vue-data-ui-ESVJfqTI.js → vue-data-ui-BfnOSsYj.js} +64 -64
  27. package/dist/vue-data-ui.js +9 -9
  28. package/dist/{vue-ui-3d-bar-BEColjG7.js → vue-ui-3d-bar-BR_dgJX1.js} +6 -6
  29. package/dist/{vue-ui-accordion-BoGANFKn.js → vue-ui-accordion-CEzzDwYU.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-D4hV5Mm5.js → vue-ui-age-pyramid-CqzjgMzW.js} +6 -6
  31. package/dist/{vue-ui-annotator-Bd14Ihi4.js → vue-ui-annotator-OWSjXDfI.js} +2 -2
  32. package/dist/{vue-ui-bullet-B3HG400j.js → vue-ui-bullet-BkiVGK4U.js} +7 -7
  33. package/dist/{vue-ui-candlestick-B6l4oAdh.js → vue-ui-candlestick-CE9w-lrK.js} +140 -138
  34. package/dist/{vue-ui-carousel-table-vCbymZEo.js → vue-ui-carousel-table-DzMkFu9a.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BQ6iufUt.js → vue-ui-chestnut-CwW3t_5M.js} +5 -5
  36. package/dist/{vue-ui-chord-DW8T8npL.js → vue-ui-chord-C273Dy7g.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-DjWtxYMQ.js → vue-ui-circle-pack-DVsgg20A.js} +6 -6
  38. package/dist/{vue-ui-cursor-CtBfAk5K.js → vue-ui-cursor-6wDMRfxj.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CWuz7g2D.js → vue-ui-dashboard-Dr3da_KZ.js} +67 -67
  40. package/dist/{vue-ui-digits-D1b_EIv1.js → vue-ui-digits-CJl9xG57.js} +2 -2
  41. package/dist/{vue-ui-donut-BwdvzYGF.js → vue-ui-donut-CKvoDpr0.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-DXbshH8-.js → vue-ui-donut-evolution-B8z5HW6k.js} +62 -60
  43. package/dist/{vue-ui-dumbbell-Bt2y7QMw.js → vue-ui-dumbbell-C-aWCVEj.js} +7 -7
  44. package/dist/{vue-ui-flow-CiG_qIh_.js → vue-ui-flow-Cg0W7WX3.js} +7 -7
  45. package/dist/{vue-ui-funnel-BGCE6fqp.js → vue-ui-funnel-CfzyjhfB.js} +6 -6
  46. package/dist/{vue-ui-galaxy-BCEyVfRW.js → vue-ui-galaxy-CzswoWLZ.js} +7 -7
  47. package/dist/{vue-ui-gauge-Cfq8G4nD.js → vue-ui-gauge-BguKCg0e.js} +7 -7
  48. package/dist/{vue-ui-gizmo-CBOoJgxB.js → vue-ui-gizmo-mhU06gyJ.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BefuX3hT.js → vue-ui-heatmap-BtAAQWmE.js} +7 -7
  50. package/dist/{vue-ui-history-plot-BqLyfnJn.js → vue-ui-history-plot-Clrvd4ZQ.js} +7 -7
  51. package/dist/{vue-ui-kpi-6IbtwB7F.js → vue-ui-kpi-DGpQpP2W.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-BwbFaE7B.js → vue-ui-mini-loader-2zvIBunp.js} +2 -2
  53. package/dist/{vue-ui-molecule-BbhQfFdx.js → vue-ui-molecule-DKgiZcBp.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-B-wVmA-t.js → vue-ui-mood-radar-ka0RoCHN.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-qKtWmJsI.js → vue-ui-nested-donuts-CvROIWCn.js} +7 -7
  56. package/dist/{vue-ui-onion-BpbpizLk.js → vue-ui-onion-x5qCIJUe.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-BFK9LT6V.js → vue-ui-parallel-coordinate-plot-BaNQTR7G.js} +8 -8
  58. package/dist/{vue-ui-quadrant-D6_0xe-_.js → vue-ui-quadrant-Bde3xKLu.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-Du7852v9.js → vue-ui-quick-chart-BpHyBn7x.js} +115 -113
  60. package/dist/{vue-ui-radar-kEKg-NL7.js → vue-ui-radar-DP3ErImt.js} +8 -8
  61. package/dist/{vue-ui-rating-7yatRVbx.js → vue-ui-rating-DCL2xb9w.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-_1W7NdYE.js → vue-ui-relation-circle-COt79-GJ.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BSAVhIDE.js → vue-ui-ridgeline-Dcrii6_n.js} +8 -8
  64. package/dist/{vue-ui-rings-jK9EjGrJ.js → vue-ui-rings-CiDYRQIj.js} +8 -8
  65. package/dist/{vue-ui-scatter-BPthb9-8.js → vue-ui-scatter-D8bk6KJw.js} +8 -8
  66. package/dist/{vue-ui-skeleton-VW0h-sRm.js → vue-ui-skeleton-DZN6Q2RW.js} +3 -3
  67. package/dist/{vue-ui-smiley-DLOiHo-v.js → vue-ui-smiley-a9aOACpQ.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BIYEAoE_.js → vue-ui-spark-trend-D2ySMA8w.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BfTF_hnD.js → vue-ui-sparkbar-CPKbBS4x.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-chrEmdPw.js → vue-ui-sparkgauge-YgppX8cI.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Dr0-iYVk.js → vue-ui-sparkhistogram-BT-Pb999.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B-R7lTuD.js → vue-ui-sparkline-DE_nT4bC.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CGTlNpJY.js → vue-ui-sparkstackbar-3MV7U6sR.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Dl2ks6xV.js → vue-ui-stackbar-wfRiGYFu.js} +54 -52
  75. package/dist/{vue-ui-strip-plot-DyCzm2FQ.js → vue-ui-strip-plot-BYDBbI0O.js} +7 -7
  76. package/dist/{vue-ui-table-heatmap-Cy56aBvN.js → vue-ui-table-heatmap-hOIbFD6k.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-BYoEkczS.js → vue-ui-table-sparkline-DNnOTTBh.js} +4 -4
  78. package/dist/{vue-ui-table-CMxWcytp.js → vue-ui-table-xG0KcrLD.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B7wec2mE.js → vue-ui-thermometer-C8kZDjnk.js} +7 -7
  80. package/dist/{vue-ui-timer-CE61Pm8_.js → vue-ui-timer-BZxcYfbP.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BKfbwgE0.js → vue-ui-tiremarks-D5mpDWUN.js} +6 -6
  82. package/dist/{vue-ui-treemap-CDgTxZQG.js → vue-ui-treemap-RPa_dvoO.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-BDU24Fw1.js → vue-ui-vertical-bar-OwkTXcnm.js} +9 -9
  84. package/dist/{vue-ui-waffle-hdT1HxNy.js → vue-ui-waffle-DveHx6kc.js} +8 -8
  85. package/dist/{vue-ui-wheel-CB5VCBnY.js → vue-ui-wheel-Cyk4SL64.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BGmRwhgL.js → vue-ui-word-cloud-BNmS-vjj.js} +6 -6
  87. package/dist/{vue-ui-world-Dgo59nPi.js → vue-ui-world-BhB1K_eL.js} +6 -6
  88. package/dist/vue-ui-xy-CfuSMzgb.js +4510 -0
  89. package/dist/{vue-ui-xy-canvas--NNe3yOn.js → vue-ui-xy-canvas-BFgpcPZ3.js} +132 -130
  90. package/package.json +1 -1
  91. package/dist/Slicer-C7BMIgYA.js +0 -972
  92. package/dist/vue-ui-xy-C9oTa60U.js +0 -4530
@@ -0,0 +1,995 @@
1
+ import { useCssVars as Ot, computed as s, ref as d, onMounted as lt, onBeforeUnmount as $e, watch as Z, nextTick as ve, onUpdated as Ut, createElementBlock as i, openBlock as u, createElementVNode as P, createCommentVNode as m, renderSlot as Zt, normalizeStyle as $, createVNode as Yt, withDirectives as at, unref as me, Fragment as y, renderList as R, normalizeProps as Jt, mergeProps as qt, normalizeClass as Y, vModelText as nt, toDisplayString as Le } from "vue";
2
+ import { c as Kt, X as Qt, F as Ee, $ as it, V as ut, a0 as ot, U as rt, a1 as st } from "./index-BS0jZusk.js";
3
+ import { t as ct, d as jt, u as _t } from "./useResponsive-DfdjqQps.js";
4
+ import el from "./BaseIcon-Dj9csjZa.js";
5
+ import { _ as tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const ll = {
7
+ class: "vue-data-ui-slicer-labels",
8
+ style: { position: "relative", "z-index": "1", "pointer-events": "none" }
9
+ }, al = {
10
+ key: 0,
11
+ style: { width: "100%", position: "relative" }
12
+ }, nl = {
13
+ key: 0,
14
+ class: "minimap",
15
+ style: { width: "100%" }
16
+ }, il = ["xmlns", "viewBox"], ul = ["id"], ol = ["stop-color"], rl = ["width", "height", "stroke"], sl = ["d", "stroke"], cl = ["x", "width", "y", "height", "fill"], vl = ["d", "stroke"], ml = ["cx", "cy", "fill", "stroke"], hl = ["x", "width", "height", "fill", "rx"], dl = ["x", "width", "height", "rx", "fill"], fl = ["x", "width", "height", "fill", "rx"], gl = ["x2", "y1", "y2", "stroke"], xl = ["d", "fill"], yl = ["d", "stroke"], Ml = { key: 6 }, bl = ["x", "width", "y", "height", "fill"], pl = ["d", "stroke"], kl = ["x", "height", "fill", "stroke"], wl = ["x", "height", "fill", "stroke"], Sl = ["cx", "cy", "stroke", "fill"], Cl = ["cx", "cy", "fill"], Pl = ["cx", "cy", "stroke", "fill"], Nl = ["cx", "cy", "fill"], Rl = { key: 10 }, $l = ["cx", "cy", "fill", "stroke"], Ll = ["cx", "cy", "stroke", "fill"], El = ["cx", "cy", "fill"], Tl = ["cx", "cy", "stroke", "fill"], Vl = ["cx", "cy", "fill"], Al = ["height", "x", "width", "onMouseenter"], Bl = ["min", "max"], Fl = ["min", "max"], Te = 48, Il = {
17
+ __name: "Slicer",
18
+ props: {
19
+ background: {
20
+ type: String,
21
+ default: "#FFFFFF"
22
+ },
23
+ borderColor: {
24
+ type: String,
25
+ default: "#FFFFFF"
26
+ },
27
+ fontSize: {
28
+ type: Number,
29
+ default: 14
30
+ },
31
+ labelLeft: {
32
+ type: [String, Number],
33
+ default: ""
34
+ },
35
+ labelRight: {
36
+ type: [String, Number],
37
+ default: ""
38
+ },
39
+ textColor: {
40
+ type: String,
41
+ default: "#1A1A1A"
42
+ },
43
+ inputColor: {
44
+ type: String,
45
+ default: "#1A1A1A"
46
+ },
47
+ max: {
48
+ type: Number,
49
+ default: 0
50
+ },
51
+ min: {
52
+ type: Number,
53
+ default: 0
54
+ },
55
+ selectColor: {
56
+ type: String,
57
+ default: "#4A4A4A"
58
+ },
59
+ useResetSlot: {
60
+ type: Boolean,
61
+ default: !1
62
+ },
63
+ valueStart: {
64
+ type: [Number, String],
65
+ default: 0
66
+ },
67
+ valueEnd: {
68
+ type: [Number, String],
69
+ default: 0
70
+ },
71
+ minimap: {
72
+ type: Array,
73
+ default: []
74
+ },
75
+ smoothMinimap: {
76
+ type: Boolean,
77
+ default: !1
78
+ },
79
+ minimapSelectedColor: {
80
+ type: String,
81
+ default: "#1f77b4"
82
+ },
83
+ minimapSelectionRadius: {
84
+ type: Number,
85
+ default: 12
86
+ },
87
+ minimapLineColor: {
88
+ type: String,
89
+ default: "#2D353C"
90
+ },
91
+ minimapSelectedColorOpacity: {
92
+ type: Number,
93
+ default: 0.2
94
+ },
95
+ minimapSelectedIndex: {
96
+ type: Number,
97
+ default: null
98
+ },
99
+ minimapIndicatorColor: {
100
+ type: String,
101
+ default: "#2D353C"
102
+ },
103
+ refreshStartPoint: {
104
+ type: Number,
105
+ default: 0
106
+ },
107
+ refreshEndPoint: {
108
+ type: Number,
109
+ default: null
110
+ },
111
+ enableRangeHandles: {
112
+ type: Boolean,
113
+ default: !1
114
+ },
115
+ enableSelectionDrag: {
116
+ type: Boolean,
117
+ default: !0
118
+ },
119
+ verticalHandles: {
120
+ type: Boolean,
121
+ default: !1
122
+ },
123
+ minimapCompact: {
124
+ type: Boolean,
125
+ default: !1
126
+ },
127
+ allMinimaps: {
128
+ type: Array,
129
+ default() {
130
+ return [];
131
+ }
132
+ },
133
+ minimapMerged: {
134
+ type: Boolean,
135
+ default: !1
136
+ },
137
+ minimapFrameColor: {
138
+ type: String,
139
+ default: "#e1e5e8"
140
+ },
141
+ cutNullValues: {
142
+ type: Boolean,
143
+ default: !1
144
+ },
145
+ focusOnDrag: {
146
+ type: Boolean,
147
+ default: !1
148
+ },
149
+ focusRangeRatio: {
150
+ type: Number,
151
+ default: 0.1
152
+ }
153
+ },
154
+ emits: ["update:start", "update:end", "reset", "trapMouse"],
155
+ setup(n, { expose: vt, emit: mt }) {
156
+ Ot((e) => ({
157
+ "068fea96": gt.value,
158
+ c2f519ec: g.value,
159
+ "763410fb": yt.value,
160
+ "7ebab43a": n.selectColor,
161
+ "74a671c8": xt.value
162
+ }));
163
+ const a = n, p = d(null), w = d(a.min), S = d(a.max), M = s(() => !!a.minimap.length), Ve = d(Kt()), L = s(() => M.value && a.minimapCompact), he = d(0);
164
+ lt(() => {
165
+ const e = () => {
166
+ p.value && (he.value = p.value.getBoundingClientRect().width);
167
+ };
168
+ e();
169
+ const l = ct(e, 50);
170
+ window.addEventListener("resize", l), $e(() => {
171
+ window.removeEventListener("resize", l);
172
+ });
173
+ });
174
+ const ht = s(() => a.refreshEndPoint === null ? a.max : a.refreshEndPoint), J = mt, q = s(() => {
175
+ if (L.value) {
176
+ const l = Math.max(1, ue.value - 1);
177
+ return ye.value / l * 100;
178
+ }
179
+ const e = Math.max(1, a.max - a.min);
180
+ return (w.value - a.min) / e * 100;
181
+ }), oe = s(() => {
182
+ if (L.value) {
183
+ const l = Math.max(1, ue.value - 1);
184
+ return Me.value / l * 100;
185
+ }
186
+ const e = Math.max(1, a.max - a.min);
187
+ return (S.value - a.min) / e * 100;
188
+ }), de = s(() => (q.value + oe.value) / 2), fe = s(() => {
189
+ if (!p.value) return !1;
190
+ const e = p.value.getBoundingClientRect().width;
191
+ return q.value / 100 * e - Ne.value / 2 < 0;
192
+ }), ge = s(() => {
193
+ if (!p.value) return !1;
194
+ const e = p.value.getBoundingClientRect().width;
195
+ return oe.value / 100 * e + se.value / 2 > e;
196
+ }), N = s(() => {
197
+ const e = ge.value ? `calc(${de.value}% - ${ie.value.width}px - 2px)` : fe.value ? `calc(${de.value}% - 8px)` : `calc(${de.value}% - ${ie.value.width / 2}px - 4px)`;
198
+ return {
199
+ left: `${q.value}%`,
200
+ width: `${Math.max(0, oe.value - q.value)}%`,
201
+ background: a.selectColor,
202
+ tooltipLeft: `calc(${q.value}% - ${fe.value ? 9 : Ne.value / 2 + 3.5}px)`,
203
+ tooltipRight: `calc(${oe.value}% - ${ge.value ? se.value - 9 : se.value / 2 - 3.5}px)`,
204
+ tooltipCenter: e,
205
+ arrowLeft: !fe.value,
206
+ arrowRight: !ge.value
207
+ };
208
+ }), K = s(() => Math.max(0, (Q.value || 1) - 1)), xe = s(() => Math.max(0, (ue.value || 1) - 1));
209
+ function re(e) {
210
+ return xe.value === 0 ? 0 : Math.round(e / xe.value * K.value);
211
+ }
212
+ function Ae(e) {
213
+ return K.value === 0 ? 0 : Math.round(e / K.value * xe.value);
214
+ }
215
+ const dt = (e) => Math.floor(a.min + e), ft = (e) => Math.ceil(a.min + e), ye = s({
216
+ get() {
217
+ return L.value ? re(I.value) : Number(w.value);
218
+ },
219
+ set(e) {
220
+ if (L.value) {
221
+ const l = Math.round(+e || 0), t = Math.max(0, re(Math.max(0, X.value - 1))), o = Math.min(Math.max(0, l), t), r = Ae(o);
222
+ _(dt(r));
223
+ } else {
224
+ let l = Math.round(+e || 0);
225
+ const t = Number(S.value) - 1, o = Math.min(Math.max(a.min, l), t);
226
+ _(o);
227
+ }
228
+ }
229
+ }), Me = s({
230
+ get() {
231
+ return L.value ? re(Math.max(I.value, X.value - 1)) : Number(S.value);
232
+ },
233
+ set(e) {
234
+ if (L.value) {
235
+ const l = Math.round(+e || 0), t = re(I.value), o = Math.max(l, t), r = Ae(o);
236
+ ee(ft(r + 1));
237
+ } else {
238
+ let l = Math.round(+e || 0);
239
+ const t = Number(w.value) + 1, o = Math.max(t, Math.min(l, a.max));
240
+ ee(o);
241
+ }
242
+ }
243
+ }), gt = s(() => a.inputColor), xt = s(() => a.background), yt = s(() => `${a.selectColor}33`), g = s(() => a.borderColor), Be = s(() => {
244
+ const e = [];
245
+ for (let l = 0; l < a.max; l += 1)
246
+ e.push(l);
247
+ return e;
248
+ });
249
+ function Fe() {
250
+ J("reset");
251
+ }
252
+ Z(
253
+ () => a.min,
254
+ (e) => {
255
+ Number(w.value) < Number(e) && (w.value = Number(e)), Number(S.value) < Number(e) && (S.value = Number(e));
256
+ }
257
+ ), Z(
258
+ () => a.max,
259
+ (e) => {
260
+ Number(w.value) > Number(e) && (w.value = Number(e)), Number(S.value) > Number(e) && (S.value = Number(e));
261
+ }
262
+ );
263
+ const be = d(null), f = d({
264
+ width: 1,
265
+ height: 1
266
+ }), O = d(null);
267
+ lt(() => {
268
+ if (M.value) {
269
+ const e = ct(() => {
270
+ const { width: l, height: t } = _t({
271
+ chart: be.value
272
+ });
273
+ f.value.width = l, f.value.height = t - 47;
274
+ });
275
+ O.value = new ResizeObserver(e), O.value.observe(be.value);
276
+ }
277
+ }), $e(() => {
278
+ O.value && O.value.disconnect();
279
+ });
280
+ const Q = s(() => Math.max(...a.allMinimaps.map((e) => e.series.length), a.minimap.length || 0)), b = s(() => {
281
+ if (!Q.value) return 0;
282
+ const e = Math.max(1, Q.value - (a.minimapCompact ? 1 : 0));
283
+ return f.value.width / e;
284
+ }), Ie = s(() => {
285
+ const e = [];
286
+ if (Array.isArray(a.minimap) && a.minimap.length && a.minimapMerged && e.push(...a.minimap.filter(Number.isFinite)), Array.isArray(a.allMinimaps) && a.allMinimaps.length)
287
+ for (const l of a.allMinimaps)
288
+ l?.isVisible && Array.isArray(l?.series) && e.push(...l.series.filter(Number.isFinite));
289
+ return e.length ? { min: Math.min(...e), max: Math.max(...e) } : { min: 0, max: 1 };
290
+ }), z = s(() => Ie.value.min), U = s(() => Ie.value.max), Mt = s(() => z.value < 0 && U.value > 0 || U.value <= 0 ? z.value : 0), bt = s(() => Math.max(1e-9, Math.max(Math.abs(z.value), Math.abs(U.value)))), pt = s(() => z.value < 0 && U.value > 0), kt = (e) => {
291
+ const l = Math.max(1, f.value.height);
292
+ if (pt.value) {
293
+ const t = bt.value;
294
+ return (1 - (Math.max(-1, Math.min(1, e / t)) + 1) / 2) * l;
295
+ } else {
296
+ const t = Math.min(0, z.value), o = Math.max(0, U.value);
297
+ return l - (e - t) / Math.max(1e-9, o - t) * l;
298
+ }
299
+ }, De = s(() => kt(0)), ze = s(() => a.allMinimaps.length ? a.allMinimaps.filter((e) => e.type === "bar").length : 0), pe = s(() => b.value / (ze.value || 1) * 0.8);
300
+ function We(e, l, t) {
301
+ const o = pe.value, r = Math.max(1, ze.value), h = Q.value - 1;
302
+ return t === 0 ? e + o / 2 * l : t === h ? e - o / 2 * (r - l) : e - r * o / 2 + l * o;
303
+ }
304
+ function Xe(e, l) {
305
+ return [0, Q.value - 1].includes(l) ? pe.value / 2 : pe.value;
306
+ }
307
+ function wt(e, l, t) {
308
+ const o = (x, v, D) => Math.max(v, Math.min(D, x));
309
+ if (l <= 0) {
310
+ const x = Math.max(1e-9, 0 - e);
311
+ return (v) => t - (v - e) / x * t;
312
+ }
313
+ if (e >= 0) {
314
+ const x = Math.max(1e-9, l - 0);
315
+ return (v) => t - (v - 0) / x * t;
316
+ }
317
+ const h = Math.max(1e-9, Math.max(Math.abs(e), Math.abs(l)));
318
+ return (x) => (1 - (o(x / h, -1, 1) + 1) / 2) * t;
319
+ }
320
+ function He(e, l = !1) {
321
+ if (!e || !e.length)
322
+ return {
323
+ fullSet: "",
324
+ points: [],
325
+ selectionSet: "",
326
+ sliced: [],
327
+ firstPlot: null,
328
+ lastPlot: null,
329
+ hasFull: !1,
330
+ hasSelection: !1,
331
+ fullMarkers: [],
332
+ selectionMarkers: []
333
+ };
334
+ const t = Math.max(1, f.value.height), o = wt(z.value, U.value, t), r = e.length, h = Math.min(Math.max(0, I.value), Math.max(0, r - 1)), x = Math.min(r, Math.max(h + 1, X.value)), v = e.map((k, et) => {
335
+ const ce = a.cutNullValues ? k : k === null ? 0 : k, tt = Number.isFinite(ce), Ht = b.value * et + (a.minimapCompact ? 0 : b.value / 2), Gt = o(0);
336
+ return {
337
+ x: Ht,
338
+ y: tt ? o(ce) : NaN,
339
+ v: ce,
340
+ value: tt ? ce : null,
341
+ y0: Gt,
342
+ i: et
343
+ };
344
+ }), D = (k) => k >= 0 && k < v.length && Number.isFinite(v[k]?.value), H = v.filter((k) => Number.isFinite(k.value) && !D(k.i - 1) && !D(k.i + 1)), Re = H.filter((k) => k.i >= h && k.i < x), G = v.slice(h, x), Wt = v.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? it(v) : ut(v) : a.cutNullValues ? ot(v) : rt(v) : "", Xt = G.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? it(G) : ut(G) : a.cutNullValues ? ot(G) : rt(G) : "";
345
+ return {
346
+ fullSet: Wt,
347
+ points: v,
348
+ selectionSet: Xt,
349
+ sliced: G,
350
+ firstPlot: v[h] || null,
351
+ lastPlot: v[Math.max(0, x - 1)] || null,
352
+ hasFull: v.length >= 2,
353
+ hasSelection: G.length >= 2,
354
+ fullMarkers: H,
355
+ selectionMarkers: Re
356
+ };
357
+ }
358
+ const c = s(() => a.minimap.length ? He(a.minimap) : {
359
+ fullSet: "",
360
+ selectionSet: "",
361
+ sliced: [],
362
+ firstPlot: null,
363
+ lastPlot: null,
364
+ hasFull: !1,
365
+ hasSelection: !1
366
+ }), j = s(() => a.allMinimaps.length ? a.allMinimaps.map((e, l) => {
367
+ const t = He(e?.series || [], !!e.smooth), o = e?.id ?? e?.name ?? l;
368
+ return {
369
+ key: typeof o == "object" ? JSON.stringify(o) : String(o),
370
+ color: e?.color,
371
+ ...t,
372
+ isVisible: e.isVisible,
373
+ type: e.type || "line"
374
+ };
375
+ }) : []), C = s(() => {
376
+ const e = I.value, l = Math.max(e + 1, X.value);
377
+ return {
378
+ x: b.value * e + (a.minimapCompact ? 0 : b.value / 2),
379
+ width: b.value * (l - e) - b.value
380
+ };
381
+ }), E = d(a.minimapSelectedIndex);
382
+ function St(e) {
383
+ E.value = _e(a.valueStart) + e;
384
+ }
385
+ const Ct = jt(St, 60);
386
+ Z(() => a.minimapSelectedIndex, (e, l) => {
387
+ if ([null, void 0].includes(e)) {
388
+ E.value = null;
389
+ return;
390
+ }
391
+ e !== l && Ct(e);
392
+ }, { immediate: !0 });
393
+ function Pt(e) {
394
+ E.value = e;
395
+ const l = I.value, t = X.value;
396
+ e >= l && e < t && !F.value && J("trapMouse", e - l);
397
+ }
398
+ const ke = d(null), we = d(null);
399
+ function _(e) {
400
+ w.value = e, ke.value && (ke.value.value = e), J("update:start", Number(w.value));
401
+ }
402
+ function ee(e) {
403
+ S.value = e, we.value && (we.value.value = e), J("update:end", Number(S.value));
404
+ }
405
+ const Se = s(() => a.valueEnd - a.valueStart), Nt = s(() => Se.value < a.max - a.min), te = d(!1);
406
+ let Rt = d(null);
407
+ const $t = s(() => (he.value - 48) / (a.max - a.min) * Se.value), Lt = s(() => Math.max(1, he.value - Te - $t.value)), Et = s(() => Math.max(1, a.max - a.min - Se.value)), Tt = s(() => Et.value / Lt.value), Ge = d(0), Ce = d(0), Oe = d(0), Vt = d(0);
408
+ let T = null, V = null, A = null, B = null;
409
+ const Ue = d(a.min);
410
+ function Pe(e) {
411
+ if (!p.value) return a.min;
412
+ const l = p.value.getBoundingClientRect(), t = l.left + Te / 2, o = l.right - Te / 2, r = Math.max(1, o - t), x = (Math.max(t, Math.min(e, o)) - t) / r, v = Math.max(1, a.max - a.min);
413
+ return Math.round(a.min + x * v);
414
+ }
415
+ const Ze = async (e) => {
416
+ if (W.value = !0, !a.enableSelectionDrag) return;
417
+ const l = e.type === "touchstart";
418
+ l || e.stopPropagation();
419
+ const t = l && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, o = l ? t ? t.target : null : e.target;
420
+ if (!o || !(o instanceof Element) || o.classList && o.classList.contains("range-handle")) return;
421
+ te.value = !0;
422
+ const r = l ? t ? t.clientX : 0 : e.clientX;
423
+ if (Rt.value = r, Ge.value = r, a.focusOnDrag && !Nt.value && p.value) {
424
+ Ue.value = Pe(r);
425
+ const h = Math.min(0.95, Math.max(0.05, a.focusRangeRatio)), x = a.max - a.min, v = Math.max(1, Math.round(x * h)), D = Math.floor(v / 2);
426
+ let H = Ue.value - D;
427
+ H = Math.max(a.min, Math.min(H, a.max - v));
428
+ const Re = Math.min(a.max, H + v);
429
+ _(H), ee(Re), st(p.value, "mouseup"), await ve(), st(p.value, "mousedown", { clientX: r });
430
+ }
431
+ Ce.value = Number(w.value), Oe.value = Number(S.value), Vt.value = Tt.value, T = l ? "touchmove" : "mousemove", V = l ? "touchend" : "mouseup", A = l ? Bt : At, B = l ? It : Ft, window.addEventListener(T, A, { passive: !1 }), window.addEventListener(V, B);
432
+ };
433
+ function At(e) {
434
+ te.value && Ye(e.clientX);
435
+ }
436
+ function Bt(e) {
437
+ if (!te.value || !p.value) return;
438
+ const l = e.target;
439
+ if (!(l instanceof Element) || !p.value.contains(l) || l.classList && l.classList.contains("range-handle")) return;
440
+ e.preventDefault();
441
+ const t = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
442
+ t && Ye(t.clientX);
443
+ }
444
+ function Ye(e) {
445
+ if (!te.value) return;
446
+ const l = Pe(Ge.value), o = Pe(e) - l, r = Math.max(1, Oe.value - Ce.value);
447
+ let h = Math.round(Ce.value + o);
448
+ const x = a.min, v = a.max - r;
449
+ h < x && (h = x), h > v && (h = v);
450
+ const D = h + r;
451
+ _(h), ee(D);
452
+ }
453
+ function Ft() {
454
+ Je();
455
+ }
456
+ function It() {
457
+ Je();
458
+ }
459
+ function Je() {
460
+ te.value = !1, T && A && window.removeEventListener(T, A), V && B && window.removeEventListener(V, B), T = V = null, A = B = null;
461
+ }
462
+ const F = d(!1), le = d(null), ae = d(null), Ne = d(1), se = d(1), W = d(!1);
463
+ function qe() {
464
+ le.value && (Ne.value = le.value.getBoundingClientRect().width);
465
+ }
466
+ function Ke() {
467
+ ae.value && (se.value = ae.value.getBoundingClientRect().width);
468
+ }
469
+ const Qe = d(0);
470
+ function je(e) {
471
+ Qe.value = e === "start" ? 1 : 0;
472
+ }
473
+ const ne = d(!1), ie = d({
474
+ width: 0,
475
+ left: 0
476
+ });
477
+ Z([w, S], async () => {
478
+ if (await ve(), !le.value || !ae.value) {
479
+ ne.value = !1, ie.value = { width: 0, left: 0 };
480
+ return;
481
+ }
482
+ const e = le.value.getBoundingClientRect(), l = ae.value.getBoundingClientRect();
483
+ ne.value = e.x + e.width > l.x;
484
+ const t = e.x + e.width / 2, o = l.x + l.width / 2, r = e.width + l.width, h = (t + o) / 2;
485
+ ie.value = {
486
+ width: r,
487
+ left: h - r / 2
488
+ };
489
+ }), Ut(() => {
490
+ qe(), Ke();
491
+ }), Z(
492
+ () => a.labelLeft,
493
+ () => {
494
+ ve(qe);
495
+ },
496
+ { deep: !0 }
497
+ ), Z(
498
+ () => a.labelRight,
499
+ () => {
500
+ ve(Ke);
501
+ },
502
+ { deep: !0 }
503
+ ), vt({
504
+ setStartValue: _,
505
+ setEndValue: ee
506
+ }), $e(() => {
507
+ O.value && O.value.disconnect(), T && A && window.removeEventListener(T, A), V && B && window.removeEventListener(V, B), T = V = null, A = B = null;
508
+ });
509
+ const ue = s(() => Math.max(1, a.max - a.min));
510
+ function _e(e) {
511
+ const l = Math.floor(e - a.min);
512
+ return Math.min(Math.max(0, l), ue.value);
513
+ }
514
+ function Dt(e) {
515
+ const l = Math.ceil(e - a.min);
516
+ return Math.min(Math.max(0, l), ue.value);
517
+ }
518
+ const I = s(() => _e(w.value)), X = s(() => Dt(S.value)), zt = s(() => {
519
+ if (!Be.value.length) return null;
520
+ if (E.value >= I.value && E.value < X.value) {
521
+ const e = E.value;
522
+ return {
523
+ x1: b.value * e + (a.minimapCompact ? 0 : b.value / 2),
524
+ x2: b.value * e + (a.minimapCompact ? 0 : b.value / 2),
525
+ y1: 0,
526
+ y2: Math.max(f.value.height, 0),
527
+ stroke: a.minimapIndicatorColor,
528
+ "stroke-linecap": "round",
529
+ "stroke-dasharray": 2,
530
+ "stroke-width": 1
531
+ };
532
+ } else
533
+ return null;
534
+ });
535
+ return (e, l) => (u(), i("div", {
536
+ "data-dom-to-png-ignore": "",
537
+ style: { padding: "0 24px" },
538
+ class: "vue-data-ui-zoom",
539
+ ref_key: "zoomWrapper",
540
+ ref: p,
541
+ onMousedown: Ze,
542
+ onTouchstart: Ze,
543
+ onTouchend: l[11] || (l[11] = (t) => W.value = !1)
544
+ }, [
545
+ P("div", ll, [
546
+ n.valueStart !== n.refreshStartPoint || n.valueEnd !== ht.value ? (u(), i("div", al, [
547
+ n.useResetSlot ? Zt(e.$slots, "reset-action", {
548
+ key: 1,
549
+ reset: Fe
550
+ }, void 0, !0) : (u(), i("button", {
551
+ key: 0,
552
+ tabindex: "0",
553
+ role: "button",
554
+ class: "vue-data-ui-refresh-button",
555
+ style: $({
556
+ top: M.value ? "36px" : "-16px",
557
+ pointerEvents: "all !important"
558
+ }),
559
+ onClick: Fe
560
+ }, [
561
+ Yt(el, {
562
+ name: "refresh",
563
+ stroke: n.textColor
564
+ }, null, 8, ["stroke"])
565
+ ], 4))
566
+ ])) : m("", !0)
567
+ ]),
568
+ P("div", {
569
+ class: "double-range-slider",
570
+ ref_key: "minimapWrapper",
571
+ ref: be,
572
+ style: { "z-index": "0" },
573
+ onMouseenter: l[9] || (l[9] = (t) => W.value = !0),
574
+ onMouseleave: l[10] || (l[10] = (t) => W.value = !1)
575
+ }, [
576
+ M.value ? (u(), i("div", nl, [
577
+ (u(), i("svg", {
578
+ key: `mm-${n.minimapMerged ? "merged" : "split"}-${n.minimapCompact ? "compact" : "normal"}`,
579
+ xmlns: me(Qt),
580
+ viewBox: `0 0 ${Math.max(0, f.value.width)} ${Math.max(0, f.value.height)}`
581
+ }, [
582
+ P("defs", null, [
583
+ P("linearGradient", {
584
+ id: Ve.value,
585
+ x1: "0%",
586
+ y1: "0%",
587
+ x2: "0%",
588
+ y2: "100%"
589
+ }, [
590
+ P("stop", {
591
+ offset: "0%",
592
+ "stop-color": `${n.minimapLineColor}50`
593
+ }, null, 8, ol),
594
+ l[12] || (l[12] = P("stop", {
595
+ offset: "100%",
596
+ "stop-color": "transparent"
597
+ }, null, -1))
598
+ ], 8, ul)
599
+ ]),
600
+ n.minimapCompact ? (u(), i("rect", {
601
+ key: 0,
602
+ class: "vue-ui-zoom-minimap-frame",
603
+ x: 0,
604
+ y: 0,
605
+ width: f.value.width,
606
+ height: f.value.height,
607
+ fill: "none",
608
+ stroke: n.minimapFrameColor,
609
+ rx: 3
610
+ }, null, 8, rl)) : m("", !0),
611
+ n.minimapMerged ? (u(), i("path", {
612
+ key: 1,
613
+ d: `M${c.value.fullSet}`,
614
+ stroke: `${n.minimapLineColor}`,
615
+ fill: "none",
616
+ "stroke-width": "1",
617
+ "stroke-linecap": "round",
618
+ "stroke-linejoin": "round",
619
+ style: { opacity: "0.6" }
620
+ }, null, 8, sl)) : (u(), i(y, { key: 2 }, [
621
+ (u(!0), i(y, null, R(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
622
+ (u(!0), i(y, null, R(t.points, (r, h) => (u(), i(y, null, [
623
+ t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
624
+ key: 0,
625
+ x: We(r.x, o, h),
626
+ width: Xe(o, h),
627
+ y: r.v >= 0 ? r.y : r.y0,
628
+ height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
629
+ fill: t.color,
630
+ style: { opacity: "0.6" }
631
+ }, null, 8, cl)) : m("", !0)
632
+ ], 64))), 256))
633
+ ]))), 256)),
634
+ (u(!0), i(y, null, R(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
635
+ key: String(t.key)
636
+ }, [
637
+ t.isVisible ? (u(), i("path", {
638
+ key: 0,
639
+ d: `M ${t.fullSet}`,
640
+ fill: "none",
641
+ stroke: t.color,
642
+ style: { opacity: "0.6" }
643
+ }, null, 8, vl)) : m("", !0),
644
+ t.isVisible ? (u(!0), i(y, { key: 1 }, R(t.fullMarkers, (o) => (u(), i("circle", {
645
+ key: `sel-dot-under-${t.key}-${o.i}`,
646
+ cx: o.x,
647
+ cy: o.y,
648
+ r: "2",
649
+ fill: t.color,
650
+ stroke: g.value,
651
+ "stroke-width": "0.5",
652
+ style: { opacity: "0.6" }
653
+ }, null, 8, ml))), 128)) : m("", !0)
654
+ ]))), 128))
655
+ ], 64)),
656
+ P("rect", {
657
+ x: C.value.x,
658
+ width: C.value.width < 0 ? 0 : C.value.width,
659
+ height: Math.max(f.value.height, 0),
660
+ y: 0,
661
+ fill: g.value,
662
+ rx: n.minimapSelectionRadius,
663
+ stroke: "none"
664
+ }, null, 8, hl),
665
+ P("rect", {
666
+ x: C.value.x,
667
+ width: C.value.width < 0 ? 0 : C.value.width,
668
+ height: Math.max(f.value.height, 0),
669
+ y: 0,
670
+ rx: n.minimapSelectionRadius,
671
+ fill: g.value
672
+ }, null, 8, dl),
673
+ P("rect", {
674
+ x: C.value.x,
675
+ width: C.value.width < 0 ? 0 : C.value.width,
676
+ height: Math.max(f.value.height, 0),
677
+ y: 0,
678
+ fill: n.minimapSelectedColor,
679
+ rx: n.minimapSelectionRadius,
680
+ style: $({
681
+ opacity: n.minimapSelectedColorOpacity
682
+ })
683
+ }, null, 12, fl),
684
+ E.value !== null && !F.value ? (u(), i("line", Jt(qt({ key: 3 }, zt.value)), null, 16)) : m("", !0),
685
+ !n.minimapMerged && Mt.value < 0 ? (u(), i("line", {
686
+ key: 4,
687
+ class: "slicer-minimap-zero-line",
688
+ x1: 0,
689
+ x2: f.value.width,
690
+ y1: De.value,
691
+ y2: De.value,
692
+ stroke: n.minimapFrameColor,
693
+ "stroke-width": "0.5"
694
+ }, null, 8, gl)) : m("", !0),
695
+ n.minimapMerged ? (u(), i(y, { key: 5 }, [
696
+ c.value && c.value.sliced && c.value.sliced.length ? (u(), i(y, { key: 0 }, [
697
+ c.value.selectionSet ? (u(), i("path", {
698
+ key: 0,
699
+ d: `M${c.value.sliced[0].x},${Math.max(f.value.height, 0)} ${c.value.selectionSet} L${c.value.sliced[c.value.sliced.length - 1].x},${Math.max(f.value.height, 0)}Z`,
700
+ fill: `url(#${Ve.value})`,
701
+ stroke: "none",
702
+ style: { opacity: "1" }
703
+ }, null, 8, xl)) : m("", !0),
704
+ c.value.selectionSet ? (u(), i("path", {
705
+ key: 1,
706
+ d: `M ${c.value.selectionSet}`,
707
+ stroke: `${n.minimapLineColor}`,
708
+ fill: "transparent",
709
+ "stroke-width": "2",
710
+ "stroke-linecap": "round",
711
+ "stroke-linejoin": "round"
712
+ }, null, 8, yl)) : m("", !0)
713
+ ], 64)) : m("", !0)
714
+ ], 64)) : (u(), i("g", Ml, [
715
+ (u(!0), i(y, null, R(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
716
+ (u(!0), i(y, null, R(t.points, (r, h) => (u(), i(y, null, [
717
+ t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
718
+ key: 0,
719
+ x: We(r.x, o, h),
720
+ width: Xe(o, h),
721
+ y: r.v >= 0 ? r.y : r.y0,
722
+ height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
723
+ fill: t.color,
724
+ style: $({
725
+ opacity: h >= n.valueStart && h <= n.valueEnd - 1 ? 1 : 0
726
+ })
727
+ }, null, 12, bl)) : m("", !0)
728
+ ], 64))), 256))
729
+ ]))), 256)),
730
+ (u(!0), i(y, null, R(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
731
+ key: String(t.key)
732
+ }, [
733
+ t && t.hasSelection && t.selectionSet && t.isVisible ? (u(), i("path", {
734
+ key: 0,
735
+ d: `M ${t.selectionSet}`,
736
+ stroke: t.color,
737
+ fill: "transparent",
738
+ "stroke-width": "2",
739
+ "stroke-linecap": "round",
740
+ "stroke-linejoin": "round"
741
+ }, null, 8, pl)) : m("", !0)
742
+ ]))), 128))
743
+ ])),
744
+ M.value && n.minimapCompact ? (u(), i("rect", {
745
+ key: 7,
746
+ class: "vue-ui-zoom-compact-minimap-handle",
747
+ x: C.value.x - 8,
748
+ y: 0,
749
+ width: 8,
750
+ height: f.value.height,
751
+ fill: g.value,
752
+ stroke: n.textColor,
753
+ rx: 3
754
+ }, null, 8, kl)) : m("", !0),
755
+ M.value && n.minimapCompact ? (u(), i("rect", {
756
+ key: 8,
757
+ class: "vue-ui-zoom-compact-minimap-handle",
758
+ x: C.value.x + C.value.width,
759
+ y: 0,
760
+ width: 8,
761
+ height: f.value.height,
762
+ fill: g.value,
763
+ stroke: n.textColor,
764
+ rx: 3
765
+ }, null, 8, wl)) : m("", !0),
766
+ n.minimapMerged ? (u(), i(y, { key: 9 }, [
767
+ c.value && c.value.firstPlot && c.value.firstPlot.value !== null ? (u(), i("circle", {
768
+ key: 0,
769
+ cx: c.value.firstPlot.x,
770
+ cy: c.value.firstPlot.y,
771
+ "stroke-width": "0.5",
772
+ stroke: g.value,
773
+ r: "4",
774
+ fill: n.minimapLineColor
775
+ }, null, 8, Sl)) : m("", !0),
776
+ c.value && c.value.firstPlot && c.value.firstPlot.value !== null ? (u(), i("circle", {
777
+ key: 1,
778
+ cx: c.value.firstPlot.x,
779
+ cy: c.value.firstPlot.y,
780
+ r: "2",
781
+ fill: g.value
782
+ }, null, 8, Cl)) : m("", !0),
783
+ c.value && c.value.lastPlot && c.value.lastPlot.value !== null ? (u(), i("circle", {
784
+ key: 2,
785
+ cx: c.value.lastPlot.x,
786
+ cy: c.value.lastPlot.y,
787
+ "stroke-width": "0.5",
788
+ stroke: g.value,
789
+ r: "4",
790
+ fill: n.minimapLineColor
791
+ }, null, 8, Pl)) : m("", !0),
792
+ c.value && c.value.lastPlot && c.value.lastPlot.value !== null ? (u(), i("circle", {
793
+ key: 3,
794
+ cx: c.value.lastPlot.x,
795
+ cy: c.value.lastPlot.y,
796
+ r: "2",
797
+ fill: g.value
798
+ }, null, 8, Nl)) : m("", !0)
799
+ ], 64)) : (u(), i("g", Rl, [
800
+ (u(!0), i(y, null, R(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
801
+ key: String(t.key)
802
+ }, [
803
+ t.isVisible ? (u(!0), i(y, { key: 0 }, R(t.selectionMarkers, (o) => (u(), i("circle", {
804
+ key: `sel-dot-${t.key}-${o.i}`,
805
+ cx: o.x,
806
+ cy: o.y,
807
+ r: "2.5",
808
+ fill: t.color,
809
+ stroke: g.value,
810
+ "stroke-width": "0.5"
811
+ }, null, 8, $l))), 128)) : m("", !0),
812
+ t && t.firstPlot && t.isVisible && t.firstPlot.value !== null ? (u(), i("circle", {
813
+ key: 1,
814
+ cx: t.firstPlot.x,
815
+ cy: t.firstPlot.y,
816
+ "stroke-width": "0.5",
817
+ stroke: g.value,
818
+ r: "4",
819
+ fill: t.color
820
+ }, null, 8, Ll)) : m("", !0),
821
+ t && t.firstPlot && t.isVisible && t.firstPlot.value !== null ? (u(), i("circle", {
822
+ key: 2,
823
+ cx: t.firstPlot.x,
824
+ cy: t.firstPlot.y,
825
+ r: "2",
826
+ fill: g.value
827
+ }, null, 8, El)) : m("", !0),
828
+ t && t.lastPlot && t.isVisible && t.lastPlot.value !== null ? (u(), i("circle", {
829
+ key: 3,
830
+ cx: t.lastPlot.x,
831
+ cy: t.lastPlot.y,
832
+ "stroke-width": "0.5",
833
+ stroke: g.value,
834
+ r: "4",
835
+ fill: t.color
836
+ }, null, 8, Tl)) : m("", !0),
837
+ t && t.lastPlot && t.isVisible && t.lastPlot.value !== null ? (u(), i("circle", {
838
+ key: 4,
839
+ cx: t.lastPlot.x,
840
+ cy: t.lastPlot.y,
841
+ r: "2",
842
+ fill: g.value
843
+ }, null, 8, Vl)) : m("", !0)
844
+ ]))), 128))
845
+ ])),
846
+ (u(!0), i(y, null, R(Be.value, (t, o) => (u(), i("rect", {
847
+ y: 0,
848
+ height: Math.max(f.value.height, 0),
849
+ fill: "transparent",
850
+ style: $([{ "pointer-events": "all !important" }, {
851
+ cursor: t >= I.value && t < X.value && n.enableSelectionDrag ? F.value ? "grabbing" : "grab" : "default"
852
+ }]),
853
+ x: b.value * o - (n.minimapCompact ? b.value / 2 : 0),
854
+ width: b.value < 0 ? 0 : b.value,
855
+ onMousedown: l[0] || (l[0] = (r) => F.value = !0),
856
+ onMouseup: l[1] || (l[1] = (r) => F.value = !1),
857
+ onMouseenter: (r) => Pt(t),
858
+ onMouseleave: l[2] || (l[2] = (r) => {
859
+ E.value = null, J("trapMouse", null);
860
+ })
861
+ }, null, 44, Al))), 256))
862
+ ], 8, il))
863
+ ])) : m("", !0),
864
+ P("div", {
865
+ class: "slider-track",
866
+ style: $({ visibility: M.value && n.minimapCompact ? "hidden" : "visible" })
867
+ }, null, 4),
868
+ P("div", {
869
+ class: Y({
870
+ "range-highlight": !0,
871
+ move: n.enableSelectionDrag
872
+ }),
873
+ onMousedown: l[3] || (l[3] = (t) => F.value = !0),
874
+ onMouseup: l[4] || (l[4] = (t) => F.value = !1),
875
+ style: $({
876
+ ...N.value,
877
+ cursor: F.value ? "grabbing" : "grab",
878
+ visibility: M.value && n.minimapCompact ? "hidden" : "visible"
879
+ })
880
+ }, null, 38),
881
+ n.enableRangeHandles ? at((u(), i("input", {
882
+ key: 1,
883
+ ref_key: "rangeStart",
884
+ ref: ke,
885
+ type: "range",
886
+ class: Y({
887
+ "range-left": !0,
888
+ "range-handle": !0,
889
+ "range-minimap": M.value && n.verticalHandles,
890
+ "range-invisible": M.value && n.minimapCompact
891
+ }),
892
+ min: n.min,
893
+ max: L.value && n.minimapCompact ? K.value : n.max,
894
+ step: 1,
895
+ "onUpdate:modelValue": l[5] || (l[5] = (t) => ye.value = t),
896
+ onMouseenter: l[6] || (l[6] = (t) => je("start"))
897
+ }, null, 42, Bl)), [
898
+ [
899
+ nt,
900
+ ye.value,
901
+ void 0,
902
+ { number: !0 }
903
+ ]
904
+ ]) : m("", !0),
905
+ n.enableRangeHandles ? at((u(), i("input", {
906
+ key: 2,
907
+ ref_key: "rangeEnd",
908
+ ref: we,
909
+ type: "range",
910
+ class: Y({
911
+ "range-right": !0,
912
+ "range-handle": !0,
913
+ "range-minimap": M.value && n.verticalHandles,
914
+ "range-invisible": M.value && n.minimapCompact
915
+ }),
916
+ min: n.min,
917
+ max: L.value && n.minimapCompact ? K.value : n.max,
918
+ step: 1,
919
+ "onUpdate:modelValue": l[7] || (l[7] = (t) => Me.value = t),
920
+ onMouseenter: l[8] || (l[8] = (t) => je("end"))
921
+ }, null, 42, Fl)), [
922
+ [
923
+ nt,
924
+ Me.value,
925
+ void 0,
926
+ { number: !0 }
927
+ ]
928
+ ]) : m("", !0),
929
+ n.labelLeft ? (u(), i("div", {
930
+ key: 3,
931
+ ref_key: "tooltipLeft",
932
+ ref: le,
933
+ class: Y({
934
+ "range-tooltip": !0,
935
+ "range-tooltip-visible": W.value,
936
+ "range-tooltip-arrow": N.value.arrowLeft && !n.verticalHandles,
937
+ "range-tooltip-arrow-left": !N.value.arrowLeft && !n.verticalHandles
938
+ }),
939
+ style: $({
940
+ left: N.value.tooltipLeft,
941
+ color: me(Ee)(n.selectColor),
942
+ backgroundColor: n.selectColor,
943
+ border: `1px solid ${g.value}`,
944
+ zIndex: `${Qe.value + 4}`,
945
+ visibility: ne.value || n.labelLeft === n.labelRight ? "hidden" : "visible",
946
+ top: M.value && n.minimapCompact ? "calc(-100% - 18px)" : "-100%"
947
+ })
948
+ }, Le(n.labelLeft), 7)) : m("", !0),
949
+ (ne.value || n.labelLeft === n.labelRight) && (n.labelLeft || n.labelRight) ? (u(), i("div", {
950
+ key: 4,
951
+ ref: "tooltipMerge",
952
+ class: Y({
953
+ "range-tooltip": !0,
954
+ "range-tooltip-visible": W.value,
955
+ "range-tooltip-arrow": !0,
956
+ "range-tooltip-arrow-left": !N.value.arrowLeft && !n.verticalHandles,
957
+ "range-tooltip-arrow-right": !N.value.arrowRight && !n.verticalHandles
958
+ }),
959
+ style: $({
960
+ left: N.value.tooltipCenter,
961
+ width: ie.value.width + "px",
962
+ color: me(Ee)(n.selectColor),
963
+ backgroundColor: n.selectColor,
964
+ border: `1px solid ${g.value}`,
965
+ zIndex: "4",
966
+ top: M.value && n.minimapCompact ? "calc(-100% - 18px)" : "-100%"
967
+ })
968
+ }, Le(n.labelLeft === n.labelRight ? n.labelLeft : `${n.labelLeft} - ${n.labelRight}`), 7)) : m("", !0),
969
+ n.labelRight ? (u(), i("div", {
970
+ key: 5,
971
+ ref_key: "tooltipRight",
972
+ ref: ae,
973
+ class: Y({
974
+ "range-tooltip": !0,
975
+ "range-tooltip-visible": W.value,
976
+ "range-tooltip-arrow": N.value.arrowRight && !n.verticalHandles,
977
+ "range-tooltip-arrow-right": !N.value.arrowRight && !n.verticalHandles
978
+ }),
979
+ style: $({
980
+ left: N.value.tooltipRight,
981
+ color: me(Ee)(n.selectColor),
982
+ backgroundColor: n.selectColor,
983
+ border: `1px solid ${g.value}`,
984
+ zIndex: "4",
985
+ visibility: ne.value || n.labelLeft === n.labelRight ? "hidden" : "visible",
986
+ top: M.value && n.minimapCompact ? "calc(-100% - 18px)" : "-100%"
987
+ })
988
+ }, Le(n.labelRight), 7)) : m("", !0)
989
+ ], 544)
990
+ ], 544));
991
+ }
992
+ }, Gl = /* @__PURE__ */ tl(Il, [["__scopeId", "data-v-34d41da4"]]);
993
+ export {
994
+ Gl as S
995
+ };