vue-data-ui 3.25.5 → 3.25.7
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/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-UfoQuPMf.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.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-ta2JoIjx.js → package-B-3S5q00.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.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 +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-DlWT702n.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-DbOk2kpM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-C7_mGIRk.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
- package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
- package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
- package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
- package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
- package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
- package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
- package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
- package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
- package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
- package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
- package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
- package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-BzwMl-in.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
- package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
- package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
- package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
- package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
- package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
- package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
- package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
- package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
- package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
- package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
- package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
- package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
- package/dist/vue-ui-table-CiccGbRB.js +1352 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
- package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
- package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
- package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
- package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
- package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
- package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { Ct as t, Jt as n, S as r, Zt as i, q as a, t as o } from "./lib-Dql7cqyA.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-CIQZ6_r7.js";
|
|
5
5
|
import { t as l } from "./usePrinter-DISD7q5m.js";
|
|
6
6
|
import { n as u, t as d } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as f } from "./useNestedProp-Chvyfpl-.js";
|
|
@@ -15,17 +15,17 @@ import { t as oe } from "./A11yDataTable-DdRsVULz.js";
|
|
|
15
15
|
import { t as se } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
16
|
import { t as ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
17
|
import { t as le } from "./usePanZoom-CYU3B4T3.js";
|
|
18
|
-
import { t as ue } from "./BaseZoomControls-
|
|
18
|
+
import { t as ue } from "./BaseZoomControls-BTzjVDPM.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 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
|
|
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 Ee, withCtx as T } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-geo.vue
|
|
23
|
-
var
|
|
23
|
+
var De = /* @__PURE__ */ e({ default: () => Ve }), Oe = ["id"], ke = ["id"], Ae = { style: { position: "relative" } }, je = [
|
|
24
24
|
"xmlns",
|
|
25
25
|
"viewBox",
|
|
26
26
|
"aria-describedby",
|
|
27
27
|
"id"
|
|
28
|
-
],
|
|
28
|
+
], Me = ["transform"], Ne = [
|
|
29
29
|
"d",
|
|
30
30
|
"fill",
|
|
31
31
|
"stroke",
|
|
@@ -33,14 +33,14 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
33
33
|
"onMouseenter",
|
|
34
34
|
"onMouseleave",
|
|
35
35
|
"onClick"
|
|
36
|
-
],
|
|
36
|
+
], Pe = [
|
|
37
37
|
"d",
|
|
38
38
|
"stroke",
|
|
39
39
|
"stroke-width",
|
|
40
40
|
"onMouseenter",
|
|
41
41
|
"onMouseleave",
|
|
42
42
|
"onClick"
|
|
43
|
-
],
|
|
43
|
+
], Fe = [
|
|
44
44
|
"cx",
|
|
45
45
|
"cy",
|
|
46
46
|
"r",
|
|
@@ -48,7 +48,7 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
48
48
|
"stroke",
|
|
49
49
|
"stroke-width",
|
|
50
50
|
"onMouseenter"
|
|
51
|
-
],
|
|
51
|
+
], Ie = [
|
|
52
52
|
"cx",
|
|
53
53
|
"cy",
|
|
54
54
|
"r",
|
|
@@ -58,12 +58,12 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
58
58
|
"onMouseenter",
|
|
59
59
|
"onMouseleave",
|
|
60
60
|
"onClick"
|
|
61
|
-
],
|
|
61
|
+
], Le = [
|
|
62
62
|
"x",
|
|
63
63
|
"y",
|
|
64
64
|
"fill",
|
|
65
65
|
"font-size"
|
|
66
|
-
],
|
|
66
|
+
], Re = {
|
|
67
67
|
key: 0,
|
|
68
68
|
style: {
|
|
69
69
|
position: "absolute",
|
|
@@ -73,10 +73,10 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
73
73
|
},
|
|
74
74
|
"data-dom-to-png-ignore": "",
|
|
75
75
|
"aria-hidden": "true"
|
|
76
|
-
},
|
|
76
|
+
}, ze = {
|
|
77
77
|
key: 6,
|
|
78
78
|
class: "vue-data-ui-watermark"
|
|
79
|
-
},
|
|
79
|
+
}, Be = 1.5, Ve = /*#__PURE__*/ re({
|
|
80
80
|
__name: "vue-ui-geo",
|
|
81
81
|
props: {
|
|
82
82
|
config: {
|
|
@@ -93,34 +93,34 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
emits: ["copyAlt"],
|
|
96
|
-
setup(e, { expose: re, emit:
|
|
97
|
-
let
|
|
96
|
+
setup(e, { expose: re, emit: De }) {
|
|
97
|
+
let Ve = ge(() => import("./Tooltip-hhrkQ3Lk.js")), He = ge(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Ue = ge(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), We = ge(() => import("./PackageVersion-UfoQuPMf.js").then((e) => e.t)), E = e, Ge = De, { vue_ui_geo: Ke } = c(), { isThemeValid: qe, warnInvalidTheme: Je } = p(), D = S(a()), Ye = S(0), Xe = S(0), O = S(null), k = S(!1), Ze = S(null), Qe = S(null), $e = S(null), et = S(null), A = S(null), j = S(null), tt = S(null), nt = S(null), M = S(null), rt = S({
|
|
98
98
|
x: 0,
|
|
99
99
|
y: 0
|
|
100
|
-
}),
|
|
101
|
-
function
|
|
102
|
-
|
|
100
|
+
}), N = S("pointer"), it = S(!1), P = S(!1);
|
|
101
|
+
function at(e) {
|
|
102
|
+
P.value = e, Ye.value += 1;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function ot() {
|
|
105
105
|
let e = f({
|
|
106
|
-
userConfig:
|
|
107
|
-
defaultConfig:
|
|
106
|
+
userConfig: E.config,
|
|
107
|
+
defaultConfig: Ke
|
|
108
108
|
}), t = e.theme;
|
|
109
109
|
if (!t) return e;
|
|
110
|
-
if (!
|
|
110
|
+
if (!qe.value(e)) return Je(e), e;
|
|
111
111
|
let n = f({
|
|
112
|
-
userConfig: fe[t] ||
|
|
112
|
+
userConfig: fe[t] || E.config,
|
|
113
113
|
defaultConfig: e
|
|
114
114
|
});
|
|
115
115
|
return f({
|
|
116
|
-
userConfig:
|
|
116
|
+
userConfig: E.config,
|
|
117
117
|
defaultConfig: n
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
let
|
|
120
|
+
let F = S(ot()), st = m(() => F.value.style.chart.points.labels), I = m(() => F.value.style.chart.points), L = m(() => F.value.style.chart);
|
|
121
121
|
s({
|
|
122
|
-
config: () =>
|
|
123
|
-
dataset: () =>
|
|
122
|
+
config: () => F.value,
|
|
123
|
+
dataset: () => E.dataset,
|
|
124
124
|
component: "VueUiGeo",
|
|
125
125
|
rules: [{
|
|
126
126
|
test: (e) => e.length > 100,
|
|
@@ -131,7 +131,7 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
131
131
|
]
|
|
132
132
|
}]
|
|
133
133
|
});
|
|
134
|
-
let
|
|
134
|
+
let ct = m(() => F.value.userOptions.useCursorPointer), { userOptionsVisible: lt, keepUserOptionState: ut } = se({ config: F.value }), { svgRef: R } = ce({ config: L.value.title }), dt = m(() => i({
|
|
135
135
|
defaultConfig: {
|
|
136
136
|
map: { geoJson: {
|
|
137
137
|
type: "FeatureCollection",
|
|
@@ -204,60 +204,60 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
204
204
|
}
|
|
205
205
|
} }
|
|
206
206
|
},
|
|
207
|
-
userConfig:
|
|
208
|
-
})), { loading:
|
|
209
|
-
...Te(
|
|
210
|
-
FINAL_CONFIG:
|
|
211
|
-
prepareConfig:
|
|
207
|
+
userConfig: F.value.skeletonConfig ?? {}
|
|
208
|
+
})), { loading: ft, FINAL_DATASET: pt } = u({
|
|
209
|
+
...Te(E),
|
|
210
|
+
FINAL_CONFIG: F,
|
|
211
|
+
prepareConfig: ot,
|
|
212
212
|
allowEmptyDataset: !0,
|
|
213
|
-
skeletonDataset:
|
|
213
|
+
skeletonDataset: E.config?.skeletonDataset ?? [],
|
|
214
214
|
skeletonConfig: i({
|
|
215
|
-
defaultConfig:
|
|
216
|
-
userConfig:
|
|
215
|
+
defaultConfig: F.value,
|
|
216
|
+
userConfig: dt.value
|
|
217
217
|
})
|
|
218
|
-
}), { isPrinting:
|
|
219
|
-
elementId: `vue-ui-geo_${
|
|
220
|
-
fileName: L.value.
|
|
221
|
-
options:
|
|
222
|
-
}),
|
|
223
|
-
function
|
|
224
|
-
|
|
218
|
+
}), { isPrinting: mt, isImaging: ht, generatePdf: gt, generateImage: _t } = l({
|
|
219
|
+
elementId: `vue-ui-geo_${D.value}`,
|
|
220
|
+
fileName: L.value.title.text || "vue-ui-geo",
|
|
221
|
+
options: F.value.userOptions.print
|
|
222
|
+
}), vt = m(() => L.value.controls.show ? L.value.controls.position === "top" ? tt.value?.$el ?? null : L.value.controls.position === "bottom" ? nt.value?.$el ?? null : null : null);
|
|
223
|
+
function yt() {
|
|
224
|
+
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect(), A.value = null, j.value = null);
|
|
225
225
|
}
|
|
226
|
-
let z = m(() => !!
|
|
227
|
-
|
|
226
|
+
let z = m(() => !!F.value.responsive && !P.value);
|
|
227
|
+
Ee(() => P.value, async (e) => {
|
|
228
228
|
if (e) {
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
yt(), V.value = Number(L.value.dimensions.width) || V.value, H.value = Number(L.value.dimensions.height) || H.value, await ve(), k.value = !1, requestAnimationFrame(() => {
|
|
230
|
+
k.value || rn();
|
|
231
231
|
});
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
F.value.responsive && (await ve(), bt());
|
|
235
235
|
});
|
|
236
|
-
function
|
|
237
|
-
if (
|
|
236
|
+
function bt() {
|
|
237
|
+
if (yt(), !z.value) return;
|
|
238
238
|
let e = ie(() => {
|
|
239
|
-
if (!
|
|
239
|
+
if (!O.value) return;
|
|
240
240
|
let { width: e, height: t } = ae({
|
|
241
|
-
chart:
|
|
242
|
-
noTitle:
|
|
243
|
-
title: L.value.
|
|
244
|
-
legend:
|
|
245
|
-
source:
|
|
241
|
+
chart: O.value,
|
|
242
|
+
noTitle: xt.value ? $e.value : null,
|
|
243
|
+
title: L.value.title.text ? Qe.value : null,
|
|
244
|
+
legend: vt.value,
|
|
245
|
+
source: et.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
|
-
|
|
251
|
+
A.value = new ResizeObserver(e), j.value = O.value ? O.value.parentNode : null, j.value && A.value.observe(j.value), e();
|
|
252
252
|
}
|
|
253
|
-
let
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
let xt = m(() => F.value.userOptions.show && !L.value.title.text), St = S({ showTooltip: L.value.tooltip.show }), B = S(L.value.zoom.active);
|
|
254
|
+
Ee(() => E.config, () => {
|
|
255
|
+
F.value = ot(), St.value.showTooltip = L.value.tooltip.show, B.value = L.value.zoom.active, V.value = L.value.dimensions.width, H.value = L.value.dimensions.height, bt(), Xe.value += 1, Ye.value += 1;
|
|
256
256
|
}, { deep: !0 });
|
|
257
|
-
let { projections:
|
|
258
|
-
let e =
|
|
259
|
-
return typeof e == "function" ? e :
|
|
260
|
-
}),
|
|
257
|
+
let { projections: Ct } = de, wt = m(() => F.value?.projection || "equirectangular"), Tt = m(() => {
|
|
258
|
+
let e = Ct?.[wt.value];
|
|
259
|
+
return typeof e == "function" ? e : Ct.equirectangular;
|
|
260
|
+
}), Et = m(() => F.value.map.geoJson ?? null), Dt = {
|
|
261
261
|
aitoff: {
|
|
262
262
|
width: 1e3,
|
|
263
263
|
height: 500
|
|
@@ -310,14 +310,14 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
310
310
|
width: 1e3,
|
|
311
311
|
height: 1e3
|
|
312
312
|
}
|
|
313
|
-
}, V = S(L.value.
|
|
314
|
-
let e = wt
|
|
313
|
+
}, V = S(L.value.dimensions.width), H = S(L.value.dimensions.height), Ot = m(() => {
|
|
314
|
+
let e = Dt[wt.value] || Dt.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 = Ot.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 Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
331
331
|
width: e.width,
|
|
332
332
|
height: e.height
|
|
333
333
|
};
|
|
334
|
-
}),
|
|
335
|
-
let e =
|
|
334
|
+
}), kt = m(() => {
|
|
335
|
+
let e = F.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 Tt.value([e, t], Ot.value.width, Ot.value.height, kt.value);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function At(e, t = {}) {
|
|
344
344
|
let { defaultName: n = "", namePropertyCandidates: r = [
|
|
345
345
|
"name",
|
|
346
346
|
"nom",
|
|
@@ -454,7 +454,7 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
454
454
|
features: f
|
|
455
455
|
};
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function jt(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 Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
487
487
|
geometry: e.geometry,
|
|
488
488
|
properties: r,
|
|
489
489
|
name: i,
|
|
490
|
-
uid: `map-feature-${
|
|
490
|
+
uid: `map-feature-${D.value}-${t}`,
|
|
491
491
|
index: t
|
|
492
492
|
};
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
let
|
|
495
|
+
let Mt = m(() => At(Et.value, {
|
|
496
496
|
defaultName: "",
|
|
497
497
|
includeNullGeometries: !1
|
|
498
|
-
})),
|
|
499
|
-
function
|
|
498
|
+
})), Nt = m(() => jt(Mt.value));
|
|
499
|
+
function Pt(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) => Pt(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,46 +516,46 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
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 Ft(e) {
|
|
520
|
+
return e ? e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).flatMap((e) => Ft(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 It(e) {
|
|
523
|
+
return !e || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).some((e) => It(e)) : e.type === "Point" || e.type === "MultiPoint";
|
|
524
524
|
}
|
|
525
|
-
let
|
|
525
|
+
let Lt = m(() => Nt.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
|
+
})), Rt = m(() => Nt.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
|
+
})), zt = m(() => Nt.value.filter((e) => {
|
|
532
532
|
let t = e.geometry;
|
|
533
|
-
return t ?
|
|
534
|
-
})),
|
|
535
|
-
let t =
|
|
533
|
+
return t ? It(t) : !1;
|
|
534
|
+
})), Bt = m(() => Lt.value.map((e) => {
|
|
535
|
+
let t = Pt(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)), Vt = m(() => Rt.value.map((e) => {
|
|
541
|
+
let t = Pt(e.geometry);
|
|
542
542
|
return t ? {
|
|
543
543
|
...e,
|
|
544
544
|
path: t
|
|
545
545
|
} : null;
|
|
546
|
-
}).filter(Boolean)),
|
|
546
|
+
}).filter(Boolean)), Ht = 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;
|
|
550
550
|
return {
|
|
551
|
-
radius: Number.isFinite(Number(n)) ? Number(n) : Number(
|
|
552
|
-
fill: i != null && String(i).trim() ? r(String(i).trim()) :
|
|
553
|
-
stroke: a != null && String(a).trim() ? r(String(a).trim()) :
|
|
554
|
-
strokeWidth: Number.isFinite(Number(o)) ? Number(o) : Number(
|
|
551
|
+
radius: Number.isFinite(Number(n)) ? Number(n) : Number(I.value.radius),
|
|
552
|
+
fill: i != null && String(i).trim() ? r(String(i).trim()) : I.value.fill,
|
|
553
|
+
stroke: a != null && String(a).trim() ? r(String(a).trim()) : I.value.stroke,
|
|
554
|
+
strokeWidth: Number.isFinite(Number(o)) ? Number(o) : Number(I.value.strokeWidth)
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
for (let n of
|
|
558
|
-
let r =
|
|
557
|
+
for (let n of zt.value) {
|
|
558
|
+
let r = Ft(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 Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
578
578
|
}
|
|
579
579
|
return e;
|
|
580
580
|
});
|
|
581
|
-
function
|
|
581
|
+
function Ut(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 Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
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(...Ut(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 Wt(e) {
|
|
605
605
|
let t = [];
|
|
606
|
-
for (let n of e) t.push(...
|
|
606
|
+
for (let n of e) t.push(...Ut(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 Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
617
617
|
height: s
|
|
618
618
|
};
|
|
619
619
|
}
|
|
620
|
-
let
|
|
621
|
-
function
|
|
620
|
+
let Gt = m(() => Wt(Nt.value));
|
|
621
|
+
function Kt({ 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,39 +633,39 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
633
633
|
transform: `translate(${ee} ${te}) scale(${l})`
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
let
|
|
637
|
-
let e =
|
|
636
|
+
let qt = m(() => {
|
|
637
|
+
let e = Gt.value;
|
|
638
638
|
if (!e) return {
|
|
639
639
|
scale: 1,
|
|
640
640
|
translateX: 0,
|
|
641
641
|
translateY: 0,
|
|
642
642
|
transform: ""
|
|
643
643
|
};
|
|
644
|
-
let t =
|
|
645
|
-
return
|
|
644
|
+
let t = F.value?.map?.fitPadding, n = Number.isFinite(Number(t)) ? Number(t) : 0;
|
|
645
|
+
return Kt({
|
|
646
646
|
bounds: e,
|
|
647
647
|
targetWidth: U.value.width,
|
|
648
648
|
targetHeight: U.value.height,
|
|
649
649
|
padding: n
|
|
650
650
|
});
|
|
651
|
-
}),
|
|
651
|
+
}), Jt = m(() => `0 0 ${U.value.width} ${U.value.height}`), { viewBox: Yt, resetZoom: Xt, setInitialViewBox: Zt, scale: Qt, zoomByFactor: $t } = 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 en() {
|
|
658
658
|
B.value = !B.value;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
let t =
|
|
660
|
+
function tn(e) {
|
|
661
|
+
let t = qt.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
|
|
668
|
-
let e =
|
|
667
|
+
function nn() {
|
|
668
|
+
let e = F.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,
|
|
671
671
|
y: 0,
|
|
@@ -679,7 +679,7 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
679
679
|
width: i,
|
|
680
680
|
height: a
|
|
681
681
|
};
|
|
682
|
-
let l =
|
|
682
|
+
let l = tn({
|
|
683
683
|
x: s,
|
|
684
684
|
y: c
|
|
685
685
|
});
|
|
@@ -690,58 +690,58 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
690
690
|
height: a
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
function
|
|
694
|
-
let e =
|
|
695
|
-
|
|
693
|
+
function rn() {
|
|
694
|
+
let e = nn();
|
|
695
|
+
Zt(e, { overwriteCurrentIfNotZoomed: !0 }), k.value = !0;
|
|
696
696
|
}
|
|
697
|
-
let
|
|
698
|
-
let e =
|
|
699
|
-
return e ? `${e.x} ${e.y} ${e.width} ${e.height}` :
|
|
697
|
+
let an = m(() => {
|
|
698
|
+
let e = Yt.value;
|
|
699
|
+
return e ? `${e.x} ${e.y} ${e.width} ${e.height}` : Jt.value;
|
|
700
700
|
});
|
|
701
|
-
function
|
|
702
|
-
|
|
701
|
+
function on() {
|
|
702
|
+
$t(Be, !0);
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
|
|
704
|
+
function sn() {
|
|
705
|
+
$t(1 / Be, !0);
|
|
706
706
|
}
|
|
707
|
-
async function
|
|
708
|
-
let e =
|
|
709
|
-
|
|
707
|
+
async function cn() {
|
|
708
|
+
let e = nn();
|
|
709
|
+
Zt(e, { overwriteCurrentIfNotZoomed: !0 }), Xt(!0);
|
|
710
710
|
}
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
711
|
+
Ee(() => [
|
|
712
|
+
F.value.projection,
|
|
713
|
+
F.value.map.center?.[0],
|
|
714
|
+
F.value.map.center?.[1],
|
|
715
|
+
F.value.map.fitPadding,
|
|
716
|
+
Et.value
|
|
717
717
|
], async () => {
|
|
718
|
-
|
|
719
|
-
|
|
718
|
+
k.value = !1, await ve(), requestAnimationFrame(() => {
|
|
719
|
+
k.value || rn();
|
|
720
720
|
});
|
|
721
|
-
}, { deep: !1 }),
|
|
721
|
+
}, { deep: !1 }), Ee(() => [
|
|
722
722
|
V.value,
|
|
723
723
|
H.value,
|
|
724
724
|
z.value
|
|
725
725
|
], async () => {
|
|
726
|
-
z.value && (await ve(),
|
|
726
|
+
z.value && (await ve(), Zt({
|
|
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 }), k.value = !1, requestAnimationFrame(() => {
|
|
732
|
+
k.value || rn();
|
|
733
733
|
}));
|
|
734
734
|
}, { flush: "post" });
|
|
735
|
-
function
|
|
735
|
+
function ln(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-${D.value}-${t}`,
|
|
740
740
|
name: r,
|
|
741
741
|
coordinates: i,
|
|
742
742
|
color: n.color ?? null,
|
|
743
743
|
radius: n.radius ?? null,
|
|
744
|
-
hoverRadiusRatio:
|
|
744
|
+
hoverRadiusRatio: I.value.hoverRadiusRatio,
|
|
745
745
|
description: n.description ?? null,
|
|
746
746
|
original: e,
|
|
747
747
|
index: t
|
|
@@ -751,12 +751,12 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
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-${D.value}-${t}`,
|
|
755
755
|
name: r,
|
|
756
756
|
coordinates: [s, c],
|
|
757
757
|
color: a,
|
|
758
758
|
radius: o,
|
|
759
|
-
hoverRadiusRatio:
|
|
759
|
+
hoverRadiusRatio: I.value.hoverRadiusRatio,
|
|
760
760
|
description: i,
|
|
761
761
|
original: e,
|
|
762
762
|
index: t
|
|
@@ -767,122 +767,122 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
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-${D.value}-${n}-${e}`,
|
|
771
771
|
name: t.name || e,
|
|
772
772
|
coordinates: [i, a],
|
|
773
773
|
color: t.color ?? null,
|
|
774
774
|
radius: t.radius ?? null,
|
|
775
|
-
hoverRadiusRatio:
|
|
775
|
+
hoverRadiusRatio: I.value.hoverRadiusRatio,
|
|
776
776
|
description: t.description ?? null,
|
|
777
777
|
original: t,
|
|
778
778
|
index: n
|
|
779
779
|
};
|
|
780
780
|
}).filter(Boolean) : [] : [];
|
|
781
781
|
}
|
|
782
|
-
let
|
|
782
|
+
let un = m(() => ln(pt.value)), dn = m(() => un.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,
|
|
786
786
|
x: n,
|
|
787
787
|
y: i,
|
|
788
|
-
fill: e.color ? r(e.color) :
|
|
789
|
-
radius: Number.isFinite(Number(e.radius)) ? Number(e.radius) :
|
|
788
|
+
fill: e.color ? r(e.color) : I.value.fill,
|
|
789
|
+
radius: Number.isFinite(Number(e.radius)) ? Number(e.radius) : I.value.radius
|
|
790
790
|
};
|
|
791
|
-
}).filter(Boolean)), G = m(() =>
|
|
791
|
+
}).filter(Boolean)), G = m(() => dn.value.map((e, t) => ({
|
|
792
792
|
...e,
|
|
793
793
|
keyboardIndex: t
|
|
794
794
|
})));
|
|
795
|
-
function
|
|
796
|
-
let t =
|
|
797
|
-
r && (
|
|
795
|
+
function fn(e) {
|
|
796
|
+
let t = tn(e), r = n(t.x, t.y, R.value);
|
|
797
|
+
r && (rt.value = {
|
|
798
798
|
x: r.x,
|
|
799
799
|
y: r.y
|
|
800
800
|
});
|
|
801
801
|
}
|
|
802
|
-
let
|
|
803
|
-
function
|
|
804
|
-
|
|
802
|
+
let pn = S(!1), mn = S(""), K = S(!1), q = S(null), J = S(null);
|
|
803
|
+
function hn(e) {
|
|
804
|
+
mn.value = e, pn.value = !0;
|
|
805
805
|
}
|
|
806
806
|
function Y() {
|
|
807
|
-
|
|
807
|
+
pn.value = !1, mn.value = "";
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function gn(e) {
|
|
810
810
|
return String(e ?? "").replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
|
|
812
|
+
function _n(e) {
|
|
813
|
+
Ze.value = {
|
|
814
814
|
datapoint: e,
|
|
815
815
|
seriesIndex: e.index,
|
|
816
|
-
series:
|
|
817
|
-
config:
|
|
816
|
+
series: un.value,
|
|
817
|
+
config: F.value
|
|
818
818
|
}, K.value = !1;
|
|
819
|
-
let n = L.value.
|
|
819
|
+
let n = L.value.tooltip.customFormat;
|
|
820
820
|
if (t(n)) try {
|
|
821
|
-
let e = n(
|
|
821
|
+
let e = n(Ze.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">${gn(e.name)}</div>${e.description == null ? "" : `<div style="margin-top:6px">${gn(e.description)}</div>`}</div>`;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function vn(e) {
|
|
829
829
|
K.value = !1;
|
|
830
|
-
let n = L.value.
|
|
830
|
+
let n = L.value.tooltip.customFormat;
|
|
831
831
|
if (t(n)) try {
|
|
832
832
|
let t = n({
|
|
833
833
|
datapoint: e,
|
|
834
|
-
config:
|
|
834
|
+
config: F.value
|
|
835
835
|
});
|
|
836
836
|
if (typeof t == "string") return K.value = !0, t;
|
|
837
837
|
} catch {
|
|
838
838
|
console.warn("Custom format cannot be applied."), K.value = !1;
|
|
839
839
|
}
|
|
840
840
|
let r = typeof e?.name == "string" ? e.name.trim() : "";
|
|
841
|
-
return r ? `<div><div style="font-weight:600">${
|
|
841
|
+
return r ? `<div><div style="font-weight:600">${gn(r)}</div></div>` : (K.value = !1, "");
|
|
842
842
|
}
|
|
843
|
-
function
|
|
844
|
-
if (
|
|
843
|
+
function yn(e) {
|
|
844
|
+
if (F.value.events.territoryEnter && F.value.events.territoryEnter({
|
|
845
845
|
datapoint: e,
|
|
846
846
|
seriesIndex: e.index
|
|
847
|
-
}), !(typeof e?.name == "string" && e.name.trim()) && !L.value.
|
|
847
|
+
}), !(typeof e?.name == "string" && e.name.trim()) && !L.value.territory.hover.enabledWhenEmpty) {
|
|
848
848
|
J.value = null, Y();
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
|
-
J.value = e.uid,
|
|
851
|
+
J.value = e.uid, hn(vn(e));
|
|
852
852
|
}
|
|
853
|
-
function
|
|
854
|
-
J.value = null, Y(),
|
|
853
|
+
function bn(e) {
|
|
854
|
+
J.value = null, Y(), F.value.events.territoryLeave && F.value.events.territoryLeave({
|
|
855
855
|
datapoint: e,
|
|
856
856
|
seriesIndex: e.index
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
|
-
function
|
|
860
|
-
|
|
859
|
+
function xn(e) {
|
|
860
|
+
F.value.events.territoryClick && F.value.events.territoryClick({
|
|
861
861
|
datapoint: e,
|
|
862
862
|
seriesIndex: e.index
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
|
|
865
|
+
function Sn(e, t = null, n = "pointer") {
|
|
866
|
+
N.value = n, q.value = e.uid, Number.isInteger(t) && (M.value = t), n === "keyboard" && fn(e), hn(_n(e)), F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
867
867
|
datapoint: e,
|
|
868
868
|
seriesIndex: e.index
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
|
-
function
|
|
872
|
-
(t !== "pointer" ||
|
|
871
|
+
function Cn(e, t = "pointer") {
|
|
872
|
+
(t !== "pointer" || N.value !== "keyboard") && (q.value = null, Y(), t !== "pointer" && (M.value = null, N.value = "pointer"), F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
873
873
|
datapoint: e,
|
|
874
874
|
seriesIndex: e.index
|
|
875
875
|
}));
|
|
876
876
|
}
|
|
877
|
-
let
|
|
878
|
-
function
|
|
879
|
-
|
|
877
|
+
let wn = m(() => !!F.value.events.datapointClick && typeof F.value.events.datapointClick == "function");
|
|
878
|
+
function Tn(e) {
|
|
879
|
+
wn.value && F.value.events.datapointClick({
|
|
880
880
|
datapoint: e,
|
|
881
881
|
seriesIndex: e.index
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
|
-
let X = m(() => L.value.
|
|
885
|
-
function
|
|
884
|
+
let X = m(() => L.value.territory);
|
|
885
|
+
function En(e) {
|
|
886
886
|
let t = typeof e?.name == "string" ? e.name.trim() : "";
|
|
887
887
|
if (!t) {
|
|
888
888
|
J.value = null, Y();
|
|
@@ -894,34 +894,34 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
894
894
|
index: e.featureIndex,
|
|
895
895
|
properties: {}
|
|
896
896
|
};
|
|
897
|
-
J.value = e.uid,
|
|
897
|
+
J.value = e.uid, hn(vn(n));
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function Dn() {
|
|
900
900
|
J.value = null, Y();
|
|
901
901
|
}
|
|
902
902
|
let Z = S(!1);
|
|
903
|
-
function
|
|
903
|
+
function On() {
|
|
904
904
|
Z.value = !Z.value;
|
|
905
905
|
}
|
|
906
|
-
|
|
906
|
+
Ee(() => Z.value, (e) => {
|
|
907
907
|
B.value = !e;
|
|
908
908
|
});
|
|
909
|
-
function
|
|
910
|
-
|
|
909
|
+
function kn() {
|
|
910
|
+
St.value.showTooltip = !St.value.showTooltip;
|
|
911
911
|
}
|
|
912
|
-
let
|
|
912
|
+
let An = m(() => L.value.backgroundColor), jn = m(() => L.value.title), { isCallbackImaging: Mn, isCallbackSvg: Nn, generateSvg: Pn, onGenerateImage: Fn } = ee({
|
|
913
913
|
svg: R,
|
|
914
|
-
title:
|
|
914
|
+
title: jn,
|
|
915
915
|
legend: null,
|
|
916
916
|
legendItems: null,
|
|
917
|
-
backgroundColor:
|
|
918
|
-
getSvgCallback: () =>
|
|
919
|
-
generateImage:
|
|
917
|
+
backgroundColor: An,
|
|
918
|
+
getSvgCallback: () => F.value.userOptions.callbacks.svg,
|
|
919
|
+
generateImage: _t
|
|
920
920
|
});
|
|
921
|
-
async function
|
|
922
|
-
if (!
|
|
923
|
-
let { width: t, height: n } =
|
|
924
|
-
domElement:
|
|
921
|
+
async function In({ scale: e = 2 } = {}) {
|
|
922
|
+
if (!O.value) return;
|
|
923
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await te({
|
|
924
|
+
domElement: O.value,
|
|
925
925
|
base64: !0,
|
|
926
926
|
img: !0,
|
|
927
927
|
scale: e
|
|
@@ -929,20 +929,20 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
929
929
|
return {
|
|
930
930
|
imageUri: i,
|
|
931
931
|
base64: a,
|
|
932
|
-
title: L.value.
|
|
932
|
+
title: L.value.title.text,
|
|
933
933
|
width: t,
|
|
934
934
|
height: n,
|
|
935
935
|
aspectRatio: r
|
|
936
936
|
};
|
|
937
937
|
}
|
|
938
938
|
let Q = S(!1), $ = null;
|
|
939
|
-
function
|
|
939
|
+
function Ln() {
|
|
940
940
|
B.value && (Q.value = !0);
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function Rn() {
|
|
943
943
|
Q.value = !1;
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function zn() {
|
|
946
946
|
B.value && (Q.value = !0, $ && clearTimeout($), $ = setTimeout(() => {
|
|
947
947
|
Q.value = !1, $ = null;
|
|
948
948
|
}, 140));
|
|
@@ -950,15 +950,15 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
950
950
|
xe(() => {
|
|
951
951
|
$ && clearTimeout($);
|
|
952
952
|
});
|
|
953
|
-
async function
|
|
953
|
+
async function Bn([e, t], { animated: n = !0 } = {}) {
|
|
954
954
|
let r = Number(e), i = Number(t);
|
|
955
955
|
if (!Number.isFinite(r) || !Number.isFinite(i)) return;
|
|
956
956
|
let a = W([r, i]), o = a?.[0], s = a?.[1];
|
|
957
957
|
if (!Number.isFinite(o) || !Number.isFinite(s)) return;
|
|
958
|
-
let c =
|
|
958
|
+
let c = tn({
|
|
959
959
|
x: o,
|
|
960
960
|
y: s
|
|
961
|
-
}), l =
|
|
961
|
+
}), l = Yt.value ? { ...Yt.value } : {
|
|
962
962
|
x: 0,
|
|
963
963
|
y: 0,
|
|
964
964
|
width: U.value.width,
|
|
@@ -970,13 +970,13 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
970
970
|
height: l.height
|
|
971
971
|
};
|
|
972
972
|
if (!n) {
|
|
973
|
-
|
|
973
|
+
Yt.value = u;
|
|
974
974
|
return;
|
|
975
975
|
}
|
|
976
976
|
let d = { ...l }, f = { ...u }, p = null, ee = (e) => {
|
|
977
977
|
p ??= e;
|
|
978
978
|
let t = Math.min((e - p) / 250, 1);
|
|
979
|
-
|
|
979
|
+
Yt.value = {
|
|
980
980
|
x: d.x + (f.x - d.x) * t,
|
|
981
981
|
y: d.y + (f.y - d.y) * t,
|
|
982
982
|
width: d.width + (f.width - d.width) * t,
|
|
@@ -986,26 +986,26 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
986
986
|
requestAnimationFrame(ee);
|
|
987
987
|
}
|
|
988
988
|
Se(async () => {
|
|
989
|
-
|
|
990
|
-
|
|
989
|
+
bt(), await ve(), requestAnimationFrame(() => {
|
|
990
|
+
k.value || (rn(), (F.value.map.center?.[0] || F.value.map.center?.[1]) && Bn(F.value.map.center, { animated: !1 }));
|
|
991
991
|
});
|
|
992
992
|
}), xe(() => {
|
|
993
|
-
|
|
993
|
+
yt();
|
|
994
994
|
});
|
|
995
|
-
async function
|
|
996
|
-
if (
|
|
997
|
-
config:
|
|
998
|
-
dataset:
|
|
999
|
-
}), !
|
|
995
|
+
async function Vn() {
|
|
996
|
+
if (Ge("copyAlt", {
|
|
997
|
+
config: F.value,
|
|
998
|
+
dataset: pt.value
|
|
999
|
+
}), !F.value.userOptions.callbacks.altCopy) {
|
|
1000
1000
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1001
1001
|
return;
|
|
1002
1002
|
}
|
|
1003
|
-
await Promise.resolve(
|
|
1004
|
-
config:
|
|
1005
|
-
dataset:
|
|
1003
|
+
await Promise.resolve(F.value.userOptions.callbacks.altCopy({
|
|
1004
|
+
config: F.value,
|
|
1005
|
+
dataset: pt.value
|
|
1006
1006
|
}));
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function Hn(e, t) {
|
|
1009
1009
|
let n = G.value;
|
|
1010
1010
|
if (!n.length) return null;
|
|
1011
1011
|
let r = n[e];
|
|
@@ -1020,45 +1020,45 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1020
1020
|
}
|
|
1021
1021
|
return i;
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function Un(e) {
|
|
1024
1024
|
let t = G.value;
|
|
1025
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;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
|
|
1027
|
+
function Wn() {
|
|
1028
|
+
it.value = !0;
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1031
|
-
let e =
|
|
1032
|
-
e ?
|
|
1030
|
+
function Gn() {
|
|
1031
|
+
let e = M.value == null ? null : G.value[M.value];
|
|
1032
|
+
e ? Cn(e, "keyboard") : (M.value = null, N.value = "pointer", Y(), q.value = null), it.value = !1;
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function Kn(e) {
|
|
1035
1035
|
if (!R.value || Z.value || document.activeElement !== R.value || !G.value.length) return;
|
|
1036
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";
|
|
1037
1037
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
1038
1038
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1039
|
-
let e =
|
|
1040
|
-
e ?
|
|
1039
|
+
let e = M.value == null ? null : G.value[M.value];
|
|
1040
|
+
e ? Cn(e, "keyboard") : (M.value = null, N.value = "pointer", Y(), q.value = null);
|
|
1041
1041
|
return;
|
|
1042
1042
|
}
|
|
1043
1043
|
if (a) {
|
|
1044
|
-
let e =
|
|
1044
|
+
let e = M.value == null ? null : G.value[M.value];
|
|
1045
1045
|
if (!e) return;
|
|
1046
|
-
|
|
1046
|
+
Tn(e);
|
|
1047
1047
|
return;
|
|
1048
1048
|
}
|
|
1049
1049
|
let s = t ? "right" : n ? "left" : r ? "down" : "up", c = null;
|
|
1050
|
-
if (
|
|
1050
|
+
if (M.value == null ? c = Un(s) : (c = Hn(M.value, s), c ??= Un(s)), c == null) return;
|
|
1051
1051
|
let l = G.value[c];
|
|
1052
|
-
l &&
|
|
1052
|
+
l && Sn(l, c, "keyboard");
|
|
1053
1053
|
}
|
|
1054
|
-
let
|
|
1054
|
+
let qn = m(() => ({
|
|
1055
1055
|
headers: [
|
|
1056
1056
|
"Name",
|
|
1057
1057
|
"Latitude",
|
|
1058
1058
|
"Longitude",
|
|
1059
1059
|
"Description"
|
|
1060
1060
|
],
|
|
1061
|
-
rows:
|
|
1061
|
+
rows: un.value.map((e) => {
|
|
1062
1062
|
let t = Array.isArray(e.coordinates) ? e.coordinates[1] : null, n = Array.isArray(e.coordinates) ? e.coordinates[0] : null;
|
|
1063
1063
|
return [
|
|
1064
1064
|
e.name ?? "",
|
|
@@ -1069,42 +1069,42 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1069
1069
|
})
|
|
1070
1070
|
}));
|
|
1071
1071
|
return re({
|
|
1072
|
-
getImage:
|
|
1073
|
-
generatePdf:
|
|
1074
|
-
generateImage:
|
|
1075
|
-
generateSvg:
|
|
1076
|
-
toggleTooltip:
|
|
1077
|
-
toggleAnnotator:
|
|
1078
|
-
toggleFullscreen:
|
|
1079
|
-
zoomIn:
|
|
1080
|
-
zoomOut:
|
|
1081
|
-
resetZoom:
|
|
1082
|
-
focusLocation:
|
|
1083
|
-
copyAlt:
|
|
1072
|
+
getImage: In,
|
|
1073
|
+
generatePdf: gt,
|
|
1074
|
+
generateImage: _t,
|
|
1075
|
+
generateSvg: Pn,
|
|
1076
|
+
toggleTooltip: kn,
|
|
1077
|
+
toggleAnnotator: On,
|
|
1078
|
+
toggleFullscreen: at,
|
|
1079
|
+
zoomIn: on,
|
|
1080
|
+
zoomOut: sn,
|
|
1081
|
+
resetZoom: Xt,
|
|
1082
|
+
focusLocation: Bn,
|
|
1083
|
+
copyAlt: Vn
|
|
1084
1084
|
}), (e, t) => (x(), _("div", {
|
|
1085
|
-
class: ye(`vue-data-ui-component vue-ui-geo ${
|
|
1085
|
+
class: ye(`vue-data-ui-component vue-ui-geo ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${z.value ? "vue-ui-geo-responsive" : ""} ${Q.value ? "vue-ui-geo-interacting" : ""}`),
|
|
1086
1086
|
ref_key: "geoChart",
|
|
1087
|
-
ref:
|
|
1088
|
-
id: `map_${
|
|
1087
|
+
ref: O,
|
|
1088
|
+
id: `map_${D.value}`,
|
|
1089
1089
|
dir: "auto",
|
|
1090
1090
|
style: be({
|
|
1091
|
-
fontFamily:
|
|
1091
|
+
fontFamily: F.value.style.fontFamily,
|
|
1092
1092
|
width: "100%",
|
|
1093
|
-
backgroundColor: L.value.
|
|
1093
|
+
backgroundColor: L.value.backgroundColor,
|
|
1094
1094
|
height: z.value ? `${H.value}px` : void 0
|
|
1095
1095
|
})
|
|
1096
1096
|
}, [
|
|
1097
1097
|
v("div", {
|
|
1098
|
-
id: `chart-instructions-${
|
|
1098
|
+
id: `chart-instructions-${D.value}`,
|
|
1099
1099
|
class: "sr-only"
|
|
1100
|
-
}, [v("p", null, we(
|
|
1101
|
-
|
|
1100
|
+
}, [v("p", null, we(F.value.a11y.translations.keyboardNavigation), 1)], 8, ke),
|
|
1101
|
+
qn.value?.rows?.length ? (x(), h(oe, {
|
|
1102
1102
|
key: 0,
|
|
1103
|
-
uid:
|
|
1104
|
-
head:
|
|
1105
|
-
body:
|
|
1106
|
-
notice:
|
|
1107
|
-
caption:
|
|
1103
|
+
uid: D.value,
|
|
1104
|
+
head: qn.value.headers,
|
|
1105
|
+
body: qn.value.rows,
|
|
1106
|
+
notice: F.value.a11y.translations.tableAvailable,
|
|
1107
|
+
caption: F.value.a11y.translations.tableCaption
|
|
1108
1108
|
}, null, 8, [
|
|
1109
1109
|
"uid",
|
|
1110
1110
|
"head",
|
|
@@ -1112,47 +1112,47 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1112
1112
|
"notice",
|
|
1113
1113
|
"caption"
|
|
1114
1114
|
])) : g("", !0),
|
|
1115
|
-
|
|
1115
|
+
xt.value ? (x(), _("div", {
|
|
1116
1116
|
key: 1,
|
|
1117
1117
|
ref_key: "noTitle",
|
|
1118
|
-
ref:
|
|
1118
|
+
ref: $e,
|
|
1119
1119
|
class: "vue-data-ui-no-title-space",
|
|
1120
1120
|
style: "height:36px; width: 100%;background:transparent"
|
|
1121
1121
|
}, null, 512)) : g("", !0),
|
|
1122
|
-
L.value.
|
|
1122
|
+
L.value.title.text ? (x(), _("div", {
|
|
1123
1123
|
key: 2,
|
|
1124
1124
|
ref_key: "chartTitle",
|
|
1125
|
-
ref:
|
|
1125
|
+
ref: Qe,
|
|
1126
1126
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1127
1127
|
}, [(x(), h(ne, {
|
|
1128
|
-
key: `title_${
|
|
1128
|
+
key: `title_${Xe.value}`,
|
|
1129
1129
|
config: {
|
|
1130
1130
|
title: {
|
|
1131
1131
|
cy: "geo-title",
|
|
1132
|
-
...L.value.
|
|
1132
|
+
...L.value.title
|
|
1133
1133
|
},
|
|
1134
1134
|
subtitle: {
|
|
1135
1135
|
cy: "geo-subtitle",
|
|
1136
|
-
...L.value.
|
|
1136
|
+
...L.value.title.subtitle
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
}, null, 8, ["config"]))], 512)) : g("", !0),
|
|
1140
|
-
|
|
1140
|
+
F.value.userOptions.buttons.annotator ? (x(), h(w(Ue), {
|
|
1141
1141
|
key: 3,
|
|
1142
1142
|
svgRef: w(R),
|
|
1143
|
-
backgroundColor: L.value.
|
|
1144
|
-
color: L.value.
|
|
1143
|
+
backgroundColor: L.value.backgroundColor,
|
|
1144
|
+
color: L.value.color,
|
|
1145
1145
|
active: Z.value,
|
|
1146
|
-
isCursorPointer:
|
|
1147
|
-
palette:
|
|
1148
|
-
onClose:
|
|
1146
|
+
isCursorPointer: ct.value,
|
|
1147
|
+
palette: F.value.userOptions.annotatorPalette,
|
|
1148
|
+
onClose: On
|
|
1149
1149
|
}, {
|
|
1150
|
-
"annotator-action-close":
|
|
1151
|
-
"annotator-action-color":
|
|
1152
|
-
"annotator-action-draw":
|
|
1153
|
-
"annotator-action-undo":
|
|
1154
|
-
"annotator-action-redo":
|
|
1155
|
-
"annotator-action-delete":
|
|
1150
|
+
"annotator-action-close": T(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1151
|
+
"annotator-action-color": T(({ color: t }) => [C(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
|
|
1152
|
+
"annotator-action-draw": T(({ mode: t }) => [C(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
|
|
1153
|
+
"annotator-action-undo": T(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
|
|
1154
|
+
"annotator-action-redo": T(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
|
|
1155
|
+
"annotator-action-delete": T(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
|
|
1156
1156
|
_: 3
|
|
1157
1157
|
}, 8, [
|
|
1158
1158
|
"svgRef",
|
|
@@ -1162,47 +1162,47 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1162
1162
|
"isCursorPointer",
|
|
1163
1163
|
"palette"
|
|
1164
1164
|
])) : g("", !0),
|
|
1165
|
-
|
|
1165
|
+
F.value.userOptions.show && (w(ut) || w(lt)) ? (x(), h(w(He), {
|
|
1166
1166
|
ref: "userOptionsRef",
|
|
1167
|
-
key: `user_options_${
|
|
1168
|
-
backgroundColor: L.value.
|
|
1169
|
-
color: L.value.
|
|
1170
|
-
isPrinting: w(
|
|
1171
|
-
isImaging: w(
|
|
1172
|
-
uid:
|
|
1167
|
+
key: `user_options_${Ye.value}`,
|
|
1168
|
+
backgroundColor: L.value.backgroundColor,
|
|
1169
|
+
color: L.value.color,
|
|
1170
|
+
isPrinting: w(mt),
|
|
1171
|
+
isImaging: w(ht),
|
|
1172
|
+
uid: D.value,
|
|
1173
1173
|
hasXls: !1,
|
|
1174
1174
|
hasTable: !1,
|
|
1175
|
-
hasTooltip:
|
|
1176
|
-
hasPdf:
|
|
1177
|
-
hasImg:
|
|
1178
|
-
hasSvg:
|
|
1179
|
-
hasFullscreen:
|
|
1180
|
-
hasAltCopy:
|
|
1181
|
-
hasAnnotator:
|
|
1182
|
-
hasZoom:
|
|
1175
|
+
hasTooltip: F.value.userOptions.buttons.tooltip && L.value.tooltip.show,
|
|
1176
|
+
hasPdf: F.value.userOptions.buttons.pdf,
|
|
1177
|
+
hasImg: F.value.userOptions.buttons.img,
|
|
1178
|
+
hasSvg: F.value.userOptions.buttons.svg,
|
|
1179
|
+
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
1180
|
+
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
1181
|
+
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
1182
|
+
hasZoom: F.value.userOptions.buttons.zoom,
|
|
1183
1183
|
isZoom: B.value,
|
|
1184
|
-
isFullscreen:
|
|
1185
|
-
isTooltip:
|
|
1186
|
-
titles: { ...
|
|
1187
|
-
chartElement:
|
|
1188
|
-
position:
|
|
1184
|
+
isFullscreen: P.value,
|
|
1185
|
+
isTooltip: St.value.showTooltip,
|
|
1186
|
+
titles: { ...F.value.userOptions.buttonTitles },
|
|
1187
|
+
chartElement: O.value,
|
|
1188
|
+
position: F.value.userOptions.position,
|
|
1189
1189
|
isAnnotation: Z.value,
|
|
1190
|
-
callbacks:
|
|
1191
|
-
printScale:
|
|
1192
|
-
isCursorPointer:
|
|
1193
|
-
onToggleFullscreen:
|
|
1194
|
-
onGeneratePdf: w(
|
|
1195
|
-
onGenerateImage: w(
|
|
1196
|
-
onGenerateSvg: w(
|
|
1197
|
-
onToggleTooltip:
|
|
1198
|
-
onToggleAnnotator:
|
|
1199
|
-
onToggleZoom:
|
|
1200
|
-
onCopyAlt:
|
|
1201
|
-
style: be({ visibility: w(
|
|
1190
|
+
callbacks: F.value.userOptions.callbacks,
|
|
1191
|
+
printScale: F.value.userOptions.print.scale,
|
|
1192
|
+
isCursorPointer: ct.value,
|
|
1193
|
+
onToggleFullscreen: at,
|
|
1194
|
+
onGeneratePdf: w(gt),
|
|
1195
|
+
onGenerateImage: w(Fn),
|
|
1196
|
+
onGenerateSvg: w(Pn),
|
|
1197
|
+
onToggleTooltip: kn,
|
|
1198
|
+
onToggleAnnotator: On,
|
|
1199
|
+
onToggleZoom: en,
|
|
1200
|
+
onCopyAlt: Vn,
|
|
1201
|
+
style: be({ visibility: w(ut) ? w(lt) ? "visible" : "hidden" : "visible" })
|
|
1202
1202
|
}, me({ _: 2 }, [
|
|
1203
1203
|
e.$slots.menuIcon ? {
|
|
1204
1204
|
name: "menuIcon",
|
|
1205
|
-
fn:
|
|
1205
|
+
fn: T(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", b(y({
|
|
1206
1206
|
isOpen: t,
|
|
1207
1207
|
color: n
|
|
1208
1208
|
})), void 0, !0)]),
|
|
@@ -1210,27 +1210,27 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1210
1210
|
} : void 0,
|
|
1211
1211
|
e.$slots.optionTooltip ? {
|
|
1212
1212
|
name: "optionTooltip",
|
|
1213
|
-
fn:
|
|
1213
|
+
fn: T(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1214
1214
|
key: "1"
|
|
1215
1215
|
} : void 0,
|
|
1216
1216
|
e.$slots.optionPdf ? {
|
|
1217
1217
|
name: "optionPdf",
|
|
1218
|
-
fn:
|
|
1218
|
+
fn: T(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1219
1219
|
key: "2"
|
|
1220
1220
|
} : void 0,
|
|
1221
1221
|
e.$slots.optionImg ? {
|
|
1222
1222
|
name: "optionImg",
|
|
1223
|
-
fn:
|
|
1223
|
+
fn: T(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1224
1224
|
key: "3"
|
|
1225
1225
|
} : void 0,
|
|
1226
1226
|
e.$slots.optionSvg ? {
|
|
1227
1227
|
name: "optionSvg",
|
|
1228
|
-
fn:
|
|
1228
|
+
fn: T(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1229
1229
|
key: "4"
|
|
1230
1230
|
} : void 0,
|
|
1231
1231
|
e.$slots.optionFullscreen ? {
|
|
1232
1232
|
name: "optionFullscreen",
|
|
1233
|
-
fn:
|
|
1233
|
+
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", b(y({
|
|
1234
1234
|
toggleFullscreen: t,
|
|
1235
1235
|
isFullscreen: n
|
|
1236
1236
|
})), void 0, !0)]),
|
|
@@ -1238,7 +1238,7 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1238
1238
|
} : void 0,
|
|
1239
1239
|
e.$slots.optionAnnotator ? {
|
|
1240
1240
|
name: "optionAnnotator",
|
|
1241
|
-
fn:
|
|
1241
|
+
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", b(y({
|
|
1242
1242
|
toggleAnnotator: t,
|
|
1243
1243
|
isAnnotator: n
|
|
1244
1244
|
})), void 0, !0)]),
|
|
@@ -1246,7 +1246,7 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1246
1246
|
} : void 0,
|
|
1247
1247
|
e.$slots.optionZoom ? {
|
|
1248
1248
|
name: "optionZoom",
|
|
1249
|
-
fn:
|
|
1249
|
+
fn: T(({ toggleZoom: t, isZoomLocked: n }) => [C(e.$slots, "optionZoom", b(y({
|
|
1250
1250
|
toggleZoom: t,
|
|
1251
1251
|
isZoomLocked: n
|
|
1252
1252
|
})), void 0, !0)]),
|
|
@@ -1254,67 +1254,67 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1254
1254
|
} : void 0,
|
|
1255
1255
|
e.$slots.optionAltCopy ? {
|
|
1256
1256
|
name: "optionAltCopy",
|
|
1257
|
-
fn:
|
|
1257
|
+
fn: T(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
|
|
1258
1258
|
key: "8"
|
|
1259
1259
|
} : void 0,
|
|
1260
1260
|
e.$slots["custom-menu-before"] ? {
|
|
1261
1261
|
name: "custom-menu-before",
|
|
1262
|
-
fn:
|
|
1262
|
+
fn: T(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1263
1263
|
key: "9"
|
|
1264
1264
|
} : void 0,
|
|
1265
1265
|
e.$slots["custom-menu-after"] ? {
|
|
1266
1266
|
name: "custom-menu-after",
|
|
1267
|
-
fn:
|
|
1267
|
+
fn: T(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1268
1268
|
key: "10"
|
|
1269
1269
|
} : void 0
|
|
1270
1270
|
]), 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),
|
|
1271
|
-
L.value.
|
|
1271
|
+
L.value.controls.position === "top" && L.value.controls.show && !w(ft) ? (x(), h(ue, {
|
|
1272
1272
|
key: 5,
|
|
1273
1273
|
ref_key: "zoomControlsTop",
|
|
1274
|
-
ref:
|
|
1275
|
-
config:
|
|
1276
|
-
scale: w(
|
|
1277
|
-
isFullscreen:
|
|
1278
|
-
isCursorPointer:
|
|
1279
|
-
onZoomIn:
|
|
1280
|
-
onZoomOut:
|
|
1281
|
-
onResetZoom:
|
|
1274
|
+
ref: tt,
|
|
1275
|
+
config: F.value,
|
|
1276
|
+
scale: w(Qt),
|
|
1277
|
+
isFullscreen: P.value,
|
|
1278
|
+
isCursorPointer: ct.value,
|
|
1279
|
+
onZoomIn: on,
|
|
1280
|
+
onZoomOut: sn,
|
|
1281
|
+
onResetZoom: cn
|
|
1282
1282
|
}, null, 8, [
|
|
1283
1283
|
"config",
|
|
1284
1284
|
"scale",
|
|
1285
1285
|
"isFullscreen",
|
|
1286
1286
|
"isCursorPointer"
|
|
1287
1287
|
])) : g("", !0),
|
|
1288
|
-
v("div",
|
|
1288
|
+
v("div", Ae, [(x(), _("svg", {
|
|
1289
1289
|
ref_key: "svgRef",
|
|
1290
1290
|
ref: R,
|
|
1291
1291
|
xmlns: w(o),
|
|
1292
|
-
viewBox:
|
|
1292
|
+
viewBox: an.value,
|
|
1293
1293
|
preserveAspectRatio: "xMidYMid meet",
|
|
1294
|
-
"aria-describedby": `map-keyboard-instructions-${
|
|
1294
|
+
"aria-describedby": `map-keyboard-instructions-${D.value}`,
|
|
1295
1295
|
tabindex: "0",
|
|
1296
1296
|
style: be({
|
|
1297
1297
|
display: "block",
|
|
1298
1298
|
width: "100%",
|
|
1299
1299
|
height: z.value ? `${H.value}px` : "auto",
|
|
1300
|
-
background: L.value.
|
|
1300
|
+
background: L.value.backgroundColor,
|
|
1301
1301
|
touchAction: B.value ? "none" : "auto",
|
|
1302
1302
|
cursor: B.value ? Q.value ? "grabbing" : "grab" : "default"
|
|
1303
1303
|
}),
|
|
1304
|
-
id: `vue-ui-geo_${
|
|
1305
|
-
onPointerdown:
|
|
1306
|
-
onPointerup:
|
|
1307
|
-
onPointercancel:
|
|
1308
|
-
onPointerleave:
|
|
1309
|
-
onWheel:
|
|
1310
|
-
onFocus:
|
|
1311
|
-
onBlur:
|
|
1312
|
-
onKeydown:
|
|
1313
|
-
}, [he(w(
|
|
1314
|
-
transform:
|
|
1304
|
+
id: `vue-ui-geo_${D.value}`,
|
|
1305
|
+
onPointerdown: Ln,
|
|
1306
|
+
onPointerup: Rn,
|
|
1307
|
+
onPointercancel: Rn,
|
|
1308
|
+
onPointerleave: Rn,
|
|
1309
|
+
onWheel: zn,
|
|
1310
|
+
onFocus: Wn,
|
|
1311
|
+
onBlur: Gn,
|
|
1312
|
+
onKeydown: Kn
|
|
1313
|
+
}, [he(w(We)), v("g", {
|
|
1314
|
+
transform: qt.value.transform,
|
|
1315
1315
|
style: be({ pointerEvents: Q.value ? "none" : "auto" })
|
|
1316
1316
|
}, [
|
|
1317
|
-
v("g", null, [(x(!0), _(pe, null, Ce(
|
|
1317
|
+
v("g", null, [(x(!0), _(pe, null, Ce(Bt.value, (e) => (x(), _("path", {
|
|
1318
1318
|
class: "vue-ui-geo-territory",
|
|
1319
1319
|
key: e.uid,
|
|
1320
1320
|
d: e.path,
|
|
@@ -1322,11 +1322,11 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1322
1322
|
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1323
1323
|
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1324
1324
|
"vector-effect": "non-scaling-stroke",
|
|
1325
|
-
onMouseenter: (t) =>
|
|
1326
|
-
onMouseleave: (t) =>
|
|
1327
|
-
onClick: (t) =>
|
|
1328
|
-
}, null, 40,
|
|
1329
|
-
v("g", null, [(x(!0), _(pe, null, Ce(
|
|
1325
|
+
onMouseenter: (t) => yn(e),
|
|
1326
|
+
onMouseleave: (t) => bn(e),
|
|
1327
|
+
onClick: (t) => xn(e)
|
|
1328
|
+
}, null, 40, Ne))), 128))]),
|
|
1329
|
+
v("g", null, [(x(!0), _(pe, null, Ce(Vt.value, (e) => (x(), _("path", {
|
|
1330
1330
|
class: "vue-ui-geo-territory",
|
|
1331
1331
|
key: e.uid,
|
|
1332
1332
|
d: e.path,
|
|
@@ -1334,11 +1334,11 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1334
1334
|
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1335
1335
|
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1336
1336
|
"vector-effect": "non-scaling-stroke",
|
|
1337
|
-
onMouseenter: (t) =>
|
|
1338
|
-
onMouseleave: (t) =>
|
|
1339
|
-
onClick: (t) =>
|
|
1340
|
-
}, null, 40,
|
|
1341
|
-
v("g", null, [(x(!0), _(pe, null, Ce(
|
|
1337
|
+
onMouseenter: (t) => yn(e),
|
|
1338
|
+
onMouseleave: (t) => bn(e),
|
|
1339
|
+
onClick: (t) => xn(e)
|
|
1340
|
+
}, null, 40, Pe))), 128))]),
|
|
1341
|
+
v("g", null, [(x(!0), _(pe, null, Ce(Ht.value, (e) => (x(), _("circle", {
|
|
1342
1342
|
key: e.uid,
|
|
1343
1343
|
cx: e.x,
|
|
1344
1344
|
cy: e.y,
|
|
@@ -1347,103 +1347,103 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1347
1347
|
stroke: e.stroke,
|
|
1348
1348
|
"stroke-width": e.strokeWidth,
|
|
1349
1349
|
"vector-effect": "non-scaling-stroke",
|
|
1350
|
-
onMouseenter: (t) =>
|
|
1351
|
-
onMouseleave:
|
|
1352
|
-
}, null, 40,
|
|
1353
|
-
(x(!0), _(pe, null, Ce(
|
|
1350
|
+
onMouseenter: (t) => En(e),
|
|
1351
|
+
onMouseleave: Dn
|
|
1352
|
+
}, null, 40, Fe))), 128))]),
|
|
1353
|
+
(x(!0), _(pe, null, Ce(dn.value, (t, n) => (x(), _("g", { key: t.uid }, [C(e.$slots, "datapoint", _e({ ref_for: !0 }, {
|
|
1354
1354
|
point: t,
|
|
1355
|
-
onPointEnter:
|
|
1356
|
-
onPointLeave:
|
|
1357
|
-
onPointClick:
|
|
1355
|
+
onPointEnter: Sn,
|
|
1356
|
+
onPointLeave: Cn,
|
|
1357
|
+
onPointClick: Tn,
|
|
1358
1358
|
highlighted: q.value === t.uid
|
|
1359
1359
|
}), () => [v("circle", {
|
|
1360
1360
|
class: ye({
|
|
1361
1361
|
"vue-ui-geo-point": !0,
|
|
1362
|
-
"vue-ui-geo-point-with-event":
|
|
1362
|
+
"vue-ui-geo-point-with-event": wn.value && ct.value
|
|
1363
1363
|
}),
|
|
1364
1364
|
cx: t.x,
|
|
1365
1365
|
cy: t.y,
|
|
1366
1366
|
r: q.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius,
|
|
1367
1367
|
fill: t.fill,
|
|
1368
|
-
stroke:
|
|
1369
|
-
"stroke-width":
|
|
1368
|
+
stroke: I.value.stroke,
|
|
1369
|
+
"stroke-width": I.value.strokeWidth,
|
|
1370
1370
|
"vector-effect": "non-scaling-stroke",
|
|
1371
|
-
onMouseenter: (e) =>
|
|
1372
|
-
onMouseleave: (e) =>
|
|
1373
|
-
onClick: (e) =>
|
|
1374
|
-
}, null, 42,
|
|
1371
|
+
onMouseenter: (e) => Sn(t, n),
|
|
1372
|
+
onMouseleave: (e) => Cn(t),
|
|
1373
|
+
onClick: (e) => Tn(t)
|
|
1374
|
+
}, null, 42, Ie)], !0), st.value.show ? (x(), _("text", {
|
|
1375
1375
|
key: 0,
|
|
1376
1376
|
class: "vue-ui-geo-point-label",
|
|
1377
1377
|
x: t.x,
|
|
1378
|
-
y: t.y + (q.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius) +
|
|
1378
|
+
y: t.y + (q.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius) + st.value.offsetY + 1 * st.value.fontSizeRatio,
|
|
1379
1379
|
"text-anchor": "middle",
|
|
1380
|
-
fill:
|
|
1381
|
-
"font-size": 1 *
|
|
1382
|
-
}, we(t.name), 9,
|
|
1380
|
+
fill: st.value.color,
|
|
1381
|
+
"font-size": 1 * st.value.fontSizeRatio
|
|
1382
|
+
}, we(t.name), 9, Le)) : g("", !0)]))), 128)),
|
|
1383
1383
|
C(e.$slots, "svg", { svg: {
|
|
1384
|
-
drawingArea:
|
|
1385
|
-
x:
|
|
1386
|
-
y:
|
|
1387
|
-
width:
|
|
1388
|
-
height:
|
|
1389
|
-
isPrintingImg: w(
|
|
1390
|
-
isPrintingSvg: w(
|
|
1384
|
+
drawingArea: an.value,
|
|
1385
|
+
x: Gt.value?.minX ?? 0,
|
|
1386
|
+
y: Gt.value?.minY ?? 0,
|
|
1387
|
+
width: Gt.value?.width ?? 0,
|
|
1388
|
+
height: Gt.value?.height ?? 0,
|
|
1389
|
+
isPrintingImg: w(mt) || w(ht) || w(Mn),
|
|
1390
|
+
isPrintingSvg: w(Nn),
|
|
1391
1391
|
data: {
|
|
1392
|
-
areaPaths:
|
|
1393
|
-
linePaths:
|
|
1394
|
-
geoJsonPoints:
|
|
1395
|
-
projectedPoints:
|
|
1392
|
+
areaPaths: Bt.value,
|
|
1393
|
+
linePaths: Vt.value,
|
|
1394
|
+
geoJsonPoints: Ht.value,
|
|
1395
|
+
projectedPoints: dn.value
|
|
1396
1396
|
}
|
|
1397
1397
|
} }, void 0, !0)
|
|
1398
|
-
], 12,
|
|
1399
|
-
hint:
|
|
1400
|
-
isVisible:
|
|
1398
|
+
], 12, Me)], 44, je)), e.$slots.hint ? (x(), _("div", Re, [C(e.$slots, "hint", b(y({
|
|
1399
|
+
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1400
|
+
isVisible: it.value
|
|
1401
1401
|
})), void 0, !0)])) : g("", !0)]),
|
|
1402
|
-
e.$slots.watermark ? (x(), _("div",
|
|
1403
|
-
L.value.
|
|
1402
|
+
e.$slots.watermark ? (x(), _("div", ze, [C(e.$slots, "watermark", b(y({ isPrinting: w(mt) || w(ht) || w(Mn) || w(Nn) })), void 0, !0)])) : g("", !0),
|
|
1403
|
+
L.value.controls.position === "bottom" && L.value.controls.show && !w(ft) ? (x(), h(ue, {
|
|
1404
1404
|
key: 7,
|
|
1405
1405
|
ref_key: "zoomControlsBottom",
|
|
1406
|
-
ref:
|
|
1407
|
-
config:
|
|
1408
|
-
scale: w(
|
|
1409
|
-
isFullscreen:
|
|
1410
|
-
isCursorPointer:
|
|
1411
|
-
onZoomIn:
|
|
1412
|
-
onZoomOut:
|
|
1413
|
-
onResetZoom:
|
|
1406
|
+
ref: nt,
|
|
1407
|
+
config: F.value,
|
|
1408
|
+
scale: w(Qt),
|
|
1409
|
+
isFullscreen: P.value,
|
|
1410
|
+
isCursorPointer: ct.value,
|
|
1411
|
+
onZoomIn: on,
|
|
1412
|
+
onZoomOut: sn,
|
|
1413
|
+
onResetZoom: cn
|
|
1414
1414
|
}, null, 8, [
|
|
1415
1415
|
"config",
|
|
1416
1416
|
"scale",
|
|
1417
1417
|
"isFullscreen",
|
|
1418
1418
|
"isCursorPointer"
|
|
1419
1419
|
])) : g("", !0),
|
|
1420
|
-
he(w(
|
|
1421
|
-
teleportTo: L.value.
|
|
1422
|
-
show:
|
|
1423
|
-
backgroundColor: L.value.
|
|
1424
|
-
color: L.value.
|
|
1425
|
-
fontSize: L.value.
|
|
1426
|
-
borderRadius: L.value.
|
|
1427
|
-
borderColor: L.value.
|
|
1428
|
-
borderWidth: L.value.
|
|
1429
|
-
backgroundOpacity: L.value.
|
|
1430
|
-
position: L.value.
|
|
1431
|
-
offsetX: L.value.
|
|
1432
|
-
offsetY: L.value.
|
|
1433
|
-
parent:
|
|
1434
|
-
content:
|
|
1420
|
+
he(w(Ve), {
|
|
1421
|
+
teleportTo: L.value.tooltip.teleportTo,
|
|
1422
|
+
show: St.value.showTooltip && pn.value,
|
|
1423
|
+
backgroundColor: L.value.tooltip.backgroundColor,
|
|
1424
|
+
color: L.value.tooltip.color,
|
|
1425
|
+
fontSize: L.value.tooltip.fontSize,
|
|
1426
|
+
borderRadius: L.value.tooltip.borderRadius,
|
|
1427
|
+
borderColor: L.value.tooltip.borderColor,
|
|
1428
|
+
borderWidth: L.value.tooltip.borderWidth,
|
|
1429
|
+
backgroundOpacity: L.value.tooltip.backgroundOpacity,
|
|
1430
|
+
position: L.value.tooltip.position,
|
|
1431
|
+
offsetX: L.value.tooltip.offsetX,
|
|
1432
|
+
offsetY: L.value.tooltip.offsetY,
|
|
1433
|
+
parent: O.value,
|
|
1434
|
+
content: mn.value,
|
|
1435
1435
|
isCustom: K.value,
|
|
1436
|
-
isFullscreen:
|
|
1437
|
-
smooth: L.value.
|
|
1438
|
-
backdropFilter: L.value.
|
|
1439
|
-
smoothForce: L.value.
|
|
1440
|
-
smoothSnapThreshold: L.value.
|
|
1441
|
-
isA11yMode:
|
|
1442
|
-
a11yPosition:
|
|
1436
|
+
isFullscreen: P.value,
|
|
1437
|
+
smooth: L.value.tooltip.smooth,
|
|
1438
|
+
backdropFilter: L.value.tooltip.backdropFilter,
|
|
1439
|
+
smoothForce: L.value.tooltip.smoothForce,
|
|
1440
|
+
smoothSnapThreshold: L.value.tooltip.smoothSnapThreshold,
|
|
1441
|
+
isA11yMode: N.value === "keyboard",
|
|
1442
|
+
a11yPosition: rt.value
|
|
1443
1443
|
}, {
|
|
1444
|
-
"tooltip-before":
|
|
1445
|
-
tooltip:
|
|
1446
|
-
"tooltip-after":
|
|
1444
|
+
"tooltip-before": T(() => [C(e.$slots, "tooltip-before", b(y({ ...Ze.value })), void 0, !0)]),
|
|
1445
|
+
tooltip: T(() => [C(e.$slots, "tooltip", b(y({ ...Ze.value })), void 0, !0)]),
|
|
1446
|
+
"tooltip-after": T(() => [C(e.$slots, "tooltip-after", b(y({ ...Ze.value })), void 0, !0)]),
|
|
1447
1447
|
_: 3
|
|
1448
1448
|
}, 8, [
|
|
1449
1449
|
"teleportTo",
|
|
@@ -1472,12 +1472,12 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1472
1472
|
e.$slots.source ? (x(), _("div", {
|
|
1473
1473
|
key: 8,
|
|
1474
1474
|
ref_key: "source",
|
|
1475
|
-
ref:
|
|
1475
|
+
ref: et,
|
|
1476
1476
|
dir: "auto"
|
|
1477
1477
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1478
|
-
C(e.$slots, "skeleton", {}, () => [w(
|
|
1479
|
-
], 14,
|
|
1478
|
+
C(e.$slots, "skeleton", {}, () => [w(ft) ? (x(), h(d, { key: 0 })) : g("", !0)], !0)
|
|
1479
|
+
], 14, Oe));
|
|
1480
1480
|
}
|
|
1481
|
-
}, [["__scopeId", "data-v-
|
|
1481
|
+
}, [["__scopeId", "data-v-e3b2115d"]]);
|
|
1482
1482
|
//#endregion
|
|
1483
|
-
export {
|
|
1483
|
+
export { De as n, Ve as t };
|