vue-data-ui 3.22.14 → 3.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
- package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/HillActions-BD9j_sOU.js +187 -0
- package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
- package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
- package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
- package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
- package/dist/Slicer-CIk57nL4.js +1163 -0
- package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
- package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
- package/dist/Title-BE3qg9xl.js +87 -0
- package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.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/composables.js +1 -1
- package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/exposedLib-C0DPCgFj.js +28 -0
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
- package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
- package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.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 +496 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
- package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
- package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
- package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
- package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
- package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
- package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
- package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
- package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
- package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
- package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
- package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
- package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
- package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
- package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
- package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
- package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
- package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
- package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
- package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
- package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
- package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
- package/dist/vue-ui-gauge-ByE_txav.js +953 -0
- package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
- package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
- package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
- package/dist/vue-ui-hill-BT183G-_.js +1768 -0
- package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
- package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
- package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
- package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
- package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
- package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
- package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
- package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
- package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
- package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
- package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
- package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
- package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
- package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
- package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
- package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
- package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
- package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
- package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
- package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
- package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
- package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
- package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
- package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
- package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
- package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
- package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
- package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
- package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
- package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
- package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
- package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
- package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
- package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
- package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
- package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
- package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
- package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
- package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +4 -4
- package/dist/Slicer-JdCzBeYM.js +0 -1149
- package/dist/Title-Thf71-8D.js +0 -87
- package/dist/exposedLib-CfZhN94x.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
- package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
- package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
- package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
- package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
- package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
- package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
- package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
- package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
- package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
- package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
- package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
- package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
- package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
- package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
- package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
- package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
- package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
- package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
- package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
- package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
- package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
- package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
- package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
- package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
- package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
- package/dist/vue-ui-table-DEhy61ln.js +0 -1339
- package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
- package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
- package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
- package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
- package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
2
|
+
import { Jt as t, Ot as n, Vt as r, X as i, b as a, i as o, jt as s, kt as c, q as l, t as u, tt as d } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as f, t as p } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as m } from "./useConfig-D3scuR88.js";
|
|
5
|
+
import { t as h } from "./usePrinter-DN5bYhTG.js";
|
|
6
|
+
import { n as g, t as _ } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as v } from "./useSvgExport-DH-FfcqQ.js";
|
|
8
|
+
import { t as y } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
+
import { t as b } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as x } from "./img-Bnokohej.js";
|
|
11
|
+
import { n as S } from "./Title-BE3qg9xl.js";
|
|
12
|
+
import { t as ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as C, t as te } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as ne } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as re } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as ie } from "./usePrefersMotion-BC-CsqR1.js";
|
|
17
|
+
import { t as ae } from "./vue_ui_wheel-DZ_nR--t.js";
|
|
18
|
+
import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as oe, createSlots as se, createVNode as ce, defineAsyncComponent as le, guardReactiveProps as k, nextTick as ue, normalizeClass as A, normalizeProps as j, normalizeStyle as de, onBeforeUnmount as fe, onMounted as pe, openBlock as M, ref as N, renderList as P, renderSlot as F, shallowRef as me, toDisplayString as he, toRefs as ge, unref as I, useCssVars as _e, watch as ve, withCtx as L } from "vue";
|
|
18
19
|
//#region src/components/vue-ui-wheel.vue
|
|
19
|
-
var
|
|
20
|
+
var ye = /* @__PURE__ */ e({ default: () => Be }), be = ["id"], xe = [
|
|
20
21
|
"xmlns",
|
|
21
22
|
"viewBox",
|
|
22
23
|
"aria-labelledby",
|
|
23
24
|
"aria-describedby"
|
|
24
|
-
],
|
|
25
|
+
], Se = ["id"], Ce = ["id"], we = [
|
|
25
26
|
"x",
|
|
26
27
|
"y",
|
|
27
28
|
"width",
|
|
28
29
|
"height"
|
|
29
|
-
],
|
|
30
|
+
], Te = [
|
|
30
31
|
"d",
|
|
31
32
|
"stroke",
|
|
32
33
|
"stroke-width"
|
|
33
|
-
],
|
|
34
|
+
], Ee = [
|
|
34
35
|
"cx",
|
|
35
36
|
"cy",
|
|
36
37
|
"r",
|
|
37
38
|
"stroke",
|
|
38
39
|
"stroke-width"
|
|
39
|
-
],
|
|
40
|
+
], De = { key: 0 }, Oe = [
|
|
40
41
|
"x1",
|
|
41
42
|
"y1",
|
|
42
43
|
"x2",
|
|
@@ -44,7 +45,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
44
45
|
"stroke",
|
|
45
46
|
"stroke-width",
|
|
46
47
|
"stroke-linecap"
|
|
47
|
-
],
|
|
48
|
+
], ke = [
|
|
48
49
|
"x1",
|
|
49
50
|
"y1",
|
|
50
51
|
"x2",
|
|
@@ -52,22 +53,22 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
52
53
|
"stroke",
|
|
53
54
|
"stroke-width",
|
|
54
55
|
"stroke-linecap"
|
|
55
|
-
],
|
|
56
|
+
], Ae = { key: 1 }, je = [
|
|
56
57
|
"d",
|
|
57
58
|
"fill",
|
|
58
59
|
"stroke",
|
|
59
60
|
"stroke-width"
|
|
60
|
-
],
|
|
61
|
+
], Me = [
|
|
61
62
|
"d",
|
|
62
63
|
"fill",
|
|
63
64
|
"stroke",
|
|
64
65
|
"stroke-width"
|
|
65
|
-
],
|
|
66
|
+
], Ne = [
|
|
66
67
|
"d",
|
|
67
68
|
"fill",
|
|
68
69
|
"stroke",
|
|
69
70
|
"stroke-width"
|
|
70
|
-
],
|
|
71
|
+
], Pe = [
|
|
71
72
|
"x1",
|
|
72
73
|
"x2",
|
|
73
74
|
"y1",
|
|
@@ -75,16 +76,16 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
75
76
|
"stroke",
|
|
76
77
|
"stroke-width",
|
|
77
78
|
"stroke-linecap"
|
|
78
|
-
],
|
|
79
|
+
], Fe = [
|
|
79
80
|
"d",
|
|
80
81
|
"fill",
|
|
81
82
|
"stroke",
|
|
82
83
|
"stroke-width"
|
|
83
|
-
],
|
|
84
|
+
], Ie = ["aria-label"], Le = [
|
|
84
85
|
"x",
|
|
85
86
|
"y",
|
|
86
87
|
"height"
|
|
87
|
-
],
|
|
88
|
+
], Re = [
|
|
88
89
|
"x",
|
|
89
90
|
"y",
|
|
90
91
|
"font-size",
|
|
@@ -92,10 +93,10 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
92
93
|
"font-weight",
|
|
93
94
|
"stroke",
|
|
94
95
|
"stroke-width"
|
|
95
|
-
],
|
|
96
|
+
], ze = {
|
|
96
97
|
key: 4,
|
|
97
98
|
class: "vue-data-ui-watermark"
|
|
98
|
-
},
|
|
99
|
+
}, Be = /*#__PURE__*/ ee({
|
|
99
100
|
__name: "vue-ui-wheel",
|
|
100
101
|
props: {
|
|
101
102
|
config: {
|
|
@@ -112,13 +113,20 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
112
113
|
}
|
|
113
114
|
},
|
|
114
115
|
emits: ["copyAlt"],
|
|
115
|
-
setup(e, { expose:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
setup(e, { expose: ee, emit: ye }) {
|
|
117
|
+
_e((e) => ({
|
|
118
|
+
v6abdd623: Lt.value,
|
|
119
|
+
v51a03449: Rt.value,
|
|
120
|
+
v51a016dc: zt.value
|
|
120
121
|
}));
|
|
121
|
-
let
|
|
122
|
+
let Be = le(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Ve = le(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), He = le(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), { vue_ui_wheel: Ue } = m(), { isThemeValid: We, warnInvalidTheme: Ge } = b(), R = ie(), z = e, Ke = ye, qe = T(() => !!z.dataset && Object.keys(z.dataset).length), B = N(l()), Je = N(null), Ye = N(0), V = N(null), Xe = N(null), Ze = N(null), Qe = N(null), $e = N(0), et = N(!1), tt = N(!1), H = N(lt());
|
|
123
|
+
f({
|
|
124
|
+
config: () => H.value,
|
|
125
|
+
dataset: () => z.dataset,
|
|
126
|
+
component: "VueUiWheel",
|
|
127
|
+
rules: [p.noHint]
|
|
128
|
+
});
|
|
129
|
+
let nt = T(() => H.value.userOptions.useCursorPointer), rt = T(() => t({
|
|
122
130
|
defaultConfig: {
|
|
123
131
|
userOptions: { show: !1 },
|
|
124
132
|
style: { chart: {
|
|
@@ -134,40 +142,40 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
134
142
|
} }
|
|
135
143
|
},
|
|
136
144
|
userConfig: H.value.skeletonConfig ?? {}
|
|
137
|
-
})), { loading:
|
|
138
|
-
...
|
|
145
|
+
})), { loading: it, FINAL_DATASET: U } = g({
|
|
146
|
+
...ge(z),
|
|
139
147
|
FINAL_CONFIG: H,
|
|
140
|
-
prepareConfig:
|
|
148
|
+
prepareConfig: lt,
|
|
141
149
|
skeletonDataset: z.config?.skeletonDataset ?? { percentage: 50 },
|
|
142
|
-
skeletonConfig:
|
|
150
|
+
skeletonConfig: t({
|
|
143
151
|
defaultConfig: H.value,
|
|
144
|
-
userConfig:
|
|
152
|
+
userConfig: rt.value
|
|
145
153
|
})
|
|
146
|
-
}), { userOptionsVisible:
|
|
147
|
-
function
|
|
148
|
-
let e =
|
|
154
|
+
}), { userOptionsVisible: at, setUserOptionsVisibility: ot, keepUserOptionState: st } = ne({ config: H.value }), { svgRef: ct } = re({ config: H.value.style.chart.title });
|
|
155
|
+
function lt() {
|
|
156
|
+
let e = y({
|
|
149
157
|
userConfig: z.config,
|
|
150
|
-
defaultConfig:
|
|
158
|
+
defaultConfig: Ue
|
|
151
159
|
}), t = e.theme;
|
|
152
160
|
if (!t) return e;
|
|
153
|
-
if (!
|
|
154
|
-
let n =
|
|
155
|
-
userConfig:
|
|
161
|
+
if (!We.value(e)) return Ge(e), e;
|
|
162
|
+
let n = y({
|
|
163
|
+
userConfig: ae[t] || z.config,
|
|
156
164
|
defaultConfig: e
|
|
157
165
|
});
|
|
158
|
-
return
|
|
166
|
+
return y({
|
|
159
167
|
userConfig: z.config,
|
|
160
168
|
defaultConfig: n
|
|
161
169
|
});
|
|
162
170
|
}
|
|
163
|
-
|
|
164
|
-
H.value =
|
|
171
|
+
ve(() => z.config, (e) => {
|
|
172
|
+
H.value = lt(), at.value = !H.value.userOptions.showOnChartHover, _t(), $e.value += 1;
|
|
165
173
|
}, { deep: !0 });
|
|
166
|
-
let { isPrinting:
|
|
174
|
+
let { isPrinting: ut, isImaging: dt, generatePdf: ft, generateImage: pt } = h({
|
|
167
175
|
elementId: B.value,
|
|
168
176
|
fileName: H.value.style.chart.title.text || "vue-ui-wheel",
|
|
169
177
|
options: H.value.userOptions.print
|
|
170
|
-
}),
|
|
178
|
+
}), mt = T(() => H.value.userOptions.show && !H.value.style.chart.title.text), W = N({
|
|
171
179
|
size: 360,
|
|
172
180
|
height: 360,
|
|
173
181
|
width: 360
|
|
@@ -176,7 +184,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
176
184
|
centerX: W.value.width / 2,
|
|
177
185
|
centerY: W.value.height / 2
|
|
178
186
|
}));
|
|
179
|
-
function
|
|
187
|
+
function ht(e, t = 1) {
|
|
180
188
|
let n = 29.85;
|
|
181
189
|
return {
|
|
182
190
|
x: K.value.centerX + K.value.radius * Math.cos(n + e * Math.PI / 180) * t,
|
|
@@ -184,26 +192,26 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
184
192
|
};
|
|
185
193
|
}
|
|
186
194
|
let q = N(H.value.style.chart.animation.use && !R.value ? 0 : U.value.percentage || 0);
|
|
187
|
-
|
|
188
|
-
H.value.style.chart.animation.use && !R.value ?
|
|
195
|
+
ve(() => U.value, (e) => {
|
|
196
|
+
H.value.style.chart.animation.use && !R.value ? kt(e.percentage) : q.value = e.percentage || 0;
|
|
189
197
|
}, { deep: !0 });
|
|
190
|
-
let J =
|
|
191
|
-
|
|
192
|
-
|
|
198
|
+
let J = me(null), Y = me(null);
|
|
199
|
+
pe(() => {
|
|
200
|
+
_t();
|
|
193
201
|
});
|
|
194
|
-
let
|
|
195
|
-
function
|
|
196
|
-
if (
|
|
202
|
+
let gt = T(() => !!H.value.debug);
|
|
203
|
+
function _t() {
|
|
204
|
+
if (s(z.dataset) && d({
|
|
197
205
|
componentName: "VueUiWheel",
|
|
198
206
|
type: "dataset",
|
|
199
|
-
debug:
|
|
207
|
+
debug: gt.value
|
|
200
208
|
}), H.value.responsive) {
|
|
201
|
-
let e =
|
|
202
|
-
let { width: e, height: t } =
|
|
209
|
+
let e = C(() => {
|
|
210
|
+
let { width: e, height: t } = te({
|
|
203
211
|
chart: V.value,
|
|
204
|
-
title: H.value.style.chart.title.text ?
|
|
205
|
-
source:
|
|
206
|
-
noTitle:
|
|
212
|
+
title: H.value.style.chart.title.text ? Xe.value : null,
|
|
213
|
+
source: Ze.value,
|
|
214
|
+
noTitle: Qe.value
|
|
207
215
|
});
|
|
208
216
|
requestAnimationFrame(() => {
|
|
209
217
|
W.value.width = e, W.value.height = t, G.value = H.value.style.chart.layout.percentage.fontSize / 360 * Math.min(e, t);
|
|
@@ -211,12 +219,12 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
211
219
|
});
|
|
212
220
|
J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect()), J.value = new ResizeObserver(e), Y.value = V.value.parentNode, J.value.observe(Y.value);
|
|
213
221
|
}
|
|
214
|
-
|
|
222
|
+
kt(U.value.percentage || 0), H.value.style.chart.animation.use && !R.value || (q.value = U.value.percentage || 0);
|
|
215
223
|
}
|
|
216
|
-
|
|
224
|
+
fe(() => {
|
|
217
225
|
J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect());
|
|
218
226
|
});
|
|
219
|
-
function
|
|
227
|
+
function vt([e, t, n], r) {
|
|
220
228
|
let i = Math.cos(r), a = Math.sin(r);
|
|
221
229
|
return [
|
|
222
230
|
e,
|
|
@@ -224,7 +232,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
224
232
|
t * a + n * i
|
|
225
233
|
];
|
|
226
234
|
}
|
|
227
|
-
function
|
|
235
|
+
function yt([e, t, n], r) {
|
|
228
236
|
let i = r / (r - n);
|
|
229
237
|
return [
|
|
230
238
|
e * i,
|
|
@@ -233,14 +241,14 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
233
241
|
i
|
|
234
242
|
];
|
|
235
243
|
}
|
|
236
|
-
function
|
|
244
|
+
function bt(e, t) {
|
|
237
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, H.value.style.chart.layout.wheel.ticks.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)));
|
|
238
246
|
return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}`;
|
|
239
247
|
}
|
|
240
|
-
function
|
|
241
|
-
let p = s * Math.PI / 180, m =
|
|
242
|
-
for (let
|
|
243
|
-
let i = (
|
|
248
|
+
function xt({ 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), b = [
|
|
244
252
|
s - e,
|
|
245
253
|
_ - t,
|
|
246
254
|
0
|
|
@@ -248,32 +256,32 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
248
256
|
v - e,
|
|
249
257
|
y - t,
|
|
250
258
|
0
|
|
251
|
-
], [S, ee, C] =
|
|
259
|
+
], [S, ee, C] = vt(b, p), [te, ne, re] = vt(x, p), [ie, ae, , w] = yt([
|
|
252
260
|
S,
|
|
253
261
|
ee,
|
|
254
262
|
C
|
|
255
|
-
], c), [
|
|
263
|
+
], c), [T, E, , D] = yt([
|
|
256
264
|
te,
|
|
257
265
|
ne,
|
|
258
266
|
re
|
|
259
|
-
], c),
|
|
267
|
+
], c), O = e + ie, oe = t + ae, se = e + T, ce = t + E, le = (Math.max(C, re) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), k = !f || f(n), ue = H.value.style.chart.layout.wheel.ticks.gradient.show ? r(u, n * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u, A = bt(k ? ue : d, le), j = Math.max(1.25, l * w * (Math.min(W.value.width, W.value.height) / 360));
|
|
260
268
|
g.push({
|
|
261
|
-
i:
|
|
262
|
-
x1:
|
|
269
|
+
i: n,
|
|
270
|
+
x1: O,
|
|
263
271
|
y1: oe,
|
|
264
272
|
x2: se,
|
|
265
|
-
y2:
|
|
266
|
-
stroke:
|
|
267
|
-
color:
|
|
273
|
+
y2: ce,
|
|
274
|
+
stroke: j,
|
|
275
|
+
color: A,
|
|
268
276
|
z: Math.max(C, re)
|
|
269
277
|
});
|
|
270
278
|
}
|
|
271
279
|
return g.sort((e, t) => e.z - t.z), g;
|
|
272
280
|
}
|
|
273
|
-
let
|
|
281
|
+
let St = T(() => {
|
|
274
282
|
if (!H.value.layout === "3d") return null;
|
|
275
|
-
let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ?
|
|
276
|
-
return
|
|
283
|
+
let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ? r(H.value.style.chart.layout.wheel.ticks.activeColor, 0) : H.value.style.chart.layout.wheel.ticks.activeColor, n = H.value.style.chart.layout.wheel.ticks.inactiveColor, i = H.value.style.chart.layout.wheel.ticks.strokeWidth;
|
|
284
|
+
return xt({
|
|
277
285
|
cx: K.value.centerX,
|
|
278
286
|
cy: K.value.centerY,
|
|
279
287
|
radius: K.value.radius,
|
|
@@ -284,18 +292,18 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
284
292
|
f: Math.min(W.value.width, W.value.height) * 1.45,
|
|
285
293
|
baseStroke: i,
|
|
286
294
|
activeColor: t,
|
|
287
|
-
inactiveColor:
|
|
295
|
+
inactiveColor: n,
|
|
288
296
|
getActive: (e) => q.value > e * Q.value
|
|
289
297
|
});
|
|
290
298
|
});
|
|
291
|
-
function
|
|
299
|
+
function Ct({ cx: e, cy: t, r: n, count: r = 180, startDeg: i = -90, axDeg: a = 50, f: o }) {
|
|
292
300
|
let s = a * Math.PI / 180, c = [], l = 0;
|
|
293
301
|
for (let a = 0; a < r; a += 1) {
|
|
294
|
-
let u = (a / r * 360 + i) * Math.PI / 180, [d, f, p] =
|
|
302
|
+
let u = (a / r * 360 + i) * Math.PI / 180, [d, f, p] = vt([
|
|
295
303
|
n * Math.cos(u),
|
|
296
304
|
n * Math.sin(u),
|
|
297
305
|
0
|
|
298
|
-
], s), [m, h, , g] =
|
|
306
|
+
], s), [m, h, , g] = yt([
|
|
299
307
|
d,
|
|
300
308
|
f,
|
|
301
309
|
p
|
|
@@ -315,7 +323,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
315
323
|
let X = T(() => {
|
|
316
324
|
if (H.value.layout !== "3d") return null;
|
|
317
325
|
let e = Math.min(W.value.width, W.value.height) * 1.45, t = H.value.style.chart.layout.wheel.tiltAngle3d, n = K.value.radius, { pts: r, avgScale: i } = (() => {
|
|
318
|
-
let r = n, i = t, { d: a, avgScale: o, pts: s } =
|
|
326
|
+
let r = n, i = t, { d: a, avgScale: o, pts: s } = Ct({
|
|
319
327
|
cx: K.value.centerX,
|
|
320
328
|
cy: K.value.centerY,
|
|
321
329
|
r,
|
|
@@ -337,8 +345,8 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
337
345
|
h: c - (o - f) + 2 * p
|
|
338
346
|
};
|
|
339
347
|
});
|
|
340
|
-
function
|
|
341
|
-
let t = Math.min(W.value.width, W.value.height) * 1.45, { d: n, avgScale: r } =
|
|
348
|
+
function wt(e) {
|
|
349
|
+
let t = Math.min(W.value.width, W.value.height) * 1.45, { d: n, avgScale: r } = Ct({
|
|
342
350
|
cx: K.value.centerX,
|
|
343
351
|
cy: K.value.centerY,
|
|
344
352
|
r: e,
|
|
@@ -352,13 +360,13 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
352
360
|
strokeWidth: i
|
|
353
361
|
};
|
|
354
362
|
}
|
|
355
|
-
let
|
|
356
|
-
function
|
|
357
|
-
let [o, s, c] =
|
|
363
|
+
let Tt = T(() => wt(Math.max(0, K.value.radius * .8 * H.value.style.chart.layout.innerCircle.radiusRatio)));
|
|
364
|
+
function Et({ cx: e, cy: t, r: n, aRad: r, ax: i, f: a }) {
|
|
365
|
+
let [o, s, c] = vt([
|
|
358
366
|
n * Math.cos(r),
|
|
359
367
|
n * Math.sin(r),
|
|
360
368
|
0
|
|
361
|
-
], i), [l, u, , d] =
|
|
369
|
+
], i), [l, u, , d] = yt([
|
|
362
370
|
o,
|
|
363
371
|
s,
|
|
364
372
|
c
|
|
@@ -370,43 +378,43 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
370
378
|
s: d
|
|
371
379
|
};
|
|
372
380
|
}
|
|
373
|
-
function
|
|
374
|
-
let p = s * Math.PI / 180, m =
|
|
375
|
-
for (let
|
|
376
|
-
let i = o * Math.PI / 180 + g *
|
|
381
|
+
function Dt({ 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, H.value.style.chart.layout.wheel.ticks.spacingRatio3d), v = Et({
|
|
377
385
|
cx: e,
|
|
378
386
|
cy: t + f,
|
|
379
387
|
r: m,
|
|
380
388
|
aRad: i,
|
|
381
389
|
ax: p,
|
|
382
390
|
f: c
|
|
383
|
-
}), y =
|
|
391
|
+
}), y = Et({
|
|
384
392
|
cx: e,
|
|
385
393
|
cy: t + f,
|
|
386
394
|
r: m,
|
|
387
395
|
aRad: s,
|
|
388
396
|
ax: p,
|
|
389
397
|
f: c
|
|
390
|
-
}), b =
|
|
398
|
+
}), b = Et({
|
|
391
399
|
cx: e,
|
|
392
400
|
cy: t + f,
|
|
393
401
|
r: h,
|
|
394
402
|
aRad: s,
|
|
395
403
|
ax: p,
|
|
396
404
|
f: c
|
|
397
|
-
}), x =
|
|
405
|
+
}), x = Et({
|
|
398
406
|
cx: e,
|
|
399
407
|
cy: t + f,
|
|
400
408
|
r: h,
|
|
401
409
|
aRad: i,
|
|
402
410
|
ax: p,
|
|
403
411
|
f: c
|
|
404
|
-
}), S = (v.z + y.z + x.z + b.z) / 4, ee =
|
|
412
|
+
}), S = (v.z + y.z + x.z + b.z) / 4, ee = bt(!d || d(n) ? H.value.style.chart.layout.wheel.ticks.gradient.show ? r(H.value.style.chart.layout.wheel.ticks.activeColor, 100 / a * n / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : l : u, (() => {
|
|
405
413
|
let e = m * Math.sin(p) || 1;
|
|
406
414
|
return (S - -e) / (2 * e);
|
|
407
415
|
})()), C = `M ${v.x} ${v.y} L ${y.x} ${y.y} L ${b.x} ${b.y} L ${x.x} ${x.y} Z`;
|
|
408
416
|
_.push({
|
|
409
|
-
i:
|
|
417
|
+
i: n,
|
|
410
418
|
d: C,
|
|
411
419
|
fill: ee,
|
|
412
420
|
z: S
|
|
@@ -414,10 +422,10 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
414
422
|
}
|
|
415
423
|
return _.sort((e, t) => e.z - t.z), _;
|
|
416
424
|
}
|
|
417
|
-
let
|
|
425
|
+
let Ot = T(() => {
|
|
418
426
|
if (H.value.layout !== "3d") return null;
|
|
419
427
|
let e = Z.value;
|
|
420
|
-
return (t) =>
|
|
428
|
+
return (t) => Dt({
|
|
421
429
|
cx: K.value.centerX,
|
|
422
430
|
cy: K.value.centerY,
|
|
423
431
|
radius: K.value.radius,
|
|
@@ -432,41 +440,41 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
432
440
|
Y: t
|
|
433
441
|
});
|
|
434
442
|
});
|
|
435
|
-
function
|
|
443
|
+
function kt(e) {
|
|
436
444
|
let t = H.value.style.chart.animation.speed, n = Math.abs(e - q.value) / (t * 120);
|
|
437
445
|
function r() {
|
|
438
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);
|
|
439
447
|
}
|
|
440
448
|
r();
|
|
441
449
|
}
|
|
442
|
-
let Z = T(() => (H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(H.value.style.chart.layout.wheel.ticks.quantity, 200)))), Q = T(() => 100 / Z.value),
|
|
450
|
+
let Z = T(() => (H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(H.value.style.chart.layout.wheel.ticks.quantity, 200)))), Q = T(() => 100 / Z.value), At = T(() => {
|
|
443
451
|
let e = [];
|
|
444
452
|
for (let t = 0; t < Z.value; t += 1) {
|
|
445
|
-
let
|
|
453
|
+
let n = q.value > t * Q.value ? H.value.style.chart.layout.wheel.ticks.activeColor : H.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: a } = ht(W.value.size / Z.value * t), { x: o, y: s } = ht(W.value.size / Z.value * t, H.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
446
454
|
e.push({
|
|
447
455
|
x1: i,
|
|
448
456
|
y1: a,
|
|
449
457
|
x2: o,
|
|
450
458
|
y2: s,
|
|
451
|
-
color: H.value.style.chart.layout.wheel.ticks.gradient.show ? n
|
|
459
|
+
color: H.value.style.chart.layout.wheel.ticks.gradient.show ? r(n, t * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : n
|
|
452
460
|
});
|
|
453
461
|
}
|
|
454
462
|
return e;
|
|
455
|
-
}),
|
|
463
|
+
}), jt = T(() => c({ series: At.value.map((e) => ({
|
|
456
464
|
name: "",
|
|
457
465
|
value: 1,
|
|
458
466
|
color: e.color
|
|
459
|
-
})) }, K.value.centerX, K.value.centerY, K.value.radius, K.value.radius, 1.99999, 2, 1, 360, 105.25, K.value.radius * (1 - H.value.style.chart.layout.wheel.ticks.sizeRatio))),
|
|
460
|
-
function
|
|
461
|
-
|
|
467
|
+
})) }, K.value.centerX, K.value.centerY, K.value.radius, K.value.radius, 1.99999, 2, 1, 360, 105.25, K.value.radius * (1 - H.value.style.chart.layout.wheel.ticks.sizeRatio))), Mt = N(!1);
|
|
468
|
+
function Nt(e) {
|
|
469
|
+
Mt.value = e, Ye.value += 1;
|
|
462
470
|
}
|
|
463
|
-
let
|
|
464
|
-
function
|
|
465
|
-
|
|
471
|
+
let Pt = N(!1);
|
|
472
|
+
function Ft() {
|
|
473
|
+
Pt.value = !Pt.value;
|
|
466
474
|
}
|
|
467
|
-
async function
|
|
475
|
+
async function It({ scale: e = 2 } = {}) {
|
|
468
476
|
if (!V.value) return;
|
|
469
|
-
let { width: t, height: n } = V.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
477
|
+
let { width: t, height: n } = V.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await x({
|
|
470
478
|
domElement: V.value,
|
|
471
479
|
base64: !0,
|
|
472
480
|
img: !0,
|
|
@@ -481,41 +489,41 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
481
489
|
aspectRatio: r
|
|
482
490
|
};
|
|
483
491
|
}
|
|
484
|
-
let
|
|
485
|
-
svg:
|
|
486
|
-
title:
|
|
487
|
-
backgroundColor:
|
|
492
|
+
let Lt = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2), Rt = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * .75), zt = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth), $ = T(() => Math.max(1, Math.min(20, H.value.style.chart.layout.wheel.ticks.depth3d))), Bt = T(() => H.value.style.chart.backgroundColor), Vt = T(() => H.value.style.chart.title), { exportSvg: Ht, getSvg: Ut } = v({
|
|
493
|
+
svg: ct,
|
|
494
|
+
title: Vt,
|
|
495
|
+
backgroundColor: Bt,
|
|
488
496
|
stretchTitle: !0
|
|
489
497
|
});
|
|
490
|
-
async function
|
|
491
|
-
|
|
498
|
+
async function Wt({ isCb: e }) {
|
|
499
|
+
tt.value = !0, await ue();
|
|
492
500
|
try {
|
|
493
501
|
if (e) {
|
|
494
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
502
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Ut();
|
|
495
503
|
await Promise.resolve(H.value.userOptions.callbacks.svg({
|
|
496
504
|
blob: e,
|
|
497
505
|
url: t,
|
|
498
506
|
text: n,
|
|
499
507
|
dataUrl: r
|
|
500
508
|
}));
|
|
501
|
-
} else await Promise.resolve(
|
|
509
|
+
} else await Promise.resolve(Ht());
|
|
502
510
|
} finally {
|
|
503
|
-
|
|
511
|
+
tt.value = !1;
|
|
504
512
|
}
|
|
505
513
|
}
|
|
506
|
-
function
|
|
514
|
+
function Gt(e) {
|
|
507
515
|
if (e?.stage === "start") {
|
|
508
|
-
|
|
516
|
+
et.value = !0;
|
|
509
517
|
return;
|
|
510
518
|
}
|
|
511
519
|
if (e?.stage === "end") {
|
|
512
|
-
|
|
520
|
+
et.value = !1;
|
|
513
521
|
return;
|
|
514
522
|
}
|
|
515
|
-
|
|
523
|
+
pt();
|
|
516
524
|
}
|
|
517
|
-
async function
|
|
518
|
-
if (
|
|
525
|
+
async function Kt() {
|
|
526
|
+
if (Ke("copyAlt", {
|
|
519
527
|
config: H.value,
|
|
520
528
|
dataset: U.value
|
|
521
529
|
}), !H.value.userOptions.callbacks.altCopy) {
|
|
@@ -527,19 +535,19 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
527
535
|
dataset: U.value
|
|
528
536
|
}));
|
|
529
537
|
}
|
|
530
|
-
let
|
|
531
|
-
v:
|
|
538
|
+
let qt = T(() => `${B.value}-title`), Jt = T(() => `${B.value}-desc`), Yt = T(() => o(H.value.style.chart.layout.percentage.formatter, a(q.value), i({
|
|
539
|
+
v: a(q.value),
|
|
532
540
|
s: "%",
|
|
533
541
|
r: H.value.style.chart.layout.percentage.rounding
|
|
534
|
-
}))),
|
|
535
|
-
return
|
|
536
|
-
getImage:
|
|
537
|
-
generatePdf:
|
|
538
|
-
generateImage:
|
|
539
|
-
generateSvg:
|
|
540
|
-
toggleAnnotator:
|
|
541
|
-
toggleFullscreen:
|
|
542
|
-
copyAlt:
|
|
542
|
+
}))), Xt = T(() => H.value.style.chart.title.text || ""), Zt = T(() => it.value ? "..." : `${Yt.value}`);
|
|
543
|
+
return ee({
|
|
544
|
+
getImage: It,
|
|
545
|
+
generatePdf: ft,
|
|
546
|
+
generateImage: pt,
|
|
547
|
+
generateSvg: Wt,
|
|
548
|
+
toggleAnnotator: Ft,
|
|
549
|
+
toggleFullscreen: Nt,
|
|
550
|
+
copyAlt: Kt
|
|
543
551
|
}), (e, t) => (M(), O("div", {
|
|
544
552
|
class: A(["vue-ui-wheel", {
|
|
545
553
|
"vue-data-ui-component": !0,
|
|
@@ -548,18 +556,18 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
548
556
|
ref_key: "wheelChart",
|
|
549
557
|
ref: V,
|
|
550
558
|
id: B.value,
|
|
551
|
-
style:
|
|
552
|
-
onMouseenter: t[0] ||= () => I(
|
|
553
|
-
onMouseleave: t[1] ||= () => I(
|
|
559
|
+
style: de(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor};${H.value.responsive ? "height:100%" : ""}`),
|
|
560
|
+
onMouseenter: t[0] ||= () => I(ot)(!0),
|
|
561
|
+
onMouseleave: t[1] ||= () => I(ot)(!1)
|
|
554
562
|
}, [
|
|
555
|
-
H.value.userOptions.buttons.annotator ? (M(), E(I(
|
|
563
|
+
H.value.userOptions.buttons.annotator ? (M(), E(I(Be), {
|
|
556
564
|
key: 0,
|
|
557
|
-
svgRef: I(
|
|
565
|
+
svgRef: I(ct),
|
|
558
566
|
backgroundColor: H.value.style.chart.backgroundColor,
|
|
559
567
|
color: H.value.style.chart.color,
|
|
560
|
-
active:
|
|
561
|
-
isCursorPointer:
|
|
562
|
-
onClose:
|
|
568
|
+
active: Pt.value,
|
|
569
|
+
isCursorPointer: nt.value,
|
|
570
|
+
onClose: Ft
|
|
563
571
|
}, {
|
|
564
572
|
"annotator-action-close": L(() => [F(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
565
573
|
"annotator-action-color": L(({ color: t }) => [F(e.$slots, "annotator-action-color", j(k({ color: t })), void 0, !0)]),
|
|
@@ -575,20 +583,20 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
575
583
|
"active",
|
|
576
584
|
"isCursorPointer"
|
|
577
585
|
])) : D("", !0),
|
|
578
|
-
|
|
586
|
+
mt.value ? (M(), O("div", {
|
|
579
587
|
key: 1,
|
|
580
588
|
ref_key: "noTitle",
|
|
581
|
-
ref:
|
|
589
|
+
ref: Qe,
|
|
582
590
|
class: "vue-data-ui-no-title-space",
|
|
583
591
|
style: "height:36px; width: 100%;background:transparent"
|
|
584
592
|
}, null, 512)) : D("", !0),
|
|
585
593
|
H.value.style.chart.title.text ? (M(), O("div", {
|
|
586
594
|
key: 2,
|
|
587
595
|
ref_key: "chartTitle",
|
|
588
|
-
ref:
|
|
596
|
+
ref: Xe,
|
|
589
597
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
590
|
-
}, [(M(), E(
|
|
591
|
-
key: `title_${
|
|
598
|
+
}, [(M(), E(S, {
|
|
599
|
+
key: `title_${$e.value}`,
|
|
592
600
|
config: {
|
|
593
601
|
title: {
|
|
594
602
|
cy: "wheel-title",
|
|
@@ -600,14 +608,14 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
600
608
|
}
|
|
601
609
|
}
|
|
602
610
|
}, null, 8, ["config"]))], 512)) : D("", !0),
|
|
603
|
-
H.value.userOptions.show &&
|
|
611
|
+
H.value.userOptions.show && qe.value && (I(st) || I(at)) ? (M(), E(I(Ve), {
|
|
604
612
|
ref_key: "details",
|
|
605
|
-
ref:
|
|
606
|
-
key: `user_options_${
|
|
613
|
+
ref: Je,
|
|
614
|
+
key: `user_options_${Ye.value}`,
|
|
607
615
|
backgroundColor: H.value.style.chart.backgroundColor,
|
|
608
616
|
color: H.value.style.chart.color,
|
|
609
|
-
isPrinting: I(
|
|
610
|
-
isImaging: I(
|
|
617
|
+
isPrinting: I(ut),
|
|
618
|
+
isImaging: I(dt),
|
|
611
619
|
uid: B.value,
|
|
612
620
|
hasPdf: H.value.userOptions.buttons.pdf,
|
|
613
621
|
hasImg: H.value.userOptions.buttons.img,
|
|
@@ -615,23 +623,23 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
615
623
|
hasFullscreen: H.value.userOptions.buttons.fullscreen,
|
|
616
624
|
hasAltCopy: H.value.userOptions.buttons.altCopy,
|
|
617
625
|
hasXls: !1,
|
|
618
|
-
isFullscreen:
|
|
626
|
+
isFullscreen: Mt.value,
|
|
619
627
|
position: H.value.userOptions.position,
|
|
620
628
|
titles: { ...H.value.userOptions.buttonTitles },
|
|
621
629
|
hasAnnotator: H.value.userOptions.buttons.annotator,
|
|
622
|
-
isAnnotation:
|
|
630
|
+
isAnnotation: Pt.value,
|
|
623
631
|
chartElement: V.value,
|
|
624
632
|
callbacks: H.value.userOptions.callbacks,
|
|
625
633
|
printScale: H.value.userOptions.print.scale,
|
|
626
|
-
isCursorPointer:
|
|
627
|
-
onToggleFullscreen:
|
|
628
|
-
onGeneratePdf: I(
|
|
629
|
-
onGenerateImage:
|
|
630
|
-
onGenerateSvg:
|
|
631
|
-
onToggleAnnotator:
|
|
632
|
-
onCopyAlt:
|
|
633
|
-
style:
|
|
634
|
-
},
|
|
634
|
+
isCursorPointer: nt.value,
|
|
635
|
+
onToggleFullscreen: Nt,
|
|
636
|
+
onGeneratePdf: I(ft),
|
|
637
|
+
onGenerateImage: Gt,
|
|
638
|
+
onGenerateSvg: Wt,
|
|
639
|
+
onToggleAnnotator: Ft,
|
|
640
|
+
onCopyAlt: Kt,
|
|
641
|
+
style: de({ visibility: I(st) ? I(at) ? "visible" : "hidden" : "visible" })
|
|
642
|
+
}, se({ _: 2 }, [
|
|
635
643
|
e.$slots.menuIcon ? {
|
|
636
644
|
name: "menuIcon",
|
|
637
645
|
fn: L(({ isOpen: t, color: n }) => [F(e.$slots, "menuIcon", j(k({
|
|
@@ -711,22 +719,22 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
711
719
|
])) : D("", !0),
|
|
712
720
|
(M(), O("svg", {
|
|
713
721
|
ref_key: "svgRef",
|
|
714
|
-
ref:
|
|
722
|
+
ref: ct,
|
|
715
723
|
xmlns: I(u),
|
|
716
724
|
class: A({
|
|
717
|
-
"vue-data-ui-fullscreen--on":
|
|
718
|
-
"vue-data-ui-fulscreen--off": !
|
|
725
|
+
"vue-data-ui-fullscreen--on": Mt.value,
|
|
726
|
+
"vue-data-ui-fulscreen--off": !Mt.value,
|
|
719
727
|
"vue-ui-wheel-3d-svg": H.value.layout === "3d"
|
|
720
728
|
}),
|
|
721
729
|
viewBox: H.value.layout === "3d" && !H.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)}`,
|
|
722
|
-
style:
|
|
730
|
+
style: de(`max-width:100%;overflow:visible;background:transparent;color:${H.value.style.chart.color}`),
|
|
723
731
|
role: "img",
|
|
724
|
-
"aria-labelledby":
|
|
725
|
-
"aria-describedby":
|
|
732
|
+
"aria-labelledby": qt.value,
|
|
733
|
+
"aria-describedby": Jt.value
|
|
726
734
|
}, [
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
735
|
+
oe("title", { id: qt.value }, he(Xt.value), 9, Se),
|
|
736
|
+
oe("desc", { id: Jt.value }, he(Zt.value), 9, Ce),
|
|
737
|
+
ce(I(He)),
|
|
730
738
|
e.$slots["chart-background"] ? (M(), O("foreignObject", {
|
|
731
739
|
key: 0,
|
|
732
740
|
x: H.value.layout === "3d" && !H.value.responsive ? X.value?.x - 10 : 0,
|
|
@@ -734,15 +742,15 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
734
742
|
width: H.value.layout === "3d" && !H.value.responsive ? X.value?.w + 20 ?? Math.max(10, W.value.width) : Math.max(10, W.value.width),
|
|
735
743
|
height: H.value.layout === "3d" && !H.value.responsive ? X.value?.h ?? Math.max(10, W.value.height) : Math.max(10, W.value.height),
|
|
736
744
|
style: { pointerEvents: "none" }
|
|
737
|
-
}, [F(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
738
|
-
H.value.layout === "3d" &&
|
|
745
|
+
}, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, we)) : D("", !0),
|
|
746
|
+
H.value.layout === "3d" && Tt.value ? (M(), O("path", {
|
|
739
747
|
key: 1,
|
|
740
748
|
class: "vue-ui-wheel-inner-circle",
|
|
741
|
-
d:
|
|
749
|
+
d: Tt.value.d,
|
|
742
750
|
stroke: H.value.style.chart.layout.innerCircle.stroke,
|
|
743
751
|
"stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
|
|
744
752
|
fill: "none"
|
|
745
|
-
}, null, 8,
|
|
753
|
+
}, null, 8, Te)) : H.value.style.chart.layout.innerCircle.show ? (M(), O("circle", {
|
|
746
754
|
key: 2,
|
|
747
755
|
class: "vue-ui-wheel-inner-circle",
|
|
748
756
|
cx: K.value.centerX,
|
|
@@ -751,21 +759,21 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
751
759
|
stroke: H.value.style.chart.layout.innerCircle.stroke,
|
|
752
760
|
"stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
|
|
753
761
|
fill: "none"
|
|
754
|
-
}, null, 8,
|
|
755
|
-
H.value.layout === "3d" ? (M(), O(w, { key: 3 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(), O("g",
|
|
762
|
+
}, null, 8, Ee)) : D("", !0),
|
|
763
|
+
H.value.layout === "3d" ? (M(), O(w, { key: 3 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(), O("g", De, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(St.value || [], (t) => (M(), O("line", {
|
|
756
764
|
key: t.i,
|
|
757
765
|
x1: t.x1,
|
|
758
766
|
y1: t.y1 - e,
|
|
759
767
|
x2: t.x2,
|
|
760
768
|
y2: t.y2 - e,
|
|
761
|
-
stroke: I(
|
|
769
|
+
stroke: I(n)(t.color, .25 * e / 5),
|
|
762
770
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
763
771
|
"stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
764
772
|
class: A({
|
|
765
773
|
"vue-ui-wheel-tick": !0,
|
|
766
774
|
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
|
|
767
775
|
})
|
|
768
|
-
}, null, 10,
|
|
776
|
+
}, null, 10, Oe))), 128))]))), 256)), (M(!0), O(w, null, P(St.value || [], (e) => (M(), O("line", {
|
|
769
777
|
key: e.i,
|
|
770
778
|
x1: e.x1,
|
|
771
779
|
y1: e.y1 - $.value,
|
|
@@ -778,7 +786,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
778
786
|
"vue-ui-wheel-tick": !0,
|
|
779
787
|
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
|
|
780
788
|
})
|
|
781
|
-
}, null, 10,
|
|
789
|
+
}, null, 10, ke))), 128))])) : (M(), O("g", Ae, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(Ot.value(-e) || [], (e) => (M(), O("path", {
|
|
782
790
|
key: e.i,
|
|
783
791
|
d: e.d,
|
|
784
792
|
fill: H.value.style.chart.layout.wheel.ticks.inactiveColor,
|
|
@@ -787,10 +795,10 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
787
795
|
"stroke-linecap": "round",
|
|
788
796
|
"stroke-linejoin": "round",
|
|
789
797
|
class: "vue-ui-wheel-tick"
|
|
790
|
-
}, null, 8,
|
|
798
|
+
}, null, 8, je))), 128)), (M(!0), O(w, null, P(Ot.value(-e) || [], (t) => (M(), O("path", {
|
|
791
799
|
key: t.i,
|
|
792
800
|
d: t.d,
|
|
793
|
-
fill: I(
|
|
801
|
+
fill: I(n)(t.fill, .5 * e / $.value),
|
|
794
802
|
stroke: H.value.style.chart.layout.wheel.ticks.stroke,
|
|
795
803
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
796
804
|
"stroke-linecap": "round",
|
|
@@ -799,7 +807,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
799
807
|
"vue-ui-wheel-tick": !0,
|
|
800
808
|
"vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
|
|
801
809
|
})
|
|
802
|
-
}, null, 10,
|
|
810
|
+
}, null, 10, Me))), 128))]))), 256)), oe("g", null, [(M(!0), O(w, null, P(Ot.value(-$.value) || [], (e) => (M(), O("path", {
|
|
803
811
|
key: e.i,
|
|
804
812
|
d: e.d,
|
|
805
813
|
fill: e.fill,
|
|
@@ -811,7 +819,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
811
819
|
"vue-ui-wheel-tick": !0,
|
|
812
820
|
"vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
|
|
813
821
|
})
|
|
814
|
-
}, null, 10,
|
|
822
|
+
}, null, 10, Ne))), 128))])]))], 64)) : (M(), O(w, { key: 4 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(!0), O(w, { key: 0 }, P(At.value, (e, t) => (M(), O("line", {
|
|
815
823
|
x1: e.x1,
|
|
816
824
|
x2: e.x2,
|
|
817
825
|
y1: e.y1,
|
|
@@ -823,7 +831,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
823
831
|
"vue-ui-wheel-tick": !0,
|
|
824
832
|
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
|
|
825
833
|
})
|
|
826
|
-
}, null, 10,
|
|
834
|
+
}, null, 10, Pe))), 256)) : (M(!0), O(w, { key: 1 }, P(jt.value, (e, t) => (M(), O("path", {
|
|
827
835
|
d: e.arcSlice,
|
|
828
836
|
fill: e.color,
|
|
829
837
|
class: A({
|
|
@@ -832,13 +840,13 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
832
840
|
}),
|
|
833
841
|
stroke: H.value.style.chart.layout.wheel.ticks.stroke,
|
|
834
842
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth
|
|
835
|
-
}, null, 10,
|
|
843
|
+
}, null, 10, Fe))), 256))], 64)),
|
|
836
844
|
H.value.style.chart.layout.percentage.show ? (M(), O("g", {
|
|
837
845
|
key: 5,
|
|
838
846
|
role: "status",
|
|
839
847
|
"aria-live": "polite",
|
|
840
|
-
"aria-label": I(
|
|
841
|
-
}, [I(
|
|
848
|
+
"aria-label": I(it) ? "..." : Yt.value
|
|
849
|
+
}, [I(it) ? (M(), O("rect", {
|
|
842
850
|
key: 0,
|
|
843
851
|
x: K.value.centerX - 40,
|
|
844
852
|
y: K.value.centerY - G.value / 2,
|
|
@@ -846,13 +854,13 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
846
854
|
height: G.value,
|
|
847
855
|
fill: "#6A6A6A80",
|
|
848
856
|
rx: "3"
|
|
849
|
-
}, null, 8,
|
|
857
|
+
}, null, 8, Le)) : (M(), O("text", {
|
|
850
858
|
key: 1,
|
|
851
859
|
"aria-hidden": "true",
|
|
852
860
|
x: K.value.centerX + H.value.style.chart.layout.percentage.offsetX,
|
|
853
861
|
y: K.value.centerY + G.value / 3 + H.value.style.chart.layout.percentage.offsetY,
|
|
854
862
|
"font-size": G.value,
|
|
855
|
-
fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(
|
|
863
|
+
fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(r)(H.value.style.chart.layout.wheel.ticks.activeColor, q.value / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : H.value.style.chart.layout.wheel.ticks.activeColor,
|
|
856
864
|
"text-anchor": "middle",
|
|
857
865
|
"font-weight": H.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
858
866
|
style: { "font-variant-numeric": "tabluar-nums" },
|
|
@@ -862,23 +870,23 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
862
870
|
"stroke-linejoin": "round",
|
|
863
871
|
"paint-order": "stroke fill",
|
|
864
872
|
class: A({ "vue-ui-wheel-label": H.value.layout === "3d" })
|
|
865
|
-
},
|
|
873
|
+
}, he(Yt.value), 11, Re))], 8, Ie)) : D("", !0),
|
|
866
874
|
F(e.$slots, "svg", { svg: {
|
|
867
875
|
...W.value,
|
|
868
|
-
isPrintingImg: I(
|
|
869
|
-
isPrintingSvg:
|
|
876
|
+
isPrintingImg: I(ut) || I(dt) || et.value,
|
|
877
|
+
isPrintingSvg: tt.value
|
|
870
878
|
} }, void 0, !0)
|
|
871
|
-
], 14,
|
|
872
|
-
e.$slots.watermark ? (M(), O("div",
|
|
879
|
+
], 14, xe)),
|
|
880
|
+
e.$slots.watermark ? (M(), O("div", ze, [F(e.$slots, "watermark", j(k({ isPrinting: I(ut) || I(dt) || et.value || tt.value })), void 0, !0)])) : D("", !0),
|
|
873
881
|
e.$slots.source ? (M(), O("div", {
|
|
874
882
|
key: 5,
|
|
875
883
|
ref_key: "source",
|
|
876
|
-
ref:
|
|
884
|
+
ref: Ze,
|
|
877
885
|
dir: "auto"
|
|
878
886
|
}, [F(e.$slots, "source", {}, void 0, !0)], 512)) : D("", !0),
|
|
879
|
-
F(e.$slots, "skeleton", {}, () => [I(
|
|
880
|
-
], 46,
|
|
887
|
+
F(e.$slots, "skeleton", {}, () => [I(it) ? (M(), E(_, { key: 0 })) : D("", !0)], !0)
|
|
888
|
+
], 46, be));
|
|
881
889
|
}
|
|
882
|
-
}, [["__scopeId", "data-v-
|
|
890
|
+
}, [["__scopeId", "data-v-8da34f59"]]);
|
|
883
891
|
//#endregion
|
|
884
|
-
export {
|
|
892
|
+
export { ye as n, Be as t };
|