vue-data-ui 2.0.32 → 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-d6da2a7d.js")).catch(function(l) {
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
- console.log(a.value);
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: s,
38137
- max: f,
38138
- diff: c
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 s() {
38143
- n.value += i.value, n.value < t.dataset.value ? requestAnimationFrame(s) : n.value = t.dataset.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, s());
38143
+ r.value.style.animation.show && (n.value = o.value.min, f());
38146
38144
  });
38147
- const u = fe(() => t.dataset.title ?? ""), A = fe(() => n.value >= 0 ? (n.value - o.value.min) / o.value.diff : (Math.abs(o.value.min) - Math.abs(n.value)) / o.value.diff), h = fe(() => gA(r.value.style.colors.min, r.value.style.colors.max, o.value.min, o.value.max, n.value)), y = fe(() => r.value.style.dataLabel.autoColor ? h.value : r.value.style.dataLabel.color), w = fe(() => r.value.style.track.autoColor ? h.value : r.value.style.track.color);
38148
- return (s, f) => (v(), g("div", {
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 && u.value && r.value.style.title.position === "top" ? (v(), g("div", {
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
- 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"};©`)
38155
- }, I(u.value), 5)) : M("", !0),
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}`)
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
- A.value !== 0 ? (v(), g("path", {
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: w.value,
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 * A.value,
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: y.value,
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 && u.value && r.value.style.title.position === "bottom" ? (v(), g("div", {
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
- 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"}`)
38192
- }, I(u.value), 5)) : M("", !0)
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}`)
38190
+ }, I(A.value), 5)) : M("", !0)
38193
38191
  ], 4));
38194
38192
  }
38195
38193
  };
@@ -1,4 +1,4 @@
1
- import { _ as Ha } from "./index-11f08b5a.js";
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) {
@@ -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-11f08b5a.js";
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,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "2.0.32",
4
+ "version": "2.0.34",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue components library",
7
7
  "keywords": [