vue-data-ui 3.25.5 → 3.25.6
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/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.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 +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-label.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/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
- 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 +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -0,0 +1,873 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Mt as t, Pt as n, Wt as r, X as i, Zt as a, b as o, i as s, jt as c, nt as l, q as u, t as d } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as f, t as p } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as m } from "./useConfig-CIQZ6_r7.js";
|
|
5
|
+
import { t as h } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { n as g, t as _ } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as v } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
+
import { t as y } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ee } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as b } from "./img-DhGApYG0.js";
|
|
11
|
+
import { n as te } from "./Title-CPHi-evi.js";
|
|
12
|
+
import { t as ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as re, t as ie } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as se } from "./usePrefersMotion-BC-CsqR1.js";
|
|
17
|
+
import { t as ce } from "./vue_ui_wheel-DZ_nR--t.js";
|
|
18
|
+
import { Fragment as x, computed as S, createBlock as le, createCommentVNode as C, createElementBlock as w, createElementVNode as ue, createSlots as de, createVNode as fe, defineAsyncComponent as pe, guardReactiveProps as T, normalizeClass as E, normalizeProps as D, normalizeStyle as me, onBeforeUnmount as he, onMounted as ge, openBlock as O, ref as k, renderList as A, renderSlot as j, shallowRef as _e, toDisplayString as ve, toRefs as ye, unref as M, useCssVars as be, watch as xe, withCtx as N } from "vue";
|
|
19
|
+
//#region src/components/vue-ui-wheel.vue
|
|
20
|
+
var Se = /* @__PURE__ */ e({ default: () => Ue }), Ce = ["id"], we = [
|
|
21
|
+
"xmlns",
|
|
22
|
+
"viewBox",
|
|
23
|
+
"aria-labelledby",
|
|
24
|
+
"aria-describedby"
|
|
25
|
+
], Te = ["id"], Ee = ["id"], De = [
|
|
26
|
+
"x",
|
|
27
|
+
"y",
|
|
28
|
+
"width",
|
|
29
|
+
"height"
|
|
30
|
+
], Oe = [
|
|
31
|
+
"d",
|
|
32
|
+
"stroke",
|
|
33
|
+
"stroke-width"
|
|
34
|
+
], ke = [
|
|
35
|
+
"cx",
|
|
36
|
+
"cy",
|
|
37
|
+
"r",
|
|
38
|
+
"stroke",
|
|
39
|
+
"stroke-width"
|
|
40
|
+
], Ae = { key: 0 }, je = [
|
|
41
|
+
"x1",
|
|
42
|
+
"y1",
|
|
43
|
+
"x2",
|
|
44
|
+
"y2",
|
|
45
|
+
"stroke",
|
|
46
|
+
"stroke-width",
|
|
47
|
+
"stroke-linecap"
|
|
48
|
+
], Me = [
|
|
49
|
+
"x1",
|
|
50
|
+
"y1",
|
|
51
|
+
"x2",
|
|
52
|
+
"y2",
|
|
53
|
+
"stroke",
|
|
54
|
+
"stroke-width",
|
|
55
|
+
"stroke-linecap"
|
|
56
|
+
], Ne = { key: 1 }, Pe = [
|
|
57
|
+
"d",
|
|
58
|
+
"fill",
|
|
59
|
+
"stroke",
|
|
60
|
+
"stroke-width"
|
|
61
|
+
], Fe = [
|
|
62
|
+
"d",
|
|
63
|
+
"fill",
|
|
64
|
+
"stroke",
|
|
65
|
+
"stroke-width"
|
|
66
|
+
], Ie = [
|
|
67
|
+
"d",
|
|
68
|
+
"fill",
|
|
69
|
+
"stroke",
|
|
70
|
+
"stroke-width"
|
|
71
|
+
], Le = [
|
|
72
|
+
"x1",
|
|
73
|
+
"x2",
|
|
74
|
+
"y1",
|
|
75
|
+
"y2",
|
|
76
|
+
"stroke",
|
|
77
|
+
"stroke-width",
|
|
78
|
+
"stroke-linecap"
|
|
79
|
+
], Re = [
|
|
80
|
+
"d",
|
|
81
|
+
"fill",
|
|
82
|
+
"stroke",
|
|
83
|
+
"stroke-width"
|
|
84
|
+
], ze = ["aria-label"], Be = [
|
|
85
|
+
"x",
|
|
86
|
+
"y",
|
|
87
|
+
"height"
|
|
88
|
+
], Ve = [
|
|
89
|
+
"x",
|
|
90
|
+
"y",
|
|
91
|
+
"font-size",
|
|
92
|
+
"fill",
|
|
93
|
+
"font-weight",
|
|
94
|
+
"stroke",
|
|
95
|
+
"stroke-width"
|
|
96
|
+
], He = {
|
|
97
|
+
key: 4,
|
|
98
|
+
class: "vue-data-ui-watermark"
|
|
99
|
+
}, Ue = /*#__PURE__*/ ne({
|
|
100
|
+
__name: "vue-ui-wheel",
|
|
101
|
+
props: {
|
|
102
|
+
config: {
|
|
103
|
+
type: Object,
|
|
104
|
+
default() {
|
|
105
|
+
return {};
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
dataset: {
|
|
109
|
+
type: Object,
|
|
110
|
+
default() {
|
|
111
|
+
return {};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
emits: ["copyAlt"],
|
|
116
|
+
setup(e, { expose: ne, emit: Se }) {
|
|
117
|
+
be((e) => ({
|
|
118
|
+
v78b20c9c: Rt.value,
|
|
119
|
+
v2df1b502: zt.value,
|
|
120
|
+
v2df19795: Bt.value
|
|
121
|
+
}));
|
|
122
|
+
let Ue = pe(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), We = pe(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Ge = pe(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), { vue_ui_wheel: Ke } = m(), { isThemeValid: qe, warnInvalidTheme: Je } = y(), P = se(), F = e, Ye = Se, Xe = S(() => !!F.dataset && Object.keys(F.dataset).length), I = k(u()), Ze = k(null), Qe = k(0), L = k(null), $e = k(null), et = k(null), tt = k(null), nt = k(0), R = k(ut()), z = S(() => R.value.userOptions), B = S(() => R.value.style.chart.layout.wheel.ticks), V = S(() => R.value.style.chart.layout.wheel), H = S(() => R.value.style.chart);
|
|
123
|
+
f({
|
|
124
|
+
config: () => R.value,
|
|
125
|
+
dataset: () => F.dataset,
|
|
126
|
+
component: "VueUiWheel",
|
|
127
|
+
rules: [p.noHint]
|
|
128
|
+
});
|
|
129
|
+
let rt = S(() => R.value.userOptions.useCursorPointer), it = S(() => a({
|
|
130
|
+
defaultConfig: {
|
|
131
|
+
userOptions: { show: !1 },
|
|
132
|
+
style: { chart: {
|
|
133
|
+
backgroundColor: "#99999930",
|
|
134
|
+
animation: { use: !1 },
|
|
135
|
+
layout: {
|
|
136
|
+
wheel: { ticks: {
|
|
137
|
+
activeColor: "#6A6A6A80",
|
|
138
|
+
inactiveColor: "#CACACA80"
|
|
139
|
+
} },
|
|
140
|
+
innerCircle: { stroke: "#CACACA80" }
|
|
141
|
+
}
|
|
142
|
+
} }
|
|
143
|
+
},
|
|
144
|
+
userConfig: R.value.skeletonConfig ?? {}
|
|
145
|
+
})), { loading: at, FINAL_DATASET: U } = g({
|
|
146
|
+
...ye(F),
|
|
147
|
+
FINAL_CONFIG: R,
|
|
148
|
+
prepareConfig: ut,
|
|
149
|
+
skeletonDataset: F.config?.skeletonDataset ?? { percentage: 50 },
|
|
150
|
+
skeletonConfig: a({
|
|
151
|
+
defaultConfig: R.value,
|
|
152
|
+
userConfig: it.value
|
|
153
|
+
})
|
|
154
|
+
}), { userOptionsVisible: ot, setUserOptionsVisibility: st, keepUserOptionState: ct } = ae({ config: R.value }), { svgRef: lt } = oe({ config: H.value.title });
|
|
155
|
+
function ut() {
|
|
156
|
+
let e = v({
|
|
157
|
+
userConfig: F.config,
|
|
158
|
+
defaultConfig: Ke
|
|
159
|
+
}), t = e.theme;
|
|
160
|
+
if (!t) return e;
|
|
161
|
+
if (!qe.value(e)) return Je(e), e;
|
|
162
|
+
let n = v({
|
|
163
|
+
userConfig: ce[t] || F.config,
|
|
164
|
+
defaultConfig: e
|
|
165
|
+
});
|
|
166
|
+
return v({
|
|
167
|
+
userConfig: F.config,
|
|
168
|
+
defaultConfig: n
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
xe(() => F.config, (e) => {
|
|
172
|
+
R.value = ut(), ot.value = !R.value.userOptions.showOnChartHover, vt(), nt.value += 1;
|
|
173
|
+
}, { deep: !0 });
|
|
174
|
+
let { isPrinting: dt, isImaging: ft, generatePdf: pt, generateImage: mt } = h({
|
|
175
|
+
elementId: I.value,
|
|
176
|
+
fileName: H.value.title.text || "vue-ui-wheel",
|
|
177
|
+
options: R.value.userOptions.print
|
|
178
|
+
}), ht = S(() => R.value.userOptions.show && !H.value.title.text), W = k({
|
|
179
|
+
size: 360,
|
|
180
|
+
height: 360,
|
|
181
|
+
width: 360
|
|
182
|
+
}), G = k(H.value.layout.percentage.fontSize), K = S(() => ({
|
|
183
|
+
radius: Math.min(W.value.width, W.value.height) * .9 / 2 * V.value.radiusRatio,
|
|
184
|
+
centerX: W.value.width / 2,
|
|
185
|
+
centerY: W.value.height / 2
|
|
186
|
+
}));
|
|
187
|
+
function gt(e, t = 1) {
|
|
188
|
+
let n = 29.85;
|
|
189
|
+
return {
|
|
190
|
+
x: K.value.centerX + K.value.radius * Math.cos(n + e * Math.PI / 180) * t,
|
|
191
|
+
y: K.value.centerY + K.value.radius * Math.sin(n + e * Math.PI / 180) * t
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
let q = k(H.value.animation.use && !P.value ? 0 : U.value.percentage || 0);
|
|
195
|
+
xe(() => U.value, (e) => {
|
|
196
|
+
H.value.animation.use && !P.value ? At(e.percentage) : q.value = e.percentage || 0;
|
|
197
|
+
}, { deep: !0 });
|
|
198
|
+
let J = _e(null), Y = _e(null);
|
|
199
|
+
ge(() => {
|
|
200
|
+
vt();
|
|
201
|
+
});
|
|
202
|
+
let _t = S(() => R.value.debug);
|
|
203
|
+
function vt() {
|
|
204
|
+
if (n(F.dataset) && l({
|
|
205
|
+
componentName: "VueUiWheel",
|
|
206
|
+
type: "dataset",
|
|
207
|
+
debug: _t.value
|
|
208
|
+
}), R.value.responsive) {
|
|
209
|
+
let e = re(() => {
|
|
210
|
+
let { width: e, height: t } = ie({
|
|
211
|
+
chart: L.value,
|
|
212
|
+
title: H.value.title.text ? $e.value : null,
|
|
213
|
+
source: et.value,
|
|
214
|
+
noTitle: tt.value
|
|
215
|
+
});
|
|
216
|
+
requestAnimationFrame(() => {
|
|
217
|
+
W.value.width = e, W.value.height = t, G.value = H.value.layout.percentage.fontSize / 360 * Math.min(e, t);
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect()), J.value = new ResizeObserver(e), Y.value = L.value.parentNode, J.value.observe(Y.value);
|
|
221
|
+
}
|
|
222
|
+
At(U.value.percentage || 0), H.value.animation.use && !P.value || (q.value = U.value.percentage || 0);
|
|
223
|
+
}
|
|
224
|
+
he(() => {
|
|
225
|
+
J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect());
|
|
226
|
+
});
|
|
227
|
+
function yt([e, t, n], r) {
|
|
228
|
+
let i = Math.cos(r), a = Math.sin(r);
|
|
229
|
+
return [
|
|
230
|
+
e,
|
|
231
|
+
t * i - n * a,
|
|
232
|
+
t * a + n * i
|
|
233
|
+
];
|
|
234
|
+
}
|
|
235
|
+
function bt([e, t, n], r) {
|
|
236
|
+
let i = r / (r - n);
|
|
237
|
+
return [
|
|
238
|
+
e * i,
|
|
239
|
+
t * i,
|
|
240
|
+
n,
|
|
241
|
+
i
|
|
242
|
+
];
|
|
243
|
+
}
|
|
244
|
+
function xt(e, t) {
|
|
245
|
+
let n = e.replace("#", ""), r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = 1 - Math.min(1, Math.max(0, B.value.shadeColorRatio3d)) * t, s = Math.max(0, Math.min(255, Math.round(r * o))), c = Math.max(0, Math.min(255, Math.round(i * o))), l = Math.max(0, Math.min(255, Math.round(a * o)));
|
|
246
|
+
return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}`;
|
|
247
|
+
}
|
|
248
|
+
function St({ cx: e, cy: t, radius: n, innerRatio: i = .8, count: a = 120, startDeg: o = 0, axDeg: s = 50, f: c = 520, baseStroke: l = 5, activeColor: u, inactiveColor: d, getActive: f }) {
|
|
249
|
+
let p = s * Math.PI / 180, m = n, h = n * i, g = [];
|
|
250
|
+
for (let n = 0; n < a; n += 1) {
|
|
251
|
+
let i = (n / a * 360 + o) * Math.PI / 180, s = e + m * Math.cos(i), _ = t + m * Math.sin(i), v = e + h * Math.cos(i), y = t + h * Math.sin(i), ee = [
|
|
252
|
+
s - e,
|
|
253
|
+
_ - t,
|
|
254
|
+
0
|
|
255
|
+
], b = [
|
|
256
|
+
v - e,
|
|
257
|
+
y - t,
|
|
258
|
+
0
|
|
259
|
+
], [te, ne, re] = yt(ee, p), [ie, ae, oe] = yt(b, p), [se, ce, , x] = bt([
|
|
260
|
+
te,
|
|
261
|
+
ne,
|
|
262
|
+
re
|
|
263
|
+
], c), [S, le, , C] = bt([
|
|
264
|
+
ie,
|
|
265
|
+
ae,
|
|
266
|
+
oe
|
|
267
|
+
], c), w = e + se, ue = t + ce, de = e + S, fe = t + le, pe = (Math.max(re, oe) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), T = !f || f(n), E = B.value.gradient.show ? r(u, n * Q.value / Z.value * (B.value.gradient.shiftHueIntensity / 100)) : u, D = xt(T ? E : d, pe), me = Math.max(1.25, l * x * (Math.min(W.value.width, W.value.height) / 360));
|
|
268
|
+
g.push({
|
|
269
|
+
i: n,
|
|
270
|
+
x1: w,
|
|
271
|
+
y1: ue,
|
|
272
|
+
x2: de,
|
|
273
|
+
y2: fe,
|
|
274
|
+
stroke: me,
|
|
275
|
+
color: D,
|
|
276
|
+
z: Math.max(re, oe)
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
return g.sort((e, t) => e.z - t.z), g;
|
|
280
|
+
}
|
|
281
|
+
let Ct = S(() => {
|
|
282
|
+
if (!R.value.layout === "3d") return null;
|
|
283
|
+
let e = Z.value, t = B.value.gradient.show ? r(B.value.activeColor, 0) : B.value.activeColor, n = B.value.inactiveColor, i = B.value.strokeWidth;
|
|
284
|
+
return St({
|
|
285
|
+
cx: K.value.centerX,
|
|
286
|
+
cy: K.value.centerY,
|
|
287
|
+
radius: K.value.radius,
|
|
288
|
+
innerRatio: B.value.sizeRatio,
|
|
289
|
+
count: e,
|
|
290
|
+
startDeg: -90,
|
|
291
|
+
axDeg: V.value.tiltAngle3d,
|
|
292
|
+
f: Math.min(W.value.width, W.value.height) * 1.45,
|
|
293
|
+
baseStroke: i,
|
|
294
|
+
activeColor: t,
|
|
295
|
+
inactiveColor: n,
|
|
296
|
+
getActive: (e) => q.value > e * Q.value
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
function wt({ cx: e, cy: t, r: n, count: r = 180, startDeg: i = -90, axDeg: a = 50, f: o }) {
|
|
300
|
+
let s = a * Math.PI / 180, c = [], l = 0;
|
|
301
|
+
for (let a = 0; a < r; a += 1) {
|
|
302
|
+
let u = (a / r * 360 + i) * Math.PI / 180, [d, f, p] = yt([
|
|
303
|
+
n * Math.cos(u),
|
|
304
|
+
n * Math.sin(u),
|
|
305
|
+
0
|
|
306
|
+
], s), [m, h, , g] = bt([
|
|
307
|
+
d,
|
|
308
|
+
f,
|
|
309
|
+
p
|
|
310
|
+
], o);
|
|
311
|
+
l += g, c.push([e + m, t + h]);
|
|
312
|
+
}
|
|
313
|
+
let u = `M ${c[0][0]} ${c[0][1]}`;
|
|
314
|
+
for (let e = 1; e < c.length; e += 1) u += ` L ${c[e][0]} ${c[e][1]}`;
|
|
315
|
+
u += " Z";
|
|
316
|
+
let d = l / r;
|
|
317
|
+
return {
|
|
318
|
+
d: u,
|
|
319
|
+
avgScale: d,
|
|
320
|
+
pts: c
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
let X = S(() => {
|
|
324
|
+
if (R.value.layout !== "3d") return null;
|
|
325
|
+
let e = Math.min(W.value.width, W.value.height) * 1.45, t = V.value.tiltAngle3d, n = K.value.radius, { pts: r, avgScale: i } = (() => {
|
|
326
|
+
let r = n, i = t, { d: a, avgScale: o, pts: s } = wt({
|
|
327
|
+
cx: K.value.centerX,
|
|
328
|
+
cy: K.value.centerY,
|
|
329
|
+
r,
|
|
330
|
+
startDeg: -90,
|
|
331
|
+
axDeg: i,
|
|
332
|
+
f: e
|
|
333
|
+
});
|
|
334
|
+
return {
|
|
335
|
+
pts: s,
|
|
336
|
+
avgScale: o
|
|
337
|
+
};
|
|
338
|
+
})(), a = Infinity, o = Infinity, s = -Infinity, c = -Infinity;
|
|
339
|
+
for (let [e, t] of r) e < a && (a = e), t < o && (o = t), e > s && (s = e), t > c && (c = t);
|
|
340
|
+
let l = B.value.strokeWidth / 360 * Math.min(W.value.width, W.value.height), u = H.value.layout.innerCircle.strokeWidth || 0, d = .5 * Math.max(l, u * (i || 1)), f = Math.max(0, Number(B.value.depth3d) || 0), p = d;
|
|
341
|
+
return {
|
|
342
|
+
x: a - p,
|
|
343
|
+
y: o - f - p,
|
|
344
|
+
w: s - a + 2 * p,
|
|
345
|
+
h: c - (o - f) + 2 * p
|
|
346
|
+
};
|
|
347
|
+
});
|
|
348
|
+
function Tt(e) {
|
|
349
|
+
let t = Math.min(W.value.width, W.value.height) * 1.45, { d: n, avgScale: r } = wt({
|
|
350
|
+
cx: K.value.centerX,
|
|
351
|
+
cy: K.value.centerY,
|
|
352
|
+
r: e,
|
|
353
|
+
startDeg: -90,
|
|
354
|
+
axDeg: V.value.tiltAngle3d,
|
|
355
|
+
f: t
|
|
356
|
+
}), i = (H.value.layout.innerCircle.strokeWidth || 1) * r;
|
|
357
|
+
return {
|
|
358
|
+
d: n,
|
|
359
|
+
stroke: H.value.layout.innerCircle.stroke,
|
|
360
|
+
strokeWidth: i
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
let Et = S(() => Tt(Math.max(0, K.value.radius * .8 * H.value.layout.innerCircle.radiusRatio)));
|
|
364
|
+
function Dt({ cx: e, cy: t, r: n, aRad: r, ax: i, f: a }) {
|
|
365
|
+
let [o, s, c] = yt([
|
|
366
|
+
n * Math.cos(r),
|
|
367
|
+
n * Math.sin(r),
|
|
368
|
+
0
|
|
369
|
+
], i), [l, u, , d] = bt([
|
|
370
|
+
o,
|
|
371
|
+
s,
|
|
372
|
+
c
|
|
373
|
+
], a);
|
|
374
|
+
return {
|
|
375
|
+
x: e + l,
|
|
376
|
+
y: t + u,
|
|
377
|
+
z: c,
|
|
378
|
+
s: d
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
function Ot({ cx: e, cy: t, radius: n, innerRatio: i = .8, count: a = 120, startDeg: o = -87, axDeg: s = 45, f: c = 600, activeColor: l, inactiveColor: u, getActive: d, Y: f = 0 }) {
|
|
382
|
+
let p = s * Math.PI / 180, m = n, h = n * i, g = 2 * Math.PI / a, _ = [];
|
|
383
|
+
for (let n = 0; n < a; n += 1) {
|
|
384
|
+
let i = o * Math.PI / 180 + g * n, s = i + g * Math.min(1, B.value.spacingRatio3d), v = Dt({
|
|
385
|
+
cx: e,
|
|
386
|
+
cy: t + f,
|
|
387
|
+
r: m,
|
|
388
|
+
aRad: i,
|
|
389
|
+
ax: p,
|
|
390
|
+
f: c
|
|
391
|
+
}), y = Dt({
|
|
392
|
+
cx: e,
|
|
393
|
+
cy: t + f,
|
|
394
|
+
r: m,
|
|
395
|
+
aRad: s,
|
|
396
|
+
ax: p,
|
|
397
|
+
f: c
|
|
398
|
+
}), ee = Dt({
|
|
399
|
+
cx: e,
|
|
400
|
+
cy: t + f,
|
|
401
|
+
r: h,
|
|
402
|
+
aRad: s,
|
|
403
|
+
ax: p,
|
|
404
|
+
f: c
|
|
405
|
+
}), b = Dt({
|
|
406
|
+
cx: e,
|
|
407
|
+
cy: t + f,
|
|
408
|
+
r: h,
|
|
409
|
+
aRad: i,
|
|
410
|
+
ax: p,
|
|
411
|
+
f: c
|
|
412
|
+
}), te = (v.z + y.z + b.z + ee.z) / 4, ne = xt(!d || d(n) ? B.value.gradient.show ? r(B.value.activeColor, 100 / a * n / 100 * (B.value.gradient.shiftHueIntensity / 100)) : l : u, (() => {
|
|
413
|
+
let e = m * Math.sin(p) || 1;
|
|
414
|
+
return (te - -e) / (2 * e);
|
|
415
|
+
})()), re = `M ${v.x} ${v.y} L ${y.x} ${y.y} L ${ee.x} ${ee.y} L ${b.x} ${b.y} Z`;
|
|
416
|
+
_.push({
|
|
417
|
+
i: n,
|
|
418
|
+
d: re,
|
|
419
|
+
fill: ne,
|
|
420
|
+
z: te
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
return _.sort((e, t) => e.z - t.z), _;
|
|
424
|
+
}
|
|
425
|
+
let kt = S(() => {
|
|
426
|
+
if (R.value.layout !== "3d") return null;
|
|
427
|
+
let e = Z.value;
|
|
428
|
+
return (t) => Ot({
|
|
429
|
+
cx: K.value.centerX,
|
|
430
|
+
cy: K.value.centerY,
|
|
431
|
+
radius: K.value.radius,
|
|
432
|
+
innerRatio: B.value.sizeRatio,
|
|
433
|
+
count: e,
|
|
434
|
+
startDeg: -90,
|
|
435
|
+
axDeg: V.value.tiltAngle3d,
|
|
436
|
+
f: Math.min(W.value.width, W.value.height) * 1.45,
|
|
437
|
+
activeColor: B.value.activeColor,
|
|
438
|
+
inactiveColor: B.value.inactiveColor,
|
|
439
|
+
getActive: (t) => q.value > 100 / e * t,
|
|
440
|
+
Y: t
|
|
441
|
+
});
|
|
442
|
+
});
|
|
443
|
+
function At(e) {
|
|
444
|
+
let t = H.value.animation.speed, n = Math.abs(e - q.value) / (t * 120);
|
|
445
|
+
function r() {
|
|
446
|
+
q.value < e ? q.value = Math.min(q.value + n, e) : q.value > e && (q.value = Math.max(q.value - n, e)), q.value !== e && requestAnimationFrame(r);
|
|
447
|
+
}
|
|
448
|
+
r();
|
|
449
|
+
}
|
|
450
|
+
let Z = S(() => (_t.value && B.value.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), _t.value && B.value.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(B.value.quantity, 200)))), Q = S(() => 100 / Z.value), jt = S(() => {
|
|
451
|
+
let e = [];
|
|
452
|
+
for (let t = 0; t < Z.value; t += 1) {
|
|
453
|
+
let n = q.value > t * Q.value ? B.value.activeColor : B.value.inactiveColor, { x: i, y: a } = gt(W.value.size / Z.value * t), { x: o, y: s } = gt(W.value.size / Z.value * t, B.value.sizeRatio);
|
|
454
|
+
e.push({
|
|
455
|
+
x1: i,
|
|
456
|
+
y1: a,
|
|
457
|
+
x2: o,
|
|
458
|
+
y2: s,
|
|
459
|
+
color: B.value.gradient.show ? r(n, t * Q.value / Z.value * (B.value.gradient.shiftHueIntensity / 100)) : n
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
return e;
|
|
463
|
+
}), Mt = S(() => t({ series: jt.value.map((e) => ({
|
|
464
|
+
name: "",
|
|
465
|
+
value: 1,
|
|
466
|
+
color: e.color
|
|
467
|
+
})) }, K.value.centerX, K.value.centerY, K.value.radius, K.value.radius, 1.99999, 2, 1, 360, 105.25, K.value.radius * (1 - B.value.sizeRatio))), Nt = k(!1);
|
|
468
|
+
function Pt(e) {
|
|
469
|
+
Nt.value = e, Qe.value += 1;
|
|
470
|
+
}
|
|
471
|
+
let Ft = k(!1);
|
|
472
|
+
function It() {
|
|
473
|
+
Ft.value = !Ft.value;
|
|
474
|
+
}
|
|
475
|
+
async function Lt({ scale: e = 2 } = {}) {
|
|
476
|
+
if (!L.value) return;
|
|
477
|
+
let { width: t, height: n } = L.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await b({
|
|
478
|
+
domElement: L.value,
|
|
479
|
+
base64: !0,
|
|
480
|
+
img: !0,
|
|
481
|
+
scale: e
|
|
482
|
+
});
|
|
483
|
+
return {
|
|
484
|
+
imageUri: i,
|
|
485
|
+
base64: a,
|
|
486
|
+
title: H.value.title.text,
|
|
487
|
+
width: t,
|
|
488
|
+
height: n,
|
|
489
|
+
aspectRatio: r
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
let Rt = S(() => B.value.strokeWidth * 2), zt = S(() => B.value.strokeWidth * 2 * .75), Bt = S(() => B.value.strokeWidth), $ = S(() => Math.max(1, Math.min(20, B.value.depth3d))), Vt = S(() => H.value.backgroundColor), Ht = S(() => H.value.title), { isCallbackImaging: Ut, isCallbackSvg: Wt, generateSvg: Gt, onGenerateImage: Kt } = ee({
|
|
493
|
+
svg: lt,
|
|
494
|
+
title: Ht,
|
|
495
|
+
legend: null,
|
|
496
|
+
legendItems: null,
|
|
497
|
+
backgroundColor: Vt,
|
|
498
|
+
stretchTitle: !0,
|
|
499
|
+
getSvgCallback: () => R.value.userOptions.callbacks.svg,
|
|
500
|
+
generateImage: mt
|
|
501
|
+
});
|
|
502
|
+
async function qt() {
|
|
503
|
+
if (Ye("copyAlt", {
|
|
504
|
+
config: R.value,
|
|
505
|
+
dataset: U.value
|
|
506
|
+
}), !R.value.userOptions.callbacks.altCopy) {
|
|
507
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
|
+
await Promise.resolve(R.value.userOptions.callbacks.altCopy({
|
|
511
|
+
config: R.value,
|
|
512
|
+
dataset: U.value
|
|
513
|
+
}));
|
|
514
|
+
}
|
|
515
|
+
let Jt = S(() => `${I.value}-title`), Yt = S(() => `${I.value}-desc`), Xt = S(() => s(H.value.layout.percentage.formatter, o(q.value), i({
|
|
516
|
+
v: o(q.value),
|
|
517
|
+
s: "%",
|
|
518
|
+
r: H.value.layout.percentage.rounding
|
|
519
|
+
}))), Zt = S(() => H.value.title.text || ""), Qt = S(() => at.value ? "..." : `${Xt.value}`);
|
|
520
|
+
return ne({
|
|
521
|
+
getImage: Lt,
|
|
522
|
+
generatePdf: pt,
|
|
523
|
+
generateImage: mt,
|
|
524
|
+
generateSvg: Gt,
|
|
525
|
+
toggleAnnotator: It,
|
|
526
|
+
toggleFullscreen: Pt,
|
|
527
|
+
copyAlt: qt
|
|
528
|
+
}), (e, t) => (O(), w("div", {
|
|
529
|
+
class: E(["vue-ui-wheel", {
|
|
530
|
+
"vue-data-ui-component": !0,
|
|
531
|
+
"vue-ui-wheel-3d-wrap": R.value.layout === "3d"
|
|
532
|
+
}]),
|
|
533
|
+
ref_key: "wheelChart",
|
|
534
|
+
ref: L,
|
|
535
|
+
id: I.value,
|
|
536
|
+
style: me(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${H.value.backgroundColor};${R.value.responsive ? "height:100%" : ""}`),
|
|
537
|
+
onMouseenter: t[0] ||= () => M(st)(!0),
|
|
538
|
+
onMouseleave: t[1] ||= () => M(st)(!1)
|
|
539
|
+
}, [
|
|
540
|
+
z.value.buttons.annotator ? (O(), le(M(Ue), {
|
|
541
|
+
key: 0,
|
|
542
|
+
svgRef: M(lt),
|
|
543
|
+
backgroundColor: H.value.backgroundColor,
|
|
544
|
+
color: H.value.color,
|
|
545
|
+
active: Ft.value,
|
|
546
|
+
isCursorPointer: rt.value,
|
|
547
|
+
palette: z.value.annotatorPalette,
|
|
548
|
+
onClose: It
|
|
549
|
+
}, {
|
|
550
|
+
"annotator-action-close": N(() => [j(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
551
|
+
"annotator-action-color": N(({ color: t }) => [j(e.$slots, "annotator-action-color", D(T({ color: t })), void 0, !0)]),
|
|
552
|
+
"annotator-action-draw": N(({ mode: t }) => [j(e.$slots, "annotator-action-draw", D(T({ mode: t })), void 0, !0)]),
|
|
553
|
+
"annotator-action-undo": N(({ disabled: t }) => [j(e.$slots, "annotator-action-undo", D(T({ disabled: t })), void 0, !0)]),
|
|
554
|
+
"annotator-action-redo": N(({ disabled: t }) => [j(e.$slots, "annotator-action-redo", D(T({ disabled: t })), void 0, !0)]),
|
|
555
|
+
"annotator-action-delete": N(({ disabled: t }) => [j(e.$slots, "annotator-action-delete", D(T({ disabled: t })), void 0, !0)]),
|
|
556
|
+
_: 3
|
|
557
|
+
}, 8, [
|
|
558
|
+
"svgRef",
|
|
559
|
+
"backgroundColor",
|
|
560
|
+
"color",
|
|
561
|
+
"active",
|
|
562
|
+
"isCursorPointer",
|
|
563
|
+
"palette"
|
|
564
|
+
])) : C("", !0),
|
|
565
|
+
ht.value ? (O(), w("div", {
|
|
566
|
+
key: 1,
|
|
567
|
+
ref_key: "noTitle",
|
|
568
|
+
ref: tt,
|
|
569
|
+
class: "vue-data-ui-no-title-space",
|
|
570
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
571
|
+
}, null, 512)) : C("", !0),
|
|
572
|
+
H.value.title.text ? (O(), w("div", {
|
|
573
|
+
key: 2,
|
|
574
|
+
ref_key: "chartTitle",
|
|
575
|
+
ref: $e,
|
|
576
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
577
|
+
}, [(O(), le(te, {
|
|
578
|
+
key: `title_${nt.value}`,
|
|
579
|
+
config: {
|
|
580
|
+
title: {
|
|
581
|
+
cy: "wheel-title",
|
|
582
|
+
...H.value.title
|
|
583
|
+
},
|
|
584
|
+
subtitle: {
|
|
585
|
+
cy: "wheel-subtitle",
|
|
586
|
+
...H.value.title.subtitle
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}, null, 8, ["config"]))], 512)) : C("", !0),
|
|
590
|
+
z.value.show && Xe.value && (M(ct) || M(ot)) ? (O(), le(M(We), {
|
|
591
|
+
ref_key: "details",
|
|
592
|
+
ref: Ze,
|
|
593
|
+
key: `user_options_${Qe.value}`,
|
|
594
|
+
backgroundColor: H.value.backgroundColor,
|
|
595
|
+
color: H.value.color,
|
|
596
|
+
isPrinting: M(dt),
|
|
597
|
+
isImaging: M(ft),
|
|
598
|
+
uid: I.value,
|
|
599
|
+
hasPdf: z.value.buttons.pdf,
|
|
600
|
+
hasImg: z.value.buttons.img,
|
|
601
|
+
hasSvg: z.value.buttons.svg,
|
|
602
|
+
hasFullscreen: z.value.buttons.fullscreen,
|
|
603
|
+
hasAltCopy: z.value.buttons.altCopy,
|
|
604
|
+
hasXls: !1,
|
|
605
|
+
isFullscreen: Nt.value,
|
|
606
|
+
position: z.value.position,
|
|
607
|
+
titles: { ...z.value.buttonTitles },
|
|
608
|
+
hasAnnotator: z.value.buttons.annotator,
|
|
609
|
+
isAnnotation: Ft.value,
|
|
610
|
+
chartElement: L.value,
|
|
611
|
+
callbacks: z.value.callbacks,
|
|
612
|
+
printScale: z.value.print.scale,
|
|
613
|
+
isCursorPointer: rt.value,
|
|
614
|
+
onToggleFullscreen: Pt,
|
|
615
|
+
onGeneratePdf: M(pt),
|
|
616
|
+
onGenerateImage: M(Kt),
|
|
617
|
+
onGenerateSvg: M(Gt),
|
|
618
|
+
onToggleAnnotator: It,
|
|
619
|
+
onCopyAlt: qt,
|
|
620
|
+
style: me({ visibility: M(ct) ? M(ot) ? "visible" : "hidden" : "visible" })
|
|
621
|
+
}, de({ _: 2 }, [
|
|
622
|
+
e.$slots.menuIcon ? {
|
|
623
|
+
name: "menuIcon",
|
|
624
|
+
fn: N(({ isOpen: t, color: n }) => [j(e.$slots, "menuIcon", D(T({
|
|
625
|
+
isOpen: t,
|
|
626
|
+
color: n
|
|
627
|
+
})), void 0, !0)]),
|
|
628
|
+
key: "0"
|
|
629
|
+
} : void 0,
|
|
630
|
+
e.$slots.optionPdf ? {
|
|
631
|
+
name: "optionPdf",
|
|
632
|
+
fn: N(() => [j(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
633
|
+
key: "1"
|
|
634
|
+
} : void 0,
|
|
635
|
+
e.$slots.optionImg ? {
|
|
636
|
+
name: "optionImg",
|
|
637
|
+
fn: N(() => [j(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
638
|
+
key: "2"
|
|
639
|
+
} : void 0,
|
|
640
|
+
e.$slots.optionSvg ? {
|
|
641
|
+
name: "optionSvg",
|
|
642
|
+
fn: N(() => [j(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
643
|
+
key: "3"
|
|
644
|
+
} : void 0,
|
|
645
|
+
e.$slots.optionFullscreen ? {
|
|
646
|
+
name: "optionFullscreen",
|
|
647
|
+
fn: N(({ toggleFullscreen: t, isFullscreen: n }) => [j(e.$slots, "optionFullscreen", D(T({
|
|
648
|
+
toggleFullscreen: t,
|
|
649
|
+
isFullscreen: n
|
|
650
|
+
})), void 0, !0)]),
|
|
651
|
+
key: "4"
|
|
652
|
+
} : void 0,
|
|
653
|
+
e.$slots.optionAnnotator ? {
|
|
654
|
+
name: "optionAnnotator",
|
|
655
|
+
fn: N(({ toggleAnnotator: t, isAnnotator: n }) => [j(e.$slots, "optionAnnotator", D(T({
|
|
656
|
+
toggleAnnotator: t,
|
|
657
|
+
isAnnotator: n
|
|
658
|
+
})), void 0, !0)]),
|
|
659
|
+
key: "5"
|
|
660
|
+
} : void 0,
|
|
661
|
+
e.$slots.optionAltCopy ? {
|
|
662
|
+
name: "optionAltCopy",
|
|
663
|
+
fn: N(({ altCopy: t }) => [j(e.$slots, "optionAltCopy", D(T({ altCopy: t })), void 0, !0)]),
|
|
664
|
+
key: "6"
|
|
665
|
+
} : void 0,
|
|
666
|
+
e.$slots["custom-menu-before"] ? {
|
|
667
|
+
name: "custom-menu-before",
|
|
668
|
+
fn: N(() => [j(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
669
|
+
key: "7"
|
|
670
|
+
} : void 0,
|
|
671
|
+
e.$slots["custom-menu-after"] ? {
|
|
672
|
+
name: "custom-menu-after",
|
|
673
|
+
fn: N(() => [j(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
674
|
+
key: "8"
|
|
675
|
+
} : void 0
|
|
676
|
+
]), 1032, [
|
|
677
|
+
"backgroundColor",
|
|
678
|
+
"color",
|
|
679
|
+
"isPrinting",
|
|
680
|
+
"isImaging",
|
|
681
|
+
"uid",
|
|
682
|
+
"hasPdf",
|
|
683
|
+
"hasImg",
|
|
684
|
+
"hasSvg",
|
|
685
|
+
"hasFullscreen",
|
|
686
|
+
"hasAltCopy",
|
|
687
|
+
"isFullscreen",
|
|
688
|
+
"position",
|
|
689
|
+
"titles",
|
|
690
|
+
"hasAnnotator",
|
|
691
|
+
"isAnnotation",
|
|
692
|
+
"chartElement",
|
|
693
|
+
"callbacks",
|
|
694
|
+
"printScale",
|
|
695
|
+
"isCursorPointer",
|
|
696
|
+
"onGeneratePdf",
|
|
697
|
+
"onGenerateImage",
|
|
698
|
+
"onGenerateSvg",
|
|
699
|
+
"style"
|
|
700
|
+
])) : C("", !0),
|
|
701
|
+
(O(), w("svg", {
|
|
702
|
+
ref_key: "svgRef",
|
|
703
|
+
ref: lt,
|
|
704
|
+
xmlns: M(d),
|
|
705
|
+
class: E({
|
|
706
|
+
"vue-data-ui-fullscreen--on": Nt.value,
|
|
707
|
+
"vue-data-ui-fulscreen--off": !Nt.value,
|
|
708
|
+
"vue-ui-wheel-3d-svg": R.value.layout === "3d"
|
|
709
|
+
}),
|
|
710
|
+
viewBox: R.value.layout === "3d" && !R.value.responsive ? `${X.value?.x - 10} ${X.value?.y ?? 0} ${X.value?.w + 20 ?? Math.max(10, W.value.width)} ${X.value?.h ?? Math.max(10, W.value.height)}` : `0 0 ${Math.max(10, W.value.width)} ${Math.max(10, W.value.height)}`,
|
|
711
|
+
style: me(`max-width:100%;overflow:visible;background:transparent;color:${H.value.color}`),
|
|
712
|
+
role: "img",
|
|
713
|
+
"aria-labelledby": Jt.value,
|
|
714
|
+
"aria-describedby": Yt.value
|
|
715
|
+
}, [
|
|
716
|
+
ue("title", { id: Jt.value }, ve(Zt.value), 9, Te),
|
|
717
|
+
ue("desc", { id: Yt.value }, ve(Qt.value), 9, Ee),
|
|
718
|
+
fe(M(Ge)),
|
|
719
|
+
e.$slots["chart-background"] ? (O(), w("foreignObject", {
|
|
720
|
+
key: 0,
|
|
721
|
+
x: R.value.layout === "3d" && !R.value.responsive ? X.value?.x - 10 : 0,
|
|
722
|
+
y: R.value.layout === "3d" && !R.value.responsive ? X.value?.y ?? 0 : 0,
|
|
723
|
+
width: R.value.layout === "3d" && !R.value.responsive ? X.value?.w + 20 ?? Math.max(10, W.value.width) : Math.max(10, W.value.width),
|
|
724
|
+
height: R.value.layout === "3d" && !R.value.responsive ? X.value?.h ?? Math.max(10, W.value.height) : Math.max(10, W.value.height),
|
|
725
|
+
style: { pointerEvents: "none" }
|
|
726
|
+
}, [j(e.$slots, "chart-background", {}, void 0, !0)], 8, De)) : C("", !0),
|
|
727
|
+
R.value.layout === "3d" && Et.value ? (O(), w("path", {
|
|
728
|
+
key: 1,
|
|
729
|
+
class: "vue-ui-wheel-inner-circle",
|
|
730
|
+
d: Et.value.d,
|
|
731
|
+
stroke: H.value.layout.innerCircle.stroke,
|
|
732
|
+
"stroke-width": H.value.layout.innerCircle.strokeWidth,
|
|
733
|
+
fill: "none"
|
|
734
|
+
}, null, 8, Oe)) : H.value.layout.innerCircle.show ? (O(), w("circle", {
|
|
735
|
+
key: 2,
|
|
736
|
+
class: "vue-ui-wheel-inner-circle",
|
|
737
|
+
cx: K.value.centerX,
|
|
738
|
+
cy: K.value.centerY,
|
|
739
|
+
r: Math.max(0, K.value.radius * H.value.layout.innerCircle.radiusRatio * .8),
|
|
740
|
+
stroke: H.value.layout.innerCircle.stroke,
|
|
741
|
+
"stroke-width": H.value.layout.innerCircle.strokeWidth,
|
|
742
|
+
fill: "none"
|
|
743
|
+
}, null, 8, ke)) : C("", !0),
|
|
744
|
+
R.value.layout === "3d" ? (O(), w(x, { key: 3 }, [B.value.type === "classic" ? (O(), w("g", Ae, [(O(!0), w(x, null, A($.value, (e) => (O(), w("g", null, [(O(!0), w(x, null, A(Ct.value || [], (t) => (O(), w("line", {
|
|
745
|
+
key: t.i,
|
|
746
|
+
x1: t.x1,
|
|
747
|
+
y1: t.y1 - e,
|
|
748
|
+
x2: t.x2,
|
|
749
|
+
y2: t.y2 - e,
|
|
750
|
+
stroke: M(c)(t.color, .25 * e / 5),
|
|
751
|
+
"stroke-width": B.value.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
752
|
+
"stroke-linecap": B.value.rounded ? "round" : "butt",
|
|
753
|
+
class: E({
|
|
754
|
+
"vue-ui-wheel-tick": !0,
|
|
755
|
+
"vue-ui-tick-animated": H.value.animation.use && !M(P) && t.i * Q.value <= q.value
|
|
756
|
+
})
|
|
757
|
+
}, null, 10, je))), 128))]))), 256)), (O(!0), w(x, null, A(Ct.value || [], (e) => (O(), w("line", {
|
|
758
|
+
key: e.i,
|
|
759
|
+
x1: e.x1,
|
|
760
|
+
y1: e.y1 - $.value,
|
|
761
|
+
x2: e.x2,
|
|
762
|
+
y2: e.y2 - $.value,
|
|
763
|
+
stroke: e.color,
|
|
764
|
+
"stroke-width": B.value.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
765
|
+
"stroke-linecap": B.value.rounded ? "round" : "butt",
|
|
766
|
+
class: E({
|
|
767
|
+
"vue-ui-wheel-tick": !0,
|
|
768
|
+
"vue-ui-tick-animated": H.value.animation.use && !M(P) && e.i * Q.value <= q.value
|
|
769
|
+
})
|
|
770
|
+
}, null, 10, Me))), 128))])) : (O(), w("g", Ne, [(O(!0), w(x, null, A($.value, (e) => (O(), w("g", null, [(O(!0), w(x, null, A(kt.value(-e) || [], (e) => (O(), w("path", {
|
|
771
|
+
key: e.i,
|
|
772
|
+
d: e.d,
|
|
773
|
+
fill: B.value.inactiveColor,
|
|
774
|
+
stroke: B.value.stroke,
|
|
775
|
+
"stroke-width": B.value.strokeWidth,
|
|
776
|
+
"stroke-linecap": "round",
|
|
777
|
+
"stroke-linejoin": "round",
|
|
778
|
+
class: "vue-ui-wheel-tick"
|
|
779
|
+
}, null, 8, Pe))), 128)), (O(!0), w(x, null, A(kt.value(-e) || [], (t) => (O(), w("path", {
|
|
780
|
+
key: t.i,
|
|
781
|
+
d: t.d,
|
|
782
|
+
fill: M(c)(t.fill, .5 * e / $.value),
|
|
783
|
+
stroke: B.value.stroke,
|
|
784
|
+
"stroke-width": B.value.strokeWidth,
|
|
785
|
+
"stroke-linecap": "round",
|
|
786
|
+
"stroke-linejoin": "round",
|
|
787
|
+
class: E({
|
|
788
|
+
"vue-ui-wheel-tick": !0,
|
|
789
|
+
"vue-ui-tick-animated-3d": H.value.animation.use && !M(P) && t.i * Q.value <= q.value
|
|
790
|
+
})
|
|
791
|
+
}, null, 10, Fe))), 128))]))), 256)), ue("g", null, [(O(!0), w(x, null, A(kt.value(-$.value) || [], (e) => (O(), w("path", {
|
|
792
|
+
key: e.i,
|
|
793
|
+
d: e.d,
|
|
794
|
+
fill: e.fill,
|
|
795
|
+
stroke: B.value.stroke,
|
|
796
|
+
"stroke-width": B.value.strokeWidth,
|
|
797
|
+
"stroke-linecap": "round",
|
|
798
|
+
"stroke-linejoin": "round",
|
|
799
|
+
class: E({
|
|
800
|
+
"vue-ui-wheel-tick": !0,
|
|
801
|
+
"vue-ui-tick-animated-3d": H.value.animation.use && !M(P) && e.i * Q.value <= q.value
|
|
802
|
+
})
|
|
803
|
+
}, null, 10, Ie))), 128))])]))], 64)) : (O(), w(x, { key: 4 }, [B.value.type === "classic" ? (O(!0), w(x, { key: 0 }, A(jt.value, (e, t) => (O(), w("line", {
|
|
804
|
+
x1: e.x1,
|
|
805
|
+
x2: e.x2,
|
|
806
|
+
y1: e.y1,
|
|
807
|
+
y2: e.y2,
|
|
808
|
+
stroke: e.color,
|
|
809
|
+
"stroke-width": B.value.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
810
|
+
"stroke-linecap": B.value.rounded ? "round" : "butt",
|
|
811
|
+
class: E({
|
|
812
|
+
"vue-ui-wheel-tick": !0,
|
|
813
|
+
"vue-ui-tick-animated": H.value.animation.use && !M(P) && t * Q.value <= q.value
|
|
814
|
+
})
|
|
815
|
+
}, null, 10, Le))), 256)) : (O(!0), w(x, { key: 1 }, A(Mt.value, (e, t) => (O(), w("path", {
|
|
816
|
+
d: e.arcSlice,
|
|
817
|
+
fill: e.color,
|
|
818
|
+
class: E({
|
|
819
|
+
"vue-ui-wheel-tick": !0,
|
|
820
|
+
"vue-ui-tick-animated": H.value.animation.use && !M(P) && t * Q.value <= q.value
|
|
821
|
+
}),
|
|
822
|
+
stroke: B.value.stroke,
|
|
823
|
+
"stroke-width": B.value.strokeWidth
|
|
824
|
+
}, null, 10, Re))), 256))], 64)),
|
|
825
|
+
H.value.layout.percentage.show ? (O(), w("g", {
|
|
826
|
+
key: 5,
|
|
827
|
+
role: "status",
|
|
828
|
+
"aria-live": "polite",
|
|
829
|
+
"aria-label": M(at) ? "..." : Xt.value
|
|
830
|
+
}, [M(at) ? (O(), w("rect", {
|
|
831
|
+
key: 0,
|
|
832
|
+
x: K.value.centerX - 40,
|
|
833
|
+
y: K.value.centerY - G.value / 2,
|
|
834
|
+
width: 80,
|
|
835
|
+
height: G.value,
|
|
836
|
+
fill: "#6A6A6A80",
|
|
837
|
+
rx: "3"
|
|
838
|
+
}, null, 8, Be)) : (O(), w("text", {
|
|
839
|
+
key: 1,
|
|
840
|
+
"aria-hidden": "true",
|
|
841
|
+
x: K.value.centerX + H.value.layout.percentage.offsetX,
|
|
842
|
+
y: K.value.centerY + G.value / 3 + H.value.layout.percentage.offsetY,
|
|
843
|
+
"font-size": G.value,
|
|
844
|
+
fill: B.value.gradient.show ? M(r)(B.value.activeColor, q.value / 100 * (B.value.gradient.shiftHueIntensity / 100)) : B.value.activeColor,
|
|
845
|
+
"text-anchor": "middle",
|
|
846
|
+
"font-weight": H.value.layout.percentage.bold ? "bold" : "normal",
|
|
847
|
+
style: { "font-variant-numeric": "tabluar-nums" },
|
|
848
|
+
stroke: H.value.layout.percentage.stroke,
|
|
849
|
+
"stroke-width": H.value.layout.percentage.strokeWidth,
|
|
850
|
+
"stroke-linecap": "round",
|
|
851
|
+
"stroke-linejoin": "round",
|
|
852
|
+
"paint-order": "stroke fill",
|
|
853
|
+
class: E({ "vue-ui-wheel-label": R.value.layout === "3d" })
|
|
854
|
+
}, ve(Xt.value), 11, Ve))], 8, ze)) : C("", !0),
|
|
855
|
+
j(e.$slots, "svg", { svg: {
|
|
856
|
+
...W.value,
|
|
857
|
+
isPrintingImg: M(dt) || M(ft) || M(Ut),
|
|
858
|
+
isPrintingSvg: M(Wt)
|
|
859
|
+
} }, void 0, !0)
|
|
860
|
+
], 14, we)),
|
|
861
|
+
e.$slots.watermark ? (O(), w("div", He, [j(e.$slots, "watermark", D(T({ isPrinting: M(dt) || M(ft) || M(Ut) || M(Wt) })), void 0, !0)])) : C("", !0),
|
|
862
|
+
e.$slots.source ? (O(), w("div", {
|
|
863
|
+
key: 5,
|
|
864
|
+
ref_key: "source",
|
|
865
|
+
ref: et,
|
|
866
|
+
dir: "auto"
|
|
867
|
+
}, [j(e.$slots, "source", {}, void 0, !0)], 512)) : C("", !0),
|
|
868
|
+
j(e.$slots, "skeleton", {}, () => [M(at) ? (O(), le(_, { key: 0 })) : C("", !0)], !0)
|
|
869
|
+
], 46, Ce));
|
|
870
|
+
}
|
|
871
|
+
}, [["__scopeId", "data-v-ed4341f8"]]);
|
|
872
|
+
//#endregion
|
|
873
|
+
export { Se as n, Ue as t };
|