vue-data-ui 3.2.7 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
- package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
- package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
- package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
- package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
- package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
- package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
- package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
- package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
- package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
- package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
- package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
- package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
- package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
- package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
- package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
- package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
- package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
- package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
- package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
- package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
- package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
- package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
- package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
- package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
- package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
- package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
- package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
- package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
- package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
- package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
- package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
- package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
- package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-data-ui-DH8opsJv.js +0 -325
- package/dist/vue-ui-flow-B72CBzC3.js +0 -909
- package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
- package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
1
|
+
import { useCssVars as $t, computed as f, defineAsyncComponent as ge, ref as _, toRefs as St, watch as Ue, shallowRef as Be, onMounted as It, onBeforeUnmount as Rt, createElementBlock as n, openBlock as o, unref as c, normalizeStyle as fe, normalizeClass as P, createBlock as se, createCommentVNode as I, createSlots as Pt, withCtx as V, renderSlot as z, normalizeProps as oe, guardReactiveProps as ne, createVNode as zt, Fragment as $, renderList as O, createElementVNode as Ot, toDisplayString as Wt } from "vue";
|
|
2
|
+
import { c as Tt, t as Dt, o as Ft, f as Xt, i as Z, n as Nt, X as Lt, m as Ee, a as Ut, q as je, d as Bt } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as Et, u as jt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Yt, a as Ye } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as Gt, B as Ht } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as qt } from "./usePrinter-DYRFiw7X.js";
|
|
7
|
+
import { u as Vt } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Jt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import Kt from "./img-6wPuVVtk.js";
|
|
11
|
+
import Qt from "./Title-D17CJXko.js";
|
|
12
|
+
import { t as ea } from "./themes-Dw-dDudK.js";
|
|
13
|
+
import { _ as ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"], oa = ["d", "stroke", "stroke-width"], na = ["cx", "cy", "r", "stroke", "stroke-width"], ua = { key: 0 }, ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], ia = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], ca = { key: 1 }, ha = ["d", "fill", "stroke", "stroke-width"], va = ["d", "fill", "stroke", "stroke-width"], da = ["d", "fill", "stroke", "stroke-width"], ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], ka = ["d", "fill", "stroke", "stroke-width"], ga = { key: 5 }, fa = ["x", "y", "height"], pa = ["x", "y", "font-size", "fill", "font-weight", "stroke", "stroke-width"], ma = {
|
|
14
15
|
key: 4,
|
|
15
16
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
17
|
+
}, wa = {
|
|
17
18
|
__name: "vue-ui-wheel",
|
|
18
19
|
props: {
|
|
19
20
|
config: {
|
|
@@ -29,18 +30,18 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
|
-
setup(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
setup(Ge, { expose: He }) {
|
|
34
|
+
$t((t) => ({
|
|
35
|
+
v67722b6e: ut.value,
|
|
36
|
+
v3e8c19ef: rt.value,
|
|
37
|
+
v3e8bfc82: it.value
|
|
37
38
|
}));
|
|
38
|
-
const qe =
|
|
39
|
-
...
|
|
39
|
+
const qe = ge(() => import("./PenAndPaper-BxbYiPy4.js")), Ve = ge(() => import("./UserOptions-B3vCIe-u.js")), Ze = ge(() => import("./PackageVersion-C9oklnuy.js")), { vue_ui_wheel: Je } = Yt(), F = Ge, Ke = f(() => !!F.dataset && Object.keys(F.dataset).length), ue = _(Tt()), Qe = _(null), pe = _(0), X = _(null), me = _(null), we = _(null), be = _(null), xe = _(0), e = _(he()), { loading: Me, FINAL_DATASET: re } = Gt({
|
|
40
|
+
...St(F),
|
|
40
41
|
FINAL_CONFIG: e,
|
|
41
|
-
prepareConfig:
|
|
42
|
+
prepareConfig: he,
|
|
42
43
|
skeletonDataset: { percentage: 50 },
|
|
43
|
-
skeletonConfig:
|
|
44
|
+
skeletonConfig: Dt({
|
|
44
45
|
defaultConfig: e.value,
|
|
45
46
|
userConfig: {
|
|
46
47
|
userOptions: { show: !1 },
|
|
@@ -63,31 +64,31 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
})
|
|
66
|
-
}), { userOptionsVisible:
|
|
67
|
-
function
|
|
68
|
-
const t =
|
|
67
|
+
}), { userOptionsVisible: ie, setUserOptionsVisibility: Ce, keepUserOptionState: _e } = Zt({ config: e.value }), { svgRef: ce } = Jt({ config: e.value.style.chart.title });
|
|
68
|
+
function he() {
|
|
69
|
+
const t = Ye({
|
|
69
70
|
userConfig: F.config,
|
|
70
|
-
defaultConfig:
|
|
71
|
+
defaultConfig: Je
|
|
71
72
|
});
|
|
72
73
|
return t.theme ? {
|
|
73
|
-
...
|
|
74
|
-
userConfig:
|
|
74
|
+
...Ye({
|
|
75
|
+
userConfig: ea.vue_ui_wheel[t.theme] || F.config,
|
|
75
76
|
defaultConfig: t
|
|
76
77
|
})
|
|
77
78
|
} : t;
|
|
78
79
|
}
|
|
79
|
-
|
|
80
|
-
e.value =
|
|
80
|
+
Ue(() => F.config, (t) => {
|
|
81
|
+
e.value = he(), ie.value = !e.value.userOptions.showOnChartHover, Pe(), xe.value += 1;
|
|
81
82
|
}, { deep: !0 });
|
|
82
|
-
const { isPrinting: Ae, isImaging: $e, generatePdf:
|
|
83
|
+
const { isPrinting: Ae, isImaging: $e, generatePdf: Se, generateImage: Ie } = qt({
|
|
83
84
|
elementId: ue.value,
|
|
84
85
|
fileName: e.value.style.chart.title.text || "vue-ui-wheel",
|
|
85
86
|
options: e.value.userOptions.print
|
|
86
|
-
}),
|
|
87
|
+
}), et = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = _({
|
|
87
88
|
size: 360,
|
|
88
89
|
height: 360,
|
|
89
90
|
width: 360
|
|
90
|
-
}),
|
|
91
|
+
}), E = _(e.value.style.chart.layout.percentage.fontSize), i = f(() => ({
|
|
91
92
|
radius: Math.min(u.value.width, u.value.height) * 0.9 / 2 * e.value.style.chart.layout.wheel.radiusRatio,
|
|
92
93
|
centerX: u.value.width / 2,
|
|
93
94
|
centerY: u.value.height / 2
|
|
@@ -98,37 +99,37 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
98
99
|
y: i.value.centerY + i.value.radius * Math.sin(29.85 + t * Math.PI / 180) * s
|
|
99
100
|
};
|
|
100
101
|
}
|
|
101
|
-
const d = _(e.value.style.chart.animation.use ? 0 :
|
|
102
|
-
|
|
103
|
-
e.value.style.chart.animation.use ?
|
|
102
|
+
const d = _(e.value.style.chart.animation.use ? 0 : re.value.percentage || 0);
|
|
103
|
+
Ue(() => re.value, (t) => {
|
|
104
|
+
e.value.style.chart.animation.use ? De(t.percentage) : d.value = t.percentage || 0;
|
|
104
105
|
}, { deep: !0 });
|
|
105
|
-
const W =
|
|
106
|
-
|
|
106
|
+
const W = Be(null), L = Be(null);
|
|
107
|
+
It(() => {
|
|
107
108
|
Pe();
|
|
108
109
|
});
|
|
109
|
-
const
|
|
110
|
+
const tt = f(() => !!e.value.debug);
|
|
110
111
|
function Pe() {
|
|
111
|
-
if (
|
|
112
|
+
if (Ft(F.dataset) && Xt({
|
|
112
113
|
componentName: "VueUiWheel",
|
|
113
114
|
type: "dataset",
|
|
114
|
-
debug:
|
|
115
|
+
debug: tt.value
|
|
115
116
|
}), e.value.responsive) {
|
|
116
|
-
const t =
|
|
117
|
-
const { width: s, height: a } =
|
|
117
|
+
const t = Et(() => {
|
|
118
|
+
const { width: s, height: a } = jt({
|
|
118
119
|
chart: X.value,
|
|
119
|
-
title: e.value.style.chart.title.text ?
|
|
120
|
-
source:
|
|
121
|
-
noTitle:
|
|
120
|
+
title: e.value.style.chart.title.text ? me.value : null,
|
|
121
|
+
source: we.value,
|
|
122
|
+
noTitle: be.value
|
|
122
123
|
});
|
|
123
124
|
requestAnimationFrame(() => {
|
|
124
|
-
u.value.width = s, u.value.height = a,
|
|
125
|
+
u.value.width = s, u.value.height = a, E.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(s, a);
|
|
125
126
|
});
|
|
126
127
|
});
|
|
127
128
|
W.value && (L.value && W.value.unobserve(L.value), W.value.disconnect()), W.value = new ResizeObserver(t), L.value = X.value.parentNode, W.value.observe(L.value);
|
|
128
129
|
}
|
|
129
|
-
|
|
130
|
+
De(re.value.percentage || 0);
|
|
130
131
|
}
|
|
131
|
-
|
|
132
|
+
Rt(() => {
|
|
132
133
|
W.value && (L.value && W.value.unobserve(L.value), W.value.disconnect());
|
|
133
134
|
});
|
|
134
135
|
function J([t, s, a], l) {
|
|
@@ -143,7 +144,7 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
143
144
|
const a = t.replace("#", ""), l = parseInt(a.substring(0, 2), 16), r = parseInt(a.substring(2, 4), 16), v = parseInt(a.substring(4, 6), 16), y = 1 - Math.min(1, Math.max(0, e.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * s, k = Math.max(0, Math.min(255, Math.round(l * y))), x = Math.max(0, Math.min(255, Math.round(r * y))), M = Math.max(0, Math.min(255, Math.round(v * y)));
|
|
144
145
|
return `#${k.toString(16).padStart(2, "0")}${x.toString(16).padStart(2, "0")}${M.toString(16).padStart(2, "0")}`;
|
|
145
146
|
}
|
|
146
|
-
function
|
|
147
|
+
function at({
|
|
147
148
|
cx: t,
|
|
148
149
|
cy: s,
|
|
149
150
|
radius: a,
|
|
@@ -158,16 +159,16 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
158
159
|
getActive: A
|
|
159
160
|
}) {
|
|
160
161
|
const h = w * Math.PI / 180, p = a, C = a * l, b = [];
|
|
161
|
-
for (let
|
|
162
|
-
const
|
|
163
|
-
b.push({ i:
|
|
162
|
+
for (let m = 0; m < r; m += 1) {
|
|
163
|
+
const g = (m / r * 360 + v) * Math.PI / 180, R = t + p * Math.cos(g), B = s + p * Math.sin(g), N = t + C * Math.cos(g), j = s + C * Math.sin(g), Y = [R - t, B - s, 0], G = [N - t, j - s, 0], [ae, Le, H] = J(Y, h), [ye, ke, q] = J(G, h), [le, yt, , kt] = K([ae, Le, H], y), [gt, ft, , ba] = K([ye, ke, q], y), pt = t + le, mt = s + yt, wt = t + gt, bt = s + ft, xt = (Math.max(H, q) - -p * Math.sin(h)) / (2 * p * Math.sin(h) || 1), Mt = A ? A(m) : !0, Ct = e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(x, m * S.value / D.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : x, _t = ze(Mt ? Ct : M, xt), At = Math.max(1.25, k * kt * (Math.min(u.value.width, u.value.height) / 360));
|
|
164
|
+
b.push({ i: m, x1: pt, y1: mt, x2: wt, y2: bt, stroke: At, color: _t, z: Math.max(H, q) });
|
|
164
165
|
}
|
|
165
|
-
return b.sort((
|
|
166
|
+
return b.sort((m, g) => m.z - g.z), b;
|
|
166
167
|
}
|
|
167
|
-
const Oe =
|
|
168
|
+
const Oe = f(() => {
|
|
168
169
|
if (!e.value.layout === "3d") return null;
|
|
169
|
-
const t =
|
|
170
|
-
return
|
|
170
|
+
const t = D.value, s = e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(e.value.style.chart.layout.wheel.ticks.activeColor, 0) : e.value.style.chart.layout.wheel.ticks.activeColor, a = e.value.style.chart.layout.wheel.ticks.inactiveColor, l = e.value.style.chart.layout.wheel.ticks.strokeWidth;
|
|
171
|
+
return at({
|
|
171
172
|
cx: i.value.centerX,
|
|
172
173
|
cy: i.value.centerY,
|
|
173
174
|
radius: i.value.radius,
|
|
@@ -179,15 +180,15 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
179
180
|
baseStroke: l,
|
|
180
181
|
activeColor: s,
|
|
181
182
|
inactiveColor: a,
|
|
182
|
-
getActive: (r) => d.value > r *
|
|
183
|
+
getActive: (r) => d.value > r * S.value
|
|
183
184
|
});
|
|
184
185
|
});
|
|
185
186
|
function We({ cx: t, cy: s, r: a, count: l = 180, startDeg: r = -90, axDeg: v = 50, f: w }) {
|
|
186
187
|
const y = v * Math.PI / 180, k = [];
|
|
187
188
|
let x = 0;
|
|
188
189
|
for (let h = 0; h < l; h += 1) {
|
|
189
|
-
const p = (h / l * 360 + r) * Math.PI / 180, C = [a * Math.cos(p), a * Math.sin(p), 0], [b,
|
|
190
|
-
x += N, k.push([t + R, s +
|
|
190
|
+
const p = (h / l * 360 + r) * Math.PI / 180, C = [a * Math.cos(p), a * Math.sin(p), 0], [b, m, g] = J(C, y), [R, B, , N] = K([b, m, g], w);
|
|
191
|
+
x += N, k.push([t + R, s + B]);
|
|
191
192
|
}
|
|
192
193
|
let M = `M ${k[0][0]} ${k[0][1]}`;
|
|
193
194
|
for (let h = 1; h < k.length; h += 1)
|
|
@@ -196,10 +197,10 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
196
197
|
const A = x / l;
|
|
197
198
|
return { d: M, avgScale: A, pts: k };
|
|
198
199
|
}
|
|
199
|
-
const
|
|
200
|
+
const T = f(() => {
|
|
200
201
|
if (e.value.layout !== "3d") return null;
|
|
201
202
|
const t = Math.min(u.value.width, u.value.height) * 1.45, s = e.value.style.chart.layout.wheel.tiltAngle3d, a = i.value.radius, { pts: l, avgScale: r } = (() => {
|
|
202
|
-
const C = a, b = s, { avgScale:
|
|
203
|
+
const C = a, b = s, { avgScale: m, pts: g } = We({
|
|
203
204
|
cx: i.value.centerX,
|
|
204
205
|
cy: i.value.centerY,
|
|
205
206
|
r: C,
|
|
@@ -207,7 +208,7 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
207
208
|
axDeg: b,
|
|
208
209
|
f: t
|
|
209
210
|
});
|
|
210
|
-
return { pts:
|
|
211
|
+
return { pts: g, avgScale: m };
|
|
211
212
|
})();
|
|
212
213
|
let v = 1 / 0, w = 1 / 0, y = -1 / 0, k = -1 / 0;
|
|
213
214
|
for (const [C, b] of l)
|
|
@@ -220,7 +221,7 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
220
221
|
h: k - (w - h) + 2 * p
|
|
221
222
|
};
|
|
222
223
|
});
|
|
223
|
-
function
|
|
224
|
+
function lt(t) {
|
|
224
225
|
const s = Math.min(u.value.width, u.value.height) * 1.45, { d: a, avgScale: l } = We({
|
|
225
226
|
cx: i.value.centerX,
|
|
226
227
|
cy: i.value.centerY,
|
|
@@ -235,12 +236,12 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
235
236
|
strokeWidth: v
|
|
236
237
|
};
|
|
237
238
|
}
|
|
238
|
-
const
|
|
239
|
+
const Te = f(() => lt(Math.max(0, i.value.radius * 0.8 * e.value.style.chart.layout.innerCircle.radiusRatio)));
|
|
239
240
|
function Q({ cx: t, cy: s, r: a, aRad: l, ax: r, f: v }) {
|
|
240
241
|
const w = [a * Math.cos(l), a * Math.sin(l), 0], [y, k, x] = J(w, r), [M, A, , h] = K([y, k, x], v);
|
|
241
242
|
return { x: t + M, y: s + A, z: x, s: h };
|
|
242
243
|
}
|
|
243
|
-
function
|
|
244
|
+
function st({
|
|
244
245
|
cx: t,
|
|
245
246
|
cy: s,
|
|
246
247
|
radius: a,
|
|
@@ -254,23 +255,23 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
254
255
|
getActive: M,
|
|
255
256
|
Y: A = 0
|
|
256
257
|
}) {
|
|
257
|
-
const h = w * Math.PI / 180, p = a, C = a * l, b = 2 * Math.PI / r,
|
|
258
|
-
for (let
|
|
259
|
-
const R = v * Math.PI / 180 + b *
|
|
258
|
+
const h = w * Math.PI / 180, p = a, C = a * l, b = 2 * Math.PI / r, m = [];
|
|
259
|
+
for (let g = 0; g < r; g += 1) {
|
|
260
|
+
const R = v * Math.PI / 180 + b * g, B = R + b * Math.min(1, e.value.style.chart.layout.wheel.ticks.spacingRatio3d), N = Q({ cx: t, cy: s + A, r: p, aRad: R, ax: h, f: y }), j = Q({ cx: t, cy: s + A, r: p, aRad: B, ax: h, f: y }), Y = Q({ cx: t, cy: s + A, r: C, aRad: B, ax: h, f: y }), G = Q({ cx: t, cy: s + A, r: C, aRad: R, ax: h, f: y }), ae = (N.z + j.z + G.z + Y.z) / 4, H = (M ? M(g) : !0) ? e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(
|
|
260
261
|
e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
261
|
-
|
|
262
|
-
) : k : x,
|
|
262
|
+
g * (100 / r) / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)
|
|
263
|
+
) : k : x, ye = (() => {
|
|
263
264
|
const le = p * Math.sin(h) || 1;
|
|
264
265
|
return (ae - -le) / (2 * le);
|
|
265
|
-
})(),
|
|
266
|
-
|
|
266
|
+
})(), ke = ze(H, ye), q = `M ${N.x} ${N.y} L ${j.x} ${j.y} L ${Y.x} ${Y.y} L ${G.x} ${G.y} Z`;
|
|
267
|
+
m.push({ i: g, d: q, fill: ke, z: ae });
|
|
267
268
|
}
|
|
268
|
-
return
|
|
269
|
+
return m.sort((g, R) => g.z - R.z), m;
|
|
269
270
|
}
|
|
270
|
-
const
|
|
271
|
+
const ve = f(() => {
|
|
271
272
|
if (e.value.layout !== "3d") return null;
|
|
272
|
-
const t =
|
|
273
|
-
return (s) =>
|
|
273
|
+
const t = D.value;
|
|
274
|
+
return (s) => st({
|
|
274
275
|
cx: i.value.centerX,
|
|
275
276
|
cy: i.value.centerY,
|
|
276
277
|
radius: i.value.radius,
|
|
@@ -285,7 +286,7 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
285
286
|
Y: s
|
|
286
287
|
});
|
|
287
288
|
});
|
|
288
|
-
function
|
|
289
|
+
function De(t) {
|
|
289
290
|
let s = e.value.style.chart.animation.speed;
|
|
290
291
|
const a = Math.abs(t - d.value) / (s * 120);
|
|
291
292
|
function l() {
|
|
@@ -293,20 +294,20 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
293
294
|
}
|
|
294
295
|
l();
|
|
295
296
|
}
|
|
296
|
-
const
|
|
297
|
+
const D = f(() => (e.value.debug && e.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), e.value.debug && e.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(e.value.style.chart.layout.wheel.ticks.quantity, 200)))), S = f(() => 100 / D.value), Fe = f(() => {
|
|
297
298
|
const t = [];
|
|
298
|
-
for (let s = 0; s <
|
|
299
|
-
const a = d.value > s *
|
|
299
|
+
for (let s = 0; s < D.value; s += 1) {
|
|
300
|
+
const a = d.value > s * S.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: l, y: r } = Re(u.value.size / D.value * s), { x: v, y: w } = Re(u.value.size / D.value * s, e.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
300
301
|
t.push({
|
|
301
302
|
x1: l,
|
|
302
303
|
y1: r,
|
|
303
304
|
x2: v,
|
|
304
305
|
y2: w,
|
|
305
|
-
color: e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(a, s *
|
|
306
|
+
color: e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(a, s * S.value / D.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
|
|
306
307
|
});
|
|
307
308
|
}
|
|
308
309
|
return t;
|
|
309
|
-
}),
|
|
310
|
+
}), ot = f(() => Nt({ series: Fe.value.map((t) => ({
|
|
310
311
|
name: "",
|
|
311
312
|
value: 1,
|
|
312
313
|
color: t.color
|
|
@@ -315,12 +316,12 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
315
316
|
ee.value = t, pe.value += 1;
|
|
316
317
|
}
|
|
317
318
|
const te = _(!1);
|
|
318
|
-
function
|
|
319
|
+
function de() {
|
|
319
320
|
te.value = !te.value;
|
|
320
321
|
}
|
|
321
|
-
async function
|
|
322
|
+
async function nt({ scale: t = 2 } = {}) {
|
|
322
323
|
if (!X.value) return;
|
|
323
|
-
const { width: s, height: a } = X.value.getBoundingClientRect(), l = s / a, { imageUri: r, base64: v } = await
|
|
324
|
+
const { width: s, height: a } = X.value.getBoundingClientRect(), l = s / a, { imageUri: r, base64: v } = await Kt({ domElement: X.value, base64: !0, img: !0, scale: t });
|
|
324
325
|
return {
|
|
325
326
|
imageUri: r,
|
|
326
327
|
base64: v,
|
|
@@ -330,45 +331,58 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
330
331
|
aspectRatio: l
|
|
331
332
|
};
|
|
332
333
|
}
|
|
333
|
-
const
|
|
334
|
+
const ut = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2), rt = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * 0.75), it = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth), U = f(() => Math.max(1, Math.min(20, e.value.style.chart.layout.wheel.ticks.depth3d))), ct = f(() => e.value.style.chart.backgroundColor), ht = f(() => e.value.style.chart.title), { exportSvg: vt, getSvg: dt } = Vt({
|
|
335
|
+
svg: ce,
|
|
336
|
+
title: ht,
|
|
337
|
+
backgroundColor: ct,
|
|
338
|
+
stretchTitle: !0
|
|
339
|
+
});
|
|
340
|
+
async function Ne({ isCb: t }) {
|
|
341
|
+
if (t) {
|
|
342
|
+
const { blob: s, url: a, text: l, dataUrl: r } = await dt();
|
|
343
|
+
e.value.userOptions.callbacks.svg({ blob: s, url: a, text: l, dataUrl: r });
|
|
344
|
+
} else
|
|
345
|
+
vt();
|
|
346
|
+
}
|
|
334
347
|
return He({
|
|
335
|
-
getImage:
|
|
336
|
-
generatePdf:
|
|
337
|
-
generateImage:
|
|
338
|
-
|
|
348
|
+
getImage: nt,
|
|
349
|
+
generatePdf: Se,
|
|
350
|
+
generateImage: Ie,
|
|
351
|
+
generateSvg: Ne,
|
|
352
|
+
toggleAnnotator: de,
|
|
339
353
|
toggleFullscreen: Xe
|
|
340
354
|
}), (t, s) => (o(), n("div", {
|
|
341
|
-
class: P(["vue-ui-wheel", { "vue-ui-wheel-3d-wrap": e.value.layout === "3d" }]),
|
|
355
|
+
class: P(["vue-ui-wheel", { "vue-data-ui-component": !0, "vue-ui-wheel-3d-wrap": e.value.layout === "3d" }]),
|
|
342
356
|
ref_key: "wheelChart",
|
|
343
357
|
ref: X,
|
|
344
358
|
id: ue.value,
|
|
345
359
|
style: fe(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
346
|
-
onMouseenter: s[0] || (s[0] = () => c(
|
|
347
|
-
onMouseleave: s[1] || (s[1] = () => c(
|
|
360
|
+
onMouseenter: s[0] || (s[0] = () => c(Ce)(!0)),
|
|
361
|
+
onMouseleave: s[1] || (s[1] = () => c(Ce)(!1))
|
|
348
362
|
}, [
|
|
349
363
|
e.value.userOptions.buttons.annotator ? (o(), se(c(qe), {
|
|
350
364
|
key: 0,
|
|
351
|
-
svgRef: c(
|
|
365
|
+
svgRef: c(ce),
|
|
352
366
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
353
367
|
color: e.value.style.chart.color,
|
|
354
368
|
active: te.value,
|
|
355
|
-
onClose:
|
|
356
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
357
|
-
|
|
369
|
+
onClose: de
|
|
370
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : I("", !0),
|
|
371
|
+
et.value ? (o(), n("div", {
|
|
358
372
|
key: 1,
|
|
359
373
|
ref_key: "noTitle",
|
|
360
|
-
ref:
|
|
374
|
+
ref: be,
|
|
361
375
|
class: "vue-data-ui-no-title-space",
|
|
362
376
|
style: "height:36px; width: 100%;background:transparent"
|
|
363
|
-
}, null, 512)) :
|
|
377
|
+
}, null, 512)) : I("", !0),
|
|
364
378
|
e.value.style.chart.title.text ? (o(), n("div", {
|
|
365
379
|
key: 2,
|
|
366
380
|
ref_key: "chartTitle",
|
|
367
|
-
ref:
|
|
381
|
+
ref: me,
|
|
368
382
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
369
383
|
}, [
|
|
370
|
-
(o(), se(
|
|
371
|
-
key: `title_${
|
|
384
|
+
(o(), se(Qt, {
|
|
385
|
+
key: `title_${xe.value}`,
|
|
372
386
|
config: {
|
|
373
387
|
title: {
|
|
374
388
|
cy: "wheel-title",
|
|
@@ -380,10 +394,10 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
380
394
|
}
|
|
381
395
|
}
|
|
382
396
|
}, null, 8, ["config"]))
|
|
383
|
-
], 512)) :
|
|
384
|
-
e.value.userOptions.show &&
|
|
397
|
+
], 512)) : I("", !0),
|
|
398
|
+
e.value.userOptions.show && Ke.value && (c(_e) || c(ie)) ? (o(), se(c(Ve), {
|
|
385
399
|
ref_key: "details",
|
|
386
|
-
ref:
|
|
400
|
+
ref: Qe,
|
|
387
401
|
key: `user_options_${pe.value}`,
|
|
388
402
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
389
403
|
color: e.value.style.chart.color,
|
|
@@ -392,6 +406,7 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
392
406
|
uid: ue.value,
|
|
393
407
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
394
408
|
hasImg: e.value.userOptions.buttons.img,
|
|
409
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
395
410
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
396
411
|
hasXls: !1,
|
|
397
412
|
isFullscreen: ee.value,
|
|
@@ -403,13 +418,14 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
403
418
|
callbacks: e.value.userOptions.callbacks,
|
|
404
419
|
printScale: e.value.userOptions.print.scale,
|
|
405
420
|
onToggleFullscreen: Xe,
|
|
406
|
-
onGeneratePdf: c(
|
|
407
|
-
onGenerateImage: c(
|
|
408
|
-
|
|
421
|
+
onGeneratePdf: c(Se),
|
|
422
|
+
onGenerateImage: c(Ie),
|
|
423
|
+
onGenerateSvg: Ne,
|
|
424
|
+
onToggleAnnotator: de,
|
|
409
425
|
style: fe({
|
|
410
|
-
visibility: c(
|
|
426
|
+
visibility: c(_e) ? c(ie) ? "visible" : "hidden" : "visible"
|
|
411
427
|
})
|
|
412
|
-
},
|
|
428
|
+
}, Pt({ _: 2 }, [
|
|
413
429
|
t.$slots.menuIcon ? {
|
|
414
430
|
name: "menuIcon",
|
|
415
431
|
fn: V(({ isOpen: a, color: l }) => [
|
|
@@ -445,36 +461,36 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
445
461
|
]),
|
|
446
462
|
key: "4"
|
|
447
463
|
} : void 0
|
|
448
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
464
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : I("", !0),
|
|
449
465
|
(o(), n("svg", {
|
|
450
466
|
ref_key: "svgRef",
|
|
451
|
-
ref:
|
|
452
|
-
xmlns: c(
|
|
467
|
+
ref: ce,
|
|
468
|
+
xmlns: c(Lt),
|
|
453
469
|
class: P({ "vue-data-ui-fullscreen--on": ee.value, "vue-data-ui-fulscreen--off": !ee.value, "vue-ui-wheel-3d-svg": e.value.layout === "3d" }),
|
|
454
|
-
viewBox: e.value.layout === "3d" && !e.value.responsive ? `${
|
|
470
|
+
viewBox: e.value.layout === "3d" && !e.value.responsive ? `${T.value?.x - 10} ${T.value?.y ?? 0} ${T.value?.w + 20} ${T.value?.h ?? Math.max(10, u.value.height)}` : `0 0 ${Math.max(10, u.value.width)} ${Math.max(10, u.value.height)}`,
|
|
455
471
|
style: fe(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
456
472
|
}, [
|
|
457
|
-
|
|
473
|
+
zt(c(Ze)),
|
|
458
474
|
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
459
475
|
key: 0,
|
|
460
|
-
x: e.value.layout === "3d" && !e.value.responsive ?
|
|
461
|
-
y: e.value.layout === "3d" && !e.value.responsive ?
|
|
462
|
-
width: e.value.layout === "3d" && !e.value.responsive ?
|
|
463
|
-
height: e.value.layout === "3d" && !e.value.responsive ?
|
|
476
|
+
x: e.value.layout === "3d" && !e.value.responsive ? T.value?.x - 10 : 0,
|
|
477
|
+
y: e.value.layout === "3d" && !e.value.responsive ? T.value?.y ?? 0 : 0,
|
|
478
|
+
width: e.value.layout === "3d" && !e.value.responsive ? T.value?.w + 20 : Math.max(10, u.value.width),
|
|
479
|
+
height: e.value.layout === "3d" && !e.value.responsive ? T.value?.h ?? Math.max(10, u.value.height) : Math.max(10, u.value.height),
|
|
464
480
|
style: {
|
|
465
481
|
pointerEvents: "none"
|
|
466
482
|
}
|
|
467
483
|
}, [
|
|
468
484
|
z(t.$slots, "chart-background", {}, void 0, !0)
|
|
469
|
-
], 8,
|
|
470
|
-
e.value.layout === "3d" &&
|
|
485
|
+
], 8, sa)) : I("", !0),
|
|
486
|
+
e.value.layout === "3d" && Te.value ? (o(), n("path", {
|
|
471
487
|
key: 1,
|
|
472
488
|
class: "vue-ui-wheel-inner-circle",
|
|
473
|
-
d:
|
|
489
|
+
d: Te.value.d,
|
|
474
490
|
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
475
491
|
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
476
492
|
fill: "none"
|
|
477
|
-
}, null, 8,
|
|
493
|
+
}, null, 8, oa)) : e.value.style.chart.layout.innerCircle.show ? (o(), n("circle", {
|
|
478
494
|
key: 2,
|
|
479
495
|
class: "vue-ui-wheel-inner-circle",
|
|
480
496
|
cx: i.value.centerX,
|
|
@@ -483,9 +499,9 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
483
499
|
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
484
500
|
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
485
501
|
fill: "none"
|
|
486
|
-
}, null, 8,
|
|
502
|
+
}, null, 8, na)) : I("", !0),
|
|
487
503
|
e.value.layout === "3d" ? (o(), n($, { key: 3 }, [
|
|
488
|
-
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (o(), n("g",
|
|
504
|
+
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (o(), n("g", ua, [
|
|
489
505
|
(o(!0), n($, null, O(U.value, (a) => (o(), n("g", null, [
|
|
490
506
|
(o(!0), n($, null, O(Oe.value || [], (l) => (o(), n("line", {
|
|
491
507
|
key: l.i,
|
|
@@ -493,11 +509,11 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
493
509
|
y1: l.y1 - a,
|
|
494
510
|
x2: l.x2,
|
|
495
511
|
y2: l.y2 - a,
|
|
496
|
-
stroke: c(
|
|
512
|
+
stroke: c(Ee)(l.color, 0.25 * a / 5),
|
|
497
513
|
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
|
|
498
514
|
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
499
|
-
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l.i *
|
|
500
|
-
}, null, 10,
|
|
515
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l.i * S.value <= d.value })
|
|
516
|
+
}, null, 10, ra))), 128))
|
|
501
517
|
]))), 256)),
|
|
502
518
|
(o(!0), n($, null, O(Oe.value || [], (a) => (o(), n("line", {
|
|
503
519
|
key: a.i,
|
|
@@ -508,11 +524,11 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
508
524
|
stroke: a.color,
|
|
509
525
|
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
|
|
510
526
|
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
511
|
-
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && a.i *
|
|
512
|
-
}, null, 10,
|
|
513
|
-
])) : (o(), n("g",
|
|
527
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && a.i * S.value <= d.value })
|
|
528
|
+
}, null, 10, ia))), 128))
|
|
529
|
+
])) : (o(), n("g", ca, [
|
|
514
530
|
(o(!0), n($, null, O(U.value, (a) => (o(), n("g", null, [
|
|
515
|
-
(o(!0), n($, null, O(
|
|
531
|
+
(o(!0), n($, null, O(ve.value(-a) || [], (l) => (o(), n("path", {
|
|
516
532
|
key: l.i,
|
|
517
533
|
d: l.d,
|
|
518
534
|
fill: e.value.style.chart.layout.wheel.ticks.inactiveColor,
|
|
@@ -521,20 +537,20 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
521
537
|
"stroke-linecap": "round",
|
|
522
538
|
"stroke-linejoin": "round",
|
|
523
539
|
class: "vue-ui-wheel-tick"
|
|
524
|
-
}, null, 8,
|
|
525
|
-
(o(!0), n($, null, O(
|
|
540
|
+
}, null, 8, ha))), 128)),
|
|
541
|
+
(o(!0), n($, null, O(ve.value(-a) || [], (l) => (o(), n("path", {
|
|
526
542
|
key: l.i,
|
|
527
543
|
d: l.d,
|
|
528
|
-
fill: c(
|
|
544
|
+
fill: c(Ee)(l.fill, 0.5 * a / U.value),
|
|
529
545
|
stroke: e.value.style.chart.layout.wheel.ticks.stroke,
|
|
530
546
|
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
531
547
|
"stroke-linecap": "round",
|
|
532
548
|
"stroke-linejoin": "round",
|
|
533
|
-
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && l.i *
|
|
534
|
-
}, null, 10,
|
|
549
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && l.i * S.value <= d.value })
|
|
550
|
+
}, null, 10, va))), 128))
|
|
535
551
|
]))), 256)),
|
|
536
|
-
|
|
537
|
-
(o(!0), n($, null, O(
|
|
552
|
+
Ot("g", null, [
|
|
553
|
+
(o(!0), n($, null, O(ve.value(-U.value) || [], (a) => (o(), n("path", {
|
|
538
554
|
key: a.i,
|
|
539
555
|
d: a.d,
|
|
540
556
|
fill: a.fill,
|
|
@@ -542,8 +558,8 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
542
558
|
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
|
|
543
559
|
"stroke-linecap": "round",
|
|
544
560
|
"stroke-linejoin": "round",
|
|
545
|
-
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && a.i *
|
|
546
|
-
}, null, 10,
|
|
561
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && a.i * S.value <= d.value })
|
|
562
|
+
}, null, 10, da))), 128))
|
|
547
563
|
])
|
|
548
564
|
]))
|
|
549
565
|
], 64)) : (o(), n($, { key: 4 }, [
|
|
@@ -555,29 +571,29 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
555
571
|
stroke: a.color,
|
|
556
572
|
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
|
|
557
573
|
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
558
|
-
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l *
|
|
559
|
-
}, null, 10,
|
|
574
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * S.value <= d.value })
|
|
575
|
+
}, null, 10, ya))), 256)) : (o(!0), n($, { key: 1 }, O(ot.value, (a, l) => (o(), n("path", {
|
|
560
576
|
d: a.arcSlice,
|
|
561
577
|
fill: a.color,
|
|
562
|
-
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l *
|
|
578
|
+
class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * S.value <= d.value }),
|
|
563
579
|
stroke: e.value.style.chart.layout.wheel.ticks.stroke,
|
|
564
580
|
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth
|
|
565
|
-
}, null, 10,
|
|
581
|
+
}, null, 10, ka))), 256))
|
|
566
582
|
], 64)),
|
|
567
|
-
e.value.style.chart.layout.percentage.show ? (o(), n("g",
|
|
568
|
-
c(
|
|
583
|
+
e.value.style.chart.layout.percentage.show ? (o(), n("g", ga, [
|
|
584
|
+
c(Me) ? (o(), n("rect", {
|
|
569
585
|
key: 0,
|
|
570
586
|
x: i.value.centerX - 40,
|
|
571
|
-
y: i.value.centerY -
|
|
587
|
+
y: i.value.centerY - E.value / 2,
|
|
572
588
|
width: 80,
|
|
573
|
-
height:
|
|
589
|
+
height: E.value,
|
|
574
590
|
fill: "#6A6A6A80",
|
|
575
591
|
rx: "3"
|
|
576
|
-
}, null, 8,
|
|
592
|
+
}, null, 8, fa)) : (o(), n("text", {
|
|
577
593
|
key: 1,
|
|
578
594
|
x: i.value.centerX + e.value.style.chart.layout.percentage.offsetX,
|
|
579
|
-
y: i.value.centerY +
|
|
580
|
-
"font-size":
|
|
595
|
+
y: i.value.centerY + E.value / 3 + e.value.style.chart.layout.percentage.offsetY,
|
|
596
|
+
"font-size": E.value,
|
|
581
597
|
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? c(Z)(e.value.style.chart.layout.wheel.ticks.activeColor, d.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
582
598
|
"text-anchor": "middle",
|
|
583
599
|
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
@@ -588,33 +604,33 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
588
604
|
"stroke-linejoin": "round",
|
|
589
605
|
"paint-order": "stroke fill",
|
|
590
606
|
class: P({ "vue-ui-wheel-label": e.value.layout === "3d" })
|
|
591
|
-
},
|
|
607
|
+
}, Wt(c(Ut)(
|
|
592
608
|
e.value.style.chart.layout.percentage.formatter,
|
|
593
|
-
c(
|
|
594
|
-
c(
|
|
595
|
-
v: c(
|
|
609
|
+
c(je)(d.value),
|
|
610
|
+
c(Bt)({
|
|
611
|
+
v: c(je)(d.value),
|
|
596
612
|
s: "%",
|
|
597
613
|
r: e.value.style.chart.layout.percentage.rounding
|
|
598
614
|
})
|
|
599
|
-
)), 11,
|
|
600
|
-
])) :
|
|
615
|
+
)), 11, pa))
|
|
616
|
+
])) : I("", !0),
|
|
601
617
|
z(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
602
|
-
], 14,
|
|
603
|
-
t.$slots.watermark ? (o(), n("div",
|
|
618
|
+
], 14, la)),
|
|
619
|
+
t.$slots.watermark ? (o(), n("div", ma, [
|
|
604
620
|
z(t.$slots, "watermark", oe(ne({ isPrinting: c(Ae) || c($e) })), void 0, !0)
|
|
605
|
-
])) :
|
|
621
|
+
])) : I("", !0),
|
|
606
622
|
t.$slots.source ? (o(), n("div", {
|
|
607
623
|
key: 5,
|
|
608
624
|
ref_key: "source",
|
|
609
|
-
ref:
|
|
625
|
+
ref: we,
|
|
610
626
|
dir: "auto"
|
|
611
627
|
}, [
|
|
612
628
|
z(t.$slots, "source", {}, void 0, !0)
|
|
613
|
-
], 512)) :
|
|
614
|
-
c(
|
|
615
|
-
], 46,
|
|
629
|
+
], 512)) : I("", !0),
|
|
630
|
+
c(Me) ? (o(), se(Ht, { key: 6 })) : I("", !0)
|
|
631
|
+
], 46, aa));
|
|
616
632
|
}
|
|
617
|
-
},
|
|
633
|
+
}, Da = /* @__PURE__ */ ta(wa, [["__scopeId", "data-v-9b607460"]]);
|
|
618
634
|
export {
|
|
619
|
-
|
|
635
|
+
Da as default
|
|
620
636
|
};
|