vue-data-ui 3.1.19-next.1 → 3.2.1
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/{PackageVersion-B6W-zkH-.js → PackageVersion-BB7joYAK.js} +3 -3
- package/dist/{Slicer-BgpOhmb6.js → Slicer-qM5l8BsU.js} +119 -119
- package/dist/{Title-pI68ZJsq.js → Title-BIaVNiUQ.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +11 -0
- package/dist/{useNestedProp-DF7e2h1z.js → useNestedProp-7BbqoAYu.js} +32 -20
- package/dist/{vue-data-ui-DfcfqSDl.js → vue-data-ui-DyqIdFbp.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DKkCWxob.js → vue-ui-3d-bar-BrlJjJDI.js} +3 -3
- package/dist/{vue-ui-accordion-D-L73-T2.js → vue-ui-accordion-BSrtaPYx.js} +1 -1
- package/dist/{vue-ui-age-pyramid-gGF4DSOi.js → vue-ui-age-pyramid-BDIMacvP.js} +3 -3
- package/dist/{vue-ui-annotator-SoAGIAm-.js → vue-ui-annotator-DGVlVhhy.js} +1 -1
- package/dist/{vue-ui-bullet-Coqi_swO.js → vue-ui-bullet-CIJw4kXd.js} +3 -3
- package/dist/{vue-ui-candlestick-C78EYmhY.js → vue-ui-candlestick-ZjLiyYpC.js} +4 -4
- package/dist/{vue-ui-carousel-table-B7i_eOe9.js → vue-ui-carousel-table-_-qalKHa.js} +2 -2
- package/dist/{vue-ui-chestnut-QzsKNF-J.js → vue-ui-chestnut-XkX5ANAN.js} +2 -2
- package/dist/{vue-ui-chord-BxiWe3MD.js → vue-ui-chord-B1vFXFgp.js} +3 -3
- package/dist/{vue-ui-circle-pack-C3TZdbF1.js → vue-ui-circle-pack-8J10Q6-I.js} +3 -3
- package/dist/{vue-ui-cursor-0muOlHSh.js → vue-ui-cursor-CQp6B13J.js} +1 -1
- package/dist/{vue-ui-dashboard-Dh0EyLe8.js → vue-ui-dashboard-CTEYSHVA.js} +63 -63
- package/dist/{vue-ui-digits-DOUNtmB0.js → vue-ui-digits-B4aZJw8I.js} +1 -1
- package/dist/{vue-ui-donut-DTJCIEig.js → vue-ui-donut-d_XvnIQB.js} +3 -3
- package/dist/{vue-ui-donut-evolution-DYJmrFDC.js → vue-ui-donut-evolution-Bz7fLQru.js} +4 -4
- package/dist/{vue-ui-dumbbell-COm32YHr.js → vue-ui-dumbbell-fDl24oQq.js} +3 -3
- package/dist/{vue-ui-flow-BD2XeR-d.js → vue-ui-flow-NYnnPoDX.js} +3 -3
- package/dist/{vue-ui-funnel-Cy9J1JpW.js → vue-ui-funnel-BWPIKyW8.js} +3 -3
- package/dist/{vue-ui-galaxy-KyUZ5tNb.js → vue-ui-galaxy-LabscC7n.js} +3 -3
- package/dist/{vue-ui-gauge-BpXYJd5z.js → vue-ui-gauge-DXETakZJ.js} +3 -3
- package/dist/{vue-ui-gizmo-DM3wSOOe.js → vue-ui-gizmo-DZgMzP_e.js} +2 -2
- package/dist/{vue-ui-heatmap-B2NzGPtL.js → vue-ui-heatmap-C6Z5wEkZ.js} +4 -4
- package/dist/{vue-ui-history-plot-BTnau6bc.js → vue-ui-history-plot-CUGzhcjr.js} +3 -3
- package/dist/{vue-ui-kpi-D7zdt7-g.js → vue-ui-kpi-DklTxULP.js} +2 -2
- package/dist/{vue-ui-mini-loader-CteWqKM_.js → vue-ui-mini-loader-D22vfM5g.js} +1 -1
- package/dist/{vue-ui-molecule-8oQQTCN2.js → vue-ui-molecule-BAH7NOZP.js} +2 -2
- package/dist/{vue-ui-mood-radar-B3ZrQSqP.js → vue-ui-mood-radar-DWZKM2u0.js} +3 -3
- package/dist/{vue-ui-nested-donuts-BoUb_OX8.js → vue-ui-nested-donuts-CxUSyTrT.js} +3 -3
- package/dist/{vue-ui-onion-xprTPjVq.js → vue-ui-onion-BfzkGOmQ.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-Cpzi3BO0.js → vue-ui-parallel-coordinate-plot-Dnl2GBps.js} +3 -3
- package/dist/{vue-ui-quadrant-CHTnDwZ7.js → vue-ui-quadrant-C_3l8xWm.js} +3 -3
- package/dist/vue-ui-quick-chart-E6QujRg4.js +1892 -0
- package/dist/{vue-ui-radar-B5QRDHJ1.js → vue-ui-radar-C_yLoJvR.js} +3 -3
- package/dist/{vue-ui-rating-CjoKP6-5.js → vue-ui-rating-Df02iNbL.js} +1 -1
- package/dist/{vue-ui-relation-circle-DStHH_sz.js → vue-ui-relation-circle-CBIXCwQb.js} +3 -3
- package/dist/{vue-ui-ridgeline-VI1I1k9W.js → vue-ui-ridgeline-euhLcVI0.js} +3 -3
- package/dist/{vue-ui-rings-D26TgYmU.js → vue-ui-rings-BGxjmMDw.js} +3 -3
- package/dist/{vue-ui-scatter-9CX5JEVI.js → vue-ui-scatter-CO4kXKZF.js} +3 -3
- package/dist/{vue-ui-skeleton-0yto3ZRt.js → vue-ui-skeleton-DrCI1AAl.js} +2 -2
- package/dist/{vue-ui-smiley-YRRY-yQp.js → vue-ui-smiley-FPLXOxew.js} +1 -1
- package/dist/{vue-ui-spark-trend-13xDAi4U.js → vue-ui-spark-trend-D4dDN0Sc.js} +2 -2
- package/dist/{vue-ui-sparkbar-DBMeKvSW.js → vue-ui-sparkbar-BEXrQvP0.js} +2 -2
- package/dist/{vue-ui-sparkgauge-febkbzOk.js → vue-ui-sparkgauge-Cp4-BTZu.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-rc9uWj4C.js → vue-ui-sparkhistogram-BwmKv4YF.js} +2 -2
- package/dist/{vue-ui-sparkline-BpZKuk92.js → vue-ui-sparkline-BXZJ-fUn.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-DuOsScHl.js → vue-ui-sparkstackbar-Cie2g7gk.js} +2 -2
- package/dist/{vue-ui-stackbar-BsdEyuPC.js → vue-ui-stackbar-B137wy4q.js} +4 -4
- package/dist/{vue-ui-strip-plot-Dem6Qr7N.js → vue-ui-strip-plot-Dd1aHpFW.js} +3 -3
- package/dist/{vue-ui-table-Dds0EE_Q.js → vue-ui-table-CduckNVX.js} +3 -3
- package/dist/{vue-ui-table-heatmap-iu6l-6rW.js → vue-ui-table-heatmap-DZAkUjty.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DcHLIhbA.js → vue-ui-table-sparkline-D6oTAFEO.js} +2 -2
- package/dist/{vue-ui-thermometer-DZwSnX7w.js → vue-ui-thermometer-BmK3_O7T.js} +3 -3
- package/dist/{vue-ui-timer-BVmo70Ts.js → vue-ui-timer-BYw6Z01O.js} +3 -3
- package/dist/{vue-ui-tiremarks-Cr6Fy7Sq.js → vue-ui-tiremarks-CWiME7zn.js} +3 -3
- package/dist/{vue-ui-treemap-DiKGxMUR.js → vue-ui-treemap-D8PmfJbw.js} +3 -3
- package/dist/{vue-ui-vertical-bar-D3_W8WLN.js → vue-ui-vertical-bar-DRC047BC.js} +4 -4
- package/dist/{vue-ui-waffle-CoVrrxzt.js → vue-ui-waffle-DAaBoyx4.js} +3 -3
- package/dist/vue-ui-wheel-DfNXrsTY.js +587 -0
- package/dist/{vue-ui-word-cloud-L-58-uVD.js → vue-ui-word-cloud-ByKWZtkV.js} +3 -3
- package/dist/{vue-ui-world-CaA-eKMJ.js → vue-ui-world-BezpUr_Q.js} +2 -2
- package/dist/{vue-ui-xy-Bm2SYaTT.js → vue-ui-xy-DlcJVA22.js} +415 -415
- package/dist/{vue-ui-xy-canvas-2Vg9eVqi.js → vue-ui-xy-canvas-DPfxdanR.js} +5 -5
- package/package.json +1 -1
- package/dist/vue-ui-quick-chart-zJyIT4di.js +0 -1802
- package/dist/vue-ui-wheel-Cwl-WsK2.js +0 -380
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCssVars as Ot, computed as s, ref as d, onMounted as lt, onBeforeUnmount as Le, 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 L, createVNode as Yt, withDirectives as at, unref as me, Fragment as
|
|
1
|
+
import { useCssVars as Ot, computed as s, ref as d, onMounted as lt, onBeforeUnmount as Le, 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 L, createVNode as Yt, withDirectives as at, unref as me, Fragment as M, renderList as R, normalizeProps as Jt, mergeProps as qt, normalizeClass as Y, vModelText as nt, toDisplayString as $e } from "vue";
|
|
2
2
|
import { c as Kt, X as Qt, G as Ee, ae as it, W as ut, af as ot, V as rt, ag as st } from "./lib-p5pfHmOX.js";
|
|
3
3
|
import { t as ct, d as jt, u as _t } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import el from "./BaseIcon-D2f9w5Z5.js";
|
|
@@ -154,16 +154,16 @@ const ll = {
|
|
|
154
154
|
emits: ["update:start", "update:end", "reset", "trapMouse"],
|
|
155
155
|
setup(n, { expose: vt, emit: mt }) {
|
|
156
156
|
Ot((e) => ({
|
|
157
|
-
"
|
|
158
|
-
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
157
|
+
"703bd703": gt.value,
|
|
158
|
+
"08315f77": x.value,
|
|
159
|
+
"784637a8": yt.value,
|
|
160
|
+
"2f32beb2": n.selectColor,
|
|
161
|
+
"147c5fb5": xt.value
|
|
162
162
|
}));
|
|
163
|
-
const a = n,
|
|
163
|
+
const a = n, k = d(null), w = d(a.min), S = d(a.max), b = s(() => !!a.minimap.length), Ve = d(Kt()), $ = s(() => b.value && a.minimapCompact), he = d(0);
|
|
164
164
|
lt(() => {
|
|
165
165
|
const e = () => {
|
|
166
|
-
|
|
166
|
+
k.value && (he.value = k.value.getBoundingClientRect().width);
|
|
167
167
|
};
|
|
168
168
|
e();
|
|
169
169
|
const l = ct(e, 50);
|
|
@@ -178,35 +178,35 @@ const ll = {
|
|
|
178
178
|
}
|
|
179
179
|
const e = Math.max(1, a.max - a.min);
|
|
180
180
|
return (w.value - a.min) / e * 100;
|
|
181
|
-
}),
|
|
181
|
+
}), re = s(() => {
|
|
182
182
|
if ($.value) {
|
|
183
183
|
const l = Math.max(1, ue.value - 1);
|
|
184
184
|
return Me.value / l * 100;
|
|
185
185
|
}
|
|
186
186
|
const e = Math.max(1, a.max - a.min);
|
|
187
187
|
return (S.value - a.min) / e * 100;
|
|
188
|
-
}), de = s(() => (q.value +
|
|
189
|
-
if (!
|
|
190
|
-
const e =
|
|
188
|
+
}), de = s(() => (q.value + re.value) / 2), fe = s(() => {
|
|
189
|
+
if (!k.value) return !1;
|
|
190
|
+
const e = k.value.getBoundingClientRect().width;
|
|
191
191
|
return q.value / 100 * e - Ne.value / 2 < 0;
|
|
192
192
|
}), ge = s(() => {
|
|
193
|
-
if (!
|
|
194
|
-
const e =
|
|
195
|
-
return
|
|
193
|
+
if (!k.value) return !1;
|
|
194
|
+
const e = k.value.getBoundingClientRect().width;
|
|
195
|
+
return re.value / 100 * e + ce.value / 2 > e;
|
|
196
196
|
}), N = s(() => {
|
|
197
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
198
|
return {
|
|
199
199
|
left: `${q.value}%`,
|
|
200
|
-
width: `${Math.max(0,
|
|
200
|
+
width: `${Math.max(0, re.value - q.value)}%`,
|
|
201
201
|
background: a.selectColor,
|
|
202
202
|
tooltipLeft: `calc(${q.value}% - ${fe.value ? 9 : Ne.value / 2 + 3.5}px)`,
|
|
203
|
-
tooltipRight: `calc(${
|
|
203
|
+
tooltipRight: `calc(${re.value}% - ${ge.value ? ce.value - 9 : ce.value / 2 - 3.5}px)`,
|
|
204
204
|
tooltipCenter: e,
|
|
205
205
|
arrowLeft: !fe.value,
|
|
206
206
|
arrowRight: !ge.value
|
|
207
207
|
};
|
|
208
208
|
}), K = s(() => Math.max(0, (Q.value || 1) - 1)), xe = s(() => Math.max(0, (ue.value || 1) - 1));
|
|
209
|
-
function
|
|
209
|
+
function se(e) {
|
|
210
210
|
return xe.value === 0 ? 0 : Math.round(e / xe.value * K.value);
|
|
211
211
|
}
|
|
212
212
|
function Ae(e) {
|
|
@@ -214,11 +214,11 @@ const ll = {
|
|
|
214
214
|
}
|
|
215
215
|
const dt = (e) => Math.floor(a.min + e), ft = (e) => Math.ceil(a.min + e), ye = s({
|
|
216
216
|
get() {
|
|
217
|
-
return $.value ?
|
|
217
|
+
return $.value ? se(I.value) : Number(w.value);
|
|
218
218
|
},
|
|
219
219
|
set(e) {
|
|
220
220
|
if ($.value) {
|
|
221
|
-
const l = Math.round(+e || 0), t = Math.max(0,
|
|
221
|
+
const l = Math.round(+e || 0), t = Math.max(0, se(Math.max(0, X.value - 1))), o = Math.min(Math.max(0, l), t), r = Ae(o);
|
|
222
222
|
_(dt(r));
|
|
223
223
|
} else {
|
|
224
224
|
let l = Math.round(+e || 0);
|
|
@@ -228,11 +228,11 @@ const ll = {
|
|
|
228
228
|
}
|
|
229
229
|
}), Me = s({
|
|
230
230
|
get() {
|
|
231
|
-
return $.value ?
|
|
231
|
+
return $.value ? se(Math.max(I.value, X.value - 1)) : Number(S.value);
|
|
232
232
|
},
|
|
233
233
|
set(e) {
|
|
234
234
|
if ($.value) {
|
|
235
|
-
const l = Math.round(+e || 0), t =
|
|
235
|
+
const l = Math.round(+e || 0), t = se(I.value), o = Math.max(l, t), r = Ae(o);
|
|
236
236
|
ee(ft(r + 1));
|
|
237
237
|
} else {
|
|
238
238
|
let l = Math.round(+e || 0);
|
|
@@ -240,7 +240,7 @@ const ll = {
|
|
|
240
240
|
ee(o);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
}), gt = s(() => a.inputColor), xt = s(() => a.background), yt = s(() => `${a.selectColor}33`),
|
|
243
|
+
}), gt = s(() => a.inputColor), xt = s(() => a.background), yt = s(() => `${a.selectColor}33`), x = s(() => a.borderColor), Be = s(() => {
|
|
244
244
|
const e = [];
|
|
245
245
|
for (let l = 0; l < a.max; l += 1)
|
|
246
246
|
e.push(l);
|
|
@@ -260,27 +260,27 @@ const ll = {
|
|
|
260
260
|
Number(w.value) > Number(e) && (w.value = Number(e)), Number(S.value) > Number(e) && (S.value = Number(e));
|
|
261
261
|
}
|
|
262
262
|
);
|
|
263
|
-
const be = d(null),
|
|
263
|
+
const be = d(null), g = d({
|
|
264
264
|
width: 1,
|
|
265
265
|
height: 1
|
|
266
266
|
}), O = d(null);
|
|
267
267
|
lt(() => {
|
|
268
|
-
if (
|
|
268
|
+
if (b.value) {
|
|
269
269
|
const e = ct(() => {
|
|
270
270
|
const { width: l, height: t } = _t({
|
|
271
271
|
chart: be.value
|
|
272
272
|
});
|
|
273
|
-
|
|
273
|
+
g.value.width = l, g.value.height = t - 47;
|
|
274
274
|
});
|
|
275
275
|
O.value = new ResizeObserver(e), O.value.observe(be.value);
|
|
276
276
|
}
|
|
277
277
|
}), Le(() => {
|
|
278
278
|
O.value && O.value.disconnect();
|
|
279
279
|
});
|
|
280
|
-
const Q = s(() => Math.max(...a.allMinimaps.map((e) => e.series.length), a.minimap.length || 0)),
|
|
280
|
+
const Q = s(() => Math.max(...a.allMinimaps.map((e) => e.series.length), a.minimap.length || 0)), p = s(() => {
|
|
281
281
|
if (!Q.value) return 0;
|
|
282
282
|
const e = Math.max(1, Q.value - (a.minimapCompact ? 1 : 0));
|
|
283
|
-
return
|
|
283
|
+
return g.value.width / e;
|
|
284
284
|
}), Ie = s(() => {
|
|
285
285
|
const e = [];
|
|
286
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)
|
|
@@ -288,7 +288,7 @@ const ll = {
|
|
|
288
288
|
l?.isVisible && Array.isArray(l?.series) && e.push(...l.series.filter(Number.isFinite));
|
|
289
289
|
return e.length ? { min: Math.min(...e), max: Math.max(...e) } : { min: 0, max: 1 };
|
|
290
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,
|
|
291
|
+
const l = Math.max(1, g.value.height);
|
|
292
292
|
if (pt.value) {
|
|
293
293
|
const t = bt.value;
|
|
294
294
|
return (1 - (Math.max(-1, Math.min(1, e / t)) + 1) / 2) * l;
|
|
@@ -296,7 +296,7 @@ const ll = {
|
|
|
296
296
|
const t = Math.min(0, z.value), o = Math.max(0, U.value);
|
|
297
297
|
return l - (e - t) / Math.max(1e-9, o - t) * l;
|
|
298
298
|
}
|
|
299
|
-
}, De = s(() => kt(0)), ze = s(() => a.allMinimaps.length ? a.allMinimaps.filter((e) => e.type === "bar").length : 0), pe = s(() =>
|
|
299
|
+
}, De = s(() => kt(0)), ze = s(() => a.allMinimaps.length ? a.allMinimaps.filter((e) => e.type === "bar").length : 0), pe = s(() => p.value / (ze.value || 1) * 0.8);
|
|
300
300
|
function We(e, l, t) {
|
|
301
301
|
const o = pe.value, r = Math.max(1, ze.value), h = Q.value - 1;
|
|
302
302
|
return t === 0 ? e + o / 2 * l : t === h ? e - o / 2 * (r - l) : e - r * o / 2 + l * o;
|
|
@@ -305,17 +305,17 @@ const ll = {
|
|
|
305
305
|
return [0, Q.value - 1].includes(l) ? pe.value / 2 : pe.value;
|
|
306
306
|
}
|
|
307
307
|
function wt(e, l, t) {
|
|
308
|
-
const o = (
|
|
308
|
+
const o = (y, v, D) => Math.max(v, Math.min(D, y));
|
|
309
309
|
if (l <= 0) {
|
|
310
|
-
const
|
|
311
|
-
return (v) => t - (v - e) /
|
|
310
|
+
const y = Math.max(1e-9, 0 - e);
|
|
311
|
+
return (v) => t - (v - e) / y * t;
|
|
312
312
|
}
|
|
313
313
|
if (e >= 0) {
|
|
314
|
-
const
|
|
315
|
-
return (v) => t - (v - 0) /
|
|
314
|
+
const y = Math.max(1e-9, l - 0);
|
|
315
|
+
return (v) => t - (v - 0) / y * t;
|
|
316
316
|
}
|
|
317
317
|
const h = Math.max(1e-9, Math.max(Math.abs(e), Math.abs(l)));
|
|
318
|
-
return (
|
|
318
|
+
return (y) => (1 - (o(y / h, -1, 1) + 1) / 2) * t;
|
|
319
319
|
}
|
|
320
320
|
function He(e, l = !1) {
|
|
321
321
|
if (!e || !e.length)
|
|
@@ -331,24 +331,24 @@ const ll = {
|
|
|
331
331
|
fullMarkers: [],
|
|
332
332
|
selectionMarkers: []
|
|
333
333
|
};
|
|
334
|
-
const t = Math.max(1,
|
|
335
|
-
const
|
|
334
|
+
const t = Math.max(1, g.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)), y = Math.min(r, Math.max(h + 1, X.value)), v = e.map((f, et) => {
|
|
335
|
+
const oe = f, tt = Number.isFinite(oe), Ht = p.value * et + (a.minimapCompact ? 0 : p.value / 2), Gt = o(0);
|
|
336
336
|
return {
|
|
337
337
|
x: Ht,
|
|
338
|
-
y: tt ? o(
|
|
339
|
-
v:
|
|
340
|
-
value: tt ?
|
|
338
|
+
y: tt ? o(oe) : NaN,
|
|
339
|
+
v: oe,
|
|
340
|
+
value: oe == null ? null : tt ? oe : null,
|
|
341
341
|
y0: Gt,
|
|
342
342
|
i: et
|
|
343
343
|
};
|
|
344
|
-
}), D = (
|
|
344
|
+
}), D = (f) => f >= 0 && f < v.length && Number.isFinite(v[f]?.value), H = v.filter((f) => Number.isFinite(f.value) && !D(f.i - 1) && !D(f.i + 1)), Re = H.filter((f) => f.i >= h && f.i < y), G = v.slice(h, y), Wt = v.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? it(v) : ut(v.filter((f) => f.value != null)) : a.cutNullValues ? ot(v) : rt(v.filter((f) => f.value != null)) : "", Xt = G.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? it(G) : ut(G.filter((f) => f.value != null)) : a.cutNullValues ? ot(G) : rt(G.filter((f) => f.value != null)) : "";
|
|
345
345
|
return {
|
|
346
346
|
fullSet: Wt,
|
|
347
347
|
points: v,
|
|
348
348
|
selectionSet: Xt,
|
|
349
349
|
sliced: G,
|
|
350
350
|
firstPlot: v[h] || null,
|
|
351
|
-
lastPlot: v[Math.max(0,
|
|
351
|
+
lastPlot: v[Math.max(0, y - 1)] || null,
|
|
352
352
|
hasFull: v.length >= 2,
|
|
353
353
|
hasSelection: G.length >= 2,
|
|
354
354
|
fullMarkers: H,
|
|
@@ -375,8 +375,8 @@ const ll = {
|
|
|
375
375
|
}) : []), C = s(() => {
|
|
376
376
|
const e = I.value, l = Math.max(e + 1, X.value);
|
|
377
377
|
return {
|
|
378
|
-
x:
|
|
379
|
-
width:
|
|
378
|
+
x: p.value * e + (a.minimapCompact ? 0 : p.value / 2),
|
|
379
|
+
width: p.value * (l - e) - p.value
|
|
380
380
|
};
|
|
381
381
|
}), E = d(a.minimapSelectedIndex);
|
|
382
382
|
function St(e) {
|
|
@@ -408,9 +408,9 @@ const ll = {
|
|
|
408
408
|
let T = null, V = null, A = null, B = null;
|
|
409
409
|
const Ue = d(a.min);
|
|
410
410
|
function Pe(e) {
|
|
411
|
-
if (!
|
|
412
|
-
const l =
|
|
413
|
-
return Math.round(a.min +
|
|
411
|
+
if (!k.value) return a.min;
|
|
412
|
+
const l = k.value.getBoundingClientRect(), t = l.left + Te / 2, o = l.right - Te / 2, r = Math.max(1, o - t), y = (Math.max(t, Math.min(e, o)) - t) / r, v = Math.max(1, a.max - a.min);
|
|
413
|
+
return Math.round(a.min + y * v);
|
|
414
414
|
}
|
|
415
415
|
const Ze = async (e) => {
|
|
416
416
|
if (W.value = !0, !a.enableSelectionDrag) return;
|
|
@@ -420,13 +420,13 @@ const ll = {
|
|
|
420
420
|
if (!o || !(o instanceof Element) || o.classList && o.classList.contains("range-handle")) return;
|
|
421
421
|
te.value = !0;
|
|
422
422
|
const r = l ? t ? t.clientX : 0 : e.clientX;
|
|
423
|
-
if (Rt.value = r, Ge.value = r, a.focusOnDrag && !Nt.value &&
|
|
423
|
+
if (Rt.value = r, Ge.value = r, a.focusOnDrag && !Nt.value && k.value) {
|
|
424
424
|
Ue.value = Pe(r);
|
|
425
|
-
const h = Math.min(0.95, Math.max(0.05, a.focusRangeRatio)),
|
|
425
|
+
const h = Math.min(0.95, Math.max(0.05, a.focusRangeRatio)), y = a.max - a.min, v = Math.max(1, Math.round(y * h)), D = Math.floor(v / 2);
|
|
426
426
|
let H = Ue.value - D;
|
|
427
427
|
H = Math.max(a.min, Math.min(H, a.max - v));
|
|
428
428
|
const Re = Math.min(a.max, H + v);
|
|
429
|
-
_(H), ee(Re), st(
|
|
429
|
+
_(H), ee(Re), st(k.value, "mouseup"), await ve(), st(k.value, "mousedown", { clientX: r });
|
|
430
430
|
}
|
|
431
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
432
|
};
|
|
@@ -434,9 +434,9 @@ const ll = {
|
|
|
434
434
|
te.value && Ye(e.clientX);
|
|
435
435
|
}
|
|
436
436
|
function Bt(e) {
|
|
437
|
-
if (!te.value || !
|
|
437
|
+
if (!te.value || !k.value) return;
|
|
438
438
|
const l = e.target;
|
|
439
|
-
if (!(l instanceof Element) || !
|
|
439
|
+
if (!(l instanceof Element) || !k.value.contains(l) || l.classList && l.classList.contains("range-handle")) return;
|
|
440
440
|
e.preventDefault();
|
|
441
441
|
const t = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
442
442
|
t && Ye(t.clientX);
|
|
@@ -445,8 +445,8 @@ const ll = {
|
|
|
445
445
|
if (!te.value) return;
|
|
446
446
|
const l = Pe(Ge.value), o = Pe(e) - l, r = Math.max(1, Oe.value - Ce.value);
|
|
447
447
|
let h = Math.round(Ce.value + o);
|
|
448
|
-
const
|
|
449
|
-
h <
|
|
448
|
+
const y = a.min, v = a.max - r;
|
|
449
|
+
h < y && (h = y), h > v && (h = v);
|
|
450
450
|
const D = h + r;
|
|
451
451
|
_(h), ee(D);
|
|
452
452
|
}
|
|
@@ -459,12 +459,12 @@ const ll = {
|
|
|
459
459
|
function Je() {
|
|
460
460
|
te.value = !1, T && A && window.removeEventListener(T, A), V && B && window.removeEventListener(V, B), T = V = null, A = B = null;
|
|
461
461
|
}
|
|
462
|
-
const F = d(!1), le = d(null), ae = d(null), Ne = d(1),
|
|
462
|
+
const F = d(!1), le = d(null), ae = d(null), Ne = d(1), ce = d(1), W = d(!1);
|
|
463
463
|
function qe() {
|
|
464
464
|
le.value && (Ne.value = le.value.getBoundingClientRect().width);
|
|
465
465
|
}
|
|
466
466
|
function Ke() {
|
|
467
|
-
ae.value && (
|
|
467
|
+
ae.value && (ce.value = ae.value.getBoundingClientRect().width);
|
|
468
468
|
}
|
|
469
469
|
const Qe = d(0);
|
|
470
470
|
function je(e) {
|
|
@@ -520,10 +520,10 @@ const ll = {
|
|
|
520
520
|
if (E.value >= I.value && E.value < X.value) {
|
|
521
521
|
const e = E.value;
|
|
522
522
|
return {
|
|
523
|
-
x1:
|
|
524
|
-
x2:
|
|
523
|
+
x1: p.value * e + (a.minimapCompact ? 0 : p.value / 2),
|
|
524
|
+
x2: p.value * e + (a.minimapCompact ? 0 : p.value / 2),
|
|
525
525
|
y1: 0,
|
|
526
|
-
y2: Math.max(
|
|
526
|
+
y2: Math.max(g.value.height, 0),
|
|
527
527
|
stroke: a.minimapIndicatorColor,
|
|
528
528
|
"stroke-linecap": "round",
|
|
529
529
|
"stroke-dasharray": 2,
|
|
@@ -537,7 +537,7 @@ const ll = {
|
|
|
537
537
|
style: { padding: "0 24px" },
|
|
538
538
|
class: "vue-data-ui-zoom",
|
|
539
539
|
ref_key: "zoomWrapper",
|
|
540
|
-
ref:
|
|
540
|
+
ref: k,
|
|
541
541
|
onMousedown: Ze,
|
|
542
542
|
onTouchstart: Ze,
|
|
543
543
|
onTouchend: l[11] || (l[11] = (t) => W.value = !1)
|
|
@@ -553,7 +553,7 @@ const ll = {
|
|
|
553
553
|
role: "button",
|
|
554
554
|
class: "vue-data-ui-refresh-button",
|
|
555
555
|
style: L({
|
|
556
|
-
top:
|
|
556
|
+
top: b.value ? "36px" : "-16px",
|
|
557
557
|
pointerEvents: "all !important"
|
|
558
558
|
}),
|
|
559
559
|
onClick: Fe
|
|
@@ -573,11 +573,11 @@ const ll = {
|
|
|
573
573
|
onMouseenter: l[9] || (l[9] = (t) => W.value = !0),
|
|
574
574
|
onMouseleave: l[10] || (l[10] = (t) => W.value = !1)
|
|
575
575
|
}, [
|
|
576
|
-
|
|
576
|
+
b.value ? (u(), i("div", nl, [
|
|
577
577
|
(u(), i("svg", {
|
|
578
578
|
key: `mm-${n.minimapMerged ? "merged" : "split"}-${n.minimapCompact ? "compact" : "normal"}`,
|
|
579
579
|
xmlns: me(Qt),
|
|
580
|
-
viewBox: `0 0 ${Math.max(0,
|
|
580
|
+
viewBox: `0 0 ${Math.max(0, g.value.width)} ${Math.max(0, g.value.height)}`
|
|
581
581
|
}, [
|
|
582
582
|
P("defs", null, [
|
|
583
583
|
P("linearGradient", {
|
|
@@ -602,8 +602,8 @@ const ll = {
|
|
|
602
602
|
class: "vue-ui-zoom-minimap-frame",
|
|
603
603
|
x: 0,
|
|
604
604
|
y: 0,
|
|
605
|
-
width:
|
|
606
|
-
height:
|
|
605
|
+
width: g.value.width,
|
|
606
|
+
height: g.value.height,
|
|
607
607
|
fill: "none",
|
|
608
608
|
stroke: n.minimapFrameColor,
|
|
609
609
|
rx: 3
|
|
@@ -617,9 +617,9 @@ const ll = {
|
|
|
617
617
|
"stroke-linecap": "round",
|
|
618
618
|
"stroke-linejoin": "round",
|
|
619
619
|
style: { opacity: "0.6" }
|
|
620
|
-
}, null, 8, sl)) : (u(), i(
|
|
621
|
-
(u(!0), i(
|
|
622
|
-
(u(!0), i(
|
|
620
|
+
}, null, 8, sl)) : (u(), i(M, { key: 2 }, [
|
|
621
|
+
(u(!0), i(M, null, R(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
|
|
622
|
+
(u(!0), i(M, null, R(t.points, (r, h) => (u(), i(M, null, [
|
|
623
623
|
t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
|
|
624
624
|
key: 0,
|
|
625
625
|
x: We(r.x, o, h),
|
|
@@ -631,7 +631,7 @@ const ll = {
|
|
|
631
631
|
}, null, 8, cl)) : m("", !0)
|
|
632
632
|
], 64))), 256))
|
|
633
633
|
]))), 256)),
|
|
634
|
-
(u(!0), i(
|
|
634
|
+
(u(!0), i(M, null, R(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
635
635
|
key: String(t.key)
|
|
636
636
|
}, [
|
|
637
637
|
t.isVisible ? (u(), i("path", {
|
|
@@ -641,13 +641,13 @@ const ll = {
|
|
|
641
641
|
stroke: t.color,
|
|
642
642
|
style: { opacity: "0.6" }
|
|
643
643
|
}, null, 8, vl)) : m("", !0),
|
|
644
|
-
t.isVisible ? (u(!0), i(
|
|
644
|
+
t.isVisible ? (u(!0), i(M, { key: 1 }, R(t.fullMarkers, (o) => (u(), i("circle", {
|
|
645
645
|
key: `sel-dot-under-${t.key}-${o.i}`,
|
|
646
646
|
cx: o.x,
|
|
647
647
|
cy: o.y,
|
|
648
648
|
r: "2",
|
|
649
649
|
fill: t.color,
|
|
650
|
-
stroke:
|
|
650
|
+
stroke: x.value,
|
|
651
651
|
"stroke-width": "0.5",
|
|
652
652
|
style: { opacity: "0.6" }
|
|
653
653
|
}, null, 8, ml))), 128)) : m("", !0)
|
|
@@ -656,24 +656,24 @@ const ll = {
|
|
|
656
656
|
P("rect", {
|
|
657
657
|
x: C.value.x,
|
|
658
658
|
width: C.value.width < 0 ? 0 : C.value.width,
|
|
659
|
-
height: Math.max(
|
|
659
|
+
height: Math.max(g.value.height, 0),
|
|
660
660
|
y: 0,
|
|
661
|
-
fill:
|
|
661
|
+
fill: x.value,
|
|
662
662
|
rx: n.minimapSelectionRadius,
|
|
663
663
|
stroke: "none"
|
|
664
664
|
}, null, 8, hl),
|
|
665
665
|
P("rect", {
|
|
666
666
|
x: C.value.x,
|
|
667
667
|
width: C.value.width < 0 ? 0 : C.value.width,
|
|
668
|
-
height: Math.max(
|
|
668
|
+
height: Math.max(g.value.height, 0),
|
|
669
669
|
y: 0,
|
|
670
670
|
rx: n.minimapSelectionRadius,
|
|
671
|
-
fill:
|
|
671
|
+
fill: x.value
|
|
672
672
|
}, null, 8, dl),
|
|
673
673
|
P("rect", {
|
|
674
674
|
x: C.value.x,
|
|
675
675
|
width: C.value.width < 0 ? 0 : C.value.width,
|
|
676
|
-
height: Math.max(
|
|
676
|
+
height: Math.max(g.value.height, 0),
|
|
677
677
|
y: 0,
|
|
678
678
|
fill: n.minimapSelectedColor,
|
|
679
679
|
rx: n.minimapSelectionRadius,
|
|
@@ -686,17 +686,17 @@ const ll = {
|
|
|
686
686
|
key: 4,
|
|
687
687
|
class: "slicer-minimap-zero-line",
|
|
688
688
|
x1: 0,
|
|
689
|
-
x2:
|
|
689
|
+
x2: g.value.width,
|
|
690
690
|
y1: De.value,
|
|
691
691
|
y2: De.value,
|
|
692
692
|
stroke: n.minimapFrameColor,
|
|
693
693
|
"stroke-width": "0.5"
|
|
694
694
|
}, null, 8, gl)) : m("", !0),
|
|
695
|
-
n.minimapMerged ? (u(), i(
|
|
696
|
-
c.value && c.value.sliced && c.value.sliced.length ? (u(), i(
|
|
695
|
+
n.minimapMerged ? (u(), i(M, { key: 5 }, [
|
|
696
|
+
c.value && c.value.sliced && c.value.sliced.length ? (u(), i(M, { key: 0 }, [
|
|
697
697
|
c.value.selectionSet ? (u(), i("path", {
|
|
698
698
|
key: 0,
|
|
699
|
-
d: `M${c.value.sliced[0].x},${Math.max(
|
|
699
|
+
d: `M${c.value.sliced[0].x},${Math.max(g.value.height, 0)} ${c.value.selectionSet} L${c.value.sliced[c.value.sliced.length - 1].x},${Math.max(g.value.height, 0)}Z`,
|
|
700
700
|
fill: `url(#${Ve.value})`,
|
|
701
701
|
stroke: "none",
|
|
702
702
|
style: { opacity: "1" }
|
|
@@ -712,8 +712,8 @@ const ll = {
|
|
|
712
712
|
}, null, 8, yl)) : m("", !0)
|
|
713
713
|
], 64)) : m("", !0)
|
|
714
714
|
], 64)) : (u(), i("g", Ml, [
|
|
715
|
-
(u(!0), i(
|
|
716
|
-
(u(!0), i(
|
|
715
|
+
(u(!0), i(M, null, R(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
|
|
716
|
+
(u(!0), i(M, null, R(t.points, (r, h) => (u(), i(M, null, [
|
|
717
717
|
t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
|
|
718
718
|
key: 0,
|
|
719
719
|
x: We(r.x, o, h),
|
|
@@ -727,7 +727,7 @@ const ll = {
|
|
|
727
727
|
}, null, 12, bl)) : m("", !0)
|
|
728
728
|
], 64))), 256))
|
|
729
729
|
]))), 256)),
|
|
730
|
-
(u(!0), i(
|
|
730
|
+
(u(!0), i(M, null, R(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
731
731
|
key: String(t.key)
|
|
732
732
|
}, [
|
|
733
733
|
t && t.hasSelection && t.selectionSet && t.isVisible ? (u(), i("path", {
|
|
@@ -741,35 +741,35 @@ const ll = {
|
|
|
741
741
|
}, null, 8, pl)) : m("", !0)
|
|
742
742
|
]))), 128))
|
|
743
743
|
])),
|
|
744
|
-
|
|
744
|
+
b.value && n.minimapCompact ? (u(), i("rect", {
|
|
745
745
|
key: 7,
|
|
746
746
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
747
747
|
x: C.value.x - 8,
|
|
748
748
|
y: 0,
|
|
749
749
|
width: 8,
|
|
750
|
-
height:
|
|
751
|
-
fill:
|
|
750
|
+
height: g.value.height,
|
|
751
|
+
fill: x.value,
|
|
752
752
|
stroke: n.textColor,
|
|
753
753
|
rx: 3
|
|
754
754
|
}, null, 8, kl)) : m("", !0),
|
|
755
|
-
|
|
755
|
+
b.value && n.minimapCompact ? (u(), i("rect", {
|
|
756
756
|
key: 8,
|
|
757
757
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
758
758
|
x: C.value.x + C.value.width,
|
|
759
759
|
y: 0,
|
|
760
760
|
width: 8,
|
|
761
|
-
height:
|
|
762
|
-
fill:
|
|
761
|
+
height: g.value.height,
|
|
762
|
+
fill: x.value,
|
|
763
763
|
stroke: n.textColor,
|
|
764
764
|
rx: 3
|
|
765
765
|
}, null, 8, wl)) : m("", !0),
|
|
766
|
-
n.minimapMerged ? (u(), i(
|
|
766
|
+
n.minimapMerged ? (u(), i(M, { key: 9 }, [
|
|
767
767
|
c.value && c.value.firstPlot && c.value.firstPlot.value !== null ? (u(), i("circle", {
|
|
768
768
|
key: 0,
|
|
769
769
|
cx: c.value.firstPlot.x,
|
|
770
770
|
cy: c.value.firstPlot.y,
|
|
771
771
|
"stroke-width": "0.5",
|
|
772
|
-
stroke:
|
|
772
|
+
stroke: x.value,
|
|
773
773
|
r: "4",
|
|
774
774
|
fill: n.minimapLineColor
|
|
775
775
|
}, null, 8, Sl)) : m("", !0),
|
|
@@ -778,14 +778,14 @@ const ll = {
|
|
|
778
778
|
cx: c.value.firstPlot.x,
|
|
779
779
|
cy: c.value.firstPlot.y,
|
|
780
780
|
r: "2",
|
|
781
|
-
fill:
|
|
781
|
+
fill: x.value
|
|
782
782
|
}, null, 8, Cl)) : m("", !0),
|
|
783
783
|
c.value && c.value.lastPlot && c.value.lastPlot.value !== null ? (u(), i("circle", {
|
|
784
784
|
key: 2,
|
|
785
785
|
cx: c.value.lastPlot.x,
|
|
786
786
|
cy: c.value.lastPlot.y,
|
|
787
787
|
"stroke-width": "0.5",
|
|
788
|
-
stroke:
|
|
788
|
+
stroke: x.value,
|
|
789
789
|
r: "4",
|
|
790
790
|
fill: n.minimapLineColor
|
|
791
791
|
}, null, 8, Pl)) : m("", !0),
|
|
@@ -794,19 +794,19 @@ const ll = {
|
|
|
794
794
|
cx: c.value.lastPlot.x,
|
|
795
795
|
cy: c.value.lastPlot.y,
|
|
796
796
|
r: "2",
|
|
797
|
-
fill:
|
|
797
|
+
fill: x.value
|
|
798
798
|
}, null, 8, Nl)) : m("", !0)
|
|
799
799
|
], 64)) : (u(), i("g", Rl, [
|
|
800
|
-
(u(!0), i(
|
|
800
|
+
(u(!0), i(M, null, R(j.value.filter((t) => t.type === "line"), (t) => (u(), i("g", {
|
|
801
801
|
key: String(t.key)
|
|
802
802
|
}, [
|
|
803
|
-
t.isVisible ? (u(!0), i(
|
|
803
|
+
t.isVisible ? (u(!0), i(M, { key: 0 }, R(t.selectionMarkers, (o) => (u(), i("circle", {
|
|
804
804
|
key: `sel-dot-${t.key}-${o.i}`,
|
|
805
805
|
cx: o.x,
|
|
806
806
|
cy: o.y,
|
|
807
807
|
r: "2.5",
|
|
808
808
|
fill: t.color,
|
|
809
|
-
stroke:
|
|
809
|
+
stroke: x.value,
|
|
810
810
|
"stroke-width": "0.5"
|
|
811
811
|
}, null, 8, Ll))), 128)) : m("", !0),
|
|
812
812
|
t && t.firstPlot && t.isVisible && t.firstPlot.value !== null ? (u(), i("circle", {
|
|
@@ -814,7 +814,7 @@ const ll = {
|
|
|
814
814
|
cx: t.firstPlot.x,
|
|
815
815
|
cy: t.firstPlot.y,
|
|
816
816
|
"stroke-width": "0.5",
|
|
817
|
-
stroke:
|
|
817
|
+
stroke: x.value,
|
|
818
818
|
r: "4",
|
|
819
819
|
fill: t.color
|
|
820
820
|
}, null, 8, $l)) : m("", !0),
|
|
@@ -823,14 +823,14 @@ const ll = {
|
|
|
823
823
|
cx: t.firstPlot.x,
|
|
824
824
|
cy: t.firstPlot.y,
|
|
825
825
|
r: "2",
|
|
826
|
-
fill:
|
|
826
|
+
fill: x.value
|
|
827
827
|
}, null, 8, El)) : m("", !0),
|
|
828
828
|
t && t.lastPlot && t.isVisible && t.lastPlot.value !== null ? (u(), i("circle", {
|
|
829
829
|
key: 3,
|
|
830
830
|
cx: t.lastPlot.x,
|
|
831
831
|
cy: t.lastPlot.y,
|
|
832
832
|
"stroke-width": "0.5",
|
|
833
|
-
stroke:
|
|
833
|
+
stroke: x.value,
|
|
834
834
|
r: "4",
|
|
835
835
|
fill: t.color
|
|
836
836
|
}, null, 8, Tl)) : m("", !0),
|
|
@@ -839,19 +839,19 @@ const ll = {
|
|
|
839
839
|
cx: t.lastPlot.x,
|
|
840
840
|
cy: t.lastPlot.y,
|
|
841
841
|
r: "2",
|
|
842
|
-
fill:
|
|
842
|
+
fill: x.value
|
|
843
843
|
}, null, 8, Vl)) : m("", !0)
|
|
844
844
|
]))), 128))
|
|
845
845
|
])),
|
|
846
|
-
(u(!0), i(
|
|
846
|
+
(u(!0), i(M, null, R(Be.value, (t, o) => (u(), i("rect", {
|
|
847
847
|
y: 0,
|
|
848
|
-
height: Math.max(
|
|
848
|
+
height: Math.max(g.value.height, 0),
|
|
849
849
|
fill: "transparent",
|
|
850
850
|
style: L([{ "pointer-events": "all !important" }, {
|
|
851
851
|
cursor: t >= I.value && t < X.value && n.enableSelectionDrag ? F.value ? "grabbing" : "grab" : "default"
|
|
852
852
|
}]),
|
|
853
|
-
x:
|
|
854
|
-
width:
|
|
853
|
+
x: p.value * o - (n.minimapCompact ? p.value / 2 : 0),
|
|
854
|
+
width: p.value < 0 ? 0 : p.value,
|
|
855
855
|
onMousedown: l[0] || (l[0] = (r) => F.value = !0),
|
|
856
856
|
onMouseup: l[1] || (l[1] = (r) => F.value = !1),
|
|
857
857
|
onMouseenter: (r) => Pt(t),
|
|
@@ -863,7 +863,7 @@ const ll = {
|
|
|
863
863
|
])) : m("", !0),
|
|
864
864
|
P("div", {
|
|
865
865
|
class: "slider-track",
|
|
866
|
-
style: L({ visibility:
|
|
866
|
+
style: L({ visibility: b.value && n.minimapCompact ? "hidden" : "visible" })
|
|
867
867
|
}, null, 4),
|
|
868
868
|
P("div", {
|
|
869
869
|
class: Y({
|
|
@@ -875,7 +875,7 @@ const ll = {
|
|
|
875
875
|
style: L({
|
|
876
876
|
...N.value,
|
|
877
877
|
cursor: F.value ? "grabbing" : "grab",
|
|
878
|
-
visibility:
|
|
878
|
+
visibility: b.value && n.minimapCompact ? "hidden" : "visible"
|
|
879
879
|
})
|
|
880
880
|
}, null, 38),
|
|
881
881
|
n.enableRangeHandles ? at((u(), i("input", {
|
|
@@ -886,8 +886,8 @@ const ll = {
|
|
|
886
886
|
class: Y({
|
|
887
887
|
"range-left": !0,
|
|
888
888
|
"range-handle": !0,
|
|
889
|
-
"range-minimap":
|
|
890
|
-
"range-invisible":
|
|
889
|
+
"range-minimap": b.value && n.verticalHandles,
|
|
890
|
+
"range-invisible": b.value && n.minimapCompact
|
|
891
891
|
}),
|
|
892
892
|
min: n.min,
|
|
893
893
|
max: $.value && n.minimapCompact ? K.value : n.max,
|
|
@@ -910,8 +910,8 @@ const ll = {
|
|
|
910
910
|
class: Y({
|
|
911
911
|
"range-right": !0,
|
|
912
912
|
"range-handle": !0,
|
|
913
|
-
"range-minimap":
|
|
914
|
-
"range-invisible":
|
|
913
|
+
"range-minimap": b.value && n.verticalHandles,
|
|
914
|
+
"range-invisible": b.value && n.minimapCompact
|
|
915
915
|
}),
|
|
916
916
|
min: n.min,
|
|
917
917
|
max: $.value && n.minimapCompact ? K.value : n.max,
|
|
@@ -940,10 +940,10 @@ const ll = {
|
|
|
940
940
|
left: N.value.tooltipLeft,
|
|
941
941
|
color: me(Ee)(n.selectColor),
|
|
942
942
|
backgroundColor: n.selectColor,
|
|
943
|
-
border: `1px solid ${
|
|
943
|
+
border: `1px solid ${x.value}`,
|
|
944
944
|
zIndex: `${Qe.value + 4}`,
|
|
945
945
|
visibility: ne.value || n.labelLeft === n.labelRight ? "hidden" : "visible",
|
|
946
|
-
top:
|
|
946
|
+
top: b.value && n.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
947
947
|
})
|
|
948
948
|
}, $e(n.labelLeft), 7)) : m("", !0),
|
|
949
949
|
(ne.value || n.labelLeft === n.labelRight) && (n.labelLeft || n.labelRight) ? (u(), i("div", {
|
|
@@ -961,9 +961,9 @@ const ll = {
|
|
|
961
961
|
width: ie.value.width + "px",
|
|
962
962
|
color: me(Ee)(n.selectColor),
|
|
963
963
|
backgroundColor: n.selectColor,
|
|
964
|
-
border: `1px solid ${
|
|
964
|
+
border: `1px solid ${x.value}`,
|
|
965
965
|
zIndex: "4",
|
|
966
|
-
top:
|
|
966
|
+
top: b.value && n.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
967
967
|
})
|
|
968
968
|
}, $e(n.labelLeft === n.labelRight ? n.labelLeft : `${n.labelLeft} - ${n.labelRight}`), 7)) : m("", !0),
|
|
969
969
|
n.labelRight ? (u(), i("div", {
|
|
@@ -980,16 +980,16 @@ const ll = {
|
|
|
980
980
|
left: N.value.tooltipRight,
|
|
981
981
|
color: me(Ee)(n.selectColor),
|
|
982
982
|
backgroundColor: n.selectColor,
|
|
983
|
-
border: `1px solid ${
|
|
983
|
+
border: `1px solid ${x.value}`,
|
|
984
984
|
zIndex: "4",
|
|
985
985
|
visibility: ne.value || n.labelLeft === n.labelRight ? "hidden" : "visible",
|
|
986
|
-
top:
|
|
986
|
+
top: b.value && n.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
987
987
|
})
|
|
988
988
|
}, $e(n.labelRight), 7)) : m("", !0)
|
|
989
989
|
], 544)
|
|
990
990
|
], 544));
|
|
991
991
|
}
|
|
992
|
-
}, Gl = /* @__PURE__ */ tl(Il, [["__scopeId", "data-v-
|
|
992
|
+
}, Gl = /* @__PURE__ */ tl(Il, [["__scopeId", "data-v-a7df6c49"]]);
|
|
993
993
|
export {
|
|
994
994
|
Gl as S
|
|
995
995
|
};
|