vue-data-ui 2.16.6 → 2.17.0
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 +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as $, useSlots as J, onMounted as R, computed as x, watch as Q, createElementBlock as o, openBlock as a, normalizeStyle as s, createCommentVNode as p, createElementVNode as r, toDisplayString as f, unref as n, Fragment as B, renderList as Z, renderSlot as j, mergeProps as O, withKeys as ee } from "vue";
|
|
2
|
-
import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X, _ as I } from "./index-
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
2
|
+
import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X, _ as I } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { u as ie } from "./useNestedProp-DjACxgdZ.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const ne = {
|
|
6
6
|
key: 0,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as dt, u 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 F, ref as o, watch as Qe, shallowRef as be, onMounted as Ze, onBeforeUnmount as et, createElementBlock as n, openBlock as i, unref as a, normalizeStyle as O, createBlock as R, createCommentVNode as d, 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 vt, F as _e, i as J, f as K, E as Q } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { t as dt, u as ft } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ce } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as yt } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as gt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import mt from "./Title-B-2bV0SW.js";
|
|
9
|
+
import pt from "./img-Y_hYz-ZC.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"], Et = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], Ft = ["cx", "cy", "fill", "stroke", "onClick", "r"], Rt = {
|
|
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
|
+
"1a17a60b": Be.value,
|
|
33
|
+
"4e963a6a": Re.value,
|
|
34
|
+
"05cc60cc": Te.value
|
|
34
35
|
}));
|
|
35
|
-
const
|
|
36
|
+
const Oe = F(() => import("./PackageVersion-5TR4ocqp.js")), ze = F(() => import("./PenAndPaper-D6AqipIO.js")), Ae = F(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Ie = F(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_relation_circle: Se } = it(), k = Pe, j = y(() => !!k.dataset && Object.keys(k.dataset).length), I = o(at()), Z = o(0), _ = 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:
|
|
56
|
-
elementId: `relation_circle_${
|
|
56
|
+
const { isPrinting: ue, isImaging: oe, generatePdf: ce, generateImage: ve } = 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), de = y(() => ut(l.value.customPalette)), x = o([]), m = o([]), c = o({}), p = o([]), Ee = 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
|
-
}), Fe = y(() => l.value.style.links.curved),
|
|
70
|
-
|
|
71
|
-
fe(), document.getElementById(`relation_circle_${
|
|
70
|
+
}), Fe = y(() => l.value.style.links.curved), Re = 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,
|
|
@@ -88,27 +89,27 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
88
89
|
});
|
|
89
90
|
}), l.value.responsive) {
|
|
90
91
|
const e = dt(() => {
|
|
91
|
-
const { width: s, height: t } =
|
|
92
|
-
chart:
|
|
92
|
+
const { width: s, height: t } = ft({
|
|
93
|
+
chart: _.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, x.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,12 +117,12 @@ 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 = _.value.parentNode, b.value.observe(P.value);
|
|
120
121
|
} else
|
|
121
122
|
x.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;
|
|
@@ -130,12 +131,12 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
130
131
|
function he() {
|
|
131
132
|
const e = 6.28319 / V.value.length, s = 360 / V.value.length;
|
|
132
133
|
let t = 0, r = 0;
|
|
133
|
-
V.value.forEach((f,
|
|
134
|
-
const Y = f.weights.reduce((
|
|
135
|
-
x.value.push({ x: q, y:
|
|
134
|
+
V.value.forEach((f, v) => {
|
|
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
|
+
x.value.push({ x: q, y: qe, ...f, color: f.color ? f.color : de.value[v] ? de.value[v] : xe[v], regAngle: r, totalWeight: Y }), t += e, r += s;
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
+
function Ne(e, s) {
|
|
139
140
|
const t = (e.x + s.x) / 2, r = (e.y + s.y) / 2;
|
|
140
141
|
return { x: t, y: r };
|
|
141
142
|
}
|
|
@@ -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,15 +165,15 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
164
165
|
});
|
|
165
166
|
});
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
+
function je(e) {
|
|
168
169
|
const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, r = { 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
|
+
}, v = 0.5, Y = Math.pow(1 - v, 3) * s.x + 3 * Math.pow(1 - v, 2) * v * r.x + 3 * (1 - v) * Math.pow(v, 2) * f.x + Math.pow(v, 3) * t.x, q = Math.pow(1 - v, 3) * s.y + 3 * Math.pow(1 - v, 2) * v * r.y + 3 * (1 - v) * Math.pow(v, 2) * f.y + Math.pow(v, 3) * t.y;
|
|
172
173
|
return { x: Y, y: q };
|
|
173
174
|
}
|
|
174
|
-
const
|
|
175
|
-
function
|
|
175
|
+
const Ue = y(() => Math.max(...m.value.map((e) => e.weight)));
|
|
176
|
+
function Ve(e) {
|
|
176
177
|
return Object.hasOwn(c.value, "x") ? p.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
177
178
|
}
|
|
178
179
|
function w(e) {
|
|
@@ -181,71 +182,78 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
181
182
|
function me(e) {
|
|
182
183
|
return Object.hasOwn(c.value, "x") ? p.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}` ? `opacity:1;stroke-width:${D(e)}` : "opacity: 0" : "opacity: 1";
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
+
function L(e) {
|
|
185
186
|
return Object.hasOwn(c.value, "x") ? !!(p.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}`) : !1;
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
+
function Ge(e) {
|
|
188
189
|
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
189
190
|
}
|
|
190
|
-
function
|
|
191
|
+
function We(e) {
|
|
191
192
|
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
+
function De(e) {
|
|
194
195
|
return Object.hasOwn(c.value, "x") ? c.value.id === e.id || p.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
195
196
|
}
|
|
196
|
-
function
|
|
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
|
+
Ee.value = 360 - e.regAngle, c.value.id && e.id === c.value.id ? (c.value = {}, p.value = []) : (c.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 E = o(!1);
|
|
211
212
|
function X() {
|
|
212
|
-
|
|
213
|
+
E.value = !E.value;
|
|
214
|
+
}
|
|
215
|
+
async function Ye({ scale: e = 2 } = {}) {
|
|
216
|
+
if (!_.value) return;
|
|
217
|
+
const { imageUri: s, base64: t } = await pt({ domElement: _.value, base64: !0, img: !0, scale: e });
|
|
218
|
+
return { imageUri: s, base64: t };
|
|
213
219
|
}
|
|
214
|
-
return
|
|
220
|
+
return Le({
|
|
221
|
+
getImage: Ye,
|
|
215
222
|
generatePdf: ce,
|
|
216
|
-
generateImage:
|
|
217
|
-
toggleAnnotator: X
|
|
223
|
+
generateImage: ve,
|
|
224
|
+
toggleAnnotator: X,
|
|
225
|
+
toggleFullscreen: ke
|
|
218
226
|
}), (e, s) => (i(), n("div", {
|
|
219
227
|
ref_key: "relationCircleChart",
|
|
220
|
-
ref:
|
|
228
|
+
ref: _,
|
|
221
229
|
class: "vue-ui-relation-circle",
|
|
222
|
-
style:
|
|
223
|
-
id: `relation_circle_${
|
|
230
|
+
style: O(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
|
|
231
|
+
id: `relation_circle_${I.value}`,
|
|
224
232
|
onMouseenter: s[0] || (s[0] = () => a(ie)(!0)),
|
|
225
233
|
onMouseleave: s[1] || (s[1] = () => a(ie)(!1))
|
|
226
234
|
}, [
|
|
227
|
-
l.value.userOptions.buttons.annotator ? (i(), R(a(
|
|
235
|
+
l.value.userOptions.buttons.annotator ? (i(), R(a(ze), {
|
|
228
236
|
key: 0,
|
|
229
237
|
svgRef: a(ne),
|
|
230
238
|
backgroundColor: l.value.style.backgroundColor,
|
|
231
239
|
color: l.value.style.color,
|
|
232
|
-
active:
|
|
240
|
+
active: E.value,
|
|
233
241
|
onClose: X
|
|
234
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
235
|
-
|
|
242
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
243
|
+
Me.value ? (i(), n("div", {
|
|
236
244
|
key: 1,
|
|
237
245
|
ref_key: "noTitle",
|
|
238
246
|
ref: le,
|
|
239
247
|
class: "vue-data-ui-no-title-space",
|
|
240
248
|
style: "height:36px; width: 100%;background:transparent"
|
|
241
|
-
}, null, 512)) :
|
|
249
|
+
}, null, 512)) : d("", !0),
|
|
242
250
|
l.value.style.title.text ? (i(), n("div", {
|
|
243
251
|
key: 2,
|
|
244
252
|
ref_key: "chartTitle",
|
|
245
253
|
ref: ee,
|
|
246
254
|
style: "width:100%;background:transparent"
|
|
247
255
|
}, [
|
|
248
|
-
(i(), R(
|
|
256
|
+
(i(), R(mt, {
|
|
249
257
|
key: `title_${se.value}`,
|
|
250
258
|
config: {
|
|
251
259
|
title: {
|
|
@@ -258,82 +266,82 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
258
266
|
}
|
|
259
267
|
}
|
|
260
268
|
}, null, 8, ["config"]))
|
|
261
|
-
], 512)) :
|
|
262
|
-
l.value.userOptions.show && j.value && (a(ae) || a(U)) ? (i(), R(a(
|
|
269
|
+
], 512)) : d("", !0),
|
|
270
|
+
l.value.userOptions.show && j.value && (a(ae) || a(U)) ? (i(), R(a(Ie), {
|
|
263
271
|
ref: "details",
|
|
264
272
|
key: `user_options_${Z.value}`,
|
|
265
273
|
backgroundColor: l.value.style.backgroundColor,
|
|
266
274
|
color: l.value.style.color,
|
|
267
275
|
isPrinting: a(ue),
|
|
268
276
|
isImaging: a(oe),
|
|
269
|
-
uid:
|
|
277
|
+
uid: I.value,
|
|
270
278
|
hasPdf: l.value.userOptions.buttons.pdf,
|
|
271
279
|
hasImg: l.value.userOptions.buttons.img,
|
|
272
280
|
hasFullscreen: l.value.userOptions.buttons.img,
|
|
273
281
|
hasXls: !1,
|
|
274
282
|
isFullscreen: M.value,
|
|
275
283
|
titles: { ...l.value.userOptions.buttonTitles },
|
|
276
|
-
chartElement:
|
|
284
|
+
chartElement: _.value,
|
|
277
285
|
position: l.value.userOptions.position,
|
|
278
286
|
hasAnnotator: l.value.userOptions.buttons.annotator,
|
|
279
|
-
isAnnotation:
|
|
287
|
+
isAnnotation: E.value,
|
|
280
288
|
callbacks: l.value.userOptions.callbacks,
|
|
281
289
|
printScale: l.value.userOptions.print.scale,
|
|
282
|
-
onToggleFullscreen:
|
|
290
|
+
onToggleFullscreen: ke,
|
|
283
291
|
onGeneratePdf: a(ce),
|
|
284
|
-
onGenerateImage: a(
|
|
292
|
+
onGenerateImage: a(ve),
|
|
285
293
|
onToggleAnnotator: X,
|
|
286
|
-
style:
|
|
294
|
+
style: O({
|
|
287
295
|
visibility: a(ae) ? a(U) ? "visible" : "hidden" : "visible"
|
|
288
296
|
})
|
|
289
|
-
},
|
|
297
|
+
}, tt({ _: 2 }, [
|
|
290
298
|
e.$slots.menuIcon ? {
|
|
291
299
|
name: "menuIcon",
|
|
292
|
-
fn:
|
|
300
|
+
fn: S(({ isOpen: t, color: r }) => [
|
|
293
301
|
h(e.$slots, "menuIcon", B(T({ isOpen: t, color: r })), void 0, !0)
|
|
294
302
|
]),
|
|
295
303
|
key: "0"
|
|
296
304
|
} : void 0,
|
|
297
305
|
e.$slots.optionPdf ? {
|
|
298
306
|
name: "optionPdf",
|
|
299
|
-
fn:
|
|
307
|
+
fn: S(() => [
|
|
300
308
|
h(e.$slots, "optionPdf", {}, void 0, !0)
|
|
301
309
|
]),
|
|
302
310
|
key: "1"
|
|
303
311
|
} : void 0,
|
|
304
312
|
e.$slots.optionImg ? {
|
|
305
313
|
name: "optionImg",
|
|
306
|
-
fn:
|
|
314
|
+
fn: S(() => [
|
|
307
315
|
h(e.$slots, "optionImg", {}, void 0, !0)
|
|
308
316
|
]),
|
|
309
317
|
key: "2"
|
|
310
318
|
} : void 0,
|
|
311
319
|
e.$slots.optionFullscreen ? {
|
|
312
320
|
name: "optionFullscreen",
|
|
313
|
-
fn:
|
|
321
|
+
fn: S(({ toggleFullscreen: t, isFullscreen: r }) => [
|
|
314
322
|
h(e.$slots, "optionFullscreen", B(T({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
|
|
315
323
|
]),
|
|
316
324
|
key: "3"
|
|
317
325
|
} : void 0,
|
|
318
326
|
e.$slots.optionAnnotator ? {
|
|
319
327
|
name: "optionAnnotator",
|
|
320
|
-
fn:
|
|
328
|
+
fn: S(({ toggleAnnotator: t, isAnnotator: r }) => [
|
|
321
329
|
h(e.$slots, "optionAnnotator", B(T({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
|
|
322
330
|
]),
|
|
323
331
|
key: "4"
|
|
324
332
|
} : void 0
|
|
325
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
333
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
326
334
|
j.value ? (i(), n("svg", {
|
|
327
335
|
key: 4,
|
|
328
336
|
ref_key: "svgRef",
|
|
329
337
|
ref: ne,
|
|
330
|
-
xmlns: a(
|
|
338
|
+
xmlns: a(vt),
|
|
331
339
|
class: H([{ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }, "relation-circle"]),
|
|
332
340
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
333
341
|
width: "100%",
|
|
334
342
|
style: "user-select:none; background:transparent"
|
|
335
343
|
}, [
|
|
336
|
-
|
|
344
|
+
lt(a(Oe)),
|
|
337
345
|
e.$slots["chart-background"] ? (i(), n("foreignObject", {
|
|
338
346
|
key: 0,
|
|
339
347
|
x: 0,
|
|
@@ -345,8 +353,8 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
345
353
|
}
|
|
346
354
|
}, [
|
|
347
355
|
h(e.$slots, "chart-background", {}, void 0, !0)
|
|
348
|
-
], 8,
|
|
349
|
-
|
|
356
|
+
], 8, xt)) : d("", !0),
|
|
357
|
+
st("circle", {
|
|
350
358
|
cx: (u.value.width <= 0 ? 1e-4 : u.value.width) / 2,
|
|
351
359
|
cy: (u.value.height <= 0 ? 1e-4 : u.value.height) / 2 + l.value.style.circle.offsetY,
|
|
352
360
|
r: $.value <= 0 ? 1e-4 : $.value,
|
|
@@ -354,20 +362,20 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
354
362
|
"stroke-width": l.value.style.circle.strokeWidth,
|
|
355
363
|
fill: "transparent",
|
|
356
364
|
class: "main-circle"
|
|
357
|
-
}, null, 8,
|
|
358
|
-
Fe.value ? (i(), n("g",
|
|
359
|
-
(i(!0), n(
|
|
365
|
+
}, null, 8, $t),
|
|
366
|
+
Fe.value ? (i(), n("g", _t, [
|
|
367
|
+
(i(!0), n(z, null, A(m.value, (t, r) => (i(), n("path", {
|
|
360
368
|
key: `relation_${r}`,
|
|
361
|
-
style:
|
|
369
|
+
style: O(me(t)),
|
|
362
370
|
stroke: w(t),
|
|
363
371
|
class: H(["relation", { "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && p.value.includes(t.id) }]),
|
|
364
372
|
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}`,
|
|
365
373
|
fill: "none",
|
|
366
374
|
"stroke-width": D(t),
|
|
367
375
|
"stroke-linecap": "round"
|
|
368
|
-
}, null, 14,
|
|
369
|
-
(i(!0), n(
|
|
370
|
-
|
|
376
|
+
}, null, 14, Ct))), 128)),
|
|
377
|
+
(i(!0), n(z, null, A(m.value, (t, r) => (i(), n("g", Pt, [
|
|
378
|
+
L(t) ? h(e.$slots, "dataLabel", we({
|
|
371
379
|
key: 0,
|
|
372
380
|
ref_for: !0
|
|
373
381
|
}, {
|
|
@@ -376,8 +384,8 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
376
384
|
color: w(t),
|
|
377
385
|
weight: t.weight,
|
|
378
386
|
fontSize: g.value
|
|
379
|
-
}), void 0, !0) :
|
|
380
|
-
|
|
387
|
+
}), void 0, !0) : d("", !0),
|
|
388
|
+
L(t) && !e.$slots.dataLabel ? (i(), n("circle", {
|
|
381
389
|
key: 1,
|
|
382
390
|
cx: t.midPointBezier.x,
|
|
383
391
|
cy: t.midPointBezier.y,
|
|
@@ -385,12 +393,12 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
385
393
|
r: g.value,
|
|
386
394
|
stroke: l.value.style.backgroundColor,
|
|
387
395
|
"stroke-width": "1"
|
|
388
|
-
}, null, 8,
|
|
389
|
-
|
|
396
|
+
}, null, 8, Lt)) : d("", !0),
|
|
397
|
+
L(t) && !e.$slots.dataLabel ? (i(), n("text", {
|
|
390
398
|
key: 2,
|
|
391
399
|
x: t.midPointBezier.x,
|
|
392
400
|
y: t.midPointBezier.y + g.value / 3,
|
|
393
|
-
fill: a(
|
|
401
|
+
fill: a(_e)(w(t)),
|
|
394
402
|
"text-anchor": "middle",
|
|
395
403
|
"font-size": g.value
|
|
396
404
|
}, N(a(J)(
|
|
@@ -403,23 +411,23 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
403
411
|
r: l.value.style.weightLabels.rounding
|
|
404
412
|
}),
|
|
405
413
|
{ ...t }
|
|
406
|
-
)), 9,
|
|
414
|
+
)), 9, Ot)) : d("", !0)
|
|
407
415
|
]))), 256))
|
|
408
|
-
])) : (i(), n("g",
|
|
409
|
-
(i(!0), n(
|
|
416
|
+
])) : (i(), n("g", zt, [
|
|
417
|
+
(i(!0), n(z, null, A(m.value, (t, r) => (i(), n("line", {
|
|
410
418
|
key: `relation_${r}`,
|
|
411
419
|
stroke: w(t),
|
|
412
420
|
"stroke-width": D(t),
|
|
413
|
-
style:
|
|
421
|
+
style: O(me(t)),
|
|
414
422
|
x1: t.x1,
|
|
415
423
|
x2: t.x2,
|
|
416
424
|
y1: t.y1,
|
|
417
425
|
y2: t.y2,
|
|
418
426
|
class: H({ "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && p.value.includes(t.id) }),
|
|
419
427
|
"stroke-linecap": "round"
|
|
420
|
-
}, null, 14,
|
|
421
|
-
(i(!0), n(
|
|
422
|
-
|
|
428
|
+
}, null, 14, At))), 128)),
|
|
429
|
+
(i(!0), n(z, null, A(m.value, (t, r) => (i(), n("g", It, [
|
|
430
|
+
L(t) ? h(e.$slots, "dataLabel", we({
|
|
423
431
|
key: 0,
|
|
424
432
|
ref_for: !0
|
|
425
433
|
}, {
|
|
@@ -428,8 +436,8 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
428
436
|
color: w(t),
|
|
429
437
|
weight: t.weight,
|
|
430
438
|
fontSize: g.value
|
|
431
|
-
}), void 0, !0) :
|
|
432
|
-
|
|
439
|
+
}), void 0, !0) : d("", !0),
|
|
440
|
+
L(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), n("circle", {
|
|
433
441
|
key: 1,
|
|
434
442
|
cx: t.midPointLine.x,
|
|
435
443
|
cy: t.midPointLine.y,
|
|
@@ -437,12 +445,12 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
437
445
|
r: g.value,
|
|
438
446
|
stroke: l.value.style.backgroundColor,
|
|
439
447
|
"stroke-width": "1"
|
|
440
|
-
}, null, 8,
|
|
441
|
-
|
|
448
|
+
}, null, 8, St)) : d("", !0),
|
|
449
|
+
L(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), n("text", {
|
|
442
450
|
key: 2,
|
|
443
451
|
x: t.midPointLine.x,
|
|
444
452
|
y: t.midPointLine.y + g.value / 3,
|
|
445
|
-
fill: a(
|
|
453
|
+
fill: a(_e)(w(t)),
|
|
446
454
|
"text-anchor": "middle",
|
|
447
455
|
"font-size": g.value
|
|
448
456
|
}, N(a(J)(
|
|
@@ -455,20 +463,20 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
455
463
|
r: l.value.style.weightLabels.rounding
|
|
456
464
|
}),
|
|
457
465
|
{ ...t }
|
|
458
|
-
)), 9,
|
|
466
|
+
)), 9, Mt)) : d("", !0)
|
|
459
467
|
]))), 256))
|
|
460
468
|
])),
|
|
461
|
-
(i(!0), n(
|
|
469
|
+
(i(!0), n(z, null, A(x.value, (t, r) => (i(), n("text", {
|
|
462
470
|
key: `plot_text_${r}`,
|
|
463
|
-
"text-anchor":
|
|
464
|
-
transform:
|
|
465
|
-
x:
|
|
471
|
+
"text-anchor": Ge(t),
|
|
472
|
+
transform: Xe(t),
|
|
473
|
+
x: We(t),
|
|
466
474
|
y: t.y + 5,
|
|
467
475
|
onClick: (f) => pe(t),
|
|
468
476
|
class: "vue-ui-relation-circle-legend",
|
|
469
477
|
"transform-origin": "start",
|
|
470
478
|
"font-weight": c.value.id === t.id ? "900" : "400",
|
|
471
|
-
style:
|
|
479
|
+
style: O(`font-family:${l.value.style.fontFamily};${De(t)}`),
|
|
472
480
|
"font-size": W.value,
|
|
473
481
|
fill: l.value.style.labels.color
|
|
474
482
|
}, N(t.label) + " (" + N(a(J)(
|
|
@@ -481,24 +489,24 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
481
489
|
r: l.value.style.weightLabels.rounding
|
|
482
490
|
}),
|
|
483
491
|
{ ...t }
|
|
484
|
-
)) + ") ", 13,
|
|
485
|
-
(i(!0), n(
|
|
492
|
+
)) + ") ", 13, Et))), 128)),
|
|
493
|
+
(i(!0), n(z, null, A(x.value, (t, r) => (i(), n("circle", {
|
|
486
494
|
cx: t.x,
|
|
487
495
|
cy: t.y,
|
|
488
496
|
key: `plot_${r}`,
|
|
489
|
-
style:
|
|
497
|
+
style: O(Ve(t)),
|
|
490
498
|
class: "vue-ui-relation-circle-plot",
|
|
491
499
|
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
492
500
|
stroke: l.value.style.backgroundColor,
|
|
493
501
|
"stroke-width": "1",
|
|
494
502
|
onClick: (f) => pe(t),
|
|
495
503
|
r: G.value
|
|
496
|
-
}, null, 12,
|
|
504
|
+
}, null, 12, Ft))), 128)),
|
|
497
505
|
h(e.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
498
|
-
], 10,
|
|
499
|
-
e.$slots.watermark ? (i(), n("div",
|
|
506
|
+
], 10, wt)) : d("", !0),
|
|
507
|
+
e.$slots.watermark ? (i(), n("div", Rt, [
|
|
500
508
|
h(e.$slots, "watermark", B(T({ isPrinting: a(ue) || a(oe) })), void 0, !0)
|
|
501
|
-
])) :
|
|
509
|
+
])) : d("", !0),
|
|
502
510
|
e.$slots.source ? (i(), n("div", {
|
|
503
511
|
key: 6,
|
|
504
512
|
ref_key: "source",
|
|
@@ -506,8 +514,8 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
506
514
|
dir: "auto"
|
|
507
515
|
}, [
|
|
508
516
|
h(e.$slots, "source", {}, void 0, !0)
|
|
509
|
-
], 512)) :
|
|
510
|
-
j.value ?
|
|
517
|
+
], 512)) : d("", !0),
|
|
518
|
+
j.value ? d("", !0) : (i(), R(a(Ae), {
|
|
511
519
|
key: 7,
|
|
512
520
|
config: {
|
|
513
521
|
type: "relationCircle",
|
|
@@ -519,9 +527,9 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
519
527
|
}
|
|
520
528
|
}
|
|
521
529
|
}, null, 8, ["config"]))
|
|
522
|
-
], 44,
|
|
530
|
+
], 44, bt));
|
|
523
531
|
}
|
|
524
|
-
},
|
|
532
|
+
}, qt = /* @__PURE__ */ kt(Bt, [["__scopeId", "data-v-8c1db423"]]);
|
|
525
533
|
export {
|
|
526
|
-
|
|
534
|
+
qt as default
|
|
527
535
|
};
|