vue-data-ui 3.22.7 → 3.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, Dt as n, Et as r, G as i, J as a, Kt as o, i as s, kt as c, t as l, v as u, zt as d } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as f } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as p } from "./usePrinter-
|
|
4
|
+
import { t as p } from "./usePrinter-CqqHmnBI.js";
|
|
5
5
|
import { n as m, t as h } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as g } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as _ } from "./useNestedProp-
|
|
7
|
+
import { t as _ } from "./useNestedProp-DIuuzG1r.js";
|
|
8
8
|
import { t as v } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as y } from "./img-
|
|
10
|
-
import { n as b } from "./Title-
|
|
9
|
+
import { t as y } from "./img-DnP3eXuv.js";
|
|
10
|
+
import { n as b } from "./Title-CcNiYzEo.js";
|
|
11
11
|
import { t as x } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import { c as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { Fragment as
|
|
12
|
+
import { c as S } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as ee } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as C } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as te } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as ne } from "./usePrefersMotion-BC-CsqR1.js";
|
|
17
|
+
import { t as re } 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 ie, createSlots as ae, createVNode as oe, defineAsyncComponent as se, guardReactiveProps as k, nextTick as ce, normalizeClass as A, normalizeProps as j, normalizeStyle as le, onBeforeUnmount as ue, onMounted as de, openBlock as M, ref as N, renderList as P, renderSlot as F, shallowRef as fe, toDisplayString as pe, toRefs as me, unref as I, useCssVars as he, watch as ge, withCtx as L } from "vue";
|
|
19
19
|
//#region src/components/vue-ui-wheel.vue
|
|
20
20
|
var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
21
21
|
"xmlns",
|
|
@@ -119,7 +119,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
119
119
|
c5f7f2ee: It.value,
|
|
120
120
|
c5f82dc8: Lt.value
|
|
121
121
|
}));
|
|
122
|
-
let Re =
|
|
122
|
+
let Re = se(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), ze = se(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), Be = se(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), { vue_ui_wheel: Ve } = f(), { isThemeValid: He, warnInvalidTheme: Ue } = v(), R = ne(), z = e, We = _e, Ge = T(() => !!z.dataset && Object.keys(z.dataset).length), B = N(i()), Ke = N(null), qe = N(0), V = N(null), Je = N(null), Ye = N(null), Xe = N(null), Ze = N(0), Qe = N(!1), $e = N(!1), H = N(st()), et = T(() => H.value.userOptions.useCursorPointer), tt = T(() => o({
|
|
123
123
|
defaultConfig: {
|
|
124
124
|
userOptions: { show: !1 },
|
|
125
125
|
style: { chart: {
|
|
@@ -140,11 +140,11 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
140
140
|
FINAL_CONFIG: H,
|
|
141
141
|
prepareConfig: st,
|
|
142
142
|
skeletonDataset: z.config?.skeletonDataset ?? { percentage: 50 },
|
|
143
|
-
skeletonConfig:
|
|
143
|
+
skeletonConfig: o({
|
|
144
144
|
defaultConfig: H.value,
|
|
145
145
|
userConfig: tt.value
|
|
146
146
|
})
|
|
147
|
-
}), { userOptionsVisible: rt, setUserOptionsVisibility: it, keepUserOptionState: at } =
|
|
147
|
+
}), { userOptionsVisible: rt, setUserOptionsVisibility: it, keepUserOptionState: at } = C({ config: H.value }), { svgRef: ot } = te({ config: H.value.style.chart.title });
|
|
148
148
|
function st() {
|
|
149
149
|
let e = _({
|
|
150
150
|
userConfig: z.config,
|
|
@@ -153,7 +153,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
153
153
|
if (!t) return e;
|
|
154
154
|
if (!He.value(e)) return Ue(e), e;
|
|
155
155
|
let n = _({
|
|
156
|
-
userConfig:
|
|
156
|
+
userConfig: re[t] || z.config,
|
|
157
157
|
defaultConfig: e
|
|
158
158
|
});
|
|
159
159
|
return _({
|
|
@@ -168,11 +168,11 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
168
168
|
elementId: B.value,
|
|
169
169
|
fileName: H.value.style.chart.title.text || "vue-ui-wheel",
|
|
170
170
|
options: H.value.userOptions.print
|
|
171
|
-
}), ft =
|
|
171
|
+
}), ft = T(() => H.value.userOptions.show && !H.value.style.chart.title.text), W = N({
|
|
172
172
|
size: 360,
|
|
173
173
|
height: 360,
|
|
174
174
|
width: 360
|
|
175
|
-
}), G = N(H.value.style.chart.layout.percentage.fontSize), K =
|
|
175
|
+
}), G = N(H.value.style.chart.layout.percentage.fontSize), K = T(() => ({
|
|
176
176
|
radius: Math.min(W.value.width, W.value.height) * .9 / 2 * H.value.style.chart.layout.wheel.radiusRatio,
|
|
177
177
|
centerX: W.value.width / 2,
|
|
178
178
|
centerY: W.value.height / 2
|
|
@@ -192,15 +192,15 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
192
192
|
de(() => {
|
|
193
193
|
ht();
|
|
194
194
|
});
|
|
195
|
-
let mt =
|
|
195
|
+
let mt = T(() => !!H.value.debug);
|
|
196
196
|
function ht() {
|
|
197
|
-
if (
|
|
197
|
+
if (c(z.dataset) && t({
|
|
198
198
|
componentName: "VueUiWheel",
|
|
199
199
|
type: "dataset",
|
|
200
200
|
debug: mt.value
|
|
201
201
|
}), H.value.responsive) {
|
|
202
|
-
let e =
|
|
203
|
-
let { width: e, height: t } =
|
|
202
|
+
let e = S(() => {
|
|
203
|
+
let { width: e, height: t } = ee({
|
|
204
204
|
chart: V.value,
|
|
205
205
|
title: H.value.style.chart.title.text ? Je.value : null,
|
|
206
206
|
source: Ye.value,
|
|
@@ -238,42 +238,42 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
238
238
|
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)));
|
|
239
239
|
return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}`;
|
|
240
240
|
}
|
|
241
|
-
function yt({ cx: e, cy: t, radius: n, innerRatio: r = .8, count: i = 120, startDeg:
|
|
242
|
-
let p =
|
|
241
|
+
function yt({ cx: e, cy: t, radius: n, innerRatio: r = .8, count: i = 120, startDeg: a = 0, axDeg: o = 50, f: s = 520, baseStroke: c = 5, activeColor: l, inactiveColor: u, getActive: f }) {
|
|
242
|
+
let p = o * Math.PI / 180, m = n, h = n * r, g = [];
|
|
243
243
|
for (let n = 0; n < i; n += 1) {
|
|
244
|
-
let r = (n / i * 360 +
|
|
245
|
-
|
|
244
|
+
let r = (n / i * 360 + a) * Math.PI / 180, o = e + m * Math.cos(r), _ = t + m * Math.sin(r), v = e + h * Math.cos(r), y = t + h * Math.sin(r), b = [
|
|
245
|
+
o - e,
|
|
246
246
|
_ - t,
|
|
247
247
|
0
|
|
248
248
|
], x = [
|
|
249
249
|
v - e,
|
|
250
250
|
y - t,
|
|
251
251
|
0
|
|
252
|
-
], [
|
|
252
|
+
], [S, ee, C] = gt(b, p), [te, ne, re] = gt(x, p), [w, T, , E] = _t([
|
|
253
|
+
S,
|
|
253
254
|
ee,
|
|
255
|
+
C
|
|
256
|
+
], s), [D, O, , ie] = _t([
|
|
254
257
|
te,
|
|
255
|
-
S
|
|
256
|
-
], c), [E, D, , ae] = _t([
|
|
257
258
|
ne,
|
|
258
|
-
re
|
|
259
|
-
|
|
260
|
-
], c), oe = e + C, se = t + w, ce = e + E, O = t + D, le = (Math.max(S, ie) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), k = f ? f(n) : !0, A = H.value.style.chart.layout.wheel.ticks.gradient.show ? a(u, n * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u, j = vt(k ? A : d, le), ue = Math.max(1.25, l * T * (Math.min(W.value.width, W.value.height) / 360));
|
|
259
|
+
re
|
|
260
|
+
], s), ae = e + w, oe = t + T, se = e + D, k = t + O, ce = (Math.max(C, re) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), A = f ? f(n) : !0, j = H.value.style.chart.layout.wheel.ticks.gradient.show ? d(l, n * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : l, le = vt(A ? j : u, ce), ue = Math.max(1.25, c * E * (Math.min(W.value.width, W.value.height) / 360));
|
|
261
261
|
g.push({
|
|
262
262
|
i: n,
|
|
263
|
-
x1:
|
|
264
|
-
y1:
|
|
265
|
-
x2:
|
|
266
|
-
y2:
|
|
263
|
+
x1: ae,
|
|
264
|
+
y1: oe,
|
|
265
|
+
x2: se,
|
|
266
|
+
y2: k,
|
|
267
267
|
stroke: ue,
|
|
268
|
-
color:
|
|
269
|
-
z: Math.max(
|
|
268
|
+
color: le,
|
|
269
|
+
z: Math.max(C, re)
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
return g.sort((e, t) => e.z - t.z), g;
|
|
273
273
|
}
|
|
274
|
-
let bt =
|
|
274
|
+
let bt = T(() => {
|
|
275
275
|
if (!H.value.layout === "3d") return null;
|
|
276
|
-
let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ?
|
|
276
|
+
let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ? d(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, r = H.value.style.chart.layout.wheel.ticks.strokeWidth;
|
|
277
277
|
return yt({
|
|
278
278
|
cx: K.value.centerX,
|
|
279
279
|
cy: K.value.centerY,
|
|
@@ -313,7 +313,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
313
313
|
pts: c
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
|
-
let X =
|
|
316
|
+
let X = T(() => {
|
|
317
317
|
if (H.value.layout !== "3d") return null;
|
|
318
318
|
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 } = (() => {
|
|
319
319
|
let r = n, i = t, { d: a, avgScale: o, pts: s } = xt({
|
|
@@ -353,7 +353,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
353
353
|
strokeWidth: i
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
let Ct =
|
|
356
|
+
let Ct = T(() => St(Math.max(0, K.value.radius * .8 * H.value.style.chart.layout.innerCircle.radiusRatio)));
|
|
357
357
|
function wt({ cx: e, cy: t, r: n, aRad: r, ax: i, f: a }) {
|
|
358
358
|
let [o, s, c] = gt([
|
|
359
359
|
n * Math.cos(r),
|
|
@@ -371,51 +371,51 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
371
371
|
s: d
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function Tt({ cx: e, cy: t, radius: n, innerRatio: r = .8, count: i = 120, startDeg:
|
|
375
|
-
let p =
|
|
374
|
+
function Tt({ cx: e, cy: t, radius: n, innerRatio: r = .8, count: i = 120, startDeg: a = -87, axDeg: o = 45, f: s = 600, activeColor: c, inactiveColor: l, getActive: u, Y: f = 0 }) {
|
|
375
|
+
let p = o * Math.PI / 180, m = n, h = n * r, g = 2 * Math.PI / i, _ = [];
|
|
376
376
|
for (let n = 0; n < i; n += 1) {
|
|
377
|
-
let r =
|
|
377
|
+
let r = a * Math.PI / 180 + g * n, o = r + g * Math.min(1, H.value.style.chart.layout.wheel.ticks.spacingRatio3d), v = wt({
|
|
378
378
|
cx: e,
|
|
379
379
|
cy: t + f,
|
|
380
380
|
r: m,
|
|
381
381
|
aRad: r,
|
|
382
382
|
ax: p,
|
|
383
|
-
f:
|
|
383
|
+
f: s
|
|
384
384
|
}), y = wt({
|
|
385
385
|
cx: e,
|
|
386
386
|
cy: t + f,
|
|
387
387
|
r: m,
|
|
388
|
-
aRad:
|
|
388
|
+
aRad: o,
|
|
389
389
|
ax: p,
|
|
390
|
-
f:
|
|
390
|
+
f: s
|
|
391
391
|
}), b = wt({
|
|
392
392
|
cx: e,
|
|
393
393
|
cy: t + f,
|
|
394
394
|
r: h,
|
|
395
|
-
aRad:
|
|
395
|
+
aRad: o,
|
|
396
396
|
ax: p,
|
|
397
|
-
f:
|
|
397
|
+
f: s
|
|
398
398
|
}), x = wt({
|
|
399
399
|
cx: e,
|
|
400
400
|
cy: t + f,
|
|
401
401
|
r: h,
|
|
402
402
|
aRad: r,
|
|
403
403
|
ax: p,
|
|
404
|
-
f:
|
|
405
|
-
}),
|
|
404
|
+
f: s
|
|
405
|
+
}), S = (v.z + y.z + x.z + b.z) / 4, ee = vt(!u || u(n) ? H.value.style.chart.layout.wheel.ticks.gradient.show ? d(H.value.style.chart.layout.wheel.ticks.activeColor, 100 / i * n / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : c : l, (() => {
|
|
406
406
|
let e = m * Math.sin(p) || 1;
|
|
407
|
-
return (
|
|
408
|
-
})()),
|
|
407
|
+
return (S - -e) / (2 * e);
|
|
408
|
+
})()), C = `M ${v.x} ${v.y} L ${y.x} ${y.y} L ${b.x} ${b.y} L ${x.x} ${x.y} Z`;
|
|
409
409
|
_.push({
|
|
410
410
|
i: n,
|
|
411
|
-
d:
|
|
412
|
-
fill:
|
|
413
|
-
z:
|
|
411
|
+
d: C,
|
|
412
|
+
fill: ee,
|
|
413
|
+
z: S
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
return _.sort((e, t) => e.z - t.z), _;
|
|
417
417
|
}
|
|
418
|
-
let Et =
|
|
418
|
+
let Et = T(() => {
|
|
419
419
|
if (H.value.layout !== "3d") return null;
|
|
420
420
|
let e = Z.value;
|
|
421
421
|
return (t) => Tt({
|
|
@@ -440,20 +440,20 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
440
440
|
}
|
|
441
441
|
r();
|
|
442
442
|
}
|
|
443
|
-
let Z =
|
|
443
|
+
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), Ot = T(() => {
|
|
444
444
|
let e = [];
|
|
445
445
|
for (let t = 0; t < Z.value; t += 1) {
|
|
446
|
-
let n = q.value > t * Q.value ? H.value.style.chart.layout.wheel.ticks.activeColor : H.value.style.chart.layout.wheel.ticks.inactiveColor, { x: r, y: i } = pt(W.value.size / Z.value * t), { x:
|
|
446
|
+
let n = q.value > t * Q.value ? H.value.style.chart.layout.wheel.ticks.activeColor : H.value.style.chart.layout.wheel.ticks.inactiveColor, { x: r, y: i } = pt(W.value.size / Z.value * t), { x: a, y: o } = pt(W.value.size / Z.value * t, H.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
447
447
|
e.push({
|
|
448
448
|
x1: r,
|
|
449
449
|
y1: i,
|
|
450
|
-
x2:
|
|
451
|
-
y2:
|
|
452
|
-
color: H.value.style.chart.layout.wheel.ticks.gradient.show ?
|
|
450
|
+
x2: a,
|
|
451
|
+
y2: o,
|
|
452
|
+
color: H.value.style.chart.layout.wheel.ticks.gradient.show ? d(n, t * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : n
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
return e;
|
|
456
|
-
}), kt =
|
|
456
|
+
}), kt = T(() => n({ series: Ot.value.map((e) => ({
|
|
457
457
|
name: "",
|
|
458
458
|
value: 1,
|
|
459
459
|
color: e.color
|
|
@@ -482,14 +482,14 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
482
482
|
aspectRatio: r
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
|
-
let Ft =
|
|
485
|
+
let Ft = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2), It = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * .75), Lt = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth), $ = T(() => Math.max(1, Math.min(20, H.value.style.chart.layout.wheel.ticks.depth3d))), Rt = T(() => H.value.style.chart.backgroundColor), { exportSvg: zt, getSvg: Bt } = g({
|
|
486
486
|
svg: ot,
|
|
487
|
-
title:
|
|
487
|
+
title: T(() => H.value.style.chart.title),
|
|
488
488
|
backgroundColor: Rt,
|
|
489
489
|
stretchTitle: !0
|
|
490
490
|
});
|
|
491
491
|
async function Vt({ isCb: e }) {
|
|
492
|
-
$e.value = !0, await
|
|
492
|
+
$e.value = !0, await ce();
|
|
493
493
|
try {
|
|
494
494
|
if (e) {
|
|
495
495
|
let { blob: e, url: t, text: n, dataUrl: r } = await Bt();
|
|
@@ -528,11 +528,11 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
528
528
|
dataset: U.value
|
|
529
529
|
}));
|
|
530
530
|
}
|
|
531
|
-
let Wt =
|
|
532
|
-
v:
|
|
531
|
+
let Wt = T(() => `${B.value}-title`), Gt = T(() => `${B.value}-desc`), Kt = T(() => s(H.value.style.chart.layout.percentage.formatter, u(q.value), a({
|
|
532
|
+
v: u(q.value),
|
|
533
533
|
s: "%",
|
|
534
534
|
r: H.value.style.chart.layout.percentage.rounding
|
|
535
|
-
}))), qt =
|
|
535
|
+
}))), qt = T(() => H.value.style.chart.title.text || ""), Jt = T(() => nt.value ? "..." : `${Kt.value}`);
|
|
536
536
|
return x({
|
|
537
537
|
getImage: Pt,
|
|
538
538
|
generatePdf: ut,
|
|
@@ -541,19 +541,19 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
541
541
|
toggleAnnotator: Nt,
|
|
542
542
|
toggleFullscreen: jt,
|
|
543
543
|
copyAlt: Ut
|
|
544
|
-
}), (e, t) => (M(),
|
|
545
|
-
class:
|
|
544
|
+
}), (e, t) => (M(), O("div", {
|
|
545
|
+
class: A(["vue-ui-wheel", {
|
|
546
546
|
"vue-data-ui-component": !0,
|
|
547
547
|
"vue-ui-wheel-3d-wrap": H.value.layout === "3d"
|
|
548
548
|
}]),
|
|
549
549
|
ref_key: "wheelChart",
|
|
550
550
|
ref: V,
|
|
551
551
|
id: B.value,
|
|
552
|
-
style:
|
|
552
|
+
style: le(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor};${H.value.responsive ? "height:100%" : ""}`),
|
|
553
553
|
onMouseenter: t[0] ||= () => I(it)(!0),
|
|
554
554
|
onMouseleave: t[1] ||= () => I(it)(!1)
|
|
555
555
|
}, [
|
|
556
|
-
H.value.userOptions.buttons.annotator ? (M(),
|
|
556
|
+
H.value.userOptions.buttons.annotator ? (M(), E(I(Re), {
|
|
557
557
|
key: 0,
|
|
558
558
|
svgRef: I(ot),
|
|
559
559
|
backgroundColor: H.value.style.chart.backgroundColor,
|
|
@@ -563,11 +563,11 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
563
563
|
onClose: Nt
|
|
564
564
|
}, {
|
|
565
565
|
"annotator-action-close": L(() => [F(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
566
|
-
"annotator-action-color": L(({ color: t }) => [F(e.$slots, "annotator-action-color",
|
|
567
|
-
"annotator-action-draw": L(({ mode: t }) => [F(e.$slots, "annotator-action-draw",
|
|
568
|
-
"annotator-action-undo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-undo",
|
|
569
|
-
"annotator-action-redo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-redo",
|
|
570
|
-
"annotator-action-delete": L(({ disabled: t }) => [F(e.$slots, "annotator-action-delete",
|
|
566
|
+
"annotator-action-color": L(({ color: t }) => [F(e.$slots, "annotator-action-color", j(k({ color: t })), void 0, !0)]),
|
|
567
|
+
"annotator-action-draw": L(({ mode: t }) => [F(e.$slots, "annotator-action-draw", j(k({ mode: t })), void 0, !0)]),
|
|
568
|
+
"annotator-action-undo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-undo", j(k({ disabled: t })), void 0, !0)]),
|
|
569
|
+
"annotator-action-redo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-redo", j(k({ disabled: t })), void 0, !0)]),
|
|
570
|
+
"annotator-action-delete": L(({ disabled: t }) => [F(e.$slots, "annotator-action-delete", j(k({ disabled: t })), void 0, !0)]),
|
|
571
571
|
_: 3
|
|
572
572
|
}, 8, [
|
|
573
573
|
"svgRef",
|
|
@@ -575,20 +575,20 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
575
575
|
"color",
|
|
576
576
|
"active",
|
|
577
577
|
"isCursorPointer"
|
|
578
|
-
])) :
|
|
579
|
-
ft.value ? (M(),
|
|
578
|
+
])) : D("", !0),
|
|
579
|
+
ft.value ? (M(), O("div", {
|
|
580
580
|
key: 1,
|
|
581
581
|
ref_key: "noTitle",
|
|
582
582
|
ref: Xe,
|
|
583
583
|
class: "vue-data-ui-no-title-space",
|
|
584
584
|
style: "height:36px; width: 100%;background:transparent"
|
|
585
|
-
}, null, 512)) :
|
|
586
|
-
H.value.style.chart.title.text ? (M(),
|
|
585
|
+
}, null, 512)) : D("", !0),
|
|
586
|
+
H.value.style.chart.title.text ? (M(), O("div", {
|
|
587
587
|
key: 2,
|
|
588
588
|
ref_key: "chartTitle",
|
|
589
589
|
ref: Je,
|
|
590
590
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
591
|
-
}, [(M(),
|
|
591
|
+
}, [(M(), E(b, {
|
|
592
592
|
key: `title_${Ze.value}`,
|
|
593
593
|
config: {
|
|
594
594
|
title: {
|
|
@@ -600,8 +600,8 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
600
600
|
...H.value.style.chart.title.subtitle
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
}, null, 8, ["config"]))], 512)) :
|
|
604
|
-
H.value.userOptions.show && Ge.value && (I(at) || I(rt)) ? (M(),
|
|
603
|
+
}, null, 8, ["config"]))], 512)) : D("", !0),
|
|
604
|
+
H.value.userOptions.show && Ge.value && (I(at) || I(rt)) ? (M(), E(I(ze), {
|
|
605
605
|
ref_key: "details",
|
|
606
606
|
ref: Ke,
|
|
607
607
|
key: `user_options_${qe.value}`,
|
|
@@ -631,11 +631,11 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
631
631
|
onGenerateSvg: Vt,
|
|
632
632
|
onToggleAnnotator: Nt,
|
|
633
633
|
onCopyAlt: Ut,
|
|
634
|
-
style:
|
|
635
|
-
},
|
|
634
|
+
style: le({ visibility: I(at) ? I(rt) ? "visible" : "hidden" : "visible" })
|
|
635
|
+
}, ae({ _: 2 }, [
|
|
636
636
|
e.$slots.menuIcon ? {
|
|
637
637
|
name: "menuIcon",
|
|
638
|
-
fn: L(({ isOpen: t, color: n }) => [F(e.$slots, "menuIcon",
|
|
638
|
+
fn: L(({ isOpen: t, color: n }) => [F(e.$slots, "menuIcon", j(k({
|
|
639
639
|
isOpen: t,
|
|
640
640
|
color: n
|
|
641
641
|
})), void 0, !0)]),
|
|
@@ -658,7 +658,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
658
658
|
} : void 0,
|
|
659
659
|
e.$slots.optionFullscreen ? {
|
|
660
660
|
name: "optionFullscreen",
|
|
661
|
-
fn: L(({ toggleFullscreen: t, isFullscreen: n }) => [F(e.$slots, "optionFullscreen",
|
|
661
|
+
fn: L(({ toggleFullscreen: t, isFullscreen: n }) => [F(e.$slots, "optionFullscreen", j(k({
|
|
662
662
|
toggleFullscreen: t,
|
|
663
663
|
isFullscreen: n
|
|
664
664
|
})), void 0, !0)]),
|
|
@@ -666,7 +666,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
666
666
|
} : void 0,
|
|
667
667
|
e.$slots.optionAnnotator ? {
|
|
668
668
|
name: "optionAnnotator",
|
|
669
|
-
fn: L(({ toggleAnnotator: t, isAnnotator: n }) => [F(e.$slots, "optionAnnotator",
|
|
669
|
+
fn: L(({ toggleAnnotator: t, isAnnotator: n }) => [F(e.$slots, "optionAnnotator", j(k({
|
|
670
670
|
toggleAnnotator: t,
|
|
671
671
|
isAnnotator: n
|
|
672
672
|
})), void 0, !0)]),
|
|
@@ -674,7 +674,7 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
674
674
|
} : void 0,
|
|
675
675
|
e.$slots.optionAltCopy ? {
|
|
676
676
|
name: "optionAltCopy",
|
|
677
|
-
fn: L(({ altCopy: t }) => [F(e.$slots, "optionAltCopy",
|
|
677
|
+
fn: L(({ altCopy: t }) => [F(e.$slots, "optionAltCopy", j(k({ altCopy: t })), void 0, !0)]),
|
|
678
678
|
key: "6"
|
|
679
679
|
} : void 0,
|
|
680
680
|
e.$slots["custom-menu-before"] ? {
|
|
@@ -709,41 +709,41 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
709
709
|
"isCursorPointer",
|
|
710
710
|
"onGeneratePdf",
|
|
711
711
|
"style"
|
|
712
|
-
])) :
|
|
713
|
-
(M(),
|
|
712
|
+
])) : D("", !0),
|
|
713
|
+
(M(), O("svg", {
|
|
714
714
|
ref_key: "svgRef",
|
|
715
715
|
ref: ot,
|
|
716
|
-
xmlns: I(
|
|
717
|
-
class:
|
|
716
|
+
xmlns: I(l),
|
|
717
|
+
class: A({
|
|
718
718
|
"vue-data-ui-fullscreen--on": At.value,
|
|
719
719
|
"vue-data-ui-fulscreen--off": !At.value,
|
|
720
720
|
"vue-ui-wheel-3d-svg": H.value.layout === "3d"
|
|
721
721
|
}),
|
|
722
722
|
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)}`,
|
|
723
|
-
style:
|
|
723
|
+
style: le(`max-width:100%;overflow:visible;background:transparent;color:${H.value.style.chart.color}`),
|
|
724
724
|
role: "img",
|
|
725
725
|
"aria-labelledby": Wt.value,
|
|
726
726
|
"aria-describedby": Gt.value
|
|
727
727
|
}, [
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
e.$slots["chart-background"] ? (M(),
|
|
728
|
+
ie("title", { id: Wt.value }, pe(qt.value), 9, be),
|
|
729
|
+
ie("desc", { id: Gt.value }, pe(Jt.value), 9, xe),
|
|
730
|
+
oe(I(Be)),
|
|
731
|
+
e.$slots["chart-background"] ? (M(), O("foreignObject", {
|
|
732
732
|
key: 0,
|
|
733
733
|
x: H.value.layout === "3d" && !H.value.responsive ? X.value?.x - 10 : 0,
|
|
734
734
|
y: H.value.layout === "3d" && !H.value.responsive ? X.value?.y ?? 0 : 0,
|
|
735
735
|
width: H.value.layout === "3d" && !H.value.responsive ? X.value?.w + 20 ?? Math.max(10, W.value.width) : Math.max(10, W.value.width),
|
|
736
736
|
height: H.value.layout === "3d" && !H.value.responsive ? X.value?.h ?? Math.max(10, W.value.height) : Math.max(10, W.value.height),
|
|
737
737
|
style: { pointerEvents: "none" }
|
|
738
|
-
}, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, Se)) :
|
|
739
|
-
H.value.layout === "3d" && Ct.value ? (M(),
|
|
738
|
+
}, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, Se)) : D("", !0),
|
|
739
|
+
H.value.layout === "3d" && Ct.value ? (M(), O("path", {
|
|
740
740
|
key: 1,
|
|
741
741
|
class: "vue-ui-wheel-inner-circle",
|
|
742
742
|
d: Ct.value.d,
|
|
743
743
|
stroke: H.value.style.chart.layout.innerCircle.stroke,
|
|
744
744
|
"stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
|
|
745
745
|
fill: "none"
|
|
746
|
-
}, null, 8, Ce)) : H.value.style.chart.layout.innerCircle.show ? (M(),
|
|
746
|
+
}, null, 8, Ce)) : H.value.style.chart.layout.innerCircle.show ? (M(), O("circle", {
|
|
747
747
|
key: 2,
|
|
748
748
|
class: "vue-ui-wheel-inner-circle",
|
|
749
749
|
cx: K.value.centerX,
|
|
@@ -752,21 +752,21 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
752
752
|
stroke: H.value.style.chart.layout.innerCircle.stroke,
|
|
753
753
|
"stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
|
|
754
754
|
fill: "none"
|
|
755
|
-
}, null, 8, we)) :
|
|
756
|
-
H.value.layout === "3d" ? (M(),
|
|
755
|
+
}, null, 8, we)) : D("", !0),
|
|
756
|
+
H.value.layout === "3d" ? (M(), O(w, { key: 3 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(), O("g", Te, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(bt.value || [], (t) => (M(), O("line", {
|
|
757
757
|
key: t.i,
|
|
758
758
|
x1: t.x1,
|
|
759
759
|
y1: t.y1 - e,
|
|
760
760
|
x2: t.x2,
|
|
761
761
|
y2: t.y2 - e,
|
|
762
|
-
stroke: I(
|
|
762
|
+
stroke: I(r)(t.color, .25 * e / 5),
|
|
763
763
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
764
764
|
"stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
765
|
-
class:
|
|
765
|
+
class: A({
|
|
766
766
|
"vue-ui-wheel-tick": !0,
|
|
767
767
|
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
|
|
768
768
|
})
|
|
769
|
-
}, null, 10, Ee))), 128))]))), 256)), (M(!0),
|
|
769
|
+
}, null, 10, Ee))), 128))]))), 256)), (M(!0), O(w, null, P(bt.value || [], (e) => (M(), O("line", {
|
|
770
770
|
key: e.i,
|
|
771
771
|
x1: e.x1,
|
|
772
772
|
y1: e.y1 - $.value,
|
|
@@ -775,11 +775,11 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
775
775
|
stroke: e.color,
|
|
776
776
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
777
777
|
"stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
778
|
-
class:
|
|
778
|
+
class: A({
|
|
779
779
|
"vue-ui-wheel-tick": !0,
|
|
780
780
|
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
|
|
781
781
|
})
|
|
782
|
-
}, null, 10, De))), 128))])) : (M(),
|
|
782
|
+
}, null, 10, De))), 128))])) : (M(), O("g", Oe, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(Et.value(-e) || [], (e) => (M(), O("path", {
|
|
783
783
|
key: e.i,
|
|
784
784
|
d: e.d,
|
|
785
785
|
fill: H.value.style.chart.layout.wheel.ticks.inactiveColor,
|
|
@@ -788,19 +788,19 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
788
788
|
"stroke-linecap": "round",
|
|
789
789
|
"stroke-linejoin": "round",
|
|
790
790
|
class: "vue-ui-wheel-tick"
|
|
791
|
-
}, null, 8, ke))), 128)), (M(!0),
|
|
791
|
+
}, null, 8, ke))), 128)), (M(!0), O(w, null, P(Et.value(-e) || [], (t) => (M(), O("path", {
|
|
792
792
|
key: t.i,
|
|
793
793
|
d: t.d,
|
|
794
|
-
fill: I(
|
|
794
|
+
fill: I(r)(t.fill, .5 * e / $.value),
|
|
795
795
|
stroke: H.value.style.chart.layout.wheel.ticks.stroke,
|
|
796
796
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
797
797
|
"stroke-linecap": "round",
|
|
798
798
|
"stroke-linejoin": "round",
|
|
799
|
-
class:
|
|
799
|
+
class: A({
|
|
800
800
|
"vue-ui-wheel-tick": !0,
|
|
801
801
|
"vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
|
|
802
802
|
})
|
|
803
|
-
}, null, 10, Ae))), 128))]))), 256)),
|
|
803
|
+
}, null, 10, Ae))), 128))]))), 256)), ie("g", null, [(M(!0), O(w, null, P(Et.value(-$.value) || [], (e) => (M(), O("path", {
|
|
804
804
|
key: e.i,
|
|
805
805
|
d: e.d,
|
|
806
806
|
fill: e.fill,
|
|
@@ -808,11 +808,11 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
808
808
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
809
809
|
"stroke-linecap": "round",
|
|
810
810
|
"stroke-linejoin": "round",
|
|
811
|
-
class:
|
|
811
|
+
class: A({
|
|
812
812
|
"vue-ui-wheel-tick": !0,
|
|
813
813
|
"vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
|
|
814
814
|
})
|
|
815
|
-
}, null, 10, je))), 128))])]))], 64)) : (M(),
|
|
815
|
+
}, null, 10, je))), 128))])]))], 64)) : (M(), O(w, { key: 4 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(!0), O(w, { key: 0 }, P(Ot.value, (e, t) => (M(), O("line", {
|
|
816
816
|
x1: e.x1,
|
|
817
817
|
x2: e.x2,
|
|
818
818
|
y1: e.y1,
|
|
@@ -820,26 +820,26 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
820
820
|
stroke: e.color,
|
|
821
821
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
|
|
822
822
|
"stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
823
|
-
class:
|
|
823
|
+
class: A({
|
|
824
824
|
"vue-ui-wheel-tick": !0,
|
|
825
825
|
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
|
|
826
826
|
})
|
|
827
|
-
}, null, 10, Me))), 256)) : (M(!0),
|
|
827
|
+
}, null, 10, Me))), 256)) : (M(!0), O(w, { key: 1 }, P(kt.value, (e, t) => (M(), O("path", {
|
|
828
828
|
d: e.arcSlice,
|
|
829
829
|
fill: e.color,
|
|
830
|
-
class:
|
|
830
|
+
class: A({
|
|
831
831
|
"vue-ui-wheel-tick": !0,
|
|
832
832
|
"vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
|
|
833
833
|
}),
|
|
834
834
|
stroke: H.value.style.chart.layout.wheel.ticks.stroke,
|
|
835
835
|
"stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth
|
|
836
836
|
}, null, 10, Ne))), 256))], 64)),
|
|
837
|
-
H.value.style.chart.layout.percentage.show ? (M(),
|
|
837
|
+
H.value.style.chart.layout.percentage.show ? (M(), O("g", {
|
|
838
838
|
key: 5,
|
|
839
839
|
role: "status",
|
|
840
840
|
"aria-live": "polite",
|
|
841
841
|
"aria-label": I(nt) ? "..." : Kt.value
|
|
842
|
-
}, [I(nt) ? (M(),
|
|
842
|
+
}, [I(nt) ? (M(), O("rect", {
|
|
843
843
|
key: 0,
|
|
844
844
|
x: K.value.centerX - 40,
|
|
845
845
|
y: K.value.centerY - G.value / 2,
|
|
@@ -847,13 +847,13 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
847
847
|
height: G.value,
|
|
848
848
|
fill: "#6A6A6A80",
|
|
849
849
|
rx: "3"
|
|
850
|
-
}, null, 8, Fe)) : (M(),
|
|
850
|
+
}, null, 8, Fe)) : (M(), O("text", {
|
|
851
851
|
key: 1,
|
|
852
852
|
"aria-hidden": "true",
|
|
853
853
|
x: K.value.centerX + H.value.style.chart.layout.percentage.offsetX,
|
|
854
854
|
y: K.value.centerY + G.value / 3 + H.value.style.chart.layout.percentage.offsetY,
|
|
855
855
|
"font-size": G.value,
|
|
856
|
-
fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(
|
|
856
|
+
fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(d)(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,
|
|
857
857
|
"text-anchor": "middle",
|
|
858
858
|
"font-weight": H.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
859
859
|
style: { "font-variant-numeric": "tabluar-nums" },
|
|
@@ -862,22 +862,22 @@ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
|
|
|
862
862
|
"stroke-linecap": "round",
|
|
863
863
|
"stroke-linejoin": "round",
|
|
864
864
|
"paint-order": "stroke fill",
|
|
865
|
-
class:
|
|
866
|
-
}, pe(Kt.value), 11, Ie))], 8, Pe)) :
|
|
865
|
+
class: A({ "vue-ui-wheel-label": H.value.layout === "3d" })
|
|
866
|
+
}, pe(Kt.value), 11, Ie))], 8, Pe)) : D("", !0),
|
|
867
867
|
F(e.$slots, "svg", { svg: {
|
|
868
868
|
...W.value,
|
|
869
869
|
isPrintingImg: I(ct) || I(lt) || Qe.value,
|
|
870
870
|
isPrintingSvg: $e.value
|
|
871
871
|
} }, void 0, !0)
|
|
872
872
|
], 14, ye)),
|
|
873
|
-
e.$slots.watermark ? (M(),
|
|
874
|
-
e.$slots.source ? (M(),
|
|
873
|
+
e.$slots.watermark ? (M(), O("div", Le, [F(e.$slots, "watermark", j(k({ isPrinting: I(ct) || I(lt) || Qe.value || $e.value })), void 0, !0)])) : D("", !0),
|
|
874
|
+
e.$slots.source ? (M(), O("div", {
|
|
875
875
|
key: 5,
|
|
876
876
|
ref_key: "source",
|
|
877
877
|
ref: Ye,
|
|
878
878
|
dir: "auto"
|
|
879
|
-
}, [F(e.$slots, "source", {}, void 0, !0)], 512)) :
|
|
880
|
-
F(e.$slots, "skeleton", {}, () => [I(nt) ? (M(),
|
|
879
|
+
}, [F(e.$slots, "source", {}, void 0, !0)], 512)) : D("", !0),
|
|
880
|
+
F(e.$slots, "skeleton", {}, () => [I(nt) ? (M(), E(h, { key: 0 })) : D("", !0)], !0)
|
|
881
881
|
], 46, ve));
|
|
882
882
|
}
|
|
883
883
|
}, [["__scopeId", "data-v-c58856ab"]]);
|