@undp/data-viz 2.3.15 → 2.3.16

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 (50) hide show
  1. package/dist/BiVariateChoroplethMap.cjs +1 -1
  2. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  3. package/dist/BiVariateChoroplethMap.d.ts +9 -6
  4. package/dist/BiVariateChoroplethMap.js +1 -1
  5. package/dist/BiVariateChoroplethMap.js.map +1 -1
  6. package/dist/ChoroplethMap.cjs +1 -1
  7. package/dist/ChoroplethMap.cjs.map +1 -1
  8. package/dist/ChoroplethMap.d.ts +9 -6
  9. package/dist/ChoroplethMap.js +1 -1
  10. package/dist/ChoroplethMap.js.map +1 -1
  11. package/dist/Data/data.json +2627 -0
  12. package/dist/Data/testMap.json +1 -361
  13. package/dist/DotDensityMap.cjs.map +1 -1
  14. package/dist/DotDensityMap.d.ts +7 -5
  15. package/dist/DotDensityMap.js.map +1 -1
  16. package/dist/{GraphEl-BgNA-xFf.js → GraphEl-CnJf8b50.js} +2 -1
  17. package/dist/GraphEl-CnJf8b50.js.map +1 -0
  18. package/dist/{GraphEl-Bl1Hnqnd.cjs → GraphEl-D_w0Qak4.cjs} +2 -2
  19. package/dist/GraphEl-D_w0Qak4.cjs.map +1 -0
  20. package/dist/GriddedGraphs.cjs +1 -1
  21. package/dist/GriddedGraphs.d.ts +8 -5
  22. package/dist/GriddedGraphs.js +1 -1
  23. package/dist/GriddedGraphsFromConfig.d.ts +8 -5
  24. package/dist/HybridMap.cjs.map +1 -1
  25. package/dist/HybridMap.d.ts +7 -5
  26. package/dist/HybridMap.js.map +1 -1
  27. package/dist/MultiGraphDashboard.d.ts +8 -5
  28. package/dist/MultiGraphDashboardFromConfig.d.ts +8 -5
  29. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +8 -5
  30. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +8 -5
  31. package/dist/PerformanceIntensiveScrollStory.d.ts +8 -5
  32. package/dist/ScatterPlot.cjs +1 -1
  33. package/dist/ScatterPlot.cjs.map +1 -1
  34. package/dist/ScatterPlot.d.ts +2 -0
  35. package/dist/ScatterPlot.js +396 -400
  36. package/dist/ScatterPlot.js.map +1 -1
  37. package/dist/ScrollStory.d.ts +8 -5
  38. package/dist/SingleGraphDashboard.cjs +1 -1
  39. package/dist/SingleGraphDashboard.d.ts +8 -5
  40. package/dist/SingleGraphDashboard.js +1 -1
  41. package/dist/SingleGraphDashboardFromConfig.d.ts +8 -5
  42. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +8 -5
  43. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +8 -5
  44. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +8 -5
  45. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +8 -5
  46. package/dist/Types.d.ts +8 -5
  47. package/dist/index.d.ts +16 -27
  48. package/package.json +1 -1
  49. package/dist/GraphEl-BgNA-xFf.js.map +0 -1
  50. package/dist/GraphEl-Bl1Hnqnd.cjs.map +0 -1
@@ -7,7 +7,7 @@ import { j as V, D as M } from "./DropdownSelect-B2WTeedJ.js";
7
7
  import { b as A, y as H, h as O, c as da, $ as K, P as Q } from "./checkIfMultiple-B97uOUVq.js";
8
8
  import { w as ha } from "./Spinner-CtJETd5V.js";
9
9
  import { G as ca } from "./GraphContainer-DwMxWRCi.js";
10
- import { G as fa } from "./GraphEl-BgNA-xFf.js";
10
+ import { G as fa } from "./GraphEl-CnJf8b50.js";
11
11
  import { f as ga, a as pa, b as ma, c as Ca, t as va } from "./fetchAndParseData-BAXhgTDM.js";
12
12
  import { a as Ia, t as ba } from "./transformDataForAggregation-wdPf8bNt.js";
13
13
  import { g as X } from "./getUniqValue-DsqSii6M.js";
@@ -492,11 +492,8 @@ declare interface GraphSettingsDataType {
492
492
  circularBoundary?: boolean;
493
493
  showDataMinMax?: boolean;
494
494
  showVoronoiTesselation?: boolean;
495
- mapOverlay?: {
496
- mapData: FeatureCollection | string;
497
- mapBorderWidth?: number;
498
- mapBorderColor?: string;
499
- };
495
+ mapOverlay?: MapOverlayDataType;
496
+ useVoronoiInteraction?: boolean;
500
497
  }
501
498
 
502
499
  declare type GraphType = GraphTypeForGriddedGraph;
@@ -536,6 +533,12 @@ declare interface MapLegendDataType {
536
533
  legend: string | React.ReactNode;
537
534
  }
538
535
 
536
+ declare interface MapOverlayDataType {
537
+ mapData: FeatureCollection | string;
538
+ mapBorderWidth?: number;
539
+ mapBorderColor?: string;
540
+ }
541
+
539
542
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
540
543
 
541
544
  declare interface PointLightConfig extends BaseLightConfig {
@@ -383,11 +383,8 @@ declare interface GraphSettingsDataType {
383
383
  circularBoundary?: boolean;
384
384
  showDataMinMax?: boolean;
385
385
  showVoronoiTesselation?: boolean;
386
- mapOverlay?: {
387
- mapData: FeatureCollection | string;
388
- mapBorderWidth?: number;
389
- mapBorderColor?: string;
390
- };
386
+ mapOverlay?: MapOverlayDataType;
387
+ useVoronoiInteraction?: boolean;
391
388
  }
392
389
 
393
390
  declare interface HighlightAreaSettingsDataType {
@@ -415,6 +412,12 @@ declare interface MapLegendDataType {
415
412
  legend: string | React.ReactNode;
416
413
  }
417
414
 
415
+ declare interface MapOverlayDataType {
416
+ mapData: FeatureCollection | string;
417
+ mapBorderWidth?: number;
418
+ mapBorderColor?: string;
419
+ }
420
+
418
421
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
419
422
 
420
423
  declare interface PointLightConfig extends BaseLightConfig {
@@ -390,11 +390,8 @@ declare interface GraphSettingsDataType {
390
390
  circularBoundary?: boolean;
391
391
  showDataMinMax?: boolean;
392
392
  showVoronoiTesselation?: boolean;
393
- mapOverlay?: {
394
- mapData: FeatureCollection | string;
395
- mapBorderWidth?: number;
396
- mapBorderColor?: string;
397
- };
393
+ mapOverlay?: MapOverlayDataType;
394
+ useVoronoiInteraction?: boolean;
398
395
  }
399
396
 
400
397
  declare interface HighlightAreaSettingsDataType {
@@ -422,6 +419,12 @@ declare interface MapLegendDataType {
422
419
  legend: string | React.ReactNode;
423
420
  }
424
421
 
422
+ declare interface MapOverlayDataType {
423
+ mapData: FeatureCollection | string;
424
+ mapBorderWidth?: number;
425
+ mapBorderColor?: string;
426
+ }
427
+
425
428
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
426
429
 
427
430
  declare interface PointLightConfig extends BaseLightConfig {
@@ -469,11 +469,8 @@ declare interface GraphSettingsDataType {
469
469
  circularBoundary?: boolean;
470
470
  showDataMinMax?: boolean;
471
471
  showVoronoiTesselation?: boolean;
472
- mapOverlay?: {
473
- mapData: FeatureCollection | string;
474
- mapBorderWidth?: number;
475
- mapBorderColor?: string;
476
- };
472
+ mapOverlay?: MapOverlayDataType;
473
+ useVoronoiInteraction?: boolean;
477
474
  }
478
475
 
479
476
  declare interface HighlightAreaSettingsDataType {
@@ -509,6 +506,12 @@ declare interface MapLegendDataType {
509
506
  legend: string | React.ReactNode;
510
507
  }
511
508
 
509
+ declare interface MapOverlayDataType {
510
+ mapData: FeatureCollection | string;
511
+ mapBorderWidth?: number;
512
+ mapBorderColor?: string;
513
+ }
514
+
512
515
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
513
516
 
514
517
  declare interface PointLightConfig extends BaseLightConfig {
@@ -492,11 +492,8 @@ declare interface GraphSettingsDataType {
492
492
  circularBoundary?: boolean;
493
493
  showDataMinMax?: boolean;
494
494
  showVoronoiTesselation?: boolean;
495
- mapOverlay?: {
496
- mapData: FeatureCollection | string;
497
- mapBorderWidth?: number;
498
- mapBorderColor?: string;
499
- };
495
+ mapOverlay?: MapOverlayDataType;
496
+ useVoronoiInteraction?: boolean;
500
497
  }
501
498
 
502
499
  declare interface HighlightAreaSettingsDataType {
@@ -532,6 +529,12 @@ declare interface MapLegendDataType {
532
529
  legend: string | React.ReactNode;
533
530
  }
534
531
 
532
+ declare interface MapOverlayDataType {
533
+ mapData: FeatureCollection | string;
534
+ mapBorderWidth?: number;
535
+ mapBorderColor?: string;
536
+ }
537
+
535
538
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
536
539
 
537
540
  declare interface PointLightConfig extends BaseLightConfig {
package/dist/Types.d.ts CHANGED
@@ -677,11 +677,8 @@ export declare interface GraphSettingsDataType {
677
677
  circularBoundary?: boolean;
678
678
  showDataMinMax?: boolean;
679
679
  showVoronoiTesselation?: boolean;
680
- mapOverlay?: {
681
- mapData: FeatureCollection | string;
682
- mapBorderWidth?: number;
683
- mapBorderColor?: string;
684
- };
680
+ mapOverlay?: MapOverlayDataType;
681
+ useVoronoiInteraction?: boolean;
685
682
  }
686
683
 
687
684
  export declare type GraphType = GraphTypeForGriddedGraph;
@@ -770,6 +767,12 @@ export declare interface MapLegendDataType {
770
767
  legend: string | React.ReactNode;
771
768
  }
772
769
 
770
+ export declare interface MapOverlayDataType {
771
+ mapData: FeatureCollection | string;
772
+ mapBorderWidth?: number;
773
+ mapBorderColor?: string;
774
+ }
775
+
773
776
  export declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
774
777
 
775
778
  export declare interface MarginDataType {
package/dist/index.d.ts CHANGED
@@ -1235,11 +1235,8 @@ declare interface GraphSettingsDataType {
1235
1235
  circularBoundary?: boolean;
1236
1236
  showDataMinMax?: boolean;
1237
1237
  showVoronoiTesselation?: boolean;
1238
- mapOverlay?: {
1239
- mapData: FeatureCollection | string;
1240
- mapBorderWidth?: number;
1241
- mapBorderColor?: string;
1242
- };
1238
+ mapOverlay?: MapOverlayDataType;
1239
+ useVoronoiInteraction?: boolean;
1243
1240
  }
1244
1241
 
1245
1242
  export declare function GraphTitle(props: Props_68): JSX.Element | null;
@@ -1485,6 +1482,12 @@ declare interface MapLegendDataType {
1485
1482
  legend: string | React.ReactNode;
1486
1483
  }
1487
1484
 
1485
+ declare interface MapOverlayDataType {
1486
+ mapData: FeatureCollection | string;
1487
+ mapBorderWidth?: number;
1488
+ mapBorderColor?: string;
1489
+ }
1490
+
1488
1491
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
1489
1492
 
1490
1493
  export declare function MultiGraphDashboard(props: Props_39): JSX.Element;
@@ -2044,13 +2047,9 @@ declare interface Props_13 {
2044
2047
  /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
2045
2048
  padding?: string;
2046
2049
  /** Map data as an object in geoJson format or a url for geoJson */
2047
- mapData?: any;
2050
+ mapData?: FeatureCollection | string;
2048
2051
  /** Detail if any other map needs to be overlayed over the main map */
2049
- mapOverlay?: {
2050
- mapData?: any;
2051
- mapBorderWidth?: number;
2052
- mapBorderColor?: string;
2053
- };
2052
+ mapOverlay?: MapOverlayDataType;
2054
2053
  /** Defines if the coordinates in the map data should be rewinded or not. Try to change this is the visualization shows countries as holes instead of shapes. */
2055
2054
  rewindCoordinatesInMapData?: boolean;
2056
2055
  /** Scaling factor for the map. Multiplies the scale number to scale. */
@@ -2153,13 +2152,9 @@ declare interface Props_14 {
2153
2152
  /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
2154
2153
  padding?: string;
2155
2154
  /** Map data as an object in geoJson format or a url for geoJson */
2156
- mapData?: any;
2155
+ mapData?: FeatureCollection | string;
2157
2156
  /** Detail if any other map needs to be overlayed over the main map */
2158
- mapOverlay?: {
2159
- mapData?: any;
2160
- mapBorderWidth?: number;
2161
- mapBorderColor?: string;
2162
- };
2157
+ mapOverlay?: MapOverlayDataType;
2163
2158
  /** Defines if the coordinates in the map data should be rewinded or not. Try to change this is the visualization shows countries as holes instead of shapes. */
2164
2159
  rewindCoordinatesInMapData?: boolean;
2165
2160
  /** Scaling factor for the map. Multiplies the scale number to scale. */
@@ -2268,11 +2263,7 @@ declare interface Props_15 {
2268
2263
  /** Map data as an object in geoJson format or a url for geoJson */
2269
2264
  mapData?: FeatureCollection | string;
2270
2265
  /** Detail if any other map needs to be overlayed over the main map */
2271
- mapOverlay?: {
2272
- mapData?: FeatureCollection | string;
2273
- mapBorderWidth?: number;
2274
- mapBorderColor?: string;
2275
- };
2266
+ mapOverlay?: MapOverlayDataType;
2276
2267
  /** Defines if the coordinates in the map data should be rewinded or not. Try to change this is the visualization shows countries as holes instead of shapes. */
2277
2268
  rewindCoordinatesInMapData?: boolean;
2278
2269
  /** Scaling factor for the map. Multiplies the scale number to scale. */
@@ -2381,11 +2372,7 @@ declare interface Props_16 {
2381
2372
  /** Map data as an object in geoJson format or a url for geoJson */
2382
2373
  mapData?: FeatureCollection | string;
2383
2374
  /** Detail if any other map needs to be overlayed over the main map */
2384
- mapOverlay?: {
2385
- mapData: FeatureCollection | string;
2386
- mapBorderWidth?: number;
2387
- mapBorderColor?: string;
2388
- };
2375
+ mapOverlay?: MapOverlayDataType;
2389
2376
  /** Defines if the coordinates in the map data should be rewinded or not. Try to change this is the visualization shows countries as holes instead of shapes. */
2390
2377
  rewindCoordinatesInMapData?: boolean;
2391
2378
  /** Scaling factor for the map. Multiplies the scale number to scale. */
@@ -2910,6 +2897,8 @@ declare interface Props_21 {
2910
2897
  dataDownload?: boolean;
2911
2898
  /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */
2912
2899
  resetSelectionOnDoubleClick?: boolean;
2900
+ /** Toggle interaction of Voronoi cells */
2901
+ useVoronoiInteraction?: boolean;
2913
2902
  /** Toggle visibility of Voronoi tesselation. Should be used for debugging only */
2914
2903
  showVoronoiTesselation?: boolean;
2915
2904
  /** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/data-viz",
3
- "version": "2.3.15",
3
+ "version": "2.3.16",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "browser": "./dist/index.umd.js",