vue-data-ui 3.15.3 → 3.15.4
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-Dng9G5hr.js → Arrow-BusSiqit.js} +1 -1
- package/dist/{BaseDraggableDialog-BXIITt8m.js → BaseDraggableDialog-CcDUyrEz.js} +2 -2
- package/dist/{BaseIcon-COEWBdOr.js → BaseIcon-D9oV9F4k.js} +1 -1
- package/dist/{BaseLegendToggle-aDygzw7d.js → BaseLegendToggle-BBqvZhDh.js} +1 -1
- package/dist/{BaseZoomControls-DkJaGyAv.js → BaseZoomControls-D3e4t-5f.js} +2 -2
- package/dist/{ColorPicker-B-5UbA1C.js → ColorPicker--1jDKzvm.js} +2 -2
- package/dist/{DataTable-C-gJ3cD_.js → DataTable-CQH-FWum.js} +2 -2
- package/dist/{Legend-9T2e7Hm_.js → Legend-bchEhOOv.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CfTb5Sfu.js → NonSvgPenAndPaper-Dl3QXb9K.js} +3 -3
- package/dist/{PackageVersion-D4g_IquI.js → PackageVersion-CQxY6U8v.js} +1 -1
- package/dist/{PenAndPaper-faw-s7Iq.js → PenAndPaper-B51jmZpI.js} +3 -3
- package/dist/{Shape-DkzPeTe-.js → Shape-B1p-qP2S.js} +1 -1
- package/dist/{Slicer-CuuGle3L.js → Slicer-Bq7AfKc1.js} +2 -2
- package/dist/{SlicerPreview-YFFNdBJ2.js → SlicerPreview-B4DP0TOv.js} +175 -170
- package/dist/{SparkTooltip-BYr36r63.js → SparkTooltip-FXQZa3m1.js} +1 -1
- package/dist/{Title-BeDyPVX2.js → Title-B7pGMRI9.js} +1 -1
- package/dist/{Tooltip-CIAWAT6H.js → Tooltip-DOVSgQDu.js} +1 -1
- package/dist/{UserOptions-DwAVLo4U.js → UserOptions-X4pTcXzk.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CcSQTrWW.js → dom-to-png-CQ8VHj5N.js} +1 -1
- package/dist/{img-atDFcrvY.js → img-CaBQSH60.js} +1 -1
- package/dist/{labelUtils-BLs1JiJ2.js → labelUtils-JA4-kZX1.js} +1 -1
- package/dist/{lib-BLeQNY56.js → lib-CM2Ky_IJ.js} +43 -39
- package/dist/{pdf-CGjQTspF.js → pdf-Dglcm-nl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BKJ0MI0P.js → useAutoSizeLabelsInsideViewbox-BS_9JK8U.js} +1 -1
- package/dist/{useNestedProp-VrHe63vz.js → useNestedProp-CjM7zaEZ.js} +1 -1
- package/dist/{usePrinter-2GkN2e42.js → usePrinter-CFeOnrt8.js} +2 -2
- package/dist/{vue-data-ui-DkeOB9mM.js → vue-data-ui-Ddhb4SpR.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-C0TcvC9o.js → vue-ui-3d-bar-BZ3Ynw-V.js} +6 -6
- package/dist/{vue-ui-accordion-usMGjw6s.js → vue-ui-accordion-C5aFnqjM.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C8_yYbNZ.js → vue-ui-age-pyramid-CrwcSSty.js} +6 -6
- package/dist/{vue-ui-annotator-BCQCra1E.js → vue-ui-annotator-DOPfztqh.js} +7 -7
- package/dist/{vue-ui-bullet-DJ6vIjdU.js → vue-ui-bullet-DeftbMcl.js} +7 -7
- package/dist/{vue-ui-bump-XbrL_bBd.js → vue-ui-bump-DMdTgGV9.js} +6 -6
- package/dist/{vue-ui-candlestick-C833ORoI.js → vue-ui-candlestick-C4804pIv.js} +7 -7
- package/dist/{vue-ui-carousel-table-BALTo2Z7.js → vue-ui-carousel-table-DlBno86H.js} +4 -4
- package/dist/{vue-ui-chestnut-DGbH1-Ga.js → vue-ui-chestnut-f51B2gk7.js} +5 -5
- package/dist/{vue-ui-chord-DB6y88Sg.js → vue-ui-chord-Dhx_BrT6.js} +8 -8
- package/dist/{vue-ui-circle-pack-YawRN0q8.js → vue-ui-circle-pack-CoFUzVFj.js} +6 -6
- package/dist/{vue-ui-cursor-LMMcULMs.js → vue-ui-cursor-CM0s2RRz.js} +3 -3
- package/dist/{vue-ui-dag-BNZGhTGM.js → vue-ui-dag-CPnRzqnH.js} +7 -7
- package/dist/{vue-ui-dashboard-BL8Uh0Qy.js → vue-ui-dashboard-DC6UslJR.js} +69 -69
- package/dist/{vue-ui-digits-Bm7Gi-y7.js → vue-ui-digits-BK-ucadd.js} +2 -2
- package/dist/{vue-ui-donut-BMmxBiNv.js → vue-ui-donut-DSNHljTf.js} +10 -10
- package/dist/{vue-ui-donut-evolution-l8LHismR.js → vue-ui-donut-evolution-DdnM5ljC.js} +9 -9
- package/dist/{vue-ui-dumbbell-Fa9k4qOC.js → vue-ui-dumbbell-C3-9CCkc.js} +7 -7
- package/dist/{vue-ui-flow-CVqmmkWX.js → vue-ui-flow-J_qqij1w.js} +7 -7
- package/dist/{vue-ui-funnel-BOJaYUeH.js → vue-ui-funnel-CxWDQjMg.js} +6 -6
- package/dist/{vue-ui-galaxy-GqCJprpj.js → vue-ui-galaxy-CA2ZQBis.js} +9 -9
- package/dist/{vue-ui-gauge-DHvhoWf2.js → vue-ui-gauge-D8-NpuZy.js} +7 -7
- package/dist/{vue-ui-geo-B3bUuv05.js → vue-ui-geo-DEXrYYIa.js} +7 -7
- package/dist/{vue-ui-gizmo-D00rKRGe.js → vue-ui-gizmo-CWXqNCBk.js} +3 -3
- package/dist/{vue-ui-heatmap-qX84lW7F.js → vue-ui-heatmap-DEeYIIlB.js} +7 -7
- package/dist/{vue-ui-history-plot-DhhNYSSG.js → vue-ui-history-plot-BLZAZt2P.js} +8 -8
- package/dist/{vue-ui-horizontal-bar-DosR6PqD.js → vue-ui-horizontal-bar-BjafvB__.js} +10 -10
- package/dist/{vue-ui-kpi-BEQcRj0e.js → vue-ui-kpi-CVeNlEfp.js} +3 -3
- package/dist/{vue-ui-mini-loader-D8JsHpPb.js → vue-ui-mini-loader-BKSdoGOH.js} +2 -2
- package/dist/{vue-ui-molecule-1HPy1EzW.js → vue-ui-molecule-DDQaYmvI.js} +5 -5
- package/dist/{vue-ui-mood-radar-BmbH778F.js → vue-ui-mood-radar-DWdNAylt.js} +7 -7
- package/dist/{vue-ui-nested-donuts-D_JqvcIN.js → vue-ui-nested-donuts-BKi0-kMq.js} +30 -30
- package/dist/{vue-ui-onion-DrzdWiyM.js → vue-ui-onion-CkqBxjKJ.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-B_QUbkNH.js → vue-ui-parallel-coordinate-plot-CJkdtZWR.js} +41 -41
- package/dist/{vue-ui-quadrant-unMxfMdL.js → vue-ui-quadrant-BT7NhKgx.js} +9 -9
- package/dist/{vue-ui-quick-chart-CVYTqhqB.js → vue-ui-quick-chart-CFdfRPxe.js} +7 -7
- package/dist/{vue-ui-radar-BmWRXE90.js → vue-ui-radar-Du3BnjwB.js} +9 -9
- package/dist/{vue-ui-rating-BSJ9y_nW.js → vue-ui-rating-ClnZwaHs.js} +2 -2
- package/dist/{vue-ui-relation-circle-EBQ2E0PS.js → vue-ui-relation-circle-BgWVcby8.js} +7 -7
- package/dist/{vue-ui-ridgeline-DWmoCq84.js → vue-ui-ridgeline-Bmc9P-GZ.js} +9 -9
- package/dist/{vue-ui-rings-DKJTb5E2.js → vue-ui-rings-BAPbgNSU.js} +10 -10
- package/dist/{vue-ui-scatter-vmbmfTpn.js → vue-ui-scatter-DilXoHPi.js} +9 -9
- package/dist/{vue-ui-skeleton-ByLmde-M.js → vue-ui-skeleton-BxkufqvL.js} +3 -3
- package/dist/{vue-ui-smiley-CP9iisPH.js → vue-ui-smiley-_yLSfDOj.js} +2 -2
- package/dist/{vue-ui-spark-trend-BdbKTdDf.js → vue-ui-spark-trend-DzFx3BKG.js} +3 -3
- package/dist/{vue-ui-sparkbar-YHQ4p8kR.js → vue-ui-sparkbar-YTf_oBBs.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dj8V5lP-.js → vue-ui-sparkgauge-PZODMJtw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CayH9KXh.js → vue-ui-sparkhistogram-DhhbVfgV.js} +4 -4
- package/dist/{vue-ui-sparkline-fH5RHCuU.js → vue-ui-sparkline-BZECKd2s.js} +32 -32
- package/dist/{vue-ui-sparkstackbar-BRrXZ3HD.js → vue-ui-sparkstackbar-CNvFak4_.js} +4 -4
- package/dist/{vue-ui-stackbar-Cr4rjhgI.js → vue-ui-stackbar-DDznm22k.js} +10 -10
- package/dist/{vue-ui-stackline-BMWGoqHH.js → vue-ui-stackline-2TiDmJyE.js} +10 -10
- package/dist/{vue-ui-strip-plot-BT9wTw3K.js → vue-ui-strip-plot-wBgBbnlc.js} +7 -7
- package/dist/{vue-ui-table-CDSrL5c3.js → vue-ui-table-C2pmfF95.js} +5 -5
- package/dist/{vue-ui-table-heatmap-ZwN9ddMi.js → vue-ui-table-heatmap-pVcj0a3Y.js} +5 -5
- package/dist/{vue-ui-table-sparkline-C-Z-j9eE.js → vue-ui-table-sparkline-CU26h_-B.js} +13 -13
- package/dist/{vue-ui-thermometer-Bj3Ohkoi.js → vue-ui-thermometer-CTHU_q9y.js} +7 -7
- package/dist/{vue-ui-timer-BIbxNB8x.js → vue-ui-timer-CJdr8ey6.js} +5 -5
- package/dist/{vue-ui-tiremarks-C9YPABM6.js → vue-ui-tiremarks-DimUVYDm.js} +6 -6
- package/dist/{vue-ui-treemap-DLteVJzt.js → vue-ui-treemap-CG7c5MU9.js} +9 -9
- package/dist/{vue-ui-waffle-DKX02YVy.js → vue-ui-waffle-DTl0xzh9.js} +10 -10
- package/dist/{vue-ui-wheel-DAQnwoZW.js → vue-ui-wheel-BP2GUdHD.js} +6 -6
- package/dist/{vue-ui-word-cloud-3dO7FOUK.js → vue-ui-word-cloud-Co-IErno.js} +7 -7
- package/dist/{vue-ui-world-PReATjuv.js → vue-ui-world-sMWLqqq3.js} +7 -7
- package/dist/{vue-ui-xy-canvas-BlY9IPhZ.js → vue-ui-xy-canvas-D_-gXwit.js} +11 -11
- package/dist/{vue-ui-xy-Bpoi_CZC.js → vue-ui-xy-dHUxRUHR.js} +1014 -998
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as sl, computed as s, ref as f, watch as Q, onMounted as cl, onBeforeUnmount as Ve, onUpdated as ht, nextTick as xe, createElementBlock as i, openBlock as u, normalizeStyle as L, createElementVNode as A, createCommentVNode as c, renderSlot as ft, createVNode as vl, withDirectives as yt, unref as ke, Fragment as g, renderList as S, normalizeProps as gt, mergeProps as xt, normalizeClass as _, withKeys as kt, vModelText as Mt, toDisplayString as De } from "vue";
|
|
2
|
-
import { c as ml, y as dl, X as hl, x as ze, z as bt, A as pt, B as wt, C as St, D as Ct } from "./lib-
|
|
2
|
+
import { c as ml, y as dl, X as hl, x as ze, z as bt, A as pt, B as wt, C as St, D as Ct } from "./lib-CM2Ky_IJ.js";
|
|
3
3
|
import { t as He, d as fl, u as yl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import gl from "./BaseIcon-
|
|
4
|
+
import gl from "./BaseIcon-D9oV9F4k.js";
|
|
5
5
|
import { _ as xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const kl = ["data-minimap"], Ml = {
|
|
7
7
|
class: "vue-data-ui-slicer-labels",
|
|
@@ -16,6 +16,10 @@ const kl = ["data-minimap"], Ml = {
|
|
|
16
16
|
}, wl = ["xmlns", "viewBox"], Sl = ["id"], Cl = ["stop-color"], Nl = ["width", "height", "stroke"], Pl = ["d", "stroke"], Ll = ["d", "fill"], $l = ["x", "y", "width", "height", "fill"], Al = ["d", "stroke", "stroke-dasharray"], Fl = ["cx", "cy", "fill", "stroke"], Rl = ["cx", "cy", "fill", "stroke"], Tl = ["x", "width", "height", "fill", "rx"], Bl = ["x", "width", "height", "rx", "fill"], Il = ["x", "width", "height", "fill", "rx"], El = ["x2", "y1", "y2", "stroke"], Wl = { key: "merged-tree" }, Vl = ["d", "fill"], Dl = ["d", "stroke"], zl = ["cx", "cy", "stroke", "fill"], Hl = ["cx", "cy", "stroke", "fill"], Xl = { key: "split-tree" }, Zl = ["x", "y", "width", "height", "fill"], jl = ["d", "stroke", "stroke-dasharray"], Ol = ["cx", "cy", "fill", "stroke"], Ul = ["x", "width", "height", "fill", "stroke", "stroke-width"], Kl = ["x", "width", "height"], Yl = ["fill", "stroke"], ql = ["stroke"], Gl = ["fill"], Jl = ["x", "width", "height", "fill", "stroke", "stroke-width"], Ql = ["x", "width", "height"], _l = ["fill", "stroke"], ea = ["stroke"], ta = ["fill"], la = { key: "merged-tree" }, aa = ["cx", "cy", "stroke", "fill"], na = ["cx", "cy", "fill"], ia = ["cx", "cy", "stroke", "fill"], ua = ["cx", "cy", "fill"], oa = { key: 1 }, ra = ["d", "stroke", "stroke-dasharray"], sa = ["cx", "cy", "fill", "stroke"], ca = ["cx", "cy", "stroke", "fill"], va = ["cx", "cy", "fill"], ma = ["cx", "cy", "stroke", "fill"], da = ["cx", "cy", "fill"], ha = ["cx", "cy", "fill", "stroke"], fa = ["x", "height", "width", "onMouseenter"], ya = ["min", "max"], ga = ["min", "max"], Xe = 48, xa = {
|
|
17
17
|
__name: "SlicerPreview",
|
|
18
18
|
props: {
|
|
19
|
+
uuid: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
19
23
|
immediate: {
|
|
20
24
|
type: Boolean,
|
|
21
25
|
default: !0
|
|
@@ -228,68 +232,68 @@ const kl = ["data-minimap"], Ml = {
|
|
|
228
232
|
}
|
|
229
233
|
},
|
|
230
234
|
emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
|
|
231
|
-
setup(
|
|
235
|
+
setup(a, { expose: Nt, emit: Pt }) {
|
|
232
236
|
sl((t) => ({
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
237
|
+
v11c94d17: $t.value,
|
|
238
|
+
ac8254ea: y.value,
|
|
239
|
+
v3d5fcebc: Ft.value,
|
|
240
|
+
ec17d28a: a.selectColor,
|
|
241
|
+
b10ea86e: At.value
|
|
238
242
|
}));
|
|
239
|
-
const
|
|
243
|
+
const n = a, P = f(null), x = f(n.min), b = f(n.max), k = s(() => !!n.allMinimaps.length), Me = f(ml()), X = f(!1), O = s(() => k.value && n.minimapCompact), Ze = f(0), be = He((t) => T("futureStart", t), 0), pe = He((t) => T("futureEnd", t), 0), ee = s({
|
|
240
244
|
get: () => x.value,
|
|
241
245
|
set(t) {
|
|
242
246
|
const l = Math.min(t, b.value - 1);
|
|
243
|
-
l !== x.value && (x.value = l, ae.value && (ae.value.value = String(l)),
|
|
247
|
+
l !== x.value && (x.value = l, ae.value && (ae.value.value = String(l)), n.immediate ? T("update:start", Number(l)) : X.value && be(l));
|
|
244
248
|
}
|
|
245
249
|
}), te = s({
|
|
246
250
|
get: () => b.value,
|
|
247
251
|
set(t) {
|
|
248
252
|
const l = Math.max(t, x.value + 1);
|
|
249
|
-
l !== b.value && (b.value = l, ne.value && (ne.value.value = String(l)),
|
|
253
|
+
l !== b.value && (b.value = l, ne.value && (ne.value.value = String(l)), n.immediate ? T("update:end", Number(l)) : X.value && pe(l));
|
|
250
254
|
}
|
|
251
255
|
});
|
|
252
256
|
let je = null;
|
|
253
257
|
function R() {
|
|
254
|
-
clearTimeout(je),
|
|
258
|
+
clearTimeout(je), n.immediate || (T("update:start", Number(x.value)), T("update:end", Number(b.value))), X.value = !1;
|
|
255
259
|
}
|
|
256
|
-
const Lt = s(() =>
|
|
260
|
+
const Lt = s(() => n.refreshEndPoint === null ? n.max : n.refreshEndPoint), T = Pt, me = s(() => {
|
|
257
261
|
if (O.value) {
|
|
258
262
|
const l = Math.max(1, K.value - 1);
|
|
259
263
|
return he.value / l * 100;
|
|
260
264
|
}
|
|
261
|
-
const t = Math.max(1,
|
|
262
|
-
return (x.value -
|
|
265
|
+
const t = Math.max(1, n.max - n.min);
|
|
266
|
+
return (x.value - n.min) / t * 100;
|
|
263
267
|
}), we = s(() => {
|
|
264
268
|
if (O.value) {
|
|
265
269
|
const l = Math.max(1, K.value - 1);
|
|
266
270
|
return fe.value / l * 100;
|
|
267
271
|
}
|
|
268
|
-
const t = Math.max(1,
|
|
269
|
-
return (b.value -
|
|
272
|
+
const t = Math.max(1, n.max - n.min);
|
|
273
|
+
return (b.value - n.min) / t * 100;
|
|
270
274
|
}), Se = s(() => (me.value + we.value) / 2), Ce = s(() => {
|
|
271
275
|
if (!P.value) return !1;
|
|
272
|
-
const t = Math.max(1,
|
|
273
|
-
return P.value.getBoundingClientRect().width * ((x.value -
|
|
276
|
+
const t = Math.max(1, n.max - n.min);
|
|
277
|
+
return P.value.getBoundingClientRect().width * ((x.value - n.min) / t) - ye.value / 2 < 0;
|
|
274
278
|
}), Ne = s(() => {
|
|
275
279
|
if (!P.value) return !1;
|
|
276
|
-
const t = Math.max(1,
|
|
277
|
-
return l * ((b.value -
|
|
280
|
+
const t = Math.max(1, n.max - n.min), l = P.value.getBoundingClientRect().width;
|
|
281
|
+
return l * ((b.value - n.min) / t) + re.value / 2 > l;
|
|
278
282
|
}), F = s(() => {
|
|
279
283
|
const t = Ne.value ? `calc(${Se.value}% - ${ce.value.width}px)` : Ce.value ? `calc(${Se.value}% - 8px)` : `calc(${Se.value}% - ${ce.value.width / 2}px)`;
|
|
280
284
|
return {
|
|
281
285
|
left: `${me.value}%`,
|
|
282
286
|
width: `${Math.max(0, we.value - me.value)}%`,
|
|
283
|
-
background:
|
|
287
|
+
background: n.selectColor,
|
|
284
288
|
tooltipLeft: `calc(${me.value}% - ${Ce.value ? 9 : ye.value / 2}px)`,
|
|
285
289
|
tooltipRight: `calc(${we.value}% - ${Ne.value ? re.value - 9 : re.value / 2}px)`,
|
|
286
290
|
tooltipCenter: t,
|
|
287
291
|
arrowLeft: !Ce.value,
|
|
288
292
|
arrowRight: !Ne.value
|
|
289
293
|
};
|
|
290
|
-
}), $t = s(() =>
|
|
294
|
+
}), $t = s(() => n.inputColor), At = s(() => n.background), Ft = s(() => `${n.selectColor}33`), y = s(() => n.borderColor), Oe = s(() => {
|
|
291
295
|
let t = [];
|
|
292
|
-
for (let l = 0; l <
|
|
296
|
+
for (let l = 0; l < n.max; l += 1)
|
|
293
297
|
t.push(l);
|
|
294
298
|
return t;
|
|
295
299
|
});
|
|
@@ -297,12 +301,12 @@ const kl = ["data-minimap"], Ml = {
|
|
|
297
301
|
T("reset");
|
|
298
302
|
}
|
|
299
303
|
Q(
|
|
300
|
-
() =>
|
|
304
|
+
() => n.min,
|
|
301
305
|
(t) => {
|
|
302
306
|
Number(x.value) < Number(t) && (x.value = Number(t)), Number(b.value) < Number(t) && (b.value = Number(t));
|
|
303
307
|
}
|
|
304
308
|
), Q(
|
|
305
|
-
() =>
|
|
309
|
+
() => n.max,
|
|
306
310
|
(t) => {
|
|
307
311
|
Number(x.value) > Number(t) && (x.value = Number(t)), Number(b.value) > Number(t) && (b.value = Number(t));
|
|
308
312
|
}
|
|
@@ -316,28 +320,28 @@ const kl = ["data-minimap"], Ml = {
|
|
|
316
320
|
const t = He(() => {
|
|
317
321
|
if (!de.value) return;
|
|
318
322
|
const { width: l, height: e } = yl({ chart: de.value }), o = Math.max(0, Math.round(l)), r = Math.max(0, Math.round(e - 47));
|
|
319
|
-
(o !== d.value.width || r !== d.value.height) && (d.value.width = o, d.value.height = r +
|
|
323
|
+
(o !== d.value.width || r !== d.value.height) && (d.value.width = o, d.value.height = r + n.additionalMinimapHeight);
|
|
320
324
|
}, 0);
|
|
321
325
|
U.value = new ResizeObserver(t), U.value.observe(de.value);
|
|
322
326
|
}
|
|
323
327
|
}), Ve(() => {
|
|
324
328
|
U.value && U.value.disconnect();
|
|
325
329
|
});
|
|
326
|
-
const K = s(() => Math.max(1,
|
|
330
|
+
const K = s(() => Math.max(1, n.max - n.min));
|
|
327
331
|
function Ke(t) {
|
|
328
|
-
const l = Math.floor(t -
|
|
332
|
+
const l = Math.floor(t - n.min);
|
|
329
333
|
return Math.min(Math.max(0, l), K.value);
|
|
330
334
|
}
|
|
331
335
|
function Rt(t) {
|
|
332
|
-
const l = Math.ceil(t -
|
|
336
|
+
const l = Math.ceil(t - n.min);
|
|
333
337
|
return Math.min(Math.max(0, l), K.value);
|
|
334
338
|
}
|
|
335
|
-
const Z = s(() => Ke(x.value)), Y = s(() => Rt(b.value)), Pe = s(() => Math.max(...
|
|
339
|
+
const Z = s(() => Ke(x.value)), Y = s(() => Rt(b.value)), Pe = s(() => Math.max(...n.allMinimaps.map((t) => t.series.length))), Tt = s(() => k.value && n.minimapCompact ? 40 : 0), Bt = s(() => Tt.value / 2);
|
|
336
340
|
s(() => Math.max(1, d.value.width - Bt.value * 2));
|
|
337
341
|
const p = s(() => {
|
|
338
|
-
const t = Math.max(1, Pe.value - (
|
|
342
|
+
const t = Math.max(1, Pe.value - (n.minimapCompact ? 1 : 0));
|
|
339
343
|
return d.value.width / t;
|
|
340
|
-
}), Ye = s(() =>
|
|
344
|
+
}), Ye = s(() => n.allMinimaps.length ? n.allMinimaps.filter((t) => t.type === "bar" && t.isVisible).length : 0), Le = s(() => p.value / (Ye.value || 1) * 0.8);
|
|
341
345
|
function qe(t, l, e) {
|
|
342
346
|
const o = Le.value, r = Math.max(1, Ye.value), v = Pe.value - 1;
|
|
343
347
|
return e === 0 ? t + o / 2 * l : e === v ? t - o / 2 * (r - l) : t - r * o / 2 + l * o;
|
|
@@ -347,17 +351,17 @@ const kl = ["data-minimap"], Ml = {
|
|
|
347
351
|
}
|
|
348
352
|
const It = s(() => {
|
|
349
353
|
const t = [];
|
|
350
|
-
if (Array.isArray(
|
|
351
|
-
for (const l of
|
|
354
|
+
if (Array.isArray(n.minimap) && n.minimap.length && n.minimapMerged && t.push(...n.minimap.filter(Number.isFinite)), Array.isArray(n.allMinimaps) && n.allMinimaps.length)
|
|
355
|
+
for (const l of n.allMinimaps)
|
|
352
356
|
l?.isVisible && Array.isArray(l?.series) && t.push(...l.series.filter(Number.isFinite));
|
|
353
357
|
return t.length ? { min: Math.min(...t), max: Math.max(...t) } : { min: 0, max: 1 };
|
|
354
358
|
}), Je = s(() => {
|
|
355
|
-
if (
|
|
356
|
-
const t = Number(
|
|
359
|
+
if (n.minScale == null && n.forceZeroCenter) return null;
|
|
360
|
+
const t = Number(n.minScale);
|
|
357
361
|
return Number.isFinite(t) ? t : null;
|
|
358
362
|
}), Qe = s(() => {
|
|
359
|
-
if (
|
|
360
|
-
const t = Number(
|
|
363
|
+
if (n.maxScale == null && n.forceZeroCenter) return null;
|
|
364
|
+
const t = Number(n.maxScale);
|
|
361
365
|
return Number.isFinite(t) ? t : null;
|
|
362
366
|
}), $e = s(() => Je.value !== null && Qe.value !== null), _e = s(() => {
|
|
363
367
|
const { min: t, max: l } = It.value, e = Je.value, o = Qe.value;
|
|
@@ -406,7 +410,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
406
410
|
dashed: !1
|
|
407
411
|
};
|
|
408
412
|
const e = Math.max(1, d.value.height), o = et(q.value, le.value, e, $e.value), r = t.length, v = Math.min(Math.max(0, Z.value), Math.max(0, r - 1)), B = Math.min(r, Math.max(v + 1, Y.value)), h = t.map((M, mt) => {
|
|
409
|
-
const ve = M, dt = Number.isFinite(ve), ll = p.value * mt + (
|
|
413
|
+
const ve = M, dt = Number.isFinite(ve), ll = p.value * mt + (n.minimapCompact ? 0 : p.value / 2), al = (ul, ol, rl) => Math.max(ol, Math.min(rl, ul)), nl = $e.value ? al(0, q.value, le.value) : 0, il = o(nl);
|
|
410
414
|
return {
|
|
411
415
|
x: ll,
|
|
412
416
|
y: dt ? o(ve) : NaN,
|
|
@@ -415,7 +419,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
415
419
|
y0: il,
|
|
416
420
|
i: mt
|
|
417
421
|
};
|
|
418
|
-
}), N = (M) => M >= 0 && M < h.length && Number.isFinite(h[M]?.value), $ = h.filter((M) => Number.isFinite(M.value) && !N(M.i - 1) && !N(M.i + 1)), ge = $.filter((M) => M.i >= v && M.i < B), j = h.slice(v, B), el = h.length >= 2 ?
|
|
422
|
+
}), N = (M) => M >= 0 && M < h.length && Number.isFinite(h[M]?.value), $ = h.filter((M) => Number.isFinite(M.value) && !N(M.i - 1) && !N(M.i + 1)), ge = $.filter((M) => M.i >= v && M.i < B), j = h.slice(v, B), el = h.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? bt(h) : pt(h.filter((M) => M.value != null)) : n.cutNullValues ? wt(h) : St(h.filter((M) => M.value != null)) : "", tl = j.length >= 2 ? n.smoothMinimap || l ? n.cutNullValues ? bt(j) : pt(j.filter((M) => M.value != null)) : n.cutNullValues ? wt(j) : St(j.filter((M) => M.value != null)) : "";
|
|
419
423
|
return {
|
|
420
424
|
fullSet: el,
|
|
421
425
|
points: h,
|
|
@@ -429,12 +433,13 @@ const kl = ["data-minimap"], Ml = {
|
|
|
429
433
|
selectionMarkers: ge
|
|
430
434
|
};
|
|
431
435
|
}
|
|
432
|
-
const m = s(() =>
|
|
436
|
+
const m = s(() => n.minimap.length ? tt(n.minimap) : []), I = s(() => n.allMinimaps.length ? n.allMinimaps.map((t, l) => {
|
|
433
437
|
const e = tt(t?.series || [], !!t.smooth), o = t?.id ?? t?.name ?? l;
|
|
434
438
|
return {
|
|
435
439
|
key: typeof o == "object" ? JSON.stringify(o) : String(o),
|
|
436
440
|
color: t?.color,
|
|
437
441
|
...e,
|
|
442
|
+
temperatureColors: t?.temperatureColors ?? null,
|
|
438
443
|
isVisible: t.isVisible,
|
|
439
444
|
type: t.type || "line",
|
|
440
445
|
dashed: t.dashed ?? !1
|
|
@@ -442,10 +447,10 @@ const kl = ["data-minimap"], Ml = {
|
|
|
442
447
|
}) : []), C = s(() => {
|
|
443
448
|
const t = Z.value, l = Math.max(t + 1, Y.value);
|
|
444
449
|
return {
|
|
445
|
-
x: p.value * t + (
|
|
450
|
+
x: p.value * t + (n.minimapCompact ? 0 : p.value / 2),
|
|
446
451
|
width: p.value * (l - t) - p.value
|
|
447
452
|
};
|
|
448
|
-
}), E = f(
|
|
453
|
+
}), E = f(n.minimapSelectedIndex), lt = (t) => Math.round(n.min + t), he = s({
|
|
449
454
|
get() {
|
|
450
455
|
return O.value ? Z.value : Number(ee.value);
|
|
451
456
|
},
|
|
@@ -455,7 +460,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
455
460
|
Re(lt(l));
|
|
456
461
|
} else {
|
|
457
462
|
let l = Math.round(+t || 0);
|
|
458
|
-
const e = Number(b.value) - 1, o = Math.min(Math.max(
|
|
463
|
+
const e = Number(b.value) - 1, o = Math.min(Math.max(n.min, l), e);
|
|
459
464
|
ae.value && (ae.value.valueAsNumber = o), Re(o);
|
|
460
465
|
}
|
|
461
466
|
}
|
|
@@ -469,16 +474,16 @@ const kl = ["data-minimap"], Ml = {
|
|
|
469
474
|
Be(lt(l + 1));
|
|
470
475
|
} else {
|
|
471
476
|
let l = Math.round(+t || 0);
|
|
472
|
-
const e = Number(x.value) + 1, o = Math.max(e, Math.min(l,
|
|
477
|
+
const e = Number(x.value) + 1, o = Math.max(e, Math.min(l, n.max));
|
|
473
478
|
ne.value && (ne.value.valueAsNumber = o), Be(o);
|
|
474
479
|
}
|
|
475
480
|
}
|
|
476
481
|
});
|
|
477
482
|
function Vt(t) {
|
|
478
|
-
E.value = Ke(
|
|
483
|
+
E.value = Ke(n.valueStart) + t;
|
|
479
484
|
}
|
|
480
485
|
const Dt = fl(Vt, 60);
|
|
481
|
-
Q(() =>
|
|
486
|
+
Q(() => n.minimapSelectedIndex, (t, l) => {
|
|
482
487
|
if ([null, void 0].includes(t)) {
|
|
483
488
|
E.value = null;
|
|
484
489
|
return;
|
|
@@ -518,30 +523,30 @@ const kl = ["data-minimap"], Ml = {
|
|
|
518
523
|
Ve(() => {
|
|
519
524
|
cancelAnimationFrame(Fe), cancelAnimationFrame(Te);
|
|
520
525
|
});
|
|
521
|
-
const ie = s(() =>
|
|
526
|
+
const ie = s(() => n.valueEnd - n.valueStart), Ht = s(() => ie.value < n.max - n.min), G = f(!1);
|
|
522
527
|
let Xt = f(null);
|
|
523
|
-
const Zt = s(() => (Ze.value - 48) / (
|
|
528
|
+
const Zt = s(() => (Ze.value - 48) / (n.max - n.min) * ie.value), jt = s(() => Math.max(1, Ze.value - Xe - Zt.value)), Ot = s(() => Math.max(1, n.max - n.min - ie.value)), Ut = s(() => Ot.value / jt.value), nt = f(0), it = f(0), Kt = f(0), Yt = f(0);
|
|
524
529
|
let W = null, V = null, D = null, z = null;
|
|
525
|
-
const ut = f(
|
|
530
|
+
const ut = f(n.min);
|
|
526
531
|
function Ie(t) {
|
|
527
|
-
if (!P.value) return
|
|
528
|
-
const l = P.value.getBoundingClientRect(), e = l.left + Xe / 2, o = l.right - Xe / 2, r = Math.max(1, o - e), B = (Math.max(e, Math.min(t, o)) - e) / r, h = Math.max(1,
|
|
529
|
-
return Math.round(
|
|
532
|
+
if (!P.value) return n.min;
|
|
533
|
+
const l = P.value.getBoundingClientRect(), e = l.left + Xe / 2, o = l.right - Xe / 2, r = Math.max(1, o - e), B = (Math.max(e, Math.min(t, o)) - e) / r, h = Math.max(1, n.max - n.min);
|
|
534
|
+
return Math.round(n.min + B * h);
|
|
530
535
|
}
|
|
531
536
|
const ot = async (t) => {
|
|
532
|
-
if (X.value = !0, J.value = !0, !
|
|
537
|
+
if (X.value = !0, J.value = !0, !n.enableSelectionDrag) return;
|
|
533
538
|
const l = t.type === "touchstart";
|
|
534
539
|
l || t.stopPropagation();
|
|
535
540
|
const e = l && t.targetTouches && t.targetTouches[0] ? t.targetTouches[0] : null, o = l ? e ? e.target : null : t.target;
|
|
536
541
|
if (!o || !(o instanceof Element) || o.classList && o.classList.contains("range-handle")) return;
|
|
537
542
|
G.value = !0;
|
|
538
543
|
const r = l ? e ? e.clientX : 0 : t.clientX;
|
|
539
|
-
if (Xt.value = r, nt.value = r,
|
|
544
|
+
if (Xt.value = r, nt.value = r, n.focusOnDrag && !Ht.value && P.value) {
|
|
540
545
|
ut.value = Ie(r);
|
|
541
|
-
const v = Math.min(0.95, Math.max(0.05,
|
|
546
|
+
const v = Math.min(0.95, Math.max(0.05, n.focusRangeRatio)), B = n.max - n.min, h = Math.max(1, Math.round(B * v)), N = Math.floor(h / 2);
|
|
542
547
|
let $ = ut.value - N;
|
|
543
|
-
$ = Math.max(
|
|
544
|
-
const ge = Math.min(
|
|
548
|
+
$ = Math.max(n.min, Math.min($, n.max - h));
|
|
549
|
+
const ge = Math.min(n.max, $ + h);
|
|
545
550
|
ee.value = $, te.value = ge, be($), pe(ge), Ct(P.value, "mouseup"), await xe(), Ct(P.value, "mousedown", { clientX: r });
|
|
546
551
|
}
|
|
547
552
|
it.value = x.value, Kt.value = b.value, Yt.value = Ut.value, W = l ? "touchmove" : "mousemove", V = l ? "touchend" : "mouseup", D = l ? Gt : qt, z = l ? Qt : Jt, window.addEventListener(W, D, { passive: !1 }), window.addEventListener(V, z);
|
|
@@ -561,7 +566,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
561
566
|
if (!G.value) return;
|
|
562
567
|
const l = Ie(nt.value), o = Ie(t) - l;
|
|
563
568
|
let r = Math.round(it.value + o);
|
|
564
|
-
r = Math.max(
|
|
569
|
+
r = Math.max(n.min, Math.min(r, n.max - ie.value));
|
|
565
570
|
const v = r + ie.value;
|
|
566
571
|
ee.value = r, te.value = v, be(r), pe(v);
|
|
567
572
|
}
|
|
@@ -612,26 +617,26 @@ const kl = ["data-minimap"], Ml = {
|
|
|
612
617
|
};
|
|
613
618
|
}), ht(() => {
|
|
614
619
|
Ee(), We();
|
|
615
|
-
}), Q(() =>
|
|
620
|
+
}), Q(() => n.labelLeft, () => {
|
|
616
621
|
xe(Ee);
|
|
617
|
-
}, { deep: !0 }), Q(() =>
|
|
622
|
+
}, { deep: !0 }), Q(() => n.labelRight, () => {
|
|
618
623
|
xe(We);
|
|
619
624
|
}, { deep: !0 });
|
|
620
625
|
const w = s(() => {
|
|
621
626
|
let t = "", l = "", e = !1;
|
|
622
|
-
if (dl(
|
|
627
|
+
if (dl(n.customFormat))
|
|
623
628
|
try {
|
|
624
|
-
const o =
|
|
629
|
+
const o = n.customFormat({
|
|
625
630
|
absoluteIndex: x.value,
|
|
626
631
|
seriesIndex: x.value,
|
|
627
|
-
datapoint:
|
|
628
|
-
timeLabel:
|
|
632
|
+
datapoint: n.selectedSeries,
|
|
633
|
+
timeLabel: n.preciseLabels[x.value],
|
|
629
634
|
side: "left"
|
|
630
|
-
}), r =
|
|
635
|
+
}), r = n.customFormat({
|
|
631
636
|
absoluteIndex: b.value - 1,
|
|
632
637
|
seriesIndex: -1,
|
|
633
|
-
datapoint:
|
|
634
|
-
timeLabel:
|
|
638
|
+
datapoint: n.selectedSeries,
|
|
639
|
+
timeLabel: n.preciseLabels[b.value - 1],
|
|
635
640
|
side: "right"
|
|
636
641
|
});
|
|
637
642
|
typeof o == "string" && typeof r == "string" && (t = o, l = r, e = !0);
|
|
@@ -639,7 +644,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
639
644
|
e = !1;
|
|
640
645
|
}
|
|
641
646
|
if (!e) {
|
|
642
|
-
const o =
|
|
647
|
+
const o = n.usePreciseLabels ? n.preciseLabels.find((v) => v.absoluteIndex === x.value) : n.timeLabels.find((v) => v.absoluteIndex === x.value), r = n.usePreciseLabels ? n.preciseLabels.find((v) => v.absoluteIndex === b.value - 1) : n.timeLabels.find((v) => v.absoluteIndex === b.value - 1);
|
|
643
648
|
t = o ? o.text : "", l = r ? r.text : "";
|
|
644
649
|
}
|
|
645
650
|
return { left: t, right: l };
|
|
@@ -650,13 +655,13 @@ const kl = ["data-minimap"], Ml = {
|
|
|
650
655
|
const _t = s(() => {
|
|
651
656
|
if (!Oe.value.length) return null;
|
|
652
657
|
if (E.value >= Z.value && E.value < Y.value) {
|
|
653
|
-
const t = E.value, l = p.value * t + (
|
|
658
|
+
const t = E.value, l = p.value * t + (n.minimapCompact ? 0 : p.value / 2);
|
|
654
659
|
return {
|
|
655
660
|
x1: l,
|
|
656
661
|
x2: l,
|
|
657
662
|
y1: 0,
|
|
658
663
|
y2: Math.max(d.value.height, 0),
|
|
659
|
-
stroke:
|
|
664
|
+
stroke: n.minimapIndicatorColor,
|
|
660
665
|
"stroke-linecap": "round",
|
|
661
666
|
"stroke-dasharray": 2,
|
|
662
667
|
"stroke-width": 1
|
|
@@ -671,8 +676,8 @@ const kl = ["data-minimap"], Ml = {
|
|
|
671
676
|
"data-minimap": k.value,
|
|
672
677
|
"data-dom-to-png-ignore": "",
|
|
673
678
|
style: L([{ padding: "0 48px" }, {
|
|
674
|
-
maxWidth:
|
|
675
|
-
margin:
|
|
679
|
+
maxWidth: a.maxWidth ? a.maxWidth + "px" : void 0,
|
|
680
|
+
margin: a.maxWidth ? "0 auto" : void 0
|
|
676
681
|
}]),
|
|
677
682
|
class: "vue-data-ui-zoom",
|
|
678
683
|
ref_key: "zoomWrapper",
|
|
@@ -681,8 +686,8 @@ const kl = ["data-minimap"], Ml = {
|
|
|
681
686
|
onTouchstart: ot
|
|
682
687
|
}, [
|
|
683
688
|
A("div", Ml, [
|
|
684
|
-
|
|
685
|
-
|
|
689
|
+
a.valueStart !== a.refreshStartPoint || a.valueEnd !== Lt.value ? (u(), i("div", bl, [
|
|
690
|
+
a.useResetSlot ? ft(t.$slots, "reset-action", {
|
|
686
691
|
key: 1,
|
|
687
692
|
reset: Ue
|
|
688
693
|
}, void 0, !0) : (u(), i("button", {
|
|
@@ -693,13 +698,13 @@ const kl = ["data-minimap"], Ml = {
|
|
|
693
698
|
style: L({
|
|
694
699
|
top: k.value ? "36px" : "-16px",
|
|
695
700
|
pointerEvents: "all !important",
|
|
696
|
-
cursor:
|
|
701
|
+
cursor: a.isCursorPointer ? "pointer" : "default"
|
|
697
702
|
}),
|
|
698
703
|
onClick: Ue
|
|
699
704
|
}, [
|
|
700
705
|
vl(gl, {
|
|
701
706
|
name: "refresh",
|
|
702
|
-
stroke:
|
|
707
|
+
stroke: a.textColor
|
|
703
708
|
}, null, 8, ["stroke"])
|
|
704
709
|
], 4))
|
|
705
710
|
])) : c("", !0)
|
|
@@ -710,14 +715,14 @@ const kl = ["data-minimap"], Ml = {
|
|
|
710
715
|
ref: de,
|
|
711
716
|
style: L([{ "z-index": "0" }, k.value ? {
|
|
712
717
|
"--minimap-unit-px": p.value + "px",
|
|
713
|
-
"--minimap-offset-px": (
|
|
718
|
+
"--minimap-offset-px": (a.minimapCompact ? 0 : p.value / 2) + "px"
|
|
714
719
|
} : void 0]),
|
|
715
720
|
onMouseenter: l[11] || (l[11] = (e) => J.value = !0),
|
|
716
721
|
onMouseleave: l[12] || (l[12] = (e) => J.value = !1)
|
|
717
722
|
}, [
|
|
718
723
|
k.value ? (u(), i("div", pl, [
|
|
719
724
|
(u(), i("svg", {
|
|
720
|
-
key: `mm-${
|
|
725
|
+
key: `mm-${a.minimapMerged ? "merged" : "split"}-${a.minimapCompact ? "compact" : "normal"}`,
|
|
721
726
|
xmlns: ke(hl),
|
|
722
727
|
viewBox: `0 0 ${Math.max(0, d.value.width)} ${Math.max(0, d.value.height)}`
|
|
723
728
|
}, [
|
|
@@ -731,7 +736,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
731
736
|
}, [
|
|
732
737
|
A("stop", {
|
|
733
738
|
offset: "0%",
|
|
734
|
-
"stop-color": `${
|
|
739
|
+
"stop-color": `${a.minimapLineColor}50`
|
|
735
740
|
}, null, 8, Cl),
|
|
736
741
|
l[13] || (l[13] = A("stop", {
|
|
737
742
|
offset: "100%",
|
|
@@ -739,7 +744,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
739
744
|
}, null, -1))
|
|
740
745
|
], 8, Sl)
|
|
741
746
|
]),
|
|
742
|
-
|
|
747
|
+
a.minimapCompact ? (u(), i("rect", {
|
|
743
748
|
key: 0,
|
|
744
749
|
class: "vue-ui-zoom-minimap-frame",
|
|
745
750
|
x: 0,
|
|
@@ -747,27 +752,27 @@ const kl = ["data-minimap"], Ml = {
|
|
|
747
752
|
width: d.value.width,
|
|
748
753
|
height: d.value.height,
|
|
749
754
|
fill: "none",
|
|
750
|
-
stroke:
|
|
755
|
+
stroke: a.minimapFrameColor,
|
|
751
756
|
rx: 3
|
|
752
757
|
}, null, 8, Nl)) : c("", !0),
|
|
753
758
|
t.$slots.slotMap ? c("", !0) : (u(), i(g, { key: 1 }, [
|
|
754
|
-
|
|
759
|
+
a.minimapMerged ? (u(), i("path", {
|
|
755
760
|
key: 0,
|
|
756
761
|
d: `M${m.value.fullSet}`,
|
|
757
|
-
stroke: `${
|
|
762
|
+
stroke: `${a.minimapLineColor}`,
|
|
758
763
|
fill: "none",
|
|
759
764
|
"stroke-width": "1",
|
|
760
765
|
"stroke-linecap": "round",
|
|
761
766
|
"stroke-linejoin": "round",
|
|
762
767
|
style: { opacity: "0.6" }
|
|
763
768
|
}, null, 8, Pl)) : c("", !0),
|
|
764
|
-
|
|
769
|
+
a.minimapMerged && !a.minimapCompact ? (u(), i("path", {
|
|
765
770
|
key: 1,
|
|
766
771
|
d: `M${p.value / 2},${Math.max(d.value.height, 0)} ${m.value.fullSet} L${d.value.width - p.value / 2},${Math.max(d.value.height, 0)}Z`,
|
|
767
772
|
fill: `url(#${Me.value})`,
|
|
768
773
|
stroke: "none",
|
|
769
774
|
style: { opacity: "0.6" }
|
|
770
|
-
}, null, 8, Ll)) :
|
|
775
|
+
}, null, 8, Ll)) : a.minimapMerged ? c("", !0) : (u(), i(g, { key: 2 }, [
|
|
771
776
|
(u(!0), i(g, null, S(I.value.filter((e) => e.type === "bar" && e.isVisible), (e, o) => (u(), i("g", null, [
|
|
772
777
|
(u(!0), i(g, null, S(e.points, (r, v) => (u(), i(g, null, [
|
|
773
778
|
e && !isNaN(r.y) ? (u(), i("rect", {
|
|
@@ -790,7 +795,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
790
795
|
style: { opacity: "0.6" },
|
|
791
796
|
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
792
797
|
}, null, 8, Al)) : c("", !0),
|
|
793
|
-
e.isVisible &&
|
|
798
|
+
e.isVisible && a.cutNullValues ? (u(!0), i(g, { key: 1 }, S(e.fullMarkers, (o) => (u(), i("circle", {
|
|
794
799
|
key: `sel-dot-under-${e.key}-${o.i}`,
|
|
795
800
|
cx: o.x,
|
|
796
801
|
cy: o.y,
|
|
@@ -823,7 +828,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
823
828
|
width: Math.max(0, C.value.width),
|
|
824
829
|
height: Math.max(d.value.height, 0),
|
|
825
830
|
fill: y.value,
|
|
826
|
-
rx:
|
|
831
|
+
rx: a.minimapSelectionRadius,
|
|
827
832
|
stroke: "none"
|
|
828
833
|
}, null, 8, Tl),
|
|
829
834
|
A("rect", {
|
|
@@ -831,7 +836,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
831
836
|
y: 0,
|
|
832
837
|
width: C.value.width < 0 ? 0 : C.value.width,
|
|
833
838
|
height: Math.max(d.value.height, 0),
|
|
834
|
-
rx:
|
|
839
|
+
rx: a.minimapSelectionRadius,
|
|
835
840
|
fill: y.value,
|
|
836
841
|
style: L({ opacity: G.value || X.value ? 0 : 1 })
|
|
837
842
|
}, null, 12, Bl),
|
|
@@ -840,22 +845,22 @@ const kl = ["data-minimap"], Ml = {
|
|
|
840
845
|
y: 0,
|
|
841
846
|
width: C.value.width < 0 ? 0 : C.value.width,
|
|
842
847
|
height: Math.max(d.value.height, 0),
|
|
843
|
-
fill:
|
|
844
|
-
rx:
|
|
845
|
-
style: L({ opacity:
|
|
848
|
+
fill: a.minimapSelectedColor,
|
|
849
|
+
rx: a.minimapSelectionRadius,
|
|
850
|
+
style: L({ opacity: a.minimapSelectedColorOpacity })
|
|
846
851
|
}, null, 12, Il),
|
|
847
|
-
!
|
|
852
|
+
!a.minimapMerged && Et.value < 0 ? (u(), i("line", {
|
|
848
853
|
key: 2,
|
|
849
854
|
class: "slicer-minimap-zero-line",
|
|
850
855
|
x1: 0,
|
|
851
856
|
x2: d.value.width,
|
|
852
857
|
y1: Ae.value,
|
|
853
858
|
y2: Ae.value,
|
|
854
|
-
stroke:
|
|
859
|
+
stroke: a.minimapFrameColor,
|
|
855
860
|
"stroke-width": "0.5"
|
|
856
861
|
}, null, 8, El)) : c("", !0),
|
|
857
862
|
t.$slots.slotMap ? c("", !0) : (u(), i(g, { key: 3 }, [
|
|
858
|
-
|
|
863
|
+
a.minimapMerged ? (u(), i("g", Wl, [
|
|
859
864
|
m.value && m.value.sliced && m.value.sliced.length ? (u(), i(g, { key: 0 }, [
|
|
860
865
|
m.value.selectionSet ? (u(), i("path", {
|
|
861
866
|
key: 0,
|
|
@@ -867,7 +872,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
867
872
|
m.value.selectionSet ? (u(), i("path", {
|
|
868
873
|
key: 1,
|
|
869
874
|
d: `M ${m.value.selectionSet}`,
|
|
870
|
-
stroke: `${
|
|
875
|
+
stroke: `${a.minimapLineColor}`,
|
|
871
876
|
fill: "transparent",
|
|
872
877
|
"stroke-width": "2",
|
|
873
878
|
"stroke-linecap": "round",
|
|
@@ -881,7 +886,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
881
886
|
"stroke-width": "0.5",
|
|
882
887
|
stroke: y.value,
|
|
883
888
|
r: "3",
|
|
884
|
-
fill:
|
|
889
|
+
fill: a.minimapLineColor
|
|
885
890
|
}, null, 8, zl)) : c("", !0),
|
|
886
891
|
m.value && m.value.lastPlot ? (u(), i("circle", {
|
|
887
892
|
key: 2,
|
|
@@ -890,7 +895,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
890
895
|
"stroke-width": "0.5",
|
|
891
896
|
stroke: y.value,
|
|
892
897
|
r: "3",
|
|
893
|
-
fill:
|
|
898
|
+
fill: a.minimapLineColor
|
|
894
899
|
}, null, 8, Hl)) : c("", !0)
|
|
895
900
|
])) : (u(), i("g", Xl, [
|
|
896
901
|
(u(!0), i(g, null, S(I.value.filter((e) => e.type === "bar" && e.isVisible), (e, o) => (u(), i("g", null, [
|
|
@@ -906,13 +911,13 @@ const kl = ["data-minimap"], Ml = {
|
|
|
906
911
|
}, null, 12, Zl)) : c("", !0)
|
|
907
912
|
], 64))), 256))
|
|
908
913
|
]))), 256)),
|
|
909
|
-
(u(!0), i(g, null, S(I.value.filter((e) => e.type === "line"), (e) => (u(), i("g", {
|
|
914
|
+
(u(!0), i(g, null, S(I.value.filter((e) => e.type === "line"), (e, o) => (u(), i("g", {
|
|
910
915
|
key: String(e.key)
|
|
911
916
|
}, [
|
|
912
917
|
e && e.hasSelection && e.selectionSet && e.isVisible ? (u(), i("path", {
|
|
913
918
|
key: 0,
|
|
914
919
|
d: `M ${e.selectionSet}`,
|
|
915
|
-
stroke: e.color,
|
|
920
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${o}_${a.uuid})` : e.color,
|
|
916
921
|
fill: "transparent",
|
|
917
922
|
"stroke-width": "2",
|
|
918
923
|
"stroke-linecap": "round",
|
|
@@ -944,97 +949,97 @@ const kl = ["data-minimap"], Ml = {
|
|
|
944
949
|
zeroY: Ae.value,
|
|
945
950
|
unitW: Math.max(0, p.value)
|
|
946
951
|
})), void 0, !0) : c("", !0),
|
|
947
|
-
k.value &&
|
|
952
|
+
k.value && a.minimapCompact ? (u(), i("rect", {
|
|
948
953
|
key: 5,
|
|
949
954
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
950
|
-
x: C.value.x - Math.min(40, Math.max(20,
|
|
955
|
+
x: C.value.x - Math.min(40, Math.max(20, a.handleWidth)),
|
|
951
956
|
y: 0,
|
|
952
|
-
width: Math.min(40, Math.max(20,
|
|
957
|
+
width: Math.min(40, Math.max(20, a.handleWidth)),
|
|
953
958
|
height: d.value.height,
|
|
954
|
-
fill:
|
|
955
|
-
stroke:
|
|
956
|
-
"stroke-width":
|
|
959
|
+
fill: a.handleFill || y.value,
|
|
960
|
+
stroke: a.handleBorderColor || a.textColor,
|
|
961
|
+
"stroke-width": a.handleBorderWidth,
|
|
957
962
|
rx: 3
|
|
958
963
|
}, null, 8, Ul)) : c("", !0),
|
|
959
|
-
|
|
964
|
+
a.handleType && a.handleType !== "empty" ? (u(), i("svg", {
|
|
960
965
|
key: 6,
|
|
961
|
-
x: C.value.x - Math.min(40, Math.max(20,
|
|
966
|
+
x: C.value.x - Math.min(40, Math.max(20, a.handleWidth)),
|
|
962
967
|
y: 0,
|
|
963
|
-
width: Math.min(40, Math.max(20,
|
|
968
|
+
width: Math.min(40, Math.max(20, a.handleWidth)),
|
|
964
969
|
height: d.value.height,
|
|
965
970
|
viewBox: "0 0 20 20"
|
|
966
971
|
}, [
|
|
967
|
-
|
|
972
|
+
a.handleType === "arrow" ? (u(), i("path", {
|
|
968
973
|
key: 0,
|
|
969
974
|
d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
|
|
970
975
|
fill: y.value,
|
|
971
|
-
stroke:
|
|
976
|
+
stroke: a.handleIconColor || a.textColor,
|
|
972
977
|
"stroke-width": 0.618,
|
|
973
978
|
"stroke-linejoin": "round",
|
|
974
979
|
"stroke-linecap": "round"
|
|
975
|
-
}, null, 8, Yl)) :
|
|
980
|
+
}, null, 8, Yl)) : a.handleType === "chevron" ? (u(), i("path", {
|
|
976
981
|
key: 1,
|
|
977
982
|
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
978
983
|
fill: "none",
|
|
979
|
-
stroke:
|
|
984
|
+
stroke: a.handleIconColor || a.textColor,
|
|
980
985
|
"stroke-width": 0.618,
|
|
981
986
|
"stroke-linejoin": "round",
|
|
982
987
|
"stroke-linecap": "round"
|
|
983
|
-
}, null, 8, ql)) :
|
|
988
|
+
}, null, 8, ql)) : a.handleType === "grab" ? (u(), i("path", {
|
|
984
989
|
key: 2,
|
|
985
990
|
d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
|
|
986
|
-
fill:
|
|
991
|
+
fill: a.handleIconColor || a.textColor,
|
|
987
992
|
stroke: "none",
|
|
988
993
|
opacity: "0.6"
|
|
989
994
|
}, null, 8, Gl)) : c("", !0)
|
|
990
995
|
], 8, Kl)) : c("", !0),
|
|
991
|
-
k.value &&
|
|
996
|
+
k.value && a.minimapCompact ? (u(), i("rect", {
|
|
992
997
|
key: 7,
|
|
993
998
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
994
999
|
x: C.value.x + C.value.width,
|
|
995
1000
|
y: 0,
|
|
996
|
-
width: Math.min(40, Math.max(20,
|
|
1001
|
+
width: Math.min(40, Math.max(20, a.handleWidth)),
|
|
997
1002
|
height: d.value.height,
|
|
998
|
-
fill:
|
|
999
|
-
stroke:
|
|
1000
|
-
"stroke-width":
|
|
1003
|
+
fill: a.handleFill || y.value,
|
|
1004
|
+
stroke: a.handleBorderColor || a.textColor,
|
|
1005
|
+
"stroke-width": a.handleBorderWidth,
|
|
1001
1006
|
rx: 3
|
|
1002
1007
|
}, null, 8, Jl)) : c("", !0),
|
|
1003
|
-
|
|
1008
|
+
a.handleType && a.handleType !== "empty" ? (u(), i("svg", {
|
|
1004
1009
|
key: 8,
|
|
1005
1010
|
x: C.value.x + C.value.width,
|
|
1006
1011
|
y: 0,
|
|
1007
|
-
width: Math.min(40, Math.max(20,
|
|
1012
|
+
width: Math.min(40, Math.max(20, a.handleWidth)),
|
|
1008
1013
|
height: d.value.height,
|
|
1009
1014
|
viewBox: "0 0 20 20"
|
|
1010
1015
|
}, [
|
|
1011
|
-
|
|
1016
|
+
a.handleType === "arrow" ? (u(), i("path", {
|
|
1012
1017
|
key: 0,
|
|
1013
1018
|
d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
|
|
1014
1019
|
fill: y.value,
|
|
1015
|
-
stroke:
|
|
1020
|
+
stroke: a.handleIconColor || a.textColor,
|
|
1016
1021
|
"stroke-width": 0.618,
|
|
1017
1022
|
"stroke-linejoin": "round",
|
|
1018
1023
|
"stroke-linecap": "round"
|
|
1019
|
-
}, null, 8, _l)) :
|
|
1024
|
+
}, null, 8, _l)) : a.handleType === "chevron" ? (u(), i("path", {
|
|
1020
1025
|
key: 1,
|
|
1021
1026
|
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1022
1027
|
fill: "none",
|
|
1023
|
-
stroke:
|
|
1028
|
+
stroke: a.handleIconColor || a.textColor,
|
|
1024
1029
|
"stroke-width": 0.618,
|
|
1025
1030
|
"stroke-linejoin": "round",
|
|
1026
1031
|
"stroke-linecap": "round"
|
|
1027
|
-
}, null, 8, ea)) :
|
|
1032
|
+
}, null, 8, ea)) : a.handleType === "grab" ? (u(), i("path", {
|
|
1028
1033
|
key: 2,
|
|
1029
1034
|
d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
|
|
1030
|
-
fill:
|
|
1035
|
+
fill: a.handleIconColor || a.textColor,
|
|
1031
1036
|
stroke: "none",
|
|
1032
1037
|
opacity: "0.6"
|
|
1033
1038
|
}, null, 8, ta)) : c("", !0)
|
|
1034
1039
|
], 8, Ql)) : c("", !0),
|
|
1035
1040
|
E.value !== null && !H.value ? (u(), i("line", gt(xt({ key: 9 }, _t.value)), null, 16)) : c("", !0),
|
|
1036
1041
|
t.$slots.slotMap ? c("", !0) : (u(), i(g, { key: 10 }, [
|
|
1037
|
-
|
|
1042
|
+
a.minimapMerged ? (u(), i("g", la, [
|
|
1038
1043
|
m.value && m.value.firstPlot && m.value.firstPlot.value !== null ? (u(), i("circle", {
|
|
1039
1044
|
key: 0,
|
|
1040
1045
|
cx: m.value.firstPlot.x,
|
|
@@ -1042,7 +1047,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1042
1047
|
"stroke-width": "0.5",
|
|
1043
1048
|
stroke: y.value,
|
|
1044
1049
|
r: "4",
|
|
1045
|
-
fill:
|
|
1050
|
+
fill: a.minimapLineColor
|
|
1046
1051
|
}, null, 8, aa)) : c("", !0),
|
|
1047
1052
|
m.value && m.value.firstPlot && m.value.firstPlot.value !== null ? (u(), i("circle", {
|
|
1048
1053
|
key: 1,
|
|
@@ -1058,7 +1063,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1058
1063
|
"stroke-width": "0.5",
|
|
1059
1064
|
stroke: y.value,
|
|
1060
1065
|
r: "4",
|
|
1061
|
-
fill:
|
|
1066
|
+
fill: a.minimapLineColor
|
|
1062
1067
|
}, null, 8, ia)) : c("", !0),
|
|
1063
1068
|
m.value && m.value.lastPlot && m.value.lastPlot.value !== null ? (u(), i("circle", {
|
|
1064
1069
|
key: 3,
|
|
@@ -1068,23 +1073,23 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1068
1073
|
fill: y.value
|
|
1069
1074
|
}, null, 8, ua)) : c("", !0)
|
|
1070
1075
|
])) : (u(), i("g", oa, [
|
|
1071
|
-
(u(!0), i(g, null, S(I.value.filter((e) => e.type === "line"), (e) => (u(), i("g", {
|
|
1076
|
+
(u(!0), i(g, null, S(I.value.filter((e) => e.type === "line"), (e, o) => (u(), i("g", {
|
|
1072
1077
|
key: String(e.key)
|
|
1073
1078
|
}, [
|
|
1074
1079
|
e && e.hasSelection && e.selectionSet && e.isVisible ? (u(), i("path", {
|
|
1075
1080
|
key: 0,
|
|
1076
1081
|
d: `M ${e.selectionSet}`,
|
|
1077
|
-
stroke: e.color,
|
|
1082
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${o}_${a.uuid})` : e.color,
|
|
1078
1083
|
fill: "transparent",
|
|
1079
1084
|
"stroke-width": "2",
|
|
1080
1085
|
"stroke-linecap": "round",
|
|
1081
1086
|
"stroke-linejoin": "round",
|
|
1082
1087
|
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1083
1088
|
}, null, 8, ra)) : c("", !0),
|
|
1084
|
-
e.isVisible &&
|
|
1085
|
-
key: `sel-dot-${e.key}-${
|
|
1086
|
-
cx:
|
|
1087
|
-
cy:
|
|
1089
|
+
e.isVisible && a.cutNullValues ? (u(!0), i(g, { key: 1 }, S(e.selectionMarkers, (r) => (u(), i("circle", {
|
|
1090
|
+
key: `sel-dot-${e.key}-${r.i}`,
|
|
1091
|
+
cx: r.x,
|
|
1092
|
+
cy: r.y,
|
|
1088
1093
|
r: "2.5",
|
|
1089
1094
|
fill: e.color,
|
|
1090
1095
|
stroke: y.value,
|
|
@@ -1127,7 +1132,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1127
1132
|
key: String(e.key)
|
|
1128
1133
|
}, [
|
|
1129
1134
|
(u(!0), i(g, null, S(e.points, (o) => (u(), i("g", null, [
|
|
1130
|
-
e.isVisible &&
|
|
1135
|
+
e.isVisible && a.cutNullValues && o.value !== null ? (u(), i("circle", {
|
|
1131
1136
|
key: `sel-plot-${e.key}-${o.i}`,
|
|
1132
1137
|
cx: o.x,
|
|
1133
1138
|
cy: o.y,
|
|
@@ -1141,12 +1146,12 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1141
1146
|
]))
|
|
1142
1147
|
], 64)),
|
|
1143
1148
|
(u(!0), i(g, null, S(Oe.value, (e, o) => (u(), i("rect", {
|
|
1144
|
-
x: p.value * o - (
|
|
1149
|
+
x: p.value * o - (a.minimapCompact ? p.value / 2 : 0),
|
|
1145
1150
|
y: 0,
|
|
1146
1151
|
height: Math.max(d.value.height, 0),
|
|
1147
1152
|
width: p.value < 0 ? 0 : p.value,
|
|
1148
1153
|
fill: "transparent",
|
|
1149
|
-
style: L([{ "pointer-events": "all !important" }, { cursor: e >= Z.value && e < Y.value &&
|
|
1154
|
+
style: L([{ "pointer-events": "all !important" }, { cursor: e >= Z.value && e < Y.value && a.enableSelectionDrag ? H.value ? "grabbing" : "grab" : "default" }]),
|
|
1150
1155
|
onMousedown: l[0] || (l[0] = (r) => H.value = !0),
|
|
1151
1156
|
onMouseup: l[1] || (l[1] = (r) => H.value = !1),
|
|
1152
1157
|
onMouseenter: (r) => zt(e),
|
|
@@ -1158,19 +1163,19 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1158
1163
|
])) : c("", !0),
|
|
1159
1164
|
A("div", {
|
|
1160
1165
|
class: "slider-track",
|
|
1161
|
-
style: L({ visibility: k.value &&
|
|
1166
|
+
style: L({ visibility: k.value && a.minimapCompact ? "hidden" : "visible" })
|
|
1162
1167
|
}, null, 4),
|
|
1163
1168
|
A("div", {
|
|
1164
|
-
class: _({ "range-highlight": !0, move:
|
|
1169
|
+
class: _({ "range-highlight": !0, move: a.enableSelectionDrag }),
|
|
1165
1170
|
onMousedown: l[3] || (l[3] = (e) => H.value = !0),
|
|
1166
1171
|
onMouseup: l[4] || (l[4] = (e) => H.value = !1),
|
|
1167
1172
|
style: L({
|
|
1168
1173
|
...F.value,
|
|
1169
1174
|
cursor: H.value ? "grabbing" : "grab",
|
|
1170
|
-
visibility: k.value &&
|
|
1175
|
+
visibility: k.value && a.minimapCompact ? "hidden" : "visible"
|
|
1171
1176
|
})
|
|
1172
1177
|
}, null, 38),
|
|
1173
|
-
|
|
1178
|
+
a.enableRangeHandles ? yt((u(), i("input", {
|
|
1174
1179
|
key: 1,
|
|
1175
1180
|
"aria-label": "range-handle-left",
|
|
1176
1181
|
ref_key: "rangeStart",
|
|
@@ -1179,11 +1184,11 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1179
1184
|
class: _({
|
|
1180
1185
|
"range-left": !0,
|
|
1181
1186
|
"range-handle": !0,
|
|
1182
|
-
"range-minimap": k.value &&
|
|
1183
|
-
"range-invisible": k.value &&
|
|
1187
|
+
"range-minimap": k.value && a.verticalHandles,
|
|
1188
|
+
"range-invisible": k.value && a.minimapCompact
|
|
1184
1189
|
}),
|
|
1185
|
-
min:
|
|
1186
|
-
max:
|
|
1190
|
+
min: a.min,
|
|
1191
|
+
max: a.minimapCompact && k.value ? Math.max(0, K.value - 1) : a.max,
|
|
1187
1192
|
"onUpdate:modelValue": l[5] || (l[5] = (e) => he.value = e),
|
|
1188
1193
|
onInput: l[6] || (l[6] = (e) => he.value = e.target.valueAsNumber),
|
|
1189
1194
|
onChange: R,
|
|
@@ -1199,7 +1204,7 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1199
1204
|
{ number: !0 }
|
|
1200
1205
|
]
|
|
1201
1206
|
]) : c("", !0),
|
|
1202
|
-
|
|
1207
|
+
a.enableRangeHandles ? yt((u(), i("input", {
|
|
1203
1208
|
key: 2,
|
|
1204
1209
|
"aria-label": "range-handle-right",
|
|
1205
1210
|
ref_key: "rangeEnd",
|
|
@@ -1208,11 +1213,11 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1208
1213
|
class: _({
|
|
1209
1214
|
"range-right": !0,
|
|
1210
1215
|
"range-handle": !0,
|
|
1211
|
-
"range-minimap": k.value &&
|
|
1212
|
-
"range-invisible": k.value &&
|
|
1216
|
+
"range-minimap": k.value && a.verticalHandles,
|
|
1217
|
+
"range-invisible": k.value && a.minimapCompact
|
|
1213
1218
|
}),
|
|
1214
|
-
min:
|
|
1215
|
-
max:
|
|
1219
|
+
min: a.min,
|
|
1220
|
+
max: a.minimapCompact && k.value ? Math.max(0, K.value - 1) : a.max,
|
|
1216
1221
|
"onUpdate:modelValue": l[8] || (l[8] = (e) => fe.value = e),
|
|
1217
1222
|
onInput: l[9] || (l[9] = (e) => fe.value = e.target.valueAsNumber),
|
|
1218
1223
|
onChange: R,
|
|
@@ -1235,17 +1240,17 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1235
1240
|
class: _({
|
|
1236
1241
|
"range-tooltip": !0,
|
|
1237
1242
|
"range-tooltip-visible": J.value,
|
|
1238
|
-
"range-tooltip-arrow": F.value.arrowLeft && !
|
|
1239
|
-
"range-tooltip-arrow-left": !F.value.arrowLeft && !
|
|
1243
|
+
"range-tooltip-arrow": F.value.arrowLeft && !a.verticalHandles,
|
|
1244
|
+
"range-tooltip-arrow-left": !F.value.arrowLeft && !a.verticalHandles
|
|
1240
1245
|
}),
|
|
1241
1246
|
style: L({
|
|
1242
1247
|
left: F.value.tooltipLeft,
|
|
1243
|
-
color: ke(ze)(
|
|
1244
|
-
backgroundColor:
|
|
1248
|
+
color: ke(ze)(a.selectColor),
|
|
1249
|
+
backgroundColor: a.selectColor,
|
|
1245
1250
|
border: `1px solid ${y.value}`,
|
|
1246
1251
|
zIndex: `${ct.value + 4}`,
|
|
1247
1252
|
visibility: se.value || w.value.left === w.value.right ? "hidden" : "visible",
|
|
1248
|
-
top: k.value &&
|
|
1253
|
+
top: k.value && a.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1249
1254
|
})
|
|
1250
1255
|
}, De(w.value.left), 7)) : c("", !0),
|
|
1251
1256
|
(se.value || w.value.left === w.value.right) && (w.value.left || w.value.right) ? (u(), i("div", {
|
|
@@ -1255,17 +1260,17 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1255
1260
|
"range-tooltip": !0,
|
|
1256
1261
|
"range-tooltip-visible": J.value,
|
|
1257
1262
|
"range-tooltip-arrow": !0,
|
|
1258
|
-
"range-tooltip-arrow-left": !F.value.arrowLeft && !
|
|
1259
|
-
"range-tooltip-arrow-right": !F.value.arrowRight && !
|
|
1263
|
+
"range-tooltip-arrow-left": !F.value.arrowLeft && !a.verticalHandles,
|
|
1264
|
+
"range-tooltip-arrow-right": !F.value.arrowRight && !a.verticalHandles
|
|
1260
1265
|
}),
|
|
1261
1266
|
style: L({
|
|
1262
1267
|
left: F.value.tooltipCenter,
|
|
1263
1268
|
width: ce.value.width + "px",
|
|
1264
|
-
color: ke(ze)(
|
|
1265
|
-
backgroundColor:
|
|
1269
|
+
color: ke(ze)(a.selectColor),
|
|
1270
|
+
backgroundColor: a.selectColor,
|
|
1266
1271
|
border: `1px solid ${y.value}`,
|
|
1267
1272
|
zIndex: "4",
|
|
1268
|
-
top: k.value &&
|
|
1273
|
+
top: k.value && a.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1269
1274
|
})
|
|
1270
1275
|
}, De(w.value.left === w.value.right ? w.value.left : `${w.value.left} - ${w.value.right}`), 7)) : c("", !0),
|
|
1271
1276
|
w.value.right ? (u(), i("div", {
|
|
@@ -1275,23 +1280,23 @@ const kl = ["data-minimap"], Ml = {
|
|
|
1275
1280
|
class: _({
|
|
1276
1281
|
"range-tooltip": !0,
|
|
1277
1282
|
"range-tooltip-visible": J.value,
|
|
1278
|
-
"range-tooltip-arrow": F.value.arrowRight && !
|
|
1279
|
-
"range-tooltip-arrow-right": !F.value.arrowRight && !
|
|
1283
|
+
"range-tooltip-arrow": F.value.arrowRight && !a.verticalHandles,
|
|
1284
|
+
"range-tooltip-arrow-right": !F.value.arrowRight && !a.verticalHandles
|
|
1280
1285
|
}),
|
|
1281
1286
|
style: L({
|
|
1282
1287
|
left: F.value.tooltipRight,
|
|
1283
|
-
color: ke(ze)(
|
|
1284
|
-
backgroundColor:
|
|
1288
|
+
color: ke(ze)(a.selectColor),
|
|
1289
|
+
backgroundColor: a.selectColor,
|
|
1285
1290
|
border: `1px solid ${y.value}`,
|
|
1286
1291
|
zIndex: "4",
|
|
1287
1292
|
visibility: se.value || w.value.left === w.value.right ? "hidden" : "visible",
|
|
1288
|
-
top: k.value &&
|
|
1293
|
+
top: k.value && a.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1289
1294
|
})
|
|
1290
1295
|
}, De(w.value.right), 7)) : c("", !0)
|
|
1291
1296
|
], 36)
|
|
1292
1297
|
], 44, kl));
|
|
1293
1298
|
}
|
|
1294
|
-
}, Sa = /* @__PURE__ */ xl(xa, [["__scopeId", "data-v-
|
|
1299
|
+
}, Sa = /* @__PURE__ */ xl(xa, [["__scopeId", "data-v-dfc8d43b"]]);
|
|
1295
1300
|
export {
|
|
1296
1301
|
Sa as S
|
|
1297
1302
|
};
|