vue-data-ui 3.8.5 → 3.9.1

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.
Files changed (157) hide show
  1. package/README.md +8 -4
  2. package/dist/{BaseDraggableDialog-C2wzOVzX.js → BaseDraggableDialog-B6wHUQPl.js} +1 -1
  3. package/dist/{BaseIcon-_2VlkSHq.js → BaseIcon-CQaciFyv.js} +3 -2
  4. package/dist/BaseScanner-BMpwQAfz.js +30 -0
  5. package/dist/BaseZoomControls-AMmyXEyM.js +110 -0
  6. package/dist/{ColorPicker-Y-VfX-24.js → ColorPicker-nZHFmXUV.js} +1 -1
  7. package/dist/{DataTable-CokMin24.js → DataTable-C8cgUUyx.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-ir3Z1ZAu.js → NonSvgPenAndPaper-CVjActC2.js} +2 -2
  9. package/dist/{PackageVersion-DU6pdQRM.js → PackageVersion-CIhhY-aH.js} +1 -1
  10. package/dist/{PenAndPaper-CFRubEEG.js → PenAndPaper-DtbXViIl.js} +2 -2
  11. package/dist/{Slicer-CVcdknEx.js → Slicer-DtlEs698.js} +1 -1
  12. package/dist/{SlicerPreview-C1EQEgYE.js → SlicerPreview-DmzwkUJ4.js} +1 -1
  13. package/dist/{Title-m5US8voB.js → Title-osQjQYc-.js} +1 -1
  14. package/dist/{UserOptions-M5A9w5GL.js → UserOptions-DeiXBImO.js} +1 -1
  15. package/dist/components/vue-ui-3d-bar.js +1 -1
  16. package/dist/components/vue-ui-accordion.js +1 -1
  17. package/dist/components/vue-ui-age-pyramid.js +1 -1
  18. package/dist/components/vue-ui-annotator.js +1 -1
  19. package/dist/components/vue-ui-bullet.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +5 -0
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-stackline.js +1 -1
  67. package/dist/components/vue-ui-strip-plot.js +1 -1
  68. package/dist/components/vue-ui-table-heatmap.js +1 -1
  69. package/dist/components/vue-ui-table-sparkline.js +1 -1
  70. package/dist/components/vue-ui-table.js +1 -1
  71. package/dist/components/vue-ui-thermometer.js +1 -1
  72. package/dist/components/vue-ui-timer.js +1 -1
  73. package/dist/components/vue-ui-tiremarks.js +1 -1
  74. package/dist/components/vue-ui-treemap.js +1 -1
  75. package/dist/components/vue-ui-vertical-bar.js +1 -1
  76. package/dist/components/vue-ui-waffle.js +1 -1
  77. package/dist/components/vue-ui-wheel.js +1 -1
  78. package/dist/components/vue-ui-word-cloud.js +1 -1
  79. package/dist/components/vue-ui-world.js +1 -1
  80. package/dist/components/vue-ui-xy-canvas.js +1 -1
  81. package/dist/components/vue-ui-xy.js +1 -1
  82. package/dist/geoProjections-D0Vxsz_O.js +154 -0
  83. package/dist/style.css +1 -1
  84. package/dist/types/vue-data-ui.d.ts +210 -4
  85. package/dist/types/vue-ui-geo.d.ts +10 -0
  86. package/dist/{useNestedProp-B696zdq-.js → useNestedProp-BeKjhKny.js} +99 -17
  87. package/dist/usePanZoom-CDF7rb3o.js +132 -0
  88. package/dist/{vue-data-ui-DA30aOVt.js → vue-data-ui-bVCjAfu8.js} +113 -108
  89. package/dist/vue-data-ui.js +101 -98
  90. package/dist/{vue-ui-3d-bar-B8vwrYhQ.js → vue-ui-3d-bar-Bs1SXAWI.js} +4 -4
  91. package/dist/{vue-ui-accordion-q1EhHbRP.js → vue-ui-accordion-nCaoOi6x.js} +2 -2
  92. package/dist/{vue-ui-age-pyramid-D6joh86v.js → vue-ui-age-pyramid-D25YLhPh.js} +4 -4
  93. package/dist/{vue-ui-annotator-749kzlDJ.js → vue-ui-annotator-3wBuXKBn.js} +4 -4
  94. package/dist/{vue-ui-bullet-YJv-2ZQ9.js → vue-ui-bullet-XX1owNiy.js} +4 -4
  95. package/dist/{vue-ui-candlestick-BjeFFWuf.js → vue-ui-candlestick-CbKnRXLs.js} +5 -5
  96. package/dist/{vue-ui-carousel-table-C7sPVM5f.js → vue-ui-carousel-table-B95eZm5f.js} +2 -2
  97. package/dist/{vue-ui-chestnut-CUMsJRhG.js → vue-ui-chestnut-D6B8mFCb.js} +3 -3
  98. package/dist/{vue-ui-chord-BE5LirVm.js → vue-ui-chord-C-Fe5nTC.js} +4 -4
  99. package/dist/{vue-ui-circle-pack-Ddemd-Lq.js → vue-ui-circle-pack-DbGOEbwG.js} +4 -4
  100. package/dist/{vue-ui-cursor-DxGbCKPl.js → vue-ui-cursor-D99JZotY.js} +2 -2
  101. package/dist/{vue-ui-dag-DnaGtaUA.js → vue-ui-dag-D7R60BRH.js} +706 -809
  102. package/dist/{vue-ui-dashboard-CJ-bIPTN.js → vue-ui-dashboard-Dxhaj5E6.js} +66 -66
  103. package/dist/{vue-ui-digits-DlZPpTdG.js → vue-ui-digits-D2zs8kUV.js} +1 -1
  104. package/dist/{vue-ui-donut-D6cI982K.js → vue-ui-donut-CbHumHFw.js} +4 -4
  105. package/dist/{vue-ui-donut-evolution-D1FPSupz.js → vue-ui-donut-evolution--rlD_bzN.js} +5 -5
  106. package/dist/{vue-ui-dumbbell-CeM87r9l.js → vue-ui-dumbbell-Bak094f4.js} +4 -4
  107. package/dist/{vue-ui-flow-DFqmvJ62.js → vue-ui-flow-BU_3xWDD.js} +4 -4
  108. package/dist/{vue-ui-funnel-53eVC-iv.js → vue-ui-funnel-aOfTIY8A.js} +3 -3
  109. package/dist/{vue-ui-galaxy-C_UY_GdO.js → vue-ui-galaxy-CFnCDW6L.js} +4 -4
  110. package/dist/{vue-ui-gauge-CrkujWLj.js → vue-ui-gauge-Te_U6eYB.js} +4 -4
  111. package/dist/vue-ui-geo-qkJZph6o.js +977 -0
  112. package/dist/{vue-ui-gizmo-DdXZShbC.js → vue-ui-gizmo-BKGL0hrf.js} +3 -3
  113. package/dist/{vue-ui-heatmap-fF1TTdvJ.js → vue-ui-heatmap-CxupvmxZ.js} +5 -5
  114. package/dist/{vue-ui-history-plot-Blv-HI5D.js → vue-ui-history-plot-CRNGUd--.js} +4 -4
  115. package/dist/{vue-ui-horizontal-bar-CxUf7XvD.js → vue-ui-horizontal-bar-GXt7JlrG.js} +9 -9
  116. package/dist/{vue-ui-kpi-CmaIZcHA.js → vue-ui-kpi-C_sejZsA.js} +2 -2
  117. package/dist/{vue-ui-mini-loader-9HFOVyYQ.js → vue-ui-mini-loader-BEBv2BjZ.js} +1 -1
  118. package/dist/{vue-ui-molecule-1gMD_IGa.js → vue-ui-molecule-D5MQWvsl.js} +4 -4
  119. package/dist/{vue-ui-mood-radar-De7XXM1S.js → vue-ui-mood-radar-DkwW-6_J.js} +4 -4
  120. package/dist/{vue-ui-nested-donuts-C3U1D_tk.js → vue-ui-nested-donuts-Cl2CtNHY.js} +4 -4
  121. package/dist/{vue-ui-onion-DmNqk1KG.js → vue-ui-onion-BbTd3-9h.js} +4 -4
  122. package/dist/{vue-ui-parallel-coordinate-plot-Ck9zrf0f.js → vue-ui-parallel-coordinate-plot-CAuAUcJe.js} +4 -4
  123. package/dist/{vue-ui-quadrant-c1P_mUWA.js → vue-ui-quadrant-CiQOwv_x.js} +4 -4
  124. package/dist/{vue-ui-quick-chart-aC-unW5B.js → vue-ui-quick-chart-Db_p50n_.js} +4 -4
  125. package/dist/{vue-ui-radar-B79zcusd.js → vue-ui-radar-Cq0FzSuo.js} +4 -4
  126. package/dist/{vue-ui-rating-CMg5akXd.js → vue-ui-rating-Ci09laQN.js} +1 -1
  127. package/dist/{vue-ui-relation-circle-BLSlYwzp.js → vue-ui-relation-circle-0TKhiI54.js} +4 -4
  128. package/dist/{vue-ui-ridgeline-DJI-8Jea.js → vue-ui-ridgeline-BpKSoxMw.js} +4 -4
  129. package/dist/{vue-ui-rings-DedSjGyQ.js → vue-ui-rings-vn5kZZRA.js} +4 -4
  130. package/dist/{vue-ui-scatter-Bl92_3zT.js → vue-ui-scatter-CF_h6seO.js} +4 -4
  131. package/dist/{vue-ui-skeleton-I3jcxaGr.js → vue-ui-skeleton-pcNjmtIm.js} +2 -2
  132. package/dist/{vue-ui-smiley-Cr4XG1yP.js → vue-ui-smiley-BW0ksZH3.js} +1 -1
  133. package/dist/{vue-ui-spark-trend-_2A6BJsZ.js → vue-ui-spark-trend-Gwr_mhU3.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-Mcw9XS3C.js → vue-ui-sparkbar-Ti79zXlf.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-DC4me9S4.js → vue-ui-sparkgauge-Cw076CAR.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-CCQMAuWU.js → vue-ui-sparkhistogram-DAQatxbk.js} +3 -3
  137. package/dist/{vue-ui-sparkline-vzFXbBM3.js → vue-ui-sparkline-DIFjHdAd.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-Bb1A_xq-.js → vue-ui-sparkstackbar-CV48OIlq.js} +3 -3
  139. package/dist/{vue-ui-stackbar-SEv0BiEx.js → vue-ui-stackbar-iNQuoaFJ.js} +5 -5
  140. package/dist/{vue-ui-stackline-j8dlN7IX.js → vue-ui-stackline-Ba_T3bRL.js} +5 -5
  141. package/dist/{vue-ui-strip-plot-C1H4_vRX.js → vue-ui-strip-plot-DQHiecxa.js} +4 -4
  142. package/dist/{vue-ui-table-1fioweBm.js → vue-ui-table-BNvnkqgr.js} +4 -4
  143. package/dist/{vue-ui-table-heatmap-C9B50I8F.js → vue-ui-table-heatmap-BecLm3ow.js} +2 -2
  144. package/dist/{vue-ui-table-sparkline-CHRU9kcU.js → vue-ui-table-sparkline-Z9G-8VPL.js} +2 -2
  145. package/dist/{vue-ui-thermometer-BkYFDCK_.js → vue-ui-thermometer-NJ6mFchh.js} +4 -4
  146. package/dist/{vue-ui-timer-Qec1qL9Y.js → vue-ui-timer-BzWAHC6N.js} +4 -4
  147. package/dist/{vue-ui-tiremarks-DWJFmX5I.js → vue-ui-tiremarks-DUVReJRZ.js} +4 -4
  148. package/dist/{vue-ui-treemap-CZl4JSsA.js → vue-ui-treemap-pLbU0XEi.js} +5 -5
  149. package/dist/{vue-ui-waffle-CVo_6Vo6.js → vue-ui-waffle-QkCm05fN.js} +4 -4
  150. package/dist/{vue-ui-wheel-oRl2lzXg.js → vue-ui-wheel-DaRAOHXK.js} +4 -4
  151. package/dist/{vue-ui-word-cloud-D9URPA8p.js → vue-ui-word-cloud-CEIaALCH.js} +5 -5
  152. package/dist/{vue-ui-world-6qUyz6us.js → vue-ui-world-BS0oWBVp.js} +430 -579
  153. package/dist/{vue-ui-xy-canvas-QsBOBS05.js → vue-ui-xy-canvas-CLoA6DTt.js} +7 -7
  154. package/dist/{vue-ui-xy-DCIyTcrb.js → vue-ui-xy-l6mUNMUu.js} +6 -6
  155. package/package.json +1 -1
  156. package/dist/BaseScanner-BgWxam9d.js +0 -29
  157. package/dist/usePanZoom-DMfuOfaC.js +0 -135
@@ -67,7 +67,8 @@ declare module "vue-data-ui" {
67
67
  | VueUiRidgelineDatasetItem[]
68
68
  | VueUiChordDataset
69
69
  | VueUiStacklineDatasetItem[]
70
- | VueUiDagDataset;
70
+ | VueUiDagDataset
71
+ | VueUiGeoDatasetItem[];
71
72
 
72
73
  export type VueDataUiAnyConfig =
73
74
  | VueUi3dBarConfig
@@ -131,7 +132,8 @@ declare module "vue-data-ui" {
131
132
  | VueUiRidgelineConfig
132
133
  | VueUiChordConfig
133
134
  | VueUiStacklineConfig
134
- | VueUiDagConfig;
135
+ | VueUiDagConfig
136
+ | VueUiGeoConfig;
135
137
 
136
138
  export type VueDataUiProps = {
137
139
  loader?: VueDataUiLoader | null;
@@ -192,6 +194,8 @@ declare module "vue-data-ui" {
192
194
  export type VueUiRingsEvent = ChartEvent<VueUiRingsDatapoint>;
193
195
  export type VueUiOnionEvent = ChartEvent<VueUiOnionDatapoint>;
194
196
  export type VueUiWorldEvent = ChartEvent<VueUiWorldDatapoint>;
197
+ export type VueUiGeoPointEvent = ChartEvent<VueUiGeoDatapoint>;
198
+ export type VueUiGeoTerritoryEvent = ChartEvent<VueUiGeoTerritory>;
195
199
  export type VueUiGalaxyEvent = ChartEvent<VueUiGalaxyDatapoint>;
196
200
  export type VueUiWaffleEvent = ChartEvent<VueUiWaffleDatapoint>;
197
201
  export type VueUiScatterEvent = ChartEvent<VueUiScatterDatapoint>;
@@ -9567,6 +9571,206 @@ declare module "vue-data-ui" {
9567
9571
  VueUiDagExpose
9568
9572
  >
9569
9573
 
9574
+
9575
+ export type GeoJsonPosition = [longitude: number, latitude: number] | [number, number, number];
9576
+
9577
+ export type GeoJsonPoint = {
9578
+ type: "Point";
9579
+ coordinates: GeoJsonPosition;
9580
+ };
9581
+
9582
+ export type GeoJsonMultiPoint = {
9583
+ type: "MultiPoint";
9584
+ coordinates: GeoJsonPosition[];
9585
+ };
9586
+
9587
+ export type GeoJsonLineString = {
9588
+ type: "LineString";
9589
+ coordinates: GeoJsonPosition[];
9590
+ };
9591
+
9592
+ export type GeoJsonMultiLineString = {
9593
+ type: "MultiLineString";
9594
+ coordinates: GeoJsonPosition[][];
9595
+ };
9596
+
9597
+ export type GeoJsonPolygon = {
9598
+ type: "Polygon";
9599
+ coordinates: GeoJsonPosition[][];
9600
+ };
9601
+
9602
+ export type GeoJsonMultiPolygon = {
9603
+ type: "MultiPolygon";
9604
+ coordinates: GeoJsonPosition[][][];
9605
+ };
9606
+
9607
+ export type GeoJsonGeometryCollection = {
9608
+ type: "GeometryCollection";
9609
+ geometries: GeoJsonGeometry[];
9610
+ };
9611
+
9612
+ export type GeoJsonGeometry =
9613
+ | GeoJsonPoint
9614
+ | GeoJsonMultiPoint
9615
+ | GeoJsonLineString
9616
+ | GeoJsonMultiLineString
9617
+ | GeoJsonPolygon
9618
+ | GeoJsonMultiPolygon
9619
+ | GeoJsonGeometryCollection;
9620
+
9621
+ export type GeoJsonFeature<Properties extends Record<string, unknown> = Record<string, unknown>> = {
9622
+ type: "Feature";
9623
+ geometry: GeoJsonGeometry | null;
9624
+ properties?: Properties | null;
9625
+ id?: string | number;
9626
+ };
9627
+
9628
+ export type VueUiGeoTerritory<Properties extends Record<string, unknown> = Record<string, unknown>> = {
9629
+ uid: string;
9630
+ path: string;
9631
+ name: string;
9632
+ properties: Properties;
9633
+ geometry: GeoJsonGeometry;
9634
+ feature: GeoJsonFeature;
9635
+ }
9636
+
9637
+ export type GeoJsonFeatureCollection<
9638
+ Properties extends Record<string, unknown> = Record<string, unknown>
9639
+ > = {
9640
+ type: "FeatureCollection";
9641
+ features: Array<GeoJsonFeature<Properties>>;
9642
+ };
9643
+
9644
+ export type VueUiGeoMapGeoJson =
9645
+ | GeoJsonFeatureCollection
9646
+ | GeoJsonFeature
9647
+ | GeoJsonGeometryCollection
9648
+ | GeoJsonGeometry
9649
+ | Array<GeoJsonFeature>;
9650
+
9651
+ export type VueUiGeoDatasetItem = {
9652
+ [key: string]: any;
9653
+ name: string;
9654
+ coordinates: [longitude: number, latitude: number];
9655
+ description?: string;
9656
+ color?: string;
9657
+ radius?: number;
9658
+ }
9659
+
9660
+ export type VueUiGeoDatapoint = {
9661
+ color: string;
9662
+ coordinates: [x: number, y: number];
9663
+ description: string;
9664
+ fill: string;
9665
+ hoverRadiusRatio: number;
9666
+ index: number;
9667
+ name: string;
9668
+ radius: number;
9669
+ original: VueUiGeoDatasetItem;
9670
+ uid: string;
9671
+ x: number;
9672
+ y: number;
9673
+ }
9674
+
9675
+ export type VueUiGeoConfig = {
9676
+ loading?: boolean;
9677
+ debug?: boolean;
9678
+ responsive?: boolean;
9679
+ theme?: Theme;
9680
+ projection?: 'aitoff' | 'azimuthalEquidistant' | 'bonne' | 'equirectangular' | 'gallPeters' | 'globe' | 'hammer' | 'mercator' | 'mollweide' | 'robinson' | 'sinusoidal' | 'vanDerGrinten' | 'winkelTripel';
9681
+ userOptions?: ChartUserOptions;
9682
+ map?: {
9683
+ geoJson?: VueUiGeoMapGeoJson;
9684
+ center?: [x: number, y: number];
9685
+ fitPadding?: number;
9686
+ };
9687
+ events?: {
9688
+ datapointClick?: VueUiGeoPointEvent;
9689
+ datapointEnter?: VueUiGeoPointEvent;
9690
+ datapointLeave?: VueUiGeoPointEvent;
9691
+ territoryEnter?: VueUiGeoTerritoryEvent;
9692
+ territoryLeave?: VueUiGeoTerritoryEvent;
9693
+ territoryClick?: VueUiGeoTerritoryEvent;
9694
+ };
9695
+ style: {
9696
+ fontFamily?: string;
9697
+ chart?: {
9698
+ dimensions?: {
9699
+ width?: number | null;
9700
+ height?: number | null;
9701
+ };
9702
+ backgroundColor?: string;
9703
+ color?: string;
9704
+ territory?: {
9705
+ fill?: string;
9706
+ stroke?: string;
9707
+ strokeWidth?: number;
9708
+ hover?: {
9709
+ fill?: string;
9710
+ stroke?: string;
9711
+ strokeWidth?: number;
9712
+ };
9713
+ };
9714
+ points?: {
9715
+ radius?: number;
9716
+ stroke?: string;
9717
+ strokeWidth?: number;
9718
+ fill?: number;
9719
+ hoverRadiusRatio?: number;
9720
+ labels?: {
9721
+ show?: boolean;
9722
+ fontSizeRatio?: number;
9723
+ color?: string;
9724
+ offsetY?: number;
9725
+ };
9726
+ };
9727
+ controls?: {
9728
+ position?: 'top' | 'bottom';
9729
+ show?: boolean;
9730
+ backgroundColor?: string;
9731
+ buttonColor?: string;
9732
+ color?: string;
9733
+ fontSize?: number;
9734
+ border?: string;
9735
+ padding?: string;
9736
+ borderRadius?: string;
9737
+ };
9738
+ title?: ChartTitle;
9739
+ tooltip?: ChartTooltip;
9740
+ zoom?: {
9741
+ active?: boolean;
9742
+ };
9743
+ };
9744
+ };
9745
+ };
9746
+
9747
+ export type FocusLocationOptions = {
9748
+ animated?: boolean;
9749
+ };
9750
+
9751
+ export type VueUiGeoExpose = {
9752
+ getImage(options?: { scale?: number }): GetImagePromise
9753
+ generatePdf(): void
9754
+ generateImage(): void
9755
+ toggleAnnotator(): void
9756
+ toggleFullscreen(): void
9757
+ zoomIn(): void
9758
+ zoomOut(): void
9759
+ resetZoom(): void
9760
+ focusLocation(
9761
+ coordinates: [longitude: number, latitude: number],
9762
+ options?: FocusLocationOptions
9763
+ ): Promise<void>;
9764
+ }
9765
+
9766
+ export const VueUiGeo: DefineComponent<
9767
+ {
9768
+ config?: VueUiGeoConfig,
9769
+ dataset?: VueUiGeoDatasetItem[]
9770
+ },
9771
+ VueUiGeoExpose
9772
+ >
9773
+
9570
9774
  export type VueDataUiConfig =
9571
9775
  | VueUi3dBarConfig
9572
9776
  | VueUiAgePyramidConfig
@@ -9631,7 +9835,8 @@ declare module "vue-data-ui" {
9631
9835
  | VueUiRidgelineConfig
9632
9836
  | VueUiChordConfig
9633
9837
  | VueUiStacklineConfig
9634
- | VueUiDagConfig;
9838
+ | VueUiDagConfig
9839
+ | VueUiGeoConfig;
9635
9840
 
9636
9841
  export type VueDataUiConfigKey =
9637
9842
  | "vue_ui_3d_bar"
@@ -9697,7 +9902,8 @@ declare module "vue-data-ui" {
9697
9902
  | "vue_ui_ridgeline"
9698
9903
  | "vue_ui_chord"
9699
9904
  | "vue_ui_stackline"
9700
- | "vue_ui_dag";
9905
+ | "vue_ui_dag"
9906
+ | "vue_ui_geo";
9701
9907
 
9702
9908
  export type VueDataUiWordCloudTransformCallback =
9703
9909
  | ((word: string) => string)
@@ -0,0 +1,10 @@
1
+ import { DefineComponent } from 'vue';
2
+ import { VueUiGeoConfig, VueUiGeoDatasetItem, VueUiGeoExpose } from 'vue-data-ui';
3
+
4
+ declare const VueUiGeo: DefineComponent<{
5
+ config?: VueUiGeoConfig;
6
+ dataset?: VueUiGeoDatasetItem[];
7
+ }, VueUiGeoExpose>;
8
+
9
+ export default VueUiGeo;
10
+ export { VueUiGeo }
@@ -1,6 +1,6 @@
1
- import { t as tt, v as ot } from "./lib-_nVZfi2t.js";
2
- function lt() {
3
- const e = "#2D353C", w = "#A1A1A1", r = "#e1e5e8", s = "#CCCCCC", F = "#4A4A4A", o = "#FFFFFF", _ = "#fafafa", u = "#1f77b4", C = "#d62728", L = "#2ca02c", A = "#42d392", O = "#FFD055", t = {
1
+ import { t as ot, v as rt } from "./lib-_nVZfi2t.js";
2
+ function at() {
3
+ const e = "#2D353C", w = "#A1A1A1", r = "#e1e5e8", s = "#CCCCCC", A = "#4A4A4A", o = "#FFFFFF", _ = "#fafafa", u = "#1f77b4", C = "#d62728", L = "#2ca02c", F = "#42d392", O = "#FFD055", t = {
4
4
  _6: 6,
5
5
  _10: 10,
6
6
  _12: 12,
@@ -174,7 +174,7 @@ function lt() {
174
174
  }, S = {
175
175
  show: !0,
176
176
  color: s,
177
- highlightColor: F,
177
+ highlightColor: A,
178
178
  fontSize: t._14,
179
179
  useResetSlot: !1,
180
180
  startIndex: null,
@@ -3327,7 +3327,7 @@ function lt() {
3327
3327
  yAxisLabel: "",
3328
3328
  zoomXy: !0,
3329
3329
  zoomColor: s,
3330
- zoomHighlightColor: F,
3330
+ zoomHighlightColor: A,
3331
3331
  zoomFontSize: t._14,
3332
3332
  zoomUseResetSlot: !1,
3333
3333
  zoomMinimap: T,
@@ -4863,7 +4863,7 @@ function lt() {
4863
4863
  suffix: ""
4864
4864
  }
4865
4865
  }
4866
- }, Te = {
4866
+ }, Fe = {
4867
4867
  debug: !1,
4868
4868
  loading: !1,
4869
4869
  responsive: !1,
@@ -5042,7 +5042,7 @@ function lt() {
5042
5042
  th: i,
5043
5043
  td: n
5044
5044
  }
5045
- }, Fe = {
5045
+ }, Te = {
5046
5046
  debug: !1,
5047
5047
  // v3
5048
5048
  loading: !1,
@@ -5404,7 +5404,7 @@ function lt() {
5404
5404
  gutterBlur: 0,
5405
5405
  trackHueRotate: 20,
5406
5406
  trackBlur: 1,
5407
- trackColor: A
5407
+ trackColor: F
5408
5408
  },
5409
5409
  line: {
5410
5410
  gutterColor: s,
@@ -5412,7 +5412,7 @@ function lt() {
5412
5412
  gutterBlur: 0,
5413
5413
  trackHueRotate: 20,
5414
5414
  trackBlur: 1,
5415
- trackColor: A
5415
+ trackColor: F
5416
5416
  },
5417
5417
  bar: {
5418
5418
  gutterColor: s,
@@ -5420,7 +5420,7 @@ function lt() {
5420
5420
  gutterBlur: 0,
5421
5421
  trackHueRotate: 20,
5422
5422
  trackBlur: 1,
5423
- trackColor: A
5423
+ trackColor: F
5424
5424
  }
5425
5425
  }, Me = {
5426
5426
  readonly: !1,
@@ -7081,6 +7081,87 @@ function lt() {
7081
7081
  title: l
7082
7082
  }
7083
7083
  }
7084
+ }, tt = {
7085
+ loading: !1,
7086
+ debug: !1,
7087
+ responsive: !1,
7088
+ projection: "equirectangular",
7089
+ theme: "",
7090
+ userOptions: a({
7091
+ tooltip: !0,
7092
+ pdf: !0,
7093
+ csv: !1,
7094
+ img: !0,
7095
+ svg: !0,
7096
+ table: !1,
7097
+ labels: !1,
7098
+ fullscreen: !0,
7099
+ annotator: !0,
7100
+ zoom: !0
7101
+ }),
7102
+ map: {
7103
+ geoJson: null,
7104
+ center: [0, 0],
7105
+ fitPadding: 0
7106
+ },
7107
+ events: {
7108
+ datapointEnter: null,
7109
+ datapointLeave: null,
7110
+ datapointClick: null,
7111
+ territoryEnter: null,
7112
+ territoryLeave: null,
7113
+ territoryClick: null
7114
+ },
7115
+ style: {
7116
+ fontFamily: "inherit",
7117
+ chart: {
7118
+ dimensions: {
7119
+ width: null,
7120
+ height: null
7121
+ },
7122
+ backgroundColor: o,
7123
+ color: e,
7124
+ territory: {
7125
+ fill: "#F2F3F5",
7126
+ stroke: "#D0D4D8",
7127
+ strokeWidth: 1,
7128
+ hover: {
7129
+ fill: "#E7E1EE",
7130
+ stroke: s,
7131
+ strokeWidth: 1.5
7132
+ }
7133
+ },
7134
+ points: {
7135
+ radius: 1,
7136
+ stroke: o,
7137
+ strokeWidth: 1,
7138
+ fill: A,
7139
+ hoverRadiusRatio: 1.2,
7140
+ labels: {
7141
+ show: !0,
7142
+ fontSizeRatio: 1,
7143
+ color: e,
7144
+ offsetY: 0
7145
+ }
7146
+ },
7147
+ controls: {
7148
+ position: "bottom",
7149
+ show: !0,
7150
+ backgroundColor: r,
7151
+ buttonColor: r,
7152
+ color: e,
7153
+ fontSize: 14,
7154
+ border: `1px solid ${s}`,
7155
+ padding: "0.5rem",
7156
+ borderRadius: "0.25rem"
7157
+ },
7158
+ title: l,
7159
+ tooltip: c,
7160
+ zoom: {
7161
+ active: !0
7162
+ }
7163
+ }
7164
+ }
7084
7165
  };
7085
7166
  return {
7086
7167
  vue_ui_xy: y,
@@ -7123,8 +7204,8 @@ function lt() {
7123
7204
  vue_ui_table_sparkline: Le,
7124
7205
  vue_ui_table_heatmap: Pe,
7125
7206
  vue_ui_word_cloud: Ae,
7126
- vue_ui_xy_canvas: Te,
7127
- vue_ui_flow: Fe,
7207
+ vue_ui_xy_canvas: Fe,
7208
+ vue_ui_flow: Te,
7128
7209
  vue_ui_parallel_coordinate_plot: Oe,
7129
7210
  vue_ui_timer: We,
7130
7211
  vue_ui_carousel_table: Xe,
@@ -7138,6 +7219,7 @@ function lt() {
7138
7219
  vue_ui_chord: Je,
7139
7220
  vue_ui_stackline: $,
7140
7221
  vue_ui_dag: et,
7222
+ vue_ui_geo: tt,
7141
7223
  // non chart components
7142
7224
  vue_ui_cursor: Re,
7143
7225
  vue_ui_accordion: Ve,
@@ -7153,16 +7235,16 @@ function lt() {
7153
7235
  vue_ui_circle_pack: Ze
7154
7236
  };
7155
7237
  }
7156
- function at({ defaultConfig: e, userConfig: w }) {
7238
+ function st({ defaultConfig: e, userConfig: w }) {
7157
7239
  if (!Object.keys(w || {}).length)
7158
7240
  return e;
7159
- const r = tt({
7241
+ const r = ot({
7160
7242
  defaultConfig: e,
7161
7243
  userConfig: w
7162
7244
  });
7163
- return ot(r);
7245
+ return rt(r);
7164
7246
  }
7165
7247
  export {
7166
- at as a,
7167
- lt as u
7248
+ st as a,
7249
+ at as u
7168
7250
  };
@@ -0,0 +1,132 @@
1
+ import { ref as h, computed as j, onMounted as J, onUnmounted as K, watchEffect as Q, watch as _ } from "vue";
2
+ function R(v, k = { x: 0, y: 0, width: 100, height: 100 }, z = 1, m, D = null) {
3
+ const o = h({ ...k }), n = h({ ...o.value }), i = h(1), E = h(!1), L = h(!1), S = h(0), T = h(null), P = h(1), x = h({ x: 0, y: 0 }), H = j(
4
+ () => n.value.x !== o.value.x || n.value.y !== o.value.y || n.value.width !== o.value.width || n.value.height !== o.value.height
5
+ );
6
+ let y = null;
7
+ function Z(e) {
8
+ if (e.length < 2) return 0;
9
+ const t = e[0].clientX - e[1].clientX, a = e[0].clientY - e[1].clientY;
10
+ return Math.hypot(t, a);
11
+ }
12
+ function Y(e) {
13
+ const t = v.value;
14
+ if (!t) return { x: 0, y: 0 };
15
+ const a = t.createSVGPoint();
16
+ a.x = e.clientX, a.y = e.clientY;
17
+ const l = t.getScreenCTM()?.inverse();
18
+ return l ? a.matrixTransform(l) : { x: 0, y: 0 };
19
+ }
20
+ function I(e, t) {
21
+ const a = v.value;
22
+ if (!a) return { dx: 0, dy: 0 };
23
+ const l = Math.max(1, a.clientWidth), u = Math.max(1, a.clientHeight), s = n.value.width / l, r = n.value.height / u;
24
+ return { dx: e * s, dy: t * r };
25
+ }
26
+ function F(e) {
27
+ E.value = !0;
28
+ const t = e.touches?.[0] || e;
29
+ x.value = { x: t.clientX, y: t.clientY }, v.value && (v.value.style.cursor = "grabbing");
30
+ }
31
+ function X(e) {
32
+ if (!E.value) return;
33
+ const t = e.touches?.[0] || e, a = t.clientX - x.value.x, l = t.clientY - x.value.y;
34
+ if (a === 0 && l === 0) return;
35
+ const { dx: u, dy: s } = I(a, l);
36
+ n.value.x -= u, n.value.y -= s, x.value = { x: t.clientX, y: t.clientY };
37
+ }
38
+ function f() {
39
+ E.value = !1, v.value && (v.value.style.cursor = "");
40
+ }
41
+ function b(e) {
42
+ D && D(), e.preventDefault();
43
+ const t = e.deltaY > 0 ? 0.9 : 1.1;
44
+ w(t, Y(e));
45
+ }
46
+ function A(e) {
47
+ e.preventDefault();
48
+ const t = Y(e), a = 1.5 * (1 + z / 100);
49
+ q(a, t);
50
+ }
51
+ function q(e, t) {
52
+ y && cancelAnimationFrame(y);
53
+ const a = i.value, l = a * e;
54
+ let u = null;
55
+ const s = 200, r = (d) => d < 0.5 ? 2 * d * d : -1 + (4 - 2 * d) * d, c = (d) => {
56
+ u == null && (u = d);
57
+ const V = Math.min((d - u) / s, 1), U = (a + (l - a) * r(V)) / i.value;
58
+ w(U, t), V < 1 ? y = requestAnimationFrame(c) : y = null;
59
+ };
60
+ requestAnimationFrame(c);
61
+ }
62
+ function w(e, t) {
63
+ const a = i.value * e, l = a / i.value, u = n.value.width / l, s = n.value.height / l, r = (t.x - n.value.x) * (1 - 1 / l), c = (t.y - n.value.y) * (1 - 1 / l);
64
+ n.value.x += r, n.value.y += c, n.value.width = u, n.value.height = s, i.value = a;
65
+ }
66
+ function B(e) {
67
+ e.touches.length === 2 ? (L.value = !0, S.value = Z(e.touches), T.value = { ...n.value }, P.value = i.value) : (e.preventDefault(), F(e));
68
+ }
69
+ function C(e) {
70
+ if (L.value && e.touches.length === 2) {
71
+ e.preventDefault();
72
+ const t = Z(e.touches);
73
+ if (!S.value || !t) return;
74
+ const a = t / S.value, u = P.value * a / i.value, s = (e.touches[0].clientX + e.touches[1].clientX) / 2, r = (e.touches[0].clientY + e.touches[1].clientY) / 2, c = Y({ clientX: s, clientY: r });
75
+ n.value = { ...T.value }, i.value = P.value, w(u, c);
76
+ } else
77
+ e.preventDefault(), X(e);
78
+ }
79
+ function p(e) {
80
+ e.touches.length < 2 && (L.value = !1), f();
81
+ }
82
+ function W(e = !1) {
83
+ if (!e) {
84
+ n.value = { ...o.value }, i.value = 1;
85
+ return;
86
+ }
87
+ const t = { ...n.value }, a = i.value, l = 300;
88
+ let u = null;
89
+ const s = (r) => {
90
+ u == null && (u = r);
91
+ const c = Math.min((r - u) / l, 1);
92
+ n.value = {
93
+ x: t.x + (o.value.x - t.x) * c,
94
+ y: t.y + (o.value.y - t.y) * c,
95
+ width: t.width + (o.value.width - t.width) * c,
96
+ height: t.height + (o.value.height - t.height) * c
97
+ }, i.value = a + (1 - a) * c, c < 1 && requestAnimationFrame(s);
98
+ };
99
+ requestAnimationFrame(s);
100
+ }
101
+ function G(e, t = {}) {
102
+ const { overwriteCurrentIfNotZoomed: a = !0 } = t, l = n.value.x !== o.value.x || n.value.y !== o.value.y || n.value.width !== o.value.width || n.value.height !== o.value.height;
103
+ o.value = { ...e }, !l && a && (n.value = { ...o.value }, i.value = 1);
104
+ }
105
+ function M() {
106
+ const e = v.value;
107
+ e && (e.addEventListener("mousedown", F), e.addEventListener("mousemove", X), e.addEventListener("mouseup", f), e.addEventListener("mouseleave", f), e.addEventListener("wheel", b, { passive: !1 }), e.addEventListener("dblclick", A), e.addEventListener("touchstart", B, { passive: !1 }), e.addEventListener("touchmove", C, { passive: !1 }), e.addEventListener("touchend", p), e.addEventListener("touchcancel", p));
108
+ }
109
+ function g() {
110
+ const e = v.value;
111
+ e && (e.removeEventListener("mousedown", F), e.removeEventListener("mousemove", X), e.removeEventListener("mouseup", f), e.removeEventListener("mouseleave", f), e.removeEventListener("wheel", b), e.removeEventListener("dblclick", A), e.removeEventListener("touchstart", B), e.removeEventListener("touchmove", C), e.removeEventListener("touchend", p), e.removeEventListener("touchcancel", p));
112
+ }
113
+ J(() => {
114
+ (!m || m.value) && M();
115
+ }), K(g), Q(() => {
116
+ if (m)
117
+ return m.value ? M() : g(), () => g();
118
+ }), _(v, () => {
119
+ g(), (!m || m.value) && M();
120
+ });
121
+ function N(e, t = !1) {
122
+ const a = {
123
+ x: n.value.x + n.value.width / 2,
124
+ y: n.value.y + n.value.height / 2
125
+ };
126
+ t ? q(e, a) : w(e, a);
127
+ }
128
+ return { viewBox: n, resetZoom: W, isZoom: H, setInitialViewBox: G, scale: i, zoomByFactor: N };
129
+ }
130
+ export {
131
+ R as u
132
+ };