vue-data-ui 3.22.10 → 3.22.12
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-Ku6rQ87g.js → Arrow-DKx74WtM.js} +1 -1
- package/dist/{BaseDraggableDialog-CdkCqtag.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
- package/dist/{BaseIcon-CDTIUIKV.js → BaseIcon-CP5RWnqt.js} +1 -1
- package/dist/{BaseLegendToggle-BrQ2OlzI.js → BaseLegendToggle-DsWphmIb.js} +1 -1
- package/dist/{BaseZoomControls-CkEX0292.js → BaseZoomControls-C9_ygNN4.js} +2 -2
- package/dist/{ColorPicker-C959ZIW9.js → ColorPicker-3N_HVgXs.js} +2 -2
- package/dist/{DataTable-ByZy5gt1.js → DataTable-DzPEVvSo.js} +2 -2
- package/dist/{Legend-5VQGLnmx.js → Legend-C0xAnJdO.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Bd8OzTqw.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
- package/dist/{PackageVersion-BoTvk0i5.js → PackageVersion-Di3tpYst.js} +1 -1
- package/dist/{PenAndPaper-CLaZJl6K.js → PenAndPaper-CSMVXpg2.js} +3 -3
- package/dist/{Shape-B5ksaGa1.js → Shape-BfnXr1nJ.js} +1 -1
- package/dist/Slicer-C6qNUmZ4.js +1149 -0
- package/dist/SlicerPreview-Cw6WMVhG.js +1689 -0
- package/dist/{SparkTooltip-CbYYc-xb.js → SparkTooltip-uoUiL_P8.js} +1 -1
- package/dist/{Title-Cr3jP7Qd.js → Title-BuPs74IB.js} +1 -1
- package/dist/{Tooltip-CDbLl3TD.js → Tooltip-CA1rtSyl.js} +1 -1
- package/dist/{UserOptions-BUQOnoPR.js → UserOptions-DzAFK9cY.js} +442 -441
- 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-COPbGrdd.js → dom-to-png-BdAFKZQg.js} +1 -1
- package/dist/{exposedLib-CZbtc2a6.js → exposedLib-Ciw6TGtP.js} +1 -1
- package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
- package/dist/{img-CNdXiUfZ.js → img-Bikk1dGb.js} +1 -1
- package/dist/{labelUtils-JaoYKi2N.js → labelUtils-BUhssos9.js} +1 -1
- package/dist/{lib-CnHx5WfV.js → lib-CFm_J26b.js} +3 -3
- package/dist/{package-BRBLwZUc.js → package-Bmet7oRZ.js} +1 -1
- package/dist/{pdf-CEMzBeuV.js → pdf-zmz3l2uy.js} +1 -1
- package/dist/{render-common-DJXFRGhU.js → render-common-Bdolvm-Q.js} +2 -2
- 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/composables.d.ts +28 -11
- package/dist/types/vue-data-ui.d.ts +27 -9
- package/dist/{useAutoSizeLabelsInsideViewbox-BUPt2iaP.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
- package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
- package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
- package/dist/useMountedDelay-BAjrhRJb.js +14 -0
- package/dist/{useNestedProp-D8NuRneO.js → useNestedProp-BY6DNN3i.js} +1 -1
- package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
- package/dist/{usePrinter-B-X_Pub0.js → usePrinter-BH-xle1O.js} +2 -2
- package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
- package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
- package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
- package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-Bx_8d3b_.js → vue-data-ui-DfU5hAaT.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/{vue-ui-3d-bar-CfUfbpSE.js → vue-ui-3d-bar--HLw40qY.js} +9 -10
- package/dist/vue-ui-accordion-UA88lv4d.js +81 -0
- package/dist/{vue-ui-age-pyramid-DD-4y5Jd.js → vue-ui-age-pyramid-Bd_ubvoh.js} +9 -10
- package/dist/{vue-ui-annotator-BvGE3lzE.js → vue-ui-annotator-q3ZKx6ua.js} +15 -9
- package/dist/{vue-ui-bullet-DYOdbaO2.js → vue-ui-bullet-CM2jgN74.js} +10 -11
- package/dist/{vue-ui-bump-B8fJoxHF.js → vue-ui-bump-DvShTelE.js} +10 -11
- package/dist/{vue-ui-candlestick-BUP1JoNs.js → vue-ui-candlestick-CK9Na9KB.js} +474 -474
- package/dist/{vue-ui-carousel-table-D-Bwhydt.js → vue-ui-carousel-table-BxORSyv1.js} +5 -5
- package/dist/{vue-ui-chestnut-C2VK2NEx.js → vue-ui-chestnut-tW2ZnqwW.js} +11 -11
- package/dist/{vue-ui-chord-AA-QjUQI.js → vue-ui-chord-DqKCW4Pl.js} +11 -12
- package/dist/{vue-ui-circle-pack-CdBFGYOK.js → vue-ui-circle-pack-kmzEbu7G.js} +21 -25
- package/dist/{vue-ui-cursor-Cm_J_5Gk.js → vue-ui-cursor-SvEAxNKD.js} +4 -4
- package/dist/{vue-ui-dag-CgRph4-n.js → vue-ui-dag-DZGUw98x.js} +16 -14
- package/dist/{vue-ui-dashboard-BuPw5QjB.js → vue-ui-dashboard-BzzECKaL.js} +71 -72
- package/dist/{vue-ui-digits-ClrukmcB.js → vue-ui-digits-CKWMJqU_.js} +4 -4
- package/dist/{vue-ui-donut-Bc-EPZvu.js → vue-ui-donut-BWbuCT47.js} +17 -18
- package/dist/{vue-ui-donut-DtQCrMKL.js → vue-ui-donut-DjdH53Zj.js} +3 -3
- package/dist/{vue-ui-donut-evolution-DHkiY-BD.js → vue-ui-donut-evolution-CJNnXg31.js} +357 -362
- package/dist/{vue-ui-dumbbell-BlHEH4Mw.js → vue-ui-dumbbell-BUyfJOxH.js} +13 -13
- package/dist/{vue-ui-flow-PjwAW2tY.js → vue-ui-flow-C39C5dvl.js} +10 -11
- package/dist/{vue-ui-funnel-DojI09FV.js → vue-ui-funnel-_aMNVUkP.js} +9 -10
- package/dist/{vue-ui-galaxy-txYIK_LG.js → vue-ui-galaxy-Dng0GSjQ.js} +12 -13
- package/dist/{vue-ui-gauge-CoL0OzSd.js → vue-ui-gauge-BmZPLW3e.js} +10 -11
- package/dist/{vue-ui-geo-yuL-_sqF.js → vue-ui-geo-BOx-pK_5.js} +15 -14
- package/dist/{vue-ui-gizmo-CbC5zV3K.js → vue-ui-gizmo-BCGwhNna.js} +4 -4
- package/dist/{vue-ui-heatmap-CwqsZIsR.js → vue-ui-heatmap-BORjgllw.js} +12 -13
- package/dist/{vue-ui-history-plot-CuWssH-D.js → vue-ui-history-plot-DY3fqgIY.js} +11 -12
- package/dist/{vue-ui-horizontal-bar-Dyje3GND.js → vue-ui-horizontal-bar-C8f4PisL.js} +17 -17
- package/dist/{vue-ui-kpi-BdYenScF.js → vue-ui-kpi-BdhXSBIJ.js} +4 -4
- package/dist/{vue-ui-mini-loader-BbwE3vBT.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
- package/dist/{vue-ui-molecule-BBh31vmd.js → vue-ui-molecule-PlmDykKX.js} +9 -8
- package/dist/{vue-ui-mood-radar-B_6GFlaR.js → vue-ui-mood-radar-C9LTAt_c.js} +10 -11
- package/dist/{vue-ui-nested-donuts-BWq-At5Y.js → vue-ui-nested-donuts-F5OXPxvU.js} +12 -13
- package/dist/{vue-ui-onion-BwGbSE-6.js → vue-ui-onion-D1-j-pvW.js} +13 -14
- package/dist/{vue-ui-parallel-coordinate-plot-Bh9hNoqf.js → vue-ui-parallel-coordinate-plot-Vb_QjRp5.js} +303 -307
- package/dist/{vue-ui-quadrant-B72Y4Zuw.js → vue-ui-quadrant-DMFawnHm.js} +19 -18
- package/dist/{vue-ui-quick-chart-B3LF2ViM.js → vue-ui-quick-chart-BF5fKxY2.js} +606 -632
- package/dist/{vue-ui-radar-4v_E8oGX.js → vue-ui-radar-D91pCqhn.js} +12 -13
- package/dist/{vue-ui-rating-CzLGCFWK.js → vue-ui-rating-DbxK-ftN.js} +3 -3
- package/dist/{vue-ui-relation-circle-B_8dyIv2.js → vue-ui-relation-circle-DfxvnOs6.js} +14 -21
- package/dist/{vue-ui-ridgeline-BArLhskj.js → vue-ui-ridgeline-BOL0m1mR.js} +13 -14
- package/dist/{vue-ui-rings-Csn5BgLk.js → vue-ui-rings-4RxAaMo4.js} +13 -14
- package/dist/vue-ui-scatter-Bs1wek00.js +2409 -0
- package/dist/{vue-ui-skeleton-KeIPGp9U.js → vue-ui-skeleton-B84nELF_.js} +4 -4
- package/dist/{vue-ui-smiley-C1mYDh4R.js → vue-ui-smiley-Da2jgkb7.js} +3 -3
- package/dist/{vue-ui-spark-trend-EqCqmHmU.js → vue-ui-spark-trend-BR-qkwJ6.js} +6 -7
- package/dist/{vue-ui-sparkbar-BPh45vBP.js → vue-ui-sparkbar-DghCbhj2.js} +51 -54
- package/dist/{vue-ui-sparkgauge-CtouPcyW.js → vue-ui-sparkgauge-DbeTbrxx.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-D4sI0DHN.js → vue-ui-sparkhistogram-B2xSQyOp.js} +7 -8
- package/dist/{vue-ui-sparkline-BDFZ78Fz.js → vue-ui-sparkline-D3xRMcy9.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CbTXIfxm.js → vue-ui-sparkstackbar-D8z8fVFZ.js} +5 -5
- package/dist/vue-ui-stackbar-B63-UgSr.js +2322 -0
- package/dist/{vue-ui-stackline-CzfXl5ah.js → vue-ui-stackline-Dukmj3yT.js} +588 -586
- package/dist/vue-ui-strip-plot-Bws0p7tP.js +1736 -0
- package/dist/{vue-ui-table-BAKkFXki.js → vue-ui-table-dxCS6ztG.js} +12 -11
- package/dist/{vue-ui-table-heatmap-CUMxqHKK.js → vue-ui-table-heatmap-CSI482KG.js} +9 -15
- package/dist/{vue-ui-table-sparkline-BVTm16fd.js → vue-ui-table-sparkline-C-XgNV1l.js} +10 -8
- package/dist/{vue-ui-thermometer-CGeEW1KV.js → vue-ui-thermometer-BUKge0w8.js} +10 -11
- package/dist/{vue-ui-timer-Bz7EnsM1.js → vue-ui-timer-CCd3pznw.js} +7 -8
- package/dist/{vue-ui-tiremarks-IOqtk_Rr.js → vue-ui-tiremarks-CG5X5rgi.js} +9 -10
- package/dist/{vue-ui-treemap-JxNNtb7v.js → vue-ui-treemap-CNVB8Ng6.js} +501 -492
- package/dist/{vue-ui-waffle-D34mcJWi.js → vue-ui-waffle-DH5Rf1WM.js} +13 -14
- package/dist/{vue-ui-wheel-B_qEhyvk.js → vue-ui-wheel-BzEkxqDz.js} +10 -11
- package/dist/{vue-ui-word-cloud-TtObhd91.js → vue-ui-word-cloud-DbfGZ-hb.js} +15 -12
- package/dist/{vue-ui-world-R9o00A6c.js → vue-ui-world-CL6KcPcv.js} +10 -10
- package/dist/{vue-ui-xy-Do34-UbE.js → vue-ui-xy-4Xp7UoLs.js} +9 -9
- package/dist/{vue-ui-xy-CUt6sU1s.js → vue-ui-xy-BAmxfSSw.js} +1269 -1266
- package/dist/{vue-ui-xy-canvas-C6eRRH--.js → vue-ui-xy-canvas-7YSYRdwr.js} +27 -27
- package/package.json +3 -3
- package/dist/Slicer-WsWTQPKt.js +0 -1150
- package/dist/SlicerPreview-3n516NyE.js +0 -1688
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/vue-ui-accordion-Oo3IsX3-.js +0 -81
- package/dist/vue-ui-scatter-BBaOx94M.js +0 -2422
- package/dist/vue-ui-stackbar-nMXIY9x8.js +0 -2339
- package/dist/vue-ui-strip-plot-BCf5nthl.js +0 -1736
|
@@ -0,0 +1,1689 @@
|
|
|
1
|
+
import { B as e, F as t, Jt as n, K as r, N as i, St as a, V as o, bt as ee, r as te, t as ne, z as re } from "./lib-CFm_J26b.js";
|
|
2
|
+
import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { i as ie, l as c, t as ae } from "./useResponsive-ZtArZtUf.js";
|
|
4
|
+
import { t as oe } from "./BaseIcon-CP5RWnqt.js";
|
|
5
|
+
import { t as se } from "./DefGrad-DVBqDjhO.js";
|
|
6
|
+
import { Fragment as l, computed as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as ce, guardReactiveProps as le, mergeProps as ue, nextTick as de, normalizeClass as fe, normalizeProps as pe, normalizeStyle as m, onBeforeUnmount as me, onMounted as he, onUpdated as ge, openBlock as h, ref as g, renderList as _, renderSlot as _e, toDisplayString as ve, unref as ye, useCssVars as be, vModelText as xe, watch as v, withDirectives as Se, withKeys as Ce, withModifiers as we } from "vue";
|
|
7
|
+
//#region src/atoms/SlicerPreview.vue
|
|
8
|
+
var Te = ["data-minimap"], Ee = {
|
|
9
|
+
class: "vue-data-ui-slicer-labels",
|
|
10
|
+
style: {
|
|
11
|
+
position: "relative",
|
|
12
|
+
"z-index": "1",
|
|
13
|
+
"pointer-events": "none"
|
|
14
|
+
}
|
|
15
|
+
}, De = {
|
|
16
|
+
key: 0,
|
|
17
|
+
style: {
|
|
18
|
+
width: "100%",
|
|
19
|
+
position: "relative",
|
|
20
|
+
"pointer-events": "all"
|
|
21
|
+
}
|
|
22
|
+
}, Oe = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "minimap",
|
|
25
|
+
style: { width: "100%" }
|
|
26
|
+
}, ke = ["xmlns", "viewBox"], Ae = ["id"], je = [
|
|
27
|
+
"x",
|
|
28
|
+
"width",
|
|
29
|
+
"height"
|
|
30
|
+
], Me = [
|
|
31
|
+
"width",
|
|
32
|
+
"height",
|
|
33
|
+
"stroke"
|
|
34
|
+
], Ne = ["d", "stroke"], Pe = ["d", "fill"], Fe = [
|
|
35
|
+
"x",
|
|
36
|
+
"y",
|
|
37
|
+
"width",
|
|
38
|
+
"height",
|
|
39
|
+
"fill"
|
|
40
|
+
], Ie = [
|
|
41
|
+
"d",
|
|
42
|
+
"stroke",
|
|
43
|
+
"stroke-dasharray"
|
|
44
|
+
], Le = [
|
|
45
|
+
"cx",
|
|
46
|
+
"cy",
|
|
47
|
+
"fill",
|
|
48
|
+
"stroke"
|
|
49
|
+
], Re = [
|
|
50
|
+
"cx",
|
|
51
|
+
"cy",
|
|
52
|
+
"fill",
|
|
53
|
+
"stroke"
|
|
54
|
+
], ze = [
|
|
55
|
+
"x",
|
|
56
|
+
"width",
|
|
57
|
+
"height",
|
|
58
|
+
"fill",
|
|
59
|
+
"rx"
|
|
60
|
+
], Be = [
|
|
61
|
+
"x",
|
|
62
|
+
"width",
|
|
63
|
+
"height",
|
|
64
|
+
"rx",
|
|
65
|
+
"fill"
|
|
66
|
+
], Ve = [
|
|
67
|
+
"x",
|
|
68
|
+
"width",
|
|
69
|
+
"height",
|
|
70
|
+
"fill",
|
|
71
|
+
"rx",
|
|
72
|
+
"aria-valuemin",
|
|
73
|
+
"aria-valuemax",
|
|
74
|
+
"aria-valuenow",
|
|
75
|
+
"aria-valuetext"
|
|
76
|
+
], He = [
|
|
77
|
+
"x2",
|
|
78
|
+
"y1",
|
|
79
|
+
"y2",
|
|
80
|
+
"stroke"
|
|
81
|
+
], Ue = { key: "merged-tree" }, We = ["d", "stroke"], Ge = [
|
|
82
|
+
"cx",
|
|
83
|
+
"cy",
|
|
84
|
+
"stroke",
|
|
85
|
+
"fill"
|
|
86
|
+
], Ke = [
|
|
87
|
+
"cx",
|
|
88
|
+
"cy",
|
|
89
|
+
"stroke",
|
|
90
|
+
"fill"
|
|
91
|
+
], qe = { key: "split-tree" }, Je = [
|
|
92
|
+
"x",
|
|
93
|
+
"y",
|
|
94
|
+
"width",
|
|
95
|
+
"height",
|
|
96
|
+
"fill"
|
|
97
|
+
], Ye = [
|
|
98
|
+
"d",
|
|
99
|
+
"stroke",
|
|
100
|
+
"stroke-dasharray"
|
|
101
|
+
], Xe = [
|
|
102
|
+
"cx",
|
|
103
|
+
"cy",
|
|
104
|
+
"fill",
|
|
105
|
+
"stroke"
|
|
106
|
+
], Ze = ["width", "height"], Qe = [
|
|
107
|
+
"x",
|
|
108
|
+
"width",
|
|
109
|
+
"height",
|
|
110
|
+
"fill",
|
|
111
|
+
"stroke",
|
|
112
|
+
"stroke-width"
|
|
113
|
+
], $e = ["transform"], et = ["width", "height"], tt = ["fill", "stroke"], nt = ["stroke"], rt = ["fill"], it = [
|
|
114
|
+
"x",
|
|
115
|
+
"width",
|
|
116
|
+
"height",
|
|
117
|
+
"fill",
|
|
118
|
+
"stroke",
|
|
119
|
+
"stroke-width"
|
|
120
|
+
], at = ["transform"], ot = ["width", "height"], st = ["fill", "stroke"], ct = ["stroke"], lt = ["fill"], ut = {
|
|
121
|
+
key: "merged-tree",
|
|
122
|
+
style: { "pointer-events": "none" }
|
|
123
|
+
}, dt = [
|
|
124
|
+
"cx",
|
|
125
|
+
"cy",
|
|
126
|
+
"stroke",
|
|
127
|
+
"fill"
|
|
128
|
+
], ft = [
|
|
129
|
+
"cx",
|
|
130
|
+
"cy",
|
|
131
|
+
"fill"
|
|
132
|
+
], pt = [
|
|
133
|
+
"cx",
|
|
134
|
+
"cy",
|
|
135
|
+
"stroke",
|
|
136
|
+
"fill"
|
|
137
|
+
], mt = [
|
|
138
|
+
"cx",
|
|
139
|
+
"cy",
|
|
140
|
+
"fill"
|
|
141
|
+
], ht = {
|
|
142
|
+
key: 1,
|
|
143
|
+
style: { "pointer-events": "none" }
|
|
144
|
+
}, gt = [
|
|
145
|
+
"d",
|
|
146
|
+
"stroke",
|
|
147
|
+
"stroke-dasharray"
|
|
148
|
+
], _t = [
|
|
149
|
+
"cx",
|
|
150
|
+
"cy",
|
|
151
|
+
"fill",
|
|
152
|
+
"stroke"
|
|
153
|
+
], vt = [
|
|
154
|
+
"cx",
|
|
155
|
+
"cy",
|
|
156
|
+
"stroke",
|
|
157
|
+
"fill"
|
|
158
|
+
], yt = [
|
|
159
|
+
"cx",
|
|
160
|
+
"cy",
|
|
161
|
+
"fill"
|
|
162
|
+
], bt = [
|
|
163
|
+
"cx",
|
|
164
|
+
"cy",
|
|
165
|
+
"stroke",
|
|
166
|
+
"fill"
|
|
167
|
+
], xt = [
|
|
168
|
+
"cx",
|
|
169
|
+
"cy",
|
|
170
|
+
"fill"
|
|
171
|
+
], St = [
|
|
172
|
+
"cx",
|
|
173
|
+
"cy",
|
|
174
|
+
"fill",
|
|
175
|
+
"stroke"
|
|
176
|
+
], Ct = [
|
|
177
|
+
"step",
|
|
178
|
+
"min",
|
|
179
|
+
"max",
|
|
180
|
+
"tabindex"
|
|
181
|
+
], wt = [
|
|
182
|
+
"step",
|
|
183
|
+
"min",
|
|
184
|
+
"max",
|
|
185
|
+
"tabindex"
|
|
186
|
+
], Tt = {
|
|
187
|
+
key: 3,
|
|
188
|
+
class: "minimap-handle-overlay"
|
|
189
|
+
}, Et = ["xmlns", "viewBox"], Dt = [
|
|
190
|
+
"x",
|
|
191
|
+
"width",
|
|
192
|
+
"height"
|
|
193
|
+
], Ot = [
|
|
194
|
+
"x",
|
|
195
|
+
"width",
|
|
196
|
+
"height"
|
|
197
|
+
], kt = 48, At = /*#__PURE__*/ s({
|
|
198
|
+
__name: "SlicerPreview",
|
|
199
|
+
props: {
|
|
200
|
+
uuid: {
|
|
201
|
+
type: String,
|
|
202
|
+
default: ""
|
|
203
|
+
},
|
|
204
|
+
immediate: {
|
|
205
|
+
type: Boolean,
|
|
206
|
+
default: !0
|
|
207
|
+
},
|
|
208
|
+
background: {
|
|
209
|
+
type: String,
|
|
210
|
+
default: "#FFFFFF"
|
|
211
|
+
},
|
|
212
|
+
borderColor: {
|
|
213
|
+
type: String,
|
|
214
|
+
default: "#FFFFFF"
|
|
215
|
+
},
|
|
216
|
+
fontSize: {
|
|
217
|
+
type: Number,
|
|
218
|
+
default: 14
|
|
219
|
+
},
|
|
220
|
+
labelLeft: {
|
|
221
|
+
type: [String, Number],
|
|
222
|
+
default: ""
|
|
223
|
+
},
|
|
224
|
+
labelRight: {
|
|
225
|
+
type: [String, Number],
|
|
226
|
+
default: ""
|
|
227
|
+
},
|
|
228
|
+
textColor: {
|
|
229
|
+
type: String,
|
|
230
|
+
default: "#1A1A1A"
|
|
231
|
+
},
|
|
232
|
+
inputColor: {
|
|
233
|
+
type: String,
|
|
234
|
+
default: "#1A1A1A"
|
|
235
|
+
},
|
|
236
|
+
max: {
|
|
237
|
+
type: Number,
|
|
238
|
+
default: 0
|
|
239
|
+
},
|
|
240
|
+
min: {
|
|
241
|
+
type: Number,
|
|
242
|
+
default: 0
|
|
243
|
+
},
|
|
244
|
+
selectColor: {
|
|
245
|
+
type: String,
|
|
246
|
+
default: "#4A4A4A"
|
|
247
|
+
},
|
|
248
|
+
useResetSlot: {
|
|
249
|
+
type: Boolean,
|
|
250
|
+
default: !1
|
|
251
|
+
},
|
|
252
|
+
valueStart: {
|
|
253
|
+
type: [Number, String],
|
|
254
|
+
default: 0
|
|
255
|
+
},
|
|
256
|
+
valueEnd: {
|
|
257
|
+
type: [Number, String],
|
|
258
|
+
default: 0
|
|
259
|
+
},
|
|
260
|
+
minimap: {
|
|
261
|
+
type: Array,
|
|
262
|
+
default: []
|
|
263
|
+
},
|
|
264
|
+
smoothMinimap: {
|
|
265
|
+
type: Boolean,
|
|
266
|
+
default: !1
|
|
267
|
+
},
|
|
268
|
+
minimapSelectedColor: {
|
|
269
|
+
type: String,
|
|
270
|
+
default: "#1f77b4"
|
|
271
|
+
},
|
|
272
|
+
minimapSelectionRadius: {
|
|
273
|
+
type: Number,
|
|
274
|
+
default: 12
|
|
275
|
+
},
|
|
276
|
+
minimapLineColor: {
|
|
277
|
+
type: String,
|
|
278
|
+
default: "#2D353C"
|
|
279
|
+
},
|
|
280
|
+
minimapSelectedColorOpacity: {
|
|
281
|
+
type: Number,
|
|
282
|
+
default: .2
|
|
283
|
+
},
|
|
284
|
+
minimapSelectedIndex: {
|
|
285
|
+
type: Number,
|
|
286
|
+
default: null
|
|
287
|
+
},
|
|
288
|
+
minimapIndicatorColor: {
|
|
289
|
+
type: String,
|
|
290
|
+
default: "#2D353C"
|
|
291
|
+
},
|
|
292
|
+
refreshStartPoint: {
|
|
293
|
+
type: Number,
|
|
294
|
+
default: 0
|
|
295
|
+
},
|
|
296
|
+
refreshEndPoint: {
|
|
297
|
+
type: Number,
|
|
298
|
+
default: null
|
|
299
|
+
},
|
|
300
|
+
enableRangeHandles: {
|
|
301
|
+
type: Boolean,
|
|
302
|
+
default: !1
|
|
303
|
+
},
|
|
304
|
+
enableSelectionDrag: {
|
|
305
|
+
type: Boolean,
|
|
306
|
+
default: !0
|
|
307
|
+
},
|
|
308
|
+
verticalHandles: {
|
|
309
|
+
type: Boolean,
|
|
310
|
+
default: !1
|
|
311
|
+
},
|
|
312
|
+
timeLabels: { type: Array },
|
|
313
|
+
isPreview: {
|
|
314
|
+
type: Boolean,
|
|
315
|
+
default: !1
|
|
316
|
+
},
|
|
317
|
+
preciseLabels: {
|
|
318
|
+
type: Array,
|
|
319
|
+
default() {
|
|
320
|
+
return [];
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
usePreciseLabels: {
|
|
324
|
+
type: Boolean,
|
|
325
|
+
default: !1
|
|
326
|
+
},
|
|
327
|
+
selectedSeries: { type: Object },
|
|
328
|
+
customFormat: { type: [Function, null] },
|
|
329
|
+
minimapCompact: {
|
|
330
|
+
type: Boolean,
|
|
331
|
+
default: !1
|
|
332
|
+
},
|
|
333
|
+
allMinimaps: {
|
|
334
|
+
type: Array,
|
|
335
|
+
default() {
|
|
336
|
+
return [];
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
minimapMerged: {
|
|
340
|
+
type: Boolean,
|
|
341
|
+
default: !1
|
|
342
|
+
},
|
|
343
|
+
minimapFrameColor: {
|
|
344
|
+
type: String,
|
|
345
|
+
default: "#e1e5e8"
|
|
346
|
+
},
|
|
347
|
+
cutNullValues: {
|
|
348
|
+
type: Boolean,
|
|
349
|
+
default: !1
|
|
350
|
+
},
|
|
351
|
+
focusOnDrag: {
|
|
352
|
+
type: Boolean,
|
|
353
|
+
default: !1
|
|
354
|
+
},
|
|
355
|
+
focusRangeRatio: {
|
|
356
|
+
type: Number,
|
|
357
|
+
default: .1
|
|
358
|
+
},
|
|
359
|
+
minScale: {
|
|
360
|
+
type: Number,
|
|
361
|
+
default: null
|
|
362
|
+
},
|
|
363
|
+
maxScale: {
|
|
364
|
+
type: Number,
|
|
365
|
+
default: null
|
|
366
|
+
},
|
|
367
|
+
forceZeroCenter: {
|
|
368
|
+
type: Boolean,
|
|
369
|
+
default: !1
|
|
370
|
+
},
|
|
371
|
+
maxWidth: {
|
|
372
|
+
type: Number,
|
|
373
|
+
default: null
|
|
374
|
+
},
|
|
375
|
+
isCursorPointer: {
|
|
376
|
+
type: Boolean,
|
|
377
|
+
default: !1
|
|
378
|
+
},
|
|
379
|
+
additionalMinimapHeight: {
|
|
380
|
+
type: Number,
|
|
381
|
+
default: 0
|
|
382
|
+
},
|
|
383
|
+
handleType: {
|
|
384
|
+
type: String,
|
|
385
|
+
default: ""
|
|
386
|
+
},
|
|
387
|
+
handleWidth: {
|
|
388
|
+
type: Number,
|
|
389
|
+
default: 20
|
|
390
|
+
},
|
|
391
|
+
handleBorderWidth: {
|
|
392
|
+
type: Number,
|
|
393
|
+
default: 1
|
|
394
|
+
},
|
|
395
|
+
handleIconColor: {
|
|
396
|
+
type: String,
|
|
397
|
+
default: null
|
|
398
|
+
},
|
|
399
|
+
handleBorderColor: {
|
|
400
|
+
type: String,
|
|
401
|
+
default: null
|
|
402
|
+
},
|
|
403
|
+
handleFill: {
|
|
404
|
+
type: String,
|
|
405
|
+
default: null
|
|
406
|
+
},
|
|
407
|
+
precision: {
|
|
408
|
+
type: Number,
|
|
409
|
+
default: 0
|
|
410
|
+
},
|
|
411
|
+
useValueRange: {
|
|
412
|
+
type: Boolean,
|
|
413
|
+
default: !1
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
emits: [
|
|
417
|
+
"futureStart",
|
|
418
|
+
"futureEnd",
|
|
419
|
+
"update:start",
|
|
420
|
+
"update:end",
|
|
421
|
+
"reset",
|
|
422
|
+
"trapMouse",
|
|
423
|
+
"trapMouseValue"
|
|
424
|
+
],
|
|
425
|
+
setup(s, { expose: At, emit: jt }) {
|
|
426
|
+
be((e) => ({
|
|
427
|
+
v387ab4e8: an.value,
|
|
428
|
+
v7bb82e00: N.value,
|
|
429
|
+
v42303b71: sn.value,
|
|
430
|
+
v5bed6f30: s.selectColor,
|
|
431
|
+
v99127c84: on.value,
|
|
432
|
+
v27b98ef0: y.additionalMinimapHeight
|
|
433
|
+
}));
|
|
434
|
+
let y = s;
|
|
435
|
+
function Mt(e) {
|
|
436
|
+
let t = Number(e) || 0;
|
|
437
|
+
return y.precision <= 0 ? Math.round(t) : Number(t.toFixed(y.precision));
|
|
438
|
+
}
|
|
439
|
+
let b = g(null), x = g(y.min), S = g(y.max), C = u(() => !!y.allMinimaps.length), Nt = g(r()), w = g(!1), T = u(() => C.value && y.minimapCompact), E = g(null), Pt = g(!1), Ft = g(0), It = g(0), Lt = g(null), Rt = g(!1), zt = u(() => E.value !== null), Bt = u(() => y.useValueRange ? S.value : S.value - 1), Vt = u(() => Math.max(1, Number(y.max) - Number(y.min)));
|
|
440
|
+
function Ht(e) {
|
|
441
|
+
return (Number(e) - Number(y.min)) / Vt.value * 100;
|
|
442
|
+
}
|
|
443
|
+
function Ut(e) {
|
|
444
|
+
return F.value.width * (Ht(e) / 100);
|
|
445
|
+
}
|
|
446
|
+
function Wt(e) {
|
|
447
|
+
let t = Math.min(1, Math.max(0, e / Math.max(1, F.value.width)));
|
|
448
|
+
return Mt(Number(y.min) + Vt.value * t);
|
|
449
|
+
}
|
|
450
|
+
function Gt(e) {
|
|
451
|
+
let t = y.useValueRange ? e?.y : e;
|
|
452
|
+
return a(t) ? Number(t) : null;
|
|
453
|
+
}
|
|
454
|
+
function Kt(e, t) {
|
|
455
|
+
return y.useValueRange ? Number(e?.x) : t + Number(y.min);
|
|
456
|
+
}
|
|
457
|
+
function qt(e, t) {
|
|
458
|
+
return y.useValueRange ? Ut(Kt(e, t)) : B.value * t + (y.minimapCompact ? 0 : B.value / 2);
|
|
459
|
+
}
|
|
460
|
+
let Jt = u(() => Math.min(40, Math.max(20, y.handleWidth))), Yt = g(0), Xt = c((e) => j("futureStart", e), 0), Zt = c((e) => j("futureEnd", e), 0), D = u(() => y.precision > 0 ? 1 / 10 ** y.precision : 1), O = u({
|
|
461
|
+
get: () => x.value,
|
|
462
|
+
set(e) {
|
|
463
|
+
let t = Math.min(Number(e), Number(S.value) - D.value);
|
|
464
|
+
t !== x.value && (x.value = t, Vn.value && (Vn.value.value = String(t)), y.immediate ? j("update:start", Number(t)) : w.value && Xt(t));
|
|
465
|
+
}
|
|
466
|
+
}), k = u({
|
|
467
|
+
get: () => S.value,
|
|
468
|
+
set(e) {
|
|
469
|
+
let t = Math.max(Number(e), Number(x.value) + D.value);
|
|
470
|
+
t !== S.value && (S.value = t, Hn.value && (Hn.value.value = String(t)), y.immediate ? j("update:end", Number(t)) : w.value && Zt(t));
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
function A() {
|
|
474
|
+
clearTimeout(null), y.immediate || (j("update:start", Number(x.value)), j("update:end", Number(S.value))), w.value = !1;
|
|
475
|
+
}
|
|
476
|
+
let Qt = u(() => y.refreshEndPoint === null ? y.max : y.refreshEndPoint), j = jt, $t = u(() => {
|
|
477
|
+
if (y.useValueRange) return Ht(x.value);
|
|
478
|
+
if (T.value) {
|
|
479
|
+
let e = Math.max(1, L.value - 1);
|
|
480
|
+
return Mn.value / e * 100;
|
|
481
|
+
}
|
|
482
|
+
let e = Math.max(1, y.max - y.min);
|
|
483
|
+
return (x.value - y.min) / e * 100;
|
|
484
|
+
}), en = u(() => {
|
|
485
|
+
if (y.useValueRange) return Ht(S.value);
|
|
486
|
+
if (T.value) {
|
|
487
|
+
let e = Math.max(1, L.value - 1);
|
|
488
|
+
return Nn.value / e * 100;
|
|
489
|
+
}
|
|
490
|
+
let e = Math.max(1, y.max - y.min);
|
|
491
|
+
return (S.value - y.min) / e * 100;
|
|
492
|
+
}), tn = u(() => ($t.value + en.value) / 2), nn = u(() => {
|
|
493
|
+
if (!b.value) return !1;
|
|
494
|
+
let e = Math.max(1, y.max - y.min);
|
|
495
|
+
return b.value.getBoundingClientRect().width * ((x.value - y.min) / e) - gr.value / 2 < 0;
|
|
496
|
+
}), rn = u(() => {
|
|
497
|
+
if (!b.value) return !1;
|
|
498
|
+
let e = Math.max(1, y.max - y.min), t = b.value.getBoundingClientRect().width;
|
|
499
|
+
return t * ((S.value - y.min) / e) + _r.value / 2 > t;
|
|
500
|
+
}), M = u(() => {
|
|
501
|
+
let e = rn.value ? `calc(${tn.value}% - ${Cr.value.width}px)` : nn.value ? `calc(${tn.value}% - 8px)` : `calc(${tn.value}% - ${Cr.value.width / 2}px)`;
|
|
502
|
+
return {
|
|
503
|
+
left: `${$t.value}%`,
|
|
504
|
+
width: `${Math.max(0, en.value - $t.value)}%`,
|
|
505
|
+
background: y.selectColor,
|
|
506
|
+
tooltipLeft: `calc(${$t.value}% - ${nn.value ? 9 : gr.value / 2}px)`,
|
|
507
|
+
tooltipRight: `calc(${en.value}% - ${rn.value ? _r.value - 9 : _r.value / 2}px)`,
|
|
508
|
+
tooltipCenter: e,
|
|
509
|
+
arrowLeft: !nn.value,
|
|
510
|
+
arrowRight: !rn.value
|
|
511
|
+
};
|
|
512
|
+
}), an = u(() => y.inputColor), on = u(() => y.background), sn = u(() => `${y.selectColor}33`), N = u(() => y.borderColor), cn = u(() => Number(y.max) > Number(y.min));
|
|
513
|
+
function ln() {
|
|
514
|
+
j("reset");
|
|
515
|
+
}
|
|
516
|
+
v(() => y.min, (e) => {
|
|
517
|
+
Number(x.value) < Number(e) && (x.value = Number(e)), Number(S.value) < Number(e) && (S.value = Number(e));
|
|
518
|
+
}), v(() => y.max, (e) => {
|
|
519
|
+
Number(x.value) > Number(e) && (x.value = Number(e)), Number(S.value) > Number(e) && (S.value = Number(e));
|
|
520
|
+
});
|
|
521
|
+
let P = g(null), F = g({
|
|
522
|
+
width: 1,
|
|
523
|
+
height: 1
|
|
524
|
+
}), I = g(null);
|
|
525
|
+
he(() => {
|
|
526
|
+
if (C.value) {
|
|
527
|
+
let e = c(() => {
|
|
528
|
+
if (!P.value) return;
|
|
529
|
+
let { width: e, height: t } = ae({ chart: P.value }), n = Math.max(0, Math.round(e)), r = Math.max(0, Math.round(t - 47));
|
|
530
|
+
(n !== F.value.width || r !== F.value.height) && (F.value.width = n, F.value.height = r + y.additionalMinimapHeight);
|
|
531
|
+
}, 0);
|
|
532
|
+
I.value = new ResizeObserver(e), I.value.observe(P.value);
|
|
533
|
+
}
|
|
534
|
+
}), me(() => {
|
|
535
|
+
I.value && I.value.disconnect();
|
|
536
|
+
});
|
|
537
|
+
let L = u(() => Math.max(1, y.max - y.min));
|
|
538
|
+
function un(e) {
|
|
539
|
+
let t = Math.floor(e - y.min);
|
|
540
|
+
return Math.min(Math.max(0, t), L.value);
|
|
541
|
+
}
|
|
542
|
+
function dn(e) {
|
|
543
|
+
let t = Math.ceil(e - y.min);
|
|
544
|
+
return Math.min(Math.max(0, t), L.value);
|
|
545
|
+
}
|
|
546
|
+
let R = u(() => un(x.value)), z = u(() => dn(S.value)), fn = u(() => Math.max(...y.allMinimaps.map((e) => e.series.length))), pn = u(() => C.value && y.minimapCompact ? 40 : 0), mn = u(() => pn.value / 2);
|
|
547
|
+
u(() => Math.max(1, F.value.width - mn.value * 2));
|
|
548
|
+
let B = u(() => {
|
|
549
|
+
if (y.minimapCompact && !y.useValueRange) return F.value.width / Math.max(1, L.value - 1);
|
|
550
|
+
let e = Math.max(1, fn.value - +!!y.minimapCompact);
|
|
551
|
+
return F.value.width / e;
|
|
552
|
+
}), hn = u(() => y.allMinimaps.length ? y.allMinimaps.filter((e) => e.type === "bar" && e.isVisible).length : 0), gn = u(() => B.value / (hn.value || 1) * .8);
|
|
553
|
+
function _n(e, t, n) {
|
|
554
|
+
let r = gn.value, i = Math.max(1, hn.value), a = fn.value - 1;
|
|
555
|
+
return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
|
|
556
|
+
}
|
|
557
|
+
function vn(e, t) {
|
|
558
|
+
return [0, fn.value - 1].includes(t) ? gn.value / 2 : gn.value;
|
|
559
|
+
}
|
|
560
|
+
let yn = u(() => {
|
|
561
|
+
let e = [];
|
|
562
|
+
if (Array.isArray(y.minimap) && y.minimap.length && y.minimapMerged && e.push(...y.minimap.map(Gt).filter(Number.isFinite)), Array.isArray(y.allMinimaps) && y.allMinimaps.length) for (let t of y.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.map(Gt).filter(Number.isFinite));
|
|
563
|
+
return e.length ? {
|
|
564
|
+
min: Math.min(...e),
|
|
565
|
+
max: Math.max(...e)
|
|
566
|
+
} : {
|
|
567
|
+
min: 0,
|
|
568
|
+
max: 1
|
|
569
|
+
};
|
|
570
|
+
}), bn = u(() => {
|
|
571
|
+
if (y.minScale == null && y.forceZeroCenter) return null;
|
|
572
|
+
let e = Number(y.minScale);
|
|
573
|
+
return Number.isFinite(e) ? e : null;
|
|
574
|
+
}), xn = u(() => {
|
|
575
|
+
if (y.maxScale == null && y.forceZeroCenter) return null;
|
|
576
|
+
let e = Number(y.maxScale);
|
|
577
|
+
return Number.isFinite(e) ? e : null;
|
|
578
|
+
}), Sn = u(() => bn.value !== null && xn.value !== null), Cn = u(() => {
|
|
579
|
+
let { min: e, max: t } = yn.value, n = bn.value, r = xn.value, i, a;
|
|
580
|
+
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
|
+
min: i,
|
|
582
|
+
max: a
|
|
583
|
+
};
|
|
584
|
+
}), wn = u(() => Cn.value.min), Tn = u(() => Cn.value.max), En = u(() => wn.value < 0 && Tn.value > 0 || Tn.value <= 0 ? wn.value : 0), Dn = (e) => {
|
|
585
|
+
let t = Math.max(1, F.value.height);
|
|
586
|
+
return kn(wn.value, Tn.value, t, Sn.value)(e);
|
|
587
|
+
}, On = u(() => Dn(0));
|
|
588
|
+
function kn(e, t, n, r = !1) {
|
|
589
|
+
let i = (e, t, n) => Math.max(t, Math.min(n, e)), a = 1e-9, o = Math.max(a, t - e);
|
|
590
|
+
if (r) return (t) => n - (t - e) / o * n;
|
|
591
|
+
if (t <= 0) {
|
|
592
|
+
let t = Math.max(a, 0 - e);
|
|
593
|
+
return (r) => n - (r - e) / t * n;
|
|
594
|
+
} else if (e >= 0) {
|
|
595
|
+
let e = Math.max(a, t - 0);
|
|
596
|
+
return (t) => n - (t - 0) / e * n;
|
|
597
|
+
} else {
|
|
598
|
+
let r = Math.max(a, Math.max(Math.abs(e), Math.abs(t)));
|
|
599
|
+
return (e) => (1 - (i(e / r, -1, 1) + 1) / 2) * n;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
function An(n, r = !1, a = !1) {
|
|
603
|
+
if (!n || !n.length) return {
|
|
604
|
+
fullSet: "",
|
|
605
|
+
points: [],
|
|
606
|
+
selectionSet: "",
|
|
607
|
+
sliced: [],
|
|
608
|
+
firstPlot: null,
|
|
609
|
+
lastPlot: null,
|
|
610
|
+
hasFull: !1,
|
|
611
|
+
hasSelection: !1,
|
|
612
|
+
fullMarkers: [],
|
|
613
|
+
selectionMarkers: [],
|
|
614
|
+
dashed: !1
|
|
615
|
+
};
|
|
616
|
+
let ee = Math.max(1, F.value.height), te = kn(wn.value, Tn.value, ee, Sn.value), ne = n.length, s = Math.min(Math.max(0, R.value), Math.max(0, ne - 1)), ie = Math.min(ne, Math.max(s + 1, z.value)), c = n.map((e, t) => {
|
|
617
|
+
let n = Gt(e), r = Number.isFinite(n), i = qt(e, t), a = Sn.value ? ((e, t, n) => Math.max(t, Math.min(n, e)))(0, wn.value, Tn.value) : 0, o = te(a);
|
|
618
|
+
return {
|
|
619
|
+
x: i,
|
|
620
|
+
y: r ? te(n) : NaN,
|
|
621
|
+
v: n,
|
|
622
|
+
value: r ? n : null,
|
|
623
|
+
y0: o,
|
|
624
|
+
i: t,
|
|
625
|
+
xValue: Kt(e, t)
|
|
626
|
+
};
|
|
627
|
+
}), 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 = y.useValueRange ? oe.filter((e) => e.xValue >= Number(x.value) && e.xValue <= Number(S.value)) : oe.filter((e) => e.i >= s && e.i < ie), l = y.useValueRange ? c.filter((e) => e.xValue >= Number(x.value) && e.xValue <= Number(S.value)) : c.slice(s, ie);
|
|
628
|
+
return {
|
|
629
|
+
fullSet: c.length >= 2 ? a ? re(y.cutNullValues ? c : c.filter((e) => e.value != null)) : y.smoothMinimap || r ? y.cutNullValues ? t(c) : i(c.filter((e) => e.value != null)) : y.cutNullValues ? o(c) : e(c.filter((e) => e.value != null)) : "",
|
|
630
|
+
points: c,
|
|
631
|
+
selectionSet: l.length >= 2 ? a ? re(y.cutNullValues ? l : l.filter((e) => e.value != null)) : y.smoothMinimap || r ? y.cutNullValues ? t(l) : i(l.filter((e) => e.value != null)) : y.cutNullValues ? o(l) : e(l.filter((e) => e.value != null)) : "",
|
|
632
|
+
sliced: l,
|
|
633
|
+
firstPlot: y.useValueRange ? l[0] || null : c[s] || null,
|
|
634
|
+
lastPlot: y.useValueRange ? l[l.length - 1] || null : c[Math.max(0, ie - 1)] || null,
|
|
635
|
+
hasFull: c.length >= 2,
|
|
636
|
+
hasSelection: l.length >= 2,
|
|
637
|
+
fullMarkers: oe,
|
|
638
|
+
selectionMarkers: se
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
let V = u(() => y.minimap.length ? An(y.minimap) : []), H = u(() => y.allMinimaps.length ? y.allMinimaps.map((e, t) => {
|
|
642
|
+
let n = An(e?.series || [], !!e.smooth, !!e.useStepper), r = e?.id ?? e?.name ?? t;
|
|
643
|
+
return {
|
|
644
|
+
key: typeof r == "object" ? JSON.stringify(r) : String(r),
|
|
645
|
+
color: e?.color,
|
|
646
|
+
...n,
|
|
647
|
+
temperatureColors: e?.temperatureColors ?? null,
|
|
648
|
+
isVisible: e.isVisible,
|
|
649
|
+
type: e.type || void 0,
|
|
650
|
+
dashed: e.dashed ?? !1,
|
|
651
|
+
useStepper: !!e.useStepper
|
|
652
|
+
};
|
|
653
|
+
}) : []), U = u(() => {
|
|
654
|
+
if (y.useValueRange) {
|
|
655
|
+
let e = Ut(x.value), t = Ut(S.value);
|
|
656
|
+
return {
|
|
657
|
+
x: e,
|
|
658
|
+
width: Math.max(0, t - e)
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
let e = R.value, t = Math.max(e + 1, z.value);
|
|
662
|
+
return {
|
|
663
|
+
x: B.value * e + (y.minimapCompact ? 0 : B.value / 2),
|
|
664
|
+
width: B.value * (t - e) - B.value
|
|
665
|
+
};
|
|
666
|
+
}), W = g(y.minimapSelectedIndex), jn = (e) => Math.round(y.min + e), Mn = u({
|
|
667
|
+
get() {
|
|
668
|
+
return T.value ? R.value : Number(O.value);
|
|
669
|
+
},
|
|
670
|
+
set(e) {
|
|
671
|
+
if (T.value) {
|
|
672
|
+
if (y.useValueRange) {
|
|
673
|
+
let t = Mt(e);
|
|
674
|
+
Gn(Math.min(Math.max(Number(y.min), t), Number(S.value) - D.value));
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
let t = Math.round(+e || 0);
|
|
678
|
+
Gn(jn(t));
|
|
679
|
+
} else {
|
|
680
|
+
let t = Mt(e), n = Number(S.value) - D.value, r = Math.min(Math.max(y.min, t), n);
|
|
681
|
+
Vn.value && (Vn.value.valueAsNumber = r), Gn(r);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}), Nn = u({
|
|
685
|
+
get() {
|
|
686
|
+
return T.value ? Math.max(R.value, z.value - 1) : Number(k.value);
|
|
687
|
+
},
|
|
688
|
+
set(e) {
|
|
689
|
+
if (T.value) {
|
|
690
|
+
if (y.useValueRange) {
|
|
691
|
+
let t = Mt(e);
|
|
692
|
+
qn(Math.max(Number(x.value) + D.value, Math.min(t, Number(y.max))));
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
let t = Math.round(+e || 0);
|
|
696
|
+
qn(jn(t + 1));
|
|
697
|
+
} else {
|
|
698
|
+
let t = Mt(e), n = Number(x.value) + D.value, r = Math.max(n, Math.min(t, y.max));
|
|
699
|
+
Hn.value && (Hn.value.valueAsNumber = r), qn(r);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
}), Pn = 0;
|
|
703
|
+
function Fn(e, t) {
|
|
704
|
+
if (t === Pn) {
|
|
705
|
+
if (y.useValueRange) {
|
|
706
|
+
W.value = Number.isFinite(Number(e)) ? Ut(Number(e)) : null;
|
|
707
|
+
return;
|
|
708
|
+
}
|
|
709
|
+
W.value = un(y.valueStart) + e;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
let In = ie(Fn, 60);
|
|
713
|
+
v(() => y.minimapSelectedIndex, (e, t) => {
|
|
714
|
+
if (Pn += 1, [null, void 0].includes(e)) {
|
|
715
|
+
W.value = null;
|
|
716
|
+
return;
|
|
717
|
+
}
|
|
718
|
+
e !== t && In(e, Pn);
|
|
719
|
+
}, { immediate: !0 });
|
|
720
|
+
function Ln(e) {
|
|
721
|
+
if (zt.value) return;
|
|
722
|
+
W.value = e;
|
|
723
|
+
let t = R.value, n = z.value;
|
|
724
|
+
e >= t && e < n && !X.value && j("trapMouse", e - t);
|
|
725
|
+
}
|
|
726
|
+
function Rn(e) {
|
|
727
|
+
let t = Wt(e), n = y.allMinimaps.flatMap((e) => (e.series || []).map((e, n) => ({
|
|
728
|
+
point: e,
|
|
729
|
+
index: n,
|
|
730
|
+
x: Number(e?.x),
|
|
731
|
+
distance: Math.abs(Number(e?.x) - t)
|
|
732
|
+
}))).filter((e) => Number.isFinite(e.x));
|
|
733
|
+
return n.length ? n.reduce((e, t) => t.distance < e.distance ? t : e, n[0]) : null;
|
|
734
|
+
}
|
|
735
|
+
function zn(e) {
|
|
736
|
+
if (!cn.value || zt.value) return;
|
|
737
|
+
let t = zr(e.clientX);
|
|
738
|
+
if (y.useValueRange) {
|
|
739
|
+
let e = Rn(t);
|
|
740
|
+
if (!e) {
|
|
741
|
+
Bn();
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
W.value = Ut(e.x), j("trapMouse", e.index), j("trapMouseValue", e.x);
|
|
745
|
+
return;
|
|
746
|
+
}
|
|
747
|
+
Ln(Br(t));
|
|
748
|
+
}
|
|
749
|
+
function Bn() {
|
|
750
|
+
W.value = null, !zt.value && (j("trapMouse", null), j("trapMouseValue", null));
|
|
751
|
+
}
|
|
752
|
+
let Vn = g(null), Hn = g(null);
|
|
753
|
+
function Un(e) {
|
|
754
|
+
if (typeof e == "object" && e && "target" in e) {
|
|
755
|
+
let t = e.target, n = "valueAsNumber" in t ? t.valueAsNumber : +t.value;
|
|
756
|
+
return Number.isFinite(n) ? n : NaN;
|
|
757
|
+
}
|
|
758
|
+
let t = +e;
|
|
759
|
+
return Number.isFinite(t) ? t : NaN;
|
|
760
|
+
}
|
|
761
|
+
let Wn = 0;
|
|
762
|
+
function Gn(e) {
|
|
763
|
+
w.value = !0;
|
|
764
|
+
let t = Un(e);
|
|
765
|
+
Number.isFinite(t) && (cancelAnimationFrame(Wn), Wn = requestAnimationFrame(() => {
|
|
766
|
+
O.value = t;
|
|
767
|
+
}));
|
|
768
|
+
}
|
|
769
|
+
let Kn = 0;
|
|
770
|
+
function qn(e) {
|
|
771
|
+
w.value = !0;
|
|
772
|
+
let t = Un(e);
|
|
773
|
+
Number.isFinite(t) && (cancelAnimationFrame(Kn), Kn = requestAnimationFrame(() => {
|
|
774
|
+
k.value = t;
|
|
775
|
+
}));
|
|
776
|
+
}
|
|
777
|
+
me(() => {
|
|
778
|
+
cancelAnimationFrame(Wn), cancelAnimationFrame(Kn);
|
|
779
|
+
});
|
|
780
|
+
let Jn = u(() => y.valueEnd - y.valueStart), Yn = u(() => Jn.value < y.max - y.min), G = g(!1), Xn = g(null), Zn = u(() => (Yt.value - 48) / (y.max - y.min) * Jn.value), Qn = u(() => Math.max(1, Yt.value - kt - Zn.value)), $n = u(() => Math.max(1, y.max - y.min - Jn.value)), er = u(() => $n.value / Qn.value), tr = g(0), nr = g(0), rr = g(0), ir = g(0), K = null, q = null, J = null, Y = null, ar = g(y.min);
|
|
781
|
+
function or(e) {
|
|
782
|
+
if (!b.value) return y.min;
|
|
783
|
+
let t = b.value.getBoundingClientRect(), n = t.left + kt / 2, r = t.right - kt / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, y.max - y.min);
|
|
784
|
+
return Math.round(y.min + a * o);
|
|
785
|
+
}
|
|
786
|
+
let sr = async (e) => {
|
|
787
|
+
if (w.value = !0, Z.value = !0, !y.enableSelectionDrag) return;
|
|
788
|
+
let t = e.type === "touchstart";
|
|
789
|
+
t || e.stopPropagation();
|
|
790
|
+
let r = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, i = t ? r ? r.target : null : e.target;
|
|
791
|
+
if (!i || !(i instanceof Element) || i.classList?.contains("range-handle") || i.classList?.contains("vue-ui-zoom-compact-minimap-handle") || i.closest(".vue-ui-zoom-compact-minimap-handle")) return;
|
|
792
|
+
G.value = !0;
|
|
793
|
+
let a = t ? r ? r.clientX : 0 : e.clientX;
|
|
794
|
+
if (Xn.value = a, tr.value = a, y.focusOnDrag && !Yn.value && b.value && !Rt.value) {
|
|
795
|
+
Rt.value = !0;
|
|
796
|
+
try {
|
|
797
|
+
ar.value = or(a);
|
|
798
|
+
let e = Math.min(.95, Math.max(.05, y.focusRangeRatio)), t = Number(y.max) - Number(y.min), r = Math.max(1, Math.round(t * e)), i = Math.floor(r / 2), o = ar.value - i;
|
|
799
|
+
o = Math.max(Number(y.min), Math.min(o, Number(y.max) - r));
|
|
800
|
+
let ee = Math.min(Number(y.max), o + r);
|
|
801
|
+
O.value = o, k.value = ee, Xt(o), Zt(ee), n(b.value, "mouseup"), await de(), n(b.value, "mousedown", { clientX: a });
|
|
802
|
+
} finally {
|
|
803
|
+
Rt.value = !1;
|
|
804
|
+
}
|
|
805
|
+
return;
|
|
806
|
+
}
|
|
807
|
+
nr.value = x.value, rr.value = S.value, ir.value = er.value, K = t ? "touchmove" : "mousemove", q = t ? "touchend" : "mouseup", J = t ? lr : cr, Y = t ? fr : dr, window.addEventListener(K, J, { passive: !1 }), window.addEventListener(q, Y);
|
|
808
|
+
};
|
|
809
|
+
function cr(e) {
|
|
810
|
+
G.value && ur(e.clientX);
|
|
811
|
+
}
|
|
812
|
+
function lr(e) {
|
|
813
|
+
if (!G.value || !b.value) return;
|
|
814
|
+
let t = e.target;
|
|
815
|
+
if (!(t instanceof Element) || !b.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
|
|
816
|
+
e.preventDefault();
|
|
817
|
+
let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
818
|
+
n && ur(n.clientX);
|
|
819
|
+
}
|
|
820
|
+
function ur(e) {
|
|
821
|
+
if (!G.value) return;
|
|
822
|
+
let t = or(tr.value), n = or(e) - t, r = Math.round(nr.value + n);
|
|
823
|
+
r = Math.max(y.min, Math.min(r, y.max - Jn.value));
|
|
824
|
+
let i = r + Jn.value;
|
|
825
|
+
O.value = r, k.value = i, Xt(r), Zt(i);
|
|
826
|
+
}
|
|
827
|
+
function dr() {
|
|
828
|
+
pr();
|
|
829
|
+
}
|
|
830
|
+
function fr() {
|
|
831
|
+
pr();
|
|
832
|
+
}
|
|
833
|
+
function pr() {
|
|
834
|
+
G.value = !1, K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, A();
|
|
835
|
+
}
|
|
836
|
+
let X = g(!1), mr = g(null), hr = g(null), gr = g(1), _r = g(1), Z = g(!1);
|
|
837
|
+
function vr() {
|
|
838
|
+
if (mr.value) {
|
|
839
|
+
let e = Math.round(mr.value.getBoundingClientRect().width);
|
|
840
|
+
e !== gr.value && (gr.value = e);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
function yr() {
|
|
844
|
+
if (hr.value) {
|
|
845
|
+
let e = Math.round(hr.value.getBoundingClientRect().width);
|
|
846
|
+
e !== _r.value && (_r.value = e);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
ge(() => {
|
|
850
|
+
vr(), yr();
|
|
851
|
+
});
|
|
852
|
+
let br = g(0);
|
|
853
|
+
function xr(e) {
|
|
854
|
+
br.value = +(e === "start");
|
|
855
|
+
}
|
|
856
|
+
let Sr = g(!1), Cr = g({
|
|
857
|
+
width: 0,
|
|
858
|
+
left: 0
|
|
859
|
+
});
|
|
860
|
+
v([x, S], async () => {
|
|
861
|
+
if (await de(), !mr.value || !hr.value) {
|
|
862
|
+
Sr.value = !1, Cr.value = {
|
|
863
|
+
width: 0,
|
|
864
|
+
left: 0
|
|
865
|
+
};
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
868
|
+
let e = mr.value.getBoundingClientRect(), t = hr.value.getBoundingClientRect();
|
|
869
|
+
Sr.value = e.x + e.width > t.x;
|
|
870
|
+
let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width, a = (n + r) / 2;
|
|
871
|
+
Cr.value = {
|
|
872
|
+
width: i,
|
|
873
|
+
left: a - i / 2
|
|
874
|
+
};
|
|
875
|
+
}), ge(() => {
|
|
876
|
+
vr(), yr();
|
|
877
|
+
}), v(() => y.labelLeft, () => {
|
|
878
|
+
de(vr);
|
|
879
|
+
}, { deep: !0 }), v(() => y.labelRight, () => {
|
|
880
|
+
de(yr);
|
|
881
|
+
}, { deep: !0 });
|
|
882
|
+
let Q = u(() => {
|
|
883
|
+
let e = "", t = "", n = !1;
|
|
884
|
+
if (ee(y.customFormat)) try {
|
|
885
|
+
let r = y.customFormat({
|
|
886
|
+
absoluteIndex: x.value,
|
|
887
|
+
seriesIndex: x.value,
|
|
888
|
+
datapoint: y.selectedSeries,
|
|
889
|
+
timeLabel: y.preciseLabels[x.value],
|
|
890
|
+
side: "left"
|
|
891
|
+
}), i = y.customFormat({
|
|
892
|
+
absoluteIndex: Bt.value,
|
|
893
|
+
seriesIndex: -1,
|
|
894
|
+
datapoint: y.selectedSeries,
|
|
895
|
+
timeLabel: y.useValueRange ? null : y.preciseLabels[Bt.value],
|
|
896
|
+
side: "right"
|
|
897
|
+
});
|
|
898
|
+
typeof r == "string" && typeof i == "string" && (e = r, t = i, n = !0);
|
|
899
|
+
} catch {
|
|
900
|
+
n = !1;
|
|
901
|
+
}
|
|
902
|
+
if (!n) {
|
|
903
|
+
let n = y.useValueRange ? { text: String(Math.round(x.value * 1e3) / 1e3) } : y.usePreciseLabels ? y.preciseLabels.find((e) => e.absoluteIndex === x.value) : y.timeLabels.find((e) => e.absoluteIndex === x.value), r = y.useValueRange ? { text: String(Math.round(S.value * 1e3) / 1e3) } : y.usePreciseLabels ? y.preciseLabels.find((e) => e.absoluteIndex === Bt.value) : y.timeLabels.find((e) => e.absoluteIndex === Bt.value);
|
|
904
|
+
e = n ? n.text : "", t = r ? r.text : "";
|
|
905
|
+
}
|
|
906
|
+
return {
|
|
907
|
+
left: e,
|
|
908
|
+
right: t
|
|
909
|
+
};
|
|
910
|
+
});
|
|
911
|
+
me(() => {
|
|
912
|
+
I.value && I.value.disconnect(), K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, clearTimeout(null);
|
|
913
|
+
});
|
|
914
|
+
let wr = u(() => {
|
|
915
|
+
if (!cn.value || W.value === null) return null;
|
|
916
|
+
if (y.useValueRange) {
|
|
917
|
+
let e = W.value;
|
|
918
|
+
return e < U.value.x || e > U.value.x + U.value.width ? null : {
|
|
919
|
+
x1: e,
|
|
920
|
+
x2: e,
|
|
921
|
+
y1: 0,
|
|
922
|
+
y2: Math.max(F.value.height, 0),
|
|
923
|
+
stroke: y.minimapIndicatorColor,
|
|
924
|
+
"stroke-linecap": "round",
|
|
925
|
+
"stroke-dasharray": 2,
|
|
926
|
+
"stroke-width": 1
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
if (W.value >= R.value && W.value < z.value) {
|
|
930
|
+
let e = W.value, t = B.value * e + (y.minimapCompact ? 0 : B.value / 2);
|
|
931
|
+
return {
|
|
932
|
+
x1: t,
|
|
933
|
+
x2: t,
|
|
934
|
+
y1: 0,
|
|
935
|
+
y2: Math.max(F.value.height, 0),
|
|
936
|
+
stroke: y.minimapIndicatorColor,
|
|
937
|
+
"stroke-linecap": "round",
|
|
938
|
+
"stroke-dasharray": 2,
|
|
939
|
+
"stroke-width": 1
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
return null;
|
|
943
|
+
}), Tr = u(() => Number(x.value) < Number(S.value) - 1), Er = u(() => Number(x.value) > Number(y.min)), Dr = u(() => Number(S.value) < Number(y.max)), Or = u(() => Number(S.value) > Number(x.value) + 1);
|
|
944
|
+
function kr(e) {
|
|
945
|
+
let t = Number(x.value) + e;
|
|
946
|
+
e > 0 && !Tr.value || e < 0 && !Er.value || (w.value = !0, O.value = t, A());
|
|
947
|
+
}
|
|
948
|
+
function Ar(e) {
|
|
949
|
+
let t = Number(S.value) + e;
|
|
950
|
+
e > 0 && !Dr.value || e < 0 && !Or.value || (w.value = !0, k.value = t, A());
|
|
951
|
+
}
|
|
952
|
+
let jr = {
|
|
953
|
+
plus: () => kr(1),
|
|
954
|
+
minus: () => kr(-1),
|
|
955
|
+
canPlus: Tr,
|
|
956
|
+
canMinus: Er
|
|
957
|
+
}, Mr = {
|
|
958
|
+
plus: () => Ar(1),
|
|
959
|
+
minus: () => Ar(-1),
|
|
960
|
+
canPlus: Dr,
|
|
961
|
+
canMinus: Or
|
|
962
|
+
};
|
|
963
|
+
function Nr(e) {
|
|
964
|
+
if (!e || Pr(e.target)) return;
|
|
965
|
+
let t = e.key, n = t === "ArrowLeft" || t === "ArrowDown" || t === "-" || t === "Subtract", r = t === "ArrowRight" || t === "ArrowUp" || t === "+" || t === "Add";
|
|
966
|
+
!n && !r || (e.preventDefault(), e.stopPropagation(), r ? (jr.plus(), Mr.plus()) : (jr.minus(), Mr.minus()));
|
|
967
|
+
}
|
|
968
|
+
function Pr(e) {
|
|
969
|
+
return e instanceof HTMLElement && (e.isContentEditable || e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.tagName === "SELECT");
|
|
970
|
+
}
|
|
971
|
+
function Fr(e) {
|
|
972
|
+
if (!C.value || !y.minimapCompact) return;
|
|
973
|
+
let t = b.value;
|
|
974
|
+
if (!t) return;
|
|
975
|
+
let n = e === "start" ? "[data-cy=\"slicer-compact-handle-left\"]" : "[data-cy=\"slicer-compact-handle-right\"]", r = t.querySelector(n);
|
|
976
|
+
r && r instanceof SVGElement && typeof r.focus == "function" && r.focus();
|
|
977
|
+
}
|
|
978
|
+
function Ir(e, t) {
|
|
979
|
+
if (!t || Pr(t.target)) return;
|
|
980
|
+
let n = t.key, r = n === "ArrowLeft" || n === "ArrowDown" || n === "-" || n === "Subtract", i = n === "ArrowRight" || n === "ArrowUp" || n === "+" || n === "Add";
|
|
981
|
+
!r && !i || (t.preventDefault(), t.stopPropagation(), e === "start" ? i ? jr.plus() : jr.minus() : i ? Mr.plus() : Mr.minus(), de(() => Fr(e)));
|
|
982
|
+
}
|
|
983
|
+
let Lr = u(() => ({
|
|
984
|
+
tabindex: 0,
|
|
985
|
+
role: "slider",
|
|
986
|
+
"aria-label": "Range start",
|
|
987
|
+
"aria-valuemin": Number(y.min),
|
|
988
|
+
"aria-valuemax": Math.max(Number(y.min), Number(S.value) - 1),
|
|
989
|
+
"aria-valuenow": Number(x.value)
|
|
990
|
+
})), Rr = u(() => ({
|
|
991
|
+
tabindex: 0,
|
|
992
|
+
role: "slider",
|
|
993
|
+
"aria-label": "Range end",
|
|
994
|
+
"aria-valuemin": Math.min(Number(y.max), Number(x.value) + 1),
|
|
995
|
+
"aria-valuemax": Number(y.max),
|
|
996
|
+
"aria-valuenow": Number(S.value)
|
|
997
|
+
}));
|
|
998
|
+
function zr(e) {
|
|
999
|
+
if (!Lt.value) return 0;
|
|
1000
|
+
let t = Lt.value.getBoundingClientRect();
|
|
1001
|
+
if (!t.width) return 0;
|
|
1002
|
+
let n = (e - t.left) / t.width;
|
|
1003
|
+
return Math.min(1, Math.max(0, n)) * F.value.width;
|
|
1004
|
+
}
|
|
1005
|
+
function Br(e) {
|
|
1006
|
+
let t = Math.max(0, L.value - 1), n = Math.max(1, F.value.width), r = Math.min(1, Math.max(0, e / n));
|
|
1007
|
+
return Math.min(t, Math.max(0, Math.round(r * t)));
|
|
1008
|
+
}
|
|
1009
|
+
function Vr(e) {
|
|
1010
|
+
let t = Math.min(Math.max(0, e), Math.max(1, F.value.width));
|
|
1011
|
+
if (y.useValueRange) {
|
|
1012
|
+
let e = Wt(t);
|
|
1013
|
+
if (E.value === "start") {
|
|
1014
|
+
let t = Math.min(e, Number(S.value) - D.value);
|
|
1015
|
+
O.value = t, Xt(t);
|
|
1016
|
+
return;
|
|
1017
|
+
}
|
|
1018
|
+
if (E.value === "end") {
|
|
1019
|
+
let t = Math.max(Number(x.value) + D.value, e), n = Math.min(Number(y.max), t);
|
|
1020
|
+
k.value = n, Zt(n);
|
|
1021
|
+
return;
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
let n = Br(t);
|
|
1025
|
+
if (E.value === "start") {
|
|
1026
|
+
let e = Math.min(y.min + n, Number(S.value) - 1);
|
|
1027
|
+
O.value = e, Xt(e);
|
|
1028
|
+
return;
|
|
1029
|
+
}
|
|
1030
|
+
if (E.value === "end") {
|
|
1031
|
+
let e = Math.max(Number(x.value) + 1, y.min + n + 1), t = Math.min(y.max, e);
|
|
1032
|
+
k.value = t, Zt(t);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
function Hr(e) {
|
|
1036
|
+
if (!E.value || !P.value) return;
|
|
1037
|
+
let t = e.clientX - Ft.value;
|
|
1038
|
+
if (!Pt.value) {
|
|
1039
|
+
if (Math.abs(t) < 4) return;
|
|
1040
|
+
Pt.value = !0, w.value = !0, Z.value = !0;
|
|
1041
|
+
}
|
|
1042
|
+
let n = zr(e.clientX) - It.value;
|
|
1043
|
+
Vr(E.value === "start" ? n + Jt.value : n);
|
|
1044
|
+
}
|
|
1045
|
+
function Ur() {
|
|
1046
|
+
if (!E.value) return;
|
|
1047
|
+
window.removeEventListener("mousemove", Hr, !0), window.removeEventListener("mouseup", Ur, !0);
|
|
1048
|
+
let e = Pt.value;
|
|
1049
|
+
E.value = null, Pt.value = !1, Ft.value = 0, It.value = 0, e && A();
|
|
1050
|
+
}
|
|
1051
|
+
function Wr(e, t) {
|
|
1052
|
+
if (!C.value || !y.minimapCompact || !P.value) return;
|
|
1053
|
+
t.preventDefault(), t.stopPropagation(), W.value = null;
|
|
1054
|
+
let n = zr(t.clientX), r = e === "start" ? U.value.x - Jt.value : U.value.x + U.value.width;
|
|
1055
|
+
E.value = e, Pt.value = !1, Ft.value = t.clientX, It.value = n - r, window.addEventListener("mousemove", Hr, !0), window.addEventListener("mouseup", Ur, !0);
|
|
1056
|
+
}
|
|
1057
|
+
let Gr = u(() => R.value), Kr = u(() => Math.max(R.value, z.value - 1));
|
|
1058
|
+
u(() => {
|
|
1059
|
+
if (!C.value || !y.minimapCompact || !y.allMinimaps.length) return [];
|
|
1060
|
+
let e = Gr.value, t = Kr.value;
|
|
1061
|
+
return H.value.flatMap((n) => {
|
|
1062
|
+
if (!n?.isVisible || !["line", "plot"].includes(n.type) || !n.type) return [];
|
|
1063
|
+
let r = [], i = n.points?.find((t) => t.i === e && t.value !== null), a = n.points?.find((e) => e.i === t && e.value !== null);
|
|
1064
|
+
return i && r.push({
|
|
1065
|
+
key: `${n.key}-left-${i.i}`,
|
|
1066
|
+
x: i.x,
|
|
1067
|
+
y: i.y,
|
|
1068
|
+
color: n.color
|
|
1069
|
+
}), a && t !== e && r.push({
|
|
1070
|
+
key: `${n.key}-right-${a.i}`,
|
|
1071
|
+
x: a.x,
|
|
1072
|
+
y: a.y,
|
|
1073
|
+
color: n.color
|
|
1074
|
+
}), r;
|
|
1075
|
+
});
|
|
1076
|
+
});
|
|
1077
|
+
let $ = u(() => Math.min(40, Math.max(20, y.handleWidth))), qr = u(() => U.value.x - $.value), Jr = u(() => U.value.x + U.value.width);
|
|
1078
|
+
return At({
|
|
1079
|
+
setStartValue: Gn,
|
|
1080
|
+
setEndValue: qn
|
|
1081
|
+
}), (e, t) => (h(), f("div", {
|
|
1082
|
+
"data-minimap": C.value,
|
|
1083
|
+
"data-dom-to-png-ignore": "",
|
|
1084
|
+
"data-dom-to-png-ignore-layout": "",
|
|
1085
|
+
style: m([{ padding: "0 48px" }, {
|
|
1086
|
+
maxWidth: s.maxWidth ? s.maxWidth + "px" : void 0,
|
|
1087
|
+
margin: s.maxWidth ? "0 auto" : void 0
|
|
1088
|
+
}]),
|
|
1089
|
+
class: "vue-data-ui-zoom",
|
|
1090
|
+
ref_key: "zoomWrapper",
|
|
1091
|
+
ref: b,
|
|
1092
|
+
onMousedown: sr,
|
|
1093
|
+
onTouchstart: sr
|
|
1094
|
+
}, [p("div", Ee, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== Qt.value ? (h(), f("div", De, [_e(e.$slots, "reset-action", { reset: ln }, () => [p("button", {
|
|
1095
|
+
tabindex: "0",
|
|
1096
|
+
role: "button",
|
|
1097
|
+
class: "vue-data-ui-refresh-button",
|
|
1098
|
+
style: m({
|
|
1099
|
+
top: C.value ? "36px" : "-16px",
|
|
1100
|
+
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
1101
|
+
}),
|
|
1102
|
+
onClick: ln
|
|
1103
|
+
}, [ce(oe, {
|
|
1104
|
+
name: "refresh",
|
|
1105
|
+
stroke: s.textColor
|
|
1106
|
+
}, null, 8, ["stroke"])], 4)], !0)])) : d("", !0)]), p("div", {
|
|
1107
|
+
class: "double-range-slider",
|
|
1108
|
+
ref_key: "minimapWrapper",
|
|
1109
|
+
ref: P,
|
|
1110
|
+
style: m([{ "z-index": "0" }, C.value ? {
|
|
1111
|
+
"--minimap-unit-px": B.value + "px",
|
|
1112
|
+
"--minimap-offset-px": (s.minimapCompact ? 0 : B.value / 2) + "px"
|
|
1113
|
+
} : void 0]),
|
|
1114
|
+
onMouseenter: t[18] ||= (e) => Z.value = !0,
|
|
1115
|
+
onMouseleave: t[19] ||= (e) => Z.value = !1
|
|
1116
|
+
}, [
|
|
1117
|
+
C.value ? (h(), f("div", Oe, [(h(), f("svg", {
|
|
1118
|
+
ref_key: "minimapSvg",
|
|
1119
|
+
ref: Lt,
|
|
1120
|
+
key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
|
|
1121
|
+
xmlns: ye(ne),
|
|
1122
|
+
viewBox: `0 0 ${Math.max(0, F.value.width)} ${Math.max(0, F.value.height)}`,
|
|
1123
|
+
preserveAspectRatio: "none"
|
|
1124
|
+
}, [
|
|
1125
|
+
p("defs", null, [ce(se, {
|
|
1126
|
+
t: "linear",
|
|
1127
|
+
id: Nt.value,
|
|
1128
|
+
x1: "0%",
|
|
1129
|
+
y1: "0%",
|
|
1130
|
+
x2: "0%",
|
|
1131
|
+
y2: "100%",
|
|
1132
|
+
stops: [[
|
|
1133
|
+
"0%",
|
|
1134
|
+
s.minimapLineColor,
|
|
1135
|
+
.31
|
|
1136
|
+
], [
|
|
1137
|
+
"100%",
|
|
1138
|
+
"transparent",
|
|
1139
|
+
0
|
|
1140
|
+
]]
|
|
1141
|
+
}, null, 8, ["id", "stops"]), p("clipPath", { id: `selection_clip_${Nt.value}` }, [p("rect", {
|
|
1142
|
+
x: U.value.x,
|
|
1143
|
+
y: "0",
|
|
1144
|
+
width: Math.max(0, U.value.width),
|
|
1145
|
+
height: Math.max(F.value.height, 0)
|
|
1146
|
+
}, null, 8, je)], 8, Ae)]),
|
|
1147
|
+
s.minimapCompact ? (h(), f("rect", {
|
|
1148
|
+
key: 0,
|
|
1149
|
+
class: "vue-ui-zoom-minimap-frame",
|
|
1150
|
+
x: 0,
|
|
1151
|
+
y: 0,
|
|
1152
|
+
width: F.value.width,
|
|
1153
|
+
height: F.value.height,
|
|
1154
|
+
fill: "none",
|
|
1155
|
+
stroke: s.minimapFrameColor,
|
|
1156
|
+
rx: 3
|
|
1157
|
+
}, null, 8, Me)) : d("", !0),
|
|
1158
|
+
e.$slots.slotMap ? d("", !0) : (h(), f(l, { key: 1 }, [s.minimapMerged ? (h(), f("path", {
|
|
1159
|
+
key: 0,
|
|
1160
|
+
d: `M${V.value.fullSet}`,
|
|
1161
|
+
stroke: `${s.minimapLineColor}`,
|
|
1162
|
+
fill: "none",
|
|
1163
|
+
"stroke-width": "1",
|
|
1164
|
+
"stroke-linecap": "round",
|
|
1165
|
+
"stroke-linejoin": "round",
|
|
1166
|
+
style: { opacity: "0.6" }
|
|
1167
|
+
}, null, 8, Ne)) : d("", !0), s.minimapMerged && !s.minimapCompact ? (h(), f("path", {
|
|
1168
|
+
key: 1,
|
|
1169
|
+
d: `M${B.value / 2},${Math.max(F.value.height, 0)} ${V.value.fullSet} L${F.value.width - B.value / 2},${Math.max(F.value.height, 0)}Z`,
|
|
1170
|
+
fill: `url(#${Nt.value})`,
|
|
1171
|
+
stroke: "none",
|
|
1172
|
+
style: { opacity: "0.6" }
|
|
1173
|
+
}, null, 8, Pe)) : s.minimapMerged ? d("", !0) : (h(), f(l, { key: 2 }, [
|
|
1174
|
+
(h(!0), f(l, null, _(H.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (h(), f("g", null, [(h(!0), f(l, null, _(e.points, (n, r) => (h(), f(l, null, [e && !isNaN(n.y) ? (h(), f("rect", {
|
|
1175
|
+
key: 0,
|
|
1176
|
+
x: _n(n.x, t, r),
|
|
1177
|
+
y: n.v >= 0 ? n.y : n.y0,
|
|
1178
|
+
width: vn(t, r),
|
|
1179
|
+
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1180
|
+
fill: e.color,
|
|
1181
|
+
style: { opacity: .6 }
|
|
1182
|
+
}, null, 8, Fe)) : d("", !0)], 64))), 256))]))), 256)),
|
|
1183
|
+
(h(!0), f(l, null, _(H.value.filter((e) => e.type === "line"), (e) => (h(), f("g", null, [e.isVisible ? (h(), f("path", {
|
|
1184
|
+
key: 0,
|
|
1185
|
+
d: `M ${e.fullSet}`,
|
|
1186
|
+
fill: "none",
|
|
1187
|
+
stroke: e.color,
|
|
1188
|
+
style: { opacity: "0.6" },
|
|
1189
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1190
|
+
}, null, 8, Ie)) : d("", !0), e.isVisible && s.cutNullValues ? (h(!0), f(l, { key: 1 }, _(e.fullMarkers, (t) => (h(), f("circle", {
|
|
1191
|
+
key: `sel-dot-under-${e.key}-${t.i}`,
|
|
1192
|
+
cx: t.x,
|
|
1193
|
+
cy: t.y,
|
|
1194
|
+
r: "2",
|
|
1195
|
+
fill: e.color,
|
|
1196
|
+
stroke: N.value,
|
|
1197
|
+
"stroke-width": "0.5",
|
|
1198
|
+
style: { opacity: "0.6" }
|
|
1199
|
+
}, null, 8, Le))), 128)) : d("", !0)]))), 256)),
|
|
1200
|
+
(h(!0), f(l, null, _(H.value.filter((e) => e.type === "plot"), (e) => (h(), f("g", null, [(h(!0), f(l, null, _(e.points, (t) => (h(), f("g", null, [e.isVisible && t.value !== null ? (h(), f("circle", {
|
|
1201
|
+
key: `sel-plot-under-${e.key}-${t.i}`,
|
|
1202
|
+
cx: t.x,
|
|
1203
|
+
cy: t.y,
|
|
1204
|
+
r: "2",
|
|
1205
|
+
fill: e.color,
|
|
1206
|
+
stroke: N.value,
|
|
1207
|
+
"stroke-width": "0.5",
|
|
1208
|
+
style: { opacity: "0.6" }
|
|
1209
|
+
}, null, 8, Re)) : d("", !0)]))), 256))]))), 256))
|
|
1210
|
+
], 64))], 64)),
|
|
1211
|
+
p("rect", {
|
|
1212
|
+
x: U.value.x,
|
|
1213
|
+
y: 0,
|
|
1214
|
+
width: Math.max(0, U.value.width),
|
|
1215
|
+
height: Math.max(F.value.height, 0),
|
|
1216
|
+
fill: N.value,
|
|
1217
|
+
rx: s.minimapSelectionRadius,
|
|
1218
|
+
stroke: "none"
|
|
1219
|
+
}, null, 8, ze),
|
|
1220
|
+
p("rect", {
|
|
1221
|
+
x: U.value.x,
|
|
1222
|
+
y: 0,
|
|
1223
|
+
width: U.value.width < 0 ? 0 : U.value.width,
|
|
1224
|
+
height: Math.max(F.value.height, 0),
|
|
1225
|
+
rx: s.minimapSelectionRadius,
|
|
1226
|
+
fill: N.value,
|
|
1227
|
+
style: m({ opacity: G.value || w.value ? 0 : 1 })
|
|
1228
|
+
}, null, 12, Be),
|
|
1229
|
+
p("rect", {
|
|
1230
|
+
x: U.value.x,
|
|
1231
|
+
y: 0,
|
|
1232
|
+
width: U.value.width < 0 ? 0 : U.value.width,
|
|
1233
|
+
height: Math.max(F.value.height, 0),
|
|
1234
|
+
fill: s.minimapSelectedColor,
|
|
1235
|
+
rx: s.minimapSelectionRadius,
|
|
1236
|
+
style: m({ opacity: s.minimapSelectedColorOpacity }),
|
|
1237
|
+
tabindex: "0",
|
|
1238
|
+
role: "slider",
|
|
1239
|
+
"aria-label": "Selected range",
|
|
1240
|
+
"aria-valuemin": Number(y.min),
|
|
1241
|
+
"aria-valuemax": Number(y.max),
|
|
1242
|
+
"aria-valuenow": Number(x.value),
|
|
1243
|
+
"aria-valuetext": Q.value.left && Q.value.right ? `${Q.value.left} – ${Q.value.right}` : void 0,
|
|
1244
|
+
onKeydown: Nr
|
|
1245
|
+
}, null, 44, Ve),
|
|
1246
|
+
!s.minimapMerged && En.value < 0 ? (h(), f("line", {
|
|
1247
|
+
key: 2,
|
|
1248
|
+
class: "slicer-minimap-zero-line",
|
|
1249
|
+
x1: 0,
|
|
1250
|
+
x2: F.value.width,
|
|
1251
|
+
y1: On.value,
|
|
1252
|
+
y2: On.value,
|
|
1253
|
+
stroke: s.minimapFrameColor,
|
|
1254
|
+
"stroke-width": "0.5"
|
|
1255
|
+
}, null, 8, He)) : d("", !0),
|
|
1256
|
+
e.$slots.slotMap ? d("", !0) : (h(), f(l, { key: 3 }, [s.minimapMerged ? (h(), f("g", Ue, [
|
|
1257
|
+
V.value && V.value.sliced && V.value.sliced.length ? (h(), f(l, { key: 0 }, [V.value.selectionSet ? (h(), f("path", {
|
|
1258
|
+
key: 0,
|
|
1259
|
+
d: `M ${V.value.selectionSet}`,
|
|
1260
|
+
stroke: `${s.minimapLineColor}`,
|
|
1261
|
+
fill: "transparent",
|
|
1262
|
+
"stroke-width": "2",
|
|
1263
|
+
"stroke-linecap": "round",
|
|
1264
|
+
"stroke-linejoin": "round"
|
|
1265
|
+
}, null, 8, We)) : d("", !0)], 64)) : d("", !0),
|
|
1266
|
+
V.value && V.value.firstPlot ? (h(), f("circle", {
|
|
1267
|
+
key: 1,
|
|
1268
|
+
cx: V.value.firstPlot.x,
|
|
1269
|
+
cy: V.value.firstPlot.y,
|
|
1270
|
+
"stroke-width": "0.5",
|
|
1271
|
+
stroke: N.value,
|
|
1272
|
+
r: "3",
|
|
1273
|
+
fill: s.minimapLineColor
|
|
1274
|
+
}, null, 8, Ge)) : d("", !0),
|
|
1275
|
+
V.value && V.value.lastPlot ? (h(), f("circle", {
|
|
1276
|
+
key: 2,
|
|
1277
|
+
cx: V.value.lastPlot.x,
|
|
1278
|
+
cy: V.value.lastPlot.y,
|
|
1279
|
+
"stroke-width": "0.5",
|
|
1280
|
+
stroke: N.value,
|
|
1281
|
+
r: "3",
|
|
1282
|
+
fill: s.minimapLineColor
|
|
1283
|
+
}, null, 8, Ke)) : d("", !0)
|
|
1284
|
+
])) : (h(), f("g", qe, [
|
|
1285
|
+
(h(!0), f(l, null, _(H.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (h(), f("g", null, [(h(!0), f(l, null, _(e.points, (n, r) => (h(), f(l, null, [e && !isNaN(n.y) ? (h(), f("rect", {
|
|
1286
|
+
key: 0,
|
|
1287
|
+
x: _n(n.x, t, r),
|
|
1288
|
+
y: n.v >= 0 ? n.y : n.y0,
|
|
1289
|
+
width: vn(t, r),
|
|
1290
|
+
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1291
|
+
fill: e.color,
|
|
1292
|
+
style: m({ opacity: +(r >= O.value && r < k.value) })
|
|
1293
|
+
}, null, 12, Je)) : d("", !0)], 64))), 256))]))), 256)),
|
|
1294
|
+
(h(!0), f(l, null, _(H.value.filter((e) => e.type === "line"), (e, t) => (h(), f("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (h(), f("path", {
|
|
1295
|
+
key: 0,
|
|
1296
|
+
d: `M ${e.selectionSet}`,
|
|
1297
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
|
|
1298
|
+
fill: "transparent",
|
|
1299
|
+
"stroke-width": "2",
|
|
1300
|
+
"stroke-linecap": "round",
|
|
1301
|
+
"stroke-linejoin": "round",
|
|
1302
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1303
|
+
}, null, 8, Ye)) : d("", !0)]))), 128)),
|
|
1304
|
+
(h(!0), f(l, null, _(H.value.filter((e) => e.type === "plot"), (e) => (h(), f("g", { key: String(e.key) }, [(h(!0), f(l, null, _(e.sliced, (t) => (h(), f("g", null, [e.isVisible && t.value !== null ? (h(), f("circle", {
|
|
1305
|
+
key: 0,
|
|
1306
|
+
cx: t.x,
|
|
1307
|
+
cy: t.y,
|
|
1308
|
+
r: "2",
|
|
1309
|
+
fill: e.color,
|
|
1310
|
+
stroke: N.value,
|
|
1311
|
+
"stroke-width": "0.5",
|
|
1312
|
+
style: { opacity: "0.6" }
|
|
1313
|
+
}, null, 8, Xe)) : d("", !0)]))), 256))]))), 128))
|
|
1314
|
+
]))], 64)),
|
|
1315
|
+
e.$slots.slotMap ? _e(e.$slots, "slotMap", pe(le({
|
|
1316
|
+
width: Math.max(0, F.value.width),
|
|
1317
|
+
height: Math.max(0, F.value.height),
|
|
1318
|
+
zeroY: On.value,
|
|
1319
|
+
unitW: Math.max(0, B.value)
|
|
1320
|
+
})), void 0, !0, 4) : d("", !0),
|
|
1321
|
+
W.value !== null && !X.value ? (h(), f("line", pe(ue({ key: 5 }, wr.value)), null, 16)) : d("", !0),
|
|
1322
|
+
p("rect", {
|
|
1323
|
+
x: 0,
|
|
1324
|
+
y: 0,
|
|
1325
|
+
width: Math.max(0, F.value.width),
|
|
1326
|
+
height: Math.max(0, F.value.height),
|
|
1327
|
+
fill: "transparent",
|
|
1328
|
+
style: m([{ "pointer-events": "all !important" }, { cursor: s.enableSelectionDrag ? X.value ? "grabbing" : "grab" : "default" }]),
|
|
1329
|
+
onMousedown: t[0] ||= (e) => X.value = !0,
|
|
1330
|
+
onMouseup: t[1] ||= (e) => X.value = !1,
|
|
1331
|
+
onMousemove: zn,
|
|
1332
|
+
onMouseleave: Bn
|
|
1333
|
+
}, null, 44, Ze),
|
|
1334
|
+
C.value && s.minimapCompact ? (h(), f(l, { key: 6 }, [
|
|
1335
|
+
p("rect", {
|
|
1336
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1337
|
+
x: qr.value,
|
|
1338
|
+
y: 0,
|
|
1339
|
+
width: $.value,
|
|
1340
|
+
height: F.value.height,
|
|
1341
|
+
fill: s.handleFill || N.value,
|
|
1342
|
+
stroke: s.handleBorderColor || s.textColor,
|
|
1343
|
+
"stroke-width": s.handleBorderWidth,
|
|
1344
|
+
rx: 3
|
|
1345
|
+
}, null, 8, Qe),
|
|
1346
|
+
s.handleType && s.handleType !== "empty" ? (h(), f("g", {
|
|
1347
|
+
key: 0,
|
|
1348
|
+
class: "compact-handle-icon",
|
|
1349
|
+
transform: `translate(${qr.value}, 0)`,
|
|
1350
|
+
style: { "pointer-events": "none" }
|
|
1351
|
+
}, [(h(), f("svg", {
|
|
1352
|
+
width: $.value,
|
|
1353
|
+
height: F.value.height,
|
|
1354
|
+
viewBox: "0 0 20 20",
|
|
1355
|
+
preserveAspectRatio: "xMidYMid meet"
|
|
1356
|
+
}, [s.handleType === "arrow" ? (h(), f("path", {
|
|
1357
|
+
key: 0,
|
|
1358
|
+
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",
|
|
1359
|
+
fill: N.value,
|
|
1360
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1361
|
+
"stroke-width": .618,
|
|
1362
|
+
"stroke-linejoin": "round",
|
|
1363
|
+
"stroke-linecap": "round"
|
|
1364
|
+
}, null, 8, tt)) : s.handleType === "chevron" ? (h(), f("path", {
|
|
1365
|
+
key: 1,
|
|
1366
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1367
|
+
fill: "none",
|
|
1368
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1369
|
+
"stroke-width": .618,
|
|
1370
|
+
"stroke-linejoin": "round",
|
|
1371
|
+
"stroke-linecap": "round"
|
|
1372
|
+
}, null, 8, nt)) : s.handleType === "grab" ? (h(), f("path", {
|
|
1373
|
+
key: 2,
|
|
1374
|
+
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",
|
|
1375
|
+
fill: s.handleIconColor || s.textColor,
|
|
1376
|
+
stroke: "none",
|
|
1377
|
+
opacity: "0.6"
|
|
1378
|
+
}, null, 8, rt)) : d("", !0)], 8, et))], 8, $e)) : d("", !0),
|
|
1379
|
+
p("rect", {
|
|
1380
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1381
|
+
x: Jr.value,
|
|
1382
|
+
y: 0,
|
|
1383
|
+
width: $.value,
|
|
1384
|
+
height: F.value.height,
|
|
1385
|
+
fill: s.handleFill || N.value,
|
|
1386
|
+
stroke: s.handleBorderColor || s.textColor,
|
|
1387
|
+
"stroke-width": s.handleBorderWidth,
|
|
1388
|
+
rx: 3
|
|
1389
|
+
}, null, 8, it),
|
|
1390
|
+
s.handleType && s.handleType !== "empty" ? (h(), f("g", {
|
|
1391
|
+
key: 1,
|
|
1392
|
+
class: "compact-handle-icon",
|
|
1393
|
+
transform: `translate(${Jr.value}, 0)`,
|
|
1394
|
+
style: { "pointer-events": "none" }
|
|
1395
|
+
}, [(h(), f("svg", {
|
|
1396
|
+
width: $.value,
|
|
1397
|
+
height: F.value.height,
|
|
1398
|
+
viewBox: "0 0 20 20",
|
|
1399
|
+
preserveAspectRatio: "xMidYMid meet"
|
|
1400
|
+
}, [s.handleType === "arrow" ? (h(), f("path", {
|
|
1401
|
+
key: 0,
|
|
1402
|
+
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",
|
|
1403
|
+
fill: N.value,
|
|
1404
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1405
|
+
"stroke-width": .618,
|
|
1406
|
+
"stroke-linejoin": "round",
|
|
1407
|
+
"stroke-linecap": "round"
|
|
1408
|
+
}, null, 8, st)) : s.handleType === "chevron" ? (h(), f("path", {
|
|
1409
|
+
key: 1,
|
|
1410
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1411
|
+
fill: "none",
|
|
1412
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1413
|
+
"stroke-width": .618,
|
|
1414
|
+
"stroke-linejoin": "round",
|
|
1415
|
+
"stroke-linecap": "round"
|
|
1416
|
+
}, null, 8, ct)) : s.handleType === "grab" ? (h(), f("path", {
|
|
1417
|
+
key: 2,
|
|
1418
|
+
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",
|
|
1419
|
+
fill: s.handleIconColor || s.textColor,
|
|
1420
|
+
stroke: "none",
|
|
1421
|
+
opacity: "0.6"
|
|
1422
|
+
}, null, 8, lt)) : d("", !0)], 8, ot))], 8, at)) : d("", !0)
|
|
1423
|
+
], 64)) : d("", !0),
|
|
1424
|
+
e.$slots.slotMap ? d("", !0) : (h(), f(l, { key: 7 }, [s.minimapMerged ? (h(), f("g", ut, [
|
|
1425
|
+
V.value && V.value.firstPlot && V.value.firstPlot.value !== null ? (h(), f("circle", {
|
|
1426
|
+
key: 0,
|
|
1427
|
+
cx: V.value.firstPlot.x,
|
|
1428
|
+
cy: V.value.firstPlot.y,
|
|
1429
|
+
"stroke-width": "0.5",
|
|
1430
|
+
stroke: N.value,
|
|
1431
|
+
r: "4",
|
|
1432
|
+
fill: s.minimapLineColor
|
|
1433
|
+
}, null, 8, dt)) : d("", !0),
|
|
1434
|
+
V.value && V.value.firstPlot && V.value.firstPlot.value !== null ? (h(), f("circle", {
|
|
1435
|
+
key: 1,
|
|
1436
|
+
cx: V.value.firstPlot.x,
|
|
1437
|
+
cy: V.value.firstPlot.y,
|
|
1438
|
+
r: 2,
|
|
1439
|
+
fill: N.value
|
|
1440
|
+
}, null, 8, ft)) : d("", !0),
|
|
1441
|
+
V.value && V.value.lastPlot && V.value.lastPlot.value !== null ? (h(), f("circle", {
|
|
1442
|
+
key: 2,
|
|
1443
|
+
cx: V.value.lastPlot.x,
|
|
1444
|
+
cy: V.value.lastPlot.y,
|
|
1445
|
+
"stroke-width": "0.5",
|
|
1446
|
+
stroke: N.value,
|
|
1447
|
+
r: "4",
|
|
1448
|
+
fill: s.minimapLineColor
|
|
1449
|
+
}, null, 8, pt)) : d("", !0),
|
|
1450
|
+
V.value && V.value.lastPlot && V.value.lastPlot.value !== null ? (h(), f("circle", {
|
|
1451
|
+
key: 3,
|
|
1452
|
+
cx: V.value.lastPlot.x,
|
|
1453
|
+
cy: V.value.lastPlot.y,
|
|
1454
|
+
r: "2",
|
|
1455
|
+
fill: N.value
|
|
1456
|
+
}, null, 8, mt)) : d("", !0)
|
|
1457
|
+
])) : (h(), f("g", ht, [(h(!0), f(l, null, _(H.value.filter((e) => e.type === "line"), (e, t) => (h(), f("g", { key: String(e.key) }, [
|
|
1458
|
+
e && e.hasSelection && e.selectionSet && e.isVisible ? (h(), f("path", {
|
|
1459
|
+
key: 0,
|
|
1460
|
+
d: `M ${e.selectionSet}`,
|
|
1461
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
|
|
1462
|
+
fill: "transparent",
|
|
1463
|
+
"stroke-width": "2",
|
|
1464
|
+
"stroke-linecap": "round",
|
|
1465
|
+
"stroke-linejoin": "round",
|
|
1466
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1467
|
+
}, null, 8, gt)) : d("", !0),
|
|
1468
|
+
e.isVisible && s.cutNullValues ? (h(!0), f(l, { key: 1 }, _(e.selectionMarkers, (t) => (h(), f("circle", {
|
|
1469
|
+
key: `sel-dot-${e.key}-${t.i}`,
|
|
1470
|
+
cx: t.x,
|
|
1471
|
+
cy: t.y,
|
|
1472
|
+
r: "2.5",
|
|
1473
|
+
fill: e.color,
|
|
1474
|
+
stroke: N.value,
|
|
1475
|
+
"stroke-width": "0.5"
|
|
1476
|
+
}, null, 8, _t))), 128)) : d("", !0),
|
|
1477
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (h(), f("circle", {
|
|
1478
|
+
key: 2,
|
|
1479
|
+
cx: e.firstPlot.x,
|
|
1480
|
+
cy: e.firstPlot.y,
|
|
1481
|
+
"stroke-width": "0.5",
|
|
1482
|
+
stroke: N.value,
|
|
1483
|
+
r: "4",
|
|
1484
|
+
fill: e.color
|
|
1485
|
+
}, null, 8, vt)) : d("", !0),
|
|
1486
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (h(), f("circle", {
|
|
1487
|
+
key: 3,
|
|
1488
|
+
cx: e.firstPlot.x,
|
|
1489
|
+
cy: e.firstPlot.y,
|
|
1490
|
+
r: "2",
|
|
1491
|
+
fill: N.value
|
|
1492
|
+
}, null, 8, yt)) : d("", !0),
|
|
1493
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (h(), f("circle", {
|
|
1494
|
+
key: 4,
|
|
1495
|
+
cx: e.lastPlot.x,
|
|
1496
|
+
cy: e.lastPlot.y,
|
|
1497
|
+
"stroke-width": "0.5",
|
|
1498
|
+
stroke: N.value,
|
|
1499
|
+
r: "4",
|
|
1500
|
+
fill: e.color
|
|
1501
|
+
}, null, 8, bt)) : d("", !0),
|
|
1502
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (h(), f("circle", {
|
|
1503
|
+
key: 5,
|
|
1504
|
+
cx: e.lastPlot.x,
|
|
1505
|
+
cy: e.lastPlot.y,
|
|
1506
|
+
r: "2",
|
|
1507
|
+
fill: N.value
|
|
1508
|
+
}, null, 8, xt)) : d("", !0)
|
|
1509
|
+
]))), 128)), (h(!0), f(l, null, _(H.value.filter((e) => e.type === "plot"), (e) => (h(), f("g", { key: String(e.key) }, [(h(!0), f(l, null, _(e.points, (t) => (h(), f("g", null, [e.isVisible && s.cutNullValues && t.value !== null ? (h(), f("circle", {
|
|
1510
|
+
key: `sel-plot-${e.key}-${t.i}`,
|
|
1511
|
+
cx: t.x,
|
|
1512
|
+
cy: t.y,
|
|
1513
|
+
r: "2.5",
|
|
1514
|
+
fill: e.color,
|
|
1515
|
+
stroke: N.value,
|
|
1516
|
+
"stroke-width": "0.5"
|
|
1517
|
+
}, null, 8, St)) : d("", !0)]))), 256))]))), 128))]))], 64))
|
|
1518
|
+
], 8, ke))])) : d("", !0),
|
|
1519
|
+
p("div", {
|
|
1520
|
+
class: "slider-track",
|
|
1521
|
+
style: m({ visibility: C.value && s.minimapCompact ? "hidden" : "visible" })
|
|
1522
|
+
}, null, 4),
|
|
1523
|
+
p("div", {
|
|
1524
|
+
class: fe({
|
|
1525
|
+
"range-highlight": !0,
|
|
1526
|
+
move: s.enableSelectionDrag
|
|
1527
|
+
}),
|
|
1528
|
+
onMousedown: t[2] ||= (e) => X.value = !0,
|
|
1529
|
+
onMouseup: t[3] ||= (e) => X.value = !1,
|
|
1530
|
+
style: m({
|
|
1531
|
+
...M.value,
|
|
1532
|
+
cursor: X.value ? "grabbing" : "grab",
|
|
1533
|
+
visibility: C.value && s.minimapCompact ? "hidden" : "visible"
|
|
1534
|
+
})
|
|
1535
|
+
}, null, 38),
|
|
1536
|
+
s.enableRangeHandles ? Se((h(), f("input", {
|
|
1537
|
+
key: 1,
|
|
1538
|
+
"aria-label": "range-handle-left",
|
|
1539
|
+
ref_key: "rangeStart",
|
|
1540
|
+
ref: Vn,
|
|
1541
|
+
type: "range",
|
|
1542
|
+
step: s.precision > 0 ? 1 / 10 ** s.precision : 1,
|
|
1543
|
+
class: fe({
|
|
1544
|
+
"range-left": !0,
|
|
1545
|
+
"range-handle": !0,
|
|
1546
|
+
"range-minimap": C.value && s.verticalHandles,
|
|
1547
|
+
"range-invisible": C.value && s.minimapCompact
|
|
1548
|
+
}),
|
|
1549
|
+
min: s.min,
|
|
1550
|
+
max: s.minimapCompact && C.value && !s.useValueRange ? Math.max(0, L.value - 1) : s.max,
|
|
1551
|
+
tabindex: C.value ? -1 : 0,
|
|
1552
|
+
"onUpdate:modelValue": t[4] ||= (e) => Mn.value = e,
|
|
1553
|
+
onFocus: t[5] ||= (e) => C.value && e.target.blur(),
|
|
1554
|
+
onInput: t[6] ||= (e) => Mn.value = e.target.valueAsNumber,
|
|
1555
|
+
onChange: A,
|
|
1556
|
+
onKeyup: Ce(A, ["enter"]),
|
|
1557
|
+
onBlur: A,
|
|
1558
|
+
onMouseenter: t[7] ||= (e) => xr("start"),
|
|
1559
|
+
onPointerup: A
|
|
1560
|
+
}, null, 42, Ct)), [[
|
|
1561
|
+
xe,
|
|
1562
|
+
Mn.value,
|
|
1563
|
+
void 0,
|
|
1564
|
+
{ number: !0 }
|
|
1565
|
+
]]) : d("", !0),
|
|
1566
|
+
s.enableRangeHandles ? Se((h(), f("input", {
|
|
1567
|
+
key: 2,
|
|
1568
|
+
"aria-label": "range-handle-right",
|
|
1569
|
+
ref_key: "rangeEnd",
|
|
1570
|
+
ref: Hn,
|
|
1571
|
+
type: "range",
|
|
1572
|
+
step: s.precision > 0 ? 1 / 10 ** s.precision : 1,
|
|
1573
|
+
class: fe({
|
|
1574
|
+
"range-right": !0,
|
|
1575
|
+
"range-handle": !0,
|
|
1576
|
+
"range-minimap": C.value && s.verticalHandles,
|
|
1577
|
+
"range-invisible": C.value && s.minimapCompact
|
|
1578
|
+
}),
|
|
1579
|
+
min: s.min,
|
|
1580
|
+
max: s.minimapCompact && C.value && !s.useValueRange ? Math.max(0, L.value - 1) : s.max,
|
|
1581
|
+
tabindex: C.value ? -1 : 0,
|
|
1582
|
+
onFocus: t[8] ||= (e) => C.value && e.target.blur(),
|
|
1583
|
+
"onUpdate:modelValue": t[9] ||= (e) => Nn.value = e,
|
|
1584
|
+
onInput: t[10] ||= (e) => Nn.value = e.target.valueAsNumber,
|
|
1585
|
+
onChange: A,
|
|
1586
|
+
onKeyup: Ce(A, ["enter"]),
|
|
1587
|
+
onBlur: A,
|
|
1588
|
+
onMouseenter: t[11] ||= (e) => xr("end"),
|
|
1589
|
+
onPointerup: A
|
|
1590
|
+
}, null, 42, wt)), [[
|
|
1591
|
+
xe,
|
|
1592
|
+
Nn.value,
|
|
1593
|
+
void 0,
|
|
1594
|
+
{ number: !0 }
|
|
1595
|
+
]]) : d("", !0),
|
|
1596
|
+
C.value && s.minimapCompact ? (h(), f("div", Tt, [(h(), f("svg", {
|
|
1597
|
+
xmlns: ye(ne),
|
|
1598
|
+
viewBox: `0 0 ${Math.max(0, F.value.width)} ${Math.max(0, F.value.height + 1)}`
|
|
1599
|
+
}, [p("rect", ue({
|
|
1600
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1601
|
+
x: qr.value,
|
|
1602
|
+
y: 0,
|
|
1603
|
+
width: $.value,
|
|
1604
|
+
height: F.value.height,
|
|
1605
|
+
fill: "transparent",
|
|
1606
|
+
stroke: "none"
|
|
1607
|
+
}, Lr.value, {
|
|
1608
|
+
onKeydown: t[12] ||= (e) => Ir("start", e),
|
|
1609
|
+
onMousedown: t[13] ||= we((e) => Wr("start", e), ["stop", "prevent"]),
|
|
1610
|
+
onClick: t[14] ||= we(() => {}, ["stop", "prevent"])
|
|
1611
|
+
}), null, 16, Dt), p("rect", ue({
|
|
1612
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1613
|
+
x: Jr.value,
|
|
1614
|
+
y: 0,
|
|
1615
|
+
width: $.value,
|
|
1616
|
+
height: F.value.height,
|
|
1617
|
+
fill: "transparent",
|
|
1618
|
+
stroke: "none",
|
|
1619
|
+
rx: 3
|
|
1620
|
+
}, Rr.value, {
|
|
1621
|
+
onKeydown: t[15] ||= (e) => Ir("end", e),
|
|
1622
|
+
onMousedown: t[16] ||= we((e) => Wr("end", e), ["stop", "prevent"]),
|
|
1623
|
+
onClick: t[17] ||= we(() => {}, ["stop", "prevent"])
|
|
1624
|
+
}), null, 16, Ot)], 8, Et))])) : d("", !0),
|
|
1625
|
+
Q.value.left ? (h(), f("div", {
|
|
1626
|
+
key: 4,
|
|
1627
|
+
ref_key: "tooltipLeft",
|
|
1628
|
+
ref: mr,
|
|
1629
|
+
class: fe({
|
|
1630
|
+
"range-tooltip": !0,
|
|
1631
|
+
"range-tooltip-visible": Z.value,
|
|
1632
|
+
"range-tooltip-arrow": M.value.arrowLeft && !s.verticalHandles,
|
|
1633
|
+
"range-tooltip-arrow-left": !M.value.arrowLeft && !s.verticalHandles
|
|
1634
|
+
}),
|
|
1635
|
+
style: m({
|
|
1636
|
+
left: M.value.tooltipLeft,
|
|
1637
|
+
color: ye(te)(s.selectColor),
|
|
1638
|
+
backgroundColor: s.selectColor,
|
|
1639
|
+
border: `1px solid ${N.value}`,
|
|
1640
|
+
zIndex: `${br.value + 4}`,
|
|
1641
|
+
visibility: Sr.value || Q.value.left === Q.value.right ? "hidden" : "visible",
|
|
1642
|
+
top: C.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1643
|
+
})
|
|
1644
|
+
}, ve(Q.value.left), 7)) : d("", !0),
|
|
1645
|
+
(Sr.value || Q.value.left === Q.value.right) && (Q.value.left || Q.value.right) ? (h(), f("div", {
|
|
1646
|
+
key: 5,
|
|
1647
|
+
ref: "tooltipMerge",
|
|
1648
|
+
class: fe({
|
|
1649
|
+
"range-tooltip": !0,
|
|
1650
|
+
"range-tooltip-visible": Z.value,
|
|
1651
|
+
"range-tooltip-arrow": !0,
|
|
1652
|
+
"range-tooltip-arrow-left": !M.value.arrowLeft && !s.verticalHandles,
|
|
1653
|
+
"range-tooltip-arrow-right": !M.value.arrowRight && !s.verticalHandles
|
|
1654
|
+
}),
|
|
1655
|
+
style: m({
|
|
1656
|
+
left: M.value.tooltipCenter,
|
|
1657
|
+
width: Cr.value.width + "px",
|
|
1658
|
+
color: ye(te)(s.selectColor),
|
|
1659
|
+
backgroundColor: s.selectColor,
|
|
1660
|
+
border: `1px solid ${N.value}`,
|
|
1661
|
+
zIndex: "4",
|
|
1662
|
+
top: C.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1663
|
+
})
|
|
1664
|
+
}, ve(Q.value.left === Q.value.right ? Q.value.left : `${Q.value.left} - ${Q.value.right}`), 7)) : d("", !0),
|
|
1665
|
+
Q.value.right ? (h(), f("div", {
|
|
1666
|
+
key: 6,
|
|
1667
|
+
ref_key: "tooltipRight",
|
|
1668
|
+
ref: hr,
|
|
1669
|
+
class: fe({
|
|
1670
|
+
"range-tooltip": !0,
|
|
1671
|
+
"range-tooltip-visible": Z.value,
|
|
1672
|
+
"range-tooltip-arrow": M.value.arrowRight && !s.verticalHandles,
|
|
1673
|
+
"range-tooltip-arrow-right": !M.value.arrowRight && !s.verticalHandles
|
|
1674
|
+
}),
|
|
1675
|
+
style: m({
|
|
1676
|
+
left: M.value.tooltipRight,
|
|
1677
|
+
color: ye(te)(s.selectColor),
|
|
1678
|
+
backgroundColor: s.selectColor,
|
|
1679
|
+
border: `1px solid ${N.value}`,
|
|
1680
|
+
zIndex: "4",
|
|
1681
|
+
visibility: Sr.value || Q.value.left === Q.value.right ? "hidden" : "visible",
|
|
1682
|
+
top: C.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1683
|
+
})
|
|
1684
|
+
}, ve(Q.value.right), 7)) : d("", !0)
|
|
1685
|
+
], 36)], 44, Te));
|
|
1686
|
+
}
|
|
1687
|
+
}, [["__scopeId", "data-v-86199147"]]);
|
|
1688
|
+
//#endregion
|
|
1689
|
+
export { At as t };
|