vue-data-ui 3.0.13 → 3.0.15
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-D4tQqJus.js → Arrow-DGSYU08F.js} +1 -1
- package/dist/{BaseDraggableDialog-CcC-HAUF.js → BaseDraggableDialog-C8qz7ExB.js} +2 -2
- package/dist/{BaseIcon-Ct07hrXe.js → BaseIcon-BA3j_Lwf.js} +1 -1
- package/dist/{ColorPicker-FkwhtArz.js → ColorPicker-sW0pMaCb.js} +2 -2
- package/dist/{DataTable-BkEwtdpl.js → DataTable-Co-fVzdq.js} +2 -2
- package/dist/{Legend-DgV5eb2_.js → Legend-NBffBBnn.js} +2 -2
- package/dist/{NonSvgPenAndPaper-he2qk9Kr.js → NonSvgPenAndPaper-CWsUFLND.js} +3 -3
- package/dist/{PackageVersion-TDeGly1K.js → PackageVersion-DkN4tXY6.js} +1 -1
- package/dist/{PenAndPaper-BXRuklxc.js → PenAndPaper-C5tGS7J9.js} +3 -3
- package/dist/{Shape-BwKqZIcj.js → Shape-Bgg7Nwsz.js} +1 -1
- package/dist/{Slicer-0BUBh_u0.js → Slicer-DzsOD_6h.js} +2 -2
- package/dist/{SparkTooltip-BBoQeigT.js → SparkTooltip-Cfx3n0pP.js} +1 -1
- package/dist/{Title-69qfEeYb.js → Title-Cdu-aDOL.js} +1 -1
- package/dist/{Tooltip-2KuV61f8.js → Tooltip-mB2Rs1Vj.js} +1 -1
- package/dist/{UserOptions-DS-5I2Ok.js → UserOptions-BMoiHEKE.js} +2 -2
- package/dist/{dom-to-png-Brv7KaBM.js → dom-to-png-DzfS79Op.js} +1 -1
- package/dist/{img-BCfGCXfh.js → img-7sjXtnNU.js} +1 -1
- package/dist/{index-BlZvRRI7.js → index-CjmWQAkv.js} +4 -4
- package/dist/{pdf-BIFwW7V2.js → pdf-BepSOa2A.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useAutoSizeLabelsInsideViewbox-iRzr0rIq.js +81 -0
- package/dist/{useNestedProp-BfifFbAl.js → useNestedProp-DFYUwW_F.js} +1 -1
- package/dist/{usePrinter-BpLrNLGp.js → usePrinter-BD_X6xEq.js} +2 -2
- package/dist/{vue-data-ui-BT27Eb6Y.js → vue-data-ui-BHC_kJCP.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CH5NKqoA.js → vue-ui-3d-bar-CvM_pNPs.js} +6 -6
- package/dist/{vue-ui-accordion-1x5Li2YN.js → vue-ui-accordion-BOmbEAe4.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B6CBFmwP.js → vue-ui-age-pyramid-2GEKVOIu.js} +6 -6
- package/dist/{vue-ui-annotator-7rSaJi0p.js → vue-ui-annotator-ULK7i_cb.js} +2 -2
- package/dist/{vue-ui-bullet-CQ3IaRe5.js → vue-ui-bullet-CtrrTkUl.js} +7 -7
- package/dist/{vue-ui-candlestick-BVB-1w1S.js → vue-ui-candlestick-C8_qIKhP.js} +7 -7
- package/dist/{vue-ui-carousel-table-B_0756Wg.js → vue-ui-carousel-table-C5-I9TDG.js} +4 -4
- package/dist/{vue-ui-chestnut-BqM3o9HZ.js → vue-ui-chestnut-DbGjz6NE.js} +5 -5
- package/dist/{vue-ui-chord-2a9gzOXO.js → vue-ui-chord-DSav5VH4.js} +8 -8
- package/dist/{vue-ui-circle-pack-BxTKQYdJ.js → vue-ui-circle-pack-Ost-SfPy.js} +6 -6
- package/dist/{vue-ui-cursor-Crejr-2d.js → vue-ui-cursor-CvvBIdhO.js} +2 -2
- package/dist/{vue-ui-dashboard-hf8KB52C.js → vue-ui-dashboard-B6jTz1V8.js} +62 -62
- package/dist/{vue-ui-digits-C2Mq50vP.js → vue-ui-digits-DW4j5hMp.js} +2 -2
- package/dist/{vue-ui-donut-vuu0Wh3B.js → vue-ui-donut-CQgVEHBd.js} +8 -8
- package/dist/{vue-ui-donut-evolution-ls8n5Sy4.js → vue-ui-donut-evolution-3Kg_0Aq8.js} +8 -8
- package/dist/{vue-ui-dumbbell-DdeFlqNp.js → vue-ui-dumbbell-B0RA0uh4.js} +7 -7
- package/dist/{vue-ui-flow-BMvSlz44.js → vue-ui-flow-mfN9qv9u.js} +7 -7
- package/dist/{vue-ui-funnel-VleV7CJ2.js → vue-ui-funnel-By1EE6eQ.js} +6 -6
- package/dist/{vue-ui-galaxy-ClT8Geaq.js → vue-ui-galaxy-DUnLy7nU.js} +5 -5
- package/dist/{vue-ui-gauge-BIkqPeUR.js → vue-ui-gauge-B9s5assa.js} +7 -7
- package/dist/{vue-ui-gizmo-qbbqmrWz.js → vue-ui-gizmo-D5nFPB5S.js} +3 -3
- package/dist/{vue-ui-heatmap-B1sallgR.js → vue-ui-heatmap-B99sMjxs.js} +7 -7
- package/dist/{vue-ui-history-plot-BtWcJfbt.js → vue-ui-history-plot-BcnKJSTL.js} +7 -7
- package/dist/{vue-ui-kpi-BMyaw85E.js → vue-ui-kpi-BoiQMCdn.js} +3 -3
- package/dist/{vue-ui-mini-loader-BQQ3FjE5.js → vue-ui-mini-loader-Fd0upr6u.js} +2 -2
- package/dist/{vue-ui-molecule-DQkkHdr7.js → vue-ui-molecule-C8U7G10y.js} +5 -5
- package/dist/{vue-ui-mood-radar-D5R_8FF0.js → vue-ui-mood-radar-83Su_aAf.js} +7 -7
- package/dist/{vue-ui-nested-donuts-Ld81fJrP.js → vue-ui-nested-donuts-BT9ZqiqC.js} +7 -7
- package/dist/{vue-ui-onion-Dbcw8jnA.js → vue-ui-onion-9JIdWtsY.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-Z7IAguhy.js → vue-ui-parallel-coordinate-plot-C1FjeIr0.js} +8 -8
- package/dist/{vue-ui-quadrant-DOdfxAYM.js → vue-ui-quadrant-3WUBK3nJ.js} +8 -8
- package/dist/{vue-ui-quick-chart-CcfkLspA.js → vue-ui-quick-chart-DY43gV8A.js} +6 -6
- package/dist/{vue-ui-radar-BIbH3MjX.js → vue-ui-radar-C4KMiQ_0.js} +8 -8
- package/dist/{vue-ui-rating-DkqgGQJu.js → vue-ui-rating-BvD7AC9t.js} +2 -2
- package/dist/{vue-ui-relation-circle-DSdQ2Cw8.js → vue-ui-relation-circle-CkJugcvo.js} +194 -203
- package/dist/{vue-ui-ridgeline-CdVmHbEX.js → vue-ui-ridgeline-BWWwyiku.js} +8 -8
- package/dist/{vue-ui-rings-C9qUXwqg.js → vue-ui-rings--RHm1WPt.js} +8 -8
- package/dist/{vue-ui-scatter-BbFYgBxR.js → vue-ui-scatter-BlJi3Vto.js} +8 -8
- package/dist/{vue-ui-skeleton-CX1ZXulb.js → vue-ui-skeleton-BpaC2poA.js} +3 -3
- package/dist/{vue-ui-smiley-BoZPC1w2.js → vue-ui-smiley-DFQ-eGPr.js} +2 -2
- package/dist/{vue-ui-spark-trend-lgKqL9uu.js → vue-ui-spark-trend-DBvs77p7.js} +3 -3
- package/dist/{vue-ui-sparkbar-qzK8hxRg.js → vue-ui-sparkbar-5-xCacnj.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B-xTnWVp.js → vue-ui-sparkgauge-B_Hahm_m.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-bgHNspVZ.js → vue-ui-sparkhistogram-CE3o-lRl.js} +4 -4
- package/dist/{vue-ui-sparkline-DEDDbr11.js → vue-ui-sparkline-RzY__SHu.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-ChMIbN6K.js → vue-ui-sparkstackbar-mf1_NIVO.js} +3 -3
- package/dist/{vue-ui-stackbar-CNfnfkBh.js → vue-ui-stackbar-e0_-TwRA.js} +9 -9
- package/dist/{vue-ui-strip-plot-URDAVcQv.js → vue-ui-strip-plot-DNF_a6tQ.js} +7 -7
- package/dist/{vue-ui-table-DkeJXqvG.js → vue-ui-table-DyRQD9Jx.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BrghDQgt.js → vue-ui-table-heatmap-D0khMn8L.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CEj7Pwxx.js → vue-ui-table-sparkline-CrEJ_BYI.js} +4 -4
- package/dist/{vue-ui-thermometer-gDAODqin.js → vue-ui-thermometer-WWlRC1pG.js} +7 -7
- package/dist/{vue-ui-timer-u5RHf7lJ.js → vue-ui-timer-DFrFvU8Z.js} +5 -5
- package/dist/{vue-ui-tiremarks-DbbbGo1I.js → vue-ui-tiremarks-BcGXDBHM.js} +6 -6
- package/dist/{vue-ui-treemap-CUrb9Zj3.js → vue-ui-treemap-CISOrlRD.js} +8 -8
- package/dist/{vue-ui-vertical-bar-CAXxJiQC.js → vue-ui-vertical-bar-BIGQJhXk.js} +9 -9
- package/dist/{vue-ui-waffle-CZkK46Gi.js → vue-ui-waffle-ZR7fefhR.js} +8 -8
- package/dist/{vue-ui-wheel-OUwzi8iK.js → vue-ui-wheel-DRp9k9JL.js} +6 -6
- package/dist/{vue-ui-word-cloud-DOVX9uh7.js → vue-ui-word-cloud-jlqVnKu7.js} +6 -6
- package/dist/{vue-ui-world-DVw4JkSI.js → vue-ui-world-PWs6PTyh.js} +6 -6
- package/dist/{vue-ui-xy-5edVF7jS.js → vue-ui-xy-D9GnZXb-.js} +1137 -1097
- package/dist/{vue-ui-xy-canvas-D8EmTlVm.js → vue-ui-xy-canvas-JxDjG7z8.js} +8 -8
- package/package.json +1 -1
- package/dist/useAutoSizeLabelsInsideViewbox-BKnSPI9C.js +0 -81
|
@@ -1,19 +1,18 @@
|
|
|
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
|
-
|
|
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 = {
|
|
1
|
+
import { useCssVars as nt, computed as h, defineAsyncComponent as Q, ref as o, toRefs as ut, watch as Z, shallowRef as Ce, onMounted as rt, onBeforeUnmount as ot, createElementBlock as n, openBlock as i, unref as u, normalizeStyle as O, createBlock as N, createCommentVNode as f, createSlots as ct, withCtx as M, renderSlot as g, normalizeProps as j, guardReactiveProps as D, normalizeClass as ee, createVNode as vt, createElementVNode as dt, Fragment as $, renderList as z, mergeProps as Le, toDisplayString as U, createTextVNode as Pe } from "vue";
|
|
2
|
+
import { u as ft, c as yt, t as ht, a as gt, p as Oe, b as mt, d as pt, o as ze, f as Ie, g as kt, X as bt, F as Me, k as te, i as le, E as se } from "./index-CjmWQAkv.js";
|
|
3
|
+
import { t as wt, u as xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as $t, B as At } from "./useLoading-D7YHNtLX.js";
|
|
5
|
+
import { u as _t } from "./usePrinter-BD_X6xEq.js";
|
|
6
|
+
import { u as Se } from "./useNestedProp-DFYUwW_F.js";
|
|
7
|
+
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Lt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Pt from "./img-7sjXtnNU.js";
|
|
10
|
+
import Ot from "./Title-Cdu-aDOL.js";
|
|
11
|
+
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const It = ["id"], Mt = ["xmlns", "viewBox"], St = ["width", "height"], Et = ["cx", "cy", "r", "stroke", "stroke-width"], Bt = { key: 1 }, Ft = ["stroke", "d", "stroke-width"], Tt = { style: { "pointer-events": "none" } }, Rt = ["cx", "cy", "fill", "r", "stroke"], Nt = ["x", "y", "fill", "font-size"], jt = { key: 2 }, Dt = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Ut = { style: { "pointer-events": "none" } }, Gt = ["cx", "cy", "fill", "r", "stroke"], Vt = ["x", "y", "fill", "font-size"], Wt = ["text-anchor", "transform", "x", "y", "font-weight", "font-size", "fill", "text-decoration", "onClick", "onMouseenter", "onMouseleave"], Xt = ["cx", "cy", "fill", "stroke", "r", "onClick", "onMouseenter", "onMouseleave"], Yt = {
|
|
14
13
|
key: 4,
|
|
15
14
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
15
|
+
}, qt = {
|
|
17
16
|
__name: "vue-ui-relation-circle",
|
|
18
17
|
props: {
|
|
19
18
|
dataset: {
|
|
@@ -29,16 +28,16 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
},
|
|
32
|
-
setup(
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
31
|
+
setup(Ee, { expose: Be }) {
|
|
32
|
+
nt((e) => ({
|
|
33
|
+
"3ea1ca4e": Xe.value,
|
|
34
|
+
"5faa9838": We.value,
|
|
35
|
+
f74c4bcc: Ye.value
|
|
37
36
|
}));
|
|
38
|
-
const
|
|
39
|
-
...
|
|
37
|
+
const Fe = Q(() => import("./PenAndPaper-C5tGS7J9.js")), Te = Q(() => import("./UserOptions-BMoiHEKE.js")), Re = Q(() => import("./PackageVersion-DkN4tXY6.js")), { vue_ui_relation_circle: Ne } = ft(), m = Ee, je = h(() => !!m.dataset && Object.keys(m.dataset).length), I = o(yt()), ae = o(0), A = o(null), ie = o(null), ne = o(null), ue = o(null), re = o(0), l = o(W()), { loading: oe, FINAL_DATASET: De, manualLoading: G } = $t({
|
|
38
|
+
...ut(m),
|
|
40
39
|
FINAL_CONFIG: l,
|
|
41
|
-
prepareConfig:
|
|
40
|
+
prepareConfig: W,
|
|
42
41
|
skeletonDataset: [
|
|
43
42
|
{ id: "A", label: "_", relations: ["B", "C", "D", "E", "F", "G"] },
|
|
44
43
|
{ id: "B", label: "_", relations: ["A"] },
|
|
@@ -48,7 +47,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
48
47
|
{ id: "F", label: "_", relations: ["A"] },
|
|
49
48
|
{ id: "G", label: "_", relations: ["A"] }
|
|
50
49
|
],
|
|
51
|
-
skeletonConfig:
|
|
50
|
+
skeletonConfig: ht({
|
|
52
51
|
defaultConfig: l.value,
|
|
53
52
|
userConfig: {
|
|
54
53
|
userOptions: { show: !1 },
|
|
@@ -62,30 +61,30 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
})
|
|
65
|
-
}), { userOptionsVisible:
|
|
66
|
-
function
|
|
67
|
-
const e =
|
|
64
|
+
}), { userOptionsVisible: V, setUserOptionsVisibility: ce, keepUserOptionState: ve } = Ct({ config: l.value }), { svgRef: de } = Lt({ config: l.value.style.title });
|
|
65
|
+
function W() {
|
|
66
|
+
const e = Se({
|
|
68
67
|
userConfig: m.config,
|
|
69
|
-
defaultConfig:
|
|
68
|
+
defaultConfig: Ne
|
|
70
69
|
});
|
|
71
70
|
return e.theme ? {
|
|
72
|
-
...
|
|
73
|
-
userConfig:
|
|
71
|
+
...Se({
|
|
72
|
+
userConfig: mt.vue_ui_relation_circle[e.theme] || m.config,
|
|
74
73
|
defaultConfig: e
|
|
75
74
|
}),
|
|
76
|
-
customPalette:
|
|
75
|
+
customPalette: gt[e.theme] || Oe
|
|
77
76
|
} : e;
|
|
78
77
|
}
|
|
79
|
-
|
|
80
|
-
l.value =
|
|
81
|
-
}, { deep: !0 }),
|
|
82
|
-
Array.isArray(e) && e.length > 0 && (
|
|
78
|
+
Z(() => m.config, (e) => {
|
|
79
|
+
l.value = W(), V.value = !l.value.userOptions.showOnChartHover, _.value = l.value.style.size, y.value = l.value.style.weightLabels.size, E.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, ke(), re.value += 1;
|
|
80
|
+
}, { deep: !0 }), Z(() => m.dataset, (e) => {
|
|
81
|
+
Array.isArray(e) && e.length > 0 && (G.value = !1);
|
|
83
82
|
}, { deep: !0 });
|
|
84
|
-
const { isPrinting: fe, isImaging: ye, generatePdf: he, generateImage: ge } =
|
|
85
|
-
elementId: `relation_circle_${
|
|
83
|
+
const { isPrinting: fe, isImaging: ye, generatePdf: he, generateImage: ge } = _t({
|
|
84
|
+
elementId: `relation_circle_${I.value}`,
|
|
86
85
|
fileName: l.value.style.title.text || "vue-ui-relation-circle",
|
|
87
86
|
options: l.value.userOptions.print
|
|
88
|
-
}),
|
|
87
|
+
}), Ue = h(() => l.value.userOptions.show && !l.value.style.title.text), me = h(() => pt(l.value.customPalette)), b = o([]), p = o([]), d = o({}), k = o([]), Ge = o(0), S = h(() => De.value.slice(0, l.value.style.limit).map((e) => {
|
|
89
88
|
const s = Array.isArray(e.relations) ? e.relations : [];
|
|
90
89
|
return {
|
|
91
90
|
...e,
|
|
@@ -93,10 +92,10 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
93
92
|
relations: s
|
|
94
93
|
};
|
|
95
94
|
}));
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
Z(S, () => {
|
|
96
|
+
b.value = [], p.value = [], X(), Y();
|
|
98
97
|
});
|
|
99
|
-
const _ =
|
|
98
|
+
const _ = o(l.value.style.size), y = o(l.value.style.weightLabels.size), E = o(l.value.style.plot.radius), B = o(l.value.style.labels.fontSize), r = o({
|
|
100
99
|
height: l.value.style.size,
|
|
101
100
|
width: l.value.style.size
|
|
102
101
|
}), C = h({
|
|
@@ -106,17 +105,17 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
106
105
|
set(e) {
|
|
107
106
|
return e;
|
|
108
107
|
}
|
|
109
|
-
}),
|
|
108
|
+
}), Ve = h(() => l.value.style.links.curved), We = h(() => `${l.value.style.animation.speedMs}ms`), Xe = h(() => C.value * 2), Ye = h(() => C.value * 4), w = Ce(null), L = Ce(null);
|
|
110
109
|
rt(() => {
|
|
111
|
-
|
|
110
|
+
ke(), document.getElementById(`relation_circle_${I.value}`).addEventListener("click", be);
|
|
112
111
|
});
|
|
113
112
|
const pe = h(() => l.value.debug);
|
|
114
|
-
function
|
|
115
|
-
if (
|
|
113
|
+
function ke() {
|
|
114
|
+
if (ze(m.dataset) ? (Ie({
|
|
116
115
|
componentName: "VueUiRelationCircle",
|
|
117
116
|
type: "dataset",
|
|
118
117
|
debug: pe.value
|
|
119
|
-
}),
|
|
118
|
+
}), G.value = !0) : m.dataset.forEach((e, s) => {
|
|
120
119
|
kt({
|
|
121
120
|
datasetObject: e,
|
|
122
121
|
requiredAttributes: ["id", "label", "relations", "weights"]
|
|
@@ -129,70 +128,62 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
129
128
|
debug: pe.value
|
|
130
129
|
});
|
|
131
130
|
});
|
|
132
|
-
}),
|
|
133
|
-
const e =
|
|
134
|
-
const { width: s, height: t } =
|
|
131
|
+
}), ze(m.dataset) || (G.value = l.value.loading), l.value.responsive) {
|
|
132
|
+
const e = wt(() => {
|
|
133
|
+
const { width: s, height: t } = xt({
|
|
135
134
|
chart: A.value,
|
|
136
|
-
title: l.value.style.title.text ?
|
|
137
|
-
source:
|
|
138
|
-
noTitle:
|
|
135
|
+
title: l.value.style.title.text ? ie.value : null,
|
|
136
|
+
source: ne.value,
|
|
137
|
+
noTitle: ue.value
|
|
139
138
|
});
|
|
140
139
|
requestAnimationFrame(() => {
|
|
141
|
-
_.value = Math.min(s, t),
|
|
140
|
+
_.value = Math.min(s, t), r.value.width = Math.max(0.1, s), r.value.height = Math.max(0.1, t - 12), C.value = _.value * l.value.style.circle.radiusProportion, b.value = [], p.value = [], X(), Y(), l.value.responsiveProportionalSizing ? (y.value = se({
|
|
142
141
|
relator: _.value,
|
|
143
142
|
adjuster: l.value.style.size,
|
|
144
143
|
source: l.value.style.weightLabels.size,
|
|
145
144
|
threshold: 6,
|
|
146
145
|
fallback: 6
|
|
147
|
-
}),
|
|
146
|
+
}), E.value = se({
|
|
148
147
|
relator: _.value,
|
|
149
148
|
adjuster: l.value.style.size,
|
|
150
149
|
source: l.value.style.plot.radius,
|
|
151
150
|
threshold: 1,
|
|
152
151
|
fallback: 1
|
|
153
|
-
}),
|
|
152
|
+
}), B.value = se({
|
|
154
153
|
relator: _.value,
|
|
155
154
|
adjuster: l.value.style.size,
|
|
156
155
|
source: l.value.style.labels.fontSize,
|
|
157
156
|
threshold: 6,
|
|
158
157
|
fallback: 6
|
|
159
|
-
})) : (y.value = l.value.style.weightLabels.size,
|
|
158
|
+
})) : (y.value = l.value.style.weightLabels.size, E.value = l.value.style.plot.radius, B.value = l.value.style.labels.fontSize);
|
|
160
159
|
});
|
|
161
160
|
});
|
|
162
161
|
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);
|
|
163
162
|
} else
|
|
164
|
-
|
|
165
|
-
ke();
|
|
163
|
+
b.value = [], p.value = [], X(), Y();
|
|
166
164
|
}
|
|
167
|
-
|
|
168
|
-
document.getElementById(`relation_circle_${
|
|
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"
|
|
165
|
+
ot(() => {
|
|
166
|
+
document.getElementById(`relation_circle_${I.value}`).removeEventListener("click", be), w.value && (L.value && w.value.unobserve(L.value), w.value.disconnect());
|
|
176
167
|
});
|
|
177
|
-
function
|
|
168
|
+
function be(e) {
|
|
178
169
|
const s = e.target;
|
|
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 = {},
|
|
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 = {}, k.value = []);
|
|
180
171
|
}
|
|
181
|
-
function
|
|
182
|
-
const e = 6.28319 /
|
|
172
|
+
function X() {
|
|
173
|
+
const e = 6.28319 / S.value.length, s = 360 / S.value.length;
|
|
183
174
|
let t = 0, a = 0;
|
|
184
|
-
|
|
185
|
-
const
|
|
186
|
-
|
|
175
|
+
S.value.forEach((c, v) => {
|
|
176
|
+
const J = c.weights.reduce((at, it) => at + it, 0), K = C.value * Math.cos(t) + r.value.width / 2, st = C.value * Math.sin(t) + r.value.height / 2 + l.value.style.circle.offsetY;
|
|
177
|
+
b.value.push({ x: K, y: st, ...c, color: c.color ? c.color : me.value[v] ? me.value[v] : Oe[v], regAngle: a, totalWeight: J }), t += e, a += s;
|
|
187
178
|
});
|
|
188
179
|
}
|
|
189
|
-
function
|
|
180
|
+
function qe(e, s) {
|
|
190
181
|
const t = (e.x + s.x) / 2, a = (e.y + s.y) / 2;
|
|
191
182
|
return { x: t, y: a };
|
|
192
183
|
}
|
|
193
|
-
function
|
|
194
|
-
p.value = [],
|
|
195
|
-
|
|
184
|
+
function Y() {
|
|
185
|
+
p.value = [], b.value.forEach((e) => {
|
|
186
|
+
b.value.filter((t) => t.relations.includes(e.id)).forEach((t, a) => {
|
|
196
187
|
const c = t.relations.indexOf(e.id);
|
|
197
188
|
p.value.push({
|
|
198
189
|
weight: t.weights[c] ? t.weights[c] : 0,
|
|
@@ -203,8 +194,8 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
203
194
|
y2: t.y,
|
|
204
195
|
colorSource: e.color,
|
|
205
196
|
colorTarget: t.color,
|
|
206
|
-
midPointLine:
|
|
207
|
-
midPointBezier:
|
|
197
|
+
midPointLine: qe({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
|
|
198
|
+
midPointBezier: He({
|
|
208
199
|
x1: e.x,
|
|
209
200
|
x2: t.x,
|
|
210
201
|
y1: e.y,
|
|
@@ -215,63 +206,63 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
215
206
|
});
|
|
216
207
|
});
|
|
217
208
|
}
|
|
218
|
-
function
|
|
209
|
+
function He(e) {
|
|
219
210
|
const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, a = { x: e.x1, y: e.y1 }, c = {
|
|
220
|
-
x:
|
|
221
|
-
y:
|
|
222
|
-
}, v = 0.5,
|
|
223
|
-
return { x:
|
|
211
|
+
x: r.value.width / 2,
|
|
212
|
+
y: r.value.height / 2 + l.value.style.circle.offsetY
|
|
213
|
+
}, v = 0.5, J = 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, K = 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;
|
|
214
|
+
return { x: J, y: K };
|
|
224
215
|
}
|
|
225
|
-
const
|
|
226
|
-
function
|
|
227
|
-
return Object.hasOwn(d.value, "x") ?
|
|
216
|
+
const Je = h(() => Math.max(...p.value.map((e) => e.weight)));
|
|
217
|
+
function Ke(e) {
|
|
218
|
+
return Object.hasOwn(d.value, "x") ? k.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
228
219
|
}
|
|
229
220
|
function x(e) {
|
|
230
221
|
return e.colorSource;
|
|
231
222
|
}
|
|
232
|
-
function
|
|
233
|
-
return Object.hasOwn(d.value, "x") ?
|
|
223
|
+
function we(e) {
|
|
224
|
+
return Object.hasOwn(d.value, "x") ? k.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}` ? `opacity:1;stroke-width:${q(e)}` : "opacity: 0" : "opacity: 1";
|
|
234
225
|
}
|
|
235
226
|
function P(e) {
|
|
236
|
-
return Object.hasOwn(d.value, "x") ? !!(
|
|
227
|
+
return Object.hasOwn(d.value, "x") ? !!(k.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}`) : !1;
|
|
237
228
|
}
|
|
238
|
-
function
|
|
229
|
+
function Qe(e) {
|
|
239
230
|
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
240
231
|
}
|
|
241
|
-
function
|
|
232
|
+
function Ze(e) {
|
|
242
233
|
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
243
234
|
}
|
|
244
|
-
function
|
|
245
|
-
return Object.hasOwn(d.value, "x") ? d.value.id === e.id ||
|
|
235
|
+
function et(e) {
|
|
236
|
+
return Object.hasOwn(d.value, "x") ? d.value.id === e.id || k.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
246
237
|
}
|
|
247
|
-
function
|
|
238
|
+
function tt(e) {
|
|
248
239
|
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
249
240
|
}
|
|
250
|
-
const
|
|
241
|
+
const F = o(null);
|
|
242
|
+
function xe(e, s) {
|
|
243
|
+
F.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s });
|
|
244
|
+
}
|
|
251
245
|
function $e(e, s) {
|
|
252
|
-
|
|
246
|
+
F.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s });
|
|
253
247
|
}
|
|
254
248
|
function Ae(e, s) {
|
|
255
|
-
|
|
249
|
+
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 = {}, k.value = []) : (d.value = e, k.value = [...e.relations]);
|
|
256
250
|
}
|
|
257
|
-
function
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
function H(e) {
|
|
261
|
-
const s = e.weight / Ke.value * l.value.style.links.maxWidth;
|
|
251
|
+
function q(e) {
|
|
252
|
+
const s = e.weight / Je.value * l.value.style.links.maxWidth;
|
|
262
253
|
return Math.max(0.3, s);
|
|
263
254
|
}
|
|
264
|
-
const
|
|
265
|
-
function
|
|
266
|
-
|
|
255
|
+
const T = o(!1);
|
|
256
|
+
function _e(e) {
|
|
257
|
+
T.value = e, ae.value += 1;
|
|
267
258
|
}
|
|
268
|
-
const
|
|
269
|
-
function
|
|
270
|
-
|
|
259
|
+
const R = o(!1);
|
|
260
|
+
function H() {
|
|
261
|
+
R.value = !R.value;
|
|
271
262
|
}
|
|
272
|
-
async function
|
|
263
|
+
async function lt({ scale: e = 2 } = {}) {
|
|
273
264
|
if (!A.value) return;
|
|
274
|
-
const { width: s, height: t } = A.value.getBoundingClientRect(), a = s / t, { imageUri: c, base64: v } = await
|
|
265
|
+
const { width: s, height: t } = A.value.getBoundingClientRect(), a = s / t, { imageUri: c, base64: v } = await Pt({ domElement: A.value, base64: !0, img: !0, scale: e });
|
|
275
266
|
return {
|
|
276
267
|
imageUri: c,
|
|
277
268
|
base64: v,
|
|
@@ -282,42 +273,42 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
282
273
|
};
|
|
283
274
|
}
|
|
284
275
|
return Be({
|
|
285
|
-
getImage:
|
|
276
|
+
getImage: lt,
|
|
286
277
|
generatePdf: he,
|
|
287
278
|
generateImage: ge,
|
|
288
|
-
toggleAnnotator:
|
|
289
|
-
toggleFullscreen:
|
|
279
|
+
toggleAnnotator: H,
|
|
280
|
+
toggleFullscreen: _e
|
|
290
281
|
}), (e, s) => (i(), n("div", {
|
|
291
282
|
ref_key: "relationCircleChart",
|
|
292
283
|
ref: A,
|
|
293
284
|
class: "vue-ui-relation-circle",
|
|
294
|
-
style:
|
|
295
|
-
id: `relation_circle_${
|
|
296
|
-
onMouseenter: s[0] || (s[0] = () => u(
|
|
297
|
-
onMouseleave: s[1] || (s[1] = () => u(
|
|
285
|
+
style: O(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
|
|
286
|
+
id: `relation_circle_${I.value}`,
|
|
287
|
+
onMouseenter: s[0] || (s[0] = () => u(ce)(!0)),
|
|
288
|
+
onMouseleave: s[1] || (s[1] = () => u(ce)(!1))
|
|
298
289
|
}, [
|
|
299
|
-
l.value.userOptions.buttons.annotator ? (i(), N(u(
|
|
290
|
+
l.value.userOptions.buttons.annotator ? (i(), N(u(Fe), {
|
|
300
291
|
key: 0,
|
|
301
|
-
svgRef: u(
|
|
292
|
+
svgRef: u(de),
|
|
302
293
|
backgroundColor: l.value.style.backgroundColor,
|
|
303
294
|
color: l.value.style.color,
|
|
304
|
-
active:
|
|
305
|
-
onClose:
|
|
295
|
+
active: R.value,
|
|
296
|
+
onClose: H
|
|
306
297
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
307
|
-
|
|
298
|
+
Ue.value ? (i(), n("div", {
|
|
308
299
|
key: 1,
|
|
309
300
|
ref_key: "noTitle",
|
|
310
|
-
ref:
|
|
301
|
+
ref: ue,
|
|
311
302
|
class: "vue-data-ui-no-title-space",
|
|
312
303
|
style: "height:36px; width: 100%;background:transparent"
|
|
313
304
|
}, null, 512)) : f("", !0),
|
|
314
305
|
l.value.style.title.text ? (i(), n("div", {
|
|
315
306
|
key: 2,
|
|
316
307
|
ref_key: "chartTitle",
|
|
317
|
-
ref:
|
|
308
|
+
ref: ie,
|
|
318
309
|
style: "width:100%;background:transparent"
|
|
319
310
|
}, [
|
|
320
|
-
(i(), N(
|
|
311
|
+
(i(), N(Ot, {
|
|
321
312
|
key: `title_${re.value}`,
|
|
322
313
|
config: {
|
|
323
314
|
title: {
|
|
@@ -331,34 +322,34 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
331
322
|
}
|
|
332
323
|
}, null, 8, ["config"]))
|
|
333
324
|
], 512)) : f("", !0),
|
|
334
|
-
l.value.userOptions.show &&
|
|
325
|
+
l.value.userOptions.show && je.value && (u(ve) || u(V)) ? (i(), N(u(Te), {
|
|
335
326
|
ref: "details",
|
|
336
|
-
key: `user_options_${
|
|
327
|
+
key: `user_options_${ae.value}`,
|
|
337
328
|
backgroundColor: l.value.style.backgroundColor,
|
|
338
329
|
color: l.value.style.color,
|
|
339
330
|
isPrinting: u(fe),
|
|
340
331
|
isImaging: u(ye),
|
|
341
|
-
uid:
|
|
332
|
+
uid: I.value,
|
|
342
333
|
hasPdf: l.value.userOptions.buttons.pdf,
|
|
343
334
|
hasImg: l.value.userOptions.buttons.img,
|
|
344
335
|
hasFullscreen: l.value.userOptions.buttons.img,
|
|
345
336
|
hasXls: !1,
|
|
346
|
-
isFullscreen:
|
|
337
|
+
isFullscreen: T.value,
|
|
347
338
|
titles: { ...l.value.userOptions.buttonTitles },
|
|
348
339
|
chartElement: A.value,
|
|
349
340
|
position: l.value.userOptions.position,
|
|
350
341
|
hasAnnotator: l.value.userOptions.buttons.annotator,
|
|
351
|
-
isAnnotation:
|
|
342
|
+
isAnnotation: R.value,
|
|
352
343
|
callbacks: l.value.userOptions.callbacks,
|
|
353
344
|
printScale: l.value.userOptions.print.scale,
|
|
354
|
-
onToggleFullscreen:
|
|
345
|
+
onToggleFullscreen: _e,
|
|
355
346
|
onGeneratePdf: u(he),
|
|
356
347
|
onGenerateImage: u(ge),
|
|
357
|
-
onToggleAnnotator:
|
|
358
|
-
style:
|
|
359
|
-
visibility: u(
|
|
348
|
+
onToggleAnnotator: H,
|
|
349
|
+
style: O({
|
|
350
|
+
visibility: u(ve) ? u(V) ? "visible" : "hidden" : "visible"
|
|
360
351
|
})
|
|
361
|
-
},
|
|
352
|
+
}, ct({ _: 2 }, [
|
|
362
353
|
e.$slots.menuIcon ? {
|
|
363
354
|
name: "menuIcon",
|
|
364
355
|
fn: M(({ isOpen: t, color: a }) => [
|
|
@@ -397,48 +388,48 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
397
388
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
398
389
|
(i(), n("svg", {
|
|
399
390
|
ref_key: "svgRef",
|
|
400
|
-
ref:
|
|
401
|
-
xmlns: u(
|
|
402
|
-
class:
|
|
403
|
-
viewBox: `0 0 ${
|
|
391
|
+
ref: de,
|
|
392
|
+
xmlns: u(bt),
|
|
393
|
+
class: ee([{ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }, "relation-circle"]),
|
|
394
|
+
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
404
395
|
width: "100%",
|
|
405
396
|
style: "user-select:none; background:transparent"
|
|
406
397
|
}, [
|
|
407
|
-
|
|
398
|
+
vt(u(Re)),
|
|
408
399
|
e.$slots["chart-background"] ? (i(), n("foreignObject", {
|
|
409
400
|
key: 0,
|
|
410
401
|
x: 0,
|
|
411
402
|
y: 0,
|
|
412
|
-
width:
|
|
413
|
-
height:
|
|
403
|
+
width: r.value.width <= 0 ? 10 : r.value.width,
|
|
404
|
+
height: r.value.height <= 0 ? 10 : r.value.height,
|
|
414
405
|
style: {
|
|
415
406
|
pointerEvents: "none"
|
|
416
407
|
}
|
|
417
408
|
}, [
|
|
418
409
|
g(e.$slots, "chart-background", {}, void 0, !0)
|
|
419
|
-
], 8,
|
|
420
|
-
|
|
421
|
-
cx: (
|
|
422
|
-
cy: (
|
|
410
|
+
], 8, St)) : f("", !0),
|
|
411
|
+
dt("circle", {
|
|
412
|
+
cx: (r.value.width <= 0 ? 1e-4 : r.value.width) / 2,
|
|
413
|
+
cy: (r.value.height <= 0 ? 1e-4 : r.value.height) / 2 + l.value.style.circle.offsetY,
|
|
423
414
|
r: C.value <= 0 ? 1e-4 : C.value,
|
|
424
415
|
stroke: l.value.style.circle.stroke,
|
|
425
416
|
"stroke-width": l.value.style.circle.strokeWidth,
|
|
426
417
|
fill: "transparent",
|
|
427
418
|
class: "main-circle"
|
|
428
|
-
}, null, 8,
|
|
429
|
-
|
|
430
|
-
(i(!0), n($, null,
|
|
419
|
+
}, null, 8, Et),
|
|
420
|
+
Ve.value ? (i(), n("g", Bt, [
|
|
421
|
+
(i(!0), n($, null, z(p.value, (t, a) => (i(), n("path", {
|
|
431
422
|
key: `relation_${a}`,
|
|
432
|
-
style:
|
|
423
|
+
style: O(we(t)),
|
|
433
424
|
stroke: x(t),
|
|
434
|
-
class:
|
|
435
|
-
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${
|
|
425
|
+
class: ee(["relation", { "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && k.value.includes(t.id) }]),
|
|
426
|
+
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}`,
|
|
436
427
|
fill: "none",
|
|
437
|
-
"stroke-width":
|
|
428
|
+
"stroke-width": q(t),
|
|
438
429
|
"stroke-linecap": "round"
|
|
439
|
-
}, null, 14,
|
|
440
|
-
(i(!0), n($, null,
|
|
441
|
-
P(t) ? g(e.$slots, "dataLabel",
|
|
430
|
+
}, null, 14, Ft))), 128)),
|
|
431
|
+
(i(!0), n($, null, z(p.value, (t, a) => (i(), n("g", Tt, [
|
|
432
|
+
P(t) ? g(e.$slots, "dataLabel", Le({
|
|
442
433
|
key: 0,
|
|
443
434
|
ref_for: !0
|
|
444
435
|
}, {
|
|
@@ -456,7 +447,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
456
447
|
r: y.value,
|
|
457
448
|
stroke: l.value.style.backgroundColor,
|
|
458
449
|
"stroke-width": "1"
|
|
459
|
-
}, null, 8,
|
|
450
|
+
}, null, 8, Rt)) : f("", !0),
|
|
460
451
|
P(t) && !e.$slots.dataLabel ? (i(), n("text", {
|
|
461
452
|
key: 2,
|
|
462
453
|
x: t.midPointBezier.x,
|
|
@@ -464,33 +455,33 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
464
455
|
fill: u(Me)(x(t)),
|
|
465
456
|
"text-anchor": "middle",
|
|
466
457
|
"font-size": y.value
|
|
467
|
-
}, U(u(
|
|
458
|
+
}, U(u(te)(
|
|
468
459
|
l.value.style.weightLabels.formatter,
|
|
469
460
|
t.weight,
|
|
470
|
-
u(
|
|
461
|
+
u(le)({
|
|
471
462
|
p: l.value.style.weightLabels.prefix,
|
|
472
463
|
v: t.weight,
|
|
473
464
|
s: l.value.style.weightLabels.suffix,
|
|
474
465
|
r: l.value.style.weightLabels.rounding
|
|
475
466
|
}),
|
|
476
467
|
{ ...t }
|
|
477
|
-
)), 9,
|
|
468
|
+
)), 9, Nt)) : f("", !0)
|
|
478
469
|
]))), 256))
|
|
479
|
-
])) : (i(), n("g",
|
|
480
|
-
(i(!0), n($, null,
|
|
470
|
+
])) : (i(), n("g", jt, [
|
|
471
|
+
(i(!0), n($, null, z(p.value, (t, a) => (i(), n("line", {
|
|
481
472
|
key: `relation_${a}`,
|
|
482
473
|
stroke: x(t),
|
|
483
|
-
"stroke-width":
|
|
484
|
-
style:
|
|
474
|
+
"stroke-width": q(t),
|
|
475
|
+
style: O(we(t)),
|
|
485
476
|
x1: t.x1,
|
|
486
477
|
x2: t.x2,
|
|
487
478
|
y1: t.y1,
|
|
488
479
|
y2: t.y2,
|
|
489
|
-
class:
|
|
480
|
+
class: ee({ "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && k.value.includes(t.id) }),
|
|
490
481
|
"stroke-linecap": "round"
|
|
491
|
-
}, null, 14,
|
|
492
|
-
(i(!0), n($, null,
|
|
493
|
-
P(t) ? g(e.$slots, "dataLabel",
|
|
482
|
+
}, null, 14, Dt))), 128)),
|
|
483
|
+
(i(!0), n($, null, z(p.value, (t, a) => (i(), n("g", Ut, [
|
|
484
|
+
P(t) ? g(e.$slots, "dataLabel", Le({
|
|
494
485
|
key: 0,
|
|
495
486
|
ref_for: !0
|
|
496
487
|
}, {
|
|
@@ -508,7 +499,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
508
499
|
r: y.value,
|
|
509
500
|
stroke: l.value.style.backgroundColor,
|
|
510
501
|
"stroke-width": "1"
|
|
511
|
-
}, null, 8,
|
|
502
|
+
}, null, 8, Gt)) : f("", !0),
|
|
512
503
|
P(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), n("text", {
|
|
513
504
|
key: 2,
|
|
514
505
|
x: t.midPointLine.x,
|
|
@@ -516,43 +507,43 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
516
507
|
fill: u(Me)(x(t)),
|
|
517
508
|
"text-anchor": "middle",
|
|
518
509
|
"font-size": y.value
|
|
519
|
-
}, U(u(
|
|
510
|
+
}, U(u(te)(
|
|
520
511
|
l.value.style.weightLabels.formatter,
|
|
521
512
|
t.weight,
|
|
522
|
-
u(
|
|
513
|
+
u(le)({
|
|
523
514
|
p: l.value.style.weightLabels.prefix,
|
|
524
515
|
v: t.weight,
|
|
525
516
|
s: l.value.style.weightLabels.suffix,
|
|
526
517
|
r: l.value.style.weightLabels.rounding
|
|
527
518
|
}),
|
|
528
519
|
{ ...t }
|
|
529
|
-
)), 9,
|
|
520
|
+
)), 9, Vt)) : f("", !0)
|
|
530
521
|
]))), 256))
|
|
531
522
|
])),
|
|
532
|
-
(i(!0), n($, null,
|
|
523
|
+
(i(!0), n($, null, z(b.value, (t, a) => (i(), n("text", {
|
|
533
524
|
key: `plot_text_${a}`,
|
|
534
|
-
"text-anchor":
|
|
535
|
-
transform:
|
|
536
|
-
x:
|
|
525
|
+
"text-anchor": Qe(t),
|
|
526
|
+
transform: tt(t),
|
|
527
|
+
x: Ze(t),
|
|
537
528
|
y: t.y + 5,
|
|
538
529
|
class: "vue-ui-relation-circle-legend",
|
|
539
530
|
"transform-origin": "start",
|
|
540
531
|
"font-weight": d.value.id === t.id ? "900" : "400",
|
|
541
|
-
style:
|
|
542
|
-
"font-size":
|
|
532
|
+
style: O(`font-family:${l.value.style.fontFamily};${et(t)}`),
|
|
533
|
+
"font-size": B.value,
|
|
543
534
|
fill: l.value.style.labels.color,
|
|
544
|
-
"text-decoration": a ===
|
|
545
|
-
onClick: (c) =>
|
|
546
|
-
onMouseenter: (c) =>
|
|
547
|
-
onMouseleave: (c) =>
|
|
535
|
+
"text-decoration": a === F.value ? "underline" : void 0,
|
|
536
|
+
onClick: (c) => Ae(t, a),
|
|
537
|
+
onMouseenter: (c) => xe(t, a),
|
|
538
|
+
onMouseleave: (c) => $e(t, a)
|
|
548
539
|
}, [
|
|
549
|
-
u(
|
|
550
|
-
|
|
540
|
+
u(oe) ? (i(), n($, { key: 0 }, [
|
|
541
|
+
Pe(" -------- ")
|
|
551
542
|
], 64)) : (i(), n($, { key: 1 }, [
|
|
552
|
-
|
|
543
|
+
Pe(U(t.label) + " (" + U(u(te)(
|
|
553
544
|
l.value.style.weightLabels.formatter,
|
|
554
545
|
t.totalWeight,
|
|
555
|
-
u(
|
|
546
|
+
u(le)({
|
|
556
547
|
p: l.value.style.weightLabels.prefix,
|
|
557
548
|
v: t.totalWeight,
|
|
558
549
|
s: l.value.style.weightLabels.suffix,
|
|
@@ -561,38 +552,38 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
561
552
|
{ ...t }
|
|
562
553
|
)) + ") ", 1)
|
|
563
554
|
], 64))
|
|
564
|
-
], 44,
|
|
565
|
-
(i(!0), n($, null,
|
|
555
|
+
], 44, Wt))), 128)),
|
|
556
|
+
(i(!0), n($, null, z(b.value, (t, a) => (i(), n("circle", {
|
|
566
557
|
cx: t.x,
|
|
567
558
|
cy: t.y,
|
|
568
559
|
key: `plot_${a}`,
|
|
569
|
-
style:
|
|
560
|
+
style: O(`${Ke(t)}; transition: r 0.2s ease-in-out;`),
|
|
570
561
|
class: "vue-ui-relation-circle-plot",
|
|
571
562
|
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
572
563
|
stroke: l.value.style.backgroundColor,
|
|
573
564
|
"stroke-width": "1",
|
|
574
|
-
r:
|
|
575
|
-
onClick: (c) =>
|
|
576
|
-
onMouseenter: (c) =>
|
|
577
|
-
onMouseleave: (c) =>
|
|
578
|
-
}, null, 44,
|
|
579
|
-
g(e.$slots, "svg", { svg:
|
|
580
|
-
], 10,
|
|
581
|
-
e.$slots.watermark ? (i(), n("div",
|
|
565
|
+
r: E.value * (a === F.value ? 2 : 1),
|
|
566
|
+
onClick: (c) => Ae(t, a),
|
|
567
|
+
onMouseenter: (c) => xe(t, a),
|
|
568
|
+
onMouseleave: (c) => $e(t, a)
|
|
569
|
+
}, null, 44, Xt))), 128)),
|
|
570
|
+
g(e.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
571
|
+
], 10, Mt)),
|
|
572
|
+
e.$slots.watermark ? (i(), n("div", Yt, [
|
|
582
573
|
g(e.$slots, "watermark", j(D({ isPrinting: u(fe) || u(ye) })), void 0, !0)
|
|
583
574
|
])) : f("", !0),
|
|
584
575
|
e.$slots.source ? (i(), n("div", {
|
|
585
576
|
key: 5,
|
|
586
577
|
ref_key: "source",
|
|
587
|
-
ref:
|
|
578
|
+
ref: ne,
|
|
588
579
|
dir: "auto"
|
|
589
580
|
}, [
|
|
590
581
|
g(e.$slots, "source", {}, void 0, !0)
|
|
591
582
|
], 512)) : f("", !0),
|
|
592
|
-
u(
|
|
593
|
-
], 44,
|
|
583
|
+
u(oe) ? (i(), N(At, { key: 6 })) : f("", !0)
|
|
584
|
+
], 44, It));
|
|
594
585
|
}
|
|
595
|
-
},
|
|
586
|
+
}, nl = /* @__PURE__ */ zt(qt, [["__scopeId", "data-v-858c05c5"]]);
|
|
596
587
|
export {
|
|
597
|
-
|
|
588
|
+
nl as default
|
|
598
589
|
};
|