vue-data-ui 3.2.8 → 3.3.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/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -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 j, renderList as Z, renderSlot as B, mergeProps as O, withKeys as ee } from "vue";
|
|
2
|
-
import { c as te, o as le, f as oe, a as b, d as _, X as z, i as X, j as I } from "./lib-
|
|
3
|
-
import { u as ae, a as ie } from "./useNestedProp-
|
|
2
|
+
import { c as te, o as le, f as oe, a as b, d as _, X as z, i as X, j as I } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { u as ae, a as ie } from "./useNestedProp-mxyyqd0B.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const ne = {
|
|
6
6
|
key: 0,
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
|
|
1
|
+
import { useCssVars as dt, computed as g, defineAsyncComponent as Z, ref as r, toRefs as ft, watch as ee, shallowRef as Le, onMounted as gt, onBeforeUnmount as yt, createElementBlock as n, openBlock as i, unref as o, normalizeStyle as z, createBlock as j, createCommentVNode as f, createSlots as ht, withCtx as M, renderSlot as h, normalizeProps as D, guardReactiveProps as U, normalizeClass as te, createVNode as mt, createElementVNode as pt, Fragment as $, renderList as O, mergeProps as Pe, toDisplayString as G, createTextVNode as ze } from "vue";
|
|
2
|
+
import { c as bt, t as kt, b as wt, p as Oe, e as xt, o as Se, f as Ie, g as $t, X as At, E as Me, a as le, d as se, D as ae } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as _t, u as Ct } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Lt, a as Ee } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as Pt, B as zt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Ot } from "./usePrinter-DYRFiw7X.js";
|
|
7
|
+
import { u as St } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Et } from "./useAutoSizeLabelsInsideViewbox-Csv3pVmh.js";
|
|
11
|
+
import Bt from "./img-6wPuVVtk.js";
|
|
12
|
+
import Ft from "./Title-D17CJXko.js";
|
|
13
|
+
import { t as Tt } from "./themes-Dw-dDudK.js";
|
|
14
|
+
import { _ as Rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Nt = ["id"], jt = ["xmlns", "viewBox"], Dt = ["width", "height"], Ut = ["cx", "cy", "r", "stroke", "stroke-width"], Gt = { key: 1 }, Vt = ["stroke", "d", "stroke-width"], Wt = { style: { "pointer-events": "none" } }, Xt = ["cx", "cy", "fill", "r", "stroke"], Yt = ["x", "y", "fill", "font-size"], qt = { key: 2 }, Ht = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Jt = { style: { "pointer-events": "none" } }, Kt = ["cx", "cy", "fill", "r", "stroke"], Qt = ["x", "y", "fill", "font-size"], Zt = ["text-anchor", "transform", "x", "y", "font-weight", "font-size", "fill", "text-decoration", "onClick", "onMouseenter", "onMouseleave"], el = ["cx", "cy", "fill", "stroke", "r", "onClick", "onMouseenter", "onMouseleave"], tl = {
|
|
15
16
|
key: 4,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
18
|
+
}, ll = {
|
|
18
19
|
__name: "vue-ui-relation-circle",
|
|
19
20
|
props: {
|
|
20
21
|
dataset: {
|
|
@@ -30,14 +31,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
|
-
setup(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
setup(Be, { expose: Fe }) {
|
|
35
|
+
dt((e) => ({
|
|
36
|
+
da1d463e: Ye.value,
|
|
37
|
+
v7926d380: Xe.value,
|
|
38
|
+
a1d88bbc: qe.value
|
|
38
39
|
}));
|
|
39
|
-
const
|
|
40
|
-
...
|
|
40
|
+
const Te = Z(() => import("./PenAndPaper-BxbYiPy4.js")), Re = Z(() => import("./UserOptions-B3vCIe-u.js")), Ne = Z(() => import("./PackageVersion-C9oklnuy.js")), { vue_ui_relation_circle: je } = Lt(), m = Be, De = g(() => !!m.dataset && Object.keys(m.dataset).length), S = r(bt()), ie = r(0), A = r(null), ne = r(null), oe = r(null), ue = r(null), re = r(0), l = r(X()), { loading: ce, FINAL_DATASET: Ue, manualLoading: V } = Pt({
|
|
41
|
+
...ft(m),
|
|
41
42
|
FINAL_CONFIG: l,
|
|
42
43
|
prepareConfig: X,
|
|
43
44
|
skeletonDataset: [
|
|
@@ -49,7 +50,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
49
50
|
{ id: "F", label: "_", relations: ["A"] },
|
|
50
51
|
{ id: "G", label: "_", relations: ["A"] }
|
|
51
52
|
],
|
|
52
|
-
skeletonConfig:
|
|
53
|
+
skeletonConfig: kt({
|
|
53
54
|
defaultConfig: l.value,
|
|
54
55
|
userConfig: {
|
|
55
56
|
userOptions: { show: !1 },
|
|
@@ -63,7 +64,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
})
|
|
66
|
-
}), { userOptionsVisible:
|
|
67
|
+
}), { userOptionsVisible: W, setUserOptionsVisibility: ve, keepUserOptionState: de } = It({ config: l.value }), { svgRef: E } = Mt({ config: l.value.style.title });
|
|
67
68
|
function X() {
|
|
68
69
|
const e = Ee({
|
|
69
70
|
userConfig: m.config,
|
|
@@ -71,22 +72,22 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
71
72
|
});
|
|
72
73
|
return e.theme ? {
|
|
73
74
|
...Ee({
|
|
74
|
-
userConfig:
|
|
75
|
+
userConfig: Tt.vue_ui_relation_circle[e.theme] || m.config,
|
|
75
76
|
defaultConfig: e
|
|
76
77
|
}),
|
|
77
|
-
customPalette:
|
|
78
|
+
customPalette: wt[e.theme] || Oe
|
|
78
79
|
} : e;
|
|
79
80
|
}
|
|
80
81
|
ee(() => m.config, (e) => {
|
|
81
|
-
l.value = X(),
|
|
82
|
+
l.value = X(), W.value = !l.value.userOptions.showOnChartHover, _.value = l.value.style.size, y.value = l.value.style.weightLabels.size, F.value = l.value.style.plot.radius, I.value = l.value.style.labels.fontSize, u.value.height = l.value.style.size, u.value.width = l.value.style.size, be(), re.value += 1;
|
|
82
83
|
}, { deep: !0 }), ee(() => m.dataset, (e) => {
|
|
83
84
|
Array.isArray(e) && e.length > 0 && (V.value = !1);
|
|
84
85
|
}, { deep: !0 });
|
|
85
|
-
const { isPrinting: fe, isImaging:
|
|
86
|
+
const { isPrinting: fe, isImaging: ge, generatePdf: ye, generateImage: he } = Ot({
|
|
86
87
|
elementId: `relation_circle_${S.value}`,
|
|
87
88
|
fileName: l.value.style.title.text || "vue-ui-relation-circle",
|
|
88
89
|
options: l.value.userOptions.print
|
|
89
|
-
}),
|
|
90
|
+
}), Ge = g(() => l.value.userOptions.show && !l.value.style.title.text), me = g(() => xt(l.value.customPalette)), k = r([]), p = r([]), d = r({}), b = r([]), Ve = r(0), B = g(() => Ue.value.slice(0, l.value.style.limit).map((e) => {
|
|
90
91
|
const s = Array.isArray(e.relations) ? e.relations : [];
|
|
91
92
|
return {
|
|
92
93
|
...e,
|
|
@@ -94,31 +95,31 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
94
95
|
relations: s
|
|
95
96
|
};
|
|
96
97
|
}));
|
|
97
|
-
ee(
|
|
98
|
+
ee(B, () => {
|
|
98
99
|
k.value = [], p.value = [], Y(), q();
|
|
99
100
|
});
|
|
100
|
-
const _ = r(l.value.style.size), y = r(l.value.style.weightLabels.size), F = r(l.value.style.plot.radius), I = r(l.value.style.labels.fontSize),
|
|
101
|
+
const _ = r(l.value.style.size), y = r(l.value.style.weightLabels.size), F = r(l.value.style.plot.radius), I = r(l.value.style.labels.fontSize), u = r({
|
|
101
102
|
height: l.value.style.size,
|
|
102
103
|
width: l.value.style.size
|
|
103
|
-
}), C =
|
|
104
|
+
}), C = g({
|
|
104
105
|
get() {
|
|
105
106
|
return _.value * l.value.style.circle.radiusProportion;
|
|
106
107
|
},
|
|
107
108
|
set(e) {
|
|
108
109
|
return e;
|
|
109
110
|
}
|
|
110
|
-
}), We =
|
|
111
|
-
|
|
111
|
+
}), We = g(() => l.value.style.links.curved), Xe = g(() => `${l.value.style.animation.speedMs}ms`), Ye = g(() => C.value * 2), qe = g(() => C.value * 4), w = Le(null), L = Le(null);
|
|
112
|
+
gt(() => {
|
|
112
113
|
be(), document.getElementById(`relation_circle_${S.value}`).addEventListener("click", we);
|
|
113
114
|
});
|
|
114
|
-
const pe =
|
|
115
|
+
const pe = g(() => l.value.debug);
|
|
115
116
|
function be() {
|
|
116
117
|
if (Se(m.dataset) ? (Ie({
|
|
117
118
|
componentName: "VueUiRelationCircle",
|
|
118
119
|
type: "dataset",
|
|
119
120
|
debug: pe.value
|
|
120
121
|
}), V.value = !0) : m.dataset.forEach((e, s) => {
|
|
121
|
-
|
|
122
|
+
$t({
|
|
122
123
|
datasetObject: e,
|
|
123
124
|
requiredAttributes: ["id", "label", "relations", "weights"]
|
|
124
125
|
}).forEach((t) => {
|
|
@@ -131,15 +132,15 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
131
132
|
});
|
|
132
133
|
});
|
|
133
134
|
}), Se(m.dataset) || (V.value = l.value.loading), l.value.responsive) {
|
|
134
|
-
const e =
|
|
135
|
-
const { width: s, height: t } =
|
|
135
|
+
const e = _t(() => {
|
|
136
|
+
const { width: s, height: t } = Ct({
|
|
136
137
|
chart: A.value,
|
|
137
138
|
title: l.value.style.title.text ? ne.value : null,
|
|
138
|
-
source:
|
|
139
|
-
noTitle:
|
|
139
|
+
source: oe.value,
|
|
140
|
+
noTitle: ue.value
|
|
140
141
|
});
|
|
141
142
|
requestAnimationFrame(() => {
|
|
142
|
-
_.value = Math.min(s, t),
|
|
143
|
+
_.value = Math.min(s, t), u.value.width = Math.max(0.1, s), u.value.height = Math.max(0.1, t - 12), C.value = _.value * l.value.style.circle.radiusProportion, k.value = [], p.value = [], Y(), q(), ke(), l.value.responsiveProportionalSizing ? (y.value = ae({
|
|
143
144
|
relator: _.value,
|
|
144
145
|
adjuster: l.value.style.size,
|
|
145
146
|
source: l.value.style.weightLabels.size,
|
|
@@ -165,11 +166,11 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
165
166
|
k.value = [], p.value = [], Y(), q();
|
|
166
167
|
ke();
|
|
167
168
|
}
|
|
168
|
-
|
|
169
|
+
yt(() => {
|
|
169
170
|
document.getElementById(`relation_circle_${S.value}`).removeEventListener("click", we), w.value && (L.value && w.value.unobserve(L.value), w.value.disconnect());
|
|
170
171
|
});
|
|
171
|
-
const { autoSizeLabels: ke } =
|
|
172
|
-
svgRef:
|
|
172
|
+
const { autoSizeLabels: ke } = Et({
|
|
173
|
+
svgRef: E,
|
|
173
174
|
fontSize: l.value.style.labels.fontSize,
|
|
174
175
|
minFontSize: l.value.style.labels.minFontSize,
|
|
175
176
|
sizeRef: I,
|
|
@@ -180,11 +181,11 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
180
181
|
s && Array.from(s.classList).includes("vue-ui-user-options") || s && Array.from(s.classList).includes("vue-ui-user-options-summary") || s && Array.from(s.classList).includes("vue-data-ui-button") || s && Array.from(s.classList).includes("vue-ui-relation-circle-legend") || (d.value = {}, b.value = []);
|
|
181
182
|
}
|
|
182
183
|
function Y() {
|
|
183
|
-
const e = 6.28319 /
|
|
184
|
+
const e = 6.28319 / B.value.length, s = 360 / B.value.length;
|
|
184
185
|
let t = 0, a = 0;
|
|
185
|
-
|
|
186
|
-
const K = c.weights.reduce((
|
|
187
|
-
k.value.push({ x: Q, y:
|
|
186
|
+
B.value.forEach((c, v) => {
|
|
187
|
+
const K = c.weights.reduce((ct, vt) => ct + vt, 0), Q = C.value * Math.cos(t) + u.value.width / 2, rt = C.value * Math.sin(t) + u.value.height / 2 + l.value.style.circle.offsetY;
|
|
188
|
+
k.value.push({ x: Q, y: rt, ...c, color: c.color ? c.color : me.value[v] ? me.value[v] : Oe[v], regAngle: a, totalWeight: K }), t += e, a += s;
|
|
188
189
|
});
|
|
189
190
|
}
|
|
190
191
|
function He(e, s) {
|
|
@@ -218,12 +219,12 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
218
219
|
}
|
|
219
220
|
function Je(e) {
|
|
220
221
|
const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, a = { x: e.x1, y: e.y1 }, c = {
|
|
221
|
-
x:
|
|
222
|
-
y:
|
|
222
|
+
x: u.value.width / 2,
|
|
223
|
+
y: u.value.height / 2 + l.value.style.circle.offsetY
|
|
223
224
|
}, v = 0.5, K = Math.pow(1 - v, 3) * s.x + 3 * Math.pow(1 - v, 2) * v * a.x + 3 * (1 - v) * Math.pow(v, 2) * c.x + Math.pow(v, 3) * t.x, Q = Math.pow(1 - v, 3) * s.y + 3 * Math.pow(1 - v, 2) * v * a.y + 3 * (1 - v) * Math.pow(v, 2) * c.y + Math.pow(v, 3) * t.y;
|
|
224
225
|
return { x: K, y: Q };
|
|
225
226
|
}
|
|
226
|
-
const Ke =
|
|
227
|
+
const Ke = g(() => Math.max(...p.value.map((e) => e.weight)));
|
|
227
228
|
function Qe(e) {
|
|
228
229
|
return Object.hasOwn(d.value, "x") ? b.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
229
230
|
}
|
|
@@ -248,15 +249,15 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
248
249
|
function lt(e) {
|
|
249
250
|
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
250
251
|
}
|
|
251
|
-
const
|
|
252
|
+
const T = r(null);
|
|
252
253
|
function $e(e, s) {
|
|
253
|
-
|
|
254
|
+
T.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s });
|
|
254
255
|
}
|
|
255
256
|
function Ae(e, s) {
|
|
256
|
-
|
|
257
|
+
T.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s });
|
|
257
258
|
}
|
|
258
259
|
function _e(e, s) {
|
|
259
|
-
l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: e, seriesIndex: s }),
|
|
260
|
+
l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: e, seriesIndex: s }), Ve.value = 360 - e.regAngle, d.value.id && e.id === d.value.id ? (d.value = {}, b.value = []) : (d.value = e, b.value = [...e.relations]);
|
|
260
261
|
}
|
|
261
262
|
function H(e) {
|
|
262
263
|
const s = e.weight / Ke.value * l.value.style.links.maxWidth;
|
|
@@ -266,13 +267,13 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
266
267
|
function Ce(e) {
|
|
267
268
|
R.value = e, ie.value += 1;
|
|
268
269
|
}
|
|
269
|
-
const
|
|
270
|
+
const N = r(!1);
|
|
270
271
|
function J() {
|
|
271
|
-
|
|
272
|
+
N.value = !N.value;
|
|
272
273
|
}
|
|
273
274
|
async function st({ scale: e = 2 } = {}) {
|
|
274
275
|
if (!A.value) return;
|
|
275
|
-
const { width: s, height: t } = A.value.getBoundingClientRect(), a = s / t, { imageUri: c, base64: v } = await
|
|
276
|
+
const { width: s, height: t } = A.value.getBoundingClientRect(), a = s / t, { imageUri: c, base64: v } = await Bt({ domElement: A.value, base64: !0, img: !0, scale: e });
|
|
276
277
|
return {
|
|
277
278
|
imageUri: c,
|
|
278
279
|
base64: v,
|
|
@@ -282,10 +283,22 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
282
283
|
aspectRatio: a
|
|
283
284
|
};
|
|
284
285
|
}
|
|
285
|
-
|
|
286
|
+
const at = g(() => l.value.style.backgroundColor), it = g(() => l.value.style.title), { exportSvg: nt, getSvg: ot } = St({
|
|
287
|
+
svg: E,
|
|
288
|
+
title: it,
|
|
289
|
+
backgroundColor: at
|
|
290
|
+
});
|
|
291
|
+
async function ut({ isCb: e }) {
|
|
292
|
+
if (e) {
|
|
293
|
+
const { blob: s, url: t, text: a, dataUrl: c } = await ot();
|
|
294
|
+
l.value.userOptions.callbacks.svg({ blob: s, url: t, text: a, dataUrl: c });
|
|
295
|
+
} else
|
|
296
|
+
nt();
|
|
297
|
+
}
|
|
298
|
+
return Fe({
|
|
286
299
|
getImage: st,
|
|
287
|
-
generatePdf:
|
|
288
|
-
generateImage:
|
|
300
|
+
generatePdf: ye,
|
|
301
|
+
generateImage: he,
|
|
289
302
|
toggleAnnotator: J,
|
|
290
303
|
toggleFullscreen: Ce
|
|
291
304
|
}), (e, s) => (i(), n("div", {
|
|
@@ -294,21 +307,21 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
294
307
|
class: "vue-data-ui-component vue-ui-relation-circle",
|
|
295
308
|
style: z(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
|
|
296
309
|
id: `relation_circle_${S.value}`,
|
|
297
|
-
onMouseenter: s[0] || (s[0] = () =>
|
|
298
|
-
onMouseleave: s[1] || (s[1] = () =>
|
|
310
|
+
onMouseenter: s[0] || (s[0] = () => o(ve)(!0)),
|
|
311
|
+
onMouseleave: s[1] || (s[1] = () => o(ve)(!1))
|
|
299
312
|
}, [
|
|
300
|
-
l.value.userOptions.buttons.annotator ? (i(),
|
|
313
|
+
l.value.userOptions.buttons.annotator ? (i(), j(o(Te), {
|
|
301
314
|
key: 0,
|
|
302
|
-
svgRef:
|
|
315
|
+
svgRef: o(E),
|
|
303
316
|
backgroundColor: l.value.style.backgroundColor,
|
|
304
317
|
color: l.value.style.color,
|
|
305
|
-
active:
|
|
318
|
+
active: N.value,
|
|
306
319
|
onClose: J
|
|
307
320
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
308
|
-
|
|
321
|
+
Ge.value ? (i(), n("div", {
|
|
309
322
|
key: 1,
|
|
310
323
|
ref_key: "noTitle",
|
|
311
|
-
ref:
|
|
324
|
+
ref: ue,
|
|
312
325
|
class: "vue-data-ui-no-title-space",
|
|
313
326
|
style: "height:36px; width: 100%;background:transparent"
|
|
314
327
|
}, null, 512)) : f("", !0),
|
|
@@ -318,7 +331,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
318
331
|
ref: ne,
|
|
319
332
|
style: "width:100%;background:transparent"
|
|
320
333
|
}, [
|
|
321
|
-
(i(),
|
|
334
|
+
(i(), j(Ft, {
|
|
322
335
|
key: `title_${re.value}`,
|
|
323
336
|
config: {
|
|
324
337
|
title: {
|
|
@@ -332,16 +345,17 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
332
345
|
}
|
|
333
346
|
}, null, 8, ["config"]))
|
|
334
347
|
], 512)) : f("", !0),
|
|
335
|
-
l.value.userOptions.show && De.value && (
|
|
348
|
+
l.value.userOptions.show && De.value && (o(de) || o(W)) ? (i(), j(o(Re), {
|
|
336
349
|
ref: "details",
|
|
337
350
|
key: `user_options_${ie.value}`,
|
|
338
351
|
backgroundColor: l.value.style.backgroundColor,
|
|
339
352
|
color: l.value.style.color,
|
|
340
|
-
isPrinting:
|
|
341
|
-
isImaging:
|
|
353
|
+
isPrinting: o(fe),
|
|
354
|
+
isImaging: o(ge),
|
|
342
355
|
uid: S.value,
|
|
343
356
|
hasPdf: l.value.userOptions.buttons.pdf,
|
|
344
357
|
hasImg: l.value.userOptions.buttons.img,
|
|
358
|
+
hasSvg: l.value.userOptions.buttons.svg,
|
|
345
359
|
hasFullscreen: l.value.userOptions.buttons.img,
|
|
346
360
|
hasXls: !1,
|
|
347
361
|
isFullscreen: R.value,
|
|
@@ -349,97 +363,98 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
349
363
|
chartElement: A.value,
|
|
350
364
|
position: l.value.userOptions.position,
|
|
351
365
|
hasAnnotator: l.value.userOptions.buttons.annotator,
|
|
352
|
-
isAnnotation:
|
|
366
|
+
isAnnotation: N.value,
|
|
353
367
|
callbacks: l.value.userOptions.callbacks,
|
|
354
368
|
printScale: l.value.userOptions.print.scale,
|
|
355
369
|
onToggleFullscreen: Ce,
|
|
356
|
-
onGeneratePdf:
|
|
357
|
-
onGenerateImage:
|
|
370
|
+
onGeneratePdf: o(ye),
|
|
371
|
+
onGenerateImage: o(he),
|
|
372
|
+
onGenerateSvg: ut,
|
|
358
373
|
onToggleAnnotator: J,
|
|
359
374
|
style: z({
|
|
360
|
-
visibility:
|
|
375
|
+
visibility: o(de) ? o(W) ? "visible" : "hidden" : "visible"
|
|
361
376
|
})
|
|
362
|
-
},
|
|
377
|
+
}, ht({ _: 2 }, [
|
|
363
378
|
e.$slots.menuIcon ? {
|
|
364
379
|
name: "menuIcon",
|
|
365
380
|
fn: M(({ isOpen: t, color: a }) => [
|
|
366
|
-
|
|
381
|
+
h(e.$slots, "menuIcon", D(U({ isOpen: t, color: a })), void 0, !0)
|
|
367
382
|
]),
|
|
368
383
|
key: "0"
|
|
369
384
|
} : void 0,
|
|
370
385
|
e.$slots.optionPdf ? {
|
|
371
386
|
name: "optionPdf",
|
|
372
387
|
fn: M(() => [
|
|
373
|
-
|
|
388
|
+
h(e.$slots, "optionPdf", {}, void 0, !0)
|
|
374
389
|
]),
|
|
375
390
|
key: "1"
|
|
376
391
|
} : void 0,
|
|
377
392
|
e.$slots.optionImg ? {
|
|
378
393
|
name: "optionImg",
|
|
379
394
|
fn: M(() => [
|
|
380
|
-
|
|
395
|
+
h(e.$slots, "optionImg", {}, void 0, !0)
|
|
381
396
|
]),
|
|
382
397
|
key: "2"
|
|
383
398
|
} : void 0,
|
|
384
399
|
e.$slots.optionFullscreen ? {
|
|
385
400
|
name: "optionFullscreen",
|
|
386
401
|
fn: M(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
387
|
-
|
|
402
|
+
h(e.$slots, "optionFullscreen", D(U({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
388
403
|
]),
|
|
389
404
|
key: "3"
|
|
390
405
|
} : void 0,
|
|
391
406
|
e.$slots.optionAnnotator ? {
|
|
392
407
|
name: "optionAnnotator",
|
|
393
408
|
fn: M(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
394
|
-
|
|
409
|
+
h(e.$slots, "optionAnnotator", D(U({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
395
410
|
]),
|
|
396
411
|
key: "4"
|
|
397
412
|
} : void 0
|
|
398
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
413
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
399
414
|
(i(), n("svg", {
|
|
400
415
|
ref_key: "svgRef",
|
|
401
|
-
ref:
|
|
402
|
-
xmlns:
|
|
416
|
+
ref: E,
|
|
417
|
+
xmlns: o(At),
|
|
403
418
|
class: te([{ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }, "relation-circle"]),
|
|
404
|
-
viewBox: `0 0 ${
|
|
419
|
+
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
405
420
|
width: "100%",
|
|
406
421
|
style: "user-select:none; background:transparent"
|
|
407
422
|
}, [
|
|
408
|
-
|
|
423
|
+
mt(o(Ne)),
|
|
409
424
|
e.$slots["chart-background"] ? (i(), n("foreignObject", {
|
|
410
425
|
key: 0,
|
|
411
426
|
x: 0,
|
|
412
427
|
y: 0,
|
|
413
|
-
width:
|
|
414
|
-
height:
|
|
428
|
+
width: u.value.width <= 0 ? 10 : u.value.width,
|
|
429
|
+
height: u.value.height <= 0 ? 10 : u.value.height,
|
|
415
430
|
style: {
|
|
416
431
|
pointerEvents: "none"
|
|
417
432
|
}
|
|
418
433
|
}, [
|
|
419
|
-
|
|
420
|
-
], 8,
|
|
421
|
-
|
|
422
|
-
cx: (
|
|
423
|
-
cy: (
|
|
434
|
+
h(e.$slots, "chart-background", {}, void 0, !0)
|
|
435
|
+
], 8, Dt)) : f("", !0),
|
|
436
|
+
pt("circle", {
|
|
437
|
+
cx: (u.value.width <= 0 ? 1e-4 : u.value.width) / 2,
|
|
438
|
+
cy: (u.value.height <= 0 ? 1e-4 : u.value.height) / 2 + l.value.style.circle.offsetY,
|
|
424
439
|
r: C.value <= 0 ? 1e-4 : C.value,
|
|
425
440
|
stroke: l.value.style.circle.stroke,
|
|
426
441
|
"stroke-width": l.value.style.circle.strokeWidth,
|
|
427
442
|
fill: "transparent",
|
|
428
443
|
class: "main-circle"
|
|
429
|
-
}, null, 8,
|
|
430
|
-
We.value ? (i(), n("g",
|
|
444
|
+
}, null, 8, Ut),
|
|
445
|
+
We.value ? (i(), n("g", Gt, [
|
|
431
446
|
(i(!0), n($, null, O(p.value, (t, a) => (i(), n("path", {
|
|
432
447
|
key: `relation_${a}`,
|
|
433
448
|
style: z(xe(t)),
|
|
434
449
|
stroke: x(t),
|
|
435
450
|
class: te(["relation", { "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && b.value.includes(t.id) }]),
|
|
436
|
-
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${
|
|
451
|
+
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}`,
|
|
437
452
|
fill: "none",
|
|
438
453
|
"stroke-width": H(t),
|
|
439
454
|
"stroke-linecap": "round"
|
|
440
|
-
}, null, 14,
|
|
441
|
-
(i(!0), n($, null, O(p.value, (t, a) => (i(), n("g",
|
|
442
|
-
P(t) ?
|
|
455
|
+
}, null, 14, Vt))), 128)),
|
|
456
|
+
(i(!0), n($, null, O(p.value, (t, a) => (i(), n("g", Wt, [
|
|
457
|
+
P(t) ? h(e.$slots, "dataLabel", Pe({
|
|
443
458
|
key: 0,
|
|
444
459
|
ref_for: !0
|
|
445
460
|
}, {
|
|
@@ -457,27 +472,27 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
457
472
|
r: y.value,
|
|
458
473
|
stroke: l.value.style.backgroundColor,
|
|
459
474
|
"stroke-width": "1"
|
|
460
|
-
}, null, 8,
|
|
475
|
+
}, null, 8, Xt)) : f("", !0),
|
|
461
476
|
P(t) && !e.$slots.dataLabel ? (i(), n("text", {
|
|
462
477
|
key: 2,
|
|
463
478
|
x: t.midPointBezier.x,
|
|
464
479
|
y: t.midPointBezier.y + y.value / 3,
|
|
465
|
-
fill:
|
|
480
|
+
fill: o(Me)(x(t)),
|
|
466
481
|
"text-anchor": "middle",
|
|
467
482
|
"font-size": y.value
|
|
468
|
-
},
|
|
483
|
+
}, G(o(le)(
|
|
469
484
|
l.value.style.weightLabels.formatter,
|
|
470
485
|
t.weight,
|
|
471
|
-
|
|
486
|
+
o(se)({
|
|
472
487
|
p: l.value.style.weightLabels.prefix,
|
|
473
488
|
v: t.weight,
|
|
474
489
|
s: l.value.style.weightLabels.suffix,
|
|
475
490
|
r: l.value.style.weightLabels.rounding
|
|
476
491
|
}),
|
|
477
492
|
{ ...t }
|
|
478
|
-
)), 9,
|
|
493
|
+
)), 9, Yt)) : f("", !0)
|
|
479
494
|
]))), 256))
|
|
480
|
-
])) : (i(), n("g",
|
|
495
|
+
])) : (i(), n("g", qt, [
|
|
481
496
|
(i(!0), n($, null, O(p.value, (t, a) => (i(), n("line", {
|
|
482
497
|
key: `relation_${a}`,
|
|
483
498
|
stroke: x(t),
|
|
@@ -489,9 +504,9 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
489
504
|
y2: t.y2,
|
|
490
505
|
class: te({ "vue-ui-relation-circle-selected": d.value.hasOwnProperty("id") && b.value.includes(t.id) }),
|
|
491
506
|
"stroke-linecap": "round"
|
|
492
|
-
}, null, 14,
|
|
493
|
-
(i(!0), n($, null, O(p.value, (t, a) => (i(), n("g",
|
|
494
|
-
P(t) ?
|
|
507
|
+
}, null, 14, Ht))), 128)),
|
|
508
|
+
(i(!0), n($, null, O(p.value, (t, a) => (i(), n("g", Jt, [
|
|
509
|
+
P(t) ? h(e.$slots, "dataLabel", Pe({
|
|
495
510
|
key: 0,
|
|
496
511
|
ref_for: !0
|
|
497
512
|
}, {
|
|
@@ -509,25 +524,25 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
509
524
|
r: y.value,
|
|
510
525
|
stroke: l.value.style.backgroundColor,
|
|
511
526
|
"stroke-width": "1"
|
|
512
|
-
}, null, 8,
|
|
527
|
+
}, null, 8, Kt)) : f("", !0),
|
|
513
528
|
P(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), n("text", {
|
|
514
529
|
key: 2,
|
|
515
530
|
x: t.midPointLine.x,
|
|
516
531
|
y: t.midPointLine.y + y.value / 3,
|
|
517
|
-
fill:
|
|
532
|
+
fill: o(Me)(x(t)),
|
|
518
533
|
"text-anchor": "middle",
|
|
519
534
|
"font-size": y.value
|
|
520
|
-
},
|
|
535
|
+
}, G(o(le)(
|
|
521
536
|
l.value.style.weightLabels.formatter,
|
|
522
537
|
t.weight,
|
|
523
|
-
|
|
538
|
+
o(se)({
|
|
524
539
|
p: l.value.style.weightLabels.prefix,
|
|
525
540
|
v: t.weight,
|
|
526
541
|
s: l.value.style.weightLabels.suffix,
|
|
527
542
|
r: l.value.style.weightLabels.rounding
|
|
528
543
|
}),
|
|
529
544
|
{ ...t }
|
|
530
|
-
)), 9,
|
|
545
|
+
)), 9, Qt)) : f("", !0)
|
|
531
546
|
]))), 256))
|
|
532
547
|
])),
|
|
533
548
|
(i(!0), n($, null, O(k.value, (t, a) => (i(), n("text", {
|
|
@@ -542,18 +557,18 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
542
557
|
style: z(`font-family:${l.value.style.fontFamily};${tt(t)}`),
|
|
543
558
|
"font-size": I.value,
|
|
544
559
|
fill: l.value.style.labels.color,
|
|
545
|
-
"text-decoration": a ===
|
|
560
|
+
"text-decoration": a === T.value ? "underline" : void 0,
|
|
546
561
|
onClick: (c) => _e(t, a),
|
|
547
562
|
onMouseenter: (c) => $e(t, a),
|
|
548
563
|
onMouseleave: (c) => Ae(t, a)
|
|
549
564
|
}, [
|
|
550
|
-
|
|
565
|
+
o(ce) ? (i(), n($, { key: 0 }, [
|
|
551
566
|
ze(" -------- ")
|
|
552
567
|
], 64)) : (i(), n($, { key: 1 }, [
|
|
553
|
-
ze(
|
|
568
|
+
ze(G(t.label) + " (" + G(o(le)(
|
|
554
569
|
l.value.style.weightLabels.formatter,
|
|
555
570
|
t.totalWeight,
|
|
556
|
-
|
|
571
|
+
o(se)({
|
|
557
572
|
p: l.value.style.weightLabels.prefix,
|
|
558
573
|
v: t.totalWeight,
|
|
559
574
|
s: l.value.style.weightLabels.suffix,
|
|
@@ -562,7 +577,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
562
577
|
{ ...t }
|
|
563
578
|
)) + ") ", 1)
|
|
564
579
|
], 64))
|
|
565
|
-
], 44,
|
|
580
|
+
], 44, Zt))), 128)),
|
|
566
581
|
(i(!0), n($, null, O(k.value, (t, a) => (i(), n("circle", {
|
|
567
582
|
cx: t.x,
|
|
568
583
|
cy: t.y,
|
|
@@ -572,28 +587,28 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Ft = ["width", "height"], Bt = ["c
|
|
|
572
587
|
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
573
588
|
stroke: l.value.style.backgroundColor,
|
|
574
589
|
"stroke-width": "1",
|
|
575
|
-
r: F.value * (a ===
|
|
590
|
+
r: F.value * (a === T.value ? 2 : 1),
|
|
576
591
|
onClick: (c) => _e(t, a),
|
|
577
592
|
onMouseenter: (c) => $e(t, a),
|
|
578
593
|
onMouseleave: (c) => Ae(t, a)
|
|
579
|
-
}, null, 44,
|
|
580
|
-
|
|
581
|
-
], 10,
|
|
582
|
-
e.$slots.watermark ? (i(), n("div",
|
|
583
|
-
|
|
594
|
+
}, null, 44, el))), 128)),
|
|
595
|
+
h(e.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
596
|
+
], 10, jt)),
|
|
597
|
+
e.$slots.watermark ? (i(), n("div", tl, [
|
|
598
|
+
h(e.$slots, "watermark", D(U({ isPrinting: o(fe) || o(ge) })), void 0, !0)
|
|
584
599
|
])) : f("", !0),
|
|
585
600
|
e.$slots.source ? (i(), n("div", {
|
|
586
601
|
key: 5,
|
|
587
602
|
ref_key: "source",
|
|
588
|
-
ref:
|
|
603
|
+
ref: oe,
|
|
589
604
|
dir: "auto"
|
|
590
605
|
}, [
|
|
591
|
-
|
|
606
|
+
h(e.$slots, "source", {}, void 0, !0)
|
|
592
607
|
], 512)) : f("", !0),
|
|
593
|
-
|
|
594
|
-
], 44,
|
|
608
|
+
o(ce) ? (i(), j(zt, { key: 6 })) : f("", !0)
|
|
609
|
+
], 44, Nt));
|
|
595
610
|
}
|
|
596
|
-
},
|
|
611
|
+
}, ml = /* @__PURE__ */ Rt(ll, [["__scopeId", "data-v-21882da7"]]);
|
|
597
612
|
export {
|
|
598
|
-
|
|
613
|
+
ml as default
|
|
599
614
|
};
|