vue-data-ui 2.16.5 → 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 +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.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-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -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,81 +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,
|
|
290
|
+
onToggleFullscreen: ke,
|
|
282
291
|
onGeneratePdf: a(ce),
|
|
283
|
-
onGenerateImage: a(
|
|
292
|
+
onGenerateImage: a(ve),
|
|
284
293
|
onToggleAnnotator: X,
|
|
285
|
-
style:
|
|
294
|
+
style: O({
|
|
286
295
|
visibility: a(ae) ? a(U) ? "visible" : "hidden" : "visible"
|
|
287
296
|
})
|
|
288
|
-
},
|
|
297
|
+
}, tt({ _: 2 }, [
|
|
289
298
|
e.$slots.menuIcon ? {
|
|
290
299
|
name: "menuIcon",
|
|
291
|
-
fn:
|
|
300
|
+
fn: S(({ isOpen: t, color: r }) => [
|
|
292
301
|
h(e.$slots, "menuIcon", B(T({ isOpen: t, color: r })), void 0, !0)
|
|
293
302
|
]),
|
|
294
303
|
key: "0"
|
|
295
304
|
} : void 0,
|
|
296
305
|
e.$slots.optionPdf ? {
|
|
297
306
|
name: "optionPdf",
|
|
298
|
-
fn:
|
|
307
|
+
fn: S(() => [
|
|
299
308
|
h(e.$slots, "optionPdf", {}, void 0, !0)
|
|
300
309
|
]),
|
|
301
310
|
key: "1"
|
|
302
311
|
} : void 0,
|
|
303
312
|
e.$slots.optionImg ? {
|
|
304
313
|
name: "optionImg",
|
|
305
|
-
fn:
|
|
314
|
+
fn: S(() => [
|
|
306
315
|
h(e.$slots, "optionImg", {}, void 0, !0)
|
|
307
316
|
]),
|
|
308
317
|
key: "2"
|
|
309
318
|
} : void 0,
|
|
310
319
|
e.$slots.optionFullscreen ? {
|
|
311
320
|
name: "optionFullscreen",
|
|
312
|
-
fn:
|
|
321
|
+
fn: S(({ toggleFullscreen: t, isFullscreen: r }) => [
|
|
313
322
|
h(e.$slots, "optionFullscreen", B(T({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
|
|
314
323
|
]),
|
|
315
324
|
key: "3"
|
|
316
325
|
} : void 0,
|
|
317
326
|
e.$slots.optionAnnotator ? {
|
|
318
327
|
name: "optionAnnotator",
|
|
319
|
-
fn:
|
|
328
|
+
fn: S(({ toggleAnnotator: t, isAnnotator: r }) => [
|
|
320
329
|
h(e.$slots, "optionAnnotator", B(T({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
|
|
321
330
|
]),
|
|
322
331
|
key: "4"
|
|
323
332
|
} : void 0
|
|
324
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "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),
|
|
325
334
|
j.value ? (i(), n("svg", {
|
|
326
335
|
key: 4,
|
|
327
336
|
ref_key: "svgRef",
|
|
328
337
|
ref: ne,
|
|
329
|
-
xmlns: a(
|
|
338
|
+
xmlns: a(vt),
|
|
330
339
|
class: H([{ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }, "relation-circle"]),
|
|
331
340
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
332
341
|
width: "100%",
|
|
333
342
|
style: "user-select:none; background:transparent"
|
|
334
343
|
}, [
|
|
335
|
-
|
|
344
|
+
lt(a(Oe)),
|
|
336
345
|
e.$slots["chart-background"] ? (i(), n("foreignObject", {
|
|
337
346
|
key: 0,
|
|
338
347
|
x: 0,
|
|
@@ -344,8 +353,8 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
344
353
|
}
|
|
345
354
|
}, [
|
|
346
355
|
h(e.$slots, "chart-background", {}, void 0, !0)
|
|
347
|
-
], 8,
|
|
348
|
-
|
|
356
|
+
], 8, xt)) : d("", !0),
|
|
357
|
+
st("circle", {
|
|
349
358
|
cx: (u.value.width <= 0 ? 1e-4 : u.value.width) / 2,
|
|
350
359
|
cy: (u.value.height <= 0 ? 1e-4 : u.value.height) / 2 + l.value.style.circle.offsetY,
|
|
351
360
|
r: $.value <= 0 ? 1e-4 : $.value,
|
|
@@ -353,20 +362,20 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
353
362
|
"stroke-width": l.value.style.circle.strokeWidth,
|
|
354
363
|
fill: "transparent",
|
|
355
364
|
class: "main-circle"
|
|
356
|
-
}, null, 8,
|
|
357
|
-
Fe.value ? (i(), n("g",
|
|
358
|
-
(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", {
|
|
359
368
|
key: `relation_${r}`,
|
|
360
|
-
style:
|
|
369
|
+
style: O(me(t)),
|
|
361
370
|
stroke: w(t),
|
|
362
371
|
class: H(["relation", { "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && p.value.includes(t.id) }]),
|
|
363
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}`,
|
|
364
373
|
fill: "none",
|
|
365
374
|
"stroke-width": D(t),
|
|
366
375
|
"stroke-linecap": "round"
|
|
367
|
-
}, null, 14,
|
|
368
|
-
(i(!0), n(
|
|
369
|
-
|
|
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({
|
|
370
379
|
key: 0,
|
|
371
380
|
ref_for: !0
|
|
372
381
|
}, {
|
|
@@ -375,8 +384,8 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
375
384
|
color: w(t),
|
|
376
385
|
weight: t.weight,
|
|
377
386
|
fontSize: g.value
|
|
378
|
-
}), void 0, !0) :
|
|
379
|
-
|
|
387
|
+
}), void 0, !0) : d("", !0),
|
|
388
|
+
L(t) && !e.$slots.dataLabel ? (i(), n("circle", {
|
|
380
389
|
key: 1,
|
|
381
390
|
cx: t.midPointBezier.x,
|
|
382
391
|
cy: t.midPointBezier.y,
|
|
@@ -384,12 +393,12 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
384
393
|
r: g.value,
|
|
385
394
|
stroke: l.value.style.backgroundColor,
|
|
386
395
|
"stroke-width": "1"
|
|
387
|
-
}, null, 8,
|
|
388
|
-
|
|
396
|
+
}, null, 8, Lt)) : d("", !0),
|
|
397
|
+
L(t) && !e.$slots.dataLabel ? (i(), n("text", {
|
|
389
398
|
key: 2,
|
|
390
399
|
x: t.midPointBezier.x,
|
|
391
400
|
y: t.midPointBezier.y + g.value / 3,
|
|
392
|
-
fill: a(
|
|
401
|
+
fill: a(_e)(w(t)),
|
|
393
402
|
"text-anchor": "middle",
|
|
394
403
|
"font-size": g.value
|
|
395
404
|
}, N(a(J)(
|
|
@@ -402,23 +411,23 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
402
411
|
r: l.value.style.weightLabels.rounding
|
|
403
412
|
}),
|
|
404
413
|
{ ...t }
|
|
405
|
-
)), 9,
|
|
414
|
+
)), 9, Ot)) : d("", !0)
|
|
406
415
|
]))), 256))
|
|
407
|
-
])) : (i(), n("g",
|
|
408
|
-
(i(!0), n(
|
|
416
|
+
])) : (i(), n("g", zt, [
|
|
417
|
+
(i(!0), n(z, null, A(m.value, (t, r) => (i(), n("line", {
|
|
409
418
|
key: `relation_${r}`,
|
|
410
419
|
stroke: w(t),
|
|
411
420
|
"stroke-width": D(t),
|
|
412
|
-
style:
|
|
421
|
+
style: O(me(t)),
|
|
413
422
|
x1: t.x1,
|
|
414
423
|
x2: t.x2,
|
|
415
424
|
y1: t.y1,
|
|
416
425
|
y2: t.y2,
|
|
417
426
|
class: H({ "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && p.value.includes(t.id) }),
|
|
418
427
|
"stroke-linecap": "round"
|
|
419
|
-
}, null, 14,
|
|
420
|
-
(i(!0), n(
|
|
421
|
-
|
|
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({
|
|
422
431
|
key: 0,
|
|
423
432
|
ref_for: !0
|
|
424
433
|
}, {
|
|
@@ -427,8 +436,8 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
427
436
|
color: w(t),
|
|
428
437
|
weight: t.weight,
|
|
429
438
|
fontSize: g.value
|
|
430
|
-
}), void 0, !0) :
|
|
431
|
-
|
|
439
|
+
}), void 0, !0) : d("", !0),
|
|
440
|
+
L(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), n("circle", {
|
|
432
441
|
key: 1,
|
|
433
442
|
cx: t.midPointLine.x,
|
|
434
443
|
cy: t.midPointLine.y,
|
|
@@ -436,12 +445,12 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
436
445
|
r: g.value,
|
|
437
446
|
stroke: l.value.style.backgroundColor,
|
|
438
447
|
"stroke-width": "1"
|
|
439
|
-
}, null, 8,
|
|
440
|
-
|
|
448
|
+
}, null, 8, St)) : d("", !0),
|
|
449
|
+
L(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), n("text", {
|
|
441
450
|
key: 2,
|
|
442
451
|
x: t.midPointLine.x,
|
|
443
452
|
y: t.midPointLine.y + g.value / 3,
|
|
444
|
-
fill: a(
|
|
453
|
+
fill: a(_e)(w(t)),
|
|
445
454
|
"text-anchor": "middle",
|
|
446
455
|
"font-size": g.value
|
|
447
456
|
}, N(a(J)(
|
|
@@ -454,20 +463,20 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
454
463
|
r: l.value.style.weightLabels.rounding
|
|
455
464
|
}),
|
|
456
465
|
{ ...t }
|
|
457
|
-
)), 9,
|
|
466
|
+
)), 9, Mt)) : d("", !0)
|
|
458
467
|
]))), 256))
|
|
459
468
|
])),
|
|
460
|
-
(i(!0), n(
|
|
469
|
+
(i(!0), n(z, null, A(x.value, (t, r) => (i(), n("text", {
|
|
461
470
|
key: `plot_text_${r}`,
|
|
462
|
-
"text-anchor":
|
|
463
|
-
transform:
|
|
464
|
-
x:
|
|
471
|
+
"text-anchor": Ge(t),
|
|
472
|
+
transform: Xe(t),
|
|
473
|
+
x: We(t),
|
|
465
474
|
y: t.y + 5,
|
|
466
475
|
onClick: (f) => pe(t),
|
|
467
476
|
class: "vue-ui-relation-circle-legend",
|
|
468
477
|
"transform-origin": "start",
|
|
469
478
|
"font-weight": c.value.id === t.id ? "900" : "400",
|
|
470
|
-
style:
|
|
479
|
+
style: O(`font-family:${l.value.style.fontFamily};${De(t)}`),
|
|
471
480
|
"font-size": W.value,
|
|
472
481
|
fill: l.value.style.labels.color
|
|
473
482
|
}, N(t.label) + " (" + N(a(J)(
|
|
@@ -480,24 +489,24 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
480
489
|
r: l.value.style.weightLabels.rounding
|
|
481
490
|
}),
|
|
482
491
|
{ ...t }
|
|
483
|
-
)) + ") ", 13,
|
|
484
|
-
(i(!0), n(
|
|
492
|
+
)) + ") ", 13, Et))), 128)),
|
|
493
|
+
(i(!0), n(z, null, A(x.value, (t, r) => (i(), n("circle", {
|
|
485
494
|
cx: t.x,
|
|
486
495
|
cy: t.y,
|
|
487
496
|
key: `plot_${r}`,
|
|
488
|
-
style:
|
|
497
|
+
style: O(Ve(t)),
|
|
489
498
|
class: "vue-ui-relation-circle-plot",
|
|
490
499
|
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
491
500
|
stroke: l.value.style.backgroundColor,
|
|
492
501
|
"stroke-width": "1",
|
|
493
502
|
onClick: (f) => pe(t),
|
|
494
503
|
r: G.value
|
|
495
|
-
}, null, 12,
|
|
504
|
+
}, null, 12, Ft))), 128)),
|
|
496
505
|
h(e.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
497
|
-
], 10,
|
|
498
|
-
e.$slots.watermark ? (i(), n("div",
|
|
506
|
+
], 10, wt)) : d("", !0),
|
|
507
|
+
e.$slots.watermark ? (i(), n("div", Rt, [
|
|
499
508
|
h(e.$slots, "watermark", B(T({ isPrinting: a(ue) || a(oe) })), void 0, !0)
|
|
500
|
-
])) :
|
|
509
|
+
])) : d("", !0),
|
|
501
510
|
e.$slots.source ? (i(), n("div", {
|
|
502
511
|
key: 6,
|
|
503
512
|
ref_key: "source",
|
|
@@ -505,8 +514,8 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
505
514
|
dir: "auto"
|
|
506
515
|
}, [
|
|
507
516
|
h(e.$slots, "source", {}, void 0, !0)
|
|
508
|
-
], 512)) :
|
|
509
|
-
j.value ?
|
|
517
|
+
], 512)) : d("", !0),
|
|
518
|
+
j.value ? d("", !0) : (i(), R(a(Ae), {
|
|
510
519
|
key: 7,
|
|
511
520
|
config: {
|
|
512
521
|
type: "relationCircle",
|
|
@@ -518,9 +527,9 @@ const pt = ["id"], kt = ["xmlns", "viewBox"], bt = ["width", "height"], wt = ["c
|
|
|
518
527
|
}
|
|
519
528
|
}
|
|
520
529
|
}, null, 8, ["config"]))
|
|
521
|
-
], 44,
|
|
530
|
+
], 44, bt));
|
|
522
531
|
}
|
|
523
|
-
},
|
|
532
|
+
}, qt = /* @__PURE__ */ kt(Bt, [["__scopeId", "data-v-8c1db423"]]);
|
|
524
533
|
export {
|
|
525
|
-
|
|
534
|
+
qt as default
|
|
526
535
|
};
|