vue-data-ui 3.22.13 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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 +2 -0
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-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/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as c } from "./
|
|
5
|
-
import {
|
|
6
|
-
import { t as d } from "./
|
|
7
|
-
import { t as f } from "./
|
|
8
|
-
import { t as p } from "./
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
2
|
+
import { Gt as t, Jt as n, S as r, q as i, t as a, xt as o } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as s } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as c } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as l } from "./usePrinter-BFvi4jVy.js";
|
|
6
|
+
import { n as u, t as d } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as f } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
|
+
import { t as p } from "./useNestedProp--NSEmhOH.js";
|
|
9
|
+
import { t as m } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as ee } from "./img-DIQG5q8T.js";
|
|
11
|
+
import { n as te } from "./Title-BODtwViI.js";
|
|
11
12
|
import { t as ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
13
|
import { l as re, t as ie } from "./useResponsive-ZtArZtUf.js";
|
|
13
14
|
import { t as ae } from "./A11yDataTable-DdRsVULz.js";
|
|
14
15
|
import { t as oe } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
16
|
import { t as se } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
17
|
import { t as ce } from "./usePanZoom-CYU3B4T3.js";
|
|
17
|
-
import { t as le } from "./BaseZoomControls-
|
|
18
|
+
import { t as le } from "./BaseZoomControls-rdzlicuz.js";
|
|
18
19
|
import { t as ue } from "./geoProjections-BCP_PoiB.js";
|
|
19
20
|
import { t as de } from "./vue_ui_geo-B8TODs-G.js";
|
|
20
|
-
import { Fragment as fe, computed as
|
|
21
|
+
import { Fragment as fe, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as pe, createVNode as me, defineAsyncComponent as he, guardReactiveProps as b, mergeProps as ge, nextTick as x, normalizeClass as _e, normalizeProps as S, normalizeStyle as ve, onBeforeUnmount as ye, onMounted as be, openBlock as C, ref as w, renderList as xe, renderSlot as T, toDisplayString as Se, toRefs as Ce, unref as E, watch as we, withCtx as D } from "vue";
|
|
21
22
|
//#region src/components/vue-ui-geo.vue
|
|
22
23
|
var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe = { style: { position: "relative" } }, ke = [
|
|
23
24
|
"xmlns",
|
|
@@ -93,30 +94,44 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
93
94
|
},
|
|
94
95
|
emits: ["copyAlt"],
|
|
95
96
|
setup(e, { expose: ne, emit: Te }) {
|
|
96
|
-
let ze = he(() => import("./Tooltip-
|
|
97
|
+
let ze = he(() => import("./Tooltip-CMTGxeYO.js")), Be = he(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Ve = he(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), He = he(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), O = e, Ue = Te, { vue_ui_geo: We } = c(), { isThemeValid: Ge, warnInvalidTheme: Ke } = m(), k = w(i()), qe = w(0), Je = w(0), Ye = w(!1), Xe = w(!1), A = w(null), j = w(!1), Ze = w(null), Qe = w(null), $e = w(null), et = w(null), M = w(null), N = w(null), tt = w(null), nt = w(null), P = w(null), rt = w({
|
|
97
98
|
x: 0,
|
|
98
99
|
y: 0
|
|
99
|
-
}), F =
|
|
100
|
-
function
|
|
100
|
+
}), F = w("pointer"), it = w(!1), I = w(!1);
|
|
101
|
+
function at(e) {
|
|
101
102
|
I.value = e, qe.value += 1;
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
-
let e =
|
|
105
|
-
userConfig:
|
|
104
|
+
function ot() {
|
|
105
|
+
let e = p({
|
|
106
|
+
userConfig: O.config,
|
|
106
107
|
defaultConfig: We
|
|
107
108
|
}), t = e.theme;
|
|
108
109
|
if (!t) return e;
|
|
109
110
|
if (!Ge.value(e)) return Ke(e), e;
|
|
110
|
-
let n =
|
|
111
|
-
userConfig: de[t] ||
|
|
111
|
+
let n = p({
|
|
112
|
+
userConfig: de[t] || O.config,
|
|
112
113
|
defaultConfig: e
|
|
113
114
|
});
|
|
114
|
-
return
|
|
115
|
-
userConfig:
|
|
115
|
+
return p({
|
|
116
|
+
userConfig: O.config,
|
|
116
117
|
defaultConfig: n
|
|
117
118
|
});
|
|
118
119
|
}
|
|
119
|
-
let L =
|
|
120
|
+
let L = w(ot());
|
|
121
|
+
s({
|
|
122
|
+
config: () => L.value,
|
|
123
|
+
dataset: () => O.dataset,
|
|
124
|
+
component: "VueUiGeo",
|
|
125
|
+
rules: [{
|
|
126
|
+
test: (e) => e.length > 100,
|
|
127
|
+
message: [
|
|
128
|
+
"👀 The number of data points > 100, which can make the chart hard to read. Consider:",
|
|
129
|
+
"",
|
|
130
|
+
"▶️ Using filters to reduce the number of data points displayed at the same time, and offer users some level of control."
|
|
131
|
+
]
|
|
132
|
+
}]
|
|
133
|
+
});
|
|
134
|
+
let st = h(() => L.value.userOptions.useCursorPointer), { userOptionsVisible: ct, keepUserOptionState: lt } = oe({ config: L.value }), { svgRef: R } = se({ config: L.value.style.chart.title }), ut = h(() => n({
|
|
120
135
|
defaultConfig: {
|
|
121
136
|
map: { geoJson: {
|
|
122
137
|
type: "FeatureCollection",
|
|
@@ -190,59 +205,59 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
190
205
|
} }
|
|
191
206
|
},
|
|
192
207
|
userConfig: L.value.skeletonConfig ?? {}
|
|
193
|
-
})), { loading:
|
|
194
|
-
...Ce(
|
|
208
|
+
})), { loading: dt, FINAL_DATASET: ft } = u({
|
|
209
|
+
...Ce(O),
|
|
195
210
|
FINAL_CONFIG: L,
|
|
196
|
-
prepareConfig:
|
|
211
|
+
prepareConfig: ot,
|
|
197
212
|
allowEmptyDataset: !0,
|
|
198
|
-
skeletonDataset:
|
|
199
|
-
skeletonConfig:
|
|
213
|
+
skeletonDataset: O.config?.skeletonDataset ?? [],
|
|
214
|
+
skeletonConfig: n({
|
|
200
215
|
defaultConfig: L.value,
|
|
201
|
-
userConfig:
|
|
216
|
+
userConfig: ut.value
|
|
202
217
|
})
|
|
203
|
-
}), { isPrinting:
|
|
204
|
-
elementId: `vue-ui-geo_${
|
|
218
|
+
}), { isPrinting: pt, isImaging: mt, generatePdf: ht, generateImage: gt } = l({
|
|
219
|
+
elementId: `vue-ui-geo_${k.value}`,
|
|
205
220
|
fileName: L.value.style.chart.title.text || "vue-ui-geo",
|
|
206
221
|
options: L.value.userOptions.print
|
|
207
|
-
}),
|
|
208
|
-
function
|
|
222
|
+
}), _t = h(() => L.value.style.chart.controls.show ? L.value.style.chart.controls.position === "top" ? tt.value?.$el ?? null : L.value.style.chart.controls.position === "bottom" ? nt.value?.$el ?? null : null : null);
|
|
223
|
+
function vt() {
|
|
209
224
|
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect(), M.value = null, N.value = null);
|
|
210
225
|
}
|
|
211
|
-
let z =
|
|
226
|
+
let z = h(() => !!L.value.responsive && !I.value);
|
|
212
227
|
we(() => I.value, async (e) => {
|
|
213
228
|
if (e) {
|
|
214
|
-
|
|
215
|
-
|
|
229
|
+
vt(), V.value = Number(L.value.style.chart.dimensions.width) || V.value, H.value = Number(L.value.style.chart.dimensions.height) || H.value, await x(), j.value = !1, requestAnimationFrame(() => {
|
|
230
|
+
j.value || nn();
|
|
216
231
|
});
|
|
217
232
|
return;
|
|
218
233
|
}
|
|
219
|
-
L.value.responsive && (await
|
|
234
|
+
L.value.responsive && (await x(), yt());
|
|
220
235
|
});
|
|
221
|
-
function
|
|
222
|
-
if (
|
|
236
|
+
function yt() {
|
|
237
|
+
if (vt(), !z.value) return;
|
|
223
238
|
let e = re(() => {
|
|
224
|
-
if (!
|
|
239
|
+
if (!A.value) return;
|
|
225
240
|
let { width: e, height: t } = ie({
|
|
226
|
-
chart:
|
|
227
|
-
noTitle:
|
|
228
|
-
title: L.value.style.chart.title.text ?
|
|
229
|
-
legend:
|
|
230
|
-
source:
|
|
241
|
+
chart: A.value,
|
|
242
|
+
noTitle: bt.value ? $e.value : null,
|
|
243
|
+
title: L.value.style.chart.title.text ? Qe.value : null,
|
|
244
|
+
legend: _t.value,
|
|
245
|
+
source: et.value
|
|
231
246
|
});
|
|
232
247
|
requestAnimationFrame(() => {
|
|
233
248
|
V.value = Math.max(.1, Number(e) || .1), H.value = Math.max(.1, Number(t) || .1) - 24;
|
|
234
249
|
});
|
|
235
250
|
});
|
|
236
|
-
M.value = new ResizeObserver(e), N.value =
|
|
251
|
+
M.value = new ResizeObserver(e), N.value = A.value ? A.value.parentNode : null, N.value && M.value.observe(N.value), e();
|
|
237
252
|
}
|
|
238
|
-
let
|
|
239
|
-
we(() =>
|
|
240
|
-
L.value =
|
|
253
|
+
let bt = h(() => L.value.userOptions.show && !L.value.style.chart.title.text), xt = w({ showTooltip: L.value.style.chart.tooltip.show }), B = w(L.value.style.chart.zoom.active);
|
|
254
|
+
we(() => O.config, () => {
|
|
255
|
+
L.value = ot(), xt.value.showTooltip = L.value.style.chart.tooltip.show, B.value = L.value.style.chart.zoom.active, V.value = L.value.style.chart.dimensions.width, H.value = L.value.style.chart.dimensions.height, yt(), Je.value += 1, qe.value += 1;
|
|
241
256
|
}, { deep: !0 });
|
|
242
|
-
let { projections:
|
|
243
|
-
let e =
|
|
244
|
-
return typeof e == "function" ? e :
|
|
245
|
-
}),
|
|
257
|
+
let { projections: St } = ue, Ct = h(() => L.value?.projection || "equirectangular"), wt = h(() => {
|
|
258
|
+
let e = St?.[Ct.value];
|
|
259
|
+
return typeof e == "function" ? e : St.equirectangular;
|
|
260
|
+
}), Tt = h(() => L.value.map.geoJson ?? null), Et = {
|
|
246
261
|
aitoff: {
|
|
247
262
|
width: 1e3,
|
|
248
263
|
height: 500
|
|
@@ -295,14 +310,14 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
295
310
|
width: 1e3,
|
|
296
311
|
height: 1e3
|
|
297
312
|
}
|
|
298
|
-
}, V =
|
|
299
|
-
let e =
|
|
313
|
+
}, V = w(L.value.style.chart.dimensions.width), H = w(L.value.style.chart.dimensions.height), Dt = h(() => {
|
|
314
|
+
let e = Et[Ct.value] || Et.equirectangular;
|
|
300
315
|
return {
|
|
301
316
|
width: e.width,
|
|
302
317
|
height: e.height
|
|
303
318
|
};
|
|
304
|
-
}), U =
|
|
305
|
-
let e =
|
|
319
|
+
}), U = h(() => {
|
|
320
|
+
let e = Dt.value, t = V.value, n = H.value, r = Number.isFinite(t) && t > 0, i = Number.isFinite(n) && n > 0;
|
|
306
321
|
return r && i ? {
|
|
307
322
|
width: t,
|
|
308
323
|
height: n
|
|
@@ -316,16 +331,16 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
316
331
|
width: e.width,
|
|
317
332
|
height: e.height
|
|
318
333
|
};
|
|
319
|
-
}),
|
|
334
|
+
}), Ot = h(() => {
|
|
320
335
|
let e = L.value?.map?.center, t = [0, 0];
|
|
321
336
|
if (!Array.isArray(e) || e.length !== 2) return t;
|
|
322
337
|
let n = Number(e[0]), r = Number(e[1]);
|
|
323
338
|
return !Number.isFinite(n) || !Number.isFinite(r) ? t : [n, r];
|
|
324
339
|
});
|
|
325
340
|
function W([e, t]) {
|
|
326
|
-
return
|
|
341
|
+
return wt.value([e, t], Dt.value.width, Dt.value.height, Ot.value);
|
|
327
342
|
}
|
|
328
|
-
function
|
|
343
|
+
function kt(e, t = {}) {
|
|
329
344
|
let { defaultName: n = "", namePropertyCandidates: r = [
|
|
330
345
|
"name",
|
|
331
346
|
"nom",
|
|
@@ -439,7 +454,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
439
454
|
features: f
|
|
440
455
|
};
|
|
441
456
|
}
|
|
442
|
-
function
|
|
457
|
+
function At(e) {
|
|
443
458
|
let t = Array.isArray(e?.features) ? e.features : [];
|
|
444
459
|
function n(e) {
|
|
445
460
|
if (!e || typeof e != "object") return "";
|
|
@@ -472,18 +487,18 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
472
487
|
geometry: e.geometry,
|
|
473
488
|
properties: r,
|
|
474
489
|
name: i,
|
|
475
|
-
uid: `map-feature-${
|
|
490
|
+
uid: `map-feature-${k.value}-${t}`,
|
|
476
491
|
index: t
|
|
477
492
|
};
|
|
478
493
|
});
|
|
479
494
|
}
|
|
480
|
-
let
|
|
495
|
+
let jt = h(() => kt(Tt.value, {
|
|
481
496
|
defaultName: "",
|
|
482
497
|
includeNullGeometries: !1
|
|
483
|
-
})),
|
|
484
|
-
function
|
|
498
|
+
})), Mt = h(() => At(jt.value));
|
|
499
|
+
function Nt(e) {
|
|
485
500
|
if (!e || typeof e.type != "string") return "";
|
|
486
|
-
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) => Nt(e)).filter(Boolean).join(" ");
|
|
487
502
|
let t = (e) => {
|
|
488
503
|
if (!Array.isArray(e) || e.length < 2) return null;
|
|
489
504
|
let t = Number(e[0]), n = Number(e[1]);
|
|
@@ -501,46 +516,46 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
501
516
|
}).filter(Boolean).join(" ");
|
|
502
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(" ") : "";
|
|
503
518
|
}
|
|
504
|
-
function Nt(e) {
|
|
505
|
-
return e ? e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).flatMap((e) => Nt(e)) : e.type === "Point" ? Array.isArray(e.coordinates) ? [e.coordinates] : [] : e.type === "MultiPoint" && Array.isArray(e.coordinates) ? e.coordinates : [] : [];
|
|
506
|
-
}
|
|
507
519
|
function Pt(e) {
|
|
508
|
-
return
|
|
520
|
+
return e ? e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).flatMap((e) => Pt(e)) : e.type === "Point" ? Array.isArray(e.coordinates) ? [e.coordinates] : [] : e.type === "MultiPoint" && Array.isArray(e.coordinates) ? e.coordinates : [] : [];
|
|
509
521
|
}
|
|
510
|
-
|
|
522
|
+
function Ft(e) {
|
|
523
|
+
return !e || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).some((e) => Ft(e)) : e.type === "Point" || e.type === "MultiPoint";
|
|
524
|
+
}
|
|
525
|
+
let It = h(() => Mt.value.filter((e) => {
|
|
511
526
|
let t = e.geometry;
|
|
512
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;
|
|
513
|
-
})),
|
|
528
|
+
})), Lt = h(() => Mt.value.filter((e) => {
|
|
514
529
|
let t = e.geometry;
|
|
515
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;
|
|
516
|
-
})),
|
|
531
|
+
})), Rt = h(() => Mt.value.filter((e) => {
|
|
517
532
|
let t = e.geometry;
|
|
518
|
-
return t ?
|
|
519
|
-
})),
|
|
520
|
-
let t =
|
|
533
|
+
return t ? Ft(t) : !1;
|
|
534
|
+
})), zt = h(() => It.value.map((e) => {
|
|
535
|
+
let t = Nt(e.geometry);
|
|
521
536
|
return t ? {
|
|
522
537
|
...e,
|
|
523
538
|
path: t
|
|
524
539
|
} : null;
|
|
525
|
-
}).filter(Boolean)),
|
|
526
|
-
let t =
|
|
540
|
+
}).filter(Boolean)), Bt = h(() => Lt.value.map((e) => {
|
|
541
|
+
let t = Nt(e.geometry);
|
|
527
542
|
return t ? {
|
|
528
543
|
...e,
|
|
529
544
|
path: t
|
|
530
545
|
} : null;
|
|
531
|
-
}).filter(Boolean)),
|
|
546
|
+
}).filter(Boolean)), Vt = h(() => {
|
|
532
547
|
let e = [];
|
|
533
548
|
function t(e = {}) {
|
|
534
|
-
let t = e?.style && typeof e.style == "object" ? e.style : {}, n = e.radius ?? e.r ?? t.radius ?? t.r,
|
|
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;
|
|
535
550
|
return {
|
|
536
551
|
radius: Number.isFinite(Number(n)) ? Number(n) : Number(L.value.style.chart.points.radius),
|
|
537
|
-
fill:
|
|
538
|
-
stroke:
|
|
539
|
-
strokeWidth: Number.isFinite(Number(
|
|
552
|
+
fill: i != null && String(i).trim() ? r(String(i).trim()) : L.value.style.chart.points.fill,
|
|
553
|
+
stroke: a != null && String(a).trim() ? r(String(a).trim()) : L.value.style.chart.points.stroke,
|
|
554
|
+
strokeWidth: Number.isFinite(Number(o)) ? Number(o) : Number(L.value.style.chart.points.strokeWidth)
|
|
540
555
|
};
|
|
541
556
|
}
|
|
542
|
-
for (let n of
|
|
543
|
-
let r =
|
|
557
|
+
for (let n of Rt.value) {
|
|
558
|
+
let r = Pt(n.geometry);
|
|
544
559
|
for (let i = 0; i < r.length; i += 1) {
|
|
545
560
|
let a = r[i];
|
|
546
561
|
if (!Array.isArray(a) || a.length < 2) continue;
|
|
@@ -563,7 +578,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
563
578
|
}
|
|
564
579
|
return e;
|
|
565
580
|
});
|
|
566
|
-
function
|
|
581
|
+
function Ht(e) {
|
|
567
582
|
if (!e || typeof e.type != "string") return [];
|
|
568
583
|
let t = [], n = (e) => {
|
|
569
584
|
if (!Array.isArray(e) || e.length < 2) return;
|
|
@@ -581,14 +596,14 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
581
596
|
}
|
|
582
597
|
};
|
|
583
598
|
if (e.type === "GeometryCollection" && Array.isArray(e.geometries)) {
|
|
584
|
-
for (let n of e.geometries) t.push(...
|
|
599
|
+
for (let n of e.geometries) t.push(...Ht(n));
|
|
585
600
|
return t;
|
|
586
601
|
}
|
|
587
602
|
return e.type === "Point" ? (n(e.coordinates), t) : e.type === "MultiPoint" ? ((e.coordinates || []).forEach(n), t) : (r(e.coordinates), t);
|
|
588
603
|
}
|
|
589
|
-
function
|
|
604
|
+
function Ut(e) {
|
|
590
605
|
let t = [];
|
|
591
|
-
for (let n of e) t.push(...
|
|
606
|
+
for (let n of e) t.push(...Ht(n.geometry));
|
|
592
607
|
if (!t.length) return null;
|
|
593
608
|
let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
|
|
594
609
|
for (let [e, o] of t) e < n && (n = e), o < r && (r = o), e > i && (i = e), o > a && (a = o);
|
|
@@ -602,24 +617,24 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
602
617
|
height: s
|
|
603
618
|
};
|
|
604
619
|
}
|
|
605
|
-
let
|
|
606
|
-
function
|
|
620
|
+
let Wt = h(() => Ut(Mt.value));
|
|
621
|
+
function Gt({ bounds: e, targetWidth: t, targetHeight: n, padding: r }) {
|
|
607
622
|
if (!e || !(e.width > 0) || !(e.height > 0)) return {
|
|
608
623
|
scale: 1,
|
|
609
624
|
translateX: 0,
|
|
610
625
|
translateY: 0,
|
|
611
626
|
transform: ""
|
|
612
627
|
};
|
|
613
|
-
let i = Number.isFinite(Number(r)) ? Number(r) : 0, a = Math.max(1, t - i * 2), o = Math.max(1, n - i * 2), s = a / e.width, c = o / e.height, l = Math.min(s, c), u = e.width * l, d = e.height * l, f = i + (a - u) / 2, p = i + (o - d) / 2,
|
|
628
|
+
let i = Number.isFinite(Number(r)) ? Number(r) : 0, a = Math.max(1, t - i * 2), o = Math.max(1, n - i * 2), s = a / e.width, c = o / e.height, l = Math.min(s, c), u = e.width * l, d = e.height * l, f = i + (a - u) / 2, p = i + (o - d) / 2, m = f - e.minX * l, ee = p - e.minY * l;
|
|
614
629
|
return {
|
|
615
630
|
scale: l,
|
|
616
|
-
translateX:
|
|
617
|
-
translateY:
|
|
618
|
-
transform: `translate(${
|
|
631
|
+
translateX: m,
|
|
632
|
+
translateY: ee,
|
|
633
|
+
transform: `translate(${m} ${ee}) scale(${l})`
|
|
619
634
|
};
|
|
620
635
|
}
|
|
621
|
-
let
|
|
622
|
-
let e =
|
|
636
|
+
let Kt = h(() => {
|
|
637
|
+
let e = Wt.value;
|
|
623
638
|
if (!e) return {
|
|
624
639
|
scale: 1,
|
|
625
640
|
translateX: 0,
|
|
@@ -627,29 +642,29 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
627
642
|
transform: ""
|
|
628
643
|
};
|
|
629
644
|
let t = L.value?.map?.fitPadding, n = Number.isFinite(Number(t)) ? Number(t) : 0;
|
|
630
|
-
return
|
|
645
|
+
return Gt({
|
|
631
646
|
bounds: e,
|
|
632
647
|
targetWidth: U.value.width,
|
|
633
648
|
targetHeight: U.value.height,
|
|
634
649
|
padding: n
|
|
635
650
|
});
|
|
636
|
-
}),
|
|
651
|
+
}), qt = h(() => `0 0 ${U.value.width} ${U.value.height}`), { viewBox: Jt, resetZoom: Yt, setInitialViewBox: Xt, scale: Zt, zoomByFactor: Qt } = ce(R, {
|
|
637
652
|
x: 0,
|
|
638
653
|
y: 0,
|
|
639
654
|
width: U.value.width,
|
|
640
655
|
height: U.value.height
|
|
641
656
|
}, 1, B);
|
|
642
|
-
function
|
|
657
|
+
function $t() {
|
|
643
658
|
B.value = !B.value;
|
|
644
659
|
}
|
|
645
|
-
function
|
|
646
|
-
let t =
|
|
660
|
+
function en(e) {
|
|
661
|
+
let t = Kt.value, n = Number(t?.scale) || 1, r = Number(t?.translateX) || 0, i = Number(t?.translateY) || 0;
|
|
647
662
|
return {
|
|
648
663
|
x: e.x * n + r,
|
|
649
664
|
y: e.y * n + i
|
|
650
665
|
};
|
|
651
666
|
}
|
|
652
|
-
function
|
|
667
|
+
function tn() {
|
|
653
668
|
let e = L.value?.map?.center, t = Number(e?.[0]), n = Number(e?.[1]), r = Array.isArray(e) && e.length === 2 && Number.isFinite(t) && Number.isFinite(n) && (t !== 0 || n !== 0), i = U.value.width, a = U.value.height;
|
|
654
669
|
if (!r) return {
|
|
655
670
|
x: 0,
|
|
@@ -664,7 +679,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
664
679
|
width: i,
|
|
665
680
|
height: a
|
|
666
681
|
};
|
|
667
|
-
let l =
|
|
682
|
+
let l = en({
|
|
668
683
|
x: s,
|
|
669
684
|
y: c
|
|
670
685
|
});
|
|
@@ -675,53 +690,53 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
675
690
|
height: a
|
|
676
691
|
};
|
|
677
692
|
}
|
|
678
|
-
function
|
|
679
|
-
let e =
|
|
680
|
-
|
|
693
|
+
function nn() {
|
|
694
|
+
let e = tn();
|
|
695
|
+
Xt(e, { overwriteCurrentIfNotZoomed: !0 }), j.value = !0;
|
|
681
696
|
}
|
|
682
|
-
let
|
|
683
|
-
let e =
|
|
684
|
-
return e ? `${e.x} ${e.y} ${e.width} ${e.height}` :
|
|
697
|
+
let rn = h(() => {
|
|
698
|
+
let e = Jt.value;
|
|
699
|
+
return e ? `${e.x} ${e.y} ${e.width} ${e.height}` : qt.value;
|
|
685
700
|
});
|
|
686
|
-
function rn() {
|
|
687
|
-
Zt(Re, !0);
|
|
688
|
-
}
|
|
689
701
|
function an() {
|
|
690
|
-
|
|
702
|
+
Qt(Re, !0);
|
|
703
|
+
}
|
|
704
|
+
function on() {
|
|
705
|
+
Qt(1 / Re, !0);
|
|
691
706
|
}
|
|
692
|
-
async function
|
|
693
|
-
let e =
|
|
694
|
-
|
|
707
|
+
async function sn() {
|
|
708
|
+
let e = tn();
|
|
709
|
+
Xt(e, { overwriteCurrentIfNotZoomed: !0 }), Yt(!0);
|
|
695
710
|
}
|
|
696
711
|
we(() => [
|
|
697
712
|
L.value.projection,
|
|
698
713
|
L.value.map.center?.[0],
|
|
699
714
|
L.value.map.center?.[1],
|
|
700
715
|
L.value.map.fitPadding,
|
|
701
|
-
|
|
716
|
+
Tt.value
|
|
702
717
|
], async () => {
|
|
703
|
-
|
|
704
|
-
|
|
718
|
+
j.value = !1, await x(), requestAnimationFrame(() => {
|
|
719
|
+
j.value || nn();
|
|
705
720
|
});
|
|
706
721
|
}, { deep: !1 }), we(() => [
|
|
707
722
|
V.value,
|
|
708
723
|
H.value,
|
|
709
724
|
z.value
|
|
710
725
|
], async () => {
|
|
711
|
-
z.value && (await
|
|
726
|
+
z.value && (await x(), Xt({
|
|
712
727
|
x: 0,
|
|
713
728
|
y: 0,
|
|
714
729
|
width: U.value.width,
|
|
715
730
|
height: U.value.height
|
|
716
|
-
}, { overwriteCurrentIfNotZoomed: !0 }),
|
|
717
|
-
|
|
731
|
+
}, { overwriteCurrentIfNotZoomed: !0 }), j.value = !1, requestAnimationFrame(() => {
|
|
732
|
+
j.value || nn();
|
|
718
733
|
}));
|
|
719
734
|
}, { flush: "post" });
|
|
720
|
-
function
|
|
735
|
+
function cn(e) {
|
|
721
736
|
return e ? e.type === "FeatureCollection" && Array.isArray(e.features) ? e.features.filter((e) => e?.type === "Feature" && e.geometry?.type === "Point").map((e, t) => {
|
|
722
737
|
let n = e.properties || {}, r = n.name || n.label || n.title || `Point ${t + 1}`, i = e.geometry.coordinates;
|
|
723
738
|
return {
|
|
724
|
-
uid: `map-point-${
|
|
739
|
+
uid: `map-point-${k.value}-${t}`,
|
|
725
740
|
name: r,
|
|
726
741
|
coordinates: i,
|
|
727
742
|
color: n.color ?? null,
|
|
@@ -736,7 +751,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
736
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));
|
|
737
752
|
let s = n ? n[0] : NaN, c = n ? n[1] : NaN;
|
|
738
753
|
return !Number.isFinite(s) || !Number.isFinite(c) ? null : {
|
|
739
|
-
uid: `map-point-${
|
|
754
|
+
uid: `map-point-${k.value}-${t}`,
|
|
740
755
|
name: r,
|
|
741
756
|
coordinates: [s, c],
|
|
742
757
|
color: a,
|
|
@@ -752,7 +767,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
752
767
|
if (!r || r.length < 2) return null;
|
|
753
768
|
let i = Number(r[0]), a = Number(r[1]);
|
|
754
769
|
return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
|
|
755
|
-
uid: `map-point-${
|
|
770
|
+
uid: `map-point-${k.value}-${n}-${e}`,
|
|
756
771
|
name: t.name || e,
|
|
757
772
|
coordinates: [i, a],
|
|
758
773
|
color: t.color ?? null,
|
|
@@ -764,56 +779,56 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
764
779
|
};
|
|
765
780
|
}).filter(Boolean) : [] : [];
|
|
766
781
|
}
|
|
767
|
-
let
|
|
768
|
-
let t = W(e.coordinates), n = t?.[0],
|
|
769
|
-
return !Number.isFinite(n) || !Number.isFinite(
|
|
782
|
+
let ln = h(() => cn(ft.value)), un = h(() => ln.value.map((e) => {
|
|
783
|
+
let t = W(e.coordinates), n = t?.[0], i = t?.[1];
|
|
784
|
+
return !Number.isFinite(n) || !Number.isFinite(i) ? null : {
|
|
770
785
|
...e,
|
|
771
786
|
x: n,
|
|
772
|
-
y:
|
|
773
|
-
fill: e.color ?
|
|
787
|
+
y: i,
|
|
788
|
+
fill: e.color ? r(e.color) : L.value.style.chart.points.fill,
|
|
774
789
|
radius: Number.isFinite(Number(e.radius)) ? Number(e.radius) : L.value.style.chart.points.radius
|
|
775
790
|
};
|
|
776
|
-
}).filter(Boolean)), G =
|
|
791
|
+
}).filter(Boolean)), G = h(() => un.value.map((e, t) => ({
|
|
777
792
|
...e,
|
|
778
793
|
keyboardIndex: t
|
|
779
794
|
})));
|
|
780
|
-
function
|
|
781
|
-
let
|
|
782
|
-
r && (
|
|
795
|
+
function dn(e) {
|
|
796
|
+
let n = en(e), r = t(n.x, n.y, R.value);
|
|
797
|
+
r && (rt.value = {
|
|
783
798
|
x: r.x,
|
|
784
799
|
y: r.y
|
|
785
800
|
});
|
|
786
801
|
}
|
|
787
|
-
let
|
|
788
|
-
function
|
|
789
|
-
|
|
802
|
+
let fn = w(!1), pn = w(""), K = w(!1), q = w(null), J = w(null);
|
|
803
|
+
function mn(e) {
|
|
804
|
+
pn.value = e, fn.value = !0;
|
|
790
805
|
}
|
|
791
806
|
function Y() {
|
|
792
|
-
|
|
807
|
+
fn.value = !1, pn.value = "";
|
|
793
808
|
}
|
|
794
|
-
function
|
|
809
|
+
function hn(e) {
|
|
795
810
|
return String(e ?? "").replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
796
811
|
}
|
|
797
|
-
function
|
|
798
|
-
|
|
812
|
+
function gn(e) {
|
|
813
|
+
Ze.value = {
|
|
799
814
|
datapoint: e,
|
|
800
815
|
seriesIndex: e.index,
|
|
801
|
-
series:
|
|
816
|
+
series: ln.value,
|
|
802
817
|
config: L.value
|
|
803
818
|
}, K.value = !1;
|
|
804
819
|
let t = L.value.style.chart.tooltip.customFormat;
|
|
805
|
-
if (
|
|
806
|
-
let e = t(
|
|
820
|
+
if (o(t)) try {
|
|
821
|
+
let e = t(Ze.value);
|
|
807
822
|
if (typeof e == "string") return K.value = !0, e;
|
|
808
823
|
} catch {
|
|
809
824
|
console.warn("Custom format cannot be applied."), K.value = !1;
|
|
810
825
|
}
|
|
811
|
-
return `<div><div style="font-weight:600">${
|
|
826
|
+
return `<div><div style="font-weight:600">${hn(e.name)}</div>${e.description == null ? "" : `<div style="margin-top:6px">${hn(e.description)}</div>`}</div>`;
|
|
812
827
|
}
|
|
813
|
-
function
|
|
828
|
+
function _n(e) {
|
|
814
829
|
K.value = !1;
|
|
815
830
|
let t = L.value.style.chart.tooltip.customFormat;
|
|
816
|
-
if (
|
|
831
|
+
if (o(t)) try {
|
|
817
832
|
let n = t({
|
|
818
833
|
datapoint: e,
|
|
819
834
|
config: L.value
|
|
@@ -823,9 +838,9 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
823
838
|
console.warn("Custom format cannot be applied."), K.value = !1;
|
|
824
839
|
}
|
|
825
840
|
let n = typeof e?.name == "string" ? e.name.trim() : "";
|
|
826
|
-
return n ? `<div><div style="font-weight:600">${
|
|
841
|
+
return n ? `<div><div style="font-weight:600">${hn(n)}</div></div>` : (K.value = !1, "");
|
|
827
842
|
}
|
|
828
|
-
function
|
|
843
|
+
function vn(e) {
|
|
829
844
|
if (L.value.events.territoryEnter && L.value.events.territoryEnter({
|
|
830
845
|
datapoint: e,
|
|
831
846
|
seriesIndex: e.index
|
|
@@ -833,41 +848,41 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
833
848
|
J.value = null, Y();
|
|
834
849
|
return;
|
|
835
850
|
}
|
|
836
|
-
J.value = e.uid,
|
|
851
|
+
J.value = e.uid, mn(_n(e));
|
|
837
852
|
}
|
|
838
|
-
function
|
|
853
|
+
function yn(e) {
|
|
839
854
|
J.value = null, Y(), L.value.events.territoryLeave && L.value.events.territoryLeave({
|
|
840
855
|
datapoint: e,
|
|
841
856
|
seriesIndex: e.index
|
|
842
857
|
});
|
|
843
858
|
}
|
|
844
|
-
function
|
|
859
|
+
function bn(e) {
|
|
845
860
|
L.value.events.territoryClick && L.value.events.territoryClick({
|
|
846
861
|
datapoint: e,
|
|
847
862
|
seriesIndex: e.index
|
|
848
863
|
});
|
|
849
864
|
}
|
|
850
|
-
function
|
|
851
|
-
F.value = n, q.value = e.uid, Number.isInteger(t) && (P.value = t), n === "keyboard" &&
|
|
865
|
+
function xn(e, t = null, n = "pointer") {
|
|
866
|
+
F.value = n, q.value = e.uid, Number.isInteger(t) && (P.value = t), n === "keyboard" && dn(e), mn(gn(e)), L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
852
867
|
datapoint: e,
|
|
853
868
|
seriesIndex: e.index
|
|
854
869
|
});
|
|
855
870
|
}
|
|
856
|
-
function
|
|
871
|
+
function Sn(e, t = "pointer") {
|
|
857
872
|
t === "pointer" && F.value === "keyboard" || (q.value = null, Y(), t !== "pointer" && (P.value = null, F.value = "pointer"), L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
858
873
|
datapoint: e,
|
|
859
874
|
seriesIndex: e.index
|
|
860
875
|
}));
|
|
861
876
|
}
|
|
862
|
-
let
|
|
863
|
-
function
|
|
864
|
-
|
|
877
|
+
let Cn = h(() => !!L.value.events.datapointClick && typeof L.value.events.datapointClick == "function");
|
|
878
|
+
function wn(e) {
|
|
879
|
+
Cn.value && L.value.events.datapointClick({
|
|
865
880
|
datapoint: e,
|
|
866
881
|
seriesIndex: e.index
|
|
867
882
|
});
|
|
868
883
|
}
|
|
869
|
-
let X =
|
|
870
|
-
function
|
|
884
|
+
let X = h(() => L.value.style.chart.territory), Tn = h(() => L.value.style.chart.points);
|
|
885
|
+
function En(e) {
|
|
871
886
|
let t = typeof e?.name == "string" ? e.name.trim() : "";
|
|
872
887
|
if (!t) {
|
|
873
888
|
J.value = null, Y();
|
|
@@ -879,45 +894,45 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
879
894
|
index: e.featureIndex,
|
|
880
895
|
properties: {}
|
|
881
896
|
};
|
|
882
|
-
J.value = e.uid,
|
|
897
|
+
J.value = e.uid, mn(_n(n));
|
|
883
898
|
}
|
|
884
|
-
function
|
|
899
|
+
function Dn() {
|
|
885
900
|
J.value = null, Y();
|
|
886
901
|
}
|
|
887
|
-
let Z =
|
|
888
|
-
function
|
|
902
|
+
let Z = w(!1);
|
|
903
|
+
function On() {
|
|
889
904
|
Z.value = !Z.value;
|
|
890
905
|
}
|
|
891
906
|
we(() => Z.value, (e) => {
|
|
892
907
|
B.value = !e;
|
|
893
908
|
});
|
|
894
|
-
function
|
|
895
|
-
|
|
909
|
+
function kn() {
|
|
910
|
+
xt.value.showTooltip = !xt.value.showTooltip;
|
|
896
911
|
}
|
|
897
|
-
let
|
|
912
|
+
let An = h(() => L.value.style.chart.backgroundColor), { exportSvg: jn, getSvg: Mn } = f({
|
|
898
913
|
svg: R,
|
|
899
|
-
title:
|
|
914
|
+
title: h(() => L.value.style.chart.title),
|
|
900
915
|
legend: void 0,
|
|
901
916
|
legendItems: void 0,
|
|
902
|
-
backgroundColor:
|
|
917
|
+
backgroundColor: An
|
|
903
918
|
});
|
|
904
|
-
async function
|
|
905
|
-
Xe.value = !0, await
|
|
919
|
+
async function Nn({ isCb: e }) {
|
|
920
|
+
Xe.value = !0, await x();
|
|
906
921
|
try {
|
|
907
922
|
if (e) {
|
|
908
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
923
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Mn();
|
|
909
924
|
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
910
925
|
blob: e,
|
|
911
926
|
url: t,
|
|
912
927
|
text: n,
|
|
913
928
|
dataUrl: r
|
|
914
929
|
}));
|
|
915
|
-
} else await Promise.resolve(
|
|
930
|
+
} else await Promise.resolve(jn());
|
|
916
931
|
} finally {
|
|
917
932
|
Xe.value = !1;
|
|
918
933
|
}
|
|
919
934
|
}
|
|
920
|
-
function
|
|
935
|
+
function Pn(e) {
|
|
921
936
|
if (e?.stage === "start") {
|
|
922
937
|
Ye.value = !0;
|
|
923
938
|
return;
|
|
@@ -926,12 +941,12 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
926
941
|
Ye.value = !1;
|
|
927
942
|
return;
|
|
928
943
|
}
|
|
929
|
-
|
|
944
|
+
gt();
|
|
930
945
|
}
|
|
931
|
-
async function
|
|
932
|
-
if (!
|
|
933
|
-
let { width: t, height: n } =
|
|
934
|
-
domElement:
|
|
946
|
+
async function Fn({ scale: e = 2 } = {}) {
|
|
947
|
+
if (!A.value) return;
|
|
948
|
+
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ee({
|
|
949
|
+
domElement: A.value,
|
|
935
950
|
base64: !0,
|
|
936
951
|
img: !0,
|
|
937
952
|
scale: e
|
|
@@ -945,14 +960,14 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
945
960
|
aspectRatio: r
|
|
946
961
|
};
|
|
947
962
|
}
|
|
948
|
-
let Q =
|
|
949
|
-
function
|
|
963
|
+
let Q = w(!1), $ = null;
|
|
964
|
+
function In() {
|
|
950
965
|
B.value && (Q.value = !0);
|
|
951
966
|
}
|
|
952
|
-
function
|
|
967
|
+
function Ln() {
|
|
953
968
|
Q.value = !1;
|
|
954
969
|
}
|
|
955
|
-
function
|
|
970
|
+
function Rn() {
|
|
956
971
|
B.value && (Q.value = !0, $ && clearTimeout($), $ = setTimeout(() => {
|
|
957
972
|
Q.value = !1, $ = null;
|
|
958
973
|
}, 140));
|
|
@@ -960,15 +975,15 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
960
975
|
ye(() => {
|
|
961
976
|
$ && clearTimeout($);
|
|
962
977
|
});
|
|
963
|
-
async function
|
|
978
|
+
async function zn([e, t], { animated: n = !0 } = {}) {
|
|
964
979
|
let r = Number(e), i = Number(t);
|
|
965
980
|
if (!Number.isFinite(r) || !Number.isFinite(i)) return;
|
|
966
981
|
let a = W([r, i]), o = a?.[0], s = a?.[1];
|
|
967
982
|
if (!Number.isFinite(o) || !Number.isFinite(s)) return;
|
|
968
|
-
let c =
|
|
983
|
+
let c = en({
|
|
969
984
|
x: o,
|
|
970
985
|
y: s
|
|
971
|
-
}), l =
|
|
986
|
+
}), l = Jt.value ? { ...Jt.value } : {
|
|
972
987
|
x: 0,
|
|
973
988
|
y: 0,
|
|
974
989
|
width: U.value.width,
|
|
@@ -980,42 +995,42 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
980
995
|
height: l.height
|
|
981
996
|
};
|
|
982
997
|
if (!n) {
|
|
983
|
-
|
|
998
|
+
Jt.value = u;
|
|
984
999
|
return;
|
|
985
1000
|
}
|
|
986
|
-
let d = { ...l }, f = { ...u }, p = null,
|
|
1001
|
+
let d = { ...l }, f = { ...u }, p = null, m = (e) => {
|
|
987
1002
|
p ??= e;
|
|
988
1003
|
let t = Math.min((e - p) / 250, 1);
|
|
989
|
-
|
|
1004
|
+
Jt.value = {
|
|
990
1005
|
x: d.x + (f.x - d.x) * t,
|
|
991
1006
|
y: d.y + (f.y - d.y) * t,
|
|
992
1007
|
width: d.width + (f.width - d.width) * t,
|
|
993
1008
|
height: d.height + (f.height - d.height) * t
|
|
994
|
-
}, t < 1 && requestAnimationFrame(
|
|
1009
|
+
}, t < 1 && requestAnimationFrame(m);
|
|
995
1010
|
};
|
|
996
|
-
requestAnimationFrame(
|
|
1011
|
+
requestAnimationFrame(m);
|
|
997
1012
|
}
|
|
998
1013
|
be(async () => {
|
|
999
|
-
|
|
1000
|
-
|
|
1014
|
+
yt(), await x(), requestAnimationFrame(() => {
|
|
1015
|
+
j.value || (nn(), (L.value.map.center?.[0] || L.value.map.center?.[1]) && zn(L.value.map.center, { animated: !1 }));
|
|
1001
1016
|
});
|
|
1002
1017
|
}), ye(() => {
|
|
1003
|
-
|
|
1018
|
+
vt();
|
|
1004
1019
|
});
|
|
1005
|
-
async function
|
|
1020
|
+
async function Bn() {
|
|
1006
1021
|
if (Ue("copyAlt", {
|
|
1007
1022
|
config: L.value,
|
|
1008
|
-
dataset:
|
|
1023
|
+
dataset: ft.value
|
|
1009
1024
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
1010
1025
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1011
1026
|
return;
|
|
1012
1027
|
}
|
|
1013
1028
|
await Promise.resolve(L.value.userOptions.callbacks.altCopy({
|
|
1014
1029
|
config: L.value,
|
|
1015
|
-
dataset:
|
|
1030
|
+
dataset: ft.value
|
|
1016
1031
|
}));
|
|
1017
1032
|
}
|
|
1018
|
-
function
|
|
1033
|
+
function Vn(e, t) {
|
|
1019
1034
|
let n = G.value;
|
|
1020
1035
|
if (!n.length) return null;
|
|
1021
1036
|
let r = n[e];
|
|
@@ -1030,45 +1045,45 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1030
1045
|
}
|
|
1031
1046
|
return i;
|
|
1032
1047
|
}
|
|
1033
|
-
function
|
|
1048
|
+
function Hn(e) {
|
|
1034
1049
|
let t = G.value;
|
|
1035
1050
|
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;
|
|
1036
1051
|
}
|
|
1037
|
-
function Hn() {
|
|
1038
|
-
rt.value = !0;
|
|
1039
|
-
}
|
|
1040
1052
|
function Un() {
|
|
1053
|
+
it.value = !0;
|
|
1054
|
+
}
|
|
1055
|
+
function Wn() {
|
|
1041
1056
|
let e = P.value == null ? null : G.value[P.value];
|
|
1042
|
-
e ?
|
|
1057
|
+
e ? Sn(e, "keyboard") : (P.value = null, F.value = "pointer", Y(), q.value = null), it.value = !1;
|
|
1043
1058
|
}
|
|
1044
|
-
function
|
|
1059
|
+
function Gn(e) {
|
|
1045
1060
|
if (!R.value || Z.value || document.activeElement !== R.value || !G.value.length) return;
|
|
1046
1061
|
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";
|
|
1047
1062
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
1048
1063
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1049
1064
|
let e = P.value == null ? null : G.value[P.value];
|
|
1050
|
-
e ?
|
|
1065
|
+
e ? Sn(e, "keyboard") : (P.value = null, F.value = "pointer", Y(), q.value = null);
|
|
1051
1066
|
return;
|
|
1052
1067
|
}
|
|
1053
1068
|
if (a) {
|
|
1054
1069
|
let e = P.value == null ? null : G.value[P.value];
|
|
1055
1070
|
if (!e) return;
|
|
1056
|
-
|
|
1071
|
+
wn(e);
|
|
1057
1072
|
return;
|
|
1058
1073
|
}
|
|
1059
1074
|
let s = t ? "right" : n ? "left" : r ? "down" : "up", c = null;
|
|
1060
|
-
if (P.value == null ? c =
|
|
1075
|
+
if (P.value == null ? c = Hn(s) : (c = Vn(P.value, s), c ??= Hn(s)), c == null) return;
|
|
1061
1076
|
let l = G.value[c];
|
|
1062
|
-
l &&
|
|
1077
|
+
l && xn(l, c, "keyboard");
|
|
1063
1078
|
}
|
|
1064
|
-
let
|
|
1079
|
+
let Kn = h(() => ({
|
|
1065
1080
|
headers: [
|
|
1066
1081
|
"Name",
|
|
1067
1082
|
"Latitude",
|
|
1068
1083
|
"Longitude",
|
|
1069
1084
|
"Description"
|
|
1070
1085
|
],
|
|
1071
|
-
rows:
|
|
1086
|
+
rows: ln.value.map((e) => {
|
|
1072
1087
|
let t = Array.isArray(e.coordinates) ? e.coordinates[1] : null, n = Array.isArray(e.coordinates) ? e.coordinates[0] : null;
|
|
1073
1088
|
return [
|
|
1074
1089
|
e.name ?? "",
|
|
@@ -1079,23 +1094,23 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1079
1094
|
})
|
|
1080
1095
|
}));
|
|
1081
1096
|
return ne({
|
|
1082
|
-
getImage:
|
|
1083
|
-
generatePdf:
|
|
1084
|
-
generateImage:
|
|
1085
|
-
generateSvg:
|
|
1086
|
-
toggleTooltip:
|
|
1087
|
-
toggleAnnotator:
|
|
1088
|
-
toggleFullscreen:
|
|
1089
|
-
zoomIn:
|
|
1090
|
-
zoomOut:
|
|
1091
|
-
resetZoom:
|
|
1092
|
-
focusLocation:
|
|
1093
|
-
copyAlt:
|
|
1094
|
-
}), (e, t) => (
|
|
1097
|
+
getImage: Fn,
|
|
1098
|
+
generatePdf: ht,
|
|
1099
|
+
generateImage: gt,
|
|
1100
|
+
generateSvg: Nn,
|
|
1101
|
+
toggleTooltip: kn,
|
|
1102
|
+
toggleAnnotator: On,
|
|
1103
|
+
toggleFullscreen: at,
|
|
1104
|
+
zoomIn: an,
|
|
1105
|
+
zoomOut: on,
|
|
1106
|
+
resetZoom: Yt,
|
|
1107
|
+
focusLocation: zn,
|
|
1108
|
+
copyAlt: Bn
|
|
1109
|
+
}), (e, t) => (C(), v("div", {
|
|
1095
1110
|
class: _e(`vue-data-ui-component vue-ui-geo ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${z.value ? "vue-ui-geo-responsive" : ""} ${Q.value ? "vue-ui-geo-interacting" : ""}`),
|
|
1096
1111
|
ref_key: "geoChart",
|
|
1097
|
-
ref:
|
|
1098
|
-
id: `map_${
|
|
1112
|
+
ref: A,
|
|
1113
|
+
id: `map_${k.value}`,
|
|
1099
1114
|
dir: "auto",
|
|
1100
1115
|
style: ve({
|
|
1101
1116
|
fontFamily: L.value.style.fontFamily,
|
|
@@ -1104,15 +1119,15 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1104
1119
|
height: z.value ? `${H.value}px` : void 0
|
|
1105
1120
|
})
|
|
1106
1121
|
}, [
|
|
1107
|
-
|
|
1108
|
-
id: `chart-instructions-${
|
|
1122
|
+
y("div", {
|
|
1123
|
+
id: `chart-instructions-${k.value}`,
|
|
1109
1124
|
class: "sr-only"
|
|
1110
|
-
}, [
|
|
1111
|
-
|
|
1125
|
+
}, [y("p", null, Se(L.value.a11y.translations.keyboardNavigation), 1)], 8, De),
|
|
1126
|
+
Kn.value?.rows?.length ? (C(), g(ae, {
|
|
1112
1127
|
key: 0,
|
|
1113
|
-
uid:
|
|
1114
|
-
head:
|
|
1115
|
-
body:
|
|
1128
|
+
uid: k.value,
|
|
1129
|
+
head: Kn.value.headers,
|
|
1130
|
+
body: Kn.value.rows,
|
|
1116
1131
|
notice: L.value.a11y.translations.tableAvailable,
|
|
1117
1132
|
caption: L.value.a11y.translations.tableCaption
|
|
1118
1133
|
}, null, 8, [
|
|
@@ -1121,20 +1136,20 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1121
1136
|
"body",
|
|
1122
1137
|
"notice",
|
|
1123
1138
|
"caption"
|
|
1124
|
-
])) :
|
|
1125
|
-
|
|
1139
|
+
])) : _("", !0),
|
|
1140
|
+
bt.value ? (C(), v("div", {
|
|
1126
1141
|
key: 1,
|
|
1127
1142
|
ref_key: "noTitle",
|
|
1128
|
-
ref:
|
|
1143
|
+
ref: $e,
|
|
1129
1144
|
class: "vue-data-ui-no-title-space",
|
|
1130
1145
|
style: "height:36px; width: 100%;background:transparent"
|
|
1131
|
-
}, null, 512)) :
|
|
1132
|
-
L.value.style.chart.title.text ? (
|
|
1146
|
+
}, null, 512)) : _("", !0),
|
|
1147
|
+
L.value.style.chart.title.text ? (C(), v("div", {
|
|
1133
1148
|
key: 2,
|
|
1134
1149
|
ref_key: "chartTitle",
|
|
1135
|
-
ref:
|
|
1150
|
+
ref: Qe,
|
|
1136
1151
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1137
|
-
}, [(
|
|
1152
|
+
}, [(C(), g(te, {
|
|
1138
1153
|
key: `title_${Je.value}`,
|
|
1139
1154
|
config: {
|
|
1140
1155
|
title: {
|
|
@@ -1146,22 +1161,22 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1146
1161
|
...L.value.style.chart.title.subtitle
|
|
1147
1162
|
}
|
|
1148
1163
|
}
|
|
1149
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1150
|
-
L.value.userOptions.buttons.annotator ? (
|
|
1164
|
+
}, null, 8, ["config"]))], 512)) : _("", !0),
|
|
1165
|
+
L.value.userOptions.buttons.annotator ? (C(), g(E(Ve), {
|
|
1151
1166
|
key: 3,
|
|
1152
|
-
svgRef:
|
|
1167
|
+
svgRef: E(R),
|
|
1153
1168
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1154
1169
|
color: L.value.style.chart.color,
|
|
1155
1170
|
active: Z.value,
|
|
1156
|
-
isCursorPointer:
|
|
1157
|
-
onClose:
|
|
1171
|
+
isCursorPointer: st.value,
|
|
1172
|
+
onClose: On
|
|
1158
1173
|
}, {
|
|
1159
|
-
"annotator-action-close":
|
|
1160
|
-
"annotator-action-color":
|
|
1161
|
-
"annotator-action-draw":
|
|
1162
|
-
"annotator-action-undo":
|
|
1163
|
-
"annotator-action-redo":
|
|
1164
|
-
"annotator-action-delete":
|
|
1174
|
+
"annotator-action-close": D(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1175
|
+
"annotator-action-color": D(({ color: t }) => [T(e.$slots, "annotator-action-color", S(b({ color: t })), void 0, !0)]),
|
|
1176
|
+
"annotator-action-draw": D(({ mode: t }) => [T(e.$slots, "annotator-action-draw", S(b({ mode: t })), void 0, !0)]),
|
|
1177
|
+
"annotator-action-undo": D(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", S(b({ disabled: t })), void 0, !0)]),
|
|
1178
|
+
"annotator-action-redo": D(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", S(b({ disabled: t })), void 0, !0)]),
|
|
1179
|
+
"annotator-action-delete": D(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", S(b({ disabled: t })), void 0, !0)]),
|
|
1165
1180
|
_: 3
|
|
1166
1181
|
}, 8, [
|
|
1167
1182
|
"svgRef",
|
|
@@ -1169,15 +1184,15 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1169
1184
|
"color",
|
|
1170
1185
|
"active",
|
|
1171
1186
|
"isCursorPointer"
|
|
1172
|
-
])) :
|
|
1173
|
-
L.value.userOptions.show && (
|
|
1187
|
+
])) : _("", !0),
|
|
1188
|
+
L.value.userOptions.show && (E(lt) || E(ct)) ? (C(), g(E(Be), {
|
|
1174
1189
|
ref: "userOptionsRef",
|
|
1175
1190
|
key: `user_options_${qe.value}`,
|
|
1176
1191
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1177
1192
|
color: L.value.style.chart.color,
|
|
1178
|
-
isPrinting:
|
|
1179
|
-
isImaging:
|
|
1180
|
-
uid:
|
|
1193
|
+
isPrinting: E(pt),
|
|
1194
|
+
isImaging: E(mt),
|
|
1195
|
+
uid: k.value,
|
|
1181
1196
|
hasXls: !1,
|
|
1182
1197
|
hasTable: !1,
|
|
1183
1198
|
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.chart.tooltip.show,
|
|
@@ -1190,27 +1205,27 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1190
1205
|
hasZoom: L.value.userOptions.buttons.zoom,
|
|
1191
1206
|
isZoom: B.value,
|
|
1192
1207
|
isFullscreen: I.value,
|
|
1193
|
-
isTooltip:
|
|
1208
|
+
isTooltip: xt.value.showTooltip,
|
|
1194
1209
|
titles: { ...L.value.userOptions.buttonTitles },
|
|
1195
|
-
chartElement:
|
|
1210
|
+
chartElement: A.value,
|
|
1196
1211
|
position: L.value.userOptions.position,
|
|
1197
1212
|
isAnnotation: Z.value,
|
|
1198
1213
|
callbacks: L.value.userOptions.callbacks,
|
|
1199
1214
|
printScale: L.value.userOptions.print.scale,
|
|
1200
|
-
isCursorPointer:
|
|
1201
|
-
onToggleFullscreen:
|
|
1202
|
-
onGeneratePdf:
|
|
1203
|
-
onGenerateImage:
|
|
1204
|
-
onGenerateSvg:
|
|
1205
|
-
onToggleTooltip:
|
|
1206
|
-
onToggleAnnotator:
|
|
1207
|
-
onToggleZoom:
|
|
1208
|
-
onCopyAlt:
|
|
1209
|
-
style: ve({ visibility:
|
|
1215
|
+
isCursorPointer: st.value,
|
|
1216
|
+
onToggleFullscreen: at,
|
|
1217
|
+
onGeneratePdf: E(ht),
|
|
1218
|
+
onGenerateImage: Pn,
|
|
1219
|
+
onGenerateSvg: Nn,
|
|
1220
|
+
onToggleTooltip: kn,
|
|
1221
|
+
onToggleAnnotator: On,
|
|
1222
|
+
onToggleZoom: $t,
|
|
1223
|
+
onCopyAlt: Bn,
|
|
1224
|
+
style: ve({ visibility: E(lt) ? E(ct) ? "visible" : "hidden" : "visible" })
|
|
1210
1225
|
}, pe({ _: 2 }, [
|
|
1211
1226
|
e.$slots.menuIcon ? {
|
|
1212
1227
|
name: "menuIcon",
|
|
1213
|
-
fn:
|
|
1228
|
+
fn: D(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", S(b({
|
|
1214
1229
|
isOpen: t,
|
|
1215
1230
|
color: n
|
|
1216
1231
|
})), void 0, !0)]),
|
|
@@ -1218,27 +1233,27 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1218
1233
|
} : void 0,
|
|
1219
1234
|
e.$slots.optionTooltip ? {
|
|
1220
1235
|
name: "optionTooltip",
|
|
1221
|
-
fn:
|
|
1236
|
+
fn: D(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1222
1237
|
key: "1"
|
|
1223
1238
|
} : void 0,
|
|
1224
1239
|
e.$slots.optionPdf ? {
|
|
1225
1240
|
name: "optionPdf",
|
|
1226
|
-
fn:
|
|
1241
|
+
fn: D(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1227
1242
|
key: "2"
|
|
1228
1243
|
} : void 0,
|
|
1229
1244
|
e.$slots.optionImg ? {
|
|
1230
1245
|
name: "optionImg",
|
|
1231
|
-
fn:
|
|
1246
|
+
fn: D(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1232
1247
|
key: "3"
|
|
1233
1248
|
} : void 0,
|
|
1234
1249
|
e.$slots.optionSvg ? {
|
|
1235
1250
|
name: "optionSvg",
|
|
1236
|
-
fn:
|
|
1251
|
+
fn: D(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1237
1252
|
key: "4"
|
|
1238
1253
|
} : void 0,
|
|
1239
1254
|
e.$slots.optionFullscreen ? {
|
|
1240
1255
|
name: "optionFullscreen",
|
|
1241
|
-
fn:
|
|
1256
|
+
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", S(b({
|
|
1242
1257
|
toggleFullscreen: t,
|
|
1243
1258
|
isFullscreen: n
|
|
1244
1259
|
})), void 0, !0)]),
|
|
@@ -1246,7 +1261,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1246
1261
|
} : void 0,
|
|
1247
1262
|
e.$slots.optionAnnotator ? {
|
|
1248
1263
|
name: "optionAnnotator",
|
|
1249
|
-
fn:
|
|
1264
|
+
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", S(b({
|
|
1250
1265
|
toggleAnnotator: t,
|
|
1251
1266
|
isAnnotator: n
|
|
1252
1267
|
})), void 0, !0)]),
|
|
@@ -1254,7 +1269,7 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1254
1269
|
} : void 0,
|
|
1255
1270
|
e.$slots.optionZoom ? {
|
|
1256
1271
|
name: "optionZoom",
|
|
1257
|
-
fn:
|
|
1272
|
+
fn: D(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", S(b({
|
|
1258
1273
|
toggleZoom: t,
|
|
1259
1274
|
isZoomLocked: n
|
|
1260
1275
|
})), void 0, !0)]),
|
|
@@ -1262,17 +1277,17 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1262
1277
|
} : void 0,
|
|
1263
1278
|
e.$slots.optionAltCopy ? {
|
|
1264
1279
|
name: "optionAltCopy",
|
|
1265
|
-
fn:
|
|
1280
|
+
fn: D(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", S(b({ altCopy: t })), void 0, !0)]),
|
|
1266
1281
|
key: "8"
|
|
1267
1282
|
} : void 0,
|
|
1268
1283
|
e.$slots["custom-menu-before"] ? {
|
|
1269
1284
|
name: "custom-menu-before",
|
|
1270
|
-
fn:
|
|
1285
|
+
fn: D(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1271
1286
|
key: "9"
|
|
1272
1287
|
} : void 0,
|
|
1273
1288
|
e.$slots["custom-menu-after"] ? {
|
|
1274
1289
|
name: "custom-menu-after",
|
|
1275
|
-
fn:
|
|
1290
|
+
fn: D(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1276
1291
|
key: "10"
|
|
1277
1292
|
} : void 0
|
|
1278
1293
|
]), 1032, [
|
|
@@ -1301,31 +1316,31 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1301
1316
|
"isCursorPointer",
|
|
1302
1317
|
"onGeneratePdf",
|
|
1303
1318
|
"style"
|
|
1304
|
-
])) :
|
|
1305
|
-
L.value.style.chart.controls.position === "top" && L.value.style.chart.controls.show && !
|
|
1319
|
+
])) : _("", !0),
|
|
1320
|
+
L.value.style.chart.controls.position === "top" && L.value.style.chart.controls.show && !E(dt) ? (C(), g(le, {
|
|
1306
1321
|
key: 5,
|
|
1307
1322
|
ref_key: "zoomControlsTop",
|
|
1308
|
-
ref:
|
|
1323
|
+
ref: tt,
|
|
1309
1324
|
config: L.value,
|
|
1310
|
-
scale:
|
|
1325
|
+
scale: E(Zt),
|
|
1311
1326
|
isFullscreen: I.value,
|
|
1312
|
-
isCursorPointer:
|
|
1313
|
-
onZoomIn:
|
|
1314
|
-
onZoomOut:
|
|
1315
|
-
onResetZoom:
|
|
1327
|
+
isCursorPointer: st.value,
|
|
1328
|
+
onZoomIn: an,
|
|
1329
|
+
onZoomOut: on,
|
|
1330
|
+
onResetZoom: sn
|
|
1316
1331
|
}, null, 8, [
|
|
1317
1332
|
"config",
|
|
1318
1333
|
"scale",
|
|
1319
1334
|
"isFullscreen",
|
|
1320
1335
|
"isCursorPointer"
|
|
1321
|
-
])) :
|
|
1322
|
-
|
|
1336
|
+
])) : _("", !0),
|
|
1337
|
+
y("div", Oe, [(C(), v("svg", {
|
|
1323
1338
|
ref_key: "svgRef",
|
|
1324
1339
|
ref: R,
|
|
1325
|
-
xmlns:
|
|
1326
|
-
viewBox:
|
|
1340
|
+
xmlns: E(a),
|
|
1341
|
+
viewBox: rn.value,
|
|
1327
1342
|
preserveAspectRatio: "xMidYMid meet",
|
|
1328
|
-
"aria-describedby": `map-keyboard-instructions-${
|
|
1343
|
+
"aria-describedby": `map-keyboard-instructions-${k.value}`,
|
|
1329
1344
|
tabindex: "0",
|
|
1330
1345
|
style: ve({
|
|
1331
1346
|
display: "block",
|
|
@@ -1335,20 +1350,20 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1335
1350
|
touchAction: B.value ? "none" : "auto",
|
|
1336
1351
|
cursor: B.value ? Q.value ? "grabbing" : "grab" : "default"
|
|
1337
1352
|
}),
|
|
1338
|
-
id: `vue-ui-geo_${
|
|
1339
|
-
onPointerdown:
|
|
1340
|
-
onPointerup:
|
|
1341
|
-
onPointercancel:
|
|
1342
|
-
onPointerleave:
|
|
1343
|
-
onWheel:
|
|
1344
|
-
onFocus:
|
|
1345
|
-
onBlur:
|
|
1346
|
-
onKeydown:
|
|
1347
|
-
}, [me(
|
|
1348
|
-
transform:
|
|
1353
|
+
id: `vue-ui-geo_${k.value}`,
|
|
1354
|
+
onPointerdown: In,
|
|
1355
|
+
onPointerup: Ln,
|
|
1356
|
+
onPointercancel: Ln,
|
|
1357
|
+
onPointerleave: Ln,
|
|
1358
|
+
onWheel: Rn,
|
|
1359
|
+
onFocus: Un,
|
|
1360
|
+
onBlur: Wn,
|
|
1361
|
+
onKeydown: Gn
|
|
1362
|
+
}, [me(E(He)), y("g", {
|
|
1363
|
+
transform: Kt.value.transform,
|
|
1349
1364
|
style: ve({ pointerEvents: Q.value ? "none" : "auto" })
|
|
1350
1365
|
}, [
|
|
1351
|
-
|
|
1366
|
+
y("g", null, [(C(!0), v(fe, null, xe(zt.value, (e) => (C(), v("path", {
|
|
1352
1367
|
class: "vue-ui-geo-territory",
|
|
1353
1368
|
key: e.uid,
|
|
1354
1369
|
d: e.path,
|
|
@@ -1356,11 +1371,11 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1356
1371
|
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1357
1372
|
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1358
1373
|
"vector-effect": "non-scaling-stroke",
|
|
1359
|
-
onMouseenter: (t) =>
|
|
1360
|
-
onMouseleave: (t) =>
|
|
1361
|
-
onClick: (t) =>
|
|
1374
|
+
onMouseenter: (t) => vn(e),
|
|
1375
|
+
onMouseleave: (t) => yn(e),
|
|
1376
|
+
onClick: (t) => bn(e)
|
|
1362
1377
|
}, null, 40, je))), 128))]),
|
|
1363
|
-
|
|
1378
|
+
y("g", null, [(C(!0), v(fe, null, xe(Bt.value, (e) => (C(), v("path", {
|
|
1364
1379
|
class: "vue-ui-geo-territory",
|
|
1365
1380
|
key: e.uid,
|
|
1366
1381
|
d: e.path,
|
|
@@ -1368,11 +1383,11 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1368
1383
|
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1369
1384
|
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1370
1385
|
"vector-effect": "non-scaling-stroke",
|
|
1371
|
-
onMouseenter: (t) =>
|
|
1372
|
-
onMouseleave: (t) =>
|
|
1373
|
-
onClick: (t) =>
|
|
1386
|
+
onMouseenter: (t) => vn(e),
|
|
1387
|
+
onMouseleave: (t) => yn(e),
|
|
1388
|
+
onClick: (t) => bn(e)
|
|
1374
1389
|
}, null, 40, Me))), 128))]),
|
|
1375
|
-
|
|
1390
|
+
y("g", null, [(C(!0), v(fe, null, xe(Vt.value, (e) => (C(), v("circle", {
|
|
1376
1391
|
key: e.uid,
|
|
1377
1392
|
cx: e.x,
|
|
1378
1393
|
cy: e.y,
|
|
@@ -1381,31 +1396,31 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1381
1396
|
stroke: e.stroke,
|
|
1382
1397
|
"stroke-width": e.strokeWidth,
|
|
1383
1398
|
"vector-effect": "non-scaling-stroke",
|
|
1384
|
-
onMouseenter: (t) =>
|
|
1385
|
-
onMouseleave:
|
|
1399
|
+
onMouseenter: (t) => En(e),
|
|
1400
|
+
onMouseleave: Dn
|
|
1386
1401
|
}, null, 40, Ne))), 128))]),
|
|
1387
|
-
(
|
|
1402
|
+
(C(!0), v(fe, null, xe(un.value, (t, n) => (C(), v("g", { key: t.uid }, [T(e.$slots, "datapoint", ge({ ref_for: !0 }, {
|
|
1388
1403
|
point: t,
|
|
1389
|
-
onPointEnter:
|
|
1390
|
-
onPointLeave:
|
|
1391
|
-
onPointClick:
|
|
1404
|
+
onPointEnter: xn,
|
|
1405
|
+
onPointLeave: Sn,
|
|
1406
|
+
onPointClick: wn,
|
|
1392
1407
|
highlighted: q.value === t.uid
|
|
1393
|
-
}), () => [
|
|
1408
|
+
}), () => [y("circle", {
|
|
1394
1409
|
class: _e({
|
|
1395
1410
|
"vue-ui-geo-point": !0,
|
|
1396
|
-
"vue-ui-geo-point-with-event":
|
|
1411
|
+
"vue-ui-geo-point-with-event": Cn.value && st.value
|
|
1397
1412
|
}),
|
|
1398
1413
|
cx: t.x,
|
|
1399
1414
|
cy: t.y,
|
|
1400
1415
|
r: q.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius,
|
|
1401
1416
|
fill: t.fill,
|
|
1402
|
-
stroke:
|
|
1403
|
-
"stroke-width":
|
|
1417
|
+
stroke: Tn.value.stroke,
|
|
1418
|
+
"stroke-width": Tn.value.strokeWidth,
|
|
1404
1419
|
"vector-effect": "non-scaling-stroke",
|
|
1405
|
-
onMouseenter: (e) =>
|
|
1406
|
-
onMouseleave: (e) =>
|
|
1407
|
-
onClick: (e) =>
|
|
1408
|
-
}, null, 42, Pe)], !0), L.value.style.chart.points.labels.show ? (
|
|
1420
|
+
onMouseenter: (e) => xn(t, n),
|
|
1421
|
+
onMouseleave: (e) => Sn(t),
|
|
1422
|
+
onClick: (e) => wn(t)
|
|
1423
|
+
}, null, 42, Pe)], !0), L.value.style.chart.points.labels.show ? (C(), v("text", {
|
|
1409
1424
|
key: 0,
|
|
1410
1425
|
class: "vue-ui-geo-point-label",
|
|
1411
1426
|
x: t.x,
|
|
@@ -1413,47 +1428,47 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1413
1428
|
"text-anchor": "middle",
|
|
1414
1429
|
fill: L.value.style.chart.points.labels.color,
|
|
1415
1430
|
"font-size": 1 * L.value.style.chart.points.labels.fontSizeRatio
|
|
1416
|
-
}, Se(t.name), 9, Fe)) :
|
|
1417
|
-
|
|
1418
|
-
drawingArea:
|
|
1419
|
-
x:
|
|
1420
|
-
y:
|
|
1421
|
-
width:
|
|
1422
|
-
height:
|
|
1423
|
-
isPrintingImg:
|
|
1431
|
+
}, Se(t.name), 9, Fe)) : _("", !0)]))), 128)),
|
|
1432
|
+
T(e.$slots, "svg", { svg: {
|
|
1433
|
+
drawingArea: rn.value,
|
|
1434
|
+
x: Wt.value?.minX ?? 0,
|
|
1435
|
+
y: Wt.value?.minY ?? 0,
|
|
1436
|
+
width: Wt.value?.width ?? 0,
|
|
1437
|
+
height: Wt.value?.height ?? 0,
|
|
1438
|
+
isPrintingImg: E(pt) || E(mt) || Ye.value,
|
|
1424
1439
|
isPrintingSvg: Xe.value,
|
|
1425
1440
|
data: {
|
|
1426
|
-
areaPaths:
|
|
1427
|
-
linePaths:
|
|
1428
|
-
geoJsonPoints:
|
|
1429
|
-
projectedPoints:
|
|
1441
|
+
areaPaths: zt.value,
|
|
1442
|
+
linePaths: Bt.value,
|
|
1443
|
+
geoJsonPoints: Vt.value,
|
|
1444
|
+
projectedPoints: un.value
|
|
1430
1445
|
}
|
|
1431
1446
|
} }, void 0, !0)
|
|
1432
|
-
], 12, Ae)], 44, ke)), e.$slots.hint ? (
|
|
1447
|
+
], 12, Ae)], 44, ke)), e.$slots.hint ? (C(), v("div", Ie, [T(e.$slots, "hint", S(b({
|
|
1433
1448
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1434
|
-
isVisible:
|
|
1435
|
-
})), void 0, !0)])) :
|
|
1436
|
-
e.$slots.watermark ? (
|
|
1437
|
-
L.value.style.chart.controls.position === "bottom" && L.value.style.chart.controls.show && !
|
|
1449
|
+
isVisible: it.value
|
|
1450
|
+
})), void 0, !0)])) : _("", !0)]),
|
|
1451
|
+
e.$slots.watermark ? (C(), v("div", Le, [T(e.$slots, "watermark", S(b({ isPrinting: E(pt) || E(mt) || Ye.value || Xe.value })), void 0, !0)])) : _("", !0),
|
|
1452
|
+
L.value.style.chart.controls.position === "bottom" && L.value.style.chart.controls.show && !E(dt) ? (C(), g(le, {
|
|
1438
1453
|
key: 7,
|
|
1439
1454
|
ref_key: "zoomControlsBottom",
|
|
1440
|
-
ref:
|
|
1455
|
+
ref: nt,
|
|
1441
1456
|
config: L.value,
|
|
1442
|
-
scale:
|
|
1457
|
+
scale: E(Zt),
|
|
1443
1458
|
isFullscreen: I.value,
|
|
1444
|
-
isCursorPointer:
|
|
1445
|
-
onZoomIn:
|
|
1446
|
-
onZoomOut:
|
|
1447
|
-
onResetZoom:
|
|
1459
|
+
isCursorPointer: st.value,
|
|
1460
|
+
onZoomIn: an,
|
|
1461
|
+
onZoomOut: on,
|
|
1462
|
+
onResetZoom: sn
|
|
1448
1463
|
}, null, 8, [
|
|
1449
1464
|
"config",
|
|
1450
1465
|
"scale",
|
|
1451
1466
|
"isFullscreen",
|
|
1452
1467
|
"isCursorPointer"
|
|
1453
|
-
])) :
|
|
1454
|
-
me(
|
|
1468
|
+
])) : _("", !0),
|
|
1469
|
+
me(E(ze), {
|
|
1455
1470
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
1456
|
-
show:
|
|
1471
|
+
show: xt.value.showTooltip && fn.value,
|
|
1457
1472
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
1458
1473
|
color: L.value.style.chart.tooltip.color,
|
|
1459
1474
|
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
@@ -1464,8 +1479,8 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1464
1479
|
position: L.value.style.chart.tooltip.position,
|
|
1465
1480
|
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
1466
1481
|
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
1467
|
-
parent:
|
|
1468
|
-
content:
|
|
1482
|
+
parent: A.value,
|
|
1483
|
+
content: pn.value,
|
|
1469
1484
|
isCustom: K.value,
|
|
1470
1485
|
isFullscreen: I.value,
|
|
1471
1486
|
smooth: L.value.style.chart.tooltip.smooth,
|
|
@@ -1473,11 +1488,11 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1473
1488
|
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
1474
1489
|
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1475
1490
|
isA11yMode: F.value === "keyboard",
|
|
1476
|
-
a11yPosition:
|
|
1491
|
+
a11yPosition: rt.value
|
|
1477
1492
|
}, {
|
|
1478
|
-
"tooltip-before":
|
|
1479
|
-
tooltip:
|
|
1480
|
-
"tooltip-after":
|
|
1493
|
+
"tooltip-before": D(() => [T(e.$slots, "tooltip-before", S(b({ ...Ze.value })), void 0, !0)]),
|
|
1494
|
+
tooltip: D(() => [T(e.$slots, "tooltip", S(b({ ...Ze.value })), void 0, !0)]),
|
|
1495
|
+
"tooltip-after": D(() => [T(e.$slots, "tooltip-after", S(b({ ...Ze.value })), void 0, !0)]),
|
|
1481
1496
|
_: 3
|
|
1482
1497
|
}, 8, [
|
|
1483
1498
|
"teleportTo",
|
|
@@ -1503,15 +1518,15 @@ var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe
|
|
|
1503
1518
|
"isA11yMode",
|
|
1504
1519
|
"a11yPosition"
|
|
1505
1520
|
]),
|
|
1506
|
-
e.$slots.source ? (
|
|
1521
|
+
e.$slots.source ? (C(), v("div", {
|
|
1507
1522
|
key: 8,
|
|
1508
1523
|
ref_key: "source",
|
|
1509
|
-
ref:
|
|
1524
|
+
ref: et,
|
|
1510
1525
|
dir: "auto"
|
|
1511
|
-
}, [
|
|
1512
|
-
|
|
1526
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
1527
|
+
T(e.$slots, "skeleton", {}, () => [E(dt) ? (C(), g(d, { key: 0 })) : _("", !0)], !0)
|
|
1513
1528
|
], 14, Ee));
|
|
1514
1529
|
}
|
|
1515
|
-
}, [["__scopeId", "data-v-
|
|
1530
|
+
}, [["__scopeId", "data-v-ebec76f9"]]);
|
|
1516
1531
|
//#endregion
|
|
1517
1532
|
export { Te as n, ze as t };
|