vue-data-ui 2.4.4 → 2.4.6
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-W6XO2WVI.cjs → Arrow-CLZKAoZX.cjs} +1 -1
- package/dist/{Arrow-AxsI-FAh.js → Arrow-FPrXmABn.js} +1 -1
- package/dist/{BaseIcon-BX3x6oa7.js → BaseIcon-D90GFGqy.js} +1 -1
- package/dist/{BaseIcon-BTn_oML7.cjs → BaseIcon-NmXFeTkE.cjs} +1 -1
- package/dist/{DataTable-RUQ1G_6L.cjs → DataTable-lNwyPkUV.cjs} +1 -1
- package/dist/{DataTable-BI1tjiA_.js → DataTable-sGuRDRal.js} +2 -2
- package/dist/{Legend-B86sMXn7.cjs → Legend-Bdl_1DJO.cjs} +1 -1
- package/dist/{Legend-CRMHjbGw.js → Legend-DOn6UaCZ.js} +1 -1
- package/dist/{PackageVersion-CowXQ4IM.cjs → PackageVersion-VHviFq0W.cjs} +1 -1
- package/dist/{PackageVersion-Clrfvyd8.js → PackageVersion-ldwwWp9S.js} +1 -1
- package/dist/PenAndPaper-D-dkYPgf.cjs +1 -0
- package/dist/PenAndPaper-DSz98f49.js +299 -0
- package/dist/{Shape-DYNtRer6.js → Shape-CL9-IFMq.js} +1 -1
- package/dist/{Shape-qK3MNdTg.cjs → Shape-CR3-qftC.cjs} +1 -1
- package/dist/{Slicer-DFPDip5U.js → Slicer-BcsAfmLx.js} +75 -73
- package/dist/Slicer-DvUS1T9M.cjs +1 -0
- package/dist/{Title-710895ks.js → Title-Bsbq2v6j.js} +1 -1
- package/dist/{Title-CUN1T6KC.cjs → Title-Doa_KqSJ.cjs} +1 -1
- package/dist/{Tooltip-BapDtYOM.cjs → Tooltip-BfjsUhFm.cjs} +1 -1
- package/dist/{Tooltip-CPlG_yQU.js → Tooltip-DV_iWmTl.js} +1 -1
- package/dist/{index-DCsPHn9C.js → index-49zKC_pb.js} +1 -1
- package/dist/{index-CcykRspI.cjs → index-BIGzKAQq.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DdSlLeTW.js → useNestedProp-D1a8xzOZ.js} +1 -1
- package/dist/{useNestedProp-XtPlFP9O.cjs → useNestedProp-zN3-B_1z.cjs} +1 -1
- package/dist/{usePrinter-BcE45wW6.cjs → usePrinter-CuZzu5vy.cjs} +1 -1
- package/dist/{usePrinter-siG3sKWo.js → usePrinter-fXMN7kAV.js} +1 -1
- package/dist/{vue-data-ui-D_MTGc8j.js → vue-data-ui-Bn5_gi1g.js} +58 -58
- package/dist/{vue-data-ui-C0o1kZzC.cjs → vue-data-ui-mpBjz9RX.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C298Bf3V.cjs → vue-ui-3d-bar-BAPatZXD.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-BdzWvy4d.js → vue-ui-3d-bar-BJSorf8P.js} +9 -9
- package/dist/{vue-ui-accordion-B7PTyFVk.cjs → vue-ui-accordion-Dao-6A6Q.cjs} +1 -1
- package/dist/{vue-ui-accordion-D4Er5Dy5.js → vue-ui-accordion-RGtr28JI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CHEdFQb7.js → vue-ui-age-pyramid--LgXr3QI.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BIcB5vtU.cjs → vue-ui-age-pyramid-DS8bW0qo.cjs} +1 -1
- package/dist/{vue-ui-annotator-CqM_1HlB.js → vue-ui-annotator-DDp3s2Pq.js} +1 -1
- package/dist/{vue-ui-annotator-eGtZcHeb.cjs → vue-ui-annotator-fMW4he5T.cjs} +1 -1
- package/dist/{vue-ui-bullet-DBk50kIe.js → vue-ui-bullet-BhdTa7u3.js} +8 -8
- package/dist/{vue-ui-bullet-DURgZGgp.cjs → vue-ui-bullet-Ciw0R5nc.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CP4Z-29b.cjs → vue-ui-candlestick-B1l0aBq_.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Bo41qkGe.js → vue-ui-candlestick-Bf-YTcON.js} +11 -11
- package/dist/{vue-ui-carousel-table-CkNOqa9q.js → vue-ui-carousel-table-CYCpVrOn.js} +4 -4
- package/dist/{vue-ui-carousel-table-lMqx64wd.cjs → vue-ui-carousel-table-DXwE1huQ.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CNWq-epB.js → vue-ui-chestnut-BsMLyk2U.js} +8 -8
- package/dist/{vue-ui-chestnut-qxzF2ND7.cjs → vue-ui-chestnut-D3uy5gQJ.cjs} +1 -1
- package/dist/{vue-ui-cursor-BEv39HVY.cjs → vue-ui-cursor-DKTzq5Rn.cjs} +1 -1
- package/dist/{vue-ui-cursor-B4m30Gqz.js → vue-ui-cursor-O0E8FmMB.js} +2 -2
- package/dist/{vue-ui-dashboard-DnoXstlp.cjs → vue-ui-dashboard-Cif9KLNp.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BL9IgDDx.js → vue-ui-dashboard-DTQ6jkKX.js} +2 -2
- package/dist/{vue-ui-digits-CVPDJ6tl.js → vue-ui-digits-B6kqi621.js} +2 -2
- package/dist/{vue-ui-digits-D1RaU4V-.cjs → vue-ui-digits-Dd_-F0NM.cjs} +1 -1
- package/dist/{vue-ui-donut-CMC92CXL.cjs → vue-ui-donut-BjzOSsXF.cjs} +1 -1
- package/dist/{vue-ui-donut-C65SAJKb.js → vue-ui-donut-C8vdLwIN.js} +11 -11
- package/dist/{vue-ui-donut-evolution-7gIM4bVk.cjs → vue-ui-donut-evolution-B0HSRlIg.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BFbBlmBx.js → vue-ui-donut-evolution-CmdF6deB.js} +11 -11
- package/dist/{vue-ui-dumbbell-OCo67ZKp.cjs → vue-ui-dumbbell-CEE76a-m.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BnxRfvv0.js → vue-ui-dumbbell-DUca_lht.js} +10 -10
- package/dist/{vue-ui-flow-Cra_F-tK.js → vue-ui-flow-Cvu1EVCF.js} +9 -9
- package/dist/{vue-ui-flow-BPnpYrzb.cjs → vue-ui-flow-DmhIaigU.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DlJ7v0aD.js → vue-ui-galaxy-C3OsM7sZ.js} +11 -11
- package/dist/{vue-ui-galaxy-3zTk9Pr1.cjs → vue-ui-galaxy-Cu6CWFDj.cjs} +1 -1
- package/dist/{vue-ui-gauge-DcUNJZI1.cjs → vue-ui-gauge-BzjbsaR8.cjs} +1 -1
- package/dist/{vue-ui-gauge-CsqVvNxE.js → vue-ui-gauge-DbKQTx3Q.js} +7 -7
- package/dist/{vue-ui-gizmo-Peyy8li7.js → vue-ui-gizmo-CwcCktOd.js} +3 -3
- package/dist/{vue-ui-gizmo-BkkLoCyx.cjs → vue-ui-gizmo-D6kY6rq2.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DYb831An.cjs → vue-ui-heatmap-DoJeKoTE.cjs} +1 -1
- package/dist/{vue-ui-heatmap-i4HFM04D.js → vue-ui-heatmap-z23AgiZJ.js} +10 -10
- package/dist/{vue-ui-kpi-gSKVVqZg.js → vue-ui-kpi-CkAs4UNa.js} +3 -3
- package/dist/{vue-ui-kpi-CCrdcv3r.cjs → vue-ui-kpi-CwrOzJTf.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CqutMcQI.cjs → vue-ui-mini-loader-BG5f652Q.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-D7Jk1LJb.js → vue-ui-mini-loader-BL1hWVCl.js} +2 -2
- package/dist/{vue-ui-molecule-CwUObXAx.cjs → vue-ui-molecule-DZ5t0b99.cjs} +1 -1
- package/dist/{vue-ui-molecule-CgdepnhM.js → vue-ui-molecule-DwjLYP7w.js} +11 -11
- package/dist/{vue-ui-mood-radar-Bxro4962.js → vue-ui-mood-radar-DMyIiep_.js} +11 -11
- package/dist/{vue-ui-mood-radar-RQFKS7Br.cjs → vue-ui-mood-radar-DhoBjfBA.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-B7dXBejH.js → vue-ui-nested-donuts-BSraS34g.js} +11 -11
- package/dist/{vue-ui-nested-donuts-D8ZGqIGC.cjs → vue-ui-nested-donuts-DU3mpzzN.cjs} +1 -1
- package/dist/{vue-ui-onion-Dtt0kw8E.cjs → vue-ui-onion-B2evf74Q.cjs} +1 -1
- package/dist/{vue-ui-onion-i52wztm0.js → vue-ui-onion-BGK7q1Zm.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DNK0BrBy.cjs → vue-ui-parallel-coordinate-plot-CoZ2NNT-.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DUssrm08.js → vue-ui-parallel-coordinate-plot-CtbHbaMU.js} +12 -12
- package/dist/{vue-ui-quadrant-a_I5E71f.cjs → vue-ui-quadrant-1zd4EcHN.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BORPtgQO.js → vue-ui-quadrant-b00dtEbu.js} +12 -12
- package/dist/{vue-ui-quick-chart-BpPDfK78.cjs → vue-ui-quick-chart-C2tGQ9jZ.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-yb1FzVdt.js → vue-ui-quick-chart-C_aOAlYK.js} +9 -9
- package/dist/{vue-ui-radar-CoCbl19A.js → vue-ui-radar-CEmwdc5R.js} +12 -12
- package/dist/{vue-ui-radar-DZMngiqq.cjs → vue-ui-radar-CzPDR57N.cjs} +1 -1
- package/dist/{vue-ui-rating-D-zwuvLK.js → vue-ui-rating-Bcw4NMqy.js} +2 -2
- package/dist/{vue-ui-rating-nTJ8DDhG.cjs → vue-ui-rating-DC9ED1T9.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CW9qozhJ.js → vue-ui-relation-circle-CtoP92Nm.js} +7 -7
- package/dist/{vue-ui-relation-circle-Wj_yrVJc.cjs → vue-ui-relation-circle-S0rcVtyt.cjs} +1 -1
- package/dist/{vue-ui-rings-Bx2GEh6d.js → vue-ui-rings-CkWZ736Y.js} +11 -11
- package/dist/{vue-ui-rings-BZaZIGEz.cjs → vue-ui-rings-OZVey4XI.cjs} +1 -1
- package/dist/{vue-ui-scatter-C-i1NZgz.cjs → vue-ui-scatter-BJlIxqvN.cjs} +1 -1
- package/dist/{vue-ui-scatter-BARiPzro.js → vue-ui-scatter-D5revDjR.js} +12 -12
- package/dist/{vue-ui-screenshot-CuiJqlfo.js → vue-ui-screenshot-BnxlJEDM.js} +1 -1
- package/dist/{vue-ui-screenshot-CwOoftGV.cjs → vue-ui-screenshot-CBqgcSp4.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DNuwx6_y.js → vue-ui-skeleton-CWI6cZZA.js} +3 -3
- package/dist/{vue-ui-skeleton-DpfJbsNA.cjs → vue-ui-skeleton-CoPAETjt.cjs} +1 -1
- package/dist/{vue-ui-smiley-BnX27B0k.js → vue-ui-smiley-E5BtjNd0.js} +2 -2
- package/dist/{vue-ui-smiley-DGE9NFBY.cjs → vue-ui-smiley-Zgsb3QsJ.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-aW-de-rX.cjs → vue-ui-spark-trend-E_r6XBda.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CgCLrMox.js → vue-ui-spark-trend-_fM0ASpS.js} +5 -5
- package/dist/{vue-ui-sparkbar-BXku33sq.js → vue-ui-sparkbar-CzLduXwD.js} +4 -4
- package/dist/{vue-ui-sparkbar-BLUXUlTY.cjs → vue-ui-sparkbar-DrDGzkxU.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Doi0iu0L.js → vue-ui-sparkgauge-CQEUdjHu.js} +4 -4
- package/dist/{vue-ui-sparkgauge-RTiKvSMp.cjs → vue-ui-sparkgauge-DnlFkJht.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BnMvXlAP.js → vue-ui-sparkhistogram-WU0X44HO.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-C6AgJH1C.cjs → vue-ui-sparkhistogram-nfep88pb.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DI7fq_MR.js → vue-ui-sparkline-C5pHShn8.js} +4 -4
- package/dist/{vue-ui-sparkline-DpVCQ6W9.cjs → vue-ui-sparkline-CTlY68K-.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-oNnE5z1C.js → vue-ui-sparkstackbar-CD1igCtu.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-Bvuq2sLW.cjs → vue-ui-sparkstackbar-DVNWhfXJ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-6g7b3yyu.js → vue-ui-stackbar-B3PJuAxR.js} +12 -12
- package/dist/{vue-ui-stackbar-aWJDGIKV.cjs → vue-ui-stackbar-B8XzJVfQ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-GdjjVxMN.cjs → vue-ui-strip-plot-BU0Ze6mB.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BFM8HIM8.js → vue-ui-strip-plot-D6NvVi8T.js} +11 -11
- package/dist/{vue-ui-table-XOPmDCOB.cjs → vue-ui-table-BQD6a_aJ.cjs} +1 -1
- package/dist/{vue-ui-table-Cw4Yz-IE.js → vue-ui-table-BltUTp7w.js} +1 -1
- package/dist/{vue-ui-table-heatmap-DeRCR8l6.js → vue-ui-table-heatmap-Ci0x1CNV.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Bh48bMuU.cjs → vue-ui-table-heatmap-DNQX2ssm.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C25qj1w_.cjs → vue-ui-table-sparkline-BBmpe-6D.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-w3H-od91.js → vue-ui-table-sparkline-BnWCkMFe.js} +5 -5
- package/dist/{vue-ui-thermometer-BySEVhT8.js → vue-ui-thermometer-39qz-oq4.js} +7 -7
- package/dist/{vue-ui-thermometer-DZrusaGY.cjs → vue-ui-thermometer-BENJ73Pb.cjs} +1 -1
- package/dist/{vue-ui-timer-1p6J6hTn.cjs → vue-ui-timer-8_HQQdrC.cjs} +1 -1
- package/dist/{vue-ui-timer-BN-9a2lj.js → vue-ui-timer-CSo9NnGB.js} +5 -5
- package/dist/{vue-ui-tiremarks-EzYdOMyf.js → vue-ui-tiremarks-CkfxWhpz.js} +7 -7
- package/dist/{vue-ui-tiremarks-CvIJeWKE.cjs → vue-ui-tiremarks-Co5YUDDA.cjs} +1 -1
- package/dist/{vue-ui-treemap-CzNOr1iR.cjs → vue-ui-treemap-DZkCQEk5.cjs} +1 -1
- package/dist/{vue-ui-treemap-Da0f6vaF.js → vue-ui-treemap-I2YafkrE.js} +11 -11
- package/dist/{vue-ui-vertical-bar-D1cBfu5p.js → vue-ui-vertical-bar-Dz3M8sEI.js} +11 -11
- package/dist/{vue-ui-vertical-bar-B9shdfqo.cjs → vue-ui-vertical-bar-ul14mUdW.cjs} +1 -1
- package/dist/{vue-ui-waffle-DM2LsEP7.js → vue-ui-waffle-C5faN9Gl.js} +11 -11
- package/dist/{vue-ui-waffle-Cg-7Fazv.cjs → vue-ui-waffle-CL5knSlv.cjs} +1 -1
- package/dist/{vue-ui-wheel-B9cmixxi.js → vue-ui-wheel-BsEaNHzC.js} +7 -7
- package/dist/{vue-ui-wheel-C-JukdTy.cjs → vue-ui-wheel-Ct_1Npyv.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BLMWYOPy.cjs → vue-ui-word-cloud-81r_XQl3.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Baz7RXN2.js → vue-ui-word-cloud-Bf6l5rNU.js} +10 -10
- package/dist/{vue-ui-xy-BHeSkJQ3.cjs → vue-ui-xy-BaFVUMY0.cjs} +1 -1
- package/dist/{vue-ui-xy-DVnzVSqE.js → vue-ui-xy-CASWydww.js} +14 -14
- package/dist/{vue-ui-xy-canvas-DAd-B98z.cjs → vue-ui-xy-canvas-D3xs7lt5.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-A7PKnWBs.js → vue-ui-xy-canvas-DfO47Q2y.js} +11 -11
- package/package.json +1 -1
- package/dist/PenAndPaper-BQzgk5kO.js +0 -269
- package/dist/PenAndPaper-DBSxk9Xk.cjs +0 -1
- package/dist/Slicer-NlxLkUso.cjs +0 -1
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { computed as T, ref as a, watch as I, openBlock as c, createElementBlock as i, normalizeStyle as k, createElementVNode as d, createVNode as h, onMounted as W, nextTick as Y, onBeforeUnmount as A, Fragment as P, normalizeClass as g, withDirectives as H, vModelText as O, createCommentVNode as R, unref as j, withModifiers as z, renderList as q } from "vue";
|
|
2
|
+
import { F as G, l as J, X as K } from "./index-49zKC_pb.js";
|
|
3
|
+
import w from "./BaseIcon-D90GFGqy.js";
|
|
4
|
+
import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const Q = ["value"], Z = { class: "icon" }, ee = {
|
|
6
|
+
__name: "ColorPicker",
|
|
7
|
+
props: {
|
|
8
|
+
value: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: "#ffffff"
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "50px"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:value"],
|
|
18
|
+
setup(n, { emit: $ }) {
|
|
19
|
+
const r = n, u = T(() => ({
|
|
20
|
+
backgroundColor: r.value,
|
|
21
|
+
width: "100%",
|
|
22
|
+
height: "100%",
|
|
23
|
+
cursor: "pointer"
|
|
24
|
+
})), s = a(null), x = () => {
|
|
25
|
+
var l;
|
|
26
|
+
(l = s.value) == null || l.click();
|
|
27
|
+
}, v = (l) => {
|
|
28
|
+
const f = l.target.value;
|
|
29
|
+
$("update:value", f);
|
|
30
|
+
}, p = T(() => G(r.value));
|
|
31
|
+
return I(
|
|
32
|
+
() => r.value,
|
|
33
|
+
(l) => {
|
|
34
|
+
s.value.value = l;
|
|
35
|
+
}
|
|
36
|
+
), (l, f) => (c(), i("div", {
|
|
37
|
+
style: k(u.value),
|
|
38
|
+
class: "color-picker-wrapper",
|
|
39
|
+
onClick: x
|
|
40
|
+
}, [
|
|
41
|
+
d("input", {
|
|
42
|
+
ref_key: "colorInput",
|
|
43
|
+
ref: s,
|
|
44
|
+
type: "color",
|
|
45
|
+
value: n.value,
|
|
46
|
+
class: "hidden-input",
|
|
47
|
+
onInput: v
|
|
48
|
+
}, null, 40, Q),
|
|
49
|
+
d("div", Z, [
|
|
50
|
+
h(w, {
|
|
51
|
+
name: "palette",
|
|
52
|
+
stroke: p.value,
|
|
53
|
+
size: 22
|
|
54
|
+
}, null, 8, ["stroke"])
|
|
55
|
+
])
|
|
56
|
+
], 4));
|
|
57
|
+
}
|
|
58
|
+
}, te = /* @__PURE__ */ X(ee, [["__scopeId", "data-v-d3f01240"]]), oe = {
|
|
59
|
+
class: /* @__PURE__ */ g({
|
|
60
|
+
"vue-ui-pen-and-paper-action": !0
|
|
61
|
+
}),
|
|
62
|
+
style: { padding: "0 !important" }
|
|
63
|
+
}, ne = ["disabled"], le = ["xmlns", "viewBox", "onTouchstart", "onTouchmove"], ae = ["cx", "cy", "r", "fill"], re = ["d", "stroke", "stroke-width"], ue = ["d", "stroke", "stroke-width"], se = {
|
|
64
|
+
__name: "PenAndPaper",
|
|
65
|
+
props: {
|
|
66
|
+
parent: {
|
|
67
|
+
type: HTMLElement
|
|
68
|
+
},
|
|
69
|
+
backgroundColor: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: "#FFFFFF"
|
|
72
|
+
},
|
|
73
|
+
color: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: "#2D353C"
|
|
76
|
+
},
|
|
77
|
+
active: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !1
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
emits: ["close"],
|
|
83
|
+
setup(n, { emit: $ }) {
|
|
84
|
+
const r = n, u = a([]), s = a([]), x = a("0 0 0 0"), v = a(r.color), p = a(1), l = T(() => J(r.color, 0.6));
|
|
85
|
+
function f({ width: t, height: o }) {
|
|
86
|
+
x.value = `0 0 ${t} ${o}`;
|
|
87
|
+
}
|
|
88
|
+
const B = a(null);
|
|
89
|
+
W(() => {
|
|
90
|
+
Y(() => {
|
|
91
|
+
if (r.parent) {
|
|
92
|
+
B.value = new ResizeObserver((e) => {
|
|
93
|
+
for (const b of e) {
|
|
94
|
+
const { width: N, height: U } = b.contentRect;
|
|
95
|
+
f({ width: N, height: U });
|
|
96
|
+
}
|
|
97
|
+
}), B.value.observe(r.parent);
|
|
98
|
+
const { width: t, height: o } = r.parent.getBoundingClientRect();
|
|
99
|
+
f({ width: t, height: o });
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}), A(() => {
|
|
103
|
+
B.value && B.value.disconnect();
|
|
104
|
+
}), I(
|
|
105
|
+
() => r.parent,
|
|
106
|
+
(t) => {
|
|
107
|
+
if (!t) return;
|
|
108
|
+
const { width: o, height: e } = r.parent.getBoundingClientRect();
|
|
109
|
+
f({ width: o, height: e });
|
|
110
|
+
},
|
|
111
|
+
{ immediate: !0 }
|
|
112
|
+
);
|
|
113
|
+
const m = a(!1), y = a(""), C = a(null);
|
|
114
|
+
function F(t) {
|
|
115
|
+
if (!C.value) return;
|
|
116
|
+
m.value = !0;
|
|
117
|
+
const { x: o, y: e } = D(t);
|
|
118
|
+
y.value = `M ${o} ${e}`;
|
|
119
|
+
}
|
|
120
|
+
function S(t) {
|
|
121
|
+
if (!m.value || !C.value) return;
|
|
122
|
+
const { x: o, y: e } = D(t);
|
|
123
|
+
y.value += ` ${o} ${e}`;
|
|
124
|
+
}
|
|
125
|
+
function M() {
|
|
126
|
+
m.value && (u.value.push({
|
|
127
|
+
strokeWidth: p.value,
|
|
128
|
+
path: y.value,
|
|
129
|
+
color: v.value
|
|
130
|
+
}), s.value = [], y.value = ""), m.value = !1;
|
|
131
|
+
}
|
|
132
|
+
function D(t) {
|
|
133
|
+
if (!C.value) return { x: 0, y: 0 };
|
|
134
|
+
const o = C.value.getBoundingClientRect();
|
|
135
|
+
let e, b;
|
|
136
|
+
return t.touches && t.touches.length ? (e = t.touches[0].clientX, b = t.touches[0].clientY) : (e = t.clientX, b = t.clientY), {
|
|
137
|
+
x: e - o.left,
|
|
138
|
+
y: b - o.top
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
a(!1);
|
|
142
|
+
function _() {
|
|
143
|
+
if (u.value.length > 0) {
|
|
144
|
+
const t = u.value.pop();
|
|
145
|
+
s.value.push(t);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
function E() {
|
|
149
|
+
if (s.value.length > 0) {
|
|
150
|
+
const t = s.value.pop();
|
|
151
|
+
u.value.push(t);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function L() {
|
|
155
|
+
u.value = [], s.value = [];
|
|
156
|
+
}
|
|
157
|
+
const V = a(null);
|
|
158
|
+
return (t, o) => (c(), i(P, null, [
|
|
159
|
+
n.active ? (c(), i("div", {
|
|
160
|
+
key: 0,
|
|
161
|
+
"data-html2canvas-ignore": "",
|
|
162
|
+
class: g({
|
|
163
|
+
"vue-ui-pen-and-paper-actions": !0,
|
|
164
|
+
visible: n.active
|
|
165
|
+
})
|
|
166
|
+
}, [
|
|
167
|
+
d("button", {
|
|
168
|
+
class: "vue-ui-pen-and-paper-action",
|
|
169
|
+
style: k({
|
|
170
|
+
backgroundColor: n.backgroundColor,
|
|
171
|
+
border: `1px solid ${l.value}`
|
|
172
|
+
}),
|
|
173
|
+
onClick: o[0] || (o[0] = (e) => $("close"))
|
|
174
|
+
}, [
|
|
175
|
+
h(w, {
|
|
176
|
+
name: "close",
|
|
177
|
+
stroke: n.color
|
|
178
|
+
}, null, 8, ["stroke"])
|
|
179
|
+
], 4),
|
|
180
|
+
d("button", oe, [
|
|
181
|
+
h(te, {
|
|
182
|
+
value: v.value,
|
|
183
|
+
"onUpdate:value": o[1] || (o[1] = (e) => v.value = e)
|
|
184
|
+
}, null, 8, ["value"])
|
|
185
|
+
]),
|
|
186
|
+
d("button", {
|
|
187
|
+
class: g({
|
|
188
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
189
|
+
"vue-ui-pen-and-paper-action-disabled": !u.value.length
|
|
190
|
+
}),
|
|
191
|
+
disabled: !u.value.length,
|
|
192
|
+
style: k({
|
|
193
|
+
backgroundColor: n.backgroundColor,
|
|
194
|
+
border: `1px solid ${l.value}`
|
|
195
|
+
}),
|
|
196
|
+
onClick: _
|
|
197
|
+
}, [
|
|
198
|
+
h(w, {
|
|
199
|
+
name: "restart",
|
|
200
|
+
stroke: n.color
|
|
201
|
+
}, null, 8, ["stroke"])
|
|
202
|
+
], 14, ne),
|
|
203
|
+
d("button", {
|
|
204
|
+
class: g({
|
|
205
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
206
|
+
"vue-ui-pen-and-paper-action-disabled": !s.value.length
|
|
207
|
+
}),
|
|
208
|
+
style: k({
|
|
209
|
+
backgroundColor: n.backgroundColor,
|
|
210
|
+
border: `1px solid ${l.value}`
|
|
211
|
+
}),
|
|
212
|
+
onClick: E
|
|
213
|
+
}, [
|
|
214
|
+
h(w, {
|
|
215
|
+
name: "restart",
|
|
216
|
+
stroke: n.color,
|
|
217
|
+
style: { transform: "scaleX(-1)" }
|
|
218
|
+
}, null, 8, ["stroke"])
|
|
219
|
+
], 6),
|
|
220
|
+
d("button", {
|
|
221
|
+
class: g([{
|
|
222
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
223
|
+
"vue-ui-pen-and-paper-action-disabled": !u.value.length
|
|
224
|
+
}, "vue-ui-pen-and-paper-action"]),
|
|
225
|
+
style: k({
|
|
226
|
+
backgroundColor: n.backgroundColor,
|
|
227
|
+
border: `1px solid ${l.value}`
|
|
228
|
+
}),
|
|
229
|
+
onClick: L
|
|
230
|
+
}, [
|
|
231
|
+
h(w, {
|
|
232
|
+
name: "trash",
|
|
233
|
+
stroke: n.color
|
|
234
|
+
}, null, 8, ["stroke"])
|
|
235
|
+
], 6),
|
|
236
|
+
H(d("input", {
|
|
237
|
+
ref_key: "range",
|
|
238
|
+
ref: V,
|
|
239
|
+
type: "range",
|
|
240
|
+
class: "vertical-range",
|
|
241
|
+
min: 0.5,
|
|
242
|
+
max: 12,
|
|
243
|
+
step: 0.1,
|
|
244
|
+
"onUpdate:modelValue": o[2] || (o[2] = (e) => p.value = e),
|
|
245
|
+
style: k({
|
|
246
|
+
accentColor: n.color
|
|
247
|
+
})
|
|
248
|
+
}, null, 4), [
|
|
249
|
+
[O, p.value]
|
|
250
|
+
])
|
|
251
|
+
], 2)) : R("", !0),
|
|
252
|
+
(c(), i("svg", {
|
|
253
|
+
ref_key: "svgElement",
|
|
254
|
+
ref: C,
|
|
255
|
+
xmlns: j(K),
|
|
256
|
+
viewBox: x.value,
|
|
257
|
+
class: g({
|
|
258
|
+
"vue-ui-pen-and-paper": !0,
|
|
259
|
+
inactive: !n.active
|
|
260
|
+
}),
|
|
261
|
+
onMousedown: F,
|
|
262
|
+
onMousemove: S,
|
|
263
|
+
onMouseup: M,
|
|
264
|
+
onMouseleave: M,
|
|
265
|
+
onTouchstart: z(F, ["prevent"]),
|
|
266
|
+
onTouchmove: z(S, ["prevent"]),
|
|
267
|
+
onTouchend: M
|
|
268
|
+
}, [
|
|
269
|
+
(c(!0), i(P, null, q(u.value, (e) => (c(), i(P, { key: e }, [
|
|
270
|
+
e.path.replace("M", "").split(" ").length === 2 ? (c(), i("circle", {
|
|
271
|
+
key: 0,
|
|
272
|
+
cx: e.path.replace("M", "").split(" ")[0],
|
|
273
|
+
cy: e.path.replace("M", "").split(" ")[1],
|
|
274
|
+
r: e.strokeWidth / 2,
|
|
275
|
+
fill: e.color
|
|
276
|
+
}, null, 8, ae)) : (c(), i("path", {
|
|
277
|
+
key: 1,
|
|
278
|
+
class: "vue-ui-pen-and-paper-path",
|
|
279
|
+
d: e.path,
|
|
280
|
+
stroke: e.color,
|
|
281
|
+
"stroke-width": e.strokeWidth,
|
|
282
|
+
fill: "none"
|
|
283
|
+
}, null, 8, re))
|
|
284
|
+
], 64))), 128)),
|
|
285
|
+
m.value ? (c(), i("path", {
|
|
286
|
+
key: 0,
|
|
287
|
+
class: "vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",
|
|
288
|
+
d: y.value,
|
|
289
|
+
stroke: v.value,
|
|
290
|
+
"stroke-width": p.value * 1.1,
|
|
291
|
+
fill: "none"
|
|
292
|
+
}, null, 8, ue)) : R("", !0)
|
|
293
|
+
], 42, le))
|
|
294
|
+
], 64));
|
|
295
|
+
}
|
|
296
|
+
}, pe = /* @__PURE__ */ X(se, [["__scopeId", "data-v-bc0bf6f6"]]);
|
|
297
|
+
export {
|
|
298
|
+
pe as P
|
|
299
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as u, openBlock as l, createElementBlock as i, createCommentVNode as a } from "vue";
|
|
2
|
-
import { U as p, O as f } from "./index-
|
|
2
|
+
import { U as p, O as f } from "./index-49zKC_pb.js";
|
|
3
3
|
const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], c = ["d", "fill", "stroke", "stroke-width"], g = ["points", "fill", "stroke", "stroke-width"], $ = {
|
|
4
4
|
__name: "Shape",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./index-BIGzKAQq.cjs"),c=["cx","cy","r","fill","stroke","stroke-width"],m=["d","fill","stroke","stroke-width"],v=["points","fill","stroke","stroke-width"],p={__name:"Shape",props:{color:String,isSelected:{type:Boolean,default:!1},limit:{type:Number,default:3},plot:Object,radius:Number,shape:String,stroke:String,strokeWidth:Number,zoom:{type:Number,default:1.3}},emits:["mouseover","mouseout","click"],setup(n,{emit:r}){const t=n;function d(u){return{circle:{points:1,rotation:0},line:{points:2,rotation:0},triangle:{points:3,rotation:.52},square:{points:4,rotation:.783},diamond:{points:4,rotation:0},pentagon:{points:5,rotation:.95},hexagon:{points:6,rotation:0}}[u]}const s=e.computed(()=>d(t.shape)),i=e.computed(()=>t.shape!=="star"?null:a.createStar({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1)})),k=e.computed(()=>a.createPolygonPath({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1),sides:s.value.points,rotation:s.value.rotation}).path);return(u,o)=>(e.openBlock(),e.createElementBlock("g",null,[s.value&&s.value.points===1?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:n.plot.x,cy:n.plot.y,r:t.radius*(t.isSelected?t.zoom:1),fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[0]||(o[0]=l=>r("mouseover")),onMouseout:o[1]||(o[1]=l=>r("mouseout")),onClick:o[2]||(o[2]=l=>r("click"))},null,40,c)):e.createCommentVNode("",!0),s.value&&s.value.points>=n.limit?(e.openBlock(),e.createElementBlock("path",{key:1,d:k.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[3]||(o[3]=l=>r("mouseover")),onMouseout:o[4]||(o[4]=l=>r("mouseout")),onClick:o[5]||(o[5]=l=>r("click"))},null,40,m)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("polygon",{key:2,points:i.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[6]||(o[6]=l=>r("mouseover")),onMouseout:o[7]||(o[7]=l=>r("mouseout")),onClick:o[8]||(o[8]=l=>r("click"))},null,40,v)):e.createCommentVNode("",!0)]))}};exports._sfc_main=p;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useCssVars as K, ref as f, computed as d, watch as L, onMounted as Y, openBlock as v, createElementBlock as h, createElementVNode as i, normalizeStyle as S, createVNode as ee, renderSlot as te, createCommentVNode as k, unref as le, Fragment as
|
|
2
|
-
import ne from "./BaseIcon-
|
|
1
|
+
import { useCssVars as K, ref as f, computed as d, watch as L, onMounted as Y, openBlock as v, createElementBlock as h, createElementVNode as i, normalizeStyle as S, createVNode as ee, renderSlot as te, createCommentVNode as k, unref as le, Fragment as R, renderList as z, withDirectives as E, vModelText as P, toDisplayString as A, pushScopeId as ae, popScopeId as ie } from "vue";
|
|
2
|
+
import ne from "./BaseIcon-D90GFGqy.js";
|
|
3
3
|
import { t as oe, u as ue } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { c as re, R as V, Q as B, X as se } from "./index-
|
|
4
|
+
import { c as re, R as V, Q as B, X as se } from "./index-49zKC_pb.js";
|
|
5
5
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const O = (
|
|
6
|
+
const O = (t) => (ae("data-v-c184b7d6"), t = t(), ie(), t), me = {
|
|
7
7
|
"data-html2canvas-ignore": "",
|
|
8
8
|
style: { padding: "0 24px" }
|
|
9
9
|
}, ce = {
|
|
@@ -19,7 +19,7 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
19
19
|
}, pe = ["xmlns", "viewBox"], fe = ["id"], ye = ["stop-color"], ge = /* @__PURE__ */ O(() => /* @__PURE__ */ i("stop", {
|
|
20
20
|
offset: "100%",
|
|
21
21
|
"stop-color": "transparent"
|
|
22
|
-
}, null, -1)), xe = ["d", "stroke"], be = ["x", "width", "height", "fill", "rx"], Se = ["d", "fill"], ke = ["x", "width", "height", "fill"], Ce = ["x", "width", "height", "fill"], we = ["d", "fill"], Ne = ["d", "stroke"], $e = ["cx", "cy", "stroke", "fill"], Le = ["cx", "cy", "stroke", "fill"], Me = ["x1", "x2", "y2", "stroke"], Ie = ["x", "height", "width", "onMouseenter"], Fe = /* @__PURE__ */ O(() => /* @__PURE__ */ i("div", { class: "slider-track" }, null, -1)),
|
|
22
|
+
}, null, -1)), xe = ["d", "stroke"], be = ["x", "width", "height", "fill", "rx"], Se = ["d", "fill"], ke = ["x", "width", "height", "rx", "fill"], Ce = ["x", "width", "height", "fill", "rx"], we = ["d", "fill"], Ne = ["d", "stroke"], $e = ["cx", "cy", "stroke", "fill"], Le = ["cx", "cy", "stroke", "fill"], Me = ["x1", "x2", "y2", "stroke"], Ie = ["x", "height", "width", "onMouseenter"], Fe = /* @__PURE__ */ O(() => /* @__PURE__ */ i("div", { class: "slider-track" }, null, -1)), Re = ["min", "max"], ze = ["min", "max"], Ee = {
|
|
23
23
|
__name: "Slicer",
|
|
24
24
|
props: {
|
|
25
25
|
background: {
|
|
@@ -108,46 +108,46 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
emits: ["update:start", "update:end", "reset", "trapMouse"],
|
|
111
|
-
setup(
|
|
112
|
-
const e =
|
|
113
|
-
K((
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
111
|
+
setup(t, { emit: y }) {
|
|
112
|
+
const e = t;
|
|
113
|
+
K((l) => ({
|
|
114
|
+
"74ec9808": T.value,
|
|
115
|
+
"5d7f3c70": x.value,
|
|
116
|
+
"2eaeb5e1": W.value,
|
|
117
|
+
"3db47da0": t.selectColor,
|
|
118
|
+
"2531182e": U.value
|
|
119
119
|
}));
|
|
120
|
-
const u = f(e.min), r = f(e.max), g = d(() => !!e.minimap.length), C = f(re()),
|
|
121
|
-
const
|
|
120
|
+
const u = f(e.min), r = f(e.max), g = d(() => !!e.minimap.length), C = f(re()), D = d(() => {
|
|
121
|
+
const l = e.max - e.min, n = (u.value - e.min) / l * 100, o = (r.value - e.min) / l * 100;
|
|
122
122
|
return {
|
|
123
123
|
left: `${n}%`,
|
|
124
124
|
width: `${o - n}%`,
|
|
125
125
|
background: e.selectColor
|
|
126
126
|
};
|
|
127
|
-
}),
|
|
128
|
-
let
|
|
127
|
+
}), T = d(() => e.inputColor), U = d(() => e.background), W = d(() => `${e.selectColor}33`), x = d(() => e.borderColor), M = d(() => {
|
|
128
|
+
let l = [];
|
|
129
129
|
for (let n = 0; n < e.minimap.length; n += 1)
|
|
130
|
-
|
|
131
|
-
return
|
|
130
|
+
l.push(n);
|
|
131
|
+
return l;
|
|
132
132
|
});
|
|
133
133
|
function I() {
|
|
134
134
|
y("reset");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function X() {
|
|
137
137
|
Number(u.value) > Number(r.value) - 1 && (u.value = Number(r.value) - 1), y("update:start", Number(u.value));
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function j() {
|
|
140
140
|
Number(r.value) < Number(u.value) + 1 && (r.value = Number(u.value) + 1), y("update:end", Number(r.value));
|
|
141
141
|
}
|
|
142
142
|
L(
|
|
143
143
|
() => e.min,
|
|
144
|
-
(
|
|
145
|
-
Number(u.value) < Number(
|
|
144
|
+
(l) => {
|
|
145
|
+
Number(u.value) < Number(l) && (u.value = Number(l)), Number(r.value) < Number(l) && (r.value = Number(l));
|
|
146
146
|
}
|
|
147
147
|
), L(
|
|
148
148
|
() => e.max,
|
|
149
|
-
(
|
|
150
|
-
Number(u.value) > Number(
|
|
149
|
+
(l) => {
|
|
150
|
+
Number(u.value) > Number(l) && (u.value = Number(l)), Number(r.value) > Number(l) && (r.value = Number(l));
|
|
151
151
|
}
|
|
152
152
|
);
|
|
153
153
|
const w = f(null), a = f({
|
|
@@ -156,27 +156,27 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
156
156
|
}), F = f(null);
|
|
157
157
|
Y(() => {
|
|
158
158
|
if (g.value) {
|
|
159
|
-
const
|
|
159
|
+
const l = oe(() => {
|
|
160
160
|
const { width: n, height: o } = ue({
|
|
161
161
|
chart: w.value
|
|
162
162
|
});
|
|
163
163
|
a.value.width = n, a.value.height = o - 47;
|
|
164
164
|
});
|
|
165
|
-
F.value = new ResizeObserver(
|
|
165
|
+
F.value = new ResizeObserver(l), F.value.observe(w.value);
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
168
|
const s = d(() => e.minimap.length ? a.value.width / e.minimap.length : 0), m = d(() => {
|
|
169
169
|
if (!e.minimap.length) return [];
|
|
170
|
-
const
|
|
171
|
-
const J =
|
|
170
|
+
const l = Math.max(...e.minimap), n = Math.min(...e.minimap) - 10, o = l - (n > 0 ? 0 : n), c = e.minimap.map((_, H) => {
|
|
171
|
+
const J = _ - n;
|
|
172
172
|
return {
|
|
173
173
|
x: a.value.width / e.minimap.length * H + s.value / 2,
|
|
174
174
|
y: a.value.height - J / o * (a.value.height * 0.9)
|
|
175
175
|
};
|
|
176
|
-
}), N = e.smoothMinimap ? V(c) : B(c), $ = [...c].slice(e.valueStart, e.valueEnd),
|
|
176
|
+
}), N = e.smoothMinimap ? V(c) : B(c), $ = [...c].slice(e.valueStart, e.valueEnd), Q = e.smoothMinimap ? V($) : B($);
|
|
177
177
|
return {
|
|
178
178
|
fullSet: N,
|
|
179
|
-
selectionSet:
|
|
179
|
+
selectionSet: Q,
|
|
180
180
|
sliced: $,
|
|
181
181
|
firstPlot: c[e.valueStart],
|
|
182
182
|
lastPlot: c[e.valueEnd - 1]
|
|
@@ -184,13 +184,13 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
184
184
|
}), p = d(() => ({
|
|
185
185
|
x: s.value * u.value + s.value / 2,
|
|
186
186
|
width: a.value.width * ((r.value - u.value) / e.max) - s.value
|
|
187
|
-
})),
|
|
187
|
+
})), Z = d(() => ({
|
|
188
188
|
left: 0,
|
|
189
189
|
color: e.textColor,
|
|
190
190
|
fontSize: `${e.fontSize}px`,
|
|
191
191
|
top: g.value ? "28px" : "-28px",
|
|
192
192
|
pointerEvents: "none"
|
|
193
|
-
})),
|
|
193
|
+
})), q = d(() => ({
|
|
194
194
|
right: 0,
|
|
195
195
|
color: e.textColor,
|
|
196
196
|
fontSize: `${e.fontSize}px`,
|
|
@@ -198,16 +198,16 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
198
198
|
direction: "rtl",
|
|
199
199
|
pointerEvents: "none"
|
|
200
200
|
})), b = f(e.minimapSelectedIndex);
|
|
201
|
-
L(() => e.minimapSelectedIndex, (
|
|
202
|
-
b.value =
|
|
201
|
+
L(() => e.minimapSelectedIndex, (l) => {
|
|
202
|
+
b.value = l + e.valueStart;
|
|
203
203
|
}, { immediate: !0 });
|
|
204
|
-
function
|
|
205
|
-
b.value =
|
|
204
|
+
function G(l) {
|
|
205
|
+
b.value = l, l >= e.valueStart && l < e.valueEnd && y("trapMouse", l - e.valueStart);
|
|
206
206
|
}
|
|
207
|
-
return (
|
|
207
|
+
return (l, n) => (v(), h("div", me, [
|
|
208
208
|
i("div", ce, [
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
t.valueStart > 0 || t.valueEnd < t.max ? (v(), h("div", ve, [
|
|
210
|
+
t.useResetSlot ? te(l.$slots, "reset-action", {
|
|
211
211
|
key: 1,
|
|
212
212
|
reset: I
|
|
213
213
|
}, void 0, !0) : (v(), h("button", {
|
|
@@ -224,7 +224,7 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
224
224
|
}, [
|
|
225
225
|
ee(ne, {
|
|
226
226
|
name: "refresh",
|
|
227
|
-
stroke:
|
|
227
|
+
stroke: t.textColor
|
|
228
228
|
}, null, 8, ["stroke"])
|
|
229
229
|
], 4))
|
|
230
230
|
])) : k("", !0)
|
|
@@ -250,14 +250,14 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
250
250
|
}, [
|
|
251
251
|
i("stop", {
|
|
252
252
|
offset: "0%",
|
|
253
|
-
"stop-color": `${
|
|
253
|
+
"stop-color": `${t.minimapLineColor}50`
|
|
254
254
|
}, null, 8, ye),
|
|
255
255
|
ge
|
|
256
256
|
], 8, fe)
|
|
257
257
|
]),
|
|
258
258
|
i("path", {
|
|
259
259
|
d: `M${m.value.fullSet}`,
|
|
260
|
-
stroke: `${
|
|
260
|
+
stroke: `${t.minimapLineColor}`,
|
|
261
261
|
fill: "none",
|
|
262
262
|
"stroke-width": "1",
|
|
263
263
|
"stroke-linecap": "round",
|
|
@@ -270,7 +270,7 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
270
270
|
height: a.value.height,
|
|
271
271
|
y: 0,
|
|
272
272
|
fill: x.value,
|
|
273
|
-
rx:
|
|
273
|
+
rx: t.minimapSelectionRadius,
|
|
274
274
|
stroke: "none"
|
|
275
275
|
}, null, 8, be),
|
|
276
276
|
i("path", {
|
|
@@ -284,6 +284,7 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
284
284
|
width: p.value.width < 0 ? 0 : p.value.width,
|
|
285
285
|
height: a.value.height,
|
|
286
286
|
y: 0,
|
|
287
|
+
rx: t.minimapSelectionRadius,
|
|
287
288
|
fill: x.value
|
|
288
289
|
}, null, 8, ke),
|
|
289
290
|
i("rect", {
|
|
@@ -291,9 +292,10 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
291
292
|
width: p.value.width < 0 ? 0 : p.value.width,
|
|
292
293
|
height: a.value.height,
|
|
293
294
|
y: 0,
|
|
294
|
-
fill:
|
|
295
|
+
fill: t.minimapSelectedColor,
|
|
296
|
+
rx: t.minimapSelectionRadius,
|
|
295
297
|
style: S({
|
|
296
|
-
opacity:
|
|
298
|
+
opacity: t.minimapSelectedColorOpacity
|
|
297
299
|
})
|
|
298
300
|
}, null, 12, Ce),
|
|
299
301
|
i("path", {
|
|
@@ -304,7 +306,7 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
304
306
|
}, null, 8, we),
|
|
305
307
|
i("path", {
|
|
306
308
|
d: `M ${m.value.selectionSet}`,
|
|
307
|
-
stroke: `${
|
|
309
|
+
stroke: `${t.minimapLineColor}`,
|
|
308
310
|
fill: "transparent",
|
|
309
311
|
"stroke-width": "2",
|
|
310
312
|
"stroke-linecap": "round",
|
|
@@ -316,7 +318,7 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
316
318
|
"stroke-width": "0.5",
|
|
317
319
|
stroke: x.value,
|
|
318
320
|
r: "3",
|
|
319
|
-
fill:
|
|
321
|
+
fill: t.minimapLineColor
|
|
320
322
|
}, null, 8, $e),
|
|
321
323
|
i("circle", {
|
|
322
324
|
cx: m.value.lastPlot.x,
|
|
@@ -324,29 +326,29 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
324
326
|
"stroke-width": "0.5",
|
|
325
327
|
stroke: x.value,
|
|
326
328
|
r: "3",
|
|
327
|
-
fill:
|
|
329
|
+
fill: t.minimapLineColor
|
|
328
330
|
}, null, 8, Le),
|
|
329
|
-
b.value !== null ? (v(!0), h(
|
|
330
|
-
b.value === o && o >=
|
|
331
|
+
b.value !== null ? (v(!0), h(R, { key: 0 }, z(M.value, (o, c) => (v(), h("g", null, [
|
|
332
|
+
b.value === o && o >= t.valueStart && o < t.valueEnd ? (v(), h("line", {
|
|
331
333
|
key: 0,
|
|
332
334
|
x1: s.value * c + s.value / 2,
|
|
333
335
|
x2: s.value * c + s.value / 2,
|
|
334
336
|
y1: 0,
|
|
335
337
|
y2: a.value.height,
|
|
336
|
-
stroke:
|
|
338
|
+
stroke: t.minimapIndicatorColor,
|
|
337
339
|
"stroke-linecap": "round",
|
|
338
340
|
"stroke-dasharray": "2",
|
|
339
341
|
"stroke-width": "1"
|
|
340
342
|
}, null, 8, Me)) : k("", !0)
|
|
341
343
|
]))), 256)) : k("", !0),
|
|
342
|
-
(v(!0), h(
|
|
344
|
+
(v(!0), h(R, null, z(M.value, (o, c) => (v(), h("rect", {
|
|
343
345
|
x: s.value * c,
|
|
344
346
|
y: 0,
|
|
345
347
|
height: a.value.height,
|
|
346
348
|
width: s.value,
|
|
347
349
|
fill: "transparent",
|
|
348
350
|
style: { "pointer-events": "all !important" },
|
|
349
|
-
onMouseenter: (N) =>
|
|
351
|
+
onMouseenter: (N) => G(o),
|
|
350
352
|
onMouseleave: n[0] || (n[0] = (N) => {
|
|
351
353
|
b.value = null, y("trapMouse", null);
|
|
352
354
|
})
|
|
@@ -356,40 +358,40 @@ const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
|
356
358
|
Fe,
|
|
357
359
|
i("div", {
|
|
358
360
|
class: "range-highlight",
|
|
359
|
-
style: S(
|
|
361
|
+
style: S(D.value)
|
|
360
362
|
}, null, 4),
|
|
361
|
-
|
|
363
|
+
E(i("input", {
|
|
362
364
|
type: "range",
|
|
363
365
|
class: "range-left",
|
|
364
|
-
min:
|
|
365
|
-
max:
|
|
366
|
+
min: t.min,
|
|
367
|
+
max: t.max,
|
|
366
368
|
"onUpdate:modelValue": n[1] || (n[1] = (o) => u.value = o),
|
|
367
|
-
onInput:
|
|
368
|
-
}, null, 40,
|
|
369
|
-
[
|
|
369
|
+
onInput: X
|
|
370
|
+
}, null, 40, Re), [
|
|
371
|
+
[P, u.value]
|
|
370
372
|
]),
|
|
371
373
|
i("div", {
|
|
372
374
|
class: "thumb-label thumb-label-left",
|
|
373
|
-
style: S(
|
|
374
|
-
}, A(
|
|
375
|
-
|
|
375
|
+
style: S(Z.value)
|
|
376
|
+
}, A(t.labelLeft), 5),
|
|
377
|
+
E(i("input", {
|
|
376
378
|
type: "range",
|
|
377
379
|
class: "range-right",
|
|
378
|
-
min:
|
|
379
|
-
max:
|
|
380
|
+
min: t.min,
|
|
381
|
+
max: t.max,
|
|
380
382
|
"onUpdate:modelValue": n[2] || (n[2] = (o) => r.value = o),
|
|
381
|
-
onInput:
|
|
382
|
-
}, null, 40,
|
|
383
|
-
[
|
|
383
|
+
onInput: j
|
|
384
|
+
}, null, 40, ze), [
|
|
385
|
+
[P, r.value]
|
|
384
386
|
]),
|
|
385
387
|
i("div", {
|
|
386
388
|
class: "thumb-label thumb-label-right",
|
|
387
|
-
style: S(
|
|
388
|
-
}, A(
|
|
389
|
+
style: S(q.value)
|
|
390
|
+
}, A(t.labelRight), 5)
|
|
389
391
|
], 512)
|
|
390
392
|
]));
|
|
391
393
|
}
|
|
392
|
-
},
|
|
394
|
+
}, De = /* @__PURE__ */ de(Ee, [["__scopeId", "data-v-c184b7d6"]]);
|
|
393
395
|
export {
|
|
394
|
-
|
|
396
|
+
De as S
|
|
395
397
|
};
|