vue-data-ui 3.23.1 → 3.23.2
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/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-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/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
- package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -0,0 +1,1745 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, D as n, Kt as r, Pt as i, X as a, a as o, i as s, q as c, r as l, x as u } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as d, t as f } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as p } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as m } from "./usePrinter-DN5bYhTG.js";
|
|
6
|
+
import { t as h } from "./useNestedProp-vPNvh7rV.js";
|
|
7
|
+
import { t as ee } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as te } from "./useChartExport-DNiwdPmb.js";
|
|
9
|
+
import { t as ne } from "./useTransitions-g_zBREk2.js";
|
|
10
|
+
import { t as re } from "./img-Bnokohej.js";
|
|
11
|
+
import { n as ie } from "./Title-BE3qg9xl.js";
|
|
12
|
+
import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { t as oe } from "./useUserOptionState-DK-_1ddE.js";
|
|
14
|
+
import { t as se } from "./vue_ui_hill-dnltu0L-.js";
|
|
15
|
+
import { Fragment as g, computed as _, createBlock as ce, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as le, createVNode as ue, defineAsyncComponent as de, guardReactiveProps as x, nextTick as fe, normalizeClass as pe, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as me, onMounted as he, openBlock as w, ref as T, renderList as ge, renderSlot as E, shallowRef as _e, toDisplayString as D, unref as O, useTemplateRef as ve, watch as ye, withCtx as k, withKeys as be, withModifiers as A } from "vue";
|
|
16
|
+
//#region src/components/vue-ui-hill.vue
|
|
17
|
+
var xe = /* @__PURE__ */ e({ default: () => ht }), Se = ["id", "data-editing"], Ce = {
|
|
18
|
+
key: 0,
|
|
19
|
+
ref: "chartTitle",
|
|
20
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
21
|
+
}, we = {
|
|
22
|
+
key: 3,
|
|
23
|
+
class: "vue-ui-hill__toolbar",
|
|
24
|
+
"data-dom-to-png-ignore": ""
|
|
25
|
+
}, Te = ["viewBox"], Ee = ["width", "height"], De = [
|
|
26
|
+
"x1",
|
|
27
|
+
"x2",
|
|
28
|
+
"y1",
|
|
29
|
+
"y2",
|
|
30
|
+
"stroke",
|
|
31
|
+
"stroke-width",
|
|
32
|
+
"stroke-dasharray"
|
|
33
|
+
], Oe = [
|
|
34
|
+
"x1",
|
|
35
|
+
"x2",
|
|
36
|
+
"y1",
|
|
37
|
+
"y2",
|
|
38
|
+
"stroke",
|
|
39
|
+
"stroke-width",
|
|
40
|
+
"stroke-dasharray"
|
|
41
|
+
], ke = [
|
|
42
|
+
"d",
|
|
43
|
+
"stroke",
|
|
44
|
+
"stroke-width",
|
|
45
|
+
"stroke-dasharray"
|
|
46
|
+
], Ae = {
|
|
47
|
+
key: 0,
|
|
48
|
+
"pointer-events": "none"
|
|
49
|
+
}, je = [
|
|
50
|
+
"d",
|
|
51
|
+
"stroke",
|
|
52
|
+
"stroke-width",
|
|
53
|
+
"stroke-dasharray"
|
|
54
|
+
], Me = [
|
|
55
|
+
"cx",
|
|
56
|
+
"cy",
|
|
57
|
+
"r",
|
|
58
|
+
"fill",
|
|
59
|
+
"stroke",
|
|
60
|
+
"stroke-width"
|
|
61
|
+
], Ne = [
|
|
62
|
+
"transform",
|
|
63
|
+
"font-size",
|
|
64
|
+
"fill",
|
|
65
|
+
"stroke"
|
|
66
|
+
], Pe = [
|
|
67
|
+
"transform",
|
|
68
|
+
"data-datapoint-index",
|
|
69
|
+
"data-datapoint-id",
|
|
70
|
+
"tabindex",
|
|
71
|
+
"aria-valuenow",
|
|
72
|
+
"aria-valuetext",
|
|
73
|
+
"aria-label",
|
|
74
|
+
"onFocus",
|
|
75
|
+
"onBlur",
|
|
76
|
+
"onKeydown",
|
|
77
|
+
"onPointerenter",
|
|
78
|
+
"onPointerleave",
|
|
79
|
+
"onClick"
|
|
80
|
+
], Fe = ["r", "onPointerdown"], Ie = [
|
|
81
|
+
"r",
|
|
82
|
+
"fill",
|
|
83
|
+
"stroke",
|
|
84
|
+
"stroke-width"
|
|
85
|
+
], Le = ["stroke", "stroke-width"], Re = ["d"], ze = [
|
|
86
|
+
"x",
|
|
87
|
+
"y",
|
|
88
|
+
"text-anchor",
|
|
89
|
+
"fill",
|
|
90
|
+
"font-size",
|
|
91
|
+
"font-weight",
|
|
92
|
+
"stroke",
|
|
93
|
+
"stroke-width"
|
|
94
|
+
], Be = [
|
|
95
|
+
"transform",
|
|
96
|
+
"tabindex",
|
|
97
|
+
"aria-label",
|
|
98
|
+
"aria-expanded",
|
|
99
|
+
"onClick",
|
|
100
|
+
"onFocus",
|
|
101
|
+
"onKeydown"
|
|
102
|
+
], Ve = {
|
|
103
|
+
key: 0,
|
|
104
|
+
class: "vue-ui-hill__stack-overflow-collapse-ghosts",
|
|
105
|
+
"pointer-events": "none",
|
|
106
|
+
"aria-hidden": "true"
|
|
107
|
+
}, He = [
|
|
108
|
+
"cx",
|
|
109
|
+
"cy",
|
|
110
|
+
"r",
|
|
111
|
+
"fill",
|
|
112
|
+
"stroke",
|
|
113
|
+
"stroke-width"
|
|
114
|
+
], Ue = ["from", "dur"], We = ["from", "dur"], Ge = [
|
|
115
|
+
"from",
|
|
116
|
+
"to",
|
|
117
|
+
"dur"
|
|
118
|
+
], Ke = ["dur"], qe = ["r"], Je = [
|
|
119
|
+
"x",
|
|
120
|
+
"y",
|
|
121
|
+
"width",
|
|
122
|
+
"height",
|
|
123
|
+
"fill",
|
|
124
|
+
"stroke",
|
|
125
|
+
"stroke-width"
|
|
126
|
+
], Ye = ["stroke", "stroke-width"], Xe = ["d"], Ze = [
|
|
127
|
+
"y",
|
|
128
|
+
"fill",
|
|
129
|
+
"font-size",
|
|
130
|
+
"font-weight",
|
|
131
|
+
"stroke"
|
|
132
|
+
], Qe = [
|
|
133
|
+
"x",
|
|
134
|
+
"y",
|
|
135
|
+
"fill",
|
|
136
|
+
"font-size",
|
|
137
|
+
"font-weight",
|
|
138
|
+
"letter-spacing"
|
|
139
|
+
], $e = [
|
|
140
|
+
"x",
|
|
141
|
+
"y",
|
|
142
|
+
"fill",
|
|
143
|
+
"font-size",
|
|
144
|
+
"font-weight",
|
|
145
|
+
"letter-spacing"
|
|
146
|
+
], et = [
|
|
147
|
+
"x",
|
|
148
|
+
"y",
|
|
149
|
+
"rx",
|
|
150
|
+
"width",
|
|
151
|
+
"height",
|
|
152
|
+
"fill"
|
|
153
|
+
], tt = ["id"], nt = [
|
|
154
|
+
"x",
|
|
155
|
+
"y",
|
|
156
|
+
"width",
|
|
157
|
+
"height",
|
|
158
|
+
"rx",
|
|
159
|
+
"ry"
|
|
160
|
+
], rt = ["clip-path"], it = [
|
|
161
|
+
"width",
|
|
162
|
+
"x",
|
|
163
|
+
"y",
|
|
164
|
+
"fill",
|
|
165
|
+
"height",
|
|
166
|
+
"onPointerenter",
|
|
167
|
+
"onPointerleave"
|
|
168
|
+
], at = [
|
|
169
|
+
"x1",
|
|
170
|
+
"x2",
|
|
171
|
+
"y1",
|
|
172
|
+
"y2",
|
|
173
|
+
"stroke",
|
|
174
|
+
"stroke-width"
|
|
175
|
+
], ot = [
|
|
176
|
+
"x",
|
|
177
|
+
"y",
|
|
178
|
+
"width",
|
|
179
|
+
"height",
|
|
180
|
+
"rx",
|
|
181
|
+
"ry",
|
|
182
|
+
"stroke",
|
|
183
|
+
"stroke-width"
|
|
184
|
+
], st = [
|
|
185
|
+
"x",
|
|
186
|
+
"y",
|
|
187
|
+
"fill",
|
|
188
|
+
"font-size"
|
|
189
|
+
], ct = ["aria-label", "onKeydown"], lt = {
|
|
190
|
+
key: 0,
|
|
191
|
+
class: "vue-ui-hill__stack-overflow-menu-title"
|
|
192
|
+
}, ut = [
|
|
193
|
+
"disabled",
|
|
194
|
+
"aria-label",
|
|
195
|
+
"onClick"
|
|
196
|
+
], dt = { class: "vue-ui-hill__stack-overflow-menu-label" }, ft = { class: "vue-ui-hill__stack-overflow-menu-value" }, pt = {
|
|
197
|
+
key: 6,
|
|
198
|
+
class: "vue-data-ui-watermark"
|
|
199
|
+
}, mt = {
|
|
200
|
+
key: 7,
|
|
201
|
+
class: "vue-ui-hill__loading",
|
|
202
|
+
"data-dom-to-png-ignore": ""
|
|
203
|
+
}, ht = /*#__PURE__*/ ae({
|
|
204
|
+
__name: "vue-ui-hill",
|
|
205
|
+
props: {
|
|
206
|
+
config: {
|
|
207
|
+
type: Object,
|
|
208
|
+
default() {
|
|
209
|
+
return {};
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
dataset: {
|
|
213
|
+
type: Array,
|
|
214
|
+
default() {
|
|
215
|
+
return [];
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
emits: [
|
|
220
|
+
"edit",
|
|
221
|
+
"save",
|
|
222
|
+
"cancel",
|
|
223
|
+
"copyAlt",
|
|
224
|
+
"change",
|
|
225
|
+
"dragStart",
|
|
226
|
+
"dragEnd",
|
|
227
|
+
"datapointEnter",
|
|
228
|
+
"datapointLeave",
|
|
229
|
+
"selectDatapoint"
|
|
230
|
+
],
|
|
231
|
+
setup(e, { expose: ae, emit: xe }) {
|
|
232
|
+
let ht = de(() => import("./HillActions-BD9j_sOU.js")), gt = de(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), _t = de(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), vt = de(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), yt = de(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), { vue_ui_hill: bt } = p(), { isThemeValid: xt, warnInvalidTheme: St } = ee(), Ct = e, wt = T(c()), j = _e(null), M = ve("hillChartRef"), N = ve("svgRef"), Tt = ve("overflowMenuRef"), Et = ve("userOptionsRef"), Dt = T(0), Ot = xe;
|
|
233
|
+
function kt() {
|
|
234
|
+
let e = h({
|
|
235
|
+
userConfig: Ct.config,
|
|
236
|
+
defaultConfig: bt
|
|
237
|
+
}), t = {}, n = e.theme;
|
|
238
|
+
if (!n) t = e;
|
|
239
|
+
else if (!xt.value(e)) St(e), t = e;
|
|
240
|
+
else {
|
|
241
|
+
let i = h({
|
|
242
|
+
userConfig: se[n] || Ct.config,
|
|
243
|
+
defaultConfig: e
|
|
244
|
+
});
|
|
245
|
+
t = {
|
|
246
|
+
...h({
|
|
247
|
+
userConfig: Ct.config,
|
|
248
|
+
defaultConfig: i
|
|
249
|
+
}),
|
|
250
|
+
customPalette: e.customPalette.length ? e.customPalette : r[n] || Kt
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
return t;
|
|
254
|
+
}
|
|
255
|
+
let P = T(kt());
|
|
256
|
+
d({
|
|
257
|
+
config: () => P.value,
|
|
258
|
+
dataset: () => Ct.dataset,
|
|
259
|
+
component: "VueUiHill",
|
|
260
|
+
rules: [f.emptyArray, f.noHint]
|
|
261
|
+
});
|
|
262
|
+
let { transitionEnabled: F } = ne({
|
|
263
|
+
config: () => P.value.transitions,
|
|
264
|
+
dataset: () => Ct.dataset
|
|
265
|
+
}), { userOptionsVisible: At, setUserOptionsVisibility: jt, keepUserOptionState: Mt } = oe({ config: P.value });
|
|
266
|
+
function Nt() {
|
|
267
|
+
jt(!0);
|
|
268
|
+
}
|
|
269
|
+
function Pt() {
|
|
270
|
+
jt(!1), Gn.value = null, $.value = null, Wn.value = null;
|
|
271
|
+
}
|
|
272
|
+
let { isPrinting: Ft, isImaging: It, generatePdf: Lt, generateImage: Rt } = m({
|
|
273
|
+
elementId: `hill_${wt.value}`,
|
|
274
|
+
fileName: P.value.style.chart.title.text || "vue-ui-hill",
|
|
275
|
+
options: P.value.userOptions.print
|
|
276
|
+
}), zt = _(() => P.value.userOptions.useCursorPointer), Bt = T(0), Vt = T(!1);
|
|
277
|
+
function Ht(e) {
|
|
278
|
+
Vt.value = e, Bt.value += 1;
|
|
279
|
+
}
|
|
280
|
+
let Ut = T(!1);
|
|
281
|
+
function Wt() {
|
|
282
|
+
Ut.value = !Ut.value;
|
|
283
|
+
}
|
|
284
|
+
let Gt = _(() => P.value.userOptions.position === "left" ? "right" : "left");
|
|
285
|
+
ye(() => Ct.config, () => {
|
|
286
|
+
j.value = null, P.value = kt(), Bt.value += 1, I.value !== P.value.editing && (I.value = P.value.editing && !P.value.readonly);
|
|
287
|
+
}, { deep: !0 });
|
|
288
|
+
let Kt = _(() => {
|
|
289
|
+
let e = P.value.customPalette;
|
|
290
|
+
return Array.isArray(e) && e.length ? e : i;
|
|
291
|
+
});
|
|
292
|
+
function qt(e) {
|
|
293
|
+
let t = Number(e);
|
|
294
|
+
return Number.isFinite(t) ? Math.min(1, Math.max(0, t)) : 0;
|
|
295
|
+
}
|
|
296
|
+
function Jt(e) {
|
|
297
|
+
if (e <= 0) return "todo";
|
|
298
|
+
if (e >= 1) return "done";
|
|
299
|
+
let t = .5, n = Math.min(t, Math.max(0, Number(P.value.interaction.peakTolerance) || 0)), r = t - n, i = t + n;
|
|
300
|
+
return e >= r && e <= i ? "top" : e < t ? "left" : "right";
|
|
301
|
+
}
|
|
302
|
+
function Yt(e, t) {
|
|
303
|
+
let n = e && typeof e == "object" ? e : {}, r = `Item ${t + 1}`, i = String(n.name ?? n.label ?? r), a = qt(n.position ?? n.value ?? 0);
|
|
304
|
+
return {
|
|
305
|
+
...n,
|
|
306
|
+
id: String(n.id ?? `${i}-${t}`),
|
|
307
|
+
name: i,
|
|
308
|
+
label: String(n.label ?? i),
|
|
309
|
+
position: a,
|
|
310
|
+
color: n.color || Kt.value[t % Kt.value.length],
|
|
311
|
+
muted: !!n.muted,
|
|
312
|
+
disabled: !!n.disabled,
|
|
313
|
+
status: Jt(e.position),
|
|
314
|
+
labelSide: [
|
|
315
|
+
"left",
|
|
316
|
+
"right",
|
|
317
|
+
"auto"
|
|
318
|
+
].includes(n.labelSide) ? n.labelSide : "auto",
|
|
319
|
+
__index: t
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
let Xt = _(() => Array.isArray(Ct.dataset) ? Ct.dataset.map(Yt) : []);
|
|
323
|
+
function Zt(e) {
|
|
324
|
+
return e.map((e) => ({ ...e }));
|
|
325
|
+
}
|
|
326
|
+
function Qt(e) {
|
|
327
|
+
let { __index: t, ...n } = e;
|
|
328
|
+
return Object.prototype.hasOwnProperty.call(n, "value") && (n.value = n.position), n;
|
|
329
|
+
}
|
|
330
|
+
function $t(e = L.value) {
|
|
331
|
+
return e.map(Qt);
|
|
332
|
+
}
|
|
333
|
+
let en = _(() => P.value.editing && !P.value.readonly), I = T(en.value), L = T(Zt(Xt.value)), R = T(null);
|
|
334
|
+
ye(Xt, (e) => {
|
|
335
|
+
I.value || (j.value = null, L.value = Zt(e));
|
|
336
|
+
}, { deep: !0 });
|
|
337
|
+
let z = _(() => !P.value.readonly);
|
|
338
|
+
ye(z, (e) => {
|
|
339
|
+
e || (R.value = null, j.value = null, I.value = !1, L.value = Zt(Xt.value));
|
|
340
|
+
});
|
|
341
|
+
function B(e, t) {
|
|
342
|
+
Ot(e, t);
|
|
343
|
+
let n = P.value.events?.[e];
|
|
344
|
+
typeof n == "function" && n(t);
|
|
345
|
+
}
|
|
346
|
+
let V = _(() => P.value.style.chart), tn = _(() => V.value.layout), H = _(() => tn.value.hill), U = _(() => tn.value.plots), W = _(() => tn.value.labels.item), G = _(() => tn.value.labels.phases), K = _(() => V.value.toolbar), q = _(() => tn.value.stackbar), J = _(() => {
|
|
347
|
+
let e = U.value.stacking?.overflow || {}, t = Math.max(0, Number(U.value.radius) || 0);
|
|
348
|
+
return {
|
|
349
|
+
show: e.show !== !1,
|
|
350
|
+
marker: {
|
|
351
|
+
radius: Math.max(4, Number(e.marker?.radius) || t),
|
|
352
|
+
fill: e.marker.fill,
|
|
353
|
+
stroke: e.marker?.stroke || U.value.stroke,
|
|
354
|
+
strokeWidth: e.marker.strokeWidth,
|
|
355
|
+
color: e.marker.labelColor,
|
|
356
|
+
fontSize: e.marker.fontSize,
|
|
357
|
+
bold: e.marker?.bold !== !1,
|
|
358
|
+
offsetY: e.marker.labelOffsetY
|
|
359
|
+
},
|
|
360
|
+
hysteresis: t * 1.5,
|
|
361
|
+
transitionDuration: F.value ? e.transitionDuration : 0,
|
|
362
|
+
menu: {
|
|
363
|
+
width: Math.max(160, Number(e.menu?.width) || 220),
|
|
364
|
+
maxHeight: Math.max(96, Number(e.menu?.maxHeight) || 220),
|
|
365
|
+
backgroundColor: e.menu?.backgroundColor || V.value.backgroundColor,
|
|
366
|
+
color: e.menu?.color || V.value.color,
|
|
367
|
+
borderColor: e.menu?.borderColor || U.value.stroke,
|
|
368
|
+
borderRadius: Math.max(0, Number(e.menu?.borderRadius) || 6)
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
});
|
|
372
|
+
function nn(e, t, n = 1) {
|
|
373
|
+
let r = Number(e);
|
|
374
|
+
return Number.isFinite(r) ? Math.min(n, Math.max(0, r)) : t;
|
|
375
|
+
}
|
|
376
|
+
let Y = _(() => {
|
|
377
|
+
let e = H.value.geometry || {}, t = Math.max(0, Number(V.value.width) || 0), n = Math.max(0, Number(V.value.height) || 0), r = nn(e.horizontalPaddingRatio, .02, .49), i = nn(e.topPaddingRatio, .12, .49), a = nn(e.bottomPaddingRatio, .2, .49), o = nn(e.curvature, .65), s = t * r, c = t / 2, l = t * (1 - r), u = n * i, d = n * (1 - a), f = c - s, p = l - c, m = s + f * o, h = c + p * (1 - o);
|
|
378
|
+
return {
|
|
379
|
+
startX: s,
|
|
380
|
+
centerX: c,
|
|
381
|
+
endX: l,
|
|
382
|
+
baseY: d,
|
|
383
|
+
peakY: u,
|
|
384
|
+
width: f + p,
|
|
385
|
+
left: [
|
|
386
|
+
{
|
|
387
|
+
x: s,
|
|
388
|
+
y: d
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
x: m,
|
|
392
|
+
y: d
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
x: m,
|
|
396
|
+
y: u
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
x: c,
|
|
400
|
+
y: u
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
right: [
|
|
404
|
+
{
|
|
405
|
+
x: c,
|
|
406
|
+
y: u
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
x: h,
|
|
410
|
+
y: u
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
x: h,
|
|
414
|
+
y: d
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
x: l,
|
|
418
|
+
y: d
|
|
419
|
+
}
|
|
420
|
+
]
|
|
421
|
+
};
|
|
422
|
+
}), rn = _(() => {
|
|
423
|
+
let { left: e, right: t } = Y.value;
|
|
424
|
+
return [
|
|
425
|
+
`M${e[0].x} ${e[0].y}`,
|
|
426
|
+
`C${e[1].x} ${e[1].y} ${e[2].x} ${e[2].y} ${e[3].x} ${e[3].y}`,
|
|
427
|
+
`C${t[1].x} ${t[1].y} ${t[2].x} ${t[2].y} ${t[3].x} ${t[3].y}`
|
|
428
|
+
].join(" ");
|
|
429
|
+
});
|
|
430
|
+
function an(e, t, n, r, i) {
|
|
431
|
+
let a = 1 - i;
|
|
432
|
+
return a ** 3 * e + 3 * a ** 2 * i * t + 3 * a * i ** 2 * n + i ** 3 * r;
|
|
433
|
+
}
|
|
434
|
+
function on(e, t, n, r, i) {
|
|
435
|
+
let a = 1 - i;
|
|
436
|
+
return 3 * a ** 2 * (t - e) + 6 * a * i * (n - t) + 3 * i ** 2 * (r - n);
|
|
437
|
+
}
|
|
438
|
+
function sn(e) {
|
|
439
|
+
let t = qt(e), { startX: n, centerX: r, endX: i, left: a, right: o } = Y.value, s = n + (t - 0) / 1 * (i - n), c = s <= r ? a : o, l = 0, u = 1;
|
|
440
|
+
for (let e = 0; e < 28; e += 1) {
|
|
441
|
+
let e = (l + u) / 2;
|
|
442
|
+
an(c[0].x, c[1].x, c[2].x, c[3].x, e) < s ? l = e : u = e;
|
|
443
|
+
}
|
|
444
|
+
let d = (l + u) / 2, f = an(c[0].y, c[1].y, c[2].y, c[3].y, d), p = on(c[0].x, c[1].x, c[2].x, c[3].x, d), m = on(c[0].y, c[1].y, c[2].y, c[3].y, d), h = Math.hypot(p, m) || 1;
|
|
445
|
+
return {
|
|
446
|
+
x: s,
|
|
447
|
+
y: f,
|
|
448
|
+
normalX: m / h,
|
|
449
|
+
normalY: -p / h
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
function cn(e) {
|
|
453
|
+
let t = Number(U.value.stacking.overlapThresholdRatio);
|
|
454
|
+
return e * (2 - (Number.isFinite(t) ? Math.min(2, Math.max(0, t)) : .5));
|
|
455
|
+
}
|
|
456
|
+
function ln(e, t) {
|
|
457
|
+
let n = /* @__PURE__ */ new Map(), r = U.value.stacking;
|
|
458
|
+
if (e.forEach((e) => {
|
|
459
|
+
n.set(e.id, {
|
|
460
|
+
position: e.position,
|
|
461
|
+
index: 0,
|
|
462
|
+
size: 1,
|
|
463
|
+
stackId: `stack:${e.id}`
|
|
464
|
+
});
|
|
465
|
+
}), !r.show || e.length < 2 || t <= 0) return n;
|
|
466
|
+
let i = cn(t), a = e.map((e, t) => ({
|
|
467
|
+
datapoint: e,
|
|
468
|
+
index: t,
|
|
469
|
+
point: sn(e.position)
|
|
470
|
+
})).sort((e, t) => e.point.x - t.point.x || e.datapoint.position - t.datapoint.position || e.index - t.index), o = 0;
|
|
471
|
+
for (; o < a.length;) {
|
|
472
|
+
let e = [a[o]], t = o + 1;
|
|
473
|
+
for (; t < a.length;) {
|
|
474
|
+
let n = e[e.length - 1], r = a[t];
|
|
475
|
+
if (Math.hypot(r.point.x - n.point.x, r.point.y - n.point.y) >= i) break;
|
|
476
|
+
e.push(r), t += 1;
|
|
477
|
+
}
|
|
478
|
+
if (e.length > 1) {
|
|
479
|
+
let t = e[0].datapoint.position, r = `stack:${e.map(({ datapoint: e }) => e.id).sort().join("|")}`;
|
|
480
|
+
e.forEach(({ datapoint: i }, a) => {
|
|
481
|
+
n.set(i.id, {
|
|
482
|
+
position: t,
|
|
483
|
+
index: a,
|
|
484
|
+
size: e.length,
|
|
485
|
+
stackId: r
|
|
486
|
+
});
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
o = t;
|
|
490
|
+
}
|
|
491
|
+
return n;
|
|
492
|
+
}
|
|
493
|
+
function un(e) {
|
|
494
|
+
let t = e + Math.max(0, Number(U.value.strokeWidth) || 0) / 2, n = U.value.stacking.gap ?? e / 2;
|
|
495
|
+
return t * 2 + n;
|
|
496
|
+
}
|
|
497
|
+
let dn = T(null), X = T(null), Z = T(null), fn = T(null), pn = T(null), mn = /* @__PURE__ */ new Set(), hn = null, gn = null, Q = null;
|
|
498
|
+
function _n(e) {
|
|
499
|
+
let t = Math.max(0, Number(U.value.strokeWidth) || 0), n = U.value.shadow.show ? Math.max(0, Number(U.value.shadow.blur) || 0) + Math.max(0, -(Number(U.value.shadow.offsetY) || 0)) : 0;
|
|
500
|
+
return e + t / 2 + n;
|
|
501
|
+
}
|
|
502
|
+
function vn(e, t, n) {
|
|
503
|
+
if (t <= 1) return e - _n(n);
|
|
504
|
+
let r = un(n);
|
|
505
|
+
return e - (t - 1) * r - _n(n);
|
|
506
|
+
}
|
|
507
|
+
function yn(e, t, n, r) {
|
|
508
|
+
if (n <= 1) return mn.delete(e), !1;
|
|
509
|
+
let i = vn(t, n, r), a = mn.has(e), o = J.value.hysteresis, s = a ? i < o : i < 0;
|
|
510
|
+
return s ? mn.add(e) : mn.delete(e), s;
|
|
511
|
+
}
|
|
512
|
+
let bn = _(() => {
|
|
513
|
+
let e = Math.max(0, Number(U.value.radius) || 0), t = un(e), n = ln(L.value, e), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = /* @__PURE__ */ new Set(), s = R.value?.id ?? null;
|
|
514
|
+
J.value.show || mn.clear(), L.value.forEach((e) => {
|
|
515
|
+
let t = n.get(e.id) || {
|
|
516
|
+
position: e.position,
|
|
517
|
+
index: 0,
|
|
518
|
+
size: 1,
|
|
519
|
+
stackId: `stack:${e.id}`
|
|
520
|
+
};
|
|
521
|
+
r.has(t.stackId) || r.set(t.stackId, []), r.get(t.stackId).push({
|
|
522
|
+
datapoint: e,
|
|
523
|
+
stack: t
|
|
524
|
+
});
|
|
525
|
+
});
|
|
526
|
+
let c = new Set(r.keys());
|
|
527
|
+
return mn.forEach((e) => {
|
|
528
|
+
c.has(e) || mn.delete(e);
|
|
529
|
+
}), r.forEach((n, r) => {
|
|
530
|
+
let c = [...n].sort((e, t) => e.stack.index - t.stack.index || e.datapoint.__index - t.datapoint.__index), l = c.reduce((e, t) => e + (Number(t.datapoint.position) || 0), 0) / c.length, u = sn(l);
|
|
531
|
+
if (!(J.value.show && yn(r, u.y, c.length, e))) {
|
|
532
|
+
c.forEach((e) => {
|
|
533
|
+
i.set(e.datapoint.id, {
|
|
534
|
+
hidden: !1,
|
|
535
|
+
displayIndex: e.stack.index,
|
|
536
|
+
stackId: r,
|
|
537
|
+
stackSize: c.length,
|
|
538
|
+
promotedFromOverflow: !1,
|
|
539
|
+
renderPosition: e.stack.position
|
|
540
|
+
});
|
|
541
|
+
});
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
c.forEach(({ datapoint: e }) => {
|
|
545
|
+
o.add(e.id);
|
|
546
|
+
});
|
|
547
|
+
let d = s ? c.find(({ datapoint: e }) => e.id === s) : null, f = c.find(({ datapoint: e }) => e.id === dn.value), p = d || f || null, m = p ? c.filter(({ datapoint: e }) => e.id !== p.datapoint.id) : c, h = X.value, ee = !!(f && h?.datapointId === f.datapoint.id && !h.moved), te = m.length ? ee ? l : m.reduce((e, t) => e + (Number(t.datapoint.position) || 0), 0) / m.length : l, ne = sn(te);
|
|
548
|
+
c.forEach((e) => {
|
|
549
|
+
let t = p?.datapoint.id === e.datapoint.id, n = t && f?.datapoint.id === e.datapoint.id;
|
|
550
|
+
i.set(e.datapoint.id, {
|
|
551
|
+
hidden: !t,
|
|
552
|
+
displayIndex: +!!t,
|
|
553
|
+
stackId: r,
|
|
554
|
+
stackSize: c.length,
|
|
555
|
+
promotedFromOverflow: n,
|
|
556
|
+
renderPosition: te
|
|
557
|
+
});
|
|
558
|
+
}), m.length && a.push({
|
|
559
|
+
stackId: r,
|
|
560
|
+
anchorPosition: te,
|
|
561
|
+
x: ne.x,
|
|
562
|
+
y: ne.y,
|
|
563
|
+
hiddenCount: m.length,
|
|
564
|
+
hiddenDatapoints: m.map(({ datapoint: e }) => e),
|
|
565
|
+
memberIds: c.map(({ datapoint: e }) => e.id),
|
|
566
|
+
collapseDatapoints: m.map(({ datapoint: e, stack: n }) => {
|
|
567
|
+
let r = sn(n.position);
|
|
568
|
+
return {
|
|
569
|
+
id: e.id,
|
|
570
|
+
color: e.color,
|
|
571
|
+
relativeX: r.x - ne.x,
|
|
572
|
+
relativeY: r.y - n.index * t - ne.y
|
|
573
|
+
};
|
|
574
|
+
})
|
|
575
|
+
});
|
|
576
|
+
}), {
|
|
577
|
+
layoutMap: n,
|
|
578
|
+
displayMap: i,
|
|
579
|
+
markers: a,
|
|
580
|
+
overflowMemberIds: o
|
|
581
|
+
};
|
|
582
|
+
});
|
|
583
|
+
function xn(e) {
|
|
584
|
+
let t = Cn.value.filter((e) => !e.isStackOverflowHidden), n = t.find((t) => t.id === e), r = new Map(t.filter((t) => t.id !== e).map((e) => [e.id, {
|
|
585
|
+
x: e.x,
|
|
586
|
+
y: e.y
|
|
587
|
+
}]));
|
|
588
|
+
if (!n || !U.value.stacking.show) return r;
|
|
589
|
+
let i = t.filter((e) => Math.abs(e.x - n.x) < .001).sort((e, t) => t.y - e.y || e.datasetIndex - t.datasetIndex);
|
|
590
|
+
if (i.length < 2) return r;
|
|
591
|
+
let a = un(Math.max(0, Number(U.value.radius) || 0)), o = Math.max(...i.map((e) => e.y));
|
|
592
|
+
return i.filter((t) => t.id !== e).forEach((e, t) => {
|
|
593
|
+
r.set(e.id, {
|
|
594
|
+
x: n.x,
|
|
595
|
+
y: o - t * a
|
|
596
|
+
});
|
|
597
|
+
}), r;
|
|
598
|
+
}
|
|
599
|
+
function Sn() {
|
|
600
|
+
return new Map(Cn.value.filter((e) => !e.isStackOverflowHidden).map((e) => [e.id, {
|
|
601
|
+
x: e.x,
|
|
602
|
+
y: e.y
|
|
603
|
+
}]));
|
|
604
|
+
}
|
|
605
|
+
let Cn = _(() => {
|
|
606
|
+
let e = Math.max(0, Number(U.value.radius) || 0), { layoutMap: t, displayMap: n, markers: r } = bn.value, i = un(e), a = R.value, o = a?.stationaryLayout, s = o instanceof Map ? o : j.value instanceof Map ? j.value : null, c = null;
|
|
607
|
+
if (a && o instanceof Map && U.value.stacking.show && e > 0) {
|
|
608
|
+
let t = L.value.find((e) => e.id === a.id);
|
|
609
|
+
if (t) {
|
|
610
|
+
let n = r.find((e) => e.memberIds.includes(t.id));
|
|
611
|
+
if (n) c = {
|
|
612
|
+
x: n.x,
|
|
613
|
+
y: n.y - i
|
|
614
|
+
};
|
|
615
|
+
else {
|
|
616
|
+
let n = sn(t.position), r = cn(e), s = L.value.filter((e) => e.id !== a.id && o.has(e.id)).map((e) => {
|
|
617
|
+
let t = sn(e.position);
|
|
618
|
+
return {
|
|
619
|
+
datapoint: e,
|
|
620
|
+
distance: Math.hypot(t.x - n.x, t.y - n.y)
|
|
621
|
+
};
|
|
622
|
+
}).filter(({ distance: e }) => e < r).sort((e, t) => e.distance - t.distance)[0];
|
|
623
|
+
if (s) {
|
|
624
|
+
let e = o.get(s.datapoint.id), t = [...o.values()].filter((t) => Math.abs(t.x - e.x) < .001), n = Math.min(e.y, ...t.map((e) => e.y));
|
|
625
|
+
c = {
|
|
626
|
+
x: e.x,
|
|
627
|
+
y: n - i
|
|
628
|
+
};
|
|
629
|
+
} else c = n;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
return L.value.map((e, r) => {
|
|
634
|
+
let o = t.get(e.id) || {
|
|
635
|
+
position: e.position,
|
|
636
|
+
index: 0,
|
|
637
|
+
size: 1,
|
|
638
|
+
stackId: `stack:${e.id}`
|
|
639
|
+
}, l = n.get(e.id) || {
|
|
640
|
+
hidden: !1,
|
|
641
|
+
displayIndex: o.index,
|
|
642
|
+
stackId: o.stackId,
|
|
643
|
+
stackSize: o.size,
|
|
644
|
+
renderPosition: o.position
|
|
645
|
+
}, d = sn(l.renderPosition ?? o.position), f = e.id !== a?.id && !l.promotedFromOverflow && s instanceof Map ? s.get(e.id) : null, p = e.id === a?.id && c ? c : f || {
|
|
646
|
+
x: d.x,
|
|
647
|
+
y: d.y - l.displayIndex * i
|
|
648
|
+
}, m = e.labelSide === "auto" ? null : e.labelSide, h = u(W.value.autoSideThreshold, .5, 1), ee = m || (e.position > h ? "left" : "right"), te = Math.abs(Number(W.value.offsetX) || 0) + U.value.radius + W.value.fontSize / 2;
|
|
649
|
+
return {
|
|
650
|
+
...e,
|
|
651
|
+
datasetIndex: r,
|
|
652
|
+
x: p.x,
|
|
653
|
+
y: p.y,
|
|
654
|
+
stackId: l.stackId,
|
|
655
|
+
stackSize: l.stackSize,
|
|
656
|
+
stackDisplayIndex: l.displayIndex,
|
|
657
|
+
isStackOverflowHidden: l.hidden,
|
|
658
|
+
isPromotedFromStackOverflow: l.promotedFromOverflow,
|
|
659
|
+
labelSide: ee,
|
|
660
|
+
labelX: ee === "left" ? -te : te,
|
|
661
|
+
textAnchor: ee === "left" ? "end" : "start"
|
|
662
|
+
};
|
|
663
|
+
});
|
|
664
|
+
});
|
|
665
|
+
function wn(e) {
|
|
666
|
+
return L.value.find((t) => t.id === e);
|
|
667
|
+
}
|
|
668
|
+
function Tn(e, t) {
|
|
669
|
+
let n = qt(t), r;
|
|
670
|
+
L.value = L.value.map((t) => t.id === e ? (r = {
|
|
671
|
+
...t,
|
|
672
|
+
position: n
|
|
673
|
+
}, r) : t), r && (dr(r.id, r.position), B("change", {
|
|
674
|
+
datapoint: Qt(r),
|
|
675
|
+
dataset: $t()
|
|
676
|
+
}));
|
|
677
|
+
}
|
|
678
|
+
function En(e) {
|
|
679
|
+
let t = N.value;
|
|
680
|
+
if (!t) return null;
|
|
681
|
+
let n = t.getScreenCTM();
|
|
682
|
+
if (!n) return null;
|
|
683
|
+
let r = t.createSVGPoint();
|
|
684
|
+
r.x = e, r.y = 0;
|
|
685
|
+
let i = r.matrixTransform(n.inverse()), { startX: a, endX: o } = Y.value;
|
|
686
|
+
return qt(0 + (i.x - a) / (o - a) * 1);
|
|
687
|
+
}
|
|
688
|
+
function Dn() {
|
|
689
|
+
z.value && (Z.value = null, dn.value = null, X.value = null, pn.value = null, ir(), j.value = null, L.value = Zt(Xt.value), I.value = !0, B("edit", $t()));
|
|
690
|
+
}
|
|
691
|
+
function On() {
|
|
692
|
+
let e = $t();
|
|
693
|
+
Z.value = null, dn.value = null, X.value = null, pn.value = null, ir(), R.value = null, I.value = !1, B("save", e);
|
|
694
|
+
}
|
|
695
|
+
function kn() {
|
|
696
|
+
Z.value = null, dn.value = null, X.value = null, pn.value = null, ir(), R.value = null, j.value = null, L.value = Zt(Xt.value), I.value = !1, B("cancel", $t());
|
|
697
|
+
}
|
|
698
|
+
function An(e, t) {
|
|
699
|
+
if (!z.value || !I.value || t.disabled) return;
|
|
700
|
+
Z.value = null;
|
|
701
|
+
let n = e.currentTarget.closest(".vue-ui-hill__datapoint");
|
|
702
|
+
n && typeof n.focus == "function" && (n.focus(), $.value = t.id), e.preventDefault();
|
|
703
|
+
let r = xn(t.id), i = X.value?.datapointId === t.id && !X.value?.moved;
|
|
704
|
+
if (R.value = {
|
|
705
|
+
id: t.id,
|
|
706
|
+
pointerId: e.pointerId,
|
|
707
|
+
stationaryLayout: r,
|
|
708
|
+
startClientX: e.clientX,
|
|
709
|
+
hasMoved: !1,
|
|
710
|
+
deferPositionUpdate: i
|
|
711
|
+
}, N.value?.setPointerCapture(e.pointerId), !i) {
|
|
712
|
+
let n = En(e.clientX);
|
|
713
|
+
n !== null && Tn(t.id, n);
|
|
714
|
+
}
|
|
715
|
+
let a = wn(t.id);
|
|
716
|
+
a && B("dragStart", Qt(a));
|
|
717
|
+
}
|
|
718
|
+
function jn(e) {
|
|
719
|
+
if (!R.value || R.value.pointerId !== e.pointerId) return;
|
|
720
|
+
e.preventDefault();
|
|
721
|
+
let t = Math.abs(e.clientX - R.value.startClientX);
|
|
722
|
+
if (R.value.deferPositionUpdate && !R.value.hasMoved && t < 3) return;
|
|
723
|
+
R.value.hasMoved || (R.value = {
|
|
724
|
+
...R.value,
|
|
725
|
+
hasMoved: !0
|
|
726
|
+
});
|
|
727
|
+
let n = En(e.clientX);
|
|
728
|
+
n !== null && Tn(R.value.id, n);
|
|
729
|
+
}
|
|
730
|
+
function Mn(e) {
|
|
731
|
+
let t = R.value;
|
|
732
|
+
if (!t || t.pointerId !== e.pointerId) return;
|
|
733
|
+
N.value?.hasPointerCapture(e.pointerId) && N.value.releasePointerCapture(e.pointerId);
|
|
734
|
+
let n = e.type === "pointerup" && !t.hasMoved, r = wn(t.id);
|
|
735
|
+
j.value = Sn(), R.value = null, r && (n && B("selectDatapoint", Fn(r)), B("dragEnd", Qt(r)));
|
|
736
|
+
}
|
|
737
|
+
function Nn(e, t) {
|
|
738
|
+
if (!z.value || !I.value || t.disabled) return;
|
|
739
|
+
let n = Math.max(0, Number(P.value.interaction.keyboardStep) || 0), r = null;
|
|
740
|
+
switch (e.key) {
|
|
741
|
+
case "ArrowLeft":
|
|
742
|
+
case "ArrowDown":
|
|
743
|
+
r = t.position - n;
|
|
744
|
+
break;
|
|
745
|
+
case "ArrowRight":
|
|
746
|
+
case "ArrowUp":
|
|
747
|
+
r = t.position + n;
|
|
748
|
+
break;
|
|
749
|
+
case "Home":
|
|
750
|
+
r = 0;
|
|
751
|
+
break;
|
|
752
|
+
case "End":
|
|
753
|
+
r = 1;
|
|
754
|
+
break;
|
|
755
|
+
default: return;
|
|
756
|
+
}
|
|
757
|
+
e.preventDefault();
|
|
758
|
+
let i = e.currentTarget;
|
|
759
|
+
$.value = t.id, R.value = {
|
|
760
|
+
id: t.id,
|
|
761
|
+
pointerId: null,
|
|
762
|
+
stationaryLayout: xn(t.id)
|
|
763
|
+
}, Tn(t.id, r), j.value = Sn(), R.value = null, fe(() => {
|
|
764
|
+
i?.isConnected && i.focus({ preventScroll: !0 });
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
function Pn(e) {
|
|
768
|
+
let t = .5, n = Math.max(0, Number(P.value.interaction.peakTolerance) || 0);
|
|
769
|
+
return Math.abs(e - t) <= n ? P.value.a11y.translations.topOfHill : e < t ? G.value.left.text : G.value.right.text;
|
|
770
|
+
}
|
|
771
|
+
function Fn(e) {
|
|
772
|
+
return {
|
|
773
|
+
datapoint: Qt(e),
|
|
774
|
+
index: e.__index
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
function In(e) {
|
|
778
|
+
$.value = null, Gn.value = e.id, ![0, 1].includes(e.position) && $.value !== e.id && Jn(e), B("datapointEnter", Fn(e));
|
|
779
|
+
}
|
|
780
|
+
function Ln(e) {
|
|
781
|
+
Gn.value === e.id && (Gn.value = null), Wn.value === e.id && $.value !== e.id && R.value?.id !== e.id && (Wn.value = null), B("datapointLeave", Fn(e));
|
|
782
|
+
}
|
|
783
|
+
function Rn(e) {
|
|
784
|
+
I.value && z.value || B("selectDatapoint", Fn(e));
|
|
785
|
+
}
|
|
786
|
+
let zn = _(() => {
|
|
787
|
+
let e = V.value;
|
|
788
|
+
return {
|
|
789
|
+
width: "100%",
|
|
790
|
+
maxWidth: "100%",
|
|
791
|
+
color: e.color,
|
|
792
|
+
backgroundColor: e.backgroundColor,
|
|
793
|
+
fontFamily: P.value.style.fontFamily,
|
|
794
|
+
"--vue-ui-hill-button-hover-border": K.value.buttons.hoverBorderColor,
|
|
795
|
+
"--vue-ui-hill-button-active-offset": `${K.value.buttons.activeTranslateY}px`
|
|
796
|
+
};
|
|
797
|
+
}), Bn = _(() => ({
|
|
798
|
+
color: K.value.status.color,
|
|
799
|
+
fontSize: `${K.value.status.fontSize}px`,
|
|
800
|
+
fontWeight: K.value.status.bold ? "bold" : "normal",
|
|
801
|
+
lineHeight: K.value.status.lineHeight
|
|
802
|
+
}));
|
|
803
|
+
_(() => ({
|
|
804
|
+
color: V.value.title.color,
|
|
805
|
+
fontSize: `${V.value.title.fontSize}px`,
|
|
806
|
+
fontWeight: V.value.title.bold ? "bold" : "normal",
|
|
807
|
+
textAlign: V.value.title.textAlign
|
|
808
|
+
})), _(() => ({
|
|
809
|
+
color: V.value.title.subtitle.color,
|
|
810
|
+
fontSize: `${V.value.title.subtitle.fontSize}px`,
|
|
811
|
+
fontWeight: V.value.title.subtitle.bold ? "bold" : "normal"
|
|
812
|
+
}));
|
|
813
|
+
let Vn = _(() => {
|
|
814
|
+
let e = Math.max(0, Number(V.value.height) || 0);
|
|
815
|
+
return Math.min(e, Y.value.baseY + e) + G.value.offsetY;
|
|
816
|
+
});
|
|
817
|
+
function Hn(e) {
|
|
818
|
+
return G.value[e].text;
|
|
819
|
+
}
|
|
820
|
+
function Un(e) {
|
|
821
|
+
return e.position === 0 || e.position === 1;
|
|
822
|
+
}
|
|
823
|
+
let Wn = T(null), Gn = T(null), $ = T(null);
|
|
824
|
+
function Kn(e) {
|
|
825
|
+
$.value = e.id;
|
|
826
|
+
}
|
|
827
|
+
function qn(e) {
|
|
828
|
+
$.value === e.id && ($.value = null), Wn.value === e.id && Gn.value !== e.id && R.value?.id !== e.id && (Wn.value = null);
|
|
829
|
+
}
|
|
830
|
+
function Jn(e) {
|
|
831
|
+
e?.id && (Wn.value = e.id);
|
|
832
|
+
}
|
|
833
|
+
let Yn = _(() => {
|
|
834
|
+
let e = [], t = [], n = null;
|
|
835
|
+
return Cn.value.forEach((r) => {
|
|
836
|
+
if (!r.isStackOverflowHidden) {
|
|
837
|
+
if (r.id === Wn.value) {
|
|
838
|
+
n = r;
|
|
839
|
+
return;
|
|
840
|
+
}
|
|
841
|
+
Un(r) ? e.push(r) : t.push(r);
|
|
842
|
+
}
|
|
843
|
+
}), [
|
|
844
|
+
...e,
|
|
845
|
+
...t,
|
|
846
|
+
...n ? [n] : []
|
|
847
|
+
];
|
|
848
|
+
}), Xn = _(() => bn.value.markers), Zn = _(() => Xn.value.find((e) => e.stackId === Z.value) || null), Qn = _(() => {
|
|
849
|
+
let e = Math.max(160, Number(J.value.menu.width) || 220), t = Math.max(80, Number(J.value.menu.maxHeight) || 220);
|
|
850
|
+
return {
|
|
851
|
+
visibility: fn.value ? "visible" : "hidden",
|
|
852
|
+
width: "max-content",
|
|
853
|
+
minWidth: `${e}px`,
|
|
854
|
+
maxWidth: "calc(100% - 16px)",
|
|
855
|
+
maxHeight: `${t}px`,
|
|
856
|
+
backgroundColor: J.value.menu.backgroundColor,
|
|
857
|
+
color: J.value.menu.color,
|
|
858
|
+
borderColor: J.value.menu.borderColor,
|
|
859
|
+
borderRadius: `${J.value.menu.borderRadius}px`
|
|
860
|
+
};
|
|
861
|
+
});
|
|
862
|
+
function $n(e, t) {
|
|
863
|
+
let n = N.value, r = M.value;
|
|
864
|
+
if (!n || !r) return null;
|
|
865
|
+
let i = n.getScreenCTM();
|
|
866
|
+
if (!i) return null;
|
|
867
|
+
let a = n.createSVGPoint();
|
|
868
|
+
a.x = e, a.y = t;
|
|
869
|
+
let o = a.matrixTransform(i), s = r.getBoundingClientRect();
|
|
870
|
+
return {
|
|
871
|
+
x: o.x - s.left,
|
|
872
|
+
y: o.y - s.top
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
function er() {
|
|
876
|
+
let e = Zn.value, t = Tt.value, n = M.value;
|
|
877
|
+
if (!e || !t || !n) {
|
|
878
|
+
fn.value = null;
|
|
879
|
+
return;
|
|
880
|
+
}
|
|
881
|
+
let r = $n(e.x, e.y), i = $n(e.x, e.y + J.value.marker.radius);
|
|
882
|
+
if (!r || !i) {
|
|
883
|
+
fn.value = null;
|
|
884
|
+
return;
|
|
885
|
+
}
|
|
886
|
+
let a = n.getBoundingClientRect(), o = t.offsetWidth, s = t.offsetHeight, c = Math.abs(i.y - r.y), l = Math.max(0, a.width - 16), u = Math.min(o, l), d = r.x;
|
|
887
|
+
if (u >= l) d = a.width / 2;
|
|
888
|
+
else {
|
|
889
|
+
let e = u / 2;
|
|
890
|
+
d = Math.min(a.width - 8 - e, Math.max(8 + e, r.x));
|
|
891
|
+
}
|
|
892
|
+
let f = r.y + c + 8, p = r.y - c - 8 - s, m = f + s <= a.height - 8, h = p >= 8, ee = f;
|
|
893
|
+
!m && h ? ee = p : m || (ee = Math.min(Math.max(8, f), Math.max(8, a.height - s - 8))), fn.value = {
|
|
894
|
+
left: `${d}px`,
|
|
895
|
+
top: `${ee}px`,
|
|
896
|
+
transform: "translateX(-50%)",
|
|
897
|
+
visibility: "visible"
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
function tr() {
|
|
901
|
+
typeof window > "u" || (Q !== null && window.cancelAnimationFrame(Q), Q = window.requestAnimationFrame(() => {
|
|
902
|
+
Q = null, er();
|
|
903
|
+
}));
|
|
904
|
+
}
|
|
905
|
+
ye(Xn, (e) => {
|
|
906
|
+
Z.value && !e.some((e) => e.stackId === Z.value) && rr();
|
|
907
|
+
}), ye(() => {
|
|
908
|
+
let e = Zn.value;
|
|
909
|
+
return e ? [
|
|
910
|
+
e.stackId,
|
|
911
|
+
e.x,
|
|
912
|
+
e.y,
|
|
913
|
+
e.hiddenDatapoints.length,
|
|
914
|
+
e.hiddenDatapoints.map((e) => `${e.id}:${e.label}:${e.position}`).join("|"),
|
|
915
|
+
J.value.marker.radius,
|
|
916
|
+
J.value.menu.width,
|
|
917
|
+
J.value.menu.maxHeight,
|
|
918
|
+
J.value.menu.backgroundColor,
|
|
919
|
+
J.value.menu.color,
|
|
920
|
+
J.value.menu.borderColor,
|
|
921
|
+
J.value.menu.borderRadius,
|
|
922
|
+
Vt.value
|
|
923
|
+
] : null;
|
|
924
|
+
}, (e) => {
|
|
925
|
+
if (!e) {
|
|
926
|
+
fn.value = null;
|
|
927
|
+
return;
|
|
928
|
+
}
|
|
929
|
+
fe(tr);
|
|
930
|
+
}, { flush: "post" }), ye(Tt, (e, t) => {
|
|
931
|
+
t && gn && gn.unobserve(t), e && gn && (gn.observe(e), fe(tr));
|
|
932
|
+
}, { flush: "post" }), ye(() => {
|
|
933
|
+
let e = dn.value;
|
|
934
|
+
return !e || bn.value.overflowMemberIds.has(e);
|
|
935
|
+
}, (e) => {
|
|
936
|
+
e || (dn.value = null, X.value = null);
|
|
937
|
+
});
|
|
938
|
+
function nr(e) {
|
|
939
|
+
if (e) {
|
|
940
|
+
if (Z.value === e.stackId) {
|
|
941
|
+
tr();
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
fn.value = null, Z.value = e.stackId, fe(tr);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
function rr() {
|
|
948
|
+
Z.value = null, fn.value = null, typeof window < "u" && Q !== null && (window.cancelAnimationFrame(Q), Q = null);
|
|
949
|
+
}
|
|
950
|
+
function ir() {
|
|
951
|
+
hn !== null && (clearTimeout(hn), hn = null);
|
|
952
|
+
}
|
|
953
|
+
function ar() {
|
|
954
|
+
let e = X.value;
|
|
955
|
+
!e || e.moved || (ir(), pn.value = e.stackId, dn.value = null, X.value = null, rr(), hn = setTimeout(() => {
|
|
956
|
+
pn.value = null, hn = null;
|
|
957
|
+
}, J.value.transitionDuration + 80));
|
|
958
|
+
}
|
|
959
|
+
function or(e) {
|
|
960
|
+
if (!(e instanceof Element)) return {
|
|
961
|
+
isMenu: !1,
|
|
962
|
+
isMarker: !1,
|
|
963
|
+
isSelectedDatapoint: !1
|
|
964
|
+
};
|
|
965
|
+
let t = X.value, n = e.closest("[data-datapoint-id]");
|
|
966
|
+
return {
|
|
967
|
+
isMenu: !!e.closest("[data-stack-overflow-menu]"),
|
|
968
|
+
isMarker: !!e.closest("[data-stack-overflow-marker]"),
|
|
969
|
+
isSelectedDatapoint: !!(t && n?.getAttribute("data-datapoint-id") === t.datapointId)
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
function sr(e) {
|
|
973
|
+
let t = or(e.target);
|
|
974
|
+
Z.value && !t.isMenu && !t.isMarker && rr(), X.value && !X.value.moved && !t.isMenu && !t.isMarker && !t.isSelectedDatapoint && ar();
|
|
975
|
+
}
|
|
976
|
+
function cr(e) {
|
|
977
|
+
let t = Cn.value.find((t) => t.id === e);
|
|
978
|
+
if (!t || t.isStackOverflowHidden) return;
|
|
979
|
+
let n = N.value?.querySelector(`[data-datapoint-index="${t.__index}"]`);
|
|
980
|
+
n && typeof n.focus == "function" && n.focus({ preventScroll: !0 });
|
|
981
|
+
}
|
|
982
|
+
function lr(e) {
|
|
983
|
+
if (!e || e.disabled || P.value.readonly) return;
|
|
984
|
+
let t = Zn.value?.stackId;
|
|
985
|
+
t && (ir(), pn.value = null, dn.value = e.id, X.value = {
|
|
986
|
+
datapointId: e.id,
|
|
987
|
+
stackId: t,
|
|
988
|
+
initialPosition: e.position,
|
|
989
|
+
moved: !1
|
|
990
|
+
}, rr(), fe(() => {
|
|
991
|
+
cr(e.id);
|
|
992
|
+
let t = Cn.value.find((t) => t.id === e.id);
|
|
993
|
+
t && B("selectDatapoint", Fn(t));
|
|
994
|
+
}));
|
|
995
|
+
}
|
|
996
|
+
function ur() {
|
|
997
|
+
let e = Math.max(1, Number(Y.value.width) || 1);
|
|
998
|
+
return Math.max(1e-6, 1 / e * 2);
|
|
999
|
+
}
|
|
1000
|
+
function dr(e, t) {
|
|
1001
|
+
let n = X.value;
|
|
1002
|
+
!n || n.datapointId !== e || n.moved || Math.abs(t - n.initialPosition) >= ur() && (X.value = {
|
|
1003
|
+
...n,
|
|
1004
|
+
moved: !0
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
he(() => {
|
|
1008
|
+
document.addEventListener("pointerdown", sr), window.addEventListener("resize", tr, { passive: !0 }), typeof ResizeObserver < "u" && (gn = new ResizeObserver(() => {
|
|
1009
|
+
Zn.value && tr();
|
|
1010
|
+
}), M.value && gn.observe(M.value), N.value && gn.observe(N.value));
|
|
1011
|
+
}), me(() => {
|
|
1012
|
+
document.removeEventListener("pointerdown", sr), window.removeEventListener("resize", tr), gn?.disconnect(), gn = null, Q !== null && (window.cancelAnimationFrame(Q), Q = null), ir();
|
|
1013
|
+
});
|
|
1014
|
+
function fr(e) {
|
|
1015
|
+
return R.value ? R.value.id === e.id : Gn.value === e.id || $.value === e.id;
|
|
1016
|
+
}
|
|
1017
|
+
function pr(e) {
|
|
1018
|
+
return s(P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.formatter, e.position, a({
|
|
1019
|
+
p: "",
|
|
1020
|
+
v: e.position * 100,
|
|
1021
|
+
s: "%",
|
|
1022
|
+
r: P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.rounding
|
|
1023
|
+
}));
|
|
1024
|
+
}
|
|
1025
|
+
let mr = _(() => P.value.style.chart.backgroundColor), hr = _(() => P.value.style.chart.legend), gr = _(() => P.value.style.chart.title), { isCallbackImaging: _r, isCallbackSvg: vr, generateSvg: yr, onGenerateImage: br } = te({
|
|
1026
|
+
svg: N,
|
|
1027
|
+
title: gr,
|
|
1028
|
+
legend: hr,
|
|
1029
|
+
legendItems: null,
|
|
1030
|
+
backgroundColor: mr,
|
|
1031
|
+
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
1032
|
+
generateImage: Rt
|
|
1033
|
+
});
|
|
1034
|
+
function xr(e = null) {
|
|
1035
|
+
fe(() => {
|
|
1036
|
+
let r = $t().map((e) => [
|
|
1037
|
+
[e.name],
|
|
1038
|
+
[e.position],
|
|
1039
|
+
[pr(e)],
|
|
1040
|
+
[Pn(e.position)]
|
|
1041
|
+
]), i = [
|
|
1042
|
+
[P.value.style.chart.title.text],
|
|
1043
|
+
[P.value.style.chart.title.subtitle.text],
|
|
1044
|
+
[
|
|
1045
|
+
["Name"],
|
|
1046
|
+
["Position"],
|
|
1047
|
+
["Percentage"],
|
|
1048
|
+
["Phase"]
|
|
1049
|
+
]
|
|
1050
|
+
].concat(r), a = n(i);
|
|
1051
|
+
e ? e(a) : t({
|
|
1052
|
+
csvContent: a,
|
|
1053
|
+
title: P.value.style.chart.title.text || "vue-ui-hill"
|
|
1054
|
+
});
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
let Sr = _(() => P.value.style.chart.layout.stackbar.show), Cr = _(() => {
|
|
1058
|
+
let e = Cn.value.length;
|
|
1059
|
+
Cn.value.reduce((e, t) => e + (t?.position ?? 0), 0);
|
|
1060
|
+
let t = 0, n = Cn.value.every((e) => e.position === 1);
|
|
1061
|
+
return Cn.value.toSorted((e, t) => {
|
|
1062
|
+
if (n) return e.__index - t.__index;
|
|
1063
|
+
let r = (e?.position ?? 0) - (t?.position ?? 0);
|
|
1064
|
+
return r === 0 ? e.__index - t.__index : r;
|
|
1065
|
+
}).map((n) => {
|
|
1066
|
+
let r = n?.position ?? 0, i = e > 0 ? r / e : 0, a = {
|
|
1067
|
+
...n,
|
|
1068
|
+
proportion: i,
|
|
1069
|
+
proportionStart: t
|
|
1070
|
+
};
|
|
1071
|
+
return t += i, a;
|
|
1072
|
+
});
|
|
1073
|
+
}), wr = _(() => Math.min(1, Math.max(0, Cr.value.reduce((e, t) => e + t.proportion, 0)))), Tr = _(() => wr.value * 100), Er = _(() => Y.value.left[0].x + Y.value.width * wr.value), Dr = _(() => V.value.height + 32 + q.value.paddingTop);
|
|
1074
|
+
function Or() {
|
|
1075
|
+
return s(q.value.label.formatter, Tr.value, a({
|
|
1076
|
+
p: "",
|
|
1077
|
+
v: Tr.value,
|
|
1078
|
+
s: "%",
|
|
1079
|
+
r: 0
|
|
1080
|
+
}));
|
|
1081
|
+
}
|
|
1082
|
+
let kr = _(() => `${wt.value}-stackbar-clip`);
|
|
1083
|
+
async function Ar() {
|
|
1084
|
+
let e = $t();
|
|
1085
|
+
if (Ot("copyAlt", {
|
|
1086
|
+
config: P.value,
|
|
1087
|
+
dataset: e
|
|
1088
|
+
}), !P.value.userOptions.callbacks.altCopy) {
|
|
1089
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1090
|
+
return;
|
|
1091
|
+
}
|
|
1092
|
+
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
1093
|
+
config: P.value,
|
|
1094
|
+
dataset: e
|
|
1095
|
+
}));
|
|
1096
|
+
}
|
|
1097
|
+
async function jr({ scale: e = 2 } = {}) {
|
|
1098
|
+
if (!M.value) return;
|
|
1099
|
+
let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await re({
|
|
1100
|
+
domElement: M.value,
|
|
1101
|
+
base64: !0,
|
|
1102
|
+
img: !0,
|
|
1103
|
+
scale: e
|
|
1104
|
+
});
|
|
1105
|
+
return {
|
|
1106
|
+
imageUri: i,
|
|
1107
|
+
base64: a,
|
|
1108
|
+
title: P.value.style.chart.title.text,
|
|
1109
|
+
width: t,
|
|
1110
|
+
height: n,
|
|
1111
|
+
aspectRatio: r
|
|
1112
|
+
};
|
|
1113
|
+
}
|
|
1114
|
+
function Mr() {
|
|
1115
|
+
return $t();
|
|
1116
|
+
}
|
|
1117
|
+
return ae({
|
|
1118
|
+
isEditing: I,
|
|
1119
|
+
beginEditing: Dn,
|
|
1120
|
+
save: On,
|
|
1121
|
+
cancel: kn,
|
|
1122
|
+
getData: Mr,
|
|
1123
|
+
copyAlt: Ar,
|
|
1124
|
+
toggleFullscreen: Ht,
|
|
1125
|
+
toggleAnnotator: Wt,
|
|
1126
|
+
generateImage: Rt,
|
|
1127
|
+
generateSvg: yr,
|
|
1128
|
+
generatePdf: Lt,
|
|
1129
|
+
generateCsv: xr,
|
|
1130
|
+
getImage: jr
|
|
1131
|
+
}), (e, t) => (w(), y("div", {
|
|
1132
|
+
ref_key: "hillChartRef",
|
|
1133
|
+
ref: M,
|
|
1134
|
+
class: pe("vue-data-ui-component vue-ui-hill"),
|
|
1135
|
+
style: C(zn.value),
|
|
1136
|
+
id: `hill_${wt.value}`,
|
|
1137
|
+
onMouseenter: Nt,
|
|
1138
|
+
onMouseleave: Pt,
|
|
1139
|
+
"data-editing": I.value
|
|
1140
|
+
}, [
|
|
1141
|
+
P.value.style.chart.title.text ? (w(), y("div", Ce, [(w(), ce(ie, {
|
|
1142
|
+
key: `title_${Dt.value}`,
|
|
1143
|
+
config: {
|
|
1144
|
+
title: {
|
|
1145
|
+
cy: "hill-div-title",
|
|
1146
|
+
...P.value.style.chart.title
|
|
1147
|
+
},
|
|
1148
|
+
subtitle: {
|
|
1149
|
+
cy: "hill-div-subtitle",
|
|
1150
|
+
...P.value.style.chart.title.subtitle
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
}, null, 8, ["config"]))], 512)) : v("", !0),
|
|
1154
|
+
P.value.userOptions.buttons.annotator && N.value ? (w(), ce(O(vt), {
|
|
1155
|
+
key: 1,
|
|
1156
|
+
color: P.value.style.chart.color,
|
|
1157
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
1158
|
+
active: Ut.value,
|
|
1159
|
+
svgRef: N.value,
|
|
1160
|
+
isCursorPointer: zt.value,
|
|
1161
|
+
onClose: Wt
|
|
1162
|
+
}, {
|
|
1163
|
+
"annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1164
|
+
"annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", S(x({ color: t })), void 0, !0)]),
|
|
1165
|
+
"annotator-action-draw": k(({ mode: t }) => [E(e.$slots, "annotator-action-draw", S(x({ mode: t })), void 0, !0)]),
|
|
1166
|
+
"annotator-action-undo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", S(x({ disabled: t })), void 0, !0)]),
|
|
1167
|
+
"annotator-action-redo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", S(x({ disabled: t })), void 0, !0)]),
|
|
1168
|
+
"annotator-action-delete": k(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", S(x({ disabled: t })), void 0, !0)]),
|
|
1169
|
+
_: 3
|
|
1170
|
+
}, 8, [
|
|
1171
|
+
"color",
|
|
1172
|
+
"backgroundColor",
|
|
1173
|
+
"active",
|
|
1174
|
+
"svgRef",
|
|
1175
|
+
"isCursorPointer"
|
|
1176
|
+
])) : v("", !0),
|
|
1177
|
+
K.value.show ? (w(), ce(O(ht), {
|
|
1178
|
+
key: 2,
|
|
1179
|
+
"is-editing": I.value,
|
|
1180
|
+
"is-editable": z.value,
|
|
1181
|
+
"is-fullscreen": Vt.value,
|
|
1182
|
+
position: Gt.value,
|
|
1183
|
+
color: P.value.style.chart.color,
|
|
1184
|
+
"background-color": P.value.style.chart.backgroundColor,
|
|
1185
|
+
translations: K.value.buttons.translations,
|
|
1186
|
+
"is-cursor-pointer": zt.value,
|
|
1187
|
+
onUpdate: Dn,
|
|
1188
|
+
onCancel: kn,
|
|
1189
|
+
onSave: On
|
|
1190
|
+
}, {
|
|
1191
|
+
"hill-edit": k(() => [E(e.$slots, "hill-edit", {}, void 0, !0)]),
|
|
1192
|
+
"hill-cancel": k(() => [E(e.$slots, "hill-cancel", {}, void 0, !0)]),
|
|
1193
|
+
"hill-save": k(() => [E(e.$slots, "hill-save", {}, void 0, !0)]),
|
|
1194
|
+
_: 3
|
|
1195
|
+
}, 8, [
|
|
1196
|
+
"is-editing",
|
|
1197
|
+
"is-editable",
|
|
1198
|
+
"is-fullscreen",
|
|
1199
|
+
"position",
|
|
1200
|
+
"color",
|
|
1201
|
+
"background-color",
|
|
1202
|
+
"translations",
|
|
1203
|
+
"is-cursor-pointer"
|
|
1204
|
+
])) : v("", !0),
|
|
1205
|
+
K.value.show ? (w(), y("div", we, [b("p", {
|
|
1206
|
+
class: "vue-ui-hill__status",
|
|
1207
|
+
style: C(Bn.value),
|
|
1208
|
+
"aria-live": "polite"
|
|
1209
|
+
}, D(I.value ? K.value.status.editInstruction : K.value.status.lastUpdated), 5)])) : v("", !0),
|
|
1210
|
+
P.value.userOptions.show && (O(Mt) || O(At)) ? (w(), ce(O(gt), {
|
|
1211
|
+
ref_key: "userOptionsRef",
|
|
1212
|
+
ref: Et,
|
|
1213
|
+
key: `uo_${Bt.value}`,
|
|
1214
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
1215
|
+
color: P.value.style.chart.color,
|
|
1216
|
+
isPrinting: O(Ft),
|
|
1217
|
+
isImaging: O(It),
|
|
1218
|
+
uid: wt.value,
|
|
1219
|
+
hasTooltip: !1,
|
|
1220
|
+
hasPdf: P.value.userOptions.buttons.pdf,
|
|
1221
|
+
hasImg: P.value.userOptions.buttons.img,
|
|
1222
|
+
hasSvg: P.value.userOptions.buttons.svg,
|
|
1223
|
+
hasXls: P.value.userOptions.buttons.csv,
|
|
1224
|
+
hasTable: P.value.userOptions.buttons.table,
|
|
1225
|
+
hasLabel: P.value.userOptions.buttons.labels,
|
|
1226
|
+
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
1227
|
+
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
1228
|
+
chartElement: M.value,
|
|
1229
|
+
position: P.value.userOptions.position,
|
|
1230
|
+
callbacks: P.value.userOptions.callbacks,
|
|
1231
|
+
titles: { ...P.value.userOptions.buttonTitles },
|
|
1232
|
+
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
1233
|
+
isAnnotation: Ut.value,
|
|
1234
|
+
printScale: P.value.userOptions.print.scale,
|
|
1235
|
+
isCursorPointer: zt.value,
|
|
1236
|
+
onToggleFullscreen: Ht,
|
|
1237
|
+
onGeneratePdf: O(Lt),
|
|
1238
|
+
onGenerateCsv: xr,
|
|
1239
|
+
onGenerateImage: O(br),
|
|
1240
|
+
onGenerateSvg: O(yr),
|
|
1241
|
+
onToggleAnnotator: Wt,
|
|
1242
|
+
onCopyAlt: Ar,
|
|
1243
|
+
style: C({ visibility: O(Mt) ? O(At) ? "visible" : "hidden" : "visible" })
|
|
1244
|
+
}, le({ _: 2 }, [
|
|
1245
|
+
e.$slots.menuIcon ? {
|
|
1246
|
+
name: "menuIcon",
|
|
1247
|
+
fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", S(x({
|
|
1248
|
+
isOpen: t,
|
|
1249
|
+
color: n
|
|
1250
|
+
})), void 0, !0)]),
|
|
1251
|
+
key: "0"
|
|
1252
|
+
} : void 0,
|
|
1253
|
+
e.$slots.optionPdf ? {
|
|
1254
|
+
name: "optionPdf",
|
|
1255
|
+
fn: k(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1256
|
+
key: "1"
|
|
1257
|
+
} : void 0,
|
|
1258
|
+
e.$slots.optionCsv ? {
|
|
1259
|
+
name: "optionCsv",
|
|
1260
|
+
fn: k(() => [E(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1261
|
+
key: "2"
|
|
1262
|
+
} : void 0,
|
|
1263
|
+
e.$slots.optionImg ? {
|
|
1264
|
+
name: "optionImg",
|
|
1265
|
+
fn: k(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1266
|
+
key: "3"
|
|
1267
|
+
} : void 0,
|
|
1268
|
+
e.$slots.optionSvg ? {
|
|
1269
|
+
name: "optionSvg",
|
|
1270
|
+
fn: k(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1271
|
+
key: "4"
|
|
1272
|
+
} : void 0,
|
|
1273
|
+
e.$slots.optionFullscreen ? {
|
|
1274
|
+
name: "optionFullscreen",
|
|
1275
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", S(x({
|
|
1276
|
+
toggleFullscreen: t,
|
|
1277
|
+
isFullscreen: n
|
|
1278
|
+
})), void 0, !0)]),
|
|
1279
|
+
key: "5"
|
|
1280
|
+
} : void 0,
|
|
1281
|
+
e.$slots.optionAnnotator ? {
|
|
1282
|
+
name: "optionAnnotator",
|
|
1283
|
+
fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", S(x({
|
|
1284
|
+
toggleAnnotator: t,
|
|
1285
|
+
isAnnotator: n
|
|
1286
|
+
})), void 0, !0)]),
|
|
1287
|
+
key: "6"
|
|
1288
|
+
} : void 0,
|
|
1289
|
+
e.$slots.optionAltCopy ? {
|
|
1290
|
+
name: "optionAltCopy",
|
|
1291
|
+
fn: k(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", S(x({ altCopy: t })), void 0, !0)]),
|
|
1292
|
+
key: "7"
|
|
1293
|
+
} : void 0,
|
|
1294
|
+
e.$slots["custom-menu-before"] ? {
|
|
1295
|
+
name: "custom-menu-before",
|
|
1296
|
+
fn: k(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1297
|
+
key: "8"
|
|
1298
|
+
} : void 0,
|
|
1299
|
+
e.$slots["custom-menu-after"] ? {
|
|
1300
|
+
name: "custom-menu-after",
|
|
1301
|
+
fn: k(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1302
|
+
key: "9"
|
|
1303
|
+
} : void 0
|
|
1304
|
+
]), 1032, [
|
|
1305
|
+
"backgroundColor",
|
|
1306
|
+
"color",
|
|
1307
|
+
"isPrinting",
|
|
1308
|
+
"isImaging",
|
|
1309
|
+
"uid",
|
|
1310
|
+
"hasPdf",
|
|
1311
|
+
"hasImg",
|
|
1312
|
+
"hasSvg",
|
|
1313
|
+
"hasXls",
|
|
1314
|
+
"hasTable",
|
|
1315
|
+
"hasLabel",
|
|
1316
|
+
"hasFullscreen",
|
|
1317
|
+
"hasAltCopy",
|
|
1318
|
+
"chartElement",
|
|
1319
|
+
"position",
|
|
1320
|
+
"callbacks",
|
|
1321
|
+
"titles",
|
|
1322
|
+
"hasAnnotator",
|
|
1323
|
+
"isAnnotation",
|
|
1324
|
+
"printScale",
|
|
1325
|
+
"isCursorPointer",
|
|
1326
|
+
"onGeneratePdf",
|
|
1327
|
+
"onGenerateImage",
|
|
1328
|
+
"onGenerateSvg",
|
|
1329
|
+
"style"
|
|
1330
|
+
])) : v("", !0),
|
|
1331
|
+
(w(), y("svg", {
|
|
1332
|
+
ref_key: "svgRef",
|
|
1333
|
+
ref: N,
|
|
1334
|
+
style: C({
|
|
1335
|
+
background: "transparent",
|
|
1336
|
+
color: P.value.style.chart.color,
|
|
1337
|
+
fontFamily: P.value.style.fontFamily
|
|
1338
|
+
}),
|
|
1339
|
+
class: pe({ "vue-data-ui-no-transition": !O(F) }),
|
|
1340
|
+
viewBox: `0 0 ${V.value.width} ${V.value.height + (Sr.value ? 32 + q.value.paddingTop + q.value.paddingBottom + q.value.height : 0)}`,
|
|
1341
|
+
role: "group",
|
|
1342
|
+
"aria-live": "polite",
|
|
1343
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
1344
|
+
onPointermove: jn,
|
|
1345
|
+
onPointerup: Mn,
|
|
1346
|
+
onPointercancel: Mn
|
|
1347
|
+
}, [
|
|
1348
|
+
ue(O(_t)),
|
|
1349
|
+
e.$slots["chart-background"] ? (w(), y("foreignObject", {
|
|
1350
|
+
key: 0,
|
|
1351
|
+
x: 0,
|
|
1352
|
+
y: 0,
|
|
1353
|
+
width: Math.max(.1, V.value.width),
|
|
1354
|
+
height: Math.max(.1, V.value.height + (Sr.value ? 32 + q.value.paddingTop + q.value.paddingBottom + q.value.height : 0)),
|
|
1355
|
+
style: { pointerEvents: "none" }
|
|
1356
|
+
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Ee)) : v("", !0),
|
|
1357
|
+
H.value.baseline.show ? (w(), y("line", {
|
|
1358
|
+
key: 1,
|
|
1359
|
+
x1: Y.value.startX,
|
|
1360
|
+
x2: Y.value.endX,
|
|
1361
|
+
y1: Y.value.baseY,
|
|
1362
|
+
y2: Y.value.baseY,
|
|
1363
|
+
stroke: H.value.baseline.stroke,
|
|
1364
|
+
"stroke-width": H.value.baseline.strokeWidth,
|
|
1365
|
+
"stroke-dasharray": H.value.baseline.strokeDasharray,
|
|
1366
|
+
"vector-effect": "non-scaling-stroke"
|
|
1367
|
+
}, null, 8, De)) : v("", !0),
|
|
1368
|
+
H.value.midline.show ? (w(), y("line", {
|
|
1369
|
+
key: 2,
|
|
1370
|
+
x1: Y.value.centerX,
|
|
1371
|
+
x2: Y.value.centerX,
|
|
1372
|
+
y1: Y.value.peakY,
|
|
1373
|
+
y2: Y.value.baseY,
|
|
1374
|
+
stroke: H.value.midline.stroke,
|
|
1375
|
+
"stroke-width": H.value.midline.strokeWidth,
|
|
1376
|
+
"stroke-dasharray": H.value.midline.strokeDasharray,
|
|
1377
|
+
"vector-effect": "non-scaling-stroke"
|
|
1378
|
+
}, null, 8, Oe)) : v("", !0),
|
|
1379
|
+
b("path", {
|
|
1380
|
+
d: rn.value,
|
|
1381
|
+
fill: "none",
|
|
1382
|
+
stroke: H.value.curve.stroke,
|
|
1383
|
+
"stroke-width": H.value.curve.strokeWidth,
|
|
1384
|
+
"stroke-dasharray": H.value.curve.strokeDasharray,
|
|
1385
|
+
"stroke-linecap": "round",
|
|
1386
|
+
"stroke-linejoin": "round",
|
|
1387
|
+
"vector-effect": "non-scaling-stroke"
|
|
1388
|
+
}, null, 8, ke),
|
|
1389
|
+
P.value.style.chart.layout.plots.dragMarker.positionIndicator.show ? (w(!0), y(g, { key: 3 }, ge(Yn.value, (e) => (w(), y("g", { key: `position-indicator-${e.id}` }, [fr(e) && U.value.dragMarker.show ? (w(), y("g", Ae, [
|
|
1390
|
+
b("path", {
|
|
1391
|
+
d: `M${e.x},${e.y} ${e.x},${Y.value.baseY}`,
|
|
1392
|
+
stroke: P.value.style.chart.layout.plots.dragMarker.positionIndicator.useSerieColor ? e.color : P.value.style.chart.layout.plots.dragMarker.positionIndicator.color,
|
|
1393
|
+
"stroke-width": P.value.style.chart.layout.plots.dragMarker.positionIndicator.strokeWidth,
|
|
1394
|
+
"stroke-dasharray": P.value.style.chart.layout.plots.dragMarker.positionIndicator.strokeDasharray,
|
|
1395
|
+
"stroke-linecap": "round",
|
|
1396
|
+
"vector-effect": "non-scaling-stroke",
|
|
1397
|
+
class: pe({ "vue-data-ui-transition": O(F) && R.value?.id !== e.id })
|
|
1398
|
+
}, null, 10, je),
|
|
1399
|
+
P.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.show ? (w(), y("circle", {
|
|
1400
|
+
key: 0,
|
|
1401
|
+
cx: e.x,
|
|
1402
|
+
cy: Y.value.baseY,
|
|
1403
|
+
r: P.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.radius,
|
|
1404
|
+
fill: P.value.style.chart.layout.plots.dragMarker.positionIndicator.useSerieColor ? e.color : P.value.style.chart.layout.plots.dragMarker.positionIndicator.color,
|
|
1405
|
+
stroke: P.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.stroke,
|
|
1406
|
+
"stroke-width": P.value.style.chart.layout.plots.dragMarker.positionIndicator.circle.strokeWidth,
|
|
1407
|
+
"vector-effect": "non-scaling-stroke",
|
|
1408
|
+
"paint-order": "stroke fill",
|
|
1409
|
+
class: pe({ "vue-data-ui-transition": O(F) && R.value?.id !== e.id })
|
|
1410
|
+
}, null, 10, Me)) : v("", !0),
|
|
1411
|
+
P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.show ? (w(), y("text", {
|
|
1412
|
+
key: 1,
|
|
1413
|
+
"paint-order": "stroke fill",
|
|
1414
|
+
"vector-effect": "non-scaling-stroke",
|
|
1415
|
+
"text-anchor": "middle",
|
|
1416
|
+
transform: `translate(${e.x}, ${Y.value.baseY + P.value.style.chart.layout.plots.radius + P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.offsetY + P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.fontSize})`,
|
|
1417
|
+
"font-size": P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.fontSize,
|
|
1418
|
+
fill: P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.useSerieColor ? e.color : P.value.style.chart.layout.plots.dragMarker.positionIndicator.value.color,
|
|
1419
|
+
stroke: P.value.style.chart.backgroundColor,
|
|
1420
|
+
"stroke-width": "1",
|
|
1421
|
+
class: pe({ "vue-data-ui-transition": O(F) && R.value?.id !== e.id })
|
|
1422
|
+
}, D(pr(e)), 11, Ne)) : v("", !0)
|
|
1423
|
+
])) : v("", !0)]))), 128)) : v("", !0),
|
|
1424
|
+
(w(!0), y(g, null, ge(Yn.value, (e) => (w(), y("g", {
|
|
1425
|
+
key: e.id,
|
|
1426
|
+
"data-cy-datapoint": "",
|
|
1427
|
+
class: pe({
|
|
1428
|
+
"vue-ui-hill__datapoint": !0,
|
|
1429
|
+
"vue-data-ui-transition": O(F) && R.value?.id !== e.id,
|
|
1430
|
+
"vue-ui-hill__datapoint--promoted": O(F) && e.isPromotedFromStackOverflow
|
|
1431
|
+
}),
|
|
1432
|
+
style: C({ opacity: [0, 1].includes(e.position) || e?.muted ? U.value.mutedOpacity : e?.disabled ? U.value.disabledOpacity : 1 }),
|
|
1433
|
+
transform: `translate(${e.x} ${e.y})`,
|
|
1434
|
+
"data-datapoint-index": e.__index,
|
|
1435
|
+
"data-datapoint-id": e.id,
|
|
1436
|
+
role: "slider",
|
|
1437
|
+
tabindex: I.value && z.value && !e.disabled ? 0 : -1,
|
|
1438
|
+
"aria-orientation": "horizontal",
|
|
1439
|
+
"aria-valuemin": "0",
|
|
1440
|
+
"aria-valuemax": "100",
|
|
1441
|
+
"aria-valuenow": pr(e),
|
|
1442
|
+
"aria-valuetext": `${e.label}: ${Pn(e.position)}, ${pr(e)}`,
|
|
1443
|
+
"aria-label": e.label,
|
|
1444
|
+
onFocus: (t) => Kn(e),
|
|
1445
|
+
onBlur: (t) => qn(e),
|
|
1446
|
+
onKeydown: (t) => Nn(t, e),
|
|
1447
|
+
onPointerenter: (t) => In(e),
|
|
1448
|
+
onPointerleave: (t) => Ln(e),
|
|
1449
|
+
onClick: (t) => Rn(e)
|
|
1450
|
+
}, [
|
|
1451
|
+
b("circle", {
|
|
1452
|
+
r: U.value.hitRadius,
|
|
1453
|
+
fill: "transparent",
|
|
1454
|
+
class: pe({
|
|
1455
|
+
"vue-ui-hill__hit-area--active": I.value && z.value && !e.disabled,
|
|
1456
|
+
"vue-ui-hill__hit-area--dragging": R.value?.id === e.id
|
|
1457
|
+
}),
|
|
1458
|
+
onPointerdown: (t) => An(t, e)
|
|
1459
|
+
}, null, 42, Fe),
|
|
1460
|
+
b("circle", {
|
|
1461
|
+
class: "vue-ui-hill-circle",
|
|
1462
|
+
r: U.value.radius,
|
|
1463
|
+
fill: e.color,
|
|
1464
|
+
stroke: U.value.stroke,
|
|
1465
|
+
"stroke-width": U.value.strokeWidth,
|
|
1466
|
+
style: C({ filter: U.value.shadow.show ? `drop-shadow(${U.value.shadow.offsetX}px ${U.value.shadow.offsetY}px ${U.value.shadow.blur}px ${U.value.shadow.color})` : "none" }),
|
|
1467
|
+
"vector-effect": "non-scaling-stroke",
|
|
1468
|
+
"pointer-events": "none"
|
|
1469
|
+
}, null, 12, Ie),
|
|
1470
|
+
I.value && (R.value?.id === e.id && U.value.dragMarker.show || fr(e)) && !e?.disabled ? (w(), y("g", {
|
|
1471
|
+
key: 0,
|
|
1472
|
+
fill: "none",
|
|
1473
|
+
stroke: O(l)(e.color),
|
|
1474
|
+
"stroke-width": U.value.dragMarker.strokeWidth,
|
|
1475
|
+
"stroke-linecap": "round",
|
|
1476
|
+
"stroke-linejoin": "round",
|
|
1477
|
+
"pointer-events": "none",
|
|
1478
|
+
"vector-effect": "non-scaling-stroke",
|
|
1479
|
+
"aria-hidden": "true"
|
|
1480
|
+
}, [b("path", { d: U.value.dragMarker.crossPath }, null, 8, Re)], 8, Le)) : v("", !0),
|
|
1481
|
+
W.value.show ? (w(), y("text", {
|
|
1482
|
+
key: 1,
|
|
1483
|
+
x: e.labelX,
|
|
1484
|
+
y: W.value.offsetY,
|
|
1485
|
+
"text-anchor": e.textAnchor,
|
|
1486
|
+
fill: W.value.useSerieColor ? e.color : W.value.color,
|
|
1487
|
+
"font-size": W.value.fontSize,
|
|
1488
|
+
"font-weight": W.value.bold ? "bold" : "normal",
|
|
1489
|
+
"paint-order": "stroke fill",
|
|
1490
|
+
stroke: W.value.stroke,
|
|
1491
|
+
"stroke-width": W.value.strokeWidth,
|
|
1492
|
+
"stroke-linejoin": "round",
|
|
1493
|
+
"stroke-linecap": "round",
|
|
1494
|
+
"pointer-events": "none",
|
|
1495
|
+
style: { "user-select": "none" },
|
|
1496
|
+
"dominant-baseline": "central"
|
|
1497
|
+
}, D(O(o)(e.label, W.value.ellipsisThresholdChars)), 9, ze)) : v("", !0)
|
|
1498
|
+
], 46, Pe))), 128)),
|
|
1499
|
+
(w(!0), y(g, null, ge(Xn.value, (e) => (w(), y("g", {
|
|
1500
|
+
key: `stack-overflow-${e.stackId}`,
|
|
1501
|
+
class: pe(["vue-ui-hill__stack-overflow-marker", {
|
|
1502
|
+
"vue-ui-hill__stack-overflow-marker--animated": O(F),
|
|
1503
|
+
"vue-ui-hill__stack-overflow-marker--restored": pn.value === e.stackId
|
|
1504
|
+
}]),
|
|
1505
|
+
style: C({
|
|
1506
|
+
"--vue-ui-hill-overflow-marker-duration": `${J.value.transitionDuration * .7}ms`,
|
|
1507
|
+
"--vue-ui-hill-overflow-marker-delay": `${J.value.transitionDuration * .3}ms`,
|
|
1508
|
+
"--vue-ui-hill-overflow-label-duration": `${J.value.transitionDuration * .55}ms`,
|
|
1509
|
+
"--vue-ui-hill-overflow-label-delay": `${J.value.transitionDuration * .45}ms`,
|
|
1510
|
+
cursor: zt.value && !P.value.readonly ? "pointer" : "default"
|
|
1511
|
+
}),
|
|
1512
|
+
transform: `translate(${e.x} ${e.y})`,
|
|
1513
|
+
"data-stack-overflow-marker": "",
|
|
1514
|
+
role: "button",
|
|
1515
|
+
tabindex: I.value && z.value ? 0 : -1,
|
|
1516
|
+
"aria-label": `${e.hiddenCount} stacked datapoints. Activate to choose one.`,
|
|
1517
|
+
"aria-expanded": Z.value === e.stackId,
|
|
1518
|
+
onPointerdown: t[0] ||= A(() => {}, ["stop"]),
|
|
1519
|
+
onClick: A((t) => nr(e), ["stop"]),
|
|
1520
|
+
onFocus: (t) => nr(e),
|
|
1521
|
+
onKeydown: [
|
|
1522
|
+
be(A((t) => nr(e), ["prevent", "stop"]), ["enter"]),
|
|
1523
|
+
be(A((t) => nr(e), ["prevent", "stop"]), ["space"]),
|
|
1524
|
+
be(A(rr, ["prevent", "stop"]), ["esc"])
|
|
1525
|
+
]
|
|
1526
|
+
}, [
|
|
1527
|
+
O(F) && pn.value !== e.stackId ? (w(), y("g", Ve, [(w(!0), y(g, null, ge(e.collapseDatapoints, (t) => (w(), y("circle", {
|
|
1528
|
+
key: `overflow-ghost-${e.stackId}-${t.id}`,
|
|
1529
|
+
cx: t.relativeX,
|
|
1530
|
+
cy: t.relativeY,
|
|
1531
|
+
r: U.value.radius,
|
|
1532
|
+
fill: t.color,
|
|
1533
|
+
stroke: U.value.stroke,
|
|
1534
|
+
"stroke-width": U.value.strokeWidth,
|
|
1535
|
+
opacity: "0.8",
|
|
1536
|
+
"vector-effect": "non-scaling-stroke"
|
|
1537
|
+
}, [
|
|
1538
|
+
b("animate", {
|
|
1539
|
+
attributeName: "cx",
|
|
1540
|
+
from: t.relativeX,
|
|
1541
|
+
to: "0",
|
|
1542
|
+
dur: `${J.value.transitionDuration}ms`,
|
|
1543
|
+
fill: "freeze",
|
|
1544
|
+
calcMode: "spline",
|
|
1545
|
+
keyTimes: "0;1",
|
|
1546
|
+
keySplines: "0.22 1 0.36 1"
|
|
1547
|
+
}, null, 8, Ue),
|
|
1548
|
+
b("animate", {
|
|
1549
|
+
attributeName: "cy",
|
|
1550
|
+
from: t.relativeY,
|
|
1551
|
+
to: "0",
|
|
1552
|
+
dur: `${J.value.transitionDuration}ms`,
|
|
1553
|
+
fill: "freeze",
|
|
1554
|
+
calcMode: "spline",
|
|
1555
|
+
keyTimes: "0;1",
|
|
1556
|
+
keySplines: "0.22 1 0.36 1"
|
|
1557
|
+
}, null, 8, We),
|
|
1558
|
+
b("animate", {
|
|
1559
|
+
attributeName: "r",
|
|
1560
|
+
from: U.value.radius,
|
|
1561
|
+
to: J.value.marker.radius * .7,
|
|
1562
|
+
dur: `${J.value.transitionDuration}ms`,
|
|
1563
|
+
fill: "freeze"
|
|
1564
|
+
}, null, 8, Ge),
|
|
1565
|
+
b("animate", {
|
|
1566
|
+
attributeName: "opacity",
|
|
1567
|
+
from: "0.8",
|
|
1568
|
+
to: "0",
|
|
1569
|
+
dur: `${J.value.transitionDuration * .85}ms`,
|
|
1570
|
+
fill: "freeze"
|
|
1571
|
+
}, null, 8, Ke)
|
|
1572
|
+
], 8, He))), 128))])) : v("", !0),
|
|
1573
|
+
b("circle", {
|
|
1574
|
+
r: Math.max(U.value.hitRadius, J.value.marker.radius),
|
|
1575
|
+
fill: "transparent",
|
|
1576
|
+
"pointer-events": "all"
|
|
1577
|
+
}, null, 8, qe),
|
|
1578
|
+
b("rect", {
|
|
1579
|
+
class: "vue-ui-hill__stack-overflow-marker-rect",
|
|
1580
|
+
x: -J.value.marker.radius,
|
|
1581
|
+
y: -J.value.marker.radius,
|
|
1582
|
+
width: J.value.marker.radius * 2,
|
|
1583
|
+
height: J.value.marker.radius * 2,
|
|
1584
|
+
fill: J.value.marker.fill,
|
|
1585
|
+
stroke: J.value.marker.stroke,
|
|
1586
|
+
"stroke-width": J.value.marker.strokeWidth,
|
|
1587
|
+
"vector-effect": "non-scaling-stroke",
|
|
1588
|
+
"pointer-events": "none"
|
|
1589
|
+
}, null, 8, Je),
|
|
1590
|
+
b("g", {
|
|
1591
|
+
class: "vue-ui-hill__stack-overflow-focus-cross",
|
|
1592
|
+
fill: "none",
|
|
1593
|
+
stroke: O(l)(H.value.curve.stroke),
|
|
1594
|
+
"stroke-width": U.value.dragMarker.strokeWidth,
|
|
1595
|
+
"stroke-linecap": "round",
|
|
1596
|
+
"stroke-linejoin": "round",
|
|
1597
|
+
"pointer-events": "none",
|
|
1598
|
+
"vector-effect": "non-scaling-stroke",
|
|
1599
|
+
"aria-hidden": "true"
|
|
1600
|
+
}, [b("path", { d: U.value.dragMarker.crossPath }, null, 8, Xe)], 8, Ye),
|
|
1601
|
+
Zn.value ? v("", !0) : (w(), y("text", {
|
|
1602
|
+
key: 1,
|
|
1603
|
+
class: "vue-ui-hill__stack-overflow-marker-label",
|
|
1604
|
+
"text-anchor": "middle",
|
|
1605
|
+
y: J.value.marker.radius + J.value.marker.offsetY + J.value.marker.fontSize,
|
|
1606
|
+
fill: J.value.marker.color,
|
|
1607
|
+
"font-size": J.value.marker.fontSize,
|
|
1608
|
+
"font-weight": J.value.marker.bold ? "bold" : "normal",
|
|
1609
|
+
"pointer-events": "none",
|
|
1610
|
+
style: { "user-select": "none" },
|
|
1611
|
+
"paint-order": "stroke fill",
|
|
1612
|
+
"vector-effect": "non-scaling-stroke",
|
|
1613
|
+
stroke: P.value.style.chart.backgroundColor,
|
|
1614
|
+
"stroke-width": "3"
|
|
1615
|
+
}, " +" + D(e.hiddenCount), 9, Ze))
|
|
1616
|
+
], 46, Be))), 128)),
|
|
1617
|
+
G.value.show ? (w(), y(g, { key: 4 }, [b("text", {
|
|
1618
|
+
x: (Y.value.startX + Y.value.centerX) / 2,
|
|
1619
|
+
y: Vn.value,
|
|
1620
|
+
"text-anchor": "middle",
|
|
1621
|
+
fill: G.value.color,
|
|
1622
|
+
"font-size": G.value.fontSize,
|
|
1623
|
+
"font-weight": G.value.bold ? "bold" : "normal",
|
|
1624
|
+
"letter-spacing": G.value.letterSpacing
|
|
1625
|
+
}, D(Hn("left")), 9, Qe), b("text", {
|
|
1626
|
+
x: (Y.value.centerX + Y.value.endX) / 2,
|
|
1627
|
+
y: Vn.value,
|
|
1628
|
+
"text-anchor": "middle",
|
|
1629
|
+
fill: G.value.color,
|
|
1630
|
+
"font-size": G.value.fontSize,
|
|
1631
|
+
"font-weight": G.value.bold ? "bold" : "normal",
|
|
1632
|
+
"letter-spacing": G.value.letterSpacing
|
|
1633
|
+
}, D(Hn("right")), 9, $e)], 64)) : v("", !0),
|
|
1634
|
+
Sr.value ? (w(), y(g, { key: 5 }, [
|
|
1635
|
+
b("rect", {
|
|
1636
|
+
x: Y.value.left[0].x,
|
|
1637
|
+
y: Dr.value,
|
|
1638
|
+
rx: q.value.height / 2,
|
|
1639
|
+
width: Y.value.width,
|
|
1640
|
+
height: q.value.height,
|
|
1641
|
+
fill: q.value.gutterColor
|
|
1642
|
+
}, null, 8, et),
|
|
1643
|
+
b("defs", null, [b("clipPath", { id: kr.value }, [b("rect", {
|
|
1644
|
+
x: Y.value.left[0].x,
|
|
1645
|
+
y: Dr.value,
|
|
1646
|
+
width: Y.value.width * wr.value,
|
|
1647
|
+
height: q.value.height,
|
|
1648
|
+
rx: Math.min(q.value.height / 2, Y.value.width * wr.value / 2),
|
|
1649
|
+
ry: Math.min(q.value.height / 2, Y.value.width * wr.value / 2)
|
|
1650
|
+
}, null, 8, nt)], 8, tt)]),
|
|
1651
|
+
b("g", { "clip-path": `url(#${kr.value})` }, [(w(!0), y(g, null, ge(Cr.value, (e) => (w(), y("rect", {
|
|
1652
|
+
key: `bar_fill_${e.id}`,
|
|
1653
|
+
width: Y.value.width * e.proportion,
|
|
1654
|
+
x: Y.value.left[0].x + Y.value.width * e.proportionStart,
|
|
1655
|
+
y: V.value.height + 32 + q.value.paddingTop,
|
|
1656
|
+
fill: e.color,
|
|
1657
|
+
height: q.value.height,
|
|
1658
|
+
onPointerenter: (t) => In(e),
|
|
1659
|
+
onPointerleave: (t) => Ln(e)
|
|
1660
|
+
}, null, 40, it))), 128))], 8, rt),
|
|
1661
|
+
(w(!0), y(g, null, ge(Cr.value.slice(1), (e) => (w(), y("line", {
|
|
1662
|
+
key: `bar_separator_${e.id}`,
|
|
1663
|
+
x1: Y.value.left[0].x + Y.value.width * e.proportionStart,
|
|
1664
|
+
x2: Y.value.left[0].x + Y.value.width * e.proportionStart,
|
|
1665
|
+
y1: V.value.height + 32 + q.value.paddingTop,
|
|
1666
|
+
y2: V.value.height + 32 + q.value.paddingTop + q.value.height,
|
|
1667
|
+
stroke: q.value.stroke,
|
|
1668
|
+
"stroke-width": q.value.strokeWidth,
|
|
1669
|
+
"vector-effect": "non-scaling-stroke"
|
|
1670
|
+
}, null, 8, at))), 128)),
|
|
1671
|
+
b("rect", {
|
|
1672
|
+
x: Y.value.left[0].x,
|
|
1673
|
+
y: V.value.height + 32 + q.value.paddingTop,
|
|
1674
|
+
width: Y.value.width * wr.value,
|
|
1675
|
+
height: q.value.height,
|
|
1676
|
+
rx: Math.min(q.value.height / 2, Y.value.width * wr.value / 2),
|
|
1677
|
+
ry: Math.min(q.value.height / 2, Y.value.width * wr.value / 2),
|
|
1678
|
+
fill: "none",
|
|
1679
|
+
stroke: q.value.stroke,
|
|
1680
|
+
"stroke-width": q.value.strokeWidth,
|
|
1681
|
+
"vector-effect": "non-scaling-stroke"
|
|
1682
|
+
}, null, 8, ot),
|
|
1683
|
+
q.value.label.show && wr.value > 0 ? (w(), y("text", {
|
|
1684
|
+
key: 0,
|
|
1685
|
+
x: Er.value,
|
|
1686
|
+
y: Dr.value - 6,
|
|
1687
|
+
fill: q.value.label.color,
|
|
1688
|
+
"font-size": q.value.label.fontSize,
|
|
1689
|
+
"text-anchor": "end",
|
|
1690
|
+
"dominant-baseline": "auto",
|
|
1691
|
+
"pointer-events": "none",
|
|
1692
|
+
style: { "user-select": "none" }
|
|
1693
|
+
}, D(Or()), 9, st)) : v("", !0)
|
|
1694
|
+
], 64)) : v("", !0),
|
|
1695
|
+
E(e.$slots, "svg", { svg: {
|
|
1696
|
+
drawingArea: Y.value,
|
|
1697
|
+
isEditing: I.value,
|
|
1698
|
+
datapoints: Yn.value,
|
|
1699
|
+
isPrintingImg: O(Ft) || O(It) || O(_r),
|
|
1700
|
+
isPrintingSvg: O(vr)
|
|
1701
|
+
} }, void 0, !0)
|
|
1702
|
+
], 46, Te)),
|
|
1703
|
+
Zn.value ? (w(), y("div", {
|
|
1704
|
+
ref_key: "overflowMenuRef",
|
|
1705
|
+
ref: Tt,
|
|
1706
|
+
key: `stack-overflow-menu-${Zn.value.stackId}`,
|
|
1707
|
+
class: "vue-ui-hill__stack-overflow-menu",
|
|
1708
|
+
"data-stack-overflow-menu": "",
|
|
1709
|
+
"data-dom-to-png-ignore": "",
|
|
1710
|
+
style: C([Qn.value, fn.value]),
|
|
1711
|
+
role: "listbox",
|
|
1712
|
+
"aria-label": `Choose one of ${Zn.value.hiddenCount} stacked datapoints`,
|
|
1713
|
+
onPointerdown: t[1] ||= A(() => {}, ["stop"]),
|
|
1714
|
+
onClick: t[2] ||= A(() => {}, ["stop"]),
|
|
1715
|
+
onKeydown: be(A(rr, ["prevent", "stop"]), ["esc"])
|
|
1716
|
+
}, [P.value.style.chart.layout.plots.stacking.overflow.menu.title ? (w(), y("div", lt, D(P.value.style.chart.layout.plots.stacking.overflow.menu.title), 1)) : v("", !0), (w(!0), y(g, null, ge(Zn.value.hiddenDatapoints, (e) => (w(), y("button", {
|
|
1717
|
+
key: `hidden-${e.id}`,
|
|
1718
|
+
type: "button",
|
|
1719
|
+
class: pe(["vue-ui-hill__stack-overflow-menu-item", { readonly: P.value.readonly }]),
|
|
1720
|
+
role: "option",
|
|
1721
|
+
disabled: e.disabled,
|
|
1722
|
+
"aria-label": `${e.label}, ${pr(e)}`,
|
|
1723
|
+
onClick: A((t) => lr(e), ["stop"]),
|
|
1724
|
+
style: C({ cursor: zt.value && !P.value.readonly ? "pointer" : "default" })
|
|
1725
|
+
}, [
|
|
1726
|
+
b("span", {
|
|
1727
|
+
class: "vue-ui-hill__stack-overflow-menu-swatch",
|
|
1728
|
+
style: C({ backgroundColor: e.color }),
|
|
1729
|
+
"aria-hidden": "true"
|
|
1730
|
+
}, null, 4),
|
|
1731
|
+
b("span", dt, D(O(o)(e.label, W.value.ellipsisThresholdChars)), 1),
|
|
1732
|
+
b("span", ft, D(pr(e)), 1)
|
|
1733
|
+
], 14, ut))), 128))], 44, ct)) : v("", !0),
|
|
1734
|
+
E(e.$slots, "analysis", { data: { ...Cr.value } }, void 0, !0),
|
|
1735
|
+
e.$slots.watermark ? (w(), y("div", pt, [E(e.$slots, "watermark", S(x({ isPrinting: O(Ft) || O(It) || O(_r) || O(vr) })), void 0, !0)])) : v("", !0),
|
|
1736
|
+
P.value.loading ? (w(), y("div", mt, [P.value.loading ? E(e.$slots, "loading", {}, () => [ue(O(yt), {
|
|
1737
|
+
name: "spinner2",
|
|
1738
|
+
stroke: P.value.style.chart.color,
|
|
1739
|
+
"is-spin": !0
|
|
1740
|
+
}, null, 8, ["stroke"])], !0, 0) : v("", !0)])) : v("", !0)
|
|
1741
|
+
], 44, Se));
|
|
1742
|
+
}
|
|
1743
|
+
}, [["__scopeId", "data-v-3c476fa7"]]);
|
|
1744
|
+
//#endregion
|
|
1745
|
+
export { xe as n, ht as t };
|