@kepler.gl/actions 3.2.6 → 3.3.0-alpha.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.
@@ -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 declare type ApplyLayerConfigUpdaterAction = {
5
+ import { AddDataToMapPayload, ValueOf, Merge, PickInfo, RGBColor, NestedPartial, LayerVisConfig, ColorUI, Feature, FeatureSelectionContext, InteractionConfig, Filter, ParsedConfig, ParsedLayer, EffectPropsPartial, AnnotationPropsPartial, 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 declare type LayerConfigChangeUpdaterAction = {
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 declare type LayerToggleVisibilityUpdaterAction = {
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 declare type LayerTextLabelChangeUpdaterAction = {
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 declare type LayerSetIsValidUpdaterAction = {
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 declare type LayerTypeChangeUpdaterAction = {
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 declare type LayerVisualChannelConfigChangeUpdaterAction = {
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 declare type LayerVisConfigChangeUpdaterAction = {
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 declare type LayerColorUIChangeUpdaterAction = {
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 declare type UpdateLayerBlendingUpdaterAction = {
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 declare type UpdateOverlayBlendingUpdaterAction = {
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 declare type InteractionConfigChangeUpdaterAction = {
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 declare type ApplyFilterConfigUpdaterAction = {
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 declare type SetFilterUpdaterAction = {
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 declare type SetFilterAnimationTimeUpdaterAction = {
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 declare type SetFilterAnimationWindowUpdaterAction = {
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 declare type AddFilterUpdaterAction = {
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 declare type CreateOrUpdateFilterUpdaterAction = {
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 declare type AddLayerUpdaterAction = {
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 declare type ReorderLayerUpdaterAction = {
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 declare type RemoveFilterUpdaterAction = {
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 declare type RemoveLayerUpdaterAction = {
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 declare type DuplicateLayerUpdaterAction = {
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 declare type AddEffectUpdaterAction = {
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 declare type ReorderEffectUpdaterAction = {
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 declare type RemoveEffectUpdaterAction = {
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 declare type UpdateEffectUpdaterAction = {
397
+ export type UpdateEffectUpdaterAction = {
399
398
  id: string;
400
399
  props: EffectPropsPartial;
401
400
  };
@@ -409,7 +408,76 @@ 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 declare type RemoveDatasetUpdaterAction = {
411
+ export type AddAnnotationUpdaterAction = {
412
+ config?: AnnotationPropsPartial;
413
+ };
414
+ /**
415
+ * Add a new annotation
416
+ * @memberof visStateActions
417
+ * @param config - new annotation config
418
+ * @returns action
419
+ * @public
420
+ */
421
+ export declare function addAnnotation(config?: AnnotationPropsPartial): Merge<AddAnnotationUpdaterAction, {
422
+ type: typeof ActionTypes.ADD_ANNOTATION;
423
+ }>;
424
+ export type RemoveAnnotationUpdaterAction = {
425
+ id: string;
426
+ };
427
+ /**
428
+ * Remove an annotation
429
+ * @memberof visStateActions
430
+ * @param id id of the annotation to be removed
431
+ * @returns action
432
+ * @public
433
+ */
434
+ export declare function removeAnnotation(id: string): Merge<RemoveAnnotationUpdaterAction, {
435
+ type: typeof ActionTypes.REMOVE_ANNOTATION;
436
+ }>;
437
+ export type UpdateAnnotationUpdaterAction = {
438
+ id: string;
439
+ config: AnnotationPropsPartial;
440
+ };
441
+ /**
442
+ * Update an annotation
443
+ * @memberof visStateActions
444
+ * @param id id of the annotation to be updated
445
+ * @param config partial annotation config to merge
446
+ * @returns action
447
+ * @public
448
+ */
449
+ export declare function updateAnnotation(id: string, config: AnnotationPropsPartial): Merge<UpdateAnnotationUpdaterAction, {
450
+ type: typeof ActionTypes.UPDATE_ANNOTATION;
451
+ }>;
452
+ export type DuplicateAnnotationUpdaterAction = {
453
+ id: string;
454
+ };
455
+ /**
456
+ * Duplicate an annotation
457
+ * @memberof visStateActions
458
+ * @param id id of the annotation to be duplicated
459
+ * @returns action
460
+ * @public
461
+ */
462
+ export declare function duplicateAnnotation(id: string): Merge<DuplicateAnnotationUpdaterAction, {
463
+ type: typeof ActionTypes.DUPLICATE_ANNOTATION;
464
+ }>;
465
+ export type SetSelectedAnnotationUpdaterAction = {
466
+ id: string | null;
467
+ isEditingText?: boolean;
468
+ };
469
+ /**
470
+ * Set the selected annotation
471
+ * @memberof visStateActions
472
+ * @param id id of annotation to select, or null to deselect
473
+ * @param isEditingText whether the text of the annotation is being edited
474
+ * @returns action
475
+ * @public
476
+ */
477
+ export declare function setSelectedAnnotation(id: string | null, isEditingText?: boolean): Merge<SetSelectedAnnotationUpdaterAction, {
478
+ type: typeof ActionTypes.SET_SELECTED_ANNOTATION;
479
+ }>;
480
+ export type RemoveDatasetUpdaterAction = {
413
481
  dataId: string;
414
482
  };
415
483
  /**
@@ -422,7 +490,7 @@ export declare type RemoveDatasetUpdaterAction = {
422
490
  export declare function removeDataset(dataId: string): Merge<RemoveDatasetUpdaterAction, {
423
491
  type: typeof ActionTypes.REMOVE_DATASET;
424
492
  }>;
425
- export declare type ShowDatasetTableUpdaterAction = {
493
+ export type ShowDatasetTableUpdaterAction = {
426
494
  dataId: string;
427
495
  };
428
496
  /**
@@ -435,7 +503,7 @@ export declare type ShowDatasetTableUpdaterAction = {
435
503
  export declare function showDatasetTable(dataId: string): Merge<ShowDatasetTableUpdaterAction, {
436
504
  type: typeof ActionTypes.SHOW_DATASET_TABLE;
437
505
  }>;
438
- export declare type UpdateDatasetColorUpdater = {
506
+ export type UpdateDatasetColorUpdater = {
439
507
  dataId: string;
440
508
  newColor: RGBColor;
441
509
  };
@@ -450,7 +518,7 @@ export declare type UpdateDatasetColorUpdater = {
450
518
  export declare function updateTableColor(dataId: string, newColor: RGBColor): Merge<UpdateDatasetColorUpdater, {
451
519
  type: typeof ActionTypes.UPDATE_TABLE_COLOR;
452
520
  }>;
453
- export declare type SortTableColumnUpdaterAction = {
521
+ export type SortTableColumnUpdaterAction = {
454
522
  dataId: string;
455
523
  column: string;
456
524
  mode?: string;
@@ -467,7 +535,7 @@ export declare type SortTableColumnUpdaterAction = {
467
535
  export declare function sortTableColumn(dataId: string, column: string, mode?: string): Merge<SortTableColumnUpdaterAction, {
468
536
  type: typeof ActionTypes.SORT_TABLE_COLUMN;
469
537
  }>;
470
- export declare type PinTableColumnUpdaterAction = {
538
+ export type PinTableColumnUpdaterAction = {
471
539
  dataId: string;
472
540
  column: string;
473
541
  };
@@ -481,7 +549,7 @@ export declare type PinTableColumnUpdaterAction = {
481
549
  export declare function pinTableColumn(dataId: string, column: string): Merge<PinTableColumnUpdaterAction, {
482
550
  type: typeof ActionTypes.PIN_TABLE_COLUMN;
483
551
  }>;
484
- export declare type CopyTableColumnUpdaterAction = {
552
+ export type CopyTableColumnUpdaterAction = {
485
553
  dataId: string;
486
554
  column: string;
487
555
  };
@@ -495,7 +563,7 @@ export declare type CopyTableColumnUpdaterAction = {
495
563
  export declare function copyTableColumn(dataId: string, column: string): Merge<CopyTableColumnUpdaterAction, {
496
564
  type: typeof ActionTypes.COPY_TABLE_COLUMN;
497
565
  }>;
498
- export declare type SetColumnDisplayFormatUpdaterAction = {
566
+ export type SetColumnDisplayFormatUpdaterAction = {
499
567
  dataId: string;
500
568
  formats: {
501
569
  [key: string]: string;
@@ -511,12 +579,12 @@ export declare type SetColumnDisplayFormatUpdaterAction = {
511
579
  export declare function setColumnDisplayFormat(dataId: SetColumnDisplayFormatUpdaterAction['dataId'], formats: SetColumnDisplayFormatUpdaterAction['formats']): Merge<SetColumnDisplayFormatUpdaterAction, {
512
580
  type: typeof ActionTypes.SET_COLUMN_DISPLAY_FORMAT;
513
581
  }>;
514
- export declare type AddDataToMapUpdaterOptions = {
582
+ export type AddDataToMapUpdaterOptions = {
515
583
  centerMap?: boolean;
516
584
  readOnly?: boolean;
517
585
  keepExistingConfig?: boolean;
518
586
  };
519
- export declare type UpdateVisDataUpdaterAction = {
587
+ export type UpdateVisDataUpdaterAction = {
520
588
  datasets: AddDataToMapPayload['datasets'];
521
589
  options: AddDataToMapPayload['options'];
522
590
  config?: ParsedConfig;
@@ -538,7 +606,7 @@ export declare type UpdateVisDataUpdaterAction = {
538
606
  export declare function updateVisData(datasets: AddDataToMapPayload['datasets'], options: AddDataToMapPayload['options'], config?: ParsedConfig): Merge<UpdateVisDataUpdaterAction, {
539
607
  type: typeof ActionTypes.UPDATE_VIS_DATA;
540
608
  }>;
541
- export declare type RenameDatasetUpdaterAction = {
609
+ export type RenameDatasetUpdaterAction = {
542
610
  dataId: string;
543
611
  label: string;
544
612
  };
@@ -553,7 +621,7 @@ export declare type RenameDatasetUpdaterAction = {
553
621
  export declare function renameDataset(dataId: string, label: string): Merge<RenameDatasetUpdaterAction, {
554
622
  type: typeof ActionTypes.RENAME_DATASET;
555
623
  }>;
556
- export declare type UpdateDatasetPropsUpdaterAction = {
624
+ export type UpdateDatasetPropsUpdaterAction = {
557
625
  dataId: string;
558
626
  props: {
559
627
  label?: string;
@@ -574,7 +642,7 @@ export declare function updateDatasetProps(dataId: string, props: {
574
642
  }): Merge<UpdateDatasetPropsUpdaterAction, {
575
643
  type: typeof ActionTypes.UPDATE_DATASET_PROPS;
576
644
  }>;
577
- export declare type ToggleFilterAnimationUpdaterAction = {
645
+ export type ToggleFilterAnimationUpdaterAction = {
578
646
  idx: number;
579
647
  };
580
648
  /**
@@ -587,7 +655,7 @@ export declare type ToggleFilterAnimationUpdaterAction = {
587
655
  export declare function toggleFilterAnimation(idx: number): Merge<ToggleFilterAnimationUpdaterAction, {
588
656
  type: typeof ActionTypes.TOGGLE_FILTER_ANIMATION;
589
657
  }>;
590
- export declare type UpdateFilterAnimationSpeedUpdaterAction = {
658
+ export type UpdateFilterAnimationSpeedUpdaterAction = {
591
659
  idx: number;
592
660
  speed: number;
593
661
  };
@@ -602,7 +670,7 @@ export declare type UpdateFilterAnimationSpeedUpdaterAction = {
602
670
  export declare function updateFilterAnimationSpeed(idx: number, speed: number): Merge<UpdateFilterAnimationSpeedUpdaterAction, {
603
671
  type: typeof ActionTypes.UPDATE_FILTER_ANIMATION_SPEED;
604
672
  }>;
605
- export declare type SetAnimationConfigUpdaterAction = {
673
+ export type SetAnimationConfigUpdaterAction = {
606
674
  config: AnimationConfig | FilterAnimationConfig;
607
675
  };
608
676
  /**
@@ -613,7 +681,7 @@ export declare type SetAnimationConfigUpdaterAction = {
613
681
  export declare function setAnimationConfig(config: AnimationConfig | FilterAnimationConfig): Merge<SetAnimationConfigUpdaterAction, {
614
682
  type: typeof ActionTypes.SET_ANIMATION_CONFIG;
615
683
  }>;
616
- export declare type SetLayerAnimationTimeUpdaterAction = {
684
+ export type SetLayerAnimationTimeUpdaterAction = {
617
685
  value: number | null;
618
686
  };
619
687
  /**
@@ -626,7 +694,7 @@ export declare type SetLayerAnimationTimeUpdaterAction = {
626
694
  export declare function setLayerAnimationTime(value: number): Merge<SetLayerAnimationTimeUpdaterAction, {
627
695
  type: typeof ActionTypes.SET_LAYER_ANIMATION_TIME;
628
696
  }>;
629
- export declare type UpdateLayerAnimationSpeedUpdaterAction = {
697
+ export type UpdateLayerAnimationSpeedUpdaterAction = {
630
698
  speed: number;
631
699
  };
632
700
  /**
@@ -639,7 +707,7 @@ export declare type UpdateLayerAnimationSpeedUpdaterAction = {
639
707
  export declare function updateLayerAnimationSpeed(speed: number): Merge<UpdateLayerAnimationSpeedUpdaterAction, {
640
708
  type: typeof ActionTypes.UPDATE_LAYER_ANIMATION_SPEED;
641
709
  }>;
642
- export declare type ToggleLayerAnimationUpdaterAction = void;
710
+ export type ToggleLayerAnimationUpdaterAction = void;
643
711
  /**
644
712
  * start end end layer animation
645
713
  * @memberof visStateActions
@@ -649,7 +717,7 @@ export declare type ToggleLayerAnimationUpdaterAction = void;
649
717
  export declare function toggleLayerAnimation(): Merge<ToggleLayerAnimationUpdaterAction, {
650
718
  type: typeof ActionTypes.TOGGLE_LAYER_ANIMATION;
651
719
  }>;
652
- export declare type ToggleLayerAnimationControlUpdaterAction = void;
720
+ export type ToggleLayerAnimationControlUpdaterAction = void;
653
721
  /**
654
722
  * hide and show layer animation control
655
723
  * @memberof visStateActions
@@ -659,7 +727,7 @@ export declare type ToggleLayerAnimationControlUpdaterAction = void;
659
727
  export declare function toggleLayerAnimationControl(): Merge<ToggleLayerAnimationControlUpdaterAction, {
660
728
  type: typeof ActionTypes.TOGGLE_LAYER_ANIMATION_CONTROL;
661
729
  }>;
662
- export declare type SetFilterViewUpdaterAction = {
730
+ export type SetFilterViewUpdaterAction = {
663
731
  idx: number;
664
732
  view: Filter['view'];
665
733
  };
@@ -674,7 +742,7 @@ export declare type SetFilterViewUpdaterAction = {
674
742
  export declare function setFilterView(idx: number, view: Filter['view']): Merge<SetFilterViewUpdaterAction, {
675
743
  type: typeof ActionTypes.SET_FILTER_VIEW;
676
744
  }>;
677
- export declare type ToggleFilterFeatureUpdaterAction = {
745
+ export type ToggleFilterFeatureUpdaterAction = {
678
746
  idx: number;
679
747
  };
680
748
  /**
@@ -686,8 +754,8 @@ export declare type ToggleFilterFeatureUpdaterAction = {
686
754
  export declare function toggleFilterFeature(idx: number): Merge<ToggleFilterFeatureUpdaterAction, {
687
755
  type: typeof ActionTypes.TOGGLE_FILTER_FEATURE;
688
756
  }>;
689
- export declare type OnLayerHoverUpdaterAction = {
690
- info: PickInfo<any> | null;
757
+ export type OnLayerHoverUpdaterAction = {
758
+ info: PickInfo | null;
691
759
  mapIndex?: number;
692
760
  };
693
761
  /**
@@ -698,11 +766,11 @@ export declare type OnLayerHoverUpdaterAction = {
698
766
  * @returns action
699
767
  * @public
700
768
  */
701
- export declare function onLayerHover(info: PickInfo<any> | null, mapIndex?: number): Merge<OnLayerHoverUpdaterAction, {
769
+ export declare function onLayerHover(info: PickInfo | null, mapIndex?: number): Merge<OnLayerHoverUpdaterAction, {
702
770
  type: typeof ActionTypes.LAYER_HOVER;
703
771
  }>;
704
- export declare type OnLayerClickUpdaterAction = {
705
- info: PickInfo<any> | null;
772
+ export type OnLayerClickUpdaterAction = {
773
+ info: PickInfo | null;
706
774
  };
707
775
  /**
708
776
  * Trigger layer click event with clicked object
@@ -711,10 +779,10 @@ export declare type OnLayerClickUpdaterAction = {
711
779
  * @returns action
712
780
  * @public
713
781
  */
714
- export declare function onLayerClick(info: PickInfo<any> | null): Merge<OnLayerClickUpdaterAction, {
782
+ export declare function onLayerClick(info: PickInfo | null): Merge<OnLayerClickUpdaterAction, {
715
783
  type: typeof ActionTypes.LAYER_CLICK;
716
784
  }>;
717
- export declare type OnMapClickUpdaterAction = void;
785
+ export type OnMapClickUpdaterAction = void;
718
786
  /**
719
787
  * Trigger map click event, unselect clicked object
720
788
  * @memberof visStateActions
@@ -724,7 +792,7 @@ export declare type OnMapClickUpdaterAction = void;
724
792
  export declare function onMapClick(): Merge<OnMapClickUpdaterAction, {
725
793
  type: typeof ActionTypes.MAP_CLICK;
726
794
  }>;
727
- export declare type OnMouseMoveUpdaterAction = {
795
+ export type OnMouseMoveUpdaterAction = {
728
796
  evt: any;
729
797
  };
730
798
  /**
@@ -740,7 +808,7 @@ export declare type OnMouseMoveUpdaterAction = {
740
808
  export declare function onMouseMove(evt: any): Merge<OnMouseMoveUpdaterAction, {
741
809
  type: typeof ActionTypes.MOUSE_MOVE;
742
810
  }>;
743
- export declare type ToggleLayerForMapUpdaterAction = {
811
+ export type ToggleLayerForMapUpdaterAction = {
744
812
  mapIndex: number;
745
813
  layerId: string;
746
814
  };
@@ -755,13 +823,13 @@ export declare type ToggleLayerForMapUpdaterAction = {
755
823
  export declare function toggleLayerForMap(mapIndex: number, layerId: string): Merge<ToggleLayerForMapUpdaterAction, {
756
824
  type: typeof ActionTypes.TOGGLE_LAYER_FOR_MAP;
757
825
  }>;
758
- declare type FilterPlotNewProp = {
826
+ type FilterPlotNewProp = {
759
827
  yAxis?: null | Record<string, any>;
760
828
  plotType?: {
761
829
  type: string;
762
830
  };
763
831
  };
764
- export declare type SetFilterPlotUpdaterAction = {
832
+ export type SetFilterPlotUpdaterAction = {
765
833
  idx: number;
766
834
  newProp: FilterPlotNewProp;
767
835
  valueIndex?: number;
@@ -778,7 +846,7 @@ export declare type SetFilterPlotUpdaterAction = {
778
846
  export declare function setFilterPlot(idx: number, newProp: FilterPlotNewProp, valueIndex?: number): Merge<SetFilterPlotUpdaterAction, {
779
847
  type: typeof ActionTypes.SET_FILTER_PLOT;
780
848
  }>;
781
- export declare type SetMapInfoUpdaterAction = {
849
+ export type SetMapInfoUpdaterAction = {
782
850
  info: any;
783
851
  };
784
852
  /**
@@ -791,7 +859,7 @@ export declare type SetMapInfoUpdaterAction = {
791
859
  export declare function setMapInfo(info: any): Merge<SetMapInfoUpdaterAction, {
792
860
  type: typeof ActionTypes.SET_MAP_INFO;
793
861
  }>;
794
- export declare type LoadFilesUpdaterAction = {
862
+ export type LoadFilesUpdaterAction = {
795
863
  files: File[];
796
864
  onFinish?(result: any): any;
797
865
  };
@@ -814,7 +882,7 @@ export declare function loadFiles(files: File[], onFinish?: (result: any) => any
814
882
  export declare function loadNextFile(): {
815
883
  type: typeof ActionTypes.LOAD_NEXT_FILE;
816
884
  };
817
- export declare type loadFilesSuccessUpdaterAction = {
885
+ export type loadFilesSuccessUpdaterAction = {
818
886
  result: FileCacheItem[];
819
887
  };
820
888
  /**
@@ -826,7 +894,7 @@ export declare type loadFilesSuccessUpdaterAction = {
826
894
  export declare function loadFilesSuccess(result: FileCacheItem[]): Merge<loadFilesSuccessUpdaterAction, {
827
895
  type: typeof ActionTypes.LOAD_FILES_SUCCESS;
828
896
  }>;
829
- export declare type LoadFileStepSuccessAction = {
897
+ export type LoadFileStepSuccessAction = {
830
898
  fileName: string;
831
899
  fileCache: FileCacheItem[];
832
900
  };
@@ -842,7 +910,7 @@ export declare function loadFileStepSuccess({ fileName, fileCache }: {
842
910
  }): Merge<LoadFileStepSuccessAction, {
843
911
  type: typeof ActionTypes.LOAD_FILE_STEP_SUCCESS;
844
912
  }>;
845
- export declare type LoadFilesErrUpdaterAction = {
913
+ export type LoadFilesErrUpdaterAction = {
846
914
  fileName: string;
847
915
  error: any;
848
916
  };
@@ -856,7 +924,7 @@ export declare type LoadFilesErrUpdaterAction = {
856
924
  export declare function loadFilesErr(fileName: string, error: any): Merge<LoadFilesErrUpdaterAction, {
857
925
  type: typeof ActionTypes.LOAD_FILES_ERR;
858
926
  }>;
859
- export declare type SetFeaturesUpdaterAction = {
927
+ export type SetFeaturesUpdaterAction = {
860
928
  features: Feature[];
861
929
  };
862
930
  /**
@@ -868,7 +936,7 @@ export declare type SetFeaturesUpdaterAction = {
868
936
  export declare function setFeatures(features: Feature[]): Merge<SetFeaturesUpdaterAction, {
869
937
  type: typeof ActionTypes.SET_FEATURES;
870
938
  }>;
871
- export declare type SetPolygonFilterLayerUpdaterAction = {
939
+ export type SetPolygonFilterLayerUpdaterAction = {
872
940
  layer: Layer;
873
941
  feature: Feature;
874
942
  };
@@ -883,7 +951,19 @@ export declare type SetPolygonFilterLayerUpdaterAction = {
883
951
  export declare function setPolygonFilterLayer(layer: Layer, feature: Feature): Merge<SetPolygonFilterLayerUpdaterAction, {
884
952
  type: typeof ActionTypes.SET_POLYGON_FILTER_LAYER;
885
953
  }>;
886
- export declare type SetSelectedFeatureUpdaterAction = {
954
+ export type SetPolygonFilterAllLayersUpdaterAction = {
955
+ feature: Feature;
956
+ };
957
+ /**
958
+ * Apply the provided feature as a polygon filter to all layers.
959
+ * @memberof visStateActions
960
+ * @param feature
961
+ * @returns action
962
+ */
963
+ export declare function setPolygonFilterAllLayers(feature: Feature): Merge<SetPolygonFilterAllLayersUpdaterAction, {
964
+ type: typeof ActionTypes.SET_POLYGON_FILTER_ALL_LAYERS;
965
+ }>;
966
+ export type SetSelectedFeatureUpdaterAction = {
887
967
  feature: Feature | null;
888
968
  selectionContext?: FeatureSelectionContext;
889
969
  };
@@ -898,7 +978,7 @@ export declare type SetSelectedFeatureUpdaterAction = {
898
978
  export declare function setSelectedFeature(feature: Feature | null, selectionContext?: FeatureSelectionContext): Merge<SetSelectedFeatureUpdaterAction, {
899
979
  type: typeof ActionTypes.SET_SELECTED_FEATURE;
900
980
  }>;
901
- export declare type DeleteFeatureUpdaterAction = {
981
+ export type DeleteFeatureUpdaterAction = {
902
982
  feature: Feature;
903
983
  };
904
984
  /**
@@ -910,7 +990,7 @@ export declare type DeleteFeatureUpdaterAction = {
910
990
  export declare function deleteFeature(feature: Feature): Merge<DeleteFeatureUpdaterAction, {
911
991
  type: typeof ActionTypes.DELETE_FEATURE;
912
992
  }>;
913
- export declare type SetEditorModeUpdaterAction = {
993
+ export type SetEditorModeUpdaterAction = {
914
994
  mode: string;
915
995
  };
916
996
  /** Set the map mode
@@ -927,7 +1007,7 @@ export declare type SetEditorModeUpdaterAction = {
927
1007
  export declare function setEditorMode(mode: string): Merge<SetEditorModeUpdaterAction, {
928
1008
  type: typeof ActionTypes.SET_EDITOR_MODE;
929
1009
  }>;
930
- export declare type ApplyCPUFilterUpdaterAction = {
1010
+ export type ApplyCPUFilterUpdaterAction = {
931
1011
  dataId: string | string[];
932
1012
  };
933
1013
  /**
@@ -940,7 +1020,7 @@ export declare type ApplyCPUFilterUpdaterAction = {
940
1020
  export declare function applyCPUFilter(dataId: string | string[]): Merge<ApplyCPUFilterUpdaterAction, {
941
1021
  type: typeof ActionTypes.APPLY_CPU_FILTER;
942
1022
  }>;
943
- export declare type ToggleEditorVisibilityUpdaterAction = void;
1023
+ export type ToggleEditorVisibilityUpdaterAction = void;
944
1024
  /**
945
1025
  * Toggle editor layer visibility
946
1026
  * @memberof visStateActions
@@ -949,12 +1029,12 @@ export declare type ToggleEditorVisibilityUpdaterAction = void;
949
1029
  export declare function toggleEditorVisibility(): Merge<ToggleEditorVisibilityUpdaterAction, {
950
1030
  type: typeof ActionTypes.TOGGLE_EDITOR_VISIBILITY;
951
1031
  }>;
952
- declare type FileContent = {
1032
+ type FileContent = {
953
1033
  fileName: string;
954
1034
  header: string[];
955
1035
  data: any;
956
1036
  };
957
- export declare type NextFileBatchUpdaterAction = {
1037
+ export type NextFileBatchUpdaterAction = {
958
1038
  payload: {
959
1039
  gen: AsyncGenerator<FileContent>;
960
1040
  fileName: string;
@@ -972,7 +1052,7 @@ export declare type NextFileBatchUpdaterAction = {
972
1052
  export declare function nextFileBatch(payload: NextFileBatchUpdaterAction['payload']): Merge<NextFileBatchUpdaterAction, {
973
1053
  type: typeof ActionTypes.NEXT_FILE_BATCH;
974
1054
  }>;
975
- export declare type ProcessFileContentUpdaterAction = {
1055
+ export type ProcessFileContentUpdaterAction = {
976
1056
  payload: {
977
1057
  content: FileContent;
978
1058
  fileCache: FileCacheItem[];
@@ -987,7 +1067,7 @@ export declare type ProcessFileContentUpdaterAction = {
987
1067
  export declare function processFileContent(payload: ProcessFileContentUpdaterAction['payload']): Merge<ProcessFileContentUpdaterAction, {
988
1068
  type: typeof ActionTypes.PROCESS_FILE_CONTENT;
989
1069
  }>;
990
- export declare type SetLayerAnimationTimeConfigAction = {
1070
+ export type SetLayerAnimationTimeConfigAction = {
991
1071
  config: {
992
1072
  timezone?: string;
993
1073
  timeFormat?: string;
@@ -1002,7 +1082,7 @@ export declare type SetLayerAnimationTimeConfigAction = {
1002
1082
  export declare function setLayerAnimationTimeConfig(config: SetLayerAnimationTimeConfigAction['config']): Merge<SetLayerAnimationTimeConfigAction, {
1003
1083
  type: typeof ActionTypes.SET_LAYER_ANIMATION_TIME_CONFIG;
1004
1084
  }>;
1005
- export declare type SetFilterAnimationTimeConfigAction = {
1085
+ export type SetFilterAnimationTimeConfigAction = {
1006
1086
  idx: number;
1007
1087
  config: {
1008
1088
  timezone?: string;
@@ -1019,7 +1099,7 @@ export declare type SetFilterAnimationTimeConfigAction = {
1019
1099
  export declare function setFilterAnimationTimeConfig(idx: SetFilterAnimationTimeConfigAction['idx'], config: SetFilterAnimationTimeConfigAction['config']): Merge<SetFilterAnimationTimeConfigAction, {
1020
1100
  type: typeof ActionTypes.SET_FILTER_ANIMATION_TIME_CONFIG;
1021
1101
  }>;
1022
- export declare type LayerFilteredItemsChangeAction = {
1102
+ export type LayerFilteredItemsChangeAction = {
1023
1103
  event: {
1024
1104
  id: string;
1025
1105
  count: number;
@@ -1036,7 +1116,7 @@ export declare type LayerFilteredItemsChangeAction = {
1036
1116
  export declare function layerFilteredItemsChange(layer: LayerFilteredItemsChangeAction['layer'], event: LayerFilteredItemsChangeAction['event']): Merge<LayerFilteredItemsChangeAction, {
1037
1117
  type: typeof ActionTypes.LAYER_FILTERED_ITEMS_CHANGE;
1038
1118
  }>;
1039
- export declare type WMSFeatureInfoAction = {
1119
+ export type WMSFeatureInfoAction = {
1040
1120
  layer: Layer;
1041
1121
  featureInfo: Array<{
1042
1122
  name: string;
@@ -1055,7 +1135,7 @@ export declare type WMSFeatureInfoAction = {
1055
1135
  export declare function wmsFeatureInfo(layer: WMSFeatureInfoAction['layer'], featureInfo: WMSFeatureInfoAction['featureInfo'], coordinate?: WMSFeatureInfoAction['coordinate']): Merge<WMSFeatureInfoAction, {
1056
1136
  type: typeof ActionTypes.WMS_FEATURE_INFO;
1057
1137
  }>;
1058
- export declare type SyncTimeFilterWithLayerTimelineAction = {
1138
+ export type SyncTimeFilterWithLayerTimelineAction = {
1059
1139
  idx: number;
1060
1140
  enable: boolean;
1061
1141
  };
@@ -1069,7 +1149,7 @@ export declare type SyncTimeFilterWithLayerTimelineAction = {
1069
1149
  export declare function syncTimeFilterWithLayerTimeline(idx: SyncTimeFilterWithLayerTimelineAction['idx'], enable: SyncTimeFilterWithLayerTimelineAction['enable']): Merge<SyncTimeFilterWithLayerTimelineAction, {
1070
1150
  type: typeof ActionTypes.SYNC_TIME_FILTER_WITH_LAYER_TIMELINE;
1071
1151
  }>;
1072
- export declare type setTimeFilterSyncTimelineModeAction = {
1152
+ export type setTimeFilterSyncTimelineModeAction = {
1073
1153
  id: string;
1074
1154
  mode: SyncTimelineMode;
1075
1155
  };
@@ -1083,7 +1163,7 @@ export declare type setTimeFilterSyncTimelineModeAction = {
1083
1163
  export declare function setTimeFilterSyncTimelineMode({ id, mode }: setTimeFilterSyncTimelineModeAction): Merge<setTimeFilterSyncTimelineModeAction, {
1084
1164
  type: typeof ActionTypes.SYNC_TIME_FILTER_TIMELINE_MODE;
1085
1165
  }>;
1086
- export declare type CreateNewDatasetSuccessPayload = {
1166
+ export type CreateNewDatasetSuccessPayload = {
1087
1167
  results: (PromiseFulfilledResult<KeplerTable> | PromiseRejectedResult)[];
1088
1168
  addToMapOptions: AddDataToMapPayload['options'];
1089
1169
  };
@@ -1095,7 +1175,7 @@ export declare type CreateNewDatasetSuccessPayload = {
1095
1175
  * @returns
1096
1176
  */
1097
1177
  export declare const createNewDatasetSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<CreateNewDatasetSuccessPayload, string>;
1098
- export declare type SetLoadingIndicatorPayload = {
1178
+ export type SetLoadingIndicatorPayload = {
1099
1179
  change: number;
1100
1180
  };
1101
1181
  /**