vue-data-ui 3.1.9 → 3.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd2Nv1JR.js → Arrow-CFqqlnrM.js} +1 -1
- package/dist/{BaseDraggableDialog-DnDgu3fu.js → BaseDraggableDialog-DaoUhyXv.js} +2 -2
- package/dist/{BaseIcon-ClWpJKO3.js → BaseIcon-BNwyRcFi.js} +8 -7
- package/dist/{ColorPicker-CGqCY0f7.js → ColorPicker-CCDghcL_.js} +2 -2
- package/dist/{DataTable-BeFHXTQb.js → DataTable-i6SuA55J.js} +2 -2
- package/dist/{Legend-D_ryPoDQ.js → Legend-SKqDy1gS.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C0fUFsd1.js → NonSvgPenAndPaper-qyGnSyvC.js} +3 -3
- package/dist/{PackageVersion-nvqupdcz.js → PackageVersion-ybAEJLG7.js} +1 -1
- package/dist/{PenAndPaper-CdK_W5h2.js → PenAndPaper-DDBikbi2.js} +3 -3
- package/dist/{Shape-g1_KwK3i.js → Shape-BjFZpeHY.js} +1 -1
- package/dist/{Slicer-BbsnAAIT.js → Slicer-BHmT0yAl.js} +195 -195
- package/dist/{SparkTooltip-BJY8zi7K.js → SparkTooltip-CDYMoiKx.js} +1 -1
- package/dist/{Title-DCLc6TCZ.js → Title-Cuz9tE8Z.js} +1 -1
- package/dist/{Tooltip-DI84H3Yz.js → Tooltip-CzMk3xqn.js} +1 -1
- package/dist/{UserOptions-2XI1AOh5.js → UserOptions-1SNweLDC.js} +2 -2
- package/dist/{dom-to-png-BbsbFKuu.js → dom-to-png-B-oEiNKy.js} +1 -1
- package/dist/{img-DQnzQcOw.js → img-O4yv-68E.js} +1 -1
- package/dist/{index-5vhIMiMJ.js → index-CUHa1rnE.js} +1 -1
- package/dist/{pdf-BbD1z_VM.js → pdf-ubyH-SWK.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -1
- package/dist/types/vue-data-ui.d.ts +2 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-lO6KBU08.js → useAutoSizeLabelsInsideViewbox-dxhIPVQp.js} +1 -1
- package/dist/{useNestedProp-BBcJUXV-.js → useNestedProp-BI65hZqY.js} +1 -1
- package/dist/{usePrinter-BxQRVOJV.js → usePrinter-C34C5HuI.js} +2 -2
- package/dist/{vue-data-ui-CBSwx9_2.js → vue-data-ui-B5GGY8uZ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DrVQXElH.js → vue-ui-3d-bar-CXK2mPP1.js} +6 -6
- package/dist/{vue-ui-accordion-CWkuC41h.js → vue-ui-accordion-DV3dB5Vt.js} +3 -3
- package/dist/{vue-ui-age-pyramid-hfNlu-eT.js → vue-ui-age-pyramid-BeLV24oy.js} +6 -6
- package/dist/{vue-ui-annotator-BdW7stIX.js → vue-ui-annotator-DE8wmV9X.js} +2 -2
- package/dist/{vue-ui-bullet-DH55M9hd.js → vue-ui-bullet-B8MGNXu_.js} +7 -7
- package/dist/{vue-ui-candlestick-BdCIu_3Z.js → vue-ui-candlestick-Di-SVMyV.js} +7 -7
- package/dist/{vue-ui-carousel-table-CYFqd5Do.js → vue-ui-carousel-table-DfgC0-Nx.js} +4 -4
- package/dist/{vue-ui-chestnut-BAXJvE_P.js → vue-ui-chestnut-lBARfeQM.js} +5 -5
- package/dist/{vue-ui-chord-CZvpyXPS.js → vue-ui-chord-D-bsMDsI.js} +8 -8
- package/dist/{vue-ui-circle-pack-DIrNW31y.js → vue-ui-circle-pack-DGkT5xMh.js} +6 -6
- package/dist/{vue-ui-cursor-DB5jBNc-.js → vue-ui-cursor-BVHNt_Ng.js} +2 -2
- package/dist/{vue-ui-dashboard-NIsI1tyR.js → vue-ui-dashboard-DEBpYnDq.js} +67 -67
- package/dist/{vue-ui-digits-D1E8vS1U.js → vue-ui-digits-U4sxi5jK.js} +2 -2
- package/dist/{vue-ui-donut-Dcc640KU.js → vue-ui-donut-BE3-IWza.js} +8 -8
- package/dist/{vue-ui-donut-evolution-FvABIk1B.js → vue-ui-donut-evolution-D7MQyuaS.js} +8 -8
- package/dist/{vue-ui-dumbbell-DwR1pCUC.js → vue-ui-dumbbell-BrzGWK7r.js} +7 -7
- package/dist/{vue-ui-flow-DAm9A_0v.js → vue-ui-flow-BbD6gzpE.js} +7 -7
- package/dist/{vue-ui-funnel-CBzrS5BO.js → vue-ui-funnel-Oytdvn2D.js} +6 -6
- package/dist/{vue-ui-galaxy-IJ_oreeF.js → vue-ui-galaxy-CuMC-W8t.js} +7 -7
- package/dist/{vue-ui-gauge-o72yvW6N.js → vue-ui-gauge-BeV6uj4d.js} +7 -7
- package/dist/{vue-ui-gizmo-DfyGDDpf.js → vue-ui-gizmo-CVp0dL5m.js} +3 -3
- package/dist/{vue-ui-heatmap-BGCYDLeT.js → vue-ui-heatmap-CVfH03pI.js} +7 -7
- package/dist/{vue-ui-history-plot-WM4e1JlT.js → vue-ui-history-plot-O4eXAAVL.js} +7 -7
- package/dist/{vue-ui-kpi-BcDpOVCW.js → vue-ui-kpi-C-56W27h.js} +3 -3
- package/dist/{vue-ui-mini-loader-pv8BRyQQ.js → vue-ui-mini-loader-C6EfeHr3.js} +2 -2
- package/dist/{vue-ui-molecule-D7oF0j_4.js → vue-ui-molecule-DkfKAmEy.js} +5 -5
- package/dist/{vue-ui-mood-radar-iPbyJzps.js → vue-ui-mood-radar-qzf3YS1D.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BLceuaiq.js → vue-ui-nested-donuts-qRBde3ef.js} +7 -7
- package/dist/{vue-ui-onion-Dnf_fWQJ.js → vue-ui-onion-CDIwmczc.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DgqvrE6i.js → vue-ui-parallel-coordinate-plot-2qYx_7aY.js} +8 -8
- package/dist/{vue-ui-quadrant-B7_t3c1D.js → vue-ui-quadrant-u_Utp2Fq.js} +8 -8
- package/dist/{vue-ui-quick-chart-QBNsaoSx.js → vue-ui-quick-chart-BzUo2RV6.js} +6 -6
- package/dist/{vue-ui-radar-B5LY3bFz.js → vue-ui-radar-D-B8r-nf.js} +8 -8
- package/dist/{vue-ui-rating-M2LsJhF9.js → vue-ui-rating-CEUsbt4_.js} +2 -2
- package/dist/{vue-ui-relation-circle-BDgDf-UH.js → vue-ui-relation-circle-B6sJBAzs.js} +7 -7
- package/dist/{vue-ui-ridgeline-CF8EGKmN.js → vue-ui-ridgeline-BteCVeFC.js} +8 -8
- package/dist/{vue-ui-rings-CEf32Qd9.js → vue-ui-rings-CFh97maF.js} +8 -8
- package/dist/{vue-ui-scatter-B1Aafuh6.js → vue-ui-scatter-C6VU6SQk.js} +8 -8
- package/dist/{vue-ui-skeleton-DCf8RHTA.js → vue-ui-skeleton-h-gregQy.js} +3 -3
- package/dist/{vue-ui-smiley-D9TyN2I4.js → vue-ui-smiley-Coy_k4yC.js} +2 -2
- package/dist/{vue-ui-spark-trend-DcZNamSY.js → vue-ui-spark-trend-njuc_Hat.js} +3 -3
- package/dist/{vue-ui-sparkbar-CNmySZRR.js → vue-ui-sparkbar-DI3hhJ3x.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Du3pqhHb.js → vue-ui-sparkgauge-D6hQixh0.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DY33-6pA.js → vue-ui-sparkhistogram-Dv8CiZia.js} +4 -4
- package/dist/{vue-ui-sparkline-DQO2IGma.js → vue-ui-sparkline-BIUzJPmY.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BHgX0FAK.js → vue-ui-sparkstackbar-Cdc5964Q.js} +3 -3
- package/dist/{vue-ui-stackbar-DTvmplPR.js → vue-ui-stackbar-DvBTM4pm.js} +9 -9
- package/dist/{vue-ui-strip-plot-CH3BNHOX.js → vue-ui-strip-plot-qxut93FA.js} +7 -7
- package/dist/{vue-ui-table-DmOi42QJ.js → vue-ui-table-CHrmN7Oo.js} +4 -4
- package/dist/{vue-ui-table-heatmap-D0XRMZEF.js → vue-ui-table-heatmap-BG6ioJSC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-SjzOqua1.js → vue-ui-table-sparkline-CSkOCGgA.js} +4 -4
- package/dist/{vue-ui-thermometer-Dkb9wTy_.js → vue-ui-thermometer-ClKy8a8O.js} +7 -7
- package/dist/{vue-ui-timer-CeCAWDqf.js → vue-ui-timer-BpTShWjZ.js} +5 -5
- package/dist/{vue-ui-tiremarks-B9XkzHFy.js → vue-ui-tiremarks-CH48OzV3.js} +6 -6
- package/dist/{vue-ui-treemap-BCcXO9kM.js → vue-ui-treemap-DP9s7qNT.js} +8 -8
- package/dist/{vue-ui-vertical-bar-CRtBBzYM.js → vue-ui-vertical-bar-CqjVuwTE.js} +9 -9
- package/dist/{vue-ui-waffle-DSNBPqTC.js → vue-ui-waffle-Dm8IowIh.js} +8 -8
- package/dist/{vue-ui-wheel-BXQK9I22.js → vue-ui-wheel-CC9Rn0jk.js} +6 -6
- package/dist/{vue-ui-word-cloud-YLIzbhcv.js → vue-ui-word-cloud-jP8Uz38i.js} +6 -6
- package/dist/{vue-ui-world-eCTtZria.js → vue-ui-world-CbIdf6nN.js} +6 -6
- package/dist/vue-ui-xy-BWRFJFy2.js +4530 -0
- package/dist/{vue-ui-xy-canvas-D_rqJLcT.js → vue-ui-xy-canvas-DjOXF2lr.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-ui-xy-C7u7xEoN.js +0 -4507
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { useCssVars as Xt, computed as s, ref as m, onMounted as tt, onBeforeUnmount as Pe, watch as U, nextTick as Ne, onUpdated as Gt, createElementBlock as i, openBlock as u, createElementVNode as C, createCommentVNode as v, renderSlot as Ot, normalizeStyle as R, createVNode as Ut, withDirectives as lt, unref as me, Fragment as g, renderList as N, normalizeProps as Zt, mergeProps as Yt, normalizeClass as Z, vModelText as at, toDisplayString as $e } from "vue";
|
|
2
|
+
import { c as Jt, X as qt, F as Le, $ as nt, V as it, a0 as ut, U as ot } from "./index-CUHa1rnE.js";
|
|
3
|
+
import { t as rt, d as Kt, u as Qt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import jt from "./BaseIcon-BNwyRcFi.js";
|
|
5
|
+
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const el = {
|
|
7
7
|
class: "vue-data-ui-slicer-labels",
|
|
8
8
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
9
|
-
},
|
|
9
|
+
}, tl = {
|
|
10
10
|
key: 0,
|
|
11
11
|
style: { width: "100%", position: "relative" }
|
|
12
|
-
},
|
|
12
|
+
}, ll = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "minimap",
|
|
15
15
|
style: { width: "100%" }
|
|
16
|
-
},
|
|
16
|
+
}, al = ["xmlns", "viewBox"], nl = ["id"], il = ["stop-color"], ul = ["width", "height", "stroke"], ol = ["d", "stroke"], rl = ["x", "width", "y", "height", "fill"], sl = ["d", "stroke"], cl = ["cx", "cy", "fill", "stroke"], vl = ["x", "width", "height", "fill", "rx"], ml = ["x", "width", "height", "rx", "fill"], hl = ["x", "width", "height", "fill", "rx"], dl = ["x2", "y1", "y2", "stroke"], fl = ["d", "fill"], gl = ["d", "stroke"], yl = { key: 6 }, xl = ["x", "width", "y", "height", "fill"], bl = ["d", "stroke"], Ml = ["x", "height", "fill", "stroke"], kl = ["x", "height", "fill", "stroke"], pl = ["cx", "cy", "stroke", "fill"], wl = ["cx", "cy", "fill"], Sl = ["cx", "cy", "stroke", "fill"], Cl = ["cx", "cy", "fill"], Pl = { key: 10 }, Nl = ["cx", "cy", "fill", "stroke"], $l = ["cx", "cy", "stroke", "fill"], Ll = ["cx", "cy", "fill"], Rl = ["cx", "cy", "stroke", "fill"], El = ["cx", "cy", "fill"], Tl = ["height", "x", "width", "onMouseenter"], Vl = ["min", "max"], Fl = ["min", "max"], Al = 48, Bl = {
|
|
17
17
|
__name: "Slicer",
|
|
18
18
|
props: {
|
|
19
19
|
background: {
|
|
@@ -144,101 +144,101 @@ const _t = {
|
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
emits: ["update:start", "update:end", "reset", "trapMouse"],
|
|
147
|
-
setup(a, { expose:
|
|
148
|
-
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
"
|
|
152
|
-
|
|
153
|
-
"
|
|
147
|
+
setup(a, { expose: st, emit: ct }) {
|
|
148
|
+
Xt((e) => ({
|
|
149
|
+
"070bc632": dt.value,
|
|
150
|
+
c1fd62b4: d.value,
|
|
151
|
+
"1f6bc797": gt.value,
|
|
152
|
+
"7f368fd6": a.selectColor,
|
|
153
|
+
"5359c138": ft.value
|
|
154
154
|
}));
|
|
155
|
-
const n = a, $ = m(null), k = m(n.min), p = m(n.max), y = s(() => !!n.minimap.length),
|
|
156
|
-
|
|
155
|
+
const n = a, $ = m(null), k = m(n.min), p = m(n.max), y = s(() => !!n.minimap.length), Re = m(Jt()), E = s(() => y.value && n.minimapCompact), he = m(0);
|
|
156
|
+
tt(() => {
|
|
157
157
|
const e = () => {
|
|
158
|
-
$.value && (
|
|
158
|
+
$.value && (he.value = $.value.getBoundingClientRect().width);
|
|
159
159
|
};
|
|
160
160
|
e();
|
|
161
|
-
const l =
|
|
162
|
-
window.addEventListener("resize", l),
|
|
161
|
+
const l = rt(e, 50);
|
|
162
|
+
window.addEventListener("resize", l), Pe(() => {
|
|
163
163
|
window.removeEventListener("resize", l);
|
|
164
164
|
});
|
|
165
165
|
});
|
|
166
|
-
const
|
|
166
|
+
const vt = s(() => n.refreshEndPoint === null ? n.max : n.refreshEndPoint), Y = ct, J = s(() => {
|
|
167
167
|
if (E.value) {
|
|
168
168
|
const l = Math.max(1, ne.value - 1);
|
|
169
|
-
return
|
|
169
|
+
return xe.value / l * 100;
|
|
170
170
|
}
|
|
171
171
|
const e = Math.max(1, n.max - n.min);
|
|
172
172
|
return (k.value - n.min) / e * 100;
|
|
173
173
|
}), ie = s(() => {
|
|
174
174
|
if (E.value) {
|
|
175
175
|
const l = Math.max(1, ne.value - 1);
|
|
176
|
-
return
|
|
176
|
+
return be.value / l * 100;
|
|
177
177
|
}
|
|
178
178
|
const e = Math.max(1, n.max - n.min);
|
|
179
179
|
return (p.value - n.min) / e * 100;
|
|
180
|
-
}),
|
|
180
|
+
}), de = s(() => (J.value + ie.value) / 2), fe = s(() => {
|
|
181
181
|
if (!$.value) return !1;
|
|
182
182
|
const e = $.value.getBoundingClientRect().width;
|
|
183
|
-
return J.value / 100 * e -
|
|
184
|
-
}),
|
|
183
|
+
return J.value / 100 * e - Se.value / 2 < 0;
|
|
184
|
+
}), ge = s(() => {
|
|
185
185
|
if (!$.value) return !1;
|
|
186
186
|
const e = $.value.getBoundingClientRect().width;
|
|
187
187
|
return ie.value / 100 * e + ce.value / 2 > e;
|
|
188
188
|
}), P = s(() => {
|
|
189
|
-
const e =
|
|
189
|
+
const e = ge.value ? `calc(${de.value}% - ${ae.value.width}px - 2px)` : fe.value ? `calc(${de.value}% - 8px)` : `calc(${de.value}% - ${ae.value.width / 2}px - 4px)`;
|
|
190
190
|
return {
|
|
191
191
|
left: `${J.value}%`,
|
|
192
192
|
width: `${Math.max(0, ie.value - J.value)}%`,
|
|
193
193
|
background: n.selectColor,
|
|
194
|
-
tooltipLeft: `calc(${J.value}% - ${
|
|
195
|
-
tooltipRight: `calc(${ie.value}% - ${
|
|
194
|
+
tooltipLeft: `calc(${J.value}% - ${fe.value ? 9 : Se.value / 2 + 3.5}px)`,
|
|
195
|
+
tooltipRight: `calc(${ie.value}% - ${ge.value ? ce.value - 9 : ce.value / 2 - 3.5}px)`,
|
|
196
196
|
tooltipCenter: e,
|
|
197
|
-
arrowLeft: !
|
|
198
|
-
arrowRight: !
|
|
197
|
+
arrowLeft: !fe.value,
|
|
198
|
+
arrowRight: !ge.value
|
|
199
199
|
};
|
|
200
|
-
}), q = s(() => Math.max(0, (K.value || 1) - 1)),
|
|
200
|
+
}), q = s(() => Math.max(0, (K.value || 1) - 1)), ye = s(() => Math.max(0, (ne.value || 1) - 1));
|
|
201
201
|
function ue(e) {
|
|
202
|
-
return
|
|
202
|
+
return ye.value === 0 ? 0 : Math.round(e / ye.value * q.value);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
return q.value === 0 ? 0 : Math.round(e / q.value *
|
|
204
|
+
function Ee(e) {
|
|
205
|
+
return q.value === 0 ? 0 : Math.round(e / q.value * ye.value);
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const mt = (e) => Math.floor(n.min + e), ht = (e) => Math.ceil(n.min + e), xe = s({
|
|
208
208
|
get() {
|
|
209
209
|
return E.value ? ue(D.value) : Number(k.value);
|
|
210
210
|
},
|
|
211
211
|
set(e) {
|
|
212
212
|
if (E.value) {
|
|
213
|
-
const l = Math.round(+e || 0), t = Math.max(0, ue(Math.max(0, W.value - 1))), o = Math.min(Math.max(0, l), t), r =
|
|
214
|
-
oe(
|
|
213
|
+
const l = Math.round(+e || 0), t = Math.max(0, ue(Math.max(0, W.value - 1))), o = Math.min(Math.max(0, l), t), r = Ee(o);
|
|
214
|
+
oe(mt(r));
|
|
215
215
|
} else {
|
|
216
216
|
let l = Math.round(+e || 0);
|
|
217
217
|
const t = Number(p.value) - 1, o = Math.min(Math.max(n.min, l), t);
|
|
218
218
|
oe(o);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
}),
|
|
221
|
+
}), be = s({
|
|
222
222
|
get() {
|
|
223
223
|
return E.value ? ue(Math.max(D.value, W.value - 1)) : Number(p.value);
|
|
224
224
|
},
|
|
225
225
|
set(e) {
|
|
226
226
|
if (E.value) {
|
|
227
|
-
const l = Math.round(+e || 0), t = ue(D.value), o = Math.max(l, t), r =
|
|
228
|
-
re(
|
|
227
|
+
const l = Math.round(+e || 0), t = ue(D.value), o = Math.max(l, t), r = Ee(o);
|
|
228
|
+
re(ht(r + 1));
|
|
229
229
|
} else {
|
|
230
230
|
let l = Math.round(+e || 0);
|
|
231
231
|
const t = Number(k.value) + 1, o = Math.max(t, Math.min(l, n.max));
|
|
232
232
|
re(o);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
}),
|
|
235
|
+
}), dt = s(() => n.inputColor), ft = s(() => n.background), gt = s(() => `${n.selectColor}33`), d = s(() => n.borderColor), Te = s(() => {
|
|
236
236
|
const e = [];
|
|
237
237
|
for (let l = 0; l < n.max; l += 1)
|
|
238
238
|
e.push(l);
|
|
239
239
|
return e;
|
|
240
240
|
});
|
|
241
|
-
function
|
|
241
|
+
function Ve() {
|
|
242
242
|
Y("reset");
|
|
243
243
|
}
|
|
244
244
|
U(
|
|
@@ -252,21 +252,21 @@ const _t = {
|
|
|
252
252
|
Number(k.value) > Number(e) && (k.value = Number(e)), Number(p.value) > Number(e) && (p.value = Number(e));
|
|
253
253
|
}
|
|
254
254
|
);
|
|
255
|
-
const
|
|
255
|
+
const Me = m(null), h = m({
|
|
256
256
|
width: 1,
|
|
257
257
|
height: 1
|
|
258
258
|
}), X = m(null);
|
|
259
|
-
|
|
259
|
+
tt(() => {
|
|
260
260
|
if (y.value) {
|
|
261
|
-
const e =
|
|
262
|
-
const { width: l, height: t } =
|
|
263
|
-
chart:
|
|
261
|
+
const e = rt(() => {
|
|
262
|
+
const { width: l, height: t } = Qt({
|
|
263
|
+
chart: Me.value
|
|
264
264
|
});
|
|
265
265
|
h.value.width = l, h.value.height = t - 47;
|
|
266
266
|
});
|
|
267
|
-
X.value = new ResizeObserver(e), X.value.observe(
|
|
267
|
+
X.value = new ResizeObserver(e), X.value.observe(Me.value);
|
|
268
268
|
}
|
|
269
|
-
}),
|
|
269
|
+
}), Pe(() => {
|
|
270
270
|
X.value && X.value.disconnect();
|
|
271
271
|
});
|
|
272
272
|
const K = s(() => Math.max(...n.allMinimaps.map((e) => e.series.length), n.minimap.length || 0)), x = s(() => {
|
|
@@ -279,24 +279,24 @@ const _t = {
|
|
|
279
279
|
for (const l of n.allMinimaps)
|
|
280
280
|
l?.isVisible && Array.isArray(l?.series) && e.push(...l.series.filter(Number.isFinite));
|
|
281
281
|
return e.length ? { min: Math.min(...e), max: Math.max(...e) } : { min: 0, max: 1 };
|
|
282
|
-
}), G = s(() => Fe.value.min), Q = s(() => Fe.value.max),
|
|
282
|
+
}), G = s(() => Fe.value.min), Q = s(() => Fe.value.max), yt = s(() => G.value < 0 && Q.value > 0 || Q.value <= 0 ? G.value : 0), xt = s(() => Math.max(1e-9, Math.max(Math.abs(G.value), Math.abs(Q.value)))), bt = s(() => G.value < 0 && Q.value > 0), Mt = (e) => {
|
|
283
283
|
const l = Math.max(1, h.value.height);
|
|
284
|
-
if (
|
|
285
|
-
const t =
|
|
284
|
+
if (bt.value) {
|
|
285
|
+
const t = xt.value;
|
|
286
286
|
return (1 - (Math.max(-1, Math.min(1, e / t)) + 1) / 2) * l;
|
|
287
287
|
} else {
|
|
288
288
|
const t = Math.min(0, G.value), o = Math.max(0, Q.value);
|
|
289
289
|
return l - (e - t) / Math.max(1e-9, o - t) * l;
|
|
290
290
|
}
|
|
291
|
-
},
|
|
292
|
-
function
|
|
293
|
-
const o =
|
|
291
|
+
}, Ae = s(() => Mt(0)), Be = s(() => n.allMinimaps.length ? n.allMinimaps.filter((e) => e.type === "bar").length : 0), ke = s(() => x.value / (Be.value || 1) * 0.8);
|
|
292
|
+
function ze(e, l, t) {
|
|
293
|
+
const o = ke.value, r = Math.max(1, Be.value), f = K.value - 1;
|
|
294
294
|
return t === 0 ? e + o / 2 * l : t === f ? e - o / 2 * (r - l) : e - r * o / 2 + l * o;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
return [0, K.value - 1].includes(l) ?
|
|
296
|
+
function De(e, l) {
|
|
297
|
+
return [0, K.value - 1].includes(l) ? ke.value / 2 : ke.value;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function kt(e, l, t) {
|
|
300
300
|
const o = (S, L, O) => Math.max(L, Math.min(O, S));
|
|
301
301
|
if (l <= 0) {
|
|
302
302
|
const S = Math.max(1e-9, 0 - e);
|
|
@@ -309,7 +309,7 @@ const _t = {
|
|
|
309
309
|
const f = Math.max(1e-9, Math.max(Math.abs(e), Math.abs(l)));
|
|
310
310
|
return (S) => (1 - (o(S / f, -1, 1) + 1) / 2) * t;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Ie(e, l = !1) {
|
|
313
313
|
if (!e || !e.length)
|
|
314
314
|
return {
|
|
315
315
|
fullSet: "",
|
|
@@ -323,31 +323,31 @@ const _t = {
|
|
|
323
323
|
fullMarkers: [],
|
|
324
324
|
selectionMarkers: []
|
|
325
325
|
};
|
|
326
|
-
const t = Math.max(1, h.value.height), o = e.filter(Number.isFinite), r = o.length ? Math.min(...o) : 0, f = o.length ? Math.max(...o) : 0, S =
|
|
327
|
-
const
|
|
326
|
+
const t = Math.max(1, h.value.height), o = e.filter(Number.isFinite), r = o.length ? Math.min(...o) : 0, f = o.length ? Math.max(...o) : 0, S = kt(r, f, t), L = e.length, O = Math.min(Math.max(0, D.value), Math.max(0, L - 1)), Ce = Math.min(L, Math.max(O + 1, W.value)), M = e.map((b, _e) => {
|
|
327
|
+
const ve = n.cutNullValues ? b : b === null ? 0 : b, et = Number.isFinite(ve), Wt = x.value * _e + (n.minimapCompact ? 0 : x.value / 2), Ht = (r < 0 && f > 0, S(0));
|
|
328
328
|
return {
|
|
329
|
-
x:
|
|
330
|
-
y:
|
|
331
|
-
v:
|
|
332
|
-
value:
|
|
333
|
-
y0:
|
|
334
|
-
i:
|
|
329
|
+
x: Wt,
|
|
330
|
+
y: et ? S(ve) : NaN,
|
|
331
|
+
v: ve,
|
|
332
|
+
value: et ? ve : null,
|
|
333
|
+
y0: Ht,
|
|
334
|
+
i: _e
|
|
335
335
|
};
|
|
336
|
-
}),
|
|
336
|
+
}), Qe = (b) => b >= 0 && b < M.length && Number.isFinite(M[b]?.value), je = M.filter((b) => Number.isFinite(b.value) && !Qe(b.i - 1) && !Qe(b.i + 1)), zt = je.filter((b) => b.i >= O && b.i < Ce), H = M.slice(O, Ce), Dt = M.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? nt(M) : it(M) : n.cutNullValues ? ut(M) : ot(M) : "", It = H.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? nt(H) : it(H) : n.cutNullValues ? ut(H) : ot(H) : "";
|
|
337
337
|
return {
|
|
338
|
-
fullSet:
|
|
338
|
+
fullSet: Dt,
|
|
339
339
|
points: M,
|
|
340
|
-
selectionSet:
|
|
340
|
+
selectionSet: It,
|
|
341
341
|
sliced: H,
|
|
342
342
|
firstPlot: M[O] || null,
|
|
343
|
-
lastPlot: M[Math.max(0,
|
|
343
|
+
lastPlot: M[Math.max(0, Ce - 1)] || null,
|
|
344
344
|
hasFull: M.length >= 2,
|
|
345
345
|
hasSelection: H.length >= 2,
|
|
346
|
-
fullMarkers:
|
|
347
|
-
selectionMarkers:
|
|
346
|
+
fullMarkers: je,
|
|
347
|
+
selectionMarkers: zt
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
|
-
const c = s(() => n.minimap.length ?
|
|
350
|
+
const c = s(() => n.minimap.length ? Ie(n.minimap) : {
|
|
351
351
|
fullSet: "",
|
|
352
352
|
selectionSet: "",
|
|
353
353
|
sliced: [],
|
|
@@ -356,7 +356,7 @@ const _t = {
|
|
|
356
356
|
hasFull: !1,
|
|
357
357
|
hasSelection: !1
|
|
358
358
|
}), j = s(() => n.allMinimaps.length ? n.allMinimaps.map((e, l) => {
|
|
359
|
-
const t =
|
|
359
|
+
const t = Ie(e?.series || [], !!e.smooth), o = e?.id ?? e?.name ?? l;
|
|
360
360
|
return {
|
|
361
361
|
key: typeof o == "object" ? JSON.stringify(o) : String(o),
|
|
362
362
|
color: e?.color,
|
|
@@ -371,34 +371,34 @@ const _t = {
|
|
|
371
371
|
width: x.value * (l - e) - x.value
|
|
372
372
|
};
|
|
373
373
|
}), T = m(n.minimapSelectedIndex);
|
|
374
|
-
function
|
|
375
|
-
T.value =
|
|
374
|
+
function pt(e) {
|
|
375
|
+
T.value = Ke(n.valueStart) + e;
|
|
376
376
|
}
|
|
377
|
-
const
|
|
377
|
+
const wt = Kt(pt, 60);
|
|
378
378
|
U(() => n.minimapSelectedIndex, (e, l) => {
|
|
379
379
|
if ([null, void 0].includes(e)) {
|
|
380
380
|
T.value = null;
|
|
381
381
|
return;
|
|
382
382
|
}
|
|
383
|
-
e !== l &&
|
|
383
|
+
e !== l && wt(e);
|
|
384
384
|
}, { immediate: !0 });
|
|
385
|
-
function
|
|
385
|
+
function St(e) {
|
|
386
386
|
T.value = e;
|
|
387
387
|
const l = D.value, t = W.value;
|
|
388
388
|
e >= l && e < t && !z.value && Y("trapMouse", e - l);
|
|
389
389
|
}
|
|
390
|
-
const
|
|
390
|
+
const pe = m(null), we = m(null);
|
|
391
391
|
function oe(e) {
|
|
392
|
-
k.value = e,
|
|
392
|
+
k.value = e, pe.value && (pe.value.value = e), Y("update:start", Number(k.value));
|
|
393
393
|
}
|
|
394
394
|
function re(e) {
|
|
395
|
-
p.value = e,
|
|
395
|
+
p.value = e, we.value && (we.value.value = e), Y("update:end", Number(p.value));
|
|
396
396
|
}
|
|
397
397
|
const se = s(() => n.valueEnd - n.valueStart), _ = m(!1);
|
|
398
|
-
let
|
|
399
|
-
const
|
|
400
|
-
let
|
|
401
|
-
const
|
|
398
|
+
let Ct = m(null);
|
|
399
|
+
const Pt = s(() => (he.value - 48) / (n.max - n.min) * se.value), Nt = s(() => Math.max(1, he.value - Al - Pt.value)), $t = s(() => Math.max(1, n.max - n.min - se.value)), Lt = s(() => $t.value / Nt.value), We = m(0), He = m(0), Rt = m(0), Xe = m(0);
|
|
400
|
+
let V = null, F = null, A = null, B = null;
|
|
401
|
+
const Ge = (e) => {
|
|
402
402
|
if (I.value = !0, !n.enableSelectionDrag) return;
|
|
403
403
|
const l = e.type === "touchstart";
|
|
404
404
|
l || e.stopPropagation();
|
|
@@ -406,53 +406,53 @@ const _t = {
|
|
|
406
406
|
if (!o || !(o instanceof Element) || o.classList && o.classList.contains("range-handle")) return;
|
|
407
407
|
_.value = !0;
|
|
408
408
|
const r = l ? t ? t.clientX : 0 : e.clientX;
|
|
409
|
-
|
|
409
|
+
Ct.value = r, We.value = r, He.value = Number(k.value), Rt.value = Number(p.value), Xe.value = Lt.value, V = l ? "touchmove" : "mousemove", F = l ? "touchend" : "mouseup", A = l ? Tt : Et, B = l ? Ft : Vt, window.addEventListener(V, A, { passive: !1 }), window.addEventListener(F, B);
|
|
410
410
|
};
|
|
411
|
-
function Rt(e) {
|
|
412
|
-
_.value && Ge(e.clientX);
|
|
413
|
-
}
|
|
414
411
|
function Et(e) {
|
|
412
|
+
_.value && Oe(e.clientX);
|
|
413
|
+
}
|
|
414
|
+
function Tt(e) {
|
|
415
415
|
if (!_.value || !$.value) return;
|
|
416
416
|
const l = e.target;
|
|
417
417
|
if (!(l instanceof Element) || !$.value.contains(l) || l.classList && l.classList.contains("range-handle")) return;
|
|
418
418
|
e.preventDefault();
|
|
419
419
|
const t = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
420
|
-
t &&
|
|
420
|
+
t && Oe(t.clientX);
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Oe(e) {
|
|
423
423
|
if (!_.value) return;
|
|
424
|
-
const t = (e -
|
|
425
|
-
let o = Math.round(
|
|
424
|
+
const t = (e - We.value) * Xe.value;
|
|
425
|
+
let o = Math.round(He.value + t);
|
|
426
426
|
o = Math.max(n.min, Math.min(o, n.max - se.value));
|
|
427
427
|
const r = o + se.value;
|
|
428
428
|
oe(o), re(r);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
|
|
430
|
+
function Vt() {
|
|
431
|
+
Ue();
|
|
432
432
|
}
|
|
433
433
|
function Ft() {
|
|
434
|
-
|
|
435
|
-
}
|
|
436
|
-
function Oe() {
|
|
437
|
-
_.value = !1, F && A && window.removeEventListener(F, A), V && B && window.removeEventListener(V, B), F = V = null, A = B = null;
|
|
434
|
+
Ue();
|
|
438
435
|
}
|
|
439
|
-
const z = m(!1), ee = m(null), te = m(null), we = m(1), ce = m(1), I = m(!1);
|
|
440
436
|
function Ue() {
|
|
441
|
-
|
|
437
|
+
_.value = !1, V && A && window.removeEventListener(V, A), F && B && window.removeEventListener(F, B), V = F = null, A = B = null;
|
|
442
438
|
}
|
|
439
|
+
const z = m(!1), ee = m(null), te = m(null), Se = m(1), ce = m(1), I = m(!1);
|
|
443
440
|
function Ze() {
|
|
441
|
+
ee.value && (Se.value = ee.value.getBoundingClientRect().width);
|
|
442
|
+
}
|
|
443
|
+
function Ye() {
|
|
444
444
|
te.value && (ce.value = te.value.getBoundingClientRect().width);
|
|
445
445
|
}
|
|
446
|
-
const
|
|
447
|
-
function
|
|
448
|
-
|
|
446
|
+
const Je = m(0);
|
|
447
|
+
function qe(e) {
|
|
448
|
+
Je.value = e === "start" ? 1 : 0;
|
|
449
449
|
}
|
|
450
450
|
const le = m(!1), ae = m({
|
|
451
451
|
width: 0,
|
|
452
452
|
left: 0
|
|
453
453
|
});
|
|
454
454
|
U([k, p], async () => {
|
|
455
|
-
if (await
|
|
455
|
+
if (await Ne(), !ee.value || !te.value) {
|
|
456
456
|
le.value = !1, ae.value = { width: 0, left: 0 };
|
|
457
457
|
return;
|
|
458
458
|
}
|
|
@@ -463,37 +463,37 @@ const _t = {
|
|
|
463
463
|
width: r,
|
|
464
464
|
left: f - r / 2
|
|
465
465
|
};
|
|
466
|
-
}),
|
|
467
|
-
|
|
466
|
+
}), Gt(() => {
|
|
467
|
+
Ze(), Ye();
|
|
468
468
|
}), U(
|
|
469
469
|
() => n.labelLeft,
|
|
470
470
|
() => {
|
|
471
|
-
|
|
471
|
+
Ne(Ze);
|
|
472
472
|
},
|
|
473
473
|
{ deep: !0 }
|
|
474
474
|
), U(
|
|
475
475
|
() => n.labelRight,
|
|
476
476
|
() => {
|
|
477
|
-
|
|
477
|
+
Ne(Ye);
|
|
478
478
|
},
|
|
479
479
|
{ deep: !0 }
|
|
480
|
-
),
|
|
480
|
+
), st({
|
|
481
481
|
setStartValue: oe,
|
|
482
482
|
setEndValue: re
|
|
483
|
-
}),
|
|
484
|
-
X.value && X.value.disconnect(),
|
|
483
|
+
}), Pe(() => {
|
|
484
|
+
X.value && X.value.disconnect(), V && A && window.removeEventListener(V, A), F && B && window.removeEventListener(F, B), V = F = null, A = B = null;
|
|
485
485
|
});
|
|
486
486
|
const ne = s(() => Math.max(1, n.max - n.min));
|
|
487
|
-
function
|
|
487
|
+
function Ke(e) {
|
|
488
488
|
const l = Math.floor(e - n.min);
|
|
489
489
|
return Math.min(Math.max(0, l), ne.value);
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function At(e) {
|
|
492
492
|
const l = Math.ceil(e - n.min);
|
|
493
493
|
return Math.min(Math.max(0, l), ne.value);
|
|
494
494
|
}
|
|
495
|
-
const D = s(() =>
|
|
496
|
-
if (!
|
|
495
|
+
const D = s(() => Ke(k.value)), W = s(() => At(p.value)), Bt = s(() => {
|
|
496
|
+
if (!Te.value.length) return null;
|
|
497
497
|
if (T.value >= D.value && T.value < W.value) {
|
|
498
498
|
const e = T.value;
|
|
499
499
|
return {
|
|
@@ -515,15 +515,15 @@ const _t = {
|
|
|
515
515
|
class: "vue-data-ui-zoom",
|
|
516
516
|
ref_key: "zoomWrapper",
|
|
517
517
|
ref: $,
|
|
518
|
-
onMousedown:
|
|
519
|
-
onTouchstart:
|
|
518
|
+
onMousedown: Ge,
|
|
519
|
+
onTouchstart: Ge,
|
|
520
520
|
onTouchend: l[11] || (l[11] = (t) => I.value = !1)
|
|
521
521
|
}, [
|
|
522
|
-
C("div",
|
|
523
|
-
a.valueStart !== a.refreshStartPoint || a.valueEnd !==
|
|
524
|
-
a.useResetSlot ?
|
|
522
|
+
C("div", el, [
|
|
523
|
+
a.valueStart !== a.refreshStartPoint || a.valueEnd !== vt.value ? (u(), i("div", tl, [
|
|
524
|
+
a.useResetSlot ? Ot(e.$slots, "reset-action", {
|
|
525
525
|
key: 1,
|
|
526
|
-
reset:
|
|
526
|
+
reset: Ve
|
|
527
527
|
}, void 0, !0) : (u(), i("button", {
|
|
528
528
|
key: 0,
|
|
529
529
|
tabindex: "0",
|
|
@@ -533,9 +533,9 @@ const _t = {
|
|
|
533
533
|
top: y.value ? "36px" : "-16px",
|
|
534
534
|
pointerEvents: "all !important"
|
|
535
535
|
}),
|
|
536
|
-
onClick:
|
|
536
|
+
onClick: Ve
|
|
537
537
|
}, [
|
|
538
|
-
|
|
538
|
+
Ut(jt, {
|
|
539
539
|
name: "refresh",
|
|
540
540
|
stroke: a.textColor
|
|
541
541
|
}, null, 8, ["stroke"])
|
|
@@ -545,20 +545,20 @@ const _t = {
|
|
|
545
545
|
C("div", {
|
|
546
546
|
class: "double-range-slider",
|
|
547
547
|
ref_key: "minimapWrapper",
|
|
548
|
-
ref:
|
|
548
|
+
ref: Me,
|
|
549
549
|
style: { "z-index": "0" },
|
|
550
550
|
onMouseenter: l[9] || (l[9] = (t) => I.value = !0),
|
|
551
551
|
onMouseleave: l[10] || (l[10] = (t) => I.value = !1)
|
|
552
552
|
}, [
|
|
553
|
-
y.value ? (u(), i("div",
|
|
553
|
+
y.value ? (u(), i("div", ll, [
|
|
554
554
|
(u(), i("svg", {
|
|
555
555
|
key: `mm-${a.minimapMerged ? "merged" : "split"}-${a.minimapCompact ? "compact" : "normal"}`,
|
|
556
|
-
xmlns:
|
|
556
|
+
xmlns: me(qt),
|
|
557
557
|
viewBox: `0 0 ${Math.max(0, h.value.width)} ${Math.max(0, h.value.height)}`
|
|
558
558
|
}, [
|
|
559
559
|
C("defs", null, [
|
|
560
560
|
C("linearGradient", {
|
|
561
|
-
id:
|
|
561
|
+
id: Re.value,
|
|
562
562
|
x1: "0%",
|
|
563
563
|
y1: "0%",
|
|
564
564
|
x2: "0%",
|
|
@@ -567,12 +567,12 @@ const _t = {
|
|
|
567
567
|
C("stop", {
|
|
568
568
|
offset: "0%",
|
|
569
569
|
"stop-color": `${a.minimapLineColor}50`
|
|
570
|
-
}, null, 8,
|
|
570
|
+
}, null, 8, il),
|
|
571
571
|
l[12] || (l[12] = C("stop", {
|
|
572
572
|
offset: "100%",
|
|
573
573
|
"stop-color": "transparent"
|
|
574
574
|
}, null, -1))
|
|
575
|
-
], 8,
|
|
575
|
+
], 8, nl)
|
|
576
576
|
]),
|
|
577
577
|
a.minimapCompact ? (u(), i("rect", {
|
|
578
578
|
key: 0,
|
|
@@ -584,7 +584,7 @@ const _t = {
|
|
|
584
584
|
fill: "none",
|
|
585
585
|
stroke: a.minimapFrameColor,
|
|
586
586
|
rx: 3
|
|
587
|
-
}, null, 8,
|
|
587
|
+
}, null, 8, ul)) : v("", !0),
|
|
588
588
|
a.minimapMerged ? (u(), i("path", {
|
|
589
589
|
key: 1,
|
|
590
590
|
d: `M${c.value.fullSet}`,
|
|
@@ -594,18 +594,18 @@ const _t = {
|
|
|
594
594
|
"stroke-linecap": "round",
|
|
595
595
|
"stroke-linejoin": "round",
|
|
596
596
|
style: { opacity: "0.6" }
|
|
597
|
-
}, null, 8,
|
|
597
|
+
}, null, 8, ol)) : (u(), i(g, { key: 2 }, [
|
|
598
598
|
(u(!0), i(g, null, N(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
|
|
599
599
|
(u(!0), i(g, null, N(t.points, (r, f) => (u(), i(g, null, [
|
|
600
600
|
t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
|
|
601
601
|
key: 0,
|
|
602
|
-
x:
|
|
603
|
-
width:
|
|
602
|
+
x: ze(r.x, o, f),
|
|
603
|
+
width: De(o, f),
|
|
604
604
|
y: r.v >= 0 ? r.y : r.y0,
|
|
605
605
|
height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
|
|
606
606
|
fill: t.color,
|
|
607
607
|
style: { opacity: "0.6" }
|
|
608
|
-
}, null, 8,
|
|
608
|
+
}, null, 8, rl)) : v("", !0)
|
|
609
609
|
], 64))), 256))
|
|
610
610
|
]))), 256)),
|
|
611
611
|
(u(!0), i(g, null, N(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
@@ -617,7 +617,7 @@ const _t = {
|
|
|
617
617
|
fill: "none",
|
|
618
618
|
stroke: t.color,
|
|
619
619
|
style: { opacity: "0.6" }
|
|
620
|
-
}, null, 8,
|
|
620
|
+
}, null, 8, sl)) : v("", !0),
|
|
621
621
|
t.isVisible ? (u(!0), i(g, { key: 1 }, N(t.fullMarkers, (o) => (u(), i("circle", {
|
|
622
622
|
key: `sel-dot-under-${t.key}-${o.i}`,
|
|
623
623
|
cx: o.x,
|
|
@@ -627,7 +627,7 @@ const _t = {
|
|
|
627
627
|
stroke: d.value,
|
|
628
628
|
"stroke-width": "0.5",
|
|
629
629
|
style: { opacity: "0.6" }
|
|
630
|
-
}, null, 8,
|
|
630
|
+
}, null, 8, cl))), 128)) : v("", !0)
|
|
631
631
|
]))), 128))
|
|
632
632
|
], 64)),
|
|
633
633
|
C("rect", {
|
|
@@ -638,7 +638,7 @@ const _t = {
|
|
|
638
638
|
fill: d.value,
|
|
639
639
|
rx: a.minimapSelectionRadius,
|
|
640
640
|
stroke: "none"
|
|
641
|
-
}, null, 8,
|
|
641
|
+
}, null, 8, vl),
|
|
642
642
|
C("rect", {
|
|
643
643
|
x: w.value.x,
|
|
644
644
|
width: w.value.width < 0 ? 0 : w.value.width,
|
|
@@ -646,7 +646,7 @@ const _t = {
|
|
|
646
646
|
y: 0,
|
|
647
647
|
rx: a.minimapSelectionRadius,
|
|
648
648
|
fill: d.value
|
|
649
|
-
}, null, 8,
|
|
649
|
+
}, null, 8, ml),
|
|
650
650
|
C("rect", {
|
|
651
651
|
x: w.value.x,
|
|
652
652
|
width: w.value.width < 0 ? 0 : w.value.width,
|
|
@@ -657,27 +657,27 @@ const _t = {
|
|
|
657
657
|
style: R({
|
|
658
658
|
opacity: a.minimapSelectedColorOpacity
|
|
659
659
|
})
|
|
660
|
-
}, null, 12,
|
|
661
|
-
T.value !== null && !z.value ? (u(), i("line",
|
|
662
|
-
!a.minimapMerged &&
|
|
660
|
+
}, null, 12, hl),
|
|
661
|
+
T.value !== null && !z.value ? (u(), i("line", Zt(Yt({ key: 3 }, Bt.value)), null, 16)) : v("", !0),
|
|
662
|
+
!a.minimapMerged && yt.value < 0 ? (u(), i("line", {
|
|
663
663
|
key: 4,
|
|
664
664
|
class: "slicer-minimap-zero-line",
|
|
665
665
|
x1: 0,
|
|
666
666
|
x2: h.value.width,
|
|
667
|
-
y1:
|
|
668
|
-
y2:
|
|
667
|
+
y1: Ae.value,
|
|
668
|
+
y2: Ae.value,
|
|
669
669
|
stroke: a.minimapFrameColor,
|
|
670
670
|
"stroke-width": "0.5"
|
|
671
|
-
}, null, 8,
|
|
671
|
+
}, null, 8, dl)) : v("", !0),
|
|
672
672
|
a.minimapMerged ? (u(), i(g, { key: 5 }, [
|
|
673
673
|
c.value && c.value.sliced && c.value.sliced.length ? (u(), i(g, { key: 0 }, [
|
|
674
674
|
c.value.selectionSet ? (u(), i("path", {
|
|
675
675
|
key: 0,
|
|
676
676
|
d: `M${c.value.sliced[0].x},${Math.max(h.value.height, 0)} ${c.value.selectionSet} L${c.value.sliced[c.value.sliced.length - 1].x},${Math.max(h.value.height, 0)}Z`,
|
|
677
|
-
fill: `url(#${
|
|
677
|
+
fill: `url(#${Re.value})`,
|
|
678
678
|
stroke: "none",
|
|
679
679
|
style: { opacity: "1" }
|
|
680
|
-
}, null, 8,
|
|
680
|
+
}, null, 8, fl)) : v("", !0),
|
|
681
681
|
c.value.selectionSet ? (u(), i("path", {
|
|
682
682
|
key: 1,
|
|
683
683
|
d: `M ${c.value.selectionSet}`,
|
|
@@ -686,22 +686,22 @@ const _t = {
|
|
|
686
686
|
"stroke-width": "2",
|
|
687
687
|
"stroke-linecap": "round",
|
|
688
688
|
"stroke-linejoin": "round"
|
|
689
|
-
}, null, 8,
|
|
689
|
+
}, null, 8, gl)) : v("", !0)
|
|
690
690
|
], 64)) : v("", !0)
|
|
691
|
-
], 64)) : (u(), i("g",
|
|
691
|
+
], 64)) : (u(), i("g", yl, [
|
|
692
692
|
(u(!0), i(g, null, N(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
|
|
693
693
|
(u(!0), i(g, null, N(t.points, (r, f) => (u(), i(g, null, [
|
|
694
694
|
t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
|
|
695
695
|
key: 0,
|
|
696
|
-
x:
|
|
697
|
-
width:
|
|
696
|
+
x: ze(r.x, o, f),
|
|
697
|
+
width: De(o, f),
|
|
698
698
|
y: r.v >= 0 ? r.y : r.y0,
|
|
699
699
|
height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
|
|
700
700
|
fill: t.color,
|
|
701
701
|
style: R({
|
|
702
702
|
opacity: f >= a.valueStart && f <= a.valueEnd - 1 ? 1 : 0
|
|
703
703
|
})
|
|
704
|
-
}, null, 12,
|
|
704
|
+
}, null, 12, xl)) : v("", !0)
|
|
705
705
|
], 64))), 256))
|
|
706
706
|
]))), 256)),
|
|
707
707
|
(u(!0), i(g, null, N(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
@@ -715,7 +715,7 @@ const _t = {
|
|
|
715
715
|
"stroke-width": "2",
|
|
716
716
|
"stroke-linecap": "round",
|
|
717
717
|
"stroke-linejoin": "round"
|
|
718
|
-
}, null, 8,
|
|
718
|
+
}, null, 8, bl)) : v("", !0)
|
|
719
719
|
]))), 128))
|
|
720
720
|
])),
|
|
721
721
|
y.value && a.minimapCompact ? (u(), i("rect", {
|
|
@@ -728,7 +728,7 @@ const _t = {
|
|
|
728
728
|
fill: d.value,
|
|
729
729
|
stroke: a.textColor,
|
|
730
730
|
rx: 3
|
|
731
|
-
}, null, 8,
|
|
731
|
+
}, null, 8, Ml)) : v("", !0),
|
|
732
732
|
y.value && a.minimapCompact ? (u(), i("rect", {
|
|
733
733
|
key: 8,
|
|
734
734
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
@@ -739,7 +739,7 @@ const _t = {
|
|
|
739
739
|
fill: d.value,
|
|
740
740
|
stroke: a.textColor,
|
|
741
741
|
rx: 3
|
|
742
|
-
}, null, 8,
|
|
742
|
+
}, null, 8, kl)) : v("", !0),
|
|
743
743
|
a.minimapMerged ? (u(), i(g, { key: 9 }, [
|
|
744
744
|
c.value && c.value.firstPlot && c.value.firstPlot.value !== null ? (u(), i("circle", {
|
|
745
745
|
key: 0,
|
|
@@ -749,14 +749,14 @@ const _t = {
|
|
|
749
749
|
stroke: d.value,
|
|
750
750
|
r: "4",
|
|
751
751
|
fill: a.minimapLineColor
|
|
752
|
-
}, null, 8,
|
|
752
|
+
}, null, 8, pl)) : v("", !0),
|
|
753
753
|
c.value && c.value.firstPlot && c.value.firstPlot.value !== null ? (u(), i("circle", {
|
|
754
754
|
key: 1,
|
|
755
755
|
cx: c.value.firstPlot.x,
|
|
756
756
|
cy: c.value.firstPlot.y,
|
|
757
757
|
r: "2",
|
|
758
758
|
fill: d.value
|
|
759
|
-
}, null, 8,
|
|
759
|
+
}, null, 8, wl)) : v("", !0),
|
|
760
760
|
c.value && c.value.lastPlot && c.value.lastPlot.value !== null ? (u(), i("circle", {
|
|
761
761
|
key: 2,
|
|
762
762
|
cx: c.value.lastPlot.x,
|
|
@@ -765,15 +765,15 @@ const _t = {
|
|
|
765
765
|
stroke: d.value,
|
|
766
766
|
r: "4",
|
|
767
767
|
fill: a.minimapLineColor
|
|
768
|
-
}, null, 8,
|
|
768
|
+
}, null, 8, Sl)) : v("", !0),
|
|
769
769
|
c.value && c.value.lastPlot && c.value.lastPlot.value !== null ? (u(), i("circle", {
|
|
770
770
|
key: 3,
|
|
771
771
|
cx: c.value.lastPlot.x,
|
|
772
772
|
cy: c.value.lastPlot.y,
|
|
773
773
|
r: "2",
|
|
774
774
|
fill: d.value
|
|
775
|
-
}, null, 8,
|
|
776
|
-
], 64)) : (u(), i("g",
|
|
775
|
+
}, null, 8, Cl)) : v("", !0)
|
|
776
|
+
], 64)) : (u(), i("g", Pl, [
|
|
777
777
|
(u(!0), i(g, null, N(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
778
778
|
key: String(t.key)
|
|
779
779
|
}, [
|
|
@@ -785,7 +785,7 @@ const _t = {
|
|
|
785
785
|
fill: t.color,
|
|
786
786
|
stroke: d.value,
|
|
787
787
|
"stroke-width": "0.5"
|
|
788
|
-
}, null, 8,
|
|
788
|
+
}, null, 8, Nl))), 128)) : v("", !0),
|
|
789
789
|
t && t.firstPlot && t.isVisible && t.firstPlot.value !== null ? (u(), i("circle", {
|
|
790
790
|
key: 1,
|
|
791
791
|
cx: t.firstPlot.x,
|
|
@@ -794,14 +794,14 @@ const _t = {
|
|
|
794
794
|
stroke: d.value,
|
|
795
795
|
r: "4",
|
|
796
796
|
fill: t.color
|
|
797
|
-
}, null, 8,
|
|
797
|
+
}, null, 8, $l)) : v("", !0),
|
|
798
798
|
t && t.firstPlot && t.isVisible && t.firstPlot.value !== null ? (u(), i("circle", {
|
|
799
799
|
key: 2,
|
|
800
800
|
cx: t.firstPlot.x,
|
|
801
801
|
cy: t.firstPlot.y,
|
|
802
802
|
r: "2",
|
|
803
803
|
fill: d.value
|
|
804
|
-
}, null, 8,
|
|
804
|
+
}, null, 8, Ll)) : v("", !0),
|
|
805
805
|
t && t.lastPlot && t.isVisible && t.lastPlot.value !== null ? (u(), i("circle", {
|
|
806
806
|
key: 3,
|
|
807
807
|
cx: t.lastPlot.x,
|
|
@@ -810,17 +810,17 @@ const _t = {
|
|
|
810
810
|
stroke: d.value,
|
|
811
811
|
r: "4",
|
|
812
812
|
fill: t.color
|
|
813
|
-
}, null, 8,
|
|
813
|
+
}, null, 8, Rl)) : v("", !0),
|
|
814
814
|
t && t.lastPlot && t.isVisible && t.lastPlot.value !== null ? (u(), i("circle", {
|
|
815
815
|
key: 4,
|
|
816
816
|
cx: t.lastPlot.x,
|
|
817
817
|
cy: t.lastPlot.y,
|
|
818
818
|
r: "2",
|
|
819
819
|
fill: d.value
|
|
820
|
-
}, null, 8,
|
|
820
|
+
}, null, 8, El)) : v("", !0)
|
|
821
821
|
]))), 128))
|
|
822
822
|
])),
|
|
823
|
-
(u(!0), i(g, null, N(
|
|
823
|
+
(u(!0), i(g, null, N(Te.value, (t, o) => (u(), i("rect", {
|
|
824
824
|
y: 0,
|
|
825
825
|
height: Math.max(h.value.height, 0),
|
|
826
826
|
fill: "transparent",
|
|
@@ -831,12 +831,12 @@ const _t = {
|
|
|
831
831
|
width: x.value < 0 ? 0 : x.value,
|
|
832
832
|
onMousedown: l[0] || (l[0] = (r) => z.value = !0),
|
|
833
833
|
onMouseup: l[1] || (l[1] = (r) => z.value = !1),
|
|
834
|
-
onMouseenter: (r) =>
|
|
834
|
+
onMouseenter: (r) => St(t),
|
|
835
835
|
onMouseleave: l[2] || (l[2] = (r) => {
|
|
836
836
|
T.value = null, Y("trapMouse", null);
|
|
837
837
|
})
|
|
838
|
-
}, null, 44,
|
|
839
|
-
], 8,
|
|
838
|
+
}, null, 44, Tl))), 256))
|
|
839
|
+
], 8, al))
|
|
840
840
|
])) : v("", !0),
|
|
841
841
|
C("div", {
|
|
842
842
|
class: "slider-track",
|
|
@@ -855,10 +855,10 @@ const _t = {
|
|
|
855
855
|
visibility: y.value && a.minimapCompact ? "hidden" : "visible"
|
|
856
856
|
})
|
|
857
857
|
}, null, 38),
|
|
858
|
-
a.enableRangeHandles ?
|
|
858
|
+
a.enableRangeHandles ? lt((u(), i("input", {
|
|
859
859
|
key: 1,
|
|
860
860
|
ref_key: "rangeStart",
|
|
861
|
-
ref:
|
|
861
|
+
ref: pe,
|
|
862
862
|
type: "range",
|
|
863
863
|
class: Z({
|
|
864
864
|
"range-left": !0,
|
|
@@ -869,20 +869,20 @@ const _t = {
|
|
|
869
869
|
min: a.min,
|
|
870
870
|
max: E.value && a.minimapCompact ? q.value : a.max,
|
|
871
871
|
step: 1,
|
|
872
|
-
"onUpdate:modelValue": l[5] || (l[5] = (t) =>
|
|
873
|
-
onMouseenter: l[6] || (l[6] = (t) =>
|
|
874
|
-
}, null, 42,
|
|
872
|
+
"onUpdate:modelValue": l[5] || (l[5] = (t) => xe.value = t),
|
|
873
|
+
onMouseenter: l[6] || (l[6] = (t) => qe("start"))
|
|
874
|
+
}, null, 42, Vl)), [
|
|
875
875
|
[
|
|
876
|
-
|
|
877
|
-
|
|
876
|
+
at,
|
|
877
|
+
xe.value,
|
|
878
878
|
void 0,
|
|
879
879
|
{ number: !0 }
|
|
880
880
|
]
|
|
881
881
|
]) : v("", !0),
|
|
882
|
-
a.enableRangeHandles ?
|
|
882
|
+
a.enableRangeHandles ? lt((u(), i("input", {
|
|
883
883
|
key: 2,
|
|
884
884
|
ref_key: "rangeEnd",
|
|
885
|
-
ref:
|
|
885
|
+
ref: we,
|
|
886
886
|
type: "range",
|
|
887
887
|
class: Z({
|
|
888
888
|
"range-right": !0,
|
|
@@ -893,12 +893,12 @@ const _t = {
|
|
|
893
893
|
min: a.min,
|
|
894
894
|
max: E.value && a.minimapCompact ? q.value : a.max,
|
|
895
895
|
step: 1,
|
|
896
|
-
"onUpdate:modelValue": l[7] || (l[7] = (t) =>
|
|
897
|
-
onMouseenter: l[8] || (l[8] = (t) =>
|
|
896
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => be.value = t),
|
|
897
|
+
onMouseenter: l[8] || (l[8] = (t) => qe("end"))
|
|
898
898
|
}, null, 42, Fl)), [
|
|
899
899
|
[
|
|
900
|
-
|
|
901
|
-
|
|
900
|
+
at,
|
|
901
|
+
be.value,
|
|
902
902
|
void 0,
|
|
903
903
|
{ number: !0 }
|
|
904
904
|
]
|
|
@@ -915,14 +915,14 @@ const _t = {
|
|
|
915
915
|
}),
|
|
916
916
|
style: R({
|
|
917
917
|
left: P.value.tooltipLeft,
|
|
918
|
-
color:
|
|
918
|
+
color: me(Le)(a.selectColor),
|
|
919
919
|
backgroundColor: a.selectColor,
|
|
920
920
|
border: `1px solid ${d.value}`,
|
|
921
|
-
zIndex: `${
|
|
921
|
+
zIndex: `${Je.value + 4}`,
|
|
922
922
|
visibility: le.value || a.labelLeft === a.labelRight ? "hidden" : "visible",
|
|
923
923
|
top: y.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
924
924
|
})
|
|
925
|
-
},
|
|
925
|
+
}, $e(a.labelLeft), 7)) : v("", !0),
|
|
926
926
|
(le.value || a.labelLeft === a.labelRight) && (a.labelLeft || a.labelRight) ? (u(), i("div", {
|
|
927
927
|
key: 4,
|
|
928
928
|
ref: "tooltipMerge",
|
|
@@ -936,13 +936,13 @@ const _t = {
|
|
|
936
936
|
style: R({
|
|
937
937
|
left: P.value.tooltipCenter,
|
|
938
938
|
width: ae.value.width + "px",
|
|
939
|
-
color:
|
|
939
|
+
color: me(Le)(a.selectColor),
|
|
940
940
|
backgroundColor: a.selectColor,
|
|
941
941
|
border: `1px solid ${d.value}`,
|
|
942
942
|
zIndex: "4",
|
|
943
943
|
top: y.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
944
944
|
})
|
|
945
|
-
},
|
|
945
|
+
}, $e(a.labelLeft === a.labelRight ? a.labelLeft : `${a.labelLeft} - ${a.labelRight}`), 7)) : v("", !0),
|
|
946
946
|
a.labelRight ? (u(), i("div", {
|
|
947
947
|
key: 5,
|
|
948
948
|
ref_key: "tooltipRight",
|
|
@@ -955,18 +955,18 @@ const _t = {
|
|
|
955
955
|
}),
|
|
956
956
|
style: R({
|
|
957
957
|
left: P.value.tooltipRight,
|
|
958
|
-
color:
|
|
958
|
+
color: me(Le)(a.selectColor),
|
|
959
959
|
backgroundColor: a.selectColor,
|
|
960
960
|
border: `1px solid ${d.value}`,
|
|
961
961
|
zIndex: "4",
|
|
962
962
|
visibility: le.value || a.labelLeft === a.labelRight ? "hidden" : "visible",
|
|
963
963
|
top: y.value && a.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
964
964
|
})
|
|
965
|
-
},
|
|
965
|
+
}, $e(a.labelRight), 7)) : v("", !0)
|
|
966
966
|
], 544)
|
|
967
967
|
], 544));
|
|
968
968
|
}
|
|
969
|
-
},
|
|
969
|
+
}, Xl = /* @__PURE__ */ _t(Bl, [["__scopeId", "data-v-ec92baaf"]]);
|
|
970
970
|
export {
|
|
971
|
-
|
|
971
|
+
Xl as S
|
|
972
972
|
};
|