@kepler.gl/actions 3.2.5 → 3.3.0-alpha.0
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/dist/action-wrapper.d.ts +6 -7
- package/dist/actions.d.ts +7 -7
- package/dist/identity-actions.d.ts +2 -2
- package/dist/map-state-actions.d.ts +5 -5
- package/dist/map-style-actions.d.ts +11 -11
- package/dist/provider-actions.d.ts +8 -8
- package/dist/ui-state-actions.d.ts +21 -21
- package/dist/vis-state-actions.d.ts +82 -83
- package/dist/vis-state-actions.js +1 -1
- package/package.json +9 -9
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { PickInfo } from '@deck.gl/core/lib/deck';
|
|
2
1
|
import { default as ActionTypes } from './action-types';
|
|
3
2
|
import { FileCacheItem } from '@kepler.gl/processors';
|
|
4
3
|
import { Layer, LayerBaseConfig } from '@kepler.gl/layers';
|
|
5
4
|
import { KeplerTable } from '@kepler.gl/table';
|
|
6
|
-
import { AddDataToMapPayload, ValueOf, Merge, RGBColor, NestedPartial, LayerVisConfig, ColorUI, Feature, FeatureSelectionContext, InteractionConfig, Filter, ParsedConfig, ParsedLayer, EffectPropsPartial, SyncTimelineMode, AnimationConfig, FilterAnimationConfig } from '@kepler.gl/types';
|
|
7
|
-
export
|
|
5
|
+
import { AddDataToMapPayload, ValueOf, Merge, PickInfo, RGBColor, NestedPartial, LayerVisConfig, ColorUI, Feature, FeatureSelectionContext, InteractionConfig, Filter, ParsedConfig, ParsedLayer, EffectPropsPartial, SyncTimelineMode, AnimationConfig, FilterAnimationConfig } from '@kepler.gl/types';
|
|
6
|
+
export type ApplyLayerConfigUpdaterAction = {
|
|
8
7
|
oldLayerId: string;
|
|
9
8
|
newLayerConfig: ParsedLayer;
|
|
10
9
|
layerIndex?: number;
|
|
@@ -21,7 +20,7 @@ export declare type ApplyLayerConfigUpdaterAction = {
|
|
|
21
20
|
export declare function applyLayerConfig(oldLayerId: string, newLayerConfig: ParsedLayer, layerIndex?: number): Merge<ApplyLayerConfigUpdaterAction, {
|
|
22
21
|
type: typeof ActionTypes.APPLY_LAYER_CONFIG;
|
|
23
22
|
}>;
|
|
24
|
-
export
|
|
23
|
+
export type LayerConfigChangeUpdaterAction = {
|
|
25
24
|
oldLayer: Layer;
|
|
26
25
|
newConfig: Partial<Layer['config']>;
|
|
27
26
|
};
|
|
@@ -35,7 +34,7 @@ export declare type LayerConfigChangeUpdaterAction = {
|
|
|
35
34
|
export declare function layerConfigChange(oldLayer: Layer, newConfig: Partial<LayerBaseConfig>): Merge<LayerConfigChangeUpdaterAction, {
|
|
36
35
|
type: typeof ActionTypes.LAYER_CONFIG_CHANGE;
|
|
37
36
|
}>;
|
|
38
|
-
export
|
|
37
|
+
export type LayerToggleVisibilityUpdaterAction = {
|
|
39
38
|
layerId: string;
|
|
40
39
|
isVisible: boolean;
|
|
41
40
|
splitMapId?: string;
|
|
@@ -51,7 +50,7 @@ export declare type LayerToggleVisibilityUpdaterAction = {
|
|
|
51
50
|
export declare function layerToggleVisibility(layerId: string, isVisible: boolean, splitMapId?: string): Merge<LayerToggleVisibilityUpdaterAction, {
|
|
52
51
|
type: typeof ActionTypes.LAYER_TOGGLE_VISIBILITY;
|
|
53
52
|
}>;
|
|
54
|
-
export
|
|
53
|
+
export type LayerTextLabelChangeUpdaterAction = {
|
|
55
54
|
oldLayer: Layer;
|
|
56
55
|
idx: number | 'all';
|
|
57
56
|
prop: string;
|
|
@@ -69,7 +68,7 @@ export declare type LayerTextLabelChangeUpdaterAction = {
|
|
|
69
68
|
export declare function layerTextLabelChange(oldLayer: Layer, idx: number | 'all', prop: string, value: any): Merge<LayerTextLabelChangeUpdaterAction, {
|
|
70
69
|
type: typeof ActionTypes.LAYER_TEXT_LABEL_CHANGE;
|
|
71
70
|
}>;
|
|
72
|
-
export
|
|
71
|
+
export type LayerSetIsValidUpdaterAction = {
|
|
73
72
|
oldLayer: Layer;
|
|
74
73
|
isValid: boolean;
|
|
75
74
|
};
|
|
@@ -84,7 +83,7 @@ export declare type LayerSetIsValidUpdaterAction = {
|
|
|
84
83
|
export declare function layerSetIsValid(oldLayer: Layer, isValid: boolean): Merge<LayerSetIsValidUpdaterAction, {
|
|
85
84
|
type: typeof ActionTypes.LAYER_SET_IS_VALID;
|
|
86
85
|
}>;
|
|
87
|
-
export
|
|
86
|
+
export type LayerTypeChangeUpdaterAction = {
|
|
88
87
|
oldLayer: Layer;
|
|
89
88
|
newType: string;
|
|
90
89
|
};
|
|
@@ -98,7 +97,7 @@ export declare type LayerTypeChangeUpdaterAction = {
|
|
|
98
97
|
export declare function layerTypeChange(oldLayer: Layer, newType: string): Merge<LayerTypeChangeUpdaterAction, {
|
|
99
98
|
type: typeof ActionTypes.LAYER_TYPE_CHANGE;
|
|
100
99
|
}>;
|
|
101
|
-
export
|
|
100
|
+
export type LayerVisualChannelConfigChangeUpdaterAction = {
|
|
102
101
|
oldLayer: Layer;
|
|
103
102
|
newConfig: Partial<Layer['config']>;
|
|
104
103
|
channel: string;
|
|
@@ -116,7 +115,7 @@ export declare type LayerVisualChannelConfigChangeUpdaterAction = {
|
|
|
116
115
|
export declare function layerVisualChannelConfigChange(oldLayer: Layer, newConfig: Partial<LayerBaseConfig>, channel: string, newVisConfig?: Partial<LayerVisConfig>): Merge<LayerVisualChannelConfigChangeUpdaterAction, {
|
|
117
116
|
type: typeof ActionTypes.LAYER_VISUAL_CHANNEL_CHANGE;
|
|
118
117
|
}>;
|
|
119
|
-
export
|
|
118
|
+
export type LayerVisConfigChangeUpdaterAction = {
|
|
120
119
|
oldLayer: Layer;
|
|
121
120
|
newVisConfig: Partial<LayerVisConfig>;
|
|
122
121
|
};
|
|
@@ -131,7 +130,7 @@ export declare type LayerVisConfigChangeUpdaterAction = {
|
|
|
131
130
|
export declare function layerVisConfigChange(oldLayer: Layer, newVisConfig: Partial<LayerVisConfig>): Merge<LayerVisConfigChangeUpdaterAction, {
|
|
132
131
|
type: typeof ActionTypes.LAYER_VIS_CONFIG_CHANGE;
|
|
133
132
|
}>;
|
|
134
|
-
export
|
|
133
|
+
export type LayerColorUIChangeUpdaterAction = {
|
|
135
134
|
oldLayer: Layer;
|
|
136
135
|
prop: string;
|
|
137
136
|
newConfig: NestedPartial<ColorUI>;
|
|
@@ -148,7 +147,7 @@ export declare type LayerColorUIChangeUpdaterAction = {
|
|
|
148
147
|
export declare function layerColorUIChange(oldLayer: Layer, prop: string, newConfig: NestedPartial<ColorUI>): Merge<LayerColorUIChangeUpdaterAction, {
|
|
149
148
|
type: typeof ActionTypes.LAYER_COLOR_UI_CHANGE;
|
|
150
149
|
}>;
|
|
151
|
-
export
|
|
150
|
+
export type UpdateLayerBlendingUpdaterAction = {
|
|
152
151
|
mode: 'additive' | 'normal' | 'subtractive';
|
|
153
152
|
};
|
|
154
153
|
/**
|
|
@@ -161,7 +160,7 @@ export declare type UpdateLayerBlendingUpdaterAction = {
|
|
|
161
160
|
export declare function updateLayerBlending(mode: 'additive' | 'normal' | 'subtractive'): Merge<UpdateLayerBlendingUpdaterAction, {
|
|
162
161
|
type: typeof ActionTypes.UPDATE_LAYER_BLENDING;
|
|
163
162
|
}>;
|
|
164
|
-
export
|
|
163
|
+
export type UpdateOverlayBlendingUpdaterAction = {
|
|
165
164
|
mode: 'screen' | 'normal' | 'darken';
|
|
166
165
|
};
|
|
167
166
|
/**
|
|
@@ -174,7 +173,7 @@ export declare type UpdateOverlayBlendingUpdaterAction = {
|
|
|
174
173
|
export declare function updateOverlayBlending(mode: 'screen' | 'normal' | 'darken'): Merge<UpdateOverlayBlendingUpdaterAction, {
|
|
175
174
|
type: typeof ActionTypes.UPDATE_OVERLAY_BLENDING;
|
|
176
175
|
}>;
|
|
177
|
-
export
|
|
176
|
+
export type InteractionConfigChangeUpdaterAction = {
|
|
178
177
|
config: ValueOf<InteractionConfig>;
|
|
179
178
|
};
|
|
180
179
|
/**
|
|
@@ -187,7 +186,7 @@ export declare type InteractionConfigChangeUpdaterAction = {
|
|
|
187
186
|
export declare function interactionConfigChange(config: ValueOf<InteractionConfig>): Merge<InteractionConfigChangeUpdaterAction, {
|
|
188
187
|
type: typeof ActionTypes.INTERACTION_CONFIG_CHANGE;
|
|
189
188
|
}>;
|
|
190
|
-
export
|
|
189
|
+
export type ApplyFilterConfigUpdaterAction = {
|
|
191
190
|
filterId: string;
|
|
192
191
|
newFilter: Filter;
|
|
193
192
|
};
|
|
@@ -201,7 +200,7 @@ export declare type ApplyFilterConfigUpdaterAction = {
|
|
|
201
200
|
export declare function applyFilterConfig(filterId: string, newFilter: Filter): Merge<ApplyFilterConfigUpdaterAction, {
|
|
202
201
|
type: typeof ActionTypes.APPLY_FILTER_CONFIG;
|
|
203
202
|
}>;
|
|
204
|
-
export
|
|
203
|
+
export type SetFilterUpdaterAction = {
|
|
205
204
|
idx: number;
|
|
206
205
|
prop: string | string[];
|
|
207
206
|
value: any;
|
|
@@ -222,7 +221,7 @@ export declare type SetFilterUpdaterAction = {
|
|
|
222
221
|
export declare function setFilter(idx: number, prop: string | string[], value: any, valueIndex?: number): Merge<SetFilterUpdaterAction, {
|
|
223
222
|
type: typeof ActionTypes.SET_FILTER;
|
|
224
223
|
}>;
|
|
225
|
-
export
|
|
224
|
+
export type SetFilterAnimationTimeUpdaterAction = {
|
|
226
225
|
idx: number;
|
|
227
226
|
prop: string;
|
|
228
227
|
value: any;
|
|
@@ -241,7 +240,7 @@ export declare type SetFilterAnimationTimeUpdaterAction = {
|
|
|
241
240
|
export declare function setFilterAnimationTime(idx: number, prop: string, value: any, valueIndex?: number): Merge<SetFilterAnimationTimeUpdaterAction, {
|
|
242
241
|
type: typeof ActionTypes.SET_FILTER_ANIMATION_TIME;
|
|
243
242
|
}>;
|
|
244
|
-
export
|
|
243
|
+
export type SetFilterAnimationWindowUpdaterAction = {
|
|
245
244
|
id: string;
|
|
246
245
|
animationWindow: string;
|
|
247
246
|
};
|
|
@@ -253,7 +252,7 @@ export declare type SetFilterAnimationWindowUpdaterAction = {
|
|
|
253
252
|
export declare function setFilterAnimationWindow({ id, animationWindow }: SetFilterAnimationWindowUpdaterAction): Merge<SetFilterAnimationWindowUpdaterAction, {
|
|
254
253
|
type: typeof ActionTypes.SET_FILTER_ANIMATION_WINDOW;
|
|
255
254
|
}>;
|
|
256
|
-
export
|
|
255
|
+
export type AddFilterUpdaterAction = {
|
|
257
256
|
dataId?: string | string[] | null;
|
|
258
257
|
id?: string;
|
|
259
258
|
};
|
|
@@ -268,7 +267,7 @@ export declare type AddFilterUpdaterAction = {
|
|
|
268
267
|
export declare function addFilter(dataId: string | null, id?: string): Merge<AddFilterUpdaterAction, {
|
|
269
268
|
type: typeof ActionTypes.ADD_FILTER;
|
|
270
269
|
}>;
|
|
271
|
-
export
|
|
270
|
+
export type CreateOrUpdateFilterUpdaterAction = {
|
|
272
271
|
id?: string;
|
|
273
272
|
dataId?: string | string[];
|
|
274
273
|
field?: string | string[];
|
|
@@ -284,7 +283,7 @@ export declare type CreateOrUpdateFilterUpdaterAction = {
|
|
|
284
283
|
export declare function createOrUpdateFilter(id?: string, dataId?: string | string[], field?: string | string[], value?: any): Merge<CreateOrUpdateFilterUpdaterAction, {
|
|
285
284
|
type: typeof ActionTypes.CREATE_OR_UPDATE_FILTER;
|
|
286
285
|
}>;
|
|
287
|
-
export
|
|
286
|
+
export type AddLayerUpdaterAction = {
|
|
288
287
|
config?: object;
|
|
289
288
|
datasetId?: string;
|
|
290
289
|
};
|
|
@@ -299,7 +298,7 @@ export declare type AddLayerUpdaterAction = {
|
|
|
299
298
|
export declare function addLayer(config?: object, datasetId?: string): Merge<AddLayerUpdaterAction, {
|
|
300
299
|
type: typeof ActionTypes.ADD_LAYER;
|
|
301
300
|
}>;
|
|
302
|
-
export
|
|
301
|
+
export type ReorderLayerUpdaterAction = {
|
|
303
302
|
order: string[];
|
|
304
303
|
};
|
|
305
304
|
/**
|
|
@@ -317,7 +316,7 @@ export declare type ReorderLayerUpdaterAction = {
|
|
|
317
316
|
export declare function reorderLayer(order: string[]): Merge<ReorderLayerUpdaterAction, {
|
|
318
317
|
type: typeof ActionTypes.REORDER_LAYER;
|
|
319
318
|
}>;
|
|
320
|
-
export
|
|
319
|
+
export type RemoveFilterUpdaterAction = {
|
|
321
320
|
idx: number;
|
|
322
321
|
};
|
|
323
322
|
/**
|
|
@@ -330,7 +329,7 @@ export declare type RemoveFilterUpdaterAction = {
|
|
|
330
329
|
export declare function removeFilter(idx: number): Merge<RemoveFilterUpdaterAction, {
|
|
331
330
|
type: typeof ActionTypes.REMOVE_FILTER;
|
|
332
331
|
}>;
|
|
333
|
-
export
|
|
332
|
+
export type RemoveLayerUpdaterAction = {
|
|
334
333
|
id: string;
|
|
335
334
|
};
|
|
336
335
|
/**
|
|
@@ -343,7 +342,7 @@ export declare type RemoveLayerUpdaterAction = {
|
|
|
343
342
|
export declare function removeLayer(id: string): Merge<RemoveLayerUpdaterAction, {
|
|
344
343
|
type: typeof ActionTypes.REMOVE_LAYER;
|
|
345
344
|
}>;
|
|
346
|
-
export
|
|
345
|
+
export type DuplicateLayerUpdaterAction = {
|
|
347
346
|
id: string;
|
|
348
347
|
};
|
|
349
348
|
/**
|
|
@@ -356,7 +355,7 @@ export declare type DuplicateLayerUpdaterAction = {
|
|
|
356
355
|
export declare function duplicateLayer(id: string): Merge<DuplicateLayerUpdaterAction, {
|
|
357
356
|
type: typeof ActionTypes.DUPLICATE_LAYER;
|
|
358
357
|
}>;
|
|
359
|
-
export
|
|
358
|
+
export type AddEffectUpdaterAction = {
|
|
360
359
|
config: EffectPropsPartial;
|
|
361
360
|
};
|
|
362
361
|
/**
|
|
@@ -369,7 +368,7 @@ export declare type AddEffectUpdaterAction = {
|
|
|
369
368
|
export declare function addEffect(config: EffectPropsPartial): Merge<AddEffectUpdaterAction, {
|
|
370
369
|
type: typeof ActionTypes.ADD_EFFECT;
|
|
371
370
|
}>;
|
|
372
|
-
export
|
|
371
|
+
export type ReorderEffectUpdaterAction = {
|
|
373
372
|
order: string[];
|
|
374
373
|
};
|
|
375
374
|
/**
|
|
@@ -382,7 +381,7 @@ export declare type ReorderEffectUpdaterAction = {
|
|
|
382
381
|
export declare function reorderEffect(order: string[]): Merge<ReorderEffectUpdaterAction, {
|
|
383
382
|
type: typeof ActionTypes.REORDER_EFFECT;
|
|
384
383
|
}>;
|
|
385
|
-
export
|
|
384
|
+
export type RemoveEffectUpdaterAction = {
|
|
386
385
|
id: string;
|
|
387
386
|
};
|
|
388
387
|
/**
|
|
@@ -395,7 +394,7 @@ export declare type RemoveEffectUpdaterAction = {
|
|
|
395
394
|
export declare function removeEffect(id: string): Merge<RemoveEffectUpdaterAction, {
|
|
396
395
|
type: typeof ActionTypes.REMOVE_EFFECT;
|
|
397
396
|
}>;
|
|
398
|
-
export
|
|
397
|
+
export type UpdateEffectUpdaterAction = {
|
|
399
398
|
id: string;
|
|
400
399
|
props: EffectPropsPartial;
|
|
401
400
|
};
|
|
@@ -409,7 +408,7 @@ export declare type UpdateEffectUpdaterAction = {
|
|
|
409
408
|
export declare function updateEffect(id: string, props: EffectPropsPartial): Merge<UpdateEffectUpdaterAction, {
|
|
410
409
|
type: typeof ActionTypes.UPDATE_EFFECT;
|
|
411
410
|
}>;
|
|
412
|
-
export
|
|
411
|
+
export type RemoveDatasetUpdaterAction = {
|
|
413
412
|
dataId: string;
|
|
414
413
|
};
|
|
415
414
|
/**
|
|
@@ -422,7 +421,7 @@ export declare type RemoveDatasetUpdaterAction = {
|
|
|
422
421
|
export declare function removeDataset(dataId: string): Merge<RemoveDatasetUpdaterAction, {
|
|
423
422
|
type: typeof ActionTypes.REMOVE_DATASET;
|
|
424
423
|
}>;
|
|
425
|
-
export
|
|
424
|
+
export type ShowDatasetTableUpdaterAction = {
|
|
426
425
|
dataId: string;
|
|
427
426
|
};
|
|
428
427
|
/**
|
|
@@ -435,7 +434,7 @@ export declare type ShowDatasetTableUpdaterAction = {
|
|
|
435
434
|
export declare function showDatasetTable(dataId: string): Merge<ShowDatasetTableUpdaterAction, {
|
|
436
435
|
type: typeof ActionTypes.SHOW_DATASET_TABLE;
|
|
437
436
|
}>;
|
|
438
|
-
export
|
|
437
|
+
export type UpdateDatasetColorUpdater = {
|
|
439
438
|
dataId: string;
|
|
440
439
|
newColor: RGBColor;
|
|
441
440
|
};
|
|
@@ -450,7 +449,7 @@ export declare type UpdateDatasetColorUpdater = {
|
|
|
450
449
|
export declare function updateTableColor(dataId: string, newColor: RGBColor): Merge<UpdateDatasetColorUpdater, {
|
|
451
450
|
type: typeof ActionTypes.UPDATE_TABLE_COLOR;
|
|
452
451
|
}>;
|
|
453
|
-
export
|
|
452
|
+
export type SortTableColumnUpdaterAction = {
|
|
454
453
|
dataId: string;
|
|
455
454
|
column: string;
|
|
456
455
|
mode?: string;
|
|
@@ -467,7 +466,7 @@ export declare type SortTableColumnUpdaterAction = {
|
|
|
467
466
|
export declare function sortTableColumn(dataId: string, column: string, mode?: string): Merge<SortTableColumnUpdaterAction, {
|
|
468
467
|
type: typeof ActionTypes.SORT_TABLE_COLUMN;
|
|
469
468
|
}>;
|
|
470
|
-
export
|
|
469
|
+
export type PinTableColumnUpdaterAction = {
|
|
471
470
|
dataId: string;
|
|
472
471
|
column: string;
|
|
473
472
|
};
|
|
@@ -481,7 +480,7 @@ export declare type PinTableColumnUpdaterAction = {
|
|
|
481
480
|
export declare function pinTableColumn(dataId: string, column: string): Merge<PinTableColumnUpdaterAction, {
|
|
482
481
|
type: typeof ActionTypes.PIN_TABLE_COLUMN;
|
|
483
482
|
}>;
|
|
484
|
-
export
|
|
483
|
+
export type CopyTableColumnUpdaterAction = {
|
|
485
484
|
dataId: string;
|
|
486
485
|
column: string;
|
|
487
486
|
};
|
|
@@ -495,7 +494,7 @@ export declare type CopyTableColumnUpdaterAction = {
|
|
|
495
494
|
export declare function copyTableColumn(dataId: string, column: string): Merge<CopyTableColumnUpdaterAction, {
|
|
496
495
|
type: typeof ActionTypes.COPY_TABLE_COLUMN;
|
|
497
496
|
}>;
|
|
498
|
-
export
|
|
497
|
+
export type SetColumnDisplayFormatUpdaterAction = {
|
|
499
498
|
dataId: string;
|
|
500
499
|
formats: {
|
|
501
500
|
[key: string]: string;
|
|
@@ -511,12 +510,12 @@ export declare type SetColumnDisplayFormatUpdaterAction = {
|
|
|
511
510
|
export declare function setColumnDisplayFormat(dataId: SetColumnDisplayFormatUpdaterAction['dataId'], formats: SetColumnDisplayFormatUpdaterAction['formats']): Merge<SetColumnDisplayFormatUpdaterAction, {
|
|
512
511
|
type: typeof ActionTypes.SET_COLUMN_DISPLAY_FORMAT;
|
|
513
512
|
}>;
|
|
514
|
-
export
|
|
513
|
+
export type AddDataToMapUpdaterOptions = {
|
|
515
514
|
centerMap?: boolean;
|
|
516
515
|
readOnly?: boolean;
|
|
517
516
|
keepExistingConfig?: boolean;
|
|
518
517
|
};
|
|
519
|
-
export
|
|
518
|
+
export type UpdateVisDataUpdaterAction = {
|
|
520
519
|
datasets: AddDataToMapPayload['datasets'];
|
|
521
520
|
options: AddDataToMapPayload['options'];
|
|
522
521
|
config?: ParsedConfig;
|
|
@@ -538,7 +537,7 @@ export declare type UpdateVisDataUpdaterAction = {
|
|
|
538
537
|
export declare function updateVisData(datasets: AddDataToMapPayload['datasets'], options: AddDataToMapPayload['options'], config?: ParsedConfig): Merge<UpdateVisDataUpdaterAction, {
|
|
539
538
|
type: typeof ActionTypes.UPDATE_VIS_DATA;
|
|
540
539
|
}>;
|
|
541
|
-
export
|
|
540
|
+
export type RenameDatasetUpdaterAction = {
|
|
542
541
|
dataId: string;
|
|
543
542
|
label: string;
|
|
544
543
|
};
|
|
@@ -553,7 +552,7 @@ export declare type RenameDatasetUpdaterAction = {
|
|
|
553
552
|
export declare function renameDataset(dataId: string, label: string): Merge<RenameDatasetUpdaterAction, {
|
|
554
553
|
type: typeof ActionTypes.RENAME_DATASET;
|
|
555
554
|
}>;
|
|
556
|
-
export
|
|
555
|
+
export type UpdateDatasetPropsUpdaterAction = {
|
|
557
556
|
dataId: string;
|
|
558
557
|
props: {
|
|
559
558
|
label?: string;
|
|
@@ -574,7 +573,7 @@ export declare function updateDatasetProps(dataId: string, props: {
|
|
|
574
573
|
}): Merge<UpdateDatasetPropsUpdaterAction, {
|
|
575
574
|
type: typeof ActionTypes.UPDATE_DATASET_PROPS;
|
|
576
575
|
}>;
|
|
577
|
-
export
|
|
576
|
+
export type ToggleFilterAnimationUpdaterAction = {
|
|
578
577
|
idx: number;
|
|
579
578
|
};
|
|
580
579
|
/**
|
|
@@ -587,7 +586,7 @@ export declare type ToggleFilterAnimationUpdaterAction = {
|
|
|
587
586
|
export declare function toggleFilterAnimation(idx: number): Merge<ToggleFilterAnimationUpdaterAction, {
|
|
588
587
|
type: typeof ActionTypes.TOGGLE_FILTER_ANIMATION;
|
|
589
588
|
}>;
|
|
590
|
-
export
|
|
589
|
+
export type UpdateFilterAnimationSpeedUpdaterAction = {
|
|
591
590
|
idx: number;
|
|
592
591
|
speed: number;
|
|
593
592
|
};
|
|
@@ -602,7 +601,7 @@ export declare type UpdateFilterAnimationSpeedUpdaterAction = {
|
|
|
602
601
|
export declare function updateFilterAnimationSpeed(idx: number, speed: number): Merge<UpdateFilterAnimationSpeedUpdaterAction, {
|
|
603
602
|
type: typeof ActionTypes.UPDATE_FILTER_ANIMATION_SPEED;
|
|
604
603
|
}>;
|
|
605
|
-
export
|
|
604
|
+
export type SetAnimationConfigUpdaterAction = {
|
|
606
605
|
config: AnimationConfig | FilterAnimationConfig;
|
|
607
606
|
};
|
|
608
607
|
/**
|
|
@@ -613,7 +612,7 @@ export declare type SetAnimationConfigUpdaterAction = {
|
|
|
613
612
|
export declare function setAnimationConfig(config: AnimationConfig | FilterAnimationConfig): Merge<SetAnimationConfigUpdaterAction, {
|
|
614
613
|
type: typeof ActionTypes.SET_ANIMATION_CONFIG;
|
|
615
614
|
}>;
|
|
616
|
-
export
|
|
615
|
+
export type SetLayerAnimationTimeUpdaterAction = {
|
|
617
616
|
value: number | null;
|
|
618
617
|
};
|
|
619
618
|
/**
|
|
@@ -626,7 +625,7 @@ export declare type SetLayerAnimationTimeUpdaterAction = {
|
|
|
626
625
|
export declare function setLayerAnimationTime(value: number): Merge<SetLayerAnimationTimeUpdaterAction, {
|
|
627
626
|
type: typeof ActionTypes.SET_LAYER_ANIMATION_TIME;
|
|
628
627
|
}>;
|
|
629
|
-
export
|
|
628
|
+
export type UpdateLayerAnimationSpeedUpdaterAction = {
|
|
630
629
|
speed: number;
|
|
631
630
|
};
|
|
632
631
|
/**
|
|
@@ -639,7 +638,7 @@ export declare type UpdateLayerAnimationSpeedUpdaterAction = {
|
|
|
639
638
|
export declare function updateLayerAnimationSpeed(speed: number): Merge<UpdateLayerAnimationSpeedUpdaterAction, {
|
|
640
639
|
type: typeof ActionTypes.UPDATE_LAYER_ANIMATION_SPEED;
|
|
641
640
|
}>;
|
|
642
|
-
export
|
|
641
|
+
export type ToggleLayerAnimationUpdaterAction = void;
|
|
643
642
|
/**
|
|
644
643
|
* start end end layer animation
|
|
645
644
|
* @memberof visStateActions
|
|
@@ -649,7 +648,7 @@ export declare type ToggleLayerAnimationUpdaterAction = void;
|
|
|
649
648
|
export declare function toggleLayerAnimation(): Merge<ToggleLayerAnimationUpdaterAction, {
|
|
650
649
|
type: typeof ActionTypes.TOGGLE_LAYER_ANIMATION;
|
|
651
650
|
}>;
|
|
652
|
-
export
|
|
651
|
+
export type ToggleLayerAnimationControlUpdaterAction = void;
|
|
653
652
|
/**
|
|
654
653
|
* hide and show layer animation control
|
|
655
654
|
* @memberof visStateActions
|
|
@@ -659,7 +658,7 @@ export declare type ToggleLayerAnimationControlUpdaterAction = void;
|
|
|
659
658
|
export declare function toggleLayerAnimationControl(): Merge<ToggleLayerAnimationControlUpdaterAction, {
|
|
660
659
|
type: typeof ActionTypes.TOGGLE_LAYER_ANIMATION_CONTROL;
|
|
661
660
|
}>;
|
|
662
|
-
export
|
|
661
|
+
export type SetFilterViewUpdaterAction = {
|
|
663
662
|
idx: number;
|
|
664
663
|
view: Filter['view'];
|
|
665
664
|
};
|
|
@@ -674,7 +673,7 @@ export declare type SetFilterViewUpdaterAction = {
|
|
|
674
673
|
export declare function setFilterView(idx: number, view: Filter['view']): Merge<SetFilterViewUpdaterAction, {
|
|
675
674
|
type: typeof ActionTypes.SET_FILTER_VIEW;
|
|
676
675
|
}>;
|
|
677
|
-
export
|
|
676
|
+
export type ToggleFilterFeatureUpdaterAction = {
|
|
678
677
|
idx: number;
|
|
679
678
|
};
|
|
680
679
|
/**
|
|
@@ -686,8 +685,8 @@ export declare type ToggleFilterFeatureUpdaterAction = {
|
|
|
686
685
|
export declare function toggleFilterFeature(idx: number): Merge<ToggleFilterFeatureUpdaterAction, {
|
|
687
686
|
type: typeof ActionTypes.TOGGLE_FILTER_FEATURE;
|
|
688
687
|
}>;
|
|
689
|
-
export
|
|
690
|
-
info: PickInfo
|
|
688
|
+
export type OnLayerHoverUpdaterAction = {
|
|
689
|
+
info: PickInfo | null;
|
|
691
690
|
mapIndex?: number;
|
|
692
691
|
};
|
|
693
692
|
/**
|
|
@@ -698,11 +697,11 @@ export declare type OnLayerHoverUpdaterAction = {
|
|
|
698
697
|
* @returns action
|
|
699
698
|
* @public
|
|
700
699
|
*/
|
|
701
|
-
export declare function onLayerHover(info: PickInfo
|
|
700
|
+
export declare function onLayerHover(info: PickInfo | null, mapIndex?: number): Merge<OnLayerHoverUpdaterAction, {
|
|
702
701
|
type: typeof ActionTypes.LAYER_HOVER;
|
|
703
702
|
}>;
|
|
704
|
-
export
|
|
705
|
-
info: PickInfo
|
|
703
|
+
export type OnLayerClickUpdaterAction = {
|
|
704
|
+
info: PickInfo | null;
|
|
706
705
|
};
|
|
707
706
|
/**
|
|
708
707
|
* Trigger layer click event with clicked object
|
|
@@ -711,10 +710,10 @@ export declare type OnLayerClickUpdaterAction = {
|
|
|
711
710
|
* @returns action
|
|
712
711
|
* @public
|
|
713
712
|
*/
|
|
714
|
-
export declare function onLayerClick(info: PickInfo
|
|
713
|
+
export declare function onLayerClick(info: PickInfo | null): Merge<OnLayerClickUpdaterAction, {
|
|
715
714
|
type: typeof ActionTypes.LAYER_CLICK;
|
|
716
715
|
}>;
|
|
717
|
-
export
|
|
716
|
+
export type OnMapClickUpdaterAction = void;
|
|
718
717
|
/**
|
|
719
718
|
* Trigger map click event, unselect clicked object
|
|
720
719
|
* @memberof visStateActions
|
|
@@ -724,7 +723,7 @@ export declare type OnMapClickUpdaterAction = void;
|
|
|
724
723
|
export declare function onMapClick(): Merge<OnMapClickUpdaterAction, {
|
|
725
724
|
type: typeof ActionTypes.MAP_CLICK;
|
|
726
725
|
}>;
|
|
727
|
-
export
|
|
726
|
+
export type OnMouseMoveUpdaterAction = {
|
|
728
727
|
evt: any;
|
|
729
728
|
};
|
|
730
729
|
/**
|
|
@@ -740,7 +739,7 @@ export declare type OnMouseMoveUpdaterAction = {
|
|
|
740
739
|
export declare function onMouseMove(evt: any): Merge<OnMouseMoveUpdaterAction, {
|
|
741
740
|
type: typeof ActionTypes.MOUSE_MOVE;
|
|
742
741
|
}>;
|
|
743
|
-
export
|
|
742
|
+
export type ToggleLayerForMapUpdaterAction = {
|
|
744
743
|
mapIndex: number;
|
|
745
744
|
layerId: string;
|
|
746
745
|
};
|
|
@@ -755,13 +754,13 @@ export declare type ToggleLayerForMapUpdaterAction = {
|
|
|
755
754
|
export declare function toggleLayerForMap(mapIndex: number, layerId: string): Merge<ToggleLayerForMapUpdaterAction, {
|
|
756
755
|
type: typeof ActionTypes.TOGGLE_LAYER_FOR_MAP;
|
|
757
756
|
}>;
|
|
758
|
-
|
|
757
|
+
type FilterPlotNewProp = {
|
|
759
758
|
yAxis?: null | Record<string, any>;
|
|
760
759
|
plotType?: {
|
|
761
760
|
type: string;
|
|
762
761
|
};
|
|
763
762
|
};
|
|
764
|
-
export
|
|
763
|
+
export type SetFilterPlotUpdaterAction = {
|
|
765
764
|
idx: number;
|
|
766
765
|
newProp: FilterPlotNewProp;
|
|
767
766
|
valueIndex?: number;
|
|
@@ -778,7 +777,7 @@ export declare type SetFilterPlotUpdaterAction = {
|
|
|
778
777
|
export declare function setFilterPlot(idx: number, newProp: FilterPlotNewProp, valueIndex?: number): Merge<SetFilterPlotUpdaterAction, {
|
|
779
778
|
type: typeof ActionTypes.SET_FILTER_PLOT;
|
|
780
779
|
}>;
|
|
781
|
-
export
|
|
780
|
+
export type SetMapInfoUpdaterAction = {
|
|
782
781
|
info: any;
|
|
783
782
|
};
|
|
784
783
|
/**
|
|
@@ -791,7 +790,7 @@ export declare type SetMapInfoUpdaterAction = {
|
|
|
791
790
|
export declare function setMapInfo(info: any): Merge<SetMapInfoUpdaterAction, {
|
|
792
791
|
type: typeof ActionTypes.SET_MAP_INFO;
|
|
793
792
|
}>;
|
|
794
|
-
export
|
|
793
|
+
export type LoadFilesUpdaterAction = {
|
|
795
794
|
files: File[];
|
|
796
795
|
onFinish?(result: any): any;
|
|
797
796
|
};
|
|
@@ -814,7 +813,7 @@ export declare function loadFiles(files: File[], onFinish?: (result: any) => any
|
|
|
814
813
|
export declare function loadNextFile(): {
|
|
815
814
|
type: typeof ActionTypes.LOAD_NEXT_FILE;
|
|
816
815
|
};
|
|
817
|
-
export
|
|
816
|
+
export type loadFilesSuccessUpdaterAction = {
|
|
818
817
|
result: FileCacheItem[];
|
|
819
818
|
};
|
|
820
819
|
/**
|
|
@@ -826,7 +825,7 @@ export declare type loadFilesSuccessUpdaterAction = {
|
|
|
826
825
|
export declare function loadFilesSuccess(result: FileCacheItem[]): Merge<loadFilesSuccessUpdaterAction, {
|
|
827
826
|
type: typeof ActionTypes.LOAD_FILES_SUCCESS;
|
|
828
827
|
}>;
|
|
829
|
-
export
|
|
828
|
+
export type LoadFileStepSuccessAction = {
|
|
830
829
|
fileName: string;
|
|
831
830
|
fileCache: FileCacheItem[];
|
|
832
831
|
};
|
|
@@ -842,7 +841,7 @@ export declare function loadFileStepSuccess({ fileName, fileCache }: {
|
|
|
842
841
|
}): Merge<LoadFileStepSuccessAction, {
|
|
843
842
|
type: typeof ActionTypes.LOAD_FILE_STEP_SUCCESS;
|
|
844
843
|
}>;
|
|
845
|
-
export
|
|
844
|
+
export type LoadFilesErrUpdaterAction = {
|
|
846
845
|
fileName: string;
|
|
847
846
|
error: any;
|
|
848
847
|
};
|
|
@@ -856,7 +855,7 @@ export declare type LoadFilesErrUpdaterAction = {
|
|
|
856
855
|
export declare function loadFilesErr(fileName: string, error: any): Merge<LoadFilesErrUpdaterAction, {
|
|
857
856
|
type: typeof ActionTypes.LOAD_FILES_ERR;
|
|
858
857
|
}>;
|
|
859
|
-
export
|
|
858
|
+
export type SetFeaturesUpdaterAction = {
|
|
860
859
|
features: Feature[];
|
|
861
860
|
};
|
|
862
861
|
/**
|
|
@@ -868,7 +867,7 @@ export declare type SetFeaturesUpdaterAction = {
|
|
|
868
867
|
export declare function setFeatures(features: Feature[]): Merge<SetFeaturesUpdaterAction, {
|
|
869
868
|
type: typeof ActionTypes.SET_FEATURES;
|
|
870
869
|
}>;
|
|
871
|
-
export
|
|
870
|
+
export type SetPolygonFilterLayerUpdaterAction = {
|
|
872
871
|
layer: Layer;
|
|
873
872
|
feature: Feature;
|
|
874
873
|
};
|
|
@@ -883,7 +882,7 @@ export declare type SetPolygonFilterLayerUpdaterAction = {
|
|
|
883
882
|
export declare function setPolygonFilterLayer(layer: Layer, feature: Feature): Merge<SetPolygonFilterLayerUpdaterAction, {
|
|
884
883
|
type: typeof ActionTypes.SET_POLYGON_FILTER_LAYER;
|
|
885
884
|
}>;
|
|
886
|
-
export
|
|
885
|
+
export type SetSelectedFeatureUpdaterAction = {
|
|
887
886
|
feature: Feature | null;
|
|
888
887
|
selectionContext?: FeatureSelectionContext;
|
|
889
888
|
};
|
|
@@ -898,7 +897,7 @@ export declare type SetSelectedFeatureUpdaterAction = {
|
|
|
898
897
|
export declare function setSelectedFeature(feature: Feature | null, selectionContext?: FeatureSelectionContext): Merge<SetSelectedFeatureUpdaterAction, {
|
|
899
898
|
type: typeof ActionTypes.SET_SELECTED_FEATURE;
|
|
900
899
|
}>;
|
|
901
|
-
export
|
|
900
|
+
export type DeleteFeatureUpdaterAction = {
|
|
902
901
|
feature: Feature;
|
|
903
902
|
};
|
|
904
903
|
/**
|
|
@@ -910,7 +909,7 @@ export declare type DeleteFeatureUpdaterAction = {
|
|
|
910
909
|
export declare function deleteFeature(feature: Feature): Merge<DeleteFeatureUpdaterAction, {
|
|
911
910
|
type: typeof ActionTypes.DELETE_FEATURE;
|
|
912
911
|
}>;
|
|
913
|
-
export
|
|
912
|
+
export type SetEditorModeUpdaterAction = {
|
|
914
913
|
mode: string;
|
|
915
914
|
};
|
|
916
915
|
/** Set the map mode
|
|
@@ -927,7 +926,7 @@ export declare type SetEditorModeUpdaterAction = {
|
|
|
927
926
|
export declare function setEditorMode(mode: string): Merge<SetEditorModeUpdaterAction, {
|
|
928
927
|
type: typeof ActionTypes.SET_EDITOR_MODE;
|
|
929
928
|
}>;
|
|
930
|
-
export
|
|
929
|
+
export type ApplyCPUFilterUpdaterAction = {
|
|
931
930
|
dataId: string | string[];
|
|
932
931
|
};
|
|
933
932
|
/**
|
|
@@ -940,7 +939,7 @@ export declare type ApplyCPUFilterUpdaterAction = {
|
|
|
940
939
|
export declare function applyCPUFilter(dataId: string | string[]): Merge<ApplyCPUFilterUpdaterAction, {
|
|
941
940
|
type: typeof ActionTypes.APPLY_CPU_FILTER;
|
|
942
941
|
}>;
|
|
943
|
-
export
|
|
942
|
+
export type ToggleEditorVisibilityUpdaterAction = void;
|
|
944
943
|
/**
|
|
945
944
|
* Toggle editor layer visibility
|
|
946
945
|
* @memberof visStateActions
|
|
@@ -949,12 +948,12 @@ export declare type ToggleEditorVisibilityUpdaterAction = void;
|
|
|
949
948
|
export declare function toggleEditorVisibility(): Merge<ToggleEditorVisibilityUpdaterAction, {
|
|
950
949
|
type: typeof ActionTypes.TOGGLE_EDITOR_VISIBILITY;
|
|
951
950
|
}>;
|
|
952
|
-
|
|
951
|
+
type FileContent = {
|
|
953
952
|
fileName: string;
|
|
954
953
|
header: string[];
|
|
955
954
|
data: any;
|
|
956
955
|
};
|
|
957
|
-
export
|
|
956
|
+
export type NextFileBatchUpdaterAction = {
|
|
958
957
|
payload: {
|
|
959
958
|
gen: AsyncGenerator<FileContent>;
|
|
960
959
|
fileName: string;
|
|
@@ -972,7 +971,7 @@ export declare type NextFileBatchUpdaterAction = {
|
|
|
972
971
|
export declare function nextFileBatch(payload: NextFileBatchUpdaterAction['payload']): Merge<NextFileBatchUpdaterAction, {
|
|
973
972
|
type: typeof ActionTypes.NEXT_FILE_BATCH;
|
|
974
973
|
}>;
|
|
975
|
-
export
|
|
974
|
+
export type ProcessFileContentUpdaterAction = {
|
|
976
975
|
payload: {
|
|
977
976
|
content: FileContent;
|
|
978
977
|
fileCache: FileCacheItem[];
|
|
@@ -987,7 +986,7 @@ export declare type ProcessFileContentUpdaterAction = {
|
|
|
987
986
|
export declare function processFileContent(payload: ProcessFileContentUpdaterAction['payload']): Merge<ProcessFileContentUpdaterAction, {
|
|
988
987
|
type: typeof ActionTypes.PROCESS_FILE_CONTENT;
|
|
989
988
|
}>;
|
|
990
|
-
export
|
|
989
|
+
export type SetLayerAnimationTimeConfigAction = {
|
|
991
990
|
config: {
|
|
992
991
|
timezone?: string;
|
|
993
992
|
timeFormat?: string;
|
|
@@ -1002,7 +1001,7 @@ export declare type SetLayerAnimationTimeConfigAction = {
|
|
|
1002
1001
|
export declare function setLayerAnimationTimeConfig(config: SetLayerAnimationTimeConfigAction['config']): Merge<SetLayerAnimationTimeConfigAction, {
|
|
1003
1002
|
type: typeof ActionTypes.SET_LAYER_ANIMATION_TIME_CONFIG;
|
|
1004
1003
|
}>;
|
|
1005
|
-
export
|
|
1004
|
+
export type SetFilterAnimationTimeConfigAction = {
|
|
1006
1005
|
idx: number;
|
|
1007
1006
|
config: {
|
|
1008
1007
|
timezone?: string;
|
|
@@ -1019,7 +1018,7 @@ export declare type SetFilterAnimationTimeConfigAction = {
|
|
|
1019
1018
|
export declare function setFilterAnimationTimeConfig(idx: SetFilterAnimationTimeConfigAction['idx'], config: SetFilterAnimationTimeConfigAction['config']): Merge<SetFilterAnimationTimeConfigAction, {
|
|
1020
1019
|
type: typeof ActionTypes.SET_FILTER_ANIMATION_TIME_CONFIG;
|
|
1021
1020
|
}>;
|
|
1022
|
-
export
|
|
1021
|
+
export type LayerFilteredItemsChangeAction = {
|
|
1023
1022
|
event: {
|
|
1024
1023
|
id: string;
|
|
1025
1024
|
count: number;
|
|
@@ -1036,7 +1035,7 @@ export declare type LayerFilteredItemsChangeAction = {
|
|
|
1036
1035
|
export declare function layerFilteredItemsChange(layer: LayerFilteredItemsChangeAction['layer'], event: LayerFilteredItemsChangeAction['event']): Merge<LayerFilteredItemsChangeAction, {
|
|
1037
1036
|
type: typeof ActionTypes.LAYER_FILTERED_ITEMS_CHANGE;
|
|
1038
1037
|
}>;
|
|
1039
|
-
export
|
|
1038
|
+
export type WMSFeatureInfoAction = {
|
|
1040
1039
|
layer: Layer;
|
|
1041
1040
|
featureInfo: Array<{
|
|
1042
1041
|
name: string;
|
|
@@ -1055,7 +1054,7 @@ export declare type WMSFeatureInfoAction = {
|
|
|
1055
1054
|
export declare function wmsFeatureInfo(layer: WMSFeatureInfoAction['layer'], featureInfo: WMSFeatureInfoAction['featureInfo'], coordinate?: WMSFeatureInfoAction['coordinate']): Merge<WMSFeatureInfoAction, {
|
|
1056
1055
|
type: typeof ActionTypes.WMS_FEATURE_INFO;
|
|
1057
1056
|
}>;
|
|
1058
|
-
export
|
|
1057
|
+
export type SyncTimeFilterWithLayerTimelineAction = {
|
|
1059
1058
|
idx: number;
|
|
1060
1059
|
enable: boolean;
|
|
1061
1060
|
};
|
|
@@ -1069,7 +1068,7 @@ export declare type SyncTimeFilterWithLayerTimelineAction = {
|
|
|
1069
1068
|
export declare function syncTimeFilterWithLayerTimeline(idx: SyncTimeFilterWithLayerTimelineAction['idx'], enable: SyncTimeFilterWithLayerTimelineAction['enable']): Merge<SyncTimeFilterWithLayerTimelineAction, {
|
|
1070
1069
|
type: typeof ActionTypes.SYNC_TIME_FILTER_WITH_LAYER_TIMELINE;
|
|
1071
1070
|
}>;
|
|
1072
|
-
export
|
|
1071
|
+
export type setTimeFilterSyncTimelineModeAction = {
|
|
1073
1072
|
id: string;
|
|
1074
1073
|
mode: SyncTimelineMode;
|
|
1075
1074
|
};
|
|
@@ -1083,7 +1082,7 @@ export declare type setTimeFilterSyncTimelineModeAction = {
|
|
|
1083
1082
|
export declare function setTimeFilterSyncTimelineMode({ id, mode }: setTimeFilterSyncTimelineModeAction): Merge<setTimeFilterSyncTimelineModeAction, {
|
|
1084
1083
|
type: typeof ActionTypes.SYNC_TIME_FILTER_TIMELINE_MODE;
|
|
1085
1084
|
}>;
|
|
1086
|
-
export
|
|
1085
|
+
export type CreateNewDatasetSuccessPayload = {
|
|
1087
1086
|
results: (PromiseFulfilledResult<KeplerTable> | PromiseRejectedResult)[];
|
|
1088
1087
|
addToMapOptions: AddDataToMapPayload['options'];
|
|
1089
1088
|
};
|
|
@@ -1095,7 +1094,7 @@ export declare type CreateNewDatasetSuccessPayload = {
|
|
|
1095
1094
|
* @returns
|
|
1096
1095
|
*/
|
|
1097
1096
|
export declare const createNewDatasetSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<CreateNewDatasetSuccessPayload, string>;
|
|
1098
|
-
export
|
|
1097
|
+
export type SetLoadingIndicatorPayload = {
|
|
1099
1098
|
change: number;
|
|
1100
1099
|
};
|
|
1101
1100
|
/**
|