vue-data-ui 3.25.4 → 3.25.6
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/README.md +13 -13
- 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-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
- 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-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.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 +80 -1
- package/dist/types/vue-ui-annotator.d.ts +58 -2
- package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
- package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
- package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
- package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
- package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
- package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
- package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.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-CH8SpxS2.js +0 -1829
- package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
- package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
- package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
- package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
- package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
- package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
- package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
- package/dist/vue-ui-donut-DfiocufT.js +0 -2413
- package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
- package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
- package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
- package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
- package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
- package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
- package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
- package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
- package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
- package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
- package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
- package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
- package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
- package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
- package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
- package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
- package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
- package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
- package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
- package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
- package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
- package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
- package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
- package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
- package/dist/vue-ui-table-BQna1wL6.js +0 -1352
- package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
- package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
- package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
- package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
- package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
- package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
- package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
- package/dist/vue-ui-xy-canvas-B_8Mu19r.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-ur6jKRL5.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,95 +1112,97 @@ 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
|
-
|
|
1146
|
+
isCursorPointer: ct.value,
|
|
1147
|
+
palette: F.value.userOptions.annotatorPalette,
|
|
1148
|
+
onClose: On
|
|
1148
1149
|
}, {
|
|
1149
|
-
"annotator-action-close":
|
|
1150
|
-
"annotator-action-color":
|
|
1151
|
-
"annotator-action-draw":
|
|
1152
|
-
"annotator-action-undo":
|
|
1153
|
-
"annotator-action-redo":
|
|
1154
|
-
"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)]),
|
|
1155
1156
|
_: 3
|
|
1156
1157
|
}, 8, [
|
|
1157
1158
|
"svgRef",
|
|
1158
1159
|
"backgroundColor",
|
|
1159
1160
|
"color",
|
|
1160
1161
|
"active",
|
|
1161
|
-
"isCursorPointer"
|
|
1162
|
+
"isCursorPointer",
|
|
1163
|
+
"palette"
|
|
1162
1164
|
])) : g("", !0),
|
|
1163
|
-
|
|
1165
|
+
F.value.userOptions.show && (w(ut) || w(lt)) ? (x(), h(w(He), {
|
|
1164
1166
|
ref: "userOptionsRef",
|
|
1165
|
-
key: `user_options_${
|
|
1166
|
-
backgroundColor: L.value.
|
|
1167
|
-
color: L.value.
|
|
1168
|
-
isPrinting: w(
|
|
1169
|
-
isImaging: w(
|
|
1170
|
-
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,
|
|
1171
1173
|
hasXls: !1,
|
|
1172
1174
|
hasTable: !1,
|
|
1173
|
-
hasTooltip:
|
|
1174
|
-
hasPdf:
|
|
1175
|
-
hasImg:
|
|
1176
|
-
hasSvg:
|
|
1177
|
-
hasFullscreen:
|
|
1178
|
-
hasAltCopy:
|
|
1179
|
-
hasAnnotator:
|
|
1180
|
-
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,
|
|
1181
1183
|
isZoom: B.value,
|
|
1182
|
-
isFullscreen:
|
|
1183
|
-
isTooltip:
|
|
1184
|
-
titles: { ...
|
|
1185
|
-
chartElement:
|
|
1186
|
-
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,
|
|
1187
1189
|
isAnnotation: Z.value,
|
|
1188
|
-
callbacks:
|
|
1189
|
-
printScale:
|
|
1190
|
-
isCursorPointer:
|
|
1191
|
-
onToggleFullscreen:
|
|
1192
|
-
onGeneratePdf: w(
|
|
1193
|
-
onGenerateImage: w(
|
|
1194
|
-
onGenerateSvg: w(
|
|
1195
|
-
onToggleTooltip:
|
|
1196
|
-
onToggleAnnotator:
|
|
1197
|
-
onToggleZoom:
|
|
1198
|
-
onCopyAlt:
|
|
1199
|
-
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" })
|
|
1200
1202
|
}, me({ _: 2 }, [
|
|
1201
1203
|
e.$slots.menuIcon ? {
|
|
1202
1204
|
name: "menuIcon",
|
|
1203
|
-
fn:
|
|
1205
|
+
fn: T(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", b(y({
|
|
1204
1206
|
isOpen: t,
|
|
1205
1207
|
color: n
|
|
1206
1208
|
})), void 0, !0)]),
|
|
@@ -1208,27 +1210,27 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1208
1210
|
} : void 0,
|
|
1209
1211
|
e.$slots.optionTooltip ? {
|
|
1210
1212
|
name: "optionTooltip",
|
|
1211
|
-
fn:
|
|
1213
|
+
fn: T(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1212
1214
|
key: "1"
|
|
1213
1215
|
} : void 0,
|
|
1214
1216
|
e.$slots.optionPdf ? {
|
|
1215
1217
|
name: "optionPdf",
|
|
1216
|
-
fn:
|
|
1218
|
+
fn: T(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1217
1219
|
key: "2"
|
|
1218
1220
|
} : void 0,
|
|
1219
1221
|
e.$slots.optionImg ? {
|
|
1220
1222
|
name: "optionImg",
|
|
1221
|
-
fn:
|
|
1223
|
+
fn: T(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1222
1224
|
key: "3"
|
|
1223
1225
|
} : void 0,
|
|
1224
1226
|
e.$slots.optionSvg ? {
|
|
1225
1227
|
name: "optionSvg",
|
|
1226
|
-
fn:
|
|
1228
|
+
fn: T(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1227
1229
|
key: "4"
|
|
1228
1230
|
} : void 0,
|
|
1229
1231
|
e.$slots.optionFullscreen ? {
|
|
1230
1232
|
name: "optionFullscreen",
|
|
1231
|
-
fn:
|
|
1233
|
+
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", b(y({
|
|
1232
1234
|
toggleFullscreen: t,
|
|
1233
1235
|
isFullscreen: n
|
|
1234
1236
|
})), void 0, !0)]),
|
|
@@ -1236,7 +1238,7 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1236
1238
|
} : void 0,
|
|
1237
1239
|
e.$slots.optionAnnotator ? {
|
|
1238
1240
|
name: "optionAnnotator",
|
|
1239
|
-
fn:
|
|
1241
|
+
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", b(y({
|
|
1240
1242
|
toggleAnnotator: t,
|
|
1241
1243
|
isAnnotator: n
|
|
1242
1244
|
})), void 0, !0)]),
|
|
@@ -1244,7 +1246,7 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1244
1246
|
} : void 0,
|
|
1245
1247
|
e.$slots.optionZoom ? {
|
|
1246
1248
|
name: "optionZoom",
|
|
1247
|
-
fn:
|
|
1249
|
+
fn: T(({ toggleZoom: t, isZoomLocked: n }) => [C(e.$slots, "optionZoom", b(y({
|
|
1248
1250
|
toggleZoom: t,
|
|
1249
1251
|
isZoomLocked: n
|
|
1250
1252
|
})), void 0, !0)]),
|
|
@@ -1252,67 +1254,67 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1252
1254
|
} : void 0,
|
|
1253
1255
|
e.$slots.optionAltCopy ? {
|
|
1254
1256
|
name: "optionAltCopy",
|
|
1255
|
-
fn:
|
|
1257
|
+
fn: T(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
|
|
1256
1258
|
key: "8"
|
|
1257
1259
|
} : void 0,
|
|
1258
1260
|
e.$slots["custom-menu-before"] ? {
|
|
1259
1261
|
name: "custom-menu-before",
|
|
1260
|
-
fn:
|
|
1262
|
+
fn: T(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1261
1263
|
key: "9"
|
|
1262
1264
|
} : void 0,
|
|
1263
1265
|
e.$slots["custom-menu-after"] ? {
|
|
1264
1266
|
name: "custom-menu-after",
|
|
1265
|
-
fn:
|
|
1267
|
+
fn: T(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1266
1268
|
key: "10"
|
|
1267
1269
|
} : void 0
|
|
1268
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),
|
|
1269
|
-
L.value.
|
|
1271
|
+
L.value.controls.position === "top" && L.value.controls.show && !w(ft) ? (x(), h(ue, {
|
|
1270
1272
|
key: 5,
|
|
1271
1273
|
ref_key: "zoomControlsTop",
|
|
1272
|
-
ref:
|
|
1273
|
-
config:
|
|
1274
|
-
scale: w(
|
|
1275
|
-
isFullscreen:
|
|
1276
|
-
isCursorPointer:
|
|
1277
|
-
onZoomIn:
|
|
1278
|
-
onZoomOut:
|
|
1279
|
-
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
|
|
1280
1282
|
}, null, 8, [
|
|
1281
1283
|
"config",
|
|
1282
1284
|
"scale",
|
|
1283
1285
|
"isFullscreen",
|
|
1284
1286
|
"isCursorPointer"
|
|
1285
1287
|
])) : g("", !0),
|
|
1286
|
-
v("div",
|
|
1288
|
+
v("div", Ae, [(x(), _("svg", {
|
|
1287
1289
|
ref_key: "svgRef",
|
|
1288
1290
|
ref: R,
|
|
1289
1291
|
xmlns: w(o),
|
|
1290
|
-
viewBox:
|
|
1292
|
+
viewBox: an.value,
|
|
1291
1293
|
preserveAspectRatio: "xMidYMid meet",
|
|
1292
|
-
"aria-describedby": `map-keyboard-instructions-${
|
|
1294
|
+
"aria-describedby": `map-keyboard-instructions-${D.value}`,
|
|
1293
1295
|
tabindex: "0",
|
|
1294
1296
|
style: be({
|
|
1295
1297
|
display: "block",
|
|
1296
1298
|
width: "100%",
|
|
1297
1299
|
height: z.value ? `${H.value}px` : "auto",
|
|
1298
|
-
background: L.value.
|
|
1300
|
+
background: L.value.backgroundColor,
|
|
1299
1301
|
touchAction: B.value ? "none" : "auto",
|
|
1300
1302
|
cursor: B.value ? Q.value ? "grabbing" : "grab" : "default"
|
|
1301
1303
|
}),
|
|
1302
|
-
id: `vue-ui-geo_${
|
|
1303
|
-
onPointerdown:
|
|
1304
|
-
onPointerup:
|
|
1305
|
-
onPointercancel:
|
|
1306
|
-
onPointerleave:
|
|
1307
|
-
onWheel:
|
|
1308
|
-
onFocus:
|
|
1309
|
-
onBlur:
|
|
1310
|
-
onKeydown:
|
|
1311
|
-
}, [he(w(
|
|
1312
|
-
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,
|
|
1313
1315
|
style: be({ pointerEvents: Q.value ? "none" : "auto" })
|
|
1314
1316
|
}, [
|
|
1315
|
-
v("g", null, [(x(!0), _(pe, null, Ce(
|
|
1317
|
+
v("g", null, [(x(!0), _(pe, null, Ce(Bt.value, (e) => (x(), _("path", {
|
|
1316
1318
|
class: "vue-ui-geo-territory",
|
|
1317
1319
|
key: e.uid,
|
|
1318
1320
|
d: e.path,
|
|
@@ -1320,11 +1322,11 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1320
1322
|
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1321
1323
|
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1322
1324
|
"vector-effect": "non-scaling-stroke",
|
|
1323
|
-
onMouseenter: (t) =>
|
|
1324
|
-
onMouseleave: (t) =>
|
|
1325
|
-
onClick: (t) =>
|
|
1326
|
-
}, null, 40,
|
|
1327
|
-
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", {
|
|
1328
1330
|
class: "vue-ui-geo-territory",
|
|
1329
1331
|
key: e.uid,
|
|
1330
1332
|
d: e.path,
|
|
@@ -1332,11 +1334,11 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1332
1334
|
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1333
1335
|
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1334
1336
|
"vector-effect": "non-scaling-stroke",
|
|
1335
|
-
onMouseenter: (t) =>
|
|
1336
|
-
onMouseleave: (t) =>
|
|
1337
|
-
onClick: (t) =>
|
|
1338
|
-
}, null, 40,
|
|
1339
|
-
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", {
|
|
1340
1342
|
key: e.uid,
|
|
1341
1343
|
cx: e.x,
|
|
1342
1344
|
cy: e.y,
|
|
@@ -1345,103 +1347,103 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1345
1347
|
stroke: e.stroke,
|
|
1346
1348
|
"stroke-width": e.strokeWidth,
|
|
1347
1349
|
"vector-effect": "non-scaling-stroke",
|
|
1348
|
-
onMouseenter: (t) =>
|
|
1349
|
-
onMouseleave:
|
|
1350
|
-
}, null, 40,
|
|
1351
|
-
(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 }, {
|
|
1352
1354
|
point: t,
|
|
1353
|
-
onPointEnter:
|
|
1354
|
-
onPointLeave:
|
|
1355
|
-
onPointClick:
|
|
1355
|
+
onPointEnter: Sn,
|
|
1356
|
+
onPointLeave: Cn,
|
|
1357
|
+
onPointClick: Tn,
|
|
1356
1358
|
highlighted: q.value === t.uid
|
|
1357
1359
|
}), () => [v("circle", {
|
|
1358
1360
|
class: ye({
|
|
1359
1361
|
"vue-ui-geo-point": !0,
|
|
1360
|
-
"vue-ui-geo-point-with-event":
|
|
1362
|
+
"vue-ui-geo-point-with-event": wn.value && ct.value
|
|
1361
1363
|
}),
|
|
1362
1364
|
cx: t.x,
|
|
1363
1365
|
cy: t.y,
|
|
1364
1366
|
r: q.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius,
|
|
1365
1367
|
fill: t.fill,
|
|
1366
|
-
stroke:
|
|
1367
|
-
"stroke-width":
|
|
1368
|
+
stroke: I.value.stroke,
|
|
1369
|
+
"stroke-width": I.value.strokeWidth,
|
|
1368
1370
|
"vector-effect": "non-scaling-stroke",
|
|
1369
|
-
onMouseenter: (e) =>
|
|
1370
|
-
onMouseleave: (e) =>
|
|
1371
|
-
onClick: (e) =>
|
|
1372
|
-
}, 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", {
|
|
1373
1375
|
key: 0,
|
|
1374
1376
|
class: "vue-ui-geo-point-label",
|
|
1375
1377
|
x: t.x,
|
|
1376
|
-
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,
|
|
1377
1379
|
"text-anchor": "middle",
|
|
1378
|
-
fill:
|
|
1379
|
-
"font-size": 1 *
|
|
1380
|
-
}, 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)),
|
|
1381
1383
|
C(e.$slots, "svg", { svg: {
|
|
1382
|
-
drawingArea:
|
|
1383
|
-
x:
|
|
1384
|
-
y:
|
|
1385
|
-
width:
|
|
1386
|
-
height:
|
|
1387
|
-
isPrintingImg: w(
|
|
1388
|
-
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),
|
|
1389
1391
|
data: {
|
|
1390
|
-
areaPaths:
|
|
1391
|
-
linePaths:
|
|
1392
|
-
geoJsonPoints:
|
|
1393
|
-
projectedPoints:
|
|
1392
|
+
areaPaths: Bt.value,
|
|
1393
|
+
linePaths: Vt.value,
|
|
1394
|
+
geoJsonPoints: Ht.value,
|
|
1395
|
+
projectedPoints: dn.value
|
|
1394
1396
|
}
|
|
1395
1397
|
} }, void 0, !0)
|
|
1396
|
-
], 12,
|
|
1397
|
-
hint:
|
|
1398
|
-
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
|
|
1399
1401
|
})), void 0, !0)])) : g("", !0)]),
|
|
1400
|
-
e.$slots.watermark ? (x(), _("div",
|
|
1401
|
-
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, {
|
|
1402
1404
|
key: 7,
|
|
1403
1405
|
ref_key: "zoomControlsBottom",
|
|
1404
|
-
ref:
|
|
1405
|
-
config:
|
|
1406
|
-
scale: w(
|
|
1407
|
-
isFullscreen:
|
|
1408
|
-
isCursorPointer:
|
|
1409
|
-
onZoomIn:
|
|
1410
|
-
onZoomOut:
|
|
1411
|
-
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
|
|
1412
1414
|
}, null, 8, [
|
|
1413
1415
|
"config",
|
|
1414
1416
|
"scale",
|
|
1415
1417
|
"isFullscreen",
|
|
1416
1418
|
"isCursorPointer"
|
|
1417
1419
|
])) : g("", !0),
|
|
1418
|
-
he(w(
|
|
1419
|
-
teleportTo: L.value.
|
|
1420
|
-
show:
|
|
1421
|
-
backgroundColor: L.value.
|
|
1422
|
-
color: L.value.
|
|
1423
|
-
fontSize: L.value.
|
|
1424
|
-
borderRadius: L.value.
|
|
1425
|
-
borderColor: L.value.
|
|
1426
|
-
borderWidth: L.value.
|
|
1427
|
-
backgroundOpacity: L.value.
|
|
1428
|
-
position: L.value.
|
|
1429
|
-
offsetX: L.value.
|
|
1430
|
-
offsetY: L.value.
|
|
1431
|
-
parent:
|
|
1432
|
-
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,
|
|
1433
1435
|
isCustom: K.value,
|
|
1434
|
-
isFullscreen:
|
|
1435
|
-
smooth: L.value.
|
|
1436
|
-
backdropFilter: L.value.
|
|
1437
|
-
smoothForce: L.value.
|
|
1438
|
-
smoothSnapThreshold: L.value.
|
|
1439
|
-
isA11yMode:
|
|
1440
|
-
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
|
|
1441
1443
|
}, {
|
|
1442
|
-
"tooltip-before":
|
|
1443
|
-
tooltip:
|
|
1444
|
-
"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)]),
|
|
1445
1447
|
_: 3
|
|
1446
1448
|
}, 8, [
|
|
1447
1449
|
"teleportTo",
|
|
@@ -1470,12 +1472,12 @@ var Ee = /* @__PURE__ */ e({ default: () => Be }), De = ["id"], Oe = ["id"], ke
|
|
|
1470
1472
|
e.$slots.source ? (x(), _("div", {
|
|
1471
1473
|
key: 8,
|
|
1472
1474
|
ref_key: "source",
|
|
1473
|
-
ref:
|
|
1475
|
+
ref: et,
|
|
1474
1476
|
dir: "auto"
|
|
1475
1477
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1476
|
-
C(e.$slots, "skeleton", {}, () => [w(
|
|
1477
|
-
], 14,
|
|
1478
|
+
C(e.$slots, "skeleton", {}, () => [w(ft) ? (x(), h(d, { key: 0 })) : g("", !0)], !0)
|
|
1479
|
+
], 14, Oe));
|
|
1478
1480
|
}
|
|
1479
|
-
}, [["__scopeId", "data-v-
|
|
1481
|
+
}, [["__scopeId", "data-v-e3b2115d"]]);
|
|
1480
1482
|
//#endregion
|
|
1481
|
-
export {
|
|
1483
|
+
export { De as n, Ve as t };
|