vue-data-ui 3.22.7 → 3.22.9
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as e, G as t, M as n, P as r, R as i, qt as a, r as o, t as ee, xt as te, yt as ne, z as re } from "./lib-JqW18y5I.js";
|
|
2
2
|
import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { c, r as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
3
|
+
import { c as ie, r as c } from "./canvas-lib-BOP_HS11.js";
|
|
4
|
+
import { t as ae } from "./useResponsive-BfnK0KxU.js";
|
|
5
|
+
import { t as oe } from "./BaseIcon-UdRAvP2h.js";
|
|
6
|
+
import { t as se } from "./DefGrad-DVBqDjhO.js";
|
|
7
|
+
import { Fragment as l, computed as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as ce, mergeProps as le, nextTick as ue, normalizeClass as m, normalizeProps as de, normalizeStyle as h, onBeforeUnmount as fe, onMounted as pe, onUpdated as me, openBlock as g, ref as _, renderList as v, renderSlot as he, toDisplayString as ge, unref as _e, useCssVars as ve, vModelText as ye, watch as y, withDirectives as be, withKeys as xe, withModifiers as Se } from "vue";
|
|
7
8
|
//#region src/atoms/SlicerPreview.vue
|
|
8
|
-
var
|
|
9
|
+
var Ce = ["data-minimap"], we = {
|
|
9
10
|
class: "vue-data-ui-slicer-labels",
|
|
10
11
|
style: {
|
|
11
12
|
position: "relative",
|
|
12
13
|
"z-index": "1",
|
|
13
14
|
"pointer-events": "none"
|
|
14
15
|
}
|
|
15
|
-
},
|
|
16
|
+
}, Te = {
|
|
16
17
|
key: 0,
|
|
17
18
|
style: {
|
|
18
19
|
width: "100%",
|
|
19
20
|
position: "relative",
|
|
20
21
|
"pointer-events": "all"
|
|
21
22
|
}
|
|
22
|
-
},
|
|
23
|
+
}, Ee = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "minimap",
|
|
25
26
|
style: { width: "100%" }
|
|
26
|
-
},
|
|
27
|
+
}, De = ["xmlns", "viewBox"], Oe = ["id"], ke = [
|
|
27
28
|
"x",
|
|
28
29
|
"width",
|
|
29
30
|
"height"
|
|
@@ -423,143 +424,143 @@ var xe = ["data-minimap"], Se = {
|
|
|
423
424
|
"trapMouseValue"
|
|
424
425
|
],
|
|
425
426
|
setup(s, { expose: Ot, emit: kt }) {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
427
|
+
ve((e) => ({
|
|
428
|
+
v387ab4e8: nn.value,
|
|
429
|
+
v7bb82e00: P.value,
|
|
430
|
+
v42303b71: an.value,
|
|
431
|
+
v5bed6f30: s.selectColor,
|
|
432
|
+
v99127c84: rn.value,
|
|
433
|
+
v27b98ef0: b.additionalMinimapHeight
|
|
433
434
|
}));
|
|
434
|
-
let
|
|
435
|
+
let b = s;
|
|
435
436
|
function At(e) {
|
|
436
437
|
let t = Number(e) || 0;
|
|
437
|
-
return
|
|
438
|
+
return b.precision <= 0 ? Math.round(t) : Number(t.toFixed(b.precision));
|
|
439
|
+
}
|
|
440
|
+
let x = _(null), S = _(b.min), C = _(b.max), w = u(() => !!b.allMinimaps.length), jt = _(t()), T = _(!1), E = u(() => w.value && b.minimapCompact), D = _(null), Mt = _(!1), Nt = _(0), Pt = _(0), Ft = _(null), It = _(!1), Lt = u(() => D.value !== null), Rt = u(() => b.useValueRange ? C.value : C.value - 1), zt = u(() => Math.max(1, Number(b.max) - Number(b.min)));
|
|
441
|
+
function Bt(e) {
|
|
442
|
+
return (Number(e) - Number(b.min)) / zt.value * 100;
|
|
438
443
|
}
|
|
439
|
-
let S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length), jt = v(i()), E = v(!1), Mt = d(() => T.value && x.minimapCompact), D = v(null), Nt = v(!1), Pt = v(0), Ft = v(0), It = v(null), Lt = v(!1), Rt = d(() => D.value !== null), zt = d(() => x.useValueRange ? w.value : w.value - 1), Bt = d(() => Math.max(1, Number(x.max) - Number(x.min)));
|
|
440
444
|
function Vt(e) {
|
|
441
|
-
return (
|
|
445
|
+
return I.value.width * (Bt(e) / 100);
|
|
442
446
|
}
|
|
443
447
|
function Ht(e) {
|
|
444
|
-
|
|
448
|
+
let t = Math.min(1, Math.max(0, e / Math.max(1, I.value.width)));
|
|
449
|
+
return At(Number(b.min) + zt.value * t);
|
|
445
450
|
}
|
|
446
451
|
function Ut(e) {
|
|
447
|
-
let t =
|
|
448
|
-
return
|
|
452
|
+
let t = b.useValueRange ? e?.y : e;
|
|
453
|
+
return te(t) ? Number(t) : null;
|
|
449
454
|
}
|
|
450
|
-
function Wt(e) {
|
|
451
|
-
|
|
452
|
-
return a(t) ? Number(t) : null;
|
|
455
|
+
function Wt(e, t) {
|
|
456
|
+
return b.useValueRange ? Number(e?.x) : t + Number(b.min);
|
|
453
457
|
}
|
|
454
458
|
function Gt(e, t) {
|
|
455
|
-
return
|
|
456
|
-
}
|
|
457
|
-
function Kt(e, t) {
|
|
458
|
-
return x.useValueRange ? Ht(Gt(e, t)) : V.value * t + (x.minimapCompact ? 0 : V.value / 2);
|
|
459
|
+
return b.useValueRange ? Vt(Wt(e, t)) : V.value * t + (b.minimapCompact ? 0 : V.value / 2);
|
|
459
460
|
}
|
|
460
|
-
let
|
|
461
|
-
get: () =>
|
|
461
|
+
let Kt = u(() => Math.min(40, Math.max(20, b.handleWidth))), qt = _(0), Jt = ie((e) => M("futureStart", e), 0), Yt = ie((e) => M("futureEnd", e), 0), O = u(() => b.precision > 0 ? 1 / 10 ** b.precision : 1), k = u({
|
|
462
|
+
get: () => S.value,
|
|
462
463
|
set(e) {
|
|
463
|
-
let t = Math.min(Number(e), Number(
|
|
464
|
-
t !==
|
|
464
|
+
let t = Math.min(Number(e), Number(C.value) - O.value);
|
|
465
|
+
t !== S.value && (S.value = t, zn.value && (zn.value.value = String(t)), b.immediate ? M("update:start", Number(t)) : T.value && Jt(t));
|
|
465
466
|
}
|
|
466
|
-
}), A =
|
|
467
|
-
get: () =>
|
|
467
|
+
}), A = u({
|
|
468
|
+
get: () => C.value,
|
|
468
469
|
set(e) {
|
|
469
|
-
let t = Math.max(Number(e), Number(
|
|
470
|
-
t !==
|
|
470
|
+
let t = Math.max(Number(e), Number(S.value) + O.value);
|
|
471
|
+
t !== C.value && (C.value = t, Bn.value && (Bn.value.value = String(t)), b.immediate ? M("update:end", Number(t)) : T.value && Yt(t));
|
|
471
472
|
}
|
|
472
473
|
});
|
|
473
474
|
function j() {
|
|
474
|
-
clearTimeout(null),
|
|
475
|
+
clearTimeout(null), b.immediate || (M("update:start", Number(S.value)), M("update:end", Number(C.value))), T.value = !1;
|
|
475
476
|
}
|
|
476
|
-
let
|
|
477
|
-
if (
|
|
478
|
-
if (
|
|
477
|
+
let Xt = u(() => b.refreshEndPoint === null ? b.max : b.refreshEndPoint), M = kt, Zt = u(() => {
|
|
478
|
+
if (b.useValueRange) return Bt(S.value);
|
|
479
|
+
if (E.value) {
|
|
479
480
|
let e = Math.max(1, R.value - 1);
|
|
480
|
-
return
|
|
481
|
+
return An.value / e * 100;
|
|
481
482
|
}
|
|
482
|
-
let e = Math.max(1,
|
|
483
|
-
return (
|
|
484
|
-
}),
|
|
485
|
-
if (
|
|
486
|
-
if (
|
|
483
|
+
let e = Math.max(1, b.max - b.min);
|
|
484
|
+
return (S.value - b.min) / e * 100;
|
|
485
|
+
}), Qt = u(() => {
|
|
486
|
+
if (b.useValueRange) return Bt(C.value);
|
|
487
|
+
if (E.value) {
|
|
487
488
|
let e = Math.max(1, R.value - 1);
|
|
488
|
-
return
|
|
489
|
+
return jn.value / e * 100;
|
|
489
490
|
}
|
|
490
|
-
let e = Math.max(1,
|
|
491
|
-
return (
|
|
492
|
-
}),
|
|
493
|
-
if (!
|
|
494
|
-
let e = Math.max(1,
|
|
495
|
-
return
|
|
496
|
-
}),
|
|
497
|
-
if (!
|
|
498
|
-
let e = Math.max(1,
|
|
499
|
-
return t * ((
|
|
500
|
-
}), N =
|
|
501
|
-
let e =
|
|
491
|
+
let e = Math.max(1, b.max - b.min);
|
|
492
|
+
return (C.value - b.min) / e * 100;
|
|
493
|
+
}), $t = u(() => (Zt.value + Qt.value) / 2), en = u(() => {
|
|
494
|
+
if (!x.value) return !1;
|
|
495
|
+
let e = Math.max(1, b.max - b.min);
|
|
496
|
+
return x.value.getBoundingClientRect().width * ((S.value - b.min) / e) - hr.value / 2 < 0;
|
|
497
|
+
}), tn = u(() => {
|
|
498
|
+
if (!x.value) return !1;
|
|
499
|
+
let e = Math.max(1, b.max - b.min), t = x.value.getBoundingClientRect().width;
|
|
500
|
+
return t * ((C.value - b.min) / e) + gr.value / 2 > t;
|
|
501
|
+
}), N = u(() => {
|
|
502
|
+
let e = tn.value ? `calc(${$t.value}% - ${Sr.value.width}px)` : en.value ? `calc(${$t.value}% - 8px)` : `calc(${$t.value}% - ${Sr.value.width / 2}px)`;
|
|
502
503
|
return {
|
|
503
|
-
left: `${
|
|
504
|
-
width: `${Math.max(0,
|
|
505
|
-
background:
|
|
506
|
-
tooltipLeft: `calc(${
|
|
507
|
-
tooltipRight: `calc(${
|
|
504
|
+
left: `${Zt.value}%`,
|
|
505
|
+
width: `${Math.max(0, Qt.value - Zt.value)}%`,
|
|
506
|
+
background: b.selectColor,
|
|
507
|
+
tooltipLeft: `calc(${Zt.value}% - ${en.value ? 9 : hr.value / 2}px)`,
|
|
508
|
+
tooltipRight: `calc(${Qt.value}% - ${tn.value ? gr.value - 9 : gr.value / 2}px)`,
|
|
508
509
|
tooltipCenter: e,
|
|
509
|
-
arrowLeft: !
|
|
510
|
-
arrowRight: !
|
|
510
|
+
arrowLeft: !en.value,
|
|
511
|
+
arrowRight: !tn.value
|
|
511
512
|
};
|
|
512
|
-
}),
|
|
513
|
-
function
|
|
513
|
+
}), nn = u(() => b.inputColor), rn = u(() => b.background), an = u(() => `${b.selectColor}33`), P = u(() => b.borderColor), on = u(() => Number(b.max) > Number(b.min));
|
|
514
|
+
function sn() {
|
|
514
515
|
M("reset");
|
|
515
516
|
}
|
|
516
|
-
|
|
517
|
-
Number(
|
|
518
|
-
}),
|
|
519
|
-
Number(
|
|
517
|
+
y(() => b.min, (e) => {
|
|
518
|
+
Number(S.value) < Number(e) && (S.value = Number(e)), Number(C.value) < Number(e) && (C.value = Number(e));
|
|
519
|
+
}), y(() => b.max, (e) => {
|
|
520
|
+
Number(S.value) > Number(e) && (S.value = Number(e)), Number(C.value) > Number(e) && (C.value = Number(e));
|
|
520
521
|
});
|
|
521
|
-
let F =
|
|
522
|
+
let F = _(null), I = _({
|
|
522
523
|
width: 1,
|
|
523
524
|
height: 1
|
|
524
|
-
}), L =
|
|
525
|
-
|
|
526
|
-
if (
|
|
527
|
-
let e =
|
|
525
|
+
}), L = _(null);
|
|
526
|
+
pe(() => {
|
|
527
|
+
if (w.value) {
|
|
528
|
+
let e = ie(() => {
|
|
528
529
|
if (!F.value) return;
|
|
529
|
-
let { width: e, height: t } =
|
|
530
|
-
(n !== I.value.width || r !== I.value.height) && (I.value.width = n, I.value.height = r +
|
|
530
|
+
let { width: e, height: t } = ae({ chart: F.value }), n = Math.max(0, Math.round(e)), r = Math.max(0, Math.round(t - 47));
|
|
531
|
+
(n !== I.value.width || r !== I.value.height) && (I.value.width = n, I.value.height = r + b.additionalMinimapHeight);
|
|
531
532
|
}, 0);
|
|
532
533
|
L.value = new ResizeObserver(e), L.value.observe(F.value);
|
|
533
534
|
}
|
|
534
|
-
}),
|
|
535
|
+
}), fe(() => {
|
|
535
536
|
L.value && L.value.disconnect();
|
|
536
537
|
});
|
|
537
|
-
let R =
|
|
538
|
-
function
|
|
539
|
-
let t = Math.floor(e -
|
|
538
|
+
let R = u(() => Math.max(1, b.max - b.min));
|
|
539
|
+
function cn(e) {
|
|
540
|
+
let t = Math.floor(e - b.min);
|
|
540
541
|
return Math.min(Math.max(0, t), R.value);
|
|
541
542
|
}
|
|
542
|
-
function
|
|
543
|
-
let t = Math.ceil(e -
|
|
543
|
+
function ln(e) {
|
|
544
|
+
let t = Math.ceil(e - b.min);
|
|
544
545
|
return Math.min(Math.max(0, t), R.value);
|
|
545
546
|
}
|
|
546
|
-
let z =
|
|
547
|
-
|
|
548
|
-
let V =
|
|
549
|
-
if (
|
|
550
|
-
let e = Math.max(1,
|
|
547
|
+
let z = u(() => cn(S.value)), B = u(() => ln(C.value)), un = u(() => Math.max(...b.allMinimaps.map((e) => e.series.length))), dn = u(() => w.value && b.minimapCompact ? 40 : 0), fn = u(() => dn.value / 2);
|
|
548
|
+
u(() => Math.max(1, I.value.width - fn.value * 2));
|
|
549
|
+
let V = u(() => {
|
|
550
|
+
if (b.minimapCompact && !b.useValueRange) return I.value.width / Math.max(1, R.value - 1);
|
|
551
|
+
let e = Math.max(1, un.value - +!!b.minimapCompact);
|
|
551
552
|
return I.value.width / e;
|
|
552
|
-
}),
|
|
553
|
-
function
|
|
554
|
-
let r =
|
|
553
|
+
}), pn = u(() => b.allMinimaps.length ? b.allMinimaps.filter((e) => e.type === "bar" && e.isVisible).length : 0), mn = u(() => V.value / (pn.value || 1) * .8);
|
|
554
|
+
function hn(e, t, n) {
|
|
555
|
+
let r = mn.value, i = Math.max(1, pn.value), a = un.value - 1;
|
|
555
556
|
return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
|
|
556
557
|
}
|
|
557
|
-
function
|
|
558
|
-
return [0,
|
|
558
|
+
function gn(e, t) {
|
|
559
|
+
return [0, un.value - 1].includes(t) ? mn.value / 2 : mn.value;
|
|
559
560
|
}
|
|
560
|
-
let
|
|
561
|
+
let _n = u(() => {
|
|
561
562
|
let e = [];
|
|
562
|
-
if (Array.isArray(
|
|
563
|
+
if (Array.isArray(b.minimap) && b.minimap.length && b.minimapMerged && e.push(...b.minimap.map(Ut).filter(Number.isFinite)), Array.isArray(b.allMinimaps) && b.allMinimaps.length) for (let t of b.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.map(Ut).filter(Number.isFinite));
|
|
563
564
|
return e.length ? {
|
|
564
565
|
min: Math.min(...e),
|
|
565
566
|
max: Math.max(...e)
|
|
@@ -567,25 +568,25 @@ var xe = ["data-minimap"], Se = {
|
|
|
567
568
|
min: 0,
|
|
568
569
|
max: 1
|
|
569
570
|
};
|
|
570
|
-
}),
|
|
571
|
-
if (
|
|
572
|
-
let e = Number(
|
|
571
|
+
}), vn = u(() => {
|
|
572
|
+
if (b.minScale == null && b.forceZeroCenter) return null;
|
|
573
|
+
let e = Number(b.minScale);
|
|
573
574
|
return Number.isFinite(e) ? e : null;
|
|
574
|
-
}),
|
|
575
|
-
if (
|
|
576
|
-
let e = Number(
|
|
575
|
+
}), yn = u(() => {
|
|
576
|
+
if (b.maxScale == null && b.forceZeroCenter) return null;
|
|
577
|
+
let e = Number(b.maxScale);
|
|
577
578
|
return Number.isFinite(e) ? e : null;
|
|
578
|
-
}),
|
|
579
|
-
let { min: e, max: t } =
|
|
579
|
+
}), bn = u(() => vn.value !== null && yn.value !== null), xn = u(() => {
|
|
580
|
+
let { min: e, max: t } = _n.value, n = vn.value, r = yn.value, i, a;
|
|
580
581
|
return n !== null && r !== null ? (i = Math.min(n, e), a = Math.max(r, t)) : (i = n === null ? e : n, a = r === null ? t : r), Number.isFinite(i) || (i = 0), Number.isFinite(a) || (a = 1), i === a ? a = i + 1 : i > a && ([i, a] = [a, i]), {
|
|
581
582
|
min: i,
|
|
582
583
|
max: a
|
|
583
584
|
};
|
|
584
|
-
}),
|
|
585
|
+
}), Sn = u(() => xn.value.min), Cn = u(() => xn.value.max), wn = u(() => Sn.value < 0 && Cn.value > 0 || Cn.value <= 0 ? Sn.value : 0), Tn = (e) => {
|
|
585
586
|
let t = Math.max(1, I.value.height);
|
|
586
|
-
return
|
|
587
|
-
},
|
|
588
|
-
function
|
|
587
|
+
return Dn(Sn.value, Cn.value, t, bn.value)(e);
|
|
588
|
+
}, En = u(() => Tn(0));
|
|
589
|
+
function Dn(e, t, n, r = !1) {
|
|
589
590
|
let i = (e, t, n) => Math.max(t, Math.min(n, e)), a = 1e-9, o = Math.max(a, t - e);
|
|
590
591
|
if (r) return (t) => n - (t - e) / o * n;
|
|
591
592
|
if (t <= 0) {
|
|
@@ -599,8 +600,8 @@ var xe = ["data-minimap"], Se = {
|
|
|
599
600
|
return (e) => (1 - (i(e / r, -1, 1) + 1) / 2) * n;
|
|
600
601
|
}
|
|
601
602
|
}
|
|
602
|
-
function
|
|
603
|
-
if (!
|
|
603
|
+
function On(t, a = !1, o = !1) {
|
|
604
|
+
if (!t || !t.length) return {
|
|
604
605
|
fullSet: "",
|
|
605
606
|
points: [],
|
|
606
607
|
selectionSet: "",
|
|
@@ -613,8 +614,8 @@ var xe = ["data-minimap"], Se = {
|
|
|
613
614
|
selectionMarkers: [],
|
|
614
615
|
dashed: !1
|
|
615
616
|
};
|
|
616
|
-
let ee = Math.max(1, I.value.height), te =
|
|
617
|
-
let n =
|
|
617
|
+
let ee = Math.max(1, I.value.height), te = Dn(Sn.value, Cn.value, ee, bn.value), ne = t.length, s = Math.min(Math.max(0, z.value), Math.max(0, ne - 1)), ie = Math.min(ne, Math.max(s + 1, B.value)), c = t.map((e, t) => {
|
|
618
|
+
let n = Ut(e), r = Number.isFinite(n), i = Gt(e, t), a = te(bn.value ? ((e, t, n) => Math.max(t, Math.min(n, e)))(0, Sn.value, Cn.value) : 0);
|
|
618
619
|
return {
|
|
619
620
|
x: i,
|
|
620
621
|
y: r ? te(n) : NaN,
|
|
@@ -622,24 +623,24 @@ var xe = ["data-minimap"], Se = {
|
|
|
622
623
|
value: r ? n : null,
|
|
623
624
|
y0: a,
|
|
624
625
|
i: t,
|
|
625
|
-
xValue:
|
|
626
|
+
xValue: Wt(e, t)
|
|
626
627
|
};
|
|
627
|
-
}),
|
|
628
|
+
}), ae = (e) => e >= 0 && e < c.length && Number.isFinite(c[e]?.value), oe = c.filter((e) => Number.isFinite(e.value) && !ae(e.i - 1) && !ae(e.i + 1)), se = b.useValueRange ? oe.filter((e) => e.xValue >= Number(S.value) && e.xValue <= Number(C.value)) : oe.filter((e) => e.i >= s && e.i < ie), l = b.useValueRange ? c.filter((e) => e.xValue >= Number(S.value) && e.xValue <= Number(C.value)) : c.slice(s, ie);
|
|
628
629
|
return {
|
|
629
|
-
fullSet:
|
|
630
|
-
points:
|
|
631
|
-
selectionSet:
|
|
632
|
-
sliced:
|
|
633
|
-
firstPlot:
|
|
634
|
-
lastPlot:
|
|
635
|
-
hasFull:
|
|
636
|
-
hasSelection:
|
|
637
|
-
fullMarkers:
|
|
638
|
-
selectionMarkers:
|
|
630
|
+
fullSet: c.length >= 2 ? o ? i(b.cutNullValues ? c : c.filter((e) => e.value != null)) : b.smoothMinimap || a ? b.cutNullValues ? r(c) : n(c.filter((e) => e.value != null)) : b.cutNullValues ? e(c) : re(c.filter((e) => e.value != null)) : "",
|
|
631
|
+
points: c,
|
|
632
|
+
selectionSet: l.length >= 2 ? o ? i(b.cutNullValues ? l : l.filter((e) => e.value != null)) : b.smoothMinimap || a ? b.cutNullValues ? r(l) : n(l.filter((e) => e.value != null)) : b.cutNullValues ? e(l) : re(l.filter((e) => e.value != null)) : "",
|
|
633
|
+
sliced: l,
|
|
634
|
+
firstPlot: b.useValueRange ? l[0] || null : c[s] || null,
|
|
635
|
+
lastPlot: b.useValueRange ? l[l.length - 1] || null : c[Math.max(0, ie - 1)] || null,
|
|
636
|
+
hasFull: c.length >= 2,
|
|
637
|
+
hasSelection: l.length >= 2,
|
|
638
|
+
fullMarkers: oe,
|
|
639
|
+
selectionMarkers: se
|
|
639
640
|
};
|
|
640
641
|
}
|
|
641
|
-
let H =
|
|
642
|
-
let n =
|
|
642
|
+
let H = u(() => b.minimap.length ? On(b.minimap) : []), U = u(() => b.allMinimaps.length ? b.allMinimaps.map((e, t) => {
|
|
643
|
+
let n = On(e?.series || [], !!e.smooth, !!e.useStepper), r = e?.id ?? e?.name ?? t;
|
|
643
644
|
return {
|
|
644
645
|
key: typeof r == "object" ? JSON.stringify(r) : String(r),
|
|
645
646
|
color: e?.color,
|
|
@@ -650,9 +651,9 @@ var xe = ["data-minimap"], Se = {
|
|
|
650
651
|
dashed: e.dashed ?? !1,
|
|
651
652
|
useStepper: !!e.useStepper
|
|
652
653
|
};
|
|
653
|
-
}) : []), W =
|
|
654
|
-
if (
|
|
655
|
-
let e =
|
|
654
|
+
}) : []), W = u(() => {
|
|
655
|
+
if (b.useValueRange) {
|
|
656
|
+
let e = Vt(S.value), t = Vt(C.value);
|
|
656
657
|
return {
|
|
657
658
|
x: e,
|
|
658
659
|
width: Math.max(0, t - e)
|
|
@@ -660,69 +661,69 @@ var xe = ["data-minimap"], Se = {
|
|
|
660
661
|
}
|
|
661
662
|
let e = z.value, t = Math.max(e + 1, B.value);
|
|
662
663
|
return {
|
|
663
|
-
x: V.value * e + (
|
|
664
|
+
x: V.value * e + (b.minimapCompact ? 0 : V.value / 2),
|
|
664
665
|
width: V.value * (t - e) - V.value
|
|
665
666
|
};
|
|
666
|
-
}), G =
|
|
667
|
+
}), G = _(b.minimapSelectedIndex), kn = (e) => Math.round(b.min + e), An = u({
|
|
667
668
|
get() {
|
|
668
|
-
return
|
|
669
|
+
return E.value ? z.value : Number(k.value);
|
|
669
670
|
},
|
|
670
671
|
set(e) {
|
|
671
|
-
if (
|
|
672
|
-
if (
|
|
672
|
+
if (E.value) {
|
|
673
|
+
if (b.useValueRange) {
|
|
673
674
|
let t = At(e);
|
|
674
|
-
|
|
675
|
+
Un(Math.min(Math.max(Number(b.min), t), Number(C.value) - O.value));
|
|
675
676
|
return;
|
|
676
677
|
}
|
|
677
|
-
|
|
678
|
+
Un(kn(Math.round(+e || 0)));
|
|
678
679
|
} else {
|
|
679
|
-
let t = At(e), n = Number(
|
|
680
|
-
|
|
680
|
+
let t = At(e), n = Number(C.value) - O.value, r = Math.min(Math.max(b.min, t), n);
|
|
681
|
+
zn.value && (zn.value.valueAsNumber = r), Un(r);
|
|
681
682
|
}
|
|
682
683
|
}
|
|
683
|
-
}),
|
|
684
|
+
}), jn = u({
|
|
684
685
|
get() {
|
|
685
|
-
return
|
|
686
|
+
return E.value ? Math.max(z.value, B.value - 1) : Number(A.value);
|
|
686
687
|
},
|
|
687
688
|
set(e) {
|
|
688
|
-
if (
|
|
689
|
-
if (
|
|
689
|
+
if (E.value) {
|
|
690
|
+
if (b.useValueRange) {
|
|
690
691
|
let t = At(e);
|
|
691
|
-
|
|
692
|
+
Gn(Math.max(Number(S.value) + O.value, Math.min(t, Number(b.max))));
|
|
692
693
|
return;
|
|
693
694
|
}
|
|
694
|
-
|
|
695
|
+
Gn(kn(Math.round(+e || 0) + 1));
|
|
695
696
|
} else {
|
|
696
|
-
let t = At(e), n = Number(
|
|
697
|
-
|
|
697
|
+
let t = At(e), n = Number(S.value) + O.value, r = Math.max(n, Math.min(t, b.max));
|
|
698
|
+
Bn.value && (Bn.value.valueAsNumber = r), Gn(r);
|
|
698
699
|
}
|
|
699
700
|
}
|
|
700
|
-
}),
|
|
701
|
-
function
|
|
702
|
-
if (t ===
|
|
703
|
-
if (
|
|
704
|
-
G.value = Number.isFinite(Number(e)) ?
|
|
701
|
+
}), Mn = 0;
|
|
702
|
+
function Nn(e, t) {
|
|
703
|
+
if (t === Mn) {
|
|
704
|
+
if (b.useValueRange) {
|
|
705
|
+
G.value = Number.isFinite(Number(e)) ? Vt(Number(e)) : null;
|
|
705
706
|
return;
|
|
706
707
|
}
|
|
707
|
-
G.value =
|
|
708
|
+
G.value = cn(b.valueStart) + e;
|
|
708
709
|
}
|
|
709
710
|
}
|
|
710
|
-
let
|
|
711
|
-
|
|
712
|
-
if (
|
|
711
|
+
let Pn = c(Nn, 60);
|
|
712
|
+
y(() => b.minimapSelectedIndex, (e, t) => {
|
|
713
|
+
if (Mn += 1, [null, void 0].includes(e)) {
|
|
713
714
|
G.value = null;
|
|
714
715
|
return;
|
|
715
716
|
}
|
|
716
|
-
e !== t &&
|
|
717
|
+
e !== t && Pn(e, Mn);
|
|
717
718
|
}, { immediate: !0 });
|
|
718
|
-
function
|
|
719
|
-
if (
|
|
719
|
+
function Fn(e) {
|
|
720
|
+
if (Lt.value) return;
|
|
720
721
|
G.value = e;
|
|
721
722
|
let t = z.value, n = B.value;
|
|
722
723
|
e >= t && e < n && !X.value && M("trapMouse", e - t);
|
|
723
724
|
}
|
|
724
|
-
function
|
|
725
|
-
let t =
|
|
725
|
+
function In(e) {
|
|
726
|
+
let t = Ht(e), n = b.allMinimaps.flatMap((e) => (e.series || []).map((e, n) => ({
|
|
726
727
|
point: e,
|
|
727
728
|
index: n,
|
|
728
729
|
x: Number(e?.x),
|
|
@@ -730,25 +731,25 @@ var xe = ["data-minimap"], Se = {
|
|
|
730
731
|
}))).filter((e) => Number.isFinite(e.x));
|
|
731
732
|
return n.length ? n.reduce((e, t) => t.distance < e.distance ? t : e, n[0]) : null;
|
|
732
733
|
}
|
|
733
|
-
function
|
|
734
|
-
if (!
|
|
735
|
-
let t =
|
|
736
|
-
if (
|
|
737
|
-
let e =
|
|
734
|
+
function Ln(e) {
|
|
735
|
+
if (!on.value || Lt.value) return;
|
|
736
|
+
let t = Rr(e.clientX);
|
|
737
|
+
if (b.useValueRange) {
|
|
738
|
+
let e = In(t);
|
|
738
739
|
if (!e) {
|
|
739
|
-
|
|
740
|
+
Rn();
|
|
740
741
|
return;
|
|
741
742
|
}
|
|
742
|
-
G.value =
|
|
743
|
+
G.value = Vt(e.x), M("trapMouse", e.index), M("trapMouseValue", e.x);
|
|
743
744
|
return;
|
|
744
745
|
}
|
|
745
|
-
|
|
746
|
+
Fn(zr(t));
|
|
746
747
|
}
|
|
747
|
-
function
|
|
748
|
-
G.value = null, !
|
|
748
|
+
function Rn() {
|
|
749
|
+
G.value = null, !Lt.value && (M("trapMouse", null), M("trapMouseValue", null));
|
|
749
750
|
}
|
|
750
|
-
let
|
|
751
|
-
function
|
|
751
|
+
let zn = _(null), Bn = _(null);
|
|
752
|
+
function Vn(e) {
|
|
752
753
|
if (typeof e == "object" && e && "target" in e) {
|
|
753
754
|
let t = e.target, n = "valueAsNumber" in t ? t.valueAsNumber : +t.value;
|
|
754
755
|
return Number.isFinite(n) ? n : NaN;
|
|
@@ -756,141 +757,141 @@ var xe = ["data-minimap"], Se = {
|
|
|
756
757
|
let t = +e;
|
|
757
758
|
return Number.isFinite(t) ? t : NaN;
|
|
758
759
|
}
|
|
759
|
-
let
|
|
760
|
-
function
|
|
761
|
-
|
|
762
|
-
let t =
|
|
763
|
-
Number.isFinite(t) && (cancelAnimationFrame(
|
|
760
|
+
let Hn = 0;
|
|
761
|
+
function Un(e) {
|
|
762
|
+
T.value = !0;
|
|
763
|
+
let t = Vn(e);
|
|
764
|
+
Number.isFinite(t) && (cancelAnimationFrame(Hn), Hn = requestAnimationFrame(() => {
|
|
764
765
|
k.value = t;
|
|
765
766
|
}));
|
|
766
767
|
}
|
|
767
|
-
let
|
|
768
|
-
function
|
|
769
|
-
|
|
770
|
-
let t =
|
|
771
|
-
Number.isFinite(t) && (cancelAnimationFrame(
|
|
768
|
+
let Wn = 0;
|
|
769
|
+
function Gn(e) {
|
|
770
|
+
T.value = !0;
|
|
771
|
+
let t = Vn(e);
|
|
772
|
+
Number.isFinite(t) && (cancelAnimationFrame(Wn), Wn = requestAnimationFrame(() => {
|
|
772
773
|
A.value = t;
|
|
773
774
|
}));
|
|
774
775
|
}
|
|
775
|
-
|
|
776
|
-
cancelAnimationFrame(
|
|
776
|
+
fe(() => {
|
|
777
|
+
cancelAnimationFrame(Hn), cancelAnimationFrame(Wn);
|
|
777
778
|
});
|
|
778
|
-
let
|
|
779
|
-
function
|
|
780
|
-
if (!
|
|
781
|
-
let t =
|
|
782
|
-
return Math.round(
|
|
779
|
+
let Kn = u(() => b.valueEnd - b.valueStart), qn = u(() => Kn.value < b.max - b.min), Jn = _(!1), Yn = _(null), Xn = u(() => (qt.value - 48) / (b.max - b.min) * Kn.value), Zn = u(() => Math.max(1, qt.value - Dt - Xn.value)), Qn = u(() => Math.max(1, b.max - b.min - Kn.value)), $n = u(() => Qn.value / Zn.value), er = _(0), tr = _(0), nr = _(0), rr = _(0), K = null, q = null, J = null, Y = null, ir = _(b.min);
|
|
780
|
+
function ar(e) {
|
|
781
|
+
if (!x.value) return b.min;
|
|
782
|
+
let t = x.value.getBoundingClientRect(), n = t.left + Dt / 2, r = t.right - Dt / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, b.max - b.min);
|
|
783
|
+
return Math.round(b.min + a * o);
|
|
783
784
|
}
|
|
784
|
-
let
|
|
785
|
-
if (
|
|
786
|
-
let
|
|
787
|
-
|
|
788
|
-
let
|
|
789
|
-
if (!
|
|
790
|
-
|
|
791
|
-
let
|
|
792
|
-
if (
|
|
793
|
-
|
|
785
|
+
let or = async (e) => {
|
|
786
|
+
if (T.value = !0, Z.value = !0, !b.enableSelectionDrag) return;
|
|
787
|
+
let t = e.type === "touchstart";
|
|
788
|
+
t || e.stopPropagation();
|
|
789
|
+
let n = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, r = t ? n ? n.target : null : e.target;
|
|
790
|
+
if (!r || !(r instanceof Element) || r.classList?.contains("range-handle") || r.classList?.contains("vue-ui-zoom-compact-minimap-handle") || r.closest(".vue-ui-zoom-compact-minimap-handle")) return;
|
|
791
|
+
Jn.value = !0;
|
|
792
|
+
let i = t ? n ? n.clientX : 0 : e.clientX;
|
|
793
|
+
if (Yn.value = i, er.value = i, b.focusOnDrag && !qn.value && x.value && !It.value) {
|
|
794
|
+
It.value = !0;
|
|
794
795
|
try {
|
|
795
|
-
|
|
796
|
-
let
|
|
797
|
-
o = Math.max(Number(
|
|
798
|
-
let ee = Math.min(Number(
|
|
799
|
-
k.value = o, A.value = ee,
|
|
796
|
+
ir.value = ar(i);
|
|
797
|
+
let e = Math.min(.95, Math.max(.05, b.focusRangeRatio)), t = Number(b.max) - Number(b.min), n = Math.max(1, Math.round(t * e)), r = Math.floor(n / 2), o = ir.value - r;
|
|
798
|
+
o = Math.max(Number(b.min), Math.min(o, Number(b.max) - n));
|
|
799
|
+
let ee = Math.min(Number(b.max), o + n);
|
|
800
|
+
k.value = o, A.value = ee, Jt(o), Yt(ee), a(x.value, "mouseup"), await ue(), a(x.value, "mousedown", { clientX: i });
|
|
800
801
|
} finally {
|
|
801
|
-
|
|
802
|
+
It.value = !1;
|
|
802
803
|
}
|
|
803
804
|
return;
|
|
804
805
|
}
|
|
805
|
-
|
|
806
|
+
tr.value = S.value, nr.value = C.value, rr.value = $n.value, K = t ? "touchmove" : "mousemove", q = t ? "touchend" : "mouseup", J = t ? cr : sr, Y = t ? dr : ur, window.addEventListener(K, J, { passive: !1 }), window.addEventListener(q, Y);
|
|
806
807
|
};
|
|
807
|
-
function
|
|
808
|
-
|
|
808
|
+
function sr(e) {
|
|
809
|
+
Jn.value && lr(e.clientX);
|
|
809
810
|
}
|
|
810
|
-
function
|
|
811
|
-
if (!
|
|
811
|
+
function cr(e) {
|
|
812
|
+
if (!Jn.value || !x.value) return;
|
|
812
813
|
let t = e.target;
|
|
813
|
-
if (!(t instanceof Element) || !
|
|
814
|
+
if (!(t instanceof Element) || !x.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
|
|
814
815
|
e.preventDefault();
|
|
815
816
|
let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
816
|
-
n &&
|
|
817
|
+
n && lr(n.clientX);
|
|
818
|
+
}
|
|
819
|
+
function lr(e) {
|
|
820
|
+
if (!Jn.value) return;
|
|
821
|
+
let t = ar(er.value), n = ar(e) - t, r = Math.round(tr.value + n);
|
|
822
|
+
r = Math.max(b.min, Math.min(r, b.max - Kn.value));
|
|
823
|
+
let i = r + Kn.value;
|
|
824
|
+
k.value = r, A.value = i, Jt(r), Yt(i);
|
|
817
825
|
}
|
|
818
|
-
function ur(
|
|
819
|
-
|
|
820
|
-
let t = or(tr.value), n = or(e) - t, r = Math.round(nr.value + n);
|
|
821
|
-
r = Math.max(x.min, Math.min(r, x.max - qn.value));
|
|
822
|
-
let i = r + qn.value;
|
|
823
|
-
k.value = r, A.value = i, Yt(r), Xt(i);
|
|
826
|
+
function ur() {
|
|
827
|
+
fr();
|
|
824
828
|
}
|
|
825
829
|
function dr() {
|
|
826
|
-
|
|
830
|
+
fr();
|
|
827
831
|
}
|
|
828
832
|
function fr() {
|
|
829
|
-
|
|
833
|
+
Jn.value = !1, K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, j();
|
|
830
834
|
}
|
|
831
|
-
|
|
832
|
-
|
|
835
|
+
let X = _(!1), pr = _(null), mr = _(null), hr = _(1), gr = _(1), Z = _(!1);
|
|
836
|
+
function _r() {
|
|
837
|
+
if (pr.value) {
|
|
838
|
+
let e = Math.round(pr.value.getBoundingClientRect().width);
|
|
839
|
+
e !== hr.value && (hr.value = e);
|
|
840
|
+
}
|
|
833
841
|
}
|
|
834
|
-
let X = v(!1), mr = v(null), hr = v(null), gr = v(1), _r = v(1), Z = v(!1);
|
|
835
842
|
function vr() {
|
|
836
843
|
if (mr.value) {
|
|
837
844
|
let e = Math.round(mr.value.getBoundingClientRect().width);
|
|
838
845
|
e !== gr.value && (gr.value = e);
|
|
839
846
|
}
|
|
840
847
|
}
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
let e = Math.round(hr.value.getBoundingClientRect().width);
|
|
844
|
-
e !== _r.value && (_r.value = e);
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
fe(() => {
|
|
848
|
-
vr(), yr();
|
|
848
|
+
me(() => {
|
|
849
|
+
_r(), vr();
|
|
849
850
|
});
|
|
850
|
-
let
|
|
851
|
-
function
|
|
852
|
-
|
|
851
|
+
let yr = _(0);
|
|
852
|
+
function br(e) {
|
|
853
|
+
yr.value = +(e === "start");
|
|
853
854
|
}
|
|
854
|
-
let
|
|
855
|
+
let xr = _(!1), Sr = _({
|
|
855
856
|
width: 0,
|
|
856
857
|
left: 0
|
|
857
858
|
});
|
|
858
|
-
|
|
859
|
-
if (await
|
|
860
|
-
|
|
859
|
+
y([S, C], async () => {
|
|
860
|
+
if (await ue(), !pr.value || !mr.value) {
|
|
861
|
+
xr.value = !1, Sr.value = {
|
|
861
862
|
width: 0,
|
|
862
863
|
left: 0
|
|
863
864
|
};
|
|
864
865
|
return;
|
|
865
866
|
}
|
|
866
|
-
let e =
|
|
867
|
-
|
|
867
|
+
let e = pr.value.getBoundingClientRect(), t = mr.value.getBoundingClientRect();
|
|
868
|
+
xr.value = e.x + e.width > t.x;
|
|
868
869
|
let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width;
|
|
869
|
-
|
|
870
|
+
Sr.value = {
|
|
870
871
|
width: i,
|
|
871
872
|
left: (n + r) / 2 - i / 2
|
|
872
873
|
};
|
|
873
|
-
}),
|
|
874
|
-
|
|
875
|
-
}),
|
|
876
|
-
|
|
877
|
-
}, { deep: !0 }),
|
|
878
|
-
|
|
874
|
+
}), me(() => {
|
|
875
|
+
_r(), vr();
|
|
876
|
+
}), y(() => b.labelLeft, () => {
|
|
877
|
+
ue(_r);
|
|
878
|
+
}, { deep: !0 }), y(() => b.labelRight, () => {
|
|
879
|
+
ue(vr);
|
|
879
880
|
}, { deep: !0 });
|
|
880
|
-
let Q =
|
|
881
|
+
let Q = u(() => {
|
|
881
882
|
let e = "", t = "", n = !1;
|
|
882
|
-
if (ne(
|
|
883
|
-
let r =
|
|
884
|
-
absoluteIndex:
|
|
885
|
-
seriesIndex:
|
|
886
|
-
datapoint:
|
|
887
|
-
timeLabel:
|
|
883
|
+
if (ne(b.customFormat)) try {
|
|
884
|
+
let r = b.customFormat({
|
|
885
|
+
absoluteIndex: S.value,
|
|
886
|
+
seriesIndex: S.value,
|
|
887
|
+
datapoint: b.selectedSeries,
|
|
888
|
+
timeLabel: b.preciseLabels[S.value],
|
|
888
889
|
side: "left"
|
|
889
|
-
}), i =
|
|
890
|
-
absoluteIndex:
|
|
890
|
+
}), i = b.customFormat({
|
|
891
|
+
absoluteIndex: Rt.value,
|
|
891
892
|
seriesIndex: -1,
|
|
892
|
-
datapoint:
|
|
893
|
-
timeLabel:
|
|
893
|
+
datapoint: b.selectedSeries,
|
|
894
|
+
timeLabel: b.useValueRange ? null : b.preciseLabels[Rt.value],
|
|
894
895
|
side: "right"
|
|
895
896
|
});
|
|
896
897
|
typeof r == "string" && typeof i == "string" && (e = r, t = i, n = !0);
|
|
@@ -898,7 +899,7 @@ var xe = ["data-minimap"], Se = {
|
|
|
898
899
|
n = !1;
|
|
899
900
|
}
|
|
900
901
|
if (!n) {
|
|
901
|
-
let n =
|
|
902
|
+
let n = b.useValueRange ? { text: String(Math.round(S.value * 1e3) / 1e3) } : b.usePreciseLabels ? b.preciseLabels.find((e) => e.absoluteIndex === S.value) : b.timeLabels.find((e) => e.absoluteIndex === S.value), r = b.useValueRange ? { text: String(Math.round(C.value * 1e3) / 1e3) } : b.usePreciseLabels ? b.preciseLabels.find((e) => e.absoluteIndex === Rt.value) : b.timeLabels.find((e) => e.absoluteIndex === Rt.value);
|
|
902
903
|
e = n ? n.text : "", t = r ? r.text : "";
|
|
903
904
|
}
|
|
904
905
|
return {
|
|
@@ -906,156 +907,156 @@ var xe = ["data-minimap"], Se = {
|
|
|
906
907
|
right: t
|
|
907
908
|
};
|
|
908
909
|
});
|
|
909
|
-
|
|
910
|
+
fe(() => {
|
|
910
911
|
L.value && L.value.disconnect(), K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, clearTimeout(null);
|
|
911
912
|
});
|
|
912
|
-
let
|
|
913
|
-
if (!
|
|
914
|
-
if (
|
|
913
|
+
let Cr = u(() => {
|
|
914
|
+
if (!on.value || G.value === null) return null;
|
|
915
|
+
if (b.useValueRange) {
|
|
915
916
|
let e = G.value;
|
|
916
917
|
return e < W.value.x || e > W.value.x + W.value.width ? null : {
|
|
917
918
|
x1: e,
|
|
918
919
|
x2: e,
|
|
919
920
|
y1: 0,
|
|
920
921
|
y2: Math.max(I.value.height, 0),
|
|
921
|
-
stroke:
|
|
922
|
+
stroke: b.minimapIndicatorColor,
|
|
922
923
|
"stroke-linecap": "round",
|
|
923
924
|
"stroke-dasharray": 2,
|
|
924
925
|
"stroke-width": 1
|
|
925
926
|
};
|
|
926
927
|
}
|
|
927
928
|
if (G.value >= z.value && G.value < B.value) {
|
|
928
|
-
let e = G.value, t = V.value * e + (
|
|
929
|
+
let e = G.value, t = V.value * e + (b.minimapCompact ? 0 : V.value / 2);
|
|
929
930
|
return {
|
|
930
931
|
x1: t,
|
|
931
932
|
x2: t,
|
|
932
933
|
y1: 0,
|
|
933
934
|
y2: Math.max(I.value.height, 0),
|
|
934
|
-
stroke:
|
|
935
|
+
stroke: b.minimapIndicatorColor,
|
|
935
936
|
"stroke-linecap": "round",
|
|
936
937
|
"stroke-dasharray": 2,
|
|
937
938
|
"stroke-width": 1
|
|
938
939
|
};
|
|
939
940
|
}
|
|
940
941
|
return null;
|
|
941
|
-
}),
|
|
942
|
+
}), wr = u(() => Number(S.value) < Number(C.value) - 1), Tr = u(() => Number(S.value) > Number(b.min)), Er = u(() => Number(C.value) < Number(b.max)), Dr = u(() => Number(C.value) > Number(S.value) + 1);
|
|
943
|
+
function Or(e) {
|
|
944
|
+
let t = Number(S.value) + e;
|
|
945
|
+
e > 0 && !wr.value || e < 0 && !Tr.value || (T.value = !0, k.value = t, j());
|
|
946
|
+
}
|
|
942
947
|
function kr(e) {
|
|
943
948
|
let t = Number(C.value) + e;
|
|
944
|
-
e > 0 && !
|
|
949
|
+
e > 0 && !Er.value || e < 0 && !Dr.value || (T.value = !0, A.value = t, j());
|
|
945
950
|
}
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
+
let Ar = {
|
|
952
|
+
plus: () => Or(1),
|
|
953
|
+
minus: () => Or(-1),
|
|
954
|
+
canPlus: wr,
|
|
955
|
+
canMinus: Tr
|
|
956
|
+
}, jr = {
|
|
951
957
|
plus: () => kr(1),
|
|
952
958
|
minus: () => kr(-1),
|
|
953
|
-
canPlus:
|
|
954
|
-
canMinus:
|
|
955
|
-
}, Mr = {
|
|
956
|
-
plus: () => Ar(1),
|
|
957
|
-
minus: () => Ar(-1),
|
|
958
|
-
canPlus: Dr,
|
|
959
|
-
canMinus: Or
|
|
959
|
+
canPlus: Er,
|
|
960
|
+
canMinus: Dr
|
|
960
961
|
};
|
|
961
|
-
function
|
|
962
|
-
if (!e ||
|
|
962
|
+
function Mr(e) {
|
|
963
|
+
if (!e || Nr(e.target)) return;
|
|
963
964
|
let t = e.key, n = t === "ArrowLeft" || t === "ArrowDown" || t === "-" || t === "Subtract", r = t === "ArrowRight" || t === "ArrowUp" || t === "+" || t === "Add";
|
|
964
|
-
!n && !r || (e.preventDefault(), e.stopPropagation(), r ? (
|
|
965
|
+
!n && !r || (e.preventDefault(), e.stopPropagation(), r ? (Ar.plus(), jr.plus()) : (Ar.minus(), jr.minus()));
|
|
965
966
|
}
|
|
966
|
-
function
|
|
967
|
+
function Nr(e) {
|
|
967
968
|
return e instanceof HTMLElement && (e.isContentEditable || e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.tagName === "SELECT");
|
|
968
969
|
}
|
|
969
|
-
function
|
|
970
|
-
if (!
|
|
971
|
-
let t =
|
|
970
|
+
function Pr(e) {
|
|
971
|
+
if (!w.value || !b.minimapCompact) return;
|
|
972
|
+
let t = x.value;
|
|
972
973
|
if (!t) return;
|
|
973
974
|
let n = e === "start" ? "[data-cy=\"slicer-compact-handle-left\"]" : "[data-cy=\"slicer-compact-handle-right\"]", r = t.querySelector(n);
|
|
974
975
|
r && r instanceof SVGElement && typeof r.focus == "function" && r.focus();
|
|
975
976
|
}
|
|
976
|
-
function
|
|
977
|
-
if (!t ||
|
|
977
|
+
function Fr(e, t) {
|
|
978
|
+
if (!t || Nr(t.target)) return;
|
|
978
979
|
let n = t.key, r = n === "ArrowLeft" || n === "ArrowDown" || n === "-" || n === "Subtract", i = n === "ArrowRight" || n === "ArrowUp" || n === "+" || n === "Add";
|
|
979
|
-
!r && !i || (t.preventDefault(), t.stopPropagation(), e === "start" ? i ?
|
|
980
|
+
!r && !i || (t.preventDefault(), t.stopPropagation(), e === "start" ? i ? Ar.plus() : Ar.minus() : i ? jr.plus() : jr.minus(), ue(() => Pr(e)));
|
|
980
981
|
}
|
|
981
|
-
let
|
|
982
|
+
let Ir = u(() => ({
|
|
982
983
|
tabindex: 0,
|
|
983
984
|
role: "slider",
|
|
984
985
|
"aria-label": "Range start",
|
|
985
|
-
"aria-valuemin": Number(
|
|
986
|
-
"aria-valuemax": Math.max(Number(
|
|
987
|
-
"aria-valuenow": Number(
|
|
988
|
-
})),
|
|
986
|
+
"aria-valuemin": Number(b.min),
|
|
987
|
+
"aria-valuemax": Math.max(Number(b.min), Number(C.value) - 1),
|
|
988
|
+
"aria-valuenow": Number(S.value)
|
|
989
|
+
})), Lr = u(() => ({
|
|
989
990
|
tabindex: 0,
|
|
990
991
|
role: "slider",
|
|
991
992
|
"aria-label": "Range end",
|
|
992
|
-
"aria-valuemin": Math.min(Number(
|
|
993
|
-
"aria-valuemax": Number(
|
|
994
|
-
"aria-valuenow": Number(
|
|
993
|
+
"aria-valuemin": Math.min(Number(b.max), Number(S.value) + 1),
|
|
994
|
+
"aria-valuemax": Number(b.max),
|
|
995
|
+
"aria-valuenow": Number(C.value)
|
|
995
996
|
}));
|
|
996
|
-
function
|
|
997
|
-
if (!
|
|
998
|
-
let t =
|
|
997
|
+
function Rr(e) {
|
|
998
|
+
if (!Ft.value) return 0;
|
|
999
|
+
let t = Ft.value.getBoundingClientRect();
|
|
999
1000
|
if (!t.width) return 0;
|
|
1000
1001
|
let n = (e - t.left) / t.width;
|
|
1001
1002
|
return Math.min(1, Math.max(0, n)) * I.value.width;
|
|
1002
1003
|
}
|
|
1003
|
-
function
|
|
1004
|
+
function zr(e) {
|
|
1004
1005
|
let t = Math.max(0, R.value - 1), n = Math.max(1, I.value.width), r = Math.min(1, Math.max(0, e / n));
|
|
1005
1006
|
return Math.min(t, Math.max(0, Math.round(r * t)));
|
|
1006
1007
|
}
|
|
1007
|
-
function
|
|
1008
|
+
function Br(e) {
|
|
1008
1009
|
let t = Math.min(Math.max(0, e), Math.max(1, I.value.width));
|
|
1009
|
-
if (
|
|
1010
|
-
let e =
|
|
1010
|
+
if (b.useValueRange) {
|
|
1011
|
+
let e = Ht(t);
|
|
1011
1012
|
if (D.value === "start") {
|
|
1012
|
-
let t = Math.min(e, Number(
|
|
1013
|
-
k.value = t,
|
|
1013
|
+
let t = Math.min(e, Number(C.value) - O.value);
|
|
1014
|
+
k.value = t, Jt(t);
|
|
1014
1015
|
return;
|
|
1015
1016
|
}
|
|
1016
1017
|
if (D.value === "end") {
|
|
1017
|
-
let t = Math.max(Number(
|
|
1018
|
-
A.value = n,
|
|
1018
|
+
let t = Math.max(Number(S.value) + O.value, e), n = Math.min(Number(b.max), t);
|
|
1019
|
+
A.value = n, Yt(n);
|
|
1019
1020
|
return;
|
|
1020
1021
|
}
|
|
1021
1022
|
}
|
|
1022
|
-
let n =
|
|
1023
|
+
let n = zr(t);
|
|
1023
1024
|
if (D.value === "start") {
|
|
1024
|
-
let e = Math.min(
|
|
1025
|
-
k.value = e,
|
|
1025
|
+
let e = Math.min(b.min + n, Number(C.value) - 1);
|
|
1026
|
+
k.value = e, Jt(e);
|
|
1026
1027
|
return;
|
|
1027
1028
|
}
|
|
1028
1029
|
if (D.value === "end") {
|
|
1029
|
-
let e = Math.max(Number(
|
|
1030
|
-
A.value = t,
|
|
1030
|
+
let e = Math.max(Number(S.value) + 1, b.min + n + 1), t = Math.min(b.max, e);
|
|
1031
|
+
A.value = t, Yt(t);
|
|
1031
1032
|
}
|
|
1032
1033
|
}
|
|
1033
|
-
function
|
|
1034
|
+
function Vr(e) {
|
|
1034
1035
|
if (!D.value || !F.value) return;
|
|
1035
|
-
let t = e.clientX -
|
|
1036
|
-
if (!
|
|
1036
|
+
let t = e.clientX - Nt.value;
|
|
1037
|
+
if (!Mt.value) {
|
|
1037
1038
|
if (Math.abs(t) < 4) return;
|
|
1038
|
-
|
|
1039
|
+
Mt.value = !0, T.value = !0, Z.value = !0;
|
|
1039
1040
|
}
|
|
1040
|
-
let n =
|
|
1041
|
-
|
|
1041
|
+
let n = Rr(e.clientX) - Pt.value;
|
|
1042
|
+
Br(D.value === "start" ? n + Kt.value : n);
|
|
1042
1043
|
}
|
|
1043
|
-
function
|
|
1044
|
+
function Hr() {
|
|
1044
1045
|
if (!D.value) return;
|
|
1045
|
-
window.removeEventListener("mousemove",
|
|
1046
|
-
let e =
|
|
1047
|
-
D.value = null,
|
|
1046
|
+
window.removeEventListener("mousemove", Vr, !0), window.removeEventListener("mouseup", Hr, !0);
|
|
1047
|
+
let e = Mt.value;
|
|
1048
|
+
D.value = null, Mt.value = !1, Nt.value = 0, Pt.value = 0, e && j();
|
|
1048
1049
|
}
|
|
1049
|
-
function
|
|
1050
|
-
if (!
|
|
1050
|
+
function Ur(e, t) {
|
|
1051
|
+
if (!w.value || !b.minimapCompact || !F.value) return;
|
|
1051
1052
|
t.preventDefault(), t.stopPropagation(), G.value = null;
|
|
1052
|
-
let n =
|
|
1053
|
-
D.value = e,
|
|
1053
|
+
let n = Rr(t.clientX), r = e === "start" ? W.value.x - Kt.value : W.value.x + W.value.width;
|
|
1054
|
+
D.value = e, Mt.value = !1, Nt.value = t.clientX, Pt.value = n - r, window.addEventListener("mousemove", Vr, !0), window.addEventListener("mouseup", Hr, !0);
|
|
1054
1055
|
}
|
|
1055
|
-
let
|
|
1056
|
-
|
|
1057
|
-
if (!
|
|
1058
|
-
let e =
|
|
1056
|
+
let Wr = u(() => z.value), Gr = u(() => Math.max(z.value, B.value - 1));
|
|
1057
|
+
u(() => {
|
|
1058
|
+
if (!w.value || !b.minimapCompact || !b.allMinimaps.length) return [];
|
|
1059
|
+
let e = Wr.value, t = Gr.value;
|
|
1059
1060
|
return U.value.flatMap((n) => {
|
|
1060
1061
|
if (!n?.isVisible || !["line", "plot"].includes(n.type) || !n.type) return [];
|
|
1061
1062
|
let r = [], i = n.points?.find((t) => t.i === e && t.value !== null), a = n.points?.find((e) => e.i === t && e.value !== null);
|
|
@@ -1072,73 +1073,77 @@ var xe = ["data-minimap"], Se = {
|
|
|
1072
1073
|
}), r;
|
|
1073
1074
|
});
|
|
1074
1075
|
});
|
|
1075
|
-
let $ =
|
|
1076
|
+
let $ = u(() => Math.min(40, Math.max(20, b.handleWidth))), Kr = u(() => W.value.x - $.value), qr = u(() => W.value.x + W.value.width);
|
|
1076
1077
|
return Ot({
|
|
1077
|
-
setStartValue:
|
|
1078
|
-
setEndValue:
|
|
1079
|
-
}), (e, t) => (
|
|
1080
|
-
"data-minimap":
|
|
1078
|
+
setStartValue: Un,
|
|
1079
|
+
setEndValue: Gn
|
|
1080
|
+
}), (e, t) => (g(), f("div", {
|
|
1081
|
+
"data-minimap": w.value,
|
|
1081
1082
|
"data-dom-to-png-ignore": "",
|
|
1082
1083
|
"data-dom-to-png-ignore-layout": "",
|
|
1083
|
-
style:
|
|
1084
|
+
style: h([{ padding: "0 48px" }, {
|
|
1084
1085
|
maxWidth: s.maxWidth ? s.maxWidth + "px" : void 0,
|
|
1085
1086
|
margin: s.maxWidth ? "0 auto" : void 0
|
|
1086
1087
|
}]),
|
|
1087
1088
|
class: "vue-data-ui-zoom",
|
|
1088
1089
|
ref_key: "zoomWrapper",
|
|
1089
|
-
ref:
|
|
1090
|
-
onMousedown:
|
|
1091
|
-
onTouchstart:
|
|
1092
|
-
}, [
|
|
1090
|
+
ref: x,
|
|
1091
|
+
onMousedown: or,
|
|
1092
|
+
onTouchstart: or
|
|
1093
|
+
}, [p("div", we, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== Xt.value ? (g(), f("div", Te, [he(e.$slots, "reset-action", { reset: sn }, () => [p("button", {
|
|
1093
1094
|
tabindex: "0",
|
|
1094
1095
|
role: "button",
|
|
1095
1096
|
class: "vue-data-ui-refresh-button",
|
|
1096
|
-
style:
|
|
1097
|
-
top:
|
|
1097
|
+
style: h({
|
|
1098
|
+
top: w.value ? "36px" : "-16px",
|
|
1098
1099
|
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
1099
1100
|
}),
|
|
1100
|
-
onClick:
|
|
1101
|
-
}, [oe
|
|
1101
|
+
onClick: sn
|
|
1102
|
+
}, [ce(oe, {
|
|
1102
1103
|
name: "refresh",
|
|
1103
1104
|
stroke: s.textColor
|
|
1104
|
-
}, null, 8, ["stroke"])], 4)], !0)])) :
|
|
1105
|
+
}, null, 8, ["stroke"])], 4)], !0)])) : d("", !0)]), p("div", {
|
|
1105
1106
|
class: "double-range-slider",
|
|
1106
1107
|
ref_key: "minimapWrapper",
|
|
1107
1108
|
ref: F,
|
|
1108
|
-
style:
|
|
1109
|
+
style: h([{ "z-index": "0" }, w.value ? {
|
|
1109
1110
|
"--minimap-unit-px": V.value + "px",
|
|
1110
1111
|
"--minimap-offset-px": (s.minimapCompact ? 0 : V.value / 2) + "px"
|
|
1111
1112
|
} : void 0]),
|
|
1112
1113
|
onMouseenter: t[18] ||= (e) => Z.value = !0,
|
|
1113
1114
|
onMouseleave: t[19] ||= (e) => Z.value = !1
|
|
1114
1115
|
}, [
|
|
1115
|
-
|
|
1116
|
+
w.value ? (g(), f("div", Ee, [(g(), f("svg", {
|
|
1116
1117
|
ref_key: "minimapSvg",
|
|
1117
|
-
ref:
|
|
1118
|
+
ref: Ft,
|
|
1118
1119
|
key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
|
|
1119
|
-
xmlns:
|
|
1120
|
+
xmlns: _e(ee),
|
|
1120
1121
|
viewBox: `0 0 ${Math.max(0, I.value.width)} ${Math.max(0, I.value.height)}`,
|
|
1121
1122
|
preserveAspectRatio: "none"
|
|
1122
1123
|
}, [
|
|
1123
|
-
|
|
1124
|
+
p("defs", null, [ce(se, {
|
|
1125
|
+
t: "linear",
|
|
1124
1126
|
id: jt.value,
|
|
1125
1127
|
x1: "0%",
|
|
1126
1128
|
y1: "0%",
|
|
1127
1129
|
x2: "0%",
|
|
1128
|
-
y2: "100%"
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1130
|
+
y2: "100%",
|
|
1131
|
+
stops: [[
|
|
1132
|
+
"0%",
|
|
1133
|
+
s.minimapLineColor,
|
|
1134
|
+
.31
|
|
1135
|
+
], [
|
|
1136
|
+
"100%",
|
|
1137
|
+
"transparent",
|
|
1138
|
+
0
|
|
1139
|
+
]]
|
|
1140
|
+
}, null, 8, ["id", "stops"]), p("clipPath", { id: `selection_clip_${jt.value}` }, [p("rect", {
|
|
1136
1141
|
x: W.value.x,
|
|
1137
1142
|
y: "0",
|
|
1138
1143
|
width: Math.max(0, W.value.width),
|
|
1139
1144
|
height: Math.max(I.value.height, 0)
|
|
1140
1145
|
}, null, 8, ke)], 8, Oe)]),
|
|
1141
|
-
s.minimapCompact ? (
|
|
1146
|
+
s.minimapCompact ? (g(), f("rect", {
|
|
1142
1147
|
key: 0,
|
|
1143
1148
|
class: "vue-ui-zoom-minimap-frame",
|
|
1144
1149
|
x: 0,
|
|
@@ -1148,8 +1153,8 @@ var xe = ["data-minimap"], Se = {
|
|
|
1148
1153
|
fill: "none",
|
|
1149
1154
|
stroke: s.minimapFrameColor,
|
|
1150
1155
|
rx: 3
|
|
1151
|
-
}, null, 8, Ae)) :
|
|
1152
|
-
e.$slots.slotMap ?
|
|
1156
|
+
}, null, 8, Ae)) : d("", !0),
|
|
1157
|
+
e.$slots.slotMap ? d("", !0) : (g(), f(l, { key: 1 }, [s.minimapMerged ? (g(), f("path", {
|
|
1153
1158
|
key: 0,
|
|
1154
1159
|
d: `M${H.value.fullSet}`,
|
|
1155
1160
|
stroke: `${s.minimapLineColor}`,
|
|
@@ -1158,30 +1163,30 @@ var xe = ["data-minimap"], Se = {
|
|
|
1158
1163
|
"stroke-linecap": "round",
|
|
1159
1164
|
"stroke-linejoin": "round",
|
|
1160
1165
|
style: { opacity: "0.6" }
|
|
1161
|
-
}, null, 8, je)) :
|
|
1166
|
+
}, null, 8, je)) : d("", !0), s.minimapMerged && !s.minimapCompact ? (g(), f("path", {
|
|
1162
1167
|
key: 1,
|
|
1163
1168
|
d: `M${V.value / 2},${Math.max(I.value.height, 0)} ${H.value.fullSet} L${I.value.width - V.value / 2},${Math.max(I.value.height, 0)}Z`,
|
|
1164
1169
|
fill: `url(#${jt.value})`,
|
|
1165
1170
|
stroke: "none",
|
|
1166
1171
|
style: { opacity: "0.6" }
|
|
1167
|
-
}, null, 8, Me)) : s.minimapMerged ?
|
|
1168
|
-
(
|
|
1172
|
+
}, null, 8, Me)) : s.minimapMerged ? d("", !0) : (g(), f(l, { key: 2 }, [
|
|
1173
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (g(), f("g", null, [(g(!0), f(l, null, v(e.points, (n, r) => (g(), f(l, null, [e && !isNaN(n.y) ? (g(), f("rect", {
|
|
1169
1174
|
key: 0,
|
|
1170
|
-
x:
|
|
1175
|
+
x: hn(n.x, t, r),
|
|
1171
1176
|
y: n.v >= 0 ? n.y : n.y0,
|
|
1172
|
-
width:
|
|
1177
|
+
width: gn(t, r),
|
|
1173
1178
|
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1174
1179
|
fill: e.color,
|
|
1175
1180
|
style: { opacity: .6 }
|
|
1176
|
-
}, null, 8, Ne)) :
|
|
1177
|
-
(
|
|
1181
|
+
}, null, 8, Ne)) : d("", !0)], 64))), 256))]))), 256)),
|
|
1182
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "line"), (e) => (g(), f("g", null, [e.isVisible ? (g(), f("path", {
|
|
1178
1183
|
key: 0,
|
|
1179
1184
|
d: `M ${e.fullSet}`,
|
|
1180
1185
|
fill: "none",
|
|
1181
1186
|
stroke: e.color,
|
|
1182
1187
|
style: { opacity: "0.6" },
|
|
1183
1188
|
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1184
|
-
}, null, 8, Pe)) :
|
|
1189
|
+
}, null, 8, Pe)) : d("", !0), e.isVisible && s.cutNullValues ? (g(!0), f(l, { key: 1 }, v(e.fullMarkers, (t) => (g(), f("circle", {
|
|
1185
1190
|
key: `sel-dot-under-${e.key}-${t.i}`,
|
|
1186
1191
|
cx: t.x,
|
|
1187
1192
|
cy: t.y,
|
|
@@ -1190,8 +1195,8 @@ var xe = ["data-minimap"], Se = {
|
|
|
1190
1195
|
stroke: P.value,
|
|
1191
1196
|
"stroke-width": "0.5",
|
|
1192
1197
|
style: { opacity: "0.6" }
|
|
1193
|
-
}, null, 8, Fe))), 128)) :
|
|
1194
|
-
(
|
|
1198
|
+
}, null, 8, Fe))), 128)) : d("", !0)]))), 256)),
|
|
1199
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "plot"), (e) => (g(), f("g", null, [(g(!0), f(l, null, v(e.points, (t) => (g(), f("g", null, [e.isVisible && t.value !== null ? (g(), f("circle", {
|
|
1195
1200
|
key: `sel-plot-under-${e.key}-${t.i}`,
|
|
1196
1201
|
cx: t.x,
|
|
1197
1202
|
cy: t.y,
|
|
@@ -1200,9 +1205,9 @@ var xe = ["data-minimap"], Se = {
|
|
|
1200
1205
|
stroke: P.value,
|
|
1201
1206
|
"stroke-width": "0.5",
|
|
1202
1207
|
style: { opacity: "0.6" }
|
|
1203
|
-
}, null, 8, Ie)) :
|
|
1208
|
+
}, null, 8, Ie)) : d("", !0)]))), 256))]))), 256))
|
|
1204
1209
|
], 64))], 64)),
|
|
1205
|
-
|
|
1210
|
+
p("rect", {
|
|
1206
1211
|
x: W.value.x,
|
|
1207
1212
|
y: 0,
|
|
1208
1213
|
width: Math.max(0, W.value.width),
|
|
@@ -1211,44 +1216,44 @@ var xe = ["data-minimap"], Se = {
|
|
|
1211
1216
|
rx: s.minimapSelectionRadius,
|
|
1212
1217
|
stroke: "none"
|
|
1213
1218
|
}, null, 8, Le),
|
|
1214
|
-
|
|
1219
|
+
p("rect", {
|
|
1215
1220
|
x: W.value.x,
|
|
1216
1221
|
y: 0,
|
|
1217
1222
|
width: W.value.width < 0 ? 0 : W.value.width,
|
|
1218
1223
|
height: Math.max(I.value.height, 0),
|
|
1219
1224
|
rx: s.minimapSelectionRadius,
|
|
1220
1225
|
fill: P.value,
|
|
1221
|
-
style:
|
|
1226
|
+
style: h({ opacity: Jn.value || T.value ? 0 : 1 })
|
|
1222
1227
|
}, null, 12, Re),
|
|
1223
|
-
|
|
1228
|
+
p("rect", {
|
|
1224
1229
|
x: W.value.x,
|
|
1225
1230
|
y: 0,
|
|
1226
1231
|
width: W.value.width < 0 ? 0 : W.value.width,
|
|
1227
1232
|
height: Math.max(I.value.height, 0),
|
|
1228
1233
|
fill: s.minimapSelectedColor,
|
|
1229
1234
|
rx: s.minimapSelectionRadius,
|
|
1230
|
-
style:
|
|
1235
|
+
style: h({ opacity: s.minimapSelectedColorOpacity }),
|
|
1231
1236
|
tabindex: "0",
|
|
1232
1237
|
role: "slider",
|
|
1233
1238
|
"aria-label": "Selected range",
|
|
1234
|
-
"aria-valuemin": Number(
|
|
1235
|
-
"aria-valuemax": Number(
|
|
1236
|
-
"aria-valuenow": Number(
|
|
1239
|
+
"aria-valuemin": Number(b.min),
|
|
1240
|
+
"aria-valuemax": Number(b.max),
|
|
1241
|
+
"aria-valuenow": Number(S.value),
|
|
1237
1242
|
"aria-valuetext": Q.value.left && Q.value.right ? `${Q.value.left} – ${Q.value.right}` : void 0,
|
|
1238
|
-
onKeydown:
|
|
1243
|
+
onKeydown: Mr
|
|
1239
1244
|
}, null, 44, ze),
|
|
1240
|
-
!s.minimapMerged &&
|
|
1245
|
+
!s.minimapMerged && wn.value < 0 ? (g(), f("line", {
|
|
1241
1246
|
key: 2,
|
|
1242
1247
|
class: "slicer-minimap-zero-line",
|
|
1243
1248
|
x1: 0,
|
|
1244
1249
|
x2: I.value.width,
|
|
1245
|
-
y1:
|
|
1246
|
-
y2:
|
|
1250
|
+
y1: En.value,
|
|
1251
|
+
y2: En.value,
|
|
1247
1252
|
stroke: s.minimapFrameColor,
|
|
1248
1253
|
"stroke-width": "0.5"
|
|
1249
|
-
}, null, 8, Be)) :
|
|
1250
|
-
e.$slots.slotMap ?
|
|
1251
|
-
H.value && H.value.sliced && H.value.sliced.length ? (
|
|
1254
|
+
}, null, 8, Be)) : d("", !0),
|
|
1255
|
+
e.$slots.slotMap ? d("", !0) : (g(), f(l, { key: 3 }, [s.minimapMerged ? (g(), f("g", Ve, [
|
|
1256
|
+
H.value && H.value.sliced && H.value.sliced.length ? (g(), f(l, { key: 0 }, [H.value.selectionSet ? (g(), f("path", {
|
|
1252
1257
|
key: 0,
|
|
1253
1258
|
d: `M ${H.value.selectionSet}`,
|
|
1254
1259
|
stroke: `${s.minimapLineColor}`,
|
|
@@ -1256,8 +1261,8 @@ var xe = ["data-minimap"], Se = {
|
|
|
1256
1261
|
"stroke-width": "2",
|
|
1257
1262
|
"stroke-linecap": "round",
|
|
1258
1263
|
"stroke-linejoin": "round"
|
|
1259
|
-
}, null, 8, He)) :
|
|
1260
|
-
H.value && H.value.firstPlot ? (
|
|
1264
|
+
}, null, 8, He)) : d("", !0)], 64)) : d("", !0),
|
|
1265
|
+
H.value && H.value.firstPlot ? (g(), f("circle", {
|
|
1261
1266
|
key: 1,
|
|
1262
1267
|
cx: H.value.firstPlot.x,
|
|
1263
1268
|
cy: H.value.firstPlot.y,
|
|
@@ -1265,8 +1270,8 @@ var xe = ["data-minimap"], Se = {
|
|
|
1265
1270
|
stroke: P.value,
|
|
1266
1271
|
r: "3",
|
|
1267
1272
|
fill: s.minimapLineColor
|
|
1268
|
-
}, null, 8, Ue)) :
|
|
1269
|
-
H.value && H.value.lastPlot ? (
|
|
1273
|
+
}, null, 8, Ue)) : d("", !0),
|
|
1274
|
+
H.value && H.value.lastPlot ? (g(), f("circle", {
|
|
1270
1275
|
key: 2,
|
|
1271
1276
|
cx: H.value.lastPlot.x,
|
|
1272
1277
|
cy: H.value.lastPlot.y,
|
|
@@ -1274,18 +1279,18 @@ var xe = ["data-minimap"], Se = {
|
|
|
1274
1279
|
stroke: P.value,
|
|
1275
1280
|
r: "3",
|
|
1276
1281
|
fill: s.minimapLineColor
|
|
1277
|
-
}, null, 8, We)) :
|
|
1278
|
-
])) : (
|
|
1279
|
-
(
|
|
1282
|
+
}, null, 8, We)) : d("", !0)
|
|
1283
|
+
])) : (g(), f("g", Ge, [
|
|
1284
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (g(), f("g", null, [(g(!0), f(l, null, v(e.points, (n, r) => (g(), f(l, null, [e && !isNaN(n.y) ? (g(), f("rect", {
|
|
1280
1285
|
key: 0,
|
|
1281
|
-
x:
|
|
1286
|
+
x: hn(n.x, t, r),
|
|
1282
1287
|
y: n.v >= 0 ? n.y : n.y0,
|
|
1283
|
-
width:
|
|
1288
|
+
width: gn(t, r),
|
|
1284
1289
|
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1285
1290
|
fill: e.color,
|
|
1286
|
-
style:
|
|
1287
|
-
}, null, 12, Ke)) :
|
|
1288
|
-
(
|
|
1291
|
+
style: h({ opacity: +(r >= k.value && r < A.value) })
|
|
1292
|
+
}, null, 12, Ke)) : d("", !0)], 64))), 256))]))), 256)),
|
|
1293
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "line"), (e, t) => (g(), f("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (g(), f("path", {
|
|
1289
1294
|
key: 0,
|
|
1290
1295
|
d: `M ${e.selectionSet}`,
|
|
1291
1296
|
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
|
|
@@ -1294,8 +1299,8 @@ var xe = ["data-minimap"], Se = {
|
|
|
1294
1299
|
"stroke-linecap": "round",
|
|
1295
1300
|
"stroke-linejoin": "round",
|
|
1296
1301
|
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1297
|
-
}, null, 8, qe)) :
|
|
1298
|
-
(
|
|
1302
|
+
}, null, 8, qe)) : d("", !0)]))), 128)),
|
|
1303
|
+
(g(!0), f(l, null, v(U.value.filter((e) => e.type === "plot"), (e) => (g(), f("g", { key: String(e.key) }, [(g(!0), f(l, null, v(e.sliced, (t) => (g(), f("g", null, [e.isVisible && t.value !== null ? (g(), f("circle", {
|
|
1299
1304
|
key: 0,
|
|
1300
1305
|
cx: t.x,
|
|
1301
1306
|
cy: t.y,
|
|
@@ -1304,31 +1309,31 @@ var xe = ["data-minimap"], Se = {
|
|
|
1304
1309
|
stroke: P.value,
|
|
1305
1310
|
"stroke-width": "0.5",
|
|
1306
1311
|
style: { opacity: "0.6" }
|
|
1307
|
-
}, null, 8, Je)) :
|
|
1312
|
+
}, null, 8, Je)) : d("", !0)]))), 256))]))), 128))
|
|
1308
1313
|
]))], 64)),
|
|
1309
|
-
e.$slots.slotMap ?
|
|
1314
|
+
e.$slots.slotMap ? he(e.$slots, "slotMap", de(le({ key: 4 }, {
|
|
1310
1315
|
width: Math.max(0, I.value.width),
|
|
1311
1316
|
height: Math.max(0, I.value.height),
|
|
1312
|
-
zeroY:
|
|
1317
|
+
zeroY: En.value,
|
|
1313
1318
|
unitW: Math.max(0, V.value)
|
|
1314
|
-
})), void 0, !0) :
|
|
1315
|
-
G.value !== null && !X.value ? (
|
|
1316
|
-
|
|
1319
|
+
})), void 0, !0) : d("", !0),
|
|
1320
|
+
G.value !== null && !X.value ? (g(), f("line", de(le({ key: 5 }, Cr.value)), null, 16)) : d("", !0),
|
|
1321
|
+
p("rect", {
|
|
1317
1322
|
x: 0,
|
|
1318
1323
|
y: 0,
|
|
1319
1324
|
width: Math.max(0, I.value.width),
|
|
1320
1325
|
height: Math.max(0, I.value.height),
|
|
1321
1326
|
fill: "transparent",
|
|
1322
|
-
style:
|
|
1327
|
+
style: h([{ "pointer-events": "all !important" }, { cursor: s.enableSelectionDrag ? X.value ? "grabbing" : "grab" : "default" }]),
|
|
1323
1328
|
onMousedown: t[0] ||= (e) => X.value = !0,
|
|
1324
1329
|
onMouseup: t[1] ||= (e) => X.value = !1,
|
|
1325
|
-
onMousemove:
|
|
1326
|
-
onMouseleave:
|
|
1330
|
+
onMousemove: Ln,
|
|
1331
|
+
onMouseleave: Rn
|
|
1327
1332
|
}, null, 44, Ye),
|
|
1328
|
-
|
|
1329
|
-
|
|
1333
|
+
w.value && s.minimapCompact ? (g(), f(l, { key: 6 }, [
|
|
1334
|
+
p("rect", {
|
|
1330
1335
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1331
|
-
x:
|
|
1336
|
+
x: Kr.value,
|
|
1332
1337
|
y: 0,
|
|
1333
1338
|
width: $.value,
|
|
1334
1339
|
height: I.value.height,
|
|
@@ -1337,17 +1342,17 @@ var xe = ["data-minimap"], Se = {
|
|
|
1337
1342
|
"stroke-width": s.handleBorderWidth,
|
|
1338
1343
|
rx: 3
|
|
1339
1344
|
}, null, 8, Xe),
|
|
1340
|
-
s.handleType && s.handleType !== "empty" ? (
|
|
1345
|
+
s.handleType && s.handleType !== "empty" ? (g(), f("g", {
|
|
1341
1346
|
key: 0,
|
|
1342
1347
|
class: "compact-handle-icon",
|
|
1343
|
-
transform: `translate(${
|
|
1348
|
+
transform: `translate(${Kr.value}, 0)`,
|
|
1344
1349
|
style: { "pointer-events": "none" }
|
|
1345
|
-
}, [(
|
|
1350
|
+
}, [(g(), f("svg", {
|
|
1346
1351
|
width: $.value,
|
|
1347
1352
|
height: I.value.height,
|
|
1348
1353
|
viewBox: "0 0 20 20",
|
|
1349
1354
|
preserveAspectRatio: "xMidYMid meet"
|
|
1350
|
-
}, [s.handleType === "arrow" ? (
|
|
1355
|
+
}, [s.handleType === "arrow" ? (g(), f("path", {
|
|
1351
1356
|
key: 0,
|
|
1352
1357
|
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",
|
|
1353
1358
|
fill: P.value,
|
|
@@ -1355,7 +1360,7 @@ var xe = ["data-minimap"], Se = {
|
|
|
1355
1360
|
"stroke-width": .618,
|
|
1356
1361
|
"stroke-linejoin": "round",
|
|
1357
1362
|
"stroke-linecap": "round"
|
|
1358
|
-
}, null, 8, $e)) : s.handleType === "chevron" ? (
|
|
1363
|
+
}, null, 8, $e)) : s.handleType === "chevron" ? (g(), f("path", {
|
|
1359
1364
|
key: 1,
|
|
1360
1365
|
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1361
1366
|
fill: "none",
|
|
@@ -1363,16 +1368,16 @@ var xe = ["data-minimap"], Se = {
|
|
|
1363
1368
|
"stroke-width": .618,
|
|
1364
1369
|
"stroke-linejoin": "round",
|
|
1365
1370
|
"stroke-linecap": "round"
|
|
1366
|
-
}, null, 8, et)) : s.handleType === "grab" ? (
|
|
1371
|
+
}, null, 8, et)) : s.handleType === "grab" ? (g(), f("path", {
|
|
1367
1372
|
key: 2,
|
|
1368
1373
|
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",
|
|
1369
1374
|
fill: s.handleIconColor || s.textColor,
|
|
1370
1375
|
stroke: "none",
|
|
1371
1376
|
opacity: "0.6"
|
|
1372
|
-
}, null, 8, tt)) :
|
|
1373
|
-
|
|
1377
|
+
}, null, 8, tt)) : d("", !0)], 8, Qe))], 8, Ze)) : d("", !0),
|
|
1378
|
+
p("rect", {
|
|
1374
1379
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1375
|
-
x:
|
|
1380
|
+
x: qr.value,
|
|
1376
1381
|
y: 0,
|
|
1377
1382
|
width: $.value,
|
|
1378
1383
|
height: I.value.height,
|
|
@@ -1381,17 +1386,17 @@ var xe = ["data-minimap"], Se = {
|
|
|
1381
1386
|
"stroke-width": s.handleBorderWidth,
|
|
1382
1387
|
rx: 3
|
|
1383
1388
|
}, null, 8, nt),
|
|
1384
|
-
s.handleType && s.handleType !== "empty" ? (
|
|
1389
|
+
s.handleType && s.handleType !== "empty" ? (g(), f("g", {
|
|
1385
1390
|
key: 1,
|
|
1386
1391
|
class: "compact-handle-icon",
|
|
1387
|
-
transform: `translate(${
|
|
1392
|
+
transform: `translate(${qr.value}, 0)`,
|
|
1388
1393
|
style: { "pointer-events": "none" }
|
|
1389
|
-
}, [(
|
|
1394
|
+
}, [(g(), f("svg", {
|
|
1390
1395
|
width: $.value,
|
|
1391
1396
|
height: I.value.height,
|
|
1392
1397
|
viewBox: "0 0 20 20",
|
|
1393
1398
|
preserveAspectRatio: "xMidYMid meet"
|
|
1394
|
-
}, [s.handleType === "arrow" ? (
|
|
1399
|
+
}, [s.handleType === "arrow" ? (g(), f("path", {
|
|
1395
1400
|
key: 0,
|
|
1396
1401
|
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",
|
|
1397
1402
|
fill: P.value,
|
|
@@ -1399,7 +1404,7 @@ var xe = ["data-minimap"], Se = {
|
|
|
1399
1404
|
"stroke-width": .618,
|
|
1400
1405
|
"stroke-linejoin": "round",
|
|
1401
1406
|
"stroke-linecap": "round"
|
|
1402
|
-
}, null, 8, at)) : s.handleType === "chevron" ? (
|
|
1407
|
+
}, null, 8, at)) : s.handleType === "chevron" ? (g(), f("path", {
|
|
1403
1408
|
key: 1,
|
|
1404
1409
|
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1405
1410
|
fill: "none",
|
|
@@ -1407,16 +1412,16 @@ var xe = ["data-minimap"], Se = {
|
|
|
1407
1412
|
"stroke-width": .618,
|
|
1408
1413
|
"stroke-linejoin": "round",
|
|
1409
1414
|
"stroke-linecap": "round"
|
|
1410
|
-
}, null, 8, ot)) : s.handleType === "grab" ? (
|
|
1415
|
+
}, null, 8, ot)) : s.handleType === "grab" ? (g(), f("path", {
|
|
1411
1416
|
key: 2,
|
|
1412
1417
|
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",
|
|
1413
1418
|
fill: s.handleIconColor || s.textColor,
|
|
1414
1419
|
stroke: "none",
|
|
1415
1420
|
opacity: "0.6"
|
|
1416
|
-
}, null, 8, st)) :
|
|
1417
|
-
], 64)) :
|
|
1418
|
-
e.$slots.slotMap ?
|
|
1419
|
-
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (
|
|
1421
|
+
}, null, 8, st)) : d("", !0)], 8, it))], 8, rt)) : d("", !0)
|
|
1422
|
+
], 64)) : d("", !0),
|
|
1423
|
+
e.$slots.slotMap ? d("", !0) : (g(), f(l, { key: 7 }, [s.minimapMerged ? (g(), f("g", ct, [
|
|
1424
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (g(), f("circle", {
|
|
1420
1425
|
key: 0,
|
|
1421
1426
|
cx: H.value.firstPlot.x,
|
|
1422
1427
|
cy: H.value.firstPlot.y,
|
|
@@ -1424,15 +1429,15 @@ var xe = ["data-minimap"], Se = {
|
|
|
1424
1429
|
stroke: P.value,
|
|
1425
1430
|
r: "4",
|
|
1426
1431
|
fill: s.minimapLineColor
|
|
1427
|
-
}, null, 8, lt)) :
|
|
1428
|
-
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (
|
|
1432
|
+
}, null, 8, lt)) : d("", !0),
|
|
1433
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (g(), f("circle", {
|
|
1429
1434
|
key: 1,
|
|
1430
1435
|
cx: H.value.firstPlot.x,
|
|
1431
1436
|
cy: H.value.firstPlot.y,
|
|
1432
1437
|
r: 2,
|
|
1433
1438
|
fill: P.value
|
|
1434
|
-
}, null, 8, ut)) :
|
|
1435
|
-
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (
|
|
1439
|
+
}, null, 8, ut)) : d("", !0),
|
|
1440
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (g(), f("circle", {
|
|
1436
1441
|
key: 2,
|
|
1437
1442
|
cx: H.value.lastPlot.x,
|
|
1438
1443
|
cy: H.value.lastPlot.y,
|
|
@@ -1440,16 +1445,16 @@ var xe = ["data-minimap"], Se = {
|
|
|
1440
1445
|
stroke: P.value,
|
|
1441
1446
|
r: "4",
|
|
1442
1447
|
fill: s.minimapLineColor
|
|
1443
|
-
}, null, 8, dt)) :
|
|
1444
|
-
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (
|
|
1448
|
+
}, null, 8, dt)) : d("", !0),
|
|
1449
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (g(), f("circle", {
|
|
1445
1450
|
key: 3,
|
|
1446
1451
|
cx: H.value.lastPlot.x,
|
|
1447
1452
|
cy: H.value.lastPlot.y,
|
|
1448
1453
|
r: "2",
|
|
1449
1454
|
fill: P.value
|
|
1450
|
-
}, null, 8, ft)) :
|
|
1451
|
-
])) : (
|
|
1452
|
-
e && e.hasSelection && e.selectionSet && e.isVisible ? (
|
|
1455
|
+
}, null, 8, ft)) : d("", !0)
|
|
1456
|
+
])) : (g(), f("g", pt, [(g(!0), f(l, null, v(U.value.filter((e) => e.type === "line"), (e, t) => (g(), f("g", { key: String(e.key) }, [
|
|
1457
|
+
e && e.hasSelection && e.selectionSet && e.isVisible ? (g(), f("path", {
|
|
1453
1458
|
key: 0,
|
|
1454
1459
|
d: `M ${e.selectionSet}`,
|
|
1455
1460
|
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
|
|
@@ -1458,8 +1463,8 @@ var xe = ["data-minimap"], Se = {
|
|
|
1458
1463
|
"stroke-linecap": "round",
|
|
1459
1464
|
"stroke-linejoin": "round",
|
|
1460
1465
|
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1461
|
-
}, null, 8, mt)) :
|
|
1462
|
-
e.isVisible && s.cutNullValues ? (
|
|
1466
|
+
}, null, 8, mt)) : d("", !0),
|
|
1467
|
+
e.isVisible && s.cutNullValues ? (g(!0), f(l, { key: 1 }, v(e.selectionMarkers, (t) => (g(), f("circle", {
|
|
1463
1468
|
key: `sel-dot-${e.key}-${t.i}`,
|
|
1464
1469
|
cx: t.x,
|
|
1465
1470
|
cy: t.y,
|
|
@@ -1467,8 +1472,8 @@ var xe = ["data-minimap"], Se = {
|
|
|
1467
1472
|
fill: e.color,
|
|
1468
1473
|
stroke: P.value,
|
|
1469
1474
|
"stroke-width": "0.5"
|
|
1470
|
-
}, null, 8, ht))), 128)) :
|
|
1471
|
-
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (
|
|
1475
|
+
}, null, 8, ht))), 128)) : d("", !0),
|
|
1476
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (g(), f("circle", {
|
|
1472
1477
|
key: 2,
|
|
1473
1478
|
cx: e.firstPlot.x,
|
|
1474
1479
|
cy: e.firstPlot.y,
|
|
@@ -1476,15 +1481,15 @@ var xe = ["data-minimap"], Se = {
|
|
|
1476
1481
|
stroke: P.value,
|
|
1477
1482
|
r: "4",
|
|
1478
1483
|
fill: e.color
|
|
1479
|
-
}, null, 8, gt)) :
|
|
1480
|
-
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (
|
|
1484
|
+
}, null, 8, gt)) : d("", !0),
|
|
1485
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (g(), f("circle", {
|
|
1481
1486
|
key: 3,
|
|
1482
1487
|
cx: e.firstPlot.x,
|
|
1483
1488
|
cy: e.firstPlot.y,
|
|
1484
1489
|
r: "2",
|
|
1485
1490
|
fill: P.value
|
|
1486
|
-
}, null, 8, _t)) :
|
|
1487
|
-
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (
|
|
1491
|
+
}, null, 8, _t)) : d("", !0),
|
|
1492
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (g(), f("circle", {
|
|
1488
1493
|
key: 4,
|
|
1489
1494
|
cx: e.lastPlot.x,
|
|
1490
1495
|
cy: e.lastPlot.y,
|
|
@@ -1492,15 +1497,15 @@ var xe = ["data-minimap"], Se = {
|
|
|
1492
1497
|
stroke: P.value,
|
|
1493
1498
|
r: "4",
|
|
1494
1499
|
fill: e.color
|
|
1495
|
-
}, null, 8, vt)) :
|
|
1496
|
-
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (
|
|
1500
|
+
}, null, 8, vt)) : d("", !0),
|
|
1501
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (g(), f("circle", {
|
|
1497
1502
|
key: 5,
|
|
1498
1503
|
cx: e.lastPlot.x,
|
|
1499
1504
|
cy: e.lastPlot.y,
|
|
1500
1505
|
r: "2",
|
|
1501
1506
|
fill: P.value
|
|
1502
|
-
}, null, 8, yt)) :
|
|
1503
|
-
]))), 128)), (
|
|
1507
|
+
}, null, 8, yt)) : d("", !0)
|
|
1508
|
+
]))), 128)), (g(!0), f(l, null, v(U.value.filter((e) => e.type === "plot"), (e) => (g(), f("g", { key: String(e.key) }, [(g(!0), f(l, null, v(e.points, (t) => (g(), f("g", null, [e.isVisible && s.cutNullValues && t.value !== null ? (g(), f("circle", {
|
|
1504
1509
|
key: `sel-plot-${e.key}-${t.i}`,
|
|
1505
1510
|
cx: t.x,
|
|
1506
1511
|
cy: t.y,
|
|
@@ -1508,176 +1513,176 @@ var xe = ["data-minimap"], Se = {
|
|
|
1508
1513
|
fill: e.color,
|
|
1509
1514
|
stroke: P.value,
|
|
1510
1515
|
"stroke-width": "0.5"
|
|
1511
|
-
}, null, 8, bt)) :
|
|
1512
|
-
], 8,
|
|
1513
|
-
|
|
1516
|
+
}, null, 8, bt)) : d("", !0)]))), 256))]))), 128))]))], 64))
|
|
1517
|
+
], 8, De))])) : d("", !0),
|
|
1518
|
+
p("div", {
|
|
1514
1519
|
class: "slider-track",
|
|
1515
|
-
style:
|
|
1520
|
+
style: h({ visibility: w.value && s.minimapCompact ? "hidden" : "visible" })
|
|
1516
1521
|
}, null, 4),
|
|
1517
|
-
|
|
1518
|
-
class:
|
|
1522
|
+
p("div", {
|
|
1523
|
+
class: m({
|
|
1519
1524
|
"range-highlight": !0,
|
|
1520
1525
|
move: s.enableSelectionDrag
|
|
1521
1526
|
}),
|
|
1522
1527
|
onMousedown: t[2] ||= (e) => X.value = !0,
|
|
1523
1528
|
onMouseup: t[3] ||= (e) => X.value = !1,
|
|
1524
|
-
style:
|
|
1529
|
+
style: h({
|
|
1525
1530
|
...N.value,
|
|
1526
1531
|
cursor: X.value ? "grabbing" : "grab",
|
|
1527
|
-
visibility:
|
|
1532
|
+
visibility: w.value && s.minimapCompact ? "hidden" : "visible"
|
|
1528
1533
|
})
|
|
1529
1534
|
}, null, 38),
|
|
1530
|
-
s.enableRangeHandles ?
|
|
1535
|
+
s.enableRangeHandles ? be((g(), f("input", {
|
|
1531
1536
|
key: 1,
|
|
1532
1537
|
"aria-label": "range-handle-left",
|
|
1533
1538
|
ref_key: "rangeStart",
|
|
1534
|
-
ref:
|
|
1539
|
+
ref: zn,
|
|
1535
1540
|
type: "range",
|
|
1536
1541
|
step: s.precision > 0 ? 1 / 10 ** s.precision : 1,
|
|
1537
|
-
class:
|
|
1542
|
+
class: m({
|
|
1538
1543
|
"range-left": !0,
|
|
1539
1544
|
"range-handle": !0,
|
|
1540
|
-
"range-minimap":
|
|
1541
|
-
"range-invisible":
|
|
1545
|
+
"range-minimap": w.value && s.verticalHandles,
|
|
1546
|
+
"range-invisible": w.value && s.minimapCompact
|
|
1542
1547
|
}),
|
|
1543
1548
|
min: s.min,
|
|
1544
|
-
max: s.minimapCompact &&
|
|
1545
|
-
tabindex:
|
|
1546
|
-
"onUpdate:modelValue": t[4] ||= (e) =>
|
|
1547
|
-
onFocus: t[5] ||= (e) =>
|
|
1548
|
-
onInput: t[6] ||= (e) =>
|
|
1549
|
+
max: s.minimapCompact && w.value && !s.useValueRange ? Math.max(0, R.value - 1) : s.max,
|
|
1550
|
+
tabindex: w.value ? -1 : 0,
|
|
1551
|
+
"onUpdate:modelValue": t[4] ||= (e) => An.value = e,
|
|
1552
|
+
onFocus: t[5] ||= (e) => w.value && e.target.blur(),
|
|
1553
|
+
onInput: t[6] ||= (e) => An.value = e.target.valueAsNumber,
|
|
1549
1554
|
onChange: j,
|
|
1550
|
-
onKeyup:
|
|
1555
|
+
onKeyup: xe(j, ["enter"]),
|
|
1551
1556
|
onBlur: j,
|
|
1552
|
-
onMouseenter: t[7] ||= (e) =>
|
|
1557
|
+
onMouseenter: t[7] ||= (e) => br("start"),
|
|
1553
1558
|
onPointerup: j
|
|
1554
1559
|
}, null, 42, xt)), [[
|
|
1555
|
-
|
|
1556
|
-
|
|
1560
|
+
ye,
|
|
1561
|
+
An.value,
|
|
1557
1562
|
void 0,
|
|
1558
1563
|
{ number: !0 }
|
|
1559
|
-
]]) :
|
|
1560
|
-
s.enableRangeHandles ?
|
|
1564
|
+
]]) : d("", !0),
|
|
1565
|
+
s.enableRangeHandles ? be((g(), f("input", {
|
|
1561
1566
|
key: 2,
|
|
1562
1567
|
"aria-label": "range-handle-right",
|
|
1563
1568
|
ref_key: "rangeEnd",
|
|
1564
|
-
ref:
|
|
1569
|
+
ref: Bn,
|
|
1565
1570
|
type: "range",
|
|
1566
1571
|
step: s.precision > 0 ? 1 / 10 ** s.precision : 1,
|
|
1567
|
-
class:
|
|
1572
|
+
class: m({
|
|
1568
1573
|
"range-right": !0,
|
|
1569
1574
|
"range-handle": !0,
|
|
1570
|
-
"range-minimap":
|
|
1571
|
-
"range-invisible":
|
|
1575
|
+
"range-minimap": w.value && s.verticalHandles,
|
|
1576
|
+
"range-invisible": w.value && s.minimapCompact
|
|
1572
1577
|
}),
|
|
1573
1578
|
min: s.min,
|
|
1574
|
-
max: s.minimapCompact &&
|
|
1575
|
-
tabindex:
|
|
1576
|
-
onFocus: t[8] ||= (e) =>
|
|
1577
|
-
"onUpdate:modelValue": t[9] ||= (e) =>
|
|
1578
|
-
onInput: t[10] ||= (e) =>
|
|
1579
|
+
max: s.minimapCompact && w.value && !s.useValueRange ? Math.max(0, R.value - 1) : s.max,
|
|
1580
|
+
tabindex: w.value ? -1 : 0,
|
|
1581
|
+
onFocus: t[8] ||= (e) => w.value && e.target.blur(),
|
|
1582
|
+
"onUpdate:modelValue": t[9] ||= (e) => jn.value = e,
|
|
1583
|
+
onInput: t[10] ||= (e) => jn.value = e.target.valueAsNumber,
|
|
1579
1584
|
onChange: j,
|
|
1580
|
-
onKeyup:
|
|
1585
|
+
onKeyup: xe(j, ["enter"]),
|
|
1581
1586
|
onBlur: j,
|
|
1582
|
-
onMouseenter: t[11] ||= (e) =>
|
|
1587
|
+
onMouseenter: t[11] ||= (e) => br("end"),
|
|
1583
1588
|
onPointerup: j
|
|
1584
1589
|
}, null, 42, St)), [[
|
|
1585
|
-
|
|
1586
|
-
|
|
1590
|
+
ye,
|
|
1591
|
+
jn.value,
|
|
1587
1592
|
void 0,
|
|
1588
1593
|
{ number: !0 }
|
|
1589
|
-
]]) :
|
|
1590
|
-
|
|
1591
|
-
xmlns:
|
|
1594
|
+
]]) : d("", !0),
|
|
1595
|
+
w.value && s.minimapCompact ? (g(), f("div", Ct, [(g(), f("svg", {
|
|
1596
|
+
xmlns: _e(ee),
|
|
1592
1597
|
viewBox: `0 0 ${Math.max(0, I.value.width)} ${Math.max(0, I.value.height + 1)}`
|
|
1593
|
-
}, [
|
|
1598
|
+
}, [p("rect", le({
|
|
1594
1599
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1595
|
-
x:
|
|
1600
|
+
x: Kr.value,
|
|
1596
1601
|
y: 0,
|
|
1597
1602
|
width: $.value,
|
|
1598
1603
|
height: I.value.height,
|
|
1599
1604
|
fill: "transparent",
|
|
1600
1605
|
stroke: "none"
|
|
1601
|
-
},
|
|
1602
|
-
onKeydown: t[12] ||= (e) =>
|
|
1603
|
-
onMousedown: t[13] ||=
|
|
1604
|
-
onClick: t[14] ||=
|
|
1605
|
-
}), null, 16, Tt),
|
|
1606
|
+
}, Ir.value, {
|
|
1607
|
+
onKeydown: t[12] ||= (e) => Fr("start", e),
|
|
1608
|
+
onMousedown: t[13] ||= Se((e) => Ur("start", e), ["stop", "prevent"]),
|
|
1609
|
+
onClick: t[14] ||= Se(() => {}, ["stop", "prevent"])
|
|
1610
|
+
}), null, 16, Tt), p("rect", le({
|
|
1606
1611
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1607
|
-
x:
|
|
1612
|
+
x: qr.value,
|
|
1608
1613
|
y: 0,
|
|
1609
1614
|
width: $.value,
|
|
1610
1615
|
height: I.value.height,
|
|
1611
1616
|
fill: "transparent",
|
|
1612
1617
|
stroke: "none",
|
|
1613
1618
|
rx: 3
|
|
1614
|
-
},
|
|
1615
|
-
onKeydown: t[15] ||= (e) =>
|
|
1616
|
-
onMousedown: t[16] ||=
|
|
1617
|
-
onClick: t[17] ||=
|
|
1618
|
-
}), null, 16, Et)], 8, wt))])) :
|
|
1619
|
-
Q.value.left ? (
|
|
1619
|
+
}, Lr.value, {
|
|
1620
|
+
onKeydown: t[15] ||= (e) => Fr("end", e),
|
|
1621
|
+
onMousedown: t[16] ||= Se((e) => Ur("end", e), ["stop", "prevent"]),
|
|
1622
|
+
onClick: t[17] ||= Se(() => {}, ["stop", "prevent"])
|
|
1623
|
+
}), null, 16, Et)], 8, wt))])) : d("", !0),
|
|
1624
|
+
Q.value.left ? (g(), f("div", {
|
|
1620
1625
|
key: 4,
|
|
1621
1626
|
ref_key: "tooltipLeft",
|
|
1622
|
-
ref:
|
|
1623
|
-
class:
|
|
1627
|
+
ref: pr,
|
|
1628
|
+
class: m({
|
|
1624
1629
|
"range-tooltip": !0,
|
|
1625
1630
|
"range-tooltip-visible": Z.value,
|
|
1626
1631
|
"range-tooltip-arrow": N.value.arrowLeft && !s.verticalHandles,
|
|
1627
1632
|
"range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles
|
|
1628
1633
|
}),
|
|
1629
|
-
style:
|
|
1634
|
+
style: h({
|
|
1630
1635
|
left: N.value.tooltipLeft,
|
|
1631
|
-
color:
|
|
1636
|
+
color: _e(o)(s.selectColor),
|
|
1632
1637
|
backgroundColor: s.selectColor,
|
|
1633
1638
|
border: `1px solid ${P.value}`,
|
|
1634
|
-
zIndex: `${
|
|
1635
|
-
visibility:
|
|
1636
|
-
top:
|
|
1639
|
+
zIndex: `${yr.value + 4}`,
|
|
1640
|
+
visibility: xr.value || Q.value.left === Q.value.right ? "hidden" : "visible",
|
|
1641
|
+
top: w.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1637
1642
|
})
|
|
1638
|
-
},
|
|
1639
|
-
(
|
|
1643
|
+
}, ge(Q.value.left), 7)) : d("", !0),
|
|
1644
|
+
(xr.value || Q.value.left === Q.value.right) && (Q.value.left || Q.value.right) ? (g(), f("div", {
|
|
1640
1645
|
key: 5,
|
|
1641
1646
|
ref: "tooltipMerge",
|
|
1642
|
-
class:
|
|
1647
|
+
class: m({
|
|
1643
1648
|
"range-tooltip": !0,
|
|
1644
1649
|
"range-tooltip-visible": Z.value,
|
|
1645
1650
|
"range-tooltip-arrow": !0,
|
|
1646
1651
|
"range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles,
|
|
1647
1652
|
"range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
|
|
1648
1653
|
}),
|
|
1649
|
-
style:
|
|
1654
|
+
style: h({
|
|
1650
1655
|
left: N.value.tooltipCenter,
|
|
1651
|
-
width:
|
|
1652
|
-
color:
|
|
1656
|
+
width: Sr.value.width + "px",
|
|
1657
|
+
color: _e(o)(s.selectColor),
|
|
1653
1658
|
backgroundColor: s.selectColor,
|
|
1654
1659
|
border: `1px solid ${P.value}`,
|
|
1655
1660
|
zIndex: "4",
|
|
1656
|
-
top:
|
|
1661
|
+
top: w.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1657
1662
|
})
|
|
1658
|
-
},
|
|
1659
|
-
Q.value.right ? (
|
|
1663
|
+
}, ge(Q.value.left === Q.value.right ? Q.value.left : `${Q.value.left} - ${Q.value.right}`), 7)) : d("", !0),
|
|
1664
|
+
Q.value.right ? (g(), f("div", {
|
|
1660
1665
|
key: 6,
|
|
1661
1666
|
ref_key: "tooltipRight",
|
|
1662
|
-
ref:
|
|
1663
|
-
class:
|
|
1667
|
+
ref: mr,
|
|
1668
|
+
class: m({
|
|
1664
1669
|
"range-tooltip": !0,
|
|
1665
1670
|
"range-tooltip-visible": Z.value,
|
|
1666
1671
|
"range-tooltip-arrow": N.value.arrowRight && !s.verticalHandles,
|
|
1667
1672
|
"range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
|
|
1668
1673
|
}),
|
|
1669
|
-
style:
|
|
1674
|
+
style: h({
|
|
1670
1675
|
left: N.value.tooltipRight,
|
|
1671
|
-
color:
|
|
1676
|
+
color: _e(o)(s.selectColor),
|
|
1672
1677
|
backgroundColor: s.selectColor,
|
|
1673
1678
|
border: `1px solid ${P.value}`,
|
|
1674
1679
|
zIndex: "4",
|
|
1675
|
-
visibility:
|
|
1676
|
-
top:
|
|
1680
|
+
visibility: xr.value || Q.value.left === Q.value.right ? "hidden" : "visible",
|
|
1681
|
+
top: w.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1677
1682
|
})
|
|
1678
|
-
},
|
|
1679
|
-
], 36)], 44,
|
|
1683
|
+
}, ge(Q.value.right), 7)) : d("", !0)
|
|
1684
|
+
], 36)], 44, Ce));
|
|
1680
1685
|
}
|
|
1681
|
-
}, [["__scopeId", "data-v-
|
|
1686
|
+
}, [["__scopeId", "data-v-86199147"]]);
|
|
1682
1687
|
//#endregion
|
|
1683
1688
|
export { Ot as t };
|