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,18 +1,19 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import Ot from "./
|
|
11
|
-
import
|
|
12
|
-
|
|
1
|
+
import { useCssVars as ut, computed as h, defineAsyncComponent as Z, ref as r, toRefs as ot, watch as ee, shallowRef as Le, onMounted as rt, onBeforeUnmount as ct, createElementBlock as n, openBlock as i, unref as u, normalizeStyle as z, createBlock as N, createCommentVNode as f, createSlots as vt, withCtx as M, renderSlot as g, normalizeProps as j, guardReactiveProps as D, normalizeClass as te, createVNode as dt, createElementVNode as ft, Fragment as $, renderList as O, mergeProps as Pe, toDisplayString as U, createTextVNode as ze } from "vue";
|
|
2
|
+
import { u as yt, c as ht, t as gt, a as mt, p as Oe, b as pt, d as bt, o as Se, f as Ie, g as kt, X as wt, F as Me, k as le, i as se, E as ae } from "./index-FPxvoief.js";
|
|
3
|
+
import { t as xt, u as $t } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as At, B as _t } from "./useLoading-D7YHNtLX.js";
|
|
5
|
+
import { u as Ct } from "./usePrinter-M0JhvX8r.js";
|
|
6
|
+
import { u as Ee } from "./useNestedProp-DzVMdkPE.js";
|
|
7
|
+
import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Pt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as zt } from "./useAutoSizeLabelsInsideViewbox-BOEYVAI_.js";
|
|
10
|
+
import Ot from "./img-CUZp-9tT.js";
|
|
11
|
+
import St from "./Title-D_WUff_Y.js";
|
|
12
|
+
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["cx", "cy", "r", "stroke", "stroke-width"], Rt = { key: 1 }, Tt = ["stroke", "d", "stroke-width"], Nt = { style: { "pointer-events": "none" } }, jt = ["cx", "cy", "fill", "r", "stroke"], Dt = ["x", "y", "fill", "font-size"], Ut = { key: 2 }, Vt = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Gt = { style: { "pointer-events": "none" } }, Wt = ["cx", "cy", "fill", "r", "stroke"], Xt = ["x", "y", "fill", "font-size"], Yt = ["text-anchor", "transform", "x", "y", "font-weight", "font-size", "fill", "text-decoration", "onClick", "onMouseenter", "onMouseleave"], qt = ["cx", "cy", "fill", "stroke", "r", "onClick", "onMouseenter", "onMouseleave"], Ht = {
|
|
13
14
|
key: 4,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, Jt = {
|
|
16
17
|
__name: "vue-ui-relation-circle",
|
|
17
18
|
props: {
|
|
18
19
|
dataset: {
|
|
@@ -28,16 +29,16 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
|
-
setup(
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
32
|
+
setup(Fe, { expose: Be }) {
|
|
33
|
+
ut((e) => ({
|
|
34
|
+
"51791a0b": Ye.value,
|
|
35
|
+
"501dae6a": Xe.value,
|
|
36
|
+
"2abe5668": qe.value
|
|
36
37
|
}));
|
|
37
|
-
const
|
|
38
|
-
...
|
|
38
|
+
const Re = Z(() => import("./PenAndPaper-ByuyUNh2.js")), Te = Z(() => import("./UserOptions-ZcUANK_c.js")), Ne = Z(() => import("./PackageVersion-CvI7dfPE.js")), { vue_ui_relation_circle: je } = yt(), m = Fe, De = h(() => !!m.dataset && Object.keys(m.dataset).length), S = r(ht()), ie = r(0), A = r(null), ne = r(null), ue = r(null), oe = r(null), re = r(0), l = r(X()), { loading: ce, FINAL_DATASET: Ue, manualLoading: V } = At({
|
|
39
|
+
...ot(m),
|
|
39
40
|
FINAL_CONFIG: l,
|
|
40
|
-
prepareConfig:
|
|
41
|
+
prepareConfig: X,
|
|
41
42
|
skeletonDataset: [
|
|
42
43
|
{ id: "A", label: "_", relations: ["B", "C", "D", "E", "F", "G"] },
|
|
43
44
|
{ id: "B", label: "_", relations: ["A"] },
|
|
@@ -47,7 +48,7 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
47
48
|
{ id: "F", label: "_", relations: ["A"] },
|
|
48
49
|
{ id: "G", label: "_", relations: ["A"] }
|
|
49
50
|
],
|
|
50
|
-
skeletonConfig:
|
|
51
|
+
skeletonConfig: gt({
|
|
51
52
|
defaultConfig: l.value,
|
|
52
53
|
userConfig: {
|
|
53
54
|
userOptions: { show: !1 },
|
|
@@ -61,30 +62,30 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
})
|
|
64
|
-
}), { userOptionsVisible:
|
|
65
|
-
function
|
|
66
|
-
const e =
|
|
65
|
+
}), { userOptionsVisible: G, setUserOptionsVisibility: ve, keepUserOptionState: de } = Lt({ config: l.value }), { svgRef: W } = Pt({ config: l.value.style.title });
|
|
66
|
+
function X() {
|
|
67
|
+
const e = Ee({
|
|
67
68
|
userConfig: m.config,
|
|
68
|
-
defaultConfig:
|
|
69
|
+
defaultConfig: je
|
|
69
70
|
});
|
|
70
71
|
return e.theme ? {
|
|
71
|
-
...
|
|
72
|
-
userConfig:
|
|
72
|
+
...Ee({
|
|
73
|
+
userConfig: pt.vue_ui_relation_circle[e.theme] || m.config,
|
|
73
74
|
defaultConfig: e
|
|
74
75
|
}),
|
|
75
|
-
customPalette:
|
|
76
|
+
customPalette: mt[e.theme] || Oe
|
|
76
77
|
} : e;
|
|
77
78
|
}
|
|
78
|
-
|
|
79
|
-
l.value =
|
|
80
|
-
}, { deep: !0 }),
|
|
81
|
-
Array.isArray(e) && e.length > 0 && (
|
|
79
|
+
ee(() => m.config, (e) => {
|
|
80
|
+
l.value = X(), G.value = !l.value.userOptions.showOnChartHover, _.value = l.value.style.size, y.value = l.value.style.weightLabels.size, F.value = l.value.style.plot.radius, I.value = l.value.style.labels.fontSize, o.value.height = l.value.style.size, o.value.width = l.value.style.size, be(), re.value += 1;
|
|
81
|
+
}, { deep: !0 }), ee(() => m.dataset, (e) => {
|
|
82
|
+
Array.isArray(e) && e.length > 0 && (V.value = !1);
|
|
82
83
|
}, { deep: !0 });
|
|
83
|
-
const { isPrinting: fe, isImaging: ye, generatePdf: he, generateImage: ge } =
|
|
84
|
-
elementId: `relation_circle_${
|
|
84
|
+
const { isPrinting: fe, isImaging: ye, generatePdf: he, generateImage: ge } = Ct({
|
|
85
|
+
elementId: `relation_circle_${S.value}`,
|
|
85
86
|
fileName: l.value.style.title.text || "vue-ui-relation-circle",
|
|
86
87
|
options: l.value.userOptions.print
|
|
87
|
-
}),
|
|
88
|
+
}), Ve = h(() => l.value.userOptions.show && !l.value.style.title.text), me = h(() => bt(l.value.customPalette)), k = r([]), p = r([]), d = r({}), b = r([]), Ge = r(0), E = h(() => Ue.value.slice(0, l.value.style.limit).map((e) => {
|
|
88
89
|
const s = Array.isArray(e.relations) ? e.relations : [];
|
|
89
90
|
return {
|
|
90
91
|
...e,
|
|
@@ -92,10 +93,10 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
92
93
|
relations: s
|
|
93
94
|
};
|
|
94
95
|
}));
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
ee(E, () => {
|
|
97
|
+
k.value = [], p.value = [], Y(), q();
|
|
97
98
|
});
|
|
98
|
-
const _ =
|
|
99
|
+
const _ = r(l.value.style.size), y = r(l.value.style.weightLabels.size), F = r(l.value.style.plot.radius), I = r(l.value.style.labels.fontSize), o = r({
|
|
99
100
|
height: l.value.style.size,
|
|
100
101
|
width: l.value.style.size
|
|
101
102
|
}), C = h({
|
|
@@ -105,17 +106,17 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
105
106
|
set(e) {
|
|
106
107
|
return e;
|
|
107
108
|
}
|
|
108
|
-
}),
|
|
109
|
+
}), We = h(() => l.value.style.links.curved), Xe = h(() => `${l.value.style.animation.speedMs}ms`), Ye = h(() => C.value * 2), qe = h(() => C.value * 4), w = Le(null), L = Le(null);
|
|
109
110
|
rt(() => {
|
|
110
|
-
|
|
111
|
+
be(), document.getElementById(`relation_circle_${S.value}`).addEventListener("click", we);
|
|
111
112
|
});
|
|
112
113
|
const pe = h(() => l.value.debug);
|
|
113
|
-
function
|
|
114
|
-
if (
|
|
114
|
+
function be() {
|
|
115
|
+
if (Se(m.dataset) ? (Ie({
|
|
115
116
|
componentName: "VueUiRelationCircle",
|
|
116
117
|
type: "dataset",
|
|
117
118
|
debug: pe.value
|
|
118
|
-
}),
|
|
119
|
+
}), V.value = !0) : m.dataset.forEach((e, s) => {
|
|
119
120
|
kt({
|
|
120
121
|
datasetObject: e,
|
|
121
122
|
requiredAttributes: ["id", "label", "relations", "weights"]
|
|
@@ -128,62 +129,70 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
128
129
|
debug: pe.value
|
|
129
130
|
});
|
|
130
131
|
});
|
|
131
|
-
}),
|
|
132
|
-
const e =
|
|
133
|
-
const { width: s, height: t } =
|
|
132
|
+
}), Se(m.dataset) || (V.value = l.value.loading), l.value.responsive) {
|
|
133
|
+
const e = xt(() => {
|
|
134
|
+
const { width: s, height: t } = $t({
|
|
134
135
|
chart: A.value,
|
|
135
|
-
title: l.value.style.title.text ?
|
|
136
|
-
source:
|
|
137
|
-
noTitle:
|
|
136
|
+
title: l.value.style.title.text ? ne.value : null,
|
|
137
|
+
source: ue.value,
|
|
138
|
+
noTitle: oe.value
|
|
138
139
|
});
|
|
139
140
|
requestAnimationFrame(() => {
|
|
140
|
-
_.value = Math.min(s, t),
|
|
141
|
+
_.value = Math.min(s, t), o.value.width = Math.max(0.1, s), o.value.height = Math.max(0.1, t - 12), C.value = _.value * l.value.style.circle.radiusProportion, k.value = [], p.value = [], Y(), q(), ke(), l.value.responsiveProportionalSizing ? (y.value = ae({
|
|
141
142
|
relator: _.value,
|
|
142
143
|
adjuster: l.value.style.size,
|
|
143
144
|
source: l.value.style.weightLabels.size,
|
|
144
145
|
threshold: 6,
|
|
145
146
|
fallback: 6
|
|
146
|
-
}),
|
|
147
|
+
}), F.value = ae({
|
|
147
148
|
relator: _.value,
|
|
148
149
|
adjuster: l.value.style.size,
|
|
149
150
|
source: l.value.style.plot.radius,
|
|
150
151
|
threshold: 1,
|
|
151
152
|
fallback: 1
|
|
152
|
-
}),
|
|
153
|
+
}), I.value = ae({
|
|
153
154
|
relator: _.value,
|
|
154
155
|
adjuster: l.value.style.size,
|
|
155
156
|
source: l.value.style.labels.fontSize,
|
|
156
157
|
threshold: 6,
|
|
157
158
|
fallback: 6
|
|
158
|
-
})) : (y.value = l.value.style.weightLabels.size,
|
|
159
|
+
})) : (y.value = l.value.style.weightLabels.size, F.value = l.value.style.plot.radius, I.value = l.value.style.labels.fontSize);
|
|
159
160
|
});
|
|
160
161
|
});
|
|
161
162
|
w.value && (L.value && w.value.unobserve(L.value), w.value.disconnect()), w.value = new ResizeObserver(e), L.value = A.value.parentNode, w.value.observe(L.value);
|
|
162
163
|
} else
|
|
163
|
-
|
|
164
|
+
k.value = [], p.value = [], Y(), q();
|
|
165
|
+
ke();
|
|
164
166
|
}
|
|
165
|
-
|
|
166
|
-
document.getElementById(`relation_circle_${
|
|
167
|
+
ct(() => {
|
|
168
|
+
document.getElementById(`relation_circle_${S.value}`).removeEventListener("click", we), w.value && (L.value && w.value.unobserve(L.value), w.value.disconnect());
|
|
169
|
+
});
|
|
170
|
+
const { autoSizeLabels: ke } = zt({
|
|
171
|
+
svgRef: W,
|
|
172
|
+
fontSize: l.value.style.labels.fontSize,
|
|
173
|
+
minFontSize: l.value.style.labels.minFontSize,
|
|
174
|
+
sizeRef: I,
|
|
175
|
+
labelClass: ".vue-ui-relation-circle-legend"
|
|
167
176
|
});
|
|
168
|
-
function
|
|
177
|
+
function we(e) {
|
|
169
178
|
const s = e.target;
|
|
170
|
-
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 = {},
|
|
179
|
+
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 = {}, b.value = []);
|
|
171
180
|
}
|
|
172
|
-
function
|
|
173
|
-
const e = 6.28319 /
|
|
181
|
+
function Y() {
|
|
182
|
+
const e = 6.28319 / E.value.length, s = 360 / E.value.length;
|
|
174
183
|
let t = 0, a = 0;
|
|
175
|
-
|
|
176
|
-
const
|
|
177
|
-
|
|
184
|
+
E.value.forEach((c, v) => {
|
|
185
|
+
const K = c.weights.reduce((it, nt) => it + nt, 0), Q = C.value * Math.cos(t) + o.value.width / 2, at = C.value * Math.sin(t) + o.value.height / 2 + l.value.style.circle.offsetY;
|
|
186
|
+
k.value.push({ x: Q, y: at, ...c, color: c.color ? c.color : me.value[v] ? me.value[v] : Oe[v], regAngle: a, totalWeight: K }), t += e, a += s;
|
|
178
187
|
});
|
|
179
188
|
}
|
|
180
|
-
function
|
|
189
|
+
function He(e, s) {
|
|
181
190
|
const t = (e.x + s.x) / 2, a = (e.y + s.y) / 2;
|
|
182
191
|
return { x: t, y: a };
|
|
183
192
|
}
|
|
184
|
-
function
|
|
185
|
-
p.value = [],
|
|
186
|
-
|
|
193
|
+
function q() {
|
|
194
|
+
p.value = [], k.value.forEach((e) => {
|
|
195
|
+
k.value.filter((t) => t.relations.includes(e.id)).forEach((t, a) => {
|
|
187
196
|
const c = t.relations.indexOf(e.id);
|
|
188
197
|
p.value.push({
|
|
189
198
|
weight: t.weights[c] ? t.weights[c] : 0,
|
|
@@ -194,8 +203,8 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
194
203
|
y2: t.y,
|
|
195
204
|
colorSource: e.color,
|
|
196
205
|
colorTarget: t.color,
|
|
197
|
-
midPointLine:
|
|
198
|
-
midPointBezier:
|
|
206
|
+
midPointLine: He({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
|
|
207
|
+
midPointBezier: Je({
|
|
199
208
|
x1: e.x,
|
|
200
209
|
x2: t.x,
|
|
201
210
|
y1: e.y,
|
|
@@ -206,63 +215,63 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
206
215
|
});
|
|
207
216
|
});
|
|
208
217
|
}
|
|
209
|
-
function
|
|
218
|
+
function Je(e) {
|
|
210
219
|
const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, a = { x: e.x1, y: e.y1 }, c = {
|
|
211
|
-
x:
|
|
212
|
-
y:
|
|
213
|
-
}, v = 0.5,
|
|
214
|
-
return { x:
|
|
220
|
+
x: o.value.width / 2,
|
|
221
|
+
y: o.value.height / 2 + l.value.style.circle.offsetY
|
|
222
|
+
}, v = 0.5, K = Math.pow(1 - v, 3) * s.x + 3 * Math.pow(1 - v, 2) * v * a.x + 3 * (1 - v) * Math.pow(v, 2) * c.x + Math.pow(v, 3) * t.x, Q = Math.pow(1 - v, 3) * s.y + 3 * Math.pow(1 - v, 2) * v * a.y + 3 * (1 - v) * Math.pow(v, 2) * c.y + Math.pow(v, 3) * t.y;
|
|
223
|
+
return { x: K, y: Q };
|
|
215
224
|
}
|
|
216
|
-
const
|
|
217
|
-
function
|
|
218
|
-
return Object.hasOwn(d.value, "x") ?
|
|
225
|
+
const Ke = h(() => Math.max(...p.value.map((e) => e.weight)));
|
|
226
|
+
function Qe(e) {
|
|
227
|
+
return Object.hasOwn(d.value, "x") ? b.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
219
228
|
}
|
|
220
229
|
function x(e) {
|
|
221
230
|
return e.colorSource;
|
|
222
231
|
}
|
|
223
|
-
function
|
|
224
|
-
return Object.hasOwn(d.value, "x") ?
|
|
232
|
+
function xe(e) {
|
|
233
|
+
return Object.hasOwn(d.value, "x") ? b.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}` ? `opacity:1;stroke-width:${H(e)}` : "opacity: 0" : "opacity: 1";
|
|
225
234
|
}
|
|
226
235
|
function P(e) {
|
|
227
|
-
return Object.hasOwn(d.value, "x") ? !!(
|
|
228
|
-
}
|
|
229
|
-
function Qe(e) {
|
|
230
|
-
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
236
|
+
return Object.hasOwn(d.value, "x") ? !!(b.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}`) : !1;
|
|
231
237
|
}
|
|
232
238
|
function Ze(e) {
|
|
233
|
-
return e.regAngle > 90 && e.regAngle < 270 ?
|
|
239
|
+
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
234
240
|
}
|
|
235
241
|
function et(e) {
|
|
236
|
-
return
|
|
242
|
+
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
237
243
|
}
|
|
238
244
|
function tt(e) {
|
|
239
|
-
return
|
|
245
|
+
return Object.hasOwn(d.value, "x") ? d.value.id === e.id || b.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
240
246
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
F.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s });
|
|
247
|
+
function lt(e) {
|
|
248
|
+
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
244
249
|
}
|
|
250
|
+
const B = r(null);
|
|
245
251
|
function $e(e, s) {
|
|
246
|
-
|
|
252
|
+
B.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s });
|
|
247
253
|
}
|
|
248
254
|
function Ae(e, s) {
|
|
249
|
-
l.value.events.
|
|
255
|
+
B.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s });
|
|
250
256
|
}
|
|
251
|
-
function
|
|
252
|
-
|
|
257
|
+
function _e(e, s) {
|
|
258
|
+
l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: e, seriesIndex: s }), Ge.value = 360 - e.regAngle, d.value.id && e.id === d.value.id ? (d.value = {}, b.value = []) : (d.value = e, b.value = [...e.relations]);
|
|
259
|
+
}
|
|
260
|
+
function H(e) {
|
|
261
|
+
const s = e.weight / Ke.value * l.value.style.links.maxWidth;
|
|
253
262
|
return Math.max(0.3, s);
|
|
254
263
|
}
|
|
255
|
-
const
|
|
256
|
-
function
|
|
257
|
-
|
|
264
|
+
const R = r(!1);
|
|
265
|
+
function Ce(e) {
|
|
266
|
+
R.value = e, ie.value += 1;
|
|
258
267
|
}
|
|
259
|
-
const
|
|
260
|
-
function
|
|
261
|
-
|
|
268
|
+
const T = r(!1);
|
|
269
|
+
function J() {
|
|
270
|
+
T.value = !T.value;
|
|
262
271
|
}
|
|
263
|
-
async function
|
|
272
|
+
async function st({ scale: e = 2 } = {}) {
|
|
264
273
|
if (!A.value) return;
|
|
265
|
-
const { width: s, height: t } = A.value.getBoundingClientRect(), a = s / t, { imageUri: c, base64: v } = await
|
|
274
|
+
const { width: s, height: t } = A.value.getBoundingClientRect(), a = s / t, { imageUri: c, base64: v } = await Ot({ domElement: A.value, base64: !0, img: !0, scale: e });
|
|
266
275
|
return {
|
|
267
276
|
imageUri: c,
|
|
268
277
|
base64: v,
|
|
@@ -273,42 +282,42 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
273
282
|
};
|
|
274
283
|
}
|
|
275
284
|
return Be({
|
|
276
|
-
getImage:
|
|
285
|
+
getImage: st,
|
|
277
286
|
generatePdf: he,
|
|
278
287
|
generateImage: ge,
|
|
279
|
-
toggleAnnotator:
|
|
280
|
-
toggleFullscreen:
|
|
288
|
+
toggleAnnotator: J,
|
|
289
|
+
toggleFullscreen: Ce
|
|
281
290
|
}), (e, s) => (i(), n("div", {
|
|
282
291
|
ref_key: "relationCircleChart",
|
|
283
292
|
ref: A,
|
|
284
293
|
class: "vue-ui-relation-circle",
|
|
285
|
-
style:
|
|
286
|
-
id: `relation_circle_${
|
|
287
|
-
onMouseenter: s[0] || (s[0] = () => u(
|
|
288
|
-
onMouseleave: s[1] || (s[1] = () => u(
|
|
294
|
+
style: z(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
|
|
295
|
+
id: `relation_circle_${S.value}`,
|
|
296
|
+
onMouseenter: s[0] || (s[0] = () => u(ve)(!0)),
|
|
297
|
+
onMouseleave: s[1] || (s[1] = () => u(ve)(!1))
|
|
289
298
|
}, [
|
|
290
|
-
l.value.userOptions.buttons.annotator ? (i(), N(u(
|
|
299
|
+
l.value.userOptions.buttons.annotator ? (i(), N(u(Re), {
|
|
291
300
|
key: 0,
|
|
292
|
-
svgRef: u(
|
|
301
|
+
svgRef: u(W),
|
|
293
302
|
backgroundColor: l.value.style.backgroundColor,
|
|
294
303
|
color: l.value.style.color,
|
|
295
|
-
active:
|
|
296
|
-
onClose:
|
|
304
|
+
active: T.value,
|
|
305
|
+
onClose: J
|
|
297
306
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
298
|
-
|
|
307
|
+
Ve.value ? (i(), n("div", {
|
|
299
308
|
key: 1,
|
|
300
309
|
ref_key: "noTitle",
|
|
301
|
-
ref:
|
|
310
|
+
ref: oe,
|
|
302
311
|
class: "vue-data-ui-no-title-space",
|
|
303
312
|
style: "height:36px; width: 100%;background:transparent"
|
|
304
313
|
}, null, 512)) : f("", !0),
|
|
305
314
|
l.value.style.title.text ? (i(), n("div", {
|
|
306
315
|
key: 2,
|
|
307
316
|
ref_key: "chartTitle",
|
|
308
|
-
ref:
|
|
317
|
+
ref: ne,
|
|
309
318
|
style: "width:100%;background:transparent"
|
|
310
319
|
}, [
|
|
311
|
-
(i(), N(
|
|
320
|
+
(i(), N(St, {
|
|
312
321
|
key: `title_${re.value}`,
|
|
313
322
|
config: {
|
|
314
323
|
title: {
|
|
@@ -322,34 +331,34 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
322
331
|
}
|
|
323
332
|
}, null, 8, ["config"]))
|
|
324
333
|
], 512)) : f("", !0),
|
|
325
|
-
l.value.userOptions.show &&
|
|
334
|
+
l.value.userOptions.show && De.value && (u(de) || u(G)) ? (i(), N(u(Te), {
|
|
326
335
|
ref: "details",
|
|
327
|
-
key: `user_options_${
|
|
336
|
+
key: `user_options_${ie.value}`,
|
|
328
337
|
backgroundColor: l.value.style.backgroundColor,
|
|
329
338
|
color: l.value.style.color,
|
|
330
339
|
isPrinting: u(fe),
|
|
331
340
|
isImaging: u(ye),
|
|
332
|
-
uid:
|
|
341
|
+
uid: S.value,
|
|
333
342
|
hasPdf: l.value.userOptions.buttons.pdf,
|
|
334
343
|
hasImg: l.value.userOptions.buttons.img,
|
|
335
344
|
hasFullscreen: l.value.userOptions.buttons.img,
|
|
336
345
|
hasXls: !1,
|
|
337
|
-
isFullscreen:
|
|
346
|
+
isFullscreen: R.value,
|
|
338
347
|
titles: { ...l.value.userOptions.buttonTitles },
|
|
339
348
|
chartElement: A.value,
|
|
340
349
|
position: l.value.userOptions.position,
|
|
341
350
|
hasAnnotator: l.value.userOptions.buttons.annotator,
|
|
342
|
-
isAnnotation:
|
|
351
|
+
isAnnotation: T.value,
|
|
343
352
|
callbacks: l.value.userOptions.callbacks,
|
|
344
353
|
printScale: l.value.userOptions.print.scale,
|
|
345
|
-
onToggleFullscreen:
|
|
354
|
+
onToggleFullscreen: Ce,
|
|
346
355
|
onGeneratePdf: u(he),
|
|
347
356
|
onGenerateImage: u(ge),
|
|
348
|
-
onToggleAnnotator:
|
|
349
|
-
style:
|
|
350
|
-
visibility: u(
|
|
357
|
+
onToggleAnnotator: J,
|
|
358
|
+
style: z({
|
|
359
|
+
visibility: u(de) ? u(G) ? "visible" : "hidden" : "visible"
|
|
351
360
|
})
|
|
352
|
-
},
|
|
361
|
+
}, vt({ _: 2 }, [
|
|
353
362
|
e.$slots.menuIcon ? {
|
|
354
363
|
name: "menuIcon",
|
|
355
364
|
fn: M(({ isOpen: t, color: a }) => [
|
|
@@ -388,48 +397,48 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
388
397
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
389
398
|
(i(), n("svg", {
|
|
390
399
|
ref_key: "svgRef",
|
|
391
|
-
ref:
|
|
392
|
-
xmlns: u(
|
|
393
|
-
class:
|
|
394
|
-
viewBox: `0 0 ${
|
|
400
|
+
ref: W,
|
|
401
|
+
xmlns: u(wt),
|
|
402
|
+
class: te([{ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }, "relation-circle"]),
|
|
403
|
+
viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
|
|
395
404
|
width: "100%",
|
|
396
405
|
style: "user-select:none; background:transparent"
|
|
397
406
|
}, [
|
|
398
|
-
|
|
407
|
+
dt(u(Ne)),
|
|
399
408
|
e.$slots["chart-background"] ? (i(), n("foreignObject", {
|
|
400
409
|
key: 0,
|
|
401
410
|
x: 0,
|
|
402
411
|
y: 0,
|
|
403
|
-
width:
|
|
404
|
-
height:
|
|
412
|
+
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
413
|
+
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
405
414
|
style: {
|
|
406
415
|
pointerEvents: "none"
|
|
407
416
|
}
|
|
408
417
|
}, [
|
|
409
418
|
g(e.$slots, "chart-background", {}, void 0, !0)
|
|
410
|
-
], 8,
|
|
411
|
-
|
|
412
|
-
cx: (
|
|
413
|
-
cy: (
|
|
419
|
+
], 8, Ft)) : f("", !0),
|
|
420
|
+
ft("circle", {
|
|
421
|
+
cx: (o.value.width <= 0 ? 1e-4 : o.value.width) / 2,
|
|
422
|
+
cy: (o.value.height <= 0 ? 1e-4 : o.value.height) / 2 + l.value.style.circle.offsetY,
|
|
414
423
|
r: C.value <= 0 ? 1e-4 : C.value,
|
|
415
424
|
stroke: l.value.style.circle.stroke,
|
|
416
425
|
"stroke-width": l.value.style.circle.strokeWidth,
|
|
417
426
|
fill: "transparent",
|
|
418
427
|
class: "main-circle"
|
|
419
|
-
}, null, 8,
|
|
420
|
-
|
|
421
|
-
(i(!0), n($, null,
|
|
428
|
+
}, null, 8, Bt),
|
|
429
|
+
We.value ? (i(), n("g", Rt, [
|
|
430
|
+
(i(!0), n($, null, O(p.value, (t, a) => (i(), n("path", {
|
|
422
431
|
key: `relation_${a}`,
|
|
423
|
-
style:
|
|
432
|
+
style: z(xe(t)),
|
|
424
433
|
stroke: x(t),
|
|
425
|
-
class:
|
|
426
|
-
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${
|
|
434
|
+
class: te(["relation", { "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && b.value.includes(t.id) }]),
|
|
435
|
+
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${o.value.width / 2},${o.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
|
|
427
436
|
fill: "none",
|
|
428
|
-
"stroke-width":
|
|
437
|
+
"stroke-width": H(t),
|
|
429
438
|
"stroke-linecap": "round"
|
|
430
|
-
}, null, 14,
|
|
431
|
-
(i(!0), n($, null,
|
|
432
|
-
P(t) ? g(e.$slots, "dataLabel",
|
|
439
|
+
}, null, 14, Tt))), 128)),
|
|
440
|
+
(i(!0), n($, null, O(p.value, (t, a) => (i(), n("g", Nt, [
|
|
441
|
+
P(t) ? g(e.$slots, "dataLabel", Pe({
|
|
433
442
|
key: 0,
|
|
434
443
|
ref_for: !0
|
|
435
444
|
}, {
|
|
@@ -447,7 +456,7 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
447
456
|
r: y.value,
|
|
448
457
|
stroke: l.value.style.backgroundColor,
|
|
449
458
|
"stroke-width": "1"
|
|
450
|
-
}, null, 8,
|
|
459
|
+
}, null, 8, jt)) : f("", !0),
|
|
451
460
|
P(t) && !e.$slots.dataLabel ? (i(), n("text", {
|
|
452
461
|
key: 2,
|
|
453
462
|
x: t.midPointBezier.x,
|
|
@@ -455,33 +464,33 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
455
464
|
fill: u(Me)(x(t)),
|
|
456
465
|
"text-anchor": "middle",
|
|
457
466
|
"font-size": y.value
|
|
458
|
-
}, U(u(
|
|
467
|
+
}, U(u(le)(
|
|
459
468
|
l.value.style.weightLabels.formatter,
|
|
460
469
|
t.weight,
|
|
461
|
-
u(
|
|
470
|
+
u(se)({
|
|
462
471
|
p: l.value.style.weightLabels.prefix,
|
|
463
472
|
v: t.weight,
|
|
464
473
|
s: l.value.style.weightLabels.suffix,
|
|
465
474
|
r: l.value.style.weightLabels.rounding
|
|
466
475
|
}),
|
|
467
476
|
{ ...t }
|
|
468
|
-
)), 9,
|
|
477
|
+
)), 9, Dt)) : f("", !0)
|
|
469
478
|
]))), 256))
|
|
470
|
-
])) : (i(), n("g",
|
|
471
|
-
(i(!0), n($, null,
|
|
479
|
+
])) : (i(), n("g", Ut, [
|
|
480
|
+
(i(!0), n($, null, O(p.value, (t, a) => (i(), n("line", {
|
|
472
481
|
key: `relation_${a}`,
|
|
473
482
|
stroke: x(t),
|
|
474
|
-
"stroke-width":
|
|
475
|
-
style:
|
|
483
|
+
"stroke-width": H(t),
|
|
484
|
+
style: z(xe(t)),
|
|
476
485
|
x1: t.x1,
|
|
477
486
|
x2: t.x2,
|
|
478
487
|
y1: t.y1,
|
|
479
488
|
y2: t.y2,
|
|
480
|
-
class:
|
|
489
|
+
class: te({ "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && b.value.includes(t.id) }),
|
|
481
490
|
"stroke-linecap": "round"
|
|
482
|
-
}, null, 14,
|
|
483
|
-
(i(!0), n($, null,
|
|
484
|
-
P(t) ? g(e.$slots, "dataLabel",
|
|
491
|
+
}, null, 14, Vt))), 128)),
|
|
492
|
+
(i(!0), n($, null, O(p.value, (t, a) => (i(), n("g", Gt, [
|
|
493
|
+
P(t) ? g(e.$slots, "dataLabel", Pe({
|
|
485
494
|
key: 0,
|
|
486
495
|
ref_for: !0
|
|
487
496
|
}, {
|
|
@@ -499,7 +508,7 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
499
508
|
r: y.value,
|
|
500
509
|
stroke: l.value.style.backgroundColor,
|
|
501
510
|
"stroke-width": "1"
|
|
502
|
-
}, null, 8,
|
|
511
|
+
}, null, 8, Wt)) : f("", !0),
|
|
503
512
|
P(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), n("text", {
|
|
504
513
|
key: 2,
|
|
505
514
|
x: t.midPointLine.x,
|
|
@@ -507,43 +516,43 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
507
516
|
fill: u(Me)(x(t)),
|
|
508
517
|
"text-anchor": "middle",
|
|
509
518
|
"font-size": y.value
|
|
510
|
-
}, U(u(
|
|
519
|
+
}, U(u(le)(
|
|
511
520
|
l.value.style.weightLabels.formatter,
|
|
512
521
|
t.weight,
|
|
513
|
-
u(
|
|
522
|
+
u(se)({
|
|
514
523
|
p: l.value.style.weightLabels.prefix,
|
|
515
524
|
v: t.weight,
|
|
516
525
|
s: l.value.style.weightLabels.suffix,
|
|
517
526
|
r: l.value.style.weightLabels.rounding
|
|
518
527
|
}),
|
|
519
528
|
{ ...t }
|
|
520
|
-
)), 9,
|
|
529
|
+
)), 9, Xt)) : f("", !0)
|
|
521
530
|
]))), 256))
|
|
522
531
|
])),
|
|
523
|
-
(i(!0), n($, null,
|
|
532
|
+
(i(!0), n($, null, O(k.value, (t, a) => (i(), n("text", {
|
|
524
533
|
key: `plot_text_${a}`,
|
|
525
|
-
"text-anchor":
|
|
526
|
-
transform:
|
|
527
|
-
x:
|
|
534
|
+
"text-anchor": Ze(t),
|
|
535
|
+
transform: lt(t),
|
|
536
|
+
x: et(t),
|
|
528
537
|
y: t.y + 5,
|
|
529
538
|
class: "vue-ui-relation-circle-legend",
|
|
530
539
|
"transform-origin": "start",
|
|
531
540
|
"font-weight": d.value.id === t.id ? "900" : "400",
|
|
532
|
-
style:
|
|
533
|
-
"font-size":
|
|
541
|
+
style: z(`font-family:${l.value.style.fontFamily};${tt(t)}`),
|
|
542
|
+
"font-size": I.value,
|
|
534
543
|
fill: l.value.style.labels.color,
|
|
535
|
-
"text-decoration": a ===
|
|
536
|
-
onClick: (c) =>
|
|
537
|
-
onMouseenter: (c) =>
|
|
538
|
-
onMouseleave: (c) =>
|
|
544
|
+
"text-decoration": a === B.value ? "underline" : void 0,
|
|
545
|
+
onClick: (c) => _e(t, a),
|
|
546
|
+
onMouseenter: (c) => $e(t, a),
|
|
547
|
+
onMouseleave: (c) => Ae(t, a)
|
|
539
548
|
}, [
|
|
540
|
-
u(
|
|
541
|
-
|
|
549
|
+
u(ce) ? (i(), n($, { key: 0 }, [
|
|
550
|
+
ze(" -------- ")
|
|
542
551
|
], 64)) : (i(), n($, { key: 1 }, [
|
|
543
|
-
|
|
552
|
+
ze(U(t.label) + " (" + U(u(le)(
|
|
544
553
|
l.value.style.weightLabels.formatter,
|
|
545
554
|
t.totalWeight,
|
|
546
|
-
u(
|
|
555
|
+
u(se)({
|
|
547
556
|
p: l.value.style.weightLabels.prefix,
|
|
548
557
|
v: t.totalWeight,
|
|
549
558
|
s: l.value.style.weightLabels.suffix,
|
|
@@ -552,38 +561,38 @@ const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["c
|
|
|
552
561
|
{ ...t }
|
|
553
562
|
)) + ") ", 1)
|
|
554
563
|
], 64))
|
|
555
|
-
], 44,
|
|
556
|
-
(i(!0), n($, null,
|
|
564
|
+
], 44, Yt))), 128)),
|
|
565
|
+
(i(!0), n($, null, O(k.value, (t, a) => (i(), n("circle", {
|
|
557
566
|
cx: t.x,
|
|
558
567
|
cy: t.y,
|
|
559
568
|
key: `plot_${a}`,
|
|
560
|
-
style:
|
|
569
|
+
style: z(`${Qe(t)}; transition: r 0.2s ease-in-out;`),
|
|
561
570
|
class: "vue-ui-relation-circle-plot",
|
|
562
571
|
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
563
572
|
stroke: l.value.style.backgroundColor,
|
|
564
573
|
"stroke-width": "1",
|
|
565
|
-
r:
|
|
566
|
-
onClick: (c) =>
|
|
567
|
-
onMouseenter: (c) =>
|
|
568
|
-
onMouseleave: (c) =>
|
|
569
|
-
}, null, 44,
|
|
570
|
-
g(e.$slots, "svg", { svg:
|
|
571
|
-
], 10,
|
|
572
|
-
e.$slots.watermark ? (i(), n("div",
|
|
574
|
+
r: F.value * (a === B.value ? 2 : 1),
|
|
575
|
+
onClick: (c) => _e(t, a),
|
|
576
|
+
onMouseenter: (c) => $e(t, a),
|
|
577
|
+
onMouseleave: (c) => Ae(t, a)
|
|
578
|
+
}, null, 44, qt))), 128)),
|
|
579
|
+
g(e.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
580
|
+
], 10, Et)),
|
|
581
|
+
e.$slots.watermark ? (i(), n("div", Ht, [
|
|
573
582
|
g(e.$slots, "watermark", j(D({ isPrinting: u(fe) || u(ye) })), void 0, !0)
|
|
574
583
|
])) : f("", !0),
|
|
575
584
|
e.$slots.source ? (i(), n("div", {
|
|
576
585
|
key: 5,
|
|
577
586
|
ref_key: "source",
|
|
578
|
-
ref:
|
|
587
|
+
ref: ue,
|
|
579
588
|
dir: "auto"
|
|
580
589
|
}, [
|
|
581
590
|
g(e.$slots, "source", {}, void 0, !0)
|
|
582
591
|
], 512)) : f("", !0),
|
|
583
|
-
u(
|
|
584
|
-
], 44,
|
|
592
|
+
u(ce) ? (i(), N(_t, { key: 6 })) : f("", !0)
|
|
593
|
+
], 44, Mt));
|
|
585
594
|
}
|
|
586
|
-
},
|
|
595
|
+
}, rl = /* @__PURE__ */ It(Jt, [["__scopeId", "data-v-72b30f4c"]]);
|
|
587
596
|
export {
|
|
588
|
-
|
|
597
|
+
rl as default
|
|
589
598
|
};
|