vue-data-ui 3.20.2 → 3.20.3
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/package.json +120 -120
- package/dist/A11yDataTable-BCbtxMU6.js +0 -45
- package/dist/Arrow-D6j6ocXm.js +0 -116
- package/dist/BaseDraggableDialog-4hDW-Rj2.js +0 -272
- package/dist/BaseIcon-DfLoHNUj.js +0 -502
- package/dist/BaseLegendToggle-C_Db-y7s.js +0 -56
- package/dist/BaseScanner-Dr2a1Msy.js +0 -27
- package/dist/BaseZoomControls-CG7hI_1P.js +0 -111
- package/dist/ColorPicker-Bjwxnvfh.js +0 -255
- package/dist/DataTable-B--IN22e.js +0 -150
- package/dist/Legend-Cz2uQ5gs.js +0 -114
- package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +0 -577
- package/dist/PackageVersion-f0MuYk3R.js +0 -11
- package/dist/PenAndPaper-DqrClVfb.js +0 -461
- package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
- package/dist/RecursiveLabels-D9rfID6q.js +0 -56
- package/dist/RecursiveLinks-BygcpDiT.js +0 -78
- package/dist/Shape-BPCJfphn.js +0 -141
- package/dist/Slicer-SHBj0VaV.js +0 -1144
- package/dist/SlicerPreview-DdihbUSJ.js +0 -1668
- package/dist/SparkTooltip-CfE6yCad.js +0 -93
- package/dist/Title-NWp4qB4K.js +0 -87
- package/dist/Tooltip-BENq327o.js +0 -312
- package/dist/UserOptions-C1NgoGu6.js +0 -1411
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/canvas-lib-BOP_HS11.js +0 -79
- package/dist/components/arrow.js +0 -2
- package/dist/components/vue-ui-3d-bar.js +0 -2
- package/dist/components/vue-ui-accordion.js +0 -2
- package/dist/components/vue-ui-age-pyramid.js +0 -2
- package/dist/components/vue-ui-annotator.js +0 -2
- package/dist/components/vue-ui-bullet.js +0 -2
- package/dist/components/vue-ui-bump.js +0 -2
- package/dist/components/vue-ui-candlestick.js +0 -2
- package/dist/components/vue-ui-carousel-table.js +0 -2
- package/dist/components/vue-ui-chestnut.js +0 -2
- package/dist/components/vue-ui-chord.js +0 -2
- package/dist/components/vue-ui-circle-pack.js +0 -2
- package/dist/components/vue-ui-cursor.js +0 -2
- package/dist/components/vue-ui-dag.js +0 -2
- package/dist/components/vue-ui-dashboard.js +0 -2
- package/dist/components/vue-ui-digits.js +0 -2
- package/dist/components/vue-ui-donut-evolution.js +0 -2
- package/dist/components/vue-ui-donut.js +0 -2
- package/dist/components/vue-ui-dumbbell.js +0 -2
- package/dist/components/vue-ui-flow.js +0 -2
- package/dist/components/vue-ui-funnel.js +0 -2
- package/dist/components/vue-ui-galaxy.js +0 -2
- package/dist/components/vue-ui-gauge.js +0 -2
- package/dist/components/vue-ui-geo.js +0 -2
- package/dist/components/vue-ui-gizmo.js +0 -2
- package/dist/components/vue-ui-heatmap.js +0 -2
- package/dist/components/vue-ui-history-plot.js +0 -2
- package/dist/components/vue-ui-horizontal-bar.js +0 -2
- package/dist/components/vue-ui-icon.js +0 -2
- package/dist/components/vue-ui-kpi.js +0 -2
- package/dist/components/vue-ui-mini-loader.js +0 -2
- package/dist/components/vue-ui-molecule.js +0 -2
- package/dist/components/vue-ui-mood-radar.js +0 -2
- package/dist/components/vue-ui-nested-donuts.js +0 -2
- package/dist/components/vue-ui-onion.js +0 -2
- package/dist/components/vue-ui-parallel-coordinate-plot.js +0 -2
- package/dist/components/vue-ui-pattern-seed.js +0 -2
- package/dist/components/vue-ui-pattern.js +0 -2
- package/dist/components/vue-ui-quadrant.js +0 -2
- package/dist/components/vue-ui-quick-chart.js +0 -2
- package/dist/components/vue-ui-radar.js +0 -2
- package/dist/components/vue-ui-rating.js +0 -2
- package/dist/components/vue-ui-relation-circle.js +0 -2
- package/dist/components/vue-ui-ridgeline.js +0 -2
- package/dist/components/vue-ui-rings.js +0 -2
- package/dist/components/vue-ui-scatter.js +0 -2
- package/dist/components/vue-ui-skeleton.js +0 -2
- package/dist/components/vue-ui-smiley.js +0 -2
- package/dist/components/vue-ui-spark-trend.js +0 -2
- package/dist/components/vue-ui-sparkbar.js +0 -2
- package/dist/components/vue-ui-sparkgauge.js +0 -2
- package/dist/components/vue-ui-sparkhistogram.js +0 -2
- package/dist/components/vue-ui-sparkline.js +0 -2
- package/dist/components/vue-ui-sparkstackbar.js +0 -2
- package/dist/components/vue-ui-stackbar.js +0 -2
- package/dist/components/vue-ui-stackline.js +0 -2
- package/dist/components/vue-ui-strip-plot.js +0 -2
- package/dist/components/vue-ui-table-heatmap.js +0 -2
- package/dist/components/vue-ui-table-sparkline.js +0 -2
- package/dist/components/vue-ui-table.js +0 -2
- package/dist/components/vue-ui-thermometer.js +0 -2
- package/dist/components/vue-ui-timer.js +0 -2
- package/dist/components/vue-ui-tiremarks.js +0 -2
- package/dist/components/vue-ui-treemap.js +0 -2
- package/dist/components/vue-ui-vertical-bar.js +0 -2
- package/dist/components/vue-ui-waffle.js +0 -2
- package/dist/components/vue-ui-wheel.js +0 -2
- package/dist/components/vue-ui-word-cloud.js +0 -2
- package/dist/components/vue-ui-world.js +0 -2
- package/dist/components/vue-ui-xy-canvas.js +0 -2
- package/dist/components/vue-ui-xy.js +0 -2
- package/dist/dom-to-png-BYtB4BF3.js +0 -237
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/geoProjections-Czak6Jn1.js +0 -145
- package/dist/img-1cKsci8e.js +0 -74
- package/dist/labelUtils-CUctkYoA.js +0 -19
- package/dist/lib-DUeYQsS0.js +0 -1882
- package/dist/llms.txt +0 -232
- package/dist/patternUtils-CS7hn6at.js +0 -258
- package/dist/pdf-D0eZ99cP.js +0 -90
- package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/style.css +0 -2
- package/dist/types/arrow.d.ts +0 -4
- package/dist/types/utils.d.ts +0 -551
- package/dist/types/vue-data-ui.d.ts +0 -17190
- package/dist/types/vue-ui-3d-bar.d.ts +0 -93
- package/dist/types/vue-ui-accordion.d.ts +0 -11
- package/dist/types/vue-ui-age-pyramid.d.ts +0 -108
- package/dist/types/vue-ui-annotator.d.ts +0 -34
- package/dist/types/vue-ui-bullet.d.ts +0 -85
- package/dist/types/vue-ui-bump.d.ts +0 -92
- package/dist/types/vue-ui-candlestick.d.ts +0 -106
- package/dist/types/vue-ui-carousel-table.d.ts +0 -59
- package/dist/types/vue-ui-chestnut.d.ts +0 -98
- package/dist/types/vue-ui-chord.d.ts +0 -110
- package/dist/types/vue-ui-circle-pack.d.ts +0 -126
- package/dist/types/vue-ui-cursor.d.ts +0 -9
- package/dist/types/vue-ui-dag.d.ts +0 -125
- package/dist/types/vue-ui-dashboard.d.ts +0 -68
- package/dist/types/vue-ui-digits.d.ts +0 -12
- package/dist/types/vue-ui-donut-evolution.d.ts +0 -96
- package/dist/types/vue-ui-donut.d.ts +0 -123
- package/dist/types/vue-ui-dumbbell.d.ts +0 -94
- package/dist/types/vue-ui-flow.d.ts +0 -106
- package/dist/types/vue-ui-funnel.d.ts +0 -79
- package/dist/types/vue-ui-galaxy.d.ts +0 -114
- package/dist/types/vue-ui-gauge.d.ts +0 -89
- package/dist/types/vue-ui-geo.d.ts +0 -94
- package/dist/types/vue-ui-gizmo.d.ts +0 -22
- package/dist/types/vue-ui-heatmap.d.ts +0 -101
- package/dist/types/vue-ui-history-plot.d.ts +0 -114
- package/dist/types/vue-ui-horizontal-bar.d.ts +0 -116
- package/dist/types/vue-ui-icon.d.ts +0 -15
- package/dist/types/vue-ui-kpi.d.ts +0 -25
- package/dist/types/vue-ui-mini-loader.d.ts +0 -15
- package/dist/types/vue-ui-molecule.d.ts +0 -112
- package/dist/types/vue-ui-mood-radar.d.ts +0 -92
- package/dist/types/vue-ui-nested-donuts.d.ts +0 -111
- package/dist/types/vue-ui-onion.d.ts +0 -106
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -125
- package/dist/types/vue-ui-pattern-seed.d.ts +0 -14
- package/dist/types/vue-ui-pattern.d.ts +0 -15
- package/dist/types/vue-ui-quadrant.d.ts +0 -125
- package/dist/types/vue-ui-quick-chart.d.ts +0 -108
- package/dist/types/vue-ui-radar.d.ts +0 -116
- package/dist/types/vue-ui-rating.d.ts +0 -42
- package/dist/types/vue-ui-relation-circle.d.ts +0 -92
- package/dist/types/vue-ui-ridgeline.d.ts +0 -106
- package/dist/types/vue-ui-rings.d.ts +0 -98
- package/dist/types/vue-ui-scatter.d.ts +0 -97
- package/dist/types/vue-ui-skeleton.d.ts +0 -11
- package/dist/types/vue-ui-smiley.d.ts +0 -28
- package/dist/types/vue-ui-spark-trend.d.ts +0 -19
- package/dist/types/vue-ui-sparkbar.d.ts +0 -49
- package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
- package/dist/types/vue-ui-sparkhistogram.d.ts +0 -46
- package/dist/types/vue-ui-sparkline.d.ts +0 -59
- package/dist/types/vue-ui-sparkstackbar.d.ts +0 -60
- package/dist/types/vue-ui-stackbar.d.ts +0 -118
- package/dist/types/vue-ui-stackline.d.ts +0 -114
- package/dist/types/vue-ui-strip-plot.d.ts +0 -96
- package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
- package/dist/types/vue-ui-table-sparkline.d.ts +0 -53
- package/dist/types/vue-ui-table.d.ts +0 -38
- package/dist/types/vue-ui-thermometer.d.ts +0 -70
- package/dist/types/vue-ui-timer.d.ts +0 -49
- package/dist/types/vue-ui-tiremarks.d.ts +0 -70
- package/dist/types/vue-ui-treemap.d.ts +0 -104
- package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
- package/dist/types/vue-ui-waffle.d.ts +0 -101
- package/dist/types/vue-ui-wheel.d.ts +0 -70
- package/dist/types/vue-ui-word-cloud.d.ts +0 -97
- package/dist/types/vue-ui-world.d.ts +0 -98
- package/dist/types/vue-ui-xy-canvas.d.ts +0 -101
- package/dist/types/vue-ui-xy.d.ts +0 -146
- package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +0 -50
- package/dist/useChartAccessibility-DYqac8yF.js +0 -12
- package/dist/useConfig-DAyQk86L.js +0 -7479
- package/dist/useFitSvgText-CT3nmlaS.js +0 -63
- package/dist/useNestedProp-CNcoy38D.js +0 -10
- package/dist/useObjectBindings-BI7hP-BC.js +0 -189
- package/dist/usePanZoom-CYU3B4T3.js +0 -157
- package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
- package/dist/usePrinter-C1Gqt_Sp.js +0 -49
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/useStableElementSize-C7KADDKj.js +0 -77
- package/dist/useSvgExport-SVIsDot8.js +0 -755
- package/dist/useTableResponsive-B24Uwt2E.js +0 -24
- package/dist/useThemeCheck-C43Tcqmk.js +0 -24
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
- package/dist/useTimeLabels-BmBRv27Y.js +0 -272
- package/dist/useUserOptionState-DK-_1ddE.js +0 -15
- package/dist/utils.js +0 -28
- package/dist/vClickOutside-DUrZWttG.js +0 -13
- package/dist/vue-data-ui-C3m9eNp0.js +0 -274
- package/dist/vue-data-ui.js +0 -76
- package/dist/vue-ui-3d-bar-Bfcitq55.js +0 -1757
- package/dist/vue-ui-accordion-Dw4MHKVB.js +0 -81
- package/dist/vue-ui-age-pyramid-Dgzd45Ol.js +0 -1238
- package/dist/vue-ui-annotator-DLPUAKlm.js +0 -2899
- package/dist/vue-ui-bullet-DAeyHSHC.js +0 -710
- package/dist/vue-ui-bump-DsiXfIFL.js +0 -1249
- package/dist/vue-ui-candlestick-BadEBUcF.js +0 -1826
- package/dist/vue-ui-carousel-table-_LCF7RFm.js +0 -455
- package/dist/vue-ui-chestnut-BTuAvc7L.js +0 -2010
- package/dist/vue-ui-chord-CAyRIJlh.js +0 -1391
- package/dist/vue-ui-circle-pack-BWzwg8Qb.js +0 -1608
- package/dist/vue-ui-cursor-C6t7nAT4.js +0 -283
- package/dist/vue-ui-dag-8Puv77-a.js +0 -2909
- package/dist/vue-ui-dashboard-CXDvRu27.js +0 -513
- package/dist/vue-ui-digits-BlHqILF0.js +0 -209
- package/dist/vue-ui-donut-CclzduCs.js +0 -2410
- package/dist/vue-ui-donut-evolution-DEfY2Zvy.js +0 -1510
- package/dist/vue-ui-dumbbell-BG5C4Hdg.js +0 -1530
- package/dist/vue-ui-flow-B73dHBrL.js +0 -1235
- package/dist/vue-ui-funnel-Bn3c5lWX.js +0 -777
- package/dist/vue-ui-galaxy-eBY55Fue.js +0 -1077
- package/dist/vue-ui-gauge-s8pl305B.js +0 -920
- package/dist/vue-ui-geo-Ca2ZPVhH.js +0 -1516
- package/dist/vue-ui-gizmo-CBNDeAzT.js +0 -225
- package/dist/vue-ui-heatmap-V79kNqUi.js +0 -1568
- package/dist/vue-ui-history-plot-jiJh8oaM.js +0 -1554
- package/dist/vue-ui-horizontal-bar-60b88qqU.js +0 -1681
- package/dist/vue-ui-kpi-DnfazUeY.js +0 -96
- package/dist/vue-ui-mini-loader-CyqBt2g4.js +0 -125
- package/dist/vue-ui-molecule-BeIVS2yp.js +0 -925
- package/dist/vue-ui-mood-radar-DHY1ry9I.js +0 -1148
- package/dist/vue-ui-nested-donuts-GNR6O-Z_.js +0 -1487
- package/dist/vue-ui-onion-DghkeKRu.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DqfRRSnD.js +0 -1416
- package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
- package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
- package/dist/vue-ui-quadrant-BBucQ_8r.js +0 -1978
- package/dist/vue-ui-quick-chart-DxxGq-5d.js +0 -2469
- package/dist/vue-ui-radar-B0gW_Iur.js +0 -1229
- package/dist/vue-ui-rating-BG4lf1z8.js +0 -343
- package/dist/vue-ui-relation-circle-C-fNOxJM.js +0 -924
- package/dist/vue-ui-ridgeline-CzDR20s3.js +0 -1622
- package/dist/vue-ui-rings-DNRdTVqV.js +0 -1246
- package/dist/vue-ui-scatter-CRgFebuE.js +0 -2413
- package/dist/vue-ui-skeleton-iNzRGgRn.js +0 -2556
- package/dist/vue-ui-smiley-G89TxRU-.js +0 -356
- package/dist/vue-ui-spark-trend-CPgTOFNY.js +0 -438
- package/dist/vue-ui-sparkbar-B4C_YxU-.js +0 -393
- package/dist/vue-ui-sparkgauge-DDkSKiba.js +0 -255
- package/dist/vue-ui-sparkhistogram-qtb6-Th8.js +0 -560
- package/dist/vue-ui-sparkline-TTSEEs7R.js +0 -1507
- package/dist/vue-ui-sparkstackbar-DXEnV79Y.js +0 -662
- package/dist/vue-ui-stackbar-CwFVpEgH.js +0 -2270
- package/dist/vue-ui-stackline-Bph0kD43.js +0 -2398
- package/dist/vue-ui-strip-plot-D2_WSwTF.js +0 -1340
- package/dist/vue-ui-table-BzmQMHxi.js +0 -1338
- package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +0 -344
- package/dist/vue-ui-table-sparkline-CXNxbqIw.js +0 -707
- package/dist/vue-ui-thermometer-Cqw2_Jpi.js +0 -763
- package/dist/vue-ui-timer-BHP_5wgz.js +0 -439
- package/dist/vue-ui-tiremarks-D8wFTxXl.js +0 -552
- package/dist/vue-ui-treemap-DbSebes7.js +0 -1587
- package/dist/vue-ui-waffle-CAIBpbY0.js +0 -1362
- package/dist/vue-ui-wheel-B5Cyopnp.js +0 -885
- package/dist/vue-ui-word-cloud-BaGDKrKL.js +0 -1656
- package/dist/vue-ui-world-DLcVBwLg.js +0 -14264
- package/dist/vue-ui-xy-CyP5FAo8.js +0 -4578
- package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +0 -1787
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
- package/dist/vue_ui_age_pyramid-BY6c-oX_.js +0 -301
- package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
- package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
- package/dist/vue_ui_candlestick-J8jmJvxP.js +0 -374
- package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
- package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
- package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
- package/dist/vue_ui_donut-BDGqG07h.js +0 -358
- package/dist/vue_ui_donut_evolution-D1yAAIHr.js +0 -717
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
- package/dist/vue_ui_flow-BewZjjKG.js +0 -238
- package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
- package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
- package/dist/vue_ui_geo-B8TODs-G.js +0 -248
- package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
- package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
- package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
- package/dist/vue_ui_onion-1FTFFS46.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
- package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
- package/dist/vue_ui_quick_chart-mZBdml3Z.js +0 -139
- package/dist/vue_ui_radar-jafTED5j.js +0 -306
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
- package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
- package/dist/vue_ui_scatter-I0POnicu.js +0 -479
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
- package/dist/vue_ui_sparkline-auZhap6Y.js +0 -151
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
- package/dist/vue_ui_stackbar-COOrQQdK.js +0 -412
- package/dist/vue_ui_stackline-DQqKPA9z.js +0 -460
- package/dist/vue_ui_strip_plot-CtJe8_gq.js +0 -301
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
- package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
- package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
- package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
- package/dist/vue_ui_waffle-DIARFc7g.js +0 -292
- package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
- package/dist/vue_ui_xy-BLUkWEAm.js +0 -482
- package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +0 -408
|
@@ -1,1516 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Bt as t, H as n, Lt as r, pt as i, t as a, y as o } from "./lib-DUeYQsS0.js";
|
|
3
|
-
import { t as s } from "./useConfig-DAyQk86L.js";
|
|
4
|
-
import { t as c } from "./usePrinter-C1Gqt_Sp.js";
|
|
5
|
-
import { n as l, t as u } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
|
-
import { t as d } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as f } from "./useNestedProp-CNcoy38D.js";
|
|
8
|
-
import { t as p } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ee } from "./img-1cKsci8e.js";
|
|
10
|
-
import { n as te } from "./Title-NWp4qB4K.js";
|
|
11
|
-
import { t as ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import { c as re } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
-
import { t as ie } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as ae } from "./A11yDataTable-BCbtxMU6.js";
|
|
15
|
-
import { t as oe } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
|
-
import { t as se } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
-
import { t as ce } from "./usePanZoom-CYU3B4T3.js";
|
|
18
|
-
import { t as le } from "./BaseZoomControls-CG7hI_1P.js";
|
|
19
|
-
import { t as ue } from "./geoProjections-Czak6Jn1.js";
|
|
20
|
-
import { t as de } from "./vue_ui_geo-B8TODs-G.js";
|
|
21
|
-
import { Fragment as fe, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as pe, createVNode as me, defineAsyncComponent as he, guardReactiveProps as y, mergeProps as ge, nextTick as b, normalizeClass as _e, normalizeProps as x, normalizeStyle as ve, onBeforeUnmount as ye, onMounted as be, openBlock as S, ref as C, renderList as xe, renderSlot as w, toDisplayString as Se, toRefs as Ce, unref as T, watch as we, withCtx as E } from "vue";
|
|
22
|
-
//#region src/components/vue-ui-geo.vue
|
|
23
|
-
var Te = /* @__PURE__ */ e({ default: () => ze }), Ee = ["id"], De = ["id"], Oe = { style: { position: "relative" } }, ke = [
|
|
24
|
-
"xmlns",
|
|
25
|
-
"viewBox",
|
|
26
|
-
"aria-describedby",
|
|
27
|
-
"id"
|
|
28
|
-
], Ae = ["transform"], je = [
|
|
29
|
-
"d",
|
|
30
|
-
"fill",
|
|
31
|
-
"stroke",
|
|
32
|
-
"stroke-width",
|
|
33
|
-
"onMouseenter",
|
|
34
|
-
"onMouseleave",
|
|
35
|
-
"onClick"
|
|
36
|
-
], Me = [
|
|
37
|
-
"d",
|
|
38
|
-
"stroke",
|
|
39
|
-
"stroke-width",
|
|
40
|
-
"onMouseenter",
|
|
41
|
-
"onMouseleave",
|
|
42
|
-
"onClick"
|
|
43
|
-
], Ne = [
|
|
44
|
-
"cx",
|
|
45
|
-
"cy",
|
|
46
|
-
"r",
|
|
47
|
-
"fill",
|
|
48
|
-
"stroke",
|
|
49
|
-
"stroke-width",
|
|
50
|
-
"onMouseenter"
|
|
51
|
-
], Pe = [
|
|
52
|
-
"cx",
|
|
53
|
-
"cy",
|
|
54
|
-
"r",
|
|
55
|
-
"fill",
|
|
56
|
-
"stroke",
|
|
57
|
-
"stroke-width",
|
|
58
|
-
"onMouseenter",
|
|
59
|
-
"onMouseleave",
|
|
60
|
-
"onClick"
|
|
61
|
-
], Fe = [
|
|
62
|
-
"x",
|
|
63
|
-
"y",
|
|
64
|
-
"fill",
|
|
65
|
-
"font-size"
|
|
66
|
-
], Ie = {
|
|
67
|
-
key: 0,
|
|
68
|
-
style: {
|
|
69
|
-
position: "absolute",
|
|
70
|
-
top: "100%",
|
|
71
|
-
left: "0",
|
|
72
|
-
width: "100%"
|
|
73
|
-
},
|
|
74
|
-
"data-dom-to-png-ignore": "",
|
|
75
|
-
"aria-hidden": "true"
|
|
76
|
-
}, Le = {
|
|
77
|
-
key: 6,
|
|
78
|
-
class: "vue-data-ui-watermark"
|
|
79
|
-
}, Re = 1.5, ze = /* @__PURE__ */ ne({
|
|
80
|
-
__name: "vue-ui-geo",
|
|
81
|
-
props: {
|
|
82
|
-
config: {
|
|
83
|
-
type: Object,
|
|
84
|
-
default() {
|
|
85
|
-
return {};
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
dataset: {
|
|
89
|
-
type: [Array, Object],
|
|
90
|
-
default() {
|
|
91
|
-
return [];
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
emits: ["copyAlt"],
|
|
96
|
-
setup(e, { expose: ne, emit: Te }) {
|
|
97
|
-
let ze = he(() => import("./Tooltip-BENq327o.js")), Be = he(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), Ve = he(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), He = he(() => import("./PackageVersion-f0MuYk3R.js").then((e) => e.t)), D = e, Ue = Te, { vue_ui_geo: We } = s(), { isThemeValid: Ge, warnInvalidTheme: Ke } = p(), O = C(n()), qe = C(0), Je = C(0), Ye = C(!1), Xe = C(!1), k = C(null), A = C(!1), j = C(null), Ze = C(null), Qe = C(null), $e = C(null), M = C(null), N = C(null), et = C(null), tt = C(null), P = C(null), nt = C({
|
|
98
|
-
x: 0,
|
|
99
|
-
y: 0
|
|
100
|
-
}), F = C("pointer"), rt = C(!1), I = C(!1);
|
|
101
|
-
function it(e) {
|
|
102
|
-
I.value = e, qe.value += 1;
|
|
103
|
-
}
|
|
104
|
-
function at() {
|
|
105
|
-
let e = f({
|
|
106
|
-
userConfig: D.config,
|
|
107
|
-
defaultConfig: We
|
|
108
|
-
}), t = e.theme;
|
|
109
|
-
if (!t) return e;
|
|
110
|
-
if (!Ge.value(e)) return Ke(e), e;
|
|
111
|
-
let n = f({
|
|
112
|
-
userConfig: de[t] || D.config,
|
|
113
|
-
defaultConfig: e
|
|
114
|
-
});
|
|
115
|
-
return f({
|
|
116
|
-
userConfig: D.config,
|
|
117
|
-
defaultConfig: n
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
let L = C(at()), ot = m(() => L.value.userOptions.useCursorPointer), { userOptionsVisible: st, keepUserOptionState: ct } = oe({ config: L.value }), { svgRef: R } = se({ config: L.value.style.chart.title }), lt = m(() => t({
|
|
121
|
-
defaultConfig: {
|
|
122
|
-
map: { geoJson: {
|
|
123
|
-
type: "FeatureCollection",
|
|
124
|
-
features: [
|
|
125
|
-
{
|
|
126
|
-
type: "Feature",
|
|
127
|
-
properties: { name: "Island A" },
|
|
128
|
-
geometry: {
|
|
129
|
-
type: "Polygon",
|
|
130
|
-
coordinates: [[
|
|
131
|
-
[-6, 2],
|
|
132
|
-
[-4, 2],
|
|
133
|
-
[-4, 4],
|
|
134
|
-
[-6, 4],
|
|
135
|
-
[-6, 2]
|
|
136
|
-
]]
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
type: "Feature",
|
|
141
|
-
properties: { name: "Island B" },
|
|
142
|
-
geometry: {
|
|
143
|
-
type: "Polygon",
|
|
144
|
-
coordinates: [[
|
|
145
|
-
[-2, -1],
|
|
146
|
-
[1, -1],
|
|
147
|
-
[1, 2],
|
|
148
|
-
[-2, 2],
|
|
149
|
-
[-2, -1]
|
|
150
|
-
]]
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
type: "Feature",
|
|
155
|
-
properties: { name: "Island C" },
|
|
156
|
-
geometry: {
|
|
157
|
-
type: "Polygon",
|
|
158
|
-
coordinates: [[
|
|
159
|
-
[3, -3],
|
|
160
|
-
[5, -3],
|
|
161
|
-
[5, -1],
|
|
162
|
-
[3, -1],
|
|
163
|
-
[3, -3]
|
|
164
|
-
]]
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
type: "Feature",
|
|
169
|
-
properties: { name: "Island D" },
|
|
170
|
-
geometry: {
|
|
171
|
-
type: "Polygon",
|
|
172
|
-
coordinates: [[
|
|
173
|
-
[4, 3],
|
|
174
|
-
[7, 3],
|
|
175
|
-
[7, 5],
|
|
176
|
-
[4, 5],
|
|
177
|
-
[4, 3]
|
|
178
|
-
]]
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
]
|
|
182
|
-
} },
|
|
183
|
-
userOptions: { show: !1 },
|
|
184
|
-
style: { chart: {
|
|
185
|
-
backgroundColor: "#99999930",
|
|
186
|
-
territory: {
|
|
187
|
-
fill: "#99999950",
|
|
188
|
-
stroke: "#8A8A8A",
|
|
189
|
-
strokeWidth: .5
|
|
190
|
-
}
|
|
191
|
-
} }
|
|
192
|
-
},
|
|
193
|
-
userConfig: L.value.skeletonConfig ?? {}
|
|
194
|
-
})), { loading: ut, FINAL_DATASET: dt } = l({
|
|
195
|
-
...Ce(D),
|
|
196
|
-
FINAL_CONFIG: L,
|
|
197
|
-
prepareConfig: at,
|
|
198
|
-
allowEmptyDataset: !0,
|
|
199
|
-
skeletonDataset: D.config?.skeletonDataset ?? [],
|
|
200
|
-
skeletonConfig: t({
|
|
201
|
-
defaultConfig: L.value,
|
|
202
|
-
userConfig: lt.value
|
|
203
|
-
})
|
|
204
|
-
}), { isPrinting: ft, isImaging: pt, generatePdf: mt, generateImage: ht } = c({
|
|
205
|
-
elementId: `vue-ui-geo_${O.value}`,
|
|
206
|
-
fileName: L.value.style.chart.title.text || "vue-ui-geo",
|
|
207
|
-
options: L.value.userOptions.print
|
|
208
|
-
}), gt = m(() => L.value.style.chart.controls.show ? L.value.style.chart.controls.position === "top" ? et.value?.$el ?? null : L.value.style.chart.controls.position === "bottom" ? tt.value?.$el ?? null : null : null);
|
|
209
|
-
function _t() {
|
|
210
|
-
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect(), M.value = null, N.value = null);
|
|
211
|
-
}
|
|
212
|
-
let z = m(() => !!L.value.responsive && !I.value);
|
|
213
|
-
we(() => I.value, async (e) => {
|
|
214
|
-
if (e) {
|
|
215
|
-
_t(), V.value = Number(L.value.style.chart.dimensions.width) || V.value, H.value = Number(L.value.style.chart.dimensions.height) || H.value, await b(), A.value = !1, requestAnimationFrame(() => {
|
|
216
|
-
A.value || tn();
|
|
217
|
-
});
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
L.value.responsive && (await b(), vt());
|
|
221
|
-
});
|
|
222
|
-
function vt() {
|
|
223
|
-
if (_t(), !z.value) return;
|
|
224
|
-
let e = re(() => {
|
|
225
|
-
if (!k.value) return;
|
|
226
|
-
let { width: e, height: t } = ie({
|
|
227
|
-
chart: k.value,
|
|
228
|
-
noTitle: yt.value ? Qe.value : null,
|
|
229
|
-
title: L.value.style.chart.title.text ? Ze.value : null,
|
|
230
|
-
legend: gt.value,
|
|
231
|
-
source: $e.value
|
|
232
|
-
});
|
|
233
|
-
requestAnimationFrame(() => {
|
|
234
|
-
V.value = Math.max(.1, Number(e) || .1), H.value = Math.max(.1, Number(t) || .1) - 24;
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
M.value = new ResizeObserver(e), N.value = k.value ? k.value.parentNode : null, N.value && M.value.observe(N.value), e();
|
|
238
|
-
}
|
|
239
|
-
let yt = m(() => L.value.userOptions.show && !L.value.style.chart.title.text), bt = C({ showTooltip: L.value.style.chart.tooltip.show }), B = C(L.value.style.chart.zoom.active);
|
|
240
|
-
we(() => D.config, () => {
|
|
241
|
-
L.value = at(), bt.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, vt(), Je.value += 1, qe.value += 1;
|
|
242
|
-
}, { deep: !0 });
|
|
243
|
-
let { projections: xt } = ue, St = m(() => L.value?.projection || "equirectangular"), Ct = m(() => {
|
|
244
|
-
let e = xt?.[St.value];
|
|
245
|
-
return typeof e == "function" ? e : xt.equirectangular;
|
|
246
|
-
}), wt = m(() => L.value.map.geoJson ?? null), Tt = {
|
|
247
|
-
aitoff: {
|
|
248
|
-
width: 1e3,
|
|
249
|
-
height: 500
|
|
250
|
-
},
|
|
251
|
-
azimuthalEquidistant: {
|
|
252
|
-
width: 1e3,
|
|
253
|
-
height: 1e3
|
|
254
|
-
},
|
|
255
|
-
bonne: {
|
|
256
|
-
width: 1e3,
|
|
257
|
-
height: 1e3
|
|
258
|
-
},
|
|
259
|
-
equirectangular: {
|
|
260
|
-
width: 1e3,
|
|
261
|
-
height: 700
|
|
262
|
-
},
|
|
263
|
-
gallPeters: {
|
|
264
|
-
width: 1e3,
|
|
265
|
-
height: 800
|
|
266
|
-
},
|
|
267
|
-
globe: {
|
|
268
|
-
width: 1e3,
|
|
269
|
-
height: 1e3
|
|
270
|
-
},
|
|
271
|
-
hammer: {
|
|
272
|
-
width: 1e3,
|
|
273
|
-
height: 500
|
|
274
|
-
},
|
|
275
|
-
mercator: {
|
|
276
|
-
width: 1e3,
|
|
277
|
-
height: 750
|
|
278
|
-
},
|
|
279
|
-
mollweide: {
|
|
280
|
-
width: 1e3,
|
|
281
|
-
height: 600
|
|
282
|
-
},
|
|
283
|
-
robinson: {
|
|
284
|
-
width: 1e3,
|
|
285
|
-
height: 600
|
|
286
|
-
},
|
|
287
|
-
sinusoidal: {
|
|
288
|
-
width: 1e3,
|
|
289
|
-
height: 500
|
|
290
|
-
},
|
|
291
|
-
vanDerGrinten: {
|
|
292
|
-
width: 1e3,
|
|
293
|
-
height: 1e3
|
|
294
|
-
},
|
|
295
|
-
winkelTripel: {
|
|
296
|
-
width: 1e3,
|
|
297
|
-
height: 1e3
|
|
298
|
-
}
|
|
299
|
-
}, V = C(L.value.style.chart.dimensions.width), H = C(L.value.style.chart.dimensions.height), Et = m(() => {
|
|
300
|
-
let e = Tt[St.value] || Tt.equirectangular;
|
|
301
|
-
return {
|
|
302
|
-
width: e.width,
|
|
303
|
-
height: e.height
|
|
304
|
-
};
|
|
305
|
-
}), U = m(() => {
|
|
306
|
-
let e = Et.value, t = V.value, n = H.value, r = Number.isFinite(t) && t > 0, i = Number.isFinite(n) && n > 0;
|
|
307
|
-
return r && i ? {
|
|
308
|
-
width: t,
|
|
309
|
-
height: n
|
|
310
|
-
} : r && !i ? {
|
|
311
|
-
width: t,
|
|
312
|
-
height: t * (e.height / e.width)
|
|
313
|
-
} : !r && i ? {
|
|
314
|
-
width: n * (e.width / e.height),
|
|
315
|
-
height: n
|
|
316
|
-
} : {
|
|
317
|
-
width: e.width,
|
|
318
|
-
height: e.height
|
|
319
|
-
};
|
|
320
|
-
}), Dt = m(() => {
|
|
321
|
-
let e = L.value?.map?.center, t = [0, 0];
|
|
322
|
-
if (!Array.isArray(e) || e.length !== 2) return t;
|
|
323
|
-
let n = Number(e[0]), r = Number(e[1]);
|
|
324
|
-
return !Number.isFinite(n) || !Number.isFinite(r) ? t : [n, r];
|
|
325
|
-
});
|
|
326
|
-
function W([e, t]) {
|
|
327
|
-
return Ct.value([e, t], Et.value.width, Et.value.height, Dt.value);
|
|
328
|
-
}
|
|
329
|
-
function Ot(e, t = {}) {
|
|
330
|
-
let { defaultName: n = "", namePropertyCandidates: r = [
|
|
331
|
-
"name",
|
|
332
|
-
"nom",
|
|
333
|
-
"admin",
|
|
334
|
-
"NAME",
|
|
335
|
-
"label",
|
|
336
|
-
"title",
|
|
337
|
-
"description",
|
|
338
|
-
"DESCRIPTION",
|
|
339
|
-
"NAME_1",
|
|
340
|
-
"NAME_2",
|
|
341
|
-
"NAME_3",
|
|
342
|
-
"NAME_EN",
|
|
343
|
-
"name:en",
|
|
344
|
-
"name_en",
|
|
345
|
-
"localname",
|
|
346
|
-
"local_name"
|
|
347
|
-
], includeNullGeometries: i = !1 } = t, a = {
|
|
348
|
-
type: "FeatureCollection",
|
|
349
|
-
features: []
|
|
350
|
-
};
|
|
351
|
-
function o(e) {
|
|
352
|
-
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
353
|
-
}
|
|
354
|
-
function s(e) {
|
|
355
|
-
return !o(e) || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? Array.isArray(e.geometries) : Object.hasOwn(e, "coordinates");
|
|
356
|
-
}
|
|
357
|
-
function c(e) {
|
|
358
|
-
if (!o(e)) return "";
|
|
359
|
-
for (let t of r) {
|
|
360
|
-
let n = e[t];
|
|
361
|
-
if (typeof n == "string" && n.trim()) return n.trim();
|
|
362
|
-
}
|
|
363
|
-
return "";
|
|
364
|
-
}
|
|
365
|
-
function l({ geometry: e, properties: t, fallbackName: r, featureIndex: i }) {
|
|
366
|
-
let a = o(t) ? { ...t } : {}, s = c(a), l = n ? `${n} ${i + 1}` : "", u = s || (typeof r == "string" ? r.trim() : "") || l;
|
|
367
|
-
return !a.name && u && (a.name = u), {
|
|
368
|
-
type: "Feature",
|
|
369
|
-
geometry: e,
|
|
370
|
-
properties: a
|
|
371
|
-
};
|
|
372
|
-
}
|
|
373
|
-
function u(e, t, n, r, a) {
|
|
374
|
-
let c = Array.isArray(e?.geometries) ? e.geometries : [], d = r;
|
|
375
|
-
for (let e = 0; e < c.length; e += 1) {
|
|
376
|
-
let r = c[e];
|
|
377
|
-
if (r) {
|
|
378
|
-
if (o(r) && r.type === "GeometryCollection") {
|
|
379
|
-
d = u(r, t, n, d, a);
|
|
380
|
-
continue;
|
|
381
|
-
}
|
|
382
|
-
if (s(r)) {
|
|
383
|
-
if (r.coordinates == null && r.type !== "GeometryCollection") {
|
|
384
|
-
i && (a.push(l({
|
|
385
|
-
geometry: null,
|
|
386
|
-
properties: t,
|
|
387
|
-
fallbackName: n,
|
|
388
|
-
featureIndex: d
|
|
389
|
-
})), d += 1);
|
|
390
|
-
continue;
|
|
391
|
-
}
|
|
392
|
-
a.push(l({
|
|
393
|
-
geometry: r,
|
|
394
|
-
properties: t,
|
|
395
|
-
fallbackName: n,
|
|
396
|
-
featureIndex: d
|
|
397
|
-
})), d += 1;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
return d;
|
|
402
|
-
}
|
|
403
|
-
function d(e, t, n = 0) {
|
|
404
|
-
let r = n;
|
|
405
|
-
if (e == null) return r;
|
|
406
|
-
if (Array.isArray(e)) {
|
|
407
|
-
for (let n of e) r = d(n, t, r);
|
|
408
|
-
return r;
|
|
409
|
-
}
|
|
410
|
-
if (!o(e) || typeof e.type != "string") return r;
|
|
411
|
-
if (e.type === "FeatureCollection") {
|
|
412
|
-
let n = Array.isArray(e.features) ? e.features : [];
|
|
413
|
-
for (let e of n) r = d(e, t, r);
|
|
414
|
-
return r;
|
|
415
|
-
}
|
|
416
|
-
if (e.type === "Feature") {
|
|
417
|
-
let n = o(e.properties) ? e.properties : {}, a = c(n), d = e.geometry ?? null;
|
|
418
|
-
return d == null ? (i && (t.push(l({
|
|
419
|
-
geometry: null,
|
|
420
|
-
properties: n,
|
|
421
|
-
fallbackName: a,
|
|
422
|
-
featureIndex: r
|
|
423
|
-
})), r += 1), r) : o(d) && d.type === "GeometryCollection" ? u(d, n, a, r, t) : (s(d) && (t.push(l({
|
|
424
|
-
geometry: d,
|
|
425
|
-
properties: n,
|
|
426
|
-
fallbackName: a,
|
|
427
|
-
featureIndex: r
|
|
428
|
-
})), r += 1), r);
|
|
429
|
-
}
|
|
430
|
-
return e.type === "GeometryCollection" ? u(e, {}, "", r, t) : (s(e) && (t.push(l({
|
|
431
|
-
geometry: e,
|
|
432
|
-
properties: {},
|
|
433
|
-
fallbackName: "",
|
|
434
|
-
featureIndex: r
|
|
435
|
-
})), r += 1), r);
|
|
436
|
-
}
|
|
437
|
-
let f = [];
|
|
438
|
-
return d(e, f, 0), {
|
|
439
|
-
...a,
|
|
440
|
-
features: f
|
|
441
|
-
};
|
|
442
|
-
}
|
|
443
|
-
function kt(e) {
|
|
444
|
-
let t = Array.isArray(e?.features) ? e.features : [];
|
|
445
|
-
function n(e) {
|
|
446
|
-
if (!e || typeof e != "object") return "";
|
|
447
|
-
let t = [
|
|
448
|
-
e.name,
|
|
449
|
-
e.nom,
|
|
450
|
-
e.admin,
|
|
451
|
-
e.NAME,
|
|
452
|
-
e.label,
|
|
453
|
-
e.title,
|
|
454
|
-
e.description,
|
|
455
|
-
e.DESCRIPTION,
|
|
456
|
-
e.NAME_1,
|
|
457
|
-
e.NAME_2,
|
|
458
|
-
e.NAME_3,
|
|
459
|
-
e.NAME_EN,
|
|
460
|
-
e["name:en"],
|
|
461
|
-
e.name_en,
|
|
462
|
-
e.localname,
|
|
463
|
-
e.local_name
|
|
464
|
-
];
|
|
465
|
-
for (let e of t) if (typeof e == "string" && e.trim()) return e.trim();
|
|
466
|
-
for (let t of Object.values(e)) if (typeof t == "string" && t.trim()) return t.trim();
|
|
467
|
-
return "";
|
|
468
|
-
}
|
|
469
|
-
return t.filter((e) => e && e.type === "Feature" && e.geometry).map((e, t) => {
|
|
470
|
-
let r = e.properties || {}, i = n(r);
|
|
471
|
-
return {
|
|
472
|
-
feature: e,
|
|
473
|
-
geometry: e.geometry,
|
|
474
|
-
properties: r,
|
|
475
|
-
name: i,
|
|
476
|
-
uid: `map-feature-${O.value}-${t}`,
|
|
477
|
-
index: t
|
|
478
|
-
};
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
let At = m(() => Ot(wt.value, {
|
|
482
|
-
defaultName: "",
|
|
483
|
-
includeNullGeometries: !1
|
|
484
|
-
})), jt = m(() => kt(At.value));
|
|
485
|
-
function Mt(e) {
|
|
486
|
-
if (!e || typeof e.type != "string") return "";
|
|
487
|
-
if (e.type === "GeometryCollection") return (Array.isArray(e.geometries) ? e.geometries : []).map((e) => Mt(e)).filter(Boolean).join(" ");
|
|
488
|
-
let t = (e) => {
|
|
489
|
-
if (!Array.isArray(e) || e.length < 2) return null;
|
|
490
|
-
let t = Number(e[0]), n = Number(e[1]);
|
|
491
|
-
if (!Number.isFinite(t) || !Number.isFinite(n)) return null;
|
|
492
|
-
let r = W([t, n]);
|
|
493
|
-
if (!Array.isArray(r) || r.length < 2) return null;
|
|
494
|
-
let i = Number(r[0]), a = Number(r[1]);
|
|
495
|
-
return !Number.isFinite(i) || !Number.isFinite(a) ? null : [i, a];
|
|
496
|
-
}, n = (e) => {
|
|
497
|
-
let n = (e || []).map(t).filter(Boolean);
|
|
498
|
-
return n.length < 2 ? "" : "M" + n.map(([e, t]) => `${e},${t}`).join("L");
|
|
499
|
-
}, r = (e) => (e || []).map((e) => {
|
|
500
|
-
let t = n(e);
|
|
501
|
-
return t ? t + "Z" : "";
|
|
502
|
-
}).filter(Boolean).join(" ");
|
|
503
|
-
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(" ") : "";
|
|
504
|
-
}
|
|
505
|
-
function Nt(e) {
|
|
506
|
-
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 : [] : [];
|
|
507
|
-
}
|
|
508
|
-
function Pt(e) {
|
|
509
|
-
return !e || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).some((e) => Pt(e)) : e.type === "Point" || e.type === "MultiPoint";
|
|
510
|
-
}
|
|
511
|
-
let Ft = m(() => jt.value.filter((e) => {
|
|
512
|
-
let t = e.geometry;
|
|
513
|
-
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;
|
|
514
|
-
})), It = m(() => jt.value.filter((e) => {
|
|
515
|
-
let t = e.geometry;
|
|
516
|
-
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;
|
|
517
|
-
})), Lt = m(() => jt.value.filter((e) => {
|
|
518
|
-
let t = e.geometry;
|
|
519
|
-
return t ? Pt(t) : !1;
|
|
520
|
-
})), Rt = m(() => Ft.value.map((e) => {
|
|
521
|
-
let t = Mt(e.geometry);
|
|
522
|
-
return t ? {
|
|
523
|
-
...e,
|
|
524
|
-
path: t
|
|
525
|
-
} : null;
|
|
526
|
-
}).filter(Boolean)), zt = m(() => It.value.map((e) => {
|
|
527
|
-
let t = Mt(e.geometry);
|
|
528
|
-
return t ? {
|
|
529
|
-
...e,
|
|
530
|
-
path: t
|
|
531
|
-
} : null;
|
|
532
|
-
}).filter(Boolean)), Bt = m(() => {
|
|
533
|
-
let e = [];
|
|
534
|
-
function t(e = {}) {
|
|
535
|
-
let t = e?.style && typeof e.style == "object" ? e.style : {}, n = e.radius ?? e.r ?? t.radius ?? t.r, r = e.color ?? e.fill ?? t.color ?? t.fill, i = e.stroke ?? t.stroke, a = e.strokeWidth ?? e.stroke_width ?? t.strokeWidth ?? t.stroke_width;
|
|
536
|
-
return {
|
|
537
|
-
radius: Number.isFinite(Number(n)) ? Number(n) : Number(L.value.style.chart.points.radius),
|
|
538
|
-
fill: r != null && String(r).trim() ? o(String(r).trim()) : L.value.style.chart.points.fill,
|
|
539
|
-
stroke: i != null && String(i).trim() ? o(String(i).trim()) : L.value.style.chart.points.stroke,
|
|
540
|
-
strokeWidth: Number.isFinite(Number(a)) ? Number(a) : Number(L.value.style.chart.points.strokeWidth)
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
for (let n of Lt.value) {
|
|
544
|
-
let r = Nt(n.geometry);
|
|
545
|
-
for (let i = 0; i < r.length; i += 1) {
|
|
546
|
-
let a = r[i];
|
|
547
|
-
if (!Array.isArray(a) || a.length < 2) continue;
|
|
548
|
-
let o = Number(a[0]), s = Number(a[1]);
|
|
549
|
-
if (!Number.isFinite(o) || !Number.isFinite(s)) continue;
|
|
550
|
-
let c = W([o, s]), l = c?.[0], u = c?.[1];
|
|
551
|
-
if (!Number.isFinite(l) || !Number.isFinite(u)) continue;
|
|
552
|
-
let d = t(n?.feature?.properties && typeof n.feature.properties == "object" ? n.feature.properties : {});
|
|
553
|
-
e.push({
|
|
554
|
-
uid: `${n.uid}-geojson-point-${i}`,
|
|
555
|
-
name: n.name || "",
|
|
556
|
-
x: l,
|
|
557
|
-
y: u,
|
|
558
|
-
...d,
|
|
559
|
-
originalFeature: n.feature,
|
|
560
|
-
featureIndex: n.index,
|
|
561
|
-
pointIndex: i
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
return e;
|
|
566
|
-
});
|
|
567
|
-
function Vt(e) {
|
|
568
|
-
if (!e || typeof e.type != "string") return [];
|
|
569
|
-
let t = [], n = (e) => {
|
|
570
|
-
if (!Array.isArray(e) || e.length < 2) return;
|
|
571
|
-
let n = Number(e[0]), r = Number(e[1]);
|
|
572
|
-
if (!Number.isFinite(n) || !Number.isFinite(r)) return;
|
|
573
|
-
let i = W([n, r]), a = i?.[0], o = i?.[1];
|
|
574
|
-
!Number.isFinite(a) || !Number.isFinite(o) || t.push([a, o]);
|
|
575
|
-
}, r = (e) => {
|
|
576
|
-
if (Array.isArray(e)) {
|
|
577
|
-
if (e.length >= 2 && typeof e[0] == "number" && typeof e[1] == "number") {
|
|
578
|
-
n(e);
|
|
579
|
-
return;
|
|
580
|
-
}
|
|
581
|
-
for (let t of e) r(t);
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
if (e.type === "GeometryCollection" && Array.isArray(e.geometries)) {
|
|
585
|
-
for (let n of e.geometries) t.push(...Vt(n));
|
|
586
|
-
return t;
|
|
587
|
-
}
|
|
588
|
-
return e.type === "Point" ? (n(e.coordinates), t) : e.type === "MultiPoint" ? ((e.coordinates || []).forEach(n), t) : (r(e.coordinates), t);
|
|
589
|
-
}
|
|
590
|
-
function Ht(e) {
|
|
591
|
-
let t = [];
|
|
592
|
-
for (let n of e) t.push(...Vt(n.geometry));
|
|
593
|
-
if (!t.length) return null;
|
|
594
|
-
let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
|
|
595
|
-
for (let [e, o] of t) e < n && (n = e), o < r && (r = o), e > i && (i = e), o > a && (a = o);
|
|
596
|
-
let o = i - n, s = a - r;
|
|
597
|
-
return !(o > 0) || !(s > 0) ? null : {
|
|
598
|
-
minX: n,
|
|
599
|
-
minY: r,
|
|
600
|
-
maxX: i,
|
|
601
|
-
maxY: a,
|
|
602
|
-
width: o,
|
|
603
|
-
height: s
|
|
604
|
-
};
|
|
605
|
-
}
|
|
606
|
-
let Ut = m(() => Ht(jt.value));
|
|
607
|
-
function Wt({ bounds: e, targetWidth: t, targetHeight: n, padding: r }) {
|
|
608
|
-
if (!e || !(e.width > 0) || !(e.height > 0)) return {
|
|
609
|
-
scale: 1,
|
|
610
|
-
translateX: 0,
|
|
611
|
-
translateY: 0,
|
|
612
|
-
transform: ""
|
|
613
|
-
};
|
|
614
|
-
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, ee = f - e.minX * l, te = p - e.minY * l;
|
|
615
|
-
return {
|
|
616
|
-
scale: l,
|
|
617
|
-
translateX: ee,
|
|
618
|
-
translateY: te,
|
|
619
|
-
transform: `translate(${ee} ${te}) scale(${l})`
|
|
620
|
-
};
|
|
621
|
-
}
|
|
622
|
-
let Gt = m(() => {
|
|
623
|
-
let e = Ut.value;
|
|
624
|
-
if (!e) return {
|
|
625
|
-
scale: 1,
|
|
626
|
-
translateX: 0,
|
|
627
|
-
translateY: 0,
|
|
628
|
-
transform: ""
|
|
629
|
-
};
|
|
630
|
-
let t = L.value?.map?.fitPadding, n = Number.isFinite(Number(t)) ? Number(t) : 0;
|
|
631
|
-
return Wt({
|
|
632
|
-
bounds: e,
|
|
633
|
-
targetWidth: U.value.width,
|
|
634
|
-
targetHeight: U.value.height,
|
|
635
|
-
padding: n
|
|
636
|
-
});
|
|
637
|
-
}), Kt = m(() => `0 0 ${U.value.width} ${U.value.height}`), { viewBox: qt, resetZoom: Jt, setInitialViewBox: Yt, scale: Xt, zoomByFactor: Zt } = ce(R, {
|
|
638
|
-
x: 0,
|
|
639
|
-
y: 0,
|
|
640
|
-
width: U.value.width,
|
|
641
|
-
height: U.value.height
|
|
642
|
-
}, 1, B);
|
|
643
|
-
function Qt() {
|
|
644
|
-
B.value = !B.value;
|
|
645
|
-
}
|
|
646
|
-
function $t(e) {
|
|
647
|
-
let t = Gt.value, n = Number(t?.scale) || 1, r = Number(t?.translateX) || 0, i = Number(t?.translateY) || 0;
|
|
648
|
-
return {
|
|
649
|
-
x: e.x * n + r,
|
|
650
|
-
y: e.y * n + i
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
function en() {
|
|
654
|
-
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;
|
|
655
|
-
if (!r) return {
|
|
656
|
-
x: 0,
|
|
657
|
-
y: 0,
|
|
658
|
-
width: i,
|
|
659
|
-
height: a
|
|
660
|
-
};
|
|
661
|
-
let o = W([t, n]), s = o?.[0], c = o?.[1];
|
|
662
|
-
if (!Number.isFinite(s) || !Number.isFinite(c)) return {
|
|
663
|
-
x: 0,
|
|
664
|
-
y: 0,
|
|
665
|
-
width: i,
|
|
666
|
-
height: a
|
|
667
|
-
};
|
|
668
|
-
let l = $t({
|
|
669
|
-
x: s,
|
|
670
|
-
y: c
|
|
671
|
-
});
|
|
672
|
-
return {
|
|
673
|
-
x: l.x - i / 2,
|
|
674
|
-
y: l.y - a / 2,
|
|
675
|
-
width: i,
|
|
676
|
-
height: a
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
function tn() {
|
|
680
|
-
Yt(en(), { overwriteCurrentIfNotZoomed: !0 }), A.value = !0;
|
|
681
|
-
}
|
|
682
|
-
let nn = m(() => {
|
|
683
|
-
let e = qt.value;
|
|
684
|
-
return e ? `${e.x} ${e.y} ${e.width} ${e.height}` : Kt.value;
|
|
685
|
-
});
|
|
686
|
-
function rn() {
|
|
687
|
-
Zt(Re, !0);
|
|
688
|
-
}
|
|
689
|
-
function an() {
|
|
690
|
-
Zt(1 / Re, !0);
|
|
691
|
-
}
|
|
692
|
-
async function on() {
|
|
693
|
-
Yt(en(), { overwriteCurrentIfNotZoomed: !0 }), Jt(!0);
|
|
694
|
-
}
|
|
695
|
-
we(() => [
|
|
696
|
-
L.value.projection,
|
|
697
|
-
L.value.map.center?.[0],
|
|
698
|
-
L.value.map.center?.[1],
|
|
699
|
-
L.value.map.fitPadding,
|
|
700
|
-
wt.value
|
|
701
|
-
], async () => {
|
|
702
|
-
A.value = !1, await b(), requestAnimationFrame(() => {
|
|
703
|
-
A.value || tn();
|
|
704
|
-
});
|
|
705
|
-
}, { deep: !1 }), we(() => [
|
|
706
|
-
V.value,
|
|
707
|
-
H.value,
|
|
708
|
-
z.value
|
|
709
|
-
], async () => {
|
|
710
|
-
z.value && (await b(), Yt({
|
|
711
|
-
x: 0,
|
|
712
|
-
y: 0,
|
|
713
|
-
width: U.value.width,
|
|
714
|
-
height: U.value.height
|
|
715
|
-
}, { overwriteCurrentIfNotZoomed: !0 }), A.value = !1, requestAnimationFrame(() => {
|
|
716
|
-
A.value || tn();
|
|
717
|
-
}));
|
|
718
|
-
}, { flush: "post" });
|
|
719
|
-
function sn(e) {
|
|
720
|
-
return e ? e.type === "FeatureCollection" && Array.isArray(e.features) ? e.features.filter((e) => e?.type === "Feature" && e.geometry?.type === "Point").map((e, t) => {
|
|
721
|
-
let n = e.properties || {}, r = n.name || n.label || n.title || `Point ${t + 1}`, i = e.geometry.coordinates;
|
|
722
|
-
return {
|
|
723
|
-
uid: `map-point-${O.value}-${t}`,
|
|
724
|
-
name: r,
|
|
725
|
-
coordinates: i,
|
|
726
|
-
color: n.color ?? null,
|
|
727
|
-
radius: n.radius ?? null,
|
|
728
|
-
hoverRadiusRatio: L.value.style.chart.points.hoverRadiusRatio,
|
|
729
|
-
description: n.description ?? null,
|
|
730
|
-
original: e,
|
|
731
|
-
index: t
|
|
732
|
-
};
|
|
733
|
-
}) : Array.isArray(e) ? e.map((e, t) => {
|
|
734
|
-
let n = null, r = `Point ${t + 1}`, i = null, a = null, o = null;
|
|
735
|
-
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));
|
|
736
|
-
let s = n ? n[0] : NaN, c = n ? n[1] : NaN;
|
|
737
|
-
return !Number.isFinite(s) || !Number.isFinite(c) ? null : {
|
|
738
|
-
uid: `map-point-${O.value}-${t}`,
|
|
739
|
-
name: r,
|
|
740
|
-
coordinates: [s, c],
|
|
741
|
-
color: a,
|
|
742
|
-
radius: o,
|
|
743
|
-
hoverRadiusRatio: L.value.style.chart.points.hoverRadiusRatio,
|
|
744
|
-
description: i,
|
|
745
|
-
original: e,
|
|
746
|
-
index: t
|
|
747
|
-
};
|
|
748
|
-
}).filter(Boolean) : typeof e == "object" ? Object.entries(e).map(([e, t], n) => {
|
|
749
|
-
if (!t || typeof t != "object") return null;
|
|
750
|
-
let r = Array.isArray(t.coordinates) ? t.coordinates : null;
|
|
751
|
-
if (!r || r.length < 2) return null;
|
|
752
|
-
let i = Number(r[0]), a = Number(r[1]);
|
|
753
|
-
return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
|
|
754
|
-
uid: `map-point-${O.value}-${n}-${e}`,
|
|
755
|
-
name: t.name || e,
|
|
756
|
-
coordinates: [i, a],
|
|
757
|
-
color: t.color ?? null,
|
|
758
|
-
radius: t.radius ?? null,
|
|
759
|
-
hoverRadiusRatio: L.value.style.chart.points.hoverRadiusRatio,
|
|
760
|
-
description: t.description ?? null,
|
|
761
|
-
original: t,
|
|
762
|
-
index: n
|
|
763
|
-
};
|
|
764
|
-
}).filter(Boolean) : [] : [];
|
|
765
|
-
}
|
|
766
|
-
let cn = m(() => sn(dt.value)), ln = m(() => cn.value.map((e) => {
|
|
767
|
-
let t = W(e.coordinates), n = t?.[0], r = t?.[1];
|
|
768
|
-
return !Number.isFinite(n) || !Number.isFinite(r) ? null : {
|
|
769
|
-
...e,
|
|
770
|
-
x: n,
|
|
771
|
-
y: r,
|
|
772
|
-
fill: e.color ? o(e.color) : L.value.style.chart.points.fill,
|
|
773
|
-
radius: Number.isFinite(Number(e.radius)) ? Number(e.radius) : L.value.style.chart.points.radius
|
|
774
|
-
};
|
|
775
|
-
}).filter(Boolean)), G = m(() => ln.value.map((e, t) => ({
|
|
776
|
-
...e,
|
|
777
|
-
keyboardIndex: t
|
|
778
|
-
})));
|
|
779
|
-
function un(e) {
|
|
780
|
-
let t = $t(e), n = r(t.x, t.y, R.value);
|
|
781
|
-
n && (nt.value = {
|
|
782
|
-
x: n.x,
|
|
783
|
-
y: n.y
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
let dn = C(!1), fn = C(""), K = C(!1), q = C(null), J = C(null);
|
|
787
|
-
function pn(e) {
|
|
788
|
-
fn.value = e, dn.value = !0;
|
|
789
|
-
}
|
|
790
|
-
function Y() {
|
|
791
|
-
dn.value = !1, fn.value = "";
|
|
792
|
-
}
|
|
793
|
-
function mn(e) {
|
|
794
|
-
return String(e ?? "").replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
795
|
-
}
|
|
796
|
-
function hn(e) {
|
|
797
|
-
j.value = {
|
|
798
|
-
datapoint: e,
|
|
799
|
-
seriesIndex: e.index,
|
|
800
|
-
series: cn.value,
|
|
801
|
-
config: L.value
|
|
802
|
-
}, K.value = !1;
|
|
803
|
-
let t = L.value.style.chart.tooltip.customFormat;
|
|
804
|
-
if (i(t)) try {
|
|
805
|
-
let e = t(j.value);
|
|
806
|
-
if (typeof e == "string") return K.value = !0, e;
|
|
807
|
-
} catch {
|
|
808
|
-
console.warn("Custom format cannot be applied."), K.value = !1;
|
|
809
|
-
}
|
|
810
|
-
return `<div><div style="font-weight:600">${mn(e.name)}</div>${e.description == null ? "" : `<div style="margin-top:6px">${mn(e.description)}</div>`}</div>`;
|
|
811
|
-
}
|
|
812
|
-
function gn(e) {
|
|
813
|
-
K.value = !1;
|
|
814
|
-
let t = L.value.style.chart.tooltip.customFormat;
|
|
815
|
-
if (i(t)) try {
|
|
816
|
-
let n = t({
|
|
817
|
-
datapoint: e,
|
|
818
|
-
config: L.value
|
|
819
|
-
});
|
|
820
|
-
if (typeof n == "string") return K.value = !0, n;
|
|
821
|
-
} catch {
|
|
822
|
-
console.warn("Custom format cannot be applied."), K.value = !1;
|
|
823
|
-
}
|
|
824
|
-
let n = typeof e?.name == "string" ? e.name.trim() : "";
|
|
825
|
-
return n ? `<div><div style="font-weight:600">${mn(n)}</div></div>` : (K.value = !1, "");
|
|
826
|
-
}
|
|
827
|
-
function _n(e) {
|
|
828
|
-
if (L.value.events.territoryEnter && L.value.events.territoryEnter({
|
|
829
|
-
datapoint: e,
|
|
830
|
-
seriesIndex: e.index
|
|
831
|
-
}), !(typeof e?.name == "string" && e.name.trim()) && !L.value.style.chart.territory.hover.enabledWhenEmpty) {
|
|
832
|
-
J.value = null, Y();
|
|
833
|
-
return;
|
|
834
|
-
}
|
|
835
|
-
J.value = e.uid, pn(gn(e));
|
|
836
|
-
}
|
|
837
|
-
function vn(e) {
|
|
838
|
-
J.value = null, Y(), L.value.events.territoryLeave && L.value.events.territoryLeave({
|
|
839
|
-
datapoint: e,
|
|
840
|
-
seriesIndex: e.index
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
function yn(e) {
|
|
844
|
-
L.value.events.territoryClick && L.value.events.territoryClick({
|
|
845
|
-
datapoint: e,
|
|
846
|
-
seriesIndex: e.index
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
function bn(e, t = null, n = "pointer") {
|
|
850
|
-
F.value = n, q.value = e.uid, Number.isInteger(t) && (P.value = t), n === "keyboard" && un(e), pn(hn(e)), L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
851
|
-
datapoint: e,
|
|
852
|
-
seriesIndex: e.index
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
function xn(e, t = "pointer") {
|
|
856
|
-
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({
|
|
857
|
-
datapoint: e,
|
|
858
|
-
seriesIndex: e.index
|
|
859
|
-
}));
|
|
860
|
-
}
|
|
861
|
-
let Sn = m(() => !!L.value.events.datapointClick && typeof L.value.events.datapointClick == "function");
|
|
862
|
-
function Cn(e) {
|
|
863
|
-
Sn.value && L.value.events.datapointClick({
|
|
864
|
-
datapoint: e,
|
|
865
|
-
seriesIndex: e.index
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
let X = m(() => L.value.style.chart.territory), wn = m(() => L.value.style.chart.points);
|
|
869
|
-
function Tn(e) {
|
|
870
|
-
let t = typeof e?.name == "string" ? e.name.trim() : "";
|
|
871
|
-
if (!t) {
|
|
872
|
-
J.value = null, Y();
|
|
873
|
-
return;
|
|
874
|
-
}
|
|
875
|
-
let n = {
|
|
876
|
-
name: t,
|
|
877
|
-
uid: e.uid,
|
|
878
|
-
index: e.featureIndex,
|
|
879
|
-
properties: {}
|
|
880
|
-
};
|
|
881
|
-
J.value = e.uid, pn(gn(n));
|
|
882
|
-
}
|
|
883
|
-
function En() {
|
|
884
|
-
J.value = null, Y();
|
|
885
|
-
}
|
|
886
|
-
let Z = C(!1);
|
|
887
|
-
function Dn() {
|
|
888
|
-
Z.value = !Z.value;
|
|
889
|
-
}
|
|
890
|
-
we(() => Z.value, (e) => {
|
|
891
|
-
B.value = !e;
|
|
892
|
-
});
|
|
893
|
-
function On() {
|
|
894
|
-
bt.value.showTooltip = !bt.value.showTooltip;
|
|
895
|
-
}
|
|
896
|
-
let kn = m(() => L.value.style.chart.backgroundColor), { exportSvg: An, getSvg: jn } = d({
|
|
897
|
-
svg: R,
|
|
898
|
-
title: m(() => L.value.style.chart.title),
|
|
899
|
-
legend: void 0,
|
|
900
|
-
legendItems: void 0,
|
|
901
|
-
backgroundColor: kn
|
|
902
|
-
});
|
|
903
|
-
async function Mn({ isCb: e }) {
|
|
904
|
-
Xe.value = !0, await b();
|
|
905
|
-
try {
|
|
906
|
-
if (e) {
|
|
907
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await jn();
|
|
908
|
-
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
909
|
-
blob: e,
|
|
910
|
-
url: t,
|
|
911
|
-
text: n,
|
|
912
|
-
dataUrl: r
|
|
913
|
-
}));
|
|
914
|
-
} else await Promise.resolve(An());
|
|
915
|
-
} finally {
|
|
916
|
-
Xe.value = !1;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
function Nn(e) {
|
|
920
|
-
if (e?.stage === "start") {
|
|
921
|
-
Ye.value = !0;
|
|
922
|
-
return;
|
|
923
|
-
}
|
|
924
|
-
if (e?.stage === "end") {
|
|
925
|
-
Ye.value = !1;
|
|
926
|
-
return;
|
|
927
|
-
}
|
|
928
|
-
ht();
|
|
929
|
-
}
|
|
930
|
-
async function Pn({ scale: e = 2 } = {}) {
|
|
931
|
-
if (!k.value) return;
|
|
932
|
-
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ee({
|
|
933
|
-
domElement: k.value,
|
|
934
|
-
base64: !0,
|
|
935
|
-
img: !0,
|
|
936
|
-
scale: e
|
|
937
|
-
});
|
|
938
|
-
return {
|
|
939
|
-
imageUri: i,
|
|
940
|
-
base64: a,
|
|
941
|
-
title: L.value.style.chart.title.text,
|
|
942
|
-
width: t,
|
|
943
|
-
height: n,
|
|
944
|
-
aspectRatio: r
|
|
945
|
-
};
|
|
946
|
-
}
|
|
947
|
-
let Q = C(!1), $ = null;
|
|
948
|
-
function Fn() {
|
|
949
|
-
B.value && (Q.value = !0);
|
|
950
|
-
}
|
|
951
|
-
function In() {
|
|
952
|
-
Q.value = !1;
|
|
953
|
-
}
|
|
954
|
-
function Ln() {
|
|
955
|
-
B.value && (Q.value = !0, $ && clearTimeout($), $ = setTimeout(() => {
|
|
956
|
-
Q.value = !1, $ = null;
|
|
957
|
-
}, 140));
|
|
958
|
-
}
|
|
959
|
-
ye(() => {
|
|
960
|
-
$ && clearTimeout($);
|
|
961
|
-
});
|
|
962
|
-
async function Rn([e, t], { animated: n = !0 } = {}) {
|
|
963
|
-
let r = Number(e), i = Number(t);
|
|
964
|
-
if (!Number.isFinite(r) || !Number.isFinite(i)) return;
|
|
965
|
-
let a = W([r, i]), o = a?.[0], s = a?.[1];
|
|
966
|
-
if (!Number.isFinite(o) || !Number.isFinite(s)) return;
|
|
967
|
-
let c = $t({
|
|
968
|
-
x: o,
|
|
969
|
-
y: s
|
|
970
|
-
}), l = qt.value ? { ...qt.value } : {
|
|
971
|
-
x: 0,
|
|
972
|
-
y: 0,
|
|
973
|
-
width: U.value.width,
|
|
974
|
-
height: U.value.height
|
|
975
|
-
}, u = {
|
|
976
|
-
x: c.x - l.width / 2,
|
|
977
|
-
y: c.y - l.height / 2,
|
|
978
|
-
width: l.width,
|
|
979
|
-
height: l.height
|
|
980
|
-
};
|
|
981
|
-
if (!n) {
|
|
982
|
-
qt.value = u;
|
|
983
|
-
return;
|
|
984
|
-
}
|
|
985
|
-
let d = { ...l }, f = { ...u }, p = null, ee = (e) => {
|
|
986
|
-
p ??= e;
|
|
987
|
-
let t = Math.min((e - p) / 250, 1);
|
|
988
|
-
qt.value = {
|
|
989
|
-
x: d.x + (f.x - d.x) * t,
|
|
990
|
-
y: d.y + (f.y - d.y) * t,
|
|
991
|
-
width: d.width + (f.width - d.width) * t,
|
|
992
|
-
height: d.height + (f.height - d.height) * t
|
|
993
|
-
}, t < 1 && requestAnimationFrame(ee);
|
|
994
|
-
};
|
|
995
|
-
requestAnimationFrame(ee);
|
|
996
|
-
}
|
|
997
|
-
be(async () => {
|
|
998
|
-
vt(), await b(), requestAnimationFrame(() => {
|
|
999
|
-
A.value || (tn(), (L.value.map.center?.[0] || L.value.map.center?.[1]) && Rn(L.value.map.center, { animated: !1 }));
|
|
1000
|
-
});
|
|
1001
|
-
}), ye(() => {
|
|
1002
|
-
_t();
|
|
1003
|
-
});
|
|
1004
|
-
async function zn() {
|
|
1005
|
-
if (Ue("copyAlt", {
|
|
1006
|
-
config: L.value,
|
|
1007
|
-
dataset: dt.value
|
|
1008
|
-
}), !L.value.userOptions.callbacks.altCopy) {
|
|
1009
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1010
|
-
return;
|
|
1011
|
-
}
|
|
1012
|
-
await Promise.resolve(L.value.userOptions.callbacks.altCopy({
|
|
1013
|
-
config: L.value,
|
|
1014
|
-
dataset: dt.value
|
|
1015
|
-
}));
|
|
1016
|
-
}
|
|
1017
|
-
function Bn(e, t) {
|
|
1018
|
-
let n = G.value;
|
|
1019
|
-
if (!n.length) return null;
|
|
1020
|
-
let r = n[e];
|
|
1021
|
-
if (!r) return null;
|
|
1022
|
-
let i = null, a = Infinity;
|
|
1023
|
-
for (let o = 0; o < n.length; o += 1) {
|
|
1024
|
-
if (o === e) continue;
|
|
1025
|
-
let s = n[o], c = s.x - r.x, l = s.y - r.y, u = !1, d = 0, f = 0;
|
|
1026
|
-
if (t === "right" && c > 0 && (u = !0, d = c, f = Math.abs(l)), t === "left" && c < 0 && (u = !0, d = Math.abs(c), f = Math.abs(l)), t === "down" && l > 0 && (u = !0, d = l, f = Math.abs(c)), t === "up" && l < 0 && (u = !0, d = Math.abs(l), f = Math.abs(c)), !u) continue;
|
|
1027
|
-
let p = d * d + f * f * 4;
|
|
1028
|
-
p < a && (a = p, i = o);
|
|
1029
|
-
}
|
|
1030
|
-
return i;
|
|
1031
|
-
}
|
|
1032
|
-
function Vn(e) {
|
|
1033
|
-
let t = G.value;
|
|
1034
|
-
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;
|
|
1035
|
-
}
|
|
1036
|
-
function Hn() {
|
|
1037
|
-
rt.value = !0;
|
|
1038
|
-
}
|
|
1039
|
-
function Un() {
|
|
1040
|
-
let e = P.value == null ? null : G.value[P.value];
|
|
1041
|
-
e ? xn(e, "keyboard") : (P.value = null, F.value = "pointer", Y(), q.value = null), rt.value = !1;
|
|
1042
|
-
}
|
|
1043
|
-
function Wn(e) {
|
|
1044
|
-
if (!R.value || Z.value || document.activeElement !== R.value || !G.value.length) return;
|
|
1045
|
-
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";
|
|
1046
|
-
if (!t && !n && !r && !i && !a && !o) return;
|
|
1047
|
-
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1048
|
-
let e = P.value == null ? null : G.value[P.value];
|
|
1049
|
-
e ? xn(e, "keyboard") : (P.value = null, F.value = "pointer", Y(), q.value = null);
|
|
1050
|
-
return;
|
|
1051
|
-
}
|
|
1052
|
-
if (a) {
|
|
1053
|
-
let e = P.value == null ? null : G.value[P.value];
|
|
1054
|
-
if (!e) return;
|
|
1055
|
-
Cn(e);
|
|
1056
|
-
return;
|
|
1057
|
-
}
|
|
1058
|
-
let s = t ? "right" : n ? "left" : r ? "down" : "up", c = null;
|
|
1059
|
-
if (P.value == null ? c = Vn(s) : (c = Bn(P.value, s), c ??= Vn(s)), c == null) return;
|
|
1060
|
-
let l = G.value[c];
|
|
1061
|
-
l && bn(l, c, "keyboard");
|
|
1062
|
-
}
|
|
1063
|
-
let Gn = m(() => ({
|
|
1064
|
-
headers: [
|
|
1065
|
-
"Name",
|
|
1066
|
-
"Latitude",
|
|
1067
|
-
"Longitude",
|
|
1068
|
-
"Description"
|
|
1069
|
-
],
|
|
1070
|
-
rows: cn.value.map((e) => {
|
|
1071
|
-
let t = Array.isArray(e.coordinates) ? e.coordinates[1] : null, n = Array.isArray(e.coordinates) ? e.coordinates[0] : null;
|
|
1072
|
-
return [
|
|
1073
|
-
e.name ?? "",
|
|
1074
|
-
Number.isFinite(t) ? String(t) : "",
|
|
1075
|
-
Number.isFinite(n) ? String(n) : "",
|
|
1076
|
-
e.description ?? ""
|
|
1077
|
-
];
|
|
1078
|
-
})
|
|
1079
|
-
}));
|
|
1080
|
-
return ne({
|
|
1081
|
-
getImage: Pn,
|
|
1082
|
-
generatePdf: mt,
|
|
1083
|
-
generateImage: ht,
|
|
1084
|
-
generateSvg: Mn,
|
|
1085
|
-
toggleTooltip: On,
|
|
1086
|
-
toggleAnnotator: Dn,
|
|
1087
|
-
toggleFullscreen: it,
|
|
1088
|
-
zoomIn: rn,
|
|
1089
|
-
zoomOut: an,
|
|
1090
|
-
resetZoom: Jt,
|
|
1091
|
-
focusLocation: Rn,
|
|
1092
|
-
copyAlt: zn
|
|
1093
|
-
}), (e, t) => (S(), _("div", {
|
|
1094
|
-
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" : ""}`),
|
|
1095
|
-
ref_key: "geoChart",
|
|
1096
|
-
ref: k,
|
|
1097
|
-
id: `map_${O.value}`,
|
|
1098
|
-
dir: "auto",
|
|
1099
|
-
style: ve({
|
|
1100
|
-
fontFamily: L.value.style.fontFamily,
|
|
1101
|
-
width: "100%",
|
|
1102
|
-
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1103
|
-
height: z.value ? `${H.value}px` : void 0
|
|
1104
|
-
})
|
|
1105
|
-
}, [
|
|
1106
|
-
v("div", {
|
|
1107
|
-
id: `chart-instructions-${O.value}`,
|
|
1108
|
-
class: "sr-only"
|
|
1109
|
-
}, [v("p", null, Se(L.value.a11y.translations.keyboardNavigation), 1)], 8, De),
|
|
1110
|
-
Gn.value?.rows?.length ? (S(), h(ae, {
|
|
1111
|
-
key: 0,
|
|
1112
|
-
uid: O.value,
|
|
1113
|
-
head: Gn.value.headers,
|
|
1114
|
-
body: Gn.value.rows,
|
|
1115
|
-
notice: L.value.a11y.translations.tableAvailable,
|
|
1116
|
-
caption: L.value.a11y.translations.tableCaption
|
|
1117
|
-
}, null, 8, [
|
|
1118
|
-
"uid",
|
|
1119
|
-
"head",
|
|
1120
|
-
"body",
|
|
1121
|
-
"notice",
|
|
1122
|
-
"caption"
|
|
1123
|
-
])) : g("", !0),
|
|
1124
|
-
yt.value ? (S(), _("div", {
|
|
1125
|
-
key: 1,
|
|
1126
|
-
ref_key: "noTitle",
|
|
1127
|
-
ref: Qe,
|
|
1128
|
-
class: "vue-data-ui-no-title-space",
|
|
1129
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
1130
|
-
}, null, 512)) : g("", !0),
|
|
1131
|
-
L.value.style.chart.title.text ? (S(), _("div", {
|
|
1132
|
-
key: 2,
|
|
1133
|
-
ref_key: "chartTitle",
|
|
1134
|
-
ref: Ze,
|
|
1135
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1136
|
-
}, [(S(), h(te, {
|
|
1137
|
-
key: `title_${Je.value}`,
|
|
1138
|
-
config: {
|
|
1139
|
-
title: {
|
|
1140
|
-
cy: "geo-title",
|
|
1141
|
-
...L.value.style.chart.title
|
|
1142
|
-
},
|
|
1143
|
-
subtitle: {
|
|
1144
|
-
cy: "geo-subtitle",
|
|
1145
|
-
...L.value.style.chart.title.subtitle
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
}, null, 8, ["config"]))], 512)) : g("", !0),
|
|
1149
|
-
L.value.userOptions.buttons.annotator ? (S(), h(T(Ve), {
|
|
1150
|
-
key: 3,
|
|
1151
|
-
svgRef: T(R),
|
|
1152
|
-
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1153
|
-
color: L.value.style.chart.color,
|
|
1154
|
-
active: Z.value,
|
|
1155
|
-
isCursorPointer: ot.value,
|
|
1156
|
-
onClose: Dn
|
|
1157
|
-
}, {
|
|
1158
|
-
"annotator-action-close": E(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1159
|
-
"annotator-action-color": E(({ color: t }) => [w(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
|
|
1160
|
-
"annotator-action-draw": E(({ mode: t }) => [w(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
|
|
1161
|
-
"annotator-action-undo": E(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
|
|
1162
|
-
"annotator-action-redo": E(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
|
|
1163
|
-
"annotator-action-delete": E(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
|
|
1164
|
-
_: 3
|
|
1165
|
-
}, 8, [
|
|
1166
|
-
"svgRef",
|
|
1167
|
-
"backgroundColor",
|
|
1168
|
-
"color",
|
|
1169
|
-
"active",
|
|
1170
|
-
"isCursorPointer"
|
|
1171
|
-
])) : g("", !0),
|
|
1172
|
-
L.value.userOptions.show && (T(ct) || T(st)) ? (S(), h(T(Be), {
|
|
1173
|
-
ref: "userOptionsRef",
|
|
1174
|
-
key: `user_options_${qe.value}`,
|
|
1175
|
-
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1176
|
-
color: L.value.style.chart.color,
|
|
1177
|
-
isPrinting: T(ft),
|
|
1178
|
-
isImaging: T(pt),
|
|
1179
|
-
uid: O.value,
|
|
1180
|
-
hasXls: !1,
|
|
1181
|
-
hasTable: !1,
|
|
1182
|
-
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.chart.tooltip.show,
|
|
1183
|
-
hasPdf: L.value.userOptions.buttons.pdf,
|
|
1184
|
-
hasImg: L.value.userOptions.buttons.img,
|
|
1185
|
-
hasSvg: L.value.userOptions.buttons.svg,
|
|
1186
|
-
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
1187
|
-
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
1188
|
-
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1189
|
-
hasZoom: L.value.userOptions.buttons.zoom,
|
|
1190
|
-
isZoom: B.value,
|
|
1191
|
-
isFullscreen: I.value,
|
|
1192
|
-
isTooltip: bt.value.showTooltip,
|
|
1193
|
-
titles: { ...L.value.userOptions.buttonTitles },
|
|
1194
|
-
chartElement: k.value,
|
|
1195
|
-
position: L.value.userOptions.position,
|
|
1196
|
-
isAnnotation: Z.value,
|
|
1197
|
-
callbacks: L.value.userOptions.callbacks,
|
|
1198
|
-
printScale: L.value.userOptions.print.scale,
|
|
1199
|
-
isCursorPointer: ot.value,
|
|
1200
|
-
onToggleFullscreen: it,
|
|
1201
|
-
onGeneratePdf: T(mt),
|
|
1202
|
-
onGenerateImage: Nn,
|
|
1203
|
-
onGenerateSvg: Mn,
|
|
1204
|
-
onToggleTooltip: On,
|
|
1205
|
-
onToggleAnnotator: Dn,
|
|
1206
|
-
onToggleZoom: Qt,
|
|
1207
|
-
onCopyAlt: zn,
|
|
1208
|
-
style: ve({ visibility: T(ct) ? T(st) ? "visible" : "hidden" : "visible" })
|
|
1209
|
-
}, pe({ _: 2 }, [
|
|
1210
|
-
e.$slots.menuIcon ? {
|
|
1211
|
-
name: "menuIcon",
|
|
1212
|
-
fn: E(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", x(y({
|
|
1213
|
-
isOpen: t,
|
|
1214
|
-
color: n
|
|
1215
|
-
})), void 0, !0)]),
|
|
1216
|
-
key: "0"
|
|
1217
|
-
} : void 0,
|
|
1218
|
-
e.$slots.optionTooltip ? {
|
|
1219
|
-
name: "optionTooltip",
|
|
1220
|
-
fn: E(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1221
|
-
key: "1"
|
|
1222
|
-
} : void 0,
|
|
1223
|
-
e.$slots.optionPdf ? {
|
|
1224
|
-
name: "optionPdf",
|
|
1225
|
-
fn: E(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1226
|
-
key: "2"
|
|
1227
|
-
} : void 0,
|
|
1228
|
-
e.$slots.optionImg ? {
|
|
1229
|
-
name: "optionImg",
|
|
1230
|
-
fn: E(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1231
|
-
key: "3"
|
|
1232
|
-
} : void 0,
|
|
1233
|
-
e.$slots.optionSvg ? {
|
|
1234
|
-
name: "optionSvg",
|
|
1235
|
-
fn: E(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1236
|
-
key: "4"
|
|
1237
|
-
} : void 0,
|
|
1238
|
-
e.$slots.optionFullscreen ? {
|
|
1239
|
-
name: "optionFullscreen",
|
|
1240
|
-
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", x(y({
|
|
1241
|
-
toggleFullscreen: t,
|
|
1242
|
-
isFullscreen: n
|
|
1243
|
-
})), void 0, !0)]),
|
|
1244
|
-
key: "5"
|
|
1245
|
-
} : void 0,
|
|
1246
|
-
e.$slots.optionAnnotator ? {
|
|
1247
|
-
name: "optionAnnotator",
|
|
1248
|
-
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", x(y({
|
|
1249
|
-
toggleAnnotator: t,
|
|
1250
|
-
isAnnotator: n
|
|
1251
|
-
})), void 0, !0)]),
|
|
1252
|
-
key: "6"
|
|
1253
|
-
} : void 0,
|
|
1254
|
-
e.$slots.optionZoom ? {
|
|
1255
|
-
name: "optionZoom",
|
|
1256
|
-
fn: E(({ toggleZoom: t, isZoomLocked: n }) => [w(e.$slots, "optionZoom", x(y({
|
|
1257
|
-
toggleZoom: t,
|
|
1258
|
-
isZoomLocked: n
|
|
1259
|
-
})), void 0, !0)]),
|
|
1260
|
-
key: "7"
|
|
1261
|
-
} : void 0,
|
|
1262
|
-
e.$slots.optionAltCopy ? {
|
|
1263
|
-
name: "optionAltCopy",
|
|
1264
|
-
fn: E(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
|
|
1265
|
-
key: "8"
|
|
1266
|
-
} : void 0,
|
|
1267
|
-
e.$slots["custom-menu-before"] ? {
|
|
1268
|
-
name: "custom-menu-before",
|
|
1269
|
-
fn: E(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1270
|
-
key: "9"
|
|
1271
|
-
} : void 0,
|
|
1272
|
-
e.$slots["custom-menu-after"] ? {
|
|
1273
|
-
name: "custom-menu-after",
|
|
1274
|
-
fn: E(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1275
|
-
key: "10"
|
|
1276
|
-
} : void 0
|
|
1277
|
-
]), 1032, [
|
|
1278
|
-
"backgroundColor",
|
|
1279
|
-
"color",
|
|
1280
|
-
"isPrinting",
|
|
1281
|
-
"isImaging",
|
|
1282
|
-
"uid",
|
|
1283
|
-
"hasTooltip",
|
|
1284
|
-
"hasPdf",
|
|
1285
|
-
"hasImg",
|
|
1286
|
-
"hasSvg",
|
|
1287
|
-
"hasFullscreen",
|
|
1288
|
-
"hasAltCopy",
|
|
1289
|
-
"hasAnnotator",
|
|
1290
|
-
"hasZoom",
|
|
1291
|
-
"isZoom",
|
|
1292
|
-
"isFullscreen",
|
|
1293
|
-
"isTooltip",
|
|
1294
|
-
"titles",
|
|
1295
|
-
"chartElement",
|
|
1296
|
-
"position",
|
|
1297
|
-
"isAnnotation",
|
|
1298
|
-
"callbacks",
|
|
1299
|
-
"printScale",
|
|
1300
|
-
"isCursorPointer",
|
|
1301
|
-
"onGeneratePdf",
|
|
1302
|
-
"style"
|
|
1303
|
-
])) : g("", !0),
|
|
1304
|
-
L.value.style.chart.controls.position === "top" && L.value.style.chart.controls.show && !T(ut) ? (S(), h(le, {
|
|
1305
|
-
key: 5,
|
|
1306
|
-
ref_key: "zoomControlsTop",
|
|
1307
|
-
ref: et,
|
|
1308
|
-
config: L.value,
|
|
1309
|
-
scale: T(Xt),
|
|
1310
|
-
isFullscreen: I.value,
|
|
1311
|
-
isCursorPointer: ot.value,
|
|
1312
|
-
onZoomIn: rn,
|
|
1313
|
-
onZoomOut: an,
|
|
1314
|
-
onResetZoom: on
|
|
1315
|
-
}, null, 8, [
|
|
1316
|
-
"config",
|
|
1317
|
-
"scale",
|
|
1318
|
-
"isFullscreen",
|
|
1319
|
-
"isCursorPointer"
|
|
1320
|
-
])) : g("", !0),
|
|
1321
|
-
v("div", Oe, [(S(), _("svg", {
|
|
1322
|
-
ref_key: "svgRef",
|
|
1323
|
-
ref: R,
|
|
1324
|
-
xmlns: T(a),
|
|
1325
|
-
viewBox: nn.value,
|
|
1326
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
1327
|
-
"aria-describedby": `map-keyboard-instructions-${O.value}`,
|
|
1328
|
-
tabindex: "0",
|
|
1329
|
-
style: ve({
|
|
1330
|
-
display: "block",
|
|
1331
|
-
width: "100%",
|
|
1332
|
-
height: z.value ? `${H.value}px` : "auto",
|
|
1333
|
-
background: L.value.style.chart.backgroundColor,
|
|
1334
|
-
touchAction: B.value ? "none" : "auto",
|
|
1335
|
-
cursor: B.value ? Q.value ? "grabbing" : "grab" : "default"
|
|
1336
|
-
}),
|
|
1337
|
-
id: `vue-ui-geo_${O.value}`,
|
|
1338
|
-
onPointerdown: Fn,
|
|
1339
|
-
onPointerup: In,
|
|
1340
|
-
onPointercancel: In,
|
|
1341
|
-
onPointerleave: In,
|
|
1342
|
-
onWheel: Ln,
|
|
1343
|
-
onFocus: Hn,
|
|
1344
|
-
onBlur: Un,
|
|
1345
|
-
onKeydown: Wn
|
|
1346
|
-
}, [me(T(He)), v("g", {
|
|
1347
|
-
transform: Gt.value.transform,
|
|
1348
|
-
style: ve({ pointerEvents: Q.value ? "none" : "auto" })
|
|
1349
|
-
}, [
|
|
1350
|
-
v("g", null, [(S(!0), _(fe, null, xe(Rt.value, (e) => (S(), _("path", {
|
|
1351
|
-
class: "vue-ui-geo-territory",
|
|
1352
|
-
key: e.uid,
|
|
1353
|
-
d: e.path,
|
|
1354
|
-
fill: J.value === e.uid ? X.value.hover.fill : X.value.fill,
|
|
1355
|
-
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1356
|
-
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1357
|
-
"vector-effect": "non-scaling-stroke",
|
|
1358
|
-
onMouseenter: (t) => _n(e),
|
|
1359
|
-
onMouseleave: (t) => vn(e),
|
|
1360
|
-
onClick: (t) => yn(e)
|
|
1361
|
-
}, null, 40, je))), 128))]),
|
|
1362
|
-
v("g", null, [(S(!0), _(fe, null, xe(zt.value, (e) => (S(), _("path", {
|
|
1363
|
-
class: "vue-ui-geo-territory",
|
|
1364
|
-
key: e.uid,
|
|
1365
|
-
d: e.path,
|
|
1366
|
-
fill: "none",
|
|
1367
|
-
stroke: J.value === e.uid ? X.value.hover.stroke : X.value.stroke,
|
|
1368
|
-
"stroke-width": J.value === e.uid ? X.value.hover.strokeWidth : X.value.strokeWidth,
|
|
1369
|
-
"vector-effect": "non-scaling-stroke",
|
|
1370
|
-
onMouseenter: (t) => _n(e),
|
|
1371
|
-
onMouseleave: (t) => vn(e),
|
|
1372
|
-
onClick: (t) => yn(e)
|
|
1373
|
-
}, null, 40, Me))), 128))]),
|
|
1374
|
-
v("g", null, [(S(!0), _(fe, null, xe(Bt.value, (e) => (S(), _("circle", {
|
|
1375
|
-
key: e.uid,
|
|
1376
|
-
cx: e.x,
|
|
1377
|
-
cy: e.y,
|
|
1378
|
-
r: e.radius,
|
|
1379
|
-
fill: e.fill,
|
|
1380
|
-
stroke: e.stroke,
|
|
1381
|
-
"stroke-width": e.strokeWidth,
|
|
1382
|
-
"vector-effect": "non-scaling-stroke",
|
|
1383
|
-
onMouseenter: (t) => Tn(e),
|
|
1384
|
-
onMouseleave: En
|
|
1385
|
-
}, null, 40, Ne))), 128))]),
|
|
1386
|
-
(S(!0), _(fe, null, xe(ln.value, (t, n) => (S(), _("g", { key: t.uid }, [w(e.$slots, "datapoint", ge({ ref_for: !0 }, {
|
|
1387
|
-
point: t,
|
|
1388
|
-
onPointEnter: bn,
|
|
1389
|
-
onPointLeave: xn,
|
|
1390
|
-
onPointClick: Cn,
|
|
1391
|
-
highlighted: q.value === t.uid
|
|
1392
|
-
}), () => [v("circle", {
|
|
1393
|
-
class: _e({
|
|
1394
|
-
"vue-ui-geo-point": !0,
|
|
1395
|
-
"vue-ui-geo-point-with-event": Sn.value && ot.value
|
|
1396
|
-
}),
|
|
1397
|
-
cx: t.x,
|
|
1398
|
-
cy: t.y,
|
|
1399
|
-
r: q.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius,
|
|
1400
|
-
fill: t.fill,
|
|
1401
|
-
stroke: wn.value.stroke,
|
|
1402
|
-
"stroke-width": wn.value.strokeWidth,
|
|
1403
|
-
"vector-effect": "non-scaling-stroke",
|
|
1404
|
-
onMouseenter: (e) => bn(t, n),
|
|
1405
|
-
onMouseleave: (e) => xn(t),
|
|
1406
|
-
onClick: (e) => Cn(t)
|
|
1407
|
-
}, null, 42, Pe)], !0), L.value.style.chart.points.labels.show ? (S(), _("text", {
|
|
1408
|
-
key: 0,
|
|
1409
|
-
class: "vue-ui-geo-point-label",
|
|
1410
|
-
x: t.x,
|
|
1411
|
-
y: t.y + (q.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius) + L.value.style.chart.points.labels.offsetY + 1 * L.value.style.chart.points.labels.fontSizeRatio,
|
|
1412
|
-
"text-anchor": "middle",
|
|
1413
|
-
fill: L.value.style.chart.points.labels.color,
|
|
1414
|
-
"font-size": 1 * L.value.style.chart.points.labels.fontSizeRatio
|
|
1415
|
-
}, Se(t.name), 9, Fe)) : g("", !0)]))), 128)),
|
|
1416
|
-
w(e.$slots, "svg", { svg: {
|
|
1417
|
-
drawingArea: nn.value,
|
|
1418
|
-
x: Ut.value?.minX ?? 0,
|
|
1419
|
-
y: Ut.value?.minY ?? 0,
|
|
1420
|
-
width: Ut.value?.width ?? 0,
|
|
1421
|
-
height: Ut.value?.height ?? 0,
|
|
1422
|
-
isPrintingImg: T(ft) || T(pt) || Ye.value,
|
|
1423
|
-
isPrintingSvg: Xe.value,
|
|
1424
|
-
data: {
|
|
1425
|
-
areaPaths: Rt.value,
|
|
1426
|
-
linePaths: zt.value,
|
|
1427
|
-
geoJsonPoints: Bt.value,
|
|
1428
|
-
projectedPoints: ln.value
|
|
1429
|
-
}
|
|
1430
|
-
} }, void 0, !0)
|
|
1431
|
-
], 12, Ae)], 44, ke)), e.$slots.hint ? (S(), _("div", Ie, [w(e.$slots, "hint", x(y({
|
|
1432
|
-
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1433
|
-
isVisible: rt.value
|
|
1434
|
-
})), void 0, !0)])) : g("", !0)]),
|
|
1435
|
-
e.$slots.watermark ? (S(), _("div", Le, [w(e.$slots, "watermark", x(y({ isPrinting: T(ft) || T(pt) || Ye.value || Xe.value })), void 0, !0)])) : g("", !0),
|
|
1436
|
-
L.value.style.chart.controls.position === "bottom" && L.value.style.chart.controls.show && !T(ut) ? (S(), h(le, {
|
|
1437
|
-
key: 7,
|
|
1438
|
-
ref_key: "zoomControlsBottom",
|
|
1439
|
-
ref: tt,
|
|
1440
|
-
config: L.value,
|
|
1441
|
-
scale: T(Xt),
|
|
1442
|
-
isFullscreen: I.value,
|
|
1443
|
-
isCursorPointer: ot.value,
|
|
1444
|
-
onZoomIn: rn,
|
|
1445
|
-
onZoomOut: an,
|
|
1446
|
-
onResetZoom: on
|
|
1447
|
-
}, null, 8, [
|
|
1448
|
-
"config",
|
|
1449
|
-
"scale",
|
|
1450
|
-
"isFullscreen",
|
|
1451
|
-
"isCursorPointer"
|
|
1452
|
-
])) : g("", !0),
|
|
1453
|
-
me(T(ze), {
|
|
1454
|
-
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
1455
|
-
show: bt.value.showTooltip && dn.value,
|
|
1456
|
-
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
1457
|
-
color: L.value.style.chart.tooltip.color,
|
|
1458
|
-
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
1459
|
-
borderRadius: L.value.style.chart.tooltip.borderRadius,
|
|
1460
|
-
borderColor: L.value.style.chart.tooltip.borderColor,
|
|
1461
|
-
borderWidth: L.value.style.chart.tooltip.borderWidth,
|
|
1462
|
-
backgroundOpacity: L.value.style.chart.tooltip.backgroundOpacity,
|
|
1463
|
-
position: L.value.style.chart.tooltip.position,
|
|
1464
|
-
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
1465
|
-
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
1466
|
-
parent: k.value,
|
|
1467
|
-
content: fn.value,
|
|
1468
|
-
isCustom: K.value,
|
|
1469
|
-
isFullscreen: I.value,
|
|
1470
|
-
smooth: L.value.style.chart.tooltip.smooth,
|
|
1471
|
-
backdropFilter: L.value.style.chart.tooltip.backdropFilter,
|
|
1472
|
-
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
1473
|
-
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1474
|
-
isA11yMode: F.value === "keyboard",
|
|
1475
|
-
a11yPosition: nt.value
|
|
1476
|
-
}, {
|
|
1477
|
-
"tooltip-before": E(() => [w(e.$slots, "tooltip-before", x(y({ ...j.value })), void 0, !0)]),
|
|
1478
|
-
tooltip: E(() => [w(e.$slots, "tooltip", x(y({ ...j.value })), void 0, !0)]),
|
|
1479
|
-
"tooltip-after": E(() => [w(e.$slots, "tooltip-after", x(y({ ...j.value })), void 0, !0)]),
|
|
1480
|
-
_: 3
|
|
1481
|
-
}, 8, [
|
|
1482
|
-
"teleportTo",
|
|
1483
|
-
"show",
|
|
1484
|
-
"backgroundColor",
|
|
1485
|
-
"color",
|
|
1486
|
-
"fontSize",
|
|
1487
|
-
"borderRadius",
|
|
1488
|
-
"borderColor",
|
|
1489
|
-
"borderWidth",
|
|
1490
|
-
"backgroundOpacity",
|
|
1491
|
-
"position",
|
|
1492
|
-
"offsetX",
|
|
1493
|
-
"offsetY",
|
|
1494
|
-
"parent",
|
|
1495
|
-
"content",
|
|
1496
|
-
"isCustom",
|
|
1497
|
-
"isFullscreen",
|
|
1498
|
-
"smooth",
|
|
1499
|
-
"backdropFilter",
|
|
1500
|
-
"smoothForce",
|
|
1501
|
-
"smoothSnapThreshold",
|
|
1502
|
-
"isA11yMode",
|
|
1503
|
-
"a11yPosition"
|
|
1504
|
-
]),
|
|
1505
|
-
e.$slots.source ? (S(), _("div", {
|
|
1506
|
-
key: 8,
|
|
1507
|
-
ref_key: "source",
|
|
1508
|
-
ref: $e,
|
|
1509
|
-
dir: "auto"
|
|
1510
|
-
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1511
|
-
w(e.$slots, "skeleton", {}, () => [T(ut) ? (S(), h(u, { key: 0 })) : g("", !0)], !0)
|
|
1512
|
-
], 14, Ee));
|
|
1513
|
-
}
|
|
1514
|
-
}, [["__scopeId", "data-v-53beeded"]]);
|
|
1515
|
-
//#endregion
|
|
1516
|
-
export { Te as n, ze as t };
|