vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,16 +1,17 @@
|
|
|
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
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { useCssVars as Ke, computed as y, defineAsyncComponent as E, ref as o, watch as Qe, shallowRef as be, onMounted as Ze, onBeforeUnmount as et, createElementBlock as r, openBlock as i, unref as n, normalizeStyle as O, createBlock as F, createCommentVNode as v, createSlots as tt, withCtx as S, renderSlot as h, normalizeProps as B, guardReactiveProps as T, normalizeClass as H, createVNode as lt, createElementVNode as st, Fragment as z, renderList as A, mergeProps as we, toDisplayString as N } from "vue";
|
|
2
|
+
import { u as it, c as at, t as nt, p as xe, a as rt, b as ut, o as ot, e as $e, g as ct, X as dt, F as _e, i as J, f as K, E as Q } from "./index-BzfnuLnw.js";
|
|
3
|
+
import { t as vt, u as ft } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ce } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as yt } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as gt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import mt from "./Title-pVYRzQXY.js";
|
|
9
|
+
import pt from "./img-ku4zevVD.js";
|
|
10
|
+
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const bt = ["id"], wt = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["cx", "cy", "r", "stroke", "stroke-width"], _t = { key: 1 }, Ct = ["stroke", "d", "stroke-width"], Pt = { style: { "pointer-events": "none" } }, Lt = ["cx", "cy", "fill", "r", "stroke"], Ot = ["x", "y", "fill", "font-size"], zt = { key: 2 }, At = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], It = { style: { "pointer-events": "none" } }, St = ["cx", "cy", "fill", "r", "stroke"], Mt = ["x", "y", "fill", "font-size"], Rt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], Et = ["cx", "cy", "fill", "stroke", "onClick", "r"], Ft = {
|
|
11
12
|
key: 5,
|
|
12
13
|
class: "vue-data-ui-watermark"
|
|
13
|
-
},
|
|
14
|
+
}, Bt = {
|
|
14
15
|
__name: "vue-ui-relation-circle",
|
|
15
16
|
props: {
|
|
16
17
|
dataset: {
|
|
@@ -26,60 +27,60 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
|
-
setup(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
30
|
+
setup(Pe, { expose: Le }) {
|
|
31
|
+
Ke((e) => ({
|
|
32
|
+
f0cdfa9c: Be.value,
|
|
33
|
+
"2d3aeb91": Fe.value,
|
|
34
|
+
"18692fb3": Te.value
|
|
34
35
|
}));
|
|
35
|
-
const
|
|
36
|
+
const Oe = E(() => import("./PackageVersion-CAkNkiIG.js")), ze = E(() => import("./PenAndPaper-Cx1-5zdD.js")), Ae = E(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Ie = E(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_relation_circle: Se } = it(), k = Pe, j = y(() => !!k.dataset && Object.keys(k.dataset).length), I = o(at()), Z = o(0), x = o(null), ee = o(null), te = o(null), le = o(null), se = o(0), l = y({
|
|
36
37
|
get: () => re(),
|
|
37
38
|
set: (e) => e
|
|
38
|
-
}), { userOptionsVisible: U, setUserOptionsVisibility: ie, keepUserOptionState: ae } =
|
|
39
|
+
}), { userOptionsVisible: U, setUserOptionsVisibility: ie, keepUserOptionState: ae } = ht({ config: l.value }), { svgRef: ne } = gt({ config: l.value.style.title });
|
|
39
40
|
function re() {
|
|
40
|
-
const e =
|
|
41
|
+
const e = Ce({
|
|
41
42
|
userConfig: k.config,
|
|
42
|
-
defaultConfig:
|
|
43
|
+
defaultConfig: Se
|
|
43
44
|
});
|
|
44
45
|
return e.theme ? {
|
|
45
|
-
...
|
|
46
|
-
userConfig:
|
|
46
|
+
...Ce({
|
|
47
|
+
userConfig: rt.vue_ui_relation_circle[e.theme] || k.config,
|
|
47
48
|
defaultConfig: e
|
|
48
49
|
}),
|
|
49
|
-
customPalette:
|
|
50
|
+
customPalette: nt[e.theme] || xe
|
|
50
51
|
} : e;
|
|
51
52
|
}
|
|
52
|
-
|
|
53
|
+
Qe(() => k.config, (e) => {
|
|
53
54
|
l.value = re(), U.value = !l.value.userOptions.showOnChartHover, fe(), se.value += 1;
|
|
54
55
|
}, { deep: !0 });
|
|
55
|
-
const { isPrinting: ue, isImaging: oe, generatePdf: ce, generateImage: de } =
|
|
56
|
-
elementId: `relation_circle_${
|
|
56
|
+
const { isPrinting: ue, isImaging: oe, generatePdf: ce, generateImage: de } = yt({
|
|
57
|
+
elementId: `relation_circle_${I.value}`,
|
|
57
58
|
fileName: l.value.style.title.text || "vue-ui-relation-circle",
|
|
58
59
|
options: l.value.userOptions.print
|
|
59
|
-
}),
|
|
60
|
+
}), Me = y(() => l.value.userOptions.show && !l.value.style.title.text), ve = y(() => ut(l.value.customPalette)), $ = o([]), m = o([]), d = o({}), p = o([]), Re = o(0), V = y(() => k.dataset.slice(0, l.value.style.limit)), C = o(l.value.style.size), g = o(l.value.style.weightLabels.size), G = o(l.value.style.plot.radius), W = o(l.value.style.labels.fontSize), u = o({
|
|
60
61
|
height: l.value.style.size,
|
|
61
62
|
width: l.value.style.size
|
|
62
|
-
}),
|
|
63
|
+
}), _ = y({
|
|
63
64
|
get() {
|
|
64
|
-
return
|
|
65
|
+
return C.value * l.value.style.circle.radiusProportion;
|
|
65
66
|
},
|
|
66
67
|
set(e) {
|
|
67
68
|
return e;
|
|
68
69
|
}
|
|
69
|
-
}),
|
|
70
|
-
|
|
71
|
-
fe(), document.getElementById(`relation_circle_${
|
|
70
|
+
}), Ee = y(() => l.value.style.links.curved), Fe = y(() => `${l.value.style.animation.speedMs}ms`), Be = y(() => _.value * 2), Te = y(() => _.value * 4), b = be(null), P = be(null);
|
|
71
|
+
Ze(() => {
|
|
72
|
+
fe(), document.getElementById(`relation_circle_${I.value}`).addEventListener("click", ye);
|
|
72
73
|
});
|
|
73
74
|
function fe() {
|
|
74
|
-
if (
|
|
75
|
+
if (ot(k.dataset) ? $e({
|
|
75
76
|
componentName: "VueUiRelationCircle",
|
|
76
77
|
type: "dataset"
|
|
77
78
|
}) : k.dataset.forEach((e, s) => {
|
|
78
|
-
|
|
79
|
+
ct({
|
|
79
80
|
datasetObject: e,
|
|
80
81
|
requiredAttributes: ["id", "label", "relations", "weights"]
|
|
81
82
|
}).forEach((t) => {
|
|
82
|
-
|
|
83
|
+
$e({
|
|
83
84
|
componentName: "VueUiRelationCircle",
|
|
84
85
|
type: "datasetSerieAttribute",
|
|
85
86
|
property: t,
|
|
@@ -87,28 +88,28 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
87
88
|
});
|
|
88
89
|
});
|
|
89
90
|
}), l.value.responsive) {
|
|
90
|
-
const e =
|
|
91
|
-
const { width: s, height: t } =
|
|
92
|
-
chart:
|
|
91
|
+
const e = vt(() => {
|
|
92
|
+
const { width: s, height: t } = ft({
|
|
93
|
+
chart: x.value,
|
|
93
94
|
title: l.value.style.title.text ? ee.value : null,
|
|
94
95
|
source: te.value,
|
|
95
96
|
noTitle: le.value
|
|
96
97
|
});
|
|
97
98
|
requestAnimationFrame(() => {
|
|
98
|
-
|
|
99
|
-
relator:
|
|
99
|
+
C.value = Math.min(s, t), u.value.width = s, u.value.height = t, _.value = C.value * l.value.style.circle.radiusProportion, $.value = [], m.value = [], he(), ge(), l.value.responsiveProportionalSizing ? (g.value = Q({
|
|
100
|
+
relator: C.value,
|
|
100
101
|
adjuster: l.value.style.size,
|
|
101
102
|
source: l.value.style.weightLabels.size,
|
|
102
103
|
threshold: 6,
|
|
103
104
|
fallback: 6
|
|
104
105
|
}), G.value = Q({
|
|
105
|
-
relator:
|
|
106
|
+
relator: C.value,
|
|
106
107
|
adjuster: l.value.style.size,
|
|
107
108
|
source: l.value.style.plot.radius,
|
|
108
109
|
threshold: 1,
|
|
109
110
|
fallback: 1
|
|
110
111
|
}), W.value = Q({
|
|
111
|
-
relator:
|
|
112
|
+
relator: C.value,
|
|
112
113
|
adjuster: l.value.style.size,
|
|
113
114
|
source: l.value.style.labels.fontSize,
|
|
114
115
|
threshold: 6,
|
|
@@ -116,32 +117,32 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
116
117
|
})) : (g.value = l.value.style.weightLabels.size, G.value = l.value.style.plot.radius, W.value = l.value.style.labels.fontSize);
|
|
117
118
|
});
|
|
118
119
|
});
|
|
119
|
-
b.value && (
|
|
120
|
+
b.value && (P.value && b.value.unobserve(P.value), b.value.disconnect()), b.value = new ResizeObserver(e), P.value = x.value.parentNode, b.value.observe(P.value);
|
|
120
121
|
} else
|
|
121
|
-
|
|
122
|
+
$.value = [], m.value = [], he(), ge();
|
|
122
123
|
}
|
|
123
|
-
|
|
124
|
-
document.getElementById(`relation_circle_${
|
|
124
|
+
et(() => {
|
|
125
|
+
document.getElementById(`relation_circle_${I.value}`).removeEventListener("click", ye), b.value && (P.value && b.value.unobserve(P.value), b.value.disconnect());
|
|
125
126
|
});
|
|
126
127
|
function ye(e) {
|
|
127
128
|
const s = e.target;
|
|
128
|
-
s && Array.from(s.classList).includes("vue-ui-user-options") || s && Array.from(s.classList).includes("vue-ui-user-options-summary") || s && Array.from(s.classList).includes("vue-data-ui-button") || s && Array.from(s.classList).includes("vue-ui-relation-circle-legend") || (
|
|
129
|
+
s && Array.from(s.classList).includes("vue-ui-user-options") || s && Array.from(s.classList).includes("vue-ui-user-options-summary") || s && Array.from(s.classList).includes("vue-data-ui-button") || s && Array.from(s.classList).includes("vue-ui-relation-circle-legend") || (d.value = {}, p.value = []);
|
|
129
130
|
}
|
|
130
131
|
function he() {
|
|
131
132
|
const e = 6.28319 / V.value.length, s = 360 / V.value.length;
|
|
132
|
-
let t = 0,
|
|
133
|
-
V.value.forEach((f,
|
|
134
|
-
const Y = f.weights.reduce((
|
|
135
|
-
|
|
133
|
+
let t = 0, a = 0;
|
|
134
|
+
V.value.forEach((f, c) => {
|
|
135
|
+
const Y = f.weights.reduce((He, Je) => He + Je, 0), q = _.value * Math.cos(t) + u.value.width / 2, qe = _.value * Math.sin(t) + u.value.height / 2 + l.value.style.circle.offsetY;
|
|
136
|
+
$.value.push({ x: q, y: qe, ...f, color: f.color ? f.color : ve.value[c] ? ve.value[c] : xe[c], regAngle: a, totalWeight: Y }), t += e, a += s;
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
-
const t = (e.x + s.x) / 2,
|
|
140
|
-
return { x: t, y:
|
|
139
|
+
function Ne(e, s) {
|
|
140
|
+
const t = (e.x + s.x) / 2, a = (e.y + s.y) / 2;
|
|
141
|
+
return { x: t, y: a };
|
|
141
142
|
}
|
|
142
143
|
function ge() {
|
|
143
|
-
m.value = [],
|
|
144
|
-
|
|
144
|
+
m.value = [], $.value.forEach((e) => {
|
|
145
|
+
$.value.filter((t) => t.relations.includes(e.id)).forEach((t, a) => {
|
|
145
146
|
const f = t.relations.indexOf(e.id);
|
|
146
147
|
m.value.push({
|
|
147
148
|
weight: t.weights[f] ? t.weights[f] : 0,
|
|
@@ -152,8 +153,8 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
152
153
|
y2: t.y,
|
|
153
154
|
colorSource: e.color,
|
|
154
155
|
colorTarget: t.color,
|
|
155
|
-
midPointLine:
|
|
156
|
-
midPointBezier:
|
|
156
|
+
midPointLine: Ne({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
|
|
157
|
+
midPointBezier: je({
|
|
157
158
|
x1: e.x,
|
|
158
159
|
x2: t.x,
|
|
159
160
|
y1: e.y,
|
|
@@ -164,88 +165,102 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
164
165
|
});
|
|
165
166
|
});
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
-
const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 },
|
|
168
|
+
function je(e) {
|
|
169
|
+
const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, a = { x: e.x1, y: e.y1 }, f = {
|
|
169
170
|
x: u.value.width / 2,
|
|
170
171
|
y: u.value.height / 2 + l.value.style.circle.offsetY
|
|
171
|
-
},
|
|
172
|
+
}, c = 0.5, Y = Math.pow(1 - c, 3) * s.x + 3 * Math.pow(1 - c, 2) * c * a.x + 3 * (1 - c) * Math.pow(c, 2) * f.x + Math.pow(c, 3) * t.x, q = Math.pow(1 - c, 3) * s.y + 3 * Math.pow(1 - c, 2) * c * a.y + 3 * (1 - c) * Math.pow(c, 2) * f.y + Math.pow(c, 3) * t.y;
|
|
172
173
|
return { x: Y, y: q };
|
|
173
174
|
}
|
|
174
|
-
const
|
|
175
|
-
function
|
|
176
|
-
return Object.hasOwn(
|
|
175
|
+
const Ue = y(() => Math.max(...m.value.map((e) => e.weight)));
|
|
176
|
+
function Ve(e) {
|
|
177
|
+
return Object.hasOwn(d.value, "x") ? p.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
177
178
|
}
|
|
178
179
|
function w(e) {
|
|
179
180
|
return e.colorSource;
|
|
180
181
|
}
|
|
181
182
|
function me(e) {
|
|
182
|
-
return Object.hasOwn(
|
|
183
|
+
return Object.hasOwn(d.value, "x") ? p.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}` ? `opacity:1;stroke-width:${D(e)}` : "opacity: 0" : "opacity: 1";
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
-
return Object.hasOwn(
|
|
186
|
-
}
|
|
187
|
-
function Ve(e) {
|
|
188
|
-
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
185
|
+
function L(e) {
|
|
186
|
+
return Object.hasOwn(d.value, "x") ? !!(p.value.includes(e.id) && e.relationId === `${e.id}_${d.value.id}` || e.relationId === `${d.value.id}_${e.id}`) : !1;
|
|
189
187
|
}
|
|
190
188
|
function Ge(e) {
|
|
191
|
-
return e.regAngle > 90 && e.regAngle < 270 ?
|
|
189
|
+
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
192
190
|
}
|
|
193
191
|
function We(e) {
|
|
194
|
-
return
|
|
192
|
+
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
195
193
|
}
|
|
196
194
|
function De(e) {
|
|
195
|
+
return Object.hasOwn(d.value, "x") ? d.value.id === e.id || p.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
196
|
+
}
|
|
197
|
+
function Xe(e) {
|
|
197
198
|
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
198
199
|
}
|
|
199
200
|
function pe(e) {
|
|
200
|
-
|
|
201
|
+
Re.value = 360 - e.regAngle, d.value.id && e.id === d.value.id ? (d.value = {}, p.value = []) : (d.value = e, p.value = [...e.relations]);
|
|
201
202
|
}
|
|
202
203
|
function D(e) {
|
|
203
|
-
const s = e.weight /
|
|
204
|
+
const s = e.weight / Ue.value * l.value.style.links.maxWidth;
|
|
204
205
|
return Math.max(0.3, s);
|
|
205
206
|
}
|
|
206
207
|
const M = o(!1);
|
|
207
|
-
function
|
|
208
|
+
function ke(e) {
|
|
208
209
|
M.value = e, Z.value += 1;
|
|
209
210
|
}
|
|
210
|
-
const
|
|
211
|
+
const R = o(!1);
|
|
211
212
|
function X() {
|
|
212
|
-
|
|
213
|
+
R.value = !R.value;
|
|
214
|
+
}
|
|
215
|
+
async function Ye({ scale: e = 2 } = {}) {
|
|
216
|
+
if (!x.value) return;
|
|
217
|
+
const { width: s, height: t } = x.value.getBoundingClientRect(), a = s / t, { imageUri: f, base64: c } = await pt({ domElement: x.value, base64: !0, img: !0, scale: e });
|
|
218
|
+
return {
|
|
219
|
+
imageUri: f,
|
|
220
|
+
base64: c,
|
|
221
|
+
title: l.value.style.title.text,
|
|
222
|
+
width: s,
|
|
223
|
+
height: t,
|
|
224
|
+
aspectRatio: a
|
|
225
|
+
};
|
|
213
226
|
}
|
|
214
|
-
return
|
|
227
|
+
return Le({
|
|
228
|
+
getImage: Ye,
|
|
215
229
|
generatePdf: ce,
|
|
216
230
|
generateImage: de,
|
|
217
|
-
toggleAnnotator: X
|
|
218
|
-
|
|
231
|
+
toggleAnnotator: X,
|
|
232
|
+
toggleFullscreen: ke
|
|
233
|
+
}), (e, s) => (i(), r("div", {
|
|
219
234
|
ref_key: "relationCircleChart",
|
|
220
|
-
ref:
|
|
235
|
+
ref: x,
|
|
221
236
|
class: "vue-ui-relation-circle",
|
|
222
|
-
style:
|
|
223
|
-
id: `relation_circle_${
|
|
224
|
-
onMouseenter: s[0] || (s[0] = () =>
|
|
225
|
-
onMouseleave: s[1] || (s[1] = () =>
|
|
237
|
+
style: O(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
|
|
238
|
+
id: `relation_circle_${I.value}`,
|
|
239
|
+
onMouseenter: s[0] || (s[0] = () => n(ie)(!0)),
|
|
240
|
+
onMouseleave: s[1] || (s[1] = () => n(ie)(!1))
|
|
226
241
|
}, [
|
|
227
|
-
l.value.userOptions.buttons.annotator ? (i(),
|
|
242
|
+
l.value.userOptions.buttons.annotator ? (i(), F(n(ze), {
|
|
228
243
|
key: 0,
|
|
229
|
-
svgRef:
|
|
244
|
+
svgRef: n(ne),
|
|
230
245
|
backgroundColor: l.value.style.backgroundColor,
|
|
231
246
|
color: l.value.style.color,
|
|
232
|
-
active:
|
|
247
|
+
active: R.value,
|
|
233
248
|
onClose: X
|
|
234
249
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
235
|
-
|
|
250
|
+
Me.value ? (i(), r("div", {
|
|
236
251
|
key: 1,
|
|
237
252
|
ref_key: "noTitle",
|
|
238
253
|
ref: le,
|
|
239
254
|
class: "vue-data-ui-no-title-space",
|
|
240
255
|
style: "height:36px; width: 100%;background:transparent"
|
|
241
256
|
}, null, 512)) : v("", !0),
|
|
242
|
-
l.value.style.title.text ? (i(),
|
|
257
|
+
l.value.style.title.text ? (i(), r("div", {
|
|
243
258
|
key: 2,
|
|
244
259
|
ref_key: "chartTitle",
|
|
245
260
|
ref: ee,
|
|
246
261
|
style: "width:100%;background:transparent"
|
|
247
262
|
}, [
|
|
248
|
-
(i(),
|
|
263
|
+
(i(), F(mt, {
|
|
249
264
|
key: `title_${se.value}`,
|
|
250
265
|
config: {
|
|
251
266
|
title: {
|
|
@@ -259,81 +274,82 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
259
274
|
}
|
|
260
275
|
}, null, 8, ["config"]))
|
|
261
276
|
], 512)) : v("", !0),
|
|
262
|
-
l.value.userOptions.show && j.value && (
|
|
277
|
+
l.value.userOptions.show && j.value && (n(ae) || n(U)) ? (i(), F(n(Ie), {
|
|
263
278
|
ref: "details",
|
|
264
279
|
key: `user_options_${Z.value}`,
|
|
265
280
|
backgroundColor: l.value.style.backgroundColor,
|
|
266
281
|
color: l.value.style.color,
|
|
267
|
-
isPrinting:
|
|
268
|
-
isImaging:
|
|
269
|
-
uid:
|
|
282
|
+
isPrinting: n(ue),
|
|
283
|
+
isImaging: n(oe),
|
|
284
|
+
uid: I.value,
|
|
270
285
|
hasPdf: l.value.userOptions.buttons.pdf,
|
|
271
286
|
hasImg: l.value.userOptions.buttons.img,
|
|
272
287
|
hasFullscreen: l.value.userOptions.buttons.img,
|
|
273
288
|
hasXls: !1,
|
|
274
289
|
isFullscreen: M.value,
|
|
275
290
|
titles: { ...l.value.userOptions.buttonTitles },
|
|
276
|
-
chartElement:
|
|
291
|
+
chartElement: x.value,
|
|
277
292
|
position: l.value.userOptions.position,
|
|
278
293
|
hasAnnotator: l.value.userOptions.buttons.annotator,
|
|
279
|
-
isAnnotation:
|
|
294
|
+
isAnnotation: R.value,
|
|
280
295
|
callbacks: l.value.userOptions.callbacks,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
296
|
+
printScale: l.value.userOptions.print.scale,
|
|
297
|
+
onToggleFullscreen: ke,
|
|
298
|
+
onGeneratePdf: n(ce),
|
|
299
|
+
onGenerateImage: n(de),
|
|
284
300
|
onToggleAnnotator: X,
|
|
285
|
-
style:
|
|
286
|
-
visibility:
|
|
301
|
+
style: O({
|
|
302
|
+
visibility: n(ae) ? n(U) ? "visible" : "hidden" : "visible"
|
|
287
303
|
})
|
|
288
|
-
},
|
|
304
|
+
}, tt({ _: 2 }, [
|
|
289
305
|
e.$slots.menuIcon ? {
|
|
290
306
|
name: "menuIcon",
|
|
291
|
-
fn:
|
|
292
|
-
h(e.$slots, "menuIcon", B(T({ isOpen: t, color:
|
|
307
|
+
fn: S(({ isOpen: t, color: a }) => [
|
|
308
|
+
h(e.$slots, "menuIcon", B(T({ isOpen: t, color: a })), void 0, !0)
|
|
293
309
|
]),
|
|
294
310
|
key: "0"
|
|
295
311
|
} : void 0,
|
|
296
312
|
e.$slots.optionPdf ? {
|
|
297
313
|
name: "optionPdf",
|
|
298
|
-
fn:
|
|
314
|
+
fn: S(() => [
|
|
299
315
|
h(e.$slots, "optionPdf", {}, void 0, !0)
|
|
300
316
|
]),
|
|
301
317
|
key: "1"
|
|
302
318
|
} : void 0,
|
|
303
319
|
e.$slots.optionImg ? {
|
|
304
320
|
name: "optionImg",
|
|
305
|
-
fn:
|
|
321
|
+
fn: S(() => [
|
|
306
322
|
h(e.$slots, "optionImg", {}, void 0, !0)
|
|
307
323
|
]),
|
|
308
324
|
key: "2"
|
|
309
325
|
} : void 0,
|
|
310
326
|
e.$slots.optionFullscreen ? {
|
|
311
327
|
name: "optionFullscreen",
|
|
312
|
-
fn:
|
|
313
|
-
h(e.$slots, "optionFullscreen", B(T({ toggleFullscreen: t, isFullscreen:
|
|
328
|
+
fn: S(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
329
|
+
h(e.$slots, "optionFullscreen", B(T({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
314
330
|
]),
|
|
315
331
|
key: "3"
|
|
316
332
|
} : void 0,
|
|
317
333
|
e.$slots.optionAnnotator ? {
|
|
318
334
|
name: "optionAnnotator",
|
|
319
|
-
fn:
|
|
320
|
-
h(e.$slots, "optionAnnotator", B(T({ toggleAnnotator: t, isAnnotator:
|
|
335
|
+
fn: S(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
336
|
+
h(e.$slots, "optionAnnotator", B(T({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
321
337
|
]),
|
|
322
338
|
key: "4"
|
|
323
339
|
} : void 0
|
|
324
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
325
|
-
j.value ? (i(),
|
|
340
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
341
|
+
j.value ? (i(), r("svg", {
|
|
326
342
|
key: 4,
|
|
327
343
|
ref_key: "svgRef",
|
|
328
344
|
ref: ne,
|
|
329
|
-
xmlns:
|
|
345
|
+
xmlns: n(dt),
|
|
330
346
|
class: H([{ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }, "relation-circle"]),
|
|
331
347
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
332
348
|
width: "100%",
|
|
333
349
|
style: "user-select:none; background:transparent"
|
|
334
350
|
}, [
|
|
335
|
-
|
|
336
|
-
e.$slots["chart-background"] ? (i(),
|
|
351
|
+
lt(n(Oe)),
|
|
352
|
+
e.$slots["chart-background"] ? (i(), r("foreignObject", {
|
|
337
353
|
key: 0,
|
|
338
354
|
x: 0,
|
|
339
355
|
y: 0,
|
|
@@ -344,29 +360,29 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
344
360
|
}
|
|
345
361
|
}, [
|
|
346
362
|
h(e.$slots, "chart-background", {}, void 0, !0)
|
|
347
|
-
], 8,
|
|
348
|
-
|
|
363
|
+
], 8, xt)) : v("", !0),
|
|
364
|
+
st("circle", {
|
|
349
365
|
cx: (u.value.width <= 0 ? 1e-4 : u.value.width) / 2,
|
|
350
366
|
cy: (u.value.height <= 0 ? 1e-4 : u.value.height) / 2 + l.value.style.circle.offsetY,
|
|
351
|
-
r:
|
|
367
|
+
r: _.value <= 0 ? 1e-4 : _.value,
|
|
352
368
|
stroke: l.value.style.circle.stroke,
|
|
353
369
|
"stroke-width": l.value.style.circle.strokeWidth,
|
|
354
370
|
fill: "transparent",
|
|
355
371
|
class: "main-circle"
|
|
356
|
-
}, null, 8,
|
|
357
|
-
|
|
358
|
-
(i(!0),
|
|
359
|
-
key: `relation_${
|
|
360
|
-
style:
|
|
372
|
+
}, null, 8, $t),
|
|
373
|
+
Ee.value ? (i(), r("g", _t, [
|
|
374
|
+
(i(!0), r(z, null, A(m.value, (t, a) => (i(), r("path", {
|
|
375
|
+
key: `relation_${a}`,
|
|
376
|
+
style: O(me(t)),
|
|
361
377
|
stroke: w(t),
|
|
362
|
-
class: H(["relation", { "vue-ui-relation-circle-selected":
|
|
378
|
+
class: H(["relation", { "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && p.value.includes(t.id) }]),
|
|
363
379
|
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${u.value.width / 2},${u.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
|
|
364
380
|
fill: "none",
|
|
365
381
|
"stroke-width": D(t),
|
|
366
382
|
"stroke-linecap": "round"
|
|
367
|
-
}, null, 14,
|
|
368
|
-
(i(!0),
|
|
369
|
-
|
|
383
|
+
}, null, 14, Ct))), 128)),
|
|
384
|
+
(i(!0), r(z, null, A(m.value, (t, a) => (i(), r("g", Pt, [
|
|
385
|
+
L(t) ? h(e.$slots, "dataLabel", we({
|
|
370
386
|
key: 0,
|
|
371
387
|
ref_for: !0
|
|
372
388
|
}, {
|
|
@@ -376,7 +392,7 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
376
392
|
weight: t.weight,
|
|
377
393
|
fontSize: g.value
|
|
378
394
|
}), void 0, !0) : v("", !0),
|
|
379
|
-
|
|
395
|
+
L(t) && !e.$slots.dataLabel ? (i(), r("circle", {
|
|
380
396
|
key: 1,
|
|
381
397
|
cx: t.midPointBezier.x,
|
|
382
398
|
cy: t.midPointBezier.y,
|
|
@@ -384,41 +400,41 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
384
400
|
r: g.value,
|
|
385
401
|
stroke: l.value.style.backgroundColor,
|
|
386
402
|
"stroke-width": "1"
|
|
387
|
-
}, null, 8,
|
|
388
|
-
|
|
403
|
+
}, null, 8, Lt)) : v("", !0),
|
|
404
|
+
L(t) && !e.$slots.dataLabel ? (i(), r("text", {
|
|
389
405
|
key: 2,
|
|
390
406
|
x: t.midPointBezier.x,
|
|
391
407
|
y: t.midPointBezier.y + g.value / 3,
|
|
392
|
-
fill:
|
|
408
|
+
fill: n(_e)(w(t)),
|
|
393
409
|
"text-anchor": "middle",
|
|
394
410
|
"font-size": g.value
|
|
395
|
-
}, N(
|
|
411
|
+
}, N(n(J)(
|
|
396
412
|
l.value.style.weightLabels.formatter,
|
|
397
413
|
t.weight,
|
|
398
|
-
|
|
414
|
+
n(K)({
|
|
399
415
|
p: l.value.style.weightLabels.prefix,
|
|
400
416
|
v: t.weight,
|
|
401
417
|
s: l.value.style.weightLabels.suffix,
|
|
402
418
|
r: l.value.style.weightLabels.rounding
|
|
403
419
|
}),
|
|
404
420
|
{ ...t }
|
|
405
|
-
)), 9,
|
|
421
|
+
)), 9, Ot)) : v("", !0)
|
|
406
422
|
]))), 256))
|
|
407
|
-
])) : (i(),
|
|
408
|
-
(i(!0),
|
|
409
|
-
key: `relation_${
|
|
423
|
+
])) : (i(), r("g", zt, [
|
|
424
|
+
(i(!0), r(z, null, A(m.value, (t, a) => (i(), r("line", {
|
|
425
|
+
key: `relation_${a}`,
|
|
410
426
|
stroke: w(t),
|
|
411
427
|
"stroke-width": D(t),
|
|
412
|
-
style:
|
|
428
|
+
style: O(me(t)),
|
|
413
429
|
x1: t.x1,
|
|
414
430
|
x2: t.x2,
|
|
415
431
|
y1: t.y1,
|
|
416
432
|
y2: t.y2,
|
|
417
|
-
class: H({ "vue-ui-relation-circle-selected":
|
|
433
|
+
class: H({ "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && p.value.includes(t.id) }),
|
|
418
434
|
"stroke-linecap": "round"
|
|
419
|
-
}, null, 14,
|
|
420
|
-
(i(!0),
|
|
421
|
-
|
|
435
|
+
}, null, 14, At))), 128)),
|
|
436
|
+
(i(!0), r(z, null, A(m.value, (t, a) => (i(), r("g", It, [
|
|
437
|
+
L(t) ? h(e.$slots, "dataLabel", we({
|
|
422
438
|
key: 0,
|
|
423
439
|
ref_for: !0
|
|
424
440
|
}, {
|
|
@@ -428,7 +444,7 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
428
444
|
weight: t.weight,
|
|
429
445
|
fontSize: g.value
|
|
430
446
|
}), void 0, !0) : v("", !0),
|
|
431
|
-
|
|
447
|
+
L(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), r("circle", {
|
|
432
448
|
key: 1,
|
|
433
449
|
cx: t.midPointLine.x,
|
|
434
450
|
cy: t.midPointLine.y,
|
|
@@ -436,69 +452,69 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
436
452
|
r: g.value,
|
|
437
453
|
stroke: l.value.style.backgroundColor,
|
|
438
454
|
"stroke-width": "1"
|
|
439
|
-
}, null, 8,
|
|
440
|
-
|
|
455
|
+
}, null, 8, St)) : v("", !0),
|
|
456
|
+
L(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), r("text", {
|
|
441
457
|
key: 2,
|
|
442
458
|
x: t.midPointLine.x,
|
|
443
459
|
y: t.midPointLine.y + g.value / 3,
|
|
444
|
-
fill:
|
|
460
|
+
fill: n(_e)(w(t)),
|
|
445
461
|
"text-anchor": "middle",
|
|
446
462
|
"font-size": g.value
|
|
447
|
-
}, N(
|
|
463
|
+
}, N(n(J)(
|
|
448
464
|
l.value.style.weightLabels.formatter,
|
|
449
465
|
t.weight,
|
|
450
|
-
|
|
466
|
+
n(K)({
|
|
451
467
|
p: l.value.style.weightLabels.prefix,
|
|
452
468
|
v: t.weight,
|
|
453
469
|
s: l.value.style.weightLabels.suffix,
|
|
454
470
|
r: l.value.style.weightLabels.rounding
|
|
455
471
|
}),
|
|
456
472
|
{ ...t }
|
|
457
|
-
)), 9,
|
|
473
|
+
)), 9, Mt)) : v("", !0)
|
|
458
474
|
]))), 256))
|
|
459
475
|
])),
|
|
460
|
-
(i(!0),
|
|
461
|
-
key: `plot_text_${
|
|
462
|
-
"text-anchor":
|
|
463
|
-
transform:
|
|
464
|
-
x:
|
|
476
|
+
(i(!0), r(z, null, A($.value, (t, a) => (i(), r("text", {
|
|
477
|
+
key: `plot_text_${a}`,
|
|
478
|
+
"text-anchor": Ge(t),
|
|
479
|
+
transform: Xe(t),
|
|
480
|
+
x: We(t),
|
|
465
481
|
y: t.y + 5,
|
|
466
482
|
onClick: (f) => pe(t),
|
|
467
483
|
class: "vue-ui-relation-circle-legend",
|
|
468
484
|
"transform-origin": "start",
|
|
469
|
-
"font-weight":
|
|
470
|
-
style:
|
|
485
|
+
"font-weight": d.value.id === t.id ? "900" : "400",
|
|
486
|
+
style: O(`font-family:${l.value.style.fontFamily};${De(t)}`),
|
|
471
487
|
"font-size": W.value,
|
|
472
488
|
fill: l.value.style.labels.color
|
|
473
|
-
}, N(t.label) + " (" + N(
|
|
489
|
+
}, N(t.label) + " (" + N(n(J)(
|
|
474
490
|
l.value.style.weightLabels.formatter,
|
|
475
491
|
t.totalWeight,
|
|
476
|
-
|
|
492
|
+
n(K)({
|
|
477
493
|
p: l.value.style.weightLabels.prefix,
|
|
478
494
|
v: t.totalWeight,
|
|
479
495
|
s: l.value.style.weightLabels.suffix,
|
|
480
496
|
r: l.value.style.weightLabels.rounding
|
|
481
497
|
}),
|
|
482
498
|
{ ...t }
|
|
483
|
-
)) + ") ", 13,
|
|
484
|
-
(i(!0),
|
|
499
|
+
)) + ") ", 13, Rt))), 128)),
|
|
500
|
+
(i(!0), r(z, null, A($.value, (t, a) => (i(), r("circle", {
|
|
485
501
|
cx: t.x,
|
|
486
502
|
cy: t.y,
|
|
487
|
-
key: `plot_${
|
|
488
|
-
style:
|
|
503
|
+
key: `plot_${a}`,
|
|
504
|
+
style: O(Ve(t)),
|
|
489
505
|
class: "vue-ui-relation-circle-plot",
|
|
490
506
|
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
491
507
|
stroke: l.value.style.backgroundColor,
|
|
492
508
|
"stroke-width": "1",
|
|
493
509
|
onClick: (f) => pe(t),
|
|
494
510
|
r: G.value
|
|
495
|
-
}, null, 12,
|
|
511
|
+
}, null, 12, Et))), 128)),
|
|
496
512
|
h(e.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
497
|
-
], 10,
|
|
498
|
-
e.$slots.watermark ? (i(),
|
|
499
|
-
h(e.$slots, "watermark", B(T({ isPrinting:
|
|
513
|
+
], 10, wt)) : v("", !0),
|
|
514
|
+
e.$slots.watermark ? (i(), r("div", Ft, [
|
|
515
|
+
h(e.$slots, "watermark", B(T({ isPrinting: n(ue) || n(oe) })), void 0, !0)
|
|
500
516
|
])) : v("", !0),
|
|
501
|
-
e.$slots.source ? (i(),
|
|
517
|
+
e.$slots.source ? (i(), r("div", {
|
|
502
518
|
key: 6,
|
|
503
519
|
ref_key: "source",
|
|
504
520
|
ref: te,
|
|
@@ -506,7 +522,7 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
506
522
|
}, [
|
|
507
523
|
h(e.$slots, "source", {}, void 0, !0)
|
|
508
524
|
], 512)) : v("", !0),
|
|
509
|
-
j.value ? v("", !0) : (i(),
|
|
525
|
+
j.value ? v("", !0) : (i(), F(n(Ae), {
|
|
510
526
|
key: 7,
|
|
511
527
|
config: {
|
|
512
528
|
type: "relationCircle",
|
|
@@ -518,9 +534,9 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
518
534
|
}
|
|
519
535
|
}
|
|
520
536
|
}, null, 8, ["config"]))
|
|
521
|
-
], 44,
|
|
537
|
+
], 44, bt));
|
|
522
538
|
}
|
|
523
|
-
},
|
|
539
|
+
}, qt = /* @__PURE__ */ kt(Bt, [["__scopeId", "data-v-83eab99c"]]);
|
|
524
540
|
export {
|
|
525
|
-
|
|
541
|
+
qt as default
|
|
526
542
|
};
|