vue-data-ui 3.2.8 → 3.3.1
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-DLi6NnGD.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.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-DxyZSvDx.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
- package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.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-CovTrBjm.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
- package/dist/useSvgExport-DrjCWun4.js +750 -0
- package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
- package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
- package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
- package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.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,25 +1,26 @@
|
|
|
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
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
1
|
+
import { useCssVars as ea, defineAsyncComponent as W, ref as v, shallowRef as ut, toRefs as ta, watch as Ae, computed as p, onMounted as it, onBeforeUnmount as ct, createElementBlock as i, openBlock as r, unref as d, normalizeStyle as R, normalizeClass as F, createBlock as V, createCommentVNode as h, renderSlot as w, createElementVNode as I, createSlots as Ie, withCtx as x, normalizeProps as de, guardReactiveProps as he, withModifiers as vt, createVNode as fe, Fragment as z, renderList as H, mergeProps as dt, toDisplayString as q, Teleport as aa, resolveDynamicComponent as oa, createTextVNode as ht, nextTick as ft } from "vue";
|
|
2
|
+
import { c as _e, t as la, b as na, p as ge, o as sa, f as gt, g as ra, e as ua, h as ia, X as ca, E as va, d as Pe, H as da, ac as ha, x as fa, y as ga, a as ba } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { t as pa, u as ma } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ya, a as bt } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as ka, B as $a } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as wa } from "./usePrinter-DJ1iH-F_.js";
|
|
7
|
+
import { u as Ca } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Ma } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as xa } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import Aa from "./img-J2dLIr8Y.js";
|
|
11
|
+
import { _ as Ia } from "./Shape-BceHSLHf.js";
|
|
12
|
+
import _a from "./Title-Camz1Lce.js";
|
|
13
|
+
import { t as Pa } from "./themes-Dw-dDudK.js";
|
|
14
|
+
import Sa from "./Legend-By4rru90.js";
|
|
15
|
+
import { _ as Ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Ba = ["id"], Oa = ["id"], La = ["xmlns", "viewBox"], Da = ["width", "height"], Ea = { key: 1 }, Na = ["id", "d"], Ra = { key: 2 }, Fa = ["transform"], za = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Ua = ["d", "fill", "stroke", "stroke-width"], Xa = ["d", "fill"], Va = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick", "onMouseleave"], ja = ["d", "fill", "stroke", "stroke-width"], Ga = ["d", "fill", "stroke", "stroke-width"], Ya = ["d", "fill", "stroke", "stroke-width"], Wa = { key: 0 }, Ha = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], qa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qa = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], Za = ["transform", "fill", "text-anchor", "font-size", "font-weight"], Ja = { key: 1 }, Ka = ["font-size", "font-weight", "fill"], eo = ["href"], to = ["transform", "text-anchor", "font-size", "font-weight", "fill", "innerHTML"], ao = {
|
|
16
17
|
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, oo = ["id"], lo = ["onClick"], no = {
|
|
19
20
|
key: 7,
|
|
20
21
|
"data-dom-to-png-ignore": "",
|
|
21
22
|
class: "reset-wrapper"
|
|
22
|
-
},
|
|
23
|
+
}, so = { style: { "text-align": "right", width: "100%" } }, ro = {
|
|
23
24
|
__name: "vue-ui-chord",
|
|
24
25
|
props: {
|
|
25
26
|
dataset: {
|
|
@@ -36,17 +37,17 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
|
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
emits: ["selectLegend", "selectGroup", "selectRibbon"],
|
|
39
|
-
setup(
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
setup(pt, { expose: mt, emit: yt }) {
|
|
41
|
+
ea((t) => ({
|
|
42
|
+
dd6a513c: t.slicerColor
|
|
42
43
|
}));
|
|
43
|
-
const
|
|
44
|
-
...
|
|
44
|
+
const kt = W(() => import("./vue-ui-accordion-VTP418mC.js")), Se = W(() => import("./BaseIcon-eZbszQrv.js")), $t = W(() => import("./DataTable-yAMEyP6y.js")), wt = W(() => import("./PackageVersion-BfykJm_B.js")), Ct = W(() => import("./PenAndPaper-Bo-lMUik.js")), Mt = W(() => import("./UserOptions-CSja1SGU.js")), xt = W(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_chord: At } = ya(), B = pt, ne = yt, E = v(!!B.dataset && Object.hasOwn(B.dataset, "matrix")), $ = v(_e()), C = v(null), m = v(null), g = v(null), Te = v(0), O = v(null), Be = v(null), Oe = v(null), Le = v(null), De = v(null), be = v(0), pe = v(0), me = v(0), Q = v(!1), U = ut(null), Z = ut(null), Ee = v(!1), K = v(null), ye = v(null), e = v($e()), { loading: Ne, FINAL_DATASET: M, manualLoading: ee } = ka({
|
|
45
|
+
...ta(B),
|
|
45
46
|
FINAL_CONFIG: e,
|
|
46
47
|
prepareConfig: $e,
|
|
47
48
|
callback: () => {
|
|
48
49
|
Promise.resolve().then(async () => {
|
|
49
|
-
await
|
|
50
|
+
await ft(), j.value.showTable = e.value.table.show;
|
|
50
51
|
});
|
|
51
52
|
},
|
|
52
53
|
skeletonDataset: {
|
|
@@ -59,7 +60,7 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
|
|
|
59
60
|
labels: [],
|
|
60
61
|
colors: ["#DBDBDB", "#C4C4C4", "#ADADAD", "#969696"]
|
|
61
62
|
},
|
|
62
|
-
skeletonConfig:
|
|
63
|
+
skeletonConfig: la({
|
|
63
64
|
defaultConfig: e.value,
|
|
64
65
|
userConfig: {
|
|
65
66
|
useCssAnimation: !1,
|
|
@@ -88,65 +89,65 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
|
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
})
|
|
91
|
-
}), { userOptionsVisible: ke, setUserOptionsVisibility:
|
|
92
|
-
elementId: `chord_${
|
|
92
|
+
}), { userOptionsVisible: ke, setUserOptionsVisibility: Re, keepUserOptionState: Fe } = Ma({ config: e.value }), { svgRef: J } = xa({ config: e.value.style.chart.title }), { isPrinting: ze, isImaging: Ue, generatePdf: Xe, generateImage: Ve } = wa({
|
|
93
|
+
elementId: `chord_${$.value}`,
|
|
93
94
|
fileName: e.value.style.chart.title.text || "vue-ui-chord",
|
|
94
95
|
options: e.value.userOptions.print
|
|
95
96
|
}), j = v({
|
|
96
97
|
showTable: e.value.table.show
|
|
97
98
|
});
|
|
98
99
|
function $e() {
|
|
99
|
-
const t =
|
|
100
|
-
userConfig:
|
|
101
|
-
defaultConfig:
|
|
100
|
+
const t = bt({
|
|
101
|
+
userConfig: B.config,
|
|
102
|
+
defaultConfig: At
|
|
102
103
|
});
|
|
103
104
|
return t.theme ? {
|
|
104
|
-
...
|
|
105
|
-
userConfig:
|
|
105
|
+
...bt({
|
|
106
|
+
userConfig: Pa.vue_ui_chord[t.theme] || B.config,
|
|
106
107
|
defaultConfig: t
|
|
107
108
|
}),
|
|
108
|
-
customPalette:
|
|
109
|
+
customPalette: na[t.theme] || ge
|
|
109
110
|
} : t;
|
|
110
111
|
}
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
Ae(() => B.config, (t) => {
|
|
113
|
+
Ne.value || (e.value = $e()), ke.value = !e.value.userOptions.showOnChartHover, we(), be.value += 1, pe.value += 1, me.value += 1, _.value = e.value.initialRotation, j.value.showTable = e.value.table.show;
|
|
113
114
|
}, { deep: !0 });
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
const je = p(() => e.value.debug);
|
|
116
|
+
Ae(() => B.dataset, () => {
|
|
117
|
+
Ge(), we(), be.value += 1, pe.value += 1, me.value += 1;
|
|
117
118
|
});
|
|
118
|
-
function
|
|
119
|
-
if (
|
|
120
|
-
|
|
119
|
+
function Ge() {
|
|
120
|
+
if (sa(B.dataset)) {
|
|
121
|
+
gt({
|
|
121
122
|
componentName: "VueUiChord",
|
|
122
123
|
type: "dataset",
|
|
123
|
-
debug:
|
|
124
|
-
}), E.value = !1,
|
|
124
|
+
debug: je.value
|
|
125
|
+
}), E.value = !1, ee.value = !0;
|
|
125
126
|
return;
|
|
126
127
|
}
|
|
127
|
-
const t =
|
|
128
|
-
datasetObject:
|
|
128
|
+
const t = ra({
|
|
129
|
+
datasetObject: B.dataset,
|
|
129
130
|
requiredAttributes: ["matrix"]
|
|
130
131
|
});
|
|
131
132
|
if (t.length) {
|
|
132
133
|
t.forEach((s) => {
|
|
133
|
-
|
|
134
|
+
gt({
|
|
134
135
|
componentName: "VueUiChord",
|
|
135
136
|
type: "datasetAttribute",
|
|
136
137
|
property: s,
|
|
137
|
-
debug:
|
|
138
|
+
debug: je.value
|
|
138
139
|
});
|
|
139
|
-
}), E.value = !1,
|
|
140
|
+
}), E.value = !1, ee.value = !0;
|
|
140
141
|
return;
|
|
141
142
|
}
|
|
142
|
-
const o =
|
|
143
|
+
const o = B.dataset.matrix;
|
|
143
144
|
if (!Array.isArray(o) || o.length < 2) {
|
|
144
145
|
console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
|
|
145
146
|
|
|
146
147
|
matrix:[
|
|
147
148
|
[1, 1],
|
|
148
149
|
[1, 1]
|
|
149
|
-
]`), E.value = !1,
|
|
150
|
+
]`), E.value = !1, ee.value = !0;
|
|
150
151
|
return;
|
|
151
152
|
}
|
|
152
153
|
const a = o.length, l = o.findIndex((s) => !Array.isArray(s) || s.length !== a);
|
|
@@ -155,22 +156,22 @@ matrix:[
|
|
|
155
156
|
`VueUiChord - Invalid matrix: dataset.matrix at index ${l} has ${Array.isArray(o[l]) ? o[l].length : "NaN"} elements instead of the required ${a}
|
|
156
157
|
|
|
157
158
|
dataset.matrix[${l}] = [${Array.isArray(o[l]) ? o[l].toString() : "invalid"}]`
|
|
158
|
-
), E.value = !1,
|
|
159
|
+
), E.value = !1, ee.value = !0;
|
|
159
160
|
return;
|
|
160
161
|
}
|
|
161
|
-
E.value = !0,
|
|
162
|
+
E.value = !0, ee.value = !1;
|
|
162
163
|
}
|
|
163
164
|
function we() {
|
|
164
|
-
if (
|
|
165
|
-
const t =
|
|
166
|
-
const { width: o, height: a, heightNoTitle: l, heightSource: s, heightTitle: n, heightLegend: u } =
|
|
165
|
+
if (Ge(), e.value.responsive) {
|
|
166
|
+
const t = pa(() => {
|
|
167
|
+
const { width: o, height: a, heightNoTitle: l, heightSource: s, heightTitle: n, heightLegend: u } = ma({
|
|
167
168
|
chart: O.value,
|
|
168
169
|
title: e.value.style.chart.title.text ? Be.value : null,
|
|
169
|
-
legend: e.value.style.chart.legend.show ?
|
|
170
|
-
source:
|
|
171
|
-
noTitle:
|
|
170
|
+
legend: e.value.style.chart.legend.show ? Oe.value : null,
|
|
171
|
+
source: Le.value,
|
|
172
|
+
noTitle: De.value
|
|
172
173
|
}), f = n + u + s + l;
|
|
173
|
-
o < a ? O.value.style.width = "100%" : (O.value.style.height = "100%",
|
|
174
|
+
o < a ? O.value.style.width = "100%" : (O.value.style.height = "100%", J.value.style.height = `calc(100% - ${f}px)`);
|
|
174
175
|
}, 100);
|
|
175
176
|
U.value && (Z.value && U.value.unobserve(Z.value), U.value.disconnect()), U.value = new ResizeObserver(t), Z.value = O.value.parentNode, U.value.observe(Z.value), t();
|
|
176
177
|
}
|
|
@@ -178,7 +179,7 @@ dataset.matrix[${l}] = [${Array.isArray(o[l]) ? o[l].toString() : "invalid"}]`
|
|
|
178
179
|
Q.value = !0;
|
|
179
180
|
}, 500);
|
|
180
181
|
}
|
|
181
|
-
function
|
|
182
|
+
function It() {
|
|
182
183
|
if (!M.value || !Object.hasOwn(M.value, "matrix") || M.value.matrix.length < 2) {
|
|
183
184
|
console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
|
|
184
185
|
|
|
@@ -195,82 +196,82 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
195
196
|
});
|
|
196
197
|
}
|
|
197
198
|
const Ye = v(null);
|
|
198
|
-
|
|
199
|
-
|
|
199
|
+
it(() => {
|
|
200
|
+
Ee.value = !0, we();
|
|
200
201
|
});
|
|
201
202
|
const L = v({
|
|
202
203
|
height: 600,
|
|
203
204
|
width: 600
|
|
204
|
-
}),
|
|
205
|
+
}), _t = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pt = p(() => ua(e.value.customPalette)), b = p(() => ({
|
|
205
206
|
inner: L.value.width * 0.3 * e.value.style.chart.arcs.innerRadiusRatio,
|
|
206
207
|
outer: L.value.width * 0.34 * e.value.style.chart.arcs.outerRadiusRatio
|
|
207
|
-
})),
|
|
208
|
+
})), St = p(() => e.value.style.chart.arcs.padAngle / 100), y = p(() => ({
|
|
208
209
|
matrix: M.value.matrix ?? [[0]],
|
|
209
210
|
labels: M.value.labels ?? [""],
|
|
210
|
-
colors: M.value.colors && Array.isArray(M.value.colors) && M.value.colors.length ? M.value.colors.map((t) =>
|
|
211
|
+
colors: M.value.colors && Array.isArray(M.value.colors) && M.value.colors.length ? M.value.colors.map((t) => ia(t)) : M.value.matrix.map((t, o) => Pt.value[o] || ge[o] || ge[o % ge.length])
|
|
211
212
|
}));
|
|
212
213
|
function Tt(t, o) {
|
|
213
214
|
const a = t.length, l = b.value.inner, s = new Array(a).fill(0);
|
|
214
215
|
let n = 0;
|
|
215
216
|
for (let c = 0; c < a; c += 1)
|
|
216
|
-
for (let
|
|
217
|
-
s[c] += t[c][
|
|
217
|
+
for (let k = 0; k < a; k += 1)
|
|
218
|
+
s[c] += t[c][k], n += t[c][k];
|
|
218
219
|
const u = (2 * Math.PI - o * a) / n, f = [];
|
|
219
220
|
let P = 0;
|
|
220
221
|
for (let c = 0; c < a; c += 1) {
|
|
221
|
-
const
|
|
222
|
+
const k = P, T = k + s[c] * u;
|
|
222
223
|
f.push({
|
|
223
224
|
index: c,
|
|
224
|
-
pattern: `pattern_${
|
|
225
|
-
startAngle:
|
|
226
|
-
endAngle:
|
|
227
|
-
name:
|
|
228
|
-
id:
|
|
229
|
-
color:
|
|
225
|
+
pattern: `pattern_${$.value}_${c}`,
|
|
226
|
+
startAngle: k,
|
|
227
|
+
endAngle: T,
|
|
228
|
+
name: y.value.labels[c],
|
|
229
|
+
id: _e(),
|
|
230
|
+
color: y.value.colors[c],
|
|
230
231
|
proportion: s[c] / n
|
|
231
|
-
}), P =
|
|
232
|
+
}), P = T + o;
|
|
232
233
|
}
|
|
233
|
-
const
|
|
234
|
+
const S = [];
|
|
234
235
|
for (let c = 0; c < a; c += 1) {
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
let
|
|
238
|
-
for (const { j: D, v: X } of
|
|
239
|
-
const
|
|
240
|
-
|
|
236
|
+
const k = t[c].map((D, X) => ({ j: X, v: D }));
|
|
237
|
+
k.sort((D, X) => X.v - D.v);
|
|
238
|
+
let T = f[c].startAngle;
|
|
239
|
+
for (const { j: D, v: X } of k) {
|
|
240
|
+
const Y = T, le = Y + X * u;
|
|
241
|
+
S.push({
|
|
241
242
|
index: c,
|
|
242
243
|
subIndex: D,
|
|
243
|
-
pattern: `pattern_${
|
|
244
|
-
startAngle:
|
|
244
|
+
pattern: `pattern_${$.value}_${c}`,
|
|
245
|
+
startAngle: Y,
|
|
245
246
|
endAngle: le,
|
|
246
247
|
value: X,
|
|
247
|
-
groupName:
|
|
248
|
+
groupName: y.value.labels[c],
|
|
248
249
|
groupId: f[c].id,
|
|
249
|
-
groupColor:
|
|
250
|
-
midAngle: (
|
|
251
|
-
midBaseX: Math.cos((
|
|
252
|
-
midBaseY: Math.sin((
|
|
253
|
-
}),
|
|
250
|
+
groupColor: y.value.colors[c],
|
|
251
|
+
midAngle: (Y + le) / 2,
|
|
252
|
+
midBaseX: Math.cos((Y + le) / 2 - Math.PI / 2) * l,
|
|
253
|
+
midBaseY: Math.sin((Y + le) / 2 - Math.PI / 2) * l
|
|
254
|
+
}), T = le;
|
|
254
255
|
}
|
|
255
256
|
}
|
|
256
257
|
const N = [];
|
|
257
|
-
for (const c of
|
|
258
|
-
const
|
|
259
|
-
(
|
|
258
|
+
for (const c of S) {
|
|
259
|
+
const k = S.find(
|
|
260
|
+
(T) => T.index === c.subIndex && T.subIndex === c.index
|
|
260
261
|
);
|
|
261
|
-
N.push({ source: c, target:
|
|
262
|
+
N.push({ source: c, target: k, id: _e() });
|
|
262
263
|
}
|
|
263
264
|
return { groups: f, chords: N };
|
|
264
265
|
}
|
|
265
|
-
const A =
|
|
266
|
-
const t = Tt(
|
|
267
|
-
return
|
|
266
|
+
const A = p(() => {
|
|
267
|
+
const t = Tt(y.value.matrix, St.value);
|
|
268
|
+
return It(), t.chords.sort(
|
|
268
269
|
(o, a) => Math.max(a.source.value, a.target.value) - Math.max(o.source.value, o.target.value)
|
|
269
270
|
), t;
|
|
270
|
-
}), Bt =
|
|
271
|
+
}), Bt = p(() => {
|
|
271
272
|
const t = b.value.outer + e.value.style.chart.ribbons.labels.offset + 12, a = e.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
|
|
272
|
-
if (
|
|
273
|
-
const n =
|
|
273
|
+
if (m.value) {
|
|
274
|
+
const n = m.value;
|
|
274
275
|
if (n.source.value) {
|
|
275
276
|
const u = String(n.source.value);
|
|
276
277
|
l.push({
|
|
@@ -326,69 +327,69 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
326
327
|
});
|
|
327
328
|
}
|
|
328
329
|
return g.value && s(g.value), C.value && s(C.value.id), l;
|
|
329
|
-
}),
|
|
330
|
+
}), Ot = p(() => {
|
|
330
331
|
const t = Bt.value.map((s) => ({ ...s })).sort((s, n) => s.theta - n.theta), o = e.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
|
|
331
332
|
let a = !0, l = 0;
|
|
332
333
|
for (; a && l++ < 10; ) {
|
|
333
334
|
a = !1;
|
|
334
335
|
for (let f = 1; f < t.length; f += 1) {
|
|
335
|
-
const P = t[f - 1],
|
|
336
|
-
|
|
336
|
+
const P = t[f - 1], S = t[f], N = P.theta + P.w + o;
|
|
337
|
+
S.theta < N && (S.theta = N, a = !0);
|
|
337
338
|
}
|
|
338
339
|
const s = t[0], n = t[t.length - 1], u = n.theta + n.w + o - 2 * Math.PI;
|
|
339
340
|
s.theta < u && (s.theta = u, a = !0);
|
|
340
341
|
}
|
|
341
342
|
return t;
|
|
342
343
|
});
|
|
343
|
-
function
|
|
344
|
-
const s = t - Math.PI / 2, n = o - Math.PI / 2, u = Math.cos(s) * a, f = Math.sin(s) * a, P = Math.cos(n) * a,
|
|
345
|
-
return `M${u},${f} A${a},${a} 0 ${D} 1 ${P},${
|
|
344
|
+
function We(t, o, a, l) {
|
|
345
|
+
const s = t - Math.PI / 2, n = o - Math.PI / 2, u = Math.cos(s) * a, f = Math.sin(s) * a, P = Math.cos(n) * a, S = Math.sin(n) * a, N = Math.cos(n) * l, c = Math.sin(n) * l, k = Math.cos(s) * l, T = Math.sin(s) * l, D = o - t > Math.PI ? 1 : 0;
|
|
346
|
+
return `M${u},${f} A${a},${a} 0 ${D} 1 ${P},${S} L${N},${c} A${l},${l} 0 ${D} 0 ${k},${T} Z`;
|
|
346
347
|
}
|
|
347
348
|
function se(t, o) {
|
|
348
|
-
const a = b.value.inner, l = t.startAngle - Math.PI / 2, s = t.endAngle - Math.PI / 2, n = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, f = Math.cos(l) * a, P = Math.sin(l) * a,
|
|
349
|
-
return `M${f},${P}A${a},${a} 0 ${X} 1 ${
|
|
350
|
-
}
|
|
351
|
-
const We = $(() => _.value * Math.PI / 180);
|
|
352
|
-
function Ot(t) {
|
|
353
|
-
return (t.startAngle + t.endAngle) / 2;
|
|
349
|
+
const a = b.value.inner, l = t.startAngle - Math.PI / 2, s = t.endAngle - Math.PI / 2, n = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, f = Math.cos(l) * a, P = Math.sin(l) * a, S = Math.cos(s) * a, N = Math.sin(s) * a, c = Math.cos(n) * a, k = Math.sin(n) * a, T = Math.cos(u) * a, D = Math.sin(u) * a, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, Y = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
|
|
350
|
+
return `M${f},${P}A${a},${a} 0 ${X} 1 ${S},${N}Q0,0 ${c},${k}A${a},${a} 0 ${Y} 1 ${T},${D}Q0,0 ${f},${P}Z`;
|
|
354
351
|
}
|
|
352
|
+
const He = p(() => _.value * Math.PI / 180);
|
|
355
353
|
function Lt(t) {
|
|
356
|
-
return (
|
|
354
|
+
return (t.startAngle + t.endAngle) / 2;
|
|
357
355
|
}
|
|
358
356
|
function Dt(t) {
|
|
359
|
-
|
|
360
|
-
return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
|
|
357
|
+
return ((Lt(t) + He.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
|
|
361
358
|
}
|
|
362
359
|
function Et(t) {
|
|
360
|
+
let o = t + He.value;
|
|
361
|
+
return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
|
|
362
|
+
}
|
|
363
|
+
function Nt(t) {
|
|
363
364
|
const o = t - Math.PI / 2, a = Math.cos(o) * (b.value.outer + e.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (b.value.outer + e.value.style.chart.arcs.labels.offset + 24);
|
|
364
365
|
return `translate(${a},${l})`;
|
|
365
366
|
}
|
|
366
|
-
function
|
|
367
|
-
const l = t - Math.PI / 2, s = o - Math.PI / 2, n = Math.cos(l) * a, u = Math.sin(l) * a, f = Math.cos(s) * a, P = Math.sin(s) * a,
|
|
368
|
-
return `M${n},${u} A${a},${a} 0 ${
|
|
367
|
+
function Rt(t, o, a) {
|
|
368
|
+
const l = t - Math.PI / 2, s = o - Math.PI / 2, n = Math.cos(l) * a, u = Math.sin(l) * a, f = Math.cos(s) * a, P = Math.sin(s) * a, S = o - t > Math.PI ? 1 : 0;
|
|
369
|
+
return `M${n},${u} A${a},${a} 0 ${S} 1 ${f},${P}`;
|
|
369
370
|
}
|
|
370
371
|
const _ = v(e.value.initialRotation), te = v(!1);
|
|
371
|
-
let
|
|
372
|
-
function
|
|
373
|
-
const o =
|
|
372
|
+
let qe = 0, Qe = 0;
|
|
373
|
+
function Ze(t) {
|
|
374
|
+
const o = J.value.getBoundingClientRect(), a = o.left + o.width / 2, l = o.top + o.height / 2, s = t.clientX ?? t.touches[0].clientX, n = t.clientY ?? t.touches[0].clientY;
|
|
374
375
|
return Math.atan2(n - l, s - a);
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
-
!e.value.enableRotation || ae.value || (t.preventDefault(), te.value = !0,
|
|
377
|
+
function Je(t) {
|
|
378
|
+
!e.value.enableRotation || ae.value || (t.preventDefault(), te.value = !0, qe = _.value, Qe = Ze(t));
|
|
378
379
|
}
|
|
379
380
|
function re(t) {
|
|
380
381
|
if (!te.value) return;
|
|
381
|
-
const o =
|
|
382
|
-
_.value =
|
|
382
|
+
const o = Ze(t);
|
|
383
|
+
_.value = qe + (o - Qe) * 180 / Math.PI;
|
|
383
384
|
}
|
|
384
385
|
function ue() {
|
|
385
386
|
te.value = !1;
|
|
386
387
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
388
|
+
function Ke(t) {
|
|
389
|
+
return ba(
|
|
389
390
|
e.value.style.chart.ribbons.labels.formatter,
|
|
390
391
|
t,
|
|
391
|
-
|
|
392
|
+
Pe({
|
|
392
393
|
p: e.value.style.chart.ribbons.labels.prefix,
|
|
393
394
|
v: t,
|
|
394
395
|
s: e.value.style.chart.ribbons.labels.suffix,
|
|
@@ -396,87 +397,87 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
396
397
|
})
|
|
397
398
|
);
|
|
398
399
|
}
|
|
399
|
-
|
|
400
|
+
it(() => {
|
|
400
401
|
window.addEventListener("mousemove", re), window.addEventListener("mouseup", ue), window.addEventListener("touchmove", re, { passive: !1 }), window.addEventListener("touchend", ue);
|
|
401
|
-
}),
|
|
402
|
+
}), ct(() => {
|
|
402
403
|
window.removeEventListener("mousemove", re), window.removeEventListener("mouseup", ue), window.removeEventListener("touchmove", re), window.removeEventListener("touchend", ue), clearTimeout(Ye.value), U.value && (Z.value && U.value.unobserve(Z.value), U.value.disconnect());
|
|
403
404
|
});
|
|
404
405
|
const ie = v(!1);
|
|
405
|
-
function
|
|
406
|
+
function et(t) {
|
|
406
407
|
ie.value = t, Te.value += 1;
|
|
407
408
|
}
|
|
408
|
-
function Rt(t, o) {
|
|
409
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !g.value && (C.value = t);
|
|
410
|
-
}
|
|
411
409
|
function Ft(t, o) {
|
|
412
|
-
|
|
410
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !g.value && (C.value = t);
|
|
413
411
|
}
|
|
414
412
|
function zt(t, o) {
|
|
415
|
-
|
|
413
|
+
C.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
416
414
|
}
|
|
417
415
|
function Ut(t, o) {
|
|
418
|
-
e.value.events.
|
|
416
|
+
ne("selectGroup", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
419
417
|
}
|
|
420
418
|
function Xt(t, o) {
|
|
421
|
-
|
|
419
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !g.value && (m.value = t);
|
|
422
420
|
}
|
|
423
421
|
function Vt(t, o) {
|
|
424
|
-
|
|
422
|
+
m.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
425
423
|
}
|
|
426
|
-
function
|
|
427
|
-
|
|
424
|
+
function jt(t, o) {
|
|
425
|
+
ne("selectRibbon", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
428
426
|
}
|
|
429
427
|
function tt(t) {
|
|
430
|
-
return !g.value && !C.value && !
|
|
428
|
+
return !g.value && !C.value && !m.value ? 0.8 : (g.value ? g.value === t.source.groupId : C.value ? C.value.id === t.source.groupId : m.value?.id === t.id) ? 1 : 0.1;
|
|
429
|
+
}
|
|
430
|
+
function at(t) {
|
|
431
|
+
return !g.value && !C.value && !m.value || (g.value ? g.value === t.id : C.value ? C.value.id === t.id : [m.value?.source.groupId, m.value?.target.groupId].includes(t.id)) ? 1 : 0.3;
|
|
431
432
|
}
|
|
432
433
|
const ae = v(!1);
|
|
433
434
|
function Ce() {
|
|
434
435
|
ae.value = !ae.value;
|
|
435
436
|
}
|
|
436
|
-
function
|
|
437
|
+
function ot() {
|
|
437
438
|
j.value.showTable = !j.value.showTable;
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
+
function Gt() {
|
|
440
441
|
return A.value;
|
|
441
442
|
}
|
|
442
|
-
const
|
|
443
|
-
function
|
|
443
|
+
const G = v(null);
|
|
444
|
+
function lt() {
|
|
444
445
|
const t = e.value.initialRotation;
|
|
445
|
-
|
|
446
|
+
G.value !== null && cancelAnimationFrame(G.value);
|
|
446
447
|
const o = () => {
|
|
447
|
-
_.value += (t - _.value) * 0.05, Math.abs(_.value - t) < 0.1 ? (_.value = t,
|
|
448
|
+
_.value += (t - _.value) * 0.05, Math.abs(_.value - t) < 0.1 ? (_.value = t, G.value = null) : G.value = requestAnimationFrame(o);
|
|
448
449
|
};
|
|
449
|
-
|
|
450
|
+
G.value = requestAnimationFrame(o);
|
|
450
451
|
}
|
|
451
|
-
|
|
452
|
-
|
|
452
|
+
ct(() => {
|
|
453
|
+
G.value !== null && cancelAnimationFrame(G.value);
|
|
453
454
|
});
|
|
454
|
-
function
|
|
455
|
+
function nt(t) {
|
|
455
456
|
t === g.value ? (g.value = null, ne("selectLegend", null)) : (g.value = t, ne("selectLegend", A.value.groups.find((o) => o.id === t)));
|
|
456
457
|
}
|
|
457
|
-
const
|
|
458
|
+
const Me = p(() => A.value.groups.map((t, o) => ({
|
|
458
459
|
name: t.name,
|
|
459
460
|
color: t.color,
|
|
460
461
|
shape: "circle",
|
|
461
462
|
patternIndex: o,
|
|
462
|
-
pattern: `pattern_${
|
|
463
|
+
pattern: `pattern_${$.value}_${o}`,
|
|
463
464
|
id: t.id,
|
|
464
|
-
select: () =>
|
|
465
|
+
select: () => nt(t.id),
|
|
465
466
|
opacity: g.value ? g.value === t.id ? 1 : 0.3 : 1
|
|
466
|
-
}))), Yt =
|
|
467
|
+
}))), Yt = p(() => ({
|
|
467
468
|
cy: "chord-div-legend",
|
|
468
469
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
469
470
|
color: e.value.style.chart.legend.color,
|
|
470
471
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
471
472
|
paddingBottom: 12,
|
|
472
473
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
473
|
-
})), ce =
|
|
474
|
+
})), ce = p(() => {
|
|
474
475
|
const t = A.value.groups.map((a, l) => ({
|
|
475
476
|
name: a.name || l,
|
|
476
477
|
color: a.color
|
|
477
|
-
})), o =
|
|
478
|
+
})), o = y.value.matrix;
|
|
478
479
|
return { head: t, body: o };
|
|
479
|
-
}), ve =
|
|
480
|
+
}), ve = p(() => {
|
|
480
481
|
const t = [{ name: "", color: null }, ...ce.value.head], o = ce.value.body.map((s, n) => [
|
|
481
482
|
ce.value.head[n],
|
|
482
483
|
...ce.value.body[n]
|
|
@@ -500,25 +501,25 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
500
501
|
config: a
|
|
501
502
|
};
|
|
502
503
|
});
|
|
503
|
-
function
|
|
504
|
-
|
|
505
|
-
const o =
|
|
506
|
-
[
|
|
504
|
+
function xe(t = null) {
|
|
505
|
+
ft(() => {
|
|
506
|
+
const o = y.value.matrix.map((s, n) => [
|
|
507
|
+
[y.value.labels[n] || n],
|
|
507
508
|
s
|
|
508
509
|
]), a = [
|
|
509
510
|
[e.value.style.chart.title.text],
|
|
510
511
|
[e.value.style.chart.title.subtitle.text],
|
|
511
512
|
[
|
|
512
513
|
[""],
|
|
513
|
-
...
|
|
514
|
+
...y.value.labels.map((s, n) => [s || n])
|
|
514
515
|
]
|
|
515
|
-
].concat(o), l =
|
|
516
|
-
t ? t(l) :
|
|
516
|
+
].concat(o), l = fa(a);
|
|
517
|
+
t ? t(l) : ga({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-chord" });
|
|
517
518
|
});
|
|
518
519
|
}
|
|
519
|
-
async function
|
|
520
|
+
async function Wt({ scale: t = 2 } = {}) {
|
|
520
521
|
if (!O.value) return;
|
|
521
|
-
const { width: o, height: a } = O.value.getBoundingClientRect(), l = o / a, { imageUri: s, base64: n } = await
|
|
522
|
+
const { width: o, height: a } = O.value.getBoundingClientRect(), l = o / a, { imageUri: s, base64: n } = await Aa({ domElement: O.value, base64: !0, img: !0, scale: t });
|
|
522
523
|
return {
|
|
523
524
|
imageUri: s,
|
|
524
525
|
base64: n,
|
|
@@ -528,18 +529,18 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
528
529
|
aspectRatio: l
|
|
529
530
|
};
|
|
530
531
|
}
|
|
531
|
-
function
|
|
532
|
-
return `${
|
|
532
|
+
function Ht(t, o) {
|
|
533
|
+
return `${y.value.labels[o]}${e.value.style.chart.arcs.labels.showPercentage ? Pe({
|
|
533
534
|
p: " (",
|
|
534
535
|
v: isNaN(t.proportion) ? 0 : t.proportion * 100,
|
|
535
536
|
s: "%)",
|
|
536
537
|
r: e.value.style.chart.arcs.labels.roundingPercentage
|
|
537
538
|
}) : ""}`;
|
|
538
539
|
}
|
|
539
|
-
const oe =
|
|
540
|
+
const oe = p(() => {
|
|
540
541
|
const t = e.value.table.useDialog && !e.value.table.show, o = j.value.showTable;
|
|
541
542
|
return {
|
|
542
|
-
component: t ?
|
|
543
|
+
component: t ? xt : kt,
|
|
543
544
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
544
545
|
props: t ? {
|
|
545
546
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -566,21 +567,36 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
566
567
|
}
|
|
567
568
|
};
|
|
568
569
|
});
|
|
569
|
-
|
|
570
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
570
|
+
Ae(() => j.value.showTable, (t) => {
|
|
571
|
+
e.value.table.show || (t && e.value.table.useDialog && K.value ? K.value.open() : "close" in K.value && K.value.close());
|
|
571
572
|
});
|
|
572
573
|
function st() {
|
|
573
574
|
j.value.showTable = !1, ye.value && ye.value.setTableIconState(!1);
|
|
574
575
|
}
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
576
|
+
const qt = p(() => e.value.style.chart.backgroundColor), Qt = p(() => e.value.style.chart.legend), Zt = p(() => e.value.style.chart.title), { exportSvg: Jt, getSvg: Kt } = Ca({
|
|
577
|
+
svg: J,
|
|
578
|
+
title: Zt,
|
|
579
|
+
legend: Qt,
|
|
580
|
+
legendItems: Me,
|
|
581
|
+
backgroundColor: qt
|
|
582
|
+
});
|
|
583
|
+
async function rt({ isCb: t }) {
|
|
584
|
+
if (t) {
|
|
585
|
+
const { blob: o, url: a, text: l, dataUrl: s } = await Kt();
|
|
586
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: a, text: l, dataUrl: s });
|
|
587
|
+
} else
|
|
588
|
+
Jt();
|
|
589
|
+
}
|
|
590
|
+
return mt({
|
|
591
|
+
getData: Gt,
|
|
592
|
+
getImage: Wt,
|
|
593
|
+
generateCsv: xe,
|
|
594
|
+
generateImage: Ve,
|
|
595
|
+
generateSvg: rt,
|
|
596
|
+
generatePdf: Xe,
|
|
581
597
|
toggleAnnotator: Ce,
|
|
582
|
-
toggleTable:
|
|
583
|
-
toggleFullscreen:
|
|
598
|
+
toggleTable: ot,
|
|
599
|
+
toggleFullscreen: et
|
|
584
600
|
}), (t, o) => (r(), i("div", {
|
|
585
601
|
ref_key: "chordChart",
|
|
586
602
|
ref: O,
|
|
@@ -591,23 +607,23 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
591
607
|
"vue-data-ui-responsive": e.value.responsive
|
|
592
608
|
}),
|
|
593
609
|
style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
594
|
-
id: `chord_${
|
|
595
|
-
onMouseenter: o[2] || (o[2] = () => d(
|
|
596
|
-
onMouseleave: o[3] || (o[3] = () => d(
|
|
610
|
+
id: `chord_${$.value}`,
|
|
611
|
+
onMouseenter: o[2] || (o[2] = () => d(Re)(!0)),
|
|
612
|
+
onMouseleave: o[3] || (o[3] = () => d(Re)(!1))
|
|
597
613
|
}, [
|
|
598
|
-
e.value.userOptions.buttons.annotator && d(
|
|
614
|
+
e.value.userOptions.buttons.annotator && d(J) ? (r(), V(d(Ct), {
|
|
599
615
|
key: 0,
|
|
600
616
|
color: e.value.style.chart.color,
|
|
601
617
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
602
618
|
active: ae.value,
|
|
603
|
-
svgRef: d(
|
|
619
|
+
svgRef: d(J),
|
|
604
620
|
onClose: Ce
|
|
605
621
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : h("", !0),
|
|
606
622
|
w(t.$slots, "userConfig", {}, void 0, !0),
|
|
607
|
-
|
|
623
|
+
_t.value ? (r(), i("div", {
|
|
608
624
|
key: 1,
|
|
609
625
|
ref_key: "noTitle",
|
|
610
|
-
ref:
|
|
626
|
+
ref: De,
|
|
611
627
|
class: "vue-data-ui-no-title-space",
|
|
612
628
|
style: "height:36px; width: 100%;background:transparent"
|
|
613
629
|
}, null, 512)) : h("", !0),
|
|
@@ -617,7 +633,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
617
633
|
ref: Be,
|
|
618
634
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
619
635
|
}, [
|
|
620
|
-
(r(), V(
|
|
636
|
+
(r(), V(_a, {
|
|
621
637
|
key: `title_${be.value}`,
|
|
622
638
|
config: {
|
|
623
639
|
title: {
|
|
@@ -632,20 +648,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
632
648
|
}, null, 8, ["config"]))
|
|
633
649
|
], 512)) : h("", !0),
|
|
634
650
|
I("div", {
|
|
635
|
-
id: `legend-top-${
|
|
636
|
-
}, null, 8,
|
|
637
|
-
e.value.userOptions.show && E.value && (d(
|
|
651
|
+
id: `legend-top-${$.value}`
|
|
652
|
+
}, null, 8, Oa),
|
|
653
|
+
e.value.userOptions.show && E.value && (d(Fe) || d(ke)) ? (r(), V(d(Mt), {
|
|
638
654
|
ref_key: "userOptionsRef",
|
|
639
655
|
ref: ye,
|
|
640
656
|
key: `user_option_${Te.value}`,
|
|
641
657
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
642
658
|
color: e.value.style.chart.color,
|
|
643
|
-
isPrinting: d(
|
|
644
|
-
isImaging: d(
|
|
645
|
-
uid:
|
|
659
|
+
isPrinting: d(ze),
|
|
660
|
+
isImaging: d(Ue),
|
|
661
|
+
uid: $.value,
|
|
646
662
|
hasTooltip: !1,
|
|
647
663
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
648
664
|
hasImg: e.value.userOptions.buttons.img,
|
|
665
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
649
666
|
hasXls: e.value.userOptions.buttons.csv,
|
|
650
667
|
hasTable: e.value.userOptions.buttons.table,
|
|
651
668
|
hasLabel: !1,
|
|
@@ -659,16 +676,17 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
659
676
|
callbacks: e.value.userOptions.callbacks,
|
|
660
677
|
printScale: e.value.userOptions.print.scale,
|
|
661
678
|
tableDialog: e.value.table.useDialog,
|
|
662
|
-
onToggleFullscreen:
|
|
663
|
-
onGeneratePdf: d(
|
|
664
|
-
onGenerateCsv:
|
|
665
|
-
onGenerateImage: d(
|
|
666
|
-
|
|
679
|
+
onToggleFullscreen: et,
|
|
680
|
+
onGeneratePdf: d(Xe),
|
|
681
|
+
onGenerateCsv: xe,
|
|
682
|
+
onGenerateImage: d(Ve),
|
|
683
|
+
onGenerateSvg: rt,
|
|
684
|
+
onToggleTable: ot,
|
|
667
685
|
onToggleAnnotator: Ce,
|
|
668
686
|
style: R({
|
|
669
|
-
visibility: d(
|
|
687
|
+
visibility: d(Fe) ? d(ke) ? "visible" : "hidden" : "visible"
|
|
670
688
|
})
|
|
671
|
-
},
|
|
689
|
+
}, Ie({ _: 2 }, [
|
|
672
690
|
t.$slots.menuIcon ? {
|
|
673
691
|
name: "menuIcon",
|
|
674
692
|
fn: x(({ isOpen: a, color: l }) => [
|
|
@@ -718,21 +736,21 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
718
736
|
]),
|
|
719
737
|
key: "6"
|
|
720
738
|
} : void 0
|
|
721
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
739
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
722
740
|
(r(), i("svg", {
|
|
723
|
-
xmlns: d(
|
|
741
|
+
xmlns: d(ca),
|
|
724
742
|
ref_key: "svgRef",
|
|
725
|
-
ref:
|
|
743
|
+
ref: J,
|
|
726
744
|
viewBox: `0 0 ${L.value.width} ${L.value.height}`,
|
|
727
745
|
preserveAspectRatio: "xMidYMid meet",
|
|
728
746
|
style: {
|
|
729
747
|
overflow: "visible"
|
|
730
748
|
},
|
|
731
749
|
class: F({ "vue-ui-chord-rotating": te.value, "vue-ui-chord-idle": !te.value }),
|
|
732
|
-
onMousedown:
|
|
733
|
-
onTouchstart:
|
|
750
|
+
onMousedown: vt(Je, ["prevent"]),
|
|
751
|
+
onTouchstart: vt(Je, ["prevent"])
|
|
734
752
|
}, [
|
|
735
|
-
fe(d(
|
|
753
|
+
fe(d(wt)),
|
|
736
754
|
t.$slots["chart-background"] ? (r(), i("foreignObject", {
|
|
737
755
|
key: 0,
|
|
738
756
|
x: 0,
|
|
@@ -744,22 +762,22 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
744
762
|
}
|
|
745
763
|
}, [
|
|
746
764
|
w(t.$slots, "chart-background", {}, void 0, !0)
|
|
747
|
-
], 8,
|
|
748
|
-
e.value.style.chart.arcs.labels.curved ? (r(), i("defs",
|
|
765
|
+
], 8, Da)) : h("", !0),
|
|
766
|
+
e.value.style.chart.arcs.labels.curved ? (r(), i("defs", Ea, [
|
|
749
767
|
(r(!0), i(z, null, H(A.value.groups, (a, l) => (r(), i("path", {
|
|
750
768
|
key: `labelPath-${l}`,
|
|
751
|
-
id: `labelPath-${l}_${
|
|
752
|
-
d:
|
|
769
|
+
id: `labelPath-${l}_${$.value}`,
|
|
770
|
+
d: Rt(
|
|
753
771
|
a.startAngle,
|
|
754
772
|
a.endAngle,
|
|
755
773
|
(b.value.inner + b.value.outer) / 2 + e.value.style.chart.arcs.labels.offset
|
|
756
774
|
),
|
|
757
775
|
fill: "none"
|
|
758
|
-
}, null, 8,
|
|
776
|
+
}, null, 8, Na))), 128))
|
|
759
777
|
])) : h("", !0),
|
|
760
|
-
t.$slots.pattern ? (r(), i("g",
|
|
778
|
+
t.$slots.pattern ? (r(), i("g", Ra, [
|
|
761
779
|
(r(!0), i(z, null, H(A.value.groups, (a, l) => (r(), i("defs", null, [
|
|
762
|
-
w(t.$slots, "pattern",
|
|
780
|
+
w(t.$slots, "pattern", dt({ ref_for: !0 }, { seriesIndex: a.index, patternId: `pattern_${$.value}_${l}` }), void 0, !0)
|
|
763
781
|
]))), 256))
|
|
764
782
|
])) : h("", !0),
|
|
765
783
|
I("g", {
|
|
@@ -769,28 +787,28 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
769
787
|
(r(), i("path", {
|
|
770
788
|
class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
|
|
771
789
|
key: `arc-${l}`,
|
|
772
|
-
d:
|
|
790
|
+
d: We(
|
|
773
791
|
a.startAngle,
|
|
774
792
|
a.endAngle,
|
|
775
793
|
b.value.outer,
|
|
776
794
|
b.value.inner
|
|
777
795
|
),
|
|
778
|
-
fill:
|
|
796
|
+
fill: y.value.colors[l],
|
|
779
797
|
stroke: e.value.style.chart.arcs.stroke,
|
|
780
798
|
"stroke-width": e.value.style.chart.arcs.strokeWidth,
|
|
781
799
|
"stroke-linecap": "round",
|
|
782
800
|
"stroke-linejoin": "round",
|
|
783
801
|
style: R({
|
|
784
|
-
opacity:
|
|
802
|
+
opacity: at(a)
|
|
785
803
|
}),
|
|
786
|
-
onMouseenter: (s) =>
|
|
787
|
-
onMouseleave: (s) =>
|
|
788
|
-
onClick: (s) =>
|
|
789
|
-
}, null, 46,
|
|
804
|
+
onMouseenter: (s) => Ft(a, l),
|
|
805
|
+
onMouseleave: (s) => zt(a, l),
|
|
806
|
+
onClick: (s) => Ut(a, l)
|
|
807
|
+
}, null, 46, za)),
|
|
790
808
|
t.$slots.pattern ? (r(), i("path", {
|
|
791
809
|
class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
|
|
792
810
|
key: `arc-${l}`,
|
|
793
|
-
d:
|
|
811
|
+
d: We(
|
|
794
812
|
a.startAngle,
|
|
795
813
|
a.endAngle,
|
|
796
814
|
b.value.outer,
|
|
@@ -802,10 +820,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
802
820
|
"stroke-linecap": "round",
|
|
803
821
|
"stroke-linejoin": "round",
|
|
804
822
|
style: R({
|
|
805
|
-
opacity:
|
|
823
|
+
opacity: at(a),
|
|
806
824
|
pointerEvents: "none"
|
|
807
825
|
})
|
|
808
|
-
}, null, 14,
|
|
826
|
+
}, null, 14, Ua)) : h("", !0)
|
|
809
827
|
]))), 256)),
|
|
810
828
|
I("g", null, [
|
|
811
829
|
(r(!0), i(z, null, H(C.value ? A.value.chords.filter((a) => a.source.groupId === C.value.id) : g.value ? A.value.chords.filter((a) => a.source.groupId === g.value) : A.value.chords, (a, l) => (r(), i(z, {
|
|
@@ -817,50 +835,50 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
817
835
|
d: se(a.source, a.target),
|
|
818
836
|
fill: e.value.style.chart.backgroundColor,
|
|
819
837
|
style: R({ opacity: e.value.style.chart.ribbons.underlayerOpacity })
|
|
820
|
-
}, null, 14,
|
|
838
|
+
}, null, 14, Xa)) : h("", !0),
|
|
821
839
|
a.source.value ? (r(), i("path", {
|
|
822
840
|
key: 1,
|
|
823
841
|
class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": e.value.useCssAnimation && !Q.value }),
|
|
824
842
|
d: se(a.source, a.target),
|
|
825
|
-
fill:
|
|
843
|
+
fill: y.value.colors[a.source.index],
|
|
826
844
|
stroke: e.value.style.chart.ribbons.stroke,
|
|
827
845
|
"stroke-width": e.value.style.chart.ribbons.strokeWidth,
|
|
828
846
|
"stroke-linecap": "round",
|
|
829
847
|
"stroke-linejoin": "round",
|
|
830
|
-
style: R({ opacity:
|
|
831
|
-
onMouseenter: (s) =>
|
|
848
|
+
style: R({ opacity: tt(a) }),
|
|
849
|
+
onMouseenter: (s) => Xt({
|
|
832
850
|
...a,
|
|
833
851
|
path: se(a.source, a.target),
|
|
834
|
-
color:
|
|
852
|
+
color: y.value.colors[a.source.index]
|
|
835
853
|
}, l),
|
|
836
|
-
onClick: (s) =>
|
|
854
|
+
onClick: (s) => jt({
|
|
837
855
|
...a,
|
|
838
|
-
color:
|
|
856
|
+
color: y.value.colors[a.source.index]
|
|
839
857
|
}, l),
|
|
840
|
-
onMouseleave: (s) =>
|
|
858
|
+
onMouseleave: (s) => Vt({
|
|
841
859
|
...a,
|
|
842
|
-
color:
|
|
860
|
+
color: y.value.colors[a.source.index]
|
|
843
861
|
}, l)
|
|
844
|
-
}, null, 46,
|
|
862
|
+
}, null, 46, Va)) : h("", !0),
|
|
845
863
|
a.source.value && t.$slots.pattern ? (r(), i("path", {
|
|
846
864
|
key: 2,
|
|
847
865
|
class: F({ "vue-ui-chord-ribbon": !0, "vue-ui-chord-ribbon-animated": e.value.useCssAnimation && !Q.value }),
|
|
848
866
|
d: se(a.source, a.target),
|
|
849
|
-
fill: `url(#pattern_${
|
|
867
|
+
fill: `url(#pattern_${$.value}_${a.source.index})`,
|
|
850
868
|
stroke: e.value.style.chart.ribbons.stroke,
|
|
851
869
|
"stroke-width": e.value.style.chart.ribbons.strokeWidth,
|
|
852
870
|
"stroke-linecap": "round",
|
|
853
871
|
"stroke-linejoin": "round",
|
|
854
872
|
style: R({
|
|
855
|
-
opacity:
|
|
873
|
+
opacity: tt(a),
|
|
856
874
|
pointerEvents: "none"
|
|
857
875
|
})
|
|
858
|
-
}, null, 14,
|
|
876
|
+
}, null, 14, ja)) : h("", !0)
|
|
859
877
|
], 64))), 128)),
|
|
860
|
-
|
|
878
|
+
m.value ? (r(), i("path", {
|
|
861
879
|
key: 0,
|
|
862
|
-
d:
|
|
863
|
-
fill:
|
|
880
|
+
d: m.value.path,
|
|
881
|
+
fill: m.value.color,
|
|
864
882
|
stroke: e.value.style.chart.ribbons.stroke,
|
|
865
883
|
"stroke-width": e.value.style.chart.ribbons.strokeWidth,
|
|
866
884
|
"stroke-linecap": "round",
|
|
@@ -869,11 +887,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
869
887
|
style: {
|
|
870
888
|
pointerEvents: "none"
|
|
871
889
|
}
|
|
872
|
-
}, null, 8,
|
|
873
|
-
|
|
890
|
+
}, null, 8, Ga)) : h("", !0),
|
|
891
|
+
m.value && t.$slots.pattern ? (r(), i("path", {
|
|
874
892
|
key: 1,
|
|
875
|
-
d:
|
|
876
|
-
fill: `url(#${
|
|
893
|
+
d: m.value.path,
|
|
894
|
+
fill: `url(#${m.value.source.pattern})`,
|
|
877
895
|
stroke: e.value.style.chart.ribbons.stroke,
|
|
878
896
|
"stroke-width": e.value.style.chart.ribbons.strokeWidth,
|
|
879
897
|
"stroke-linecap": "round",
|
|
@@ -882,10 +900,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
882
900
|
style: {
|
|
883
901
|
pointerEvents: "none"
|
|
884
902
|
}
|
|
885
|
-
}, null, 8,
|
|
903
|
+
}, null, 8, Ya)) : h("", !0)
|
|
886
904
|
]),
|
|
887
|
-
(C.value ||
|
|
888
|
-
(r(!0), i(z, null, H(
|
|
905
|
+
(C.value || m.value || g.value) && e.value.style.chart.ribbons.labels.show ? (r(), i("g", Wa, [
|
|
906
|
+
(r(!0), i(z, null, H(Ot.value, (a) => (r(), i(z, {
|
|
889
907
|
key: a.id
|
|
890
908
|
}, [
|
|
891
909
|
I("line", {
|
|
@@ -896,7 +914,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
896
914
|
stroke: e.value.style.chart.backgroundColor,
|
|
897
915
|
"stroke-width": e.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
|
|
898
916
|
"pointer-events": "none"
|
|
899
|
-
}, null, 8,
|
|
917
|
+
}, null, 8, Ha),
|
|
900
918
|
I("line", {
|
|
901
919
|
x1: a.midBaseX,
|
|
902
920
|
y1: a.midBaseY,
|
|
@@ -905,7 +923,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
905
923
|
stroke: e.value.style.chart.ribbons.labels.connector.stroke,
|
|
906
924
|
"stroke-width": e.value.style.chart.ribbons.labels.connector.strokeWidth,
|
|
907
925
|
"pointer-events": "none"
|
|
908
|
-
}, null, 8,
|
|
926
|
+
}, null, 8, qa),
|
|
909
927
|
e.value.style.chart.ribbons.labels.marker.show ? (r(), i("circle", {
|
|
910
928
|
key: 0,
|
|
911
929
|
cx: Math.cos(a.theta - Math.PI / 2) * (b.value.outer + e.value.style.chart.ribbons.labels.offset + 12),
|
|
@@ -915,7 +933,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
915
933
|
"stroke-width": e.value.style.chart.ribbons.labels.marker.strokeWidth,
|
|
916
934
|
fill: a.groupColor,
|
|
917
935
|
"pointer-events": "none"
|
|
918
|
-
}, null, 8,
|
|
936
|
+
}, null, 8, Qa)) : h("", !0),
|
|
919
937
|
I("text", {
|
|
920
938
|
transform: `
|
|
921
939
|
translate(
|
|
@@ -924,113 +942,113 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
924
942
|
) rotate(${-_.value})
|
|
925
943
|
`,
|
|
926
944
|
fill: e.value.style.chart.ribbons.labels.useSerieColor ? a.groupColor : e.value.style.chart.ribbons.labels.color,
|
|
927
|
-
"text-anchor":
|
|
945
|
+
"text-anchor": Et(a.theta),
|
|
928
946
|
"font-size": e.value.style.chart.ribbons.labels.fontSize,
|
|
929
947
|
"font-weight": e.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
930
948
|
dy: ".35em",
|
|
931
949
|
"pointer-events": "none"
|
|
932
|
-
}, q(
|
|
950
|
+
}, q(Ke(a.value)), 9, Za)
|
|
933
951
|
], 64))), 128))
|
|
934
952
|
])) : h("", !0),
|
|
935
|
-
e.value.style.chart.arcs.labels.show ? (r(), i("g",
|
|
953
|
+
e.value.style.chart.arcs.labels.show ? (r(), i("g", Ja, [
|
|
936
954
|
e.value.style.chart.arcs.labels.curved ? (r(!0), i(z, { key: 0 }, H(A.value.groups, (a, l) => (r(), i("text", {
|
|
937
955
|
class: "vue-ui-chord-label-curved",
|
|
938
956
|
key: `curved-label-${l}`,
|
|
939
957
|
"font-size": e.value.style.chart.arcs.labels.fontSize,
|
|
940
958
|
"font-weight": e.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
941
|
-
fill: e.value.style.chart.arcs.labels.adaptColorToBackground ? d(
|
|
959
|
+
fill: e.value.style.chart.arcs.labels.adaptColorToBackground ? d(va)(y.value.colors[l]) : e.value.style.chart.arcs.labels.color
|
|
942
960
|
}, [
|
|
943
961
|
I("textPath", {
|
|
944
|
-
href: `#labelPath-${l}_${
|
|
962
|
+
href: `#labelPath-${l}_${$.value}`,
|
|
945
963
|
startOffset: "50%",
|
|
946
964
|
"text-anchor": "middle"
|
|
947
|
-
}, q(
|
|
965
|
+
}, q(y.value.labels[l]) + q(e.value.style.chart.arcs.labels.showPercentage ? d(Pe)({
|
|
948
966
|
p: " (",
|
|
949
967
|
v: isNaN(a.proportion) ? 0 : a.proportion * 100,
|
|
950
968
|
s: "%)",
|
|
951
969
|
r: e.value.style.chart.arcs.labels.roundingPercentage
|
|
952
|
-
}) : ""), 9,
|
|
953
|
-
], 8,
|
|
970
|
+
}) : ""), 9, eo)
|
|
971
|
+
], 8, Ka))), 128)) : !C.value && !m.value && !g.value ? (r(!0), i(z, { key: 1 }, H(A.value.groups, (a, l) => (r(), i("text", {
|
|
954
972
|
class: "vue-ui-chord-label-straight",
|
|
955
973
|
key: `label-${l}`,
|
|
956
974
|
transform: `
|
|
957
|
-
${
|
|
975
|
+
${Nt((a.startAngle + a.endAngle) / 2)}
|
|
958
976
|
rotate(${-_.value})
|
|
959
977
|
`,
|
|
960
978
|
dy: ".35em",
|
|
961
|
-
"text-anchor":
|
|
979
|
+
"text-anchor": Dt(a) > Math.PI ? "end" : "start",
|
|
962
980
|
"font-size": e.value.style.chart.arcs.labels.fontSize,
|
|
963
981
|
"font-weight": e.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
964
982
|
fill: e.value.style.chart.arcs.labels.color,
|
|
965
|
-
innerHTML: d(
|
|
966
|
-
content: d(
|
|
983
|
+
innerHTML: d(da)({
|
|
984
|
+
content: d(ha)(Ht(a, l)),
|
|
967
985
|
fontSize: e.value.style.chart.arcs.labels.fontSize,
|
|
968
986
|
fill: e.value.style.chart.arcs.labels.color,
|
|
969
987
|
x: 0,
|
|
970
988
|
y: 0
|
|
971
989
|
})
|
|
972
|
-
}, null, 8,
|
|
990
|
+
}, null, 8, to))), 128)) : h("", !0)
|
|
973
991
|
])) : h("", !0)
|
|
974
|
-
], 8,
|
|
992
|
+
], 8, Fa),
|
|
975
993
|
w(t.$slots, "svg", { svg: { height: 600, width: 600 } }, void 0, !0)
|
|
976
|
-
], 42,
|
|
977
|
-
t.$slots.watermark ? (r(), i("div",
|
|
978
|
-
w(t.$slots, "watermark", de(he({ isPrinting: d(
|
|
994
|
+
], 42, La)),
|
|
995
|
+
t.$slots.watermark ? (r(), i("div", ao, [
|
|
996
|
+
w(t.$slots, "watermark", de(he({ isPrinting: d(ze) || d(Ue) })), void 0, !0)
|
|
979
997
|
])) : h("", !0),
|
|
980
998
|
I("div", {
|
|
981
|
-
id: `legend-bottom-${
|
|
982
|
-
}, null, 8,
|
|
983
|
-
|
|
999
|
+
id: `legend-bottom-${$.value}`
|
|
1000
|
+
}, null, 8, oo),
|
|
1001
|
+
Ee.value ? (r(), V(aa, {
|
|
984
1002
|
key: 5,
|
|
985
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1003
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
|
|
986
1004
|
}, [
|
|
987
1005
|
I("div", {
|
|
988
1006
|
ref_key: "chartLegend",
|
|
989
|
-
ref:
|
|
1007
|
+
ref: Oe
|
|
990
1008
|
}, [
|
|
991
|
-
e.value.style.chart.legend.show ? (r(), V(
|
|
1009
|
+
e.value.style.chart.legend.show ? (r(), V(Sa, {
|
|
992
1010
|
key: `legend_${me.value}`,
|
|
993
|
-
legendSet:
|
|
1011
|
+
legendSet: Me.value,
|
|
994
1012
|
config: Yt.value,
|
|
995
|
-
onClickMarker: o[0] || (o[0] = ({ legend: a }) =>
|
|
996
|
-
},
|
|
1013
|
+
onClickMarker: o[0] || (o[0] = ({ legend: a }) => nt(a.id))
|
|
1014
|
+
}, Ie({
|
|
997
1015
|
item: x(({ legend: a }) => [
|
|
998
1016
|
I("div", {
|
|
999
1017
|
style: R({
|
|
1000
1018
|
opacity: g.value ? g.value === a.id ? 1 : 0.3 : 1
|
|
1001
1019
|
}),
|
|
1002
1020
|
onClick: (l) => a.select()
|
|
1003
|
-
}, q(a.name), 13,
|
|
1021
|
+
}, q(a.name), 13, lo)
|
|
1004
1022
|
]),
|
|
1005
1023
|
_: 2
|
|
1006
1024
|
}, [
|
|
1007
1025
|
t.$slots.pattern ? {
|
|
1008
1026
|
name: "legend-pattern",
|
|
1009
1027
|
fn: x(({ legend: a, index: l }) => [
|
|
1010
|
-
fe(
|
|
1028
|
+
fe(Ia, {
|
|
1011
1029
|
shape: a.shape,
|
|
1012
1030
|
radius: 30,
|
|
1013
1031
|
stroke: "none",
|
|
1014
1032
|
plot: { x: 30, y: 30 },
|
|
1015
|
-
fill: `url(#pattern_${
|
|
1033
|
+
fill: `url(#pattern_${$.value}_${l})`
|
|
1016
1034
|
}, null, 8, ["shape", "fill"])
|
|
1017
1035
|
]),
|
|
1018
1036
|
key: "0"
|
|
1019
1037
|
} : void 0
|
|
1020
1038
|
]), 1032, ["legendSet", "config"])) : h("", !0),
|
|
1021
|
-
w(t.$slots, "legend", { legend:
|
|
1039
|
+
w(t.$slots, "legend", { legend: Me.value }, void 0, !0)
|
|
1022
1040
|
], 512)
|
|
1023
1041
|
], 8, ["to"])) : h("", !0),
|
|
1024
1042
|
t.$slots.source ? (r(), i("div", {
|
|
1025
1043
|
key: 6,
|
|
1026
1044
|
ref_key: "source",
|
|
1027
|
-
ref:
|
|
1045
|
+
ref: Le,
|
|
1028
1046
|
dir: "auto"
|
|
1029
1047
|
}, [
|
|
1030
1048
|
w(t.$slots, "source", {}, void 0, !0)
|
|
1031
1049
|
], 512)) : h("", !0),
|
|
1032
|
-
_.value !== e.value.initialRotation ? (r(), i("div",
|
|
1033
|
-
w(t.$slots, "reset-action", { reset:
|
|
1050
|
+
_.value !== e.value.initialRotation ? (r(), i("div", no, [
|
|
1051
|
+
w(t.$slots, "reset-action", { reset: lt }, () => [
|
|
1034
1052
|
I("button", {
|
|
1035
1053
|
"data-cy-reset": "",
|
|
1036
1054
|
tabindex: "0",
|
|
@@ -1039,22 +1057,22 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1039
1057
|
style: R({
|
|
1040
1058
|
background: e.value.style.chart.backgroundColor
|
|
1041
1059
|
}),
|
|
1042
|
-
onClick:
|
|
1060
|
+
onClick: lt
|
|
1043
1061
|
}, [
|
|
1044
|
-
fe(d(
|
|
1062
|
+
fe(d(Se), {
|
|
1045
1063
|
name: "refresh",
|
|
1046
1064
|
stroke: e.value.style.chart.color
|
|
1047
1065
|
}, null, 8, ["stroke"])
|
|
1048
1066
|
], 4)
|
|
1049
1067
|
], !0)
|
|
1050
1068
|
])) : h("", !0),
|
|
1051
|
-
E.value && e.value.userOptions.buttons.table ? (r(), V(
|
|
1069
|
+
E.value && e.value.userOptions.buttons.table ? (r(), V(oa(oe.value.component), dt({ key: 8 }, oe.value.props, {
|
|
1052
1070
|
ref_key: "tableUnit",
|
|
1053
|
-
ref:
|
|
1071
|
+
ref: K,
|
|
1054
1072
|
onClose: st
|
|
1055
|
-
}),
|
|
1073
|
+
}), Ie({
|
|
1056
1074
|
content: x(() => [
|
|
1057
|
-
(r(), V(d(
|
|
1075
|
+
(r(), V(d($t), {
|
|
1058
1076
|
key: `table_${pe.value}`,
|
|
1059
1077
|
colNames: ve.value.colNames,
|
|
1060
1078
|
head: ve.value.head,
|
|
@@ -1065,10 +1083,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1065
1083
|
onClose: st
|
|
1066
1084
|
}, {
|
|
1067
1085
|
th: x(({ th: a }) => [
|
|
1068
|
-
|
|
1086
|
+
ht(q(a.name), 1)
|
|
1069
1087
|
]),
|
|
1070
1088
|
td: x(({ td: a }) => [
|
|
1071
|
-
I("div",
|
|
1089
|
+
I("div", so, q(a.name ? a.name : Ke(a)), 1)
|
|
1072
1090
|
]),
|
|
1073
1091
|
_: 1
|
|
1074
1092
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1078,7 +1096,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1078
1096
|
e.value.table.useDialog ? {
|
|
1079
1097
|
name: "title",
|
|
1080
1098
|
fn: x(() => [
|
|
1081
|
-
|
|
1099
|
+
ht(q(oe.value.title), 1)
|
|
1082
1100
|
]),
|
|
1083
1101
|
key: "0"
|
|
1084
1102
|
} : void 0,
|
|
@@ -1088,9 +1106,9 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1088
1106
|
I("button", {
|
|
1089
1107
|
tabindex: "0",
|
|
1090
1108
|
class: "vue-ui-user-options-button",
|
|
1091
|
-
onClick: o[1] || (o[1] = (a) =>
|
|
1109
|
+
onClick: o[1] || (o[1] = (a) => xe(e.value.userOptions.callbacks.csv))
|
|
1092
1110
|
}, [
|
|
1093
|
-
fe(d(
|
|
1111
|
+
fe(d(Se), {
|
|
1094
1112
|
name: "excel",
|
|
1095
1113
|
stroke: oe.value.props.color
|
|
1096
1114
|
}, null, 8, ["stroke"])
|
|
@@ -1099,10 +1117,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1099
1117
|
key: "1"
|
|
1100
1118
|
} : void 0
|
|
1101
1119
|
]), 1040)) : h("", !0),
|
|
1102
|
-
d(
|
|
1103
|
-
], 46,
|
|
1120
|
+
d(Ne) ? (r(), V($a, { key: 9 })) : h("", !0)
|
|
1121
|
+
], 46, Ba));
|
|
1104
1122
|
}
|
|
1105
|
-
},
|
|
1123
|
+
}, Mo = /* @__PURE__ */ Ta(ro, [["__scopeId", "data-v-84d34aa4"]]);
|
|
1106
1124
|
export {
|
|
1107
|
-
|
|
1125
|
+
Mo as default
|
|
1108
1126
|
};
|