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,407 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, computed as f, ref as v, toRefs as xe, watch as ie, onMounted as Ae, createElementBlock as u, openBlock as r, unref as s, normalizeStyle as j, normalizeClass as X, createBlock as R, createCommentVNode as g, createSlots as Oe, withCtx as O, renderSlot as p, normalizeProps as M, guardReactiveProps as E, createVNode as Pe, Fragment as ce, renderList as ve, toDisplayString as Ie } from "vue";
|
|
2
|
-
import { c as ze, t as Se, q as Fe, o as Te, f as Ne, i as he, X as Re, a as Me, d as Ee } from "./lib-BEpWEyMm.js";
|
|
3
|
-
import { t as Le, u as Ue } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Be, a as de } from "./useNestedProp-BOk-tPdu.js";
|
|
5
|
-
import { u as Ge, B as De } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as He } from "./usePrinter-w23K-ezx.js";
|
|
7
|
-
import { u as je } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
-
import { u as Xe } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import { t as qe } from "./themes-Dw-dDudK.js";
|
|
10
|
-
import Ve from "./Title-DG2nloSB.js";
|
|
11
|
-
import Ye from "./img-DjWwQXVS.js";
|
|
12
|
-
import { _ as We } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], Ze = { key: 1 }, et = ["d", "stroke-width", "stroke"], tt = { key: 2 }, at = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], lt = { key: 3 }, ot = ["x", "y", "height"], st = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], nt = {
|
|
14
|
-
key: 4,
|
|
15
|
-
class: "vue-data-ui-watermark"
|
|
16
|
-
}, rt = {
|
|
17
|
-
__name: "vue-ui-tiremarks",
|
|
18
|
-
props: {
|
|
19
|
-
config: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default() {
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
dataset: {
|
|
26
|
-
type: Object,
|
|
27
|
-
default() {
|
|
28
|
-
return {};
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
setup(fe, { expose: ye }) {
|
|
33
|
-
const ge = H(() => import("./PenAndPaper-CR8q353D.js")), pe = H(() => import("./UserOptions-DsTgvAok.js")), me = H(() => import("./PackageVersion-Cwrh45ON.js")), { vue_ui_tiremarks: ke } = Be(), w = fe, be = f(() => !!w.dataset && Object.keys(w.dataset).length), L = v(ze()), C = v(null), we = v(null), q = v(null), V = v(null), Y = v(0), W = v(0), $ = v(null), P = v(null), e = v(G()), { loading: J, FINAL_DATASET: U } = Ge({
|
|
34
|
-
...xe(w),
|
|
35
|
-
FINAL_CONFIG: e,
|
|
36
|
-
prepareConfig: G,
|
|
37
|
-
skeletonDataset: { percentage: 50 },
|
|
38
|
-
skeletonConfig: Se({
|
|
39
|
-
defaultConfig: e.value,
|
|
40
|
-
userConfig: {
|
|
41
|
-
userOptions: { show: !1 },
|
|
42
|
-
style: {
|
|
43
|
-
chart: {
|
|
44
|
-
backgroundColor: "#99999930",
|
|
45
|
-
animation: { use: !1 },
|
|
46
|
-
layout: {
|
|
47
|
-
activeColor: "#6A6A6A80",
|
|
48
|
-
inactiveColor: "#CACACA80",
|
|
49
|
-
ticks: {
|
|
50
|
-
gradient: { show: !1 }
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
})
|
|
57
|
-
}), { userOptionsVisible: B, setUserOptionsVisibility: K, keepUserOptionState: Q } = je({ config: e.value }), { svgRef: Z } = Xe({ config: e.value.style.chart.title });
|
|
58
|
-
function G() {
|
|
59
|
-
const t = de({
|
|
60
|
-
userConfig: w.config,
|
|
61
|
-
defaultConfig: ke
|
|
62
|
-
});
|
|
63
|
-
return t.theme ? {
|
|
64
|
-
...de({
|
|
65
|
-
userConfig: qe.vue_ui_tiremarks[t.theme] || w.config,
|
|
66
|
-
defaultConfig: t
|
|
67
|
-
})
|
|
68
|
-
} : t;
|
|
69
|
-
}
|
|
70
|
-
ie(() => w.config, (t) => {
|
|
71
|
-
e.value = G(), B.value = !e.value.userOptions.showOnChartHover, S.value = e.value.style.chart.width, F.value = e.value.style.chart.height, se(), W.value += 1;
|
|
72
|
-
}, { deep: !0 });
|
|
73
|
-
const { isPrinting: ee, isImaging: te, generatePdf: ae, generateImage: le } = He({
|
|
74
|
-
elementId: L.value,
|
|
75
|
-
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
76
|
-
options: e.value.userOptions.print
|
|
77
|
-
}), Ce = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), i = v(e.value.style.chart.animation.use ? 0 : Fe(U.value.percentage));
|
|
78
|
-
ie(() => U.value, (t) => {
|
|
79
|
-
e.value.style.chart.animation.use ? oe(t.percentage) : i.value = t.percentage || 0;
|
|
80
|
-
}, { deep: !0 }), Ae(() => {
|
|
81
|
-
se();
|
|
82
|
-
});
|
|
83
|
-
function oe(t) {
|
|
84
|
-
let l = e.value.style.chart.animation.speed;
|
|
85
|
-
const a = Math.abs(t - i.value) / (l * 120);
|
|
86
|
-
function o() {
|
|
87
|
-
i.value < t ? i.value = Math.min(i.value + a, t) : i.value > t && (i.value = Math.max(i.value - a, t)), i.value !== t && requestAnimationFrame(o);
|
|
88
|
-
}
|
|
89
|
-
o();
|
|
90
|
-
}
|
|
91
|
-
const _e = f(() => !!e.value.debug);
|
|
92
|
-
function se() {
|
|
93
|
-
if (Te(w.dataset) && Ne({
|
|
94
|
-
componentName: "VueUiTiremarks",
|
|
95
|
-
type: "dataset",
|
|
96
|
-
debug: _e.value
|
|
97
|
-
}), e.value.responsive) {
|
|
98
|
-
const t = Le(() => {
|
|
99
|
-
const { width: l, height: a } = Ue({
|
|
100
|
-
chart: C.value,
|
|
101
|
-
title: e.value.style.chart.title.text ? q.value : null,
|
|
102
|
-
source: V.value
|
|
103
|
-
});
|
|
104
|
-
requestAnimationFrame(() => {
|
|
105
|
-
S.value = Math.max(0.1, l), F.value = Math.max(0.1, a - 12);
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
$.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(t), P.value = C.value.parentNode, $.value.observe(P.value);
|
|
109
|
-
}
|
|
110
|
-
oe(U.value.percentage || 0);
|
|
111
|
-
}
|
|
112
|
-
const I = f(() => e.value.style.chart.layout.display === "vertical"), c = f(() => {
|
|
113
|
-
const t = e.value.style.chart.percentage.show, l = {
|
|
114
|
-
top: t ? 48 : 12,
|
|
115
|
-
left: t ? 64 : 16,
|
|
116
|
-
right: t ? 64 : 16,
|
|
117
|
-
bottom: t ? 48 : 12
|
|
118
|
-
};
|
|
119
|
-
return I.value ? {
|
|
120
|
-
top: e.value.style.chart.percentage.verticalPosition === "top" ? l.top : 3,
|
|
121
|
-
left: 3,
|
|
122
|
-
right: 3,
|
|
123
|
-
bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? l.bottom : 3
|
|
124
|
-
} : {
|
|
125
|
-
top: 0,
|
|
126
|
-
bottom: 0,
|
|
127
|
-
left: e.value.style.chart.percentage.horizontalPosition === "left" ? l.left : 16,
|
|
128
|
-
right: e.value.style.chart.percentage.horizontalPosition === "right" ? l.right : 10
|
|
129
|
-
};
|
|
130
|
-
}), z = f(() => Object.values(c.value).reduce((t, l) => t + l, 0)), S = v(e.value.style.chart.width), F = v(e.value.style.chart.height), n = f(() => ({
|
|
131
|
-
height: F.value,
|
|
132
|
-
width: S.value
|
|
133
|
-
})), ne = f(() => ({
|
|
134
|
-
horizontal: {
|
|
135
|
-
x: y.value.x + (e.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
|
|
136
|
-
y: n.value.height / 2 - y.value.fontSize / 2
|
|
137
|
-
},
|
|
138
|
-
vertical: {
|
|
139
|
-
x: n.value.width / 2 - 20,
|
|
140
|
-
y: y.value.y - y.value.fontSize / 2
|
|
141
|
-
}
|
|
142
|
-
})[e.value.style.chart.layout.display]), h = f(() => I.value ? {
|
|
143
|
-
mark: (n.value.height - z.value) / 100 * 0.5,
|
|
144
|
-
space: (n.value.height - z.value) / 100 * 0.5
|
|
145
|
-
} : {
|
|
146
|
-
mark: (n.value.width - z.value) / 100 * 0.5,
|
|
147
|
-
space: (n.value.width - z.value) / 100 * 0.5
|
|
148
|
-
}), re = f(() => {
|
|
149
|
-
const t = [];
|
|
150
|
-
for (let a = 0; a < 100; a += 1) {
|
|
151
|
-
const o = e.value.style.chart.layout.ticks.gradient.show ? he(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
152
|
-
if (I.value) {
|
|
153
|
-
const _ = e.value.style.chart.layout.crescendo ? (100 - a) * (n.value.width - c.value.left - c.value.right) / 100 / 3 : 0, d = c.value.left + 4 + _, m = n.value.width - c.value.right - 4 - _, k = n.value.height - c.value.bottom - a * h.value.mark - a * h.value.space - h.value.mark, b = n.value.height - c.value.bottom - a * h.value.mark - a * h.value.space - h.value.mark, x = (m - d) / e.value.style.chart.layout.curveAngleX, A = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
154
|
-
t.push({
|
|
155
|
-
x1: d,
|
|
156
|
-
x2: m,
|
|
157
|
-
y1: k,
|
|
158
|
-
y2: b,
|
|
159
|
-
curve: `M ${d} ${k} C ${d + x} ${k - A}, ${m - x} ${b - A}, ${m} ${b}`,
|
|
160
|
-
color: o
|
|
161
|
-
});
|
|
162
|
-
} else {
|
|
163
|
-
const _ = e.value.style.chart.layout.crescendo ? (100 - a) * (n.value.height - c.value.top - c.value.bottom) / 100 / 3 : 0, d = c.value.left + a * h.value.mark + a * h.value.space - h.value.mark, m = d, k = c.value.top + 4 + _, b = n.value.height - c.value.bottom - 4 - _, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), A = (b - k) / e.value.style.chart.layout.curveAngleX;
|
|
164
|
-
t.push({
|
|
165
|
-
x1: d,
|
|
166
|
-
x2: m,
|
|
167
|
-
y1: k,
|
|
168
|
-
y2: b,
|
|
169
|
-
curve: `M ${d} ${k} C ${d + x} ${k + A}, ${m + x} ${b - A}, ${m} ${b}`,
|
|
170
|
-
color: o
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
return t;
|
|
175
|
-
}), y = f(() => {
|
|
176
|
-
let t, l, a;
|
|
177
|
-
const o = e.value.style.chart.percentage.fontSize / 3;
|
|
178
|
-
return I.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = n.value.width / 2, l = c.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = n.value.width / 2, l = n.value.height - c.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, l = n.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = n.value.width - c.value.right + 8, l = n.value.height / 2 + o, a = "start"), {
|
|
179
|
-
x: t,
|
|
180
|
-
y: l,
|
|
181
|
-
textAnchor: a,
|
|
182
|
-
bold: e.value.style.chart.percentage.bold,
|
|
183
|
-
fontSize: e.value.style.chart.percentage.fontSize,
|
|
184
|
-
fill: e.value.style.chart.percentage.color
|
|
185
|
-
};
|
|
186
|
-
}), T = v(!1);
|
|
187
|
-
function ue(t) {
|
|
188
|
-
T.value = t, Y.value += 1;
|
|
189
|
-
}
|
|
190
|
-
const N = v(!1);
|
|
191
|
-
function D() {
|
|
192
|
-
N.value = !N.value;
|
|
193
|
-
}
|
|
194
|
-
async function $e({ scale: t = 2 } = {}) {
|
|
195
|
-
if (!C.value) return;
|
|
196
|
-
const { width: l, height: a } = C.value.getBoundingClientRect(), o = l / a, { imageUri: _, base64: d } = await Ye({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
197
|
-
return {
|
|
198
|
-
imageUri: _,
|
|
199
|
-
base64: d,
|
|
200
|
-
title: e.value.style.chart.title.text,
|
|
201
|
-
width: l,
|
|
202
|
-
height: a,
|
|
203
|
-
aspectRatio: o
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
return ye({
|
|
207
|
-
getImage: $e,
|
|
208
|
-
generatePdf: ae,
|
|
209
|
-
generateImage: le,
|
|
210
|
-
toggleAnnotator: D,
|
|
211
|
-
toggleFullscreen: ue
|
|
212
|
-
}), (t, l) => (r(), u("div", {
|
|
213
|
-
ref_key: "tiremarksChart",
|
|
214
|
-
ref: C,
|
|
215
|
-
class: X(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
216
|
-
style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
217
|
-
id: L.value,
|
|
218
|
-
onMouseenter: l[0] || (l[0] = () => s(K)(!0)),
|
|
219
|
-
onMouseleave: l[1] || (l[1] = () => s(K)(!1))
|
|
220
|
-
}, [
|
|
221
|
-
e.value.userOptions.buttons.annotator ? (r(), R(s(ge), {
|
|
222
|
-
key: 0,
|
|
223
|
-
svgRef: s(Z),
|
|
224
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
225
|
-
color: e.value.style.chart.color,
|
|
226
|
-
active: N.value,
|
|
227
|
-
onClose: D
|
|
228
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
229
|
-
Ce.value ? (r(), u("div", {
|
|
230
|
-
key: 1,
|
|
231
|
-
ref_key: "noTitle",
|
|
232
|
-
ref: we,
|
|
233
|
-
class: "vue-data-ui-no-title-space",
|
|
234
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
235
|
-
}, null, 512)) : g("", !0),
|
|
236
|
-
e.value.style.chart.title.text ? (r(), u("div", {
|
|
237
|
-
key: 2,
|
|
238
|
-
ref_key: "chartTitle",
|
|
239
|
-
ref: q,
|
|
240
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
241
|
-
}, [
|
|
242
|
-
(r(), R(Ve, {
|
|
243
|
-
key: `title_${W.value}`,
|
|
244
|
-
config: {
|
|
245
|
-
title: {
|
|
246
|
-
cy: "wheel-title",
|
|
247
|
-
...e.value.style.chart.title
|
|
248
|
-
},
|
|
249
|
-
subtitle: {
|
|
250
|
-
cy: "wheel-subtitle",
|
|
251
|
-
...e.value.style.chart.title.subtitle
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}, null, 8, ["config"]))
|
|
255
|
-
], 512)) : g("", !0),
|
|
256
|
-
e.value.userOptions.show && be.value && (s(Q) || s(B)) ? (r(), R(s(pe), {
|
|
257
|
-
ref: "details",
|
|
258
|
-
key: `user_options_${Y.value}`,
|
|
259
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
260
|
-
color: e.value.style.chart.color,
|
|
261
|
-
isPrinting: s(ee),
|
|
262
|
-
isImaging: s(te),
|
|
263
|
-
uid: L.value,
|
|
264
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
265
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
266
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
267
|
-
hasXls: !1,
|
|
268
|
-
isFullscreen: T.value,
|
|
269
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
270
|
-
chartElement: C.value,
|
|
271
|
-
position: e.value.userOptions.position,
|
|
272
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
273
|
-
isAnnotation: N.value,
|
|
274
|
-
callbacks: e.value.userOptions.callbacks,
|
|
275
|
-
printScale: e.value.userOptions.print.scale,
|
|
276
|
-
onToggleFullscreen: ue,
|
|
277
|
-
onGeneratePdf: s(ae),
|
|
278
|
-
onGenerateImage: s(le),
|
|
279
|
-
onToggleAnnotator: D,
|
|
280
|
-
style: j({
|
|
281
|
-
visibility: s(Q) ? s(B) ? "visible" : "hidden" : "visible"
|
|
282
|
-
})
|
|
283
|
-
}, Oe({ _: 2 }, [
|
|
284
|
-
t.$slots.menuIcon ? {
|
|
285
|
-
name: "menuIcon",
|
|
286
|
-
fn: O(({ isOpen: a, color: o }) => [
|
|
287
|
-
p(t.$slots, "menuIcon", M(E({ isOpen: a, color: o })), void 0, !0)
|
|
288
|
-
]),
|
|
289
|
-
key: "0"
|
|
290
|
-
} : void 0,
|
|
291
|
-
t.$slots.optionPdf ? {
|
|
292
|
-
name: "optionPdf",
|
|
293
|
-
fn: O(() => [
|
|
294
|
-
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
295
|
-
]),
|
|
296
|
-
key: "1"
|
|
297
|
-
} : void 0,
|
|
298
|
-
t.$slots.optionImg ? {
|
|
299
|
-
name: "optionImg",
|
|
300
|
-
fn: O(() => [
|
|
301
|
-
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
302
|
-
]),
|
|
303
|
-
key: "2"
|
|
304
|
-
} : void 0,
|
|
305
|
-
t.$slots.optionFullscreen ? {
|
|
306
|
-
name: "optionFullscreen",
|
|
307
|
-
fn: O(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
308
|
-
p(t.$slots, "optionFullscreen", M(E({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
309
|
-
]),
|
|
310
|
-
key: "3"
|
|
311
|
-
} : void 0,
|
|
312
|
-
t.$slots.optionAnnotator ? {
|
|
313
|
-
name: "optionAnnotator",
|
|
314
|
-
fn: O(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
315
|
-
p(t.$slots, "optionAnnotator", M(E({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
316
|
-
]),
|
|
317
|
-
key: "4"
|
|
318
|
-
} : void 0
|
|
319
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
320
|
-
(r(), u("svg", {
|
|
321
|
-
ref_key: "svgRef",
|
|
322
|
-
ref: Z,
|
|
323
|
-
xmlns: s(Re),
|
|
324
|
-
class: X({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
|
|
325
|
-
viewBox: `0 0 ${S.value} ${F.value}`,
|
|
326
|
-
style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
327
|
-
}, [
|
|
328
|
-
Pe(s(me)),
|
|
329
|
-
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
330
|
-
key: 0,
|
|
331
|
-
x: 0,
|
|
332
|
-
y: 0,
|
|
333
|
-
width: n.value.width,
|
|
334
|
-
height: n.value.height,
|
|
335
|
-
style: {
|
|
336
|
-
pointerEvents: "none"
|
|
337
|
-
}
|
|
338
|
-
}, [
|
|
339
|
-
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
340
|
-
], 8, Qe)) : g("", !0),
|
|
341
|
-
e.value.style.chart.layout.curved ? (r(), u("g", Ze, [
|
|
342
|
-
(r(!0), u(ce, null, ve(re.value, (a, o) => (r(), u("path", {
|
|
343
|
-
d: a.curve,
|
|
344
|
-
"stroke-width": h.value.mark,
|
|
345
|
-
stroke: i.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
346
|
-
"stroke-linecap": "round",
|
|
347
|
-
fill: "none",
|
|
348
|
-
class: X({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= i.value })
|
|
349
|
-
}, null, 10, et))), 256))
|
|
350
|
-
])) : (r(), u("g", tt, [
|
|
351
|
-
(r(!0), u(ce, null, ve(re.value, (a, o) => (r(), u("line", {
|
|
352
|
-
x1: a.x1,
|
|
353
|
-
y1: a.y1,
|
|
354
|
-
x2: a.x2,
|
|
355
|
-
y2: a.y2,
|
|
356
|
-
"stroke-width": h.value.mark,
|
|
357
|
-
stroke: i.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
358
|
-
"stroke-linecap": "round"
|
|
359
|
-
}, null, 8, at))), 256))
|
|
360
|
-
])),
|
|
361
|
-
e.value.style.chart.percentage.show ? (r(), u("g", lt, [
|
|
362
|
-
s(J) ? (r(), u("rect", {
|
|
363
|
-
key: 0,
|
|
364
|
-
x: ne.value.x,
|
|
365
|
-
y: ne.value.y,
|
|
366
|
-
width: 40,
|
|
367
|
-
height: y.value.fontSize,
|
|
368
|
-
fill: "#6A6A6A80",
|
|
369
|
-
rx: 3
|
|
370
|
-
}, null, 8, ot)) : (r(), u("text", {
|
|
371
|
-
key: 1,
|
|
372
|
-
x: y.value.x,
|
|
373
|
-
y: y.value.y,
|
|
374
|
-
"font-size": y.value.fontSize,
|
|
375
|
-
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? s(he)(e.value.style.chart.layout.activeColor, i.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
|
|
376
|
-
"font-weight": y.value.bold ? "bold" : "normal",
|
|
377
|
-
"text-anchor": y.value.textAnchor
|
|
378
|
-
}, Ie(s(Me)(
|
|
379
|
-
e.value.style.chart.percentage.formatter,
|
|
380
|
-
i.value,
|
|
381
|
-
s(Ee)({
|
|
382
|
-
v: i.value,
|
|
383
|
-
s: "%",
|
|
384
|
-
r: e.value.style.chart.percentage.rounding
|
|
385
|
-
})
|
|
386
|
-
)), 9, st))
|
|
387
|
-
])) : g("", !0),
|
|
388
|
-
p(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
389
|
-
], 14, Ke)),
|
|
390
|
-
t.$slots.watermark ? (r(), u("div", nt, [
|
|
391
|
-
p(t.$slots, "watermark", M(E({ isPrinting: s(ee) || s(te) })), void 0, !0)
|
|
392
|
-
])) : g("", !0),
|
|
393
|
-
t.$slots.source ? (r(), u("div", {
|
|
394
|
-
key: 5,
|
|
395
|
-
ref_key: "source",
|
|
396
|
-
ref: V,
|
|
397
|
-
dir: "auto"
|
|
398
|
-
}, [
|
|
399
|
-
p(t.$slots, "source", {}, void 0, !0)
|
|
400
|
-
], 512)) : g("", !0),
|
|
401
|
-
s(J) ? (r(), R(De, { key: 6 })) : g("", !0)
|
|
402
|
-
], 46, Je));
|
|
403
|
-
}
|
|
404
|
-
}, bt = /* @__PURE__ */ We(rt, [["__scopeId", "data-v-758809ae"]]);
|
|
405
|
-
export {
|
|
406
|
-
bt as default
|
|
407
|
-
};
|