vue-data-ui 3.7.15 → 3.8.0
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/README.md +50 -43
- package/dist/{Arrow-9T8aUCDR.js → Arrow-pvqmWZAQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DZVSjhEw.js → BaseDraggableDialog-BYwNgX3M.js} +2 -2
- package/dist/{BaseIcon-Dl4VBlHV.js → BaseIcon-CALhpING.js} +8 -4
- package/dist/{ColorPicker-BrMbLQds.js → ColorPicker-B_9b0REv.js} +2 -2
- package/dist/{DataTable-Ho3Bf5oq.js → DataTable-Ca1twcf7.js} +2 -2
- package/dist/{Legend-DSyOOSJ1.js → Legend-Djkw4FGq.js} +2 -2
- package/dist/{NonSvgPenAndPaper-MX5IsudW.js → NonSvgPenAndPaper-DCQPVA4M.js} +3 -3
- package/dist/{PackageVersion-BAF3mEBQ.js → PackageVersion-B9RA2_BM.js} +1 -1
- package/dist/{PenAndPaper-kymjF6_b.js → PenAndPaper-DscVdZ1u.js} +3 -3
- package/dist/{Shape-rPzC8L-O.js → Shape-BEGGcaL8.js} +1 -1
- package/dist/{Slicer-DScoMPmj.js → Slicer-DaUi0o8i.js} +2 -2
- package/dist/{SlicerPreview-B1QUTxTZ.js → SlicerPreview-Bk-h_ANq.js} +2 -2
- package/dist/{SparkTooltip-reDvtQYF.js → SparkTooltip-BWdCP-h3.js} +1 -1
- package/dist/{Title-Hk29BxeL.js → Title-CgkWUXeV.js} +1 -1
- package/dist/{Tooltip-De7i-i20.js → Tooltip-OHx7yHlS.js} +1 -1
- package/dist/{UserOptions-DgscxIaa.js → UserOptions-ChRXLqps.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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 +5 -0
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-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-BG68zYm5.js → dom-to-png-VQEAYRVr.js} +1 -1
- package/dist/{img-BYzbY8TZ.js → img-CwrkWkkl.js} +1 -1
- package/dist/{lib-DUaaQGCv.js → lib-qMPkcvmh.js} +194 -179
- package/dist/{pdf--SSvtzbF.js → pdf-BMMrFX8S.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +147 -6
- package/dist/types/vue-ui-dag.d.ts +16 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBJqy2aF.js → useAutoSizeLabelsInsideViewbox-CY90KinM.js} +1 -1
- package/dist/{useNestedProp-CVGae3Qt.js → useNestedProp-DOOBu_sL.js} +269 -185
- package/dist/usePanZoom-DMfuOfaC.js +135 -0
- package/dist/{usePrinter-BdVu83IN.js → usePrinter-CjGh4mFJ.js} +2 -2
- package/dist/vue-data-ui-BgQPEjgE.js +351 -0
- package/dist/vue-data-ui.js +202 -216
- package/dist/{vue-ui-3d-bar-Cg4nzpjZ.js → vue-ui-3d-bar-BHcSmBFt.js} +6 -6
- package/dist/{vue-ui-accordion-B3SlkXqV.js → vue-ui-accordion-BWfQ8Imt.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BGA_e57_.js → vue-ui-age-pyramid-CKtsF5IW.js} +25 -25
- package/dist/{vue-ui-annotator-BHmNl_oD.js → vue-ui-annotator-DQmmDTg7.js} +7 -7
- package/dist/{vue-ui-bullet-B8Td03RZ.js → vue-ui-bullet-CZKHPSsG.js} +7 -7
- package/dist/{vue-ui-candlestick-aRpv_WG-.js → vue-ui-candlestick-DW7yeLnE.js} +39 -39
- package/dist/{vue-ui-carousel-table-yjrmp9Q4.js → vue-ui-carousel-table-Bv0TZYW1.js} +4 -4
- package/dist/{vue-ui-chestnut-mlal6Cjv.js → vue-ui-chestnut-BUqGBycr.js} +5 -5
- package/dist/{vue-ui-chord-Ddbwnzl7.js → vue-ui-chord-Awtzhq_0.js} +8 -8
- package/dist/{vue-ui-circle-pack-DUw81Lbf.js → vue-ui-circle-pack-WTa2Mj2O.js} +37 -37
- package/dist/vue-ui-cursor-D6_m463R.js +252 -0
- package/dist/vue-ui-dag-tle30Ehr.js +2727 -0
- package/dist/{vue-ui-dashboard-BzIopzfw.js → vue-ui-dashboard-BLgMwKmT.js} +68 -68
- package/dist/vue-ui-digits-DIZ8pi6C.js +200 -0
- package/dist/{vue-ui-donut-D-uqv9-W.js → vue-ui-donut-DY8Q-PAg.js} +88 -88
- package/dist/{vue-ui-donut-evolution-C25j-w7G.js → vue-ui-donut-evolution-DGnq03PX.js} +85 -85
- package/dist/{vue-ui-dumbbell-DaBN6kZz.js → vue-ui-dumbbell-xRMH2Mlv.js} +33 -33
- package/dist/{vue-ui-flow-LBrbktKK.js → vue-ui-flow-C0a8rOyT.js} +42 -42
- package/dist/{vue-ui-funnel-StsSjaZJ.js → vue-ui-funnel-D6krkF1a.js} +19 -19
- package/dist/{vue-ui-galaxy-DATC0Ww1.js → vue-ui-galaxy-BCkJt9OE.js} +59 -59
- package/dist/{vue-ui-gauge-BuSVuoeo.js → vue-ui-gauge-BaH-VYAi.js} +25 -25
- package/dist/{vue-ui-gizmo-B4Du388h.js → vue-ui-gizmo-BnCONs1t.js} +3 -3
- package/dist/{vue-ui-heatmap-C7jHSpqL.js → vue-ui-heatmap-BYoD6XaS.js} +67 -67
- package/dist/{vue-ui-history-plot-CMGhB2Zv.js → vue-ui-history-plot-BZBtIBsY.js} +43 -43
- package/dist/{vue-ui-horizontal-bar-BlG3kfkk.js → vue-ui-horizontal-bar-DsDDKUa6.js} +69 -69
- package/dist/{vue-ui-kpi-CTUnzHcT.js → vue-ui-kpi-Dn750UNZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-DYMh6g7y.js → vue-ui-mini-loader-44NP38K0.js} +2 -2
- package/dist/{vue-ui-molecule-BNwKqzIg.js → vue-ui-molecule-C994_mOK.js} +53 -53
- package/dist/{vue-ui-mood-radar-Bpfe33cj.js → vue-ui-mood-radar-BI2SAtcM.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CG6vyTLr.js → vue-ui-nested-donuts-CSF_bA-I.js} +38 -38
- package/dist/{vue-ui-onion-BNrW85xB.js → vue-ui-onion-L5ULuI3B.js} +38 -38
- package/dist/{vue-ui-parallel-coordinate-plot-prQ8DLgP.js → vue-ui-parallel-coordinate-plot-CYetuoa5.js} +43 -43
- package/dist/{vue-ui-quadrant-mFM3WtKm.js → vue-ui-quadrant-Diwm1-e6.js} +8 -8
- package/dist/{vue-ui-quick-chart-CmJEoZEj.js → vue-ui-quick-chart-YBj4Iyk6.js} +51 -51
- package/dist/{vue-ui-radar-MheG5gvf.js → vue-ui-radar-D76Mi-4u.js} +41 -41
- package/dist/{vue-ui-rating-BAfHKHmb.js → vue-ui-rating-CJjSt6-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-BPZDXdVc.js → vue-ui-relation-circle-BlYazckd.js} +19 -19
- package/dist/{vue-ui-ridgeline-BPDURc5t.js → vue-ui-ridgeline-DW8JqGxN.js} +8 -8
- package/dist/{vue-ui-rings-ByeUycTV.js → vue-ui-rings-De3shW_r.js} +37 -37
- package/dist/{vue-ui-scatter-HkSLoM2F.js → vue-ui-scatter-oDhPqRJq.js} +8 -8
- package/dist/{vue-ui-skeleton-DtciU6S2.js → vue-ui-skeleton-BUIXG_mY.js} +3 -3
- package/dist/vue-ui-smiley-Cni8Q56U.js +377 -0
- package/dist/{vue-ui-spark-trend-lSw8HYoA.js → vue-ui-spark-trend-D1Zt5np6.js} +16 -16
- package/dist/{vue-ui-sparkbar-DZlTPWdS.js → vue-ui-sparkbar-CdmXCSnj.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Cwl9Ksz2.js → vue-ui-sparkgauge-Dn2PQhZj.js} +17 -17
- package/dist/{vue-ui-sparkhistogram-Bq2DS4V0.js → vue-ui-sparkhistogram-nrkglHJk.js} +4 -4
- package/dist/{vue-ui-sparkline-DbkCbelr.js → vue-ui-sparkline-tz8fAf2C.js} +31 -31
- package/dist/{vue-ui-sparkstackbar-DWDEh2j6.js → vue-ui-sparkstackbar-BQPSsF5Q.js} +3 -3
- package/dist/{vue-ui-stackbar-BhbkdK0G.js → vue-ui-stackbar-DMO3YIQp.js} +9 -9
- package/dist/{vue-ui-stackline-DqKYCBDP.js → vue-ui-stackline-BQo4KoIK.js} +55 -55
- package/dist/{vue-ui-strip-plot-BUbyj8j8.js → vue-ui-strip-plot-CJpmLgCV.js} +28 -28
- package/dist/{vue-ui-table-B1bx46AB.js → vue-ui-table-Cp4ee_1a.js} +5 -5
- package/dist/{vue-ui-table-heatmap-kuly5Mc1.js → vue-ui-table-heatmap-1qpMxFyu.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B9YLMDpp.js → vue-ui-table-sparkline-wSJjRJc4.js} +4 -4
- package/dist/{vue-ui-thermometer-DGM9Cnnw.js → vue-ui-thermometer-DA8pG0Tr.js} +19 -19
- package/dist/{vue-ui-timer-C1uo5WJb.js → vue-ui-timer-Bc0J-YWP.js} +12 -12
- package/dist/{vue-ui-tiremarks-B-xq7Ivj.js → vue-ui-tiremarks-DqYsca6Q.js} +6 -6
- package/dist/{vue-ui-treemap-VI1FYNqD.js → vue-ui-treemap-BQsPzEFA.js} +51 -51
- package/dist/{vue-ui-waffle-WdacXwVf.js → vue-ui-waffle-5wkXlR4p.js} +69 -69
- package/dist/{vue-ui-wheel-C7yfIwbK.js → vue-ui-wheel-CkZko1RX.js} +6 -6
- package/dist/{vue-ui-word-cloud-BlNxODSZ.js → vue-ui-word-cloud-52bv_Ba-.js} +41 -41
- package/dist/{vue-ui-world-vfrFZPI1.js → vue-ui-world-oIyf91PY.js} +6 -6
- package/dist/{vue-ui-xy-DHN5H4Ln.js → vue-ui-xy-DIEBv1b8.js} +75 -75
- package/dist/{vue-ui-xy-canvas-B3oAOFin.js → vue-ui-xy-canvas-pnm8ar87.js} +127 -127
- package/package.json +4 -3
- package/dist/usePanZoom-DZtyJi5q.js +0 -127
- package/dist/vue-data-ui-BcTiYl7u.js +0 -337
- package/dist/vue-ui-cursor-CIynd5w9.js +0 -229
- package/dist/vue-ui-digits-BDVx5bMH.js +0 -154
- package/dist/vue-ui-smiley-B8k0b8-R.js +0 -852
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { ref as c, computed as _, onMounted as R, onBeforeUnmount as S, createElementBlock as l, createCommentVNode as o, openBlock as i, normalizeStyle as E, unref as m, createElementVNode as r, normalizeClass as C, toDisplayString as p, nextTick as b } from "vue";
|
|
2
|
-
import { u as F, a as L } from "./useNestedProp-CVGae3Qt.js";
|
|
3
|
-
import { c as z, X as O, s as I } from "./lib-DUaaQGCv.js";
|
|
4
|
-
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const N = ["xmlns", "height", "width"], T = {
|
|
6
|
-
id: "follower",
|
|
7
|
-
fy: "30%",
|
|
8
|
-
fx: "30%"
|
|
9
|
-
}, D = ["stop-color", "stop-opacity"], $ = ["r", "fill", "stroke", "stroke-width", "stroke-dasharray"], W = ["r"], G = {
|
|
10
|
-
key: 2,
|
|
11
|
-
class: "wave"
|
|
12
|
-
}, A = ["id"], U = ["id"], V = ["filter", "stroke"], M = {
|
|
13
|
-
key: 3,
|
|
14
|
-
class: "crosshair"
|
|
15
|
-
}, P = ["x1", "stroke", "stroke-width", "stroke-dasharray"], X = ["x1", "stroke", "stroke-width", "stroke-dasharray"], j = ["y1", "stroke", "stroke-width", "stroke-dasharray"], Y = ["y1", "stroke", "stroke-width", "stroke-dasharray"], q = ["cy", "r", "fill"], H = ["cy", "r", "fill"], J = ["cx", "r", "fill"], K = ["cx", "r", "fill"], Q = {
|
|
16
|
-
key: 5,
|
|
17
|
-
class: "coordinates"
|
|
18
|
-
}, Z = ["x", "y", "font-size", "fill"], ee = ["transform"], te = ["font-size", "fill"], re = {
|
|
19
|
-
__name: "vue-ui-cursor",
|
|
20
|
-
props: {
|
|
21
|
-
config: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default: {}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
setup(x) {
|
|
27
|
-
const { vue_ui_cursor: g } = F(), w = x, d = c(z()), e = _(() => L({
|
|
28
|
-
userConfig: w.config,
|
|
29
|
-
defaultConfig: g
|
|
30
|
-
})), s = c({
|
|
31
|
-
x: -100,
|
|
32
|
-
y: -100
|
|
33
|
-
});
|
|
34
|
-
function f({ clientX: t, clientY: a, ...se }) {
|
|
35
|
-
s.value.x = t - e.value.centerCircleRadius, s.value.y = a - e.value.centerCircleRadius;
|
|
36
|
-
}
|
|
37
|
-
function h(t) {
|
|
38
|
-
s.value.x = t.targetTouches[0].clientX - e.value.centerCircleRadius, s.value.y = t.targetTouches[0].clientY - e.value.centerCircleRadius;
|
|
39
|
-
}
|
|
40
|
-
const y = c(!0);
|
|
41
|
-
function u(t) {
|
|
42
|
-
y.value = t;
|
|
43
|
-
}
|
|
44
|
-
const n = c(!1), v = c(null);
|
|
45
|
-
function k() {
|
|
46
|
-
n.value = !1, v.value && clearTimeout(v.value), b(() => {
|
|
47
|
-
n.value = !0, v.value = setTimeout(() => {
|
|
48
|
-
n.value = !1;
|
|
49
|
-
}, 1e3);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return R(() => {
|
|
53
|
-
const t = e.value.parentId ? document.getElementById(e.value.parentId) : document.getElementsByTagName("div")[0];
|
|
54
|
-
t.addEventListener("mousemove", f), t.addEventListener("touchmove", h), t.addEventListener("mouseleave", () => u(!1)), t.addEventListener("mouseenter", () => u(!0)), t.addEventListener("click", k);
|
|
55
|
-
}), S(() => {
|
|
56
|
-
const t = e.value.parentId ? document.getElementById(e.value.parentId) : document.getElementsByTagName("div")[0];
|
|
57
|
-
t.removeEventListener("mousemove", f), t.removeEventListener("touchmove", h), t.removeEventListener("mouseleave", () => u(!1)), t.removeEventListener("mouseenter", () => u(!0)), t.removeEventListener("click", k);
|
|
58
|
-
}), _(() => e.value.centerCircleRadius / 2.5), (t, a) => y.value ? (i(), l("svg", {
|
|
59
|
-
key: 0,
|
|
60
|
-
"data-dom-to-png-ignore": "",
|
|
61
|
-
xmlns: m(O),
|
|
62
|
-
style: E(`z-index: 2147483647; overflow: visible; pointer-events: none;background: transparent; position:fixed; top:${s.value.y}px; left:${s.value.x}px;`),
|
|
63
|
-
viewBox: "0 0 100 100",
|
|
64
|
-
height: e.value.centerCircleRadius * 2,
|
|
65
|
-
width: e.value.centerCircleRadius * 2
|
|
66
|
-
}, [
|
|
67
|
-
r("defs", null, [
|
|
68
|
-
r("radialGradient", T, [
|
|
69
|
-
r("stop", {
|
|
70
|
-
offset: "10%",
|
|
71
|
-
"stop-color": e.value.bubbleEffectColor,
|
|
72
|
-
"stop-opacity": e.value.bubbleEffectOpacity
|
|
73
|
-
}, null, 8, D),
|
|
74
|
-
a[0] || (a[0] = r("stop", {
|
|
75
|
-
offset: "95%",
|
|
76
|
-
"stop-color": "transparent"
|
|
77
|
-
}, null, -1))
|
|
78
|
-
])
|
|
79
|
-
]),
|
|
80
|
-
e.value.showCenterCircle ? (i(), l("circle", {
|
|
81
|
-
key: 0,
|
|
82
|
-
cx: 50,
|
|
83
|
-
cy: 50,
|
|
84
|
-
r: e.value.centerCircleRadius,
|
|
85
|
-
fill: m(I)(e.value.centerCircleColor, e.value.centerCircleOpacity * 100),
|
|
86
|
-
stroke: e.value.centerCircleStroke,
|
|
87
|
-
"stroke-width": e.value.centerCircleStrokeWidth,
|
|
88
|
-
"stroke-dasharray": e.value.centerCircleDasharray
|
|
89
|
-
}, null, 8, $)) : o("", !0),
|
|
90
|
-
e.value.bubbleEffect ? (i(), l("circle", {
|
|
91
|
-
key: 1,
|
|
92
|
-
cx: 50,
|
|
93
|
-
cy: 50,
|
|
94
|
-
r: e.value.centerCircleRadius,
|
|
95
|
-
fill: "url(#follower)",
|
|
96
|
-
stroke: "none"
|
|
97
|
-
}, null, 8, W)) : o("", !0),
|
|
98
|
-
e.value.useWaveOnClick ? (i(), l("g", G, [
|
|
99
|
-
r("defs", null, [
|
|
100
|
-
r("filter", {
|
|
101
|
-
id: `blur_${d.value}`,
|
|
102
|
-
x: "-50%",
|
|
103
|
-
y: "-50%",
|
|
104
|
-
width: "200%",
|
|
105
|
-
height: "200%"
|
|
106
|
-
}, [
|
|
107
|
-
r("feGaussianBlur", {
|
|
108
|
-
in: "SourceGraphic",
|
|
109
|
-
stdDeviation: 4,
|
|
110
|
-
id: `blur_std_${d.value}`
|
|
111
|
-
}, null, 8, U),
|
|
112
|
-
a[1] || (a[1] = r("feColorMatrix", {
|
|
113
|
-
type: "saturate",
|
|
114
|
-
values: "0"
|
|
115
|
-
}, null, -1))
|
|
116
|
-
], 8, A)
|
|
117
|
-
]),
|
|
118
|
-
n.value ? (i(), l("circle", {
|
|
119
|
-
key: 0,
|
|
120
|
-
class: C({ "circle-wave": n.value }),
|
|
121
|
-
cx: 50,
|
|
122
|
-
cy: 50,
|
|
123
|
-
r: 50,
|
|
124
|
-
filter: `url(#blur_${d.value})`,
|
|
125
|
-
stroke: e.value.centerCircleStroke,
|
|
126
|
-
fill: "none",
|
|
127
|
-
"stroke-width": "3"
|
|
128
|
-
}, null, 10, V)) : o("", !0)
|
|
129
|
-
])) : o("", !0),
|
|
130
|
-
e.value.showCrosshair ? (i(), l("g", M, [
|
|
131
|
-
r("line", {
|
|
132
|
-
x1: -e.value.centerCircleRadius + 50,
|
|
133
|
-
x2: -5e3,
|
|
134
|
-
y1: 50,
|
|
135
|
-
y2: 50,
|
|
136
|
-
stroke: e.value.crosshairStroke,
|
|
137
|
-
"stroke-width": e.value.crosshairStrokeWidth,
|
|
138
|
-
"stroke-dasharray": e.value.crosshairDasharray,
|
|
139
|
-
"stroke-linecap": "round"
|
|
140
|
-
}, null, 8, P),
|
|
141
|
-
r("line", {
|
|
142
|
-
x1: 50 + e.value.centerCircleRadius,
|
|
143
|
-
x2: 5e3,
|
|
144
|
-
y1: 50,
|
|
145
|
-
y2: 50,
|
|
146
|
-
stroke: e.value.crosshairStroke,
|
|
147
|
-
"stroke-width": e.value.crosshairStrokeWidth,
|
|
148
|
-
"stroke-dasharray": e.value.crosshairDasharray,
|
|
149
|
-
"stroke-linecap": "round"
|
|
150
|
-
}, null, 8, X),
|
|
151
|
-
r("line", {
|
|
152
|
-
x1: 50,
|
|
153
|
-
x2: 50,
|
|
154
|
-
y1: -e.value.centerCircleRadius + 50,
|
|
155
|
-
y2: -5e3,
|
|
156
|
-
stroke: e.value.crosshairStroke,
|
|
157
|
-
"stroke-width": e.value.crosshairStrokeWidth,
|
|
158
|
-
"stroke-dasharray": e.value.crosshairDasharray,
|
|
159
|
-
"stroke-linecap": "round"
|
|
160
|
-
}, null, 8, j),
|
|
161
|
-
r("line", {
|
|
162
|
-
x1: 50,
|
|
163
|
-
x2: 50,
|
|
164
|
-
y1: e.value.centerCircleRadius + 50,
|
|
165
|
-
y2: 5e3,
|
|
166
|
-
stroke: e.value.crosshairStroke,
|
|
167
|
-
"stroke-width": e.value.crosshairStrokeWidth,
|
|
168
|
-
"stroke-dasharray": e.value.crosshairDasharray,
|
|
169
|
-
"stroke-linecap": "round"
|
|
170
|
-
}, null, 8, Y)
|
|
171
|
-
])) : o("", !0),
|
|
172
|
-
e.value.showIntersectCircles ? (i(), l("g", {
|
|
173
|
-
key: 4,
|
|
174
|
-
class: C({ "rotating-circles": e.value.isLoading })
|
|
175
|
-
}, [
|
|
176
|
-
r("circle", {
|
|
177
|
-
cx: 50,
|
|
178
|
-
cy: e.value.centerCircleRadius + 50,
|
|
179
|
-
r: e.value.intersectCirclesRadius,
|
|
180
|
-
fill: e.value.intersectCirclesFill
|
|
181
|
-
}, null, 8, q),
|
|
182
|
-
r("circle", {
|
|
183
|
-
cx: 50,
|
|
184
|
-
cy: -e.value.centerCircleRadius + 50,
|
|
185
|
-
r: e.value.intersectCirclesRadius,
|
|
186
|
-
fill: e.value.intersectCirclesFill
|
|
187
|
-
}, null, 8, H),
|
|
188
|
-
r("circle", {
|
|
189
|
-
cx: -e.value.centerCircleRadius + 50,
|
|
190
|
-
cy: 50,
|
|
191
|
-
r: e.value.intersectCirclesRadius,
|
|
192
|
-
fill: e.value.intersectCirclesFill
|
|
193
|
-
}, null, 8, J),
|
|
194
|
-
r("circle", {
|
|
195
|
-
cx: e.value.centerCircleRadius + 50,
|
|
196
|
-
cy: 50,
|
|
197
|
-
r: e.value.intersectCirclesRadius,
|
|
198
|
-
fill: e.value.intersectCirclesFill
|
|
199
|
-
}, null, 8, K)
|
|
200
|
-
], 2)) : o("", !0),
|
|
201
|
-
e.value.showCoordinates ? (i(), l("g", Q, [
|
|
202
|
-
r("text", {
|
|
203
|
-
"text-anchor": "end",
|
|
204
|
-
x: -e.value.centerCircleRadius + 50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset,
|
|
205
|
-
y: 50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset,
|
|
206
|
-
"font-size": e.value.coordinatesFontSize,
|
|
207
|
-
fill: e.value.coordinatesColor,
|
|
208
|
-
style: { "font-variant-numeric": "tabular-nums" },
|
|
209
|
-
"font-family": "Arial"
|
|
210
|
-
}, p(s.value.x.toFixed(0)), 9, Z),
|
|
211
|
-
r("g", {
|
|
212
|
-
transform: `translate(${50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset}, ${-e.value.centerCircleRadius + 50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset})`
|
|
213
|
-
}, [
|
|
214
|
-
r("text", {
|
|
215
|
-
"text-anchor": "start",
|
|
216
|
-
"font-size": e.value.coordinatesFontSize,
|
|
217
|
-
fill: e.value.coordinatesColor,
|
|
218
|
-
style: { "font-variant-numeric": "tabular-nums" },
|
|
219
|
-
transform: "rotate(-90)",
|
|
220
|
-
"font-family": "Arial"
|
|
221
|
-
}, p(s.value.y.toFixed(0)), 9, te)
|
|
222
|
-
], 8, ee)
|
|
223
|
-
])) : o("", !0)
|
|
224
|
-
], 12, N)) : o("", !0);
|
|
225
|
-
}
|
|
226
|
-
}, ne = /* @__PURE__ */ B(re, [["__scopeId", "data-v-e07e5d09"]]);
|
|
227
|
-
export {
|
|
228
|
-
ne as default
|
|
229
|
-
};
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { ref as v, computed as d, createElementBlock as i, openBlock as $, Fragment as m, createCommentVNode as o, createElementVNode as l, normalizeStyle as k, unref as C, renderList as b, createBlock as N } from "vue";
|
|
2
|
-
import { u as q, a as M } from "./useNestedProp-CVGae3Qt.js";
|
|
3
|
-
import { X as S } from "./lib-DUaaQGCv.js";
|
|
4
|
-
const w = { key: 0 }, B = ["d", "fill"], F = ["d", "fill"], X = ["d", "fill"], E = ["d", "fill"], I = ["d", "fill"], O = ["d", "fill"], A = ["d", "fill"], D = { key: 1 }, G = ["cx", "cy", "fill"], V = {
|
|
5
|
-
__name: "Digit",
|
|
6
|
-
props: {
|
|
7
|
-
quanta: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: null
|
|
10
|
-
},
|
|
11
|
-
backgroundColor: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: "#e1e5e8"
|
|
14
|
-
},
|
|
15
|
-
color: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "#000000"
|
|
18
|
-
},
|
|
19
|
-
// coordinates from top left of a
|
|
20
|
-
x: {
|
|
21
|
-
type: Number,
|
|
22
|
-
default: 0
|
|
23
|
-
},
|
|
24
|
-
y: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 0
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
setup(e) {
|
|
30
|
-
const c = e, u = v({
|
|
31
|
-
/**
|
|
32
|
-
* clockwise from top (last: g)
|
|
33
|
-
* a
|
|
34
|
-
* ----
|
|
35
|
-
* f | | b
|
|
36
|
-
* ----
|
|
37
|
-
* e | g | c
|
|
38
|
-
* ----
|
|
39
|
-
* d
|
|
40
|
-
*/
|
|
41
|
-
0: "1111110",
|
|
42
|
-
1: "0110000",
|
|
43
|
-
2: "1101101",
|
|
44
|
-
3: "1111001",
|
|
45
|
-
4: "0110011",
|
|
46
|
-
5: "1011011",
|
|
47
|
-
6: "1011111",
|
|
48
|
-
7: "1110000",
|
|
49
|
-
8: "1111111",
|
|
50
|
-
9: "1111011",
|
|
51
|
-
"-": "0000001",
|
|
52
|
-
X: "0000000"
|
|
53
|
-
}), t = d(() => [void 0, null].includes(c.quanta) ? u.value.X : u.value[c.quanta]);
|
|
54
|
-
return (y, g) => ($(), i(m, null, [
|
|
55
|
-
[void 0, null, "."].includes(e.quanta) ? o("", !0) : ($(), i("g", w, [
|
|
56
|
-
l("path", {
|
|
57
|
-
d: `M ${e.x} ${e.y} L ${e.x + 2} ${e.y - 2} L ${e.x + 24} ${e.y - 2} L ${e.x + 26} ${e.y} L ${e.x + 24} ${e.y + 2} L ${e.x + 2} ${e.y + 2}Z`,
|
|
58
|
-
fill: t.value[0] == 1 ? e.color : e.backgroundColor,
|
|
59
|
-
stroke: "none"
|
|
60
|
-
}, null, 8, B),
|
|
61
|
-
l("path", {
|
|
62
|
-
d: `M ${e.x + 26} ${e.y + 26} L ${e.x + 26} ${e.y + 4} L ${e.x + 28} ${e.y + 2} L ${e.x + 30} ${e.y + 4} L ${e.x + 30} ${e.y + 26} L ${e.x + 28} ${e.y + 28} L ${e.x + 26} ${e.y + 26}`,
|
|
63
|
-
fill: t.value[1] == 1 ? e.color : e.backgroundColor,
|
|
64
|
-
stroke: "none"
|
|
65
|
-
}, null, 8, F),
|
|
66
|
-
l("path", {
|
|
67
|
-
d: `M ${e.x + 26} ${e.y + 56} L ${e.x + 26} ${e.y + 34} L ${e.x + 28} ${e.y + 32} L ${e.x + 30} ${e.y + 34} L ${e.x + 30} ${e.y + 56} L ${e.x + 28} ${e.y + 58} L ${e.x + 26} ${e.y + 56}`,
|
|
68
|
-
fill: t.value[2] == 1 ? e.color : e.backgroundColor,
|
|
69
|
-
stroke: "none"
|
|
70
|
-
}, null, 8, X),
|
|
71
|
-
l("path", {
|
|
72
|
-
d: `M ${e.x + 2} ${e.y + 58} L ${e.x} ${e.y + 60} L ${e.x + 2} ${e.y + 62} L ${e.x + 24} ${e.y + 62} L ${e.x + 26} ${e.y + 60} L ${e.x + 24} ${e.y + 58} L ${e.x + 2} ${e.y + 58}`,
|
|
73
|
-
fill: t.value[3] == 1 ? e.color : e.backgroundColor,
|
|
74
|
-
stroke: "none"
|
|
75
|
-
}, null, 8, E),
|
|
76
|
-
l("path", {
|
|
77
|
-
d: `M ${e.x} ${e.y + 34} L ${e.x - 2} ${e.y + 32} L ${e.x - 4} ${e.y + 34} L ${e.x - 4} ${e.y + 56} L ${e.x - 2} ${e.y + 58} L ${e.x} ${e.y + 56} L ${e.x} ${e.y + 34}`,
|
|
78
|
-
fill: t.value[4] == 1 ? e.color : e.backgroundColor,
|
|
79
|
-
stroke: "none"
|
|
80
|
-
}, null, 8, I),
|
|
81
|
-
l("path", {
|
|
82
|
-
d: `M ${e.x - 2} ${e.y + 2} L ${e.x} ${e.y + 4} L ${e.x} ${e.y + 26} L ${e.x - 2} ${e.y + 28} L ${e.x - 4} ${e.y + 26} L ${e.x - 4} ${e.y + 4} L ${e.x - 2} ${e.y + 2}`,
|
|
83
|
-
fill: t.value[5] == 1 ? e.color : e.backgroundColor,
|
|
84
|
-
stroke: "none"
|
|
85
|
-
}, null, 8, O),
|
|
86
|
-
l("path", {
|
|
87
|
-
d: `M ${e.x + 2} ${e.y + 28} L ${e.x} ${e.y + 30} L ${e.x + 2} ${e.y + 32} L ${e.x + 24} ${e.y + 32} L ${e.x + 26} ${e.y + 30} L ${e.x + 24} ${e.y + 28} L ${e.x + 2} ${e.y + 28}`,
|
|
88
|
-
fill: t.value[6] == 1 ? e.color : e.backgroundColor,
|
|
89
|
-
stroke: "none"
|
|
90
|
-
}, null, 8, A)
|
|
91
|
-
])),
|
|
92
|
-
e.quanta == "." ? ($(), i("g", D, [
|
|
93
|
-
l("circle", {
|
|
94
|
-
cx: e.x - 8,
|
|
95
|
-
cy: e.y + 60,
|
|
96
|
-
r: 3,
|
|
97
|
-
fill: e.color
|
|
98
|
-
}, null, 8, G)
|
|
99
|
-
])) : o("", !0)
|
|
100
|
-
], 64));
|
|
101
|
-
}
|
|
102
|
-
}, j = ["xmlns", "viewBox"], U = {
|
|
103
|
-
__name: "vue-ui-digits",
|
|
104
|
-
props: {
|
|
105
|
-
dataset: {
|
|
106
|
-
type: Number,
|
|
107
|
-
default: 0
|
|
108
|
-
},
|
|
109
|
-
config: {
|
|
110
|
-
type: Object,
|
|
111
|
-
default() {
|
|
112
|
-
return {};
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
setup(e) {
|
|
117
|
-
const { vue_ui_digits: c } = q(), u = e, t = d(() => M({
|
|
118
|
-
userConfig: u.config,
|
|
119
|
-
defaultConfig: c
|
|
120
|
-
})), y = d(() => {
|
|
121
|
-
const a = (u.dataset || 0).toString().split(""), x = [], n = {
|
|
122
|
-
x: 10,
|
|
123
|
-
y: 10
|
|
124
|
-
};
|
|
125
|
-
let L = 0;
|
|
126
|
-
for (let f = 0; f < a.length; f += 1) {
|
|
127
|
-
const h = a[f];
|
|
128
|
-
x.push({
|
|
129
|
-
x: n.x + L,
|
|
130
|
-
y: n.y,
|
|
131
|
-
quanta: h
|
|
132
|
-
}), h == "." ? L += 2 : L += 44;
|
|
133
|
-
}
|
|
134
|
-
return x;
|
|
135
|
-
}), g = d(() => Math.max(...y.value.map((a) => a.x)) + 36);
|
|
136
|
-
return (a, x) => ($(), i("svg", {
|
|
137
|
-
class: "vue-data-ui-component vue-ui-digits",
|
|
138
|
-
xmlns: C(S),
|
|
139
|
-
viewBox: `0 0 ${g.value} 80`,
|
|
140
|
-
style: k(`background:${t.value.backgroundColor};${t.value.height ? `height:${t.value.height};` : ""}${t.value.width ? `width:${t.value.width}` : ""}`)
|
|
141
|
-
}, [
|
|
142
|
-
($(!0), i(m, null, b(y.value, (n) => ($(), N(V, {
|
|
143
|
-
x: n.x,
|
|
144
|
-
y: n.y,
|
|
145
|
-
quanta: n.quanta,
|
|
146
|
-
color: t.value.digits.color,
|
|
147
|
-
backgroundColor: t.value.digits.skeletonColor
|
|
148
|
-
}, null, 8, ["x", "y", "quanta", "color", "backgroundColor"]))), 256))
|
|
149
|
-
], 12, j));
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
export {
|
|
153
|
-
U as default
|
|
154
|
-
};
|