vue-data-ui 3.0.15 → 3.0.17
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-DGSYU08F.js → Arrow-BUPQR2G4.js} +1 -1
- package/dist/{BaseDraggableDialog-C8qz7ExB.js → BaseDraggableDialog-CzkHS5si.js} +2 -2
- package/dist/{BaseIcon-BA3j_Lwf.js → BaseIcon-xyB9D1pA.js} +1 -1
- package/dist/{ColorPicker-sW0pMaCb.js → ColorPicker-Cb4Flxwu.js} +2 -2
- package/dist/{DataTable-Co-fVzdq.js → DataTable-D5jcKSEP.js} +2 -2
- package/dist/{Legend-NBffBBnn.js → Legend-cvVLEFcw.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CWsUFLND.js → NonSvgPenAndPaper-yPGrFiQ4.js} +3 -3
- package/dist/{PackageVersion-DkN4tXY6.js → PackageVersion-CvI7dfPE.js} +1 -1
- package/dist/{PenAndPaper-C5tGS7J9.js → PenAndPaper-ByuyUNh2.js} +3 -3
- package/dist/{Shape-Bgg7Nwsz.js → Shape-Dn4xCkhb.js} +1 -1
- package/dist/{Slicer-DzsOD_6h.js → Slicer-D6stZJ6_.js} +2 -2
- package/dist/{SparkTooltip-Cfx3n0pP.js → SparkTooltip-BJpOcNPA.js} +1 -1
- package/dist/{Title-Cdu-aDOL.js → Title-D_WUff_Y.js} +1 -1
- package/dist/{Tooltip-mB2Rs1Vj.js → Tooltip-CZV_BR2c.js} +1 -1
- package/dist/{UserOptions-BMoiHEKE.js → UserOptions-ZcUANK_c.js} +2 -2
- package/dist/{dom-to-png-DzfS79Op.js → dom-to-png-B_c5U1KX.js} +1 -1
- package/dist/{img-7sjXtnNU.js → img-CUZp-9tT.js} +1 -1
- package/dist/{index-CjmWQAkv.js → index-FPxvoief.js} +1 -1
- package/dist/{pdf-BepSOa2A.js → pdf-BQdP4qEx.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useAutoSizeLabelsInsideViewbox-BOEYVAI_.js +55 -0
- package/dist/{useNestedProp-DFYUwW_F.js → useNestedProp-DzVMdkPE.js} +1 -1
- package/dist/{usePrinter-BD_X6xEq.js → usePrinter-M0JhvX8r.js} +2 -2
- package/dist/{vue-data-ui-BHC_kJCP.js → vue-data-ui-BtZ0NkLV.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CvM_pNPs.js → vue-ui-3d-bar-68r5eL4m.js} +6 -6
- package/dist/{vue-ui-accordion-BOmbEAe4.js → vue-ui-accordion-u-pE5AEw.js} +3 -3
- package/dist/{vue-ui-age-pyramid-2GEKVOIu.js → vue-ui-age-pyramid-CZgDP5ON.js} +6 -6
- package/dist/{vue-ui-annotator-ULK7i_cb.js → vue-ui-annotator-ykVZA4ga.js} +2 -2
- package/dist/{vue-ui-bullet-CtrrTkUl.js → vue-ui-bullet-BKZe1klo.js} +7 -7
- package/dist/{vue-ui-candlestick-C8_qIKhP.js → vue-ui-candlestick-BiEnPu20.js} +7 -7
- package/dist/{vue-ui-carousel-table-C5-I9TDG.js → vue-ui-carousel-table-DizqUzW2.js} +4 -4
- package/dist/{vue-ui-chestnut-DbGjz6NE.js → vue-ui-chestnut-Db9AmXXR.js} +5 -5
- package/dist/{vue-ui-chord-DSav5VH4.js → vue-ui-chord-D_Fu289O.js} +8 -8
- package/dist/{vue-ui-circle-pack-Ost-SfPy.js → vue-ui-circle-pack-_2rvcgPO.js} +6 -6
- package/dist/{vue-ui-cursor-CvvBIdhO.js → vue-ui-cursor-BGUkW6bz.js} +2 -2
- package/dist/{vue-ui-dashboard-B6jTz1V8.js → vue-ui-dashboard-CACU8tqW.js} +62 -62
- package/dist/{vue-ui-digits-DW4j5hMp.js → vue-ui-digits-B4-KFEj0.js} +2 -2
- package/dist/{vue-ui-donut-CQgVEHBd.js → vue-ui-donut-B1GmuATW.js} +8 -8
- package/dist/{vue-ui-donut-evolution-3Kg_0Aq8.js → vue-ui-donut-evolution-BQe6iCFb.js} +8 -8
- package/dist/{vue-ui-dumbbell-B0RA0uh4.js → vue-ui-dumbbell-hAgVOFYv.js} +7 -7
- package/dist/{vue-ui-flow-mfN9qv9u.js → vue-ui-flow-Cjw1F1EQ.js} +7 -7
- package/dist/{vue-ui-funnel-By1EE6eQ.js → vue-ui-funnel-DxN3_Q5d.js} +6 -6
- package/dist/{vue-ui-galaxy-DUnLy7nU.js → vue-ui-galaxy-CcXisqah.js} +5 -5
- package/dist/{vue-ui-gauge-B9s5assa.js → vue-ui-gauge-DM4t5Y_a.js} +7 -7
- package/dist/{vue-ui-gizmo-D5nFPB5S.js → vue-ui-gizmo-CbwGU4tH.js} +3 -3
- package/dist/{vue-ui-heatmap-B99sMjxs.js → vue-ui-heatmap-DagGZ1a2.js} +7 -7
- package/dist/{vue-ui-history-plot-BcnKJSTL.js → vue-ui-history-plot-C_8thHuP.js} +7 -7
- package/dist/{vue-ui-kpi-BoiQMCdn.js → vue-ui-kpi-BabguWm3.js} +3 -3
- package/dist/{vue-ui-mini-loader-Fd0upr6u.js → vue-ui-mini-loader-8rpOo_4B.js} +2 -2
- package/dist/{vue-ui-molecule-C8U7G10y.js → vue-ui-molecule-DZ0O2nx-.js} +5 -5
- package/dist/{vue-ui-mood-radar-83Su_aAf.js → vue-ui-mood-radar-xSf3Dq2u.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BT9ZqiqC.js → vue-ui-nested-donuts-BLudObDe.js} +7 -7
- package/dist/{vue-ui-onion-9JIdWtsY.js → vue-ui-onion-FxCDw1HB.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-C1FjeIr0.js → vue-ui-parallel-coordinate-plot-BF3CHzSy.js} +8 -8
- package/dist/{vue-ui-quadrant-3WUBK3nJ.js → vue-ui-quadrant-DYADhMJO.js} +8 -8
- package/dist/{vue-ui-quick-chart-DY43gV8A.js → vue-ui-quick-chart-Bu-fq-bT.js} +6 -6
- package/dist/{vue-ui-radar-C4KMiQ_0.js → vue-ui-radar-CfRc8umQ.js} +8 -8
- package/dist/{vue-ui-rating-BvD7AC9t.js → vue-ui-rating-Clq7xuBB.js} +2 -2
- package/dist/{vue-ui-relation-circle-CkJugcvo.js → vue-ui-relation-circle-C-bGpsP0.js} +203 -194
- package/dist/{vue-ui-ridgeline-BWWwyiku.js → vue-ui-ridgeline-AjzApr3m.js} +8 -8
- package/dist/{vue-ui-rings--RHm1WPt.js → vue-ui-rings-1Pj_2A9U.js} +8 -8
- package/dist/{vue-ui-scatter-BlJi3Vto.js → vue-ui-scatter-BHkSGYtY.js} +8 -8
- package/dist/{vue-ui-skeleton-BpaC2poA.js → vue-ui-skeleton-uolO3H7L.js} +3 -3
- package/dist/{vue-ui-smiley-DFQ-eGPr.js → vue-ui-smiley-C42TbD2C.js} +2 -2
- package/dist/{vue-ui-spark-trend-DBvs77p7.js → vue-ui-spark-trend-CGWWYkOY.js} +3 -3
- package/dist/{vue-ui-sparkbar-5-xCacnj.js → vue-ui-sparkbar-DHX5aYQt.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B_Hahm_m.js → vue-ui-sparkgauge-DToUIHu1.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CE3o-lRl.js → vue-ui-sparkhistogram-gFxgNqYu.js} +4 -4
- package/dist/{vue-ui-sparkline-RzY__SHu.js → vue-ui-sparkline-72DukbMK.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-mf1_NIVO.js → vue-ui-sparkstackbar-DDXK9P4e.js} +3 -3
- package/dist/{vue-ui-stackbar-e0_-TwRA.js → vue-ui-stackbar-rx0Fxh0e.js} +9 -9
- package/dist/{vue-ui-strip-plot-DNF_a6tQ.js → vue-ui-strip-plot-5dsRP2yk.js} +7 -7
- package/dist/{vue-ui-table-DyRQD9Jx.js → vue-ui-table-ByG9jsR_.js} +3 -3
- package/dist/{vue-ui-table-heatmap-D0khMn8L.js → vue-ui-table-heatmap-CwRQnjOd.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CrEJ_BYI.js → vue-ui-table-sparkline-CMW71OVJ.js} +4 -4
- package/dist/{vue-ui-thermometer-WWlRC1pG.js → vue-ui-thermometer-D6ShCr7E.js} +7 -7
- package/dist/{vue-ui-timer-DFrFvU8Z.js → vue-ui-timer-Cq8IiIq0.js} +5 -5
- package/dist/{vue-ui-tiremarks-BcGXDBHM.js → vue-ui-tiremarks-DN1kPCuc.js} +6 -6
- package/dist/{vue-ui-treemap-CISOrlRD.js → vue-ui-treemap-DMAe9tkY.js} +8 -8
- package/dist/{vue-ui-vertical-bar-BIGQJhXk.js → vue-ui-vertical-bar-CFAQnB5o.js} +9 -9
- package/dist/{vue-ui-waffle-ZR7fefhR.js → vue-ui-waffle-CDxiee8r.js} +8 -8
- package/dist/{vue-ui-wheel-DRp9k9JL.js → vue-ui-wheel-DU-LT0Eh.js} +6 -6
- package/dist/{vue-ui-word-cloud-jlqVnKu7.js → vue-ui-word-cloud-Bpyb6-d9.js} +6 -6
- package/dist/{vue-ui-world-PWs6PTyh.js → vue-ui-world-DxrhbFBm.js} +6 -6
- package/dist/vue-ui-xy-Dr406GVq.js +4068 -0
- package/dist/{vue-ui-xy-canvas-JxDjG7z8.js → vue-ui-xy-canvas-pI2s0gPy.js} +8 -8
- package/package.json +1 -1
- package/dist/useAutoSizeLabelsInsideViewbox-iRzr0rIq.js +0 -81
- package/dist/vue-ui-xy-D9GnZXb-.js +0 -4044
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineAsyncComponent as ee, ref as d, computed as L, useSlots as Ga, onMounted as sa, watch as N, nextTick as na, shallowRef as ze, onBeforeUnmount as Za, createElementBlock as ie, openBlock as S, unref as p, normalizeClass as ja, normalizeStyle as ae, createCommentVNode as H, createElementVNode as B, createBlock as R, createSlots as qa, withCtx as x, renderSlot as k, normalizeProps as V, guardReactiveProps as G, createVNode as Ja, Teleport as Ka, toDisplayString as ia, createTextVNode as Qa } from "vue";
|
|
2
|
-
import { u as el, c as al, a as ll, p as Z, b as tl, C as pe, d as ol, D as $e, k as le, i as te, e as va, a4 as rl, G as ul, ae as sl, o as nl, f as il, y as ca, v as vl, w as cl, z as dl, s as ve, l as hl } from "./index-
|
|
2
|
+
import { u as el, c as al, a as ll, p as Z, b as tl, C as pe, d as ol, D as $e, k as le, i as te, e as va, a4 as rl, G as ul, ae as sl, o as nl, f as il, y as ca, v as vl, w as cl, z as dl, s as ve, l as hl } from "./index-FPxvoief.js";
|
|
3
3
|
import { d as yl, t as fl, u as gl, c as pl, a as da, l as C, r as Ie, b as P, p as ha } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ya } from "./useNestedProp-
|
|
5
|
-
import { u as ml } from "./usePrinter-
|
|
4
|
+
import { u as ya } from "./useNestedProp-DzVMdkPE.js";
|
|
5
|
+
import { u as ml } from "./usePrinter-M0JhvX8r.js";
|
|
6
6
|
import { u as bl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as xl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Ll from "./Legend-
|
|
9
|
-
import kl from "./Title-
|
|
10
|
-
import { S as Cl } from "./Slicer-
|
|
8
|
+
import Ll from "./Legend-cvVLEFcw.js";
|
|
9
|
+
import kl from "./Title-D_WUff_Y.js";
|
|
10
|
+
import { S as Cl } from "./Slicer-D6stZJ6_.js";
|
|
11
11
|
import { u as wl } from "./useTimeLabels-4la0yDx0.js";
|
|
12
|
-
import Sl from "./img-
|
|
12
|
+
import Sl from "./img-CUZp-9tT.js";
|
|
13
13
|
import { _ as zl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const $l = ["id"], Il = ["id"], Ml = ["id"], Tl = ["onClick"], Ol = {
|
|
15
15
|
key: 3,
|
|
@@ -32,7 +32,7 @@ const $l = ["id"], Il = ["id"], Ml = ["id"], Tl = ["onClick"], Ol = {
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
34
|
setup(Me, { expose: fa, emit: ga }) {
|
|
35
|
-
const pa = ee(() => import("./vue-ui-accordion-
|
|
35
|
+
const pa = ee(() => import("./vue-ui-accordion-u-pE5AEw.js")), ma = ee(() => import("./DataTable-D5jcKSEP.js")), ba = ee(() => import("./NonSvgPenAndPaper-yPGrFiQ4.js")), xa = ee(() => import("./vue-ui-skeleton-uolO3H7L.js")), La = ee(() => import("./Tooltip-CZV_BR2c.js")), ka = ee(() => import("./UserOptions-ZcUANK_c.js")), { vue_ui_xy_canvas: Ca } = el(), g = Me, Y = d(al()), F = d(null), oe = d(null), n = d(null), y = d(1), E = d(1), ce = d(!1), c = d(null), de = d(""), Te = d(null), $ = d([]), j = d(1), _ = d(!0), q = d(!0), me = d(null), Oe = d(0), Re = d(0), he = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), De = d(!1), ke = L(() => !!g.dataset && g.dataset.length), wa = ga, Sa = Ga();
|
|
36
36
|
sa(() => {
|
|
37
37
|
Sa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
38
38
|
});
|
package/package.json
CHANGED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { a1 as K } from "./index-CjmWQAkv.js";
|
|
2
|
-
function q({
|
|
3
|
-
svgRef: S,
|
|
4
|
-
fontSize: A,
|
|
5
|
-
minFontSize: z,
|
|
6
|
-
sizeRef: b,
|
|
7
|
-
labelClass: B,
|
|
8
|
-
labelTypes: m = []
|
|
9
|
-
}) {
|
|
10
|
-
let y = null;
|
|
11
|
-
function g(e) {
|
|
12
|
-
let n = e[0];
|
|
13
|
-
for (let t = 1; t < e.length; t += 1) e[t] < n && (n = e[t]);
|
|
14
|
-
return n;
|
|
15
|
-
}
|
|
16
|
-
function w(e) {
|
|
17
|
-
let n = e[0];
|
|
18
|
-
for (let t = 1; t < e.length; t += 1) e[t] > n && (n = e[t]);
|
|
19
|
-
return n;
|
|
20
|
-
}
|
|
21
|
-
function F(e) {
|
|
22
|
-
const n = e.ownerSVGElement;
|
|
23
|
-
if (!n) return { x: 0, y: 0, width: 0, height: 0 };
|
|
24
|
-
const t = e.getBBox(), o = e.getCTM(), s = [
|
|
25
|
-
{ x: t.x, y: t.y },
|
|
26
|
-
{ x: t.x + t.width, y: t.y },
|
|
27
|
-
{ x: t.x, y: t.y + t.height },
|
|
28
|
-
{ x: t.x + t.width, y: t.y + t.height }
|
|
29
|
-
].map((c) => {
|
|
30
|
-
const a = n.createSVGPoint();
|
|
31
|
-
a.x = c.x, a.y = c.y;
|
|
32
|
-
const l = o ? a.matrixTransform(o) : a;
|
|
33
|
-
return { x: l.x, y: l.y };
|
|
34
|
-
}), u = s.map((c) => c.x), r = s.map((c) => c.y), i = g(u), h = w(u), f = g(r), x = w(r);
|
|
35
|
-
return { x: i, y: f, width: h - i, height: x - f };
|
|
36
|
-
}
|
|
37
|
-
function O(e, n, t = 1) {
|
|
38
|
-
const { x: o, y: s, width: u, height: r } = F(e), i = o >= n.x + t, h = o + u <= n.x + n.width - t, f = s >= n.y + t, x = s + r <= n.y + n.height - t;
|
|
39
|
-
return i && h && f && x;
|
|
40
|
-
}
|
|
41
|
-
function d(e, n, t, o, s = 120, u = 1) {
|
|
42
|
-
let r = t, i = 0;
|
|
43
|
-
for (; i < s && (e.setAttribute("font-size", r), !(O(e, n, u) || r <= o)); )
|
|
44
|
-
r -= 0.5, i += 1;
|
|
45
|
-
return r < o ? o : r;
|
|
46
|
-
}
|
|
47
|
-
function p() {
|
|
48
|
-
const e = S.value;
|
|
49
|
-
if (!e) return;
|
|
50
|
-
const [n, t, o, s] = e.getAttribute("viewBox").split(" ").map(Number), u = { x: n, y: t, width: o, height: s };
|
|
51
|
-
m.length || (m = [
|
|
52
|
-
{
|
|
53
|
-
selector: B,
|
|
54
|
-
baseSize: A,
|
|
55
|
-
minSize: z,
|
|
56
|
-
sizeRef: b
|
|
57
|
-
}
|
|
58
|
-
]), m.map((i) => e.querySelectorAll(i.selector).length).reduce((i, h) => i + h, 0) !== 0 && m.forEach(({ selector: i, baseSize: h, minSize: f, sizeRef: x }) => {
|
|
59
|
-
e.querySelectorAll(i).forEach((c) => {
|
|
60
|
-
const a = K({
|
|
61
|
-
el: c,
|
|
62
|
-
bounds: u,
|
|
63
|
-
currentFontSize: h,
|
|
64
|
-
minFontSize: f,
|
|
65
|
-
attempts: 200,
|
|
66
|
-
padding: 1
|
|
67
|
-
}), l = d(c, u, a, f, 120, 1);
|
|
68
|
-
c.setAttribute("font-size", l), x.value = l;
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function v() {
|
|
73
|
-
y && cancelAnimationFrame(y), y = requestAnimationFrame(() => {
|
|
74
|
-
y = null, p();
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return { autoSizeLabels: v };
|
|
78
|
-
}
|
|
79
|
-
export {
|
|
80
|
-
q as u
|
|
81
|
-
};
|