@kepler.gl/types 3.3.0-alpha.6 → 3.3.0-alpha.7

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/actions.d.ts CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  import {SavedMap, ParsedConfig, SavedConfigV1, MinSavedConfigV1} from './schemas';
5
5
  import type {LayerVisConfig} from './layers';
6
+ import type {ViewportPadding} from './reducers';
6
7
 
7
8
  /** EXPORT_FILE_TO_CLOUD */
8
9
  export type MapData = {
@@ -66,6 +67,12 @@ export type ProtoDataset = {
66
67
 
67
68
  export type AddDataToMapOptions = {
68
69
  centerMap?: boolean;
70
+ /**
71
+ * Padding in pixels applied when `centerMap` is true.
72
+ * Use this so a few points are not hidden under the side panel or other UI.
73
+ * A number applies the same padding on all sides.
74
+ */
75
+ padding?: ViewportPadding;
69
76
  readOnly?: boolean;
70
77
  keepExistingConfig?: boolean;
71
78
  autoCreateLayers?: boolean;
package/components.d.ts CHANGED
@@ -26,6 +26,7 @@ export type ColMetaProps = {
26
26
  format?: string;
27
27
  columnStats?: any;
28
28
  displayFormat?: string;
29
+ isLoadingStats?: boolean;
29
30
  };
30
31
 
31
32
  export type ColMeta = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/types",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.3.0-alpha.6",
4
+ "version": "3.3.0-alpha.7",
5
5
  "description": "kepler.gl types used by kepler.gl components, actions and reducers",
6
6
  "license": "MIT",
7
7
  "types": "index.d.ts",
package/reducers.d.ts CHANGED
@@ -46,6 +46,9 @@ export type MapState = {
46
46
  enabled: boolean;
47
47
  config: {
48
48
  atmosphere: boolean;
49
+ hugeHalo: boolean;
50
+ hugeHaloRadius: number;
51
+ hugeHaloOpacity: number;
49
52
  azimuth: boolean;
50
53
  azimuthAngle: number;
51
54
  terminator: boolean;
@@ -71,6 +74,19 @@ export type MapState = {
71
74
 
72
75
  export type Bounds = [number, number, number, number];
73
76
 
77
+ /**
78
+ * Padding in pixels used when fitting the map viewport to bounds.
79
+ * A number applies the same padding on all sides.
80
+ */
81
+ export type ViewportPadding =
82
+ | number
83
+ | {
84
+ top?: number;
85
+ bottom?: number;
86
+ left?: number;
87
+ right?: number;
88
+ };
89
+
74
90
  export type RangeFieldDomain = {
75
91
  domain: number[];
76
92
  step: number;
@@ -505,6 +521,7 @@ export type MapControls = {
505
521
  splitMap?: MapControlItem;
506
522
  mapDraw?: MapControlItem;
507
523
  mapLocale?: MapControlItem;
524
+ mapTheme?: MapControlItem;
508
525
  effect?: MapControlItem;
509
526
  annotation?: MapControlItem;
510
527
  aiAssistant?: MapControlItem;
@@ -525,6 +542,8 @@ export type Notifications = {
525
542
 
526
543
  export type Locale = string;
527
544
 
545
+ export type UiTheme = string;
546
+
528
547
  export type PanelListView = string;
529
548
 
530
549
  export type UiState = {
@@ -549,6 +568,8 @@ export type UiState = {
549
568
  loadFiles: LoadFiles;
550
569
  // Locale of the UI
551
570
  locale: Locale;
571
+ // Theme of the UI (`light` | `dark`), used when enableThemeToggle is on
572
+ theme: UiTheme;
552
573
  // view layers by list or dataset
553
574
  layerPanelListView: PanelListView;
554
575
  // view filters by list or dataset
package/schemas.d.ts CHANGED
@@ -152,6 +152,7 @@ export type ParsedUiState = {
152
152
  };
153
153
  };
154
154
  locale?: string;
155
+ theme?: string;
155
156
  };
156
157
 
157
158
  export type SavedMapState = {