vue-data-ui 2.17.0 → 2.17.2
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 +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-Dr2lyXds.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-C2f-EcZc.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-D-JmDe31.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-6BxhjBzt.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-1R-B-7st.js} +11 -11
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-CIX1W_aa.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-CqJ4wudB.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-DJKQgAbU.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-Dju6LE-h.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-D2mROH3o.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-BQb7X_OR.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-BTnTpPdO.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-lneAyZKu.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-C-9BWdwN.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-D0DpKcFX.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-JzUbx__y.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-BgVDfZPT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +65 -160
- package/dist/types/vue-data-ui.d.ts +65 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-D_jd2dz9.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-CsyliflB.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-BMv8hEcb.js} +99 -97
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-CrdssfKx.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-ZYFAAcwc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-DYzLfkYB.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-Cdu2ozig.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CCMAbLrw.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-B8Sl_FwD.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-BX6_ToJl.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
- package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-dax3dN9r.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-C7ZNBVSy.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-BeLwkeHo.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BywaRLZR.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-DYavEd4o.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-DwQRlRWp.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-CjRczit6.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-cRy0tcES.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-D8aTdU23.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-4MeyWn0c.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-DJmgRVT2.js} +126 -119
- package/dist/vue-ui-nested-donuts-CgaPLxV2.js +1177 -0
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-swDxtTT3.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-CLf81ioF.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-smKrpIwq.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-D8CIvG2q.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-YZivkWBI.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-DsEYbNs_.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-Do6C5lMY.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-CMryJR1g.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-BtLKWQbX.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-Bk3Bbzjk.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-BNMDY4GI.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-JG0B8HuS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-DkldIXw7.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-FPtGzTGi.js} +127 -120
- package/dist/vue-ui-treemap-BA5wC5Bs.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-DUJWYMRn.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-BIngg99N.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-l5U2UH9c.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-CTKuxhFY.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-Dx5O9Is5.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-JjA1CMAo.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-CH82b2Lp.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-donut-CKa7nFjt.js +0 -1324
- package/dist/vue-ui-nested-donuts-D0RgFifU.js +0 -1163
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useCssVars as Ke, computed as y, defineAsyncComponent as
|
|
2
|
-
import { u as it, c as at, t as nt, p as xe, a as rt, b as ut, o as ot, e as $e, g as ct, X as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as Ce } from "./useNestedProp-
|
|
5
|
-
import { u as yt } from "./usePrinter-
|
|
1
|
+
import { useCssVars as Ke, computed as y, defineAsyncComponent as E, ref as o, watch as Qe, shallowRef as be, onMounted as Ze, onBeforeUnmount as et, createElementBlock as r, openBlock as i, unref as n, normalizeStyle as O, createBlock as F, createCommentVNode as v, createSlots as tt, withCtx as S, renderSlot as h, normalizeProps as B, guardReactiveProps as T, normalizeClass as H, createVNode as lt, createElementVNode as st, Fragment as z, renderList as A, mergeProps as we, toDisplayString as N } from "vue";
|
|
2
|
+
import { u as it, c as at, t as nt, p as xe, a as rt, b as ut, o as ot, e as $e, g as ct, X as dt, F as _e, i as J, f as K, E as Q } from "./index-JzUbx__y.js";
|
|
3
|
+
import { t as vt, u as ft } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ce } from "./useNestedProp-D_jd2dz9.js";
|
|
5
|
+
import { u as yt } from "./usePrinter-CsyliflB.js";
|
|
6
6
|
import { u as ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as gt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import mt from "./Title-
|
|
9
|
-
import pt from "./img-
|
|
8
|
+
import mt from "./Title-BQb7X_OR.js";
|
|
9
|
+
import pt from "./img-D0DpKcFX.js";
|
|
10
10
|
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["cx", "cy", "r", "stroke", "stroke-width"], _t = { key: 1 }, Ct = ["stroke", "d", "stroke-width"], Pt = { style: { "pointer-events": "none" } }, Lt = ["cx", "cy", "fill", "r", "stroke"], Ot = ["x", "y", "fill", "font-size"], zt = { key: 2 }, At = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], It = { style: { "pointer-events": "none" } }, St = ["cx", "cy", "fill", "r", "stroke"], Mt = ["x", "y", "fill", "font-size"],
|
|
11
|
+
const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["cx", "cy", "r", "stroke", "stroke-width"], _t = { key: 1 }, Ct = ["stroke", "d", "stroke-width"], Pt = { style: { "pointer-events": "none" } }, Lt = ["cx", "cy", "fill", "r", "stroke"], Ot = ["x", "y", "fill", "font-size"], zt = { key: 2 }, At = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], It = { style: { "pointer-events": "none" } }, St = ["cx", "cy", "fill", "r", "stroke"], Mt = ["x", "y", "fill", "font-size"], Rt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], Et = ["cx", "cy", "fill", "stroke", "onClick", "r"], Ft = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
14
|
}, Bt = {
|
|
@@ -29,11 +29,11 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
29
29
|
},
|
|
30
30
|
setup(Pe, { expose: Le }) {
|
|
31
31
|
Ke((e) => ({
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
32
|
+
"695b7171": Be.value,
|
|
33
|
+
"7699e2d0": Fe.value,
|
|
34
|
+
d96a2a9c: Te.value
|
|
35
35
|
}));
|
|
36
|
-
const Oe =
|
|
36
|
+
const Oe = E(() => import("./PackageVersion-CIX1W_aa.js")), ze = E(() => import("./PenAndPaper-CqJ4wudB.js")), Ae = E(() => import("./vue-ui-skeleton-B4KQLEQy.js")), Ie = E(() => import("./UserOptions-lneAyZKu.js")), { vue_ui_relation_circle: Se } = it(), k = Pe, j = y(() => !!k.dataset && Object.keys(k.dataset).length), I = o(at()), Z = o(0), x = o(null), ee = o(null), te = o(null), le = o(null), se = o(0), l = y({
|
|
37
37
|
get: () => re(),
|
|
38
38
|
set: (e) => e
|
|
39
39
|
}), { userOptionsVisible: U, setUserOptionsVisibility: ie, keepUserOptionState: ae } = ht({ config: l.value }), { svgRef: ne } = gt({ config: l.value.style.title });
|
|
@@ -53,21 +53,21 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
53
53
|
Qe(() => k.config, (e) => {
|
|
54
54
|
l.value = re(), U.value = !l.value.userOptions.showOnChartHover, fe(), se.value += 1;
|
|
55
55
|
}, { deep: !0 });
|
|
56
|
-
const { isPrinting: ue, isImaging: oe, generatePdf: ce, generateImage:
|
|
56
|
+
const { isPrinting: ue, isImaging: oe, generatePdf: ce, generateImage: de } = yt({
|
|
57
57
|
elementId: `relation_circle_${I.value}`,
|
|
58
58
|
fileName: l.value.style.title.text || "vue-ui-relation-circle",
|
|
59
59
|
options: l.value.userOptions.print
|
|
60
|
-
}), Me = y(() => l.value.userOptions.show && !l.value.style.title.text),
|
|
60
|
+
}), Me = y(() => l.value.userOptions.show && !l.value.style.title.text), ve = y(() => ut(l.value.customPalette)), $ = o([]), m = o([]), d = o({}), p = o([]), Re = o(0), V = y(() => k.dataset.slice(0, l.value.style.limit)), C = o(l.value.style.size), g = o(l.value.style.weightLabels.size), G = o(l.value.style.plot.radius), W = o(l.value.style.labels.fontSize), u = o({
|
|
61
61
|
height: l.value.style.size,
|
|
62
62
|
width: l.value.style.size
|
|
63
|
-
}),
|
|
63
|
+
}), _ = y({
|
|
64
64
|
get() {
|
|
65
65
|
return C.value * l.value.style.circle.radiusProportion;
|
|
66
66
|
},
|
|
67
67
|
set(e) {
|
|
68
68
|
return e;
|
|
69
69
|
}
|
|
70
|
-
}),
|
|
70
|
+
}), Ee = y(() => l.value.style.links.curved), Fe = y(() => `${l.value.style.animation.speedMs}ms`), Be = y(() => _.value * 2), Te = y(() => _.value * 4), b = be(null), P = be(null);
|
|
71
71
|
Ze(() => {
|
|
72
72
|
fe(), document.getElementById(`relation_circle_${I.value}`).addEventListener("click", ye);
|
|
73
73
|
});
|
|
@@ -88,15 +88,15 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
}), l.value.responsive) {
|
|
91
|
-
const e =
|
|
91
|
+
const e = vt(() => {
|
|
92
92
|
const { width: s, height: t } = ft({
|
|
93
|
-
chart:
|
|
93
|
+
chart: x.value,
|
|
94
94
|
title: l.value.style.title.text ? ee.value : null,
|
|
95
95
|
source: te.value,
|
|
96
96
|
noTitle: le.value
|
|
97
97
|
});
|
|
98
98
|
requestAnimationFrame(() => {
|
|
99
|
-
C.value = Math.min(s, t), u.value.width = s, u.value.height = t,
|
|
99
|
+
C.value = Math.min(s, t), u.value.width = s, u.value.height = t, _.value = C.value * l.value.style.circle.radiusProportion, $.value = [], m.value = [], he(), ge(), l.value.responsiveProportionalSizing ? (g.value = Q({
|
|
100
100
|
relator: C.value,
|
|
101
101
|
adjuster: l.value.style.size,
|
|
102
102
|
source: l.value.style.weightLabels.size,
|
|
@@ -117,32 +117,32 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
117
117
|
})) : (g.value = l.value.style.weightLabels.size, G.value = l.value.style.plot.radius, W.value = l.value.style.labels.fontSize);
|
|
118
118
|
});
|
|
119
119
|
});
|
|
120
|
-
b.value && (P.value && b.value.unobserve(P.value), b.value.disconnect()), b.value = new ResizeObserver(e), P.value =
|
|
120
|
+
b.value && (P.value && b.value.unobserve(P.value), b.value.disconnect()), b.value = new ResizeObserver(e), P.value = x.value.parentNode, b.value.observe(P.value);
|
|
121
121
|
} else
|
|
122
|
-
|
|
122
|
+
$.value = [], m.value = [], he(), ge();
|
|
123
123
|
}
|
|
124
124
|
et(() => {
|
|
125
125
|
document.getElementById(`relation_circle_${I.value}`).removeEventListener("click", ye), b.value && (P.value && b.value.unobserve(P.value), b.value.disconnect());
|
|
126
126
|
});
|
|
127
127
|
function ye(e) {
|
|
128
128
|
const s = e.target;
|
|
129
|
-
s && Array.from(s.classList).includes("vue-ui-user-options") || s && Array.from(s.classList).includes("vue-ui-user-options-summary") || s && Array.from(s.classList).includes("vue-data-ui-button") || s && Array.from(s.classList).includes("vue-ui-relation-circle-legend") || (
|
|
129
|
+
s && Array.from(s.classList).includes("vue-ui-user-options") || s && Array.from(s.classList).includes("vue-ui-user-options-summary") || s && Array.from(s.classList).includes("vue-data-ui-button") || s && Array.from(s.classList).includes("vue-ui-relation-circle-legend") || (d.value = {}, p.value = []);
|
|
130
130
|
}
|
|
131
131
|
function he() {
|
|
132
132
|
const e = 6.28319 / V.value.length, s = 360 / V.value.length;
|
|
133
|
-
let t = 0,
|
|
134
|
-
V.value.forEach((f,
|
|
135
|
-
const Y = f.weights.reduce((He, Je) => He + Je, 0), q =
|
|
136
|
-
|
|
133
|
+
let t = 0, a = 0;
|
|
134
|
+
V.value.forEach((f, c) => {
|
|
135
|
+
const Y = f.weights.reduce((He, Je) => He + Je, 0), q = _.value * Math.cos(t) + u.value.width / 2, qe = _.value * Math.sin(t) + u.value.height / 2 + l.value.style.circle.offsetY;
|
|
136
|
+
$.value.push({ x: q, y: qe, ...f, color: f.color ? f.color : ve.value[c] ? ve.value[c] : xe[c], regAngle: a, totalWeight: Y }), t += e, a += s;
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
function Ne(e, s) {
|
|
140
|
-
const t = (e.x + s.x) / 2,
|
|
141
|
-
return { x: t, y:
|
|
140
|
+
const t = (e.x + s.x) / 2, a = (e.y + s.y) / 2;
|
|
141
|
+
return { x: t, y: a };
|
|
142
142
|
}
|
|
143
143
|
function ge() {
|
|
144
|
-
m.value = [],
|
|
145
|
-
|
|
144
|
+
m.value = [], $.value.forEach((e) => {
|
|
145
|
+
$.value.filter((t) => t.relations.includes(e.id)).forEach((t, a) => {
|
|
146
146
|
const f = t.relations.indexOf(e.id);
|
|
147
147
|
m.value.push({
|
|
148
148
|
weight: t.weights[f] ? t.weights[f] : 0,
|
|
@@ -166,24 +166,24 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
function je(e) {
|
|
169
|
-
const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 },
|
|
169
|
+
const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, a = { x: e.x1, y: e.y1 }, f = {
|
|
170
170
|
x: u.value.width / 2,
|
|
171
171
|
y: u.value.height / 2 + l.value.style.circle.offsetY
|
|
172
|
-
},
|
|
172
|
+
}, c = 0.5, Y = Math.pow(1 - c, 3) * s.x + 3 * Math.pow(1 - c, 2) * c * a.x + 3 * (1 - c) * Math.pow(c, 2) * f.x + Math.pow(c, 3) * t.x, q = Math.pow(1 - c, 3) * s.y + 3 * Math.pow(1 - c, 2) * c * a.y + 3 * (1 - c) * Math.pow(c, 2) * f.y + Math.pow(c, 3) * t.y;
|
|
173
173
|
return { x: Y, y: q };
|
|
174
174
|
}
|
|
175
175
|
const Ue = y(() => Math.max(...m.value.map((e) => e.weight)));
|
|
176
176
|
function Ve(e) {
|
|
177
|
-
return Object.hasOwn(
|
|
177
|
+
return Object.hasOwn(d.value, "x") ? p.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
178
178
|
}
|
|
179
179
|
function w(e) {
|
|
180
180
|
return e.colorSource;
|
|
181
181
|
}
|
|
182
182
|
function me(e) {
|
|
183
|
-
return Object.hasOwn(
|
|
183
|
+
return Object.hasOwn(d.value, "x") ? p.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}` ? `opacity:1;stroke-width:${D(e)}` : "opacity: 0" : "opacity: 1";
|
|
184
184
|
}
|
|
185
185
|
function L(e) {
|
|
186
|
-
return Object.hasOwn(
|
|
186
|
+
return Object.hasOwn(d.value, "x") ? !!(p.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}`) : !1;
|
|
187
187
|
}
|
|
188
188
|
function Ge(e) {
|
|
189
189
|
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
@@ -192,13 +192,13 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
192
192
|
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
193
193
|
}
|
|
194
194
|
function De(e) {
|
|
195
|
-
return Object.hasOwn(
|
|
195
|
+
return Object.hasOwn(d.value, "x") ? d.value.id === e.id || p.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
196
196
|
}
|
|
197
197
|
function Xe(e) {
|
|
198
198
|
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
199
199
|
}
|
|
200
200
|
function pe(e) {
|
|
201
|
-
|
|
201
|
+
Re.value = 360 - e.regAngle, d.value.id && e.id === d.value.id ? (d.value = {}, p.value = []) : (d.value = e, p.value = [...e.relations]);
|
|
202
202
|
}
|
|
203
203
|
function D(e) {
|
|
204
204
|
const s = e.weight / Ue.value * l.value.style.links.maxWidth;
|
|
@@ -208,52 +208,59 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
208
208
|
function ke(e) {
|
|
209
209
|
M.value = e, Z.value += 1;
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const R = o(!1);
|
|
212
212
|
function X() {
|
|
213
|
-
|
|
213
|
+
R.value = !R.value;
|
|
214
214
|
}
|
|
215
215
|
async function Ye({ scale: e = 2 } = {}) {
|
|
216
|
-
if (!
|
|
217
|
-
const {
|
|
218
|
-
return {
|
|
216
|
+
if (!x.value) return;
|
|
217
|
+
const { width: s, height: t } = x.value.getBoundingClientRect(), a = s / t, { imageUri: f, base64: c } = await pt({ domElement: x.value, base64: !0, img: !0, scale: e });
|
|
218
|
+
return {
|
|
219
|
+
imageUri: f,
|
|
220
|
+
base64: c,
|
|
221
|
+
title: l.value.style.title.text,
|
|
222
|
+
width: s,
|
|
223
|
+
height: t,
|
|
224
|
+
aspectRatio: a
|
|
225
|
+
};
|
|
219
226
|
}
|
|
220
227
|
return Le({
|
|
221
228
|
getImage: Ye,
|
|
222
229
|
generatePdf: ce,
|
|
223
|
-
generateImage:
|
|
230
|
+
generateImage: de,
|
|
224
231
|
toggleAnnotator: X,
|
|
225
232
|
toggleFullscreen: ke
|
|
226
|
-
}), (e, s) => (i(),
|
|
233
|
+
}), (e, s) => (i(), r("div", {
|
|
227
234
|
ref_key: "relationCircleChart",
|
|
228
|
-
ref:
|
|
235
|
+
ref: x,
|
|
229
236
|
class: "vue-ui-relation-circle",
|
|
230
237
|
style: O(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
|
|
231
238
|
id: `relation_circle_${I.value}`,
|
|
232
|
-
onMouseenter: s[0] || (s[0] = () =>
|
|
233
|
-
onMouseleave: s[1] || (s[1] = () =>
|
|
239
|
+
onMouseenter: s[0] || (s[0] = () => n(ie)(!0)),
|
|
240
|
+
onMouseleave: s[1] || (s[1] = () => n(ie)(!1))
|
|
234
241
|
}, [
|
|
235
|
-
l.value.userOptions.buttons.annotator ? (i(),
|
|
242
|
+
l.value.userOptions.buttons.annotator ? (i(), F(n(ze), {
|
|
236
243
|
key: 0,
|
|
237
|
-
svgRef:
|
|
244
|
+
svgRef: n(ne),
|
|
238
245
|
backgroundColor: l.value.style.backgroundColor,
|
|
239
246
|
color: l.value.style.color,
|
|
240
|
-
active:
|
|
247
|
+
active: R.value,
|
|
241
248
|
onClose: X
|
|
242
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
243
|
-
Me.value ? (i(),
|
|
249
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
250
|
+
Me.value ? (i(), r("div", {
|
|
244
251
|
key: 1,
|
|
245
252
|
ref_key: "noTitle",
|
|
246
253
|
ref: le,
|
|
247
254
|
class: "vue-data-ui-no-title-space",
|
|
248
255
|
style: "height:36px; width: 100%;background:transparent"
|
|
249
|
-
}, null, 512)) :
|
|
250
|
-
l.value.style.title.text ? (i(),
|
|
256
|
+
}, null, 512)) : v("", !0),
|
|
257
|
+
l.value.style.title.text ? (i(), r("div", {
|
|
251
258
|
key: 2,
|
|
252
259
|
ref_key: "chartTitle",
|
|
253
260
|
ref: ee,
|
|
254
261
|
style: "width:100%;background:transparent"
|
|
255
262
|
}, [
|
|
256
|
-
(i(),
|
|
263
|
+
(i(), F(mt, {
|
|
257
264
|
key: `title_${se.value}`,
|
|
258
265
|
config: {
|
|
259
266
|
title: {
|
|
@@ -266,14 +273,14 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
266
273
|
}
|
|
267
274
|
}
|
|
268
275
|
}, null, 8, ["config"]))
|
|
269
|
-
], 512)) :
|
|
270
|
-
l.value.userOptions.show && j.value && (
|
|
276
|
+
], 512)) : v("", !0),
|
|
277
|
+
l.value.userOptions.show && j.value && (n(ae) || n(U)) ? (i(), F(n(Ie), {
|
|
271
278
|
ref: "details",
|
|
272
279
|
key: `user_options_${Z.value}`,
|
|
273
280
|
backgroundColor: l.value.style.backgroundColor,
|
|
274
281
|
color: l.value.style.color,
|
|
275
|
-
isPrinting:
|
|
276
|
-
isImaging:
|
|
282
|
+
isPrinting: n(ue),
|
|
283
|
+
isImaging: n(oe),
|
|
277
284
|
uid: I.value,
|
|
278
285
|
hasPdf: l.value.userOptions.buttons.pdf,
|
|
279
286
|
hasImg: l.value.userOptions.buttons.img,
|
|
@@ -281,24 +288,24 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
281
288
|
hasXls: !1,
|
|
282
289
|
isFullscreen: M.value,
|
|
283
290
|
titles: { ...l.value.userOptions.buttonTitles },
|
|
284
|
-
chartElement:
|
|
291
|
+
chartElement: x.value,
|
|
285
292
|
position: l.value.userOptions.position,
|
|
286
293
|
hasAnnotator: l.value.userOptions.buttons.annotator,
|
|
287
|
-
isAnnotation:
|
|
294
|
+
isAnnotation: R.value,
|
|
288
295
|
callbacks: l.value.userOptions.callbacks,
|
|
289
296
|
printScale: l.value.userOptions.print.scale,
|
|
290
297
|
onToggleFullscreen: ke,
|
|
291
|
-
onGeneratePdf:
|
|
292
|
-
onGenerateImage:
|
|
298
|
+
onGeneratePdf: n(ce),
|
|
299
|
+
onGenerateImage: n(de),
|
|
293
300
|
onToggleAnnotator: X,
|
|
294
301
|
style: O({
|
|
295
|
-
visibility:
|
|
302
|
+
visibility: n(ae) ? n(U) ? "visible" : "hidden" : "visible"
|
|
296
303
|
})
|
|
297
304
|
}, tt({ _: 2 }, [
|
|
298
305
|
e.$slots.menuIcon ? {
|
|
299
306
|
name: "menuIcon",
|
|
300
|
-
fn: S(({ isOpen: t, color:
|
|
301
|
-
h(e.$slots, "menuIcon", B(T({ isOpen: t, color:
|
|
307
|
+
fn: S(({ isOpen: t, color: a }) => [
|
|
308
|
+
h(e.$slots, "menuIcon", B(T({ isOpen: t, color: a })), void 0, !0)
|
|
302
309
|
]),
|
|
303
310
|
key: "0"
|
|
304
311
|
} : void 0,
|
|
@@ -318,31 +325,31 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
318
325
|
} : void 0,
|
|
319
326
|
e.$slots.optionFullscreen ? {
|
|
320
327
|
name: "optionFullscreen",
|
|
321
|
-
fn: S(({ toggleFullscreen: t, isFullscreen:
|
|
322
|
-
h(e.$slots, "optionFullscreen", B(T({ toggleFullscreen: t, isFullscreen:
|
|
328
|
+
fn: S(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
329
|
+
h(e.$slots, "optionFullscreen", B(T({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
323
330
|
]),
|
|
324
331
|
key: "3"
|
|
325
332
|
} : void 0,
|
|
326
333
|
e.$slots.optionAnnotator ? {
|
|
327
334
|
name: "optionAnnotator",
|
|
328
|
-
fn: S(({ toggleAnnotator: t, isAnnotator:
|
|
329
|
-
h(e.$slots, "optionAnnotator", B(T({ toggleAnnotator: t, isAnnotator:
|
|
335
|
+
fn: S(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
336
|
+
h(e.$slots, "optionAnnotator", B(T({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
330
337
|
]),
|
|
331
338
|
key: "4"
|
|
332
339
|
} : void 0
|
|
333
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
334
|
-
j.value ? (i(),
|
|
340
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
341
|
+
j.value ? (i(), r("svg", {
|
|
335
342
|
key: 4,
|
|
336
343
|
ref_key: "svgRef",
|
|
337
344
|
ref: ne,
|
|
338
|
-
xmlns:
|
|
345
|
+
xmlns: n(dt),
|
|
339
346
|
class: H([{ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }, "relation-circle"]),
|
|
340
347
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
341
348
|
width: "100%",
|
|
342
349
|
style: "user-select:none; background:transparent"
|
|
343
350
|
}, [
|
|
344
|
-
lt(
|
|
345
|
-
e.$slots["chart-background"] ? (i(),
|
|
351
|
+
lt(n(Oe)),
|
|
352
|
+
e.$slots["chart-background"] ? (i(), r("foreignObject", {
|
|
346
353
|
key: 0,
|
|
347
354
|
x: 0,
|
|
348
355
|
y: 0,
|
|
@@ -353,28 +360,28 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
353
360
|
}
|
|
354
361
|
}, [
|
|
355
362
|
h(e.$slots, "chart-background", {}, void 0, !0)
|
|
356
|
-
], 8, xt)) :
|
|
363
|
+
], 8, xt)) : v("", !0),
|
|
357
364
|
st("circle", {
|
|
358
365
|
cx: (u.value.width <= 0 ? 1e-4 : u.value.width) / 2,
|
|
359
366
|
cy: (u.value.height <= 0 ? 1e-4 : u.value.height) / 2 + l.value.style.circle.offsetY,
|
|
360
|
-
r:
|
|
367
|
+
r: _.value <= 0 ? 1e-4 : _.value,
|
|
361
368
|
stroke: l.value.style.circle.stroke,
|
|
362
369
|
"stroke-width": l.value.style.circle.strokeWidth,
|
|
363
370
|
fill: "transparent",
|
|
364
371
|
class: "main-circle"
|
|
365
372
|
}, null, 8, $t),
|
|
366
|
-
|
|
367
|
-
(i(!0),
|
|
368
|
-
key: `relation_${
|
|
373
|
+
Ee.value ? (i(), r("g", _t, [
|
|
374
|
+
(i(!0), r(z, null, A(m.value, (t, a) => (i(), r("path", {
|
|
375
|
+
key: `relation_${a}`,
|
|
369
376
|
style: O(me(t)),
|
|
370
377
|
stroke: w(t),
|
|
371
|
-
class: H(["relation", { "vue-ui-relation-circle-selected":
|
|
378
|
+
class: H(["relation", { "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && p.value.includes(t.id) }]),
|
|
372
379
|
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${u.value.width / 2},${u.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
|
|
373
380
|
fill: "none",
|
|
374
381
|
"stroke-width": D(t),
|
|
375
382
|
"stroke-linecap": "round"
|
|
376
383
|
}, null, 14, Ct))), 128)),
|
|
377
|
-
(i(!0),
|
|
384
|
+
(i(!0), r(z, null, A(m.value, (t, a) => (i(), r("g", Pt, [
|
|
378
385
|
L(t) ? h(e.$slots, "dataLabel", we({
|
|
379
386
|
key: 0,
|
|
380
387
|
ref_for: !0
|
|
@@ -384,8 +391,8 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
384
391
|
color: w(t),
|
|
385
392
|
weight: t.weight,
|
|
386
393
|
fontSize: g.value
|
|
387
|
-
}), void 0, !0) :
|
|
388
|
-
L(t) && !e.$slots.dataLabel ? (i(),
|
|
394
|
+
}), void 0, !0) : v("", !0),
|
|
395
|
+
L(t) && !e.$slots.dataLabel ? (i(), r("circle", {
|
|
389
396
|
key: 1,
|
|
390
397
|
cx: t.midPointBezier.x,
|
|
391
398
|
cy: t.midPointBezier.y,
|
|
@@ -393,29 +400,29 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
393
400
|
r: g.value,
|
|
394
401
|
stroke: l.value.style.backgroundColor,
|
|
395
402
|
"stroke-width": "1"
|
|
396
|
-
}, null, 8, Lt)) :
|
|
397
|
-
L(t) && !e.$slots.dataLabel ? (i(),
|
|
403
|
+
}, null, 8, Lt)) : v("", !0),
|
|
404
|
+
L(t) && !e.$slots.dataLabel ? (i(), r("text", {
|
|
398
405
|
key: 2,
|
|
399
406
|
x: t.midPointBezier.x,
|
|
400
407
|
y: t.midPointBezier.y + g.value / 3,
|
|
401
|
-
fill:
|
|
408
|
+
fill: n(_e)(w(t)),
|
|
402
409
|
"text-anchor": "middle",
|
|
403
410
|
"font-size": g.value
|
|
404
|
-
}, N(
|
|
411
|
+
}, N(n(J)(
|
|
405
412
|
l.value.style.weightLabels.formatter,
|
|
406
413
|
t.weight,
|
|
407
|
-
|
|
414
|
+
n(K)({
|
|
408
415
|
p: l.value.style.weightLabels.prefix,
|
|
409
416
|
v: t.weight,
|
|
410
417
|
s: l.value.style.weightLabels.suffix,
|
|
411
418
|
r: l.value.style.weightLabels.rounding
|
|
412
419
|
}),
|
|
413
420
|
{ ...t }
|
|
414
|
-
)), 9, Ot)) :
|
|
421
|
+
)), 9, Ot)) : v("", !0)
|
|
415
422
|
]))), 256))
|
|
416
|
-
])) : (i(),
|
|
417
|
-
(i(!0),
|
|
418
|
-
key: `relation_${
|
|
423
|
+
])) : (i(), r("g", zt, [
|
|
424
|
+
(i(!0), r(z, null, A(m.value, (t, a) => (i(), r("line", {
|
|
425
|
+
key: `relation_${a}`,
|
|
419
426
|
stroke: w(t),
|
|
420
427
|
"stroke-width": D(t),
|
|
421
428
|
style: O(me(t)),
|
|
@@ -423,10 +430,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
423
430
|
x2: t.x2,
|
|
424
431
|
y1: t.y1,
|
|
425
432
|
y2: t.y2,
|
|
426
|
-
class: H({ "vue-ui-relation-circle-selected":
|
|
433
|
+
class: H({ "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && p.value.includes(t.id) }),
|
|
427
434
|
"stroke-linecap": "round"
|
|
428
435
|
}, null, 14, At))), 128)),
|
|
429
|
-
(i(!0),
|
|
436
|
+
(i(!0), r(z, null, A(m.value, (t, a) => (i(), r("g", It, [
|
|
430
437
|
L(t) ? h(e.$slots, "dataLabel", we({
|
|
431
438
|
key: 0,
|
|
432
439
|
ref_for: !0
|
|
@@ -436,8 +443,8 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
436
443
|
color: w(t),
|
|
437
444
|
weight: t.weight,
|
|
438
445
|
fontSize: g.value
|
|
439
|
-
}), void 0, !0) :
|
|
440
|
-
L(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(),
|
|
446
|
+
}), void 0, !0) : v("", !0),
|
|
447
|
+
L(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), r("circle", {
|
|
441
448
|
key: 1,
|
|
442
449
|
cx: t.midPointLine.x,
|
|
443
450
|
cy: t.midPointLine.y,
|
|
@@ -445,29 +452,29 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
445
452
|
r: g.value,
|
|
446
453
|
stroke: l.value.style.backgroundColor,
|
|
447
454
|
"stroke-width": "1"
|
|
448
|
-
}, null, 8, St)) :
|
|
449
|
-
L(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(),
|
|
455
|
+
}, null, 8, St)) : v("", !0),
|
|
456
|
+
L(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), r("text", {
|
|
450
457
|
key: 2,
|
|
451
458
|
x: t.midPointLine.x,
|
|
452
459
|
y: t.midPointLine.y + g.value / 3,
|
|
453
|
-
fill:
|
|
460
|
+
fill: n(_e)(w(t)),
|
|
454
461
|
"text-anchor": "middle",
|
|
455
462
|
"font-size": g.value
|
|
456
|
-
}, N(
|
|
463
|
+
}, N(n(J)(
|
|
457
464
|
l.value.style.weightLabels.formatter,
|
|
458
465
|
t.weight,
|
|
459
|
-
|
|
466
|
+
n(K)({
|
|
460
467
|
p: l.value.style.weightLabels.prefix,
|
|
461
468
|
v: t.weight,
|
|
462
469
|
s: l.value.style.weightLabels.suffix,
|
|
463
470
|
r: l.value.style.weightLabels.rounding
|
|
464
471
|
}),
|
|
465
472
|
{ ...t }
|
|
466
|
-
)), 9, Mt)) :
|
|
473
|
+
)), 9, Mt)) : v("", !0)
|
|
467
474
|
]))), 256))
|
|
468
475
|
])),
|
|
469
|
-
(i(!0),
|
|
470
|
-
key: `plot_text_${
|
|
476
|
+
(i(!0), r(z, null, A($.value, (t, a) => (i(), r("text", {
|
|
477
|
+
key: `plot_text_${a}`,
|
|
471
478
|
"text-anchor": Ge(t),
|
|
472
479
|
transform: Xe(t),
|
|
473
480
|
x: We(t),
|
|
@@ -475,25 +482,25 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
475
482
|
onClick: (f) => pe(t),
|
|
476
483
|
class: "vue-ui-relation-circle-legend",
|
|
477
484
|
"transform-origin": "start",
|
|
478
|
-
"font-weight":
|
|
485
|
+
"font-weight": d.value.id === t.id ? "900" : "400",
|
|
479
486
|
style: O(`font-family:${l.value.style.fontFamily};${De(t)}`),
|
|
480
487
|
"font-size": W.value,
|
|
481
488
|
fill: l.value.style.labels.color
|
|
482
|
-
}, N(t.label) + " (" + N(
|
|
489
|
+
}, N(t.label) + " (" + N(n(J)(
|
|
483
490
|
l.value.style.weightLabels.formatter,
|
|
484
491
|
t.totalWeight,
|
|
485
|
-
|
|
492
|
+
n(K)({
|
|
486
493
|
p: l.value.style.weightLabels.prefix,
|
|
487
494
|
v: t.totalWeight,
|
|
488
495
|
s: l.value.style.weightLabels.suffix,
|
|
489
496
|
r: l.value.style.weightLabels.rounding
|
|
490
497
|
}),
|
|
491
498
|
{ ...t }
|
|
492
|
-
)) + ") ", 13,
|
|
493
|
-
(i(!0),
|
|
499
|
+
)) + ") ", 13, Rt))), 128)),
|
|
500
|
+
(i(!0), r(z, null, A($.value, (t, a) => (i(), r("circle", {
|
|
494
501
|
cx: t.x,
|
|
495
502
|
cy: t.y,
|
|
496
|
-
key: `plot_${
|
|
503
|
+
key: `plot_${a}`,
|
|
497
504
|
style: O(Ve(t)),
|
|
498
505
|
class: "vue-ui-relation-circle-plot",
|
|
499
506
|
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
@@ -501,21 +508,21 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
501
508
|
"stroke-width": "1",
|
|
502
509
|
onClick: (f) => pe(t),
|
|
503
510
|
r: G.value
|
|
504
|
-
}, null, 12,
|
|
511
|
+
}, null, 12, Et))), 128)),
|
|
505
512
|
h(e.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
506
|
-
], 10, wt)) :
|
|
507
|
-
e.$slots.watermark ? (i(),
|
|
508
|
-
h(e.$slots, "watermark", B(T({ isPrinting:
|
|
509
|
-
])) :
|
|
510
|
-
e.$slots.source ? (i(),
|
|
513
|
+
], 10, wt)) : v("", !0),
|
|
514
|
+
e.$slots.watermark ? (i(), r("div", Ft, [
|
|
515
|
+
h(e.$slots, "watermark", B(T({ isPrinting: n(ue) || n(oe) })), void 0, !0)
|
|
516
|
+
])) : v("", !0),
|
|
517
|
+
e.$slots.source ? (i(), r("div", {
|
|
511
518
|
key: 6,
|
|
512
519
|
ref_key: "source",
|
|
513
520
|
ref: te,
|
|
514
521
|
dir: "auto"
|
|
515
522
|
}, [
|
|
516
523
|
h(e.$slots, "source", {}, void 0, !0)
|
|
517
|
-
], 512)) :
|
|
518
|
-
j.value ?
|
|
524
|
+
], 512)) : v("", !0),
|
|
525
|
+
j.value ? v("", !0) : (i(), F(n(Ae), {
|
|
519
526
|
key: 7,
|
|
520
527
|
config: {
|
|
521
528
|
type: "relationCircle",
|
|
@@ -529,7 +536,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["c
|
|
|
529
536
|
}, null, 8, ["config"]))
|
|
530
537
|
], 44, bt));
|
|
531
538
|
}
|
|
532
|
-
}, qt = /* @__PURE__ */ kt(Bt, [["__scopeId", "data-v-
|
|
539
|
+
}, qt = /* @__PURE__ */ kt(Bt, [["__scopeId", "data-v-a4e381eb"]]);
|
|
533
540
|
export {
|
|
534
541
|
qt as default
|
|
535
542
|
};
|