vue-data-ui 2.0.33 → 2.0.34
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.
|
@@ -12820,7 +12820,7 @@ function(e) {
|
|
|
12820
12820
|
*/
|
|
12821
12821
|
function(e) {
|
|
12822
12822
|
function t() {
|
|
12823
|
-
return (ct.canvg ? Promise.resolve(ct.canvg) : import("./index.es-
|
|
12823
|
+
return (ct.canvg ? Promise.resolve(ct.canvg) : import("./index.es-d9e77ce3.js")).catch(function(l) {
|
|
12824
12824
|
return Promise.reject(new Error("Could not load canvg: " + l));
|
|
12825
12825
|
}).then(function(l) {
|
|
12826
12826
|
return l.default ? l.default : l;
|
|
@@ -38128,31 +38128,29 @@ const rD = ["viewBox"], nD = ["d", "stroke", "stroke-linecap"], sD = ["d", "stro
|
|
|
38128
38128
|
height: r.value.style.height,
|
|
38129
38129
|
width: 128,
|
|
38130
38130
|
base: r.value.style.basePosition
|
|
38131
|
-
}))
|
|
38132
|
-
|
|
38133
|
-
const o = fe(() => {
|
|
38134
|
-
const s = t.dataset.min ?? 0, f = t.dataset.max ?? 0, c = f - s;
|
|
38131
|
+
})), o = fe(() => {
|
|
38132
|
+
const f = t.dataset.min ?? 0, c = t.dataset.max ?? 0, x = c - f;
|
|
38135
38133
|
return {
|
|
38136
|
-
min:
|
|
38137
|
-
max:
|
|
38138
|
-
diff:
|
|
38134
|
+
min: f,
|
|
38135
|
+
max: c,
|
|
38136
|
+
diff: x
|
|
38139
38137
|
};
|
|
38140
|
-
}), n = q(r.value.style.animation.show ? o.value.min : t.dataset.value), i = fe(() => o.value.diff / r.value.style.animation.speedMs);
|
|
38138
|
+
}), n = q(r.value.style.animation.show ? o.value.min : t.dataset.value), i = fe(() => n.value > o.value.max ? o.value.max : n.value < o.value.min ? o.value.min : n.value), u = fe(() => o.value.diff / r.value.style.animation.speedMs);
|
|
38141
38139
|
Xo(() => {
|
|
38142
|
-
function
|
|
38143
|
-
n.value +=
|
|
38140
|
+
function f() {
|
|
38141
|
+
n.value += u.value, n.value < t.dataset.value ? requestAnimationFrame(f) : n.value = t.dataset.value;
|
|
38144
38142
|
}
|
|
38145
|
-
r.value.style.animation.show && (n.value = o.value.min,
|
|
38143
|
+
r.value.style.animation.show && (n.value = o.value.min, f());
|
|
38146
38144
|
});
|
|
38147
|
-
const
|
|
38148
|
-
return (
|
|
38145
|
+
const A = fe(() => t.dataset.title ?? ""), h = fe(() => n.value >= 0 ? (i.value - o.value.min) / o.value.diff : (Math.abs(o.value.min) - Math.abs(i.value)) / o.value.diff), y = fe(() => gA(r.value.style.colors.min, r.value.style.colors.max, o.value.min, o.value.max, n.value)), w = fe(() => r.value.style.dataLabel.autoColor ? y.value : r.value.style.dataLabel.color), s = fe(() => r.value.style.track.autoColor ? y.value : r.value.style.track.color);
|
|
38146
|
+
return (f, c) => (v(), g("div", {
|
|
38149
38147
|
style: T(`font-family:${r.value.style.fontFamily};width: 100%; background:${r.value.style.background}`)
|
|
38150
38148
|
}, [
|
|
38151
|
-
r.value.style.title.show &&
|
|
38149
|
+
r.value.style.title.show && A.value && r.value.style.title.position === "top" ? (v(), g("div", {
|
|
38152
38150
|
key: 0,
|
|
38153
38151
|
class: "vue-data-ui-sparkgauge-label",
|
|
38154
38152
|
style: T(`font-size:${r.value.style.title.fontSize}px;text-align:${r.value.style.title.textAlign};font-weight:${r.value.style.title.bold ? "bold" : "normal"};color:${r.value.style.title.color}`)
|
|
38155
|
-
}, I(
|
|
38153
|
+
}, I(A.value), 5)) : M("", !0),
|
|
38156
38154
|
(v(), g("svg", {
|
|
38157
38155
|
viewBox: `0 0 ${a.value.width} ${a.value.height}`,
|
|
38158
38156
|
style: T(`overflow: visible; background:${r.value.style.background}; width:100%;`)
|
|
@@ -38164,15 +38162,15 @@ const rD = ["viewBox"], nD = ["d", "stroke", "stroke-linecap"], sD = ["d", "stro
|
|
|
38164
38162
|
"stroke-linecap": r.value.style.gutter.strokeLinecap,
|
|
38165
38163
|
fill: "none"
|
|
38166
38164
|
}, null, 8, nD),
|
|
38167
|
-
|
|
38165
|
+
h.value !== 0 ? (v(), g("path", {
|
|
38168
38166
|
key: 0,
|
|
38169
38167
|
d: `M10 ${a.value.base} A 1 1 0 1 1 118 ${a.value.base}`,
|
|
38170
|
-
stroke:
|
|
38168
|
+
stroke: s.value,
|
|
38171
38169
|
"stroke-width": 8,
|
|
38172
38170
|
"stroke-linecap": r.value.style.track.strokeLinecap,
|
|
38173
38171
|
fill: "none",
|
|
38174
38172
|
"stroke-dasharray": 169.5,
|
|
38175
|
-
"stroke-dashoffset": 169.5 - 169.5 *
|
|
38173
|
+
"stroke-dashoffset": 169.5 - 169.5 * h.value,
|
|
38176
38174
|
class: Ee({ "vue-ui-sparkgauge-track": r.value.style.animation.show }),
|
|
38177
38175
|
style: T(r.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${r.value.style.animation.speedMs}ms ease-in;` : "")
|
|
38178
38176
|
}, null, 14, sD)) : M("", !0),
|
|
@@ -38181,15 +38179,15 @@ const rD = ["viewBox"], nD = ["d", "stroke", "stroke-linecap"], sD = ["d", "stro
|
|
|
38181
38179
|
x: a.value.width / 2,
|
|
38182
38180
|
y: a.value.base + 6 + r.value.style.dataLabel.offsetY,
|
|
38183
38181
|
"font-size": r.value.style.dataLabel.fontSize,
|
|
38184
|
-
fill:
|
|
38182
|
+
fill: w.value,
|
|
38185
38183
|
"font-weight": r.value.style.dataLabel.bold ? "bold" : "normal"
|
|
38186
38184
|
}, I(xe(Bt)({ p: r.value.style.dataLabel.prefix, v: n.value, s: r.value.style.dataLabel.suffix, r: r.value.style.dataLabel.rounding })), 9, iD)
|
|
38187
38185
|
], 12, rD)),
|
|
38188
|
-
r.value.style.title.show &&
|
|
38186
|
+
r.value.style.title.show && A.value && r.value.style.title.position === "bottom" ? (v(), g("div", {
|
|
38189
38187
|
key: 1,
|
|
38190
38188
|
class: "vue-data-ui-sparkgauge-label",
|
|
38191
38189
|
style: T(`font-size:${r.value.style.title.fontSize}px;text-align:${r.value.style.title.textAlign};font-weight:${r.value.style.title.bold ? "bold" : "normal"};font-weight:${r.value.style.title.bold ? "bold" : "normal"};color:${r.value.style.title.color}`)
|
|
38192
|
-
}, I(
|
|
38190
|
+
}, I(A.value), 5)) : M("", !0)
|
|
38193
38191
|
], 4));
|
|
38194
38192
|
}
|
|
38195
38193
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as Ha } from "./index-
|
|
1
|
+
import { _ as Ha } from "./index-eb72d5ca.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function Vo(a) {
|
package/dist/vue-data-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as s, F as u, p as V, s as U, o as r, g as t, r as o, G as n, b as l, C as S, f as d, m as g, D as k, J as m, H as p, E as c, L as D, h as b, e as h, d as f, k as C, u as R, z as T, n as y, j as A, l as M, t as B, y as H, x as v, q as w, M as x, S as E, a as G, T as I, w as L, B as W, i as j, c as q, A as z, v as F, K as J } from "./index-
|
|
1
|
+
import { I as s, F as u, p as V, s as U, o as r, g as t, r as o, G as n, b as l, C as S, f as d, m as g, D as k, J as m, H as p, E as c, L as D, h as b, e as h, d as f, k as C, u as R, z as T, n as y, j as A, l as M, t as B, y as H, x as v, q as w, M as x, S as E, a as G, T as I, w as L, B as W, i as j, c as q, A as z, v as F, K as J } from "./index-eb72d5ca.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
export {
|
|
4
4
|
s as Arrow,
|