vue-data-ui 3.22.13 → 3.23.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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
- 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-bump.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-dag.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-geo.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-hill.js +2 -0
- 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-stackline.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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
2
|
+
import { $ as t, D as n, Jt as r, K as i, Kt as a, Pt as o, S as s, X as c, Zt as l, i as ee, jt as te, pt as ne, q as u, r as re, t as ie, tt as ae, w as oe } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ce } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as le } from "./usePrinter-BFvi4jVy.js";
|
|
5
6
|
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
6
7
|
import { t as fe } from "./useSvgExport-Ba9qBr9M.js";
|
|
7
|
-
import { t as pe } from "./useNestedProp
|
|
8
|
+
import { t as pe } from "./useNestedProp--NSEmhOH.js";
|
|
8
9
|
import { t as me } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as he } from "./img-
|
|
10
|
-
import { n as ge } from "./Title-
|
|
11
|
-
import { t as _e } from "./Shape-
|
|
10
|
+
import { t as he } from "./img-DIQG5q8T.js";
|
|
11
|
+
import { n as ge } from "./Title-BODtwViI.js";
|
|
12
|
+
import { t as _e } from "./Shape-BPMV94Ij.js";
|
|
12
13
|
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
14
|
import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
|
|
14
15
|
import { t as xe } from "./A11yDataTable-DdRsVULz.js";
|
|
15
16
|
import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
17
|
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
-
import { t as we } from "./Legend-
|
|
18
|
+
import { t as we } from "./Legend-CQTRlzK-.js";
|
|
18
19
|
import { t as Te } from "./vue_ui_chord-DPfS1Umc.js";
|
|
19
|
-
import { Fragment as
|
|
20
|
+
import { Fragment as d, Teleport as Ee, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as De, createTextVNode as Oe, createVNode as ke, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ae, nextTick as je, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Me, onMounted as Ne, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as E, toRefs as Ie, unref as D, useCssVars as Le, watch as Re, withCtx as O, withModifiers as ze } from "vue";
|
|
20
21
|
//#region src/components/vue-ui-chord.vue
|
|
21
22
|
var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue = ["id"], We = [
|
|
22
23
|
"xmlns",
|
|
@@ -139,8 +140,22 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
|
|
|
139
140
|
"copyAlt"
|
|
140
141
|
],
|
|
141
142
|
setup(e, { expose: ve, emit: Be }) {
|
|
142
|
-
Le((e) => ({
|
|
143
|
-
let vt =
|
|
143
|
+
Le((e) => ({ v34dc8e9b: e.slicerColor }));
|
|
144
|
+
let vt = _(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), yt = _(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), bt = _(() => import("./DataTable-D4tM9s5Y.js")), xt = _(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), St = _(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Ct = _(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), wt = _(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_chord: Tt } = ce(), { isThemeValid: Et, warnInvalidTheme: Dt } = me(), k = e, Ot = Be, A = C(!!k.dataset && Object.hasOwn(k.dataset, "matrix")), j = C(u()), M = C(null), N = C(null), P = C(null), kt = C(0), F = C(null), At = C(null), jt = C(null), Mt = C(null), Nt = C(null), Pt = C(0), Ft = C(0), It = C(0), Lt = C(!1), I = Fe(null), L = Fe(null), Rt = C(!1), zt = C(null), Bt = C(null), Vt = C(!1), Ht = C(!1), R = C("group"), z = C(null), Ut = C(!1), B = C(en());
|
|
145
|
+
se({
|
|
146
|
+
config: () => B.value,
|
|
147
|
+
dataset: () => k.dataset,
|
|
148
|
+
component: "VueUiChord",
|
|
149
|
+
rules: [{
|
|
150
|
+
test: (e) => e.matrix && e.matrix.length > 12,
|
|
151
|
+
message: [
|
|
152
|
+
"👀 The number of groups > 12, the chart might become hard to read. Consider:",
|
|
153
|
+
"",
|
|
154
|
+
"▶️ Using broader groups to reduce their number."
|
|
155
|
+
]
|
|
156
|
+
}]
|
|
157
|
+
});
|
|
158
|
+
let V = f(() => B.value.userOptions.useCursorPointer), Wt = f(() => r({
|
|
144
159
|
defaultConfig: {
|
|
145
160
|
useCssAnimation: !1,
|
|
146
161
|
userOptions: { show: !1 },
|
|
@@ -160,16 +175,16 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
|
|
|
160
175
|
} }
|
|
161
176
|
},
|
|
162
177
|
userConfig: B.value.skeletonConfig ?? {}
|
|
163
|
-
})), { loading:
|
|
164
|
-
...Ie(
|
|
178
|
+
})), { loading: Gt, FINAL_DATASET: H, manualLoading: Kt } = ue({
|
|
179
|
+
...Ie(k),
|
|
165
180
|
FINAL_CONFIG: B,
|
|
166
|
-
prepareConfig:
|
|
181
|
+
prepareConfig: en,
|
|
167
182
|
callback: () => {
|
|
168
183
|
Promise.resolve().then(async () => {
|
|
169
184
|
await je(), W.value.showTable = B.value.table.show;
|
|
170
185
|
});
|
|
171
186
|
},
|
|
172
|
-
skeletonDataset:
|
|
187
|
+
skeletonDataset: k.config?.skeletonDataset ?? {
|
|
173
188
|
matrix: [
|
|
174
189
|
[
|
|
175
190
|
12e3,
|
|
@@ -204,137 +219,137 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
|
|
|
204
219
|
"#969696"
|
|
205
220
|
]
|
|
206
221
|
},
|
|
207
|
-
skeletonConfig:
|
|
222
|
+
skeletonConfig: r({
|
|
208
223
|
defaultConfig: B.value,
|
|
209
|
-
userConfig:
|
|
224
|
+
userConfig: Wt.value
|
|
210
225
|
})
|
|
211
|
-
}), { userOptionsVisible:
|
|
212
|
-
elementId: `chord_${
|
|
226
|
+
}), { userOptionsVisible: qt, setUserOptionsVisibility: Jt, keepUserOptionState: Yt } = Se({ config: B.value }), { svgRef: U } = Ce({ config: B.value.style.chart.title }), { isPrinting: Xt, isImaging: Zt, generatePdf: Qt, generateImage: $t } = le({
|
|
227
|
+
elementId: `chord_${j.value}`,
|
|
213
228
|
fileName: B.value.style.chart.title.text || "vue-ui-chord",
|
|
214
229
|
options: B.value.userOptions.print
|
|
215
|
-
}), W =
|
|
216
|
-
function
|
|
230
|
+
}), W = C({ showTable: B.value.table.show });
|
|
231
|
+
function en() {
|
|
217
232
|
let e = pe({
|
|
218
|
-
userConfig:
|
|
233
|
+
userConfig: k.config,
|
|
219
234
|
defaultConfig: Tt
|
|
220
235
|
}), t = e.theme;
|
|
221
236
|
if (!t) return e;
|
|
222
237
|
if (!Et.value(e)) return Dt(e), e;
|
|
223
238
|
let n = pe({
|
|
224
|
-
userConfig: Te[t] ||
|
|
239
|
+
userConfig: Te[t] || k.config,
|
|
225
240
|
defaultConfig: e
|
|
226
241
|
}), r = pe({
|
|
227
|
-
userConfig:
|
|
242
|
+
userConfig: k.config,
|
|
228
243
|
defaultConfig: n
|
|
229
244
|
});
|
|
230
245
|
return {
|
|
231
246
|
...r,
|
|
232
|
-
customPalette: r.customPalette.length ? r.customPalette : a[t] ||
|
|
247
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || o
|
|
233
248
|
};
|
|
234
249
|
}
|
|
235
|
-
Re(() =>
|
|
236
|
-
|
|
250
|
+
Re(() => k.config, (e) => {
|
|
251
|
+
Gt.value || (B.value = en()), qt.value = !B.value.userOptions.showOnChartHover, rn(), Pt.value += 1, Ft.value += 1, It.value += 1, Y.value = B.value.initialRotation, W.value.showTable = B.value.table.show;
|
|
237
252
|
}, { deep: !0 });
|
|
238
|
-
let
|
|
239
|
-
Re(() =>
|
|
240
|
-
|
|
253
|
+
let tn = f(() => B.value.debug);
|
|
254
|
+
Re(() => k.dataset, () => {
|
|
255
|
+
nn(), rn(), Pt.value += 1, Ft.value += 1, It.value += 1;
|
|
241
256
|
});
|
|
242
|
-
function
|
|
243
|
-
if (
|
|
244
|
-
|
|
257
|
+
function nn() {
|
|
258
|
+
if (te(k.dataset)) {
|
|
259
|
+
ae({
|
|
245
260
|
componentName: "VueUiChord",
|
|
246
261
|
type: "dataset",
|
|
247
|
-
debug:
|
|
248
|
-
}),
|
|
262
|
+
debug: tn.value
|
|
263
|
+
}), A.value = !1, Kt.value = !0;
|
|
249
264
|
return;
|
|
250
265
|
}
|
|
251
266
|
let e = ne({
|
|
252
|
-
datasetObject:
|
|
267
|
+
datasetObject: k.dataset,
|
|
253
268
|
requiredAttributes: ["matrix"]
|
|
254
269
|
});
|
|
255
270
|
if (e.length) {
|
|
256
271
|
e.forEach((e) => {
|
|
257
|
-
|
|
272
|
+
ae({
|
|
258
273
|
componentName: "VueUiChord",
|
|
259
274
|
type: "datasetAttribute",
|
|
260
275
|
property: e,
|
|
261
|
-
debug:
|
|
276
|
+
debug: tn.value
|
|
262
277
|
});
|
|
263
|
-
}),
|
|
278
|
+
}), A.value = !1, Kt.value = !0;
|
|
264
279
|
return;
|
|
265
280
|
}
|
|
266
|
-
let
|
|
267
|
-
if (!Array.isArray(
|
|
268
|
-
console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n \nmatrix:[\n [1, 1],\n [1, 1]\n]"),
|
|
281
|
+
let t = k.dataset.matrix;
|
|
282
|
+
if (!Array.isArray(t) || t.length < 2) {
|
|
283
|
+
console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n \nmatrix:[\n [1, 1],\n [1, 1]\n]"), A.value = !1, Kt.value = !0;
|
|
269
284
|
return;
|
|
270
285
|
}
|
|
271
|
-
let
|
|
272
|
-
if (
|
|
273
|
-
console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${
|
|
286
|
+
let n = t.length, r = t.findIndex((e) => !Array.isArray(e) || e.length !== n);
|
|
287
|
+
if (r !== -1) {
|
|
288
|
+
console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${r} has ${Array.isArray(t[r]) ? t[r].length : "NaN"} elements instead of the required ${n}
|
|
274
289
|
|
|
275
|
-
dataset.matrix[${
|
|
290
|
+
dataset.matrix[${r}] = [${Array.isArray(t[r]) ? t[r].toString() : "invalid"}]`), A.value = !1, Kt.value = !0;
|
|
276
291
|
return;
|
|
277
292
|
}
|
|
278
|
-
|
|
293
|
+
A.value = !0, Kt.value = !1;
|
|
279
294
|
}
|
|
280
|
-
function
|
|
281
|
-
if (
|
|
295
|
+
function rn() {
|
|
296
|
+
if (nn(), B.value.responsive) {
|
|
282
297
|
let e = ye(() => {
|
|
283
298
|
let { width: e, height: t, heightNoTitle: n, heightSource: r, heightTitle: i, heightLegend: a } = be({
|
|
284
|
-
chart:
|
|
299
|
+
chart: F.value,
|
|
285
300
|
title: B.value.style.chart.title.text ? At.value : null,
|
|
286
301
|
legend: B.value.style.chart.legend.show ? jt.value : null,
|
|
287
302
|
source: Mt.value,
|
|
288
303
|
noTitle: Nt.value
|
|
289
304
|
}), o = i + a + r + n;
|
|
290
|
-
e < t ?
|
|
305
|
+
e < t ? F.value.style.width = "100%" : (F.value.style.height = "100%", U.value.style.height = `calc(100% - ${o}px)`);
|
|
291
306
|
}, 100);
|
|
292
|
-
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value =
|
|
307
|
+
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = F.value.parentNode, I.value.observe(L.value), e();
|
|
293
308
|
}
|
|
294
|
-
|
|
295
|
-
|
|
309
|
+
on.value = setTimeout(() => {
|
|
310
|
+
Lt.value = !0;
|
|
296
311
|
}, 500);
|
|
297
312
|
}
|
|
298
|
-
function
|
|
313
|
+
function an() {
|
|
299
314
|
if (!H.value || !Object.hasOwn(H.value, "matrix") || H.value.matrix.length < 2) {
|
|
300
|
-
console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n\nmatrix:[\n [1, 1],\n [1, 1]\n]"),
|
|
315
|
+
console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n\nmatrix:[\n [1, 1],\n [1, 1]\n]"), A.value = !1;
|
|
301
316
|
return;
|
|
302
317
|
}
|
|
303
318
|
H.value.matrix.forEach((e, t) => {
|
|
304
|
-
e.length !== H.value.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${t} has ${e.length} elements instead of the required ${H.value.matrix.length}\n\ndataset.matrix[${t}] = [${e.toString()}] has a length of ${e.length} but should have the same length as the matrix itself (${H.value.matrix.length})`),
|
|
319
|
+
e.length !== H.value.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${t} has ${e.length} elements instead of the required ${H.value.matrix.length}\n\ndataset.matrix[${t}] = [${e.toString()}] has a length of ${e.length} but should have the same length as the matrix itself (${H.value.matrix.length})`), A.value = !1);
|
|
305
320
|
});
|
|
306
321
|
}
|
|
307
|
-
let
|
|
322
|
+
let on = C(null);
|
|
308
323
|
Ne(() => {
|
|
309
|
-
|
|
324
|
+
Rt.value = !0, rn();
|
|
310
325
|
});
|
|
311
|
-
let G =
|
|
326
|
+
let G = C({
|
|
312
327
|
height: 600,
|
|
313
328
|
width: 600
|
|
314
|
-
}),
|
|
329
|
+
}), sn = f(() => B.value.userOptions.show && !B.value.style.chart.title.text), cn = f(() => oe(B.value.customPalette)), K = f(() => ({
|
|
315
330
|
inner: G.value.width * .3 * B.value.style.chart.arcs.innerRadiusRatio,
|
|
316
331
|
outer: G.value.width * .34 * B.value.style.chart.arcs.outerRadiusRatio
|
|
317
|
-
})),
|
|
332
|
+
})), ln = f(() => B.value.style.chart.arcs.padAngle / 100), q = f(() => ({
|
|
318
333
|
matrix: H.value.matrix ?? [[0]],
|
|
319
334
|
labels: H.value.labels ?? [""],
|
|
320
|
-
colors: H.value.colors && Array.isArray(H.value.colors) && H.value.colors.length ? H.value.colors.map((e) =>
|
|
335
|
+
colors: H.value.colors && Array.isArray(H.value.colors) && H.value.colors.length ? H.value.colors.map((e) => s(e)) : H.value.matrix.map((e, t) => cn.value[t] || o[t] || o[t % o.length])
|
|
321
336
|
}));
|
|
322
|
-
function
|
|
337
|
+
function un(e, t) {
|
|
323
338
|
let n = e.length, r = K.value.inner, i = Array(n).fill(0), a = 0;
|
|
324
339
|
for (let t = 0; t < n; t += 1) for (let r = 0; r < n; r += 1) i[t] += e[t][r], a += e[t][r];
|
|
325
|
-
let
|
|
340
|
+
let o = (2 * Math.PI - t * n) / a, s = [], c = 0;
|
|
326
341
|
for (let e = 0; e < n; e += 1) {
|
|
327
|
-
let n =
|
|
328
|
-
|
|
342
|
+
let n = c, r = n + i[e] * o;
|
|
343
|
+
s.push({
|
|
329
344
|
index: e,
|
|
330
|
-
pattern: `pattern_${
|
|
345
|
+
pattern: `pattern_${j.value}_${e}`,
|
|
331
346
|
startAngle: n,
|
|
332
347
|
endAngle: r,
|
|
333
348
|
name: q.value.labels[e],
|
|
334
|
-
id:
|
|
349
|
+
id: u(),
|
|
335
350
|
color: q.value.colors[e],
|
|
336
351
|
proportion: i[e] / a
|
|
337
|
-
}),
|
|
352
|
+
}), c = r + t;
|
|
338
353
|
}
|
|
339
354
|
let l = [];
|
|
340
355
|
for (let t = 0; t < n; t += 1) {
|
|
@@ -343,46 +358,46 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
343
358
|
v: e
|
|
344
359
|
}));
|
|
345
360
|
n.sort((e, t) => t.v - e.v);
|
|
346
|
-
let i =
|
|
361
|
+
let i = s[t].startAngle;
|
|
347
362
|
for (let { j: e, v: a } of n) {
|
|
348
|
-
let n = i,
|
|
363
|
+
let n = i, c = n + a * o;
|
|
349
364
|
l.push({
|
|
350
365
|
index: t,
|
|
351
366
|
subIndex: e,
|
|
352
|
-
pattern: `pattern_${
|
|
367
|
+
pattern: `pattern_${j.value}_${t}`,
|
|
353
368
|
startAngle: n,
|
|
354
|
-
endAngle:
|
|
369
|
+
endAngle: c,
|
|
355
370
|
value: a,
|
|
356
371
|
groupName: q.value.labels[t],
|
|
357
|
-
groupId:
|
|
372
|
+
groupId: s[t].id,
|
|
358
373
|
groupColor: q.value.colors[t],
|
|
359
|
-
midAngle: (n +
|
|
360
|
-
midBaseX: Math.cos((n +
|
|
361
|
-
midBaseY: Math.sin((n +
|
|
362
|
-
}), i =
|
|
374
|
+
midAngle: (n + c) / 2,
|
|
375
|
+
midBaseX: Math.cos((n + c) / 2 - Math.PI / 2) * r,
|
|
376
|
+
midBaseY: Math.sin((n + c) / 2 - Math.PI / 2) * r
|
|
377
|
+
}), i = c;
|
|
363
378
|
}
|
|
364
379
|
}
|
|
365
|
-
let
|
|
380
|
+
let ee = [];
|
|
366
381
|
for (let e of l) {
|
|
367
382
|
let t = l.find((t) => t.index === e.subIndex && t.subIndex === e.index);
|
|
368
|
-
|
|
383
|
+
ee.push({
|
|
369
384
|
source: e,
|
|
370
385
|
target: t,
|
|
371
|
-
id:
|
|
386
|
+
id: u()
|
|
372
387
|
});
|
|
373
388
|
}
|
|
374
389
|
return {
|
|
375
|
-
groups:
|
|
376
|
-
chords:
|
|
390
|
+
groups: s,
|
|
391
|
+
chords: ee
|
|
377
392
|
};
|
|
378
393
|
}
|
|
379
|
-
let J =
|
|
380
|
-
let e =
|
|
381
|
-
return
|
|
382
|
-
}),
|
|
394
|
+
let J = f(() => {
|
|
395
|
+
let e = un(q.value.matrix, ln.value);
|
|
396
|
+
return an(), e.chords.sort((e, t) => Math.max(t.source.value, t.target.value) - Math.max(e.source.value, e.target.value)), e;
|
|
397
|
+
}), dn = f(() => {
|
|
383
398
|
let e = K.value.outer + B.value.style.chart.ribbons.labels.offset + 12, t = B.value.style.chart.ribbons.labels.fontSize * .6, n = [];
|
|
384
|
-
if (
|
|
385
|
-
let r =
|
|
399
|
+
if (N.value) {
|
|
400
|
+
let r = N.value;
|
|
386
401
|
if (r.source.value) {
|
|
387
402
|
let i = String(r.source.value);
|
|
388
403
|
n.push({
|
|
@@ -437,9 +452,9 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
437
452
|
}
|
|
438
453
|
});
|
|
439
454
|
}
|
|
440
|
-
return
|
|
441
|
-
}),
|
|
442
|
-
let e =
|
|
455
|
+
return P.value && r(P.value), M.value && r(M.value.id), n;
|
|
456
|
+
}), fn = f(() => {
|
|
457
|
+
let e = dn.value.map((e) => ({ ...e })).sort((e, t) => e.theta - t.theta), t = B.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180, n = !0, r = 0;
|
|
443
458
|
for (; n && r++ < 10;) {
|
|
444
459
|
n = !1;
|
|
445
460
|
for (let r = 1; r < e.length; r += 1) {
|
|
@@ -451,51 +466,51 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
451
466
|
}
|
|
452
467
|
return e;
|
|
453
468
|
});
|
|
454
|
-
function
|
|
455
|
-
let i = e - Math.PI / 2, a = t - Math.PI / 2, o = Math.cos(i) * n, s = Math.sin(i) * n, c = Math.cos(a) * n,
|
|
456
|
-
return `M${o},${s} A${n},${n} 0 ${
|
|
469
|
+
function pn(e, t, n, r) {
|
|
470
|
+
let i = e - Math.PI / 2, a = t - Math.PI / 2, o = Math.cos(i) * n, s = Math.sin(i) * n, c = Math.cos(a) * n, l = Math.sin(a) * n, ee = Math.cos(a) * r, te = Math.sin(a) * r, ne = Math.cos(i) * r, u = Math.sin(i) * r, re = +(t - e > Math.PI);
|
|
471
|
+
return `M${o},${s} A${n},${n} 0 ${re} 1 ${c},${l} L${ee},${te} A${r},${r} 0 ${re} 0 ${ne},${u} Z`;
|
|
457
472
|
}
|
|
458
|
-
function
|
|
459
|
-
let n = K.value.inner, r = e.startAngle - Math.PI / 2, i = e.endAngle - Math.PI / 2, a = t.startAngle - Math.PI / 2, o = t.endAngle - Math.PI / 2, s = Math.cos(r) * n, c = Math.sin(r) * n,
|
|
460
|
-
return `M${s},${c}A${n},${n} 0 ${+(e.endAngle - e.startAngle > Math.PI)} 1 ${
|
|
461
|
-
}
|
|
462
|
-
let mn = d(() => Y.value * Math.PI / 180);
|
|
463
|
-
function hn(e) {
|
|
464
|
-
return (e.startAngle + e.endAngle) / 2;
|
|
473
|
+
function mn(e, t) {
|
|
474
|
+
let n = K.value.inner, r = e.startAngle - Math.PI / 2, i = e.endAngle - Math.PI / 2, a = t.startAngle - Math.PI / 2, o = t.endAngle - Math.PI / 2, s = Math.cos(r) * n, c = Math.sin(r) * n, l = Math.cos(i) * n, ee = Math.sin(i) * n, te = Math.cos(a) * n, ne = Math.sin(a) * n, u = Math.cos(o) * n, re = Math.sin(o) * n;
|
|
475
|
+
return `M${s},${c}A${n},${n} 0 ${+(e.endAngle - e.startAngle > Math.PI)} 1 ${l},${ee}Q0,0 ${te},${ne}A${n},${n} 0 ${+(t.endAngle - t.startAngle > Math.PI)} 1 ${u},${re}Q0,0 ${s},${c}Z`;
|
|
465
476
|
}
|
|
477
|
+
let hn = f(() => Y.value * Math.PI / 180);
|
|
466
478
|
function gn(e) {
|
|
467
|
-
return (
|
|
479
|
+
return (e.startAngle + e.endAngle) / 2;
|
|
468
480
|
}
|
|
469
481
|
function _n(e) {
|
|
470
|
-
|
|
471
|
-
return t = (t % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), t > Math.PI ? "end" : "start";
|
|
482
|
+
return ((gn(e) + hn.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
|
|
472
483
|
}
|
|
473
484
|
function vn(e) {
|
|
485
|
+
let t = e + hn.value;
|
|
486
|
+
return t = (t % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), t > Math.PI ? "end" : "start";
|
|
487
|
+
}
|
|
488
|
+
function yn(e) {
|
|
474
489
|
let t = e - Math.PI / 2;
|
|
475
490
|
return `translate(${Math.cos(t) * (K.value.outer + B.value.style.chart.arcs.labels.offset + 24)},${Math.sin(t) * (K.value.outer + B.value.style.chart.arcs.labels.offset + 24)})`;
|
|
476
491
|
}
|
|
477
|
-
function
|
|
492
|
+
function bn(e, t, n) {
|
|
478
493
|
let r = e - Math.PI / 2, i = t - Math.PI / 2, a = Math.cos(r) * n, o = Math.sin(r) * n, s = Math.cos(i) * n, c = Math.sin(i) * n;
|
|
479
494
|
return `M${a},${o} A${n},${n} 0 ${+(t - e > Math.PI)} 1 ${s},${c}`;
|
|
480
495
|
}
|
|
481
|
-
let Y =
|
|
482
|
-
function
|
|
496
|
+
let Y = C(B.value.initialRotation), xn = C(!1), Sn = 0, Cn = 0;
|
|
497
|
+
function wn(e) {
|
|
483
498
|
let t = U.value.getBoundingClientRect(), n = t.left + t.width / 2, r = t.top + t.height / 2, i = e.clientX ?? e.touches[0].clientX, a = e.clientY ?? e.touches[0].clientY;
|
|
484
499
|
return Math.atan2(a - r, i - n);
|
|
485
500
|
}
|
|
486
|
-
function wn(e) {
|
|
487
|
-
!B.value.enableRotation || X.value || (e.preventDefault(), bn.value = !0, xn = Y.value, Sn = Cn(e));
|
|
488
|
-
}
|
|
489
501
|
function Tn(e) {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
502
|
+
!B.value.enableRotation || X.value || (e.preventDefault(), xn.value = !0, Sn = Y.value, Cn = wn(e));
|
|
503
|
+
}
|
|
504
|
+
function En(e) {
|
|
505
|
+
if (!xn.value) return;
|
|
506
|
+
let t = wn(e);
|
|
507
|
+
Y.value = Sn + (t - Cn) * 180 / Math.PI;
|
|
493
508
|
}
|
|
494
|
-
function
|
|
495
|
-
|
|
509
|
+
function Dn() {
|
|
510
|
+
xn.value = !1;
|
|
496
511
|
}
|
|
497
|
-
function
|
|
498
|
-
return
|
|
512
|
+
function On(e) {
|
|
513
|
+
return ee(B.value.style.chart.ribbons.labels.formatter, e, c({
|
|
499
514
|
p: B.value.style.chart.ribbons.labels.prefix,
|
|
500
515
|
v: e,
|
|
501
516
|
s: B.value.style.chart.ribbons.labels.suffix,
|
|
@@ -503,68 +518,68 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
503
518
|
}));
|
|
504
519
|
}
|
|
505
520
|
Ne(() => {
|
|
506
|
-
window.addEventListener("mousemove",
|
|
521
|
+
window.addEventListener("mousemove", En), window.addEventListener("mouseup", Dn), window.addEventListener("touchmove", En, { passive: !1 }), window.addEventListener("touchend", Dn);
|
|
507
522
|
}), Me(() => {
|
|
508
|
-
window.removeEventListener("mousemove",
|
|
523
|
+
window.removeEventListener("mousemove", En), window.removeEventListener("mouseup", Dn), window.removeEventListener("touchmove", En), window.removeEventListener("touchend", Dn), clearTimeout(on.value), I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
|
|
509
524
|
});
|
|
510
|
-
let
|
|
511
|
-
function
|
|
512
|
-
|
|
525
|
+
let kn = C(!1);
|
|
526
|
+
function An(e) {
|
|
527
|
+
kn.value = e, kt.value += 1;
|
|
513
528
|
}
|
|
514
|
-
function
|
|
529
|
+
function jn(e, t) {
|
|
515
530
|
B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
516
531
|
datapoint: e,
|
|
517
532
|
seriesIndex: t
|
|
518
|
-
}), !
|
|
533
|
+
}), !P.value && (M.value = e);
|
|
519
534
|
}
|
|
520
|
-
function
|
|
521
|
-
|
|
535
|
+
function Mn(e, t) {
|
|
536
|
+
M.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
522
537
|
datapoint: e,
|
|
523
538
|
seriesIndex: t
|
|
524
539
|
});
|
|
525
540
|
}
|
|
526
|
-
function
|
|
541
|
+
function Nn(e, t) {
|
|
527
542
|
Ot("selectGroup", e), B.value.events.datapointClick && B.value.events.datapointClick({
|
|
528
543
|
datapoint: e,
|
|
529
544
|
seriesIndex: t
|
|
530
545
|
});
|
|
531
546
|
}
|
|
532
|
-
function
|
|
547
|
+
function Pn(e, t) {
|
|
533
548
|
B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
534
549
|
datapoint: e,
|
|
535
550
|
seriesIndex: t
|
|
536
|
-
}), !
|
|
551
|
+
}), !P.value && (N.value = e);
|
|
537
552
|
}
|
|
538
|
-
function
|
|
539
|
-
|
|
553
|
+
function Fn(e, t) {
|
|
554
|
+
N.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
540
555
|
datapoint: e,
|
|
541
556
|
seriesIndex: t
|
|
542
557
|
});
|
|
543
558
|
}
|
|
544
|
-
function
|
|
559
|
+
function In(e, t) {
|
|
545
560
|
Ot("selectRibbon", e), B.value.events.datapointClick && B.value.events.datapointClick({
|
|
546
561
|
datapoint: e,
|
|
547
562
|
seriesIndex: t
|
|
548
563
|
});
|
|
549
564
|
}
|
|
550
|
-
function In(e) {
|
|
551
|
-
return !N.value && !j.value && !M.value ? .8 : (N.value ? N.value === e.source.groupId : j.value ? j.value.id === e.source.groupId : M.value?.id === e.id) ? 1 : .1;
|
|
552
|
-
}
|
|
553
565
|
function Ln(e) {
|
|
554
|
-
return !
|
|
566
|
+
return !P.value && !M.value && !N.value ? .8 : (P.value ? P.value === e.source.groupId : M.value ? M.value.id === e.source.groupId : N.value?.id === e.id) ? 1 : .1;
|
|
555
567
|
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
X.value = !X.value;
|
|
568
|
+
function Rn(e) {
|
|
569
|
+
return !P.value && !M.value && !N.value || (P.value ? P.value === e.id : M.value ? M.value.id === e.id : [N.value?.source.groupId, N.value?.target.groupId].includes(e.id)) ? 1 : .3;
|
|
559
570
|
}
|
|
571
|
+
let X = C(!1);
|
|
560
572
|
function zn() {
|
|
561
|
-
|
|
573
|
+
X.value = !X.value;
|
|
562
574
|
}
|
|
563
575
|
function Bn() {
|
|
564
|
-
|
|
576
|
+
W.value.showTable = !W.value.showTable;
|
|
565
577
|
}
|
|
566
|
-
let Z = S(null);
|
|
567
578
|
function Vn() {
|
|
579
|
+
return J.value;
|
|
580
|
+
}
|
|
581
|
+
let Z = C(null);
|
|
582
|
+
function Hn() {
|
|
568
583
|
let e = B.value.initialRotation;
|
|
569
584
|
Z.value !== null && cancelAnimationFrame(Z.value);
|
|
570
585
|
let t = () => {
|
|
@@ -575,32 +590,32 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
575
590
|
Me(() => {
|
|
576
591
|
Z.value !== null && cancelAnimationFrame(Z.value);
|
|
577
592
|
});
|
|
578
|
-
function
|
|
579
|
-
e ===
|
|
593
|
+
function Un(e) {
|
|
594
|
+
e === P.value ? (P.value = null, Ot("selectLegend", null)) : (P.value = e, Ot("selectLegend", J.value.groups.find((t) => t.id === e)));
|
|
580
595
|
}
|
|
581
|
-
let
|
|
596
|
+
let Wn = f(() => J.value.groups.map((e, t) => ({
|
|
582
597
|
name: e.name,
|
|
583
598
|
color: e.color,
|
|
584
599
|
shape: "circle",
|
|
585
600
|
patternIndex: t,
|
|
586
|
-
pattern: `pattern_${
|
|
601
|
+
pattern: `pattern_${j.value}_${t}`,
|
|
587
602
|
id: e.id,
|
|
588
|
-
select: () =>
|
|
589
|
-
opacity:
|
|
590
|
-
}))),
|
|
603
|
+
select: () => Un(e.id),
|
|
604
|
+
opacity: P.value ? P.value === e.id ? 1 : .3 : 1
|
|
605
|
+
}))), Gn = f(() => ({
|
|
591
606
|
cy: "chord-div-legend",
|
|
592
607
|
backgroundColor: B.value.style.chart.legend.backgroundColor,
|
|
593
608
|
color: B.value.style.chart.legend.color,
|
|
594
609
|
fontSize: B.value.style.chart.legend.fontSize,
|
|
595
610
|
paddingBottom: 12,
|
|
596
611
|
fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
|
|
597
|
-
})), Q =
|
|
612
|
+
})), Q = f(() => ({
|
|
598
613
|
head: J.value.groups.map((e, t) => ({
|
|
599
614
|
name: e.name || t,
|
|
600
615
|
color: e.color
|
|
601
616
|
})),
|
|
602
617
|
body: q.value.matrix
|
|
603
|
-
})),
|
|
618
|
+
})), Kn = f(() => {
|
|
604
619
|
let e = [{
|
|
605
620
|
name: "",
|
|
606
621
|
color: null
|
|
@@ -624,23 +639,23 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
624
639
|
}
|
|
625
640
|
};
|
|
626
641
|
});
|
|
627
|
-
function
|
|
642
|
+
function qn(e = null) {
|
|
628
643
|
je(() => {
|
|
629
|
-
let
|
|
644
|
+
let r = q.value.matrix.map((e, t) => [[q.value.labels[t] || t], e]), i = n([
|
|
630
645
|
[B.value.style.chart.title.text],
|
|
631
646
|
[B.value.style.chart.title.subtitle.text],
|
|
632
647
|
[[""], ...q.value.labels.map((e, t) => [e || t])]
|
|
633
|
-
].concat(
|
|
634
|
-
e ? e(
|
|
635
|
-
csvContent:
|
|
648
|
+
].concat(r));
|
|
649
|
+
e ? e(i) : t({
|
|
650
|
+
csvContent: i,
|
|
636
651
|
title: B.value.style.chart.title.text || "vue-ui-chord"
|
|
637
652
|
});
|
|
638
653
|
});
|
|
639
654
|
}
|
|
640
|
-
async function
|
|
641
|
-
if (!
|
|
642
|
-
let { width: t, height: n } =
|
|
643
|
-
domElement:
|
|
655
|
+
async function Jn({ scale: e = 2 } = {}) {
|
|
656
|
+
if (!F.value) return;
|
|
657
|
+
let { width: t, height: n } = F.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
|
|
658
|
+
domElement: F.value,
|
|
644
659
|
base64: !0,
|
|
645
660
|
img: !0,
|
|
646
661
|
scale: e
|
|
@@ -654,15 +669,15 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
654
669
|
aspectRatio: r
|
|
655
670
|
};
|
|
656
671
|
}
|
|
657
|
-
function
|
|
658
|
-
return `${q.value.labels[t]}${B.value.style.chart.arcs.labels.showPercentage ?
|
|
672
|
+
function Yn(e, t) {
|
|
673
|
+
return `${q.value.labels[t]}${B.value.style.chart.arcs.labels.showPercentage ? c({
|
|
659
674
|
p: " (",
|
|
660
675
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
661
676
|
s: "%)",
|
|
662
677
|
r: B.value.style.chart.arcs.labels.roundingPercentage
|
|
663
678
|
}) : ""}`;
|
|
664
679
|
}
|
|
665
|
-
let
|
|
680
|
+
let Xn = f(() => {
|
|
666
681
|
let e = B.value.table.useDialog && !B.value.table.show, t = W.value.showTable;
|
|
667
682
|
return {
|
|
668
683
|
component: e ? wt : vt,
|
|
@@ -672,8 +687,8 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
672
687
|
color: B.value.table.th.color,
|
|
673
688
|
headerColor: B.value.table.th.color,
|
|
674
689
|
headerBg: B.value.table.th.backgroundColor,
|
|
675
|
-
isFullscreen:
|
|
676
|
-
fullscreenParent:
|
|
690
|
+
isFullscreen: kn.value,
|
|
691
|
+
fullscreenParent: F.value,
|
|
677
692
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
678
693
|
isCursorPointer: V.value
|
|
679
694
|
} : {
|
|
@@ -694,46 +709,46 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
694
709
|
};
|
|
695
710
|
});
|
|
696
711
|
Re(() => W.value.showTable, (e) => {
|
|
697
|
-
B.value.table.show || (e && B.value.table.useDialog &&
|
|
712
|
+
B.value.table.show || (e && B.value.table.useDialog && zt.value ? zt.value.open() : "close" in zt.value && zt.value.close());
|
|
698
713
|
});
|
|
699
|
-
function
|
|
700
|
-
W.value.showTable = !1,
|
|
714
|
+
function Zn() {
|
|
715
|
+
W.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
|
|
701
716
|
}
|
|
702
|
-
let
|
|
717
|
+
let Qn = f(() => B.value.style.chart.backgroundColor), $n = f(() => B.value.style.chart.legend), { exportSvg: er, getSvg: tr } = fe({
|
|
703
718
|
svg: U,
|
|
704
|
-
title:
|
|
705
|
-
legend:
|
|
706
|
-
legendItems:
|
|
707
|
-
backgroundColor:
|
|
719
|
+
title: f(() => B.value.style.chart.title),
|
|
720
|
+
legend: $n,
|
|
721
|
+
legendItems: Wn,
|
|
722
|
+
backgroundColor: Qn
|
|
708
723
|
});
|
|
709
|
-
async function
|
|
710
|
-
|
|
724
|
+
async function nr({ isCb: e }) {
|
|
725
|
+
Ht.value = !0, await je();
|
|
711
726
|
try {
|
|
712
727
|
if (e) {
|
|
713
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
728
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await tr();
|
|
714
729
|
await Promise.resolve(B.value.userOptions.callbacks.svg({
|
|
715
730
|
blob: e,
|
|
716
731
|
url: t,
|
|
717
732
|
text: n,
|
|
718
733
|
dataUrl: r
|
|
719
734
|
}));
|
|
720
|
-
} else await Promise.resolve(
|
|
735
|
+
} else await Promise.resolve(er());
|
|
721
736
|
} finally {
|
|
722
|
-
|
|
737
|
+
Ht.value = !1;
|
|
723
738
|
}
|
|
724
739
|
}
|
|
725
|
-
function
|
|
740
|
+
function rr(e) {
|
|
726
741
|
if (e?.stage === "start") {
|
|
727
|
-
|
|
742
|
+
Vt.value = !0;
|
|
728
743
|
return;
|
|
729
744
|
}
|
|
730
745
|
if (e?.stage === "end") {
|
|
731
|
-
|
|
746
|
+
Vt.value = !1;
|
|
732
747
|
return;
|
|
733
748
|
}
|
|
734
|
-
|
|
749
|
+
$t();
|
|
735
750
|
}
|
|
736
|
-
async function
|
|
751
|
+
async function ir() {
|
|
737
752
|
if (Ot("copyAlt", {
|
|
738
753
|
config: B.value,
|
|
739
754
|
dataset: q.value
|
|
@@ -746,108 +761,108 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
746
761
|
dataset: q.value
|
|
747
762
|
}));
|
|
748
763
|
}
|
|
749
|
-
let
|
|
764
|
+
let ar = f(() => (M.value ? J.value.chords.filter((e) => e.source.groupId === M.value.id) : P.value ? J.value.chords.filter((e) => e.source.groupId === P.value) : J.value.chords).filter((e) => e.source.value)), $ = f(() => ({
|
|
750
765
|
groups: J.value.groups.map((e, t) => ({
|
|
751
766
|
type: "group",
|
|
752
767
|
index: t,
|
|
753
768
|
item: e
|
|
754
769
|
})),
|
|
755
|
-
ribbons:
|
|
770
|
+
ribbons: ar.value.map((e, t) => ({
|
|
756
771
|
type: "ribbon",
|
|
757
772
|
index: t,
|
|
758
773
|
item: {
|
|
759
774
|
...e,
|
|
760
|
-
path:
|
|
775
|
+
path: mn(e.source, e.target),
|
|
761
776
|
color: q.value.colors[e.source.index]
|
|
762
777
|
}
|
|
763
778
|
}))
|
|
764
|
-
})),
|
|
779
|
+
})), or = f(() => ({
|
|
765
780
|
headers: ["", ...Q.value.head.map((e) => e.name)],
|
|
766
|
-
rows: Q.value.body.map((e, t) => [Q.value.head[t]?.name ?? `${t}`, ...e.map((e) =>
|
|
781
|
+
rows: Q.value.body.map((e, t) => [Q.value.head[t]?.name ?? `${t}`, ...e.map((e) => On(e))])
|
|
767
782
|
}));
|
|
768
|
-
function
|
|
783
|
+
function sr(e) {
|
|
769
784
|
let t = $.value.groups[e];
|
|
770
|
-
t && (R.value = "group", z.value = e,
|
|
785
|
+
t && (R.value = "group", z.value = e, N.value = null, M.value = t.item);
|
|
771
786
|
}
|
|
772
|
-
function
|
|
787
|
+
function cr(e) {
|
|
773
788
|
let t = $.value.ribbons[e];
|
|
774
|
-
t && (R.value = "ribbon", z.value = e,
|
|
775
|
-
}
|
|
776
|
-
function cr() {
|
|
777
|
-
z.value = null, R.value = "group", j.value = null, M.value = null;
|
|
789
|
+
t && (R.value = "ribbon", z.value = e, M.value = null, N.value = t.item);
|
|
778
790
|
}
|
|
779
791
|
function lr() {
|
|
780
|
-
|
|
792
|
+
z.value = null, R.value = "group", M.value = null, N.value = null;
|
|
781
793
|
}
|
|
782
794
|
function ur() {
|
|
783
|
-
|
|
795
|
+
Ut.value = !0, R.value = "group", z.value = null;
|
|
796
|
+
}
|
|
797
|
+
function dr() {
|
|
798
|
+
Ut.value = !1, lr();
|
|
784
799
|
}
|
|
785
|
-
function
|
|
800
|
+
function fr(e) {
|
|
786
801
|
if (!U.value || X.value || document.activeElement !== U.value) return;
|
|
787
802
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
788
803
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
789
804
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
790
|
-
|
|
805
|
+
lr();
|
|
791
806
|
return;
|
|
792
807
|
}
|
|
793
808
|
if (r) {
|
|
794
|
-
R.value = "group", $.value.groups.length &&
|
|
809
|
+
R.value = "group", $.value.groups.length && sr(z.value === null ? 0 : Math.min(z.value, $.value.groups.length - 1));
|
|
795
810
|
return;
|
|
796
811
|
}
|
|
797
812
|
if (i) {
|
|
798
813
|
if (!$.value.ribbons.length) return;
|
|
799
|
-
R.value = "ribbon",
|
|
814
|
+
R.value = "ribbon", cr(z.value === null ? 0 : Math.min(z.value, $.value.ribbons.length - 1));
|
|
800
815
|
return;
|
|
801
816
|
}
|
|
802
817
|
if (a) {
|
|
803
818
|
if (R.value === "group") {
|
|
804
819
|
let e = $.value.groups[z.value];
|
|
805
|
-
e &&
|
|
820
|
+
e && Nn(e.item, e.index);
|
|
806
821
|
} else {
|
|
807
822
|
let e = $.value.ribbons[z.value];
|
|
808
|
-
e &&
|
|
823
|
+
e && In(e.item, e.index);
|
|
809
824
|
}
|
|
810
825
|
return;
|
|
811
826
|
}
|
|
812
827
|
let s = R.value === "group" ? $.value.groups : $.value.ribbons;
|
|
813
828
|
if (!s.length) return;
|
|
814
829
|
let c = z.value;
|
|
815
|
-
c === null || c < 0 || c >= s.length ? c = n ? 0 : s.length - 1 : n ? (c += 1, c >= s.length && (c = 0)) : t && (--c, c < 0 && (c = s.length - 1)), R.value === "group" ?
|
|
830
|
+
c === null || c < 0 || c >= s.length ? c = n ? 0 : s.length - 1 : n ? (c += 1, c >= s.length && (c = 0)) : t && (--c, c < 0 && (c = s.length - 1)), R.value === "group" ? sr(c) : cr(c);
|
|
816
831
|
}
|
|
817
832
|
return ve({
|
|
818
|
-
getData:
|
|
819
|
-
getImage:
|
|
820
|
-
generateCsv:
|
|
821
|
-
generateImage:
|
|
822
|
-
generateSvg:
|
|
823
|
-
generatePdf:
|
|
824
|
-
toggleAnnotator:
|
|
825
|
-
toggleTable:
|
|
826
|
-
toggleFullscreen:
|
|
827
|
-
copyAlt:
|
|
828
|
-
}), (e, t) => (
|
|
833
|
+
getData: Vn,
|
|
834
|
+
getImage: Jn,
|
|
835
|
+
generateCsv: qn,
|
|
836
|
+
generateImage: $t,
|
|
837
|
+
generateSvg: nr,
|
|
838
|
+
generatePdf: Qt,
|
|
839
|
+
toggleAnnotator: zn,
|
|
840
|
+
toggleTable: Bn,
|
|
841
|
+
toggleFullscreen: An,
|
|
842
|
+
copyAlt: ir
|
|
843
|
+
}), (e, t) => (S(), h("div", {
|
|
829
844
|
ref_key: "chordChart",
|
|
830
|
-
ref:
|
|
831
|
-
class:
|
|
845
|
+
ref: F,
|
|
846
|
+
class: y({
|
|
832
847
|
"vue-data-ui-component": !0,
|
|
833
848
|
"vue-ui-chord": !0,
|
|
834
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
849
|
+
"vue-data-ui-wrapper-fullscreen": kn.value,
|
|
835
850
|
"vue-data-ui-responsive": B.value.responsive
|
|
836
851
|
}),
|
|
837
|
-
style:
|
|
838
|
-
id: `chord_${
|
|
839
|
-
onMouseenter: t[2] ||= () =>
|
|
840
|
-
onMouseleave: t[3] ||= () =>
|
|
852
|
+
style: x(`font-family:${B.value.style.fontFamily};width:100%; text-align:center;background:${B.value.style.chart.backgroundColor}`),
|
|
853
|
+
id: `chord_${j.value}`,
|
|
854
|
+
onMouseenter: t[2] ||= () => D(Jt)(!0),
|
|
855
|
+
onMouseleave: t[3] ||= () => D(Jt)(!1)
|
|
841
856
|
}, [
|
|
842
|
-
|
|
843
|
-
id: `chart-instructions-${
|
|
857
|
+
g("div", {
|
|
858
|
+
id: `chart-instructions-${j.value}`,
|
|
844
859
|
class: "sr-only"
|
|
845
|
-
}, [
|
|
846
|
-
|
|
860
|
+
}, [g("p", null, E(B.value.a11y.translations.keyboardNavigation), 1)], 8, He),
|
|
861
|
+
or.value?.rows?.length ? (S(), p(xe, {
|
|
847
862
|
key: 0,
|
|
848
|
-
uid:
|
|
849
|
-
head:
|
|
850
|
-
body:
|
|
863
|
+
uid: j.value,
|
|
864
|
+
head: or.value.headers,
|
|
865
|
+
body: or.value.rows,
|
|
851
866
|
notice: B.value.a11y.translations.tableAvailable,
|
|
852
867
|
caption: B.value.a11y.translations.tableCaption
|
|
853
868
|
}, null, 8, [
|
|
@@ -856,22 +871,22 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
856
871
|
"body",
|
|
857
872
|
"notice",
|
|
858
873
|
"caption"
|
|
859
|
-
])) :
|
|
860
|
-
B.value.userOptions.buttons.annotator &&
|
|
874
|
+
])) : m("", !0),
|
|
875
|
+
B.value.userOptions.buttons.annotator && D(U) ? (S(), p(D(St), {
|
|
861
876
|
key: 1,
|
|
862
877
|
color: B.value.style.chart.color,
|
|
863
878
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
864
879
|
active: X.value,
|
|
865
|
-
svgRef:
|
|
880
|
+
svgRef: D(U),
|
|
866
881
|
isCursorPointer: V.value,
|
|
867
|
-
onClose:
|
|
882
|
+
onClose: zn
|
|
868
883
|
}, {
|
|
869
|
-
"annotator-action-close":
|
|
870
|
-
"annotator-action-color":
|
|
871
|
-
"annotator-action-draw":
|
|
872
|
-
"annotator-action-undo":
|
|
873
|
-
"annotator-action-redo":
|
|
874
|
-
"annotator-action-delete":
|
|
884
|
+
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
885
|
+
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
886
|
+
"annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
|
|
887
|
+
"annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
|
|
888
|
+
"annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
|
|
889
|
+
"annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
|
|
875
890
|
_: 3
|
|
876
891
|
}, 8, [
|
|
877
892
|
"color",
|
|
@@ -879,21 +894,21 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
879
894
|
"active",
|
|
880
895
|
"svgRef",
|
|
881
896
|
"isCursorPointer"
|
|
882
|
-
])) :
|
|
883
|
-
|
|
884
|
-
|
|
897
|
+
])) : m("", !0),
|
|
898
|
+
T(e.$slots, "userConfig", {}, void 0, !0),
|
|
899
|
+
sn.value ? (S(), h("div", {
|
|
885
900
|
key: 2,
|
|
886
901
|
ref_key: "noTitle",
|
|
887
902
|
ref: Nt,
|
|
888
903
|
class: "vue-data-ui-no-title-space",
|
|
889
904
|
style: "height:36px; width: 100%;background:transparent"
|
|
890
|
-
}, null, 512)) :
|
|
891
|
-
B.value.style.chart.title.text ? (
|
|
905
|
+
}, null, 512)) : m("", !0),
|
|
906
|
+
B.value.style.chart.title.text ? (S(), h("div", {
|
|
892
907
|
key: 3,
|
|
893
908
|
ref_key: "chartTitle",
|
|
894
909
|
ref: At,
|
|
895
910
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
896
|
-
}, [(
|
|
911
|
+
}, [(S(), p(ge, {
|
|
897
912
|
key: `title_${Pt.value}`,
|
|
898
913
|
config: {
|
|
899
914
|
title: {
|
|
@@ -905,17 +920,17 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
905
920
|
...B.value.style.chart.title.subtitle
|
|
906
921
|
}
|
|
907
922
|
}
|
|
908
|
-
}, null, 8, ["config"]))], 512)) :
|
|
909
|
-
|
|
910
|
-
B.value.userOptions.show &&
|
|
923
|
+
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
924
|
+
g("div", { id: `legend-top-${j.value}` }, null, 8, Ue),
|
|
925
|
+
B.value.userOptions.show && A.value && (D(Yt) || D(qt)) ? (S(), p(D(Ct), {
|
|
911
926
|
ref_key: "userOptionsRef",
|
|
912
|
-
ref:
|
|
927
|
+
ref: Bt,
|
|
913
928
|
key: `user_option_${kt.value}`,
|
|
914
929
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
915
930
|
color: B.value.style.chart.color,
|
|
916
|
-
isPrinting:
|
|
917
|
-
isImaging:
|
|
918
|
-
uid:
|
|
931
|
+
isPrinting: D(Xt),
|
|
932
|
+
isImaging: D(Zt),
|
|
933
|
+
uid: j.value,
|
|
919
934
|
hasTooltip: !1,
|
|
920
935
|
hasPdf: B.value.userOptions.buttons.pdf,
|
|
921
936
|
hasImg: B.value.userOptions.buttons.img,
|
|
@@ -925,8 +940,8 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
925
940
|
hasLabel: !1,
|
|
926
941
|
hasFullscreen: B.value.userOptions.buttons.fullscreen,
|
|
927
942
|
hasAltCopy: B.value.userOptions.buttons.altCopy,
|
|
928
|
-
isFullscreen:
|
|
929
|
-
chartElement:
|
|
943
|
+
isFullscreen: kn.value,
|
|
944
|
+
chartElement: F.value,
|
|
930
945
|
position: B.value.userOptions.position,
|
|
931
946
|
titles: { ...B.value.userOptions.buttonTitles },
|
|
932
947
|
hasAnnotator: B.value.userOptions.buttons.annotator,
|
|
@@ -935,19 +950,19 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
935
950
|
printScale: B.value.userOptions.print.scale,
|
|
936
951
|
tableDialog: B.value.table.useDialog,
|
|
937
952
|
isCursorPointer: V.value,
|
|
938
|
-
onToggleFullscreen:
|
|
939
|
-
onGeneratePdf:
|
|
940
|
-
onGenerateCsv:
|
|
941
|
-
onGenerateImage:
|
|
942
|
-
onGenerateSvg:
|
|
943
|
-
onToggleTable:
|
|
944
|
-
onToggleAnnotator:
|
|
945
|
-
onCopyAlt:
|
|
946
|
-
style:
|
|
953
|
+
onToggleFullscreen: An,
|
|
954
|
+
onGeneratePdf: D(Qt),
|
|
955
|
+
onGenerateCsv: qn,
|
|
956
|
+
onGenerateImage: rr,
|
|
957
|
+
onGenerateSvg: nr,
|
|
958
|
+
onToggleTable: Bn,
|
|
959
|
+
onToggleAnnotator: zn,
|
|
960
|
+
onCopyAlt: ir,
|
|
961
|
+
style: x({ visibility: D(Yt) ? D(qt) ? "visible" : "hidden" : "visible" })
|
|
947
962
|
}, De({ _: 2 }, [
|
|
948
963
|
e.$slots.menuIcon ? {
|
|
949
964
|
name: "menuIcon",
|
|
950
|
-
fn:
|
|
965
|
+
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
|
|
951
966
|
isOpen: t,
|
|
952
967
|
color: n
|
|
953
968
|
})), void 0, !0)]),
|
|
@@ -955,32 +970,32 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
955
970
|
} : void 0,
|
|
956
971
|
e.$slots.optionPdf ? {
|
|
957
972
|
name: "optionPdf",
|
|
958
|
-
fn:
|
|
973
|
+
fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
959
974
|
key: "1"
|
|
960
975
|
} : void 0,
|
|
961
976
|
e.$slots.optionCsv ? {
|
|
962
977
|
name: "optionCsv",
|
|
963
|
-
fn:
|
|
978
|
+
fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
964
979
|
key: "2"
|
|
965
980
|
} : void 0,
|
|
966
981
|
e.$slots.optionImg ? {
|
|
967
982
|
name: "optionImg",
|
|
968
|
-
fn:
|
|
983
|
+
fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
969
984
|
key: "3"
|
|
970
985
|
} : void 0,
|
|
971
986
|
e.$slots.optionSvg ? {
|
|
972
987
|
name: "optionSvg",
|
|
973
|
-
fn:
|
|
988
|
+
fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
974
989
|
key: "4"
|
|
975
990
|
} : void 0,
|
|
976
991
|
e.$slots.optionTable ? {
|
|
977
992
|
name: "optionTable",
|
|
978
|
-
fn:
|
|
993
|
+
fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
979
994
|
key: "5"
|
|
980
995
|
} : void 0,
|
|
981
996
|
e.$slots.optionFullscreen ? {
|
|
982
997
|
name: "optionFullscreen",
|
|
983
|
-
fn:
|
|
998
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
|
|
984
999
|
toggleFullscreen: t,
|
|
985
1000
|
isFullscreen: n
|
|
986
1001
|
})), void 0, !0)]),
|
|
@@ -988,7 +1003,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
988
1003
|
} : void 0,
|
|
989
1004
|
e.$slots.optionAnnotator ? {
|
|
990
1005
|
name: "optionAnnotator",
|
|
991
|
-
fn:
|
|
1006
|
+
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
|
|
992
1007
|
toggleAnnotator: t,
|
|
993
1008
|
isAnnotator: n
|
|
994
1009
|
})), void 0, !0)]),
|
|
@@ -996,17 +1011,17 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
996
1011
|
} : void 0,
|
|
997
1012
|
e.$slots.optionAltCopy ? {
|
|
998
1013
|
name: "optionAltCopy",
|
|
999
|
-
fn:
|
|
1014
|
+
fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
|
|
1000
1015
|
key: "8"
|
|
1001
1016
|
} : void 0,
|
|
1002
1017
|
e.$slots["custom-menu-before"] ? {
|
|
1003
1018
|
name: "custom-menu-before",
|
|
1004
|
-
fn:
|
|
1019
|
+
fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1005
1020
|
key: "9"
|
|
1006
1021
|
} : void 0,
|
|
1007
1022
|
e.$slots["custom-menu-after"] ? {
|
|
1008
1023
|
name: "custom-menu-after",
|
|
1009
|
-
fn:
|
|
1024
|
+
fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1010
1025
|
key: "10"
|
|
1011
1026
|
} : void 0
|
|
1012
1027
|
]), 1032, [
|
|
@@ -1034,161 +1049,152 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
1034
1049
|
"isCursorPointer",
|
|
1035
1050
|
"onGeneratePdf",
|
|
1036
1051
|
"style"
|
|
1037
|
-
])) :
|
|
1038
|
-
(
|
|
1039
|
-
xmlns:
|
|
1052
|
+
])) : m("", !0),
|
|
1053
|
+
(S(), h("svg", {
|
|
1054
|
+
xmlns: D(ie),
|
|
1040
1055
|
ref_key: "svgRef",
|
|
1041
1056
|
ref: U,
|
|
1042
1057
|
viewBox: `0 0 ${G.value.width} ${G.value.height}`,
|
|
1043
|
-
"aria-describedby": `chart-instructions-${
|
|
1058
|
+
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1044
1059
|
tabindex: "0",
|
|
1045
1060
|
preserveAspectRatio: "xMidYMid meet",
|
|
1046
1061
|
style: { overflow: "visible" },
|
|
1047
|
-
class:
|
|
1048
|
-
"vue-ui-chord-rotating":
|
|
1049
|
-
"vue-ui-chord-idle": !
|
|
1062
|
+
class: y({
|
|
1063
|
+
"vue-ui-chord-rotating": xn.value,
|
|
1064
|
+
"vue-ui-chord-idle": !xn.value
|
|
1050
1065
|
}),
|
|
1051
|
-
onMousedown: ze(
|
|
1052
|
-
onTouchstart: ze(
|
|
1053
|
-
onFocus:
|
|
1054
|
-
onBlur:
|
|
1055
|
-
onKeydown:
|
|
1066
|
+
onMousedown: ze(Tn, ["prevent"]),
|
|
1067
|
+
onTouchstart: ze(Tn, ["prevent"]),
|
|
1068
|
+
onFocus: ur,
|
|
1069
|
+
onBlur: dr,
|
|
1070
|
+
onKeydown: fr
|
|
1056
1071
|
}, [
|
|
1057
|
-
ke(
|
|
1058
|
-
e.$slots["chart-background"] ? (
|
|
1072
|
+
ke(D(xt)),
|
|
1073
|
+
e.$slots["chart-background"] ? (S(), h("foreignObject", {
|
|
1059
1074
|
key: 0,
|
|
1060
1075
|
x: 0,
|
|
1061
1076
|
y: 0,
|
|
1062
1077
|
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1063
1078
|
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1064
1079
|
style: { pointerEvents: "none" }
|
|
1065
|
-
}, [
|
|
1066
|
-
B.value.style.chart.arcs.labels.curved ? (
|
|
1080
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : m("", !0),
|
|
1081
|
+
B.value.style.chart.arcs.labels.curved ? (S(), h("defs", Ke, [(S(!0), h(d, null, w(J.value.groups, (e, t) => (S(), h("path", {
|
|
1067
1082
|
key: `labelPath-${t}`,
|
|
1068
|
-
id: `labelPath-${t}_${
|
|
1069
|
-
d:
|
|
1083
|
+
id: `labelPath-${t}_${j.value}`,
|
|
1084
|
+
d: bn(e.startAngle, e.endAngle, (K.value.inner + K.value.outer) / 2 + B.value.style.chart.arcs.labels.offset),
|
|
1070
1085
|
fill: "none"
|
|
1071
|
-
}, null, 8, qe))), 128))])) :
|
|
1072
|
-
e.$slots.pattern ? (
|
|
1086
|
+
}, null, 8, qe))), 128))])) : m("", !0),
|
|
1087
|
+
e.$slots.pattern ? (S(), h("g", Je, [(S(!0), h(d, null, w(J.value.groups, (t, n) => (S(), h("defs", null, [T(e.$slots, "pattern", Ae({ ref_for: !0 }, {
|
|
1073
1088
|
seriesIndex: t.index,
|
|
1074
|
-
patternId: `pattern_${
|
|
1075
|
-
}), void 0, !0)]))), 256))])) :
|
|
1076
|
-
|
|
1077
|
-
(
|
|
1078
|
-
class:
|
|
1089
|
+
patternId: `pattern_${j.value}_${n}`
|
|
1090
|
+
}), void 0, !0)]))), 256))])) : m("", !0),
|
|
1091
|
+
g("g", { transform: `translate(${G.value.width / 2}, ${G.value.height / 2}) rotate(${Y.value})` }, [
|
|
1092
|
+
(S(!0), h(d, null, w(J.value.groups, (t, n) => (S(), h("g", null, [(S(), h("path", {
|
|
1093
|
+
class: y({
|
|
1079
1094
|
"vue-ui-chord-arc": !0,
|
|
1080
|
-
"vue-ui-chord-arc-animated": B.value.useCssAnimation && !
|
|
1095
|
+
"vue-ui-chord-arc-animated": B.value.useCssAnimation && !Lt.value
|
|
1081
1096
|
}),
|
|
1082
1097
|
key: `arc-${n}`,
|
|
1083
|
-
d:
|
|
1098
|
+
d: pn(t.startAngle, t.endAngle, K.value.outer, K.value.inner),
|
|
1084
1099
|
fill: q.value.colors[n],
|
|
1085
1100
|
stroke: B.value.style.chart.arcs.stroke,
|
|
1086
1101
|
"stroke-width": B.value.style.chart.arcs.strokeWidth,
|
|
1087
1102
|
"stroke-linecap": "round",
|
|
1088
1103
|
"stroke-linejoin": "round",
|
|
1089
|
-
style:
|
|
1090
|
-
onMouseenter: (e) =>
|
|
1091
|
-
onMouseleave: (e) =>
|
|
1092
|
-
onClick: (e) =>
|
|
1093
|
-
}, null, 46, Xe)), e.$slots.pattern ? (
|
|
1094
|
-
class:
|
|
1104
|
+
style: x({ opacity: Rn(t) }),
|
|
1105
|
+
onMouseenter: (e) => jn(t, n),
|
|
1106
|
+
onMouseleave: (e) => Mn(t, n),
|
|
1107
|
+
onClick: (e) => Nn(t, n)
|
|
1108
|
+
}, null, 46, Xe)), e.$slots.pattern ? (S(), h("path", {
|
|
1109
|
+
class: y({
|
|
1095
1110
|
"vue-ui-chord-arc": !0,
|
|
1096
|
-
"vue-ui-chord-arc-animated": B.value.useCssAnimation && !
|
|
1111
|
+
"vue-ui-chord-arc-animated": B.value.useCssAnimation && !Lt.value
|
|
1097
1112
|
}),
|
|
1098
1113
|
key: `arc-${n}`,
|
|
1099
|
-
d:
|
|
1114
|
+
d: pn(t.startAngle, t.endAngle, K.value.outer, K.value.inner),
|
|
1100
1115
|
fill: `url(#${t.pattern})`,
|
|
1101
1116
|
stroke: B.value.style.chart.arcs.stroke,
|
|
1102
1117
|
"stroke-width": B.value.style.chart.arcs.strokeWidth,
|
|
1103
1118
|
"stroke-linecap": "round",
|
|
1104
1119
|
"stroke-linejoin": "round",
|
|
1105
|
-
style:
|
|
1106
|
-
opacity:
|
|
1120
|
+
style: x({
|
|
1121
|
+
opacity: Rn(t),
|
|
1107
1122
|
pointerEvents: "none"
|
|
1108
1123
|
})
|
|
1109
|
-
}, null, 14, Ze)) :
|
|
1110
|
-
|
|
1111
|
-
(
|
|
1112
|
-
t.source.value ? (
|
|
1124
|
+
}, null, 14, Ze)) : m("", !0)]))), 256)),
|
|
1125
|
+
g("g", null, [
|
|
1126
|
+
(S(!0), h(d, null, w(M.value ? J.value.chords.filter((e) => e.source.groupId === M.value.id) : P.value ? J.value.chords.filter((e) => e.source.groupId === P.value) : J.value.chords, (t, n) => (S(), h(d, { key: `ribbon-${t.id}` }, [
|
|
1127
|
+
t.source.value ? (S(), h("path", {
|
|
1113
1128
|
key: 0,
|
|
1114
|
-
class:
|
|
1115
|
-
|
|
1116
|
-
"vue-ui-chord-ribbon-animated": B.value.useCssAnimation && !F.value
|
|
1117
|
-
}),
|
|
1118
|
-
d: pn(t.source, t.target),
|
|
1129
|
+
class: y({ "vue-ui-chord-ribbon": !0 }),
|
|
1130
|
+
d: mn(t.source, t.target),
|
|
1119
1131
|
fill: B.value.style.chart.backgroundColor,
|
|
1120
|
-
style:
|
|
1121
|
-
}, null,
|
|
1122
|
-
t.source.value ? (
|
|
1132
|
+
style: x({ opacity: B.value.style.chart.ribbons.underlayerOpacity })
|
|
1133
|
+
}, null, 12, Qe)) : m("", !0),
|
|
1134
|
+
t.source.value ? (S(), h("path", {
|
|
1123
1135
|
key: 1,
|
|
1124
|
-
class:
|
|
1125
|
-
|
|
1126
|
-
"vue-ui-chord-ribbon-animated": B.value.useCssAnimation && !F.value
|
|
1127
|
-
}),
|
|
1128
|
-
d: pn(t.source, t.target),
|
|
1136
|
+
class: y({ "vue-ui-chord-ribbon": !0 }),
|
|
1137
|
+
d: mn(t.source, t.target),
|
|
1129
1138
|
fill: q.value.colors[t.source.index],
|
|
1130
1139
|
stroke: B.value.style.chart.ribbons.stroke,
|
|
1131
1140
|
"stroke-width": B.value.style.chart.ribbons.strokeWidth,
|
|
1132
1141
|
"stroke-linecap": "round",
|
|
1133
1142
|
"stroke-linejoin": "round",
|
|
1134
|
-
style:
|
|
1135
|
-
onMouseenter: (e) =>
|
|
1143
|
+
style: x({ opacity: Ln(t) }),
|
|
1144
|
+
onMouseenter: (e) => Pn({
|
|
1136
1145
|
...t,
|
|
1137
|
-
path:
|
|
1146
|
+
path: mn(t.source, t.target),
|
|
1138
1147
|
color: q.value.colors[t.source.index]
|
|
1139
1148
|
}, n),
|
|
1140
|
-
onClick: (e) =>
|
|
1149
|
+
onClick: (e) => In({
|
|
1141
1150
|
...t,
|
|
1142
1151
|
color: q.value.colors[t.source.index]
|
|
1143
1152
|
}, n),
|
|
1144
|
-
onMouseleave: (e) =>
|
|
1153
|
+
onMouseleave: (e) => Fn({
|
|
1145
1154
|
...t,
|
|
1146
1155
|
color: q.value.colors[t.source.index]
|
|
1147
1156
|
}, n)
|
|
1148
|
-
}, null,
|
|
1149
|
-
t.source.value && e.$slots.pattern ? (
|
|
1157
|
+
}, null, 44, $e)) : m("", !0),
|
|
1158
|
+
t.source.value && e.$slots.pattern ? (S(), h("path", {
|
|
1150
1159
|
key: 2,
|
|
1151
|
-
class:
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
}),
|
|
1155
|
-
d: pn(t.source, t.target),
|
|
1156
|
-
fill: `url(#pattern_${A.value}_${t.source.index})`,
|
|
1160
|
+
class: y({ "vue-ui-chord-ribbon": !0 }),
|
|
1161
|
+
d: mn(t.source, t.target),
|
|
1162
|
+
fill: `url(#pattern_${j.value}_${t.source.index})`,
|
|
1157
1163
|
stroke: B.value.style.chart.ribbons.stroke,
|
|
1158
1164
|
"stroke-width": B.value.style.chart.ribbons.strokeWidth,
|
|
1159
1165
|
"stroke-linecap": "round",
|
|
1160
1166
|
"stroke-linejoin": "round",
|
|
1161
|
-
style:
|
|
1162
|
-
opacity:
|
|
1167
|
+
style: x({
|
|
1168
|
+
opacity: Ln(t),
|
|
1163
1169
|
pointerEvents: "none"
|
|
1164
1170
|
})
|
|
1165
|
-
}, null,
|
|
1171
|
+
}, null, 12, et)) : m("", !0)
|
|
1166
1172
|
], 64))), 128)),
|
|
1167
|
-
|
|
1173
|
+
N.value ? (S(), h("path", {
|
|
1168
1174
|
key: 0,
|
|
1169
|
-
d:
|
|
1170
|
-
fill:
|
|
1175
|
+
d: N.value.path,
|
|
1176
|
+
fill: N.value.color,
|
|
1171
1177
|
stroke: B.value.style.chart.ribbons.stroke,
|
|
1172
1178
|
"stroke-width": B.value.style.chart.ribbons.strokeWidth,
|
|
1173
1179
|
"stroke-linecap": "round",
|
|
1174
1180
|
"stroke-linejoin": "round",
|
|
1175
|
-
class:
|
|
1181
|
+
class: y({ "vue-ui-chord-ribbon": !0 }),
|
|
1176
1182
|
style: { pointerEvents: "none" }
|
|
1177
|
-
}, null, 8, tt)) :
|
|
1178
|
-
|
|
1183
|
+
}, null, 8, tt)) : m("", !0),
|
|
1184
|
+
N.value && e.$slots.pattern ? (S(), h("path", {
|
|
1179
1185
|
key: 1,
|
|
1180
|
-
d:
|
|
1181
|
-
fill: `url(#${
|
|
1186
|
+
d: N.value.path,
|
|
1187
|
+
fill: `url(#${N.value.source.pattern})`,
|
|
1182
1188
|
stroke: B.value.style.chart.ribbons.stroke,
|
|
1183
1189
|
"stroke-width": B.value.style.chart.ribbons.strokeWidth,
|
|
1184
1190
|
"stroke-linecap": "round",
|
|
1185
1191
|
"stroke-linejoin": "round",
|
|
1186
|
-
class:
|
|
1192
|
+
class: y({ "vue-ui-chord-ribbon": !0 }),
|
|
1187
1193
|
style: { pointerEvents: "none" }
|
|
1188
|
-
}, null, 8, nt)) :
|
|
1194
|
+
}, null, 8, nt)) : m("", !0)
|
|
1189
1195
|
]),
|
|
1190
|
-
(
|
|
1191
|
-
|
|
1196
|
+
(M.value || N.value || P.value) && B.value.style.chart.ribbons.labels.show ? (S(), h("g", rt, [(S(!0), h(d, null, w(fn.value, (e) => (S(), h(d, { key: e.id }, [
|
|
1197
|
+
g("line", {
|
|
1192
1198
|
x1: e.midBaseX,
|
|
1193
1199
|
y1: e.midBaseY,
|
|
1194
1200
|
x2: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
|
|
@@ -1197,7 +1203,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
1197
1203
|
"stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
|
|
1198
1204
|
"pointer-events": "none"
|
|
1199
1205
|
}, null, 8, it),
|
|
1200
|
-
|
|
1206
|
+
g("line", {
|
|
1201
1207
|
x1: e.midBaseX,
|
|
1202
1208
|
y1: e.midBaseY,
|
|
1203
1209
|
x2: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
|
|
@@ -1206,7 +1212,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
1206
1212
|
"stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth,
|
|
1207
1213
|
"pointer-events": "none"
|
|
1208
1214
|
}, null, 8, at),
|
|
1209
|
-
B.value.style.chart.ribbons.labels.marker.show ? (
|
|
1215
|
+
B.value.style.chart.ribbons.labels.marker.show ? (S(), h("circle", {
|
|
1210
1216
|
key: 0,
|
|
1211
1217
|
cx: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
|
|
1212
1218
|
cy: Math.sin(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
|
|
@@ -1215,8 +1221,8 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
1215
1221
|
"stroke-width": B.value.style.chart.ribbons.labels.marker.strokeWidth,
|
|
1216
1222
|
fill: e.groupColor,
|
|
1217
1223
|
"pointer-events": "none"
|
|
1218
|
-
}, null, 8, ot)) :
|
|
1219
|
-
|
|
1224
|
+
}, null, 8, ot)) : m("", !0),
|
|
1225
|
+
g("text", {
|
|
1220
1226
|
transform: `
|
|
1221
1227
|
translate(
|
|
1222
1228
|
${Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 24)},
|
|
@@ -1224,83 +1230,83 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
1224
1230
|
) rotate(${-Y.value})
|
|
1225
1231
|
`,
|
|
1226
1232
|
fill: B.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : B.value.style.chart.ribbons.labels.color,
|
|
1227
|
-
"text-anchor":
|
|
1233
|
+
"text-anchor": vn(e.theta),
|
|
1228
1234
|
"font-size": B.value.style.chart.ribbons.labels.fontSize,
|
|
1229
1235
|
"font-weight": B.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
1230
1236
|
dy: ".35em",
|
|
1231
1237
|
"pointer-events": "none"
|
|
1232
|
-
},
|
|
1233
|
-
], 64))), 128))])) :
|
|
1234
|
-
B.value.style.chart.arcs.labels.show ? (
|
|
1238
|
+
}, E(On(e.value)), 9, st)
|
|
1239
|
+
], 64))), 128))])) : m("", !0),
|
|
1240
|
+
B.value.style.chart.arcs.labels.show ? (S(), h("g", ct, [B.value.style.chart.arcs.labels.curved ? (S(!0), h(d, { key: 0 }, w(J.value.groups, (e, t) => (S(), h("text", {
|
|
1235
1241
|
class: "vue-ui-chord-label-curved",
|
|
1236
1242
|
key: `curved-label-${t}`,
|
|
1237
1243
|
"font-size": B.value.style.chart.arcs.labels.fontSize,
|
|
1238
1244
|
"font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
1239
|
-
fill: B.value.style.chart.arcs.labels.adaptColorToBackground ?
|
|
1240
|
-
}, [
|
|
1241
|
-
href: `#labelPath-${t}_${
|
|
1245
|
+
fill: B.value.style.chart.arcs.labels.adaptColorToBackground ? D(re)(q.value.colors[t]) : B.value.style.chart.arcs.labels.color
|
|
1246
|
+
}, [g("textPath", {
|
|
1247
|
+
href: `#labelPath-${t}_${j.value}`,
|
|
1242
1248
|
startOffset: "50%",
|
|
1243
1249
|
"text-anchor": "middle"
|
|
1244
|
-
},
|
|
1250
|
+
}, E(q.value.labels[t]) + E(B.value.style.chart.arcs.labels.showPercentage ? D(c)({
|
|
1245
1251
|
p: " (",
|
|
1246
1252
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
1247
1253
|
s: "%)",
|
|
1248
1254
|
r: B.value.style.chart.arcs.labels.roundingPercentage
|
|
1249
|
-
}) : ""), 9, ut)], 8, lt))), 128)) : !
|
|
1255
|
+
}) : ""), 9, ut)], 8, lt))), 128)) : !M.value && !N.value && !P.value ? (S(!0), h(d, { key: 1 }, w(J.value.groups, (e, t) => (S(), h("text", {
|
|
1250
1256
|
class: "vue-ui-chord-label-straight",
|
|
1251
1257
|
key: `label-${t}`,
|
|
1252
1258
|
transform: `
|
|
1253
|
-
${
|
|
1259
|
+
${yn((e.startAngle + e.endAngle) / 2)}
|
|
1254
1260
|
rotate(${-Y.value})
|
|
1255
1261
|
`,
|
|
1256
1262
|
dy: ".35em",
|
|
1257
|
-
"text-anchor":
|
|
1263
|
+
"text-anchor": _n(e) > Math.PI ? "end" : "start",
|
|
1258
1264
|
"font-size": B.value.style.chart.arcs.labels.fontSize,
|
|
1259
1265
|
"font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
1260
1266
|
fill: B.value.style.chart.arcs.labels.color,
|
|
1261
|
-
innerHTML:
|
|
1262
|
-
content:
|
|
1267
|
+
innerHTML: D(i)({
|
|
1268
|
+
content: D(l)(Yn(e, t)),
|
|
1263
1269
|
fontSize: B.value.style.chart.arcs.labels.fontSize,
|
|
1264
1270
|
fill: B.value.style.chart.arcs.labels.color,
|
|
1265
1271
|
x: 0,
|
|
1266
1272
|
y: 0
|
|
1267
1273
|
})
|
|
1268
|
-
}, null, 8, dt))), 128)) :
|
|
1274
|
+
}, null, 8, dt))), 128)) : m("", !0)])) : m("", !0)
|
|
1269
1275
|
], 8, Ye),
|
|
1270
|
-
|
|
1276
|
+
T(e.$slots, "svg", { svg: {
|
|
1271
1277
|
height: 600,
|
|
1272
1278
|
width: 600,
|
|
1273
|
-
isPrintingImg:
|
|
1274
|
-
isPrintingSvg:
|
|
1279
|
+
isPrintingImg: D(Xt) || D(Zt) || Vt.value,
|
|
1280
|
+
isPrintingSvg: Ht.value
|
|
1275
1281
|
} }, void 0, !0)
|
|
1276
1282
|
], 42, We)),
|
|
1277
|
-
e.$slots.hint ? (
|
|
1283
|
+
e.$slots.hint ? (S(), h("div", ft, [T(e.$slots, "hint", b(v({
|
|
1278
1284
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
1279
|
-
isVisible:
|
|
1280
|
-
})), void 0, !0)])) :
|
|
1281
|
-
e.$slots.watermark ? (
|
|
1282
|
-
|
|
1283
|
-
|
|
1285
|
+
isVisible: Ut.value
|
|
1286
|
+
})), void 0, !0)])) : m("", !0),
|
|
1287
|
+
e.$slots.watermark ? (S(), h("div", pt, [T(e.$slots, "watermark", b(v({ isPrinting: D(Xt) || D(Zt) || Vt.value || Ht.value })), void 0, !0)])) : m("", !0),
|
|
1288
|
+
g("div", { id: `legend-bottom-${j.value}` }, null, 8, mt),
|
|
1289
|
+
Rt.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(Ee, {
|
|
1284
1290
|
key: 7,
|
|
1285
|
-
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1286
|
-
}, [
|
|
1291
|
+
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
|
|
1292
|
+
}, [g("div", {
|
|
1287
1293
|
ref_key: "chartLegend",
|
|
1288
1294
|
ref: jt
|
|
1289
|
-
}, [
|
|
1295
|
+
}, [T(e.$slots, "legend", { legend: Wn.value }, () => [B.value.style.chart.legend.show ? (S(), p(we, {
|
|
1290
1296
|
key: `legend_${It.value}`,
|
|
1291
|
-
legendSet:
|
|
1292
|
-
config:
|
|
1297
|
+
legendSet: Wn.value,
|
|
1298
|
+
config: Gn.value,
|
|
1293
1299
|
isCursorPointer: V.value,
|
|
1294
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1300
|
+
onClickMarker: t[0] ||= ({ legend: e }) => Un(e.id)
|
|
1295
1301
|
}, De({
|
|
1296
|
-
item:
|
|
1297
|
-
style:
|
|
1302
|
+
item: O(({ legend: e }) => [g("div", {
|
|
1303
|
+
style: x({ opacity: P.value ? P.value === e.id ? 1 : .3 : 1 }),
|
|
1298
1304
|
onClick: (t) => e.select()
|
|
1299
|
-
},
|
|
1305
|
+
}, E(e.name), 13, ht)]),
|
|
1300
1306
|
_: 2
|
|
1301
1307
|
}, [e.$slots.pattern ? {
|
|
1302
1308
|
name: "legend-pattern",
|
|
1303
|
-
fn:
|
|
1309
|
+
fn: O(({ legend: e, index: t }) => [ke(_e, {
|
|
1304
1310
|
shape: e.shape,
|
|
1305
1311
|
radius: 30,
|
|
1306
1312
|
stroke: "none",
|
|
@@ -1308,52 +1314,52 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
1308
1314
|
x: 30,
|
|
1309
1315
|
y: 30
|
|
1310
1316
|
},
|
|
1311
|
-
fill: `url(#pattern_${
|
|
1317
|
+
fill: `url(#pattern_${j.value}_${t})`
|
|
1312
1318
|
}, null, 8, ["shape", "fill"])]),
|
|
1313
1319
|
key: "0"
|
|
1314
1320
|
} : void 0]), 1032, [
|
|
1315
1321
|
"legendSet",
|
|
1316
1322
|
"config",
|
|
1317
1323
|
"isCursorPointer"
|
|
1318
|
-
])) :
|
|
1319
|
-
e.$slots.source ? (
|
|
1324
|
+
])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
|
|
1325
|
+
e.$slots.source ? (S(), h("div", {
|
|
1320
1326
|
key: 8,
|
|
1321
1327
|
ref_key: "source",
|
|
1322
1328
|
ref: Mt,
|
|
1323
1329
|
dir: "auto"
|
|
1324
|
-
}, [
|
|
1325
|
-
Y.value === B.value.initialRotation ?
|
|
1330
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1331
|
+
Y.value === B.value.initialRotation ? m("", !0) : (S(), h("div", gt, [T(e.$slots, "reset-action", { reset: Hn }, () => [g("button", {
|
|
1326
1332
|
"data-cy-reset": "",
|
|
1327
1333
|
tabindex: "0",
|
|
1328
1334
|
role: "button",
|
|
1329
1335
|
class: "vue-data-ui-refresh-button",
|
|
1330
|
-
style:
|
|
1336
|
+
style: x({
|
|
1331
1337
|
background: B.value.style.chart.backgroundColor,
|
|
1332
1338
|
cursor: V.value ? "pointer" : "default"
|
|
1333
1339
|
}),
|
|
1334
|
-
onClick:
|
|
1335
|
-
}, [ke(
|
|
1340
|
+
onClick: Hn
|
|
1341
|
+
}, [ke(D(yt), {
|
|
1336
1342
|
name: "refresh",
|
|
1337
1343
|
stroke: B.value.style.chart.color
|
|
1338
1344
|
}, null, 8, ["stroke"])], 4)], !0)])),
|
|
1339
|
-
|
|
1345
|
+
A.value && B.value.userOptions.buttons.table ? (S(), p(Pe(Xn.value.component), Ae({ key: 10 }, Xn.value.props, {
|
|
1340
1346
|
ref_key: "tableUnit",
|
|
1341
|
-
ref:
|
|
1342
|
-
onClose:
|
|
1347
|
+
ref: zt,
|
|
1348
|
+
onClose: Zn
|
|
1343
1349
|
}), De({
|
|
1344
|
-
content:
|
|
1350
|
+
content: O(() => [(S(), p(D(bt), {
|
|
1345
1351
|
key: `table_${Ft.value}`,
|
|
1346
|
-
colNames:
|
|
1347
|
-
head:
|
|
1348
|
-
body:
|
|
1349
|
-
config:
|
|
1350
|
-
title: B.value.table.useDialog ? "" :
|
|
1352
|
+
colNames: Kn.value.colNames,
|
|
1353
|
+
head: Kn.value.head,
|
|
1354
|
+
body: Kn.value.body,
|
|
1355
|
+
config: Kn.value.config,
|
|
1356
|
+
title: B.value.table.useDialog ? "" : Xn.value.title,
|
|
1351
1357
|
withCloseButton: !B.value.table.useDialog,
|
|
1352
1358
|
isCursorPointer: V.value,
|
|
1353
|
-
onClose:
|
|
1359
|
+
onClose: Zn
|
|
1354
1360
|
}, {
|
|
1355
|
-
th:
|
|
1356
|
-
td:
|
|
1361
|
+
th: O(({ th: e }) => [Oe(E(e.name), 1)]),
|
|
1362
|
+
td: O(({ td: e }) => [g("div", _t, E(e.name ? e.name : On(e)), 1)]),
|
|
1357
1363
|
_: 1
|
|
1358
1364
|
}, 8, [
|
|
1359
1365
|
"colNames",
|
|
@@ -1367,24 +1373,24 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
1367
1373
|
_: 2
|
|
1368
1374
|
}, [B.value.table.useDialog ? {
|
|
1369
1375
|
name: "title",
|
|
1370
|
-
fn:
|
|
1376
|
+
fn: O(() => [Oe(E(Xn.value.title), 1)]),
|
|
1371
1377
|
key: "0"
|
|
1372
1378
|
} : void 0, B.value.table.useDialog ? {
|
|
1373
1379
|
name: "actions",
|
|
1374
|
-
fn:
|
|
1380
|
+
fn: O(() => [g("button", {
|
|
1375
1381
|
tabindex: "0",
|
|
1376
1382
|
class: "vue-ui-user-options-button",
|
|
1377
|
-
onClick: t[1] ||= (e) =>
|
|
1378
|
-
style:
|
|
1379
|
-
}, [ke(
|
|
1383
|
+
onClick: t[1] ||= (e) => qn(B.value.userOptions.callbacks.csv),
|
|
1384
|
+
style: x({ cursor: V.value ? "pointer" : "default" })
|
|
1385
|
+
}, [ke(D(yt), {
|
|
1380
1386
|
name: "fileCsv",
|
|
1381
|
-
stroke:
|
|
1387
|
+
stroke: Xn.value.props.color
|
|
1382
1388
|
}, null, 8, ["stroke"])], 4)]),
|
|
1383
1389
|
key: "1"
|
|
1384
|
-
} : void 0]), 1040)) :
|
|
1385
|
-
|
|
1390
|
+
} : void 0]), 1040)) : m("", !0),
|
|
1391
|
+
T(e.$slots, "skeleton", {}, () => [D(Gt) ? (S(), p(de, { key: 0 })) : m("", !0)], !0)
|
|
1386
1392
|
], 46, Ve));
|
|
1387
1393
|
}
|
|
1388
|
-
}, [["__scopeId", "data-v-
|
|
1394
|
+
}, [["__scopeId", "data-v-268ddfaa"]]);
|
|
1389
1395
|
//#endregion
|
|
1390
1396
|
export { Be as n, vt as t };
|