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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { Gt as t, Jt as n, S as r, q as i, t as a, xt as o } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as s } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as c } from "./useConfig-
|
|
4
|
+
import { t as c } from "./useConfig-DlNpz6P8.js";
|
|
5
5
|
import { t as l } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as u, t as d } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as f } from "./
|
|
8
|
-
import { t as p } from "./
|
|
9
|
-
import { t as ee } from "./
|
|
7
|
+
import { t as f } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as p } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ee } from "./useChartExport-DNiwdPmb.js";
|
|
10
10
|
import { t as te } from "./img-Bnokohej.js";
|
|
11
11
|
import { n as ne } from "./Title-BE3qg9xl.js";
|
|
12
12
|
import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
@@ -18,14 +18,14 @@ import { t as le } from "./usePanZoom-CYU3B4T3.js";
|
|
|
18
18
|
import { t as ue } from "./BaseZoomControls-BZvCnZEi.js";
|
|
19
19
|
import { t as de } from "./geoProjections-CEo3dVaL.js";
|
|
20
20
|
import { t as fe } from "./vue_ui_geo-B8TODs-G.js";
|
|
21
|
-
import { Fragment as pe, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as me, createVNode as he, defineAsyncComponent as ge, guardReactiveProps as y, mergeProps as _e, nextTick as
|
|
21
|
+
import { Fragment as pe, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as me, createVNode as he, defineAsyncComponent as ge, guardReactiveProps as y, mergeProps as _e, nextTick as ve, normalizeClass as ye, normalizeProps as b, normalizeStyle as be, onBeforeUnmount as xe, onMounted as Se, openBlock as x, ref as S, renderList as Ce, renderSlot as C, toDisplayString as we, toRefs as Te, unref as w, watch as T, withCtx as E } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-geo.vue
|
|
23
|
-
var
|
|
23
|
+
var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke = { style: { position: "relative" } }, Ae = [
|
|
24
24
|
"xmlns",
|
|
25
25
|
"viewBox",
|
|
26
26
|
"aria-describedby",
|
|
27
27
|
"id"
|
|
28
|
-
],
|
|
28
|
+
], je = ["transform"], Me = [
|
|
29
29
|
"d",
|
|
30
30
|
"fill",
|
|
31
31
|
"stroke",
|
|
@@ -33,14 +33,14 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
33
33
|
"onMouseenter",
|
|
34
34
|
"onMouseleave",
|
|
35
35
|
"onClick"
|
|
36
|
-
],
|
|
36
|
+
], Ne = [
|
|
37
37
|
"d",
|
|
38
38
|
"stroke",
|
|
39
39
|
"stroke-width",
|
|
40
40
|
"onMouseenter",
|
|
41
41
|
"onMouseleave",
|
|
42
42
|
"onClick"
|
|
43
|
-
],
|
|
43
|
+
], Pe = [
|
|
44
44
|
"cx",
|
|
45
45
|
"cy",
|
|
46
46
|
"r",
|
|
@@ -48,7 +48,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
48
48
|
"stroke",
|
|
49
49
|
"stroke-width",
|
|
50
50
|
"onMouseenter"
|
|
51
|
-
],
|
|
51
|
+
], Fe = [
|
|
52
52
|
"cx",
|
|
53
53
|
"cy",
|
|
54
54
|
"r",
|
|
@@ -58,12 +58,12 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
58
58
|
"onMouseenter",
|
|
59
59
|
"onMouseleave",
|
|
60
60
|
"onClick"
|
|
61
|
-
],
|
|
61
|
+
], Ie = [
|
|
62
62
|
"x",
|
|
63
63
|
"y",
|
|
64
64
|
"fill",
|
|
65
65
|
"font-size"
|
|
66
|
-
],
|
|
66
|
+
], Le = {
|
|
67
67
|
key: 0,
|
|
68
68
|
style: {
|
|
69
69
|
position: "absolute",
|
|
@@ -73,10 +73,10 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
73
73
|
},
|
|
74
74
|
"data-dom-to-png-ignore": "",
|
|
75
75
|
"aria-hidden": "true"
|
|
76
|
-
},
|
|
76
|
+
}, Re = {
|
|
77
77
|
key: 6,
|
|
78
78
|
class: "vue-data-ui-watermark"
|
|
79
|
-
},
|
|
79
|
+
}, ze = 1.5, Be = /*#__PURE__*/ re({
|
|
80
80
|
__name: "vue-ui-geo",
|
|
81
81
|
props: {
|
|
82
82
|
config: {
|
|
@@ -93,34 +93,34 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
emits: ["copyAlt"],
|
|
96
|
-
setup(e, { expose: re, emit:
|
|
97
|
-
let
|
|
96
|
+
setup(e, { expose: re, emit: Ee }) {
|
|
97
|
+
let Be = ge(() => import("./Tooltip-DhjyfHwz.js")), Ve = ge(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), He = ge(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Ue = ge(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), D = e, We = Ee, { vue_ui_geo: Ge } = c(), { isThemeValid: Ke, warnInvalidTheme: qe } = p(), O = S(i()), Je = S(0), Ye = S(0), k = S(null), A = S(!1), j = S(null), Xe = S(null), Ze = S(null), Qe = S(null), M = S(null), N = S(null), $e = S(null), et = S(null), P = S(null), tt = S({
|
|
98
98
|
x: 0,
|
|
99
99
|
y: 0
|
|
100
|
-
}), F =
|
|
101
|
-
function
|
|
102
|
-
I.value = e,
|
|
100
|
+
}), F = S("pointer"), nt = S(!1), I = S(!1);
|
|
101
|
+
function rt(e) {
|
|
102
|
+
I.value = e, Je.value += 1;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
let e =
|
|
106
|
-
userConfig:
|
|
107
|
-
defaultConfig:
|
|
104
|
+
function it() {
|
|
105
|
+
let e = f({
|
|
106
|
+
userConfig: D.config,
|
|
107
|
+
defaultConfig: Ge
|
|
108
108
|
}), t = e.theme;
|
|
109
109
|
if (!t) return e;
|
|
110
|
-
if (!
|
|
111
|
-
let n =
|
|
112
|
-
userConfig: fe[t] ||
|
|
110
|
+
if (!Ke.value(e)) return qe(e), e;
|
|
111
|
+
let n = f({
|
|
112
|
+
userConfig: fe[t] || D.config,
|
|
113
113
|
defaultConfig: e
|
|
114
114
|
});
|
|
115
|
-
return
|
|
116
|
-
userConfig:
|
|
115
|
+
return f({
|
|
116
|
+
userConfig: D.config,
|
|
117
117
|
defaultConfig: n
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
let L =
|
|
120
|
+
let L = S(it());
|
|
121
121
|
s({
|
|
122
122
|
config: () => L.value,
|
|
123
|
-
dataset: () =>
|
|
123
|
+
dataset: () => D.dataset,
|
|
124
124
|
component: "VueUiGeo",
|
|
125
125
|
rules: [{
|
|
126
126
|
test: (e) => e.length > 100,
|
|
@@ -131,7 +131,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
131
131
|
]
|
|
132
132
|
}]
|
|
133
133
|
});
|
|
134
|
-
let
|
|
134
|
+
let at = m(() => L.value.userOptions.useCursorPointer), { userOptionsVisible: ot, keepUserOptionState: st } = se({ config: L.value }), { svgRef: R } = ce({ config: L.value.style.chart.title }), ct = m(() => n({
|
|
135
135
|
defaultConfig: {
|
|
136
136
|
map: { geoJson: {
|
|
137
137
|
type: "FeatureCollection",
|
|
@@ -205,59 +205,59 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
205
205
|
} }
|
|
206
206
|
},
|
|
207
207
|
userConfig: L.value.skeletonConfig ?? {}
|
|
208
|
-
})), { loading:
|
|
209
|
-
...
|
|
208
|
+
})), { loading: lt, FINAL_DATASET: ut } = u({
|
|
209
|
+
...Te(D),
|
|
210
210
|
FINAL_CONFIG: L,
|
|
211
|
-
prepareConfig:
|
|
211
|
+
prepareConfig: it,
|
|
212
212
|
allowEmptyDataset: !0,
|
|
213
|
-
skeletonDataset:
|
|
213
|
+
skeletonDataset: D.config?.skeletonDataset ?? [],
|
|
214
214
|
skeletonConfig: n({
|
|
215
215
|
defaultConfig: L.value,
|
|
216
|
-
userConfig:
|
|
216
|
+
userConfig: ct.value
|
|
217
217
|
})
|
|
218
|
-
}), { isPrinting:
|
|
219
|
-
elementId: `vue-ui-geo_${
|
|
218
|
+
}), { isPrinting: dt, isImaging: ft, generatePdf: pt, generateImage: mt } = l({
|
|
219
|
+
elementId: `vue-ui-geo_${O.value}`,
|
|
220
220
|
fileName: L.value.style.chart.title.text || "vue-ui-geo",
|
|
221
221
|
options: L.value.userOptions.print
|
|
222
|
-
}),
|
|
223
|
-
function
|
|
222
|
+
}), ht = m(() => L.value.style.chart.controls.show ? L.value.style.chart.controls.position === "top" ? $e.value?.$el ?? null : L.value.style.chart.controls.position === "bottom" ? et.value?.$el ?? null : null : null);
|
|
223
|
+
function gt() {
|
|
224
224
|
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect(), M.value = null, N.value = null);
|
|
225
225
|
}
|
|
226
226
|
let z = m(() => !!L.value.responsive && !I.value);
|
|
227
|
-
|
|
227
|
+
T(() => I.value, async (e) => {
|
|
228
228
|
if (e) {
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
gt(), V.value = Number(L.value.style.chart.dimensions.width) || V.value, H.value = Number(L.value.style.chart.dimensions.height) || H.value, await ve(), A.value = !1, requestAnimationFrame(() => {
|
|
230
|
+
A.value || en();
|
|
231
231
|
});
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
L.value.responsive && (await
|
|
234
|
+
L.value.responsive && (await ve(), _t());
|
|
235
235
|
});
|
|
236
|
-
function
|
|
237
|
-
if (
|
|
236
|
+
function _t() {
|
|
237
|
+
if (gt(), !z.value) return;
|
|
238
238
|
let e = ie(() => {
|
|
239
|
-
if (!
|
|
239
|
+
if (!k.value) return;
|
|
240
240
|
let { width: e, height: t } = ae({
|
|
241
|
-
chart:
|
|
242
|
-
noTitle:
|
|
243
|
-
title: L.value.style.chart.title.text ?
|
|
244
|
-
legend:
|
|
245
|
-
source:
|
|
241
|
+
chart: k.value,
|
|
242
|
+
noTitle: vt.value ? Ze.value : null,
|
|
243
|
+
title: L.value.style.chart.title.text ? Xe.value : null,
|
|
244
|
+
legend: ht.value,
|
|
245
|
+
source: Qe.value
|
|
246
246
|
});
|
|
247
247
|
requestAnimationFrame(() => {
|
|
248
248
|
V.value = Math.max(.1, Number(e) || .1), H.value = Math.max(.1, Number(t) || .1) - 24;
|
|
249
249
|
});
|
|
250
250
|
});
|
|
251
|
-
M.value = new ResizeObserver(e), N.value =
|
|
251
|
+
M.value = new ResizeObserver(e), N.value = k.value ? k.value.parentNode : null, N.value && M.value.observe(N.value), e();
|
|
252
252
|
}
|
|
253
|
-
let
|
|
254
|
-
|
|
255
|
-
L.value =
|
|
253
|
+
let vt = m(() => L.value.userOptions.show && !L.value.style.chart.title.text), yt = S({ showTooltip: L.value.style.chart.tooltip.show }), B = S(L.value.style.chart.zoom.active);
|
|
254
|
+
T(() => D.config, () => {
|
|
255
|
+
L.value = it(), yt.value.showTooltip = L.value.style.chart.tooltip.show, B.value = L.value.style.chart.zoom.active, V.value = L.value.style.chart.dimensions.width, H.value = L.value.style.chart.dimensions.height, _t(), Ye.value += 1, Je.value += 1;
|
|
256
256
|
}, { deep: !0 });
|
|
257
|
-
let { projections:
|
|
258
|
-
let e =
|
|
259
|
-
return typeof e == "function" ? e :
|
|
260
|
-
}),
|
|
257
|
+
let { projections: bt } = de, xt = m(() => L.value?.projection || "equirectangular"), St = m(() => {
|
|
258
|
+
let e = bt?.[xt.value];
|
|
259
|
+
return typeof e == "function" ? e : bt.equirectangular;
|
|
260
|
+
}), Ct = m(() => L.value.map.geoJson ?? null), wt = {
|
|
261
261
|
aitoff: {
|
|
262
262
|
width: 1e3,
|
|
263
263
|
height: 500
|
|
@@ -310,14 +310,14 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
310
310
|
width: 1e3,
|
|
311
311
|
height: 1e3
|
|
312
312
|
}
|
|
313
|
-
}, V =
|
|
314
|
-
let e =
|
|
313
|
+
}, V = S(L.value.style.chart.dimensions.width), H = S(L.value.style.chart.dimensions.height), Tt = m(() => {
|
|
314
|
+
let e = wt[xt.value] || wt.equirectangular;
|
|
315
315
|
return {
|
|
316
316
|
width: e.width,
|
|
317
317
|
height: e.height
|
|
318
318
|
};
|
|
319
319
|
}), U = m(() => {
|
|
320
|
-
let e =
|
|
320
|
+
let e = Tt.value, t = V.value, n = H.value, r = Number.isFinite(t) && t > 0, i = Number.isFinite(n) && n > 0;
|
|
321
321
|
return r && i ? {
|
|
322
322
|
width: t,
|
|
323
323
|
height: n
|
|
@@ -331,16 +331,16 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
331
331
|
width: e.width,
|
|
332
332
|
height: e.height
|
|
333
333
|
};
|
|
334
|
-
}),
|
|
334
|
+
}), Et = m(() => {
|
|
335
335
|
let e = L.value?.map?.center, t = [0, 0];
|
|
336
336
|
if (!Array.isArray(e) || e.length !== 2) return t;
|
|
337
337
|
let n = Number(e[0]), r = Number(e[1]);
|
|
338
338
|
return !Number.isFinite(n) || !Number.isFinite(r) ? t : [n, r];
|
|
339
339
|
});
|
|
340
340
|
function W([e, t]) {
|
|
341
|
-
return
|
|
341
|
+
return St.value([e, t], Tt.value.width, Tt.value.height, Et.value);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Dt(e, t = {}) {
|
|
344
344
|
let { defaultName: n = "", namePropertyCandidates: r = [
|
|
345
345
|
"name",
|
|
346
346
|
"nom",
|
|
@@ -454,7 +454,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
454
454
|
features: f
|
|
455
455
|
};
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Ot(e) {
|
|
458
458
|
let t = Array.isArray(e?.features) ? e.features : [];
|
|
459
459
|
function n(e) {
|
|
460
460
|
if (!e || typeof e != "object") return "";
|
|
@@ -487,18 +487,18 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
487
487
|
geometry: e.geometry,
|
|
488
488
|
properties: r,
|
|
489
489
|
name: i,
|
|
490
|
-
uid: `map-feature-${
|
|
490
|
+
uid: `map-feature-${O.value}-${t}`,
|
|
491
491
|
index: t
|
|
492
492
|
};
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
let
|
|
495
|
+
let kt = m(() => Dt(Ct.value, {
|
|
496
496
|
defaultName: "",
|
|
497
497
|
includeNullGeometries: !1
|
|
498
|
-
})),
|
|
499
|
-
function
|
|
498
|
+
})), At = m(() => Ot(kt.value));
|
|
499
|
+
function jt(e) {
|
|
500
500
|
if (!e || typeof e.type != "string") return "";
|
|
501
|
-
if (e.type === "GeometryCollection") return (Array.isArray(e.geometries) ? e.geometries : []).map((e) =>
|
|
501
|
+
if (e.type === "GeometryCollection") return (Array.isArray(e.geometries) ? e.geometries : []).map((e) => jt(e)).filter(Boolean).join(" ");
|
|
502
502
|
let t = (e) => {
|
|
503
503
|
if (!Array.isArray(e) || e.length < 2) return null;
|
|
504
504
|
let t = Number(e[0]), n = Number(e[1]);
|
|
@@ -516,34 +516,34 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
516
516
|
}).filter(Boolean).join(" ");
|
|
517
517
|
return e.type === "Polygon" ? r(e.coordinates) : e.type === "MultiPolygon" ? (e.coordinates || []).map(r).filter(Boolean).join(" ") : e.type === "LineString" ? n(e.coordinates) : e.type === "MultiLineString" ? (e.coordinates || []).map(n).filter(Boolean).join(" ") : "";
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
return e ? e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).flatMap((e) =>
|
|
519
|
+
function Mt(e) {
|
|
520
|
+
return e ? e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).flatMap((e) => Mt(e)) : e.type === "Point" ? Array.isArray(e.coordinates) ? [e.coordinates] : [] : e.type === "MultiPoint" && Array.isArray(e.coordinates) ? e.coordinates : [] : [];
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
return !e || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).some((e) =>
|
|
522
|
+
function Nt(e) {
|
|
523
|
+
return !e || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).some((e) => Nt(e)) : e.type === "Point" || e.type === "MultiPoint";
|
|
524
524
|
}
|
|
525
|
-
let
|
|
525
|
+
let Pt = m(() => At.value.filter((e) => {
|
|
526
526
|
let t = e.geometry;
|
|
527
527
|
return t ? t.type === "GeometryCollection" ? (Array.isArray(t.geometries) ? t.geometries : []).some((e) => e?.type === "Polygon" || e?.type === "MultiPolygon") : t.type === "Polygon" || t.type === "MultiPolygon" : !1;
|
|
528
|
-
})),
|
|
528
|
+
})), Ft = m(() => At.value.filter((e) => {
|
|
529
529
|
let t = e.geometry;
|
|
530
530
|
return t ? t.type === "GeometryCollection" ? (Array.isArray(t.geometries) ? t.geometries : []).some((e) => e?.type === "LineString" || e?.type === "MultiLineString") : t.type === "LineString" || t.type === "MultiLineString" : !1;
|
|
531
|
-
})),
|
|
531
|
+
})), It = m(() => At.value.filter((e) => {
|
|
532
532
|
let t = e.geometry;
|
|
533
|
-
return t ?
|
|
534
|
-
})),
|
|
535
|
-
let t =
|
|
533
|
+
return t ? Nt(t) : !1;
|
|
534
|
+
})), Lt = m(() => Pt.value.map((e) => {
|
|
535
|
+
let t = jt(e.geometry);
|
|
536
536
|
return t ? {
|
|
537
537
|
...e,
|
|
538
538
|
path: t
|
|
539
539
|
} : null;
|
|
540
|
-
}).filter(Boolean)),
|
|
541
|
-
let t =
|
|
540
|
+
}).filter(Boolean)), Rt = m(() => Ft.value.map((e) => {
|
|
541
|
+
let t = jt(e.geometry);
|
|
542
542
|
return t ? {
|
|
543
543
|
...e,
|
|
544
544
|
path: t
|
|
545
545
|
} : null;
|
|
546
|
-
}).filter(Boolean)),
|
|
546
|
+
}).filter(Boolean)), zt = m(() => {
|
|
547
547
|
let e = [];
|
|
548
548
|
function t(e = {}) {
|
|
549
549
|
let t = e?.style && typeof e.style == "object" ? e.style : {}, n = e.radius ?? e.r ?? t.radius ?? t.r, i = e.color ?? e.fill ?? t.color ?? t.fill, a = e.stroke ?? t.stroke, o = e.strokeWidth ?? e.stroke_width ?? t.strokeWidth ?? t.stroke_width;
|
|
@@ -554,8 +554,8 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
554
554
|
strokeWidth: Number.isFinite(Number(o)) ? Number(o) : Number(L.value.style.chart.points.strokeWidth)
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
for (let n of
|
|
558
|
-
let r =
|
|
557
|
+
for (let n of It.value) {
|
|
558
|
+
let r = Mt(n.geometry);
|
|
559
559
|
for (let i = 0; i < r.length; i += 1) {
|
|
560
560
|
let a = r[i];
|
|
561
561
|
if (!Array.isArray(a) || a.length < 2) continue;
|
|
@@ -578,7 +578,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
578
578
|
}
|
|
579
579
|
return e;
|
|
580
580
|
});
|
|
581
|
-
function
|
|
581
|
+
function Bt(e) {
|
|
582
582
|
if (!e || typeof e.type != "string") return [];
|
|
583
583
|
let t = [], n = (e) => {
|
|
584
584
|
if (!Array.isArray(e) || e.length < 2) return;
|
|
@@ -596,14 +596,14 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
598
|
if (e.type === "GeometryCollection" && Array.isArray(e.geometries)) {
|
|
599
|
-
for (let n of e.geometries) t.push(...
|
|
599
|
+
for (let n of e.geometries) t.push(...Bt(n));
|
|
600
600
|
return t;
|
|
601
601
|
}
|
|
602
602
|
return e.type === "Point" ? (n(e.coordinates), t) : e.type === "MultiPoint" ? ((e.coordinates || []).forEach(n), t) : (r(e.coordinates), t);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Vt(e) {
|
|
605
605
|
let t = [];
|
|
606
|
-
for (let n of e) t.push(...
|
|
606
|
+
for (let n of e) t.push(...Bt(n.geometry));
|
|
607
607
|
if (!t.length) return null;
|
|
608
608
|
let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
|
|
609
609
|
for (let [e, o] of t) e < n && (n = e), o < r && (r = o), e > i && (i = e), o > a && (a = o);
|
|
@@ -617,8 +617,8 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
617
617
|
height: s
|
|
618
618
|
};
|
|
619
619
|
}
|
|
620
|
-
let
|
|
621
|
-
function
|
|
620
|
+
let Ht = m(() => Vt(At.value));
|
|
621
|
+
function Ut({ bounds: e, targetWidth: t, targetHeight: n, padding: r }) {
|
|
622
622
|
if (!e || !(e.width > 0) || !(e.height > 0)) return {
|
|
623
623
|
scale: 1,
|
|
624
624
|
translateX: 0,
|
|
@@ -633,8 +633,8 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
633
633
|
transform: `translate(${ee} ${te}) scale(${l})`
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
let
|
|
637
|
-
let e =
|
|
636
|
+
let Wt = m(() => {
|
|
637
|
+
let e = Ht.value;
|
|
638
638
|
if (!e) return {
|
|
639
639
|
scale: 1,
|
|
640
640
|
translateX: 0,
|
|
@@ -642,29 +642,29 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
642
642
|
transform: ""
|
|
643
643
|
};
|
|
644
644
|
let t = L.value?.map?.fitPadding, n = Number.isFinite(Number(t)) ? Number(t) : 0;
|
|
645
|
-
return
|
|
645
|
+
return Ut({
|
|
646
646
|
bounds: e,
|
|
647
647
|
targetWidth: U.value.width,
|
|
648
648
|
targetHeight: U.value.height,
|
|
649
649
|
padding: n
|
|
650
650
|
});
|
|
651
|
-
}),
|
|
651
|
+
}), Gt = m(() => `0 0 ${U.value.width} ${U.value.height}`), { viewBox: Kt, resetZoom: qt, setInitialViewBox: Jt, scale: Yt, zoomByFactor: Xt } = le(R, {
|
|
652
652
|
x: 0,
|
|
653
653
|
y: 0,
|
|
654
654
|
width: U.value.width,
|
|
655
655
|
height: U.value.height
|
|
656
656
|
}, 1, B);
|
|
657
|
-
function
|
|
657
|
+
function Zt() {
|
|
658
658
|
B.value = !B.value;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
let t =
|
|
660
|
+
function Qt(e) {
|
|
661
|
+
let t = Wt.value, n = Number(t?.scale) || 1, r = Number(t?.translateX) || 0, i = Number(t?.translateY) || 0;
|
|
662
662
|
return {
|
|
663
663
|
x: e.x * n + r,
|
|
664
664
|
y: e.y * n + i
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function $t() {
|
|
668
668
|
let e = L.value?.map?.center, t = Number(e?.[0]), n = Number(e?.[1]), r = Array.isArray(e) && e.length === 2 && Number.isFinite(t) && Number.isFinite(n) && (t !== 0 || n !== 0), i = U.value.width, a = U.value.height;
|
|
669
669
|
if (!r) return {
|
|
670
670
|
x: 0,
|
|
@@ -679,7 +679,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
679
679
|
width: i,
|
|
680
680
|
height: a
|
|
681
681
|
};
|
|
682
|
-
let l =
|
|
682
|
+
let l = Qt({
|
|
683
683
|
x: s,
|
|
684
684
|
y: c
|
|
685
685
|
});
|
|
@@ -690,53 +690,53 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
690
690
|
height: a
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
function
|
|
694
|
-
let e =
|
|
695
|
-
|
|
693
|
+
function en() {
|
|
694
|
+
let e = $t();
|
|
695
|
+
Jt(e, { overwriteCurrentIfNotZoomed: !0 }), A.value = !0;
|
|
696
696
|
}
|
|
697
|
-
let
|
|
698
|
-
let e =
|
|
699
|
-
return e ? `${e.x} ${e.y} ${e.width} ${e.height}` :
|
|
697
|
+
let tn = m(() => {
|
|
698
|
+
let e = Kt.value;
|
|
699
|
+
return e ? `${e.x} ${e.y} ${e.width} ${e.height}` : Gt.value;
|
|
700
700
|
});
|
|
701
|
-
function
|
|
702
|
-
|
|
701
|
+
function nn() {
|
|
702
|
+
Xt(ze, !0);
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
|
|
704
|
+
function rn() {
|
|
705
|
+
Xt(1 / ze, !0);
|
|
706
706
|
}
|
|
707
|
-
async function
|
|
708
|
-
let e =
|
|
709
|
-
|
|
707
|
+
async function an() {
|
|
708
|
+
let e = $t();
|
|
709
|
+
Jt(e, { overwriteCurrentIfNotZoomed: !0 }), qt(!0);
|
|
710
710
|
}
|
|
711
|
-
|
|
711
|
+
T(() => [
|
|
712
712
|
L.value.projection,
|
|
713
713
|
L.value.map.center?.[0],
|
|
714
714
|
L.value.map.center?.[1],
|
|
715
715
|
L.value.map.fitPadding,
|
|
716
|
-
|
|
716
|
+
Ct.value
|
|
717
717
|
], async () => {
|
|
718
|
-
|
|
719
|
-
|
|
718
|
+
A.value = !1, await ve(), requestAnimationFrame(() => {
|
|
719
|
+
A.value || en();
|
|
720
720
|
});
|
|
721
|
-
}, { deep: !1 }),
|
|
721
|
+
}, { deep: !1 }), T(() => [
|
|
722
722
|
V.value,
|
|
723
723
|
H.value,
|
|
724
724
|
z.value
|
|
725
725
|
], async () => {
|
|
726
|
-
z.value && (await
|
|
726
|
+
z.value && (await ve(), Jt({
|
|
727
727
|
x: 0,
|
|
728
728
|
y: 0,
|
|
729
729
|
width: U.value.width,
|
|
730
730
|
height: U.value.height
|
|
731
|
-
}, { overwriteCurrentIfNotZoomed: !0 }),
|
|
732
|
-
|
|
731
|
+
}, { overwriteCurrentIfNotZoomed: !0 }), A.value = !1, requestAnimationFrame(() => {
|
|
732
|
+
A.value || en();
|
|
733
733
|
}));
|
|
734
734
|
}, { flush: "post" });
|
|
735
|
-
function
|
|
735
|
+
function on(e) {
|
|
736
736
|
return e ? e.type === "FeatureCollection" && Array.isArray(e.features) ? e.features.filter((e) => e?.type === "Feature" && e.geometry?.type === "Point").map((e, t) => {
|
|
737
737
|
let n = e.properties || {}, r = n.name || n.label || n.title || `Point ${t + 1}`, i = e.geometry.coordinates;
|
|
738
738
|
return {
|
|
739
|
-
uid: `map-point-${
|
|
739
|
+
uid: `map-point-${O.value}-${t}`,
|
|
740
740
|
name: r,
|
|
741
741
|
coordinates: i,
|
|
742
742
|
color: n.color ?? null,
|
|
@@ -751,7 +751,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
751
751
|
Array.isArray(e) && e.length >= 2 ? n = [Number(e[0]), Number(e[1])] : e && typeof e == "object" && (Array.isArray(e.coordinates) && e.coordinates.length >= 2 ? n = [Number(e.coordinates[0]), Number(e.coordinates[1])] : Number.isFinite(Number(e.lon)) && Number.isFinite(Number(e.lat)) && (n = [Number(e.lon), Number(e.lat)]), typeof e.name == "string" && e.name.trim() && (r = e.name), e.description != null && (i = e.description), e.color != null && (a = e.color), e.radius != null && (o = e.radius));
|
|
752
752
|
let s = n ? n[0] : NaN, c = n ? n[1] : NaN;
|
|
753
753
|
return !Number.isFinite(s) || !Number.isFinite(c) ? null : {
|
|
754
|
-
uid: `map-point-${
|
|
754
|
+
uid: `map-point-${O.value}-${t}`,
|
|
755
755
|
name: r,
|
|
756
756
|
coordinates: [s, c],
|
|
757
757
|
color: a,
|
|
@@ -767,7 +767,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
767
767
|
if (!r || r.length < 2) return null;
|
|
768
768
|
let i = Number(r[0]), a = Number(r[1]);
|
|
769
769
|
return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
|
|
770
|
-
uid: `map-point-${
|
|
770
|
+
uid: `map-point-${O.value}-${n}-${e}`,
|
|
771
771
|
name: t.name || e,
|
|
772
772
|
coordinates: [i, a],
|
|
773
773
|
color: t.color ?? null,
|
|
@@ -779,7 +779,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
779
779
|
};
|
|
780
780
|
}).filter(Boolean) : [] : [];
|
|
781
781
|
}
|
|
782
|
-
let
|
|
782
|
+
let sn = m(() => on(ut.value)), cn = m(() => sn.value.map((e) => {
|
|
783
783
|
let t = W(e.coordinates), n = t?.[0], i = t?.[1];
|
|
784
784
|
return !Number.isFinite(n) || !Number.isFinite(i) ? null : {
|
|
785
785
|
...e,
|
|
@@ -788,44 +788,44 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
788
788
|
fill: e.color ? r(e.color) : L.value.style.chart.points.fill,
|
|
789
789
|
radius: Number.isFinite(Number(e.radius)) ? Number(e.radius) : L.value.style.chart.points.radius
|
|
790
790
|
};
|
|
791
|
-
}).filter(Boolean)), G = m(() =>
|
|
791
|
+
}).filter(Boolean)), G = m(() => cn.value.map((e, t) => ({
|
|
792
792
|
...e,
|
|
793
793
|
keyboardIndex: t
|
|
794
794
|
})));
|
|
795
|
-
function
|
|
796
|
-
let n =
|
|
797
|
-
r && (
|
|
795
|
+
function ln(e) {
|
|
796
|
+
let n = Qt(e), r = t(n.x, n.y, R.value);
|
|
797
|
+
r && (tt.value = {
|
|
798
798
|
x: r.x,
|
|
799
799
|
y: r.y
|
|
800
800
|
});
|
|
801
801
|
}
|
|
802
|
-
let
|
|
803
|
-
function
|
|
804
|
-
|
|
802
|
+
let un = S(!1), dn = S(""), K = S(!1), q = S(null), J = S(null);
|
|
803
|
+
function fn(e) {
|
|
804
|
+
dn.value = e, un.value = !0;
|
|
805
805
|
}
|
|
806
806
|
function Y() {
|
|
807
|
-
|
|
807
|
+
un.value = !1, dn.value = "";
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function pn(e) {
|
|
810
810
|
return String(e ?? "").replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
|
|
812
|
+
function mn(e) {
|
|
813
|
+
j.value = {
|
|
814
814
|
datapoint: e,
|
|
815
815
|
seriesIndex: e.index,
|
|
816
|
-
series:
|
|
816
|
+
series: sn.value,
|
|
817
817
|
config: L.value
|
|
818
818
|
}, K.value = !1;
|
|
819
819
|
let t = L.value.style.chart.tooltip.customFormat;
|
|
820
820
|
if (o(t)) try {
|
|
821
|
-
let e = t(
|
|
821
|
+
let e = t(j.value);
|
|
822
822
|
if (typeof e == "string") return K.value = !0, e;
|
|
823
823
|
} catch {
|
|
824
824
|
console.warn("Custom format cannot be applied."), K.value = !1;
|
|
825
825
|
}
|
|
826
|
-
return `<div><div style="font-weight:600">${
|
|
826
|
+
return `<div><div style="font-weight:600">${pn(e.name)}</div>${e.description == null ? "" : `<div style="margin-top:6px">${pn(e.description)}</div>`}</div>`;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function hn(e) {
|
|
829
829
|
K.value = !1;
|
|
830
830
|
let t = L.value.style.chart.tooltip.customFormat;
|
|
831
831
|
if (o(t)) try {
|
|
@@ -838,9 +838,9 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
838
838
|
console.warn("Custom format cannot be applied."), K.value = !1;
|
|
839
839
|
}
|
|
840
840
|
let n = typeof e?.name == "string" ? e.name.trim() : "";
|
|
841
|
-
return n ? `<div><div style="font-weight:600">${
|
|
841
|
+
return n ? `<div><div style="font-weight:600">${pn(n)}</div></div>` : (K.value = !1, "");
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function gn(e) {
|
|
844
844
|
if (L.value.events.territoryEnter && L.value.events.territoryEnter({
|
|
845
845
|
datapoint: e,
|
|
846
846
|
seriesIndex: e.index
|
|
@@ -848,41 +848,41 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
848
848
|
J.value = null, Y();
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
|
-
J.value = e.uid,
|
|
851
|
+
J.value = e.uid, fn(hn(e));
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function _n(e) {
|
|
854
854
|
J.value = null, Y(), L.value.events.territoryLeave && L.value.events.territoryLeave({
|
|
855
855
|
datapoint: e,
|
|
856
856
|
seriesIndex: e.index
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function vn(e) {
|
|
860
860
|
L.value.events.territoryClick && L.value.events.territoryClick({
|
|
861
861
|
datapoint: e,
|
|
862
862
|
seriesIndex: e.index
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
F.value = n, q.value = e.uid, Number.isInteger(t) && (P.value = t), n === "keyboard" &&
|
|
865
|
+
function yn(e, t = null, n = "pointer") {
|
|
866
|
+
F.value = n, q.value = e.uid, Number.isInteger(t) && (P.value = t), n === "keyboard" && ln(e), fn(mn(e)), L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
867
867
|
datapoint: e,
|
|
868
868
|
seriesIndex: e.index
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function bn(e, t = "pointer") {
|
|
872
872
|
(t !== "pointer" || F.value !== "keyboard") && (q.value = null, Y(), t !== "pointer" && (P.value = null, F.value = "pointer"), L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
873
873
|
datapoint: e,
|
|
874
874
|
seriesIndex: e.index
|
|
875
875
|
}));
|
|
876
876
|
}
|
|
877
|
-
let
|
|
878
|
-
function
|
|
879
|
-
|
|
877
|
+
let xn = m(() => !!L.value.events.datapointClick && typeof L.value.events.datapointClick == "function");
|
|
878
|
+
function Sn(e) {
|
|
879
|
+
xn.value && L.value.events.datapointClick({
|
|
880
880
|
datapoint: e,
|
|
881
881
|
seriesIndex: e.index
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
|
-
let X = m(() => L.value.style.chart.territory),
|
|
885
|
-
function
|
|
884
|
+
let X = m(() => L.value.style.chart.territory), Cn = m(() => L.value.style.chart.points);
|
|
885
|
+
function wn(e) {
|
|
886
886
|
let t = typeof e?.name == "string" ? e.name.trim() : "";
|
|
887
887
|
if (!t) {
|
|
888
888
|
J.value = null, Y();
|
|
@@ -894,59 +894,34 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
894
894
|
index: e.featureIndex,
|
|
895
895
|
properties: {}
|
|
896
896
|
};
|
|
897
|
-
J.value = e.uid,
|
|
897
|
+
J.value = e.uid, fn(hn(n));
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function Tn() {
|
|
900
900
|
J.value = null, Y();
|
|
901
901
|
}
|
|
902
|
-
let Z =
|
|
903
|
-
function
|
|
902
|
+
let Z = S(!1);
|
|
903
|
+
function En() {
|
|
904
904
|
Z.value = !Z.value;
|
|
905
905
|
}
|
|
906
|
-
|
|
906
|
+
T(() => Z.value, (e) => {
|
|
907
907
|
B.value = !e;
|
|
908
908
|
});
|
|
909
|
-
function
|
|
910
|
-
|
|
909
|
+
function Dn() {
|
|
910
|
+
yt.value.showTooltip = !yt.value.showTooltip;
|
|
911
911
|
}
|
|
912
|
-
let
|
|
912
|
+
let On = m(() => L.value.style.chart.backgroundColor), kn = m(() => L.value.style.chart.title), { isCallbackImaging: An, isCallbackSvg: jn, generateSvg: Mn, onGenerateImage: Nn } = ee({
|
|
913
913
|
svg: R,
|
|
914
|
-
title:
|
|
915
|
-
legend:
|
|
916
|
-
legendItems:
|
|
917
|
-
backgroundColor:
|
|
914
|
+
title: kn,
|
|
915
|
+
legend: null,
|
|
916
|
+
legendItems: null,
|
|
917
|
+
backgroundColor: On,
|
|
918
|
+
getSvgCallback: () => L.value.userOptions.callbacks.svg,
|
|
919
|
+
generateImage: mt
|
|
918
920
|
});
|
|
919
|
-
async function Pn({
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Nn();
|
|
924
|
-
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
925
|
-
blob: e,
|
|
926
|
-
url: t,
|
|
927
|
-
text: n,
|
|
928
|
-
dataUrl: r
|
|
929
|
-
}));
|
|
930
|
-
} else await Promise.resolve(Mn());
|
|
931
|
-
} finally {
|
|
932
|
-
Xe.value = !1;
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
function Fn(e) {
|
|
936
|
-
if (e?.stage === "start") {
|
|
937
|
-
Ye.value = !0;
|
|
938
|
-
return;
|
|
939
|
-
}
|
|
940
|
-
if (e?.stage === "end") {
|
|
941
|
-
Ye.value = !1;
|
|
942
|
-
return;
|
|
943
|
-
}
|
|
944
|
-
gt();
|
|
945
|
-
}
|
|
946
|
-
async function In({ scale: e = 2 } = {}) {
|
|
947
|
-
if (!A.value) return;
|
|
948
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await te({
|
|
949
|
-
domElement: A.value,
|
|
921
|
+
async function Pn({ scale: e = 2 } = {}) {
|
|
922
|
+
if (!k.value) return;
|
|
923
|
+
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await te({
|
|
924
|
+
domElement: k.value,
|
|
950
925
|
base64: !0,
|
|
951
926
|
img: !0,
|
|
952
927
|
scale: e
|
|
@@ -960,30 +935,30 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
960
935
|
aspectRatio: r
|
|
961
936
|
};
|
|
962
937
|
}
|
|
963
|
-
let Q =
|
|
964
|
-
function
|
|
938
|
+
let Q = S(!1), $ = null;
|
|
939
|
+
function Fn() {
|
|
965
940
|
B.value && (Q.value = !0);
|
|
966
941
|
}
|
|
967
|
-
function
|
|
942
|
+
function In() {
|
|
968
943
|
Q.value = !1;
|
|
969
944
|
}
|
|
970
|
-
function
|
|
945
|
+
function Ln() {
|
|
971
946
|
B.value && (Q.value = !0, $ && clearTimeout($), $ = setTimeout(() => {
|
|
972
947
|
Q.value = !1, $ = null;
|
|
973
948
|
}, 140));
|
|
974
949
|
}
|
|
975
|
-
|
|
950
|
+
xe(() => {
|
|
976
951
|
$ && clearTimeout($);
|
|
977
952
|
});
|
|
978
|
-
async function
|
|
953
|
+
async function Rn([e, t], { animated: n = !0 } = {}) {
|
|
979
954
|
let r = Number(e), i = Number(t);
|
|
980
955
|
if (!Number.isFinite(r) || !Number.isFinite(i)) return;
|
|
981
956
|
let a = W([r, i]), o = a?.[0], s = a?.[1];
|
|
982
957
|
if (!Number.isFinite(o) || !Number.isFinite(s)) return;
|
|
983
|
-
let c =
|
|
958
|
+
let c = Qt({
|
|
984
959
|
x: o,
|
|
985
960
|
y: s
|
|
986
|
-
}), l =
|
|
961
|
+
}), l = Kt.value ? { ...Kt.value } : {
|
|
987
962
|
x: 0,
|
|
988
963
|
y: 0,
|
|
989
964
|
width: U.value.width,
|
|
@@ -995,13 +970,13 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
995
970
|
height: l.height
|
|
996
971
|
};
|
|
997
972
|
if (!n) {
|
|
998
|
-
|
|
973
|
+
Kt.value = u;
|
|
999
974
|
return;
|
|
1000
975
|
}
|
|
1001
976
|
let d = { ...l }, f = { ...u }, p = null, ee = (e) => {
|
|
1002
977
|
p ??= e;
|
|
1003
978
|
let t = Math.min((e - p) / 250, 1);
|
|
1004
|
-
|
|
979
|
+
Kt.value = {
|
|
1005
980
|
x: d.x + (f.x - d.x) * t,
|
|
1006
981
|
y: d.y + (f.y - d.y) * t,
|
|
1007
982
|
width: d.width + (f.width - d.width) * t,
|
|
@@ -1010,27 +985,27 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1010
985
|
};
|
|
1011
986
|
requestAnimationFrame(ee);
|
|
1012
987
|
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
988
|
+
Se(async () => {
|
|
989
|
+
_t(), await ve(), requestAnimationFrame(() => {
|
|
990
|
+
A.value || (en(), (L.value.map.center?.[0] || L.value.map.center?.[1]) && Rn(L.value.map.center, { animated: !1 }));
|
|
1016
991
|
});
|
|
1017
|
-
}),
|
|
1018
|
-
|
|
992
|
+
}), xe(() => {
|
|
993
|
+
gt();
|
|
1019
994
|
});
|
|
1020
|
-
async function
|
|
1021
|
-
if (
|
|
995
|
+
async function zn() {
|
|
996
|
+
if (We("copyAlt", {
|
|
1022
997
|
config: L.value,
|
|
1023
|
-
dataset:
|
|
998
|
+
dataset: ut.value
|
|
1024
999
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
1025
1000
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1026
1001
|
return;
|
|
1027
1002
|
}
|
|
1028
1003
|
await Promise.resolve(L.value.userOptions.callbacks.altCopy({
|
|
1029
1004
|
config: L.value,
|
|
1030
|
-
dataset:
|
|
1005
|
+
dataset: ut.value
|
|
1031
1006
|
}));
|
|
1032
1007
|
}
|
|
1033
|
-
function
|
|
1008
|
+
function Bn(e, t) {
|
|
1034
1009
|
let n = G.value;
|
|
1035
1010
|
if (!n.length) return null;
|
|
1036
1011
|
let r = n[e];
|
|
@@ -1045,45 +1020,45 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1045
1020
|
}
|
|
1046
1021
|
return i;
|
|
1047
1022
|
}
|
|
1048
|
-
function
|
|
1023
|
+
function Vn(e) {
|
|
1049
1024
|
let t = G.value;
|
|
1050
1025
|
return t.length ? e === "right" ? t.reduce((e, t, n, r) => t.x < r[e].x ? n : e, 0) : e === "left" ? t.reduce((e, t, n, r) => t.x > r[e].x ? n : e, 0) : e === "down" ? t.reduce((e, t, n, r) => t.y < r[e].y ? n : e, 0) : e === "up" ? t.reduce((e, t, n, r) => t.y > r[e].y ? n : e, 0) : 0 : null;
|
|
1051
1026
|
}
|
|
1052
|
-
function
|
|
1053
|
-
|
|
1027
|
+
function Hn() {
|
|
1028
|
+
nt.value = !0;
|
|
1054
1029
|
}
|
|
1055
|
-
function
|
|
1030
|
+
function Un() {
|
|
1056
1031
|
let e = P.value == null ? null : G.value[P.value];
|
|
1057
|
-
e ?
|
|
1032
|
+
e ? bn(e, "keyboard") : (P.value = null, F.value = "pointer", Y(), q.value = null), nt.value = !1;
|
|
1058
1033
|
}
|
|
1059
|
-
function
|
|
1034
|
+
function Wn(e) {
|
|
1060
1035
|
if (!R.value || Z.value || document.activeElement !== R.value || !G.value.length) return;
|
|
1061
1036
|
let t = e.key === "ArrowRight", n = e.key === "ArrowLeft", r = e.key === "ArrowDown", i = e.key === "ArrowUp", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1062
1037
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
1063
1038
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1064
1039
|
let e = P.value == null ? null : G.value[P.value];
|
|
1065
|
-
e ?
|
|
1040
|
+
e ? bn(e, "keyboard") : (P.value = null, F.value = "pointer", Y(), q.value = null);
|
|
1066
1041
|
return;
|
|
1067
1042
|
}
|
|
1068
1043
|
if (a) {
|
|
1069
1044
|
let e = P.value == null ? null : G.value[P.value];
|
|
1070
1045
|
if (!e) return;
|
|
1071
|
-
|
|
1046
|
+
Sn(e);
|
|
1072
1047
|
return;
|
|
1073
1048
|
}
|
|
1074
1049
|
let s = t ? "right" : n ? "left" : r ? "down" : "up", c = null;
|
|
1075
|
-
if (P.value == null ? c =
|
|
1050
|
+
if (P.value == null ? c = Vn(s) : (c = Bn(P.value, s), c ??= Vn(s)), c == null) return;
|
|
1076
1051
|
let l = G.value[c];
|
|
1077
|
-
l &&
|
|
1052
|
+
l && yn(l, c, "keyboard");
|
|
1078
1053
|
}
|
|
1079
|
-
let
|
|
1054
|
+
let Gn = m(() => ({
|
|
1080
1055
|
headers: [
|
|
1081
1056
|
"Name",
|
|
1082
1057
|
"Latitude",
|
|
1083
1058
|
"Longitude",
|
|
1084
1059
|
"Description"
|
|
1085
1060
|
],
|
|
1086
|
-
rows:
|
|
1061
|
+
rows: sn.value.map((e) => {
|
|
1087
1062
|
let t = Array.isArray(e.coordinates) ? e.coordinates[1] : null, n = Array.isArray(e.coordinates) ? e.coordinates[0] : null;
|
|
1088
1063
|
return [
|
|
1089
1064
|
e.name ?? "",
|
|
@@ -1094,25 +1069,25 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1094
1069
|
})
|
|
1095
1070
|
}));
|
|
1096
1071
|
return re({
|
|
1097
|
-
getImage:
|
|
1098
|
-
generatePdf:
|
|
1099
|
-
generateImage:
|
|
1100
|
-
generateSvg:
|
|
1101
|
-
toggleTooltip:
|
|
1102
|
-
toggleAnnotator:
|
|
1103
|
-
toggleFullscreen:
|
|
1104
|
-
zoomIn:
|
|
1105
|
-
zoomOut:
|
|
1106
|
-
resetZoom:
|
|
1107
|
-
focusLocation:
|
|
1108
|
-
copyAlt:
|
|
1109
|
-
}), (e, t) => (
|
|
1110
|
-
class:
|
|
1072
|
+
getImage: Pn,
|
|
1073
|
+
generatePdf: pt,
|
|
1074
|
+
generateImage: mt,
|
|
1075
|
+
generateSvg: Mn,
|
|
1076
|
+
toggleTooltip: Dn,
|
|
1077
|
+
toggleAnnotator: En,
|
|
1078
|
+
toggleFullscreen: rt,
|
|
1079
|
+
zoomIn: nn,
|
|
1080
|
+
zoomOut: rn,
|
|
1081
|
+
resetZoom: qt,
|
|
1082
|
+
focusLocation: Rn,
|
|
1083
|
+
copyAlt: zn
|
|
1084
|
+
}), (e, t) => (x(), _("div", {
|
|
1085
|
+
class: ye(`vue-data-ui-component vue-ui-geo ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${z.value ? "vue-ui-geo-responsive" : ""} ${Q.value ? "vue-ui-geo-interacting" : ""}`),
|
|
1111
1086
|
ref_key: "geoChart",
|
|
1112
|
-
ref:
|
|
1113
|
-
id: `map_${
|
|
1087
|
+
ref: k,
|
|
1088
|
+
id: `map_${O.value}`,
|
|
1114
1089
|
dir: "auto",
|
|
1115
|
-
style:
|
|
1090
|
+
style: be({
|
|
1116
1091
|
fontFamily: L.value.style.fontFamily,
|
|
1117
1092
|
width: "100%",
|
|
1118
1093
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
@@ -1120,14 +1095,14 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1120
1095
|
})
|
|
1121
1096
|
}, [
|
|
1122
1097
|
v("div", {
|
|
1123
|
-
id: `chart-instructions-${
|
|
1098
|
+
id: `chart-instructions-${O.value}`,
|
|
1124
1099
|
class: "sr-only"
|
|
1125
|
-
}, [v("p", null,
|
|
1126
|
-
|
|
1100
|
+
}, [v("p", null, we(L.value.a11y.translations.keyboardNavigation), 1)], 8, Oe),
|
|
1101
|
+
Gn.value?.rows?.length ? (x(), h(oe, {
|
|
1127
1102
|
key: 0,
|
|
1128
|
-
uid:
|
|
1129
|
-
head:
|
|
1130
|
-
body:
|
|
1103
|
+
uid: O.value,
|
|
1104
|
+
head: Gn.value.headers,
|
|
1105
|
+
body: Gn.value.rows,
|
|
1131
1106
|
notice: L.value.a11y.translations.tableAvailable,
|
|
1132
1107
|
caption: L.value.a11y.translations.tableCaption
|
|
1133
1108
|
}, null, 8, [
|
|
@@ -1137,20 +1112,20 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1137
1112
|
"notice",
|
|
1138
1113
|
"caption"
|
|
1139
1114
|
])) : g("", !0),
|
|
1140
|
-
|
|
1115
|
+
vt.value ? (x(), _("div", {
|
|
1141
1116
|
key: 1,
|
|
1142
1117
|
ref_key: "noTitle",
|
|
1143
|
-
ref:
|
|
1118
|
+
ref: Ze,
|
|
1144
1119
|
class: "vue-data-ui-no-title-space",
|
|
1145
1120
|
style: "height:36px; width: 100%;background:transparent"
|
|
1146
1121
|
}, null, 512)) : g("", !0),
|
|
1147
|
-
L.value.style.chart.title.text ? (
|
|
1122
|
+
L.value.style.chart.title.text ? (x(), _("div", {
|
|
1148
1123
|
key: 2,
|
|
1149
1124
|
ref_key: "chartTitle",
|
|
1150
|
-
ref:
|
|
1125
|
+
ref: Xe,
|
|
1151
1126
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1152
|
-
}, [(
|
|
1153
|
-
key: `title_${
|
|
1127
|
+
}, [(x(), h(ne, {
|
|
1128
|
+
key: `title_${Ye.value}`,
|
|
1154
1129
|
config: {
|
|
1155
1130
|
title: {
|
|
1156
1131
|
cy: "geo-title",
|
|
@@ -1162,21 +1137,21 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1162
1137
|
}
|
|
1163
1138
|
}
|
|
1164
1139
|
}, null, 8, ["config"]))], 512)) : g("", !0),
|
|
1165
|
-
L.value.userOptions.buttons.annotator ? (
|
|
1140
|
+
L.value.userOptions.buttons.annotator ? (x(), h(w(He), {
|
|
1166
1141
|
key: 3,
|
|
1167
|
-
svgRef:
|
|
1142
|
+
svgRef: w(R),
|
|
1168
1143
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1169
1144
|
color: L.value.style.chart.color,
|
|
1170
1145
|
active: Z.value,
|
|
1171
|
-
isCursorPointer:
|
|
1172
|
-
onClose:
|
|
1146
|
+
isCursorPointer: at.value,
|
|
1147
|
+
onClose: En
|
|
1173
1148
|
}, {
|
|
1174
|
-
"annotator-action-close":
|
|
1175
|
-
"annotator-action-color":
|
|
1176
|
-
"annotator-action-draw":
|
|
1177
|
-
"annotator-action-undo":
|
|
1178
|
-
"annotator-action-redo":
|
|
1179
|
-
"annotator-action-delete":
|
|
1149
|
+
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1150
|
+
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
|
|
1151
|
+
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
|
|
1152
|
+
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
|
|
1153
|
+
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
|
|
1154
|
+
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
|
|
1180
1155
|
_: 3
|
|
1181
1156
|
}, 8, [
|
|
1182
1157
|
"svgRef",
|
|
@@ -1185,14 +1160,14 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1185
1160
|
"active",
|
|
1186
1161
|
"isCursorPointer"
|
|
1187
1162
|
])) : g("", !0),
|
|
1188
|
-
L.value.userOptions.show && (
|
|
1163
|
+
L.value.userOptions.show && (w(st) || w(ot)) ? (x(), h(w(Ve), {
|
|
1189
1164
|
ref: "userOptionsRef",
|
|
1190
|
-
key: `user_options_${
|
|
1165
|
+
key: `user_options_${Je.value}`,
|
|
1191
1166
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1192
1167
|
color: L.value.style.chart.color,
|
|
1193
|
-
isPrinting:
|
|
1194
|
-
isImaging:
|
|
1195
|
-
uid:
|
|
1168
|
+
isPrinting: w(dt),
|
|
1169
|
+
isImaging: w(ft),
|
|
1170
|
+
uid: O.value,
|
|
1196
1171
|
hasXls: !1,
|
|
1197
1172
|
hasTable: !1,
|
|
1198
1173
|
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.chart.tooltip.show,
|
|
@@ -1205,27 +1180,27 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1205
1180
|
hasZoom: L.value.userOptions.buttons.zoom,
|
|
1206
1181
|
isZoom: B.value,
|
|
1207
1182
|
isFullscreen: I.value,
|
|
1208
|
-
isTooltip:
|
|
1183
|
+
isTooltip: yt.value.showTooltip,
|
|
1209
1184
|
titles: { ...L.value.userOptions.buttonTitles },
|
|
1210
|
-
chartElement:
|
|
1185
|
+
chartElement: k.value,
|
|
1211
1186
|
position: L.value.userOptions.position,
|
|
1212
1187
|
isAnnotation: Z.value,
|
|
1213
1188
|
callbacks: L.value.userOptions.callbacks,
|
|
1214
1189
|
printScale: L.value.userOptions.print.scale,
|
|
1215
|
-
isCursorPointer:
|
|
1216
|
-
onToggleFullscreen:
|
|
1217
|
-
onGeneratePdf:
|
|
1218
|
-
onGenerateImage:
|
|
1219
|
-
onGenerateSvg:
|
|
1220
|
-
onToggleTooltip:
|
|
1221
|
-
onToggleAnnotator:
|
|
1222
|
-
onToggleZoom:
|
|
1223
|
-
onCopyAlt:
|
|
1224
|
-
style:
|
|
1190
|
+
isCursorPointer: at.value,
|
|
1191
|
+
onToggleFullscreen: rt,
|
|
1192
|
+
onGeneratePdf: w(pt),
|
|
1193
|
+
onGenerateImage: w(Nn),
|
|
1194
|
+
onGenerateSvg: w(Mn),
|
|
1195
|
+
onToggleTooltip: Dn,
|
|
1196
|
+
onToggleAnnotator: En,
|
|
1197
|
+
onToggleZoom: Zt,
|
|
1198
|
+
onCopyAlt: zn,
|
|
1199
|
+
style: be({ visibility: w(st) ? w(ot) ? "visible" : "hidden" : "visible" })
|
|
1225
1200
|
}, me({ _: 2 }, [
|
|
1226
1201
|
e.$slots.menuIcon ? {
|
|
1227
1202
|
name: "menuIcon",
|
|
1228
|
-
fn:
|
|
1203
|
+
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", b(y({
|
|
1229
1204
|
isOpen: t,
|
|
1230
1205
|
color: n
|
|
1231
1206
|
})), void 0, !0)]),
|
|
@@ -1233,27 +1208,27 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1233
1208
|
} : void 0,
|
|
1234
1209
|
e.$slots.optionTooltip ? {
|
|
1235
1210
|
name: "optionTooltip",
|
|
1236
|
-
fn:
|
|
1211
|
+
fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1237
1212
|
key: "1"
|
|
1238
1213
|
} : void 0,
|
|
1239
1214
|
e.$slots.optionPdf ? {
|
|
1240
1215
|
name: "optionPdf",
|
|
1241
|
-
fn:
|
|
1216
|
+
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1242
1217
|
key: "2"
|
|
1243
1218
|
} : void 0,
|
|
1244
1219
|
e.$slots.optionImg ? {
|
|
1245
1220
|
name: "optionImg",
|
|
1246
|
-
fn:
|
|
1221
|
+
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1247
1222
|
key: "3"
|
|
1248
1223
|
} : void 0,
|
|
1249
1224
|
e.$slots.optionSvg ? {
|
|
1250
1225
|
name: "optionSvg",
|
|
1251
|
-
fn:
|
|
1226
|
+
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1252
1227
|
key: "4"
|
|
1253
1228
|
} : void 0,
|
|
1254
1229
|
e.$slots.optionFullscreen ? {
|
|
1255
1230
|
name: "optionFullscreen",
|
|
1256
|
-
fn:
|
|
1231
|
+
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", b(y({
|
|
1257
1232
|
toggleFullscreen: t,
|
|
1258
1233
|
isFullscreen: n
|
|
1259
1234
|
})), void 0, !0)]),
|
|
@@ -1261,7 +1236,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1261
1236
|
} : void 0,
|
|
1262
1237
|
e.$slots.optionAnnotator ? {
|
|
1263
1238
|
name: "optionAnnotator",
|
|
1264
|
-
fn:
|
|
1239
|
+
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", b(y({
|
|
1265
1240
|
toggleAnnotator: t,
|
|
1266
1241
|
isAnnotator: n
|
|
1267
1242
|
})), void 0, !0)]),
|
|
@@ -1269,7 +1244,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1269
1244
|
} : void 0,
|
|
1270
1245
|
e.$slots.optionZoom ? {
|
|
1271
1246
|
name: "optionZoom",
|
|
1272
|
-
fn:
|
|
1247
|
+
fn: E(({ toggleZoom: t, isZoomLocked: n }) => [C(e.$slots, "optionZoom", b(y({
|
|
1273
1248
|
toggleZoom: t,
|
|
1274
1249
|
isZoomLocked: n
|
|
1275
1250
|
})), void 0, !0)]),
|
|
@@ -1277,72 +1252,46 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1277
1252
|
} : void 0,
|
|
1278
1253
|
e.$slots.optionAltCopy ? {
|
|
1279
1254
|
name: "optionAltCopy",
|
|
1280
|
-
fn:
|
|
1255
|
+
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
|
|
1281
1256
|
key: "8"
|
|
1282
1257
|
} : void 0,
|
|
1283
1258
|
e.$slots["custom-menu-before"] ? {
|
|
1284
1259
|
name: "custom-menu-before",
|
|
1285
|
-
fn:
|
|
1260
|
+
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1286
1261
|
key: "9"
|
|
1287
1262
|
} : void 0,
|
|
1288
1263
|
e.$slots["custom-menu-after"] ? {
|
|
1289
1264
|
name: "custom-menu-after",
|
|
1290
|
-
fn:
|
|
1265
|
+
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1291
1266
|
key: "10"
|
|
1292
1267
|
} : void 0
|
|
1293
|
-
]), 1032,
|
|
1294
|
-
|
|
1295
|
-
"color",
|
|
1296
|
-
"isPrinting",
|
|
1297
|
-
"isImaging",
|
|
1298
|
-
"uid",
|
|
1299
|
-
"hasTooltip",
|
|
1300
|
-
"hasPdf",
|
|
1301
|
-
"hasImg",
|
|
1302
|
-
"hasSvg",
|
|
1303
|
-
"hasFullscreen",
|
|
1304
|
-
"hasAltCopy",
|
|
1305
|
-
"hasAnnotator",
|
|
1306
|
-
"hasZoom",
|
|
1307
|
-
"isZoom",
|
|
1308
|
-
"isFullscreen",
|
|
1309
|
-
"isTooltip",
|
|
1310
|
-
"titles",
|
|
1311
|
-
"chartElement",
|
|
1312
|
-
"position",
|
|
1313
|
-
"isAnnotation",
|
|
1314
|
-
"callbacks",
|
|
1315
|
-
"printScale",
|
|
1316
|
-
"isCursorPointer",
|
|
1317
|
-
"onGeneratePdf",
|
|
1318
|
-
"style"
|
|
1319
|
-
])) : g("", !0),
|
|
1320
|
-
L.value.style.chart.controls.position === "top" && L.value.style.chart.controls.show && !T(dt) ? (S(), h(ue, {
|
|
1268
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasFullscreen.hasAltCopy.hasAnnotator.hasZoom.isZoom.isFullscreen.isTooltip.titles.chartElement.position.isAnnotation.callbacks.printScale.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : g("", !0),
|
|
1269
|
+
L.value.style.chart.controls.position === "top" && L.value.style.chart.controls.show && !w(lt) ? (x(), h(ue, {
|
|
1321
1270
|
key: 5,
|
|
1322
1271
|
ref_key: "zoomControlsTop",
|
|
1323
|
-
ref:
|
|
1272
|
+
ref: $e,
|
|
1324
1273
|
config: L.value,
|
|
1325
|
-
scale:
|
|
1274
|
+
scale: w(Yt),
|
|
1326
1275
|
isFullscreen: I.value,
|
|
1327
|
-
isCursorPointer:
|
|
1328
|
-
onZoomIn:
|
|
1329
|
-
onZoomOut:
|
|
1330
|
-
onResetZoom:
|
|
1276
|
+
isCursorPointer: at.value,
|
|
1277
|
+
onZoomIn: nn,
|
|
1278
|
+
onZoomOut: rn,
|
|
1279
|
+
onResetZoom: an
|
|
1331
1280
|
}, null, 8, [
|
|
1332
1281
|
"config",
|
|
1333
1282
|
"scale",
|
|
1334
1283
|
"isFullscreen",
|
|
1335
1284
|
"isCursorPointer"
|
|
1336
1285
|
])) : g("", !0),
|
|
1337
|
-
v("div",
|
|
1286
|
+
v("div", ke, [(x(), _("svg", {
|
|
1338
1287
|
ref_key: "svgRef",
|
|
1339
1288
|
ref: R,
|
|
1340
|
-
xmlns:
|
|
1341
|
-
viewBox:
|
|
1289
|
+
xmlns: w(a),
|
|
1290
|
+
viewBox: tn.value,
|
|
1342
1291
|
preserveAspectRatio: "xMidYMid meet",
|
|
1343
|
-
"aria-describedby": `map-keyboard-instructions-${
|
|
1292
|
+
"aria-describedby": `map-keyboard-instructions-${O.value}`,
|
|
1344
1293
|
tabindex: "0",
|
|
1345
|
-
style:
|
|
1294
|
+
style: be({
|
|
1346
1295
|
display: "block",
|
|
1347
1296
|
width: "100%",
|
|
1348
1297
|
height: z.value ? `${H.value}px` : "auto",
|
|
@@ -1350,20 +1299,20 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1350
1299
|
touchAction: B.value ? "none" : "auto",
|
|
1351
1300
|
cursor: B.value ? Q.value ? "grabbing" : "grab" : "default"
|
|
1352
1301
|
}),
|
|
1353
|
-
id: `vue-ui-geo_${
|
|
1354
|
-
onPointerdown:
|
|
1355
|
-
onPointerup:
|
|
1356
|
-
onPointercancel:
|
|
1357
|
-
onPointerleave:
|
|
1358
|
-
onWheel:
|
|
1359
|
-
onFocus:
|
|
1360
|
-
onBlur:
|
|
1361
|
-
onKeydown:
|
|
1362
|
-
}, [he(
|
|
1363
|
-
transform:
|
|
1364
|
-
style:
|
|
1302
|
+
id: `vue-ui-geo_${O.value}`,
|
|
1303
|
+
onPointerdown: Fn,
|
|
1304
|
+
onPointerup: In,
|
|
1305
|
+
onPointercancel: In,
|
|
1306
|
+
onPointerleave: In,
|
|
1307
|
+
onWheel: Ln,
|
|
1308
|
+
onFocus: Hn,
|
|
1309
|
+
onBlur: Un,
|
|
1310
|
+
onKeydown: Wn
|
|
1311
|
+
}, [he(w(Ue)), v("g", {
|
|
1312
|
+
transform: Wt.value.transform,
|
|
1313
|
+
style: be({ pointerEvents: Q.value ? "none" : "auto" })
|
|
1365
1314
|
}, [
|
|
1366
|
-
v("g", null, [(
|
|
1315
|
+
v("g", null, [(x(!0), _(pe, null, Ce(Lt.value, (e) => (x(), _("path", {
|
|
1367
1316
|
class: "vue-ui-geo-territory",
|
|
1368
1317
|
key: e.uid,
|
|
1369
1318
|
d: e.path,
|
|
@@ -1371,11 +1320,11 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1371
1320
|
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1372
1321
|
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1373
1322
|
"vector-effect": "non-scaling-stroke",
|
|
1374
|
-
onMouseenter: (t) =>
|
|
1375
|
-
onMouseleave: (t) =>
|
|
1376
|
-
onClick: (t) =>
|
|
1377
|
-
}, null, 40,
|
|
1378
|
-
v("g", null, [(
|
|
1323
|
+
onMouseenter: (t) => gn(e),
|
|
1324
|
+
onMouseleave: (t) => _n(e),
|
|
1325
|
+
onClick: (t) => vn(e)
|
|
1326
|
+
}, null, 40, Me))), 128))]),
|
|
1327
|
+
v("g", null, [(x(!0), _(pe, null, Ce(Rt.value, (e) => (x(), _("path", {
|
|
1379
1328
|
class: "vue-ui-geo-territory",
|
|
1380
1329
|
key: e.uid,
|
|
1381
1330
|
d: e.path,
|
|
@@ -1383,11 +1332,11 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1383
1332
|
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1384
1333
|
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1385
1334
|
"vector-effect": "non-scaling-stroke",
|
|
1386
|
-
onMouseenter: (t) =>
|
|
1387
|
-
onMouseleave: (t) =>
|
|
1388
|
-
onClick: (t) =>
|
|
1389
|
-
}, null, 40,
|
|
1390
|
-
v("g", null, [(
|
|
1335
|
+
onMouseenter: (t) => gn(e),
|
|
1336
|
+
onMouseleave: (t) => _n(e),
|
|
1337
|
+
onClick: (t) => vn(e)
|
|
1338
|
+
}, null, 40, Ne))), 128))]),
|
|
1339
|
+
v("g", null, [(x(!0), _(pe, null, Ce(zt.value, (e) => (x(), _("circle", {
|
|
1391
1340
|
key: e.uid,
|
|
1392
1341
|
cx: e.x,
|
|
1393
1342
|
cy: e.y,
|
|
@@ -1396,31 +1345,31 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1396
1345
|
stroke: e.stroke,
|
|
1397
1346
|
"stroke-width": e.strokeWidth,
|
|
1398
1347
|
"vector-effect": "non-scaling-stroke",
|
|
1399
|
-
onMouseenter: (t) =>
|
|
1400
|
-
onMouseleave:
|
|
1401
|
-
}, null, 40,
|
|
1402
|
-
(
|
|
1348
|
+
onMouseenter: (t) => wn(e),
|
|
1349
|
+
onMouseleave: Tn
|
|
1350
|
+
}, null, 40, Pe))), 128))]),
|
|
1351
|
+
(x(!0), _(pe, null, Ce(cn.value, (t, n) => (x(), _("g", { key: t.uid }, [C(e.$slots, "datapoint", _e({ ref_for: !0 }, {
|
|
1403
1352
|
point: t,
|
|
1404
|
-
onPointEnter:
|
|
1405
|
-
onPointLeave:
|
|
1406
|
-
onPointClick:
|
|
1353
|
+
onPointEnter: yn,
|
|
1354
|
+
onPointLeave: bn,
|
|
1355
|
+
onPointClick: Sn,
|
|
1407
1356
|
highlighted: q.value === t.uid
|
|
1408
1357
|
}), () => [v("circle", {
|
|
1409
|
-
class:
|
|
1358
|
+
class: ye({
|
|
1410
1359
|
"vue-ui-geo-point": !0,
|
|
1411
|
-
"vue-ui-geo-point-with-event":
|
|
1360
|
+
"vue-ui-geo-point-with-event": xn.value && at.value
|
|
1412
1361
|
}),
|
|
1413
1362
|
cx: t.x,
|
|
1414
1363
|
cy: t.y,
|
|
1415
1364
|
r: q.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius,
|
|
1416
1365
|
fill: t.fill,
|
|
1417
|
-
stroke:
|
|
1418
|
-
"stroke-width":
|
|
1366
|
+
stroke: Cn.value.stroke,
|
|
1367
|
+
"stroke-width": Cn.value.strokeWidth,
|
|
1419
1368
|
"vector-effect": "non-scaling-stroke",
|
|
1420
|
-
onMouseenter: (e) =>
|
|
1421
|
-
onMouseleave: (e) =>
|
|
1422
|
-
onClick: (e) =>
|
|
1423
|
-
}, null, 42,
|
|
1369
|
+
onMouseenter: (e) => yn(t, n),
|
|
1370
|
+
onMouseleave: (e) => bn(t),
|
|
1371
|
+
onClick: (e) => Sn(t)
|
|
1372
|
+
}, null, 42, Fe)], !0), L.value.style.chart.points.labels.show ? (x(), _("text", {
|
|
1424
1373
|
key: 0,
|
|
1425
1374
|
class: "vue-ui-geo-point-label",
|
|
1426
1375
|
x: t.x,
|
|
@@ -1428,47 +1377,47 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1428
1377
|
"text-anchor": "middle",
|
|
1429
1378
|
fill: L.value.style.chart.points.labels.color,
|
|
1430
1379
|
"font-size": 1 * L.value.style.chart.points.labels.fontSizeRatio
|
|
1431
|
-
},
|
|
1432
|
-
|
|
1433
|
-
drawingArea:
|
|
1434
|
-
x:
|
|
1435
|
-
y:
|
|
1436
|
-
width:
|
|
1437
|
-
height:
|
|
1438
|
-
isPrintingImg:
|
|
1439
|
-
isPrintingSvg:
|
|
1380
|
+
}, we(t.name), 9, Ie)) : g("", !0)]))), 128)),
|
|
1381
|
+
C(e.$slots, "svg", { svg: {
|
|
1382
|
+
drawingArea: tn.value,
|
|
1383
|
+
x: Ht.value?.minX ?? 0,
|
|
1384
|
+
y: Ht.value?.minY ?? 0,
|
|
1385
|
+
width: Ht.value?.width ?? 0,
|
|
1386
|
+
height: Ht.value?.height ?? 0,
|
|
1387
|
+
isPrintingImg: w(dt) || w(ft) || w(An),
|
|
1388
|
+
isPrintingSvg: w(jn),
|
|
1440
1389
|
data: {
|
|
1441
|
-
areaPaths:
|
|
1442
|
-
linePaths:
|
|
1443
|
-
geoJsonPoints:
|
|
1444
|
-
projectedPoints:
|
|
1390
|
+
areaPaths: Lt.value,
|
|
1391
|
+
linePaths: Rt.value,
|
|
1392
|
+
geoJsonPoints: zt.value,
|
|
1393
|
+
projectedPoints: cn.value
|
|
1445
1394
|
}
|
|
1446
1395
|
} }, void 0, !0)
|
|
1447
|
-
], 12,
|
|
1396
|
+
], 12, je)], 44, Ae)), e.$slots.hint ? (x(), _("div", Le, [C(e.$slots, "hint", b(y({
|
|
1448
1397
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1449
|
-
isVisible:
|
|
1398
|
+
isVisible: nt.value
|
|
1450
1399
|
})), void 0, !0)])) : g("", !0)]),
|
|
1451
|
-
e.$slots.watermark ? (
|
|
1452
|
-
L.value.style.chart.controls.position === "bottom" && L.value.style.chart.controls.show && !
|
|
1400
|
+
e.$slots.watermark ? (x(), _("div", Re, [C(e.$slots, "watermark", b(y({ isPrinting: w(dt) || w(ft) || w(An) || w(jn) })), void 0, !0)])) : g("", !0),
|
|
1401
|
+
L.value.style.chart.controls.position === "bottom" && L.value.style.chart.controls.show && !w(lt) ? (x(), h(ue, {
|
|
1453
1402
|
key: 7,
|
|
1454
1403
|
ref_key: "zoomControlsBottom",
|
|
1455
|
-
ref:
|
|
1404
|
+
ref: et,
|
|
1456
1405
|
config: L.value,
|
|
1457
|
-
scale:
|
|
1406
|
+
scale: w(Yt),
|
|
1458
1407
|
isFullscreen: I.value,
|
|
1459
|
-
isCursorPointer:
|
|
1460
|
-
onZoomIn:
|
|
1461
|
-
onZoomOut:
|
|
1462
|
-
onResetZoom:
|
|
1408
|
+
isCursorPointer: at.value,
|
|
1409
|
+
onZoomIn: nn,
|
|
1410
|
+
onZoomOut: rn,
|
|
1411
|
+
onResetZoom: an
|
|
1463
1412
|
}, null, 8, [
|
|
1464
1413
|
"config",
|
|
1465
1414
|
"scale",
|
|
1466
1415
|
"isFullscreen",
|
|
1467
1416
|
"isCursorPointer"
|
|
1468
1417
|
])) : g("", !0),
|
|
1469
|
-
he(
|
|
1418
|
+
he(w(Be), {
|
|
1470
1419
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
1471
|
-
show:
|
|
1420
|
+
show: yt.value.showTooltip && un.value,
|
|
1472
1421
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
1473
1422
|
color: L.value.style.chart.tooltip.color,
|
|
1474
1423
|
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
@@ -1479,8 +1428,8 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1479
1428
|
position: L.value.style.chart.tooltip.position,
|
|
1480
1429
|
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
1481
1430
|
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
1482
|
-
parent:
|
|
1483
|
-
content:
|
|
1431
|
+
parent: k.value,
|
|
1432
|
+
content: dn.value,
|
|
1484
1433
|
isCustom: K.value,
|
|
1485
1434
|
isFullscreen: I.value,
|
|
1486
1435
|
smooth: L.value.style.chart.tooltip.smooth,
|
|
@@ -1488,11 +1437,11 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1488
1437
|
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
1489
1438
|
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1490
1439
|
isA11yMode: F.value === "keyboard",
|
|
1491
|
-
a11yPosition:
|
|
1440
|
+
a11yPosition: tt.value
|
|
1492
1441
|
}, {
|
|
1493
|
-
"tooltip-before":
|
|
1494
|
-
tooltip:
|
|
1495
|
-
"tooltip-after":
|
|
1442
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", b(y({ ...j.value })), void 0, !0)]),
|
|
1443
|
+
tooltip: E(() => [C(e.$slots, "tooltip", b(y({ ...j.value })), void 0, !0)]),
|
|
1444
|
+
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", b(y({ ...j.value })), void 0, !0)]),
|
|
1496
1445
|
_: 3
|
|
1497
1446
|
}, 8, [
|
|
1498
1447
|
"teleportTo",
|
|
@@ -1518,15 +1467,15 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1518
1467
|
"isA11yMode",
|
|
1519
1468
|
"a11yPosition"
|
|
1520
1469
|
]),
|
|
1521
|
-
e.$slots.source ? (
|
|
1470
|
+
e.$slots.source ? (x(), _("div", {
|
|
1522
1471
|
key: 8,
|
|
1523
1472
|
ref_key: "source",
|
|
1524
|
-
ref:
|
|
1473
|
+
ref: Qe,
|
|
1525
1474
|
dir: "auto"
|
|
1526
|
-
}, [
|
|
1527
|
-
|
|
1528
|
-
], 14,
|
|
1475
|
+
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1476
|
+
C(e.$slots, "skeleton", {}, () => [w(lt) ? (x(), h(d, { key: 0 })) : g("", !0)], !0)
|
|
1477
|
+
], 14, De));
|
|
1529
1478
|
}
|
|
1530
|
-
}, [["__scopeId", "data-v-
|
|
1479
|
+
}, [["__scopeId", "data-v-0dc55d82"]]);
|
|
1531
1480
|
//#endregion
|
|
1532
|
-
export {
|
|
1481
|
+
export { Ee as n, Be as t };
|