@kepler.gl/types 3.3.0-alpha.6 → 3.3.0-alpha.8
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 +7 -0
- package/components.d.ts +1 -0
- package/package.json +1 -1
- package/reducers.d.ts +22 -0
- package/schemas.d.ts +1 -0
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
package/package.json
CHANGED
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,8 +521,10 @@ 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;
|
|
527
|
+
sqlPanel?: MapControlItem;
|
|
510
528
|
aiAssistant?: MapControlItem;
|
|
511
529
|
};
|
|
512
530
|
|
|
@@ -525,6 +543,8 @@ export type Notifications = {
|
|
|
525
543
|
|
|
526
544
|
export type Locale = string;
|
|
527
545
|
|
|
546
|
+
export type UiTheme = string;
|
|
547
|
+
|
|
528
548
|
export type PanelListView = string;
|
|
529
549
|
|
|
530
550
|
export type UiState = {
|
|
@@ -549,6 +569,8 @@ export type UiState = {
|
|
|
549
569
|
loadFiles: LoadFiles;
|
|
550
570
|
// Locale of the UI
|
|
551
571
|
locale: Locale;
|
|
572
|
+
// Theme of the UI (`light` | `dark`), used when enableThemeToggle is on
|
|
573
|
+
theme: UiTheme;
|
|
552
574
|
// view layers by list or dataset
|
|
553
575
|
layerPanelListView: PanelListView;
|
|
554
576
|
// view filters by list or dataset
|