vue-data-ui 3.5.0 → 3.5.1
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 +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.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-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-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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useCssVars as dt, computed as
|
|
2
|
-
import { c as bt, t as kt, b as wt, p as Oe, e as xt, o as Se, f as Ie, g as $t, X as At, J as Me, a as le, d as
|
|
1
|
+
import { useCssVars as dt, computed as y, defineAsyncComponent as Z, ref as u, toRefs as ft, watch as ee, shallowRef as Le, onMounted as gt, onBeforeUnmount as yt, createElementBlock as i, openBlock as n, unref as o, normalizeStyle as I, createBlock as D, createCommentVNode as g, withCtx as h, renderSlot as d, normalizeProps as w, guardReactiveProps as x, createSlots as ht, normalizeClass as te, createVNode as mt, createElementVNode as pt, Fragment as _, renderList as M, mergeProps as Pe, toDisplayString as G, createTextVNode as ze } from "vue";
|
|
2
|
+
import { c as bt, t as kt, b as wt, p as Oe, e as xt, o as Se, f as Ie, g as $t, X as At, J as Me, a as le, d as ae, R as se } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as Ct, u as _t } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Lt, a as Ee } from "./useNestedProp-
|
|
4
|
+
import { u as Lt, a as Ee } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as Pt, B as zt } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as Ot } from "./usePrinter-DTzqpYKF.js";
|
|
7
7
|
import { u as St } from "./useSvgExport-DrjCWun4.js";
|
|
@@ -9,7 +9,7 @@ import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
|
9
9
|
import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as Et } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
|
|
11
11
|
import Bt from "./img-BecE5qXd.js";
|
|
12
|
-
import Ft from "./Title-
|
|
12
|
+
import Ft from "./Title-isbiM8i8.js";
|
|
13
13
|
import { t as Rt } from "./themes-AUNCOb2G.js";
|
|
14
14
|
import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["cx", "cy", "r", "stroke", "stroke-width"], Gt = { key: 1 }, Vt = ["stroke", "d", "stroke-width"], Wt = { style: { "pointer-events": "none" } }, Xt = ["cx", "cy", "fill", "r", "stroke"], Yt = ["x", "y", "fill", "font-size"], qt = { key: 2 }, Ht = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Jt = { style: { "pointer-events": "none" } }, Kt = ["cx", "cy", "fill", "r", "stroke"], Qt = ["x", "y", "fill", "font-size"], Zt = ["text-anchor", "transform", "x", "y", "font-weight", "font-size", "fill", "text-decoration", "onClick", "onMouseenter", "onMouseleave"], el = ["cx", "cy", "fill", "stroke", "r", "onClick", "onMouseenter", "onMouseleave"], tl = {
|
|
@@ -33,12 +33,12 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
|
|
|
33
33
|
},
|
|
34
34
|
setup(Be, { expose: Fe }) {
|
|
35
35
|
dt((e) => ({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
v09389e9a: Ye.value,
|
|
37
|
+
v5c5a5379: Xe.value,
|
|
38
|
+
v9edd1cca: qe.value
|
|
39
39
|
}));
|
|
40
|
-
const Re = Z(() => import("./PenAndPaper-
|
|
41
|
-
...ft(
|
|
40
|
+
const Re = Z(() => import("./PenAndPaper-SZQIAgkg.js")), Te = Z(() => import("./UserOptions-CGnQt6Fd.js")), Ne = Z(() => import("./PackageVersion-DQvyATVa.js")), { vue_ui_relation_circle: je } = Lt(), p = Be, Ue = y(() => !!p.dataset && Object.keys(p.dataset).length), E = u(bt()), ne = u(0), L = u(null), ie = u(null), oe = u(null), re = u(null), ue = u(0), l = u(X()), { loading: ce, FINAL_DATASET: De, manualLoading: V } = Pt({
|
|
41
|
+
...ft(p),
|
|
42
42
|
FINAL_CONFIG: l,
|
|
43
43
|
prepareConfig: X,
|
|
44
44
|
skeletonDataset: [
|
|
@@ -64,61 +64,61 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
})
|
|
67
|
-
}), { userOptionsVisible: W, setUserOptionsVisibility: ve, keepUserOptionState: de } = It({ config: l.value }), { svgRef:
|
|
67
|
+
}), { userOptionsVisible: W, setUserOptionsVisibility: ve, keepUserOptionState: de } = It({ config: l.value }), { svgRef: F } = Mt({ config: l.value.style.title });
|
|
68
68
|
function X() {
|
|
69
69
|
const e = Ee({
|
|
70
|
-
userConfig:
|
|
70
|
+
userConfig: p.config,
|
|
71
71
|
defaultConfig: je
|
|
72
72
|
});
|
|
73
73
|
return e.theme ? {
|
|
74
74
|
...Ee({
|
|
75
|
-
userConfig: Rt.vue_ui_relation_circle[e.theme] ||
|
|
75
|
+
userConfig: Rt.vue_ui_relation_circle[e.theme] || p.config,
|
|
76
76
|
defaultConfig: e
|
|
77
77
|
}),
|
|
78
78
|
customPalette: wt[e.theme] || Oe
|
|
79
79
|
} : e;
|
|
80
80
|
}
|
|
81
|
-
ee(() =>
|
|
82
|
-
l.value = X(), W.value = !l.value.userOptions.showOnChartHover,
|
|
83
|
-
}, { deep: !0 }), ee(() =>
|
|
81
|
+
ee(() => p.config, (e) => {
|
|
82
|
+
l.value = X(), W.value = !l.value.userOptions.showOnChartHover, P.value = l.value.style.size, m.value = l.value.style.weightLabels.size, T.value = l.value.style.plot.radius, B.value = l.value.style.labels.fontSize, r.value.height = l.value.style.size, r.value.width = l.value.style.size, be(), ue.value += 1;
|
|
83
|
+
}, { deep: !0 }), ee(() => p.dataset, (e) => {
|
|
84
84
|
Array.isArray(e) && e.length > 0 && (V.value = !1);
|
|
85
85
|
}, { deep: !0 });
|
|
86
86
|
const { isPrinting: fe, isImaging: ge, generatePdf: ye, generateImage: he } = Ot({
|
|
87
|
-
elementId: `relation_circle_${
|
|
87
|
+
elementId: `relation_circle_${E.value}`,
|
|
88
88
|
fileName: l.value.style.title.text || "vue-ui-relation-circle",
|
|
89
89
|
options: l.value.userOptions.print
|
|
90
|
-
}), Ge =
|
|
91
|
-
const
|
|
90
|
+
}), Ge = y(() => l.value.userOptions.show && !l.value.style.title.text), me = y(() => xt(l.value.customPalette)), $ = u([]), b = u([]), f = u({}), k = u([]), Ve = u(0), R = y(() => De.value.slice(0, l.value.style.limit).map((e) => {
|
|
91
|
+
const a = Array.isArray(e.relations) ? e.relations : [];
|
|
92
92
|
return {
|
|
93
93
|
...e,
|
|
94
|
-
weights: Array.isArray(e.weights) ? e.weights : new Array(
|
|
95
|
-
relations:
|
|
94
|
+
weights: Array.isArray(e.weights) ? e.weights : new Array(a.length).fill(1),
|
|
95
|
+
relations: a
|
|
96
96
|
};
|
|
97
97
|
}));
|
|
98
|
-
ee(
|
|
99
|
-
|
|
98
|
+
ee(R, () => {
|
|
99
|
+
$.value = [], b.value = [], Y(), q();
|
|
100
100
|
});
|
|
101
|
-
const
|
|
101
|
+
const P = u(l.value.style.size), m = u(l.value.style.weightLabels.size), T = u(l.value.style.plot.radius), B = u(l.value.style.labels.fontSize), r = u({
|
|
102
102
|
height: l.value.style.size,
|
|
103
103
|
width: l.value.style.size
|
|
104
|
-
}),
|
|
104
|
+
}), z = y({
|
|
105
105
|
get() {
|
|
106
|
-
return
|
|
106
|
+
return P.value * l.value.style.circle.radiusProportion;
|
|
107
107
|
},
|
|
108
108
|
set(e) {
|
|
109
109
|
return e;
|
|
110
110
|
}
|
|
111
|
-
}), We =
|
|
111
|
+
}), We = y(() => l.value.style.links.curved), Xe = y(() => `${l.value.style.animation.speedMs}ms`), Ye = y(() => z.value * 2), qe = y(() => z.value * 4), A = Le(null), O = Le(null);
|
|
112
112
|
gt(() => {
|
|
113
|
-
be(), document.getElementById(`relation_circle_${
|
|
113
|
+
be(), document.getElementById(`relation_circle_${E.value}`).addEventListener("click", we);
|
|
114
114
|
});
|
|
115
|
-
const pe =
|
|
115
|
+
const pe = y(() => l.value.debug);
|
|
116
116
|
function be() {
|
|
117
|
-
if (Se(
|
|
117
|
+
if (Se(p.dataset) ? (Ie({
|
|
118
118
|
componentName: "VueUiRelationCircle",
|
|
119
119
|
type: "dataset",
|
|
120
120
|
debug: pe.value
|
|
121
|
-
}), V.value = !0) :
|
|
121
|
+
}), V.value = !0) : p.dataset.forEach((e, a) => {
|
|
122
122
|
$t({
|
|
123
123
|
datasetObject: e,
|
|
124
124
|
requiredAttributes: ["id", "label", "relations", "weights"]
|
|
@@ -127,76 +127,76 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
|
|
|
127
127
|
componentName: "VueUiRelationCircle",
|
|
128
128
|
type: "datasetSerieAttribute",
|
|
129
129
|
property: t,
|
|
130
|
-
index:
|
|
130
|
+
index: a,
|
|
131
131
|
debug: pe.value
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
|
-
}), Se(
|
|
134
|
+
}), Se(p.dataset) || (V.value = l.value.loading), l.value.responsive) {
|
|
135
135
|
const e = Ct(() => {
|
|
136
|
-
const { width:
|
|
137
|
-
chart:
|
|
136
|
+
const { width: a, height: t } = _t({
|
|
137
|
+
chart: L.value,
|
|
138
138
|
title: l.value.style.title.text ? ie.value : null,
|
|
139
139
|
source: oe.value,
|
|
140
|
-
noTitle:
|
|
140
|
+
noTitle: re.value
|
|
141
141
|
});
|
|
142
142
|
requestAnimationFrame(() => {
|
|
143
|
-
|
|
144
|
-
relator:
|
|
143
|
+
P.value = Math.min(a, t), r.value.width = Math.max(0.1, a), r.value.height = Math.max(0.1, t - 12), z.value = P.value * l.value.style.circle.radiusProportion, $.value = [], b.value = [], Y(), q(), ke(), l.value.responsiveProportionalSizing ? (m.value = se({
|
|
144
|
+
relator: P.value,
|
|
145
145
|
adjuster: l.value.style.size,
|
|
146
146
|
source: l.value.style.weightLabels.size,
|
|
147
147
|
threshold: 6,
|
|
148
148
|
fallback: 6
|
|
149
|
-
}),
|
|
150
|
-
relator:
|
|
149
|
+
}), T.value = se({
|
|
150
|
+
relator: P.value,
|
|
151
151
|
adjuster: l.value.style.size,
|
|
152
152
|
source: l.value.style.plot.radius,
|
|
153
153
|
threshold: 1,
|
|
154
154
|
fallback: 1
|
|
155
|
-
}),
|
|
156
|
-
relator:
|
|
155
|
+
}), B.value = se({
|
|
156
|
+
relator: P.value,
|
|
157
157
|
adjuster: l.value.style.size,
|
|
158
158
|
source: l.value.style.labels.fontSize,
|
|
159
159
|
threshold: 6,
|
|
160
160
|
fallback: 6
|
|
161
|
-
})) : (
|
|
161
|
+
})) : (m.value = l.value.style.weightLabels.size, T.value = l.value.style.plot.radius, B.value = l.value.style.labels.fontSize);
|
|
162
162
|
});
|
|
163
163
|
});
|
|
164
|
-
|
|
164
|
+
A.value && (O.value && A.value.unobserve(O.value), A.value.disconnect()), A.value = new ResizeObserver(e), O.value = L.value.parentNode, A.value.observe(O.value);
|
|
165
165
|
} else
|
|
166
|
-
|
|
166
|
+
$.value = [], b.value = [], Y(), q();
|
|
167
167
|
ke();
|
|
168
168
|
}
|
|
169
169
|
yt(() => {
|
|
170
|
-
document.getElementById(`relation_circle_${
|
|
170
|
+
document.getElementById(`relation_circle_${E.value}`).removeEventListener("click", we), A.value && (O.value && A.value.unobserve(O.value), A.value.disconnect());
|
|
171
171
|
});
|
|
172
172
|
const { autoSizeLabels: ke } = Et({
|
|
173
|
-
svgRef:
|
|
173
|
+
svgRef: F,
|
|
174
174
|
fontSize: l.value.style.labels.fontSize,
|
|
175
175
|
minFontSize: l.value.style.labels.minFontSize,
|
|
176
|
-
sizeRef:
|
|
176
|
+
sizeRef: B,
|
|
177
177
|
labelClass: ".vue-ui-relation-circle-legend"
|
|
178
178
|
});
|
|
179
179
|
function we(e) {
|
|
180
|
-
const
|
|
181
|
-
|
|
180
|
+
const a = e.target;
|
|
181
|
+
a && Array.from(a.classList).includes("vue-ui-user-options") || a && Array.from(a.classList).includes("vue-ui-user-options-summary") || a && Array.from(a.classList).includes("vue-data-ui-button") || a && Array.from(a.classList).includes("vue-ui-relation-circle-legend") || (f.value = {}, k.value = []);
|
|
182
182
|
}
|
|
183
183
|
function Y() {
|
|
184
|
-
const e = 6.28319 /
|
|
185
|
-
let t = 0,
|
|
186
|
-
|
|
187
|
-
const K = c.weights.reduce((ct, vt) => ct + vt, 0), Q =
|
|
188
|
-
|
|
184
|
+
const e = 6.28319 / R.value.length, a = 360 / R.value.length;
|
|
185
|
+
let t = 0, s = 0;
|
|
186
|
+
R.value.forEach((c, v) => {
|
|
187
|
+
const K = c.weights.reduce((ct, vt) => ct + vt, 0), Q = z.value * Math.cos(t) + r.value.width / 2, ut = z.value * Math.sin(t) + r.value.height / 2 + l.value.style.circle.offsetY;
|
|
188
|
+
$.value.push({ x: Q, y: ut, ...c, color: c.color ? c.color : me.value[v] ? me.value[v] : Oe[v], regAngle: s, totalWeight: K }), t += e, s += a;
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
function He(e,
|
|
192
|
-
const t = (e.x +
|
|
193
|
-
return { x: t, y:
|
|
191
|
+
function He(e, a) {
|
|
192
|
+
const t = (e.x + a.x) / 2, s = (e.y + a.y) / 2;
|
|
193
|
+
return { x: t, y: s };
|
|
194
194
|
}
|
|
195
195
|
function q() {
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
b.value = [], $.value.forEach((e) => {
|
|
197
|
+
$.value.filter((t) => t.relations.includes(e.id)).forEach((t, s) => {
|
|
198
198
|
const c = t.relations.indexOf(e.id);
|
|
199
|
-
|
|
199
|
+
b.value.push({
|
|
200
200
|
weight: t.weights[c] ? t.weights[c] : 0,
|
|
201
201
|
relationId: `${e.id}_${t.id}`,
|
|
202
202
|
x1: e.x,
|
|
@@ -218,24 +218,24 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
|
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
function Je(e) {
|
|
221
|
-
const
|
|
222
|
-
x:
|
|
223
|
-
y:
|
|
224
|
-
}, v = 0.5, K = Math.pow(1 - v, 3) *
|
|
221
|
+
const a = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, s = { x: e.x1, y: e.y1 }, c = {
|
|
222
|
+
x: r.value.width / 2,
|
|
223
|
+
y: r.value.height / 2 + l.value.style.circle.offsetY
|
|
224
|
+
}, v = 0.5, K = Math.pow(1 - v, 3) * a.x + 3 * Math.pow(1 - v, 2) * v * s.x + 3 * (1 - v) * Math.pow(v, 2) * c.x + Math.pow(v, 3) * t.x, Q = Math.pow(1 - v, 3) * a.y + 3 * Math.pow(1 - v, 2) * v * s.y + 3 * (1 - v) * Math.pow(v, 2) * c.y + Math.pow(v, 3) * t.y;
|
|
225
225
|
return { x: K, y: Q };
|
|
226
226
|
}
|
|
227
|
-
const Ke =
|
|
227
|
+
const Ke = y(() => Math.max(...b.value.map((e) => e.weight)));
|
|
228
228
|
function Qe(e) {
|
|
229
|
-
return Object.hasOwn(
|
|
229
|
+
return Object.hasOwn(f.value, "x") ? k.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function C(e) {
|
|
232
232
|
return e.colorSource;
|
|
233
233
|
}
|
|
234
234
|
function xe(e) {
|
|
235
|
-
return Object.hasOwn(
|
|
235
|
+
return Object.hasOwn(f.value, "x") ? k.value.includes(e.id) && e.relationId === `${e.id}_${f.value.id}` || e.relationId === `${f.value.id}_${e.id}` ? `opacity:1;stroke-width:${H(e)}` : "opacity: 0" : "opacity: 1";
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
return Object.hasOwn(
|
|
237
|
+
function S(e) {
|
|
238
|
+
return Object.hasOwn(f.value, "x") ? !!(k.value.includes(e.id) && e.relationId === `${e.id}_${f.value.id}` || e.relationId === `${f.value.id}_${e.id}`) : !1;
|
|
239
239
|
}
|
|
240
240
|
function Ze(e) {
|
|
241
241
|
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
@@ -244,95 +244,115 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
|
|
|
244
244
|
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
245
245
|
}
|
|
246
246
|
function tt(e) {
|
|
247
|
-
return Object.hasOwn(
|
|
247
|
+
return Object.hasOwn(f.value, "x") ? f.value.id === e.id || k.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
248
248
|
}
|
|
249
249
|
function lt(e) {
|
|
250
250
|
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
251
251
|
}
|
|
252
|
-
const
|
|
253
|
-
function $e(e,
|
|
254
|
-
|
|
252
|
+
const N = u(null);
|
|
253
|
+
function $e(e, a) {
|
|
254
|
+
N.value = a, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: a });
|
|
255
255
|
}
|
|
256
|
-
function Ae(e,
|
|
257
|
-
|
|
256
|
+
function Ae(e, a) {
|
|
257
|
+
N.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: a });
|
|
258
258
|
}
|
|
259
|
-
function Ce(e,
|
|
260
|
-
l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: e, seriesIndex:
|
|
259
|
+
function Ce(e, a) {
|
|
260
|
+
l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: e, seriesIndex: a }), Ve.value = 360 - e.regAngle, f.value.id && e.id === f.value.id ? (f.value = {}, k.value = []) : (f.value = e, k.value = [...e.relations]);
|
|
261
261
|
}
|
|
262
262
|
function H(e) {
|
|
263
|
-
const
|
|
264
|
-
return Math.max(0.3,
|
|
263
|
+
const a = e.weight / Ke.value * l.value.style.links.maxWidth;
|
|
264
|
+
return Math.max(0.3, a);
|
|
265
265
|
}
|
|
266
|
-
const
|
|
266
|
+
const j = u(!1);
|
|
267
267
|
function _e(e) {
|
|
268
|
-
|
|
268
|
+
j.value = e, ne.value += 1;
|
|
269
269
|
}
|
|
270
|
-
const
|
|
270
|
+
const U = u(!1);
|
|
271
271
|
function J() {
|
|
272
|
-
|
|
272
|
+
U.value = !U.value;
|
|
273
273
|
}
|
|
274
|
-
async function
|
|
275
|
-
if (!
|
|
276
|
-
const { width:
|
|
274
|
+
async function at({ scale: e = 2 } = {}) {
|
|
275
|
+
if (!L.value) return;
|
|
276
|
+
const { width: a, height: t } = L.value.getBoundingClientRect(), s = a / t, { imageUri: c, base64: v } = await Bt({ domElement: L.value, base64: !0, img: !0, scale: e });
|
|
277
277
|
return {
|
|
278
278
|
imageUri: c,
|
|
279
279
|
base64: v,
|
|
280
280
|
title: l.value.style.title.text,
|
|
281
|
-
width:
|
|
281
|
+
width: a,
|
|
282
282
|
height: t,
|
|
283
|
-
aspectRatio:
|
|
283
|
+
aspectRatio: s
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
|
-
const
|
|
287
|
-
svg:
|
|
286
|
+
const st = y(() => l.value.style.backgroundColor), nt = y(() => l.value.style.title), { exportSvg: it, getSvg: ot } = St({
|
|
287
|
+
svg: F,
|
|
288
288
|
title: nt,
|
|
289
|
-
backgroundColor:
|
|
289
|
+
backgroundColor: st
|
|
290
290
|
});
|
|
291
|
-
async function
|
|
291
|
+
async function rt({ isCb: e }) {
|
|
292
292
|
if (e) {
|
|
293
|
-
const { blob:
|
|
294
|
-
l.value.userOptions.callbacks.svg({ blob:
|
|
293
|
+
const { blob: a, url: t, text: s, dataUrl: c } = await ot();
|
|
294
|
+
l.value.userOptions.callbacks.svg({ blob: a, url: t, text: s, dataUrl: c });
|
|
295
295
|
} else
|
|
296
296
|
it();
|
|
297
297
|
}
|
|
298
298
|
return Fe({
|
|
299
|
-
getImage:
|
|
299
|
+
getImage: at,
|
|
300
300
|
generatePdf: ye,
|
|
301
301
|
generateImage: he,
|
|
302
302
|
toggleAnnotator: J,
|
|
303
303
|
toggleFullscreen: _e
|
|
304
|
-
}), (e,
|
|
304
|
+
}), (e, a) => (n(), i("div", {
|
|
305
305
|
ref_key: "relationCircleChart",
|
|
306
|
-
ref:
|
|
306
|
+
ref: L,
|
|
307
307
|
class: "vue-data-ui-component vue-ui-relation-circle",
|
|
308
|
-
style:
|
|
309
|
-
id: `relation_circle_${
|
|
310
|
-
onMouseenter:
|
|
311
|
-
onMouseleave:
|
|
308
|
+
style: I(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
|
|
309
|
+
id: `relation_circle_${E.value}`,
|
|
310
|
+
onMouseenter: a[0] || (a[0] = () => o(ve)(!0)),
|
|
311
|
+
onMouseleave: a[1] || (a[1] = () => o(ve)(!1))
|
|
312
312
|
}, [
|
|
313
|
-
l.value.userOptions.buttons.annotator ? (n(),
|
|
313
|
+
l.value.userOptions.buttons.annotator ? (n(), D(o(Re), {
|
|
314
314
|
key: 0,
|
|
315
|
-
svgRef: o(
|
|
315
|
+
svgRef: o(F),
|
|
316
316
|
backgroundColor: l.value.style.backgroundColor,
|
|
317
317
|
color: l.value.style.color,
|
|
318
|
-
active:
|
|
318
|
+
active: U.value,
|
|
319
319
|
onClose: J
|
|
320
|
-
},
|
|
320
|
+
}, {
|
|
321
|
+
"annotator-action-close": h(() => [
|
|
322
|
+
d(e.$slots, "annotator-action-close", {}, void 0, !0)
|
|
323
|
+
]),
|
|
324
|
+
"annotator-action-color": h(({ color: t }) => [
|
|
325
|
+
d(e.$slots, "annotator-action-color", w(x({ color: t })), void 0, !0)
|
|
326
|
+
]),
|
|
327
|
+
"annotator-action-draw": h(({ mode: t }) => [
|
|
328
|
+
d(e.$slots, "annotator-action-draw", w(x({ mode: t })), void 0, !0)
|
|
329
|
+
]),
|
|
330
|
+
"annotator-action-undo": h(({ disabled: t }) => [
|
|
331
|
+
d(e.$slots, "annotator-action-undo", w(x({ disabled: t })), void 0, !0)
|
|
332
|
+
]),
|
|
333
|
+
"annotator-action-redo": h(({ disabled: t }) => [
|
|
334
|
+
d(e.$slots, "annotator-action-redo", w(x({ disabled: t })), void 0, !0)
|
|
335
|
+
]),
|
|
336
|
+
"annotator-action-delete": h(({ disabled: t }) => [
|
|
337
|
+
d(e.$slots, "annotator-action-delete", w(x({ disabled: t })), void 0, !0)
|
|
338
|
+
]),
|
|
339
|
+
_: 3
|
|
340
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
321
341
|
Ge.value ? (n(), i("div", {
|
|
322
342
|
key: 1,
|
|
323
343
|
ref_key: "noTitle",
|
|
324
|
-
ref:
|
|
344
|
+
ref: re,
|
|
325
345
|
class: "vue-data-ui-no-title-space",
|
|
326
346
|
style: "height:36px; width: 100%;background:transparent"
|
|
327
|
-
}, null, 512)) :
|
|
347
|
+
}, null, 512)) : g("", !0),
|
|
328
348
|
l.value.style.title.text ? (n(), i("div", {
|
|
329
349
|
key: 2,
|
|
330
350
|
ref_key: "chartTitle",
|
|
331
351
|
ref: ie,
|
|
332
352
|
style: "width:100%;background:transparent"
|
|
333
353
|
}, [
|
|
334
|
-
(n(),
|
|
335
|
-
key: `title_${
|
|
354
|
+
(n(), D(Ft, {
|
|
355
|
+
key: `title_${ue.value}`,
|
|
336
356
|
config: {
|
|
337
357
|
title: {
|
|
338
358
|
cy: "relation-div-title",
|
|
@@ -344,86 +364,86 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
|
|
|
344
364
|
}
|
|
345
365
|
}
|
|
346
366
|
}, null, 8, ["config"]))
|
|
347
|
-
], 512)) :
|
|
348
|
-
l.value.userOptions.show && Ue.value && (o(de) || o(W)) ? (n(),
|
|
367
|
+
], 512)) : g("", !0),
|
|
368
|
+
l.value.userOptions.show && Ue.value && (o(de) || o(W)) ? (n(), D(o(Te), {
|
|
349
369
|
ref: "details",
|
|
350
370
|
key: `user_options_${ne.value}`,
|
|
351
371
|
backgroundColor: l.value.style.backgroundColor,
|
|
352
372
|
color: l.value.style.color,
|
|
353
373
|
isPrinting: o(fe),
|
|
354
374
|
isImaging: o(ge),
|
|
355
|
-
uid:
|
|
375
|
+
uid: E.value,
|
|
356
376
|
hasPdf: l.value.userOptions.buttons.pdf,
|
|
357
377
|
hasImg: l.value.userOptions.buttons.img,
|
|
358
378
|
hasSvg: l.value.userOptions.buttons.svg,
|
|
359
379
|
hasFullscreen: l.value.userOptions.buttons.img,
|
|
360
380
|
hasXls: !1,
|
|
361
|
-
isFullscreen:
|
|
381
|
+
isFullscreen: j.value,
|
|
362
382
|
titles: { ...l.value.userOptions.buttonTitles },
|
|
363
|
-
chartElement:
|
|
383
|
+
chartElement: L.value,
|
|
364
384
|
position: l.value.userOptions.position,
|
|
365
385
|
hasAnnotator: l.value.userOptions.buttons.annotator,
|
|
366
|
-
isAnnotation:
|
|
386
|
+
isAnnotation: U.value,
|
|
367
387
|
callbacks: l.value.userOptions.callbacks,
|
|
368
388
|
printScale: l.value.userOptions.print.scale,
|
|
369
389
|
onToggleFullscreen: _e,
|
|
370
390
|
onGeneratePdf: o(ye),
|
|
371
391
|
onGenerateImage: o(he),
|
|
372
|
-
onGenerateSvg:
|
|
392
|
+
onGenerateSvg: rt,
|
|
373
393
|
onToggleAnnotator: J,
|
|
374
|
-
style:
|
|
394
|
+
style: I({
|
|
375
395
|
visibility: o(de) ? o(W) ? "visible" : "hidden" : "visible"
|
|
376
396
|
})
|
|
377
397
|
}, ht({ _: 2 }, [
|
|
378
398
|
e.$slots.menuIcon ? {
|
|
379
399
|
name: "menuIcon",
|
|
380
|
-
fn:
|
|
381
|
-
|
|
400
|
+
fn: h(({ isOpen: t, color: s }) => [
|
|
401
|
+
d(e.$slots, "menuIcon", w(x({ isOpen: t, color: s })), void 0, !0)
|
|
382
402
|
]),
|
|
383
403
|
key: "0"
|
|
384
404
|
} : void 0,
|
|
385
405
|
e.$slots.optionPdf ? {
|
|
386
406
|
name: "optionPdf",
|
|
387
|
-
fn:
|
|
388
|
-
|
|
407
|
+
fn: h(() => [
|
|
408
|
+
d(e.$slots, "optionPdf", {}, void 0, !0)
|
|
389
409
|
]),
|
|
390
410
|
key: "1"
|
|
391
411
|
} : void 0,
|
|
392
412
|
e.$slots.optionImg ? {
|
|
393
413
|
name: "optionImg",
|
|
394
|
-
fn:
|
|
395
|
-
|
|
414
|
+
fn: h(() => [
|
|
415
|
+
d(e.$slots, "optionImg", {}, void 0, !0)
|
|
396
416
|
]),
|
|
397
417
|
key: "2"
|
|
398
418
|
} : void 0,
|
|
399
419
|
e.$slots.optionSvg ? {
|
|
400
420
|
name: "optionSvg",
|
|
401
|
-
fn:
|
|
402
|
-
|
|
421
|
+
fn: h(() => [
|
|
422
|
+
d(e.$slots, "optionSvg", {}, void 0, !0)
|
|
403
423
|
]),
|
|
404
424
|
key: "3"
|
|
405
425
|
} : void 0,
|
|
406
426
|
e.$slots.optionFullscreen ? {
|
|
407
427
|
name: "optionFullscreen",
|
|
408
|
-
fn:
|
|
409
|
-
|
|
428
|
+
fn: h(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
429
|
+
d(e.$slots, "optionFullscreen", w(x({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
410
430
|
]),
|
|
411
431
|
key: "4"
|
|
412
432
|
} : void 0,
|
|
413
433
|
e.$slots.optionAnnotator ? {
|
|
414
434
|
name: "optionAnnotator",
|
|
415
|
-
fn:
|
|
416
|
-
|
|
435
|
+
fn: h(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
436
|
+
d(e.$slots, "optionAnnotator", w(x({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
417
437
|
]),
|
|
418
438
|
key: "5"
|
|
419
439
|
} : void 0
|
|
420
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
440
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
421
441
|
(n(), i("svg", {
|
|
422
442
|
ref_key: "svgRef",
|
|
423
|
-
ref:
|
|
443
|
+
ref: F,
|
|
424
444
|
xmlns: o(At),
|
|
425
|
-
class: te([{ "vue-data-ui-fullscreen--on":
|
|
426
|
-
viewBox: `0 0 ${
|
|
445
|
+
class: te([{ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }, "relation-circle"]),
|
|
446
|
+
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
427
447
|
width: "100%",
|
|
428
448
|
style: "user-select:none; background:transparent"
|
|
429
449
|
}, [
|
|
@@ -432,150 +452,150 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
|
|
|
432
452
|
key: 0,
|
|
433
453
|
x: 0,
|
|
434
454
|
y: 0,
|
|
435
|
-
width:
|
|
436
|
-
height:
|
|
455
|
+
width: r.value.width <= 0 ? 10 : r.value.width,
|
|
456
|
+
height: r.value.height <= 0 ? 10 : r.value.height,
|
|
437
457
|
style: {
|
|
438
458
|
pointerEvents: "none"
|
|
439
459
|
}
|
|
440
460
|
}, [
|
|
441
|
-
|
|
442
|
-
], 8, Ut)) :
|
|
461
|
+
d(e.$slots, "chart-background", {}, void 0, !0)
|
|
462
|
+
], 8, Ut)) : g("", !0),
|
|
443
463
|
pt("circle", {
|
|
444
|
-
cx: (
|
|
445
|
-
cy: (
|
|
446
|
-
r:
|
|
464
|
+
cx: (r.value.width <= 0 ? 1e-4 : r.value.width) / 2,
|
|
465
|
+
cy: (r.value.height <= 0 ? 1e-4 : r.value.height) / 2 + l.value.style.circle.offsetY,
|
|
466
|
+
r: z.value <= 0 ? 1e-4 : z.value,
|
|
447
467
|
stroke: l.value.style.circle.stroke,
|
|
448
468
|
"stroke-width": l.value.style.circle.strokeWidth,
|
|
449
469
|
fill: "transparent",
|
|
450
470
|
class: "main-circle"
|
|
451
471
|
}, null, 8, Dt),
|
|
452
472
|
We.value ? (n(), i("g", Gt, [
|
|
453
|
-
(n(!0), i(
|
|
454
|
-
key: `relation_${
|
|
455
|
-
style:
|
|
456
|
-
stroke:
|
|
457
|
-
class: te(["relation", { "vue-ui-relation-circle-selected":
|
|
458
|
-
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${
|
|
473
|
+
(n(!0), i(_, null, M(b.value, (t, s) => (n(), i("path", {
|
|
474
|
+
key: `relation_${s}`,
|
|
475
|
+
style: I(xe(t)),
|
|
476
|
+
stroke: C(t),
|
|
477
|
+
class: te(["relation", { "vue-ui-relation-circle-selected": f.value.hasOwnProperty("id") && k.value.includes(t.id) }]),
|
|
478
|
+
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${r.value.width / 2},${r.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
|
|
459
479
|
fill: "none",
|
|
460
480
|
"stroke-width": H(t),
|
|
461
481
|
"stroke-linecap": "round"
|
|
462
482
|
}, null, 14, Vt))), 128)),
|
|
463
|
-
(n(!0), i(
|
|
464
|
-
|
|
483
|
+
(n(!0), i(_, null, M(b.value, (t, s) => (n(), i("g", Wt, [
|
|
484
|
+
S(t) ? d(e.$slots, "dataLabel", Pe({
|
|
465
485
|
key: 0,
|
|
466
486
|
ref_for: !0
|
|
467
487
|
}, {
|
|
468
488
|
x: t.midPointBezier.x,
|
|
469
489
|
y: t.midPointBezier.y,
|
|
470
|
-
color:
|
|
490
|
+
color: C(t),
|
|
471
491
|
weight: t.weight,
|
|
472
|
-
fontSize:
|
|
473
|
-
}), void 0, !0) :
|
|
474
|
-
|
|
492
|
+
fontSize: m.value
|
|
493
|
+
}), void 0, !0) : g("", !0),
|
|
494
|
+
S(t) && !e.$slots.dataLabel ? (n(), i("circle", {
|
|
475
495
|
key: 1,
|
|
476
496
|
cx: t.midPointBezier.x,
|
|
477
497
|
cy: t.midPointBezier.y,
|
|
478
|
-
fill:
|
|
479
|
-
r:
|
|
498
|
+
fill: C(t),
|
|
499
|
+
r: m.value,
|
|
480
500
|
stroke: l.value.style.backgroundColor,
|
|
481
501
|
"stroke-width": "1"
|
|
482
|
-
}, null, 8, Xt)) :
|
|
483
|
-
|
|
502
|
+
}, null, 8, Xt)) : g("", !0),
|
|
503
|
+
S(t) && !e.$slots.dataLabel ? (n(), i("text", {
|
|
484
504
|
key: 2,
|
|
485
505
|
x: t.midPointBezier.x,
|
|
486
|
-
y: t.midPointBezier.y +
|
|
487
|
-
fill: o(Me)(
|
|
506
|
+
y: t.midPointBezier.y + m.value / 3,
|
|
507
|
+
fill: o(Me)(C(t)),
|
|
488
508
|
"text-anchor": "middle",
|
|
489
|
-
"font-size":
|
|
509
|
+
"font-size": m.value
|
|
490
510
|
}, G(o(le)(
|
|
491
511
|
l.value.style.weightLabels.formatter,
|
|
492
512
|
t.weight,
|
|
493
|
-
o(
|
|
513
|
+
o(ae)({
|
|
494
514
|
p: l.value.style.weightLabels.prefix,
|
|
495
515
|
v: t.weight,
|
|
496
516
|
s: l.value.style.weightLabels.suffix,
|
|
497
517
|
r: l.value.style.weightLabels.rounding
|
|
498
518
|
}),
|
|
499
519
|
{ ...t }
|
|
500
|
-
)), 9, Yt)) :
|
|
520
|
+
)), 9, Yt)) : g("", !0)
|
|
501
521
|
]))), 256))
|
|
502
522
|
])) : (n(), i("g", qt, [
|
|
503
|
-
(n(!0), i(
|
|
504
|
-
key: `relation_${
|
|
505
|
-
stroke:
|
|
523
|
+
(n(!0), i(_, null, M(b.value, (t, s) => (n(), i("line", {
|
|
524
|
+
key: `relation_${s}`,
|
|
525
|
+
stroke: C(t),
|
|
506
526
|
"stroke-width": H(t),
|
|
507
|
-
style:
|
|
527
|
+
style: I(xe(t)),
|
|
508
528
|
x1: t.x1,
|
|
509
529
|
x2: t.x2,
|
|
510
530
|
y1: t.y1,
|
|
511
531
|
y2: t.y2,
|
|
512
|
-
class: te({ "vue-ui-relation-circle-selected":
|
|
532
|
+
class: te({ "vue-ui-relation-circle-selected": f.value.hasOwnProperty("id") && k.value.includes(t.id) }),
|
|
513
533
|
"stroke-linecap": "round"
|
|
514
534
|
}, null, 14, Ht))), 128)),
|
|
515
|
-
(n(!0), i(
|
|
516
|
-
|
|
535
|
+
(n(!0), i(_, null, M(b.value, (t, s) => (n(), i("g", Jt, [
|
|
536
|
+
S(t) ? d(e.$slots, "dataLabel", Pe({
|
|
517
537
|
key: 0,
|
|
518
538
|
ref_for: !0
|
|
519
539
|
}, {
|
|
520
540
|
x: t.midPointLine.x,
|
|
521
541
|
y: t.midPointLine.y,
|
|
522
|
-
color:
|
|
542
|
+
color: C(t),
|
|
523
543
|
weight: t.weight,
|
|
524
|
-
fontSize:
|
|
525
|
-
}), void 0, !0) :
|
|
526
|
-
|
|
544
|
+
fontSize: m.value
|
|
545
|
+
}), void 0, !0) : g("", !0),
|
|
546
|
+
S(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (n(), i("circle", {
|
|
527
547
|
key: 1,
|
|
528
548
|
cx: t.midPointLine.x,
|
|
529
549
|
cy: t.midPointLine.y,
|
|
530
|
-
fill:
|
|
531
|
-
r:
|
|
550
|
+
fill: C(t),
|
|
551
|
+
r: m.value,
|
|
532
552
|
stroke: l.value.style.backgroundColor,
|
|
533
553
|
"stroke-width": "1"
|
|
534
|
-
}, null, 8, Kt)) :
|
|
535
|
-
|
|
554
|
+
}, null, 8, Kt)) : g("", !0),
|
|
555
|
+
S(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (n(), i("text", {
|
|
536
556
|
key: 2,
|
|
537
557
|
x: t.midPointLine.x,
|
|
538
|
-
y: t.midPointLine.y +
|
|
539
|
-
fill: o(Me)(
|
|
558
|
+
y: t.midPointLine.y + m.value / 3,
|
|
559
|
+
fill: o(Me)(C(t)),
|
|
540
560
|
"text-anchor": "middle",
|
|
541
|
-
"font-size":
|
|
561
|
+
"font-size": m.value
|
|
542
562
|
}, G(o(le)(
|
|
543
563
|
l.value.style.weightLabels.formatter,
|
|
544
564
|
t.weight,
|
|
545
|
-
o(
|
|
565
|
+
o(ae)({
|
|
546
566
|
p: l.value.style.weightLabels.prefix,
|
|
547
567
|
v: t.weight,
|
|
548
568
|
s: l.value.style.weightLabels.suffix,
|
|
549
569
|
r: l.value.style.weightLabels.rounding
|
|
550
570
|
}),
|
|
551
571
|
{ ...t }
|
|
552
|
-
)), 9, Qt)) :
|
|
572
|
+
)), 9, Qt)) : g("", !0)
|
|
553
573
|
]))), 256))
|
|
554
574
|
])),
|
|
555
|
-
(n(!0), i(
|
|
556
|
-
key: `plot_text_${
|
|
575
|
+
(n(!0), i(_, null, M($.value, (t, s) => (n(), i("text", {
|
|
576
|
+
key: `plot_text_${s}`,
|
|
557
577
|
"text-anchor": Ze(t),
|
|
558
578
|
transform: lt(t),
|
|
559
579
|
x: et(t),
|
|
560
580
|
y: t.y + 5,
|
|
561
581
|
class: "vue-ui-relation-circle-legend",
|
|
562
582
|
"transform-origin": "start",
|
|
563
|
-
"font-weight":
|
|
564
|
-
style:
|
|
565
|
-
"font-size":
|
|
583
|
+
"font-weight": f.value.id === t.id ? "900" : "400",
|
|
584
|
+
style: I(`font-family:${l.value.style.fontFamily};${tt(t)}`),
|
|
585
|
+
"font-size": B.value,
|
|
566
586
|
fill: l.value.style.labels.color,
|
|
567
|
-
"text-decoration":
|
|
568
|
-
onClick: (c) => Ce(t,
|
|
569
|
-
onMouseenter: (c) => $e(t,
|
|
570
|
-
onMouseleave: (c) => Ae(t,
|
|
587
|
+
"text-decoration": s === N.value ? "underline" : void 0,
|
|
588
|
+
onClick: (c) => Ce(t, s),
|
|
589
|
+
onMouseenter: (c) => $e(t, s),
|
|
590
|
+
onMouseleave: (c) => Ae(t, s)
|
|
571
591
|
}, [
|
|
572
|
-
o(ce) ? (n(), i(
|
|
592
|
+
o(ce) ? (n(), i(_, { key: 0 }, [
|
|
573
593
|
ze(" -------- ")
|
|
574
|
-
], 64)) : (n(), i(
|
|
594
|
+
], 64)) : (n(), i(_, { key: 1 }, [
|
|
575
595
|
ze(G(t.label) + " (" + G(o(le)(
|
|
576
596
|
l.value.style.weightLabels.formatter,
|
|
577
597
|
t.totalWeight,
|
|
578
|
-
o(
|
|
598
|
+
o(ae)({
|
|
579
599
|
p: l.value.style.weightLabels.prefix,
|
|
580
600
|
v: t.totalWeight,
|
|
581
601
|
s: l.value.style.weightLabels.suffix,
|
|
@@ -585,37 +605,37 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Ut = ["width", "height"], Dt = ["c
|
|
|
585
605
|
)) + ") ", 1)
|
|
586
606
|
], 64))
|
|
587
607
|
], 44, Zt))), 128)),
|
|
588
|
-
(n(!0), i(
|
|
608
|
+
(n(!0), i(_, null, M($.value, (t, s) => (n(), i("circle", {
|
|
589
609
|
cx: t.x,
|
|
590
610
|
cy: t.y,
|
|
591
|
-
key: `plot_${
|
|
592
|
-
style:
|
|
611
|
+
key: `plot_${s}`,
|
|
612
|
+
style: I(`${Qe(t)}; transition: r 0.2s ease-in-out;`),
|
|
593
613
|
class: "vue-ui-relation-circle-plot",
|
|
594
614
|
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
595
615
|
stroke: l.value.style.backgroundColor,
|
|
596
616
|
"stroke-width": "1",
|
|
597
|
-
r:
|
|
598
|
-
onClick: (c) => Ce(t,
|
|
599
|
-
onMouseenter: (c) => $e(t,
|
|
600
|
-
onMouseleave: (c) => Ae(t,
|
|
617
|
+
r: T.value * (s === N.value ? 2 : 1),
|
|
618
|
+
onClick: (c) => Ce(t, s),
|
|
619
|
+
onMouseenter: (c) => $e(t, s),
|
|
620
|
+
onMouseleave: (c) => Ae(t, s)
|
|
601
621
|
}, null, 44, el))), 128)),
|
|
602
|
-
|
|
622
|
+
d(e.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
603
623
|
], 10, jt)),
|
|
604
624
|
e.$slots.watermark ? (n(), i("div", tl, [
|
|
605
|
-
|
|
606
|
-
])) :
|
|
625
|
+
d(e.$slots, "watermark", w(x({ isPrinting: o(fe) || o(ge) })), void 0, !0)
|
|
626
|
+
])) : g("", !0),
|
|
607
627
|
e.$slots.source ? (n(), i("div", {
|
|
608
628
|
key: 5,
|
|
609
629
|
ref_key: "source",
|
|
610
630
|
ref: oe,
|
|
611
631
|
dir: "auto"
|
|
612
632
|
}, [
|
|
613
|
-
|
|
614
|
-
], 512)) :
|
|
615
|
-
o(ce) ? (n(),
|
|
633
|
+
d(e.$slots, "source", {}, void 0, !0)
|
|
634
|
+
], 512)) : g("", !0),
|
|
635
|
+
o(ce) ? (n(), D(zt, { key: 6 })) : g("", !0)
|
|
616
636
|
], 44, Nt));
|
|
617
637
|
}
|
|
618
|
-
}, ml = /* @__PURE__ */ Tt(ll, [["__scopeId", "data-v-
|
|
638
|
+
}, ml = /* @__PURE__ */ Tt(ll, [["__scopeId", "data-v-7d3425c2"]]);
|
|
619
639
|
export {
|
|
620
640
|
ml as default
|
|
621
641
|
};
|